@progress/kendo-vue-scheduler 3.1.0 → 3.1.1-dev.202203151205
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/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/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 +23 -9
- 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 +53 -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 +9 -3
- package/dist/es/views/day/DayViewAllDaySlots.d.ts +1 -0
- package/dist/es/views/day/DayViewAllDaySlots.js +3 -2
- 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 +167 -284
- 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/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/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 +23 -9
- 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 +52 -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 +9 -3
- package/dist/npm/views/day/DayViewAllDaySlots.d.ts +1 -0
- package/dist/npm/views/day/DayViewAllDaySlots.js +3 -2
- 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 +168 -285
- 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
|
@@ -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
|
};
|
|
@@ -53,9 +53,9 @@ var SchedulerResourceIteratorContextVue2 = {
|
|
|
53
53
|
render: function render(createElement) {
|
|
54
54
|
var h = gh || createElement;
|
|
55
55
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
56
|
-
return this.$props.noWrap ? defaultSlot[0] : h("div", {
|
|
56
|
+
return defaultSlot ? this.$props.noWrap && defaultSlot ? defaultSlot[0] : h("div", {
|
|
57
57
|
"class": "k-scheduler-cell k-group-cell"
|
|
58
|
-
}, [defaultSlot]);
|
|
58
|
+
}, [defaultSlot]) : null;
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
exports.SchedulerResourceIteratorContextVue2 = SchedulerResourceIteratorContextVue2;
|
|
@@ -38,6 +38,7 @@ var SchedulerEditItemVue2 = {
|
|
|
38
38
|
name: 'KendoSchedulerEditItem',
|
|
39
39
|
props: {
|
|
40
40
|
tabIndex: Number,
|
|
41
|
+
item: [String, Function, Object],
|
|
41
42
|
viewItem: [String, Function, Object],
|
|
42
43
|
drag: [String, Function, Object],
|
|
43
44
|
resize: [String, Function, Object],
|
|
@@ -108,7 +109,8 @@ var SchedulerEditItemVue2 = {
|
|
|
108
109
|
showOccurrenceDialog: this.showOccurrenceDialog
|
|
109
110
|
},
|
|
110
111
|
currentTabIndex: this.$props.tabIndex,
|
|
111
|
-
item: null
|
|
112
|
+
currentItem: null // item: null
|
|
113
|
+
|
|
112
114
|
};
|
|
113
115
|
},
|
|
114
116
|
computed: {
|
|
@@ -177,6 +177,8 @@ export interface SchedulerItemProps extends Item {
|
|
|
177
177
|
onResizeRelease?: (event: SchedulerItemDragEvent) => void;
|
|
178
178
|
/** @hidden */
|
|
179
179
|
maxSiblingsPerSlot?: number;
|
|
180
|
+
/** @hidden */
|
|
181
|
+
itemTitle?: string;
|
|
180
182
|
}
|
|
181
183
|
/**
|
|
182
184
|
* Represents the object which is returned from the `ref` callback of the [SchedulerItem]({% slug api_scheduler_scheduleritem %}).
|
|
@@ -101,7 +101,8 @@ var SchedulerItemVue2 = {
|
|
|
101
101
|
dragHint: Boolean,
|
|
102
102
|
resizeHint: Boolean,
|
|
103
103
|
format: String,
|
|
104
|
-
maxSiblingsPerSlot: Number
|
|
104
|
+
maxSiblingsPerSlot: Number,
|
|
105
|
+
itemTitle: String
|
|
105
106
|
},
|
|
106
107
|
data: function data() {
|
|
107
108
|
return {
|
|
@@ -279,7 +280,15 @@ var SchedulerItemVue2 = {
|
|
|
279
280
|
onKeyup: this.handleKeyUp,
|
|
280
281
|
"data-group-index": this.$props.group.index,
|
|
281
282
|
"data-range-index": this.$props.range.index
|
|
282
|
-
}, [
|
|
283
|
+
}, [!this.$props.resizeHint && h("span", {
|
|
284
|
+
"class": "k-event-actions"
|
|
285
|
+
}, [this.$props.tail && h("span", {
|
|
286
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
287
|
+
}), this.$props.isRecurring && !this.$props.isException && h("span", {
|
|
288
|
+
"class": "k-icon k-i-reload"
|
|
289
|
+
}), !this.$props.isRecurring && this.$props.isException && h("span", {
|
|
290
|
+
"class": "k-icon k-i-non-recurrence"
|
|
291
|
+
})]), defaultSlot, !this.$props.resizeHint && h("span", {
|
|
283
292
|
"class": "k-event-actions"
|
|
284
293
|
}, [editable.remove && h("a", {
|
|
285
294
|
tabIndex: -1,
|