@progress/kendo-vue-scheduler 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-scheduler.js +1 -1
- package/dist/es/Scheduler.js +10 -2
- package/dist/es/components/BaseView.d.ts +1 -0
- package/dist/es/components/BaseView.js +7 -3
- package/dist/es/components/SchedulerActionButtons.js +0 -4
- package/dist/es/components/ShowMoreItemsButton.js +17 -4
- package/dist/es/components/footer/bussiness-hours/BusinessHours.js +7 -2
- package/dist/es/components/header/navigation/DatePickerToggleButton.js +3 -0
- package/dist/es/components/header/navigation/NavigationDatePicker.js +6 -1
- package/dist/es/components/header/navigation/SchedulerNavigation.js +53 -96
- package/dist/es/components/header/view-selector/ViewSelectorList.js +20 -6
- package/dist/es/items/SchedulerItem.js +78 -26
- package/dist/es/messages/main.d.ts +3 -0
- package/dist/es/messages/main.js +3 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerSlot.js +0 -6
- package/dist/es/tasks/SchedulerTask.js +23 -7
- package/dist/es/views/agenda/AgendaView.js +4 -2
- package/dist/es/views/agenda/AgendaViewBody.js +16 -4
- package/dist/esm/Scheduler.js +10 -2
- package/dist/esm/components/BaseView.d.ts +1 -0
- package/dist/esm/components/BaseView.js +7 -3
- package/dist/esm/components/SchedulerActionButtons.js +0 -4
- package/dist/esm/components/ShowMoreItemsButton.js +17 -4
- package/dist/esm/components/footer/bussiness-hours/BusinessHours.js +7 -2
- package/dist/esm/components/header/navigation/DatePickerToggleButton.js +3 -0
- package/dist/esm/components/header/navigation/NavigationDatePicker.js +6 -1
- package/dist/esm/components/header/navigation/SchedulerNavigation.js +53 -96
- package/dist/esm/components/header/view-selector/ViewSelectorList.js +20 -6
- package/dist/esm/items/SchedulerItem.js +78 -26
- package/dist/esm/messages/main.d.ts +3 -0
- package/dist/esm/messages/main.js +3 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/slots/SchedulerSlot.js +0 -6
- package/dist/esm/tasks/SchedulerTask.js +23 -7
- package/dist/esm/views/agenda/AgendaView.js +4 -2
- package/dist/esm/views/agenda/AgendaViewBody.js +16 -4
- package/dist/npm/Scheduler.js +10 -2
- package/dist/npm/components/BaseView.d.ts +1 -0
- package/dist/npm/components/BaseView.js +7 -3
- package/dist/npm/components/SchedulerActionButtons.js +0 -4
- package/dist/npm/components/ShowMoreItemsButton.js +17 -4
- package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +7 -2
- package/dist/npm/components/header/navigation/DatePickerToggleButton.js +3 -0
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +6 -1
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +53 -96
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +19 -5
- package/dist/npm/items/SchedulerItem.js +77 -25
- package/dist/npm/messages/main.d.ts +3 -0
- package/dist/npm/messages/main.js +5 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerSlot.js +0 -6
- package/dist/npm/tasks/SchedulerTask.js +22 -6
- package/dist/npm/views/agenda/AgendaView.js +4 -2
- package/dist/npm/views/agenda/AgendaViewBody.js +16 -4
- package/package.json +16 -14
package/dist/es/Scheduler.js
CHANGED
|
@@ -148,6 +148,14 @@ var SchedulerVue2 = {
|
|
|
148
148
|
ksModifyInitialFormValues: this.modifyInitialFormValues
|
|
149
149
|
};
|
|
150
150
|
},
|
|
151
|
+
inject: {
|
|
152
|
+
kendoLocalizationService: {
|
|
153
|
+
default: null
|
|
154
|
+
},
|
|
155
|
+
kendoIntlService: {
|
|
156
|
+
default: null
|
|
157
|
+
}
|
|
158
|
+
},
|
|
151
159
|
data: function data() {
|
|
152
160
|
this.intl = provideIntlService(this);
|
|
153
161
|
this.localization = provideLocalizationService(this);
|
|
@@ -350,7 +358,7 @@ var SchedulerVue2 = {
|
|
|
350
358
|
// Aria
|
|
351
359
|
// dir={dir}
|
|
352
360
|
,
|
|
353
|
-
role: this.$props.role,
|
|
361
|
+
role: this.$props.role || 'application',
|
|
354
362
|
"aria-label": this.$props.ariaLabel,
|
|
355
363
|
"aria-labelledby": this.$props.ariaLabelledby
|
|
356
364
|
// Handlers
|
|
@@ -360,7 +368,7 @@ var SchedulerVue2 = {
|
|
|
360
368
|
},
|
|
361
369
|
"class": this.wrapperClassName,
|
|
362
370
|
tabindex: this.$props.tabIndex,
|
|
363
|
-
role: this.$props.role,
|
|
371
|
+
role: this.$props.role || 'application',
|
|
364
372
|
"aria-label": this.$props.ariaLabel,
|
|
365
373
|
"aria-labelledby": this.$props.ariaLabelledby,
|
|
366
374
|
onFocusin: this.handleFocus,
|
|
@@ -24,7 +24,11 @@ var BaseViewVue2 = {
|
|
|
24
24
|
viewProps: Object,
|
|
25
25
|
baseSlots: Array,
|
|
26
26
|
ranges: Array,
|
|
27
|
-
id: String
|
|
27
|
+
id: String,
|
|
28
|
+
isAgendaView: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
}
|
|
28
32
|
},
|
|
29
33
|
provide: function provide() {
|
|
30
34
|
return {
|
|
@@ -65,9 +69,9 @@ var BaseViewVue2 = {
|
|
|
65
69
|
var defaultSlot = getDefaultSlots(this);
|
|
66
70
|
return h("div", {
|
|
67
71
|
"class": 'k-scheduler-layout k-scheduler-layout-flex',
|
|
68
|
-
role:
|
|
72
|
+
role: this.$props.isAgendaView ? 'grid' : 'presentation',
|
|
69
73
|
attrs: this.v3 ? undefined : {
|
|
70
|
-
role:
|
|
74
|
+
role: this.$props.isAgendaView ? 'grid' : 'presentation'
|
|
71
75
|
}
|
|
72
76
|
}, [defaultSlot]);
|
|
73
77
|
},
|
|
@@ -33,10 +33,6 @@ var SchedulerActionButtonsVue2 = {
|
|
|
33
33
|
return (
|
|
34
34
|
// @ts-ignore function children
|
|
35
35
|
h(DialogActionsBar, {
|
|
36
|
-
buttonGroupClass: false,
|
|
37
|
-
attrs: this.v3 ? undefined : {
|
|
38
|
-
buttonGroupClass: false
|
|
39
|
-
},
|
|
40
36
|
"class": 'k-form-buttons'
|
|
41
37
|
}, this.v3 ? function () {
|
|
42
38
|
return [
|
|
@@ -5,6 +5,8 @@ var gh = allVue.h;
|
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var inject = allVue.inject;
|
|
7
7
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
8
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
9
|
+
import { moreHorizontalIcon } from '@progress/kendo-svg-icons';
|
|
8
10
|
/**
|
|
9
11
|
* @hidden
|
|
10
12
|
*/
|
|
@@ -29,6 +31,7 @@ var ShowMoreItemsButtonVue2 = {
|
|
|
29
31
|
},
|
|
30
32
|
// @ts-ignore
|
|
31
33
|
render: function render(createElement) {
|
|
34
|
+
var _this = this;
|
|
32
35
|
var h = gh || createElement;
|
|
33
36
|
return (
|
|
34
37
|
// @ts-ignore function children
|
|
@@ -43,11 +46,21 @@ var ShowMoreItemsButtonVue2 = {
|
|
|
43
46
|
"click": this.handleClick
|
|
44
47
|
}
|
|
45
48
|
}, this.v3 ? function () {
|
|
46
|
-
return [h(
|
|
47
|
-
|
|
49
|
+
return [h(Icon, {
|
|
50
|
+
name: "more-horizontal",
|
|
51
|
+
attrs: _this.v3 ? undefined : {
|
|
52
|
+
name: "more-horizontal",
|
|
53
|
+
icon: moreHorizontalIcon
|
|
54
|
+
},
|
|
55
|
+
icon: moreHorizontalIcon
|
|
48
56
|
})];
|
|
49
|
-
} : [h(
|
|
50
|
-
|
|
57
|
+
} : [h(Icon, {
|
|
58
|
+
name: "more-horizontal",
|
|
59
|
+
attrs: _this.v3 ? undefined : {
|
|
60
|
+
name: "more-horizontal",
|
|
61
|
+
icon: moreHorizontalIcon
|
|
62
|
+
},
|
|
63
|
+
icon: moreHorizontalIcon
|
|
51
64
|
})])
|
|
52
65
|
);
|
|
53
66
|
},
|
|
@@ -8,6 +8,7 @@ import { ToolbarItem } from '@progress/kendo-vue-buttons';
|
|
|
8
8
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
9
9
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
10
10
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
11
|
+
import { clockIcon } from '@progress/kendo-svg-icons';
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
@@ -54,9 +55,11 @@ var BusinessHoursVue2 = {
|
|
|
54
55
|
tabIndex: -1,
|
|
55
56
|
attrs: _this.v3 ? undefined : {
|
|
56
57
|
tabIndex: -1,
|
|
57
|
-
icon: 'clock'
|
|
58
|
+
icon: 'clock',
|
|
59
|
+
svgIcon: clockIcon
|
|
58
60
|
},
|
|
59
61
|
icon: 'clock',
|
|
62
|
+
svgIcon: clockIcon,
|
|
60
63
|
onClick: _this.handleShowWorkHoursClick,
|
|
61
64
|
on: _this.v3 ? undefined : {
|
|
62
65
|
"click": _this.handleShowWorkHoursClick
|
|
@@ -68,9 +71,11 @@ var BusinessHoursVue2 = {
|
|
|
68
71
|
tabIndex: -1,
|
|
69
72
|
attrs: _this.v3 ? undefined : {
|
|
70
73
|
tabIndex: -1,
|
|
71
|
-
icon: 'clock'
|
|
74
|
+
icon: 'clock',
|
|
75
|
+
svgIcon: clockIcon
|
|
72
76
|
},
|
|
73
77
|
icon: 'clock',
|
|
78
|
+
svgIcon: clockIcon,
|
|
74
79
|
onClick: _this.handleShowWorkHoursClick,
|
|
75
80
|
on: _this.v3 ? undefined : {
|
|
76
81
|
"click": _this.handleShowWorkHoursClick
|
|
@@ -18,6 +18,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
18
18
|
import { provideIntlService } from '@progress/kendo-vue-intl';
|
|
19
19
|
import { MS_PER_DAY } from '../../../constants/main';
|
|
20
20
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
21
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
21
22
|
/**
|
|
22
23
|
* @hidden
|
|
23
24
|
*/
|
|
@@ -62,9 +63,11 @@ var DatePickerToggleButtonVue2 = {
|
|
|
62
63
|
icon: "calendar",
|
|
63
64
|
attrs: this.v3 ? undefined : {
|
|
64
65
|
icon: "calendar",
|
|
66
|
+
svgIcon: calendarIcon,
|
|
65
67
|
tabIndex: -1,
|
|
66
68
|
fillMode: 'flat'
|
|
67
69
|
},
|
|
70
|
+
svgIcon: calendarIcon,
|
|
68
71
|
"class": "k-nav-current",
|
|
69
72
|
tabIndex: -1,
|
|
70
73
|
fillMode: 'flat'
|
|
@@ -23,6 +23,7 @@ import { MS_PER_DAY } from '../../../constants/main';
|
|
|
23
23
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
24
24
|
import { toUTCDateTime } from '../../../utils/main';
|
|
25
25
|
import { canUseDOM, guid, Keys } from '@progress/kendo-vue-common';
|
|
26
|
+
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
26
27
|
var EMPTY_DATE_INPUT = function EMPTY_DATE_INPUT() {
|
|
27
28
|
return null;
|
|
28
29
|
};
|
|
@@ -105,8 +106,10 @@ var NavigationDatePickerVue2 = {
|
|
|
105
106
|
attrs: this.v3 ? undefined : {
|
|
106
107
|
id: this.buttonId,
|
|
107
108
|
fillMode: 'flat',
|
|
109
|
+
"aria-live": 'polite',
|
|
108
110
|
tabIndex: -1,
|
|
109
|
-
icon: "calendar"
|
|
111
|
+
icon: "calendar",
|
|
112
|
+
svgIcon: calendarIcon
|
|
110
113
|
},
|
|
111
114
|
onFocus: this.onFocus,
|
|
112
115
|
on: this.v3 ? undefined : {
|
|
@@ -117,8 +120,10 @@ var NavigationDatePickerVue2 = {
|
|
|
117
120
|
onBlur: this.onBlur,
|
|
118
121
|
fillMode: 'flat',
|
|
119
122
|
"class": 'k-nav-current',
|
|
123
|
+
"aria-live": 'polite',
|
|
120
124
|
tabIndex: -1,
|
|
121
125
|
icon: "calendar",
|
|
126
|
+
svgIcon: calendarIcon,
|
|
122
127
|
onClick: this.handleClick
|
|
123
128
|
}, this.v3 ? function () {
|
|
124
129
|
return [_this2.media === 'desktop' ? text : shortText,
|
|
@@ -8,6 +8,7 @@ import { ToolbarItem } from '@progress/kendo-vue-buttons';
|
|
|
8
8
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
9
9
|
import { messages, today, previousTitle, nextTitle } from '../../../messages/main';
|
|
10
10
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
11
|
+
import { caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
@@ -56,6 +57,7 @@ var SchedulerNavigationVue2 = {
|
|
|
56
57
|
title: todayText,
|
|
57
58
|
"aria-label": todayText
|
|
58
59
|
},
|
|
60
|
+
"class": "k-nav-today",
|
|
59
61
|
tabIndex: -1,
|
|
60
62
|
title: todayText,
|
|
61
63
|
"aria-label": todayText,
|
|
@@ -72,56 +74,44 @@ var SchedulerNavigationVue2 = {
|
|
|
72
74
|
attrs: _this.v3 ? undefined : {
|
|
73
75
|
role: "button",
|
|
74
76
|
tabIndex: -1,
|
|
77
|
+
icon: 'caret-alt-left',
|
|
78
|
+
svgIcon: caretAltLeftIcon,
|
|
75
79
|
title: previousText,
|
|
76
80
|
"aria-label": previousText
|
|
77
81
|
},
|
|
78
82
|
tabIndex: -1,
|
|
79
|
-
"class": "k-button-icon",
|
|
83
|
+
"class": "k-button-icon k-nav-prev",
|
|
84
|
+
icon: 'caret-alt-left',
|
|
85
|
+
svgIcon: caretAltLeftIcon,
|
|
80
86
|
title: previousText,
|
|
81
87
|
"aria-label": previousText,
|
|
82
88
|
onClick: _this.handlePrevClick,
|
|
83
89
|
on: _this.v3 ? undefined : {
|
|
84
90
|
"click": _this.handlePrevClick
|
|
85
91
|
}
|
|
86
|
-
},
|
|
87
|
-
return [h("span", {
|
|
88
|
-
"class": "k-button-text"
|
|
89
|
-
}, [h("span", {
|
|
90
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
91
|
-
})])];
|
|
92
|
-
} : [h("span", {
|
|
93
|
-
"class": "k-button-text"
|
|
94
|
-
}, [h("span", {
|
|
95
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
96
|
-
})])]),
|
|
92
|
+
}),
|
|
97
93
|
// @ts-ignore function children
|
|
98
94
|
h(Button, {
|
|
99
95
|
role: "button",
|
|
100
96
|
attrs: _this.v3 ? undefined : {
|
|
101
97
|
role: "button",
|
|
102
98
|
tabIndex: -1,
|
|
99
|
+
icon: 'caret-alt-right',
|
|
100
|
+
svgIcon: caretAltRightIcon,
|
|
103
101
|
title: nextText,
|
|
104
102
|
"aria-label": nextText
|
|
105
103
|
},
|
|
106
104
|
tabIndex: -1,
|
|
107
|
-
"class": "k-button-icon",
|
|
105
|
+
"class": "k-button-icon k-nav-next",
|
|
106
|
+
icon: 'caret-alt-right',
|
|
107
|
+
svgIcon: caretAltRightIcon,
|
|
108
108
|
title: nextText,
|
|
109
109
|
"aria-label": nextText,
|
|
110
110
|
onClick: _this.handleNextClick,
|
|
111
111
|
on: _this.v3 ? undefined : {
|
|
112
112
|
"click": _this.handleNextClick
|
|
113
113
|
}
|
|
114
|
-
}
|
|
115
|
-
return [h("span", {
|
|
116
|
-
"class": "k-button-text"
|
|
117
|
-
}, [h("span", {
|
|
118
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
119
|
-
})])];
|
|
120
|
-
} : [h("span", {
|
|
121
|
-
"class": "k-button-text"
|
|
122
|
-
}, [h("span", {
|
|
123
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
124
|
-
})])])];
|
|
114
|
+
})];
|
|
125
115
|
} : [h(Button, {
|
|
126
116
|
role: "button",
|
|
127
117
|
attrs: _this.v3 ? undefined : {
|
|
@@ -130,6 +120,7 @@ var SchedulerNavigationVue2 = {
|
|
|
130
120
|
title: todayText,
|
|
131
121
|
"aria-label": todayText
|
|
132
122
|
},
|
|
123
|
+
"class": "k-nav-today",
|
|
133
124
|
tabIndex: -1,
|
|
134
125
|
title: todayText,
|
|
135
126
|
"aria-label": todayText,
|
|
@@ -144,54 +135,42 @@ var SchedulerNavigationVue2 = {
|
|
|
144
135
|
attrs: _this.v3 ? undefined : {
|
|
145
136
|
role: "button",
|
|
146
137
|
tabIndex: -1,
|
|
138
|
+
icon: 'caret-alt-left',
|
|
139
|
+
svgIcon: caretAltLeftIcon,
|
|
147
140
|
title: previousText,
|
|
148
141
|
"aria-label": previousText
|
|
149
142
|
},
|
|
150
143
|
tabIndex: -1,
|
|
151
|
-
"class": "k-button-icon",
|
|
144
|
+
"class": "k-button-icon k-nav-prev",
|
|
145
|
+
icon: 'caret-alt-left',
|
|
146
|
+
svgIcon: caretAltLeftIcon,
|
|
152
147
|
title: previousText,
|
|
153
148
|
"aria-label": previousText,
|
|
154
149
|
onClick: _this.handlePrevClick,
|
|
155
150
|
on: _this.v3 ? undefined : {
|
|
156
151
|
"click": _this.handlePrevClick
|
|
157
152
|
}
|
|
158
|
-
},
|
|
159
|
-
return [h("span", {
|
|
160
|
-
"class": "k-button-text"
|
|
161
|
-
}, [h("span", {
|
|
162
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
163
|
-
})])];
|
|
164
|
-
} : [h("span", {
|
|
165
|
-
"class": "k-button-text"
|
|
166
|
-
}, [h("span", {
|
|
167
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
168
|
-
})])]), h(Button, {
|
|
153
|
+
}), h(Button, {
|
|
169
154
|
role: "button",
|
|
170
155
|
attrs: _this.v3 ? undefined : {
|
|
171
156
|
role: "button",
|
|
172
157
|
tabIndex: -1,
|
|
158
|
+
icon: 'caret-alt-right',
|
|
159
|
+
svgIcon: caretAltRightIcon,
|
|
173
160
|
title: nextText,
|
|
174
161
|
"aria-label": nextText
|
|
175
162
|
},
|
|
176
163
|
tabIndex: -1,
|
|
177
|
-
"class": "k-button-icon",
|
|
164
|
+
"class": "k-button-icon k-nav-next",
|
|
165
|
+
icon: 'caret-alt-right',
|
|
166
|
+
svgIcon: caretAltRightIcon,
|
|
178
167
|
title: nextText,
|
|
179
168
|
"aria-label": nextText,
|
|
180
169
|
onClick: _this.handleNextClick,
|
|
181
170
|
on: _this.v3 ? undefined : {
|
|
182
171
|
"click": _this.handleNextClick
|
|
183
172
|
}
|
|
184
|
-
}
|
|
185
|
-
return [h("span", {
|
|
186
|
-
"class": "k-button-text"
|
|
187
|
-
}, [h("span", {
|
|
188
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
189
|
-
})])];
|
|
190
|
-
} : [h("span", {
|
|
191
|
-
"class": "k-button-text"
|
|
192
|
-
}, [h("span", {
|
|
193
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
194
|
-
})])])])];
|
|
173
|
+
})])];
|
|
195
174
|
} : [h(ButtonGroup, {
|
|
196
175
|
"class": "k-scheduler-navigation"
|
|
197
176
|
}, _this.v3 ? function () {
|
|
@@ -203,6 +182,7 @@ var SchedulerNavigationVue2 = {
|
|
|
203
182
|
title: todayText,
|
|
204
183
|
"aria-label": todayText
|
|
205
184
|
},
|
|
185
|
+
"class": "k-nav-today",
|
|
206
186
|
tabIndex: -1,
|
|
207
187
|
title: todayText,
|
|
208
188
|
"aria-label": todayText,
|
|
@@ -217,54 +197,42 @@ var SchedulerNavigationVue2 = {
|
|
|
217
197
|
attrs: _this.v3 ? undefined : {
|
|
218
198
|
role: "button",
|
|
219
199
|
tabIndex: -1,
|
|
200
|
+
icon: 'caret-alt-left',
|
|
201
|
+
svgIcon: caretAltLeftIcon,
|
|
220
202
|
title: previousText,
|
|
221
203
|
"aria-label": previousText
|
|
222
204
|
},
|
|
223
205
|
tabIndex: -1,
|
|
224
|
-
"class": "k-button-icon",
|
|
206
|
+
"class": "k-button-icon k-nav-prev",
|
|
207
|
+
icon: 'caret-alt-left',
|
|
208
|
+
svgIcon: caretAltLeftIcon,
|
|
225
209
|
title: previousText,
|
|
226
210
|
"aria-label": previousText,
|
|
227
211
|
onClick: _this.handlePrevClick,
|
|
228
212
|
on: _this.v3 ? undefined : {
|
|
229
213
|
"click": _this.handlePrevClick
|
|
230
214
|
}
|
|
231
|
-
},
|
|
232
|
-
return [h("span", {
|
|
233
|
-
"class": "k-button-text"
|
|
234
|
-
}, [h("span", {
|
|
235
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
236
|
-
})])];
|
|
237
|
-
} : [h("span", {
|
|
238
|
-
"class": "k-button-text"
|
|
239
|
-
}, [h("span", {
|
|
240
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
241
|
-
})])]), h(Button, {
|
|
215
|
+
}), h(Button, {
|
|
242
216
|
role: "button",
|
|
243
217
|
attrs: _this.v3 ? undefined : {
|
|
244
218
|
role: "button",
|
|
245
219
|
tabIndex: -1,
|
|
220
|
+
icon: 'caret-alt-right',
|
|
221
|
+
svgIcon: caretAltRightIcon,
|
|
246
222
|
title: nextText,
|
|
247
223
|
"aria-label": nextText
|
|
248
224
|
},
|
|
249
225
|
tabIndex: -1,
|
|
250
|
-
"class": "k-button-icon",
|
|
226
|
+
"class": "k-button-icon k-nav-next",
|
|
227
|
+
icon: 'caret-alt-right',
|
|
228
|
+
svgIcon: caretAltRightIcon,
|
|
251
229
|
title: nextText,
|
|
252
230
|
"aria-label": nextText,
|
|
253
231
|
onClick: _this.handleNextClick,
|
|
254
232
|
on: _this.v3 ? undefined : {
|
|
255
233
|
"click": _this.handleNextClick
|
|
256
234
|
}
|
|
257
|
-
}
|
|
258
|
-
return [h("span", {
|
|
259
|
-
"class": "k-button-text"
|
|
260
|
-
}, [h("span", {
|
|
261
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
262
|
-
})])];
|
|
263
|
-
} : [h("span", {
|
|
264
|
-
"class": "k-button-text"
|
|
265
|
-
}, [h("span", {
|
|
266
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
267
|
-
})])])];
|
|
235
|
+
})];
|
|
268
236
|
} : [h(Button, {
|
|
269
237
|
role: "button",
|
|
270
238
|
attrs: _this.v3 ? undefined : {
|
|
@@ -273,6 +241,7 @@ var SchedulerNavigationVue2 = {
|
|
|
273
241
|
title: todayText,
|
|
274
242
|
"aria-label": todayText
|
|
275
243
|
},
|
|
244
|
+
"class": "k-nav-today",
|
|
276
245
|
tabIndex: -1,
|
|
277
246
|
title: todayText,
|
|
278
247
|
"aria-label": todayText,
|
|
@@ -287,54 +256,42 @@ var SchedulerNavigationVue2 = {
|
|
|
287
256
|
attrs: _this.v3 ? undefined : {
|
|
288
257
|
role: "button",
|
|
289
258
|
tabIndex: -1,
|
|
259
|
+
icon: 'caret-alt-left',
|
|
260
|
+
svgIcon: caretAltLeftIcon,
|
|
290
261
|
title: previousText,
|
|
291
262
|
"aria-label": previousText
|
|
292
263
|
},
|
|
293
264
|
tabIndex: -1,
|
|
294
|
-
"class": "k-button-icon",
|
|
265
|
+
"class": "k-button-icon k-nav-prev",
|
|
266
|
+
icon: 'caret-alt-left',
|
|
267
|
+
svgIcon: caretAltLeftIcon,
|
|
295
268
|
title: previousText,
|
|
296
269
|
"aria-label": previousText,
|
|
297
270
|
onClick: _this.handlePrevClick,
|
|
298
271
|
on: _this.v3 ? undefined : {
|
|
299
272
|
"click": _this.handlePrevClick
|
|
300
273
|
}
|
|
301
|
-
},
|
|
302
|
-
return [h("span", {
|
|
303
|
-
"class": "k-button-text"
|
|
304
|
-
}, [h("span", {
|
|
305
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
306
|
-
})])];
|
|
307
|
-
} : [h("span", {
|
|
308
|
-
"class": "k-button-text"
|
|
309
|
-
}, [h("span", {
|
|
310
|
-
"class": "k-icon k-i-caret-alt-left"
|
|
311
|
-
})])]), h(Button, {
|
|
274
|
+
}), h(Button, {
|
|
312
275
|
role: "button",
|
|
313
276
|
attrs: _this.v3 ? undefined : {
|
|
314
277
|
role: "button",
|
|
315
278
|
tabIndex: -1,
|
|
279
|
+
icon: 'caret-alt-right',
|
|
280
|
+
svgIcon: caretAltRightIcon,
|
|
316
281
|
title: nextText,
|
|
317
282
|
"aria-label": nextText
|
|
318
283
|
},
|
|
319
284
|
tabIndex: -1,
|
|
320
|
-
"class": "k-button-icon",
|
|
285
|
+
"class": "k-button-icon k-nav-next",
|
|
286
|
+
icon: 'caret-alt-right',
|
|
287
|
+
svgIcon: caretAltRightIcon,
|
|
321
288
|
title: nextText,
|
|
322
289
|
"aria-label": nextText,
|
|
323
290
|
onClick: _this.handleNextClick,
|
|
324
291
|
on: _this.v3 ? undefined : {
|
|
325
292
|
"click": _this.handleNextClick
|
|
326
293
|
}
|
|
327
|
-
}
|
|
328
|
-
return [h("span", {
|
|
329
|
-
"class": "k-button-text"
|
|
330
|
-
}, [h("span", {
|
|
331
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
332
|
-
})])];
|
|
333
|
-
} : [h("span", {
|
|
334
|
-
"class": "k-button-text"
|
|
335
|
-
}, [h("span", {
|
|
336
|
-
"class": "k-icon k-i-caret-alt-right"
|
|
337
|
-
})])])])])
|
|
294
|
+
})])])
|
|
338
295
|
);
|
|
339
296
|
},
|
|
340
297
|
methods: {
|
|
@@ -18,7 +18,9 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
18
18
|
import { DropDownButton, ButtonGroup } from '@progress/kendo-vue-buttons';
|
|
19
19
|
import { ViewSelectorItem } from './ViewSelectorItem';
|
|
20
20
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
21
|
-
import { messages } from '../../../messages/main';
|
|
21
|
+
import { messages, dropdownlistSelectViewAriaLabel } from '../../../messages/main';
|
|
22
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
23
|
+
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
22
24
|
/**
|
|
23
25
|
* @hidden
|
|
24
26
|
*/
|
|
@@ -81,8 +83,9 @@ var ViewSelectorListVue2 = {
|
|
|
81
83
|
// @ts-ignore function children
|
|
82
84
|
h(DropDownButton, {
|
|
83
85
|
"class": "k-views-dropdown",
|
|
84
|
-
|
|
86
|
+
"aria-label": this.localization.toLanguageString(dropdownlistSelectViewAriaLabel, messages[dropdownlistSelectViewAriaLabel]),
|
|
85
87
|
attrs: this.v3 ? undefined : {
|
|
88
|
+
"aria-label": this.localization.toLanguageString(dropdownlistSelectViewAriaLabel, messages[dropdownlistSelectViewAriaLabel]),
|
|
86
89
|
tabIndex: -1,
|
|
87
90
|
popupSettings: {
|
|
88
91
|
popupClass: 'k-scheduler-toolbar'
|
|
@@ -99,6 +102,7 @@ var ViewSelectorListVue2 = {
|
|
|
99
102
|
}, this),
|
|
100
103
|
text: activeView.title || activeName
|
|
101
104
|
},
|
|
105
|
+
tabIndex: -1,
|
|
102
106
|
onItemclick: this.handleItemClick,
|
|
103
107
|
on: this.v3 ? undefined : {
|
|
104
108
|
"itemclick": this.handleItemClick
|
|
@@ -118,11 +122,21 @@ var ViewSelectorListVue2 = {
|
|
|
118
122
|
}, this),
|
|
119
123
|
text: activeView.title || activeName
|
|
120
124
|
}, this.v3 ? function () {
|
|
121
|
-
return [h(
|
|
122
|
-
|
|
125
|
+
return [h(Icon, {
|
|
126
|
+
name: "caret-alt-down",
|
|
127
|
+
attrs: _this2.v3 ? undefined : {
|
|
128
|
+
name: "caret-alt-down",
|
|
129
|
+
icon: caretAltDownIcon
|
|
130
|
+
},
|
|
131
|
+
icon: caretAltDownIcon
|
|
123
132
|
})];
|
|
124
|
-
} : [h(
|
|
125
|
-
|
|
133
|
+
} : [h(Icon, {
|
|
134
|
+
name: "caret-alt-down",
|
|
135
|
+
attrs: _this2.v3 ? undefined : {
|
|
136
|
+
name: "caret-alt-down",
|
|
137
|
+
icon: caretAltDownIcon
|
|
138
|
+
},
|
|
139
|
+
icon: caretAltDownIcon
|
|
126
140
|
})]), this.media === 'desktop' &&
|
|
127
141
|
// @ts-ignore function children
|
|
128
142
|
h(ButtonGroup, {
|