@progress/kendo-vue-scheduler 3.1.3 → 3.1.5-dev.202204110939

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/NOTICE.txt +49 -6
  2. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  3. package/dist/es/components/SchedulerForm.js +6 -0
  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 +11 -10
  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 +518 -231
  11. package/dist/es/items/SchedulerItem.js +104 -95
  12. package/dist/es/items/SchedulerItemContent.js +4 -2
  13. package/dist/es/items/SchedulerViewItem.js +137 -11
  14. package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
  15. package/dist/es/items/hooks/use-drag-item.js +228 -153
  16. package/dist/es/items/hooks/use-series.d.ts +1 -0
  17. package/dist/es/items/hooks/use-series.js +1 -2
  18. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  19. package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
  20. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  21. package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
  22. package/dist/es/package-metadata.js +1 -1
  23. package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
  24. package/dist/es/recurrence/RecurrenceEditor.js +5 -0
  25. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
  26. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  27. package/dist/es/recurrence/common.js +2 -1
  28. package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
  29. package/dist/es/tasks/SchedulerEditTask.js +118 -35
  30. package/dist/es/tasks/SchedulerTask.js +3 -2
  31. package/dist/es/tasks/SchedulerViewTask.js +15 -3
  32. package/dist/es/views/agenda/AgendaView.js +21 -9
  33. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  34. package/dist/es/views/agenda/AgendaViewBody.js +6 -1
  35. package/dist/es/views/common/SchedulerDrag.js +62 -11
  36. package/dist/es/views/day/DayView.js +4 -0
  37. package/dist/es/views/month/MonthView.js +5 -1
  38. package/dist/es/views/time/MultiDayTimelineView.js +28 -9
  39. package/dist/es/views/time/TimelineView.js +4 -0
  40. package/dist/es/views/week/WeekView.js +12 -2
  41. package/dist/es/views/week/WorkWeekView.js +12 -2
  42. package/dist/npm/components/SchedulerForm.js +6 -0
  43. package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
  44. package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
  45. package/dist/npm/editors/ResourceEditor.js +12 -10
  46. package/dist/npm/editors/SchedulerFormEditor.js +11 -11
  47. package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
  48. package/dist/npm/editors/ZonedDateTime.js +4 -1
  49. package/dist/npm/items/SchedulerEditItem.js +517 -224
  50. package/dist/npm/items/SchedulerItem.js +104 -95
  51. package/dist/npm/items/SchedulerItemContent.js +4 -2
  52. package/dist/npm/items/SchedulerViewItem.js +137 -11
  53. package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
  54. package/dist/npm/items/hooks/use-drag-item.js +231 -153
  55. package/dist/npm/items/hooks/use-series.d.ts +1 -0
  56. package/dist/npm/items/hooks/use-series.js +2 -2
  57. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
  58. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
  59. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
  60. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
  61. package/dist/npm/package-metadata.js +1 -1
  62. package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
  63. package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
  64. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
  65. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
  66. package/dist/npm/recurrence/common.js +2 -1
  67. package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
  68. package/dist/npm/tasks/SchedulerEditTask.js +120 -35
  69. package/dist/npm/tasks/SchedulerTask.js +3 -2
  70. package/dist/npm/tasks/SchedulerViewTask.js +15 -3
  71. package/dist/npm/views/agenda/AgendaView.js +21 -9
  72. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  73. package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
  74. package/dist/npm/views/common/SchedulerDrag.js +62 -11
  75. package/dist/npm/views/day/DayView.js +4 -0
  76. package/dist/npm/views/month/MonthView.js +5 -1
  77. package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
  78. package/dist/npm/views/time/TimelineView.js +4 -0
  79. package/dist/npm/views/week/WeekView.js +12 -2
  80. package/dist/npm/views/week/WorkWeekView.js +12 -2
  81. package/package.json +12 -12
@@ -231,110 +231,119 @@ var SchedulerItemVue2 = {
231
231
  // onRelease: this.handleResizeRelease
232
232
  // });
233
233
 
234
- return h("div", {
235
- id: this.$props.id,
236
- attrs: this.v3 ? undefined : {
234
+ return (// <Draggable
235
+ // onPress={this.handlePress}
236
+ // onDrag={this.handleDrag}
237
+ // onRelease={this.handleRelease}
238
+ // ref={'draggable'}
239
+ // >
240
+ // @ts-ignore function children
241
+ h("div", {
237
242
  id: this.$props.id,
243
+ attrs: this.v3 ? undefined : {
244
+ id: this.$props.id,
245
+ tabIndex: this.currentTabIndex,
246
+ // Aria
247
+ "aria-label": this.eventLabel,
248
+ "aria-selected": this.$props.selected // Focus
249
+ ,
250
+ "data-group-index": this.$props.group.index,
251
+ "data-range-index": this.$props.range.index
252
+ },
253
+ style: this.computedStyle,
238
254
  tabIndex: this.currentTabIndex,
239
- // Aria
255
+ "class": this.itemClassName,
240
256
  "aria-label": this.eventLabel,
241
- "aria-selected": this.$props.selected // Focus
257
+ "aria-selected": this.$props.selected,
258
+ onFocus: this.handleFocus,
259
+ on: this.v3 ? undefined : {
260
+ "focus": this.handleFocus,
261
+ "blur": this.handleBlur,
262
+ "mouseup": this.handleMouseUp,
263
+ "mousedown": this.handleMouseDown,
264
+ "click": this.handleClick,
265
+ "mouseover": this.handleMouseOver,
266
+ "mouseout": this.handleMouseOut,
267
+ "mouseenter": this.handleMouseEnter,
268
+ "mouseleave": this.handleMouseLeave,
269
+ "dblclick": this.handleDoubleClick,
270
+ "keydown": this.handleKeyDown,
271
+ "keypress": this.handleKeyPress,
272
+ "keyup": this.handleKeyUp
273
+ },
274
+ onBlur: this.handleBlur // Mouse
242
275
  ,
276
+ onMouseup: this.handleMouseUp,
277
+ onMousedown: this.handleMouseDown,
278
+ onClick: this.handleClick,
279
+ onMouseover: this.handleMouseOver,
280
+ onMouseout: this.handleMouseOut,
281
+ onMouseenter: this.handleMouseEnter,
282
+ onMouseleave: this.handleMouseLeave,
283
+ onDblclick: this.handleDoubleClick // Keyboard
284
+ ,
285
+ onKeydown: this.handleKeyDown,
286
+ onKeypress: this.handleKeyPress,
287
+ onKeyup: this.handleKeyUp,
243
288
  "data-group-index": this.$props.group.index,
244
289
  "data-range-index": this.$props.range.index
245
- },
246
- style: this.computedStyle,
247
- tabIndex: this.currentTabIndex,
248
- "class": this.itemClassName,
249
- "aria-label": this.eventLabel,
250
- "aria-selected": this.$props.selected,
251
- onFocus: this.handleFocus,
252
- on: this.v3 ? undefined : {
253
- "focus": this.handleFocus,
254
- "blur": this.handleBlur,
255
- "mouseup": this.handleMouseUp,
256
- "mousedown": this.handleMouseDown,
257
- "click": this.handleClick,
258
- "mouseover": this.handleMouseOver,
259
- "mouseout": this.handleMouseOut,
260
- "mouseenter": this.handleMouseEnter,
261
- "mouseleave": this.handleMouseLeave,
262
- "dblclick": this.handleDoubleClick,
263
- "keydown": this.handleKeyDown,
264
- "keypress": this.handleKeyPress,
265
- "keyup": this.handleKeyUp
266
- },
267
- onBlur: this.handleBlur // Mouse
268
- ,
269
- onMouseup: this.handleMouseUp,
270
- onMousedown: this.handleMouseDown,
271
- onClick: this.handleClick,
272
- onMouseover: this.handleMouseOver,
273
- onMouseout: this.handleMouseOut,
274
- onMouseenter: this.handleMouseEnter,
275
- onMouseleave: this.handleMouseLeave,
276
- onDblclick: this.handleDoubleClick // Keyboard
277
- ,
278
- onKeydown: this.handleKeyDown,
279
- onKeypress: this.handleKeyPress,
280
- onKeyup: this.handleKeyUp,
281
- "data-group-index": this.$props.group.index,
282
- "data-range-index": this.$props.range.index
283
- }, [!this.$props.resizeHint && h("span", {
284
- "class": "k-event-actions"
285
- }, [this.$props.tail && h("span", {
286
- "class": "k-icon k-i-arrow-60-left"
287
- }), this.$props.isRecurring && !this.$props.isException && h("span", {
288
- "class": "k-icon k-i-reload"
289
- }), !this.$props.isRecurring && this.$props.isException && h("span", {
290
- "class": "k-icon k-i-non-recurrence"
291
- })]), defaultSlot, !this.$props.resizeHint && h("span", {
292
- "class": "k-event-actions"
293
- }, [editable.remove && h("a", {
294
- tabIndex: -1,
295
- attrs: this.v3 ? undefined : {
290
+ }, [!this.$props.resizeHint && h("span", {
291
+ "class": "k-event-actions"
292
+ }, [this.$props.tail && h("span", {
293
+ "class": "k-icon k-i-arrow-60-left"
294
+ }), this.$props.isRecurring && !this.$props.isException && h("span", {
295
+ "class": "k-icon k-i-reload"
296
+ }), !this.$props.isRecurring && this.$props.isException && h("span", {
297
+ "class": "k-icon k-i-non-recurrence"
298
+ })]), defaultSlot, !this.$props.resizeHint && h("span", {
299
+ "class": "k-event-actions"
300
+ }, [editable.remove && h("a", {
296
301
  tabIndex: -1,
302
+ attrs: this.v3 ? undefined : {
303
+ tabIndex: -1,
304
+ "aria-hidden": "true",
305
+ title: deleteMessage,
306
+ "aria-label": deleteMessage
307
+ },
297
308
  "aria-hidden": "true",
309
+ "class": "k-link k-event-delete",
298
310
  title: deleteMessage,
299
- "aria-label": deleteMessage
300
- },
301
- "aria-hidden": "true",
302
- "class": "k-link k-event-delete",
303
- title: deleteMessage,
304
- "aria-label": deleteMessage,
305
- onClick: this.handleRemoveClick,
306
- on: this.v3 ? undefined : {
307
- "click": this.handleRemoveClick
308
- }
309
- }, [h("span", {
310
- "class": "k-icon k-i-close"
311
- })]), this.$props.head && h("span", {
312
- "class": "k-icon k-i-arrow-60-right"
313
- })]), editable.resize && this.$props.vertical && [h("span", {
314
- "class": "k-resize-handle k-resize-n",
315
- ref: this.resizeNorth
316
- }), h("span", {
317
- "class": "k-resize-handle k-resize-s",
318
- ref: this.resizeSouth
319
- })], editable.resize && !this.$props.vertical && [h("span", {
320
- "class": "k-resize-handle k-resize-w",
321
- ref: this.resizeWest
322
- }), h("span", {
323
- "class": "k-resize-handle k-resize-e",
324
- ref: this.resizeEast
325
- })], this.$props.resizeHint && [h("div", {
326
- "class": "k-marquee-color",
327
- style: {
328
- borderColor: this.color,
329
- backgroundColor: this.color
330
- }
331
- }), h("div", {
332
- "class": "k-marquee-text"
333
- }, [!this.$props.tail && h("div", {
334
- "class": "k-label-top"
335
- }, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
336
- "class": "k-label-bottom"
337
- }, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]);
311
+ "aria-label": deleteMessage,
312
+ onClick: this.handleRemoveClick,
313
+ on: this.v3 ? undefined : {
314
+ "click": this.handleRemoveClick
315
+ }
316
+ }, [h("span", {
317
+ "class": "k-icon k-i-close"
318
+ })]), this.$props.head && h("span", {
319
+ "class": "k-icon k-i-arrow-60-right"
320
+ })]), editable.resize && this.$props.vertical && [h("span", {
321
+ "class": "k-resize-handle k-resize-n",
322
+ ref: this.resizeNorth
323
+ }), h("span", {
324
+ "class": "k-resize-handle k-resize-s",
325
+ ref: this.resizeSouth
326
+ })], editable.resize && !this.$props.vertical && [h("span", {
327
+ "class": "k-resize-handle k-resize-w",
328
+ ref: this.resizeWest
329
+ }), h("span", {
330
+ "class": "k-resize-handle k-resize-e",
331
+ ref: this.resizeEast
332
+ })], this.$props.resizeHint && [h("div", {
333
+ "class": "k-marquee-color",
334
+ style: {
335
+ borderColor: this.color,
336
+ backgroundColor: this.color
337
+ }
338
+ }), h("div", {
339
+ "class": "k-marquee-text"
340
+ }, [!this.$props.tail && h("div", {
341
+ "class": "k-label-top"
342
+ }, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
343
+ "class": "k-label-bottom"
344
+ }, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]) // </Draggable>
345
+
346
+ );
338
347
  },
339
348
  methods: {
340
349
  // Focus Handlers
@@ -14,7 +14,9 @@ var gh = allVue.h; // tslint:enable:max-line-length
14
14
 
15
15
  var SchedulerItemContentVue2 = {
16
16
  name: 'KendoSchedulerItemContent',
17
- props: {},
17
+ props: {
18
+ title: String
19
+ },
18
20
  // @ts-ignore
19
21
  setup: !gh ? undefined : function () {
20
22
  var v3 = !!gh;
@@ -28,7 +30,7 @@ var SchedulerItemContentVue2 = {
28
30
  var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
29
31
  return h("div", {
30
32
  "class": 'k-event-template'
31
- }, [defaultSlot]);
33
+ }, [this.title, defaultSlot]);
32
34
  }
33
35
  };
34
36
  exports.SchedulerItemContentVue2 = SchedulerItemContentVue2;
@@ -245,7 +245,44 @@ var SchedulerViewItemVue2 = {
245
245
  style: __assign({
246
246
  visibility: this.visible ? undefined : 'hidden',
247
247
  display: this.display ? undefined : 'none'
248
- }, this.$props.style)
248
+ }, this.$props.style) // Keyboard
249
+ ,
250
+ onKeydown: this.handleKeyDown,
251
+ on: this.v3 ? undefined : {
252
+ "keydown": this.handleKeyDown,
253
+ "keyup": this.handleKeyUp,
254
+ "focus": this.handleFocus,
255
+ "mouseup": this.handleMouseUp,
256
+ "mousedown": this.handleMouseDown,
257
+ "click": this.handleClick,
258
+ "doubleclick": this.handleDoubleClick,
259
+ "removeclick": this.handleRemoveClick,
260
+ "press": this.handlePress,
261
+ "drag": this.handleDrag,
262
+ "release": this.handleRelease,
263
+ "resizepress": this.handleResizePress,
264
+ "resizeenddrag": this.handleResizeEndDrag,
265
+ "resizestartdrag": this.handleResizeStartDrag,
266
+ "resizeselease": this.handleResizeRelease
267
+ },
268
+ onKeyup: this.handleKeyUp // Focus
269
+ ,
270
+ onFocus: this.handleFocus // Mouse
271
+ ,
272
+ onMouseup: this.handleMouseUp,
273
+ onMousedown: this.handleMouseDown,
274
+ onClick: this.handleClick,
275
+ onDoubleclick: this.handleDoubleClick,
276
+ onRemoveclick: this.handleRemoveClick // Drag
277
+ ,
278
+ onPress: this.handlePress,
279
+ onDrag: this.handleDrag,
280
+ onRelease: this.handleRelease // Resize
281
+ ,
282
+ onResizepress: this.handleResizePress,
283
+ onResizeenddrag: this.handleResizeEndDrag,
284
+ onResizestartdrag: this.handleResizeStartDrag,
285
+ onResizeselease: this.handleResizeRelease
249
286
  }, this.v3 ? function () {
250
287
  return [!_this2.$props.resizeHint && h("div", {
251
288
  title: _this2.itemTitle,
@@ -254,29 +291,45 @@ var SchedulerViewItemVue2 = {
254
291
  }
255
292
  }, [!_this2.$props.isAllDay && // @ts-ignore function children
256
293
  h(SchedulerItemContent_1.SchedulerItemContent, {
294
+ title: _this2.itemTitle,
295
+ attrs: _this2.v3 ? undefined : {
296
+ title: _this2.itemTitle
297
+ },
257
298
  "class": "k-event-template k-event-time "
258
299
  }, _this2.v3 ? function () {
259
- return [_this2.itemTitle];
260
- } : [_this2.itemTitle]), // @ts-ignore function children
300
+ return [defaultSlot];
301
+ } : [defaultSlot]), // @ts-ignore function children
261
302
  h(SchedulerItemContent_1.SchedulerItemContent, {
303
+ title: _this2.$props.title,
304
+ attrs: _this2.v3 ? undefined : {
305
+ title: _this2.$props.title
306
+ },
262
307
  "class": "k-event-template"
263
308
  }, _this2.v3 ? function () {
264
- return [_this2.$props.title];
265
- } : [_this2.$props.title])])];
309
+ return [defaultSlot];
310
+ } : [defaultSlot])])];
266
311
  } : [!_this2.$props.resizeHint && h("div", {
267
312
  title: _this2.itemTitle,
268
313
  attrs: _this2.v3 ? undefined : {
269
314
  title: _this2.itemTitle
270
315
  }
271
316
  }, [!_this2.$props.isAllDay && h(SchedulerItemContent_1.SchedulerItemContent, {
317
+ title: _this2.itemTitle,
318
+ attrs: _this2.v3 ? undefined : {
319
+ title: _this2.itemTitle
320
+ },
272
321
  "class": "k-event-template k-event-time "
273
322
  }, _this2.v3 ? function () {
274
- return [_this2.itemTitle];
275
- } : [_this2.itemTitle]), h(SchedulerItemContent_1.SchedulerItemContent, {
323
+ return [defaultSlot];
324
+ } : [defaultSlot]), h(SchedulerItemContent_1.SchedulerItemContent, {
325
+ title: _this2.$props.title,
326
+ attrs: _this2.v3 ? undefined : {
327
+ title: _this2.$props.title
328
+ },
276
329
  "class": "k-event-template"
277
330
  }, _this2.v3 ? function () {
278
- return [_this2.$props.title];
279
- } : [_this2.$props.title])])]);
331
+ return [defaultSlot];
332
+ } : [defaultSlot])])]);
280
333
  itemRender = kendo_vue_common_1.getTemplate.call(this, {
281
334
  h: h,
282
335
  template: this.$props.item,
@@ -286,6 +339,73 @@ var SchedulerViewItemVue2 = {
286
339
  return itemRender;
287
340
  },
288
341
  methods: {
342
+ // Focus Handlers
343
+ handleFocus: function handleFocus(e) {
344
+ this.$emit('focus', e);
345
+ },
346
+ handleBlur: function handleBlur(e) {
347
+ this.$emit('blur', e);
348
+ },
349
+ // Mouse Handlers
350
+ handleMouseDown: function handleMouseDown(e) {
351
+ this.$emit('mousedown', e);
352
+ },
353
+ handleClick: function handleClick(e) {
354
+ this.$emit('click', e);
355
+ },
356
+ handleMouseUp: function handleMouseUp(e) {
357
+ this.$emit('mouseup', e);
358
+ },
359
+ handleMouseOver: function handleMouseOver(e) {
360
+ this.$emit('mouseover', e);
361
+ },
362
+ handleMouseOut: function handleMouseOut(e) {
363
+ this.$emit('mouseout', e);
364
+ },
365
+ handleMouseEnter: function handleMouseEnter(e) {
366
+ this.$emit('mouseenter', e);
367
+ },
368
+ handleMouseLeave: function handleMouseLeave(e) {
369
+ this.$emit('mouseleave', e);
370
+ },
371
+ handleDoubleClick: function handleDoubleClick(e) {
372
+ this.$emit('doubleclick', e);
373
+ },
374
+ handleRemoveClick: function handleRemoveClick(e) {
375
+ this.$emit('removeclick', e);
376
+ },
377
+ // Keyboard Handlers
378
+ handleKeyDown: function handleKeyDown(e) {
379
+ this.$emit('keydown', e);
380
+ },
381
+ handleKeyPress: function handleKeyPress(e) {
382
+ this.$emit('keypress', e);
383
+ },
384
+ handleKeyUp: function handleKeyUp(e) {
385
+ this.$emit('keyup', e);
386
+ },
387
+ // Drag Handlers
388
+ handlePress: function handlePress(e) {
389
+ this.$emit('press', e);
390
+ },
391
+ handleDrag: function handleDrag(e) {
392
+ this.$emit('drag', e);
393
+ },
394
+ handleRelease: function handleRelease(e) {
395
+ this.$emit('release', e);
396
+ },
397
+ handleResizePress: function handleResizePress(e) {
398
+ this.$emit('resizepress', e);
399
+ },
400
+ handleResizeStartDrag: function handleResizeStartDrag(e) {
401
+ this.$emit('resizestartdrag', e);
402
+ },
403
+ handleResizeEndDrag: function handleResizeEndDrag(e) {
404
+ this.$emit('resizeenddrag', e);
405
+ },
406
+ handleResizeRelease: function handleResizeRelease(e) {
407
+ this.$emit('resizerelease', e);
408
+ },
289
409
  calculateMostSiblings: function calculateMostSiblings(slots, items) {
290
410
  var _this = this;
291
411
 
@@ -317,6 +437,12 @@ var SchedulerViewItemVue2 = {
317
437
  align: function align() {
318
438
  var _this = this;
319
439
 
440
+ var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
441
+
442
+ if (!element) {
443
+ return;
444
+ }
445
+
320
446
  var slots = (this.bv.slots || []).filter(function (slot) {
321
447
  return slot && _this.inSlot(slot.$props, _this.$props);
322
448
  });
@@ -339,12 +465,12 @@ var SchedulerViewItemVue2 = {
339
465
  }
340
466
 
341
467
  var rect = utils_2.getRect(firstSlot.$el);
342
- utils_2.setRect(this.$el, rect);
468
+ utils_2.setRect(element, rect);
343
469
  },
344
470
  position: function position() {
345
471
  var _this = this;
346
472
 
347
- var element = this.$el;
473
+ var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
348
474
 
349
475
  if (!element) {
350
476
  return;
@@ -1,4 +1,5 @@
1
1
  import { DataItem } from '../../models';
2
+ import { SchedulerEditItemAll } from '../SchedulerEditItem';
2
3
  /**
3
4
  * Represents the available `action` types for the `SchedulerItemDragItemAction` objects.
4
5
  *
@@ -30,9 +31,4 @@ export interface SchedulerItemDragItemAction {
30
31
  payload?: DataItem;
31
32
  }
32
33
  /** @hidden */
33
- export declare const useDragItem: (_config: {
34
- dataItem: DataItem;
35
- ignoreIsAllDay?: boolean;
36
- isAllDay?: boolean;
37
- onDataaction?: any;
38
- }, _state: [DataItem, DataItem, any]) => any[];
34
+ export declare const useDragItem: (this: SchedulerEditItemAll, action: SchedulerItemDragItemAction) => void;