@progress/kendo-angular-scheduler 17.0.0-develop.9 → 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
@@ -20,13 +20,15 @@ import * as i2 from "@progress/kendo-angular-l10n";
20
20
  * @hidden
21
21
  */
22
22
  export class MonthSlotComponent extends BaseSlotDirective {
23
- constructor(element, slotService, localization, cdr) {
24
- super(element, slotService, localization);
25
- this.cdr = cdr;
26
- this.moreHorizontalIcon = moreHorizontalIcon;
27
- this.isDaySlot = true;
28
- this._linkHeight = null;
29
- }
23
+ cdr;
24
+ style;
25
+ showMoreButton;
26
+ moreHorizontalIcon = moreHorizontalIcon;
27
+ resourcesByIndex;
28
+ monthDaySlotTemplateRef;
29
+ eventsPerDay;
30
+ eventHeight;
31
+ adaptiveSlotHeight;
30
32
  set day(value) {
31
33
  this._day = value;
32
34
  this.start = value;
@@ -46,6 +48,7 @@ export class MonthSlotComponent extends BaseSlotDirective {
46
48
  get start() {
47
49
  return this.startDate;
48
50
  }
51
+ isDaySlot = true;
49
52
  get end() {
50
53
  return addUTCDays(this.start, 1);
51
54
  }
@@ -59,6 +62,13 @@ export class MonthSlotComponent extends BaseSlotDirective {
59
62
  }
60
63
  return this._linkHeight;
61
64
  }
65
+ startDate;
66
+ _day;
67
+ _linkHeight = null;
68
+ constructor(element, slotService, localization, cdr) {
69
+ super(element, slotService, localization);
70
+ this.cdr = cdr;
71
+ }
62
72
  ngOnDestroy() {
63
73
  super.ngOnDestroy();
64
74
  this.removeShowMore();
@@ -82,9 +92,8 @@ export class MonthSlotComponent extends BaseSlotDirective {
82
92
  this.showMoreButton = false;
83
93
  this.cdr.detectChanges();
84
94
  }
85
- }
86
- MonthSlotComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthSlotComponent, deps: [{ token: i0.ElementRef }, { token: i1.MonthSlotService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
87
- MonthSlotComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MonthSlotComponent, isStandalone: true, selector: "[monthSlot]", inputs: { resourcesByIndex: "resourcesByIndex", monthDaySlotTemplateRef: "monthDaySlotTemplateRef", eventsPerDay: "eventsPerDay", eventHeight: "eventHeight", adaptiveSlotHeight: "adaptiveSlotHeight", day: ["monthSlot", "day"] }, usesInheritance: true, ngImport: i0, template: `
95
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthSlotComponent, deps: [{ token: i0.ElementRef }, { token: i1.MonthSlotService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
96
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MonthSlotComponent, isStandalone: true, selector: "[monthSlot]", inputs: { resourcesByIndex: "resourcesByIndex", monthDaySlotTemplateRef: "monthDaySlotTemplateRef", eventsPerDay: "eventsPerDay", eventHeight: "eventHeight", adaptiveSlotHeight: "adaptiveSlotHeight", day: ["monthSlot", "day"] }, usesInheritance: true, ngImport: i0, template: `
88
97
  <span *ngIf="!monthDaySlotTemplateRef" aria-hidden="true" class="k-link k-nav-day">
89
98
  {{ day | kendoDate: isFirstDayOfMonth(day) ? 'MMM dd' : 'dd' }}
90
99
  </span>
@@ -103,7 +112,8 @@ MonthSlotComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
103
112
  </kendo-icon-wrapper>
104
113
  </div>
105
114
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "pipe", type: DatePipe, name: "kendoDate" }] });
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthSlotComponent, decorators: [{
115
+ }
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthSlotComponent, decorators: [{
107
117
  type: Component,
108
118
  args: [{
109
119
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -11,17 +11,15 @@ import { BORDER_WIDTH, DEFAULT_EVENT_HEIGHT, EVENT_SPACING, MORE_BUTTON_HEIGHT }
11
11
  * @hidden
12
12
  */
13
13
  export class SlotRange {
14
- constructor(index) {
15
- this.index = index;
16
- this.slotMap = new ItemMap();
17
- this.itemMap = new ItemMap();
18
- }
14
+ index;
19
15
  get slots() {
20
16
  return this.slotMap.toArray();
21
17
  }
22
18
  get items() {
23
19
  return this.itemMap.toArray();
24
20
  }
21
+ slotMap = new ItemMap();
22
+ itemMap = new ItemMap();
25
23
  get start() {
26
24
  const first = this.slotMap.first;
27
25
  if (!first) {
@@ -58,6 +56,9 @@ export class SlotRange {
58
56
  height: last.top - first.top + last.height
59
57
  };
60
58
  }
59
+ constructor(index) {
60
+ this.index = index;
61
+ }
61
62
  registerItem(component) {
62
63
  this.itemMap.addItem(component.item.index, component);
63
64
  }
@@ -244,9 +245,10 @@ export class SlotRange {
244
245
  * @hidden
245
246
  */
246
247
  export class MonthResourceGroup {
248
+ index;
249
+ dayRanges = [];
247
250
  constructor(index) {
248
251
  this.index = index;
249
- this.dayRanges = [];
250
252
  }
251
253
  get hasSlots() {
252
254
  return Boolean(this.dayRanges.find(range => range && range.hasSlots));
@@ -18,14 +18,15 @@ import * as i3 from "../../navigation";
18
18
  * @hidden
19
19
  */
20
20
  export class MonthViewItemComponent extends BaseViewItem {
21
+ localeId;
22
+ caretAltLeftIcon = caretAltLeftIcon;
23
+ caretAltRightIcon = caretAltRightIcon;
24
+ arrowRotateCwIcon = arrowRotateCwIcon;
25
+ arrowsNoRepeatIcon = arrowsNoRepeatIcon;
26
+ xIcon = xIcon;
21
27
  constructor(slotService, localization, focusService, element, renderer, localeId) {
22
28
  super(slotService, localization, focusService, element, renderer, localeId);
23
29
  this.localeId = localeId;
24
- this.caretAltLeftIcon = caretAltLeftIcon;
25
- this.caretAltRightIcon = caretAltRightIcon;
26
- this.arrowRotateCwIcon = arrowRotateCwIcon;
27
- this.arrowsNoRepeatIcon = arrowsNoRepeatIcon;
28
- this.xIcon = xIcon;
29
30
  }
30
31
  reflow() {
31
32
  if (this.item.data[this.resourceIndex].hidden) {
@@ -37,9 +38,8 @@ export class MonthViewItemComponent extends BaseViewItem {
37
38
  }
38
39
  super.reflow();
39
40
  }
40
- }
41
- MonthViewItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewItemComponent, deps: [{ token: i1.MonthSlotService }, { token: i2.LocalizationService }, { token: i3.FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component });
42
- MonthViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MonthViewItemComponent, isStandalone: true, selector: "[monthViewItem]", usesInheritance: true, ngImport: i0, template: `
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewItemComponent, deps: [{ token: i1.MonthSlotService }, { token: i2.LocalizationService }, { token: i3.FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component });
42
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MonthViewItemComponent, isStandalone: true, selector: "[monthViewItem]", usesInheritance: true, ngImport: i0, template: `
43
43
  <span class="k-event-actions">
44
44
  <kendo-icon-wrapper
45
45
  *ngIf="item.tail"
@@ -84,7 +84,8 @@ MonthViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
84
84
  <span class="k-resize-handle k-resize-e"></span>
85
85
  </ng-container>
86
86
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewItemComponent, decorators: [{
87
+ }
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewItemComponent, decorators: [{
88
89
  type: Component,
89
90
  args: [{
90
91
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -37,19 +37,35 @@ import * as i7 from "@progress/kendo-angular-common";
37
37
  * @hidden
38
38
  */
39
39
  export class MonthViewRendererComponent extends BaseView {
40
+ monthDaySlotTemplate;
41
+ highlightOngoingEvents;
42
+ type;
43
+ eventsPerDay;
44
+ adaptiveSlotHeight;
45
+ /**
46
+ * The number of weeks to be rendered in the view
47
+ */
48
+ numberOfWeeks = WEEKS_COUNT;
49
+ /**
50
+ * Calculates the next or previous range to be displayed (for Month and Multi-Week views)
51
+ */
52
+ newRange;
53
+ /**
54
+ * Determines the displayed date range and formats the selected date (for Month and Multi-Week views)
55
+ */
56
+ dateRangeFn;
57
+ resizeHintFormat = { skeleton: 'Md' };
58
+ weeks = [];
59
+ eventElements;
60
+ get monthDaySlotTemplateRef() {
61
+ return this.monthDaySlotTemplate || (this.schedulerMonthDaySlotTemplate || {}).templateRef;
62
+ }
63
+ ongoingEventsTimeout;
64
+ schedulerMonthDaySlotTemplate;
40
65
  constructor(viewContext, viewState, intl, slotService, zone, element, renderer, pdfService, localization, changeDetector, scrollBarWidthService) {
41
66
  super(viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, changeDetector, scrollBarWidthService);
42
- /**
43
- * The number of weeks to be rendered in the view
44
- */
45
- this.numberOfWeeks = WEEKS_COUNT;
46
- this.resizeHintFormat = { skeleton: 'Md' };
47
- this.weeks = [];
48
67
  this.updateOngoingEvents = this.updateOngoingEvents.bind(this);
49
68
  }
50
- get monthDaySlotTemplateRef() {
51
- return this.monthDaySlotTemplate || (this.schedulerMonthDaySlotTemplate || {}).templateRef;
52
- }
53
69
  ngOnChanges(changes) {
54
70
  if (isChanged('weekStart', changes)) {
55
71
  this.onSelectDate(this.selectedDate);
@@ -238,11 +254,10 @@ export class MonthViewRendererComponent extends BaseView {
238
254
  }
239
255
  return weeks;
240
256
  }
241
- }
242
- MonthViewRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewRendererComponent, deps: [{ token: i1.ViewContextService }, { token: i2.ViewStateService }, { token: i3.IntlService }, { token: i4.MonthSlotService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i5.PDFService }, { token: i6.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i7.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
243
- MonthViewRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MonthViewRendererComponent, isStandalone: true, selector: "month-view", inputs: { monthDaySlotTemplate: "monthDaySlotTemplate", highlightOngoingEvents: "highlightOngoingEvents", type: "type", eventsPerDay: "eventsPerDay", adaptiveSlotHeight: "adaptiveSlotHeight", numberOfWeeks: "numberOfWeeks", newRange: "newRange", dateRangeFn: "dateRangeFn" }, providers: [
244
- MonthSlotService
245
- ], viewQueries: [{ propertyName: "eventElements", predicate: MonthViewItemComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
257
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewRendererComponent, deps: [{ token: i1.ViewContextService }, { token: i2.ViewStateService }, { token: i3.IntlService }, { token: i4.MonthSlotService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i5.PDFService }, { token: i6.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i7.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
258
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MonthViewRendererComponent, isStandalone: true, selector: "month-view", inputs: { monthDaySlotTemplate: "monthDaySlotTemplate", highlightOngoingEvents: "highlightOngoingEvents", type: "type", eventsPerDay: "eventsPerDay", adaptiveSlotHeight: "adaptiveSlotHeight", numberOfWeeks: "numberOfWeeks", newRange: "newRange", dateRangeFn: "dateRangeFn" }, providers: [
259
+ MonthSlotService
260
+ ], viewQueries: [{ propertyName: "eventElements", predicate: MonthViewItemComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
246
261
  <table class="k-scheduler-layout k-scheduler-monthview">
247
262
  <tbody>
248
263
  <tr class="k-scheduler-head">
@@ -391,7 +406,8 @@ MonthViewRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
391
406
  </tbody>
392
407
  </table>
393
408
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MonthSlotComponent, selector: "[monthSlot]", inputs: ["resourcesByIndex", "monthDaySlotTemplateRef", "eventsPerDay", "eventHeight", "adaptiveSlotHeight", "monthSlot"] }, { kind: "component", type: MonthViewItemComponent, selector: "[monthViewItem]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: RepeatPipe, name: "repeat" }, { kind: "pipe", type: ResourceIteratorPipe, name: "resourceIterator" }, { kind: "pipe", type: DatePipe, name: "kendoDate" }, { kind: "pipe", type: AsyncPipe, name: "async" }] });
394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewRendererComponent, decorators: [{
409
+ }
410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewRendererComponent, decorators: [{
395
411
  type: Component,
396
412
  args: [{
397
413
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -23,29 +23,7 @@ import * as i4 from "@progress/kendo-angular-intl";
23
23
  * The component for rendering the **Month** view.
24
24
  */
25
25
  export class MonthViewComponent extends ConfigurationViewBase {
26
- constructor(localization, changeDetector, viewContext, viewState, intl) {
27
- super(localization, changeDetector, viewContext, viewState);
28
- this.intl = intl;
29
- /**
30
- * The long-date format for displaying the
31
- * selected date in the Scheduler toolbar.
32
- * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
33
- * @default '{0:Y}'
34
- */
35
- this.selectedDateFormat = '{0:Y}';
36
- /**
37
- * The short-date format for displaying the
38
- * selected date in the Scheduler toolbar.
39
- * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting.
40
- * @default '{0:y}'
41
- */
42
- this.selectedShortDateFormat = '{0:y}';
43
- /**
44
- * The invariant name for this view.
45
- * @default 'month'
46
- */
47
- this.name = 'month';
48
- }
26
+ intl;
49
27
  /**
50
28
  * @hidden
51
29
  */
@@ -54,7 +32,8 @@ export class MonthViewComponent extends ConfigurationViewBase {
54
32
  }
55
33
  /**
56
34
  * The number of events to be rendered per day. Setting this property to 'auto'
57
- * will display all events in the respective slot.
35
+ * will display all events in the respective slot
36
+ * ([see example](slug:month_views_scheduler#setting-the-number-of-events-per-day)).
58
37
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
59
38
  * > If set to `0` it will be normalized internally to `1`.
60
39
  * @default 2
@@ -65,9 +44,48 @@ export class MonthViewComponent extends ConfigurationViewBase {
65
44
  get eventsPerDay() {
66
45
  return this._eventsPerDay;
67
46
  }
47
+ _eventsPerDay;
48
+ /**
49
+ * The height of the rendered events. Setting this property to 'auto' will
50
+ * set the height of each event automatically based on its content
51
+ * ([see example](slug:month_views_scheduler#configuring-the-height-of-the-scheduler-events)).
52
+ * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
53
+ */
54
+ eventHeight;
55
+ /**
56
+ * Increases the slot group (row) height when containing events up to the number of displayed events
57
+ * and reduces its height if there are less events for that specific slot group (row)
58
+ * ([see example](slug:month_views_scheduler#enabling-the-adaptive-slot-height-of-the-scheduler)).
59
+ * @default false
60
+ */
61
+ adaptiveSlotHeight;
62
+ /**
63
+ * The long-date format for displaying the
64
+ * selected date in the Scheduler toolbar.
65
+ * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
66
+ * @default '{0:Y}'
67
+ */
68
+ selectedDateFormat = '{0:Y}';
69
+ /**
70
+ * The short-date format for displaying the
71
+ * selected date in the Scheduler toolbar.
72
+ * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting.
73
+ * @default '{0:y}'
74
+ */
75
+ selectedShortDateFormat = '{0:y}';
76
+ monthDaySlotTemplate;
77
+ /**
78
+ * The invariant name for this view.
79
+ * @default 'month'
80
+ */
81
+ name = 'month';
68
82
  get viewEventHeight() {
69
83
  return isPresent(this.eventHeight) ? this.eventHeight : (this.schedulerOptions.eventHeight || DEFAULT_EVENT_HEIGHT);
70
84
  }
85
+ constructor(localization, changeDetector, viewContext, viewState, intl) {
86
+ super(localization, changeDetector, viewContext, viewState);
87
+ this.intl = intl;
88
+ }
71
89
  ngOnChanges(changes) {
72
90
  if ((changes['eventHeight'] && changes['eventHeight'].currentValue === 'auto') ||
73
91
  (changes['eventsPerDay'] && changes['eventsPerDay'].currentValue === 'auto')) {
@@ -95,12 +113,11 @@ export class MonthViewComponent extends ConfigurationViewBase {
95
113
  newRange(date, direction = 1) {
96
114
  return firstDayOfMonth(addMonths(date, direction));
97
115
  }
98
- }
99
- MonthViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }, { token: i4.IntlService }], target: i0.ɵɵFactoryTarget.Component });
100
- MonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MonthViewComponent, isStandalone: true, selector: "kendo-scheduler-month-view", inputs: { eventsPerDay: "eventsPerDay", eventHeight: "eventHeight", adaptiveSlotHeight: "adaptiveSlotHeight", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
101
- provide: SchedulerView,
102
- useExisting: forwardRef(() => MonthViewComponent)
103
- }], queries: [{ propertyName: "monthDaySlotTemplate", first: true, predicate: MonthDaySlotTemplateDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
116
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }, { token: i4.IntlService }], target: i0.ɵɵFactoryTarget.Component });
117
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MonthViewComponent, isStandalone: true, selector: "kendo-scheduler-month-view", inputs: { eventsPerDay: "eventsPerDay", eventHeight: "eventHeight", adaptiveSlotHeight: "adaptiveSlotHeight", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
118
+ provide: SchedulerView,
119
+ useExisting: forwardRef(() => MonthViewComponent)
120
+ }], queries: [{ propertyName: "monthDaySlotTemplate", first: true, predicate: MonthDaySlotTemplateDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
104
121
  <ng-template #content>
105
122
  <month-view
106
123
  type="month"
@@ -122,7 +139,8 @@ MonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
122
139
  </month-view>
123
140
  </ng-template>
124
141
  `, isInline: true, dependencies: [{ kind: "component", type: MonthViewRendererComponent, selector: "month-view", inputs: ["monthDaySlotTemplate", "highlightOngoingEvents", "type", "eventsPerDay", "adaptiveSlotHeight", "numberOfWeeks", "newRange", "dateRangeFn"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewComponent, decorators: [{
142
+ }
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewComponent, decorators: [{
126
144
  type: Component,
127
145
  args: [{
128
146
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -23,42 +23,24 @@ import * as i4 from "@progress/kendo-angular-intl";
23
23
  * The component for rendering the **Multi-Week** view.
24
24
  */
25
25
  export class MultiWeekViewComponent extends ConfigurationViewBase {
26
- constructor(localization, changeDetector, viewContext, viewState, intl) {
27
- super(localization, changeDetector, viewContext, viewState);
28
- this.intl = intl;
29
- /**
30
- * The number of weeks to be rendered.
31
- * @default 6
32
- */
33
- this.numberOfWeeks = WEEKS_COUNT;
34
- /**
35
- * The long-date format for displaying the
36
- * selected date in the Scheduler toolbar.
37
- * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
38
- * @default '{0:D} - {1:D}'
39
- */
40
- this.selectedDateFormat = '{0:D} - {1:D}';
41
- /**
42
- * The short-date format for displaying the
43
- * selected date in the Scheduler toolbar.
44
- * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting.
45
- * @default '{0:d} - {1:d}'
46
- */
47
- this.selectedShortDateFormat = '{0:d} - {1:d}';
48
- /**
49
- * The invariant name for this view (`multiWeek`).
50
- */
51
- this.name = 'multiWeek';
52
- }
26
+ intl;
53
27
  /**
54
28
  * @hidden
55
29
  */
56
30
  get title() {
57
31
  return this.localization.get('multiWeekViewTitle');
58
32
  }
33
+ /**
34
+ * The height of the rendered events. Setting this property to `'auto'` will
35
+ * set the height of each event automatically based on its content
36
+ * ([see example](slug:multiweek_views_scheduler#configuring-the-height-of-the-scheduler-events)).
37
+ * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
38
+ */
39
+ eventHeight;
59
40
  /**
60
41
  * The number of events to be rendered per day. Setting this property to 'auto'
61
- * will display all events in the respective slot.
42
+ * will display all events in the respective slot
43
+ * ([see example](slug:multiweek_views_scheduler#setting-the-number-of-events-per-day)).
62
44
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
63
45
  * > If set to `0` it will be normalized internally to `1`.
64
46
  * @default 2
@@ -69,9 +51,45 @@ export class MultiWeekViewComponent extends ConfigurationViewBase {
69
51
  get eventsPerDay() {
70
52
  return this._eventsPerDay;
71
53
  }
54
+ _eventsPerDay;
55
+ /**
56
+ * Increases the slot group (row) height when containing events up to the number of displayed events
57
+ * and reduces its height if there are less events for that specific slot group (row)
58
+ * ([see example](slug:multiweek_views_scheduler#enabling-the-adaptive-slot-height-of-the-scheduler)).
59
+ * @default false
60
+ */
61
+ adaptiveSlotHeight;
62
+ /**
63
+ * The number of weeks to be rendered.
64
+ * @default 6
65
+ */
66
+ numberOfWeeks = WEEKS_COUNT;
67
+ /**
68
+ * The long-date format for displaying the
69
+ * selected date in the Scheduler toolbar.
70
+ * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
71
+ * @default '{0:D} - {1:D}'
72
+ */
73
+ selectedDateFormat = '{0:D} - {1:D}';
74
+ /**
75
+ * The short-date format for displaying the
76
+ * selected date in the Scheduler toolbar.
77
+ * ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting.
78
+ * @default '{0:d} - {1:d}'
79
+ */
80
+ selectedShortDateFormat = '{0:d} - {1:d}';
81
+ multiWeekDaySlotTemplate;
82
+ /**
83
+ * The invariant name for this view (`multiWeek`).
84
+ */
85
+ name = 'multiWeek';
72
86
  get viewEventHeight() {
73
87
  return isPresent(this.eventHeight) ? this.eventHeight : (this.schedulerOptions.eventHeight || DEFAULT_EVENT_HEIGHT);
74
88
  }
89
+ constructor(localization, changeDetector, viewContext, viewState, intl) {
90
+ super(localization, changeDetector, viewContext, viewState);
91
+ this.intl = intl;
92
+ }
75
93
  ngOnChanges(changes) {
76
94
  if ((changes['eventHeight'] && changes['eventHeight'].currentValue === 'auto') ||
77
95
  (changes['eventsPerDay'] && changes['eventsPerDay'].currentValue === 'auto')) {
@@ -99,12 +117,11 @@ export class MultiWeekViewComponent extends ConfigurationViewBase {
99
117
  newRange(date, direction = 1) {
100
118
  return firstDayInWeek(addWeeks(date, this.numberOfWeeks * direction));
101
119
  }
102
- }
103
- MultiWeekViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiWeekViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }, { token: i4.IntlService }], target: i0.ɵɵFactoryTarget.Component });
104
- MultiWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiWeekViewComponent, isStandalone: true, selector: "kendo-scheduler-multi-week-view", inputs: { eventHeight: "eventHeight", eventsPerDay: "eventsPerDay", adaptiveSlotHeight: "adaptiveSlotHeight", numberOfWeeks: "numberOfWeeks", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
105
- provide: SchedulerView,
106
- useExisting: forwardRef(() => MultiWeekViewComponent)
107
- }], queries: [{ propertyName: "multiWeekDaySlotTemplate", first: true, predicate: MultiWeekDaySlotTemplateDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
120
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiWeekViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }, { token: i4.IntlService }], target: i0.ɵɵFactoryTarget.Component });
121
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MultiWeekViewComponent, isStandalone: true, selector: "kendo-scheduler-multi-week-view", inputs: { eventHeight: "eventHeight", eventsPerDay: "eventsPerDay", adaptiveSlotHeight: "adaptiveSlotHeight", numberOfWeeks: "numberOfWeeks", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
122
+ provide: SchedulerView,
123
+ useExisting: forwardRef(() => MultiWeekViewComponent)
124
+ }], queries: [{ propertyName: "multiWeekDaySlotTemplate", first: true, predicate: MultiWeekDaySlotTemplateDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
108
125
  <ng-template #content>
109
126
  <month-view
110
127
  type="multiWeek"
@@ -127,7 +144,8 @@ MultiWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
127
144
  </month-view>
128
145
  </ng-template>
129
146
  `, isInline: true, dependencies: [{ kind: "component", type: MonthViewRendererComponent, selector: "month-view", inputs: ["monthDaySlotTemplate", "highlightOngoingEvents", "type", "eventsPerDay", "adaptiveSlotHeight", "numberOfWeeks", "newRange", "dateRangeFn"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiWeekViewComponent, decorators: [{
147
+ }
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiWeekViewComponent, decorators: [{
131
149
  type: Component,
132
150
  args: [{
133
151
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -21,16 +21,6 @@ import * as i3 from "../view-state.service";
21
21
  * The component for rendering the **Day** view.
22
22
  */
23
23
  export class DayViewComponent extends MultiDayViewBase {
24
- constructor(localization, changeDetector, viewContext, viewState) {
25
- super(localization, changeDetector, viewContext, viewState);
26
- /**
27
- * The invariant name for this view.
28
- * @default 'day'
29
- */
30
- this.name = 'day';
31
- this._selectedDateFormat = '{0:D}';
32
- this._selectedShortDateFormat = '{0:d}';
33
- }
34
24
  /**
35
25
  * @hidden
36
26
  */
@@ -61,12 +51,29 @@ export class DayViewComponent extends MultiDayViewBase {
61
51
  get selectedShortDateFormat() {
62
52
  return this._selectedShortDateFormat;
63
53
  }
64
- }
65
- DayViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
66
- DayViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DayViewComponent, isStandalone: true, selector: "kendo-scheduler-day-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
67
- provide: SchedulerView,
68
- useExisting: forwardRef(() => DayViewComponent)
69
- }], queries: [{ propertyName: "allDaySlotTemplate", first: true, predicate: AllDaySlotTemplateDirective, descendants: true }, { propertyName: "allDayEventTemplate", first: true, predicate: AllDayEventTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
54
+ /**
55
+ * @hidden
56
+ */
57
+ allDaySlotTemplate;
58
+ /**
59
+ * @hidden
60
+ */
61
+ allDayEventTemplate;
62
+ /**
63
+ * The invariant name for this view.
64
+ * @default 'day'
65
+ */
66
+ name = 'day';
67
+ _selectedDateFormat = '{0:D}';
68
+ _selectedShortDateFormat = '{0:d}';
69
+ constructor(localization, changeDetector, viewContext, viewState) {
70
+ super(localization, changeDetector, viewContext, viewState);
71
+ }
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
73
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DayViewComponent, isStandalone: true, selector: "kendo-scheduler-day-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
74
+ provide: SchedulerView,
75
+ useExisting: forwardRef(() => DayViewComponent)
76
+ }], queries: [{ propertyName: "allDaySlotTemplate", first: true, predicate: AllDaySlotTemplateDirective, descendants: true }, { propertyName: "allDayEventTemplate", first: true, predicate: AllDayEventTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
70
77
  <ng-template #content>
71
78
  <multi-day-view
72
79
  [name]="name"
@@ -102,7 +109,8 @@ DayViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
102
109
  <div *ngIf="viewShowFooter" viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
103
110
  </ng-template>
104
111
  `, isInline: true, dependencies: [{ kind: "component", type: MultiDayViewRendererComponent, selector: "multi-day-view", inputs: ["allDaySlot", "name", "slotFill", "allDaySlotTemplate", "allDayEventTemplate"] }, { 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 });
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayViewComponent, decorators: [{
112
+ }
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayViewComponent, decorators: [{
106
114
  type: Component,
107
115
  args: [{
108
116
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -17,25 +17,36 @@ const ALL_DAY_SLOT = 'allDaySlot';
17
17
  * @hidden
18
18
  */
19
19
  export class MultiDayViewBase extends DayTimeViewBase {
20
- constructor(localization, changeDetector, viewContext, viewState) {
21
- super(localization, changeDetector, viewContext, viewState);
22
- }
20
+ /**
21
+ * Numeric value between 0 and 1 that specifies what percentage of the slot should be filled by the events.
22
+ *
23
+ * @default 0.9
24
+ */
25
+ slotFill;
23
26
  /**
24
27
  * @hidden
25
28
  */
26
29
  get viewSlotFill() {
27
30
  return this.optionValue(SLOT_FILL);
28
31
  }
32
+ /**
33
+ * Toggles the all-day slot.
34
+ * @default true
35
+ */
36
+ allDaySlot;
29
37
  /**
30
38
  * @hidden
31
39
  */
32
40
  get viewAllDaySlot() {
33
41
  return this.optionValue(ALL_DAY_SLOT);
34
42
  }
43
+ constructor(localization, changeDetector, viewContext, viewState) {
44
+ super(localization, changeDetector, viewContext, viewState);
45
+ }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiDayViewBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
47
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MultiDayViewBase, inputs: { slotFill: "slotFill", allDaySlot: "allDaySlot" }, usesInheritance: true, ngImport: i0 });
35
48
  }
36
- MultiDayViewBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiDayViewBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
37
- MultiDayViewBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiDayViewBase, inputs: { slotFill: "slotFill", allDaySlot: "allDaySlot" }, usesInheritance: true, ngImport: i0 });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiDayViewBase, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiDayViewBase, decorators: [{
39
50
  type: Directive
40
51
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.ViewContextService }, { type: i3.ViewStateService }]; }, propDecorators: { slotFill: [{
41
52
  type: Input