@progress/kendo-vue-scheduler 3.0.8 → 3.0.9-dev.202203010857

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