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