Skip to content

Commit 4c10f6b

Browse files
committed
chore(date-editor): fix lint errors #6271
1 parent 06948b4 commit 4c10f6b

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

projects/igniteui-angular/src/lib/date-picker/date-picker.utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ export abstract class DatePickerUtil {
400400
return mask.join('');
401401
}
402402
/**
403-
* This method parses an input string base on date parts and returns a date and its validation state.
404-
* @param dateFormatParts
405-
* @param prevDateValue
406-
* @param inputValue
407-
* @returns object containing a date and its validation state
408-
*/
403+
* This method parses an input string base on date parts and returns a date and its validation state.
404+
* @param dateFormatParts
405+
* @param prevDateValue
406+
* @param inputValue
407+
* @returns object containing a date and its validation state
408+
*/
409409
public static parseDateArray(dateFormatParts: any[], prevDateValue: Date, inputValue: string): any {
410410
const dayStr = DatePickerUtil.getDayValueFromInput(dateFormatParts, inputValue);
411411
const monthStr = DatePickerUtil.getMonthValueFromInput(dateFormatParts, inputValue);

projects/igniteui-angular/src/lib/directives/date-time-editor/date-time-editor.directive.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
5252
/**
5353
* An @Input property that allows you to set the locale settings used in `displayFormat`.
5454
* @example
55-
*```html
55+
* ```html
5656
* <input igxDateTimeEditor [locale]="'en'">
57-
*```
57+
* ```
5858
*/
5959
@Input()
6060
public locale: string;
6161

6262
/**
6363
* An @Input property that allows you to set the minimum possible value the editor will allow.
6464
* @example
65-
*```html
65+
* ```html
6666
* <input igxDateTimeEditor [minValue]="minDate">
67-
*```
67+
* ```
6868
*/
6969
public get minValue(): string | Date {
7070
return this._minValue;
@@ -79,9 +79,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
7979
/**
8080
* An @Input property that allows you to set the maximum possible value the editor will allow.
8181
* @example
82-
*```html
82+
* ```html
8383
* <input igxDateTimeEditor [maxValue]="maxDate">
84-
*```
84+
* ```
8585
*/
8686
public get maxValue(): string | Date {
8787
return this._maxValue;
@@ -96,9 +96,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
9696
/**
9797
* An @Input property that allows you to specify if the currently spun date segment should loop over.
9898
* @example
99-
*```html
99+
* ```html
100100
* <input igxDateTimeEditor [isSpinLoop]="false">
101-
*```
101+
* ```
102102
*/
103103
@Input()
104104
public isSpinLoop = true;
@@ -107,9 +107,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
107107
* An @Input property that allows you to set both pre-defined format options such as `shortDate` and `longDate`,
108108
* as well as constructed format string using characters supported by `DatePipe`, e.g. `EE/MM/yyyy`.
109109
* @example
110-
*```html
110+
* ```html
111111
* <input igxDateTimeEditor [displayFormat]="'shortDate'">
112-
*```
112+
* ```
113113
*/
114114
@Input()
115115
public displayFormat: string;
@@ -118,9 +118,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
118118
* An @Input property that allows you to get/set the expected user input format(and placeholder).
119119
* for the editor.
120120
* @example
121-
*```html
121+
* ```html
122122
* <input [igxDateTimeEditor]="'dd/MM/yyyy'">
123-
*```
123+
* ```
124124
*/
125125
@Input(`igxDateTimeEditor`)
126126
public set inputFormat(value: string) {
@@ -216,7 +216,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
216216
public ngOnChanges(changes: SimpleChanges) {
217217
if (changes['inputFormat'] || changes['locale']) {
218218
this._inputDateParts = DatePickerUtil.parseDateTimeFormat(this.inputFormat);
219-
this.inputFormat = this._inputDateParts.map(p => p.format).join('');;
219+
this.inputFormat = this._inputDateParts.map(p => p.format).join('');
220220
if (!this.nativeElement.placeholder) {
221221
this.renderer.setAttribute(this.nativeElement, 'placeholder', this.inputFormat);
222222
}
@@ -233,9 +233,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
233233
}
234234

235235
/**
236-
* Increment specified DatePart.
237-
* @param datePart The optional DatePart to increment. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
238-
*/
236+
* Increment specified DatePart.
237+
* @param datePart The optional DatePart to increment. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
238+
*/
239239
public increment(datePart?: DatePart): void {
240240
const targetDatePart = this.targetDatePart;
241241
if (!targetDatePart) { return; }
@@ -247,10 +247,10 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
247247
}
248248

249249
/**
250-
* Decrement specified DatePart.
251-
*
252-
* @param datePart The optional DatePart to decrement. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
253-
*/
250+
* Decrement specified DatePart.
251+
*
252+
* @param datePart The optional DatePart to decrement. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
253+
*/
254254
public decrement(datePart?: DatePart): void {
255255
const targetDatePart = this.targetDatePart;
256256
if (!targetDatePart) { return; }

projects/igniteui-angular/src/lib/test-utils/ui-interactions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class UIInteractions {
114114
if (selectionStart > selectionEnd) {
115115
return Error('Selection start should be less than selection end position');
116116
}
117-
//target.triggerEventHandler('focus', {});
117+
// target.triggerEventHandler('focus', {});
118118
const inputEl = target.nativeElement as HTMLInputElement;
119119
inputEl.setSelectionRange(selectionStart, selectionEnd);
120120
for (let i = 0; i < characters.length; i++) {

0 commit comments

Comments
 (0)