@progress/kendo-angular-scheduler 17.0.0-develop.8 → 17.0.0

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 (268) hide show
  1. package/data-binding.directive.d.ts +1 -1
  2. package/editing/date-time-picker.component.d.ts +1 -1
  3. package/editing/edit-dialog-template.directive.d.ts +1 -1
  4. package/editing/edit-dialog.component.d.ts +1 -1
  5. package/editing/edit.service.d.ts +3 -3
  6. package/editing/recurrence/end-rule-radio-button.directive.d.ts +1 -1
  7. package/editing/recurrence/localization/messages.d.ts +1 -1
  8. package/editing/recurrence/recurrence-editor.component.d.ts +1 -1
  9. package/editing/recurrence/recurrence-end-rule-editor.component.d.ts +1 -1
  10. package/editing/recurrence/recurrence-interval-editor.component.d.ts +1 -1
  11. package/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +1 -1
  12. package/editing/recurrence/recurrence.service.d.ts +4 -4
  13. package/editing/recurrence/repeat-on-radio-button.directive.d.ts +1 -1
  14. package/editing/resource-editor-base.d.ts +1 -1
  15. package/editing/timezone-editor.component.d.ts +1 -1
  16. package/editing-directives/editing-directive-base.d.ts +1 -1
  17. package/editing-directives/reactive-editing.directive.d.ts +1 -1
  18. package/{esm2020 → esm2022}/data-binding.directive.mjs +20 -13
  19. package/{esm2020 → esm2022}/editing/date-time-picker.component.mjs +15 -9
  20. package/{esm2020 → esm2022}/editing/dialogs.service.mjs +10 -4
  21. package/{esm2020 → esm2022}/editing/edit-dialog-template.directive.mjs +8 -3
  22. package/{esm2020 → esm2022}/editing/edit-dialog.component.mjs +44 -25
  23. package/{esm2020 → esm2022}/editing/edit.service.mjs +9 -5
  24. package/{esm2020 → esm2022}/editing/local-data-changes.service.mjs +5 -6
  25. package/{esm2020 → esm2022}/editing/recurrence/end-rule-radio-button.directive.mjs +13 -6
  26. package/{esm2020 → esm2022}/editing/recurrence/localization/custom-messages.component.mjs +9 -8
  27. package/{esm2020 → esm2022}/editing/recurrence/localization/localized-messages.directive.mjs +9 -8
  28. package/esm2022/editing/recurrence/localization/messages.mjs +239 -0
  29. package/{esm2020 → esm2022}/editing/recurrence/localization/recurrence-localization.service.mjs +4 -3
  30. package/{esm2020 → esm2022}/editing/recurrence/recurrence-editor.component.mjs +61 -36
  31. package/{esm2020 → esm2022}/editing/recurrence/recurrence-end-rule-editor.component.mjs +33 -26
  32. package/{esm2020 → esm2022}/editing/recurrence/recurrence-frequency-editor.component.mjs +8 -4
  33. package/{esm2020 → esm2022}/editing/recurrence/recurrence-interval-editor.component.mjs +18 -15
  34. package/{esm2020 → esm2022}/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +28 -15
  35. package/{esm2020 → esm2022}/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +9 -5
  36. package/{esm2020 → esm2022}/editing/recurrence/recurrence.service.mjs +13 -7
  37. package/{esm2020 → esm2022}/editing/recurrence/repeat-on-radio-button.directive.mjs +18 -11
  38. package/{esm2020 → esm2022}/editing/resource-editor-base.mjs +9 -9
  39. package/{esm2020 → esm2022}/editing/resource-multiple-editor.component.mjs +7 -6
  40. package/{esm2020 → esm2022}/editing/resource-single-editor.component.mjs +7 -6
  41. package/{esm2020 → esm2022}/editing/timezone-editor.component.mjs +28 -22
  42. package/{esm2020 → esm2022}/editing-directives/base-edit.service.mjs +28 -11
  43. package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +27 -20
  44. package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +6 -4
  45. package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +10 -3
  46. package/{esm2020 → esm2022}/events/add-event.mjs +8 -0
  47. package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
  48. package/{esm2020 → esm2022}/events/create-event.mjs +24 -0
  49. package/{esm2020 → esm2022}/events/date-change-event.mjs +12 -0
  50. package/{esm2020 → esm2022}/events/drag-end-event.mjs +28 -0
  51. package/esm2022/events/drag-event.mjs +54 -0
  52. package/{esm2020 → esm2022}/events/drag-start-event.mjs +12 -0
  53. package/{esm2020 → esm2022}/events/edit-event-base.mjs +16 -0
  54. package/{esm2020 → esm2022}/events/edit-event.mjs +12 -0
  55. package/{esm2020 → esm2022}/events/event-click-event.mjs +16 -0
  56. package/{esm2020 → esm2022}/events/event-keydown-event.mjs +12 -0
  57. package/{esm2020 → esm2022}/events/navigate-event.mjs +8 -0
  58. package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
  59. package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
  60. package/{esm2020 → esm2022}/events/resize-end-event.mjs +20 -0
  61. package/{esm2020 → esm2022}/events/resize-event.mjs +28 -0
  62. package/{esm2020 → esm2022}/events/resize-start-event.mjs +12 -0
  63. package/{esm2020 → esm2022}/events/save-event.mjs +8 -0
  64. package/{esm2020 → esm2022}/events/slot-click-event.mjs +28 -0
  65. package/{esm2020 → esm2022}/events/slot-drag-event.mjs +24 -0
  66. package/{esm2020 → esm2022}/events/slot-drag-start-event.mjs +24 -0
  67. package/{esm2020 → esm2022}/index.mjs +0 -6
  68. package/{esm2020 → esm2022}/loading.component.mjs +12 -8
  69. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
  70. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
  71. package/esm2022/localization/messages.mjs +614 -0
  72. package/{esm2020 → esm2022}/localization/scheduler-localization.service.mjs +3 -3
  73. package/{esm2020 → esm2022}/navigation/focus.service.mjs +21 -15
  74. package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +19 -15
  75. package/esm2022/navigation/shortcuts.directive.mjs +220 -0
  76. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  77. package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +9 -8
  78. package/{esm2020 → esm2022}/pdf/pdf.component.mjs +93 -8
  79. package/{esm2020 → esm2022}/pdf/pdf.module.mjs +4 -4
  80. package/{esm2020 → esm2022}/pdf/pdf.service.mjs +7 -9
  81. package/{esm2020 → esm2022}/scheduler.component.mjs +412 -256
  82. package/{esm2020 → esm2022}/scheduler.module.mjs +30 -30
  83. package/{esm2020 → esm2022}/toolbar/navigation.component.mjs +49 -34
  84. package/{esm2020 → esm2022}/toolbar/toolbar-template.directive.mjs +4 -3
  85. package/{esm2020 → esm2022}/toolbar/toolbar.component.mjs +29 -18
  86. package/{esm2020 → esm2022}/toolbar/toolbar.service.mjs +16 -4
  87. package/{esm2020 → esm2022}/toolbar/view-selector.component.mjs +23 -15
  88. package/{esm2020 → esm2022}/types/slot-selection.mjs +16 -0
  89. package/{esm2020 → esm2022}/views/agenda/agenda-header-item.component.mjs +9 -9
  90. package/{esm2020 → esm2022}/views/agenda/agenda-header.component.mjs +10 -8
  91. package/{esm2020 → esm2022}/views/agenda/agenda-task-item.component.mjs +18 -12
  92. package/{esm2020 → esm2022}/views/agenda/agenda-view-internal.component.mjs +48 -17
  93. package/{esm2020 → esm2022}/views/agenda/agenda-view-list.component.mjs +17 -7
  94. package/{esm2020 → esm2022}/views/agenda/agenda-view.component.mjs +46 -41
  95. package/{esm2020 → esm2022}/views/agenda/tasks.collection.mjs +8 -4
  96. package/{esm2020 → esm2022}/views/common/base-view.mjs +93 -36
  97. package/{esm2020 → esm2022}/views/common/configuration-view-base.mjs +52 -15
  98. package/esm2022/views/common/dom-events.service.mjs +22 -0
  99. package/{esm2020 → esm2022}/views/common/hint-container.component.mjs +6 -4
  100. package/{esm2020 → esm2022}/views/common/repeat.pipe.mjs +7 -6
  101. package/{esm2020 → esm2022}/views/common/resize-hint.component.mjs +7 -7
  102. package/{esm2020 → esm2022}/views/common/resource-iterator.pipe.mjs +9 -7
  103. package/{esm2020 → esm2022}/views/common/slot-selectable.directive.mjs +22 -10
  104. package/{esm2020 → esm2022}/views/common/view-footer.component.mjs +14 -12
  105. package/{esm2020 → esm2022}/views/common/work-hours-footer.directive.mjs +7 -5
  106. package/{esm2020 → esm2022}/views/day-time/day-time-slot.service.mjs +11 -7
  107. package/{esm2020 → esm2022}/views/day-time/day-time-view-base.mjs +81 -8
  108. package/{esm2020 → esm2022}/views/day-time/day-time-view-item.component.mjs +18 -14
  109. package/{esm2020 → esm2022}/views/day-time/day-time-view.component.mjs +50 -29
  110. package/{esm2020 → esm2022}/views/day-time/event-slot.directive.mjs +23 -14
  111. package/{esm2020 → esm2022}/views/month/month-slot.component.mjs +21 -11
  112. package/{esm2020 → esm2022}/views/month/month-slot.service.mjs +8 -6
  113. package/{esm2020 → esm2022}/views/month/month-view-item.component.mjs +10 -9
  114. package/{esm2020 → esm2022}/views/month/month-view-renderer.component.mjs +31 -15
  115. package/{esm2020 → esm2022}/views/month/month-view.component.mjs +49 -31
  116. package/{esm2020 → esm2022}/views/month/multi-week-view.component.mjs +53 -35
  117. package/{esm2020 → esm2022}/views/multi-day/day-view.component.mjs +25 -17
  118. package/{esm2020 → esm2022}/views/multi-day/multi-day-view-base.mjs +17 -6
  119. package/{esm2020 → esm2022}/views/multi-day/multi-day-view-renderer.component.mjs +22 -13
  120. package/{esm2020 → esm2022}/views/multi-day/multi-day-view.component.mjs +22 -20
  121. package/{esm2020 → esm2022}/views/multi-day/week-view.component.mjs +44 -35
  122. package/{esm2020 → esm2022}/views/multi-day/work-week-view.component.mjs +16 -16
  123. package/{esm2020 → esm2022}/views/scheduler-view.directive.mjs +16 -10
  124. package/{esm2020 → esm2022}/views/templates/agenda-date-template.directive.mjs +4 -3
  125. package/{esm2020 → esm2022}/views/templates/agenda-time-template.directive.mjs +4 -3
  126. package/{esm2020 → esm2022}/views/templates/all-day-event-template.directive.mjs +4 -3
  127. package/{esm2020 → esm2022}/views/templates/all-day-slot-template.directive.mjs +4 -3
  128. package/{esm2020 → esm2022}/views/templates/date-header-template.directive.mjs +4 -3
  129. package/{esm2020 → esm2022}/views/templates/event-template.directive.mjs +4 -3
  130. package/{esm2020 → esm2022}/views/templates/group-header-template.directive.mjs +4 -3
  131. package/{esm2020 → esm2022}/views/templates/major-time-header-template.directive.mjs +4 -3
  132. package/{esm2020 → esm2022}/views/templates/minor-time-header-template.directive.mjs +4 -3
  133. package/{esm2020 → esm2022}/views/templates/month-day-slot-template.directive.mjs +4 -3
  134. package/{esm2020 → esm2022}/views/templates/multi-week-day-slot-template.directive.mjs +4 -3
  135. package/{esm2020 → esm2022}/views/templates/time-slot-template.directive.mjs +4 -3
  136. package/{esm2020 → esm2022}/views/timeline/timeline-base.mjs +10 -6
  137. package/{esm2020 → esm2022}/views/timeline/timeline-month-view.component.mjs +36 -34
  138. package/{esm2020 → esm2022}/views/timeline/timeline-multi-day-view.component.mjs +16 -13
  139. package/{esm2020 → esm2022}/views/timeline/timeline-view.component.mjs +18 -16
  140. package/{esm2020 → esm2022}/views/timeline/timeline-week-view.component.mjs +40 -40
  141. package/{esm2020 → esm2022}/views/timeline/utils.mjs +3 -3
  142. package/{esm2020 → esm2022}/views/view-context.service.mjs +33 -9
  143. package/{esm2020 → esm2022}/views/view-items/base-slot.directive.mjs +15 -9
  144. package/{esm2020 → esm2022}/views/view-items/base-slot.service.mjs +3 -5
  145. package/{esm2020 → esm2022}/views/view-items/base-view-item.mjs +30 -15
  146. package/{esm2020 → esm2022}/views/view-items/item-map.mjs +2 -4
  147. package/{esm2020 → esm2022}/views/view-state.service.mjs +56 -20
  148. package/{esm2020 → esm2022}/views/year/year-view-internal.component.mjs +45 -27
  149. package/{esm2020 → esm2022}/views/year/year-view.component.mjs +38 -31
  150. package/{fesm2020 → fesm2022}/progress-kendo-angular-scheduler.mjs +3642 -1967
  151. package/index.d.ts +0 -6
  152. package/loading.component.d.ts +1 -1
  153. package/localization/messages.d.ts +1 -1
  154. package/navigation/focusable.directive.d.ts +1 -1
  155. package/package.json +24 -30
  156. package/pdf/pdf.component.d.ts +1 -1
  157. package/scheduler.component.d.ts +1 -1
  158. package/schematics/ngAdd/index.js +4 -4
  159. package/toolbar/navigation.component.d.ts +1 -1
  160. package/toolbar/toolbar.component.d.ts +1 -1
  161. package/toolbar/view-selector.component.d.ts +1 -1
  162. package/types/actions.d.ts +1 -1
  163. package/types/focusable-container.d.ts +1 -1
  164. package/types/slot-selection.d.ts +1 -1
  165. package/views/agenda/agenda-header-item.component.d.ts +1 -1
  166. package/views/agenda/agenda-header.component.d.ts +1 -1
  167. package/views/agenda/agenda-task-item.component.d.ts +1 -1
  168. package/views/agenda/agenda-view-internal.component.d.ts +1 -1
  169. package/views/agenda/agenda-view-list.component.d.ts +1 -1
  170. package/views/agenda/agenda-view.component.d.ts +2 -6
  171. package/views/common/base-view.d.ts +1 -1
  172. package/views/common/configuration-view-base.d.ts +1 -1
  173. package/views/common/resize-hint.component.d.ts +1 -1
  174. package/views/common/slot-selectable.directive.d.ts +1 -1
  175. package/views/common/view-footer.component.d.ts +1 -1
  176. package/views/common/work-hours-footer.directive.d.ts +1 -1
  177. package/views/day-time/day-time-view-base.d.ts +2 -6
  178. package/views/day-time/day-time-view-item.component.d.ts +1 -1
  179. package/views/day-time/day-time-view.component.d.ts +1 -1
  180. package/views/day-time/event-slot.directive.d.ts +2 -2
  181. package/views/month/month-slot.component.d.ts +1 -1
  182. package/views/month/month-view-renderer.component.d.ts +1 -1
  183. package/views/month/month-view.component.d.ts +7 -4
  184. package/views/month/multi-week-view.component.d.ts +7 -4
  185. package/views/multi-day/day-view.component.d.ts +1 -1
  186. package/views/multi-day/multi-day-view-base.d.ts +1 -1
  187. package/views/multi-day/multi-day-view-renderer.component.d.ts +1 -1
  188. package/views/multi-day/multi-day-view.component.d.ts +1 -1
  189. package/views/multi-day/week-view.component.d.ts +1 -1
  190. package/views/scheduler-view.directive.d.ts +1 -1
  191. package/views/timeline/timeline-base.d.ts +1 -1
  192. package/views/timeline/timeline-month-view.component.d.ts +1 -1
  193. package/views/timeline/timeline-multi-day-view.component.d.ts +1 -1
  194. package/views/timeline/timeline-view.component.d.ts +1 -1
  195. package/views/timeline/timeline-week-view.component.d.ts +1 -1
  196. package/views/view-items/base-slot.directive.d.ts +1 -1
  197. package/views/view-items/base-view-item.d.ts +1 -1
  198. package/views/year/year-view-internal.component.d.ts +1 -4
  199. package/views/year/year-view.component.d.ts +6 -6
  200. package/esm2020/editing/recurrence/localization/messages.mjs +0 -91
  201. package/esm2020/events/drag-event.mjs +0 -18
  202. package/esm2020/localization/messages.mjs +0 -213
  203. package/esm2020/navigation/shortcuts.directive.mjs +0 -213
  204. package/esm2020/shared.module.mjs +0 -40
  205. package/esm2020/views/common/dom-events.service.mjs +0 -24
  206. package/esm2020/views/common/views-shared.module.mjs +0 -62
  207. package/esm2020/views/day-time/day-time.module.mjs +0 -39
  208. package/esm2020/views/month/month-view.module.mjs +0 -47
  209. package/esm2020/views/multi-day/multi-day-view.module.mjs +0 -52
  210. package/esm2020/views/timeline/timeline-view.module.mjs +0 -48
  211. package/fesm2015/progress-kendo-angular-scheduler.mjs +0 -19229
  212. package/shared.module.d.ts +0 -19
  213. package/views/common/views-shared.module.d.ts +0 -22
  214. package/views/day-time/day-time.module.d.ts +0 -18
  215. package/views/month/month-view.module.d.ts +0 -18
  216. package/views/multi-day/multi-day-view.module.d.ts +0 -20
  217. package/views/timeline/timeline-view.module.d.ts +0 -19
  218. /package/{esm2020 → esm2022}/common/constants.mjs +0 -0
  219. /package/{esm2020 → esm2022}/common/default-model-fields.mjs +0 -0
  220. /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
  221. /package/{esm2020 → esm2022}/common/getter.mjs +0 -0
  222. /package/{esm2020 → esm2022}/common/modifiers.mjs +0 -0
  223. /package/{esm2020 → esm2022}/common/setter.mjs +0 -0
  224. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  225. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  226. /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
  227. /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
  228. /package/{esm2020 → esm2022}/events/slot-drag-end-event.mjs +0 -0
  229. /package/{esm2020 → esm2022}/events/view-event-map.mjs +0 -0
  230. /package/{esm2020 → esm2022}/events.mjs +0 -0
  231. /package/{esm2020 → esm2022}/navigation/focus-position.interface.mjs +0 -0
  232. /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
  233. /package/{esm2020 → esm2022}/navigation.mjs +0 -0
  234. /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
  235. /package/{esm2020 → esm2022}/progress-kendo-angular-scheduler.mjs +0 -0
  236. /package/{esm2020 → esm2022}/toolbar/toolbar-context.mjs +0 -0
  237. /package/{esm2020 → esm2022}/types/actions.mjs +0 -0
  238. /package/{esm2020 → esm2022}/types/create-form-group-args.interface.mjs +0 -0
  239. /package/{esm2020 → esm2022}/types/crud-operation.enum.mjs +0 -0
  240. /package/{esm2020 → esm2022}/types/current-time-settings.interface.mjs +0 -0
  241. /package/{esm2020 → esm2022}/types/date-range.interface.mjs +0 -0
  242. /package/{esm2020 → esm2022}/types/datepicker-options.interface.mjs +0 -0
  243. /package/{esm2020 → esm2022}/types/edit-event-args.interface.mjs +0 -0
  244. /package/{esm2020 → esm2022}/types/edit-mode.enum.mjs +0 -0
  245. /package/{esm2020 → esm2022}/types/editable-settings.interface.mjs +0 -0
  246. /package/{esm2020 → esm2022}/types/event-style-args.interface.mjs +0 -0
  247. /package/{esm2020 → esm2022}/types/focusable-container.mjs +0 -0
  248. /package/{esm2020 → esm2022}/types/group.interface.mjs +0 -0
  249. /package/{esm2020 → esm2022}/types/numeric-options.interface.mjs +0 -0
  250. /package/{esm2020 → esm2022}/types/ongoing-events-settings.interface.mjs +0 -0
  251. /package/{esm2020 → esm2022}/types/resource.interface.mjs +0 -0
  252. /package/{esm2020 → esm2022}/types/scheduler-event.mjs +0 -0
  253. /package/{esm2020 → esm2022}/types/scheduler-model-fields.interface.mjs +0 -0
  254. /package/{esm2020 → esm2022}/types/scheduler-slot.interface.mjs +0 -0
  255. /package/{esm2020 → esm2022}/types/scheduler-view.mjs +0 -0
  256. /package/{esm2020 → esm2022}/types/slot-class-args.interface.mjs +0 -0
  257. /package/{esm2020 → esm2022}/types/view-item.interface.mjs +0 -0
  258. /package/{esm2020 → esm2022}/types.mjs +0 -0
  259. /package/{esm2020 → esm2022}/views/agenda/utils.mjs +0 -0
  260. /package/{esm2020 → esm2022}/views/common/scheduler-task.mjs +0 -0
  261. /package/{esm2020 → esm2022}/views/constants.mjs +0 -0
  262. /package/{esm2020 → esm2022}/views/day-time/utils.mjs +0 -0
  263. /package/{esm2020 → esm2022}/views/month/utils.mjs +0 -0
  264. /package/{esm2020 → esm2022}/views/multi-day/utils.mjs +0 -0
  265. /package/{esm2020 → esm2022}/views/templates.mjs +0 -0
  266. /package/{esm2020 → esm2022}/views/utils.mjs +0 -0
  267. /package/{esm2020 → esm2022}/views/view-items/types.mjs +0 -0
  268. /package/{esm2020 → esm2022}/views/year/utils.mjs +0 -0
@@ -16,19 +16,23 @@ const COLUMN_WIDTH = 'columnWidth';
16
16
  * @hidden
17
17
  */
18
18
  export class TimelineBase extends DayTimeViewBase {
19
- constructor(localization, changeDetector, viewContext, viewState) {
20
- super(localization, changeDetector, viewContext, viewState);
21
- }
19
+ /**
20
+ * Specifies the columns width.
21
+ */
22
+ columnWidth;
22
23
  /**
23
24
  * @hidden
24
25
  */
25
26
  get viewColumnWidth() {
26
27
  return this.optionValue(COLUMN_WIDTH);
27
28
  }
29
+ constructor(localization, changeDetector, viewContext, viewState) {
30
+ super(localization, changeDetector, viewContext, viewState);
31
+ }
32
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
33
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TimelineBase, inputs: { columnWidth: "columnWidth" }, usesInheritance: true, ngImport: i0 });
28
34
  }
29
- TimelineBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
30
- TimelineBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimelineBase, inputs: { columnWidth: "columnWidth" }, usesInheritance: true, ngImport: i0 });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineBase, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineBase, decorators: [{
32
36
  type: Directive
33
37
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.ViewContextService }, { type: i3.ViewStateService }]; }, propDecorators: { columnWidth: [{
34
38
  type: Input
@@ -21,33 +21,6 @@ import * as i3 from "../view-state.service";
21
21
  * The component for rendering the **Month** timeline view.
22
22
  */
23
23
  export class TimelineMonthViewComponent extends TimelineBase {
24
- constructor(localization, changeDetector, viewContext, viewState) {
25
- super(localization, changeDetector, viewContext, viewState);
26
- this._numberOfMonths = 1;
27
- /**
28
- * The invariant name for this view.
29
- * @default 'timelineMonth'
30
- */
31
- this.name = 'timelineMonth';
32
- /**
33
- * @hidden
34
- */
35
- this.getStartDate = (selectedDate) => {
36
- return firstDayOfMonth(getDate(selectedDate));
37
- };
38
- /**
39
- * @hidden
40
- */
41
- this.getEndDate = (selectedDate) => {
42
- return addMonths(this.getStartDate(selectedDate), this.numberOfMonths);
43
- };
44
- /**
45
- * @hidden
46
- */
47
- this.getNextDate = (date, count) => {
48
- return addMonths(date, count);
49
- };
50
- }
51
24
  /**
52
25
  * @hidden
53
26
  */
@@ -70,6 +43,7 @@ export class TimelineMonthViewComponent extends TimelineBase {
70
43
  }
71
44
  return this.numberOfMonths && this.numberOfMonths > 1 ? '{0:Y} - {1:Y}' : '{0:Y}';
72
45
  }
46
+ _selectedDateFormat;
73
47
  /**
74
48
  * The short-date format for displaying the
75
49
  * selected date in the Scheduler toolbar.
@@ -86,6 +60,7 @@ export class TimelineMonthViewComponent extends TimelineBase {
86
60
  }
87
61
  return this.numberOfMonths && this.numberOfMonths > 1 ? '{0:y} - {1:y}' : '{0:y}';
88
62
  }
63
+ _selectedShortDateFormat;
89
64
  /**
90
65
  * Specifies the number of months that the view will render.
91
66
  * > Normalized to `1` if the provided value is <= 0.
@@ -97,12 +72,38 @@ export class TimelineMonthViewComponent extends TimelineBase {
97
72
  get numberOfMonths() {
98
73
  return this._numberOfMonths;
99
74
  }
100
- }
101
- TimelineMonthViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMonthViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
102
- TimelineMonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineMonthViewComponent, isStandalone: true, selector: "kendo-scheduler-timeline-month-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfMonths: "numberOfMonths" }, providers: [{
103
- provide: SchedulerView,
104
- useExisting: forwardRef(() => TimelineMonthViewComponent)
105
- }], usesInheritance: true, ngImport: i0, template: `
75
+ _numberOfMonths = 1;
76
+ /**
77
+ * The invariant name for this view.
78
+ * @default 'timelineMonth'
79
+ */
80
+ name = 'timelineMonth';
81
+ /**
82
+ * @hidden
83
+ */
84
+ getStartDate = (selectedDate) => {
85
+ return firstDayOfMonth(getDate(selectedDate));
86
+ };
87
+ /**
88
+ * @hidden
89
+ */
90
+ getEndDate = (selectedDate) => {
91
+ return addMonths(this.getStartDate(selectedDate), this.numberOfMonths);
92
+ };
93
+ /**
94
+ * @hidden
95
+ */
96
+ getNextDate = (date, count) => {
97
+ return addMonths(date, count);
98
+ };
99
+ constructor(localization, changeDetector, viewContext, viewState) {
100
+ super(localization, changeDetector, viewContext, viewState);
101
+ }
102
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
103
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineMonthViewComponent, isStandalone: true, selector: "kendo-scheduler-timeline-month-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfMonths: "numberOfMonths" }, providers: [{
104
+ provide: SchedulerView,
105
+ useExisting: forwardRef(() => TimelineMonthViewComponent)
106
+ }], usesInheritance: true, ngImport: i0, template: `
106
107
  <ng-template #content>
107
108
  <timeline-multi-day-view
108
109
  viewName="timeline-month"
@@ -139,7 +140,8 @@ TimelineMonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
139
140
  <div *ngIf="viewShowFooter" viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
140
141
  </ng-template>
141
142
  `, isInline: true, dependencies: [{ kind: "component", type: TimelineMultiDayViewComponent, selector: "timeline-multi-day-view", inputs: ["name", "columnWidth", "viewName"] }, { kind: "component", type: ViewFooterComponent, selector: "[viewFooter]", inputs: ["items"], outputs: ["itemClick"] }, { kind: "directive", type: WorkHoursFooterDirective, selector: "[kendoWorkHoursFooter]", inputs: ["showWorkHours"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMonthViewComponent, decorators: [{
143
+ }
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewComponent, decorators: [{
143
145
  type: Component,
144
146
  args: [{
145
147
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -32,21 +32,24 @@ import * as i7 from "@progress/kendo-angular-common";
32
32
  * @hidden
33
33
  */
34
34
  export class TimelineMultiDayViewComponent extends DayTimeViewComponent {
35
- constructor(localization, changeDetector, viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, scrollBarWidthService) {
36
- super(changeDetector, viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, scrollBarWidthService);
37
- this.name = 'timeline';
38
- this.columnWidth = 100;
39
- this.viewName = 'timeline';
40
- this.verticalTime = false;
41
- }
35
+ name = 'timeline';
36
+ columnWidth = 100;
37
+ viewName = 'timeline';
38
+ verticalResourceRows;
42
39
  get classNames() {
43
40
  return `k-scheduler-${this.viewName}-view`;
44
41
  }
42
+ headerTable;
45
43
  get contentWidthPercentage() {
46
44
  const expectedWidth = this.columnWidth * this.slotsCount;
47
45
  const percentage = (expectedWidth / this.contentWidth) * 100;
48
46
  return Math.max(percentage, 100);
49
47
  }
48
+ verticalTime = false;
49
+ contentWidth;
50
+ constructor(localization, changeDetector, viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, scrollBarWidthService) {
51
+ super(changeDetector, viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, scrollBarWidthService);
52
+ }
50
53
  ngOnChanges(changes) {
51
54
  if (changes.columnWidth) {
52
55
  this.changes.next(null);
@@ -136,11 +139,10 @@ export class TimelineMultiDayViewComponent extends DayTimeViewComponent {
136
139
  currentTimeArrowOffset() {
137
140
  return this.headerWrap.nativeElement.querySelector('tr:last-child').offsetTop;
138
141
  }
139
- }
140
- TimelineMultiDayViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMultiDayViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }, { token: i4.IntlService }, { token: i5.DayTimeSlotService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i6.PDFService }, { token: i7.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
141
- TimelineMultiDayViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineMultiDayViewComponent, isStandalone: true, selector: "timeline-multi-day-view", inputs: { name: "name", columnWidth: "columnWidth", viewName: "viewName" }, providers: [
142
- DayTimeSlotService
143
- ], viewQueries: [{ propertyName: "headerTable", first: true, predicate: ["headerTable"], descendants: true }, { propertyName: "verticalResourceRows", predicate: ["verticalResourceRows"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
142
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMultiDayViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }, { token: i4.IntlService }, { token: i5.DayTimeSlotService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i6.PDFService }, { token: i7.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
143
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineMultiDayViewComponent, isStandalone: true, selector: "timeline-multi-day-view", inputs: { name: "name", columnWidth: "columnWidth", viewName: "viewName" }, providers: [
144
+ DayTimeSlotService
145
+ ], viewQueries: [{ propertyName: "headerTable", first: true, predicate: ["headerTable"], descendants: true }, { propertyName: "verticalResourceRows", predicate: ["verticalResourceRows"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
144
146
  <table class="k-scheduler-layout" [ngClass]="classNames">
145
147
  <tbody>
146
148
  <tr class="k-scheduler-head">
@@ -330,7 +332,8 @@ TimelineMultiDayViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
330
332
  </tbody>
331
333
  </table>
332
334
  `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TimeSlotDirective, selector: "[timeSlot]", inputs: ["invariantStart", "invariantEnd", "workDayStart", "workDayEnd", "workWeekStart", "workWeekEnd", "date"], exportAs: ["timeSlot"] }, { kind: "component", type: DayTimeViewItemComponent, selector: "[dayTimeViewItem]", inputs: ["vertical", "isAllDay"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoSchedulerFocusIndex]", inputs: ["kendoSchedulerFocusIndex", "containerType"] }, { kind: "component", type: HintContainerComponent, selector: "kendo-hint-container" }, { kind: "component", type: ResizeHintComponent, selector: "[kendoResizeHint]", inputs: ["hint", "format"] }, { kind: "pipe", type: ResourceIteratorPipe, name: "resourceIterator" }, { kind: "pipe", type: DatePipe, name: "kendoDate" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: SortPipe, name: "sort" }] });
333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineMultiDayViewComponent, decorators: [{
335
+ }
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMultiDayViewComponent, decorators: [{
334
337
  type: Component,
335
338
  args: [{
336
339
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -20,15 +20,6 @@ import * as i3 from "../view-state.service";
20
20
  * The component for rendering the **Timeline** view.
21
21
  */
22
22
  export class TimelineViewComponent extends TimelineBase {
23
- constructor(localization, changeDetector, viewContext, viewState) {
24
- super(localization, changeDetector, viewContext, viewState);
25
- this._numberOfDays = 1;
26
- /**
27
- * The invariant name for this view.
28
- * @default 'timeline'
29
- */
30
- this.name = 'timeline';
31
- }
32
23
  /**
33
24
  * @hidden
34
25
  */
@@ -51,6 +42,7 @@ export class TimelineViewComponent extends TimelineBase {
51
42
  }
52
43
  return this.numberOfDays && this.numberOfDays > 1 ? '{0:D} - {1:D}' : '{0:D}';
53
44
  }
45
+ _selectedDateFormat;
54
46
  /**
55
47
  * The short-date format for displaying the
56
48
  * selected date in the Scheduler toolbar.
@@ -67,6 +59,7 @@ export class TimelineViewComponent extends TimelineBase {
67
59
  }
68
60
  return this.numberOfDays && this.numberOfDays > 1 ? '{0:d} - {1:d}' : '{0:d}';
69
61
  }
62
+ _selectedShortDateFormat;
70
63
  /**
71
64
  * Specifies the number of days that the view will render.
72
65
  * > Normalized to `1` if the provided value is <= 0.
@@ -78,12 +71,20 @@ export class TimelineViewComponent extends TimelineBase {
78
71
  get numberOfDays() {
79
72
  return this._numberOfDays;
80
73
  }
81
- }
82
- TimelineViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
83
- TimelineViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineViewComponent, isStandalone: true, selector: "kendo-scheduler-timeline-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfDays: "numberOfDays" }, providers: [{
84
- provide: SchedulerView,
85
- useExisting: forwardRef(() => TimelineViewComponent)
86
- }], usesInheritance: true, ngImport: i0, template: `
74
+ _numberOfDays = 1;
75
+ /**
76
+ * The invariant name for this view.
77
+ * @default 'timeline'
78
+ */
79
+ name = 'timeline';
80
+ constructor(localization, changeDetector, viewContext, viewState) {
81
+ super(localization, changeDetector, viewContext, viewState);
82
+ }
83
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
84
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineViewComponent, isStandalone: true, selector: "kendo-scheduler-timeline-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfDays: "numberOfDays" }, providers: [{
85
+ provide: SchedulerView,
86
+ useExisting: forwardRef(() => TimelineViewComponent)
87
+ }], usesInheritance: true, ngImport: i0, template: `
87
88
  <ng-template #content>
88
89
  <timeline-multi-day-view
89
90
  [name]="name"
@@ -117,7 +118,8 @@ TimelineViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
117
118
  <div *ngIf="viewShowFooter" viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
118
119
  </ng-template>
119
120
  `, isInline: true, dependencies: [{ kind: "component", type: TimelineMultiDayViewComponent, selector: "timeline-multi-day-view", inputs: ["name", "columnWidth", "viewName"] }, { kind: "component", type: ViewFooterComponent, selector: "[viewFooter]", inputs: ["items"], outputs: ["itemClick"] }, { kind: "directive", type: WorkHoursFooterDirective, selector: "[kendoWorkHoursFooter]", inputs: ["showWorkHours"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineViewComponent, decorators: [{
121
+ }
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineViewComponent, decorators: [{
121
123
  type: Component,
122
124
  args: [{
123
125
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -23,45 +23,30 @@ import * as i4 from "../view-state.service";
23
23
  * The component for rendering the **Week** timeline view.
24
24
  */
25
25
  export class TimelineWeekViewComponent extends TimelineBase {
26
- constructor(_intl, localization, changeDetector, viewContext, viewState) {
27
- super(localization, changeDetector, viewContext, viewState);
28
- /**
29
- * The long-date format that will be used for displaying the
30
- * selected date in the Scheduler toolbar.
31
- * Defaults to `{0:D} - {1:D}`
32
- * where `0` is the start and `1` is the end date
33
- * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
34
- * @default '{0:D} - {1:D}'
35
- */
36
- this.selectedDateFormat = '{0:D} - {1:D}';
37
- /**
38
- * The short date format that will be used for displaying the
39
- * selected date in the Scheduler toolbar.
40
- * Defaults to `{0:d} - {1:d}`
41
- * where `0` is the start and `1` is the end date
42
- * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
43
- * @default '{0:d} - {1:d}'
44
- */
45
- this.selectedShortDateFormat = '{0:d} - {1:d}';
46
- this._numberOfWeeks = 1;
47
- /**
48
- * The invariant name for this view.
49
- * @default 'timelineWeek'
50
- */
51
- this.name = 'timelineWeek';
52
- /**
53
- * @hidden
54
- */
55
- this.getStartDate = (selectedDate) => {
56
- return firstDayInWeek(getDate(selectedDate), this.viewWeekStart);
57
- };
58
- }
59
26
  /**
60
27
  * @hidden
61
28
  */
62
29
  get title() {
63
30
  return this.localization.get('timelineWeekViewTitle');
64
31
  }
32
+ /**
33
+ * The long-date format that will be used for displaying the
34
+ * selected date in the Scheduler toolbar.
35
+ * Defaults to `{0:D} - {1:D}`
36
+ * where `0` is the start and `1` is the end date
37
+ * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
38
+ * @default '{0:D} - {1:D}'
39
+ */
40
+ selectedDateFormat = '{0:D} - {1:D}';
41
+ /**
42
+ * The short date format that will be used for displaying the
43
+ * selected date in the Scheduler toolbar.
44
+ * Defaults to `{0:d} - {1:d}`
45
+ * where `0` is the start and `1` is the end date
46
+ * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
47
+ * @default '{0:d} - {1:d}'
48
+ */
49
+ selectedShortDateFormat = '{0:d} - {1:d}';
65
50
  /**
66
51
  * Specifies the number of weeks that the view will render.
67
52
  * @default 1
@@ -72,12 +57,26 @@ export class TimelineWeekViewComponent extends TimelineBase {
72
57
  get numberOfWeeks() {
73
58
  return this._numberOfWeeks;
74
59
  }
75
- }
76
- TimelineWeekViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineWeekViewComponent, deps: [{ token: i1.IntlService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.ViewContextService }, { token: i4.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
77
- TimelineWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimelineWeekViewComponent, isStandalone: true, selector: "kendo-scheduler-timeline-week-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfWeeks: "numberOfWeeks" }, providers: [{
78
- provide: SchedulerView,
79
- useExisting: forwardRef(() => TimelineWeekViewComponent)
80
- }], usesInheritance: true, ngImport: i0, template: `
60
+ _numberOfWeeks = 1;
61
+ /**
62
+ * The invariant name for this view.
63
+ * @default 'timelineWeek'
64
+ */
65
+ name = 'timelineWeek';
66
+ constructor(_intl, localization, changeDetector, viewContext, viewState) {
67
+ super(localization, changeDetector, viewContext, viewState);
68
+ }
69
+ /**
70
+ * @hidden
71
+ */
72
+ getStartDate = (selectedDate) => {
73
+ return firstDayInWeek(getDate(selectedDate), this.viewWeekStart);
74
+ };
75
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewComponent, deps: [{ token: i1.IntlService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.ViewContextService }, { token: i4.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
76
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimelineWeekViewComponent, isStandalone: true, selector: "kendo-scheduler-timeline-week-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfWeeks: "numberOfWeeks" }, providers: [{
77
+ provide: SchedulerView,
78
+ useExisting: forwardRef(() => TimelineWeekViewComponent)
79
+ }], usesInheritance: true, ngImport: i0, template: `
81
80
  <ng-template #content>
82
81
  <timeline-multi-day-view
83
82
  viewName="timeline-week"
@@ -114,7 +113,8 @@ TimelineWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
114
113
  <div *ngIf="viewShowFooter" viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
115
114
  </ng-template>
116
115
  `, isInline: true, dependencies: [{ kind: "component", type: TimelineMultiDayViewComponent, selector: "timeline-multi-day-view", inputs: ["name", "columnWidth", "viewName"] }, { kind: "component", type: ViewFooterComponent, selector: "[viewFooter]", inputs: ["items"], outputs: ["itemClick"] }, { kind: "directive", type: WorkHoursFooterDirective, selector: "[kendoWorkHoursFooter]", inputs: ["showWorkHours"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimelineWeekViewComponent, decorators: [{
116
+ }
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewComponent, decorators: [{
118
118
  type: Component,
119
119
  args: [{
120
120
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -41,10 +41,10 @@ export class SortPipe {
41
41
  transform(value, ..._args) {
42
42
  return value.sort((item1, item2) => (item1.startTime.getTime() - item2.startTime.getTime()));
43
43
  }
44
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
45
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SortPipe, isStandalone: true, name: "sort" });
44
46
  }
45
- SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
46
- SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SortPipe, isStandalone: true, name: "sort" });
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SortPipe, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortPipe, decorators: [{
48
48
  type: Pipe,
49
49
  args: [{
50
50
  // eslint-disable-next-line @angular-eslint/pipe-prefix
@@ -10,13 +10,37 @@ import * as i0 from "@angular/core";
10
10
  * Views subscribe to changes in the context (selected date, event, and resource data) through this service.
11
11
  */
12
12
  export class ViewContextService {
13
+ /**
14
+ * A stream of navigation actions that will be handled by the view.
15
+ */
16
+ action;
17
+ /**
18
+ * A stream that executes methods from the view.
19
+ */
20
+ execute;
21
+ /**
22
+ * A stream of items (events) that will be displayed in the view.
23
+ */
24
+ items;
25
+ /**
26
+ * A stream with the selected date that will be displayed by the view.
27
+ */
28
+ selectedDate;
29
+ /**
30
+ * Fires when the Scheduler element is resized.
31
+ */
32
+ resize;
33
+ /**
34
+ * Fires when the Scheduler options are changed.
35
+ */
36
+ optionsChange;
37
+ actionSource = new Subject();
38
+ itemsSource = new BehaviorSubject([]);
39
+ selectedDateSource = new BehaviorSubject(null);
40
+ resizeSource = new Subject();
41
+ optionsChangeSource = new BehaviorSubject({});
42
+ executeSource = new Subject();
13
43
  constructor() {
14
- this.actionSource = new Subject();
15
- this.itemsSource = new BehaviorSubject([]);
16
- this.selectedDateSource = new BehaviorSubject(null);
17
- this.resizeSource = new Subject();
18
- this.optionsChangeSource = new BehaviorSubject({});
19
- this.executeSource = new Subject();
20
44
  this.action = this.actionSource.asObservable();
21
45
  this.items = this.itemsSource.asObservable();
22
46
  this.selectedDate = this.selectedDateSource.asObservable();
@@ -76,10 +100,10 @@ export class ViewContextService {
76
100
  } });
77
101
  return result;
78
102
  }
103
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
104
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewContextService, providedIn: 'root' });
79
105
  }
80
- ViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
81
- ViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewContextService, providedIn: 'root' });
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewContextService, decorators: [{
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewContextService, decorators: [{
83
107
  type: Injectable,
84
108
  args: [{
85
109
  providedIn: 'root'
@@ -13,12 +13,10 @@ import * as i2 from "@progress/kendo-angular-l10n";
13
13
  * @hidden
14
14
  */
15
15
  export class BaseSlotDirective {
16
- constructor(element, slotService, localization) {
17
- this.element = element;
18
- this.slotService = slotService;
19
- this.localization = localization;
20
- this._rect = null;
21
- }
16
+ element;
17
+ slotService;
18
+ localization;
19
+ id;
22
20
  get slotIndex() {
23
21
  return this.key;
24
22
  }
@@ -34,6 +32,14 @@ export class BaseSlotDirective {
34
32
  set end(value) {
35
33
  this._end = value;
36
34
  }
35
+ _rect = null;
36
+ _start;
37
+ _end;
38
+ constructor(element, slotService, localization) {
39
+ this.element = element;
40
+ this.slotService = slotService;
41
+ this.localization = localization;
42
+ }
37
43
  get rect() {
38
44
  if (this._rect) {
39
45
  return this._rect;
@@ -85,10 +91,10 @@ export class BaseSlotDirective {
85
91
  invalidate() {
86
92
  this._rect = null;
87
93
  }
94
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseSlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.BaseSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
95
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseSlotDirective, inputs: { id: "id" }, host: { properties: { "attr.data-slot-index": "this.slotIndex" } }, ngImport: i0 });
88
96
  }
89
- BaseSlotDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseSlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.BaseSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
90
- BaseSlotDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseSlotDirective, inputs: { id: "id" }, host: { properties: { "attr.data-slot-index": "this.slotIndex" } }, ngImport: i0 });
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseSlotDirective, decorators: [{
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseSlotDirective, decorators: [{
92
98
  type: Directive
93
99
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.BaseSlotService }, { type: i2.LocalizationService }]; }, propDecorators: { id: [{
94
100
  type: Input
@@ -8,11 +8,9 @@ import { isDocumentAvailable } from '@progress/kendo-angular-common';
8
8
  * @hidden
9
9
  */
10
10
  export class BaseSlotService {
11
- constructor() {
12
- this.containerSize = 0;
13
- this.slotsChange = new EventEmitter();
14
- this.groups = [];
15
- }
11
+ containerSize = 0;
12
+ slotsChange = new EventEmitter();
13
+ groups = [];
16
14
  registerItem(component) {
17
15
  const group = this.itemGroup(component);
18
16
  group.registerItem(component);
@@ -19,18 +19,21 @@ import * as i3 from "../../navigation";
19
19
  * @hidden
20
20
  */
21
21
  export class BaseViewItem {
22
- constructor(slotService, localization, focusService, element, renderer, localeId) {
23
- this.slotService = slotService;
24
- this.localization = localization;
25
- this.focusService = focusService;
26
- this.element = element;
27
- this.renderer = renderer;
28
- this.localeId = localeId;
29
- this.className = true;
30
- this.caretAltLeftIcon = caretAltLeftIcon;
31
- this.caretAltRightIcon = caretAltRightIcon;
32
- this.subs = new Subscription();
33
- }
22
+ slotService;
23
+ localization;
24
+ focusService;
25
+ element;
26
+ renderer;
27
+ localeId;
28
+ item;
29
+ resourceIndex;
30
+ rangeIndex;
31
+ index;
32
+ eventTemplate;
33
+ editable;
34
+ dragHint;
35
+ resources;
36
+ className = true;
34
37
  get taskIndex() {
35
38
  return this.item.index;
36
39
  }
@@ -52,6 +55,18 @@ export class BaseViewItem {
52
55
  get removable() {
53
56
  return this.editable && this.editable.remove !== false;
54
57
  }
58
+ caretAltLeftIcon = caretAltLeftIcon;
59
+ caretAltRightIcon = caretAltRightIcon;
60
+ rect;
61
+ subs = new Subscription();
62
+ constructor(slotService, localization, focusService, element, renderer, localeId) {
63
+ this.slotService = slotService;
64
+ this.localization = localization;
65
+ this.focusService = focusService;
66
+ this.element = element;
67
+ this.renderer = renderer;
68
+ this.localeId = localeId;
69
+ }
55
70
  get isRecurrence() {
56
71
  return isRecurrence(this.item);
57
72
  }
@@ -141,10 +156,10 @@ export class BaseViewItem {
141
156
  get arrowSVGIcons() {
142
157
  return !this.localization.rtl ? [this.caretAltLeftIcon, this.caretAltRightIcon] : [this.caretAltRightIcon, this.caretAltLeftIcon];
143
158
  }
159
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseViewItem, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
160
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseViewItem, inputs: { item: "item", resourceIndex: "resourceIndex", rangeIndex: "rangeIndex", index: "index", eventTemplate: "eventTemplate", editable: "editable", dragHint: "dragHint", resources: "resources" }, host: { properties: { "class.k-event": "this.className", "attr.data-task-index": "this.taskIndex", "style.touch-action": "this.touchAction", "attr.aria-label": "this.eventTitle" } }, usesOnChanges: true, ngImport: i0 });
144
161
  }
145
- BaseViewItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseViewItem, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
146
- BaseViewItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseViewItem, inputs: { item: "item", resourceIndex: "resourceIndex", rangeIndex: "rangeIndex", index: "index", eventTemplate: "eventTemplate", editable: "editable", dragHint: "dragHint", resources: "resources" }, host: { properties: { "class.k-event": "this.className", "attr.data-task-index": "this.taskIndex", "style.touch-action": "this.touchAction", "attr.aria-label": "this.eventTitle" } }, usesOnChanges: true, ngImport: i0 });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseViewItem, decorators: [{
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseViewItem, decorators: [{
148
163
  type: Directive
149
164
  }], ctorParameters: function () { return [{ type: i1.BaseSlotService }, { type: i2.LocalizationService }, { type: i3.FocusService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined }]; }, propDecorators: { item: [{
150
165
  type: Input
@@ -6,10 +6,8 @@
6
6
  * @hidden
7
7
  */
8
8
  export class ItemMap {
9
- constructor() {
10
- this.count = 0;
11
- this.items = {};
12
- }
9
+ count = 0;
10
+ items = {};
13
11
  get first() {
14
12
  if (this.count > 0) {
15
13
  return this.items[Object.keys(this.items)[0]];