@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
@@ -57,7 +57,10 @@ var utils_1 = require("../utils"); // tslint:enable:max-line-length
57
57
  var SchedulerEditItemVue2 = {
58
58
  name: 'KendoSchedulerEditItem',
59
59
  props: {
60
- tabIndex: Number,
60
+ tabIndex: {
61
+ type: Number,
62
+ default: undefined
63
+ },
61
64
  item: [String, Function, Object],
62
65
  viewItem: [String, Function, Object],
63
66
  drag: [String, Function, Object],
@@ -122,6 +125,15 @@ var SchedulerEditItemVue2 = {
122
125
  },
123
126
  ks: {
124
127
  default: null
128
+ },
129
+ dispatchFocusedItems: {
130
+ default: null
131
+ },
132
+ dispatchFocusedSlots: {
133
+ default: null
134
+ },
135
+ dispatchSelectedItems: {
136
+ default: null
125
137
  }
126
138
  },
127
139
  provide: function provide() {
@@ -145,7 +157,6 @@ var SchedulerEditItemVue2 = {
145
157
  showRemoveDialog: this.showRemoveDialog,
146
158
  showOccurrenceDialog: this.showOccurrenceDialog
147
159
  },
148
- currentTabIndex: this.$props.tabIndex,
149
160
  currentFormItem: null,
150
161
  currentSelected: null,
151
162
  currentSeries: null,
@@ -158,6 +169,10 @@ var SchedulerEditItemVue2 = {
158
169
  };
159
170
  },
160
171
  computed: {
172
+ currentTabIndex: function currentTabIndex() {
173
+ var isFirst = this.bv.items.length && this.bv.items[0].dataItem.id === this.dataItem.id;
174
+ return this.$props.tabIndex !== undefined ? this.$props.tabIndex === null ? undefined : this.$props.tabIndex : this.bv.selectedItems.length === 0 ? isFirst ? 0 : undefined : undefined;
175
+ },
161
176
  compSelected: function compSelected() {
162
177
  return this.selected !== undefined ? this.selected : this.currentSelected;
163
178
  },
@@ -188,10 +203,6 @@ var SchedulerEditItemVue2 = {
188
203
  return _a = {}, _a[use_series_1.SERIES_ACTION.set] = this.dispatchSeries, _a[use_series_1.SERIES_ACTION.toggle] = this.dispatchSeries, _a[use_series_1.SERIES_ACTION.reset] = this.dispatchSeries, _a[use_items_selection_1.ITEMS_SELECT_ACTION.select] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.add] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.remove] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.reset] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.selectNext] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.selectPrev] = this.dispatchItemSelection, _a[use_form_item_1.FORM_ITEM_ACTION.set] = this.dispatchFormItem, _a[use_form_item_1.FORM_ITEM_ACTION.setMaster] = this.dispatchFormItem, _a[use_form_item_1.FORM_ITEM_ACTION.reset] = this.dispatchFormItem, _a[use_form_item_1.FORM_ITEM_ACTION.complete] = this.dispatchFormItem, _a[use_remove_item_1.REMOVE_ITEM_ACTION.set] = this.dispatchRemoveItem, _a[use_remove_item_1.REMOVE_ITEM_ACTION.reset] = this.dispatchRemoveItem, _a[use_remove_item_1.REMOVE_ITEM_ACTION.complete] = this.dispatchRemoveItem, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.set] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.toggle] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.reset] = this.dispatchShowOccurrenceDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.close] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.open] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.set] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.toggle] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.reset] = this.dispatchShowRemoveDialog, _a[use_drag_item_1.DRAG_ITEM_ACTION.start] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.drag] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.complete] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.completeOccurrence] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.completeSeries] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.set] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.reset] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.dragSelected] = this.dispatchDragItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.start] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.startDrag] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.startDragSelected] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.endDrag] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.endDragSelected] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.complete] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.completeOccurrence] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.completeSeries] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.set] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.reset] = this.dispatchResizeItem, _a[hooks_1.ITEMS_FOCUS_ACTION.next] = this.dispatchViewItemsFocus, _a[hooks_1.ITEMS_FOCUS_ACTION.prev] = this.dispatchViewItemsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.left] = this.dispatchViewSlotsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.right] = this.dispatchViewSlotsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.up] = this.dispatchViewSlotsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.down] = this.dispatchViewSlotsFocus, _a.null = function () {}, _a;
189
204
  }
190
205
  },
191
- updated: function updated() {
192
- var isFirst = this.bv.items.length && this.bv.items[0] === this.item;
193
- this.currentTabindex = this.$props.tabIndex !== undefined ? this.$props.tabIndex === null ? undefined : this.$props.tabIndex : this.bv.selectedItems.length === 0 ? isFirst ? 0 : undefined : undefined; // }, [items, props.tabIndex, selectedItems.length]);
194
- },
195
206
  // @ts-ignore
196
207
  setup: !gh ? undefined : function () {
197
208
  var v3 = !!gh;
@@ -252,36 +263,32 @@ var SchedulerEditItemVue2 = {
252
263
  // onDataaction },
253
264
  // [null, propDragItem, onDragItemChange]
254
265
  // );
255
-
256
-
257
- var _c = use_resize_item_1.useResizeItem({
258
- dataItem: this.$props.dataItem,
259
- onDataaction: onDataaction
260
- }, [null, propResizeItem, onResizeItemChange]),
261
- resizeItem = _c[0],
262
- setResizeItem = _c[1],
263
- dispatchResizeItem = _c[2]; // const [removeItem, setRemoveItem, dispatchRemoveItem] = useRemoveItem(
266
+ // const [resizeItem, setResizeItem, dispatchResizeItem] = useResizeItem(
267
+ // { dataItem: this.$props.dataItem, onDataaction },
268
+ // [null, propResizeItem, onResizeItemChange]
269
+ // );
270
+ // const [removeItem, setRemoveItem, dispatchRemoveItem] = useRemoveItem(
264
271
  // { series, onDataaction},
265
272
  // [null, propRemoveItem, onRemoveItemChange]
266
273
  // );
267
274
 
268
275
 
269
- var _d = use_show_remove_item_dialog_1.useShowRemoveDialog(false, propShowRemoveDialog, onShowRemoveDialogChange),
270
- showRemoveDialog = _d[0],
271
- setShowRemoveDialog = _d[1],
272
- dispatchShowRemoveDialog = _d[2];
276
+ var _c = use_show_remove_item_dialog_1.useShowRemoveDialog(false, propShowRemoveDialog, onShowRemoveDialogChange),
277
+ showRemoveDialog = _c[0],
278
+ setShowRemoveDialog = _c[1],
279
+ dispatchShowRemoveDialog = _c[2];
273
280
 
274
- var _e = use_show_occurrence_dialog_1.useShowOccurrenceDialog(false, propShowOccurrenceDialog, onShowOccurrenceDialogChange),
275
- showOccurrenceDialog = _e[0],
276
- setShowOccurrenceDialog = _e[1],
277
- dispatchShowOccurrenceDialog = _e[2];
281
+ var _d = use_show_occurrence_dialog_1.useShowOccurrenceDialog(false, propShowOccurrenceDialog, onShowOccurrenceDialogChange),
282
+ showOccurrenceDialog = _d[0],
283
+ setShowOccurrenceDialog = _d[1],
284
+ dispatchShowOccurrenceDialog = _d[2];
278
285
 
279
286
  var items = this.bv.items; // useSchedulerViewItemsContext();
280
287
  // const [,dispatchViewItemsFocus] = useSchedulerViewFocusedItemsContext();
281
288
  // const [,dispatchViewSlotsFocus] = useSchedulerViewFocusedSlotsContext();
282
289
 
283
290
  var selected = Boolean(this.bv.selectedItems && this.bv.selectedItems.some(function (si) {
284
- return si === _this.item;
291
+ return utils_1.compareItems(si, _this, _this.ignoreIsAllDay);
285
292
  }));
286
293
  return (// @ts-ignore function children
287
294
  h(SchedulerViewItem_1.SchedulerViewItem, {
@@ -330,7 +337,7 @@ var SchedulerEditItemVue2 = {
330
337
  ,
331
338
  itemRef: this.item,
332
339
  selected: selected,
333
- tabIndex: this.tabIndex // Keyboard
340
+ tabIndex: this.currentTabIndex // Keyboard
334
341
 
335
342
  },
336
343
  item: this.item,
@@ -374,7 +381,7 @@ var SchedulerEditItemVue2 = {
374
381
  removeItem: this.compRemoveItem,
375
382
  itemRef: this.item,
376
383
  selected: selected,
377
- tabIndex: this.tabIndex,
384
+ tabIndex: this.currentTabIndex,
378
385
  onKeydown: this.handleKeyDown,
379
386
  on: this.v3 ? undefined : {
380
387
  "keydown": this.handleKeyDown,
@@ -391,7 +398,7 @@ var SchedulerEditItemVue2 = {
391
398
  "resizepress": this.handleResizePress,
392
399
  "resizeenddrag": this.handleResizeEndDrag,
393
400
  "resizestartdrag": this.handleResizeStartDrag,
394
- "resizeselease": this.handleResizeRelease
401
+ "resizerelease": this.handleResizeRelease
395
402
  },
396
403
  onKeyup: this.handleKeyUp // Focus
397
404
  ,
@@ -410,30 +417,8 @@ var SchedulerEditItemVue2 = {
410
417
  onResizepress: this.handleResizePress,
411
418
  onResizeenddrag: this.handleResizeEndDrag,
412
419
  onResizestartdrag: this.handleResizeStartDrag,
413
- onResizeselease: this.handleResizeRelease
414
- }) // {((resizeItem && editable.resize)) && (Array.isArray(resizeItem)
415
- // ? (resizeItem as any).map((ri, idx) => (
416
- // <Resize
417
- // key={idx}
418
- // format={this.$props.format}
419
- // ignoreIsAllDay={ignoreIsAllDay}
420
- // dataItem={ri}
421
- // viewItem={this.$props.viewItem}
422
- // item={this.$props.item}
423
- // vertical={this.$props.vertical}
424
- // />
425
- // ))
426
- // : (
427
- // <Resize
428
- // format={this.$props.format}
429
- // ignoreIsAllDay={ignoreIsAllDay}
430
- // dataItem={resizeItem}
431
- // viewItem={this.$props.viewItem}
432
- // item={this.$props.item}
433
- // vertical={this.$props.vertical}
434
- // />
435
- // ))}
436
-
420
+ onResizerelease: this.handleResizeRelease
421
+ })
437
422
  );
438
423
  },
439
424
  methods: {
@@ -442,8 +427,8 @@ var SchedulerEditItemVue2 = {
442
427
  this.currentSeries = newSeries;
443
428
  this.$emit('serieschange', newSeries);
444
429
  },
445
- dispatchItemSelection: function dispatchItemSelection(action, _event) {
446
- this.aaa = action;
430
+ dispatchItemSelection: function dispatchItemSelection(action, event) {
431
+ this.dispatchSelectedItems(action, event);
447
432
  },
448
433
  dispatchRemoveItem: function dispatchRemoveItem(action, _event) {
449
434
  var newRemoveItem;
@@ -490,14 +475,14 @@ var SchedulerEditItemVue2 = {
490
475
  dispatchDragItem: function dispatchDragItem(action, _event) {
491
476
  use_drag_item_1.useDragItem.call(this, action);
492
477
  },
493
- dispatchResizeItem: function dispatchResizeItem(action, _event) {
494
- this.aaa = action;
478
+ dispatchResizeItem: function dispatchResizeItem(action, event) {
479
+ use_resize_item_1.useResizeItem.call(this, action, event);
495
480
  },
496
- dispatchViewSlotsFocus: function dispatchViewSlotsFocus(action, _event) {
497
- this.aaa = action;
481
+ dispatchViewSlotsFocus: function dispatchViewSlotsFocus(action, event) {
482
+ this.dispatchFocusedSlots(action, event);
498
483
  },
499
- dispatchViewItemsFocus: function dispatchViewItemsFocus(action, _event) {
500
- this.aaa = action;
484
+ dispatchViewItemsFocus: function dispatchViewItemsFocus(action, event) {
485
+ this.dispatchFocusedItems(action, event);
501
486
  },
502
487
  dispatchFormItem: function dispatchFormItem(action, _event) {
503
488
  var newFormItem;
@@ -536,52 +521,76 @@ var SchedulerEditItemVue2 = {
536
521
  this.$emit('formitemchange', newFormItem);
537
522
  },
538
523
  handleFocus: function handleFocus(event) {
524
+ var _this = this;
525
+
539
526
  if (this.onFocusAction) {
540
527
  var actions = this.onFocusAction(event, this.$props);
541
528
 
542
- if (actions) {// Array.isArray(actions)
543
- // ? actions.filter(Boolean).map((action) => action &&
544
- // this.actionsReducerMap[action.type]({...action, item: this.dataItem}, event))
545
- // : this.actionsReducerMap[actions.type]({...actions, item: this.dataItem});
529
+ if (actions) {
530
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
531
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
532
+ item: _this.dataItem
533
+ }), event);
534
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
535
+ item: this.dataItem
536
+ }));
546
537
  }
547
538
  }
548
539
 
549
540
  this.$emit('focus', event);
550
541
  },
551
542
  handleMouseDown: function handleMouseDown(event) {
543
+ var _this = this;
544
+
552
545
  if (this.onMouseDownAction) {
553
546
  var actions = this.onMouseDownAction(event, this.$props);
554
547
 
555
- if (actions) {// Array.isArray(actions)
556
- // ? actions.filter(Boolean).map((action) => action &&
557
- // this.actionsReducerMap[action.type]({...action, item: this.dataItem}, event))
558
- // : this.actionsReducerMap[actions.type]({...actions, item: this.dataItem});
548
+ if (actions) {
549
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
550
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
551
+ item: _this.dataItem
552
+ }), event);
553
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
554
+ item: this.dataItem
555
+ }));
559
556
  }
560
557
  }
561
558
 
562
559
  this.$emit('mousedown', event);
563
560
  },
564
561
  handleMouseUp: function handleMouseUp(event) {
562
+ var _this = this;
563
+
565
564
  if (this.onMouseUpAction) {
566
565
  var actions = this.onMouseUpAction(event, this.$props);
567
566
 
568
- if (actions) {// Array.isArray(actions)
569
- // ? actions.filter(Boolean).map((action) => action &&
570
- // this.actionsReducerMap[action.type]({...action, item: this.dataItem}, event))
571
- // : this.actionsReducerMap[actions.type]({...actions, item: this.dataItem});
567
+ if (actions) {
568
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
569
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
570
+ item: _this.dataItem
571
+ }), event);
572
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
573
+ item: this.dataItem
574
+ }));
572
575
  }
573
576
  }
574
577
 
575
578
  this.$emit('mouseup', event);
576
579
  },
577
580
  handleClick: function handleClick(event) {
581
+ var _this = this;
582
+
578
583
  if (this.onClickAction) {
579
584
  var actions = this.onClickAction(event, this.$props);
580
585
 
581
- if (actions) {// Array.isArray(actions)
582
- // ? actions.filter(Boolean).map((action) => action &&
583
- // this.actionsReducerMap[action.type]({...action, item: this.dataItem}, event))
584
- // : this.actionsReducerMap[actions.type]({...actions, item: this.dataItem});
586
+ if (actions) {
587
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
588
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
589
+ item: _this.dataItem
590
+ }), event);
591
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
592
+ item: this.dataItem
593
+ }));
585
594
  }
586
595
  }
587
596
 
@@ -682,71 +691,76 @@ var SchedulerEditItemVue2 = {
682
691
  this.$emit('release', event);
683
692
  },
684
693
  handleResizePress: function handleResizePress(event) {
694
+ var _this = this;
695
+
685
696
  if (this.onResizePressAction) {
686
697
  var actions = this.onResizePressAction(event, this.$props);
687
698
 
688
- if (actions) {// Array.isArray(actions)
689
- // ? actions.filter(Boolean).map((action) => action &&
690
- // this.actionsReducerMap[action.type](
691
- // {...action, item: this.dataItem},
692
- // event.dragEvent.originalEvent))
693
- // : this.actionsReducerMap[actions.type](
694
- // {...actions, item: this.dataItem},
695
- // event.dragEvent.originalEvent
696
- // );
699
+ if (actions) {
700
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
701
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
702
+ item: _this.dataItem
703
+ }), event.dragEvent.originalEvent);
704
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
705
+ item: this.dataItem
706
+ }), event.dragEvent.originalEvent);
697
707
  }
698
708
  }
699
709
 
700
710
  this.$emit('resizepress', event);
701
711
  },
702
712
  handleResizeStartDrag: function handleResizeStartDrag(event) {
713
+ var _this = this;
714
+
703
715
  if (this.onResizeStartDragAction) {
704
716
  var actions = this.onResizeStartDragAction(event, this.$props);
705
717
 
706
- if (actions) {// Array.isArray(actions)
707
- // ? actions.filter(Boolean).map((action) => action &&
708
- // this.actionsReducerMap[action.type](
709
- // {...action, item: this.dataItem},
710
- // event.dragEvent.originalEvent))
711
- // : this.actionsReducerMap[actions.type](
712
- // {...actions, item: this.dataItem},
713
- // event.dragEvent.originalEvent
714
- // );
718
+ if (actions) {
719
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
720
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
721
+ item: _this.dataItem
722
+ }), event.dragEvent.originalEvent);
723
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
724
+ item: this.dataItem
725
+ }), event.dragEvent.originalEvent);
715
726
  }
716
727
  }
717
728
 
718
729
  this.$emit('resizestartdrag', event);
719
730
  },
720
731
  handleResizeEndDrag: function handleResizeEndDrag(event) {
732
+ var _this = this;
733
+
721
734
  if (this.onResizeEndDragAction) {
722
735
  var actions = this.onResizeEndDragAction(event, this.$props);
723
736
 
724
- if (actions) {// Array.isArray(actions)
725
- // ? actions.filter(Boolean).map((action) => action &&
726
- // this.actionsReducerMap[action.type](
727
- // {...action, item: this.dataItem},
728
- // event.dragEvent.originalEvent))
729
- // : this.actionsReducerMap[actions.type](
730
- // {...actions, item: this.dataItem},
731
- // event.dragEvent.originalEvent);
737
+ if (actions) {
738
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
739
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
740
+ item: _this.dataItem
741
+ }), event.dragEvent.originalEvent);
742
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
743
+ item: this.dataItem
744
+ }), event.dragEvent.originalEvent);
732
745
  }
733
746
  }
734
747
 
735
748
  this.$emit('resizeenddrag', event);
736
749
  },
737
750
  handleResizeRelease: function handleResizeRelease(event) {
751
+ var _this = this;
752
+
738
753
  if (this.onResizeReleaseAction) {
739
754
  var actions = this.onResizeReleaseAction(event, this.$props);
740
755
 
741
- if (actions) {// Array.isArray(actions)
742
- // ? actions.filter(Boolean).map((action) => action &&
743
- // this.actionsReducerMap[action.type](
744
- // {...action, item: this.dataItem},
745
- // event.dragEvent.originalEvent))
746
- // : this.actionsReducerMap[actions.type](
747
- // {...actions, item: this.dataItem },
748
- // event.dragEvent.originalEvent
749
- // );
756
+ if (actions) {
757
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
758
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
759
+ item: _this.dataItem
760
+ }), event.dragEvent.originalEvent);
761
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
762
+ item: this.dataItem
763
+ }), event.dragEvent.originalEvent);
750
764
  }
751
765
  }
752
766
 
@@ -829,26 +843,38 @@ var SchedulerEditItemVue2 = {
829
843
  this.$emit('seriesclick', event);
830
844
  },
831
845
  handleKeyDown: function handleKeyDown(event) {
846
+ var _this = this;
847
+
832
848
  if (this.onKeyDownAction) {
833
849
  var actions = this.onKeyDownAction(event, this.$props);
834
850
 
835
- if (actions) {// Array.isArray(actions)
836
- // ? actions.filter(Boolean).map((action) => action &&
837
- // this.actionsReducerMap[action.type]({...action, item: this.dataItem}, event.event))
838
- // : this.actionsReducerMap[actions.type]({...actions, item: this.dataItem}, event.event);
851
+ if (actions) {
852
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
853
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
854
+ item: _this
855
+ }), event.event);
856
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
857
+ item: this
858
+ }), event.event);
839
859
  }
840
860
  }
841
861
 
842
862
  this.$emit('keydown', event);
843
863
  },
844
864
  handleKeyUp: function handleKeyUp(event) {
865
+ var _this = this;
866
+
845
867
  if (this.onKeyUpAction) {
846
868
  var actions = this.onKeyUpAction(event, this.$props);
847
869
 
848
- if (actions) {// Array.isArray(actions)
849
- // ? actions.filter(Boolean).map((action) => action &&
850
- // this.actionsReducerMap[action.type]({...action, item: this.dataItem}, event.event))
851
- // : this.actionsReducerMap[actions.type]({...actions, item: this.dataItem}, event.event);
870
+ if (actions) {
871
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
872
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
873
+ item: _this.dataItem
874
+ }), event.event);
875
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
876
+ item: this.dataItem
877
+ }), event.event);
852
878
  }
853
879
  }
854
880
 
@@ -205,6 +205,7 @@ export interface SchedulerItemHandle {
205
205
  * @hidden
206
206
  */
207
207
  export interface SchedulerItemState {
208
+ element: HTMLDivElement | null;
208
209
  }
209
210
  /**
210
211
  * @hidden