@odx/angular 9.2.2 → 10.0.1

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 (371) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/esm2022/breakpoints/lib/breakpoints.module.mjs +4 -4
  3. package/esm2022/breakpoints/lib/breakpoints.service.mjs +3 -3
  4. package/esm2022/breakpoints/lib/directives/match-breakpoints.directive.mjs +4 -4
  5. package/esm2022/cdk/a11y/lib/a11y.module.mjs +4 -4
  6. package/esm2022/cdk/a11y/lib/directives/interactive.directive.mjs +6 -5
  7. package/esm2022/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +3 -3
  8. package/esm2022/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +3 -3
  9. package/esm2022/cdk/active-indicator/lib/active-indicator.directive.mjs +6 -5
  10. package/esm2022/cdk/autocomplete-control/lib/autocomplete-control.mjs +5 -5
  11. package/esm2022/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.mjs +1 -1
  12. package/esm2022/cdk/checkbox-control/lib/checkbox-control.directive.mjs +5 -5
  13. package/esm2022/cdk/connected-overlay/lib/connected-overlay.component.mjs +6 -5
  14. package/esm2022/cdk/connected-overlay/lib/connected-overlay.service.mjs +3 -3
  15. package/esm2022/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +1 -1
  16. package/esm2022/cdk/custom-form-control/lib/control.directive.mjs +3 -3
  17. package/esm2022/cdk/custom-form-control/lib/custom-form-control.mjs +5 -5
  18. package/esm2022/cdk/custom-form-control/lib/input-control.directive.mjs +3 -3
  19. package/esm2022/cdk/dynamic-view/lib/dynamic-view.component.mjs +4 -4
  20. package/esm2022/cdk/dynamic-view/lib/dynamic-view.directive.mjs +4 -4
  21. package/esm2022/cdk/dynamic-view/lib/dynamic-view.service.mjs +4 -4
  22. package/esm2022/cdk/dynamic-view/lib/helpers/create-projectable-nodes.mjs +1 -1
  23. package/esm2022/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +1 -1
  24. package/esm2022/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +1 -1
  25. package/esm2022/cdk/event-plugins/lib/plugins/debounce-event-plugin.mjs +3 -3
  26. package/esm2022/cdk/event-plugins/lib/plugins/defer-event-plugin.mjs +3 -3
  27. package/esm2022/cdk/expandable/lib/directives/expandable-container.directive.mjs +4 -4
  28. package/esm2022/cdk/expandable/lib/directives/expandable-item.directive.mjs +4 -4
  29. package/esm2022/cdk/expandable/lib/expandable.module.mjs +4 -4
  30. package/esm2022/cdk/option-control/lib/option-control.mjs +3 -3
  31. package/esm2022/cdk/radio-group-control/lib/radio-control.directive.mjs +5 -5
  32. package/esm2022/cdk/radio-group-control/lib/radio-group-control.directive.mjs +5 -5
  33. package/esm2022/cdk/radio-group-control/lib/radio-group-control.module.mjs +4 -4
  34. package/esm2022/components/accordion/lib/accordion.component.mjs +6 -5
  35. package/esm2022/components/accordion/lib/accordion.module.mjs +4 -4
  36. package/esm2022/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +6 -5
  37. package/esm2022/components/accordion/lib/directives/accordion-item-title.mjs +3 -3
  38. package/esm2022/components/action-group/action-group.component.mjs +6 -5
  39. package/esm2022/components/area-header/area-header.component.mjs +6 -5
  40. package/esm2022/components/area-header/area-header.module.mjs +4 -4
  41. package/esm2022/components/area-header/directives/area-header-content.directive.mjs +3 -3
  42. package/esm2022/components/area-header/directives/area-header-subtitle.directive.mjs +3 -3
  43. package/esm2022/components/autocomplete/lib/autocomplete.component.mjs +8 -9
  44. package/esm2022/components/autocomplete/lib/autocomplete.module.mjs +4 -4
  45. package/esm2022/components/autocomplete/lib/components/option/autocomplete-option.component.mjs +6 -5
  46. package/esm2022/components/autocomplete/lib/directives/autocomplete-input-control.directive.mjs +6 -5
  47. package/esm2022/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.mjs +3 -3
  48. package/esm2022/components/avatar/lib/avatar.component.mjs +6 -5
  49. package/esm2022/components/badge/lib/badge.component.mjs +6 -5
  50. package/esm2022/components/badge/lib/badge.directive.mjs +6 -5
  51. package/esm2022/components/bar/lib/bar.component.mjs +6 -5
  52. package/esm2022/components/bar/lib/bar.module.mjs +4 -4
  53. package/esm2022/components/bar/lib/directives/bar-button.directive.mjs +6 -5
  54. package/esm2022/components/bar/lib/directives/bar-label.directive.mjs +6 -5
  55. package/esm2022/components/breadcrumbs/lib/breadcrumbs.component.mjs +6 -5
  56. package/esm2022/components/button/lib/button.component.mjs +6 -5
  57. package/esm2022/components/button/lib/directives/responsive-button.directive.mjs +3 -3
  58. package/esm2022/components/button-group/lib/button-group.component.mjs +6 -5
  59. package/esm2022/components/calendar/lib/calendar.component.mjs +7 -6
  60. package/esm2022/components/calendar/lib/calendar.service.mjs +4 -4
  61. package/esm2022/components/calendar/lib/components/calendar-header/calendar-header.component.mjs +6 -5
  62. package/esm2022/components/calendar/lib/components/calendar-month/calendar-month.component.mjs +6 -5
  63. package/esm2022/components/calendar/lib/components/calendar-year/calendar-year.component.mjs +6 -5
  64. package/esm2022/components/calendar/lib/components/calendar-years/calendar-years.component.mjs +6 -5
  65. package/esm2022/components/calendar/lib/daterange.service.mjs +4 -4
  66. package/esm2022/components/calendar/lib/directives/calendar-cell.directive.mjs +6 -5
  67. package/esm2022/components/calendar/lib/directives/calendar-view.directive.mjs +3 -3
  68. package/esm2022/components/calendar/lib/pipes/date-label.pipe.mjs +4 -4
  69. package/esm2022/components/calendar/lib/services/calendar-month.service.mjs +4 -4
  70. package/esm2022/components/calendar/lib/services/calendar-year.service.mjs +4 -4
  71. package/esm2022/components/calendar/lib/services/calendar-years.service.mjs +4 -4
  72. package/esm2022/components/calendar/lib/utils/check-cell-in-range.mjs +1 -1
  73. package/esm2022/components/calendar/lib/utils/get-A11y-label.mjs +1 -1
  74. package/esm2022/components/calendar/lib/utils/parse-date.mjs +1 -1
  75. package/esm2022/components/card/lib/card.component.mjs +7 -6
  76. package/esm2022/components/card/lib/card.module.mjs +4 -4
  77. package/esm2022/components/card/lib/components/card-footer/card-footer.component.mjs +3 -3
  78. package/esm2022/components/card/lib/components/card-image/card-image.component.mjs +6 -5
  79. package/esm2022/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.mjs +3 -3
  80. package/esm2022/components/card/lib/directives/card-content.directive.mjs +3 -3
  81. package/esm2022/components/checkbox/lib/checkbox.component.mjs +6 -5
  82. package/esm2022/components/checkbox/lib/checkbox.module.mjs +4 -4
  83. package/esm2022/components/checkbox/lib/checkbox.validator.mjs +3 -3
  84. package/esm2022/components/chip/lib/components/chip/chip.component.mjs +6 -5
  85. package/esm2022/components/chip/lib/components/chip-list/chip-list.component.mjs +6 -5
  86. package/esm2022/components/chip/lib/components/chip-list-row/chip-list-row.component.mjs +6 -5
  87. package/esm2022/components/circular-progress/lib/circular-progress.component.mjs +6 -5
  88. package/esm2022/components/content-box/lib/content-box.component.mjs +3 -3
  89. package/esm2022/components/content-box/lib/content-box.module.mjs +4 -4
  90. package/esm2022/components/content-box/lib/directives/content-box-footer.directive.mjs +3 -3
  91. package/esm2022/components/content-box/lib/directives/content-box-header.directive.mjs +3 -3
  92. package/esm2022/components/datepicker/lib/datepicker.component.mjs +7 -6
  93. package/esm2022/components/datepicker/lib/datepicker.module.mjs +4 -4
  94. package/esm2022/components/datepicker/lib/directives/datepicker-input-control.directive.mjs +6 -5
  95. package/esm2022/components/daterangepicker/lib/daterangepicker.component.mjs +7 -6
  96. package/esm2022/components/daterangepicker/lib/daterangepicker.module.mjs +4 -4
  97. package/esm2022/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.mjs +6 -5
  98. package/esm2022/components/daterangepicker/lib/range.validator.mjs +3 -3
  99. package/esm2022/components/daterangepicker/lib/required.validator.mjs +3 -3
  100. package/esm2022/components/dropdown/lib/dropdown.component.mjs +6 -5
  101. package/esm2022/components/dropdown/lib/dropdown.directive.mjs +6 -5
  102. package/esm2022/components/dropdown/lib/dropdown.module.mjs +4 -4
  103. package/esm2022/components/error-page/lib/error-page.component.mjs +6 -5
  104. package/esm2022/components/footer/lib/footer.component.mjs +6 -5
  105. package/esm2022/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -3
  106. package/esm2022/components/form-field/lib/components/form-group/form-group.component.mjs +6 -5
  107. package/esm2022/components/form-field/lib/directives/form-field-control.directive.mjs +7 -6
  108. package/esm2022/components/form-field/lib/directives/form-field-error.directive.mjs +3 -3
  109. package/esm2022/components/form-field/lib/directives/form-field-hint.directive.mjs +4 -4
  110. package/esm2022/components/form-field/lib/directives/form-field-label.directive.mjs +6 -5
  111. package/esm2022/components/form-field/lib/directives/form.directive.mjs +6 -5
  112. package/esm2022/components/form-field/lib/form-field.component.mjs +7 -6
  113. package/esm2022/components/form-field/lib/form-field.module.mjs +4 -4
  114. package/esm2022/components/form-field/lib/form-field.service.mjs +4 -4
  115. package/esm2022/components/form-field/lib/services/form-field-error.service.mjs +4 -4
  116. package/esm2022/components/header/lib/directives/header-avatar.directive.mjs +3 -3
  117. package/esm2022/components/header/lib/directives/header-title.directive.mjs +3 -3
  118. package/esm2022/components/header/lib/header.component.mjs +6 -5
  119. package/esm2022/components/header/lib/header.module.mjs +4 -4
  120. package/esm2022/components/header-navigation/lib/directives/header-navigation-link.directive.mjs +7 -7
  121. package/esm2022/components/header-navigation/lib/header-navigation.component.mjs +6 -5
  122. package/esm2022/components/header-navigation/lib/header-navigation.module.mjs +4 -4
  123. package/esm2022/components/icon/lib/icon.component.mjs +6 -5
  124. package/esm2022/components/inline-message/lib/inline-message.component.mjs +6 -5
  125. package/esm2022/components/link/link.directive.mjs +6 -5
  126. package/esm2022/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +6 -5
  127. package/esm2022/components/list/lib/components/list-item/list-item.component.mjs +6 -5
  128. package/esm2022/components/list/lib/list.component.mjs +6 -5
  129. package/esm2022/components/list/lib/list.module.mjs +4 -4
  130. package/esm2022/components/loading-spinner/lib/loading-spinner.component.mjs +6 -5
  131. package/esm2022/components/loading-spinner/lib/loading-spinner.directive.mjs +4 -4
  132. package/esm2022/components/loading-spinner/lib/loading-spinner.module.mjs +4 -4
  133. package/esm2022/components/logo/logo.directive.mjs +6 -5
  134. package/esm2022/components/main-menu/lib/directives/main-menu-button.directive.mjs +6 -5
  135. package/esm2022/components/main-menu/lib/directives/main-menu-close.directive.mjs +3 -3
  136. package/esm2022/components/main-menu/lib/directives/main-menu-item.directive.mjs +6 -5
  137. package/esm2022/components/main-menu/lib/main-menu.component.mjs +6 -5
  138. package/esm2022/components/main-menu/lib/main-menu.module.mjs +4 -4
  139. package/esm2022/components/main-menu/lib/main-menu.service.mjs +3 -3
  140. package/esm2022/components/mainfilter-group/lib/mainfilter-group.component.mjs +6 -5
  141. package/esm2022/components/menu/lib/directives/menu-item.directive.mjs +6 -5
  142. package/esm2022/components/menu/lib/menu.component.mjs +6 -5
  143. package/esm2022/components/menu/lib/menu.directive.mjs +6 -5
  144. package/esm2022/components/menu/lib/menu.module.mjs +4 -4
  145. package/esm2022/components/modal/lib/components/basic-modal/basic-modal.component.mjs +3 -3
  146. package/esm2022/components/modal/lib/components/modal-footer/modal-footer.component.mjs +6 -5
  147. package/esm2022/components/modal/lib/components/modal-header/modal-header.component.mjs +7 -6
  148. package/esm2022/components/modal/lib/components/modal-hero/modal-hero.component.mjs +7 -6
  149. package/esm2022/components/modal/lib/directives/modal-close.directive.mjs +4 -4
  150. package/esm2022/components/modal/lib/directives/modal-content.directive.mjs +6 -5
  151. package/esm2022/components/modal/lib/directives/modal-dismiss.directive.mjs +3 -3
  152. package/esm2022/components/modal/lib/directives/prevent-form-method-dialog.directive.mjs +3 -3
  153. package/esm2022/components/modal/lib/directives/prevent-method-dialog.directive.mjs +3 -3
  154. package/esm2022/components/modal/lib/modal.component.mjs +7 -6
  155. package/esm2022/components/modal/lib/modal.directive.mjs +4 -4
  156. package/esm2022/components/modal/lib/modal.module.mjs +4 -4
  157. package/esm2022/components/modal/lib/modal.service.mjs +5 -5
  158. package/esm2022/components/navigation-back/lib/navigation-back.component.mjs +6 -5
  159. package/esm2022/components/notification/lib/components/notification-center/notification-center.component.mjs +6 -5
  160. package/esm2022/components/notification/lib/components/notification-item/notification-item.component.mjs +6 -5
  161. package/esm2022/components/notification/lib/directives/notification-center.directive.mjs +3 -3
  162. package/esm2022/components/notification/lib/features/with-browser-notifications.mjs +2 -3
  163. package/esm2022/components/notification/lib/features/with-load-notifications.mjs +1 -1
  164. package/esm2022/components/notification/lib/features/with-peristent-notifications.mjs +1 -1
  165. package/esm2022/components/notification/lib/features/with-save-notifications.mjs +1 -1
  166. package/esm2022/components/notification/lib/notification.service.mjs +4 -4
  167. package/esm2022/components/notification/lib/services/notification-center.service.mjs +3 -3
  168. package/esm2022/components/paginator/lib/paginator.component.mjs +6 -5
  169. package/esm2022/components/paginator/lib/paginator.module.mjs +4 -4
  170. package/esm2022/components/progress/lib/progress.component.mjs +6 -5
  171. package/esm2022/components/radio-group/lib/components/radio-button/radio-button.component.mjs +6 -5
  172. package/esm2022/components/radio-group/lib/radio-group.component.mjs +8 -9
  173. package/esm2022/components/radio-group/lib/radio-group.module.mjs +4 -4
  174. package/esm2022/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.mjs +6 -5
  175. package/esm2022/components/rail-navigation/lib/rail-navigation.component.mjs +6 -5
  176. package/esm2022/components/rail-navigation/lib/rail-navigation.module.mjs +4 -4
  177. package/esm2022/components/rich-list/lib/components/rich-list-content/rich-list-content.component.mjs +6 -5
  178. package/esm2022/components/rich-list/lib/components/rich-list-item/rich-list-item.component.mjs +6 -5
  179. package/esm2022/components/rich-list/lib/components/rich-list-item-header/rich-list-item-header.component.mjs +6 -5
  180. package/esm2022/components/rich-list/lib/rich-list.component.mjs +6 -5
  181. package/esm2022/components/rich-list/lib/rich-list.module.mjs +4 -4
  182. package/esm2022/components/search-bar/lib/search-bar-control.directive.mjs +3 -3
  183. package/esm2022/components/search-bar/lib/search-bar.component.mjs +3 -3
  184. package/esm2022/components/search-bar/lib/search-bar.module.mjs +4 -4
  185. package/esm2022/components/select/lib/components/select-option/select-option.component.mjs +7 -6
  186. package/esm2022/components/select/lib/directives/select-input-control.directive.mjs +6 -5
  187. package/esm2022/components/select/lib/pipes/select-search-filter.pipe.mjs +3 -3
  188. package/esm2022/components/select/lib/select.component.mjs +15 -17
  189. package/esm2022/components/select/lib/select.module.mjs +4 -4
  190. package/esm2022/components/slider/lib/slider.directive.mjs +6 -5
  191. package/esm2022/components/spinbox/lib/spinbox.component.mjs +7 -6
  192. package/esm2022/components/switch/lib/switch.component.mjs +6 -5
  193. package/esm2022/components/switch/lib/switch.module.mjs +4 -4
  194. package/esm2022/components/switch/lib/switch.validator.mjs +3 -3
  195. package/esm2022/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +6 -5
  196. package/esm2022/components/tab-bar/lib/tab-bar.component.mjs +7 -8
  197. package/esm2022/components/tab-bar/lib/tab-bar.module.mjs +4 -4
  198. package/esm2022/components/table/lib/components/check-cell/check-cell.component.mjs +3 -3
  199. package/esm2022/components/table/lib/components/header-title/header-title.component.mjs +4 -4
  200. package/esm2022/components/table/lib/directives/table-cell.directive.mjs +6 -5
  201. package/esm2022/components/table/lib/directives/table-row.directive.mjs +6 -5
  202. package/esm2022/components/table/lib/table.component.mjs +7 -8
  203. package/esm2022/components/table/lib/table.module.mjs +4 -4
  204. package/esm2022/components/timepicker/lib/components/timepicker-option.component.mjs +7 -6
  205. package/esm2022/components/timepicker/lib/directives/timepicker-input-control.directive.mjs +6 -5
  206. package/esm2022/components/timepicker/lib/timepicker.component.mjs +9 -10
  207. package/esm2022/components/timepicker/lib/timepicker.module.mjs +4 -4
  208. package/esm2022/components/timepicker/lib/timepicker.service.mjs +3 -3
  209. package/esm2022/components/timepicker/lib/utils/generate-time-stamps.mjs +1 -1
  210. package/esm2022/components/timepicker/lib/utils/ngx-mask-helper.mjs +1 -1
  211. package/esm2022/components/toast/lib/components/toast-container/toast-container.component.mjs +6 -5
  212. package/esm2022/components/toast/lib/components/toast-item/toast-item.component.mjs +6 -5
  213. package/esm2022/components/toast/lib/toast.module.mjs +4 -4
  214. package/esm2022/components/toast/lib/toast.service.mjs +3 -3
  215. package/esm2022/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +6 -5
  216. package/esm2022/components/toggle-button-group/lib/toggle-button-group.component.mjs +8 -9
  217. package/esm2022/components/toggle-button-group/lib/toggle-button-group.module.mjs +4 -4
  218. package/esm2022/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.mjs +1 -1
  219. package/esm2022/components/tooltip/lib/tooltip.component.mjs +6 -5
  220. package/esm2022/components/tooltip/lib/tooltip.directive.mjs +7 -6
  221. package/esm2022/components/wizard/lib/components/wizard-step/wizard-step.component.mjs +6 -5
  222. package/esm2022/components/wizard/lib/wizard.component.mjs +6 -5
  223. package/esm2022/components/wizard/lib/wizard.module.mjs +4 -4
  224. package/esm2022/internal/lib/decorators/css-modifier.mjs +1 -1
  225. package/esm2022/internal/lib/helpers/camel-to-kebab-case.mjs +1 -1
  226. package/esm2022/internal/lib/helpers/get-css-variables.mjs +1 -1
  227. package/esm2022/internal/translate/lib/pipes/translate.pipe.mjs +3 -3
  228. package/esm2022/internal/translate/lib/translate.service.mjs +1 -1
  229. package/esm2022/lib/controllers/controller.mjs +3 -3
  230. package/esm2022/lib/controllers/disabled.controller.mjs +4 -4
  231. package/esm2022/lib/controllers/readonly.controller.mjs +5 -5
  232. package/esm2022/lib/core.module.mjs +4 -4
  233. package/esm2022/lib/directives/click-outside.directive.mjs +4 -4
  234. package/esm2022/lib/directives/delegate-focus.directive.mjs +3 -3
  235. package/esm2022/lib/directives/with-disabled-state.directive.mjs +4 -4
  236. package/esm2022/lib/directives/with-tabindex.directive.mjs +4 -4
  237. package/esm2022/lib/services/window-ref.mjs +4 -4
  238. package/esm2022/localization/lib/features/with-http-language-header.mjs +1 -1
  239. package/esm2022/localization/lib/features/with-http-language-query-param.mjs +1 -1
  240. package/esm2022/localization/lib/localization.service.mjs +4 -4
  241. package/esm2022/rxjs/lib/from-element-resize.mjs +1 -1
  242. package/esm2022/sdk/lib/application-environment.mjs +1 -1
  243. package/esm2022/theming/lib/helpers/theme-storage.mjs +1 -1
  244. package/esm2022/theming/lib/theming.service.mjs +5 -5
  245. package/esm2022/utils/lib/decorators/pure.mjs +1 -1
  246. package/esm2022/utils/lib/helpers/angular.mjs +1 -1
  247. package/esm2022/utils/lib/helpers/array.mjs +1 -1
  248. package/esm2022/utils/lib/helpers/cache-storage-client.mjs +1 -1
  249. package/esm2022/utils/lib/helpers/debounce.mjs +1 -1
  250. package/esm2022/utils/lib/helpers/dom.mjs +1 -1
  251. package/esm2022/utils/lib/helpers/event-manager.mjs +4 -4
  252. package/esm2022/utils/lib/helpers/get-axis.mjs +1 -1
  253. package/esm2022/utils/lib/helpers/get-opposite-side.mjs +1 -1
  254. package/esm2022/utils/lib/helpers/ng-changes.mjs +1 -1
  255. package/esm2022/utils/lib/helpers/provide-config.mjs +1 -1
  256. package/esm2022/utils/lib/helpers/queue.mjs +1 -1
  257. package/fesm2022/odx-angular-breakpoints.mjs +10 -10
  258. package/fesm2022/odx-angular-breakpoints.mjs.map +1 -1
  259. package/fesm2022/odx-angular-cdk-a11y.mjs +13 -13
  260. package/fesm2022/odx-angular-cdk-active-indicator.mjs +3 -3
  261. package/fesm2022/odx-angular-cdk-active-indicator.mjs.map +1 -1
  262. package/fesm2022/odx-angular-cdk-autocomplete-control.mjs +4 -4
  263. package/fesm2022/odx-angular-cdk-autocomplete-control.mjs.map +1 -1
  264. package/fesm2022/odx-angular-cdk-checkbox-control.mjs +4 -4
  265. package/fesm2022/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  266. package/fesm2022/odx-angular-cdk-connected-overlay.mjs +6 -6
  267. package/fesm2022/odx-angular-cdk-connected-overlay.mjs.map +1 -1
  268. package/fesm2022/odx-angular-cdk-custom-form-control.mjs +10 -10
  269. package/fesm2022/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  270. package/fesm2022/odx-angular-cdk-dynamic-view.mjs +9 -9
  271. package/fesm2022/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  272. package/fesm2022/odx-angular-cdk-event-plugins.mjs +6 -6
  273. package/fesm2022/odx-angular-cdk-expandable.mjs +10 -10
  274. package/fesm2022/odx-angular-cdk-expandable.mjs.map +1 -1
  275. package/fesm2022/odx-angular-cdk-option-control.mjs +3 -3
  276. package/fesm2022/odx-angular-cdk-radio-group-control.mjs +12 -12
  277. package/fesm2022/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  278. package/fesm2022/odx-angular-components-accordion.mjs +13 -13
  279. package/fesm2022/odx-angular-components-action-group.mjs +3 -3
  280. package/fesm2022/odx-angular-components-area-header.mjs +13 -13
  281. package/fesm2022/odx-angular-components-autocomplete.mjs +18 -20
  282. package/fesm2022/odx-angular-components-autocomplete.mjs.map +1 -1
  283. package/fesm2022/odx-angular-components-avatar.mjs +3 -3
  284. package/fesm2022/odx-angular-components-badge.mjs +6 -6
  285. package/fesm2022/odx-angular-components-badge.mjs.map +1 -1
  286. package/fesm2022/odx-angular-components-bar.mjs +13 -13
  287. package/fesm2022/odx-angular-components-breadcrumbs.mjs +3 -3
  288. package/fesm2022/odx-angular-components-button-group.mjs +3 -3
  289. package/fesm2022/odx-angular-components-button.mjs +6 -6
  290. package/fesm2022/odx-angular-components-calendar.mjs +40 -40
  291. package/fesm2022/odx-angular-components-calendar.mjs.map +1 -1
  292. package/fesm2022/odx-angular-components-card.mjs +20 -20
  293. package/fesm2022/odx-angular-components-card.mjs.map +1 -1
  294. package/fesm2022/odx-angular-components-checkbox.mjs +10 -10
  295. package/fesm2022/odx-angular-components-checkbox.mjs.map +1 -1
  296. package/fesm2022/odx-angular-components-chip.mjs +9 -9
  297. package/fesm2022/odx-angular-components-circular-progress.mjs +3 -3
  298. package/fesm2022/odx-angular-components-circular-progress.mjs.map +1 -1
  299. package/fesm2022/odx-angular-components-content-box.mjs +13 -13
  300. package/fesm2022/odx-angular-components-datepicker.mjs +11 -11
  301. package/fesm2022/odx-angular-components-datepicker.mjs.map +1 -1
  302. package/fesm2022/odx-angular-components-daterangepicker.mjs +17 -17
  303. package/fesm2022/odx-angular-components-daterangepicker.mjs.map +1 -1
  304. package/fesm2022/odx-angular-components-dropdown.mjs +10 -10
  305. package/fesm2022/odx-angular-components-dropdown.mjs.map +1 -1
  306. package/fesm2022/odx-angular-components-error-page.mjs +3 -3
  307. package/fesm2022/odx-angular-components-footer.mjs +3 -3
  308. package/fesm2022/odx-angular-components-form-field.mjs +37 -37
  309. package/fesm2022/odx-angular-components-form-field.mjs.map +1 -1
  310. package/fesm2022/odx-angular-components-header-navigation.mjs +14 -14
  311. package/fesm2022/odx-angular-components-header.mjs +13 -13
  312. package/fesm2022/odx-angular-components-icon.mjs +3 -3
  313. package/fesm2022/odx-angular-components-inline-message.mjs +3 -3
  314. package/fesm2022/odx-angular-components-inline-message.mjs.map +1 -1
  315. package/fesm2022/odx-angular-components-link.mjs +3 -3
  316. package/fesm2022/odx-angular-components-list.mjs +13 -13
  317. package/fesm2022/odx-angular-components-list.mjs.map +1 -1
  318. package/fesm2022/odx-angular-components-loading-spinner.mjs +10 -10
  319. package/fesm2022/odx-angular-components-loading-spinner.mjs.map +1 -1
  320. package/fesm2022/odx-angular-components-logo.mjs +3 -3
  321. package/fesm2022/odx-angular-components-main-menu.mjs +19 -19
  322. package/fesm2022/odx-angular-components-mainfilter-group.mjs +3 -3
  323. package/fesm2022/odx-angular-components-menu.mjs +13 -13
  324. package/fesm2022/odx-angular-components-menu.mjs.map +1 -1
  325. package/fesm2022/odx-angular-components-modal.mjs +44 -44
  326. package/fesm2022/odx-angular-components-modal.mjs.map +1 -1
  327. package/fesm2022/odx-angular-components-navigation-back.mjs +3 -3
  328. package/fesm2022/odx-angular-components-notification.mjs +16 -17
  329. package/fesm2022/odx-angular-components-notification.mjs.map +1 -1
  330. package/fesm2022/odx-angular-components-paginator.mjs +7 -7
  331. package/fesm2022/odx-angular-components-progress.mjs +3 -3
  332. package/fesm2022/odx-angular-components-progress.mjs.map +1 -1
  333. package/fesm2022/odx-angular-components-radio-group.mjs +12 -14
  334. package/fesm2022/odx-angular-components-radio-group.mjs.map +1 -1
  335. package/fesm2022/odx-angular-components-rail-navigation.mjs +10 -10
  336. package/fesm2022/odx-angular-components-rich-list.mjs +16 -16
  337. package/fesm2022/odx-angular-components-search-bar.mjs +10 -10
  338. package/fesm2022/odx-angular-components-select.mjs +24 -26
  339. package/fesm2022/odx-angular-components-select.mjs.map +1 -1
  340. package/fesm2022/odx-angular-components-slider.mjs +3 -3
  341. package/fesm2022/odx-angular-components-spinbox.mjs +4 -4
  342. package/fesm2022/odx-angular-components-spinbox.mjs.map +1 -1
  343. package/fesm2022/odx-angular-components-switch.mjs +10 -10
  344. package/fesm2022/odx-angular-components-tab-bar.mjs +11 -13
  345. package/fesm2022/odx-angular-components-tab-bar.mjs.map +1 -1
  346. package/fesm2022/odx-angular-components-table.mjs +20 -22
  347. package/fesm2022/odx-angular-components-table.mjs.map +1 -1
  348. package/fesm2022/odx-angular-components-timepicker.mjs +20 -22
  349. package/fesm2022/odx-angular-components-timepicker.mjs.map +1 -1
  350. package/fesm2022/odx-angular-components-toast.mjs +13 -13
  351. package/fesm2022/odx-angular-components-toast.mjs.map +1 -1
  352. package/fesm2022/odx-angular-components-toggle-button-group.mjs +12 -14
  353. package/fesm2022/odx-angular-components-toggle-button-group.mjs.map +1 -1
  354. package/fesm2022/odx-angular-components-tooltip.mjs +7 -7
  355. package/fesm2022/odx-angular-components-tooltip.mjs.map +1 -1
  356. package/fesm2022/odx-angular-components-wizard.mjs +10 -10
  357. package/fesm2022/odx-angular-components-wizard.mjs.map +1 -1
  358. package/fesm2022/odx-angular-internal-translate.mjs +3 -3
  359. package/fesm2022/odx-angular-internal-translate.mjs.map +1 -1
  360. package/fesm2022/odx-angular-internal.mjs.map +1 -1
  361. package/fesm2022/odx-angular-localization.mjs +3 -3
  362. package/fesm2022/odx-angular-localization.mjs.map +1 -1
  363. package/fesm2022/odx-angular-rxjs.mjs.map +1 -1
  364. package/fesm2022/odx-angular-sdk.mjs.map +1 -1
  365. package/fesm2022/odx-angular-theming.mjs +4 -4
  366. package/fesm2022/odx-angular-theming.mjs.map +1 -1
  367. package/fesm2022/odx-angular-utils.mjs +3 -3
  368. package/fesm2022/odx-angular-utils.mjs.map +1 -1
  369. package/fesm2022/odx-angular.mjs +31 -31
  370. package/fesm2022/odx-angular.mjs.map +1 -1
  371. package/package.json +13 -13
@@ -333,10 +333,10 @@ class NotificationService {
333
333
  language: options?.language ?? this.localizationService.getActiveLanguage(),
334
334
  });
335
335
  }
336
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
337
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
336
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
337
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
338
338
  }
339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationService, decorators: [{
339
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationService, decorators: [{
340
340
  type: Injectable,
341
341
  args: [{ providedIn: 'root' }]
342
342
  }] });
@@ -433,10 +433,10 @@ class NotificationCenterService {
433
433
  queryEvent(source$) {
434
434
  return combineLatest([source$, toObservable(this.notificationQuery)]).pipe(filter(([notificationRef, query]) => query(notificationRef)), map(([notificationRef]) => notificationRef));
435
435
  }
436
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
437
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterService }); }
436
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
437
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterService }); }
438
438
  }
439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterService, decorators: [{
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterService, decorators: [{
440
440
  type: Injectable
441
441
  }] });
442
442
 
@@ -655,13 +655,12 @@ function sendBrowserNotification(serializer, options) {
655
655
  const [notificationObj] = await serializer.deserialize(await serializer.serialize([notificationRef]));
656
656
  if (!notificationObj || notificationObj.hasBeenSeen)
657
657
  return;
658
- const { createdAt, item } = notificationObj;
658
+ const { item } = notificationObj;
659
659
  new Notification(item.title, {
660
660
  tag: notificationRef.options.tags?.[0],
661
661
  lang: notificationRef.options.language,
662
662
  ...options,
663
663
  body: item.description,
664
- timestamp: createdAt,
665
664
  });
666
665
  };
667
666
  }
@@ -763,13 +762,13 @@ let NotificationItemComponent = class NotificationItemComponent {
763
762
  get notification() {
764
763
  return this._notificationRef;
765
764
  }
766
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
767
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NotificationItemComponent, isStandalone: true, selector: "odx-notification-item", inputs: { notification: "notification" }, outputs: { dismiss: "dismiss" }, ngImport: i0, template: "<ng-template [ngIf]=\"transformedNotification | async\" let-ref>\n <odx-avatar class=\"odx-notification-item__avatar odx-no-margin\">\n <odx-icon [identifier]=\"ref.options.icon\" />\n </odx-avatar>\n <div class=\"odx-notification-item__title\">\n <ng-template [odxDynamicView]=\"ref.item.title\" />\n </div>\n <div class=\"odx-notification-item__description\" *ngIf=\"ref.item.description as description\">\n <ng-template [odxDynamicView]=\"ref.item.description\" />\n </div>\n</ng-template>\n<odx-action-group class=\"odx-notification-item__actions odx-no-margin\">\n <button odxButton class=\"odx-no-margin\" (click)=\"dismiss.next(notification)\" *ngIf=\"notification.options.dismissable\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n</odx-action-group>\n", dependencies: [{ kind: "component", type: AvatarComponent, selector: "odx-avatar", inputs: ["size", "variant"] }, { kind: "component", type: ActionGroupComponent, selector: "odx-action-group", inputs: ["reverse"] }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet", "identifier"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
765
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
766
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: NotificationItemComponent, isStandalone: true, selector: "odx-notification-item", inputs: { notification: "notification" }, outputs: { dismiss: "dismiss" }, ngImport: i0, template: "<ng-template [ngIf]=\"transformedNotification | async\" let-ref>\n <odx-avatar class=\"odx-notification-item__avatar odx-no-margin\">\n <odx-icon [identifier]=\"ref.options.icon\" />\n </odx-avatar>\n <div class=\"odx-notification-item__title\">\n <ng-template [odxDynamicView]=\"ref.item.title\" />\n </div>\n <div class=\"odx-notification-item__description\" *ngIf=\"ref.item.description as description\">\n <ng-template [odxDynamicView]=\"ref.item.description\" />\n </div>\n</ng-template>\n<odx-action-group class=\"odx-notification-item__actions odx-no-margin\">\n <button odxButton class=\"odx-no-margin\" (click)=\"dismiss.next(notification)\" *ngIf=\"notification.options.dismissable\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n</odx-action-group>\n", dependencies: [{ kind: "component", type: AvatarComponent, selector: "odx-avatar", inputs: ["size", "variant"] }, { kind: "component", type: ActionGroupComponent, selector: "odx-action-group", inputs: ["reverse"] }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet", "identifier"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
768
767
  };
769
768
  NotificationItemComponent = __decorate([
770
769
  CSSComponent('notification-item')
771
770
  ], NotificationItemComponent);
772
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationItemComponent, decorators: [{
771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationItemComponent, decorators: [{
773
772
  type: Component,
774
773
  args: [{ selector: 'odx-notification-item', standalone: true, imports: [AvatarComponent, ActionGroupComponent, ButtonComponent, CommonModule, DynamicViewDirective, IconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [ngIf]=\"transformedNotification | async\" let-ref>\n <odx-avatar class=\"odx-notification-item__avatar odx-no-margin\">\n <odx-icon [identifier]=\"ref.options.icon\" />\n </odx-avatar>\n <div class=\"odx-notification-item__title\">\n <ng-template [odxDynamicView]=\"ref.item.title\" />\n </div>\n <div class=\"odx-notification-item__description\" *ngIf=\"ref.item.description as description\">\n <ng-template [odxDynamicView]=\"ref.item.description\" />\n </div>\n</ng-template>\n<odx-action-group class=\"odx-notification-item__actions odx-no-margin\">\n <button odxButton class=\"odx-no-margin\" (click)=\"dismiss.next(notification)\" *ngIf=\"notification.options.dismissable\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n</odx-action-group>\n" }]
775
774
  }], propDecorators: { notification: [{
@@ -794,13 +793,13 @@ let NotificationCenterComponent = class NotificationCenterComponent {
794
793
  isMuted({ options, hasBeenSeen }) {
795
794
  return hasBeenSeen && !options.action;
796
795
  }
797
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
798
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NotificationCenterComponent, isStandalone: true, selector: "odx-notification-center", providers: [provideTranslations(notificationI18n)], ngImport: i0, template: "<ng-template [ngIf]=\"notificationCenterService.notifications$ | async\" let-notifications>\n <h3 class=\"odx-notification-center__header\">\n <ng-template [odxDynamicView]=\"(notificationCenterService.title$ | async) ?? ('title' | odxTranslate | async)\"></ng-template>\n </h3>\n <odx-list class=\"odx-notification-center__content\">\n <odx-list-item\n @notificationAnimation\n [muted]=\"isMuted(notification)\"\n [selected]=\"!notification.hasBeenSeen\"\n (click)=\"notificationCenterService.executeAction(notification)\"\n *ngFor=\"let notification of notifications.values; trackBy: trackById\"\n >\n <odx-notification-item [notification]=\"notification\" (dismiss)=\"notificationCenterService.dismiss(notification)\" />\n </odx-list-item>\n </odx-list>\n <div class=\"odx-notification-center__footer\">\n <button odxButton [disabled]=\"false\" (click)=\"notificationCenterService.dismissAll()\">\n {{ 'dismissAll' | odxTranslate | async }}\n </button>\n </div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }, { kind: "ngmodule", type: DropdownModule }, { kind: "directive", type: i2.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "pipe", type: TranslatePipe, name: "odxTranslate" }, { kind: "component", type: NotificationItemComponent, selector: "odx-notification-item", inputs: ["notification"], outputs: ["dismiss"] }, { kind: "ngmodule", type: ListModule }, { kind: "component", type: i3.ListComponent, selector: "odx-list" }, { kind: "component", type: i3.ListItemComponent, selector: "odx-list-item, [odxListItem]", inputs: ["danger", "variant", "muted", "selected"] }], animations: [trigger('notificationAnimation', [transition(':leave', useAnimation(collapse, { delay: 150 }))])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
796
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
797
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: NotificationCenterComponent, isStandalone: true, selector: "odx-notification-center", providers: [provideTranslations(notificationI18n)], ngImport: i0, template: "<ng-template [ngIf]=\"notificationCenterService.notifications$ | async\" let-notifications>\n <h3 class=\"odx-notification-center__header\">\n <ng-template [odxDynamicView]=\"(notificationCenterService.title$ | async) ?? ('title' | odxTranslate | async)\"></ng-template>\n </h3>\n <odx-list class=\"odx-notification-center__content\">\n <odx-list-item\n @notificationAnimation\n [muted]=\"isMuted(notification)\"\n [selected]=\"!notification.hasBeenSeen\"\n (click)=\"notificationCenterService.executeAction(notification)\"\n *ngFor=\"let notification of notifications.values; trackBy: trackById\"\n >\n <odx-notification-item [notification]=\"notification\" (dismiss)=\"notificationCenterService.dismiss(notification)\" />\n </odx-list-item>\n </odx-list>\n <div class=\"odx-notification-center__footer\">\n <button odxButton [disabled]=\"false\" (click)=\"notificationCenterService.dismissAll()\">\n {{ 'dismissAll' | odxTranslate | async }}\n </button>\n </div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }, { kind: "ngmodule", type: DropdownModule }, { kind: "directive", type: i2.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "pipe", type: TranslatePipe, name: "odxTranslate" }, { kind: "component", type: NotificationItemComponent, selector: "odx-notification-item", inputs: ["notification"], outputs: ["dismiss"] }, { kind: "ngmodule", type: ListModule }, { kind: "component", type: i3.ListComponent, selector: "odx-list" }, { kind: "component", type: i3.ListItemComponent, selector: "odx-list-item, [odxListItem]", inputs: ["danger", "variant", "muted", "selected"] }], animations: [trigger('notificationAnimation', [transition(':leave', useAnimation(collapse, { delay: 150 }))])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
799
798
  };
800
799
  NotificationCenterComponent = __decorate([
801
800
  CSSComponent('notification-center')
802
801
  ], NotificationCenterComponent);
803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterComponent, decorators: [{
802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterComponent, decorators: [{
804
803
  type: Component,
805
804
  args: [{ selector: 'odx-notification-center', standalone: true, imports: [
806
805
  CommonModule,
@@ -931,10 +930,10 @@ class NotificationCenterDirective {
931
930
  this.dropdownDirective.close();
932
931
  }));
933
932
  }
934
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
935
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NotificationCenterDirective, isStandalone: true, selector: "[odxNotificationCenter]", inputs: { tag: ["odxNotificationCenter", "tag"], title: ["odxNotificationCenterTitle", "title"], sortFn: ["odxNotificationCenterSortFn", "sortFn"] }, outputs: { notificationAdd: "odxNotificationCenterAdd", notificationUpdate: "odxNotificationCenterUpdate", notificationRemove: "odxNotificationCenterRemove", notificationSeen: "odxNotificationCenterSeen" }, providers: [NotificationCenterService], hostDirectives: [{ directive: i1$1.BadgeDirective, inputs: ["odxBadgeVariant", "odxNotificationCenterBadgeVariant"] }, { directive: i2$1.DropdownDirective }], ngImport: i0 }); }
933
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
934
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: NotificationCenterDirective, isStandalone: true, selector: "[odxNotificationCenter]", inputs: { tag: ["odxNotificationCenter", "tag"], title: ["odxNotificationCenterTitle", "title"], sortFn: ["odxNotificationCenterSortFn", "sortFn"] }, outputs: { notificationAdd: "odxNotificationCenterAdd", notificationUpdate: "odxNotificationCenterUpdate", notificationRemove: "odxNotificationCenterRemove", notificationSeen: "odxNotificationCenterSeen" }, providers: [NotificationCenterService], hostDirectives: [{ directive: i1$1.BadgeDirective, inputs: ["odxBadgeVariant", "odxNotificationCenterBadgeVariant"] }, { directive: i2$1.DropdownDirective }], ngImport: i0 }); }
936
935
  }
937
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationCenterDirective, decorators: [{
936
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationCenterDirective, decorators: [{
938
937
  type: Directive,
939
938
  args: [{
940
939
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-notification.mjs","sources":["../../../../libs/angular/components/notification/src/lib/notification.i18n.ts","../../../../libs/angular/components/notification/src/lib/helpers/get-notifications-by-tag.ts","../../../../libs/angular/components/notification/src/lib/helpers/sort-notifications.ts","../../../../libs/angular/components/notification/src/lib/helpers/to-notification-collection.ts","../../../../libs/angular/components/notification/src/lib/notification.config.ts","../../../../libs/angular/components/notification/src/lib/notification.logger.ts","../../../../libs/angular/components/notification/src/lib/notification.tokens.ts","../../../../libs/angular/components/notification/src/lib/notification.service.ts","../../../../libs/angular/components/notification/src/lib/services/notification-center.service.ts","../../../../libs/angular/components/notification/src/lib/models/notification-feature.ts","../../../../libs/angular/components/notification/src/lib/features/with-load-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-save-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-peristent-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-browser-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-notification-transformer.ts","../../../../libs/angular/components/notification/src/lib/components/notification-item/notification-item.component.ts","../../../../libs/angular/components/notification/src/lib/components/notification-item/notification-item.component.html","../../../../libs/angular/components/notification/src/lib/components/notification-center/notification-center.component.ts","../../../../libs/angular/components/notification/src/lib/components/notification-center/notification-center.component.html","../../../../libs/angular/components/notification/src/lib/directives/notification-center.directive.ts","../../../../libs/angular/components/notification/src/odx-angular-components-notification.ts"],"sourcesContent":["import { TranslationObject } from '@odx/angular/internal/translate';\n\nexport default {\n en: {\n title: 'Notifications',\n dismissAll: 'Dismiss all',\n },\n de: {\n title: 'Benachrichtigungen',\n dismissAll: 'Alle entfernen',\n },\n} as TranslationObject;\n","import { NotificationQuery } from '../models';\n\n/** @internal */\nexport function getNotificationsByTags(...tags: Array<string | null | undefined>): NotificationQuery {\n const cachedTags = new Set(tags.filter(Boolean));\n\n return ({ options }) => {\n return cachedTags.size < 1 || options.tags.every((tag) => cachedTags.has(tag));\n };\n}\n","import { isFunction } from '@odx/angular/utils';\nimport { MonoTypeOperatorFunction, tap } from 'rxjs';\nimport { NotificationRef, NotificationSortFn } from '../models';\n\n/** @internal */\nexport function sortNotifications(sortFn?: NotificationSortFn): MonoTypeOperatorFunction<NotificationRef[]> {\n return (source$) =>\n source$.pipe(\n tap((values) => {\n if (!isFunction(sortFn)) return;\n values.sort(sortFn);\n }),\n );\n}\n","import { OperatorFunction, map } from 'rxjs';\nimport { NotificationCollection, NotificationRef } from '../models';\n\n/** @internal */\nexport function toNotificationCollection(): OperatorFunction<NotificationRef[], NotificationCollection> {\n return (source$) =>\n source$.pipe(\n map((notificationRefs) => ({\n values: notificationRefs,\n count: notificationRefs.length,\n isEmpty: notificationRefs.length === 0,\n })),\n );\n}\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { createConfigTokens, orderBy } from '@odx/angular/utils';\nimport { NotificationAction, NotificationFeature, NotificationOptions, NotificationRef, NotificationSortFn } from './models';\n\n/**\n * Represents the configuration options for notifications within the application.\n * This interface allows customization of various aspects of notification behavior.\n *\n * @property {string} defaultIdPrefix - Prefix used for generating unique notification IDs.\n * @property {NotificationOptions} options - Default global options for all notifications.\n * @property {NotificationSortFn} sortFn - Function to sort notifications, aiding in prioritization or ordering.\n * @property {Record<string, string>} [tagToIconMap] - Maps notification tags to specific icons for visual differentiation.\n * @property {Record<string, NotificationAction>} [actionMap] - Maps action types to their respective handler functions, enabling custom actions.\n */\nexport interface NotificationConfig {\n defaultIdPrefix: string;\n options: NotificationOptions;\n sortFn: NotificationSortFn;\n tagToIconMap?: Record<string, string>;\n actionMap?: Record<string, NotificationAction>;\n}\n\n/**\n * Generates and exports configuration tokens for notifications, utilizing Angular's dependency injection.\n * This function provides a structured approach to configuring and providing notification settings across\n * an application.\n *\n * @example\n * ```ts\n * // In module providers:\n * providers: [\n * provideNotificationConfig({\n * defaultIdPrefix: 'your-prefix-notifications', // will be used as id prefix for notification items\n * options: NotificationOptions, // { icon: 'core::globe', tags: [], dismissable: true } by default\n * sortFn: (a: NotificationRef, b: NotificationRef) => b.createdAt.localeCompare(a.createdAt), // default sort function\n * tagToIconMap: { message: 'core::mail' }, // custom icon for message tag (default is core::globe)\n * actionMap: { view: (notification) => { console.log(notification); } } // custom action handler\n * })\n * ]\n *\n * // In component or service:\n * constructor(@Inject(NotificationConfig) private notificationConfig: NotificationConfig) {...}\n * ```\n */\nexport const { NotificationConfig, NotificationDefaultConfig, injectNotificationConfig, provideNotificationConfig } = createConfigTokens(\n 'Notification',\n '@odx/angular/components/notification',\n {\n options: { icon: 'core::globe', tags: [], dismissable: true },\n sortFn: orderBy<NotificationRef>('createdAt', 'DESC'),\n defaultIdPrefix: 'odx-notifications',\n } as NotificationConfig,\n);\n\n/**\n * Constructs and provides Angular environment providers for notifications based on provided configurations and features.\n * Ideal for setting up notifications at the application's top level, ensuring global availability and configurability.\n *\n * @param {Partial<NotificationConfig>} [config] - Optional configuration overrides.\n * @param {...NotificationFeature[]} features - Features to enhance the notification system.\n * @returns {EnvironmentProviders} Configured providers ready for integration into Angular's environment.\n *\n * @example\n * ```ts\n * // In module providers:\n * providers: [\n * provideNotifications({\n * config, // NotificationConfig\n * },\n * {\n * withBrowserNotifications({...}), // NotificationFeature\n * },\n * )\n * ]\n * ```\n */\nexport function provideNotifications(config?: Partial<NotificationConfig>, ...features: NotificationFeature[]): EnvironmentProviders {\n return makeEnvironmentProviders([provideNotificationConfig(config ?? {}), features]);\n}\n","import { Logger } from '@odx/angular/internal';\n\n/** @internal */\nexport default new Logger('@odx/angular/components/notification');\n","import { InjectionToken } from '@angular/core';\nimport { Queue } from '@odx/angular/utils';\nimport { NotificationRef } from './models';\n\n/**\n * Represents the injection token for the notification queue.\n */\nexport const ODX_NOTIFICATION_QUEUE = new InjectionToken<Queue<NotificationRef>>('@odx/angular/component/notifications::Queue', {\n providedIn: 'root',\n factory: () => new Queue(),\n});\n","import { Injectable, Injector, inject, runInInjectionContext } from '@angular/core';\nimport { deepmerge } from '@odx/angular/internal';\nimport { LocalizationService } from '@odx/angular/localization';\nimport { getUniqueId, isFunction } from '@odx/angular/utils';\nimport { Observable, filter, map, shareReplay } from 'rxjs';\nimport { sortNotifications, toNotificationCollection } from './helpers';\nimport { Notification, NotificationCollection, NotificationOptions, NotificationQuery, NotificationRef, NotificationSortFn } from './models';\nimport { injectNotificationConfig } from './notification.config';\nimport logger from './notification.logger';\nimport { ODX_NOTIFICATION_QUEUE } from './notification.tokens';\n\n/**\n * The `NotificationService` class provides methods for managing notifications.\n * It allows you to create, load, dismiss, mark as seen, and execute actions on notifications.\n * You can also fetch notifications based on specific queries and sort them using custom sort functions.\n */\n@Injectable({ providedIn: 'root' })\nexport class NotificationService {\n private readonly config = injectNotificationConfig();\n private readonly localizationService = inject(LocalizationService);\n private readonly queue = inject(ODX_NOTIFICATION_QUEUE);\n private readonly injector = inject(Injector);\n\n /**\n * An observable stream of all notifications in the queue, sorted by the configured sort function.\n *\n * @emits {NotificationCollection} A collection of notifications.\n */\n public readonly notifications$ = this.queue.value$.pipe(\n sortNotifications(this.config.sortFn),\n toNotificationCollection(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * An observable stream of all unseen notifications in the queue.\n * Unseen notifications are those that have not been marked as seen.\n *\n * @emits {NotificationCollection} A collection of unseen notifications.\n */\n public readonly unseenNotifications$ = this.notifications$.pipe(\n map((collection) => collection.values.filter(({ hasBeenSeen }) => !hasBeenSeen)),\n toNotificationCollection(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * An observable stream of all seen notifications in the queue.\n * Seen notifications are those that have been marked as seen.\n *\n * @emits {NotificationCollection} A collection of seen notifications.\n */\n public readonly onNotificationAdd$ = this.queue.onAdd$;\n\n /**\n * An observable stream of notifications that have been removed from the queue.\n *\n * @emits {NotificationCollection} A collection of removed notifications.\n */\n public readonly onNotificationRemove$ = this.queue.onRemove$;\n\n /**\n * An observable stream of notifications that have been updated in the queue.\n *\n * @emits {NotificationCollection} A collection of updated notifications.\n */\n public readonly onNotificationUpdate$ = this.queue.onUpdate$;\n\n /**\n * An observable stream of notifications that have been marked as seen.\n *\n * @emits {NotificationCollection} A collection of seen notifications.\n */\n public readonly onNotificationSeen$ = this.queue.onUpdate$.pipe(filter(({ hasBeenSeen }) => hasBeenSeen));\n\n /**\n * Fetches notifications filtered by a specified query and optionally sorted by a custom sort function.\n *\n * @param {NotificationQuery} query - A function or object to filter notifications.\n * @param {NotificationSortFn} [sortFn] - An optional sorting function to order the filtered notifications.\n * @returns {Observable<NotificationCollection>} An observable stream of the filtered (and optionally sorted) notification collection.\n * @example\n * ```ts\n * // Fetch notifications with a specific tag, sorted by creation date\n * const sortedNotifications$ = notificationService.getNotificationsBy$(\n * notification => notification.tags.includes('important'),\n * (a, b) => b.createdAt - a.createdAt\n * );\n * ```\n */\n public getNotificationsBy$(query: NotificationQuery, sortFn?: NotificationSortFn): Observable<NotificationCollection> {\n return this.queue.value$.pipe(\n map((notifications) => notifications.filter(query)),\n sortNotifications(sortFn),\n toNotificationCollection(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n }\n\n /**\n * Loads a list of notifications into the service.\n *\n * @param {NotificationRef[]} refs - An array of notification references to be loaded.\n * @example\n * ```ts\n * // Load multiple notifications at once\n * notificationService.load([\n * { id: '1', item: { title: 'Notification 1' }, options: {dismissable: true, icon: 'plus', tags: ['important']}, hasBeenSeen: false, createdAt: Date.now() },\n * { id: '2', item: { title: 'Notification 2' }, options: {dismissable: true, icon: 'plus', tags: ['important']}, hasBeenSeen: false, createdAt: Date.now() }\n * ]);\n * ```\n */\n public load(refs: NotificationRef[]): void {\n this.queue.addMany(refs);\n }\n\n /**\n * Creates a new notification and adds it to the notification queue.\n *\n * @param {Notification} item - The notification to create.\n * @param {Partial<NotificationOptions>} [options] - Optional settings for the notification.\n * @example\n * ```ts\n * // Create a new notification with custom options\n * notificationService.create(\n * { title: 'New Notification' },\n * { dismissable: true, icon: 'plus', tags: ['important'] }\n * );\n * ```\n */\n public create(item: Notification, options?: Partial<NotificationOptions>): void {\n this.queue.add({\n id: item.id ?? getUniqueId(this.config.defaultIdPrefix),\n createdAt: Date.now(),\n item,\n options: this.resolveOptions(options),\n hasBeenSeen: false,\n });\n }\n\n /**\n * Marks a specific notification as seen.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to mark as seen.\n * @example\n * ```ts\n * // Mark a notification as seen by its reference\n * notificationService.markAsSeen(notificationRef);\n * ```\n */\n public markAsSeen(notificationRef: NotificationRef): void {\n if (notificationRef.hasBeenSeen) return;\n this.queue.add({ ...notificationRef, hasBeenSeen: true });\n }\n\n /**\n * Marks all notifications that match a specific query as seen.\n *\n * @param {NotificationQuery} query - The query to match notifications to mark as seen.\n * @example\n * ```ts\n * // Mark all notifications with a specific tag as seen\n * notificationService.markAsSeenBy(notification => notification.tags.includes('important'));\n * ```\n */\n public markAsSeenBy(query: NotificationQuery): void {\n for (const notificationRef of this.queue.toArray().filter(query)) {\n this.markAsSeen(notificationRef);\n }\n }\n\n /**\n * Dismisses a specific notification.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to dismiss.\n * @example\n * ```ts\n * // Dismiss a notification by its reference\n * notificationService.dismiss(notificationRef);\n * ```\n */\n public dismiss(notificationRef: NotificationRef): void {\n if (!notificationRef.options.dismissable) return;\n this.queue.remove(notificationRef);\n }\n\n /**\n * Dismisses all notifications that match a specific query.\n *\n * @param {NotificationQuery} query - The query to match notifications to dismiss.\n * @example\n * ```ts\n * // Dismiss all notifications with a specific tag\n * notificationService.dismissBy(notification => notification.tags.includes('expired'));\n * ```\n */\n public dismissBy(query: NotificationQuery): void {\n for (const item of this.queue.toArray().filter(query)) {\n this.dismiss(item);\n }\n }\n\n /**\n * Dismisses all notifications.\n *\n * @example\n * ```ts\n * // Dismiss all notifications\n * notificationService.dismissAll();\n * ```\n */\n public dismissAll(): void {\n this.queue.clear();\n }\n\n /**\n * Executes the action associated with a specific notification.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification whose action to execute.\n * @example\n * ```ts\n * // Execute action for a notification\n * notificationService.executeAction(notificationRef);\n * ```\n */\n public executeAction(notificationRef: NotificationRef): void {\n if (!notificationRef.options.action) return;\n const actionFn = this.config.actionMap?.[notificationRef.options.action];\n if (!isFunction(actionFn)) {\n logger.warn(`Cannot find action ${notificationRef.options.action} for notification reference: ${notificationRef}`);\n return;\n }\n runInInjectionContext(this.injector, () => actionFn(notificationRef));\n }\n\n private resolveOptions(options?: Partial<NotificationOptions>): NotificationOptions {\n return deepmerge(this.config.options, options ?? {}, {\n icon: options?.icon ?? this.config.tagToIconMap?.[options?.tags?.[0] ?? ''] ?? this.config.options.icon,\n language: options?.language ?? this.localizationService.getActiveLanguage(),\n }) as NotificationOptions;\n }\n}\n","import { Injectable, computed, inject, signal } from '@angular/core';\nimport { toObservable } from '@angular/core/rxjs-interop';\nimport { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { Observable, combineLatest, filter, isObservable, map, of, shareReplay, switchMap } from 'rxjs';\nimport { getNotificationsByTags, toNotificationCollection } from '../helpers';\nimport { NotificationRef, NotificationSortFn } from '../models';\nimport { NotificationService } from '../notification.service';\n\n/**\n * A service for managing the notification center. This service provides functionalities\n * to filter, sort, and manage actions on notifications.\n *\n * @internal\n */\n@Injectable()\nexport class NotificationCenterService {\n private readonly currentTag = signal<string | null>(null);\n private readonly currentSortFn = signal<NotificationSortFn>(undefined);\n private readonly notificationService = inject(NotificationService);\n private readonly notificationQuery = computed(() => getNotificationsByTags(this.currentTag()));\n private readonly title = signal<DynamicTextContent | null>(null);\n\n /** @internal */\n public readonly title$ = toObservable(this.title).pipe(\n switchMap((title) => (isObservable(title) ? title : of(title))),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /** @internal */\n public readonly notifications$ = combineLatest([toObservable(this.notificationQuery), toObservable(this.currentSortFn)]).pipe(\n switchMap(([query, sortFn]) => this.notificationService.getNotificationsBy$(query, sortFn)),\n );\n\n /** @internal */\n public readonly unseenNotifications$ = this.notifications$.pipe(\n map((collection) => collection.values.filter(({ hasBeenSeen }) => !hasBeenSeen)),\n toNotificationCollection(),\n );\n\n /** @internal */\n public onNotificationAdd$ = this.queryEvent(this.notificationService.onNotificationAdd$);\n\n /** @internal */\n public onNotificationUpdate$ = this.queryEvent(this.notificationService.onNotificationUpdate$);\n\n /** @internal */\n public onNotificationRemove$ = this.queryEvent(this.notificationService.onNotificationRemove$);\n\n /** @internal */\n public onNotificationSeen$ = this.queryEvent(this.notificationService.onNotificationSeen$);\n\n /**\n * Sets the title for the notification center. The title can be static text or an observable for dynamic content.\n *\n * @param {DynamicTextContent | null} [value] - The title content for the notification center.\n */\n public setTitle(value?: DynamicTextContent | null): void {\n this.title.set(value ?? null);\n }\n\n /**\n * Sets the current tag to filter notifications. Only notifications with this tag will be included.\n *\n * @param {string | null} [value] - The tag to filter notifications by.\n */\n public setTag(value?: string | null): void {\n this.currentTag.set(value ?? null);\n }\n\n /**\n * Sets the sort function used to order the notifications.\n *\n * @param {NotificationSortFn} [value] - The sort function to apply to the notifications.\n */\n public setSortFn(value?: NotificationSortFn): void {\n this.currentSortFn.set(value);\n }\n\n /**\n * Marks a given notification as seen. This does not remove the notification but updates its seen status.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to be marked as seen.\n */\n public markAsSeen(notificationRef: NotificationRef): void {\n this.notificationService.markAsSeen(notificationRef);\n }\n\n /**\n * Marks all current filtered notifications as seen.\n */\n public markAllAsSeen(): void {\n this.notificationService.markAsSeenBy(this.notificationQuery());\n }\n\n /**\n * Dismisses a specific notification.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to dismiss.\n */\n public dismiss(notificationRef: NotificationRef): void {\n this.notificationService.dismiss(notificationRef);\n }\n\n /**\n * Dismisses all notifications that match the current filter criteria.\n */\n public dismissAll(): void {\n this.notificationService.dismissBy(this.notificationQuery());\n }\n\n /**\n * Executes the action associated with a specific notification and marks it as seen.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification whose action to execute.\n */\n public executeAction(notificationRef: NotificationRef): void {\n this.markAsSeen(notificationRef);\n this.notificationService.executeAction(notificationRef);\n }\n\n private queryEvent(source$: Observable<NotificationRef>): Observable<NotificationRef> {\n return combineLatest([source$, toObservable(this.notificationQuery)]).pipe(\n filter(([notificationRef, query]) => query(notificationRef)),\n map(([notificationRef]) => notificationRef),\n );\n }\n}\n","import { EnvironmentProviders, Provider } from '@angular/core';\n\nexport type NotificationFeature = EnvironmentProviders & { ɵodxBrand: '@odx/angular/components/notification::NotificationFeature' };\n\n/**\n * Creates a `NotificationFeature` instance from a given provider or a set of environment providers.\n * This function is a utility to encapsulate providers into a feature for the notification system, enhancing its configurability.\n *\n * @param {(Provider | NotificationFeature)[] | EnvironmentProviders} provider - A single provider, an array of providers, or an environment providers object.\n * @returns {NotificationFeature} A new `NotificationFeature` encapsulating the provided values.\n *\n * @example\n * ```ts\n * // Creating a notification feature:\n * const feature = makeNotificationFeature([\n * { provide: SomeService, useClass: SomeServiceImpl }\n * ]);\n * ```\n */\nexport function makeNotificationFeature(provider: (Provider | NotificationFeature)[] | EnvironmentProviders): NotificationFeature {\n return provider as never as NotificationFeature;\n}\n","import { ENVIRONMENT_INITIALIZER, inject } from '@angular/core';\nimport { Observable, from, isObservable, of } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { NotificationService } from '../notification.service';\n\n/**\n * Type definition for a function that loads notifications.\n * Can return notifications directly as an array, as a Promise, or as an Observable.\n *\n * @typedef {Function} LoadNotificationsFn\n * @returns {Observable<NotificationRef[]> | Promise<NotificationRef[]> | NotificationRef[]} The loaded notifications.\n */\nexport type LoadNotificationsFn = () => Observable<NotificationRef[]> | Promise<NotificationRef[]> | NotificationRef[];\n\n/**\n * Loads notifications using the provided `loadFn`. This function abstracts over the differences\n * between synchronous notifications, promises, and observables, providing a uniform Observable output.\n *\n * @param {LoadNotificationsFn} [loadFn] - An optional function to load notifications.\n * @returns {Observable<NotificationRef[]>} An Observable stream of notification references.\n */\nfunction loadNotifications(loadFn?: LoadNotificationsFn): Observable<NotificationRef[]> {\n const notifications = loadFn?.();\n if (isObservable(notifications)) {\n return notifications;\n }\n if (notifications instanceof Promise) {\n return from(notifications);\n }\n return of(notifications ?? []);\n}\n\n/**\n * Integrates notification loading into the application environment. This function uses the Angular\n * `ENVIRONMENT_INITIALIZER` to ensure that notifications are loaded as part of the application's\n * initialization process.\n *\n * @param {LoadNotificationsFn} loadFn - The function to load notifications.\n * @returns {NotificationFeature} A notification feature configured to load notifications at startup.\n */\nexport function withLoadNotifications(loadFn: LoadNotificationsFn): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useFactory: () => {\n const notificationService = inject(NotificationService);\n const notifications$ = loadNotifications(loadFn);\n\n return () => {\n notifications$.subscribe((notificationRefs) => notificationService.load(notificationRefs));\n };\n },\n multi: true,\n },\n ]);\n}\n","import { ENVIRONMENT_INITIALIZER, Injector, inject, runInInjectionContext } from '@angular/core';\nimport { Observable, firstValueFrom, isObservable } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { NotificationService } from '../notification.service';\n\nexport type SaveNotificationsFn = (notificationRefs: NotificationRef[]) => Observable<void> | Promise<void> | void;\n\n/**\n * Asynchronously saves notifications using the provided save function. It handles Observable and Promise results seamlessly.\n *\n * @param {NotificationRef[]} notifications - The notifications to be saved.\n * @param {SaveNotificationsFn} [saveFn] - Optional custom save function.\n * @returns {Promise<void>} A promise that resolves when the save operation is complete.\n */\nasync function saveNotifications(notifications: NotificationRef[], saveFn?: SaveNotificationsFn): Promise<void> {\n const save = saveFn?.(notifications);\n if (isObservable(save)) {\n await firstValueFrom(save);\n } else if (save instanceof Promise) {\n await save;\n }\n}\n\n/**\n * Configures the application to automatically save notifications using a specified save function.\n * This setup integrates with Angular's environment initialization process to ensure notifications are saved as needed.\n *\n * @param {SaveNotificationsFn} saveFn - The function to save notifications.\n * @returns {NotificationFeature} A notification feature configured to automatically save notifications.\n */\nexport function withSaveNotifications(saveFn: SaveNotificationsFn): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useFactory: () => {\n const injector = Injector.create({ parent: inject(Injector), providers: [] });\n const notificationService = inject(NotificationService);\n const saveFnWithContext: SaveNotificationsFn = (notifications) => runInInjectionContext(injector, () => saveFn(notifications));\n\n return () => {\n notificationService.notifications$.subscribe(({ values }) => saveNotifications(values, saveFnWithContext));\n };\n },\n multi: true,\n },\n ]);\n}\n","import { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { deepmerge } from '@odx/angular/internal';\nimport { isFunction, isString } from '@odx/angular/utils';\nimport { firstValueFrom } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { LoadNotificationsFn, withLoadNotifications } from './with-load-notifications';\nimport { SaveNotificationsFn, withSaveNotifications } from './with-save-notifications';\n\nexport interface NotificationSerializer {\n serialize(value: NotificationRef[]): Promise<string>;\n deserialize(value: string): Promise<NotificationRef[]>;\n}\n\n/**\n * Implementation of NotificationSerializer for persistent storage.\n *\n * @implements {NotificationSerializer}\n */\nexport class PersistentNotificationSerializer implements NotificationSerializer {\n /**\n * Serializes an array of NotificationRef objects into a string.\n *\n * @param {NotificationRef[]} value - The notification references to serialize.\n * @returns {Promise<string>} A promise that resolves to the serialized string representation of notification references.\n */\n public async serialize(value: NotificationRef[]): Promise<string> {\n const serializedNotifications = await Promise.all(\n value.map(async (ref) =>\n deepmerge(ref, {\n item: {\n title: await this.serializeDynamicTextContent(ref.item.title),\n description: await this.serializeDynamicTextContent(ref.item.description),\n },\n }),\n ),\n );\n\n return JSON.stringify(serializedNotifications);\n }\n\n /**\n * Deserializes a string into an array of NotificationRef objects.\n *\n * @param {string} value - The string representation of notification references to deserialize.\n * @returns {Promise<NotificationRef[]>} A promise that resolves to the deserialized notification references.\n */\n public async deserialize(value: string): Promise<NotificationRef[]> {\n return JSON.parse(value);\n }\n\n private async serializeDynamicTextContent(content?: DynamicTextContent): Promise<string> {\n if (!content) return '';\n if (isString(content)) return content;\n\n return firstValueFrom(content).catch(() => '');\n }\n}\n\nexport interface WithPersistentNotificationsStorageOptions {\n storageKey: string;\n storage: Storage;\n serializer: NotificationSerializer;\n idTransformer?: (notificationRef: NotificationRef) => string;\n}\n\nexport interface WithPersistentNotificationsOptions {\n initFn: LoadNotificationsFn;\n saveFn: SaveNotificationsFn;\n storageOptions: WithPersistentNotificationsStorageOptions;\n}\n\n/**\n * Initializes and returns a function for loading persistent notifications.\n *\n * @param {WithPersistentNotificationsStorageOptions} options - The storage options including serializer and storage key.\n * @returns {LoadNotificationsFn} A function to load notifications from storage.\n */\nexport function initPersistentNotifications({\n storage,\n storageKey,\n serializer,\n idTransformer,\n}: WithPersistentNotificationsStorageOptions): LoadNotificationsFn {\n return async () => {\n const storedValue = storage.getItem(storageKey);\n if (!storedValue) return [];\n const notificationRefs = await serializer.deserialize(storedValue);\n\n if (isFunction(idTransformer)) {\n for (const notificationRef of notificationRefs) {\n notificationRef.item.id = notificationRef.id = idTransformer(notificationRef);\n }\n }\n\n return notificationRefs;\n };\n}\n\n/**\n * Returns a function for persisting notifications.\n *\n * @param {WithPersistentNotificationsStorageOptions} options - The storage options including serializer and storage key.\n * @returns {SaveNotificationsFn} A function to save notifications to storage.\n */\nexport function persistNotifications({ storage, storageKey, serializer }: WithPersistentNotificationsStorageOptions): SaveNotificationsFn {\n return async (notificationRefs: NotificationRef[]) => {\n storage.setItem(storageKey, await serializer.serialize(notificationRefs));\n };\n}\n\n/**\n * Configures the application to use persistent notifications, automatically loading from and saving to the configured storage.\n *\n * @param {Partial<WithPersistentNotificationsOptions>} [options] - Optional configuration for persistent notifications.\n * @returns {NotificationFeature} A notification feature configured for persistence.\n */\nexport function withPersistentNotifications(options?: Partial<WithPersistentNotificationsOptions>): NotificationFeature {\n const storageOptions: WithPersistentNotificationsStorageOptions = {\n storageKey: options?.storageOptions?.storageKey ?? '@odx/angular/components/notification::Storage',\n storage: options?.storageOptions?.storage ?? localStorage,\n serializer: options?.storageOptions?.serializer ?? new PersistentNotificationSerializer(),\n };\n const initFn = options?.initFn ?? initPersistentNotifications(storageOptions);\n const saveFn = options?.saveFn ?? persistNotifications(storageOptions);\n\n return makeNotificationFeature([withLoadNotifications(initFn), withSaveNotifications(saveFn)]);\n}\n","import { ENVIRONMENT_INITIALIZER, inject } from '@angular/core';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { NotificationService } from '../notification.service';\nimport { NotificationSerializer, PersistentNotificationSerializer } from './with-peristent-notifications';\n\nexport type BrowserNotificationExtras = Omit<NotificationOptions, 'body' | 'timestamp'>;\nexport type BrowserNotification = Notification;\nexport type BrowserNotificationFactory = (notificationRef: NotificationRef) => BrowserNotification;\nexport type SendBrowserNotificationFn = (notificationRef: NotificationRef) => unknown;\n\nexport interface WithBrowserNotificationsOptions {\n sendFn?: SendBrowserNotificationFn;\n extras?: BrowserNotificationExtras;\n isEnabled?: boolean;\n}\n\n/**\n * Requests permission to display browser notifications and returns a boolean indicating whether permission was granted.\n *\n * @returns {Promise<boolean>} A promise that resolves to `true` if permission is granted, otherwise `false`.\n */\nasync function requestBrowserNotificationPermissions(): Promise<boolean> {\n if (!('Notification' in window)) return false;\n if (Notification.permission === 'granted') return true;\n if (Notification.permission === 'denied') return false;\n const permission = await Notification.requestPermission();\n\n return permission === 'granted';\n}\n\n/**\n * Creates a function responsible for sending out browser notifications with the given options.\n *\n * @param {NotificationSerializer} serializer - The serializer to use for notification data.\n * @param {BrowserNotificationExtras} [options] - Additional options for the browser notification.\n * @returns {SendBrowserNotificationFn} A function to send browser notifications.\n */\nfunction sendBrowserNotification(serializer: NotificationSerializer, options?: BrowserNotificationExtras): SendBrowserNotificationFn {\n return async (notificationRef) => {\n if (!('Notification' in window)) return;\n const [notificationObj] = await serializer.deserialize(await serializer.serialize([notificationRef]));\n if (!notificationObj || notificationObj.hasBeenSeen) return;\n const { createdAt, item } = notificationObj;\n new Notification(item.title as string, {\n tag: notificationRef.options.tags?.[0],\n lang: notificationRef.options.language,\n ...options,\n body: item.description as string,\n timestamp: createdAt,\n });\n };\n}\n\n/**\n * Configures the application to send browser notifications, using Angular's `ENVIRONMENT_INITIALIZER` for setup.\n *\n * @param {WithBrowserNotificationsOptions} [options] - Optional configuration for browser notifications.\n * @returns {NotificationFeature} A notification feature for integration into the application environment.\n */\nexport function withBrowserNotifications(options?: WithBrowserNotificationsOptions): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useFactory: () => {\n const isEnabled = options?.isEnabled ?? true;\n if (!isEnabled) return () => void 0;\n const notificationService = inject(NotificationService);\n const serializer = new PersistentNotificationSerializer();\n const sendBrowserNotificationFn = options?.sendFn ?? sendBrowserNotification(serializer, options?.extras);\n\n return async () => {\n if (!isEnabled) return;\n const permissionsGranted = await requestBrowserNotificationPermissions();\n if (!permissionsGranted) return;\n notificationService.onNotificationAdd$.subscribe(sendBrowserNotificationFn);\n };\n },\n multi: true,\n },\n ]);\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\n\nexport type NotificationTransformFn = (ref: NotificationRef) => Observable<NotificationRef>;\n\n/**\n * An InjectionToken for the NotificationTransformFn. This token can be used to inject\n * a custom notification transformation function into the Angular DI system.\n * @type {InjectionToken<NotificationTransformFn>}\n */\nexport const ODX_NOTIFICATION_TRANSFORMER = new InjectionToken<NotificationTransformFn>('@odx/angular/components/notification::NotificationTransformer');\n\n/**\n * Attempts to inject a NotificationTransformFn from the Angular DI system.\n * If no provider is found, it returns null.\n *\n * @returns {NotificationTransformFn | null} The injected NotificationTransformFn, or null if not provided.\n */\nexport function injectNotificationTransform(): NotificationTransformFn | null {\n return inject(ODX_NOTIFICATION_TRANSFORMER, { optional: true });\n}\n\n/**\n * Configures a notification transformation function to be used within the application.\n * This function provides a mechanism to globally apply transformations to notifications\n * before they are processed or displayed.\n *\n * @param {NotificationTransformFn} transformFn - The function to transform notifications.\n * @returns {NotificationFeature} A NotificationFeature configured with the provided transformation function.\n */\nexport function withNotificationTransform(transformFn: NotificationTransformFn): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ODX_NOTIFICATION_TRANSFORMER,\n useValue: transformFn,\n },\n ]);\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { AvatarComponent } from '@odx/angular/components/avatar';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { Observable, of } from 'rxjs';\nimport { injectNotificationTransform } from '../../features';\nimport { NotificationRef } from '../../models';\n\n/**\n * A component for displaying notifications.\n * Supports customization through dynamic transformation of notification data.\n * Utilizes the OnPush change detection strategy for better performance in large applications.\n */\n@CSSComponent('notification-item')\n@Component({\n selector: 'odx-notification-item',\n standalone: true,\n imports: [AvatarComponent, ActionGroupComponent, ButtonComponent, CommonModule, DynamicViewDirective, IconComponent],\n templateUrl: './notification-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NotificationItemComponent {\n private readonly transformNotification = injectNotificationTransform();\n private _notificationRef!: NotificationRef;\n\n protected transformedNotification!: Observable<NotificationRef>;\n\n public readonly element = injectElement();\n\n /**\n * Input property to set the notification. On setting, it transforms the notification for display.\n * This transformation can be a custom logic provided through dependency injection.\n *\n * @param {NotificationRef} value - The notification object to be displayed.\n */\n @Input({ required: true })\n public set notification(value: NotificationRef) {\n this._notificationRef = value;\n this.transformedNotification = this.transformNotification?.(value) ?? of(value);\n }\n\n /**\n * Getter for the notification property.\n *\n * @returns {NotificationRef} - The current notification reference stored in the component.\n */\n public get notification() {\n return this._notificationRef;\n }\n\n /**\n * An event emitter for dismissing the notification.\n * It emits the notification reference that was dismissed.\n *\n * @emits {NotificationRef} - The notification reference that was dismissed.\n */\n @Output()\n public dismiss = new EventEmitter<NotificationRef>();\n}\n","<ng-template [ngIf]=\"transformedNotification | async\" let-ref>\n <odx-avatar class=\"odx-notification-item__avatar odx-no-margin\">\n <odx-icon [identifier]=\"ref.options.icon\" />\n </odx-avatar>\n <div class=\"odx-notification-item__title\">\n <ng-template [odxDynamicView]=\"ref.item.title\" />\n </div>\n <div class=\"odx-notification-item__description\" *ngIf=\"ref.item.description as description\">\n <ng-template [odxDynamicView]=\"ref.item.description\" />\n </div>\n</ng-template>\n<odx-action-group class=\"odx-notification-item__actions odx-no-margin\">\n <button odxButton class=\"odx-no-margin\" (click)=\"dismiss.next(notification)\" *ngIf=\"notification.options.dismissable\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n</odx-action-group>\n","import { transition, trigger, useAnimation } from '@angular/animations';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnDestroy, ViewEncapsulation, inject } from '@angular/core';\nimport { LetDirective } from '@ngrx/component';\nimport { collapse } from '@odx/angular/animations';\nimport { InteractiveDirective } from '@odx/angular/cdk/a11y';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { BadgeDirective } from '@odx/angular/components/badge';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { DropdownModule } from '@odx/angular/components/dropdown';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { ListModule } from '@odx/angular/components/list';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { TranslatePipe, provideTranslations } from '@odx/angular/internal/translate';\nimport { injectElement, trackById } from '@odx/angular/utils';\nimport { NotificationRef } from '../../models';\nimport notificationI18n from '../../notification.i18n';\nimport { NotificationCenterService } from '../../services';\nimport { NotificationItemComponent } from '../notification-item/notification-item.component';\n\n/**\n * A component for displaying and managing a list of notifications. It integrates various sub-components and directives to provide a rich user interface for notification interaction. Supports animations for notification transitions and leverages Angular's change detection strategies for performance.\n */\n@CSSComponent('notification-center')\n@Component({\n selector: 'odx-notification-center',\n standalone: true,\n imports: [\n CommonModule,\n LetDirective,\n ActionGroupComponent,\n BadgeDirective,\n ButtonComponent,\n DynamicViewDirective,\n IconComponent,\n DropdownModule,\n TranslatePipe,\n NotificationItemComponent,\n InteractiveDirective,\n ListModule,\n ],\n templateUrl: './notification-center.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideTranslations(notificationI18n)],\n animations: [trigger('notificationAnimation', [transition(':leave', useAnimation(collapse, { delay: 150 }))])],\n})\nexport class NotificationCenterComponent implements OnDestroy {\n protected readonly notificationCenterService = inject(NotificationCenterService);\n protected readonly trackById = trackById;\n\n public readonly element = injectElement();\n\n public ngOnDestroy(): void {\n this.notificationCenterService.markAllAsSeen();\n }\n\n protected isMuted({ options, hasBeenSeen }: NotificationRef): boolean {\n return hasBeenSeen && !options.action;\n }\n}\n","<ng-template [ngIf]=\"notificationCenterService.notifications$ | async\" let-notifications>\n <h3 class=\"odx-notification-center__header\">\n <ng-template [odxDynamicView]=\"(notificationCenterService.title$ | async) ?? ('title' | odxTranslate | async)\"></ng-template>\n </h3>\n <odx-list class=\"odx-notification-center__content\">\n <odx-list-item\n @notificationAnimation\n [muted]=\"isMuted(notification)\"\n [selected]=\"!notification.hasBeenSeen\"\n (click)=\"notificationCenterService.executeAction(notification)\"\n *ngFor=\"let notification of notifications.values; trackBy: trackById\"\n >\n <odx-notification-item [notification]=\"notification\" (dismiss)=\"notificationCenterService.dismiss(notification)\" />\n </odx-list-item>\n </odx-list>\n <div class=\"odx-notification-center__footer\">\n <button odxButton [disabled]=\"false\" (click)=\"notificationCenterService.dismissAll()\">\n {{ 'dismissAll' | odxTranslate | async }}\n </button>\n </div>\n</ng-template>\n","import { AfterViewInit, DestroyRef, Directive, Input, OnInit, Output, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DisabledController } from '@odx/angular';\nimport { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { BadgeDirective } from '@odx/angular/components/badge';\nimport { DropdownDirective } from '@odx/angular/components/dropdown';\nimport { Position } from '@odx/angular/utils';\nimport { Observable, map, merge, startWith, switchMap, tap } from 'rxjs';\nimport { NotificationCenterComponent } from '../components';\nimport { NotificationSortFn } from '../models';\nimport { NotificationCenterService } from '../services';\n\n/**\n * A directive that provides an interface for managing notifications.\n * It allows configuring a notification center with dynamic content, sorting, and badge display functionalities.\n * The directive has hosted directives `BadgeDirective` and `DropdownDirective` for badge and dropdown functionality.\n *\n * @see {BadgeDirective}\n * @see {DropdownDirective}\n */\n@Directive({\n standalone: true,\n selector: '[odxNotificationCenter]',\n hostDirectives: [{ directive: BadgeDirective, inputs: ['odxBadgeVariant:odxNotificationCenterBadgeVariant'] }, DropdownDirective],\n providers: [NotificationCenterService],\n})\nexport class NotificationCenterDirective implements OnInit, AfterViewInit {\n private readonly badgeDirective = inject(BadgeDirective, { self: true });\n private readonly destroyRef = inject(DestroyRef);\n private readonly disabledController = DisabledController.inject();\n private readonly dropdownDirective = inject(DropdownDirective, { self: true });\n private readonly notificationCenterService = inject(NotificationCenterService, { self: true });\n private readonly dropdownStateChange$ = merge(this.dropdownDirective.beforeOpen, this.dropdownDirective.beforeClose).pipe(startWith(void 0));\n private readonly badgeValue$ = this.notificationCenterService.unseenNotifications$.pipe(\n switchMap(({ count }) => this.dropdownStateChange$.pipe(map(() => this.formatBadgeValue(count)))),\n );\n\n /**\n * Sets the tag for filtering notifications. Only notifications with this tag will be shown in the notification center.\n *\n * @param {string | null} value - The tag value to filter notifications. If null, all notifications are shown.\n */\n @Input('odxNotificationCenter')\n public set tag(value: string | null) {\n this.notificationCenterService.setTag(value);\n }\n\n /**\n * Sets the title of the notification center. The title can be dynamic and change based on the application state.\n *\n * @param {DynamicTextContent | null} value - The title content, which can be a string or an Observable returning a string. Allows for dynamic titles.\n */\n @Input('odxNotificationCenterTitle')\n public set title(value: DynamicTextContent | null) {\n this.notificationCenterService.setTitle(value);\n }\n\n /**\n * Sets the sorting function used to order notifications within the notification center.\n *\n * @param {NotificationSortFn} value - A function that compares two notifications and returns the sort order.\n *\n * @example\n * ```ts\n * sortFfn = (a: NotificationRef, b: NotificationRef) => {\n * if (a.createdAt < b.createdAt) return -1;\n * if (a.createdAt > b.createdAt) return 1;\n * return 0;\n * };\n * ```\n */\n @Input('odxNotificationCenterSortFn')\n public set sortFn(value: NotificationSortFn) {\n this.notificationCenterService.setSortFn(value);\n }\n\n /**\n * An event that is emitted when a new notification is added.\n * Listeners can use this event to react to new notifications being added to the notification center.\n *\n * @emits {NotificationRef} notificationAdd - The notification that was added to the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterAdd')\n public notificationAdd = this.notificationCenterService.onNotificationAdd$;\n\n /**\n * An event that is emitted when a notification is updated.\n * This can be used to react to changes in notifications, such as their read status or content updates.\n *\n * @emits {NotificationRef} notificationUpdate - The notification that was updated in the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterUpdate')\n public notificationUpdate = this.notificationCenterService.onNotificationUpdate$;\n\n /**\n * An event that is emitted when a notification is removed from the notification center.\n * Use this event to handle the removal of notifications, such as cleaning up resources or updating UI elements.\n *\n * @emits {NotificationRef} notificationRemove - The notification that was removed from the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterRemove')\n public notificationRemove = this.notificationCenterService.onNotificationRemove$;\n\n /**\n * An event that is emitted when a notification is marked as seen.\n * This event can be used to perform actions when the user acknowledges a notification.\n *\n * @emits {NotificationRef} notificationSeen - The notification that was marked as seen in the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterSeen')\n public notificationSeen = this.notificationCenterService.onNotificationSeen$;\n\n public ngOnInit() {\n this.badgeDirective.position = Position.BOTTOM;\n this.badgeDirective.offset = 6;\n\n this.dropdownDirective.content = NotificationCenterComponent;\n this.dropdownDirective.options = {\n containerClass: 'odx-notification-center-overlay',\n position: Position.BOTTOM_END,\n enableFallback: false,\n };\n }\n\n public ngAfterViewInit() {\n merge(this.handleBadgeUpdates(), this.handleDropdownUpdates()).pipe(takeUntilDestroyed(this.destroyRef)).subscribe();\n }\n\n private formatBadgeValue(value: number): string | null {\n return this.dropdownDirective.isOpen || value === 0 ? null : value.toFixed(0);\n }\n\n private handleBadgeUpdates(): Observable<unknown> {\n return this.badgeValue$.pipe(\n tap((value: DynamicTextContent | null) => {\n this.badgeDirective.value = value as DynamicTextContent;\n this.badgeDirective.ngOnChanges();\n }),\n );\n }\n\n private handleDropdownUpdates(): Observable<unknown> {\n return this.notificationCenterService.notifications$.pipe(\n tap(({ isEmpty }) => {\n this.disabledController?.setDisabledState(isEmpty);\n if (!isEmpty) return;\n this.dropdownDirective.close();\n }),\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uBAAe;AACb,IAAA,EAAE,EAAE;AACF,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,UAAU,EAAE,aAAa;AAC1B,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,KAAK,EAAE,oBAAoB;AAC3B,QAAA,UAAU,EAAE,gBAAgB;AAC7B,KAAA;CACmB;;ACTtB;AACgB,SAAA,sBAAsB,CAAC,GAAG,IAAsC,EAAA;AAC9E,IAAA,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AAEjD,IAAA,OAAO,CAAC,EAAE,OAAO,EAAE,KAAI;QACrB,OAAO,UAAU,CAAC,IAAI,GAAG,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AACjF,KAAC,CAAC;AACJ;;ACLA;AACM,SAAU,iBAAiB,CAAC,MAA2B,EAAA;AAC3D,IAAA,OAAO,CAAC,OAAO,KACb,OAAO,CAAC,IAAI,CACV,GAAG,CAAC,CAAC,MAAM,KAAI;AACb,QAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAAE,OAAO;AAChC,QAAA,MAAM,C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A6B,CAAA;gBAW9B,kBAAkB,EAAA,CAAA;sBADxB,MAAM;uBAAC,6BAA6B,CAAA;gBAW9B,gBAAgB,EAAA,CAAA;sBADtB,MAAM;uBAAC,2BAA2B,CAAA;;;ACjHrC;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-notification.mjs","sources":["../../../../libs/angular/components/notification/src/lib/notification.i18n.ts","../../../../libs/angular/components/notification/src/lib/helpers/get-notifications-by-tag.ts","../../../../libs/angular/components/notification/src/lib/helpers/sort-notifications.ts","../../../../libs/angular/components/notification/src/lib/helpers/to-notification-collection.ts","../../../../libs/angular/components/notification/src/lib/notification.config.ts","../../../../libs/angular/components/notification/src/lib/notification.logger.ts","../../../../libs/angular/components/notification/src/lib/notification.tokens.ts","../../../../libs/angular/components/notification/src/lib/notification.service.ts","../../../../libs/angular/components/notification/src/lib/services/notification-center.service.ts","../../../../libs/angular/components/notification/src/lib/models/notification-feature.ts","../../../../libs/angular/components/notification/src/lib/features/with-load-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-save-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-peristent-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-browser-notifications.ts","../../../../libs/angular/components/notification/src/lib/features/with-notification-transformer.ts","../../../../libs/angular/components/notification/src/lib/components/notification-item/notification-item.component.ts","../../../../libs/angular/components/notification/src/lib/components/notification-item/notification-item.component.html","../../../../libs/angular/components/notification/src/lib/components/notification-center/notification-center.component.ts","../../../../libs/angular/components/notification/src/lib/components/notification-center/notification-center.component.html","../../../../libs/angular/components/notification/src/lib/directives/notification-center.directive.ts","../../../../libs/angular/components/notification/src/odx-angular-components-notification.ts"],"sourcesContent":["import { TranslationObject } from '@odx/angular/internal/translate';\n\nexport default {\n en: {\n title: 'Notifications',\n dismissAll: 'Dismiss all',\n },\n de: {\n title: 'Benachrichtigungen',\n dismissAll: 'Alle entfernen',\n },\n} as TranslationObject;\n","import { NotificationQuery } from '../models';\n\n/** @internal */\nexport function getNotificationsByTags(...tags: Array<string | null | undefined>): NotificationQuery {\n const cachedTags = new Set(tags.filter(Boolean));\n\n return ({ options }) => {\n return cachedTags.size < 1 || options.tags.every((tag) => cachedTags.has(tag));\n };\n}\n","import { isFunction } from '@odx/angular/utils';\nimport { MonoTypeOperatorFunction, tap } from 'rxjs';\nimport { NotificationRef, NotificationSortFn } from '../models';\n\n/** @internal */\nexport function sortNotifications(sortFn?: NotificationSortFn): MonoTypeOperatorFunction<NotificationRef[]> {\n return (source$) =>\n source$.pipe(\n tap((values) => {\n if (!isFunction(sortFn)) return;\n values.sort(sortFn);\n }),\n );\n}\n","import { OperatorFunction, map } from 'rxjs';\nimport { NotificationCollection, NotificationRef } from '../models';\n\n/** @internal */\nexport function toNotificationCollection(): OperatorFunction<NotificationRef[], NotificationCollection> {\n return (source$) =>\n source$.pipe(\n map((notificationRefs) => ({\n values: notificationRefs,\n count: notificationRefs.length,\n isEmpty: notificationRefs.length === 0,\n })),\n );\n}\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { createConfigTokens, orderBy } from '@odx/angular/utils';\nimport { NotificationAction, NotificationFeature, NotificationOptions, NotificationRef, NotificationSortFn } from './models';\n\n/**\n * Represents the configuration options for notifications within the application.\n * This interface allows customization of various aspects of notification behavior.\n *\n * @property {string} defaultIdPrefix - Prefix used for generating unique notification IDs.\n * @property {NotificationOptions} options - Default global options for all notifications.\n * @property {NotificationSortFn} sortFn - Function to sort notifications, aiding in prioritization or ordering.\n * @property {Record<string, string>} [tagToIconMap] - Maps notification tags to specific icons for visual differentiation.\n * @property {Record<string, NotificationAction>} [actionMap] - Maps action types to their respective handler functions, enabling custom actions.\n */\nexport interface NotificationConfig {\n defaultIdPrefix: string;\n options: NotificationOptions;\n sortFn: NotificationSortFn;\n tagToIconMap?: Record<string, string>;\n actionMap?: Record<string, NotificationAction>;\n}\n\n/**\n * Generates and exports configuration tokens for notifications, utilizing Angular's dependency injection.\n * This function provides a structured approach to configuring and providing notification settings across\n * an application.\n *\n * @example\n * ```ts\n * // In module providers:\n * providers: [\n * provideNotificationConfig({\n * defaultIdPrefix: 'your-prefix-notifications', // will be used as id prefix for notification items\n * options: NotificationOptions, // { icon: 'core::globe', tags: [], dismissable: true } by default\n * sortFn: (a: NotificationRef, b: NotificationRef) => b.createdAt.localeCompare(a.createdAt), // default sort function\n * tagToIconMap: { message: 'core::mail' }, // custom icon for message tag (default is core::globe)\n * actionMap: { view: (notification) => { console.log(notification); } } // custom action handler\n * })\n * ]\n *\n * // In component or service:\n * constructor(@Inject(NotificationConfig) private notificationConfig: NotificationConfig) {...}\n * ```\n */\nexport const { NotificationConfig, NotificationDefaultConfig, injectNotificationConfig, provideNotificationConfig } = createConfigTokens(\n 'Notification',\n '@odx/angular/components/notification',\n {\n options: { icon: 'core::globe', tags: [], dismissable: true },\n sortFn: orderBy<NotificationRef>('createdAt', 'DESC'),\n defaultIdPrefix: 'odx-notifications',\n } as NotificationConfig,\n);\n\n/**\n * Constructs and provides Angular environment providers for notifications based on provided configurations and features.\n * Ideal for setting up notifications at the application's top level, ensuring global availability and configurability.\n *\n * @param {Partial<NotificationConfig>} [config] - Optional configuration overrides.\n * @param {...NotificationFeature[]} features - Features to enhance the notification system.\n * @returns {EnvironmentProviders} Configured providers ready for integration into Angular's environment.\n *\n * @example\n * ```ts\n * // In module providers:\n * providers: [\n * provideNotifications({\n * config, // NotificationConfig\n * },\n * {\n * withBrowserNotifications({...}), // NotificationFeature\n * },\n * )\n * ]\n * ```\n */\nexport function provideNotifications(config?: Partial<NotificationConfig>, ...features: NotificationFeature[]): EnvironmentProviders {\n return makeEnvironmentProviders([provideNotificationConfig(config ?? {}), features]);\n}\n","import { Logger } from '@odx/angular/internal';\n\n/** @internal */\nexport default new Logger('@odx/angular/components/notification');\n","import { InjectionToken } from '@angular/core';\nimport { Queue } from '@odx/angular/utils';\nimport { NotificationRef } from './models';\n\n/**\n * Represents the injection token for the notification queue.\n */\nexport const ODX_NOTIFICATION_QUEUE = new InjectionToken<Queue<NotificationRef>>('@odx/angular/component/notifications::Queue', {\n providedIn: 'root',\n factory: () => new Queue(),\n});\n","import { Injectable, Injector, inject, runInInjectionContext } from '@angular/core';\nimport { deepmerge } from '@odx/angular/internal';\nimport { LocalizationService } from '@odx/angular/localization';\nimport { getUniqueId, isFunction } from '@odx/angular/utils';\nimport { Observable, filter, map, shareReplay } from 'rxjs';\nimport { sortNotifications, toNotificationCollection } from './helpers';\nimport { Notification, NotificationCollection, NotificationOptions, NotificationQuery, NotificationRef, NotificationSortFn } from './models';\nimport { injectNotificationConfig } from './notification.config';\nimport logger from './notification.logger';\nimport { ODX_NOTIFICATION_QUEUE } from './notification.tokens';\n\n/**\n * The `NotificationService` class provides methods for managing notifications.\n * It allows you to create, load, dismiss, mark as seen, and execute actions on notifications.\n * You can also fetch notifications based on specific queries and sort them using custom sort functions.\n */\n@Injectable({ providedIn: 'root' })\nexport class NotificationService {\n private readonly config = injectNotificationConfig();\n private readonly localizationService = inject(LocalizationService);\n private readonly queue = inject(ODX_NOTIFICATION_QUEUE);\n private readonly injector = inject(Injector);\n\n /**\n * An observable stream of all notifications in the queue, sorted by the configured sort function.\n *\n * @emits {NotificationCollection} A collection of notifications.\n */\n public readonly notifications$ = this.queue.value$.pipe(\n sortNotifications(this.config.sortFn),\n toNotificationCollection(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * An observable stream of all unseen notifications in the queue.\n * Unseen notifications are those that have not been marked as seen.\n *\n * @emits {NotificationCollection} A collection of unseen notifications.\n */\n public readonly unseenNotifications$ = this.notifications$.pipe(\n map((collection) => collection.values.filter(({ hasBeenSeen }) => !hasBeenSeen)),\n toNotificationCollection(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * An observable stream of all seen notifications in the queue.\n * Seen notifications are those that have been marked as seen.\n *\n * @emits {NotificationCollection} A collection of seen notifications.\n */\n public readonly onNotificationAdd$ = this.queue.onAdd$;\n\n /**\n * An observable stream of notifications that have been removed from the queue.\n *\n * @emits {NotificationCollection} A collection of removed notifications.\n */\n public readonly onNotificationRemove$ = this.queue.onRemove$;\n\n /**\n * An observable stream of notifications that have been updated in the queue.\n *\n * @emits {NotificationCollection} A collection of updated notifications.\n */\n public readonly onNotificationUpdate$ = this.queue.onUpdate$;\n\n /**\n * An observable stream of notifications that have been marked as seen.\n *\n * @emits {NotificationCollection} A collection of seen notifications.\n */\n public readonly onNotificationSeen$ = this.queue.onUpdate$.pipe(filter(({ hasBeenSeen }) => hasBeenSeen));\n\n /**\n * Fetches notifications filtered by a specified query and optionally sorted by a custom sort function.\n *\n * @param {NotificationQuery} query - A function or object to filter notifications.\n * @param {NotificationSortFn} [sortFn] - An optional sorting function to order the filtered notifications.\n * @returns {Observable<NotificationCollection>} An observable stream of the filtered (and optionally sorted) notification collection.\n * @example\n * ```ts\n * // Fetch notifications with a specific tag, sorted by creation date\n * const sortedNotifications$ = notificationService.getNotificationsBy$(\n * notification => notification.tags.includes('important'),\n * (a, b) => b.createdAt - a.createdAt\n * );\n * ```\n */\n public getNotificationsBy$(query: NotificationQuery, sortFn?: NotificationSortFn): Observable<NotificationCollection> {\n return this.queue.value$.pipe(\n map((notifications) => notifications.filter(query)),\n sortNotifications(sortFn),\n toNotificationCollection(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n }\n\n /**\n * Loads a list of notifications into the service.\n *\n * @param {NotificationRef[]} refs - An array of notification references to be loaded.\n * @example\n * ```ts\n * // Load multiple notifications at once\n * notificationService.load([\n * { id: '1', item: { title: 'Notification 1' }, options: {dismissable: true, icon: 'plus', tags: ['important']}, hasBeenSeen: false, createdAt: Date.now() },\n * { id: '2', item: { title: 'Notification 2' }, options: {dismissable: true, icon: 'plus', tags: ['important']}, hasBeenSeen: false, createdAt: Date.now() }\n * ]);\n * ```\n */\n public load(refs: NotificationRef[]): void {\n this.queue.addMany(refs);\n }\n\n /**\n * Creates a new notification and adds it to the notification queue.\n *\n * @param {Notification} item - The notification to create.\n * @param {Partial<NotificationOptions>} [options] - Optional settings for the notification.\n * @example\n * ```ts\n * // Create a new notification with custom options\n * notificationService.create(\n * { title: 'New Notification' },\n * { dismissable: true, icon: 'plus', tags: ['important'] }\n * );\n * ```\n */\n public create(item: Notification, options?: Partial<NotificationOptions>): void {\n this.queue.add({\n id: item.id ?? getUniqueId(this.config.defaultIdPrefix),\n createdAt: Date.now(),\n item,\n options: this.resolveOptions(options),\n hasBeenSeen: false,\n });\n }\n\n /**\n * Marks a specific notification as seen.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to mark as seen.\n * @example\n * ```ts\n * // Mark a notification as seen by its reference\n * notificationService.markAsSeen(notificationRef);\n * ```\n */\n public markAsSeen(notificationRef: NotificationRef): void {\n if (notificationRef.hasBeenSeen) return;\n this.queue.add({ ...notificationRef, hasBeenSeen: true });\n }\n\n /**\n * Marks all notifications that match a specific query as seen.\n *\n * @param {NotificationQuery} query - The query to match notifications to mark as seen.\n * @example\n * ```ts\n * // Mark all notifications with a specific tag as seen\n * notificationService.markAsSeenBy(notification => notification.tags.includes('important'));\n * ```\n */\n public markAsSeenBy(query: NotificationQuery): void {\n for (const notificationRef of this.queue.toArray().filter(query)) {\n this.markAsSeen(notificationRef);\n }\n }\n\n /**\n * Dismisses a specific notification.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to dismiss.\n * @example\n * ```ts\n * // Dismiss a notification by its reference\n * notificationService.dismiss(notificationRef);\n * ```\n */\n public dismiss(notificationRef: NotificationRef): void {\n if (!notificationRef.options.dismissable) return;\n this.queue.remove(notificationRef);\n }\n\n /**\n * Dismisses all notifications that match a specific query.\n *\n * @param {NotificationQuery} query - The query to match notifications to dismiss.\n * @example\n * ```ts\n * // Dismiss all notifications with a specific tag\n * notificationService.dismissBy(notification => notification.tags.includes('expired'));\n * ```\n */\n public dismissBy(query: NotificationQuery): void {\n for (const item of this.queue.toArray().filter(query)) {\n this.dismiss(item);\n }\n }\n\n /**\n * Dismisses all notifications.\n *\n * @example\n * ```ts\n * // Dismiss all notifications\n * notificationService.dismissAll();\n * ```\n */\n public dismissAll(): void {\n this.queue.clear();\n }\n\n /**\n * Executes the action associated with a specific notification.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification whose action to execute.\n * @example\n * ```ts\n * // Execute action for a notification\n * notificationService.executeAction(notificationRef);\n * ```\n */\n public executeAction(notificationRef: NotificationRef): void {\n if (!notificationRef.options.action) return;\n const actionFn = this.config.actionMap?.[notificationRef.options.action];\n if (!isFunction(actionFn)) {\n logger.warn(`Cannot find action ${notificationRef.options.action} for notification reference: ${notificationRef}`);\n return;\n }\n runInInjectionContext(this.injector, () => actionFn(notificationRef));\n }\n\n private resolveOptions(options?: Partial<NotificationOptions>): NotificationOptions {\n return deepmerge(this.config.options, options ?? {}, {\n icon: options?.icon ?? this.config.tagToIconMap?.[options?.tags?.[0] ?? ''] ?? this.config.options.icon,\n language: options?.language ?? this.localizationService.getActiveLanguage(),\n }) as NotificationOptions;\n }\n}\n","import { Injectable, computed, inject, signal } from '@angular/core';\nimport { toObservable } from '@angular/core/rxjs-interop';\nimport { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { Observable, combineLatest, filter, isObservable, map, of, shareReplay, switchMap } from 'rxjs';\nimport { getNotificationsByTags, toNotificationCollection } from '../helpers';\nimport { NotificationRef, NotificationSortFn } from '../models';\nimport { NotificationService } from '../notification.service';\n\n/**\n * A service for managing the notification center. This service provides functionalities\n * to filter, sort, and manage actions on notifications.\n *\n * @internal\n */\n@Injectable()\nexport class NotificationCenterService {\n private readonly currentTag = signal<string | null>(null);\n private readonly currentSortFn = signal<NotificationSortFn>(undefined);\n private readonly notificationService = inject(NotificationService);\n private readonly notificationQuery = computed(() => getNotificationsByTags(this.currentTag()));\n private readonly title = signal<DynamicTextContent | null>(null);\n\n /** @internal */\n public readonly title$ = toObservable(this.title).pipe(\n switchMap((title) => (isObservable(title) ? title : of(title))),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /** @internal */\n public readonly notifications$ = combineLatest([toObservable(this.notificationQuery), toObservable(this.currentSortFn)]).pipe(\n switchMap(([query, sortFn]) => this.notificationService.getNotificationsBy$(query, sortFn)),\n );\n\n /** @internal */\n public readonly unseenNotifications$ = this.notifications$.pipe(\n map((collection) => collection.values.filter(({ hasBeenSeen }) => !hasBeenSeen)),\n toNotificationCollection(),\n );\n\n /** @internal */\n public onNotificationAdd$ = this.queryEvent(this.notificationService.onNotificationAdd$);\n\n /** @internal */\n public onNotificationUpdate$ = this.queryEvent(this.notificationService.onNotificationUpdate$);\n\n /** @internal */\n public onNotificationRemove$ = this.queryEvent(this.notificationService.onNotificationRemove$);\n\n /** @internal */\n public onNotificationSeen$ = this.queryEvent(this.notificationService.onNotificationSeen$);\n\n /**\n * Sets the title for the notification center. The title can be static text or an observable for dynamic content.\n *\n * @param {DynamicTextContent | null} [value] - The title content for the notification center.\n */\n public setTitle(value?: DynamicTextContent | null): void {\n this.title.set(value ?? null);\n }\n\n /**\n * Sets the current tag to filter notifications. Only notifications with this tag will be included.\n *\n * @param {string | null} [value] - The tag to filter notifications by.\n */\n public setTag(value?: string | null): void {\n this.currentTag.set(value ?? null);\n }\n\n /**\n * Sets the sort function used to order the notifications.\n *\n * @param {NotificationSortFn} [value] - The sort function to apply to the notifications.\n */\n public setSortFn(value?: NotificationSortFn): void {\n this.currentSortFn.set(value);\n }\n\n /**\n * Marks a given notification as seen. This does not remove the notification but updates its seen status.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to be marked as seen.\n */\n public markAsSeen(notificationRef: NotificationRef): void {\n this.notificationService.markAsSeen(notificationRef);\n }\n\n /**\n * Marks all current filtered notifications as seen.\n */\n public markAllAsSeen(): void {\n this.notificationService.markAsSeenBy(this.notificationQuery());\n }\n\n /**\n * Dismisses a specific notification.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification to dismiss.\n */\n public dismiss(notificationRef: NotificationRef): void {\n this.notificationService.dismiss(notificationRef);\n }\n\n /**\n * Dismisses all notifications that match the current filter criteria.\n */\n public dismissAll(): void {\n this.notificationService.dismissBy(this.notificationQuery());\n }\n\n /**\n * Executes the action associated with a specific notification and marks it as seen.\n *\n * @param {NotificationRef} notificationRef - The reference to the notification whose action to execute.\n */\n public executeAction(notificationRef: NotificationRef): void {\n this.markAsSeen(notificationRef);\n this.notificationService.executeAction(notificationRef);\n }\n\n private queryEvent(source$: Observable<NotificationRef>): Observable<NotificationRef> {\n return combineLatest([source$, toObservable(this.notificationQuery)]).pipe(\n filter(([notificationRef, query]) => query(notificationRef)),\n map(([notificationRef]) => notificationRef),\n );\n }\n}\n","import { EnvironmentProviders, Provider } from '@angular/core';\n\nexport type NotificationFeature = EnvironmentProviders & { ɵodxBrand: '@odx/angular/components/notification::NotificationFeature' };\n\n/**\n * Creates a `NotificationFeature` instance from a given provider or a set of environment providers.\n * This function is a utility to encapsulate providers into a feature for the notification system, enhancing its configurability.\n *\n * @param {(Provider | NotificationFeature)[] | EnvironmentProviders} provider - A single provider, an array of providers, or an environment providers object.\n * @returns {NotificationFeature} A new `NotificationFeature` encapsulating the provided values.\n *\n * @example\n * ```ts\n * // Creating a notification feature:\n * const feature = makeNotificationFeature([\n * { provide: SomeService, useClass: SomeServiceImpl }\n * ]);\n * ```\n */\nexport function makeNotificationFeature(provider: (Provider | NotificationFeature)[] | EnvironmentProviders): NotificationFeature {\n return provider as never as NotificationFeature;\n}\n","import { ENVIRONMENT_INITIALIZER, inject } from '@angular/core';\nimport { Observable, from, isObservable, of } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { NotificationService } from '../notification.service';\n\n/**\n * Type definition for a function that loads notifications.\n * Can return notifications directly as an array, as a Promise, or as an Observable.\n *\n * @typedef {Function} LoadNotificationsFn\n * @returns {Observable<NotificationRef[]> | Promise<NotificationRef[]> | NotificationRef[]} The loaded notifications.\n */\nexport type LoadNotificationsFn = () => Observable<NotificationRef[]> | Promise<NotificationRef[]> | NotificationRef[];\n\n/**\n * Loads notifications using the provided `loadFn`. This function abstracts over the differences\n * between synchronous notifications, promises, and observables, providing a uniform Observable output.\n *\n * @param {LoadNotificationsFn} [loadFn] - An optional function to load notifications.\n * @returns {Observable<NotificationRef[]>} An Observable stream of notification references.\n */\nfunction loadNotifications(loadFn?: LoadNotificationsFn): Observable<NotificationRef[]> {\n const notifications = loadFn?.();\n if (isObservable(notifications)) {\n return notifications;\n }\n if (notifications instanceof Promise) {\n return from(notifications);\n }\n return of(notifications ?? []);\n}\n\n/**\n * Integrates notification loading into the application environment. This function uses the Angular\n * `ENVIRONMENT_INITIALIZER` to ensure that notifications are loaded as part of the application's\n * initialization process.\n *\n * @param {LoadNotificationsFn} loadFn - The function to load notifications.\n * @returns {NotificationFeature} A notification feature configured to load notifications at startup.\n */\nexport function withLoadNotifications(loadFn: LoadNotificationsFn): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useFactory: () => {\n const notificationService = inject(NotificationService);\n const notifications$ = loadNotifications(loadFn);\n\n return () => {\n notifications$.subscribe((notificationRefs) => notificationService.load(notificationRefs));\n };\n },\n multi: true,\n },\n ]);\n}\n","import { ENVIRONMENT_INITIALIZER, Injector, inject, runInInjectionContext } from '@angular/core';\nimport { Observable, firstValueFrom, isObservable } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { NotificationService } from '../notification.service';\n\nexport type SaveNotificationsFn = (notificationRefs: NotificationRef[]) => Observable<void> | Promise<void> | void;\n\n/**\n * Asynchronously saves notifications using the provided save function. It handles Observable and Promise results seamlessly.\n *\n * @param {NotificationRef[]} notifications - The notifications to be saved.\n * @param {SaveNotificationsFn} [saveFn] - Optional custom save function.\n * @returns {Promise<void>} A promise that resolves when the save operation is complete.\n */\nasync function saveNotifications(notifications: NotificationRef[], saveFn?: SaveNotificationsFn): Promise<void> {\n const save = saveFn?.(notifications);\n if (isObservable(save)) {\n await firstValueFrom(save);\n } else if (save instanceof Promise) {\n await save;\n }\n}\n\n/**\n * Configures the application to automatically save notifications using a specified save function.\n * This setup integrates with Angular's environment initialization process to ensure notifications are saved as needed.\n *\n * @param {SaveNotificationsFn} saveFn - The function to save notifications.\n * @returns {NotificationFeature} A notification feature configured to automatically save notifications.\n */\nexport function withSaveNotifications(saveFn: SaveNotificationsFn): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useFactory: () => {\n const injector = Injector.create({ parent: inject(Injector), providers: [] });\n const notificationService = inject(NotificationService);\n const saveFnWithContext: SaveNotificationsFn = (notifications) => runInInjectionContext(injector, () => saveFn(notifications));\n\n return () => {\n notificationService.notifications$.subscribe(({ values }) => saveNotifications(values, saveFnWithContext));\n };\n },\n multi: true,\n },\n ]);\n}\n","import { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { deepmerge } from '@odx/angular/internal';\nimport { isFunction, isString } from '@odx/angular/utils';\nimport { firstValueFrom } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { LoadNotificationsFn, withLoadNotifications } from './with-load-notifications';\nimport { SaveNotificationsFn, withSaveNotifications } from './with-save-notifications';\n\nexport interface NotificationSerializer {\n serialize(value: NotificationRef[]): Promise<string>;\n deserialize(value: string): Promise<NotificationRef[]>;\n}\n\n/**\n * Implementation of NotificationSerializer for persistent storage.\n *\n * @implements {NotificationSerializer}\n */\nexport class PersistentNotificationSerializer implements NotificationSerializer {\n /**\n * Serializes an array of NotificationRef objects into a string.\n *\n * @param {NotificationRef[]} value - The notification references to serialize.\n * @returns {Promise<string>} A promise that resolves to the serialized string representation of notification references.\n */\n public async serialize(value: NotificationRef[]): Promise<string> {\n const serializedNotifications = await Promise.all(\n value.map(async (ref) =>\n deepmerge(ref, {\n item: {\n title: await this.serializeDynamicTextContent(ref.item.title),\n description: await this.serializeDynamicTextContent(ref.item.description),\n },\n }),\n ),\n );\n\n return JSON.stringify(serializedNotifications);\n }\n\n /**\n * Deserializes a string into an array of NotificationRef objects.\n *\n * @param {string} value - The string representation of notification references to deserialize.\n * @returns {Promise<NotificationRef[]>} A promise that resolves to the deserialized notification references.\n */\n public async deserialize(value: string): Promise<NotificationRef[]> {\n return JSON.parse(value);\n }\n\n private async serializeDynamicTextContent(content?: DynamicTextContent): Promise<string> {\n if (!content) return '';\n if (isString(content)) return content;\n\n return firstValueFrom(content).catch(() => '');\n }\n}\n\nexport interface WithPersistentNotificationsStorageOptions {\n storageKey: string;\n storage: Storage;\n serializer: NotificationSerializer;\n idTransformer?: (notificationRef: NotificationRef) => string;\n}\n\nexport interface WithPersistentNotificationsOptions {\n initFn: LoadNotificationsFn;\n saveFn: SaveNotificationsFn;\n storageOptions: WithPersistentNotificationsStorageOptions;\n}\n\n/**\n * Initializes and returns a function for loading persistent notifications.\n *\n * @param {WithPersistentNotificationsStorageOptions} options - The storage options including serializer and storage key.\n * @returns {LoadNotificationsFn} A function to load notifications from storage.\n */\nexport function initPersistentNotifications({\n storage,\n storageKey,\n serializer,\n idTransformer,\n}: WithPersistentNotificationsStorageOptions): LoadNotificationsFn {\n return async () => {\n const storedValue = storage.getItem(storageKey);\n if (!storedValue) return [];\n const notificationRefs = await serializer.deserialize(storedValue);\n\n if (isFunction(idTransformer)) {\n for (const notificationRef of notificationRefs) {\n notificationRef.item.id = notificationRef.id = idTransformer(notificationRef);\n }\n }\n\n return notificationRefs;\n };\n}\n\n/**\n * Returns a function for persisting notifications.\n *\n * @param {WithPersistentNotificationsStorageOptions} options - The storage options including serializer and storage key.\n * @returns {SaveNotificationsFn} A function to save notifications to storage.\n */\nexport function persistNotifications({ storage, storageKey, serializer }: WithPersistentNotificationsStorageOptions): SaveNotificationsFn {\n return async (notificationRefs: NotificationRef[]) => {\n storage.setItem(storageKey, await serializer.serialize(notificationRefs));\n };\n}\n\n/**\n * Configures the application to use persistent notifications, automatically loading from and saving to the configured storage.\n *\n * @param {Partial<WithPersistentNotificationsOptions>} [options] - Optional configuration for persistent notifications.\n * @returns {NotificationFeature} A notification feature configured for persistence.\n */\nexport function withPersistentNotifications(options?: Partial<WithPersistentNotificationsOptions>): NotificationFeature {\n const storageOptions: WithPersistentNotificationsStorageOptions = {\n storageKey: options?.storageOptions?.storageKey ?? '@odx/angular/components/notification::Storage',\n storage: options?.storageOptions?.storage ?? localStorage,\n serializer: options?.storageOptions?.serializer ?? new PersistentNotificationSerializer(),\n };\n const initFn = options?.initFn ?? initPersistentNotifications(storageOptions);\n const saveFn = options?.saveFn ?? persistNotifications(storageOptions);\n\n return makeNotificationFeature([withLoadNotifications(initFn), withSaveNotifications(saveFn)]);\n}\n","import { ENVIRONMENT_INITIALIZER, inject } from '@angular/core';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\nimport { NotificationService } from '../notification.service';\nimport { NotificationSerializer, PersistentNotificationSerializer } from './with-peristent-notifications';\n\nexport type BrowserNotificationExtras = Omit<NotificationOptions, 'body' | 'timestamp'>;\nexport type BrowserNotification = Notification;\nexport type BrowserNotificationFactory = (notificationRef: NotificationRef) => BrowserNotification;\nexport type SendBrowserNotificationFn = (notificationRef: NotificationRef) => unknown;\n\nexport interface WithBrowserNotificationsOptions {\n sendFn?: SendBrowserNotificationFn;\n extras?: BrowserNotificationExtras;\n isEnabled?: boolean;\n}\n\n/**\n * Requests permission to display browser notifications and returns a boolean indicating whether permission was granted.\n *\n * @returns {Promise<boolean>} A promise that resolves to `true` if permission is granted, otherwise `false`.\n */\nasync function requestBrowserNotificationPermissions(): Promise<boolean> {\n if (!('Notification' in window)) return false;\n if (Notification.permission === 'granted') return true;\n if (Notification.permission === 'denied') return false;\n const permission = await Notification.requestPermission();\n\n return permission === 'granted';\n}\n\n/**\n * Creates a function responsible for sending out browser notifications with the given options.\n *\n * @param {NotificationSerializer} serializer - The serializer to use for notification data.\n * @param {BrowserNotificationExtras} [options] - Additional options for the browser notification.\n * @returns {SendBrowserNotificationFn} A function to send browser notifications.\n */\nfunction sendBrowserNotification(serializer: NotificationSerializer, options?: BrowserNotificationExtras): SendBrowserNotificationFn {\n return async (notificationRef) => {\n if (!('Notification' in window)) return;\n const [notificationObj] = await serializer.deserialize(await serializer.serialize([notificationRef]));\n if (!notificationObj || notificationObj.hasBeenSeen) return;\n const { item } = notificationObj;\n new Notification(item.title as string, {\n tag: notificationRef.options.tags?.[0],\n lang: notificationRef.options.language,\n ...options,\n body: item.description as string,\n });\n };\n}\n\n/**\n * Configures the application to send browser notifications, using Angular's `ENVIRONMENT_INITIALIZER` for setup.\n *\n * @param {WithBrowserNotificationsOptions} [options] - Optional configuration for browser notifications.\n * @returns {NotificationFeature} A notification feature for integration into the application environment.\n */\nexport function withBrowserNotifications(options?: WithBrowserNotificationsOptions): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useFactory: () => {\n const isEnabled = options?.isEnabled ?? true;\n if (!isEnabled) return () => void 0;\n const notificationService = inject(NotificationService);\n const serializer = new PersistentNotificationSerializer();\n const sendBrowserNotificationFn = options?.sendFn ?? sendBrowserNotification(serializer, options?.extras);\n\n return async () => {\n if (!isEnabled) return;\n const permissionsGranted = await requestBrowserNotificationPermissions();\n if (!permissionsGranted) return;\n notificationService.onNotificationAdd$.subscribe(sendBrowserNotificationFn);\n };\n },\n multi: true,\n },\n ]);\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { NotificationFeature, NotificationRef, makeNotificationFeature } from '../models';\n\nexport type NotificationTransformFn = (ref: NotificationRef) => Observable<NotificationRef>;\n\n/**\n * An InjectionToken for the NotificationTransformFn. This token can be used to inject\n * a custom notification transformation function into the Angular DI system.\n * @type {InjectionToken<NotificationTransformFn>}\n */\nexport const ODX_NOTIFICATION_TRANSFORMER = new InjectionToken<NotificationTransformFn>('@odx/angular/components/notification::NotificationTransformer');\n\n/**\n * Attempts to inject a NotificationTransformFn from the Angular DI system.\n * If no provider is found, it returns null.\n *\n * @returns {NotificationTransformFn | null} The injected NotificationTransformFn, or null if not provided.\n */\nexport function injectNotificationTransform(): NotificationTransformFn | null {\n return inject(ODX_NOTIFICATION_TRANSFORMER, { optional: true });\n}\n\n/**\n * Configures a notification transformation function to be used within the application.\n * This function provides a mechanism to globally apply transformations to notifications\n * before they are processed or displayed.\n *\n * @param {NotificationTransformFn} transformFn - The function to transform notifications.\n * @returns {NotificationFeature} A NotificationFeature configured with the provided transformation function.\n */\nexport function withNotificationTransform(transformFn: NotificationTransformFn): NotificationFeature {\n return makeNotificationFeature([\n {\n provide: ODX_NOTIFICATION_TRANSFORMER,\n useValue: transformFn,\n },\n ]);\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { AvatarComponent } from '@odx/angular/components/avatar';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { Observable, of } from 'rxjs';\nimport { injectNotificationTransform } from '../../features';\nimport { NotificationRef } from '../../models';\n\n/**\n * A component for displaying notifications.\n * Supports customization through dynamic transformation of notification data.\n * Utilizes the OnPush change detection strategy for better performance in large applications.\n */\n@CSSComponent('notification-item')\n@Component({\n selector: 'odx-notification-item',\n standalone: true,\n imports: [AvatarComponent, ActionGroupComponent, ButtonComponent, CommonModule, DynamicViewDirective, IconComponent],\n templateUrl: './notification-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NotificationItemComponent {\n private readonly transformNotification = injectNotificationTransform();\n private _notificationRef!: NotificationRef;\n\n protected transformedNotification!: Observable<NotificationRef>;\n\n public readonly element = injectElement();\n\n /**\n * Input property to set the notification. On setting, it transforms the notification for display.\n * This transformation can be a custom logic provided through dependency injection.\n *\n * @param {NotificationRef} value - The notification object to be displayed.\n */\n @Input({ required: true })\n public set notification(value: NotificationRef) {\n this._notificationRef = value;\n this.transformedNotification = this.transformNotification?.(value) ?? of(value);\n }\n\n /**\n * Getter for the notification property.\n *\n * @returns {NotificationRef} - The current notification reference stored in the component.\n */\n public get notification() {\n return this._notificationRef;\n }\n\n /**\n * An event emitter for dismissing the notification.\n * It emits the notification reference that was dismissed.\n *\n * @emits {NotificationRef} - The notification reference that was dismissed.\n */\n @Output()\n public dismiss = new EventEmitter<NotificationRef>();\n}\n","<ng-template [ngIf]=\"transformedNotification | async\" let-ref>\n <odx-avatar class=\"odx-notification-item__avatar odx-no-margin\">\n <odx-icon [identifier]=\"ref.options.icon\" />\n </odx-avatar>\n <div class=\"odx-notification-item__title\">\n <ng-template [odxDynamicView]=\"ref.item.title\" />\n </div>\n <div class=\"odx-notification-item__description\" *ngIf=\"ref.item.description as description\">\n <ng-template [odxDynamicView]=\"ref.item.description\" />\n </div>\n</ng-template>\n<odx-action-group class=\"odx-notification-item__actions odx-no-margin\">\n <button odxButton class=\"odx-no-margin\" (click)=\"dismiss.next(notification)\" *ngIf=\"notification.options.dismissable\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n</odx-action-group>\n","import { transition, trigger, useAnimation } from '@angular/animations';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnDestroy, ViewEncapsulation, inject } from '@angular/core';\nimport { LetDirective } from '@ngrx/component';\nimport { collapse } from '@odx/angular/animations';\nimport { InteractiveDirective } from '@odx/angular/cdk/a11y';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { BadgeDirective } from '@odx/angular/components/badge';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { DropdownModule } from '@odx/angular/components/dropdown';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { ListModule } from '@odx/angular/components/list';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { TranslatePipe, provideTranslations } from '@odx/angular/internal/translate';\nimport { injectElement, trackById } from '@odx/angular/utils';\nimport { NotificationRef } from '../../models';\nimport notificationI18n from '../../notification.i18n';\nimport { NotificationCenterService } from '../../services';\nimport { NotificationItemComponent } from '../notification-item/notification-item.component';\n\n/**\n * A component for displaying and managing a list of notifications. It integrates various sub-components and directives to provide a rich user interface for notification interaction. Supports animations for notification transitions and leverages Angular's change detection strategies for performance.\n */\n@CSSComponent('notification-center')\n@Component({\n selector: 'odx-notification-center',\n standalone: true,\n imports: [\n CommonModule,\n LetDirective,\n ActionGroupComponent,\n BadgeDirective,\n ButtonComponent,\n DynamicViewDirective,\n IconComponent,\n DropdownModule,\n TranslatePipe,\n NotificationItemComponent,\n InteractiveDirective,\n ListModule,\n ],\n templateUrl: './notification-center.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideTranslations(notificationI18n)],\n animations: [trigger('notificationAnimation', [transition(':leave', useAnimation(collapse, { delay: 150 }))])],\n})\nexport class NotificationCenterComponent implements OnDestroy {\n protected readonly notificationCenterService = inject(NotificationCenterService);\n protected readonly trackById = trackById;\n\n public readonly element = injectElement();\n\n public ngOnDestroy(): void {\n this.notificationCenterService.markAllAsSeen();\n }\n\n protected isMuted({ options, hasBeenSeen }: NotificationRef): boolean {\n return hasBeenSeen && !options.action;\n }\n}\n","<ng-template [ngIf]=\"notificationCenterService.notifications$ | async\" let-notifications>\n <h3 class=\"odx-notification-center__header\">\n <ng-template [odxDynamicView]=\"(notificationCenterService.title$ | async) ?? ('title' | odxTranslate | async)\"></ng-template>\n </h3>\n <odx-list class=\"odx-notification-center__content\">\n <odx-list-item\n @notificationAnimation\n [muted]=\"isMuted(notification)\"\n [selected]=\"!notification.hasBeenSeen\"\n (click)=\"notificationCenterService.executeAction(notification)\"\n *ngFor=\"let notification of notifications.values; trackBy: trackById\"\n >\n <odx-notification-item [notification]=\"notification\" (dismiss)=\"notificationCenterService.dismiss(notification)\" />\n </odx-list-item>\n </odx-list>\n <div class=\"odx-notification-center__footer\">\n <button odxButton [disabled]=\"false\" (click)=\"notificationCenterService.dismissAll()\">\n {{ 'dismissAll' | odxTranslate | async }}\n </button>\n </div>\n</ng-template>\n","import { AfterViewInit, DestroyRef, Directive, Input, OnInit, Output, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DisabledController } from '@odx/angular';\nimport { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { BadgeDirective } from '@odx/angular/components/badge';\nimport { DropdownDirective } from '@odx/angular/components/dropdown';\nimport { Position } from '@odx/angular/utils';\nimport { Observable, map, merge, startWith, switchMap, tap } from 'rxjs';\nimport { NotificationCenterComponent } from '../components';\nimport { NotificationSortFn } from '../models';\nimport { NotificationCenterService } from '../services';\n\n/**\n * A directive that provides an interface for managing notifications.\n * It allows configuring a notification center with dynamic content, sorting, and badge display functionalities.\n * The directive has hosted directives `BadgeDirective` and `DropdownDirective` for badge and dropdown functionality.\n *\n * @see {BadgeDirective}\n * @see {DropdownDirective}\n */\n@Directive({\n standalone: true,\n selector: '[odxNotificationCenter]',\n hostDirectives: [{ directive: BadgeDirective, inputs: ['odxBadgeVariant:odxNotificationCenterBadgeVariant'] }, DropdownDirective],\n providers: [NotificationCenterService],\n})\nexport class NotificationCenterDirective implements OnInit, AfterViewInit {\n private readonly badgeDirective = inject(BadgeDirective, { self: true });\n private readonly destroyRef = inject(DestroyRef);\n private readonly disabledController = DisabledController.inject();\n private readonly dropdownDirective = inject(DropdownDirective, { self: true });\n private readonly notificationCenterService = inject(NotificationCenterService, { self: true });\n private readonly dropdownStateChange$ = merge(this.dropdownDirective.beforeOpen, this.dropdownDirective.beforeClose).pipe(startWith(void 0));\n private readonly badgeValue$ = this.notificationCenterService.unseenNotifications$.pipe(\n switchMap(({ count }) => this.dropdownStateChange$.pipe(map(() => this.formatBadgeValue(count)))),\n );\n\n /**\n * Sets the tag for filtering notifications. Only notifications with this tag will be shown in the notification center.\n *\n * @param {string | null} value - The tag value to filter notifications. If null, all notifications are shown.\n */\n @Input('odxNotificationCenter')\n public set tag(value: string | null) {\n this.notificationCenterService.setTag(value);\n }\n\n /**\n * Sets the title of the notification center. The title can be dynamic and change based on the application state.\n *\n * @param {DynamicTextContent | null} value - The title content, which can be a string or an Observable returning a string. Allows for dynamic titles.\n */\n @Input('odxNotificationCenterTitle')\n public set title(value: DynamicTextContent | null) {\n this.notificationCenterService.setTitle(value);\n }\n\n /**\n * Sets the sorting function used to order notifications within the notification center.\n *\n * @param {NotificationSortFn} value - A function that compares two notifications and returns the sort order.\n *\n * @example\n * ```ts\n * sortFfn = (a: NotificationRef, b: NotificationRef) => {\n * if (a.createdAt < b.createdAt) return -1;\n * if (a.createdAt > b.createdAt) return 1;\n * return 0;\n * };\n * ```\n */\n @Input('odxNotificationCenterSortFn')\n public set sortFn(value: NotificationSortFn) {\n this.notificationCenterService.setSortFn(value);\n }\n\n /**\n * An event that is emitted when a new notification is added.\n * Listeners can use this event to react to new notifications being added to the notification center.\n *\n * @emits {NotificationRef} notificationAdd - The notification that was added to the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterAdd')\n public notificationAdd = this.notificationCenterService.onNotificationAdd$;\n\n /**\n * An event that is emitted when a notification is updated.\n * This can be used to react to changes in notifications, such as their read status or content updates.\n *\n * @emits {NotificationRef} notificationUpdate - The notification that was updated in the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterUpdate')\n public notificationUpdate = this.notificationCenterService.onNotificationUpdate$;\n\n /**\n * An event that is emitted when a notification is removed from the notification center.\n * Use this event to handle the removal of notifications, such as cleaning up resources or updating UI elements.\n *\n * @emits {NotificationRef} notificationRemove - The notification that was removed from the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterRemove')\n public notificationRemove = this.notificationCenterService.onNotificationRemove$;\n\n /**\n * An event that is emitted when a notification is marked as seen.\n * This event can be used to perform actions when the user acknowledges a notification.\n *\n * @emits {NotificationRef} notificationSeen - The notification that was marked as seen in the notification center.\n */\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxNotificationCenterSeen')\n public notificationSeen = this.notificationCenterService.onNotificationSeen$;\n\n public ngOnInit() {\n this.badgeDirective.position = Position.BOTTOM;\n this.badgeDirective.offset = 6;\n\n this.dropdownDirective.content = NotificationCenterComponent;\n this.dropdownDirective.options = {\n containerClass: 'odx-notification-center-overlay',\n position: Position.BOTTOM_END,\n enableFallback: false,\n };\n }\n\n public ngAfterViewInit() {\n merge(this.handleBadgeUpdates(), this.handleDropdownUpdates()).pipe(takeUntilDestroyed(this.destroyRef)).subscribe();\n }\n\n private formatBadgeValue(value: number): string | null {\n return this.dropdownDirective.isOpen || value === 0 ? null : value.toFixed(0);\n }\n\n private handleBadgeUpdates(): Observable<unknown> {\n return this.badgeValue$.pipe(\n tap((value: DynamicTextContent | null) => {\n this.badgeDirective.value = value as DynamicTextContent;\n this.badgeDirective.ngOnChanges();\n }),\n );\n }\n\n private handleDropdownUpdates(): Observable<unknown> {\n return this.notificationCenterService.notifications$.pipe(\n tap(({ isEmpty }) => {\n this.disabledController?.setDisabledState(isEmpty);\n if (!isEmpty) return;\n this.dropdownDirective.close();\n }),\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uBAAe;AACb,IAAA,EAAE,EAAE;AACF,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,UAAU,EAAE,aAAa;AAC1B,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,KAAK,EAAE,oBAAoB;AAC3B,QAAA,UAAU,EAAE,gBAAgB;AAC7B,KAAA;CACmB;;ACTtB;AACgB,SAAA,sBAAsB,CAAC,GAAG,IAAsC,EAAA;AAC9E,IAAA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AS,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,mDAAmD,CAAC,EAAE,EAAE,iBAAiB,CAAC;oBACjI,SAAS,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;8BAkBY,GAAG,EAAA,CAAA;sBADb,KAAK;uBAAC,uBAAuB,CAAA;gBAWnB,KAAK,EAAA,CAAA;sBADf,KAAK;uBAAC,4BAA4B,CAAA;gBAoBxB,MAAM,EAAA,CAAA;sBADhB,KAAK;uBAAC,6BAA6B,CAAA;gBAa7B,eAAe,EAAA,CAAA;sBADrB,MAAM;uBAAC,0BAA0B,CAAA;gBAW3B,kBAAkB,EAAA,CAAA;sBADxB,MAAM;uBAAC,6BAA6B,CAAA;gBAW9B,kBAAkB,EAAA,CAAA;sBADxB,MAAM;uBAAC,6BAA6B,CAAA;gBAW9B,gBAAgB,EAAA,CAAA;sBADtB,MAAM;uBAAC,2BAA2B,CAAA;;;ACjHrC;;AAEG;;;;"}
@@ -293,13 +293,13 @@ let PaginatorComponent = class PaginatorComponent {
293
293
  pageSize: this._pageSize,
294
294
  });
295
295
  }
296
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
297
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PaginatorComponent, isStandalone: true, selector: "odx-paginator", inputs: { getSummaryContentFn: "getSummaryContentFn", getRangeContentFn: "getRangeContentFn", showSummary: "showSummary", showFirstLastButtons: "showFirstLastButtons", pageIndex: "pageIndex", pageSize: "pageSize", length: "length" }, outputs: { pageChanged: "pageChanged" }, host: { properties: { "class.is-disabled": "isDisabled" } }, providers: [DisabledController.connect()], ngImport: i0, template: "<div *ngIf=\"showSummary\" class=\"odx-paginator__summary\">\n <ng-template [odxDynamicView]=\"summaryContent\"></ng-template>\n</div>\n\n<div class=\"odx-paginator__navigation\">\n <odx-action-group>\n <button\n *ngIf=\"showFirstLastButtons\"\n odxButton\n [size]=\"buttonSize\"\n class=\"odx-paginator__navigation_first\"\n (click)=\"firstPage()\"\n [disabled]=\"isPreviousDisabled\"\n >\n <odx-icon name=\"chevron-left-end\" iconSet=\"core\"></odx-icon>\n </button>\n\n <button odxButton [size]=\"buttonSize\" class=\"odx-paginator__navigation_previous\" (click)=\"previousPage()\" [disabled]=\"isPreviousDisabled\">\n <odx-icon name=\"chevron-left\" iconSet=\"core\"></odx-icon>\n </button>\n </odx-action-group>\n\n <div class=\"odx-paginator__range\">\n <ng-template [odxDynamicView]=\"rangeContent\"></ng-template>\n </div>\n\n <odx-action-group>\n <button odxButton [size]=\"buttonSize\" class=\"odx-paginator__navigation_next\" (click)=\"nextPage()\" [disabled]=\"isNextDisabled\">\n <odx-icon name=\"chevron-right\" iconSet=\"core\"></odx-icon>\n </button>\n\n <button *ngIf=\"showFirstLastButtons\" [size]=\"buttonSize\" odxButton class=\"odx-paginator__navigation_last\" (click)=\"lastPage()\" [disabled]=\"isNextDisabled\">\n <odx-icon name=\"chevron-right-end\" iconSet=\"core\"></odx-icon>\n </button>\n </odx-action-group>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "component", type: ActionGroupComponent, selector: "odx-action-group", inputs: ["reverse"] }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet", "identifier"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
296
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
297
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PaginatorComponent, isStandalone: true, selector: "odx-paginator", inputs: { getSummaryContentFn: "getSummaryContentFn", getRangeContentFn: "getRangeContentFn", showSummary: "showSummary", showFirstLastButtons: "showFirstLastButtons", pageIndex: "pageIndex", pageSize: "pageSize", length: "length" }, outputs: { pageChanged: "pageChanged" }, host: { properties: { "class.is-disabled": "isDisabled" } }, providers: [DisabledController.connect()], ngImport: i0, template: "<div *ngIf=\"showSummary\" class=\"odx-paginator__summary\">\n <ng-template [odxDynamicView]=\"summaryContent\"></ng-template>\n</div>\n\n<div class=\"odx-paginator__navigation\">\n <odx-action-group>\n <button\n *ngIf=\"showFirstLastButtons\"\n odxButton\n [size]=\"buttonSize\"\n class=\"odx-paginator__navigation_first\"\n (click)=\"firstPage()\"\n [disabled]=\"isPreviousDisabled\"\n >\n <odx-icon name=\"chevron-left-end\" iconSet=\"core\"></odx-icon>\n </button>\n\n <button odxButton [size]=\"buttonSize\" class=\"odx-paginator__navigation_previous\" (click)=\"previousPage()\" [disabled]=\"isPreviousDisabled\">\n <odx-icon name=\"chevron-left\" iconSet=\"core\"></odx-icon>\n </button>\n </odx-action-group>\n\n <div class=\"odx-paginator__range\">\n <ng-template [odxDynamicView]=\"rangeContent\"></ng-template>\n </div>\n\n <odx-action-group>\n <button odxButton [size]=\"buttonSize\" class=\"odx-paginator__navigation_next\" (click)=\"nextPage()\" [disabled]=\"isNextDisabled\">\n <odx-icon name=\"chevron-right\" iconSet=\"core\"></odx-icon>\n </button>\n\n <button *ngIf=\"showFirstLastButtons\" [size]=\"buttonSize\" odxButton class=\"odx-paginator__navigation_last\" (click)=\"lastPage()\" [disabled]=\"isNextDisabled\">\n <odx-icon name=\"chevron-right-end\" iconSet=\"core\"></odx-icon>\n </button>\n </odx-action-group>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "component", type: ActionGroupComponent, selector: "odx-action-group", inputs: ["reverse"] }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet", "identifier"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
298
298
  };
299
299
  PaginatorComponent = __decorate([
300
300
  CSSComponent('paginator')
301
301
  ], PaginatorComponent);
302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginatorComponent, decorators: [{
302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginatorComponent, decorators: [{
303
303
  type: Component,
304
304
  args: [{ standalone: true, selector: 'odx-paginator', imports: [CoreModule, ActionGroupComponent, ButtonComponent, IconComponent, DynamicViewDirective], providers: [DisabledController.connect()], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
305
305
  '[class.is-disabled]': 'isDisabled',
@@ -324,11 +324,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
324
324
 
325
325
  const modules = [PaginatorComponent];
326
326
  class PaginatorModule {
327
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
328
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PaginatorModule, imports: [PaginatorComponent], exports: [PaginatorComponent] }); }
329
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginatorModule, imports: [modules] }); }
327
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
328
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: PaginatorModule, imports: [PaginatorComponent], exports: [PaginatorComponent] }); }
329
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginatorModule, imports: [modules] }); }
330
330
  }
331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginatorModule, decorators: [{
331
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginatorModule, decorators: [{
332
332
  type: NgModule,
333
333
  args: [{
334
334
  imports: modules,
@@ -45,8 +45,8 @@ let ProgressComponent = class ProgressComponent {
45
45
  get value() {
46
46
  return this._value;
47
47
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: ProgressComponent, isStandalone: true, selector: "odx-progress", inputs: { value: ["value", "value", numberAttribute] }, host: { properties: { "attr.aria-valuenow": "ariaValueNow", "attr.aria-valuemax": "100", "attr.aria-valuemin": "0", "attr.role": "\"meter\"" } }, ngImport: i0, template: "<div class=\"odx-progress__indicator\" style=\"transform: scaleX({{ progressValue }})\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.12", type: ProgressComponent, isStandalone: true, selector: "odx-progress", inputs: { value: ["value", "value", numberAttribute] }, host: { properties: { "attr.aria-valuenow": "ariaValueNow", "attr.aria-valuemax": "100", "attr.aria-valuemin": "0", "attr.role": "\"meter\"" } }, ngImport: i0, template: "<div class=\"odx-progress__indicator\" style=\"transform: scaleX({{ progressValue }})\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
50
50
  };
51
51
  __decorate([
52
52
  CSSModifier(),
@@ -55,7 +55,7 @@ __decorate([
55
55
  ProgressComponent = __decorate([
56
56
  CSSComponent('progress')
57
57
  ], ProgressComponent);
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressComponent, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProgressComponent, decorators: [{
59
59
  type: Component,
60
60
  args: [{ selector: 'odx-progress', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
61
61
  '[attr.aria-valuenow]': 'ariaValueNow',