@progress/kendo-vue-scheduler 3.6.4 → 3.7.0-dev.202210250731
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
|
@@ -4,60 +4,40 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
4
4
|
__assign = Object.assign || function (t) {
|
|
5
5
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
6
|
s = arguments[i];
|
|
7
|
-
|
|
8
7
|
for (var p in s) {
|
|
9
8
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
return t;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
return __assign.apply(this, arguments);
|
|
17
14
|
};
|
|
18
|
-
|
|
19
15
|
Object.defineProperty(exports, "__esModule", {
|
|
20
16
|
value: true
|
|
21
17
|
});
|
|
22
|
-
exports.SchedulerEditItemVue2 = exports.SchedulerEditItem = void 0;
|
|
23
|
-
|
|
18
|
+
exports.SchedulerEditItemVue2 = exports.SchedulerEditItem = void 0;
|
|
19
|
+
// @ts-ignore
|
|
24
20
|
var Vue = require("vue");
|
|
25
|
-
|
|
26
21
|
var allVue = Vue;
|
|
27
22
|
var gh = allVue.h;
|
|
28
23
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
29
24
|
var inject = allVue.inject;
|
|
30
|
-
|
|
31
25
|
var Scheduler_1 = require("../Scheduler");
|
|
32
|
-
|
|
33
26
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
34
|
-
|
|
35
27
|
var SchedulerViewItem_1 = require("./SchedulerViewItem");
|
|
36
|
-
|
|
37
28
|
var main_1 = require("../hooks/main");
|
|
38
|
-
|
|
39
29
|
var use_form_item_1 = require("./hooks/use-form-item");
|
|
40
|
-
|
|
41
30
|
var use_show_occurrence_dialog_1 = require("./hooks/use-show-occurrence-dialog");
|
|
42
|
-
|
|
43
31
|
var use_remove_item_1 = require("./hooks/use-remove-item");
|
|
44
|
-
|
|
45
32
|
var use_show_remove_item_dialog_1 = require("./hooks/use-show-remove-item-dialog");
|
|
46
|
-
|
|
47
33
|
var use_drag_item_1 = require("./hooks/use-drag-item");
|
|
48
|
-
|
|
49
34
|
var use_resize_item_1 = require("./hooks/use-resize-item");
|
|
50
|
-
|
|
51
35
|
var use_series_1 = require("./hooks/use-series");
|
|
52
|
-
|
|
53
36
|
var use_items_selection_1 = require("../hooks/use-items-selection");
|
|
54
|
-
|
|
55
37
|
var main_2 = require("../utils/main");
|
|
56
38
|
/**
|
|
57
39
|
* @hidden
|
|
58
40
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
41
|
var SchedulerEditItemVue2 = {
|
|
62
42
|
name: 'KendoSchedulerEditItem',
|
|
63
43
|
props: {
|
|
@@ -168,10 +148,11 @@ var SchedulerEditItemVue2 = {
|
|
|
168
148
|
currentDragItem: null,
|
|
169
149
|
currentResizeItem: null,
|
|
170
150
|
currentShowRemoveDialog: null,
|
|
171
|
-
currentShowOccurrenceDialog: null
|
|
172
|
-
|
|
151
|
+
currentShowOccurrenceDialog: null
|
|
152
|
+
// item: null
|
|
173
153
|
};
|
|
174
154
|
},
|
|
155
|
+
|
|
175
156
|
computed: {
|
|
176
157
|
currentTabIndex: function currentTabIndex() {
|
|
177
158
|
var isFirst = this.bv.items.length && this.bv.items[0].dataItem.id === this.dataItem.id;
|
|
@@ -203,7 +184,6 @@ var SchedulerEditItemVue2 = {
|
|
|
203
184
|
},
|
|
204
185
|
actionsReducerMap: function actionsReducerMap() {
|
|
205
186
|
var _a;
|
|
206
|
-
|
|
207
187
|
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[main_1.ITEMS_FOCUS_ACTION.next] = this.dispatchViewItemsFocus, _a[main_1.ITEMS_FOCUS_ACTION.prev] = this.dispatchViewItemsFocus, _a[main_1.SLOTS_FOCUS_ACTION.left] = this.dispatchViewSlotsFocus, _a[main_1.SLOTS_FOCUS_ACTION.right] = this.dispatchViewSlotsFocus, _a[main_1.SLOTS_FOCUS_ACTION.up] = this.dispatchViewSlotsFocus, _a[main_1.SLOTS_FOCUS_ACTION.down] = this.dispatchViewSlotsFocus, _a.null = function () {}, _a;
|
|
208
188
|
}
|
|
209
189
|
},
|
|
@@ -217,15 +197,15 @@ var SchedulerEditItemVue2 = {
|
|
|
217
197
|
// @ts-ignore
|
|
218
198
|
render: function render(createElement) {
|
|
219
199
|
var _this = this;
|
|
220
|
-
|
|
221
200
|
var h = gh || createElement;
|
|
222
|
-
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
223
|
-
|
|
201
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
202
|
+
// tslint:enable:max-line-length
|
|
224
203
|
var selected = Boolean(this.bv.selectedItems && this.bv.selectedItems.some(function (si) {
|
|
225
204
|
return (0, main_2.compareItems)(si, _this, _this.ignoreIsAllDay);
|
|
226
205
|
}));
|
|
227
206
|
var itemRender;
|
|
228
|
-
var itemRenderDefaultRendering =
|
|
207
|
+
var itemRenderDefaultRendering =
|
|
208
|
+
// @ts-ignore function children
|
|
229
209
|
h(SchedulerViewItem_1.SchedulerViewItem, {
|
|
230
210
|
ignoreIsAllDay: this.ignoreIsAllDay,
|
|
231
211
|
attrs: this.v3 ? undefined : {
|
|
@@ -271,8 +251,8 @@ var SchedulerEditItemVue2 = {
|
|
|
271
251
|
removeItem: this.compRemoveItem,
|
|
272
252
|
itemRef: this.item,
|
|
273
253
|
selected: selected,
|
|
274
|
-
tabIndex: this.currentTabIndex
|
|
275
|
-
|
|
254
|
+
tabIndex: this.currentTabIndex
|
|
255
|
+
// Keyboard
|
|
276
256
|
},
|
|
277
257
|
item: this.item,
|
|
278
258
|
uid: this.uid,
|
|
@@ -334,19 +314,23 @@ var SchedulerEditItemVue2 = {
|
|
|
334
314
|
"resizestartdrag": this.handleResizeStartDrag,
|
|
335
315
|
"resizerelease": this.handleResizeRelease
|
|
336
316
|
},
|
|
337
|
-
onKeyup: this.handleKeyUp
|
|
317
|
+
onKeyup: this.handleKeyUp
|
|
318
|
+
// Focus
|
|
338
319
|
,
|
|
339
|
-
onFocus: this.handleFocus
|
|
320
|
+
onFocus: this.handleFocus
|
|
321
|
+
// Mouse
|
|
340
322
|
,
|
|
341
323
|
onMouseup: this.handleMouseUp,
|
|
342
324
|
onMousedown: this.handleMouseDown,
|
|
343
325
|
onClick: this.handleClick,
|
|
344
326
|
onDoubleclick: this.handleDoubleClick,
|
|
345
|
-
onRemoveclick: this.handleRemoveClick
|
|
327
|
+
onRemoveclick: this.handleRemoveClick
|
|
328
|
+
// Drag
|
|
346
329
|
,
|
|
347
330
|
onPress: this.handlePress,
|
|
348
331
|
onDrag: this.handleDrag,
|
|
349
|
-
onRelease: this.handleRelease
|
|
332
|
+
onRelease: this.handleRelease
|
|
333
|
+
// Resize
|
|
350
334
|
,
|
|
351
335
|
onResizepress: this.handleResizePress,
|
|
352
336
|
onResizeenddrag: this.handleResizeEndDrag,
|
|
@@ -393,16 +377,13 @@ var SchedulerEditItemVue2 = {
|
|
|
393
377
|
},
|
|
394
378
|
dispatchRemoveItem: function dispatchRemoveItem(action, _event) {
|
|
395
379
|
var newRemoveItem;
|
|
396
|
-
|
|
397
380
|
switch (action.type) {
|
|
398
381
|
case use_remove_item_1.REMOVE_ITEM_ACTION.set:
|
|
399
382
|
newRemoveItem = action.payload;
|
|
400
383
|
break;
|
|
401
|
-
|
|
402
384
|
case use_remove_item_1.REMOVE_ITEM_ACTION.reset:
|
|
403
385
|
newRemoveItem = null;
|
|
404
386
|
break;
|
|
405
|
-
|
|
406
387
|
case use_remove_item_1.REMOVE_ITEM_ACTION.complete:
|
|
407
388
|
if (this.compRemoveItem) {
|
|
408
389
|
this.$emit('dataaction', {
|
|
@@ -411,15 +392,12 @@ var SchedulerEditItemVue2 = {
|
|
|
411
392
|
dataItem: this.compRemoveItem
|
|
412
393
|
});
|
|
413
394
|
}
|
|
414
|
-
|
|
415
395
|
newRemoveItem = null;
|
|
416
396
|
break;
|
|
417
|
-
|
|
418
397
|
default:
|
|
419
398
|
newRemoveItem = this.compRemoveItem;
|
|
420
399
|
break;
|
|
421
400
|
}
|
|
422
|
-
|
|
423
401
|
this.currentRemoveItem = newRemoveItem;
|
|
424
402
|
this.$emit('removeitemchange', newRemoveItem);
|
|
425
403
|
},
|
|
@@ -447,20 +425,16 @@ var SchedulerEditItemVue2 = {
|
|
|
447
425
|
},
|
|
448
426
|
dispatchFormItem: function dispatchFormItem(action, _event) {
|
|
449
427
|
var newFormItem;
|
|
450
|
-
|
|
451
428
|
switch (action.type) {
|
|
452
429
|
case use_form_item_1.FORM_ITEM_ACTION.set:
|
|
453
430
|
newFormItem = action.payload;
|
|
454
431
|
break;
|
|
455
|
-
|
|
456
432
|
case use_form_item_1.FORM_ITEM_ACTION.reset:
|
|
457
433
|
newFormItem = null;
|
|
458
434
|
break;
|
|
459
|
-
|
|
460
435
|
case use_form_item_1.FORM_ITEM_ACTION.setMaster:
|
|
461
436
|
newFormItem = (0, kendo_vue_common_1.clone)((0, main_2.findMaster)(action.payload, this.ks.fields, this.ks.dataItems));
|
|
462
437
|
break;
|
|
463
|
-
|
|
464
438
|
case use_form_item_1.FORM_ITEM_ACTION.complete:
|
|
465
439
|
if (this.compFormItem) {
|
|
466
440
|
this.$emit('dataaction', {
|
|
@@ -470,23 +444,18 @@ var SchedulerEditItemVue2 = {
|
|
|
470
444
|
});
|
|
471
445
|
newFormItem = null;
|
|
472
446
|
}
|
|
473
|
-
|
|
474
447
|
break;
|
|
475
|
-
|
|
476
448
|
default:
|
|
477
449
|
newFormItem = this.compFormItem;
|
|
478
450
|
break;
|
|
479
451
|
}
|
|
480
|
-
|
|
481
452
|
this.currentFormItem = newFormItem;
|
|
482
453
|
this.$emit('formitemchange', newFormItem);
|
|
483
454
|
},
|
|
484
455
|
handleFocus: function handleFocus(event) {
|
|
485
456
|
var _this = this;
|
|
486
|
-
|
|
487
457
|
if (this.onFocusAction) {
|
|
488
458
|
var actions = this.onFocusAction(event, this.$props);
|
|
489
|
-
|
|
490
459
|
if (actions) {
|
|
491
460
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
492
461
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -497,15 +466,12 @@ var SchedulerEditItemVue2 = {
|
|
|
497
466
|
}));
|
|
498
467
|
}
|
|
499
468
|
}
|
|
500
|
-
|
|
501
469
|
this.$emit('focus', event);
|
|
502
470
|
},
|
|
503
471
|
handleMouseDown: function handleMouseDown(event) {
|
|
504
472
|
var _this = this;
|
|
505
|
-
|
|
506
473
|
if (this.onMouseDownAction) {
|
|
507
474
|
var actions = this.onMouseDownAction(event, this.$props);
|
|
508
|
-
|
|
509
475
|
if (actions) {
|
|
510
476
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
511
477
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -516,15 +482,12 @@ var SchedulerEditItemVue2 = {
|
|
|
516
482
|
}));
|
|
517
483
|
}
|
|
518
484
|
}
|
|
519
|
-
|
|
520
485
|
this.$emit('mousedown', event);
|
|
521
486
|
},
|
|
522
487
|
handleMouseUp: function handleMouseUp(event) {
|
|
523
488
|
var _this = this;
|
|
524
|
-
|
|
525
489
|
if (this.onMouseUpAction) {
|
|
526
490
|
var actions = this.onMouseUpAction(event, this.$props);
|
|
527
|
-
|
|
528
491
|
if (actions) {
|
|
529
492
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
530
493
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -535,15 +498,12 @@ var SchedulerEditItemVue2 = {
|
|
|
535
498
|
}));
|
|
536
499
|
}
|
|
537
500
|
}
|
|
538
|
-
|
|
539
501
|
this.$emit('mouseup', event);
|
|
540
502
|
},
|
|
541
503
|
handleClick: function handleClick(event) {
|
|
542
504
|
var _this = this;
|
|
543
|
-
|
|
544
505
|
if (this.onClickAction) {
|
|
545
506
|
var actions = this.onClickAction(event, this.$props);
|
|
546
|
-
|
|
547
507
|
if (actions) {
|
|
548
508
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
549
509
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -554,14 +514,12 @@ var SchedulerEditItemVue2 = {
|
|
|
554
514
|
}));
|
|
555
515
|
}
|
|
556
516
|
}
|
|
557
|
-
|
|
558
517
|
this.$emit('click', event);
|
|
559
518
|
},
|
|
560
519
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
561
520
|
if (this.onDoubleClickAction) {
|
|
562
521
|
var actions = this.onDoubleClickAction(event, this.$props);
|
|
563
522
|
var that_1 = this;
|
|
564
|
-
|
|
565
523
|
if (actions) {
|
|
566
524
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
567
525
|
return action && that_1.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -572,15 +530,12 @@ var SchedulerEditItemVue2 = {
|
|
|
572
530
|
}));
|
|
573
531
|
}
|
|
574
532
|
}
|
|
575
|
-
|
|
576
533
|
this.$emit('doubleclick', event);
|
|
577
534
|
},
|
|
578
535
|
handleRemoveClick: function handleRemoveClick(event) {
|
|
579
536
|
var _this = this;
|
|
580
|
-
|
|
581
537
|
if (this.onRemoveClickAction) {
|
|
582
538
|
var actions = this.onRemoveClickAction(event, this.$props);
|
|
583
|
-
|
|
584
539
|
if (actions) {
|
|
585
540
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
586
541
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -591,15 +546,12 @@ var SchedulerEditItemVue2 = {
|
|
|
591
546
|
}));
|
|
592
547
|
}
|
|
593
548
|
}
|
|
594
|
-
|
|
595
549
|
this.$emit('removeclick', event);
|
|
596
550
|
},
|
|
597
551
|
handlePress: function handlePress(event) {
|
|
598
552
|
var _this = this;
|
|
599
|
-
|
|
600
553
|
if (this.onPressAction) {
|
|
601
554
|
var actions = this.onPressAction(event, this.$props);
|
|
602
|
-
|
|
603
555
|
if (actions) {
|
|
604
556
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
605
557
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -610,15 +562,12 @@ var SchedulerEditItemVue2 = {
|
|
|
610
562
|
}), event);
|
|
611
563
|
}
|
|
612
564
|
}
|
|
613
|
-
|
|
614
565
|
this.$emit('press', event);
|
|
615
566
|
},
|
|
616
567
|
handleDrag: function handleDrag(event) {
|
|
617
568
|
var _this = this;
|
|
618
|
-
|
|
619
569
|
if (this.onDragAction) {
|
|
620
570
|
var actions = this.onDragAction(event, this.$props);
|
|
621
|
-
|
|
622
571
|
if (actions) {
|
|
623
572
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
624
573
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -629,15 +578,12 @@ var SchedulerEditItemVue2 = {
|
|
|
629
578
|
}), event.dragEvent.originalEvent);
|
|
630
579
|
}
|
|
631
580
|
}
|
|
632
|
-
|
|
633
581
|
this.$emit('drag', event);
|
|
634
582
|
},
|
|
635
583
|
handleRelease: function handleRelease(event) {
|
|
636
584
|
var _this = this;
|
|
637
|
-
|
|
638
585
|
if (this.onReleaseAction) {
|
|
639
586
|
var actions = this.onReleaseAction(event, this.$props);
|
|
640
|
-
|
|
641
587
|
if (actions) {
|
|
642
588
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
643
589
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -648,15 +594,12 @@ var SchedulerEditItemVue2 = {
|
|
|
648
594
|
}), event.dragEvent.originalEvent);
|
|
649
595
|
}
|
|
650
596
|
}
|
|
651
|
-
|
|
652
597
|
this.$emit('release', event);
|
|
653
598
|
},
|
|
654
599
|
handleResizePress: function handleResizePress(event) {
|
|
655
600
|
var _this = this;
|
|
656
|
-
|
|
657
601
|
if (this.onResizePressAction) {
|
|
658
602
|
var actions = this.onResizePressAction(event, this.$props);
|
|
659
|
-
|
|
660
603
|
if (actions) {
|
|
661
604
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
662
605
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -667,15 +610,12 @@ var SchedulerEditItemVue2 = {
|
|
|
667
610
|
}), event.dragEvent.originalEvent);
|
|
668
611
|
}
|
|
669
612
|
}
|
|
670
|
-
|
|
671
613
|
this.$emit('resizepress', event);
|
|
672
614
|
},
|
|
673
615
|
handleResizeStartDrag: function handleResizeStartDrag(event) {
|
|
674
616
|
var _this = this;
|
|
675
|
-
|
|
676
617
|
if (this.onResizeStartDragAction) {
|
|
677
618
|
var actions = this.onResizeStartDragAction(event, this.$props);
|
|
678
|
-
|
|
679
619
|
if (actions) {
|
|
680
620
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
681
621
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -686,15 +626,12 @@ var SchedulerEditItemVue2 = {
|
|
|
686
626
|
}), event.dragEvent.originalEvent);
|
|
687
627
|
}
|
|
688
628
|
}
|
|
689
|
-
|
|
690
629
|
this.$emit('resizestartdrag', event);
|
|
691
630
|
},
|
|
692
631
|
handleResizeEndDrag: function handleResizeEndDrag(event) {
|
|
693
632
|
var _this = this;
|
|
694
|
-
|
|
695
633
|
if (this.onResizeEndDragAction) {
|
|
696
634
|
var actions = this.onResizeEndDragAction(event, this.$props);
|
|
697
|
-
|
|
698
635
|
if (actions) {
|
|
699
636
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
700
637
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -705,15 +642,12 @@ var SchedulerEditItemVue2 = {
|
|
|
705
642
|
}), event.dragEvent.originalEvent);
|
|
706
643
|
}
|
|
707
644
|
}
|
|
708
|
-
|
|
709
645
|
this.$emit('resizeenddrag', event);
|
|
710
646
|
},
|
|
711
647
|
handleResizeRelease: function handleResizeRelease(event) {
|
|
712
648
|
var _this = this;
|
|
713
|
-
|
|
714
649
|
if (this.onResizeReleaseAction) {
|
|
715
650
|
var actions = this.onResizeReleaseAction(event, this.$props);
|
|
716
|
-
|
|
717
651
|
if (actions) {
|
|
718
652
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
719
653
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -724,15 +658,12 @@ var SchedulerEditItemVue2 = {
|
|
|
724
658
|
}), event.dragEvent.originalEvent);
|
|
725
659
|
}
|
|
726
660
|
}
|
|
727
|
-
|
|
728
661
|
this.$emit('resizerelease', event);
|
|
729
662
|
},
|
|
730
663
|
handleFormSubmit: function handleFormSubmit(event) {
|
|
731
664
|
var _this = this;
|
|
732
|
-
|
|
733
665
|
if (this.onFormSubmitAction) {
|
|
734
666
|
var actions = this.onFormSubmitAction(event, this.$props);
|
|
735
|
-
|
|
736
667
|
if (actions) {
|
|
737
668
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
738
669
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -743,15 +674,12 @@ var SchedulerEditItemVue2 = {
|
|
|
743
674
|
}), event);
|
|
744
675
|
}
|
|
745
676
|
}
|
|
746
|
-
|
|
747
677
|
this.$emit('formsubmit', event);
|
|
748
678
|
},
|
|
749
679
|
handleCancel: function handleCancel(event) {
|
|
750
680
|
var _this = this;
|
|
751
|
-
|
|
752
681
|
if (this.onCancelAction) {
|
|
753
682
|
var actions = this.onCancelAction(event, this.$props);
|
|
754
|
-
|
|
755
683
|
if (actions) {
|
|
756
684
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
757
685
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -762,15 +690,12 @@ var SchedulerEditItemVue2 = {
|
|
|
762
690
|
}), event);
|
|
763
691
|
}
|
|
764
692
|
}
|
|
765
|
-
|
|
766
693
|
this.$emit('cancel', event);
|
|
767
694
|
},
|
|
768
695
|
handleOccurrenceClick: function handleOccurrenceClick(event) {
|
|
769
696
|
var _this = this;
|
|
770
|
-
|
|
771
697
|
if (this.onOccurrenceClickAction) {
|
|
772
698
|
var actions = this.onOccurrenceClickAction(event, this.$props);
|
|
773
|
-
|
|
774
699
|
if (actions) {
|
|
775
700
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
776
701
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -781,15 +706,12 @@ var SchedulerEditItemVue2 = {
|
|
|
781
706
|
}), event);
|
|
782
707
|
}
|
|
783
708
|
}
|
|
784
|
-
|
|
785
709
|
this.$emit('occurrenceclick', event);
|
|
786
710
|
},
|
|
787
711
|
handleSeriesClick: function handleSeriesClick(event) {
|
|
788
712
|
var _this = this;
|
|
789
|
-
|
|
790
713
|
if (this.onSeriesClickAction) {
|
|
791
714
|
var actions = this.onSeriesClickAction(event, this.$props);
|
|
792
|
-
|
|
793
715
|
if (actions) {
|
|
794
716
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
795
717
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -800,15 +722,12 @@ var SchedulerEditItemVue2 = {
|
|
|
800
722
|
}), event);
|
|
801
723
|
}
|
|
802
724
|
}
|
|
803
|
-
|
|
804
725
|
this.$emit('seriesclick', event);
|
|
805
726
|
},
|
|
806
727
|
handleKeyDown: function handleKeyDown(event) {
|
|
807
728
|
var _this = this;
|
|
808
|
-
|
|
809
729
|
if (this.onKeyDownAction) {
|
|
810
730
|
var actions = this.onKeyDownAction(event, this.$props);
|
|
811
|
-
|
|
812
731
|
if (actions) {
|
|
813
732
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
814
733
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -819,15 +738,12 @@ var SchedulerEditItemVue2 = {
|
|
|
819
738
|
}), event.event);
|
|
820
739
|
}
|
|
821
740
|
}
|
|
822
|
-
|
|
823
741
|
this.$emit('keydown', event);
|
|
824
742
|
},
|
|
825
743
|
handleKeyUp: function handleKeyUp(event) {
|
|
826
744
|
var _this = this;
|
|
827
|
-
|
|
828
745
|
if (this.onKeyUpAction) {
|
|
829
746
|
var actions = this.onKeyUpAction(event, this.$props);
|
|
830
|
-
|
|
831
747
|
if (actions) {
|
|
832
748
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
833
749
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -838,15 +754,12 @@ var SchedulerEditItemVue2 = {
|
|
|
838
754
|
}), event.event);
|
|
839
755
|
}
|
|
840
756
|
}
|
|
841
|
-
|
|
842
757
|
this.$emit('keyup', event);
|
|
843
758
|
},
|
|
844
759
|
handleRemoveConfirm: function handleRemoveConfirm(event) {
|
|
845
760
|
var _this = this;
|
|
846
|
-
|
|
847
761
|
if (this.onRemoveConfirmAction) {
|
|
848
762
|
var actions = this.onRemoveConfirmAction(event, this.$props);
|
|
849
|
-
|
|
850
763
|
if (actions) {
|
|
851
764
|
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
852
765
|
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
@@ -857,7 +770,6 @@ var SchedulerEditItemVue2 = {
|
|
|
857
770
|
}), event.event);
|
|
858
771
|
}
|
|
859
772
|
}
|
|
860
|
-
|
|
861
773
|
this.$emit('removeconfirm', event);
|
|
862
774
|
},
|
|
863
775
|
onClickAction: function onClickAction(event, _) {
|
|
@@ -958,7 +870,6 @@ var SchedulerEditItemVue2 = {
|
|
|
958
870
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
959
871
|
}];
|
|
960
872
|
}
|
|
961
|
-
|
|
962
873
|
if (this.compResizeItem) {
|
|
963
874
|
return [{
|
|
964
875
|
type: use_resize_item_1.RESIZE_ITEM_ACTION.completeOccurrence
|
|
@@ -966,7 +877,6 @@ var SchedulerEditItemVue2 = {
|
|
|
966
877
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
967
878
|
}];
|
|
968
879
|
}
|
|
969
|
-
|
|
970
880
|
if (this.compFormItem) {
|
|
971
881
|
return [{
|
|
972
882
|
type: use_series_1.SERIES_ACTION.set,
|
|
@@ -978,7 +888,6 @@ var SchedulerEditItemVue2 = {
|
|
|
978
888
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
979
889
|
}];
|
|
980
890
|
}
|
|
981
|
-
|
|
982
891
|
if (this.compRemoveItem) {
|
|
983
892
|
return [{
|
|
984
893
|
type: use_series_1.SERIES_ACTION.set,
|
|
@@ -1001,7 +910,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1001
910
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
1002
911
|
}];
|
|
1003
912
|
}
|
|
1004
|
-
|
|
1005
913
|
if (this.compResizeItem) {
|
|
1006
914
|
return [{
|
|
1007
915
|
type: use_resize_item_1.RESIZE_ITEM_ACTION.completeSeries
|
|
@@ -1009,7 +917,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1009
917
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
1010
918
|
}];
|
|
1011
919
|
}
|
|
1012
|
-
|
|
1013
920
|
if (this.compFormItem) {
|
|
1014
921
|
return [{
|
|
1015
922
|
type: use_series_1.SERIES_ACTION.set,
|
|
@@ -1021,7 +928,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1021
928
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
1022
929
|
}];
|
|
1023
930
|
}
|
|
1024
|
-
|
|
1025
931
|
if (this.compRemoveItem) {
|
|
1026
932
|
return [{
|
|
1027
933
|
type: use_series_1.SERIES_ACTION.set,
|
|
@@ -1038,7 +944,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1038
944
|
},
|
|
1039
945
|
onKeyDownAction: function onKeyDownAction(event, props) {
|
|
1040
946
|
var nextSlot;
|
|
1041
|
-
|
|
1042
947
|
switch (event.event.keyCode) {
|
|
1043
948
|
case kendo_vue_common_1.Keys.enter:
|
|
1044
949
|
return [{
|
|
@@ -1047,7 +952,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1047
952
|
}, props.isRecurring && {
|
|
1048
953
|
type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
1049
954
|
}];
|
|
1050
|
-
|
|
1051
955
|
case kendo_vue_common_1.Keys.tab:
|
|
1052
956
|
return [{
|
|
1053
957
|
type: event.event.shiftKey ? main_1.ITEMS_FOCUS_ACTION.prev : main_1.ITEMS_FOCUS_ACTION.next,
|
|
@@ -1056,7 +960,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1056
960
|
type: event.event.shiftKey ? use_items_selection_1.ITEMS_SELECT_ACTION.selectPrev : use_items_selection_1.ITEMS_SELECT_ACTION.selectNext,
|
|
1057
961
|
ignoreIsAllDay: props.ignoreIsAllDay
|
|
1058
962
|
}];
|
|
1059
|
-
|
|
1060
963
|
case kendo_vue_common_1.Keys.up:
|
|
1061
964
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1062
965
|
return (0, main_2.compareSlots)(s, props.slots[0]);
|
|
@@ -1065,7 +968,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1065
968
|
type: main_1.SLOTS_FOCUS_ACTION.up,
|
|
1066
969
|
slot: nextSlot
|
|
1067
970
|
}];
|
|
1068
|
-
|
|
1069
971
|
case kendo_vue_common_1.Keys.right:
|
|
1070
972
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1071
973
|
return (0, main_2.compareSlots)(s, props.slots[0]);
|
|
@@ -1074,7 +976,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1074
976
|
type: main_1.SLOTS_FOCUS_ACTION.right,
|
|
1075
977
|
slot: nextSlot
|
|
1076
978
|
}];
|
|
1077
|
-
|
|
1078
979
|
case kendo_vue_common_1.Keys.down:
|
|
1079
980
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1080
981
|
return (0, main_2.compareSlots)(s, props.slots[props.slots.length - 1]);
|
|
@@ -1083,7 +984,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1083
984
|
type: main_1.SLOTS_FOCUS_ACTION.down,
|
|
1084
985
|
slot: nextSlot
|
|
1085
986
|
}];
|
|
1086
|
-
|
|
1087
987
|
case kendo_vue_common_1.Keys.left:
|
|
1088
988
|
nextSlot = this.bv.slots.find(function (s) {
|
|
1089
989
|
return (0, main_2.compareSlots)(s, props.slots[0]);
|
|
@@ -1092,7 +992,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1092
992
|
type: main_1.SLOTS_FOCUS_ACTION.left,
|
|
1093
993
|
slot: nextSlot
|
|
1094
994
|
}];
|
|
1095
|
-
|
|
1096
995
|
case kendo_vue_common_1.Keys.delete:
|
|
1097
996
|
case kendo_vue_common_1.Keys.backspace:
|
|
1098
997
|
return [{
|
|
@@ -1103,7 +1002,6 @@ var SchedulerEditItemVue2 = {
|
|
|
1103
1002
|
} : {
|
|
1104
1003
|
type: use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.open
|
|
1105
1004
|
}];
|
|
1106
|
-
|
|
1107
1005
|
default:
|
|
1108
1006
|
return;
|
|
1109
1007
|
}
|
|
@@ -1144,6 +1042,5 @@ exports.SchedulerEditItemVue2 = SchedulerEditItemVue2;
|
|
|
1144
1042
|
/**
|
|
1145
1043
|
* @hidden
|
|
1146
1044
|
*/
|
|
1147
|
-
|
|
1148
1045
|
var SchedulerEditItem = SchedulerEditItemVue2;
|
|
1149
1046
|
exports.SchedulerEditItem = SchedulerEditItem;
|