@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
@@ -217,110 +217,119 @@ var SchedulerItemVue2 = {
217
217
  // onRelease: this.handleResizeRelease
218
218
  // });
219
219
 
220
- return h("div", {
221
- id: this.$props.id,
222
- attrs: this.v3 ? undefined : {
220
+ return (// <Draggable
221
+ // onPress={this.handlePress}
222
+ // onDrag={this.handleDrag}
223
+ // onRelease={this.handleRelease}
224
+ // ref={'draggable'}
225
+ // >
226
+ // @ts-ignore function children
227
+ h("div", {
223
228
  id: this.$props.id,
229
+ attrs: this.v3 ? undefined : {
230
+ id: this.$props.id,
231
+ tabIndex: this.currentTabIndex,
232
+ // Aria
233
+ "aria-label": this.eventLabel,
234
+ "aria-selected": this.$props.selected // Focus
235
+ ,
236
+ "data-group-index": this.$props.group.index,
237
+ "data-range-index": this.$props.range.index
238
+ },
239
+ style: this.computedStyle,
224
240
  tabIndex: this.currentTabIndex,
225
- // Aria
241
+ "class": this.itemClassName,
226
242
  "aria-label": this.eventLabel,
227
- "aria-selected": this.$props.selected // Focus
243
+ "aria-selected": this.$props.selected,
244
+ onFocus: this.handleFocus,
245
+ on: this.v3 ? undefined : {
246
+ "focus": this.handleFocus,
247
+ "blur": this.handleBlur,
248
+ "mouseup": this.handleMouseUp,
249
+ "mousedown": this.handleMouseDown,
250
+ "click": this.handleClick,
251
+ "mouseover": this.handleMouseOver,
252
+ "mouseout": this.handleMouseOut,
253
+ "mouseenter": this.handleMouseEnter,
254
+ "mouseleave": this.handleMouseLeave,
255
+ "dblclick": this.handleDoubleClick,
256
+ "keydown": this.handleKeyDown,
257
+ "keypress": this.handleKeyPress,
258
+ "keyup": this.handleKeyUp
259
+ },
260
+ onBlur: this.handleBlur // Mouse
228
261
  ,
262
+ onMouseup: this.handleMouseUp,
263
+ onMousedown: this.handleMouseDown,
264
+ onClick: this.handleClick,
265
+ onMouseover: this.handleMouseOver,
266
+ onMouseout: this.handleMouseOut,
267
+ onMouseenter: this.handleMouseEnter,
268
+ onMouseleave: this.handleMouseLeave,
269
+ onDblclick: this.handleDoubleClick // Keyboard
270
+ ,
271
+ onKeydown: this.handleKeyDown,
272
+ onKeypress: this.handleKeyPress,
273
+ onKeyup: this.handleKeyUp,
229
274
  "data-group-index": this.$props.group.index,
230
275
  "data-range-index": this.$props.range.index
231
- },
232
- style: this.computedStyle,
233
- tabIndex: this.currentTabIndex,
234
- "class": this.itemClassName,
235
- "aria-label": this.eventLabel,
236
- "aria-selected": this.$props.selected,
237
- onFocus: this.handleFocus,
238
- on: this.v3 ? undefined : {
239
- "focus": this.handleFocus,
240
- "blur": this.handleBlur,
241
- "mouseup": this.handleMouseUp,
242
- "mousedown": this.handleMouseDown,
243
- "click": this.handleClick,
244
- "mouseover": this.handleMouseOver,
245
- "mouseout": this.handleMouseOut,
246
- "mouseenter": this.handleMouseEnter,
247
- "mouseleave": this.handleMouseLeave,
248
- "dblclick": this.handleDoubleClick,
249
- "keydown": this.handleKeyDown,
250
- "keypress": this.handleKeyPress,
251
- "keyup": this.handleKeyUp
252
- },
253
- onBlur: this.handleBlur // Mouse
254
- ,
255
- onMouseup: this.handleMouseUp,
256
- onMousedown: this.handleMouseDown,
257
- onClick: this.handleClick,
258
- onMouseover: this.handleMouseOver,
259
- onMouseout: this.handleMouseOut,
260
- onMouseenter: this.handleMouseEnter,
261
- onMouseleave: this.handleMouseLeave,
262
- onDblclick: this.handleDoubleClick // Keyboard
263
- ,
264
- onKeydown: this.handleKeyDown,
265
- onKeypress: this.handleKeyPress,
266
- onKeyup: this.handleKeyUp,
267
- "data-group-index": this.$props.group.index,
268
- "data-range-index": this.$props.range.index
269
- }, [!this.$props.resizeHint && h("span", {
270
- "class": "k-event-actions"
271
- }, [this.$props.tail && h("span", {
272
- "class": "k-icon k-i-arrow-60-left"
273
- }), this.$props.isRecurring && !this.$props.isException && h("span", {
274
- "class": "k-icon k-i-reload"
275
- }), !this.$props.isRecurring && this.$props.isException && h("span", {
276
- "class": "k-icon k-i-non-recurrence"
277
- })]), defaultSlot, !this.$props.resizeHint && h("span", {
278
- "class": "k-event-actions"
279
- }, [editable.remove && h("a", {
280
- tabIndex: -1,
281
- attrs: this.v3 ? undefined : {
276
+ }, [!this.$props.resizeHint && h("span", {
277
+ "class": "k-event-actions"
278
+ }, [this.$props.tail && h("span", {
279
+ "class": "k-icon k-i-arrow-60-left"
280
+ }), this.$props.isRecurring && !this.$props.isException && h("span", {
281
+ "class": "k-icon k-i-reload"
282
+ }), !this.$props.isRecurring && this.$props.isException && h("span", {
283
+ "class": "k-icon k-i-non-recurrence"
284
+ })]), defaultSlot, !this.$props.resizeHint && h("span", {
285
+ "class": "k-event-actions"
286
+ }, [editable.remove && h("a", {
282
287
  tabIndex: -1,
288
+ attrs: this.v3 ? undefined : {
289
+ tabIndex: -1,
290
+ "aria-hidden": "true",
291
+ title: deleteMessage,
292
+ "aria-label": deleteMessage
293
+ },
283
294
  "aria-hidden": "true",
295
+ "class": "k-link k-event-delete",
284
296
  title: deleteMessage,
285
- "aria-label": deleteMessage
286
- },
287
- "aria-hidden": "true",
288
- "class": "k-link k-event-delete",
289
- title: deleteMessage,
290
- "aria-label": deleteMessage,
291
- onClick: this.handleRemoveClick,
292
- on: this.v3 ? undefined : {
293
- "click": this.handleRemoveClick
294
- }
295
- }, [h("span", {
296
- "class": "k-icon k-i-close"
297
- })]), this.$props.head && h("span", {
298
- "class": "k-icon k-i-arrow-60-right"
299
- })]), editable.resize && this.$props.vertical && [h("span", {
300
- "class": "k-resize-handle k-resize-n",
301
- ref: this.resizeNorth
302
- }), h("span", {
303
- "class": "k-resize-handle k-resize-s",
304
- ref: this.resizeSouth
305
- })], editable.resize && !this.$props.vertical && [h("span", {
306
- "class": "k-resize-handle k-resize-w",
307
- ref: this.resizeWest
308
- }), h("span", {
309
- "class": "k-resize-handle k-resize-e",
310
- ref: this.resizeEast
311
- })], this.$props.resizeHint && [h("div", {
312
- "class": "k-marquee-color",
313
- style: {
314
- borderColor: this.color,
315
- backgroundColor: this.color
316
- }
317
- }), h("div", {
318
- "class": "k-marquee-text"
319
- }, [!this.$props.tail && h("div", {
320
- "class": "k-label-top"
321
- }, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
322
- "class": "k-label-bottom"
323
- }, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]);
297
+ "aria-label": deleteMessage,
298
+ onClick: this.handleRemoveClick,
299
+ on: this.v3 ? undefined : {
300
+ "click": this.handleRemoveClick
301
+ }
302
+ }, [h("span", {
303
+ "class": "k-icon k-i-close"
304
+ })]), this.$props.head && h("span", {
305
+ "class": "k-icon k-i-arrow-60-right"
306
+ })]), editable.resize && this.$props.vertical && [h("span", {
307
+ "class": "k-resize-handle k-resize-n",
308
+ ref: this.resizeNorth
309
+ }), h("span", {
310
+ "class": "k-resize-handle k-resize-s",
311
+ ref: this.resizeSouth
312
+ })], editable.resize && !this.$props.vertical && [h("span", {
313
+ "class": "k-resize-handle k-resize-w",
314
+ ref: this.resizeWest
315
+ }), h("span", {
316
+ "class": "k-resize-handle k-resize-e",
317
+ ref: this.resizeEast
318
+ })], this.$props.resizeHint && [h("div", {
319
+ "class": "k-marquee-color",
320
+ style: {
321
+ borderColor: this.color,
322
+ backgroundColor: this.color
323
+ }
324
+ }), h("div", {
325
+ "class": "k-marquee-text"
326
+ }, [!this.$props.tail && h("div", {
327
+ "class": "k-label-top"
328
+ }, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
329
+ "class": "k-label-bottom"
330
+ }, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]) // </Draggable>
331
+
332
+ );
324
333
  },
325
334
  methods: {
326
335
  // Focus Handlers
@@ -6,7 +6,9 @@ var gh = allVue.h; // tslint:enable:max-line-length
6
6
 
7
7
  var SchedulerItemContentVue2 = {
8
8
  name: 'KendoSchedulerItemContent',
9
- props: {},
9
+ props: {
10
+ title: String
11
+ },
10
12
  // @ts-ignore
11
13
  setup: !gh ? undefined : function () {
12
14
  var v3 = !!gh;
@@ -20,7 +22,7 @@ var SchedulerItemContentVue2 = {
20
22
  var defaultSlot = getDefaultSlots(this);
21
23
  return h("div", {
22
24
  "class": 'k-event-template'
23
- }, [defaultSlot]);
25
+ }, [this.title, defaultSlot]);
24
26
  }
25
27
  };
26
28
  var SchedulerItemContent = SchedulerItemContentVue2;
@@ -230,7 +230,44 @@ var SchedulerViewItemVue2 = {
230
230
  style: __assign({
231
231
  visibility: this.visible ? undefined : 'hidden',
232
232
  display: this.display ? undefined : 'none'
233
- }, this.$props.style)
233
+ }, this.$props.style) // Keyboard
234
+ ,
235
+ onKeydown: this.handleKeyDown,
236
+ on: this.v3 ? undefined : {
237
+ "keydown": this.handleKeyDown,
238
+ "keyup": this.handleKeyUp,
239
+ "focus": this.handleFocus,
240
+ "mouseup": this.handleMouseUp,
241
+ "mousedown": this.handleMouseDown,
242
+ "click": this.handleClick,
243
+ "doubleclick": this.handleDoubleClick,
244
+ "removeclick": this.handleRemoveClick,
245
+ "press": this.handlePress,
246
+ "drag": this.handleDrag,
247
+ "release": this.handleRelease,
248
+ "resizepress": this.handleResizePress,
249
+ "resizeenddrag": this.handleResizeEndDrag,
250
+ "resizestartdrag": this.handleResizeStartDrag,
251
+ "resizeselease": this.handleResizeRelease
252
+ },
253
+ onKeyup: this.handleKeyUp // Focus
254
+ ,
255
+ onFocus: this.handleFocus // Mouse
256
+ ,
257
+ onMouseup: this.handleMouseUp,
258
+ onMousedown: this.handleMouseDown,
259
+ onClick: this.handleClick,
260
+ onDoubleclick: this.handleDoubleClick,
261
+ onRemoveclick: this.handleRemoveClick // Drag
262
+ ,
263
+ onPress: this.handlePress,
264
+ onDrag: this.handleDrag,
265
+ onRelease: this.handleRelease // Resize
266
+ ,
267
+ onResizepress: this.handleResizePress,
268
+ onResizeenddrag: this.handleResizeEndDrag,
269
+ onResizestartdrag: this.handleResizeStartDrag,
270
+ onResizeselease: this.handleResizeRelease
234
271
  }, this.v3 ? function () {
235
272
  return [!_this2.$props.resizeHint && h("div", {
236
273
  title: _this2.itemTitle,
@@ -239,29 +276,45 @@ var SchedulerViewItemVue2 = {
239
276
  }
240
277
  }, [!_this2.$props.isAllDay && // @ts-ignore function children
241
278
  h(SchedulerItemContent, {
279
+ title: _this2.itemTitle,
280
+ attrs: _this2.v3 ? undefined : {
281
+ title: _this2.itemTitle
282
+ },
242
283
  "class": "k-event-template k-event-time "
243
284
  }, _this2.v3 ? function () {
244
- return [_this2.itemTitle];
245
- } : [_this2.itemTitle]), // @ts-ignore function children
285
+ return [defaultSlot];
286
+ } : [defaultSlot]), // @ts-ignore function children
246
287
  h(SchedulerItemContent, {
288
+ title: _this2.$props.title,
289
+ attrs: _this2.v3 ? undefined : {
290
+ title: _this2.$props.title
291
+ },
247
292
  "class": "k-event-template"
248
293
  }, _this2.v3 ? function () {
249
- return [_this2.$props.title];
250
- } : [_this2.$props.title])])];
294
+ return [defaultSlot];
295
+ } : [defaultSlot])])];
251
296
  } : [!_this2.$props.resizeHint && h("div", {
252
297
  title: _this2.itemTitle,
253
298
  attrs: _this2.v3 ? undefined : {
254
299
  title: _this2.itemTitle
255
300
  }
256
301
  }, [!_this2.$props.isAllDay && h(SchedulerItemContent, {
302
+ title: _this2.itemTitle,
303
+ attrs: _this2.v3 ? undefined : {
304
+ title: _this2.itemTitle
305
+ },
257
306
  "class": "k-event-template k-event-time "
258
307
  }, _this2.v3 ? function () {
259
- return [_this2.itemTitle];
260
- } : [_this2.itemTitle]), h(SchedulerItemContent, {
308
+ return [defaultSlot];
309
+ } : [defaultSlot]), h(SchedulerItemContent, {
310
+ title: _this2.$props.title,
311
+ attrs: _this2.v3 ? undefined : {
312
+ title: _this2.$props.title
313
+ },
261
314
  "class": "k-event-template"
262
315
  }, _this2.v3 ? function () {
263
- return [_this2.$props.title];
264
- } : [_this2.$props.title])])]);
316
+ return [defaultSlot];
317
+ } : [defaultSlot])])]);
265
318
  itemRender = getTemplate.call(this, {
266
319
  h: h,
267
320
  template: this.$props.item,
@@ -271,6 +324,73 @@ var SchedulerViewItemVue2 = {
271
324
  return itemRender;
272
325
  },
273
326
  methods: {
327
+ // Focus Handlers
328
+ handleFocus: function handleFocus(e) {
329
+ this.$emit('focus', e);
330
+ },
331
+ handleBlur: function handleBlur(e) {
332
+ this.$emit('blur', e);
333
+ },
334
+ // Mouse Handlers
335
+ handleMouseDown: function handleMouseDown(e) {
336
+ this.$emit('mousedown', e);
337
+ },
338
+ handleClick: function handleClick(e) {
339
+ this.$emit('click', e);
340
+ },
341
+ handleMouseUp: function handleMouseUp(e) {
342
+ this.$emit('mouseup', e);
343
+ },
344
+ handleMouseOver: function handleMouseOver(e) {
345
+ this.$emit('mouseover', e);
346
+ },
347
+ handleMouseOut: function handleMouseOut(e) {
348
+ this.$emit('mouseout', e);
349
+ },
350
+ handleMouseEnter: function handleMouseEnter(e) {
351
+ this.$emit('mouseenter', e);
352
+ },
353
+ handleMouseLeave: function handleMouseLeave(e) {
354
+ this.$emit('mouseleave', e);
355
+ },
356
+ handleDoubleClick: function handleDoubleClick(e) {
357
+ this.$emit('doubleclick', e);
358
+ },
359
+ handleRemoveClick: function handleRemoveClick(e) {
360
+ this.$emit('removeclick', e);
361
+ },
362
+ // Keyboard Handlers
363
+ handleKeyDown: function handleKeyDown(e) {
364
+ this.$emit('keydown', e);
365
+ },
366
+ handleKeyPress: function handleKeyPress(e) {
367
+ this.$emit('keypress', e);
368
+ },
369
+ handleKeyUp: function handleKeyUp(e) {
370
+ this.$emit('keyup', e);
371
+ },
372
+ // Drag Handlers
373
+ handlePress: function handlePress(e) {
374
+ this.$emit('press', e);
375
+ },
376
+ handleDrag: function handleDrag(e) {
377
+ this.$emit('drag', e);
378
+ },
379
+ handleRelease: function handleRelease(e) {
380
+ this.$emit('release', e);
381
+ },
382
+ handleResizePress: function handleResizePress(e) {
383
+ this.$emit('resizepress', e);
384
+ },
385
+ handleResizeStartDrag: function handleResizeStartDrag(e) {
386
+ this.$emit('resizestartdrag', e);
387
+ },
388
+ handleResizeEndDrag: function handleResizeEndDrag(e) {
389
+ this.$emit('resizeenddrag', e);
390
+ },
391
+ handleResizeRelease: function handleResizeRelease(e) {
392
+ this.$emit('resizerelease', e);
393
+ },
274
394
  calculateMostSiblings: function calculateMostSiblings(slots, items) {
275
395
  var _this = this;
276
396
 
@@ -302,6 +422,12 @@ var SchedulerViewItemVue2 = {
302
422
  align: function align() {
303
423
  var _this = this;
304
424
 
425
+ var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
426
+
427
+ if (!element) {
428
+ return;
429
+ }
430
+
305
431
  var slots = (this.bv.slots || []).filter(function (slot) {
306
432
  return slot && _this.inSlot(slot.$props, _this.$props);
307
433
  });
@@ -324,12 +450,12 @@ var SchedulerViewItemVue2 = {
324
450
  }
325
451
 
326
452
  var rect = getRect(firstSlot.$el);
327
- setRect(this.$el, rect);
453
+ setRect(element, rect);
328
454
  },
329
455
  position: function position() {
330
456
  var _this = this;
331
457
 
332
- var element = this.$el;
458
+ var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
333
459
 
334
460
  if (!element) {
335
461
  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;