@progress/kendo-angular-scheduler 17.0.0-develop.21 → 17.0.0-develop.23

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 (261) 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}/loading.component.mjs +12 -8
  68. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
  69. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
  70. package/esm2022/localization/messages.mjs +614 -0
  71. package/{esm2020 → esm2022}/localization/scheduler-localization.service.mjs +3 -3
  72. package/{esm2020 → esm2022}/navigation/focus.service.mjs +21 -15
  73. package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +19 -15
  74. package/esm2022/navigation/shortcuts.directive.mjs +220 -0
  75. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  76. package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +9 -8
  77. package/{esm2020 → esm2022}/pdf/pdf.component.mjs +93 -8
  78. package/{esm2020 → esm2022}/pdf/pdf.module.mjs +4 -4
  79. package/{esm2020 → esm2022}/pdf/pdf.service.mjs +7 -9
  80. package/{esm2020 → esm2022}/scheduler.component.mjs +412 -256
  81. package/{esm2020 → esm2022}/scheduler.module.mjs +30 -30
  82. package/{esm2020 → esm2022}/shared.module.mjs +6 -6
  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/views-shared.module.mjs +18 -20
  106. package/{esm2020 → esm2022}/views/common/work-hours-footer.directive.mjs +7 -5
  107. package/{esm2020 → esm2022}/views/day-time/day-time-slot.service.mjs +11 -7
  108. package/{esm2020 → esm2022}/views/day-time/day-time-view-base.mjs +81 -8
  109. package/{esm2020 → esm2022}/views/day-time/day-time-view-item.component.mjs +18 -14
  110. package/{esm2020 → esm2022}/views/day-time/day-time-view.component.mjs +50 -29
  111. package/{esm2020 → esm2022}/views/day-time/day-time.module.mjs +8 -8
  112. package/{esm2020 → esm2022}/views/day-time/event-slot.directive.mjs +23 -14
  113. package/{esm2020 → esm2022}/views/month/month-slot.component.mjs +21 -11
  114. package/{esm2020 → esm2022}/views/month/month-slot.service.mjs +8 -6
  115. package/{esm2020 → esm2022}/views/month/month-view-item.component.mjs +10 -9
  116. package/{esm2020 → esm2022}/views/month/month-view-renderer.component.mjs +31 -15
  117. package/{esm2020 → esm2022}/views/month/month-view.component.mjs +47 -30
  118. package/{esm2020 → esm2022}/views/month/month-view.module.mjs +11 -11
  119. package/{esm2020 → esm2022}/views/month/multi-week-view.component.mjs +51 -34
  120. package/{esm2020 → esm2022}/views/multi-day/day-view.component.mjs +25 -17
  121. package/{esm2020 → esm2022}/views/multi-day/multi-day-view-base.mjs +17 -6
  122. package/{esm2020 → esm2022}/views/multi-day/multi-day-view-renderer.component.mjs +22 -13
  123. package/{esm2020 → esm2022}/views/multi-day/multi-day-view.component.mjs +22 -20
  124. package/{esm2020 → esm2022}/views/multi-day/multi-day-view.module.mjs +14 -14
  125. package/{esm2020 → esm2022}/views/multi-day/week-view.component.mjs +44 -35
  126. package/{esm2020 → esm2022}/views/multi-day/work-week-view.component.mjs +16 -16
  127. package/{esm2020 → esm2022}/views/scheduler-view.directive.mjs +16 -10
  128. package/{esm2020 → esm2022}/views/templates/agenda-date-template.directive.mjs +4 -3
  129. package/{esm2020 → esm2022}/views/templates/agenda-time-template.directive.mjs +4 -3
  130. package/{esm2020 → esm2022}/views/templates/all-day-event-template.directive.mjs +4 -3
  131. package/{esm2020 → esm2022}/views/templates/all-day-slot-template.directive.mjs +4 -3
  132. package/{esm2020 → esm2022}/views/templates/date-header-template.directive.mjs +4 -3
  133. package/{esm2020 → esm2022}/views/templates/event-template.directive.mjs +4 -3
  134. package/{esm2020 → esm2022}/views/templates/group-header-template.directive.mjs +4 -3
  135. package/{esm2020 → esm2022}/views/templates/major-time-header-template.directive.mjs +4 -3
  136. package/{esm2020 → esm2022}/views/templates/minor-time-header-template.directive.mjs +4 -3
  137. package/{esm2020 → esm2022}/views/templates/month-day-slot-template.directive.mjs +4 -3
  138. package/{esm2020 → esm2022}/views/templates/multi-week-day-slot-template.directive.mjs +4 -3
  139. package/{esm2020 → esm2022}/views/templates/time-slot-template.directive.mjs +4 -3
  140. package/{esm2020 → esm2022}/views/timeline/timeline-base.mjs +10 -6
  141. package/{esm2020 → esm2022}/views/timeline/timeline-month-view.component.mjs +36 -34
  142. package/{esm2020 → esm2022}/views/timeline/timeline-multi-day-view.component.mjs +16 -13
  143. package/{esm2020 → esm2022}/views/timeline/timeline-view.component.mjs +18 -16
  144. package/{esm2020 → esm2022}/views/timeline/timeline-view.module.mjs +12 -12
  145. package/{esm2020 → esm2022}/views/timeline/timeline-week-view.component.mjs +40 -40
  146. package/{esm2020 → esm2022}/views/timeline/utils.mjs +3 -3
  147. package/{esm2020 → esm2022}/views/view-context.service.mjs +33 -9
  148. package/{esm2020 → esm2022}/views/view-items/base-slot.directive.mjs +15 -9
  149. package/{esm2020 → esm2022}/views/view-items/base-slot.service.mjs +3 -5
  150. package/{esm2020 → esm2022}/views/view-items/base-view-item.mjs +30 -15
  151. package/{esm2020 → esm2022}/views/view-items/item-map.mjs +2 -4
  152. package/{esm2020 → esm2022}/views/view-state.service.mjs +56 -20
  153. package/{esm2020 → esm2022}/views/year/year-view-internal.component.mjs +38 -26
  154. package/{esm2020 → esm2022}/views/year/year-view.component.mjs +38 -31
  155. package/{fesm2020 → fesm2022}/progress-kendo-angular-scheduler.mjs +3622 -1732
  156. package/loading.component.d.ts +1 -1
  157. package/localization/messages.d.ts +1 -1
  158. package/navigation/focusable.directive.d.ts +1 -1
  159. package/package.json +23 -29
  160. package/pdf/pdf.component.d.ts +1 -1
  161. package/scheduler.component.d.ts +1 -1
  162. package/schematics/ngAdd/index.js +3 -3
  163. package/toolbar/navigation.component.d.ts +1 -1
  164. package/toolbar/toolbar.component.d.ts +1 -1
  165. package/toolbar/view-selector.component.d.ts +1 -1
  166. package/types/actions.d.ts +1 -1
  167. package/types/focusable-container.d.ts +1 -1
  168. package/types/slot-selection.d.ts +1 -1
  169. package/views/agenda/agenda-header-item.component.d.ts +1 -1
  170. package/views/agenda/agenda-header.component.d.ts +1 -1
  171. package/views/agenda/agenda-task-item.component.d.ts +1 -1
  172. package/views/agenda/agenda-view-internal.component.d.ts +1 -1
  173. package/views/agenda/agenda-view-list.component.d.ts +1 -1
  174. package/views/agenda/agenda-view.component.d.ts +2 -6
  175. package/views/common/base-view.d.ts +1 -1
  176. package/views/common/configuration-view-base.d.ts +1 -1
  177. package/views/common/resize-hint.component.d.ts +1 -1
  178. package/views/common/slot-selectable.directive.d.ts +1 -1
  179. package/views/common/view-footer.component.d.ts +1 -1
  180. package/views/common/work-hours-footer.directive.d.ts +1 -1
  181. package/views/day-time/day-time-view-base.d.ts +2 -6
  182. package/views/day-time/day-time-view-item.component.d.ts +1 -1
  183. package/views/day-time/day-time-view.component.d.ts +1 -1
  184. package/views/day-time/event-slot.directive.d.ts +2 -2
  185. package/views/month/month-slot.component.d.ts +1 -1
  186. package/views/month/month-view-renderer.component.d.ts +1 -1
  187. package/views/month/month-view.component.d.ts +1 -1
  188. package/views/month/multi-week-view.component.d.ts +1 -1
  189. package/views/multi-day/day-view.component.d.ts +1 -1
  190. package/views/multi-day/multi-day-view-base.d.ts +1 -1
  191. package/views/multi-day/multi-day-view-renderer.component.d.ts +1 -1
  192. package/views/multi-day/multi-day-view.component.d.ts +1 -1
  193. package/views/multi-day/week-view.component.d.ts +1 -1
  194. package/views/scheduler-view.directive.d.ts +1 -1
  195. package/views/timeline/timeline-base.d.ts +1 -1
  196. package/views/timeline/timeline-month-view.component.d.ts +1 -1
  197. package/views/timeline/timeline-multi-day-view.component.d.ts +1 -1
  198. package/views/timeline/timeline-view.component.d.ts +1 -1
  199. package/views/timeline/timeline-week-view.component.d.ts +1 -1
  200. package/views/view-items/base-slot.directive.d.ts +1 -1
  201. package/views/view-items/base-view-item.d.ts +1 -1
  202. package/views/year/year-view-internal.component.d.ts +1 -4
  203. package/views/year/year-view.component.d.ts +6 -6
  204. package/esm2020/editing/recurrence/localization/messages.mjs +0 -91
  205. package/esm2020/events/drag-event.mjs +0 -18
  206. package/esm2020/localization/messages.mjs +0 -213
  207. package/esm2020/navigation/shortcuts.directive.mjs +0 -213
  208. package/esm2020/views/common/dom-events.service.mjs +0 -24
  209. package/fesm2015/progress-kendo-angular-scheduler.mjs +0 -19237
  210. /package/{esm2020 → esm2022}/common/constants.mjs +0 -0
  211. /package/{esm2020 → esm2022}/common/default-model-fields.mjs +0 -0
  212. /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
  213. /package/{esm2020 → esm2022}/common/getter.mjs +0 -0
  214. /package/{esm2020 → esm2022}/common/modifiers.mjs +0 -0
  215. /package/{esm2020 → esm2022}/common/setter.mjs +0 -0
  216. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  217. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  218. /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
  219. /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
  220. /package/{esm2020 → esm2022}/events/slot-drag-end-event.mjs +0 -0
  221. /package/{esm2020 → esm2022}/events/view-event-map.mjs +0 -0
  222. /package/{esm2020 → esm2022}/events.mjs +0 -0
  223. /package/{esm2020 → esm2022}/index.mjs +0 -0
  224. /package/{esm2020 → esm2022}/navigation/focus-position.interface.mjs +0 -0
  225. /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
  226. /package/{esm2020 → esm2022}/navigation.mjs +0 -0
  227. /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
  228. /package/{esm2020 → esm2022}/progress-kendo-angular-scheduler.mjs +0 -0
  229. /package/{esm2020 → esm2022}/toolbar/toolbar-context.mjs +0 -0
  230. /package/{esm2020 → esm2022}/types/actions.mjs +0 -0
  231. /package/{esm2020 → esm2022}/types/create-form-group-args.interface.mjs +0 -0
  232. /package/{esm2020 → esm2022}/types/crud-operation.enum.mjs +0 -0
  233. /package/{esm2020 → esm2022}/types/current-time-settings.interface.mjs +0 -0
  234. /package/{esm2020 → esm2022}/types/date-range.interface.mjs +0 -0
  235. /package/{esm2020 → esm2022}/types/datepicker-options.interface.mjs +0 -0
  236. /package/{esm2020 → esm2022}/types/edit-event-args.interface.mjs +0 -0
  237. /package/{esm2020 → esm2022}/types/edit-mode.enum.mjs +0 -0
  238. /package/{esm2020 → esm2022}/types/editable-settings.interface.mjs +0 -0
  239. /package/{esm2020 → esm2022}/types/event-style-args.interface.mjs +0 -0
  240. /package/{esm2020 → esm2022}/types/focusable-container.mjs +0 -0
  241. /package/{esm2020 → esm2022}/types/group.interface.mjs +0 -0
  242. /package/{esm2020 → esm2022}/types/numeric-options.interface.mjs +0 -0
  243. /package/{esm2020 → esm2022}/types/ongoing-events-settings.interface.mjs +0 -0
  244. /package/{esm2020 → esm2022}/types/resource.interface.mjs +0 -0
  245. /package/{esm2020 → esm2022}/types/scheduler-event.mjs +0 -0
  246. /package/{esm2020 → esm2022}/types/scheduler-model-fields.interface.mjs +0 -0
  247. /package/{esm2020 → esm2022}/types/scheduler-slot.interface.mjs +0 -0
  248. /package/{esm2020 → esm2022}/types/scheduler-view.mjs +0 -0
  249. /package/{esm2020 → esm2022}/types/slot-class-args.interface.mjs +0 -0
  250. /package/{esm2020 → esm2022}/types/view-item.interface.mjs +0 -0
  251. /package/{esm2020 → esm2022}/types.mjs +0 -0
  252. /package/{esm2020 → esm2022}/views/agenda/utils.mjs +0 -0
  253. /package/{esm2020 → esm2022}/views/common/scheduler-task.mjs +0 -0
  254. /package/{esm2020 → esm2022}/views/constants.mjs +0 -0
  255. /package/{esm2020 → esm2022}/views/day-time/utils.mjs +0 -0
  256. /package/{esm2020 → esm2022}/views/month/utils.mjs +0 -0
  257. /package/{esm2020 → esm2022}/views/multi-day/utils.mjs +0 -0
  258. /package/{esm2020 → esm2022}/views/templates.mjs +0 -0
  259. /package/{esm2020 → esm2022}/views/utils.mjs +0 -0
  260. /package/{esm2020 → esm2022}/views/view-items/types.mjs +0 -0
  261. /package/{esm2020 → esm2022}/views/year/utils.mjs +0 -0
@@ -15,14 +15,18 @@ import * as i2 from "@progress/kendo-angular-l10n";
15
15
  * @hidden
16
16
  */
17
17
  export class TimeSlotDirective extends BaseSlotDirective {
18
- constructor(element, slotService, localization) {
19
- super(element, slotService, localization);
20
- this.isDaySlot = false;
21
- }
18
+ invariantStart;
19
+ invariantEnd;
20
+ workDayStart;
21
+ workDayEnd;
22
+ workWeekStart;
23
+ workWeekEnd;
24
+ date;
22
25
  get nonWorkHour() {
23
26
  const date = this.date.getDay();
24
27
  return this.invariantStart < this.workDayStart || this.workDayEnd < this.invariantEnd || !isWorkWeekDay(date, this.workWeekStart, this.workWeekEnd);
25
28
  }
29
+ isDaySlot = false;
26
30
  get startLocalTime() {
27
31
  if (!this.date || !this.invariantStart) {
28
32
  return null;
@@ -51,10 +55,13 @@ export class TimeSlotDirective extends BaseSlotDirective {
51
55
  }
52
56
  return localEnd;
53
57
  }
58
+ constructor(element, slotService, localization) {
59
+ super(element, slotService, localization);
60
+ }
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.DayTimeSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
62
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TimeSlotDirective, isStandalone: true, selector: "[timeSlot]", inputs: { invariantStart: "invariantStart", invariantEnd: "invariantEnd", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", date: "date" }, host: { properties: { "class.k-nonwork-hour": "this.nonWorkHour" } }, exportAs: ["timeSlot"], usesInheritance: true, ngImport: i0 });
54
63
  }
55
- TimeSlotDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.DayTimeSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
56
- TimeSlotDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimeSlotDirective, isStandalone: true, selector: "[timeSlot]", inputs: { invariantStart: "invariantStart", invariantEnd: "invariantEnd", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", date: "date" }, host: { properties: { "class.k-nonwork-hour": "this.nonWorkHour" } }, exportAs: ["timeSlot"], usesInheritance: true, ngImport: i0 });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSlotDirective, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSlotDirective, decorators: [{
58
65
  type: Directive,
59
66
  args: [{
60
67
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -84,10 +91,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
84
91
  * @hidden
85
92
  */
86
93
  export class DaySlotDirective extends BaseSlotDirective {
87
- constructor(element, slotService, localization) {
88
- super(element, slotService, localization);
89
- this.isDaySlot = true;
90
- }
91
94
  set start(value) {
92
95
  this.startDate = value;
93
96
  }
@@ -109,10 +112,16 @@ export class DaySlotDirective extends BaseSlotDirective {
109
112
  get daySlot() {
110
113
  return true;
111
114
  }
115
+ isDaySlot = true;
116
+ startDate;
117
+ endDate;
118
+ constructor(element, slotService, localization) {
119
+ super(element, slotService, localization);
120
+ }
121
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DaySlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.DayTimeSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
122
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DaySlotDirective, isStandalone: true, selector: "[daySlot]", inputs: { start: "start", end: "end" }, host: { properties: { "attr.data-day-slot": "this.daySlot" } }, usesInheritance: true, ngImport: i0 });
112
123
  }
113
- DaySlotDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DaySlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.DayTimeSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
114
- DaySlotDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DaySlotDirective, isStandalone: true, selector: "[daySlot]", inputs: { start: "start", end: "end" }, host: { properties: { "attr.data-day-slot": "this.daySlot" } }, usesInheritance: true, ngImport: i0 });
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DaySlotDirective, decorators: [{
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DaySlotDirective, decorators: [{
116
125
  type: Directive,
117
126
  args: [{
118
127
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -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
  */
@@ -66,9 +44,48 @@ export class MonthViewComponent extends ConfigurationViewBase {
66
44
  get eventsPerDay() {
67
45
  return this._eventsPerDay;
68
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';
69
82
  get viewEventHeight() {
70
83
  return isPresent(this.eventHeight) ? this.eventHeight : (this.schedulerOptions.eventHeight || DEFAULT_EVENT_HEIGHT);
71
84
  }
85
+ constructor(localization, changeDetector, viewContext, viewState, intl) {
86
+ super(localization, changeDetector, viewContext, viewState);
87
+ this.intl = intl;
88
+ }
72
89
  ngOnChanges(changes) {
73
90
  if ((changes['eventHeight'] && changes['eventHeight'].currentValue === 'auto') ||
74
91
  (changes['eventsPerDay'] && changes['eventsPerDay'].currentValue === 'auto')) {
@@ -96,12 +113,11 @@ export class MonthViewComponent extends ConfigurationViewBase {
96
113
  newRange(date, direction = 1) {
97
114
  return firstDayOfMonth(addMonths(date, direction));
98
115
  }
99
- }
100
- 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 });
101
- 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: [{
102
- provide: SchedulerView,
103
- useExisting: forwardRef(() => MonthViewComponent)
104
- }], 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: `
105
121
  <ng-template #content>
106
122
  <month-view
107
123
  type="month"
@@ -123,7 +139,8 @@ MonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
123
139
  </month-view>
124
140
  </ng-template>
125
141
  `, isInline: true, dependencies: [{ kind: "component", type: MonthViewRendererComponent, selector: "month-view", inputs: ["monthDaySlotTemplate", "highlightOngoingEvents", "type", "eventsPerDay", "adaptiveSlotHeight", "numberOfWeeks", "newRange", "dateRangeFn"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
126
- 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: [{
127
144
  type: Component,
128
145
  args: [{
129
146
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -16,18 +16,18 @@ import * as i0 from "@angular/core";
16
16
  * be removed in a future major version. We recommend using `SchedulerModule`.
17
17
  */
18
18
  export class MonthViewModule {
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: MonthViewModule, imports: [MonthViewComponent,
21
+ MultiWeekViewComponent], exports: [MonthViewComponent,
22
+ MultiWeekViewComponent] });
23
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewModule, providers: [
24
+ IconsService,
25
+ PopupService,
26
+ ResizeBatchService
27
+ ], imports: [MonthViewComponent,
28
+ MultiWeekViewComponent] });
19
29
  }
20
- MonthViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
21
- MonthViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MonthViewModule, imports: [MonthViewComponent,
22
- MultiWeekViewComponent], exports: [MonthViewComponent,
23
- MultiWeekViewComponent] });
24
- MonthViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewModule, providers: [
25
- IconsService,
26
- PopupService,
27
- ResizeBatchService
28
- ], imports: [MonthViewComponent,
29
- MultiWeekViewComponent] });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MonthViewModule, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthViewModule, decorators: [{
31
31
  type: NgModule,
32
32
  args: [{
33
33
  imports: [
@@ -23,39 +23,20 @@ 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
42
  * will display all events in the respective slot
@@ -70,9 +51,45 @@ export class MultiWeekViewComponent extends ConfigurationViewBase {
70
51
  get eventsPerDay() {
71
52
  return this._eventsPerDay;
72
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';
73
86
  get viewEventHeight() {
74
87
  return isPresent(this.eventHeight) ? this.eventHeight : (this.schedulerOptions.eventHeight || DEFAULT_EVENT_HEIGHT);
75
88
  }
89
+ constructor(localization, changeDetector, viewContext, viewState, intl) {
90
+ super(localization, changeDetector, viewContext, viewState);
91
+ this.intl = intl;
92
+ }
76
93
  ngOnChanges(changes) {
77
94
  if ((changes['eventHeight'] && changes['eventHeight'].currentValue === 'auto') ||
78
95
  (changes['eventsPerDay'] && changes['eventsPerDay'].currentValue === 'auto')) {
@@ -100,12 +117,11 @@ export class MultiWeekViewComponent extends ConfigurationViewBase {
100
117
  newRange(date, direction = 1) {
101
118
  return firstDayInWeek(addWeeks(date, this.numberOfWeeks * direction));
102
119
  }
103
- }
104
- 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 });
105
- 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: [{
106
- provide: SchedulerView,
107
- useExisting: forwardRef(() => MultiWeekViewComponent)
108
- }], 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: `
109
125
  <ng-template #content>
110
126
  <month-view
111
127
  type="multiWeek"
@@ -128,7 +144,8 @@ MultiWeekViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
128
144
  </month-view>
129
145
  </ng-template>
130
146
  `, isInline: true, dependencies: [{ kind: "component", type: MonthViewRendererComponent, selector: "month-view", inputs: ["monthDaySlotTemplate", "highlightOngoingEvents", "type", "eventsPerDay", "adaptiveSlotHeight", "numberOfWeeks", "newRange", "dateRangeFn"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
131
- 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: [{
132
149
  type: Component,
133
150
  args: [{
134
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,