@progress/kendo-vue-dateinputs 3.6.4 → 3.6.5-dev.202210181442

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.
Files changed (65) hide show
  1. package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
  2. package/dist/es/calendar/components/Calendar.js +17 -48
  3. package/dist/es/calendar/components/CalendarCell.js +16 -25
  4. package/dist/es/calendar/components/CalendarHeaderTitle.js +2 -4
  5. package/dist/es/calendar/components/CalendarWeekCell.js +0 -3
  6. package/dist/es/calendar/components/Header.js +6 -17
  7. package/dist/es/calendar/components/View.js +8 -19
  8. package/dist/es/calendar/components/ViewList.js +11 -14
  9. package/dist/es/common/PickerWrap.js +0 -2
  10. package/dist/es/dateinput/DateInput.js +33 -78
  11. package/dist/es/datepicker/DatePicker.js +32 -42
  12. package/dist/es/datepicker/ToggleButton.js +0 -2
  13. package/dist/es/datepicker/models/DatePickerSettings.js +2 -1
  14. package/dist/es/daterangepicker/DateRangePicker.js +10 -43
  15. package/dist/es/datetimepicker/DateTimePicker.js +39 -53
  16. package/dist/es/datetimepicker/DateTimeSelector.js +25 -36
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/timepicker/TimeList.js +16 -46
  19. package/dist/es/timepicker/TimePart.js +7 -23
  20. package/dist/es/timepicker/TimePicker.js +37 -53
  21. package/dist/es/timepicker/TimeSelector.js +16 -23
  22. package/dist/es/virtualization/Virtualization.js +4 -36
  23. package/dist/esm/calendar/components/Calendar.js +17 -48
  24. package/dist/esm/calendar/components/CalendarCell.js +16 -25
  25. package/dist/esm/calendar/components/CalendarHeaderTitle.js +2 -4
  26. package/dist/esm/calendar/components/CalendarWeekCell.js +0 -3
  27. package/dist/esm/calendar/components/Header.js +6 -17
  28. package/dist/esm/calendar/components/View.js +8 -19
  29. package/dist/esm/calendar/components/ViewList.js +11 -14
  30. package/dist/esm/common/PickerWrap.js +0 -2
  31. package/dist/esm/dateinput/DateInput.js +33 -78
  32. package/dist/esm/datepicker/DatePicker.js +32 -42
  33. package/dist/esm/datepicker/ToggleButton.js +0 -2
  34. package/dist/esm/datepicker/models/DatePickerSettings.js +2 -1
  35. package/dist/esm/daterangepicker/DateRangePicker.js +10 -43
  36. package/dist/esm/datetimepicker/DateTimePicker.js +39 -53
  37. package/dist/esm/datetimepicker/DateTimeSelector.js +25 -36
  38. package/dist/esm/package-metadata.js +1 -1
  39. package/dist/esm/timepicker/TimeList.js +16 -46
  40. package/dist/esm/timepicker/TimePart.js +7 -23
  41. package/dist/esm/timepicker/TimePicker.js +37 -53
  42. package/dist/esm/timepicker/TimeSelector.js +16 -23
  43. package/dist/esm/virtualization/Virtualization.js +4 -36
  44. package/dist/npm/calendar/components/Calendar.js +17 -62
  45. package/dist/npm/calendar/components/CalendarCell.js +18 -30
  46. package/dist/npm/calendar/components/CalendarHeaderTitle.js +4 -10
  47. package/dist/npm/calendar/components/CalendarWeekCell.js +2 -8
  48. package/dist/npm/calendar/components/Header.js +8 -30
  49. package/dist/npm/calendar/components/View.js +10 -31
  50. package/dist/npm/calendar/components/ViewList.js +13 -25
  51. package/dist/npm/common/PickerWrap.js +2 -7
  52. package/dist/npm/dateinput/DateInput.js +35 -94
  53. package/dist/npm/datepicker/DatePicker.js +34 -58
  54. package/dist/npm/datepicker/ToggleButton.js +0 -4
  55. package/dist/npm/datepicker/models/DatePickerSettings.js +2 -1
  56. package/dist/npm/daterangepicker/DateRangePicker.js +10 -56
  57. package/dist/npm/datetimepicker/DateTimePicker.js +41 -71
  58. package/dist/npm/datetimepicker/DateTimeSelector.js +27 -50
  59. package/dist/npm/package-metadata.js +1 -1
  60. package/dist/npm/timepicker/TimeList.js +16 -55
  61. package/dist/npm/timepicker/TimePart.js +9 -36
  62. package/dist/npm/timepicker/TimePicker.js +37 -67
  63. package/dist/npm/timepicker/TimeSelector.js +18 -35
  64. package/dist/npm/virtualization/Virtualization.js +4 -40
  65. package/package.json +7 -7
@@ -1,6 +1,5 @@
1
- var _a, _b; // @ts-ignore
2
-
3
-
1
+ var _a, _b;
2
+ // @ts-ignore
4
3
  import * as Vue from 'vue';
5
4
  var allVue = Vue;
6
5
  var gh = allVue.h;
@@ -14,9 +13,7 @@ import { TIME_PART } from './models/main.js';
14
13
  import { SecondsService, MinutesService, HoursService, DayPeriodService, DOMService } from './services/main.js';
15
14
  import { MAX_TIME, MIDNIGHT_DATE } from '../utils.js';
16
15
  var SCROLL_THRESHOLD = 2; // < 2px threshold
17
-
18
16
  var SNAP_THRESHOLD = 0.05; // % of the item height
19
-
20
17
  var SKIP = 0;
21
18
  var getters = (_a = {}, _a[Keys.end] = function (data, _) {
22
19
  return data[data.length - 1];
@@ -31,7 +28,6 @@ var services = (_b = {}, _b[TIME_PART.dayperiod] = DayPeriodService, _b[TIME_PAR
31
28
  /**
32
29
  * @hidden
33
30
  */
34
-
35
31
  var TimeListVue2 = {
36
32
  name: 'KendoTimeList',
37
33
  // @ts-ignore
@@ -90,17 +86,14 @@ var TimeListVue2 = {
90
86
  },
91
87
  mounted: function mounted() {
92
88
  var _this = this;
93
-
94
- this.virtualization = this.$refs.virtualization; // Async calculation of height to avoid animation cancellation
95
-
89
+ this.virtualization = this.$refs.virtualization;
90
+ // Async calculation of height to avoid animation cancellation
96
91
  Promise.resolve().then(function () {
97
92
  if (!_this.$el) {
98
93
  return;
99
- } // @ts-ignore
100
-
101
-
94
+ }
95
+ // @ts-ignore
102
96
  _this.dom.calculateHeights(_this.$el);
103
-
104
97
  _this.$forceUpdate();
105
98
  });
106
99
  },
@@ -108,7 +101,6 @@ var TimeListVue2 = {
108
101
  if (!this.$refs.virtualization) {
109
102
  return;
110
103
  }
111
-
112
104
  this.virtualization = this.$refs.virtualization;
113
105
  var index = this.service.selectedIndex(this.$props.value);
114
106
  this.virtualization[this.animate ? 'animateToIndex' : 'scrollToIndex'](index);
@@ -126,13 +118,10 @@ var TimeListVue2 = {
126
118
  // @ts-ignore
127
119
  render: function render(createElement) {
128
120
  var _this2 = this;
129
-
130
121
  var h = gh || createElement;
131
-
132
122
  if (!this.$props.part.type || !services[this.$props.part.type]) {
133
123
  return;
134
124
  }
135
-
136
125
  this.calculateHeights();
137
126
  this.intl = provideIntlService(this);
138
127
  this.service = new services[this.$props.part.type](this.intl);
@@ -140,7 +129,6 @@ var TimeListVue2 = {
140
129
  var data = this.service.data(this.$props.value);
141
130
  var transform = 'translateY(' + this.topOffset + 'px)';
142
131
  var total = this.service.total(this.$props.value);
143
-
144
132
  var list = function list() {
145
133
  return h("ul", {
146
134
  style: {
@@ -150,7 +138,6 @@ var TimeListVue2 = {
150
138
  "class": "k-reset"
151
139
  }, [data.map(function (item, idx) {
152
140
  var _this = this;
153
-
154
141
  return h("li", {
155
142
  key: idx,
156
143
  "class": "k-item",
@@ -165,7 +152,6 @@ var TimeListVue2 = {
165
152
  }, [h("span", [item.text])]);
166
153
  }, this)]);
167
154
  };
168
-
169
155
  return h("div", {
170
156
  "class": "k-time-list",
171
157
  id: String(this.$props.id || ''),
@@ -184,7 +170,8 @@ var TimeListVue2 = {
184
170
  onFocusin: this.handleFocus,
185
171
  onFocusout: this.handleBlur,
186
172
  onMouseover: this.handleMouseOver
187
- }, [this.dom.didCalculate ? // @ts-ignore function children
173
+ }, [this.dom.didCalculate ?
174
+ // @ts-ignore function children
188
175
  h(Virtualization, {
189
176
  bottomOffset: this.bottomOffset,
190
177
  attrs: this.v3 ? undefined : {
@@ -221,13 +208,11 @@ var TimeListVue2 = {
221
208
  methods: {
222
209
  focus: function focus(args) {
223
210
  var _this = this;
224
-
225
211
  Promise.resolve().then(function () {
226
212
  if (!_this.$el) {
227
213
  return;
228
- } // @ts-ignore
229
-
230
-
214
+ }
215
+ // @ts-ignore
231
216
  _this.$el.focus(args);
232
217
  });
233
218
  },
@@ -235,16 +220,13 @@ var TimeListVue2 = {
235
220
  if (!this.virtualization) {
236
221
  return -1;
237
222
  }
238
-
239
223
  var valueIndex = this.service.selectedIndex(this.$props.value);
240
224
  var activeIndex = this.virtualization.activeIndex();
241
225
  var offset = this.virtualization.itemOffset(activeIndex);
242
226
  var distance = Math.abs(Math.ceil(scrollTop) - offset);
243
-
244
227
  if (valueIndex === activeIndex && distance < SCROLL_THRESHOLD) {
245
228
  return offset;
246
229
  }
247
-
248
230
  var scrollUp = valueIndex > activeIndex;
249
231
  var moveToNext = scrollUp && distance >= this.bottomThreshold || !scrollUp && distance > this.topThreshold;
250
232
  return moveToNext ? this.virtualization.itemOffset(activeIndex + 1) : offset;
@@ -253,7 +235,6 @@ var TimeListVue2 = {
253
235
  if (!this.dom.didCalculate) {
254
236
  return;
255
237
  }
256
-
257
238
  this.itemHeight = this.dom.itemHeight;
258
239
  this.listHeight = this.dom.timeListHeight;
259
240
  this.topOffset = (this.listHeight - this.itemHeight) / 2;
@@ -263,14 +244,12 @@ var TimeListVue2 = {
263
244
  },
264
245
  configureServices: function configureServices(props) {
265
246
  var _a = props || this.$props,
266
- min = _a.min,
267
- max = _a.max,
268
- value = _a.value;
269
-
247
+ min = _a.min,
248
+ max = _a.max,
249
+ value = _a.value;
270
250
  var _b = this.service.limitRange(min || this.$props.min, max || this.$props.max, value || this.$props.value),
271
- newMin = _b[0],
272
- newMax = _b[1];
273
-
251
+ newMin = _b[0],
252
+ newMax = _b[1];
274
253
  this.service.configure(this.serviceSettings({
275
254
  min: newMin,
276
255
  max: newMax
@@ -291,12 +270,10 @@ var TimeListVue2 = {
291
270
  },
292
271
  handleScrollAction: function handleScrollAction(_a) {
293
272
  var target = _a.target,
294
- animationInProgress = _a.animationInProgress;
295
-
273
+ animationInProgress = _a.animationInProgress;
296
274
  if (!this.virtualization) {
297
275
  return;
298
276
  }
299
-
300
277
  if (target && !animationInProgress) {
301
278
  this.animateToIndex = false;
302
279
  var index = this.virtualization.itemIndex(this.itemOffset(target.scrollTop));
@@ -314,7 +291,6 @@ var TimeListVue2 = {
314
291
  if (!this.$el) {
315
292
  return;
316
293
  }
317
-
318
294
  if (canUseDOM && document.activeElement !== this.$el) {
319
295
  // @ts-ignore
320
296
  this.$el.focus({
@@ -324,25 +300,20 @@ var TimeListVue2 = {
324
300
  },
325
301
  handleKeyDown: function handleKeyDown(event) {
326
302
  var keyCode = event.keyCode;
327
-
328
303
  if (keyCode === Keys.down || keyCode === Keys.up || keyCode === Keys.end || keyCode === Keys.home) {
329
304
  event.preventDefault();
330
305
  }
331
-
332
306
  var getter = getters[event.keyCode] || noop;
333
307
  var dataItem = getter(this.service.data(this.$props.value), this.service.selectedIndex(this.$props.value));
334
-
335
308
  if (dataItem) {
336
309
  this.handleChange(dataItem);
337
310
  }
338
311
  },
339
312
  handleChange: function handleChange(dataItem) {
340
313
  var candidate = this.service.apply(this.$props.value, dataItem.value);
341
-
342
314
  if (this.$props.value.getTime() === candidate.getTime()) {
343
315
  return;
344
316
  }
345
-
346
317
  this.currentValue = candidate;
347
318
  this.$emit('change', candidate);
348
319
  }
@@ -351,6 +322,5 @@ var TimeListVue2 = {
351
322
  /**
352
323
  * @hidden
353
324
  */
354
-
355
325
  var TimeList = TimeListVue2;
356
326
  export { TimeList, TimeListVue2 };
@@ -17,9 +17,7 @@ var formatRegExp = new RegExp("".concat(TIME_PART.hour, "|").concat(TIME_PART.mi
17
17
  /**
18
18
  * @hidden
19
19
  */
20
-
21
20
  export var Direction;
22
-
23
21
  (function (Direction) {
24
22
  Direction[Direction["Left"] = 0] = "Left";
25
23
  Direction[Direction["Right"] = 1] = "Right";
@@ -27,8 +25,6 @@ export var Direction;
27
25
  /**
28
26
  * @hidden
29
27
  */
30
-
31
-
32
28
  var TimePartVue2 = {
33
29
  name: 'KendoTimePart',
34
30
  props: {
@@ -125,7 +121,6 @@ var TimePartVue2 = {
125
121
  },
126
122
  mounted: function mounted() {
127
123
  var _this = this;
128
-
129
124
  this._nowButton = this.$refs.nowButton;
130
125
  this.dateFormatParts.forEach(function (item, idx) {
131
126
  if (item.type !== 'literal') {
@@ -148,9 +143,9 @@ var TimePartVue2 = {
148
143
  render: function render(createElement) {
149
144
  var h = gh || createElement;
150
145
  var _a = this.$props,
151
- format = _a.format,
152
- smoothScroll = _a.smoothScroll,
153
- disabled = _a.disabled;
146
+ format = _a.format,
147
+ smoothScroll = _a.smoothScroll,
148
+ disabled = _a.disabled;
154
149
  this.snapTime = snapTime(generateSnappers(this.$props.steps, this.computedMin));
155
150
  this.dateFormatParts = this.intl.splitDateFormat(format).filter(this.timeFormatFilter);
156
151
  var rootClassName = classNames({
@@ -164,7 +159,8 @@ var TimePartVue2 = {
164
159
  "class": "k-time-header"
165
160
  }, [h("span", {
166
161
  "class": "k-title"
167
- }, [this.intl.formatDate(this.computedValue, this.dateFormatParts.reduce(this.timeFormatReducer, ''))]), this.showNowButton() && // @ts-ignore function children
162
+ }, [this.intl.formatDate(this.computedValue, this.dateFormatParts.reduce(this.timeFormatReducer, ''))]), this.showNowButton() &&
163
+ // @ts-ignore function children
168
164
  h(Button, {
169
165
  type: "button",
170
166
  attrs: this.v3 ? undefined : {
@@ -196,7 +192,6 @@ var TimePartVue2 = {
196
192
  "class": "k-time-highlight"
197
193
  }), this.dateFormatParts.map(function (part, idx) {
198
194
  var _this = this;
199
-
200
195
  return part.type !== 'literal' ? h("div", {
201
196
  key: idx,
202
197
  "class": classNames('k-time-list-wrapper', {
@@ -218,7 +213,8 @@ var TimePartVue2 = {
218
213
  e.preventDefault();
219
214
  }
220
215
  }
221
- }, [this.intl.dateFieldName(part)]), // @ts-ignore function children
216
+ }, [this.intl.dateFieldName(part)]),
217
+ // @ts-ignore function children
222
218
  h(TimeList, {
223
219
  min: this.computedMin,
224
220
  attrs: this.v3 ? undefined : {
@@ -265,10 +261,8 @@ var TimePartVue2 = {
265
261
  },
266
262
  focus: function focus(args) {
267
263
  var _this = this;
268
-
269
264
  this.$nextTick(function () {
270
265
  var timeList = _this.timeLists[0];
271
-
272
266
  if (!_this.hasActiveButton() && timeList && timeList.$el) {
273
267
  timeList.focus(args);
274
268
  }
@@ -279,15 +273,12 @@ var TimePartVue2 = {
279
273
  },
280
274
  timeFormatFilter: function timeFormatFilter(part, index, all) {
281
275
  var prevItem = index >= 1 && all[index - 1];
282
-
283
276
  if (!prevItem) {
284
277
  return formatRegExp.test(part.type || '');
285
278
  }
286
-
287
279
  if (prevItem && part.type === 'literal') {
288
280
  return formatRegExp.test(prevItem.type || '');
289
281
  }
290
-
291
282
  return formatRegExp.test(part.type || '');
292
283
  },
293
284
  hasActiveButton: function hasActiveButton() {
@@ -297,7 +288,6 @@ var TimePartVue2 = {
297
288
  if (!this.timeLists.length) {
298
289
  return;
299
290
  }
300
-
301
291
  this.timeLists.reduce(this.listReducer, []).map(function (state) {
302
292
  return dir === Direction.Right ? state.next : state.prev;
303
293
  }).map(function (list) {
@@ -310,7 +300,6 @@ var TimePartVue2 = {
310
300
  if (state.length || list.$props.id !== this.activeListIndex) {
311
301
  return state;
312
302
  }
313
-
314
303
  return [{
315
304
  next: all[idx + 1] || list,
316
305
  prev: all[idx - 1] || list
@@ -321,7 +310,6 @@ var TimePartVue2 = {
321
310
  },
322
311
  hasSteps: function hasSteps() {
323
312
  var _this = this;
324
-
325
313
  var keys = Object.keys(this.$props.steps);
326
314
  return keys.length !== keys.reduce(function (acc, k) {
327
315
  return acc + _this.$props.steps[k];
@@ -329,18 +317,15 @@ var TimePartVue2 = {
329
317
  },
330
318
  handleKeyDown: function handleKeyDown(event) {
331
319
  var keyCode = event.keyCode;
332
-
333
320
  switch (keyCode) {
334
321
  case Keys.left:
335
322
  event.preventDefault();
336
323
  this.focusList(Direction.Left);
337
324
  return;
338
-
339
325
  case Keys.right:
340
326
  event.preventDefault();
341
327
  this.focusList(Direction.Right);
342
328
  return;
343
-
344
329
  default:
345
330
  return;
346
331
  }
@@ -360,6 +345,5 @@ var TimePartVue2 = {
360
345
  /**
361
346
  * @hidden
362
347
  */
363
-
364
348
  var TimePart = TimePartVue2;
365
349
  export { TimePart, TimePartVue2 };
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
@@ -36,7 +32,6 @@ import { defaultFormatPlaceholder } from '../dateinput/utils.js';
36
32
  /**
37
33
  * @hidden
38
34
  */
39
-
40
35
  var TimePickerVue2 = {
41
36
  name: 'KendoTimePicker',
42
37
  // @ts-ignore
@@ -244,11 +239,9 @@ var TimePickerVue2 = {
244
239
  // If defaultShow is true during the initial render, the popup is not aligned.
245
240
  this.$forceUpdate();
246
241
  }
247
-
248
242
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
249
243
  this._timeSelector = this.$refs.timeSelector;
250
244
  this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
251
-
252
245
  if (this._dateInput && this._dateInput.element()) {
253
246
  this._dateInput.element().setAttribute('aria-haspopup', 'true');
254
247
  }
@@ -257,7 +250,6 @@ var TimePickerVue2 = {
257
250
  this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
258
251
  this._timeSelector = this.$refs.timeSelector;
259
252
  this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
260
-
261
253
  if (this._timeSelector && this.computedShow && !this._oldShow) {
262
254
  this._timeSelector.focusActiveList();
263
255
  } else if (this._dateInput && this._dateInput.element() && !this.computedShow && this.shouldFocusDateInput) {
@@ -265,7 +257,6 @@ var TimePickerVue2 = {
265
257
  preventScroll: true
266
258
  });
267
259
  }
268
-
269
260
  this.shouldFocusDateInput = false;
270
261
  },
271
262
  // @ts-ignore
@@ -282,37 +273,35 @@ var TimePickerVue2 = {
282
273
  // @ts-ignore
283
274
  render: function render(createElement) {
284
275
  var _a;
285
-
286
276
  var _this = this;
287
-
288
277
  var h = gh || createElement;
289
278
  var defaultSlot = getDefaultSlots(this);
290
279
  var _b = this.$props,
291
- disabled = _b.disabled,
292
- tabIndex = _b.tabIndex,
293
- title = _b.title,
294
- id = _b.id,
295
- placeholder = _b.placeholder,
296
- format = _b.format,
297
- formatPlaceholder = _b.formatPlaceholder,
298
- smoothScroll = _b.smoothScroll,
299
- width = _b.width,
300
- name = _b.name,
301
- steps = _b.steps,
302
- cancelButton = _b.cancelButton,
303
- nowButton = _b.nowButton,
304
- validationMessage = _b.validationMessage,
305
- required = _b.required,
306
- validityStyles = _b.validityStyles,
307
- ariaLabelledBy = _b.ariaLabelledBy,
308
- ariaDescribedBy = _b.ariaDescribedBy,
309
- size = _b.size,
310
- rounded = _b.rounded,
311
- fillMode = _b.fillMode;
280
+ disabled = _b.disabled,
281
+ tabIndex = _b.tabIndex,
282
+ title = _b.title,
283
+ id = _b.id,
284
+ placeholder = _b.placeholder,
285
+ format = _b.format,
286
+ formatPlaceholder = _b.formatPlaceholder,
287
+ smoothScroll = _b.smoothScroll,
288
+ width = _b.width,
289
+ name = _b.name,
290
+ steps = _b.steps,
291
+ cancelButton = _b.cancelButton,
292
+ nowButton = _b.nowButton,
293
+ validationMessage = _b.validationMessage,
294
+ required = _b.required,
295
+ validityStyles = _b.validityStyles,
296
+ ariaLabelledBy = _b.ariaLabelledBy,
297
+ ariaDescribedBy = _b.ariaDescribedBy,
298
+ size = _b.size,
299
+ rounded = _b.rounded,
300
+ fillMode = _b.fillMode;
312
301
  var _c = this.$props.popupSettings,
313
- popupClass = _c.popupClass,
314
- appendTo = _c.appendTo,
315
- animate = _c.animate;
302
+ popupClass = _c.popupClass,
303
+ appendTo = _c.appendTo,
304
+ animate = _c.animate;
316
305
  var isValid = !this.$props.validityStyles || this.validity().valid;
317
306
  var wrapperClassNames = classNames('k-picker-wrap', {
318
307
  'k-invalid': !isValid,
@@ -324,7 +313,8 @@ var TimePickerVue2 = {
324
313
  var toggleClockMessage = localizationService.toLanguageString(toggleClock, messages[toggleClock]);
325
314
  var toggleTimeMessage = localizationService.toLanguageString(toggleTimeSelector, messages[toggleTimeSelector]);
326
315
  var dateInput = this.$props.dateInput ? templateRendering.call(this, this.$props.dateInput, getListeners.call(this)) : undefined;
327
- var dateInputDefaultRendering = // @ts-ignore function children
316
+ var dateInputDefaultRendering =
317
+ // @ts-ignore function children
328
318
  h(DateInput, {
329
319
  ref: this.v3 ? function (el) {
330
320
  _this.dateInputRef = el;
@@ -388,7 +378,8 @@ var TimePickerVue2 = {
388
378
  }, this.v3 ? function () {
389
379
  return [defaultSlot];
390
380
  } : [defaultSlot]);
391
- var timeSelector = // @ts-ignore function children
381
+ var timeSelector =
382
+ // @ts-ignore function children
392
383
  h(TimeSelector, {
393
384
  ref: 'timeSelector',
394
385
  cancelButton: cancelButton,
@@ -433,7 +424,8 @@ var TimePickerVue2 = {
433
424
  }
434
425
  });
435
426
  var popup = this.$props.popup ? templateRendering.call(this, this.$props.popup, getListeners.call(this)) : undefined;
436
- var popupDefaultRendering = // @ts-ignore function children
427
+ var popupDefaultRendering =
428
+ // @ts-ignore function children
437
429
  h(Popup, {
438
430
  show: this.computedShow,
439
431
  attrs: this.v3 ? undefined : {
@@ -489,7 +481,8 @@ var TimePickerVue2 = {
489
481
  ref: this.v3 ? function (el) {
490
482
  _this.kendoAnchorRef = el;
491
483
  } : this._anchor
492
- }, [dateInputRendering, // @ts-ignore
484
+ }, [dateInputRendering,
485
+ // @ts-ignore
493
486
  h(KButton, {
494
487
  type: "button",
495
488
  attrs: this.v3 ? undefined : {
@@ -515,7 +508,8 @@ var TimePickerVue2 = {
515
508
  "aria-controls": this._popupId,
516
509
  "aria-label": toggleClockMessage
517
510
  }), popupRendering]);
518
- return this.$props.label ? // @ts-ignore function children
511
+ return this.$props.label ?
512
+ // @ts-ignore function children
519
513
  h(FloatingLabel, {
520
514
  label: this.$props.label,
521
515
  attrs: this.v3 ? undefined : {
@@ -570,7 +564,6 @@ var TimePickerVue2 = {
570
564
  if (this.computedShow === show) {
571
565
  return;
572
566
  }
573
-
574
567
  this.currentShow = show;
575
568
  },
576
569
  mergeTime: function mergeTime(value) {
@@ -623,14 +616,11 @@ var TimePickerVue2 = {
623
616
  },
624
617
  createBlurTimeout: function createBlurTimeout() {
625
618
  var _this = this;
626
-
627
619
  var that = this;
628
620
  this._blurTimeout = setTimeout(function () {
629
621
  _this.isFocused = false;
630
622
  var isInPopup = document.activeElement && document.activeElement.closest("#".concat(that._popupId));
631
-
632
623
  var isElementActive = that._dateInput && canUseDOM && document.activeElement !== that._dateInput.element();
633
-
634
624
  if (isElementActive && !isInPopup) {
635
625
  that.setShow(false);
636
626
  }
@@ -643,7 +633,6 @@ var TimePickerVue2 = {
643
633
  if (this.$props.disabled) {
644
634
  return;
645
635
  }
646
-
647
636
  this.shouldFocusDateInput = true;
648
637
  this.setShow(!this.computedShow);
649
638
  this.$emit('iconclick', event);
@@ -653,28 +642,24 @@ var TimePickerVue2 = {
653
642
  },
654
643
  handleKeyDown: function handleKeyDown(event) {
655
644
  var altKey = event.altKey,
656
- keyCode = event.keyCode;
657
-
645
+ keyCode = event.keyCode;
658
646
  if (keyCode === Keys.tab && this._dateInput && event.target !== this._dateInput._element) {
659
647
  event.preventDefault();
660
648
  this.shouldFocusDateInput = true;
661
649
  this.setShow(false);
662
650
  return;
663
651
  }
664
-
665
652
  if (keyCode === Keys.esc) {
666
653
  this.shouldFocusDateInput = true;
667
654
  this.setShow(false);
668
655
  return;
669
656
  }
670
-
671
657
  if (altKey && (keyCode === Keys.up || keyCode === Keys.down)) {
672
658
  event.preventDefault();
673
659
  event.stopPropagation();
674
660
  this.shouldFocusDateInput = keyCode === Keys.up;
675
661
  this.setShow(keyCode === Keys.down);
676
662
  }
677
-
678
663
  this.$emit('keydown', event);
679
664
  }
680
665
  }
@@ -682,6 +667,5 @@ var TimePickerVue2 = {
682
667
  /**
683
668
  * @hidden
684
669
  */
685
-
686
670
  var TimePicker = TimePickerVue2;
687
671
  export { TimePicker, TimePickerVue2 };
@@ -15,9 +15,7 @@ import { TimePart } from './TimePart.js';
15
15
  /**
16
16
  * @hidden
17
17
  */
18
-
19
18
  export var Direction;
20
-
21
19
  (function (Direction) {
22
20
  Direction[Direction["Left"] = 0] = "Left";
23
21
  Direction[Direction["Right"] = 1] = "Right";
@@ -25,8 +23,6 @@ export var Direction;
25
23
  /**
26
24
  * @hidden
27
25
  */
28
-
29
-
30
26
  var TimeSelectorVue2 = {
31
27
  name: 'KendoTimeSelector',
32
28
  // @ts-ignore
@@ -139,16 +135,16 @@ var TimeSelectorVue2 = {
139
135
  render: function render(createElement) {
140
136
  var h = gh || createElement;
141
137
  var _a = this.$props,
142
- format = _a.format,
143
- cancelButton = _a.cancelButton,
144
- disabled = _a.disabled,
145
- tabIndex = _a.tabIndex,
146
- smoothScroll = _a.smoothScroll,
147
- min = _a.min,
148
- max = _a.max,
149
- boundRange = _a.boundRange,
150
- nowButton = _a.nowButton,
151
- steps = _a.steps;
138
+ format = _a.format,
139
+ cancelButton = _a.cancelButton,
140
+ disabled = _a.disabled,
141
+ tabIndex = _a.tabIndex,
142
+ smoothScroll = _a.smoothScroll,
143
+ min = _a.min,
144
+ max = _a.max,
145
+ boundRange = _a.boundRange,
146
+ nowButton = _a.nowButton,
147
+ steps = _a.steps;
152
148
  var localizationService = provideLocalizationService(this);
153
149
  var cancelMessage = localizationService.toLanguageString(timePickerCancel, messages[timePickerCancel]);
154
150
  var setMessage = localizationService.toLanguageString(timePickerSet, messages[timePickerSet]);
@@ -164,7 +160,8 @@ var TimeSelectorVue2 = {
164
160
  on: this.v3 ? undefined : {
165
161
  "keydown": this.handleKeyDown
166
162
  }
167
- }, [// @ts-ignore function children
163
+ }, [
164
+ // @ts-ignore function children
168
165
  h(TimePart, {
169
166
  ref: 'timePart',
170
167
  value: this.current,
@@ -199,7 +196,8 @@ var TimeSelectorVue2 = {
199
196
  steps: steps
200
197
  }), h("div", {
201
198
  "class": "k-time-footer k-actions k-actions-stretched"
202
- }, [cancelButton && // @ts-ignore function children
199
+ }, [cancelButton &&
200
+ // @ts-ignore function children
203
201
  h(Button, {
204
202
  type: "button",
205
203
  attrs: this.v3 ? undefined : {
@@ -217,7 +215,8 @@ var TimeSelectorVue2 = {
217
215
  "aria-label": cancelMessage
218
216
  }, this.v3 ? function () {
219
217
  return [cancelMessage];
220
- } : [cancelMessage]), // @ts-ignore function children
218
+ } : [cancelMessage]),
219
+ // @ts-ignore function children
221
220
  h(Button, {
222
221
  type: "button",
223
222
  attrs: this.v3 ? undefined : {
@@ -250,7 +249,6 @@ var TimeSelectorVue2 = {
250
249
  if (!this.timePart) {
251
250
  return;
252
251
  }
253
-
254
252
  this.timePart.focus({
255
253
  preventScroll: true
256
254
  });
@@ -259,21 +257,17 @@ var TimeSelectorVue2 = {
259
257
  if (!this._acceptButton) {
260
258
  return false;
261
259
  }
262
-
263
260
  return canUseDOM && (document.activeElement === this._acceptButton.$el || document.activeElement === this._cancelButton.$el);
264
261
  },
265
262
  handleKeyDown: function handleKeyDown(event) {
266
263
  var keyCode = event.keyCode;
267
264
  this.$emit('keydown', event);
268
-
269
265
  switch (keyCode) {
270
266
  case Keys.enter:
271
267
  if (!this.hasActiveButton()) {
272
268
  this.handleAccept(event);
273
269
  }
274
-
275
270
  return;
276
-
277
271
  default:
278
272
  return;
279
273
  }
@@ -313,6 +307,5 @@ var TimeSelectorVue2 = {
313
307
  /**
314
308
  * @hidden
315
309
  */
316
-
317
310
  var TimeSelector = TimeSelectorVue2;
318
311
  export { TimeSelector, TimeSelectorVue2 };