@progress/kendo-vue-dateinputs 3.5.4-dev.202209071223 → 3.5.4-dev.202209091220
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/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/dist/es/dateinput/DateInput.js +29 -13
- package/dist/es/dateinput/models/DateInputSettings.d.ts +20 -0
- package/dist/es/datepicker/DatePicker.js +11 -18
- package/dist/es/daterangepicker/DateRangePicker.js +6 -2
- package/dist/es/datetimepicker/DateTimePicker.js +10 -7
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePicker.js +10 -8
- package/dist/esm/dateinput/DateInput.js +29 -13
- package/dist/esm/dateinput/models/DateInputSettings.d.ts +20 -0
- package/dist/esm/datepicker/DatePicker.js +11 -18
- package/dist/esm/daterangepicker/DateRangePicker.js +6 -2
- package/dist/esm/datetimepicker/DateTimePicker.js +10 -7
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/timepicker/TimePicker.js +10 -8
- package/dist/npm/dateinput/DateInput.js +29 -13
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +20 -0
- package/dist/npm/datepicker/DatePicker.js +11 -18
- package/dist/npm/daterangepicker/DateRangePicker.js +6 -2
- package/dist/npm/datetimepicker/DateTimePicker.js +10 -7
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePicker.js +10 -8
- package/package.json +7 -7
|
@@ -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({
|
|
@@ -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]);
|
|
@@ -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:
|
|
11
|
+
publishDate: 1662725573,
|
|
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
|
};
|
|
@@ -271,8 +271,6 @@ var TimePickerVue2 = {
|
|
|
271
271
|
|
|
272
272
|
if (this._dateInput && this._dateInput.element()) {
|
|
273
273
|
this._dateInput.element().setAttribute('aria-haspopup', 'true');
|
|
274
|
-
|
|
275
|
-
this._dateInput.element().setAttribute('aria-expanded', "".concat(this.computedShow));
|
|
276
274
|
}
|
|
277
275
|
},
|
|
278
276
|
updated: function updated() {
|
|
@@ -280,10 +278,6 @@ var TimePickerVue2 = {
|
|
|
280
278
|
this._timeSelector = this.$refs.timeSelector;
|
|
281
279
|
this._wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
|
|
282
280
|
|
|
283
|
-
if (this._dateInput && this._dateInput.element()) {
|
|
284
|
-
this._dateInput.element().setAttribute('aria-expanded', "".concat(this.computedShow));
|
|
285
|
-
}
|
|
286
|
-
|
|
287
281
|
if (this._timeSelector && this.computedShow && !this._oldShow) {
|
|
288
282
|
this._timeSelector.focusActiveList();
|
|
289
283
|
} else if (this._dateInput && this._dateInput.element() && !this.computedShow && this.shouldFocusDateInput) {
|
|
@@ -377,7 +371,11 @@ var TimePickerVue2 = {
|
|
|
377
371
|
valid: this.validity().valid,
|
|
378
372
|
validationMessage: validationMessage,
|
|
379
373
|
validityStyles: validityStyles,
|
|
380
|
-
value: this.computedValue && this.normalizeTime(this.computedValue)
|
|
374
|
+
value: this.computedValue && this.normalizeTime(this.computedValue),
|
|
375
|
+
ariaHasPopup: true,
|
|
376
|
+
ariaExpanded: this.computedShow,
|
|
377
|
+
ariaRole: "combobox",
|
|
378
|
+
ariaControls: this._popupId
|
|
381
379
|
},
|
|
382
380
|
disabled: disabled,
|
|
383
381
|
format: format,
|
|
@@ -402,7 +400,11 @@ var TimePickerVue2 = {
|
|
|
402
400
|
valid: this.validity().valid,
|
|
403
401
|
validationMessage: validationMessage,
|
|
404
402
|
validityStyles: validityStyles,
|
|
405
|
-
value: this.computedValue && this.normalizeTime(this.computedValue)
|
|
403
|
+
value: this.computedValue && this.normalizeTime(this.computedValue),
|
|
404
|
+
ariaHasPopup: true,
|
|
405
|
+
ariaExpanded: this.computedShow,
|
|
406
|
+
ariaRole: "combobox",
|
|
407
|
+
ariaControls: this._popupId
|
|
406
408
|
}, this.v3 ? function () {
|
|
407
409
|
return [defaultSlot];
|
|
408
410
|
} : [defaultSlot]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-dateinputs",
|
|
3
3
|
"description": "Kendo UI for Vue Date Inputs package",
|
|
4
|
-
"version": "3.5.4-dev.
|
|
4
|
+
"version": "3.5.4-dev.202209091220",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@progress/kendo-date-math": "1.5.1",
|
|
55
|
-
"@progress/kendo-vue-buttons": "3.5.4-dev.
|
|
56
|
-
"@progress/kendo-vue-common": "3.5.4-dev.
|
|
57
|
-
"@progress/kendo-vue-labels": "3.5.4-dev.
|
|
58
|
-
"@progress/kendo-vue-popup": "3.5.4-dev.
|
|
55
|
+
"@progress/kendo-vue-buttons": "3.5.4-dev.202209091220",
|
|
56
|
+
"@progress/kendo-vue-common": "3.5.4-dev.202209091220",
|
|
57
|
+
"@progress/kendo-vue-labels": "3.5.4-dev.202209091220",
|
|
58
|
+
"@progress/kendo-vue-popup": "3.5.4-dev.202209091220"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@progress/kendo-data-query": "^1.5.4",
|
|
62
62
|
"@progress/kendo-licensing": "^1.1.0",
|
|
63
|
-
"@progress/kendo-vue-dropdowns": "3.5.4-dev.
|
|
64
|
-
"@progress/kendo-vue-intl": "3.5.4-dev.
|
|
63
|
+
"@progress/kendo-vue-dropdowns": "3.5.4-dev.202209091220",
|
|
64
|
+
"@progress/kendo-vue-intl": "3.5.4-dev.202209091220"
|
|
65
65
|
},
|
|
66
66
|
"author": "Progress",
|
|
67
67
|
"license": "SEE LICENSE IN LICENSE.md",
|