@progress/kendo-angular-dateinputs 16.0.0-develop.19 → 16.0.0-develop.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dateinput/dateinput.component.d.ts +13 -1
- package/dateinput/localization/messages.d.ts +5 -1
- package/datepicker/datepicker.component.d.ts +7 -2
- package/datepicker/localization/messages.d.ts +5 -1
- package/datetimepicker/datetimepicker.component.d.ts +7 -1
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2020/dateinput/dateinput.component.mjs +63 -2
- package/esm2020/dateinput/localization/messages.mjs +3 -1
- package/esm2020/datepicker/datepicker.component.mjs +39 -14
- package/esm2020/datepicker/localization/messages.mjs +3 -1
- package/esm2020/datetimepicker/datetimepicker.component.mjs +37 -11
- package/esm2020/datetimepicker/localization/messages.mjs +3 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/localization/messages.mjs +3 -1
- package/esm2020/timepicker/timepicker.component.mjs +39 -11
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +220 -74
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +219 -74
- package/package.json +9 -9
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/timepicker.component.d.ts +7 -1
|
@@ -57,6 +57,10 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
57
57
|
* @hidden
|
|
58
58
|
*/
|
|
59
59
|
caretAltUpIcon: SVGIcon;
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
xIcon: SVGIcon;
|
|
60
64
|
/**
|
|
61
65
|
* @hidden
|
|
62
66
|
*/
|
|
@@ -70,6 +74,12 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
70
74
|
* @hidden
|
|
71
75
|
*/
|
|
72
76
|
set pickerType(_pickerType: DatePickerType);
|
|
77
|
+
/**
|
|
78
|
+
* If set to `true`, renders a clear button after the input text or DateInput value has been changed.
|
|
79
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
clearButton: boolean;
|
|
73
83
|
/**
|
|
74
84
|
* Sets or gets the `disabled` property of the DateInput and
|
|
75
85
|
* determines whether the component is active
|
|
@@ -394,6 +404,7 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
394
404
|
};
|
|
395
405
|
hasMousedown: boolean;
|
|
396
406
|
focusedPriorToMousedown: boolean;
|
|
407
|
+
showClearButton: boolean;
|
|
397
408
|
/**
|
|
398
409
|
* @hidden
|
|
399
410
|
*/
|
|
@@ -476,6 +487,7 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
476
487
|
* @hidden
|
|
477
488
|
*/
|
|
478
489
|
writeValue(value: Date): void;
|
|
490
|
+
resetInput(): void;
|
|
479
491
|
/**
|
|
480
492
|
* @hidden
|
|
481
493
|
*/
|
|
@@ -531,6 +543,6 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
|
|
|
531
543
|
private setComponentClasses;
|
|
532
544
|
private setInputAttributes;
|
|
533
545
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
534
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "kendo-dateinput", ["kendo-dateinput"], { "focusableId": "focusableId"; "pickerType": "pickerType"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "tabindex": "tabindex"; "role": "role"; "ariaReadOnly": "ariaReadOnly"; "tabIndex": "tabIndex"; "isRequired": "isRequired"; "format": "format"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "max": "max"; "min": "min"; "rangeValidation": "rangeValidation"; "autoCorrectParts": "autoCorrectParts"; "autoSwitchParts": "autoSwitchParts"; "autoSwitchKeys": "autoSwitchKeys"; "allowCaretMode": "allowCaretMode"; "autoFill": "autoFill"; "incompleteDateValidation": "incompleteDateValidation"; "twoDigitYearMax": "twoDigitYearMax"; "enableMouseWheel": "enableMouseWheel"; "value": "value"; "spinners": "spinners"; "isPopupOpen": "isPopupOpen"; "hasPopup": "hasPopup"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "inputAttributes": "inputAttributes"; }, { "valueChange": "valueChange"; "valueUpdate": "valueUpdate"; "onFocus": "focus"; "onBlur": "blur"; }, never, never, false, never>;
|
|
546
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "kendo-dateinput", ["kendo-dateinput"], { "focusableId": "focusableId"; "pickerType": "pickerType"; "clearButton": "clearButton"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "tabindex": "tabindex"; "role": "role"; "ariaReadOnly": "ariaReadOnly"; "tabIndex": "tabIndex"; "isRequired": "isRequired"; "format": "format"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "max": "max"; "min": "min"; "rangeValidation": "rangeValidation"; "autoCorrectParts": "autoCorrectParts"; "autoSwitchParts": "autoSwitchParts"; "autoSwitchKeys": "autoSwitchKeys"; "allowCaretMode": "allowCaretMode"; "autoFill": "autoFill"; "incompleteDateValidation": "incompleteDateValidation"; "twoDigitYearMax": "twoDigitYearMax"; "enableMouseWheel": "enableMouseWheel"; "value": "value"; "spinners": "spinners"; "isPopupOpen": "isPopupOpen"; "hasPopup": "hasPopup"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "inputAttributes": "inputAttributes"; }, { "valueChange": "valueChange"; "valueUpdate": "valueUpdate"; "onFocus": "focus"; "onBlur": "blur"; }, never, never, false, never>;
|
|
535
547
|
}
|
|
536
548
|
export {};
|
|
@@ -16,6 +16,10 @@ export declare class DateInputMessages extends ComponentMessages {
|
|
|
16
16
|
* The title of the **Increment** button of the DateInput.
|
|
17
17
|
*/
|
|
18
18
|
increment: string;
|
|
19
|
+
/**
|
|
20
|
+
* The title of the **Clear** button of the DateInput.
|
|
21
|
+
*/
|
|
22
|
+
clearTitle: string;
|
|
19
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputMessages, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputMessages, "kendo-dateinput-messages-base", never, { "decrement": "decrement"; "increment": "increment"; }, {}, never, never, false, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputMessages, "kendo-dateinput-messages-base", never, { "decrement": "decrement"; "increment": "increment"; "clearTitle": "clearTitle"; }, {}, never, never, false, never>;
|
|
21
25
|
}
|
|
@@ -68,6 +68,12 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
|
|
|
68
68
|
* @hidden
|
|
69
69
|
*/
|
|
70
70
|
set cellTemplateRef(template: CellTemplateDirective);
|
|
71
|
+
/**
|
|
72
|
+
* If set to `true`, renders a clear button after the input text or DatePicker value has been changed.
|
|
73
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
clearButton: boolean;
|
|
71
77
|
/**
|
|
72
78
|
* Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed.
|
|
73
79
|
*/
|
|
@@ -508,7 +514,6 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
|
|
|
508
514
|
* @hidden
|
|
509
515
|
*/
|
|
510
516
|
xIcon: SVGIcon;
|
|
511
|
-
private get inputElement();
|
|
512
517
|
/**
|
|
513
518
|
* @hidden
|
|
514
519
|
*/
|
|
@@ -690,5 +695,5 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
|
|
|
690
695
|
private handleDateCompletenessChange;
|
|
691
696
|
private setComponentClasses;
|
|
692
697
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
693
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "kendo-datepicker", ["kendo-datepicker"], { "focusableId": "focusableId"; "cellTemplateRef": "cellTemplate"; "inputAttributes": "inputAttributes"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "headerTemplateRef": "headerTemplate"; "footerTemplateRef": "footerTemplate"; "footer": "footer"; "navigationItemTemplateRef": "navigationItemTemplate"; "weekDaysFormat": "weekDaysFormat"; "showOtherMonthDays": "showOtherMonthDays"; "activeView": "activeView"; "bottomView": "bottomView"; "topView": "topView"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "popupSettings": "popupSettings"; "navigation": "navigation"; "min": "min"; "max": "max"; "incompleteDateValidation": "incompleteDateValidation"; "autoCorrectParts": "autoCorrectParts"; "autoSwitchParts": "autoSwitchParts"; "autoSwitchKeys": "autoSwitchKeys"; "enableMouseWheel": "enableMouseWheel"; "allowCaretMode": "allowCaretMode"; "autoFill": "autoFill"; "focusedDate": "focusedDate"; "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "disabledDates": "disabledDates"; "title": "title"; "subtitle": "subtitle"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "weekNumber": "weekNumber"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "adaptiveMode": "adaptiveMode"; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; "open": "open"; "close": "close"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate"], never, false, never>;
|
|
698
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "kendo-datepicker", ["kendo-datepicker"], { "focusableId": "focusableId"; "cellTemplateRef": "cellTemplate"; "clearButton": "clearButton"; "inputAttributes": "inputAttributes"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "headerTemplateRef": "headerTemplate"; "footerTemplateRef": "footerTemplate"; "footer": "footer"; "navigationItemTemplateRef": "navigationItemTemplate"; "weekDaysFormat": "weekDaysFormat"; "showOtherMonthDays": "showOtherMonthDays"; "activeView": "activeView"; "bottomView": "bottomView"; "topView": "topView"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "popupSettings": "popupSettings"; "navigation": "navigation"; "min": "min"; "max": "max"; "incompleteDateValidation": "incompleteDateValidation"; "autoCorrectParts": "autoCorrectParts"; "autoSwitchParts": "autoSwitchParts"; "autoSwitchKeys": "autoSwitchKeys"; "enableMouseWheel": "enableMouseWheel"; "allowCaretMode": "allowCaretMode"; "autoFill": "autoFill"; "focusedDate": "focusedDate"; "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "disabledDates": "disabledDates"; "title": "title"; "subtitle": "subtitle"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "weekNumber": "weekNumber"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "adaptiveMode": "adaptiveMode"; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; "open": "open"; "close": "close"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate"], never, false, never>;
|
|
694
699
|
}
|
|
@@ -28,6 +28,10 @@ export declare class DatePickerMessages extends ComponentMessages {
|
|
|
28
28
|
* The title of the **Parent View** button in the header of the Calendar.
|
|
29
29
|
*/
|
|
30
30
|
parentViewButtonTitle: string;
|
|
31
|
+
/**
|
|
32
|
+
* The title of the **Clear** button of the DatePicker.
|
|
33
|
+
*/
|
|
34
|
+
clearTitle: string;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerMessages, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DatePickerMessages, "kendo-datepicker-messages-base", never, { "today": "today"; "toggle": "toggle"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; }, {}, never, never, false, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatePickerMessages, "kendo-datepicker-messages-base", never, { "today": "today"; "toggle": "toggle"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; "clearTitle": "clearTitle"; }, {}, never, never, false, never>;
|
|
33
37
|
}
|
|
@@ -294,6 +294,12 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
294
294
|
* @default false
|
|
295
295
|
*/
|
|
296
296
|
allowCaretMode: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* If set to `true`, renders a clear button after the input text or DateTimePicker value has been changed.
|
|
299
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
300
|
+
* @default false
|
|
301
|
+
*/
|
|
302
|
+
clearButton: boolean;
|
|
297
303
|
/**
|
|
298
304
|
* When enabled, the DateTimePicker will autofill the rest of the date to the current date when the component loses focus.
|
|
299
305
|
*
|
|
@@ -724,5 +730,5 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
724
730
|
private handleDateCompletenessChange;
|
|
725
731
|
private setComponentClasses;
|
|
726
732
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
727
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "kendo-datetimepicker", ["kendo-datetimepicker"], { "focusableId": "focusableId"; "weekDaysFormat": "weekDaysFormat"; "showOtherMonthDays": "showOtherMonthDays"; "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "tabindex": "tabindex"; "disabledDates": "disabledDates"; "popupSettings": "popupSettings"; "title": "title"; "subtitle": "subtitle"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "cancelButton": "cancelButton"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "focusedDate": "focusedDate"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "weekNumber": "weekNumber"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "incompleteDateValidation": "incompleteDateValidation"; "autoCorrectParts": "autoCorrectParts"; "autoSwitchParts": "autoSwitchParts"; "autoSwitchKeys": "autoSwitchKeys"; "enableMouseWheel": "enableMouseWheel"; "allowCaretMode": "allowCaretMode"; "autoFill": "autoFill"; "adaptiveMode": "adaptiveMode"; "inputAttributes": "inputAttributes"; "defaultTab": "defaultTab"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "headerTemplateRef": "headerTemplate"; "footerTemplateRef": "footerTemplate"; "footer": "footer"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate"], never, false, never>;
|
|
733
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "kendo-datetimepicker", ["kendo-datetimepicker"], { "focusableId": "focusableId"; "weekDaysFormat": "weekDaysFormat"; "showOtherMonthDays": "showOtherMonthDays"; "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "tabindex": "tabindex"; "disabledDates": "disabledDates"; "popupSettings": "popupSettings"; "title": "title"; "subtitle": "subtitle"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "cancelButton": "cancelButton"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "focusedDate": "focusedDate"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "weekNumber": "weekNumber"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "incompleteDateValidation": "incompleteDateValidation"; "autoCorrectParts": "autoCorrectParts"; "autoSwitchParts": "autoSwitchParts"; "autoSwitchKeys": "autoSwitchKeys"; "enableMouseWheel": "enableMouseWheel"; "allowCaretMode": "allowCaretMode"; "clearButton": "clearButton"; "autoFill": "autoFill"; "adaptiveMode": "adaptiveMode"; "inputAttributes": "inputAttributes"; "defaultTab": "defaultTab"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "headerTemplateRef": "headerTemplate"; "footerTemplateRef": "footerTemplate"; "footer": "footer"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate"], never, false, never>;
|
|
728
734
|
}
|
|
@@ -88,6 +88,10 @@ export declare class DateTimePickerMessages extends ComponentMessages {
|
|
|
88
88
|
* The label of the **Dayperiod** part in the TimePicker.
|
|
89
89
|
*/
|
|
90
90
|
dayperiod: string;
|
|
91
|
+
/**
|
|
92
|
+
* The title of the **Clear** button of the DateTimePicker.
|
|
93
|
+
*/
|
|
94
|
+
clearTitle: string;
|
|
91
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerMessages, never>;
|
|
92
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimePickerMessages, "kendo-datetimepicker-messages-base", never, { "toggle": "toggle"; "dateTab": "dateTab"; "dateTabLabel": "dateTabLabel"; "timeTab": "timeTab"; "timeTabLabel": "timeTabLabel"; "accept": "accept"; "acceptLabel": "acceptLabel"; "cancel": "cancel"; "cancelLabel": "cancelLabel"; "today": "today"; "now": "now"; "nowLabel": "nowLabel"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; "hour": "hour"; "minute": "minute"; "second": "second"; "millisecond": "millisecond"; "dayperiod": "dayperiod"; }, {}, never, never, false, never>;
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimePickerMessages, "kendo-datetimepicker-messages-base", never, { "toggle": "toggle"; "dateTab": "dateTab"; "dateTabLabel": "dateTabLabel"; "timeTab": "timeTab"; "timeTabLabel": "timeTabLabel"; "accept": "accept"; "acceptLabel": "acceptLabel"; "cancel": "cancel"; "cancelLabel": "cancelLabel"; "today": "today"; "now": "now"; "nowLabel": "nowLabel"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; "hour": "hour"; "minute": "minute"; "second": "second"; "millisecond": "millisecond"; "dayperiod": "dayperiod"; "clearTitle": "clearTitle"; }, {}, never, never, false, never>;
|
|
93
97
|
}
|
|
@@ -19,7 +19,7 @@ import { PickerService } from '../common/picker.service';
|
|
|
19
19
|
import { closest } from '../common/dom-queries';
|
|
20
20
|
import { requiresZoneOnBlur, isPresent, attributeNames } from '../common/utils';
|
|
21
21
|
import { Subscription } from 'rxjs';
|
|
22
|
-
import { caretAltDownIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
22
|
+
import { caretAltDownIcon, caretAltUpIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
23
23
|
import { DateInput } from '@progress/kendo-dateinputs-common';
|
|
24
24
|
import * as i0 from "@angular/core";
|
|
25
25
|
import * as i1 from "@progress/kendo-angular-intl";
|
|
@@ -83,10 +83,20 @@ export class DateInputComponent {
|
|
|
83
83
|
* @hidden
|
|
84
84
|
*/
|
|
85
85
|
this.caretAltUpIcon = caretAltUpIcon;
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
*/
|
|
89
|
+
this.xIcon = xIcon;
|
|
86
90
|
/**
|
|
87
91
|
* @hidden
|
|
88
92
|
*/
|
|
89
93
|
this.caretAltDownIcon = caretAltDownIcon;
|
|
94
|
+
/**
|
|
95
|
+
* If set to `true`, renders a clear button after the input text or DateInput value has been changed.
|
|
96
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
this.clearButton = false;
|
|
90
100
|
/**
|
|
91
101
|
* Sets or gets the `disabled` property of the DateInput and
|
|
92
102
|
* determines whether the component is active
|
|
@@ -259,6 +269,7 @@ export class DateInputComponent {
|
|
|
259
269
|
this.formatSections = { date: false, time: false };
|
|
260
270
|
this.hasMousedown = false;
|
|
261
271
|
this.focusedPriorToMousedown = false;
|
|
272
|
+
this.showClearButton = false;
|
|
262
273
|
/**
|
|
263
274
|
* @hidden
|
|
264
275
|
*/
|
|
@@ -696,6 +707,12 @@ export class DateInputComponent {
|
|
|
696
707
|
this.kendoDateObject?.setValue(this.value);
|
|
697
708
|
this.kendoDate?.refreshElementValue();
|
|
698
709
|
}
|
|
710
|
+
resetInput() {
|
|
711
|
+
this.kendoDateObject?.setValue(null);
|
|
712
|
+
this.kendoDate?.refreshElementValue();
|
|
713
|
+
this.control?.setValue(null);
|
|
714
|
+
this.showClearButton = false;
|
|
715
|
+
}
|
|
699
716
|
/**
|
|
700
717
|
* @hidden
|
|
701
718
|
*/
|
|
@@ -711,6 +728,7 @@ export class DateInputComponent {
|
|
|
711
728
|
*/
|
|
712
729
|
notify() {
|
|
713
730
|
this.ngZone.run(() => {
|
|
731
|
+
this.showClearButton = true;
|
|
714
732
|
this.onControlChange(cloneDate(this.value));
|
|
715
733
|
this.valueChange.emit(cloneDate(this.value));
|
|
716
734
|
});
|
|
@@ -758,6 +776,7 @@ export class DateInputComponent {
|
|
|
758
776
|
* @hidden
|
|
759
777
|
*/
|
|
760
778
|
handleButtonClick(offset) {
|
|
779
|
+
this.showClearButton = true;
|
|
761
780
|
this.arrowDirection = Arrow.None;
|
|
762
781
|
this.kendoDate.focus();
|
|
763
782
|
this.kendoDate.modifyDateSegmentValue(offset);
|
|
@@ -783,6 +802,10 @@ export class DateInputComponent {
|
|
|
783
802
|
}
|
|
784
803
|
onWidgetInputEnd() {
|
|
785
804
|
this.updateIncompleteValidationStatus();
|
|
805
|
+
if (this.clearButton) {
|
|
806
|
+
this.showClearButton = true;
|
|
807
|
+
this.cdr.markForCheck();
|
|
808
|
+
}
|
|
786
809
|
}
|
|
787
810
|
onWidgetFocus({ event: FocuseEvent }) {
|
|
788
811
|
this.isActive = true;
|
|
@@ -869,7 +892,7 @@ export class DateInputComponent {
|
|
|
869
892
|
}
|
|
870
893
|
}
|
|
871
894
|
DateInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.LocalizationService }, { token: i3.PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
872
|
-
DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
895
|
+
DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
873
896
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
874
897
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
875
898
|
{ provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
|
|
@@ -882,6 +905,9 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
882
905
|
|
|
883
906
|
i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
|
|
884
907
|
decrement="Decrease value"
|
|
908
|
+
|
|
909
|
+
i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
|
|
910
|
+
clearTitle="clear"
|
|
885
911
|
>
|
|
886
912
|
</ng-container>
|
|
887
913
|
<input #dateInput
|
|
@@ -907,6 +933,21 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
907
933
|
}"
|
|
908
934
|
[scope]="this"
|
|
909
935
|
/>
|
|
936
|
+
<span
|
|
937
|
+
*ngIf="clearButton && showClearButton"
|
|
938
|
+
class="k-clear-value"
|
|
939
|
+
[attr.title]="localization.get('clearTitle')"
|
|
940
|
+
role="button"
|
|
941
|
+
tabindex="-1"
|
|
942
|
+
(click)="resetInput()"
|
|
943
|
+
(mousedown)="$event.preventDefault()"
|
|
944
|
+
>
|
|
945
|
+
<kendo-icon-wrapper
|
|
946
|
+
name="x"
|
|
947
|
+
[svgIcon]="xIcon"
|
|
948
|
+
>
|
|
949
|
+
</kendo-icon-wrapper>
|
|
950
|
+
</span>
|
|
910
951
|
<span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
|
|
911
952
|
<button
|
|
912
953
|
#spinup
|
|
@@ -966,6 +1007,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
966
1007
|
|
|
967
1008
|
i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
|
|
968
1009
|
decrement="Decrease value"
|
|
1010
|
+
|
|
1011
|
+
i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
|
|
1012
|
+
clearTitle="clear"
|
|
969
1013
|
>
|
|
970
1014
|
</ng-container>
|
|
971
1015
|
<input #dateInput
|
|
@@ -991,6 +1035,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
991
1035
|
}"
|
|
992
1036
|
[scope]="this"
|
|
993
1037
|
/>
|
|
1038
|
+
<span
|
|
1039
|
+
*ngIf="clearButton && showClearButton"
|
|
1040
|
+
class="k-clear-value"
|
|
1041
|
+
[attr.title]="localization.get('clearTitle')"
|
|
1042
|
+
role="button"
|
|
1043
|
+
tabindex="-1"
|
|
1044
|
+
(click)="resetInput()"
|
|
1045
|
+
(mousedown)="$event.preventDefault()"
|
|
1046
|
+
>
|
|
1047
|
+
<kendo-icon-wrapper
|
|
1048
|
+
name="x"
|
|
1049
|
+
[svgIcon]="xIcon"
|
|
1050
|
+
>
|
|
1051
|
+
</kendo-icon-wrapper>
|
|
1052
|
+
</span>
|
|
994
1053
|
<span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
|
|
995
1054
|
<button
|
|
996
1055
|
#spinup
|
|
@@ -1037,6 +1096,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1037
1096
|
type: Input
|
|
1038
1097
|
}], pickerType: [{
|
|
1039
1098
|
type: Input
|
|
1099
|
+
}], clearButton: [{
|
|
1100
|
+
type: Input
|
|
1040
1101
|
}], disabled: [{
|
|
1041
1102
|
type: Input
|
|
1042
1103
|
}], readonly: [{
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class DateInputMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
DateInputMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
DateInputMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputMessages, selector: "kendo-dateinput-messages-base", inputs: { decrement: "decrement", increment: "increment" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
DateInputMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputMessages, selector: "kendo-dateinput-messages-base", inputs: { decrement: "decrement", increment: "increment", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -22,4 +22,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
22
22
|
type: Input
|
|
23
23
|
}], increment: [{
|
|
24
24
|
type: Input
|
|
25
|
+
}], clearTitle: [{
|
|
26
|
+
type: Input
|
|
25
27
|
}] } });
|
|
@@ -42,13 +42,14 @@ import * as i3 from "../common/picker.service";
|
|
|
42
42
|
import * as i4 from "../calendar/services/disabled-dates.service";
|
|
43
43
|
import * as i5 from "@angular/common";
|
|
44
44
|
import * as i6 from "../dateinput/dateinput.component";
|
|
45
|
-
import * as i7 from "../
|
|
46
|
-
import * as i8 from "../calendar/
|
|
47
|
-
import * as i9 from "
|
|
48
|
-
import * as i10 from "@progress/kendo-angular-
|
|
49
|
-
import * as i11 from "@progress/kendo-angular-
|
|
50
|
-
import * as i12 from "@progress/kendo-angular-
|
|
51
|
-
import * as i13 from "
|
|
45
|
+
import * as i7 from "../dateinput/localization/dateinput-custom-messages.component";
|
|
46
|
+
import * as i8 from "../calendar/calendar.component";
|
|
47
|
+
import * as i9 from "../calendar/localization/calendar-custom-messages.component";
|
|
48
|
+
import * as i10 from "@progress/kendo-angular-common";
|
|
49
|
+
import * as i11 from "@progress/kendo-angular-icons";
|
|
50
|
+
import * as i12 from "@progress/kendo-angular-navigation";
|
|
51
|
+
import * as i13 from "@progress/kendo-angular-buttons";
|
|
52
|
+
import * as i14 from "./localization/datepicker-localized-messages.directive";
|
|
52
53
|
const MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min';
|
|
53
54
|
const MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max';
|
|
54
55
|
const VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json';
|
|
@@ -73,6 +74,12 @@ export class DatePickerComponent {
|
|
|
73
74
|
* @hidden
|
|
74
75
|
*/
|
|
75
76
|
this.calendarIcon = calendarIcon;
|
|
77
|
+
/**
|
|
78
|
+
* If set to `true`, renders a clear button after the input text or DatePicker value has been changed.
|
|
79
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
this.clearButton = false;
|
|
76
83
|
/**
|
|
77
84
|
* Toggles the visibility of the Calendar footer.
|
|
78
85
|
* @default false
|
|
@@ -570,9 +577,6 @@ export class DatePickerComponent {
|
|
|
570
577
|
this.toggleCalendar(show);
|
|
571
578
|
}
|
|
572
579
|
}
|
|
573
|
-
get inputElement() {
|
|
574
|
-
return this.wrapper.nativeElement.querySelector('input');
|
|
575
|
-
}
|
|
576
580
|
/**
|
|
577
581
|
* @hidden
|
|
578
582
|
*/
|
|
@@ -777,6 +781,7 @@ export class DatePickerComponent {
|
|
|
777
781
|
*/
|
|
778
782
|
handleChange(value) {
|
|
779
783
|
this.cdr.markForCheck();
|
|
784
|
+
this.dateInput.showClearButton = true;
|
|
780
785
|
this.value = value;
|
|
781
786
|
if (this.show) {
|
|
782
787
|
this.focusInput();
|
|
@@ -1074,7 +1079,7 @@ export class DatePickerComponent {
|
|
|
1074
1079
|
}
|
|
1075
1080
|
}
|
|
1076
1081
|
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i3.PickerService }, { token: i4.DisabledDatesService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1077
|
-
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { focusableId: "focusableId", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], inputAttributes: "inputAttributes", monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer", navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", autoFill: "autoFill", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode", adaptiveMode: "adaptiveMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
1082
|
+
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { focusableId: "focusableId", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], clearButton: "clearButton", inputAttributes: "inputAttributes", monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer", navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", autoFill: "autoFill", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode", adaptiveMode: "adaptiveMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
1078
1083
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
1079
1084
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
1080
1085
|
{ provide: KendoInput, useExisting: forwardRef(() => DatePickerComponent) },
|
|
@@ -1101,6 +1106,9 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1101
1106
|
|
|
1102
1107
|
i18n-parentViewButtonTitle="kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
1103
1108
|
parentViewButtonTitle="Navigate to parent view"
|
|
1109
|
+
|
|
1110
|
+
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
1111
|
+
clearTitle="clear"
|
|
1104
1112
|
>
|
|
1105
1113
|
</ng-container>
|
|
1106
1114
|
<kendo-dateinput
|
|
@@ -1109,6 +1117,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1109
1117
|
pickerType="datepicker"
|
|
1110
1118
|
hasPopup="grid"
|
|
1111
1119
|
[isPopupOpen]="show"
|
|
1120
|
+
[clearButton]="clearButton"
|
|
1112
1121
|
[disabled]="disabled"
|
|
1113
1122
|
[readonly]="readonly || readOnlyInput"
|
|
1114
1123
|
[ariaReadOnly]="readonly"
|
|
@@ -1136,7 +1145,12 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1136
1145
|
[value]="value"
|
|
1137
1146
|
(valueChange)="handleInputChange($event)"
|
|
1138
1147
|
(click)="handleDateInputClick()"
|
|
1139
|
-
|
|
1148
|
+
>
|
|
1149
|
+
<kendo-dateinput-messages
|
|
1150
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1151
|
+
>
|
|
1152
|
+
</kendo-dateinput-messages>
|
|
1153
|
+
</kendo-dateinput>
|
|
1140
1154
|
<button
|
|
1141
1155
|
#toggleButton
|
|
1142
1156
|
type="button"
|
|
@@ -1249,7 +1263,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1249
1263
|
</kendo-calendar-messages>
|
|
1250
1264
|
</kendo-calendar>
|
|
1251
1265
|
</ng-template>
|
|
1252
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: i7.CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type:
|
|
1266
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: i7.DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "component", type: i8.CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: i9.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "directive", type: i10.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i11.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i12.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i12.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i10.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i13.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: i14.DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1253
1267
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
1254
1268
|
type: Component,
|
|
1255
1269
|
args: [{
|
|
@@ -1284,6 +1298,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1284
1298
|
|
|
1285
1299
|
i18n-parentViewButtonTitle="kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
1286
1300
|
parentViewButtonTitle="Navigate to parent view"
|
|
1301
|
+
|
|
1302
|
+
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
1303
|
+
clearTitle="clear"
|
|
1287
1304
|
>
|
|
1288
1305
|
</ng-container>
|
|
1289
1306
|
<kendo-dateinput
|
|
@@ -1292,6 +1309,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1292
1309
|
pickerType="datepicker"
|
|
1293
1310
|
hasPopup="grid"
|
|
1294
1311
|
[isPopupOpen]="show"
|
|
1312
|
+
[clearButton]="clearButton"
|
|
1295
1313
|
[disabled]="disabled"
|
|
1296
1314
|
[readonly]="readonly || readOnlyInput"
|
|
1297
1315
|
[ariaReadOnly]="readonly"
|
|
@@ -1319,7 +1337,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1319
1337
|
[value]="value"
|
|
1320
1338
|
(valueChange)="handleInputChange($event)"
|
|
1321
1339
|
(click)="handleDateInputClick()"
|
|
1322
|
-
|
|
1340
|
+
>
|
|
1341
|
+
<kendo-dateinput-messages
|
|
1342
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1343
|
+
>
|
|
1344
|
+
</kendo-dateinput-messages>
|
|
1345
|
+
</kendo-dateinput>
|
|
1323
1346
|
<button
|
|
1324
1347
|
#toggleButton
|
|
1325
1348
|
type="button"
|
|
@@ -1459,6 +1482,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1459
1482
|
}], cellTemplateRef: [{
|
|
1460
1483
|
type: Input,
|
|
1461
1484
|
args: ['cellTemplate']
|
|
1485
|
+
}], clearButton: [{
|
|
1486
|
+
type: Input
|
|
1462
1487
|
}], inputAttributes: [{
|
|
1463
1488
|
type: Input
|
|
1464
1489
|
}], monthCellTemplate: [{
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class DatePickerMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
DatePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
DatePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
DatePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -28,4 +28,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
28
28
|
type: Input
|
|
29
29
|
}], parentViewButtonTitle: [{
|
|
30
30
|
type: Input
|
|
31
|
+
}], clearTitle: [{
|
|
32
|
+
type: Input
|
|
31
33
|
}] } });
|