@progress/kendo-angular-scheduler 17.0.0-develop.3 → 17.0.0-develop.30

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 (262) hide show
  1. package/README.md +33 -28
  2. package/data-binding.directive.d.ts +1 -1
  3. package/editing/date-time-picker.component.d.ts +1 -1
  4. package/editing/edit-dialog-template.directive.d.ts +1 -1
  5. package/editing/edit-dialog.component.d.ts +1 -1
  6. package/editing/edit.service.d.ts +3 -3
  7. package/editing/recurrence/end-rule-radio-button.directive.d.ts +1 -1
  8. package/editing/recurrence/localization/messages.d.ts +1 -1
  9. package/editing/recurrence/recurrence-editor.component.d.ts +1 -1
  10. package/editing/recurrence/recurrence-end-rule-editor.component.d.ts +1 -1
  11. package/editing/recurrence/recurrence-interval-editor.component.d.ts +1 -1
  12. package/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +1 -1
  13. package/editing/recurrence/recurrence.service.d.ts +4 -4
  14. package/editing/recurrence/repeat-on-radio-button.directive.d.ts +1 -1
  15. package/editing/resource-editor-base.d.ts +1 -1
  16. package/editing/timezone-editor.component.d.ts +1 -1
  17. package/editing-directives/editing-directive-base.d.ts +1 -1
  18. package/editing-directives/reactive-editing.directive.d.ts +1 -1
  19. package/{esm2020 → esm2022}/data-binding.directive.mjs +20 -13
  20. package/{esm2020 → esm2022}/editing/date-time-picker.component.mjs +15 -9
  21. package/{esm2020 → esm2022}/editing/dialogs.service.mjs +10 -4
  22. package/{esm2020 → esm2022}/editing/edit-dialog-template.directive.mjs +8 -3
  23. package/{esm2020 → esm2022}/editing/edit-dialog.component.mjs +45 -26
  24. package/{esm2020 → esm2022}/editing/edit.service.mjs +9 -5
  25. package/{esm2020 → esm2022}/editing/local-data-changes.service.mjs +5 -6
  26. package/{esm2020 → esm2022}/editing/recurrence/end-rule-radio-button.directive.mjs +13 -6
  27. package/{esm2020 → esm2022}/editing/recurrence/localization/custom-messages.component.mjs +9 -8
  28. package/{esm2020 → esm2022}/editing/recurrence/localization/localized-messages.directive.mjs +9 -8
  29. package/esm2022/editing/recurrence/localization/messages.mjs +239 -0
  30. package/{esm2020 → esm2022}/editing/recurrence/localization/recurrence-localization.service.mjs +4 -3
  31. package/{esm2020 → esm2022}/editing/recurrence/recurrence-editor.component.mjs +61 -36
  32. package/{esm2020 → esm2022}/editing/recurrence/recurrence-end-rule-editor.component.mjs +33 -26
  33. package/{esm2020 → esm2022}/editing/recurrence/recurrence-frequency-editor.component.mjs +9 -5
  34. package/{esm2020 → esm2022}/editing/recurrence/recurrence-interval-editor.component.mjs +18 -15
  35. package/{esm2020 → esm2022}/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +28 -15
  36. package/{esm2020 → esm2022}/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +10 -6
  37. package/{esm2020 → esm2022}/editing/recurrence/recurrence.service.mjs +13 -7
  38. package/{esm2020 → esm2022}/editing/recurrence/repeat-on-radio-button.directive.mjs +18 -11
  39. package/{esm2020 → esm2022}/editing/resource-editor-base.mjs +9 -9
  40. package/{esm2020 → esm2022}/editing/resource-multiple-editor.component.mjs +7 -6
  41. package/{esm2020 → esm2022}/editing/resource-single-editor.component.mjs +7 -6
  42. package/{esm2020 → esm2022}/editing/timezone-editor.component.mjs +28 -22
  43. package/{esm2020 → esm2022}/editing-directives/base-edit.service.mjs +28 -11
  44. package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +27 -20
  45. package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +6 -4
  46. package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +10 -3
  47. package/{esm2020 → esm2022}/events/add-event.mjs +8 -0
  48. package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
  49. package/{esm2020 → esm2022}/events/create-event.mjs +24 -0
  50. package/{esm2020 → esm2022}/events/date-change-event.mjs +12 -0
  51. package/{esm2020 → esm2022}/events/drag-end-event.mjs +28 -0
  52. package/esm2022/events/drag-event.mjs +54 -0
  53. package/{esm2020 → esm2022}/events/drag-start-event.mjs +12 -0
  54. package/{esm2020 → esm2022}/events/edit-event-base.mjs +16 -0
  55. package/{esm2020 → esm2022}/events/edit-event.mjs +12 -0
  56. package/{esm2020 → esm2022}/events/event-click-event.mjs +16 -0
  57. package/{esm2020 → esm2022}/events/event-keydown-event.mjs +12 -0
  58. package/{esm2020 → esm2022}/events/navigate-event.mjs +8 -0
  59. package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
  60. package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
  61. package/{esm2020 → esm2022}/events/resize-end-event.mjs +20 -0
  62. package/{esm2020 → esm2022}/events/resize-event.mjs +28 -0
  63. package/{esm2020 → esm2022}/events/resize-start-event.mjs +12 -0
  64. package/{esm2020 → esm2022}/events/save-event.mjs +8 -0
  65. package/{esm2020 → esm2022}/events/slot-click-event.mjs +28 -0
  66. package/{esm2020 → esm2022}/events/slot-drag-event.mjs +24 -0
  67. package/{esm2020 → esm2022}/events/slot-drag-start-event.mjs +24 -0
  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}/shared.module.mjs +6 -6
  84. package/{esm2020 → esm2022}/toolbar/navigation.component.mjs +50 -35
  85. package/{esm2020 → esm2022}/toolbar/toolbar-template.directive.mjs +4 -3
  86. package/{esm2020 → esm2022}/toolbar/toolbar.component.mjs +32 -18
  87. package/{esm2020 → esm2022}/toolbar/toolbar.service.mjs +16 -4
  88. package/{esm2020 → esm2022}/toolbar/view-selector.component.mjs +24 -16
  89. package/{esm2020 → esm2022}/types/slot-selection.mjs +16 -0
  90. package/{esm2020 → esm2022}/views/agenda/agenda-header-item.component.mjs +9 -9
  91. package/{esm2020 → esm2022}/views/agenda/agenda-header.component.mjs +10 -8
  92. package/{esm2020 → esm2022}/views/agenda/agenda-task-item.component.mjs +18 -12
  93. package/{esm2020 → esm2022}/views/agenda/agenda-view-internal.component.mjs +48 -17
  94. package/{esm2020 → esm2022}/views/agenda/agenda-view-list.component.mjs +17 -7
  95. package/{esm2020 → esm2022}/views/agenda/agenda-view.component.mjs +46 -41
  96. package/{esm2020 → esm2022}/views/agenda/tasks.collection.mjs +8 -4
  97. package/{esm2020 → esm2022}/views/common/base-view.mjs +93 -36
  98. package/{esm2020 → esm2022}/views/common/configuration-view-base.mjs +52 -15
  99. package/esm2022/views/common/dom-events.service.mjs +22 -0
  100. package/{esm2020 → esm2022}/views/common/hint-container.component.mjs +6 -4
  101. package/{esm2020 → esm2022}/views/common/repeat.pipe.mjs +7 -6
  102. package/{esm2020 → esm2022}/views/common/resize-hint.component.mjs +7 -7
  103. package/{esm2020 → esm2022}/views/common/resource-iterator.pipe.mjs +9 -7
  104. package/{esm2020 → esm2022}/views/common/slot-selectable.directive.mjs +22 -10
  105. package/{esm2020 → esm2022}/views/common/view-footer.component.mjs +18 -13
  106. package/{esm2020 → esm2022}/views/common/views-shared.module.mjs +18 -20
  107. package/{esm2020 → esm2022}/views/common/work-hours-footer.directive.mjs +7 -5
  108. package/{esm2020 → esm2022}/views/day-time/day-time-slot.service.mjs +11 -7
  109. package/{esm2020 → esm2022}/views/day-time/day-time-view-base.mjs +81 -8
  110. package/{esm2020 → esm2022}/views/day-time/day-time-view-item.component.mjs +18 -14
  111. package/{esm2020 → esm2022}/views/day-time/day-time-view.component.mjs +50 -29
  112. package/{esm2020 → esm2022}/views/day-time/day-time.module.mjs +8 -8
  113. package/{esm2020 → esm2022}/views/day-time/event-slot.directive.mjs +23 -14
  114. package/{esm2020 → esm2022}/views/month/month-slot.component.mjs +21 -11
  115. package/{esm2020 → esm2022}/views/month/month-slot.service.mjs +8 -6
  116. package/{esm2020 → esm2022}/views/month/month-view-item.component.mjs +10 -9
  117. package/{esm2020 → esm2022}/views/month/month-view-renderer.component.mjs +31 -15
  118. package/{esm2020 → esm2022}/views/month/month-view.component.mjs +49 -31
  119. package/{esm2020 → esm2022}/views/month/month-view.module.mjs +11 -11
  120. package/{esm2020 → esm2022}/views/month/multi-week-view.component.mjs +53 -35
  121. package/{esm2020 → esm2022}/views/multi-day/day-view.component.mjs +25 -17
  122. package/{esm2020 → esm2022}/views/multi-day/multi-day-view-base.mjs +17 -6
  123. package/{esm2020 → esm2022}/views/multi-day/multi-day-view-renderer.component.mjs +22 -13
  124. package/{esm2020 → esm2022}/views/multi-day/multi-day-view.component.mjs +22 -20
  125. package/{esm2020 → esm2022}/views/multi-day/multi-day-view.module.mjs +14 -14
  126. package/{esm2020 → esm2022}/views/multi-day/week-view.component.mjs +44 -35
  127. package/{esm2020 → esm2022}/views/multi-day/work-week-view.component.mjs +16 -16
  128. package/{esm2020 → esm2022}/views/scheduler-view.directive.mjs +16 -10
  129. package/{esm2020 → esm2022}/views/templates/agenda-date-template.directive.mjs +4 -3
  130. package/{esm2020 → esm2022}/views/templates/agenda-time-template.directive.mjs +4 -3
  131. package/{esm2020 → esm2022}/views/templates/all-day-event-template.directive.mjs +4 -3
  132. package/{esm2020 → esm2022}/views/templates/all-day-slot-template.directive.mjs +4 -3
  133. package/{esm2020 → esm2022}/views/templates/date-header-template.directive.mjs +4 -3
  134. package/{esm2020 → esm2022}/views/templates/event-template.directive.mjs +4 -3
  135. package/{esm2020 → esm2022}/views/templates/group-header-template.directive.mjs +4 -3
  136. package/{esm2020 → esm2022}/views/templates/major-time-header-template.directive.mjs +4 -3
  137. package/{esm2020 → esm2022}/views/templates/minor-time-header-template.directive.mjs +4 -3
  138. package/{esm2020 → esm2022}/views/templates/month-day-slot-template.directive.mjs +4 -3
  139. package/{esm2020 → esm2022}/views/templates/multi-week-day-slot-template.directive.mjs +4 -3
  140. package/{esm2020 → esm2022}/views/templates/time-slot-template.directive.mjs +4 -3
  141. package/{esm2020 → esm2022}/views/timeline/timeline-base.mjs +10 -6
  142. package/{esm2020 → esm2022}/views/timeline/timeline-month-view.component.mjs +36 -34
  143. package/{esm2020 → esm2022}/views/timeline/timeline-multi-day-view.component.mjs +16 -13
  144. package/{esm2020 → esm2022}/views/timeline/timeline-view.component.mjs +18 -16
  145. package/{esm2020 → esm2022}/views/timeline/timeline-view.module.mjs +12 -12
  146. package/{esm2020 → esm2022}/views/timeline/timeline-week-view.component.mjs +40 -40
  147. package/{esm2020 → esm2022}/views/timeline/utils.mjs +3 -3
  148. package/{esm2020 → esm2022}/views/view-context.service.mjs +33 -9
  149. package/{esm2020 → esm2022}/views/view-items/base-slot.directive.mjs +15 -9
  150. package/{esm2020 → esm2022}/views/view-items/base-slot.service.mjs +3 -5
  151. package/{esm2020 → esm2022}/views/view-items/base-view-item.mjs +30 -15
  152. package/{esm2020 → esm2022}/views/view-items/item-map.mjs +2 -4
  153. package/{esm2020 → esm2022}/views/view-state.service.mjs +56 -20
  154. package/{esm2020 → esm2022}/views/year/year-view-internal.component.mjs +45 -27
  155. package/{esm2020 → esm2022}/views/year/year-view.component.mjs +38 -31
  156. package/{fesm2020 → fesm2022}/progress-kendo-angular-scheduler.mjs +3641 -1738
  157. package/loading.component.d.ts +1 -1
  158. package/localization/messages.d.ts +1 -1
  159. package/navigation/focusable.directive.d.ts +1 -1
  160. package/package.json +24 -30
  161. package/pdf/pdf.component.d.ts +1 -1
  162. package/scheduler.component.d.ts +1 -1
  163. package/schematics/ngAdd/index.js +3 -3
  164. package/toolbar/navigation.component.d.ts +1 -1
  165. package/toolbar/toolbar.component.d.ts +1 -1
  166. package/toolbar/view-selector.component.d.ts +1 -1
  167. package/types/actions.d.ts +1 -1
  168. package/types/focusable-container.d.ts +1 -1
  169. package/types/slot-selection.d.ts +1 -1
  170. package/views/agenda/agenda-header-item.component.d.ts +1 -1
  171. package/views/agenda/agenda-header.component.d.ts +1 -1
  172. package/views/agenda/agenda-task-item.component.d.ts +1 -1
  173. package/views/agenda/agenda-view-internal.component.d.ts +1 -1
  174. package/views/agenda/agenda-view-list.component.d.ts +1 -1
  175. package/views/agenda/agenda-view.component.d.ts +2 -6
  176. package/views/common/base-view.d.ts +1 -1
  177. package/views/common/configuration-view-base.d.ts +1 -1
  178. package/views/common/resize-hint.component.d.ts +1 -1
  179. package/views/common/slot-selectable.directive.d.ts +1 -1
  180. package/views/common/view-footer.component.d.ts +1 -1
  181. package/views/common/work-hours-footer.directive.d.ts +1 -1
  182. package/views/day-time/day-time-view-base.d.ts +2 -6
  183. package/views/day-time/day-time-view-item.component.d.ts +1 -1
  184. package/views/day-time/day-time-view.component.d.ts +1 -1
  185. package/views/day-time/event-slot.directive.d.ts +2 -2
  186. package/views/month/month-slot.component.d.ts +1 -1
  187. package/views/month/month-view-renderer.component.d.ts +1 -1
  188. package/views/month/month-view.component.d.ts +7 -4
  189. package/views/month/multi-week-view.component.d.ts +7 -4
  190. package/views/multi-day/day-view.component.d.ts +1 -1
  191. package/views/multi-day/multi-day-view-base.d.ts +1 -1
  192. package/views/multi-day/multi-day-view-renderer.component.d.ts +1 -1
  193. package/views/multi-day/multi-day-view.component.d.ts +1 -1
  194. package/views/multi-day/week-view.component.d.ts +1 -1
  195. package/views/scheduler-view.directive.d.ts +1 -1
  196. package/views/timeline/timeline-base.d.ts +1 -1
  197. package/views/timeline/timeline-month-view.component.d.ts +1 -1
  198. package/views/timeline/timeline-multi-day-view.component.d.ts +1 -1
  199. package/views/timeline/timeline-view.component.d.ts +1 -1
  200. package/views/timeline/timeline-week-view.component.d.ts +1 -1
  201. package/views/view-items/base-slot.directive.d.ts +1 -1
  202. package/views/view-items/base-view-item.d.ts +1 -1
  203. package/views/year/year-view-internal.component.d.ts +1 -4
  204. package/views/year/year-view.component.d.ts +6 -6
  205. package/esm2020/editing/recurrence/localization/messages.mjs +0 -91
  206. package/esm2020/events/drag-event.mjs +0 -18
  207. package/esm2020/localization/messages.mjs +0 -213
  208. package/esm2020/navigation/shortcuts.directive.mjs +0 -213
  209. package/esm2020/views/common/dom-events.service.mjs +0 -24
  210. package/fesm2015/progress-kendo-angular-scheduler.mjs +0 -19223
  211. /package/{esm2020 → esm2022}/common/constants.mjs +0 -0
  212. /package/{esm2020 → esm2022}/common/default-model-fields.mjs +0 -0
  213. /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
  214. /package/{esm2020 → esm2022}/common/getter.mjs +0 -0
  215. /package/{esm2020 → esm2022}/common/modifiers.mjs +0 -0
  216. /package/{esm2020 → esm2022}/common/setter.mjs +0 -0
  217. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  218. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  219. /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
  220. /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
  221. /package/{esm2020 → esm2022}/events/slot-drag-end-event.mjs +0 -0
  222. /package/{esm2020 → esm2022}/events/view-event-map.mjs +0 -0
  223. /package/{esm2020 → esm2022}/events.mjs +0 -0
  224. /package/{esm2020 → esm2022}/index.mjs +0 -0
  225. /package/{esm2020 → esm2022}/navigation/focus-position.interface.mjs +0 -0
  226. /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
  227. /package/{esm2020 → esm2022}/navigation.mjs +0 -0
  228. /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
  229. /package/{esm2020 → esm2022}/progress-kendo-angular-scheduler.mjs +0 -0
  230. /package/{esm2020 → esm2022}/toolbar/toolbar-context.mjs +0 -0
  231. /package/{esm2020 → esm2022}/types/actions.mjs +0 -0
  232. /package/{esm2020 → esm2022}/types/create-form-group-args.interface.mjs +0 -0
  233. /package/{esm2020 → esm2022}/types/crud-operation.enum.mjs +0 -0
  234. /package/{esm2020 → esm2022}/types/current-time-settings.interface.mjs +0 -0
  235. /package/{esm2020 → esm2022}/types/date-range.interface.mjs +0 -0
  236. /package/{esm2020 → esm2022}/types/datepicker-options.interface.mjs +0 -0
  237. /package/{esm2020 → esm2022}/types/edit-event-args.interface.mjs +0 -0
  238. /package/{esm2020 → esm2022}/types/edit-mode.enum.mjs +0 -0
  239. /package/{esm2020 → esm2022}/types/editable-settings.interface.mjs +0 -0
  240. /package/{esm2020 → esm2022}/types/event-style-args.interface.mjs +0 -0
  241. /package/{esm2020 → esm2022}/types/focusable-container.mjs +0 -0
  242. /package/{esm2020 → esm2022}/types/group.interface.mjs +0 -0
  243. /package/{esm2020 → esm2022}/types/numeric-options.interface.mjs +0 -0
  244. /package/{esm2020 → esm2022}/types/ongoing-events-settings.interface.mjs +0 -0
  245. /package/{esm2020 → esm2022}/types/resource.interface.mjs +0 -0
  246. /package/{esm2020 → esm2022}/types/scheduler-event.mjs +0 -0
  247. /package/{esm2020 → esm2022}/types/scheduler-model-fields.interface.mjs +0 -0
  248. /package/{esm2020 → esm2022}/types/scheduler-slot.interface.mjs +0 -0
  249. /package/{esm2020 → esm2022}/types/scheduler-view.mjs +0 -0
  250. /package/{esm2020 → esm2022}/types/slot-class-args.interface.mjs +0 -0
  251. /package/{esm2020 → esm2022}/types/view-item.interface.mjs +0 -0
  252. /package/{esm2020 → esm2022}/types.mjs +0 -0
  253. /package/{esm2020 → esm2022}/views/agenda/utils.mjs +0 -0
  254. /package/{esm2020 → esm2022}/views/common/scheduler-task.mjs +0 -0
  255. /package/{esm2020 → esm2022}/views/constants.mjs +0 -0
  256. /package/{esm2020 → esm2022}/views/day-time/utils.mjs +0 -0
  257. /package/{esm2020 → esm2022}/views/month/utils.mjs +0 -0
  258. /package/{esm2020 → esm2022}/views/multi-day/utils.mjs +0 -0
  259. /package/{esm2020 → esm2022}/views/templates.mjs +0 -0
  260. /package/{esm2020 → esm2022}/views/utils.mjs +0 -0
  261. /package/{esm2020 → esm2022}/views/view-items/types.mjs +0 -0
  262. /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
  */
@@ -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,
@@ -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,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,