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

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