@progress/kendo-vue-scheduler 3.2.4-dev.202204201306 → 3.2.5

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.
@@ -168,6 +168,14 @@ export interface SchedulerProps {
168
168
  * Sets a default selected `Date`. The `defaultDate` property is used to specify the initial rendered date, while still remaining in an uncontrolled mode.
169
169
  */
170
170
  defaultDate?: Date;
171
+ /**
172
+ * Function that returns custom validator for the form.
173
+ */
174
+ validator?: Function;
175
+ /**
176
+ * Function that returns custom initial values for the fields of the form.
177
+ */
178
+ modifyInitialFormValues?: Function;
171
179
  /**
172
180
  * Force a `rtl` mode. For more information refer to [RTL Support]({% slug globalization_scheduler %}#toc-right-to-left-support)
173
181
  */
@@ -103,6 +103,18 @@ var SchedulerVue2 = {
103
103
  type: Date,
104
104
  default: new Date()
105
105
  },
106
+ validator: {
107
+ type: Function,
108
+ default: function _default() {
109
+ return {};
110
+ }
111
+ },
112
+ modifyInitialFormValues: {
113
+ type: Function,
114
+ default: function _default(i) {
115
+ return i;
116
+ }
117
+ },
106
118
  header: [String, Function, Object],
107
119
  footer: [String, Function, Object],
108
120
  slotRender: [String, Function, Object],
@@ -133,7 +145,9 @@ var SchedulerVue2 = {
133
145
  slotDoubleClick: this.handleSlotDoubleClick,
134
146
  slotClick: this.handleSlotClick,
135
147
  taskDoubleClick: this.handleTaskDoubleClick,
136
- taskClick: this.handleTaskClick
148
+ taskClick: this.handleTaskClick,
149
+ ksValidator: this.validator,
150
+ ksModifyInitialFormValues: this.modifyInitialFormValues
137
151
  };
138
152
  },
139
153
  data: function data() {
@@ -6,4 +6,5 @@ import * as Vue from 'vue';
6
6
  type Vue2type = Vue.default;
7
7
  // @ts-ignore
8
8
  import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
9
+ // @ts-ignore
9
10
  export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -39,13 +39,7 @@ var SchedulerFormVue2 = {
39
39
  dataItem: Object,
40
40
  renderForm: Object,
41
41
  editor: [String, Function, Object],
42
- dialog: [String, Function, Object],
43
- validator: {
44
- type: Function,
45
- default: function _default() {
46
- return {};
47
- }
48
- }
42
+ dialog: [String, Function, Object]
49
43
  },
50
44
  inject: {
51
45
  ks: {
@@ -53,6 +47,12 @@ var SchedulerFormVue2 = {
53
47
  },
54
48
  kendoLocalizationService: {
55
49
  default: null
50
+ },
51
+ ksValidator: {
52
+ default: null
53
+ },
54
+ ksModifyInitialFormValues: {
55
+ default: null
56
56
  }
57
57
  },
58
58
  // @ts-ignore
@@ -100,9 +100,9 @@ var SchedulerFormVue2 = {
100
100
  }, this.v3 ? function () {
101
101
  return [// @ts-ignore function children
102
102
  h(Form, {
103
- initialValues: _this.$props.dataItem,
103
+ initialValues: _this.ksModifyInitialFormValues(_this.$props.dataItem),
104
104
  attrs: _this.v3 ? undefined : {
105
- initialValues: _this.$props.dataItem,
105
+ initialValues: _this.ksModifyInitialFormValues(_this.$props.dataItem),
106
106
  validator: _this.formValidator
107
107
  },
108
108
  onSubmit: _this.handleSubmit,
@@ -112,12 +112,14 @@ var SchedulerFormVue2 = {
112
112
  validator: _this.formValidator
113
113
  }, _this.v3 ? function () {
114
114
  return [// @ts-ignore function children
115
- h(SchedulerFormEditor // {...this.renderProps}
116
- , {
117
- as: Editor,
115
+ h(SchedulerFormEditor, {
116
+ renderForm: _this.renderForm // {...this.renderProps}
117
+ ,
118
118
  attrs: _this.v3 ? undefined : {
119
+ renderForm: _this.renderForm,
119
120
  as: Editor
120
- }
121
+ },
122
+ as: Editor
121
123
  }, _this.v3 ? function () {
122
124
  return [h(SchedulerActionButtons, {
123
125
  editSaveMessage: editSaveMessage,
@@ -144,10 +146,12 @@ var SchedulerFormVue2 = {
144
146
  }
145
147
  })])];
146
148
  } : [h(SchedulerFormEditor, {
147
- as: Editor,
149
+ renderForm: _this.renderForm,
148
150
  attrs: _this.v3 ? undefined : {
151
+ renderForm: _this.renderForm,
149
152
  as: Editor
150
- }
153
+ },
154
+ as: Editor
151
155
  }, _this.v3 ? function () {
152
156
  return [h(SchedulerActionButtons, {
153
157
  editSaveMessage: editSaveMessage,
@@ -174,9 +178,9 @@ var SchedulerFormVue2 = {
174
178
  }
175
179
  })])])];
176
180
  } : [h(Form, {
177
- initialValues: _this.$props.dataItem,
181
+ initialValues: _this.ksModifyInitialFormValues(_this.$props.dataItem),
178
182
  attrs: _this.v3 ? undefined : {
179
- initialValues: _this.$props.dataItem,
183
+ initialValues: _this.ksModifyInitialFormValues(_this.$props.dataItem),
180
184
  validator: _this.formValidator
181
185
  },
182
186
  onSubmit: _this.handleSubmit,
@@ -186,10 +190,12 @@ var SchedulerFormVue2 = {
186
190
  validator: _this.formValidator
187
191
  }, _this.v3 ? function () {
188
192
  return [h(SchedulerFormEditor, {
189
- as: Editor,
193
+ renderForm: _this.renderForm,
190
194
  attrs: _this.v3 ? undefined : {
195
+ renderForm: _this.renderForm,
191
196
  as: Editor
192
- }
197
+ },
198
+ as: Editor
193
199
  }, _this.v3 ? function () {
194
200
  return [h(SchedulerActionButtons, {
195
201
  editSaveMessage: editSaveMessage,
@@ -216,10 +222,12 @@ var SchedulerFormVue2 = {
216
222
  }
217
223
  })])];
218
224
  } : [h(SchedulerFormEditor, {
219
- as: Editor,
225
+ renderForm: _this.renderForm,
220
226
  attrs: _this.v3 ? undefined : {
227
+ renderForm: _this.renderForm,
221
228
  as: Editor
222
- }
229
+ },
230
+ as: Editor
223
231
  }, _this.v3 ? function () {
224
232
  return [h(SchedulerActionButtons, {
225
233
  editSaveMessage: editSaveMessage,
@@ -287,7 +295,7 @@ var SchedulerFormVue2 = {
287
295
  result[this.ks.fields.end] = [this.requiredValidator(formValueGetter(this.ks.fields.start)), this.endAfterStartValidator(formValueGetter(this.ks.fields.start), formValueGetter)].filter(Boolean).reduce(function (current, acc) {
288
296
  return current || acc;
289
297
  }, '');
290
- var additionalValidator = this.$props.validator(_dataItem, formValueGetter);
298
+ var additionalValidator = this.ksValidator(_dataItem, formValueGetter);
291
299
  return __assign(__assign({}, result), additionalValidator);
292
300
  }
293
301
  }
@@ -19,12 +19,8 @@ import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
21
  var inject = allVue.inject;
22
- import { SchedulerOccurrenceDialog } from '../components/SchedulerOccurrenceDialog';
23
- import { SchedulerForm } from '../components/SchedulerForm';
24
- import { SchedulerRemoveDialog } from '../components/SchedulerRemoveDialog';
25
22
  import { DATA_ACTION } from '../Scheduler';
26
23
  import { clone, Keys } from '@progress/kendo-vue-common';
27
- import { SchedulerDrag } from '../views/common/SchedulerDrag';
28
24
  import { SchedulerViewItem } from './SchedulerViewItem';
29
25
  import { ITEMS_FOCUS_ACTION, SLOTS_FOCUS_ACTION, useEditable } from '../hooks';
30
26
  import { FORM_ITEM_ACTION } from './hooks/use-form-item';
@@ -109,7 +105,12 @@ var SchedulerEditItemVue2 = {
109
105
  },
110
106
  provide: function provide() {
111
107
  return {
112
- ei: this.ei
108
+ ei: this.ei,
109
+ ksCancel: this.handleCancel,
110
+ ksFormSubmit: this.handleFormSubmit,
111
+ ksOccurrenceClick: this.handleOccurrenceClick,
112
+ ksSeriesClick: this.handleSeriesClick,
113
+ ksRemoveConfirm: this.handleRemoveConfirm
113
114
  };
114
115
  },
115
116
  data: function data() {
@@ -179,8 +180,6 @@ var SchedulerEditItemVue2 = {
179
180
  },
180
181
  // @ts-ignore
181
182
  render: function render(createElement) {
182
- var _this2 = this;
183
-
184
183
  var _this = this;
185
184
 
186
185
  var h = gh || createElement; // tslint:enable:max-line-length
@@ -300,7 +299,13 @@ var SchedulerEditItemVue2 = {
300
299
  vertical: this.vertical,
301
300
  dragHint: this.dragHint,
302
301
  resizeHint: this.resizeHint,
303
- format: this.format // refTo={this}
302
+ format: this.format,
303
+ showOccurrenceDialog: this.compShowOccurrenceDialog,
304
+ showRemoveDialog: this.compShowRemoveDialog,
305
+ formItem: this.compFormItem,
306
+ dragItem: this.compDragItem,
307
+ resizeItem: this.compResizeItem,
308
+ removeItem: this.compRemoveItem // refTo={this}
304
309
  ,
305
310
  itemRef: this.item,
306
311
  selected: selected,
@@ -340,6 +345,12 @@ var SchedulerEditItemVue2 = {
340
345
  dragHint: this.dragHint,
341
346
  resizeHint: this.resizeHint,
342
347
  format: this.format,
348
+ showOccurrenceDialog: this.compShowOccurrenceDialog,
349
+ showRemoveDialog: this.compShowRemoveDialog,
350
+ formItem: this.compFormItem,
351
+ dragItem: this.compDragItem,
352
+ resizeItem: this.compResizeItem,
353
+ removeItem: this.compRemoveItem,
343
354
  itemRef: this.item,
344
355
  selected: selected,
345
356
  tabIndex: this.tabIndex,
@@ -379,149 +390,7 @@ var SchedulerEditItemVue2 = {
379
390
  onResizeenddrag: this.handleResizeEndDrag,
380
391
  onResizestartdrag: this.handleResizeStartDrag,
381
392
  onResizeselease: this.handleResizeRelease
382
- }, this.v3 ? function () {
383
- return [_this2.compFormItem && !showOccurrenceDialog && editable.edit && h(SchedulerForm, {
384
- dataItem: _this2.compFormItem,
385
- attrs: _this2.v3 ? undefined : {
386
- dataItem: _this2.compFormItem
387
- },
388
- onSubmit: _this2.handleFormSubmit,
389
- on: _this2.v3 ? undefined : {
390
- "submit": _this2.handleFormSubmit,
391
- "close": _this2.handleCancel,
392
- "cancel": _this2.handleCancel
393
- },
394
- onClose: _this2.handleCancel,
395
- onCancel: _this2.handleCancel
396
- }), _this2.compDragItem && editable.drag && (Array.isArray(_this2.compDragItem) ? _this2.compDragItem.map(function (di, idx) {
397
- return h(SchedulerDrag, {
398
- key: idx,
399
- ignoreIsAllDay: ignoreIsAllDay,
400
- attrs: this.v3 ? undefined : {
401
- ignoreIsAllDay: ignoreIsAllDay,
402
- dataItem: di,
403
- vertical: this.$props.vertical,
404
- viewItem: ViewItem,
405
- item: this.$props.dataItem
406
- },
407
- dataItem: di,
408
- vertical: this.$props.vertical,
409
- viewItem: ViewItem,
410
- item: this.$props.dataItem
411
- });
412
- }, _this2) : h(SchedulerDrag, {
413
- ignoreIsAllDay: ignoreIsAllDay,
414
- attrs: _this2.v3 ? undefined : {
415
- ignoreIsAllDay: ignoreIsAllDay,
416
- dataItem: _this2.compDragItem,
417
- vertical: _this2.$props.vertical,
418
- viewItem: ViewItem,
419
- item: _this2.$props.dataItem
420
- },
421
- dataItem: _this2.compDragItem,
422
- vertical: _this2.$props.vertical,
423
- viewItem: ViewItem,
424
- item: _this2.$props.dataItem
425
- })), _this2.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog, {
426
- dataItem: _this2.compFormItem || _this2.compDragItem || _this2.compResizeItem || _this2.compRemoveItem,
427
- attrs: _this2.v3 ? undefined : {
428
- dataItem: _this2.compFormItem || _this2.compDragItem || _this2.compResizeItem || _this2.compRemoveItem,
429
- isRemove: !!_this2.compRemoveItem
430
- },
431
- isRemove: !!_this2.compRemoveItem,
432
- onClose: _this2.handleCancel,
433
- on: _this2.v3 ? undefined : {
434
- "close": _this2.handleCancel,
435
- "occurrenceclose": _this2.handleOccurrenceClick,
436
- "seriesclose": _this2.handleSeriesClick
437
- },
438
- onOccurrenceclose: _this2.handleOccurrenceClick,
439
- onSeriesclose: _this2.handleSeriesClick
440
- }), _this2.compShowRemoveDialog && _this2.compRemoveItem && editable.remove && h(SchedulerRemoveDialog, {
441
- dataItem: _this2.compRemoveItem,
442
- attrs: _this2.v3 ? undefined : {
443
- dataItem: _this2.compRemoveItem
444
- },
445
- onClose: _this2.handleCancel,
446
- on: _this2.v3 ? undefined : {
447
- "close": _this2.handleCancel,
448
- "cancel": _this2.handleCancel,
449
- "confirm": _this2.handleRemoveConfirm
450
- },
451
- onCancel: _this2.handleCancel,
452
- onConfirm: _this2.handleRemoveConfirm
453
- })];
454
- } : [_this2.compFormItem && !showOccurrenceDialog && editable.edit && h(SchedulerForm, {
455
- dataItem: _this2.compFormItem,
456
- attrs: _this2.v3 ? undefined : {
457
- dataItem: _this2.compFormItem
458
- },
459
- onSubmit: _this2.handleFormSubmit,
460
- on: _this2.v3 ? undefined : {
461
- "submit": _this2.handleFormSubmit,
462
- "close": _this2.handleCancel,
463
- "cancel": _this2.handleCancel
464
- },
465
- onClose: _this2.handleCancel,
466
- onCancel: _this2.handleCancel
467
- }), _this2.compDragItem && editable.drag && (Array.isArray(_this2.compDragItem) ? _this2.compDragItem.map(function (di, idx) {
468
- return h(SchedulerDrag, {
469
- key: idx,
470
- ignoreIsAllDay: ignoreIsAllDay,
471
- attrs: this.v3 ? undefined : {
472
- ignoreIsAllDay: ignoreIsAllDay,
473
- dataItem: di,
474
- vertical: this.$props.vertical,
475
- viewItem: ViewItem,
476
- item: this.$props.dataItem
477
- },
478
- dataItem: di,
479
- vertical: this.$props.vertical,
480
- viewItem: ViewItem,
481
- item: this.$props.dataItem
482
- });
483
- }, _this2) : h(SchedulerDrag, {
484
- ignoreIsAllDay: ignoreIsAllDay,
485
- attrs: _this2.v3 ? undefined : {
486
- ignoreIsAllDay: ignoreIsAllDay,
487
- dataItem: _this2.compDragItem,
488
- vertical: _this2.$props.vertical,
489
- viewItem: ViewItem,
490
- item: _this2.$props.dataItem
491
- },
492
- dataItem: _this2.compDragItem,
493
- vertical: _this2.$props.vertical,
494
- viewItem: ViewItem,
495
- item: _this2.$props.dataItem
496
- })), _this2.compShowOccurrenceDialog && h(SchedulerOccurrenceDialog, {
497
- dataItem: _this2.compFormItem || _this2.compDragItem || _this2.compResizeItem || _this2.compRemoveItem,
498
- attrs: _this2.v3 ? undefined : {
499
- dataItem: _this2.compFormItem || _this2.compDragItem || _this2.compResizeItem || _this2.compRemoveItem,
500
- isRemove: !!_this2.compRemoveItem
501
- },
502
- isRemove: !!_this2.compRemoveItem,
503
- onClose: _this2.handleCancel,
504
- on: _this2.v3 ? undefined : {
505
- "close": _this2.handleCancel,
506
- "occurrenceclose": _this2.handleOccurrenceClick,
507
- "seriesclose": _this2.handleSeriesClick
508
- },
509
- onOccurrenceclose: _this2.handleOccurrenceClick,
510
- onSeriesclose: _this2.handleSeriesClick
511
- }), _this2.compShowRemoveDialog && _this2.compRemoveItem && editable.remove && h(SchedulerRemoveDialog, {
512
- dataItem: _this2.compRemoveItem,
513
- attrs: _this2.v3 ? undefined : {
514
- dataItem: _this2.compRemoveItem
515
- },
516
- onClose: _this2.handleCancel,
517
- on: _this2.v3 ? undefined : {
518
- "close": _this2.handleCancel,
519
- "cancel": _this2.handleCancel,
520
- "confirm": _this2.handleRemoveConfirm
521
- },
522
- onCancel: _this2.handleCancel,
523
- onConfirm: _this2.handleRemoveConfirm
524
- })]) // {((resizeItem && editable.resize)) && (Array.isArray(resizeItem)
393
+ }) // {((resizeItem && editable.resize)) && (Array.isArray(resizeItem)
525
394
  // ? (resizeItem as any).map((ri, idx) => (
526
395
  // <Resize
527
396
  // key={idx}
@@ -179,6 +179,18 @@ export interface SchedulerItemProps extends Item {
179
179
  maxSiblingsPerSlot?: number;
180
180
  /** @hidden */
181
181
  itemTitle?: string;
182
+ /** @hidden */
183
+ showRemoveDialog?: boolean;
184
+ /** @hidden */
185
+ showOccurrenceDialog?: boolean;
186
+ /** @hidden */
187
+ formItem?: object;
188
+ /** @hidden */
189
+ dragItem?: object;
190
+ /** @hidden */
191
+ resizeItem?: object;
192
+ /** @hidden */
193
+ removeItem?: object;
182
194
  }
183
195
  /**
184
196
  * Represents the object which is returned from the `ref` callback of the [SchedulerItem]({% slug api_scheduler_scheduleritem %}).
@@ -24,7 +24,10 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
24
24
  import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
25
25
  import { messages, deleteTitle } from '../messages';
26
26
  import { useEditable } from '../hooks';
27
- import { formatEventTime } from '../utils'; // tslint:enable:max-line-length
27
+ import { formatEventTime } from '../utils';
28
+ import { SchedulerOccurrenceDialog } from '../components/SchedulerOccurrenceDialog';
29
+ import { SchedulerRemoveDialog } from '../components/SchedulerRemoveDialog';
30
+ import { SchedulerForm } from '../components/SchedulerForm'; // tslint:enable:max-line-length
28
31
 
29
32
  var SchedulerItemVue2 = {
30
33
  name: 'KendoSchedulerItem',
@@ -88,7 +91,19 @@ var SchedulerItemVue2 = {
88
91
  resizeHint: Boolean,
89
92
  format: String,
90
93
  maxSiblingsPerSlot: Number,
91
- itemTitle: String
94
+ itemTitle: String,
95
+ formItem: Object,
96
+ dragItem: Object,
97
+ resizeItem: Object,
98
+ removeItem: Object,
99
+ showOccurrenceDialog: {
100
+ type: Boolean,
101
+ default: undefined
102
+ },
103
+ showRemoveDialog: {
104
+ type: Boolean,
105
+ default: undefined
106
+ }
92
107
  },
93
108
  data: function data() {
94
109
  return {
@@ -113,6 +128,21 @@ var SchedulerItemVue2 = {
113
128
  },
114
129
  itemDoubleClick: {
115
130
  default: null
131
+ },
132
+ ksCancel: {
133
+ default: null
134
+ },
135
+ ksFormSubmit: {
136
+ default: null
137
+ },
138
+ ksOccurrenceClick: {
139
+ default: null
140
+ },
141
+ ksSeriesClick: {
142
+ default: null
143
+ },
144
+ ksRemoveConfirm: {
145
+ default: null
116
146
  }
117
147
  },
118
148
  computed: {
@@ -281,7 +311,48 @@ var SchedulerItemVue2 = {
281
311
  "class": "k-icon k-i-reload"
282
312
  }), !this.$props.isRecurring && this.$props.isException && h("span", {
283
313
  "class": "k-icon k-i-non-recurrence"
284
- })]), defaultSlot, !this.$props.resizeHint && h("span", {
314
+ })]), this.formItem && !this.showOccurrenceDialog && editable.edit && h(SchedulerForm, {
315
+ dataItem: this.formItem,
316
+ attrs: this.v3 ? undefined : {
317
+ dataItem: this.formItem
318
+ },
319
+ onSubmit: this.ksFormSubmit,
320
+ on: this.v3 ? undefined : {
321
+ "submit": this.ksFormSubmit,
322
+ "close": this.ksCancel,
323
+ "cancel": this.ksCancel
324
+ },
325
+ onClose: this.ksCancel,
326
+ onCancel: this.ksCancel
327
+ }), this.showOccurrenceDialog && h(SchedulerOccurrenceDialog, {
328
+ dataItem: this.formItem || this.dragItem || this.resizeItem || this.removeItem,
329
+ attrs: this.v3 ? undefined : {
330
+ dataItem: this.formItem || this.dragItem || this.resizeItem || this.removeItem,
331
+ isRemove: !!this.removeItem
332
+ },
333
+ isRemove: !!this.removeItem,
334
+ onClose: this.ksCancel,
335
+ on: this.v3 ? undefined : {
336
+ "close": this.ksCancel,
337
+ "occurrenceclose": this.ksOccurrenceClick,
338
+ "seriesclose": this.ksSeriesClick
339
+ },
340
+ onOccurrenceclose: this.ksOccurrenceClick,
341
+ onSeriesclose: this.ksSeriesClick
342
+ }), this.showRemoveDialog && this.removeItem && editable.remove && h(SchedulerRemoveDialog, {
343
+ dataItem: this.removeItem,
344
+ attrs: this.v3 ? undefined : {
345
+ dataItem: this.removeItem
346
+ },
347
+ onClose: this.ksCancel,
348
+ on: this.v3 ? undefined : {
349
+ "close": this.ksCancel,
350
+ "cancel": this.ksCancel,
351
+ "confirm": this.ksRemoveConfirm
352
+ },
353
+ onCancel: this.ksCancel,
354
+ onConfirm: this.ksRemoveConfirm
355
+ }), defaultSlot, !this.$props.resizeHint && h("span", {
285
356
  "class": "k-event-actions"
286
357
  }, [editable.remove && h("a", {
287
358
  tabIndex: -1,
@@ -67,7 +67,18 @@ var SchedulerViewItemVue2 = {
67
67
  dragHint: Boolean,
68
68
  resizeHint: Boolean,
69
69
  format: String,
70
- refTo: Function
70
+ showOccurrenceDialog: {
71
+ type: Boolean,
72
+ default: undefined
73
+ },
74
+ showRemoveDialog: {
75
+ type: Boolean,
76
+ default: undefined
77
+ },
78
+ formItem: Object,
79
+ dragItem: Object,
80
+ resizeItem: Object,
81
+ removeItem: Object
71
82
  },
72
83
  inject: {
73
84
  kendoIntlService: {
@@ -191,6 +202,12 @@ var SchedulerViewItemVue2 = {
191
202
  resizeHint: this.resizeHint,
192
203
  format: this.format,
193
204
  itemTitle: this.itemTitle,
205
+ showOccurrenceDialog: this.showOccurrenceDialog,
206
+ showRemoveDialog: this.showRemoveDialog,
207
+ formItem: this.formItem,
208
+ dragItem: this.dragItem,
209
+ resizeItem: this.resizeItem,
210
+ removeItem: this.removeItem,
194
211
  maxSiblingsPerSlot: this.maxSiblingsPerSlot
195
212
  },
196
213
  item: this.item,
@@ -229,6 +246,12 @@ var SchedulerViewItemVue2 = {
229
246
  resizeHint: this.resizeHint,
230
247
  format: this.format,
231
248
  itemTitle: this.itemTitle,
249
+ showOccurrenceDialog: this.showOccurrenceDialog,
250
+ showRemoveDialog: this.showRemoveDialog,
251
+ formItem: this.formItem,
252
+ dragItem: this.dragItem,
253
+ resizeItem: this.resizeItem,
254
+ removeItem: this.removeItem,
232
255
  maxSiblingsPerSlot: this.maxSiblingsPerSlot,
233
256
  style: __assign({
234
257
  visibility: this.visible ? undefined : 'hidden',
@@ -322,7 +345,28 @@ var SchedulerViewItemVue2 = {
322
345
  h: h,
323
346
  template: this.$props.item,
324
347
  defaultRendering: itemRenderDefaultRendering,
325
- defaultSlots: defaultSlot
348
+ defaultSlots: defaultSlot,
349
+ additionalListeners: {
350
+ // keydown: this.handleKeyDown,
351
+ // keyup: this.handleKeyUp,
352
+ // Focus
353
+ // focus: this.handleFocus,
354
+ // Mouse
355
+ // mouseup: this.handleMouseUp,
356
+ // mousedown: this.handleMouseDown,
357
+ // click: this.handleClick,
358
+ doubleclick: this.handleDoubleClick,
359
+ removeclick: this.handleRemoveClick,
360
+ // Drag
361
+ press: this.handlePress,
362
+ drag: this.handleDrag,
363
+ release: this.handleRelease,
364
+ // Resize
365
+ resizepress: this.handleResizePress,
366
+ resizeenddrag: this.handleResizeEndDrag,
367
+ resizestartdrag: this.handleResizeStartDrag,
368
+ resizeselease: this.handleResizeRelease
369
+ }
326
370
  });
327
371
  return itemRender;
328
372
  },
@@ -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: 1650459721,
8
+ publishDate: 1650631091,
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
  };
@@ -75,7 +75,8 @@ var SchedulerDragVue2 = {
75
75
  });
76
76
  mapItemsToSlots(this.items, slots);
77
77
  return (// fragment
78
- h("div", [this.items.map(function (item, idx) {
78
+ // <div>
79
+ this.items.map(function (item, idx) {
79
80
  return h(SchedulerViewItem, {
80
81
  key: idx,
81
82
  uid: item.uid,
@@ -138,7 +139,8 @@ var SchedulerDragVue2 = {
138
139
  vertical: this.$props.vertical,
139
140
  ignoreIsAllDay: this.$props.ignoreIsAllDay
140
141
  });
141
- }, this)])
142
+ }, this) // </div>
143
+
142
144
  );
143
145
  }
144
146
  };
@@ -102,6 +102,10 @@ export interface MultiDayViewProps extends SchedulerViewProps {
102
102
  * Overrides the `item` prop of the Scheduler for the specified view only.
103
103
  */
104
104
  item?: any;
105
+ /**
106
+ * Overrides the `dragItem` prop of the Scheduler for the specified view only.
107
+ */
108
+ dragItem?: any;
105
109
  /**
106
110
  * Overrides the `viewItem` prop of the Scheduler for the specified view only.
107
111
  */