@progress/kendo-vue-scheduler 3.1.0 → 3.1.2-dev.202203221454
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-scheduler.js +2 -2
- package/dist/es/Scheduler.d.ts +1 -1
- package/dist/es/Scheduler.js +104 -682
- package/dist/es/components/SchedulerForm.js +4 -40
- package/dist/es/components/ShowMoreItemsButton.js +1 -2
- package/dist/es/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
- package/dist/es/components/footer/bussiness-hours/BusinessHours.js +88 -0
- package/dist/es/components/header/navigation/NavigationDatePicker.js +2 -3
- package/dist/es/components/header/navigation/SchedulerNavigation.js +319 -3
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -3
- package/dist/es/components/header/view-selector/ViewSelectorItem.js +5 -7
- package/dist/es/components/header/view-selector/ViewSelectorList.js +19 -13
- package/dist/es/context/SchedulerResourceIteratorContext.js +2 -2
- package/dist/es/items/SchedulerEditItem.js +3 -1
- package/dist/es/items/SchedulerItem.d.ts +2 -0
- package/dist/es/items/SchedulerItem.js +11 -2
- package/dist/es/items/SchedulerViewItem.js +80 -92
- package/dist/es/main.d.ts +5 -1
- package/dist/es/main.js +5 -11
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerEditSlot.js +58 -18
- package/dist/es/slots/SchedulerSlot.d.ts +4 -0
- package/dist/es/slots/SchedulerSlot.js +19 -3
- package/dist/es/slots/SchedulerViewSlot.d.ts +1 -1
- package/dist/es/slots/SchedulerViewSlot.js +58 -30
- package/dist/es/tasks/SchedulerEditTask.js +56 -49
- package/dist/es/tasks/SchedulerTask.js +3 -1
- package/dist/es/tasks/SchedulerViewTask.js +17 -22
- package/dist/es/views/agenda/AgendaView.js +18 -9
- package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/es/views/agenda/AgendaViewBody.js +2 -1
- package/dist/es/views/common/VerticalResourceIterator.d.ts +1 -0
- package/dist/es/views/common/VerticalResourceIterator.js +104 -17
- package/dist/es/views/day/DayView.js +15 -3
- package/dist/es/views/day/DayViewAllDaySlots.d.ts +2 -0
- package/dist/es/views/day/DayViewAllDaySlots.js +12 -5
- package/dist/es/views/day/DayViewMiddleRow.js +12 -9
- package/dist/es/views/day/DayViewVerticalRow.d.ts +41 -0
- package/dist/es/views/day/DayViewVerticalRow.js +101 -0
- package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
- package/dist/es/views/day/DayViewVerticalSlotsRow.js +132 -0
- package/dist/es/views/day/MultiDayView.d.ts +1 -1
- package/dist/es/views/day/MultiDayView.js +183 -288
- package/dist/es/views/month/MonthView.d.ts +1 -1
- package/dist/es/views/month/MonthView.js +56 -65
- package/dist/es/views/month/MonthViewBody.d.ts +2 -0
- package/dist/es/views/month/MonthViewBody.js +36 -51
- package/dist/es/views/time/MultiDayTimelineView.d.ts +2 -2
- package/dist/es/views/time/MultiDayTimelineView.js +52 -41
- package/dist/es/views/time/TimelineView.js +9 -3
- package/dist/es/views/time/TimelineViewBody.d.ts +2 -0
- package/dist/es/views/time/TimelineViewBody.js +6 -2
- package/dist/es/views/week/WeekView.js +9 -3
- package/dist/es/views/week/WorkWeekView.js +9 -3
- package/dist/npm/Scheduler.d.ts +1 -1
- package/dist/npm/Scheduler.js +102 -682
- package/dist/npm/components/SchedulerForm.js +4 -40
- package/dist/npm/components/ShowMoreItemsButton.js +1 -2
- package/dist/npm/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
- package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +102 -0
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -3
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +323 -4
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -3
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +6 -7
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +21 -13
- package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -2
- package/dist/npm/items/SchedulerEditItem.js +3 -1
- package/dist/npm/items/SchedulerItem.d.ts +2 -0
- package/dist/npm/items/SchedulerItem.js +11 -2
- package/dist/npm/items/SchedulerViewItem.js +81 -92
- package/dist/npm/main.d.ts +5 -1
- package/dist/npm/main.js +9 -11
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerEditSlot.js +59 -18
- package/dist/npm/slots/SchedulerSlot.d.ts +4 -0
- package/dist/npm/slots/SchedulerSlot.js +20 -3
- package/dist/npm/slots/SchedulerViewSlot.d.ts +1 -1
- package/dist/npm/slots/SchedulerViewSlot.js +57 -29
- package/dist/npm/tasks/SchedulerEditTask.js +57 -49
- package/dist/npm/tasks/SchedulerTask.js +4 -1
- package/dist/npm/tasks/SchedulerViewTask.js +17 -21
- package/dist/npm/views/agenda/AgendaView.js +18 -9
- package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
- package/dist/npm/views/common/VerticalResourceIterator.d.ts +1 -0
- package/dist/npm/views/common/VerticalResourceIterator.js +107 -17
- package/dist/npm/views/day/DayView.js +15 -3
- package/dist/npm/views/day/DayViewAllDaySlots.d.ts +2 -0
- package/dist/npm/views/day/DayViewAllDaySlots.js +12 -5
- package/dist/npm/views/day/DayViewMiddleRow.js +12 -9
- package/dist/npm/views/day/DayViewVerticalRow.d.ts +41 -0
- package/dist/npm/views/day/DayViewVerticalRow.js +113 -0
- package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
- package/dist/npm/views/day/DayViewVerticalSlotsRow.js +145 -0
- package/dist/npm/views/day/MultiDayView.d.ts +1 -1
- package/dist/npm/views/day/MultiDayView.js +184 -289
- package/dist/npm/views/month/MonthView.d.ts +1 -1
- package/dist/npm/views/month/MonthView.js +56 -65
- package/dist/npm/views/month/MonthViewBody.d.ts +2 -0
- package/dist/npm/views/month/MonthViewBody.js +36 -52
- package/dist/npm/views/time/MultiDayTimelineView.d.ts +2 -2
- package/dist/npm/views/time/MultiDayTimelineView.js +52 -41
- package/dist/npm/views/time/TimelineView.js +9 -3
- package/dist/npm/views/time/TimelineViewBody.d.ts +2 -0
- package/dist/npm/views/time/TimelineViewBody.js +6 -2
- package/dist/npm/views/week/WeekView.js +9 -3
- package/dist/npm/views/week/WorkWeekView.js +9 -3
- package/package.json +12 -12
- package/dist/es/components/footer/bussiness-hours/BussinessHours.js +0 -33
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +0 -44
|
@@ -122,16 +122,7 @@ var SchedulerFormVue2 = {
|
|
|
122
122
|
})]), // @ts-ignore function children
|
|
123
123
|
h(kendo_vue_dialogs_1.DialogActionsBar, _this.v3 ? function () {
|
|
124
124
|
return [// @ts-ignore function children
|
|
125
|
-
h(kendo_vue_buttons_1.Button, {
|
|
126
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
127
|
-
attrs: _this.v3 ? undefined : {
|
|
128
|
-
disabled: !_this.renderProps.allowSubmit
|
|
129
|
-
},
|
|
130
|
-
onClick: _this.renderProps.onSubmit,
|
|
131
|
-
on: _this.v3 ? undefined : {
|
|
132
|
-
"click": _this.renderProps.onSubmit
|
|
133
|
-
}
|
|
134
|
-
}, _this.v3 ? function () {
|
|
125
|
+
h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
|
|
135
126
|
return [editSaveMessage];
|
|
136
127
|
} : [editSaveMessage]), // @ts-ignore function children
|
|
137
128
|
h(kendo_vue_buttons_1.Button, {
|
|
@@ -142,16 +133,7 @@ var SchedulerFormVue2 = {
|
|
|
142
133
|
}, _this.v3 ? function () {
|
|
143
134
|
return [editCancelMessage];
|
|
144
135
|
} : [editCancelMessage])];
|
|
145
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
146
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
147
|
-
attrs: _this.v3 ? undefined : {
|
|
148
|
-
disabled: !_this.renderProps.allowSubmit
|
|
149
|
-
},
|
|
150
|
-
onClick: _this.renderProps.onSubmit,
|
|
151
|
-
on: _this.v3 ? undefined : {
|
|
152
|
-
"click": _this.renderProps.onSubmit
|
|
153
|
-
}
|
|
154
|
-
}, _this.v3 ? function () {
|
|
136
|
+
} : [h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
|
|
155
137
|
return [editSaveMessage];
|
|
156
138
|
} : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
157
139
|
onClick: _this.handleCancel,
|
|
@@ -185,16 +167,7 @@ var SchedulerFormVue2 = {
|
|
|
185
167
|
as: Editor
|
|
186
168
|
}
|
|
187
169
|
})]), h(kendo_vue_dialogs_1.DialogActionsBar, _this.v3 ? function () {
|
|
188
|
-
return [h(kendo_vue_buttons_1.Button, {
|
|
189
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
190
|
-
attrs: _this.v3 ? undefined : {
|
|
191
|
-
disabled: !_this.renderProps.allowSubmit
|
|
192
|
-
},
|
|
193
|
-
onClick: _this.renderProps.onSubmit,
|
|
194
|
-
on: _this.v3 ? undefined : {
|
|
195
|
-
"click": _this.renderProps.onSubmit
|
|
196
|
-
}
|
|
197
|
-
}, _this.v3 ? function () {
|
|
170
|
+
return [h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
|
|
198
171
|
return [editSaveMessage];
|
|
199
172
|
} : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
200
173
|
onClick: _this.handleCancel,
|
|
@@ -204,16 +177,7 @@ var SchedulerFormVue2 = {
|
|
|
204
177
|
}, _this.v3 ? function () {
|
|
205
178
|
return [editCancelMessage];
|
|
206
179
|
} : [editCancelMessage])];
|
|
207
|
-
} : [h(kendo_vue_buttons_1.Button, {
|
|
208
|
-
disabled: !_this.renderProps.allowSubmit,
|
|
209
|
-
attrs: _this.v3 ? undefined : {
|
|
210
|
-
disabled: !_this.renderProps.allowSubmit
|
|
211
|
-
},
|
|
212
|
-
onClick: _this.renderProps.onSubmit,
|
|
213
|
-
on: _this.v3 ? undefined : {
|
|
214
|
-
"click": _this.renderProps.onSubmit
|
|
215
|
-
}
|
|
216
|
-
}, _this.v3 ? function () {
|
|
180
|
+
} : [h(kendo_vue_buttons_1.Button, _this.v3 ? function () {
|
|
217
181
|
return [editSaveMessage];
|
|
218
182
|
} : [editSaveMessage]), h(kendo_vue_buttons_1.Button, {
|
|
219
183
|
onClick: _this.handleCancel,
|
|
@@ -16,8 +16,7 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons"); // tslint:enab
|
|
|
16
16
|
|
|
17
17
|
var ShowMoreItemsButtonVue2 = {
|
|
18
18
|
name: 'KendoShowMoreItemsButton',
|
|
19
|
-
props: {
|
|
20
|
-
currentSlot: Object
|
|
19
|
+
props: {// currentSlot: Object
|
|
21
20
|
},
|
|
22
21
|
inject: {
|
|
23
22
|
kendoLocalizationService: {
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BusinessHoursVue2 = exports.BusinessHours = void 0; // @ts-ignore
|
|
7
|
+
|
|
8
|
+
var Vue = require("vue");
|
|
9
|
+
|
|
10
|
+
var allVue = Vue;
|
|
11
|
+
var gh = allVue.h;
|
|
12
|
+
|
|
13
|
+
var messages_1 = require("../../../messages");
|
|
14
|
+
|
|
15
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
16
|
+
|
|
17
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
18
|
+
|
|
19
|
+
var kendo_vue_buttons_2 = require("@progress/kendo-vue-buttons");
|
|
20
|
+
|
|
21
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl"); // tslint:enable:max-line-length
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var BusinessHoursVue2 = {
|
|
25
|
+
name: 'KendoBusinessHours',
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
emits: {
|
|
28
|
+
click: null
|
|
29
|
+
},
|
|
30
|
+
inject: {
|
|
31
|
+
ks: {
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
kendoLocalizationService: {
|
|
35
|
+
default: null
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
props: {
|
|
39
|
+
slotDuration: Number
|
|
40
|
+
},
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
setup: !gh ? undefined : function () {
|
|
43
|
+
var v3 = !!gh;
|
|
44
|
+
return {
|
|
45
|
+
v3: v3
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
render: function render(createElement) {
|
|
50
|
+
var _this = this;
|
|
51
|
+
|
|
52
|
+
var h = gh || createElement;
|
|
53
|
+
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
54
|
+
this.localization = kendo_vue_intl_1.provideLocalizationService(this);
|
|
55
|
+
return this.slotDuration && this.slotDuration < 24 * 60 ? // @ts-ignore function children
|
|
56
|
+
h(kendo_vue_buttons_1.ToolbarItem, {
|
|
57
|
+
// ref={(item) => { if (item) { element.current = item.element; } }}
|
|
58
|
+
"class": 'k-scheduler-navigation'
|
|
59
|
+
}, this.v3 ? function () {
|
|
60
|
+
return [defaultSlot ? defaultSlot : // @ts-ignore function children
|
|
61
|
+
h(kendo_vue_buttons_2.Button, {
|
|
62
|
+
tabIndex: -1,
|
|
63
|
+
attrs: _this.v3 ? undefined : {
|
|
64
|
+
tabIndex: -1
|
|
65
|
+
},
|
|
66
|
+
onClick: _this.handleShowWorkHoursClick,
|
|
67
|
+
on: _this.v3 ? undefined : {
|
|
68
|
+
"click": _this.handleShowWorkHoursClick
|
|
69
|
+
}
|
|
70
|
+
}, _this.v3 ? function () {
|
|
71
|
+
return [h("span", {
|
|
72
|
+
"class": "k-icon k-i-clock"
|
|
73
|
+
}), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
|
|
74
|
+
} : [h("span", {
|
|
75
|
+
"class": "k-icon k-i-clock"
|
|
76
|
+
}), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])];
|
|
77
|
+
} : [defaultSlot ? defaultSlot : h(kendo_vue_buttons_2.Button, {
|
|
78
|
+
tabIndex: -1,
|
|
79
|
+
attrs: _this.v3 ? undefined : {
|
|
80
|
+
tabIndex: -1
|
|
81
|
+
},
|
|
82
|
+
onClick: _this.handleShowWorkHoursClick,
|
|
83
|
+
on: _this.v3 ? undefined : {
|
|
84
|
+
"click": _this.handleShowWorkHoursClick
|
|
85
|
+
}
|
|
86
|
+
}, _this.v3 ? function () {
|
|
87
|
+
return [h("span", {
|
|
88
|
+
"class": "k-icon k-i-clock"
|
|
89
|
+
}), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
|
|
90
|
+
} : [h("span", {
|
|
91
|
+
"class": "k-icon k-i-clock"
|
|
92
|
+
}), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])]) : null;
|
|
93
|
+
},
|
|
94
|
+
methods: {
|
|
95
|
+
handleShowWorkHoursClick: function handleShowWorkHoursClick(e) {
|
|
96
|
+
this.$emit('click', e);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
exports.BusinessHoursVue2 = BusinessHoursVue2;
|
|
101
|
+
var BusinessHours = BusinessHoursVue2;
|
|
102
|
+
exports.BusinessHours = BusinessHours;
|
|
@@ -65,7 +65,7 @@ var NavigationDatePickerVue2 = {
|
|
|
65
65
|
// @ts-ignore
|
|
66
66
|
render: function render(createElement) {
|
|
67
67
|
var h = gh || createElement;
|
|
68
|
-
var normalized = kendo_date_math_1.ZonedDate.fromLocalDate(this.$props.value, this.ks.timezone);
|
|
68
|
+
var normalized = kendo_date_math_1.ZonedDate.fromLocalDate(this.$props.value || this.ks.currentDate, this.ks.timezone);
|
|
69
69
|
var value = kendo_date_math_1.getDate(normalized);
|
|
70
70
|
return (// @ts-ignore
|
|
71
71
|
h(kendo_vue_dateinputs_1.DatePicker, {
|
|
@@ -75,8 +75,7 @@ var NavigationDatePickerVue2 = {
|
|
|
75
75
|
dateInput: EMPTY_DATE_INPUT,
|
|
76
76
|
attrs: this.v3 ? undefined : {
|
|
77
77
|
dateInput: EMPTY_DATE_INPUT,
|
|
78
|
-
toggleButton: DatePickerToggleButton_1.DatePickerToggleButton
|
|
79
|
-
,
|
|
78
|
+
toggleButton: DatePickerToggleButton_1.DatePickerToggleButton,
|
|
80
79
|
value: value
|
|
81
80
|
},
|
|
82
81
|
toggleButton: DatePickerToggleButton_1.DatePickerToggleButton,
|
|
@@ -12,12 +12,26 @@ var gh = allVue.h;
|
|
|
12
12
|
|
|
13
13
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var kendo_vue_buttons_2 = require("@progress/kendo-vue-buttons");
|
|
16
|
+
|
|
17
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
18
|
+
|
|
19
|
+
var messages_1 = require("../../../messages");
|
|
20
|
+
|
|
21
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl"); // tslint:enable:max-line-length
|
|
16
22
|
|
|
17
23
|
|
|
18
24
|
var SchedulerNavigationVue2 = {
|
|
19
25
|
name: 'KendoSchedulerNavigation',
|
|
20
26
|
props: {},
|
|
27
|
+
inject: {
|
|
28
|
+
ks: {
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
kendoLocalizationService: {
|
|
32
|
+
default: null
|
|
33
|
+
}
|
|
34
|
+
},
|
|
21
35
|
// @ts-ignore
|
|
22
36
|
setup: !gh ? undefined : function () {
|
|
23
37
|
var v3 = !!gh;
|
|
@@ -27,13 +41,318 @@ var SchedulerNavigationVue2 = {
|
|
|
27
41
|
},
|
|
28
42
|
// @ts-ignore
|
|
29
43
|
render: function render(createElement) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
|
|
30
46
|
var h = gh || createElement;
|
|
31
47
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
48
|
+
this.localization = kendo_vue_intl_1.provideLocalizationService(this);
|
|
49
|
+
var todayText = this.localization.toLanguageString(messages_1.today, messages_1.messages[messages_1.today]);
|
|
50
|
+
var previousText = this.localization.toLanguageString(messages_1.previousTitle, messages_1.messages[messages_1.previousTitle]);
|
|
51
|
+
var nextText = this.localization.toLanguageString(messages_1.nextTitle, messages_1.messages[messages_1.nextTitle]);
|
|
32
52
|
return (// @ts-ignore function children
|
|
33
|
-
h(
|
|
34
|
-
return [
|
|
35
|
-
|
|
53
|
+
h(kendo_vue_buttons_2.ToolbarItem, this.v3 ? function () {
|
|
54
|
+
return [// @ts-ignore function children
|
|
55
|
+
h(kendo_vue_buttons_1.ButtonGroup, {
|
|
56
|
+
"class": "k-scheduler-navigation"
|
|
57
|
+
}, _this.v3 ? function () {
|
|
58
|
+
return [// @ts-ignore function children
|
|
59
|
+
h(kendo_vue_buttons_1.Button, {
|
|
60
|
+
role: "button",
|
|
61
|
+
attrs: _this.v3 ? undefined : {
|
|
62
|
+
role: "button",
|
|
63
|
+
tabIndex: -1,
|
|
64
|
+
title: todayText,
|
|
65
|
+
"aria-label": todayText
|
|
66
|
+
},
|
|
67
|
+
tabIndex: -1,
|
|
68
|
+
title: todayText,
|
|
69
|
+
"aria-label": todayText,
|
|
70
|
+
onClick: _this.handleTodayClick,
|
|
71
|
+
on: _this.v3 ? undefined : {
|
|
72
|
+
"click": _this.handleTodayClick
|
|
73
|
+
}
|
|
74
|
+
}, _this.v3 ? function () {
|
|
75
|
+
return [todayText];
|
|
76
|
+
} : [todayText]), // @ts-ignore function children
|
|
77
|
+
h(kendo_vue_buttons_1.Button, {
|
|
78
|
+
role: "button",
|
|
79
|
+
attrs: _this.v3 ? undefined : {
|
|
80
|
+
role: "button",
|
|
81
|
+
tabIndex: -1,
|
|
82
|
+
title: previousText,
|
|
83
|
+
"aria-label": previousText
|
|
84
|
+
},
|
|
85
|
+
tabIndex: -1,
|
|
86
|
+
"class": "k-button-icon",
|
|
87
|
+
title: previousText,
|
|
88
|
+
"aria-label": previousText,
|
|
89
|
+
onClick: _this.handlePrevClick,
|
|
90
|
+
on: _this.v3 ? undefined : {
|
|
91
|
+
"click": _this.handlePrevClick
|
|
92
|
+
}
|
|
93
|
+
}, _this.v3 ? function () {
|
|
94
|
+
return [h("span", {
|
|
95
|
+
"class": "k-button-text"
|
|
96
|
+
}, [h("span", {
|
|
97
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
98
|
+
})])];
|
|
99
|
+
} : [h("span", {
|
|
100
|
+
"class": "k-button-text"
|
|
101
|
+
}, [h("span", {
|
|
102
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
103
|
+
})])]), // @ts-ignore function children
|
|
104
|
+
h(kendo_vue_buttons_1.Button, {
|
|
105
|
+
role: "button",
|
|
106
|
+
attrs: _this.v3 ? undefined : {
|
|
107
|
+
role: "button",
|
|
108
|
+
tabIndex: -1,
|
|
109
|
+
title: nextText,
|
|
110
|
+
"aria-label": nextText
|
|
111
|
+
},
|
|
112
|
+
tabIndex: -1,
|
|
113
|
+
"class": "k-button-icon",
|
|
114
|
+
title: nextText,
|
|
115
|
+
"aria-label": nextText,
|
|
116
|
+
onClick: _this.handleNextClick,
|
|
117
|
+
on: _this.v3 ? undefined : {
|
|
118
|
+
"click": _this.handleNextClick
|
|
119
|
+
}
|
|
120
|
+
}, _this.v3 ? function () {
|
|
121
|
+
return [h("span", {
|
|
122
|
+
"class": "k-button-text"
|
|
123
|
+
}, [h("span", {
|
|
124
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
125
|
+
})])];
|
|
126
|
+
} : [h("span", {
|
|
127
|
+
"class": "k-button-text"
|
|
128
|
+
}, [h("span", {
|
|
129
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
130
|
+
})])])];
|
|
131
|
+
} : [h(kendo_vue_buttons_1.Button, {
|
|
132
|
+
role: "button",
|
|
133
|
+
attrs: _this.v3 ? undefined : {
|
|
134
|
+
role: "button",
|
|
135
|
+
tabIndex: -1,
|
|
136
|
+
title: todayText,
|
|
137
|
+
"aria-label": todayText
|
|
138
|
+
},
|
|
139
|
+
tabIndex: -1,
|
|
140
|
+
title: todayText,
|
|
141
|
+
"aria-label": todayText,
|
|
142
|
+
onClick: _this.handleTodayClick,
|
|
143
|
+
on: _this.v3 ? undefined : {
|
|
144
|
+
"click": _this.handleTodayClick
|
|
145
|
+
}
|
|
146
|
+
}, _this.v3 ? function () {
|
|
147
|
+
return [todayText];
|
|
148
|
+
} : [todayText]), h(kendo_vue_buttons_1.Button, {
|
|
149
|
+
role: "button",
|
|
150
|
+
attrs: _this.v3 ? undefined : {
|
|
151
|
+
role: "button",
|
|
152
|
+
tabIndex: -1,
|
|
153
|
+
title: previousText,
|
|
154
|
+
"aria-label": previousText
|
|
155
|
+
},
|
|
156
|
+
tabIndex: -1,
|
|
157
|
+
"class": "k-button-icon",
|
|
158
|
+
title: previousText,
|
|
159
|
+
"aria-label": previousText,
|
|
160
|
+
onClick: _this.handlePrevClick,
|
|
161
|
+
on: _this.v3 ? undefined : {
|
|
162
|
+
"click": _this.handlePrevClick
|
|
163
|
+
}
|
|
164
|
+
}, _this.v3 ? function () {
|
|
165
|
+
return [h("span", {
|
|
166
|
+
"class": "k-button-text"
|
|
167
|
+
}, [h("span", {
|
|
168
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
169
|
+
})])];
|
|
170
|
+
} : [h("span", {
|
|
171
|
+
"class": "k-button-text"
|
|
172
|
+
}, [h("span", {
|
|
173
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
174
|
+
})])]), h(kendo_vue_buttons_1.Button, {
|
|
175
|
+
role: "button",
|
|
176
|
+
attrs: _this.v3 ? undefined : {
|
|
177
|
+
role: "button",
|
|
178
|
+
tabIndex: -1,
|
|
179
|
+
title: nextText,
|
|
180
|
+
"aria-label": nextText
|
|
181
|
+
},
|
|
182
|
+
tabIndex: -1,
|
|
183
|
+
"class": "k-button-icon",
|
|
184
|
+
title: nextText,
|
|
185
|
+
"aria-label": nextText,
|
|
186
|
+
onClick: _this.handleNextClick,
|
|
187
|
+
on: _this.v3 ? undefined : {
|
|
188
|
+
"click": _this.handleNextClick
|
|
189
|
+
}
|
|
190
|
+
}, _this.v3 ? function () {
|
|
191
|
+
return [h("span", {
|
|
192
|
+
"class": "k-button-text"
|
|
193
|
+
}, [h("span", {
|
|
194
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
195
|
+
})])];
|
|
196
|
+
} : [h("span", {
|
|
197
|
+
"class": "k-button-text"
|
|
198
|
+
}, [h("span", {
|
|
199
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
200
|
+
})])])])];
|
|
201
|
+
} : [h(kendo_vue_buttons_1.ButtonGroup, {
|
|
202
|
+
"class": "k-scheduler-navigation"
|
|
203
|
+
}, _this.v3 ? function () {
|
|
204
|
+
return [h(kendo_vue_buttons_1.Button, {
|
|
205
|
+
role: "button",
|
|
206
|
+
attrs: _this.v3 ? undefined : {
|
|
207
|
+
role: "button",
|
|
208
|
+
tabIndex: -1,
|
|
209
|
+
title: todayText,
|
|
210
|
+
"aria-label": todayText
|
|
211
|
+
},
|
|
212
|
+
tabIndex: -1,
|
|
213
|
+
title: todayText,
|
|
214
|
+
"aria-label": todayText,
|
|
215
|
+
onClick: _this.handleTodayClick,
|
|
216
|
+
on: _this.v3 ? undefined : {
|
|
217
|
+
"click": _this.handleTodayClick
|
|
218
|
+
}
|
|
219
|
+
}, _this.v3 ? function () {
|
|
220
|
+
return [todayText];
|
|
221
|
+
} : [todayText]), h(kendo_vue_buttons_1.Button, {
|
|
222
|
+
role: "button",
|
|
223
|
+
attrs: _this.v3 ? undefined : {
|
|
224
|
+
role: "button",
|
|
225
|
+
tabIndex: -1,
|
|
226
|
+
title: previousText,
|
|
227
|
+
"aria-label": previousText
|
|
228
|
+
},
|
|
229
|
+
tabIndex: -1,
|
|
230
|
+
"class": "k-button-icon",
|
|
231
|
+
title: previousText,
|
|
232
|
+
"aria-label": previousText,
|
|
233
|
+
onClick: _this.handlePrevClick,
|
|
234
|
+
on: _this.v3 ? undefined : {
|
|
235
|
+
"click": _this.handlePrevClick
|
|
236
|
+
}
|
|
237
|
+
}, _this.v3 ? function () {
|
|
238
|
+
return [h("span", {
|
|
239
|
+
"class": "k-button-text"
|
|
240
|
+
}, [h("span", {
|
|
241
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
242
|
+
})])];
|
|
243
|
+
} : [h("span", {
|
|
244
|
+
"class": "k-button-text"
|
|
245
|
+
}, [h("span", {
|
|
246
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
247
|
+
})])]), h(kendo_vue_buttons_1.Button, {
|
|
248
|
+
role: "button",
|
|
249
|
+
attrs: _this.v3 ? undefined : {
|
|
250
|
+
role: "button",
|
|
251
|
+
tabIndex: -1,
|
|
252
|
+
title: nextText,
|
|
253
|
+
"aria-label": nextText
|
|
254
|
+
},
|
|
255
|
+
tabIndex: -1,
|
|
256
|
+
"class": "k-button-icon",
|
|
257
|
+
title: nextText,
|
|
258
|
+
"aria-label": nextText,
|
|
259
|
+
onClick: _this.handleNextClick,
|
|
260
|
+
on: _this.v3 ? undefined : {
|
|
261
|
+
"click": _this.handleNextClick
|
|
262
|
+
}
|
|
263
|
+
}, _this.v3 ? function () {
|
|
264
|
+
return [h("span", {
|
|
265
|
+
"class": "k-button-text"
|
|
266
|
+
}, [h("span", {
|
|
267
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
268
|
+
})])];
|
|
269
|
+
} : [h("span", {
|
|
270
|
+
"class": "k-button-text"
|
|
271
|
+
}, [h("span", {
|
|
272
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
273
|
+
})])])];
|
|
274
|
+
} : [h(kendo_vue_buttons_1.Button, {
|
|
275
|
+
role: "button",
|
|
276
|
+
attrs: _this.v3 ? undefined : {
|
|
277
|
+
role: "button",
|
|
278
|
+
tabIndex: -1,
|
|
279
|
+
title: todayText,
|
|
280
|
+
"aria-label": todayText
|
|
281
|
+
},
|
|
282
|
+
tabIndex: -1,
|
|
283
|
+
title: todayText,
|
|
284
|
+
"aria-label": todayText,
|
|
285
|
+
onClick: _this.handleTodayClick,
|
|
286
|
+
on: _this.v3 ? undefined : {
|
|
287
|
+
"click": _this.handleTodayClick
|
|
288
|
+
}
|
|
289
|
+
}, _this.v3 ? function () {
|
|
290
|
+
return [todayText];
|
|
291
|
+
} : [todayText]), h(kendo_vue_buttons_1.Button, {
|
|
292
|
+
role: "button",
|
|
293
|
+
attrs: _this.v3 ? undefined : {
|
|
294
|
+
role: "button",
|
|
295
|
+
tabIndex: -1,
|
|
296
|
+
title: previousText,
|
|
297
|
+
"aria-label": previousText
|
|
298
|
+
},
|
|
299
|
+
tabIndex: -1,
|
|
300
|
+
"class": "k-button-icon",
|
|
301
|
+
title: previousText,
|
|
302
|
+
"aria-label": previousText,
|
|
303
|
+
onClick: _this.handlePrevClick,
|
|
304
|
+
on: _this.v3 ? undefined : {
|
|
305
|
+
"click": _this.handlePrevClick
|
|
306
|
+
}
|
|
307
|
+
}, _this.v3 ? function () {
|
|
308
|
+
return [h("span", {
|
|
309
|
+
"class": "k-button-text"
|
|
310
|
+
}, [h("span", {
|
|
311
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
312
|
+
})])];
|
|
313
|
+
} : [h("span", {
|
|
314
|
+
"class": "k-button-text"
|
|
315
|
+
}, [h("span", {
|
|
316
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
317
|
+
})])]), h(kendo_vue_buttons_1.Button, {
|
|
318
|
+
role: "button",
|
|
319
|
+
attrs: _this.v3 ? undefined : {
|
|
320
|
+
role: "button",
|
|
321
|
+
tabIndex: -1,
|
|
322
|
+
title: nextText,
|
|
323
|
+
"aria-label": nextText
|
|
324
|
+
},
|
|
325
|
+
tabIndex: -1,
|
|
326
|
+
"class": "k-button-icon",
|
|
327
|
+
title: nextText,
|
|
328
|
+
"aria-label": nextText,
|
|
329
|
+
onClick: _this.handleNextClick,
|
|
330
|
+
on: _this.v3 ? undefined : {
|
|
331
|
+
"click": _this.handleNextClick
|
|
332
|
+
}
|
|
333
|
+
}, _this.v3 ? function () {
|
|
334
|
+
return [h("span", {
|
|
335
|
+
"class": "k-button-text"
|
|
336
|
+
}, [h("span", {
|
|
337
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
338
|
+
})])];
|
|
339
|
+
} : [h("span", {
|
|
340
|
+
"class": "k-button-text"
|
|
341
|
+
}, [h("span", {
|
|
342
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
343
|
+
})])])])])
|
|
36
344
|
);
|
|
345
|
+
},
|
|
346
|
+
methods: {
|
|
347
|
+
handleTodayClick: function handleTodayClick(e) {
|
|
348
|
+
this.$emit('todayclick', e);
|
|
349
|
+
},
|
|
350
|
+
handlePrevClick: function handlePrevClick(e) {
|
|
351
|
+
this.$emit('prevclick', e);
|
|
352
|
+
},
|
|
353
|
+
handleNextClick: function handleNextClick(e) {
|
|
354
|
+
this.$emit('nextclick', e);
|
|
355
|
+
}
|
|
37
356
|
}
|
|
38
357
|
};
|
|
39
358
|
exports.SchedulerNavigationVue2 = SchedulerNavigationVue2;
|
|
@@ -12,7 +12,9 @@ var gh = allVue.h;
|
|
|
12
12
|
|
|
13
13
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
14
|
|
|
15
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
16
|
+
|
|
17
|
+
var ViewSelectorList_1 = require("./ViewSelectorList"); // tslint:enable:max-line-length
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
var SchedulerViewSelectorVue2 = {
|
|
@@ -34,8 +36,8 @@ var SchedulerViewSelectorVue2 = {
|
|
|
34
36
|
// ref={(item) => { if (item) { element.current = item.element; } }}
|
|
35
37
|
"class": 'k-scheduler-views'
|
|
36
38
|
}, this.v3 ? function () {
|
|
37
|
-
return [
|
|
38
|
-
} : [
|
|
39
|
+
return [h(ViewSelectorList_1.ViewSelectorList)];
|
|
40
|
+
} : [h(ViewSelectorList_1.ViewSelectorList)])
|
|
39
41
|
);
|
|
40
42
|
}
|
|
41
43
|
};
|
|
@@ -12,7 +12,9 @@ var gh = allVue.h;
|
|
|
12
12
|
|
|
13
13
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
14
|
|
|
15
|
-
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
15
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
16
|
+
|
|
17
|
+
var messages_1 = require("../../../messages"); // tslint:enable:max-line-length
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
var ViewSelectorItemVue2 = {
|
|
@@ -42,12 +44,9 @@ var ViewSelectorItemVue2 = {
|
|
|
42
44
|
render: function render(createElement) {
|
|
43
45
|
var h = gh || createElement;
|
|
44
46
|
var localization = kendo_vue_intl_1.provideLocalizationService(this);
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// : props.view.title,
|
|
49
|
-
// [props.view.title, localization]);
|
|
50
|
-
|
|
47
|
+
var nameTitle = 'scheduler.' + this.$props.view.name + 'ViewTitle';
|
|
48
|
+
var name = localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]);
|
|
49
|
+
var title = this.$props.view.title || name;
|
|
51
50
|
return (// @ts-ignore function children
|
|
52
51
|
h(kendo_vue_buttons_1.Button, {
|
|
53
52
|
role: "button",
|
|
@@ -30,12 +30,19 @@ var gh = allVue.h; // import { useSchedulerViewsContext } from '../../../main';
|
|
|
30
30
|
|
|
31
31
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
32
32
|
|
|
33
|
-
var ViewSelectorItem_1 = require("./ViewSelectorItem");
|
|
33
|
+
var ViewSelectorItem_1 = require("./ViewSelectorItem");
|
|
34
|
+
|
|
35
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
36
|
+
|
|
37
|
+
var messages_1 = require("../../../messages"); // tslint:enable:max-line-length
|
|
34
38
|
|
|
35
39
|
|
|
36
40
|
var ViewSelectorListVue2 = {
|
|
37
41
|
name: 'KendoViewSelectorList',
|
|
38
42
|
inject: {
|
|
43
|
+
kendoLocalizationService: {
|
|
44
|
+
default: null
|
|
45
|
+
},
|
|
39
46
|
ks: {
|
|
40
47
|
default: null
|
|
41
48
|
},
|
|
@@ -78,13 +85,13 @@ var ViewSelectorListVue2 = {
|
|
|
78
85
|
var _this = this;
|
|
79
86
|
|
|
80
87
|
var h = gh || createElement;
|
|
81
|
-
var views = this.ks.views;
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
var views = this.ks.views;
|
|
89
|
+
this.localization = kendo_vue_intl_1.provideLocalizationService(this);
|
|
84
90
|
var activeView = views.find(function (v) {
|
|
85
91
|
return v.name === _this.ks.activeViewName;
|
|
86
|
-
});
|
|
87
|
-
|
|
92
|
+
});
|
|
93
|
+
var activeNameTitle = 'scheduler.' + activeView.name + 'ViewTitle';
|
|
94
|
+
var activeName = this.localization.toLanguageString(activeNameTitle, messages_1.messages[activeNameTitle]);
|
|
88
95
|
return h("div", {
|
|
89
96
|
"class": "k-scheduler-views-wrapper"
|
|
90
97
|
}, [activeView && this.media === 'mobile' && // @ts-ignore function children
|
|
@@ -103,26 +110,27 @@ var ViewSelectorListVue2 = {
|
|
|
103
110
|
},
|
|
104
111
|
textField: "title",
|
|
105
112
|
items: views.map(function (v) {
|
|
113
|
+
var nameTitle = 'scheduler.' + v.name + 'ViewTitle';
|
|
114
|
+
var name = this.localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]);
|
|
106
115
|
return __assign(__assign({}, v.props), {
|
|
107
116
|
selected: v.name === this.ks.activeViewName,
|
|
108
117
|
name: v.name,
|
|
109
|
-
title: v.title ||
|
|
118
|
+
title: v.title || name
|
|
110
119
|
});
|
|
111
120
|
}, this),
|
|
112
|
-
text:
|
|
113
|
-
// ? activeView.props.title.call(undefined, localization)
|
|
114
|
-
// :
|
|
115
|
-
activeView.title || activeView.name
|
|
121
|
+
text: activeView.title || activeName
|
|
116
122
|
},
|
|
117
123
|
textField: "title",
|
|
118
124
|
items: views.map(function (v) {
|
|
125
|
+
var nameTitle = 'scheduler.' + v.name + 'ViewTitle';
|
|
126
|
+
var name = this.localization.toLanguageString(nameTitle, messages_1.messages[nameTitle]);
|
|
119
127
|
return __assign(__assign({}, v.props), {
|
|
120
128
|
selected: v.name === this.ks.activeViewName,
|
|
121
129
|
name: v.name,
|
|
122
|
-
title: v.title ||
|
|
130
|
+
title: v.title || name
|
|
123
131
|
});
|
|
124
132
|
}, this),
|
|
125
|
-
text: activeView.title ||
|
|
133
|
+
text: activeView.title || activeName
|
|
126
134
|
}, this.v3 ? function () {
|
|
127
135
|
return [h("span", {
|
|
128
136
|
"class": "k-icon k-i-arrow-60-down"
|