@progress/kendo-react-scheduler 6.1.1 → 7.0.0-develop.1

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 (519) hide show
  1. package/LICENSE.md +1 -1
  2. package/package.json +40 -57
  3. package/about.md +0 -3
  4. package/dist/cdn/js/kendo-react-scheduler.js +0 -2
  5. package/dist/cdn/js/kendo-react-scheduler.js.LICENSE.txt +0 -14
  6. package/dist/es/Scheduler.d.ts +0 -365
  7. package/dist/es/Scheduler.js +0 -432
  8. package/dist/es/components/BaseView.d.ts +0 -18
  9. package/dist/es/components/BaseView.js +0 -34
  10. package/dist/es/components/CurrentTimeMarket.d.ts +0 -15
  11. package/dist/es/components/CurrentTimeMarket.js +0 -140
  12. package/dist/es/components/DateHeaderCell.d.ts +0 -42
  13. package/dist/es/components/DateHeaderCell.js +0 -55
  14. package/dist/es/components/SchedulerForm.d.ts +0 -67
  15. package/dist/es/components/SchedulerForm.js +0 -101
  16. package/dist/es/components/SchedulerOccurrenceDialog.d.ts +0 -42
  17. package/dist/es/components/SchedulerOccurrenceDialog.js +0 -61
  18. package/dist/es/components/SchedulerRemoveDialog.d.ts +0 -38
  19. package/dist/es/components/SchedulerRemoveDialog.js +0 -55
  20. package/dist/es/components/ShowMoreItemsButton.d.ts +0 -26
  21. package/dist/es/components/ShowMoreItemsButton.js +0 -42
  22. package/dist/es/components/TimeHeaderCell.d.ts +0 -42
  23. package/dist/es/components/TimeHeaderCell.js +0 -54
  24. package/dist/es/components/footer/SchedulerFooter.d.ts +0 -21
  25. package/dist/es/components/footer/SchedulerFooter.js +0 -39
  26. package/dist/es/components/footer/bussiness-hours/BussinessHours.d.ts +0 -13
  27. package/dist/es/components/footer/bussiness-hours/BussinessHours.js +0 -34
  28. package/dist/es/components/header/SchedulerHeader.d.ts +0 -18
  29. package/dist/es/components/header/SchedulerHeader.js +0 -40
  30. package/dist/es/components/header/navigation/NavigationDatePicker.d.ts +0 -5
  31. package/dist/es/components/header/navigation/NavigationDatePicker.js +0 -100
  32. package/dist/es/components/header/navigation/SchedulerNavigation.d.ts +0 -24
  33. package/dist/es/components/header/navigation/SchedulerNavigation.js +0 -38
  34. package/dist/es/components/header/view-selector/SchedulerViewSelector.d.ts +0 -24
  35. package/dist/es/components/header/view-selector/SchedulerViewSelector.js +0 -38
  36. package/dist/es/components/header/view-selector/ViewSelectorItem.d.ts +0 -9
  37. package/dist/es/components/header/view-selector/ViewSelectorItem.js +0 -16
  38. package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +0 -3
  39. package/dist/es/components/header/view-selector/ViewSelectorList.js +0 -69
  40. package/dist/es/constants/index.d.ts +0 -46
  41. package/dist/es/constants/index.js +0 -55
  42. package/dist/es/context/SchedulerContext.d.ts +0 -228
  43. package/dist/es/context/SchedulerContext.js +0 -187
  44. package/dist/es/context/SchedulerEditItemContext.d.ts +0 -168
  45. package/dist/es/context/SchedulerEditItemContext.js +0 -118
  46. package/dist/es/context/SchedulerEditSlotContext.d.ts +0 -47
  47. package/dist/es/context/SchedulerEditSlotContext.js +0 -37
  48. package/dist/es/context/SchedulerEditTaskContext.d.ts +0 -29
  49. package/dist/es/context/SchedulerEditTaskContext.js +0 -19
  50. package/dist/es/context/SchedulerResourceIteratorContext.d.ts +0 -16
  51. package/dist/es/context/SchedulerResourceIteratorContext.js +0 -12
  52. package/dist/es/context/SchedulerViewContext.d.ts +0 -71
  53. package/dist/es/context/SchedulerViewContext.js +0 -63
  54. package/dist/es/context/index.d.ts +0 -5
  55. package/dist/es/context/index.js +0 -5
  56. package/dist/es/editors/FilterableComboBox.d.ts +0 -5
  57. package/dist/es/editors/FilterableComboBox.js +0 -36
  58. package/dist/es/editors/ResourceEditor.d.ts +0 -15
  59. package/dist/es/editors/ResourceEditor.js +0 -51
  60. package/dist/es/editors/SchedulerFormEditor.d.ts +0 -242
  61. package/dist/es/editors/SchedulerFormEditor.js +0 -169
  62. package/dist/es/editors/ZonedDateTime.d.ts +0 -18
  63. package/dist/es/editors/ZonedDateTime.js +0 -54
  64. package/dist/es/editors/common.d.ts +0 -13
  65. package/dist/es/editors/common.js +0 -29
  66. package/dist/es/hooks/index.d.ts +0 -10
  67. package/dist/es/hooks/index.js +0 -10
  68. package/dist/es/hooks/use-items-focus.d.ts +0 -23
  69. package/dist/es/hooks/use-items-focus.js +0 -45
  70. package/dist/es/hooks/use-items-selection.d.ts +0 -31
  71. package/dist/es/hooks/use-items-selection.js +0 -87
  72. package/dist/es/hooks/use-slots-focus.d.ts +0 -34
  73. package/dist/es/hooks/use-slots-focus.js +0 -94
  74. package/dist/es/hooks/use-slots-selection.d.ts +0 -24
  75. package/dist/es/hooks/use-slots-selection.js +0 -52
  76. package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +0 -11
  77. package/dist/es/hooks/useAsyncMouseEnterLeave.js +0 -21
  78. package/dist/es/hooks/useCellSync.d.ts +0 -10
  79. package/dist/es/hooks/useCellSync.js +0 -42
  80. package/dist/es/hooks/useControlledState.d.ts +0 -13
  81. package/dist/es/hooks/useControlledState.js +0 -23
  82. package/dist/es/hooks/useEditable.d.ts +0 -3
  83. package/dist/es/hooks/useEditable.js +0 -27
  84. package/dist/es/hooks/usePropOrState.d.ts +0 -2
  85. package/dist/es/hooks/usePropOrState.js +0 -9
  86. package/dist/es/hooks/useRowSync.d.ts +0 -11
  87. package/dist/es/hooks/useRowSync.js +0 -43
  88. package/dist/es/hooks/useSchedulerItem.d.ts +0 -7
  89. package/dist/es/hooks/useSchedulerItem.js +0 -30
  90. package/dist/es/hooks/useSchedulerSlot.d.ts +0 -7
  91. package/dist/es/hooks/useSchedulerSlot.js +0 -29
  92. package/dist/es/hooks/useSlotExpand.d.ts +0 -5
  93. package/dist/es/hooks/useSlotExpand.js +0 -97
  94. package/dist/es/hooks/useWorkHours.d.ts +0 -2
  95. package/dist/es/hooks/useWorkHours.js +0 -10
  96. package/dist/es/items/SchedulerEditItem.d.ts +0 -326
  97. package/dist/es/items/SchedulerEditItem.js +0 -626
  98. package/dist/es/items/SchedulerItem.d.ts +0 -199
  99. package/dist/es/items/SchedulerItem.js +0 -325
  100. package/dist/es/items/SchedulerItemContent.d.ts +0 -11
  101. package/dist/es/items/SchedulerItemContent.js +0 -21
  102. package/dist/es/items/SchedulerProportionalViewItem.d.ts +0 -8
  103. package/dist/es/items/SchedulerProportionalViewItem.js +0 -233
  104. package/dist/es/items/SchedulerViewItem.d.ts +0 -30
  105. package/dist/es/items/SchedulerViewItem.js +0 -235
  106. package/dist/es/items/hooks/use-drag-item.d.ts +0 -42
  107. package/dist/es/items/hooks/use-drag-item.js +0 -209
  108. package/dist/es/items/hooks/use-form-item.d.ts +0 -22
  109. package/dist/es/items/hooks/use-form-item.js +0 -48
  110. package/dist/es/items/hooks/use-remove-item.d.ts +0 -30
  111. package/dist/es/items/hooks/use-remove-item.js +0 -46
  112. package/dist/es/items/hooks/use-resize-item.d.ts +0 -45
  113. package/dist/es/items/hooks/use-resize-item.js +0 -249
  114. package/dist/es/items/hooks/use-series.d.ts +0 -23
  115. package/dist/es/items/hooks/use-series.js +0 -36
  116. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +0 -27
  117. package/dist/es/items/hooks/use-show-occurrence-dialog.js +0 -44
  118. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +0 -27
  119. package/dist/es/items/hooks/use-show-remove-item-dialog.js +0 -44
  120. package/dist/es/main.d.ts +0 -40
  121. package/dist/es/main.js +0 -56
  122. package/dist/es/messages/index.d.ts +0 -236
  123. package/dist/es/messages/index.js +0 -237
  124. package/dist/es/models/DataItem.d.ts +0 -8
  125. package/dist/es/models/DataItem.js +0 -1
  126. package/dist/es/models/DateRange.d.ts +0 -18
  127. package/dist/es/models/DateRange.js +0 -1
  128. package/dist/es/models/EditableProp.d.ts +0 -29
  129. package/dist/es/models/EditableProp.js +0 -1
  130. package/dist/es/models/Fields.d.ts +0 -17
  131. package/dist/es/models/Fields.js +0 -1
  132. package/dist/es/models/Group.d.ts +0 -8
  133. package/dist/es/models/Group.js +0 -1
  134. package/dist/es/models/Item.d.ts +0 -65
  135. package/dist/es/models/Item.js +0 -1
  136. package/dist/es/models/NavigationAction.d.ts +0 -58
  137. package/dist/es/models/NavigationAction.js +0 -11
  138. package/dist/es/models/Occurrence.d.ts +0 -52
  139. package/dist/es/models/Occurrence.js +0 -1
  140. package/dist/es/models/Omit.d.ts +0 -4
  141. package/dist/es/models/Omit.js +0 -1
  142. package/dist/es/models/Orientation.d.ts +0 -2
  143. package/dist/es/models/Orientation.js +0 -1
  144. package/dist/es/models/Range.d.ts +0 -10
  145. package/dist/es/models/Range.js +0 -1
  146. package/dist/es/models/Rect.d.ts +0 -15
  147. package/dist/es/models/Rect.js +0 -1
  148. package/dist/es/models/Resource.d.ts +0 -8
  149. package/dist/es/models/Resource.js +0 -1
  150. package/dist/es/models/SchedulerGroup.d.ts +0 -13
  151. package/dist/es/models/SchedulerGroup.js +0 -1
  152. package/dist/es/models/SchedulerHandle.d.ts +0 -8
  153. package/dist/es/models/SchedulerHandle.js +0 -1
  154. package/dist/es/models/SchedulerModelFields.d.ts +0 -62
  155. package/dist/es/models/SchedulerModelFields.js +0 -1
  156. package/dist/es/models/SchedulerResource.d.ts +0 -33
  157. package/dist/es/models/SchedulerResource.js +0 -1
  158. package/dist/es/models/SchedulerView.d.ts +0 -77
  159. package/dist/es/models/SchedulerView.js +0 -1
  160. package/dist/es/models/Slot.d.ts +0 -51
  161. package/dist/es/models/Slot.js +0 -1
  162. package/dist/es/models/events.d.ts +0 -82
  163. package/dist/es/models/events.js +0 -1
  164. package/dist/es/models/index.d.ts +0 -17
  165. package/dist/es/models/index.js +0 -17
  166. package/dist/es/package-metadata.d.ts +0 -5
  167. package/dist/es/package-metadata.js +0 -11
  168. package/dist/es/recurrence/RecurrenceEditor.d.ts +0 -12
  169. package/dist/es/recurrence/RecurrenceEditor.js +0 -309
  170. package/dist/es/recurrence/RecurrenceFrequencyEditor.d.ts +0 -10
  171. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +0 -36
  172. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -13
  173. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -55
  174. package/dist/es/recurrence/common.d.ts +0 -57
  175. package/dist/es/recurrence/common.js +0 -212
  176. package/dist/es/recurrence/types/EndRule.d.ts +0 -4
  177. package/dist/es/recurrence/types/EndRule.js +0 -1
  178. package/dist/es/recurrence/types/Frequency.d.ts +0 -4
  179. package/dist/es/recurrence/types/Frequency.js +0 -1
  180. package/dist/es/recurrence/types/FrequencyEntity.d.ts +0 -8
  181. package/dist/es/recurrence/types/FrequencyEntity.js +0 -1
  182. package/dist/es/recurrence/types/MonthEntity.d.ts +0 -7
  183. package/dist/es/recurrence/types/MonthEntity.js +0 -1
  184. package/dist/es/recurrence/types/OffsetPosition.d.ts +0 -4
  185. package/dist/es/recurrence/types/OffsetPosition.js +0 -1
  186. package/dist/es/recurrence/types/OffsetPositionEntity.d.ts +0 -7
  187. package/dist/es/recurrence/types/OffsetPositionEntity.js +0 -1
  188. package/dist/es/recurrence/types/RepeatOnRule.d.ts +0 -4
  189. package/dist/es/recurrence/types/RepeatOnRule.js +0 -1
  190. package/dist/es/recurrence/types/WeekDayEntity.d.ts +0 -7
  191. package/dist/es/recurrence/types/WeekDayEntity.js +0 -1
  192. package/dist/es/recurrence/types/WeekDayRule.d.ts +0 -8
  193. package/dist/es/recurrence/types/WeekDayRule.js +0 -1
  194. package/dist/es/recurrence/utils/index.d.ts +0 -0
  195. package/dist/es/recurrence/utils/index.js +0 -1
  196. package/dist/es/reducers/editReducer.d.ts +0 -33
  197. package/dist/es/reducers/editReducer.js +0 -65
  198. package/dist/es/reducers/index.d.ts +0 -1
  199. package/dist/es/reducers/index.js +0 -1
  200. package/dist/es/services/index.d.ts +0 -4
  201. package/dist/es/services/index.js +0 -4
  202. package/dist/es/services/itemsService.d.ts +0 -12
  203. package/dist/es/services/itemsService.js +0 -77
  204. package/dist/es/services/occurrenceService.d.ts +0 -3
  205. package/dist/es/services/occurrenceService.js +0 -92
  206. package/dist/es/services/rangeService.d.ts +0 -3
  207. package/dist/es/services/rangeService.js +0 -23
  208. package/dist/es/services/slotsService.d.ts +0 -6
  209. package/dist/es/services/slotsService.js +0 -43
  210. package/dist/es/slots/SchedulerEditSlot.d.ts +0 -48
  211. package/dist/es/slots/SchedulerEditSlot.js +0 -228
  212. package/dist/es/slots/SchedulerSlot.d.ts +0 -123
  213. package/dist/es/slots/SchedulerSlot.js +0 -155
  214. package/dist/es/slots/SchedulerViewSlot.d.ts +0 -42
  215. package/dist/es/slots/SchedulerViewSlot.js +0 -49
  216. package/dist/es/tasks/SchedulerEditTask.d.ts +0 -75
  217. package/dist/es/tasks/SchedulerEditTask.js +0 -156
  218. package/dist/es/tasks/SchedulerTask.d.ts +0 -57
  219. package/dist/es/tasks/SchedulerTask.js +0 -42
  220. package/dist/es/tasks/SchedulerViewTask.d.ts +0 -28
  221. package/dist/es/tasks/SchedulerViewTask.js +0 -44
  222. package/dist/es/utils/index.d.ts +0 -168
  223. package/dist/es/utils/index.js +0 -556
  224. package/dist/es/views/agenda/AgendaView.d.ts +0 -79
  225. package/dist/es/views/agenda/AgendaView.js +0 -151
  226. package/dist/es/views/agenda/AgendaViewHeaderItem.d.ts +0 -8
  227. package/dist/es/views/agenda/AgendaViewHeaderItem.js +0 -11
  228. package/dist/es/views/common/HorizontalResourceIterator.d.ts +0 -26
  229. package/dist/es/views/common/HorizontalResourceIterator.js +0 -59
  230. package/dist/es/views/common/SchedulerDrag.d.ts +0 -35
  231. package/dist/es/views/common/SchedulerDrag.js +0 -41
  232. package/dist/es/views/common/SchedulerResize.d.ts +0 -37
  233. package/dist/es/views/common/SchedulerResize.js +0 -41
  234. package/dist/es/views/common/VerticalResourceIterator.d.ts +0 -21
  235. package/dist/es/views/common/VerticalResourceIterator.js +0 -93
  236. package/dist/es/views/common/utils.d.ts +0 -34
  237. package/dist/es/views/common/utils.js +0 -188
  238. package/dist/es/views/day/DayView.d.ts +0 -11
  239. package/dist/es/views/day/DayView.js +0 -31
  240. package/dist/es/views/day/DayViewAllDayRowContent.d.ts +0 -8
  241. package/dist/es/views/day/DayViewAllDayRowContent.js +0 -10
  242. package/dist/es/views/day/DayViewGroupRowContent.d.ts +0 -8
  243. package/dist/es/views/day/DayViewGroupRowContent.js +0 -7
  244. package/dist/es/views/day/DayViewRowContent.d.ts +0 -13
  245. package/dist/es/views/day/DayViewRowContent.js +0 -14
  246. package/dist/es/views/day/MultiDayView.d.ts +0 -171
  247. package/dist/es/views/day/MultiDayView.js +0 -270
  248. package/dist/es/views/month/MonthView.d.ts +0 -82
  249. package/dist/es/views/month/MonthView.js +0 -139
  250. package/dist/es/views/time/MultiDayTimelineView.d.ts +0 -175
  251. package/dist/es/views/time/MultiDayTimelineView.js +0 -209
  252. package/dist/es/views/time/TimelineView.d.ts +0 -23
  253. package/dist/es/views/time/TimelineView.js +0 -32
  254. package/dist/es/views/time/TimelineViewAllEventsRowContent.d.ts +0 -7
  255. package/dist/es/views/time/TimelineViewAllEventsRowContent.js +0 -11
  256. package/dist/es/views/time/TimelineViewRowContent.d.ts +0 -7
  257. package/dist/es/views/time/TimelineViewRowContent.js +0 -8
  258. package/dist/es/views/week/WeekView.d.ts +0 -102
  259. package/dist/es/views/week/WeekView.js +0 -52
  260. package/dist/es/views/week/WorkWeekView.d.ts +0 -5
  261. package/dist/es/views/week/WorkWeekView.js +0 -77
  262. package/dist/npm/Scheduler.d.ts +0 -365
  263. package/dist/npm/Scheduler.js +0 -435
  264. package/dist/npm/components/BaseView.d.ts +0 -18
  265. package/dist/npm/components/BaseView.js +0 -37
  266. package/dist/npm/components/CurrentTimeMarket.d.ts +0 -15
  267. package/dist/npm/components/CurrentTimeMarket.js +0 -144
  268. package/dist/npm/components/DateHeaderCell.d.ts +0 -42
  269. package/dist/npm/components/DateHeaderCell.js +0 -58
  270. package/dist/npm/components/SchedulerForm.d.ts +0 -67
  271. package/dist/npm/components/SchedulerForm.js +0 -104
  272. package/dist/npm/components/SchedulerOccurrenceDialog.d.ts +0 -42
  273. package/dist/npm/components/SchedulerOccurrenceDialog.js +0 -64
  274. package/dist/npm/components/SchedulerRemoveDialog.d.ts +0 -38
  275. package/dist/npm/components/SchedulerRemoveDialog.js +0 -58
  276. package/dist/npm/components/ShowMoreItemsButton.d.ts +0 -26
  277. package/dist/npm/components/ShowMoreItemsButton.js +0 -45
  278. package/dist/npm/components/TimeHeaderCell.d.ts +0 -42
  279. package/dist/npm/components/TimeHeaderCell.js +0 -57
  280. package/dist/npm/components/footer/SchedulerFooter.d.ts +0 -21
  281. package/dist/npm/components/footer/SchedulerFooter.js +0 -42
  282. package/dist/npm/components/footer/bussiness-hours/BussinessHours.d.ts +0 -13
  283. package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +0 -37
  284. package/dist/npm/components/header/SchedulerHeader.d.ts +0 -18
  285. package/dist/npm/components/header/SchedulerHeader.js +0 -43
  286. package/dist/npm/components/header/navigation/NavigationDatePicker.d.ts +0 -5
  287. package/dist/npm/components/header/navigation/NavigationDatePicker.js +0 -103
  288. package/dist/npm/components/header/navigation/SchedulerNavigation.d.ts +0 -24
  289. package/dist/npm/components/header/navigation/SchedulerNavigation.js +0 -41
  290. package/dist/npm/components/header/view-selector/SchedulerViewSelector.d.ts +0 -24
  291. package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +0 -41
  292. package/dist/npm/components/header/view-selector/ViewSelectorItem.d.ts +0 -9
  293. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +0 -20
  294. package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +0 -3
  295. package/dist/npm/components/header/view-selector/ViewSelectorList.js +0 -72
  296. package/dist/npm/constants/index.d.ts +0 -46
  297. package/dist/npm/constants/index.js +0 -59
  298. package/dist/npm/context/SchedulerContext.d.ts +0 -228
  299. package/dist/npm/context/SchedulerContext.js +0 -203
  300. package/dist/npm/context/SchedulerEditItemContext.d.ts +0 -168
  301. package/dist/npm/context/SchedulerEditItemContext.js +0 -129
  302. package/dist/npm/context/SchedulerEditSlotContext.d.ts +0 -47
  303. package/dist/npm/context/SchedulerEditSlotContext.js +0 -43
  304. package/dist/npm/context/SchedulerEditTaskContext.d.ts +0 -29
  305. package/dist/npm/context/SchedulerEditTaskContext.js +0 -26
  306. package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +0 -16
  307. package/dist/npm/context/SchedulerResourceIteratorContext.js +0 -16
  308. package/dist/npm/context/SchedulerViewContext.d.ts +0 -71
  309. package/dist/npm/context/SchedulerViewContext.js +0 -75
  310. package/dist/npm/context/index.d.ts +0 -5
  311. package/dist/npm/context/index.js +0 -21
  312. package/dist/npm/editors/FilterableComboBox.d.ts +0 -5
  313. package/dist/npm/editors/FilterableComboBox.js +0 -40
  314. package/dist/npm/editors/ResourceEditor.d.ts +0 -15
  315. package/dist/npm/editors/ResourceEditor.js +0 -55
  316. package/dist/npm/editors/SchedulerFormEditor.d.ts +0 -242
  317. package/dist/npm/editors/SchedulerFormEditor.js +0 -172
  318. package/dist/npm/editors/ZonedDateTime.d.ts +0 -18
  319. package/dist/npm/editors/ZonedDateTime.js +0 -58
  320. package/dist/npm/editors/common.d.ts +0 -13
  321. package/dist/npm/editors/common.js +0 -34
  322. package/dist/npm/hooks/index.d.ts +0 -10
  323. package/dist/npm/hooks/index.js +0 -26
  324. package/dist/npm/hooks/use-items-focus.d.ts +0 -23
  325. package/dist/npm/hooks/use-items-focus.js +0 -49
  326. package/dist/npm/hooks/use-items-selection.d.ts +0 -31
  327. package/dist/npm/hooks/use-items-selection.js +0 -91
  328. package/dist/npm/hooks/use-slots-focus.d.ts +0 -34
  329. package/dist/npm/hooks/use-slots-focus.js +0 -102
  330. package/dist/npm/hooks/use-slots-selection.d.ts +0 -24
  331. package/dist/npm/hooks/use-slots-selection.js +0 -56
  332. package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +0 -11
  333. package/dist/npm/hooks/useAsyncMouseEnterLeave.js +0 -25
  334. package/dist/npm/hooks/useCellSync.d.ts +0 -10
  335. package/dist/npm/hooks/useCellSync.js +0 -46
  336. package/dist/npm/hooks/useControlledState.d.ts +0 -13
  337. package/dist/npm/hooks/useControlledState.js +0 -27
  338. package/dist/npm/hooks/useEditable.d.ts +0 -3
  339. package/dist/npm/hooks/useEditable.js +0 -31
  340. package/dist/npm/hooks/usePropOrState.d.ts +0 -2
  341. package/dist/npm/hooks/usePropOrState.js +0 -13
  342. package/dist/npm/hooks/useRowSync.d.ts +0 -11
  343. package/dist/npm/hooks/useRowSync.js +0 -47
  344. package/dist/npm/hooks/useSchedulerItem.d.ts +0 -7
  345. package/dist/npm/hooks/useSchedulerItem.js +0 -34
  346. package/dist/npm/hooks/useSchedulerSlot.d.ts +0 -7
  347. package/dist/npm/hooks/useSchedulerSlot.js +0 -33
  348. package/dist/npm/hooks/useSlotExpand.d.ts +0 -5
  349. package/dist/npm/hooks/useSlotExpand.js +0 -101
  350. package/dist/npm/hooks/useWorkHours.d.ts +0 -2
  351. package/dist/npm/hooks/useWorkHours.js +0 -14
  352. package/dist/npm/items/SchedulerEditItem.d.ts +0 -326
  353. package/dist/npm/items/SchedulerEditItem.js +0 -629
  354. package/dist/npm/items/SchedulerItem.d.ts +0 -199
  355. package/dist/npm/items/SchedulerItem.js +0 -328
  356. package/dist/npm/items/SchedulerItemContent.d.ts +0 -11
  357. package/dist/npm/items/SchedulerItemContent.js +0 -24
  358. package/dist/npm/items/SchedulerProportionalViewItem.d.ts +0 -8
  359. package/dist/npm/items/SchedulerProportionalViewItem.js +0 -236
  360. package/dist/npm/items/SchedulerViewItem.d.ts +0 -30
  361. package/dist/npm/items/SchedulerViewItem.js +0 -238
  362. package/dist/npm/items/hooks/use-drag-item.d.ts +0 -42
  363. package/dist/npm/items/hooks/use-drag-item.js +0 -213
  364. package/dist/npm/items/hooks/use-form-item.d.ts +0 -22
  365. package/dist/npm/items/hooks/use-form-item.js +0 -52
  366. package/dist/npm/items/hooks/use-remove-item.d.ts +0 -30
  367. package/dist/npm/items/hooks/use-remove-item.js +0 -50
  368. package/dist/npm/items/hooks/use-resize-item.d.ts +0 -45
  369. package/dist/npm/items/hooks/use-resize-item.js +0 -253
  370. package/dist/npm/items/hooks/use-series.d.ts +0 -23
  371. package/dist/npm/items/hooks/use-series.js +0 -40
  372. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +0 -27
  373. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +0 -48
  374. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +0 -27
  375. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +0 -48
  376. package/dist/npm/main.d.ts +0 -40
  377. package/dist/npm/main.js +0 -127
  378. package/dist/npm/messages/index.d.ts +0 -236
  379. package/dist/npm/messages/index.js +0 -241
  380. package/dist/npm/models/DataItem.d.ts +0 -8
  381. package/dist/npm/models/DataItem.js +0 -2
  382. package/dist/npm/models/DateRange.d.ts +0 -18
  383. package/dist/npm/models/DateRange.js +0 -2
  384. package/dist/npm/models/EditableProp.d.ts +0 -29
  385. package/dist/npm/models/EditableProp.js +0 -2
  386. package/dist/npm/models/Fields.d.ts +0 -17
  387. package/dist/npm/models/Fields.js +0 -2
  388. package/dist/npm/models/Group.d.ts +0 -8
  389. package/dist/npm/models/Group.js +0 -2
  390. package/dist/npm/models/Item.d.ts +0 -65
  391. package/dist/npm/models/Item.js +0 -2
  392. package/dist/npm/models/NavigationAction.d.ts +0 -58
  393. package/dist/npm/models/NavigationAction.js +0 -12
  394. package/dist/npm/models/Occurrence.d.ts +0 -52
  395. package/dist/npm/models/Occurrence.js +0 -2
  396. package/dist/npm/models/Omit.d.ts +0 -4
  397. package/dist/npm/models/Omit.js +0 -2
  398. package/dist/npm/models/Orientation.d.ts +0 -2
  399. package/dist/npm/models/Orientation.js +0 -2
  400. package/dist/npm/models/Range.d.ts +0 -10
  401. package/dist/npm/models/Range.js +0 -2
  402. package/dist/npm/models/Rect.d.ts +0 -15
  403. package/dist/npm/models/Rect.js +0 -2
  404. package/dist/npm/models/Resource.d.ts +0 -8
  405. package/dist/npm/models/Resource.js +0 -2
  406. package/dist/npm/models/SchedulerGroup.d.ts +0 -13
  407. package/dist/npm/models/SchedulerGroup.js +0 -2
  408. package/dist/npm/models/SchedulerHandle.d.ts +0 -8
  409. package/dist/npm/models/SchedulerHandle.js +0 -2
  410. package/dist/npm/models/SchedulerModelFields.d.ts +0 -62
  411. package/dist/npm/models/SchedulerModelFields.js +0 -2
  412. package/dist/npm/models/SchedulerResource.d.ts +0 -33
  413. package/dist/npm/models/SchedulerResource.js +0 -2
  414. package/dist/npm/models/SchedulerView.d.ts +0 -77
  415. package/dist/npm/models/SchedulerView.js +0 -2
  416. package/dist/npm/models/Slot.d.ts +0 -51
  417. package/dist/npm/models/Slot.js +0 -2
  418. package/dist/npm/models/events.d.ts +0 -82
  419. package/dist/npm/models/events.js +0 -2
  420. package/dist/npm/models/index.d.ts +0 -17
  421. package/dist/npm/models/index.js +0 -33
  422. package/dist/npm/package-metadata.d.ts +0 -5
  423. package/dist/npm/package-metadata.js +0 -14
  424. package/dist/npm/recurrence/RecurrenceEditor.d.ts +0 -12
  425. package/dist/npm/recurrence/RecurrenceEditor.js +0 -313
  426. package/dist/npm/recurrence/RecurrenceFrequencyEditor.d.ts +0 -10
  427. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +0 -40
  428. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -13
  429. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +0 -59
  430. package/dist/npm/recurrence/common.d.ts +0 -57
  431. package/dist/npm/recurrence/common.js +0 -233
  432. package/dist/npm/recurrence/types/EndRule.d.ts +0 -4
  433. package/dist/npm/recurrence/types/EndRule.js +0 -2
  434. package/dist/npm/recurrence/types/Frequency.d.ts +0 -4
  435. package/dist/npm/recurrence/types/Frequency.js +0 -2
  436. package/dist/npm/recurrence/types/FrequencyEntity.d.ts +0 -8
  437. package/dist/npm/recurrence/types/FrequencyEntity.js +0 -2
  438. package/dist/npm/recurrence/types/MonthEntity.d.ts +0 -7
  439. package/dist/npm/recurrence/types/MonthEntity.js +0 -2
  440. package/dist/npm/recurrence/types/OffsetPosition.d.ts +0 -4
  441. package/dist/npm/recurrence/types/OffsetPosition.js +0 -2
  442. package/dist/npm/recurrence/types/OffsetPositionEntity.d.ts +0 -7
  443. package/dist/npm/recurrence/types/OffsetPositionEntity.js +0 -2
  444. package/dist/npm/recurrence/types/RepeatOnRule.d.ts +0 -4
  445. package/dist/npm/recurrence/types/RepeatOnRule.js +0 -2
  446. package/dist/npm/recurrence/types/WeekDayEntity.d.ts +0 -7
  447. package/dist/npm/recurrence/types/WeekDayEntity.js +0 -2
  448. package/dist/npm/recurrence/types/WeekDayRule.d.ts +0 -8
  449. package/dist/npm/recurrence/types/WeekDayRule.js +0 -2
  450. package/dist/npm/recurrence/utils/index.d.ts +0 -0
  451. package/dist/npm/recurrence/utils/index.js +0 -1
  452. package/dist/npm/reducers/editReducer.d.ts +0 -33
  453. package/dist/npm/reducers/editReducer.js +0 -69
  454. package/dist/npm/reducers/index.d.ts +0 -1
  455. package/dist/npm/reducers/index.js +0 -17
  456. package/dist/npm/services/index.d.ts +0 -4
  457. package/dist/npm/services/index.js +0 -20
  458. package/dist/npm/services/itemsService.d.ts +0 -12
  459. package/dist/npm/services/itemsService.js +0 -84
  460. package/dist/npm/services/occurrenceService.d.ts +0 -3
  461. package/dist/npm/services/occurrenceService.js +0 -96
  462. package/dist/npm/services/rangeService.d.ts +0 -3
  463. package/dist/npm/services/rangeService.js +0 -27
  464. package/dist/npm/services/slotsService.d.ts +0 -6
  465. package/dist/npm/services/slotsService.js +0 -47
  466. package/dist/npm/slots/SchedulerEditSlot.d.ts +0 -48
  467. package/dist/npm/slots/SchedulerEditSlot.js +0 -231
  468. package/dist/npm/slots/SchedulerSlot.d.ts +0 -123
  469. package/dist/npm/slots/SchedulerSlot.js +0 -158
  470. package/dist/npm/slots/SchedulerViewSlot.d.ts +0 -42
  471. package/dist/npm/slots/SchedulerViewSlot.js +0 -52
  472. package/dist/npm/tasks/SchedulerEditTask.d.ts +0 -75
  473. package/dist/npm/tasks/SchedulerEditTask.js +0 -159
  474. package/dist/npm/tasks/SchedulerTask.d.ts +0 -57
  475. package/dist/npm/tasks/SchedulerTask.js +0 -45
  476. package/dist/npm/tasks/SchedulerViewTask.d.ts +0 -28
  477. package/dist/npm/tasks/SchedulerViewTask.js +0 -47
  478. package/dist/npm/utils/index.d.ts +0 -168
  479. package/dist/npm/utils/index.js +0 -606
  480. package/dist/npm/views/agenda/AgendaView.d.ts +0 -79
  481. package/dist/npm/views/agenda/AgendaView.js +0 -155
  482. package/dist/npm/views/agenda/AgendaViewHeaderItem.d.ts +0 -8
  483. package/dist/npm/views/agenda/AgendaViewHeaderItem.js +0 -15
  484. package/dist/npm/views/common/HorizontalResourceIterator.d.ts +0 -26
  485. package/dist/npm/views/common/HorizontalResourceIterator.js +0 -64
  486. package/dist/npm/views/common/SchedulerDrag.d.ts +0 -35
  487. package/dist/npm/views/common/SchedulerDrag.js +0 -45
  488. package/dist/npm/views/common/SchedulerResize.d.ts +0 -37
  489. package/dist/npm/views/common/SchedulerResize.js +0 -45
  490. package/dist/npm/views/common/VerticalResourceIterator.d.ts +0 -21
  491. package/dist/npm/views/common/VerticalResourceIterator.js +0 -97
  492. package/dist/npm/views/common/utils.d.ts +0 -34
  493. package/dist/npm/views/common/utils.js +0 -202
  494. package/dist/npm/views/day/DayView.d.ts +0 -11
  495. package/dist/npm/views/day/DayView.js +0 -35
  496. package/dist/npm/views/day/DayViewAllDayRowContent.d.ts +0 -8
  497. package/dist/npm/views/day/DayViewAllDayRowContent.js +0 -14
  498. package/dist/npm/views/day/DayViewGroupRowContent.d.ts +0 -8
  499. package/dist/npm/views/day/DayViewGroupRowContent.js +0 -11
  500. package/dist/npm/views/day/DayViewRowContent.d.ts +0 -13
  501. package/dist/npm/views/day/DayViewRowContent.js +0 -18
  502. package/dist/npm/views/day/MultiDayView.d.ts +0 -171
  503. package/dist/npm/views/day/MultiDayView.js +0 -274
  504. package/dist/npm/views/month/MonthView.d.ts +0 -82
  505. package/dist/npm/views/month/MonthView.js +0 -143
  506. package/dist/npm/views/time/MultiDayTimelineView.d.ts +0 -175
  507. package/dist/npm/views/time/MultiDayTimelineView.js +0 -213
  508. package/dist/npm/views/time/TimelineView.d.ts +0 -23
  509. package/dist/npm/views/time/TimelineView.js +0 -36
  510. package/dist/npm/views/time/TimelineViewAllEventsRowContent.d.ts +0 -7
  511. package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +0 -15
  512. package/dist/npm/views/time/TimelineViewRowContent.d.ts +0 -7
  513. package/dist/npm/views/time/TimelineViewRowContent.js +0 -12
  514. package/dist/npm/views/week/WeekView.d.ts +0 -102
  515. package/dist/npm/views/week/WeekView.js +0 -56
  516. package/dist/npm/views/week/WorkWeekView.d.ts +0 -5
  517. package/dist/npm/views/week/WorkWeekView.js +0 -81
  518. package/dist/systemjs/kendo-react-scheduler.js +0 -1
  519. package/e2e-next/basic.tests.ts +0 -24
@@ -1,97 +0,0 @@
1
- import * as React from 'react';
2
- import { getPadding, setRect, getRect } from '../views/common/utils';
3
- import { BORDER_WIDTH } from '../constants';
4
- import { useSchedulerElementContext } from '../context';
5
- /** @hidden */
6
- export var useSlotExpand = function (slot, config) {
7
- var timeout = React.useRef();
8
- var initialHeight = React.useRef(0);
9
- var scheduler = useSchedulerElementContext();
10
- var getInitialHeight = function () {
11
- if (!slot.current) {
12
- return;
13
- }
14
- var element = slot.current.element;
15
- if (!element) {
16
- return;
17
- }
18
- initialHeight.current = element.clientHeight;
19
- };
20
- var expand = React.useCallback(function () {
21
- if (!config || !slot.current) {
22
- return;
23
- }
24
- var element = slot.current.element;
25
- var props = slot.current.props;
26
- if (!element) {
27
- return;
28
- }
29
- var slotPadding = getPadding(element);
30
- var highest = 0;
31
- var existing = props.items.filter(function (i) {
32
- return i._ref.current;
33
- });
34
- existing.forEach(function (item) {
35
- if (!item._ref.current) {
36
- return;
37
- }
38
- var height = getRect(item._ref.current.element).height;
39
- highest += height;
40
- });
41
- var minHeight = ((existing.length * BORDER_WIDTH * 2)
42
- + highest
43
- - (slotPadding || 0)
44
- + (typeof config === 'object' && config.offsetTop ? config.offsetTop : 0)
45
- + (typeof config === 'object' && config.offsetBottom ? config.offsetBottom : 0));
46
- if (existing.length) {
47
- if (minHeight > (initialHeight.current - slotPadding)) {
48
- setRect(element, { height: minHeight }, true);
49
- }
50
- }
51
- else if (element) {
52
- element.style.minHeight = '';
53
- }
54
- }, [config, slot]);
55
- var handleResize = React.useCallback(function () {
56
- if (timeout.current !== undefined) {
57
- window.cancelAnimationFrame(timeout.current);
58
- }
59
- timeout.current = window.requestAnimationFrame(function () {
60
- expand();
61
- });
62
- }, [expand]);
63
- // eslint-disable-next-line react-hooks/exhaustive-deps
64
- React.useLayoutEffect(getInitialHeight, []);
65
- // eslint-disable-next-line react-hooks/exhaustive-deps
66
- React.useEffect(expand, [slot, slot.current && slot.current.props, config]);
67
- React.useEffect(function () {
68
- if (!slot.current) {
69
- return;
70
- }
71
- var props = slot.current.props;
72
- var existing = props.items.filter(function (i) {
73
- return i._ref.current;
74
- });
75
- var callbacks = existing.map(function (item) {
76
- if (!item._ref.current || !item._ref.current.element) {
77
- return;
78
- }
79
- if (!scheduler.current) {
80
- return;
81
- }
82
- var resizeObserver = window.ResizeObserver;
83
- var observer = resizeObserver && new resizeObserver(handleResize);
84
- if (observer) {
85
- observer.observe(item._ref.current.element);
86
- }
87
- return function () {
88
- if (observer) {
89
- observer.disconnect();
90
- }
91
- };
92
- });
93
- return function () {
94
- callbacks.forEach(function (cb) { return cb && cb(); });
95
- };
96
- }, [handleResize, scheduler, slot]);
97
- };
@@ -1,2 +0,0 @@
1
- /** @hidden */
2
- export declare const useWorkHours: (showWorkHours?: boolean, defaultShowWorkHours?: boolean) => any[];
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { usePropOrState } from '.';
3
- /** @hidden */
4
- export var useWorkHours = function (showWorkHours, defaultShowWorkHours) {
5
- var _a = usePropOrState(showWorkHours, defaultShowWorkHours), show = _a[0], setShow = _a[1];
6
- var handleShowWorkHoursChange = React.useCallback(function () {
7
- setShow(!show);
8
- }, [show, setShow]);
9
- return [show, handleShowWorkHoursChange];
10
- };
@@ -1,326 +0,0 @@
1
- import * as React from 'react';
2
- import { DataItem, SchedulerItemDragEvent, SchedulerItemMouseEvent, SchedulerItemKeyboardEvent, SchedulerItemFocusEvent } from '../models';
3
- import { SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogStateChangeEvent } from '../components/SchedulerOccurrenceDialog';
4
- import { SchedulerFormProps, SchedulerFormStateChangeEvent } from '../components/SchedulerForm';
5
- import { SchedulerRemoveDialogProps, SchedulerRemoveDialogStateChangeEvent } from '../components/SchedulerRemoveDialog';
6
- import { DataAction } from '../Scheduler';
7
- import { SchedulerDragProps } from '../views/common/SchedulerDrag';
8
- import { SchedulerResizeProps } from '../views/common/SchedulerResize';
9
- import { SchedulerViewItemProps } from './SchedulerViewItem';
10
- import { SchedulerItemsFocusAction, SchedulerSlotsFocusAction } from '../hooks';
11
- import { SchedulerItemFormItemAction } from './hooks/use-form-item';
12
- import { SchedulerItemShowOccurrenceDialogAction } from './hooks/use-show-occurrence-dialog';
13
- import { SchedulerItemRemoveItemAction } from './hooks/use-remove-item';
14
- import { SchedulerItemShowRemoveDialogAction } from './hooks/use-show-remove-item-dialog';
15
- import { SchedulerItemDragItemAction } from './hooks/use-drag-item';
16
- import { SchedulerItemResizeItemAction } from './hooks/use-resize-item';
17
- import { SchedulerItemSeriesAction } from './hooks/use-series';
18
- import { SchedulerItemsSelectAction } from '../hooks/use-items-selection';
19
- import { SchedulerSlotsSelectAction } from '../hooks/use-slots-selection';
20
- export interface SchedulerEditItemStateChangeEvent<T> {
21
- value: T;
22
- }
23
- /**
24
- * Represents the available SchedulerEditItem` actions.
25
- *
26
- * Can be one of:
27
- * - [SchedulerItemDragItemAction]({% slug api_scheduler_scheduleritemdragitemaction %})
28
- * - [SchedulerItemResizeItemAction]({% slug api_scheduler_scheduleritemresizeitemaction %})
29
- * - [SchedulerItemRemoveItemAction]({% slug api_scheduler_scheduleritemremoveitemaction %})
30
- * - [SchedulerItemShowRemoveDialogAction]({% slug api_scheduler_scheduleritemshowremovedialogaction %})
31
- * - [SchedulerItemShowOccurrenceDialogAction]({% slug api_scheduler_scheduleritemshowoccurrencedialogaction %})
32
- * - [SchedulerItemSeriesAction]({% slug api_scheduler_scheduleritemseriesaction %})
33
- * - [SchedulerItemsFocusAction]({% slug api_scheduler_scheduleritemsfocusaction %})
34
- * - [SchedulerItemsSelectAction]({% slug api_scheduler_scheduleritemsselectaction %})
35
- * - [SchedulerSlotsFocusAction]({% slug api_scheduler_schedulerslotsfocusaction %})
36
- * - [SchedulerSlotsSelectAction]({% slug api_scheduler_schedulerslotsselectaction %})
37
- *
38
- * The following `falsy` values will be ignored:
39
- * - `null`
40
- * - `false`
41
- * - `undefined`
42
- */
43
- export declare type SchedulerEditItemAction = SchedulerItemFormItemAction | SchedulerItemDragItemAction | SchedulerItemResizeItemAction | SchedulerItemRemoveItemAction | SchedulerItemShowRemoveDialogAction | SchedulerItemShowOccurrenceDialogAction | SchedulerItemSeriesAction | SchedulerItemsFocusAction | SchedulerItemsSelectAction | SchedulerSlotsFocusAction | SchedulerSlotsSelectAction | null | false | undefined;
44
- /**
45
- * Represents the props of the KendoReact [SchedulerEditItem]() component.
46
- */
47
- export interface SchedulerEditItemProps extends SchedulerViewItemProps {
48
- /**
49
- * Overrides the default component responsible for positioning the item inside the view.
50
- *
51
- * The default Component is: [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
52
- */
53
- viewItem?: React.ComponentType<SchedulerViewItemProps>;
54
- /**
55
- * Overrides the default component responsible for visualizing the `dragItem`.
56
- *
57
- * The default Component is: [SchedulerDrag]({% slug api_scheduler_schedulerdrag %}).
58
- */
59
- drag?: React.ComponentType<SchedulerDragProps>;
60
- /**
61
- * Overrides the default component responsible for visualizing the `resizeItem`.
62
- *
63
- * The default Component is: [SchedulerResize]({% slug api_scheduler_schedulerresize %}).
64
- */
65
- resize?: React.ComponentType<SchedulerResizeProps>;
66
- /**
67
- * Overrides the default component responsible for visualizing the `formItem`.
68
- *
69
- * The default Component is: [SchedulerForm]({% slug api_scheduler_schedulerform %}).
70
- */
71
- form?: React.ComponentType<SchedulerFormProps>;
72
- /**
73
- * Overrides the default component responsible for visualizing the `removeItem` and confirming the `remove` action.
74
- *
75
- * The default Component is: [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}).
76
- */
77
- removeDialog?: React.ComponentType<SchedulerRemoveDialogProps>;
78
- /**
79
- * Overrides the default component responsible for the selection between `occurrence` and `series` edit.
80
- *
81
- * The default Component is: [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}).
82
- */
83
- occurrenceDialog?: React.ComponentType<SchedulerOccurrenceDialogProps>;
84
- /**
85
- * Called when the item has been removed or manipulated though dragging, resizing or an external form.
86
- */
87
- onDataAction?: (action: DataAction, event?: any) => void;
88
- /**
89
- * Setting this property will force the `formItem` to be in controlled state, allowing further customization.
90
- */
91
- formItem?: DataItem | null;
92
- /**
93
- * Called every time the `formItem` changes.
94
- */
95
- onFormItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
96
- /**
97
- * Setting this property will force the `dragItem` to be in controlled state, allowing further customization.
98
- */
99
- dragItem?: DataItem | null;
100
- /**
101
- * Called every time the `dragItem` changes.
102
- */
103
- onDragItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
104
- /**
105
- * Setting this property will force the `resizeItem` to be in controlled state, allowing further customization.
106
- */
107
- resizeItem?: DataItem | null;
108
- /**
109
- * Called every time the `resize` changes.
110
- */
111
- onResizeItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
112
- /**
113
- * Setting this property will force the `removeItem` to be in controlled state, allowing further customization.
114
- *
115
- * Specifies the DataItem which should be removed from the `data` set.
116
- * The `removeItem` is passed as property to the `removeDialog` and `occurrenceDialog` component;
117
- */
118
- removeItem?: DataItem | null;
119
- /**
120
- * Called every time the `removeItem` changes.
121
- */
122
- onRemoveItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
123
- /**
124
- * Setting this property will force the `showOccurrenceDialog` to be in controlled state, allowing further control over the display of the `occurrenceDialog` component.
125
- */
126
- showOccurrenceDialog?: boolean;
127
- /**
128
- * Called every time the `showOccurrenceDialog` changes.
129
- */
130
- onShowOccurrenceDialogChange?: (event: SchedulerEditItemStateChangeEvent<boolean>) => void;
131
- /**
132
- * Setting this property will force the `showRemoveDialog` to be in controlled state, allowing further control over the display of the `removeDialog` component.
133
- */
134
- showRemoveDialog?: boolean;
135
- /**
136
- * Called every time the `showRemoveDialog` changes.
137
- */
138
- onShowRemoveDialogChange?: (event: SchedulerEditItemStateChangeEvent<boolean>) => void;
139
- /**
140
- * Indicates if the editing should be applied to the whole `series` or to a single `occurrence` when the item is recurring.
141
- *
142
- * By default, the `series` prop is set to `null` and additional selection is done through the `occurrence` dialog.
143
- * If set ot either `true` or `false`:
144
- * - `true` &mdash; indicates that the editing should always be applied to the whole `series`
145
- * - `false` &mdash; indicates that the editing should always be applied to a single `occurrence`.
146
- */
147
- series?: boolean | null;
148
- /**
149
- * Called every time the `series` changes.
150
- */
151
- onSeriesChange?: (event: SchedulerEditItemStateChangeEvent<boolean | null>) => void;
152
- /**
153
- * Called whenever the `occurence` option is selected from the `OccurrenceDialog`.
154
- */
155
- onOccurrenceClick?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>) => void;
156
- /**
157
- * An action callback. Used to define the component behavior on occurrence click.
158
- *
159
- * Internal state change will be triggered depending on the specific action types.
160
- */
161
- onOccurrenceClickAction?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
162
- /**
163
- * Called whenever the `series` option is selected from the `OccurrenceDialog`.
164
- */
165
- onSeriesClick?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>) => void;
166
- /**
167
- * An action callback. Used to define the component behavior on series click.
168
- *
169
- * Internal state change will be triggered depending on the specific action types.
170
- */
171
- onSeriesClickAction?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
172
- /**
173
- * Called whenever the `confirm` option is selected from the `RemoveDialog`.
174
- */
175
- onRemoveConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<any>) => void;
176
- /**
177
- * An action callback. Used to define the component behavior on remove confirm click.
178
- *
179
- * Internal state change will be triggered depending on the specific action types.
180
- */
181
- onRemoveConfirmAction?: (event: SchedulerRemoveDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
182
- /**
183
- * Called whenever the `form` is submitted.
184
- */
185
- onFormSubmit?: (event: SchedulerFormStateChangeEvent<DataItem | null>) => void;
186
- /**
187
- * An action callback. Used to define the component behavior on form submit.
188
- *
189
- * Internal state change will be triggered depending on the specific action types.
190
- */
191
- onFormSubmitAction?: (event: SchedulerFormStateChangeEvent<DataItem | null>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
192
- /**
193
- * Called whenever the current edit is canceled.
194
- */
195
- onCancel?: (event: SchedulerFormStateChangeEvent<null> | SchedulerOccurrenceDialogStateChangeEvent<null>) => void;
196
- /**
197
- * An action callback. Used to define the component behavior on cancel.
198
- *
199
- * Internal state change will be triggered depending on the specific action types.
200
- */
201
- onCancelAction?: (event: SchedulerFormStateChangeEvent<null> | SchedulerOccurrenceDialogStateChangeEvent<null>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
202
- /**
203
- * An action callback. Used to define the component behavior on click.
204
- *
205
- * Internal state change will be triggered depending on the specific action types.
206
- */
207
- onClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
208
- /**
209
- * An action callback. Used to define the component behavior on mouse down.
210
- *
211
- * Internal state change will be triggered depending on the specific action types.
212
- */
213
- onMouseDownAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
214
- /**
215
- * An action callback. Used to define the component behavior on mouse up.
216
- *
217
- * Internal state change will be triggered depending on the specific action types.
218
- */
219
- onMouseUpAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
220
- /**
221
- * An action callback. Used to define the component behavior on double click.
222
- *
223
- * Internal state change will be triggered depending on the specific action types.
224
- */
225
- onDoubleClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
226
- /**
227
- * An action callback. Used to define the component behavior on remove click.
228
- *
229
- * Internal state change will be triggered depending on the specific action types.
230
- */
231
- onRemoveClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
232
- /**
233
- * An action callback. Used to define the component behavior on key down.
234
- *
235
- * Internal state change will be triggered depending on the specific action types.
236
- */
237
- onKeyDownAction?: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
238
- /**
239
- * An action callback. Used to define the component behavior on key up.
240
- *
241
- * Internal state change will be triggered depending on the specific action types.
242
- */
243
- onKeyUpAction?: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
244
- /**
245
- * An action callback. Used to define the component behavior on focus.
246
- *
247
- * Internal state change will be triggered depending on the specific action types.
248
- */
249
- onFocusAction?: (event: SchedulerItemFocusEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
250
- /**
251
- * An action callback. Used to define the component behavior on blur.
252
- *
253
- * Internal state change will be triggered depending on the specific action types.
254
- */
255
- onBlurAction?: (event: SchedulerItemFocusEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
256
- /**
257
- * An action callback. Used to define the component behavior on press.
258
- *
259
- * Internal state change will be triggered depending on the specific action types.
260
- */
261
- onPressAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
262
- /**
263
- * An action callback. Used to define the component behavior on drag.
264
- *
265
- * Internal state change will be triggered depending on the specific action types.
266
- */
267
- onDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
268
- /**
269
- * An action callback. Used to define the component behavior on release.
270
- *
271
- * Internal state change will be triggered depending on the specific action types.
272
- */
273
- onReleaseAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
274
- /**
275
- * An action callback. Used to define the component behavior on resize press.
276
- *
277
- * Internal state change will be triggered depending on the specific action types.
278
- */
279
- onResizePressAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
280
- /**
281
- * An action callback. Used to define the component behavior on resize start drag.
282
- *
283
- * Internal state change will be triggered depending on the specific action types.
284
- */
285
- onResizeStartDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
286
- /**
287
- * An action callback. Used to define the component behavior on resize end drag.
288
- *
289
- * Internal state change will be triggered depending on the specific action types.
290
- */
291
- onResizeEndDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
292
- /**
293
- * An action callback. Used to define the component behavior on resize release.
294
- *
295
- * Internal state change will be triggered depending on the specific action types.
296
- */
297
- onResizeReleaseAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
298
- }
299
- /**
300
- * Represents the internal `state` of the `SchedulerEditItem`.
301
- */
302
- export interface SchedulerEditItemState {
303
- selected: boolean;
304
- series: boolean | null;
305
- formItem: DataItem | null;
306
- dragItem: DataItem | null;
307
- resizeItem: DataItem | null;
308
- removeItem: DataItem | null;
309
- showRemoveDialog: DataItem | null;
310
- showOccurrenceDialog: DataItem | null;
311
- }
312
- /**
313
- * Represents the object which is returned from the `ref` callback of the [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %}).
314
- *
315
- * For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
316
- */
317
- export interface SchedulerEditItemHandle {
318
- element: HTMLDivElement | null;
319
- props: SchedulerEditItemProps;
320
- }
321
- /**
322
- * Represents the default `editItem` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
323
- *
324
- * This is a composite component of the [`SchedulerViewItem`]({% slug api_scheduler_schedulerviewitem %}), extending it to provide editing through drag, resize and external form.
325
- */
326
- export declare const SchedulerEditItem: React.ForwardRefExoticComponent<SchedulerEditItemProps & React.RefAttributes<SchedulerEditItemHandle>>;