@progress/kendo-vue-scheduler 5.3.0-dev.202410141143 → 5.3.0-develop.2
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/README.md +24 -34
- package/Scheduler.js +8 -0
- package/Scheduler.mjs +439 -0
- package/components/BaseView.js +8 -0
- package/components/BaseView.mjs +123 -0
- package/components/CurrentTimeMarker.js +8 -0
- package/components/CurrentTimeMarker.mjs +95 -0
- package/components/CurrentTimeMarkerArrow.js +8 -0
- package/components/CurrentTimeMarkerArrow.mjs +80 -0
- package/components/DateHeaderCell.js +8 -0
- package/components/DateHeaderCell.mjs +53 -0
- package/components/SchedulerActionButtons.js +8 -0
- package/components/SchedulerActionButtons.mjs +58 -0
- package/components/SchedulerForm.js +8 -0
- package/components/SchedulerForm.mjs +155 -0
- package/components/SchedulerOccurrenceDialog.js +8 -0
- package/components/SchedulerOccurrenceDialog.mjs +96 -0
- package/components/SchedulerRemoveDialog.js +8 -0
- package/components/SchedulerRemoveDialog.mjs +89 -0
- package/components/ShowMoreItemsButton.js +8 -0
- package/components/ShowMoreItemsButton.mjs +53 -0
- package/components/TimeHeaderCell.js +8 -0
- package/components/TimeHeaderCell.mjs +51 -0
- package/components/footer/SchedulerFooter.js +8 -0
- package/components/footer/SchedulerFooter.mjs +30 -0
- package/components/footer/bussiness-hours/BusinessHours.js +8 -0
- package/components/footer/bussiness-hours/BusinessHours.mjs +57 -0
- package/components/header/SchedulerHeader.js +8 -0
- package/components/header/SchedulerHeader.mjs +27 -0
- package/components/header/navigation/NavigationDatePicker.js +8 -0
- package/components/header/navigation/NavigationDatePicker.mjs +122 -0
- package/components/header/navigation/SchedulerNavigation.js +8 -0
- package/components/header/navigation/SchedulerNavigation.mjs +85 -0
- package/components/header/view-selector/SchedulerViewSelector.js +8 -0
- package/components/header/view-selector/SchedulerViewSelector.mjs +18 -0
- package/components/header/view-selector/ViewSelectorItem.js +8 -0
- package/components/header/view-selector/ViewSelectorItem.mjs +53 -0
- package/components/header/view-selector/ViewSelectorList.js +8 -0
- package/components/header/view-selector/ViewSelectorList.mjs +83 -0
- package/constants/main.js +8 -0
- package/constants/main.mjs +24 -0
- package/context/SchedulerResourceIteratorContext.js +8 -0
- package/context/SchedulerResourceIteratorContext.mjs +48 -0
- package/dist/cdn/js/kendo-vue-scheduler.js +8 -2
- package/editors/FilterableComboBox.js +8 -0
- package/editors/FilterableComboBox.mjs +53 -0
- package/editors/ResourceEditor.js +8 -0
- package/editors/ResourceEditor.mjs +86 -0
- package/editors/SchedulerFormEditor.js +8 -0
- package/editors/SchedulerFormEditor.mjs +484 -0
- package/editors/ZonedDateTime.js +8 -0
- package/editors/ZonedDateTime.mjs +57 -0
- package/hooks/use-items-focus.js +8 -0
- package/hooks/use-items-focus.mjs +40 -0
- package/hooks/use-items-selection.js +8 -0
- package/hooks/use-items-selection.mjs +51 -0
- package/hooks/use-slots-focus.js +8 -0
- package/hooks/use-slots-focus.mjs +50 -0
- package/hooks/use-slots-selection.js +8 -0
- package/hooks/use-slots-selection.mjs +31 -0
- package/hooks/useCellSync.js +8 -0
- package/hooks/useCellSync.mjs +29 -0
- package/hooks/useEditable.js +8 -0
- package/hooks/useEditable.mjs +21 -0
- package/hooks/useRowSync.js +8 -0
- package/hooks/useRowSync.mjs +12 -0
- package/hooks/useSlotExpand.js +8 -0
- package/hooks/useSlotExpand.mjs +45 -0
- package/index.d.mts +10899 -0
- package/index.d.ts +10899 -0
- package/index.js +8 -0
- package/index.mjs +95 -0
- package/items/SchedulerEditItem.js +8 -0
- package/items/SchedulerEditItem.mjs +904 -0
- package/items/SchedulerItem.js +8 -0
- package/items/SchedulerItem.mjs +580 -0
- package/items/SchedulerItemContent.js +8 -0
- package/items/SchedulerItemContent.mjs +24 -0
- package/items/SchedulerViewItem.js +8 -0
- package/items/SchedulerViewItem.mjs +377 -0
- package/items/hooks/use-drag-item.js +8 -0
- package/items/hooks/use-drag-item.mjs +115 -0
- package/items/hooks/use-form-item.js +8 -0
- package/items/hooks/use-form-item.mjs +13 -0
- package/items/hooks/use-remove-item.js +8 -0
- package/items/hooks/use-remove-item.mjs +13 -0
- package/items/hooks/use-resize-item.js +8 -0
- package/items/hooks/use-resize-item.mjs +138 -0
- package/items/hooks/use-series.js +8 -0
- package/items/hooks/use-series.mjs +26 -0
- package/items/hooks/use-show-occurrence-dialog.js +8 -0
- package/items/hooks/use-show-occurrence-dialog.mjs +30 -0
- package/items/hooks/use-show-remove-item-dialog.js +8 -0
- package/items/hooks/use-show-remove-item-dialog.mjs +30 -0
- package/messages/main.js +8 -0
- package/messages/main.mjs +166 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +18 -0
- package/package.json +39 -65
- package/recurrence/RecurrenceEditor.js +8 -0
- package/recurrence/RecurrenceEditor.mjs +460 -0
- package/recurrence/RecurrenceFrequencyEditor.js +8 -0
- package/recurrence/RecurrenceFrequencyEditor.mjs +54 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.js +8 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.mjs +66 -0
- package/recurrence/common.js +8 -0
- package/recurrence/common.mjs +124 -0
- package/services/itemsService.js +8 -0
- package/services/itemsService.mjs +54 -0
- package/services/occurrenceService.js +8 -0
- package/services/occurrenceService.mjs +48 -0
- package/services/rangeService.js +8 -0
- package/services/rangeService.mjs +25 -0
- package/services/slotsService.js +8 -0
- package/services/slotsService.mjs +37 -0
- package/slots/SchedulerEditSlot.js +8 -0
- package/slots/SchedulerEditSlot.mjs +306 -0
- package/slots/SchedulerSlot.js +8 -0
- package/slots/SchedulerSlot.mjs +312 -0
- package/slots/SchedulerViewSlot.js +8 -0
- package/slots/SchedulerViewSlot.mjs +179 -0
- package/tasks/SchedulerEditTask.js +8 -0
- package/tasks/SchedulerEditTask.mjs +213 -0
- package/tasks/SchedulerTask.js +8 -0
- package/tasks/SchedulerTask.mjs +160 -0
- package/tasks/SchedulerViewTask.js +8 -0
- package/tasks/SchedulerViewTask.mjs +113 -0
- package/utils/main.js +8 -0
- package/utils/main.mjs +186 -0
- package/views/agenda/AgendaView.js +8 -0
- package/views/agenda/AgendaView.mjs +193 -0
- package/views/agenda/AgendaViewBody.js +8 -0
- package/views/agenda/AgendaViewBody.mjs +158 -0
- package/views/agenda/AgendaViewHead.js +8 -0
- package/views/agenda/AgendaViewHead.mjs +44 -0
- package/views/common/HorizontalResourceIterator.js +8 -0
- package/views/common/HorizontalResourceIterator.mjs +128 -0
- package/views/common/SchedulerDrag.js +8 -0
- package/views/common/SchedulerDrag.mjs +95 -0
- package/views/common/SchedulerResize.js +8 -0
- package/views/common/SchedulerResize.mjs +97 -0
- package/views/common/VerticalResourceIterator.js +8 -0
- package/views/common/VerticalResourceIterator.mjs +230 -0
- package/views/common/utils.js +8 -0
- package/views/common/utils.mjs +77 -0
- package/views/day/DayView.js +8 -0
- package/views/day/DayView.mjs +148 -0
- package/views/day/DayViewAllDayRowContent.js +8 -0
- package/views/day/DayViewAllDayRowContent.mjs +33 -0
- package/views/day/DayViewAllDaySlots.js +8 -0
- package/views/day/DayViewAllDaySlots.mjs +98 -0
- package/views/day/DayViewGroupRowContent.js +8 -0
- package/views/day/DayViewGroupRowContent.mjs +23 -0
- package/views/day/DayViewHead.js +8 -0
- package/views/day/DayViewHead.mjs +45 -0
- package/views/day/DayViewMiddleRow.js +8 -0
- package/views/day/DayViewMiddleRow.mjs +102 -0
- package/views/day/DayViewRowContent.js +8 -0
- package/views/day/DayViewRowContent.mjs +39 -0
- package/views/day/DayViewVerticalRow.js +8 -0
- package/views/day/DayViewVerticalRow.mjs +90 -0
- package/views/day/DayViewVerticalSlotsRow.js +8 -0
- package/views/day/DayViewVerticalSlotsRow.mjs +130 -0
- package/views/day/MultiDayView.js +8 -0
- package/views/day/MultiDayView.mjs +532 -0
- package/views/month/MonthView.js +8 -0
- package/views/month/MonthView.mjs +316 -0
- package/views/month/MonthViewBody.js +8 -0
- package/views/month/MonthViewBody.mjs +113 -0
- package/views/month/MonthViewHead.js +8 -0
- package/views/month/MonthViewHead.mjs +68 -0
- package/views/time/MultiDayTimelineView.js +8 -0
- package/views/time/MultiDayTimelineView.mjs +422 -0
- package/views/time/TimelineView.js +8 -0
- package/views/time/TimelineView.mjs +155 -0
- package/views/time/TimelineViewAllEventsRowContent.js +8 -0
- package/views/time/TimelineViewAllEventsRowContent.mjs +31 -0
- package/views/time/TimelineViewBody.js +8 -0
- package/views/time/TimelineViewBody.mjs +97 -0
- package/views/time/TimelineViewRowContent.js +8 -0
- package/views/time/TimelineViewRowContent.mjs +22 -0
- package/views/week/WeekView.js +8 -0
- package/views/week/WeekView.mjs +158 -0
- package/views/week/WorkWeekView.js +8 -0
- package/views/week/WorkWeekView.mjs +134 -0
- package/dist/cdn/js/kendo-vue-scheduler.js.LICENSE.txt +0 -14
- package/dist/es/Scheduler.d.ts +0 -337
- package/dist/es/Scheduler.js +0 -656
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/components/BaseView.d.ts +0 -52
- package/dist/es/components/BaseView.js +0 -143
- package/dist/es/components/CurrentTimeMarker.d.ts +0 -50
- package/dist/es/components/CurrentTimeMarker.js +0 -157
- package/dist/es/components/CurrentTimeMarkerArrow.d.ts +0 -47
- package/dist/es/components/CurrentTimeMarkerArrow.js +0 -130
- package/dist/es/components/DateHeaderCell.d.ts +0 -76
- package/dist/es/components/DateHeaderCell.js +0 -65
- package/dist/es/components/SchedulerActionButtons.d.ts +0 -48
- package/dist/es/components/SchedulerActionButtons.js +0 -128
- package/dist/es/components/SchedulerForm.d.ts +0 -73
- package/dist/es/components/SchedulerForm.js +0 -225
- package/dist/es/components/SchedulerOccurrenceDialog.d.ts +0 -76
- package/dist/es/components/SchedulerOccurrenceDialog.js +0 -185
- package/dist/es/components/SchedulerRemoveDialog.d.ts +0 -72
- package/dist/es/components/SchedulerRemoveDialog.js +0 -166
- package/dist/es/components/ShowMoreItemsButton.d.ts +0 -56
- package/dist/es/components/ShowMoreItemsButton.js +0 -82
- package/dist/es/components/TimeHeaderCell.d.ts +0 -76
- package/dist/es/components/TimeHeaderCell.js +0 -63
- package/dist/es/components/footer/SchedulerFooter.d.ts +0 -49
- package/dist/es/components/footer/SchedulerFooter.js +0 -43
- package/dist/es/components/footer/bussiness-hours/BusinessHours.d.ts +0 -50
- package/dist/es/components/footer/bussiness-hours/BusinessHours.js +0 -97
- package/dist/es/components/header/SchedulerHeader.d.ts +0 -49
- package/dist/es/components/header/SchedulerHeader.js +0 -35
- package/dist/es/components/header/navigation/DatePickerToggleButton.d.ts +0 -42
- package/dist/es/components/header/navigation/DatePickerToggleButton.js +0 -101
- package/dist/es/components/header/navigation/NavigationDatePicker.d.ts +0 -42
- package/dist/es/components/header/navigation/NavigationDatePicker.js +0 -269
- package/dist/es/components/header/navigation/SchedulerNavigation.d.ts +0 -50
- package/dist/es/components/header/navigation/SchedulerNavigation.js +0 -315
- package/dist/es/components/header/view-selector/SchedulerViewSelector.d.ts +0 -49
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +0 -30
- package/dist/es/components/header/view-selector/ViewSelectorItem.d.ts +0 -47
- package/dist/es/components/header/view-selector/ViewSelectorItem.js +0 -79
- package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +0 -42
- package/dist/es/components/header/view-selector/ViewSelectorList.js +0 -136
- package/dist/es/constants/main.d.ts +0 -49
- package/dist/es/constants/main.js +0 -55
- package/dist/es/context/SchedulerContext.d.ts +0 -22
- package/dist/es/context/SchedulerContext.js +0 -4
- package/dist/es/context/SchedulerEditItemContext.d.ts +0 -15
- package/dist/es/context/SchedulerEditItemContext.js +0 -4
- package/dist/es/context/SchedulerEditSlotContext.d.ts +0 -10
- package/dist/es/context/SchedulerEditSlotContext.js +0 -4
- package/dist/es/context/SchedulerEditTaskContext.d.ts +0 -11
- package/dist/es/context/SchedulerEditTaskContext.js +0 -4
- package/dist/es/context/SchedulerResourceIteratorContext.d.ts +0 -43
- package/dist/es/context/SchedulerResourceIteratorContext.js +0 -55
- package/dist/es/context/SchedulerViewContext.d.ts +0 -18
- package/dist/es/context/SchedulerViewContext.js +0 -4
- package/dist/es/context/main.d.ts +0 -5
- package/dist/es/context/main.js +0 -5
- package/dist/es/editors/FilterableComboBox.d.ts +0 -42
- package/dist/es/editors/FilterableComboBox.js +0 -87
- package/dist/es/editors/ResourceEditor.d.ts +0 -53
- package/dist/es/editors/ResourceEditor.js +0 -139
- package/dist/es/editors/SchedulerFormEditor.d.ts +0 -262
- package/dist/es/editors/SchedulerFormEditor.js +0 -1784
- package/dist/es/editors/ZonedDateTime.d.ts +0 -51
- package/dist/es/editors/ZonedDateTime.js +0 -102
- package/dist/es/editors/common.d.ts +0 -12
- package/dist/es/editors/common.js +0 -29
- package/dist/es/hooks/main.d.ts +0 -9
- package/dist/es/hooks/main.js +0 -9
- package/dist/es/hooks/use-items-focus.d.ts +0 -23
- package/dist/es/hooks/use-items-focus.js +0 -57
- package/dist/es/hooks/use-items-selection.d.ts +0 -30
- package/dist/es/hooks/use-items-selection.js +0 -88
- package/dist/es/hooks/use-slots-focus.d.ts +0 -33
- package/dist/es/hooks/use-slots-focus.js +0 -95
- package/dist/es/hooks/use-slots-selection.d.ts +0 -23
- package/dist/es/hooks/use-slots-selection.js +0 -49
- package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +0 -10
- package/dist/es/hooks/useAsyncMouseEnterLeave.js +0 -25
- package/dist/es/hooks/useCellSync.d.ts +0 -9
- package/dist/es/hooks/useCellSync.js +0 -41
- package/dist/es/hooks/useEditable.d.ts +0 -3
- package/dist/es/hooks/useEditable.js +0 -19
- package/dist/es/hooks/usePropOrState.d.ts +0 -2
- package/dist/es/hooks/usePropOrState.js +0 -7
- package/dist/es/hooks/useRowSync.d.ts +0 -10
- package/dist/es/hooks/useRowSync.js +0 -45
- package/dist/es/hooks/useSchedulerSlot.d.ts +0 -6
- package/dist/es/hooks/useSchedulerSlot.js +0 -4
- package/dist/es/hooks/useSlotExpand.d.ts +0 -3
- package/dist/es/hooks/useSlotExpand.js +0 -58
- package/dist/es/hooks/useWorkHours.d.ts +0 -2
- package/dist/es/hooks/useWorkHours.js +0 -4
- package/dist/es/items/SchedulerEditItem.d.ts +0 -357
- package/dist/es/items/SchedulerEditItem.js +0 -1039
- package/dist/es/items/SchedulerItem.d.ts +0 -236
- package/dist/es/items/SchedulerItem.js +0 -947
- package/dist/es/items/SchedulerItemContent.d.ts +0 -47
- package/dist/es/items/SchedulerItemContent.js +0 -35
- package/dist/es/items/SchedulerViewItem.d.ts +0 -61
- package/dist/es/items/SchedulerViewItem.js +0 -577
- package/dist/es/items/hooks/use-drag-item.d.ts +0 -34
- package/dist/es/items/hooks/use-drag-item.js +0 -207
- package/dist/es/items/hooks/use-form-item.d.ts +0 -22
- package/dist/es/items/hooks/use-form-item.js +0 -47
- package/dist/es/items/hooks/use-remove-item.d.ts +0 -30
- package/dist/es/items/hooks/use-remove-item.js +0 -45
- package/dist/es/items/hooks/use-resize-item.d.ts +0 -39
- package/dist/es/items/hooks/use-resize-item.js +0 -251
- package/dist/es/items/hooks/use-series.d.ts +0 -25
- package/dist/es/items/hooks/use-series.js +0 -37
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +0 -29
- package/dist/es/items/hooks/use-show-occurrence-dialog.js +0 -46
- package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +0 -29
- package/dist/es/items/hooks/use-show-remove-item-dialog.js +0 -45
- package/dist/es/main.d.ts +0 -43
- package/dist/es/main.js +0 -49
- package/dist/es/messages/main.d.ts +0 -236
- package/dist/es/messages/main.js +0 -237
- package/dist/es/models/DataItem.d.ts +0 -8
- package/dist/es/models/DataItem.js +0 -1
- package/dist/es/models/DateRange.d.ts +0 -18
- package/dist/es/models/DateRange.js +0 -1
- package/dist/es/models/EditableProp.d.ts +0 -29
- package/dist/es/models/EditableProp.js +0 -1
- package/dist/es/models/Fields.d.ts +0 -17
- package/dist/es/models/Fields.js +0 -1
- package/dist/es/models/Group.d.ts +0 -8
- package/dist/es/models/Group.js +0 -1
- package/dist/es/models/Item.d.ts +0 -62
- package/dist/es/models/Item.js +0 -1
- package/dist/es/models/NavigationAction.d.ts +0 -17
- package/dist/es/models/NavigationAction.js +0 -1
- package/dist/es/models/Occurrence.d.ts +0 -52
- package/dist/es/models/Occurrence.js +0 -1
- package/dist/es/models/Omit.d.ts +0 -4
- package/dist/es/models/Omit.js +0 -1
- package/dist/es/models/Orientation.d.ts +0 -2
- package/dist/es/models/Orientation.js +0 -1
- package/dist/es/models/Range.d.ts +0 -10
- package/dist/es/models/Range.js +0 -1
- package/dist/es/models/Rect.d.ts +0 -15
- package/dist/es/models/Rect.js +0 -1
- package/dist/es/models/Resource.d.ts +0 -8
- package/dist/es/models/Resource.js +0 -1
- package/dist/es/models/SchedulerGroup.d.ts +0 -13
- package/dist/es/models/SchedulerGroup.js +0 -1
- package/dist/es/models/SchedulerHandle.d.ts +0 -6
- package/dist/es/models/SchedulerHandle.js +0 -1
- package/dist/es/models/SchedulerModelFields.d.ts +0 -62
- package/dist/es/models/SchedulerModelFields.js +0 -1
- package/dist/es/models/SchedulerResource.d.ts +0 -33
- package/dist/es/models/SchedulerResource.js +0 -1
- package/dist/es/models/SchedulerView.d.ts +0 -83
- package/dist/es/models/SchedulerView.js +0 -1
- package/dist/es/models/Slot.d.ts +0 -51
- package/dist/es/models/Slot.js +0 -1
- package/dist/es/models/events.d.ts +0 -81
- package/dist/es/models/events.js +0 -1
- package/dist/es/models/main.d.ts +0 -17
- package/dist/es/models/main.js +0 -17
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/recurrence/RecurrenceEditor.d.ts +0 -54
- package/dist/es/recurrence/RecurrenceEditor.js +0 -961
- package/dist/es/recurrence/RecurrenceFrequencyEditor.d.ts +0 -48
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +0 -101
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -51
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -133
- package/dist/es/recurrence/common.d.ts +0 -57
- package/dist/es/recurrence/common.js +0 -212
- package/dist/es/recurrence/types/EndRule.d.ts +0 -4
- package/dist/es/recurrence/types/EndRule.js +0 -1
- package/dist/es/recurrence/types/Frequency.d.ts +0 -4
- package/dist/es/recurrence/types/Frequency.js +0 -1
- package/dist/es/recurrence/types/FrequencyEntity.d.ts +0 -8
- package/dist/es/recurrence/types/FrequencyEntity.js +0 -1
- package/dist/es/recurrence/types/MonthEntity.d.ts +0 -7
- package/dist/es/recurrence/types/MonthEntity.js +0 -1
- package/dist/es/recurrence/types/OffsetPosition.d.ts +0 -4
- package/dist/es/recurrence/types/OffsetPosition.js +0 -1
- package/dist/es/recurrence/types/OffsetPositionEntity.d.ts +0 -7
- package/dist/es/recurrence/types/OffsetPositionEntity.js +0 -1
- package/dist/es/recurrence/types/RepeatOnRule.d.ts +0 -4
- package/dist/es/recurrence/types/RepeatOnRule.js +0 -1
- package/dist/es/recurrence/types/WeekDayEntity.d.ts +0 -7
- package/dist/es/recurrence/types/WeekDayEntity.js +0 -1
- package/dist/es/recurrence/types/WeekDayRule.d.ts +0 -8
- package/dist/es/recurrence/types/WeekDayRule.js +0 -1
- package/dist/es/recurrence/utils/main.d.ts +0 -1
- package/dist/es/recurrence/utils/main.js +0 -0
- package/dist/es/reducers/editReducer.d.ts +0 -33
- package/dist/es/reducers/editReducer.js +0 -65
- package/dist/es/reducers/main.d.ts +0 -1
- package/dist/es/reducers/main.js +0 -1
- package/dist/es/services/itemsService.d.ts +0 -14
- package/dist/es/services/itemsService.js +0 -76
- package/dist/es/services/main.d.ts +0 -4
- package/dist/es/services/main.js +0 -4
- package/dist/es/services/occurrenceService.d.ts +0 -7
- package/dist/es/services/occurrenceService.js +0 -92
- package/dist/es/services/rangeService.d.ts +0 -6
- package/dist/es/services/rangeService.js +0 -23
- package/dist/es/services/slotsService.d.ts +0 -8
- package/dist/es/services/slotsService.js +0 -42
- package/dist/es/slots/SchedulerEditSlot.d.ts +0 -80
- package/dist/es/slots/SchedulerEditSlot.js +0 -395
- package/dist/es/slots/SchedulerSlot.d.ts +0 -146
- package/dist/es/slots/SchedulerSlot.js +0 -373
- package/dist/es/slots/SchedulerViewSlot.d.ts +0 -73
- package/dist/es/slots/SchedulerViewSlot.js +0 -232
- package/dist/es/tasks/SchedulerEditTask.d.ts +0 -113
- package/dist/es/tasks/SchedulerEditTask.js +0 -317
- package/dist/es/tasks/SchedulerTask.d.ts +0 -82
- package/dist/es/tasks/SchedulerTask.js +0 -233
- package/dist/es/tasks/SchedulerViewTask.d.ts +0 -58
- package/dist/es/tasks/SchedulerViewTask.js +0 -159
- package/dist/es/utils/main.d.ts +0 -185
- package/dist/es/utils/main.js +0 -593
- package/dist/es/views/agenda/AgendaView.d.ts +0 -107
- package/dist/es/views/agenda/AgendaView.js +0 -342
- package/dist/es/views/agenda/AgendaViewBody.d.ts +0 -50
- package/dist/es/views/agenda/AgendaViewBody.js +0 -243
- package/dist/es/views/agenda/AgendaViewHead.d.ts +0 -46
- package/dist/es/views/agenda/AgendaViewHead.js +0 -56
- package/dist/es/views/agenda/AgendaViewHeaderItem.d.ts +0 -46
- package/dist/es/views/agenda/AgendaViewHeaderItem.js +0 -47
- package/dist/es/views/common/HorizontalResourceIterator.d.ts +0 -61
- package/dist/es/views/common/HorizontalResourceIterator.js +0 -178
- package/dist/es/views/common/SchedulerDrag.d.ts +0 -64
- package/dist/es/views/common/SchedulerDrag.js +0 -138
- package/dist/es/views/common/SchedulerResize.d.ts +0 -67
- package/dist/es/views/common/SchedulerResize.js +0 -142
- package/dist/es/views/common/VerticalResourceIterator.d.ts +0 -56
- package/dist/es/views/common/VerticalResourceIterator.js +0 -367
- package/dist/es/views/common/utils.d.ts +0 -34
- package/dist/es/views/common/utils.js +0 -196
- package/dist/es/views/day/DayView.d.ts +0 -43
- package/dist/es/views/day/DayView.js +0 -191
- package/dist/es/views/day/DayViewAllDayRowContent.d.ts +0 -41
- package/dist/es/views/day/DayViewAllDayRowContent.js +0 -41
- package/dist/es/views/day/DayViewAllDaySlots.d.ts +0 -48
- package/dist/es/views/day/DayViewAllDaySlots.js +0 -125
- package/dist/es/views/day/DayViewGroupRowContent.d.ts +0 -41
- package/dist/es/views/day/DayViewGroupRowContent.js +0 -33
- package/dist/es/views/day/DayViewHead.d.ts +0 -42
- package/dist/es/views/day/DayViewHead.js +0 -62
- package/dist/es/views/day/DayViewMiddleRow.d.ts +0 -53
- package/dist/es/views/day/DayViewMiddleRow.js +0 -131
- package/dist/es/views/day/DayViewRowContent.d.ts +0 -45
- package/dist/es/views/day/DayViewRowContent.js +0 -51
- package/dist/es/views/day/DayViewVerticalRow.d.ts +0 -44
- package/dist/es/views/day/DayViewVerticalRow.js +0 -120
- package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +0 -56
- package/dist/es/views/day/DayViewVerticalSlotsRow.js +0 -171
- package/dist/es/views/day/MultiDayView.d.ts +0 -181
- package/dist/es/views/day/MultiDayView.js +0 -1459
- package/dist/es/views/month/MonthView.d.ts +0 -99
- package/dist/es/views/month/MonthView.js +0 -650
- package/dist/es/views/month/MonthViewBody.d.ts +0 -48
- package/dist/es/views/month/MonthViewBody.js +0 -162
- package/dist/es/views/month/MonthViewHead.d.ts +0 -42
- package/dist/es/views/month/MonthViewHead.js +0 -95
- package/dist/es/views/time/MultiDayTimelineView.d.ts +0 -175
- package/dist/es/views/time/MultiDayTimelineView.js +0 -854
- package/dist/es/views/time/TimelineView.d.ts +0 -43
- package/dist/es/views/time/TimelineView.js +0 -199
- package/dist/es/views/time/TimelineViewAllEventsRowContent.d.ts +0 -40
- package/dist/es/views/time/TimelineViewAllEventsRowContent.js +0 -42
- package/dist/es/views/time/TimelineViewBody.d.ts +0 -49
- package/dist/es/views/time/TimelineViewBody.js +0 -131
- package/dist/es/views/time/TimelineViewRowContent.d.ts +0 -40
- package/dist/es/views/time/TimelineViewRowContent.js +0 -29
- package/dist/es/views/week/WeekView.d.ts +0 -114
- package/dist/es/views/week/WeekView.js +0 -213
- package/dist/es/views/week/WorkWeekView.d.ts +0 -40
- package/dist/es/views/week/WorkWeekView.js +0 -195
- package/dist/esm/Scheduler.d.ts +0 -337
- package/dist/esm/Scheduler.js +0 -656
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/components/BaseView.d.ts +0 -52
- package/dist/esm/components/BaseView.js +0 -143
- package/dist/esm/components/CurrentTimeMarker.d.ts +0 -50
- package/dist/esm/components/CurrentTimeMarker.js +0 -157
- package/dist/esm/components/CurrentTimeMarkerArrow.d.ts +0 -47
- package/dist/esm/components/CurrentTimeMarkerArrow.js +0 -130
- package/dist/esm/components/DateHeaderCell.d.ts +0 -76
- package/dist/esm/components/DateHeaderCell.js +0 -65
- package/dist/esm/components/SchedulerActionButtons.d.ts +0 -48
- package/dist/esm/components/SchedulerActionButtons.js +0 -128
- package/dist/esm/components/SchedulerForm.d.ts +0 -73
- package/dist/esm/components/SchedulerForm.js +0 -225
- package/dist/esm/components/SchedulerOccurrenceDialog.d.ts +0 -76
- package/dist/esm/components/SchedulerOccurrenceDialog.js +0 -185
- package/dist/esm/components/SchedulerRemoveDialog.d.ts +0 -72
- package/dist/esm/components/SchedulerRemoveDialog.js +0 -166
- package/dist/esm/components/ShowMoreItemsButton.d.ts +0 -56
- package/dist/esm/components/ShowMoreItemsButton.js +0 -82
- package/dist/esm/components/TimeHeaderCell.d.ts +0 -76
- package/dist/esm/components/TimeHeaderCell.js +0 -63
- package/dist/esm/components/footer/SchedulerFooter.d.ts +0 -49
- package/dist/esm/components/footer/SchedulerFooter.js +0 -43
- package/dist/esm/components/footer/bussiness-hours/BusinessHours.d.ts +0 -50
- package/dist/esm/components/footer/bussiness-hours/BusinessHours.js +0 -97
- package/dist/esm/components/header/SchedulerHeader.d.ts +0 -49
- package/dist/esm/components/header/SchedulerHeader.js +0 -35
- package/dist/esm/components/header/navigation/DatePickerToggleButton.d.ts +0 -42
- package/dist/esm/components/header/navigation/DatePickerToggleButton.js +0 -101
- package/dist/esm/components/header/navigation/NavigationDatePicker.d.ts +0 -42
- package/dist/esm/components/header/navigation/NavigationDatePicker.js +0 -269
- package/dist/esm/components/header/navigation/SchedulerNavigation.d.ts +0 -50
- package/dist/esm/components/header/navigation/SchedulerNavigation.js +0 -315
- package/dist/esm/components/header/view-selector/SchedulerViewSelector.d.ts +0 -49
- package/dist/esm/components/header/view-selector/SchedulerViewSelector.js +0 -30
- package/dist/esm/components/header/view-selector/ViewSelectorItem.d.ts +0 -47
- package/dist/esm/components/header/view-selector/ViewSelectorItem.js +0 -79
- package/dist/esm/components/header/view-selector/ViewSelectorList.d.ts +0 -42
- package/dist/esm/components/header/view-selector/ViewSelectorList.js +0 -136
- package/dist/esm/constants/main.d.ts +0 -49
- package/dist/esm/constants/main.js +0 -55
- package/dist/esm/context/SchedulerContext.d.ts +0 -22
- package/dist/esm/context/SchedulerContext.js +0 -4
- package/dist/esm/context/SchedulerEditItemContext.d.ts +0 -15
- package/dist/esm/context/SchedulerEditItemContext.js +0 -4
- package/dist/esm/context/SchedulerEditSlotContext.d.ts +0 -10
- package/dist/esm/context/SchedulerEditSlotContext.js +0 -4
- package/dist/esm/context/SchedulerEditTaskContext.d.ts +0 -11
- package/dist/esm/context/SchedulerEditTaskContext.js +0 -4
- package/dist/esm/context/SchedulerResourceIteratorContext.d.ts +0 -43
- package/dist/esm/context/SchedulerResourceIteratorContext.js +0 -55
- package/dist/esm/context/SchedulerViewContext.d.ts +0 -18
- package/dist/esm/context/SchedulerViewContext.js +0 -4
- package/dist/esm/context/main.d.ts +0 -5
- package/dist/esm/context/main.js +0 -5
- package/dist/esm/editors/FilterableComboBox.d.ts +0 -42
- package/dist/esm/editors/FilterableComboBox.js +0 -87
- package/dist/esm/editors/ResourceEditor.d.ts +0 -53
- package/dist/esm/editors/ResourceEditor.js +0 -139
- package/dist/esm/editors/SchedulerFormEditor.d.ts +0 -262
- package/dist/esm/editors/SchedulerFormEditor.js +0 -1784
- package/dist/esm/editors/ZonedDateTime.d.ts +0 -51
- package/dist/esm/editors/ZonedDateTime.js +0 -102
- package/dist/esm/editors/common.d.ts +0 -12
- package/dist/esm/editors/common.js +0 -29
- package/dist/esm/hooks/main.d.ts +0 -9
- package/dist/esm/hooks/main.js +0 -9
- package/dist/esm/hooks/use-items-focus.d.ts +0 -23
- package/dist/esm/hooks/use-items-focus.js +0 -57
- package/dist/esm/hooks/use-items-selection.d.ts +0 -30
- package/dist/esm/hooks/use-items-selection.js +0 -88
- package/dist/esm/hooks/use-slots-focus.d.ts +0 -33
- package/dist/esm/hooks/use-slots-focus.js +0 -95
- package/dist/esm/hooks/use-slots-selection.d.ts +0 -23
- package/dist/esm/hooks/use-slots-selection.js +0 -49
- package/dist/esm/hooks/useAsyncMouseEnterLeave.d.ts +0 -10
- package/dist/esm/hooks/useAsyncMouseEnterLeave.js +0 -25
- package/dist/esm/hooks/useCellSync.d.ts +0 -9
- package/dist/esm/hooks/useCellSync.js +0 -41
- package/dist/esm/hooks/useEditable.d.ts +0 -3
- package/dist/esm/hooks/useEditable.js +0 -19
- package/dist/esm/hooks/usePropOrState.d.ts +0 -2
- package/dist/esm/hooks/usePropOrState.js +0 -7
- package/dist/esm/hooks/useRowSync.d.ts +0 -10
- package/dist/esm/hooks/useRowSync.js +0 -45
- package/dist/esm/hooks/useSchedulerSlot.d.ts +0 -6
- package/dist/esm/hooks/useSchedulerSlot.js +0 -4
- package/dist/esm/hooks/useSlotExpand.d.ts +0 -3
- package/dist/esm/hooks/useSlotExpand.js +0 -58
- package/dist/esm/hooks/useWorkHours.d.ts +0 -2
- package/dist/esm/hooks/useWorkHours.js +0 -4
- package/dist/esm/items/SchedulerEditItem.d.ts +0 -357
- package/dist/esm/items/SchedulerEditItem.js +0 -1039
- package/dist/esm/items/SchedulerItem.d.ts +0 -236
- package/dist/esm/items/SchedulerItem.js +0 -947
- package/dist/esm/items/SchedulerItemContent.d.ts +0 -47
- package/dist/esm/items/SchedulerItemContent.js +0 -35
- package/dist/esm/items/SchedulerViewItem.d.ts +0 -61
- package/dist/esm/items/SchedulerViewItem.js +0 -577
- package/dist/esm/items/hooks/use-drag-item.d.ts +0 -34
- package/dist/esm/items/hooks/use-drag-item.js +0 -207
- package/dist/esm/items/hooks/use-form-item.d.ts +0 -22
- package/dist/esm/items/hooks/use-form-item.js +0 -47
- package/dist/esm/items/hooks/use-remove-item.d.ts +0 -30
- package/dist/esm/items/hooks/use-remove-item.js +0 -45
- package/dist/esm/items/hooks/use-resize-item.d.ts +0 -39
- package/dist/esm/items/hooks/use-resize-item.js +0 -251
- package/dist/esm/items/hooks/use-series.d.ts +0 -25
- package/dist/esm/items/hooks/use-series.js +0 -37
- package/dist/esm/items/hooks/use-show-occurrence-dialog.d.ts +0 -29
- package/dist/esm/items/hooks/use-show-occurrence-dialog.js +0 -46
- package/dist/esm/items/hooks/use-show-remove-item-dialog.d.ts +0 -29
- package/dist/esm/items/hooks/use-show-remove-item-dialog.js +0 -45
- package/dist/esm/main.d.ts +0 -43
- package/dist/esm/main.js +0 -49
- package/dist/esm/messages/main.d.ts +0 -236
- package/dist/esm/messages/main.js +0 -237
- package/dist/esm/models/DataItem.d.ts +0 -8
- package/dist/esm/models/DataItem.js +0 -1
- package/dist/esm/models/DateRange.d.ts +0 -18
- package/dist/esm/models/DateRange.js +0 -1
- package/dist/esm/models/EditableProp.d.ts +0 -29
- package/dist/esm/models/EditableProp.js +0 -1
- package/dist/esm/models/Fields.d.ts +0 -17
- package/dist/esm/models/Fields.js +0 -1
- package/dist/esm/models/Group.d.ts +0 -8
- package/dist/esm/models/Group.js +0 -1
- package/dist/esm/models/Item.d.ts +0 -62
- package/dist/esm/models/Item.js +0 -1
- package/dist/esm/models/NavigationAction.d.ts +0 -17
- package/dist/esm/models/NavigationAction.js +0 -1
- package/dist/esm/models/Occurrence.d.ts +0 -52
- package/dist/esm/models/Occurrence.js +0 -1
- package/dist/esm/models/Omit.d.ts +0 -4
- package/dist/esm/models/Omit.js +0 -1
- package/dist/esm/models/Orientation.d.ts +0 -2
- package/dist/esm/models/Orientation.js +0 -1
- package/dist/esm/models/Range.d.ts +0 -10
- package/dist/esm/models/Range.js +0 -1
- package/dist/esm/models/Rect.d.ts +0 -15
- package/dist/esm/models/Rect.js +0 -1
- package/dist/esm/models/Resource.d.ts +0 -8
- package/dist/esm/models/Resource.js +0 -1
- package/dist/esm/models/SchedulerGroup.d.ts +0 -13
- package/dist/esm/models/SchedulerGroup.js +0 -1
- package/dist/esm/models/SchedulerHandle.d.ts +0 -6
- package/dist/esm/models/SchedulerHandle.js +0 -1
- package/dist/esm/models/SchedulerModelFields.d.ts +0 -62
- package/dist/esm/models/SchedulerModelFields.js +0 -1
- package/dist/esm/models/SchedulerResource.d.ts +0 -33
- package/dist/esm/models/SchedulerResource.js +0 -1
- package/dist/esm/models/SchedulerView.d.ts +0 -83
- package/dist/esm/models/SchedulerView.js +0 -1
- package/dist/esm/models/Slot.d.ts +0 -51
- package/dist/esm/models/Slot.js +0 -1
- package/dist/esm/models/events.d.ts +0 -81
- package/dist/esm/models/events.js +0 -1
- package/dist/esm/models/main.d.ts +0 -17
- package/dist/esm/models/main.js +0 -17
- package/dist/esm/package-metadata.d.ts +0 -5
- package/dist/esm/package-metadata.js +0 -11
- package/dist/esm/package.json +0 -3
- package/dist/esm/recurrence/RecurrenceEditor.d.ts +0 -54
- package/dist/esm/recurrence/RecurrenceEditor.js +0 -961
- package/dist/esm/recurrence/RecurrenceFrequencyEditor.d.ts +0 -48
- package/dist/esm/recurrence/RecurrenceFrequencyEditor.js +0 -101
- package/dist/esm/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -51
- package/dist/esm/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -133
- package/dist/esm/recurrence/common.d.ts +0 -57
- package/dist/esm/recurrence/common.js +0 -212
- package/dist/esm/recurrence/types/EndRule.d.ts +0 -4
- package/dist/esm/recurrence/types/EndRule.js +0 -1
- package/dist/esm/recurrence/types/Frequency.d.ts +0 -4
- package/dist/esm/recurrence/types/Frequency.js +0 -1
- package/dist/esm/recurrence/types/FrequencyEntity.d.ts +0 -8
- package/dist/esm/recurrence/types/FrequencyEntity.js +0 -1
- package/dist/esm/recurrence/types/MonthEntity.d.ts +0 -7
- package/dist/esm/recurrence/types/MonthEntity.js +0 -1
- package/dist/esm/recurrence/types/OffsetPosition.d.ts +0 -4
- package/dist/esm/recurrence/types/OffsetPosition.js +0 -1
- package/dist/esm/recurrence/types/OffsetPositionEntity.d.ts +0 -7
- package/dist/esm/recurrence/types/OffsetPositionEntity.js +0 -1
- package/dist/esm/recurrence/types/RepeatOnRule.d.ts +0 -4
- package/dist/esm/recurrence/types/RepeatOnRule.js +0 -1
- package/dist/esm/recurrence/types/WeekDayEntity.d.ts +0 -7
- package/dist/esm/recurrence/types/WeekDayEntity.js +0 -1
- package/dist/esm/recurrence/types/WeekDayRule.d.ts +0 -8
- package/dist/esm/recurrence/types/WeekDayRule.js +0 -1
- package/dist/esm/recurrence/utils/main.d.ts +0 -1
- package/dist/esm/recurrence/utils/main.js +0 -0
- package/dist/esm/reducers/editReducer.d.ts +0 -33
- package/dist/esm/reducers/editReducer.js +0 -65
- package/dist/esm/reducers/main.d.ts +0 -1
- package/dist/esm/reducers/main.js +0 -1
- package/dist/esm/services/itemsService.d.ts +0 -14
- package/dist/esm/services/itemsService.js +0 -76
- package/dist/esm/services/main.d.ts +0 -4
- package/dist/esm/services/main.js +0 -4
- package/dist/esm/services/occurrenceService.d.ts +0 -7
- package/dist/esm/services/occurrenceService.js +0 -92
- package/dist/esm/services/rangeService.d.ts +0 -6
- package/dist/esm/services/rangeService.js +0 -23
- package/dist/esm/services/slotsService.d.ts +0 -8
- package/dist/esm/services/slotsService.js +0 -42
- package/dist/esm/slots/SchedulerEditSlot.d.ts +0 -80
- package/dist/esm/slots/SchedulerEditSlot.js +0 -395
- package/dist/esm/slots/SchedulerSlot.d.ts +0 -146
- package/dist/esm/slots/SchedulerSlot.js +0 -373
- package/dist/esm/slots/SchedulerViewSlot.d.ts +0 -73
- package/dist/esm/slots/SchedulerViewSlot.js +0 -232
- package/dist/esm/tasks/SchedulerEditTask.d.ts +0 -113
- package/dist/esm/tasks/SchedulerEditTask.js +0 -317
- package/dist/esm/tasks/SchedulerTask.d.ts +0 -82
- package/dist/esm/tasks/SchedulerTask.js +0 -233
- package/dist/esm/tasks/SchedulerViewTask.d.ts +0 -58
- package/dist/esm/tasks/SchedulerViewTask.js +0 -159
- package/dist/esm/utils/main.d.ts +0 -185
- package/dist/esm/utils/main.js +0 -593
- package/dist/esm/views/agenda/AgendaView.d.ts +0 -107
- package/dist/esm/views/agenda/AgendaView.js +0 -342
- package/dist/esm/views/agenda/AgendaViewBody.d.ts +0 -50
- package/dist/esm/views/agenda/AgendaViewBody.js +0 -243
- package/dist/esm/views/agenda/AgendaViewHead.d.ts +0 -46
- package/dist/esm/views/agenda/AgendaViewHead.js +0 -56
- package/dist/esm/views/agenda/AgendaViewHeaderItem.d.ts +0 -46
- package/dist/esm/views/agenda/AgendaViewHeaderItem.js +0 -47
- package/dist/esm/views/common/HorizontalResourceIterator.d.ts +0 -61
- package/dist/esm/views/common/HorizontalResourceIterator.js +0 -178
- package/dist/esm/views/common/SchedulerDrag.d.ts +0 -64
- package/dist/esm/views/common/SchedulerDrag.js +0 -138
- package/dist/esm/views/common/SchedulerResize.d.ts +0 -67
- package/dist/esm/views/common/SchedulerResize.js +0 -142
- package/dist/esm/views/common/VerticalResourceIterator.d.ts +0 -56
- package/dist/esm/views/common/VerticalResourceIterator.js +0 -367
- package/dist/esm/views/common/utils.d.ts +0 -34
- package/dist/esm/views/common/utils.js +0 -196
- package/dist/esm/views/day/DayView.d.ts +0 -43
- package/dist/esm/views/day/DayView.js +0 -191
- package/dist/esm/views/day/DayViewAllDayRowContent.d.ts +0 -41
- package/dist/esm/views/day/DayViewAllDayRowContent.js +0 -41
- package/dist/esm/views/day/DayViewAllDaySlots.d.ts +0 -48
- package/dist/esm/views/day/DayViewAllDaySlots.js +0 -125
- package/dist/esm/views/day/DayViewGroupRowContent.d.ts +0 -41
- package/dist/esm/views/day/DayViewGroupRowContent.js +0 -33
- package/dist/esm/views/day/DayViewHead.d.ts +0 -42
- package/dist/esm/views/day/DayViewHead.js +0 -62
- package/dist/esm/views/day/DayViewMiddleRow.d.ts +0 -53
- package/dist/esm/views/day/DayViewMiddleRow.js +0 -131
- package/dist/esm/views/day/DayViewRowContent.d.ts +0 -45
- package/dist/esm/views/day/DayViewRowContent.js +0 -51
- package/dist/esm/views/day/DayViewVerticalRow.d.ts +0 -44
- package/dist/esm/views/day/DayViewVerticalRow.js +0 -120
- package/dist/esm/views/day/DayViewVerticalSlotsRow.d.ts +0 -56
- package/dist/esm/views/day/DayViewVerticalSlotsRow.js +0 -171
- package/dist/esm/views/day/MultiDayView.d.ts +0 -181
- package/dist/esm/views/day/MultiDayView.js +0 -1459
- package/dist/esm/views/month/MonthView.d.ts +0 -99
- package/dist/esm/views/month/MonthView.js +0 -650
- package/dist/esm/views/month/MonthViewBody.d.ts +0 -48
- package/dist/esm/views/month/MonthViewBody.js +0 -162
- package/dist/esm/views/month/MonthViewHead.d.ts +0 -42
- package/dist/esm/views/month/MonthViewHead.js +0 -95
- package/dist/esm/views/time/MultiDayTimelineView.d.ts +0 -175
- package/dist/esm/views/time/MultiDayTimelineView.js +0 -854
- package/dist/esm/views/time/TimelineView.d.ts +0 -43
- package/dist/esm/views/time/TimelineView.js +0 -199
- package/dist/esm/views/time/TimelineViewAllEventsRowContent.d.ts +0 -40
- package/dist/esm/views/time/TimelineViewAllEventsRowContent.js +0 -42
- package/dist/esm/views/time/TimelineViewBody.d.ts +0 -49
- package/dist/esm/views/time/TimelineViewBody.js +0 -131
- package/dist/esm/views/time/TimelineViewRowContent.d.ts +0 -40
- package/dist/esm/views/time/TimelineViewRowContent.js +0 -29
- package/dist/esm/views/week/WeekView.d.ts +0 -114
- package/dist/esm/views/week/WeekView.js +0 -213
- package/dist/esm/views/week/WorkWeekView.d.ts +0 -40
- package/dist/esm/views/week/WorkWeekView.js +0 -195
- package/dist/npm/Scheduler.d.ts +0 -337
- package/dist/npm/Scheduler.js +0 -663
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/components/BaseView.d.ts +0 -52
- package/dist/npm/components/BaseView.js +0 -150
- package/dist/npm/components/CurrentTimeMarker.d.ts +0 -50
- package/dist/npm/components/CurrentTimeMarker.js +0 -164
- package/dist/npm/components/CurrentTimeMarkerArrow.d.ts +0 -47
- package/dist/npm/components/CurrentTimeMarkerArrow.js +0 -137
- package/dist/npm/components/DateHeaderCell.d.ts +0 -76
- package/dist/npm/components/DateHeaderCell.js +0 -72
- package/dist/npm/components/SchedulerActionButtons.d.ts +0 -48
- package/dist/npm/components/SchedulerActionButtons.js +0 -135
- package/dist/npm/components/SchedulerForm.d.ts +0 -73
- package/dist/npm/components/SchedulerForm.js +0 -232
- package/dist/npm/components/SchedulerOccurrenceDialog.d.ts +0 -76
- package/dist/npm/components/SchedulerOccurrenceDialog.js +0 -193
- package/dist/npm/components/SchedulerRemoveDialog.d.ts +0 -72
- package/dist/npm/components/SchedulerRemoveDialog.js +0 -173
- package/dist/npm/components/ShowMoreItemsButton.d.ts +0 -56
- package/dist/npm/components/ShowMoreItemsButton.js +0 -89
- package/dist/npm/components/TimeHeaderCell.d.ts +0 -76
- package/dist/npm/components/TimeHeaderCell.js +0 -70
- package/dist/npm/components/footer/SchedulerFooter.d.ts +0 -49
- package/dist/npm/components/footer/SchedulerFooter.js +0 -49
- package/dist/npm/components/footer/bussiness-hours/BusinessHours.d.ts +0 -50
- package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +0 -103
- package/dist/npm/components/header/SchedulerHeader.d.ts +0 -49
- package/dist/npm/components/header/SchedulerHeader.js +0 -42
- package/dist/npm/components/header/navigation/DatePickerToggleButton.d.ts +0 -42
- package/dist/npm/components/header/navigation/DatePickerToggleButton.js +0 -108
- package/dist/npm/components/header/navigation/NavigationDatePicker.d.ts +0 -42
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +0 -276
- package/dist/npm/components/header/navigation/SchedulerNavigation.d.ts +0 -50
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +0 -322
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.d.ts +0 -49
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +0 -37
- package/dist/npm/components/header/view-selector/ViewSelectorItem.d.ts +0 -47
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +0 -86
- package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +0 -42
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +0 -143
- package/dist/npm/constants/main.d.ts +0 -49
- package/dist/npm/constants/main.js +0 -59
- package/dist/npm/context/SchedulerContext.d.ts +0 -22
- package/dist/npm/context/SchedulerContext.js +0 -11
- package/dist/npm/context/SchedulerEditItemContext.d.ts +0 -15
- package/dist/npm/context/SchedulerEditItemContext.js +0 -11
- package/dist/npm/context/SchedulerEditSlotContext.d.ts +0 -10
- package/dist/npm/context/SchedulerEditSlotContext.js +0 -11
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +0 -11
- package/dist/npm/context/SchedulerEditTaskContext.js +0 -11
- package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +0 -43
- package/dist/npm/context/SchedulerResourceIteratorContext.js +0 -62
- package/dist/npm/context/SchedulerViewContext.d.ts +0 -18
- package/dist/npm/context/SchedulerViewContext.js +0 -11
- package/dist/npm/context/main.d.ts +0 -5
- package/dist/npm/context/main.js +0 -21
- package/dist/npm/editors/FilterableComboBox.d.ts +0 -42
- package/dist/npm/editors/FilterableComboBox.js +0 -94
- package/dist/npm/editors/ResourceEditor.d.ts +0 -53
- package/dist/npm/editors/ResourceEditor.js +0 -146
- package/dist/npm/editors/SchedulerFormEditor.d.ts +0 -262
- package/dist/npm/editors/SchedulerFormEditor.js +0 -1791
- package/dist/npm/editors/ZonedDateTime.d.ts +0 -51
- package/dist/npm/editors/ZonedDateTime.js +0 -109
- package/dist/npm/editors/common.d.ts +0 -12
- package/dist/npm/editors/common.js +0 -34
- package/dist/npm/hooks/main.d.ts +0 -9
- package/dist/npm/hooks/main.js +0 -25
- package/dist/npm/hooks/use-items-focus.d.ts +0 -23
- package/dist/npm/hooks/use-items-focus.js +0 -64
- package/dist/npm/hooks/use-items-selection.d.ts +0 -30
- package/dist/npm/hooks/use-items-selection.js +0 -95
- package/dist/npm/hooks/use-slots-focus.d.ts +0 -33
- package/dist/npm/hooks/use-slots-focus.js +0 -106
- package/dist/npm/hooks/use-slots-selection.d.ts +0 -23
- package/dist/npm/hooks/use-slots-selection.js +0 -56
- package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +0 -10
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +0 -32
- package/dist/npm/hooks/useCellSync.d.ts +0 -9
- package/dist/npm/hooks/useCellSync.js +0 -48
- package/dist/npm/hooks/useEditable.d.ts +0 -3
- package/dist/npm/hooks/useEditable.js +0 -26
- package/dist/npm/hooks/usePropOrState.d.ts +0 -2
- package/dist/npm/hooks/usePropOrState.js +0 -14
- package/dist/npm/hooks/useRowSync.d.ts +0 -10
- package/dist/npm/hooks/useRowSync.js +0 -52
- package/dist/npm/hooks/useSchedulerSlot.d.ts +0 -6
- package/dist/npm/hooks/useSchedulerSlot.js +0 -11
- package/dist/npm/hooks/useSlotExpand.d.ts +0 -3
- package/dist/npm/hooks/useSlotExpand.js +0 -65
- package/dist/npm/hooks/useWorkHours.d.ts +0 -2
- package/dist/npm/hooks/useWorkHours.js +0 -11
- package/dist/npm/items/SchedulerEditItem.d.ts +0 -357
- package/dist/npm/items/SchedulerEditItem.js +0 -1046
- package/dist/npm/items/SchedulerItem.d.ts +0 -236
- package/dist/npm/items/SchedulerItem.js +0 -954
- package/dist/npm/items/SchedulerItemContent.d.ts +0 -47
- package/dist/npm/items/SchedulerItemContent.js +0 -42
- package/dist/npm/items/SchedulerViewItem.d.ts +0 -61
- package/dist/npm/items/SchedulerViewItem.js +0 -584
- package/dist/npm/items/hooks/use-drag-item.d.ts +0 -34
- package/dist/npm/items/hooks/use-drag-item.js +0 -214
- package/dist/npm/items/hooks/use-form-item.d.ts +0 -22
- package/dist/npm/items/hooks/use-form-item.js +0 -54
- package/dist/npm/items/hooks/use-remove-item.d.ts +0 -30
- package/dist/npm/items/hooks/use-remove-item.js +0 -52
- package/dist/npm/items/hooks/use-resize-item.d.ts +0 -39
- package/dist/npm/items/hooks/use-resize-item.js +0 -258
- package/dist/npm/items/hooks/use-series.d.ts +0 -25
- package/dist/npm/items/hooks/use-series.js +0 -45
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +0 -29
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +0 -54
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +0 -29
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +0 -53
- package/dist/npm/main.d.ts +0 -43
- package/dist/npm/main.js +0 -87
- package/dist/npm/messages/main.d.ts +0 -236
- package/dist/npm/messages/main.js +0 -241
- package/dist/npm/models/DataItem.d.ts +0 -8
- package/dist/npm/models/DataItem.js +0 -2
- package/dist/npm/models/DateRange.d.ts +0 -18
- package/dist/npm/models/DateRange.js +0 -2
- package/dist/npm/models/EditableProp.d.ts +0 -29
- package/dist/npm/models/EditableProp.js +0 -2
- package/dist/npm/models/Fields.d.ts +0 -17
- package/dist/npm/models/Fields.js +0 -2
- package/dist/npm/models/Group.d.ts +0 -8
- package/dist/npm/models/Group.js +0 -2
- package/dist/npm/models/Item.d.ts +0 -62
- package/dist/npm/models/Item.js +0 -2
- package/dist/npm/models/NavigationAction.d.ts +0 -17
- package/dist/npm/models/NavigationAction.js +0 -2
- package/dist/npm/models/Occurrence.d.ts +0 -52
- package/dist/npm/models/Occurrence.js +0 -2
- package/dist/npm/models/Omit.d.ts +0 -4
- package/dist/npm/models/Omit.js +0 -2
- package/dist/npm/models/Orientation.d.ts +0 -2
- package/dist/npm/models/Orientation.js +0 -2
- package/dist/npm/models/Range.d.ts +0 -10
- package/dist/npm/models/Range.js +0 -2
- package/dist/npm/models/Rect.d.ts +0 -15
- package/dist/npm/models/Rect.js +0 -2
- package/dist/npm/models/Resource.d.ts +0 -8
- package/dist/npm/models/Resource.js +0 -2
- package/dist/npm/models/SchedulerGroup.d.ts +0 -13
- package/dist/npm/models/SchedulerGroup.js +0 -2
- package/dist/npm/models/SchedulerHandle.d.ts +0 -6
- package/dist/npm/models/SchedulerHandle.js +0 -5
- package/dist/npm/models/SchedulerModelFields.d.ts +0 -62
- package/dist/npm/models/SchedulerModelFields.js +0 -2
- package/dist/npm/models/SchedulerResource.d.ts +0 -33
- package/dist/npm/models/SchedulerResource.js +0 -2
- package/dist/npm/models/SchedulerView.d.ts +0 -83
- package/dist/npm/models/SchedulerView.js +0 -2
- package/dist/npm/models/Slot.d.ts +0 -51
- package/dist/npm/models/Slot.js +0 -2
- package/dist/npm/models/events.d.ts +0 -81
- package/dist/npm/models/events.js +0 -2
- package/dist/npm/models/main.d.ts +0 -17
- package/dist/npm/models/main.js +0 -33
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/recurrence/RecurrenceEditor.d.ts +0 -54
- package/dist/npm/recurrence/RecurrenceEditor.js +0 -968
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.d.ts +0 -48
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +0 -108
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -51
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -140
- package/dist/npm/recurrence/common.d.ts +0 -57
- package/dist/npm/recurrence/common.js +0 -233
- package/dist/npm/recurrence/types/EndRule.d.ts +0 -4
- package/dist/npm/recurrence/types/EndRule.js +0 -2
- package/dist/npm/recurrence/types/Frequency.d.ts +0 -4
- package/dist/npm/recurrence/types/Frequency.js +0 -2
- package/dist/npm/recurrence/types/FrequencyEntity.d.ts +0 -8
- package/dist/npm/recurrence/types/FrequencyEntity.js +0 -2
- package/dist/npm/recurrence/types/MonthEntity.d.ts +0 -7
- package/dist/npm/recurrence/types/MonthEntity.js +0 -2
- package/dist/npm/recurrence/types/OffsetPosition.d.ts +0 -4
- package/dist/npm/recurrence/types/OffsetPosition.js +0 -2
- package/dist/npm/recurrence/types/OffsetPositionEntity.d.ts +0 -7
- package/dist/npm/recurrence/types/OffsetPositionEntity.js +0 -2
- package/dist/npm/recurrence/types/RepeatOnRule.d.ts +0 -4
- package/dist/npm/recurrence/types/RepeatOnRule.js +0 -2
- package/dist/npm/recurrence/types/WeekDayEntity.d.ts +0 -7
- package/dist/npm/recurrence/types/WeekDayEntity.js +0 -2
- package/dist/npm/recurrence/types/WeekDayRule.d.ts +0 -8
- package/dist/npm/recurrence/types/WeekDayRule.js +0 -2
- package/dist/npm/recurrence/utils/main.d.ts +0 -1
- package/dist/npm/recurrence/utils/main.js +0 -0
- package/dist/npm/reducers/editReducer.d.ts +0 -33
- package/dist/npm/reducers/editReducer.js +0 -69
- package/dist/npm/reducers/main.d.ts +0 -1
- package/dist/npm/reducers/main.js +0 -17
- package/dist/npm/services/itemsService.d.ts +0 -14
- package/dist/npm/services/itemsService.js +0 -83
- package/dist/npm/services/main.d.ts +0 -4
- package/dist/npm/services/main.js +0 -20
- package/dist/npm/services/occurrenceService.d.ts +0 -7
- package/dist/npm/services/occurrenceService.js +0 -96
- package/dist/npm/services/rangeService.d.ts +0 -6
- package/dist/npm/services/rangeService.js +0 -27
- package/dist/npm/services/slotsService.d.ts +0 -8
- package/dist/npm/services/slotsService.js +0 -46
- package/dist/npm/slots/SchedulerEditSlot.d.ts +0 -80
- package/dist/npm/slots/SchedulerEditSlot.js +0 -402
- package/dist/npm/slots/SchedulerSlot.d.ts +0 -146
- package/dist/npm/slots/SchedulerSlot.js +0 -380
- package/dist/npm/slots/SchedulerViewSlot.d.ts +0 -73
- package/dist/npm/slots/SchedulerViewSlot.js +0 -239
- package/dist/npm/tasks/SchedulerEditTask.d.ts +0 -113
- package/dist/npm/tasks/SchedulerEditTask.js +0 -324
- package/dist/npm/tasks/SchedulerTask.d.ts +0 -82
- package/dist/npm/tasks/SchedulerTask.js +0 -240
- package/dist/npm/tasks/SchedulerViewTask.d.ts +0 -58
- package/dist/npm/tasks/SchedulerViewTask.js +0 -166
- package/dist/npm/utils/main.d.ts +0 -185
- package/dist/npm/utils/main.js +0 -648
- package/dist/npm/views/agenda/AgendaView.d.ts +0 -107
- package/dist/npm/views/agenda/AgendaView.js +0 -349
- package/dist/npm/views/agenda/AgendaViewBody.d.ts +0 -50
- package/dist/npm/views/agenda/AgendaViewBody.js +0 -250
- package/dist/npm/views/agenda/AgendaViewHead.d.ts +0 -46
- package/dist/npm/views/agenda/AgendaViewHead.js +0 -63
- package/dist/npm/views/agenda/AgendaViewHeaderItem.d.ts +0 -46
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +0 -54
- package/dist/npm/views/common/HorizontalResourceIterator.d.ts +0 -61
- package/dist/npm/views/common/HorizontalResourceIterator.js +0 -186
- package/dist/npm/views/common/SchedulerDrag.d.ts +0 -64
- package/dist/npm/views/common/SchedulerDrag.js +0 -145
- package/dist/npm/views/common/SchedulerResize.d.ts +0 -67
- package/dist/npm/views/common/SchedulerResize.js +0 -149
- package/dist/npm/views/common/VerticalResourceIterator.d.ts +0 -56
- package/dist/npm/views/common/VerticalResourceIterator.js +0 -374
- package/dist/npm/views/common/utils.d.ts +0 -34
- package/dist/npm/views/common/utils.js +0 -210
- package/dist/npm/views/day/DayView.d.ts +0 -43
- package/dist/npm/views/day/DayView.js +0 -198
- package/dist/npm/views/day/DayViewAllDayRowContent.d.ts +0 -41
- package/dist/npm/views/day/DayViewAllDayRowContent.js +0 -48
- package/dist/npm/views/day/DayViewAllDaySlots.d.ts +0 -48
- package/dist/npm/views/day/DayViewAllDaySlots.js +0 -132
- package/dist/npm/views/day/DayViewGroupRowContent.d.ts +0 -41
- package/dist/npm/views/day/DayViewGroupRowContent.js +0 -40
- package/dist/npm/views/day/DayViewHead.d.ts +0 -42
- package/dist/npm/views/day/DayViewHead.js +0 -69
- package/dist/npm/views/day/DayViewMiddleRow.d.ts +0 -53
- package/dist/npm/views/day/DayViewMiddleRow.js +0 -138
- package/dist/npm/views/day/DayViewRowContent.d.ts +0 -45
- package/dist/npm/views/day/DayViewRowContent.js +0 -58
- package/dist/npm/views/day/DayViewVerticalRow.d.ts +0 -44
- package/dist/npm/views/day/DayViewVerticalRow.js +0 -127
- package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +0 -56
- package/dist/npm/views/day/DayViewVerticalSlotsRow.js +0 -178
- package/dist/npm/views/day/MultiDayView.d.ts +0 -181
- package/dist/npm/views/day/MultiDayView.js +0 -1466
- package/dist/npm/views/month/MonthView.d.ts +0 -99
- package/dist/npm/views/month/MonthView.js +0 -657
- package/dist/npm/views/month/MonthViewBody.d.ts +0 -48
- package/dist/npm/views/month/MonthViewBody.js +0 -169
- package/dist/npm/views/month/MonthViewHead.d.ts +0 -42
- package/dist/npm/views/month/MonthViewHead.js +0 -102
- package/dist/npm/views/time/MultiDayTimelineView.d.ts +0 -175
- package/dist/npm/views/time/MultiDayTimelineView.js +0 -861
- package/dist/npm/views/time/TimelineView.d.ts +0 -43
- package/dist/npm/views/time/TimelineView.js +0 -206
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.d.ts +0 -40
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +0 -49
- package/dist/npm/views/time/TimelineViewBody.d.ts +0 -49
- package/dist/npm/views/time/TimelineViewBody.js +0 -138
- package/dist/npm/views/time/TimelineViewRowContent.d.ts +0 -40
- package/dist/npm/views/time/TimelineViewRowContent.js +0 -36
- package/dist/npm/views/week/WeekView.d.ts +0 -114
- package/dist/npm/views/week/WeekView.js +0 -220
- package/dist/npm/views/week/WorkWeekView.d.ts +0 -40
- package/dist/npm/views/week/WorkWeekView.js +0 -202
|
@@ -1,1039 +0,0 @@
|
|
|
1
|
-
var __assign = this && this.__assign || function () {
|
|
2
|
-
__assign = Object.assign || function (t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import * as Vue from 'vue';
|
|
15
|
-
var allVue = Vue;
|
|
16
|
-
var gh = allVue.h;
|
|
17
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { DATA_ACTION } from '../Scheduler';
|
|
19
|
-
import { clone, Keys, getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
|
|
20
|
-
import { SchedulerViewItem } from './SchedulerViewItem';
|
|
21
|
-
import { ITEMS_FOCUS_ACTION, SLOTS_FOCUS_ACTION } from '../hooks/main';
|
|
22
|
-
import { FORM_ITEM_ACTION } from './hooks/use-form-item';
|
|
23
|
-
import { showOccurrenceDialogReducer, SHOW_OCCURRENCE_DIALOG_ACTION } from './hooks/use-show-occurrence-dialog';
|
|
24
|
-
import { REMOVE_ITEM_ACTION } from './hooks/use-remove-item';
|
|
25
|
-
import { showRemoveDialogReducer, SHOW_REMOVE_DIALOG_ACTION } from './hooks/use-show-remove-item-dialog';
|
|
26
|
-
import { DRAG_ITEM_ACTION, useDragItem } from './hooks/use-drag-item';
|
|
27
|
-
import { RESIZE_ITEM_ACTION, useResizeItem } from './hooks/use-resize-item';
|
|
28
|
-
import { seriesReducer, SERIES_ACTION } from './hooks/use-series';
|
|
29
|
-
import { ITEMS_SELECT_ACTION } from '../hooks/use-items-selection';
|
|
30
|
-
import { compareItems, compareSlots, findMaster } from '../utils/main';
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
var SchedulerEditItemVue2 = {
|
|
35
|
-
name: 'KendoSchedulerEditItem',
|
|
36
|
-
inheritAttrs: false,
|
|
37
|
-
props: {
|
|
38
|
-
tabIndex: {
|
|
39
|
-
type: Number,
|
|
40
|
-
default: undefined
|
|
41
|
-
},
|
|
42
|
-
item: [String, Function, Object],
|
|
43
|
-
viewItem: [String, Function, Object],
|
|
44
|
-
drag: [String, Function, Object],
|
|
45
|
-
resize: [String, Function, Object],
|
|
46
|
-
form: [String, Function, Object],
|
|
47
|
-
removeDialog: [String, Function, Object],
|
|
48
|
-
occurrenceDialog: [String, Function, Object],
|
|
49
|
-
formItem: Object,
|
|
50
|
-
dragItem: Object,
|
|
51
|
-
resizeItem: Object,
|
|
52
|
-
removeItem: Object,
|
|
53
|
-
showOccurrenceDialog: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: undefined
|
|
56
|
-
},
|
|
57
|
-
showRemoveDialog: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: undefined
|
|
60
|
-
},
|
|
61
|
-
series: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: undefined
|
|
64
|
-
},
|
|
65
|
-
uid: [String, Number],
|
|
66
|
-
start: Date,
|
|
67
|
-
end: Date,
|
|
68
|
-
originalStart: Date,
|
|
69
|
-
startTimezone: String,
|
|
70
|
-
endTimezone: String,
|
|
71
|
-
isAllDay: Boolean,
|
|
72
|
-
title: String,
|
|
73
|
-
description: String,
|
|
74
|
-
occurrenceId: String,
|
|
75
|
-
recurrenceExceptions: Array,
|
|
76
|
-
recurrenceRule: String,
|
|
77
|
-
recurrenceId: [String, Number],
|
|
78
|
-
dataItem: Object,
|
|
79
|
-
head: Boolean,
|
|
80
|
-
tail: Boolean,
|
|
81
|
-
order: Number,
|
|
82
|
-
zonedStart: Object,
|
|
83
|
-
zonedEnd: Object,
|
|
84
|
-
slots: Array,
|
|
85
|
-
group: Object,
|
|
86
|
-
range: Object,
|
|
87
|
-
isException: Boolean,
|
|
88
|
-
isRecurring: Boolean,
|
|
89
|
-
id: String,
|
|
90
|
-
className: String,
|
|
91
|
-
itemStyle: Object,
|
|
92
|
-
editable: [Object, Boolean],
|
|
93
|
-
selected: Boolean,
|
|
94
|
-
vertical: Boolean,
|
|
95
|
-
dragHint: Boolean,
|
|
96
|
-
resizeHint: Boolean,
|
|
97
|
-
format: String,
|
|
98
|
-
ignoreIsAllDay: Boolean
|
|
99
|
-
},
|
|
100
|
-
inject: {
|
|
101
|
-
bv: {
|
|
102
|
-
default: null
|
|
103
|
-
},
|
|
104
|
-
ks: {
|
|
105
|
-
default: null
|
|
106
|
-
},
|
|
107
|
-
dispatchFocusedItems: {
|
|
108
|
-
default: null
|
|
109
|
-
},
|
|
110
|
-
dispatchFocusedSlots: {
|
|
111
|
-
default: null
|
|
112
|
-
},
|
|
113
|
-
dispatchSelectedItems: {
|
|
114
|
-
default: null
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
provide: function provide() {
|
|
118
|
-
return {
|
|
119
|
-
ei: this.ei,
|
|
120
|
-
ksCancel: this.handleCancel,
|
|
121
|
-
ksFormSubmit: this.handleFormSubmit,
|
|
122
|
-
ksOccurrenceClick: this.handleOccurrenceClick,
|
|
123
|
-
ksSeriesClick: this.handleSeriesClick,
|
|
124
|
-
ksRemoveConfirm: this.handleRemoveConfirm
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
|
-
data: function data() {
|
|
128
|
-
return {
|
|
129
|
-
ei: {
|
|
130
|
-
props: this.$props,
|
|
131
|
-
form: this.$props.formItem,
|
|
132
|
-
drag: this.drag,
|
|
133
|
-
resize: this.resize,
|
|
134
|
-
remove: this.remove,
|
|
135
|
-
showRemoveDialog: this.showRemoveDialog,
|
|
136
|
-
showOccurrenceDialog: this.showOccurrenceDialog
|
|
137
|
-
},
|
|
138
|
-
currentFormItem: null,
|
|
139
|
-
currentSelected: null,
|
|
140
|
-
currentSeries: null,
|
|
141
|
-
currentRemoveItem: null,
|
|
142
|
-
currentDragItem: null,
|
|
143
|
-
currentResizeItem: null,
|
|
144
|
-
currentShowRemoveDialog: null,
|
|
145
|
-
currentShowOccurrenceDialog: null
|
|
146
|
-
// item: null
|
|
147
|
-
};
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
computed: {
|
|
151
|
-
currentTabIndex: function currentTabIndex() {
|
|
152
|
-
var isFirst = this.bv.items.length && this.bv.items[0].dataItem.id === this.dataItem.id;
|
|
153
|
-
return this.$props.tabIndex !== undefined ? this.$props.tabIndex === null ? undefined : this.$props.tabIndex : this.bv.selectedItems.length === 0 ? isFirst ? 0 : undefined : undefined;
|
|
154
|
-
},
|
|
155
|
-
compSelected: function compSelected() {
|
|
156
|
-
return this.selected !== undefined ? this.selected : this.currentSelected;
|
|
157
|
-
},
|
|
158
|
-
compSeries: function compSeries() {
|
|
159
|
-
return this.series !== undefined ? this.series : this.currentSeries;
|
|
160
|
-
},
|
|
161
|
-
compFormItem: function compFormItem() {
|
|
162
|
-
return this.formItem !== undefined ? this.formItem : this.currentFormItem;
|
|
163
|
-
},
|
|
164
|
-
compRemoveItem: function compRemoveItem() {
|
|
165
|
-
return this.removeItem !== undefined ? this.removeItem : this.currentRemoveItem;
|
|
166
|
-
},
|
|
167
|
-
compDragItem: function compDragItem() {
|
|
168
|
-
return this.dragItem !== undefined ? this.dragItem : this.currentDragItem;
|
|
169
|
-
},
|
|
170
|
-
compResizeItem: function compResizeItem() {
|
|
171
|
-
return this.resizeItem !== undefined ? this.resizeItem : this.currentResizeItem;
|
|
172
|
-
},
|
|
173
|
-
compShowRemoveDialog: function compShowRemoveDialog() {
|
|
174
|
-
return this.showRemoveDialog !== undefined ? this.showRemoveDialog : this.currentShowRemoveDialog;
|
|
175
|
-
},
|
|
176
|
-
compShowOccurrenceDialog: function compShowOccurrenceDialog() {
|
|
177
|
-
return this.showOccurrenceDialog !== undefined ? this.showOccurrenceDialog : this.currentShowOccurrenceDialog;
|
|
178
|
-
},
|
|
179
|
-
actionsReducerMap: function actionsReducerMap() {
|
|
180
|
-
var _a;
|
|
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;
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
// @ts-ignore
|
|
185
|
-
setup: !isV3 ? undefined : function () {
|
|
186
|
-
var v3 = !!isV3;
|
|
187
|
-
return {
|
|
188
|
-
v3: v3
|
|
189
|
-
};
|
|
190
|
-
},
|
|
191
|
-
// @ts-ignore
|
|
192
|
-
render: function render(createElement) {
|
|
193
|
-
var _this = this;
|
|
194
|
-
var h = gh || createElement;
|
|
195
|
-
var defaultSlot = getDefaultSlots(this);
|
|
196
|
-
// tslint:enable:max-line-length
|
|
197
|
-
var selected = Boolean(this.bv.selectedItems && this.bv.selectedItems.some(function (si) {
|
|
198
|
-
return compareItems(si, _this, _this.ignoreIsAllDay);
|
|
199
|
-
}));
|
|
200
|
-
var itemRender;
|
|
201
|
-
var itemRenderDefaultRendering =
|
|
202
|
-
// @ts-ignore function children
|
|
203
|
-
h(SchedulerViewItem, {
|
|
204
|
-
ignoreIsAllDay: this.ignoreIsAllDay,
|
|
205
|
-
attrs: this.v3 ? undefined : {
|
|
206
|
-
ignoreIsAllDay: this.ignoreIsAllDay,
|
|
207
|
-
item: this.item,
|
|
208
|
-
uid: this.uid,
|
|
209
|
-
start: this.start,
|
|
210
|
-
end: this.end,
|
|
211
|
-
originalStart: this.originalStart,
|
|
212
|
-
startTimezone: this.startTimezone,
|
|
213
|
-
endTimezone: this.endTimezone,
|
|
214
|
-
isAllDay: this.isAllDay,
|
|
215
|
-
title: this.title,
|
|
216
|
-
description: this.description,
|
|
217
|
-
occurrenceId: this.occurrenceId,
|
|
218
|
-
recurrenceExceptions: this.recurrenceExceptions,
|
|
219
|
-
recurrenceRule: this.recurrenceRule,
|
|
220
|
-
recurrenceId: this.recurrenceId,
|
|
221
|
-
dataItem: this.dataItem,
|
|
222
|
-
head: this.head,
|
|
223
|
-
tail: this.tail,
|
|
224
|
-
order: this.order,
|
|
225
|
-
zonedStart: this.zonedStart,
|
|
226
|
-
zonedEnd: this.zonedEnd,
|
|
227
|
-
slots: this.slots,
|
|
228
|
-
group: this.group,
|
|
229
|
-
range: this.range,
|
|
230
|
-
isException: this.isException,
|
|
231
|
-
isRecurring: this.isRecurring,
|
|
232
|
-
id: this.id,
|
|
233
|
-
className: this.className,
|
|
234
|
-
itemStyle: this.itemStyle,
|
|
235
|
-
editable: this.editable,
|
|
236
|
-
vertical: this.vertical,
|
|
237
|
-
dragHint: this.dragHint,
|
|
238
|
-
resizeHint: this.resizeHint,
|
|
239
|
-
format: this.format,
|
|
240
|
-
showOccurrenceDialog: this.compShowOccurrenceDialog,
|
|
241
|
-
showRemoveDialog: this.compShowRemoveDialog,
|
|
242
|
-
formItem: this.compFormItem,
|
|
243
|
-
dragItem: this.compDragItem,
|
|
244
|
-
resizeItem: this.compResizeItem,
|
|
245
|
-
removeItem: this.compRemoveItem,
|
|
246
|
-
itemRef: this.item,
|
|
247
|
-
selected: selected,
|
|
248
|
-
tabIndex: this.currentTabIndex
|
|
249
|
-
// Keyboard
|
|
250
|
-
},
|
|
251
|
-
item: this.item,
|
|
252
|
-
uid: this.uid,
|
|
253
|
-
start: this.start,
|
|
254
|
-
end: this.end,
|
|
255
|
-
originalStart: this.originalStart,
|
|
256
|
-
startTimezone: this.startTimezone,
|
|
257
|
-
endTimezone: this.endTimezone,
|
|
258
|
-
isAllDay: this.isAllDay,
|
|
259
|
-
title: this.title,
|
|
260
|
-
description: this.description,
|
|
261
|
-
occurrenceId: this.occurrenceId,
|
|
262
|
-
recurrenceExceptions: this.recurrenceExceptions,
|
|
263
|
-
recurrenceRule: this.recurrenceRule,
|
|
264
|
-
recurrenceId: this.recurrenceId,
|
|
265
|
-
dataItem: this.dataItem,
|
|
266
|
-
head: this.head,
|
|
267
|
-
tail: this.tail,
|
|
268
|
-
order: this.order,
|
|
269
|
-
zonedStart: this.zonedStart,
|
|
270
|
-
zonedEnd: this.zonedEnd,
|
|
271
|
-
slots: this.slots,
|
|
272
|
-
group: this.group,
|
|
273
|
-
range: this.range,
|
|
274
|
-
isException: this.isException,
|
|
275
|
-
isRecurring: this.isRecurring,
|
|
276
|
-
id: this.id,
|
|
277
|
-
className: this.className,
|
|
278
|
-
itemStyle: this.itemStyle,
|
|
279
|
-
editable: this.editable,
|
|
280
|
-
vertical: this.vertical,
|
|
281
|
-
dragHint: this.dragHint,
|
|
282
|
-
resizeHint: this.resizeHint,
|
|
283
|
-
format: this.format,
|
|
284
|
-
showOccurrenceDialog: this.compShowOccurrenceDialog,
|
|
285
|
-
showRemoveDialog: this.compShowRemoveDialog,
|
|
286
|
-
formItem: this.compFormItem,
|
|
287
|
-
dragItem: this.compDragItem,
|
|
288
|
-
resizeItem: this.compResizeItem,
|
|
289
|
-
removeItem: this.compRemoveItem,
|
|
290
|
-
itemRef: this.item,
|
|
291
|
-
selected: selected,
|
|
292
|
-
tabIndex: this.currentTabIndex,
|
|
293
|
-
onKeydown: this.handleKeyDown,
|
|
294
|
-
on: this.v3 ? undefined : {
|
|
295
|
-
"keydown": this.handleKeyDown,
|
|
296
|
-
"keyup": this.handleKeyUp,
|
|
297
|
-
"focus": this.handleFocus,
|
|
298
|
-
"mouseup": this.handleMouseUp,
|
|
299
|
-
"mousedown": this.handleMouseDown,
|
|
300
|
-
"click": this.handleClick,
|
|
301
|
-
"doubleclick": this.handleDoubleClick,
|
|
302
|
-
"removeclick": this.handleRemoveClick,
|
|
303
|
-
"press": this.handlePress,
|
|
304
|
-
"drag": this.handleDrag,
|
|
305
|
-
"release": this.handleRelease,
|
|
306
|
-
"resizepress": this.handleResizePress,
|
|
307
|
-
"resizeenddrag": this.handleResizeEndDrag,
|
|
308
|
-
"resizestartdrag": this.handleResizeStartDrag,
|
|
309
|
-
"resizerelease": this.handleResizeRelease
|
|
310
|
-
},
|
|
311
|
-
onKeyup: this.handleKeyUp
|
|
312
|
-
// Focus
|
|
313
|
-
,
|
|
314
|
-
onFocus: this.handleFocus
|
|
315
|
-
// Mouse
|
|
316
|
-
,
|
|
317
|
-
onMouseup: this.handleMouseUp,
|
|
318
|
-
onMousedown: this.handleMouseDown,
|
|
319
|
-
onClick: this.handleClick,
|
|
320
|
-
onDoubleclick: this.handleDoubleClick,
|
|
321
|
-
onRemoveclick: this.handleRemoveClick
|
|
322
|
-
// Drag
|
|
323
|
-
,
|
|
324
|
-
onPress: this.handlePress,
|
|
325
|
-
onDrag: this.handleDrag,
|
|
326
|
-
onRelease: this.handleRelease
|
|
327
|
-
// Resize
|
|
328
|
-
,
|
|
329
|
-
onResizepress: this.handleResizePress,
|
|
330
|
-
onResizeenddrag: this.handleResizeEndDrag,
|
|
331
|
-
onResizestartdrag: this.handleResizeStartDrag,
|
|
332
|
-
onResizerelease: this.handleResizeRelease
|
|
333
|
-
});
|
|
334
|
-
itemRender = getTemplate.call(this, {
|
|
335
|
-
h: h,
|
|
336
|
-
template: this.$props.viewItem,
|
|
337
|
-
defaultRendering: itemRenderDefaultRendering,
|
|
338
|
-
defaultSlots: defaultSlot,
|
|
339
|
-
additionalListeners: {
|
|
340
|
-
// keydown: this.handleKeyDown,
|
|
341
|
-
// keyup: this.handleKeyUp,
|
|
342
|
-
// Focus
|
|
343
|
-
// focus: this.handleFocus,
|
|
344
|
-
// Mouse
|
|
345
|
-
// mouseup: this.handleMouseUp,
|
|
346
|
-
// mousedown: this.handleMouseDown,
|
|
347
|
-
// click: this.handleClick,
|
|
348
|
-
doubleclick: this.handleDoubleClick,
|
|
349
|
-
removeclick: this.handleRemoveClick,
|
|
350
|
-
// Drag
|
|
351
|
-
press: this.handlePress,
|
|
352
|
-
drag: this.handleDrag,
|
|
353
|
-
release: this.handleRelease,
|
|
354
|
-
// Resize
|
|
355
|
-
resizepress: this.handleResizePress,
|
|
356
|
-
resizeenddrag: this.handleResizeEndDrag,
|
|
357
|
-
resizestartdrag: this.handleResizeStartDrag,
|
|
358
|
-
resizerelease: this.handleResizeRelease
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
return itemRender;
|
|
362
|
-
},
|
|
363
|
-
methods: {
|
|
364
|
-
dispatchSeries: function dispatchSeries(action, _event) {
|
|
365
|
-
var newSeries = seriesReducer(this.compSeries, action);
|
|
366
|
-
this.currentSeries = newSeries;
|
|
367
|
-
this.$emit('serieschange', newSeries);
|
|
368
|
-
},
|
|
369
|
-
dispatchItemSelection: function dispatchItemSelection(action, event) {
|
|
370
|
-
this.dispatchSelectedItems(action, event);
|
|
371
|
-
},
|
|
372
|
-
dispatchRemoveItem: function dispatchRemoveItem(action, _event) {
|
|
373
|
-
var newRemoveItem;
|
|
374
|
-
switch (action.type) {
|
|
375
|
-
case REMOVE_ITEM_ACTION.set:
|
|
376
|
-
newRemoveItem = action.payload;
|
|
377
|
-
break;
|
|
378
|
-
case REMOVE_ITEM_ACTION.reset:
|
|
379
|
-
newRemoveItem = null;
|
|
380
|
-
break;
|
|
381
|
-
case REMOVE_ITEM_ACTION.complete:
|
|
382
|
-
if (this.compRemoveItem) {
|
|
383
|
-
this.$emit('dataaction', {
|
|
384
|
-
type: DATA_ACTION.remove,
|
|
385
|
-
series: this.compSeries,
|
|
386
|
-
dataItem: this.compRemoveItem
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
newRemoveItem = null;
|
|
390
|
-
break;
|
|
391
|
-
default:
|
|
392
|
-
newRemoveItem = this.compRemoveItem;
|
|
393
|
-
break;
|
|
394
|
-
}
|
|
395
|
-
this.currentRemoveItem = newRemoveItem;
|
|
396
|
-
this.$emit('removeitemchange', newRemoveItem);
|
|
397
|
-
},
|
|
398
|
-
dispatchShowOccurrenceDialog: function dispatchShowOccurrenceDialog(action, _event) {
|
|
399
|
-
var newShowOccurrenceDialog = showOccurrenceDialogReducer(this.compShowOccurrenceDialog, action);
|
|
400
|
-
this.currentShowOccurrenceDialog = newShowOccurrenceDialog;
|
|
401
|
-
this.$emit('showremovedialogchange', newShowOccurrenceDialog);
|
|
402
|
-
},
|
|
403
|
-
dispatchShowRemoveDialog: function dispatchShowRemoveDialog(action, _event) {
|
|
404
|
-
var newShowRemoveDialog = showRemoveDialogReducer(this.compShowRemoveDialog, action);
|
|
405
|
-
this.currentShowRemoveDialog = newShowRemoveDialog;
|
|
406
|
-
this.$emit('showremovedialogchange', newShowRemoveDialog);
|
|
407
|
-
},
|
|
408
|
-
dispatchDragItem: function dispatchDragItem(action, _event) {
|
|
409
|
-
useDragItem.call(this, action);
|
|
410
|
-
},
|
|
411
|
-
dispatchResizeItem: function dispatchResizeItem(action, event) {
|
|
412
|
-
useResizeItem.call(this, action, event);
|
|
413
|
-
},
|
|
414
|
-
dispatchViewSlotsFocus: function dispatchViewSlotsFocus(action, event) {
|
|
415
|
-
this.dispatchFocusedSlots(action, event);
|
|
416
|
-
},
|
|
417
|
-
dispatchViewItemsFocus: function dispatchViewItemsFocus(action, event) {
|
|
418
|
-
this.dispatchFocusedItems(action, event);
|
|
419
|
-
},
|
|
420
|
-
dispatchFormItem: function dispatchFormItem(action, _event) {
|
|
421
|
-
var newFormItem;
|
|
422
|
-
switch (action.type) {
|
|
423
|
-
case FORM_ITEM_ACTION.set:
|
|
424
|
-
newFormItem = action.payload;
|
|
425
|
-
break;
|
|
426
|
-
case FORM_ITEM_ACTION.reset:
|
|
427
|
-
newFormItem = null;
|
|
428
|
-
break;
|
|
429
|
-
case FORM_ITEM_ACTION.setMaster:
|
|
430
|
-
newFormItem = clone(findMaster(action.payload, this.ks.fields, this.ks.dataItems));
|
|
431
|
-
break;
|
|
432
|
-
case FORM_ITEM_ACTION.complete:
|
|
433
|
-
if (this.compFormItem) {
|
|
434
|
-
this.$emit('dataaction', {
|
|
435
|
-
type: DATA_ACTION.update,
|
|
436
|
-
series: this.compSeries,
|
|
437
|
-
dataItem: action.payload
|
|
438
|
-
});
|
|
439
|
-
newFormItem = null;
|
|
440
|
-
}
|
|
441
|
-
break;
|
|
442
|
-
default:
|
|
443
|
-
newFormItem = this.compFormItem;
|
|
444
|
-
break;
|
|
445
|
-
}
|
|
446
|
-
this.currentFormItem = newFormItem;
|
|
447
|
-
this.$emit('formitemchange', newFormItem);
|
|
448
|
-
},
|
|
449
|
-
handleFocus: function handleFocus(event) {
|
|
450
|
-
var _this = this;
|
|
451
|
-
if (this.onFocusAction) {
|
|
452
|
-
var actions = this.onFocusAction(event, this.$props);
|
|
453
|
-
if (actions) {
|
|
454
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
455
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
456
|
-
item: _this.dataItem
|
|
457
|
-
}), event);
|
|
458
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
459
|
-
item: this.dataItem
|
|
460
|
-
}));
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
this.$emit('focus', event);
|
|
464
|
-
},
|
|
465
|
-
handleMouseDown: function handleMouseDown(event) {
|
|
466
|
-
var _this = this;
|
|
467
|
-
if (this.onMouseDownAction) {
|
|
468
|
-
var actions = this.onMouseDownAction(event, this.$props);
|
|
469
|
-
if (actions) {
|
|
470
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
471
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
472
|
-
item: _this.dataItem
|
|
473
|
-
}), event);
|
|
474
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
475
|
-
item: this.dataItem
|
|
476
|
-
}));
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
this.$emit('mousedown', event);
|
|
480
|
-
},
|
|
481
|
-
handleMouseUp: function handleMouseUp(event) {
|
|
482
|
-
var _this = this;
|
|
483
|
-
if (this.onMouseUpAction) {
|
|
484
|
-
var actions = this.onMouseUpAction(event, this.$props);
|
|
485
|
-
if (actions) {
|
|
486
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
487
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
488
|
-
item: _this.dataItem
|
|
489
|
-
}), event);
|
|
490
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
491
|
-
item: this.dataItem
|
|
492
|
-
}));
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
this.$emit('mouseup', event);
|
|
496
|
-
},
|
|
497
|
-
handleClick: function handleClick(event) {
|
|
498
|
-
var _this = this;
|
|
499
|
-
if (this.onClickAction) {
|
|
500
|
-
var actions = this.onClickAction(event, this.$props);
|
|
501
|
-
if (actions) {
|
|
502
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
503
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
504
|
-
item: _this.dataItem
|
|
505
|
-
}), event);
|
|
506
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
507
|
-
item: this.dataItem
|
|
508
|
-
}));
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
this.$emit('click', event);
|
|
512
|
-
},
|
|
513
|
-
handleDoubleClick: function handleDoubleClick(event) {
|
|
514
|
-
if (this.onDoubleClickAction) {
|
|
515
|
-
var actions = this.onDoubleClickAction(event, this.$props);
|
|
516
|
-
var that_1 = this;
|
|
517
|
-
if (actions) {
|
|
518
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
519
|
-
return action && that_1.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
520
|
-
item: that_1.dataItem
|
|
521
|
-
}), event);
|
|
522
|
-
}) : that_1.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
523
|
-
item: that_1.dataItem
|
|
524
|
-
}));
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
this.$emit('doubleclick', event);
|
|
528
|
-
},
|
|
529
|
-
handleRemoveClick: function handleRemoveClick(event) {
|
|
530
|
-
var _this = this;
|
|
531
|
-
if (this.onRemoveClickAction) {
|
|
532
|
-
var actions = this.onRemoveClickAction(event, this.$props);
|
|
533
|
-
if (actions) {
|
|
534
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
535
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
536
|
-
item: _this.dataItem
|
|
537
|
-
}), event);
|
|
538
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
539
|
-
item: this.dataItem
|
|
540
|
-
}));
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
this.$emit('removeclick', event);
|
|
544
|
-
},
|
|
545
|
-
handlePress: function handlePress(event) {
|
|
546
|
-
var _this = this;
|
|
547
|
-
if (this.onPressAction) {
|
|
548
|
-
var actions = this.onPressAction(event, this.$props);
|
|
549
|
-
if (actions) {
|
|
550
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
551
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
552
|
-
item: _this.dataItem
|
|
553
|
-
}), event);
|
|
554
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
555
|
-
item: this.dataItem
|
|
556
|
-
}), event);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
this.$emit('press', event);
|
|
560
|
-
},
|
|
561
|
-
handleDrag: function handleDrag(event) {
|
|
562
|
-
var _this = this;
|
|
563
|
-
if (this.onDragAction) {
|
|
564
|
-
var actions = this.onDragAction(event, this.$props);
|
|
565
|
-
if (actions) {
|
|
566
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
567
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
568
|
-
item: _this.dataItem
|
|
569
|
-
}), event.dragEvent.originalEvent);
|
|
570
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
571
|
-
item: this.dataItem
|
|
572
|
-
}), event.dragEvent.originalEvent);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
this.$emit('drag', event);
|
|
576
|
-
},
|
|
577
|
-
handleRelease: function handleRelease(event) {
|
|
578
|
-
var _this = this;
|
|
579
|
-
if (this.onReleaseAction) {
|
|
580
|
-
var actions = this.onReleaseAction(event, this.$props);
|
|
581
|
-
if (actions) {
|
|
582
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
583
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
584
|
-
item: _this.dataItem
|
|
585
|
-
}), event.dragEvent.originalEvent);
|
|
586
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
587
|
-
item: this.dataItem
|
|
588
|
-
}), event.dragEvent.originalEvent);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
this.$emit('release', event);
|
|
592
|
-
},
|
|
593
|
-
handleResizePress: function handleResizePress(event) {
|
|
594
|
-
var _this = this;
|
|
595
|
-
if (this.onResizePressAction) {
|
|
596
|
-
var actions = this.onResizePressAction(event, this.$props);
|
|
597
|
-
if (actions) {
|
|
598
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
599
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
600
|
-
item: _this.dataItem
|
|
601
|
-
}), event.dragEvent.originalEvent);
|
|
602
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
603
|
-
item: this.dataItem
|
|
604
|
-
}), event.dragEvent.originalEvent);
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
this.$emit('resizepress', event);
|
|
608
|
-
},
|
|
609
|
-
handleResizeStartDrag: function handleResizeStartDrag(event) {
|
|
610
|
-
var _this = this;
|
|
611
|
-
if (this.onResizeStartDragAction) {
|
|
612
|
-
var actions = this.onResizeStartDragAction(event, this.$props);
|
|
613
|
-
if (actions) {
|
|
614
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
615
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
616
|
-
item: _this.dataItem
|
|
617
|
-
}), event.dragEvent.originalEvent);
|
|
618
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
619
|
-
item: this.dataItem
|
|
620
|
-
}), event.dragEvent.originalEvent);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
this.$emit('resizestartdrag', event);
|
|
624
|
-
},
|
|
625
|
-
handleResizeEndDrag: function handleResizeEndDrag(event) {
|
|
626
|
-
var _this = this;
|
|
627
|
-
if (this.onResizeEndDragAction) {
|
|
628
|
-
var actions = this.onResizeEndDragAction(event, this.$props);
|
|
629
|
-
if (actions) {
|
|
630
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
631
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
632
|
-
item: _this.dataItem
|
|
633
|
-
}), event.dragEvent.originalEvent);
|
|
634
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
635
|
-
item: this.dataItem
|
|
636
|
-
}), event.dragEvent.originalEvent);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
this.$emit('resizeenddrag', event);
|
|
640
|
-
},
|
|
641
|
-
handleResizeRelease: function handleResizeRelease(event) {
|
|
642
|
-
var _this = this;
|
|
643
|
-
if (this.onResizeReleaseAction) {
|
|
644
|
-
var actions = this.onResizeReleaseAction(event, this.$props);
|
|
645
|
-
if (actions) {
|
|
646
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
647
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
648
|
-
item: _this.dataItem
|
|
649
|
-
}), event.dragEvent.originalEvent);
|
|
650
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
651
|
-
item: this.dataItem
|
|
652
|
-
}), event.dragEvent.originalEvent);
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
this.$emit('resizerelease', event);
|
|
656
|
-
},
|
|
657
|
-
handleFormSubmit: function handleFormSubmit(event) {
|
|
658
|
-
var _this = this;
|
|
659
|
-
if (this.onFormSubmitAction) {
|
|
660
|
-
var actions = this.onFormSubmitAction(event, this.$props);
|
|
661
|
-
if (actions) {
|
|
662
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
663
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
664
|
-
item: _this.dataItem
|
|
665
|
-
}), event);
|
|
666
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
667
|
-
item: this.dataItem
|
|
668
|
-
}), event);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
this.$emit('formsubmit', event);
|
|
672
|
-
},
|
|
673
|
-
handleCancel: function handleCancel(event) {
|
|
674
|
-
var _this = this;
|
|
675
|
-
if (this.onCancelAction) {
|
|
676
|
-
var actions = this.onCancelAction(event, this.$props);
|
|
677
|
-
if (actions) {
|
|
678
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
679
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
680
|
-
item: _this.dataItem
|
|
681
|
-
}), event);
|
|
682
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
683
|
-
item: this.dataItem
|
|
684
|
-
}), event);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
this.$emit('cancel', event);
|
|
688
|
-
},
|
|
689
|
-
handleOccurrenceClick: function handleOccurrenceClick(event) {
|
|
690
|
-
var _this = this;
|
|
691
|
-
if (this.onOccurrenceClickAction) {
|
|
692
|
-
var actions = this.onOccurrenceClickAction(event, this.$props);
|
|
693
|
-
if (actions) {
|
|
694
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
695
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
696
|
-
item: _this.dataItem
|
|
697
|
-
}), event);
|
|
698
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
699
|
-
item: this.dataItem
|
|
700
|
-
}), event);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
this.$emit('occurrenceclick', event);
|
|
704
|
-
},
|
|
705
|
-
handleSeriesClick: function handleSeriesClick(event) {
|
|
706
|
-
var _this = this;
|
|
707
|
-
if (this.onSeriesClickAction) {
|
|
708
|
-
var actions = this.onSeriesClickAction(event, this.$props);
|
|
709
|
-
if (actions) {
|
|
710
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
711
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
712
|
-
item: _this.dataItem
|
|
713
|
-
}), event);
|
|
714
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
715
|
-
item: this.dataItem
|
|
716
|
-
}), event);
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
this.$emit('seriesclick', event);
|
|
720
|
-
},
|
|
721
|
-
handleKeyDown: function handleKeyDown(event) {
|
|
722
|
-
var _this = this;
|
|
723
|
-
if (this.onKeyDownAction) {
|
|
724
|
-
var actions = this.onKeyDownAction(event, this.$props);
|
|
725
|
-
if (actions) {
|
|
726
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
727
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
728
|
-
item: _this
|
|
729
|
-
}), event.event);
|
|
730
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
731
|
-
item: this
|
|
732
|
-
}), event.event);
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
this.$emit('keydown', event);
|
|
736
|
-
},
|
|
737
|
-
handleKeyUp: function handleKeyUp(event) {
|
|
738
|
-
var _this = this;
|
|
739
|
-
if (this.onKeyUpAction) {
|
|
740
|
-
var actions = this.onKeyUpAction(event, this.$props);
|
|
741
|
-
if (actions) {
|
|
742
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
743
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
744
|
-
item: _this.dataItem
|
|
745
|
-
}), event.event);
|
|
746
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
747
|
-
item: this.dataItem
|
|
748
|
-
}), event.event);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
this.$emit('keyup', event);
|
|
752
|
-
},
|
|
753
|
-
handleRemoveConfirm: function handleRemoveConfirm(event) {
|
|
754
|
-
var _this = this;
|
|
755
|
-
if (this.onRemoveConfirmAction) {
|
|
756
|
-
var actions = this.onRemoveConfirmAction(event, this.$props);
|
|
757
|
-
if (actions) {
|
|
758
|
-
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
759
|
-
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
760
|
-
item: _this.dataItem
|
|
761
|
-
}), event.event);
|
|
762
|
-
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
763
|
-
item: this.dataItem
|
|
764
|
-
}), event.event);
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
this.$emit('removeconfirm', event);
|
|
768
|
-
},
|
|
769
|
-
onClickAction: function onClickAction(event, _) {
|
|
770
|
-
return [{
|
|
771
|
-
type: event.event.metaKey || event.event.ctrlKey ? this.compSelected && !this.compDragItem && !this.compResizeItem ? ITEMS_SELECT_ACTION.remove : ITEMS_SELECT_ACTION.add : ITEMS_SELECT_ACTION.select
|
|
772
|
-
}];
|
|
773
|
-
},
|
|
774
|
-
onDoubleClickAction: function onDoubleClickAction(_, props) {
|
|
775
|
-
return props.editable ? [{
|
|
776
|
-
type: FORM_ITEM_ACTION.set,
|
|
777
|
-
payload: props.dataItem
|
|
778
|
-
}, props.isRecurring && {
|
|
779
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
780
|
-
}].filter(Boolean) : [];
|
|
781
|
-
},
|
|
782
|
-
onRemoveClickAction: function onRemoveClickAction(_, props) {
|
|
783
|
-
return props.editable ? [{
|
|
784
|
-
type: REMOVE_ITEM_ACTION.set,
|
|
785
|
-
payload: props.dataItem
|
|
786
|
-
}, props.isRecurring ? {
|
|
787
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
788
|
-
} : {
|
|
789
|
-
type: SHOW_REMOVE_DIALOG_ACTION.open
|
|
790
|
-
}] : [];
|
|
791
|
-
},
|
|
792
|
-
onPressAction: function onPressAction(event, props) {
|
|
793
|
-
return props.editable ? {
|
|
794
|
-
type: DRAG_ITEM_ACTION.start,
|
|
795
|
-
payload: {
|
|
796
|
-
x: event.dragEvent.clientX,
|
|
797
|
-
y: event.dragEvent.clientY
|
|
798
|
-
}
|
|
799
|
-
} : [];
|
|
800
|
-
},
|
|
801
|
-
onDragAction: function onDragAction(event, props) {
|
|
802
|
-
return props.editable ? {
|
|
803
|
-
type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? DRAG_ITEM_ACTION.dragSelected : DRAG_ITEM_ACTION.drag,
|
|
804
|
-
payload: {
|
|
805
|
-
x: event.dragEvent.clientX,
|
|
806
|
-
y: event.dragEvent.clientY
|
|
807
|
-
}
|
|
808
|
-
} : [];
|
|
809
|
-
},
|
|
810
|
-
onReleaseAction: function onReleaseAction(event, props) {
|
|
811
|
-
return props.editable && this.compDragItem ? props.isRecurring && !props.isException && this.compSeries === null ? {
|
|
812
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
813
|
-
} : {
|
|
814
|
-
type: props.isRecurring ? this.compSeries ? DRAG_ITEM_ACTION.completeSeries : DRAG_ITEM_ACTION.completeOccurrence : DRAG_ITEM_ACTION.complete,
|
|
815
|
-
payload: {
|
|
816
|
-
x: event.dragEvent.clientX,
|
|
817
|
-
y: event.dragEvent.clientY
|
|
818
|
-
}
|
|
819
|
-
} : [];
|
|
820
|
-
},
|
|
821
|
-
onResizePressAction: function onResizePressAction(event, props) {
|
|
822
|
-
return props.editable ? {
|
|
823
|
-
type: RESIZE_ITEM_ACTION.start,
|
|
824
|
-
payload: {
|
|
825
|
-
x: event.dragEvent.clientX,
|
|
826
|
-
y: event.dragEvent.clientY
|
|
827
|
-
}
|
|
828
|
-
} : [];
|
|
829
|
-
},
|
|
830
|
-
onResizeStartDragAction: function onResizeStartDragAction(event, props) {
|
|
831
|
-
return props.editable ? {
|
|
832
|
-
type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? RESIZE_ITEM_ACTION.startDragSelected : RESIZE_ITEM_ACTION.startDrag,
|
|
833
|
-
payload: {
|
|
834
|
-
x: event.dragEvent.clientX,
|
|
835
|
-
y: event.dragEvent.clientY
|
|
836
|
-
}
|
|
837
|
-
} : [];
|
|
838
|
-
},
|
|
839
|
-
onResizeEndDragAction: function onResizeEndDragAction(event, props) {
|
|
840
|
-
return props.editable ? {
|
|
841
|
-
type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? RESIZE_ITEM_ACTION.endDragSelected : RESIZE_ITEM_ACTION.endDrag,
|
|
842
|
-
payload: {
|
|
843
|
-
x: event.dragEvent.clientX,
|
|
844
|
-
y: event.dragEvent.clientY
|
|
845
|
-
}
|
|
846
|
-
} : [];
|
|
847
|
-
},
|
|
848
|
-
onResizeReleaseAction: function onResizeReleaseAction(event, props) {
|
|
849
|
-
return props.editable && this.compResizeItem ? props.isRecurring && !props.isException && this.compSeries === null ? {
|
|
850
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
851
|
-
} : {
|
|
852
|
-
type: props.isRecurring ? this.compSeries ? RESIZE_ITEM_ACTION.completeSeries : RESIZE_ITEM_ACTION.completeOccurrence : RESIZE_ITEM_ACTION.complete,
|
|
853
|
-
payload: {
|
|
854
|
-
x: event.dragEvent.clientX,
|
|
855
|
-
y: event.dragEvent.clientY
|
|
856
|
-
}
|
|
857
|
-
} : [];
|
|
858
|
-
},
|
|
859
|
-
onOccurrenceClickAction: function onOccurrenceClickAction(_event, props) {
|
|
860
|
-
if (this.compDragItem) {
|
|
861
|
-
return [{
|
|
862
|
-
type: DRAG_ITEM_ACTION.completeOccurrence
|
|
863
|
-
}, {
|
|
864
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
865
|
-
}];
|
|
866
|
-
}
|
|
867
|
-
if (this.compResizeItem) {
|
|
868
|
-
return [{
|
|
869
|
-
type: RESIZE_ITEM_ACTION.completeOccurrence
|
|
870
|
-
}, {
|
|
871
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
872
|
-
}];
|
|
873
|
-
}
|
|
874
|
-
if (this.compFormItem) {
|
|
875
|
-
return [{
|
|
876
|
-
type: SERIES_ACTION.set,
|
|
877
|
-
payload: false
|
|
878
|
-
}, {
|
|
879
|
-
type: FORM_ITEM_ACTION.set,
|
|
880
|
-
payload: props.dataItem
|
|
881
|
-
}, {
|
|
882
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
883
|
-
}];
|
|
884
|
-
}
|
|
885
|
-
if (this.compRemoveItem) {
|
|
886
|
-
return [{
|
|
887
|
-
type: SERIES_ACTION.set,
|
|
888
|
-
payload: false
|
|
889
|
-
}, {
|
|
890
|
-
type: REMOVE_ITEM_ACTION.set,
|
|
891
|
-
payload: props.dataItem
|
|
892
|
-
}, {
|
|
893
|
-
type: SHOW_REMOVE_DIALOG_ACTION.open
|
|
894
|
-
}, {
|
|
895
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
896
|
-
}];
|
|
897
|
-
}
|
|
898
|
-
},
|
|
899
|
-
onSeriesClickAction: function onSeriesClickAction(_event, props) {
|
|
900
|
-
if (this.compDragItem) {
|
|
901
|
-
return [{
|
|
902
|
-
type: DRAG_ITEM_ACTION.completeSeries
|
|
903
|
-
}, {
|
|
904
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
905
|
-
}];
|
|
906
|
-
}
|
|
907
|
-
if (this.compResizeItem) {
|
|
908
|
-
return [{
|
|
909
|
-
type: RESIZE_ITEM_ACTION.completeSeries
|
|
910
|
-
}, {
|
|
911
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
912
|
-
}];
|
|
913
|
-
}
|
|
914
|
-
if (this.compFormItem) {
|
|
915
|
-
return [{
|
|
916
|
-
type: SERIES_ACTION.set,
|
|
917
|
-
payload: true
|
|
918
|
-
}, {
|
|
919
|
-
type: FORM_ITEM_ACTION.setMaster,
|
|
920
|
-
payload: props.dataItem
|
|
921
|
-
}, {
|
|
922
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
923
|
-
}];
|
|
924
|
-
}
|
|
925
|
-
if (this.compRemoveItem) {
|
|
926
|
-
return [{
|
|
927
|
-
type: SERIES_ACTION.set,
|
|
928
|
-
payload: true
|
|
929
|
-
}, {
|
|
930
|
-
type: REMOVE_ITEM_ACTION.set,
|
|
931
|
-
payload: props.dataItem
|
|
932
|
-
}, {
|
|
933
|
-
type: SHOW_REMOVE_DIALOG_ACTION.open
|
|
934
|
-
}, {
|
|
935
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
936
|
-
}];
|
|
937
|
-
}
|
|
938
|
-
},
|
|
939
|
-
onKeyDownAction: function onKeyDownAction(event, props) {
|
|
940
|
-
var nextSlot;
|
|
941
|
-
switch (event.event.keyCode) {
|
|
942
|
-
case Keys.enter:
|
|
943
|
-
return [{
|
|
944
|
-
type: FORM_ITEM_ACTION.set,
|
|
945
|
-
payload: props.dataItem
|
|
946
|
-
}, props.isRecurring && {
|
|
947
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
948
|
-
}];
|
|
949
|
-
case Keys.tab:
|
|
950
|
-
return [{
|
|
951
|
-
type: event.event.shiftKey ? ITEMS_FOCUS_ACTION.prev : ITEMS_FOCUS_ACTION.next,
|
|
952
|
-
ignoreIsAllDay: props.ignoreIsAllDay
|
|
953
|
-
}, {
|
|
954
|
-
type: event.event.shiftKey ? ITEMS_SELECT_ACTION.selectPrev : ITEMS_SELECT_ACTION.selectNext,
|
|
955
|
-
ignoreIsAllDay: props.ignoreIsAllDay
|
|
956
|
-
}];
|
|
957
|
-
case Keys.up:
|
|
958
|
-
nextSlot = this.bv.slots.find(function (s) {
|
|
959
|
-
return compareSlots(s.cSlot, props.slots[0]);
|
|
960
|
-
});
|
|
961
|
-
return [Boolean(props.slots.length && nextSlot) && {
|
|
962
|
-
type: SLOTS_FOCUS_ACTION.up,
|
|
963
|
-
slot: nextSlot
|
|
964
|
-
}];
|
|
965
|
-
case Keys.right:
|
|
966
|
-
nextSlot = this.bv.slots.find(function (s) {
|
|
967
|
-
return compareSlots(s.cSlot, props.slots[0]);
|
|
968
|
-
});
|
|
969
|
-
return [Boolean(props.slots.length && nextSlot) && {
|
|
970
|
-
type: SLOTS_FOCUS_ACTION.right,
|
|
971
|
-
slot: nextSlot
|
|
972
|
-
}];
|
|
973
|
-
case Keys.down:
|
|
974
|
-
nextSlot = this.bv.slots.find(function (s) {
|
|
975
|
-
return compareSlots(s.cSlot, props.slots[props.slots.length - 1]);
|
|
976
|
-
});
|
|
977
|
-
return [Boolean(props.slots.length && nextSlot) && {
|
|
978
|
-
type: SLOTS_FOCUS_ACTION.down,
|
|
979
|
-
slot: nextSlot
|
|
980
|
-
}];
|
|
981
|
-
case Keys.left:
|
|
982
|
-
nextSlot = this.bv.slots.find(function (s) {
|
|
983
|
-
return compareSlots(s.cSlot.cSlot, props.slots[0]);
|
|
984
|
-
});
|
|
985
|
-
return [Boolean(props.slots.length && nextSlot) && {
|
|
986
|
-
type: SLOTS_FOCUS_ACTION.left,
|
|
987
|
-
slot: nextSlot
|
|
988
|
-
}];
|
|
989
|
-
case Keys.delete:
|
|
990
|
-
case Keys.backspace:
|
|
991
|
-
return [{
|
|
992
|
-
type: REMOVE_ITEM_ACTION.set,
|
|
993
|
-
payload: props.dataItem
|
|
994
|
-
}, props.isRecurring ? {
|
|
995
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.open
|
|
996
|
-
} : {
|
|
997
|
-
type: SHOW_REMOVE_DIALOG_ACTION.open
|
|
998
|
-
}];
|
|
999
|
-
default:
|
|
1000
|
-
return;
|
|
1001
|
-
}
|
|
1002
|
-
},
|
|
1003
|
-
onFormSubmitAction: function onFormSubmitAction(event) {
|
|
1004
|
-
return {
|
|
1005
|
-
type: FORM_ITEM_ACTION.complete,
|
|
1006
|
-
payload: event.value
|
|
1007
|
-
};
|
|
1008
|
-
},
|
|
1009
|
-
onRemoveConfirmAction: function onRemoveConfirmAction() {
|
|
1010
|
-
return [{
|
|
1011
|
-
type: REMOVE_ITEM_ACTION.complete
|
|
1012
|
-
}, {
|
|
1013
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.close
|
|
1014
|
-
}];
|
|
1015
|
-
},
|
|
1016
|
-
onCancelAction: function onCancelAction() {
|
|
1017
|
-
return [{
|
|
1018
|
-
type: SERIES_ACTION.reset
|
|
1019
|
-
}, {
|
|
1020
|
-
type: REMOVE_ITEM_ACTION.reset
|
|
1021
|
-
}, {
|
|
1022
|
-
type: FORM_ITEM_ACTION.reset
|
|
1023
|
-
}, {
|
|
1024
|
-
type: DRAG_ITEM_ACTION.reset
|
|
1025
|
-
}, {
|
|
1026
|
-
type: RESIZE_ITEM_ACTION.reset
|
|
1027
|
-
}, {
|
|
1028
|
-
type: SHOW_REMOVE_DIALOG_ACTION.reset
|
|
1029
|
-
}, {
|
|
1030
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION.reset
|
|
1031
|
-
}];
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
/**
|
|
1036
|
-
* @hidden
|
|
1037
|
-
*/
|
|
1038
|
-
var SchedulerEditItem = SchedulerEditItemVue2;
|
|
1039
|
-
export { SchedulerEditItem, SchedulerEditItemVue2 };
|