@progress/kendo-vue-scheduler 3.1.4 → 3.2.0-dev.202204120815

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 (76) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/components/SchedulerActionButtons.js +7 -1
  3. package/dist/es/components/SchedulerForm.js +68 -9
  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 +689 -334
  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 +401 -211
  11. package/dist/es/items/SchedulerItem.js +104 -95
  12. package/dist/es/items/SchedulerViewItem.js +8 -2
  13. package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
  14. package/dist/es/items/hooks/use-drag-item.js +228 -153
  15. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  16. package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
  17. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  18. package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
  19. package/dist/es/messages/index.js +1 -1
  20. package/dist/es/package-metadata.js +1 -1
  21. package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
  22. package/dist/es/recurrence/RecurrenceEditor.js +5 -0
  23. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
  24. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  25. package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
  26. package/dist/es/tasks/SchedulerEditTask.js +118 -35
  27. package/dist/es/tasks/SchedulerTask.js +3 -2
  28. package/dist/es/tasks/SchedulerViewTask.js +15 -3
  29. package/dist/es/views/agenda/AgendaView.js +21 -9
  30. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  31. package/dist/es/views/agenda/AgendaViewBody.js +6 -1
  32. package/dist/es/views/common/SchedulerDrag.js +62 -11
  33. package/dist/es/views/day/DayView.js +4 -0
  34. package/dist/es/views/month/MonthView.js +9 -13
  35. package/dist/es/views/time/MultiDayTimelineView.js +28 -9
  36. package/dist/es/views/time/TimelineView.js +4 -0
  37. package/dist/es/views/week/WeekView.js +12 -2
  38. package/dist/es/views/week/WorkWeekView.js +12 -2
  39. package/dist/npm/components/SchedulerActionButtons.js +7 -1
  40. package/dist/npm/components/SchedulerForm.js +68 -9
  41. package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
  42. package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
  43. package/dist/npm/editors/ResourceEditor.js +12 -10
  44. package/dist/npm/editors/SchedulerFormEditor.js +674 -319
  45. package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
  46. package/dist/npm/editors/ZonedDateTime.js +4 -1
  47. package/dist/npm/items/SchedulerEditItem.js +400 -207
  48. package/dist/npm/items/SchedulerItem.js +104 -95
  49. package/dist/npm/items/SchedulerViewItem.js +8 -2
  50. package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
  51. package/dist/npm/items/hooks/use-drag-item.js +231 -153
  52. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  53. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
  54. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  55. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
  56. package/dist/npm/messages/index.js +1 -1
  57. package/dist/npm/package-metadata.js +1 -1
  58. package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
  59. package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
  60. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
  61. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  62. package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
  63. package/dist/npm/tasks/SchedulerEditTask.js +120 -35
  64. package/dist/npm/tasks/SchedulerTask.js +3 -2
  65. package/dist/npm/tasks/SchedulerViewTask.js +15 -3
  66. package/dist/npm/views/agenda/AgendaView.js +21 -9
  67. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  68. package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
  69. package/dist/npm/views/common/SchedulerDrag.js +62 -11
  70. package/dist/npm/views/day/DayView.js +4 -0
  71. package/dist/npm/views/month/MonthView.js +9 -13
  72. package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
  73. package/dist/npm/views/time/TimelineView.js +4 -0
  74. package/dist/npm/views/week/WeekView.js +12 -2
  75. package/dist/npm/views/week/WorkWeekView.js +12 -2
  76. package/package.json +12 -12
@@ -18,7 +18,7 @@ export var SHOW_OCCURRENCE_DIALOG_ACTION;
18
18
  SHOW_OCCURRENCE_DIALOG_ACTION["toggle"] = "SHOW_OCCURRENCE_DIALOG_TOGGLE";
19
19
  })(SHOW_OCCURRENCE_DIALOG_ACTION || (SHOW_OCCURRENCE_DIALOG_ACTION = {}));
20
20
 
21
- var showOccurrenceDialogReducer = function showOccurrenceDialogReducer(state, action) {
21
+ export var showOccurrenceDialogReducer = function showOccurrenceDialogReducer(state, action) {
22
22
  switch (action.type) {
23
23
  case SHOW_OCCURRENCE_DIALOG_ACTION.reset:
24
24
  return false;
@@ -41,7 +41,6 @@ var showOccurrenceDialogReducer = function showOccurrenceDialogReducer(state, ac
41
41
  };
42
42
  /** @hidden */
43
43
 
44
-
45
44
  export var useShowOccurrenceDialog = function useShowOccurrenceDialog(_defaultProp, _prop, _callback) {
46
45
  // const [showOccurrenceDialog, setShowOccurrenceDialog] =
47
46
  // useControlledState<DataItem | null>(defaultProp, prop, callback);
@@ -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[];
@@ -18,7 +18,7 @@ export var SHOW_REMOVE_DIALOG_ACTION;
18
18
  SHOW_REMOVE_DIALOG_ACTION["toggle"] = "SHOW_REMOVE_DIALOG_TOGGLE";
19
19
  })(SHOW_REMOVE_DIALOG_ACTION || (SHOW_REMOVE_DIALOG_ACTION = {}));
20
20
 
21
- var showRemoveDialogReducer = function showRemoveDialogReducer(state, action) {
21
+ export var showRemoveDialogReducer = function showRemoveDialogReducer(state, action) {
22
22
  switch (action.type) {
23
23
  case SHOW_REMOVE_DIALOG_ACTION.reset:
24
24
  return false;
@@ -41,7 +41,6 @@ var showRemoveDialogReducer = function showRemoveDialogReducer(state, action) {
41
41
  };
42
42
  /** @hidden */
43
43
 
44
-
45
44
  export var useShowRemoveDialog = function useShowRemoveDialog(_defaultProp, _prop, _callback) {
46
45
  // const [showRemoveDialog, setShowRemoveDialog] = useControlledState<DataItem | null>(defaultProp, prop, callback);
47
46
  // const handleShowRemoveDialogAction = (action: SchedulerItemShowRemoveDialogAction) => {
@@ -156,7 +156,7 @@ export var noEvents = 'scheduler.noEvents';
156
156
  */
157
157
  export var messages = (_a = {},
158
158
  _a[editorValidationRequired] = 'Field is required.',
159
- _a[editorValidationStart] = 'Start time must be be before End time.',
159
+ _a[editorValidationStart] = 'Start time must be before End time.',
160
160
  _a[editorValidationEnd] = 'End time must be after Start time.',
161
161
  _a[allEvents] = 'All events',
162
162
  _a[allDay] = 'all day',
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-scheduler',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1649223897,
8
+ publishDate: 1649751121,
9
9
  version: '',
10
10
  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'
11
11
  };
@@ -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;
@@ -17,7 +17,12 @@ import { DatePicker } from '@progress/kendo-vue-dateinputs'; // tslint:enable:ma
17
17
 
18
18
  var RecurrenceEditorVue2 = {
19
19
  name: 'KendoRecurrenceEditor',
20
+ // @ts-ignore
21
+ emits: {
22
+ change: null
23
+ },
20
24
  props: {
25
+ name: String,
21
26
  value: {
22
27
  type: String,
23
28
  default: ''
@@ -7,6 +7,10 @@ import { ButtonGroup, Button } from '@progress/kendo-vue-buttons'; // tslint:ena
7
7
 
8
8
  var RecurrenceFrequencyEditorVue2 = {
9
9
  name: 'KendoRecurrenceFrequencyEditor',
10
+ // @ts-ignore
11
+ emits: {
12
+ change: null
13
+ },
10
14
  props: {
11
15
  value: String,
12
16
  dataItems: Array
@@ -22,6 +22,10 @@ import { capitalize } from './common'; // tslint:enable:max-line-length
22
22
 
23
23
  var RecurrenceRepeatOnWeekEditorVue2 = {
24
24
  name: 'KendoRecurrenceRepeatOnWeekEditor',
25
+ // @ts-ignore
26
+ emits: {
27
+ change: null
28
+ },
25
29
  props: {
26
30
  dataItems: {
27
31
  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
  */
@@ -20,6 +20,8 @@ import { SchedulerViewTask } from './SchedulerViewTask';
20
20
  import { useEditable } from '../hooks';
21
21
  import { findMaster } from '../utils';
22
22
  import { DATA_ACTION } from '../Scheduler';
23
+ import { SchedulerRemoveDialog } from '../components/SchedulerRemoveDialog';
24
+ import { SchedulerOccurrenceDialog } from '../components/SchedulerOccurrenceDialog';
23
25
  import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
24
26
 
25
27
  var SchedulerEditTaskVue2 = {
@@ -27,11 +29,21 @@ var SchedulerEditTaskVue2 = {
27
29
  props: {
28
30
  viewTask: [String, Function, Object],
29
31
  removeDialog: [String, Function, Object],
30
- showRemoveDialog: Boolean,
31
32
  removeItem: [String, Function, Object],
32
33
  occurrenceDialog: [String, Function, Object],
33
34
  task: [String, Function, Object],
34
- showOccurrenceDialog: Boolean,
35
+ showOccurrenceDialog: {
36
+ type: Boolean,
37
+ default: undefined
38
+ },
39
+ showRemoveDialog: {
40
+ type: Boolean,
41
+ default: undefined
42
+ },
43
+ series: {
44
+ type: Boolean,
45
+ default: undefined
46
+ },
35
47
  refTo: [Function, Object],
36
48
  id: String,
37
49
  tabIndex: Number,
@@ -64,12 +76,20 @@ var SchedulerEditTaskVue2 = {
64
76
  },
65
77
  created: function created() {// this.viewTask = null;
66
78
  },
79
+ inject: {
80
+ bv: {
81
+ default: null
82
+ },
83
+ ks: {
84
+ default: null
85
+ }
86
+ },
67
87
  provide: function provide() {
68
88
  return {
69
89
  et: this.et,
70
90
  removeTask: this.handleRemoveItemChange,
71
91
  removeDialog: this.handleRemoveDialogChange,
72
- OccurrenceDialog: this.handleOccurrenceDialogChange
92
+ occurrenceDialog: this.handleOccurrenceDialogChange
73
93
  };
74
94
  },
75
95
  data: function data() {
@@ -80,10 +100,26 @@ var SchedulerEditTaskVue2 = {
80
100
  showOccurrenceDialog: false
81
101
  },
82
102
  currentEditable: false,
83
- series: null,
84
- currentData: null
103
+ currentSeries: null,
104
+ currentRemoveItem: null,
105
+ currentShowRemoveDialog: null,
106
+ currentShowOccurrenceDialog: null
85
107
  };
86
108
  },
109
+ computed: {
110
+ compSeries: function compSeries() {
111
+ return this.series !== undefined ? this.series : this.currentSeries;
112
+ },
113
+ compRemoveItem: function compRemoveItem() {
114
+ return this.removeItem !== undefined ? this.removeItem : this.currentRemoveItem;
115
+ },
116
+ compShowRemoveDialog: function compShowRemoveDialog() {
117
+ return this.showRemoveDialog !== undefined ? this.showRemoveDialog : this.currentShowRemoveDialog;
118
+ },
119
+ compShowOccurrenceDialog: function compShowOccurrenceDialog() {
120
+ return this.showOccurrenceDialog !== undefined ? this.showOccurrenceDialog : this.currentShowOccurrenceDialog;
121
+ }
122
+ },
87
123
  // @ts-ignore
88
124
  setup: !gh ? undefined : function () {
89
125
  var v3 = !!gh;
@@ -93,6 +129,8 @@ var SchedulerEditTaskVue2 = {
93
129
  },
94
130
  // @ts-ignore
95
131
  render: function render(createElement) {
132
+ var _this = this;
133
+
96
134
  var h = gh || createElement;
97
135
  var defaultSlot = getDefaultSlots(this);
98
136
 
@@ -140,7 +178,8 @@ var SchedulerEditTaskVue2 = {
140
178
  recurrenceRule: this.$props.recurrenceRule,
141
179
  recurrenceId: this.$props.recurrenceId,
142
180
  dataItem: this.$props.dataItem,
143
- task: this.$props.task
181
+ task: this.$props.task,
182
+ editable: this.$props.editable
144
183
  },
145
184
  tabIndex: this.$props.tabIndex,
146
185
  head: this.$props.head,
@@ -168,45 +207,89 @@ var SchedulerEditTaskVue2 = {
168
207
  recurrenceId: this.$props.recurrenceId,
169
208
  dataItem: this.$props.dataItem,
170
209
  task: this.$props.task,
171
- onRemoveClick: this.handleRemoveClick,
210
+ editable: this.$props.editable,
211
+ onRemoveclick: this.handleRemoveClick,
172
212
  on: this.v3 ? undefined : {
173
- "removeClick": this.handleRemoveClick
213
+ "removeclick": this.handleRemoveClick
174
214
  }
175
215
  }, this.v3 ? function () {
176
- return [defaultSlot];
177
- } : [defaultSlot]) // {(this.showOccurrenceDialog) && (<SchedulerOccurrenceDialog
178
- // dataItem={this.removeItem}
179
- // isRemove={this.removeItem !== null}
180
- // onClose={this.handleCancel}
181
- // onOccurrenceClick={this.handleOccurrenceClick}
182
- // onSeriesClick={this.handleSeriesClick}
183
- // />)}
184
- // {(this.showRemoveDialog) && (<SchedulerRemoveDialog
185
- // dataItem={this.removeItem}
186
- // onClose={this.handleCancel}
187
- // onCancel={this.handleCancel}
188
- // onConfirm={this.handleRemoveConfirm}
189
- // />)}
190
-
216
+ return [defaultSlot, _this.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog, {
217
+ dataItem: _this.compRemoveItem,
218
+ attrs: _this.v3 ? undefined : {
219
+ dataItem: _this.compRemoveItem,
220
+ isRemove: _this.compRemoveItem !== null
221
+ },
222
+ isRemove: _this.compRemoveItem !== null,
223
+ onClose: _this.handleCancel,
224
+ on: _this.v3 ? undefined : {
225
+ "close": _this.handleCancel,
226
+ "occurrenceclose": _this.handleOccurrenceClick,
227
+ "seriesclose": _this.handleSeriesClick
228
+ },
229
+ onOccurrenceclose: _this.handleOccurrenceClick,
230
+ onSeriesclose: _this.handleSeriesClick
231
+ }), _this.compShowRemoveDialog && h(SchedulerRemoveDialog, {
232
+ dataItem: _this.compRemoveItem,
233
+ attrs: _this.v3 ? undefined : {
234
+ dataItem: _this.compRemoveItem
235
+ },
236
+ onClose: _this.handleCancel,
237
+ on: _this.v3 ? undefined : {
238
+ "close": _this.handleCancel,
239
+ "cancel": _this.handleCancel,
240
+ "confirm": _this.handleRemoveConfirm
241
+ },
242
+ onCancel: _this.handleCancel,
243
+ onConfirm: _this.handleRemoveConfirm
244
+ })];
245
+ } : [defaultSlot, _this.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog, {
246
+ dataItem: _this.compRemoveItem,
247
+ attrs: _this.v3 ? undefined : {
248
+ dataItem: _this.compRemoveItem,
249
+ isRemove: _this.compRemoveItem !== null
250
+ },
251
+ isRemove: _this.compRemoveItem !== null,
252
+ onClose: _this.handleCancel,
253
+ on: _this.v3 ? undefined : {
254
+ "close": _this.handleCancel,
255
+ "occurrenceclose": _this.handleOccurrenceClick,
256
+ "seriesclose": _this.handleSeriesClick
257
+ },
258
+ onOccurrenceclose: _this.handleOccurrenceClick,
259
+ onSeriesclose: _this.handleSeriesClick
260
+ }), _this.compShowRemoveDialog && h(SchedulerRemoveDialog, {
261
+ dataItem: _this.compRemoveItem,
262
+ attrs: _this.v3 ? undefined : {
263
+ dataItem: _this.compRemoveItem
264
+ },
265
+ onClose: _this.handleCancel,
266
+ on: _this.v3 ? undefined : {
267
+ "close": _this.handleCancel,
268
+ "cancel": _this.handleCancel,
269
+ "confirm": _this.handleRemoveConfirm
270
+ },
271
+ onCancel: _this.handleCancel,
272
+ onConfirm: _this.handleRemoveConfirm
273
+ })])
191
274
  );
192
275
  },
193
276
  methods: {
194
277
  setRemoveItem: function setRemoveItem(item, event) {
195
- this.removeItem = item;
278
+ this.currentRemoveItem = item;
196
279
  this.$emit('removeitemchange', {
197
280
  item: item,
198
281
  event: event
199
282
  });
200
283
  },
201
284
  setShowRemoveDialog: function setShowRemoveDialog(show, event) {
202
- this.showREmoveDialog = show;
285
+ this.currentShowRemoveDialog = show;
203
286
  this.$emit('showremovedialogchange', {
204
287
  show: show,
205
288
  event: event
206
289
  });
207
290
  },
208
291
  setShowOccurrenceDialog: function setShowOccurrenceDialog(show, event) {
209
- this.showOccurrenceDialog = show;
292
+ this.currentShowOccurrenceDialog = show;
210
293
  this.$emit('showoccurrencedialogchange', {
211
294
  show: show,
212
295
  event: event
@@ -226,17 +309,17 @@ var SchedulerEditTaskVue2 = {
226
309
  }
227
310
  },
228
311
  handleCancel: function handleCancel(event) {
229
- this.series = null;
312
+ this.currentSeries = null;
230
313
  this.setRemoveItem(null, event);
231
314
  this.setShowRemoveDialog(false, event);
232
315
  this.setShowOccurrenceDialog(false, event);
233
316
  },
234
317
  handleRemoveConfirm: function handleRemoveConfirm(event) {
235
- if (this.removeItem) {
318
+ if (this.compRemoveItem) {
236
319
  this.$emit('dataaction', {
237
320
  type: DATA_ACTION.remove,
238
- series: this.series,
239
- dataItem: this.removeItem
321
+ series: this.compSeries,
322
+ dataItem: this.compRemoveItem
240
323
  });
241
324
  }
242
325
 
@@ -265,8 +348,8 @@ var SchedulerEditTaskVue2 = {
265
348
  this.setShowOccurrenceDialog(value, event);
266
349
  },
267
350
  handleOccurrenceClick: function handleOccurrenceClick(event) {
268
- if (this.removeItem) {
269
- this.series = false;
351
+ if (this.compRemoveItem) {
352
+ this.currentSeries = false;
270
353
  this.setRemoveItem(this.$props.dataItem, event);
271
354
  this.setShowRemoveDialog(true, event);
272
355
  }
@@ -274,9 +357,9 @@ var SchedulerEditTaskVue2 = {
274
357
  this.setShowOccurrenceDialog(false, event);
275
358
  },
276
359
  handleSeriesClick: function handleSeriesClick(event) {
277
- if (this.removeItem) {
278
- this.series = true;
279
- var dataItem = findMaster(this.removeItem, this.fields, this.currentData);
360
+ if (this.compRemoveItem) {
361
+ this.currentSeries = true;
362
+ var dataItem = findMaster(this.compRemoveItem, this.ks.fields, this.ks.dataItems);
280
363
  this.setRemoveItem(dataItem, event);
281
364
  this.setShowRemoveDialog(true, event);
282
365
  }
@@ -53,7 +53,8 @@ var SchedulerTaskVue2 = {
53
53
  recurrenceExceptions: Array,
54
54
  recurrenceRule: String,
55
55
  recurrenceId: [String, Number],
56
- dataItem: Object
56
+ dataItem: Object,
57
+ editable: [Object, Boolean]
57
58
  },
58
59
  inject: {
59
60
  kendoLocalizationService: {
@@ -130,7 +131,7 @@ var SchedulerTaskVue2 = {
130
131
  },
131
132
  methods: {
132
133
  handleRemoveClick: function handleRemoveClick(event) {
133
- this.$emits('removeclick', {
134
+ this.$emit('removeclick', {
134
135
  event: event,
135
136
  target: this.task
136
137
  });
@@ -36,7 +36,8 @@ var SchedulerViewTaskVue2 = {
36
36
  recurrenceRule: String,
37
37
  recurrenceId: [String, Number],
38
38
  dataItem: Object,
39
- task: [String, Function, Object]
39
+ task: [String, Function, Object],
40
+ editable: [Object, Boolean]
40
41
  },
41
42
  // @ts-ignore
42
43
  setup: !gh ? undefined : function () {
@@ -79,7 +80,8 @@ var SchedulerViewTaskVue2 = {
79
80
  recurrenceExceptions: this.$props.recurrenceExceptions,
80
81
  recurrenceRule: this.$props.recurrenceRule,
81
82
  recurrenceId: this.$props.recurrenceId,
82
- dataItem: this.$props.dataItem
83
+ dataItem: this.$props.dataItem,
84
+ editable: this.$props.editable
83
85
  },
84
86
  tabIndex: this.$props.tabIndex,
85
87
  head: this.$props.head,
@@ -105,7 +107,12 @@ var SchedulerViewTaskVue2 = {
105
107
  recurrenceExceptions: this.$props.recurrenceExceptions,
106
108
  recurrenceRule: this.$props.recurrenceRule,
107
109
  recurrenceId: this.$props.recurrenceId,
108
- dataItem: this.$props.dataItem
110
+ dataItem: this.$props.dataItem,
111
+ editable: this.$props.editable,
112
+ onRemoveclick: this.handleRemoveClick,
113
+ on: this.v3 ? undefined : {
114
+ "removeclick": this.handleRemoveClick
115
+ }
109
116
  }, this.v3 ? function () {
110
117
  return [defaultSlot];
111
118
  } : [defaultSlot]);
@@ -116,6 +123,11 @@ var SchedulerViewTaskVue2 = {
116
123
  defaultSlots: defaultSlot
117
124
  });
118
125
  return taskRender;
126
+ },
127
+ methods: {
128
+ handleRemoveClick: function handleRemoveClick(event) {
129
+ this.$emit('removeclick', event);
130
+ }
119
131
  }
120
132
  };
121
133
  var SchedulerViewTask = SchedulerViewTaskVue2;
@@ -59,7 +59,10 @@ var AgendaViewVue2 = {
59
59
  default: DAYS_IN_WEEK_COUNT
60
60
  },
61
61
  task: [String, Function, Object],
62
- editable: [Object, Boolean]
62
+ editable: {
63
+ type: [Boolean, Object],
64
+ default: false
65
+ }
63
66
  },
64
67
  inject: {
65
68
  ks: {
@@ -149,6 +152,7 @@ var AgendaViewVue2 = {
149
152
  var EditSlot = this.$props.editSlot || SchedulerEditSlot;
150
153
  var intl = provideIntlService(this);
151
154
  var localization = provideLocalizationService(this);
155
+ var agendaSlots = this.agendaSlots;
152
156
  return (// @ts-ignore function children
153
157
  h(BaseView, {
154
158
  id: this.$props.id,
@@ -187,12 +191,14 @@ var AgendaViewVue2 = {
187
191
  nested: true
188
192
  }, _this.v3 ? function () {
189
193
  return [h(AgendaViewBody, {
190
- agendaSlots: _this.agendaSlots,
194
+ items: _this.items,
191
195
  attrs: _this.v3 ? undefined : {
192
- agendaSlots: _this.agendaSlots,
196
+ items: _this.items,
197
+ agendaSlots: agendaSlots,
193
198
  task: _this.$props.task,
194
199
  editable: _this.$props.editable
195
200
  },
201
+ agendaSlots: agendaSlots,
196
202
  task: _this.$props.task,
197
203
  editable: _this.$props.editable,
198
204
  onDataaction: _this.handleDataAction,
@@ -201,12 +207,14 @@ var AgendaViewVue2 = {
201
207
  }
202
208
  })];
203
209
  } : [h(AgendaViewBody, {
204
- agendaSlots: _this.agendaSlots,
210
+ items: _this.items,
205
211
  attrs: _this.v3 ? undefined : {
206
- agendaSlots: _this.agendaSlots,
212
+ items: _this.items,
213
+ agendaSlots: agendaSlots,
207
214
  task: _this.$props.task,
208
215
  editable: _this.$props.editable
209
216
  },
217
+ agendaSlots: agendaSlots,
210
218
  task: _this.$props.task,
211
219
  editable: _this.$props.editable,
212
220
  onDataaction: _this.handleDataAction,
@@ -236,12 +244,14 @@ var AgendaViewVue2 = {
236
244
  nested: true
237
245
  }, _this.v3 ? function () {
238
246
  return [h(AgendaViewBody, {
239
- agendaSlots: _this.agendaSlots,
247
+ items: _this.items,
240
248
  attrs: _this.v3 ? undefined : {
241
- agendaSlots: _this.agendaSlots,
249
+ items: _this.items,
250
+ agendaSlots: agendaSlots,
242
251
  task: _this.$props.task,
243
252
  editable: _this.$props.editable
244
253
  },
254
+ agendaSlots: agendaSlots,
245
255
  task: _this.$props.task,
246
256
  editable: _this.$props.editable,
247
257
  onDataaction: _this.handleDataAction,
@@ -250,12 +260,14 @@ var AgendaViewVue2 = {
250
260
  }
251
261
  })];
252
262
  } : [h(AgendaViewBody, {
253
- agendaSlots: _this.agendaSlots,
263
+ items: _this.items,
254
264
  attrs: _this.v3 ? undefined : {
255
- agendaSlots: _this.agendaSlots,
265
+ items: _this.items,
266
+ agendaSlots: agendaSlots,
256
267
  task: _this.$props.task,
257
268
  editable: _this.$props.editable
258
269
  },
270
+ agendaSlots: agendaSlots,
259
271
  task: _this.$props.task,
260
272
  editable: _this.$props.editable,
261
273
  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[];
@@ -14,6 +14,7 @@ var DAY_FORMAT = {
14
14
  var AgendaViewBodyVue2 = {
15
15
  name: 'KendoAgendaViewBody',
16
16
  props: {
17
+ items: Array,
17
18
  rangeIndex: Number,
18
19
  itemsPerSlot: Number,
19
20
  agendaSlots: Array,
@@ -52,7 +53,7 @@ var AgendaViewBodyVue2 = {
52
53
  var localization = provideLocalizationService(this);
53
54
  return h("div", {
54
55
  "class": "k-scheduler-body"
55
- }, [this.agendaSlots.filter(function (slot) {
56
+ }, [(this.items.length || true) && this.agendaSlots.filter(function (slot) {
56
57
  return slot.group.index === (_this.ri.groupIndex || 0);
57
58
  }).map(function (slot, slotIndex, filtered) {
58
59
  var _this2 = this;
@@ -91,6 +92,10 @@ var AgendaViewBodyVue2 = {
91
92
  col: 0,
92
93
  slot: this.$props.slot,
93
94
  viewSlot: this.$props.viewSlot,
95
+ onDataaction: this.handleDataAction,
96
+ on: this.v3 ? undefined : {
97
+ "dataaction": this.handleDataAction
98
+ },
94
99
  "class": "k-scheduler-datecolumn k-group-cell"
95
100
  }, this.v3 ? function () {
96
101
  return [h("div", [h("strong", {