@progress/kendo-angular-dateinputs 17.0.0-develop.9 → 17.0.1-develop.1
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
|
@@ -42,190 +42,127 @@ const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/date
|
|
|
42
42
|
const INTL_DATE_FORMAT = 'https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md';
|
|
43
43
|
const formatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.millisecond}|${TIME_PART.dayperiod}|literal`);
|
|
44
44
|
const ACCEPT_BUTTON_SELECTOR = '.k-button.k-time-accept';
|
|
45
|
+
const CANCEL_BUTTON_SELECTOR = '.k-button.k-time-cancel';
|
|
45
46
|
/**
|
|
46
47
|
* Represents the [Kendo UI TimePicker component for Angular](slug:overview_timepicker).
|
|
47
48
|
*/
|
|
48
49
|
export class TimePickerComponent extends MultiTabStop {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
166
|
-
*/
|
|
167
|
-
this.adaptiveMode = 'none';
|
|
168
|
-
/**
|
|
169
|
-
* Fires each time the user selects a new value
|
|
170
|
-
* ([see example](slug:events_timepicker)).
|
|
171
|
-
*/
|
|
172
|
-
this.valueChange = new EventEmitter();
|
|
173
|
-
/**
|
|
174
|
-
* Fires each time the user focuses the input element
|
|
175
|
-
* ([see example](slug:events_timepicker)).
|
|
176
|
-
*/
|
|
177
|
-
this.onFocus = new EventEmitter();
|
|
178
|
-
/**
|
|
179
|
-
* Fires each time the input element gets blurred
|
|
180
|
-
* ([see example](slug:events_timepicker)).
|
|
181
|
-
*/
|
|
182
|
-
this.onBlur = new EventEmitter();
|
|
183
|
-
/**
|
|
184
|
-
* Fires each time the popup is about to open
|
|
185
|
-
* ([see example](slug:events_timepicker)).
|
|
186
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
187
|
-
*/
|
|
188
|
-
this.open = new EventEmitter();
|
|
189
|
-
/**
|
|
190
|
-
* Fires each time the popup is about to close
|
|
191
|
-
* ([see example](slug:events_timepicker)).
|
|
192
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
193
|
-
*/
|
|
194
|
-
this.close = new EventEmitter();
|
|
195
|
-
/**
|
|
196
|
-
* @hidden
|
|
197
|
-
*/
|
|
198
|
-
this.escape = new EventEmitter();
|
|
199
|
-
/**
|
|
200
|
-
* @hidden
|
|
201
|
-
*/
|
|
202
|
-
this.wrapperClasses = true;
|
|
203
|
-
/**
|
|
204
|
-
* @hidden
|
|
205
|
-
*/
|
|
206
|
-
this.xIcon = xIcon;
|
|
207
|
-
this.onControlChange = noop;
|
|
208
|
-
this.onControlTouched = noop;
|
|
209
|
-
this.onValidatorChange = noop;
|
|
210
|
-
this.resolvedPromise = Promise.resolve(null);
|
|
211
|
-
this.timeRangeValidateFn = noop;
|
|
212
|
-
this.incompleteValidator = noop;
|
|
213
|
-
this._min = cloneDate(MIN_TIME);
|
|
214
|
-
this._max = cloneDate(MAX_TIME);
|
|
215
|
-
this._popupSettings = { animate: true };
|
|
216
|
-
this._show = false;
|
|
217
|
-
this._steps = {};
|
|
218
|
-
this._value = null;
|
|
219
|
-
this._active = false;
|
|
220
|
-
this.domEvents = [];
|
|
221
|
-
this._size = DEFAULT_SIZE;
|
|
222
|
-
this._rounded = DEFAULT_ROUNDED;
|
|
223
|
-
this._fillMode = DEFAULT_FILL_MODE;
|
|
224
|
-
validatePackage(packageMetadata);
|
|
225
|
-
this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
|
|
226
|
-
this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
|
|
227
|
-
this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)));
|
|
228
|
-
}
|
|
50
|
+
bus;
|
|
51
|
+
zone;
|
|
52
|
+
localization;
|
|
53
|
+
cdr;
|
|
54
|
+
popupService;
|
|
55
|
+
wrapper;
|
|
56
|
+
renderer;
|
|
57
|
+
injector;
|
|
58
|
+
pickerService;
|
|
59
|
+
intl;
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
clockIcon = clockIcon;
|
|
64
|
+
container;
|
|
65
|
+
popupTemplate;
|
|
66
|
+
toggleButton;
|
|
67
|
+
actionSheet;
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
focusableId;
|
|
72
|
+
/**
|
|
73
|
+
* Sets or gets the `disabled` property of the TimePicker and
|
|
74
|
+
* determines whether the component is active
|
|
75
|
+
* ([see example]({% slug disabled_timepicker %})).
|
|
76
|
+
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_timepicker#toc-managing-the-timepicker-disabled-state-in-reactive-forms).
|
|
77
|
+
*/
|
|
78
|
+
disabled = false;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the read-only state of the TimePicker
|
|
81
|
+
* ([see example]({% slug readonly_timepicker %}#toc-read-only-timepicker)).
|
|
82
|
+
*
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
readonly = false;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the read-only state of the TimePicker input field
|
|
88
|
+
* ([see example]({% slug readonly_timepicker %}#toc-read-only-input)).
|
|
89
|
+
*
|
|
90
|
+
* > Note that if you set the [`readonly`]({% slug api_dateinputs_timepickercomponent %}#toc-readonly) property value to `true`,
|
|
91
|
+
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
92
|
+
*/
|
|
93
|
+
readOnlyInput = false;
|
|
94
|
+
/**
|
|
95
|
+
* If set to `true`, renders a clear button after the input text or TimePicker 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
|
+
clearButton = false;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies the time format that is used to display the input value
|
|
102
|
+
* ([see example]({% slug formats_timepicker %})).
|
|
103
|
+
*/
|
|
104
|
+
format = 't';
|
|
105
|
+
/**
|
|
106
|
+
* Defines the descriptions of the format sections in the input field.
|
|
107
|
+
* For more information, refer to the article on
|
|
108
|
+
* [placeholders]({% slug placeholders_timepicker %}).
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* _@Component({
|
|
113
|
+
* selector: 'my-app',
|
|
114
|
+
* template: `
|
|
115
|
+
* <div class="row example-wrapper" [style.min-height.px]="450">
|
|
116
|
+
* <div class="col-xs-12 col-md-6 example-col">
|
|
117
|
+
* <p>Full-length format description:</p>
|
|
118
|
+
* <kendo-timepicker formatPlaceholder="wide"></kendo-timepicker>
|
|
119
|
+
* </div>
|
|
120
|
+
*
|
|
121
|
+
* <div class="col-xs-12 col-md-6 example-col">
|
|
122
|
+
* <p>Narrow-length format description:</p>
|
|
123
|
+
* <kendo-timepicker formatPlaceholder="narrow"></kendo-timepicker>
|
|
124
|
+
* </div>
|
|
125
|
+
*
|
|
126
|
+
* <div class="col-xs-12 col-md-6 example-col">
|
|
127
|
+
* <p>Short-length format description:</p>
|
|
128
|
+
* <kendo-timepicker formatPlaceholder="short"></kendo-timepicker>
|
|
129
|
+
* </div>
|
|
130
|
+
*
|
|
131
|
+
* <div class="col-xs-12 col-md-6 example-col">
|
|
132
|
+
* <p>Display defined format:</p>
|
|
133
|
+
* <kendo-timepicker format="HH:mm:ss" formatPlaceholder="formatPattern"></kendo-timepicker>
|
|
134
|
+
* </div>
|
|
135
|
+
*
|
|
136
|
+
* <div class="col-xs-12 col-md-6 example-col">
|
|
137
|
+
* <p>Custom defined format descriptions</p>
|
|
138
|
+
* <kendo-timepicker format="HH:mm:ss"
|
|
139
|
+
* [formatPlaceholder]="{ hour: 'H', minute: 'm', second: 's' }"
|
|
140
|
+
* ></kendo-timepicker>
|
|
141
|
+
* </div>
|
|
142
|
+
* </div>
|
|
143
|
+
* `
|
|
144
|
+
* })
|
|
145
|
+
* export class AppComponent { }
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
formatPlaceholder;
|
|
149
|
+
/**
|
|
150
|
+
* Specifies the hint the TimePicker displays when its value is `null`.
|
|
151
|
+
* For more information, refer to the article on
|
|
152
|
+
* [placeholders]({% slug placeholders_timepicker %}).
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* _@Component({
|
|
157
|
+
* selector: 'my-app',
|
|
158
|
+
* template: `
|
|
159
|
+
* <kendo-timepicker placeholder="Enter start..."></kendo-timepicker>
|
|
160
|
+
* `
|
|
161
|
+
* })
|
|
162
|
+
* export class AppComponent { }
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
placeholder = null;
|
|
229
166
|
/**
|
|
230
167
|
* Specifies the smallest valid time value
|
|
231
168
|
* ([see example]({% slug timeranges_timepicker %})).
|
|
@@ -246,6 +183,42 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
246
183
|
get max() {
|
|
247
184
|
return this._max;
|
|
248
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
|
|
188
|
+
*/
|
|
189
|
+
incompleteDateValidation = false;
|
|
190
|
+
/**
|
|
191
|
+
* Determines whether to automatically move to the next segment after the user completes the current one.
|
|
192
|
+
*
|
|
193
|
+
* @default true
|
|
194
|
+
*/
|
|
195
|
+
autoSwitchParts = true;
|
|
196
|
+
/**
|
|
197
|
+
* A string array representing custom keys, which will move the focus to the next date format segment.
|
|
198
|
+
*/
|
|
199
|
+
autoSwitchKeys = [];
|
|
200
|
+
/**
|
|
201
|
+
* Indicates whether the mouse scroll can be used to increase/decrease the time segments values.
|
|
202
|
+
*
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
enableMouseWheel = true;
|
|
206
|
+
/**
|
|
207
|
+
* Determines if the users should see a blinking caret inside the Date Input when possible.
|
|
208
|
+
*
|
|
209
|
+
* @default false
|
|
210
|
+
*/
|
|
211
|
+
allowCaretMode = false;
|
|
212
|
+
/**
|
|
213
|
+
* Determines whether to display the **Cancel** button in the popup.
|
|
214
|
+
*/
|
|
215
|
+
cancelButton = true;
|
|
216
|
+
/**
|
|
217
|
+
* Determines whether to display the **Now** button in the popup.
|
|
218
|
+
*
|
|
219
|
+
* > If the current time is out of range or the incremental step is greater than `1`, the **Now** button will be hidden.
|
|
220
|
+
*/
|
|
221
|
+
nowButton = true;
|
|
249
222
|
/**
|
|
250
223
|
* Configures the incremental steps of the TimePicker.
|
|
251
224
|
* For more information, refer to the article on
|
|
@@ -287,6 +260,10 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
287
260
|
get popupSettings() {
|
|
288
261
|
return this._popupSettings;
|
|
289
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Sets or gets the `tabindex` property of the TimePicker.
|
|
265
|
+
*/
|
|
266
|
+
tabindex = 0;
|
|
290
267
|
/**
|
|
291
268
|
* @hidden
|
|
292
269
|
*/
|
|
@@ -296,6 +273,11 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
296
273
|
get tabIndex() {
|
|
297
274
|
return this.tabindex;
|
|
298
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Sets the title of the input element of the TimePicker and the title text rendered
|
|
278
|
+
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
279
|
+
*/
|
|
280
|
+
title = "";
|
|
299
281
|
/**
|
|
300
282
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
301
283
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
@@ -306,6 +288,15 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
306
288
|
get subtitle() {
|
|
307
289
|
return this._subtitle || this.placeholder;
|
|
308
290
|
}
|
|
291
|
+
_subtitle;
|
|
292
|
+
/**
|
|
293
|
+
* Determines whether the built-in min or max validators are enforced when a form is being validated.
|
|
294
|
+
*/
|
|
295
|
+
rangeValidation = true;
|
|
296
|
+
/**
|
|
297
|
+
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
298
|
+
*/
|
|
299
|
+
adaptiveMode = 'none';
|
|
309
300
|
/**
|
|
310
301
|
* Specifies the value of the TimePicker component.
|
|
311
302
|
*
|
|
@@ -388,6 +379,45 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
388
379
|
get fillMode() {
|
|
389
380
|
return this._fillMode;
|
|
390
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed.
|
|
384
|
+
*/
|
|
385
|
+
inputAttributes;
|
|
386
|
+
/**
|
|
387
|
+
* Fires each time the user selects a new value
|
|
388
|
+
* ([see example](slug:events_timepicker)).
|
|
389
|
+
*/
|
|
390
|
+
valueChange = new EventEmitter();
|
|
391
|
+
/**
|
|
392
|
+
* Fires each time the user focuses the input element
|
|
393
|
+
* ([see example](slug:events_timepicker)).
|
|
394
|
+
*/
|
|
395
|
+
onFocus = new EventEmitter();
|
|
396
|
+
/**
|
|
397
|
+
* Fires each time the input element gets blurred
|
|
398
|
+
* ([see example](slug:events_timepicker)).
|
|
399
|
+
*/
|
|
400
|
+
onBlur = new EventEmitter();
|
|
401
|
+
/**
|
|
402
|
+
* Fires each time the popup is about to open
|
|
403
|
+
* ([see example](slug:events_timepicker)).
|
|
404
|
+
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
405
|
+
*/
|
|
406
|
+
open = new EventEmitter();
|
|
407
|
+
/**
|
|
408
|
+
* Fires each time the popup is about to close
|
|
409
|
+
* ([see example](slug:events_timepicker)).
|
|
410
|
+
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
411
|
+
*/
|
|
412
|
+
close = new EventEmitter();
|
|
413
|
+
/**
|
|
414
|
+
* @hidden
|
|
415
|
+
*/
|
|
416
|
+
escape = new EventEmitter();
|
|
417
|
+
/**
|
|
418
|
+
* @hidden
|
|
419
|
+
*/
|
|
420
|
+
wrapperClasses = true;
|
|
391
421
|
/**
|
|
392
422
|
* @hidden
|
|
393
423
|
*/
|
|
@@ -397,6 +427,11 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
397
427
|
get popupUID() {
|
|
398
428
|
return `k-timepicker-popup-${this.bus.calendarId}-`;
|
|
399
429
|
}
|
|
430
|
+
popupRef;
|
|
431
|
+
/**
|
|
432
|
+
* @hidden
|
|
433
|
+
*/
|
|
434
|
+
xIcon = xIcon;
|
|
400
435
|
get isActive() {
|
|
401
436
|
return this._active;
|
|
402
437
|
}
|
|
@@ -455,9 +490,51 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
455
490
|
get adaptiveAcceptButton() {
|
|
456
491
|
return this.actionSheet.element.nativeElement.querySelector(ACCEPT_BUTTON_SELECTOR);
|
|
457
492
|
}
|
|
493
|
+
get adaptiveCancelButton() {
|
|
494
|
+
return this.actionSheet.element.nativeElement.querySelector(CANCEL_BUTTON_SELECTOR);
|
|
495
|
+
}
|
|
458
496
|
get inputElement() {
|
|
459
497
|
return this.wrapper.nativeElement.querySelector('input');
|
|
460
498
|
}
|
|
499
|
+
onControlChange = noop;
|
|
500
|
+
onControlTouched = noop;
|
|
501
|
+
onValidatorChange = noop;
|
|
502
|
+
resolvedPromise = Promise.resolve(null);
|
|
503
|
+
timeRangeValidateFn = noop;
|
|
504
|
+
incompleteValidator = noop;
|
|
505
|
+
_min = cloneDate(MIN_TIME);
|
|
506
|
+
_max = cloneDate(MAX_TIME);
|
|
507
|
+
_popupSettings = { animate: true };
|
|
508
|
+
_show = false;
|
|
509
|
+
_steps = {};
|
|
510
|
+
_value = null;
|
|
511
|
+
_active = false;
|
|
512
|
+
localizationChangeSubscription;
|
|
513
|
+
pickerSubscriptions;
|
|
514
|
+
windowBlurSubscription;
|
|
515
|
+
control;
|
|
516
|
+
domEvents = [];
|
|
517
|
+
_size = DEFAULT_SIZE;
|
|
518
|
+
_rounded = DEFAULT_ROUNDED;
|
|
519
|
+
_fillMode = DEFAULT_FILL_MODE;
|
|
520
|
+
windowSize;
|
|
521
|
+
constructor(bus, zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, intl) {
|
|
522
|
+
super();
|
|
523
|
+
this.bus = bus;
|
|
524
|
+
this.zone = zone;
|
|
525
|
+
this.localization = localization;
|
|
526
|
+
this.cdr = cdr;
|
|
527
|
+
this.popupService = popupService;
|
|
528
|
+
this.wrapper = wrapper;
|
|
529
|
+
this.renderer = renderer;
|
|
530
|
+
this.injector = injector;
|
|
531
|
+
this.pickerService = pickerService;
|
|
532
|
+
this.intl = intl;
|
|
533
|
+
validatePackage(packageMetadata);
|
|
534
|
+
this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
|
|
535
|
+
this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
|
|
536
|
+
this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)));
|
|
537
|
+
}
|
|
461
538
|
/**
|
|
462
539
|
* @hidden
|
|
463
540
|
* Used by the TextBoxContainer to determine if the component is empty
|
|
@@ -775,7 +852,12 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
775
852
|
* @hidden
|
|
776
853
|
*/
|
|
777
854
|
onTabOutLastPart() {
|
|
778
|
-
this.isAdaptive
|
|
855
|
+
if (this.isAdaptive) {
|
|
856
|
+
this.cancelButton ? this.adaptiveCancelButton.focus() : this.adaptiveAcceptButton.focus();
|
|
857
|
+
}
|
|
858
|
+
else {
|
|
859
|
+
this.timeSelector.accept.nativeElement.focus();
|
|
860
|
+
}
|
|
779
861
|
}
|
|
780
862
|
toggleTimeSelector(show) {
|
|
781
863
|
this.windowSize = windowSize();
|
|
@@ -965,21 +1047,20 @@ export class TimePickerComponent extends MultiTabStop {
|
|
|
965
1047
|
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
966
1048
|
}
|
|
967
1049
|
}
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "toggleButton", first: true, predicate: ["toggleButton"], descendants: true, static: true }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }], exportAs: ["kendo-timepicker"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1050
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerComponent, deps: [{ token: i1.BusViewService }, { token: i0.NgZone }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i4.PickerService }, { token: i5.IntlService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1051
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimePickerComponent, isStandalone: true, selector: "kendo-timepicker", inputs: { focusableId: "focusableId", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", clearButton: "clearButton", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", cancelButton: "cancelButton", nowButton: "nowButton", steps: "steps", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", adaptiveMode: "adaptiveMode", value: "value", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close", escape: "escape" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-timepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
1052
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
1053
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
1054
|
+
{ provide: KendoInput, useExisting: forwardRef(() => TimePickerComponent) },
|
|
1055
|
+
{ provide: MultiTabStop, useExisting: forwardRef(() => TimePickerComponent) },
|
|
1056
|
+
LocalizationService,
|
|
1057
|
+
BusViewService,
|
|
1058
|
+
{
|
|
1059
|
+
provide: L10N_PREFIX,
|
|
1060
|
+
useValue: 'kendo.timepicker'
|
|
1061
|
+
},
|
|
1062
|
+
PickerService
|
|
1063
|
+
], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "toggleButton", first: true, predicate: ["toggleButton"], descendants: true, static: true }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }], exportAs: ["kendo-timepicker"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
983
1064
|
<ng-container kendoTimePickerLocalizedMessages
|
|
984
1065
|
i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"
|
|
985
1066
|
accept="Set"
|
|
@@ -1119,6 +1200,17 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1119
1200
|
<ng-container *ngTemplateOutlet="timeSelectorTemplate"></ng-container>
|
|
1120
1201
|
</div>
|
|
1121
1202
|
<div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
|
|
1203
|
+
<button kendoButton
|
|
1204
|
+
type="button"
|
|
1205
|
+
(click)="handleReject()"
|
|
1206
|
+
size="large"
|
|
1207
|
+
class="k-time-cancel"
|
|
1208
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
1209
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
1210
|
+
>
|
|
1211
|
+
{{localization.get('cancel')}}
|
|
1212
|
+
</button>
|
|
1213
|
+
|
|
1122
1214
|
<button kendoButton
|
|
1123
1215
|
type="button"
|
|
1124
1216
|
(click)="handleActionSheetAccept()"
|
|
@@ -1130,17 +1222,6 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1130
1222
|
>
|
|
1131
1223
|
{{localization.get('accept')}}
|
|
1132
1224
|
</button>
|
|
1133
|
-
|
|
1134
|
-
<button kendoButton
|
|
1135
|
-
type="button"
|
|
1136
|
-
(click)="handleReject()"
|
|
1137
|
-
size="large"
|
|
1138
|
-
class="k-time-cancel"
|
|
1139
|
-
[attr.title]="localization.get('cancelLabel')"
|
|
1140
|
-
[attr.aria-label]="localization.get('cancelLabel')"
|
|
1141
|
-
>
|
|
1142
|
-
{{localization.get('cancel')}}
|
|
1143
|
-
</button>
|
|
1144
1225
|
</div>
|
|
1145
1226
|
</ng-template>
|
|
1146
1227
|
</kendo-actionsheet>
|
|
@@ -1184,7 +1265,8 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1184
1265
|
</kendo-timeselector>
|
|
1185
1266
|
</ng-template>
|
|
1186
1267
|
`, isInline: true, dependencies: [{ kind: "directive", type: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { kind: "component", type: 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: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1187
|
-
|
|
1268
|
+
}
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
1188
1270
|
type: Component,
|
|
1189
1271
|
args: [{
|
|
1190
1272
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1343,6 +1425,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1343
1425
|
<ng-container *ngTemplateOutlet="timeSelectorTemplate"></ng-container>
|
|
1344
1426
|
</div>
|
|
1345
1427
|
<div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
|
|
1428
|
+
<button kendoButton
|
|
1429
|
+
type="button"
|
|
1430
|
+
(click)="handleReject()"
|
|
1431
|
+
size="large"
|
|
1432
|
+
class="k-time-cancel"
|
|
1433
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
1434
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
1435
|
+
>
|
|
1436
|
+
{{localization.get('cancel')}}
|
|
1437
|
+
</button>
|
|
1438
|
+
|
|
1346
1439
|
<button kendoButton
|
|
1347
1440
|
type="button"
|
|
1348
1441
|
(click)="handleActionSheetAccept()"
|
|
@@ -1354,17 +1447,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1354
1447
|
>
|
|
1355
1448
|
{{localization.get('accept')}}
|
|
1356
1449
|
</button>
|
|
1357
|
-
|
|
1358
|
-
<button kendoButton
|
|
1359
|
-
type="button"
|
|
1360
|
-
(click)="handleReject()"
|
|
1361
|
-
size="large"
|
|
1362
|
-
class="k-time-cancel"
|
|
1363
|
-
[attr.title]="localization.get('cancelLabel')"
|
|
1364
|
-
[attr.aria-label]="localization.get('cancelLabel')"
|
|
1365
|
-
>
|
|
1366
|
-
{{localization.get('cancel')}}
|
|
1367
|
-
</button>
|
|
1368
1450
|
</div>
|
|
1369
1451
|
</ng-template>
|
|
1370
1452
|
</kendo-actionsheet>
|