@progress/kendo-vue-dateinputs 3.7.4-dev.202212020747 → 3.7.4-dev.202301091431
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-dateinputs.js +1 -1
- package/dist/es/calendar/components/Header.js +5 -0
- package/dist/es/dateinput/DateInput.js +9 -2
- package/dist/es/dateinput/models/DateInputSettings.d.ts +1 -1
- package/dist/es/datepicker/DatePicker.js +21 -9
- package/dist/es/datepicker/interfaces/DatePickerProps.d.ts +4 -0
- package/dist/es/daterangepicker/DateRangePicker.js +12 -5
- package/dist/es/datetimepicker/DateTimePicker.js +5 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePicker.js +5 -2
- package/dist/esm/calendar/components/Header.js +5 -0
- package/dist/esm/dateinput/DateInput.js +9 -2
- package/dist/esm/dateinput/models/DateInputSettings.d.ts +1 -1
- package/dist/esm/datepicker/DatePicker.js +21 -9
- package/dist/esm/datepicker/interfaces/DatePickerProps.d.ts +4 -0
- package/dist/esm/daterangepicker/DateRangePicker.js +12 -5
- package/dist/esm/datetimepicker/DateTimePicker.js +5 -2
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/timepicker/TimePicker.js +5 -2
- package/dist/npm/calendar/components/Header.js +5 -0
- package/dist/npm/dateinput/DateInput.js +9 -2
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +1 -1
- package/dist/npm/datepicker/DatePicker.js +20 -8
- package/dist/npm/datepicker/interfaces/DatePickerProps.d.ts +4 -0
- package/dist/npm/daterangepicker/DateRangePicker.js +11 -4
- package/dist/npm/datetimepicker/DateTimePicker.js +5 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePicker.js +5 -2
- package/package.json +11 -9
|
@@ -13,6 +13,7 @@ import { Action } from '../models/main';
|
|
|
13
13
|
import { getToday, isInRange, dateInRange, MAX_DATE } from '../../utils';
|
|
14
14
|
import { MIN_DATE } from '../../defaults';
|
|
15
15
|
import { classNames, Keys, getTemplate } from '@progress/kendo-vue-common';
|
|
16
|
+
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
16
17
|
/**
|
|
17
18
|
* @hidden
|
|
18
19
|
*/
|
|
@@ -207,6 +208,7 @@ var HeaderVue2 = {
|
|
|
207
208
|
attrs: this.v3 ? undefined : {
|
|
208
209
|
type: "button",
|
|
209
210
|
icon: 'chevron-left',
|
|
211
|
+
svgIcon: chevronLeftIcon,
|
|
210
212
|
size: this.$props.size,
|
|
211
213
|
fillMode: 'flat',
|
|
212
214
|
desabled: isPrevDisabled,
|
|
@@ -214,6 +216,7 @@ var HeaderVue2 = {
|
|
|
214
216
|
title: prevViewTitle
|
|
215
217
|
},
|
|
216
218
|
icon: 'chevron-left',
|
|
219
|
+
svgIcon: chevronLeftIcon,
|
|
217
220
|
size: this.$props.size,
|
|
218
221
|
fillMode: 'flat',
|
|
219
222
|
"class": "k-calendar-nav-pre",
|
|
@@ -243,6 +246,7 @@ var HeaderVue2 = {
|
|
|
243
246
|
attrs: this.v3 ? undefined : {
|
|
244
247
|
type: "button",
|
|
245
248
|
icon: 'chevron-right',
|
|
249
|
+
svgIcon: chevronRightIcon,
|
|
246
250
|
size: this.$props.size,
|
|
247
251
|
fillMode: 'flat',
|
|
248
252
|
desabled: isNextDisabled,
|
|
@@ -250,6 +254,7 @@ var HeaderVue2 = {
|
|
|
250
254
|
title: nextViewTittle
|
|
251
255
|
},
|
|
252
256
|
icon: 'chevron-right',
|
|
257
|
+
svgIcon: chevronRightIcon,
|
|
253
258
|
size: this.$props.size,
|
|
254
259
|
fillMode: 'flat',
|
|
255
260
|
"class": "k-calendar-nav-next",
|
|
@@ -17,6 +17,7 @@ import { messages, increaseValue, decreaseValue } from '../messages/main';
|
|
|
17
17
|
import { isInTimeRange } from '../timepicker/utils';
|
|
18
18
|
import { MIN_TIME, MAX_TIME } from '../defaults';
|
|
19
19
|
import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
20
|
+
import { caretAltDownIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
20
21
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
21
22
|
/**
|
|
22
23
|
* @hidden
|
|
@@ -147,7 +148,7 @@ var DateInputVue2 = {
|
|
|
147
148
|
default: undefined
|
|
148
149
|
},
|
|
149
150
|
ariaHasPopup: {
|
|
150
|
-
type:
|
|
151
|
+
type: String,
|
|
151
152
|
default: undefined
|
|
152
153
|
}
|
|
153
154
|
},
|
|
@@ -557,7 +558,8 @@ var DateInputVue2 = {
|
|
|
557
558
|
"aria-label": ariaLabel,
|
|
558
559
|
"aria-expanded": ariaExpanded,
|
|
559
560
|
"aria-haspopup": ariaHasPopup,
|
|
560
|
-
"aria-controls": ariaControls
|
|
561
|
+
"aria-controls": ariaControls,
|
|
562
|
+
"aria-disabled": this.$props.disabled
|
|
561
563
|
},
|
|
562
564
|
tabindex: this.$props.tabIndex,
|
|
563
565
|
disabled: this.$props.disabled,
|
|
@@ -594,6 +596,7 @@ var DateInputVue2 = {
|
|
|
594
596
|
"aria-expanded": ariaExpanded,
|
|
595
597
|
"aria-haspopup": ariaHasPopup,
|
|
596
598
|
"aria-controls": ariaControls,
|
|
599
|
+
"aria-disabled": this.$props.disabled,
|
|
597
600
|
ref: setRef(this, 'input')
|
|
598
601
|
}), defaultSlot, this.$props.spinners && h("span", {
|
|
599
602
|
"class": "k-input-spinner k-spin-button",
|
|
@@ -609,6 +612,7 @@ var DateInputVue2 = {
|
|
|
609
612
|
type: "button",
|
|
610
613
|
tabIndex: -1,
|
|
611
614
|
icon: 'caret-alt-up',
|
|
615
|
+
svgIcon: caretAltUpIcon,
|
|
612
616
|
size: this.$props.size,
|
|
613
617
|
fillMode: this.$props.fillMode,
|
|
614
618
|
"aria-label": localizationService.toLanguageString(increaseValue, messages[increaseValue]),
|
|
@@ -616,6 +620,7 @@ var DateInputVue2 = {
|
|
|
616
620
|
},
|
|
617
621
|
tabIndex: -1,
|
|
618
622
|
icon: 'caret-alt-up',
|
|
623
|
+
svgIcon: caretAltUpIcon,
|
|
619
624
|
size: this.$props.size,
|
|
620
625
|
fillMode: this.$props.fillMode,
|
|
621
626
|
"class": "k-spinner-increase",
|
|
@@ -633,6 +638,7 @@ var DateInputVue2 = {
|
|
|
633
638
|
type: "button",
|
|
634
639
|
tabIndex: -1,
|
|
635
640
|
icon: 'caret-alt-down',
|
|
641
|
+
svgIcon: caretAltDownIcon,
|
|
636
642
|
size: this.$props.size,
|
|
637
643
|
fillMode: this.$props.fillMode,
|
|
638
644
|
"aria-label": localizationService.toLanguageString(decreaseValue, messages[decreaseValue]),
|
|
@@ -641,6 +647,7 @@ var DateInputVue2 = {
|
|
|
641
647
|
tabIndex: -1,
|
|
642
648
|
"class": "k-spinner-decrease",
|
|
643
649
|
icon: 'caret-alt-down',
|
|
650
|
+
svgIcon: caretAltDownIcon,
|
|
644
651
|
size: this.$props.size,
|
|
645
652
|
fillMode: this.$props.fillMode,
|
|
646
653
|
"aria-label": localizationService.toLanguageString(decreaseValue, messages[decreaseValue]),
|
|
@@ -5,9 +5,10 @@ var gh = allVue.h;
|
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var ref = allVue.ref;
|
|
7
7
|
var inject = allVue.inject;
|
|
8
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
8
9
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
9
10
|
import { getDate, cloneDate } from '@progress/kendo-date-math';
|
|
10
|
-
import { classNames, guid, Keys, templateRendering, getListeners, getTemplate, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots, setRef, getRef } from '@progress/kendo-vue-common';
|
|
11
|
+
import { classNames, guid, Keys, templateRendering, getListeners, getTemplate, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
11
12
|
import { packageMetadata } from '../package-metadata';
|
|
12
13
|
import { DateInput } from '../dateinput/DateInput';
|
|
13
14
|
import { Calendar } from '../calendar/components/Calendar';
|
|
@@ -159,7 +160,8 @@ var DatePickerVue2 = {
|
|
|
159
160
|
valid: {
|
|
160
161
|
type: Boolean,
|
|
161
162
|
default: undefined
|
|
162
|
-
}
|
|
163
|
+
},
|
|
164
|
+
ariaLabel: String
|
|
163
165
|
},
|
|
164
166
|
data: function data() {
|
|
165
167
|
return {
|
|
@@ -398,7 +400,8 @@ var DatePickerVue2 = {
|
|
|
398
400
|
validityStyles = _b.validityStyles,
|
|
399
401
|
size = _b.size,
|
|
400
402
|
fillMode = _b.fillMode,
|
|
401
|
-
rounded = _b.rounded
|
|
403
|
+
rounded = _b.rounded,
|
|
404
|
+
ariaLabel = _b.ariaLabel;
|
|
402
405
|
var _c = this.$props.popupSettings,
|
|
403
406
|
popupClass = _c.popupClass,
|
|
404
407
|
animate = _c.animate,
|
|
@@ -417,12 +420,14 @@ var DatePickerVue2 = {
|
|
|
417
420
|
type: "button",
|
|
418
421
|
tabIndex: -1,
|
|
419
422
|
icon: "calendar",
|
|
423
|
+
svgIcon: calendarIcon,
|
|
420
424
|
title: provideLocalizationService(this).toLanguageString(toggleCalendar, messages[toggleCalendar]),
|
|
421
425
|
"aria-label": provideLocalizationService(this).toLanguageString(toggleCalendar, messages[toggleCalendar]),
|
|
422
426
|
rounded: null
|
|
423
427
|
},
|
|
424
428
|
tabIndex: -1,
|
|
425
429
|
icon: "calendar",
|
|
430
|
+
svgIcon: calendarIcon,
|
|
426
431
|
onMousedown: this.handleIconMouseDown,
|
|
427
432
|
on: this.v3 ? undefined : {
|
|
428
433
|
"mousedown": this.handleIconMouseDown,
|
|
@@ -438,8 +443,13 @@ var DatePickerVue2 = {
|
|
|
438
443
|
h: h,
|
|
439
444
|
template: toggleButton,
|
|
440
445
|
defaultRendering: toggleButtonDefaultRendering,
|
|
441
|
-
defaultSlots: h(
|
|
442
|
-
|
|
446
|
+
defaultSlots: h(Icon, {
|
|
447
|
+
name: "calendar",
|
|
448
|
+
attrs: this.v3 ? undefined : {
|
|
449
|
+
name: "calendar",
|
|
450
|
+
icon: calendarIcon
|
|
451
|
+
},
|
|
452
|
+
icon: calendarIcon
|
|
443
453
|
}),
|
|
444
454
|
additionalListeners: {
|
|
445
455
|
click: this.handleIconClick
|
|
@@ -470,10 +480,11 @@ var DatePickerVue2 = {
|
|
|
470
480
|
validationMessage: validationMessage,
|
|
471
481
|
validityStyles: validityStyles,
|
|
472
482
|
value: value,
|
|
473
|
-
ariaHasPopup:
|
|
483
|
+
ariaHasPopup: 'grid',
|
|
474
484
|
ariaExpanded: show,
|
|
475
485
|
ariaRole: "combobox",
|
|
476
|
-
ariaControls: this._popupId
|
|
486
|
+
ariaControls: this._popupId,
|
|
487
|
+
ariaLabel: ariaLabel
|
|
477
488
|
},
|
|
478
489
|
disabled: disabled,
|
|
479
490
|
format: format,
|
|
@@ -496,10 +507,11 @@ var DatePickerVue2 = {
|
|
|
496
507
|
validationMessage: validationMessage,
|
|
497
508
|
validityStyles: validityStyles,
|
|
498
509
|
value: value,
|
|
499
|
-
ariaHasPopup:
|
|
510
|
+
ariaHasPopup: 'grid',
|
|
500
511
|
ariaExpanded: show,
|
|
501
512
|
ariaRole: "combobox",
|
|
502
|
-
ariaControls: this._popupId
|
|
513
|
+
ariaControls: this._popupId,
|
|
514
|
+
ariaLabel: ariaLabel
|
|
503
515
|
});
|
|
504
516
|
var dateInputRendering = getTemplate.call(this, {
|
|
505
517
|
h: h,
|
|
@@ -19,7 +19,7 @@ var ref = allVue.ref;
|
|
|
19
19
|
var inject = allVue.inject;
|
|
20
20
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
21
21
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
22
|
-
import { guid, Keys, canUseDOM, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
22
|
+
import { guid, Keys, canUseDOM, kendoThemeMaps, Icon } from '@progress/kendo-vue-common';
|
|
23
23
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
24
24
|
import { validatePackage, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
25
25
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -28,6 +28,7 @@ import { Calendar } from '../calendar/components/Calendar';
|
|
|
28
28
|
import { EMPTY_SELECTIONRANGE } from '../calendar/models/main';
|
|
29
29
|
import { MIN_DATE, MAX_DATE } from '../defaults';
|
|
30
30
|
import { swapStartEnd, start, end, separator, messages } from '../messages/main';
|
|
31
|
+
import { arrowsSwapIcon } from '@progress/kendo-svg-icons';
|
|
31
32
|
var WRAPPER_STYLES = {
|
|
32
33
|
display: 'inline-block'
|
|
33
34
|
};
|
|
@@ -260,7 +261,7 @@ var DateRangePickerVue2 = {
|
|
|
260
261
|
size: size,
|
|
261
262
|
fillMode: fillMode,
|
|
262
263
|
rounded: rounded,
|
|
263
|
-
ariaHasPopup:
|
|
264
|
+
ariaHasPopup: 'grid',
|
|
264
265
|
ariaExpanded: this.computedShow,
|
|
265
266
|
value: value.start,
|
|
266
267
|
ariaRole: 'combobox',
|
|
@@ -297,7 +298,7 @@ var DateRangePickerVue2 = {
|
|
|
297
298
|
rounded: rounded,
|
|
298
299
|
disabled: this.$props.disabled,
|
|
299
300
|
valid: this.$props.valid,
|
|
300
|
-
ariaHasPopup:
|
|
301
|
+
ariaHasPopup: 'grid',
|
|
301
302
|
ariaExpanded: this.computedShow,
|
|
302
303
|
value: value.end,
|
|
303
304
|
ariaRole: 'combobox',
|
|
@@ -409,11 +410,17 @@ var DateRangePickerVue2 = {
|
|
|
409
410
|
onClick: this.handleReverseClick,
|
|
410
411
|
"aria-controls": startDateInputId + ' ' + endDateInputId,
|
|
411
412
|
"aria-label": provideLocalizationService(this).toLanguageString(swapStartEnd, messages[swapStartEnd])
|
|
412
|
-
}, [h(
|
|
413
|
+
}, [h(Icon, {
|
|
414
|
+
name: 'arrows-swap',
|
|
415
|
+
attrs: this.v3 ? undefined : {
|
|
416
|
+
name: 'arrows-swap',
|
|
417
|
+
icon: arrowsSwapIcon
|
|
418
|
+
},
|
|
419
|
+
icon: arrowsSwapIcon,
|
|
413
420
|
style: {
|
|
414
421
|
transform: 'rotate(90deg)'
|
|
415
422
|
},
|
|
416
|
-
"class": "k-
|
|
423
|
+
"class": "k-button-icon"
|
|
417
424
|
})]);
|
|
418
425
|
return h("span", {
|
|
419
426
|
"class": this.rootClassName,
|
|
@@ -19,6 +19,7 @@ import { DateTimeSelector } from './DateTimeSelector';
|
|
|
19
19
|
import { isInTimeRange } from '../timepicker/utils';
|
|
20
20
|
import { MIN_TIME } from '../defaults';
|
|
21
21
|
import { defaultFormatPlaceholder } from '../dateinput/utils';
|
|
22
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
22
23
|
/**
|
|
23
24
|
* @hidden
|
|
24
25
|
*/
|
|
@@ -338,7 +339,7 @@ var DateTimePickerVue2 = {
|
|
|
338
339
|
validationMessage: validationMessage,
|
|
339
340
|
validityStyles: validityStyles,
|
|
340
341
|
value: this.computedValue,
|
|
341
|
-
ariaHasPopup:
|
|
342
|
+
ariaHasPopup: 'grid',
|
|
342
343
|
ariaExpanded: this.computedShow,
|
|
343
344
|
ariaRole: "combobox",
|
|
344
345
|
ariaControls: this._popupId
|
|
@@ -369,7 +370,7 @@ var DateTimePickerVue2 = {
|
|
|
369
370
|
validationMessage: validationMessage,
|
|
370
371
|
validityStyles: validityStyles,
|
|
371
372
|
value: this.computedValue,
|
|
372
|
-
ariaHasPopup:
|
|
373
|
+
ariaHasPopup: 'grid',
|
|
373
374
|
ariaExpanded: this.computedShow,
|
|
374
375
|
ariaRole: "combobox",
|
|
375
376
|
ariaControls: this._popupId
|
|
@@ -493,6 +494,7 @@ var DateTimePickerVue2 = {
|
|
|
493
494
|
type: "button",
|
|
494
495
|
tabIndex: -1,
|
|
495
496
|
icon: 'calendar',
|
|
497
|
+
svgIcon: calendarIcon,
|
|
496
498
|
title: provideLocalizationService(this).toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector]),
|
|
497
499
|
rounded: null,
|
|
498
500
|
"aria-controls": this._popupId,
|
|
@@ -500,6 +502,7 @@ var DateTimePickerVue2 = {
|
|
|
500
502
|
},
|
|
501
503
|
tabIndex: -1,
|
|
502
504
|
icon: 'calendar',
|
|
505
|
+
svgIcon: calendarIcon,
|
|
503
506
|
onMousedown: this.handleIconMouseDown,
|
|
504
507
|
on: this.v3 ? undefined : {
|
|
505
508
|
"mousedown": this.handleIconMouseDown,
|
|
@@ -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:
|
|
8
|
+
publishDate: 1673273820,
|
|
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
|
};
|
|
@@ -29,6 +29,7 @@ import { TimeSelector } from './TimeSelector';
|
|
|
29
29
|
import { MIDNIGHT_DATE, MIN_TIME, MAX_TIME, setTime } from '../utils';
|
|
30
30
|
import { isInRange, isSmallerThanMin, isBiggerThanMax } from './utils';
|
|
31
31
|
import { defaultFormatPlaceholder } from '../dateinput/utils';
|
|
32
|
+
import { clockIcon } from '@progress/kendo-svg-icons';
|
|
32
33
|
/**
|
|
33
34
|
* @hidden
|
|
34
35
|
*/
|
|
@@ -342,7 +343,7 @@ var TimePickerVue2 = {
|
|
|
342
343
|
validationMessage: validationMessage,
|
|
343
344
|
validityStyles: validityStyles,
|
|
344
345
|
value: this.computedValue && this.normalizeTime(this.computedValue),
|
|
345
|
-
ariaHasPopup:
|
|
346
|
+
ariaHasPopup: 'grid',
|
|
346
347
|
ariaExpanded: this.computedShow,
|
|
347
348
|
ariaRole: "combobox",
|
|
348
349
|
ariaControls: this._popupId
|
|
@@ -371,7 +372,7 @@ var TimePickerVue2 = {
|
|
|
371
372
|
validationMessage: validationMessage,
|
|
372
373
|
validityStyles: validityStyles,
|
|
373
374
|
value: this.computedValue && this.normalizeTime(this.computedValue),
|
|
374
|
-
ariaHasPopup:
|
|
375
|
+
ariaHasPopup: 'grid',
|
|
375
376
|
ariaExpanded: this.computedShow,
|
|
376
377
|
ariaRole: "combobox",
|
|
377
378
|
ariaControls: this._popupId
|
|
@@ -489,6 +490,7 @@ var TimePickerVue2 = {
|
|
|
489
490
|
type: "button",
|
|
490
491
|
tabIndex: -1,
|
|
491
492
|
icon: 'clock',
|
|
493
|
+
svgIcon: clockIcon,
|
|
492
494
|
title: toggleTimeMessage,
|
|
493
495
|
rounded: null,
|
|
494
496
|
"aria-controls": this._popupId,
|
|
@@ -496,6 +498,7 @@ var TimePickerVue2 = {
|
|
|
496
498
|
},
|
|
497
499
|
tabIndex: -1,
|
|
498
500
|
icon: 'clock',
|
|
501
|
+
svgIcon: clockIcon,
|
|
499
502
|
onMousedown: this.handleIconMouseDown,
|
|
500
503
|
on: this.v3 ? undefined : {
|
|
501
504
|
"mousedown": this.handleIconMouseDown,
|
|
@@ -13,6 +13,7 @@ import { Action } from '../models/main.js';
|
|
|
13
13
|
import { getToday, isInRange, dateInRange, MAX_DATE } from '../../utils.js';
|
|
14
14
|
import { MIN_DATE } from '../../defaults.js';
|
|
15
15
|
import { classNames, Keys, getTemplate } from '@progress/kendo-vue-common';
|
|
16
|
+
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
16
17
|
/**
|
|
17
18
|
* @hidden
|
|
18
19
|
*/
|
|
@@ -207,6 +208,7 @@ var HeaderVue2 = {
|
|
|
207
208
|
attrs: this.v3 ? undefined : {
|
|
208
209
|
type: "button",
|
|
209
210
|
icon: 'chevron-left',
|
|
211
|
+
svgIcon: chevronLeftIcon,
|
|
210
212
|
size: this.$props.size,
|
|
211
213
|
fillMode: 'flat',
|
|
212
214
|
desabled: isPrevDisabled,
|
|
@@ -214,6 +216,7 @@ var HeaderVue2 = {
|
|
|
214
216
|
title: prevViewTitle
|
|
215
217
|
},
|
|
216
218
|
icon: 'chevron-left',
|
|
219
|
+
svgIcon: chevronLeftIcon,
|
|
217
220
|
size: this.$props.size,
|
|
218
221
|
fillMode: 'flat',
|
|
219
222
|
"class": "k-calendar-nav-pre",
|
|
@@ -243,6 +246,7 @@ var HeaderVue2 = {
|
|
|
243
246
|
attrs: this.v3 ? undefined : {
|
|
244
247
|
type: "button",
|
|
245
248
|
icon: 'chevron-right',
|
|
249
|
+
svgIcon: chevronRightIcon,
|
|
246
250
|
size: this.$props.size,
|
|
247
251
|
fillMode: 'flat',
|
|
248
252
|
desabled: isNextDisabled,
|
|
@@ -250,6 +254,7 @@ var HeaderVue2 = {
|
|
|
250
254
|
title: nextViewTittle
|
|
251
255
|
},
|
|
252
256
|
icon: 'chevron-right',
|
|
257
|
+
svgIcon: chevronRightIcon,
|
|
253
258
|
size: this.$props.size,
|
|
254
259
|
fillMode: 'flat',
|
|
255
260
|
"class": "k-calendar-nav-next",
|
|
@@ -17,6 +17,7 @@ import { messages, increaseValue, decreaseValue } from '../messages/main.js';
|
|
|
17
17
|
import { isInTimeRange } from '../timepicker/utils.js';
|
|
18
18
|
import { MIN_TIME, MAX_TIME } from '../defaults.js';
|
|
19
19
|
import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
20
|
+
import { caretAltDownIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
20
21
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
21
22
|
/**
|
|
22
23
|
* @hidden
|
|
@@ -147,7 +148,7 @@ var DateInputVue2 = {
|
|
|
147
148
|
default: undefined
|
|
148
149
|
},
|
|
149
150
|
ariaHasPopup: {
|
|
150
|
-
type:
|
|
151
|
+
type: String,
|
|
151
152
|
default: undefined
|
|
152
153
|
}
|
|
153
154
|
},
|
|
@@ -557,7 +558,8 @@ var DateInputVue2 = {
|
|
|
557
558
|
"aria-label": ariaLabel,
|
|
558
559
|
"aria-expanded": ariaExpanded,
|
|
559
560
|
"aria-haspopup": ariaHasPopup,
|
|
560
|
-
"aria-controls": ariaControls
|
|
561
|
+
"aria-controls": ariaControls,
|
|
562
|
+
"aria-disabled": this.$props.disabled
|
|
561
563
|
},
|
|
562
564
|
tabindex: this.$props.tabIndex,
|
|
563
565
|
disabled: this.$props.disabled,
|
|
@@ -594,6 +596,7 @@ var DateInputVue2 = {
|
|
|
594
596
|
"aria-expanded": ariaExpanded,
|
|
595
597
|
"aria-haspopup": ariaHasPopup,
|
|
596
598
|
"aria-controls": ariaControls,
|
|
599
|
+
"aria-disabled": this.$props.disabled,
|
|
597
600
|
ref: setRef(this, 'input')
|
|
598
601
|
}), defaultSlot, this.$props.spinners && h("span", {
|
|
599
602
|
"class": "k-input-spinner k-spin-button",
|
|
@@ -609,6 +612,7 @@ var DateInputVue2 = {
|
|
|
609
612
|
type: "button",
|
|
610
613
|
tabIndex: -1,
|
|
611
614
|
icon: 'caret-alt-up',
|
|
615
|
+
svgIcon: caretAltUpIcon,
|
|
612
616
|
size: this.$props.size,
|
|
613
617
|
fillMode: this.$props.fillMode,
|
|
614
618
|
"aria-label": localizationService.toLanguageString(increaseValue, messages[increaseValue]),
|
|
@@ -616,6 +620,7 @@ var DateInputVue2 = {
|
|
|
616
620
|
},
|
|
617
621
|
tabIndex: -1,
|
|
618
622
|
icon: 'caret-alt-up',
|
|
623
|
+
svgIcon: caretAltUpIcon,
|
|
619
624
|
size: this.$props.size,
|
|
620
625
|
fillMode: this.$props.fillMode,
|
|
621
626
|
"class": "k-spinner-increase",
|
|
@@ -633,6 +638,7 @@ var DateInputVue2 = {
|
|
|
633
638
|
type: "button",
|
|
634
639
|
tabIndex: -1,
|
|
635
640
|
icon: 'caret-alt-down',
|
|
641
|
+
svgIcon: caretAltDownIcon,
|
|
636
642
|
size: this.$props.size,
|
|
637
643
|
fillMode: this.$props.fillMode,
|
|
638
644
|
"aria-label": localizationService.toLanguageString(decreaseValue, messages[decreaseValue]),
|
|
@@ -641,6 +647,7 @@ var DateInputVue2 = {
|
|
|
641
647
|
tabIndex: -1,
|
|
642
648
|
"class": "k-spinner-decrease",
|
|
643
649
|
icon: 'caret-alt-down',
|
|
650
|
+
svgIcon: caretAltDownIcon,
|
|
644
651
|
size: this.$props.size,
|
|
645
652
|
fillMode: this.$props.fillMode,
|
|
646
653
|
"aria-label": localizationService.toLanguageString(decreaseValue, messages[decreaseValue]),
|
|
@@ -5,9 +5,10 @@ var gh = allVue.h;
|
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var ref = allVue.ref;
|
|
7
7
|
var inject = allVue.inject;
|
|
8
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
8
9
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
9
10
|
import { getDate, cloneDate } from '@progress/kendo-date-math';
|
|
10
|
-
import { classNames, guid, Keys, templateRendering, getListeners, getTemplate, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots, setRef, getRef } from '@progress/kendo-vue-common';
|
|
11
|
+
import { classNames, guid, Keys, templateRendering, getListeners, getTemplate, validatePackage, canUseDOM, kendoThemeMaps, getDefaultSlots, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
11
12
|
import { packageMetadata } from '../package-metadata.js';
|
|
12
13
|
import { DateInput } from '../dateinput/DateInput.js';
|
|
13
14
|
import { Calendar } from '../calendar/components/Calendar.js';
|
|
@@ -159,7 +160,8 @@ var DatePickerVue2 = {
|
|
|
159
160
|
valid: {
|
|
160
161
|
type: Boolean,
|
|
161
162
|
default: undefined
|
|
162
|
-
}
|
|
163
|
+
},
|
|
164
|
+
ariaLabel: String
|
|
163
165
|
},
|
|
164
166
|
data: function data() {
|
|
165
167
|
return {
|
|
@@ -398,7 +400,8 @@ var DatePickerVue2 = {
|
|
|
398
400
|
validityStyles = _b.validityStyles,
|
|
399
401
|
size = _b.size,
|
|
400
402
|
fillMode = _b.fillMode,
|
|
401
|
-
rounded = _b.rounded
|
|
403
|
+
rounded = _b.rounded,
|
|
404
|
+
ariaLabel = _b.ariaLabel;
|
|
402
405
|
var _c = this.$props.popupSettings,
|
|
403
406
|
popupClass = _c.popupClass,
|
|
404
407
|
animate = _c.animate,
|
|
@@ -417,12 +420,14 @@ var DatePickerVue2 = {
|
|
|
417
420
|
type: "button",
|
|
418
421
|
tabIndex: -1,
|
|
419
422
|
icon: "calendar",
|
|
423
|
+
svgIcon: calendarIcon,
|
|
420
424
|
title: provideLocalizationService(this).toLanguageString(toggleCalendar, messages[toggleCalendar]),
|
|
421
425
|
"aria-label": provideLocalizationService(this).toLanguageString(toggleCalendar, messages[toggleCalendar]),
|
|
422
426
|
rounded: null
|
|
423
427
|
},
|
|
424
428
|
tabIndex: -1,
|
|
425
429
|
icon: "calendar",
|
|
430
|
+
svgIcon: calendarIcon,
|
|
426
431
|
onMousedown: this.handleIconMouseDown,
|
|
427
432
|
on: this.v3 ? undefined : {
|
|
428
433
|
"mousedown": this.handleIconMouseDown,
|
|
@@ -438,8 +443,13 @@ var DatePickerVue2 = {
|
|
|
438
443
|
h: h,
|
|
439
444
|
template: toggleButton,
|
|
440
445
|
defaultRendering: toggleButtonDefaultRendering,
|
|
441
|
-
defaultSlots: h(
|
|
442
|
-
|
|
446
|
+
defaultSlots: h(Icon, {
|
|
447
|
+
name: "calendar",
|
|
448
|
+
attrs: this.v3 ? undefined : {
|
|
449
|
+
name: "calendar",
|
|
450
|
+
icon: calendarIcon
|
|
451
|
+
},
|
|
452
|
+
icon: calendarIcon
|
|
443
453
|
}),
|
|
444
454
|
additionalListeners: {
|
|
445
455
|
click: this.handleIconClick
|
|
@@ -470,10 +480,11 @@ var DatePickerVue2 = {
|
|
|
470
480
|
validationMessage: validationMessage,
|
|
471
481
|
validityStyles: validityStyles,
|
|
472
482
|
value: value,
|
|
473
|
-
ariaHasPopup:
|
|
483
|
+
ariaHasPopup: 'grid',
|
|
474
484
|
ariaExpanded: show,
|
|
475
485
|
ariaRole: "combobox",
|
|
476
|
-
ariaControls: this._popupId
|
|
486
|
+
ariaControls: this._popupId,
|
|
487
|
+
ariaLabel: ariaLabel
|
|
477
488
|
},
|
|
478
489
|
disabled: disabled,
|
|
479
490
|
format: format,
|
|
@@ -496,10 +507,11 @@ var DatePickerVue2 = {
|
|
|
496
507
|
validationMessage: validationMessage,
|
|
497
508
|
validityStyles: validityStyles,
|
|
498
509
|
value: value,
|
|
499
|
-
ariaHasPopup:
|
|
510
|
+
ariaHasPopup: 'grid',
|
|
500
511
|
ariaExpanded: show,
|
|
501
512
|
ariaRole: "combobox",
|
|
502
|
-
ariaControls: this._popupId
|
|
513
|
+
ariaControls: this._popupId,
|
|
514
|
+
ariaLabel: ariaLabel
|
|
503
515
|
});
|
|
504
516
|
var dateInputRendering = getTemplate.call(this, {
|
|
505
517
|
h: h,
|
|
@@ -19,7 +19,7 @@ var ref = allVue.ref;
|
|
|
19
19
|
var inject = allVue.inject;
|
|
20
20
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
21
21
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
22
|
-
import { guid, Keys, canUseDOM, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
22
|
+
import { guid, Keys, canUseDOM, kendoThemeMaps, Icon } from '@progress/kendo-vue-common';
|
|
23
23
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
24
24
|
import { validatePackage, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
25
25
|
import { packageMetadata } from '../package-metadata.js';
|
|
@@ -28,6 +28,7 @@ import { Calendar } from '../calendar/components/Calendar.js';
|
|
|
28
28
|
import { EMPTY_SELECTIONRANGE } from '../calendar/models/main.js';
|
|
29
29
|
import { MIN_DATE, MAX_DATE } from '../defaults.js';
|
|
30
30
|
import { swapStartEnd, start, end, separator, messages } from '../messages/main.js';
|
|
31
|
+
import { arrowsSwapIcon } from '@progress/kendo-svg-icons';
|
|
31
32
|
var WRAPPER_STYLES = {
|
|
32
33
|
display: 'inline-block'
|
|
33
34
|
};
|
|
@@ -260,7 +261,7 @@ var DateRangePickerVue2 = {
|
|
|
260
261
|
size: size,
|
|
261
262
|
fillMode: fillMode,
|
|
262
263
|
rounded: rounded,
|
|
263
|
-
ariaHasPopup:
|
|
264
|
+
ariaHasPopup: 'grid',
|
|
264
265
|
ariaExpanded: this.computedShow,
|
|
265
266
|
value: value.start,
|
|
266
267
|
ariaRole: 'combobox',
|
|
@@ -297,7 +298,7 @@ var DateRangePickerVue2 = {
|
|
|
297
298
|
rounded: rounded,
|
|
298
299
|
disabled: this.$props.disabled,
|
|
299
300
|
valid: this.$props.valid,
|
|
300
|
-
ariaHasPopup:
|
|
301
|
+
ariaHasPopup: 'grid',
|
|
301
302
|
ariaExpanded: this.computedShow,
|
|
302
303
|
value: value.end,
|
|
303
304
|
ariaRole: 'combobox',
|
|
@@ -409,11 +410,17 @@ var DateRangePickerVue2 = {
|
|
|
409
410
|
onClick: this.handleReverseClick,
|
|
410
411
|
"aria-controls": startDateInputId + ' ' + endDateInputId,
|
|
411
412
|
"aria-label": provideLocalizationService(this).toLanguageString(swapStartEnd, messages[swapStartEnd])
|
|
412
|
-
}, [h(
|
|
413
|
+
}, [h(Icon, {
|
|
414
|
+
name: 'arrows-swap',
|
|
415
|
+
attrs: this.v3 ? undefined : {
|
|
416
|
+
name: 'arrows-swap',
|
|
417
|
+
icon: arrowsSwapIcon
|
|
418
|
+
},
|
|
419
|
+
icon: arrowsSwapIcon,
|
|
413
420
|
style: {
|
|
414
421
|
transform: 'rotate(90deg)'
|
|
415
422
|
},
|
|
416
|
-
"class": "k-
|
|
423
|
+
"class": "k-button-icon"
|
|
417
424
|
})]);
|
|
418
425
|
return h("span", {
|
|
419
426
|
"class": this.rootClassName,
|
|
@@ -19,6 +19,7 @@ import { DateTimeSelector } from './DateTimeSelector.js';
|
|
|
19
19
|
import { isInTimeRange } from '../timepicker/utils.js';
|
|
20
20
|
import { MIN_TIME } from '../defaults.js';
|
|
21
21
|
import { defaultFormatPlaceholder } from '../dateinput/utils.js';
|
|
22
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
22
23
|
/**
|
|
23
24
|
* @hidden
|
|
24
25
|
*/
|
|
@@ -338,7 +339,7 @@ var DateTimePickerVue2 = {
|
|
|
338
339
|
validationMessage: validationMessage,
|
|
339
340
|
validityStyles: validityStyles,
|
|
340
341
|
value: this.computedValue,
|
|
341
|
-
ariaHasPopup:
|
|
342
|
+
ariaHasPopup: 'grid',
|
|
342
343
|
ariaExpanded: this.computedShow,
|
|
343
344
|
ariaRole: "combobox",
|
|
344
345
|
ariaControls: this._popupId
|
|
@@ -369,7 +370,7 @@ var DateTimePickerVue2 = {
|
|
|
369
370
|
validationMessage: validationMessage,
|
|
370
371
|
validityStyles: validityStyles,
|
|
371
372
|
value: this.computedValue,
|
|
372
|
-
ariaHasPopup:
|
|
373
|
+
ariaHasPopup: 'grid',
|
|
373
374
|
ariaExpanded: this.computedShow,
|
|
374
375
|
ariaRole: "combobox",
|
|
375
376
|
ariaControls: this._popupId
|
|
@@ -493,6 +494,7 @@ var DateTimePickerVue2 = {
|
|
|
493
494
|
type: "button",
|
|
494
495
|
tabIndex: -1,
|
|
495
496
|
icon: 'calendar',
|
|
497
|
+
svgIcon: calendarIcon,
|
|
496
498
|
title: provideLocalizationService(this).toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector]),
|
|
497
499
|
rounded: null,
|
|
498
500
|
"aria-controls": this._popupId,
|
|
@@ -500,6 +502,7 @@ var DateTimePickerVue2 = {
|
|
|
500
502
|
},
|
|
501
503
|
tabIndex: -1,
|
|
502
504
|
icon: 'calendar',
|
|
505
|
+
svgIcon: calendarIcon,
|
|
503
506
|
onMousedown: this.handleIconMouseDown,
|
|
504
507
|
on: this.v3 ? undefined : {
|
|
505
508
|
"mousedown": this.handleIconMouseDown,
|