@progress/kendo-vue-scheduler 3.0.7 → 3.0.9-dev.202202280631

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 (545) hide show
  1. package/NOTICE.txt +22 -12
  2. package/dist/cdn/js/kendo-vue-scheduler.js +16 -1
  3. package/dist/es/Scheduler.d.ts +315 -0
  4. package/dist/es/Scheduler.js +1163 -0
  5. package/dist/es/additionalTypes.ts +9 -0
  6. package/dist/es/components/BaseView.d.ts +45 -0
  7. package/dist/es/components/BaseView.js +145 -0
  8. package/dist/es/components/CurrentTimeMarket.d.ts +44 -0
  9. package/dist/es/components/CurrentTimeMarket.js +193 -0
  10. package/dist/es/components/DateHeaderCell.d.ts +72 -0
  11. package/dist/es/components/DateHeaderCell.js +46 -0
  12. package/dist/es/components/SchedulerForm.d.ts +86 -0
  13. package/dist/es/components/SchedulerForm.js +260 -0
  14. package/dist/es/components/SchedulerOccurrenceDialog.d.ts +72 -0
  15. package/dist/es/components/SchedulerOccurrenceDialog.js +116 -0
  16. package/dist/es/components/SchedulerRemoveDialog.d.ts +68 -0
  17. package/dist/es/components/SchedulerRemoveDialog.js +97 -0
  18. package/dist/es/components/ShowMoreItemsButton.d.ts +50 -0
  19. package/dist/es/components/ShowMoreItemsButton.js +62 -0
  20. package/dist/es/components/TimeHeaderCell.d.ts +72 -0
  21. package/dist/es/components/TimeHeaderCell.js +44 -0
  22. package/dist/es/components/footer/SchedulerFooter.d.ts +50 -0
  23. package/dist/es/components/footer/SchedulerFooter.js +35 -0
  24. package/dist/es/components/footer/bussiness-hours/BussinessHours.d.ts +43 -0
  25. package/dist/es/components/footer/bussiness-hours/BussinessHours.js +33 -0
  26. package/dist/es/components/header/SchedulerHeader.d.ts +50 -0
  27. package/dist/es/components/header/SchedulerHeader.js +31 -0
  28. package/dist/es/components/header/navigation/DatePickerToggleButton.d.ts +36 -0
  29. package/dist/es/components/header/navigation/DatePickerToggleButton.js +94 -0
  30. package/dist/es/components/header/navigation/NavigationDatePicker.d.ts +36 -0
  31. package/dist/es/components/header/navigation/NavigationDatePicker.js +90 -0
  32. package/dist/es/components/header/navigation/SchedulerNavigation.d.ts +43 -0
  33. package/dist/es/components/header/navigation/SchedulerNavigation.js +30 -0
  34. package/dist/es/components/header/view-selector/SchedulerViewSelector.d.ts +43 -0
  35. package/dist/es/components/header/view-selector/SchedulerViewSelector.js +33 -0
  36. package/dist/es/components/header/view-selector/ViewSelectorItem.d.ts +41 -0
  37. package/dist/es/components/header/view-selector/ViewSelectorItem.js +73 -0
  38. package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +36 -0
  39. package/dist/es/components/header/view-selector/ViewSelectorList.js +154 -0
  40. package/dist/es/constants/index.d.ts +49 -0
  41. package/dist/es/constants/index.js +55 -0
  42. package/dist/es/context/SchedulerContext.d.ts +34 -0
  43. package/dist/es/context/SchedulerContext.js +205 -0
  44. package/dist/es/context/SchedulerEditItemContext.d.ts +23 -0
  45. package/dist/es/context/SchedulerEditItemContext.js +180 -0
  46. package/dist/es/context/SchedulerEditSlotContext.d.ts +13 -0
  47. package/dist/es/context/SchedulerEditSlotContext.js +47 -0
  48. package/dist/es/context/SchedulerEditTaskContext.d.ts +13 -0
  49. package/dist/es/context/SchedulerEditTaskContext.js +36 -0
  50. package/dist/es/context/SchedulerResourceIteratorContext.d.ts +40 -0
  51. package/dist/es/context/SchedulerResourceIteratorContext.js +52 -0
  52. package/dist/es/context/SchedulerViewContext.d.ts +19 -0
  53. package/dist/es/context/SchedulerViewContext.js +95 -0
  54. package/dist/es/context/index.d.ts +5 -0
  55. package/dist/es/context/index.js +5 -0
  56. package/dist/es/editors/FilterableComboBox.d.ts +36 -0
  57. package/dist/es/editors/FilterableComboBox.js +86 -0
  58. package/dist/es/editors/ResourceEditor.d.ts +47 -0
  59. package/dist/es/editors/ResourceEditor.js +131 -0
  60. package/dist/es/editors/SchedulerFormEditor.d.ts +258 -0
  61. package/dist/es/editors/SchedulerFormEditor.js +491 -0
  62. package/dist/es/editors/ZonedDateTime.d.ts +46 -0
  63. package/dist/es/editors/ZonedDateTime.js +85 -0
  64. package/dist/es/editors/common.d.ts +12 -0
  65. package/dist/es/editors/common.js +29 -0
  66. package/dist/es/hooks/index.d.ts +10 -0
  67. package/dist/es/hooks/index.js +10 -0
  68. package/dist/es/hooks/use-items-focus.d.ts +22 -0
  69. package/dist/es/hooks/use-items-focus.js +56 -0
  70. package/dist/es/hooks/use-items-selection.d.ts +30 -0
  71. package/dist/es/hooks/use-items-selection.js +113 -0
  72. package/dist/es/hooks/use-slots-focus.d.ts +33 -0
  73. package/dist/es/hooks/use-slots-focus.js +118 -0
  74. package/dist/es/hooks/use-slots-selection.d.ts +23 -0
  75. package/dist/es/hooks/use-slots-selection.js +64 -0
  76. package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +10 -0
  77. package/dist/es/hooks/useAsyncMouseEnterLeave.js +29 -0
  78. package/dist/es/hooks/useCellSync.d.ts +9 -0
  79. package/dist/es/hooks/useCellSync.js +51 -0
  80. package/dist/es/hooks/useEditable.d.ts +3 -0
  81. package/dist/es/hooks/useEditable.js +22 -0
  82. package/dist/es/hooks/usePropOrState.d.ts +2 -0
  83. package/dist/es/hooks/usePropOrState.js +8 -0
  84. package/dist/es/hooks/useRowSync.d.ts +10 -0
  85. package/dist/es/hooks/useRowSync.js +56 -0
  86. package/dist/es/hooks/useSchedulerItem.d.ts +6 -0
  87. package/dist/es/hooks/useSchedulerItem.js +33 -0
  88. package/dist/es/hooks/useSchedulerSlot.d.ts +6 -0
  89. package/dist/es/hooks/useSchedulerSlot.js +32 -0
  90. package/dist/es/hooks/useSlotExpand.d.ts +3 -0
  91. package/dist/es/hooks/useSlotExpand.js +103 -0
  92. package/dist/es/hooks/useWorkHours.d.ts +2 -0
  93. package/dist/es/hooks/useWorkHours.js +11 -0
  94. package/dist/es/items/SchedulerEditItem.d.ts +353 -0
  95. package/dist/es/items/SchedulerEditItem.js +1059 -0
  96. package/dist/es/items/SchedulerItem.d.ts +219 -0
  97. package/dist/es/items/SchedulerItem.js +420 -0
  98. package/dist/es/items/SchedulerItemContent.d.ts +41 -0
  99. package/dist/es/items/SchedulerItemContent.js +27 -0
  100. package/dist/es/items/SchedulerViewItem.d.ts +58 -0
  101. package/dist/es/items/SchedulerViewItem.js +411 -0
  102. package/dist/es/items/hooks/use-drag-item.d.ts +38 -0
  103. package/dist/es/items/hooks/use-drag-item.js +182 -0
  104. package/dist/es/items/hooks/use-form-item.d.ts +18 -0
  105. package/dist/es/items/hooks/use-form-item.js +50 -0
  106. package/dist/es/items/hooks/use-remove-item.d.ts +26 -0
  107. package/dist/es/items/hooks/use-remove-item.js +48 -0
  108. package/dist/es/items/hooks/use-resize-item.d.ts +41 -0
  109. package/dist/es/items/hooks/use-resize-item.js +209 -0
  110. package/dist/es/items/hooks/use-series.d.ts +23 -0
  111. package/dist/es/items/hooks/use-series.js +43 -0
  112. package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +27 -0
  113. package/dist/es/items/hooks/use-show-occurrence-dialog.js +54 -0
  114. package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +27 -0
  115. package/dist/es/items/hooks/use-show-remove-item-dialog.js +53 -0
  116. package/dist/es/main.d.ts +38 -1
  117. package/dist/es/main.js +82 -0
  118. package/dist/es/messages/index.d.ts +233 -0
  119. package/dist/es/messages/index.js +234 -0
  120. package/dist/es/models/DataItem.d.ts +8 -0
  121. package/dist/es/models/DataItem.js +0 -0
  122. package/dist/es/models/DateRange.d.ts +18 -0
  123. package/dist/es/models/DateRange.js +0 -0
  124. package/dist/es/models/EditableProp.d.ts +29 -0
  125. package/dist/es/models/EditableProp.js +0 -0
  126. package/dist/es/models/Fields.d.ts +17 -0
  127. package/dist/es/models/Fields.js +0 -0
  128. package/dist/es/models/Group.d.ts +8 -0
  129. package/dist/es/models/Group.js +0 -0
  130. package/dist/es/models/Item.d.ts +62 -0
  131. package/dist/es/models/Item.js +0 -0
  132. package/dist/es/models/NavigationAction.d.ts +58 -0
  133. package/dist/es/models/NavigationAction.js +10 -0
  134. package/dist/es/models/Occurrence.d.ts +52 -0
  135. package/dist/es/models/Occurrence.js +0 -0
  136. package/dist/es/models/Omit.d.ts +4 -0
  137. package/dist/es/models/Omit.js +0 -0
  138. package/dist/es/models/Orientation.d.ts +2 -0
  139. package/dist/es/models/Orientation.js +0 -0
  140. package/dist/es/models/Range.d.ts +10 -0
  141. package/dist/es/models/Range.js +0 -0
  142. package/dist/es/models/Rect.d.ts +15 -0
  143. package/dist/es/models/Rect.js +0 -0
  144. package/dist/es/models/Resource.d.ts +8 -0
  145. package/dist/es/models/Resource.js +0 -0
  146. package/dist/es/models/SchedulerGroup.d.ts +13 -0
  147. package/dist/es/models/SchedulerGroup.js +0 -0
  148. package/dist/es/models/SchedulerHandle.d.ts +8 -0
  149. package/dist/es/models/SchedulerHandle.js +0 -0
  150. package/dist/es/models/SchedulerModelFields.d.ts +62 -0
  151. package/dist/es/models/SchedulerModelFields.js +0 -0
  152. package/dist/es/models/SchedulerResource.d.ts +33 -0
  153. package/dist/es/models/SchedulerResource.js +0 -0
  154. package/dist/es/models/SchedulerView.d.ts +74 -0
  155. package/dist/es/models/SchedulerView.js +0 -0
  156. package/dist/es/models/Slot.d.ts +49 -0
  157. package/dist/es/models/Slot.js +0 -0
  158. package/dist/es/models/events.d.ts +81 -0
  159. package/dist/es/models/events.js +0 -0
  160. package/dist/es/models/index.d.ts +17 -0
  161. package/dist/es/models/index.js +17 -0
  162. package/dist/es/package-metadata.d.ts +5 -0
  163. package/dist/es/package-metadata.js +11 -0
  164. package/dist/es/recurrence/RecurrenceEditor.d.ts +44 -0
  165. package/dist/es/recurrence/RecurrenceEditor.js +909 -0
  166. package/dist/es/recurrence/RecurrenceFrequencyEditor.d.ts +42 -0
  167. package/dist/es/recurrence/RecurrenceFrequencyEditor.js +63 -0
  168. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +45 -0
  169. package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +127 -0
  170. package/dist/es/recurrence/common.d.ts +57 -0
  171. package/dist/es/recurrence/common.js +211 -0
  172. package/dist/es/recurrence/types/EndRule.d.ts +4 -0
  173. package/dist/es/recurrence/types/EndRule.js +0 -0
  174. package/dist/es/recurrence/types/Frequency.d.ts +4 -0
  175. package/dist/es/recurrence/types/Frequency.js +0 -0
  176. package/dist/es/recurrence/types/FrequencyEntity.d.ts +8 -0
  177. package/dist/es/recurrence/types/FrequencyEntity.js +0 -0
  178. package/dist/es/recurrence/types/MonthEntity.d.ts +7 -0
  179. package/dist/es/recurrence/types/MonthEntity.js +0 -0
  180. package/dist/es/recurrence/types/OffsetPosition.d.ts +4 -0
  181. package/dist/es/recurrence/types/OffsetPosition.js +0 -0
  182. package/dist/es/recurrence/types/OffsetPositionEntity.d.ts +7 -0
  183. package/dist/es/recurrence/types/OffsetPositionEntity.js +0 -0
  184. package/dist/es/recurrence/types/RepeatOnRule.d.ts +4 -0
  185. package/dist/es/recurrence/types/RepeatOnRule.js +0 -0
  186. package/dist/es/recurrence/types/WeekDayEntity.d.ts +7 -0
  187. package/dist/es/recurrence/types/WeekDayEntity.js +0 -0
  188. package/dist/es/recurrence/types/WeekDayRule.d.ts +8 -0
  189. package/dist/es/recurrence/types/WeekDayRule.js +0 -0
  190. package/dist/es/recurrence/utils/index.d.ts +1 -0
  191. package/dist/es/recurrence/utils/index.js +0 -0
  192. package/dist/es/reducers/editReducer.d.ts +33 -0
  193. package/dist/es/reducers/editReducer.js +65 -0
  194. package/dist/es/reducers/index.d.ts +1 -0
  195. package/dist/es/reducers/index.js +1 -0
  196. package/dist/es/services/index.d.ts +4 -0
  197. package/dist/es/services/index.js +4 -0
  198. package/dist/es/services/itemsService.d.ts +14 -0
  199. package/dist/es/services/itemsService.js +82 -0
  200. package/dist/es/services/occurrenceService.d.ts +7 -0
  201. package/dist/es/services/occurrenceService.js +90 -0
  202. package/dist/es/services/rangeService.d.ts +6 -0
  203. package/dist/es/services/rangeService.js +23 -0
  204. package/dist/es/services/slotsService.d.ts +8 -0
  205. package/dist/es/services/slotsService.js +42 -0
  206. package/dist/es/slots/SchedulerEditSlot.d.ts +78 -0
  207. package/dist/es/slots/SchedulerEditSlot.js +309 -0
  208. package/dist/es/slots/SchedulerSlot.d.ts +142 -0
  209. package/dist/es/slots/SchedulerSlot.js +218 -0
  210. package/dist/es/slots/SchedulerViewSlot.d.ts +72 -0
  211. package/dist/es/slots/SchedulerViewSlot.js +121 -0
  212. package/dist/es/tasks/SchedulerEditTask.d.ts +102 -0
  213. package/dist/es/tasks/SchedulerEditTask.js +282 -0
  214. package/dist/es/tasks/SchedulerTask.d.ts +75 -0
  215. package/dist/es/tasks/SchedulerTask.js +110 -0
  216. package/dist/es/tasks/SchedulerViewTask.d.ts +56 -0
  217. package/dist/es/tasks/SchedulerViewTask.js +127 -0
  218. package/dist/es/utils/index.d.ts +172 -0
  219. package/dist/es/utils/index.js +561 -0
  220. package/dist/es/views/agenda/AgendaView.d.ts +105 -0
  221. package/dist/es/views/agenda/AgendaView.js +266 -0
  222. package/dist/es/views/agenda/AgendaViewBody.d.ts +41 -0
  223. package/dist/es/views/agenda/AgendaViewBody.js +211 -0
  224. package/dist/es/views/agenda/AgendaViewHead.d.ts +40 -0
  225. package/dist/es/views/agenda/AgendaViewHead.js +50 -0
  226. package/dist/es/views/agenda/AgendaViewHeaderItem.d.ts +40 -0
  227. package/dist/es/views/agenda/AgendaViewHeaderItem.js +41 -0
  228. package/dist/es/views/common/HorizontalResourceIterator.d.ts +57 -0
  229. package/dist/es/views/common/HorizontalResourceIterator.js +179 -0
  230. package/dist/es/views/common/SchedulerDrag.d.ts +63 -0
  231. package/dist/es/views/common/SchedulerDrag.js +95 -0
  232. package/dist/es/views/common/SchedulerResize.d.ts +65 -0
  233. package/dist/es/views/common/SchedulerResize.js +97 -0
  234. package/dist/es/views/common/VerticalResourceIterator.d.ts +53 -0
  235. package/dist/es/views/common/VerticalResourceIterator.js +266 -0
  236. package/dist/es/views/common/utils.d.ts +34 -0
  237. package/dist/es/views/common/utils.js +187 -0
  238. package/dist/es/views/day/DayView.d.ts +41 -0
  239. package/dist/es/views/day/DayView.js +95 -0
  240. package/dist/es/views/day/DayViewAllDayRowContent.d.ts +39 -0
  241. package/dist/es/views/day/DayViewAllDayRowContent.js +38 -0
  242. package/dist/es/views/day/DayViewAllDaySlots.d.ts +43 -0
  243. package/dist/es/views/day/DayViewAllDaySlots.js +99 -0
  244. package/dist/es/views/day/DayViewGroupRowContent.d.ts +39 -0
  245. package/dist/es/views/day/DayViewGroupRowContent.js +31 -0
  246. package/dist/es/views/day/DayViewHead.d.ts +40 -0
  247. package/dist/es/views/day/DayViewHead.js +60 -0
  248. package/dist/es/views/day/DayViewMiddleRow.d.ts +38 -0
  249. package/dist/es/views/day/DayViewMiddleRow.js +109 -0
  250. package/dist/es/views/day/DayViewRowContent.d.ts +43 -0
  251. package/dist/es/views/day/DayViewRowContent.js +49 -0
  252. package/dist/es/views/day/MultiDayView.d.ts +169 -0
  253. package/dist/es/views/day/MultiDayView.js +1397 -0
  254. package/dist/es/views/month/MonthView.d.ts +100 -0
  255. package/dist/es/views/month/MonthView.js +531 -0
  256. package/dist/es/views/month/MonthViewBody.d.ts +42 -0
  257. package/dist/es/views/month/MonthViewBody.js +152 -0
  258. package/dist/es/views/month/MonthViewHead.d.ts +40 -0
  259. package/dist/es/views/month/MonthViewHead.js +68 -0
  260. package/dist/es/views/time/MultiDayTimelineView.d.ts +173 -0
  261. package/dist/es/views/time/MultiDayTimelineView.js +479 -0
  262. package/dist/es/views/time/TimelineView.d.ts +41 -0
  263. package/dist/es/views/time/TimelineView.js +114 -0
  264. package/dist/es/views/time/TimelineViewAllEventsRowContent.d.ts +38 -0
  265. package/dist/es/views/time/TimelineViewAllEventsRowContent.js +40 -0
  266. package/dist/es/views/time/TimelineViewBody.d.ts +42 -0
  267. package/dist/es/views/time/TimelineViewBody.js +98 -0
  268. package/dist/es/views/time/TimelineViewRowContent.d.ts +38 -0
  269. package/dist/es/views/time/TimelineViewRowContent.js +29 -0
  270. package/dist/es/views/week/WeekView.d.ts +116 -0
  271. package/dist/es/views/week/WeekView.js +124 -0
  272. package/dist/es/views/week/WorkWeekView.d.ts +38 -0
  273. package/dist/es/views/week/WorkWeekView.js +162 -0
  274. package/dist/npm/Scheduler.d.ts +315 -0
  275. package/dist/npm/Scheduler.js +1190 -0
  276. package/dist/npm/additionalTypes.ts +9 -0
  277. package/dist/npm/components/BaseView.d.ts +45 -0
  278. package/dist/npm/components/BaseView.js +159 -0
  279. package/dist/npm/components/CurrentTimeMarket.d.ts +44 -0
  280. package/dist/npm/components/CurrentTimeMarket.js +205 -0
  281. package/dist/npm/components/DateHeaderCell.d.ts +72 -0
  282. package/dist/npm/components/DateHeaderCell.js +56 -0
  283. package/dist/npm/components/SchedulerForm.d.ts +86 -0
  284. package/dist/npm/components/SchedulerForm.js +275 -0
  285. package/dist/npm/components/SchedulerOccurrenceDialog.d.ts +72 -0
  286. package/dist/npm/components/SchedulerOccurrenceDialog.js +129 -0
  287. package/dist/npm/components/SchedulerRemoveDialog.d.ts +68 -0
  288. package/dist/npm/components/SchedulerRemoveDialog.js +110 -0
  289. package/dist/npm/components/ShowMoreItemsButton.d.ts +50 -0
  290. package/dist/npm/components/ShowMoreItemsButton.js +72 -0
  291. package/dist/npm/components/TimeHeaderCell.d.ts +72 -0
  292. package/dist/npm/components/TimeHeaderCell.js +54 -0
  293. package/dist/npm/components/footer/SchedulerFooter.d.ts +50 -0
  294. package/dist/npm/components/footer/SchedulerFooter.js +46 -0
  295. package/dist/npm/components/footer/bussiness-hours/BussinessHours.d.ts +43 -0
  296. package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +44 -0
  297. package/dist/npm/components/header/SchedulerHeader.d.ts +50 -0
  298. package/dist/npm/components/header/SchedulerHeader.js +42 -0
  299. package/dist/npm/components/header/navigation/DatePickerToggleButton.d.ts +36 -0
  300. package/dist/npm/components/header/navigation/DatePickerToggleButton.js +106 -0
  301. package/dist/npm/components/header/navigation/NavigationDatePicker.d.ts +36 -0
  302. package/dist/npm/components/header/navigation/NavigationDatePicker.js +102 -0
  303. package/dist/npm/components/header/navigation/SchedulerNavigation.d.ts +43 -0
  304. package/dist/npm/components/header/navigation/SchedulerNavigation.js +41 -0
  305. package/dist/npm/components/header/view-selector/SchedulerViewSelector.d.ts +43 -0
  306. package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +44 -0
  307. package/dist/npm/components/header/view-selector/ViewSelectorItem.d.ts +41 -0
  308. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +84 -0
  309. package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +36 -0
  310. package/dist/npm/components/header/view-selector/ViewSelectorList.js +164 -0
  311. package/dist/npm/constants/index.d.ts +49 -0
  312. package/dist/npm/constants/index.js +59 -0
  313. package/dist/npm/context/SchedulerContext.d.ts +34 -0
  314. package/dist/npm/context/SchedulerContext.js +211 -0
  315. package/dist/npm/context/SchedulerEditItemContext.d.ts +23 -0
  316. package/dist/npm/context/SchedulerEditItemContext.js +187 -0
  317. package/dist/npm/context/SchedulerEditSlotContext.d.ts +13 -0
  318. package/dist/npm/context/SchedulerEditSlotContext.js +53 -0
  319. package/dist/npm/context/SchedulerEditTaskContext.d.ts +13 -0
  320. package/dist/npm/context/SchedulerEditTaskContext.js +43 -0
  321. package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +40 -0
  322. package/dist/npm/context/SchedulerResourceIteratorContext.js +62 -0
  323. package/dist/npm/context/SchedulerViewContext.d.ts +19 -0
  324. package/dist/npm/context/SchedulerViewContext.js +102 -0
  325. package/dist/npm/context/index.d.ts +5 -0
  326. package/dist/npm/context/index.js +17 -0
  327. package/dist/npm/editors/FilterableComboBox.d.ts +36 -0
  328. package/dist/npm/editors/FilterableComboBox.js +97 -0
  329. package/dist/npm/editors/ResourceEditor.d.ts +47 -0
  330. package/dist/npm/editors/ResourceEditor.js +141 -0
  331. package/dist/npm/editors/SchedulerFormEditor.d.ts +258 -0
  332. package/dist/npm/editors/SchedulerFormEditor.js +505 -0
  333. package/dist/npm/editors/ZonedDateTime.d.ts +46 -0
  334. package/dist/npm/editors/ZonedDateTime.js +96 -0
  335. package/dist/npm/editors/common.d.ts +12 -0
  336. package/dist/npm/editors/common.js +32 -0
  337. package/dist/npm/hooks/index.d.ts +10 -0
  338. package/dist/npm/hooks/index.js +22 -0
  339. package/dist/npm/hooks/use-items-focus.d.ts +22 -0
  340. package/dist/npm/hooks/use-items-focus.js +64 -0
  341. package/dist/npm/hooks/use-items-selection.d.ts +30 -0
  342. package/dist/npm/hooks/use-items-selection.js +121 -0
  343. package/dist/npm/hooks/use-slots-focus.d.ts +33 -0
  344. package/dist/npm/hooks/use-slots-focus.js +129 -0
  345. package/dist/npm/hooks/use-slots-selection.d.ts +23 -0
  346. package/dist/npm/hooks/use-slots-selection.js +70 -0
  347. package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +10 -0
  348. package/dist/npm/hooks/useAsyncMouseEnterLeave.js +36 -0
  349. package/dist/npm/hooks/useCellSync.d.ts +9 -0
  350. package/dist/npm/hooks/useCellSync.js +60 -0
  351. package/dist/npm/hooks/useEditable.d.ts +3 -0
  352. package/dist/npm/hooks/useEditable.js +28 -0
  353. package/dist/npm/hooks/usePropOrState.d.ts +2 -0
  354. package/dist/npm/hooks/usePropOrState.js +16 -0
  355. package/dist/npm/hooks/useRowSync.d.ts +10 -0
  356. package/dist/npm/hooks/useRowSync.js +64 -0
  357. package/dist/npm/hooks/useSchedulerItem.d.ts +6 -0
  358. package/dist/npm/hooks/useSchedulerItem.js +39 -0
  359. package/dist/npm/hooks/useSchedulerSlot.d.ts +6 -0
  360. package/dist/npm/hooks/useSchedulerSlot.js +38 -0
  361. package/dist/npm/hooks/useSlotExpand.d.ts +3 -0
  362. package/dist/npm/hooks/useSlotExpand.js +112 -0
  363. package/dist/npm/hooks/useWorkHours.d.ts +2 -0
  364. package/dist/npm/hooks/useWorkHours.js +18 -0
  365. package/dist/npm/items/SchedulerEditItem.d.ts +353 -0
  366. package/dist/npm/items/SchedulerEditItem.js +1079 -0
  367. package/dist/npm/items/SchedulerItem.d.ts +219 -0
  368. package/dist/npm/items/SchedulerItem.js +435 -0
  369. package/dist/npm/items/SchedulerItemContent.d.ts +41 -0
  370. package/dist/npm/items/SchedulerItemContent.js +36 -0
  371. package/dist/npm/items/SchedulerViewItem.d.ts +58 -0
  372. package/dist/npm/items/SchedulerViewItem.js +426 -0
  373. package/dist/npm/items/hooks/use-drag-item.d.ts +38 -0
  374. package/dist/npm/items/hooks/use-drag-item.js +189 -0
  375. package/dist/npm/items/hooks/use-form-item.d.ts +18 -0
  376. package/dist/npm/items/hooks/use-form-item.js +57 -0
  377. package/dist/npm/items/hooks/use-remove-item.d.ts +26 -0
  378. package/dist/npm/items/hooks/use-remove-item.js +55 -0
  379. package/dist/npm/items/hooks/use-resize-item.d.ts +41 -0
  380. package/dist/npm/items/hooks/use-resize-item.js +216 -0
  381. package/dist/npm/items/hooks/use-series.d.ts +23 -0
  382. package/dist/npm/items/hooks/use-series.js +50 -0
  383. package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +27 -0
  384. package/dist/npm/items/hooks/use-show-occurrence-dialog.js +61 -0
  385. package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +27 -0
  386. package/dist/npm/items/hooks/use-show-remove-item-dialog.js +60 -0
  387. package/dist/npm/main.d.ts +38 -1
  388. package/dist/npm/main.js +85 -0
  389. package/dist/npm/messages/index.d.ts +233 -0
  390. package/dist/npm/messages/index.js +237 -0
  391. package/dist/npm/models/DataItem.d.ts +8 -0
  392. package/dist/npm/models/DataItem.js +2 -0
  393. package/dist/npm/models/DateRange.d.ts +18 -0
  394. package/dist/npm/models/DateRange.js +2 -0
  395. package/dist/npm/models/EditableProp.d.ts +29 -0
  396. package/dist/npm/models/EditableProp.js +2 -0
  397. package/dist/npm/models/Fields.d.ts +17 -0
  398. package/dist/npm/models/Fields.js +2 -0
  399. package/dist/npm/models/Group.d.ts +8 -0
  400. package/dist/npm/models/Group.js +2 -0
  401. package/dist/npm/models/Item.d.ts +62 -0
  402. package/dist/npm/models/Item.js +2 -0
  403. package/dist/npm/models/NavigationAction.d.ts +58 -0
  404. package/dist/npm/models/NavigationAction.js +12 -0
  405. package/dist/npm/models/Occurrence.d.ts +52 -0
  406. package/dist/npm/models/Occurrence.js +2 -0
  407. package/dist/npm/models/Omit.d.ts +4 -0
  408. package/dist/npm/models/Omit.js +2 -0
  409. package/dist/npm/models/Orientation.d.ts +2 -0
  410. package/dist/npm/models/Orientation.js +2 -0
  411. package/dist/npm/models/Range.d.ts +10 -0
  412. package/dist/npm/models/Range.js +2 -0
  413. package/dist/npm/models/Rect.d.ts +15 -0
  414. package/dist/npm/models/Rect.js +2 -0
  415. package/dist/npm/models/Resource.d.ts +8 -0
  416. package/dist/npm/models/Resource.js +2 -0
  417. package/dist/npm/models/SchedulerGroup.d.ts +13 -0
  418. package/dist/npm/models/SchedulerGroup.js +2 -0
  419. package/dist/npm/models/SchedulerHandle.d.ts +8 -0
  420. package/dist/npm/models/SchedulerHandle.js +5 -0
  421. package/dist/npm/models/SchedulerModelFields.d.ts +62 -0
  422. package/dist/npm/models/SchedulerModelFields.js +2 -0
  423. package/dist/npm/models/SchedulerResource.d.ts +33 -0
  424. package/dist/npm/models/SchedulerResource.js +2 -0
  425. package/dist/npm/models/SchedulerView.d.ts +74 -0
  426. package/dist/npm/models/SchedulerView.js +2 -0
  427. package/dist/npm/models/Slot.d.ts +49 -0
  428. package/dist/npm/models/Slot.js +2 -0
  429. package/dist/npm/models/events.d.ts +81 -0
  430. package/dist/npm/models/events.js +2 -0
  431. package/dist/npm/models/index.d.ts +17 -0
  432. package/dist/npm/models/index.js +29 -0
  433. package/dist/npm/package-metadata.d.ts +5 -0
  434. package/dist/npm/package-metadata.js +14 -0
  435. package/dist/npm/recurrence/RecurrenceEditor.d.ts +44 -0
  436. package/dist/npm/recurrence/RecurrenceEditor.js +929 -0
  437. package/dist/npm/recurrence/RecurrenceFrequencyEditor.d.ts +42 -0
  438. package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +73 -0
  439. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +45 -0
  440. package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +138 -0
  441. package/dist/npm/recurrence/common.d.ts +57 -0
  442. package/dist/npm/recurrence/common.js +214 -0
  443. package/dist/npm/recurrence/types/EndRule.d.ts +4 -0
  444. package/dist/npm/recurrence/types/EndRule.js +2 -0
  445. package/dist/npm/recurrence/types/Frequency.d.ts +4 -0
  446. package/dist/npm/recurrence/types/Frequency.js +2 -0
  447. package/dist/npm/recurrence/types/FrequencyEntity.d.ts +8 -0
  448. package/dist/npm/recurrence/types/FrequencyEntity.js +2 -0
  449. package/dist/npm/recurrence/types/MonthEntity.d.ts +7 -0
  450. package/dist/npm/recurrence/types/MonthEntity.js +2 -0
  451. package/dist/npm/recurrence/types/OffsetPosition.d.ts +4 -0
  452. package/dist/npm/recurrence/types/OffsetPosition.js +2 -0
  453. package/dist/npm/recurrence/types/OffsetPositionEntity.d.ts +7 -0
  454. package/dist/npm/recurrence/types/OffsetPositionEntity.js +2 -0
  455. package/dist/npm/recurrence/types/RepeatOnRule.d.ts +4 -0
  456. package/dist/npm/recurrence/types/RepeatOnRule.js +2 -0
  457. package/dist/npm/recurrence/types/WeekDayEntity.d.ts +7 -0
  458. package/dist/npm/recurrence/types/WeekDayEntity.js +2 -0
  459. package/dist/npm/recurrence/types/WeekDayRule.d.ts +8 -0
  460. package/dist/npm/recurrence/types/WeekDayRule.js +2 -0
  461. package/dist/npm/recurrence/utils/index.d.ts +1 -0
  462. package/dist/npm/recurrence/utils/index.js +0 -0
  463. package/dist/npm/reducers/editReducer.d.ts +33 -0
  464. package/dist/npm/reducers/editReducer.js +68 -0
  465. package/dist/npm/reducers/index.d.ts +1 -0
  466. package/dist/npm/reducers/index.js +13 -0
  467. package/dist/npm/services/index.d.ts +4 -0
  468. package/dist/npm/services/index.js +16 -0
  469. package/dist/npm/services/itemsService.d.ts +14 -0
  470. package/dist/npm/services/itemsService.js +85 -0
  471. package/dist/npm/services/occurrenceService.d.ts +7 -0
  472. package/dist/npm/services/occurrenceService.js +93 -0
  473. package/dist/npm/services/rangeService.d.ts +6 -0
  474. package/dist/npm/services/rangeService.js +26 -0
  475. package/dist/npm/services/slotsService.d.ts +8 -0
  476. package/dist/npm/services/slotsService.js +45 -0
  477. package/dist/npm/slots/SchedulerEditSlot.d.ts +78 -0
  478. package/dist/npm/slots/SchedulerEditSlot.js +324 -0
  479. package/dist/npm/slots/SchedulerSlot.d.ts +142 -0
  480. package/dist/npm/slots/SchedulerSlot.js +230 -0
  481. package/dist/npm/slots/SchedulerViewSlot.d.ts +72 -0
  482. package/dist/npm/slots/SchedulerViewSlot.js +133 -0
  483. package/dist/npm/tasks/SchedulerEditTask.d.ts +102 -0
  484. package/dist/npm/tasks/SchedulerEditTask.js +295 -0
  485. package/dist/npm/tasks/SchedulerTask.d.ts +75 -0
  486. package/dist/npm/tasks/SchedulerTask.js +122 -0
  487. package/dist/npm/tasks/SchedulerViewTask.d.ts +56 -0
  488. package/dist/npm/tasks/SchedulerViewTask.js +137 -0
  489. package/dist/npm/utils/index.d.ts +172 -0
  490. package/dist/npm/utils/index.js +571 -0
  491. package/dist/npm/views/agenda/AgendaView.d.ts +105 -0
  492. package/dist/npm/views/agenda/AgendaView.js +290 -0
  493. package/dist/npm/views/agenda/AgendaViewBody.d.ts +41 -0
  494. package/dist/npm/views/agenda/AgendaViewBody.js +224 -0
  495. package/dist/npm/views/agenda/AgendaViewHead.d.ts +40 -0
  496. package/dist/npm/views/agenda/AgendaViewHead.js +61 -0
  497. package/dist/npm/views/agenda/AgendaViewHeaderItem.d.ts +40 -0
  498. package/dist/npm/views/agenda/AgendaViewHeaderItem.js +51 -0
  499. package/dist/npm/views/common/HorizontalResourceIterator.d.ts +57 -0
  500. package/dist/npm/views/common/HorizontalResourceIterator.js +193 -0
  501. package/dist/npm/views/common/SchedulerDrag.d.ts +63 -0
  502. package/dist/npm/views/common/SchedulerDrag.js +108 -0
  503. package/dist/npm/views/common/SchedulerResize.d.ts +65 -0
  504. package/dist/npm/views/common/SchedulerResize.js +110 -0
  505. package/dist/npm/views/common/VerticalResourceIterator.d.ts +53 -0
  506. package/dist/npm/views/common/VerticalResourceIterator.js +278 -0
  507. package/dist/npm/views/common/utils.d.ts +34 -0
  508. package/dist/npm/views/common/utils.js +192 -0
  509. package/dist/npm/views/day/DayView.d.ts +41 -0
  510. package/dist/npm/views/day/DayView.js +107 -0
  511. package/dist/npm/views/day/DayViewAllDayRowContent.d.ts +39 -0
  512. package/dist/npm/views/day/DayViewAllDayRowContent.js +49 -0
  513. package/dist/npm/views/day/DayViewAllDaySlots.d.ts +43 -0
  514. package/dist/npm/views/day/DayViewAllDaySlots.js +109 -0
  515. package/dist/npm/views/day/DayViewGroupRowContent.d.ts +39 -0
  516. package/dist/npm/views/day/DayViewGroupRowContent.js +39 -0
  517. package/dist/npm/views/day/DayViewHead.d.ts +40 -0
  518. package/dist/npm/views/day/DayViewHead.js +71 -0
  519. package/dist/npm/views/day/DayViewMiddleRow.d.ts +38 -0
  520. package/dist/npm/views/day/DayViewMiddleRow.js +122 -0
  521. package/dist/npm/views/day/DayViewRowContent.d.ts +43 -0
  522. package/dist/npm/views/day/DayViewRowContent.js +60 -0
  523. package/dist/npm/views/day/MultiDayView.d.ts +169 -0
  524. package/dist/npm/views/day/MultiDayView.js +1425 -0
  525. package/dist/npm/views/month/MonthView.d.ts +100 -0
  526. package/dist/npm/views/month/MonthView.js +556 -0
  527. package/dist/npm/views/month/MonthViewBody.d.ts +42 -0
  528. package/dist/npm/views/month/MonthViewBody.js +164 -0
  529. package/dist/npm/views/month/MonthViewHead.d.ts +40 -0
  530. package/dist/npm/views/month/MonthViewHead.js +79 -0
  531. package/dist/npm/views/time/MultiDayTimelineView.d.ts +173 -0
  532. package/dist/npm/views/time/MultiDayTimelineView.js +508 -0
  533. package/dist/npm/views/time/TimelineView.d.ts +41 -0
  534. package/dist/npm/views/time/TimelineView.js +124 -0
  535. package/dist/npm/views/time/TimelineViewAllEventsRowContent.d.ts +38 -0
  536. package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +51 -0
  537. package/dist/npm/views/time/TimelineViewBody.d.ts +42 -0
  538. package/dist/npm/views/time/TimelineViewBody.js +109 -0
  539. package/dist/npm/views/time/TimelineViewRowContent.d.ts +38 -0
  540. package/dist/npm/views/time/TimelineViewRowContent.js +39 -0
  541. package/dist/npm/views/week/WeekView.d.ts +116 -0
  542. package/dist/npm/views/week/WeekView.js +139 -0
  543. package/dist/npm/views/week/WorkWeekView.d.ts +38 -0
  544. package/dist/npm/views/week/WorkWeekView.js +177 -0
  545. package/package.json +12 -12
@@ -0,0 +1,1079 @@
1
+ "use strict";
2
+
3
+ var __assign = undefined && undefined.__assign || function () {
4
+ __assign = Object.assign || function (t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+
8
+ for (var p in s) {
9
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
+ }
11
+ }
12
+
13
+ return t;
14
+ };
15
+
16
+ return __assign.apply(this, arguments);
17
+ };
18
+
19
+ Object.defineProperty(exports, "__esModule", {
20
+ value: true
21
+ });
22
+ exports.SchedulerEditItemVue2 = exports.SchedulerEditItem = void 0; // @ts-ignore
23
+
24
+ var Vue = require("vue");
25
+
26
+ var allVue = Vue;
27
+ var gh = allVue.h;
28
+ var inject = allVue.inject;
29
+
30
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
31
+
32
+ var SchedulerViewItem_1 = require("./SchedulerViewItem");
33
+
34
+ var hooks_1 = require("../hooks");
35
+
36
+ var use_form_item_1 = require("./hooks/use-form-item");
37
+
38
+ var use_show_occurrence_dialog_1 = require("./hooks/use-show-occurrence-dialog");
39
+
40
+ var use_remove_item_1 = require("./hooks/use-remove-item");
41
+
42
+ var use_show_remove_item_dialog_1 = require("./hooks/use-show-remove-item-dialog");
43
+
44
+ var use_drag_item_1 = require("./hooks/use-drag-item");
45
+
46
+ var use_resize_item_1 = require("./hooks/use-resize-item");
47
+
48
+ var use_series_1 = require("./hooks/use-series");
49
+
50
+ var use_items_selection_1 = require("../hooks/use-items-selection"); // tslint:enable:max-line-length
51
+
52
+
53
+ var SchedulerEditItemVue2 = {
54
+ name: 'KendoSchedulerEditItem',
55
+ props: {
56
+ tabIndex: Number,
57
+ viewItem: [String, Function, Object],
58
+ drag: [String, Function, Object],
59
+ resize: [String, Function, Object],
60
+ form: [String, Function, Object],
61
+ removeDialog: [String, Function, Object],
62
+ occurrenceDialog: [String, Function, Object],
63
+ formItem: Object,
64
+ dragItem: Object,
65
+ resizeItem: Object,
66
+ removeItem: Object,
67
+ showOccurrenceDialog: Boolean,
68
+ showRemoveDialog: Boolean,
69
+ series: Boolean,
70
+ uid: [String, Number],
71
+ start: Date,
72
+ end: Date,
73
+ originalStart: Date,
74
+ startTimezone: String,
75
+ endTimezone: String,
76
+ isAllDay: Boolean,
77
+ title: String,
78
+ description: String,
79
+ occurrenceId: String,
80
+ recurrenceExceptions: Array,
81
+ recurrenceRule: String,
82
+ recurrenceId: [String, Number],
83
+ dataItem: Object,
84
+ head: Boolean,
85
+ tail: Boolean,
86
+ order: Number,
87
+ zonedStart: Object,
88
+ zonedEnd: Object,
89
+ slots: Array,
90
+ group: Object,
91
+ range: Object,
92
+ isException: Boolean,
93
+ isRecurring: Boolean,
94
+ id: String,
95
+ className: String,
96
+ itemStyle: Object,
97
+ editable: [Object, Boolean],
98
+ selected: Boolean,
99
+ vertical: Boolean,
100
+ dragHint: Boolean,
101
+ resizeHint: Boolean,
102
+ format: String,
103
+ ignoreIsAllDay: Boolean
104
+ },
105
+ inject: {
106
+ bv: {
107
+ default: null
108
+ }
109
+ },
110
+ provide: function provide() {
111
+ return {
112
+ ei: this.ei
113
+ };
114
+ },
115
+ data: function data() {
116
+ return {
117
+ ei: {
118
+ props: this.$props,
119
+ form: this.$props.formItem,
120
+ drag: this.drag,
121
+ resize: this.resize,
122
+ remove: this.remove,
123
+ showRemoveDialog: this.showRemoveDialog,
124
+ showOccurrenceDialog: this.showOccurrenceDialog
125
+ },
126
+ currentTabIndex: this.$props.tabIndex,
127
+ item: null
128
+ };
129
+ },
130
+ computed: {
131
+ currentState: function currentState() {
132
+ return {
133
+ selected: this.selected,
134
+ series: this.series,
135
+ formItem: this.formItem,
136
+ dragItem: this.dragItem,
137
+ resizeItem: this.resizeItem,
138
+ removeItem: this.removeItem,
139
+ showRemoveDialog: this.showRemoveDialog,
140
+ showOccurrenceDialog: this.showOccurrenceDialog
141
+ };
142
+ },
143
+ actionsReducerMap: function actionsReducerMap() {
144
+ var _a;
145
+
146
+ return _a = {}, _a[use_series_1.SERIES_ACTION.set] = this.dispatchSeries, _a[use_series_1.SERIES_ACTION.toggle] = this.dispatchSeries, _a[use_series_1.SERIES_ACTION.reset] = this.dispatchSeries, _a[use_items_selection_1.ITEMS_SELECT_ACTION.select] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.add] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.remove] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.reset] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.selectNext] = this.dispatchItemSelection, _a[use_items_selection_1.ITEMS_SELECT_ACTION.selectPrev] = this.dispatchItemSelection, _a[use_form_item_1.FORM_ITEM_ACTION.set] = this.dispatchFormItem, _a[use_form_item_1.FORM_ITEM_ACTION.setMaster] = this.dispatchFormItem, _a[use_form_item_1.FORM_ITEM_ACTION.reset] = this.dispatchFormItem, _a[use_form_item_1.FORM_ITEM_ACTION.complete] = this.dispatchFormItem, _a[use_remove_item_1.REMOVE_ITEM_ACTION.set] = this.dispatchRemoveItem, _a[use_remove_item_1.REMOVE_ITEM_ACTION.reset] = this.dispatchRemoveItem, _a[use_remove_item_1.REMOVE_ITEM_ACTION.complete] = this.dispatchRemoveItem, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.set] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.toggle] = this.dispatchShowOccurrenceDialog, _a[use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.reset] = this.dispatchShowOccurrenceDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.close] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.open] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.set] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.toggle] = this.dispatchShowRemoveDialog, _a[use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.reset] = this.dispatchShowRemoveDialog, _a[use_drag_item_1.DRAG_ITEM_ACTION.start] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.drag] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.complete] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.completeOccurrence] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.completeSeries] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.set] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.reset] = this.dispatchDragItem, _a[use_drag_item_1.DRAG_ITEM_ACTION.dragSelected] = this.dispatchDragItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.start] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.startDrag] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.startDragSelected] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.endDrag] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.endDragSelected] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.complete] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.completeOccurrence] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.completeSeries] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.set] = this.dispatchResizeItem, _a[use_resize_item_1.RESIZE_ITEM_ACTION.reset] = this.dispatchResizeItem, _a[hooks_1.ITEMS_FOCUS_ACTION.next] = this.dispatchViewItemsFocus, _a[hooks_1.ITEMS_FOCUS_ACTION.prev] = this.dispatchViewItemsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.left] = this.dispatchViewSlotsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.right] = this.dispatchViewSlotsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.up] = this.dispatchViewSlotsFocus, _a[hooks_1.SLOTS_FOCUS_ACTION.down] = this.dispatchViewSlotsFocus, _a.null = function () {}, _a;
147
+ }
148
+ },
149
+ updated: function updated() {
150
+ var isFirst = this.bv.items.length && this.bv.items[0] === this.item;
151
+ this.currentTabindex = this.$props.tabIndex !== undefined ? this.$props.tabIndex === null ? undefined : this.$props.tabIndex : this.bv.selectedItems.length === 0 ? isFirst ? 0 : undefined : undefined; // }, [items, props.tabIndex, selectedItems.length]);
152
+ },
153
+ // @ts-ignore
154
+ setup: !gh ? undefined : function () {
155
+ var v3 = !!gh;
156
+ return {
157
+ v3: v3
158
+ };
159
+ },
160
+ // @ts-ignore
161
+ render: function render(createElement) {
162
+ var _this = this;
163
+
164
+ var h = gh || createElement; // tslint:enable:max-line-length
165
+
166
+ var _a = this.$props,
167
+ onDataaction = _a.onDataaction,
168
+ ignoreIsAllDay = _a.ignoreIsAllDay,
169
+ propViewItem = _a.viewItem,
170
+ propSeries = _a.series,
171
+ onSeriesChange = _a.onSeriesChange,
172
+ propForm = _a.form,
173
+ propFormItem = _a.formItem,
174
+ onFormItemChange = _a.onFormItemChange,
175
+ propDrag = _a.drag,
176
+ propDragItem = _a.dragItem,
177
+ onDragItemChange = _a.onDragItemChange,
178
+ propResize = _a.resize,
179
+ propResizeItem = _a.resizeItem,
180
+ onResizeItemChange = _a.onResizeItemChange,
181
+ propRemoveDialog = _a.removeDialog,
182
+ propRemoveItem = _a.removeItem,
183
+ onRemoveItemChange = _a.onRemoveItemChange,
184
+ propOccurrenceDialog = _a.occurrenceDialog,
185
+ propShowOccurrenceDialog = _a.showOccurrenceDialog,
186
+ onShowOccurrenceDialogChange = _a.onShowOccurrenceDialogChange,
187
+ propShowRemoveDialog = _a.showRemoveDialog,
188
+ onShowRemoveDialogChange = _a.onShowRemoveDialogChange; // const editItem = React.useRef<SchedulerEditItemHandle>(null);
189
+ // const item = React.useRef<SchedulerItemHandle>(null);
190
+
191
+ var ViewItem = propViewItem;
192
+ var Drag = propDrag;
193
+ var Resize = propResize;
194
+ var Form = propForm;
195
+ var OccurrenceDialog = propOccurrenceDialog;
196
+ var RemoveDialog = propRemoveDialog;
197
+ var editable = hooks_1.useEditable(this.$props.editable); // const [selectedItems, dispatchItemSelection] = useSchedulerViewSelectedItemsContext();
198
+
199
+ var _b = use_series_1.useSeries(null, propSeries, onSeriesChange),
200
+ series = _b[0],
201
+ dispatchSeries = _b[1];
202
+
203
+ var _c = use_form_item_1.useFormItem({
204
+ series: series,
205
+ onDataaction: onDataaction
206
+ }, [null, propFormItem, onFormItemChange]),
207
+ formItem = _c[0],
208
+ setFormItem = _c[1],
209
+ dispatchFormItem = _c[2];
210
+
211
+ var _d = use_drag_item_1.useDragItem({
212
+ dataItem: this.$props.dataItem,
213
+ ignoreIsAllDay: this.$props.ignoreIsAllDay,
214
+ isAllDay: this.$props.isAllDay,
215
+ onDataaction: onDataaction
216
+ }, [null, propDragItem, onDragItemChange]),
217
+ dragItem = _d[0],
218
+ setDragItem = _d[1],
219
+ dispatchDragItem = _d[2];
220
+
221
+ var _e = use_resize_item_1.useResizeItem({
222
+ dataItem: this.$props.dataItem,
223
+ onDataaction: onDataaction
224
+ }, [null, propResizeItem, onResizeItemChange]),
225
+ resizeItem = _e[0],
226
+ setResizeItem = _e[1],
227
+ dispatchResizeItem = _e[2];
228
+
229
+ var _f = use_remove_item_1.useRemoveItem({
230
+ series: series,
231
+ onDataaction: onDataaction
232
+ }, [null, propRemoveItem, onRemoveItemChange]),
233
+ removeItem = _f[0],
234
+ setRemoveItem = _f[1],
235
+ dispatchRemoveItem = _f[2];
236
+
237
+ var _g = use_show_remove_item_dialog_1.useShowRemoveDialog(false, propShowRemoveDialog, onShowRemoveDialogChange),
238
+ showRemoveDialog = _g[0],
239
+ setShowRemoveDialog = _g[1],
240
+ dispatchShowRemoveDialog = _g[2];
241
+
242
+ var _h = use_show_occurrence_dialog_1.useShowOccurrenceDialog(false, propShowOccurrenceDialog, onShowOccurrenceDialogChange),
243
+ showOccurrenceDialog = _h[0],
244
+ setShowOccurrenceDialog = _h[1],
245
+ dispatchShowOccurrenceDialog = _h[2];
246
+
247
+ var items = this.bv.items; // useSchedulerViewItemsContext();
248
+ // const [,dispatchViewItemsFocus] = useSchedulerViewFocusedItemsContext();
249
+ // const [,dispatchViewSlotsFocus] = useSchedulerViewFocusedSlotsContext();
250
+
251
+ var selected = Boolean(this.bv.selectedItems && this.bv.selectedItems.some(function (si) {
252
+ return si === _this.item;
253
+ }));
254
+ return (// <SchedulerEditItemContext
255
+ // props={this.$props}
256
+ // form={[formItem, setFormItem, dispatchFormItem]}
257
+ // drag={[dragItem, setDragItem, dispatchDragItem]}
258
+ // resize={[resizeItem, setResizeItem, dispatchResizeItem]}
259
+ // remove={[removeItem, setRemoveItem, dispatchRemoveItem ]}
260
+ // showRemoveDialog={[showRemoveDialog, setShowRemoveDialog, dispatchShowRemoveDialog]}
261
+ // showOccurrenceDialog={[showOccurrenceDialog, setShowOccurrenceDialog, dispatchShowOccurrenceDialog]}
262
+ // >
263
+ h(SchedulerViewItem_1.SchedulerViewItem, {
264
+ ignoreIsAllDay: this.ignoreIsAllDay,
265
+ attrs: this.v3 ? undefined : {
266
+ ignoreIsAllDay: this.ignoreIsAllDay,
267
+ item: this.item,
268
+ uid: this.uid,
269
+ start: this.start,
270
+ end: this.end,
271
+ originalStart: this.originalStart,
272
+ startTimezone: this.startTimezone,
273
+ endTimezone: this.endTimezone,
274
+ isAllDay: this.isAllDay,
275
+ title: this.title,
276
+ description: this.description,
277
+ occurrenceId: this.occurrenceId,
278
+ recurrenceExceptions: this.recurrenceExceptions,
279
+ recurrenceRule: this.recurrenceRule,
280
+ recurrenceId: this.recurrenceId,
281
+ dataItem: this.dataItem,
282
+ head: this.head,
283
+ tail: this.tail,
284
+ order: this.order,
285
+ zonedStart: this.zonedStart,
286
+ zonedEnd: this.zonedEnd,
287
+ slots: this.slots,
288
+ group: this.group,
289
+ range: this.range,
290
+ isException: this.isException,
291
+ isRecurring: this.isRecurring,
292
+ id: this.id,
293
+ className: this.className,
294
+ itemStyle: this.itemStyle,
295
+ editable: this.editable,
296
+ vertical: this.vertical,
297
+ dragHint: this.dragHint,
298
+ resizeHint: this.resizeHint,
299
+ format: this.format // refTo={this}
300
+ ,
301
+ itemRef: this.item,
302
+ selected: selected,
303
+ tabIndex: this.tabIndex // Keyboard
304
+
305
+ },
306
+ item: this.item,
307
+ uid: this.uid,
308
+ start: this.start,
309
+ end: this.end,
310
+ originalStart: this.originalStart,
311
+ startTimezone: this.startTimezone,
312
+ endTimezone: this.endTimezone,
313
+ isAllDay: this.isAllDay,
314
+ title: this.title,
315
+ description: this.description,
316
+ occurrenceId: this.occurrenceId,
317
+ recurrenceExceptions: this.recurrenceExceptions,
318
+ recurrenceRule: this.recurrenceRule,
319
+ recurrenceId: this.recurrenceId,
320
+ dataItem: this.dataItem,
321
+ head: this.head,
322
+ tail: this.tail,
323
+ order: this.order,
324
+ zonedStart: this.zonedStart,
325
+ zonedEnd: this.zonedEnd,
326
+ slots: this.slots,
327
+ group: this.group,
328
+ range: this.range,
329
+ isException: this.isException,
330
+ isRecurring: this.isRecurring,
331
+ id: this.id,
332
+ className: this.className,
333
+ itemStyle: this.itemStyle,
334
+ editable: this.editable,
335
+ vertical: this.vertical,
336
+ dragHint: this.dragHint,
337
+ resizeHint: this.resizeHint,
338
+ format: this.format,
339
+ itemRef: this.item,
340
+ selected: selected,
341
+ tabIndex: this.tabIndex,
342
+ onKeydown: this.handleKeyDown,
343
+ on: this.v3 ? undefined : {
344
+ "keydown": this.handleKeyDown,
345
+ "keyup": this.handleKeyUp,
346
+ "focus": this.handleFocus,
347
+ "mouseup": this.handleMouseUp,
348
+ "mousedown": this.handleMouseDown,
349
+ "click": this.handleClick,
350
+ "doubleclick": this.handleDoubleClick,
351
+ "removeclick": this.handleRemoveClick,
352
+ "press": this.handlePress,
353
+ "drag": this.handleDrag,
354
+ "release": this.handleRelease,
355
+ "resizepress": this.handleResizePress,
356
+ "resizeenddrag": this.handleResizeEndDrag,
357
+ "resizestartdrag": this.handleResizeStartDrag,
358
+ "resizeselease": this.handleResizeRelease
359
+ },
360
+ onKeyup: this.handleKeyUp // Focus
361
+ ,
362
+ onFocus: this.handleFocus // Mouse
363
+ ,
364
+ onMouseup: this.handleMouseUp,
365
+ onMousedown: this.handleMouseDown,
366
+ onClick: this.handleClick,
367
+ onDoubleclick: this.handleDoubleClick,
368
+ onRemoveclick: this.handleRemoveClick // Drag
369
+ ,
370
+ onPress: this.handlePress,
371
+ onDrag: this.handleDrag,
372
+ onRelease: this.handleRelease // Resize
373
+ ,
374
+ onResizepress: this.handleResizePress,
375
+ onResizeenddrag: this.handleResizeEndDrag,
376
+ onResizestartdrag: this.handleResizeStartDrag,
377
+ onResizeselease: this.handleResizeRelease
378
+ }) // {((dragItem && editable.drag)) && (Array.isArray(dragItem)
379
+ // ? (dragItem as any).map((di, idx) => (
380
+ // <Drag
381
+ // key={idx}
382
+ // ignoreIsAllDay={ignoreIsAllDay}
383
+ // dataItem={di}
384
+ // vertical={this.$props.vertical}
385
+ // viewItem={ViewItem}
386
+ // item={this.$props.item}
387
+ // />
388
+ // ))
389
+ // : (<Drag
390
+ // ignoreIsAllDay={ignoreIsAllDay}
391
+ // dataItem={dragItem}
392
+ // vertical={this.$props.vertical}
393
+ // viewItem={ViewItem}
394
+ // item={this.$props.item}
395
+ // />))}
396
+ // {((resizeItem && editable.resize)) && (Array.isArray(resizeItem)
397
+ // ? (resizeItem as any).map((ri, idx) => (
398
+ // <Resize
399
+ // key={idx}
400
+ // format={this.$props.format}
401
+ // ignoreIsAllDay={ignoreIsAllDay}
402
+ // dataItem={ri}
403
+ // viewItem={this.$props.viewItem}
404
+ // item={this.$props.item}
405
+ // vertical={this.$props.vertical}
406
+ // />
407
+ // ))
408
+ // : (
409
+ // <Resize
410
+ // format={this.$props.format}
411
+ // ignoreIsAllDay={ignoreIsAllDay}
412
+ // dataItem={resizeItem}
413
+ // viewItem={this.$props.viewItem}
414
+ // item={this.$props.item}
415
+ // vertical={this.$props.vertical}
416
+ // />
417
+ // ))}
418
+ // {(formItem && !showOccurrenceDialog && editable.edit) && (<Form
419
+ // dataItem={formItem}
420
+ // onSubmit={this.handleFormSubmit}
421
+ // onClose={this.handleCancel}
422
+ // onCancel={this.handleCancel}
423
+ // />)}
424
+ // {(showOccurrenceDialog) && (<OccurrenceDialog
425
+ // dataItem={formItem || dragItem || resizeItem || removeItem}
426
+ // isRemove={removeItem !== null}
427
+ // onClose={this.handleCancel}
428
+ // onOccurrenceClick={this.handleOccurrenceClick}
429
+ // onSeriesClick={this.handleSeriesClick}
430
+ // />)}
431
+ // {(showRemoveDialog && removeItem && editable.remove) && (<RemoveDialog
432
+ // dataItem={removeItem}
433
+ // onClose={this.handleCancel}
434
+ // onCancel={this.handleCancel}
435
+ // onConfirm={this.handleRemoveConfirm}
436
+ // />)}
437
+ // </SchedulerEditItemContext>
438
+
439
+ );
440
+ },
441
+ methods: {
442
+ handleFocus: function handleFocus(event) {
443
+ var _this = this;
444
+
445
+ if (this.onFocusAction) {
446
+ var actions = this.onFocusAction(event, this.$props, this.currentState);
447
+
448
+ if (actions) {
449
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
450
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
451
+ item: _this.item
452
+ }), event);
453
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
454
+ item: this.item
455
+ }));
456
+ }
457
+ }
458
+
459
+ this.$emit('focus', event);
460
+ },
461
+ handleMouseDown: function handleMouseDown(event) {
462
+ var _this = this;
463
+
464
+ if (this.onMouseDownAction) {
465
+ var actions = this.onMouseDownAction(event, this.$props, this.currentState);
466
+
467
+ if (actions) {
468
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
469
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
470
+ item: _this.item
471
+ }), event);
472
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
473
+ item: this.item
474
+ }));
475
+ }
476
+ }
477
+
478
+ this.$emit('mousedown', event);
479
+ },
480
+ handleMouseUp: function handleMouseUp(event) {
481
+ var _this = this;
482
+
483
+ if (this.onMouseUpAction) {
484
+ var actions = this.onMouseUpAction(event, this.$props, this.currentState);
485
+
486
+ if (actions) {
487
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
488
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
489
+ item: _this.item
490
+ }), event);
491
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
492
+ item: this.item
493
+ }));
494
+ }
495
+ }
496
+
497
+ this.$emit('mouseup', event);
498
+ },
499
+ handleClick: function handleClick(event) {
500
+ var _this = this;
501
+
502
+ if (this.onClickAction) {
503
+ var actions = this.onClickAction(event, this.props, this.currentState);
504
+
505
+ if (actions) {
506
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
507
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
508
+ item: _this.item
509
+ }), event);
510
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
511
+ item: this.item
512
+ }));
513
+ }
514
+ }
515
+
516
+ this.$emit('click', event);
517
+ },
518
+ handleDoubleClick: function handleDoubleClick(event) {
519
+ var _this = this;
520
+
521
+ if (this.onDoubleClickAction) {
522
+ var actions = this.onDoubleClickAction(event, this.props, this.currentState);
523
+
524
+ if (actions) {
525
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
526
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
527
+ item: _this.item
528
+ }), event);
529
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
530
+ item: this.item
531
+ }));
532
+ }
533
+ }
534
+
535
+ this.$emit('doubleclick', event);
536
+ },
537
+ handleRemoveClick: function handleRemoveClick(event) {
538
+ var _this = this;
539
+
540
+ if (this.onRemoveClickAction) {
541
+ var actions = this.onRemoveClickAction(event, this.props, this.currentState);
542
+
543
+ if (actions) {
544
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
545
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
546
+ item: _this.item
547
+ }), event);
548
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
549
+ item: this.item
550
+ }));
551
+ }
552
+ }
553
+
554
+ this.$emit('removeclick', event);
555
+ },
556
+ handlePress: function handlePress(event) {
557
+ var _this = this;
558
+
559
+ if (this.onPressAction) {
560
+ var actions = this.onPressAction(event, this.props, this.currentState);
561
+
562
+ if (actions) {
563
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
564
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
565
+ item: _this.item
566
+ }), event);
567
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
568
+ item: this.item
569
+ }), event);
570
+ }
571
+ }
572
+
573
+ this.$emit('press', event);
574
+ },
575
+ handleDrag: function handleDrag(event) {
576
+ var _this = this;
577
+
578
+ if (this.onDragAction) {
579
+ var actions = this.onDragAction(event, this.props, this.currentState);
580
+
581
+ if (actions) {
582
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
583
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
584
+ item: _this.item
585
+ }), event.dragEvent.originalEvent);
586
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
587
+ item: this.item
588
+ }), event.dragEvent.originalEvent);
589
+ }
590
+ }
591
+
592
+ this.$emit('drag', event);
593
+ },
594
+ handleRelease: function handleRelease(event) {
595
+ var _this = this;
596
+
597
+ if (this.onReleaseAction) {
598
+ var actions = this.onReleaseAction(event, this.$props, this.currentState);
599
+
600
+ if (actions) {
601
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
602
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
603
+ item: _this.item
604
+ }), event.dragEvent.originalEvent);
605
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
606
+ item: this.item
607
+ }), event.dragEvent.originalEvent);
608
+ }
609
+ }
610
+
611
+ this.$emit('release', event);
612
+ },
613
+ handleResizePress: function handleResizePress(event) {
614
+ var _this = this;
615
+
616
+ if (this.onResizePressAction) {
617
+ var actions = this.onResizePressAction(event, this.$props, this.currentState);
618
+
619
+ if (actions) {
620
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
621
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
622
+ item: _this.item
623
+ }), event.dragEvent.originalEvent);
624
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
625
+ item: this.item
626
+ }), event.dragEvent.originalEvent);
627
+ }
628
+ }
629
+
630
+ this.$emit('resizepress', event);
631
+ },
632
+ handleResizeStartDrag: function handleResizeStartDrag(event) {
633
+ var _this = this;
634
+
635
+ if (this.onResizeStartDragAction) {
636
+ var actions = this.onResizeStartDragAction(event, this.$props, this.currentState);
637
+
638
+ if (actions) {
639
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
640
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
641
+ item: _this.item
642
+ }), event.dragEvent.originalEvent);
643
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
644
+ item: this.item
645
+ }), event.dragEvent.originalEvent);
646
+ }
647
+ }
648
+
649
+ this.$emit('resizestartdrag', event);
650
+ },
651
+ handleResizeEndDrag: function handleResizeEndDrag(event) {
652
+ var _this = this;
653
+
654
+ if (this.onResizeEndDragAction) {
655
+ var actions = this.onResizeEndDragAction(event, this.$props, this.currentState);
656
+
657
+ if (actions) {
658
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
659
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
660
+ item: _this.item
661
+ }), event.dragEvent.originalEvent);
662
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
663
+ item: this.item
664
+ }), event.dragEvent.originalEvent);
665
+ }
666
+ }
667
+
668
+ this.$emit('resizeenddrag', event);
669
+ },
670
+ handleResizeRelease: function handleResizeRelease(event) {
671
+ var _this = this;
672
+
673
+ if (this.onResizeReleaseAction) {
674
+ var actions = this.onResizeReleaseAction(event, this.$props, this.currentState);
675
+
676
+ if (actions) {
677
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
678
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
679
+ item: _this.item
680
+ }), event.dragEvent.originalEvent);
681
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
682
+ item: this.item
683
+ }), event.dragEvent.originalEvent);
684
+ }
685
+ }
686
+
687
+ this.$emit('resizerelease', event);
688
+ },
689
+ handleFormSubmit: function handleFormSubmit(event) {
690
+ var _this = this;
691
+
692
+ if (this.onFormSubmitAction) {
693
+ var actions = this.onFormSubmitAction(event, this.$props, this.currentState);
694
+
695
+ if (actions) {
696
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
697
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
698
+ item: _this.item
699
+ }), event);
700
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
701
+ item: this.item
702
+ }), event);
703
+ }
704
+ }
705
+
706
+ this.$emit('formsubmit', event);
707
+ },
708
+ handleCancel: function handleCancel(event) {
709
+ var _this = this;
710
+
711
+ if (this.onCancelAction) {
712
+ var actions = this.onCancelAction(event, this.$props, this.currentState);
713
+
714
+ if (actions) {
715
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
716
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
717
+ item: _this.item
718
+ }), event);
719
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
720
+ item: this.item
721
+ }), event);
722
+ }
723
+ }
724
+
725
+ this.$emit('cancel', event);
726
+ },
727
+ handleOccurrenceClick: function handleOccurrenceClick(event) {
728
+ var _this = this;
729
+
730
+ if (this.onOccurrenceClickAction) {
731
+ var actions = this.onOccurrenceClickAction(event, this.$props, this.currentState);
732
+
733
+ if (actions) {
734
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
735
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
736
+ item: _this.item
737
+ }), event);
738
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
739
+ item: this.item
740
+ }), event);
741
+ }
742
+ }
743
+
744
+ this.$emit('occurrenceclick', event);
745
+ },
746
+ handleSeriesClick: function handleSeriesClick(event) {
747
+ var _this = this;
748
+
749
+ if (this.onSeriesClickAction) {
750
+ var actions = this.onSeriesClickAction(event, this.$props, this.currentState);
751
+
752
+ if (actions) {
753
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
754
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
755
+ item: _this.item
756
+ }), event);
757
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
758
+ item: this.item
759
+ }), event);
760
+ }
761
+ }
762
+
763
+ this.$emit('seriesclick', event);
764
+ },
765
+ handleKeyDown: function handleKeyDown(event) {
766
+ var _this = this;
767
+
768
+ if (this.onKeyDownAction) {
769
+ var actions = this.onKeyDownAction(event, this.$props, this.currentState);
770
+
771
+ if (actions) {
772
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
773
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
774
+ item: _this.item
775
+ }), event.event);
776
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
777
+ item: this.item
778
+ }), event.event);
779
+ }
780
+ }
781
+
782
+ this.$emit('keydown', event);
783
+ },
784
+ handleKeyUp: function handleKeyUp(event) {
785
+ var _this = this;
786
+
787
+ if (this.onKeyUpAction) {
788
+ var actions = this.onKeyUpAction(event, this.$props, this.currentState);
789
+
790
+ if (actions) {
791
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
792
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
793
+ item: _this.item
794
+ }), event.event);
795
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
796
+ item: this.item
797
+ }), event.event);
798
+ }
799
+ }
800
+
801
+ this.$emit('keyup', event);
802
+ },
803
+ handleRemoveConfirm: function handleRemoveConfirm(event) {
804
+ var _this = this;
805
+
806
+ if (this.onRemoveConfirmAction) {
807
+ var actions = this.onRemoveConfirmAction(event, this.$props, this.currentState);
808
+
809
+ if (actions) {
810
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
811
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
812
+ item: _this.item
813
+ }), event.event);
814
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
815
+ item: this.item
816
+ }), event.event);
817
+ }
818
+ }
819
+
820
+ this.$emit('removeconfirm', event);
821
+ },
822
+ onClickAction: function onClickAction(event, _, state) {
823
+ return [{
824
+ type: event.event.metaKey || event.event.ctrlKey ? state.selected && !state.dragItem && !state.resizeItem ? use_items_selection_1.ITEMS_SELECT_ACTION.remove : use_items_selection_1.ITEMS_SELECT_ACTION.add : use_items_selection_1.ITEMS_SELECT_ACTION.select
825
+ }];
826
+ },
827
+ onDoubleClickAction: function onDoubleClickAction(_, props) {
828
+ return props.editable ? [{
829
+ type: use_form_item_1.FORM_ITEM_ACTION.set,
830
+ payload: props.dataItem
831
+ }, props.isRecurring && {
832
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open
833
+ }].filter(Boolean) : [];
834
+ },
835
+ onRemoveClickAction: function onRemoveClickAction(_, props) {
836
+ return props.editable ? [{
837
+ type: use_remove_item_1.REMOVE_ITEM_ACTION.set,
838
+ payload: props.dataItem
839
+ }, props.isRecurring ? {
840
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open
841
+ } : {
842
+ type: use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.open
843
+ }] : [];
844
+ },
845
+ onPressAction: function onPressAction(event, props) {
846
+ return props.editable ? {
847
+ type: use_drag_item_1.DRAG_ITEM_ACTION.start,
848
+ payload: {
849
+ x: event.dragEvent.clientX,
850
+ y: event.dragEvent.clientY
851
+ }
852
+ } : [];
853
+ },
854
+ onDragAction: function onDragAction(event, props) {
855
+ return props.editable ? {
856
+ type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? use_drag_item_1.DRAG_ITEM_ACTION.dragSelected : use_drag_item_1.DRAG_ITEM_ACTION.drag,
857
+ payload: {
858
+ x: event.dragEvent.clientX,
859
+ y: event.dragEvent.clientY
860
+ }
861
+ } : [];
862
+ },
863
+ onReleaseAction: function onReleaseAction(event, props, state) {
864
+ return props.editable && state.dragItem ? props.isRecurring && !props.isException && state.series === null ? {
865
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open
866
+ } : {
867
+ type: props.isRecurring ? state.series ? use_drag_item_1.DRAG_ITEM_ACTION.completeSeries : use_drag_item_1.DRAG_ITEM_ACTION.completeOccurrence : use_drag_item_1.DRAG_ITEM_ACTION.complete,
868
+ payload: {
869
+ x: event.dragEvent.clientX,
870
+ y: event.dragEvent.clientY
871
+ }
872
+ } : [];
873
+ },
874
+ onResizePressAction: function onResizePressAction(event, props) {
875
+ return props.editable ? {
876
+ type: use_resize_item_1.RESIZE_ITEM_ACTION.start,
877
+ payload: {
878
+ x: event.dragEvent.clientX,
879
+ y: event.dragEvent.clientY
880
+ }
881
+ } : [];
882
+ },
883
+ onResizeStartDragAction: function onResizeStartDragAction(event, props) {
884
+ return props.editable ? {
885
+ type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? use_resize_item_1.RESIZE_ITEM_ACTION.startDragSelected : use_resize_item_1.RESIZE_ITEM_ACTION.startDrag,
886
+ payload: {
887
+ x: event.dragEvent.clientX,
888
+ y: event.dragEvent.clientY
889
+ }
890
+ } : [];
891
+ },
892
+ onResizeEndDragAction: function onResizeEndDragAction(event, props) {
893
+ return props.editable ? {
894
+ type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? use_resize_item_1.RESIZE_ITEM_ACTION.endDragSelected : use_resize_item_1.RESIZE_ITEM_ACTION.endDrag,
895
+ payload: {
896
+ x: event.dragEvent.clientX,
897
+ y: event.dragEvent.clientY
898
+ }
899
+ } : [];
900
+ },
901
+ onResizeReleaseAction: function onResizeReleaseAction(event, props, state) {
902
+ return props.editable && state.resizeItem ? props.isRecurring && !props.isException && state.series === null ? {
903
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open
904
+ } : {
905
+ type: props.isRecurring ? state.series ? use_resize_item_1.RESIZE_ITEM_ACTION.completeSeries : use_resize_item_1.RESIZE_ITEM_ACTION.completeOccurrence : use_resize_item_1.RESIZE_ITEM_ACTION.complete,
906
+ payload: {
907
+ x: event.dragEvent.clientX,
908
+ y: event.dragEvent.clientY
909
+ }
910
+ } : [];
911
+ },
912
+ onOccurrenceClickAction: function onOccurrenceClickAction(_event, props, state) {
913
+ if (state.dragItem) {
914
+ return [{
915
+ type: use_drag_item_1.DRAG_ITEM_ACTION.completeOccurrence
916
+ }, {
917
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
918
+ }];
919
+ }
920
+
921
+ if (state.resizeItem) {
922
+ return [{
923
+ type: use_resize_item_1.RESIZE_ITEM_ACTION.completeOccurrence
924
+ }, {
925
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
926
+ }];
927
+ }
928
+
929
+ if (state.formItem) {
930
+ return [{
931
+ type: use_series_1.SERIES_ACTION.set,
932
+ payload: false
933
+ }, {
934
+ type: use_form_item_1.FORM_ITEM_ACTION.set,
935
+ payload: props.dataItem
936
+ }, {
937
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
938
+ }];
939
+ }
940
+
941
+ if (state.removeItem) {
942
+ return [{
943
+ type: use_series_1.SERIES_ACTION.set,
944
+ payload: false
945
+ }, {
946
+ type: use_remove_item_1.REMOVE_ITEM_ACTION.set,
947
+ payload: props.dataItem
948
+ }, {
949
+ type: use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.open
950
+ }, {
951
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
952
+ }];
953
+ }
954
+ },
955
+ onSeriesClickAction: function onSeriesClickAction(_event, props, state) {
956
+ if (state.dragItem) {
957
+ return [{
958
+ type: use_drag_item_1.DRAG_ITEM_ACTION.completeSeries
959
+ }, {
960
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
961
+ }];
962
+ }
963
+
964
+ if (state.resizeItem) {
965
+ return [{
966
+ type: use_resize_item_1.RESIZE_ITEM_ACTION.completeSeries
967
+ }, {
968
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
969
+ }];
970
+ }
971
+
972
+ if (state.formItem) {
973
+ return [{
974
+ type: use_series_1.SERIES_ACTION.set,
975
+ payload: true
976
+ }, {
977
+ type: use_form_item_1.FORM_ITEM_ACTION.setMaster,
978
+ payload: props.dataItem
979
+ }, {
980
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
981
+ }];
982
+ }
983
+
984
+ if (state.removeItem) {
985
+ return [{
986
+ type: use_series_1.SERIES_ACTION.set,
987
+ payload: true
988
+ }, {
989
+ type: use_remove_item_1.REMOVE_ITEM_ACTION.set,
990
+ payload: props.dataItem
991
+ }, {
992
+ type: use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.open
993
+ }, {
994
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
995
+ }];
996
+ }
997
+ },
998
+ onKeyDownAction: function onKeyDownAction(event, props) {
999
+ switch (event.event.keyCode) {
1000
+ case kendo_vue_common_1.Keys.enter:
1001
+ return [{
1002
+ type: use_form_item_1.FORM_ITEM_ACTION.set,
1003
+ payload: props.dataItem
1004
+ }, props.isRecurring && {
1005
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.open
1006
+ }];
1007
+
1008
+ case kendo_vue_common_1.Keys.tab:
1009
+ return [{
1010
+ type: event.event.shiftKey ? hooks_1.ITEMS_FOCUS_ACTION.prev : hooks_1.ITEMS_FOCUS_ACTION.next,
1011
+ ignoreIsAllDay: props.ignoreIsAllDay
1012
+ }, {
1013
+ type: event.event.shiftKey ? use_items_selection_1.ITEMS_SELECT_ACTION.selectPrev : use_items_selection_1.ITEMS_SELECT_ACTION.selectNext,
1014
+ ignoreIsAllDay: props.ignoreIsAllDay
1015
+ }];
1016
+
1017
+ case kendo_vue_common_1.Keys.up:
1018
+ return [Boolean(props.slots.length && props.slots[0].refTo.current) && {
1019
+ type: hooks_1.SLOTS_FOCUS_ACTION.up,
1020
+ slot: props.slots[0].refTo
1021
+ }];
1022
+
1023
+ case kendo_vue_common_1.Keys.right:
1024
+ return [Boolean(props.slots.length && props.slots[0].refTo.current) && {
1025
+ type: hooks_1.SLOTS_FOCUS_ACTION.right,
1026
+ slot: props.slots[0].refTo
1027
+ }];
1028
+
1029
+ case kendo_vue_common_1.Keys.down:
1030
+ return [Boolean(props.slots.length && props.slots[props.slots.length - 1].refTo.current) && {
1031
+ type: hooks_1.SLOTS_FOCUS_ACTION.down,
1032
+ slot: props.slots[props.slots.length - 1].refTo
1033
+ }];
1034
+
1035
+ case kendo_vue_common_1.Keys.left:
1036
+ return [Boolean(props.slots.length && props.slots[0].refTo.current) && {
1037
+ type: hooks_1.SLOTS_FOCUS_ACTION.left,
1038
+ slot: props.slots[0].refTo
1039
+ }];
1040
+
1041
+ default:
1042
+ return;
1043
+ }
1044
+ },
1045
+ onFormSubmitAction: function onFormSubmitAction(event) {
1046
+ return {
1047
+ type: use_form_item_1.FORM_ITEM_ACTION.complete,
1048
+ payload: event.value
1049
+ };
1050
+ },
1051
+ onRemoveConfirmAction: function onRemoveConfirmAction() {
1052
+ return [{
1053
+ type: use_remove_item_1.REMOVE_ITEM_ACTION.complete
1054
+ }, {
1055
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.close
1056
+ }];
1057
+ },
1058
+ onCancelAction: function onCancelAction() {
1059
+ return [{
1060
+ type: use_series_1.SERIES_ACTION.reset
1061
+ }, {
1062
+ type: use_remove_item_1.REMOVE_ITEM_ACTION.reset
1063
+ }, {
1064
+ type: use_form_item_1.FORM_ITEM_ACTION.reset
1065
+ }, {
1066
+ type: use_drag_item_1.DRAG_ITEM_ACTION.reset
1067
+ }, {
1068
+ type: use_resize_item_1.RESIZE_ITEM_ACTION.reset
1069
+ }, {
1070
+ type: use_show_remove_item_dialog_1.SHOW_REMOVE_DIALOG_ACTION.reset
1071
+ }, {
1072
+ type: use_show_occurrence_dialog_1.SHOW_OCCURRENCE_DIALOG_ACTION.reset
1073
+ }];
1074
+ }
1075
+ }
1076
+ };
1077
+ exports.SchedulerEditItemVue2 = SchedulerEditItemVue2;
1078
+ var SchedulerEditItem = SchedulerEditItemVue2;
1079
+ exports.SchedulerEditItem = SchedulerEditItem;