@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,1059 @@
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
18
+ import * as Vue from 'vue';
19
+ var allVue = Vue;
20
+ var gh = allVue.h;
21
+ var inject = allVue.inject;
22
+ import { Keys } from '@progress/kendo-vue-common';
23
+ import { SchedulerViewItem } from './SchedulerViewItem';
24
+ import { ITEMS_FOCUS_ACTION, SLOTS_FOCUS_ACTION, useEditable } from '../hooks';
25
+ import { FORM_ITEM_ACTION, useFormItem } from './hooks/use-form-item';
26
+ import { SHOW_OCCURRENCE_DIALOG_ACTION, useShowOccurrenceDialog } from './hooks/use-show-occurrence-dialog';
27
+ import { REMOVE_ITEM_ACTION, useRemoveItem } from './hooks/use-remove-item';
28
+ import { SHOW_REMOVE_DIALOG_ACTION, useShowRemoveDialog } from './hooks/use-show-remove-item-dialog';
29
+ import { DRAG_ITEM_ACTION, useDragItem } from './hooks/use-drag-item';
30
+ import { RESIZE_ITEM_ACTION, useResizeItem } from './hooks/use-resize-item';
31
+ import { SERIES_ACTION, useSeries } from './hooks/use-series';
32
+ import { ITEMS_SELECT_ACTION } from '../hooks/use-items-selection'; // tslint:enable:max-line-length
33
+
34
+ var SchedulerEditItemVue2 = {
35
+ name: 'KendoSchedulerEditItem',
36
+ props: {
37
+ tabIndex: Number,
38
+ viewItem: [String, Function, Object],
39
+ drag: [String, Function, Object],
40
+ resize: [String, Function, Object],
41
+ form: [String, Function, Object],
42
+ removeDialog: [String, Function, Object],
43
+ occurrenceDialog: [String, Function, Object],
44
+ formItem: Object,
45
+ dragItem: Object,
46
+ resizeItem: Object,
47
+ removeItem: Object,
48
+ showOccurrenceDialog: Boolean,
49
+ showRemoveDialog: Boolean,
50
+ series: Boolean,
51
+ uid: [String, Number],
52
+ start: Date,
53
+ end: Date,
54
+ originalStart: Date,
55
+ startTimezone: String,
56
+ endTimezone: String,
57
+ isAllDay: Boolean,
58
+ title: String,
59
+ description: String,
60
+ occurrenceId: String,
61
+ recurrenceExceptions: Array,
62
+ recurrenceRule: String,
63
+ recurrenceId: [String, Number],
64
+ dataItem: Object,
65
+ head: Boolean,
66
+ tail: Boolean,
67
+ order: Number,
68
+ zonedStart: Object,
69
+ zonedEnd: Object,
70
+ slots: Array,
71
+ group: Object,
72
+ range: Object,
73
+ isException: Boolean,
74
+ isRecurring: Boolean,
75
+ id: String,
76
+ className: String,
77
+ itemStyle: Object,
78
+ editable: [Object, Boolean],
79
+ selected: Boolean,
80
+ vertical: Boolean,
81
+ dragHint: Boolean,
82
+ resizeHint: Boolean,
83
+ format: String,
84
+ ignoreIsAllDay: Boolean
85
+ },
86
+ inject: {
87
+ bv: {
88
+ default: null
89
+ }
90
+ },
91
+ provide: function provide() {
92
+ return {
93
+ ei: this.ei
94
+ };
95
+ },
96
+ data: function data() {
97
+ return {
98
+ ei: {
99
+ props: this.$props,
100
+ form: this.$props.formItem,
101
+ drag: this.drag,
102
+ resize: this.resize,
103
+ remove: this.remove,
104
+ showRemoveDialog: this.showRemoveDialog,
105
+ showOccurrenceDialog: this.showOccurrenceDialog
106
+ },
107
+ currentTabIndex: this.$props.tabIndex,
108
+ item: null
109
+ };
110
+ },
111
+ computed: {
112
+ currentState: function currentState() {
113
+ return {
114
+ selected: this.selected,
115
+ series: this.series,
116
+ formItem: this.formItem,
117
+ dragItem: this.dragItem,
118
+ resizeItem: this.resizeItem,
119
+ removeItem: this.removeItem,
120
+ showRemoveDialog: this.showRemoveDialog,
121
+ showOccurrenceDialog: this.showOccurrenceDialog
122
+ };
123
+ },
124
+ actionsReducerMap: function actionsReducerMap() {
125
+ var _a;
126
+
127
+ return _a = {}, _a[SERIES_ACTION.set] = this.dispatchSeries, _a[SERIES_ACTION.toggle] = this.dispatchSeries, _a[SERIES_ACTION.reset] = this.dispatchSeries, _a[ITEMS_SELECT_ACTION.select] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.add] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.remove] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.reset] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.selectNext] = this.dispatchItemSelection, _a[ITEMS_SELECT_ACTION.selectPrev] = this.dispatchItemSelection, _a[FORM_ITEM_ACTION.set] = this.dispatchFormItem, _a[FORM_ITEM_ACTION.setMaster] = this.dispatchFormItem, _a[FORM_ITEM_ACTION.reset] = this.dispatchFormItem, _a[FORM_ITEM_ACTION.complete] = this.dispatchFormItem, _a[REMOVE_ITEM_ACTION.set] = this.dispatchRemoveItem, _a[REMOVE_ITEM_ACTION.reset] = this.dispatchRemoveItem, _a[REMOVE_ITEM_ACTION.complete] = this.dispatchRemoveItem, _a[SHOW_OCCURRENCE_DIALOG_ACTION.close] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.open] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.set] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.toggle] = this.dispatchShowOccurrenceDialog, _a[SHOW_OCCURRENCE_DIALOG_ACTION.reset] = this.dispatchShowOccurrenceDialog, _a[SHOW_REMOVE_DIALOG_ACTION.close] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.open] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.set] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.toggle] = this.dispatchShowRemoveDialog, _a[SHOW_REMOVE_DIALOG_ACTION.reset] = this.dispatchShowRemoveDialog, _a[DRAG_ITEM_ACTION.start] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.drag] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.complete] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.completeOccurrence] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.completeSeries] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.set] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.reset] = this.dispatchDragItem, _a[DRAG_ITEM_ACTION.dragSelected] = this.dispatchDragItem, _a[RESIZE_ITEM_ACTION.start] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.startDrag] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.startDragSelected] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.endDrag] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.endDragSelected] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.complete] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.completeOccurrence] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.completeSeries] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.set] = this.dispatchResizeItem, _a[RESIZE_ITEM_ACTION.reset] = this.dispatchResizeItem, _a[ITEMS_FOCUS_ACTION.next] = this.dispatchViewItemsFocus, _a[ITEMS_FOCUS_ACTION.prev] = this.dispatchViewItemsFocus, _a[SLOTS_FOCUS_ACTION.left] = this.dispatchViewSlotsFocus, _a[SLOTS_FOCUS_ACTION.right] = this.dispatchViewSlotsFocus, _a[SLOTS_FOCUS_ACTION.up] = this.dispatchViewSlotsFocus, _a[SLOTS_FOCUS_ACTION.down] = this.dispatchViewSlotsFocus, _a.null = function () {}, _a;
128
+ }
129
+ },
130
+ updated: function updated() {
131
+ var isFirst = this.bv.items.length && this.bv.items[0] === this.item;
132
+ 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]);
133
+ },
134
+ // @ts-ignore
135
+ setup: !gh ? undefined : function () {
136
+ var v3 = !!gh;
137
+ return {
138
+ v3: v3
139
+ };
140
+ },
141
+ // @ts-ignore
142
+ render: function render(createElement) {
143
+ var _this = this;
144
+
145
+ var h = gh || createElement; // tslint:enable:max-line-length
146
+
147
+ var _a = this.$props,
148
+ onDataaction = _a.onDataaction,
149
+ ignoreIsAllDay = _a.ignoreIsAllDay,
150
+ propViewItem = _a.viewItem,
151
+ propSeries = _a.series,
152
+ onSeriesChange = _a.onSeriesChange,
153
+ propForm = _a.form,
154
+ propFormItem = _a.formItem,
155
+ onFormItemChange = _a.onFormItemChange,
156
+ propDrag = _a.drag,
157
+ propDragItem = _a.dragItem,
158
+ onDragItemChange = _a.onDragItemChange,
159
+ propResize = _a.resize,
160
+ propResizeItem = _a.resizeItem,
161
+ onResizeItemChange = _a.onResizeItemChange,
162
+ propRemoveDialog = _a.removeDialog,
163
+ propRemoveItem = _a.removeItem,
164
+ onRemoveItemChange = _a.onRemoveItemChange,
165
+ propOccurrenceDialog = _a.occurrenceDialog,
166
+ propShowOccurrenceDialog = _a.showOccurrenceDialog,
167
+ onShowOccurrenceDialogChange = _a.onShowOccurrenceDialogChange,
168
+ propShowRemoveDialog = _a.showRemoveDialog,
169
+ onShowRemoveDialogChange = _a.onShowRemoveDialogChange; // const editItem = React.useRef<SchedulerEditItemHandle>(null);
170
+ // const item = React.useRef<SchedulerItemHandle>(null);
171
+
172
+ var ViewItem = propViewItem;
173
+ var Drag = propDrag;
174
+ var Resize = propResize;
175
+ var Form = propForm;
176
+ var OccurrenceDialog = propOccurrenceDialog;
177
+ var RemoveDialog = propRemoveDialog;
178
+ var editable = useEditable(this.$props.editable); // const [selectedItems, dispatchItemSelection] = useSchedulerViewSelectedItemsContext();
179
+
180
+ var _b = useSeries(null, propSeries, onSeriesChange),
181
+ series = _b[0],
182
+ dispatchSeries = _b[1];
183
+
184
+ var _c = useFormItem({
185
+ series: series,
186
+ onDataaction: onDataaction
187
+ }, [null, propFormItem, onFormItemChange]),
188
+ formItem = _c[0],
189
+ setFormItem = _c[1],
190
+ dispatchFormItem = _c[2];
191
+
192
+ var _d = useDragItem({
193
+ dataItem: this.$props.dataItem,
194
+ ignoreIsAllDay: this.$props.ignoreIsAllDay,
195
+ isAllDay: this.$props.isAllDay,
196
+ onDataaction: onDataaction
197
+ }, [null, propDragItem, onDragItemChange]),
198
+ dragItem = _d[0],
199
+ setDragItem = _d[1],
200
+ dispatchDragItem = _d[2];
201
+
202
+ var _e = useResizeItem({
203
+ dataItem: this.$props.dataItem,
204
+ onDataaction: onDataaction
205
+ }, [null, propResizeItem, onResizeItemChange]),
206
+ resizeItem = _e[0],
207
+ setResizeItem = _e[1],
208
+ dispatchResizeItem = _e[2];
209
+
210
+ var _f = useRemoveItem({
211
+ series: series,
212
+ onDataaction: onDataaction
213
+ }, [null, propRemoveItem, onRemoveItemChange]),
214
+ removeItem = _f[0],
215
+ setRemoveItem = _f[1],
216
+ dispatchRemoveItem = _f[2];
217
+
218
+ var _g = useShowRemoveDialog(false, propShowRemoveDialog, onShowRemoveDialogChange),
219
+ showRemoveDialog = _g[0],
220
+ setShowRemoveDialog = _g[1],
221
+ dispatchShowRemoveDialog = _g[2];
222
+
223
+ var _h = useShowOccurrenceDialog(false, propShowOccurrenceDialog, onShowOccurrenceDialogChange),
224
+ showOccurrenceDialog = _h[0],
225
+ setShowOccurrenceDialog = _h[1],
226
+ dispatchShowOccurrenceDialog = _h[2];
227
+
228
+ var items = this.bv.items; // useSchedulerViewItemsContext();
229
+ // const [,dispatchViewItemsFocus] = useSchedulerViewFocusedItemsContext();
230
+ // const [,dispatchViewSlotsFocus] = useSchedulerViewFocusedSlotsContext();
231
+
232
+ var selected = Boolean(this.bv.selectedItems && this.bv.selectedItems.some(function (si) {
233
+ return si === _this.item;
234
+ }));
235
+ return (// <SchedulerEditItemContext
236
+ // props={this.$props}
237
+ // form={[formItem, setFormItem, dispatchFormItem]}
238
+ // drag={[dragItem, setDragItem, dispatchDragItem]}
239
+ // resize={[resizeItem, setResizeItem, dispatchResizeItem]}
240
+ // remove={[removeItem, setRemoveItem, dispatchRemoveItem ]}
241
+ // showRemoveDialog={[showRemoveDialog, setShowRemoveDialog, dispatchShowRemoveDialog]}
242
+ // showOccurrenceDialog={[showOccurrenceDialog, setShowOccurrenceDialog, dispatchShowOccurrenceDialog]}
243
+ // >
244
+ h(SchedulerViewItem, {
245
+ ignoreIsAllDay: this.ignoreIsAllDay,
246
+ attrs: this.v3 ? undefined : {
247
+ ignoreIsAllDay: this.ignoreIsAllDay,
248
+ item: this.item,
249
+ uid: this.uid,
250
+ start: this.start,
251
+ end: this.end,
252
+ originalStart: this.originalStart,
253
+ startTimezone: this.startTimezone,
254
+ endTimezone: this.endTimezone,
255
+ isAllDay: this.isAllDay,
256
+ title: this.title,
257
+ description: this.description,
258
+ occurrenceId: this.occurrenceId,
259
+ recurrenceExceptions: this.recurrenceExceptions,
260
+ recurrenceRule: this.recurrenceRule,
261
+ recurrenceId: this.recurrenceId,
262
+ dataItem: this.dataItem,
263
+ head: this.head,
264
+ tail: this.tail,
265
+ order: this.order,
266
+ zonedStart: this.zonedStart,
267
+ zonedEnd: this.zonedEnd,
268
+ slots: this.slots,
269
+ group: this.group,
270
+ range: this.range,
271
+ isException: this.isException,
272
+ isRecurring: this.isRecurring,
273
+ id: this.id,
274
+ className: this.className,
275
+ itemStyle: this.itemStyle,
276
+ editable: this.editable,
277
+ vertical: this.vertical,
278
+ dragHint: this.dragHint,
279
+ resizeHint: this.resizeHint,
280
+ format: this.format // refTo={this}
281
+ ,
282
+ itemRef: this.item,
283
+ selected: selected,
284
+ tabIndex: this.tabIndex // Keyboard
285
+
286
+ },
287
+ item: this.item,
288
+ uid: this.uid,
289
+ start: this.start,
290
+ end: this.end,
291
+ originalStart: this.originalStart,
292
+ startTimezone: this.startTimezone,
293
+ endTimezone: this.endTimezone,
294
+ isAllDay: this.isAllDay,
295
+ title: this.title,
296
+ description: this.description,
297
+ occurrenceId: this.occurrenceId,
298
+ recurrenceExceptions: this.recurrenceExceptions,
299
+ recurrenceRule: this.recurrenceRule,
300
+ recurrenceId: this.recurrenceId,
301
+ dataItem: this.dataItem,
302
+ head: this.head,
303
+ tail: this.tail,
304
+ order: this.order,
305
+ zonedStart: this.zonedStart,
306
+ zonedEnd: this.zonedEnd,
307
+ slots: this.slots,
308
+ group: this.group,
309
+ range: this.range,
310
+ isException: this.isException,
311
+ isRecurring: this.isRecurring,
312
+ id: this.id,
313
+ className: this.className,
314
+ itemStyle: this.itemStyle,
315
+ editable: this.editable,
316
+ vertical: this.vertical,
317
+ dragHint: this.dragHint,
318
+ resizeHint: this.resizeHint,
319
+ format: this.format,
320
+ itemRef: this.item,
321
+ selected: selected,
322
+ tabIndex: this.tabIndex,
323
+ onKeydown: this.handleKeyDown,
324
+ on: this.v3 ? undefined : {
325
+ "keydown": this.handleKeyDown,
326
+ "keyup": this.handleKeyUp,
327
+ "focus": this.handleFocus,
328
+ "mouseup": this.handleMouseUp,
329
+ "mousedown": this.handleMouseDown,
330
+ "click": this.handleClick,
331
+ "doubleclick": this.handleDoubleClick,
332
+ "removeclick": this.handleRemoveClick,
333
+ "press": this.handlePress,
334
+ "drag": this.handleDrag,
335
+ "release": this.handleRelease,
336
+ "resizepress": this.handleResizePress,
337
+ "resizeenddrag": this.handleResizeEndDrag,
338
+ "resizestartdrag": this.handleResizeStartDrag,
339
+ "resizeselease": this.handleResizeRelease
340
+ },
341
+ onKeyup: this.handleKeyUp // Focus
342
+ ,
343
+ onFocus: this.handleFocus // Mouse
344
+ ,
345
+ onMouseup: this.handleMouseUp,
346
+ onMousedown: this.handleMouseDown,
347
+ onClick: this.handleClick,
348
+ onDoubleclick: this.handleDoubleClick,
349
+ onRemoveclick: this.handleRemoveClick // Drag
350
+ ,
351
+ onPress: this.handlePress,
352
+ onDrag: this.handleDrag,
353
+ onRelease: this.handleRelease // Resize
354
+ ,
355
+ onResizepress: this.handleResizePress,
356
+ onResizeenddrag: this.handleResizeEndDrag,
357
+ onResizestartdrag: this.handleResizeStartDrag,
358
+ onResizeselease: this.handleResizeRelease
359
+ }) // {((dragItem && editable.drag)) && (Array.isArray(dragItem)
360
+ // ? (dragItem as any).map((di, idx) => (
361
+ // <Drag
362
+ // key={idx}
363
+ // ignoreIsAllDay={ignoreIsAllDay}
364
+ // dataItem={di}
365
+ // vertical={this.$props.vertical}
366
+ // viewItem={ViewItem}
367
+ // item={this.$props.item}
368
+ // />
369
+ // ))
370
+ // : (<Drag
371
+ // ignoreIsAllDay={ignoreIsAllDay}
372
+ // dataItem={dragItem}
373
+ // vertical={this.$props.vertical}
374
+ // viewItem={ViewItem}
375
+ // item={this.$props.item}
376
+ // />))}
377
+ // {((resizeItem && editable.resize)) && (Array.isArray(resizeItem)
378
+ // ? (resizeItem as any).map((ri, idx) => (
379
+ // <Resize
380
+ // key={idx}
381
+ // format={this.$props.format}
382
+ // ignoreIsAllDay={ignoreIsAllDay}
383
+ // dataItem={ri}
384
+ // viewItem={this.$props.viewItem}
385
+ // item={this.$props.item}
386
+ // vertical={this.$props.vertical}
387
+ // />
388
+ // ))
389
+ // : (
390
+ // <Resize
391
+ // format={this.$props.format}
392
+ // ignoreIsAllDay={ignoreIsAllDay}
393
+ // dataItem={resizeItem}
394
+ // viewItem={this.$props.viewItem}
395
+ // item={this.$props.item}
396
+ // vertical={this.$props.vertical}
397
+ // />
398
+ // ))}
399
+ // {(formItem && !showOccurrenceDialog && editable.edit) && (<Form
400
+ // dataItem={formItem}
401
+ // onSubmit={this.handleFormSubmit}
402
+ // onClose={this.handleCancel}
403
+ // onCancel={this.handleCancel}
404
+ // />)}
405
+ // {(showOccurrenceDialog) && (<OccurrenceDialog
406
+ // dataItem={formItem || dragItem || resizeItem || removeItem}
407
+ // isRemove={removeItem !== null}
408
+ // onClose={this.handleCancel}
409
+ // onOccurrenceClick={this.handleOccurrenceClick}
410
+ // onSeriesClick={this.handleSeriesClick}
411
+ // />)}
412
+ // {(showRemoveDialog && removeItem && editable.remove) && (<RemoveDialog
413
+ // dataItem={removeItem}
414
+ // onClose={this.handleCancel}
415
+ // onCancel={this.handleCancel}
416
+ // onConfirm={this.handleRemoveConfirm}
417
+ // />)}
418
+ // </SchedulerEditItemContext>
419
+
420
+ );
421
+ },
422
+ methods: {
423
+ handleFocus: function handleFocus(event) {
424
+ var _this = this;
425
+
426
+ if (this.onFocusAction) {
427
+ var actions = this.onFocusAction(event, this.$props, this.currentState);
428
+
429
+ if (actions) {
430
+ Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
431
+ return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
432
+ item: _this.item
433
+ }), event);
434
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
435
+ item: this.item
436
+ }));
437
+ }
438
+ }
439
+
440
+ this.$emit('focus', event);
441
+ },
442
+ handleMouseDown: function handleMouseDown(event) {
443
+ var _this = this;
444
+
445
+ if (this.onMouseDownAction) {
446
+ var actions = this.onMouseDownAction(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('mousedown', event);
460
+ },
461
+ handleMouseUp: function handleMouseUp(event) {
462
+ var _this = this;
463
+
464
+ if (this.onMouseUpAction) {
465
+ var actions = this.onMouseUpAction(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('mouseup', event);
479
+ },
480
+ handleClick: function handleClick(event) {
481
+ var _this = this;
482
+
483
+ if (this.onClickAction) {
484
+ var actions = this.onClickAction(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('click', event);
498
+ },
499
+ handleDoubleClick: function handleDoubleClick(event) {
500
+ var _this = this;
501
+
502
+ if (this.onDoubleClickAction) {
503
+ var actions = this.onDoubleClickAction(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('doubleclick', event);
517
+ },
518
+ handleRemoveClick: function handleRemoveClick(event) {
519
+ var _this = this;
520
+
521
+ if (this.onRemoveClickAction) {
522
+ var actions = this.onRemoveClickAction(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('removeclick', event);
536
+ },
537
+ handlePress: function handlePress(event) {
538
+ var _this = this;
539
+
540
+ if (this.onPressAction) {
541
+ var actions = this.onPressAction(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
+ }), event);
551
+ }
552
+ }
553
+
554
+ this.$emit('press', event);
555
+ },
556
+ handleDrag: function handleDrag(event) {
557
+ var _this = this;
558
+
559
+ if (this.onDragAction) {
560
+ var actions = this.onDragAction(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.dragEvent.originalEvent);
567
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
568
+ item: this.item
569
+ }), event.dragEvent.originalEvent);
570
+ }
571
+ }
572
+
573
+ this.$emit('drag', event);
574
+ },
575
+ handleRelease: function handleRelease(event) {
576
+ var _this = this;
577
+
578
+ if (this.onReleaseAction) {
579
+ var actions = this.onReleaseAction(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('release', event);
593
+ },
594
+ handleResizePress: function handleResizePress(event) {
595
+ var _this = this;
596
+
597
+ if (this.onResizePressAction) {
598
+ var actions = this.onResizePressAction(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('resizepress', event);
612
+ },
613
+ handleResizeStartDrag: function handleResizeStartDrag(event) {
614
+ var _this = this;
615
+
616
+ if (this.onResizeStartDragAction) {
617
+ var actions = this.onResizeStartDragAction(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('resizestartdrag', event);
631
+ },
632
+ handleResizeEndDrag: function handleResizeEndDrag(event) {
633
+ var _this = this;
634
+
635
+ if (this.onResizeEndDragAction) {
636
+ var actions = this.onResizeEndDragAction(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('resizeenddrag', event);
650
+ },
651
+ handleResizeRelease: function handleResizeRelease(event) {
652
+ var _this = this;
653
+
654
+ if (this.onResizeReleaseAction) {
655
+ var actions = this.onResizeReleaseAction(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('resizerelease', event);
669
+ },
670
+ handleFormSubmit: function handleFormSubmit(event) {
671
+ var _this = this;
672
+
673
+ if (this.onFormSubmitAction) {
674
+ var actions = this.onFormSubmitAction(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);
681
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
682
+ item: this.item
683
+ }), event);
684
+ }
685
+ }
686
+
687
+ this.$emit('formsubmit', event);
688
+ },
689
+ handleCancel: function handleCancel(event) {
690
+ var _this = this;
691
+
692
+ if (this.onCancelAction) {
693
+ var actions = this.onCancelAction(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('cancel', event);
707
+ },
708
+ handleOccurrenceClick: function handleOccurrenceClick(event) {
709
+ var _this = this;
710
+
711
+ if (this.onOccurrenceClickAction) {
712
+ var actions = this.onOccurrenceClickAction(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('occurrenceclick', event);
726
+ },
727
+ handleSeriesClick: function handleSeriesClick(event) {
728
+ var _this = this;
729
+
730
+ if (this.onSeriesClickAction) {
731
+ var actions = this.onSeriesClickAction(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('seriesclick', event);
745
+ },
746
+ handleKeyDown: function handleKeyDown(event) {
747
+ var _this = this;
748
+
749
+ if (this.onKeyDownAction) {
750
+ var actions = this.onKeyDownAction(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.event);
757
+ }) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
758
+ item: this.item
759
+ }), event.event);
760
+ }
761
+ }
762
+
763
+ this.$emit('keydown', event);
764
+ },
765
+ handleKeyUp: function handleKeyUp(event) {
766
+ var _this = this;
767
+
768
+ if (this.onKeyUpAction) {
769
+ var actions = this.onKeyUpAction(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('keyup', event);
783
+ },
784
+ handleRemoveConfirm: function handleRemoveConfirm(event) {
785
+ var _this = this;
786
+
787
+ if (this.onRemoveConfirmAction) {
788
+ var actions = this.onRemoveConfirmAction(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('removeconfirm', event);
802
+ },
803
+ onClickAction: function onClickAction(event, _, state) {
804
+ return [{
805
+ type: event.event.metaKey || event.event.ctrlKey ? state.selected && !state.dragItem && !state.resizeItem ? ITEMS_SELECT_ACTION.remove : ITEMS_SELECT_ACTION.add : ITEMS_SELECT_ACTION.select
806
+ }];
807
+ },
808
+ onDoubleClickAction: function onDoubleClickAction(_, props) {
809
+ return props.editable ? [{
810
+ type: FORM_ITEM_ACTION.set,
811
+ payload: props.dataItem
812
+ }, props.isRecurring && {
813
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.open
814
+ }].filter(Boolean) : [];
815
+ },
816
+ onRemoveClickAction: function onRemoveClickAction(_, props) {
817
+ return props.editable ? [{
818
+ type: REMOVE_ITEM_ACTION.set,
819
+ payload: props.dataItem
820
+ }, props.isRecurring ? {
821
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.open
822
+ } : {
823
+ type: SHOW_REMOVE_DIALOG_ACTION.open
824
+ }] : [];
825
+ },
826
+ onPressAction: function onPressAction(event, props) {
827
+ return props.editable ? {
828
+ type: DRAG_ITEM_ACTION.start,
829
+ payload: {
830
+ x: event.dragEvent.clientX,
831
+ y: event.dragEvent.clientY
832
+ }
833
+ } : [];
834
+ },
835
+ onDragAction: function onDragAction(event, props) {
836
+ return props.editable ? {
837
+ type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? DRAG_ITEM_ACTION.dragSelected : DRAG_ITEM_ACTION.drag,
838
+ payload: {
839
+ x: event.dragEvent.clientX,
840
+ y: event.dragEvent.clientY
841
+ }
842
+ } : [];
843
+ },
844
+ onReleaseAction: function onReleaseAction(event, props, state) {
845
+ return props.editable && state.dragItem ? props.isRecurring && !props.isException && state.series === null ? {
846
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.open
847
+ } : {
848
+ type: props.isRecurring ? state.series ? DRAG_ITEM_ACTION.completeSeries : DRAG_ITEM_ACTION.completeOccurrence : DRAG_ITEM_ACTION.complete,
849
+ payload: {
850
+ x: event.dragEvent.clientX,
851
+ y: event.dragEvent.clientY
852
+ }
853
+ } : [];
854
+ },
855
+ onResizePressAction: function onResizePressAction(event, props) {
856
+ return props.editable ? {
857
+ type: RESIZE_ITEM_ACTION.start,
858
+ payload: {
859
+ x: event.dragEvent.clientX,
860
+ y: event.dragEvent.clientY
861
+ }
862
+ } : [];
863
+ },
864
+ onResizeStartDragAction: function onResizeStartDragAction(event, props) {
865
+ return props.editable ? {
866
+ type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? RESIZE_ITEM_ACTION.startDragSelected : RESIZE_ITEM_ACTION.startDrag,
867
+ payload: {
868
+ x: event.dragEvent.clientX,
869
+ y: event.dragEvent.clientY
870
+ }
871
+ } : [];
872
+ },
873
+ onResizeEndDragAction: function onResizeEndDragAction(event, props) {
874
+ return props.editable ? {
875
+ type: event.dragEvent.originalEvent.metaKey || event.dragEvent.originalEvent.ctrlKey ? RESIZE_ITEM_ACTION.endDragSelected : RESIZE_ITEM_ACTION.endDrag,
876
+ payload: {
877
+ x: event.dragEvent.clientX,
878
+ y: event.dragEvent.clientY
879
+ }
880
+ } : [];
881
+ },
882
+ onResizeReleaseAction: function onResizeReleaseAction(event, props, state) {
883
+ return props.editable && state.resizeItem ? props.isRecurring && !props.isException && state.series === null ? {
884
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.open
885
+ } : {
886
+ type: props.isRecurring ? state.series ? RESIZE_ITEM_ACTION.completeSeries : RESIZE_ITEM_ACTION.completeOccurrence : RESIZE_ITEM_ACTION.complete,
887
+ payload: {
888
+ x: event.dragEvent.clientX,
889
+ y: event.dragEvent.clientY
890
+ }
891
+ } : [];
892
+ },
893
+ onOccurrenceClickAction: function onOccurrenceClickAction(_event, props, state) {
894
+ if (state.dragItem) {
895
+ return [{
896
+ type: DRAG_ITEM_ACTION.completeOccurrence
897
+ }, {
898
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
899
+ }];
900
+ }
901
+
902
+ if (state.resizeItem) {
903
+ return [{
904
+ type: RESIZE_ITEM_ACTION.completeOccurrence
905
+ }, {
906
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
907
+ }];
908
+ }
909
+
910
+ if (state.formItem) {
911
+ return [{
912
+ type: SERIES_ACTION.set,
913
+ payload: false
914
+ }, {
915
+ type: FORM_ITEM_ACTION.set,
916
+ payload: props.dataItem
917
+ }, {
918
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
919
+ }];
920
+ }
921
+
922
+ if (state.removeItem) {
923
+ return [{
924
+ type: SERIES_ACTION.set,
925
+ payload: false
926
+ }, {
927
+ type: REMOVE_ITEM_ACTION.set,
928
+ payload: props.dataItem
929
+ }, {
930
+ type: SHOW_REMOVE_DIALOG_ACTION.open
931
+ }, {
932
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
933
+ }];
934
+ }
935
+ },
936
+ onSeriesClickAction: function onSeriesClickAction(_event, props, state) {
937
+ if (state.dragItem) {
938
+ return [{
939
+ type: DRAG_ITEM_ACTION.completeSeries
940
+ }, {
941
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
942
+ }];
943
+ }
944
+
945
+ if (state.resizeItem) {
946
+ return [{
947
+ type: RESIZE_ITEM_ACTION.completeSeries
948
+ }, {
949
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
950
+ }];
951
+ }
952
+
953
+ if (state.formItem) {
954
+ return [{
955
+ type: SERIES_ACTION.set,
956
+ payload: true
957
+ }, {
958
+ type: FORM_ITEM_ACTION.setMaster,
959
+ payload: props.dataItem
960
+ }, {
961
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
962
+ }];
963
+ }
964
+
965
+ if (state.removeItem) {
966
+ return [{
967
+ type: SERIES_ACTION.set,
968
+ payload: true
969
+ }, {
970
+ type: REMOVE_ITEM_ACTION.set,
971
+ payload: props.dataItem
972
+ }, {
973
+ type: SHOW_REMOVE_DIALOG_ACTION.open
974
+ }, {
975
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
976
+ }];
977
+ }
978
+ },
979
+ onKeyDownAction: function onKeyDownAction(event, props) {
980
+ switch (event.event.keyCode) {
981
+ case Keys.enter:
982
+ return [{
983
+ type: FORM_ITEM_ACTION.set,
984
+ payload: props.dataItem
985
+ }, props.isRecurring && {
986
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.open
987
+ }];
988
+
989
+ case Keys.tab:
990
+ return [{
991
+ type: event.event.shiftKey ? ITEMS_FOCUS_ACTION.prev : ITEMS_FOCUS_ACTION.next,
992
+ ignoreIsAllDay: props.ignoreIsAllDay
993
+ }, {
994
+ type: event.event.shiftKey ? ITEMS_SELECT_ACTION.selectPrev : ITEMS_SELECT_ACTION.selectNext,
995
+ ignoreIsAllDay: props.ignoreIsAllDay
996
+ }];
997
+
998
+ case Keys.up:
999
+ return [Boolean(props.slots.length && props.slots[0].refTo.current) && {
1000
+ type: SLOTS_FOCUS_ACTION.up,
1001
+ slot: props.slots[0].refTo
1002
+ }];
1003
+
1004
+ case Keys.right:
1005
+ return [Boolean(props.slots.length && props.slots[0].refTo.current) && {
1006
+ type: SLOTS_FOCUS_ACTION.right,
1007
+ slot: props.slots[0].refTo
1008
+ }];
1009
+
1010
+ case Keys.down:
1011
+ return [Boolean(props.slots.length && props.slots[props.slots.length - 1].refTo.current) && {
1012
+ type: SLOTS_FOCUS_ACTION.down,
1013
+ slot: props.slots[props.slots.length - 1].refTo
1014
+ }];
1015
+
1016
+ case Keys.left:
1017
+ return [Boolean(props.slots.length && props.slots[0].refTo.current) && {
1018
+ type: SLOTS_FOCUS_ACTION.left,
1019
+ slot: props.slots[0].refTo
1020
+ }];
1021
+
1022
+ default:
1023
+ return;
1024
+ }
1025
+ },
1026
+ onFormSubmitAction: function onFormSubmitAction(event) {
1027
+ return {
1028
+ type: FORM_ITEM_ACTION.complete,
1029
+ payload: event.value
1030
+ };
1031
+ },
1032
+ onRemoveConfirmAction: function onRemoveConfirmAction() {
1033
+ return [{
1034
+ type: REMOVE_ITEM_ACTION.complete
1035
+ }, {
1036
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.close
1037
+ }];
1038
+ },
1039
+ onCancelAction: function onCancelAction() {
1040
+ return [{
1041
+ type: SERIES_ACTION.reset
1042
+ }, {
1043
+ type: REMOVE_ITEM_ACTION.reset
1044
+ }, {
1045
+ type: FORM_ITEM_ACTION.reset
1046
+ }, {
1047
+ type: DRAG_ITEM_ACTION.reset
1048
+ }, {
1049
+ type: RESIZE_ITEM_ACTION.reset
1050
+ }, {
1051
+ type: SHOW_REMOVE_DIALOG_ACTION.reset
1052
+ }, {
1053
+ type: SHOW_OCCURRENCE_DIALOG_ACTION.reset
1054
+ }];
1055
+ }
1056
+ }
1057
+ };
1058
+ var SchedulerEditItem = SchedulerEditItemVue2;
1059
+ export { SchedulerEditItem, SchedulerEditItemVue2 };