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