@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.
Files changed (110) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/Scheduler.d.ts +1 -1
  3. package/dist/es/Scheduler.js +104 -682
  4. package/dist/es/components/SchedulerForm.js +4 -40
  5. package/dist/es/components/ShowMoreItemsButton.js +1 -2
  6. package/dist/es/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
  7. package/dist/es/components/footer/bussiness-hours/BusinessHours.js +88 -0
  8. package/dist/es/components/header/navigation/NavigationDatePicker.js +2 -3
  9. package/dist/es/components/header/navigation/SchedulerNavigation.js +319 -3
  10. package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -3
  11. package/dist/es/components/header/view-selector/ViewSelectorItem.js +5 -7
  12. package/dist/es/components/header/view-selector/ViewSelectorList.js +19 -13
  13. package/dist/es/context/SchedulerResourceIteratorContext.js +2 -2
  14. package/dist/es/items/SchedulerEditItem.js +3 -1
  15. package/dist/es/items/SchedulerItem.d.ts +2 -0
  16. package/dist/es/items/SchedulerItem.js +11 -2
  17. package/dist/es/items/SchedulerViewItem.js +80 -92
  18. package/dist/es/main.d.ts +5 -1
  19. package/dist/es/main.js +5 -11
  20. package/dist/es/package-metadata.js +1 -1
  21. package/dist/es/slots/SchedulerEditSlot.js +58 -18
  22. package/dist/es/slots/SchedulerSlot.d.ts +4 -0
  23. package/dist/es/slots/SchedulerSlot.js +19 -3
  24. package/dist/es/slots/SchedulerViewSlot.d.ts +1 -1
  25. package/dist/es/slots/SchedulerViewSlot.js +58 -30
  26. package/dist/es/tasks/SchedulerEditTask.js +56 -49
  27. package/dist/es/tasks/SchedulerTask.js +3 -1
  28. package/dist/es/tasks/SchedulerViewTask.js +17 -22
  29. package/dist/es/views/agenda/AgendaView.js +18 -9
  30. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  31. package/dist/es/views/agenda/AgendaViewBody.js +2 -1
  32. package/dist/es/views/common/VerticalResourceIterator.d.ts +1 -0
  33. package/dist/es/views/common/VerticalResourceIterator.js +104 -17
  34. package/dist/es/views/day/DayView.js +15 -3
  35. package/dist/es/views/day/DayViewAllDaySlots.d.ts +2 -0
  36. package/dist/es/views/day/DayViewAllDaySlots.js +12 -5
  37. package/dist/es/views/day/DayViewMiddleRow.js +12 -9
  38. package/dist/es/views/day/DayViewVerticalRow.d.ts +41 -0
  39. package/dist/es/views/day/DayViewVerticalRow.js +101 -0
  40. package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
  41. package/dist/es/views/day/DayViewVerticalSlotsRow.js +132 -0
  42. package/dist/es/views/day/MultiDayView.d.ts +1 -1
  43. package/dist/es/views/day/MultiDayView.js +183 -288
  44. package/dist/es/views/month/MonthView.d.ts +1 -1
  45. package/dist/es/views/month/MonthView.js +56 -65
  46. package/dist/es/views/month/MonthViewBody.d.ts +2 -0
  47. package/dist/es/views/month/MonthViewBody.js +36 -51
  48. package/dist/es/views/time/MultiDayTimelineView.d.ts +2 -2
  49. package/dist/es/views/time/MultiDayTimelineView.js +52 -41
  50. package/dist/es/views/time/TimelineView.js +9 -3
  51. package/dist/es/views/time/TimelineViewBody.d.ts +2 -0
  52. package/dist/es/views/time/TimelineViewBody.js +6 -2
  53. package/dist/es/views/week/WeekView.js +9 -3
  54. package/dist/es/views/week/WorkWeekView.js +9 -3
  55. package/dist/npm/Scheduler.d.ts +1 -1
  56. package/dist/npm/Scheduler.js +102 -682
  57. package/dist/npm/components/SchedulerForm.js +4 -40
  58. package/dist/npm/components/ShowMoreItemsButton.js +1 -2
  59. package/dist/npm/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
  60. package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +102 -0
  61. package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -3
  62. package/dist/npm/components/header/navigation/SchedulerNavigation.js +323 -4
  63. package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -3
  64. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +6 -7
  65. package/dist/npm/components/header/view-selector/ViewSelectorList.js +21 -13
  66. package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -2
  67. package/dist/npm/items/SchedulerEditItem.js +3 -1
  68. package/dist/npm/items/SchedulerItem.d.ts +2 -0
  69. package/dist/npm/items/SchedulerItem.js +11 -2
  70. package/dist/npm/items/SchedulerViewItem.js +81 -92
  71. package/dist/npm/main.d.ts +5 -1
  72. package/dist/npm/main.js +9 -11
  73. package/dist/npm/package-metadata.js +1 -1
  74. package/dist/npm/slots/SchedulerEditSlot.js +59 -18
  75. package/dist/npm/slots/SchedulerSlot.d.ts +4 -0
  76. package/dist/npm/slots/SchedulerSlot.js +20 -3
  77. package/dist/npm/slots/SchedulerViewSlot.d.ts +1 -1
  78. package/dist/npm/slots/SchedulerViewSlot.js +57 -29
  79. package/dist/npm/tasks/SchedulerEditTask.js +57 -49
  80. package/dist/npm/tasks/SchedulerTask.js +4 -1
  81. package/dist/npm/tasks/SchedulerViewTask.js +17 -21
  82. package/dist/npm/views/agenda/AgendaView.js +18 -9
  83. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  84. package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
  85. package/dist/npm/views/common/VerticalResourceIterator.d.ts +1 -0
  86. package/dist/npm/views/common/VerticalResourceIterator.js +107 -17
  87. package/dist/npm/views/day/DayView.js +15 -3
  88. package/dist/npm/views/day/DayViewAllDaySlots.d.ts +2 -0
  89. package/dist/npm/views/day/DayViewAllDaySlots.js +12 -5
  90. package/dist/npm/views/day/DayViewMiddleRow.js +12 -9
  91. package/dist/npm/views/day/DayViewVerticalRow.d.ts +41 -0
  92. package/dist/npm/views/day/DayViewVerticalRow.js +113 -0
  93. package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
  94. package/dist/npm/views/day/DayViewVerticalSlotsRow.js +145 -0
  95. package/dist/npm/views/day/MultiDayView.d.ts +1 -1
  96. package/dist/npm/views/day/MultiDayView.js +184 -289
  97. package/dist/npm/views/month/MonthView.d.ts +1 -1
  98. package/dist/npm/views/month/MonthView.js +56 -65
  99. package/dist/npm/views/month/MonthViewBody.d.ts +2 -0
  100. package/dist/npm/views/month/MonthViewBody.js +36 -52
  101. package/dist/npm/views/time/MultiDayTimelineView.d.ts +2 -2
  102. package/dist/npm/views/time/MultiDayTimelineView.js +52 -41
  103. package/dist/npm/views/time/TimelineView.js +9 -3
  104. package/dist/npm/views/time/TimelineViewBody.d.ts +2 -0
  105. package/dist/npm/views/time/TimelineViewBody.js +6 -2
  106. package/dist/npm/views/week/WeekView.js +9 -3
  107. package/dist/npm/views/week/WorkWeekView.js +9 -3
  108. package/package.json +12 -12
  109. package/dist/es/components/footer/bussiness-hours/BussinessHours.js +0 -33
  110. 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: null
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 this.ks.orientation === 'horizontal' ? // @ts-ignore function children
174
- h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
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
- group: this.ks.props.group
181
- }, this.v3 ? function () {
182
- return [h(MonthViewBody_1.MonthViewBody, {
183
- monthSlots: monthSlots,
184
- attrs: _this.v3 ? undefined : {
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
- rangeIndex: rangeIndex,
190
- itemsPerSlot: itemsPerSlot,
191
- onDataaction: _this.handleDataAction,
192
- on: _this.v3 ? undefined : {
193
- "dataaction": _this.handleDataAction
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
- ranges: _this.ranges,
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
- } : [h(MonthViewBody_1.MonthViewBody, {
237
- monthSlots: monthSlots,
238
- attrs: _this.v3 ? undefined : {
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: _this.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
- }, this);
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,
@@ -5,10 +5,12 @@ declare type DefaultMethods<V> = {
5
5
  };
6
6
  /** @hidden */
7
7
  export interface MonthViewBodyProps {
8
+ groupIndex?: number;
8
9
  rangeIndex: number;
9
10
  itemsPerSlot: number;
10
11
  monthSlots: any[];
11
12
  ranges: any[];
13
+ slotRender: any;
12
14
  }
13
15
  /**
14
16
  * @hidden
@@ -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 ShowMoreItemsButton_1 = require("../../components/ShowMoreItemsButton");
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: null
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 === _this.ri.groupIndex && slot.range.index === _this.rangeIndex;
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
- viewSlot: this.$props.viewSlot,
69
+ slotRender: this.$props.slotRender,
74
70
  attrs: this.v3 ? undefined : {
75
- viewSlot: this.$props.viewSlot,
76
- form: this.$props.form,
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: this.itemsPerSlot < slot.items.length ? 15 : 0
87
+ offsetBottom: that.itemsPerSlot < slot.items.length ? 15 : 0
89
88
  },
90
- col: this.ks.orientation === 'horizontal' ? filtered.length * (this.ri.groupIndex || 0) + slotIndex : slotIndex,
91
- row: this.ks.orientation === 'horizontal' ? this.rangeIndex : this.ranges.length * (this.ri.groupIndex || 0) + this.rangeIndex,
92
- editable: this.$props.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: this.$props.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: this.itemsPerSlot < slot.items.length ? 15 : 0
109
+ offsetBottom: that.itemsPerSlot < slot.items.length ? 15 : 0
108
110
  },
109
- onDataaction: this.handleDataAction,
111
+ onDataaction: that.handleDataAction,
110
112
  on: this.v3 ? undefined : {
111
- "dataaction": this.handleDataAction
112
- },
113
- col: this.ks.orientation === 'horizontal' ? filtered.length * (this.ri.groupIndex || 0) + slotIndex : slotIndex,
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
- onClick: _this2.handleShowMoreItemsClick,
137
- on: _this2.v3 ? undefined : {
138
- "click": _this2.handleShowMoreItemsClick
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 || !event.target.slot) {
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(event.target.slot.start, event);
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 `slot` prop of the Scheduler for the specified view only.
117
+ * Overrides the `slotRender` prop of the Scheduler for the specified view only.
118
118
  */
119
- slot?: any;
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; // const {
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
- ranges: _this2.ranges,
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
- ranges: _this2.ranges,
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
- })]) : h(VerticalResourceIterator_1.VerticalResourceIterator, {
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
- })]), items.sort(utils_1.orderSort).map(function (item) {
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
- ranges: _this2.ranges,
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
- ranges: _this2.ranges,
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
- })]), items.sort(utils_1.orderSort).map(function (item) {
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
  };
@@ -5,10 +5,12 @@ declare type DefaultMethods<V> = {
5
5
  };
6
6
  /** @hidden */
7
7
  export interface TimelineViewBodyProps {
8
+ groupIndex: number;
8
9
  timelineSlots: any[];
9
10
  ranges: any[];
10
11
  workDayStart: any;
11
12
  workDayEnd: any;
13
+ slotRender: any;
12
14
  }
13
15
  /**
14
16
  * @hidden
@@ -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
  };