@progress/kendo-vue-dateinputs 3.4.1 → 3.4.2-dev.202207070519

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 (40) hide show
  1. package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
  2. package/dist/es/calendar/components/Calendar.js +3 -2
  3. package/dist/es/calendar/components/CalendarCell.js +3 -2
  4. package/dist/es/calendar/components/CalendarHeaderTitle.js +3 -2
  5. package/dist/es/calendar/components/CalendarWeekCell.js +6 -7
  6. package/dist/es/calendar/components/Header.js +5 -4
  7. package/dist/es/calendar/components/View.js +3 -2
  8. package/dist/es/calendar/components/ViewList.js +5 -4
  9. package/dist/es/common/PickerWrap.js +3 -2
  10. package/dist/es/dateinput/DateInput.js +12 -15
  11. package/dist/es/datepicker/DatePicker.js +10 -17
  12. package/dist/es/daterangepicker/DateRangePicker.js +5 -4
  13. package/dist/es/datetimepicker/DateTimePicker.js +3 -2
  14. package/dist/es/datetimepicker/DateTimeSelector.js +5 -4
  15. package/dist/es/package-metadata.js +1 -1
  16. package/dist/es/timepicker/TimeList.js +5 -4
  17. package/dist/es/timepicker/TimePart.js +5 -4
  18. package/dist/es/timepicker/TimePicker.js +3 -2
  19. package/dist/es/timepicker/TimeSelector.js +5 -4
  20. package/dist/es/virtualization/Virtualization.js +5 -4
  21. package/dist/npm/calendar/components/Calendar.js +3 -2
  22. package/dist/npm/calendar/components/CalendarCell.js +3 -2
  23. package/dist/npm/calendar/components/CalendarHeaderTitle.js +3 -2
  24. package/dist/npm/calendar/components/CalendarWeekCell.js +6 -7
  25. package/dist/npm/calendar/components/Header.js +5 -4
  26. package/dist/npm/calendar/components/View.js +3 -2
  27. package/dist/npm/calendar/components/ViewList.js +5 -4
  28. package/dist/npm/common/PickerWrap.js +3 -2
  29. package/dist/npm/dateinput/DateInput.js +11 -14
  30. package/dist/npm/datepicker/DatePicker.js +9 -16
  31. package/dist/npm/daterangepicker/DateRangePicker.js +5 -4
  32. package/dist/npm/datetimepicker/DateTimePicker.js +3 -2
  33. package/dist/npm/datetimepicker/DateTimeSelector.js +5 -4
  34. package/dist/npm/package-metadata.js +1 -1
  35. package/dist/npm/timepicker/TimeList.js +5 -4
  36. package/dist/npm/timepicker/TimePart.js +5 -4
  37. package/dist/npm/timepicker/TimePicker.js +3 -2
  38. package/dist/npm/timepicker/TimeSelector.js +5 -4
  39. package/dist/npm/virtualization/Virtualization.js +5 -4
  40. package/package.json +7 -7
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { classNames, guid, Keys, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
7
8
  import { cloneDate, getDate, isEqualDate } from '@progress/kendo-date-math';
@@ -140,8 +141,8 @@ var CalendarVue2 = {
140
141
  }
141
142
  },
142
143
  // @ts-ignore
143
- setup: !gh ? undefined : function () {
144
- var v3 = !!gh;
144
+ setup: !isV3 ? undefined : function () {
145
+ var v3 = !!isV3;
145
146
  var kendoIntlService = inject('kendoIntlService', {});
146
147
  return {
147
148
  v3: v3,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { getDefaultSlots } from '@progress/kendo-vue-common';
6
7
  /**
7
8
  * @hidden
@@ -71,8 +72,8 @@ var CalendarCellVue2 = {
71
72
  // return !(valueEqual && compareProps(props, newProps));
72
73
  },
73
74
  // @ts-ignore
74
- setup: !gh ? undefined : function () {
75
- var v3 = !!gh;
75
+ setup: !isV3 ? undefined : function () {
76
+ var v3 = !!isV3;
76
77
  return {
77
78
  v3: v3
78
79
  };
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { getDefaultSlots } from '@progress/kendo-vue-common';
6
7
  import { Button as KButton } from '@progress/kendo-vue-buttons';
7
8
  /**
@@ -25,8 +26,8 @@ var CalendarHeaderTitleVue2 = {
25
26
  }
26
27
  },
27
28
  // @ts-ignore
28
- setup: !gh ? undefined : function () {
29
- var v3 = !!gh;
29
+ setup: !isV3 ? undefined : function () {
30
+ var v3 = !!isV3;
30
31
  return {
31
32
  v3: v3
32
33
  };
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { getDefaultSlots } from '@progress/kendo-vue-common';
6
7
  /**
7
8
  * @hidden
@@ -17,8 +18,8 @@ var CalendarWeekCellVue2 = {
17
18
  'click': null
18
19
  },
19
20
  // @ts-ignore
20
- setup: !gh ? undefined : function () {
21
- var v3 = !!gh;
21
+ setup: !isV3 ? undefined : function () {
22
+ var v3 = !!isV3;
22
23
  return {
23
24
  v3: v3
24
25
  };
@@ -37,13 +38,11 @@ var CalendarWeekCellVue2 = {
37
38
  on: this.v3 ? undefined : {
38
39
  "click": this.handleClick
39
40
  },
40
- value: this.$props.value,
41
+ id: this.$props.id,
41
42
  attrs: this.v3 ? undefined : {
42
- value: this.$props.value,
43
43
  id: this.$props.id
44
- },
45
- id: this.$props.id
46
- }, [defaultSlot]);
44
+ }
45
+ }, [this.$props.value !== undefined ? this.$props.value : defaultSlot]);
47
46
  },
48
47
  methods: {
49
48
  handleClick: function handleClick(event) {
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
7
8
  import { getDate } from '@progress/kendo-date-math';
@@ -154,8 +155,8 @@ var HeaderVue2 = {
154
155
  }
155
156
  },
156
157
  // @ts-ignore
157
- setup: !gh ? undefined : function () {
158
- var v3 = !!gh;
158
+ setup: !isV3 ? undefined : function () {
159
+ var v3 = !!isV3;
159
160
  var kendoLocalizationService = inject('kendoLocalizationService', {});
160
161
  return {
161
162
  v3: v3,
@@ -236,9 +237,9 @@ var HeaderVue2 = {
236
237
  }
237
238
  }), h("span", {
238
239
  "class": todayClassNames,
239
- tabIndex: this.$props.tabIndex,
240
+ tabindex: this.$props.tabIndex,
240
241
  attrs: this.v3 ? undefined : {
241
- tabIndex: this.$props.tabIndex
242
+ tabindex: this.$props.tabIndex
242
243
  },
243
244
  onKeydown: this.todayKeyDown,
244
245
  on: this.v3 ? undefined : {
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { weekInYear, cloneDate } from '@progress/kendo-date-math';
7
8
  import { provideIntlService } from '@progress/kendo-vue-intl';
@@ -148,8 +149,8 @@ var ViewVue2 = {
148
149
  }
149
150
  },
150
151
  // @ts-ignore
151
- setup: !gh ? undefined : function () {
152
- var v3 = !!gh;
152
+ setup: !isV3 ? undefined : function () {
153
+ var v3 = !!isV3;
153
154
  var kendoIntlService = inject('kendoIntlService', {});
154
155
  return {
155
156
  v3: v3,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { cloneDate } from '@progress/kendo-date-math';
7
8
  import { provideIntlService } from '@progress/kendo-vue-intl';
@@ -206,8 +207,8 @@ var ViewListVue2 = {
206
207
  }
207
208
  },
208
209
  // @ts-ignore
209
- setup: !gh ? undefined : function () {
210
- var v3 = !!gh;
210
+ setup: !isV3 ? undefined : function () {
211
+ var v3 = !!isV3;
211
212
  var kendoIntlService = inject('kendoIntlService', {});
212
213
  return {
213
214
  v3: v3,
@@ -266,12 +267,12 @@ var ViewListVue2 = {
266
267
  "aria-label": this.$props.service.title(this.$props.focusedDate),
267
268
  "aria-live": 'polite',
268
269
  "aria-activedescendant": cellUID + this.$props.focusedDate.getTime(),
269
- tabIndex: this.$attrs.tabIndex
270
+ tabindex: this.$attrs.tabIndex
270
271
  },
271
272
  "aria-label": this.$props.service.title(this.$props.focusedDate),
272
273
  "aria-live": 'polite',
273
274
  "aria-activedescendant": cellUID + this.$props.focusedDate.getTime(),
274
- tabIndex: this.$attrs.tabIndex,
275
+ tabindex: this.$attrs.tabIndex,
275
276
  "class": tableClassNames,
276
277
  onKeydown: this.handleKeyDown,
277
278
  on: this.v3 ? undefined : {
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { getDefaultSlots } from '@progress/kendo-vue-common';
6
7
  /**
7
8
  * @hidden
@@ -12,8 +13,8 @@ var PickerWrapVue2 = {
12
13
  id: String
13
14
  },
14
15
  // @ts-ignore
15
- setup: !gh ? undefined : function () {
16
- var v3 = !!gh;
16
+ setup: !isV3 ? undefined : function () {
17
+ var v3 = !!isV3;
17
18
  return {
18
19
  v3: v3
19
20
  };
@@ -2,12 +2,13 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { isEqual, cloneDate } from '@progress/kendo-date-math';
8
9
  import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
9
10
  import { KendoDate } from './models';
10
- import { guid, noop, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots } from '@progress/kendo-vue-common';
11
+ import { guid, noop, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots, setRef, getRef } from '@progress/kendo-vue-common';
11
12
  import { Button as KButton } from '@progress/kendo-vue-buttons';
12
13
  import { packageMetadata } from '../package-metadata';
13
14
  import { approximateStringMatching, defaultFormat, defaultFormatPlaceholder, isInRange } from './utils';
@@ -504,7 +505,7 @@ var DateInputVue2 = {
504
505
  }
505
506
  },
506
507
  mounted: function mounted() {
507
- this._element = this.v3 ? this.inputRef : this.$refs.input;
508
+ this._element = getRef(this, 'input');
508
509
  this.setValidity();
509
510
  this.$data.hasMounted = true;
510
511
  },
@@ -516,8 +517,8 @@ var DateInputVue2 = {
516
517
  this.setValidity();
517
518
  },
518
519
  // @ts-ignore
519
- setup: !gh ? undefined : function () {
520
- var v3 = !!gh;
520
+ setup: !isV3 ? undefined : function () {
521
+ var v3 = !!isV3;
521
522
  var inputRef = ref(null);
522
523
  var kendoIntlService = inject('kendoIntlService', {});
523
524
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -530,8 +531,6 @@ var DateInputVue2 = {
530
531
  },
531
532
  // @ts-ignore
532
533
  render: function render(createElement) {
533
- var _this = this;
534
-
535
534
  var h = gh || createElement;
536
535
  var defaultSlot = getDefaultSlots(this);
537
536
  var localizationService = provideLocalizationService(this);
@@ -574,13 +573,13 @@ var DateInputVue2 = {
574
573
  role: "spinbutton",
575
574
  attrs: this.v3 ? undefined : {
576
575
  role: "spinbutton",
577
- tabIndex: this.$props.tabIndex,
576
+ tabindex: this.$props.tabIndex,
578
577
  disabled: this.$props.disabled,
579
578
  title: this.$props.title !== undefined ? this.$props.title : currentText,
580
579
  type: "text",
581
580
  spellcheck: false,
582
- autoComplete: "off",
583
- autoCorrect: "off",
581
+ autocomplete: "off",
582
+ autocorrect: "off",
584
583
  id: inputId,
585
584
  placeholder: this.$props.placeholder,
586
585
  name: name,
@@ -589,13 +588,13 @@ var DateInputVue2 = {
589
588
  "aria-valuemax": max === null ? undefined : max.getTime(),
590
589
  "aria-valuetext": currentText
591
590
  },
592
- tabIndex: this.$props.tabIndex,
591
+ tabindex: this.$props.tabIndex,
593
592
  disabled: this.$props.disabled,
594
593
  title: this.$props.title !== undefined ? this.$props.title : currentText,
595
594
  type: "text",
596
595
  spellcheck: false,
597
- autoComplete: "off",
598
- autoCorrect: "off",
596
+ autocomplete: "off",
597
+ autocorrect: "off",
599
598
  "class": "k-input-inner",
600
599
  id: inputId,
601
600
  placeholder: this.$props.placeholder,
@@ -624,9 +623,7 @@ var DateInputVue2 = {
624
623
  "aria-valuemin": min === null ? undefined : min.getTime(),
625
624
  "aria-valuemax": max === null ? undefined : max.getTime(),
626
625
  "aria-valuetext": currentText,
627
- ref: this.v3 ? function (el) {
628
- _this.inputRef = el;
629
- } : 'input'
626
+ ref: setRef(this, 'input')
630
627
  }), defaultSlot, this.$props.spinners && h("span", {
631
628
  "class": "k-input-spinner k-spin-button",
632
629
  onMousedown: this.spinnersMouseDown,
@@ -2,11 +2,12 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { Popup } from '@progress/kendo-vue-popup';
8
9
  import { getDate, cloneDate } from '@progress/kendo-date-math';
9
- import { classNames, guid, Keys, templateRendering, getListeners, getTemplate, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots } from '@progress/kendo-vue-common';
10
+ import { classNames, guid, Keys, templateRendering, getListeners, getTemplate, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots, setRef, getRef } from '@progress/kendo-vue-common';
10
11
  import { packageMetadata } from '../package-metadata';
11
12
  import { DateInput } from '../dateinput/DateInput';
12
13
  import { Calendar } from '../calendar/components/Calendar';
@@ -181,10 +182,10 @@ var DatePickerVue2 = {
181
182
  this.$data.currentShow = this.$props.defaultShow;
182
183
  },
183
184
  mounted: function mounted() {
184
- this._dateInput = this.v3 ? this.dateInputRef : this.$refs.dateInput;
185
+ this._dateInput = getRef(this, 'dateInput');
185
186
 
186
187
  if (this.$refs.calendar || this.calendarRef) {
187
- this._calendar = this.v3 ? this.calendarRef : this.$refs.calendar;
188
+ this._calendar = getRef(this, 'calendar');
188
189
  }
189
190
 
190
191
  if (this.computedShow) {
@@ -207,7 +208,7 @@ var DatePickerVue2 = {
207
208
  }
208
209
 
209
210
  if (this.$refs.calendar || this.calendarRef) {
210
- this._calendar = this.v3 ? this.calendarRef : this.$refs.calendar;
211
+ this._calendar = getRef(this, 'calendar');
211
212
  }
212
213
 
213
214
  if (this.computedShow) {
@@ -388,8 +389,8 @@ var DatePickerVue2 = {
388
389
  }
389
390
  },
390
391
  // @ts-ignore
391
- setup: !gh ? undefined : function () {
392
- var v3 = !!gh;
392
+ setup: !isV3 ? undefined : function () {
393
+ var v3 = !!isV3;
393
394
  var listRef = ref(null);
394
395
  var kendoAnchorRef = ref(null);
395
396
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -404,8 +405,6 @@ var DatePickerVue2 = {
404
405
  render: function render(createElement) {
405
406
  var _a;
406
407
 
407
- var _this = this;
408
-
409
408
  var h = gh || createElement;
410
409
  var defaultSlot = getDefaultSlots(this);
411
410
  var _b = this.$props,
@@ -473,9 +472,7 @@ var DatePickerVue2 = {
473
472
  var dateInput = this.$props.dateInput ? templateRendering.call(this, this.$props.dateInput, getListeners.call(this)) : undefined;
474
473
  var dateInputDefaultRendering = // @ts-ignore
475
474
  h(DateInput, {
476
- ref: this.v3 ? function (el) {
477
- _this.dateInputRef = el;
478
- } : 'dateInput',
475
+ ref: setRef(this, 'dateInput'),
479
476
  placeholder: this.$props.placeholder,
480
477
  attrs: this.v3 ? undefined : {
481
478
  placeholder: this.$props.placeholder,
@@ -527,9 +524,7 @@ var DatePickerVue2 = {
527
524
  var calendar = this.$props.calendar ? templateRendering.call(this, this.$props.calendar, getListeners.call(this)) : undefined;
528
525
  var calendarDefaultRendering = // @ts-ignore
529
526
  h(Calendar, {
530
- ref: this.v3 ? function (el) {
531
- _this.calendarRef = el;
532
- } : 'calendar',
527
+ ref: setRef(this, 'calendar'),
533
528
  onKeydown: this.handleKeyDown,
534
529
  on: this.v3 ? undefined : {
535
530
  "keydown": this.handleKeyDown,
@@ -602,9 +597,7 @@ var DatePickerVue2 = {
602
597
  defaultSlots: calendarRendering
603
598
  });
604
599
  var datepicker = h("span", {
605
- ref: this.v3 ? function (el) {
606
- _this.kendoAnchorRef = el;
607
- } : this._anchor,
600
+ ref: setRef(this, 'kendoAnchor', this._anchor),
608
601
  role: "group",
609
602
  attrs: this.v3 ? undefined : {
610
603
  role: "group",
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
+ var isV3 = allVue.version[0] === '3';
21
22
  var ref = allVue.ref;
22
23
  var inject = allVue.inject;
23
24
  import { Popup } from '@progress/kendo-vue-popup';
@@ -228,8 +229,8 @@ var DateRangePickerVue2 = {
228
229
  }
229
230
  },
230
231
  // @ts-ignore
231
- setup: !gh ? undefined : function () {
232
- var v3 = !!gh;
232
+ setup: !isV3 ? undefined : function () {
233
+ var v3 = !!isV3;
233
234
  var kendoAnchorRef = ref(null);
234
235
  var kendoLocalizationService = inject('kendoLocalizationService', {});
235
236
  return {
@@ -433,11 +434,11 @@ var DateRangePickerVue2 = {
433
434
  id: this.$props.id,
434
435
  "aria-labelledby": this.$props.ariaLabelledBy,
435
436
  "aria-describedby": this.$props.ariaDescribedBy,
436
- tabIndex: this.$props.tabIndex
437
+ tabindex: this.$props.tabIndex
437
438
  },
438
439
  "aria-labelledby": this.$props.ariaLabelledBy,
439
440
  "aria-describedby": this.$props.ariaDescribedBy,
440
- tabIndex: this.$props.tabIndex,
441
+ tabindex: this.$props.tabIndex,
441
442
  onFocusin: this.handleFocus,
442
443
  on: this.v3 ? undefined : {
443
444
  "focusin": this.handleFocus,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { FloatingLabel } from '@progress/kendo-vue-labels';
@@ -269,8 +270,8 @@ var DateTimePickerVue2 = {
269
270
  this.shouldFocusDateInput = false;
270
271
  },
271
272
  // @ts-ignore
272
- setup: !gh ? undefined : function () {
273
- var v3 = !!gh;
273
+ setup: !isV3 ? undefined : function () {
274
+ var v3 = !!isV3;
274
275
  var kendoAnchorRef = ref(null);
275
276
  var kendoLocalizationService = inject('kendoLocalizationService', {});
276
277
  return {
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
@@ -113,8 +114,8 @@ var DateTimeSelectorVue2 = {
113
114
  this.shouldFocusPart = false;
114
115
  },
115
116
  // @ts-ignore
116
- setup: !gh ? undefined : function () {
117
- var v3 = !!gh;
117
+ setup: !isV3 ? undefined : function () {
118
+ var v3 = !!isV3;
118
119
  var kendoAnchorRef = ref(null);
119
120
  var kendoLocalizationService = inject('kendoLocalizationService', {});
120
121
  return {
@@ -184,9 +185,9 @@ var DateTimeSelectorVue2 = {
184
185
  "keydown": this.handleKeyDown
185
186
  },
186
187
  "class": rootClassName,
187
- tabIndex: -1,
188
+ tabindex: -1,
188
189
  attrs: this.v3 ? undefined : {
189
- tabIndex: -1
190
+ tabindex: -1
190
191
  }
191
192
  }, [h("div", {
192
193
  "class": "k-datetime-buttongroup"
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-dateinputs',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1656415498,
8
+ publishDate: 1657170785,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -4,6 +4,7 @@ var _a, _b; // @ts-ignore
4
4
  import * as Vue from 'vue';
5
5
  var allVue = Vue;
6
6
  var gh = allVue.h;
7
+ var isV3 = allVue.version[0] === '3';
7
8
  var inject = allVue.inject;
8
9
  import { cloneDate } from '@progress/kendo-date-math';
9
10
  import { canUseDOM, Keys, noop } from '@progress/kendo-vue-common';
@@ -114,8 +115,8 @@ var TimeListVue2 = {
114
115
  this.animateToIndex = true;
115
116
  },
116
117
  // @ts-ignore
117
- setup: !gh ? undefined : function () {
118
- var v3 = !!gh;
118
+ setup: !isV3 ? undefined : function () {
119
+ var v3 = !!isV3;
119
120
  var kendoIntlService = inject('kendoIntlService', {});
120
121
  return {
121
122
  v3: v3,
@@ -170,9 +171,9 @@ var TimeListVue2 = {
170
171
  id: String(this.$props.id || ''),
171
172
  attrs: this.v3 ? undefined : {
172
173
  id: String(this.$props.id || ''),
173
- tabIndex: this.$props.disabled ? -1 : 0
174
+ tabindex: this.$props.disabled ? -1 : 0
174
175
  },
175
- tabIndex: this.$props.disabled ? -1 : 0,
176
+ tabindex: this.$props.disabled ? -1 : 0,
176
177
  onKeydown: this.handleKeyDown,
177
178
  on: this.v3 ? undefined : {
178
179
  "keydown": this.handleKeyDown,
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { Button } from '@progress/kendo-vue-buttons';
7
8
  import { cloneDate } from '@progress/kendo-date-math';
@@ -133,8 +134,8 @@ var TimePartVue2 = {
133
134
  });
134
135
  },
135
136
  // @ts-ignore
136
- setup: !gh ? undefined : function () {
137
- var v3 = !!gh;
137
+ setup: !isV3 ? undefined : function () {
138
+ var v3 = !!isV3;
138
139
  var kendoIntlService = inject('kendoIntlService', {});
139
140
  var kendoLocalizationService = inject('kendoLocalizationService', {});
140
141
  return {
@@ -204,9 +205,9 @@ var TimePartVue2 = {
204
205
  role: "presentation",
205
206
  attrs: this.v3 ? undefined : {
206
207
  role: "presentation",
207
- tabIndex: -1
208
+ tabindex: -1
208
209
  },
209
- tabIndex: -1
210
+ tabindex: -1
210
211
  }, [h("span", {
211
212
  "class": "k-title",
212
213
  onMousedown: function onMousedown(e) {
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
+ var isV3 = allVue.version[0] === '3';
21
22
  var ref = allVue.ref;
22
23
  var inject = allVue.inject;
23
24
  import { FloatingLabel } from '@progress/kendo-vue-labels';
@@ -274,8 +275,8 @@ var TimePickerVue2 = {
274
275
  this.shouldFocusDateInput = false;
275
276
  },
276
277
  // @ts-ignore
277
- setup: !gh ? undefined : function () {
278
- var v3 = !!gh;
278
+ setup: !isV3 ? undefined : function () {
279
+ var v3 = !!isV3;
279
280
  var kendoAnchorRef = ref(null);
280
281
  var kendoLocalizationService = inject('kendoLocalizationService', {});
281
282
  return {
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { Button } from '@progress/kendo-vue-buttons';
7
8
  import { cloneDate } from '@progress/kendo-date-math';
@@ -124,8 +125,8 @@ var TimeSelectorVue2 = {
124
125
  this._cancelButton = this.$refs.cancelButton;
125
126
  },
126
127
  // @ts-ignore
127
- setup: !gh ? undefined : function () {
128
- var v3 = !!gh;
128
+ setup: !isV3 ? undefined : function () {
129
+ var v3 = !!isV3;
129
130
  var kendoIntlService = inject('kendoIntlService', {});
130
131
  var kendoLocalizationService = inject('kendoLocalizationService', {});
131
132
  return {
@@ -152,9 +153,9 @@ var TimeSelectorVue2 = {
152
153
  var cancelMessage = localizationService.toLanguageString(timePickerCancel, messages[timePickerCancel]);
153
154
  var setMessage = localizationService.toLanguageString(timePickerSet, messages[timePickerSet]);
154
155
  return h("div", {
155
- tabIndex: !disabled ? tabIndex || 0 : undefined,
156
+ tabindex: !disabled ? tabIndex || 0 : undefined,
156
157
  attrs: this.v3 ? undefined : {
157
- tabIndex: !disabled ? tabIndex || 0 : undefined
158
+ tabindex: !disabled ? tabIndex || 0 : undefined
158
159
  },
159
160
  "class": classNames('k-timeselector k-reset', {
160
161
  'k-state-disabled': disabled
@@ -4,6 +4,7 @@ var _a, _b, _c; // @ts-ignore
4
4
  import * as Vue from 'vue';
5
5
  var allVue = Vue;
6
6
  var gh = allVue.h;
7
+ var isV3 = allVue.version[0] === '3';
7
8
  import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
8
9
  import { RowHeightService, ScrollerService } from './services';
9
10
  /**
@@ -309,8 +310,8 @@ var VirtualizationVue2 = {
309
310
  }
310
311
  },
311
312
  // @ts-ignore
312
- setup: !gh ? undefined : function () {
313
- var v3 = !!gh;
313
+ setup: !isV3 ? undefined : function () {
314
+ var v3 = !!isV3;
314
315
  return {
315
316
  v3: v3
316
317
  };
@@ -346,9 +347,9 @@ var VirtualizationVue2 = {
346
347
  "scroll": this.handleScroll
347
348
  },
348
349
  "class": rootClassNames,
349
- tabIndex: this.$props.tabIndex,
350
+ tabindex: this.$props.tabIndex,
350
351
  attrs: this.v3 ? undefined : {
351
- tabIndex: this.$props.tabIndex,
352
+ tabindex: this.$props.tabIndex,
352
353
  role: this.$props.role
353
354
  },
354
355
  role: this.$props.role
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var inject = allVue.inject;
13
14
 
14
15
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
@@ -159,8 +160,8 @@ var CalendarVue2 = {
159
160
  }
160
161
  },
161
162
  // @ts-ignore
162
- setup: !gh ? undefined : function () {
163
- var v3 = !!gh;
163
+ setup: !isV3 ? undefined : function () {
164
+ var v3 = !!isV3;
164
165
  var kendoIntlService = inject('kendoIntlService', {});
165
166
  return {
166
167
  v3: v3,
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
 
13
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
14
15
  /**
@@ -80,8 +81,8 @@ var CalendarCellVue2 = {
80
81
  // return !(valueEqual && compareProps(props, newProps));
81
82
  },
82
83
  // @ts-ignore
83
- setup: !gh ? undefined : function () {
84
- var v3 = !!gh;
84
+ setup: !isV3 ? undefined : function () {
85
+ var v3 = !!isV3;
85
86
  return {
86
87
  v3: v3
87
88
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
 
13
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
14
15
 
@@ -35,8 +36,8 @@ var CalendarHeaderTitleVue2 = {
35
36
  }
36
37
  },
37
38
  // @ts-ignore
38
- setup: !gh ? undefined : function () {
39
- var v3 = !!gh;
39
+ setup: !isV3 ? undefined : function () {
40
+ var v3 = !!isV3;
40
41
  return {
41
42
  v3: v3
42
43
  };