@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
|
@@ -84,11 +84,13 @@ var MonthViewVue2 = {
|
|
|
84
84
|
selectedShortDateFormat: {
|
|
85
85
|
type: String,
|
|
86
86
|
default: '{0:Y}'
|
|
87
|
-
}
|
|
87
|
+
},
|
|
88
|
+
slotRender: [String, Function, Object],
|
|
89
|
+
item: [String, Function, Object]
|
|
88
90
|
},
|
|
89
91
|
inject: {
|
|
90
92
|
ks: {
|
|
91
|
-
default:
|
|
93
|
+
default: {}
|
|
92
94
|
},
|
|
93
95
|
kendoLocalizationService: {
|
|
94
96
|
default: null
|
|
@@ -167,89 +169,78 @@ var MonthViewVue2 = {
|
|
|
167
169
|
this.intl = kendo_vue_intl_1.provideIntlService(this); // const fields = useSchedulerFieldsContext();
|
|
168
170
|
|
|
169
171
|
var itemsPerSlot = this.$props.itemsPerSlot;
|
|
170
|
-
var body = this.ranges.map(function (_, rangeIndex) {
|
|
172
|
+
var body = this.ks.orientation === 'horizontal' ? this.ranges.map(function (_, rangeIndex) {
|
|
171
173
|
var _this = this;
|
|
172
174
|
|
|
173
|
-
return
|
|
174
|
-
|
|
175
|
-
resources: this.ks.props.resources,
|
|
176
|
-
attrs: this.v3 ? undefined : {
|
|
175
|
+
return (// @ts-ignore function children
|
|
176
|
+
h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
|
|
177
177
|
resources: this.ks.props.resources,
|
|
178
|
+
attrs: this.v3 ? undefined : {
|
|
179
|
+
resources: this.ks.props.resources,
|
|
180
|
+
group: this.ks.props.group
|
|
181
|
+
},
|
|
178
182
|
group: this.ks.props.group
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
}, this.v3 ? function () {
|
|
184
|
+
return [h(MonthViewBody_1.MonthViewBody, {
|
|
185
|
+
slotRender: _this.$props.slotRender,
|
|
186
|
+
attrs: _this.v3 ? undefined : {
|
|
187
|
+
slotRender: _this.$props.slotRender,
|
|
188
|
+
monthSlots: monthSlots,
|
|
189
|
+
rangeIndex: rangeIndex,
|
|
190
|
+
itemsPerSlot: itemsPerSlot
|
|
191
|
+
},
|
|
185
192
|
monthSlots: monthSlots,
|
|
186
193
|
rangeIndex: rangeIndex,
|
|
187
|
-
itemsPerSlot: itemsPerSlot
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
})];
|
|
196
|
-
} : [h(MonthViewBody_1.MonthViewBody, {
|
|
197
|
-
monthSlots: monthSlots,
|
|
198
|
-
attrs: _this.v3 ? undefined : {
|
|
199
|
-
monthSlots: monthSlots,
|
|
200
|
-
rangeIndex: rangeIndex,
|
|
201
|
-
itemsPerSlot: itemsPerSlot
|
|
202
|
-
},
|
|
203
|
-
rangeIndex: rangeIndex,
|
|
204
|
-
itemsPerSlot: itemsPerSlot,
|
|
205
|
-
onDataaction: _this.handleDataAction,
|
|
206
|
-
on: _this.v3 ? undefined : {
|
|
207
|
-
"dataaction": _this.handleDataAction
|
|
208
|
-
}
|
|
209
|
-
})]) : // @ts-ignore function children
|
|
210
|
-
h(VerticalResourceIterator_1.VerticalResourceIterator, {
|
|
211
|
-
nested: true,
|
|
212
|
-
attrs: this.v3 ? undefined : {
|
|
213
|
-
nested: true,
|
|
214
|
-
resources: this.ks.props.resources,
|
|
215
|
-
group: this.ks.props.group
|
|
216
|
-
},
|
|
217
|
-
resources: this.ks.props.resources,
|
|
218
|
-
group: this.ks.props.group
|
|
219
|
-
}, this.v3 ? function () {
|
|
220
|
-
return [h(MonthViewBody_1.MonthViewBody, {
|
|
221
|
-
monthSlots: monthSlots,
|
|
194
|
+
itemsPerSlot: itemsPerSlot,
|
|
195
|
+
onDataaction: _this.handleDataAction,
|
|
196
|
+
on: _this.v3 ? undefined : {
|
|
197
|
+
"dataaction": _this.handleDataAction
|
|
198
|
+
}
|
|
199
|
+
})];
|
|
200
|
+
} : [h(MonthViewBody_1.MonthViewBody, {
|
|
201
|
+
slotRender: _this.$props.slotRender,
|
|
222
202
|
attrs: _this.v3 ? undefined : {
|
|
203
|
+
slotRender: _this.$props.slotRender,
|
|
223
204
|
monthSlots: monthSlots,
|
|
224
|
-
ranges: _this.ranges,
|
|
225
205
|
rangeIndex: rangeIndex,
|
|
226
206
|
itemsPerSlot: itemsPerSlot
|
|
227
207
|
},
|
|
228
|
-
|
|
208
|
+
monthSlots: monthSlots,
|
|
229
209
|
rangeIndex: rangeIndex,
|
|
230
210
|
itemsPerSlot: itemsPerSlot,
|
|
231
211
|
onDataaction: _this.handleDataAction,
|
|
232
212
|
on: _this.v3 ? undefined : {
|
|
233
213
|
"dataaction": _this.handleDataAction
|
|
234
214
|
}
|
|
235
|
-
})]
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
215
|
+
})])
|
|
216
|
+
);
|
|
217
|
+
}, this) : // @ts-ignore function children
|
|
218
|
+
h(VerticalResourceIterator_1.VerticalResourceIterator, {
|
|
219
|
+
nested: true,
|
|
220
|
+
attrs: this.v3 ? undefined : {
|
|
221
|
+
nested: true,
|
|
222
|
+
resources: this.ks.props.resources,
|
|
223
|
+
group: this.ks.props.group,
|
|
224
|
+
more: {
|
|
225
|
+
slotRender: this.$props.slotRender,
|
|
239
226
|
monthSlots: monthSlots,
|
|
240
|
-
ranges:
|
|
241
|
-
rangeIndex: rangeIndex,
|
|
227
|
+
ranges: this.ranges,
|
|
242
228
|
itemsPerSlot: itemsPerSlot
|
|
243
|
-
},
|
|
244
|
-
ranges: _this.ranges,
|
|
245
|
-
rangeIndex: rangeIndex,
|
|
246
|
-
itemsPerSlot: itemsPerSlot,
|
|
247
|
-
onDataaction: _this.handleDataAction,
|
|
248
|
-
on: _this.v3 ? undefined : {
|
|
249
|
-
"dataaction": _this.handleDataAction
|
|
250
229
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
230
|
+
},
|
|
231
|
+
resources: this.ks.props.resources,
|
|
232
|
+
group: this.ks.props.group,
|
|
233
|
+
onDataaction: this.handleDataAction,
|
|
234
|
+
on: this.v3 ? undefined : {
|
|
235
|
+
"dataaction": this.handleDataAction
|
|
236
|
+
},
|
|
237
|
+
more: {
|
|
238
|
+
slotRender: this.$props.slotRender,
|
|
239
|
+
monthSlots: monthSlots,
|
|
240
|
+
ranges: this.ranges,
|
|
241
|
+
itemsPerSlot: itemsPerSlot
|
|
242
|
+
}
|
|
243
|
+
});
|
|
253
244
|
return (// @ts-ignore function children
|
|
254
245
|
h(BaseView_1.BaseView, {
|
|
255
246
|
props: this.$props,
|
|
@@ -9,29 +9,25 @@ var Vue = require("vue");
|
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
|
-
var inject = allVue.inject;
|
|
13
12
|
|
|
14
13
|
var SchedulerEditSlot_1 = require("../../slots/SchedulerEditSlot");
|
|
15
14
|
|
|
16
|
-
var
|
|
15
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl"); // tslint:enable:max-line-length
|
|
17
16
|
|
|
18
|
-
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
19
|
-
|
|
20
|
-
var DAY_FORMAT = {
|
|
21
|
-
skeleton: 'dd'
|
|
22
|
-
}; // tslint:enable:max-line-length
|
|
23
17
|
|
|
24
18
|
var MonthViewBodyVue2 = {
|
|
25
19
|
name: 'KendoMonthViewBody',
|
|
26
20
|
props: {
|
|
21
|
+
groupIndex: Number,
|
|
27
22
|
rangeIndex: Number,
|
|
28
23
|
itemsPerSlot: Number,
|
|
29
24
|
monthSlots: Array,
|
|
30
|
-
ranges: Array
|
|
25
|
+
ranges: Array,
|
|
26
|
+
slotRender: [String, Function, Object]
|
|
31
27
|
},
|
|
32
28
|
inject: {
|
|
33
29
|
ri: {
|
|
34
|
-
default:
|
|
30
|
+
default: {}
|
|
35
31
|
},
|
|
36
32
|
ks: {
|
|
37
33
|
default: null
|
|
@@ -60,20 +56,21 @@ var MonthViewBodyVue2 = {
|
|
|
60
56
|
var h = gh || createElement;
|
|
61
57
|
this.intl = kendo_vue_intl_1.provideIntlService(this);
|
|
62
58
|
var EditSlot = this.$props.editSlot || SchedulerEditSlot_1.SchedulerEditSlot;
|
|
59
|
+
var that = this;
|
|
60
|
+
var groupIndex = this.groupIndex !== undefined ? this.groupIndex : this.ri.groupIndex;
|
|
63
61
|
return h("div", {
|
|
64
62
|
"class": "k-scheduler-row",
|
|
65
63
|
key: this.rangeIndex
|
|
66
64
|
}, [this.monthSlots.filter(function (slot) {
|
|
67
|
-
return slot.group.index ===
|
|
65
|
+
return slot.group.index === groupIndex && slot.range.index === _this.rangeIndex;
|
|
68
66
|
}).map(function (slot, slotIndex, filtered) {
|
|
69
|
-
var _this2 = this;
|
|
70
|
-
|
|
71
67
|
return (// @ts-ignore function children
|
|
72
68
|
h(EditSlot, {
|
|
73
|
-
|
|
69
|
+
slotRender: this.$props.slotRender,
|
|
74
70
|
attrs: this.v3 ? undefined : {
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
slotRender: this.$props.slotRender,
|
|
72
|
+
viewSlot: that.$props.viewSlot,
|
|
73
|
+
form: that.$props.form,
|
|
77
74
|
index: slot.index,
|
|
78
75
|
start: slot.start,
|
|
79
76
|
end: slot.end,
|
|
@@ -83,16 +80,19 @@ var MonthViewBodyVue2 = {
|
|
|
83
80
|
group: slot.group,
|
|
84
81
|
range: slot.range,
|
|
85
82
|
isAllDay: slot.isAllDay,
|
|
83
|
+
navDay: true,
|
|
84
|
+
itemsPerSlot: that.itemsPerSlot,
|
|
86
85
|
expandable: {
|
|
87
86
|
offsetTop: 30,
|
|
88
|
-
offsetBottom:
|
|
87
|
+
offsetBottom: that.itemsPerSlot < slot.items.length ? 15 : 0
|
|
89
88
|
},
|
|
90
|
-
col:
|
|
91
|
-
row:
|
|
92
|
-
editable:
|
|
89
|
+
col: that.ks.orientation === 'horizontal' ? filtered.length * (groupIndex || 0) + slotIndex : slotIndex,
|
|
90
|
+
row: that.ks.orientation === 'horizontal' ? that.rangeIndex : that.ranges.length * (groupIndex || 0) + that.rangeIndex,
|
|
91
|
+
editable: that.$props.editable
|
|
93
92
|
},
|
|
93
|
+
viewSlot: that.$props.viewSlot,
|
|
94
94
|
key: slotIndex,
|
|
95
|
-
form:
|
|
95
|
+
form: that.$props.form,
|
|
96
96
|
index: slot.index,
|
|
97
97
|
start: slot.start,
|
|
98
98
|
end: slot.end,
|
|
@@ -102,57 +102,41 @@ var MonthViewBodyVue2 = {
|
|
|
102
102
|
group: slot.group,
|
|
103
103
|
range: slot.range,
|
|
104
104
|
isAllDay: slot.isAllDay,
|
|
105
|
+
navDay: true,
|
|
106
|
+
itemsPerSlot: that.itemsPerSlot,
|
|
105
107
|
expandable: {
|
|
106
108
|
offsetTop: 30,
|
|
107
|
-
offsetBottom:
|
|
109
|
+
offsetBottom: that.itemsPerSlot < slot.items.length ? 15 : 0
|
|
108
110
|
},
|
|
109
|
-
onDataaction:
|
|
111
|
+
onDataaction: that.handleDataAction,
|
|
110
112
|
on: this.v3 ? undefined : {
|
|
111
|
-
"dataaction":
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
row: this.ks.orientation === 'horizontal' ? this.rangeIndex : this.ranges.length * (this.ri.groupIndex || 0) + this.rangeIndex,
|
|
115
|
-
editable: this.$props.editable
|
|
116
|
-
}, this.v3 ? function () {
|
|
117
|
-
return [h("div", [h("span", {
|
|
118
|
-
"class": "k-link k-nav-day"
|
|
119
|
-
}, [_this2.intl.formatDate(new Date(slot.end.getTime() - (slot.end.getTime() - slot.start.getTime()) / 2), DAY_FORMAT)]), _this2.itemsPerSlot < slot.items.length && h(ShowMoreItemsButton_1.ShowMoreItemsButton, {
|
|
120
|
-
currentSlot: slot,
|
|
121
|
-
attrs: _this2.v3 ? undefined : {
|
|
122
|
-
currentSlot: slot
|
|
123
|
-
},
|
|
124
|
-
onClick: _this2.handleShowMoreItemsClick,
|
|
125
|
-
on: _this2.v3 ? undefined : {
|
|
126
|
-
"click": _this2.handleShowMoreItemsClick
|
|
113
|
+
"dataaction": that.handleDataAction,
|
|
114
|
+
"showmoreitems": function showmoreitems(e) {
|
|
115
|
+
return that.handleShowMoreItemsClick(e, slot);
|
|
127
116
|
}
|
|
128
|
-
})])];
|
|
129
|
-
} : [h("div", [h("span", {
|
|
130
|
-
"class": "k-link k-nav-day"
|
|
131
|
-
}, [_this2.intl.formatDate(new Date(slot.end.getTime() - (slot.end.getTime() - slot.start.getTime()) / 2), DAY_FORMAT)]), _this2.itemsPerSlot < slot.items.length && h(ShowMoreItemsButton_1.ShowMoreItemsButton, {
|
|
132
|
-
currentSlot: slot,
|
|
133
|
-
attrs: _this2.v3 ? undefined : {
|
|
134
|
-
currentSlot: slot
|
|
135
117
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
118
|
+
col: that.ks.orientation === 'horizontal' ? filtered.length * (groupIndex || 0) + slotIndex : slotIndex,
|
|
119
|
+
row: that.ks.orientation === 'horizontal' ? that.rangeIndex : that.ranges.length * (groupIndex || 0) + that.rangeIndex,
|
|
120
|
+
editable: that.$props.editable,
|
|
121
|
+
onShowmoreitems: function showmoreitems(e) {
|
|
122
|
+
return that.handleShowMoreItemsClick(e, slot);
|
|
139
123
|
}
|
|
140
|
-
})
|
|
124
|
+
})
|
|
141
125
|
);
|
|
142
126
|
}, this)]);
|
|
143
127
|
},
|
|
144
128
|
methods: {
|
|
145
|
-
handleShowMoreItemsClick: function handleShowMoreItemsClick(event) {
|
|
129
|
+
handleShowMoreItemsClick: function handleShowMoreItemsClick(event, slot) {
|
|
146
130
|
var newView = this.ks.views.find(function (vw) {
|
|
147
131
|
return vw.name === 'day';
|
|
148
132
|
});
|
|
149
133
|
|
|
150
|
-
if (!this.setActiveViewName || !newView || !newView.name || !
|
|
134
|
+
if (!this.setActiveViewName || !newView || !newView.name || !slot) {
|
|
151
135
|
return;
|
|
152
136
|
}
|
|
153
137
|
|
|
154
138
|
this.setActiveViewName(newView.name, event);
|
|
155
|
-
this.setActiveDate(
|
|
139
|
+
this.setActiveDate(slot.start, event);
|
|
156
140
|
},
|
|
157
141
|
handleDataAction: function handleDataAction(action) {
|
|
158
142
|
this.$emit('dataaction', action);
|
|
@@ -114,9 +114,9 @@ export interface MultiDayTimelineViewProps extends SchedulerViewProps {
|
|
|
114
114
|
*/
|
|
115
115
|
editItem?: any;
|
|
116
116
|
/**
|
|
117
|
-
* Overrides the `
|
|
117
|
+
* Overrides the `slotRender` prop of the Scheduler for the specified view only.
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
slotRender?: any;
|
|
120
120
|
/**
|
|
121
121
|
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
122
122
|
*/
|
|
@@ -131,7 +131,9 @@ var MultiDayTimelineViewVue2 = {
|
|
|
131
131
|
columnWidth: {
|
|
132
132
|
type: Number,
|
|
133
133
|
default: 100
|
|
134
|
-
}
|
|
134
|
+
},
|
|
135
|
+
slotRender: [String, Function, Object],
|
|
136
|
+
item: [String, Function, Object]
|
|
135
137
|
},
|
|
136
138
|
inject: {
|
|
137
139
|
ks: {
|
|
@@ -239,12 +241,7 @@ var MultiDayTimelineViewVue2 = {
|
|
|
239
241
|
render: function render(createElement) {
|
|
240
242
|
var _this2 = this;
|
|
241
243
|
|
|
242
|
-
var h = gh || createElement;
|
|
243
|
-
// group,
|
|
244
|
-
// timezone,
|
|
245
|
-
// resources: propResources
|
|
246
|
-
// } = useSchedulerPropsContext();
|
|
247
|
-
|
|
244
|
+
var h = gh || createElement;
|
|
248
245
|
var intl = kendo_vue_intl_1.provideIntlService(this);
|
|
249
246
|
var showWorkHours = this.$props.showWorkHours;
|
|
250
247
|
var slotDivisions = this.$props.slotDivisions;
|
|
@@ -361,13 +358,15 @@ var MultiDayTimelineViewVue2 = {
|
|
|
361
358
|
}, _this2.v3 ? function () {
|
|
362
359
|
return [// @ts-ignore function children
|
|
363
360
|
h(TimelineViewBody_1.TimelineViewBody, {
|
|
364
|
-
|
|
361
|
+
slotRender: _this2.$props.slotRender,
|
|
365
362
|
attrs: _this2.v3 ? undefined : {
|
|
363
|
+
slotRender: _this2.$props.slotRender,
|
|
366
364
|
ranges: _this2.ranges,
|
|
367
365
|
workDayStart: workDayStart,
|
|
368
366
|
workDayEnd: workDayEnd,
|
|
369
367
|
timelineSlots: timelineSlots
|
|
370
368
|
},
|
|
369
|
+
ranges: _this2.ranges,
|
|
371
370
|
workDayStart: workDayStart,
|
|
372
371
|
workDayEnd: workDayEnd,
|
|
373
372
|
timelineSlots: timelineSlots,
|
|
@@ -377,13 +376,15 @@ var MultiDayTimelineViewVue2 = {
|
|
|
377
376
|
}
|
|
378
377
|
})];
|
|
379
378
|
} : [h(TimelineViewBody_1.TimelineViewBody, {
|
|
380
|
-
|
|
379
|
+
slotRender: _this2.$props.slotRender,
|
|
381
380
|
attrs: _this2.v3 ? undefined : {
|
|
381
|
+
slotRender: _this2.$props.slotRender,
|
|
382
382
|
ranges: _this2.ranges,
|
|
383
383
|
workDayStart: workDayStart,
|
|
384
384
|
workDayEnd: workDayEnd,
|
|
385
385
|
timelineSlots: timelineSlots
|
|
386
386
|
},
|
|
387
|
+
ranges: _this2.ranges,
|
|
387
388
|
workDayStart: workDayStart,
|
|
388
389
|
workDayEnd: workDayEnd,
|
|
389
390
|
timelineSlots: timelineSlots,
|
|
@@ -391,34 +392,37 @@ var MultiDayTimelineViewVue2 = {
|
|
|
391
392
|
on: _this2.v3 ? undefined : {
|
|
392
393
|
"dataaction": _this2.handleDataAction
|
|
393
394
|
}
|
|
394
|
-
})]) :
|
|
395
|
+
})]) : // @ts-ignore function children
|
|
396
|
+
h(VerticalResourceIterator_1.VerticalResourceIterator, {
|
|
395
397
|
nested: true,
|
|
396
398
|
attrs: _this2.v3 ? undefined : {
|
|
397
399
|
nested: true,
|
|
398
400
|
wrapGroup: true,
|
|
399
401
|
group: _this2.ks.props.group,
|
|
400
|
-
resources: _this2.ks.props.resources
|
|
402
|
+
resources: _this2.ks.props.resources,
|
|
403
|
+
more: {
|
|
404
|
+
ranges: _this2.ranges,
|
|
405
|
+
workDayStart: workDayStart,
|
|
406
|
+
workDayEnd: workDayEnd,
|
|
407
|
+
timelineSlots: timelineSlots,
|
|
408
|
+
slotRender: _this2.$props.slotRender
|
|
409
|
+
}
|
|
401
410
|
},
|
|
402
411
|
wrapGroup: true,
|
|
403
412
|
group: _this2.ks.props.group,
|
|
404
|
-
resources: _this2.ks.props.resources
|
|
405
|
-
}, [// @ts-ignore function children
|
|
406
|
-
h(TimelineViewBody_1.TimelineViewBody, {
|
|
407
|
-
range: _this2.range,
|
|
408
|
-
attrs: _this2.v3 ? undefined : {
|
|
409
|
-
range: _this2.range,
|
|
410
|
-
workDayStart: workDayStart,
|
|
411
|
-
workDayEnd: workDayEnd,
|
|
412
|
-
timelineSlots: timelineSlots
|
|
413
|
-
},
|
|
414
|
-
workDayStart: workDayStart,
|
|
415
|
-
workDayEnd: workDayEnd,
|
|
416
|
-
timelineSlots: timelineSlots,
|
|
413
|
+
resources: _this2.ks.props.resources,
|
|
417
414
|
onDataaction: _this2.handleDataAction,
|
|
418
415
|
on: _this2.v3 ? undefined : {
|
|
419
416
|
"dataaction": _this2.handleDataAction
|
|
417
|
+
},
|
|
418
|
+
more: {
|
|
419
|
+
ranges: _this2.ranges,
|
|
420
|
+
workDayStart: workDayStart,
|
|
421
|
+
workDayEnd: workDayEnd,
|
|
422
|
+
timelineSlots: timelineSlots,
|
|
423
|
+
slotRender: _this2.$props.slotRender
|
|
420
424
|
}
|
|
421
|
-
})
|
|
425
|
+
}), items.sort(utils_1.orderSort).map(function (item) {
|
|
422
426
|
return h(SchedulerEditItem_1.SchedulerEditItem, {
|
|
423
427
|
key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
|
|
424
428
|
uid: item.uid,
|
|
@@ -539,13 +543,15 @@ var MultiDayTimelineViewVue2 = {
|
|
|
539
543
|
rowContent: TimelineViewAllEventsRowContent_1.TimelineViewAllEventsRowContent
|
|
540
544
|
}, _this2.v3 ? function () {
|
|
541
545
|
return [h(TimelineViewBody_1.TimelineViewBody, {
|
|
542
|
-
|
|
546
|
+
slotRender: _this2.$props.slotRender,
|
|
543
547
|
attrs: _this2.v3 ? undefined : {
|
|
548
|
+
slotRender: _this2.$props.slotRender,
|
|
544
549
|
ranges: _this2.ranges,
|
|
545
550
|
workDayStart: workDayStart,
|
|
546
551
|
workDayEnd: workDayEnd,
|
|
547
552
|
timelineSlots: timelineSlots
|
|
548
553
|
},
|
|
554
|
+
ranges: _this2.ranges,
|
|
549
555
|
workDayStart: workDayStart,
|
|
550
556
|
workDayEnd: workDayEnd,
|
|
551
557
|
timelineSlots: timelineSlots,
|
|
@@ -555,13 +561,15 @@ var MultiDayTimelineViewVue2 = {
|
|
|
555
561
|
}
|
|
556
562
|
})];
|
|
557
563
|
} : [h(TimelineViewBody_1.TimelineViewBody, {
|
|
558
|
-
|
|
564
|
+
slotRender: _this2.$props.slotRender,
|
|
559
565
|
attrs: _this2.v3 ? undefined : {
|
|
566
|
+
slotRender: _this2.$props.slotRender,
|
|
560
567
|
ranges: _this2.ranges,
|
|
561
568
|
workDayStart: workDayStart,
|
|
562
569
|
workDayEnd: workDayEnd,
|
|
563
570
|
timelineSlots: timelineSlots
|
|
564
571
|
},
|
|
572
|
+
ranges: _this2.ranges,
|
|
565
573
|
workDayStart: workDayStart,
|
|
566
574
|
workDayEnd: workDayEnd,
|
|
567
575
|
timelineSlots: timelineSlots,
|
|
@@ -575,27 +583,30 @@ var MultiDayTimelineViewVue2 = {
|
|
|
575
583
|
nested: true,
|
|
576
584
|
wrapGroup: true,
|
|
577
585
|
group: _this2.ks.props.group,
|
|
578
|
-
resources: _this2.ks.props.resources
|
|
586
|
+
resources: _this2.ks.props.resources,
|
|
587
|
+
more: {
|
|
588
|
+
ranges: _this2.ranges,
|
|
589
|
+
workDayStart: workDayStart,
|
|
590
|
+
workDayEnd: workDayEnd,
|
|
591
|
+
timelineSlots: timelineSlots,
|
|
592
|
+
slotRender: _this2.$props.slotRender
|
|
593
|
+
}
|
|
579
594
|
},
|
|
580
595
|
wrapGroup: true,
|
|
581
596
|
group: _this2.ks.props.group,
|
|
582
|
-
resources: _this2.ks.props.resources
|
|
583
|
-
}, [h(TimelineViewBody_1.TimelineViewBody, {
|
|
584
|
-
range: _this2.range,
|
|
585
|
-
attrs: _this2.v3 ? undefined : {
|
|
586
|
-
range: _this2.range,
|
|
587
|
-
workDayStart: workDayStart,
|
|
588
|
-
workDayEnd: workDayEnd,
|
|
589
|
-
timelineSlots: timelineSlots
|
|
590
|
-
},
|
|
591
|
-
workDayStart: workDayStart,
|
|
592
|
-
workDayEnd: workDayEnd,
|
|
593
|
-
timelineSlots: timelineSlots,
|
|
597
|
+
resources: _this2.ks.props.resources,
|
|
594
598
|
onDataaction: _this2.handleDataAction,
|
|
595
599
|
on: _this2.v3 ? undefined : {
|
|
596
600
|
"dataaction": _this2.handleDataAction
|
|
601
|
+
},
|
|
602
|
+
more: {
|
|
603
|
+
ranges: _this2.ranges,
|
|
604
|
+
workDayStart: workDayStart,
|
|
605
|
+
workDayEnd: workDayEnd,
|
|
606
|
+
timelineSlots: timelineSlots,
|
|
607
|
+
slotRender: _this2.$props.slotRender
|
|
597
608
|
}
|
|
598
|
-
})
|
|
609
|
+
}), items.sort(utils_1.orderSort).map(function (item) {
|
|
599
610
|
return h(SchedulerEditItem_1.SchedulerEditItem, {
|
|
600
611
|
key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
|
|
601
612
|
uid: item.uid,
|
|
@@ -97,7 +97,9 @@ var TimelineViewVue2 = {
|
|
|
97
97
|
columnWidth: {
|
|
98
98
|
type: Number,
|
|
99
99
|
default: 100
|
|
100
|
-
}
|
|
100
|
+
},
|
|
101
|
+
slotRender: [String, Function, Object],
|
|
102
|
+
item: [String, Function, Object]
|
|
101
103
|
},
|
|
102
104
|
// @ts-ignore
|
|
103
105
|
setup: !gh ? undefined : function () {
|
|
@@ -129,7 +131,9 @@ var TimelineViewVue2 = {
|
|
|
129
131
|
workDayStart: this.$props.workDayStart,
|
|
130
132
|
workDayEnd: this.$props.workDayEnd,
|
|
131
133
|
workWeekStart: this.$props.workWeekStart,
|
|
132
|
-
workWeekEnd: this.$props.workWeekEnd
|
|
134
|
+
workWeekEnd: this.$props.workWeekEnd,
|
|
135
|
+
slotRender: this.$props.slotRender,
|
|
136
|
+
item: this.$props.item
|
|
133
137
|
},
|
|
134
138
|
dateRange: this.$props.dateRange,
|
|
135
139
|
step: this.$props.step,
|
|
@@ -147,7 +151,9 @@ var TimelineViewVue2 = {
|
|
|
147
151
|
workDayStart: this.$props.workDayStart,
|
|
148
152
|
workDayEnd: this.$props.workDayEnd,
|
|
149
153
|
workWeekStart: this.$props.workWeekStart,
|
|
150
|
-
workWeekEnd: this.$props.workWeekEnd
|
|
154
|
+
workWeekEnd: this.$props.workWeekEnd,
|
|
155
|
+
slotRender: this.$props.slotRender,
|
|
156
|
+
item: this.$props.item
|
|
151
157
|
});
|
|
152
158
|
}
|
|
153
159
|
};
|
|
@@ -19,10 +19,12 @@ var utils_1 = require("../../utils"); // tslint:enable:max-line-length
|
|
|
19
19
|
var TimelineViewBodyVue2 = {
|
|
20
20
|
name: 'KendoTimelineViewBody',
|
|
21
21
|
props: {
|
|
22
|
+
groupIndex: Number,
|
|
22
23
|
timelineSlots: Array,
|
|
23
24
|
ranges: Array,
|
|
24
25
|
workDayStart: Date,
|
|
25
|
-
workDayEnd: Date
|
|
26
|
+
workDayEnd: Date,
|
|
27
|
+
slotRender: [String, Function, Object]
|
|
26
28
|
},
|
|
27
29
|
inject: {
|
|
28
30
|
ri: {
|
|
@@ -45,7 +47,7 @@ var TimelineViewBodyVue2 = {
|
|
|
45
47
|
var that = this;
|
|
46
48
|
var orientation = this.ks.orientation;
|
|
47
49
|
var ranges = this.ranges;
|
|
48
|
-
var groupIndex = this.ri.groupIndex;
|
|
50
|
+
var groupIndex = this.groupIndex !== undefined ? this.groupIndex : this.ri.groupIndex;
|
|
49
51
|
var editable = this.$props.editable;
|
|
50
52
|
return h("div", {
|
|
51
53
|
"class": "k-scheduler-row"
|
|
@@ -59,6 +61,7 @@ var TimelineViewBodyVue2 = {
|
|
|
59
61
|
viewSlot: that.$props.viewSlot,
|
|
60
62
|
attrs: this.v3 ? undefined : {
|
|
61
63
|
viewSlot: that.$props.viewSlot,
|
|
64
|
+
slotRender: that.$props.slotRender,
|
|
62
65
|
index: slot.index,
|
|
63
66
|
start: slot.start,
|
|
64
67
|
end: slot.end,
|
|
@@ -75,6 +78,7 @@ var TimelineViewBodyVue2 = {
|
|
|
75
78
|
expandable: true,
|
|
76
79
|
editable: editable
|
|
77
80
|
},
|
|
81
|
+
slotRender: that.$props.slotRender,
|
|
78
82
|
index: slot.index,
|
|
79
83
|
start: slot.start,
|
|
80
84
|
end: slot.end,
|
|
@@ -94,7 +94,9 @@ var WeekViewVue2 = {
|
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: true
|
|
96
96
|
},
|
|
97
|
-
timeHeaderCell: String
|
|
97
|
+
timeHeaderCell: String,
|
|
98
|
+
slotRender: [String, Function, Object],
|
|
99
|
+
item: [String, Function, Object]
|
|
98
100
|
},
|
|
99
101
|
inject: {
|
|
100
102
|
kendoLocalizationService: {
|
|
@@ -134,7 +136,9 @@ var WeekViewVue2 = {
|
|
|
134
136
|
workWeekStart: this.$props.workWeekStart,
|
|
135
137
|
workWeekEnd: this.$props.workWeekEnd,
|
|
136
138
|
defaultShowWorkHours: this.$props.defaultShowWorkHours,
|
|
137
|
-
timeHeaderCell: this.$props.timeHeaderCell
|
|
139
|
+
timeHeaderCell: this.$props.timeHeaderCell,
|
|
140
|
+
slotRender: this.$props.slotRender,
|
|
141
|
+
item: this.$props.item
|
|
138
142
|
},
|
|
139
143
|
dateRange: this.$props.dateRange,
|
|
140
144
|
numberOfDays: this.$props.numberOfDays,
|
|
@@ -153,7 +157,9 @@ var WeekViewVue2 = {
|
|
|
153
157
|
workWeekStart: this.$props.workWeekStart,
|
|
154
158
|
workWeekEnd: this.$props.workWeekEnd,
|
|
155
159
|
defaultShowWorkHours: this.$props.defaultShowWorkHours,
|
|
156
|
-
timeHeaderCell: this.$props.timeHeaderCell
|
|
160
|
+
timeHeaderCell: this.$props.timeHeaderCell,
|
|
161
|
+
slotRender: this.$props.slotRender,
|
|
162
|
+
item: this.$props.item
|
|
157
163
|
});
|
|
158
164
|
}
|
|
159
165
|
};
|