@progress/kendo-vue-scheduler 3.1.4 → 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 (72) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/components/SchedulerForm.js +6 -0
  3. package/dist/es/components/SchedulerOccurrenceDialog.js +52 -7
  4. package/dist/es/components/SchedulerRemoveDialog.js +52 -7
  5. package/dist/es/editors/ResourceEditor.js +13 -11
  6. package/dist/es/editors/SchedulerFormEditor.js +11 -10
  7. package/dist/es/editors/ZonedDateTime.d.ts +1 -0
  8. package/dist/es/editors/ZonedDateTime.js +5 -2
  9. package/dist/es/items/SchedulerEditItem.js +401 -211
  10. package/dist/es/items/SchedulerItem.js +104 -95
  11. package/dist/es/items/SchedulerViewItem.js +8 -2
  12. package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
  13. package/dist/es/items/hooks/use-drag-item.js +228 -153
  14. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  15. package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
  16. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  17. package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
  18. package/dist/es/package-metadata.js +1 -1
  19. package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
  20. package/dist/es/recurrence/RecurrenceEditor.js +5 -0
  21. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
  22. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  23. package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
  24. package/dist/es/tasks/SchedulerEditTask.js +118 -35
  25. package/dist/es/tasks/SchedulerTask.js +3 -2
  26. package/dist/es/tasks/SchedulerViewTask.js +15 -3
  27. package/dist/es/views/agenda/AgendaView.js +21 -9
  28. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  29. package/dist/es/views/agenda/AgendaViewBody.js +6 -1
  30. package/dist/es/views/common/SchedulerDrag.js +62 -11
  31. package/dist/es/views/day/DayView.js +4 -0
  32. package/dist/es/views/month/MonthView.js +5 -1
  33. package/dist/es/views/time/MultiDayTimelineView.js +28 -9
  34. package/dist/es/views/time/TimelineView.js +4 -0
  35. package/dist/es/views/week/WeekView.js +12 -2
  36. package/dist/es/views/week/WorkWeekView.js +12 -2
  37. package/dist/npm/components/SchedulerForm.js +6 -0
  38. package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
  39. package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
  40. package/dist/npm/editors/ResourceEditor.js +12 -10
  41. package/dist/npm/editors/SchedulerFormEditor.js +11 -11
  42. package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
  43. package/dist/npm/editors/ZonedDateTime.js +4 -1
  44. package/dist/npm/items/SchedulerEditItem.js +400 -207
  45. package/dist/npm/items/SchedulerItem.js +104 -95
  46. package/dist/npm/items/SchedulerViewItem.js +8 -2
  47. package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
  48. package/dist/npm/items/hooks/use-drag-item.js +231 -153
  49. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  50. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
  51. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  52. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
  53. package/dist/npm/package-metadata.js +1 -1
  54. package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
  55. package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
  56. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
  57. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  58. package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
  59. package/dist/npm/tasks/SchedulerEditTask.js +120 -35
  60. package/dist/npm/tasks/SchedulerTask.js +3 -2
  61. package/dist/npm/tasks/SchedulerViewTask.js +15 -3
  62. package/dist/npm/views/agenda/AgendaView.js +21 -9
  63. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  64. package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
  65. package/dist/npm/views/common/SchedulerDrag.js +62 -11
  66. package/dist/npm/views/day/DayView.js +4 -0
  67. package/dist/npm/views/month/MonthView.js +5 -1
  68. package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
  69. package/dist/npm/views/time/TimelineView.js +4 -0
  70. package/dist/npm/views/week/WeekView.js +12 -2
  71. package/dist/npm/views/week/WorkWeekView.js +12 -2
  72. package/package.json +12 -12
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useShowOccurrenceDialog = exports.SHOW_OCCURRENCE_DIALOG_ACTION = void 0;
6
+ exports.useShowOccurrenceDialog = exports.showOccurrenceDialogReducer = exports.SHOW_OCCURRENCE_DIALOG_ACTION = void 0;
7
7
  /**
8
8
  * Represents the available `action` types for the `SchedulerItemShowOccurrenceDialogAction` objects.
9
9
  *
@@ -25,7 +25,7 @@ var SHOW_OCCURRENCE_DIALOG_ACTION;
25
25
  SHOW_OCCURRENCE_DIALOG_ACTION["toggle"] = "SHOW_OCCURRENCE_DIALOG_TOGGLE";
26
26
  })(SHOW_OCCURRENCE_DIALOG_ACTION = exports.SHOW_OCCURRENCE_DIALOG_ACTION || (exports.SHOW_OCCURRENCE_DIALOG_ACTION = {}));
27
27
 
28
- var showOccurrenceDialogReducer = function showOccurrenceDialogReducer(state, action) {
28
+ exports.showOccurrenceDialogReducer = function (state, action) {
29
29
  switch (action.type) {
30
30
  case SHOW_OCCURRENCE_DIALOG_ACTION.reset:
31
31
  return false;
@@ -23,5 +23,6 @@ export declare type SchedulerItemShowRemoveDialogAction = {
23
23
  type: SHOW_REMOVE_DIALOG_ACTION;
24
24
  payload?: boolean;
25
25
  };
26
+ export declare const showRemoveDialogReducer: (state: any, action: SchedulerItemShowRemoveDialogAction) => any;
26
27
  /** @hidden */
27
28
  export declare const useShowRemoveDialog: (_defaultProp: DataItem, _prop?: DataItem, _callback?: any) => any[];
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useShowRemoveDialog = exports.SHOW_REMOVE_DIALOG_ACTION = void 0;
6
+ exports.useShowRemoveDialog = exports.showRemoveDialogReducer = exports.SHOW_REMOVE_DIALOG_ACTION = void 0;
7
7
  /**
8
8
  * Represents the available `action` types for the `SchedulerItemShowRemoveDialogAction` objects.
9
9
  *
@@ -25,7 +25,7 @@ var SHOW_REMOVE_DIALOG_ACTION;
25
25
  SHOW_REMOVE_DIALOG_ACTION["toggle"] = "SHOW_REMOVE_DIALOG_TOGGLE";
26
26
  })(SHOW_REMOVE_DIALOG_ACTION = exports.SHOW_REMOVE_DIALOG_ACTION || (exports.SHOW_REMOVE_DIALOG_ACTION = {}));
27
27
 
28
- var showRemoveDialogReducer = function showRemoveDialogReducer(state, action) {
28
+ exports.showRemoveDialogReducer = function (state, action) {
29
29
  switch (action.type) {
30
30
  case SHOW_REMOVE_DIALOG_ACTION.reset:
31
31
  return false;
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-scheduler',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1649223897,
11
+ publishDate: 1649669747,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
@@ -6,6 +6,7 @@ declare type DefaultMethods<V> = {
6
6
  import { LocalizationService, IntlService } from '@progress/kendo-vue-intl';
7
7
  /** @hidden */
8
8
  export interface RecurrenceEditorProps {
9
+ name: string;
9
10
  value: string;
10
11
  start: Date;
11
12
  timezone: string;
@@ -36,7 +36,12 @@ var kendo_vue_dateinputs_1 = require("@progress/kendo-vue-dateinputs"); // tslin
36
36
 
37
37
  var RecurrenceEditorVue2 = {
38
38
  name: 'KendoRecurrenceEditor',
39
+ // @ts-ignore
40
+ emits: {
41
+ change: null
42
+ },
39
43
  props: {
44
+ name: String,
40
45
  value: {
41
46
  type: String,
42
47
  default: ''
@@ -16,6 +16,10 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons"); // tslint:enab
16
16
 
17
17
  var RecurrenceFrequencyEditorVue2 = {
18
18
  name: 'KendoRecurrenceFrequencyEditor',
19
+ // @ts-ignore
20
+ emits: {
21
+ change: null
22
+ },
19
23
  props: {
20
24
  value: String,
21
25
  dataItems: Array
@@ -32,6 +32,10 @@ var common_1 = require("./common"); // tslint:enable:max-line-length
32
32
 
33
33
  var RecurrenceRepeatOnWeekEditorVue2 = {
34
34
  name: 'KendoRecurrenceRepeatOnWeekEditor',
35
+ // @ts-ignore
36
+ emits: {
37
+ change: null
38
+ },
35
39
  props: {
36
40
  dataItems: {
37
41
  type: Array,
@@ -26,6 +26,15 @@ export interface SchedulerEditTaskProps extends SchedulerViewTaskProps {
26
26
  * Setting this property will force the `showRemoveDialog` to be in controlled state, allowing further control over the display of the `removeDialog` component.
27
27
  */
28
28
  showRemoveDialog?: boolean;
29
+ /**
30
+ * Indicates if the editing should be applied to the whole `series` or to a single `occurrence` when the item is recurring.
31
+ *
32
+ * By default, the `series` prop is set to `null` and additional selection is done through the `occurrence` dialog.
33
+ * If set ot either `true` or `false`:
34
+ * - `true` &mdash; indicates that the editing should always be applied to the whole `series`
35
+ * - `false` &mdash; indicates that the editing should always be applied to a single `occurrence`.
36
+ */
37
+ series?: boolean | null;
29
38
  /**
30
39
  * Called every time the `showRemoveDialog` changes.
31
40
  */
@@ -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