@progress/kendo-vue-dateinputs 3.5.3 → 3.5.4

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 (32) hide show
  1. package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
  2. package/dist/es/calendar/components/Header.js +7 -7
  3. package/dist/es/calendar/components/ViewList.js +2 -2
  4. package/dist/es/dateinput/DateInput.js +33 -17
  5. package/dist/es/dateinput/models/DateInputSettings.d.ts +20 -0
  6. package/dist/es/datepicker/DatePicker.js +11 -18
  7. package/dist/es/daterangepicker/DateRangePicker.js +6 -21
  8. package/dist/es/datetimepicker/DateTimePicker.js +13 -9
  9. package/dist/es/package-metadata.js +1 -1
  10. package/dist/es/timepicker/TimePicker.js +10 -8
  11. package/dist/es/timepicker/TimeSelector.js +1 -1
  12. package/dist/esm/calendar/components/Header.js +7 -7
  13. package/dist/esm/calendar/components/ViewList.js +2 -2
  14. package/dist/esm/dateinput/DateInput.js +33 -17
  15. package/dist/esm/dateinput/models/DateInputSettings.d.ts +20 -0
  16. package/dist/esm/datepicker/DatePicker.js +11 -18
  17. package/dist/esm/daterangepicker/DateRangePicker.js +6 -21
  18. package/dist/esm/datetimepicker/DateTimePicker.js +13 -9
  19. package/dist/esm/package-metadata.js +1 -1
  20. package/dist/esm/timepicker/TimePicker.js +10 -8
  21. package/dist/esm/timepicker/TimeSelector.js +1 -1
  22. package/dist/npm/calendar/components/Header.js +7 -7
  23. package/dist/npm/calendar/components/ViewList.js +2 -2
  24. package/dist/npm/dateinput/DateInput.js +33 -17
  25. package/dist/npm/dateinput/models/DateInputSettings.d.ts +20 -0
  26. package/dist/npm/datepicker/DatePicker.js +11 -18
  27. package/dist/npm/daterangepicker/DateRangePicker.js +6 -21
  28. package/dist/npm/datetimepicker/DateTimePicker.js +13 -9
  29. package/dist/npm/package-metadata.js +1 -1
  30. package/dist/npm/timepicker/TimePicker.js +10 -8
  31. package/dist/npm/timepicker/TimeSelector.js +1 -1
  32. package/package.json +7 -7
@@ -192,21 +192,8 @@ var DatePickerVue2 = {
192
192
  // If defaultShow is true during the initial render, the popup is not aligned.
193
193
  this.$forceUpdate();
194
194
  }
195
-
196
- if (this._dateInput && this._dateInput.$el) {
197
- this._dateInput.$el.setAttribute('aria-haspopup', 'true'); // this._dateInput.$el.setAttribute('aria-expanded', `${this.$data.currentShow}`);
198
-
199
- }
200
-
201
- if (this.$el) {
202
- this.$el.setAttribute('aria-expanded', "".concat(this.computedShow));
203
- }
204
195
  },
205
196
  updated: function updated() {
206
- if (this.$el) {
207
- this.$el.setAttribute('aria-expanded', "".concat(this.computedShow));
208
- }
209
-
210
197
  if (this.$refs.calendar || this.calendarRef) {
211
198
  this._calendar = getRef(this, 'calendar');
212
199
  }
@@ -494,7 +481,11 @@ var DatePickerVue2 = {
494
481
  valid: this.validity().valid,
495
482
  validationMessage: validationMessage,
496
483
  validityStyles: validityStyles,
497
- value: value
484
+ value: value,
485
+ ariaHasPopup: true,
486
+ ariaExpanded: show,
487
+ ariaRole: "combobox",
488
+ ariaControls: this._popupId
498
489
  },
499
490
  disabled: disabled,
500
491
  format: format,
@@ -516,7 +507,11 @@ var DatePickerVue2 = {
516
507
  valid: this.validity().valid,
517
508
  validationMessage: validationMessage,
518
509
  validityStyles: validityStyles,
519
- value: value
510
+ value: value,
511
+ ariaHasPopup: true,
512
+ ariaExpanded: show,
513
+ ariaRole: "combobox",
514
+ ariaControls: this._popupId
520
515
  });
521
516
  var dateInputRendering = getTemplate.call(this, {
522
517
  h: h,
@@ -602,10 +597,8 @@ var DatePickerVue2 = {
602
597
  ref: setRef(this, 'kendoAnchor', this._anchor),
603
598
  role: "group",
604
599
  attrs: this.v3 ? undefined : {
605
- role: "group",
606
- "aria-expanded": this.computedShow
600
+ role: "group"
607
601
  },
608
- "aria-expanded": this.computedShow,
609
602
  "class": classNames('k-input', 'k-datepicker', (_a = {}, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.$data.isFocused, _a)),
610
603
  onKeydown: this.handleKeyDown,
611
604
  on: this.v3 ? undefined : {
@@ -275,7 +275,9 @@ var DateRangePickerVue2 = {
275
275
  rounded: rounded,
276
276
  ariaHasPopup: true,
277
277
  ariaExpanded: this.computedShow,
278
- value: value.start
278
+ value: value.start,
279
+ ariaRole: 'combobox',
280
+ ariaControls: this._popupId
279
281
  }, this.$props.startDateInputSettings);
280
282
 
281
283
  var startDateInputDefaultRendering = h(DateInput, __assign(__assign({
@@ -312,7 +314,9 @@ var DateRangePickerVue2 = {
312
314
  valid: this.$props.valid,
313
315
  ariaHasPopup: true,
314
316
  ariaExpanded: this.computedShow,
315
- value: value.end
317
+ value: value.end,
318
+ ariaRole: 'combobox',
319
+ ariaControls: this._popupId
316
320
  }, this.$props.endDateInputSettings);
317
321
 
318
322
  var endDateInputDefaultRendering = h(DateInput, __assign(__assign({
@@ -520,21 +524,10 @@ var DateRangePickerVue2 = {
520
524
  event.preventDefault();
521
525
  },
522
526
  handleFocus: function handleFocus(event) {
523
- var startInput = this.getStartInput();
524
- var endInput = this.getEndInput();
525
-
526
527
  if (!this.shouldFocusDateInput) {
527
528
  this.setShow(true);
528
529
  }
529
530
 
530
- if (startInput) {
531
- startInput.classList.add('k-focus');
532
- }
533
-
534
- if (endInput) {
535
- endInput.classList.add('k-focus');
536
- }
537
-
538
531
  this.$emit('focus', event);
539
532
  },
540
533
  calendarBlur: function calendarBlur() {
@@ -554,14 +547,6 @@ var DateRangePickerVue2 = {
554
547
 
555
548
  var endInput = _this.getEndInput();
556
549
 
557
- if (startInput) {
558
- startInput.classList.remove('k-focus');
559
- }
560
-
561
- if (endInput) {
562
- endInput.classList.remove('k-focus');
563
- }
564
-
565
550
  if (startInput && endInput && canUseDOM && startInput && document.activeElement !== endInput) {
566
551
  _this.setShow(false);
567
552
  }
@@ -243,7 +243,6 @@ var DateTimePickerVue2 = {
243
243
 
244
244
  if (dateInputElement) {
245
245
  dateInputElement.setAttribute('aria-haspopup', 'true');
246
- dateInputElement.setAttribute('aria-expanded', "".concat(this.computedShow));
247
246
  }
248
247
  },
249
248
  updated: function updated() {
@@ -251,10 +250,6 @@ var DateTimePickerVue2 = {
251
250
  this._dateTimeSelector = this.$refs.dateTimeSelector;
252
251
  this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
253
252
 
254
- if (dateInputElement) {
255
- dateInputElement.setAttribute('aria-expanded', "".concat(this.computedShow));
256
- }
257
-
258
253
  if (this._dateTimeSelector && this.computedShow && !this._oldShow) {
259
254
  this._dateTimeSelector.focus({
260
255
  preventScroll: true
@@ -349,7 +344,11 @@ var DateTimePickerVue2 = {
349
344
  valid: this.validity().valid,
350
345
  validationMessage: validationMessage,
351
346
  validityStyles: validityStyles,
352
- value: this.computedValue
347
+ value: this.computedValue,
348
+ ariaHasPopup: true,
349
+ ariaExpanded: this.computedShow,
350
+ ariaRole: "combobox",
351
+ ariaControls: this._popupId
353
352
  },
354
353
  disabled: disabled,
355
354
  format: format,
@@ -376,7 +375,11 @@ var DateTimePickerVue2 = {
376
375
  valid: this.validity().valid,
377
376
  validationMessage: validationMessage,
378
377
  validityStyles: validityStyles,
379
- value: this.computedValue
378
+ value: this.computedValue,
379
+ ariaHasPopup: true,
380
+ ariaExpanded: this.computedShow,
381
+ ariaRole: "combobox",
382
+ ariaControls: this._popupId
380
383
  }, this.v3 ? function () {
381
384
  return [defaultSlot];
382
385
  } : [defaultSlot]);
@@ -428,7 +431,7 @@ var DateTimePickerVue2 = {
428
431
  onBlur: this.timeSelectorBlur,
429
432
  onKeydown: this.handleKeyDown
430
433
  });
431
- var popupClassNames = classNames('k-datetime-container k-group k-reset', popupClass);
434
+ var popupClassNames = classNames('k-datetime-container k-reset', popupClass);
432
435
  var popup = this.$props.popup ? templateRendering.call(this, this.$props.popup, getListeners.call(this)) : undefined;
433
436
  var popupDefaultRendering = // @ts-ignore function children
434
437
  h(Popup, {
@@ -436,6 +439,7 @@ var DateTimePickerVue2 = {
436
439
  attrs: this.v3 ? undefined : {
437
440
  show: this.computedShow,
438
441
  anchor: this._anchor,
442
+ popupClass: popupClassNames,
439
443
  id: this._popupId,
440
444
  anchorAlign: {
441
445
  horizontal: 'left',
@@ -449,7 +453,7 @@ var DateTimePickerVue2 = {
449
453
  animate: animate
450
454
  },
451
455
  anchor: this._anchor,
452
- "class": popupClassNames,
456
+ popupClass: popupClassNames,
453
457
  id: this._popupId,
454
458
  anchorAlign: {
455
459
  horizontal: 'left',
@@ -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: 1662389008,
8
+ publishDate: 1662729342,
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
  };
@@ -251,8 +251,6 @@ var TimePickerVue2 = {
251
251
 
252
252
  if (this._dateInput && this._dateInput.element()) {
253
253
  this._dateInput.element().setAttribute('aria-haspopup', 'true');
254
-
255
- this._dateInput.element().setAttribute('aria-expanded', "".concat(this.computedShow));
256
254
  }
257
255
  },
258
256
  updated: function updated() {
@@ -260,10 +258,6 @@ var TimePickerVue2 = {
260
258
  this._timeSelector = this.$refs.timeSelector;
261
259
  this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
262
260
 
263
- if (this._dateInput && this._dateInput.element()) {
264
- this._dateInput.element().setAttribute('aria-expanded', "".concat(this.computedShow));
265
- }
266
-
267
261
  if (this._timeSelector && this.computedShow && !this._oldShow) {
268
262
  this._timeSelector.focusActiveList();
269
263
  } else if (this._dateInput && this._dateInput.element() && !this.computedShow && this.shouldFocusDateInput) {
@@ -357,7 +351,11 @@ var TimePickerVue2 = {
357
351
  valid: this.validity().valid,
358
352
  validationMessage: validationMessage,
359
353
  validityStyles: validityStyles,
360
- value: this.computedValue && this.normalizeTime(this.computedValue)
354
+ value: this.computedValue && this.normalizeTime(this.computedValue),
355
+ ariaHasPopup: true,
356
+ ariaExpanded: this.computedShow,
357
+ ariaRole: "combobox",
358
+ ariaControls: this._popupId
361
359
  },
362
360
  disabled: disabled,
363
361
  format: format,
@@ -382,7 +380,11 @@ var TimePickerVue2 = {
382
380
  valid: this.validity().valid,
383
381
  validationMessage: validationMessage,
384
382
  validityStyles: validityStyles,
385
- value: this.computedValue && this.normalizeTime(this.computedValue)
383
+ value: this.computedValue && this.normalizeTime(this.computedValue),
384
+ ariaHasPopup: true,
385
+ ariaExpanded: this.computedShow,
386
+ ariaRole: "combobox",
387
+ ariaControls: this._popupId
386
388
  }, this.v3 ? function () {
387
389
  return [defaultSlot];
388
390
  } : [defaultSlot]);
@@ -157,7 +157,7 @@ var TimeSelectorVue2 = {
157
157
  attrs: this.v3 ? undefined : {
158
158
  tabindex: !disabled ? tabIndex || 0 : undefined
159
159
  },
160
- "class": classNames('k-timeselector k-reset', {
160
+ "class": classNames('k-timeselector', {
161
161
  'k-disabled': disabled
162
162
  }),
163
163
  onKeydown: this.handleKeyDown,
@@ -198,7 +198,7 @@ var HeaderVue2 = {
198
198
  var titleClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-title', 'k-title', {
199
199
  'k-disabled': !this.navigate
200
200
  });
201
- var todayClassNames = (0, kendo_vue_common_1.classNames)('k-nav-today', {
201
+ var todayClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-nav-today', {
202
202
  'k-disabled': !this.todayIsInRange
203
203
  });
204
204
  var headerTitle;
@@ -234,17 +234,17 @@ var HeaderVue2 = {
234
234
  type: "button",
235
235
  attrs: this.v3 ? undefined : {
236
236
  type: "button",
237
- icon: 'arrow-60-left',
237
+ icon: 'chevron-left',
238
238
  size: this.$props.size,
239
239
  fillMode: 'flat',
240
240
  desabled: isPrevDisabled,
241
241
  "aria-label": prevViewTitle,
242
242
  title: prevViewTitle
243
243
  },
244
- icon: 'arrow-60-left',
244
+ icon: 'chevron-left',
245
245
  size: this.$props.size,
246
246
  fillMode: 'flat',
247
- "class": "k-prev-view",
247
+ "class": "k-calendar-nav-pre",
248
248
  desabled: isPrevDisabled,
249
249
  "aria-label": prevViewTitle,
250
250
  title: prevViewTitle,
@@ -269,17 +269,17 @@ var HeaderVue2 = {
269
269
  type: "button",
270
270
  attrs: this.v3 ? undefined : {
271
271
  type: "button",
272
- icon: 'arrow-60-right',
272
+ icon: 'chevron-right',
273
273
  size: this.$props.size,
274
274
  fillMode: 'flat',
275
275
  desabled: isNextDisabled,
276
276
  "aria-label": nextViewTittle,
277
277
  title: nextViewTittle
278
278
  },
279
- icon: 'arrow-60-right',
279
+ icon: 'chevron-right',
280
280
  size: this.$props.size,
281
281
  fillMode: 'flat',
282
- "class": "k-next-view",
282
+ "class": "k-calendar-nav-next",
283
283
  desabled: isNextDisabled,
284
284
  "aria-label": nextViewTittle,
285
285
  title: nextViewTittle,
@@ -242,7 +242,7 @@ var ViewListVue2 = {
242
242
  'k-calendar-decadeview': this.$props.activeView === main_1.CalendarViewEnum.decade,
243
243
  'k-calendar-centuryview': this.$props.activeView === main_1.CalendarViewEnum.century
244
244
  });
245
- var tableClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-table', 'k-content', 'k-calendar-content', {
245
+ var tableClassNames = (0, kendo_vue_common_1.classNames)('k-calendar-table', {
246
246
  'k-month': this.$props.activeView === main_1.CalendarViewEnum.month,
247
247
  'k-year': this.$props.activeView === main_1.CalendarViewEnum.year,
248
248
  'k-decade': this.$props.activeView === main_1.CalendarViewEnum.decade,
@@ -257,7 +257,7 @@ var ViewListVue2 = {
257
257
  "class": 'k-calendar-tr k-calendar-weekdays'
258
258
  }, [weekNames.map(function (name, idx) {
259
259
  return h("th", {
260
- "class": 'k-calendar-th',
260
+ "class": 'k-calendar-caption',
261
261
  key: idx,
262
262
  onClick: function onClick(ev) {
263
263
  return that.handleWeekNameClick(ev, name);
@@ -156,6 +156,20 @@ var DateInputVue2 = {
156
156
  valid: {
157
157
  type: Boolean,
158
158
  default: undefined
159
+ },
160
+ ariaRole: {
161
+ type: String,
162
+ default: 'textbox'
163
+ },
164
+ ariaControls: String,
165
+ ariaLabel: String,
166
+ ariaExpanded: {
167
+ type: Boolean,
168
+ default: undefined
169
+ },
170
+ ariaHasPopup: {
171
+ type: Boolean,
172
+ default: undefined
159
173
  }
160
174
  },
161
175
  data: function data() {
@@ -559,12 +573,14 @@ var DateInputVue2 = {
559
573
  format = _a.format,
560
574
  value = _a.value,
561
575
  modelValue = _a.modelValue,
562
- min = _a.min,
563
- max = _a.max,
564
576
  name = _a.name,
565
577
  label = _a.label,
566
578
  id = _a.id,
567
- defaultValue = _a.defaultValue;
579
+ ariaLabel = _a.ariaLabel,
580
+ ariaExpanded = _a.ariaExpanded,
581
+ ariaHasPopup = _a.ariaHasPopup,
582
+ ariaRole = _a.ariaRole,
583
+ ariaControls = _a.ariaControls;
568
584
  this.kendoDate.format = format;
569
585
  this.kendoDate.formatPlaceholder = formatPlaceholder;
570
586
  var currentValue = value !== undefined ? value : modelValue;
@@ -590,9 +606,9 @@ var DateInputVue2 = {
590
606
  dir: this.$props.dir
591
607
  }
592
608
  }, [h("input", {
593
- role: "spinbutton",
609
+ role: ariaRole,
594
610
  attrs: this.v3 ? undefined : {
595
- role: "spinbutton",
611
+ role: ariaRole,
596
612
  tabindex: this.$props.tabIndex,
597
613
  disabled: this.$props.disabled,
598
614
  title: this.$props.title !== undefined ? this.$props.title : currentText,
@@ -603,10 +619,10 @@ var DateInputVue2 = {
603
619
  id: inputId,
604
620
  placeholder: this.$props.placeholder,
605
621
  name: name,
606
- "aria-valuenow": this.computedValue !== null ? this.computedValue.getTime() : undefined,
607
- "aria-valuemin": min === null ? undefined : min.getTime(),
608
- "aria-valuemax": max === null ? undefined : max.getTime(),
609
- "aria-valuetext": currentText
622
+ "aria-label": ariaLabel,
623
+ "aria-expanded": ariaExpanded,
624
+ "aria-haspopup": ariaHasPopup,
625
+ "aria-controls": ariaControls
610
626
  },
611
627
  tabindex: this.$props.tabIndex,
612
628
  disabled: this.$props.disabled,
@@ -639,10 +655,10 @@ var DateInputVue2 = {
639
655
  "value": textToDisplay
640
656
  },
641
657
  name: name,
642
- "aria-valuenow": this.computedValue !== null ? this.computedValue.getTime() : undefined,
643
- "aria-valuemin": min === null ? undefined : min.getTime(),
644
- "aria-valuemax": max === null ? undefined : max.getTime(),
645
- "aria-valuetext": currentText,
658
+ "aria-label": ariaLabel,
659
+ "aria-expanded": ariaExpanded,
660
+ "aria-haspopup": ariaHasPopup,
661
+ "aria-controls": ariaControls,
646
662
  ref: (0, kendo_vue_common_1.setRef)(this, 'input')
647
663
  }), defaultSlot, this.$props.spinners && h("span", {
648
664
  "class": "k-input-spinner k-spin-button",
@@ -656,14 +672,14 @@ var DateInputVue2 = {
656
672
  attrs: this.v3 ? undefined : {
657
673
  type: "button",
658
674
  tabIndex: -1,
659
- icon: 'arrow-n',
675
+ icon: 'caret-alt-up',
660
676
  size: this.$props.size,
661
677
  fillMode: this.$props.fillMode,
662
678
  "aria-label": localizationService.toLanguageString(main_2.increaseValue, main_2.messages[main_2.increaseValue]),
663
679
  title: localizationService.toLanguageString(main_2.increaseValue, main_2.messages[main_2.increaseValue])
664
680
  },
665
681
  tabIndex: -1,
666
- icon: 'arrow-n',
682
+ icon: 'caret-alt-up',
667
683
  size: this.$props.size,
668
684
  fillMode: this.$props.fillMode,
669
685
  "class": "k-spinner-increase",
@@ -679,7 +695,7 @@ var DateInputVue2 = {
679
695
  attrs: this.v3 ? undefined : {
680
696
  type: "button",
681
697
  tabIndex: -1,
682
- icon: 'arrow-s',
698
+ icon: 'caret-alt-down',
683
699
  size: this.$props.size,
684
700
  fillMode: this.$props.fillMode,
685
701
  "aria-label": localizationService.toLanguageString(main_2.decreaseValue, main_2.messages[main_2.decreaseValue]),
@@ -687,7 +703,7 @@ var DateInputVue2 = {
687
703
  },
688
704
  tabIndex: -1,
689
705
  "class": "k-spinner-decrease",
690
- icon: 'arrow-s',
706
+ icon: 'caret-alt-down',
691
707
  size: this.$props.size,
692
708
  fillMode: this.$props.fillMode,
693
709
  "aria-label": localizationService.toLanguageString(main_2.decreaseValue, main_2.messages[main_2.decreaseValue]),
@@ -64,6 +64,26 @@ export interface DateInputSettings {
64
64
  * Sets the title of the `input` element of the DateInput.
65
65
  */
66
66
  title?: string;
67
+ /**
68
+ * Sets the aria-label of the DateInput.
69
+ */
70
+ ariaLabel?: string;
71
+ /**
72
+ * Sets the aria role of the DateInput.
73
+ */
74
+ ariaRole?: string;
75
+ /**
76
+ * Sets the aria-controls of the DateInput.
77
+ */
78
+ ariaControls?: string;
79
+ /**
80
+ * Sets the aria-haspopup of the DateInput.
81
+ */
82
+ ariaHasPopup?: boolean;
83
+ /**
84
+ * Sets the aria-expanded of the DateInput.
85
+ */
86
+ ariaExpanded?: boolean;
67
87
  /**
68
88
  * Specifies the incremental steps of the DateInput ([see example]({% slug incrementalsteps_dateinput %}).
69
89
  *
@@ -212,21 +212,8 @@ var DatePickerVue2 = {
212
212
  // If defaultShow is true during the initial render, the popup is not aligned.
213
213
  this.$forceUpdate();
214
214
  }
215
-
216
- if (this._dateInput && this._dateInput.$el) {
217
- this._dateInput.$el.setAttribute('aria-haspopup', 'true'); // this._dateInput.$el.setAttribute('aria-expanded', `${this.$data.currentShow}`);
218
-
219
- }
220
-
221
- if (this.$el) {
222
- this.$el.setAttribute('aria-expanded', "".concat(this.computedShow));
223
- }
224
215
  },
225
216
  updated: function updated() {
226
- if (this.$el) {
227
- this.$el.setAttribute('aria-expanded', "".concat(this.computedShow));
228
- }
229
-
230
217
  if (this.$refs.calendar || this.calendarRef) {
231
218
  this._calendar = (0, kendo_vue_common_1.getRef)(this, 'calendar');
232
219
  }
@@ -514,7 +501,11 @@ var DatePickerVue2 = {
514
501
  valid: this.validity().valid,
515
502
  validationMessage: validationMessage,
516
503
  validityStyles: validityStyles,
517
- value: value
504
+ value: value,
505
+ ariaHasPopup: true,
506
+ ariaExpanded: show,
507
+ ariaRole: "combobox",
508
+ ariaControls: this._popupId
518
509
  },
519
510
  disabled: disabled,
520
511
  format: format,
@@ -536,7 +527,11 @@ var DatePickerVue2 = {
536
527
  valid: this.validity().valid,
537
528
  validationMessage: validationMessage,
538
529
  validityStyles: validityStyles,
539
- value: value
530
+ value: value,
531
+ ariaHasPopup: true,
532
+ ariaExpanded: show,
533
+ ariaRole: "combobox",
534
+ ariaControls: this._popupId
540
535
  });
541
536
  var dateInputRendering = kendo_vue_common_1.getTemplate.call(this, {
542
537
  h: h,
@@ -622,10 +617,8 @@ var DatePickerVue2 = {
622
617
  ref: (0, kendo_vue_common_1.setRef)(this, 'kendoAnchor', this._anchor),
623
618
  role: "group",
624
619
  attrs: this.v3 ? undefined : {
625
- role: "group",
626
- "aria-expanded": this.computedShow
620
+ role: "group"
627
621
  },
628
- "aria-expanded": this.computedShow,
629
622
  "class": (0, kendo_vue_common_1.classNames)('k-input', 'k-datepicker', (_a = {}, _a["k-input-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.$data.isFocused, _a)),
630
623
  onKeydown: this.handleKeyDown,
631
624
  on: this.v3 ? undefined : {
@@ -294,7 +294,9 @@ var DateRangePickerVue2 = {
294
294
  rounded: rounded,
295
295
  ariaHasPopup: true,
296
296
  ariaExpanded: this.computedShow,
297
- value: value.start
297
+ value: value.start,
298
+ ariaRole: 'combobox',
299
+ ariaControls: this._popupId
298
300
  }, this.$props.startDateInputSettings);
299
301
 
300
302
  var startDateInputDefaultRendering = h(DateInput_1.DateInput, __assign(__assign({
@@ -331,7 +333,9 @@ var DateRangePickerVue2 = {
331
333
  valid: this.$props.valid,
332
334
  ariaHasPopup: true,
333
335
  ariaExpanded: this.computedShow,
334
- value: value.end
336
+ value: value.end,
337
+ ariaRole: 'combobox',
338
+ ariaControls: this._popupId
335
339
  }, this.$props.endDateInputSettings);
336
340
 
337
341
  var endDateInputDefaultRendering = h(DateInput_1.DateInput, __assign(__assign({
@@ -539,21 +543,10 @@ var DateRangePickerVue2 = {
539
543
  event.preventDefault();
540
544
  },
541
545
  handleFocus: function handleFocus(event) {
542
- var startInput = this.getStartInput();
543
- var endInput = this.getEndInput();
544
-
545
546
  if (!this.shouldFocusDateInput) {
546
547
  this.setShow(true);
547
548
  }
548
549
 
549
- if (startInput) {
550
- startInput.classList.add('k-focus');
551
- }
552
-
553
- if (endInput) {
554
- endInput.classList.add('k-focus');
555
- }
556
-
557
550
  this.$emit('focus', event);
558
551
  },
559
552
  calendarBlur: function calendarBlur() {
@@ -573,14 +566,6 @@ var DateRangePickerVue2 = {
573
566
 
574
567
  var endInput = _this.getEndInput();
575
568
 
576
- if (startInput) {
577
- startInput.classList.remove('k-focus');
578
- }
579
-
580
- if (endInput) {
581
- endInput.classList.remove('k-focus');
582
- }
583
-
584
569
  if (startInput && endInput && kendo_vue_common_1.canUseDOM && startInput && document.activeElement !== endInput) {
585
570
  _this.setShow(false);
586
571
  }
@@ -265,7 +265,6 @@ var DateTimePickerVue2 = {
265
265
 
266
266
  if (dateInputElement) {
267
267
  dateInputElement.setAttribute('aria-haspopup', 'true');
268
- dateInputElement.setAttribute('aria-expanded', "".concat(this.computedShow));
269
268
  }
270
269
  },
271
270
  updated: function updated() {
@@ -273,10 +272,6 @@ var DateTimePickerVue2 = {
273
272
  this._dateTimeSelector = this.$refs.dateTimeSelector;
274
273
  this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
275
274
 
276
- if (dateInputElement) {
277
- dateInputElement.setAttribute('aria-expanded', "".concat(this.computedShow));
278
- }
279
-
280
275
  if (this._dateTimeSelector && this.computedShow && !this._oldShow) {
281
276
  this._dateTimeSelector.focus({
282
277
  preventScroll: true
@@ -371,7 +366,11 @@ var DateTimePickerVue2 = {
371
366
  valid: this.validity().valid,
372
367
  validationMessage: validationMessage,
373
368
  validityStyles: validityStyles,
374
- value: this.computedValue
369
+ value: this.computedValue,
370
+ ariaHasPopup: true,
371
+ ariaExpanded: this.computedShow,
372
+ ariaRole: "combobox",
373
+ ariaControls: this._popupId
375
374
  },
376
375
  disabled: disabled,
377
376
  format: format,
@@ -398,7 +397,11 @@ var DateTimePickerVue2 = {
398
397
  valid: this.validity().valid,
399
398
  validationMessage: validationMessage,
400
399
  validityStyles: validityStyles,
401
- value: this.computedValue
400
+ value: this.computedValue,
401
+ ariaHasPopup: true,
402
+ ariaExpanded: this.computedShow,
403
+ ariaRole: "combobox",
404
+ ariaControls: this._popupId
402
405
  }, this.v3 ? function () {
403
406
  return [defaultSlot];
404
407
  } : [defaultSlot]);
@@ -450,7 +453,7 @@ var DateTimePickerVue2 = {
450
453
  onBlur: this.timeSelectorBlur,
451
454
  onKeydown: this.handleKeyDown
452
455
  });
453
- var popupClassNames = (0, kendo_vue_common_1.classNames)('k-datetime-container k-group k-reset', popupClass);
456
+ var popupClassNames = (0, kendo_vue_common_1.classNames)('k-datetime-container k-reset', popupClass);
454
457
  var popup = this.$props.popup ? kendo_vue_common_1.templateRendering.call(this, this.$props.popup, kendo_vue_common_1.getListeners.call(this)) : undefined;
455
458
  var popupDefaultRendering = // @ts-ignore function children
456
459
  h(kendo_vue_popup_1.Popup, {
@@ -458,6 +461,7 @@ var DateTimePickerVue2 = {
458
461
  attrs: this.v3 ? undefined : {
459
462
  show: this.computedShow,
460
463
  anchor: this._anchor,
464
+ popupClass: popupClassNames,
461
465
  id: this._popupId,
462
466
  anchorAlign: {
463
467
  horizontal: 'left',
@@ -471,7 +475,7 @@ var DateTimePickerVue2 = {
471
475
  animate: animate
472
476
  },
473
477
  anchor: this._anchor,
474
- "class": popupClassNames,
478
+ popupClass: popupClassNames,
475
479
  id: this._popupId,
476
480
  anchorAlign: {
477
481
  horizontal: 'left',
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-dateinputs',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1662389008,
11
+ publishDate: 1662729342,
12
12
  version: '',
13
13
  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'
14
14
  };