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