@progress/kendo-vue-scheduler 3.6.4 → 3.6.5-dev.202210181442
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.
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/dist/es/Scheduler.js +19 -46
- package/dist/es/components/BaseView.js +3 -8
- package/dist/es/components/CurrentTimeMarker.js +4 -18
- package/dist/es/components/CurrentTimeMarkerArrow.js +2 -15
- package/dist/es/components/DateHeaderCell.js +0 -2
- package/dist/es/components/SchedulerActionButtons.js +6 -6
- package/dist/es/components/SchedulerForm.js +4 -14
- package/dist/es/components/SchedulerOccurrenceDialog.js +16 -16
- package/dist/es/components/SchedulerRemoveDialog.js +8 -8
- package/dist/es/components/ShowMoreItemsButton.js +4 -4
- package/dist/es/components/TimeHeaderCell.js +0 -2
- package/dist/es/components/footer/SchedulerFooter.js +4 -4
- package/dist/es/components/footer/bussiness-hours/BusinessHours.js +6 -6
- package/dist/es/components/header/SchedulerHeader.js +2 -2
- package/dist/es/components/header/navigation/DatePickerToggleButton.js +8 -12
- package/dist/es/components/header/navigation/NavigationDatePicker.js +6 -15
- package/dist/es/components/header/navigation/SchedulerNavigation.js +10 -8
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -4
- package/dist/es/components/header/view-selector/ViewSelectorItem.js +2 -3
- package/dist/es/components/header/view-selector/ViewSelectorList.js +6 -13
- package/dist/es/context/SchedulerResourceIteratorContext.js +0 -2
- package/dist/es/editors/FilterableComboBox.js +8 -15
- package/dist/es/editors/ResourceEditor.js +5 -15
- package/dist/es/editors/SchedulerFormEditor.js +44 -38
- package/dist/es/editors/ZonedDateTime.js +4 -19
- package/dist/es/hooks/use-items-focus.js +0 -16
- package/dist/es/hooks/use-items-selection.js +0 -21
- package/dist/es/hooks/use-slots-focus.js +0 -23
- package/dist/es/hooks/use-slots-selection.js +0 -11
- package/dist/es/hooks/useAsyncMouseEnterLeave.js +1 -5
- package/dist/es/hooks/useCellSync.js +0 -10
- package/dist/es/hooks/usePropOrState.js +1 -2
- package/dist/es/hooks/useRowSync.js +0 -10
- package/dist/es/hooks/useSlotExpand.js +0 -13
- package/dist/es/items/SchedulerEditItem.js +19 -107
- package/dist/es/items/SchedulerItem.js +19 -19
- package/dist/es/items/SchedulerItemContent.js +0 -2
- package/dist/es/items/SchedulerViewItem.js +20 -45
- package/dist/es/items/hooks/use-drag-item.js +0 -45
- package/dist/es/items/hooks/use-form-item.js +0 -3
- package/dist/es/items/hooks/use-remove-item.js +0 -3
- package/dist/es/items/hooks/use-resize-item.js +0 -56
- package/dist/es/items/hooks/use-series.js +0 -7
- package/dist/es/items/hooks/use-show-occurrence-dialog.js +0 -9
- package/dist/es/items/hooks/use-show-remove-item-dialog.js +0 -9
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/RecurrenceEditor.js +20 -44
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +6 -7
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +8 -10
- package/dist/es/slots/SchedulerEditSlot.js +27 -46
- package/dist/es/slots/SchedulerSlot.js +11 -12
- package/dist/es/slots/SchedulerViewSlot.js +18 -23
- package/dist/es/tasks/SchedulerEditTask.js +17 -30
- package/dist/es/tasks/SchedulerTask.js +4 -10
- package/dist/es/tasks/SchedulerViewTask.js +2 -3
- package/dist/es/views/agenda/AgendaView.js +14 -21
- package/dist/es/views/agenda/AgendaViewBody.js +2 -9
- package/dist/es/views/agenda/AgendaViewHead.js +0 -2
- package/dist/es/views/agenda/AgendaViewHeaderItem.js +0 -2
- package/dist/es/views/common/HorizontalResourceIterator.js +4 -11
- package/dist/es/views/common/SchedulerDrag.js +2 -4
- package/dist/es/views/common/SchedulerResize.js +2 -5
- package/dist/es/views/common/VerticalResourceIterator.js +9 -25
- package/dist/es/views/day/DayView.js +0 -2
- package/dist/es/views/day/DayViewAllDayRowContent.js +2 -3
- package/dist/es/views/day/DayViewAllDaySlots.js +3 -6
- package/dist/es/views/day/DayViewGroupRowContent.js +0 -2
- package/dist/es/views/day/DayViewHead.js +0 -2
- package/dist/es/views/day/DayViewMiddleRow.js +0 -3
- package/dist/es/views/day/DayViewRowContent.js +0 -2
- package/dist/es/views/day/DayViewVerticalRow.js +2 -4
- package/dist/es/views/day/DayViewVerticalSlotsRow.js +14 -16
- package/dist/es/views/day/MultiDayView.js +25 -32
- package/dist/es/views/month/MonthView.js +15 -23
- package/dist/es/views/month/MonthViewBody.js +2 -6
- package/dist/es/views/month/MonthViewHead.js +2 -4
- package/dist/es/views/time/MultiDayTimelineView.js +17 -29
- package/dist/es/views/time/TimelineView.js +0 -2
- package/dist/es/views/time/TimelineViewAllEventsRowContent.js +0 -2
- package/dist/es/views/time/TimelineViewBody.js +0 -2
- package/dist/es/views/time/TimelineViewRowContent.js +0 -2
- package/dist/es/views/week/WeekView.js +2 -8
- package/dist/es/views/week/WorkWeekView.js +5 -17
- package/dist/esm/Scheduler.js +19 -46
- package/dist/esm/components/BaseView.js +3 -8
- package/dist/esm/components/CurrentTimeMarker.js +4 -18
- package/dist/esm/components/CurrentTimeMarkerArrow.js +2 -15
- package/dist/esm/components/DateHeaderCell.js +0 -2
- package/dist/esm/components/SchedulerActionButtons.js +6 -6
- package/dist/esm/components/SchedulerForm.js +4 -14
- package/dist/esm/components/SchedulerOccurrenceDialog.js +16 -16
- package/dist/esm/components/SchedulerRemoveDialog.js +8 -8
- package/dist/esm/components/ShowMoreItemsButton.js +4 -4
- package/dist/esm/components/TimeHeaderCell.js +0 -2
- package/dist/esm/components/footer/SchedulerFooter.js +4 -4
- package/dist/esm/components/footer/bussiness-hours/BusinessHours.js +6 -6
- package/dist/esm/components/header/SchedulerHeader.js +2 -2
- package/dist/esm/components/header/navigation/DatePickerToggleButton.js +8 -12
- package/dist/esm/components/header/navigation/NavigationDatePicker.js +6 -15
- package/dist/esm/components/header/navigation/SchedulerNavigation.js +10 -8
- package/dist/esm/components/header/view-selector/SchedulerViewSelector.js +4 -4
- package/dist/esm/components/header/view-selector/ViewSelectorItem.js +2 -3
- package/dist/esm/components/header/view-selector/ViewSelectorList.js +6 -13
- package/dist/esm/context/SchedulerResourceIteratorContext.js +0 -2
- package/dist/esm/editors/FilterableComboBox.js +8 -15
- package/dist/esm/editors/ResourceEditor.js +5 -15
- package/dist/esm/editors/SchedulerFormEditor.js +44 -38
- package/dist/esm/editors/ZonedDateTime.js +4 -19
- package/dist/esm/hooks/use-items-focus.js +0 -16
- package/dist/esm/hooks/use-items-selection.js +0 -21
- package/dist/esm/hooks/use-slots-focus.js +0 -23
- package/dist/esm/hooks/use-slots-selection.js +0 -11
- package/dist/esm/hooks/useAsyncMouseEnterLeave.js +1 -5
- package/dist/esm/hooks/useCellSync.js +0 -10
- package/dist/esm/hooks/usePropOrState.js +1 -2
- package/dist/esm/hooks/useRowSync.js +0 -10
- package/dist/esm/hooks/useSlotExpand.js +0 -13
- package/dist/esm/items/SchedulerEditItem.js +19 -107
- package/dist/esm/items/SchedulerItem.js +19 -19
- package/dist/esm/items/SchedulerItemContent.js +0 -2
- package/dist/esm/items/SchedulerViewItem.js +20 -45
- package/dist/esm/items/hooks/use-drag-item.js +0 -45
- package/dist/esm/items/hooks/use-form-item.js +0 -3
- package/dist/esm/items/hooks/use-remove-item.js +0 -3
- package/dist/esm/items/hooks/use-resize-item.js +0 -56
- package/dist/esm/items/hooks/use-series.js +0 -7
- package/dist/esm/items/hooks/use-show-occurrence-dialog.js +0 -9
- package/dist/esm/items/hooks/use-show-remove-item-dialog.js +0 -9
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/recurrence/RecurrenceEditor.js +20 -44
- package/dist/esm/recurrence/RecurrenceFrequencyEditor.js +6 -7
- package/dist/esm/recurrence/RecurrenceRepeatOnWeekEditor.js +8 -10
- package/dist/esm/slots/SchedulerEditSlot.js +27 -46
- package/dist/esm/slots/SchedulerSlot.js +11 -12
- package/dist/esm/slots/SchedulerViewSlot.js +18 -23
- package/dist/esm/tasks/SchedulerEditTask.js +17 -30
- package/dist/esm/tasks/SchedulerTask.js +4 -10
- package/dist/esm/tasks/SchedulerViewTask.js +2 -3
- package/dist/esm/views/agenda/AgendaView.js +14 -21
- package/dist/esm/views/agenda/AgendaViewBody.js +2 -9
- package/dist/esm/views/agenda/AgendaViewHead.js +0 -2
- package/dist/esm/views/agenda/AgendaViewHeaderItem.js +0 -2
- package/dist/esm/views/common/HorizontalResourceIterator.js +4 -11
- package/dist/esm/views/common/SchedulerDrag.js +2 -4
- package/dist/esm/views/common/SchedulerResize.js +2 -5
- package/dist/esm/views/common/VerticalResourceIterator.js +9 -25
- package/dist/esm/views/day/DayView.js +0 -2
- package/dist/esm/views/day/DayViewAllDayRowContent.js +2 -3
- package/dist/esm/views/day/DayViewAllDaySlots.js +3 -6
- package/dist/esm/views/day/DayViewGroupRowContent.js +0 -2
- package/dist/esm/views/day/DayViewHead.js +0 -2
- package/dist/esm/views/day/DayViewMiddleRow.js +0 -3
- package/dist/esm/views/day/DayViewRowContent.js +0 -2
- package/dist/esm/views/day/DayViewVerticalRow.js +2 -4
- package/dist/esm/views/day/DayViewVerticalSlotsRow.js +14 -16
- package/dist/esm/views/day/MultiDayView.js +25 -32
- package/dist/esm/views/month/MonthView.js +15 -23
- package/dist/esm/views/month/MonthViewBody.js +2 -6
- package/dist/esm/views/month/MonthViewHead.js +2 -4
- package/dist/esm/views/time/MultiDayTimelineView.js +17 -29
- package/dist/esm/views/time/TimelineView.js +0 -2
- package/dist/esm/views/time/TimelineViewAllEventsRowContent.js +0 -2
- package/dist/esm/views/time/TimelineViewBody.js +0 -2
- package/dist/esm/views/time/TimelineViewRowContent.js +0 -2
- package/dist/esm/views/week/WeekView.js +2 -8
- package/dist/esm/views/week/WorkWeekView.js +5 -17
- package/dist/npm/Scheduler.js +19 -65
- package/dist/npm/components/BaseView.js +5 -17
- package/dist/npm/components/CurrentTimeMarker.js +6 -24
- package/dist/npm/components/CurrentTimeMarkerArrow.js +4 -22
- package/dist/npm/components/DateHeaderCell.js +2 -8
- package/dist/npm/components/SchedulerActionButtons.js +8 -12
- package/dist/npm/components/SchedulerForm.js +4 -23
- package/dist/npm/components/SchedulerOccurrenceDialog.js +19 -25
- package/dist/npm/components/SchedulerRemoveDialog.js +10 -17
- package/dist/npm/components/ShowMoreItemsButton.js +6 -9
- package/dist/npm/components/TimeHeaderCell.js +2 -8
- package/dist/npm/components/footer/SchedulerFooter.js +4 -9
- package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +6 -14
- package/dist/npm/components/header/SchedulerHeader.js +4 -8
- package/dist/npm/components/header/navigation/DatePickerToggleButton.js +8 -17
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +6 -24
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +12 -17
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +4 -10
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +4 -10
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +6 -19
- package/dist/npm/context/SchedulerContext.js +0 -2
- package/dist/npm/context/SchedulerEditItemContext.js +0 -2
- package/dist/npm/context/SchedulerEditSlotContext.js +0 -2
- package/dist/npm/context/SchedulerEditTaskContext.js +0 -2
- package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -7
- package/dist/npm/context/SchedulerViewContext.js +0 -2
- package/dist/npm/editors/FilterableComboBox.js +8 -19
- package/dist/npm/editors/ResourceEditor.js +5 -19
- package/dist/npm/editors/SchedulerFormEditor.js +44 -52
- package/dist/npm/editors/ZonedDateTime.js +4 -23
- package/dist/npm/hooks/use-items-focus.js +0 -19
- package/dist/npm/hooks/use-items-selection.js +0 -24
- package/dist/npm/hooks/use-slots-focus.js +0 -29
- package/dist/npm/hooks/use-slots-selection.js +0 -12
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +1 -7
- package/dist/npm/hooks/useCellSync.js +0 -14
- package/dist/npm/hooks/useEditable.js +0 -2
- package/dist/npm/hooks/usePropOrState.js +1 -5
- package/dist/npm/hooks/useRowSync.js +0 -13
- package/dist/npm/hooks/useSchedulerSlot.js +0 -2
- package/dist/npm/hooks/useSlotExpand.js +0 -18
- package/dist/npm/hooks/useWorkHours.js +0 -2
- package/dist/npm/items/SchedulerEditItem.js +19 -122
- package/dist/npm/items/SchedulerItem.js +19 -30
- package/dist/npm/items/SchedulerItemContent.js +2 -6
- package/dist/npm/items/SchedulerViewItem.js +20 -54
- package/dist/npm/items/hooks/use-drag-item.js +0 -50
- package/dist/npm/items/hooks/use-form-item.js +0 -5
- package/dist/npm/items/hooks/use-remove-item.js +0 -5
- package/dist/npm/items/hooks/use-resize-item.js +0 -61
- package/dist/npm/items/hooks/use-series.js +0 -10
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +0 -12
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +0 -12
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/recurrence/RecurrenceEditor.js +22 -59
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +8 -12
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +8 -14
- package/dist/npm/slots/SchedulerEditSlot.js +29 -57
- package/dist/npm/slots/SchedulerSlot.js +11 -19
- package/dist/npm/slots/SchedulerViewSlot.js +20 -30
- package/dist/npm/tasks/SchedulerEditTask.js +17 -37
- package/dist/npm/tasks/SchedulerTask.js +4 -18
- package/dist/npm/tasks/SchedulerViewTask.js +4 -9
- package/dist/npm/views/agenda/AgendaView.js +14 -38
- package/dist/npm/views/agenda/AgendaViewBody.js +4 -17
- package/dist/npm/views/agenda/AgendaViewHead.js +2 -8
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +2 -7
- package/dist/npm/views/common/HorizontalResourceIterator.js +6 -20
- package/dist/npm/views/common/SchedulerDrag.js +4 -12
- package/dist/npm/views/common/SchedulerResize.js +4 -13
- package/dist/npm/views/common/VerticalResourceIterator.js +11 -35
- package/dist/npm/views/day/DayView.js +2 -10
- package/dist/npm/views/day/DayViewAllDayRowContent.js +4 -9
- package/dist/npm/views/day/DayViewAllDaySlots.js +5 -11
- package/dist/npm/views/day/DayViewGroupRowContent.js +2 -5
- package/dist/npm/views/day/DayViewHead.js +2 -8
- package/dist/npm/views/day/DayViewMiddleRow.js +2 -11
- package/dist/npm/views/day/DayViewRowContent.js +2 -8
- package/dist/npm/views/day/DayViewVerticalRow.js +4 -11
- package/dist/npm/views/day/DayViewVerticalSlotsRow.js +16 -26
- package/dist/npm/views/day/MultiDayView.js +23 -54
- package/dist/npm/views/month/MonthView.js +15 -43
- package/dist/npm/views/month/MonthViewBody.js +4 -12
- package/dist/npm/views/month/MonthViewHead.js +4 -10
- package/dist/npm/views/time/MultiDayTimelineView.js +17 -51
- package/dist/npm/views/time/TimelineView.js +2 -8
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +2 -8
- package/dist/npm/views/time/TimelineViewBody.js +2 -9
- package/dist/npm/views/time/TimelineViewRowContent.js +2 -5
- package/dist/npm/views/week/WeekView.js +4 -18
- package/dist/npm/views/week/WorkWeekView.js +5 -25
- package/package.json +12 -12
|
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
|
|
|
2
2
|
__assign = Object.assign || function (t) {
|
|
3
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
4
|
s = arguments[i];
|
|
5
|
-
|
|
6
5
|
for (var p in s) {
|
|
7
6
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
};
|
|
13
|
+
// @ts-ignore
|
|
18
14
|
import * as Vue from 'vue';
|
|
19
15
|
var allVue = Vue;
|
|
20
16
|
var gh = allVue.h;
|
|
@@ -36,7 +32,6 @@ import { compareItems, compareSlots, findMaster } from '../utils/main';
|
|
|
36
32
|
/**
|
|
37
33
|
* @hidden
|
|
38
34
|
*/
|
|
39
|
-
|
|
40
35
|
var SchedulerEditItemVue2 = {
|
|
41
36
|
name: 'KendoSchedulerEditItem',
|
|
42
37
|
props: {
|
|
@@ -147,10 +142,11 @@ var SchedulerEditItemVue2 = {
|
|
|
147
142
|
currentDragItem: null,
|
|
148
143
|
currentResizeItem: null,
|
|
149
144
|
currentShowRemoveDialog: null,
|
|
150
|
-
currentShowOccurrenceDialog: null
|
|
151
|
-
|
|
145
|
+
currentShowOccurrenceDialog: null
|
|
146
|
+
// item: null
|
|
152
147
|
};
|
|
153
148
|
},
|
|
149
|
+
|
|
154
150
|
computed: {
|
|
155
151
|
currentTabIndex: function currentTabIndex() {
|
|
156
152
|
var isFirst = this.bv.items.length && this.bv.items[0].dataItem.id === this.dataItem.id;
|
|
@@ -182,7 +178,6 @@ var SchedulerEditItemVue2 = {
|
|
|
182
178
|
},
|
|
183
179
|
actionsReducerMap: function actionsReducerMap() {
|
|
184
180
|
var _a;
|
|
185
|
-
|
|
186
181
|
return _a = {}, _a[SERIES_ACTION.set] = this.dispatchSeries, _a[SERIES_ACTION.toggle] = this.dispatchSeries, _a[SERIES_ACTION.reset] = this.dispatchSeries, _a[ITEMS_SELECT_ACTION.select] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.add] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.remove] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.reset] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.selectNext] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.selectPrev] = this.dispatchItemSelection, _a[FORM_ITEM_ACTION.set] = this.dispatchFormItem, _a[FORM_ITEM_ACTION.setMaster] = this.dispatchFormItem, _a[FORM_ITEM_ACTION.reset] = this.dispatchFormItem, _a[FORM_ITEM_ACTION.complete] = this.dispatchFormItem, _a[REMOVE_ITEM_ACTION.set] = this.dispatchRemoveItem, _a[REMOVE_ITEM_ACTION.reset] = this.dispatchRemoveItem, _a[REMOVE_ITEM_ACTION.complete] = this.dispatchRemoveItem, _a[SHOW_OCCURRENCE_DIALOG_ACTION.close] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.open] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.set] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.toggle] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.reset] = this.dispatchShowOccurrenceDialog, _a[SHOW_REMOVE_DIALOG_ACTION.close] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.open] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.set] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.toggle] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.reset] = this.dispatchShowRemoveDialog, _a[DRAG_ITEM_ACTION.start] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.drag] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.complete] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.completeOccurrence] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.completeSeries] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.set] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.reset] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.dragSelected] = this.dispatchDragItem, _a[RESIZE_ITEM_ACTION.start] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.startDrag] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.startDragSelected] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.endDrag] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.endDragSelected] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.complete] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.completeOccurrence] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.completeSeries] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.set] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.reset] = this.dispatchResizeItem, _a[ITEMS_FOCUS_ACTION.next] = this.dispatchViewItemsFocus, _a[ITEMS_FOCUS_ACTION.prev] = this.dispatchViewItemsFocus, _a[SLOTS_FOCUS_ACTION.left] = this.dispatchViewSlotsFocus, _a[SLOTS_FOCUS_ACTION.right] = this.dispatchViewSlotsFocus, _a[SLOTS_FOCUS_ACTION.up] = this.dispatchViewSlotsFocus, _a[SLOTS_FOCUS_ACTION.down] = this.dispatchViewSlotsFocus, _a.null = function () {}, _a;
|
|
187
182
|
}
|
|
188
183
|
},
|
|
@@ -196,15 +191,15 @@ var SchedulerEditItemVue2 = {
|
|
|
196
191
|
// @ts-ignore
|
|
197
192
|
render: function render(createElement) {
|
|
198
193
|
var _this = this;
|
|
199
|
-
|
|
200
194
|
var h = gh || createElement;
|
|
201
|
-
var defaultSlot = getDefaultSlots(this);
|
|
202
|
-
|
|
195
|
+
var defaultSlot = getDefaultSlots(this);
|
|
196
|
+
// tslint:enable:max-line-length
|
|
203
197
|
var selected = Boolean(this.bv.selectedItems && this.bv.selectedItems.some(function (si) {
|
|
204
198
|
return compareItems(si, _this, _this.ignoreIsAllDay);
|
|
205
199
|
}));
|
|
206
200
|
var itemRender;
|
|
207
|
-
var itemRenderDefaultRendering =
|
|
201
|
+
var itemRenderDefaultRendering =
|
|
202
|
+
// @ts-ignore function children
|
|
208
203
|
h(SchedulerViewItem, {
|
|
209
204
|
ignoreIsAllDay: this.ignoreIsAllDay,
|
|
210
205
|
attrs: this.v3 ? undefined : {
|
|
@@ -250,8 +245,8 @@ var SchedulerEditItemVue2 = {
|
|
|
250
245
|
removeItem: this.compRemoveItem,
|
|
251
246
|
itemRef: this.item,
|
|
252
247
|
selected: selected,
|
|
253
|
-
tabIndex: this.currentTabIndex
|
|
254
|
-
|
|
248
|
+
tabIndex: this.currentTabIndex
|
|
249
|
+
// Keyboard
|
|
255
250
|
},
|
|
256
251
|
item: this.item,
|
|
257
252
|
uid: this.uid,
|
|
@@ -313,19 +308,23 @@ var SchedulerEditItemVue2 = {
|
|
|
313
308
|
"resizestartdrag": this.handleResizeStartDrag,
|
|
314
309
|
"resizerelease": this.handleResizeRelease
|
|
315
310
|
},
|
|
316
|
-
onKeyup: this.handleKeyUp
|
|
311
|
+
onKeyup: this.handleKeyUp
|
|
312
|
+
// Focus
|
|
317
313
|
,
|
|
318
|
-
onFocus: this.handleFocus
|
|
314
|
+
onFocus: this.handleFocus
|
|
315
|
+
// Mouse
|
|
319
316
|
,
|
|
320
317
|
onMouseup: this.handleMouseUp,
|
|
321
318
|
onMousedown: this.handleMouseDown,
|
|
322
319
|
onClick: this.handleClick,
|
|
323
320
|
onDoubleclick: this.handleDoubleClick,
|
|
324
|
-
onRemoveclick: this.handleRemoveClick
|
|
321
|
+
onRemoveclick: this.handleRemoveClick
|
|
322
|
+
// Drag
|
|
325
323
|
,
|
|
326
324
|
onPress: this.handlePress,
|
|
327
325
|
onDrag: this.handleDrag,
|
|
328
|
-
onRelease: this.handleRelease
|
|
326
|
+
onRelease: this.handleRelease
|
|
327
|
+
// Resize
|
|
329
328
|
,
|
|
330
329
|
onResizepress: this.handleResizePress,
|
|
331
330
|
onResizeenddrag: this.handleResizeEndDrag,
|
|
@@ -372,16 +371,13 @@ var SchedulerEditItemVue2 = {
|
|
|
372
371
|
},
|
|
373
372
|
dispatchRemoveItem: function dispatchRemoveItem(action, _event) {
|
|
374
373
|
var newRemoveItem;
|
|
375
|
-
|
|
376
374
|
switch (action.type) {
|
|
377
375
|
case REMOVE_ITEM_ACTION.set:
|
|
378
376
|
newRemoveItem = action.payload;
|
|
379
377
|
break;
|
|
380
|
-
|
|
381
378
|
case REMOVE_ITEM_ACTION.reset:
|
|
382
379
|
newRemoveItem = null;
|
|
383
380
|
break;
|
|
384
|
-
|
|
385
381
|
case REMOVE_ITEM_ACTION.complete:
|
|
386
382
|
if (this.compRemoveItem) {
|
|
387
383
|
this.$emit('dataaction', {
|
|
@@ -390,15 +386,12 @@ var SchedulerEditItemVue2 = {
|
|
|
390
386
|
dataItem: this.compRemoveItem
|
|
391
387
|
});
|
|
392
388
|
}
|
|
393
|
-
|
|
394
389
|
newRemoveItem = null;
|
|
395
390
|
break;
|
|
396
|
-
|
|
397
391
|
default:
|
|
398
392
|
newRemoveItem = this.compRemoveItem;
|
|
399
393
|
break;
|
|
400
394
|
}
|
|
401
|
-
|
|
402
395
|
this.currentRemoveItem = newRemoveItem;
|
|
403
396
|
this.$emit('removeitemchange', newRemoveItem);
|
|
404
397
|
},
|
|
@@ -426,20 +419,16 @@ var SchedulerEditItemVue2 = {
|
|
|
426
419
|
},
|
|
427
420
|
dispatchFormItem: function dispatchFormItem(action, _event) {
|
|
428
421
|
var newFormItem;
|
|
429
|
-
|
|
430
422
|
switch (action.type) {
|
|
431
423
|
case FORM_ITEM_ACTION.set:
|
|
432
424
|
newFormItem = action.payload;
|
|
433
425
|
break;
|
|
434
|
-
|
|
435
426
|
case FORM_ITEM_ACTION.reset:
|
|
436
427
|
newFormItem = null;
|
|
437
428
|
break;
|
|
438
|
-
|
|
439
429
|
case FORM_ITEM_ACTION.setMaster:
|
|
440
430
|
newFormItem = clone(findMaster(action.payload, this.ks.fields, this.ks.dataItems));
|
|
441
431
|
break;
|
|
442
|
-
|
|
443
432
|
case FORM_ITEM_ACTION.complete:
|
|
444
433
|
if (this.compFormItem) {
|
|
445
434
|
this.$emit('dataaction', {
|
|
@@ -449,23 +438,18 @@ var SchedulerEditItemVue2 = {
|
|
|
449
438
|
});
|
|
450
439
|
newFormItem = null;
|
|
451
440
|
}
|
|
452
|
-
|
|
453
441
|
break;
|
|
454
|
-
|
|
455
442
|
default:
|
|
456
443
|
newFormItem = this.compFormItem;
|
|
457
444
|
break;
|
|
458
445
|
}
|
|
459
|
-
|
|
460
446
|
this.currentFormItem = newFormItem;
|
|
461
447
|
this.$emit('formitemchange', newFormItem);
|
|
462
448
|
},
|
|
463
449
|
handleFocus: function handleFocus(event) {
|
|
464
450
|
var _this = this;
|
|
465
|
-
|
|
466
451
|
if (this.onFocusAction) {
|
|
467
452
|
var actions = this.onFocusAction(event, this.$props);
|
|
468
|
-
|
|
469
453
|
if (actions) {
|
|
470
454
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
471
455
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -476,15 +460,12 @@ var SchedulerEditItemVue2 = {
|
|
|
476
460
|
}));
|
|
477
461
|
}
|
|
478
462
|
}
|
|
479
|
-
|
|
480
463
|
this.$emit('focus', event);
|
|
481
464
|
},
|
|
482
465
|
handleMouseDown: function handleMouseDown(event) {
|
|
483
466
|
var _this = this;
|
|
484
|
-
|
|
485
467
|
if (this.onMouseDownAction) {
|
|
486
468
|
var actions = this.onMouseDownAction(event, this.$props);
|
|
487
|
-
|
|
488
469
|
if (actions) {
|
|
489
470
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
490
471
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -495,15 +476,12 @@ var SchedulerEditItemVue2 = {
|
|
|
495
476
|
}));
|
|
496
477
|
}
|
|
497
478
|
}
|
|
498
|
-
|
|
499
479
|
this.$emit('mousedown', event);
|
|
500
480
|
},
|
|
501
481
|
handleMouseUp: function handleMouseUp(event) {
|
|
502
482
|
var _this = this;
|
|
503
|
-
|
|
504
483
|
if (this.onMouseUpAction) {
|
|
505
484
|
var actions = this.onMouseUpAction(event, this.$props);
|
|
506
|
-
|
|
507
485
|
if (actions) {
|
|
508
486
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
509
487
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -514,15 +492,12 @@ var SchedulerEditItemVue2 = {
|
|
|
514
492
|
}));
|
|
515
493
|
}
|
|
516
494
|
}
|
|
517
|
-
|
|
518
495
|
this.$emit('mouseup', event);
|
|
519
496
|
},
|
|
520
497
|
handleClick: function handleClick(event) {
|
|
521
498
|
var _this = this;
|
|
522
|
-
|
|
523
499
|
if (this.onClickAction) {
|
|
524
500
|
var actions = this.onClickAction(event, this.$props);
|
|
525
|
-
|
|
526
501
|
if (actions) {
|
|
527
502
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
528
503
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -533,14 +508,12 @@ var SchedulerEditItemVue2 = {
|
|
|
533
508
|
}));
|
|
534
509
|
}
|
|
535
510
|
}
|
|
536
|
-
|
|
537
511
|
this.$emit('click', event);
|
|
538
512
|
},
|
|
539
513
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
540
514
|
if (this.onDoubleClickAction) {
|
|
541
515
|
var actions = this.onDoubleClickAction(event, this.$props);
|
|
542
516
|
var that_1 = this;
|
|
543
|
-
|
|
544
517
|
if (actions) {
|
|
545
518
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
546
519
|
return action && that_1.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -551,15 +524,12 @@ var SchedulerEditItemVue2 = {
|
|
|
551
524
|
}));
|
|
552
525
|
}
|
|
553
526
|
}
|
|
554
|
-
|
|
555
527
|
this.$emit('doubleclick', event);
|
|
556
528
|
},
|
|
557
529
|
handleRemoveClick: function handleRemoveClick(event) {
|
|
558
530
|
var _this = this;
|
|
559
|
-
|
|
560
531
|
if (this.onRemoveClickAction) {
|
|
561
532
|
var actions = this.onRemoveClickAction(event, this.$props);
|
|
562
|
-
|
|
563
533
|
if (actions) {
|
|
564
534
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
565
535
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -570,15 +540,12 @@ var SchedulerEditItemVue2 = {
|
|
|
570
540
|
}));
|
|
571
541
|
}
|
|
572
542
|
}
|
|
573
|
-
|
|
574
543
|
this.$emit('removeclick', event);
|
|
575
544
|
},
|
|
576
545
|
handlePress: function handlePress(event) {
|
|
577
546
|
var _this = this;
|
|
578
|
-
|
|
579
547
|
if (this.onPressAction) {
|
|
580
548
|
var actions = this.onPressAction(event, this.$props);
|
|
581
|
-
|
|
582
549
|
if (actions) {
|
|
583
550
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
584
551
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -589,15 +556,12 @@ var SchedulerEditItemVue2 = {
|
|
|
589
556
|
}), event);
|
|
590
557
|
}
|
|
591
558
|
}
|
|
592
|
-
|
|
593
559
|
this.$emit('press', event);
|
|
594
560
|
},
|
|
595
561
|
handleDrag: function handleDrag(event) {
|
|
596
562
|
var _this = this;
|
|
597
|
-
|
|
598
563
|
if (this.onDragAction) {
|
|
599
564
|
var actions = this.onDragAction(event, this.$props);
|
|
600
|
-
|
|
601
565
|
if (actions) {
|
|
602
566
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
603
567
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -608,15 +572,12 @@ var SchedulerEditItemVue2 = {
|
|
|
608
572
|
}), event.dragEvent.originalEvent);
|
|
609
573
|
}
|
|
610
574
|
}
|
|
611
|
-
|
|
612
575
|
this.$emit('drag', event);
|
|
613
576
|
},
|
|
614
577
|
handleRelease: function handleRelease(event) {
|
|
615
578
|
var _this = this;
|
|
616
|
-
|
|
617
579
|
if (this.onReleaseAction) {
|
|
618
580
|
var actions = this.onReleaseAction(event, this.$props);
|
|
619
|
-
|
|
620
581
|
if (actions) {
|
|
621
582
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
622
583
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -627,15 +588,12 @@ var SchedulerEditItemVue2 = {
|
|
|
627
588
|
}), event.dragEvent.originalEvent);
|
|
628
589
|
}
|
|
629
590
|
}
|
|
630
|
-
|
|
631
591
|
this.$emit('release', event);
|
|
632
592
|
},
|
|
633
593
|
handleResizePress: function handleResizePress(event) {
|
|
634
594
|
var _this = this;
|
|
635
|
-
|
|
636
595
|
if (this.onResizePressAction) {
|
|
637
596
|
var actions = this.onResizePressAction(event, this.$props);
|
|
638
|
-
|
|
639
597
|
if (actions) {
|
|
640
598
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
641
599
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -646,15 +604,12 @@ var SchedulerEditItemVue2 = {
|
|
|
646
604
|
}), event.dragEvent.originalEvent);
|
|
647
605
|
}
|
|
648
606
|
}
|
|
649
|
-
|
|
650
607
|
this.$emit('resizepress', event);
|
|
651
608
|
},
|
|
652
609
|
handleResizeStartDrag: function handleResizeStartDrag(event) {
|
|
653
610
|
var _this = this;
|
|
654
|
-
|
|
655
611
|
if (this.onResizeStartDragAction) {
|
|
656
612
|
var actions = this.onResizeStartDragAction(event, this.$props);
|
|
657
|
-
|
|
658
613
|
if (actions) {
|
|
659
614
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
660
615
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -665,15 +620,12 @@ var SchedulerEditItemVue2 = {
|
|
|
665
620
|
}), event.dragEvent.originalEvent);
|
|
666
621
|
}
|
|
667
622
|
}
|
|
668
|
-
|
|
669
623
|
this.$emit('resizestartdrag', event);
|
|
670
624
|
},
|
|
671
625
|
handleResizeEndDrag: function handleResizeEndDrag(event) {
|
|
672
626
|
var _this = this;
|
|
673
|
-
|
|
674
627
|
if (this.onResizeEndDragAction) {
|
|
675
628
|
var actions = this.onResizeEndDragAction(event, this.$props);
|
|
676
|
-
|
|
677
629
|
if (actions) {
|
|
678
630
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
679
631
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -684,15 +636,12 @@ var SchedulerEditItemVue2 = {
|
|
|
684
636
|
}), event.dragEvent.originalEvent);
|
|
685
637
|
}
|
|
686
638
|
}
|
|
687
|
-
|
|
688
639
|
this.$emit('resizeenddrag', event);
|
|
689
640
|
},
|
|
690
641
|
handleResizeRelease: function handleResizeRelease(event) {
|
|
691
642
|
var _this = this;
|
|
692
|
-
|
|
693
643
|
if (this.onResizeReleaseAction) {
|
|
694
644
|
var actions = this.onResizeReleaseAction(event, this.$props);
|
|
695
|
-
|
|
696
645
|
if (actions) {
|
|
697
646
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
698
647
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -703,15 +652,12 @@ var SchedulerEditItemVue2 = {
|
|
|
703
652
|
}), event.dragEvent.originalEvent);
|
|
704
653
|
}
|
|
705
654
|
}
|
|
706
|
-
|
|
707
655
|
this.$emit('resizerelease', event);
|
|
708
656
|
},
|
|
709
657
|
handleFormSubmit: function handleFormSubmit(event) {
|
|
710
658
|
var _this = this;
|
|
711
|
-
|
|
712
659
|
if (this.onFormSubmitAction) {
|
|
713
660
|
var actions = this.onFormSubmitAction(event, this.$props);
|
|
714
|
-
|
|
715
661
|
if (actions) {
|
|
716
662
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
717
663
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -722,15 +668,12 @@ var SchedulerEditItemVue2 = {
|
|
|
722
668
|
}), event);
|
|
723
669
|
}
|
|
724
670
|
}
|
|
725
|
-
|
|
726
671
|
this.$emit('formsubmit', event);
|
|
727
672
|
},
|
|
728
673
|
handleCancel: function handleCancel(event) {
|
|
729
674
|
var _this = this;
|
|
730
|
-
|
|
731
675
|
if (this.onCancelAction) {
|
|
732
676
|
var actions = this.onCancelAction(event, this.$props);
|
|
733
|
-
|
|
734
677
|
if (actions) {
|
|
735
678
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
736
679
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -741,15 +684,12 @@ var SchedulerEditItemVue2 = {
|
|
|
741
684
|
}), event);
|
|
742
685
|
}
|
|
743
686
|
}
|
|
744
|
-
|
|
745
687
|
this.$emit('cancel', event);
|
|
746
688
|
},
|
|
747
689
|
handleOccurrenceClick: function handleOccurrenceClick(event) {
|
|
748
690
|
var _this = this;
|
|
749
|
-
|
|
750
691
|
if (this.onOccurrenceClickAction) {
|
|
751
692
|
var actions = this.onOccurrenceClickAction(event, this.$props);
|
|
752
|
-
|
|
753
693
|
if (actions) {
|
|
754
694
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
755
695
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -760,15 +700,12 @@ var SchedulerEditItemVue2 = {
|
|
|
760
700
|
}), event);
|
|
761
701
|
}
|
|
762
702
|
}
|
|
763
|
-
|
|
764
703
|
this.$emit('occurrenceclick', event);
|
|
765
704
|
},
|
|
766
705
|
handleSeriesClick: function handleSeriesClick(event) {
|
|
767
706
|
var _this = this;
|
|
768
|
-
|
|
769
707
|
if (this.onSeriesClickAction) {
|
|
770
708
|
var actions = this.onSeriesClickAction(event, this.$props);
|
|
771
|
-
|
|
772
709
|
if (actions) {
|
|
773
710
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
774
711
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -779,15 +716,12 @@ var SchedulerEditItemVue2 = {
|
|
|
779
716
|
}), event);
|
|
780
717
|
}
|
|
781
718
|
}
|
|
782
|
-
|
|
783
719
|
this.$emit('seriesclick', event);
|
|
784
720
|
},
|
|
785
721
|
handleKeyDown: function handleKeyDown(event) {
|
|
786
722
|
var _this = this;
|
|
787
|
-
|
|
788
723
|
if (this.onKeyDownAction) {
|
|
789
724
|
var actions = this.onKeyDownAction(event, this.$props);
|
|
790
|
-
|
|
791
725
|
if (actions) {
|
|
792
726
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
793
727
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -798,15 +732,12 @@ var SchedulerEditItemVue2 = {
|
|
|
798
732
|
}), event.event);
|
|
799
733
|
}
|
|
800
734
|
}
|
|
801
|
-
|
|
802
735
|
this.$emit('keydown', event);
|
|
803
736
|
},
|
|
804
737
|
handleKeyUp: function handleKeyUp(event) {
|
|
805
738
|
var _this = this;
|
|
806
|
-
|
|
807
739
|
if (this.onKeyUpAction) {
|
|
808
740
|
var actions = this.onKeyUpAction(event, this.$props);
|
|
809
|
-
|
|
810
741
|
if (actions) {
|
|
811
742
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
812
743
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -817,15 +748,12 @@ var SchedulerEditItemVue2 = {
|
|
|
817
748
|
}), event.event);
|
|
818
749
|
}
|
|
819
750
|
}
|
|
820
|
-
|
|
821
751
|
this.$emit('keyup', event);
|
|
822
752
|
},
|
|
823
753
|
handleRemoveConfirm: function handleRemoveConfirm(event) {
|
|
824
754
|
var _this = this;
|
|
825
|
-
|
|
826
755
|
if (this.onRemoveConfirmAction) {
|
|
827
756
|
var actions = this.onRemoveConfirmAction(event, this.$props);
|
|
828
|
-
|
|
829
757
|
if (actions) {
|
|
830
758
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
831
759
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -836,7 +764,6 @@ var SchedulerEditItemVue2 = {
|
|
|
836
764
|
}), event.event);
|
|
837
765
|
}
|
|
838
766
|
}
|
|
839
|
-
|
|
840
767
|
this.$emit('removeconfirm', event);
|
|
841
768
|
},
|
|
842
769
|
onClickAction: function onClickAction(event, _) {
|
|
@@ -937,7 +864,6 @@ var SchedulerEditItemVue2 = {
|
|
|
937
864
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
938
865
|
}];
|
|
939
866
|
}
|
|
940
|
-
|
|
941
867
|
if (this.compResizeItem) {
|
|
942
868
|
return [{
|
|
943
869
|
type: RESIZE_ITEM_ACTION.completeOccurrence
|
|
@@ -945,7 +871,6 @@ var SchedulerEditItemVue2 = {
|
|
|
945
871
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
946
872
|
}];
|
|
947
873
|
}
|
|
948
|
-
|
|
949
874
|
if (this.compFormItem) {
|
|
950
875
|
return [{
|
|
951
876
|
type: SERIES_ACTION.set,
|
|
@@ -957,7 +882,6 @@ var SchedulerEditItemVue2 = {
|
|
|
957
882
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
958
883
|
}];
|
|
959
884
|
}
|
|
960
|
-
|
|
961
885
|
if (this.compRemoveItem) {
|
|
962
886
|
return [{
|
|
963
887
|
type: SERIES_ACTION.set,
|
|
@@ -980,7 +904,6 @@ var SchedulerEditItemVue2 = {
|
|
|
980
904
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
981
905
|
}];
|
|
982
906
|
}
|
|
983
|
-
|
|
984
907
|
if (this.compResizeItem) {
|
|
985
908
|
return [{
|
|
986
909
|
type: RESIZE_ITEM_ACTION.completeSeries
|
|
@@ -988,7 +911,6 @@ var SchedulerEditItemVue2 = {
|
|
|
988
911
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
989
912
|
}];
|
|
990
913
|
}
|
|
991
|
-
|
|
992
914
|
if (this.compFormItem) {
|
|
993
915
|
return [{
|
|
994
916
|
type: SERIES_ACTION.set,
|
|
@@ -1000,7 +922,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1000
922
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
1001
923
|
}];
|
|
1002
924
|
}
|
|
1003
|
-
|
|
1004
925
|
if (this.compRemoveItem) {
|
|
1005
926
|
return [{
|
|
1006
927
|
type: SERIES_ACTION.set,
|
|
@@ -1017,7 +938,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1017
938
|
},
|
|
1018
939
|
onKeyDownAction: function onKeyDownAction(event, props) {
|
|
1019
940
|
var nextSlot;
|
|
1020
|
-
|
|
1021
941
|
switch (event.event.keyCode) {
|
|
1022
942
|
case Keys.enter:
|
|
1023
943
|
return [{
|
|
@@ -1026,7 +946,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1026
946
|
}, props.isRecurring && {
|
|
1027
947
|
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
1028
948
|
}];
|
|
1029
|
-
|
|
1030
949
|
case Keys.tab:
|
|
1031
950
|
return [{
|
|
1032
951
|
type: event.event.shiftKey ? ITEMS_FOCUS_ACTION.prev : ITEMS_FOCUS_ACTION.next,
|
|
@@ -1035,7 +954,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1035
954
|
type: event.event.shiftKey ? ITEMS_SELECT_ACTION.selectPrev : ITEMS_SELECT_ACTION.selectNext,
|
|
1036
955
|
ignoreIsAllDay: props.ignoreIsAllDay
|
|
1037
956
|
}];
|
|
1038
|
-
|
|
1039
957
|
case Keys.up:
|
|
1040
958
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1041
959
|
return compareSlots(s, props.slots[0]);
|
|
@@ -1044,7 +962,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1044
962
|
type: SLOTS_FOCUS_ACTION.up,
|
|
1045
963
|
slot: nextSlot
|
|
1046
964
|
}];
|
|
1047
|
-
|
|
1048
965
|
case Keys.right:
|
|
1049
966
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1050
967
|
return compareSlots(s, props.slots[0]);
|
|
@@ -1053,7 +970,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1053
970
|
type: SLOTS_FOCUS_ACTION.right,
|
|
1054
971
|
slot: nextSlot
|
|
1055
972
|
}];
|
|
1056
|
-
|
|
1057
973
|
case Keys.down:
|
|
1058
974
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1059
975
|
return compareSlots(s, props.slots[props.slots.length - 1]);
|
|
@@ -1062,7 +978,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1062
978
|
type: SLOTS_FOCUS_ACTION.down,
|
|
1063
979
|
slot: nextSlot
|
|
1064
980
|
}];
|
|
1065
|
-
|
|
1066
981
|
case Keys.left:
|
|
1067
982
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1068
983
|
return compareSlots(s, props.slots[0]);
|
|
@@ -1071,7 +986,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1071
986
|
type: SLOTS_FOCUS_ACTION.left,
|
|
1072
987
|
slot: nextSlot
|
|
1073
988
|
}];
|
|
1074
|
-
|
|
1075
989
|
case Keys.delete:
|
|
1076
990
|
case Keys.backspace:
|
|
1077
991
|
return [{
|
|
@@ -1082,7 +996,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1082
996
|
} : {
|
|
1083
997
|
type: SHOW_REMOVE_DIALOG_ACTION.open
|
|
1084
998
|
}];
|
|
1085
|
-
|
|
1086
999
|
default:
|
|
1087
1000
|
return;
|
|
1088
1001
|
}
|
|
@@ -1122,6 +1035,5 @@ var SchedulerEditItemVue2 = {
|
|
|
1122
1035
|
/**
|
|
1123
1036
|
* @hidden
|
|
1124
1037
|
*/
|
|
1125
|
-
|
|
1126
1038
|
var SchedulerEditItem = SchedulerEditItemVue2;
|
|
1127
1039
|
export { SchedulerEditItem, SchedulerEditItemVue2 };
|