@progress/kendo-react-scheduler 7.2.4-develop.3 → 7.2.4-develop.4

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 (301) hide show
  1. package/Scheduler.js +8 -0
  2. package/Scheduler.mjs +389 -0
  3. package/components/BaseView.js +8 -0
  4. package/components/BaseView.mjs +61 -0
  5. package/components/CurrentTimeMarket.js +8 -0
  6. package/components/CurrentTimeMarket.mjs +110 -0
  7. package/components/DateHeaderCell.js +8 -0
  8. package/components/DateHeaderCell.mjs +43 -0
  9. package/components/SchedulerForm.js +8 -0
  10. package/components/SchedulerForm.mjs +119 -0
  11. package/components/SchedulerOccurrenceDialog.js +8 -0
  12. package/components/SchedulerOccurrenceDialog.mjs +48 -0
  13. package/components/SchedulerRemoveDialog.js +8 -0
  14. package/components/SchedulerRemoveDialog.mjs +50 -0
  15. package/components/ShowMoreItemsButton.js +8 -0
  16. package/components/ShowMoreItemsButton.mjs +49 -0
  17. package/components/TimeHeaderCell.js +8 -0
  18. package/components/TimeHeaderCell.mjs +43 -0
  19. package/components/footer/SchedulerFooter.js +8 -0
  20. package/components/footer/SchedulerFooter.mjs +35 -0
  21. package/components/footer/bussiness-hours/BussinessHours.js +8 -0
  22. package/components/footer/bussiness-hours/BussinessHours.mjs +31 -0
  23. package/components/header/SchedulerHeader.js +8 -0
  24. package/components/header/SchedulerHeader.mjs +35 -0
  25. package/components/header/navigation/NavigationDatePicker.js +8 -0
  26. package/components/header/navigation/NavigationDatePicker.mjs +113 -0
  27. package/components/header/navigation/SchedulerNavigation.js +8 -0
  28. package/components/header/navigation/SchedulerNavigation.mjs +32 -0
  29. package/components/header/view-selector/SchedulerViewSelector.js +8 -0
  30. package/components/header/view-selector/SchedulerViewSelector.mjs +32 -0
  31. package/components/header/view-selector/ViewSelectorItem.js +8 -0
  32. package/components/header/view-selector/ViewSelectorItem.mjs +39 -0
  33. package/components/header/view-selector/ViewSelectorList.js +8 -0
  34. package/components/header/view-selector/ViewSelectorList.mjs +65 -0
  35. package/constants/index.js +8 -0
  36. package/constants/index.mjs +28 -0
  37. package/context/SchedulerContext.js +8 -0
  38. package/context/SchedulerContext.mjs +78 -0
  39. package/context/SchedulerEditItemContext.js +8 -0
  40. package/context/SchedulerEditItemContext.mjs +51 -0
  41. package/context/SchedulerEditSlotContext.js +8 -0
  42. package/context/SchedulerEditSlotContext.mjs +25 -0
  43. package/context/SchedulerEditTaskContext.js +8 -0
  44. package/context/SchedulerEditTaskContext.mjs +16 -0
  45. package/context/SchedulerResourceIteratorContext.js +8 -0
  46. package/context/SchedulerResourceIteratorContext.mjs +16 -0
  47. package/context/SchedulerViewContext.js +8 -0
  48. package/context/SchedulerViewContext.mjs +60 -0
  49. package/dist/cdn/js/kendo-react-scheduler.js +8 -5
  50. package/editors/FilterableComboBox.js +8 -0
  51. package/editors/FilterableComboBox.mjs +37 -0
  52. package/editors/ResourceEditor.js +8 -0
  53. package/editors/ResourceEditor.mjs +71 -0
  54. package/editors/SchedulerFormEditor.js +8 -0
  55. package/editors/SchedulerFormEditor.mjs +368 -0
  56. package/editors/ZonedDateTime.js +8 -0
  57. package/editors/ZonedDateTime.mjs +44 -0
  58. package/hooks/use-items-focus.js +8 -0
  59. package/hooks/use-items-focus.mjs +42 -0
  60. package/hooks/use-items-selection.js +8 -0
  61. package/hooks/use-items-selection.mjs +67 -0
  62. package/hooks/use-slots-focus.js +8 -0
  63. package/hooks/use-slots-focus.mjs +49 -0
  64. package/hooks/use-slots-selection.js +8 -0
  65. package/hooks/use-slots-selection.mjs +37 -0
  66. package/hooks/useCellSync.js +8 -0
  67. package/hooks/useCellSync.mjs +29 -0
  68. package/hooks/useControlledState.js +8 -0
  69. package/hooks/useControlledState.mjs +21 -0
  70. package/hooks/useEditable.js +8 -0
  71. package/hooks/useEditable.mjs +24 -0
  72. package/hooks/useRowSync.js +8 -0
  73. package/hooks/useRowSync.mjs +32 -0
  74. package/hooks/useSchedulerItem.js +8 -0
  75. package/hooks/useSchedulerItem.mjs +31 -0
  76. package/hooks/useSchedulerSlot.js +8 -0
  77. package/hooks/useSchedulerSlot.mjs +31 -0
  78. package/hooks/useSlotExpand.js +8 -0
  79. package/hooks/useSlotExpand.mjs +67 -0
  80. package/index.d.mts +4220 -5
  81. package/index.d.ts +4220 -45
  82. package/index.js +8 -5
  83. package/index.mjs +145 -5878
  84. package/items/SchedulerEditItem.js +8 -0
  85. package/items/SchedulerEditItem.mjs +610 -0
  86. package/items/SchedulerItem.js +8 -0
  87. package/items/SchedulerItem.mjs +328 -0
  88. package/items/SchedulerItemContent.js +8 -0
  89. package/items/SchedulerItemContent.mjs +23 -0
  90. package/items/SchedulerProportionalViewItem.js +8 -0
  91. package/items/SchedulerProportionalViewItem.mjs +120 -0
  92. package/items/SchedulerViewItem.js +8 -0
  93. package/items/SchedulerViewItem.mjs +128 -0
  94. package/items/hooks/use-drag-item.js +8 -0
  95. package/items/hooks/use-drag-item.mjs +118 -0
  96. package/items/hooks/use-form-item.js +8 -0
  97. package/items/hooks/use-form-item.mjs +46 -0
  98. package/items/hooks/use-remove-item.js +8 -0
  99. package/items/hooks/use-remove-item.mjs +40 -0
  100. package/items/hooks/use-resize-item.js +8 -0
  101. package/items/hooks/use-resize-item.mjs +145 -0
  102. package/items/hooks/use-series.js +8 -0
  103. package/items/hooks/use-series.mjs +32 -0
  104. package/items/hooks/use-show-occurrence-dialog.js +8 -0
  105. package/items/hooks/use-show-occurrence-dialog.mjs +36 -0
  106. package/items/hooks/use-show-remove-item-dialog.js +8 -0
  107. package/items/hooks/use-show-remove-item-dialog.mjs +36 -0
  108. package/messages/index.js +8 -0
  109. package/messages/index.mjs +167 -0
  110. package/package-metadata.js +8 -0
  111. package/package-metadata.mjs +19 -0
  112. package/package.json +10 -10
  113. package/recurrence/RecurrenceEditor.js +8 -0
  114. package/recurrence/RecurrenceEditor.mjs +438 -0
  115. package/recurrence/RecurrenceFrequencyEditor.js +8 -0
  116. package/recurrence/RecurrenceFrequencyEditor.mjs +41 -0
  117. package/recurrence/RecurrenceRepeatOnWeekEditor.js +8 -0
  118. package/recurrence/RecurrenceRepeatOnWeekEditor.mjs +35 -0
  119. package/recurrence/common.js +8 -0
  120. package/recurrence/common.mjs +127 -0
  121. package/services/itemsService.js +8 -0
  122. package/services/itemsService.mjs +56 -0
  123. package/services/occurrenceService.js +8 -0
  124. package/services/occurrenceService.mjs +49 -0
  125. package/services/rangeService.js +8 -0
  126. package/services/rangeService.mjs +26 -0
  127. package/services/slotsService.js +8 -0
  128. package/services/slotsService.mjs +39 -0
  129. package/slots/SchedulerEditSlot.js +8 -0
  130. package/slots/SchedulerEditSlot.mjs +191 -0
  131. package/slots/SchedulerSlot.js +8 -0
  132. package/slots/SchedulerSlot.mjs +175 -0
  133. package/slots/SchedulerViewSlot.js +8 -0
  134. package/slots/SchedulerViewSlot.mjs +24 -0
  135. package/tasks/SchedulerEditTask.js +8 -0
  136. package/tasks/SchedulerEditTask.mjs +157 -0
  137. package/tasks/SchedulerTask.js +8 -0
  138. package/tasks/SchedulerTask.mjs +67 -0
  139. package/tasks/SchedulerViewTask.js +8 -0
  140. package/tasks/SchedulerViewTask.mjs +23 -0
  141. package/utils/index.js +8 -0
  142. package/utils/index.mjs +171 -0
  143. package/views/agenda/AgendaView.js +8 -0
  144. package/views/agenda/AgendaView.mjs +147 -0
  145. package/views/common/HorizontalResourceIterator.js +8 -0
  146. package/views/common/HorizontalResourceIterator.mjs +38 -0
  147. package/views/common/SchedulerDrag.js +8 -0
  148. package/views/common/SchedulerDrag.mjs +44 -0
  149. package/views/common/SchedulerResize.js +8 -0
  150. package/views/common/SchedulerResize.mjs +48 -0
  151. package/views/common/VerticalResourceIterator.js +8 -0
  152. package/views/common/VerticalResourceIterator.mjs +78 -0
  153. package/views/common/utils.js +8 -0
  154. package/views/common/utils.mjs +75 -0
  155. package/views/day/DayView.js +8 -0
  156. package/views/day/DayView.mjs +27 -0
  157. package/views/day/DayViewAllDayRowContent.js +8 -0
  158. package/views/day/DayViewAllDayRowContent.mjs +18 -0
  159. package/views/day/DayViewGroupRowContent.js +8 -0
  160. package/views/day/DayViewGroupRowContent.mjs +13 -0
  161. package/views/day/DayViewRowContent.js +8 -0
  162. package/views/day/DayViewRowContent.mjs +32 -0
  163. package/views/day/MultiDayView.js +8 -0
  164. package/views/day/MultiDayView.mjs +376 -0
  165. package/views/month/MonthView.js +8 -0
  166. package/views/month/MonthView.mjs +155 -0
  167. package/views/time/MultiDayTimelineView.js +8 -0
  168. package/views/time/MultiDayTimelineView.mjs +264 -0
  169. package/views/time/TimelineView.js +8 -0
  170. package/views/time/TimelineView.mjs +27 -0
  171. package/views/time/TimelineViewAllEventsRowContent.js +8 -0
  172. package/views/time/TimelineViewAllEventsRowContent.mjs +18 -0
  173. package/views/time/TimelineViewRowContent.js +8 -0
  174. package/views/time/TimelineViewRowContent.mjs +13 -0
  175. package/views/week/WeekView.js +8 -0
  176. package/views/week/WeekView.mjs +44 -0
  177. package/views/week/WorkWeekView.js +8 -0
  178. package/views/week/WorkWeekView.mjs +55 -0
  179. package/Scheduler.d.ts +0 -373
  180. package/components/BaseView.d.ts +0 -22
  181. package/components/CurrentTimeMarket.d.ts +0 -14
  182. package/components/DateHeaderCell.d.ts +0 -50
  183. package/components/SchedulerForm.d.ts +0 -75
  184. package/components/SchedulerOccurrenceDialog.d.ts +0 -46
  185. package/components/SchedulerRemoveDialog.d.ts +0 -42
  186. package/components/ShowMoreItemsButton.d.ts +0 -30
  187. package/components/TimeHeaderCell.d.ts +0 -50
  188. package/components/footer/SchedulerFooter.d.ts +0 -25
  189. package/components/footer/bussiness-hours/BussinessHours.d.ts +0 -17
  190. package/components/header/SchedulerHeader.d.ts +0 -22
  191. package/components/header/navigation/NavigationDatePicker.d.ts +0 -9
  192. package/components/header/navigation/SchedulerNavigation.d.ts +0 -28
  193. package/components/header/view-selector/SchedulerViewSelector.d.ts +0 -28
  194. package/components/header/view-selector/ViewSelectorItem.d.ts +0 -12
  195. package/components/header/view-selector/ViewSelectorList.d.ts +0 -7
  196. package/constants/index.d.ts +0 -58
  197. package/context/SchedulerContext.d.ts +0 -231
  198. package/context/SchedulerEditItemContext.d.ts +0 -172
  199. package/context/SchedulerEditSlotContext.d.ts +0 -51
  200. package/context/SchedulerEditTaskContext.d.ts +0 -33
  201. package/context/SchedulerResourceIteratorContext.d.ts +0 -20
  202. package/context/SchedulerViewContext.d.ts +0 -76
  203. package/context/index.d.ts +0 -9
  204. package/editors/FilterableComboBox.d.ts +0 -8
  205. package/editors/ResourceEditor.d.ts +0 -18
  206. package/editors/SchedulerFormEditor.d.ts +0 -498
  207. package/editors/ZonedDateTime.d.ts +0 -22
  208. package/hooks/index.d.ts +0 -14
  209. package/hooks/use-items-focus.d.ts +0 -27
  210. package/hooks/use-items-selection.d.ts +0 -35
  211. package/hooks/use-slots-focus.d.ts +0 -38
  212. package/hooks/use-slots-selection.d.ts +0 -28
  213. package/hooks/useAsyncMouseEnterLeave.d.ts +0 -15
  214. package/hooks/useCellSync.d.ts +0 -14
  215. package/hooks/useControlledState.d.ts +0 -17
  216. package/hooks/useEditable.d.ts +0 -7
  217. package/hooks/usePropOrState.d.ts +0 -6
  218. package/hooks/useRowSync.d.ts +0 -15
  219. package/hooks/useSchedulerItem.d.ts +0 -11
  220. package/hooks/useSchedulerSlot.d.ts +0 -11
  221. package/hooks/useSlotExpand.d.ts +0 -9
  222. package/hooks/useWorkHours.d.ts +0 -6
  223. package/items/SchedulerEditItem.d.ts +0 -417
  224. package/items/SchedulerItem.d.ts +0 -203
  225. package/items/SchedulerItemContent.d.ts +0 -15
  226. package/items/SchedulerProportionalViewItem.d.ts +0 -16
  227. package/items/SchedulerViewItem.d.ts +0 -37
  228. package/items/hooks/use-drag-item.d.ts +0 -46
  229. package/items/hooks/use-form-item.d.ts +0 -26
  230. package/items/hooks/use-remove-item.d.ts +0 -34
  231. package/items/hooks/use-resize-item.d.ts +0 -49
  232. package/items/hooks/use-series.d.ts +0 -27
  233. package/items/hooks/use-show-occurrence-dialog.d.ts +0 -31
  234. package/items/hooks/use-show-remove-item-dialog.d.ts +0 -31
  235. package/messages/index.d.ts +0 -240
  236. package/models/DataItem.d.ts +0 -12
  237. package/models/DateRange.d.ts +0 -22
  238. package/models/EditableProp.d.ts +0 -33
  239. package/models/Fields.d.ts +0 -21
  240. package/models/Group.d.ts +0 -12
  241. package/models/Item.d.ts +0 -68
  242. package/models/Occurrence.d.ts +0 -56
  243. package/models/Omit.d.ts +0 -8
  244. package/models/Orientation.d.ts +0 -6
  245. package/models/Range.d.ts +0 -14
  246. package/models/Rect.d.ts +0 -19
  247. package/models/Resource.d.ts +0 -12
  248. package/models/SchedulerGroup.d.ts +0 -17
  249. package/models/SchedulerHandle.d.ts +0 -12
  250. package/models/SchedulerModelFields.d.ts +0 -66
  251. package/models/SchedulerResource.d.ts +0 -37
  252. package/models/SchedulerView.d.ts +0 -80
  253. package/models/Slot.d.ts +0 -54
  254. package/models/events.d.ts +0 -87
  255. package/models/index.d.ts +0 -21
  256. package/package-metadata.d.ts +0 -9
  257. package/recurrence/RecurrenceEditor.d.ts +0 -16
  258. package/recurrence/RecurrenceFrequencyEditor.d.ts +0 -14
  259. package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -17
  260. package/recurrence/common.d.ts +0 -61
  261. package/recurrence/types/EndRule.d.ts +0 -8
  262. package/recurrence/types/Frequency.d.ts +0 -8
  263. package/recurrence/types/FrequencyEntity.d.ts +0 -12
  264. package/recurrence/types/MonthEntity.d.ts +0 -11
  265. package/recurrence/types/OffsetPosition.d.ts +0 -8
  266. package/recurrence/types/OffsetPositionEntity.d.ts +0 -11
  267. package/recurrence/types/RepeatOnRule.d.ts +0 -8
  268. package/recurrence/types/WeekDayEntity.d.ts +0 -11
  269. package/recurrence/types/WeekDayRule.d.ts +0 -11
  270. package/reducers/editReducer.d.ts +0 -37
  271. package/reducers/index.d.ts +0 -5
  272. package/services/index.d.ts +0 -8
  273. package/services/itemsService.d.ts +0 -16
  274. package/services/occurrenceService.d.ts +0 -7
  275. package/services/rangeService.d.ts +0 -7
  276. package/services/slotsService.d.ts +0 -10
  277. package/slots/SchedulerEditSlot.d.ts +0 -56
  278. package/slots/SchedulerSlot.d.ts +0 -131
  279. package/slots/SchedulerViewSlot.d.ts +0 -50
  280. package/tasks/SchedulerEditTask.d.ts +0 -84
  281. package/tasks/SchedulerTask.d.ts +0 -61
  282. package/tasks/SchedulerViewTask.d.ts +0 -35
  283. package/utils/index.d.ts +0 -172
  284. package/views/agenda/AgendaView.d.ts +0 -96
  285. package/views/common/HorizontalResourceIterator.d.ts +0 -30
  286. package/views/common/SchedulerDrag.d.ts +0 -43
  287. package/views/common/SchedulerResize.d.ts +0 -45
  288. package/views/common/VerticalResourceIterator.d.ts +0 -25
  289. package/views/common/utils.d.ts +0 -38
  290. package/views/day/DayView.d.ts +0 -36
  291. package/views/day/DayViewAllDayRowContent.d.ts +0 -12
  292. package/views/day/DayViewGroupRowContent.d.ts +0 -12
  293. package/views/day/DayViewRowContent.d.ts +0 -17
  294. package/views/day/MultiDayView.d.ts +0 -175
  295. package/views/month/MonthView.d.ts +0 -98
  296. package/views/time/MultiDayTimelineView.d.ts +0 -179
  297. package/views/time/TimelineView.d.ts +0 -36
  298. package/views/time/TimelineViewAllEventsRowContent.d.ts +0 -11
  299. package/views/time/TimelineViewRowContent.d.ts +0 -11
  300. package/views/week/WeekView.d.ts +0 -106
  301. package/views/week/WorkWeekView.d.ts +0 -24
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * An interface for the resources of the Scheduler.
7
- */
8
- export interface SchedulerResource {
9
- /**
10
- * The resource name. If not set, the value of the `field` option is used.
11
- */
12
- name?: string;
13
- /**
14
- * The field name of the event that contains the resource value.
15
- */
16
- field: string;
17
- /**
18
- * The resource data.
19
- */
20
- data: any[];
21
- /**
22
- * The field name from the data that contains the resource value.
23
- */
24
- valueField: string;
25
- /**
26
- * The field name from the data that contains the resource text.
27
- */
28
- textField: string;
29
- /**
30
- * The field name from the data that contains the resource color.
31
- */
32
- colorField?: string;
33
- /**
34
- * Specifies if the events have multiple resource values.
35
- */
36
- multiple?: boolean;
37
- }
@@ -1,80 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { LocalizationService, IntlService } from '@progress/kendo-react-intl';
6
- import { DateRange } from './DateRange';
7
- import { Day } from '@progress/kendo-date-math';
8
- import { DataAction } from '../Scheduler';
9
- import { SchedulerFooterProps } from '../components/footer/SchedulerFooter';
10
- import { SchedulerHeaderProps } from '../components/header/SchedulerHeader';
11
- /**
12
- * Represents the arguments which are passed to the [dateRange]({% slug api_scheduler_schedulerviewprops %}#toc-daterange) function.
13
- */
14
- export interface SchedulerViewDateRangeArgs {
15
- date: Date;
16
- intl: IntlService;
17
- timezone?: string;
18
- numberOfDays?: number;
19
- workWeekStart?: Day;
20
- workWeekEnd?: Day;
21
- }
22
- export type SchedulerViewDateRangeFunction = (args: SchedulerViewDateRangeArgs) => DateRange;
23
- /**
24
- * Represents the required props which every [SchedulerView]({% slug api_scheduler_schedulerview %}) must accept.
25
- */
26
- export interface SchedulerViewProps {
27
- /**
28
- * The name property is used by the Scheduler to match which view is selected. Every view has a default name.
29
- */
30
- name?: string;
31
- /**
32
- * The title to be displayed in the view selection list in the Toolbar.
33
- * If a function is passed, it will receive a [LocalizationService]({ slug api_intl_localizationservice }) as an argument
34
- */
35
- title?: string | ((localization: LocalizationService) => string);
36
- /**
37
- * Called every time any of the SchedulerView Slots or Items trigger a data action, through editing, deleting or creating new `DataItem`.
38
- */
39
- onDataAction?: (action: DataAction) => void;
40
- /**
41
- * Specifies the number of days to be shown in the current view.
42
- */
43
- numberOfDays?: number;
44
- /**
45
- * The long-date format for displaying the
46
- * selected date in the Scheduler toolbar.
47
- * Defaults to `{0:Y}`
48
- * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
49
- */
50
- selectedDateFormat?: string;
51
- /**
52
- * The short-date format for displaying the
53
- * selected date in the Scheduler toolbar.
54
- * Defaults to `{0:Y}`
55
- * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
56
- */
57
- selectedShortDateFormat?: string;
58
- /**
59
- * Overrides the `dateRange` calculated by the `Scheduler` component.
60
- *
61
- * If a function is passed, an object of type [SchedulerViewDateRangeArgs]({% slug api_scheduler_schedulerviewdaterangeargs %}) will be passed.
62
- */
63
- dateRange?: DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange);
64
- /** @hidden */
65
- header?: React.ComponentType<SchedulerHeaderProps>;
66
- /** @hidden */
67
- footer?: React.ComponentType<SchedulerFooterProps>;
68
- /** @hidden */
69
- slotDivisions?: number;
70
- /** @hidden */
71
- slotDuration?: number;
72
- /** @hidden */
73
- workWeekStart?: Day;
74
- /** @hidden */
75
- workWeekEnd?: Day;
76
- }
77
- /**
78
- * Represents a single Scheduler view.
79
- */
80
- export type SchedulerView = React.ReactElement<SchedulerViewProps>;
package/models/Slot.d.ts DELETED
@@ -1,54 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ZonedDate } from '@progress/kendo-date-math';
6
- import { Item } from './Item';
7
- import { Group } from './Group';
8
- import { Range } from './Range';
9
- import { SchedulerSlotHandle } from '../slots/SchedulerSlot';
10
- /** @hidden */
11
- export interface Slot {
12
- /** @hidden */
13
- _ref: React.RefObject<SchedulerSlotHandle | null>;
14
- /**
15
- * Represents the consecutive number of the slot in the current range.
16
- */
17
- index: number;
18
- /**
19
- * The `end` date of the slot.
20
- */
21
- start: Date;
22
- /**
23
- * The `end` date of the slot.
24
- */
25
- end: Date;
26
- /**
27
- * Represents the `start` Date in the provided timezone.
28
- *
29
- * For more information about timezones, refer to the [Scheduler TImezones]({% slug timezones_scheduler %}) article.
30
- */
31
- zonedStart: ZonedDate;
32
- /**
33
- * Represents the `end` Date in the provided timezone.
34
- *
35
- * For more information about timezones, refer to the [Scheduler TImezones]({% slug timezones_scheduler %}) article.
36
- */
37
- zonedEnd: ZonedDate;
38
- /**
39
- * A collection of all `items` which fits in the current slot.
40
- */
41
- items: Item[];
42
- /**
43
- * Represents the current group in which the slot is rendered.
44
- */
45
- group: Group;
46
- /**
47
- * Represents the current range in which the slot is rendered.
48
- */
49
- range: Range;
50
- /**
51
- * Represents if the slot is an `All-day` slot.
52
- */
53
- isAllDay?: boolean;
54
- }
@@ -1,87 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { SchedulerItemHandle } from '../items/SchedulerItem';
6
- import { SchedulerSlotHandle } from '../slots/SchedulerSlot';
7
- import { SchedulerTaskHandle } from '../tasks/SchedulerTask';
8
- /**
9
- * @hidden
10
- **/
11
- export interface BaseEvent<T> {
12
- target: T;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export interface ItemDragEvent {
18
- pageX: number;
19
- pageY: number;
20
- clientX: number;
21
- clientY: number;
22
- offsetX: number;
23
- offsetY: number;
24
- type: string;
25
- ctrlKey: boolean;
26
- shiftKey: boolean;
27
- altKey: boolean;
28
- originalEvent: PointerEvent;
29
- }
30
- /**
31
- * @hidden
32
- */
33
- export interface ViewChangeEvent {
34
- target: any;
35
- syntheticEvent: React.SyntheticEvent;
36
- }
37
- /**
38
- * @hidden
39
- */
40
- export interface SchedulerItemFocusEvent {
41
- target: SchedulerItemHandle;
42
- syntheticEvent: React.FocusEvent;
43
- }
44
- /**
45
- * @hidden
46
- */
47
- export interface SchedulerItemMouseEvent {
48
- target: SchedulerItemHandle;
49
- syntheticEvent: React.MouseEvent;
50
- }
51
- /**
52
- * @hidden
53
- */
54
- export interface SchedulerItemKeyboardEvent {
55
- target: SchedulerItemHandle;
56
- syntheticEvent: React.KeyboardEvent;
57
- }
58
- /**
59
- * @hidden
60
- */
61
- export interface SchedulerItemDragEvent {
62
- target: SchedulerItemHandle;
63
- dragEvent: ItemDragEvent;
64
- }
65
- export interface SchedulerTaskMouseEvent {
66
- target: SchedulerTaskHandle;
67
- syntheticEvent: React.MouseEvent;
68
- }
69
- /**
70
- * @hidden
71
- */
72
- export interface SchedulerSlotFocusEvent {
73
- target: SchedulerSlotHandle;
74
- syntheticEvent: React.FocusEvent;
75
- }
76
- /**
77
- * @hidden
78
- */
79
- export interface SchedulerSlotMouseEvent {
80
- target: SchedulerSlotHandle;
81
- syntheticEvent: React.MouseEvent;
82
- }
83
- /** @hidden */
84
- export interface SchedulerSlotKeyboardEvent {
85
- target: SchedulerSlotHandle;
86
- syntheticEvent: React.KeyboardEvent;
87
- }
package/models/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './DateRange';
6
- export * from './DataItem';
7
- export * from './SchedulerModelFields';
8
- export * from './Rect';
9
- export * from './Item';
10
- export * from './Slot';
11
- export * from './Occurrence';
12
- export * from './Range';
13
- export * from './Group';
14
- export * from './SchedulerGroup';
15
- export * from './EditableProp';
16
- export * from './SchedulerView';
17
- export * from './SchedulerResource';
18
- export * from './events';
19
- export * from './Resource';
20
- export * from './Orientation';
21
- export * from './Fields';
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /** @hidden */
7
- export interface RecurrenceEditorProps {
8
- value: string;
9
- start: Date;
10
- timezone: string;
11
- onChange: ({ value }: {
12
- value: string | null;
13
- }) => void;
14
- }
15
- /** @hidden */
16
- export declare const RecurrenceEditor: React.FunctionComponent<RecurrenceEditorProps>;
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { ButtonGroupProps } from '@progress/kendo-react-buttons';
7
- /** @hidden */
8
- export interface RecurrenceFrequencyEditorProps extends ButtonGroupProps {
9
- value: string;
10
- data: any[];
11
- onChange: (value: string) => void;
12
- }
13
- /** @hidden */
14
- export declare const RecurrenceFrequencyEditor: React.FunctionComponent<RecurrenceFrequencyEditorProps>;
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { ButtonGroupProps } from '@progress/kendo-react-buttons';
7
- /** @hidden */
8
- export interface RecurrenceRepeatOnWeekEditorProps extends ButtonGroupProps {
9
- data?: {
10
- text: string;
11
- value: number | string;
12
- }[];
13
- value?: (number | string)[];
14
- onChange: (value: number[]) => void;
15
- }
16
- /** @hidden */
17
- export declare const RecurrenceRepeatOnWeekEditor: React.FunctionComponent<RecurrenceRepeatOnWeekEditorProps>;
@@ -1,61 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { OffsetPosition } from './types/OffsetPosition';
6
- import { RecurrenceRule } from '@progress/kendo-recurrence';
7
- import { Frequency } from './types/Frequency';
8
- import { WeekDayRule } from './types/WeekDayRule';
9
- import { FrequencyEntity } from './types/FrequencyEntity';
10
- import { MonthEntity } from './types/MonthEntity';
11
- import { WeekDayEntity } from './types/WeekDayEntity';
12
- import { OffsetPositionEntity } from './types/OffsetPositionEntity';
13
- import { EndRule } from './types/EndRule';
14
- import { RepeatOnRule } from './types/RepeatOnRule';
15
- import { IntlService } from '@progress/kendo-react-intl';
16
- /** @hidden */
17
- export declare const capitalize: (value: string) => string;
18
- /** @hidden */
19
- export declare const OFFSET_POSITIONS: OffsetPosition[];
20
- /** @hidden */
21
- export declare const FREQUENCIES: Frequency[];
22
- /** @hidden */
23
- export declare const dayRule: WeekDayRule[];
24
- /** @hidden */
25
- export declare const weekdayRule: WeekDayRule[];
26
- /** @hidden */
27
- export declare const weekendRule: WeekDayRule[];
28
- /** @hidden */
29
- export declare const weekDayRuleFromString: (weekDay: string) => WeekDayRule[] | undefined;
30
- /** @hidden */
31
- export declare const getRule: (recurrenceRule: string) => RecurrenceRule;
32
- /** @hidden */
33
- export declare const getFrequencies: (localizeMessage: any) => FrequencyEntity[];
34
- /** @hidden */
35
- export declare const getFrequency: (rrule: RecurrenceRule) => Frequency;
36
- /** @hidden */
37
- export declare const getUntil: (rrule: RecurrenceRule) => Date | null;
38
- /** @hidden */
39
- export declare const getMonths: (intl: IntlService) => MonthEntity[];
40
- /** @hidden */
41
- export declare const getWeekDays: (intl: IntlService) => WeekDayEntity[];
42
- /** @hidden */
43
- export declare const getWeekDay: (weekDays: WeekDayEntity[], rrule: RecurrenceRule, start: Date) => WeekDayEntity;
44
- /** @hidden */
45
- export declare const getExtendedWeekDays: (intl: IntlService, localizeMessage: any) => WeekDayEntity[];
46
- /** @hidden */
47
- export declare const getOffset: (offsets: OffsetPositionEntity[], rrule: RecurrenceRule) => OffsetPositionEntity;
48
- /** @hidden */
49
- export declare const getOffsets: (localizeMessage: any) => OffsetPositionEntity[];
50
- /** @hidden */
51
- export declare const getEndRule: (rrule: RecurrenceRule) => EndRule;
52
- /** @hidden */
53
- export declare const getRepeatOnRule: (rrule: RecurrenceRule) => RepeatOnRule | undefined;
54
- /** @hidden */
55
- export declare const getMonth: (months: MonthEntity[], rrule: RecurrenceRule) => MonthEntity;
56
- /** @hidden */
57
- export declare const getMonthDay: (rrule: RecurrenceRule, start: Date) => number;
58
- /** @hidden */
59
- export declare const getUntilEnd: (start: Date, until: Date | null) => Date;
60
- /** @hidden */
61
- export declare const getUntilMin: (start: Date, until: Date | null) => Date;
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export type EndRule = 'count' | 'never' | 'until';
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export type Frequency = 'never' | 'daily' | 'weekly' | 'monthly' | 'yearly';
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Frequency } from './Frequency';
6
- /**
7
- * @hidden
8
- */
9
- export interface FrequencyEntity {
10
- text: string;
11
- value: Frequency;
12
- }
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export interface MonthEntity {
9
- text: string;
10
- value: number;
11
- }
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export type OffsetPosition = 'first' | 'second' | 'third' | 'fourth' | 'last';
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export interface OffsetPositionEntity {
9
- text: string;
10
- value: number;
11
- }
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export type RepeatOnRule = 'monthday' | 'weekday';
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export interface WeekDayEntity {
9
- text: string;
10
- value: number | string;
11
- }
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export interface WeekDayRule {
9
- day: number;
10
- offset: number;
11
- }
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DataItem } from '../models';
6
- /** @hidden */
7
- export interface SchedulerEditState {
8
- dataItem?: DataItem;
9
- editDialog: boolean;
10
- occurrenceDialog: boolean;
11
- drop?: boolean;
12
- removeDialog: boolean;
13
- removeOccurrenceDialog: boolean;
14
- }
15
- /** @hidden */
16
- export declare const EDIT_INITIAL_STATE: SchedulerEditState;
17
- /** @hidden */
18
- export interface SchedulerEditAction {
19
- type: EDIT_ACTIONS;
20
- payload?: DataItem;
21
- original?: DataItem;
22
- finishCallback?: (event: any) => void;
23
- }
24
- /** @hidden */
25
- export declare enum EDIT_ACTIONS {
26
- CREATE = 0,
27
- EDIT = 1,
28
- EDIT_OCCURRENCE = 2,
29
- EDIT_CONFIRM = 3,
30
- EDIT_DROP_OCCURRENCE = 4,
31
- REMOVE = 5,
32
- REMOVE_OCCURRENCE = 6,
33
- REMOVE_CONFIRM = 7,
34
- RESET = 8
35
- }
36
- /** @hidden */
37
- export declare const editReducer: (state: SchedulerEditState, action: SchedulerEditAction) => SchedulerEditState;
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './editReducer';
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './itemsService';
6
- export * from './slotsService';
7
- export * from './occurrenceService';
8
- export * from './rangeService';
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Occurrence, Group, Range, Item, Slot } from '../models';
6
- /** @hidden */
7
- export declare const toItems: (occurrences: Occurrence[], { timezone }: any, { groups, ranges }: {
8
- groups: Group[];
9
- ranges: Range[];
10
- }) => Item[];
11
- /** @hidden */
12
- export declare const inGroup: (occurrence: Occurrence, group: Group) => boolean;
13
- /** @hidden */
14
- export declare const inSlot: (occurrence: Occurrence, slot: Slot) => boolean;
15
- /** @hidden */
16
- export declare const inRange: (occurrence: Occurrence, range: Range) => boolean;
@@ -1,7 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DataItem, Occurrence } from '../models';
6
- /** @hidden */
7
- export declare const toOccurrences: (data: DataItem[], { dateRange, fields, timezone }: any) => Occurrence[];
@@ -1,7 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Range, DateRange } from '../models';
6
- /** @hidden */
7
- export declare const toRanges: (dateRange: DateRange, { step, timezone }: any) => Range[];
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Group, Range, Slot, DateRange } from '../models';
6
- /** @hidden */
7
- export declare const toSlots: (_dateRange: DateRange, { step }: any, { groups, ranges }: {
8
- groups: Group[];
9
- ranges: Range[];
10
- }) => Slot[];