@progress/kendo-react-scheduler 6.1.1 → 7.0.0-develop.10
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/LICENSE.md +1 -1
- package/{dist/npm/Scheduler.d.ts → Scheduler.d.ts} +6 -9
- package/{dist/es/components → components}/BaseView.d.ts +4 -0
- package/components/CurrentTimeMarket.d.ts +19 -0
- package/{dist/npm/components → components}/DateHeaderCell.d.ts +4 -0
- package/{dist/npm/components → components}/SchedulerForm.d.ts +4 -0
- package/{dist/es/components → components}/SchedulerOccurrenceDialog.d.ts +5 -1
- package/{dist/es/components → components}/SchedulerRemoveDialog.d.ts +5 -1
- package/{dist/npm/components → components}/ShowMoreItemsButton.d.ts +4 -0
- package/{dist/es/components → components}/TimeHeaderCell.d.ts +4 -0
- package/{dist/es/components → components}/footer/SchedulerFooter.d.ts +4 -0
- package/{dist/npm/components → components}/footer/bussiness-hours/BussinessHours.d.ts +4 -0
- package/{dist/es/components → components}/header/SchedulerHeader.d.ts +4 -0
- package/components/header/navigation/NavigationDatePicker.d.ts +9 -0
- package/{dist/npm/components → components}/header/navigation/SchedulerNavigation.d.ts +4 -0
- package/{dist/es/components → components}/header/view-selector/SchedulerViewSelector.d.ts +4 -0
- package/components/header/view-selector/ViewSelectorItem.d.ts +12 -0
- package/components/header/view-selector/ViewSelectorList.d.ts +7 -0
- package/{dist/npm/constants → constants}/index.d.ts +12 -0
- package/{dist/es/context → context}/SchedulerContext.d.ts +18 -15
- package/{dist/es/context → context}/SchedulerEditItemContext.d.ts +13 -9
- package/{dist/es/context → context}/SchedulerEditSlotContext.d.ts +7 -3
- package/{dist/es/context → context}/SchedulerEditTaskContext.d.ts +8 -4
- package/context/SchedulerResourceIteratorContext.d.ts +20 -0
- package/{dist/es/context → context}/SchedulerViewContext.d.ts +15 -10
- package/context/index.d.ts +9 -0
- package/dist/cdn/js/kendo-react-scheduler.js +5 -2
- package/editors/FilterableComboBox.d.ts +8 -0
- package/{dist/es/editors → editors}/ResourceEditor.d.ts +5 -2
- package/{dist/npm/editors → editors}/SchedulerFormEditor.d.ts +5 -1
- package/{dist/npm/editors → editors}/ZonedDateTime.d.ts +6 -2
- package/hooks/index.d.ts +14 -0
- package/{dist/npm/hooks → hooks}/use-items-focus.d.ts +5 -1
- package/{dist/es/hooks → hooks}/use-items-selection.d.ts +5 -1
- package/{dist/npm/hooks → hooks}/use-slots-focus.d.ts +4 -0
- package/{dist/es/hooks → hooks}/use-slots-selection.d.ts +5 -1
- package/{dist/es/hooks → hooks}/useAsyncMouseEnterLeave.d.ts +4 -0
- package/hooks/useCellSync.d.ts +14 -0
- package/hooks/useControlledState.d.ts +17 -0
- package/hooks/useEditable.d.ts +7 -0
- package/hooks/usePropOrState.d.ts +6 -0
- package/hooks/useRowSync.d.ts +15 -0
- package/hooks/useSchedulerItem.d.ts +11 -0
- package/hooks/useSchedulerSlot.d.ts +11 -0
- package/hooks/useSlotExpand.d.ts +9 -0
- package/hooks/useWorkHours.d.ts +6 -0
- package/index.d.ts +45 -0
- package/index.js +5 -0
- package/index.mjs +5880 -0
- package/{dist/es/items → items}/SchedulerEditItem.d.ts +5 -1
- package/{dist/npm/items → items}/SchedulerItem.d.ts +4 -0
- package/{dist/es/items → items}/SchedulerItemContent.d.ts +4 -0
- package/{dist/es/items → items}/SchedulerProportionalViewItem.d.ts +4 -0
- package/{dist/npm/items → items}/SchedulerViewItem.d.ts +4 -0
- package/{dist/es/items → items}/hooks/use-drag-item.d.ts +4 -0
- package/{dist/npm/items → items}/hooks/use-form-item.d.ts +5 -1
- package/{dist/npm/items → items}/hooks/use-remove-item.d.ts +5 -1
- package/{dist/es/items → items}/hooks/use-resize-item.d.ts +4 -0
- package/{dist/es/items → items}/hooks/use-series.d.ts +5 -1
- package/{dist/npm/items → items}/hooks/use-show-occurrence-dialog.d.ts +5 -1
- package/{dist/es/items → items}/hooks/use-show-remove-item-dialog.d.ts +5 -1
- package/{dist/npm/messages → messages}/index.d.ts +4 -0
- package/{dist/es/models → models}/DataItem.d.ts +5 -1
- package/models/DateRange.d.ts +22 -0
- package/{dist/npm/models → models}/EditableProp.d.ts +4 -0
- package/{dist/es/models → models}/Fields.d.ts +4 -0
- package/models/Group.d.ts +12 -0
- package/{dist/es/models → models}/Item.d.ts +4 -1
- package/{dist/npm/models → models}/Occurrence.d.ts +4 -0
- package/models/Omit.d.ts +8 -0
- package/models/Orientation.d.ts +6 -0
- package/models/Range.d.ts +14 -0
- package/models/Rect.d.ts +19 -0
- package/models/Resource.d.ts +12 -0
- package/models/SchedulerGroup.d.ts +17 -0
- package/models/SchedulerHandle.d.ts +12 -0
- package/{dist/es/models → models}/SchedulerModelFields.d.ts +4 -0
- package/{dist/npm/models → models}/SchedulerResource.d.ts +4 -0
- package/{dist/es/models → models}/SchedulerView.d.ts +6 -3
- package/{dist/npm/models → models}/Slot.d.ts +4 -1
- package/{dist/npm/models → models}/events.d.ts +10 -5
- package/{dist/es/models → models}/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +36 -58
- package/recurrence/RecurrenceEditor.d.ts +16 -0
- package/{dist/npm/recurrence → recurrence}/RecurrenceFrequencyEditor.d.ts +4 -0
- package/{dist/npm/recurrence → recurrence}/RecurrenceRepeatOnWeekEditor.d.ts +4 -0
- package/{dist/npm/recurrence → recurrence}/common.d.ts +4 -0
- package/recurrence/types/EndRule.d.ts +8 -0
- package/recurrence/types/Frequency.d.ts +8 -0
- package/recurrence/types/FrequencyEntity.d.ts +12 -0
- package/recurrence/types/MonthEntity.d.ts +11 -0
- package/recurrence/types/OffsetPosition.d.ts +8 -0
- package/recurrence/types/OffsetPositionEntity.d.ts +11 -0
- package/recurrence/types/RepeatOnRule.d.ts +8 -0
- package/recurrence/types/WeekDayEntity.d.ts +11 -0
- package/recurrence/types/WeekDayRule.d.ts +11 -0
- package/services/index.d.ts +8 -0
- package/{dist/npm/services → services}/itemsService.d.ts +4 -0
- package/services/occurrenceService.d.ts +7 -0
- package/services/rangeService.d.ts +7 -0
- package/services/slotsService.d.ts +10 -0
- package/{dist/npm/slots → slots}/SchedulerEditSlot.d.ts +4 -0
- package/{dist/npm/slots → slots}/SchedulerSlot.d.ts +4 -0
- package/{dist/es/slots → slots}/SchedulerViewSlot.d.ts +5 -1
- package/{dist/npm/tasks → tasks}/SchedulerEditTask.d.ts +4 -0
- package/{dist/es/tasks → tasks}/SchedulerTask.d.ts +4 -0
- package/{dist/es/tasks → tasks}/SchedulerViewTask.d.ts +4 -0
- package/{dist/es/utils → utils}/index.d.ts +6 -2
- package/{dist/npm/views → views}/agenda/AgendaView.d.ts +4 -0
- package/{dist/es/views → views}/common/HorizontalResourceIterator.d.ts +4 -0
- package/{dist/npm/views → views}/common/SchedulerDrag.d.ts +4 -0
- package/{dist/npm/views → views}/common/SchedulerResize.d.ts +4 -0
- package/{dist/es/views → views}/common/VerticalResourceIterator.d.ts +4 -0
- package/{dist/es/views → views}/common/utils.d.ts +4 -0
- package/{dist/es/views → views}/day/DayView.d.ts +4 -0
- package/views/day/DayViewAllDayRowContent.d.ts +12 -0
- package/views/day/DayViewGroupRowContent.d.ts +12 -0
- package/{dist/npm/views → views}/day/DayViewRowContent.d.ts +5 -1
- package/{dist/es/views → views}/day/MultiDayView.d.ts +5 -1
- package/{dist/npm/views → views}/month/MonthView.d.ts +5 -1
- package/{dist/es/views → views}/time/MultiDayTimelineView.d.ts +5 -1
- package/{dist/es/views → views}/time/TimelineView.d.ts +4 -0
- package/views/time/TimelineViewAllEventsRowContent.d.ts +11 -0
- package/views/time/TimelineViewRowContent.d.ts +11 -0
- package/{dist/npm/views → views}/week/WeekView.d.ts +4 -0
- package/views/week/WorkWeekView.d.ts +9 -0
- package/about.md +0 -3
- package/dist/cdn/js/kendo-react-scheduler.js.LICENSE.txt +0 -14
- package/dist/es/Scheduler.d.ts +0 -365
- package/dist/es/Scheduler.js +0 -432
- package/dist/es/components/BaseView.js +0 -34
- package/dist/es/components/CurrentTimeMarket.d.ts +0 -15
- package/dist/es/components/CurrentTimeMarket.js +0 -140
- package/dist/es/components/DateHeaderCell.d.ts +0 -42
- package/dist/es/components/DateHeaderCell.js +0 -55
- package/dist/es/components/SchedulerForm.d.ts +0 -67
- package/dist/es/components/SchedulerForm.js +0 -101
- package/dist/es/components/SchedulerOccurrenceDialog.js +0 -61
- package/dist/es/components/SchedulerRemoveDialog.js +0 -55
- package/dist/es/components/ShowMoreItemsButton.d.ts +0 -26
- package/dist/es/components/ShowMoreItemsButton.js +0 -42
- package/dist/es/components/TimeHeaderCell.js +0 -54
- package/dist/es/components/footer/SchedulerFooter.js +0 -39
- package/dist/es/components/footer/bussiness-hours/BussinessHours.d.ts +0 -13
- package/dist/es/components/footer/bussiness-hours/BussinessHours.js +0 -34
- package/dist/es/components/header/SchedulerHeader.js +0 -40
- package/dist/es/components/header/navigation/NavigationDatePicker.d.ts +0 -5
- package/dist/es/components/header/navigation/NavigationDatePicker.js +0 -100
- package/dist/es/components/header/navigation/SchedulerNavigation.d.ts +0 -24
- package/dist/es/components/header/navigation/SchedulerNavigation.js +0 -38
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +0 -38
- package/dist/es/components/header/view-selector/ViewSelectorItem.d.ts +0 -9
- package/dist/es/components/header/view-selector/ViewSelectorItem.js +0 -16
- package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +0 -3
- package/dist/es/components/header/view-selector/ViewSelectorList.js +0 -69
- package/dist/es/constants/index.d.ts +0 -46
- package/dist/es/constants/index.js +0 -55
- package/dist/es/context/SchedulerContext.js +0 -187
- package/dist/es/context/SchedulerEditItemContext.js +0 -118
- package/dist/es/context/SchedulerEditSlotContext.js +0 -37
- package/dist/es/context/SchedulerEditTaskContext.js +0 -19
- package/dist/es/context/SchedulerResourceIteratorContext.d.ts +0 -16
- package/dist/es/context/SchedulerResourceIteratorContext.js +0 -12
- package/dist/es/context/SchedulerViewContext.js +0 -63
- package/dist/es/context/index.d.ts +0 -5
- package/dist/es/context/index.js +0 -5
- package/dist/es/editors/FilterableComboBox.d.ts +0 -5
- package/dist/es/editors/FilterableComboBox.js +0 -36
- package/dist/es/editors/ResourceEditor.js +0 -51
- package/dist/es/editors/SchedulerFormEditor.d.ts +0 -242
- package/dist/es/editors/SchedulerFormEditor.js +0 -169
- package/dist/es/editors/ZonedDateTime.d.ts +0 -18
- package/dist/es/editors/ZonedDateTime.js +0 -54
- package/dist/es/editors/common.d.ts +0 -13
- package/dist/es/editors/common.js +0 -29
- package/dist/es/hooks/index.d.ts +0 -10
- package/dist/es/hooks/index.js +0 -10
- package/dist/es/hooks/use-items-focus.d.ts +0 -23
- package/dist/es/hooks/use-items-focus.js +0 -45
- package/dist/es/hooks/use-items-selection.js +0 -87
- package/dist/es/hooks/use-slots-focus.d.ts +0 -34
- package/dist/es/hooks/use-slots-focus.js +0 -94
- package/dist/es/hooks/use-slots-selection.js +0 -52
- package/dist/es/hooks/useAsyncMouseEnterLeave.js +0 -21
- package/dist/es/hooks/useCellSync.d.ts +0 -10
- package/dist/es/hooks/useCellSync.js +0 -42
- package/dist/es/hooks/useControlledState.d.ts +0 -13
- package/dist/es/hooks/useControlledState.js +0 -23
- package/dist/es/hooks/useEditable.d.ts +0 -3
- package/dist/es/hooks/useEditable.js +0 -27
- package/dist/es/hooks/usePropOrState.d.ts +0 -2
- package/dist/es/hooks/usePropOrState.js +0 -9
- package/dist/es/hooks/useRowSync.d.ts +0 -11
- package/dist/es/hooks/useRowSync.js +0 -43
- package/dist/es/hooks/useSchedulerItem.d.ts +0 -7
- package/dist/es/hooks/useSchedulerItem.js +0 -30
- package/dist/es/hooks/useSchedulerSlot.d.ts +0 -7
- package/dist/es/hooks/useSchedulerSlot.js +0 -29
- package/dist/es/hooks/useSlotExpand.d.ts +0 -5
- package/dist/es/hooks/useSlotExpand.js +0 -97
- package/dist/es/hooks/useWorkHours.d.ts +0 -2
- package/dist/es/hooks/useWorkHours.js +0 -10
- package/dist/es/items/SchedulerEditItem.js +0 -626
- package/dist/es/items/SchedulerItem.d.ts +0 -199
- package/dist/es/items/SchedulerItem.js +0 -325
- package/dist/es/items/SchedulerItemContent.js +0 -21
- package/dist/es/items/SchedulerProportionalViewItem.js +0 -233
- package/dist/es/items/SchedulerViewItem.d.ts +0 -30
- package/dist/es/items/SchedulerViewItem.js +0 -235
- package/dist/es/items/hooks/use-drag-item.js +0 -209
- package/dist/es/items/hooks/use-form-item.d.ts +0 -22
- package/dist/es/items/hooks/use-form-item.js +0 -48
- package/dist/es/items/hooks/use-remove-item.d.ts +0 -30
- package/dist/es/items/hooks/use-remove-item.js +0 -46
- package/dist/es/items/hooks/use-resize-item.js +0 -249
- package/dist/es/items/hooks/use-series.js +0 -36
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +0 -27
- package/dist/es/items/hooks/use-show-occurrence-dialog.js +0 -44
- package/dist/es/items/hooks/use-show-remove-item-dialog.js +0 -44
- package/dist/es/main.d.ts +0 -40
- package/dist/es/main.js +0 -56
- package/dist/es/messages/index.d.ts +0 -236
- package/dist/es/messages/index.js +0 -237
- package/dist/es/models/DataItem.js +0 -1
- package/dist/es/models/DateRange.d.ts +0 -18
- package/dist/es/models/DateRange.js +0 -1
- package/dist/es/models/EditableProp.d.ts +0 -29
- package/dist/es/models/EditableProp.js +0 -1
- package/dist/es/models/Fields.js +0 -1
- package/dist/es/models/Group.d.ts +0 -8
- package/dist/es/models/Group.js +0 -1
- package/dist/es/models/Item.js +0 -1
- package/dist/es/models/NavigationAction.d.ts +0 -58
- package/dist/es/models/NavigationAction.js +0 -11
- package/dist/es/models/Occurrence.d.ts +0 -52
- package/dist/es/models/Occurrence.js +0 -1
- package/dist/es/models/Omit.d.ts +0 -4
- package/dist/es/models/Omit.js +0 -1
- package/dist/es/models/Orientation.d.ts +0 -2
- package/dist/es/models/Orientation.js +0 -1
- package/dist/es/models/Range.d.ts +0 -10
- package/dist/es/models/Range.js +0 -1
- package/dist/es/models/Rect.d.ts +0 -15
- package/dist/es/models/Rect.js +0 -1
- package/dist/es/models/Resource.d.ts +0 -8
- package/dist/es/models/Resource.js +0 -1
- package/dist/es/models/SchedulerGroup.d.ts +0 -13
- package/dist/es/models/SchedulerGroup.js +0 -1
- package/dist/es/models/SchedulerHandle.d.ts +0 -8
- package/dist/es/models/SchedulerHandle.js +0 -1
- package/dist/es/models/SchedulerModelFields.js +0 -1
- package/dist/es/models/SchedulerResource.d.ts +0 -33
- package/dist/es/models/SchedulerResource.js +0 -1
- package/dist/es/models/SchedulerView.js +0 -1
- package/dist/es/models/Slot.d.ts +0 -51
- package/dist/es/models/Slot.js +0 -1
- package/dist/es/models/events.d.ts +0 -82
- package/dist/es/models/events.js +0 -1
- package/dist/es/models/index.js +0 -17
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/recurrence/RecurrenceEditor.d.ts +0 -12
- package/dist/es/recurrence/RecurrenceEditor.js +0 -309
- package/dist/es/recurrence/RecurrenceFrequencyEditor.d.ts +0 -10
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +0 -36
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -13
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -55
- package/dist/es/recurrence/common.d.ts +0 -57
- package/dist/es/recurrence/common.js +0 -212
- package/dist/es/recurrence/types/EndRule.d.ts +0 -4
- package/dist/es/recurrence/types/EndRule.js +0 -1
- package/dist/es/recurrence/types/Frequency.d.ts +0 -4
- package/dist/es/recurrence/types/Frequency.js +0 -1
- package/dist/es/recurrence/types/FrequencyEntity.d.ts +0 -8
- package/dist/es/recurrence/types/FrequencyEntity.js +0 -1
- package/dist/es/recurrence/types/MonthEntity.d.ts +0 -7
- package/dist/es/recurrence/types/MonthEntity.js +0 -1
- package/dist/es/recurrence/types/OffsetPosition.d.ts +0 -4
- package/dist/es/recurrence/types/OffsetPosition.js +0 -1
- package/dist/es/recurrence/types/OffsetPositionEntity.d.ts +0 -7
- package/dist/es/recurrence/types/OffsetPositionEntity.js +0 -1
- package/dist/es/recurrence/types/RepeatOnRule.d.ts +0 -4
- package/dist/es/recurrence/types/RepeatOnRule.js +0 -1
- package/dist/es/recurrence/types/WeekDayEntity.d.ts +0 -7
- package/dist/es/recurrence/types/WeekDayEntity.js +0 -1
- package/dist/es/recurrence/types/WeekDayRule.d.ts +0 -8
- package/dist/es/recurrence/types/WeekDayRule.js +0 -1
- package/dist/es/recurrence/utils/index.d.ts +0 -0
- package/dist/es/recurrence/utils/index.js +0 -1
- package/dist/es/reducers/editReducer.d.ts +0 -33
- package/dist/es/reducers/editReducer.js +0 -65
- package/dist/es/reducers/index.d.ts +0 -1
- package/dist/es/reducers/index.js +0 -1
- package/dist/es/services/index.d.ts +0 -4
- package/dist/es/services/index.js +0 -4
- package/dist/es/services/itemsService.d.ts +0 -12
- package/dist/es/services/itemsService.js +0 -77
- package/dist/es/services/occurrenceService.d.ts +0 -3
- package/dist/es/services/occurrenceService.js +0 -92
- package/dist/es/services/rangeService.d.ts +0 -3
- package/dist/es/services/rangeService.js +0 -23
- package/dist/es/services/slotsService.d.ts +0 -6
- package/dist/es/services/slotsService.js +0 -43
- package/dist/es/slots/SchedulerEditSlot.d.ts +0 -48
- package/dist/es/slots/SchedulerEditSlot.js +0 -228
- package/dist/es/slots/SchedulerSlot.d.ts +0 -123
- package/dist/es/slots/SchedulerSlot.js +0 -155
- package/dist/es/slots/SchedulerViewSlot.js +0 -49
- package/dist/es/tasks/SchedulerEditTask.d.ts +0 -75
- package/dist/es/tasks/SchedulerEditTask.js +0 -156
- package/dist/es/tasks/SchedulerTask.js +0 -42
- package/dist/es/tasks/SchedulerViewTask.js +0 -44
- package/dist/es/utils/index.js +0 -556
- package/dist/es/views/agenda/AgendaView.d.ts +0 -79
- package/dist/es/views/agenda/AgendaView.js +0 -151
- package/dist/es/views/agenda/AgendaViewHeaderItem.d.ts +0 -8
- package/dist/es/views/agenda/AgendaViewHeaderItem.js +0 -11
- package/dist/es/views/common/HorizontalResourceIterator.js +0 -59
- package/dist/es/views/common/SchedulerDrag.d.ts +0 -35
- package/dist/es/views/common/SchedulerDrag.js +0 -41
- package/dist/es/views/common/SchedulerResize.d.ts +0 -37
- package/dist/es/views/common/SchedulerResize.js +0 -41
- package/dist/es/views/common/VerticalResourceIterator.js +0 -93
- package/dist/es/views/common/utils.js +0 -188
- package/dist/es/views/day/DayView.js +0 -31
- package/dist/es/views/day/DayViewAllDayRowContent.d.ts +0 -8
- package/dist/es/views/day/DayViewAllDayRowContent.js +0 -10
- package/dist/es/views/day/DayViewGroupRowContent.d.ts +0 -8
- package/dist/es/views/day/DayViewGroupRowContent.js +0 -7
- package/dist/es/views/day/DayViewRowContent.d.ts +0 -13
- package/dist/es/views/day/DayViewRowContent.js +0 -14
- package/dist/es/views/day/MultiDayView.js +0 -270
- package/dist/es/views/month/MonthView.d.ts +0 -82
- package/dist/es/views/month/MonthView.js +0 -139
- package/dist/es/views/time/MultiDayTimelineView.js +0 -209
- package/dist/es/views/time/TimelineView.js +0 -32
- package/dist/es/views/time/TimelineViewAllEventsRowContent.d.ts +0 -7
- package/dist/es/views/time/TimelineViewAllEventsRowContent.js +0 -11
- package/dist/es/views/time/TimelineViewRowContent.d.ts +0 -7
- package/dist/es/views/time/TimelineViewRowContent.js +0 -8
- package/dist/es/views/week/WeekView.d.ts +0 -102
- package/dist/es/views/week/WeekView.js +0 -52
- package/dist/es/views/week/WorkWeekView.d.ts +0 -5
- package/dist/es/views/week/WorkWeekView.js +0 -77
- package/dist/npm/Scheduler.js +0 -435
- package/dist/npm/components/BaseView.d.ts +0 -18
- package/dist/npm/components/BaseView.js +0 -37
- package/dist/npm/components/CurrentTimeMarket.d.ts +0 -15
- package/dist/npm/components/CurrentTimeMarket.js +0 -144
- package/dist/npm/components/DateHeaderCell.js +0 -58
- package/dist/npm/components/SchedulerForm.js +0 -104
- package/dist/npm/components/SchedulerOccurrenceDialog.d.ts +0 -42
- package/dist/npm/components/SchedulerOccurrenceDialog.js +0 -64
- package/dist/npm/components/SchedulerRemoveDialog.d.ts +0 -38
- package/dist/npm/components/SchedulerRemoveDialog.js +0 -58
- package/dist/npm/components/ShowMoreItemsButton.js +0 -45
- package/dist/npm/components/TimeHeaderCell.d.ts +0 -42
- package/dist/npm/components/TimeHeaderCell.js +0 -57
- package/dist/npm/components/footer/SchedulerFooter.d.ts +0 -21
- package/dist/npm/components/footer/SchedulerFooter.js +0 -42
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +0 -37
- package/dist/npm/components/header/SchedulerHeader.d.ts +0 -18
- package/dist/npm/components/header/SchedulerHeader.js +0 -43
- package/dist/npm/components/header/navigation/NavigationDatePicker.d.ts +0 -5
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +0 -103
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +0 -41
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.d.ts +0 -24
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +0 -41
- package/dist/npm/components/header/view-selector/ViewSelectorItem.d.ts +0 -9
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +0 -20
- package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +0 -3
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +0 -72
- package/dist/npm/constants/index.js +0 -59
- package/dist/npm/context/SchedulerContext.d.ts +0 -228
- package/dist/npm/context/SchedulerContext.js +0 -203
- package/dist/npm/context/SchedulerEditItemContext.d.ts +0 -168
- package/dist/npm/context/SchedulerEditItemContext.js +0 -129
- package/dist/npm/context/SchedulerEditSlotContext.d.ts +0 -47
- package/dist/npm/context/SchedulerEditSlotContext.js +0 -43
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +0 -29
- package/dist/npm/context/SchedulerEditTaskContext.js +0 -26
- package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +0 -16
- package/dist/npm/context/SchedulerResourceIteratorContext.js +0 -16
- package/dist/npm/context/SchedulerViewContext.d.ts +0 -71
- package/dist/npm/context/SchedulerViewContext.js +0 -75
- package/dist/npm/context/index.d.ts +0 -5
- package/dist/npm/context/index.js +0 -21
- package/dist/npm/editors/FilterableComboBox.d.ts +0 -5
- package/dist/npm/editors/FilterableComboBox.js +0 -40
- package/dist/npm/editors/ResourceEditor.d.ts +0 -15
- package/dist/npm/editors/ResourceEditor.js +0 -55
- package/dist/npm/editors/SchedulerFormEditor.js +0 -172
- package/dist/npm/editors/ZonedDateTime.js +0 -58
- package/dist/npm/editors/common.d.ts +0 -13
- package/dist/npm/editors/common.js +0 -34
- package/dist/npm/hooks/index.d.ts +0 -10
- package/dist/npm/hooks/index.js +0 -26
- package/dist/npm/hooks/use-items-focus.js +0 -49
- package/dist/npm/hooks/use-items-selection.d.ts +0 -31
- package/dist/npm/hooks/use-items-selection.js +0 -91
- package/dist/npm/hooks/use-slots-focus.js +0 -102
- package/dist/npm/hooks/use-slots-selection.d.ts +0 -24
- package/dist/npm/hooks/use-slots-selection.js +0 -56
- package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +0 -11
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +0 -25
- package/dist/npm/hooks/useCellSync.d.ts +0 -10
- package/dist/npm/hooks/useCellSync.js +0 -46
- package/dist/npm/hooks/useControlledState.d.ts +0 -13
- package/dist/npm/hooks/useControlledState.js +0 -27
- package/dist/npm/hooks/useEditable.d.ts +0 -3
- package/dist/npm/hooks/useEditable.js +0 -31
- package/dist/npm/hooks/usePropOrState.d.ts +0 -2
- package/dist/npm/hooks/usePropOrState.js +0 -13
- package/dist/npm/hooks/useRowSync.d.ts +0 -11
- package/dist/npm/hooks/useRowSync.js +0 -47
- package/dist/npm/hooks/useSchedulerItem.d.ts +0 -7
- package/dist/npm/hooks/useSchedulerItem.js +0 -34
- package/dist/npm/hooks/useSchedulerSlot.d.ts +0 -7
- package/dist/npm/hooks/useSchedulerSlot.js +0 -33
- package/dist/npm/hooks/useSlotExpand.d.ts +0 -5
- package/dist/npm/hooks/useSlotExpand.js +0 -101
- package/dist/npm/hooks/useWorkHours.d.ts +0 -2
- package/dist/npm/hooks/useWorkHours.js +0 -14
- package/dist/npm/items/SchedulerEditItem.d.ts +0 -326
- package/dist/npm/items/SchedulerEditItem.js +0 -629
- package/dist/npm/items/SchedulerItem.js +0 -328
- package/dist/npm/items/SchedulerItemContent.d.ts +0 -11
- package/dist/npm/items/SchedulerItemContent.js +0 -24
- package/dist/npm/items/SchedulerProportionalViewItem.d.ts +0 -8
- package/dist/npm/items/SchedulerProportionalViewItem.js +0 -236
- package/dist/npm/items/SchedulerViewItem.js +0 -238
- package/dist/npm/items/hooks/use-drag-item.d.ts +0 -42
- package/dist/npm/items/hooks/use-drag-item.js +0 -213
- package/dist/npm/items/hooks/use-form-item.js +0 -52
- package/dist/npm/items/hooks/use-remove-item.js +0 -50
- package/dist/npm/items/hooks/use-resize-item.d.ts +0 -45
- package/dist/npm/items/hooks/use-resize-item.js +0 -253
- package/dist/npm/items/hooks/use-series.d.ts +0 -23
- package/dist/npm/items/hooks/use-series.js +0 -40
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +0 -48
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +0 -27
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +0 -48
- package/dist/npm/main.d.ts +0 -40
- package/dist/npm/main.js +0 -127
- package/dist/npm/messages/index.js +0 -241
- package/dist/npm/models/DataItem.d.ts +0 -8
- package/dist/npm/models/DataItem.js +0 -2
- package/dist/npm/models/DateRange.d.ts +0 -18
- package/dist/npm/models/DateRange.js +0 -2
- package/dist/npm/models/EditableProp.js +0 -2
- package/dist/npm/models/Fields.d.ts +0 -17
- package/dist/npm/models/Fields.js +0 -2
- package/dist/npm/models/Group.d.ts +0 -8
- package/dist/npm/models/Group.js +0 -2
- package/dist/npm/models/Item.d.ts +0 -65
- package/dist/npm/models/Item.js +0 -2
- package/dist/npm/models/NavigationAction.d.ts +0 -58
- package/dist/npm/models/NavigationAction.js +0 -12
- package/dist/npm/models/Occurrence.js +0 -2
- package/dist/npm/models/Omit.d.ts +0 -4
- package/dist/npm/models/Omit.js +0 -2
- package/dist/npm/models/Orientation.d.ts +0 -2
- package/dist/npm/models/Orientation.js +0 -2
- package/dist/npm/models/Range.d.ts +0 -10
- package/dist/npm/models/Range.js +0 -2
- package/dist/npm/models/Rect.d.ts +0 -15
- package/dist/npm/models/Rect.js +0 -2
- package/dist/npm/models/Resource.d.ts +0 -8
- package/dist/npm/models/Resource.js +0 -2
- package/dist/npm/models/SchedulerGroup.d.ts +0 -13
- package/dist/npm/models/SchedulerGroup.js +0 -2
- package/dist/npm/models/SchedulerHandle.d.ts +0 -8
- package/dist/npm/models/SchedulerHandle.js +0 -2
- package/dist/npm/models/SchedulerModelFields.d.ts +0 -62
- package/dist/npm/models/SchedulerModelFields.js +0 -2
- package/dist/npm/models/SchedulerResource.js +0 -2
- package/dist/npm/models/SchedulerView.d.ts +0 -77
- package/dist/npm/models/SchedulerView.js +0 -2
- package/dist/npm/models/Slot.js +0 -2
- package/dist/npm/models/events.js +0 -2
- package/dist/npm/models/index.d.ts +0 -17
- package/dist/npm/models/index.js +0 -33
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/recurrence/RecurrenceEditor.d.ts +0 -12
- package/dist/npm/recurrence/RecurrenceEditor.js +0 -313
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +0 -40
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -59
- package/dist/npm/recurrence/common.js +0 -233
- package/dist/npm/recurrence/types/EndRule.d.ts +0 -4
- package/dist/npm/recurrence/types/EndRule.js +0 -2
- package/dist/npm/recurrence/types/Frequency.d.ts +0 -4
- package/dist/npm/recurrence/types/Frequency.js +0 -2
- package/dist/npm/recurrence/types/FrequencyEntity.d.ts +0 -8
- package/dist/npm/recurrence/types/FrequencyEntity.js +0 -2
- package/dist/npm/recurrence/types/MonthEntity.d.ts +0 -7
- package/dist/npm/recurrence/types/MonthEntity.js +0 -2
- package/dist/npm/recurrence/types/OffsetPosition.d.ts +0 -4
- package/dist/npm/recurrence/types/OffsetPosition.js +0 -2
- package/dist/npm/recurrence/types/OffsetPositionEntity.d.ts +0 -7
- package/dist/npm/recurrence/types/OffsetPositionEntity.js +0 -2
- package/dist/npm/recurrence/types/RepeatOnRule.d.ts +0 -4
- package/dist/npm/recurrence/types/RepeatOnRule.js +0 -2
- package/dist/npm/recurrence/types/WeekDayEntity.d.ts +0 -7
- package/dist/npm/recurrence/types/WeekDayEntity.js +0 -2
- package/dist/npm/recurrence/types/WeekDayRule.d.ts +0 -8
- package/dist/npm/recurrence/types/WeekDayRule.js +0 -2
- package/dist/npm/recurrence/utils/index.d.ts +0 -0
- package/dist/npm/recurrence/utils/index.js +0 -1
- package/dist/npm/reducers/editReducer.d.ts +0 -33
- package/dist/npm/reducers/editReducer.js +0 -69
- package/dist/npm/reducers/index.d.ts +0 -1
- package/dist/npm/reducers/index.js +0 -17
- package/dist/npm/services/index.d.ts +0 -4
- package/dist/npm/services/index.js +0 -20
- package/dist/npm/services/itemsService.js +0 -84
- package/dist/npm/services/occurrenceService.d.ts +0 -3
- package/dist/npm/services/occurrenceService.js +0 -96
- package/dist/npm/services/rangeService.d.ts +0 -3
- package/dist/npm/services/rangeService.js +0 -27
- package/dist/npm/services/slotsService.d.ts +0 -6
- package/dist/npm/services/slotsService.js +0 -47
- package/dist/npm/slots/SchedulerEditSlot.js +0 -231
- package/dist/npm/slots/SchedulerSlot.js +0 -158
- package/dist/npm/slots/SchedulerViewSlot.d.ts +0 -42
- package/dist/npm/slots/SchedulerViewSlot.js +0 -52
- package/dist/npm/tasks/SchedulerEditTask.js +0 -159
- package/dist/npm/tasks/SchedulerTask.d.ts +0 -57
- package/dist/npm/tasks/SchedulerTask.js +0 -45
- package/dist/npm/tasks/SchedulerViewTask.d.ts +0 -28
- package/dist/npm/tasks/SchedulerViewTask.js +0 -47
- package/dist/npm/utils/index.d.ts +0 -168
- package/dist/npm/utils/index.js +0 -606
- package/dist/npm/views/agenda/AgendaView.js +0 -155
- package/dist/npm/views/agenda/AgendaViewHeaderItem.d.ts +0 -8
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +0 -15
- package/dist/npm/views/common/HorizontalResourceIterator.d.ts +0 -26
- package/dist/npm/views/common/HorizontalResourceIterator.js +0 -64
- package/dist/npm/views/common/SchedulerDrag.js +0 -45
- package/dist/npm/views/common/SchedulerResize.js +0 -45
- package/dist/npm/views/common/VerticalResourceIterator.d.ts +0 -21
- package/dist/npm/views/common/VerticalResourceIterator.js +0 -97
- package/dist/npm/views/common/utils.d.ts +0 -34
- package/dist/npm/views/common/utils.js +0 -202
- package/dist/npm/views/day/DayView.d.ts +0 -11
- package/dist/npm/views/day/DayView.js +0 -35
- package/dist/npm/views/day/DayViewAllDayRowContent.d.ts +0 -8
- package/dist/npm/views/day/DayViewAllDayRowContent.js +0 -14
- package/dist/npm/views/day/DayViewGroupRowContent.d.ts +0 -8
- package/dist/npm/views/day/DayViewGroupRowContent.js +0 -11
- package/dist/npm/views/day/DayViewRowContent.js +0 -18
- package/dist/npm/views/day/MultiDayView.d.ts +0 -171
- package/dist/npm/views/day/MultiDayView.js +0 -274
- package/dist/npm/views/month/MonthView.js +0 -143
- package/dist/npm/views/time/MultiDayTimelineView.d.ts +0 -175
- package/dist/npm/views/time/MultiDayTimelineView.js +0 -213
- package/dist/npm/views/time/TimelineView.d.ts +0 -23
- package/dist/npm/views/time/TimelineView.js +0 -36
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.d.ts +0 -7
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +0 -15
- package/dist/npm/views/time/TimelineViewRowContent.d.ts +0 -7
- package/dist/npm/views/time/TimelineViewRowContent.js +0 -12
- package/dist/npm/views/week/WeekView.js +0 -56
- package/dist/npm/views/week/WorkWeekView.d.ts +0 -5
- package/dist/npm/views/week/WorkWeekView.js +0 -81
- package/dist/systemjs/kendo-react-scheduler.js +0 -1
- package/e2e-next/basic.tests.ts +0 -24
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { Calendar } from '@progress/kendo-react-dateinputs';
|
|
14
|
-
import { useInternationalization } from '@progress/kendo-react-intl';
|
|
15
|
-
import { Button } from '@progress/kendo-react-buttons';
|
|
16
|
-
import { ZonedDate, getDate } from '@progress/kendo-date-math';
|
|
17
|
-
import { Popup } from '@progress/kendo-react-popup';
|
|
18
|
-
import { useAsyncFocusBlur, useWindow } from '@progress/kendo-react-common';
|
|
19
|
-
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
20
|
-
import { useSchedulerDateFormatContext, useSchedulerDateRangeContext, useSchedulerDateContext, useSchedulerPropsContext, useSchedulerElementContext } from '../../../context/SchedulerContext';
|
|
21
|
-
import { toUTCDateTime } from '../../../utils';
|
|
22
|
-
import { MS_PER_DAY } from '../../../constants';
|
|
23
|
-
/** @hidden */
|
|
24
|
-
export var NavigationDatePicker = React.forwardRef(function (props, ref) {
|
|
25
|
-
var _a;
|
|
26
|
-
var button = React.useRef(null);
|
|
27
|
-
var calendar = React.useRef(null);
|
|
28
|
-
React.useImperativeHandle(ref, function () { return button.current; });
|
|
29
|
-
var timezone = useSchedulerPropsContext().timezone;
|
|
30
|
-
var normalized = ZonedDate.fromLocalDate(props.value, timezone);
|
|
31
|
-
var value = getDate(normalized);
|
|
32
|
-
var element = useSchedulerElementContext();
|
|
33
|
-
var getWindow = useWindow(element);
|
|
34
|
-
var _b = React.useState('desktop'), media = _b[0], setMedia = _b[1];
|
|
35
|
-
var _c = React.useState(false), show = _c[0], setShow = _c[1];
|
|
36
|
-
var _d = React.useState(false), focused = _d[0], setFocused = _d[1];
|
|
37
|
-
var intl = useInternationalization();
|
|
38
|
-
var _e = useSchedulerDateFormatContext(), dateFormat = _e.dateFormat, shortDateFormat = _e.shortDateFormat;
|
|
39
|
-
var dateRange = useSchedulerDateRangeContext();
|
|
40
|
-
var date = useSchedulerDateContext()[0];
|
|
41
|
-
var isMonthView = dateRange.end.getTime() - dateRange.start.getTime() > MS_PER_DAY * 27;
|
|
42
|
-
var text = intl.format(dateFormat, isMonthView
|
|
43
|
-
? date
|
|
44
|
-
: dateRange.zonedStart, isMonthView
|
|
45
|
-
? date
|
|
46
|
-
: dateRange.zonedEnd.addDays(-1));
|
|
47
|
-
var shortText = intl.format(shortDateFormat, isMonthView
|
|
48
|
-
? date
|
|
49
|
-
: dateRange.zonedStart, isMonthView
|
|
50
|
-
? date
|
|
51
|
-
: dateRange.zonedEnd.addDays(-1));
|
|
52
|
-
var handleClick = React.useCallback(function () { setShow(!show); }, [show]);
|
|
53
|
-
var handleFocus = React.useCallback(function () { setFocused(true); }, []);
|
|
54
|
-
var handleBlur = React.useCallback(function () {
|
|
55
|
-
setShow(false);
|
|
56
|
-
setFocused(false);
|
|
57
|
-
}, []);
|
|
58
|
-
var handleChange = React.useCallback(function (event) {
|
|
59
|
-
if (props.onChange) {
|
|
60
|
-
var normalizedValue = ZonedDate.fromUTCDate(toUTCDateTime(event.value), timezone);
|
|
61
|
-
props.onChange.call(undefined, __assign(__assign({}, event), { value: normalizedValue }));
|
|
62
|
-
}
|
|
63
|
-
setShow(false);
|
|
64
|
-
}, [props.onChange, timezone]);
|
|
65
|
-
var calculateMedia = React.useCallback(function () {
|
|
66
|
-
if (getWindow().matchMedia) {
|
|
67
|
-
setMedia(getWindow().matchMedia('(min-width: 1024px)').matches
|
|
68
|
-
? 'desktop'
|
|
69
|
-
: 'mobile');
|
|
70
|
-
}
|
|
71
|
-
}, [getWindow]);
|
|
72
|
-
React.useEffect(function () {
|
|
73
|
-
calculateMedia();
|
|
74
|
-
var resizeObserver = getWindow().ResizeObserver;
|
|
75
|
-
var observer = resizeObserver && new resizeObserver(calculateMedia);
|
|
76
|
-
if (observer) {
|
|
77
|
-
observer.observe(element.current);
|
|
78
|
-
}
|
|
79
|
-
return function () {
|
|
80
|
-
if (resizeObserver) {
|
|
81
|
-
observer.disconnect();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}, [calculateMedia, element, getWindow]);
|
|
85
|
-
React.useEffect(function () {
|
|
86
|
-
if (show && focused) {
|
|
87
|
-
if (calendar.current) {
|
|
88
|
-
calendar.current.focus();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, [focused, show]);
|
|
92
|
-
var _f = useAsyncFocusBlur({ onFocus: handleFocus, onBlur: handleBlur }), onFocus = _f.onFocus, onBlur = _f.onBlur;
|
|
93
|
-
return (React.createElement(React.Fragment, null,
|
|
94
|
-
React.createElement(Button, { ref: button, onFocus: onFocus, onBlur: onBlur, fillMode: 'flat', className: 'k-nav-current', icon: "calendar", svgIcon: calendarIcon, "aria-live": "polite", tabIndex: -1, onClick: handleClick }, media === 'desktop'
|
|
95
|
-
? text
|
|
96
|
-
: shortText),
|
|
97
|
-
React.createElement(Popup, { anchor: (_a = button.current) === null || _a === void 0 ? void 0 : _a.element, show: show },
|
|
98
|
-
React.createElement(Calendar, { ref: calendar, onFocus: onFocus, onBlur: onBlur, onChange: handleChange, value: value }))));
|
|
99
|
-
});
|
|
100
|
-
NavigationDatePicker.displayName = 'KendoReactSchedulerNavigationDatePicker';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ToolbarItemProps } from '@progress/kendo-react-buttons';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact [SchedulerNavigation]({% slug api_scheduler_schedulernavigation %}) component.
|
|
5
|
-
*/
|
|
6
|
-
/** @hidden */
|
|
7
|
-
export interface SchedulerNavigationProps extends ToolbarItemProps {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Represents the object which is returned from the `ref` callback of the [SchedulerNavigation]({% slug api_scheduler_schedulernavigation %}).
|
|
12
|
-
*
|
|
13
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
14
|
-
*/
|
|
15
|
-
/** @hidden */
|
|
16
|
-
export interface SchedulerNavigationHandle {
|
|
17
|
-
props: SchedulerNavigationProps;
|
|
18
|
-
element: HTMLSpanElement | null;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents the default `navigation` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
22
|
-
*/
|
|
23
|
-
/** @hidden */
|
|
24
|
-
export declare const SchedulerNavigation: React.ForwardRefExoticComponent<SchedulerNavigationProps & React.RefAttributes<SchedulerNavigationHandle>>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import * as React from 'react';
|
|
24
|
-
import { ToolbarItem } from '@progress/kendo-react-buttons';
|
|
25
|
-
import { classNames } from '@progress/kendo-react-common';
|
|
26
|
-
/**
|
|
27
|
-
* Represents the default `navigation` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
28
|
-
*/
|
|
29
|
-
/** @hidden */
|
|
30
|
-
export var SchedulerNavigation = React.forwardRef(function (props, ref) {
|
|
31
|
-
var className = props.className, other = __rest(props, ["className"]);
|
|
32
|
-
var element = React.useRef(null);
|
|
33
|
-
React.useImperativeHandle(ref, function () { return ({ element: element.current, props: props }); });
|
|
34
|
-
return (React.createElement(ToolbarItem, __assign({ ref: function (item) { if (item) {
|
|
35
|
-
element.current = item.element;
|
|
36
|
-
} }, className: classNames(className) }, other), props.children));
|
|
37
|
-
});
|
|
38
|
-
SchedulerNavigation.displayName = 'KendoReactSchedulerSchedulerNavigation';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import * as React from 'react';
|
|
24
|
-
import { ToolbarItem } from '@progress/kendo-react-buttons';
|
|
25
|
-
import { classNames } from '@progress/kendo-react-common';
|
|
26
|
-
/**
|
|
27
|
-
* Represents the default `viewSelector` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
28
|
-
*/
|
|
29
|
-
/** @hidden */
|
|
30
|
-
export var SchedulerViewSelector = React.forwardRef(function (props, ref) {
|
|
31
|
-
var className = props.className, other = __rest(props, ["className"]);
|
|
32
|
-
var element = React.useRef(null);
|
|
33
|
-
React.useImperativeHandle(ref, function () { return ({ element: element.current, props: props }); });
|
|
34
|
-
return (React.createElement(ToolbarItem, __assign({ ref: function (item) { if (item) {
|
|
35
|
-
element.current = item.element;
|
|
36
|
-
} }, className: classNames('k-scheduler-views', className) }, other), props.children));
|
|
37
|
-
});
|
|
38
|
-
SchedulerViewSelector.displayName = 'KendoReactSchedulerViewSelector';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
3
|
-
import { SchedulerViewProps } from '../../../models';
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export interface ViewSelectorItemProps extends ButtonProps {
|
|
6
|
-
view: SchedulerViewProps;
|
|
7
|
-
}
|
|
8
|
-
/** @hidden */
|
|
9
|
-
export declare const ViewSelectorItem: (props: ViewSelectorItemProps) => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Button } from '@progress/kendo-react-buttons';
|
|
3
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
4
|
-
import { useSchedulerActiveViewContext } from '../../../main';
|
|
5
|
-
/** @hidden */
|
|
6
|
-
export var ViewSelectorItem = function (props) {
|
|
7
|
-
var _a = useSchedulerActiveViewContext(), activeViewName = _a[0], setActiveViewName = _a[1];
|
|
8
|
-
var localization = useLocalization();
|
|
9
|
-
var title = React.useMemo(function () { return typeof props.view.title === 'function'
|
|
10
|
-
? props.view.title.call(undefined, localization)
|
|
11
|
-
: props.view.title; }, [props.view.title, localization]);
|
|
12
|
-
var handleClick = React.useCallback(function () { if (props.view.name) {
|
|
13
|
-
setActiveViewName(props.view.name);
|
|
14
|
-
} }, [setActiveViewName, props.view.name]);
|
|
15
|
-
return (React.createElement(Button, { className: 'k-toolbar-button', role: "button", type: "button", tabIndex: -1, togglable: true, selected: props.view.name === activeViewName, onClick: handleClick }, title));
|
|
16
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { useSchedulerViewsContext } from '../../../main';
|
|
14
|
-
import { useSchedulerActiveViewContext } from '../../../context';
|
|
15
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
16
|
-
import { DropDownButton } from '@progress/kendo-react-buttons';
|
|
17
|
-
import { IconWrap, classNames, useWindow } from '@progress/kendo-react-common';
|
|
18
|
-
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
19
|
-
import { ViewSelectorItem } from './ViewSelectorItem';
|
|
20
|
-
/** @hidden */
|
|
21
|
-
export var ViewSelectorList = React.forwardRef(function () {
|
|
22
|
-
var element = React.useRef(null);
|
|
23
|
-
var _a = React.useState('desktop'), media = _a[0], setMedia = _a[1];
|
|
24
|
-
var views = useSchedulerViewsContext();
|
|
25
|
-
var getWindow = useWindow(element);
|
|
26
|
-
var _b = useSchedulerActiveViewContext(), activeViewName = _b[0], setActiveViewName = _b[1];
|
|
27
|
-
var activeView = views.find(function (v) { return v.props.name === activeViewName; });
|
|
28
|
-
var localization = useLocalization();
|
|
29
|
-
var handleItemClick = React.useCallback(function (event) {
|
|
30
|
-
if (!setActiveViewName) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
event.syntheticEvent.preventDefault();
|
|
34
|
-
setActiveViewName(event.item.name);
|
|
35
|
-
}, [setActiveViewName]);
|
|
36
|
-
var calculateMedia = function () {
|
|
37
|
-
if (getWindow().matchMedia) {
|
|
38
|
-
setMedia(getWindow().matchMedia('(min-width: 1024px)').matches
|
|
39
|
-
? 'desktop'
|
|
40
|
-
: 'mobile');
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
React.useEffect(function () {
|
|
44
|
-
calculateMedia();
|
|
45
|
-
var resizeObserver = getWindow().ResizeObserver;
|
|
46
|
-
var observer = resizeObserver && new resizeObserver(calculateMedia);
|
|
47
|
-
if (observer) {
|
|
48
|
-
observer.observe(element.current);
|
|
49
|
-
}
|
|
50
|
-
return function () {
|
|
51
|
-
if (observer) {
|
|
52
|
-
observer.disconnect();
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}, []);
|
|
56
|
-
return (React.createElement("div", { className: classNames('k-toolbar-button-group k-button-group k-button-group-solid', {
|
|
57
|
-
'k-scheduler-views': media === 'desktop',
|
|
58
|
-
'k-scheduler-tools': media === 'mobile'
|
|
59
|
-
}), role: 'group', ref: element },
|
|
60
|
-
(activeView && media === 'mobile') && (React.createElement(DropDownButton, { className: "k-views-dropdown", onItemClick: handleItemClick, popupSettings: { popupClass: 'k-scheduler-toolbar' }, textField: "title", items: views.map(function (v) { return (__assign(__assign({}, v.props), { selected: v.props.name === activeViewName, title: typeof v.props.title === 'function'
|
|
61
|
-
? v.props.title.call(undefined, localization)
|
|
62
|
-
: v.props.title })); }), text: (React.createElement(React.Fragment, null,
|
|
63
|
-
typeof activeView.props.title === 'function'
|
|
64
|
-
? activeView.props.title.call(undefined, localization)
|
|
65
|
-
: activeView.props.title,
|
|
66
|
-
React.createElement(IconWrap, { name: "caret-alt-down", icon: caretAltDownIcon }))) })),
|
|
67
|
-
(media === 'desktop') && (React.createElement(React.Fragment, null, views.map(function (view) { return (React.createElement(ViewSelectorItem, { key: view.props.name, view: view.props })); })))));
|
|
68
|
-
});
|
|
69
|
-
ViewSelectorList.displayName = 'KendoReactSchedulerViewSelectorList';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Range, Group } from '../models';
|
|
3
|
-
/** @hidden */
|
|
4
|
-
export { MS_PER_DAY } from '@progress/kendo-date-math';
|
|
5
|
-
/** @hidden */
|
|
6
|
-
export declare const MIDNIGHT_INVARIANT: Date;
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export declare const MS_PER_SECOND = 1000;
|
|
9
|
-
/** @hidden */
|
|
10
|
-
export declare const MS_PER_MINUTE: number;
|
|
11
|
-
/** @hidden */
|
|
12
|
-
export declare const MS_PER_HOUR: number;
|
|
13
|
-
/** @hidden */
|
|
14
|
-
export declare const TIME_FORMAT = "t";
|
|
15
|
-
/** @hidden */
|
|
16
|
-
export declare const BORDER_WIDTH = 1;
|
|
17
|
-
/** @hidden */
|
|
18
|
-
export declare const DEFAULT_EVENT_HEIGHT = 25;
|
|
19
|
-
/** @hidden */
|
|
20
|
-
export declare const DAYS_IN_WEEK_COUNT = 7;
|
|
21
|
-
/** @hidden */
|
|
22
|
-
export declare const WEEKS_COUNT = 6;
|
|
23
|
-
/** @hidden */
|
|
24
|
-
export declare const HOURS_IN_DAY_COUNT = 24;
|
|
25
|
-
/** @hidden */
|
|
26
|
-
export declare const EMPTY_RESOURCE: {}[];
|
|
27
|
-
/** @hidden */
|
|
28
|
-
export declare const OCCURRENCE_ID = 0;
|
|
29
|
-
/** @hidden */
|
|
30
|
-
export declare const DEFAULT_ID: undefined;
|
|
31
|
-
/** @hidden */
|
|
32
|
-
export declare const DISPLAY_NONE_STYLES: React.CSSProperties;
|
|
33
|
-
/** @hidden */
|
|
34
|
-
export declare const VISIBILITY_HIDDEN_STYLES: React.CSSProperties;
|
|
35
|
-
/** @hidden */
|
|
36
|
-
export declare const DEFAULT_GROUP: Group;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const MIN_DATE: Date;
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export declare const MAX_DATE: Date;
|
|
45
|
-
/** @hidden */
|
|
46
|
-
export declare const DEFAULT_RANGE: Range;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ZonedDate } from '@progress/kendo-date-math';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
export { MS_PER_DAY } from '@progress/kendo-date-math';
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export var MIDNIGHT_INVARIANT = new Date(1980, 0, 1);
|
|
6
|
-
/** @hidden */
|
|
7
|
-
export var MS_PER_SECOND = 1000;
|
|
8
|
-
/** @hidden */
|
|
9
|
-
export var MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
|
10
|
-
/** @hidden */
|
|
11
|
-
export var MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
|
12
|
-
/** @hidden */
|
|
13
|
-
export var TIME_FORMAT = 't';
|
|
14
|
-
// probably should calculate this
|
|
15
|
-
/** @hidden */
|
|
16
|
-
export var BORDER_WIDTH = 1;
|
|
17
|
-
/** @hidden */
|
|
18
|
-
export var DEFAULT_EVENT_HEIGHT = 25;
|
|
19
|
-
/** @hidden */
|
|
20
|
-
export var DAYS_IN_WEEK_COUNT = 7;
|
|
21
|
-
/** @hidden */
|
|
22
|
-
export var WEEKS_COUNT = 6;
|
|
23
|
-
/** @hidden */
|
|
24
|
-
export var HOURS_IN_DAY_COUNT = 24;
|
|
25
|
-
/** @hidden */
|
|
26
|
-
export var EMPTY_RESOURCE = [{}];
|
|
27
|
-
/** @hidden */
|
|
28
|
-
export var OCCURRENCE_ID = 0;
|
|
29
|
-
/** @hidden */
|
|
30
|
-
export var DEFAULT_ID = undefined;
|
|
31
|
-
/** @hidden */
|
|
32
|
-
export var DISPLAY_NONE_STYLES = { display: 'none' };
|
|
33
|
-
/** @hidden */
|
|
34
|
-
export var VISIBILITY_HIDDEN_STYLES = { visibility: 'hidden' };
|
|
35
|
-
/** @hidden */
|
|
36
|
-
export var DEFAULT_GROUP = {
|
|
37
|
-
index: 0,
|
|
38
|
-
resources: []
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export var MIN_DATE = new Date(1900, 0, 1);
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
export var MAX_DATE = new Date(2099, 11, 31);
|
|
48
|
-
/** @hidden */
|
|
49
|
-
export var DEFAULT_RANGE = {
|
|
50
|
-
index: 0,
|
|
51
|
-
start: MIN_DATE,
|
|
52
|
-
end: MAX_DATE,
|
|
53
|
-
zonedStart: ZonedDate.fromLocalDate(MIN_DATE),
|
|
54
|
-
zonedEnd: ZonedDate.fromLocalDate(MAX_DATE)
|
|
55
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { defaultModelFields, noop } from '../utils';
|
|
3
|
-
import { DEFAULT_GROUP } from '../constants';
|
|
4
|
-
import { ZonedDate } from '@progress/kendo-date-math';
|
|
5
|
-
/** @hidden */
|
|
6
|
-
export var SchedulerElementContext = React.createContext({ current: null });
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export var useSchedulerElementContext = function () { return React.useContext(SchedulerElementContext); };
|
|
9
|
-
SchedulerElementContext.displayName = 'SchedulerElementContext';
|
|
10
|
-
/**
|
|
11
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [Scheduler]({% slug api_scheduler_scheduler %}) props.
|
|
12
|
-
*
|
|
13
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
14
|
-
*/
|
|
15
|
-
export var SchedulerPropsContext = React.createContext({});
|
|
16
|
-
/**
|
|
17
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [Scheduler]({% slug api_scheduler_scheduler %}) props.
|
|
18
|
-
*
|
|
19
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
20
|
-
*
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export var useSchedulerPropsContext = function () { return React.useContext(SchedulerPropsContext); };
|
|
24
|
-
SchedulerPropsContext.displayName = 'SchedulerPropsContext';
|
|
25
|
-
/**
|
|
26
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
27
|
-
*
|
|
28
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
29
|
-
*/
|
|
30
|
-
export var SchedulerViewsContext = React.createContext([]);
|
|
31
|
-
/**
|
|
32
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
33
|
-
*
|
|
34
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
35
|
-
*
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
export var useSchedulerViewsContext = function () { return React.useContext(SchedulerViewsContext); };
|
|
39
|
-
SchedulerViewsContext.displayName = 'SchedulerViewsContext';
|
|
40
|
-
/**
|
|
41
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
|
|
42
|
-
*
|
|
43
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
44
|
-
*/
|
|
45
|
-
export var SchedulerFieldsContext = React.createContext(defaultModelFields);
|
|
46
|
-
/**
|
|
47
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
|
|
48
|
-
*
|
|
49
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
50
|
-
*
|
|
51
|
-
* @returns
|
|
52
|
-
*/
|
|
53
|
-
export var useSchedulerFieldsContext = function () { return React.useContext(SchedulerFieldsContext); };
|
|
54
|
-
SchedulerFieldsContext.displayName = 'SchedulerFieldsContext';
|
|
55
|
-
/**
|
|
56
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
|
|
57
|
-
*
|
|
58
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
59
|
-
*/
|
|
60
|
-
export var SchedulerDateFormatContext = React.createContext({ dateFormat: '{0:D}', shortDateFormat: '{0:d}' });
|
|
61
|
-
/**
|
|
62
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
|
|
63
|
-
*
|
|
64
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
65
|
-
*
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
export var useSchedulerDateFormatContext = function () { return React.useContext(SchedulerDateFormatContext); };
|
|
69
|
-
SchedulerDateFormatContext.displayName = 'SchedulerDateFormatContext';
|
|
70
|
-
/**
|
|
71
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources).
|
|
72
|
-
*
|
|
73
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
74
|
-
*/
|
|
75
|
-
export var SchedulerGroupsContext = React.createContext([DEFAULT_GROUP]);
|
|
76
|
-
/**
|
|
77
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources).
|
|
78
|
-
*
|
|
79
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
80
|
-
*
|
|
81
|
-
* @returns
|
|
82
|
-
*/
|
|
83
|
-
export var useSchedulerGroupsContext = function () { return React.useContext(SchedulerGroupsContext); };
|
|
84
|
-
SchedulerGroupsContext.displayName = 'SchedulerGroupsContext';
|
|
85
|
-
/**
|
|
86
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the `dateRange` of the current view.
|
|
87
|
-
*
|
|
88
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
89
|
-
*/
|
|
90
|
-
export var SchedulerDateRangeContext = React.createContext({ start: new Date(), end: new Date(), zonedStart: ZonedDate.fromLocalDate(new Date()), zonedEnd: ZonedDate.fromLocalDate(new Date()) });
|
|
91
|
-
/**
|
|
92
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the `dateRange` of the current view.
|
|
93
|
-
*
|
|
94
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
95
|
-
*
|
|
96
|
-
* @returns
|
|
97
|
-
*/
|
|
98
|
-
export var useSchedulerDateRangeContext = function () { return React.useContext(SchedulerDateRangeContext); };
|
|
99
|
-
SchedulerDateRangeContext.displayName = 'SchedulerDateRangeContext';
|
|
100
|
-
/**
|
|
101
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the grouping orientation of the Scheduler.
|
|
102
|
-
*
|
|
103
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
104
|
-
*/
|
|
105
|
-
export var SchedulerOrientationContext = React.createContext(null);
|
|
106
|
-
/**
|
|
107
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the grouping orientation of the Scheduler.
|
|
108
|
-
*
|
|
109
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
110
|
-
*
|
|
111
|
-
* @returns
|
|
112
|
-
*/
|
|
113
|
-
export var useSchedulerOrientationContext = function () { return React.useContext(SchedulerOrientationContext); };
|
|
114
|
-
SchedulerOrientationContext.displayName = 'SchedulerOrientationContext';
|
|
115
|
-
/**
|
|
116
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `date` state.
|
|
117
|
-
*
|
|
118
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
119
|
-
*/
|
|
120
|
-
export var SchedulerDateContext = React.createContext([new Date(), noop]);
|
|
121
|
-
/**
|
|
122
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `date` state.
|
|
123
|
-
*
|
|
124
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
125
|
-
*
|
|
126
|
-
* @returns
|
|
127
|
-
*/
|
|
128
|
-
export var useSchedulerDateContext = function () { return React.useContext(SchedulerDateContext); };
|
|
129
|
-
SchedulerDateContext.displayName = 'SchedulerDateContext';
|
|
130
|
-
/**
|
|
131
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `data` reducer.
|
|
132
|
-
*
|
|
133
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
134
|
-
*/
|
|
135
|
-
export var SchedulerDataContext = React.createContext([[], noop]);
|
|
136
|
-
/**
|
|
137
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `data` reducer.
|
|
138
|
-
*
|
|
139
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
140
|
-
*
|
|
141
|
-
* @returns
|
|
142
|
-
*/
|
|
143
|
-
export var useSchedulerDataContext = function () { return React.useContext(SchedulerDataContext); };
|
|
144
|
-
SchedulerDataContext.displayName = 'SchedulerDataContext';
|
|
145
|
-
/**
|
|
146
|
-
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `activeView` state.
|
|
147
|
-
*
|
|
148
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
149
|
-
*/
|
|
150
|
-
export var SchedulerActiveViewContext = React.createContext(['day', noop]);
|
|
151
|
-
/**
|
|
152
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `activeView` state.
|
|
153
|
-
*
|
|
154
|
-
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
155
|
-
*
|
|
156
|
-
* @returns
|
|
157
|
-
*/
|
|
158
|
-
export var useSchedulerActiveViewContext = function () { return React.useContext(SchedulerActiveViewContext); };
|
|
159
|
-
SchedulerActiveViewContext.displayName = 'SchedulerActiveViewContext';
|
|
160
|
-
/**
|
|
161
|
-
* @hidden
|
|
162
|
-
*/
|
|
163
|
-
export var SchedulerItemSelectionContext = React.createContext([null, function () { }]);
|
|
164
|
-
/**
|
|
165
|
-
* @hidden
|
|
166
|
-
*/
|
|
167
|
-
export var useSchedulerItemSelectionContext = function () { return React.useContext(SchedulerItemSelectionContext); };
|
|
168
|
-
SchedulerItemSelectionContext.displayName = 'SchedulerItemSelectionContext';
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
*/
|
|
172
|
-
/** @hidden */
|
|
173
|
-
export var SchedulerContext = function (_a) {
|
|
174
|
-
var children = _a.children, element = _a.element, props = _a.props, views = _a.views, fields = _a.fields, groups = _a.groups, dateRange = _a.dateRange, dateFormat = _a.dateFormat, orientation = _a.orientation, date = _a.date, data = _a.data, activeView = _a.activeView, selection = _a.selection;
|
|
175
|
-
return (React.createElement(SchedulerElementContext.Provider, { value: element },
|
|
176
|
-
React.createElement(SchedulerPropsContext.Provider, { value: props },
|
|
177
|
-
React.createElement(SchedulerViewsContext.Provider, { value: views },
|
|
178
|
-
React.createElement(SchedulerFieldsContext.Provider, { value: fields },
|
|
179
|
-
React.createElement(SchedulerDateFormatContext.Provider, { value: dateFormat },
|
|
180
|
-
React.createElement(SchedulerGroupsContext.Provider, { value: groups },
|
|
181
|
-
React.createElement(SchedulerDateRangeContext.Provider, { value: dateRange },
|
|
182
|
-
React.createElement(SchedulerOrientationContext.Provider, { value: orientation },
|
|
183
|
-
React.createElement(SchedulerDateContext.Provider, { value: date },
|
|
184
|
-
React.createElement(SchedulerDataContext.Provider, { value: data },
|
|
185
|
-
React.createElement(SchedulerActiveViewContext.Provider, { value: activeView },
|
|
186
|
-
React.createElement(SchedulerItemSelectionContext.Provider, { value: selection }, children)))))))))))));
|
|
187
|
-
};
|