@odx/angular 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +19 -1
  3. package/cdk/connected-overlay/lib/models/connected-overlay-ref.d.ts +1 -1
  4. package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +9 -1
  5. package/cdk/expandable/lib/directives/expandable-container.directive.d.ts +9 -5
  6. package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +4 -1
  7. package/cdk/option-control/lib/option-control.d.ts +2 -0
  8. package/cdk/radio-group-control/lib/radio-control.directive.d.ts +18 -0
  9. package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +3 -1
  10. package/components/accordion/lib/components/accordion-item/accordion-item.component.d.ts +9 -5
  11. package/components/action-group/action-group.component.d.ts +3 -0
  12. package/components/area-header/area-header.component.d.ts +2 -1
  13. package/components/autocomplete/lib/autocomplete.component.d.ts +17 -4
  14. package/components/autocomplete/lib/components/option/autocomplete-option.component.d.ts +8 -0
  15. package/components/autocomplete/lib/directives/autocomplete-input-control.directive.d.ts +4 -0
  16. package/components/avatar/lib/avatar.component.d.ts +6 -2
  17. package/components/badge/lib/badge.component.d.ts +12 -1
  18. package/components/badge/lib/badge.directive.d.ts +18 -3
  19. package/components/bar/lib/directives/bar-button.directive.d.ts +6 -0
  20. package/components/button/lib/button.component.d.ts +9 -1
  21. package/components/button-group/lib/button-group.component.d.ts +12 -0
  22. package/components/calendar/lib/calendar.component.d.ts +11 -0
  23. package/components/calendar/lib/calendar.config.d.ts +6 -0
  24. package/components/calendar/lib/calendar.service.d.ts +13 -1
  25. package/components/calendar/lib/components/calendar-header/calendar-header.component.d.ts +16 -0
  26. package/components/calendar/lib/daterange.service.d.ts +3 -0
  27. package/components/calendar/lib/directives/calendar-cell.directive.d.ts +4 -0
  28. package/components/calendar/lib/directives/calendar-view.directive.d.ts +18 -0
  29. package/components/calendar/lib/pipes/date-label.pipe.d.ts +4 -0
  30. package/components/card/lib/card.component.d.ts +26 -2
  31. package/components/card/lib/components/card-footer/card-footer.component.d.ts +3 -0
  32. package/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.d.ts +3 -0
  33. package/components/card/lib/directives/card-content.directive.d.ts +3 -0
  34. package/components/card/lib/directives/card-title.directive.d.ts +3 -0
  35. package/components/checkbox/lib/checkbox.component.d.ts +9 -2
  36. package/components/chip/lib/components/chip/chip.component.d.ts +15 -3
  37. package/components/circular-progress/lib/circular-progress.component.d.ts +15 -2
  38. package/components/datepicker/lib/datepicker.component.d.ts +28 -1
  39. package/components/datepicker/lib/directives/datepicker-input-control.directive.d.ts +7 -1
  40. package/components/daterangepicker/lib/daterangepicker.component.d.ts +4 -0
  41. package/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.d.ts +3 -1
  42. package/components/daterangepicker/lib/required.validator.d.ts +8 -0
  43. package/components/dropdown/lib/dropdown.component.d.ts +6 -4
  44. package/components/dropdown/lib/dropdown.directive.d.ts +38 -3
  45. package/components/dropdown/lib/helpers/close-current-dropdown.d.ts +2 -1
  46. package/components/error-page/lib/error-page.component.d.ts +2 -0
  47. package/components/footer/lib/footer.component.d.ts +6 -2
  48. package/components/footer/lib/helpers/create-footer-links.d.ts +1 -2
  49. package/components/form-field/lib/components/form-field-info/form-field-info.component.d.ts +2 -1
  50. package/components/form-field/lib/components/form-group/form-group.component.d.ts +7 -2
  51. package/components/form-field/lib/directives/form-field-error.directive.d.ts +2 -0
  52. package/components/form-field/lib/directives/form.directive.d.ts +4 -0
  53. package/components/form-field/lib/form-field.component.d.ts +17 -2
  54. package/components/form-field/lib/form-field.service.d.ts +27 -6
  55. package/components/form-field/lib/services/form-field-error.service.d.ts +11 -3
  56. package/components/header-navigation/lib/header-navigation.component.d.ts +3 -0
  57. package/components/icon/lib/helpers/unpack-icon-identifier.d.ts +2 -2
  58. package/components/icon/lib/icon.component.d.ts +13 -1
  59. package/components/inline-message/lib/inline-message.component.d.ts +5 -1
  60. package/components/list/lib/components/expandable-list-item/expandable-list-item.component.d.ts +1 -0
  61. package/components/list/lib/components/list-item/list-item.component.d.ts +10 -1
  62. package/components/list/lib/list.component.d.ts +1 -0
  63. package/components/loading-spinner/lib/loading-spinner.component.d.ts +3 -0
  64. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +7 -0
  65. package/components/modal/lib/components/modal-header/modal-header.component.d.ts +0 -1
  66. package/components/modal/lib/components/modal-hero/modal-hero.component.d.ts +3 -0
  67. package/components/modal/lib/directives/index.d.ts +2 -0
  68. package/components/modal/lib/directives/prevent-form-method-dialog.directive.d.ts +9 -0
  69. package/components/modal/lib/directives/prevent-method-dialog.directive.d.ts +9 -0
  70. package/components/modal/lib/modal.component.d.ts +11 -3
  71. package/components/modal/lib/modal.module.d.ts +5 -3
  72. package/components/modal/lib/modal.service.d.ts +7 -5
  73. package/components/modal/lib/models/modal-ref.d.ts +18 -4
  74. package/components/notification/lib/components/notification-item/notification-item.component.d.ts +4 -4
  75. package/components/notification/lib/directives/notification-center.directive.d.ts +6 -3
  76. package/components/notification/lib/features/with-browser-notifications.d.ts +1 -1
  77. package/components/notification/lib/features/with-load-notifications.d.ts +2 -1
  78. package/components/notification/lib/features/with-notification-transformer.d.ts +2 -2
  79. package/components/notification/lib/features/with-peristent-notifications.d.ts +6 -8
  80. package/components/notification/lib/features/with-save-notifications.d.ts +1 -1
  81. package/components/paginator/lib/paginator.component.d.ts +50 -0
  82. package/components/progress/lib/progress.component.d.ts +6 -1
  83. package/components/radio-group/lib/components/radio-button/radio-button.component.d.ts +7 -0
  84. package/components/radio-group/lib/radio-group.component.d.ts +6 -0
  85. package/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.d.ts +9 -0
  86. package/components/rail-navigation/lib/rail-navigation.component.d.ts +10 -2
  87. package/components/rich-list/lib/components/rich-list-item/rich-list-item.component.d.ts +8 -10
  88. package/components/rich-list/lib/rich-list.component.d.ts +3 -0
  89. package/components/select/lib/components/select-option/select-option.component.d.ts +1 -0
  90. package/components/select/lib/directives/select-input-control.directive.d.ts +4 -1
  91. package/components/select/lib/select.component.d.ts +7 -1
  92. package/components/slider/lib/slider.directive.d.ts +7 -4
  93. package/components/spinbox/lib/spinbox.component.d.ts +9 -0
  94. package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +4 -1
  95. package/components/table/lib/components/check-cell/check-cell.component.d.ts +4 -1
  96. package/components/table/lib/components/header-title/header-title.component.d.ts +12 -1
  97. package/components/table/lib/table.component.d.ts +18 -1
  98. package/components/timepicker/lib/components/timepicker-option.component.d.ts +9 -1
  99. package/components/timepicker/lib/directives/timepicker-input-control.directive.d.ts +2 -0
  100. package/components/timepicker/lib/timepicker.component.d.ts +18 -3
  101. package/components/timepicker/lib/timepicker.service.d.ts +0 -7
  102. package/components/toast/lib/components/toast-container/toast-container.component.d.ts +19 -0
  103. package/components/toast/lib/components/toast-item/toast-item.component.d.ts +57 -1
  104. package/components/toast/lib/toast.service.d.ts +12 -0
  105. package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +3 -0
  106. package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +2 -0
  107. package/components/tooltip/lib/tooltip.component.d.ts +7 -1
  108. package/components/tooltip/lib/tooltip.directive.d.ts +15 -2
  109. package/components/wizard/lib/components/wizard-step/wizard-step.component.d.ts +17 -0
  110. package/components/wizard/lib/wizard.component.d.ts +13 -1
  111. package/esm2022/cdk/checkbox-control/lib/checkbox-control.directive.mjs +20 -2
  112. package/esm2022/cdk/connected-overlay/lib/models/connected-overlay-ref.mjs +2 -2
  113. package/esm2022/cdk/dynamic-view/lib/dynamic-view.directive.mjs +4 -1
  114. package/esm2022/cdk/expandable/lib/directives/expandable-container.directive.mjs +10 -6
  115. package/esm2022/cdk/expandable/lib/directives/expandable-item.directive.mjs +5 -2
  116. package/esm2022/cdk/option-control/lib/option-control.mjs +3 -1
  117. package/esm2022/cdk/radio-group-control/lib/radio-control.directive.mjs +19 -1
  118. package/esm2022/cdk/radio-group-control/lib/radio-group-control.directive.mjs +3 -1
  119. package/esm2022/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +9 -4
  120. package/esm2022/components/action-group/action-group.component.mjs +4 -1
  121. package/esm2022/components/area-header/area-header.component.mjs +3 -2
  122. package/esm2022/components/autocomplete/lib/autocomplete.component.mjs +8 -5
  123. package/esm2022/components/autocomplete/lib/components/option/autocomplete-option.component.mjs +9 -1
  124. package/esm2022/components/autocomplete/lib/directives/autocomplete-input-control.directive.mjs +5 -1
  125. package/esm2022/components/avatar/lib/avatar.component.mjs +7 -3
  126. package/esm2022/components/badge/lib/badge.component.mjs +7 -2
  127. package/esm2022/components/badge/lib/badge.directive.mjs +19 -4
  128. package/esm2022/components/bar/lib/directives/bar-button.directive.mjs +7 -1
  129. package/esm2022/components/button/lib/button.component.mjs +10 -2
  130. package/esm2022/components/button-group/lib/button-group.component.mjs +13 -1
  131. package/esm2022/components/calendar/lib/calendar.component.mjs +12 -1
  132. package/esm2022/components/calendar/lib/calendar.config.mjs +1 -1
  133. package/esm2022/components/calendar/lib/calendar.service.mjs +14 -2
  134. package/esm2022/components/calendar/lib/components/calendar-header/calendar-header.component.mjs +13 -1
  135. package/esm2022/components/calendar/lib/daterange.service.mjs +4 -1
  136. package/esm2022/components/calendar/lib/directives/calendar-cell.directive.mjs +5 -1
  137. package/esm2022/components/calendar/lib/directives/calendar-view.directive.mjs +17 -1
  138. package/esm2022/components/calendar/lib/pipes/date-label.pipe.mjs +5 -1
  139. package/esm2022/components/card/lib/card.component.mjs +25 -1
  140. package/esm2022/components/card/lib/components/card-footer/card-footer.component.mjs +4 -1
  141. package/esm2022/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.mjs +4 -1
  142. package/esm2022/components/card/lib/directives/card-content.directive.mjs +4 -1
  143. package/esm2022/components/card/lib/directives/card-title.directive.mjs +4 -1
  144. package/esm2022/components/checkbox/lib/checkbox.component.mjs +10 -3
  145. package/esm2022/components/chip/lib/components/chip/chip.component.mjs +15 -3
  146. package/esm2022/components/circular-progress/lib/circular-progress.component.mjs +16 -3
  147. package/esm2022/components/datepicker/lib/datepicker.component.mjs +29 -2
  148. package/esm2022/components/datepicker/lib/directives/datepicker-input-control.directive.mjs +8 -2
  149. package/esm2022/components/daterangepicker/lib/daterangepicker.component.mjs +5 -1
  150. package/esm2022/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.mjs +4 -2
  151. package/esm2022/components/daterangepicker/lib/required.validator.mjs +9 -9
  152. package/esm2022/components/dropdown/lib/dropdown.component.mjs +1 -5
  153. package/esm2022/components/dropdown/lib/dropdown.directive.mjs +31 -4
  154. package/esm2022/components/dropdown/lib/helpers/close-current-dropdown.mjs +3 -2
  155. package/esm2022/components/error-page/lib/error-page.component.mjs +3 -1
  156. package/esm2022/components/footer/lib/footer.component.mjs +7 -3
  157. package/esm2022/components/footer/lib/helpers/create-footer-links.mjs +2 -3
  158. package/esm2022/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -2
  159. package/esm2022/components/form-field/lib/components/form-group/form-group.component.mjs +6 -3
  160. package/esm2022/components/form-field/lib/directives/form-field-error.directive.mjs +1 -1
  161. package/esm2022/components/form-field/lib/directives/form.directive.mjs +5 -1
  162. package/esm2022/components/form-field/lib/form-field.component.mjs +14 -2
  163. package/esm2022/components/form-field/lib/form-field.service.mjs +28 -7
  164. package/esm2022/components/form-field/lib/services/form-field-error.service.mjs +12 -4
  165. package/esm2022/components/header-navigation/lib/header-navigation.component.mjs +1 -1
  166. package/esm2022/components/icon/lib/helpers/unpack-icon-identifier.mjs +3 -3
  167. package/esm2022/components/icon/lib/icon.component.mjs +14 -2
  168. package/esm2022/components/inline-message/lib/inline-message.component.mjs +6 -2
  169. package/esm2022/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +2 -1
  170. package/esm2022/components/list/lib/components/list-item/list-item.component.mjs +11 -2
  171. package/esm2022/components/list/lib/list.component.mjs +2 -1
  172. package/esm2022/components/loading-spinner/lib/loading-spinner.component.mjs +4 -1
  173. package/esm2022/components/loading-spinner/lib/loading-spinner.directive.mjs +8 -1
  174. package/esm2022/components/modal/lib/components/modal-header/modal-header.component.mjs +1 -1
  175. package/esm2022/components/modal/lib/components/modal-hero/modal-hero.component.mjs +4 -1
  176. package/esm2022/components/modal/lib/directives/index.mjs +3 -1
  177. package/esm2022/components/modal/lib/directives/prevent-form-method-dialog.directive.mjs +23 -0
  178. package/esm2022/components/modal/lib/directives/prevent-method-dialog.directive.mjs +23 -0
  179. package/esm2022/components/modal/lib/modal.component.mjs +36 -17
  180. package/esm2022/components/modal/lib/modal.module.mjs +10 -4
  181. package/esm2022/components/modal/lib/modal.service.mjs +4 -3
  182. package/esm2022/components/modal/lib/models/modal-ref.mjs +19 -5
  183. package/esm2022/components/notification/lib/components/notification-item/notification-item.component.mjs +5 -5
  184. package/esm2022/components/notification/lib/directives/notification-center.directive.mjs +7 -4
  185. package/esm2022/components/notification/lib/features/with-browser-notifications.mjs +4 -5
  186. package/esm2022/components/notification/lib/features/with-load-notifications.mjs +3 -3
  187. package/esm2022/components/notification/lib/features/with-notification-transformer.mjs +3 -3
  188. package/esm2022/components/notification/lib/features/with-peristent-notifications.mjs +7 -9
  189. package/esm2022/components/notification/lib/features/with-save-notifications.mjs +3 -4
  190. package/esm2022/components/paginator/lib/paginator.component.mjs +51 -1
  191. package/esm2022/components/progress/lib/progress.component.mjs +7 -2
  192. package/esm2022/components/radio-group/lib/components/radio-button/radio-button.component.mjs +3 -1
  193. package/esm2022/components/radio-group/lib/radio-group.component.mjs +7 -1
  194. package/esm2022/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.mjs +7 -1
  195. package/esm2022/components/rail-navigation/lib/rail-navigation.component.mjs +11 -3
  196. package/esm2022/components/rich-list/lib/components/rich-list-item/rich-list-item.component.mjs +4 -6
  197. package/esm2022/components/rich-list/lib/rich-list.component.mjs +4 -1
  198. package/esm2022/components/select/lib/components/select-option/select-option.component.mjs +2 -1
  199. package/esm2022/components/select/lib/directives/select-input-control.directive.mjs +4 -1
  200. package/esm2022/components/select/lib/select.component.mjs +8 -2
  201. package/esm2022/components/slider/lib/slider.directive.mjs +7 -4
  202. package/esm2022/components/spinbox/lib/spinbox.component.mjs +10 -1
  203. package/esm2022/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +5 -2
  204. package/esm2022/components/table/lib/components/check-cell/check-cell.component.mjs +5 -2
  205. package/esm2022/components/table/lib/components/header-title/header-title.component.mjs +11 -1
  206. package/esm2022/components/table/lib/table.component.mjs +15 -1
  207. package/esm2022/components/timepicker/lib/components/timepicker-option.component.mjs +10 -2
  208. package/esm2022/components/timepicker/lib/directives/timepicker-input-control.directive.mjs +3 -1
  209. package/esm2022/components/timepicker/lib/timepicker.component.mjs +14 -4
  210. package/esm2022/components/timepicker/lib/timepicker.service.mjs +1 -8
  211. package/esm2022/components/toast/lib/components/toast-container/toast-container.component.mjs +20 -1
  212. package/esm2022/components/toast/lib/components/toast-item/toast-item.component.mjs +24 -1
  213. package/esm2022/components/toast/lib/toast.service.mjs +13 -1
  214. package/esm2022/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +4 -1
  215. package/esm2022/components/toggle-button-group/lib/toggle-button-group.component.mjs +3 -1
  216. package/esm2022/components/tooltip/lib/tooltip.component.mjs +6 -2
  217. package/esm2022/components/tooltip/lib/tooltip.directive.mjs +16 -3
  218. package/esm2022/components/wizard/lib/components/wizard-step/wizard-step.component.mjs +18 -1
  219. package/esm2022/components/wizard/lib/wizard.component.mjs +22 -4
  220. package/esm2022/lib/controllers/disabled.controller.mjs +9 -1
  221. package/esm2022/lib/controllers/readonly.controller.mjs +3 -1
  222. package/esm2022/lib/directives/click-outside.directive.mjs +2 -1
  223. package/esm2022/lib/services/window-ref.mjs +22 -4
  224. package/esm2022/theming/lib/helpers/prefers-dark-theme.mjs +1 -1
  225. package/esm2022/theming/lib/theming.service.mjs +3 -1
  226. package/esm2022/utils/lib/helpers/queue.mjs +24 -14
  227. package/fesm2022/odx-angular-cdk-checkbox-control.mjs +19 -1
  228. package/fesm2022/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  229. package/fesm2022/odx-angular-cdk-connected-overlay.mjs +1 -1
  230. package/fesm2022/odx-angular-cdk-connected-overlay.mjs.map +1 -1
  231. package/fesm2022/odx-angular-cdk-dynamic-view.mjs +3 -0
  232. package/fesm2022/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  233. package/fesm2022/odx-angular-cdk-expandable.mjs +13 -6
  234. package/fesm2022/odx-angular-cdk-expandable.mjs.map +1 -1
  235. package/fesm2022/odx-angular-cdk-option-control.mjs +2 -0
  236. package/fesm2022/odx-angular-cdk-option-control.mjs.map +1 -1
  237. package/fesm2022/odx-angular-cdk-radio-group-control.mjs +20 -0
  238. package/fesm2022/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  239. package/fesm2022/odx-angular-components-accordion.mjs +8 -3
  240. package/fesm2022/odx-angular-components-accordion.mjs.map +1 -1
  241. package/fesm2022/odx-angular-components-action-group.mjs +3 -0
  242. package/fesm2022/odx-angular-components-action-group.mjs.map +1 -1
  243. package/fesm2022/odx-angular-components-area-header.mjs +2 -1
  244. package/fesm2022/odx-angular-components-area-header.mjs.map +1 -1
  245. package/fesm2022/odx-angular-components-autocomplete.mjs +19 -4
  246. package/fesm2022/odx-angular-components-autocomplete.mjs.map +1 -1
  247. package/fesm2022/odx-angular-components-avatar.mjs +6 -2
  248. package/fesm2022/odx-angular-components-avatar.mjs.map +1 -1
  249. package/fesm2022/odx-angular-components-badge.mjs +24 -4
  250. package/fesm2022/odx-angular-components-badge.mjs.map +1 -1
  251. package/fesm2022/odx-angular-components-bar.mjs +6 -0
  252. package/fesm2022/odx-angular-components-bar.mjs.map +1 -1
  253. package/fesm2022/odx-angular-components-button-group.mjs +12 -0
  254. package/fesm2022/odx-angular-components-button-group.mjs.map +1 -1
  255. package/fesm2022/odx-angular-components-button.mjs +9 -1
  256. package/fesm2022/odx-angular-components-button.mjs.map +1 -1
  257. package/fesm2022/odx-angular-components-calendar.mjs +63 -1
  258. package/fesm2022/odx-angular-components-calendar.mjs.map +1 -1
  259. package/fesm2022/odx-angular-components-card.mjs +36 -0
  260. package/fesm2022/odx-angular-components-card.mjs.map +1 -1
  261. package/fesm2022/odx-angular-components-checkbox.mjs +9 -2
  262. package/fesm2022/odx-angular-components-checkbox.mjs.map +1 -1
  263. package/fesm2022/odx-angular-components-chip.mjs +14 -2
  264. package/fesm2022/odx-angular-components-chip.mjs.map +1 -1
  265. package/fesm2022/odx-angular-components-circular-progress.mjs +15 -2
  266. package/fesm2022/odx-angular-components-circular-progress.mjs.map +1 -1
  267. package/fesm2022/odx-angular-components-datepicker.mjs +35 -2
  268. package/fesm2022/odx-angular-components-datepicker.mjs.map +1 -1
  269. package/fesm2022/odx-angular-components-daterangepicker.mjs +15 -9
  270. package/fesm2022/odx-angular-components-daterangepicker.mjs.map +1 -1
  271. package/fesm2022/odx-angular-components-dropdown.mjs +32 -8
  272. package/fesm2022/odx-angular-components-dropdown.mjs.map +1 -1
  273. package/fesm2022/odx-angular-components-error-page.mjs +2 -0
  274. package/fesm2022/odx-angular-components-error-page.mjs.map +1 -1
  275. package/fesm2022/odx-angular-components-footer.mjs +7 -4
  276. package/fesm2022/odx-angular-components-footer.mjs.map +1 -1
  277. package/fesm2022/odx-angular-components-form-field.mjs +62 -13
  278. package/fesm2022/odx-angular-components-form-field.mjs.map +1 -1
  279. package/fesm2022/odx-angular-components-header-navigation.mjs.map +1 -1
  280. package/fesm2022/odx-angular-components-icon.mjs +15 -3
  281. package/fesm2022/odx-angular-components-icon.mjs.map +1 -1
  282. package/fesm2022/odx-angular-components-inline-message.mjs +5 -1
  283. package/fesm2022/odx-angular-components-inline-message.mjs.map +1 -1
  284. package/fesm2022/odx-angular-components-list.mjs +12 -1
  285. package/fesm2022/odx-angular-components-list.mjs.map +1 -1
  286. package/fesm2022/odx-angular-components-loading-spinner.mjs +10 -0
  287. package/fesm2022/odx-angular-components-loading-spinner.mjs.map +1 -1
  288. package/fesm2022/odx-angular-components-modal.mjs +110 -25
  289. package/fesm2022/odx-angular-components-modal.mjs.map +1 -1
  290. package/fesm2022/odx-angular-components-notification.mjs +25 -26
  291. package/fesm2022/odx-angular-components-notification.mjs.map +1 -1
  292. package/fesm2022/odx-angular-components-paginator.mjs +50 -0
  293. package/fesm2022/odx-angular-components-paginator.mjs.map +1 -1
  294. package/fesm2022/odx-angular-components-progress.mjs +6 -1
  295. package/fesm2022/odx-angular-components-progress.mjs.map +1 -1
  296. package/fesm2022/odx-angular-components-radio-group.mjs +8 -0
  297. package/fesm2022/odx-angular-components-radio-group.mjs.map +1 -1
  298. package/fesm2022/odx-angular-components-rail-navigation.mjs +16 -2
  299. package/fesm2022/odx-angular-components-rail-navigation.mjs.map +1 -1
  300. package/fesm2022/odx-angular-components-rich-list.mjs +6 -5
  301. package/fesm2022/odx-angular-components-rich-list.mjs.map +1 -1
  302. package/fesm2022/odx-angular-components-select.mjs +11 -1
  303. package/fesm2022/odx-angular-components-select.mjs.map +1 -1
  304. package/fesm2022/odx-angular-components-slider.mjs +6 -3
  305. package/fesm2022/odx-angular-components-slider.mjs.map +1 -1
  306. package/fesm2022/odx-angular-components-spinbox.mjs +9 -0
  307. package/fesm2022/odx-angular-components-spinbox.mjs.map +1 -1
  308. package/fesm2022/odx-angular-components-tab-bar.mjs +4 -1
  309. package/fesm2022/odx-angular-components-tab-bar.mjs.map +1 -1
  310. package/fesm2022/odx-angular-components-table.mjs +28 -1
  311. package/fesm2022/odx-angular-components-table.mjs.map +1 -1
  312. package/fesm2022/odx-angular-components-timepicker.mjs +24 -11
  313. package/fesm2022/odx-angular-components-timepicker.mjs.map +1 -1
  314. package/fesm2022/odx-angular-components-toast.mjs +54 -0
  315. package/fesm2022/odx-angular-components-toast.mjs.map +1 -1
  316. package/fesm2022/odx-angular-components-toggle-button-group.mjs +5 -0
  317. package/fesm2022/odx-angular-components-toggle-button-group.mjs.map +1 -1
  318. package/fesm2022/odx-angular-components-tooltip.mjs +20 -3
  319. package/fesm2022/odx-angular-components-tooltip.mjs.map +1 -1
  320. package/fesm2022/odx-angular-components-wizard.mjs +38 -3
  321. package/fesm2022/odx-angular-components-wizard.mjs.map +1 -1
  322. package/fesm2022/odx-angular-theming.mjs +2 -0
  323. package/fesm2022/odx-angular-theming.mjs.map +1 -1
  324. package/fesm2022/odx-angular-utils.mjs +23 -13
  325. package/fesm2022/odx-angular-utils.mjs.map +1 -1
  326. package/fesm2022/odx-angular.mjs +32 -3
  327. package/fesm2022/odx-angular.mjs.map +1 -1
  328. package/lib/controllers/disabled.controller.d.ts +8 -0
  329. package/lib/controllers/readonly.controller.d.ts +2 -0
  330. package/lib/directives/click-outside.directive.d.ts +1 -0
  331. package/lib/services/window-ref.d.ts +21 -3
  332. package/package.json +1 -1
  333. package/theming/lib/theming.service.d.ts +2 -0
  334. package/utils/lib/helpers/queue.d.ts +23 -13
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-footer.mjs","sources":["../../../../libs/angular/components/footer/src/lib/footer.i18n.ts","../../../../libs/angular/components/footer/src/lib/footer.config.ts","../../../../libs/angular/components/footer/src/lib/helpers/create-footer-links.ts","../../../../libs/angular/components/footer/src/lib/models/footer-variant.ts","../../../../libs/angular/components/footer/src/lib/footer.component.ts","../../../../libs/angular/components/footer/src/lib/footer.component.html","../../../../libs/angular/components/footer/src/odx-angular-components-footer.ts"],"sourcesContent":["import { TranslationObject } from '@odx/angular/internal/translate';\n\nexport default {\n en: {\n legalNotice: 'Legal notice',\n providerIdentification: 'Provider identification',\n dataProtection: 'Data protection',\n openSource: 'Open-source licenses',\n termsAndConditions: 'Terms and Conditions',\n status: 'Status',\n },\n de: {\n legalNotice: 'Rechtliche Hinweise',\n providerIdentification: 'Impressum',\n dataProtection: 'Datenschutz',\n openSource: 'Open-Source-Lizenzen',\n termsAndConditions: 'Allgemeine Geschäftsbedingungen',\n status: 'Status',\n },\n} as TranslationObject;\n","import { MainMenuLinksConfig } from '@odx/angular/components/main-menu';\nimport { buildWebsiteUrl, createConfigTokens } from '@odx/angular/utils';\nimport { Observable } from 'rxjs';\nimport { FooterLink } from './models';\n\nexport interface FooterLinksConfig extends MainMenuLinksConfig {\n dynamicLinks?: Observable<FooterLink[]>;\n}\n\n/**\n * Creates configuration tokens for the footer links, providing a structured way to inject and manage footer link configurations.\n * This utility function encapsulates the configuration for footer links, including defaults and the ability to inject custom configurations.\n *\n * @returns {Object} An object containing configuration tokens for footer links:\n * - `FooterLinksConfig`: A token for injecting the footer links configuration.\n * - `FooterLinksDefaultConfig`: A token representing the default configuration values.\n * - `injectFooterLinksConfig`: A function to inject the current footer links configuration.\n * - `provideFooterLinksConfig`: A function to provide a custom configuration for footer links.\n *\n * @example\n * ```ts\n * // In your module or component\n * @NgModule({\n * providers: [\n * provideFooterLinksConfig({\n * legalNoticeUrl: 'https://www.custom-url/legal-notice',\n * providerIdentificationUrl: 'https://www.custom-url/provider-identification',\n * dynamicLinks: myDynamicLinksObservable\n * })\n * ]\n * })\n * export class MyModule {}\n * ```\n */\nexport const { FooterLinksConfig, FooterLinksDefaultConfig, injectFooterLinksConfig, provideFooterLinksConfig } = createConfigTokens(\n 'FooterLinks',\n '@odx/angular/components/footer',\n {\n providerIdentificationUrl: buildWebsiteUrl('provideridentification'),\n legalNoticeUrl: buildWebsiteUrl('legalnotice'),\n } as FooterLinksConfig,\n);\n","import { Observable, combineLatest, map, of } from 'rxjs';\nimport { injectFooterLinksConfig } from '../footer.config';\nimport { FooterLink } from '../models';\n\n/**\n * Creates an observable stream of footer links, combining statically configured links with dynamically provided ones.\n * It leverages the footer links configuration injected from `injectFooterLinksConfig` and optionally includes\n * dynamic links if provided. All links are filtered to include only those with a non-empty URL.\n *\n * @function createFooterLinks$\n * @returns {Observable<FooterLink[]>} An Observable that emits an array of `FooterLink` objects. Each `FooterLink`\n * contains a `name` and a `url`. The observable emits updates if the set of dynamic links changes.\n */\n\nexport function createFooterLinks$(): Observable<FooterLink[]> {\n const { legalNoticeUrl, providerIdentificationUrl, dataProtectionUrl, openSourceUrl, termsAndConditionsUrl, statusUrl, dynamicLinks } =\n injectFooterLinksConfig();\n const dynamicLinks$ = dynamicLinks ?? of([]);\n const links = [\n { name: 'status', url: statusUrl },\n { name: 'termsAndConditions', url: termsAndConditionsUrl },\n { name: 'providerIdentification', url: providerIdentificationUrl },\n { name: 'openSource', url: openSourceUrl },\n { name: 'dataProtection', url: dataProtectionUrl },\n { name: 'legalNotice', url: legalNoticeUrl },\n ];\n\n return combineLatest([dynamicLinks$, of(links)]).pipe(map((links) => links.flat().filter((link): link is FooterLink => !!link.url)));\n}\n","export type FooterVariant = (typeof FooterVariant)[keyof typeof FooterVariant];\n\nexport const FooterVariant = {\n LIGHT: 'light',\n DARK: 'dark',\n} as const;\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { DynamicTextContent, DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { LinkDirective } from '@odx/angular/components/link';\nimport { LogoDirective } from '@odx/angular/components/logo';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { TranslatePipe, provideTranslations } from '@odx/angular/internal/translate';\nimport { injectElement, trackByIndex } from '@odx/angular/utils';\nimport footerTranslations from './footer.i18n';\nimport { createFooterLinks$ } from './helpers';\nimport { FooterVariant } from './models';\n\n/**\n * Represents the footer component of an application, dynamically generating links and supporting various styles.\n * This component integrates dynamic and static content for the footer, including a logo, navigational links, and a customizable description.\n */\n\n@CSSComponent('footer')\n@Component({\n standalone: true,\n selector: 'odx-footer',\n imports: [LinkDirective, LogoDirective, DynamicViewDirective, CommonModule, TranslatePipe],\n templateUrl: './footer.component.html',\n providers: [provideTranslations(footerTranslations)],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class FooterComponent {\n protected readonly footerLinks$ = createFooterLinks$();\n protected readonly trackByIndex = trackByIndex;\n public readonly element = injectElement();\n\n /**\n * The description of the footer component.\n * It can be of type DynamicTextContent or null.\n * @see {DynamicTextContent}\n */\n @Input()\n public description?: DynamicTextContent | null = null;\n\n /**\n * The variant of the footer component.\n * @see {FooterVariant}\n */\n @CSSModifier()\n @Input()\n public variant: FooterVariant = FooterVariant.LIGHT;\n}\n","<div class=\"odx-footer__inner\">\n <div class=\"odx-footer__content\">\n <ng-content></ng-content>\n </div>\n <nav class=\"odx-footer__navigation\">\n <ng-content select=\"[odxLink]\" />\n <a odxLink [href]=\"link.url\" target=\"_blank\" *ngFor=\"let link of footerLinks$ | async; trackBy: trackByIndex\">\n {{ link.name | odxTranslate | async }}\n </a>\n </nav>\n <p class=\"odx-footer__description\" *ngIf=\"description\">\n <ng-template [odxDynamicView]=\"description\"></ng-template>\n </p>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,yBAAe;AACb,IAAA,EAAE,EAAE;AACF,QAAA,WAAW,EAAE,cAAc;AAC3B,QAAA,sBAAsB,EAAE,yBAAyB;AACjD,QAAA,cAAc,EAAE,iBAAiB;AACjC,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,kBAAkB,EAAE,sBAAsB;AAC1C,QAAA,MAAM,EAAE,QAAQ;AACjB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,WAAW,EAAE,qBAAqB;AAClC,QAAA,sBAAsB,EAAE,WAAW;AACnC,QAAA,cAAc,EAAE,aAAa;AAC7B,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,kBAAkB,EAAE,iCAAiC;AACrD,QAAA,MAAM,EAAE,QAAQ;AACjB,KAAA;CACmB;;ACVtB;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AACU,MAAA,EAAE,iBAAiB,EAAE,wBAAwB,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AAA,CAAA;AAFN,IAAA,WAAW,EAAE;;AAEsC,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAnBzC,eAAe,GAAA,UAAA,CAAA;IAV3B,YAAY,CAAC,QAAQ,CAAC;AAUV,CAAA,EAAA,eAAe,CAoB3B,CAAA;4FApBY,eAAe,EAAA,UAAA,EAAA,CAAA;kBAT3B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,YAAY,EACb,OAAA,EAAA,CAAC,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,CAAC,EAE/E,SAAA,EAAA,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,EAAA,eAAA,EACnC,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,qhBAAA,EAAA,CAAA;8BAa9B,WAAW,EAAA,CAAA;sBADjB,KAAK;gBASC,OAAO,EAAA,CAAA;sBADb,KAAK;;;AE7CR;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-footer.mjs","sources":["../../../../libs/angular/components/footer/src/lib/footer.i18n.ts","../../../../libs/angular/components/footer/src/lib/footer.config.ts","../../../../libs/angular/components/footer/src/lib/helpers/create-footer-links.ts","../../../../libs/angular/components/footer/src/lib/models/footer-variant.ts","../../../../libs/angular/components/footer/src/lib/footer.component.ts","../../../../libs/angular/components/footer/src/lib/footer.component.html","../../../../libs/angular/components/footer/src/odx-angular-components-footer.ts"],"sourcesContent":["import { TranslationObject } from '@odx/angular/internal/translate';\n\nexport default {\n en: {\n legalNotice: 'Legal notice',\n providerIdentification: 'Provider identification',\n dataProtection: 'Data protection',\n openSource: 'Open-source licenses',\n termsAndConditions: 'Terms and Conditions',\n status: 'Status',\n },\n de: {\n legalNotice: 'Rechtliche Hinweise',\n providerIdentification: 'Impressum',\n dataProtection: 'Datenschutz',\n openSource: 'Open-Source-Lizenzen',\n termsAndConditions: 'Allgemeine Geschäftsbedingungen',\n status: 'Status',\n },\n} as TranslationObject;\n","import { MainMenuLinksConfig } from '@odx/angular/components/main-menu';\nimport { buildWebsiteUrl, createConfigTokens } from '@odx/angular/utils';\nimport { Observable } from 'rxjs';\nimport { FooterLink } from './models';\n\nexport interface FooterLinksConfig extends MainMenuLinksConfig {\n dynamicLinks?: Observable<FooterLink[]>;\n}\n\n/**\n * Creates configuration tokens for the footer links, providing a structured way to inject and manage footer link configurations.\n * This utility function encapsulates the configuration for footer links, including defaults and the ability to inject custom configurations.\n *\n * @returns {Object} An object containing configuration tokens for footer links:\n * - `FooterLinksConfig`: A token for injecting the footer links configuration.\n * - `FooterLinksDefaultConfig`: A token representing the default configuration values.\n * - `injectFooterLinksConfig`: A function to inject the current footer links configuration.\n * - `provideFooterLinksConfig`: A function to provide a custom configuration for footer links.\n *\n * @example\n * ```ts\n * // In your module or component\n * @NgModule({\n * providers: [\n * provideFooterLinksConfig({\n * legalNoticeUrl: 'https://www.custom-url/legal-notice',\n * providerIdentificationUrl: 'https://www.custom-url/provider-identification',\n * dynamicLinks: myDynamicLinksObservable\n * })\n * ]\n * })\n * export class MyModule {}\n * ```\n */\nexport const { FooterLinksConfig, FooterLinksDefaultConfig, injectFooterLinksConfig, provideFooterLinksConfig } = createConfigTokens(\n 'FooterLinks',\n '@odx/angular/components/footer',\n {\n providerIdentificationUrl: buildWebsiteUrl('provideridentification'),\n legalNoticeUrl: buildWebsiteUrl('legalnotice'),\n } as FooterLinksConfig,\n);\n","import { Observable, combineLatest, map, of } from 'rxjs';\nimport { injectFooterLinksConfig } from '../footer.config';\nimport { FooterLink } from '../models';\n\n/**\n * Creates an observable stream of footer links, combining statically configured links with dynamically provided ones.\n * It leverages the footer links configuration injected from `injectFooterLinksConfig` and optionally includes\n * dynamic links if provided. All links are filtered to include only those with a non-empty URL.\n *\n * @returns {Observable<FooterLink[]>} - An Observable that emits an array of `FooterLink` objects. Each `FooterLink`\n * contains a `name` and a `url`. The observable emits updates if the set of dynamic links changes.\n */\n\nexport function createFooterLinks$(): Observable<FooterLink[]> {\n const { legalNoticeUrl, providerIdentificationUrl, dataProtectionUrl, openSourceUrl, termsAndConditionsUrl, statusUrl, dynamicLinks } =\n injectFooterLinksConfig();\n const dynamicLinks$ = dynamicLinks ?? of([]);\n const links = [\n { name: 'status', url: statusUrl },\n { name: 'termsAndConditions', url: termsAndConditionsUrl },\n { name: 'providerIdentification', url: providerIdentificationUrl },\n { name: 'openSource', url: openSourceUrl },\n { name: 'dataProtection', url: dataProtectionUrl },\n { name: 'legalNotice', url: legalNoticeUrl },\n ];\n\n return combineLatest([dynamicLinks$, of(links)]).pipe(map((links) => links.flat().filter((link): link is FooterLink => !!link.url)));\n}\n","export type FooterVariant = (typeof FooterVariant)[keyof typeof FooterVariant];\n\nexport const FooterVariant = {\n LIGHT: 'light',\n DARK: 'dark',\n} as const;\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { DynamicTextContent, DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { LinkDirective } from '@odx/angular/components/link';\nimport { LogoDirective } from '@odx/angular/components/logo';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { TranslatePipe, provideTranslations } from '@odx/angular/internal/translate';\nimport { injectElement, trackByIndex } from '@odx/angular/utils';\nimport footerTranslations from './footer.i18n';\nimport { createFooterLinks$ } from './helpers';\nimport { FooterVariant } from './models';\n\n/**\n * Represents the footer component of an application, dynamically generating links and supporting various styles.\n * This component integrates dynamic and static content for the footer, including a logo, navigational links, and a customizable description.\n */\n\n@CSSComponent('footer')\n@Component({\n standalone: true,\n selector: 'odx-footer',\n imports: [LinkDirective, LogoDirective, DynamicViewDirective, CommonModule, TranslatePipe],\n templateUrl: './footer.component.html',\n providers: [provideTranslations(footerTranslations)],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class FooterComponent {\n protected readonly footerLinks$ = createFooterLinks$();\n protected readonly trackByIndex = trackByIndex;\n public readonly element = injectElement();\n\n /**\n * The description of the footer component.\n * It can be of type DynamicTextContent or null.\n *\n * @type {DynamicTextContent}\n * @default null\n */\n @Input()\n public description?: DynamicTextContent | null = null;\n\n /**\n * The variant of the footer component.\n *\n * @type {FooterVariant}\n * @default FooterVariant.LIGHT\n */\n @CSSModifier()\n @Input()\n public variant: FooterVariant = FooterVariant.LIGHT;\n}\n","<div class=\"odx-footer__inner\">\n <div class=\"odx-footer__content\">\n <ng-content></ng-content>\n </div>\n <nav class=\"odx-footer__navigation\">\n <ng-content select=\"[odxLink]\" />\n <a odxLink [href]=\"link.url\" target=\"_blank\" *ngFor=\"let link of footerLinks$ | async; trackBy: trackByIndex\">\n {{ link.name | odxTranslate | async }}\n </a>\n </nav>\n <p class=\"odx-footer__description\" *ngIf=\"description\">\n <ng-template [odxDynamicView]=\"description\"></ng-template>\n </p>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,yBAAe;AACb,IAAA,EAAE,EAAE;AACF,QAAA,WAAW,EAAE,cAAc;AAC3B,QAAA,sBAAsB,EAAE,yBAAyB;AACjD,QAAA,cAAc,EAAE,iBAAiB;AACjC,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,kBAAkB,EAAE,sBAAsB;AAC1C,QAAA,MAAM,EAAE,QAAQ;AACjB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,WAAW,EAAE,qBAAqB;AAClC,QAAA,sBAAsB,EAAE,WAAW;AACnC,QAAA,cAAc,EAAE,aAAa;AAC7B,QAAA,UAAU,EAAE,sBAAsB;AAClC,QAAA,kBAAkB,EAAE,iCAAiC;AACrD,QAAA,MAAM,EAAE,QAAQ;AACjB,KAAA;CACmB;;ACVtB;;;;;;;;;;;;;;;;;;;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A,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;AA6BlF,UAAA,CAAA;AAFN,IAAA,WAAW,EAAE;;AAEsC,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAvBzC,eAAe,GAAA,UAAA,CAAA;IAV3B,YAAY,CAAC,QAAQ,CAAC;AAUV,CAAA,EAAA,eAAe,CAwB3B,CAAA;4FAxBY,eAAe,EAAA,UAAA,EAAA,CAAA;kBAT3B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,YAAY,EACb,OAAA,EAAA,CAAC,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,CAAC,EAE/E,SAAA,EAAA,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,EAAA,eAAA,EACnC,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,qhBAAA,EAAA,CAAA;8BAe9B,WAAW,EAAA,CAAA;sBADjB,KAAK;gBAWC,OAAO,EAAA,CAAA;sBADb,KAAK;;;AEjDR;;AAEG;;;;"}
@@ -31,30 +31,50 @@ class FormFieldService extends Controller {
31
31
  /**
32
32
  * Observable that emits the currently registered control object, which includes
33
33
  * both the control instance and the associated native HTML element.
34
+ *
35
+ * @emits {FieldControl | null}
34
36
  */
35
37
  this.control$ = this.control$$.pipe(shareReplay({ bufferSize: 1, refCount: true }));
36
38
  /**
37
- * Observable that emits the ID of the current control's HTML element. Generates a unique ID if not already assigned.
39
+ * Observable that emits the ID of the current control's HTML element. Generates a unique ID
40
+ * if not already assigned.
41
+ *
42
+ * @emits {string | null}
38
43
  */
39
44
  this.controlId$ = this.control$.pipe(map((control) => (control ? control.nativeElement.id || getUniqueId('odx-form-field') : null)), shareReplay({ bufferSize: 1, refCount: true }));
40
45
  /**
41
- * Observable that emits the hint ID associated with the control, which is typically used for accessibility purposes.
46
+ * Observable that emits the hint ID associated with the control, which is typically used for accessibility
47
+ * purposes.
48
+ *
49
+ * @emits {string | null}
42
50
  */
43
51
  this.controlHintId$ = this.controlId$.pipe(map((id) => (id ? `${id}-hint` : null)), shareReplay({ bufferSize: 1, refCount: true }));
44
52
  /**
45
- * Observable that emits the error message ID associated with the control, used for linking form errors for accessibility.
53
+ * Observable that emits the error message ID associated with the control,
54
+ * used for linking form errors for accessibility.
55
+ *
56
+ * @emits {string | null}
46
57
  */
47
58
  this.controlErrorId$ = this.controlId$.pipe(map((id) => (id ? `${id}-error` : null)), shareReplay({ bufferSize: 1, refCount: true }));
48
59
  /**
49
- * Observable that emits a boolean indicating whether the control is disabled, combining both internal state and controller state.
60
+ * Observable that emits a boolean indicating whether the control is disabled,
61
+ * combining both internal state and controller state.
62
+ *
63
+ * @emits {boolean}
50
64
  */
51
65
  this.isDisabled$ = this.control$.pipe(switchMap((control) => (control ? merge(this.updateControlDisabledState(control), this.getControlDisabledState(control)) : of(false))), distinctUntilChanged(), shareReplay({ bufferSize: 1, refCount: true }));
52
66
  /**
53
- * Observable that emits a boolean indicating whether the control is required, based on the presence of the required attribute or validator.
67
+ * Observable that emits a boolean indicating whether the control is required,
68
+ * based on the presence of the required attribute or validator.
69
+ *
70
+ * @emits {boolean}
54
71
  */
55
72
  this.isRequired$ = this.control$.pipe(map((control) => (control ? control.nativeElement.hasAttribute('required') || control.control.hasValidator(Validators.required) : false)), shareReplay({ bufferSize: 1, refCount: true }));
56
73
  /**
57
- * Observable that emits a boolean indicating whether the control is readonly, based on the presence of the readonly attribute.
74
+ * Observable that emits a boolean indicating whether the control is readonly,
75
+ * based on the presence of the readonly attribute.
76
+ *
77
+ * @emits {boolean}
58
78
  */
59
79
  this.isReadonly$ = this.control$.pipe(switchMap((control) => (control && this.readonlyController ? this.readonlyController.isReadonly$ : of(false))));
60
80
  }
@@ -64,6 +84,7 @@ class FormFieldService extends Controller {
64
84
  }
65
85
  /**
66
86
  * Registers a control along with its native element to the service.
87
+ *
67
88
  * @param {AbstractControl} control - The Angular form control.
68
89
  * @param {ElementRef<HTMLElement>} nativeElement - The native element associated with the form control.
69
90
  */
@@ -120,15 +141,21 @@ class FormFieldErrorService {
120
141
  /**
121
142
  * An Observable that emits the resolved form field error based on current validations and custom errors.
122
143
  * It outputs either a `FormFieldError` object with a message and context or `null` if no errors are found.
144
+ *
145
+ * @emits {FormFieldError | null}
123
146
  */
124
147
  this.error$ = combineLatest([this.fieldError$$, this.customErrors$$]).pipe(map(([error, customErrors]) => this.resolveError(error, customErrors)), distinctUntilChanged(), shareReplay({ bufferSize: 1, refCount: true }));
125
148
  /**
126
149
  * An Observable that emits a boolean indicating whether there are any active errors.
150
+ *
151
+ * @emits {boolean}
127
152
  */
128
153
  this.hasError$ = this.error$.pipe(map((error) => error !== null));
129
154
  }
130
155
  /**
131
156
  * Gets a boolean indicating whether the current field has any errors.
157
+ *
158
+ * @returns {boolean}
132
159
  */
133
160
  get hasError() {
134
161
  return this.fieldError$$.getValue() !== null;
@@ -141,15 +168,17 @@ class FormFieldErrorService {
141
168
  }
142
169
  /**
143
170
  * Sets the first relevant error from the ValidationErrors object if any error matches the non-ignored error list.
144
- * @param errors ValidationErrors object containing potential errors from a form control.
171
+ *
172
+ * @param {ValidationErrors | null} errors ValidationErrors object containing potential errors from a form control.
145
173
  */
146
174
  setError(errors) {
147
175
  this.fieldError$$.next(this.getFirstError(errors ?? {}));
148
176
  }
149
177
  /**
150
178
  * Registers a custom error template for a specific error key.
151
- * @param key The error key to register the custom template under. If omitted, a default key is used.
152
- * @param template A TemplateRef instance containing the Angular template to display for this error.
179
+ *
180
+ * @param {string | undefined} key The error key to register the custom template under. If omitted, a default key is used.
181
+ * @param {TemplateRef<unknown>} template A TemplateRef instance containing the Angular template to display for this error.
153
182
  */
154
183
  registerCustomError(key, template) {
155
184
  this.customErrors$$.next({ ...this.customErrors$$.getValue(), [key || DEFAULT_CUSTOM_FORM_FIELD_ERROR]: template });
@@ -191,11 +220,15 @@ let FormDirective = class FormDirective {
191
220
  /**
192
221
  * An Observable that emits events every time the form is submitted. This stream is shared among multiple subscribers,
193
222
  * which means the form's submit event is processed as it occurs and is multicasted to all subscribers.
223
+ *
224
+ * @emits {Event} The submit event emitted by the form element.
194
225
  */
195
226
  this.submit$ = fromEvent(this.element.nativeElement, 'submit').pipe(takeUntilDestroyed(), share());
196
227
  /**
197
228
  * An Observable that emits events every time the form is reset. Similar to `submit$`, this stream is also shared
198
229
  * among multiple subscribers, allowing components to react to form resets reactively and concurrently.
230
+ *
231
+ * @emits {Event} The reset event emitted by the form element.
199
232
  */
200
233
  this.reset$ = fromEvent(this.element.nativeElement, 'reset').pipe(takeUntilDestroyed(), share());
201
234
  }
@@ -364,7 +397,8 @@ class FormFieldInfoComponent {
364
397
  * the form field error state including the message to be displayed, the key identifier of the error, and
365
398
  * any contextual data that might be necessary for error resolution.
366
399
  *
367
- * @see {FormFieldError}
400
+ * @type {FormFieldError}
401
+ * @default null
368
402
  */
369
403
  this.error = null;
370
404
  }
@@ -392,8 +426,11 @@ let FormGroupComponent = class FormGroupComponent {
392
426
  constructor() {
393
427
  this.element = injectElement();
394
428
  /**
395
- * An observable that emits the current error state of the form group. It is calculated by combining the error states
396
- * of all child form fields and selecting the most relevant error to display.
429
+ * An observable that emits the current error state of the form group. It is calculated by combining
430
+ * the error states of all child form fields and selecting the most relevant error to display.
431
+ *
432
+ * @type {Observable<FormFieldError | null> | null}
433
+ * @default null
397
434
  */
398
435
  this.error$ = null;
399
436
  }
@@ -426,6 +463,8 @@ const FormFieldVariant = {
426
463
  let FormFieldComponent = class FormFieldComponent {
427
464
  /**
428
465
  * Indicates whether the form field should have a warning.
466
+ *
467
+ * @type {boolean}
429
468
  */
430
469
  set hasWarning(value) {
431
470
  this.hasWarning$$.next(value);
@@ -433,6 +472,11 @@ let FormFieldComponent = class FormFieldComponent {
433
472
  get hasWarning() {
434
473
  return this.hasWarning$$.getValue();
435
474
  }
475
+ /**
476
+ * Indicates whether the form field has a label.
477
+ *
478
+ * @type {boolean}
479
+ */
436
480
  get hasLabel() {
437
481
  return !!(this.labelDirective || this.label);
438
482
  }
@@ -444,11 +488,16 @@ let FormFieldComponent = class FormFieldComponent {
444
488
  this.element = injectElement();
445
489
  /**
446
490
  * The label of the form field component.
491
+ *
492
+ * @type {string | null}
493
+ * @default null
447
494
  */
448
495
  this.label = null;
449
496
  /**
450
497
  * The variant of the form field.
451
- * @see {FormFieldVariant}
498
+ *
499
+ * @type {FormFieldVariant}
500
+ * @default FormFieldVariant.FULL
452
501
  */
453
502
  this.variant = FormFieldVariant.FULL;
454
503
  const hasWarning$ = combineLatest([this.formFieldErrorService.error$, this.hasWarning$$]).pipe(map(([hasError, hasWarning]) => hasError && hasWarning));
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-form-field.mjs","sources":["../../../../libs/angular/components/form-field/src/lib/form-field.service.ts","../../../../libs/angular/components/form-field/src/lib/form-field.config.ts","../../../../libs/angular/components/form-field/src/lib/services/form-field-error.service.ts","../../../../libs/angular/components/form-field/src/lib/directives/form.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-control.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-error.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-hint.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-label.directive.ts","../../../../libs/angular/components/form-field/src/lib/components/form-field-info/form-field-info.component.ts","../../../../libs/angular/components/form-field/src/lib/components/form-field-info/form-field-info.component.html","../../../../libs/angular/components/form-field/src/lib/components/form-group/form-group.component.ts","../../../../libs/angular/components/form-field/src/lib/components/form-group/form-group.component.html","../../../../libs/angular/components/form-field/src/lib/models/form-field-variant.ts","../../../../libs/angular/components/form-field/src/lib/form-field.component.ts","../../../../libs/angular/components/form-field/src/lib/form-field.component.html","../../../../libs/angular/components/form-field/src/lib/form-field.module.ts","../../../../libs/angular/components/form-field/src/odx-angular-components-form-field.ts"],"sourcesContent":["import { ElementRef, Injectable, OnDestroy } from '@angular/core';\nimport { AbstractControl, Validators } from '@angular/forms';\nimport { Controller, DisabledController, ReadonlyController } from '@odx/angular';\nimport { getUniqueId } from '@odx/angular/utils';\nimport { BehaviorSubject, EMPTY, Observable, distinctUntilChanged, map, merge, of, shareReplay, startWith, switchMap, tap } from 'rxjs';\n\ninterface FieldControl {\n control: AbstractControl;\n nativeElement: HTMLElement;\n}\n\n/**\n * Provides centralized form field management for Angular applications.\n * This service handles the registration and management of form controls, including their disabled and read-only states,\n * and integrates seamlessly with Angular's forms module. It manages the state of individual form fields across the application,\n * ensuring that changes to the state (such as disabled or read-only) are consistently reflected in the UI.\n *\n * Extends the `Controller` class, which provides basic functionality for managing state and interactions.\n * The service utilizes Angular's dependency injection to access and manipulate form controls and their properties,\n * making it easier to maintain and update form state across complex forms.\n *\n * @extends {Controller}\n */\n@Injectable()\nexport class FormFieldService extends Controller implements OnDestroy {\n private readonly disabledController = DisabledController.inject();\n private readonly readonlyController = ReadonlyController.inject();\n private readonly control$$ = new BehaviorSubject<FieldControl | null>(null);\n\n /**\n * Observable that emits the currently registered control object, which includes\n * both the control instance and the associated native HTML element.\n */\n public readonly control$ = this.control$$.pipe(shareReplay({ bufferSize: 1, refCount: true }));\n\n /**\n * Observable that emits the ID of the current control's HTML element. Generates a unique ID if not already assigned.\n */\n public readonly controlId$ = this.control$.pipe(\n map((control) => (control ? control.nativeElement.id || getUniqueId('odx-form-field') : null)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits the hint ID associated with the control, which is typically used for accessibility purposes.\n */\n public readonly controlHintId$ = this.controlId$.pipe(\n map((id) => (id ? `${id}-hint` : null)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits the error message ID associated with the control, used for linking form errors for accessibility.\n */\n public readonly controlErrorId$ = this.controlId$.pipe(\n map((id) => (id ? `${id}-error` : null)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits a boolean indicating whether the control is disabled, combining both internal state and controller state.\n */\n public readonly isDisabled$ = this.control$.pipe(\n switchMap((control) => (control ? merge(this.updateControlDisabledState(control), this.getControlDisabledState(control)) : of(false))),\n distinctUntilChanged(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits a boolean indicating whether the control is required, based on the presence of the required attribute or validator.\n */\n public readonly isRequired$ = this.control$.pipe(\n map((control) => (control ? control.nativeElement.hasAttribute('required') || control.control.hasValidator(Validators.required) : false)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits a boolean indicating whether the control is readonly, based on the presence of the readonly attribute.\n */\n public readonly isReadonly$ = this.control$.pipe(\n switchMap((control) => (control && this.readonlyController ? this.readonlyController.isReadonly$ : of(false))),\n );\n\n public override ngOnDestroy(): void {\n this.control$$.complete();\n super.ngOnDestroy();\n }\n\n /**\n * Registers a control along with its native element to the service.\n * @param {AbstractControl} control - The Angular form control.\n * @param {ElementRef<HTMLElement>} nativeElement - The native element associated with the form control.\n */\n public registerControl(control: AbstractControl, { nativeElement }: ElementRef<HTMLElement>): void {\n this.control$$.next({ control, nativeElement });\n }\n\n /**\n * Removes the currently registered control from the service.\n */\n public removeControl(): void {\n this.control$$.next(null);\n }\n\n private updateControlDisabledState({ control }: FieldControl): Observable<boolean> {\n if (this.disabledController) {\n return this.disabledController.isDisabled$.pipe(\n tap((state) => {\n if (state) {\n control.disable();\n } else {\n control.enable();\n }\n }),\n );\n }\n return EMPTY;\n }\n\n private getControlDisabledState({ control }: FieldControl): Observable<boolean> {\n return control.statusChanges.pipe(\n startWith(control.status),\n map((status) => status === 'DISABLED'),\n distinctUntilChanged(),\n );\n }\n}\n","import { createConfigTokens } from '@odx/angular/utils';\nimport { FormFieldErrorResolvers } from './models';\n\nexport interface FormFieldConfig {\n /**\n * Object of error resolvers used to resolve error messages globally\n * @default {}\n */\n errors: FormFieldErrorResolvers;\n /**\n * Detect form field control changes on `blur` and/or `change`\n * @deprecated Does not have any effect since version 3.2.2\n * @default ['blur']\n */\n updateOn: Array<'blur' | 'change'>;\n ignoreErrors: string[];\n}\n\nexport const { FormFieldDefaultConfig, FormFieldConfig, injectFormFieldConfig, provideFormFieldConfig } = createConfigTokens(\n 'FormField',\n '@odx/angular/components/form-field',\n {\n errors: {},\n ignoreErrors: [],\n updateOn: ['blur'],\n } as FormFieldConfig,\n);\n","import { Injectable, OnDestroy, TemplateRef } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\nimport { isTemplateRef } from '@odx/angular/utils';\nimport { BehaviorSubject, combineLatest, distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { injectFormFieldConfig } from '../form-field.config';\nimport { FormFieldError } from '../models';\n\nconst DEFAULT_CUSTOM_FORM_FIELD_ERROR = '@odx/angular/form-field/default-error';\nconst DEFAULT_ERROR_RESOLVER = () => '';\n\ninterface NgFormFieldError {\n key: string;\n context: unknown;\n}\n\ntype CustomFormFieldErrors = Record<string, TemplateRef<unknown>>;\n\n/**\n * Manages and resolves form field errors by integrating custom error messages and templates.\n * This service provides reactive observables for error states that can be used to display custom error messages in templates.\n * It supports both string-based error messages and Angular templates for richer error displays.\n */\n@Injectable()\nexport class FormFieldErrorService implements OnDestroy {\n private readonly config = injectFormFieldConfig();\n private readonly fieldError$$ = new BehaviorSubject<NgFormFieldError | null>(null);\n private readonly customErrors$$ = new BehaviorSubject<CustomFormFieldErrors>({});\n\n /**\n * An Observable that emits the resolved form field error based on current validations and custom errors.\n * It outputs either a `FormFieldError` object with a message and context or `null` if no errors are found.\n */\n public readonly error$ = combineLatest([this.fieldError$$, this.customErrors$$]).pipe(\n map(([error, customErrors]) => this.resolveError(error, customErrors)),\n distinctUntilChanged(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * An Observable that emits a boolean indicating whether there are any active errors.\n */\n public readonly hasError$ = this.error$.pipe(map((error) => error !== null));\n\n /**\n * Gets a boolean indicating whether the current field has any errors.\n */\n public get hasError(): boolean {\n return this.fieldError$$.getValue() !== null;\n }\n\n public ngOnDestroy(): void {\n this.fieldError$$.next(null);\n this.customErrors$$.next({});\n this.fieldError$$.complete();\n this.customErrors$$.complete();\n }\n\n /**\n * Sets the first relevant error from the ValidationErrors object if any error matches the non-ignored error list.\n * @param errors ValidationErrors object containing potential errors from a form control.\n */\n public setError(errors?: ValidationErrors | null): void {\n this.fieldError$$.next(this.getFirstError(errors ?? {}));\n }\n\n /**\n * Registers a custom error template for a specific error key.\n * @param key The error key to register the custom template under. If omitted, a default key is used.\n * @param template A TemplateRef instance containing the Angular template to display for this error.\n */\n public registerCustomError(key: string | undefined, template: TemplateRef<unknown>): void {\n this.customErrors$$.next({ ...this.customErrors$$.getValue(), [key || DEFAULT_CUSTOM_FORM_FIELD_ERROR]: template });\n }\n\n private getFirstError(errors: ValidationErrors): NgFormFieldError | null {\n const [key, context] = Object.entries(errors ?? {}).find(([errorKey]) => !this.config.ignoreErrors.includes(errorKey)) ?? [];\n\n return key ? { key, context } : null;\n }\n\n private resolveError(error: NgFormFieldError | null, customErrors: CustomFormFieldErrors): FormFieldError | null {\n if (!error) return null;\n const { key, context } = error;\n const message = customErrors[key] ?? customErrors[DEFAULT_CUSTOM_FORM_FIELD_ERROR];\n if (isTemplateRef(message)) {\n return {\n key,\n message,\n context: { $implicit: context },\n };\n }\n\n const getMessage = this.config.errors[key] ?? DEFAULT_ERROR_RESOLVER;\n return { key, message: getMessage(context) };\n }\n}\n","import { Directive } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { fromEvent, share } from 'rxjs';\n\n/**\n * Represents a directive for handling form-related functionality.\n * This directive listens for form submit and reset events, making them observable, which can be used to handle\n * form interactions more reactively within Angular applications.\n */\n@CSSComponent('form')\n@Directive({\n standalone: true,\n selector: 'form[odxForm]',\n exportAs: 'odxForm',\n})\nexport class FormDirective {\n public readonly element = injectElement<HTMLFormElement>();\n\n /**\n * An Observable that emits events every time the form is submitted. This stream is shared among multiple subscribers,\n * which means the form's submit event is processed as it occurs and is multicasted to all subscribers.\n */\n public readonly submit$ = fromEvent<Event>(this.element.nativeElement, 'submit').pipe(takeUntilDestroyed(), share());\n\n /**\n * An Observable that emits events every time the form is reset. Similar to `submit$`, this stream is also shared\n * among multiple subscribers, allowing components to react to form resets reactively and concurrently.\n */\n public readonly reset$ = fromEvent<Event>(this.element.nativeElement, 'reset').pipe(takeUntilDestroyed(), share());\n}\n","import { Directive, inject, OnDestroy, OnInit } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AbstractControl, FormControl, NgControl } from '@angular/forms';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { booleanToOptionalAttributeString, injectElement, reactiveAttributeBinding } from '@odx/angular/utils';\nimport { EMPTY, fromEvent, map, merge, Observable, of, startWith, Subject, switchMap } from 'rxjs';\nimport { FormFieldService } from '../form-field.service';\nimport { FormFieldErrorService } from '../services';\nimport { FormDirective } from './form.directive';\n\n/**\n * Represents a directive that provides control functionality for a form field.\n * This directive is responsible for registering the control with the form field service,\n * handling control changes, and managing form field attributes and error states.\n */\n@CSSComponent('form-field-control')\n@Directive({\n standalone: true,\n selector: '[odxFormFieldControl]',\n exportAs: 'odxFormFieldControl',\n})\nexport class FormFieldControlDirective implements OnInit, OnDestroy {\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n private readonly form = inject(FormDirective, { optional: true, skipSelf: true });\n private readonly forceValidation$$ = new Subject<void>();\n private readonly onFormSubmit$ = this.form?.submit$ ?? EMPTY;\n private readonly formFieldService = inject(FormFieldService);\n private readonly formFieldErrorService = inject(FormFieldErrorService);\n private readonly takeUntilDestroyed = takeUntilDestroyed();\n public readonly element = injectElement();\n\n constructor() {\n reactiveAttributeBinding(this.formFieldService.controlId$, 'id');\n reactiveAttributeBinding(this.formFieldService.controlHintId$, 'aria-describedby');\n reactiveAttributeBinding(this.formFieldService.isReadonly$, 'readonly');\n reactiveAttributeBinding(this.formFieldService.isDisabled$.pipe(map(booleanToOptionalAttributeString)), 'aria-disabled');\n reactiveAttributeBinding(this.formFieldService.isReadonly$.pipe(map(booleanToOptionalAttributeString)), 'aria-readonly');\n reactiveAttributeBinding(this.formFieldService.isRequired$.pipe(map(booleanToOptionalAttributeString)), 'aria-required');\n reactiveAttributeBinding(this.formFieldErrorService.hasError$.pipe(map(booleanToOptionalAttributeString)), 'aria-invalid');\n reactiveAttributeBinding(\n this.formFieldErrorService.hasError$.pipe(switchMap((hasError) => (hasError ? this.formFieldService.controlErrorId$ : of(null)))),\n 'aria-errormessage',\n );\n }\n\n public ngOnInit() {\n const control = this.ngControl?.control;\n this.formFieldService.registerControl(control ?? new FormControl(), this.element);\n if (!control) return;\n this.patchControl(control);\n\n const controlChanges$ = merge(this.registerOnStatusChange(control), this.registerOnBlur(control));\n controlChanges$.pipe(this.takeUntilDestroyed).subscribe(() => {\n this.formFieldErrorService.setError(control.touched ? control.errors : null);\n });\n this.onFormSubmit$.pipe(this.takeUntilDestroyed).subscribe(() => control.markAsTouched({ onlySelf: true }));\n }\n\n public ngOnDestroy(): void {\n this.formFieldService.removeControl();\n }\n\n private registerOnBlur({ status, statusChanges }: AbstractControl): Observable<unknown> {\n return fromEvent(this.element.nativeElement, 'focusout', { once: true }).pipe(switchMap(() => statusChanges.pipe(startWith(status))));\n }\n\n private registerOnStatusChange({ statusChanges }: AbstractControl): Observable<unknown> {\n return merge(statusChanges, this.forceValidation$$);\n }\n\n private patchControl(control: AbstractControl): void {\n const originalMarkAsTouched = control.markAsTouched;\n control.markAsTouched = (...args) => {\n originalMarkAsTouched.apply(control, args);\n this.forceValidation$$.next();\n };\n }\n}\n","import { Directive, inject, Input, OnInit, TemplateRef } from '@angular/core';\nimport { FormFieldErrorService } from '../services';\n\n/**\n * Directive for displaying custom error messages in a form field.\n */\n@Directive({\n standalone: true,\n selector: '[odxFormFieldError]',\n})\nexport class FormFieldErrorDirective implements OnInit {\n private readonly formFieldErrorService = inject(FormFieldErrorService, { skipSelf: true });\n private readonly template = inject(TemplateRef, { self: true });\n\n /**\n * The key used to identify the custom error message.\n */\n @Input('odxFormFieldError')\n public key?: string;\n\n public ngOnInit() {\n this.formFieldErrorService.registerCustomError(this.key, this.template);\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { reactiveAttributeBinding } from '@odx/angular/utils';\nimport { FormFieldService } from '../form-field.service';\n\n/**\n * Directive for displaying a hint within a form field.\n */\n@Directive({\n standalone: true,\n selector: 'odx-form-field-hint',\n host: {\n '[class.odx-form-field__hint]': 'true',\n },\n})\nexport class FormFieldHintDirective {\n protected readonly formFieldService = inject(FormFieldService, { skipSelf: true });\n\n constructor() {\n reactiveAttributeBinding(inject(FormFieldService).controlHintId$, 'id');\n }\n}\n","import { Directive } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n/**\n * Directive for the label element within a form field.\n */\n@CSSComponent('form-field-label')\n@Directive({\n standalone: true,\n selector: 'odx-form-field-label',\n})\nexport class FormFieldLabelDirective {\n public readonly element = injectElement();\n}\n","import { Component, inject, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { FormFieldHintDirective } from '../../directives';\nimport { FormFieldService } from '../../form-field.service';\nimport { FormFieldError } from '../../models';\n\n/**\n * A component that displays form field information such as hints or error messages, providing feedback to the user.\n * It integrates with the `FormFieldService` to reactively update and display this information based on the state of a\n * form field. The component uses dynamic content loading to facilitate the rendering of custom template-driven or\n * reactive hints and error messages, enhancing the flexibility and reusability of form validations and user prompts.\n */\n@Component({\n standalone: true,\n selector: 'odx-form-field-info',\n templateUrl: './form-field-info.component.html',\n encapsulation: ViewEncapsulation.None,\n imports: [CoreModule, DynamicViewDirective, FormFieldHintDirective],\n host: {\n '[class.odx-form-field__info]': 'true',\n },\n})\nexport class FormFieldInfoComponent {\n protected readonly formFieldService = inject(FormFieldService);\n\n /**\n * Input property that takes a `FormFieldError` object. This object contains detailed information about\n * the form field error state including the message to be displayed, the key identifier of the error, and\n * any contextual data that might be necessary for error resolution.\n *\n * @see {FormFieldError}\n */\n @Input()\n public error: FormFieldError | null = null;\n}\n","<span class=\"odx-form-field-error\" [attr.id]=\"formFieldService.controlErrorId$ | async\" *ngIf=\"error; else hint\">\n <ng-template [odxDynamicView]=\"error.message\" [odxDynamicViewContext]=\"error.context\"></ng-template>\n</span>\n<ng-template #hint>\n <ng-content></ng-content>\n</ng-template>\n","import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, QueryList, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { Observable, combineLatest, map, startWith, switchMap } from 'rxjs';\nimport { FormFieldService } from '../../form-field.service';\nimport { FormFieldError } from '../../models';\nimport { FormFieldErrorService } from '../../services';\nimport { FormFieldInfoComponent } from '../form-field-info/form-field-info.component';\n\n/**\n * A component that aggregates multiple form field error services to manage and display error states across\n * a group of form fields. It facilitates centralized error handling and dynamic updates to error messages,\n * making it ideal for forms with complex validation rules or multiple data entry points.\n *\n * This component dynamically listens to changes in error states from its child components and updates the\n * error information displayed to the user based on the most relevant error.\n */\n@CSSComponent('form-group')\n@Component({\n standalone: true,\n selector: 'odx-form-group',\n templateUrl: './form-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CoreModule, FormFieldInfoComponent],\n providers: [FormFieldService],\n})\nexport class FormGroupComponent implements AfterContentInit {\n public readonly element = injectElement();\n\n /**\n * An observable that emits the current error state of the form group. It is calculated by combining the error states\n * of all child form fields and selecting the most relevant error to display.\n */\n public error$: Observable<FormFieldError | null> | null = null;\n\n /**\n * A QueryList containing all instances of FormFieldErrorService used by child components of this form group. This list\n * is used to subscribe to error changes in all child components and dynamically update the group's error state.\n */\n @ContentChildren(FormFieldErrorService, { descendants: false })\n public formFieldErrorServices!: QueryList<FormFieldErrorService>;\n\n public ngAfterContentInit() {\n this.error$ = this.formFieldErrorServices.changes.pipe(\n startWith<QueryList<FormFieldErrorService>>(this.formFieldErrorServices),\n switchMap((services) => combineLatest(services.map((service) => service.error$))),\n map((errors) => errors.find((error) => error !== null) ?? null),\n );\n }\n}\n","<div class=\"odx-form-group__content\" odxLayout=\"grid\">\n <ng-content select=\"odx-form-field\"> </ng-content>\n</div>\n<odx-form-field-info [error]=\"error$ | async\">\n <ng-content select=\"odx-form-field-hint\"></ng-content>\n</odx-form-field-info>\n","export type FormFieldVariant = (typeof FormFieldVariant)[keyof typeof FormFieldVariant];\n\nexport const FormFieldVariant = {\n FULL: 'full',\n SIMPLE: 'simple',\n HORIZONTAL: 'horizontal',\n} as const;\n","import { booleanAttribute, ChangeDetectionStrategy, Component, ContentChild, ElementRef, inject, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, DisabledController, ReadonlyController } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, reactiveClassBinding } from '@odx/angular/utils';\nimport { BehaviorSubject, combineLatest, map } from 'rxjs';\nimport { FormFieldInfoComponent, FormGroupComponent } from './components';\nimport { FormFieldLabelDirective } from './directives';\nimport { FormFieldService } from './form-field.service';\nimport { FormFieldVariant } from './models';\nimport { FormFieldErrorService } from './services';\n\n/**\n * Represents a form field component.\n */\n@CSSComponent('form-field')\n@Component({\n standalone: true,\n selector: 'odx-form-field',\n imports: [CoreModule, FormFieldInfoComponent, FormFieldLabelDirective],\n templateUrl: './form-field.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [FormFieldService, FormFieldErrorService, DisabledController.connect(), ReadonlyController.connect()],\n})\nexport class FormFieldComponent {\n protected readonly hasWarning$$ = new BehaviorSubject(false);\n\n protected readonly formGroup = inject(FormGroupComponent, { optional: true, host: true });\n protected readonly formFieldService = inject(FormFieldService, { self: true });\n protected readonly formFieldErrorService = inject(FormFieldErrorService, { self: true });\n public readonly element = injectElement();\n\n /**\n * The label directive associated with the form field component.\n * @see {FormFieldLabelDirective}\n */\n @ContentChild(FormFieldLabelDirective)\n public labelDirective?: FormFieldLabelDirective;\n\n /**\n * The control element of the form field component.\n */\n @ViewChild('control')\n public controlElement!: ElementRef<HTMLDivElement>;\n\n /**\n * The label of the form field component.\n */\n @Input()\n public label?: string | null = null;\n\n /**\n * Indicates whether the form field should have a warning.\n */\n @Input({ transform: booleanAttribute })\n public set hasWarning(value: boolean) {\n this.hasWarning$$.next(value);\n }\n public get hasWarning(): boolean {\n return this.hasWarning$$.getValue();\n }\n\n /**\n * The variant of the form field.\n * @see {FormFieldVariant}\n */\n @CSSModifier()\n @Input()\n public variant: FormFieldVariant | null = FormFieldVariant.FULL;\n\n public get hasLabel(): boolean {\n return !!(this.labelDirective || this.label);\n }\n\n constructor() {\n const hasWarning$ = combineLatest([this.formFieldErrorService.error$, this.hasWarning$$]).pipe(map(([hasError, hasWarning]) => hasError && hasWarning));\n reactiveClassBinding(this.formFieldService.isRequired$, 'odx-form-field--required');\n reactiveClassBinding(this.formFieldService.isDisabled$, 'is-disabled');\n reactiveClassBinding(this.formFieldService.isReadonly$, 'is-readonly');\n reactiveClassBinding(this.formFieldErrorService.hasError$, 'has-error');\n reactiveClassBinding(hasWarning$, 'has-warning');\n }\n}\n","<label class=\"odx-form-field__label\" [attr.for]=\"formFieldService.controlId$ | async\" [attr.aria-owns]=\"formFieldService.controlId$ | async\" *ngIf=\"hasLabel\">\n <ng-container *ngIf=\"label; else labelTemplate\">\n <odx-form-field-label>{{ label }}</odx-form-field-label>\n <span class=\"odx-form-field__label-is-required\" *ngIf=\"formFieldService.isRequired$ | async\">*</span>\n </ng-container>\n <ng-template #labelTemplate>\n <ng-content select=\"odx-form-field-label\"></ng-content>\n <span class=\"odx-form-field__label-is-required\" *ngIf=\"formFieldService.isRequired$ | async\">*</span>\n </ng-template>\n</label>\n<div class=\"odx-form-field__inner\">\n <div class=\"odx-form-field__control\" #control>\n <div class=\"odx-form-field__prefix\">\n <ng-content select=\"[odxFormFieldPrefix]\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"odx-form-field__suffix\">\n <ng-content select=\"[odxFormFieldSuffix]\"></ng-content>\n </div>\n </div>\n <odx-form-field-info [error]=\"formFieldErrorService.error$ | async\" *ngIf=\"!formGroup\">\n <ng-content select=\"odx-form-field-hint\"></ng-content>\n </odx-form-field-info>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { FormGroupComponent } from './components';\nimport { FormDirective, FormFieldControlDirective, FormFieldErrorDirective, FormFieldHintDirective, FormFieldLabelDirective } from './directives';\nimport { FormFieldComponent } from './form-field.component';\n\nconst modules = [\n FormFieldComponent,\n FormGroupComponent,\n FormDirective,\n FormFieldControlDirective,\n FormFieldErrorDirective,\n FormFieldHintDirective,\n FormFieldLabelDirective,\n];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class FormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA;;;;;;;;;;;AAWG;AAEG,MAAO,gBAAiB,SAAQ,UAAU,CAAA;AADhD,IAAA,WAAA,GAAA;;AAEmB,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAsB,IAAI,CAAC,CAAC;AAE5E;;;AAGG;QACa,IAAQ,CAAA,QAAA,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,UAA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-angular-components-form-field.mjs","sources":["../../../../libs/angular/components/form-field/src/lib/form-field.service.ts","../../../../libs/angular/components/form-field/src/lib/form-field.config.ts","../../../../libs/angular/components/form-field/src/lib/services/form-field-error.service.ts","../../../../libs/angular/components/form-field/src/lib/directives/form.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-control.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-error.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-hint.directive.ts","../../../../libs/angular/components/form-field/src/lib/directives/form-field-label.directive.ts","../../../../libs/angular/components/form-field/src/lib/components/form-field-info/form-field-info.component.ts","../../../../libs/angular/components/form-field/src/lib/components/form-field-info/form-field-info.component.html","../../../../libs/angular/components/form-field/src/lib/components/form-group/form-group.component.ts","../../../../libs/angular/components/form-field/src/lib/components/form-group/form-group.component.html","../../../../libs/angular/components/form-field/src/lib/models/form-field-variant.ts","../../../../libs/angular/components/form-field/src/lib/form-field.component.ts","../../../../libs/angular/components/form-field/src/lib/form-field.component.html","../../../../libs/angular/components/form-field/src/lib/form-field.module.ts","../../../../libs/angular/components/form-field/src/odx-angular-components-form-field.ts"],"sourcesContent":["import { ElementRef, Injectable, OnDestroy } from '@angular/core';\nimport { AbstractControl, Validators } from '@angular/forms';\nimport { Controller, DisabledController, ReadonlyController } from '@odx/angular';\nimport { getUniqueId } from '@odx/angular/utils';\nimport { BehaviorSubject, EMPTY, Observable, distinctUntilChanged, map, merge, of, shareReplay, startWith, switchMap, tap } from 'rxjs';\n\ninterface FieldControl {\n control: AbstractControl;\n nativeElement: HTMLElement;\n}\n\n/**\n * Provides centralized form field management for Angular applications.\n * This service handles the registration and management of form controls, including their disabled and read-only states,\n * and integrates seamlessly with Angular's forms module. It manages the state of individual form fields across the application,\n * ensuring that changes to the state (such as disabled or read-only) are consistently reflected in the UI.\n *\n * Extends the `Controller` class, which provides basic functionality for managing state and interactions.\n * The service utilizes Angular's dependency injection to access and manipulate form controls and their properties,\n * making it easier to maintain and update form state across complex forms.\n *\n * @extends {Controller}\n */\n@Injectable()\nexport class FormFieldService extends Controller implements OnDestroy {\n private readonly disabledController = DisabledController.inject();\n private readonly readonlyController = ReadonlyController.inject();\n private readonly control$$ = new BehaviorSubject<FieldControl | null>(null);\n\n /**\n * Observable that emits the currently registered control object, which includes\n * both the control instance and the associated native HTML element.\n *\n * @emits {FieldControl | null}\n */\n public readonly control$ = this.control$$.pipe(shareReplay({ bufferSize: 1, refCount: true }));\n\n /**\n * Observable that emits the ID of the current control's HTML element. Generates a unique ID\n * if not already assigned.\n *\n * @emits {string | null}\n */\n public readonly controlId$ = this.control$.pipe(\n map((control) => (control ? control.nativeElement.id || getUniqueId('odx-form-field') : null)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits the hint ID associated with the control, which is typically used for accessibility\n * purposes.\n *\n * @emits {string | null}\n */\n public readonly controlHintId$ = this.controlId$.pipe(\n map((id) => (id ? `${id}-hint` : null)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits the error message ID associated with the control,\n * used for linking form errors for accessibility.\n *\n * @emits {string | null}\n */\n public readonly controlErrorId$ = this.controlId$.pipe(\n map((id) => (id ? `${id}-error` : null)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits a boolean indicating whether the control is disabled,\n * combining both internal state and controller state.\n *\n * @emits {boolean}\n */\n public readonly isDisabled$ = this.control$.pipe(\n switchMap((control) => (control ? merge(this.updateControlDisabledState(control), this.getControlDisabledState(control)) : of(false))),\n distinctUntilChanged(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits a boolean indicating whether the control is required,\n * based on the presence of the required attribute or validator.\n *\n * @emits {boolean}\n */\n public readonly isRequired$ = this.control$.pipe(\n map((control) => (control ? control.nativeElement.hasAttribute('required') || control.control.hasValidator(Validators.required) : false)),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * Observable that emits a boolean indicating whether the control is readonly,\n * based on the presence of the readonly attribute.\n *\n * @emits {boolean}\n */\n public readonly isReadonly$ = this.control$.pipe(\n switchMap((control) => (control && this.readonlyController ? this.readonlyController.isReadonly$ : of(false))),\n );\n\n public override ngOnDestroy(): void {\n this.control$$.complete();\n super.ngOnDestroy();\n }\n\n /**\n * Registers a control along with its native element to the service.\n *\n * @param {AbstractControl} control - The Angular form control.\n * @param {ElementRef<HTMLElement>} nativeElement - The native element associated with the form control.\n */\n public registerControl(control: AbstractControl, { nativeElement }: ElementRef<HTMLElement>): void {\n this.control$$.next({ control, nativeElement });\n }\n\n /**\n * Removes the currently registered control from the service.\n */\n public removeControl(): void {\n this.control$$.next(null);\n }\n\n private updateControlDisabledState({ control }: FieldControl): Observable<boolean> {\n if (this.disabledController) {\n return this.disabledController.isDisabled$.pipe(\n tap((state) => {\n if (state) {\n control.disable();\n } else {\n control.enable();\n }\n }),\n );\n }\n return EMPTY;\n }\n\n private getControlDisabledState({ control }: FieldControl): Observable<boolean> {\n return control.statusChanges.pipe(\n startWith(control.status),\n map((status) => status === 'DISABLED'),\n distinctUntilChanged(),\n );\n }\n}\n","import { createConfigTokens } from '@odx/angular/utils';\nimport { FormFieldErrorResolvers } from './models';\n\nexport interface FormFieldConfig {\n /**\n * Object of error resolvers used to resolve error messages globally\n * @default {}\n */\n errors: FormFieldErrorResolvers;\n /**\n * Detect form field control changes on `blur` and/or `change`\n * @deprecated Does not have any effect since version 3.2.2\n * @default ['blur']\n */\n updateOn: Array<'blur' | 'change'>;\n ignoreErrors: string[];\n}\n\nexport const { FormFieldDefaultConfig, FormFieldConfig, injectFormFieldConfig, provideFormFieldConfig } = createConfigTokens(\n 'FormField',\n '@odx/angular/components/form-field',\n {\n errors: {},\n ignoreErrors: [],\n updateOn: ['blur'],\n } as FormFieldConfig,\n);\n","import { Injectable, OnDestroy, TemplateRef } from '@angular/core';\nimport { ValidationErrors } from '@angular/forms';\nimport { isTemplateRef } from '@odx/angular/utils';\nimport { BehaviorSubject, combineLatest, distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { injectFormFieldConfig } from '../form-field.config';\nimport { FormFieldError } from '../models';\n\nconst DEFAULT_CUSTOM_FORM_FIELD_ERROR = '@odx/angular/form-field/default-error';\nconst DEFAULT_ERROR_RESOLVER = () => '';\n\ninterface NgFormFieldError {\n key: string;\n context: unknown;\n}\n\ntype CustomFormFieldErrors = Record<string, TemplateRef<unknown>>;\n\n/**\n * Manages and resolves form field errors by integrating custom error messages and templates.\n * This service provides reactive observables for error states that can be used to display custom error messages in templates.\n * It supports both string-based error messages and Angular templates for richer error displays.\n */\n@Injectable()\nexport class FormFieldErrorService implements OnDestroy {\n private readonly config = injectFormFieldConfig();\n private readonly fieldError$$ = new BehaviorSubject<NgFormFieldError | null>(null);\n private readonly customErrors$$ = new BehaviorSubject<CustomFormFieldErrors>({});\n\n /**\n * An Observable that emits the resolved form field error based on current validations and custom errors.\n * It outputs either a `FormFieldError` object with a message and context or `null` if no errors are found.\n *\n * @emits {FormFieldError | null}\n */\n public readonly error$ = combineLatest([this.fieldError$$, this.customErrors$$]).pipe(\n map(([error, customErrors]) => this.resolveError(error, customErrors)),\n distinctUntilChanged(),\n shareReplay({ bufferSize: 1, refCount: true }),\n );\n\n /**\n * An Observable that emits a boolean indicating whether there are any active errors.\n *\n * @emits {boolean}\n */\n public readonly hasError$ = this.error$.pipe(map((error) => error !== null));\n\n /**\n * Gets a boolean indicating whether the current field has any errors.\n *\n * @returns {boolean}\n */\n public get hasError(): boolean {\n return this.fieldError$$.getValue() !== null;\n }\n\n public ngOnDestroy(): void {\n this.fieldError$$.next(null);\n this.customErrors$$.next({});\n this.fieldError$$.complete();\n this.customErrors$$.complete();\n }\n\n /**\n * Sets the first relevant error from the ValidationErrors object if any error matches the non-ignored error list.\n *\n * @param {ValidationErrors | null} errors ValidationErrors object containing potential errors from a form control.\n */\n public setError(errors?: ValidationErrors | null): void {\n this.fieldError$$.next(this.getFirstError(errors ?? {}));\n }\n\n /**\n * Registers a custom error template for a specific error key.\n *\n * @param {string | undefined} key The error key to register the custom template under. If omitted, a default key is used.\n * @param {TemplateRef<unknown>} template A TemplateRef instance containing the Angular template to display for this error.\n */\n public registerCustomError(key: string | undefined, template: TemplateRef<unknown>): void {\n this.customErrors$$.next({ ...this.customErrors$$.getValue(), [key || DEFAULT_CUSTOM_FORM_FIELD_ERROR]: template });\n }\n\n private getFirstError(errors: ValidationErrors): NgFormFieldError | null {\n const [key, context] = Object.entries(errors ?? {}).find(([errorKey]) => !this.config.ignoreErrors.includes(errorKey)) ?? [];\n\n return key ? { key, context } : null;\n }\n\n private resolveError(error: NgFormFieldError | null, customErrors: CustomFormFieldErrors): FormFieldError | null {\n if (!error) return null;\n const { key, context } = error;\n const message = customErrors[key] ?? customErrors[DEFAULT_CUSTOM_FORM_FIELD_ERROR];\n if (isTemplateRef(message)) {\n return {\n key,\n message,\n context: { $implicit: context },\n };\n }\n\n const getMessage = this.config.errors[key] ?? DEFAULT_ERROR_RESOLVER;\n return { key, message: getMessage(context) };\n }\n}\n","import { Directive } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { fromEvent, share } from 'rxjs';\n\n/**\n * Represents a directive for handling form-related functionality.\n * This directive listens for form submit and reset events, making them observable, which can be used to handle\n * form interactions more reactively within Angular applications.\n */\n@CSSComponent('form')\n@Directive({\n standalone: true,\n selector: 'form[odxForm]',\n exportAs: 'odxForm',\n})\nexport class FormDirective {\n public readonly element = injectElement<HTMLFormElement>();\n\n /**\n * An Observable that emits events every time the form is submitted. This stream is shared among multiple subscribers,\n * which means the form's submit event is processed as it occurs and is multicasted to all subscribers.\n *\n * @emits {Event} The submit event emitted by the form element.\n */\n public readonly submit$ = fromEvent<Event>(this.element.nativeElement, 'submit').pipe(takeUntilDestroyed(), share());\n\n /**\n * An Observable that emits events every time the form is reset. Similar to `submit$`, this stream is also shared\n * among multiple subscribers, allowing components to react to form resets reactively and concurrently.\n *\n * @emits {Event} The reset event emitted by the form element.\n */\n public readonly reset$ = fromEvent<Event>(this.element.nativeElement, 'reset').pipe(takeUntilDestroyed(), share());\n}\n","import { Directive, inject, OnDestroy, OnInit } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AbstractControl, FormControl, NgControl } from '@angular/forms';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { booleanToOptionalAttributeString, injectElement, reactiveAttributeBinding } from '@odx/angular/utils';\nimport { EMPTY, fromEvent, map, merge, Observable, of, startWith, Subject, switchMap } from 'rxjs';\nimport { FormFieldService } from '../form-field.service';\nimport { FormFieldErrorService } from '../services';\nimport { FormDirective } from './form.directive';\n\n/**\n * Represents a directive that provides control functionality for a form field.\n * This directive is responsible for registering the control with the form field service,\n * handling control changes, and managing form field attributes and error states.\n */\n@CSSComponent('form-field-control')\n@Directive({\n standalone: true,\n selector: '[odxFormFieldControl]',\n exportAs: 'odxFormFieldControl',\n})\nexport class FormFieldControlDirective implements OnInit, OnDestroy {\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n private readonly form = inject(FormDirective, { optional: true, skipSelf: true });\n private readonly forceValidation$$ = new Subject<void>();\n private readonly onFormSubmit$ = this.form?.submit$ ?? EMPTY;\n private readonly formFieldService = inject(FormFieldService);\n private readonly formFieldErrorService = inject(FormFieldErrorService);\n private readonly takeUntilDestroyed = takeUntilDestroyed();\n public readonly element = injectElement();\n\n constructor() {\n reactiveAttributeBinding(this.formFieldService.controlId$, 'id');\n reactiveAttributeBinding(this.formFieldService.controlHintId$, 'aria-describedby');\n reactiveAttributeBinding(this.formFieldService.isReadonly$, 'readonly');\n reactiveAttributeBinding(this.formFieldService.isDisabled$.pipe(map(booleanToOptionalAttributeString)), 'aria-disabled');\n reactiveAttributeBinding(this.formFieldService.isReadonly$.pipe(map(booleanToOptionalAttributeString)), 'aria-readonly');\n reactiveAttributeBinding(this.formFieldService.isRequired$.pipe(map(booleanToOptionalAttributeString)), 'aria-required');\n reactiveAttributeBinding(this.formFieldErrorService.hasError$.pipe(map(booleanToOptionalAttributeString)), 'aria-invalid');\n reactiveAttributeBinding(\n this.formFieldErrorService.hasError$.pipe(switchMap((hasError) => (hasError ? this.formFieldService.controlErrorId$ : of(null)))),\n 'aria-errormessage',\n );\n }\n\n public ngOnInit() {\n const control = this.ngControl?.control;\n this.formFieldService.registerControl(control ?? new FormControl(), this.element);\n if (!control) return;\n this.patchControl(control);\n\n const controlChanges$ = merge(this.registerOnStatusChange(control), this.registerOnBlur(control));\n controlChanges$.pipe(this.takeUntilDestroyed).subscribe(() => {\n this.formFieldErrorService.setError(control.touched ? control.errors : null);\n });\n this.onFormSubmit$.pipe(this.takeUntilDestroyed).subscribe(() => control.markAsTouched({ onlySelf: true }));\n }\n\n public ngOnDestroy(): void {\n this.formFieldService.removeControl();\n }\n\n private registerOnBlur({ status, statusChanges }: AbstractControl): Observable<unknown> {\n return fromEvent(this.element.nativeElement, 'focusout', { once: true }).pipe(switchMap(() => statusChanges.pipe(startWith(status))));\n }\n\n private registerOnStatusChange({ statusChanges }: AbstractControl): Observable<unknown> {\n return merge(statusChanges, this.forceValidation$$);\n }\n\n private patchControl(control: AbstractControl): void {\n const originalMarkAsTouched = control.markAsTouched;\n control.markAsTouched = (...args) => {\n originalMarkAsTouched.apply(control, args);\n this.forceValidation$$.next();\n };\n }\n}\n","import { Directive, inject, Input, OnInit, TemplateRef } from '@angular/core';\nimport { FormFieldErrorService } from '../services';\n\n/**\n * Directive for displaying custom error messages in a form field.\n */\n@Directive({\n standalone: true,\n selector: '[odxFormFieldError]',\n})\nexport class FormFieldErrorDirective implements OnInit {\n private readonly formFieldErrorService = inject(FormFieldErrorService, { skipSelf: true });\n private readonly template = inject(TemplateRef, { self: true });\n\n /**\n * The key used to identify the custom error message.\n *\n * @type {string | undefined}\n */\n @Input('odxFormFieldError')\n public key?: string;\n\n public ngOnInit() {\n this.formFieldErrorService.registerCustomError(this.key, this.template);\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { reactiveAttributeBinding } from '@odx/angular/utils';\nimport { FormFieldService } from '../form-field.service';\n\n/**\n * Directive for displaying a hint within a form field.\n */\n@Directive({\n standalone: true,\n selector: 'odx-form-field-hint',\n host: {\n '[class.odx-form-field__hint]': 'true',\n },\n})\nexport class FormFieldHintDirective {\n protected readonly formFieldService = inject(FormFieldService, { skipSelf: true });\n\n constructor() {\n reactiveAttributeBinding(inject(FormFieldService).controlHintId$, 'id');\n }\n}\n","import { Directive } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n/**\n * Directive for the label element within a form field.\n */\n@CSSComponent('form-field-label')\n@Directive({\n standalone: true,\n selector: 'odx-form-field-label',\n})\nexport class FormFieldLabelDirective {\n public readonly element = injectElement();\n}\n","import { Component, inject, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { FormFieldHintDirective } from '../../directives';\nimport { FormFieldService } from '../../form-field.service';\nimport { FormFieldError } from '../../models';\n\n/**\n * A component that displays form field information such as hints or error messages, providing feedback to the user.\n * It integrates with the `FormFieldService` to reactively update and display this information based on the state of a\n * form field. The component uses dynamic content loading to facilitate the rendering of custom template-driven or\n * reactive hints and error messages, enhancing the flexibility and reusability of form validations and user prompts.\n */\n@Component({\n standalone: true,\n selector: 'odx-form-field-info',\n templateUrl: './form-field-info.component.html',\n encapsulation: ViewEncapsulation.None,\n imports: [CoreModule, DynamicViewDirective, FormFieldHintDirective],\n host: {\n '[class.odx-form-field__info]': 'true',\n },\n})\nexport class FormFieldInfoComponent {\n protected readonly formFieldService = inject(FormFieldService);\n\n /**\n * Input property that takes a `FormFieldError` object. This object contains detailed information about\n * the form field error state including the message to be displayed, the key identifier of the error, and\n * any contextual data that might be necessary for error resolution.\n *\n * @type {FormFieldError}\n * @default null\n */\n @Input()\n public error: FormFieldError | null = null;\n}\n","<span class=\"odx-form-field-error\" [attr.id]=\"formFieldService.controlErrorId$ | async\" *ngIf=\"error; else hint\">\n <ng-template [odxDynamicView]=\"error.message\" [odxDynamicViewContext]=\"error.context\"></ng-template>\n</span>\n<ng-template #hint>\n <ng-content></ng-content>\n</ng-template>\n","import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, QueryList, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { Observable, combineLatest, map, startWith, switchMap } from 'rxjs';\nimport { FormFieldService } from '../../form-field.service';\nimport { FormFieldError } from '../../models';\nimport { FormFieldErrorService } from '../../services';\nimport { FormFieldInfoComponent } from '../form-field-info/form-field-info.component';\n\n/**\n * A component that aggregates multiple form field error services to manage and display error states across\n * a group of form fields. It facilitates centralized error handling and dynamic updates to error messages,\n * making it ideal for forms with complex validation rules or multiple data entry points.\n *\n * This component dynamically listens to changes in error states from its child components and updates the\n * error information displayed to the user based on the most relevant error.\n */\n@CSSComponent('form-group')\n@Component({\n standalone: true,\n selector: 'odx-form-group',\n templateUrl: './form-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CoreModule, FormFieldInfoComponent],\n providers: [FormFieldService],\n})\nexport class FormGroupComponent implements AfterContentInit {\n public readonly element = injectElement();\n\n /**\n * An observable that emits the current error state of the form group. It is calculated by combining\n * the error states of all child form fields and selecting the most relevant error to display.\n *\n * @type {Observable<FormFieldError | null> | null}\n * @default null\n */\n public error$: Observable<FormFieldError | null> | null = null;\n\n /**\n * A QueryList containing all instances of FormFieldErrorService used by child components of this form group. This list\n * is used to subscribe to error changes in all child components and dynamically update the group's error state.\n *\n * @type {QueryList<FormFieldErrorService>}\n */\n @ContentChildren(FormFieldErrorService, { descendants: false })\n public formFieldErrorServices!: QueryList<FormFieldErrorService>;\n\n public ngAfterContentInit() {\n this.error$ = this.formFieldErrorServices.changes.pipe(\n startWith<QueryList<FormFieldErrorService>>(this.formFieldErrorServices),\n switchMap((services) => combineLatest(services.map((service) => service.error$))),\n map((errors) => errors.find((error) => error !== null) ?? null),\n );\n }\n}\n","<div class=\"odx-form-group__content\" odxLayout=\"grid\">\n <ng-content select=\"odx-form-field\"> </ng-content>\n</div>\n<odx-form-field-info [error]=\"error$ | async\">\n <ng-content select=\"odx-form-field-hint\"></ng-content>\n</odx-form-field-info>\n","export type FormFieldVariant = (typeof FormFieldVariant)[keyof typeof FormFieldVariant];\n\nexport const FormFieldVariant = {\n FULL: 'full',\n SIMPLE: 'simple',\n HORIZONTAL: 'horizontal',\n} as const;\n","import { booleanAttribute, ChangeDetectionStrategy, Component, ContentChild, ElementRef, inject, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, DisabledController, ReadonlyController } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, reactiveClassBinding } from '@odx/angular/utils';\nimport { BehaviorSubject, combineLatest, map } from 'rxjs';\nimport { FormFieldInfoComponent, FormGroupComponent } from './components';\nimport { FormFieldLabelDirective } from './directives';\nimport { FormFieldService } from './form-field.service';\nimport { FormFieldVariant } from './models';\nimport { FormFieldErrorService } from './services';\n\n/**\n * Represents a form field component.\n */\n@CSSComponent('form-field')\n@Component({\n standalone: true,\n selector: 'odx-form-field',\n imports: [CoreModule, FormFieldInfoComponent, FormFieldLabelDirective],\n templateUrl: './form-field.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [FormFieldService, FormFieldErrorService, DisabledController.connect(), ReadonlyController.connect()],\n})\nexport class FormFieldComponent {\n protected readonly hasWarning$$ = new BehaviorSubject(false);\n\n protected readonly formGroup = inject(FormGroupComponent, { optional: true, host: true });\n protected readonly formFieldService = inject(FormFieldService, { self: true });\n protected readonly formFieldErrorService = inject(FormFieldErrorService, { self: true });\n public readonly element = injectElement();\n\n /**\n * The label directive associated with the form field component.\n *\n * @type {FormFieldLabelDirective | undefined}\n */\n @ContentChild(FormFieldLabelDirective)\n public labelDirective?: FormFieldLabelDirective;\n\n /**\n * The control element of the form field component.\n *\n * @type {ElementRef<HTMLDivElement>}\n */\n @ViewChild('control')\n public controlElement!: ElementRef<HTMLDivElement>;\n\n /**\n * The label of the form field component.\n *\n * @type {string | null}\n * @default null\n */\n @Input()\n public label?: string | null = null;\n\n /**\n * Indicates whether the form field should have a warning.\n *\n * @type {boolean}\n */\n @Input({ transform: booleanAttribute })\n public set hasWarning(value: boolean) {\n this.hasWarning$$.next(value);\n }\n public get hasWarning(): boolean {\n return this.hasWarning$$.getValue();\n }\n\n /**\n * The variant of the form field.\n *\n * @type {FormFieldVariant}\n * @default FormFieldVariant.FULL\n */\n @CSSModifier()\n @Input()\n public variant: FormFieldVariant | null = FormFieldVariant.FULL;\n\n /**\n * Indicates whether the form field has a label.\n *\n * @type {boolean}\n */\n public get hasLabel(): boolean {\n return !!(this.labelDirective || this.label);\n }\n\n constructor() {\n const hasWarning$ = combineLatest([this.formFieldErrorService.error$, this.hasWarning$$]).pipe(map(([hasError, hasWarning]) => hasError && hasWarning));\n reactiveClassBinding(this.formFieldService.isRequired$, 'odx-form-field--required');\n reactiveClassBinding(this.formFieldService.isDisabled$, 'is-disabled');\n reactiveClassBinding(this.formFieldService.isReadonly$, 'is-readonly');\n reactiveClassBinding(this.formFieldErrorService.hasError$, 'has-error');\n reactiveClassBinding(hasWarning$, 'has-warning');\n }\n}\n","<label class=\"odx-form-field__label\" [attr.for]=\"formFieldService.controlId$ | async\" [attr.aria-owns]=\"formFieldService.controlId$ | async\" *ngIf=\"hasLabel\">\n <ng-container *ngIf=\"label; else labelTemplate\">\n <odx-form-field-label>{{ label }}</odx-form-field-label>\n <span class=\"odx-form-field__label-is-required\" *ngIf=\"formFieldService.isRequired$ | async\">*</span>\n </ng-container>\n <ng-template #labelTemplate>\n <ng-content select=\"odx-form-field-label\"></ng-content>\n <span class=\"odx-form-field__label-is-required\" *ngIf=\"formFieldService.isRequired$ | async\">*</span>\n </ng-template>\n</label>\n<div class=\"odx-form-field__inner\">\n <div class=\"odx-form-field__control\" #control>\n <div class=\"odx-form-field__prefix\">\n <ng-content select=\"[odxFormFieldPrefix]\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"odx-form-field__suffix\">\n <ng-content select=\"[odxFormFieldSuffix]\"></ng-content>\n </div>\n </div>\n <odx-form-field-info [error]=\"formFieldErrorService.error$ | async\" *ngIf=\"!formGroup\">\n <ng-content select=\"odx-form-field-hint\"></ng-content>\n </odx-form-field-info>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { FormGroupComponent } from './components';\nimport { FormDirective, FormFieldControlDirective, FormFieldErrorDirective, FormFieldHintDirective, FormFieldLabelDirective } from './directives';\nimport { FormFieldComponent } from './form-field.component';\n\nconst modules = [\n FormFieldComponent,\n FormGroupComponent,\n FormDirective,\n FormFieldControlDirective,\n FormFieldErrorDirective,\n FormFieldHintDirective,\n FormFieldLabelDirective,\n];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class FormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA;;;;;;;;;;;AAWG;AAEG,MAAO,gBAAiB,SAAQ,UAAU,CAAA;AADhD,IAAA,WAAA,GAAA;;AAEmB,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAsB,IAAI,CAAC,CAAC;AAE5E;;;;;AAKG;QACa,IAAQ,CAAA,QAAA,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,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AC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-header-navigation.mjs","sources":["../../../../libs/angular/components/header-navigation/src/lib/directives/header-navigation-link.directive.ts","../../../../libs/angular/components/header-navigation/src/lib/header-navigation.component.ts","../../../../libs/angular/components/header-navigation/src/lib/header-navigation.component.html","../../../../libs/angular/components/header-navigation/src/lib/header-navigation.module.ts","../../../../libs/angular/components/header-navigation/src/odx-angular-components-header-navigation.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { RouterLinkActive } from '@angular/router';\nimport { reactiveClassBinding } from '@odx/angular/utils';\nimport { distinctUntilChanged, startWith } from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[routerLink][odxHeaderNavigationLink]',\n hostDirectives: [{ directive: RouterLinkActive, inputs: ['routerLinkActiveOptions'] }],\n})\nexport class HeaderNavigationRouterLinkDirective {}\n\n/**\n * Directive for handling header navigation links.\n */\n@Directive({\n standalone: true,\n selector: '[odxHeaderNavigationLink]',\n})\nexport class HeaderNavigationLinkDirective {\n constructor() {\n const routerLinkActive = inject(RouterLinkActive, { self: true, optional: true });\n if (!routerLinkActive) return;\n const isActive$ = routerLinkActive.isActiveChange.pipe(startWith(routerLinkActive.isActive), distinctUntilChanged());\n reactiveClassBinding(isActive$, 'is-active');\n }\n}\n","import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, booleanAttribute } from '@angular/core';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n/**\n * Represents the header navigation component.\n */\n@CSSComponent('header-navigation')\n@Component({\n standalone: true,\n selector: 'odx-header-navigation',\n templateUrl: './header-navigation.component.html',\n imports: [ActionGroupComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HeaderNavigationComponent {\n public readonly element = injectElement();\n\n /**\n * Indicates whether the header navigation should be centered.\n */\n @CSSModifier()\n @Input({ transform: booleanAttribute })\n public centered!: boolean;\n}\n","<odx-action-group class=\"odx-header-navigation__inner\">\n <ng-content select=\"ng-template, [odxHeaderNavigationLink]\" ngProjectAs=\"[odxButton]\" />\n</odx-action-group>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { HeaderNavigationLinkDirective, HeaderNavigationRouterLinkDirective } from './directives';\nimport { HeaderNavigationComponent } from './header-navigation.component';\n\nconst modules = [HeaderNavigationComponent, HeaderNavigationLinkDirective, HeaderNavigationRouterLinkDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class HeaderNavigationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAUa,mCAAmC,CAAA;+GAAnC,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAnC,mCAAmC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,yBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAnC,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAL/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,uCAAuC;AACjD,oBAAA,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC,yBAAyB,CAAC,EAAE,CAAC;AACvF,iBAAA,CAAA;;AAGD;;AAEG;MAKU,6BAA6B,CAA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A,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EANlB,OAAA,EAAA,CAAA,yBAAyB,EAAE,6BAA6B,EAAE,mCAAmC,CAIlG,EAAA,OAAA,EAAA,CAAA,UAAU,EAJL,yBAAyB,EAAE,6BAA6B,EAAE,mCAAmC,CAAA,EAAA,CAAA,CAAA,EAAA;gHAMjG,sBAAsB,EAAA,OAAA,EAAA,CANlB,yBAAyB,EAI9B,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAET,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-header-navigation.mjs","sources":["../../../../libs/angular/components/header-navigation/src/lib/directives/header-navigation-link.directive.ts","../../../../libs/angular/components/header-navigation/src/lib/header-navigation.component.ts","../../../../libs/angular/components/header-navigation/src/lib/header-navigation.component.html","../../../../libs/angular/components/header-navigation/src/lib/header-navigation.module.ts","../../../../libs/angular/components/header-navigation/src/odx-angular-components-header-navigation.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { RouterLinkActive } from '@angular/router';\nimport { reactiveClassBinding } from '@odx/angular/utils';\nimport { distinctUntilChanged, startWith } from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[routerLink][odxHeaderNavigationLink]',\n hostDirectives: [{ directive: RouterLinkActive, inputs: ['routerLinkActiveOptions'] }],\n})\nexport class HeaderNavigationRouterLinkDirective {}\n\n/**\n * Directive for handling header navigation links.\n */\n@Directive({\n standalone: true,\n selector: '[odxHeaderNavigationLink]',\n})\nexport class HeaderNavigationLinkDirective {\n constructor() {\n const routerLinkActive = inject(RouterLinkActive, { self: true, optional: true });\n if (!routerLinkActive) return;\n const isActive$ = routerLinkActive.isActiveChange.pipe(startWith(routerLinkActive.isActive), distinctUntilChanged());\n reactiveClassBinding(isActive$, 'is-active');\n }\n}\n","import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, booleanAttribute } from '@angular/core';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n/**\n * Represents the header navigation component.\n */\n@CSSComponent('header-navigation')\n@Component({\n standalone: true,\n selector: 'odx-header-navigation',\n templateUrl: './header-navigation.component.html',\n imports: [ActionGroupComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HeaderNavigationComponent {\n public readonly element = injectElement();\n\n /**\n * Indicates whether the header navigation should be centered.\n *\n * @type {boolean}\n * @default false\n */\n @CSSModifier()\n @Input({ transform: booleanAttribute })\n public centered!: boolean;\n}\n","<odx-action-group class=\"odx-header-navigation__inner\">\n <ng-content select=\"ng-template, [odxHeaderNavigationLink]\" ngProjectAs=\"[odxButton]\" />\n</odx-action-group>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { HeaderNavigationLinkDirective, HeaderNavigationRouterLinkDirective } from './directives';\nimport { HeaderNavigationComponent } from './header-navigation.component';\n\nconst modules = [HeaderNavigationComponent, HeaderNavigationLinkDirective, HeaderNavigationRouterLinkDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class HeaderNavigationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAUa,mCAAmC,CAAA;+GAAnC,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAnC,mCAA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AA,IAAI,EACN,QAAA,EAAA,uBAAuB,EAExB,OAAA,EAAA,CAAC,oBAAoB,CAAC,EAChB,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kLAAA,EAAA,CAAA;8BAaxC,QAAQ,EAAA,CAAA;sBADd,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAA;;;AEtBxC,MAAM,OAAO,GAAG,CAAC,yBAAyB,EAAE,6BAA6B,EAAE,mCAAmC,CAAC,CAAC;MAMnG,sBAAsB,CAAA;+GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EANlB,OAAA,EAAA,CAAA,yBAAyB,EAAE,6BAA6B,EAAE,mCAAmC,CAIlG,EAAA,OAAA,EAAA,CAAA,UAAU,EAJL,yBAAyB,EAAE,6BAA6B,EAAE,mCAAmC,CAAA,EAAA,CAAA,CAAA,EAAA;gHAMjG,sBAAsB,EAAA,OAAA,EAAA,CANlB,yBAAyB,EAI9B,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAET,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -9,8 +9,8 @@ import { createConfigTokens, injectElement } from '@odx/angular/utils';
9
9
  * The identifier is expected to follow the format "iconSet::iconName". If the "iconName" part is
10
10
  * missing, the function assumes the icon belongs to the 'core' set.
11
11
  *
12
- * @param value The combined identifier string in the format "iconSet::iconName".
13
- * @returns A tuple containing the icon set and icon name as two separate strings. Defaults to 'core'
12
+ * @param {string} value The combined identifier string in the format "iconSet::iconName".
13
+ * @returns {[iconSet: string, iconName: string]} A tuple containing the icon set and icon name as two separate strings. Defaults to 'core'
14
14
  * if the iconName is omitted in the input.
15
15
  *
16
16
  * @example
@@ -68,25 +68,37 @@ let IconComponent = class IconComponent {
68
68
  this.element = injectElement();
69
69
  /**
70
70
  * Determines whether the icon should be displayed inline with text or other elements.
71
+ *
72
+ * @type {boolean}
73
+ * @default false
71
74
  */
72
75
  this.inline = false;
73
76
  /**
74
77
  * Specifies the size of the icon, which can be adjusted using predefined sizes from the IconSize enum.
75
- * @see {IconSize}
78
+ *
79
+ * @type {IconSize}
80
+ * @default IconSize.MEDIUM
76
81
  */
77
82
  this.size = IconSize.MEDIUM;
78
83
  /**
79
84
  * The name of the icon to be displayed, which corresponds to specific icons within a given icon set.
85
+ *
86
+ * @type {string | null}
87
+ * @default null
80
88
  */
81
89
  this.name = null;
82
90
  /**
83
91
  * Specifies the icon set that the icon belongs to. The default set can be injected from the icon configuration.
92
+ *
93
+ * @type {string | null}
84
94
  */
85
95
  this.iconSet = injectIconConfig().defaultIconSet;
86
96
  }
87
97
  /**
88
98
  * Allows for setting both the icon set and icon name via a single identifier, typically formatted as 'set::name'.
89
99
  * Unpacking this identifier sets both `name` and `iconSet` properties.
100
+ *
101
+ * @param {string | null | undefined} value - The identifier to unpack.
90
102
  */
91
103
  set identifier(value) {
92
104
  const [iconSet, name] = value ? unpackIconIdentifier(value) : [null, null];