@hmcts/opal-frontend-common 0.0.108 → 0.0.110

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 (417) hide show
  1. package/fesm2022/hmcts-opal-frontend-common-access-denied.component-DuQgLlU6.mjs +57 -0
  2. package/fesm2022/hmcts-opal-frontend-common-account-created.component-DtlFlzU9.mjs +47 -0
  3. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-account-summary-base.mjs +73 -81
  4. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.mjs +71 -92
  5. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base-interfaces.mjs +0 -4
  6. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.mjs +133 -233
  7. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base-interfaces.mjs +0 -4
  8. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.mjs +123 -251
  9. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-parent-base.mjs +24 -43
  10. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base-interfaces.mjs +0 -4
  11. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.mjs +66 -94
  12. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base-interfaces.mjs +0 -4
  13. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs +340 -616
  14. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-parent-base.mjs +25 -61
  15. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.mjs +88 -142
  16. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-instances-table-base.mjs +48 -29
  17. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-constants.mjs +14 -19
  18. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-interfaces.mjs +0 -4
  19. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-types.mjs +0 -4
  20. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base.mjs +144 -273
  21. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-interfaces.mjs +0 -4
  22. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.mjs +104 -129
  23. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-types.mjs +0 -4
  24. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.mjs +123 -204
  25. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-tab-data.mjs +35 -121
  26. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-interfaces.mjs +0 -4
  27. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-types.mjs +0 -4
  28. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.mjs +111 -183
  29. package/fesm2022/hmcts-opal-frontend-common-components-abstract-interfaces.mjs +0 -4
  30. package/fesm2022/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete-interfaces.mjs +0 -4
  31. package/fesm2022/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.mjs +278 -263
  32. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-accessible-monetary.mjs +66 -53
  33. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.mjs +44 -21
  34. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.mjs +44 -21
  35. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.mjs +54 -27
  36. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information.mjs +38 -17
  37. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-action-links.mjs +70 -37
  38. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-deferred-live-region-announcement.mjs +109 -119
  39. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.mjs +38 -17
  40. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-page-header.mjs +40 -17
  41. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.mjs +66 -27
  42. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.mjs +44 -21
  43. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.mjs +54 -27
  44. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.mjs +54 -27
  45. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.mjs +67 -42
  46. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.mjs +40 -17
  47. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.mjs +66 -27
  48. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.mjs +42 -21
  49. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.mjs +36 -17
  50. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-accordion.mjs +125 -119
  51. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-back-link.mjs +46 -30
  52. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-button.mjs +72 -39
  53. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.mjs +54 -34
  54. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes-interfaces.mjs +0 -4
  55. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.mjs +303 -134
  56. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-date-input-interfaces.mjs +0 -4
  57. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-date-input.mjs +163 -79
  58. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-details.mjs +45 -21
  59. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.mjs +49 -33
  60. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-footer-interfaces.mjs +0 -4
  61. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-footer.mjs +42 -20
  62. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-header-interfaces.mjs +0 -4
  63. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-header.mjs +103 -41
  64. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption-types.mjs +0 -4
  65. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.mjs +90 -39
  66. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.mjs +60 -26
  67. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.mjs +53 -30
  68. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list.mjs +36 -17
  69. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.mjs +75 -44
  70. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-pagination.mjs +80 -85
  71. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-panel.mjs +53 -25
  72. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-radio-interfaces.mjs +0 -4
  73. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-radio.mjs +397 -267
  74. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-select-interfaces.mjs +0 -4
  75. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-select.mjs +164 -80
  76. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.mjs +153 -85
  77. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.mjs +246 -121
  78. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-table.mjs +224 -90
  79. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.mjs +99 -76
  80. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.mjs +78 -51
  81. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs.mjs +79 -72
  82. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tag.mjs +55 -25
  83. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-task-list.mjs +112 -46
  84. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-area.mjs +185 -104
  85. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.mjs +165 -95
  86. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input.mjs +151 -81
  87. package/fesm2022/hmcts-opal-frontend-common-components-govuk-helpers.mjs +5 -16
  88. package/fesm2022/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.mjs +65 -32
  89. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-alert.mjs +396 -243
  90. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-badge.mjs +55 -25
  91. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.mjs +53 -28
  92. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu.mjs +92 -60
  93. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-date-picker.mjs +216 -165
  94. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.mjs +44 -21
  95. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-item.mjs +64 -42
  96. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-keyword.mjs +68 -47
  97. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.mjs +52 -33
  98. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.mjs +61 -40
  99. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.mjs +63 -42
  100. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.mjs +38 -17
  101. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter.mjs +56 -34
  102. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-header-interfaces.mjs +0 -4
  103. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-header.mjs +100 -41
  104. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-inset-text.mjs +62 -26
  105. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-notification-badge.mjs +46 -21
  106. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-page-header.mjs +47 -21
  107. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-pagination.mjs +119 -164
  108. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.mjs +225 -172
  109. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sortable-table.mjs +355 -188
  110. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.mjs +152 -96
  111. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.mjs +61 -29
  112. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-timeline.mjs +74 -26
  113. package/fesm2022/hmcts-opal-frontend-common-concurrency-failure.component-BqsP0gj2.mjs +41 -0
  114. package/fesm2022/hmcts-opal-frontend-common-constants.mjs +7 -13
  115. package/fesm2022/hmcts-opal-frontend-common-directives-capitalisation.mjs +55 -43
  116. package/fesm2022/hmcts-opal-frontend-common-directives-govuk-button.mjs +86 -60
  117. package/fesm2022/hmcts-opal-frontend-common-directives-moj-multi-select.mjs +184 -223
  118. package/fesm2022/hmcts-opal-frontend-common-directives-trim-leading-trailing-whitespace.mjs +56 -40
  119. package/fesm2022/hmcts-opal-frontend-common-guards-account.mjs +17 -37
  120. package/fesm2022/hmcts-opal-frontend-common-guards-auth.mjs +30 -41
  121. package/fesm2022/hmcts-opal-frontend-common-guards-business-unit-route-permissions.mjs +31 -90
  122. package/fesm2022/hmcts-opal-frontend-common-guards-can-deactivate-interfaces.mjs +0 -4
  123. package/fesm2022/hmcts-opal-frontend-common-guards-can-deactivate-types.mjs +0 -4
  124. package/fesm2022/hmcts-opal-frontend-common-guards-can-deactivate.mjs +3 -9
  125. package/fesm2022/hmcts-opal-frontend-common-guards-feature-flag.mjs +29 -64
  126. package/fesm2022/hmcts-opal-frontend-common-guards-has-flow-state.mjs +13 -20
  127. package/fesm2022/hmcts-opal-frontend-common-guards-has-url-state-match.mjs +19 -48
  128. package/fesm2022/hmcts-opal-frontend-common-guards-helpers.mjs +21 -54
  129. package/fesm2022/hmcts-opal-frontend-common-guards-route-permissions.mjs +20 -30
  130. package/fesm2022/hmcts-opal-frontend-common-guards-signed-in.mjs +13 -24
  131. package/fesm2022/hmcts-opal-frontend-common-guards-types.mjs +0 -4
  132. package/fesm2022/hmcts-opal-frontend-common-interceptors-content-digest.mjs +59 -107
  133. package/fesm2022/hmcts-opal-frontend-common-interceptors-http-error-constants.mjs +11 -17
  134. package/fesm2022/hmcts-opal-frontend-common-interceptors-http-error-interfaces.mjs +0 -4
  135. package/fesm2022/hmcts-opal-frontend-common-interceptors-http-error.mjs +74 -148
  136. package/fesm2022/hmcts-opal-frontend-common-interceptors-http-retry-constants.mjs +18 -13
  137. package/fesm2022/hmcts-opal-frontend-common-interceptors-http-retry-interfaces.mjs +0 -4
  138. package/fesm2022/hmcts-opal-frontend-common-interceptors-http-retry.mjs +65 -134
  139. package/fesm2022/hmcts-opal-frontend-common-internal-server-error.component-8EP_PgKk.mjs +55 -0
  140. package/fesm2022/hmcts-opal-frontend-common-pages-access-denied.component-DuQgLlU6.mjs +57 -0
  141. package/fesm2022/hmcts-opal-frontend-common-pages-account-created.component-DtlFlzU9.mjs +47 -0
  142. package/fesm2022/hmcts-opal-frontend-common-pages-concurrency-failure.component-BqsP0gj2.mjs +41 -0
  143. package/fesm2022/hmcts-opal-frontend-common-pages-dashboard-page-interfaces.mjs +0 -4
  144. package/fesm2022/hmcts-opal-frontend-common-pages-dashboard-page.mjs +112 -62
  145. package/fesm2022/hmcts-opal-frontend-common-pages-internal-server-error.component-8EP_PgKk.mjs +55 -0
  146. package/fesm2022/hmcts-opal-frontend-common-pages-permission-denied.component-B3EkD8uw.mjs +41 -0
  147. package/fesm2022/hmcts-opal-frontend-common-pages-routing-constants.mjs +22 -27
  148. package/fesm2022/hmcts-opal-frontend-common-pages-routing-interfaces.mjs +0 -4
  149. package/fesm2022/hmcts-opal-frontend-common-pages-sign-in-stub.component-CT2Bh7gD.mjs +127 -0
  150. package/fesm2022/hmcts-opal-frontend-common-pages-sign-in.component-BxpouMug.mjs +55 -0
  151. package/fesm2022/hmcts-opal-frontend-common-pages.mjs +51 -52
  152. package/fesm2022/hmcts-opal-frontend-common-permission-denied.component-B3EkD8uw.mjs +41 -0
  153. package/fesm2022/hmcts-opal-frontend-common-pipes-date-format.mjs +41 -28
  154. package/fesm2022/hmcts-opal-frontend-common-pipes-days-ago.mjs +43 -40
  155. package/fesm2022/hmcts-opal-frontend-common-pipes-monetary.mjs +43 -39
  156. package/fesm2022/hmcts-opal-frontend-common-pipes-national-insurance.mjs +41 -29
  157. package/fesm2022/hmcts-opal-frontend-common-resolvers-title.mjs +37 -25
  158. package/fesm2022/hmcts-opal-frontend-common-services-app-initializer-service.mjs +68 -91
  159. package/fesm2022/hmcts-opal-frontend-common-services-app-insights-service.mjs +74 -65
  160. package/fesm2022/hmcts-opal-frontend-common-services-auth-service-constants.mjs +6 -10
  161. package/fesm2022/hmcts-opal-frontend-common-services-auth-service-interfaces.mjs +0 -4
  162. package/fesm2022/hmcts-opal-frontend-common-services-auth-service.mjs +49 -42
  163. package/fesm2022/hmcts-opal-frontend-common-services-date-service-interfaces.mjs +0 -4
  164. package/fesm2022/hmcts-opal-frontend-common-services-date-service.mjs +118 -233
  165. package/fesm2022/hmcts-opal-frontend-common-services-history-transformation-service.mjs +185 -484
  166. package/fesm2022/hmcts-opal-frontend-common-services-launch-darkly-service-mocks.mjs +12 -11
  167. package/fesm2022/hmcts-opal-frontend-common-services-launch-darkly-service.mjs +77 -115
  168. package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service-interfaces.mjs +0 -4
  169. package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service-mocks.mjs +150 -159
  170. package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service.mjs +119 -202
  171. package/fesm2022/hmcts-opal-frontend-common-services-permissions-service.mjs +47 -68
  172. package/fesm2022/hmcts-opal-frontend-common-services-session-service-constants.mjs +3 -9
  173. package/fesm2022/hmcts-opal-frontend-common-services-session-service-interfaces.mjs +0 -4
  174. package/fesm2022/hmcts-opal-frontend-common-services-session-service-mocks.mjs +4 -8
  175. package/fesm2022/hmcts-opal-frontend-common-services-session-service.mjs +50 -40
  176. package/fesm2022/hmcts-opal-frontend-common-services-sort-service-interfaces.mjs +0 -4
  177. package/fesm2022/hmcts-opal-frontend-common-services-sort-service.mjs +56 -96
  178. package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service-interfaces.mjs +0 -4
  179. package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service-mocks.mjs +19 -26
  180. package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service.mjs +71 -99
  181. package/fesm2022/hmcts-opal-frontend-common-services-transformation-service-constants.mjs +4 -8
  182. package/fesm2022/hmcts-opal-frontend-common-services-transformation-service-interfaces.mjs +0 -4
  183. package/fesm2022/hmcts-opal-frontend-common-services-transformation-service.mjs +65 -106
  184. package/fesm2022/hmcts-opal-frontend-common-services-utils-service.mjs +102 -193
  185. package/fesm2022/hmcts-opal-frontend-common-sign-in-stub.component-CT2Bh7gD.mjs +127 -0
  186. package/fesm2022/hmcts-opal-frontend-common-sign-in.component-Dz97ji3i.mjs +55 -0
  187. package/fesm2022/hmcts-opal-frontend-common-stores-global-constants.mjs +6 -10
  188. package/fesm2022/hmcts-opal-frontend-common-stores-global-interfaces.mjs +0 -4
  189. package/fesm2022/hmcts-opal-frontend-common-stores-global-types.mjs +0 -4
  190. package/fesm2022/hmcts-opal-frontend-common-stores-global.mjs +52 -57
  191. package/fesm2022/hmcts-opal-frontend-common-types.mjs +0 -4
  192. package/fesm2022/hmcts-opal-frontend-common-validators-amount.mjs +7 -18
  193. package/fesm2022/hmcts-opal-frontend-common-validators-date-after-year.mjs +8 -15
  194. package/fesm2022/hmcts-opal-frontend-common-validators-date-before.mjs +9 -18
  195. package/fesm2022/hmcts-opal-frontend-common-validators-date-of-birth.mjs +13 -21
  196. package/fesm2022/hmcts-opal-frontend-common-validators-future-date.mjs +9 -18
  197. package/fesm2022/hmcts-opal-frontend-common-validators-invalid-value.mjs +6 -12
  198. package/fesm2022/hmcts-opal-frontend-common-validators-national-insurance-number.mjs +9 -17
  199. package/fesm2022/hmcts-opal-frontend-common-validators-non-negative-value.mjs +10 -26
  200. package/fesm2022/hmcts-opal-frontend-common-validators-non-zero-value.mjs +10 -26
  201. package/fesm2022/hmcts-opal-frontend-common-validators-optional-max-length.mjs +7 -14
  202. package/fesm2022/hmcts-opal-frontend-common-validators-optional-valid-date.mjs +13 -26
  203. package/fesm2022/hmcts-opal-frontend-common-validators-optional-valid-telephone.mjs +12 -17
  204. package/fesm2022/hmcts-opal-frontend-common-validators-over-eighteen.mjs +19 -48
  205. package/fesm2022/hmcts-opal-frontend-common-validators-past-date.mjs +11 -19
  206. package/fesm2022/hmcts-opal-frontend-common-validators-pattern-validator.mjs +7 -26
  207. package/fesm2022/hmcts-opal-frontend-common-validators-valid-value.mjs +6 -12
  208. package/fesm2022/hmcts-opal-frontend-common.mjs +56 -76
  209. package/package.json +3 -3
  210. package/types/hmcts-opal-frontend-common-components-abstract-abstract-account-summary-base.d.ts +95 -104
  211. package/types/hmcts-opal-frontend-common-components-abstract-abstract-creditor-details-base.d.ts +75 -78
  212. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base-interfaces.d.ts +4 -7
  213. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.d.ts +123 -126
  214. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base-interfaces.d.ts +4 -7
  215. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.d.ts +156 -159
  216. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-parent-base.d.ts +13 -16
  217. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base-interfaces.d.ts +5 -7
  218. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.d.ts +46 -50
  219. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-base-interfaces.d.ts +27 -35
  220. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-base.d.ts +323 -328
  221. package/types/hmcts-opal-frontend-common-components-abstract-abstract-form-parent-base.d.ts +33 -36
  222. package/types/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.d.ts +75 -78
  223. package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-instances-table-base.d.ts +15 -13
  224. package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-constants.d.ts +16 -19
  225. package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-interfaces.d.ts +23 -30
  226. package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base-types.d.ts +1 -3
  227. package/types/hmcts-opal-frontend-common-components-abstract-abstract-report-summary-list-base.d.ts +179 -188
  228. package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-interfaces.d.ts +6 -9
  229. package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.d.ts +66 -66
  230. package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-types.d.ts +2 -5
  231. package/types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.d.ts +112 -113
  232. package/types/hmcts-opal-frontend-common-components-abstract-abstract-tab-data.d.ts +83 -86
  233. package/types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-interfaces.d.ts +12 -15
  234. package/types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-types.d.ts +1 -3
  235. package/types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.d.ts +113 -116
  236. package/types/hmcts-opal-frontend-common-components-abstract-interfaces.d.ts +16 -23
  237. package/types/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete-interfaces.d.ts +4 -6
  238. package/types/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.d.ts +136 -93
  239. package/types/hmcts-opal-frontend-common-components-custom-custom-accessible-monetary.d.ts +35 -29
  240. package/types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.d.ts +6 -9
  241. package/types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.d.ts +6 -9
  242. package/types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.d.ts +12 -10
  243. package/types/hmcts-opal-frontend-common-components-custom-custom-account-information.d.ts +5 -8
  244. package/types/hmcts-opal-frontend-common-components-custom-custom-action-links.d.ts +18 -12
  245. package/types/hmcts-opal-frontend-common-components-custom-custom-deferred-live-region-announcement.d.ts +67 -57
  246. package/types/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.d.ts +5 -8
  247. package/types/hmcts-opal-frontend-common-components-custom-custom-page-header.d.ts +5 -8
  248. package/types/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.d.ts +16 -10
  249. package/types/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.d.ts +11 -9
  250. package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.d.ts +12 -10
  251. package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.d.ts +12 -10
  252. package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.d.ts +26 -20
  253. package/types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.d.ts +5 -8
  254. package/types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.d.ts +16 -10
  255. package/types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.d.ts +11 -9
  256. package/types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.d.ts +5 -8
  257. package/types/hmcts-opal-frontend-common-components-govuk-govuk-accordion.d.ts +72 -64
  258. package/types/hmcts-opal-frontend-common-components-govuk-govuk-back-link.d.ts +16 -17
  259. package/types/hmcts-opal-frontend-common-components-govuk-govuk-button.d.ts +29 -17
  260. package/types/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.d.ts +22 -18
  261. package/types/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes-interfaces.d.ts +14 -16
  262. package/types/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.d.ts +96 -43
  263. package/types/hmcts-opal-frontend-common-components-govuk-govuk-date-input-interfaces.d.ts +13 -15
  264. package/types/hmcts-opal-frontend-common-components-govuk-govuk-date-input.d.ts +75 -34
  265. package/types/hmcts-opal-frontend-common-components-govuk-govuk-details.d.ts +11 -9
  266. package/types/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.d.ts +23 -19
  267. package/types/hmcts-opal-frontend-common-components-govuk-govuk-footer-interfaces.d.ts +5 -7
  268. package/types/hmcts-opal-frontend-common-components-govuk-govuk-footer.d.ts +14 -13
  269. package/types/hmcts-opal-frontend-common-components-govuk-govuk-header-interfaces.d.ts +4 -6
  270. package/types/hmcts-opal-frontend-common-components-govuk-govuk-header.d.ts +25 -23
  271. package/types/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption-types.d.ts +1 -3
  272. package/types/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.d.ts +32 -14
  273. package/types/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.d.ts +16 -10
  274. package/types/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.d.ts +16 -12
  275. package/types/hmcts-opal-frontend-common-components-govuk-govuk-list.d.ts +5 -8
  276. package/types/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.d.ts +37 -20
  277. package/types/hmcts-opal-frontend-common-components-govuk-govuk-pagination.d.ts +59 -47
  278. package/types/hmcts-opal-frontend-common-components-govuk-govuk-panel.d.ts +12 -10
  279. package/types/hmcts-opal-frontend-common-components-govuk-govuk-radio-interfaces.d.ts +17 -20
  280. package/types/hmcts-opal-frontend-common-components-govuk-govuk-radio.d.ts +162 -101
  281. package/types/hmcts-opal-frontend-common-components-govuk-govuk-select-interfaces.d.ts +4 -6
  282. package/types/hmcts-opal-frontend-common-components-govuk-govuk-select.d.ts +67 -26
  283. package/types/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.d.ts +67 -35
  284. package/types/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.d.ts +80 -47
  285. package/types/hmcts-opal-frontend-common-components-govuk-govuk-table.d.ts +47 -30
  286. package/types/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.d.ts +44 -34
  287. package/types/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.d.ts +19 -17
  288. package/types/hmcts-opal-frontend-common-components-govuk-govuk-tabs.d.ts +44 -36
  289. package/types/hmcts-opal-frontend-common-components-govuk-govuk-tag.d.ts +16 -10
  290. package/types/hmcts-opal-frontend-common-components-govuk-govuk-task-list.d.ts +35 -17
  291. package/types/hmcts-opal-frontend-common-components-govuk-govuk-text-area.d.ts +83 -29
  292. package/types/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.d.ts +74 -28
  293. package/types/hmcts-opal-frontend-common-components-govuk-govuk-text-input.d.ts +65 -23
  294. package/types/hmcts-opal-frontend-common-components-govuk-helpers.d.ts +1 -3
  295. package/types/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.d.ts +18 -12
  296. package/types/hmcts-opal-frontend-common-components-moj-moj-alert.d.ts +89 -69
  297. package/types/hmcts-opal-frontend-common-components-moj-moj-badge.d.ts +16 -10
  298. package/types/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.d.ts +16 -12
  299. package/types/hmcts-opal-frontend-common-components-moj-moj-button-menu.d.ts +32 -26
  300. package/types/hmcts-opal-frontend-common-components-moj-moj-date-picker.d.ts +116 -60
  301. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.d.ts +11 -9
  302. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-item.d.ts +33 -29
  303. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-keyword.d.ts +34 -22
  304. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.d.ts +22 -18
  305. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.d.ts +32 -24
  306. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.d.ts +29 -21
  307. package/types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.d.ts +5 -8
  308. package/types/hmcts-opal-frontend-common-components-moj-moj-filter.d.ts +23 -17
  309. package/types/hmcts-opal-frontend-common-components-moj-moj-header-interfaces.d.ts +4 -6
  310. package/types/hmcts-opal-frontend-common-components-moj-moj-header.d.ts +25 -23
  311. package/types/hmcts-opal-frontend-common-components-moj-moj-inset-text.d.ts +16 -10
  312. package/types/hmcts-opal-frontend-common-components-moj-moj-notification-badge.d.ts +11 -9
  313. package/types/hmcts-opal-frontend-common-components-moj-moj-page-header.d.ts +11 -9
  314. package/types/hmcts-opal-frontend-common-components-moj-moj-pagination.d.ts +99 -83
  315. package/types/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.d.ts +102 -67
  316. package/types/hmcts-opal-frontend-common-components-moj-moj-sortable-table.d.ts +83 -51
  317. package/types/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.d.ts +62 -42
  318. package/types/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.d.ts +21 -11
  319. package/types/hmcts-opal-frontend-common-components-moj-moj-timeline.d.ts +8 -12
  320. package/types/hmcts-opal-frontend-common-constants.d.ts +20 -25
  321. package/types/hmcts-opal-frontend-common-directives-capitalisation.d.ts +17 -15
  322. package/types/hmcts-opal-frontend-common-directives-govuk-button.d.ts +33 -21
  323. package/types/hmcts-opal-frontend-common-directives-moj-multi-select.d.ts +92 -69
  324. package/types/hmcts-opal-frontend-common-directives-trim-leading-trailing-whitespace.d.ts +13 -11
  325. package/types/hmcts-opal-frontend-common-guards-account.d.ts +2 -5
  326. package/types/hmcts-opal-frontend-common-guards-auth.d.ts +4 -7
  327. package/types/hmcts-opal-frontend-common-guards-business-unit-route-permissions.d.ts +14 -19
  328. package/types/hmcts-opal-frontend-common-guards-can-deactivate-interfaces.d.ts +4 -7
  329. package/types/hmcts-opal-frontend-common-guards-can-deactivate-types.d.ts +3 -6
  330. package/types/hmcts-opal-frontend-common-guards-can-deactivate.d.ts +4 -8
  331. package/types/hmcts-opal-frontend-common-guards-feature-flag.d.ts +4 -7
  332. package/types/hmcts-opal-frontend-common-guards-has-flow-state.d.ts +2 -5
  333. package/types/hmcts-opal-frontend-common-guards-has-url-state-match.d.ts +2 -5
  334. package/types/hmcts-opal-frontend-common-guards-helpers.d.ts +8 -15
  335. package/types/hmcts-opal-frontend-common-guards-route-permissions.d.ts +2 -5
  336. package/types/hmcts-opal-frontend-common-guards-signed-in.d.ts +2 -5
  337. package/types/hmcts-opal-frontend-common-guards-types.d.ts +2 -5
  338. package/types/hmcts-opal-frontend-common-interceptors-content-digest.d.ts +2 -5
  339. package/types/hmcts-opal-frontend-common-interceptors-http-error-constants.d.ts +4 -9
  340. package/types/hmcts-opal-frontend-common-interceptors-http-error-interfaces.d.ts +9 -11
  341. package/types/hmcts-opal-frontend-common-interceptors-http-error.d.ts +2 -5
  342. package/types/hmcts-opal-frontend-common-interceptors-http-retry-constants.d.ts +5 -11
  343. package/types/hmcts-opal-frontend-common-interceptors-http-retry-interfaces.d.ts +7 -9
  344. package/types/hmcts-opal-frontend-common-interceptors-http-retry.d.ts +9 -15
  345. package/types/hmcts-opal-frontend-common-pages-dashboard-page-interfaces.d.ts +17 -21
  346. package/types/hmcts-opal-frontend-common-pages-dashboard-page.d.ts +89 -96
  347. package/types/hmcts-opal-frontend-common-pages-routing-constants.d.ts +3 -7
  348. package/types/hmcts-opal-frontend-common-pages-routing-interfaces.d.ts +24 -29
  349. package/types/hmcts-opal-frontend-common-pages.d.ts +2 -5
  350. package/types/hmcts-opal-frontend-common-pipes-date-format.d.ts +8 -11
  351. package/types/hmcts-opal-frontend-common-pipes-days-ago.d.ts +7 -10
  352. package/types/hmcts-opal-frontend-common-pipes-monetary.d.ts +8 -11
  353. package/types/hmcts-opal-frontend-common-pipes-national-insurance.d.ts +7 -10
  354. package/types/hmcts-opal-frontend-common-resolvers-title.d.ts +8 -11
  355. package/types/hmcts-opal-frontend-common-services-app-initializer-service.d.ts +37 -41
  356. package/types/hmcts-opal-frontend-common-services-app-insights-service.d.ts +14 -17
  357. package/types/hmcts-opal-frontend-common-services-auth-service-constants.d.ts +2 -5
  358. package/types/hmcts-opal-frontend-common-services-auth-service-interfaces.d.ts +6 -8
  359. package/types/hmcts-opal-frontend-common-services-auth-service.d.ts +8 -12
  360. package/types/hmcts-opal-frontend-common-services-date-service-interfaces.d.ts +7 -9
  361. package/types/hmcts-opal-frontend-common-services-date-service.d.ts +149 -153
  362. package/types/hmcts-opal-frontend-common-services-history-transformation-service.d.ts +104 -125
  363. package/types/hmcts-opal-frontend-common-services-launch-darkly-service-mocks.d.ts +13 -16
  364. package/types/hmcts-opal-frontend-common-services-launch-darkly-service.d.ts +46 -49
  365. package/types/hmcts-opal-frontend-common-services-opal-user-service-interfaces.d.ts +28 -36
  366. package/types/hmcts-opal-frontend-common-services-opal-user-service-mocks.d.ts +4 -9
  367. package/types/hmcts-opal-frontend-common-services-opal-user-service.d.ts +97 -104
  368. package/types/hmcts-opal-frontend-common-services-permissions-service.d.ts +33 -36
  369. package/types/hmcts-opal-frontend-common-services-session-service-constants.d.ts +2 -5
  370. package/types/hmcts-opal-frontend-common-services-session-service-interfaces.d.ts +6 -9
  371. package/types/hmcts-opal-frontend-common-services-session-service-mocks.d.ts +2 -5
  372. package/types/hmcts-opal-frontend-common-services-session-service.d.ts +17 -20
  373. package/types/hmcts-opal-frontend-common-services-sort-service-interfaces.d.ts +9 -13
  374. package/types/hmcts-opal-frontend-common-services-sort-service.d.ts +64 -67
  375. package/types/hmcts-opal-frontend-common-services-transfer-state-service-interfaces.d.ts +20 -26
  376. package/types/hmcts-opal-frontend-common-services-transfer-state-service-mocks.d.ts +11 -17
  377. package/types/hmcts-opal-frontend-common-services-transfer-state-service.d.ts +44 -47
  378. package/types/hmcts-opal-frontend-common-services-transformation-service-constants.d.ts +2 -5
  379. package/types/hmcts-opal-frontend-common-services-transformation-service-interfaces.d.ts +12 -14
  380. package/types/hmcts-opal-frontend-common-services-transformation-service.d.ts +41 -44
  381. package/types/hmcts-opal-frontend-common-services-utils-service.d.ts +111 -114
  382. package/types/hmcts-opal-frontend-common-stores-global-constants.d.ts +2 -5
  383. package/types/hmcts-opal-frontend-common-stores-global-interfaces.d.ts +6 -8
  384. package/types/hmcts-opal-frontend-common-stores-global-types.d.ts +2 -5
  385. package/types/hmcts-opal-frontend-common-stores-global.d.ts +52 -57
  386. package/types/hmcts-opal-frontend-common-types.d.ts +1 -3
  387. package/types/hmcts-opal-frontend-common-validators-amount.d.ts +2 -5
  388. package/types/hmcts-opal-frontend-common-validators-date-after-year.d.ts +2 -5
  389. package/types/hmcts-opal-frontend-common-validators-date-before.d.ts +2 -5
  390. package/types/hmcts-opal-frontend-common-validators-date-of-birth.d.ts +2 -5
  391. package/types/hmcts-opal-frontend-common-validators-future-date.d.ts +2 -5
  392. package/types/hmcts-opal-frontend-common-validators-invalid-value.d.ts +2 -5
  393. package/types/hmcts-opal-frontend-common-validators-national-insurance-number.d.ts +2 -5
  394. package/types/hmcts-opal-frontend-common-validators-non-negative-value.d.ts +2 -5
  395. package/types/hmcts-opal-frontend-common-validators-non-zero-value.d.ts +2 -5
  396. package/types/hmcts-opal-frontend-common-validators-optional-max-length.d.ts +2 -5
  397. package/types/hmcts-opal-frontend-common-validators-optional-valid-date.d.ts +2 -5
  398. package/types/hmcts-opal-frontend-common-validators-optional-valid-telephone.d.ts +2 -5
  399. package/types/hmcts-opal-frontend-common-validators-over-eighteen.d.ts +3 -6
  400. package/types/hmcts-opal-frontend-common-validators-past-date.d.ts +2 -5
  401. package/types/hmcts-opal-frontend-common-validators-pattern-validator.d.ts +2 -5
  402. package/types/hmcts-opal-frontend-common-validators-valid-value.d.ts +2 -5
  403. package/types/hmcts-opal-frontend-common.d.ts +23 -31
  404. package/fesm2022/hmcts-opal-frontend-common-access-denied.component-BDTGvQ4J.mjs +0 -21
  405. package/fesm2022/hmcts-opal-frontend-common-account-created.component-6jzTqXSI.mjs +0 -15
  406. package/fesm2022/hmcts-opal-frontend-common-concurrency-failure.component-D43W-peK.mjs +0 -14
  407. package/fesm2022/hmcts-opal-frontend-common-internal-server-error.component-DftC2eY-.mjs +0 -26
  408. package/fesm2022/hmcts-opal-frontend-common-pages-access-denied.component-BDTGvQ4J.mjs +0 -21
  409. package/fesm2022/hmcts-opal-frontend-common-pages-account-created.component-6jzTqXSI.mjs +0 -15
  410. package/fesm2022/hmcts-opal-frontend-common-pages-concurrency-failure.component-D43W-peK.mjs +0 -14
  411. package/fesm2022/hmcts-opal-frontend-common-pages-internal-server-error.component-DftC2eY-.mjs +0 -26
  412. package/fesm2022/hmcts-opal-frontend-common-pages-permission-denied.component-CNGPX5k_.mjs +0 -14
  413. package/fesm2022/hmcts-opal-frontend-common-pages-sign-in-stub.component-BIgTV7f1.mjs +0 -42
  414. package/fesm2022/hmcts-opal-frontend-common-pages-sign-in.component-0pu6fIcO.mjs +0 -28
  415. package/fesm2022/hmcts-opal-frontend-common-permission-denied.component-CNGPX5k_.mjs +0 -14
  416. package/fesm2022/hmcts-opal-frontend-common-sign-in-stub.component-BIgTV7f1.mjs +0 -42
  417. package/fesm2022/hmcts-opal-frontend-common-sign-in.component-BxUlQIYI.mjs +0 -28
@@ -1,246 +1,399 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, HostBinding, Component, Input, inject, ElementRef, Renderer2, Directive } from '@angular/core';
3
- import { CustomDeferredLiveRegionAnnouncement } from '@hmcts/opal-frontend-common/components/custom/custom-deferred-live-region-announcement';
4
-
5
- class MojAlertDismissComponent {
6
- hostClass = 'moj-alert__action';
7
- dismiss = new EventEmitter();
8
- /**
9
- * Dismisses the alert.
10
- *
11
- * If an event is provided, its default behavior is prevented before emitting the dismiss event.
12
- *
13
- * @param event An optional DOM event that triggered the dismissal.
14
- */
15
- dismissAlert(event) {
16
- if (event) {
17
- event.preventDefault();
18
- }
19
- this.dismiss.emit();
20
- }
21
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertDismissComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojAlertDismissComponent, isStandalone: true, selector: "opal-lib-moj-alert-dismiss", outputs: { dismiss: "dismiss" }, host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<button class=\"moj-alert__dismiss\" (click)=\"dismissAlert($event)\" (keyup.enter)=\"dismissAlert($event)\">Dismiss</button>\n" });
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertDismissComponent, decorators: [{
25
- type: Component,
26
- args: [{ selector: 'opal-lib-moj-alert-dismiss', imports: [], template: "<button class=\"moj-alert__dismiss\" (click)=\"dismissAlert($event)\" (keyup.enter)=\"dismissAlert($event)\">Dismiss</button>\n" }]
27
- }], propDecorators: { hostClass: [{
28
- type: HostBinding,
29
- args: ['class']
30
- }], dismiss: [{
31
- type: Output
32
- }] } });
33
-
34
- class MojAlertComponent {
35
- /**
36
- * Accessible label used for live announcements.
37
- *
38
- * Required when `enableLiveAnnouncement` is true.
39
- */
40
- ariaLabel;
41
- /**
42
- * Controls whether the alert creates a live-region announcement.
43
- *
44
- * Defaults to `true`. When enabled, `ariaLabel` must be provided.
45
- */
46
- enableLiveAnnouncement = true;
47
- type = 'information';
48
- showDismiss;
49
- dismissed = new EventEmitter();
50
- /**
51
- * Controls the visibility of the alert.
52
- *
53
- * Defaults to `true` and is set to `false` when the alert is dismissed.
54
- */
55
- isVisible = true;
56
- get hostClass() {
57
- return this.isVisible ? `moj-alert moj-alert--${this.type}` : '';
58
- }
59
- dataModule = 'moj-alert';
60
- /**
61
- * Returns the message used for the live-region announcement.
62
- *
63
- * @returns The alert type and accessible label formatted as an announcement message.
64
- * @throws {Error} If `ariaLabel` is missing, empty, or contains only whitespace.
65
- */
66
- get announcementMessage() {
67
- const ariaLabel = this.ariaLabel?.trim();
68
- if (!ariaLabel) {
69
- throw new Error('MojAlertComponent requires ariaLabel when live announcements are enabled. ' +
70
- 'Provide ariaLabel or set enableLiveAnnouncement to false.');
71
- }
72
- return `${this.type}: ${ariaLabel}`;
73
- }
74
- get announcementRole() {
75
- return this.type === 'error' || this.type === 'warning' ? 'alert' : 'status';
76
- }
77
- /**
78
- * Dismisses the alert component.
79
- *
80
- * This method emits the dismissed event to its parent and
81
- * sets the component's visibility state to false,
82
- * effectively hiding the alert from view.
83
- */
84
- dismiss() {
85
- this.isVisible = false;
86
- this.dismissed.emit();
87
- }
88
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: MojAlertComponent, isStandalone: true, selector: "opal-lib-moj-alert, [opal-lib-moj-alert]", inputs: { ariaLabel: "ariaLabel", enableLiveAnnouncement: "enableLiveAnnouncement", type: "type", showDismiss: "showDismiss" }, outputs: { dismissed: "dismissed" }, host: { properties: { "class": "this.hostClass", "attr.data-module": "this.dataModule" } }, ngImport: i0, template: "@if (isVisible) {\n @if (enableLiveAnnouncement) {\n <opal-lib-custom-deferred-live-region-announcement\n [message]=\"announcementMessage\"\n [role]=\"announcementRole\"\n [announcementDelayMs]=\"200\"\n ></opal-lib-custom-deferred-live-region-announcement>\n }\n <ng-content select=\"[icon]\"></ng-content>\n <ng-content select=\"[content]\"></ng-content>\n\n @if (showDismiss) {\n <opal-lib-moj-alert-dismiss (dismiss)=\"dismiss()\"></opal-lib-moj-alert-dismiss>\n }\n}\n", dependencies: [{ kind: "component", type: MojAlertDismissComponent, selector: "opal-lib-moj-alert-dismiss", outputs: ["dismiss"] }, { kind: "component", type: CustomDeferredLiveRegionAnnouncement, selector: "opal-lib-custom-deferred-live-region-announcement", inputs: ["message", "role", "announcementDelayMs"] }] });
90
- }
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertComponent, decorators: [{
92
- type: Component,
93
- args: [{ selector: 'opal-lib-moj-alert, [opal-lib-moj-alert]', imports: [MojAlertDismissComponent, CustomDeferredLiveRegionAnnouncement], template: "@if (isVisible) {\n @if (enableLiveAnnouncement) {\n <opal-lib-custom-deferred-live-region-announcement\n [message]=\"announcementMessage\"\n [role]=\"announcementRole\"\n [announcementDelayMs]=\"200\"\n ></opal-lib-custom-deferred-live-region-announcement>\n }\n <ng-content select=\"[icon]\"></ng-content>\n <ng-content select=\"[content]\"></ng-content>\n\n @if (showDismiss) {\n <opal-lib-moj-alert-dismiss (dismiss)=\"dismiss()\"></opal-lib-moj-alert-dismiss>\n }\n}\n" }]
94
- }], propDecorators: { ariaLabel: [{
95
- type: Input,
96
- args: [{ required: false }]
97
- }], enableLiveAnnouncement: [{
98
- type: Input,
99
- args: [{ required: false }]
100
- }], type: [{
101
- type: Input,
102
- args: [{ required: true }]
103
- }], showDismiss: [{
104
- type: Input,
105
- args: [{ required: false }]
106
- }], dismissed: [{
107
- type: Output
108
- }], hostClass: [{
109
- type: HostBinding,
110
- args: ['class']
111
- }], dataModule: [{
112
- type: HostBinding,
113
- args: ['attr.data-module']
114
- }] } });
115
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, Directive, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, inject } from "@angular/core";
3
+ import { CustomDeferredLiveRegionAnnouncement } from "@hmcts/opal-frontend-common/components/custom/custom-deferred-live-region-announcement";
4
+ var MojAlertDismissComponent = class MojAlertDismissComponent {
5
+ hostClass = "moj-alert__action";
6
+ dismiss = new EventEmitter();
7
+ dismissAlert(event) {
8
+ if (event) event.preventDefault();
9
+ this.dismiss.emit();
10
+ }
11
+ static ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "21.2.25",
14
+ ngImport: i0,
15
+ type: MojAlertDismissComponent,
16
+ deps: [],
17
+ target: i0.ɵɵFactoryTarget.Component
18
+ });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({
20
+ minVersion: "14.0.0",
21
+ version: "21.2.25",
22
+ type: MojAlertDismissComponent,
23
+ isStandalone: true,
24
+ selector: "opal-lib-moj-alert-dismiss",
25
+ outputs: { dismiss: "dismiss" },
26
+ host: { properties: { "class": "this.hostClass" } },
27
+ ngImport: i0,
28
+ template: "<button class=\"moj-alert__dismiss\" (click)=\"dismissAlert($event)\" (keyup.enter)=\"dismissAlert($event)\">Dismiss</button>\n"
29
+ });
30
+ };
31
+ i0.ɵɵngDeclareClassMetadata({
32
+ minVersion: "12.0.0",
33
+ version: "21.2.25",
34
+ ngImport: i0,
35
+ type: MojAlertDismissComponent,
36
+ decorators: [{
37
+ type: Component,
38
+ args: [{
39
+ selector: "opal-lib-moj-alert-dismiss",
40
+ imports: [],
41
+ template: "<button class=\"moj-alert__dismiss\" (click)=\"dismissAlert($event)\" (keyup.enter)=\"dismissAlert($event)\">Dismiss</button>\n"
42
+ }]
43
+ }],
44
+ propDecorators: {
45
+ hostClass: [{
46
+ type: HostBinding,
47
+ args: ["class"]
48
+ }],
49
+ dismiss: [{ type: Output }]
50
+ }
51
+ });
52
+ var MojAlertComponent = class MojAlertComponent {
53
+ ariaLabel;
54
+ enableLiveAnnouncement = true;
55
+ type = "information";
56
+ showDismiss;
57
+ dismissed = new EventEmitter();
58
+ isVisible = true;
59
+ get hostClass() {
60
+ return this.isVisible ? `moj-alert moj-alert--${this.type}` : "";
61
+ }
62
+ dataModule = "moj-alert";
63
+ get announcementMessage() {
64
+ const ariaLabel = this.ariaLabel?.trim();
65
+ if (!ariaLabel) throw new Error("MojAlertComponent requires ariaLabel when live announcements are enabled. Provide ariaLabel or set enableLiveAnnouncement to false.");
66
+ return `${this.type}: ${ariaLabel}`;
67
+ }
68
+ get announcementRole() {
69
+ return this.type === "error" || this.type === "warning" ? "alert" : "status";
70
+ }
71
+ dismiss() {
72
+ this.isVisible = false;
73
+ this.dismissed.emit();
74
+ }
75
+ static ɵfac = i0.ɵɵngDeclareFactory({
76
+ minVersion: "12.0.0",
77
+ version: "21.2.25",
78
+ ngImport: i0,
79
+ type: MojAlertComponent,
80
+ deps: [],
81
+ target: i0.ɵɵFactoryTarget.Component
82
+ });
83
+ static ɵcmp = i0.ɵɵngDeclareComponent({
84
+ minVersion: "17.0.0",
85
+ version: "21.2.25",
86
+ type: MojAlertComponent,
87
+ isStandalone: true,
88
+ selector: "opal-lib-moj-alert, [opal-lib-moj-alert]",
89
+ inputs: {
90
+ ariaLabel: "ariaLabel",
91
+ enableLiveAnnouncement: "enableLiveAnnouncement",
92
+ type: "type",
93
+ showDismiss: "showDismiss"
94
+ },
95
+ outputs: { dismissed: "dismissed" },
96
+ host: { properties: {
97
+ "class": "this.hostClass",
98
+ "attr.data-module": "this.dataModule"
99
+ } },
100
+ ngImport: i0,
101
+ template: "@if (isVisible) {\n @if (enableLiveAnnouncement) {\n <opal-lib-custom-deferred-live-region-announcement\n [message]=\"announcementMessage\"\n [role]=\"announcementRole\"\n [announcementDelayMs]=\"200\"\n ></opal-lib-custom-deferred-live-region-announcement>\n }\n <ng-content select=\"[icon]\"></ng-content>\n <ng-content select=\"[content]\"></ng-content>\n\n @if (showDismiss) {\n <opal-lib-moj-alert-dismiss (dismiss)=\"dismiss()\"></opal-lib-moj-alert-dismiss>\n }\n}\n",
102
+ dependencies: [{
103
+ kind: "component",
104
+ type: MojAlertDismissComponent,
105
+ selector: "opal-lib-moj-alert-dismiss",
106
+ outputs: ["dismiss"]
107
+ }, {
108
+ kind: "component",
109
+ type: CustomDeferredLiveRegionAnnouncement,
110
+ selector: "opal-lib-custom-deferred-live-region-announcement",
111
+ inputs: [
112
+ "message",
113
+ "role",
114
+ "announcementDelayMs"
115
+ ]
116
+ }]
117
+ });
118
+ };
119
+ i0.ɵɵngDeclareClassMetadata({
120
+ minVersion: "12.0.0",
121
+ version: "21.2.25",
122
+ ngImport: i0,
123
+ type: MojAlertComponent,
124
+ decorators: [{
125
+ type: Component,
126
+ args: [{
127
+ selector: "opal-lib-moj-alert, [opal-lib-moj-alert]",
128
+ imports: [MojAlertDismissComponent, CustomDeferredLiveRegionAnnouncement],
129
+ template: "@if (isVisible) {\n @if (enableLiveAnnouncement) {\n <opal-lib-custom-deferred-live-region-announcement\n [message]=\"announcementMessage\"\n [role]=\"announcementRole\"\n [announcementDelayMs]=\"200\"\n ></opal-lib-custom-deferred-live-region-announcement>\n }\n <ng-content select=\"[icon]\"></ng-content>\n <ng-content select=\"[content]\"></ng-content>\n\n @if (showDismiss) {\n <opal-lib-moj-alert-dismiss (dismiss)=\"dismiss()\"></opal-lib-moj-alert-dismiss>\n }\n}\n"
130
+ }]
131
+ }],
132
+ propDecorators: {
133
+ ariaLabel: [{
134
+ type: Input,
135
+ args: [{ required: false }]
136
+ }],
137
+ enableLiveAnnouncement: [{
138
+ type: Input,
139
+ args: [{ required: false }]
140
+ }],
141
+ type: [{
142
+ type: Input,
143
+ args: [{ required: true }]
144
+ }],
145
+ showDismiss: [{
146
+ type: Input,
147
+ args: [{ required: false }]
148
+ }],
149
+ dismissed: [{ type: Output }],
150
+ hostClass: [{
151
+ type: HostBinding,
152
+ args: ["class"]
153
+ }],
154
+ dataModule: [{
155
+ type: HostBinding,
156
+ args: ["attr.data-module"]
157
+ }]
158
+ }
159
+ });
116
160
  const MOJ_ALERT_ICON_PATHS = {
117
- success: 'M11.2869 24.6726L2.00415 15.3899L4.62189 12.7722L11.2869 19.4186L25.3781 5.32739L27.9958 7.96369L11.2869 24.6726Z',
118
- warning: 'M15 2.44922L28.75 26.1992H1.25L15 2.44922ZM13.5107 9.49579H16.4697L16.2431 17.7678H13.7461L13.5107 9.49579ZM13.1299 21.82C13.1299 21.5661 13.1787 21.3285 13.2764 21.1071C13.374 20.8793 13.5075 20.6807 13.6768 20.5114C13.8525 20.3421 14.0544 20.2087 14.2822 20.111C14.5101 20.0134 14.7542 19.9645 15.0146 19.9645C15.2686 19.9645 15.5062 20.0134 15.7275 20.111C15.9554 20.2087 16.154 20.3421 16.3232 20.5114C16.4925 20.6807 16.626 20.8793 16.7236 21.1071C16.8213 21.3285 16.8701 21.5661 16.8701 21.82C16.8701 22.0804 16.8213 22.3246 16.7236 22.5524C16.626 22.7803 16.4925 22.9789 16.3232 23.1481C16.154 23.3174 15.9554 23.4509 15.7275 23.5485C15.5062 23.6462 15.2686 23.695 15.0146 23.695C14.7542 23.695 14.5101 23.6462 14.2822 23.5485C14.0544 23.4509 13.8525 23.3174 13.6768 23.1481C13.5075 22.9789 13.374 22.7803 13.2764 22.5524C13.1787 22.3246 13.1299 22.0804 13.1299 21.82Z',
119
- information: 'M10.2165 3.45151C11.733 2.82332 13.3585 2.5 15 2.5C16.6415 2.5 18.267 2.82332 19.7835 3.45151C21.3001 4.07969 22.6781 5.00043 23.8388 6.16117C24.9996 7.3219 25.9203 8.69989 26.5485 10.2165C27.1767 11.733 27.5 13.3585 27.5 15C27.5 18.3152 26.183 21.4946 23.8388 23.8388C21.4946 26.183 18.3152 27.5 15 27.5C13.3585 27.5 11.733 27.1767 10.2165 26.5485C8.69989 25.9203 7.3219 24.9996 6.16117 23.8388C3.81696 21.4946 2.5 18.3152 2.5 15C2.5 11.6848 3.81696 8.50537 6.16117 6.16117C7.3219 5.00043 8.69989 4.07969 10.2165 3.45151ZM16.3574 22.4121H13.6621V12.95H16.3574V22.4121ZM13.3789 9.20898C13.3789 8.98763 13.4212 8.7793 13.5059 8.58398C13.5905 8.38216 13.7044 8.20964 13.8477 8.06641C13.9974 7.91667 14.1699 7.79948 14.3652 7.71484C14.5605 7.63021 14.7721 7.58789 15 7.58789C15.2214 7.58789 15.4297 7.63021 15.625 7.71484C15.8268 7.79948 15.9993 7.91667 16.1426 8.06641C16.2923 8.20964 16.4095 8.38216 16.4941 8.58398C16.5788 8.7793 16.6211 8.98763 16.6211 9.20898C16.6211 9.43685 16.5788 9.64844 16.4941 9.84375C16.4095 10.0391 16.2923 10.2116 16.1426 10.3613C15.9993 10.5046 15.8268 10.6185 15.625 10.7031C15.4297 10.7878 15.2214 10.8301 15 10.8301C14.7721 10.8301 14.5605 10.7878 14.3652 10.7031C14.1699 10.6185 13.9974 10.5046 13.8477 10.3613C13.7044 10.2116 13.5905 10.0391 13.5059 9.84375C13.4212 9.64844 13.3789 9.43685 13.3789 9.20898Z',
120
- error: 'M20.1777 2.5H9.82233L2.5 9.82233V20.1777L9.82233 27.5H20.1777L27.5 20.1777V9.82233L20.1777 2.5ZM10.9155 8.87769L15.0001 12.9623L19.0847 8.87771L21.1224 10.9154L17.0378 15L21.1224 19.0846L19.0847 21.1222L15.0001 17.0376L10.9155 21.1223L8.87782 19.0846L12.9624 15L8.87783 10.9153L10.9155 8.87769Z',
161
+ success: "M11.2869 24.6726L2.00415 15.3899L4.62189 12.7722L11.2869 19.4186L25.3781 5.32739L27.9958 7.96369L11.2869 24.6726Z",
162
+ warning: "M15 2.44922L28.75 26.1992H1.25L15 2.44922ZM13.5107 9.49579H16.4697L16.2431 17.7678H13.7461L13.5107 9.49579ZM13.1299 21.82C13.1299 21.5661 13.1787 21.3285 13.2764 21.1071C13.374 20.8793 13.5075 20.6807 13.6768 20.5114C13.8525 20.3421 14.0544 20.2087 14.2822 20.111C14.5101 20.0134 14.7542 19.9645 15.0146 19.9645C15.2686 19.9645 15.5062 20.0134 15.7275 20.111C15.9554 20.2087 16.154 20.3421 16.3232 20.5114C16.4925 20.6807 16.626 20.8793 16.7236 21.1071C16.8213 21.3285 16.8701 21.5661 16.8701 21.82C16.8701 22.0804 16.8213 22.3246 16.7236 22.5524C16.626 22.7803 16.4925 22.9789 16.3232 23.1481C16.154 23.3174 15.9554 23.4509 15.7275 23.5485C15.5062 23.6462 15.2686 23.695 15.0146 23.695C14.7542 23.695 14.5101 23.6462 14.2822 23.5485C14.0544 23.4509 13.8525 23.3174 13.6768 23.1481C13.5075 22.9789 13.374 22.7803 13.2764 22.5524C13.1787 22.3246 13.1299 22.0804 13.1299 21.82Z",
163
+ information: "M10.2165 3.45151C11.733 2.82332 13.3585 2.5 15 2.5C16.6415 2.5 18.267 2.82332 19.7835 3.45151C21.3001 4.07969 22.6781 5.00043 23.8388 6.16117C24.9996 7.3219 25.9203 8.69989 26.5485 10.2165C27.1767 11.733 27.5 13.3585 27.5 15C27.5 18.3152 26.183 21.4946 23.8388 23.8388C21.4946 26.183 18.3152 27.5 15 27.5C13.3585 27.5 11.733 27.1767 10.2165 26.5485C8.69989 25.9203 7.3219 24.9996 6.16117 23.8388C3.81696 21.4946 2.5 18.3152 2.5 15C2.5 11.6848 3.81696 8.50537 6.16117 6.16117C7.3219 5.00043 8.69989 4.07969 10.2165 3.45151ZM16.3574 22.4121H13.6621V12.95H16.3574V22.4121ZM13.3789 9.20898C13.3789 8.98763 13.4212 8.7793 13.5059 8.58398C13.5905 8.38216 13.7044 8.20964 13.8477 8.06641C13.9974 7.91667 14.1699 7.79948 14.3652 7.71484C14.5605 7.63021 14.7721 7.58789 15 7.58789C15.2214 7.58789 15.4297 7.63021 15.625 7.71484C15.8268 7.79948 15.9993 7.91667 16.1426 8.06641C16.2923 8.20964 16.4095 8.38216 16.4941 8.58398C16.5788 8.7793 16.6211 8.98763 16.6211 9.20898C16.6211 9.43685 16.5788 9.64844 16.4941 9.84375C16.4095 10.0391 16.2923 10.2116 16.1426 10.3613C15.9993 10.5046 15.8268 10.6185 15.625 10.7031C15.4297 10.7878 15.2214 10.8301 15 10.8301C14.7721 10.8301 14.5605 10.7878 14.3652 10.7031C14.1699 10.6185 13.9974 10.5046 13.8477 10.3613C13.7044 10.2116 13.5905 10.0391 13.5059 9.84375C13.4212 9.64844 13.3789 9.43685 13.3789 9.20898Z",
164
+ error: "M20.1777 2.5H9.82233L2.5 9.82233V20.1777L9.82233 27.5H20.1777L27.5 20.1777V9.82233L20.1777 2.5ZM10.9155 8.87769L15.0001 12.9623L19.0847 8.87771L21.1224 10.9154L17.0378 15L21.1224 19.0846L19.0847 21.1222L15.0001 17.0376L10.9155 21.1223L8.87782 19.0846L12.9624 15L8.87783 10.9153L10.9155 8.87769Z"
121
165
  };
122
-
123
- class MojAlertPathDirective {
124
- icons = MOJ_ALERT_ICON_PATHS;
125
- el = inject((ElementRef));
126
- renderer = inject(Renderer2);
127
- type = 'information';
128
- /**
129
- * Retrieves the SVG path(s) corresponding to a given alert type.
130
- *
131
- * @param type - The alert type for which to get the icon path. Valid values include 'information', 'success', 'warning', and 'error'.
132
- * @returns An array containing the SVG path string for the specified alert type.
133
- *
134
- * If the provided type does not match any known alert types, the function defaults to returning the 'information' icon path.
135
- */
136
- getPathsForType(type) {
137
- switch (type) {
138
- case 'information':
139
- return [this.icons.information];
140
- case 'success':
141
- return [this.icons.success];
142
- case 'warning':
143
- return [this.icons.warning];
144
- case 'error':
145
- return [this.icons.error];
146
- default:
147
- return [this.icons.information];
148
- }
149
- }
150
- /**
151
- * Angular lifecycle hook that is called when any data-bound property of a directive changes.
152
- *
153
- * This method updates the SVG element by setting its namespace and fill attributes,
154
- * removing all existing child nodes, and appending new <path> elements corresponding
155
- * to the alert type. Each new path element is created with the appropriate attributes,
156
- * ensuring that the SVG reflects the current alert type consistently.
157
- */
158
- ngOnChanges() {
159
- const svg = this.el.nativeElement;
160
- this.renderer.setAttribute(svg, 'xmlns', 'http://www.w3.org/2000/svg');
161
- this.renderer.setAttribute(svg, 'fill', 'none');
162
- while (svg.firstChild) {
163
- svg.firstChild.remove();
164
- }
165
- const paths = this.getPathsForType(this.type);
166
- for (const pathD of paths) {
167
- const path = this.renderer.createElement('path', 'svg');
168
- this.renderer.setAttribute(path, 'd', pathD);
169
- this.renderer.setAttribute(path, 'fill', 'currentColor');
170
- this.renderer.setAttribute(path, 'fill-rule', 'evenodd');
171
- this.renderer.setAttribute(path, 'clip-rule', 'evenodd');
172
- svg.appendChild(path);
173
- }
174
- }
175
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertPathDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
176
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: MojAlertPathDirective, isStandalone: true, selector: "[opalLibMojAlertSortIcon]", inputs: { type: ["opalLibMojAlertSortIcon", "type"] }, usesOnChanges: true, ngImport: i0 });
177
- }
178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertPathDirective, decorators: [{
179
- type: Directive,
180
- args: [{
181
- selector: '[opalLibMojAlertSortIcon]',
182
- standalone: true,
183
- }]
184
- }], propDecorators: { type: [{
185
- type: Input,
186
- args: ['opalLibMojAlertSortIcon']
187
- }] } });
188
-
189
- class MojAlertIconComponent {
190
- type = 'information';
191
- applyColour = false;
192
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
193
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojAlertIconComponent, isStandalone: true, selector: "opal-lib-moj-alert-icon", inputs: { type: "type", applyColour: "applyColour" }, ngImport: i0, template: "<svg\n [opalLibMojAlertSortIcon]=\"type\"\n [class]=\"'moj-alert__icon' + (applyColour ? ' moj-alert--' + type : '')\"\n role=\"presentation\"\n focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 30 30\"\n height=\"30\"\n width=\"30\"\n fill=\"currentColor\"\n></svg>\n", dependencies: [{ kind: "directive", type: MojAlertPathDirective, selector: "[opalLibMojAlertSortIcon]", inputs: ["opalLibMojAlertSortIcon"] }] });
194
- }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertIconComponent, decorators: [{
196
- type: Component,
197
- args: [{ selector: 'opal-lib-moj-alert-icon', imports: [MojAlertPathDirective], template: "<svg\n [opalLibMojAlertSortIcon]=\"type\"\n [class]=\"'moj-alert__icon' + (applyColour ? ' moj-alert--' + type : '')\"\n role=\"presentation\"\n focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 30 30\"\n height=\"30\"\n width=\"30\"\n fill=\"currentColor\"\n></svg>\n" }]
198
- }], propDecorators: { type: [{
199
- type: Input,
200
- args: [{ required: true }]
201
- }], applyColour: [{
202
- type: Input,
203
- args: [{ required: false }]
204
- }] } });
205
-
206
- class MojAlertHeadingComponent {
207
- hostClass = 'moj-alert__heading';
208
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
209
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojAlertHeadingComponent, isStandalone: true, selector: "opal-lib-moj-alert-content-heading", host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n" });
210
- }
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertHeadingComponent, decorators: [{
212
- type: Component,
213
- args: [{ selector: 'opal-lib-moj-alert-content-heading', imports: [], template: "<ng-content></ng-content>\n" }]
214
- }], propDecorators: { hostClass: [{
215
- type: HostBinding,
216
- args: ['class']
217
- }] } });
218
-
219
- class MojAlertContentComponent {
220
- hostClass = 'moj-alert__content';
221
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
222
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojAlertContentComponent, isStandalone: true, selector: "opal-lib-moj-alert-content", host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n" });
223
- }
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertContentComponent, decorators: [{
225
- type: Component,
226
- args: [{ selector: 'opal-lib-moj-alert-content', imports: [], template: "<ng-content></ng-content>\n" }]
227
- }], propDecorators: { hostClass: [{
228
- type: HostBinding,
229
- args: ['class']
230
- }] } });
231
-
232
- class MojAlertTextComponent {
233
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
234
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojAlertTextComponent, isStandalone: true, selector: "opal-lib-moj-alert-content-text", ngImport: i0, template: "<ng-content></ng-content>\n" });
235
- }
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojAlertTextComponent, decorators: [{
237
- type: Component,
238
- args: [{ selector: 'opal-lib-moj-alert-content-text', imports: [], template: "<ng-content></ng-content>\n" }]
239
- }] });
240
-
241
- /**
242
- * Generated bundle index. Do not edit.
243
- */
244
-
166
+ var MojAlertPathDirective = class MojAlertPathDirective {
167
+ icons = MOJ_ALERT_ICON_PATHS;
168
+ el = inject(ElementRef);
169
+ renderer = inject(Renderer2);
170
+ type = "information";
171
+ getPathsForType(type) {
172
+ switch (type) {
173
+ case "information": return [this.icons.information];
174
+ case "success": return [this.icons.success];
175
+ case "warning": return [this.icons.warning];
176
+ case "error": return [this.icons.error];
177
+ default: return [this.icons.information];
178
+ }
179
+ }
180
+ ngOnChanges() {
181
+ const svg = this.el.nativeElement;
182
+ this.renderer.setAttribute(svg, "xmlns", "http://www.w3.org/2000/svg");
183
+ this.renderer.setAttribute(svg, "fill", "none");
184
+ while (svg.firstChild) svg.firstChild.remove();
185
+ const paths = this.getPathsForType(this.type);
186
+ for (const pathD of paths) {
187
+ const path = this.renderer.createElement("path", "svg");
188
+ this.renderer.setAttribute(path, "d", pathD);
189
+ this.renderer.setAttribute(path, "fill", "currentColor");
190
+ this.renderer.setAttribute(path, "fill-rule", "evenodd");
191
+ this.renderer.setAttribute(path, "clip-rule", "evenodd");
192
+ svg.appendChild(path);
193
+ }
194
+ }
195
+ static ɵfac = i0.ɵɵngDeclareFactory({
196
+ minVersion: "12.0.0",
197
+ version: "21.2.25",
198
+ ngImport: i0,
199
+ type: MojAlertPathDirective,
200
+ deps: [],
201
+ target: i0.ɵɵFactoryTarget.Directive
202
+ });
203
+ static ɵdir = i0.ɵɵngDeclareDirective({
204
+ minVersion: "14.0.0",
205
+ version: "21.2.25",
206
+ type: MojAlertPathDirective,
207
+ isStandalone: true,
208
+ selector: "[opalLibMojAlertSortIcon]",
209
+ inputs: { type: ["opalLibMojAlertSortIcon", "type"] },
210
+ usesOnChanges: true,
211
+ ngImport: i0
212
+ });
213
+ };
214
+ i0.ɵɵngDeclareClassMetadata({
215
+ minVersion: "12.0.0",
216
+ version: "21.2.25",
217
+ ngImport: i0,
218
+ type: MojAlertPathDirective,
219
+ decorators: [{
220
+ type: Directive,
221
+ args: [{
222
+ selector: "[opalLibMojAlertSortIcon]",
223
+ standalone: true
224
+ }]
225
+ }],
226
+ propDecorators: { type: [{
227
+ type: Input,
228
+ args: ["opalLibMojAlertSortIcon"]
229
+ }] }
230
+ });
231
+ var MojAlertIconComponent = class MojAlertIconComponent {
232
+ type = "information";
233
+ applyColour = false;
234
+ static ɵfac = i0.ɵɵngDeclareFactory({
235
+ minVersion: "12.0.0",
236
+ version: "21.2.25",
237
+ ngImport: i0,
238
+ type: MojAlertIconComponent,
239
+ deps: [],
240
+ target: i0.ɵɵFactoryTarget.Component
241
+ });
242
+ static ɵcmp = i0.ɵɵngDeclareComponent({
243
+ minVersion: "14.0.0",
244
+ version: "21.2.25",
245
+ type: MojAlertIconComponent,
246
+ isStandalone: true,
247
+ selector: "opal-lib-moj-alert-icon",
248
+ inputs: {
249
+ type: "type",
250
+ applyColour: "applyColour"
251
+ },
252
+ ngImport: i0,
253
+ template: "<svg\n [opalLibMojAlertSortIcon]=\"type\"\n [class]=\"'moj-alert__icon' + (applyColour ? ' moj-alert--' + type : '')\"\n role=\"presentation\"\n focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 30 30\"\n height=\"30\"\n width=\"30\"\n fill=\"currentColor\"\n></svg>\n",
254
+ dependencies: [{
255
+ kind: "directive",
256
+ type: MojAlertPathDirective,
257
+ selector: "[opalLibMojAlertSortIcon]",
258
+ inputs: ["opalLibMojAlertSortIcon"]
259
+ }]
260
+ });
261
+ };
262
+ i0.ɵɵngDeclareClassMetadata({
263
+ minVersion: "12.0.0",
264
+ version: "21.2.25",
265
+ ngImport: i0,
266
+ type: MojAlertIconComponent,
267
+ decorators: [{
268
+ type: Component,
269
+ args: [{
270
+ selector: "opal-lib-moj-alert-icon",
271
+ imports: [MojAlertPathDirective],
272
+ template: "<svg\n [opalLibMojAlertSortIcon]=\"type\"\n [class]=\"'moj-alert__icon' + (applyColour ? ' moj-alert--' + type : '')\"\n role=\"presentation\"\n focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 30 30\"\n height=\"30\"\n width=\"30\"\n fill=\"currentColor\"\n></svg>\n"
273
+ }]
274
+ }],
275
+ propDecorators: {
276
+ type: [{
277
+ type: Input,
278
+ args: [{ required: true }]
279
+ }],
280
+ applyColour: [{
281
+ type: Input,
282
+ args: [{ required: false }]
283
+ }]
284
+ }
285
+ });
286
+ var MojAlertHeadingComponent = class MojAlertHeadingComponent {
287
+ hostClass = "moj-alert__heading";
288
+ static ɵfac = i0.ɵɵngDeclareFactory({
289
+ minVersion: "12.0.0",
290
+ version: "21.2.25",
291
+ ngImport: i0,
292
+ type: MojAlertHeadingComponent,
293
+ deps: [],
294
+ target: i0.ɵɵFactoryTarget.Component
295
+ });
296
+ static ɵcmp = i0.ɵɵngDeclareComponent({
297
+ minVersion: "14.0.0",
298
+ version: "21.2.25",
299
+ type: MojAlertHeadingComponent,
300
+ isStandalone: true,
301
+ selector: "opal-lib-moj-alert-content-heading",
302
+ host: { properties: { "class": "this.hostClass" } },
303
+ ngImport: i0,
304
+ template: "<ng-content></ng-content>\n"
305
+ });
306
+ };
307
+ i0.ɵɵngDeclareClassMetadata({
308
+ minVersion: "12.0.0",
309
+ version: "21.2.25",
310
+ ngImport: i0,
311
+ type: MojAlertHeadingComponent,
312
+ decorators: [{
313
+ type: Component,
314
+ args: [{
315
+ selector: "opal-lib-moj-alert-content-heading",
316
+ imports: [],
317
+ template: "<ng-content></ng-content>\n"
318
+ }]
319
+ }],
320
+ propDecorators: { hostClass: [{
321
+ type: HostBinding,
322
+ args: ["class"]
323
+ }] }
324
+ });
325
+ var MojAlertContentComponent = class MojAlertContentComponent {
326
+ hostClass = "moj-alert__content";
327
+ static ɵfac = i0.ɵɵngDeclareFactory({
328
+ minVersion: "12.0.0",
329
+ version: "21.2.25",
330
+ ngImport: i0,
331
+ type: MojAlertContentComponent,
332
+ deps: [],
333
+ target: i0.ɵɵFactoryTarget.Component
334
+ });
335
+ static ɵcmp = i0.ɵɵngDeclareComponent({
336
+ minVersion: "14.0.0",
337
+ version: "21.2.25",
338
+ type: MojAlertContentComponent,
339
+ isStandalone: true,
340
+ selector: "opal-lib-moj-alert-content",
341
+ host: { properties: { "class": "this.hostClass" } },
342
+ ngImport: i0,
343
+ template: "<ng-content></ng-content>\n"
344
+ });
345
+ };
346
+ i0.ɵɵngDeclareClassMetadata({
347
+ minVersion: "12.0.0",
348
+ version: "21.2.25",
349
+ ngImport: i0,
350
+ type: MojAlertContentComponent,
351
+ decorators: [{
352
+ type: Component,
353
+ args: [{
354
+ selector: "opal-lib-moj-alert-content",
355
+ imports: [],
356
+ template: "<ng-content></ng-content>\n"
357
+ }]
358
+ }],
359
+ propDecorators: { hostClass: [{
360
+ type: HostBinding,
361
+ args: ["class"]
362
+ }] }
363
+ });
364
+ var MojAlertTextComponent = class MojAlertTextComponent {
365
+ static ɵfac = i0.ɵɵngDeclareFactory({
366
+ minVersion: "12.0.0",
367
+ version: "21.2.25",
368
+ ngImport: i0,
369
+ type: MojAlertTextComponent,
370
+ deps: [],
371
+ target: i0.ɵɵFactoryTarget.Component
372
+ });
373
+ static ɵcmp = i0.ɵɵngDeclareComponent({
374
+ minVersion: "14.0.0",
375
+ version: "21.2.25",
376
+ type: MojAlertTextComponent,
377
+ isStandalone: true,
378
+ selector: "opal-lib-moj-alert-content-text",
379
+ ngImport: i0,
380
+ template: "<ng-content></ng-content>\n"
381
+ });
382
+ };
383
+ i0.ɵɵngDeclareClassMetadata({
384
+ minVersion: "12.0.0",
385
+ version: "21.2.25",
386
+ ngImport: i0,
387
+ type: MojAlertTextComponent,
388
+ decorators: [{
389
+ type: Component,
390
+ args: [{
391
+ selector: "opal-lib-moj-alert-content-text",
392
+ imports: [],
393
+ template: "<ng-content></ng-content>\n"
394
+ }]
395
+ }]
396
+ });
245
397
  export { MojAlertComponent, MojAlertContentComponent, MojAlertHeadingComponent, MojAlertIconComponent, MojAlertTextComponent };
246
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-alert.mjs.map
398
+
399
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-alert.mjs.map