@progress/kendo-react-scheduler 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-scheduler.js +2 -16
- package/dist/cdn/js/kendo-react-scheduler.js.LICENSE.txt +14 -0
- package/dist/es/Scheduler.d.ts +1 -1
- package/dist/es/Scheduler.js +18 -9
- package/dist/es/components/BaseView.d.ts +1 -1
- package/dist/es/components/CurrentTimeMarket.js +5 -5
- package/dist/es/components/DateHeaderCell.d.ts +1 -1
- package/dist/es/components/DateHeaderCell.js +4 -2
- package/dist/es/components/SchedulerForm.d.ts +1 -1
- package/dist/es/components/SchedulerForm.js +5 -3
- package/dist/es/components/SchedulerOccurrenceDialog.d.ts +1 -1
- package/dist/es/components/SchedulerRemoveDialog.d.ts +1 -1
- package/dist/es/components/SchedulerRemoveDialog.js +6 -1
- package/dist/es/components/TimeHeaderCell.d.ts +1 -1
- package/dist/es/components/TimeHeaderCell.js +4 -2
- package/dist/es/components/footer/SchedulerFooter.js +4 -2
- package/dist/es/components/footer/bussiness-hours/BussinessHours.js +4 -2
- package/dist/es/components/header/SchedulerHeader.js +4 -2
- package/dist/es/components/header/navigation/NavigationDatePicker.d.ts +2 -2
- package/dist/es/components/header/navigation/NavigationDatePicker.js +1 -1
- package/dist/es/components/header/navigation/SchedulerNavigation.js +4 -2
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -2
- package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/es/components/header/view-selector/ViewSelectorList.js +1 -1
- package/dist/es/constants/index.d.ts +1 -1
- package/dist/es/context/SchedulerContext.d.ts +17 -17
- package/dist/es/context/SchedulerEditItemContext.d.ts +13 -61
- package/dist/es/context/SchedulerEditSlotContext.d.ts +3 -3
- package/dist/es/context/SchedulerEditTaskContext.d.ts +6 -6
- package/dist/es/context/SchedulerViewContext.d.ts +14 -14
- package/dist/es/editors/FilterableComboBox.js +4 -2
- package/dist/es/editors/SchedulerFormEditor.d.ts +1 -1
- package/dist/es/editors/SchedulerFormEditor.js +4 -2
- package/dist/es/editors/ZonedDateTime.js +4 -2
- package/dist/es/hooks/use-items-focus.d.ts +1 -1
- package/dist/es/hooks/use-items-selection.d.ts +1 -1
- package/dist/es/hooks/use-items-selection.js +11 -2
- package/dist/es/hooks/use-slots-focus.d.ts +6 -6
- package/dist/es/hooks/use-slots-selection.js +10 -1
- package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
- package/dist/es/hooks/useCellSync.js +1 -1
- package/dist/es/hooks/useControlledState.d.ts +10 -12
- package/dist/es/hooks/useControlledState.js +1 -1
- package/dist/es/hooks/useEditable.d.ts +1 -1
- package/dist/es/hooks/usePropOrState.d.ts +1 -1
- package/dist/es/hooks/useRowSync.d.ts +1 -1
- package/dist/es/hooks/useSchedulerItem.d.ts +1 -1
- package/dist/es/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/es/hooks/useSlotExpand.js +1 -1
- package/dist/es/items/SchedulerEditItem.js +40 -40
- package/dist/es/items/SchedulerItem.js +1 -1
- package/dist/es/items/SchedulerViewItem.js +5 -3
- package/dist/es/items/hooks/use-drag-item.d.ts +6 -2
- package/dist/es/items/hooks/use-drag-item.js +10 -1
- package/dist/es/items/hooks/use-form-item.d.ts +5 -1
- package/dist/es/items/hooks/use-remove-item.d.ts +5 -1
- package/dist/es/items/hooks/use-resize-item.d.ts +6 -2
- package/dist/es/items/hooks/use-resize-item.js +11 -2
- package/dist/es/items/hooks/use-series.d.ts +2 -1
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
- package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +2 -1
- package/dist/es/messages/index.d.ts +76 -76
- package/dist/es/models/DataItem.js +1 -0
- package/dist/es/models/DateRange.js +1 -0
- package/dist/es/models/EditableProp.js +1 -0
- package/dist/es/models/Fields.js +1 -0
- package/dist/es/models/Group.js +1 -0
- package/dist/es/models/Item.js +1 -0
- package/dist/es/models/NavigationAction.js +1 -0
- package/dist/es/models/Occurrence.js +1 -0
- package/dist/es/models/Omit.js +1 -0
- package/dist/es/models/Orientation.js +1 -0
- package/dist/es/models/Range.js +1 -0
- package/dist/es/models/Rect.js +1 -0
- package/dist/es/models/Resource.js +1 -0
- package/dist/es/models/SchedulerGroup.js +1 -0
- package/dist/es/models/SchedulerHandle.js +1 -0
- package/dist/es/models/SchedulerModelFields.js +1 -0
- package/dist/es/models/SchedulerResource.js +1 -0
- package/dist/es/models/SchedulerView.js +1 -0
- package/dist/es/models/Slot.js +1 -0
- package/dist/es/models/events.js +1 -0
- package/dist/es/models/index.js +17 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -2
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +15 -4
- package/dist/es/recurrence/common.d.ts +5 -5
- package/dist/es/recurrence/types/EndRule.js +1 -0
- package/dist/es/recurrence/types/Frequency.js +1 -0
- package/dist/es/recurrence/types/FrequencyEntity.js +1 -0
- package/dist/es/recurrence/types/MonthEntity.js +1 -0
- package/dist/es/recurrence/types/OffsetPosition.js +1 -0
- package/dist/es/recurrence/types/OffsetPositionEntity.js +1 -0
- package/dist/es/recurrence/types/RepeatOnRule.js +1 -0
- package/dist/es/recurrence/types/WeekDayEntity.js +1 -0
- package/dist/es/recurrence/types/WeekDayRule.js +1 -0
- package/dist/es/reducers/editReducer.js +6 -6
- package/dist/es/services/itemsService.js +1 -7
- package/dist/es/services/occurrenceService.d.ts +2 -2
- package/dist/es/services/occurrenceService.js +11 -2
- package/dist/es/slots/SchedulerEditSlot.js +4 -2
- package/dist/es/slots/SchedulerSlot.js +1 -1
- package/dist/es/slots/SchedulerViewSlot.js +4 -2
- package/dist/es/tasks/SchedulerEditTask.js +4 -2
- package/dist/es/tasks/SchedulerViewTask.js +4 -2
- package/dist/es/utils/index.d.ts +16 -16
- package/dist/es/utils/index.js +20 -10
- package/dist/es/views/agenda/AgendaView.js +2 -2
- package/dist/es/views/common/HorizontalResourceIterator.d.ts +2 -2
- package/dist/es/views/common/utils.d.ts +3 -3
- package/dist/es/views/common/utils.js +16 -7
- package/dist/es/views/day/DayViewGroupRowContent.d.ts +1 -1
- package/dist/es/views/day/MultiDayView.js +22 -13
- package/dist/es/views/month/MonthView.js +2 -2
- package/dist/es/views/time/MultiDayTimelineView.js +3 -3
- package/dist/es/views/week/WorkWeekView.js +4 -2
- package/dist/npm/Scheduler.d.ts +1 -1
- package/dist/npm/Scheduler.js +72 -62
- package/dist/npm/components/BaseView.d.ts +1 -1
- package/dist/npm/components/BaseView.js +10 -9
- package/dist/npm/components/CurrentTimeMarket.js +21 -19
- package/dist/npm/components/DateHeaderCell.d.ts +1 -1
- package/dist/npm/components/DateHeaderCell.js +7 -4
- package/dist/npm/components/SchedulerForm.d.ts +1 -1
- package/dist/npm/components/SchedulerForm.js +8 -5
- package/dist/npm/components/SchedulerOccurrenceDialog.d.ts +1 -1
- package/dist/npm/components/SchedulerOccurrenceDialog.js +2 -1
- package/dist/npm/components/SchedulerRemoveDialog.d.ts +1 -1
- package/dist/npm/components/SchedulerRemoveDialog.js +8 -2
- package/dist/npm/components/ShowMoreItemsButton.js +1 -0
- package/dist/npm/components/TimeHeaderCell.d.ts +1 -1
- package/dist/npm/components/TimeHeaderCell.js +7 -4
- package/dist/npm/components/footer/SchedulerFooter.js +6 -3
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +6 -3
- package/dist/npm/components/header/SchedulerHeader.js +6 -3
- package/dist/npm/components/header/navigation/NavigationDatePicker.d.ts +2 -2
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +9 -8
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +6 -3
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +6 -3
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +5 -3
- package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +6 -5
- package/dist/npm/constants/index.d.ts +1 -1
- package/dist/npm/constants/index.js +2 -1
- package/dist/npm/context/SchedulerContext.d.ts +17 -17
- package/dist/npm/context/SchedulerContext.js +25 -12
- package/dist/npm/context/SchedulerEditItemContext.d.ts +13 -61
- package/dist/npm/context/SchedulerEditItemContext.js +17 -8
- package/dist/npm/context/SchedulerEditSlotContext.d.ts +3 -3
- package/dist/npm/context/SchedulerEditSlotContext.js +7 -3
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +6 -6
- package/dist/npm/context/SchedulerEditTaskContext.js +9 -4
- package/dist/npm/context/SchedulerResourceIteratorContext.js +3 -1
- package/dist/npm/context/SchedulerViewContext.d.ts +14 -14
- package/dist/npm/context/SchedulerViewContext.js +19 -9
- package/dist/npm/context/index.js +19 -8
- package/dist/npm/editors/FilterableComboBox.js +8 -4
- package/dist/npm/editors/ResourceEditor.js +4 -2
- package/dist/npm/editors/SchedulerFormEditor.d.ts +1 -1
- package/dist/npm/editors/SchedulerFormEditor.js +10 -7
- package/dist/npm/editors/ZonedDateTime.js +9 -5
- package/dist/npm/editors/common.js +7 -4
- package/dist/npm/hooks/index.js +24 -13
- package/dist/npm/hooks/use-items-focus.d.ts +1 -1
- package/dist/npm/hooks/use-items-focus.js +5 -3
- package/dist/npm/hooks/use-items-selection.d.ts +1 -1
- package/dist/npm/hooks/use-items-selection.js +16 -5
- package/dist/npm/hooks/use-slots-focus.d.ts +6 -6
- package/dist/npm/hooks/use-slots-focus.js +15 -9
- package/dist/npm/hooks/use-slots-selection.js +13 -2
- package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +3 -1
- package/dist/npm/hooks/useCellSync.js +6 -4
- package/dist/npm/hooks/useControlledState.d.ts +10 -12
- package/dist/npm/hooks/useControlledState.js +4 -2
- package/dist/npm/hooks/useEditable.d.ts +1 -1
- package/dist/npm/hooks/useEditable.js +3 -1
- package/dist/npm/hooks/usePropOrState.d.ts +1 -1
- package/dist/npm/hooks/usePropOrState.js +3 -1
- package/dist/npm/hooks/useRowSync.d.ts +1 -1
- package/dist/npm/hooks/useRowSync.js +5 -3
- package/dist/npm/hooks/useSchedulerItem.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerItem.js +4 -2
- package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerSlot.js +4 -2
- package/dist/npm/hooks/useSlotExpand.js +8 -6
- package/dist/npm/hooks/useWorkHours.js +4 -2
- package/dist/npm/items/SchedulerEditItem.js +53 -52
- package/dist/npm/items/SchedulerItem.js +12 -11
- package/dist/npm/items/SchedulerItemContent.js +2 -1
- package/dist/npm/items/SchedulerViewItem.js +19 -16
- package/dist/npm/items/hooks/use-drag-item.d.ts +6 -2
- package/dist/npm/items/hooks/use-drag-item.js +39 -28
- package/dist/npm/items/hooks/use-form-item.d.ts +5 -1
- package/dist/npm/items/hooks/use-form-item.js +6 -4
- package/dist/npm/items/hooks/use-remove-item.d.ts +5 -1
- package/dist/npm/items/hooks/use-remove-item.js +3 -1
- package/dist/npm/items/hooks/use-resize-item.d.ts +6 -2
- package/dist/npm/items/hooks/use-resize-item.js +44 -33
- package/dist/npm/items/hooks/use-series.d.ts +2 -1
- package/dist/npm/items/hooks/use-series.js +4 -2
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +4 -2
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +2 -1
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +4 -2
- package/dist/npm/main.js +76 -74
- package/dist/npm/messages/index.d.ts +76 -76
- package/dist/npm/messages/index.js +3 -1
- package/dist/npm/models/index.js +31 -0
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/recurrence/RecurrenceEditor.js +26 -24
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +7 -3
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +19 -6
- package/dist/npm/recurrence/common.d.ts +5 -5
- package/dist/npm/recurrence/common.js +51 -32
- package/dist/npm/reducers/editReducer.js +9 -7
- package/dist/npm/reducers/index.js +15 -4
- package/dist/npm/services/index.js +18 -7
- package/dist/npm/services/itemsService.js +15 -16
- package/dist/npm/services/occurrenceService.d.ts +2 -2
- package/dist/npm/services/occurrenceService.js +39 -28
- package/dist/npm/services/rangeService.js +3 -1
- package/dist/npm/services/slotsService.js +3 -1
- package/dist/npm/slots/SchedulerEditSlot.js +20 -17
- package/dist/npm/slots/SchedulerSlot.js +5 -4
- package/dist/npm/slots/SchedulerViewSlot.js +6 -3
- package/dist/npm/tasks/SchedulerEditTask.js +12 -9
- package/dist/npm/tasks/SchedulerTask.js +4 -3
- package/dist/npm/tasks/SchedulerViewTask.js +5 -2
- package/dist/npm/utils/index.d.ts +16 -16
- package/dist/npm/utils/index.js +130 -80
- package/dist/npm/views/agenda/AgendaView.js +26 -24
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +4 -2
- package/dist/npm/views/common/HorizontalResourceIterator.d.ts +2 -2
- package/dist/npm/views/common/HorizontalResourceIterator.js +8 -5
- package/dist/npm/views/common/SchedulerDrag.js +12 -10
- package/dist/npm/views/common/SchedulerResize.js +12 -10
- package/dist/npm/views/common/VerticalResourceIterator.js +4 -2
- package/dist/npm/views/common/utils.d.ts +3 -3
- package/dist/npm/views/common/utils.js +37 -18
- package/dist/npm/views/day/DayView.js +3 -1
- package/dist/npm/views/day/DayViewAllDayRowContent.js +4 -2
- package/dist/npm/views/day/DayViewGroupRowContent.d.ts +1 -1
- package/dist/npm/views/day/DayViewGroupRowContent.js +3 -1
- package/dist/npm/views/day/DayViewRowContent.js +4 -2
- package/dist/npm/views/day/MultiDayView.js +56 -45
- package/dist/npm/views/month/MonthView.js +26 -24
- package/dist/npm/views/time/MultiDayTimelineView.js +32 -30
- package/dist/npm/views/time/TimelineView.js +3 -1
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +4 -2
- package/dist/npm/views/time/TimelineViewRowContent.js +3 -1
- package/dist/npm/views/week/WeekView.js +8 -6
- package/dist/npm/views/week/WorkWeekView.js +12 -8
- package/dist/systemjs/kendo-react-scheduler.js +1 -1
- package/package.json +12 -12
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerContext = exports.useSchedulerActiveViewContext = exports.SchedulerActiveViewContext = exports.useSchedulerDataContext = exports.SchedulerDataContext = exports.useSchedulerDateContext = exports.SchedulerDateContext = exports.useSchedulerOrientationContext = exports.SchedulerOrientationContext = exports.useSchedulerDateRangeContext = exports.SchedulerDateRangeContext = exports.useSchedulerGroupsContext = exports.SchedulerGroupsContext = exports.useSchedulerDateFormatContext = exports.SchedulerDateFormatContext = exports.useSchedulerFieldsContext = exports.SchedulerFieldsContext = exports.useSchedulerViewsContext = exports.SchedulerViewsContext = exports.useSchedulerPropsContext = exports.SchedulerPropsContext = exports.useSchedulerElementContext = exports.SchedulerElementContext = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var utils_1 = require("../utils");
|
|
5
6
|
var constants_1 = require("../constants");
|
|
@@ -7,7 +8,8 @@ var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
|
7
8
|
/** @hidden */
|
|
8
9
|
exports.SchedulerElementContext = React.createContext({ current: null });
|
|
9
10
|
/** @hidden */
|
|
10
|
-
|
|
11
|
+
var useSchedulerElementContext = function () { return React.useContext(exports.SchedulerElementContext); };
|
|
12
|
+
exports.useSchedulerElementContext = useSchedulerElementContext;
|
|
11
13
|
exports.SchedulerElementContext.displayName = 'SchedulerElementContext';
|
|
12
14
|
/**
|
|
13
15
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [Scheduler]({% slug api_scheduler_scheduler %}) props.
|
|
@@ -22,7 +24,8 @@ exports.SchedulerPropsContext = React.createContext({});
|
|
|
22
24
|
*
|
|
23
25
|
* @returns
|
|
24
26
|
*/
|
|
25
|
-
|
|
27
|
+
var useSchedulerPropsContext = function () { return React.useContext(exports.SchedulerPropsContext); };
|
|
28
|
+
exports.useSchedulerPropsContext = useSchedulerPropsContext;
|
|
26
29
|
exports.SchedulerPropsContext.displayName = 'SchedulerPropsContext';
|
|
27
30
|
/**
|
|
28
31
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
@@ -37,7 +40,8 @@ exports.SchedulerViewsContext = React.createContext([]);
|
|
|
37
40
|
*
|
|
38
41
|
* @returns
|
|
39
42
|
*/
|
|
40
|
-
|
|
43
|
+
var useSchedulerViewsContext = function () { return React.useContext(exports.SchedulerViewsContext); };
|
|
44
|
+
exports.useSchedulerViewsContext = useSchedulerViewsContext;
|
|
41
45
|
exports.SchedulerViewsContext.displayName = 'SchedulerViewsContext';
|
|
42
46
|
/**
|
|
43
47
|
* 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.
|
|
@@ -52,7 +56,8 @@ exports.SchedulerFieldsContext = React.createContext(utils_1.defaultModelFields)
|
|
|
52
56
|
*
|
|
53
57
|
* @returns
|
|
54
58
|
*/
|
|
55
|
-
|
|
59
|
+
var useSchedulerFieldsContext = function () { return React.useContext(exports.SchedulerFieldsContext); };
|
|
60
|
+
exports.useSchedulerFieldsContext = useSchedulerFieldsContext;
|
|
56
61
|
exports.SchedulerFieldsContext.displayName = 'SchedulerFieldsContext';
|
|
57
62
|
/**
|
|
58
63
|
* 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.
|
|
@@ -67,7 +72,8 @@ exports.SchedulerDateFormatContext = React.createContext({ dateFormat: '{0:D}',
|
|
|
67
72
|
*
|
|
68
73
|
* @returns
|
|
69
74
|
*/
|
|
70
|
-
|
|
75
|
+
var useSchedulerDateFormatContext = function () { return React.useContext(exports.SchedulerDateFormatContext); };
|
|
76
|
+
exports.useSchedulerDateFormatContext = useSchedulerDateFormatContext;
|
|
71
77
|
exports.SchedulerDateFormatContext.displayName = 'SchedulerDateFormatContext';
|
|
72
78
|
/**
|
|
73
79
|
* 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).
|
|
@@ -82,7 +88,8 @@ exports.SchedulerGroupsContext = React.createContext([constants_1.DEFAULT_GROUP]
|
|
|
82
88
|
*
|
|
83
89
|
* @returns
|
|
84
90
|
*/
|
|
85
|
-
|
|
91
|
+
var useSchedulerGroupsContext = function () { return React.useContext(exports.SchedulerGroupsContext); };
|
|
92
|
+
exports.useSchedulerGroupsContext = useSchedulerGroupsContext;
|
|
86
93
|
exports.SchedulerGroupsContext.displayName = 'SchedulerGroupsContext';
|
|
87
94
|
/**
|
|
88
95
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the `dateRange` of the current view.
|
|
@@ -97,7 +104,8 @@ exports.SchedulerDateRangeContext = React.createContext({ start: new Date(), end
|
|
|
97
104
|
*
|
|
98
105
|
* @returns
|
|
99
106
|
*/
|
|
100
|
-
|
|
107
|
+
var useSchedulerDateRangeContext = function () { return React.useContext(exports.SchedulerDateRangeContext); };
|
|
108
|
+
exports.useSchedulerDateRangeContext = useSchedulerDateRangeContext;
|
|
101
109
|
exports.SchedulerDateRangeContext.displayName = 'SchedulerDateRangeContext';
|
|
102
110
|
/**
|
|
103
111
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the grouping orientation of the Scheduler.
|
|
@@ -112,7 +120,8 @@ exports.SchedulerOrientationContext = React.createContext(null);
|
|
|
112
120
|
*
|
|
113
121
|
* @returns
|
|
114
122
|
*/
|
|
115
|
-
|
|
123
|
+
var useSchedulerOrientationContext = function () { return React.useContext(exports.SchedulerOrientationContext); };
|
|
124
|
+
exports.useSchedulerOrientationContext = useSchedulerOrientationContext;
|
|
116
125
|
exports.SchedulerOrientationContext.displayName = 'SchedulerOrientationContext';
|
|
117
126
|
/**
|
|
118
127
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `date` state.
|
|
@@ -127,7 +136,8 @@ exports.SchedulerDateContext = React.createContext([new Date(), utils_1.noop]);
|
|
|
127
136
|
*
|
|
128
137
|
* @returns
|
|
129
138
|
*/
|
|
130
|
-
|
|
139
|
+
var useSchedulerDateContext = function () { return React.useContext(exports.SchedulerDateContext); };
|
|
140
|
+
exports.useSchedulerDateContext = useSchedulerDateContext;
|
|
131
141
|
exports.SchedulerDateContext.displayName = 'SchedulerDateContext';
|
|
132
142
|
/**
|
|
133
143
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `data` reducer.
|
|
@@ -142,7 +152,8 @@ exports.SchedulerDataContext = React.createContext([[], utils_1.noop]);
|
|
|
142
152
|
*
|
|
143
153
|
* @returns
|
|
144
154
|
*/
|
|
145
|
-
|
|
155
|
+
var useSchedulerDataContext = function () { return React.useContext(exports.SchedulerDataContext); };
|
|
156
|
+
exports.useSchedulerDataContext = useSchedulerDataContext;
|
|
146
157
|
exports.SchedulerDataContext.displayName = 'SchedulerDataContext';
|
|
147
158
|
/**
|
|
148
159
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `activeView` state.
|
|
@@ -157,10 +168,11 @@ exports.SchedulerActiveViewContext = React.createContext(['day', utils_1.noop]);
|
|
|
157
168
|
*
|
|
158
169
|
* @returns
|
|
159
170
|
*/
|
|
160
|
-
|
|
171
|
+
var useSchedulerActiveViewContext = function () { return React.useContext(exports.SchedulerActiveViewContext); };
|
|
172
|
+
exports.useSchedulerActiveViewContext = useSchedulerActiveViewContext;
|
|
161
173
|
exports.SchedulerActiveViewContext.displayName = 'SchedulerActiveViewContext';
|
|
162
174
|
/** @hidden */
|
|
163
|
-
|
|
175
|
+
var SchedulerContext = function (_a) {
|
|
164
176
|
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;
|
|
165
177
|
return (React.createElement(exports.SchedulerElementContext.Provider, { value: element },
|
|
166
178
|
React.createElement(exports.SchedulerPropsContext.Provider, { value: props },
|
|
@@ -174,3 +186,4 @@ exports.SchedulerContext = function (_a) {
|
|
|
174
186
|
React.createElement(exports.SchedulerDataContext.Provider, { value: data },
|
|
175
187
|
React.createElement(exports.SchedulerActiveViewContext.Provider, { value: activeView }, children))))))))))));
|
|
176
188
|
};
|
|
189
|
+
exports.SchedulerContext = SchedulerContext;
|
|
@@ -31,7 +31,7 @@ export declare const SchedulerEditItemPropsContext: React.Context<SchedulerEditI
|
|
|
31
31
|
*
|
|
32
32
|
* @returns
|
|
33
33
|
*/
|
|
34
|
-
export declare const useSchedulerEditItemPropsContext: () =>
|
|
34
|
+
export declare const useSchedulerEditItemPropsContext: () => SchedulerEditItemPropsContextType;
|
|
35
35
|
/**
|
|
36
36
|
* Specifies the result of the [useSchedulerEditItemFormItemContext]({% slug api_scheduler_usescheduleredititemformitemcontext %}) and [SchedulerEditItemFormItemContext]({% slug api_scheduler_scheduleredititemformitemcontext %}).
|
|
37
37
|
*/
|
|
@@ -45,11 +45,7 @@ export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (ne
|
|
|
45
45
|
*
|
|
46
46
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
47
47
|
*/
|
|
48
|
-
export declare const SchedulerEditItemFormItemContext: React.Context<
|
|
49
|
-
preventDefault: any;
|
|
50
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
51
|
-
preventDefault: any;
|
|
52
|
-
}) => void]>;
|
|
48
|
+
export declare const SchedulerEditItemFormItemContext: React.Context<SchedulerEditItemFormItemContextType>;
|
|
53
49
|
/**
|
|
54
50
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
|
|
55
51
|
*
|
|
@@ -57,11 +53,7 @@ export declare const SchedulerEditItemFormItemContext: React.Context<[any, (newV
|
|
|
57
53
|
*
|
|
58
54
|
* @returns
|
|
59
55
|
*/
|
|
60
|
-
export declare const useSchedulerEditItemFormItemContext: () =>
|
|
61
|
-
preventDefault: any;
|
|
62
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
63
|
-
preventDefault: any;
|
|
64
|
-
}) => void];
|
|
56
|
+
export declare const useSchedulerEditItemFormItemContext: () => SchedulerEditItemFormItemContextType;
|
|
65
57
|
/**
|
|
66
58
|
* Specifies the result of the [useSchedulerEditItemDragItemContext]({% slug api_scheduler_usescheduleredititemdragitemcontext %}) and [SchedulerEditItemDragItemContext]({% slug api_scheduler_scheduleredititemdragitemcontext %}).
|
|
67
59
|
*/
|
|
@@ -75,11 +67,7 @@ export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (ne
|
|
|
75
67
|
*
|
|
76
68
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
77
69
|
*/
|
|
78
|
-
export declare const SchedulerEditItemDragItemContext: React.Context<
|
|
79
|
-
preventDefault: any;
|
|
80
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
81
|
-
preventDefault: any;
|
|
82
|
-
}) => void]>;
|
|
70
|
+
export declare const SchedulerEditItemDragItemContext: React.Context<SchedulerEditItemDragItemContextType>;
|
|
83
71
|
/**
|
|
84
72
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
|
|
85
73
|
*
|
|
@@ -87,11 +75,7 @@ export declare const SchedulerEditItemDragItemContext: React.Context<[any, (newV
|
|
|
87
75
|
*
|
|
88
76
|
* @returns
|
|
89
77
|
*/
|
|
90
|
-
export declare const useSchedulerEditItemDragItemContext: () =>
|
|
91
|
-
preventDefault: any;
|
|
92
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
93
|
-
preventDefault: any;
|
|
94
|
-
}) => void];
|
|
78
|
+
export declare const useSchedulerEditItemDragItemContext: () => SchedulerEditItemDragItemContextType;
|
|
95
79
|
/**
|
|
96
80
|
* Specifies the result of the [useSchedulerEditItemResizeItemContext]({% slug api_scheduler_usescheduleredititemresizeitemcontext %}) and [SchedulerEditItemResizeItemContext]({% slug api_scheduler_scheduleredititemresizeitemcontext %}).
|
|
97
81
|
*/
|
|
@@ -105,11 +89,7 @@ export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (
|
|
|
105
89
|
*
|
|
106
90
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
107
91
|
*/
|
|
108
|
-
export declare const SchedulerEditItemResizeItemContext: React.Context<
|
|
109
|
-
preventDefault: any;
|
|
110
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
111
|
-
preventDefault: any;
|
|
112
|
-
}) => void]>;
|
|
92
|
+
export declare const SchedulerEditItemResizeItemContext: React.Context<SchedulerEditItemResizeItemContextType>;
|
|
113
93
|
/**
|
|
114
94
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
|
|
115
95
|
*
|
|
@@ -117,11 +97,7 @@ export declare const SchedulerEditItemResizeItemContext: React.Context<[any, (ne
|
|
|
117
97
|
*
|
|
118
98
|
* @returns
|
|
119
99
|
*/
|
|
120
|
-
export declare const useSchedulerEditItemResizeItemContext: () =>
|
|
121
|
-
preventDefault: any;
|
|
122
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
123
|
-
preventDefault: any;
|
|
124
|
-
}) => void];
|
|
100
|
+
export declare const useSchedulerEditItemResizeItemContext: () => SchedulerEditItemResizeItemContextType;
|
|
125
101
|
/**
|
|
126
102
|
* Specifies the result of the [useSchedulerEditItemRemoveItemContext]({% slug api_scheduler_usescheduleredititemremoveitemcontext %}) and [SchedulerEditItemRemoveItemContext]({% slug api_scheduler_scheduleredititemremoveitemcontext %}).
|
|
127
103
|
*/
|
|
@@ -135,11 +111,7 @@ export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (
|
|
|
135
111
|
*
|
|
136
112
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
137
113
|
*/
|
|
138
|
-
export declare const SchedulerEditItemRemoveItemContext: React.Context<
|
|
139
|
-
preventDefault: any;
|
|
140
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
141
|
-
preventDefault: any;
|
|
142
|
-
}) => void]>;
|
|
114
|
+
export declare const SchedulerEditItemRemoveItemContext: React.Context<SchedulerEditItemRemoveItemContextType>;
|
|
143
115
|
/**
|
|
144
116
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
|
|
145
117
|
*
|
|
@@ -147,11 +119,7 @@ export declare const SchedulerEditItemRemoveItemContext: React.Context<[any, (ne
|
|
|
147
119
|
*
|
|
148
120
|
* @returns
|
|
149
121
|
*/
|
|
150
|
-
export declare const useSchedulerEditItemRemoveItemContext: () =>
|
|
151
|
-
preventDefault: any;
|
|
152
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
153
|
-
preventDefault: any;
|
|
154
|
-
}) => void];
|
|
122
|
+
export declare const useSchedulerEditItemRemoveItemContext: () => SchedulerEditItemRemoveItemContextType;
|
|
155
123
|
/**
|
|
156
124
|
* Specifies the result of the [useSchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_usescheduleredititemshowremovedialogcontext %}) and [SchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_scheduleredititemshowremovedialogcontext %}).
|
|
157
125
|
*/
|
|
@@ -165,11 +133,7 @@ export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (ne
|
|
|
165
133
|
*
|
|
166
134
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
167
135
|
*/
|
|
168
|
-
export declare const SchedulerEditItemShowRemoveDialogContext: React.Context<
|
|
169
|
-
preventDefault: any;
|
|
170
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
171
|
-
preventDefault: any;
|
|
172
|
-
}) => void]>;
|
|
136
|
+
export declare const SchedulerEditItemShowRemoveDialogContext: React.Context<SchedulerEditItemShowRemoveDialogContextType>;
|
|
173
137
|
/**
|
|
174
138
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
|
|
175
139
|
*
|
|
@@ -177,11 +141,7 @@ export declare const SchedulerEditItemShowRemoveDialogContext: React.Context<[bo
|
|
|
177
141
|
*
|
|
178
142
|
* @returns
|
|
179
143
|
*/
|
|
180
|
-
export declare const useSchedulerEditItemShowRemoveDialogContext: () =>
|
|
181
|
-
preventDefault: any;
|
|
182
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
183
|
-
preventDefault: any;
|
|
184
|
-
}) => void];
|
|
144
|
+
export declare const useSchedulerEditItemShowRemoveDialogContext: () => SchedulerEditItemShowRemoveDialogContextType;
|
|
185
145
|
/**
|
|
186
146
|
* Specifies the result of the [useSchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_usescheduleredititemshowoccurrencedialogcontext %}) and [SchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_scheduleredititemshowoccurrencedialogcontext %}).
|
|
187
147
|
*/
|
|
@@ -195,11 +155,7 @@ export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean,
|
|
|
195
155
|
*
|
|
196
156
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
197
157
|
*/
|
|
198
|
-
export declare const SchedulerEditItemShowOccurrenceDialogContext: React.Context<
|
|
199
|
-
preventDefault: any;
|
|
200
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
201
|
-
preventDefault: any;
|
|
202
|
-
}) => void]>;
|
|
158
|
+
export declare const SchedulerEditItemShowOccurrenceDialogContext: React.Context<SchedulerEditItemShowOccurrenceDialogContextType>;
|
|
203
159
|
/**
|
|
204
160
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
|
|
205
161
|
*
|
|
@@ -207,10 +163,6 @@ export declare const SchedulerEditItemShowOccurrenceDialogContext: React.Context
|
|
|
207
163
|
*
|
|
208
164
|
* @returns
|
|
209
165
|
*/
|
|
210
|
-
export declare const useSchedulerEditItemShowOccurrenceDialogContext: () =>
|
|
211
|
-
preventDefault: any;
|
|
212
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
213
|
-
preventDefault: any;
|
|
214
|
-
}) => void];
|
|
166
|
+
export declare const useSchedulerEditItemShowOccurrenceDialogContext: () => SchedulerEditItemShowOccurrenceDialogContextType;
|
|
215
167
|
/** @hidden */
|
|
216
168
|
export declare const SchedulerEditItemContext: ({ props, form, drag, resize, remove, showRemoveDialog, showOccurrenceDialog, children }: SchedulerEditItemContextProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerEditItemContext = exports.useSchedulerEditItemShowOccurrenceDialogContext = exports.SchedulerEditItemShowOccurrenceDialogContext = exports.useSchedulerEditItemShowRemoveDialogContext = exports.SchedulerEditItemShowRemoveDialogContext = exports.useSchedulerEditItemRemoveItemContext = exports.SchedulerEditItemRemoveItemContext = exports.useSchedulerEditItemResizeItemContext = exports.SchedulerEditItemResizeItemContext = exports.useSchedulerEditItemDragItemContext = exports.SchedulerEditItemDragItemContext = exports.useSchedulerEditItemFormItemContext = exports.SchedulerEditItemFormItemContext = exports.useSchedulerEditItemPropsContext = exports.SchedulerEditItemPropsContext = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
5
6
|
/**
|
|
@@ -15,7 +16,8 @@ exports.SchedulerEditItemPropsContext = React.createContext([null]);
|
|
|
15
16
|
*
|
|
16
17
|
* @returns
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
var useSchedulerEditItemPropsContext = function () { return React.useContext(exports.SchedulerEditItemPropsContext); };
|
|
20
|
+
exports.useSchedulerEditItemPropsContext = useSchedulerEditItemPropsContext;
|
|
19
21
|
exports.SchedulerEditItemPropsContext.displayName = 'SchedulerEditItemPropsContext';
|
|
20
22
|
/**
|
|
21
23
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
|
|
@@ -30,7 +32,8 @@ exports.SchedulerEditItemFormItemContext = React.createContext([null, kendo_reac
|
|
|
30
32
|
*
|
|
31
33
|
* @returns
|
|
32
34
|
*/
|
|
33
|
-
|
|
35
|
+
var useSchedulerEditItemFormItemContext = function () { return React.useContext(exports.SchedulerEditItemFormItemContext); };
|
|
36
|
+
exports.useSchedulerEditItemFormItemContext = useSchedulerEditItemFormItemContext;
|
|
34
37
|
exports.SchedulerEditItemFormItemContext.displayName = 'SchedulerEditItemFormItemContext';
|
|
35
38
|
/**
|
|
36
39
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
|
|
@@ -45,7 +48,8 @@ exports.SchedulerEditItemDragItemContext = React.createContext([null, kendo_reac
|
|
|
45
48
|
*
|
|
46
49
|
* @returns
|
|
47
50
|
*/
|
|
48
|
-
|
|
51
|
+
var useSchedulerEditItemDragItemContext = function () { return React.useContext(exports.SchedulerEditItemDragItemContext); };
|
|
52
|
+
exports.useSchedulerEditItemDragItemContext = useSchedulerEditItemDragItemContext;
|
|
49
53
|
exports.SchedulerEditItemDragItemContext.displayName = 'SchedulerEditItemDragItemContext';
|
|
50
54
|
/**
|
|
51
55
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
|
|
@@ -60,7 +64,8 @@ exports.SchedulerEditItemResizeItemContext = React.createContext([null, kendo_re
|
|
|
60
64
|
*
|
|
61
65
|
* @returns
|
|
62
66
|
*/
|
|
63
|
-
|
|
67
|
+
var useSchedulerEditItemResizeItemContext = function () { return React.useContext(exports.SchedulerEditItemResizeItemContext); };
|
|
68
|
+
exports.useSchedulerEditItemResizeItemContext = useSchedulerEditItemResizeItemContext;
|
|
64
69
|
exports.SchedulerEditItemResizeItemContext.displayName = 'SchedulerEditItemResizeItemContext';
|
|
65
70
|
/**
|
|
66
71
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
|
|
@@ -75,7 +80,8 @@ exports.SchedulerEditItemRemoveItemContext = React.createContext([null, kendo_re
|
|
|
75
80
|
*
|
|
76
81
|
* @returns
|
|
77
82
|
*/
|
|
78
|
-
|
|
83
|
+
var useSchedulerEditItemRemoveItemContext = function () { return React.useContext(exports.SchedulerEditItemRemoveItemContext); };
|
|
84
|
+
exports.useSchedulerEditItemRemoveItemContext = useSchedulerEditItemRemoveItemContext;
|
|
79
85
|
exports.SchedulerEditItemRemoveItemContext.displayName = 'SchedulerEditItemRemoveItemContext';
|
|
80
86
|
/**
|
|
81
87
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
|
|
@@ -90,7 +96,8 @@ exports.SchedulerEditItemShowRemoveDialogContext = React.createContext([false, k
|
|
|
90
96
|
*
|
|
91
97
|
* @returns
|
|
92
98
|
*/
|
|
93
|
-
|
|
99
|
+
var useSchedulerEditItemShowRemoveDialogContext = function () { return React.useContext(exports.SchedulerEditItemShowRemoveDialogContext); };
|
|
100
|
+
exports.useSchedulerEditItemShowRemoveDialogContext = useSchedulerEditItemShowRemoveDialogContext;
|
|
94
101
|
exports.SchedulerEditItemShowRemoveDialogContext.displayName = 'SchedulerEditItemShowRemoveDialogContext';
|
|
95
102
|
/**
|
|
96
103
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
|
|
@@ -105,10 +112,11 @@ exports.SchedulerEditItemShowOccurrenceDialogContext = React.createContext([fals
|
|
|
105
112
|
*
|
|
106
113
|
* @returns
|
|
107
114
|
*/
|
|
108
|
-
|
|
115
|
+
var useSchedulerEditItemShowOccurrenceDialogContext = function () { return React.useContext(exports.SchedulerEditItemShowOccurrenceDialogContext); };
|
|
116
|
+
exports.useSchedulerEditItemShowOccurrenceDialogContext = useSchedulerEditItemShowOccurrenceDialogContext;
|
|
109
117
|
exports.SchedulerEditItemShowOccurrenceDialogContext.displayName = 'SchedulerEditItemShowOccurrenceDialogContext';
|
|
110
118
|
/** @hidden */
|
|
111
|
-
|
|
119
|
+
var SchedulerEditItemContext = function (_a) {
|
|
112
120
|
var props = _a.props, form = _a.form, drag = _a.drag, resize = _a.resize, remove = _a.remove, showRemoveDialog = _a.showRemoveDialog, showOccurrenceDialog = _a.showOccurrenceDialog, children = _a.children;
|
|
113
121
|
return (React.createElement(exports.SchedulerEditItemPropsContext.Provider, { value: props },
|
|
114
122
|
React.createElement(exports.SchedulerEditItemFormItemContext.Provider, { value: form },
|
|
@@ -118,3 +126,4 @@ exports.SchedulerEditItemContext = function (_a) {
|
|
|
118
126
|
React.createElement(exports.SchedulerEditItemShowRemoveDialogContext.Provider, { value: showRemoveDialog },
|
|
119
127
|
React.createElement(exports.SchedulerEditItemShowOccurrenceDialogContext.Provider, { value: showOccurrenceDialog }, children))))))));
|
|
120
128
|
};
|
|
129
|
+
exports.SchedulerEditItemContext = SchedulerEditItemContext;
|
|
@@ -24,7 +24,7 @@ export declare const SchedulerEditSlotPropsContext: React.Context<SchedulerEditS
|
|
|
24
24
|
*
|
|
25
25
|
* @returns
|
|
26
26
|
*/
|
|
27
|
-
export declare const useSchedulerEditSlotPropsContext: () =>
|
|
27
|
+
export declare const useSchedulerEditSlotPropsContext: () => SchedulerEditSlotPropsContextType;
|
|
28
28
|
/**
|
|
29
29
|
* Specifies the result of the [useSchedulerEditSlotFormItemContext]({% slug api_scheduler_useschedulereditslotformitemcontext %}) and [SchedulerEditSlotFormItemContext]({% slug api_scheduler_schedulereditslotformitemcontext %}).
|
|
30
30
|
*/
|
|
@@ -34,7 +34,7 @@ export declare type SchedulerEditSlotFormItemContextType = [DataItem | null, (ev
|
|
|
34
34
|
*
|
|
35
35
|
* For more information, refer to the [Slots Context]({% slug state-update_slots_scheduler %}) article.
|
|
36
36
|
*/
|
|
37
|
-
export declare const SchedulerEditSlotFormItemContext: React.Context<
|
|
37
|
+
export declare const SchedulerEditSlotFormItemContext: React.Context<SchedulerEditSlotFormItemContextType>;
|
|
38
38
|
/**
|
|
39
39
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
|
|
40
40
|
*
|
|
@@ -42,6 +42,6 @@ export declare const SchedulerEditSlotFormItemContext: React.Context<[any, (even
|
|
|
42
42
|
*
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
export declare const useSchedulerEditSlotFormItemContext: () =>
|
|
45
|
+
export declare const useSchedulerEditSlotFormItemContext: () => SchedulerEditSlotFormItemContextType;
|
|
46
46
|
/** @hidden */
|
|
47
47
|
export declare const SchedulerEditSlotContext: ({ props, form, children }: SchedulerEditSlotContextProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerEditSlotContext = exports.useSchedulerEditSlotFormItemContext = exports.SchedulerEditSlotFormItemContext = exports.useSchedulerEditSlotPropsContext = exports.SchedulerEditSlotPropsContext = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
/**
|
|
5
6
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) `props`.
|
|
@@ -14,7 +15,8 @@ exports.SchedulerEditSlotPropsContext = React.createContext([null]);
|
|
|
14
15
|
*
|
|
15
16
|
* @returns
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
var useSchedulerEditSlotPropsContext = function () { return React.useContext(exports.SchedulerEditSlotPropsContext); };
|
|
19
|
+
exports.useSchedulerEditSlotPropsContext = useSchedulerEditSlotPropsContext;
|
|
18
20
|
exports.SchedulerEditSlotPropsContext.displayName = 'SchedulerEditSlotPropsContext';
|
|
19
21
|
/**
|
|
20
22
|
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
|
|
@@ -29,11 +31,13 @@ exports.SchedulerEditSlotFormItemContext = React.createContext([null]);
|
|
|
29
31
|
*
|
|
30
32
|
* @returns
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
var useSchedulerEditSlotFormItemContext = function () { return React.useContext(exports.SchedulerEditSlotFormItemContext); };
|
|
35
|
+
exports.useSchedulerEditSlotFormItemContext = useSchedulerEditSlotFormItemContext;
|
|
33
36
|
exports.SchedulerEditSlotFormItemContext.displayName = 'SchedulerEditSlotFormItemContext';
|
|
34
37
|
/** @hidden */
|
|
35
|
-
|
|
38
|
+
var SchedulerEditSlotContext = function (_a) {
|
|
36
39
|
var props = _a.props, form = _a.form, children = _a.children;
|
|
37
40
|
return (React.createElement(exports.SchedulerEditSlotPropsContext.Provider, { value: props },
|
|
38
41
|
React.createElement(exports.SchedulerEditSlotFormItemContext.Provider, { value: form }, children)));
|
|
39
42
|
};
|
|
43
|
+
exports.SchedulerEditSlotContext = SchedulerEditSlotContext;
|
|
@@ -10,20 +10,20 @@ export interface SchedulerEditTaskContextProps {
|
|
|
10
10
|
/** @hidden */
|
|
11
11
|
export declare type SchedulerEditTaskRemoveItemContextType = [DataItem | null, (event?: any) => void];
|
|
12
12
|
/** @hidden */
|
|
13
|
-
export declare const SchedulerEditTaskRemoveItemContext: React.Context<
|
|
13
|
+
export declare const SchedulerEditTaskRemoveItemContext: React.Context<SchedulerEditTaskRemoveItemContextType>;
|
|
14
14
|
/** @hidden */
|
|
15
|
-
export declare const useSchedulerEditTaskRemoveItemContext: () =>
|
|
15
|
+
export declare const useSchedulerEditTaskRemoveItemContext: () => SchedulerEditTaskRemoveItemContextType;
|
|
16
16
|
/** @hidden */
|
|
17
17
|
export declare type SchedulerEditTaskShowRemoveDialogContextType = [boolean, (event?: any) => void];
|
|
18
18
|
/** @hidden */
|
|
19
|
-
export declare const SchedulerEditTaskShowRemoveDialogContext: React.Context<
|
|
19
|
+
export declare const SchedulerEditTaskShowRemoveDialogContext: React.Context<SchedulerEditTaskShowRemoveDialogContextType>;
|
|
20
20
|
/** @hidden */
|
|
21
|
-
export declare const useSchedulerEditTaskShowRemoveDialogContext: () =>
|
|
21
|
+
export declare const useSchedulerEditTaskShowRemoveDialogContext: () => SchedulerEditTaskShowRemoveDialogContextType;
|
|
22
22
|
/** @hidden */
|
|
23
23
|
export declare type SchedulerEditTaskShowOccurrenceDialogContextType = [boolean, (event?: any) => void];
|
|
24
24
|
/** @hidden */
|
|
25
|
-
export declare const SchedulerEditTaskShowOccurrenceDialogContext: React.Context<
|
|
25
|
+
export declare const SchedulerEditTaskShowOccurrenceDialogContext: React.Context<SchedulerEditTaskShowOccurrenceDialogContextType>;
|
|
26
26
|
/** @hidden */
|
|
27
|
-
export declare const useSchedulerEditTaskShowOccurrenceDialogContext: () =>
|
|
27
|
+
export declare const useSchedulerEditTaskShowOccurrenceDialogContext: () => SchedulerEditTaskShowOccurrenceDialogContextType;
|
|
28
28
|
/** @hidden */
|
|
29
29
|
export declare const SchedulerEditTaskContext: (props: SchedulerEditTaskContextProps) => JSX.Element;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerEditTaskContext = exports.useSchedulerEditTaskShowOccurrenceDialogContext = exports.SchedulerEditTaskShowOccurrenceDialogContext = exports.useSchedulerEditTaskShowRemoveDialogContext = exports.SchedulerEditTaskShowRemoveDialogContext = exports.useSchedulerEditTaskRemoveItemContext = exports.SchedulerEditTaskRemoveItemContext = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
/** @hidden */
|
|
5
6
|
exports.SchedulerEditTaskRemoveItemContext = React.createContext([null]);
|
|
6
7
|
/** @hidden */
|
|
7
|
-
|
|
8
|
+
var useSchedulerEditTaskRemoveItemContext = function () { return React.useContext(exports.SchedulerEditTaskRemoveItemContext); };
|
|
9
|
+
exports.useSchedulerEditTaskRemoveItemContext = useSchedulerEditTaskRemoveItemContext;
|
|
8
10
|
/** @hidden */
|
|
9
11
|
exports.SchedulerEditTaskShowRemoveDialogContext = React.createContext([false]);
|
|
10
12
|
/** @hidden */
|
|
11
|
-
|
|
13
|
+
var useSchedulerEditTaskShowRemoveDialogContext = function () { return React.useContext(exports.SchedulerEditTaskShowRemoveDialogContext); };
|
|
14
|
+
exports.useSchedulerEditTaskShowRemoveDialogContext = useSchedulerEditTaskShowRemoveDialogContext;
|
|
12
15
|
/** @hidden */
|
|
13
16
|
exports.SchedulerEditTaskShowOccurrenceDialogContext = React.createContext([false]);
|
|
14
17
|
/** @hidden */
|
|
15
|
-
|
|
18
|
+
var useSchedulerEditTaskShowOccurrenceDialogContext = function () { return React.useContext(exports.SchedulerEditTaskShowOccurrenceDialogContext); };
|
|
19
|
+
exports.useSchedulerEditTaskShowOccurrenceDialogContext = useSchedulerEditTaskShowOccurrenceDialogContext;
|
|
16
20
|
/** @hidden */
|
|
17
|
-
|
|
21
|
+
var SchedulerEditTaskContext = function (props) {
|
|
18
22
|
return (React.createElement(exports.SchedulerEditTaskRemoveItemContext.Provider, { value: props.remove },
|
|
19
23
|
React.createElement(exports.SchedulerEditTaskShowRemoveDialogContext.Provider, { value: props.showRemoveDialog },
|
|
20
24
|
React.createElement(exports.SchedulerEditTaskShowOccurrenceDialogContext.Provider, { value: props.showOccurrenceDialog }, props.children))));
|
|
21
25
|
};
|
|
26
|
+
exports.SchedulerEditTaskContext = SchedulerEditTaskContext;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSchedulerResourceIteratorContext = exports.SchedulerResourceIteratorContext = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
@@ -11,4 +12,5 @@ exports.SchedulerResourceIteratorContext = React.createContext({
|
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
var useSchedulerResourceIteratorContext = function () { return React.useContext(exports.SchedulerResourceIteratorContext); };
|
|
16
|
+
exports.useSchedulerResourceIteratorContext = useSchedulerResourceIteratorContext;
|
|
@@ -28,44 +28,44 @@ export declare const useSchedulerViewPropsContext: () => SchedulerViewProps;
|
|
|
28
28
|
/** @hidden */
|
|
29
29
|
export declare type SchedulerViewRangesContextType = Range[];
|
|
30
30
|
/** @hidden */
|
|
31
|
-
export declare const SchedulerViewRangesContext: React.Context<
|
|
31
|
+
export declare const SchedulerViewRangesContext: React.Context<SchedulerViewRangesContextType>;
|
|
32
32
|
/** @hidden */
|
|
33
|
-
export declare const useSchedulerViewRangesContext: () =>
|
|
33
|
+
export declare const useSchedulerViewRangesContext: () => SchedulerViewRangesContextType;
|
|
34
34
|
/** @hidden */
|
|
35
35
|
export declare type SchedulerViewSlotsContextType = [React.RefObject<SchedulerSlotHandle>[], (action: CollectionAction<React.RefObject<SchedulerSlotHandle>>) => void];
|
|
36
36
|
/** @hidden */
|
|
37
|
-
export declare const SchedulerViewSlotsContext: React.Context<
|
|
37
|
+
export declare const SchedulerViewSlotsContext: React.Context<SchedulerViewSlotsContextType>;
|
|
38
38
|
/** @hidden */
|
|
39
|
-
export declare const useSchedulerViewSlotsContext: () =>
|
|
39
|
+
export declare const useSchedulerViewSlotsContext: () => SchedulerViewSlotsContextType;
|
|
40
40
|
/** @hidden */
|
|
41
41
|
export declare type SchedulerViewItemsContextType = [React.RefObject<SchedulerItemHandle>[], (action: CollectionAction<React.RefObject<SchedulerItemHandle>>) => void];
|
|
42
42
|
/** @hidden */
|
|
43
|
-
export declare const SchedulerViewItemsContext: React.Context<
|
|
43
|
+
export declare const SchedulerViewItemsContext: React.Context<SchedulerViewItemsContextType>;
|
|
44
44
|
/** @hidden */
|
|
45
|
-
export declare const useSchedulerViewItemsContext: () =>
|
|
45
|
+
export declare const useSchedulerViewItemsContext: () => SchedulerViewItemsContextType;
|
|
46
46
|
/** @hidden */
|
|
47
47
|
export declare type SchedulerViewSelectedSlotsContextType = [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsSelectAction, event: React.SyntheticEvent) => void];
|
|
48
48
|
/** @hidden */
|
|
49
|
-
export declare const SchedulerViewSelectedSlotsContext: React.Context<
|
|
49
|
+
export declare const SchedulerViewSelectedSlotsContext: React.Context<SchedulerViewSelectedSlotsContextType>;
|
|
50
50
|
/** @hidden */
|
|
51
|
-
export declare const useSchedulerViewSelectedSlotsContext: () =>
|
|
51
|
+
export declare const useSchedulerViewSelectedSlotsContext: () => SchedulerViewSelectedSlotsContextType;
|
|
52
52
|
/** @hidden */
|
|
53
53
|
export declare type SchedulerViewSelectedItemsContextType = [React.RefObject<SchedulerItemHandle>[], (action: SchedulerItemsSelectAction, event: React.SyntheticEvent) => void];
|
|
54
54
|
/** @hidden */
|
|
55
|
-
export declare const SchedulerViewSelectedItemsContext: React.Context<
|
|
55
|
+
export declare const SchedulerViewSelectedItemsContext: React.Context<SchedulerViewSelectedItemsContextType>;
|
|
56
56
|
/** @hidden */
|
|
57
|
-
export declare const useSchedulerViewSelectedItemsContext: () =>
|
|
57
|
+
export declare const useSchedulerViewSelectedItemsContext: () => SchedulerViewSelectedItemsContextType;
|
|
58
58
|
/** @hidden */
|
|
59
59
|
export declare type SchedulerViewFocusedItemsContextType = [React.RefObject<SchedulerItemHandle>[], (action: SchedulerItemsFocusAction, event: React.SyntheticEvent) => void];
|
|
60
60
|
/** @hidden */
|
|
61
|
-
export declare const SchedulerViewFocusedItemsContext: React.Context<
|
|
61
|
+
export declare const SchedulerViewFocusedItemsContext: React.Context<SchedulerViewFocusedItemsContextType>;
|
|
62
62
|
/** @hidden */
|
|
63
|
-
export declare const useSchedulerViewFocusedItemsContext: () =>
|
|
63
|
+
export declare const useSchedulerViewFocusedItemsContext: () => SchedulerViewFocusedItemsContextType;
|
|
64
64
|
/** @hidden */
|
|
65
65
|
export declare type SchedulerViewFocusedSlotsContextType = [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsFocusAction, event: React.SyntheticEvent) => void];
|
|
66
66
|
/** @hidden */
|
|
67
|
-
export declare const SchedulerViewFocusedSlotsContext: React.Context<
|
|
67
|
+
export declare const SchedulerViewFocusedSlotsContext: React.Context<SchedulerViewFocusedSlotsContextType>;
|
|
68
68
|
/** @hidden */
|
|
69
|
-
export declare const useSchedulerViewFocusedSlotsContext: () =>
|
|
69
|
+
export declare const useSchedulerViewFocusedSlotsContext: () => SchedulerViewFocusedSlotsContextType;
|
|
70
70
|
/** @hidden */
|
|
71
71
|
export declare const SchedulerViewContext: ({ children, props, ranges, slots, items, selectedSlots, selectedItems, focusedItems, focusedSlots }: SchedulerViewContextProps) => JSX.Element;
|