@progress/kendo-react-scheduler 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059
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.js +12 -7
- package/dist/es/components/DateHeaderCell.js +4 -2
- package/dist/es/components/SchedulerForm.js +5 -3
- 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.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/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.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 +7 -2
- package/dist/es/hooks/use-slots-focus.d.ts +6 -6
- package/dist/es/hooks/use-slots-selection.js +6 -1
- package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
- 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/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/SchedulerViewItem.js +4 -2
- package/dist/es/items/hooks/use-drag-item.d.ts +6 -2
- package/dist/es/items/hooks/use-drag-item.js +6 -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 +7 -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 +11 -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 +7 -2
- package/dist/es/slots/SchedulerEditSlot.js +4 -2
- 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 +14 -14
- package/dist/es/utils/index.js +13 -8
- package/dist/es/views/common/utils.d.ts +2 -2
- package/dist/es/views/common/utils.js +7 -2
- package/dist/es/views/day/MultiDayView.js +8 -3
- package/dist/es/views/week/WorkWeekView.js +4 -2
- package/dist/npm/Scheduler.js +13 -7
- package/dist/npm/components/BaseView.js +1 -0
- package/dist/npm/components/CurrentTimeMarket.js +3 -1
- package/dist/npm/components/DateHeaderCell.js +5 -2
- package/dist/npm/components/SchedulerForm.js +6 -3
- package/dist/npm/components/SchedulerOccurrenceDialog.js +1 -0
- package/dist/npm/components/SchedulerRemoveDialog.js +1 -0
- package/dist/npm/components/ShowMoreItemsButton.js +1 -0
- package/dist/npm/components/TimeHeaderCell.js +5 -2
- package/dist/npm/components/footer/SchedulerFooter.js +5 -2
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +5 -2
- package/dist/npm/components/header/SchedulerHeader.js +5 -2
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -1
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +5 -2
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -2
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +3 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +2 -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 +15 -8
- package/dist/npm/editors/FilterableComboBox.js +7 -3
- package/dist/npm/editors/ResourceEditor.js +3 -1
- package/dist/npm/editors/SchedulerFormEditor.js +5 -2
- package/dist/npm/editors/ZonedDateTime.js +7 -3
- package/dist/npm/editors/common.js +5 -2
- package/dist/npm/hooks/index.js +20 -13
- package/dist/npm/hooks/use-items-focus.d.ts +1 -1
- package/dist/npm/hooks/use-items-focus.js +3 -1
- package/dist/npm/hooks/use-items-selection.d.ts +1 -1
- package/dist/npm/hooks/use-items-selection.js +10 -3
- package/dist/npm/hooks/use-slots-focus.d.ts +6 -6
- package/dist/npm/hooks/use-slots-focus.js +11 -5
- package/dist/npm/hooks/use-slots-selection.js +9 -2
- package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +3 -1
- package/dist/npm/hooks/useCellSync.js +3 -1
- 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.js +3 -1
- package/dist/npm/hooks/useSchedulerItem.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerItem.js +3 -1
- package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerSlot.js +3 -1
- package/dist/npm/hooks/useSlotExpand.js +4 -2
- package/dist/npm/hooks/useWorkHours.js +3 -1
- package/dist/npm/items/SchedulerEditItem.js +41 -40
- package/dist/npm/items/SchedulerItem.js +1 -0
- package/dist/npm/items/SchedulerItemContent.js +1 -0
- package/dist/npm/items/SchedulerViewItem.js +5 -2
- package/dist/npm/items/hooks/use-drag-item.d.ts +6 -2
- package/dist/npm/items/hooks/use-drag-item.js +9 -2
- package/dist/npm/items/hooks/use-form-item.d.ts +5 -1
- package/dist/npm/items/hooks/use-form-item.js +3 -1
- 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 +10 -3
- package/dist/npm/items/hooks/use-series.d.ts +2 -1
- package/dist/npm/items/hooks/use-series.js +3 -1
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +3 -1
- 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 +3 -1
- 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 +27 -0
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/recurrence/RecurrenceEditor.js +3 -1
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +7 -3
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +14 -5
- package/dist/npm/recurrence/common.d.ts +5 -5
- package/dist/npm/recurrence/common.js +37 -18
- package/dist/npm/reducers/editReducer.js +9 -7
- package/dist/npm/reducers/index.js +11 -4
- package/dist/npm/services/index.js +14 -7
- package/dist/npm/services/itemsService.js +10 -11
- package/dist/npm/services/occurrenceService.d.ts +2 -2
- package/dist/npm/services/occurrenceService.js +10 -3
- package/dist/npm/services/rangeService.js +3 -1
- package/dist/npm/services/slotsService.js +3 -1
- package/dist/npm/slots/SchedulerEditSlot.js +5 -2
- package/dist/npm/slots/SchedulerSlot.js +1 -0
- package/dist/npm/slots/SchedulerViewSlot.js +5 -2
- package/dist/npm/tasks/SchedulerEditTask.js +5 -2
- package/dist/npm/tasks/SchedulerTask.js +1 -0
- package/dist/npm/tasks/SchedulerViewTask.js +5 -2
- package/dist/npm/utils/index.d.ts +14 -14
- package/dist/npm/utils/index.js +91 -46
- package/dist/npm/views/agenda/AgendaView.js +3 -1
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +3 -1
- package/dist/npm/views/common/HorizontalResourceIterator.js +5 -2
- package/dist/npm/views/common/SchedulerDrag.js +3 -1
- package/dist/npm/views/common/SchedulerResize.js +3 -1
- package/dist/npm/views/common/VerticalResourceIterator.js +3 -1
- package/dist/npm/views/common/utils.d.ts +2 -2
- package/dist/npm/views/common/utils.js +26 -11
- package/dist/npm/views/day/DayView.js +3 -1
- package/dist/npm/views/day/DayViewAllDayRowContent.js +3 -1
- package/dist/npm/views/day/DayViewGroupRowContent.js +3 -1
- package/dist/npm/views/day/DayViewRowContent.js +3 -1
- package/dist/npm/views/day/MultiDayView.js +11 -4
- package/dist/npm/views/month/MonthView.js +3 -1
- package/dist/npm/views/time/MultiDayTimelineView.js +3 -1
- package/dist/npm/views/time/TimelineView.js +3 -1
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +3 -1
- package/dist/npm/views/time/TimelineViewRowContent.js +3 -1
- package/dist/npm/views/week/WeekView.js +3 -1
- package/dist/npm/views/week/WorkWeekView.js +7 -3
- package/dist/systemjs/kendo-react-scheduler.js +1 -1
- package/package.json +12 -12
|
@@ -22,9 +22,9 @@ export interface SchedulerContextProps {
|
|
|
22
22
|
/** @hidden */
|
|
23
23
|
export declare type SchedulerElementContextType = React.RefObject<HTMLElement | null>;
|
|
24
24
|
/** @hidden */
|
|
25
|
-
export declare const SchedulerElementContext: React.Context<
|
|
25
|
+
export declare const SchedulerElementContext: React.Context<SchedulerElementContextType>;
|
|
26
26
|
/** @hidden */
|
|
27
|
-
export declare const useSchedulerElementContext: () =>
|
|
27
|
+
export declare const useSchedulerElementContext: () => SchedulerElementContextType;
|
|
28
28
|
/**
|
|
29
29
|
* Specifies the result of the [useSchedulerPropsContext]({% slug api_scheduler_useschedulerpropscontext %}) and [SchedulerPropsContext]({% slug api_scheduler_schedulerpropscontext %}).
|
|
30
30
|
*/
|
|
@@ -42,7 +42,7 @@ export declare const SchedulerPropsContext: React.Context<SchedulerProps>;
|
|
|
42
42
|
*
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
export declare const useSchedulerPropsContext: () =>
|
|
45
|
+
export declare const useSchedulerPropsContext: () => SchedulerPropsContextType;
|
|
46
46
|
/**
|
|
47
47
|
* Specifies the result of the [useSchedulerViewsContext]({% slug api_scheduler_useschedulerviewscontext %}) and [SchedulerViewsContext]({% slug api_scheduler_schedulerviewscontext %}).
|
|
48
48
|
*/
|
|
@@ -52,7 +52,7 @@ export declare type SchedulerViewsContextType = SchedulerView[];
|
|
|
52
52
|
*
|
|
53
53
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
54
54
|
*/
|
|
55
|
-
export declare const SchedulerViewsContext: React.Context<
|
|
55
|
+
export declare const SchedulerViewsContext: React.Context<SchedulerViewsContextType>;
|
|
56
56
|
/**
|
|
57
57
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
58
58
|
*
|
|
@@ -60,7 +60,7 @@ export declare const SchedulerViewsContext: React.Context<React.ReactElement<imp
|
|
|
60
60
|
*
|
|
61
61
|
* @returns
|
|
62
62
|
*/
|
|
63
|
-
export declare const useSchedulerViewsContext: () =>
|
|
63
|
+
export declare const useSchedulerViewsContext: () => SchedulerViewsContextType;
|
|
64
64
|
/**
|
|
65
65
|
* Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
|
|
66
66
|
*/
|
|
@@ -78,7 +78,7 @@ export declare const SchedulerFieldsContext: React.Context<Fields>;
|
|
|
78
78
|
*
|
|
79
79
|
* @returns
|
|
80
80
|
*/
|
|
81
|
-
export declare const useSchedulerFieldsContext: () =>
|
|
81
|
+
export declare const useSchedulerFieldsContext: () => SchedulerFieldsContextType;
|
|
82
82
|
/**
|
|
83
83
|
* Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
|
|
84
84
|
*/
|
|
@@ -109,7 +109,7 @@ export declare type SchedulerGroupsContextType = Group[];
|
|
|
109
109
|
*
|
|
110
110
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
111
111
|
*/
|
|
112
|
-
export declare const SchedulerGroupsContext: React.Context<
|
|
112
|
+
export declare const SchedulerGroupsContext: React.Context<SchedulerGroupsContextType>;
|
|
113
113
|
/**
|
|
114
114
|
* 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).
|
|
115
115
|
*
|
|
@@ -117,7 +117,7 @@ export declare const SchedulerGroupsContext: React.Context<Group[]>;
|
|
|
117
117
|
*
|
|
118
118
|
* @returns
|
|
119
119
|
*/
|
|
120
|
-
export declare const useSchedulerGroupsContext: () =>
|
|
120
|
+
export declare const useSchedulerGroupsContext: () => SchedulerGroupsContextType;
|
|
121
121
|
/**
|
|
122
122
|
* Specifies the result of the [useSchedulerDateRangeContext]({% slug api_scheduler_useschedulerdaterangecontext %}) and [SchedulerDateRangeContext]({% slug api_scheduler_schedulerdaterangecontext %}).
|
|
123
123
|
*/
|
|
@@ -135,7 +135,7 @@ export declare const SchedulerDateRangeContext: React.Context<DateRange>;
|
|
|
135
135
|
*
|
|
136
136
|
* @returns
|
|
137
137
|
*/
|
|
138
|
-
export declare const useSchedulerDateRangeContext: () =>
|
|
138
|
+
export declare const useSchedulerDateRangeContext: () => SchedulerDateRangeContextType;
|
|
139
139
|
/**
|
|
140
140
|
* Specifies the result of the [useSchedulerOrientationContext]({% slug api_scheduler_useschedulerorientationcontext %}) and [SchedulerOrientationContext]({% slug api_scheduler_schedulerorientationcontext %}).
|
|
141
141
|
*/
|
|
@@ -145,7 +145,7 @@ export declare type SchedulerOrientationContextType = Orientation;
|
|
|
145
145
|
*
|
|
146
146
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
147
147
|
*/
|
|
148
|
-
export declare const SchedulerOrientationContext: React.Context<
|
|
148
|
+
export declare const SchedulerOrientationContext: React.Context<Orientation>;
|
|
149
149
|
/**
|
|
150
150
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the grouping orientation of the Scheduler.
|
|
151
151
|
*
|
|
@@ -153,7 +153,7 @@ export declare const SchedulerOrientationContext: React.Context<"horizontal" | "
|
|
|
153
153
|
*
|
|
154
154
|
* @returns
|
|
155
155
|
*/
|
|
156
|
-
export declare const useSchedulerOrientationContext: () =>
|
|
156
|
+
export declare const useSchedulerOrientationContext: () => SchedulerOrientationContextType;
|
|
157
157
|
/**
|
|
158
158
|
* Specifies the result of the [useSchedulerDateContext]({% slug api_scheduler_useschedulerdatecontext %}) and [SchedulerDateContext]({% slug api_scheduler_schedulerdatecontext %}).
|
|
159
159
|
*/
|
|
@@ -163,7 +163,7 @@ export declare type SchedulerDateContextType = [Date, (date: Date, event?: any)
|
|
|
163
163
|
*
|
|
164
164
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
165
165
|
*/
|
|
166
|
-
export declare const SchedulerDateContext: React.Context<
|
|
166
|
+
export declare const SchedulerDateContext: React.Context<SchedulerDateContextType>;
|
|
167
167
|
/**
|
|
168
168
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `date` state.
|
|
169
169
|
*
|
|
@@ -171,7 +171,7 @@ export declare const SchedulerDateContext: React.Context<[Date, (date: Date, eve
|
|
|
171
171
|
*
|
|
172
172
|
* @returns
|
|
173
173
|
*/
|
|
174
|
-
export declare const useSchedulerDateContext: () =>
|
|
174
|
+
export declare const useSchedulerDateContext: () => SchedulerDateContextType;
|
|
175
175
|
/**
|
|
176
176
|
* Specifies the result of the [useSchedulerDataContext]({% slug api_scheduler_useschedulerdatacontext %}) and [SchedulerDataContext]({% slug api_scheduler_schedulerdatacontext %}).
|
|
177
177
|
*/
|
|
@@ -181,7 +181,7 @@ export declare type SchedulerDataContextType = [DataItem[], (action: DataAction,
|
|
|
181
181
|
*
|
|
182
182
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
183
183
|
*/
|
|
184
|
-
export declare const SchedulerDataContext: React.Context<
|
|
184
|
+
export declare const SchedulerDataContext: React.Context<SchedulerDataContextType>;
|
|
185
185
|
/**
|
|
186
186
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `data` reducer.
|
|
187
187
|
*
|
|
@@ -189,7 +189,7 @@ export declare const SchedulerDataContext: React.Context<[any[], (action: DataAc
|
|
|
189
189
|
*
|
|
190
190
|
* @returns
|
|
191
191
|
*/
|
|
192
|
-
export declare const useSchedulerDataContext: () =>
|
|
192
|
+
export declare const useSchedulerDataContext: () => SchedulerDataContextType;
|
|
193
193
|
/**
|
|
194
194
|
* Specifies the result of the [useSchedulerActiveViewContext]({% slug api_scheduler_usescheduleractiveviewcontext %}) and [SchedulerActiveViewContext]({% slug api_scheduler_scheduleractiveviewcontext %}).
|
|
195
195
|
*/
|
|
@@ -199,7 +199,7 @@ export declare type SchedulerActiveViewContextType = [string, (activeView: strin
|
|
|
199
199
|
*
|
|
200
200
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
201
201
|
*/
|
|
202
|
-
export declare const SchedulerActiveViewContext: React.Context<
|
|
202
|
+
export declare const SchedulerActiveViewContext: React.Context<SchedulerActiveViewContextType>;
|
|
203
203
|
/**
|
|
204
204
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `activeView` state.
|
|
205
205
|
*
|
|
@@ -207,6 +207,6 @@ export declare const SchedulerActiveViewContext: React.Context<[string, (activeV
|
|
|
207
207
|
*
|
|
208
208
|
* @returns
|
|
209
209
|
*/
|
|
210
|
-
export declare const useSchedulerActiveViewContext: () =>
|
|
210
|
+
export declare const useSchedulerActiveViewContext: () => SchedulerActiveViewContextType;
|
|
211
211
|
/** @hidden */
|
|
212
212
|
export declare const SchedulerContext: ({ children, element, props, views, fields, groups, dateRange, dateFormat, orientation, date, data, activeView }: SchedulerContextProps) => JSX.Element;
|
|
@@ -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;
|