@progress/kendo-vue-scheduler 3.5.0 → 3.5.1-dev.202208150613

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