@progress/kendo-vue-scheduler 3.0.7 → 3.0.9-dev.202202280631
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/NOTICE.txt +22 -12
- package/dist/cdn/js/kendo-vue-scheduler.js +16 -1
- package/dist/es/Scheduler.d.ts +315 -0
- package/dist/es/Scheduler.js +1163 -0
- package/dist/es/additionalTypes.ts +9 -0
- package/dist/es/components/BaseView.d.ts +45 -0
- package/dist/es/components/BaseView.js +145 -0
- package/dist/es/components/CurrentTimeMarket.d.ts +44 -0
- package/dist/es/components/CurrentTimeMarket.js +193 -0
- package/dist/es/components/DateHeaderCell.d.ts +72 -0
- package/dist/es/components/DateHeaderCell.js +46 -0
- package/dist/es/components/SchedulerForm.d.ts +86 -0
- package/dist/es/components/SchedulerForm.js +260 -0
- package/dist/es/components/SchedulerOccurrenceDialog.d.ts +72 -0
- package/dist/es/components/SchedulerOccurrenceDialog.js +116 -0
- package/dist/es/components/SchedulerRemoveDialog.d.ts +68 -0
- package/dist/es/components/SchedulerRemoveDialog.js +97 -0
- package/dist/es/components/ShowMoreItemsButton.d.ts +50 -0
- package/dist/es/components/ShowMoreItemsButton.js +62 -0
- package/dist/es/components/TimeHeaderCell.d.ts +72 -0
- package/dist/es/components/TimeHeaderCell.js +44 -0
- package/dist/es/components/footer/SchedulerFooter.d.ts +50 -0
- package/dist/es/components/footer/SchedulerFooter.js +35 -0
- package/dist/es/components/footer/bussiness-hours/BussinessHours.d.ts +43 -0
- package/dist/es/components/footer/bussiness-hours/BussinessHours.js +33 -0
- package/dist/es/components/header/SchedulerHeader.d.ts +50 -0
- package/dist/es/components/header/SchedulerHeader.js +31 -0
- package/dist/es/components/header/navigation/DatePickerToggleButton.d.ts +36 -0
- package/dist/es/components/header/navigation/DatePickerToggleButton.js +94 -0
- package/dist/es/components/header/navigation/NavigationDatePicker.d.ts +36 -0
- package/dist/es/components/header/navigation/NavigationDatePicker.js +90 -0
- package/dist/es/components/header/navigation/SchedulerNavigation.d.ts +43 -0
- package/dist/es/components/header/navigation/SchedulerNavigation.js +30 -0
- package/dist/es/components/header/view-selector/SchedulerViewSelector.d.ts +43 -0
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +33 -0
- package/dist/es/components/header/view-selector/ViewSelectorItem.d.ts +41 -0
- package/dist/es/components/header/view-selector/ViewSelectorItem.js +73 -0
- package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +36 -0
- package/dist/es/components/header/view-selector/ViewSelectorList.js +154 -0
- package/dist/es/constants/index.d.ts +49 -0
- package/dist/es/constants/index.js +55 -0
- package/dist/es/context/SchedulerContext.d.ts +34 -0
- package/dist/es/context/SchedulerContext.js +205 -0
- package/dist/es/context/SchedulerEditItemContext.d.ts +23 -0
- package/dist/es/context/SchedulerEditItemContext.js +180 -0
- package/dist/es/context/SchedulerEditSlotContext.d.ts +13 -0
- package/dist/es/context/SchedulerEditSlotContext.js +47 -0
- package/dist/es/context/SchedulerEditTaskContext.d.ts +13 -0
- package/dist/es/context/SchedulerEditTaskContext.js +36 -0
- package/dist/es/context/SchedulerResourceIteratorContext.d.ts +40 -0
- package/dist/es/context/SchedulerResourceIteratorContext.js +52 -0
- package/dist/es/context/SchedulerViewContext.d.ts +19 -0
- package/dist/es/context/SchedulerViewContext.js +95 -0
- package/dist/es/context/index.d.ts +5 -0
- package/dist/es/context/index.js +5 -0
- package/dist/es/editors/FilterableComboBox.d.ts +36 -0
- package/dist/es/editors/FilterableComboBox.js +86 -0
- package/dist/es/editors/ResourceEditor.d.ts +47 -0
- package/dist/es/editors/ResourceEditor.js +131 -0
- package/dist/es/editors/SchedulerFormEditor.d.ts +258 -0
- package/dist/es/editors/SchedulerFormEditor.js +491 -0
- package/dist/es/editors/ZonedDateTime.d.ts +46 -0
- package/dist/es/editors/ZonedDateTime.js +85 -0
- package/dist/es/editors/common.d.ts +12 -0
- package/dist/es/editors/common.js +29 -0
- package/dist/es/hooks/index.d.ts +10 -0
- package/dist/es/hooks/index.js +10 -0
- package/dist/es/hooks/use-items-focus.d.ts +22 -0
- package/dist/es/hooks/use-items-focus.js +56 -0
- package/dist/es/hooks/use-items-selection.d.ts +30 -0
- package/dist/es/hooks/use-items-selection.js +113 -0
- package/dist/es/hooks/use-slots-focus.d.ts +33 -0
- package/dist/es/hooks/use-slots-focus.js +118 -0
- package/dist/es/hooks/use-slots-selection.d.ts +23 -0
- package/dist/es/hooks/use-slots-selection.js +64 -0
- package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +10 -0
- package/dist/es/hooks/useAsyncMouseEnterLeave.js +29 -0
- package/dist/es/hooks/useCellSync.d.ts +9 -0
- package/dist/es/hooks/useCellSync.js +51 -0
- package/dist/es/hooks/useEditable.d.ts +3 -0
- package/dist/es/hooks/useEditable.js +22 -0
- package/dist/es/hooks/usePropOrState.d.ts +2 -0
- package/dist/es/hooks/usePropOrState.js +8 -0
- package/dist/es/hooks/useRowSync.d.ts +10 -0
- package/dist/es/hooks/useRowSync.js +56 -0
- package/dist/es/hooks/useSchedulerItem.d.ts +6 -0
- package/dist/es/hooks/useSchedulerItem.js +33 -0
- package/dist/es/hooks/useSchedulerSlot.d.ts +6 -0
- package/dist/es/hooks/useSchedulerSlot.js +32 -0
- package/dist/es/hooks/useSlotExpand.d.ts +3 -0
- package/dist/es/hooks/useSlotExpand.js +103 -0
- package/dist/es/hooks/useWorkHours.d.ts +2 -0
- package/dist/es/hooks/useWorkHours.js +11 -0
- package/dist/es/items/SchedulerEditItem.d.ts +353 -0
- package/dist/es/items/SchedulerEditItem.js +1059 -0
- package/dist/es/items/SchedulerItem.d.ts +219 -0
- package/dist/es/items/SchedulerItem.js +420 -0
- package/dist/es/items/SchedulerItemContent.d.ts +41 -0
- package/dist/es/items/SchedulerItemContent.js +27 -0
- package/dist/es/items/SchedulerViewItem.d.ts +58 -0
- package/dist/es/items/SchedulerViewItem.js +411 -0
- package/dist/es/items/hooks/use-drag-item.d.ts +38 -0
- package/dist/es/items/hooks/use-drag-item.js +182 -0
- package/dist/es/items/hooks/use-form-item.d.ts +18 -0
- package/dist/es/items/hooks/use-form-item.js +50 -0
- package/dist/es/items/hooks/use-remove-item.d.ts +26 -0
- package/dist/es/items/hooks/use-remove-item.js +48 -0
- package/dist/es/items/hooks/use-resize-item.d.ts +41 -0
- package/dist/es/items/hooks/use-resize-item.js +209 -0
- package/dist/es/items/hooks/use-series.d.ts +23 -0
- package/dist/es/items/hooks/use-series.js +43 -0
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +27 -0
- package/dist/es/items/hooks/use-show-occurrence-dialog.js +54 -0
- package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +27 -0
- package/dist/es/items/hooks/use-show-remove-item-dialog.js +53 -0
- package/dist/es/main.d.ts +38 -1
- package/dist/es/main.js +82 -0
- package/dist/es/messages/index.d.ts +233 -0
- package/dist/es/messages/index.js +234 -0
- package/dist/es/models/DataItem.d.ts +8 -0
- package/dist/es/models/DataItem.js +0 -0
- package/dist/es/models/DateRange.d.ts +18 -0
- package/dist/es/models/DateRange.js +0 -0
- package/dist/es/models/EditableProp.d.ts +29 -0
- package/dist/es/models/EditableProp.js +0 -0
- package/dist/es/models/Fields.d.ts +17 -0
- package/dist/es/models/Fields.js +0 -0
- package/dist/es/models/Group.d.ts +8 -0
- package/dist/es/models/Group.js +0 -0
- package/dist/es/models/Item.d.ts +62 -0
- package/dist/es/models/Item.js +0 -0
- package/dist/es/models/NavigationAction.d.ts +58 -0
- package/dist/es/models/NavigationAction.js +10 -0
- package/dist/es/models/Occurrence.d.ts +52 -0
- package/dist/es/models/Occurrence.js +0 -0
- package/dist/es/models/Omit.d.ts +4 -0
- package/dist/es/models/Omit.js +0 -0
- package/dist/es/models/Orientation.d.ts +2 -0
- package/dist/es/models/Orientation.js +0 -0
- package/dist/es/models/Range.d.ts +10 -0
- package/dist/es/models/Range.js +0 -0
- package/dist/es/models/Rect.d.ts +15 -0
- package/dist/es/models/Rect.js +0 -0
- package/dist/es/models/Resource.d.ts +8 -0
- package/dist/es/models/Resource.js +0 -0
- package/dist/es/models/SchedulerGroup.d.ts +13 -0
- package/dist/es/models/SchedulerGroup.js +0 -0
- package/dist/es/models/SchedulerHandle.d.ts +8 -0
- package/dist/es/models/SchedulerHandle.js +0 -0
- package/dist/es/models/SchedulerModelFields.d.ts +62 -0
- package/dist/es/models/SchedulerModelFields.js +0 -0
- package/dist/es/models/SchedulerResource.d.ts +33 -0
- package/dist/es/models/SchedulerResource.js +0 -0
- package/dist/es/models/SchedulerView.d.ts +74 -0
- package/dist/es/models/SchedulerView.js +0 -0
- package/dist/es/models/Slot.d.ts +49 -0
- package/dist/es/models/Slot.js +0 -0
- package/dist/es/models/events.d.ts +81 -0
- package/dist/es/models/events.js +0 -0
- package/dist/es/models/index.d.ts +17 -0
- package/dist/es/models/index.js +17 -0
- package/dist/es/package-metadata.d.ts +5 -0
- package/dist/es/package-metadata.js +11 -0
- package/dist/es/recurrence/RecurrenceEditor.d.ts +44 -0
- package/dist/es/recurrence/RecurrenceEditor.js +909 -0
- package/dist/es/recurrence/RecurrenceFrequencyEditor.d.ts +42 -0
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +63 -0
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +45 -0
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +127 -0
- package/dist/es/recurrence/common.d.ts +57 -0
- package/dist/es/recurrence/common.js +211 -0
- package/dist/es/recurrence/types/EndRule.d.ts +4 -0
- package/dist/es/recurrence/types/EndRule.js +0 -0
- package/dist/es/recurrence/types/Frequency.d.ts +4 -0
- package/dist/es/recurrence/types/Frequency.js +0 -0
- package/dist/es/recurrence/types/FrequencyEntity.d.ts +8 -0
- package/dist/es/recurrence/types/FrequencyEntity.js +0 -0
- package/dist/es/recurrence/types/MonthEntity.d.ts +7 -0
- package/dist/es/recurrence/types/MonthEntity.js +0 -0
- package/dist/es/recurrence/types/OffsetPosition.d.ts +4 -0
- package/dist/es/recurrence/types/OffsetPosition.js +0 -0
- package/dist/es/recurrence/types/OffsetPositionEntity.d.ts +7 -0
- package/dist/es/recurrence/types/OffsetPositionEntity.js +0 -0
- package/dist/es/recurrence/types/RepeatOnRule.d.ts +4 -0
- package/dist/es/recurrence/types/RepeatOnRule.js +0 -0
- package/dist/es/recurrence/types/WeekDayEntity.d.ts +7 -0
- package/dist/es/recurrence/types/WeekDayEntity.js +0 -0
- package/dist/es/recurrence/types/WeekDayRule.d.ts +8 -0
- package/dist/es/recurrence/types/WeekDayRule.js +0 -0
- package/dist/es/recurrence/utils/index.d.ts +1 -0
- package/dist/es/recurrence/utils/index.js +0 -0
- package/dist/es/reducers/editReducer.d.ts +33 -0
- package/dist/es/reducers/editReducer.js +65 -0
- package/dist/es/reducers/index.d.ts +1 -0
- package/dist/es/reducers/index.js +1 -0
- package/dist/es/services/index.d.ts +4 -0
- package/dist/es/services/index.js +4 -0
- package/dist/es/services/itemsService.d.ts +14 -0
- package/dist/es/services/itemsService.js +82 -0
- package/dist/es/services/occurrenceService.d.ts +7 -0
- package/dist/es/services/occurrenceService.js +90 -0
- package/dist/es/services/rangeService.d.ts +6 -0
- package/dist/es/services/rangeService.js +23 -0
- package/dist/es/services/slotsService.d.ts +8 -0
- package/dist/es/services/slotsService.js +42 -0
- package/dist/es/slots/SchedulerEditSlot.d.ts +78 -0
- package/dist/es/slots/SchedulerEditSlot.js +309 -0
- package/dist/es/slots/SchedulerSlot.d.ts +142 -0
- package/dist/es/slots/SchedulerSlot.js +218 -0
- package/dist/es/slots/SchedulerViewSlot.d.ts +72 -0
- package/dist/es/slots/SchedulerViewSlot.js +121 -0
- package/dist/es/tasks/SchedulerEditTask.d.ts +102 -0
- package/dist/es/tasks/SchedulerEditTask.js +282 -0
- package/dist/es/tasks/SchedulerTask.d.ts +75 -0
- package/dist/es/tasks/SchedulerTask.js +110 -0
- package/dist/es/tasks/SchedulerViewTask.d.ts +56 -0
- package/dist/es/tasks/SchedulerViewTask.js +127 -0
- package/dist/es/utils/index.d.ts +172 -0
- package/dist/es/utils/index.js +561 -0
- package/dist/es/views/agenda/AgendaView.d.ts +105 -0
- package/dist/es/views/agenda/AgendaView.js +266 -0
- package/dist/es/views/agenda/AgendaViewBody.d.ts +41 -0
- package/dist/es/views/agenda/AgendaViewBody.js +211 -0
- package/dist/es/views/agenda/AgendaViewHead.d.ts +40 -0
- package/dist/es/views/agenda/AgendaViewHead.js +50 -0
- package/dist/es/views/agenda/AgendaViewHeaderItem.d.ts +40 -0
- package/dist/es/views/agenda/AgendaViewHeaderItem.js +41 -0
- package/dist/es/views/common/HorizontalResourceIterator.d.ts +57 -0
- package/dist/es/views/common/HorizontalResourceIterator.js +179 -0
- package/dist/es/views/common/SchedulerDrag.d.ts +63 -0
- package/dist/es/views/common/SchedulerDrag.js +95 -0
- package/dist/es/views/common/SchedulerResize.d.ts +65 -0
- package/dist/es/views/common/SchedulerResize.js +97 -0
- package/dist/es/views/common/VerticalResourceIterator.d.ts +53 -0
- package/dist/es/views/common/VerticalResourceIterator.js +266 -0
- package/dist/es/views/common/utils.d.ts +34 -0
- package/dist/es/views/common/utils.js +187 -0
- package/dist/es/views/day/DayView.d.ts +41 -0
- package/dist/es/views/day/DayView.js +95 -0
- package/dist/es/views/day/DayViewAllDayRowContent.d.ts +39 -0
- package/dist/es/views/day/DayViewAllDayRowContent.js +38 -0
- package/dist/es/views/day/DayViewAllDaySlots.d.ts +43 -0
- package/dist/es/views/day/DayViewAllDaySlots.js +99 -0
- package/dist/es/views/day/DayViewGroupRowContent.d.ts +39 -0
- package/dist/es/views/day/DayViewGroupRowContent.js +31 -0
- package/dist/es/views/day/DayViewHead.d.ts +40 -0
- package/dist/es/views/day/DayViewHead.js +60 -0
- package/dist/es/views/day/DayViewMiddleRow.d.ts +38 -0
- package/dist/es/views/day/DayViewMiddleRow.js +109 -0
- package/dist/es/views/day/DayViewRowContent.d.ts +43 -0
- package/dist/es/views/day/DayViewRowContent.js +49 -0
- package/dist/es/views/day/MultiDayView.d.ts +169 -0
- package/dist/es/views/day/MultiDayView.js +1397 -0
- package/dist/es/views/month/MonthView.d.ts +100 -0
- package/dist/es/views/month/MonthView.js +531 -0
- package/dist/es/views/month/MonthViewBody.d.ts +42 -0
- package/dist/es/views/month/MonthViewBody.js +152 -0
- package/dist/es/views/month/MonthViewHead.d.ts +40 -0
- package/dist/es/views/month/MonthViewHead.js +68 -0
- package/dist/es/views/time/MultiDayTimelineView.d.ts +173 -0
- package/dist/es/views/time/MultiDayTimelineView.js +479 -0
- package/dist/es/views/time/TimelineView.d.ts +41 -0
- package/dist/es/views/time/TimelineView.js +114 -0
- package/dist/es/views/time/TimelineViewAllEventsRowContent.d.ts +38 -0
- package/dist/es/views/time/TimelineViewAllEventsRowContent.js +40 -0
- package/dist/es/views/time/TimelineViewBody.d.ts +42 -0
- package/dist/es/views/time/TimelineViewBody.js +98 -0
- package/dist/es/views/time/TimelineViewRowContent.d.ts +38 -0
- package/dist/es/views/time/TimelineViewRowContent.js +29 -0
- package/dist/es/views/week/WeekView.d.ts +116 -0
- package/dist/es/views/week/WeekView.js +124 -0
- package/dist/es/views/week/WorkWeekView.d.ts +38 -0
- package/dist/es/views/week/WorkWeekView.js +162 -0
- package/dist/npm/Scheduler.d.ts +315 -0
- package/dist/npm/Scheduler.js +1190 -0
- package/dist/npm/additionalTypes.ts +9 -0
- package/dist/npm/components/BaseView.d.ts +45 -0
- package/dist/npm/components/BaseView.js +159 -0
- package/dist/npm/components/CurrentTimeMarket.d.ts +44 -0
- package/dist/npm/components/CurrentTimeMarket.js +205 -0
- package/dist/npm/components/DateHeaderCell.d.ts +72 -0
- package/dist/npm/components/DateHeaderCell.js +56 -0
- package/dist/npm/components/SchedulerForm.d.ts +86 -0
- package/dist/npm/components/SchedulerForm.js +275 -0
- package/dist/npm/components/SchedulerOccurrenceDialog.d.ts +72 -0
- package/dist/npm/components/SchedulerOccurrenceDialog.js +129 -0
- package/dist/npm/components/SchedulerRemoveDialog.d.ts +68 -0
- package/dist/npm/components/SchedulerRemoveDialog.js +110 -0
- package/dist/npm/components/ShowMoreItemsButton.d.ts +50 -0
- package/dist/npm/components/ShowMoreItemsButton.js +72 -0
- package/dist/npm/components/TimeHeaderCell.d.ts +72 -0
- package/dist/npm/components/TimeHeaderCell.js +54 -0
- package/dist/npm/components/footer/SchedulerFooter.d.ts +50 -0
- package/dist/npm/components/footer/SchedulerFooter.js +46 -0
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.d.ts +43 -0
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +44 -0
- package/dist/npm/components/header/SchedulerHeader.d.ts +50 -0
- package/dist/npm/components/header/SchedulerHeader.js +42 -0
- package/dist/npm/components/header/navigation/DatePickerToggleButton.d.ts +36 -0
- package/dist/npm/components/header/navigation/DatePickerToggleButton.js +106 -0
- package/dist/npm/components/header/navigation/NavigationDatePicker.d.ts +36 -0
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +102 -0
- package/dist/npm/components/header/navigation/SchedulerNavigation.d.ts +43 -0
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +41 -0
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.d.ts +43 -0
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +44 -0
- package/dist/npm/components/header/view-selector/ViewSelectorItem.d.ts +41 -0
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +84 -0
- package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +36 -0
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +164 -0
- package/dist/npm/constants/index.d.ts +49 -0
- package/dist/npm/constants/index.js +59 -0
- package/dist/npm/context/SchedulerContext.d.ts +34 -0
- package/dist/npm/context/SchedulerContext.js +211 -0
- package/dist/npm/context/SchedulerEditItemContext.d.ts +23 -0
- package/dist/npm/context/SchedulerEditItemContext.js +187 -0
- package/dist/npm/context/SchedulerEditSlotContext.d.ts +13 -0
- package/dist/npm/context/SchedulerEditSlotContext.js +53 -0
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +13 -0
- package/dist/npm/context/SchedulerEditTaskContext.js +43 -0
- package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +40 -0
- package/dist/npm/context/SchedulerResourceIteratorContext.js +62 -0
- package/dist/npm/context/SchedulerViewContext.d.ts +19 -0
- package/dist/npm/context/SchedulerViewContext.js +102 -0
- package/dist/npm/context/index.d.ts +5 -0
- package/dist/npm/context/index.js +17 -0
- package/dist/npm/editors/FilterableComboBox.d.ts +36 -0
- package/dist/npm/editors/FilterableComboBox.js +97 -0
- package/dist/npm/editors/ResourceEditor.d.ts +47 -0
- package/dist/npm/editors/ResourceEditor.js +141 -0
- package/dist/npm/editors/SchedulerFormEditor.d.ts +258 -0
- package/dist/npm/editors/SchedulerFormEditor.js +505 -0
- package/dist/npm/editors/ZonedDateTime.d.ts +46 -0
- package/dist/npm/editors/ZonedDateTime.js +96 -0
- package/dist/npm/editors/common.d.ts +12 -0
- package/dist/npm/editors/common.js +32 -0
- package/dist/npm/hooks/index.d.ts +10 -0
- package/dist/npm/hooks/index.js +22 -0
- package/dist/npm/hooks/use-items-focus.d.ts +22 -0
- package/dist/npm/hooks/use-items-focus.js +64 -0
- package/dist/npm/hooks/use-items-selection.d.ts +30 -0
- package/dist/npm/hooks/use-items-selection.js +121 -0
- package/dist/npm/hooks/use-slots-focus.d.ts +33 -0
- package/dist/npm/hooks/use-slots-focus.js +129 -0
- package/dist/npm/hooks/use-slots-selection.d.ts +23 -0
- package/dist/npm/hooks/use-slots-selection.js +70 -0
- package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +10 -0
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +36 -0
- package/dist/npm/hooks/useCellSync.d.ts +9 -0
- package/dist/npm/hooks/useCellSync.js +60 -0
- package/dist/npm/hooks/useEditable.d.ts +3 -0
- package/dist/npm/hooks/useEditable.js +28 -0
- package/dist/npm/hooks/usePropOrState.d.ts +2 -0
- package/dist/npm/hooks/usePropOrState.js +16 -0
- package/dist/npm/hooks/useRowSync.d.ts +10 -0
- package/dist/npm/hooks/useRowSync.js +64 -0
- package/dist/npm/hooks/useSchedulerItem.d.ts +6 -0
- package/dist/npm/hooks/useSchedulerItem.js +39 -0
- package/dist/npm/hooks/useSchedulerSlot.d.ts +6 -0
- package/dist/npm/hooks/useSchedulerSlot.js +38 -0
- package/dist/npm/hooks/useSlotExpand.d.ts +3 -0
- package/dist/npm/hooks/useSlotExpand.js +112 -0
- package/dist/npm/hooks/useWorkHours.d.ts +2 -0
- package/dist/npm/hooks/useWorkHours.js +18 -0
- package/dist/npm/items/SchedulerEditItem.d.ts +353 -0
- package/dist/npm/items/SchedulerEditItem.js +1079 -0
- package/dist/npm/items/SchedulerItem.d.ts +219 -0
- package/dist/npm/items/SchedulerItem.js +435 -0
- package/dist/npm/items/SchedulerItemContent.d.ts +41 -0
- package/dist/npm/items/SchedulerItemContent.js +36 -0
- package/dist/npm/items/SchedulerViewItem.d.ts +58 -0
- package/dist/npm/items/SchedulerViewItem.js +426 -0
- package/dist/npm/items/hooks/use-drag-item.d.ts +38 -0
- package/dist/npm/items/hooks/use-drag-item.js +189 -0
- package/dist/npm/items/hooks/use-form-item.d.ts +18 -0
- package/dist/npm/items/hooks/use-form-item.js +57 -0
- package/dist/npm/items/hooks/use-remove-item.d.ts +26 -0
- package/dist/npm/items/hooks/use-remove-item.js +55 -0
- package/dist/npm/items/hooks/use-resize-item.d.ts +41 -0
- package/dist/npm/items/hooks/use-resize-item.js +216 -0
- package/dist/npm/items/hooks/use-series.d.ts +23 -0
- package/dist/npm/items/hooks/use-series.js +50 -0
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +27 -0
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +61 -0
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +27 -0
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +60 -0
- package/dist/npm/main.d.ts +38 -1
- package/dist/npm/main.js +85 -0
- package/dist/npm/messages/index.d.ts +233 -0
- package/dist/npm/messages/index.js +237 -0
- package/dist/npm/models/DataItem.d.ts +8 -0
- package/dist/npm/models/DataItem.js +2 -0
- package/dist/npm/models/DateRange.d.ts +18 -0
- package/dist/npm/models/DateRange.js +2 -0
- package/dist/npm/models/EditableProp.d.ts +29 -0
- package/dist/npm/models/EditableProp.js +2 -0
- package/dist/npm/models/Fields.d.ts +17 -0
- package/dist/npm/models/Fields.js +2 -0
- package/dist/npm/models/Group.d.ts +8 -0
- package/dist/npm/models/Group.js +2 -0
- package/dist/npm/models/Item.d.ts +62 -0
- package/dist/npm/models/Item.js +2 -0
- package/dist/npm/models/NavigationAction.d.ts +58 -0
- package/dist/npm/models/NavigationAction.js +12 -0
- package/dist/npm/models/Occurrence.d.ts +52 -0
- package/dist/npm/models/Occurrence.js +2 -0
- package/dist/npm/models/Omit.d.ts +4 -0
- package/dist/npm/models/Omit.js +2 -0
- package/dist/npm/models/Orientation.d.ts +2 -0
- package/dist/npm/models/Orientation.js +2 -0
- package/dist/npm/models/Range.d.ts +10 -0
- package/dist/npm/models/Range.js +2 -0
- package/dist/npm/models/Rect.d.ts +15 -0
- package/dist/npm/models/Rect.js +2 -0
- package/dist/npm/models/Resource.d.ts +8 -0
- package/dist/npm/models/Resource.js +2 -0
- package/dist/npm/models/SchedulerGroup.d.ts +13 -0
- package/dist/npm/models/SchedulerGroup.js +2 -0
- package/dist/npm/models/SchedulerHandle.d.ts +8 -0
- package/dist/npm/models/SchedulerHandle.js +5 -0
- package/dist/npm/models/SchedulerModelFields.d.ts +62 -0
- package/dist/npm/models/SchedulerModelFields.js +2 -0
- package/dist/npm/models/SchedulerResource.d.ts +33 -0
- package/dist/npm/models/SchedulerResource.js +2 -0
- package/dist/npm/models/SchedulerView.d.ts +74 -0
- package/dist/npm/models/SchedulerView.js +2 -0
- package/dist/npm/models/Slot.d.ts +49 -0
- package/dist/npm/models/Slot.js +2 -0
- package/dist/npm/models/events.d.ts +81 -0
- package/dist/npm/models/events.js +2 -0
- package/dist/npm/models/index.d.ts +17 -0
- package/dist/npm/models/index.js +29 -0
- package/dist/npm/package-metadata.d.ts +5 -0
- package/dist/npm/package-metadata.js +14 -0
- package/dist/npm/recurrence/RecurrenceEditor.d.ts +44 -0
- package/dist/npm/recurrence/RecurrenceEditor.js +929 -0
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.d.ts +42 -0
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +73 -0
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +45 -0
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +138 -0
- package/dist/npm/recurrence/common.d.ts +57 -0
- package/dist/npm/recurrence/common.js +214 -0
- package/dist/npm/recurrence/types/EndRule.d.ts +4 -0
- package/dist/npm/recurrence/types/EndRule.js +2 -0
- package/dist/npm/recurrence/types/Frequency.d.ts +4 -0
- package/dist/npm/recurrence/types/Frequency.js +2 -0
- package/dist/npm/recurrence/types/FrequencyEntity.d.ts +8 -0
- package/dist/npm/recurrence/types/FrequencyEntity.js +2 -0
- package/dist/npm/recurrence/types/MonthEntity.d.ts +7 -0
- package/dist/npm/recurrence/types/MonthEntity.js +2 -0
- package/dist/npm/recurrence/types/OffsetPosition.d.ts +4 -0
- package/dist/npm/recurrence/types/OffsetPosition.js +2 -0
- package/dist/npm/recurrence/types/OffsetPositionEntity.d.ts +7 -0
- package/dist/npm/recurrence/types/OffsetPositionEntity.js +2 -0
- package/dist/npm/recurrence/types/RepeatOnRule.d.ts +4 -0
- package/dist/npm/recurrence/types/RepeatOnRule.js +2 -0
- package/dist/npm/recurrence/types/WeekDayEntity.d.ts +7 -0
- package/dist/npm/recurrence/types/WeekDayEntity.js +2 -0
- package/dist/npm/recurrence/types/WeekDayRule.d.ts +8 -0
- package/dist/npm/recurrence/types/WeekDayRule.js +2 -0
- package/dist/npm/recurrence/utils/index.d.ts +1 -0
- package/dist/npm/recurrence/utils/index.js +0 -0
- package/dist/npm/reducers/editReducer.d.ts +33 -0
- package/dist/npm/reducers/editReducer.js +68 -0
- package/dist/npm/reducers/index.d.ts +1 -0
- package/dist/npm/reducers/index.js +13 -0
- package/dist/npm/services/index.d.ts +4 -0
- package/dist/npm/services/index.js +16 -0
- package/dist/npm/services/itemsService.d.ts +14 -0
- package/dist/npm/services/itemsService.js +85 -0
- package/dist/npm/services/occurrenceService.d.ts +7 -0
- package/dist/npm/services/occurrenceService.js +93 -0
- package/dist/npm/services/rangeService.d.ts +6 -0
- package/dist/npm/services/rangeService.js +26 -0
- package/dist/npm/services/slotsService.d.ts +8 -0
- package/dist/npm/services/slotsService.js +45 -0
- package/dist/npm/slots/SchedulerEditSlot.d.ts +78 -0
- package/dist/npm/slots/SchedulerEditSlot.js +324 -0
- package/dist/npm/slots/SchedulerSlot.d.ts +142 -0
- package/dist/npm/slots/SchedulerSlot.js +230 -0
- package/dist/npm/slots/SchedulerViewSlot.d.ts +72 -0
- package/dist/npm/slots/SchedulerViewSlot.js +133 -0
- package/dist/npm/tasks/SchedulerEditTask.d.ts +102 -0
- package/dist/npm/tasks/SchedulerEditTask.js +295 -0
- package/dist/npm/tasks/SchedulerTask.d.ts +75 -0
- package/dist/npm/tasks/SchedulerTask.js +122 -0
- package/dist/npm/tasks/SchedulerViewTask.d.ts +56 -0
- package/dist/npm/tasks/SchedulerViewTask.js +137 -0
- package/dist/npm/utils/index.d.ts +172 -0
- package/dist/npm/utils/index.js +571 -0
- package/dist/npm/views/agenda/AgendaView.d.ts +105 -0
- package/dist/npm/views/agenda/AgendaView.js +290 -0
- package/dist/npm/views/agenda/AgendaViewBody.d.ts +41 -0
- package/dist/npm/views/agenda/AgendaViewBody.js +224 -0
- package/dist/npm/views/agenda/AgendaViewHead.d.ts +40 -0
- package/dist/npm/views/agenda/AgendaViewHead.js +61 -0
- package/dist/npm/views/agenda/AgendaViewHeaderItem.d.ts +40 -0
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +51 -0
- package/dist/npm/views/common/HorizontalResourceIterator.d.ts +57 -0
- package/dist/npm/views/common/HorizontalResourceIterator.js +193 -0
- package/dist/npm/views/common/SchedulerDrag.d.ts +63 -0
- package/dist/npm/views/common/SchedulerDrag.js +108 -0
- package/dist/npm/views/common/SchedulerResize.d.ts +65 -0
- package/dist/npm/views/common/SchedulerResize.js +110 -0
- package/dist/npm/views/common/VerticalResourceIterator.d.ts +53 -0
- package/dist/npm/views/common/VerticalResourceIterator.js +278 -0
- package/dist/npm/views/common/utils.d.ts +34 -0
- package/dist/npm/views/common/utils.js +192 -0
- package/dist/npm/views/day/DayView.d.ts +41 -0
- package/dist/npm/views/day/DayView.js +107 -0
- package/dist/npm/views/day/DayViewAllDayRowContent.d.ts +39 -0
- package/dist/npm/views/day/DayViewAllDayRowContent.js +49 -0
- package/dist/npm/views/day/DayViewAllDaySlots.d.ts +43 -0
- package/dist/npm/views/day/DayViewAllDaySlots.js +109 -0
- package/dist/npm/views/day/DayViewGroupRowContent.d.ts +39 -0
- package/dist/npm/views/day/DayViewGroupRowContent.js +39 -0
- package/dist/npm/views/day/DayViewHead.d.ts +40 -0
- package/dist/npm/views/day/DayViewHead.js +71 -0
- package/dist/npm/views/day/DayViewMiddleRow.d.ts +38 -0
- package/dist/npm/views/day/DayViewMiddleRow.js +122 -0
- package/dist/npm/views/day/DayViewRowContent.d.ts +43 -0
- package/dist/npm/views/day/DayViewRowContent.js +60 -0
- package/dist/npm/views/day/MultiDayView.d.ts +169 -0
- package/dist/npm/views/day/MultiDayView.js +1425 -0
- package/dist/npm/views/month/MonthView.d.ts +100 -0
- package/dist/npm/views/month/MonthView.js +556 -0
- package/dist/npm/views/month/MonthViewBody.d.ts +42 -0
- package/dist/npm/views/month/MonthViewBody.js +164 -0
- package/dist/npm/views/month/MonthViewHead.d.ts +40 -0
- package/dist/npm/views/month/MonthViewHead.js +79 -0
- package/dist/npm/views/time/MultiDayTimelineView.d.ts +173 -0
- package/dist/npm/views/time/MultiDayTimelineView.js +508 -0
- package/dist/npm/views/time/TimelineView.d.ts +41 -0
- package/dist/npm/views/time/TimelineView.js +124 -0
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.d.ts +38 -0
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +51 -0
- package/dist/npm/views/time/TimelineViewBody.d.ts +42 -0
- package/dist/npm/views/time/TimelineViewBody.js +109 -0
- package/dist/npm/views/time/TimelineViewRowContent.d.ts +38 -0
- package/dist/npm/views/time/TimelineViewRowContent.js +39 -0
- package/dist/npm/views/week/WeekView.d.ts +116 -0
- package/dist/npm/views/week/WeekView.js +139 -0
- package/dist/npm/views/week/WorkWeekView.d.ts +38 -0
- package/dist/npm/views/week/WorkWeekView.js +177 -0
- package/package.json +12 -12
|
@@ -0,0 +1,1163 @@
|
|
|
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
|
+
};
|
|
16
|
+
|
|
17
|
+
var __spreadArrays = this && this.__spreadArrays || function () {
|
|
18
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
19
|
+
s += arguments[i].length;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
23
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
24
|
+
r[k] = a[j];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return r;
|
|
29
|
+
}; // @ts-ignore
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
import * as Vue from 'vue';
|
|
33
|
+
var allVue = Vue;
|
|
34
|
+
var gh = allVue.h;
|
|
35
|
+
import { getModelFields, getField, findMaster, setField, toSchedulerGroups, getToday } from './utils';
|
|
36
|
+
import { clone, getListeners, templateRendering } from '@progress/kendo-vue-common';
|
|
37
|
+
import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
38
|
+
import { SchedulerHeader } from './components/header/SchedulerHeader';
|
|
39
|
+
import { SchedulerNavigation } from './components/header/navigation/SchedulerNavigation';
|
|
40
|
+
import { SchedulerViewSelector } from './components/header/view-selector/SchedulerViewSelector';
|
|
41
|
+
import { addDays, addMonths } from '@progress/kendo-date-math';
|
|
42
|
+
import { SchedulerFooter } from './components/footer/SchedulerFooter';
|
|
43
|
+
import { Button, ToolbarSpacer, ButtonGroup } from '@progress/kendo-vue-buttons';
|
|
44
|
+
import { showFullDay, showWorkDay, messages, today, previousTitle, nextTitle } from './messages';
|
|
45
|
+
import { NavigationDatePicker } from './components/header/navigation/NavigationDatePicker';
|
|
46
|
+
import { ViewSelectorList } from './components/header/view-selector/ViewSelectorList';
|
|
47
|
+
import { BusinessHours } from './components/footer/bussiness-hours/BussinessHours';
|
|
48
|
+
import { DayView } from './views/day/DayView'; // import { SchedulerFormProps } from './editors/SchedulerFormEditor';
|
|
49
|
+
|
|
50
|
+
import { validatePackage } from '@progress/kendo-vue-common';
|
|
51
|
+
import { packageMetadata } from './package-metadata';
|
|
52
|
+
import { AgendaView, MonthView, WeekView, WorkWeekView } from './main';
|
|
53
|
+
import { TimelineView } from './views/time/TimelineView';
|
|
54
|
+
var DEFAULT_DATE_FORMAT = '{0:D}';
|
|
55
|
+
var DEFAULT_SHORT_DATE_FORMAT = '{0:d}';
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the available [DataAction]({% slug api_scheduler_data_action %}) types.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
export var DATA_ACTION;
|
|
61
|
+
|
|
62
|
+
(function (DATA_ACTION) {
|
|
63
|
+
DATA_ACTION[DATA_ACTION["create"] = 0] = "create";
|
|
64
|
+
DATA_ACTION[DATA_ACTION["update"] = 1] = "update";
|
|
65
|
+
DATA_ACTION[DATA_ACTION["remove"] = 2] = "remove";
|
|
66
|
+
})(DATA_ACTION || (DATA_ACTION = {})); // tslint:enable:max-line-length
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
var SchedulerVue2 = {
|
|
70
|
+
name: 'KendoScheduler',
|
|
71
|
+
props: {
|
|
72
|
+
dataItems: {
|
|
73
|
+
type: Array,
|
|
74
|
+
default: function _default() {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
views: {
|
|
79
|
+
type: Array,
|
|
80
|
+
default: function _default() {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
view: String,
|
|
85
|
+
defaultView: String,
|
|
86
|
+
date: Date,
|
|
87
|
+
rtl: Boolean,
|
|
88
|
+
height: {
|
|
89
|
+
type: [Number, String],
|
|
90
|
+
default: 600
|
|
91
|
+
},
|
|
92
|
+
timezone: String,
|
|
93
|
+
group: Object,
|
|
94
|
+
resources: [Object, Array],
|
|
95
|
+
modelFields: Object,
|
|
96
|
+
tabIndex: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: -1
|
|
99
|
+
},
|
|
100
|
+
editable: {
|
|
101
|
+
type: [Boolean, Object],
|
|
102
|
+
default: false
|
|
103
|
+
},
|
|
104
|
+
defaultDate: {
|
|
105
|
+
type: Date,
|
|
106
|
+
default: new Date()
|
|
107
|
+
},
|
|
108
|
+
header: [String, Function, Object],
|
|
109
|
+
footer: [String, Function, Object]
|
|
110
|
+
},
|
|
111
|
+
computed: {
|
|
112
|
+
wrapperClassName: function wrapperClassName() {
|
|
113
|
+
return {
|
|
114
|
+
'k-rtl': this.$props.rtl !== undefined ? this.$props.rtl : this.dir === 'rtl',
|
|
115
|
+
'k-widget': true,
|
|
116
|
+
'k-scheduler': true,
|
|
117
|
+
'k-scheduler-flex': true,
|
|
118
|
+
'k-floatwrap': true
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
fields: function fields() {
|
|
122
|
+
return getModelFields(this.$props.modelFields).fields;
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
provide: function provide() {
|
|
126
|
+
return {
|
|
127
|
+
ks: this.ks,
|
|
128
|
+
setActiveViewName: this.handleActiveViewNameChange,
|
|
129
|
+
setActiveDate: this.handleDateChange
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
data: function data() {
|
|
133
|
+
this.intl = provideIntlService(this);
|
|
134
|
+
this.localization = provideLocalizationService(this);
|
|
135
|
+
var currentDate = this.$props.date || this.$props.defaultDate;
|
|
136
|
+
var activeViewName = this.$props.view || this.$props.defaultView || this.views[0] && this.views[0].name || 'day';
|
|
137
|
+
var view = this.views.find(function (currentView) {
|
|
138
|
+
return currentView.name === activeViewName;
|
|
139
|
+
}) || this.views[0] || h(DayView);
|
|
140
|
+
var dateFormat = this.getViewPropValue(view, 'selectedDateFormat', activeViewName) || DEFAULT_DATE_FORMAT;
|
|
141
|
+
var shortDateFormat = this.getViewPropValue(view, 'selectedShortDateFormat', activeViewName) || DEFAULT_SHORT_DATE_FORMAT;
|
|
142
|
+
var dateRange = this.getViewComponentByName(activeViewName).props.dateRange.default()({
|
|
143
|
+
intl: this.intl,
|
|
144
|
+
date: currentDate,
|
|
145
|
+
timezone: this.$props.timezone,
|
|
146
|
+
numberOfDays: this.getViewPropValue(view, 'numberOfDays', activeViewName),
|
|
147
|
+
workWeekStart: view.workWeekStart || this.intl.firstDay(),
|
|
148
|
+
workWeekEnd: view.workWeekEnd || (this.intl.firstDay() + this.getViewPropValue(view, 'numberOfDays', activeViewName)) % 6
|
|
149
|
+
});
|
|
150
|
+
return {
|
|
151
|
+
ks: {
|
|
152
|
+
activeViewName: activeViewName,
|
|
153
|
+
currentDate: currentDate,
|
|
154
|
+
showWorkHours: true,
|
|
155
|
+
timezone: this.$props.timezone,
|
|
156
|
+
props: this.$props,
|
|
157
|
+
views: this.views,
|
|
158
|
+
view: view,
|
|
159
|
+
fields: getModelFields(this.$props.modelFields).fields,
|
|
160
|
+
groups: toSchedulerGroups(this.$props.group, this.$props.resources),
|
|
161
|
+
dateRange: dateRange,
|
|
162
|
+
orientation: this.$props.group && this.$props.group.orientation ? this.$props.group.orientation : 'horizontal',
|
|
163
|
+
dateFormat: dateFormat,
|
|
164
|
+
shortDateFormat: shortDateFormat,
|
|
165
|
+
scheduler: null,
|
|
166
|
+
// State
|
|
167
|
+
// date: [currentDate, this.handleDateChange],
|
|
168
|
+
// Reducers
|
|
169
|
+
dataItems: this.dataItems // , this.handleDataAction]
|
|
170
|
+
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
mounted: function mounted() {
|
|
175
|
+
this.ks.scheduler = this.$el;
|
|
176
|
+
},
|
|
177
|
+
// @ts-ignore
|
|
178
|
+
setup: !gh ? undefined : function () {
|
|
179
|
+
var v3 = !!gh;
|
|
180
|
+
return {
|
|
181
|
+
v3: v3
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
// @ts-ignore
|
|
185
|
+
render: function render(createElement) {
|
|
186
|
+
var _this2 = this;
|
|
187
|
+
|
|
188
|
+
var _this = this;
|
|
189
|
+
|
|
190
|
+
var h = gh || createElement;
|
|
191
|
+
validatePackage(packageMetadata);
|
|
192
|
+
var timezone = this.$props.timezone; // const dir = useDir(element);
|
|
193
|
+
|
|
194
|
+
var view = this.views.find(function (currentView) {
|
|
195
|
+
return currentView.name === _this.ks.activeViewName;
|
|
196
|
+
}) || this.views[0] || h(DayView);
|
|
197
|
+
var slotDuration = this.getViewPropValue(this.ks.view, 'slotDuration', this.ks.activeViewName);
|
|
198
|
+
var todayText = this.localization.toLanguageString(today, messages[today]);
|
|
199
|
+
var previousText = this.localization.toLanguageString(previousTitle, messages[previousTitle]);
|
|
200
|
+
var nextText = this.localization.toLanguageString(nextTitle, messages[nextTitle]);
|
|
201
|
+
var heaeder = templateRendering.call(this, view.header || this.$props.header, getListeners.call(this));
|
|
202
|
+
var footer = templateRendering.call(this, view.footer || this.$props.footer, getListeners.call(this));
|
|
203
|
+
var ViewSelector = SchedulerViewSelector;
|
|
204
|
+
var viewComponent = this.getViewComponentByName(this.ks.activeViewName || view.name);
|
|
205
|
+
|
|
206
|
+
var viewProps = __assign(__assign({
|
|
207
|
+
key: view.name
|
|
208
|
+
}, this.$props), {
|
|
209
|
+
dataItems: undefined,
|
|
210
|
+
dateRange: this.ks.dateRange
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
return h("div", {
|
|
214
|
+
id: this.$props.id,
|
|
215
|
+
attrs: this.v3 ? undefined : {
|
|
216
|
+
id: this.$props.id,
|
|
217
|
+
tabIndex: this.$props.tabIndex // Aria
|
|
218
|
+
// dir={dir}
|
|
219
|
+
,
|
|
220
|
+
role: this.$props.role,
|
|
221
|
+
"aria-label": this.$props.ariaLabel,
|
|
222
|
+
"aria-labelledby": this.$props.ariaLabelledby // Handlers
|
|
223
|
+
|
|
224
|
+
},
|
|
225
|
+
style: {
|
|
226
|
+
height: this.$props.height + 'px'
|
|
227
|
+
},
|
|
228
|
+
"class": this.wrapperClassName,
|
|
229
|
+
tabIndex: this.$props.tabIndex,
|
|
230
|
+
role: this.$props.role,
|
|
231
|
+
"aria-label": this.$props.ariaLabel,
|
|
232
|
+
"aria-labelledby": this.$props.ariaLabelledby,
|
|
233
|
+
onFocusin: this.handleFocus,
|
|
234
|
+
on: this.v3 ? undefined : {
|
|
235
|
+
"focusin": this.handleFocus,
|
|
236
|
+
"focusout": this.handleBlur
|
|
237
|
+
},
|
|
238
|
+
onFocusout: this.handleBlur
|
|
239
|
+
}, [// @ts-ignore function children
|
|
240
|
+
h(SchedulerHeader, this.v3 ? function () {
|
|
241
|
+
return [// @ts-ignore function children
|
|
242
|
+
h(SchedulerNavigation, _this2.v3 ? function () {
|
|
243
|
+
return [// @ts-ignore function children
|
|
244
|
+
h(ButtonGroup, {
|
|
245
|
+
"class": "k-scheduler-navigation"
|
|
246
|
+
}, _this2.v3 ? function () {
|
|
247
|
+
return [// @ts-ignore function children
|
|
248
|
+
h(Button, {
|
|
249
|
+
role: "button",
|
|
250
|
+
attrs: _this2.v3 ? undefined : {
|
|
251
|
+
role: "button",
|
|
252
|
+
tabIndex: -1,
|
|
253
|
+
title: todayText,
|
|
254
|
+
"aria-label": todayText
|
|
255
|
+
},
|
|
256
|
+
tabIndex: -1,
|
|
257
|
+
title: todayText,
|
|
258
|
+
"aria-label": todayText,
|
|
259
|
+
onClick: _this2.handleTodayClick,
|
|
260
|
+
on: _this2.v3 ? undefined : {
|
|
261
|
+
"click": _this2.handleTodayClick
|
|
262
|
+
}
|
|
263
|
+
}, _this2.v3 ? function () {
|
|
264
|
+
return [todayText];
|
|
265
|
+
} : [todayText]), // @ts-ignore function children
|
|
266
|
+
h(Button, {
|
|
267
|
+
role: "button",
|
|
268
|
+
attrs: _this2.v3 ? undefined : {
|
|
269
|
+
role: "button",
|
|
270
|
+
tabIndex: -1,
|
|
271
|
+
title: previousText,
|
|
272
|
+
"aria-label": previousText
|
|
273
|
+
},
|
|
274
|
+
tabIndex: -1,
|
|
275
|
+
"class": "k-button-icon",
|
|
276
|
+
title: previousText,
|
|
277
|
+
"aria-label": previousText,
|
|
278
|
+
onClick: _this2.handlePrevClick,
|
|
279
|
+
on: _this2.v3 ? undefined : {
|
|
280
|
+
"click": _this2.handlePrevClick
|
|
281
|
+
}
|
|
282
|
+
}, _this2.v3 ? function () {
|
|
283
|
+
return [h("span", {
|
|
284
|
+
"class": "k-button-text"
|
|
285
|
+
}, [h("span", {
|
|
286
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
287
|
+
})])];
|
|
288
|
+
} : [h("span", {
|
|
289
|
+
"class": "k-button-text"
|
|
290
|
+
}, [h("span", {
|
|
291
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
292
|
+
})])]), // @ts-ignore function children
|
|
293
|
+
h(Button, {
|
|
294
|
+
role: "button",
|
|
295
|
+
attrs: _this2.v3 ? undefined : {
|
|
296
|
+
role: "button",
|
|
297
|
+
tabIndex: -1,
|
|
298
|
+
title: nextText,
|
|
299
|
+
"aria-label": nextText
|
|
300
|
+
},
|
|
301
|
+
tabIndex: -1,
|
|
302
|
+
"class": "k-button-icon",
|
|
303
|
+
title: nextText,
|
|
304
|
+
"aria-label": nextText,
|
|
305
|
+
onClick: _this2.handleNextClick,
|
|
306
|
+
on: _this2.v3 ? undefined : {
|
|
307
|
+
"click": _this2.handleNextClick
|
|
308
|
+
}
|
|
309
|
+
}, _this2.v3 ? function () {
|
|
310
|
+
return [h("span", {
|
|
311
|
+
"class": "k-button-text"
|
|
312
|
+
}, [h("span", {
|
|
313
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
314
|
+
})])];
|
|
315
|
+
} : [h("span", {
|
|
316
|
+
"class": "k-button-text"
|
|
317
|
+
}, [h("span", {
|
|
318
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
319
|
+
})])])];
|
|
320
|
+
} : [h(Button, {
|
|
321
|
+
role: "button",
|
|
322
|
+
attrs: _this2.v3 ? undefined : {
|
|
323
|
+
role: "button",
|
|
324
|
+
tabIndex: -1,
|
|
325
|
+
title: todayText,
|
|
326
|
+
"aria-label": todayText
|
|
327
|
+
},
|
|
328
|
+
tabIndex: -1,
|
|
329
|
+
title: todayText,
|
|
330
|
+
"aria-label": todayText,
|
|
331
|
+
onClick: _this2.handleTodayClick,
|
|
332
|
+
on: _this2.v3 ? undefined : {
|
|
333
|
+
"click": _this2.handleTodayClick
|
|
334
|
+
}
|
|
335
|
+
}, _this2.v3 ? function () {
|
|
336
|
+
return [todayText];
|
|
337
|
+
} : [todayText]), h(Button, {
|
|
338
|
+
role: "button",
|
|
339
|
+
attrs: _this2.v3 ? undefined : {
|
|
340
|
+
role: "button",
|
|
341
|
+
tabIndex: -1,
|
|
342
|
+
title: previousText,
|
|
343
|
+
"aria-label": previousText
|
|
344
|
+
},
|
|
345
|
+
tabIndex: -1,
|
|
346
|
+
"class": "k-button-icon",
|
|
347
|
+
title: previousText,
|
|
348
|
+
"aria-label": previousText,
|
|
349
|
+
onClick: _this2.handlePrevClick,
|
|
350
|
+
on: _this2.v3 ? undefined : {
|
|
351
|
+
"click": _this2.handlePrevClick
|
|
352
|
+
}
|
|
353
|
+
}, _this2.v3 ? function () {
|
|
354
|
+
return [h("span", {
|
|
355
|
+
"class": "k-button-text"
|
|
356
|
+
}, [h("span", {
|
|
357
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
358
|
+
})])];
|
|
359
|
+
} : [h("span", {
|
|
360
|
+
"class": "k-button-text"
|
|
361
|
+
}, [h("span", {
|
|
362
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
363
|
+
})])]), h(Button, {
|
|
364
|
+
role: "button",
|
|
365
|
+
attrs: _this2.v3 ? undefined : {
|
|
366
|
+
role: "button",
|
|
367
|
+
tabIndex: -1,
|
|
368
|
+
title: nextText,
|
|
369
|
+
"aria-label": nextText
|
|
370
|
+
},
|
|
371
|
+
tabIndex: -1,
|
|
372
|
+
"class": "k-button-icon",
|
|
373
|
+
title: nextText,
|
|
374
|
+
"aria-label": nextText,
|
|
375
|
+
onClick: _this2.handleNextClick,
|
|
376
|
+
on: _this2.v3 ? undefined : {
|
|
377
|
+
"click": _this2.handleNextClick
|
|
378
|
+
}
|
|
379
|
+
}, _this2.v3 ? function () {
|
|
380
|
+
return [h("span", {
|
|
381
|
+
"class": "k-button-text"
|
|
382
|
+
}, [h("span", {
|
|
383
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
384
|
+
})])];
|
|
385
|
+
} : [h("span", {
|
|
386
|
+
"class": "k-button-text"
|
|
387
|
+
}, [h("span", {
|
|
388
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
389
|
+
})])])])];
|
|
390
|
+
} : [h(ButtonGroup, {
|
|
391
|
+
"class": "k-scheduler-navigation"
|
|
392
|
+
}, _this2.v3 ? function () {
|
|
393
|
+
return [h(Button, {
|
|
394
|
+
role: "button",
|
|
395
|
+
attrs: _this2.v3 ? undefined : {
|
|
396
|
+
role: "button",
|
|
397
|
+
tabIndex: -1,
|
|
398
|
+
title: todayText,
|
|
399
|
+
"aria-label": todayText
|
|
400
|
+
},
|
|
401
|
+
tabIndex: -1,
|
|
402
|
+
title: todayText,
|
|
403
|
+
"aria-label": todayText,
|
|
404
|
+
onClick: _this2.handleTodayClick,
|
|
405
|
+
on: _this2.v3 ? undefined : {
|
|
406
|
+
"click": _this2.handleTodayClick
|
|
407
|
+
}
|
|
408
|
+
}, _this2.v3 ? function () {
|
|
409
|
+
return [todayText];
|
|
410
|
+
} : [todayText]), h(Button, {
|
|
411
|
+
role: "button",
|
|
412
|
+
attrs: _this2.v3 ? undefined : {
|
|
413
|
+
role: "button",
|
|
414
|
+
tabIndex: -1,
|
|
415
|
+
title: previousText,
|
|
416
|
+
"aria-label": previousText
|
|
417
|
+
},
|
|
418
|
+
tabIndex: -1,
|
|
419
|
+
"class": "k-button-icon",
|
|
420
|
+
title: previousText,
|
|
421
|
+
"aria-label": previousText,
|
|
422
|
+
onClick: _this2.handlePrevClick,
|
|
423
|
+
on: _this2.v3 ? undefined : {
|
|
424
|
+
"click": _this2.handlePrevClick
|
|
425
|
+
}
|
|
426
|
+
}, _this2.v3 ? function () {
|
|
427
|
+
return [h("span", {
|
|
428
|
+
"class": "k-button-text"
|
|
429
|
+
}, [h("span", {
|
|
430
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
431
|
+
})])];
|
|
432
|
+
} : [h("span", {
|
|
433
|
+
"class": "k-button-text"
|
|
434
|
+
}, [h("span", {
|
|
435
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
436
|
+
})])]), h(Button, {
|
|
437
|
+
role: "button",
|
|
438
|
+
attrs: _this2.v3 ? undefined : {
|
|
439
|
+
role: "button",
|
|
440
|
+
tabIndex: -1,
|
|
441
|
+
title: nextText,
|
|
442
|
+
"aria-label": nextText
|
|
443
|
+
},
|
|
444
|
+
tabIndex: -1,
|
|
445
|
+
"class": "k-button-icon",
|
|
446
|
+
title: nextText,
|
|
447
|
+
"aria-label": nextText,
|
|
448
|
+
onClick: _this2.handleNextClick,
|
|
449
|
+
on: _this2.v3 ? undefined : {
|
|
450
|
+
"click": _this2.handleNextClick
|
|
451
|
+
}
|
|
452
|
+
}, _this2.v3 ? function () {
|
|
453
|
+
return [h("span", {
|
|
454
|
+
"class": "k-button-text"
|
|
455
|
+
}, [h("span", {
|
|
456
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
457
|
+
})])];
|
|
458
|
+
} : [h("span", {
|
|
459
|
+
"class": "k-button-text"
|
|
460
|
+
}, [h("span", {
|
|
461
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
462
|
+
})])])];
|
|
463
|
+
} : [h(Button, {
|
|
464
|
+
role: "button",
|
|
465
|
+
attrs: _this2.v3 ? undefined : {
|
|
466
|
+
role: "button",
|
|
467
|
+
tabIndex: -1,
|
|
468
|
+
title: todayText,
|
|
469
|
+
"aria-label": todayText
|
|
470
|
+
},
|
|
471
|
+
tabIndex: -1,
|
|
472
|
+
title: todayText,
|
|
473
|
+
"aria-label": todayText,
|
|
474
|
+
onClick: _this2.handleTodayClick,
|
|
475
|
+
on: _this2.v3 ? undefined : {
|
|
476
|
+
"click": _this2.handleTodayClick
|
|
477
|
+
}
|
|
478
|
+
}, _this2.v3 ? function () {
|
|
479
|
+
return [todayText];
|
|
480
|
+
} : [todayText]), h(Button, {
|
|
481
|
+
role: "button",
|
|
482
|
+
attrs: _this2.v3 ? undefined : {
|
|
483
|
+
role: "button",
|
|
484
|
+
tabIndex: -1,
|
|
485
|
+
title: previousText,
|
|
486
|
+
"aria-label": previousText
|
|
487
|
+
},
|
|
488
|
+
tabIndex: -1,
|
|
489
|
+
"class": "k-button-icon",
|
|
490
|
+
title: previousText,
|
|
491
|
+
"aria-label": previousText,
|
|
492
|
+
onClick: _this2.handlePrevClick,
|
|
493
|
+
on: _this2.v3 ? undefined : {
|
|
494
|
+
"click": _this2.handlePrevClick
|
|
495
|
+
}
|
|
496
|
+
}, _this2.v3 ? function () {
|
|
497
|
+
return [h("span", {
|
|
498
|
+
"class": "k-button-text"
|
|
499
|
+
}, [h("span", {
|
|
500
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
501
|
+
})])];
|
|
502
|
+
} : [h("span", {
|
|
503
|
+
"class": "k-button-text"
|
|
504
|
+
}, [h("span", {
|
|
505
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
506
|
+
})])]), h(Button, {
|
|
507
|
+
role: "button",
|
|
508
|
+
attrs: _this2.v3 ? undefined : {
|
|
509
|
+
role: "button",
|
|
510
|
+
tabIndex: -1,
|
|
511
|
+
title: nextText,
|
|
512
|
+
"aria-label": nextText
|
|
513
|
+
},
|
|
514
|
+
tabIndex: -1,
|
|
515
|
+
"class": "k-button-icon",
|
|
516
|
+
title: nextText,
|
|
517
|
+
"aria-label": nextText,
|
|
518
|
+
onClick: _this2.handleNextClick,
|
|
519
|
+
on: _this2.v3 ? undefined : {
|
|
520
|
+
"click": _this2.handleNextClick
|
|
521
|
+
}
|
|
522
|
+
}, _this2.v3 ? function () {
|
|
523
|
+
return [h("span", {
|
|
524
|
+
"class": "k-button-text"
|
|
525
|
+
}, [h("span", {
|
|
526
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
527
|
+
})])];
|
|
528
|
+
} : [h("span", {
|
|
529
|
+
"class": "k-button-text"
|
|
530
|
+
}, [h("span", {
|
|
531
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
532
|
+
})])])])]), h(NavigationDatePicker, {
|
|
533
|
+
value: _this2.ks.currentDate,
|
|
534
|
+
attrs: _this2.v3 ? undefined : {
|
|
535
|
+
value: _this2.ks.currentDate
|
|
536
|
+
},
|
|
537
|
+
onChange: _this2.handleDatePickerChange,
|
|
538
|
+
on: _this2.v3 ? undefined : {
|
|
539
|
+
"change": _this2.handleDatePickerChange
|
|
540
|
+
}
|
|
541
|
+
}), h(ToolbarSpacer), // @ts-ignore function children
|
|
542
|
+
h(ViewSelector, _this2.v3 ? function () {
|
|
543
|
+
return [h(ViewSelectorList)];
|
|
544
|
+
} : [h(ViewSelectorList)])];
|
|
545
|
+
} : [h(SchedulerNavigation, _this2.v3 ? function () {
|
|
546
|
+
return [h(ButtonGroup, {
|
|
547
|
+
"class": "k-scheduler-navigation"
|
|
548
|
+
}, _this2.v3 ? function () {
|
|
549
|
+
return [h(Button, {
|
|
550
|
+
role: "button",
|
|
551
|
+
attrs: _this2.v3 ? undefined : {
|
|
552
|
+
role: "button",
|
|
553
|
+
tabIndex: -1,
|
|
554
|
+
title: todayText,
|
|
555
|
+
"aria-label": todayText
|
|
556
|
+
},
|
|
557
|
+
tabIndex: -1,
|
|
558
|
+
title: todayText,
|
|
559
|
+
"aria-label": todayText,
|
|
560
|
+
onClick: _this2.handleTodayClick,
|
|
561
|
+
on: _this2.v3 ? undefined : {
|
|
562
|
+
"click": _this2.handleTodayClick
|
|
563
|
+
}
|
|
564
|
+
}, _this2.v3 ? function () {
|
|
565
|
+
return [todayText];
|
|
566
|
+
} : [todayText]), h(Button, {
|
|
567
|
+
role: "button",
|
|
568
|
+
attrs: _this2.v3 ? undefined : {
|
|
569
|
+
role: "button",
|
|
570
|
+
tabIndex: -1,
|
|
571
|
+
title: previousText,
|
|
572
|
+
"aria-label": previousText
|
|
573
|
+
},
|
|
574
|
+
tabIndex: -1,
|
|
575
|
+
"class": "k-button-icon",
|
|
576
|
+
title: previousText,
|
|
577
|
+
"aria-label": previousText,
|
|
578
|
+
onClick: _this2.handlePrevClick,
|
|
579
|
+
on: _this2.v3 ? undefined : {
|
|
580
|
+
"click": _this2.handlePrevClick
|
|
581
|
+
}
|
|
582
|
+
}, _this2.v3 ? function () {
|
|
583
|
+
return [h("span", {
|
|
584
|
+
"class": "k-button-text"
|
|
585
|
+
}, [h("span", {
|
|
586
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
587
|
+
})])];
|
|
588
|
+
} : [h("span", {
|
|
589
|
+
"class": "k-button-text"
|
|
590
|
+
}, [h("span", {
|
|
591
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
592
|
+
})])]), h(Button, {
|
|
593
|
+
role: "button",
|
|
594
|
+
attrs: _this2.v3 ? undefined : {
|
|
595
|
+
role: "button",
|
|
596
|
+
tabIndex: -1,
|
|
597
|
+
title: nextText,
|
|
598
|
+
"aria-label": nextText
|
|
599
|
+
},
|
|
600
|
+
tabIndex: -1,
|
|
601
|
+
"class": "k-button-icon",
|
|
602
|
+
title: nextText,
|
|
603
|
+
"aria-label": nextText,
|
|
604
|
+
onClick: _this2.handleNextClick,
|
|
605
|
+
on: _this2.v3 ? undefined : {
|
|
606
|
+
"click": _this2.handleNextClick
|
|
607
|
+
}
|
|
608
|
+
}, _this2.v3 ? function () {
|
|
609
|
+
return [h("span", {
|
|
610
|
+
"class": "k-button-text"
|
|
611
|
+
}, [h("span", {
|
|
612
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
613
|
+
})])];
|
|
614
|
+
} : [h("span", {
|
|
615
|
+
"class": "k-button-text"
|
|
616
|
+
}, [h("span", {
|
|
617
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
618
|
+
})])])];
|
|
619
|
+
} : [h(Button, {
|
|
620
|
+
role: "button",
|
|
621
|
+
attrs: _this2.v3 ? undefined : {
|
|
622
|
+
role: "button",
|
|
623
|
+
tabIndex: -1,
|
|
624
|
+
title: todayText,
|
|
625
|
+
"aria-label": todayText
|
|
626
|
+
},
|
|
627
|
+
tabIndex: -1,
|
|
628
|
+
title: todayText,
|
|
629
|
+
"aria-label": todayText,
|
|
630
|
+
onClick: _this2.handleTodayClick,
|
|
631
|
+
on: _this2.v3 ? undefined : {
|
|
632
|
+
"click": _this2.handleTodayClick
|
|
633
|
+
}
|
|
634
|
+
}, _this2.v3 ? function () {
|
|
635
|
+
return [todayText];
|
|
636
|
+
} : [todayText]), h(Button, {
|
|
637
|
+
role: "button",
|
|
638
|
+
attrs: _this2.v3 ? undefined : {
|
|
639
|
+
role: "button",
|
|
640
|
+
tabIndex: -1,
|
|
641
|
+
title: previousText,
|
|
642
|
+
"aria-label": previousText
|
|
643
|
+
},
|
|
644
|
+
tabIndex: -1,
|
|
645
|
+
"class": "k-button-icon",
|
|
646
|
+
title: previousText,
|
|
647
|
+
"aria-label": previousText,
|
|
648
|
+
onClick: _this2.handlePrevClick,
|
|
649
|
+
on: _this2.v3 ? undefined : {
|
|
650
|
+
"click": _this2.handlePrevClick
|
|
651
|
+
}
|
|
652
|
+
}, _this2.v3 ? function () {
|
|
653
|
+
return [h("span", {
|
|
654
|
+
"class": "k-button-text"
|
|
655
|
+
}, [h("span", {
|
|
656
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
657
|
+
})])];
|
|
658
|
+
} : [h("span", {
|
|
659
|
+
"class": "k-button-text"
|
|
660
|
+
}, [h("span", {
|
|
661
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
662
|
+
})])]), h(Button, {
|
|
663
|
+
role: "button",
|
|
664
|
+
attrs: _this2.v3 ? undefined : {
|
|
665
|
+
role: "button",
|
|
666
|
+
tabIndex: -1,
|
|
667
|
+
title: nextText,
|
|
668
|
+
"aria-label": nextText
|
|
669
|
+
},
|
|
670
|
+
tabIndex: -1,
|
|
671
|
+
"class": "k-button-icon",
|
|
672
|
+
title: nextText,
|
|
673
|
+
"aria-label": nextText,
|
|
674
|
+
onClick: _this2.handleNextClick,
|
|
675
|
+
on: _this2.v3 ? undefined : {
|
|
676
|
+
"click": _this2.handleNextClick
|
|
677
|
+
}
|
|
678
|
+
}, _this2.v3 ? function () {
|
|
679
|
+
return [h("span", {
|
|
680
|
+
"class": "k-button-text"
|
|
681
|
+
}, [h("span", {
|
|
682
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
683
|
+
})])];
|
|
684
|
+
} : [h("span", {
|
|
685
|
+
"class": "k-button-text"
|
|
686
|
+
}, [h("span", {
|
|
687
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
688
|
+
})])])])];
|
|
689
|
+
} : [h(ButtonGroup, {
|
|
690
|
+
"class": "k-scheduler-navigation"
|
|
691
|
+
}, _this2.v3 ? function () {
|
|
692
|
+
return [h(Button, {
|
|
693
|
+
role: "button",
|
|
694
|
+
attrs: _this2.v3 ? undefined : {
|
|
695
|
+
role: "button",
|
|
696
|
+
tabIndex: -1,
|
|
697
|
+
title: todayText,
|
|
698
|
+
"aria-label": todayText
|
|
699
|
+
},
|
|
700
|
+
tabIndex: -1,
|
|
701
|
+
title: todayText,
|
|
702
|
+
"aria-label": todayText,
|
|
703
|
+
onClick: _this2.handleTodayClick,
|
|
704
|
+
on: _this2.v3 ? undefined : {
|
|
705
|
+
"click": _this2.handleTodayClick
|
|
706
|
+
}
|
|
707
|
+
}, _this2.v3 ? function () {
|
|
708
|
+
return [todayText];
|
|
709
|
+
} : [todayText]), h(Button, {
|
|
710
|
+
role: "button",
|
|
711
|
+
attrs: _this2.v3 ? undefined : {
|
|
712
|
+
role: "button",
|
|
713
|
+
tabIndex: -1,
|
|
714
|
+
title: previousText,
|
|
715
|
+
"aria-label": previousText
|
|
716
|
+
},
|
|
717
|
+
tabIndex: -1,
|
|
718
|
+
"class": "k-button-icon",
|
|
719
|
+
title: previousText,
|
|
720
|
+
"aria-label": previousText,
|
|
721
|
+
onClick: _this2.handlePrevClick,
|
|
722
|
+
on: _this2.v3 ? undefined : {
|
|
723
|
+
"click": _this2.handlePrevClick
|
|
724
|
+
}
|
|
725
|
+
}, _this2.v3 ? function () {
|
|
726
|
+
return [h("span", {
|
|
727
|
+
"class": "k-button-text"
|
|
728
|
+
}, [h("span", {
|
|
729
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
730
|
+
})])];
|
|
731
|
+
} : [h("span", {
|
|
732
|
+
"class": "k-button-text"
|
|
733
|
+
}, [h("span", {
|
|
734
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
735
|
+
})])]), h(Button, {
|
|
736
|
+
role: "button",
|
|
737
|
+
attrs: _this2.v3 ? undefined : {
|
|
738
|
+
role: "button",
|
|
739
|
+
tabIndex: -1,
|
|
740
|
+
title: nextText,
|
|
741
|
+
"aria-label": nextText
|
|
742
|
+
},
|
|
743
|
+
tabIndex: -1,
|
|
744
|
+
"class": "k-button-icon",
|
|
745
|
+
title: nextText,
|
|
746
|
+
"aria-label": nextText,
|
|
747
|
+
onClick: _this2.handleNextClick,
|
|
748
|
+
on: _this2.v3 ? undefined : {
|
|
749
|
+
"click": _this2.handleNextClick
|
|
750
|
+
}
|
|
751
|
+
}, _this2.v3 ? function () {
|
|
752
|
+
return [h("span", {
|
|
753
|
+
"class": "k-button-text"
|
|
754
|
+
}, [h("span", {
|
|
755
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
756
|
+
})])];
|
|
757
|
+
} : [h("span", {
|
|
758
|
+
"class": "k-button-text"
|
|
759
|
+
}, [h("span", {
|
|
760
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
761
|
+
})])])];
|
|
762
|
+
} : [h(Button, {
|
|
763
|
+
role: "button",
|
|
764
|
+
attrs: _this2.v3 ? undefined : {
|
|
765
|
+
role: "button",
|
|
766
|
+
tabIndex: -1,
|
|
767
|
+
title: todayText,
|
|
768
|
+
"aria-label": todayText
|
|
769
|
+
},
|
|
770
|
+
tabIndex: -1,
|
|
771
|
+
title: todayText,
|
|
772
|
+
"aria-label": todayText,
|
|
773
|
+
onClick: _this2.handleTodayClick,
|
|
774
|
+
on: _this2.v3 ? undefined : {
|
|
775
|
+
"click": _this2.handleTodayClick
|
|
776
|
+
}
|
|
777
|
+
}, _this2.v3 ? function () {
|
|
778
|
+
return [todayText];
|
|
779
|
+
} : [todayText]), h(Button, {
|
|
780
|
+
role: "button",
|
|
781
|
+
attrs: _this2.v3 ? undefined : {
|
|
782
|
+
role: "button",
|
|
783
|
+
tabIndex: -1,
|
|
784
|
+
title: previousText,
|
|
785
|
+
"aria-label": previousText
|
|
786
|
+
},
|
|
787
|
+
tabIndex: -1,
|
|
788
|
+
"class": "k-button-icon",
|
|
789
|
+
title: previousText,
|
|
790
|
+
"aria-label": previousText,
|
|
791
|
+
onClick: _this2.handlePrevClick,
|
|
792
|
+
on: _this2.v3 ? undefined : {
|
|
793
|
+
"click": _this2.handlePrevClick
|
|
794
|
+
}
|
|
795
|
+
}, _this2.v3 ? function () {
|
|
796
|
+
return [h("span", {
|
|
797
|
+
"class": "k-button-text"
|
|
798
|
+
}, [h("span", {
|
|
799
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
800
|
+
})])];
|
|
801
|
+
} : [h("span", {
|
|
802
|
+
"class": "k-button-text"
|
|
803
|
+
}, [h("span", {
|
|
804
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
805
|
+
})])]), h(Button, {
|
|
806
|
+
role: "button",
|
|
807
|
+
attrs: _this2.v3 ? undefined : {
|
|
808
|
+
role: "button",
|
|
809
|
+
tabIndex: -1,
|
|
810
|
+
title: nextText,
|
|
811
|
+
"aria-label": nextText
|
|
812
|
+
},
|
|
813
|
+
tabIndex: -1,
|
|
814
|
+
"class": "k-button-icon",
|
|
815
|
+
title: nextText,
|
|
816
|
+
"aria-label": nextText,
|
|
817
|
+
onClick: _this2.handleNextClick,
|
|
818
|
+
on: _this2.v3 ? undefined : {
|
|
819
|
+
"click": _this2.handleNextClick
|
|
820
|
+
}
|
|
821
|
+
}, _this2.v3 ? function () {
|
|
822
|
+
return [h("span", {
|
|
823
|
+
"class": "k-button-text"
|
|
824
|
+
}, [h("span", {
|
|
825
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
826
|
+
})])];
|
|
827
|
+
} : [h("span", {
|
|
828
|
+
"class": "k-button-text"
|
|
829
|
+
}, [h("span", {
|
|
830
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
831
|
+
})])])])]), h(NavigationDatePicker, {
|
|
832
|
+
value: _this2.ks.currentDate,
|
|
833
|
+
attrs: _this2.v3 ? undefined : {
|
|
834
|
+
value: _this2.ks.currentDate
|
|
835
|
+
},
|
|
836
|
+
onChange: _this2.handleDatePickerChange,
|
|
837
|
+
on: _this2.v3 ? undefined : {
|
|
838
|
+
"change": _this2.handleDatePickerChange
|
|
839
|
+
}
|
|
840
|
+
}), h(ToolbarSpacer), h(ViewSelector, _this2.v3 ? function () {
|
|
841
|
+
return [h(ViewSelectorList)];
|
|
842
|
+
} : [h(ViewSelectorList)])]), view && h(viewComponent, __assign({
|
|
843
|
+
onDataaction: this.handleDataAction,
|
|
844
|
+
on: this.v3 ? undefined : {
|
|
845
|
+
'dataaction': this.handleDataAction
|
|
846
|
+
},
|
|
847
|
+
attrs: this.v3 ? undefined : viewProps
|
|
848
|
+
}, viewProps)), // @ts-ignore function children
|
|
849
|
+
h(SchedulerFooter, this.v3 ? function () {
|
|
850
|
+
return [slotDuration && slotDuration < 24 * 60 && // @ts-ignore function children
|
|
851
|
+
h(BusinessHours, _this2.v3 ? function () {
|
|
852
|
+
return [// @ts-ignore function children
|
|
853
|
+
h(Button, {
|
|
854
|
+
tabIndex: -1,
|
|
855
|
+
attrs: _this2.v3 ? undefined : {
|
|
856
|
+
tabIndex: -1
|
|
857
|
+
},
|
|
858
|
+
onClick: _this2.handleShowWorkHoursClick,
|
|
859
|
+
on: _this2.v3 ? undefined : {
|
|
860
|
+
"click": _this2.handleShowWorkHoursClick
|
|
861
|
+
}
|
|
862
|
+
}, _this2.v3 ? function () {
|
|
863
|
+
return [h("span", {
|
|
864
|
+
"class": "k-icon k-i-clock"
|
|
865
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
866
|
+
} : [h("span", {
|
|
867
|
+
"class": "k-icon k-i-clock"
|
|
868
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])];
|
|
869
|
+
} : [h(Button, {
|
|
870
|
+
tabIndex: -1,
|
|
871
|
+
attrs: _this2.v3 ? undefined : {
|
|
872
|
+
tabIndex: -1
|
|
873
|
+
},
|
|
874
|
+
onClick: _this2.handleShowWorkHoursClick,
|
|
875
|
+
on: _this2.v3 ? undefined : {
|
|
876
|
+
"click": _this2.handleShowWorkHoursClick
|
|
877
|
+
}
|
|
878
|
+
}, _this2.v3 ? function () {
|
|
879
|
+
return [h("span", {
|
|
880
|
+
"class": "k-icon k-i-clock"
|
|
881
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
882
|
+
} : [h("span", {
|
|
883
|
+
"class": "k-icon k-i-clock"
|
|
884
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])])];
|
|
885
|
+
} : [slotDuration && slotDuration < 24 * 60 && h(BusinessHours, _this2.v3 ? function () {
|
|
886
|
+
return [h(Button, {
|
|
887
|
+
tabIndex: -1,
|
|
888
|
+
attrs: _this2.v3 ? undefined : {
|
|
889
|
+
tabIndex: -1
|
|
890
|
+
},
|
|
891
|
+
onClick: _this2.handleShowWorkHoursClick,
|
|
892
|
+
on: _this2.v3 ? undefined : {
|
|
893
|
+
"click": _this2.handleShowWorkHoursClick
|
|
894
|
+
}
|
|
895
|
+
}, _this2.v3 ? function () {
|
|
896
|
+
return [h("span", {
|
|
897
|
+
"class": "k-icon k-i-clock"
|
|
898
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
899
|
+
} : [h("span", {
|
|
900
|
+
"class": "k-icon k-i-clock"
|
|
901
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])];
|
|
902
|
+
} : [h(Button, {
|
|
903
|
+
tabIndex: -1,
|
|
904
|
+
attrs: _this2.v3 ? undefined : {
|
|
905
|
+
tabIndex: -1
|
|
906
|
+
},
|
|
907
|
+
onClick: _this2.handleShowWorkHoursClick,
|
|
908
|
+
on: _this2.v3 ? undefined : {
|
|
909
|
+
"click": _this2.handleShowWorkHoursClick
|
|
910
|
+
}
|
|
911
|
+
}, _this2.v3 ? function () {
|
|
912
|
+
return [h("span", {
|
|
913
|
+
"class": "k-icon k-i-clock"
|
|
914
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
|
|
915
|
+
} : [h("span", {
|
|
916
|
+
"class": "k-icon k-i-clock"
|
|
917
|
+
}), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])])])]);
|
|
918
|
+
},
|
|
919
|
+
methods: {
|
|
920
|
+
getViewComponentByName: function getViewComponentByName(viewName) {
|
|
921
|
+
switch (viewName.toLowerCase()) {
|
|
922
|
+
case 'week':
|
|
923
|
+
return WeekView;
|
|
924
|
+
|
|
925
|
+
case 'workweek':
|
|
926
|
+
return WorkWeekView;
|
|
927
|
+
|
|
928
|
+
case 'agenda':
|
|
929
|
+
return AgendaView;
|
|
930
|
+
|
|
931
|
+
case 'timeline':
|
|
932
|
+
return TimelineView;
|
|
933
|
+
|
|
934
|
+
case 'month':
|
|
935
|
+
return MonthView;
|
|
936
|
+
|
|
937
|
+
default:
|
|
938
|
+
return DayView;
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
getViewPropValue: function getViewPropValue(view, propName, activeViewName) {
|
|
942
|
+
var componentProp = this.getViewComponentByName(activeViewName).props[propName];
|
|
943
|
+
return view[propName] || componentProp ? componentProp.default : undefined;
|
|
944
|
+
},
|
|
945
|
+
handleDataChange: function handleDataChange(_a) {
|
|
946
|
+
var _b = _a.created,
|
|
947
|
+
created = _b === void 0 ? [] : _b,
|
|
948
|
+
_c = _a.updated,
|
|
949
|
+
updated = _c === void 0 ? [] : _c,
|
|
950
|
+
_d = _a.deleted,
|
|
951
|
+
deleted = _d === void 0 ? [] : _d;
|
|
952
|
+
var args = {
|
|
953
|
+
created: created,
|
|
954
|
+
updated: updated,
|
|
955
|
+
deleted: deleted
|
|
956
|
+
};
|
|
957
|
+
this.$emit('datachange', args);
|
|
958
|
+
},
|
|
959
|
+
handleCreate: function handleCreate(action) {
|
|
960
|
+
var created = [action.dataItem];
|
|
961
|
+
this.handleDataChange({
|
|
962
|
+
created: created
|
|
963
|
+
});
|
|
964
|
+
},
|
|
965
|
+
handleUpdate: function handleUpdate(action) {
|
|
966
|
+
var _this = this;
|
|
967
|
+
|
|
968
|
+
var created = [];
|
|
969
|
+
var updated = [];
|
|
970
|
+
|
|
971
|
+
if (action.series) {
|
|
972
|
+
if (Array.isArray(action.dataItem)) {
|
|
973
|
+
action.dataItem.map(function (dataItem) {
|
|
974
|
+
var masterClone = clone(findMaster(action.dataItem, _this.fields, _this.dataItems));
|
|
975
|
+
var newDataItem = clone(dataItem);
|
|
976
|
+
setField(newDataItem, _this.fields.originalStart, getField(masterClone, _this.fields.originalStart));
|
|
977
|
+
setField(newDataItem, _this.fields.recurrenceId, getField(masterClone, _this.fields.recurrenceId));
|
|
978
|
+
setField(newDataItem, _this.fields.recurrenceExceptions, getField(masterClone, _this.fields.recurrenceExceptions));
|
|
979
|
+
updated.push(newDataItem);
|
|
980
|
+
});
|
|
981
|
+
} else {
|
|
982
|
+
var masterClone = clone(findMaster(action.dataItem, this.fields, this.dataItems));
|
|
983
|
+
var newDataItem = clone(action.dataItem);
|
|
984
|
+
setField(newDataItem, this.fields.originalStart, getField(masterClone, this.fields.originalStart));
|
|
985
|
+
setField(newDataItem, this.fields.recurrenceId, getField(masterClone, this.fields.recurrenceId));
|
|
986
|
+
setField(newDataItem, this.fields.recurrenceExceptions, getField(masterClone, this.fields.recurrenceExceptions));
|
|
987
|
+
updated.push(newDataItem);
|
|
988
|
+
}
|
|
989
|
+
} else {
|
|
990
|
+
if (Array.isArray(action.dataItem)) {
|
|
991
|
+
action.dataItem.map(function (dataItem) {
|
|
992
|
+
var isException = getField(dataItem, _this.fields.recurrenceRule) !== null && getField(dataItem, _this.fields.recurrenceRule) !== undefined;
|
|
993
|
+
var isRecurring = getField(dataItem, _this.fields.recurrenceId) !== null && getField(dataItem, _this.fields.recurrenceId) !== undefined;
|
|
994
|
+
|
|
995
|
+
if (isRecurring && isException) {
|
|
996
|
+
var masterClone = clone(findMaster(dataItem, _this.fields, _this.dataItems));
|
|
997
|
+
var exceptionDate = getField(dataItem, _this.fields.originalStart);
|
|
998
|
+
var currentExceptions = getField(masterClone, _this.fields.recurrenceExceptions) || [];
|
|
999
|
+
setField(masterClone, _this.fields.recurrenceExceptions, __spreadArrays(currentExceptions, [exceptionDate]));
|
|
1000
|
+
setField(dataItem, _this.fields.recurrenceRule, null);
|
|
1001
|
+
updated.push(masterClone);
|
|
1002
|
+
created.push(dataItem);
|
|
1003
|
+
} else {
|
|
1004
|
+
updated.push(dataItem);
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
} else {
|
|
1008
|
+
var isException = getField(action.dataItem, this.fields.recurrenceRule) !== null && getField(action.dataItem, this.fields.recurrenceRule) !== undefined;
|
|
1009
|
+
var isRecurring = getField(action.dataItem, this.fields.recurrenceId) !== null && getField(action.dataItem, this.fields.recurrenceId) !== undefined;
|
|
1010
|
+
|
|
1011
|
+
if (isRecurring && isException) {
|
|
1012
|
+
var masterClone = clone(findMaster(action.dataItem, this.fields, this.dataItems));
|
|
1013
|
+
var exceptionDate = getField(action.dataItem, this.fields.originalStart);
|
|
1014
|
+
var currentExceptions = getField(masterClone, this.fields.recurrenceExceptions) || [];
|
|
1015
|
+
setField(masterClone, this.fields.recurrenceExceptions, __spreadArrays(currentExceptions, [exceptionDate]));
|
|
1016
|
+
setField(action.dataItem, this.fields.recurrenceRule, null);
|
|
1017
|
+
updated.push(masterClone);
|
|
1018
|
+
created.push(action.dataItem);
|
|
1019
|
+
} else {
|
|
1020
|
+
updated.push(action.dataItem);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
this.handleDataChange({
|
|
1026
|
+
updated: updated,
|
|
1027
|
+
created: created
|
|
1028
|
+
});
|
|
1029
|
+
},
|
|
1030
|
+
handleRemove: function handleRemove(action) {
|
|
1031
|
+
var updated = [];
|
|
1032
|
+
var deleted = [];
|
|
1033
|
+
|
|
1034
|
+
if (action.series) {
|
|
1035
|
+
var masterClone = clone(findMaster(action.dataItem, this.fields, this.dataItems));
|
|
1036
|
+
var dataItem = clone(action.dataItem);
|
|
1037
|
+
setField(dataItem, this.fields.originalStart, getField(masterClone, this.fields.originalStart));
|
|
1038
|
+
setField(dataItem, this.fields.recurrenceId, getField(masterClone, this.fields.recurrenceId));
|
|
1039
|
+
setField(dataItem, this.fields.recurrenceRule, getField(masterClone, this.fields.recurrenceRule));
|
|
1040
|
+
setField(dataItem, this.fields.recurrenceExceptions, getField(masterClone, this.fields.recurrenceExceptions));
|
|
1041
|
+
deleted.push(dataItem);
|
|
1042
|
+
} else {
|
|
1043
|
+
var isException = getField(action.dataItem, this.fields.recurrenceRule) !== null && getField(action.dataItem, this.fields.recurrenceRule) !== undefined;
|
|
1044
|
+
|
|
1045
|
+
if (!isException) {
|
|
1046
|
+
deleted.push(action.dataItem);
|
|
1047
|
+
} else {
|
|
1048
|
+
var masterClone = clone(findMaster(action.dataItem, this.fields, this.dataItems));
|
|
1049
|
+
var exceptionDate = getField(action.dataItem, this.fields.originalStart);
|
|
1050
|
+
var currentExceptions = getField(masterClone, this.fields.recurrenceExceptions) || [];
|
|
1051
|
+
setField(masterClone, this.fields.recurrenceExceptions, __spreadArrays(currentExceptions, [exceptionDate]));
|
|
1052
|
+
setField(action.dataItem, this.fields.recurrenceRule, null);
|
|
1053
|
+
updated.push(masterClone);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
this.handleDataChange({
|
|
1058
|
+
updated: updated,
|
|
1059
|
+
deleted: deleted
|
|
1060
|
+
});
|
|
1061
|
+
},
|
|
1062
|
+
handleDataAction: function handleDataAction(action) {
|
|
1063
|
+
switch (action.type) {
|
|
1064
|
+
case DATA_ACTION.create:
|
|
1065
|
+
this.handleCreate(action);
|
|
1066
|
+
break;
|
|
1067
|
+
|
|
1068
|
+
case DATA_ACTION.update:
|
|
1069
|
+
this.handleUpdate(action);
|
|
1070
|
+
break;
|
|
1071
|
+
|
|
1072
|
+
case DATA_ACTION.remove:
|
|
1073
|
+
this.handleRemove(action);
|
|
1074
|
+
break;
|
|
1075
|
+
|
|
1076
|
+
default:
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
handleActiveViewNameChange: function handleActiveViewNameChange(newView, event) {
|
|
1081
|
+
this.ks.activeViewName = newView;
|
|
1082
|
+
this.ks.dateFormat = this.getViewPropValue(this.ks.view, 'selectedDateFormat', newView) || DEFAULT_DATE_FORMAT;
|
|
1083
|
+
this.ks.shortDateFormat = this.getViewPropValue(this.ks.view, 'selectedShortDateFormat', newView) || DEFAULT_SHORT_DATE_FORMAT;
|
|
1084
|
+
this.ks.dateRange = this.getViewComponentByName(newView).props.dateRange.default()({
|
|
1085
|
+
intl: this.intl,
|
|
1086
|
+
date: this.ks.currentDate,
|
|
1087
|
+
timezone: this.$props.timezone,
|
|
1088
|
+
numberOfDays: this.getViewPropValue(this.ks.view, 'numberOfDays', this.ks.activeViewName),
|
|
1089
|
+
workWeekStart: this.getViewPropValue(this.ks.view, 'workWeekStart', this.ks.activeViewName) || this.intl.firstDay(),
|
|
1090
|
+
workWeekEnd: this.getViewPropValue(this.ks.view, 'workWeekEnd', this.ks.activeViewName) || (this.intl.firstDay() + this.getViewPropValue(this.ks.view, 'numberOfDays', this.ks.activeViewName)) % 6
|
|
1091
|
+
});
|
|
1092
|
+
this.$emit('viewchange', __assign(__assign({
|
|
1093
|
+
viewName: newView
|
|
1094
|
+
}, event), {
|
|
1095
|
+
target: this.ks.scheduler
|
|
1096
|
+
}));
|
|
1097
|
+
},
|
|
1098
|
+
handleDateChange: function handleDateChange(newDate, event) {
|
|
1099
|
+
this.setDate(newDate, __assign(__assign({}, event), {
|
|
1100
|
+
target: this.ks.scheduler
|
|
1101
|
+
}));
|
|
1102
|
+
},
|
|
1103
|
+
handleDatePickerChange: function handleDatePickerChange(event) {
|
|
1104
|
+
if (!event.value) {
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
this.setDate(event.value, __assign(__assign({}, event), {
|
|
1109
|
+
target: this.ks.scheduler,
|
|
1110
|
+
nativeEvent: event.event
|
|
1111
|
+
}));
|
|
1112
|
+
},
|
|
1113
|
+
handleNextClick: function handleNextClick(event) {
|
|
1114
|
+
event.preventDefault();
|
|
1115
|
+
var offset = this.getViewPropValue(this.ks.view, 'numberOfDays', this.ks.activeViewName) || 1;
|
|
1116
|
+
var isMonthView = offset > 27;
|
|
1117
|
+
var newDate = isMonthView ? addMonths(this.ks.currentDate, Math.round(offset / 27)) : addDays(this.ks.currentDate, offset);
|
|
1118
|
+
this.setDate(newDate, event);
|
|
1119
|
+
},
|
|
1120
|
+
handlePrevClick: function handlePrevClick(event) {
|
|
1121
|
+
event.preventDefault();
|
|
1122
|
+
var offset = this.getViewPropValue(this.ks.view, 'numberOfDays', this.ks.activeViewName) || 1;
|
|
1123
|
+
var isMonthView = offset > 27;
|
|
1124
|
+
var newDate = isMonthView ? addMonths(this.ks.currentDate, -Math.round(offset / 27)) : addDays(this.ks.currentDate, -offset);
|
|
1125
|
+
this.setDate(newDate, event);
|
|
1126
|
+
},
|
|
1127
|
+
handleTodayClick: function handleTodayClick(event) {
|
|
1128
|
+
event.preventDefault();
|
|
1129
|
+
var newDate = getToday();
|
|
1130
|
+
this.setDate(newDate, event);
|
|
1131
|
+
},
|
|
1132
|
+
handleShowWorkHoursClick: function handleShowWorkHoursClick() {
|
|
1133
|
+
this.ks.showWorkHours = !this.ks.showWorkHours;
|
|
1134
|
+
},
|
|
1135
|
+
handleFocus: function handleFocus() {
|
|
1136
|
+
if (this.$el) {
|
|
1137
|
+
this.$el.style.boxShadow = '0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12)';
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
handleBlur: function handleBlur() {
|
|
1141
|
+
if (this.$el) {
|
|
1142
|
+
this.$el.style.boxShadow = '';
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
setDate: function setDate(newDate, event) {
|
|
1146
|
+
this.ks.currentDate = newDate;
|
|
1147
|
+
this.ks.dateRange = this.getViewComponentByName(this.ks.activeViewName).props.dateRange.default()({
|
|
1148
|
+
intl: this.intl,
|
|
1149
|
+
date: this.ks.currentDate,
|
|
1150
|
+
timezone: this.$props.timezone,
|
|
1151
|
+
numberOfDays: this.getViewPropValue(this.ks.view, 'numberOfDays', this.ks.activeViewName),
|
|
1152
|
+
workWeekStart: this.getViewPropValue(this.ks.view, 'workWeekStart', this.ks.activeViewName) || this.intl.firstDay(),
|
|
1153
|
+
workWeekEnd: this.getViewPropValue(this.ks.view, 'workWeekEnd', this.ks.activeViewName) || (this.intl.firstDay() + this.getViewPropValue(this.ks.view, 'numberOfDays', this.ks.activeViewName)) % 6
|
|
1154
|
+
});
|
|
1155
|
+
this.$emit('datechange', {
|
|
1156
|
+
date: newDate,
|
|
1157
|
+
event: event
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
var Scheduler = SchedulerVue2;
|
|
1163
|
+
export { Scheduler, SchedulerVue2 };
|