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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1163 -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 +154 -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 +1059 -0
  95. package/dist/es/items/SchedulerItem.d.ts +219 -0
  96. package/dist/es/items/SchedulerItem.js +420 -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 +411 -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 +95 -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 +1397 -0
  253. package/dist/es/views/month/MonthView.d.ts +100 -0
  254. package/dist/es/views/month/MonthView.js +531 -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 +479 -0
  261. package/dist/es/views/time/TimelineView.d.ts +41 -0
  262. package/dist/es/views/time/TimelineView.js +114 -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 +124 -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 +1190 -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 +164 -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 +1079 -0
  366. package/dist/npm/items/SchedulerItem.d.ts +219 -0
  367. package/dist/npm/items/SchedulerItem.js +435 -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 +426 -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 +107 -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 +1425 -0
  524. package/dist/npm/views/month/MonthView.d.ts +100 -0
  525. package/dist/npm/views/month/MonthView.js +556 -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 +508 -0
  532. package/dist/npm/views/time/TimelineView.d.ts +41 -0
  533. package/dist/npm/views/time/TimelineView.js +124 -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 +139 -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,1397 @@
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); // mapItemsToSlots(this.dayItems, this.daySlots, false);
254
+ // mapSlotsToItems(this.dayItems, this.daySlots, false);
255
+ // mapItemsToSlots(this.timeItems, this.timeSlots, false);
256
+ // mapSlotsToItems(this.timeItems, this.timeSlots, false);
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
+ return (// @ts-ignore function children
284
+ h(BaseView, {
285
+ id: this.$props.id,
286
+ attrs: this.v3 ? undefined : {
287
+ id: this.$props.id,
288
+ props: this.$props,
289
+ ranges: __spreadArrays(this.dayRanges, this.timeRanges),
290
+ baseSlots: __spreadArrays(this.daySlots, this.timeSlots)
291
+ },
292
+ props: this.$props,
293
+ "class": 'k-scheduler-day-view',
294
+ ranges: __spreadArrays(this.dayRanges, this.timeRanges),
295
+ baseSlots: __spreadArrays(this.daySlots, this.timeSlots)
296
+ }, this.v3 ? function () {
297
+ return [h("div", {
298
+ "class": "k-scheduler-head"
299
+ }, [_this2.ks.orientation === 'horizontal' ? [// @ts-ignore function children
300
+ h(HorizontalResourceIterator, {
301
+ nested: true,
302
+ attrs: _this2.v3 ? undefined : {
303
+ nested: true,
304
+ group: _this2.ks.props.group,
305
+ resources: _this2.ks.props.resources,
306
+ rowContent: DayViewGroupRowContent,
307
+ childRowContent: DayViewGroupRowContent
308
+ },
309
+ group: _this2.ks.props.group,
310
+ resources: _this2.ks.props.resources,
311
+ rowContent: DayViewGroupRowContent,
312
+ childRowContent: DayViewGroupRowContent
313
+ }, _this2.v3 ? function () {
314
+ return [h(DayViewHead, {
315
+ timeRanges: _this2.timeRanges,
316
+ attrs: _this2.v3 ? undefined : {
317
+ timeRanges: _this2.timeRanges,
318
+ dateHeaderCell: _this2.$props.dateHeaderCell
319
+ },
320
+ dateHeaderCell: _this2.$props.dateHeaderCell
321
+ })];
322
+ } : [h(DayViewHead, {
323
+ timeRanges: _this2.timeRanges,
324
+ attrs: _this2.v3 ? undefined : {
325
+ timeRanges: _this2.timeRanges,
326
+ dateHeaderCell: _this2.$props.dateHeaderCell
327
+ },
328
+ dateHeaderCell: _this2.$props.dateHeaderCell
329
+ })]), // @ts-ignore function children
330
+ h(HorizontalResourceIterator, {
331
+ group: _this2.ks.props.group,
332
+ attrs: _this2.v3 ? undefined : {
333
+ group: _this2.ks.props.group,
334
+ resources: _this2.ks.props.resources,
335
+ rowContent: DayViewAllDayRowContent,
336
+ childRowContent: DayViewAllDayRowContent
337
+ },
338
+ resources: _this2.ks.props.resources,
339
+ rowContent: DayViewAllDayRowContent,
340
+ childRowContent: DayViewAllDayRowContent
341
+ }, _this2.v3 ? function () {
342
+ return [h(DayViewAllDaySlots, {
343
+ dayRanges: _this2.dayRanges,
344
+ attrs: _this2.v3 ? undefined : {
345
+ dayRanges: _this2.dayRanges,
346
+ daySlots: _this2.daySlots,
347
+ numberOfDays: numberOfDays,
348
+ workWeekStart: workWeekStart,
349
+ workWeekEnd: workWeekEnd
350
+ },
351
+ daySlots: _this2.daySlots,
352
+ numberOfDays: numberOfDays,
353
+ workWeekStart: workWeekStart,
354
+ workWeekEnd: workWeekEnd,
355
+ onDataaction: _this2.handleDataAction,
356
+ on: _this2.v3 ? undefined : {
357
+ "dataaction": _this2.handleDataAction
358
+ }
359
+ })];
360
+ } : [h(DayViewAllDaySlots, {
361
+ dayRanges: _this2.dayRanges,
362
+ attrs: _this2.v3 ? undefined : {
363
+ dayRanges: _this2.dayRanges,
364
+ daySlots: _this2.daySlots,
365
+ numberOfDays: numberOfDays,
366
+ workWeekStart: workWeekStart,
367
+ workWeekEnd: workWeekEnd
368
+ },
369
+ daySlots: _this2.daySlots,
370
+ numberOfDays: numberOfDays,
371
+ workWeekStart: workWeekStart,
372
+ workWeekEnd: workWeekEnd,
373
+ onDataaction: _this2.handleDataAction,
374
+ on: _this2.v3 ? undefined : {
375
+ "dataaction": _this2.handleDataAction
376
+ }
377
+ })]), _this2.dayItems.map(function (item) {
378
+ return h(EditItem, {
379
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
380
+ uid: item.uid,
381
+ attrs: this.v3 ? undefined : {
382
+ uid: item.uid,
383
+ start: item.start,
384
+ end: item.end,
385
+ originalStart: item.originalStart,
386
+ startTimezone: item.startTimezone,
387
+ endTimezone: item.endTimezone,
388
+ isAllDay: item.isAllDay,
389
+ title: item.title,
390
+ description: item.description,
391
+ occurrenceId: item.occurrenceId,
392
+ recurrenceExceptions: item.recurrenceExceptions,
393
+ recurrenceRule: item.recurrenceRule,
394
+ recurrenceId: item.recurrenceId,
395
+ dataItem: item.dataItem,
396
+ itemRef: item.itemRef,
397
+ head: item.head,
398
+ tail: item.tail,
399
+ order: item.order,
400
+ zonedStart: item.zonedStart,
401
+ zonedEnd: item.zonedEnd,
402
+ slots: item.slots,
403
+ group: item.group,
404
+ range: item.range,
405
+ isException: item.isException,
406
+ isRecurring: item.isRecurring,
407
+ form: this.$props.form,
408
+ item: this.$props.item,
409
+ viewItem: this.$props.viewItem,
410
+ editable: this.$props.editable,
411
+ vertical: false
412
+ },
413
+ start: item.start,
414
+ end: item.end,
415
+ originalStart: item.originalStart,
416
+ startTimezone: item.startTimezone,
417
+ endTimezone: item.endTimezone,
418
+ isAllDay: item.isAllDay,
419
+ title: item.title,
420
+ description: item.description,
421
+ occurrenceId: item.occurrenceId,
422
+ recurrenceExceptions: item.recurrenceExceptions,
423
+ recurrenceRule: item.recurrenceRule,
424
+ recurrenceId: item.recurrenceId,
425
+ dataItem: item.dataItem,
426
+ itemRef: item.itemRef,
427
+ head: item.head,
428
+ tail: item.tail,
429
+ order: item.order,
430
+ zonedStart: item.zonedStart,
431
+ zonedEnd: item.zonedEnd,
432
+ slots: item.slots,
433
+ group: item.group,
434
+ range: item.range,
435
+ isException: item.isException,
436
+ isRecurring: item.isRecurring,
437
+ form: this.$props.form,
438
+ onDataaction: this.handleDataAction,
439
+ on: this.v3 ? undefined : {
440
+ "dataaction": this.handleDataAction
441
+ },
442
+ item: this.$props.item,
443
+ viewItem: this.$props.viewItem,
444
+ editable: this.$props.editable,
445
+ vertical: false
446
+ });
447
+ }, _this2)] : h(VerticalResourceIterator, {
448
+ group: _this2.ks.props.group,
449
+ attrs: _this2.v3 ? undefined : {
450
+ group: _this2.ks.props.group,
451
+ resources: _this2.ks.props.resources,
452
+ emptyCell: true
453
+ },
454
+ resources: _this2.ks.props.resources,
455
+ emptyCell: true
456
+ }, [h(DayViewHead, {
457
+ timeRanges: _this2.timeRanges,
458
+ attrs: _this2.v3 ? undefined : {
459
+ timeRanges: _this2.timeRanges,
460
+ dateHeaderCell: _this2.$props.dateHeaderCell
461
+ },
462
+ dateHeaderCell: _this2.$props.dateHeaderCell
463
+ })])]), h("div", {
464
+ "class": "k-scheduler-body"
465
+ }, [_this2.ks.orientation === 'horizontal' ? [_this2.timeSlots.filter(function (slot) {
466
+ return slot.group.index === FIRST_INDEX && slot.range.index === FIRST_INDEX;
467
+ }).map(function (root, rootIndex) {
468
+ var _this3 = this;
469
+
470
+ return (// @ts-ignore function children
471
+ h(HorizontalResourceIterator, {
472
+ key: root.index,
473
+ nested: false,
474
+ attrs: this.v3 ? undefined : {
475
+ nested: false,
476
+ group: this.ks.props.group,
477
+ resources: this.ks.props.resources,
478
+ rowContent: DayViewRowContent,
479
+ rowContentProps: {
480
+ timeHeaderCell: this.$props.timeHeaderCell,
481
+ isMaster: rootIndex % slotDivisions === 0,
482
+ isLast: (rootIndex + 1) % slotDivisions === 0,
483
+ contentSlot: root
484
+ }
485
+ },
486
+ group: this.ks.props.group,
487
+ resources: this.ks.props.resources,
488
+ rowContent: DayViewRowContent,
489
+ rowContentProps: {
490
+ timeHeaderCell: this.$props.timeHeaderCell,
491
+ isMaster: rootIndex % slotDivisions === 0,
492
+ isLast: (rootIndex + 1) % slotDivisions === 0,
493
+ contentSlot: root
494
+ }
495
+ }, this.v3 ? function () {
496
+ return [h(DayViewMiddleRow, {
497
+ timeRanges: _this3.timeRanges,
498
+ attrs: _this3.v3 ? undefined : {
499
+ timeRanges: _this3.timeRanges,
500
+ timeSlots: _this3.timeSlots,
501
+ slotDivisions: slotDivisions,
502
+ rootIndex: rootIndex,
503
+ root: root,
504
+ numberOfDays: numberOfDays,
505
+ workDayStart: workDayStart,
506
+ workDayEnd: workDayEnd,
507
+ workWeekStart: workWeekStart,
508
+ workWeekEnd: workWeekEnd
509
+ },
510
+ timeSlots: _this3.timeSlots,
511
+ slotDivisions: slotDivisions,
512
+ rootIndex: rootIndex,
513
+ root: root,
514
+ numberOfDays: numberOfDays,
515
+ workDayStart: workDayStart,
516
+ workDayEnd: workDayEnd,
517
+ workWeekStart: workWeekStart,
518
+ workWeekEnd: workWeekEnd,
519
+ onDataaction: _this3.handleDataAction,
520
+ on: _this3.v3 ? undefined : {
521
+ "dataaction": _this3.handleDataAction
522
+ }
523
+ })];
524
+ } : [h(DayViewMiddleRow, {
525
+ timeRanges: _this3.timeRanges,
526
+ attrs: _this3.v3 ? undefined : {
527
+ timeRanges: _this3.timeRanges,
528
+ timeSlots: _this3.timeSlots,
529
+ slotDivisions: slotDivisions,
530
+ rootIndex: rootIndex,
531
+ root: root,
532
+ numberOfDays: numberOfDays,
533
+ workDayStart: workDayStart,
534
+ workDayEnd: workDayEnd,
535
+ workWeekStart: workWeekStart,
536
+ workWeekEnd: workWeekEnd
537
+ },
538
+ timeSlots: _this3.timeSlots,
539
+ slotDivisions: slotDivisions,
540
+ rootIndex: rootIndex,
541
+ root: root,
542
+ numberOfDays: numberOfDays,
543
+ workDayStart: workDayStart,
544
+ workDayEnd: workDayEnd,
545
+ workWeekStart: workWeekStart,
546
+ workWeekEnd: workWeekEnd,
547
+ onDataaction: _this3.handleDataAction,
548
+ on: _this3.v3 ? undefined : {
549
+ "dataaction": _this3.handleDataAction
550
+ }
551
+ })])
552
+ );
553
+ }, _this2), _this2.$props.currentTimeMarker && intersects(first(_this2.timeRanges).start, last(_this2.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker)] : [h(VerticalResourceIterator, {
554
+ nested: true,
555
+ attrs: _this2.v3 ? undefined : {
556
+ nested: true,
557
+ group: _this2.ks.props.group,
558
+ resources: _this2.ks.props.resources
559
+ },
560
+ group: _this2.ks.props.group,
561
+ resources: _this2.ks.props.resources
562
+ }, [h(SchedulerResourceIteratorContext.Consumer, [function (_a) {
563
+ var groupIndex = _a.groupIndex;
564
+ return [h("div", {
565
+ "class": "k-scheduler-row"
566
+ }, [h(DayViewAllDayRowContent, {
567
+ groupIndex: groupIndex,
568
+ attrs: this.v3 ? undefined : {
569
+ groupIndex: groupIndex
570
+ }
571
+ }), _this.dayRanges.map(function (_, rangeIndex) {
572
+ var groupOffset = this.timeSlots.filter(function (s) {
573
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
574
+ }).length;
575
+ return this.daySlots.filter(function (s) {
576
+ return s.group.index === groupIndex && s.range.index === rangeIndex;
577
+ }).map(function (slot, slotIndex) {
578
+ return h(EditSlot, {
579
+ renderSlot: this.$props.slot,
580
+ attrs: this.v3 ? undefined : {
581
+ renderSlot: this.$props.slot,
582
+ viewSlot: this.$props.viewSlot,
583
+ form: this.$props.form,
584
+ index: slot.index,
585
+ start: slot.start,
586
+ end: slot.end,
587
+ zonedStart: slot.zonedStart,
588
+ zonedEnd: slot.zonedEnd,
589
+ items: slot.items,
590
+ group: slot.group,
591
+ range: slot.range,
592
+ isAllDay: slot.isAllDay,
593
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
594
+ col: slotIndex,
595
+ expandable: true
596
+ },
597
+ viewSlot: this.$props.viewSlot,
598
+ form: this.$props.form,
599
+ index: slot.index,
600
+ start: slot.start,
601
+ end: slot.end,
602
+ zonedStart: slot.zonedStart,
603
+ zonedEnd: slot.zonedEnd,
604
+ items: slot.items,
605
+ group: slot.group,
606
+ range: slot.range,
607
+ isAllDay: slot.isAllDay,
608
+ onDataaction: this.handleDataAction,
609
+ on: this.v3 ? undefined : {
610
+ "dataaction": this.handleDataAction
611
+ },
612
+ key: slot.start.getTime() + ":" + slot.group.index,
613
+ "class": 'k-scheduler-alldays-slot',
614
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
615
+ col: slotIndex,
616
+ expandable: true
617
+ });
618
+ }, this);
619
+ }, _this)]), _this.timeSlots.filter(function (s) {
620
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
621
+ }).map(function (root, rootIndex, filtered) {
622
+ return h("div", {
623
+ "class": "k-scheduler-row",
624
+ key: root.index
625
+ }, [h(DayViewRowContent, {
626
+ contentSlot: root,
627
+ attrs: this.v3 ? undefined : {
628
+ contentSlot: root,
629
+ isMaster: rootIndex % slotDivisions === 0,
630
+ isLast: (rootIndex + 1) % slotDivisions === 0,
631
+ timeHeaderCell: this.$props.timeHeaderCell
632
+ },
633
+ isMaster: rootIndex % slotDivisions === 0,
634
+ isLast: (rootIndex + 1) % slotDivisions === 0,
635
+ timeHeaderCell: this.$props.timeHeaderCell
636
+ }), this.timeRanges.map(function (_, rangeIndex) {
637
+ return this.timeSlots.filter(function (s) {
638
+ return s.index === root.index && s.group.index === groupIndex && s.range.index === rangeIndex;
639
+ }).map(function (slot) {
640
+ return h(EditSlot, {
641
+ renderSlot: this.$props.slot,
642
+ attrs: this.v3 ? undefined : {
643
+ renderSlot: this.$props.slot,
644
+ viewSlot: this.$props.viewSlot,
645
+ form: this.$props.form,
646
+ index: slot.index,
647
+ start: slot.start,
648
+ end: slot.end,
649
+ zonedStart: slot.zonedStart,
650
+ zonedEnd: slot.zonedEnd,
651
+ items: slot.items,
652
+ group: slot.group,
653
+ range: slot.range,
654
+ isAllDay: slot.isAllDay,
655
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
656
+ col: rangeIndex,
657
+ editable: this.$props.editable,
658
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
659
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
660
+ },
661
+ viewSlot: this.$props.viewSlot,
662
+ form: this.$props.form,
663
+ onDataaction: this.handleDataAction,
664
+ on: this.v3 ? undefined : {
665
+ "dataaction": this.handleDataAction
666
+ },
667
+ index: slot.index,
668
+ start: slot.start,
669
+ end: slot.end,
670
+ zonedStart: slot.zonedStart,
671
+ zonedEnd: slot.zonedEnd,
672
+ items: slot.items,
673
+ group: slot.group,
674
+ range: slot.range,
675
+ isAllDay: slot.isAllDay,
676
+ key: slot.start.getTime() + ":" + slot.group.index,
677
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
678
+ col: rangeIndex,
679
+ editable: this.$props.editable,
680
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
681
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
682
+ });
683
+ }, true);
684
+ }, this)]);
685
+ }, _this), _this.$props.currentTimeMarker && intersects(first(_this.timeRanges).start, last(_this.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker, {
686
+ groupIndex: groupIndex,
687
+ attrs: this.v3 ? undefined : {
688
+ groupIndex: groupIndex
689
+ }
690
+ })];
691
+ }])]), _this2.dayItems.map(function (item) {
692
+ return h(EditItem, {
693
+ key: item.isRecurring ? item.uid + ":" + item.group.index + " : " + item.range.index + " : " + item.originalStart : item.uid + ":" + item.group.index + " : " + item.range.index,
694
+ uid: item.uid,
695
+ attrs: this.v3 ? undefined : {
696
+ uid: item.uid,
697
+ start: item.start,
698
+ end: item.end,
699
+ originalStart: item.originalStart,
700
+ startTimezone: item.startTimezone,
701
+ endTimezone: item.endTimezone,
702
+ isAllDay: item.isAllDay,
703
+ title: item.title,
704
+ description: item.description,
705
+ occurrenceId: item.occurrenceId,
706
+ recurrenceExceptions: item.recurrenceExceptions,
707
+ recurrenceRule: item.recurrenceRule,
708
+ recurrenceId: item.recurrenceId,
709
+ dataItem: item.dataItem,
710
+ itemRef: item.itemRef,
711
+ head: item.head,
712
+ tail: item.tail,
713
+ order: item.order,
714
+ zonedStart: item.zonedStart,
715
+ zonedEnd: item.zonedEnd,
716
+ slots: item.slots,
717
+ group: item.group,
718
+ range: item.range,
719
+ isException: item.isException,
720
+ isRecurring: item.isRecurring,
721
+ viewItem: this.$props.viewItem,
722
+ item: this.$props.item,
723
+ form: this.$props.form,
724
+ editable: this.$props.editable,
725
+ vertical: false
726
+ },
727
+ start: item.start,
728
+ end: item.end,
729
+ originalStart: item.originalStart,
730
+ startTimezone: item.startTimezone,
731
+ endTimezone: item.endTimezone,
732
+ isAllDay: item.isAllDay,
733
+ title: item.title,
734
+ description: item.description,
735
+ occurrenceId: item.occurrenceId,
736
+ recurrenceExceptions: item.recurrenceExceptions,
737
+ recurrenceRule: item.recurrenceRule,
738
+ recurrenceId: item.recurrenceId,
739
+ dataItem: item.dataItem,
740
+ itemRef: item.itemRef,
741
+ head: item.head,
742
+ tail: item.tail,
743
+ order: item.order,
744
+ zonedStart: item.zonedStart,
745
+ zonedEnd: item.zonedEnd,
746
+ slots: item.slots,
747
+ group: item.group,
748
+ range: item.range,
749
+ isException: item.isException,
750
+ isRecurring: item.isRecurring,
751
+ onDataaction: this.handleDataAction,
752
+ on: this.v3 ? undefined : {
753
+ "dataaction": this.handleDataAction
754
+ },
755
+ viewItem: this.$props.viewItem,
756
+ item: this.$props.item,
757
+ form: this.$props.form,
758
+ editable: this.$props.editable,
759
+ vertical: false
760
+ });
761
+ }, _this2)], _this2.timeItems.map(function (item) {
762
+ return h(EditItem, {
763
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
764
+ uid: item.uid,
765
+ attrs: this.v3 ? undefined : {
766
+ uid: item.uid,
767
+ start: item.start,
768
+ end: item.end,
769
+ originalStart: item.originalStart,
770
+ startTimezone: item.startTimezone,
771
+ endTimezone: item.endTimezone,
772
+ isAllDay: item.isAllDay,
773
+ title: item.title,
774
+ description: item.description,
775
+ occurrenceId: item.occurrenceId,
776
+ recurrenceExceptions: item.recurrenceExceptions,
777
+ recurrenceRule: item.recurrenceRule,
778
+ recurrenceId: item.recurrenceId,
779
+ dataItem: item.dataItem,
780
+ itemRef: item.itemRef,
781
+ head: item.head,
782
+ tail: item.tail,
783
+ order: item.order,
784
+ zonedStart: item.zonedStart,
785
+ zonedEnd: item.zonedEnd,
786
+ slots: item.slots,
787
+ group: item.group,
788
+ range: item.range,
789
+ isException: item.isException,
790
+ isRecurring: item.isRecurring,
791
+ format: 't',
792
+ viewItem: this.$props.viewItem,
793
+ item: this.$props.item,
794
+ form: this.$props.form,
795
+ editable: this.$props.editable,
796
+ vertical: true
797
+ },
798
+ start: item.start,
799
+ end: item.end,
800
+ originalStart: item.originalStart,
801
+ startTimezone: item.startTimezone,
802
+ endTimezone: item.endTimezone,
803
+ isAllDay: item.isAllDay,
804
+ title: item.title,
805
+ description: item.description,
806
+ occurrenceId: item.occurrenceId,
807
+ recurrenceExceptions: item.recurrenceExceptions,
808
+ recurrenceRule: item.recurrenceRule,
809
+ recurrenceId: item.recurrenceId,
810
+ dataItem: item.dataItem,
811
+ itemRef: item.itemRef,
812
+ head: item.head,
813
+ tail: item.tail,
814
+ order: item.order,
815
+ zonedStart: item.zonedStart,
816
+ zonedEnd: item.zonedEnd,
817
+ slots: item.slots,
818
+ group: item.group,
819
+ range: item.range,
820
+ isException: item.isException,
821
+ isRecurring: item.isRecurring,
822
+ format: 't',
823
+ onDataaction: this.handleDataAction,
824
+ on: this.v3 ? undefined : {
825
+ "dataaction": this.handleDataAction
826
+ },
827
+ viewItem: this.$props.viewItem,
828
+ item: this.$props.item,
829
+ form: this.$props.form,
830
+ editable: this.$props.editable,
831
+ vertical: true
832
+ });
833
+ }, _this2)])];
834
+ } : [h("div", {
835
+ "class": "k-scheduler-head"
836
+ }, [_this2.ks.orientation === 'horizontal' ? [h(HorizontalResourceIterator, {
837
+ nested: true,
838
+ attrs: _this2.v3 ? undefined : {
839
+ nested: true,
840
+ group: _this2.ks.props.group,
841
+ resources: _this2.ks.props.resources,
842
+ rowContent: DayViewGroupRowContent,
843
+ childRowContent: DayViewGroupRowContent
844
+ },
845
+ group: _this2.ks.props.group,
846
+ resources: _this2.ks.props.resources,
847
+ rowContent: DayViewGroupRowContent,
848
+ childRowContent: DayViewGroupRowContent
849
+ }, _this2.v3 ? function () {
850
+ return [h(DayViewHead, {
851
+ timeRanges: _this2.timeRanges,
852
+ attrs: _this2.v3 ? undefined : {
853
+ timeRanges: _this2.timeRanges,
854
+ dateHeaderCell: _this2.$props.dateHeaderCell
855
+ },
856
+ dateHeaderCell: _this2.$props.dateHeaderCell
857
+ })];
858
+ } : [h(DayViewHead, {
859
+ timeRanges: _this2.timeRanges,
860
+ attrs: _this2.v3 ? undefined : {
861
+ timeRanges: _this2.timeRanges,
862
+ dateHeaderCell: _this2.$props.dateHeaderCell
863
+ },
864
+ dateHeaderCell: _this2.$props.dateHeaderCell
865
+ })]), h(HorizontalResourceIterator, {
866
+ group: _this2.ks.props.group,
867
+ attrs: _this2.v3 ? undefined : {
868
+ group: _this2.ks.props.group,
869
+ resources: _this2.ks.props.resources,
870
+ rowContent: DayViewAllDayRowContent,
871
+ childRowContent: DayViewAllDayRowContent
872
+ },
873
+ resources: _this2.ks.props.resources,
874
+ rowContent: DayViewAllDayRowContent,
875
+ childRowContent: DayViewAllDayRowContent
876
+ }, _this2.v3 ? function () {
877
+ return [h(DayViewAllDaySlots, {
878
+ dayRanges: _this2.dayRanges,
879
+ attrs: _this2.v3 ? undefined : {
880
+ dayRanges: _this2.dayRanges,
881
+ daySlots: _this2.daySlots,
882
+ numberOfDays: numberOfDays,
883
+ workWeekStart: workWeekStart,
884
+ workWeekEnd: workWeekEnd
885
+ },
886
+ daySlots: _this2.daySlots,
887
+ numberOfDays: numberOfDays,
888
+ workWeekStart: workWeekStart,
889
+ workWeekEnd: workWeekEnd,
890
+ onDataaction: _this2.handleDataAction,
891
+ on: _this2.v3 ? undefined : {
892
+ "dataaction": _this2.handleDataAction
893
+ }
894
+ })];
895
+ } : [h(DayViewAllDaySlots, {
896
+ dayRanges: _this2.dayRanges,
897
+ attrs: _this2.v3 ? undefined : {
898
+ dayRanges: _this2.dayRanges,
899
+ daySlots: _this2.daySlots,
900
+ numberOfDays: numberOfDays,
901
+ workWeekStart: workWeekStart,
902
+ workWeekEnd: workWeekEnd
903
+ },
904
+ daySlots: _this2.daySlots,
905
+ numberOfDays: numberOfDays,
906
+ workWeekStart: workWeekStart,
907
+ workWeekEnd: workWeekEnd,
908
+ onDataaction: _this2.handleDataAction,
909
+ on: _this2.v3 ? undefined : {
910
+ "dataaction": _this2.handleDataAction
911
+ }
912
+ })]), _this2.dayItems.map(function (item) {
913
+ return h(EditItem, {
914
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
915
+ uid: item.uid,
916
+ attrs: this.v3 ? undefined : {
917
+ uid: item.uid,
918
+ start: item.start,
919
+ end: item.end,
920
+ originalStart: item.originalStart,
921
+ startTimezone: item.startTimezone,
922
+ endTimezone: item.endTimezone,
923
+ isAllDay: item.isAllDay,
924
+ title: item.title,
925
+ description: item.description,
926
+ occurrenceId: item.occurrenceId,
927
+ recurrenceExceptions: item.recurrenceExceptions,
928
+ recurrenceRule: item.recurrenceRule,
929
+ recurrenceId: item.recurrenceId,
930
+ dataItem: item.dataItem,
931
+ itemRef: item.itemRef,
932
+ head: item.head,
933
+ tail: item.tail,
934
+ order: item.order,
935
+ zonedStart: item.zonedStart,
936
+ zonedEnd: item.zonedEnd,
937
+ slots: item.slots,
938
+ group: item.group,
939
+ range: item.range,
940
+ isException: item.isException,
941
+ isRecurring: item.isRecurring,
942
+ form: this.$props.form,
943
+ item: this.$props.item,
944
+ viewItem: this.$props.viewItem,
945
+ editable: this.$props.editable,
946
+ vertical: false
947
+ },
948
+ start: item.start,
949
+ end: item.end,
950
+ originalStart: item.originalStart,
951
+ startTimezone: item.startTimezone,
952
+ endTimezone: item.endTimezone,
953
+ isAllDay: item.isAllDay,
954
+ title: item.title,
955
+ description: item.description,
956
+ occurrenceId: item.occurrenceId,
957
+ recurrenceExceptions: item.recurrenceExceptions,
958
+ recurrenceRule: item.recurrenceRule,
959
+ recurrenceId: item.recurrenceId,
960
+ dataItem: item.dataItem,
961
+ itemRef: item.itemRef,
962
+ head: item.head,
963
+ tail: item.tail,
964
+ order: item.order,
965
+ zonedStart: item.zonedStart,
966
+ zonedEnd: item.zonedEnd,
967
+ slots: item.slots,
968
+ group: item.group,
969
+ range: item.range,
970
+ isException: item.isException,
971
+ isRecurring: item.isRecurring,
972
+ form: this.$props.form,
973
+ onDataaction: this.handleDataAction,
974
+ on: this.v3 ? undefined : {
975
+ "dataaction": this.handleDataAction
976
+ },
977
+ item: this.$props.item,
978
+ viewItem: this.$props.viewItem,
979
+ editable: this.$props.editable,
980
+ vertical: false
981
+ });
982
+ }, _this2)] : h(VerticalResourceIterator, {
983
+ group: _this2.ks.props.group,
984
+ attrs: _this2.v3 ? undefined : {
985
+ group: _this2.ks.props.group,
986
+ resources: _this2.ks.props.resources,
987
+ emptyCell: true
988
+ },
989
+ resources: _this2.ks.props.resources,
990
+ emptyCell: true
991
+ }, [h(DayViewHead, {
992
+ timeRanges: _this2.timeRanges,
993
+ attrs: _this2.v3 ? undefined : {
994
+ timeRanges: _this2.timeRanges,
995
+ dateHeaderCell: _this2.$props.dateHeaderCell
996
+ },
997
+ dateHeaderCell: _this2.$props.dateHeaderCell
998
+ })])]), h("div", {
999
+ "class": "k-scheduler-body"
1000
+ }, [_this2.ks.orientation === 'horizontal' ? [_this2.timeSlots.filter(function (slot) {
1001
+ return slot.group.index === FIRST_INDEX && slot.range.index === FIRST_INDEX;
1002
+ }).map(function (root, rootIndex) {
1003
+ var _this3 = this;
1004
+
1005
+ return h(HorizontalResourceIterator, {
1006
+ key: root.index,
1007
+ nested: false,
1008
+ attrs: this.v3 ? undefined : {
1009
+ nested: false,
1010
+ group: this.ks.props.group,
1011
+ resources: this.ks.props.resources,
1012
+ rowContent: DayViewRowContent,
1013
+ rowContentProps: {
1014
+ timeHeaderCell: this.$props.timeHeaderCell,
1015
+ isMaster: rootIndex % slotDivisions === 0,
1016
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1017
+ contentSlot: root
1018
+ }
1019
+ },
1020
+ group: this.ks.props.group,
1021
+ resources: this.ks.props.resources,
1022
+ rowContent: DayViewRowContent,
1023
+ rowContentProps: {
1024
+ timeHeaderCell: this.$props.timeHeaderCell,
1025
+ isMaster: rootIndex % slotDivisions === 0,
1026
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1027
+ contentSlot: root
1028
+ }
1029
+ }, this.v3 ? function () {
1030
+ return [h(DayViewMiddleRow, {
1031
+ timeRanges: _this3.timeRanges,
1032
+ attrs: _this3.v3 ? undefined : {
1033
+ timeRanges: _this3.timeRanges,
1034
+ timeSlots: _this3.timeSlots,
1035
+ slotDivisions: slotDivisions,
1036
+ rootIndex: rootIndex,
1037
+ root: root,
1038
+ numberOfDays: numberOfDays,
1039
+ workDayStart: workDayStart,
1040
+ workDayEnd: workDayEnd,
1041
+ workWeekStart: workWeekStart,
1042
+ workWeekEnd: workWeekEnd
1043
+ },
1044
+ timeSlots: _this3.timeSlots,
1045
+ slotDivisions: slotDivisions,
1046
+ rootIndex: rootIndex,
1047
+ root: root,
1048
+ numberOfDays: numberOfDays,
1049
+ workDayStart: workDayStart,
1050
+ workDayEnd: workDayEnd,
1051
+ workWeekStart: workWeekStart,
1052
+ workWeekEnd: workWeekEnd,
1053
+ onDataaction: _this3.handleDataAction,
1054
+ on: _this3.v3 ? undefined : {
1055
+ "dataaction": _this3.handleDataAction
1056
+ }
1057
+ })];
1058
+ } : [h(DayViewMiddleRow, {
1059
+ timeRanges: _this3.timeRanges,
1060
+ attrs: _this3.v3 ? undefined : {
1061
+ timeRanges: _this3.timeRanges,
1062
+ timeSlots: _this3.timeSlots,
1063
+ slotDivisions: slotDivisions,
1064
+ rootIndex: rootIndex,
1065
+ root: root,
1066
+ numberOfDays: numberOfDays,
1067
+ workDayStart: workDayStart,
1068
+ workDayEnd: workDayEnd,
1069
+ workWeekStart: workWeekStart,
1070
+ workWeekEnd: workWeekEnd
1071
+ },
1072
+ timeSlots: _this3.timeSlots,
1073
+ slotDivisions: slotDivisions,
1074
+ rootIndex: rootIndex,
1075
+ root: root,
1076
+ numberOfDays: numberOfDays,
1077
+ workDayStart: workDayStart,
1078
+ workDayEnd: workDayEnd,
1079
+ workWeekStart: workWeekStart,
1080
+ workWeekEnd: workWeekEnd,
1081
+ onDataaction: _this3.handleDataAction,
1082
+ on: _this3.v3 ? undefined : {
1083
+ "dataaction": _this3.handleDataAction
1084
+ }
1085
+ })]);
1086
+ }, _this2), _this2.$props.currentTimeMarker && intersects(first(_this2.timeRanges).start, last(_this2.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker)] : [h(VerticalResourceIterator, {
1087
+ nested: true,
1088
+ attrs: _this2.v3 ? undefined : {
1089
+ nested: true,
1090
+ group: _this2.ks.props.group,
1091
+ resources: _this2.ks.props.resources
1092
+ },
1093
+ group: _this2.ks.props.group,
1094
+ resources: _this2.ks.props.resources
1095
+ }, [h(SchedulerResourceIteratorContext.Consumer, [function (_a) {
1096
+ var groupIndex = _a.groupIndex;
1097
+ return [h("div", {
1098
+ "class": "k-scheduler-row"
1099
+ }, [h(DayViewAllDayRowContent, {
1100
+ groupIndex: groupIndex,
1101
+ attrs: this.v3 ? undefined : {
1102
+ groupIndex: groupIndex
1103
+ }
1104
+ }), _this.dayRanges.map(function (_, rangeIndex) {
1105
+ var groupOffset = this.timeSlots.filter(function (s) {
1106
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
1107
+ }).length;
1108
+ return this.daySlots.filter(function (s) {
1109
+ return s.group.index === groupIndex && s.range.index === rangeIndex;
1110
+ }).map(function (slot, slotIndex) {
1111
+ return h(EditSlot, {
1112
+ renderSlot: this.$props.slot,
1113
+ attrs: this.v3 ? undefined : {
1114
+ renderSlot: this.$props.slot,
1115
+ viewSlot: this.$props.viewSlot,
1116
+ form: this.$props.form,
1117
+ index: slot.index,
1118
+ start: slot.start,
1119
+ end: slot.end,
1120
+ zonedStart: slot.zonedStart,
1121
+ zonedEnd: slot.zonedEnd,
1122
+ items: slot.items,
1123
+ group: slot.group,
1124
+ range: slot.range,
1125
+ isAllDay: slot.isAllDay,
1126
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
1127
+ col: slotIndex,
1128
+ expandable: true
1129
+ },
1130
+ viewSlot: this.$props.viewSlot,
1131
+ form: this.$props.form,
1132
+ index: slot.index,
1133
+ start: slot.start,
1134
+ end: slot.end,
1135
+ zonedStart: slot.zonedStart,
1136
+ zonedEnd: slot.zonedEnd,
1137
+ items: slot.items,
1138
+ group: slot.group,
1139
+ range: slot.range,
1140
+ isAllDay: slot.isAllDay,
1141
+ onDataaction: this.handleDataAction,
1142
+ on: this.v3 ? undefined : {
1143
+ "dataaction": this.handleDataAction
1144
+ },
1145
+ key: slot.start.getTime() + ":" + slot.group.index,
1146
+ "class": 'k-scheduler-alldays-slot',
1147
+ row: groupOffset * (groupIndex || 0) + (groupIndex || 0) * GRID_OFFSET,
1148
+ col: slotIndex,
1149
+ expandable: true
1150
+ });
1151
+ }, this);
1152
+ }, _this)]), _this.timeSlots.filter(function (s) {
1153
+ return s.group.index === groupIndex && s.range.index === FIRST_INDEX;
1154
+ }).map(function (root, rootIndex, filtered) {
1155
+ return h("div", {
1156
+ "class": "k-scheduler-row",
1157
+ key: root.index
1158
+ }, [h(DayViewRowContent, {
1159
+ contentSlot: root,
1160
+ attrs: this.v3 ? undefined : {
1161
+ contentSlot: root,
1162
+ isMaster: rootIndex % slotDivisions === 0,
1163
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1164
+ timeHeaderCell: this.$props.timeHeaderCell
1165
+ },
1166
+ isMaster: rootIndex % slotDivisions === 0,
1167
+ isLast: (rootIndex + 1) % slotDivisions === 0,
1168
+ timeHeaderCell: this.$props.timeHeaderCell
1169
+ }), this.timeRanges.map(function (_, rangeIndex) {
1170
+ return this.timeSlots.filter(function (s) {
1171
+ return s.index === root.index && s.group.index === groupIndex && s.range.index === rangeIndex;
1172
+ }).map(function (slot) {
1173
+ return h(EditSlot, {
1174
+ renderSlot: this.$props.slot,
1175
+ attrs: this.v3 ? undefined : {
1176
+ renderSlot: this.$props.slot,
1177
+ viewSlot: this.$props.viewSlot,
1178
+ form: this.$props.form,
1179
+ index: slot.index,
1180
+ start: slot.start,
1181
+ end: slot.end,
1182
+ zonedStart: slot.zonedStart,
1183
+ zonedEnd: slot.zonedEnd,
1184
+ items: slot.items,
1185
+ group: slot.group,
1186
+ range: slot.range,
1187
+ isAllDay: slot.isAllDay,
1188
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
1189
+ col: rangeIndex,
1190
+ editable: this.$props.editable,
1191
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
1192
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
1193
+ },
1194
+ viewSlot: this.$props.viewSlot,
1195
+ form: this.$props.form,
1196
+ onDataaction: this.handleDataAction,
1197
+ on: this.v3 ? undefined : {
1198
+ "dataaction": this.handleDataAction
1199
+ },
1200
+ index: slot.index,
1201
+ start: slot.start,
1202
+ end: slot.end,
1203
+ zonedStart: slot.zonedStart,
1204
+ zonedEnd: slot.zonedEnd,
1205
+ items: slot.items,
1206
+ group: slot.group,
1207
+ range: slot.range,
1208
+ isAllDay: slot.isAllDay,
1209
+ key: slot.start.getTime() + ":" + slot.group.index,
1210
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * GRID_OFFSET + GRID_OFFSET,
1211
+ col: rangeIndex,
1212
+ editable: this.$props.editable,
1213
+ isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
1214
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
1215
+ });
1216
+ }, true);
1217
+ }, this)]);
1218
+ }, _this), _this.$props.currentTimeMarker && intersects(first(_this.timeRanges).start, last(_this.timeRanges).end, new Date(), new Date(), true) && h(CurrentTimeMarker, {
1219
+ groupIndex: groupIndex,
1220
+ attrs: this.v3 ? undefined : {
1221
+ groupIndex: groupIndex
1222
+ }
1223
+ })];
1224
+ }])]), _this2.dayItems.map(function (item) {
1225
+ return h(EditItem, {
1226
+ key: item.isRecurring ? item.uid + ":" + item.group.index + " : " + item.range.index + " : " + item.originalStart : item.uid + ":" + item.group.index + " : " + item.range.index,
1227
+ uid: item.uid,
1228
+ attrs: this.v3 ? undefined : {
1229
+ uid: item.uid,
1230
+ start: item.start,
1231
+ end: item.end,
1232
+ originalStart: item.originalStart,
1233
+ startTimezone: item.startTimezone,
1234
+ endTimezone: item.endTimezone,
1235
+ isAllDay: item.isAllDay,
1236
+ title: item.title,
1237
+ description: item.description,
1238
+ occurrenceId: item.occurrenceId,
1239
+ recurrenceExceptions: item.recurrenceExceptions,
1240
+ recurrenceRule: item.recurrenceRule,
1241
+ recurrenceId: item.recurrenceId,
1242
+ dataItem: item.dataItem,
1243
+ itemRef: item.itemRef,
1244
+ head: item.head,
1245
+ tail: item.tail,
1246
+ order: item.order,
1247
+ zonedStart: item.zonedStart,
1248
+ zonedEnd: item.zonedEnd,
1249
+ slots: item.slots,
1250
+ group: item.group,
1251
+ range: item.range,
1252
+ isException: item.isException,
1253
+ isRecurring: item.isRecurring,
1254
+ viewItem: this.$props.viewItem,
1255
+ item: this.$props.item,
1256
+ form: this.$props.form,
1257
+ editable: this.$props.editable,
1258
+ vertical: false
1259
+ },
1260
+ start: item.start,
1261
+ end: item.end,
1262
+ originalStart: item.originalStart,
1263
+ startTimezone: item.startTimezone,
1264
+ endTimezone: item.endTimezone,
1265
+ isAllDay: item.isAllDay,
1266
+ title: item.title,
1267
+ description: item.description,
1268
+ occurrenceId: item.occurrenceId,
1269
+ recurrenceExceptions: item.recurrenceExceptions,
1270
+ recurrenceRule: item.recurrenceRule,
1271
+ recurrenceId: item.recurrenceId,
1272
+ dataItem: item.dataItem,
1273
+ itemRef: item.itemRef,
1274
+ head: item.head,
1275
+ tail: item.tail,
1276
+ order: item.order,
1277
+ zonedStart: item.zonedStart,
1278
+ zonedEnd: item.zonedEnd,
1279
+ slots: item.slots,
1280
+ group: item.group,
1281
+ range: item.range,
1282
+ isException: item.isException,
1283
+ isRecurring: item.isRecurring,
1284
+ onDataaction: this.handleDataAction,
1285
+ on: this.v3 ? undefined : {
1286
+ "dataaction": this.handleDataAction
1287
+ },
1288
+ viewItem: this.$props.viewItem,
1289
+ item: this.$props.item,
1290
+ form: this.$props.form,
1291
+ editable: this.$props.editable,
1292
+ vertical: false
1293
+ });
1294
+ }, _this2)], _this2.timeItems.map(function (item) {
1295
+ return h(EditItem, {
1296
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
1297
+ uid: item.uid,
1298
+ attrs: this.v3 ? undefined : {
1299
+ uid: item.uid,
1300
+ start: item.start,
1301
+ end: item.end,
1302
+ originalStart: item.originalStart,
1303
+ startTimezone: item.startTimezone,
1304
+ endTimezone: item.endTimezone,
1305
+ isAllDay: item.isAllDay,
1306
+ title: item.title,
1307
+ description: item.description,
1308
+ occurrenceId: item.occurrenceId,
1309
+ recurrenceExceptions: item.recurrenceExceptions,
1310
+ recurrenceRule: item.recurrenceRule,
1311
+ recurrenceId: item.recurrenceId,
1312
+ dataItem: item.dataItem,
1313
+ itemRef: item.itemRef,
1314
+ head: item.head,
1315
+ tail: item.tail,
1316
+ order: item.order,
1317
+ zonedStart: item.zonedStart,
1318
+ zonedEnd: item.zonedEnd,
1319
+ slots: item.slots,
1320
+ group: item.group,
1321
+ range: item.range,
1322
+ isException: item.isException,
1323
+ isRecurring: item.isRecurring,
1324
+ format: 't',
1325
+ viewItem: this.$props.viewItem,
1326
+ item: this.$props.item,
1327
+ form: this.$props.form,
1328
+ editable: this.$props.editable,
1329
+ vertical: true
1330
+ },
1331
+ start: item.start,
1332
+ end: item.end,
1333
+ originalStart: item.originalStart,
1334
+ startTimezone: item.startTimezone,
1335
+ endTimezone: item.endTimezone,
1336
+ isAllDay: item.isAllDay,
1337
+ title: item.title,
1338
+ description: item.description,
1339
+ occurrenceId: item.occurrenceId,
1340
+ recurrenceExceptions: item.recurrenceExceptions,
1341
+ recurrenceRule: item.recurrenceRule,
1342
+ recurrenceId: item.recurrenceId,
1343
+ dataItem: item.dataItem,
1344
+ itemRef: item.itemRef,
1345
+ head: item.head,
1346
+ tail: item.tail,
1347
+ order: item.order,
1348
+ zonedStart: item.zonedStart,
1349
+ zonedEnd: item.zonedEnd,
1350
+ slots: item.slots,
1351
+ group: item.group,
1352
+ range: item.range,
1353
+ isException: item.isException,
1354
+ isRecurring: item.isRecurring,
1355
+ format: 't',
1356
+ onDataaction: this.handleDataAction,
1357
+ on: this.v3 ? undefined : {
1358
+ "dataaction": this.handleDataAction
1359
+ },
1360
+ viewItem: this.$props.viewItem,
1361
+ item: this.$props.item,
1362
+ form: this.$props.form,
1363
+ editable: this.$props.editable,
1364
+ vertical: true
1365
+ });
1366
+ }, _this2)])])
1367
+ );
1368
+ },
1369
+ methods: {
1370
+ handleDataAction: function handleDataAction(action) {
1371
+ this.$emit('dataaction', action);
1372
+ }
1373
+ }
1374
+ };
1375
+
1376
+ var multiDayViewDateRange = function multiDayViewDateRange(_a) {
1377
+ var date = _a.date,
1378
+ _b = _a.numberOfDays,
1379
+ numberOfDays = _b === void 0 ? 1 : _b,
1380
+ timezone = _a.timezone;
1381
+ var normalized = ZonedDate.fromLocalDate(date, timezone);
1382
+ var firstDay = getDate(normalized);
1383
+ var lastDay = addDays(firstDay, numberOfDays);
1384
+ var zonedStart = ZonedDate.fromUTCDate(toUTCDateTime(firstDay), timezone);
1385
+ var zonedEnd = ZonedDate.fromUTCDate(toUTCDateTime(lastDay), timezone);
1386
+ var start = new Date(zonedStart.getTime());
1387
+ var end = new Date(zonedEnd.getTime());
1388
+ return {
1389
+ start: start,
1390
+ end: end,
1391
+ zonedStart: zonedStart,
1392
+ zonedEnd: zonedEnd
1393
+ };
1394
+ };
1395
+
1396
+ var MultiDayView = MultiDayViewVue2;
1397
+ export { MultiDayView, MultiDayViewVue2, multiDayViewDateRange };