@progress/kendo-vue-scheduler 3.1.3 → 3.1.5-dev.202204110939

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 (81) hide show
  1. package/NOTICE.txt +49 -6
  2. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  3. package/dist/es/components/SchedulerForm.js +6 -0
  4. package/dist/es/components/SchedulerOccurrenceDialog.js +52 -7
  5. package/dist/es/components/SchedulerRemoveDialog.js +52 -7
  6. package/dist/es/editors/ResourceEditor.js +13 -11
  7. package/dist/es/editors/SchedulerFormEditor.js +11 -10
  8. package/dist/es/editors/ZonedDateTime.d.ts +1 -0
  9. package/dist/es/editors/ZonedDateTime.js +5 -2
  10. package/dist/es/items/SchedulerEditItem.js +518 -231
  11. package/dist/es/items/SchedulerItem.js +104 -95
  12. package/dist/es/items/SchedulerItemContent.js +4 -2
  13. package/dist/es/items/SchedulerViewItem.js +137 -11
  14. package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
  15. package/dist/es/items/hooks/use-drag-item.js +228 -153
  16. package/dist/es/items/hooks/use-series.d.ts +1 -0
  17. package/dist/es/items/hooks/use-series.js +1 -2
  18. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  19. package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
  20. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  21. package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
  22. package/dist/es/package-metadata.js +1 -1
  23. package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
  24. package/dist/es/recurrence/RecurrenceEditor.js +5 -0
  25. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
  26. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  27. package/dist/es/recurrence/common.js +2 -1
  28. package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
  29. package/dist/es/tasks/SchedulerEditTask.js +118 -35
  30. package/dist/es/tasks/SchedulerTask.js +3 -2
  31. package/dist/es/tasks/SchedulerViewTask.js +15 -3
  32. package/dist/es/views/agenda/AgendaView.js +21 -9
  33. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  34. package/dist/es/views/agenda/AgendaViewBody.js +6 -1
  35. package/dist/es/views/common/SchedulerDrag.js +62 -11
  36. package/dist/es/views/day/DayView.js +4 -0
  37. package/dist/es/views/month/MonthView.js +5 -1
  38. package/dist/es/views/time/MultiDayTimelineView.js +28 -9
  39. package/dist/es/views/time/TimelineView.js +4 -0
  40. package/dist/es/views/week/WeekView.js +12 -2
  41. package/dist/es/views/week/WorkWeekView.js +12 -2
  42. package/dist/npm/components/SchedulerForm.js +6 -0
  43. package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
  44. package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
  45. package/dist/npm/editors/ResourceEditor.js +12 -10
  46. package/dist/npm/editors/SchedulerFormEditor.js +11 -11
  47. package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
  48. package/dist/npm/editors/ZonedDateTime.js +4 -1
  49. package/dist/npm/items/SchedulerEditItem.js +517 -224
  50. package/dist/npm/items/SchedulerItem.js +104 -95
  51. package/dist/npm/items/SchedulerItemContent.js +4 -2
  52. package/dist/npm/items/SchedulerViewItem.js +137 -11
  53. package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
  54. package/dist/npm/items/hooks/use-drag-item.js +231 -153
  55. package/dist/npm/items/hooks/use-series.d.ts +1 -0
  56. package/dist/npm/items/hooks/use-series.js +2 -2
  57. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  58. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
  59. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  60. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
  61. package/dist/npm/package-metadata.js +1 -1
  62. package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
  63. package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
  64. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
  65. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  66. package/dist/npm/recurrence/common.js +2 -1
  67. package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
  68. package/dist/npm/tasks/SchedulerEditTask.js +120 -35
  69. package/dist/npm/tasks/SchedulerTask.js +3 -2
  70. package/dist/npm/tasks/SchedulerViewTask.js +15 -3
  71. package/dist/npm/views/agenda/AgendaView.js +21 -9
  72. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  73. package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
  74. package/dist/npm/views/common/SchedulerDrag.js +62 -11
  75. package/dist/npm/views/day/DayView.js +4 -0
  76. package/dist/npm/views/month/MonthView.js +5 -1
  77. package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
  78. package/dist/npm/views/time/TimelineView.js +4 -0
  79. package/dist/npm/views/week/WeekView.js +12 -2
  80. package/dist/npm/views/week/WorkWeekView.js +12 -2
  81. package/package.json +12 -12
@@ -32,6 +32,10 @@ var utils_1 = require("../utils");
32
32
 
33
33
  var Scheduler_1 = require("../Scheduler");
34
34
 
35
+ var SchedulerRemoveDialog_1 = require("../components/SchedulerRemoveDialog");
36
+
37
+ var SchedulerOccurrenceDialog_1 = require("../components/SchedulerOccurrenceDialog");
38
+
35
39
  var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
36
40
 
37
41
 
@@ -40,11 +44,21 @@ var SchedulerEditTaskVue2 = {
40
44
  props: {
41
45
  viewTask: [String, Function, Object],
42
46
  removeDialog: [String, Function, Object],
43
- showRemoveDialog: Boolean,
44
47
  removeItem: [String, Function, Object],
45
48
  occurrenceDialog: [String, Function, Object],
46
49
  task: [String, Function, Object],
47
- showOccurrenceDialog: Boolean,
50
+ showOccurrenceDialog: {
51
+ type: Boolean,
52
+ default: undefined
53
+ },
54
+ showRemoveDialog: {
55
+ type: Boolean,
56
+ default: undefined
57
+ },
58
+ series: {
59
+ type: Boolean,
60
+ default: undefined
61
+ },
48
62
  refTo: [Function, Object],
49
63
  id: String,
50
64
  tabIndex: Number,
@@ -77,12 +91,20 @@ var SchedulerEditTaskVue2 = {
77
91
  },
78
92
  created: function created() {// this.viewTask = null;
79
93
  },
94
+ inject: {
95
+ bv: {
96
+ default: null
97
+ },
98
+ ks: {
99
+ default: null
100
+ }
101
+ },
80
102
  provide: function provide() {
81
103
  return {
82
104
  et: this.et,
83
105
  removeTask: this.handleRemoveItemChange,
84
106
  removeDialog: this.handleRemoveDialogChange,
85
- OccurrenceDialog: this.handleOccurrenceDialogChange
107
+ occurrenceDialog: this.handleOccurrenceDialogChange
86
108
  };
87
109
  },
88
110
  data: function data() {
@@ -93,10 +115,26 @@ var SchedulerEditTaskVue2 = {
93
115
  showOccurrenceDialog: false
94
116
  },
95
117
  currentEditable: false,
96
- series: null,
97
- currentData: null
118
+ currentSeries: null,
119
+ currentRemoveItem: null,
120
+ currentShowRemoveDialog: null,
121
+ currentShowOccurrenceDialog: null
98
122
  };
99
123
  },
124
+ computed: {
125
+ compSeries: function compSeries() {
126
+ return this.series !== undefined ? this.series : this.currentSeries;
127
+ },
128
+ compRemoveItem: function compRemoveItem() {
129
+ return this.removeItem !== undefined ? this.removeItem : this.currentRemoveItem;
130
+ },
131
+ compShowRemoveDialog: function compShowRemoveDialog() {
132
+ return this.showRemoveDialog !== undefined ? this.showRemoveDialog : this.currentShowRemoveDialog;
133
+ },
134
+ compShowOccurrenceDialog: function compShowOccurrenceDialog() {
135
+ return this.showOccurrenceDialog !== undefined ? this.showOccurrenceDialog : this.currentShowOccurrenceDialog;
136
+ }
137
+ },
100
138
  // @ts-ignore
101
139
  setup: !gh ? undefined : function () {
102
140
  var v3 = !!gh;
@@ -106,6 +144,8 @@ var SchedulerEditTaskVue2 = {
106
144
  },
107
145
  // @ts-ignore
108
146
  render: function render(createElement) {
147
+ var _this = this;
148
+
109
149
  var h = gh || createElement;
110
150
  var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
111
151
 
@@ -153,7 +193,8 @@ var SchedulerEditTaskVue2 = {
153
193
  recurrenceRule: this.$props.recurrenceRule,
154
194
  recurrenceId: this.$props.recurrenceId,
155
195
  dataItem: this.$props.dataItem,
156
- task: this.$props.task
196
+ task: this.$props.task,
197
+ editable: this.$props.editable
157
198
  },
158
199
  tabIndex: this.$props.tabIndex,
159
200
  head: this.$props.head,
@@ -181,45 +222,89 @@ var SchedulerEditTaskVue2 = {
181
222
  recurrenceId: this.$props.recurrenceId,
182
223
  dataItem: this.$props.dataItem,
183
224
  task: this.$props.task,
184
- onRemoveClick: this.handleRemoveClick,
225
+ editable: this.$props.editable,
226
+ onRemoveclick: this.handleRemoveClick,
185
227
  on: this.v3 ? undefined : {
186
- "removeClick": this.handleRemoveClick
228
+ "removeclick": this.handleRemoveClick
187
229
  }
188
230
  }, this.v3 ? function () {
189
- return [defaultSlot];
190
- } : [defaultSlot]) // {(this.showOccurrenceDialog) && (<SchedulerOccurrenceDialog
191
- // dataItem={this.removeItem}
192
- // isRemove={this.removeItem !== null}
193
- // onClose={this.handleCancel}
194
- // onOccurrenceClick={this.handleOccurrenceClick}
195
- // onSeriesClick={this.handleSeriesClick}
196
- // />)}
197
- // {(this.showRemoveDialog) && (<SchedulerRemoveDialog
198
- // dataItem={this.removeItem}
199
- // onClose={this.handleCancel}
200
- // onCancel={this.handleCancel}
201
- // onConfirm={this.handleRemoveConfirm}
202
- // />)}
203
-
231
+ return [defaultSlot, _this.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog_1.SchedulerOccurrenceDialog, {
232
+ dataItem: _this.compRemoveItem,
233
+ attrs: _this.v3 ? undefined : {
234
+ dataItem: _this.compRemoveItem,
235
+ isRemove: _this.compRemoveItem !== null
236
+ },
237
+ isRemove: _this.compRemoveItem !== null,
238
+ onClose: _this.handleCancel,
239
+ on: _this.v3 ? undefined : {
240
+ "close": _this.handleCancel,
241
+ "occurrenceclose": _this.handleOccurrenceClick,
242
+ "seriesclose": _this.handleSeriesClick
243
+ },
244
+ onOccurrenceclose: _this.handleOccurrenceClick,
245
+ onSeriesclose: _this.handleSeriesClick
246
+ }), _this.compShowRemoveDialog && h(SchedulerRemoveDialog_1.SchedulerRemoveDialog, {
247
+ dataItem: _this.compRemoveItem,
248
+ attrs: _this.v3 ? undefined : {
249
+ dataItem: _this.compRemoveItem
250
+ },
251
+ onClose: _this.handleCancel,
252
+ on: _this.v3 ? undefined : {
253
+ "close": _this.handleCancel,
254
+ "cancel": _this.handleCancel,
255
+ "confirm": _this.handleRemoveConfirm
256
+ },
257
+ onCancel: _this.handleCancel,
258
+ onConfirm: _this.handleRemoveConfirm
259
+ })];
260
+ } : [defaultSlot, _this.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog_1.SchedulerOccurrenceDialog, {
261
+ dataItem: _this.compRemoveItem,
262
+ attrs: _this.v3 ? undefined : {
263
+ dataItem: _this.compRemoveItem,
264
+ isRemove: _this.compRemoveItem !== null
265
+ },
266
+ isRemove: _this.compRemoveItem !== null,
267
+ onClose: _this.handleCancel,
268
+ on: _this.v3 ? undefined : {
269
+ "close": _this.handleCancel,
270
+ "occurrenceclose": _this.handleOccurrenceClick,
271
+ "seriesclose": _this.handleSeriesClick
272
+ },
273
+ onOccurrenceclose: _this.handleOccurrenceClick,
274
+ onSeriesclose: _this.handleSeriesClick
275
+ }), _this.compShowRemoveDialog && h(SchedulerRemoveDialog_1.SchedulerRemoveDialog, {
276
+ dataItem: _this.compRemoveItem,
277
+ attrs: _this.v3 ? undefined : {
278
+ dataItem: _this.compRemoveItem
279
+ },
280
+ onClose: _this.handleCancel,
281
+ on: _this.v3 ? undefined : {
282
+ "close": _this.handleCancel,
283
+ "cancel": _this.handleCancel,
284
+ "confirm": _this.handleRemoveConfirm
285
+ },
286
+ onCancel: _this.handleCancel,
287
+ onConfirm: _this.handleRemoveConfirm
288
+ })])
204
289
  );
205
290
  },
206
291
  methods: {
207
292
  setRemoveItem: function setRemoveItem(item, event) {
208
- this.removeItem = item;
293
+ this.currentRemoveItem = item;
209
294
  this.$emit('removeitemchange', {
210
295
  item: item,
211
296
  event: event
212
297
  });
213
298
  },
214
299
  setShowRemoveDialog: function setShowRemoveDialog(show, event) {
215
- this.showREmoveDialog = show;
300
+ this.currentShowRemoveDialog = show;
216
301
  this.$emit('showremovedialogchange', {
217
302
  show: show,
218
303
  event: event
219
304
  });
220
305
  },
221
306
  setShowOccurrenceDialog: function setShowOccurrenceDialog(show, event) {
222
- this.showOccurrenceDialog = show;
307
+ this.currentShowOccurrenceDialog = show;
223
308
  this.$emit('showoccurrencedialogchange', {
224
309
  show: show,
225
310
  event: event
@@ -239,17 +324,17 @@ var SchedulerEditTaskVue2 = {
239
324
  }
240
325
  },
241
326
  handleCancel: function handleCancel(event) {
242
- this.series = null;
327
+ this.currentSeries = null;
243
328
  this.setRemoveItem(null, event);
244
329
  this.setShowRemoveDialog(false, event);
245
330
  this.setShowOccurrenceDialog(false, event);
246
331
  },
247
332
  handleRemoveConfirm: function handleRemoveConfirm(event) {
248
- if (this.removeItem) {
333
+ if (this.compRemoveItem) {
249
334
  this.$emit('dataaction', {
250
335
  type: Scheduler_1.DATA_ACTION.remove,
251
- series: this.series,
252
- dataItem: this.removeItem
336
+ series: this.compSeries,
337
+ dataItem: this.compRemoveItem
253
338
  });
254
339
  }
255
340
 
@@ -278,8 +363,8 @@ var SchedulerEditTaskVue2 = {
278
363
  this.setShowOccurrenceDialog(value, event);
279
364
  },
280
365
  handleOccurrenceClick: function handleOccurrenceClick(event) {
281
- if (this.removeItem) {
282
- this.series = false;
366
+ if (this.compRemoveItem) {
367
+ this.currentSeries = false;
283
368
  this.setRemoveItem(this.$props.dataItem, event);
284
369
  this.setShowRemoveDialog(true, event);
285
370
  }
@@ -287,9 +372,9 @@ var SchedulerEditTaskVue2 = {
287
372
  this.setShowOccurrenceDialog(false, event);
288
373
  },
289
374
  handleSeriesClick: function handleSeriesClick(event) {
290
- if (this.removeItem) {
291
- this.series = true;
292
- var dataItem = utils_1.findMaster(this.removeItem, this.fields, this.currentData);
375
+ if (this.compRemoveItem) {
376
+ this.currentSeries = true;
377
+ var dataItem = utils_1.findMaster(this.compRemoveItem, this.ks.fields, this.ks.dataItems);
293
378
  this.setRemoveItem(dataItem, event);
294
379
  this.setShowRemoveDialog(true, event);
295
380
  }
@@ -65,7 +65,8 @@ var SchedulerTaskVue2 = {
65
65
  recurrenceExceptions: Array,
66
66
  recurrenceRule: String,
67
67
  recurrenceId: [String, Number],
68
- dataItem: Object
68
+ dataItem: Object,
69
+ editable: [Object, Boolean]
69
70
  },
70
71
  inject: {
71
72
  kendoLocalizationService: {
@@ -142,7 +143,7 @@ var SchedulerTaskVue2 = {
142
143
  },
143
144
  methods: {
144
145
  handleRemoveClick: function handleRemoveClick(event) {
145
- this.$emits('removeclick', {
146
+ this.$emit('removeclick', {
146
147
  event: event,
147
148
  target: this.task
148
149
  });
@@ -46,7 +46,8 @@ var SchedulerViewTaskVue2 = {
46
46
  recurrenceRule: String,
47
47
  recurrenceId: [String, Number],
48
48
  dataItem: Object,
49
- task: [String, Function, Object]
49
+ task: [String, Function, Object],
50
+ editable: [Object, Boolean]
50
51
  },
51
52
  // @ts-ignore
52
53
  setup: !gh ? undefined : function () {
@@ -89,7 +90,8 @@ var SchedulerViewTaskVue2 = {
89
90
  recurrenceExceptions: this.$props.recurrenceExceptions,
90
91
  recurrenceRule: this.$props.recurrenceRule,
91
92
  recurrenceId: this.$props.recurrenceId,
92
- dataItem: this.$props.dataItem
93
+ dataItem: this.$props.dataItem,
94
+ editable: this.$props.editable
93
95
  },
94
96
  tabIndex: this.$props.tabIndex,
95
97
  head: this.$props.head,
@@ -115,7 +117,12 @@ var SchedulerViewTaskVue2 = {
115
117
  recurrenceExceptions: this.$props.recurrenceExceptions,
116
118
  recurrenceRule: this.$props.recurrenceRule,
117
119
  recurrenceId: this.$props.recurrenceId,
118
- dataItem: this.$props.dataItem
120
+ dataItem: this.$props.dataItem,
121
+ editable: this.$props.editable,
122
+ onRemoveclick: this.handleRemoveClick,
123
+ on: this.v3 ? undefined : {
124
+ "removeclick": this.handleRemoveClick
125
+ }
119
126
  }, this.v3 ? function () {
120
127
  return [defaultSlot];
121
128
  } : [defaultSlot]);
@@ -126,6 +133,11 @@ var SchedulerViewTaskVue2 = {
126
133
  defaultSlots: defaultSlot
127
134
  });
128
135
  return taskRender;
136
+ },
137
+ methods: {
138
+ handleRemoveClick: function handleRemoveClick(event) {
139
+ this.$emit('removeclick', event);
140
+ }
129
141
  }
130
142
  };
131
143
  exports.SchedulerViewTaskVue2 = SchedulerViewTaskVue2;
@@ -82,7 +82,10 @@ var AgendaViewVue2 = {
82
82
  default: constants_1.DAYS_IN_WEEK_COUNT
83
83
  },
84
84
  task: [String, Function, Object],
85
- editable: [Object, Boolean]
85
+ editable: {
86
+ type: [Boolean, Object],
87
+ default: false
88
+ }
86
89
  },
87
90
  inject: {
88
91
  ks: {
@@ -172,6 +175,7 @@ var AgendaViewVue2 = {
172
175
  var EditSlot = this.$props.editSlot || SchedulerEditSlot_1.SchedulerEditSlot;
173
176
  var intl = kendo_vue_intl_1.provideIntlService(this);
174
177
  var localization = kendo_vue_intl_1.provideLocalizationService(this);
178
+ var agendaSlots = this.agendaSlots;
175
179
  return (// @ts-ignore function children
176
180
  h(BaseView_1.BaseView, {
177
181
  id: this.$props.id,
@@ -210,12 +214,14 @@ var AgendaViewVue2 = {
210
214
  nested: true
211
215
  }, _this.v3 ? function () {
212
216
  return [h(AgendaViewBody_1.AgendaViewBody, {
213
- agendaSlots: _this.agendaSlots,
217
+ items: _this.items,
214
218
  attrs: _this.v3 ? undefined : {
215
- agendaSlots: _this.agendaSlots,
219
+ items: _this.items,
220
+ agendaSlots: agendaSlots,
216
221
  task: _this.$props.task,
217
222
  editable: _this.$props.editable
218
223
  },
224
+ agendaSlots: agendaSlots,
219
225
  task: _this.$props.task,
220
226
  editable: _this.$props.editable,
221
227
  onDataaction: _this.handleDataAction,
@@ -224,12 +230,14 @@ var AgendaViewVue2 = {
224
230
  }
225
231
  })];
226
232
  } : [h(AgendaViewBody_1.AgendaViewBody, {
227
- agendaSlots: _this.agendaSlots,
233
+ items: _this.items,
228
234
  attrs: _this.v3 ? undefined : {
229
- agendaSlots: _this.agendaSlots,
235
+ items: _this.items,
236
+ agendaSlots: agendaSlots,
230
237
  task: _this.$props.task,
231
238
  editable: _this.$props.editable
232
239
  },
240
+ agendaSlots: agendaSlots,
233
241
  task: _this.$props.task,
234
242
  editable: _this.$props.editable,
235
243
  onDataaction: _this.handleDataAction,
@@ -259,12 +267,14 @@ var AgendaViewVue2 = {
259
267
  nested: true
260
268
  }, _this.v3 ? function () {
261
269
  return [h(AgendaViewBody_1.AgendaViewBody, {
262
- agendaSlots: _this.agendaSlots,
270
+ items: _this.items,
263
271
  attrs: _this.v3 ? undefined : {
264
- agendaSlots: _this.agendaSlots,
272
+ items: _this.items,
273
+ agendaSlots: agendaSlots,
265
274
  task: _this.$props.task,
266
275
  editable: _this.$props.editable
267
276
  },
277
+ agendaSlots: agendaSlots,
268
278
  task: _this.$props.task,
269
279
  editable: _this.$props.editable,
270
280
  onDataaction: _this.handleDataAction,
@@ -273,12 +283,14 @@ var AgendaViewVue2 = {
273
283
  }
274
284
  })];
275
285
  } : [h(AgendaViewBody_1.AgendaViewBody, {
276
- agendaSlots: _this.agendaSlots,
286
+ items: _this.items,
277
287
  attrs: _this.v3 ? undefined : {
278
- agendaSlots: _this.agendaSlots,
288
+ items: _this.items,
289
+ agendaSlots: agendaSlots,
279
290
  task: _this.$props.task,
280
291
  editable: _this.$props.editable
281
292
  },
293
+ agendaSlots: agendaSlots,
282
294
  task: _this.$props.task,
283
295
  editable: _this.$props.editable,
284
296
  onDataaction: _this.handleDataAction,
@@ -5,6 +5,7 @@ declare type DefaultMethods<V> = {
5
5
  };
6
6
  /** @hidden */
7
7
  export interface AgendaViewBodyProps {
8
+ items: any[];
8
9
  rangeIndex: number;
9
10
  itemsPerSlot: number;
10
11
  agendaSlots: any[];
@@ -26,6 +26,7 @@ var DAY_FORMAT = {
26
26
  var AgendaViewBodyVue2 = {
27
27
  name: 'KendoAgendaViewBody',
28
28
  props: {
29
+ items: Array,
29
30
  rangeIndex: Number,
30
31
  itemsPerSlot: Number,
31
32
  agendaSlots: Array,
@@ -64,7 +65,7 @@ var AgendaViewBodyVue2 = {
64
65
  var localization = kendo_vue_intl_1.provideLocalizationService(this);
65
66
  return h("div", {
66
67
  "class": "k-scheduler-body"
67
- }, [this.agendaSlots.filter(function (slot) {
68
+ }, [(this.items.length || true) && this.agendaSlots.filter(function (slot) {
68
69
  return slot.group.index === (_this.ri.groupIndex || 0);
69
70
  }).map(function (slot, slotIndex, filtered) {
70
71
  var _this2 = this;
@@ -103,6 +104,10 @@ var AgendaViewBodyVue2 = {
103
104
  col: 0,
104
105
  slot: this.$props.slot,
105
106
  viewSlot: this.$props.viewSlot,
107
+ onDataaction: this.handleDataAction,
108
+ on: this.v3 ? undefined : {
109
+ "dataaction": this.handleDataAction
110
+ },
106
111
  "class": "k-scheduler-datecolumn k-group-cell"
107
112
  }, this.v3 ? function () {
108
113
  return [h("div", [h("strong", {
@@ -44,13 +44,16 @@ var SchedulerDragVue2 = {
44
44
  inject: {
45
45
  ks: {
46
46
  default: null
47
+ },
48
+ bv: {
49
+ default: null
47
50
  }
48
51
  },
49
52
  computed: {
50
53
  occurrences: function occurrences() {
51
54
  return services_1.toOccurrences([this.$props.dataItem], {
52
- dateRange: this.dateRange,
53
- fields: this.fields,
55
+ dateRange: this.ks.dateRange,
56
+ fields: this.ks.fields,
54
57
  timezone: this.ks.timezone
55
58
  });
56
59
  },
@@ -58,8 +61,8 @@ var SchedulerDragVue2 = {
58
61
  return services_1.toItems(this.occurrences, {
59
62
  timezone: this.ks.timezone
60
63
  }, {
61
- groups: this.groups,
62
- ranges: this.ranges
64
+ groups: this.ks.groups,
65
+ ranges: this.bv.ranges
63
66
  });
64
67
  }
65
68
  },
@@ -79,22 +82,70 @@ var SchedulerDragVue2 = {
79
82
  // const dateRange = useSchedulerDateRangeContext();
80
83
  // const [viewSlots] = useSchedulerViewSlotsContext();
81
84
 
82
- var slots = (this.viewSlots || []).map(function (s) {
83
- return s.current.props;
85
+ var slots = (this.bv.slots || []).map(function (s) {
86
+ return s;
84
87
  });
85
88
  utils_1.mapItemsToSlots(this.items, slots);
86
89
  return (// fragment
87
- h("div", [this.items.map(function (_item, idx) {
90
+ h("div", [this.items.map(function (item, idx) {
88
91
  return h(SchedulerViewItem_1.SchedulerViewItem, {
89
- key: idx // {...item}
90
- ,
91
- item: this.$props.item,
92
+ key: idx,
93
+ uid: item.uid,
92
94
  attrs: this.v3 ? undefined : {
93
- item: this.$props.item,
95
+ uid: item.uid,
96
+ start: item.start,
97
+ end: item.end,
98
+ originalStart: item.originalStart,
99
+ startTimezone: item.startTimezone,
100
+ endTimezone: item.endTimezone,
101
+ isAllDay: item.isAllDay,
102
+ title: item.title,
103
+ description: item.description,
104
+ occurrenceId: item.occurrenceId,
105
+ recurrenceExceptions: item.recurrenceExceptions,
106
+ recurrenceRule: item.recurrenceRule,
107
+ recurrenceId: item.recurrenceId,
108
+ dataItem: item.dataItem,
109
+ itemRef: item.itemRef,
110
+ head: item.head,
111
+ tail: item.tail,
112
+ order: item.order,
113
+ zonedStart: item.zonedStart,
114
+ zonedEnd: item.zonedEnd,
115
+ slots: item.slots,
116
+ group: item.group,
117
+ range: item.range,
118
+ isException: item.isException,
119
+ isRecurring: item.isRecurring // item={this.$props.item}
120
+ ,
94
121
  dragHint: true,
95
122
  vertical: this.$props.vertical,
96
123
  ignoreIsAllDay: this.$props.ignoreIsAllDay
97
124
  },
125
+ start: item.start,
126
+ end: item.end,
127
+ originalStart: item.originalStart,
128
+ startTimezone: item.startTimezone,
129
+ endTimezone: item.endTimezone,
130
+ isAllDay: item.isAllDay,
131
+ title: item.title,
132
+ description: item.description,
133
+ occurrenceId: item.occurrenceId,
134
+ recurrenceExceptions: item.recurrenceExceptions,
135
+ recurrenceRule: item.recurrenceRule,
136
+ recurrenceId: item.recurrenceId,
137
+ dataItem: item.dataItem,
138
+ itemRef: item.itemRef,
139
+ head: item.head,
140
+ tail: item.tail,
141
+ order: item.order,
142
+ zonedStart: item.zonedStart,
143
+ zonedEnd: item.zonedEnd,
144
+ slots: item.slots,
145
+ group: item.group,
146
+ range: item.range,
147
+ isException: item.isException,
148
+ isRecurring: item.isRecurring,
98
149
  dragHint: true,
99
150
  vertical: this.$props.vertical,
100
151
  ignoreIsAllDay: this.$props.ignoreIsAllDay
@@ -22,6 +22,10 @@ var kendo_date_math_1 = require("@progress/kendo-date-math"); // tslint:enable:m
22
22
 
23
23
  var DayViewVue2 = {
24
24
  name: 'KendoDayView',
25
+ // @ts-ignore
26
+ emits: {
27
+ dataaction: null
28
+ },
25
29
  props: {
26
30
  name: {
27
31
  type: String,
@@ -86,7 +86,11 @@ var MonthViewVue2 = {
86
86
  default: '{0:Y}'
87
87
  },
88
88
  slotRender: [String, Function, Object],
89
- item: [String, Function, Object]
89
+ item: [String, Function, Object],
90
+ editable: {
91
+ type: [Boolean, Object],
92
+ default: false
93
+ }
90
94
  },
91
95
  inject: {
92
96
  ks: {
@@ -1,5 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ var __spreadArrays = undefined && undefined.__spreadArrays || function () {
4
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
5
+ s += arguments[i].length;
6
+ }
7
+
8
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) {
9
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
10
+ r[k] = a[j];
11
+ }
12
+ }
13
+
14
+ return r;
15
+ };
16
+
3
17
  Object.defineProperty(exports, "__esModule", {
4
18
  value: true
5
19
  });
@@ -133,7 +147,11 @@ var MultiDayTimelineViewVue2 = {
133
147
  default: 100
134
148
  },
135
149
  slotRender: [String, Function, Object],
136
- item: [String, Function, Object]
150
+ item: [String, Function, Object],
151
+ editable: {
152
+ type: [Boolean, Object],
153
+ default: false
154
+ }
137
155
  },
138
156
  inject: {
139
157
  ks: {
@@ -192,9 +210,9 @@ var MultiDayTimelineViewVue2 = {
192
210
  ranges: this.ranges
193
211
  }).filter(function (item) {
194
212
  return _this.viewStart.getTime() === _this.viewEnd.getTime() || utils_1.isInTimeRange(item.zonedStart, _this.viewStart, _this.viewEnd) || utils_1.isInTimeRange(item.zonedEnd, _this.viewStart, _this.viewEnd) || utils_1.isInTimeRange(new Date(item.zonedEnd.getTime() - (item.zonedEnd.getTime() - item.zonedStart.getTime()) / 2), _this.viewStart, _this.viewEnd);
195
- }); // mapItemsToSlots(items, this.timelineSlots, false);
196
- // mapSlotsToItems(items, this.timelineSlots, false);
197
-
213
+ });
214
+ utils_1.mapItemsToSlots(items, this.timelineSlots, true);
215
+ utils_1.mapSlotsToItems(items, this.timelineSlots, true);
198
216
  return items;
199
217
  }
200
218
  },
@@ -248,10 +266,11 @@ var MultiDayTimelineViewVue2 = {
248
266
  var slotDuration = this.$props.slotDuration;
249
267
  var workDayStart = intl.parseDate(this.$props.workDayStart);
250
268
  var workDayEnd = intl.parseDate(this.$props.workDayEnd);
251
- var items = this.items;
252
- var timelineSlots = this.timelineSlots;
253
- utils_1.mapItemsToSlots(items, timelineSlots, true);
254
- utils_1.mapSlotsToItems(items, timelineSlots, true);
269
+
270
+ var items = __spreadArrays(this.items);
271
+
272
+ var timelineSlots = __spreadArrays(this.timelineSlots);
273
+
255
274
  var width = (this.ks.orientation === 'horizontal' ? timelineSlots.length : timelineSlots.length / this.ks.groups.length) * (this.$props.columnWidth + constants_1.BORDER_WIDTH);
256
275
  var head = [h("div", {
257
276
  "class": "k-scheduler-row"
@@ -18,6 +18,10 @@ var kendo_date_math_1 = require("@progress/kendo-date-math"); // tslint:enable:m
18
18
 
19
19
  var TimelineViewVue2 = {
20
20
  name: 'KendoTimelineView',
21
+ // @ts-ignore
22
+ emits: {
23
+ dataaction: null
24
+ },
21
25
  props: {
22
26
  name: {
23
27
  type: String,