@progress/kendo-vue-scheduler 3.3.0-dev.202205100750 → 3.3.0

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 (84) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/components/BaseView.js +0 -10
  3. package/dist/es/components/SchedulerForm.js +1 -1
  4. package/dist/es/components/footer/SchedulerFooter.d.ts +0 -1
  5. package/dist/es/components/header/SchedulerHeader.d.ts +0 -1
  6. package/dist/es/context/SchedulerContext.d.ts +0 -8
  7. package/dist/es/context/SchedulerContext.js +1 -202
  8. package/dist/es/context/SchedulerEditItemContext.d.ts +0 -5
  9. package/dist/es/context/SchedulerEditItemContext.js +1 -177
  10. package/dist/es/context/SchedulerEditSlotContext.js +1 -44
  11. package/dist/es/context/SchedulerEditTaskContext.d.ts +0 -1
  12. package/dist/es/context/SchedulerEditTaskContext.js +1 -33
  13. package/dist/es/context/SchedulerViewContext.d.ts +0 -1
  14. package/dist/es/context/SchedulerViewContext.js +1 -92
  15. package/dist/es/editors/SchedulerFormEditor.js +119 -118
  16. package/dist/es/hooks/index.d.ts +0 -1
  17. package/dist/es/hooks/index.js +0 -1
  18. package/dist/es/hooks/useAsyncMouseEnterLeave.js +1 -1
  19. package/dist/es/hooks/useEditable.js +1 -4
  20. package/dist/es/hooks/useRowSync.js +1 -2
  21. package/dist/es/hooks/useSchedulerSlot.d.ts +1 -1
  22. package/dist/es/hooks/useSchedulerSlot.js +1 -26
  23. package/dist/es/hooks/useSlotExpand.js +3 -35
  24. package/dist/es/hooks/useWorkHours.js +0 -7
  25. package/dist/es/items/SchedulerEditItem.d.ts +0 -2
  26. package/dist/es/items/SchedulerItem.d.ts +0 -2
  27. package/dist/es/items/SchedulerItem.js +1 -0
  28. package/dist/es/items/SchedulerViewItem.d.ts +0 -2
  29. package/dist/es/items/SchedulerViewItem.js +5 -6
  30. package/dist/es/models/SchedulerHandle.d.ts +1 -1
  31. package/dist/es/package-metadata.js +1 -1
  32. package/dist/es/slots/SchedulerEditSlot.d.ts +0 -2
  33. package/dist/es/slots/SchedulerSlot.d.ts +0 -2
  34. package/dist/es/slots/SchedulerSlot.js +1 -0
  35. package/dist/es/slots/SchedulerViewSlot.d.ts +0 -2
  36. package/dist/es/slots/SchedulerViewSlot.js +26 -0
  37. package/dist/es/tasks/SchedulerEditTask.d.ts +0 -2
  38. package/dist/es/tasks/SchedulerViewTask.d.ts +0 -2
  39. package/dist/es/utils/index.js +0 -2
  40. package/dist/es/views/month/MonthView.js +19 -3
  41. package/dist/npm/components/BaseView.js +0 -10
  42. package/dist/npm/components/SchedulerForm.js +1 -1
  43. package/dist/npm/components/footer/SchedulerFooter.d.ts +0 -1
  44. package/dist/npm/components/header/SchedulerHeader.d.ts +0 -1
  45. package/dist/npm/context/SchedulerContext.d.ts +0 -8
  46. package/dist/npm/context/SchedulerContext.js +2 -202
  47. package/dist/npm/context/SchedulerEditItemContext.d.ts +0 -5
  48. package/dist/npm/context/SchedulerEditItemContext.js +1 -177
  49. package/dist/npm/context/SchedulerEditSlotContext.js +2 -44
  50. package/dist/npm/context/SchedulerEditTaskContext.d.ts +0 -1
  51. package/dist/npm/context/SchedulerEditTaskContext.js +1 -33
  52. package/dist/npm/context/SchedulerViewContext.d.ts +0 -1
  53. package/dist/npm/context/SchedulerViewContext.js +1 -92
  54. package/dist/npm/editors/SchedulerFormEditor.js +122 -120
  55. package/dist/npm/hooks/index.d.ts +0 -1
  56. package/dist/npm/hooks/index.js +0 -1
  57. package/dist/npm/hooks/useAsyncMouseEnterLeave.js +1 -1
  58. package/dist/npm/hooks/useEditable.js +2 -4
  59. package/dist/npm/hooks/useRowSync.js +1 -2
  60. package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
  61. package/dist/npm/hooks/useSchedulerSlot.js +1 -26
  62. package/dist/npm/hooks/useSlotExpand.js +3 -35
  63. package/dist/npm/hooks/useWorkHours.js +0 -7
  64. package/dist/npm/items/SchedulerEditItem.d.ts +0 -2
  65. package/dist/npm/items/SchedulerItem.d.ts +0 -2
  66. package/dist/npm/items/SchedulerItem.js +1 -0
  67. package/dist/npm/items/SchedulerViewItem.d.ts +0 -2
  68. package/dist/npm/items/SchedulerViewItem.js +5 -6
  69. package/dist/npm/models/SchedulerHandle.d.ts +1 -1
  70. package/dist/npm/package-metadata.js +1 -1
  71. package/dist/npm/slots/SchedulerEditSlot.d.ts +0 -2
  72. package/dist/npm/slots/SchedulerSlot.d.ts +0 -2
  73. package/dist/npm/slots/SchedulerSlot.js +1 -0
  74. package/dist/npm/slots/SchedulerViewSlot.d.ts +0 -2
  75. package/dist/npm/slots/SchedulerViewSlot.js +26 -0
  76. package/dist/npm/tasks/SchedulerEditTask.d.ts +0 -2
  77. package/dist/npm/tasks/SchedulerViewTask.d.ts +0 -2
  78. package/dist/npm/utils/index.js +0 -2
  79. package/dist/npm/views/month/MonthView.js +18 -2
  80. package/package.json +12 -12
  81. package/dist/es/hooks/useSchedulerItem.d.ts +0 -6
  82. package/dist/es/hooks/useSchedulerItem.js +0 -33
  83. package/dist/npm/hooks/useSchedulerItem.d.ts +0 -6
  84. package/dist/npm/hooks/useSchedulerItem.js +0 -39
@@ -3,209 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SchedulerContext = void 0; // /**
7
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
8
- // *
9
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
10
- // */
11
- // export const SchedulerViewsContext = React.createContext<SchedulerViewsContextType>([]);
12
- // /**
13
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
14
- // *
15
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
16
- // *
17
- // * @returns
18
- // */
19
- // export const useSchedulerViewsContext = (): SchedulerViewsContextType => React.useContext(SchedulerViewsContext);
20
- // SchedulerViewsContext.displayName = 'SchedulerViewsContext';
21
-
22
- /**
23
- * Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
24
- */
25
- // export type SchedulerFieldsContextType = Fields;
26
- // /**
27
- // * 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.
28
- // *
29
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
30
- // */
31
- // export const SchedulerFieldsContext = React.createContext<SchedulerFieldsContextType>(defaultModelFields);
32
- // /**
33
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
34
- // *
35
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
36
- // *
37
- // * @returns
38
- // */
39
- // export const useSchedulerFieldsContext = (): SchedulerFieldsContextType => React.useContext(SchedulerFieldsContext);
40
- // SchedulerFieldsContext.displayName = 'SchedulerFieldsContext';
41
- // /**
42
- // * Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
43
- // */
44
- // export type SchedulerDateFormatContextType = { dateFormat: string; shortDateFormat: string };
45
- // /**
46
- // * 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.
47
- // *
48
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
49
- // */
50
- // export const SchedulerDateFormatContext = React.createContext<SchedulerDateFormatContextType>
51
- // ({ dateFormat: '{0:D}', shortDateFormat: '{0:d}' });
52
- // /**
53
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
54
- // *
55
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
56
- // *
57
- // * @returns
58
- // */
59
- // export const useSchedulerDateFormatContext = ():
60
- // SchedulerDateFormatContextType => React.useContext(SchedulerDateFormatContext);
61
- // SchedulerDateFormatContext.displayName = 'SchedulerDateFormatContext';
62
- // /**
63
- // * Specifies the result of the [useSchedulerGroupsContext]({% slug api_scheduler_useschedulergroupscontext %}) and [SchedulerGroupsContext]({% slug api_scheduler_schedulergroupscontext %}).
64
- // */
65
- // export type SchedulerGroupsContextType = Group[];
66
- // /**
67
- // * 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).
68
- // *
69
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
70
- // */
71
- // export const SchedulerGroupsContext = React.createContext<SchedulerGroupsContextType>([DEFAULT_GROUP]);
72
- // /**
73
- // * 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).
74
- // *
75
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
76
- // *
77
- // * @returns
78
- // */
79
- // export const useSchedulerGroupsContext = (): SchedulerGroupsContextType => React.useContext(SchedulerGroupsContext);
80
- // SchedulerGroupsContext.displayName = 'SchedulerGroupsContext';
81
- // /**
82
- // * Specifies the result of the [useSchedulerDateRangeContext]({% slug api_scheduler_useschedulerdaterangecontext %}) and [SchedulerDateRangeContext]({% slug api_scheduler_schedulerdaterangecontext %}).
83
- // */
84
- // export type SchedulerDateRangeContextType = DateRange;
85
- // /**
86
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the `dateRange` of the current view.
87
- // *
88
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
89
- // */
90
- // export const SchedulerDateRangeContext = React.createContext<SchedulerDateRangeContextType>(
91
- // { start: new Date(), end: new Date(), zonedStart: ZonedDate.fromLocalDate(new Date()),
92
- // zonedEnd: ZonedDate.fromLocalDate(new Date()) });
93
- // /**
94
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the `dateRange` of the current view.
95
- // *
96
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
97
- // *
98
- // * @returns
99
- // */
100
- // export const useSchedulerDateRangeContext = ():
101
- // SchedulerDateRangeContextType => React.useContext(SchedulerDateRangeContext);
102
- // SchedulerDateRangeContext.displayName = 'SchedulerDateRangeContext';
103
- // /**
104
- // * Specifies the result of the [useSchedulerOrientationContext]({% slug api_scheduler_useschedulerorientationcontext %}) and [SchedulerOrientationContext]({% slug api_scheduler_schedulerorientationcontext %}).
105
- // */
106
- // export type SchedulerOrientationContextType = Orientation;
107
- // /**
108
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the grouping orientation of the Scheduler.
109
- // *
110
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
111
- // */
112
- // export const SchedulerOrientationContext =
113
- // React.createContext<SchedulerOrientationContextType>(null);
114
- // /**
115
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the grouping orientation of the Scheduler.
116
- // *
117
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
118
- // *
119
- // * @returns
120
- // */
121
- // export const useSchedulerOrientationContext = (): SchedulerOrientationContextType
122
- // => React.useContext(SchedulerOrientationContext);
123
- // SchedulerOrientationContext.displayName = 'SchedulerOrientationContext';
124
- // // State
125
- // /**
126
- // * Specifies the result of the [useSchedulerDateContext]({% slug api_scheduler_useschedulerdatecontext %}) and [SchedulerDateContext]({% slug api_scheduler_schedulerdatecontext %}).
127
- // */
128
- // export type SchedulerDateContextType = [Date, (date: Date, event?: any) => void];
129
- // /**
130
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `date` state.
131
- // *
132
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
133
- // */
134
- // export const SchedulerDateContext = React.createContext<SchedulerDateContextType>([new Date(), noop]);
135
- // /**
136
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `date` state.
137
- // *
138
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
139
- // *
140
- // * @returns
141
- // */
142
- // export const useSchedulerDateContext = (): SchedulerDateContextType => React.useContext(SchedulerDateContext);
143
- // SchedulerDateContext.displayName = 'SchedulerDateContext';
144
- // /**
145
- // * Specifies the result of the [useSchedulerDataContext]({% slug api_scheduler_useschedulerdatacontext %}) and [SchedulerDataContext]({% slug api_scheduler_schedulerdatacontext %}).
146
- // */
147
- // export type SchedulerDataContextType = [DataItem[], (action: DataAction, event?: any) => void];
148
- // /**
149
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `data` reducer.
150
- // *
151
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
152
- // */
153
- // export const SchedulerDataContext = React.createContext<SchedulerDataContextType>([[], noop]);
154
- // /**
155
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `data` reducer.
156
- // *
157
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
158
- // *
159
- // * @returns
160
- // */
161
- // export const useSchedulerDataContext = (): SchedulerDataContextType => React.useContext(SchedulerDataContext);
162
- // SchedulerDataContext.displayName = 'SchedulerDataContext';
163
- // /**
164
- // * Specifies the result of the [useSchedulerActiveViewContext]({% slug api_scheduler_usescheduleractiveviewcontext %}) and [SchedulerActiveViewContext]({% slug api_scheduler_scheduleractiveviewcontext %}).
165
- // */
166
- // export type SchedulerActiveViewContextType = [string, (activeView: string, event?: any) => void];
167
- // /**
168
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `activeView` state.
169
- // *
170
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
171
- // */
172
- // export const SchedulerActiveViewContext = React.createContext<SchedulerActiveViewContextType>(['day', noop]);
173
- // /**
174
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `activeView` state.
175
- // *
176
- // * For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
177
- // *
178
- // * @returns
179
- // */
180
- // export const useSchedulerActiveViewContext = ():
181
- // SchedulerActiveViewContextType => React.useContext(SchedulerActiveViewContext);
182
- // SchedulerActiveViewContext.displayName = 'SchedulerActiveViewContext';
183
-
6
+ exports.SchedulerContext = void 0;
184
7
  /** @hidden */
185
8
 
186
9
  exports.SchedulerContext = function (_a) {
187
- return [] // <SchedulerElementContext.Provider value={element}>
188
- // <SchedulerPropsContext.Provider value={props}>
189
- // <SchedulerViewsContext.Provider value={views}>
190
- // <SchedulerFieldsContext.Provider value={fields}>
191
- // <SchedulerDateFormatContext.Provider value={dateFormat}>
192
- // <SchedulerGroupsContext.Provider value={groups}>
193
- // <SchedulerDateRangeContext.Provider value={dateRange}>
194
- // <SchedulerOrientationContext.Provider value={orientation}>
195
- // <SchedulerDateContext.Provider value={date}>
196
- // <SchedulerDataContext.Provider value={data}>
197
- // <SchedulerActiveViewContext.Provider value={activeView}>
198
- // {children}
199
- // </SchedulerActiveViewContext.Provider>
200
- // </SchedulerDataContext.Provider>
201
- // </SchedulerDateContext.Provider>
202
- // </SchedulerOrientationContext.Provider>
203
- // </SchedulerDateRangeContext.Provider>
204
- // </SchedulerGroupsContext.Provider>
205
- // </SchedulerDateFormatContext.Provider>
206
- // </SchedulerFieldsContext.Provider>
207
- // </SchedulerViewsContext.Provider>
208
- // </SchedulerPropsContext.Provider>
209
- // </SchedulerElementContext.Provider>
210
- ;
10
+ return [];
211
11
  };
@@ -14,10 +14,5 @@ export interface SchedulerEditItemContextProps {
14
14
  * Specifies the result of the [useSchedulerEditItemPropsContext]({% slug api_scheduler_usescheduleredititempropscontext %}) and [SchedulerEditItemPropsContext]({% slug api_scheduler_scheduleredititempropscontext %}).
15
15
  */
16
16
  export declare type SchedulerEditItemPropsContextType = SchedulerEditItemProps;
17
- /**
18
- * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) `props`.
19
- *
20
- * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
21
- */
22
17
  /** @hidden */
23
18
  export declare const SchedulerEditItemContext: ({}: SchedulerEditItemContextProps) => any[];
@@ -4,184 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SchedulerEditItemContext = void 0;
7
- /**
8
- * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) `props`.
9
- *
10
- * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
11
- */
12
- // export const SchedulerEditItemPropsContext = React.createContext<SchedulerEditItemPropsContextType>([null] as any);
13
- // /**
14
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) `props`.
15
- // *
16
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
17
- // *
18
- // * @returns
19
- // */
20
- // export const useSchedulerEditItemPropsContext = ():
21
- // SchedulerEditItemPropsContextType => React.useContext(SchedulerEditItemPropsContext);
22
- // SchedulerEditItemPropsContext.displayName = 'SchedulerEditItemPropsContext';
23
- // /**
24
- // * Specifies the result of the [useSchedulerEditItemFormItemContext]({% slug api_scheduler_usescheduleredititemformitemcontext %}) and [SchedulerEditItemFormItemContext]({% slug api_scheduler_scheduleredititemformitemcontext %}).
25
- // */
26
- // export type SchedulerEditItemFormItemContextType =
27
- // [DataItem | null, (newValue: DataItem | null, event?: React.SyntheticEvent | BaseEvent<any>
28
- // | { preventDefault: any }) => void, (action: SchedulerItemFormItemAction, event?:
29
- // React.SyntheticEvent | BaseEvent<any> | { preventDefault: any } ) => void];
30
- // /**
31
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
32
- // *
33
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
34
- // */
35
- // export const SchedulerEditItemFormItemContext =
36
- // React.createContext<SchedulerEditItemFormItemContextType>([null, noop, noop]);
37
- // /**
38
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
39
- // *
40
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
41
- // *
42
- // * @returns
43
- // */
44
- // export const useSchedulerEditItemFormItemContext = ():
45
- // SchedulerEditItemFormItemContextType => React.useContext(SchedulerEditItemFormItemContext);
46
- // SchedulerEditItemFormItemContext.displayName = 'SchedulerEditItemFormItemContext';
47
- // /**
48
- // * Specifies the result of the [useSchedulerEditItemDragItemContext]({% slug api_scheduler_usescheduleredititemdragitemcontext %}) and [SchedulerEditItemDragItemContext]({% slug api_scheduler_scheduleredititemdragitemcontext %}).
49
- // */
50
- // export type SchedulerEditItemDragItemContextType = [DataItem | null, (newValue?: DataItem | null,
51
- // event?: React.SyntheticEvent | BaseEvent<any> | { preventDefault: any }) => void,
52
- // (action: SchedulerItemFormItemAction, event?:
53
- // React.SyntheticEvent | BaseEvent<any> | { preventDefault: any } ) => void];
54
- // /**
55
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
56
- // *
57
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
58
- // */
59
- // export const SchedulerEditItemDragItemContext =
60
- // React.createContext<SchedulerEditItemDragItemContextType>([null, noop, noop]);
61
- // /**
62
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
63
- // *
64
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
65
- // *
66
- // * @returns
67
- // */
68
- // export const useSchedulerEditItemDragItemContext = ():
69
- // SchedulerEditItemDragItemContextType => React.useContext(SchedulerEditItemDragItemContext);
70
- // SchedulerEditItemDragItemContext.displayName = 'SchedulerEditItemDragItemContext';
71
- // /**
72
- // * Specifies the result of the [useSchedulerEditItemResizeItemContext]({% slug api_scheduler_usescheduleredititemresizeitemcontext %}) and [SchedulerEditItemResizeItemContext]({% slug api_scheduler_scheduleredititemresizeitemcontext %}).
73
- // */
74
- // export type SchedulerEditItemResizeItemContextType = [DataItem | null, (newValue?: DataItem |
75
- // null, event?: React.SyntheticEvent | BaseEvent<any> | { preventDefault: any }) => void,
76
- // (action: SchedulerItemFormItemAction, event?:
77
- // React.SyntheticEvent | BaseEvent<any> | { preventDefault: any } ) => void];
78
- // /**
79
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
80
- // *
81
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
82
- // */
83
- // export const SchedulerEditItemResizeItemContext =
84
- // React.createContext<SchedulerEditItemResizeItemContextType>([null, noop, noop]);
85
- // /**
86
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
87
- // *
88
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
89
- // *
90
- // * @returns
91
- // */
92
- // export const useSchedulerEditItemResizeItemContext = ():
93
- // SchedulerEditItemResizeItemContextType => React.useContext(SchedulerEditItemResizeItemContext);
94
- // SchedulerEditItemResizeItemContext.displayName = 'SchedulerEditItemResizeItemContext';
95
- // /**
96
- // * Specifies the result of the [useSchedulerEditItemRemoveItemContext]({% slug api_scheduler_usescheduleredititemremoveitemcontext %}) and [SchedulerEditItemRemoveItemContext]({% slug api_scheduler_scheduleredititemremoveitemcontext %}).
97
- // */
98
- // export type SchedulerEditItemRemoveItemContextType = [DataItem | null, (newValue?: any,
99
- // event?: React.SyntheticEvent | BaseEvent<any> | { preventDefault: any }) => void,
100
- // (action: SchedulerItemFormItemAction, event?:
101
- // React.SyntheticEvent | BaseEvent<any> | { preventDefault: any } ) => void];
102
- // /**
103
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
104
- // *
105
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
106
- // */
107
- // export const SchedulerEditItemRemoveItemContext =
108
- // React.createContext<SchedulerEditItemRemoveItemContextType>([null, noop, noop]);
109
- // /**
110
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
111
- // *
112
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
113
- // *
114
- // * @returns
115
- // */
116
- // export const useSchedulerEditItemRemoveItemContext = ():
117
- // SchedulerEditItemRemoveItemContextType => React.useContext(SchedulerEditItemRemoveItemContext);
118
- // SchedulerEditItemRemoveItemContext.displayName = 'SchedulerEditItemRemoveItemContext';
119
- // /**
120
- // * Specifies the result of the [useSchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_usescheduleredititemshowremovedialogcontext %}) and [SchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_scheduleredititemshowremovedialogcontext %}).
121
- // */
122
- // export type SchedulerEditItemShowRemoveDialogContextType = [boolean, (newValue?: boolean,
123
- // event?: React.SyntheticEvent | BaseEvent<any> | { preventDefault: any }) => void, (
124
- // action: SchedulerItemFormItemAction, event?:
125
- // React.SyntheticEvent | BaseEvent<any> | { preventDefault: any } ) => void];
126
- // /**
127
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
128
- // *
129
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
130
- // */
131
- // export const SchedulerEditItemShowRemoveDialogContext =
132
- // React.createContext<SchedulerEditItemShowRemoveDialogContextType>([false, noop, noop]);
133
- // /**
134
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
135
- // *
136
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
137
- // *
138
- // * @returns
139
- // */
140
- // export const useSchedulerEditItemShowRemoveDialogContext = ():
141
- // SchedulerEditItemShowRemoveDialogContextType => React.useContext(SchedulerEditItemShowRemoveDialogContext);
142
- // SchedulerEditItemShowRemoveDialogContext.displayName = 'SchedulerEditItemShowRemoveDialogContext';
143
- // /**
144
- // * Specifies the result of the [useSchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_usescheduleredititemshowoccurrencedialogcontext %}) and [SchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_scheduleredititemshowoccurrencedialogcontext %}).
145
- // */
146
- // export type SchedulerEditItemShowOccurrenceDialogContextType = [boolean, (newValue?: boolean,
147
- // event?: React.SyntheticEvent | BaseEvent<any> | { preventDefault: any }) => void,
148
- // (action: SchedulerItemFormItemAction, event?:
149
- // React.SyntheticEvent | BaseEvent<any> | { preventDefault: any } ) => void];
150
- // /**
151
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
152
- // *
153
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
154
- // */
155
- // export const SchedulerEditItemShowOccurrenceDialogContext =
156
- // React.createContext<SchedulerEditItemShowOccurrenceDialogContextType>([false, noop, noop]);
157
- // /**
158
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
159
- // *
160
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
161
- // *
162
- // * @returns
163
- // */
164
- // export const useSchedulerEditItemShowOccurrenceDialogContext = (): SchedulerEditItemShowOccurrenceDialogContextType
165
- // => React.useContext(SchedulerEditItemShowOccurrenceDialogContext);
166
- // SchedulerEditItemShowOccurrenceDialogContext.displayName = 'SchedulerEditItemShowOccurrenceDialogContext';
167
-
168
7
  /** @hidden */
169
8
 
170
9
  exports.SchedulerEditItemContext = function (_a) {
171
- return [] // <SchedulerEditItemPropsContext.Provider value={props}>
172
- // <SchedulerEditItemFormItemContext.Provider value={form}>
173
- // <SchedulerEditItemDragItemContext.Provider value={drag}>
174
- // <SchedulerEditItemResizeItemContext.Provider value={resize}>
175
- // <SchedulerEditItemRemoveItemContext.Provider value={remove}>
176
- // <SchedulerEditItemShowRemoveDialogContext.Provider value={showRemoveDialog}>
177
- // <SchedulerEditItemShowOccurrenceDialogContext.Provider value={showOccurrenceDialog}>
178
- // {children}
179
- // </SchedulerEditItemShowOccurrenceDialogContext.Provider>
180
- // </SchedulerEditItemShowRemoveDialogContext.Provider>
181
- // </SchedulerEditItemRemoveItemContext.Provider>
182
- // </SchedulerEditItemResizeItemContext.Provider>
183
- // </SchedulerEditItemDragItemContext.Provider>
184
- // </SchedulerEditItemFormItemContext.Provider>
185
- // </SchedulerEditItemPropsContext.Provider>
186
- ;
10
+ return [];
187
11
  };
@@ -3,51 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SchedulerEditSlotContext = void 0; // /**
7
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) `props`.
8
- // *
9
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
10
- // */
11
- // export const SchedulerEditSlotPropsContext = React.createContext<SchedulerEditSlotPropsContextType>([null] as any);
12
- // /**
13
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) `props`.
14
- // *
15
- // * For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
16
- // *
17
- // * @returns
18
- // */
19
- // export const useSchedulerEditSlotPropsContext = (): SchedulerEditSlotPropsContextType =>
20
- // React.useContext(SchedulerEditSlotPropsContext);
21
- // SchedulerEditSlotPropsContext.displayName = 'SchedulerEditSlotPropsContext';
22
- // /**
23
- // * Specifies the result of the [useSchedulerEditSlotFormItemContext]({% slug api_scheduler_useschedulereditslotformitemcontext %}) and [SchedulerEditSlotFormItemContext]({% slug api_scheduler_schedulereditslotformitemcontext %}).
24
- // */
25
- // export type SchedulerEditSlotFormItemContextType
26
- // = [DataItem | null, (event?: any) => void];
27
- // /**
28
- // * A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
29
- // *
30
- // * For more information, refer to the [Slots Context]({% slug state-update_slots_scheduler %}) article.
31
- // */
32
- // export const SchedulerEditSlotFormItemContext =
33
- // React.createContext<SchedulerEditSlotFormItemContextType>([null] as any);
34
- // /**
35
- // * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
36
- // *
37
- // * For more information, refer to the [Slots Context]({% slug state-update_slots_scheduler %}) article.
38
- // *
39
- // * @returns
40
- // */
41
- // export const useSchedulerEditSlotFormItemContext = () => React.useContext(SchedulerEditSlotFormItemContext);
42
- // SchedulerEditSlotFormItemContext.displayName = 'SchedulerEditSlotFormItemContext';
43
-
6
+ exports.SchedulerEditSlotContext = void 0;
44
7
  /** @hidden */
45
8
 
46
9
  exports.SchedulerEditSlotContext = function (_a) {
47
- return [] // <SchedulerEditSlotPropsContext.Provider value={props}>
48
- // <SchedulerEditSlotFormItemContext.Provider value={form}>
49
- // {children}
50
- // </SchedulerEditSlotFormItemContext.Provider>
51
- // </SchedulerEditSlotPropsContext.Provider>
52
- ;
10
+ return [];
53
11
  };
@@ -9,5 +9,4 @@ export interface SchedulerEditTaskContextProps {
9
9
  /** @hidden */
10
10
  export declare type SchedulerEditTaskRemoveItemContextType = [DataItem | null, (event?: any) => void];
11
11
  /** @hidden */
12
- /** @hidden */
13
12
  export declare const SchedulerEditTaskContext: (_props: SchedulerEditTaskContextProps) => any[];
@@ -4,40 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SchedulerEditTaskContext = void 0;
7
- /** @hidden */
8
- // export const SchedulerEditTaskRemoveItemContext
9
- // = React.createContext<SchedulerEditTaskRemoveItemContextType>([null] as any);
10
- // /** @hidden */
11
- // export const useSchedulerEditTaskRemoveItemContext
12
- // = () => React.useContext(SchedulerEditTaskRemoveItemContext);
13
- // /** @hidden */
14
- // export type SchedulerEditTaskShowRemoveDialogContextType
15
- // = [boolean, (event?: any) => void];
16
- // /** @hidden */
17
- // export const SchedulerEditTaskShowRemoveDialogContext
18
- // = React.createContext<SchedulerEditTaskShowRemoveDialogContextType>([false] as any);
19
- // /** @hidden */
20
- // export const useSchedulerEditTaskShowRemoveDialogContext
21
- // = () => React.useContext(SchedulerEditTaskShowRemoveDialogContext);
22
- // /** @hidden */
23
- // export type SchedulerEditTaskShowOccurrenceDialogContextType
24
- // = [boolean, (event?: any) => void];
25
- // /** @hidden */
26
- // export const SchedulerEditTaskShowOccurrenceDialogContext
27
- // = React.createContext<SchedulerEditTaskShowOccurrenceDialogContextType>([false] as any);
28
- // /** @hidden */
29
- // export const useSchedulerEditTaskShowOccurrenceDialogContext
30
- // = () => React.useContext(SchedulerEditTaskShowOccurrenceDialogContext);
31
-
32
7
  /** @hidden */
33
8
 
34
9
  exports.SchedulerEditTaskContext = function (_props) {
35
- return [] // <SchedulerEditTaskRemoveItemContext.Provider value={props.remove}>
36
- // <SchedulerEditTaskShowRemoveDialogContext.Provider value={props.showRemoveDialog}>
37
- // <SchedulerEditTaskShowOccurrenceDialogContext.Provider value={props.showOccurrenceDialog}>
38
- // {props.children}
39
- // </SchedulerEditTaskShowOccurrenceDialogContext.Provider>
40
- // </SchedulerEditTaskShowRemoveDialogContext.Provider>
41
- // </SchedulerEditTaskRemoveItemContext.Provider>
42
- ;
10
+ return [];
43
11
  };
@@ -15,5 +15,4 @@ export interface SchedulerViewContextProps {
15
15
  /** @hidden */
16
16
  export declare type SchedulerViewPropsContextType = SchedulerViewProps;
17
17
  /** @hidden */
18
- /** @hidden */
19
18
  export declare const SchedulerViewContext: ({}: SchedulerViewContextProps) => any[];
@@ -4,99 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SchedulerViewContext = void 0;
7
- /** @hidden */
8
- // export const SchedulerViewPropsContext = React.createContext<SchedulerViewPropsContextType>({});
9
- // /** @hidden */
10
- // export const useSchedulerViewPropsContext = () => React.useContext(SchedulerViewPropsContext);
11
- // SchedulerViewPropsContext.displayName = 'SchedulerViewPropsContext';
12
- // /** @hidden */
13
- // export type SchedulerViewRangesContextType = Range[];
14
- // /** @hidden */
15
- // export const SchedulerViewRangesContext = React.createContext<SchedulerViewRangesContextType>([]);
16
- // /** @hidden */
17
- // export const useSchedulerViewRangesContext = () => React.useContext(SchedulerViewRangesContext);
18
- // SchedulerViewRangesContext.displayName = 'SchedulerViewRangesContext';
19
- // // Ref
20
- // /** @hidden */
21
- // export type SchedulerViewSlotsContextType
22
- // = [React.RefObject<SchedulerSlotHandle>[], (
23
- // action: CollectionAction<React.RefObject<SchedulerSlotHandle>>) => void];
24
- // /** @hidden */
25
- // export const SchedulerViewSlotsContext = React.createContext<SchedulerViewSlotsContextType>([[], noop]);
26
- // /** @hidden */
27
- // export const useSchedulerViewSlotsContext = () => React.useContext(SchedulerViewSlotsContext);
28
- // SchedulerViewSlotsContext.displayName = 'SchedulerViewSlotsContext';
29
- // /** @hidden */
30
- // export type SchedulerViewItemsContextType
31
- // = [React.RefObject<SchedulerItemHandle>[], (
32
- // action: CollectionAction<React.RefObject<SchedulerItemHandle>>) => void];
33
- // /** @hidden */
34
- // export const SchedulerViewItemsContext = React.createContext<SchedulerViewItemsContextType>([[], noop]);
35
- // /** @hidden */
36
- // export const useSchedulerViewItemsContext = () => React.useContext(SchedulerViewItemsContext);
37
- // SchedulerViewItemsContext.displayName = 'SchedulerViewItemsContext';
38
- // // State
39
- // /** @hidden */
40
- // export type SchedulerViewSelectedSlotsContextType
41
- // = [React.RefObject<SchedulerSlotHandle>[], (
42
- // action: SchedulerSlotsSelectAction, event: React.SyntheticEvent) => void];
43
- // /** @hidden */
44
- // export const SchedulerViewSelectedSlotsContext =
45
- // React.createContext<SchedulerViewSelectedSlotsContextType>([[], noop]);
46
- // /** @hidden */
47
- // export const useSchedulerViewSelectedSlotsContext = () => React.useContext(SchedulerViewSelectedSlotsContext);
48
- // SchedulerViewSelectedSlotsContext.displayName = 'SchedulerViewSelectedSlotsContext';
49
- // /** @hidden */
50
- // export type SchedulerViewSelectedItemsContextType
51
- // = [React.RefObject<SchedulerItemHandle>[], (
52
- // action: SchedulerItemsSelectAction, event: React.SyntheticEvent) => void];
53
- // /** @hidden */
54
- // export const SchedulerViewSelectedItemsContext =
55
- // React.createContext<SchedulerViewSelectedItemsContextType>([[], noop]);
56
- // /** @hidden */
57
- // export const useSchedulerViewSelectedItemsContext = () => React.useContext(SchedulerViewSelectedItemsContext);
58
- // SchedulerViewSelectedItemsContext.displayName = 'SchedulerViewSelectedItemsContext';
59
- // /** @hidden */
60
- // export type SchedulerViewFocusedItemsContextType
61
- // = [React.RefObject<SchedulerItemHandle>[], (
62
- // action: SchedulerItemsFocusAction, event:
63
- // React.SyntheticEvent) => void];
64
- // /** @hidden */
65
- // export const SchedulerViewFocusedItemsContext =
66
- // React.createContext<SchedulerViewFocusedItemsContextType>([[], noop]);
67
- // /** @hidden */
68
- // export const useSchedulerViewFocusedItemsContext = () => React.useContext(SchedulerViewFocusedItemsContext);
69
- // SchedulerViewFocusedItemsContext.displayName = 'SchedulerViewFocusedItemsContext';
70
- // /** @hidden */
71
- // export type SchedulerViewFocusedSlotsContextType
72
- // = [React.RefObject<SchedulerSlotHandle>[], (
73
- // action: SchedulerSlotsFocusAction, event: React.SyntheticEvent) => void];
74
- // /** @hidden */
75
- // export const SchedulerViewFocusedSlotsContext =
76
- // React.createContext<SchedulerViewFocusedSlotsContextType>([[], noop]);
77
- // /** @hidden */
78
- // export const useSchedulerViewFocusedSlotsContext = () => React.useContext(SchedulerViewFocusedSlotsContext);
79
- // SchedulerViewFocusedSlotsContext.displayName = 'SchedulerViewFocusedSlotsContext';
80
-
81
7
  /** @hidden */
82
8
 
83
9
  exports.SchedulerViewContext = function (_a) {
84
- return [] // <SchedulerViewPropsContext.Provider value={props}>
85
- // <SchedulerViewRangesContext.Provider value={ranges}>
86
- // <SchedulerViewSlotsContext.Provider value={slots}>
87
- // <SchedulerViewItemsContext.Provider value={items}>
88
- // <SchedulerViewSelectedSlotsContext.Provider value={selectedSlots}>
89
- // <SchedulerViewSelectedItemsContext.Provider value={selectedItems}>
90
- // <SchedulerViewFocusedItemsContext.Provider value={focusedItems}>
91
- // <SchedulerViewFocusedSlotsContext.Provider value={focusedSlots}>
92
- // {children}
93
- // </SchedulerViewFocusedSlotsContext.Provider>
94
- // </SchedulerViewFocusedItemsContext.Provider>
95
- // </SchedulerViewSelectedItemsContext.Provider>
96
- // </SchedulerViewSelectedSlotsContext.Provider>
97
- // </SchedulerViewItemsContext.Provider>
98
- // </SchedulerViewSlotsContext.Provider>
99
- // </SchedulerViewRangesContext.Provider>
100
- // </SchedulerViewPropsContext.Provider>
101
- ;
10
+ return [];
102
11
  };