@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,1401 @@
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
+ };
16
+
17
+ var __spreadArrays = this && this.__spreadArrays || function () {
18
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
19
+ s += arguments[i].length;
20
+ }
21
+
22
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) {
23
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
24
+ r[k] = a[j];
25
+ }
26
+ }
27
+
28
+ return r;
29
+ }; // @ts-ignore
30
+
31
+
32
+ import * as Vue from 'vue';
33
+ var allVue = Vue;
34
+ var gh = allVue.h;
35
+ var inject = allVue.inject;
36
+ import { Day, MS_PER_DAY, ZonedDate, getDate, addDays } from '@progress/kendo-date-math';
37
+ import { BaseView } from '../../components/BaseView';
38
+ import { HorizontalResourceIterator } from '../common/HorizontalResourceIterator';
39
+ import { DayViewGroupRowContent } from './DayViewGroupRowContent';
40
+ import { VerticalResourceIterator } from '../common/VerticalResourceIterator';
41
+ import { DayViewAllDayRowContent } from './DayViewAllDayRowContent';
42
+ import { DayViewRowContent } from './DayViewRowContent';
43
+ import { DayViewMiddleRow } from './DayViewMiddleRow';
44
+ import { DayViewHead } from './DayViewHead';
45
+ import { DayViewAllDaySlots } from './DayViewAllDaySlots';
46
+ import { mapItemsToSlots, mapSlotsToItems, isInTimeRange, toUTCDateTime, intersects, first, last } from '../../utils';
47
+ import { provideIntlService } from '@progress/kendo-vue-intl';
48
+ import { MS_PER_MINUTE } from '../../constants';
49
+ import { toRanges, toItems, toSlots, toOccurrences } from '../../services/';
50
+ import { SchedulerEditSlot } from '../../slots/SchedulerEditSlot';
51
+ import { SchedulerEditItem } from '../../items/SchedulerEditItem'; // import {
52
+ // useSchedulerPropsContext,
53
+ // useSchedulerDataContext,
54
+ // useSchedulerGroupsContext,
55
+ // useSchedulerOrientationContext,
56
+ // useSchedulerFieldsContext,
57
+ // useSchedulerDateRangeContext
58
+ // } from '../../context/SchedulerContext';
59
+
60
+ import { SchedulerResourceIteratorContext } from '../../context/SchedulerResourceIteratorContext';
61
+ import { CurrentTimeMarker } from '../../components/CurrentTimeMarket';
62
+ var FIRST_INDEX = 0;
63
+ export var GRID_OFFSET = 1; // tslint:enable:max-line-length
64
+
65
+ var MultiDayViewVue2 = {
66
+ name: 'KendoMultiDayView',
67
+ props: {
68
+ name: {
69
+ type: String,
70
+ default: 'multi-day'
71
+ },
72
+ title: {
73
+ type: String,
74
+ default: 'Multi Day'
75
+ },
76
+ currentTimeMarker: {
77
+ type: Boolean,
78
+ default: true
79
+ },
80
+ dateRange: {
81
+ type: [Function, Object],
82
+ default: function _default() {
83
+ return multiDayViewDateRange;
84
+ }
85
+ },
86
+ numberOfDays: {
87
+ type: Number,
88
+ default: 1
89
+ },
90
+ startTime: {
91
+ type: String,
92
+ default: '00:00'
93
+ },
94
+ endTime: {
95
+ type: String,
96
+ default: '23:59'
97
+ },
98
+ workDayStart: {
99
+ type: String,
100
+ default: '08:00'
101
+ },
102
+ workDayEnd: {
103
+ type: String,
104
+ default: '17:00'
105
+ },
106
+ workWeekStart: {
107
+ type: Number,
108
+ default: Day.Monday
109
+ },
110
+ workWeekEnd: {
111
+ type: Number,
112
+ default: Day.Friday
113
+ },
114
+ step: {
115
+ type: Number,
116
+ default: 1
117
+ },
118
+ slotDivisions: {
119
+ type: Number,
120
+ default: 2
121
+ },
122
+ slotDuration: {
123
+ type: Number,
124
+ default: 60
125
+ },
126
+ showWorkHours: {
127
+ type: Boolean,
128
+ default: true
129
+ },
130
+ selectedDateFormat: {
131
+ type: String,
132
+ default: '{0:D} - {1:D}'
133
+ },
134
+ selectedShortDateFormat: {
135
+ type: String,
136
+ default: '{0:d} - {1:d}'
137
+ },
138
+ // showCurrentTime: {
139
+ // type: Boolean,
140
+ // default: true
141
+ // },
142
+ defaultShowWorkHours: {
143
+ type: Boolean,
144
+ default: true
145
+ },
146
+ timeHeaderCell: String
147
+ },
148
+ inject: {
149
+ kendoIntlService: {
150
+ default: null
151
+ },
152
+ ks: {
153
+ default: null
154
+ }
155
+ },
156
+ computed: {
157
+ viewStart: function viewStart() {
158
+ this.intl = provideIntlService(this);
159
+ var workDayStart = this.intl.parseDate(this.$props.workDayStart);
160
+ var startTime = this.intl.parseDate(this.$props.startTime);
161
+ return (this.ks.showWorkHours !== undefined ? this.ks.showWorkHours : this.showWorkHours) ? workDayStart : startTime;
162
+ },
163
+ viewEnd: function viewEnd() {
164
+ this.intl = provideIntlService(this);
165
+ var workDayEnd = this.intl.parseDate(this.$props.workDayEnd);
166
+ var endTime = this.intl.parseDate(this.$props.endTime);
167
+ return (this.ks.showWorkHours !== undefined ? this.ks.showWorkHours : this.showWorkHours) ? workDayEnd : endTime;
168
+ },
169
+ dayRanges: function dayRanges() {
170
+ return toRanges(this.ks.dateRange, {
171
+ step: MS_PER_DAY * this.numberOfDays,
172
+ timezone: this.ks.timezone
173
+ }).map(function (r) {
174
+ return __assign(__assign({}, r), {
175
+ isAllDay: true
176
+ });
177
+ });
178
+ },
179
+ timeRanges: function timeRanges() {
180
+ return toRanges(this.ks.dateRange, {
181
+ step: MS_PER_DAY,
182
+ timezone: this.ks.timezone
183
+ }).map(function (r) {
184
+ return __assign(__assign({}, r), {
185
+ isAllDay: false
186
+ });
187
+ });
188
+ },
189
+ daySlots: function daySlots() {
190
+ return toSlots(this.ks.dateRange, {
191
+ step: MS_PER_DAY
192
+ }, {
193
+ groups: this.ks.groups,
194
+ ranges: this.dayRanges
195
+ });
196
+ },
197
+ timeSlots: function timeSlots() {
198
+ var that = this;
199
+ return toSlots(this.ks.dateRange, {
200
+ step: this.slotDuration * MS_PER_MINUTE / this.slotDivisions
201
+ }, {
202
+ groups: this.ks.groups,
203
+ ranges: this.timeRanges
204
+ }).filter(function (slot) {
205
+ return that.viewEnd.getTime() === that.viewStart.getTime() || isInTimeRange(slot.zonedStart, that.viewStart, that.viewEnd);
206
+ });
207
+ },
208
+ occurrences: function occurrences() {
209
+ return toOccurrences(this.ks.dataItems, {
210
+ dateRange: this.ks.dateRange,
211
+ fields: this.ks.fields,
212
+ timezone: this.ks.timezone
213
+ });
214
+ },
215
+ dayOccurrences: function dayOccurrences() {
216
+ return this.occurrences.filter(function (o) {
217
+ return o.isAllDay;
218
+ });
219
+ },
220
+ timeOccurrences: function timeOccurrences() {
221
+ return this.occurrences.filter(function (o) {
222
+ return !o.isAllDay;
223
+ });
224
+ },
225
+ dayItems: function dayItems() {
226
+ var dayItems = toItems(this.dayOccurrences, {
227
+ timezone: this.ks.timezone
228
+ }, {
229
+ groups: this.ks.groups,
230
+ ranges: this.dayRanges
231
+ });
232
+ mapItemsToSlots(dayItems, this.daySlots, false);
233
+ mapSlotsToItems(dayItems, this.daySlots, false);
234
+ return dayItems;
235
+ },
236
+ timeItems: function timeItems() {
237
+ var _this = this;
238
+
239
+ var timeItems = toItems(this.timeOccurrences, {
240
+ timezone: this.ks.timezone
241
+ }, {
242
+ groups: this.ks.groups,
243
+ ranges: this.timeRanges
244
+ }).filter(function (item) {
245
+ return _this.viewStart.getTime() === _this.viewEnd.getTime() || isInTimeRange(item.zonedStart, _this.viewStart, _this.viewEnd) || isInTimeRange(item.zonedEnd, _this.viewStart, _this.viewEnd) || isInTimeRange(new Date(item.zonedEnd.getTime() - (item.zonedEnd.getTime() - item.zonedStart.getTime()) / 2), _this.viewStart, _this.viewEnd);
246
+ });
247
+ mapItemsToSlots(timeItems, this.timeSlots, false);
248
+ mapSlotsToItems(timeItems, this.timeSlots, false);
249
+ return timeItems;
250
+ }
251
+ },
252
+ created: function created() {
253
+ this.intl = provideIntlService(this);
254
+ },
255
+ beforeUpdate: function beforeUpdate() {
256
+ this.intl = provideIntlService(this);
257
+ },
258
+ // @ts-ignore
259
+ setup: !gh ? undefined : function () {
260
+ var v3 = !!gh;
261
+ return {
262
+ v3: v3
263
+ };
264
+ },
265
+ // @ts-ignore
266
+ render: function render(createElement) {
267
+ var _this2 = this;
268
+
269
+ var _this = this;
270
+
271
+ var h = gh || createElement;
272
+ this.intl = provideIntlService(this);
273
+ var EditItem = this.$props.editItem || SchedulerEditItem;
274
+ var EditSlot = this.$props.editSlot || SchedulerEditSlot;
275
+ var showWorkHours = this.$props.showWorkHours;
276
+ var numberOfDays = this.$props.numberOfDays;
277
+ var slotDivisions = this.$props.slotDivisions;
278
+ var slotDuration = this.$props.slotDuration;
279
+ var workWeekStart = this.$props.workWeekStart;
280
+ var workWeekEnd = this.$props.workWeekEnd;
281
+ var workDayStart = this.intl.parseDate(this.$props.workDayStart);
282
+ var workDayEnd = this.intl.parseDate(this.$props.workDayEnd);
283
+ var dayItems = this.dayItems;
284
+ var timeItems = this.timeItems;
285
+ var daySlots = this.daySlots;
286
+ var timeSlots = this.timeSlots;
287
+ return (// @ts-ignore function children
288
+ h(BaseView, {
289
+ id: this.$props.id,
290
+ attrs: this.v3 ? undefined : {
291
+ id: this.$props.id,
292
+ props: this.$props,
293
+ ranges: __spreadArrays(this.dayRanges, this.timeRanges),
294
+ baseSlots: __spreadArrays(daySlots, timeSlots)
295
+ },
296
+ props: this.$props,
297
+ "class": 'k-scheduler-day-view',
298
+ ranges: __spreadArrays(this.dayRanges, this.timeRanges),
299
+ baseSlots: __spreadArrays(daySlots, timeSlots)
300
+ }, this.v3 ? function () {
301
+ return [h("div", {
302
+ "class": "k-scheduler-head"
303
+ }, [_this2.ks.orientation === 'horizontal' ? [// @ts-ignore function children
304
+ h(HorizontalResourceIterator, {
305
+ nested: true,
306
+ attrs: _this2.v3 ? undefined : {
307
+ nested: true,
308
+ group: _this2.ks.props.group,
309
+ resources: _this2.ks.props.resources,
310
+ rowContent: DayViewGroupRowContent,
311
+ childRowContent: DayViewGroupRowContent
312
+ },
313
+ group: _this2.ks.props.group,
314
+ resources: _this2.ks.props.resources,
315
+ rowContent: DayViewGroupRowContent,
316
+ childRowContent: DayViewGroupRowContent
317
+ }, _this2.v3 ? function () {
318
+ return [h(DayViewHead, {
319
+ timeRanges: _this2.timeRanges,
320
+ attrs: _this2.v3 ? undefined : {
321
+ timeRanges: _this2.timeRanges,
322
+ dateHeaderCell: _this2.$props.dateHeaderCell
323
+ },
324
+ dateHeaderCell: _this2.$props.dateHeaderCell
325
+ })];
326
+ } : [h(DayViewHead, {
327
+ timeRanges: _this2.timeRanges,
328
+ attrs: _this2.v3 ? undefined : {
329
+ timeRanges: _this2.timeRanges,
330
+ dateHeaderCell: _this2.$props.dateHeaderCell
331
+ },
332
+ dateHeaderCell: _this2.$props.dateHeaderCell
333
+ })]), // @ts-ignore function children
334
+ h(HorizontalResourceIterator, {
335
+ group: _this2.ks.props.group,
336
+ attrs: _this2.v3 ? undefined : {
337
+ group: _this2.ks.props.group,
338
+ resources: _this2.ks.props.resources,
339
+ rowContent: DayViewAllDayRowContent,
340
+ childRowContent: DayViewAllDayRowContent
341
+ },
342
+ resources: _this2.ks.props.resources,
343
+ rowContent: DayViewAllDayRowContent,
344
+ childRowContent: DayViewAllDayRowContent
345
+ }, _this2.v3 ? function () {
346
+ return [h(DayViewAllDaySlots, {
347
+ dayRanges: _this2.dayRanges,
348
+ attrs: _this2.v3 ? undefined : {
349
+ dayRanges: _this2.dayRanges,
350
+ daySlots: daySlots,
351
+ numberOfDays: numberOfDays,
352
+ workWeekStart: workWeekStart,
353
+ workWeekEnd: workWeekEnd
354
+ },
355
+ daySlots: daySlots,
356
+ numberOfDays: numberOfDays,
357
+ workWeekStart: workWeekStart,
358
+ workWeekEnd: workWeekEnd,
359
+ onDataaction: _this2.handleDataAction,
360
+ on: _this2.v3 ? undefined : {
361
+ "dataaction": _this2.handleDataAction
362
+ }
363
+ })];
364
+ } : [h(DayViewAllDaySlots, {
365
+ dayRanges: _this2.dayRanges,
366
+ attrs: _this2.v3 ? undefined : {
367
+ dayRanges: _this2.dayRanges,
368
+ daySlots: daySlots,
369
+ numberOfDays: numberOfDays,
370
+ workWeekStart: workWeekStart,
371
+ workWeekEnd: workWeekEnd
372
+ },
373
+ daySlots: daySlots,
374
+ numberOfDays: numberOfDays,
375
+ workWeekStart: workWeekStart,
376
+ workWeekEnd: workWeekEnd,
377
+ onDataaction: _this2.handleDataAction,
378
+ on: _this2.v3 ? undefined : {
379
+ "dataaction": _this2.handleDataAction
380
+ }
381
+ })]), dayItems.map(function (item) {
382
+ return h(EditItem, {
383
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
384
+ uid: item.uid,
385
+ attrs: this.v3 ? undefined : {
386
+ uid: item.uid,
387
+ start: item.start,
388
+ end: item.end,
389
+ originalStart: item.originalStart,
390
+ startTimezone: item.startTimezone,
391
+ endTimezone: item.endTimezone,
392
+ isAllDay: item.isAllDay,
393
+ title: item.title,
394
+ description: item.description,
395
+ occurrenceId: item.occurrenceId,
396
+ recurrenceExceptions: item.recurrenceExceptions,
397
+ recurrenceRule: item.recurrenceRule,
398
+ recurrenceId: item.recurrenceId,
399
+ dataItem: item.dataItem,
400
+ itemRef: item.itemRef,
401
+ head: item.head,
402
+ tail: item.tail,
403
+ order: item.order,
404
+ zonedStart: item.zonedStart,
405
+ zonedEnd: item.zonedEnd,
406
+ slots: item.slots,
407
+ group: item.group,
408
+ range: item.range,
409
+ isException: item.isException,
410
+ isRecurring: item.isRecurring,
411
+ form: this.$props.form,
412
+ item: this.$props.item,
413
+ viewItem: this.$props.viewItem,
414
+ editable: this.$props.editable,
415
+ vertical: false
416
+ },
417
+ start: item.start,
418
+ end: item.end,
419
+ originalStart: item.originalStart,
420
+ startTimezone: item.startTimezone,
421
+ endTimezone: item.endTimezone,
422
+ isAllDay: item.isAllDay,
423
+ title: item.title,
424
+ description: item.description,
425
+ occurrenceId: item.occurrenceId,
426
+ recurrenceExceptions: item.recurrenceExceptions,
427
+ recurrenceRule: item.recurrenceRule,
428
+ recurrenceId: item.recurrenceId,
429
+ dataItem: item.dataItem,
430
+ itemRef: item.itemRef,
431
+ head: item.head,
432
+ tail: item.tail,
433
+ order: item.order,
434
+ zonedStart: item.zonedStart,
435
+ zonedEnd: item.zonedEnd,
436
+ slots: item.slots,
437
+ group: item.group,
438
+ range: item.range,
439
+ isException: item.isException,
440
+ isRecurring: item.isRecurring,
441
+ form: this.$props.form,
442
+ onDataaction: this.handleDataAction,
443
+ on: this.v3 ? undefined : {
444
+ "dataaction": this.handleDataAction
445
+ },
446
+ item: this.$props.item,
447
+ viewItem: this.$props.viewItem,
448
+ editable: this.$props.editable,
449
+ vertical: false
450
+ });
451
+ }, _this2)] : h(VerticalResourceIterator, {
452
+ group: _this2.ks.props.group,
453
+ attrs: _this2.v3 ? undefined : {
454
+ group: _this2.ks.props.group,
455
+ resources: _this2.ks.props.resources,
456
+ emptyCell: true
457
+ },
458
+ resources: _this2.ks.props.resources,
459
+ emptyCell: true
460
+ }, [h(DayViewHead, {
461
+ timeRanges: _this2.timeRanges,
462
+ attrs: _this2.v3 ? undefined : {
463
+ timeRanges: _this2.timeRanges,
464
+ dateHeaderCell: _this2.$props.dateHeaderCell
465
+ },
466
+ dateHeaderCell: _this2.$props.dateHeaderCell
467
+ })])]), h("div", {
468
+ "class": "k-scheduler-body"
469
+ }, [_this2.ks.orientation === 'horizontal' ? [timeSlots.filter(function (slot) {
470
+ return slot.group.index === FIRST_INDEX && slot.range.index === FIRST_INDEX;
471
+ }).map(function (root, rootIndex) {
472
+ var _this3 = this;
473
+
474
+ return (// @ts-ignore function children
475
+ h(HorizontalResourceIterator, {
476
+ key: root.index,
477
+ nested: false,
478
+ attrs: this.v3 ? undefined : {
479
+ nested: false,
480
+ group: this.ks.props.group,
481
+ resources: this.ks.props.resources,
482
+ rowContent: DayViewRowContent,
483
+ rowContentProps: {
484
+ timeHeaderCell: this.$props.timeHeaderCell,
485
+ isMaster: rootIndex % slotDivisions === 0,
486
+ isLast: (rootIndex + 1) % slotDivisions === 0,
487
+ contentSlot: root
488
+ }
489
+ },
490
+ group: this.ks.props.group,
491
+ resources: this.ks.props.resources,
492
+ rowContent: DayViewRowContent,
493
+ rowContentProps: {
494
+ timeHeaderCell: this.$props.timeHeaderCell,
495
+ isMaster: rootIndex % slotDivisions === 0,
496
+ isLast: (rootIndex + 1) % slotDivisions === 0,
497
+ contentSlot: root
498
+ }
499
+ }, this.v3 ? function () {
500
+ return [h(DayViewMiddleRow, {
501
+ timeRanges: _this3.timeRanges,
502
+ attrs: _this3.v3 ? undefined : {
503
+ timeRanges: _this3.timeRanges,
504
+ timeSlots: timeSlots,
505
+ slotDivisions: slotDivisions,
506
+ rootIndex: rootIndex,
507
+ root: root,
508
+ numberOfDays: numberOfDays,
509
+ workDayStart: workDayStart,
510
+ workDayEnd: workDayEnd,
511
+ workWeekStart: workWeekStart,
512
+ workWeekEnd: workWeekEnd
513
+ },
514
+ timeSlots: timeSlots,
515
+ slotDivisions: slotDivisions,
516
+ rootIndex: rootIndex,
517
+ root: root,
518
+ numberOfDays: numberOfDays,
519
+ workDayStart: workDayStart,
520
+ workDayEnd: workDayEnd,
521
+ workWeekStart: workWeekStart,
522
+ workWeekEnd: workWeekEnd,
523
+ onDataaction: _this3.handleDataAction,
524
+ on: _this3.v3 ? undefined : {
525
+ "dataaction": _this3.handleDataAction
526
+ }
527
+ })];
528
+ } : [h(DayViewMiddleRow, {
529
+ timeRanges: _this3.timeRanges,
530
+ attrs: _this3.v3 ? undefined : {
531
+ timeRanges: _this3.timeRanges,
532
+ timeSlots: timeSlots,
533
+ slotDivisions: slotDivisions,
534
+ rootIndex: rootIndex,
535
+ root: root,
536
+ numberOfDays: numberOfDays,
537
+ workDayStart: workDayStart,
538
+ workDayEnd: workDayEnd,
539
+ workWeekStart: workWeekStart,
540
+ workWeekEnd: workWeekEnd
541
+ },
542
+ timeSlots: timeSlots,
543
+ slotDivisions: slotDivisions,
544
+ rootIndex: rootIndex,
545
+ root: root,
546
+ numberOfDays: numberOfDays,
547
+ workDayStart: workDayStart,
548
+ workDayEnd: workDayEnd,
549
+ workWeekStart: workWeekStart,
550
+ workWeekEnd: workWeekEnd,
551
+ onDataaction: _this3.handleDataAction,
552
+ on: _this3.v3 ? undefined : {
553
+ "dataaction": _this3.handleDataAction
554
+ }
555
+ })])
556
+ );
557
+ }, _this2), _this2.$props.currentTimeMarker && intersects(first(_this2.timeRanges).start, last(_this2.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker)] : [h(VerticalResourceIterator, {
558
+ nested: true,
559
+ attrs: _this2.v3 ? undefined : {
560
+ nested: true,
561
+ group: _this2.ks.props.group,
562
+ resources: _this2.ks.props.resources
563
+ },
564
+ group: _this2.ks.props.group,
565
+ resources: _this2.ks.props.resources
566
+ }, [h(SchedulerResourceIteratorContext.Consumer, [function (_a) {
567
+ var groupIndex = _a.groupIndex;
568
+ return [h("div", {
569
+ "class": "k-scheduler-row"
570
+ }, [h(DayViewAllDayRowContent, {
571
+ groupIndex: groupIndex,
572
+ attrs: this.v3 ? undefined : {
573
+ groupIndex: groupIndex
574
+ }
575
+ }), _this.dayRanges.map(function (_, rangeIndex) {
576
+ var groupOffset = timeSlots.filter(function (s) {
577
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
578
+ }).length;
579
+ return daySlots.filter(function (s) {
580
+ return s.group.index === groupIndex && s.range.index === rangeIndex;
581
+ }).map(function (slot, slotIndex) {
582
+ return h(EditSlot, {
583
+ renderSlot: this.$props.slot,
584
+ attrs: this.v3 ? undefined : {
585
+ renderSlot: this.$props.slot,
586
+ viewSlot: this.$props.viewSlot,
587
+ form: this.$props.form,
588
+ index: slot.index,
589
+ start: slot.start,
590
+ end: slot.end,
591
+ zonedStart: slot.zonedStart,
592
+ zonedEnd: slot.zonedEnd,
593
+ items: slot.items,
594
+ group: slot.group,
595
+ range: slot.range,
596
+ isAllDay: slot.isAllDay,
597
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
598
+ col: slotIndex,
599
+ expandable: true
600
+ },
601
+ viewSlot: this.$props.viewSlot,
602
+ form: this.$props.form,
603
+ index: slot.index,
604
+ start: slot.start,
605
+ end: slot.end,
606
+ zonedStart: slot.zonedStart,
607
+ zonedEnd: slot.zonedEnd,
608
+ items: slot.items,
609
+ group: slot.group,
610
+ range: slot.range,
611
+ isAllDay: slot.isAllDay,
612
+ onDataaction: this.handleDataAction,
613
+ on: this.v3 ? undefined : {
614
+ "dataaction": this.handleDataAction
615
+ },
616
+ key: slot.start.getTime() + ":" + slot.group.index,
617
+ "class": 'k-scheduler-alldays-slot',
618
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
619
+ col: slotIndex,
620
+ expandable: true
621
+ });
622
+ }, this);
623
+ }, _this)]), timeSlots.filter(function (s) {
624
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
625
+ }).map(function (root, rootIndex, filtered) {
626
+ return h("div", {
627
+ "class": "k-scheduler-row",
628
+ key: root.index
629
+ }, [h(DayViewRowContent, {
630
+ contentSlot: root,
631
+ attrs: this.v3 ? undefined : {
632
+ contentSlot: root,
633
+ isMaster: rootIndex % slotDivisions === 0,
634
+ isLast: (rootIndex + 1) % slotDivisions === 0,
635
+ timeHeaderCell: this.$props.timeHeaderCell
636
+ },
637
+ isMaster: rootIndex % slotDivisions === 0,
638
+ isLast: (rootIndex + 1) % slotDivisions === 0,
639
+ timeHeaderCell: this.$props.timeHeaderCell
640
+ }), this.timeRanges.map(function (_, rangeIndex) {
641
+ return timeSlots.filter(function (s) {
642
+ return s.index === root.index && s.group.index === groupIndex && s.range.index === rangeIndex;
643
+ }).map(function (slot) {
644
+ return h(EditSlot, {
645
+ renderSlot: this.$props.slot,
646
+ attrs: this.v3 ? undefined : {
647
+ renderSlot: this.$props.slot,
648
+ viewSlot: this.$props.viewSlot,
649
+ form: this.$props.form,
650
+ index: slot.index,
651
+ start: slot.start,
652
+ end: slot.end,
653
+ zonedStart: slot.zonedStart,
654
+ zonedEnd: slot.zonedEnd,
655
+ items: slot.items,
656
+ group: slot.group,
657
+ range: slot.range,
658
+ isAllDay: slot.isAllDay,
659
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
660
+ col: rangeIndex,
661
+ editable: this.$props.editable,
662
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
663
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
664
+ },
665
+ viewSlot: this.$props.viewSlot,
666
+ form: this.$props.form,
667
+ onDataaction: this.handleDataAction,
668
+ on: this.v3 ? undefined : {
669
+ "dataaction": this.handleDataAction
670
+ },
671
+ index: slot.index,
672
+ start: slot.start,
673
+ end: slot.end,
674
+ zonedStart: slot.zonedStart,
675
+ zonedEnd: slot.zonedEnd,
676
+ items: slot.items,
677
+ group: slot.group,
678
+ range: slot.range,
679
+ isAllDay: slot.isAllDay,
680
+ key: slot.start.getTime() + ":" + slot.group.index,
681
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
682
+ col: rangeIndex,
683
+ editable: this.$props.editable,
684
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
685
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
686
+ });
687
+ }, true);
688
+ }, this)]);
689
+ }, _this), _this.$props.currentTimeMarker && intersects(first(_this.timeRanges).start, last(_this.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker, {
690
+ groupIndex: groupIndex,
691
+ attrs: this.v3 ? undefined : {
692
+ groupIndex: groupIndex
693
+ }
694
+ })];
695
+ }])]), dayItems.map(function (item) {
696
+ return h(EditItem, {
697
+ key: item.isRecurring ? item.uid + ":" + item.group.index + " : " + item.range.index + " : " + item.originalStart : item.uid + ":" + item.group.index + " : " + item.range.index,
698
+ uid: item.uid,
699
+ attrs: this.v3 ? undefined : {
700
+ uid: item.uid,
701
+ start: item.start,
702
+ end: item.end,
703
+ originalStart: item.originalStart,
704
+ startTimezone: item.startTimezone,
705
+ endTimezone: item.endTimezone,
706
+ isAllDay: item.isAllDay,
707
+ title: item.title,
708
+ description: item.description,
709
+ occurrenceId: item.occurrenceId,
710
+ recurrenceExceptions: item.recurrenceExceptions,
711
+ recurrenceRule: item.recurrenceRule,
712
+ recurrenceId: item.recurrenceId,
713
+ dataItem: item.dataItem,
714
+ itemRef: item.itemRef,
715
+ head: item.head,
716
+ tail: item.tail,
717
+ order: item.order,
718
+ zonedStart: item.zonedStart,
719
+ zonedEnd: item.zonedEnd,
720
+ slots: item.slots,
721
+ group: item.group,
722
+ range: item.range,
723
+ isException: item.isException,
724
+ isRecurring: item.isRecurring,
725
+ viewItem: this.$props.viewItem,
726
+ item: this.$props.item,
727
+ form: this.$props.form,
728
+ editable: this.$props.editable,
729
+ vertical: false
730
+ },
731
+ start: item.start,
732
+ end: item.end,
733
+ originalStart: item.originalStart,
734
+ startTimezone: item.startTimezone,
735
+ endTimezone: item.endTimezone,
736
+ isAllDay: item.isAllDay,
737
+ title: item.title,
738
+ description: item.description,
739
+ occurrenceId: item.occurrenceId,
740
+ recurrenceExceptions: item.recurrenceExceptions,
741
+ recurrenceRule: item.recurrenceRule,
742
+ recurrenceId: item.recurrenceId,
743
+ dataItem: item.dataItem,
744
+ itemRef: item.itemRef,
745
+ head: item.head,
746
+ tail: item.tail,
747
+ order: item.order,
748
+ zonedStart: item.zonedStart,
749
+ zonedEnd: item.zonedEnd,
750
+ slots: item.slots,
751
+ group: item.group,
752
+ range: item.range,
753
+ isException: item.isException,
754
+ isRecurring: item.isRecurring,
755
+ onDataaction: this.handleDataAction,
756
+ on: this.v3 ? undefined : {
757
+ "dataaction": this.handleDataAction
758
+ },
759
+ viewItem: this.$props.viewItem,
760
+ item: this.$props.item,
761
+ form: this.$props.form,
762
+ editable: this.$props.editable,
763
+ vertical: false
764
+ });
765
+ }, _this2)], timeItems.map(function (item) {
766
+ return h(EditItem, {
767
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
768
+ uid: item.uid,
769
+ attrs: this.v3 ? undefined : {
770
+ uid: item.uid,
771
+ start: item.start,
772
+ end: item.end,
773
+ originalStart: item.originalStart,
774
+ startTimezone: item.startTimezone,
775
+ endTimezone: item.endTimezone,
776
+ isAllDay: item.isAllDay,
777
+ title: item.title,
778
+ description: item.description,
779
+ occurrenceId: item.occurrenceId,
780
+ recurrenceExceptions: item.recurrenceExceptions,
781
+ recurrenceRule: item.recurrenceRule,
782
+ recurrenceId: item.recurrenceId,
783
+ dataItem: item.dataItem,
784
+ itemRef: item.itemRef,
785
+ head: item.head,
786
+ tail: item.tail,
787
+ order: item.order,
788
+ zonedStart: item.zonedStart,
789
+ zonedEnd: item.zonedEnd,
790
+ slots: item.slots,
791
+ group: item.group,
792
+ range: item.range,
793
+ isException: item.isException,
794
+ isRecurring: item.isRecurring,
795
+ format: 't',
796
+ viewItem: this.$props.viewItem,
797
+ item: this.$props.item,
798
+ form: this.$props.form,
799
+ editable: this.$props.editable,
800
+ vertical: true
801
+ },
802
+ start: item.start,
803
+ end: item.end,
804
+ originalStart: item.originalStart,
805
+ startTimezone: item.startTimezone,
806
+ endTimezone: item.endTimezone,
807
+ isAllDay: item.isAllDay,
808
+ title: item.title,
809
+ description: item.description,
810
+ occurrenceId: item.occurrenceId,
811
+ recurrenceExceptions: item.recurrenceExceptions,
812
+ recurrenceRule: item.recurrenceRule,
813
+ recurrenceId: item.recurrenceId,
814
+ dataItem: item.dataItem,
815
+ itemRef: item.itemRef,
816
+ head: item.head,
817
+ tail: item.tail,
818
+ order: item.order,
819
+ zonedStart: item.zonedStart,
820
+ zonedEnd: item.zonedEnd,
821
+ slots: item.slots,
822
+ group: item.group,
823
+ range: item.range,
824
+ isException: item.isException,
825
+ isRecurring: item.isRecurring,
826
+ format: 't',
827
+ onDataaction: this.handleDataAction,
828
+ on: this.v3 ? undefined : {
829
+ "dataaction": this.handleDataAction
830
+ },
831
+ viewItem: this.$props.viewItem,
832
+ item: this.$props.item,
833
+ form: this.$props.form,
834
+ editable: this.$props.editable,
835
+ vertical: true
836
+ });
837
+ }, _this2)])];
838
+ } : [h("div", {
839
+ "class": "k-scheduler-head"
840
+ }, [_this2.ks.orientation === 'horizontal' ? [h(HorizontalResourceIterator, {
841
+ nested: true,
842
+ attrs: _this2.v3 ? undefined : {
843
+ nested: true,
844
+ group: _this2.ks.props.group,
845
+ resources: _this2.ks.props.resources,
846
+ rowContent: DayViewGroupRowContent,
847
+ childRowContent: DayViewGroupRowContent
848
+ },
849
+ group: _this2.ks.props.group,
850
+ resources: _this2.ks.props.resources,
851
+ rowContent: DayViewGroupRowContent,
852
+ childRowContent: DayViewGroupRowContent
853
+ }, _this2.v3 ? function () {
854
+ return [h(DayViewHead, {
855
+ timeRanges: _this2.timeRanges,
856
+ attrs: _this2.v3 ? undefined : {
857
+ timeRanges: _this2.timeRanges,
858
+ dateHeaderCell: _this2.$props.dateHeaderCell
859
+ },
860
+ dateHeaderCell: _this2.$props.dateHeaderCell
861
+ })];
862
+ } : [h(DayViewHead, {
863
+ timeRanges: _this2.timeRanges,
864
+ attrs: _this2.v3 ? undefined : {
865
+ timeRanges: _this2.timeRanges,
866
+ dateHeaderCell: _this2.$props.dateHeaderCell
867
+ },
868
+ dateHeaderCell: _this2.$props.dateHeaderCell
869
+ })]), h(HorizontalResourceIterator, {
870
+ group: _this2.ks.props.group,
871
+ attrs: _this2.v3 ? undefined : {
872
+ group: _this2.ks.props.group,
873
+ resources: _this2.ks.props.resources,
874
+ rowContent: DayViewAllDayRowContent,
875
+ childRowContent: DayViewAllDayRowContent
876
+ },
877
+ resources: _this2.ks.props.resources,
878
+ rowContent: DayViewAllDayRowContent,
879
+ childRowContent: DayViewAllDayRowContent
880
+ }, _this2.v3 ? function () {
881
+ return [h(DayViewAllDaySlots, {
882
+ dayRanges: _this2.dayRanges,
883
+ attrs: _this2.v3 ? undefined : {
884
+ dayRanges: _this2.dayRanges,
885
+ daySlots: daySlots,
886
+ numberOfDays: numberOfDays,
887
+ workWeekStart: workWeekStart,
888
+ workWeekEnd: workWeekEnd
889
+ },
890
+ daySlots: daySlots,
891
+ numberOfDays: numberOfDays,
892
+ workWeekStart: workWeekStart,
893
+ workWeekEnd: workWeekEnd,
894
+ onDataaction: _this2.handleDataAction,
895
+ on: _this2.v3 ? undefined : {
896
+ "dataaction": _this2.handleDataAction
897
+ }
898
+ })];
899
+ } : [h(DayViewAllDaySlots, {
900
+ dayRanges: _this2.dayRanges,
901
+ attrs: _this2.v3 ? undefined : {
902
+ dayRanges: _this2.dayRanges,
903
+ daySlots: daySlots,
904
+ numberOfDays: numberOfDays,
905
+ workWeekStart: workWeekStart,
906
+ workWeekEnd: workWeekEnd
907
+ },
908
+ daySlots: daySlots,
909
+ numberOfDays: numberOfDays,
910
+ workWeekStart: workWeekStart,
911
+ workWeekEnd: workWeekEnd,
912
+ onDataaction: _this2.handleDataAction,
913
+ on: _this2.v3 ? undefined : {
914
+ "dataaction": _this2.handleDataAction
915
+ }
916
+ })]), dayItems.map(function (item) {
917
+ return h(EditItem, {
918
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
919
+ uid: item.uid,
920
+ attrs: this.v3 ? undefined : {
921
+ uid: item.uid,
922
+ start: item.start,
923
+ end: item.end,
924
+ originalStart: item.originalStart,
925
+ startTimezone: item.startTimezone,
926
+ endTimezone: item.endTimezone,
927
+ isAllDay: item.isAllDay,
928
+ title: item.title,
929
+ description: item.description,
930
+ occurrenceId: item.occurrenceId,
931
+ recurrenceExceptions: item.recurrenceExceptions,
932
+ recurrenceRule: item.recurrenceRule,
933
+ recurrenceId: item.recurrenceId,
934
+ dataItem: item.dataItem,
935
+ itemRef: item.itemRef,
936
+ head: item.head,
937
+ tail: item.tail,
938
+ order: item.order,
939
+ zonedStart: item.zonedStart,
940
+ zonedEnd: item.zonedEnd,
941
+ slots: item.slots,
942
+ group: item.group,
943
+ range: item.range,
944
+ isException: item.isException,
945
+ isRecurring: item.isRecurring,
946
+ form: this.$props.form,
947
+ item: this.$props.item,
948
+ viewItem: this.$props.viewItem,
949
+ editable: this.$props.editable,
950
+ vertical: false
951
+ },
952
+ start: item.start,
953
+ end: item.end,
954
+ originalStart: item.originalStart,
955
+ startTimezone: item.startTimezone,
956
+ endTimezone: item.endTimezone,
957
+ isAllDay: item.isAllDay,
958
+ title: item.title,
959
+ description: item.description,
960
+ occurrenceId: item.occurrenceId,
961
+ recurrenceExceptions: item.recurrenceExceptions,
962
+ recurrenceRule: item.recurrenceRule,
963
+ recurrenceId: item.recurrenceId,
964
+ dataItem: item.dataItem,
965
+ itemRef: item.itemRef,
966
+ head: item.head,
967
+ tail: item.tail,
968
+ order: item.order,
969
+ zonedStart: item.zonedStart,
970
+ zonedEnd: item.zonedEnd,
971
+ slots: item.slots,
972
+ group: item.group,
973
+ range: item.range,
974
+ isException: item.isException,
975
+ isRecurring: item.isRecurring,
976
+ form: this.$props.form,
977
+ onDataaction: this.handleDataAction,
978
+ on: this.v3 ? undefined : {
979
+ "dataaction": this.handleDataAction
980
+ },
981
+ item: this.$props.item,
982
+ viewItem: this.$props.viewItem,
983
+ editable: this.$props.editable,
984
+ vertical: false
985
+ });
986
+ }, _this2)] : h(VerticalResourceIterator, {
987
+ group: _this2.ks.props.group,
988
+ attrs: _this2.v3 ? undefined : {
989
+ group: _this2.ks.props.group,
990
+ resources: _this2.ks.props.resources,
991
+ emptyCell: true
992
+ },
993
+ resources: _this2.ks.props.resources,
994
+ emptyCell: true
995
+ }, [h(DayViewHead, {
996
+ timeRanges: _this2.timeRanges,
997
+ attrs: _this2.v3 ? undefined : {
998
+ timeRanges: _this2.timeRanges,
999
+ dateHeaderCell: _this2.$props.dateHeaderCell
1000
+ },
1001
+ dateHeaderCell: _this2.$props.dateHeaderCell
1002
+ })])]), h("div", {
1003
+ "class": "k-scheduler-body"
1004
+ }, [_this2.ks.orientation === 'horizontal' ? [timeSlots.filter(function (slot) {
1005
+ return slot.group.index === FIRST_INDEX && slot.range.index === FIRST_INDEX;
1006
+ }).map(function (root, rootIndex) {
1007
+ var _this3 = this;
1008
+
1009
+ return h(HorizontalResourceIterator, {
1010
+ key: root.index,
1011
+ nested: false,
1012
+ attrs: this.v3 ? undefined : {
1013
+ nested: false,
1014
+ group: this.ks.props.group,
1015
+ resources: this.ks.props.resources,
1016
+ rowContent: DayViewRowContent,
1017
+ rowContentProps: {
1018
+ timeHeaderCell: this.$props.timeHeaderCell,
1019
+ isMaster: rootIndex % slotDivisions === 0,
1020
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1021
+ contentSlot: root
1022
+ }
1023
+ },
1024
+ group: this.ks.props.group,
1025
+ resources: this.ks.props.resources,
1026
+ rowContent: DayViewRowContent,
1027
+ rowContentProps: {
1028
+ timeHeaderCell: this.$props.timeHeaderCell,
1029
+ isMaster: rootIndex % slotDivisions === 0,
1030
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1031
+ contentSlot: root
1032
+ }
1033
+ }, this.v3 ? function () {
1034
+ return [h(DayViewMiddleRow, {
1035
+ timeRanges: _this3.timeRanges,
1036
+ attrs: _this3.v3 ? undefined : {
1037
+ timeRanges: _this3.timeRanges,
1038
+ timeSlots: timeSlots,
1039
+ slotDivisions: slotDivisions,
1040
+ rootIndex: rootIndex,
1041
+ root: root,
1042
+ numberOfDays: numberOfDays,
1043
+ workDayStart: workDayStart,
1044
+ workDayEnd: workDayEnd,
1045
+ workWeekStart: workWeekStart,
1046
+ workWeekEnd: workWeekEnd
1047
+ },
1048
+ timeSlots: timeSlots,
1049
+ slotDivisions: slotDivisions,
1050
+ rootIndex: rootIndex,
1051
+ root: root,
1052
+ numberOfDays: numberOfDays,
1053
+ workDayStart: workDayStart,
1054
+ workDayEnd: workDayEnd,
1055
+ workWeekStart: workWeekStart,
1056
+ workWeekEnd: workWeekEnd,
1057
+ onDataaction: _this3.handleDataAction,
1058
+ on: _this3.v3 ? undefined : {
1059
+ "dataaction": _this3.handleDataAction
1060
+ }
1061
+ })];
1062
+ } : [h(DayViewMiddleRow, {
1063
+ timeRanges: _this3.timeRanges,
1064
+ attrs: _this3.v3 ? undefined : {
1065
+ timeRanges: _this3.timeRanges,
1066
+ timeSlots: timeSlots,
1067
+ slotDivisions: slotDivisions,
1068
+ rootIndex: rootIndex,
1069
+ root: root,
1070
+ numberOfDays: numberOfDays,
1071
+ workDayStart: workDayStart,
1072
+ workDayEnd: workDayEnd,
1073
+ workWeekStart: workWeekStart,
1074
+ workWeekEnd: workWeekEnd
1075
+ },
1076
+ timeSlots: timeSlots,
1077
+ slotDivisions: slotDivisions,
1078
+ rootIndex: rootIndex,
1079
+ root: root,
1080
+ numberOfDays: numberOfDays,
1081
+ workDayStart: workDayStart,
1082
+ workDayEnd: workDayEnd,
1083
+ workWeekStart: workWeekStart,
1084
+ workWeekEnd: workWeekEnd,
1085
+ onDataaction: _this3.handleDataAction,
1086
+ on: _this3.v3 ? undefined : {
1087
+ "dataaction": _this3.handleDataAction
1088
+ }
1089
+ })]);
1090
+ }, _this2), _this2.$props.currentTimeMarker && intersects(first(_this2.timeRanges).start, last(_this2.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker)] : [h(VerticalResourceIterator, {
1091
+ nested: true,
1092
+ attrs: _this2.v3 ? undefined : {
1093
+ nested: true,
1094
+ group: _this2.ks.props.group,
1095
+ resources: _this2.ks.props.resources
1096
+ },
1097
+ group: _this2.ks.props.group,
1098
+ resources: _this2.ks.props.resources
1099
+ }, [h(SchedulerResourceIteratorContext.Consumer, [function (_a) {
1100
+ var groupIndex = _a.groupIndex;
1101
+ return [h("div", {
1102
+ "class": "k-scheduler-row"
1103
+ }, [h(DayViewAllDayRowContent, {
1104
+ groupIndex: groupIndex,
1105
+ attrs: this.v3 ? undefined : {
1106
+ groupIndex: groupIndex
1107
+ }
1108
+ }), _this.dayRanges.map(function (_, rangeIndex) {
1109
+ var groupOffset = timeSlots.filter(function (s) {
1110
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
1111
+ }).length;
1112
+ return daySlots.filter(function (s) {
1113
+ return s.group.index === groupIndex && s.range.index === rangeIndex;
1114
+ }).map(function (slot, slotIndex) {
1115
+ return h(EditSlot, {
1116
+ renderSlot: this.$props.slot,
1117
+ attrs: this.v3 ? undefined : {
1118
+ renderSlot: this.$props.slot,
1119
+ viewSlot: this.$props.viewSlot,
1120
+ form: this.$props.form,
1121
+ index: slot.index,
1122
+ start: slot.start,
1123
+ end: slot.end,
1124
+ zonedStart: slot.zonedStart,
1125
+ zonedEnd: slot.zonedEnd,
1126
+ items: slot.items,
1127
+ group: slot.group,
1128
+ range: slot.range,
1129
+ isAllDay: slot.isAllDay,
1130
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
1131
+ col: slotIndex,
1132
+ expandable: true
1133
+ },
1134
+ viewSlot: this.$props.viewSlot,
1135
+ form: this.$props.form,
1136
+ index: slot.index,
1137
+ start: slot.start,
1138
+ end: slot.end,
1139
+ zonedStart: slot.zonedStart,
1140
+ zonedEnd: slot.zonedEnd,
1141
+ items: slot.items,
1142
+ group: slot.group,
1143
+ range: slot.range,
1144
+ isAllDay: slot.isAllDay,
1145
+ onDataaction: this.handleDataAction,
1146
+ on: this.v3 ? undefined : {
1147
+ "dataaction": this.handleDataAction
1148
+ },
1149
+ key: slot.start.getTime() + ":" + slot.group.index,
1150
+ "class": 'k-scheduler-alldays-slot',
1151
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
1152
+ col: slotIndex,
1153
+ expandable: true
1154
+ });
1155
+ }, this);
1156
+ }, _this)]), timeSlots.filter(function (s) {
1157
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
1158
+ }).map(function (root, rootIndex, filtered) {
1159
+ return h("div", {
1160
+ "class": "k-scheduler-row",
1161
+ key: root.index
1162
+ }, [h(DayViewRowContent, {
1163
+ contentSlot: root,
1164
+ attrs: this.v3 ? undefined : {
1165
+ contentSlot: root,
1166
+ isMaster: rootIndex % slotDivisions === 0,
1167
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1168
+ timeHeaderCell: this.$props.timeHeaderCell
1169
+ },
1170
+ isMaster: rootIndex % slotDivisions === 0,
1171
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1172
+ timeHeaderCell: this.$props.timeHeaderCell
1173
+ }), this.timeRanges.map(function (_, rangeIndex) {
1174
+ return timeSlots.filter(function (s) {
1175
+ return s.index === root.index && s.group.index === groupIndex && s.range.index === rangeIndex;
1176
+ }).map(function (slot) {
1177
+ return h(EditSlot, {
1178
+ renderSlot: this.$props.slot,
1179
+ attrs: this.v3 ? undefined : {
1180
+ renderSlot: this.$props.slot,
1181
+ viewSlot: this.$props.viewSlot,
1182
+ form: this.$props.form,
1183
+ index: slot.index,
1184
+ start: slot.start,
1185
+ end: slot.end,
1186
+ zonedStart: slot.zonedStart,
1187
+ zonedEnd: slot.zonedEnd,
1188
+ items: slot.items,
1189
+ group: slot.group,
1190
+ range: slot.range,
1191
+ isAllDay: slot.isAllDay,
1192
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
1193
+ col: rangeIndex,
1194
+ editable: this.$props.editable,
1195
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
1196
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
1197
+ },
1198
+ viewSlot: this.$props.viewSlot,
1199
+ form: this.$props.form,
1200
+ onDataaction: this.handleDataAction,
1201
+ on: this.v3 ? undefined : {
1202
+ "dataaction": this.handleDataAction
1203
+ },
1204
+ index: slot.index,
1205
+ start: slot.start,
1206
+ end: slot.end,
1207
+ zonedStart: slot.zonedStart,
1208
+ zonedEnd: slot.zonedEnd,
1209
+ items: slot.items,
1210
+ group: slot.group,
1211
+ range: slot.range,
1212
+ isAllDay: slot.isAllDay,
1213
+ key: slot.start.getTime() + ":" + slot.group.index,
1214
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
1215
+ col: rangeIndex,
1216
+ editable: this.$props.editable,
1217
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
1218
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
1219
+ });
1220
+ }, true);
1221
+ }, this)]);
1222
+ }, _this), _this.$props.currentTimeMarker && intersects(first(_this.timeRanges).start, last(_this.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker, {
1223
+ groupIndex: groupIndex,
1224
+ attrs: this.v3 ? undefined : {
1225
+ groupIndex: groupIndex
1226
+ }
1227
+ })];
1228
+ }])]), dayItems.map(function (item) {
1229
+ return h(EditItem, {
1230
+ key: item.isRecurring ? item.uid + ":" + item.group.index + " : " + item.range.index + " : " + item.originalStart : item.uid + ":" + item.group.index + " : " + item.range.index,
1231
+ uid: item.uid,
1232
+ attrs: this.v3 ? undefined : {
1233
+ uid: item.uid,
1234
+ start: item.start,
1235
+ end: item.end,
1236
+ originalStart: item.originalStart,
1237
+ startTimezone: item.startTimezone,
1238
+ endTimezone: item.endTimezone,
1239
+ isAllDay: item.isAllDay,
1240
+ title: item.title,
1241
+ description: item.description,
1242
+ occurrenceId: item.occurrenceId,
1243
+ recurrenceExceptions: item.recurrenceExceptions,
1244
+ recurrenceRule: item.recurrenceRule,
1245
+ recurrenceId: item.recurrenceId,
1246
+ dataItem: item.dataItem,
1247
+ itemRef: item.itemRef,
1248
+ head: item.head,
1249
+ tail: item.tail,
1250
+ order: item.order,
1251
+ zonedStart: item.zonedStart,
1252
+ zonedEnd: item.zonedEnd,
1253
+ slots: item.slots,
1254
+ group: item.group,
1255
+ range: item.range,
1256
+ isException: item.isException,
1257
+ isRecurring: item.isRecurring,
1258
+ viewItem: this.$props.viewItem,
1259
+ item: this.$props.item,
1260
+ form: this.$props.form,
1261
+ editable: this.$props.editable,
1262
+ vertical: false
1263
+ },
1264
+ start: item.start,
1265
+ end: item.end,
1266
+ originalStart: item.originalStart,
1267
+ startTimezone: item.startTimezone,
1268
+ endTimezone: item.endTimezone,
1269
+ isAllDay: item.isAllDay,
1270
+ title: item.title,
1271
+ description: item.description,
1272
+ occurrenceId: item.occurrenceId,
1273
+ recurrenceExceptions: item.recurrenceExceptions,
1274
+ recurrenceRule: item.recurrenceRule,
1275
+ recurrenceId: item.recurrenceId,
1276
+ dataItem: item.dataItem,
1277
+ itemRef: item.itemRef,
1278
+ head: item.head,
1279
+ tail: item.tail,
1280
+ order: item.order,
1281
+ zonedStart: item.zonedStart,
1282
+ zonedEnd: item.zonedEnd,
1283
+ slots: item.slots,
1284
+ group: item.group,
1285
+ range: item.range,
1286
+ isException: item.isException,
1287
+ isRecurring: item.isRecurring,
1288
+ onDataaction: this.handleDataAction,
1289
+ on: this.v3 ? undefined : {
1290
+ "dataaction": this.handleDataAction
1291
+ },
1292
+ viewItem: this.$props.viewItem,
1293
+ item: this.$props.item,
1294
+ form: this.$props.form,
1295
+ editable: this.$props.editable,
1296
+ vertical: false
1297
+ });
1298
+ }, _this2)], timeItems.map(function (item) {
1299
+ return h(EditItem, {
1300
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
1301
+ uid: item.uid,
1302
+ attrs: this.v3 ? undefined : {
1303
+ uid: item.uid,
1304
+ start: item.start,
1305
+ end: item.end,
1306
+ originalStart: item.originalStart,
1307
+ startTimezone: item.startTimezone,
1308
+ endTimezone: item.endTimezone,
1309
+ isAllDay: item.isAllDay,
1310
+ title: item.title,
1311
+ description: item.description,
1312
+ occurrenceId: item.occurrenceId,
1313
+ recurrenceExceptions: item.recurrenceExceptions,
1314
+ recurrenceRule: item.recurrenceRule,
1315
+ recurrenceId: item.recurrenceId,
1316
+ dataItem: item.dataItem,
1317
+ itemRef: item.itemRef,
1318
+ head: item.head,
1319
+ tail: item.tail,
1320
+ order: item.order,
1321
+ zonedStart: item.zonedStart,
1322
+ zonedEnd: item.zonedEnd,
1323
+ slots: item.slots,
1324
+ group: item.group,
1325
+ range: item.range,
1326
+ isException: item.isException,
1327
+ isRecurring: item.isRecurring,
1328
+ format: 't',
1329
+ viewItem: this.$props.viewItem,
1330
+ item: this.$props.item,
1331
+ form: this.$props.form,
1332
+ editable: this.$props.editable,
1333
+ vertical: true
1334
+ },
1335
+ start: item.start,
1336
+ end: item.end,
1337
+ originalStart: item.originalStart,
1338
+ startTimezone: item.startTimezone,
1339
+ endTimezone: item.endTimezone,
1340
+ isAllDay: item.isAllDay,
1341
+ title: item.title,
1342
+ description: item.description,
1343
+ occurrenceId: item.occurrenceId,
1344
+ recurrenceExceptions: item.recurrenceExceptions,
1345
+ recurrenceRule: item.recurrenceRule,
1346
+ recurrenceId: item.recurrenceId,
1347
+ dataItem: item.dataItem,
1348
+ itemRef: item.itemRef,
1349
+ head: item.head,
1350
+ tail: item.tail,
1351
+ order: item.order,
1352
+ zonedStart: item.zonedStart,
1353
+ zonedEnd: item.zonedEnd,
1354
+ slots: item.slots,
1355
+ group: item.group,
1356
+ range: item.range,
1357
+ isException: item.isException,
1358
+ isRecurring: item.isRecurring,
1359
+ format: 't',
1360
+ onDataaction: this.handleDataAction,
1361
+ on: this.v3 ? undefined : {
1362
+ "dataaction": this.handleDataAction
1363
+ },
1364
+ viewItem: this.$props.viewItem,
1365
+ item: this.$props.item,
1366
+ form: this.$props.form,
1367
+ editable: this.$props.editable,
1368
+ vertical: true
1369
+ });
1370
+ }, _this2)])])
1371
+ );
1372
+ },
1373
+ methods: {
1374
+ handleDataAction: function handleDataAction(action) {
1375
+ this.$emit('dataaction', action);
1376
+ }
1377
+ }
1378
+ };
1379
+
1380
+ var multiDayViewDateRange = function multiDayViewDateRange(_a) {
1381
+ var date = _a.date,
1382
+ _b = _a.numberOfDays,
1383
+ numberOfDays = _b === void 0 ? 1 : _b,
1384
+ timezone = _a.timezone;
1385
+ var normalized = ZonedDate.fromLocalDate(date, timezone);
1386
+ var firstDay = getDate(normalized);
1387
+ var lastDay = addDays(firstDay, numberOfDays);
1388
+ var zonedStart = ZonedDate.fromUTCDate(toUTCDateTime(firstDay), timezone);
1389
+ var zonedEnd = ZonedDate.fromUTCDate(toUTCDateTime(lastDay), timezone);
1390
+ var start = new Date(zonedStart.getTime());
1391
+ var end = new Date(zonedEnd.getTime());
1392
+ return {
1393
+ start: start,
1394
+ end: end,
1395
+ zonedStart: zonedStart,
1396
+ zonedEnd: zonedEnd
1397
+ };
1398
+ };
1399
+
1400
+ var MultiDayView = MultiDayViewVue2;
1401
+ export { MultiDayView, MultiDayViewVue2, multiDayViewDateRange };