@progress/kendo-react-scheduler 5.4.0-dev.202205180853 → 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.
Files changed (222) hide show
  1. package/dist/cdn/js/kendo-react-scheduler.js +2 -16
  2. package/dist/cdn/js/kendo-react-scheduler.js.LICENSE.txt +14 -0
  3. package/dist/es/Scheduler.js +12 -7
  4. package/dist/es/components/DateHeaderCell.js +4 -2
  5. package/dist/es/components/SchedulerForm.js +5 -3
  6. package/dist/es/components/TimeHeaderCell.js +4 -2
  7. package/dist/es/components/footer/SchedulerFooter.js +4 -2
  8. package/dist/es/components/footer/bussiness-hours/BussinessHours.js +4 -2
  9. package/dist/es/components/header/SchedulerHeader.js +4 -2
  10. package/dist/es/components/header/navigation/NavigationDatePicker.js +1 -1
  11. package/dist/es/components/header/navigation/SchedulerNavigation.js +4 -2
  12. package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -2
  13. package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +1 -1
  14. package/dist/es/components/header/view-selector/ViewSelectorList.js +1 -1
  15. package/dist/es/context/SchedulerContext.d.ts +17 -17
  16. package/dist/es/context/SchedulerEditItemContext.d.ts +13 -61
  17. package/dist/es/context/SchedulerEditSlotContext.d.ts +3 -3
  18. package/dist/es/context/SchedulerEditTaskContext.d.ts +6 -6
  19. package/dist/es/context/SchedulerViewContext.d.ts +14 -14
  20. package/dist/es/editors/FilterableComboBox.js +4 -2
  21. package/dist/es/editors/SchedulerFormEditor.js +4 -2
  22. package/dist/es/editors/ZonedDateTime.js +4 -2
  23. package/dist/es/hooks/use-items-focus.d.ts +1 -1
  24. package/dist/es/hooks/use-items-selection.d.ts +1 -1
  25. package/dist/es/hooks/use-items-selection.js +7 -2
  26. package/dist/es/hooks/use-slots-focus.d.ts +6 -6
  27. package/dist/es/hooks/use-slots-selection.js +6 -1
  28. package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
  29. package/dist/es/hooks/useControlledState.d.ts +10 -12
  30. package/dist/es/hooks/useControlledState.js +1 -1
  31. package/dist/es/hooks/useEditable.d.ts +1 -1
  32. package/dist/es/hooks/usePropOrState.d.ts +1 -1
  33. package/dist/es/hooks/useSchedulerItem.d.ts +1 -1
  34. package/dist/es/hooks/useSchedulerSlot.d.ts +1 -1
  35. package/dist/es/hooks/useSlotExpand.js +1 -1
  36. package/dist/es/items/SchedulerEditItem.js +40 -40
  37. package/dist/es/items/SchedulerViewItem.js +4 -2
  38. package/dist/es/items/hooks/use-drag-item.d.ts +6 -2
  39. package/dist/es/items/hooks/use-drag-item.js +6 -1
  40. package/dist/es/items/hooks/use-form-item.d.ts +5 -1
  41. package/dist/es/items/hooks/use-remove-item.d.ts +5 -1
  42. package/dist/es/items/hooks/use-resize-item.d.ts +6 -2
  43. package/dist/es/items/hooks/use-resize-item.js +7 -2
  44. package/dist/es/items/hooks/use-series.d.ts +2 -1
  45. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
  46. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +2 -1
  47. package/dist/es/messages/index.d.ts +76 -76
  48. package/dist/es/models/DataItem.js +1 -0
  49. package/dist/es/models/DateRange.js +1 -0
  50. package/dist/es/models/EditableProp.js +1 -0
  51. package/dist/es/models/Fields.js +1 -0
  52. package/dist/es/models/Group.js +1 -0
  53. package/dist/es/models/Item.js +1 -0
  54. package/dist/es/models/NavigationAction.js +1 -0
  55. package/dist/es/models/Occurrence.js +1 -0
  56. package/dist/es/models/Omit.js +1 -0
  57. package/dist/es/models/Orientation.js +1 -0
  58. package/dist/es/models/Range.js +1 -0
  59. package/dist/es/models/Rect.js +1 -0
  60. package/dist/es/models/Resource.js +1 -0
  61. package/dist/es/models/SchedulerGroup.js +1 -0
  62. package/dist/es/models/SchedulerHandle.js +1 -0
  63. package/dist/es/models/SchedulerModelFields.js +1 -0
  64. package/dist/es/models/SchedulerResource.js +1 -0
  65. package/dist/es/models/SchedulerView.js +1 -0
  66. package/dist/es/models/Slot.js +1 -0
  67. package/dist/es/models/events.js +1 -0
  68. package/dist/es/models/index.js +17 -0
  69. package/dist/es/package-metadata.js +1 -1
  70. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -2
  71. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +11 -4
  72. package/dist/es/recurrence/common.d.ts +5 -5
  73. package/dist/es/recurrence/common.js +2 -1
  74. package/dist/es/recurrence/types/EndRule.js +1 -0
  75. package/dist/es/recurrence/types/Frequency.js +1 -0
  76. package/dist/es/recurrence/types/FrequencyEntity.js +1 -0
  77. package/dist/es/recurrence/types/MonthEntity.js +1 -0
  78. package/dist/es/recurrence/types/OffsetPosition.js +1 -0
  79. package/dist/es/recurrence/types/OffsetPositionEntity.js +1 -0
  80. package/dist/es/recurrence/types/RepeatOnRule.js +1 -0
  81. package/dist/es/recurrence/types/WeekDayEntity.js +1 -0
  82. package/dist/es/recurrence/types/WeekDayRule.js +1 -0
  83. package/dist/es/reducers/editReducer.js +6 -6
  84. package/dist/es/services/itemsService.js +1 -7
  85. package/dist/es/services/occurrenceService.d.ts +2 -2
  86. package/dist/es/services/occurrenceService.js +7 -2
  87. package/dist/es/slots/SchedulerEditSlot.js +4 -2
  88. package/dist/es/slots/SchedulerViewSlot.js +4 -2
  89. package/dist/es/tasks/SchedulerEditTask.js +4 -2
  90. package/dist/es/tasks/SchedulerViewTask.js +4 -2
  91. package/dist/es/utils/index.d.ts +14 -14
  92. package/dist/es/utils/index.js +13 -8
  93. package/dist/es/views/common/utils.d.ts +2 -2
  94. package/dist/es/views/common/utils.js +7 -2
  95. package/dist/es/views/day/MultiDayView.js +8 -3
  96. package/dist/es/views/week/WorkWeekView.js +4 -2
  97. package/dist/npm/Scheduler.js +13 -7
  98. package/dist/npm/components/BaseView.js +1 -0
  99. package/dist/npm/components/CurrentTimeMarket.js +3 -1
  100. package/dist/npm/components/DateHeaderCell.js +5 -2
  101. package/dist/npm/components/SchedulerForm.js +6 -3
  102. package/dist/npm/components/SchedulerOccurrenceDialog.js +1 -0
  103. package/dist/npm/components/SchedulerRemoveDialog.js +1 -0
  104. package/dist/npm/components/ShowMoreItemsButton.js +1 -0
  105. package/dist/npm/components/TimeHeaderCell.js +5 -2
  106. package/dist/npm/components/footer/SchedulerFooter.js +5 -2
  107. package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +5 -2
  108. package/dist/npm/components/header/SchedulerHeader.js +5 -2
  109. package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -1
  110. package/dist/npm/components/header/navigation/SchedulerNavigation.js +5 -2
  111. package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -2
  112. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +3 -1
  113. package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +1 -1
  114. package/dist/npm/components/header/view-selector/ViewSelectorList.js +2 -1
  115. package/dist/npm/constants/index.js +2 -1
  116. package/dist/npm/context/SchedulerContext.d.ts +17 -17
  117. package/dist/npm/context/SchedulerContext.js +25 -12
  118. package/dist/npm/context/SchedulerEditItemContext.d.ts +13 -61
  119. package/dist/npm/context/SchedulerEditItemContext.js +17 -8
  120. package/dist/npm/context/SchedulerEditSlotContext.d.ts +3 -3
  121. package/dist/npm/context/SchedulerEditSlotContext.js +7 -3
  122. package/dist/npm/context/SchedulerEditTaskContext.d.ts +6 -6
  123. package/dist/npm/context/SchedulerEditTaskContext.js +9 -4
  124. package/dist/npm/context/SchedulerResourceIteratorContext.js +3 -1
  125. package/dist/npm/context/SchedulerViewContext.d.ts +14 -14
  126. package/dist/npm/context/SchedulerViewContext.js +19 -9
  127. package/dist/npm/context/index.js +15 -8
  128. package/dist/npm/editors/FilterableComboBox.js +7 -3
  129. package/dist/npm/editors/ResourceEditor.js +3 -1
  130. package/dist/npm/editors/SchedulerFormEditor.js +5 -2
  131. package/dist/npm/editors/ZonedDateTime.js +7 -3
  132. package/dist/npm/editors/common.js +5 -2
  133. package/dist/npm/hooks/index.js +20 -13
  134. package/dist/npm/hooks/use-items-focus.d.ts +1 -1
  135. package/dist/npm/hooks/use-items-focus.js +3 -1
  136. package/dist/npm/hooks/use-items-selection.d.ts +1 -1
  137. package/dist/npm/hooks/use-items-selection.js +10 -3
  138. package/dist/npm/hooks/use-slots-focus.d.ts +6 -6
  139. package/dist/npm/hooks/use-slots-focus.js +11 -5
  140. package/dist/npm/hooks/use-slots-selection.js +9 -2
  141. package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
  142. package/dist/npm/hooks/useAsyncMouseEnterLeave.js +3 -1
  143. package/dist/npm/hooks/useCellSync.js +3 -1
  144. package/dist/npm/hooks/useControlledState.d.ts +10 -12
  145. package/dist/npm/hooks/useControlledState.js +4 -2
  146. package/dist/npm/hooks/useEditable.d.ts +1 -1
  147. package/dist/npm/hooks/useEditable.js +3 -1
  148. package/dist/npm/hooks/usePropOrState.d.ts +1 -1
  149. package/dist/npm/hooks/usePropOrState.js +3 -1
  150. package/dist/npm/hooks/useRowSync.js +3 -1
  151. package/dist/npm/hooks/useSchedulerItem.d.ts +1 -1
  152. package/dist/npm/hooks/useSchedulerItem.js +3 -1
  153. package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
  154. package/dist/npm/hooks/useSchedulerSlot.js +3 -1
  155. package/dist/npm/hooks/useSlotExpand.js +4 -2
  156. package/dist/npm/hooks/useWorkHours.js +3 -1
  157. package/dist/npm/items/SchedulerEditItem.js +41 -40
  158. package/dist/npm/items/SchedulerItem.js +1 -0
  159. package/dist/npm/items/SchedulerItemContent.js +1 -0
  160. package/dist/npm/items/SchedulerViewItem.js +5 -2
  161. package/dist/npm/items/hooks/use-drag-item.d.ts +6 -2
  162. package/dist/npm/items/hooks/use-drag-item.js +9 -2
  163. package/dist/npm/items/hooks/use-form-item.d.ts +5 -1
  164. package/dist/npm/items/hooks/use-form-item.js +3 -1
  165. package/dist/npm/items/hooks/use-remove-item.d.ts +5 -1
  166. package/dist/npm/items/hooks/use-remove-item.js +3 -1
  167. package/dist/npm/items/hooks/use-resize-item.d.ts +6 -2
  168. package/dist/npm/items/hooks/use-resize-item.js +10 -3
  169. package/dist/npm/items/hooks/use-series.d.ts +2 -1
  170. package/dist/npm/items/hooks/use-series.js +3 -1
  171. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
  172. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +3 -1
  173. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +2 -1
  174. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +3 -1
  175. package/dist/npm/main.js +76 -74
  176. package/dist/npm/messages/index.d.ts +76 -76
  177. package/dist/npm/messages/index.js +3 -1
  178. package/dist/npm/models/index.js +27 -0
  179. package/dist/npm/package-metadata.js +2 -1
  180. package/dist/npm/recurrence/RecurrenceEditor.js +3 -1
  181. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +7 -3
  182. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +14 -5
  183. package/dist/npm/recurrence/common.d.ts +5 -5
  184. package/dist/npm/recurrence/common.js +39 -19
  185. package/dist/npm/reducers/editReducer.js +9 -7
  186. package/dist/npm/reducers/index.js +11 -4
  187. package/dist/npm/services/index.js +14 -7
  188. package/dist/npm/services/itemsService.js +10 -11
  189. package/dist/npm/services/occurrenceService.d.ts +2 -2
  190. package/dist/npm/services/occurrenceService.js +10 -3
  191. package/dist/npm/services/rangeService.js +3 -1
  192. package/dist/npm/services/slotsService.js +3 -1
  193. package/dist/npm/slots/SchedulerEditSlot.js +5 -2
  194. package/dist/npm/slots/SchedulerSlot.js +1 -0
  195. package/dist/npm/slots/SchedulerViewSlot.js +5 -2
  196. package/dist/npm/tasks/SchedulerEditTask.js +5 -2
  197. package/dist/npm/tasks/SchedulerTask.js +1 -0
  198. package/dist/npm/tasks/SchedulerViewTask.js +5 -2
  199. package/dist/npm/utils/index.d.ts +14 -14
  200. package/dist/npm/utils/index.js +91 -46
  201. package/dist/npm/views/agenda/AgendaView.js +3 -1
  202. package/dist/npm/views/agenda/AgendaViewHeaderItem.js +3 -1
  203. package/dist/npm/views/common/HorizontalResourceIterator.js +5 -2
  204. package/dist/npm/views/common/SchedulerDrag.js +3 -1
  205. package/dist/npm/views/common/SchedulerResize.js +3 -1
  206. package/dist/npm/views/common/VerticalResourceIterator.js +3 -1
  207. package/dist/npm/views/common/utils.d.ts +2 -2
  208. package/dist/npm/views/common/utils.js +26 -11
  209. package/dist/npm/views/day/DayView.js +3 -1
  210. package/dist/npm/views/day/DayViewAllDayRowContent.js +3 -1
  211. package/dist/npm/views/day/DayViewGroupRowContent.js +3 -1
  212. package/dist/npm/views/day/DayViewRowContent.js +3 -1
  213. package/dist/npm/views/day/MultiDayView.js +11 -4
  214. package/dist/npm/views/month/MonthView.js +3 -1
  215. package/dist/npm/views/time/MultiDayTimelineView.js +3 -1
  216. package/dist/npm/views/time/TimelineView.js +3 -1
  217. package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +3 -1
  218. package/dist/npm/views/time/TimelineViewRowContent.js +3 -1
  219. package/dist/npm/views/week/WeekView.js +3 -1
  220. package/dist/npm/views/week/WorkWeekView.js +7 -3
  221. package/dist/systemjs/kendo-react-scheduler.js +1 -1
  222. 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<React.RefObject<HTMLElement>>;
25
+ export declare const SchedulerElementContext: React.Context<SchedulerElementContextType>;
26
26
  /** @hidden */
27
- export declare const useSchedulerElementContext: () => React.RefObject<HTMLElement>;
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: () => SchedulerProps;
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<React.ReactElement<import("../models").SchedulerViewProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>[]>;
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: () => React.ReactElement<import("../models").SchedulerViewProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>[];
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: () => Fields;
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<Group[]>;
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: () => Group[];
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: () => DateRange;
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<"horizontal" | "vertical">;
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: () => "horizontal" | "vertical";
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<[Date, (date: Date, event?: any) => void]>;
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: () => [Date, (date: Date, event?: any) => void];
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<[any[], (action: DataAction, event?: any) => void]>;
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: () => [any[], (action: DataAction, event?: any) => void];
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<[string, (activeView: string, event?: any) => void]>;
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: () => [string, (activeView: string, event?: any) => void];
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
- exports.useSchedulerElementContext = function () { return React.useContext(exports.SchedulerElementContext); };
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
- exports.useSchedulerPropsContext = function () { return React.useContext(exports.SchedulerPropsContext); };
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
- exports.useSchedulerViewsContext = function () { return React.useContext(exports.SchedulerViewsContext); };
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
- exports.useSchedulerFieldsContext = function () { return React.useContext(exports.SchedulerFieldsContext); };
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
- exports.useSchedulerDateFormatContext = function () { return React.useContext(exports.SchedulerDateFormatContext); };
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
- exports.useSchedulerGroupsContext = function () { return React.useContext(exports.SchedulerGroupsContext); };
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
- exports.useSchedulerDateRangeContext = function () { return React.useContext(exports.SchedulerDateRangeContext); };
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
- exports.useSchedulerOrientationContext = function () { return React.useContext(exports.SchedulerOrientationContext); };
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
- exports.useSchedulerDateContext = function () { return React.useContext(exports.SchedulerDateContext); };
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
- exports.useSchedulerDataContext = function () { return React.useContext(exports.SchedulerDataContext); };
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
- exports.useSchedulerActiveViewContext = function () { return React.useContext(exports.SchedulerActiveViewContext); };
171
+ var useSchedulerActiveViewContext = function () { return React.useContext(exports.SchedulerActiveViewContext); };
172
+ exports.useSchedulerActiveViewContext = useSchedulerActiveViewContext;
161
173
  exports.SchedulerActiveViewContext.displayName = 'SchedulerActiveViewContext';
162
174
  /** @hidden */
163
- exports.SchedulerContext = function (_a) {
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: () => SchedulerEditItemProps;
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<[any, (newValue: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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: () => [any, (newValue: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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<[any, (newValue?: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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: () => [any, (newValue?: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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<[any, (newValue?: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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: () => [any, (newValue?: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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<[any, (newValue?: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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: () => [any, (newValue?: any, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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<[boolean, (newValue?: boolean, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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: () => [boolean, (newValue?: boolean, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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<[boolean, (newValue?: boolean, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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: () => [boolean, (newValue?: boolean, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
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
- exports.useSchedulerEditItemPropsContext = function () { return React.useContext(exports.SchedulerEditItemPropsContext); };
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
- exports.useSchedulerEditItemFormItemContext = function () { return React.useContext(exports.SchedulerEditItemFormItemContext); };
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
- exports.useSchedulerEditItemDragItemContext = function () { return React.useContext(exports.SchedulerEditItemDragItemContext); };
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
- exports.useSchedulerEditItemResizeItemContext = function () { return React.useContext(exports.SchedulerEditItemResizeItemContext); };
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
- exports.useSchedulerEditItemRemoveItemContext = function () { return React.useContext(exports.SchedulerEditItemRemoveItemContext); };
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
- exports.useSchedulerEditItemShowRemoveDialogContext = function () { return React.useContext(exports.SchedulerEditItemShowRemoveDialogContext); };
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
- exports.useSchedulerEditItemShowOccurrenceDialogContext = function () { return React.useContext(exports.SchedulerEditItemShowOccurrenceDialogContext); };
115
+ var useSchedulerEditItemShowOccurrenceDialogContext = function () { return React.useContext(exports.SchedulerEditItemShowOccurrenceDialogContext); };
116
+ exports.useSchedulerEditItemShowOccurrenceDialogContext = useSchedulerEditItemShowOccurrenceDialogContext;
109
117
  exports.SchedulerEditItemShowOccurrenceDialogContext.displayName = 'SchedulerEditItemShowOccurrenceDialogContext';
110
118
  /** @hidden */
111
- exports.SchedulerEditItemContext = function (_a) {
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: () => SchedulerEditSlotProps;
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<[any, (event?: any) => void]>;
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: () => [any, (event?: any) => void];
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
- exports.useSchedulerEditSlotPropsContext = function () { return React.useContext(exports.SchedulerEditSlotPropsContext); };
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
- exports.useSchedulerEditSlotFormItemContext = function () { return React.useContext(exports.SchedulerEditSlotFormItemContext); };
34
+ var useSchedulerEditSlotFormItemContext = function () { return React.useContext(exports.SchedulerEditSlotFormItemContext); };
35
+ exports.useSchedulerEditSlotFormItemContext = useSchedulerEditSlotFormItemContext;
33
36
  exports.SchedulerEditSlotFormItemContext.displayName = 'SchedulerEditSlotFormItemContext';
34
37
  /** @hidden */
35
- exports.SchedulerEditSlotContext = function (_a) {
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<[any, (event?: any) => void]>;
13
+ export declare const SchedulerEditTaskRemoveItemContext: React.Context<SchedulerEditTaskRemoveItemContextType>;
14
14
  /** @hidden */
15
- export declare const useSchedulerEditTaskRemoveItemContext: () => [any, (event?: any) => void];
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<[boolean, (event?: any) => void]>;
19
+ export declare const SchedulerEditTaskShowRemoveDialogContext: React.Context<SchedulerEditTaskShowRemoveDialogContextType>;
20
20
  /** @hidden */
21
- export declare const useSchedulerEditTaskShowRemoveDialogContext: () => [boolean, (event?: any) => void];
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<[boolean, (event?: any) => void]>;
25
+ export declare const SchedulerEditTaskShowOccurrenceDialogContext: React.Context<SchedulerEditTaskShowOccurrenceDialogContextType>;
26
26
  /** @hidden */
27
- export declare const useSchedulerEditTaskShowOccurrenceDialogContext: () => [boolean, (event?: any) => void];
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
- exports.useSchedulerEditTaskRemoveItemContext = function () { return React.useContext(exports.SchedulerEditTaskRemoveItemContext); };
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
- exports.useSchedulerEditTaskShowRemoveDialogContext = function () { return React.useContext(exports.SchedulerEditTaskShowRemoveDialogContext); };
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
- exports.useSchedulerEditTaskShowOccurrenceDialogContext = function () { return React.useContext(exports.SchedulerEditTaskShowOccurrenceDialogContext); };
18
+ var useSchedulerEditTaskShowOccurrenceDialogContext = function () { return React.useContext(exports.SchedulerEditTaskShowOccurrenceDialogContext); };
19
+ exports.useSchedulerEditTaskShowOccurrenceDialogContext = useSchedulerEditTaskShowOccurrenceDialogContext;
16
20
  /** @hidden */
17
- exports.SchedulerEditTaskContext = function (props) {
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;