@progress/kendo-vue-scheduler 3.2.5 → 3.2.7-dev.202205021145

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/BaseView.js +14 -12
  3. package/dist/es/components/SchedulerForm.js +1 -1
  4. package/dist/es/components/header/view-selector/ViewSelectorList.js +9 -7
  5. package/dist/es/editors/SchedulerFormEditor.js +25 -2
  6. package/dist/es/hooks/use-items-focus.js +8 -8
  7. package/dist/es/hooks/use-items-selection.js +11 -11
  8. package/dist/es/hooks/use-slots-focus.js +20 -20
  9. package/dist/es/hooks/use-slots-selection.js +4 -4
  10. package/dist/es/hooks/useSlotExpand.js +1 -1
  11. package/dist/es/items/SchedulerEditItem.d.ts +1 -1
  12. package/dist/es/items/SchedulerEditItem.js +145 -119
  13. package/dist/es/items/SchedulerItem.d.ts +1 -0
  14. package/dist/es/items/SchedulerItem.js +408 -167
  15. package/dist/es/items/SchedulerViewItem.d.ts +1 -0
  16. package/dist/es/items/SchedulerViewItem.js +17 -17
  17. package/dist/es/items/hooks/use-drag-item.js +5 -3
  18. package/dist/es/items/hooks/use-resize-item.d.ts +2 -4
  19. package/dist/es/items/hooks/use-resize-item.js +278 -176
  20. package/dist/es/models/SchedulerView.d.ts +2 -0
  21. package/dist/es/package-metadata.js +1 -1
  22. package/dist/es/slots/SchedulerEditSlot.js +36 -48
  23. package/dist/es/slots/SchedulerSlot.d.ts +2 -0
  24. package/dist/es/slots/SchedulerSlot.js +46 -3
  25. package/dist/es/slots/SchedulerViewSlot.js +33 -5
  26. package/dist/es/tasks/SchedulerEditTask.js +14 -64
  27. package/dist/es/tasks/SchedulerTask.d.ts +12 -2
  28. package/dist/es/tasks/SchedulerTask.js +54 -3
  29. package/dist/es/tasks/SchedulerViewTask.js +21 -3
  30. package/dist/es/utils/index.d.ts +4 -0
  31. package/dist/es/utils/index.js +23 -14
  32. package/dist/es/views/common/SchedulerDrag.js +1 -0
  33. package/dist/es/views/common/SchedulerResize.js +69 -21
  34. package/dist/es/views/common/VerticalResourceIterator.js +2 -2
  35. package/dist/es/views/day/DayView.js +2 -1
  36. package/dist/es/views/day/MultiDayView.d.ts +4 -0
  37. package/dist/es/views/day/MultiDayView.js +86 -15
  38. package/dist/es/views/week/WeekView.js +2 -1
  39. package/dist/npm/components/BaseView.js +14 -12
  40. package/dist/npm/components/SchedulerForm.js +1 -1
  41. package/dist/npm/components/header/view-selector/ViewSelectorList.js +9 -7
  42. package/dist/npm/editors/SchedulerFormEditor.js +25 -2
  43. package/dist/npm/hooks/use-items-focus.js +8 -8
  44. package/dist/npm/hooks/use-items-selection.js +11 -11
  45. package/dist/npm/hooks/use-slots-focus.js +20 -20
  46. package/dist/npm/hooks/use-slots-selection.js +4 -4
  47. package/dist/npm/hooks/useSlotExpand.js +1 -1
  48. package/dist/npm/items/SchedulerEditItem.d.ts +1 -1
  49. package/dist/npm/items/SchedulerEditItem.js +144 -118
  50. package/dist/npm/items/SchedulerItem.d.ts +1 -0
  51. package/dist/npm/items/SchedulerItem.js +407 -166
  52. package/dist/npm/items/SchedulerViewItem.d.ts +1 -0
  53. package/dist/npm/items/SchedulerViewItem.js +17 -17
  54. package/dist/npm/items/hooks/use-drag-item.js +5 -3
  55. package/dist/npm/items/hooks/use-resize-item.d.ts +2 -4
  56. package/dist/npm/items/hooks/use-resize-item.js +281 -176
  57. package/dist/npm/models/SchedulerView.d.ts +2 -0
  58. package/dist/npm/package-metadata.js +1 -1
  59. package/dist/npm/slots/SchedulerEditSlot.js +35 -48
  60. package/dist/npm/slots/SchedulerSlot.d.ts +2 -0
  61. package/dist/npm/slots/SchedulerSlot.js +47 -3
  62. package/dist/npm/slots/SchedulerViewSlot.js +33 -5
  63. package/dist/npm/tasks/SchedulerEditTask.js +14 -66
  64. package/dist/npm/tasks/SchedulerTask.d.ts +12 -2
  65. package/dist/npm/tasks/SchedulerTask.js +56 -3
  66. package/dist/npm/tasks/SchedulerViewTask.js +21 -3
  67. package/dist/npm/utils/index.d.ts +4 -0
  68. package/dist/npm/utils/index.js +24 -15
  69. package/dist/npm/views/common/SchedulerDrag.js +1 -0
  70. package/dist/npm/views/common/SchedulerResize.js +69 -21
  71. package/dist/npm/views/common/VerticalResourceIterator.js +2 -2
  72. package/dist/npm/views/day/DayView.js +2 -1
  73. package/dist/npm/views/day/MultiDayView.d.ts +4 -0
  74. package/dist/npm/views/day/MultiDayView.js +87 -15
  75. package/dist/npm/views/week/WeekView.js +2 -1
  76. package/package.json +12 -12
@@ -20,7 +20,7 @@ var allVue = Vue;
20
20
  var gh = allVue.h;
21
21
  var inject = allVue.inject;
22
22
  import { COLLECTION_ACTION } from '../utils';
23
- import { getDefaultSlots } from '@progress/kendo-vue-common';
23
+ import { Draggable, 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';
@@ -189,6 +189,11 @@ var SchedulerItemVue2 = {
189
189
  item: this
190
190
  });
191
191
  },
192
+ mounted: function mounted() {
193
+ if (!this.element) {
194
+ this.element = this.$refs.draggable && this.$refs.draggable.element;
195
+ }
196
+ },
192
197
  destroyed: !!gh ? undefined : function () {
193
198
  this.setItems({
194
199
  type: COLLECTION_ACTION.remove,
@@ -211,152 +216,330 @@ var SchedulerItemVue2 = {
211
216
  },
212
217
  // @ts-ignore
213
218
  render: function render(createElement) {
214
- var h = gh || createElement;
215
- var defaultSlot = getDefaultSlots(this); // const { item, element } = useSchedulerItem(this.$props, this.$el);
219
+ var _this = this;
216
220
 
221
+ var h = gh || createElement;
222
+ var defaultSlot = getDefaultSlots(this);
217
223
  var editable = useEditable(this.$props.editable);
218
224
  this.intl = provideIntlService(this);
219
225
  var localization = provideLocalizationService(this);
220
- var deleteMessage = localization.toLanguageString(deleteTitle, messages[deleteTitle]); // Handlers
221
- // Effects
222
- // // Drag Effects
223
- // useDraggable(element, {
224
- // onPress: this.handlePress,
225
- // onDrag: this.handleDrag,
226
- // onRelease: this.handleRelease
227
- // });
228
- // // Resize Effects
229
- // useDraggable(this.resizeEast, {
230
- // onPress: this.handleResizePress,
231
- // onDrag: this.handleResizeEndDrag,
232
- // onRelease: this.handleResizeRelease
233
- // });
234
- // useDraggable(this.resizeWest, {
235
- // onPress: this.handleResizePress,
236
- // onDrag: this.handleResizeStartDrag,
237
- // onRelease: this.handleResizeRelease
238
- // });
239
- // useDraggable(this.resizeNorth, {
240
- // onPress: this.handleResizePress,
241
- // onDrag: this.handleResizeStartDrag,
242
- // onRelease: this.handleResizeRelease
243
- // });
244
- // useDraggable(this.resizeSouth, {
245
- // onPress: this.handleResizePress,
246
- // onDrag: this.handleResizeEndDrag,
247
- // onRelease: this.handleResizeRelease
248
- // });
249
-
250
- return (// <Draggable
251
- // onPress={this.handlePress}
252
- // onDrag={this.handleDrag}
253
- // onRelease={this.handleRelease}
254
- // ref={'draggable'}
255
- // >
256
- // @ts-ignore function children
257
- h("div", {
258
- id: this.$props.id,
259
- attrs: this.v3 ? undefined : {
260
- id: this.$props.id,
261
- tabIndex: this.currentTabIndex,
262
- // Aria
263
- "aria-label": this.eventLabel,
264
- "aria-selected": this.$props.selected // Focus
226
+ var deleteMessage = localization.toLanguageString(deleteTitle, messages[deleteTitle]);
227
+ return (// @ts-ignore function children
228
+ h(Draggable, {
229
+ onPress: this.handlePress,
230
+ on: this.v3 ? undefined : {
231
+ "press": this.handlePress,
232
+ "drag": this.handleDrag,
233
+ "release": this.handleRelease
234
+ },
235
+ onDrag: this.handleDrag,
236
+ onRelease: this.handleRelease,
237
+ ref: 'draggable'
238
+ }, this.v3 ? function () {
239
+ return [h("div", {
240
+ id: _this.$props.id,
241
+ attrs: _this.v3 ? undefined : {
242
+ id: _this.$props.id,
243
+ tabIndex: _this.currentTabIndex,
244
+ // Aria
245
+ "aria-label": _this.eventLabel,
246
+ "aria-selected": _this.$props.selected // Focus
247
+ ,
248
+ "data-group-index": _this.$props.group.index,
249
+ "data-range-index": _this.$props.range.index
250
+ },
251
+ style: _this.computedStyle,
252
+ tabIndex: _this.currentTabIndex,
253
+ "class": _this.itemClassName,
254
+ "aria-label": _this.eventLabel,
255
+ "aria-selected": _this.$props.selected,
256
+ onFocusin: _this.handleFocus,
257
+ on: _this.v3 ? undefined : {
258
+ "focusin": _this.handleFocus,
259
+ "blur": _this.handleBlur,
260
+ "mouseup": _this.handleMouseUp,
261
+ "mousedown": _this.handleMouseDown,
262
+ "click": _this.handleClick,
263
+ "mouseover": _this.handleMouseOver,
264
+ "mouseout": _this.handleMouseOut,
265
+ "mouseenter": _this.handleMouseEnter,
266
+ "mouseleave": _this.handleMouseLeave,
267
+ "dblclick": _this.handleDoubleClick,
268
+ "keydown": _this.handleKeyDown,
269
+ "keypress": _this.handleKeyPress,
270
+ "keyup": _this.handleKeyUp
271
+ },
272
+ onBlur: _this.handleBlur // Mouse
273
+ ,
274
+ onMouseup: _this.handleMouseUp,
275
+ onMousedown: _this.handleMouseDown,
276
+ onClick: _this.handleClick,
277
+ onMouseover: _this.handleMouseOver,
278
+ onMouseout: _this.handleMouseOut,
279
+ onMouseenter: _this.handleMouseEnter,
280
+ onMouseleave: _this.handleMouseLeave,
281
+ onDblclick: _this.handleDoubleClick // Keyboard
265
282
  ,
266
- "data-group-index": this.$props.group.index,
267
- "data-range-index": this.$props.range.index
283
+ onKeydown: _this.handleKeyDown,
284
+ onKeypress: _this.handleKeyPress,
285
+ onKeyup: _this.handleKeyUp,
286
+ "data-group-index": _this.$props.group.index,
287
+ "data-range-index": _this.$props.range.index
288
+ }, [!_this.$props.resizeHint && h("span", {
289
+ "class": "k-event-actions"
290
+ }, [_this.$props.tail && h("span", {
291
+ "class": "k-icon k-i-arrow-60-left"
292
+ }), _this.$props.isRecurring && !_this.$props.isException && h("span", {
293
+ "class": "k-icon k-i-reload"
294
+ }), !_this.$props.isRecurring && _this.$props.isException && h("span", {
295
+ "class": "k-icon k-i-non-recurrence"
296
+ })]), _this.formItem && !_this.showOccurrenceDialog && editable.edit && h(SchedulerForm, {
297
+ dataItem: _this.formItem,
298
+ attrs: _this.v3 ? undefined : {
299
+ dataItem: _this.formItem
300
+ },
301
+ onSubmit: _this.ksFormSubmit,
302
+ on: _this.v3 ? undefined : {
303
+ "submit": _this.ksFormSubmit,
304
+ "close": _this.ksCancel,
305
+ "cancel": _this.ksCancel
306
+ },
307
+ onClose: _this.ksCancel,
308
+ onCancel: _this.ksCancel
309
+ }), _this.showOccurrenceDialog && h(SchedulerOccurrenceDialog, {
310
+ dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
311
+ attrs: _this.v3 ? undefined : {
312
+ dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
313
+ isRemove: !!_this.removeItem
314
+ },
315
+ isRemove: !!_this.removeItem,
316
+ onClose: _this.ksCancel,
317
+ on: _this.v3 ? undefined : {
318
+ "close": _this.ksCancel,
319
+ "occurrenceclose": _this.ksOccurrenceClick,
320
+ "seriesclose": _this.ksSeriesClick
321
+ },
322
+ onOccurrenceclose: _this.ksOccurrenceClick,
323
+ onSeriesclose: _this.ksSeriesClick
324
+ }), _this.showRemoveDialog && _this.removeItem && editable.remove && h(SchedulerRemoveDialog, {
325
+ dataItem: _this.removeItem,
326
+ attrs: _this.v3 ? undefined : {
327
+ dataItem: _this.removeItem
328
+ },
329
+ onClose: _this.ksCancel,
330
+ on: _this.v3 ? undefined : {
331
+ "close": _this.ksCancel,
332
+ "cancel": _this.ksCancel,
333
+ "confirm": _this.ksRemoveConfirm
334
+ },
335
+ onCancel: _this.ksCancel,
336
+ onConfirm: _this.ksRemoveConfirm
337
+ }), defaultSlot, !_this.$props.resizeHint && h("span", {
338
+ "class": "k-event-actions"
339
+ }, [editable.remove && h("a", {
340
+ tabIndex: -1,
341
+ attrs: _this.v3 ? undefined : {
342
+ tabIndex: -1,
343
+ "aria-hidden": "true",
344
+ title: deleteMessage,
345
+ "aria-label": deleteMessage
346
+ },
347
+ "aria-hidden": "true",
348
+ "class": "k-link k-event-delete",
349
+ title: deleteMessage,
350
+ "aria-label": deleteMessage,
351
+ onClick: _this.handleRemoveClick,
352
+ on: _this.v3 ? undefined : {
353
+ "click": _this.handleRemoveClick
354
+ }
355
+ }, [h("span", {
356
+ "class": "k-icon k-i-close"
357
+ })]), _this.$props.head && h("span", {
358
+ "class": "k-icon k-i-arrow-60-right"
359
+ })]), editable.resize && _this.$props.vertical && [// @ts-ignore function children
360
+ h(Draggable, {
361
+ onPress: _this.handleResizePress,
362
+ on: _this.v3 ? undefined : {
363
+ "press": _this.handleResizePress,
364
+ "drag": _this.handleResizeStartDrag,
365
+ "release": _this.handleResizeRelease
366
+ },
367
+ onDrag: _this.handleResizeStartDrag,
368
+ onRelease: _this.handleResizeRelease
369
+ }, _this.v3 ? function () {
370
+ return [h("span", {
371
+ "class": "k-resize-handle k-resize-n",
372
+ ref: _this.resizeNorth
373
+ })];
374
+ } : [h("span", {
375
+ "class": "k-resize-handle k-resize-n",
376
+ ref: _this.resizeNorth
377
+ })]), // @ts-ignore function children
378
+ h(Draggable, {
379
+ onPress: _this.handleResizePress,
380
+ on: _this.v3 ? undefined : {
381
+ "press": _this.handleResizePress,
382
+ "drag": _this.handleResizeEndDrag,
383
+ "release": _this.handleResizeRelease
384
+ },
385
+ onDrag: _this.handleResizeEndDrag,
386
+ onRelease: _this.handleResizeRelease
387
+ }, _this.v3 ? function () {
388
+ return [h("span", {
389
+ "class": "k-resize-handle k-resize-s",
390
+ ref: _this.resizeSouth
391
+ })];
392
+ } : [h("span", {
393
+ "class": "k-resize-handle k-resize-s",
394
+ ref: _this.resizeSouth
395
+ })])], editable.resize && !_this.$props.vertical && [// @ts-ignore function children
396
+ h(Draggable, {
397
+ onPress: _this.handleResizePress,
398
+ on: _this.v3 ? undefined : {
399
+ "press": _this.handleResizePress,
400
+ "drag": _this.handleResizeStartDrag,
401
+ "release": _this.handleResizeRelease
402
+ },
403
+ onDrag: _this.handleResizeStartDrag,
404
+ onRelease: _this.handleResizeRelease
405
+ }, _this.v3 ? function () {
406
+ return [h("span", {
407
+ "class": "k-resize-handle k-resize-w",
408
+ ref: _this.resizeWest
409
+ })];
410
+ } : [h("span", {
411
+ "class": "k-resize-handle k-resize-w",
412
+ ref: _this.resizeWest
413
+ })]), // @ts-ignore function children
414
+ h(Draggable, {
415
+ onPress: _this.handleResizePress,
416
+ on: _this.v3 ? undefined : {
417
+ "press": _this.handleResizePress,
418
+ "drag": _this.handleResizeEndDrag,
419
+ "release": _this.handleResizeRelease
420
+ },
421
+ onDrag: _this.handleResizeEndDrag,
422
+ onRelease: _this.handleResizeRelease
423
+ }, _this.v3 ? function () {
424
+ return [h("span", {
425
+ "class": "k-resize-handle k-resize-e",
426
+ ref: _this.resizeEast
427
+ })];
428
+ } : [h("span", {
429
+ "class": "k-resize-handle k-resize-e",
430
+ ref: _this.resizeEast
431
+ })])], _this.$props.resizeHint && [h("div", {
432
+ "class": "k-marquee-color",
433
+ style: {
434
+ borderColor: _this.color,
435
+ backgroundColor: _this.color
436
+ }
437
+ }), h("div", {
438
+ "class": "k-marquee-text"
439
+ }, [!_this.$props.tail && h("div", {
440
+ "class": "k-label-top"
441
+ }, [_this.intl.formatDate(_this.$props.zonedStart, _this.$props.format)]), !_this.$props.head && h("div", {
442
+ "class": "k-label-bottom"
443
+ }, [_this.intl.formatDate(_this.$props.zonedEnd, _this.$props.format)])])]])];
444
+ } : [h("div", {
445
+ id: _this.$props.id,
446
+ attrs: _this.v3 ? undefined : {
447
+ id: _this.$props.id,
448
+ tabIndex: _this.currentTabIndex,
449
+ "aria-label": _this.eventLabel,
450
+ "aria-selected": _this.$props.selected,
451
+ "data-group-index": _this.$props.group.index,
452
+ "data-range-index": _this.$props.range.index
268
453
  },
269
- style: this.computedStyle,
270
- tabIndex: this.currentTabIndex,
271
- "class": this.itemClassName,
272
- "aria-label": this.eventLabel,
273
- "aria-selected": this.$props.selected,
274
- onFocus: this.handleFocus,
275
- on: this.v3 ? undefined : {
276
- "focus": this.handleFocus,
277
- "blur": this.handleBlur,
278
- "mouseup": this.handleMouseUp,
279
- "mousedown": this.handleMouseDown,
280
- "click": this.handleClick,
281
- "mouseover": this.handleMouseOver,
282
- "mouseout": this.handleMouseOut,
283
- "mouseenter": this.handleMouseEnter,
284
- "mouseleave": this.handleMouseLeave,
285
- "dblclick": this.handleDoubleClick,
286
- "keydown": this.handleKeyDown,
287
- "keypress": this.handleKeyPress,
288
- "keyup": this.handleKeyUp
454
+ style: _this.computedStyle,
455
+ tabIndex: _this.currentTabIndex,
456
+ "class": _this.itemClassName,
457
+ "aria-label": _this.eventLabel,
458
+ "aria-selected": _this.$props.selected,
459
+ onFocusin: _this.handleFocus,
460
+ on: _this.v3 ? undefined : {
461
+ "focusin": _this.handleFocus,
462
+ "blur": _this.handleBlur,
463
+ "mouseup": _this.handleMouseUp,
464
+ "mousedown": _this.handleMouseDown,
465
+ "click": _this.handleClick,
466
+ "mouseover": _this.handleMouseOver,
467
+ "mouseout": _this.handleMouseOut,
468
+ "mouseenter": _this.handleMouseEnter,
469
+ "mouseleave": _this.handleMouseLeave,
470
+ "dblclick": _this.handleDoubleClick,
471
+ "keydown": _this.handleKeyDown,
472
+ "keypress": _this.handleKeyPress,
473
+ "keyup": _this.handleKeyUp
289
474
  },
290
- onBlur: this.handleBlur // Mouse
291
- ,
292
- onMouseup: this.handleMouseUp,
293
- onMousedown: this.handleMouseDown,
294
- onClick: this.handleClick,
295
- onMouseover: this.handleMouseOver,
296
- onMouseout: this.handleMouseOut,
297
- onMouseenter: this.handleMouseEnter,
298
- onMouseleave: this.handleMouseLeave,
299
- onDblclick: this.handleDoubleClick // Keyboard
300
- ,
301
- onKeydown: this.handleKeyDown,
302
- onKeypress: this.handleKeyPress,
303
- onKeyup: this.handleKeyUp,
304
- "data-group-index": this.$props.group.index,
305
- "data-range-index": this.$props.range.index
306
- }, [!this.$props.resizeHint && h("span", {
475
+ onBlur: _this.handleBlur,
476
+ onMouseup: _this.handleMouseUp,
477
+ onMousedown: _this.handleMouseDown,
478
+ onClick: _this.handleClick,
479
+ onMouseover: _this.handleMouseOver,
480
+ onMouseout: _this.handleMouseOut,
481
+ onMouseenter: _this.handleMouseEnter,
482
+ onMouseleave: _this.handleMouseLeave,
483
+ onDblclick: _this.handleDoubleClick,
484
+ onKeydown: _this.handleKeyDown,
485
+ onKeypress: _this.handleKeyPress,
486
+ onKeyup: _this.handleKeyUp,
487
+ "data-group-index": _this.$props.group.index,
488
+ "data-range-index": _this.$props.range.index
489
+ }, [!_this.$props.resizeHint && h("span", {
307
490
  "class": "k-event-actions"
308
- }, [this.$props.tail && h("span", {
491
+ }, [_this.$props.tail && h("span", {
309
492
  "class": "k-icon k-i-arrow-60-left"
310
- }), this.$props.isRecurring && !this.$props.isException && h("span", {
493
+ }), _this.$props.isRecurring && !_this.$props.isException && h("span", {
311
494
  "class": "k-icon k-i-reload"
312
- }), !this.$props.isRecurring && this.$props.isException && h("span", {
495
+ }), !_this.$props.isRecurring && _this.$props.isException && h("span", {
313
496
  "class": "k-icon k-i-non-recurrence"
314
- })]), this.formItem && !this.showOccurrenceDialog && editable.edit && h(SchedulerForm, {
315
- dataItem: this.formItem,
316
- attrs: this.v3 ? undefined : {
317
- dataItem: this.formItem
497
+ })]), _this.formItem && !_this.showOccurrenceDialog && editable.edit && h(SchedulerForm, {
498
+ dataItem: _this.formItem,
499
+ attrs: _this.v3 ? undefined : {
500
+ dataItem: _this.formItem
318
501
  },
319
- onSubmit: this.ksFormSubmit,
320
- on: this.v3 ? undefined : {
321
- "submit": this.ksFormSubmit,
322
- "close": this.ksCancel,
323
- "cancel": this.ksCancel
502
+ onSubmit: _this.ksFormSubmit,
503
+ on: _this.v3 ? undefined : {
504
+ "submit": _this.ksFormSubmit,
505
+ "close": _this.ksCancel,
506
+ "cancel": _this.ksCancel
324
507
  },
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
508
+ onClose: _this.ksCancel,
509
+ onCancel: _this.ksCancel
510
+ }), _this.showOccurrenceDialog && h(SchedulerOccurrenceDialog, {
511
+ dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
512
+ attrs: _this.v3 ? undefined : {
513
+ dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
514
+ isRemove: !!_this.removeItem
332
515
  },
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
516
+ isRemove: !!_this.removeItem,
517
+ onClose: _this.ksCancel,
518
+ on: _this.v3 ? undefined : {
519
+ "close": _this.ksCancel,
520
+ "occurrenceclose": _this.ksOccurrenceClick,
521
+ "seriesclose": _this.ksSeriesClick
339
522
  },
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
523
+ onOccurrenceclose: _this.ksOccurrenceClick,
524
+ onSeriesclose: _this.ksSeriesClick
525
+ }), _this.showRemoveDialog && _this.removeItem && editable.remove && h(SchedulerRemoveDialog, {
526
+ dataItem: _this.removeItem,
527
+ attrs: _this.v3 ? undefined : {
528
+ dataItem: _this.removeItem
346
529
  },
347
- onClose: this.ksCancel,
348
- on: this.v3 ? undefined : {
349
- "close": this.ksCancel,
350
- "cancel": this.ksCancel,
351
- "confirm": this.ksRemoveConfirm
530
+ onClose: _this.ksCancel,
531
+ on: _this.v3 ? undefined : {
532
+ "close": _this.ksCancel,
533
+ "cancel": _this.ksCancel,
534
+ "confirm": _this.ksRemoveConfirm
352
535
  },
353
- onCancel: this.ksCancel,
354
- onConfirm: this.ksRemoveConfirm
355
- }), defaultSlot, !this.$props.resizeHint && h("span", {
536
+ onCancel: _this.ksCancel,
537
+ onConfirm: _this.ksRemoveConfirm
538
+ }), defaultSlot, !_this.$props.resizeHint && h("span", {
356
539
  "class": "k-event-actions"
357
540
  }, [editable.remove && h("a", {
358
541
  tabIndex: -1,
359
- attrs: this.v3 ? undefined : {
542
+ attrs: _this.v3 ? undefined : {
360
543
  tabIndex: -1,
361
544
  "aria-hidden": "true",
362
545
  title: deleteMessage,
@@ -366,50 +549,108 @@ var SchedulerItemVue2 = {
366
549
  "class": "k-link k-event-delete",
367
550
  title: deleteMessage,
368
551
  "aria-label": deleteMessage,
369
- onClick: this.handleRemoveClick,
370
- on: this.v3 ? undefined : {
371
- "click": this.handleRemoveClick
552
+ onClick: _this.handleRemoveClick,
553
+ on: _this.v3 ? undefined : {
554
+ "click": _this.handleRemoveClick
372
555
  }
373
556
  }, [h("span", {
374
557
  "class": "k-icon k-i-close"
375
- })]), this.$props.head && h("span", {
558
+ })]), _this.$props.head && h("span", {
376
559
  "class": "k-icon k-i-arrow-60-right"
377
- })]), editable.resize && this.$props.vertical && [h("span", {
560
+ })]), editable.resize && _this.$props.vertical && [h(Draggable, {
561
+ onPress: _this.handleResizePress,
562
+ on: _this.v3 ? undefined : {
563
+ "press": _this.handleResizePress,
564
+ "drag": _this.handleResizeStartDrag,
565
+ "release": _this.handleResizeRelease
566
+ },
567
+ onDrag: _this.handleResizeStartDrag,
568
+ onRelease: _this.handleResizeRelease
569
+ }, _this.v3 ? function () {
570
+ return [h("span", {
571
+ "class": "k-resize-handle k-resize-n",
572
+ ref: _this.resizeNorth
573
+ })];
574
+ } : [h("span", {
378
575
  "class": "k-resize-handle k-resize-n",
379
- ref: this.resizeNorth
380
- }), h("span", {
576
+ ref: _this.resizeNorth
577
+ })]), h(Draggable, {
578
+ onPress: _this.handleResizePress,
579
+ on: _this.v3 ? undefined : {
580
+ "press": _this.handleResizePress,
581
+ "drag": _this.handleResizeEndDrag,
582
+ "release": _this.handleResizeRelease
583
+ },
584
+ onDrag: _this.handleResizeEndDrag,
585
+ onRelease: _this.handleResizeRelease
586
+ }, _this.v3 ? function () {
587
+ return [h("span", {
588
+ "class": "k-resize-handle k-resize-s",
589
+ ref: _this.resizeSouth
590
+ })];
591
+ } : [h("span", {
381
592
  "class": "k-resize-handle k-resize-s",
382
- ref: this.resizeSouth
383
- })], editable.resize && !this.$props.vertical && [h("span", {
593
+ ref: _this.resizeSouth
594
+ })])], editable.resize && !_this.$props.vertical && [h(Draggable, {
595
+ onPress: _this.handleResizePress,
596
+ on: _this.v3 ? undefined : {
597
+ "press": _this.handleResizePress,
598
+ "drag": _this.handleResizeStartDrag,
599
+ "release": _this.handleResizeRelease
600
+ },
601
+ onDrag: _this.handleResizeStartDrag,
602
+ onRelease: _this.handleResizeRelease
603
+ }, _this.v3 ? function () {
604
+ return [h("span", {
605
+ "class": "k-resize-handle k-resize-w",
606
+ ref: _this.resizeWest
607
+ })];
608
+ } : [h("span", {
384
609
  "class": "k-resize-handle k-resize-w",
385
- ref: this.resizeWest
386
- }), h("span", {
610
+ ref: _this.resizeWest
611
+ })]), h(Draggable, {
612
+ onPress: _this.handleResizePress,
613
+ on: _this.v3 ? undefined : {
614
+ "press": _this.handleResizePress,
615
+ "drag": _this.handleResizeEndDrag,
616
+ "release": _this.handleResizeRelease
617
+ },
618
+ onDrag: _this.handleResizeEndDrag,
619
+ onRelease: _this.handleResizeRelease
620
+ }, _this.v3 ? function () {
621
+ return [h("span", {
622
+ "class": "k-resize-handle k-resize-e",
623
+ ref: _this.resizeEast
624
+ })];
625
+ } : [h("span", {
387
626
  "class": "k-resize-handle k-resize-e",
388
- ref: this.resizeEast
389
- })], this.$props.resizeHint && [h("div", {
627
+ ref: _this.resizeEast
628
+ })])], _this.$props.resizeHint && [h("div", {
390
629
  "class": "k-marquee-color",
391
630
  style: {
392
- borderColor: this.color,
393
- backgroundColor: this.color
631
+ borderColor: _this.color,
632
+ backgroundColor: _this.color
394
633
  }
395
634
  }), h("div", {
396
635
  "class": "k-marquee-text"
397
- }, [!this.$props.tail && h("div", {
636
+ }, [!_this.$props.tail && h("div", {
398
637
  "class": "k-label-top"
399
- }, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
638
+ }, [_this.intl.formatDate(_this.$props.zonedStart, _this.$props.format)]), !_this.$props.head && h("div", {
400
639
  "class": "k-label-bottom"
401
- }, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]) // </Draggable>
402
-
640
+ }, [_this.intl.formatDate(_this.$props.zonedEnd, _this.$props.format)])])]])])
403
641
  );
404
642
  },
405
643
  methods: {
644
+ getElement: function getElement() {
645
+ return this.$el.nodeType === 8 ? this.$el.parentElement : this.$el.nodeType === 3 ? this.$el.nextElementSibling : this.$el;
646
+ },
406
647
  // Focus Handlers
407
648
  handleFocus: function handleFocus(event) {
408
649
  this.$emit('focus', {
409
650
  event: event,
410
651
  target: {
411
652
  props: __assign({}, this.$props),
412
- element: this.$el
653
+ element: this.element
413
654
  }
414
655
  });
415
656
  },
@@ -418,7 +659,7 @@ var SchedulerItemVue2 = {
418
659
  event: event,
419
660
  target: {
420
661
  props: __assign({}, this.$props),
421
- element: this.$el
662
+ element: this.element
422
663
  }
423
664
  });
424
665
  },
@@ -428,7 +669,7 @@ var SchedulerItemVue2 = {
428
669
  event: event,
429
670
  target: {
430
671
  props: __assign({}, this.$props),
431
- element: this.$el
672
+ element: this.element
432
673
  }
433
674
  });
434
675
  },
@@ -437,7 +678,7 @@ var SchedulerItemVue2 = {
437
678
  event: event,
438
679
  target: {
439
680
  props: __assign({}, this.$props),
440
- element: this.$el
681
+ element: this.element
441
682
  }
442
683
  };
443
684
  this.$emit('click', args);
@@ -448,7 +689,7 @@ var SchedulerItemVue2 = {
448
689
  event: event,
449
690
  target: {
450
691
  props: __assign({}, this.$props),
451
- element: this.$el
692
+ element: this.element
452
693
  }
453
694
  });
454
695
  },
@@ -457,7 +698,7 @@ var SchedulerItemVue2 = {
457
698
  event: event,
458
699
  target: {
459
700
  props: __assign({}, this.$props),
460
- element: this.$el
701
+ element: this.element
461
702
  }
462
703
  });
463
704
  },
@@ -466,7 +707,7 @@ var SchedulerItemVue2 = {
466
707
  event: event,
467
708
  target: {
468
709
  props: __assign({}, this.$props),
469
- element: this.$el
710
+ element: this.element
470
711
  }
471
712
  });
472
713
  },
@@ -475,7 +716,7 @@ var SchedulerItemVue2 = {
475
716
  event: event,
476
717
  target: {
477
718
  props: __assign({}, this.$props),
478
- element: this.$el
719
+ element: this.element
479
720
  }
480
721
  });
481
722
  },
@@ -484,7 +725,7 @@ var SchedulerItemVue2 = {
484
725
  event: event,
485
726
  target: {
486
727
  props: __assign({}, this.$props),
487
- element: this.$el
728
+ element: this.element
488
729
  }
489
730
  });
490
731
  },
@@ -493,7 +734,7 @@ var SchedulerItemVue2 = {
493
734
  event: event,
494
735
  target: {
495
736
  props: __assign({}, this.$props),
496
- element: this.$el
737
+ element: this.element
497
738
  }
498
739
  };
499
740
  this.$emit('doubleclick', args);
@@ -504,7 +745,7 @@ var SchedulerItemVue2 = {
504
745
  event: event,
505
746
  target: {
506
747
  props: __assign({}, this.$props),
507
- element: this.$el
748
+ element: this.element
508
749
  }
509
750
  });
510
751
  },
@@ -514,7 +755,7 @@ var SchedulerItemVue2 = {
514
755
  event: event,
515
756
  target: {
516
757
  props: __assign({}, this.$props),
517
- element: this.$el
758
+ element: this.element
518
759
  }
519
760
  });
520
761
  },
@@ -523,7 +764,7 @@ var SchedulerItemVue2 = {
523
764
  event: event,
524
765
  target: {
525
766
  props: __assign({}, this.$props),
526
- element: this.$el
767
+ element: this.element
527
768
  }
528
769
  });
529
770
  },
@@ -532,7 +773,7 @@ var SchedulerItemVue2 = {
532
773
  event: event,
533
774
  target: {
534
775
  props: __assign({}, this.$props),
535
- element: this.$el
776
+ element: this.element
536
777
  }
537
778
  });
538
779
  },
@@ -542,7 +783,7 @@ var SchedulerItemVue2 = {
542
783
  dragEvent: dragEvent,
543
784
  target: {
544
785
  props: __assign({}, this.$props),
545
- element: this.$el
786
+ element: this.element
546
787
  }
547
788
  });
548
789
  },
@@ -551,7 +792,7 @@ var SchedulerItemVue2 = {
551
792
  dragEvent: dragEvent,
552
793
  target: {
553
794
  props: __assign({}, this.$props),
554
- element: this.$el
795
+ element: this.element
555
796
  }
556
797
  });
557
798
  },
@@ -560,7 +801,7 @@ var SchedulerItemVue2 = {
560
801
  dragEvent: dragEvent,
561
802
  target: {
562
803
  props: __assign({}, this.$props),
563
- element: this.$el
804
+ element: this.element
564
805
  }
565
806
  });
566
807
  },
@@ -569,7 +810,7 @@ var SchedulerItemVue2 = {
569
810
  dragEvent: dragEvent,
570
811
  target: {
571
812
  props: __assign({}, this.$props),
572
- element: this.$el
813
+ element: this.element
573
814
  }
574
815
  });
575
816
  },
@@ -578,7 +819,7 @@ var SchedulerItemVue2 = {
578
819
  dragEvent: dragEvent,
579
820
  target: {
580
821
  props: __assign({}, this.$props),
581
- element: this.$e
822
+ element: this.element
582
823
  }
583
824
  });
584
825
  },
@@ -587,7 +828,7 @@ var SchedulerItemVue2 = {
587
828
  dragEvent: dragEvent,
588
829
  target: {
589
830
  props: __assign({}, this.$props),
590
- element: this.$el
831
+ element: this.element
591
832
  }
592
833
  });
593
834
  },
@@ -596,7 +837,7 @@ var SchedulerItemVue2 = {
596
837
  dragEvent: dragEvent,
597
838
  target: {
598
839
  props: __assign({}, this.$props),
599
- element: this.$e
840
+ element: this.element
600
841
  }
601
842
  });
602
843
  }