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