@progress/kendo-angular-dateinputs 17.0.0-develop.8 → 17.0.0
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/calendar/calendar.component.d.ts +1 -1
- package/calendar/footer.component.d.ts +1 -1
- package/calendar/for.directive.d.ts +1 -1
- package/calendar/header.component.d.ts +1 -1
- package/calendar/horizontal-view-list.component.d.ts +1 -1
- package/calendar/localization/calendar-messages.d.ts +1 -1
- package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
- package/calendar/models/orientation.d.ts +1 -1
- package/calendar/models/selection-range-end.type.d.ts +1 -1
- package/calendar/models/selection.d.ts +1 -1
- package/calendar/models/type.d.ts +1 -1
- package/calendar/models/view.type.d.ts +1 -1
- package/calendar/multiview-calendar.component.d.ts +1 -1
- package/calendar/navigation.component.d.ts +1 -1
- package/calendar/view-list.component.d.ts +1 -1
- package/calendar/view.component.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/rounded.d.ts +1 -1
- package/common/models/size.d.ts +1 -1
- package/common/models/week-days-format.d.ts +1 -1
- package/dateinput/dateinput.component.d.ts +2 -2
- package/dateinput/localization/messages.d.ts +1 -1
- package/dateinput/models/format-placeholder.model.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +1 -1
- package/datepicker/localization/messages.d.ts +1 -1
- package/daterange/auto-correct-on.type.d.ts +1 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +86 -2
- package/daterange/date-range-selection.directive.d.ts +1 -1
- package/daterange/date-range-start-input.directive.d.ts +1 -1
- package/daterange/date-range.component.d.ts +1 -1
- package/daterange/localization/messages.d.ts +1 -1
- package/datetimepicker/datetimepicker.component.d.ts +1 -1
- package/datetimepicker/localization/messages.d.ts +1 -1
- package/datetimepicker/models/active-tab.type.d.ts +1 -1
- package/{esm2020 → esm2022}/calendar/calendar.component.mjs +277 -167
- package/{esm2020 → esm2022}/calendar/calendar.module.mjs +14 -14
- package/{esm2020 → esm2022}/calendar/calendars.module.mjs +14 -14
- package/{esm2020 → esm2022}/calendar/footer.component.mjs +10 -6
- package/{esm2020 → esm2022}/calendar/for.directive.mjs +13 -4
- package/{esm2020 → esm2022}/calendar/header.component.mjs +46 -29
- package/{esm2020 → esm2022}/calendar/horizontal-view-list.component.mjs +63 -40
- package/{esm2020 → esm2022}/calendar/localization/calendar-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/calendar/localization/calendar-localized-messages.directive.mjs +9 -8
- package/{esm2020/calendar/localization/multiview-calendar-messages.mjs → esm2022/calendar/localization/calendar-messages.mjs} +21 -5
- package/{esm2020 → esm2022}/calendar/localization/multiview-calendar-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/calendar/localization/multiview-calendar-localized-messages.directive.mjs +9 -8
- package/esm2022/calendar/localization/multiview-calendar-messages.mjs +45 -0
- package/{esm2020 → esm2022}/calendar/multiview-calendar.component.mjs +300 -212
- package/{esm2020 → esm2022}/calendar/multiview-calendar.module.mjs +11 -11
- package/{esm2020 → esm2022}/calendar/navigation.component.mjs +34 -15
- package/{esm2020 → esm2022}/calendar/services/bus-view.service.mjs +8 -6
- package/{esm2020 → esm2022}/calendar/services/century-view.service.mjs +15 -17
- package/{esm2020 → esm2022}/calendar/services/decade-view.service.mjs +15 -17
- package/{esm2020 → esm2022}/calendar/services/disabled-dates.service.mjs +12 -14
- package/{esm2020 → esm2022}/calendar/services/dom.service.mjs +21 -3
- package/{esm2020 → esm2022}/calendar/services/month-view.service.mjs +16 -15
- package/{esm2020 → esm2022}/calendar/services/navigation.service.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/services/scroll-sync.service.mjs +11 -3
- package/{esm2020 → esm2022}/calendar/services/selection.service.mjs +5 -3
- package/{esm2020 → esm2022}/calendar/services/weeknames.service.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/services/year-view.service.mjs +16 -15
- package/{esm2020 → esm2022}/calendar/templates/cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/century-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/decade-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/header-title-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/month-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/navigation-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/weeknumber-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/year-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/view-list.component.mjs +68 -37
- package/{esm2020 → esm2022}/calendar/view.component.mjs +50 -24
- package/{esm2020 → esm2022}/common/picker.service.mjs +7 -6
- package/{esm2020 → esm2022}/dateinput/dateinput.component.mjs +282 -231
- package/{esm2020 → esm2022}/dateinput/dateinput.module.mjs +6 -6
- package/{esm2020 → esm2022}/dateinput/localization/dateinput-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/dateinput/localization/dateinput-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/dateinput/localization/messages.mjs +15 -3
- package/{esm2020 → esm2022}/dateinputs.module.mjs +22 -22
- package/{esm2020 → esm2022}/datepicker/datepicker.component.mjs +403 -282
- package/{esm2020 → esm2022}/datepicker/datepicker.module.mjs +16 -16
- package/{esm2020 → esm2022}/datepicker/localization/datepicker-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/datepicker/localization/datepicker-localized-messages.directive.mjs +9 -8
- package/esm2022/datepicker/localization/messages.mjs +57 -0
- package/{esm2020 → esm2022}/daterange/date-range-end-input.directive.mjs +38 -28
- package/{esm2020 → esm2022}/daterange/date-range-input.mjs +19 -13
- package/{esm2020 → esm2022}/daterange/date-range-popup-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/daterange/date-range-popup.component.mjs +324 -87
- package/{esm2020 → esm2022}/daterange/date-range-selection.directive.mjs +41 -36
- package/{esm2020 → esm2022}/daterange/date-range-start-input.directive.mjs +40 -29
- package/{esm2020 → esm2022}/daterange/date-range.component.mjs +31 -14
- package/{esm2020 → esm2022}/daterange/date-range.module.mjs +16 -16
- package/{esm2020 → esm2022}/daterange/date-range.service.mjs +34 -33
- package/{esm2020 → esm2022}/daterange/localization/daterange-popup-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/daterange/localization/daterange-popup-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/daterange/localization/messages.mjs +19 -3
- package/{esm2020 → esm2022}/datetimepicker/datetimepicker.component.mjs +390 -292
- package/{esm2020 → esm2022}/datetimepicker/datetimepicker.module.mjs +22 -22
- package/{esm2020 → esm2022}/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/datetimepicker/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/datetimepicker/localization/messages.mjs +147 -0
- package/{esm2020 → esm2022}/index.mjs +0 -1
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/preventable-event.mjs +2 -3
- package/esm2022/timepicker/localization/messages.mjs +99 -0
- package/{esm2020 → esm2022}/timepicker/localization/timepicker-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/localization/timepicker-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/localization/timeselector-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/localization/timeselector-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/services/dayperiod.service.mjs +7 -3
- package/{esm2020 → esm2022}/timepicker/services/dom.service.mjs +7 -3
- package/{esm2020 → esm2022}/timepicker/services/hours.service.mjs +10 -5
- package/{esm2020 → esm2022}/timepicker/services/milliseconds.service.mjs +9 -4
- package/{esm2020 → esm2022}/timepicker/services/minutes.service.mjs +9 -4
- package/{esm2020 → esm2022}/timepicker/services/seconds.service.mjs +9 -4
- package/{esm2020 → esm2022}/timepicker/timelist.component.mjs +45 -27
- package/{esm2020 → esm2022}/timepicker/timepicker.component.mjs +301 -219
- package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +14 -14
- package/{esm2020 → esm2022}/timepicker/timeselector.component.mjs +96 -73
- package/{esm2020 → esm2022}/virtualization/services/row-height.service.mjs +5 -2
- package/{esm2020 → esm2022}/virtualization/services/scroller.service.mjs +14 -3
- package/{esm2020 → esm2022}/virtualization/virtualization.component.mjs +42 -28
- package/{fesm2020 → fesm2022}/progress-kendo-angular-dateinputs.mjs +3758 -2455
- package/index.d.ts +0 -1
- package/package.json +20 -26
- package/schematics/ngAdd/index.js +1 -1
- package/timepicker/localization/messages.d.ts +1 -1
- package/timepicker/timelist.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +2 -1
- package/timepicker/timeselector.component.d.ts +1 -1
- package/util.d.ts +1 -1
- package/virtualization/services/scroller.service.d.ts +2 -2
- package/virtualization/virtualization.component.d.ts +1 -1
- package/common/adaptive.module.d.ts +0 -18
- package/esm2020/calendar/localization/calendar-messages.mjs +0 -29
- package/esm2020/common/adaptive.module.mjs +0 -44
- package/esm2020/datepicker/localization/messages.mjs +0 -33
- package/esm2020/datetimepicker/localization/messages.mjs +0 -63
- package/esm2020/timepicker/localization/messages.mjs +0 -47
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +0 -19188
- /package/{esm2020 → esm2022}/calendar/models/cell-context.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/keydown.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/navigation-action.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/row-length-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/scrollable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/selection-range-end.type.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/selection-range.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/selection.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/type.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/view-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/view.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/view.type.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/week-days-format.mjs +0 -0
- /package/{esm2020 → esm2022}/common/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/arrow.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/models/format-placeholder.model.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/models/format-settings.model.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/models/incremental-steps.model.mjs +0 -0
- /package/{esm2020 → esm2022}/daterange/auto-correct-on.type.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/models/active-tab.type.mjs +0 -0
- /package/{esm2020 → esm2022}/defaults.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/popup-settings.model.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-dateinputs.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/incremental-steps.model.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/list-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/list-service-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/list-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/time-part.default.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/util.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/disabled-date.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/disabled-dates-range.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/incomplete-date.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/max.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/min.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/time-range.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/virtualization/models/scrollable.interface.mjs +0 -0
|
@@ -43,9 +43,23 @@ const TIME_PART_REGEXP = /hour|minute|second|millisecond/;
|
|
|
43
43
|
* required by the kendo-dateinputs-common package
|
|
44
44
|
*/
|
|
45
45
|
export class DateInputIntl {
|
|
46
|
+
service;
|
|
47
|
+
format;
|
|
48
|
+
toString;
|
|
49
|
+
formatDate;
|
|
50
|
+
parseDate;
|
|
51
|
+
parseNumber;
|
|
52
|
+
formatNumber;
|
|
53
|
+
splitDateFormat;
|
|
54
|
+
numberSymbols;
|
|
55
|
+
firstDay;
|
|
56
|
+
weekendRange;
|
|
57
|
+
dateFieldName;
|
|
58
|
+
dateFormatNames;
|
|
59
|
+
cldr = {};
|
|
60
|
+
localeId;
|
|
46
61
|
constructor(service) {
|
|
47
62
|
this.service = service;
|
|
48
|
-
this.cldr = {};
|
|
49
63
|
this.localeId = service['localeId'];
|
|
50
64
|
this.format = service.format;
|
|
51
65
|
this.toString = service.toString;
|
|
@@ -69,226 +83,26 @@ export class DateInputIntl {
|
|
|
69
83
|
* Represents the [Kendo UI DateInput component for Angular](slug:overview_dateinput).
|
|
70
84
|
*/
|
|
71
85
|
export class DateInputComponent {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
this.caretAltDownIcon = caretAltDownIcon;
|
|
93
|
-
/**
|
|
94
|
-
* If set to `true`, renders a clear button after the input text or DateInput value has been changed.
|
|
95
|
-
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
96
|
-
* @default false
|
|
97
|
-
*/
|
|
98
|
-
this.clearButton = false;
|
|
99
|
-
/**
|
|
100
|
-
* Sets or gets the `disabled` property of the DateInput and
|
|
101
|
-
* determines whether the component is active
|
|
102
|
-
* ([see example]({% slug disabled_dateinput %})).
|
|
103
|
-
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_dateinput#toc-managing-the-dateinput-disabled-state-in-reactive-forms).
|
|
104
|
-
*/
|
|
105
|
-
this.disabled = false;
|
|
106
|
-
/**
|
|
107
|
-
* Sets or gets the read-only state of the DateInput
|
|
108
|
-
* ([see example]({% slug readonly_dateinput %})).
|
|
109
|
-
*
|
|
110
|
-
* @default false
|
|
111
|
-
*/
|
|
112
|
-
this.readonly = false;
|
|
113
|
-
/**
|
|
114
|
-
* Sets the title of the input element of the DateInput.
|
|
115
|
-
*/
|
|
116
|
-
this.title = "";
|
|
117
|
-
/**
|
|
118
|
-
* Sets or gets the `tabIndex` property of the DateInput.
|
|
119
|
-
*/
|
|
120
|
-
this.tabindex = 0;
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
this.role = 'textbox';
|
|
125
|
-
/**
|
|
126
|
-
* @hidden
|
|
127
|
-
*/
|
|
128
|
-
this.ariaReadOnly = false;
|
|
129
|
-
/**
|
|
130
|
-
* @hidden
|
|
131
|
-
*/
|
|
132
|
-
this.isRequired = false;
|
|
133
|
-
/**
|
|
134
|
-
* Specifies the date format that is used to display the input value
|
|
135
|
-
* ([see example]({% slug formats_dateinput %})).
|
|
136
|
-
*
|
|
137
|
-
* Format value options:
|
|
138
|
-
* - `string` - Provide a `string` if a single format is going to be used regardless whether the input is focused or blurred.
|
|
139
|
-
* - [`FormatSettings`]({% slug api_dateinputs_formatsettings %}) - To display different formats when the component is focused or blurred, provide a settings object with specified `inputFormat` and `displayFormat` values.
|
|
140
|
-
*/
|
|
141
|
-
this.format = DEFAULT_FORMAT;
|
|
142
|
-
/**
|
|
143
|
-
* Specifies the hint the DateInput displays when its value is `null`.
|
|
144
|
-
* For more information, refer to the article on
|
|
145
|
-
* [placeholders]({% slug placeholders_dateinput %}).
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```ts
|
|
149
|
-
* _@Component({
|
|
150
|
-
* selector: 'my-app',
|
|
151
|
-
* template: `
|
|
152
|
-
* <kendo-dateinput placeholder="Enter birth date..."></kendo-dateinput>
|
|
153
|
-
* `
|
|
154
|
-
* })
|
|
155
|
-
* export class AppComponent { }
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
this.placeholder = null;
|
|
159
|
-
/**
|
|
160
|
-
* Configures the incremental steps of the DateInput.
|
|
161
|
-
* For more information, refer to the article on
|
|
162
|
-
* [incremental steps]({% slug incrementalsteps_dateinput %}).
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```ts
|
|
166
|
-
* _@Component({
|
|
167
|
-
* selector: 'my-app',
|
|
168
|
-
* template: `
|
|
169
|
-
* <kendo-dateinput [steps]="steps"></kendo-dateinput>
|
|
170
|
-
* `
|
|
171
|
-
* })
|
|
172
|
-
* export class AppComponent {
|
|
173
|
-
* public steps = { year: 10, month: 1, day: 5 };
|
|
174
|
-
* }
|
|
175
|
-
* ```
|
|
176
|
-
*/
|
|
177
|
-
this.steps = {};
|
|
178
|
-
/**
|
|
179
|
-
* Determines whether the built-in min or max validators are to be enforced when a form is being validated.
|
|
180
|
-
*/
|
|
181
|
-
this.rangeValidation = true;
|
|
182
|
-
/**
|
|
183
|
-
* Determines whether to autocorrect invalid segments automatically.
|
|
184
|
-
*
|
|
185
|
-
* @default true
|
|
186
|
-
*/
|
|
187
|
-
this.autoCorrectParts = true;
|
|
188
|
-
/**
|
|
189
|
-
* Determines whether to automatically move to the next segment after the user completes the current one.
|
|
190
|
-
*
|
|
191
|
-
* @default true
|
|
192
|
-
*/
|
|
193
|
-
this.autoSwitchParts = true;
|
|
194
|
-
/**
|
|
195
|
-
* A string array representing custom keys, which will move the focus to the next date format segment.
|
|
196
|
-
*/
|
|
197
|
-
this.autoSwitchKeys = [];
|
|
198
|
-
/**
|
|
199
|
-
* Determines if the users should see a blinking caret inside the Date Input when possible.
|
|
200
|
-
*
|
|
201
|
-
* @default false
|
|
202
|
-
*/
|
|
203
|
-
this.allowCaretMode = false;
|
|
204
|
-
/**
|
|
205
|
-
* When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.
|
|
206
|
-
*
|
|
207
|
-
* @default false
|
|
208
|
-
*/
|
|
209
|
-
this.autoFill = false;
|
|
210
|
-
/**
|
|
211
|
-
* Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
|
|
212
|
-
*/
|
|
213
|
-
this.incompleteDateValidation = false;
|
|
214
|
-
/**
|
|
215
|
-
* The maximum year to assume to be from the current century when typing two-digit year value
|
|
216
|
-
* ([see example]({% slug formats_dateinput %}#toc-two-digit-year-format)).
|
|
217
|
-
*
|
|
218
|
-
* The default value is 68, indicating that typing any value less than 69
|
|
219
|
-
* will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
|
|
220
|
-
*/
|
|
221
|
-
this.twoDigitYearMax = TWO_DIGIT_YEAR_MAX;
|
|
222
|
-
/**
|
|
223
|
-
* Indicates whether the mouse scroll can be used to increase/decrease the time segments values.
|
|
224
|
-
*
|
|
225
|
-
* @default true
|
|
226
|
-
*/
|
|
227
|
-
this.enableMouseWheel = true;
|
|
228
|
-
/**
|
|
229
|
-
* Specifies whether the **Up** and **Down** spin buttons will be rendered.
|
|
230
|
-
* For more information, refer to the article on
|
|
231
|
-
* [spinner buttons]({% slug spinbuttons_dateinput %}).
|
|
232
|
-
*/
|
|
233
|
-
this.spinners = false;
|
|
234
|
-
/**
|
|
235
|
-
* Fires each time the user selects a new value
|
|
236
|
-
* ([see example](slug:events_dateinput)).
|
|
237
|
-
*/
|
|
238
|
-
this.valueChange = new EventEmitter();
|
|
239
|
-
/**
|
|
240
|
-
* @hidden
|
|
241
|
-
* Fires each time the user selects a new value
|
|
242
|
-
* ([see example](slug:events_dateinput)).
|
|
243
|
-
*/
|
|
244
|
-
this.valueUpdate = new EventEmitter();
|
|
245
|
-
/**
|
|
246
|
-
* Fires each time the user focuses the input element
|
|
247
|
-
* ([see example](slug:events_dateinput)).
|
|
248
|
-
*/
|
|
249
|
-
this.onFocus = new EventEmitter();
|
|
250
|
-
/**
|
|
251
|
-
* Fires each time the input element gets blurred
|
|
252
|
-
* ([see example](slug:events_dateinput)).
|
|
253
|
-
*/
|
|
254
|
-
this.onBlur = new EventEmitter();
|
|
255
|
-
this.arrow = Arrow;
|
|
256
|
-
this.arrowDirection = Arrow.None;
|
|
257
|
-
this.formatSections = { date: false, time: false };
|
|
258
|
-
this.hasMousedown = false;
|
|
259
|
-
this.focusedPriorToMousedown = false;
|
|
260
|
-
this.showClearButton = false;
|
|
261
|
-
/**
|
|
262
|
-
* @hidden
|
|
263
|
-
*/
|
|
264
|
-
this.isDateIncomplete = false;
|
|
265
|
-
this.currentFormat = "";
|
|
266
|
-
this.minValidator = noop;
|
|
267
|
-
this.maxValidator = noop;
|
|
268
|
-
this.incompleteValidator = noop;
|
|
269
|
-
this._value = null;
|
|
270
|
-
this._active = false;
|
|
271
|
-
this._focusableId = `dateinput-${nextId++}`;
|
|
272
|
-
this._formatPlaceholder = DEFAULT_FORMAT_PLACEHOLDER;
|
|
273
|
-
this.kendoDate = null;
|
|
274
|
-
this.kendoDateObject = null;
|
|
275
|
-
this.domEvents = [];
|
|
276
|
-
this.onControlChange = noop;
|
|
277
|
-
this.onControlTouched = noop;
|
|
278
|
-
this.onValidatorChange = noop;
|
|
279
|
-
this._size = DEFAULT_SIZE;
|
|
280
|
-
this._rounded = DEFAULT_ROUNDED;
|
|
281
|
-
this._fillMode = DEFAULT_FILL_MODE;
|
|
282
|
-
this.subs = new Subscription();
|
|
283
|
-
this.parsedAttributes = {};
|
|
284
|
-
validatePackage(packageMetadata);
|
|
285
|
-
if (this.pickerService) {
|
|
286
|
-
this.pickerService.input = this;
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
this.ariaReadOnly = null;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
86
|
+
cdr;
|
|
87
|
+
intl;
|
|
88
|
+
renderer;
|
|
89
|
+
wrapper;
|
|
90
|
+
ngZone;
|
|
91
|
+
injector;
|
|
92
|
+
localization;
|
|
93
|
+
pickerService;
|
|
94
|
+
/**
|
|
95
|
+
* @hidden
|
|
96
|
+
*/
|
|
97
|
+
caretAltUpIcon = caretAltUpIcon;
|
|
98
|
+
/**
|
|
99
|
+
* @hidden
|
|
100
|
+
*/
|
|
101
|
+
xIcon = xIcon;
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
caretAltDownIcon = caretAltDownIcon;
|
|
292
106
|
/**
|
|
293
107
|
* @hidden
|
|
294
108
|
*/
|
|
@@ -308,6 +122,42 @@ export class DateInputComponent {
|
|
|
308
122
|
this.focusableId = `${_pickerType}-${nextId}`;
|
|
309
123
|
}
|
|
310
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* If set to `true`, renders a clear button after the input text or DateInput value has been changed.
|
|
127
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
clearButton = false;
|
|
131
|
+
/**
|
|
132
|
+
* Sets or gets the `disabled` property of the DateInput and
|
|
133
|
+
* determines whether the component is active
|
|
134
|
+
* ([see example]({% slug disabled_dateinput %})).
|
|
135
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_dateinput#toc-managing-the-dateinput-disabled-state-in-reactive-forms).
|
|
136
|
+
*/
|
|
137
|
+
disabled = false;
|
|
138
|
+
/**
|
|
139
|
+
* Sets or gets the read-only state of the DateInput
|
|
140
|
+
* ([see example]({% slug readonly_dateinput %})).
|
|
141
|
+
*
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
readonly = false;
|
|
145
|
+
/**
|
|
146
|
+
* Sets the title of the input element of the DateInput.
|
|
147
|
+
*/
|
|
148
|
+
title = "";
|
|
149
|
+
/**
|
|
150
|
+
* Sets or gets the `tabIndex` property of the DateInput.
|
|
151
|
+
*/
|
|
152
|
+
tabindex = 0;
|
|
153
|
+
/**
|
|
154
|
+
* @hidden
|
|
155
|
+
*/
|
|
156
|
+
role = 'textbox';
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
ariaReadOnly = false;
|
|
311
161
|
/**
|
|
312
162
|
* @hidden
|
|
313
163
|
*/
|
|
@@ -317,6 +167,19 @@ export class DateInputComponent {
|
|
|
317
167
|
get tabIndex() {
|
|
318
168
|
return this.tabindex;
|
|
319
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* @hidden
|
|
172
|
+
*/
|
|
173
|
+
isRequired = false;
|
|
174
|
+
/**
|
|
175
|
+
* Specifies the date format that is used to display the input value
|
|
176
|
+
* ([see example]({% slug formats_dateinput %})).
|
|
177
|
+
*
|
|
178
|
+
* Format value options:
|
|
179
|
+
* - `string` - Provide a `string` if a single format is going to be used regardless whether the input is focused or blurred.
|
|
180
|
+
* - [`FormatSettings`]({% slug api_dateinputs_formatsettings %}) - To display different formats when the component is focused or blurred, provide a settings object with specified `inputFormat` and `displayFormat` values.
|
|
181
|
+
*/
|
|
182
|
+
format = DEFAULT_FORMAT;
|
|
320
183
|
/**
|
|
321
184
|
* Defines the descriptions of the format sections in the input field.
|
|
322
185
|
* For more information, refer to the article on
|
|
@@ -369,6 +232,104 @@ export class DateInputComponent {
|
|
|
369
232
|
get formatPlaceholder() {
|
|
370
233
|
return this._formatPlaceholder;
|
|
371
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Specifies the hint the DateInput displays when its value is `null`.
|
|
237
|
+
* For more information, refer to the article on
|
|
238
|
+
* [placeholders]({% slug placeholders_dateinput %}).
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```ts
|
|
242
|
+
* _@Component({
|
|
243
|
+
* selector: 'my-app',
|
|
244
|
+
* template: `
|
|
245
|
+
* <kendo-dateinput placeholder="Enter birth date..."></kendo-dateinput>
|
|
246
|
+
* `
|
|
247
|
+
* })
|
|
248
|
+
* export class AppComponent { }
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
251
|
+
placeholder = null;
|
|
252
|
+
/**
|
|
253
|
+
* Configures the incremental steps of the DateInput.
|
|
254
|
+
* For more information, refer to the article on
|
|
255
|
+
* [incremental steps]({% slug incrementalsteps_dateinput %}).
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```ts
|
|
259
|
+
* _@Component({
|
|
260
|
+
* selector: 'my-app',
|
|
261
|
+
* template: `
|
|
262
|
+
* <kendo-dateinput [steps]="steps"></kendo-dateinput>
|
|
263
|
+
* `
|
|
264
|
+
* })
|
|
265
|
+
* export class AppComponent {
|
|
266
|
+
* public steps = { year: 10, month: 1, day: 5 };
|
|
267
|
+
* }
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
steps = {};
|
|
271
|
+
/**
|
|
272
|
+
* Specifies the biggest date that is valid
|
|
273
|
+
* ([see example]({% slug dateranges_dateinput %})).
|
|
274
|
+
* By default, the `max` value is `2099-12-31`.
|
|
275
|
+
*/
|
|
276
|
+
max;
|
|
277
|
+
/**
|
|
278
|
+
* Specifies the smallest date that is valid
|
|
279
|
+
* ([see example]({% slug dateranges_dateinput %})).
|
|
280
|
+
* By default, the `min` value is `1900-1-1`.
|
|
281
|
+
*/
|
|
282
|
+
min;
|
|
283
|
+
/**
|
|
284
|
+
* Determines whether the built-in min or max validators are to be enforced when a form is being validated.
|
|
285
|
+
*/
|
|
286
|
+
rangeValidation = true;
|
|
287
|
+
/**
|
|
288
|
+
* Determines whether to autocorrect invalid segments automatically.
|
|
289
|
+
*
|
|
290
|
+
* @default true
|
|
291
|
+
*/
|
|
292
|
+
autoCorrectParts = true;
|
|
293
|
+
/**
|
|
294
|
+
* Determines whether to automatically move to the next segment after the user completes the current one.
|
|
295
|
+
*
|
|
296
|
+
* @default true
|
|
297
|
+
*/
|
|
298
|
+
autoSwitchParts = true;
|
|
299
|
+
/**
|
|
300
|
+
* A string array representing custom keys, which will move the focus to the next date format segment.
|
|
301
|
+
*/
|
|
302
|
+
autoSwitchKeys = [];
|
|
303
|
+
/**
|
|
304
|
+
* Determines if the users should see a blinking caret inside the Date Input when possible.
|
|
305
|
+
*
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
allowCaretMode = false;
|
|
309
|
+
/**
|
|
310
|
+
* When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.
|
|
311
|
+
*
|
|
312
|
+
* @default false
|
|
313
|
+
*/
|
|
314
|
+
autoFill = false;
|
|
315
|
+
/**
|
|
316
|
+
* Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
|
|
317
|
+
*/
|
|
318
|
+
incompleteDateValidation = false;
|
|
319
|
+
/**
|
|
320
|
+
* The maximum year to assume to be from the current century when typing two-digit year value
|
|
321
|
+
* ([see example]({% slug formats_dateinput %}#toc-two-digit-year-format)).
|
|
322
|
+
*
|
|
323
|
+
* The default value is 68, indicating that typing any value less than 69
|
|
324
|
+
* will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
|
|
325
|
+
*/
|
|
326
|
+
twoDigitYearMax = TWO_DIGIT_YEAR_MAX;
|
|
327
|
+
/**
|
|
328
|
+
* Indicates whether the mouse scroll can be used to increase/decrease the time segments values.
|
|
329
|
+
*
|
|
330
|
+
* @default true
|
|
331
|
+
*/
|
|
332
|
+
enableMouseWheel = true;
|
|
372
333
|
/**
|
|
373
334
|
* Specifies the value of the DateInput component.
|
|
374
335
|
*
|
|
@@ -383,6 +344,20 @@ export class DateInputComponent {
|
|
|
383
344
|
get value() {
|
|
384
345
|
return this._value;
|
|
385
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Specifies whether the **Up** and **Down** spin buttons will be rendered.
|
|
349
|
+
* For more information, refer to the article on
|
|
350
|
+
* [spinner buttons]({% slug spinbuttons_dateinput %}).
|
|
351
|
+
*/
|
|
352
|
+
spinners = false;
|
|
353
|
+
/**
|
|
354
|
+
* @hidden
|
|
355
|
+
*/
|
|
356
|
+
isPopupOpen;
|
|
357
|
+
/**
|
|
358
|
+
* @hidden
|
|
359
|
+
*/
|
|
360
|
+
hasPopup;
|
|
386
361
|
/**
|
|
387
362
|
* Sets the size of the component.
|
|
388
363
|
*
|
|
@@ -467,6 +442,31 @@ export class DateInputComponent {
|
|
|
467
442
|
get inputAttributes() {
|
|
468
443
|
return this._inputAttributes;
|
|
469
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* Fires each time the user selects a new value
|
|
447
|
+
* ([see example](slug:events_dateinput)).
|
|
448
|
+
*/
|
|
449
|
+
valueChange = new EventEmitter();
|
|
450
|
+
/**
|
|
451
|
+
* @hidden
|
|
452
|
+
* Fires each time the user selects a new value
|
|
453
|
+
* ([see example](slug:events_dateinput)).
|
|
454
|
+
*/
|
|
455
|
+
valueUpdate = new EventEmitter();
|
|
456
|
+
/**
|
|
457
|
+
* Fires each time the user focuses the input element
|
|
458
|
+
* ([see example](slug:events_dateinput)).
|
|
459
|
+
*/
|
|
460
|
+
onFocus = new EventEmitter();
|
|
461
|
+
/**
|
|
462
|
+
* Fires each time the input element gets blurred
|
|
463
|
+
* ([see example](slug:events_dateinput)).
|
|
464
|
+
*/
|
|
465
|
+
onBlur = new EventEmitter();
|
|
466
|
+
/**
|
|
467
|
+
* @hidden
|
|
468
|
+
*/
|
|
469
|
+
dateInput;
|
|
470
470
|
get wrapperClass() {
|
|
471
471
|
return true;
|
|
472
472
|
}
|
|
@@ -524,6 +524,40 @@ export class DateInputComponent {
|
|
|
524
524
|
intlService: new DateInputIntl(this.intl)
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
+
arrow = Arrow;
|
|
528
|
+
arrowDirection = Arrow.None;
|
|
529
|
+
formatSections = { date: false, time: false };
|
|
530
|
+
hasMousedown = false;
|
|
531
|
+
focusedPriorToMousedown = false;
|
|
532
|
+
showClearButton = false;
|
|
533
|
+
/**
|
|
534
|
+
* @hidden
|
|
535
|
+
*/
|
|
536
|
+
isDateIncomplete = false;
|
|
537
|
+
currentFormat = "";
|
|
538
|
+
spinup;
|
|
539
|
+
spindown;
|
|
540
|
+
minValidator = noop;
|
|
541
|
+
maxValidator = noop;
|
|
542
|
+
incompleteValidator = noop;
|
|
543
|
+
_value = null;
|
|
544
|
+
_active = false;
|
|
545
|
+
_focusableId = `dateinput-${nextId++}`;
|
|
546
|
+
_formatPlaceholder = DEFAULT_FORMAT_PLACEHOLDER;
|
|
547
|
+
kendoDate = null;
|
|
548
|
+
kendoDateObject = null;
|
|
549
|
+
domEvents = [];
|
|
550
|
+
ngControl;
|
|
551
|
+
onControlChange = noop;
|
|
552
|
+
onControlTouched = noop;
|
|
553
|
+
onValidatorChange = noop;
|
|
554
|
+
_size = DEFAULT_SIZE;
|
|
555
|
+
_rounded = DEFAULT_ROUNDED;
|
|
556
|
+
_fillMode = DEFAULT_FILL_MODE;
|
|
557
|
+
control;
|
|
558
|
+
subs = new Subscription();
|
|
559
|
+
_inputAttributes;
|
|
560
|
+
parsedAttributes = {};
|
|
527
561
|
get defaultAttributes() {
|
|
528
562
|
return {
|
|
529
563
|
'aria-readonly': this.ariaReadOnly,
|
|
@@ -547,6 +581,23 @@ export class DateInputComponent {
|
|
|
547
581
|
role: this.role
|
|
548
582
|
};
|
|
549
583
|
}
|
|
584
|
+
constructor(cdr, intl, renderer, wrapper, ngZone, injector, localization, pickerService) {
|
|
585
|
+
this.cdr = cdr;
|
|
586
|
+
this.intl = intl;
|
|
587
|
+
this.renderer = renderer;
|
|
588
|
+
this.wrapper = wrapper;
|
|
589
|
+
this.ngZone = ngZone;
|
|
590
|
+
this.injector = injector;
|
|
591
|
+
this.localization = localization;
|
|
592
|
+
this.pickerService = pickerService;
|
|
593
|
+
validatePackage(packageMetadata);
|
|
594
|
+
if (this.pickerService) {
|
|
595
|
+
this.pickerService.input = this;
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
this.ariaReadOnly = null;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
550
601
|
/**
|
|
551
602
|
* @hidden
|
|
552
603
|
* Used by the TextBoxContainer to determine if the component is empty
|
|
@@ -890,15 +941,14 @@ export class DateInputComponent {
|
|
|
890
941
|
const attributesToRender = Object.assign({}, this.mutableAttributes, this.parsedAttributes);
|
|
891
942
|
setHTMLAttributes(attributesToRender, this.renderer, this.dateInput.nativeElement, this.ngZone);
|
|
892
943
|
}
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
], viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true, static: true }, { propertyName: "spinup", first: true, predicate: ["spinup"], descendants: true }, { propertyName: "spindown", first: true, predicate: ["spindown"], descendants: true }], exportAs: ["kendo-dateinput"], usesOnChanges: true, ngImport: i0, template: `
|
|
944
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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 });
|
|
945
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateInputComponent, isStandalone: true, 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: [
|
|
946
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
947
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
948
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
|
|
949
|
+
{ provide: KendoInput, useExisting: forwardRef(() => DateInputComponent) },
|
|
950
|
+
LocalizationService
|
|
951
|
+
], viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true, static: true }, { propertyName: "spinup", first: true, predicate: ["spinup"], descendants: true }, { propertyName: "spindown", first: true, predicate: ["spindown"], descendants: true }], exportAs: ["kendo-dateinput"], usesOnChanges: true, ngImport: i0, template: `
|
|
902
952
|
<ng-container kendoDateInputLocalizedMessages
|
|
903
953
|
i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"
|
|
904
954
|
increment="Increase value"
|
|
@@ -987,7 +1037,8 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
987
1037
|
</button>
|
|
988
1038
|
</span>
|
|
989
1039
|
`, isInline: true, dependencies: [{ kind: "directive", type: DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
990
|
-
|
|
1040
|
+
}
|
|
1041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputComponent, decorators: [{
|
|
991
1042
|
type: Component,
|
|
992
1043
|
args: [{
|
|
993
1044
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -14,13 +14,13 @@ import * as i2 from "./dateinput.component";
|
|
|
14
14
|
* definition for the DateInput component.
|
|
15
15
|
*/
|
|
16
16
|
export class DateInputModule {
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
18
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DateInputModule, imports: [i1.DateInputCustomMessagesComponent, i2.DateInputComponent], exports: [i1.DateInputCustomMessagesComponent, i2.DateInputComponent] });
|
|
19
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputModule, providers: [
|
|
20
|
+
IconsService
|
|
21
|
+
], imports: [i2.DateInputComponent] });
|
|
17
22
|
}
|
|
18
|
-
|
|
19
|
-
DateInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, imports: [i1.DateInputCustomMessagesComponent, i2.DateInputComponent], exports: [i1.DateInputCustomMessagesComponent, i2.DateInputComponent] });
|
|
20
|
-
DateInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, providers: [
|
|
21
|
-
IconsService
|
|
22
|
-
], imports: [KENDO_DATEINPUT] });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, decorators: [{
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputModule, decorators: [{
|
|
24
24
|
type: NgModule,
|
|
25
25
|
args: [{
|
|
26
26
|
exports: [...KENDO_DATEINPUT],
|
|
@@ -11,6 +11,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
11
11
|
* Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
|
|
12
12
|
*/
|
|
13
13
|
export class DateInputCustomMessagesComponent extends DateInputMessages {
|
|
14
|
+
service;
|
|
14
15
|
constructor(service) {
|
|
15
16
|
super();
|
|
16
17
|
this.service = service;
|
|
@@ -18,15 +19,15 @@ export class DateInputCustomMessagesComponent extends DateInputMessages {
|
|
|
18
19
|
get override() {
|
|
19
20
|
return true;
|
|
20
21
|
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateInputCustomMessagesComponent, isStandalone: true, selector: "kendo-dateinput-messages", providers: [
|
|
24
|
+
{
|
|
25
|
+
provide: DateInputMessages,
|
|
26
|
+
useExisting: forwardRef(() => DateInputCustomMessagesComponent)
|
|
27
|
+
}
|
|
28
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
21
29
|
}
|
|
22
|
-
|
|
23
|
-
DateInputCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputCustomMessagesComponent, isStandalone: true, selector: "kendo-dateinput-messages", providers: [
|
|
24
|
-
{
|
|
25
|
-
provide: DateInputMessages,
|
|
26
|
-
useExisting: forwardRef(() => DateInputCustomMessagesComponent)
|
|
27
|
-
}
|
|
28
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, decorators: [{
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputCustomMessagesComponent, decorators: [{
|
|
30
31
|
type: Component,
|
|
31
32
|
args: [{
|
|
32
33
|
providers: [
|
package/{esm2020 → esm2022}/dateinput/localization/dateinput-localized-messages.directive.mjs
RENAMED
|
@@ -11,19 +11,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class DateInputLocalizedMessagesDirective extends DateInputMessages {
|
|
14
|
+
service;
|
|
14
15
|
constructor(service) {
|
|
15
16
|
super();
|
|
16
17
|
this.service = service;
|
|
17
18
|
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateInputLocalizedMessagesDirective, isStandalone: true, selector: "[kendoDateInputLocalizedMessages]", providers: [
|
|
21
|
+
{
|
|
22
|
+
provide: DateInputMessages,
|
|
23
|
+
useExisting: forwardRef(() => DateInputLocalizedMessagesDirective)
|
|
24
|
+
}
|
|
25
|
+
], usesInheritance: true, ngImport: i0 });
|
|
18
26
|
}
|
|
19
|
-
|
|
20
|
-
DateInputLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputLocalizedMessagesDirective, isStandalone: true, selector: "[kendoDateInputLocalizedMessages]", providers: [
|
|
21
|
-
{
|
|
22
|
-
provide: DateInputMessages,
|
|
23
|
-
useExisting: forwardRef(() => DateInputLocalizedMessagesDirective)
|
|
24
|
-
}
|
|
25
|
-
], usesInheritance: true, ngImport: i0 });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputLocalizedMessagesDirective, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateInputLocalizedMessagesDirective, decorators: [{
|
|
27
28
|
type: Directive,
|
|
28
29
|
args: [{
|
|
29
30
|
providers: [
|