diff --git a/projects/igniteui-angular/src/lib/date-picker/date-picker.utils.ts b/projects/igniteui-angular/src/lib/date-picker/date-picker.utils.ts index 7686465ea97..85f1c76743c 100644 --- a/projects/igniteui-angular/src/lib/date-picker/date-picker.utils.ts +++ b/projects/igniteui-angular/src/lib/date-picker/date-picker.utils.ts @@ -400,12 +400,12 @@ export abstract class DatePickerUtil { return mask.join(''); } /** - * This method parses an input string base on date parts and returns a date and its validation state. - * @param dateFormatParts - * @param prevDateValue - * @param inputValue - * @returns object containing a date and its validation state - */ + * This method parses an input string base on date parts and returns a date and its validation state. + * @param dateFormatParts + * @param prevDateValue + * @param inputValue + * @returns object containing a date and its validation state + */ public static parseDateArray(dateFormatParts: any[], prevDateValue: Date, inputValue: string): any { const dayStr = DatePickerUtil.getDayValueFromInput(dateFormatParts, inputValue); const monthStr = DatePickerUtil.getMonthValueFromInput(dateFormatParts, inputValue); diff --git a/projects/igniteui-angular/src/lib/directives/date-time-editor/date-time-editor.directive.ts b/projects/igniteui-angular/src/lib/directives/date-time-editor/date-time-editor.directive.ts index 4e85860b7bb..bc435cd3f17 100644 --- a/projects/igniteui-angular/src/lib/directives/date-time-editor/date-time-editor.directive.ts +++ b/projects/igniteui-angular/src/lib/directives/date-time-editor/date-time-editor.directive.ts @@ -52,9 +52,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * An @Input property that allows you to set the locale settings used in `displayFormat`. * @example - *```html + * ```html * - *``` + * ``` */ @Input() public locale: string; @@ -62,9 +62,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * An @Input property that allows you to set the minimum possible value the editor will allow. * @example - *```html + * ```html * - *``` + * ``` */ public get minValue(): string | Date { return this._minValue; @@ -79,9 +79,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * An @Input property that allows you to set the maximum possible value the editor will allow. * @example - *```html + * ```html * - *``` + * ``` */ public get maxValue(): string | Date { return this._maxValue; @@ -96,9 +96,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * An @Input property that allows you to specify if the currently spun date segment should loop over. * @example - *```html + * ```html * - *``` + * ``` */ @Input() public isSpinLoop = true; @@ -107,9 +107,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh * An @Input property that allows you to set both pre-defined format options such as `shortDate` and `longDate`, * as well as constructed format string using characters supported by `DatePipe`, e.g. `EE/MM/yyyy`. * @example - *```html + * ```html * - *``` + * ``` */ @Input() public displayFormat: string; @@ -118,9 +118,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh * An @Input property that allows you to get/set the expected user input format(and placeholder). * for the editor. * @example - *```html + * ```html * - *``` + * ``` */ @Input(`igxDateTimeEditor`) public set inputFormat(value: string) { @@ -216,7 +216,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh public ngOnChanges(changes: SimpleChanges) { if (changes['inputFormat'] || changes['locale']) { this._inputDateParts = DatePickerUtil.parseDateTimeFormat(this.inputFormat); - this.inputFormat = this._inputDateParts.map(p => p.format).join('');; + this.inputFormat = this._inputDateParts.map(p => p.format).join(''); if (!this.nativeElement.placeholder) { this.renderer.setAttribute(this.nativeElement, 'placeholder', this.inputFormat); } @@ -233,9 +233,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh } /** - * Increment specified DatePart. - * @param datePart The optional DatePart to increment. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm'). - */ + * Increment specified DatePart. + * @param datePart The optional DatePart to increment. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm'). + */ public increment(datePart?: DatePart): void { const targetDatePart = this.targetDatePart; if (!targetDatePart) { return; } @@ -247,10 +247,10 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh } /** - * Decrement specified DatePart. - * - * @param datePart The optional DatePart to decrement. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm'). - */ + * Decrement specified DatePart. + * + * @param datePart The optional DatePart to decrement. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm'). + */ public decrement(datePart?: DatePart): void { const targetDatePart = this.targetDatePart; if (!targetDatePart) { return; } diff --git a/projects/igniteui-angular/src/lib/test-utils/ui-interactions.spec.ts b/projects/igniteui-angular/src/lib/test-utils/ui-interactions.spec.ts index d8e7c389025..46f36829d0d 100644 --- a/projects/igniteui-angular/src/lib/test-utils/ui-interactions.spec.ts +++ b/projects/igniteui-angular/src/lib/test-utils/ui-interactions.spec.ts @@ -114,7 +114,7 @@ export class UIInteractions { if (selectionStart > selectionEnd) { return Error('Selection start should be less than selection end position'); } - //target.triggerEventHandler('focus', {}); + // target.triggerEventHandler('focus', {}); const inputEl = target.nativeElement as HTMLInputElement; inputEl.setSelectionRange(selectionStart, selectionEnd); for (let i = 0; i < characters.length; i++) {