@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,48 +1,69 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- class MojFilterPanelOptionFormGroupKeywordComponent {
5
- inputId = 'keywords';
6
- inputName = 'keywords';
7
- labelValue = 'Keywords';
8
- keywordChange = new EventEmitter();
9
- /**
10
- * Handles the keyword change event from an input element.
11
- *
12
- * This function extracts the keyword from the event target (an HTML input element) and emits the new value
13
- * using the `keywordChange` event emitter.
14
- *
15
- * @param event - The DOM event triggered by a change in the input element.
16
- */
17
- onKeywordChange(event) {
18
- let keyword = '';
19
- if (event) {
20
- keyword = event.target.value;
21
- }
22
- this.keywordChange.emit(keyword);
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelOptionFormGroupKeywordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojFilterPanelOptionFormGroupKeywordComponent, isStandalone: true, selector: "opal-lib-moj-filter-panel-option-form-group-keyword", inputs: { inputId: "inputId", inputName: "inputName", labelValue: "labelValue" }, outputs: { keywordChange: "keywordChange" }, ngImport: i0, template: "<div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"inputId\"> {{ labelValue }} </label>\n <input class=\"govuk-input\" [id]=\"inputId\" [name]=\"inputName\" type=\"text\" (input)=\"onKeywordChange($event)\" />\n</div>\n<ng-content select=\"[mojFilterPanelItems]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelOptionFormGroupKeywordComponent, decorators: [{
28
- type: Component,
29
- args: [{ selector: 'opal-lib-moj-filter-panel-option-form-group-keyword', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"inputId\"> {{ labelValue }} </label>\n <input class=\"govuk-input\" [id]=\"inputId\" [name]=\"inputName\" type=\"text\" (input)=\"onKeywordChange($event)\" />\n</div>\n<ng-content select=\"[mojFilterPanelItems]\"></ng-content>\n" }]
30
- }], propDecorators: { inputId: [{
31
- type: Input,
32
- args: [{ required: false }]
33
- }], inputName: [{
34
- type: Input,
35
- args: [{ required: false }]
36
- }], labelValue: [{
37
- type: Input,
38
- args: [{ required: false }]
39
- }], keywordChange: [{
40
- type: Output
41
- }] } });
42
-
43
- /**
44
- * Generated bundle index. Do not edit.
45
- */
46
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
3
+ var MojFilterPanelOptionFormGroupKeywordComponent = class MojFilterPanelOptionFormGroupKeywordComponent {
4
+ inputId = "keywords";
5
+ inputName = "keywords";
6
+ labelValue = "Keywords";
7
+ keywordChange = new EventEmitter();
8
+ onKeywordChange(event) {
9
+ let keyword = "";
10
+ if (event) keyword = event.target.value;
11
+ this.keywordChange.emit(keyword);
12
+ }
13
+ static ɵfac = i0.ɵɵngDeclareFactory({
14
+ minVersion: "12.0.0",
15
+ version: "21.2.25",
16
+ ngImport: i0,
17
+ type: MojFilterPanelOptionFormGroupKeywordComponent,
18
+ deps: [],
19
+ target: i0.ɵɵFactoryTarget.Component
20
+ });
21
+ static ɵcmp = i0.ɵɵngDeclareComponent({
22
+ minVersion: "14.0.0",
23
+ version: "21.2.25",
24
+ type: MojFilterPanelOptionFormGroupKeywordComponent,
25
+ isStandalone: true,
26
+ selector: "opal-lib-moj-filter-panel-option-form-group-keyword",
27
+ inputs: {
28
+ inputId: "inputId",
29
+ inputName: "inputName",
30
+ labelValue: "labelValue"
31
+ },
32
+ outputs: { keywordChange: "keywordChange" },
33
+ ngImport: i0,
34
+ template: "<div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"inputId\"> {{ labelValue }} </label>\n <input class=\"govuk-input\" [id]=\"inputId\" [name]=\"inputName\" type=\"text\" (input)=\"onKeywordChange($event)\" />\n</div>\n<ng-content select=\"[mojFilterPanelItems]\"></ng-content>\n",
35
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
36
+ });
37
+ };
38
+ i0.ɵɵngDeclareClassMetadata({
39
+ minVersion: "12.0.0",
40
+ version: "21.2.25",
41
+ ngImport: i0,
42
+ type: MojFilterPanelOptionFormGroupKeywordComponent,
43
+ decorators: [{
44
+ type: Component,
45
+ args: [{
46
+ selector: "opal-lib-moj-filter-panel-option-form-group-keyword",
47
+ changeDetection: ChangeDetectionStrategy.OnPush,
48
+ template: "<div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"inputId\"> {{ labelValue }} </label>\n <input class=\"govuk-input\" [id]=\"inputId\" [name]=\"inputName\" type=\"text\" (input)=\"onKeywordChange($event)\" />\n</div>\n<ng-content select=\"[mojFilterPanelItems]\"></ng-content>\n"
49
+ }]
50
+ }],
51
+ propDecorators: {
52
+ inputId: [{
53
+ type: Input,
54
+ args: [{ required: false }]
55
+ }],
56
+ inputName: [{
57
+ type: Input,
58
+ args: [{ required: false }]
59
+ }],
60
+ labelValue: [{
61
+ type: Input,
62
+ args: [{ required: false }]
63
+ }],
64
+ keywordChange: [{ type: Output }]
65
+ }
66
+ });
47
67
  export { MojFilterPanelOptionFormGroupKeywordComponent };
48
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-keyword.mjs.map
68
+
69
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option-moj-filter-panel-option-form-group-keyword.mjs.map
@@ -1,34 +1,53 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- class MojFilterPanelOptionComponent {
5
- buttonText = 'Apply filters';
6
- applyFilters = new EventEmitter();
7
- /**
8
- * Emits the applyFilters event.
9
- *
10
- * This method triggers the emission of the applyFilters event to notify
11
- * any subscribers that the filter criteria have been applied.
12
- */
13
- onApplyFilters() {
14
- this.applyFilters.emit();
15
- }
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojFilterPanelOptionComponent, isStandalone: true, selector: "opal-lib-moj-filter-panel-option", inputs: { buttonText: "buttonText" }, outputs: { applyFilters: "applyFilters" }, ngImport: i0, template: "<div class=\"moj-filter__options\">\n <button\n type=\"button\"\n class=\"govuk-button\"\n data-module=\"govuk-button\"\n data-test-id=\"submit-button\"\n (click)=\"onApplyFilters()\"\n >\n {{ buttonText }}\n </button>\n <ng-content select=\"[mojFilterPanelKeyword]\"></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelOptionComponent, decorators: [{
20
- type: Component,
21
- args: [{ selector: 'opal-lib-moj-filter-panel-option', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"moj-filter__options\">\n <button\n type=\"button\"\n class=\"govuk-button\"\n data-module=\"govuk-button\"\n data-test-id=\"submit-button\"\n (click)=\"onApplyFilters()\"\n >\n {{ buttonText }}\n </button>\n <ng-content select=\"[mojFilterPanelKeyword]\"></ng-content>\n</div>\n" }]
22
- }], propDecorators: { buttonText: [{
23
- type: Input,
24
- args: [{ required: false }]
25
- }], applyFilters: [{
26
- type: Output
27
- }] } });
28
-
29
- /**
30
- * Generated bundle index. Do not edit.
31
- */
32
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
3
+ var MojFilterPanelOptionComponent = class MojFilterPanelOptionComponent {
4
+ buttonText = "Apply filters";
5
+ applyFilters = new EventEmitter();
6
+ onApplyFilters() {
7
+ this.applyFilters.emit();
8
+ }
9
+ static ɵfac = i0.ɵɵngDeclareFactory({
10
+ minVersion: "12.0.0",
11
+ version: "21.2.25",
12
+ ngImport: i0,
13
+ type: MojFilterPanelOptionComponent,
14
+ deps: [],
15
+ target: i0.ɵɵFactoryTarget.Component
16
+ });
17
+ static ɵcmp = i0.ɵɵngDeclareComponent({
18
+ minVersion: "14.0.0",
19
+ version: "21.2.25",
20
+ type: MojFilterPanelOptionComponent,
21
+ isStandalone: true,
22
+ selector: "opal-lib-moj-filter-panel-option",
23
+ inputs: { buttonText: "buttonText" },
24
+ outputs: { applyFilters: "applyFilters" },
25
+ ngImport: i0,
26
+ template: "<div class=\"moj-filter__options\">\n <button\n type=\"button\"\n class=\"govuk-button\"\n data-module=\"govuk-button\"\n data-test-id=\"submit-button\"\n (click)=\"onApplyFilters()\"\n >\n {{ buttonText }}\n </button>\n <ng-content select=\"[mojFilterPanelKeyword]\"></ng-content>\n</div>\n",
27
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
28
+ });
29
+ };
30
+ i0.ɵɵngDeclareClassMetadata({
31
+ minVersion: "12.0.0",
32
+ version: "21.2.25",
33
+ ngImport: i0,
34
+ type: MojFilterPanelOptionComponent,
35
+ decorators: [{
36
+ type: Component,
37
+ args: [{
38
+ selector: "opal-lib-moj-filter-panel-option",
39
+ changeDetection: ChangeDetectionStrategy.OnPush,
40
+ template: "<div class=\"moj-filter__options\">\n <button\n type=\"button\"\n class=\"govuk-button\"\n data-module=\"govuk-button\"\n data-test-id=\"submit-button\"\n (click)=\"onApplyFilters()\"\n >\n {{ buttonText }}\n </button>\n <ng-content select=\"[mojFilterPanelKeyword]\"></ng-content>\n</div>\n"
41
+ }]
42
+ }],
43
+ propDecorators: {
44
+ buttonText: [{
45
+ type: Input,
46
+ args: [{ required: false }]
47
+ }],
48
+ applyFilters: [{ type: Output }]
49
+ }
50
+ });
33
51
  export { MojFilterPanelOptionComponent };
34
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.mjs.map
52
+
53
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.mjs.map
@@ -1,41 +1,62 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- class MojFilterPanelSelectedTagComponent {
5
- filterData = [];
6
- ariaLabelPrefix = 'Remove this filter';
7
- removeTagClicked = new EventEmitter();
8
- /**
9
- * Removes the tag with the specified label.
10
- *
11
- * This method emits an event to signal that the tag related to the provided label should be removed.
12
- *
13
- * @param label - The label of the tag to remove.
14
- */
15
- removeTag(categoryName, optionValue, event) {
16
- if (event) {
17
- event.preventDefault();
18
- }
19
- this.removeTagClicked.emit({ categoryName, optionValue });
20
- }
21
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelSelectedTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: MojFilterPanelSelectedTagComponent, isStandalone: true, selector: "opal-lib-moj-filter-panel-selected-tag", inputs: { filterData: "filterData", ariaLabelPrefix: "ariaLabelPrefix" }, outputs: { removeTagClicked: "removeTagClicked" }, ngImport: i0, template: "@for (data of filterData; track data.categoryName) {\n <h3 class=\"govuk-heading-s govuk-!-margin-bottom-0\">{{ data.categoryName }}</h3>\n <ul class=\"moj-filter-tags\">\n @for (tag of data.options; track tag.value) {\n <li>\n <a class=\"moj-filter__tag\" href=\"#\" (click)=\"removeTag(data.categoryName, tag.value, $event)\">\n <span class=\"govuk-visually-hidden\">{{ ariaLabelPrefix }}</span> {{ tag.label }}\n </a>\n </li>\n }\n </ul>\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelSelectedTagComponent, decorators: [{
25
- type: Component,
26
- args: [{ selector: 'opal-lib-moj-filter-panel-selected-tag', changeDetection: ChangeDetectionStrategy.OnPush, template: "@for (data of filterData; track data.categoryName) {\n <h3 class=\"govuk-heading-s govuk-!-margin-bottom-0\">{{ data.categoryName }}</h3>\n <ul class=\"moj-filter-tags\">\n @for (tag of data.options; track tag.value) {\n <li>\n <a class=\"moj-filter__tag\" href=\"#\" (click)=\"removeTag(data.categoryName, tag.value, $event)\">\n <span class=\"govuk-visually-hidden\">{{ ariaLabelPrefix }}</span> {{ tag.label }}\n </a>\n </li>\n }\n </ul>\n}\n" }]
27
- }], propDecorators: { filterData: [{
28
- type: Input
29
- }], ariaLabelPrefix: [{
30
- type: Input,
31
- args: [{ required: false }]
32
- }], removeTagClicked: [{
33
- type: Output
34
- }] } });
35
-
36
- /**
37
- * Generated bundle index. Do not edit.
38
- */
39
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
3
+ var MojFilterPanelSelectedTagComponent = class MojFilterPanelSelectedTagComponent {
4
+ filterData = [];
5
+ ariaLabelPrefix = "Remove this filter";
6
+ removeTagClicked = new EventEmitter();
7
+ removeTag(categoryName, optionValue, event) {
8
+ if (event) event.preventDefault();
9
+ this.removeTagClicked.emit({
10
+ categoryName,
11
+ optionValue
12
+ });
13
+ }
14
+ static ɵfac = i0.ɵɵngDeclareFactory({
15
+ minVersion: "12.0.0",
16
+ version: "21.2.25",
17
+ ngImport: i0,
18
+ type: MojFilterPanelSelectedTagComponent,
19
+ deps: [],
20
+ target: i0.ɵɵFactoryTarget.Component
21
+ });
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({
23
+ minVersion: "17.0.0",
24
+ version: "21.2.25",
25
+ type: MojFilterPanelSelectedTagComponent,
26
+ isStandalone: true,
27
+ selector: "opal-lib-moj-filter-panel-selected-tag",
28
+ inputs: {
29
+ filterData: "filterData",
30
+ ariaLabelPrefix: "ariaLabelPrefix"
31
+ },
32
+ outputs: { removeTagClicked: "removeTagClicked" },
33
+ ngImport: i0,
34
+ template: "@for (data of filterData; track data.categoryName) {\n <h3 class=\"govuk-heading-s govuk-!-margin-bottom-0\">{{ data.categoryName }}</h3>\n <ul class=\"moj-filter-tags\">\n @for (tag of data.options; track tag.value) {\n <li>\n <a class=\"moj-filter__tag\" href=\"#\" (click)=\"removeTag(data.categoryName, tag.value, $event)\">\n <span class=\"govuk-visually-hidden\">{{ ariaLabelPrefix }}</span> {{ tag.label }}\n </a>\n </li>\n }\n </ul>\n}\n",
35
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
36
+ });
37
+ };
38
+ i0.ɵɵngDeclareClassMetadata({
39
+ minVersion: "12.0.0",
40
+ version: "21.2.25",
41
+ ngImport: i0,
42
+ type: MojFilterPanelSelectedTagComponent,
43
+ decorators: [{
44
+ type: Component,
45
+ args: [{
46
+ selector: "opal-lib-moj-filter-panel-selected-tag",
47
+ changeDetection: ChangeDetectionStrategy.OnPush,
48
+ template: "@for (data of filterData; track data.categoryName) {\n <h3 class=\"govuk-heading-s govuk-!-margin-bottom-0\">{{ data.categoryName }}</h3>\n <ul class=\"moj-filter-tags\">\n @for (tag of data.options; track tag.value) {\n <li>\n <a class=\"moj-filter__tag\" href=\"#\" (click)=\"removeTag(data.categoryName, tag.value, $event)\">\n <span class=\"govuk-visually-hidden\">{{ ariaLabelPrefix }}</span> {{ tag.label }}\n </a>\n </li>\n }\n </ul>\n}\n"
49
+ }]
50
+ }],
51
+ propDecorators: {
52
+ filterData: [{ type: Input }],
53
+ ariaLabelPrefix: [{
54
+ type: Input,
55
+ args: [{ required: false }]
56
+ }],
57
+ removeTagClicked: [{ type: Output }]
58
+ }
59
+ });
40
60
  export { MojFilterPanelSelectedTagComponent };
41
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.mjs.map
61
+
62
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.mjs.map
@@ -1,43 +1,64 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- class MojFilterPanelSelectedComponent {
5
- headingLabel = 'Selected filters';
6
- linkLabel = 'Clear filters';
7
- clearFilters = new EventEmitter();
8
- /**
9
- * Clears the selected tag filter.
10
- *
11
- * If an event is provided, this method prevents its default behavior to avoid unintended side effects.
12
- * It then emits the `clearFilters` event to reset the applied filters.
13
- *
14
- * @param event - An optional event that triggered the clear action.
15
- */
16
- clearTag(event) {
17
- if (event) {
18
- event.preventDefault();
19
- }
20
- this.clearFilters.emit();
21
- }
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelSelectedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojFilterPanelSelectedComponent, isStandalone: true, selector: "opal-lib-moj-filter-panel-selected", inputs: { headingLabel: "headingLabel", linkLabel: "linkLabel" }, outputs: { clearFilters: "clearFilters" }, ngImport: i0, template: "<div class=\"moj-filter__content\">\n <div class=\"moj-filter__selected\">\n <div class=\"moj-filter__selected-heading\">\n <div class=\"moj-filter__heading-title\">\n <h2 class=\"govuk-heading-m\">{{ headingLabel }}</h2>\n </div>\n <div class=\"moj-filter__heading-action\">\n <a class=\"govuk-link govuk-link--no-visited-state\" href=\"#\" (click)=\"clearTag($event)\">{{ linkLabel }}</a>\n </div>\n </div>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".moj-filter__selected-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:1rem}.moj-filter__heading-title,.moj-filter__heading-action{margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelSelectedComponent, decorators: [{
26
- type: Component,
27
- args: [{ selector: 'opal-lib-moj-filter-panel-selected', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"moj-filter__content\">\n <div class=\"moj-filter__selected\">\n <div class=\"moj-filter__selected-heading\">\n <div class=\"moj-filter__heading-title\">\n <h2 class=\"govuk-heading-m\">{{ headingLabel }}</h2>\n </div>\n <div class=\"moj-filter__heading-action\">\n <a class=\"govuk-link govuk-link--no-visited-state\" href=\"#\" (click)=\"clearTag($event)\">{{ linkLabel }}</a>\n </div>\n </div>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".moj-filter__selected-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:1rem}.moj-filter__heading-title,.moj-filter__heading-action{margin:0}\n"] }]
28
- }], propDecorators: { headingLabel: [{
29
- type: Input,
30
- args: [{ required: false }]
31
- }], linkLabel: [{
32
- type: Input,
33
- args: [{ required: false }]
34
- }], clearFilters: [{
35
- type: Output
36
- }] } });
37
-
38
- /**
39
- * Generated bundle index. Do not edit.
40
- */
41
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
3
+ var MojFilterPanelSelectedComponent = class MojFilterPanelSelectedComponent {
4
+ headingLabel = "Selected filters";
5
+ linkLabel = "Clear filters";
6
+ clearFilters = new EventEmitter();
7
+ clearTag(event) {
8
+ if (event) event.preventDefault();
9
+ this.clearFilters.emit();
10
+ }
11
+ static ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "21.2.25",
14
+ ngImport: i0,
15
+ type: MojFilterPanelSelectedComponent,
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: MojFilterPanelSelectedComponent,
23
+ isStandalone: true,
24
+ selector: "opal-lib-moj-filter-panel-selected",
25
+ inputs: {
26
+ headingLabel: "headingLabel",
27
+ linkLabel: "linkLabel"
28
+ },
29
+ outputs: { clearFilters: "clearFilters" },
30
+ ngImport: i0,
31
+ template: "<div class=\"moj-filter__content\">\n <div class=\"moj-filter__selected\">\n <div class=\"moj-filter__selected-heading\">\n <div class=\"moj-filter__heading-title\">\n <h2 class=\"govuk-heading-m\">{{ headingLabel }}</h2>\n </div>\n <div class=\"moj-filter__heading-action\">\n <a class=\"govuk-link govuk-link--no-visited-state\" href=\"#\" (click)=\"clearTag($event)\">{{ linkLabel }}</a>\n </div>\n </div>\n <ng-content></ng-content>\n </div>\n</div>\n",
32
+ styles: [".moj-filter__selected-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:1rem}.moj-filter__heading-title,.moj-filter__heading-action{margin:0}\n"],
33
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
34
+ });
35
+ };
36
+ i0.ɵɵngDeclareClassMetadata({
37
+ minVersion: "12.0.0",
38
+ version: "21.2.25",
39
+ ngImport: i0,
40
+ type: MojFilterPanelSelectedComponent,
41
+ decorators: [{
42
+ type: Component,
43
+ args: [{
44
+ selector: "opal-lib-moj-filter-panel-selected",
45
+ changeDetection: ChangeDetectionStrategy.OnPush,
46
+ template: "<div class=\"moj-filter__content\">\n <div class=\"moj-filter__selected\">\n <div class=\"moj-filter__selected-heading\">\n <div class=\"moj-filter__heading-title\">\n <h2 class=\"govuk-heading-m\">{{ headingLabel }}</h2>\n </div>\n <div class=\"moj-filter__heading-action\">\n <a class=\"govuk-link govuk-link--no-visited-state\" href=\"#\" (click)=\"clearTag($event)\">{{ linkLabel }}</a>\n </div>\n </div>\n <ng-content></ng-content>\n </div>\n</div>\n",
47
+ styles: [".moj-filter__selected-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:1rem}.moj-filter__heading-title,.moj-filter__heading-action{margin:0}\n"]
48
+ }]
49
+ }],
50
+ propDecorators: {
51
+ headingLabel: [{
52
+ type: Input,
53
+ args: [{ required: false }]
54
+ }],
55
+ linkLabel: [{
56
+ type: Input,
57
+ args: [{ required: false }]
58
+ }],
59
+ clearFilters: [{ type: Output }]
60
+ }
61
+ });
42
62
  export { MojFilterPanelSelectedComponent };
43
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.mjs.map
63
+
64
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.mjs.map
@@ -1,18 +1,39 @@
1
- import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- class MojFilterPanelComponent {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojFilterPanelComponent, isStandalone: true, selector: "opal-lib-moj-filter-panel", ngImport: i0, template: "<div class=\"moj-filter\" data-module=\"moj-filter\">\n <ng-content select=\"[mojFilterPanelHeader]\"></ng-content>\n <ng-content select=\"[mojFilterPanelSelected]\"></ng-content>\n <ng-content select=\"[mojFilterPanelOption]\"></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
- }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterPanelComponent, decorators: [{
9
- type: Component,
10
- args: [{ selector: 'opal-lib-moj-filter-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"moj-filter\" data-module=\"moj-filter\">\n <ng-content select=\"[mojFilterPanelHeader]\"></ng-content>\n <ng-content select=\"[mojFilterPanelSelected]\"></ng-content>\n <ng-content select=\"[mojFilterPanelOption]\"></ng-content>\n</div>\n" }]
11
- }] });
12
-
13
- /**
14
- * Generated bundle index. Do not edit.
15
- */
16
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component } from "@angular/core";
3
+ var MojFilterPanelComponent = class MojFilterPanelComponent {
4
+ static ɵfac = i0.ɵɵngDeclareFactory({
5
+ minVersion: "12.0.0",
6
+ version: "21.2.25",
7
+ ngImport: i0,
8
+ type: MojFilterPanelComponent,
9
+ deps: [],
10
+ target: i0.ɵɵFactoryTarget.Component
11
+ });
12
+ static ɵcmp = i0.ɵɵngDeclareComponent({
13
+ minVersion: "14.0.0",
14
+ version: "21.2.25",
15
+ type: MojFilterPanelComponent,
16
+ isStandalone: true,
17
+ selector: "opal-lib-moj-filter-panel",
18
+ ngImport: i0,
19
+ template: "<div class=\"moj-filter\" data-module=\"moj-filter\">\n <ng-content select=\"[mojFilterPanelHeader]\"></ng-content>\n <ng-content select=\"[mojFilterPanelSelected]\"></ng-content>\n <ng-content select=\"[mojFilterPanelOption]\"></ng-content>\n</div>\n",
20
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
21
+ });
22
+ };
23
+ i0.ɵɵngDeclareClassMetadata({
24
+ minVersion: "12.0.0",
25
+ version: "21.2.25",
26
+ ngImport: i0,
27
+ type: MojFilterPanelComponent,
28
+ decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ selector: "opal-lib-moj-filter-panel",
32
+ changeDetection: ChangeDetectionStrategy.OnPush,
33
+ template: "<div class=\"moj-filter\" data-module=\"moj-filter\">\n <ng-content select=\"[mojFilterPanelHeader]\"></ng-content>\n <ng-content select=\"[mojFilterPanelSelected]\"></ng-content>\n <ng-content select=\"[mojFilterPanelOption]\"></ng-content>\n</div>\n"
34
+ }]
35
+ }]
36
+ });
17
37
  export { MojFilterPanelComponent };
18
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.mjs.map
38
+
39
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.mjs.map
@@ -1,36 +1,58 @@
1
- import * as i0 from '@angular/core';
2
- import { Input, Component } from '@angular/core';
3
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, Input } from "@angular/core";
4
3
  let nextFilterId = 0;
5
- class MojFilterComponent {
6
- showFilter = false;
7
- filterId = `moj-filter-${++nextFilterId}`;
8
- /**
9
- * Toggles the visibility of the filter panel.
10
- *
11
- * This method inverts the current value of `showFilter`, effectively
12
- * showing the filter panel if it is hidden, or hiding it if it is visible.
13
- */
14
- toggleFilter() {
15
- this.showFilter = !this.showFilter;
16
- }
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: MojFilterComponent, isStandalone: true, selector: "opal-lib-moj-filter", inputs: { showFilter: "showFilter", filterId: "filterId" }, ngImport: i0, template: "<div class=\"moj-filter-layout\">\n <div class=\"moj-filter-layout__filter\" [id]=\"filterId\" [hidden]=\"!showFilter\">\n <ng-content select=\"[mojFilterPanel]\"></ng-content>\n </div>\n <div class=\"moj-filter-layout__content\">\n <button\n type=\"button\"\n class=\"govuk-button govuk-button--secondary moj-filter-layout__toggle-button\"\n [attr.aria-controls]=\"filterId\"\n [attr.aria-expanded]=\"showFilter\"\n (click)=\"toggleFilter()\"\n >\n {{ showFilter ? 'Hide filter' : 'Show filter' }}\n </button>\n\n <ng-content select=\"[mojFilterContent]\"></ng-content>\n </div>\n</div>\n" });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MojFilterComponent, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'opal-lib-moj-filter', standalone: true, template: "<div class=\"moj-filter-layout\">\n <div class=\"moj-filter-layout__filter\" [id]=\"filterId\" [hidden]=\"!showFilter\">\n <ng-content select=\"[mojFilterPanel]\"></ng-content>\n </div>\n <div class=\"moj-filter-layout__content\">\n <button\n type=\"button\"\n class=\"govuk-button govuk-button--secondary moj-filter-layout__toggle-button\"\n [attr.aria-controls]=\"filterId\"\n [attr.aria-expanded]=\"showFilter\"\n (click)=\"toggleFilter()\"\n >\n {{ showFilter ? 'Hide filter' : 'Show filter' }}\n </button>\n\n <ng-content select=\"[mojFilterContent]\"></ng-content>\n </div>\n</div>\n" }]
23
- }], propDecorators: { showFilter: [{
24
- type: Input,
25
- args: [{ required: false }]
26
- }], filterId: [{
27
- type: Input,
28
- args: [{ required: false }]
29
- }] } });
30
-
31
- /**
32
- * Generated bundle index. Do not edit.
33
- */
34
-
4
+ var MojFilterComponent = class MojFilterComponent {
5
+ showFilter = false;
6
+ filterId = `moj-filter-${++nextFilterId}`;
7
+ toggleFilter() {
8
+ this.showFilter = !this.showFilter;
9
+ }
10
+ static ɵfac = i0.ɵɵngDeclareFactory({
11
+ minVersion: "12.0.0",
12
+ version: "21.2.25",
13
+ ngImport: i0,
14
+ type: MojFilterComponent,
15
+ deps: [],
16
+ target: i0.ɵɵFactoryTarget.Component
17
+ });
18
+ static ɵcmp = i0.ɵɵngDeclareComponent({
19
+ minVersion: "14.0.0",
20
+ version: "21.2.25",
21
+ type: MojFilterComponent,
22
+ isStandalone: true,
23
+ selector: "opal-lib-moj-filter",
24
+ inputs: {
25
+ showFilter: "showFilter",
26
+ filterId: "filterId"
27
+ },
28
+ ngImport: i0,
29
+ template: "<div class=\"moj-filter-layout\">\n <div class=\"moj-filter-layout__filter\" [id]=\"filterId\" [hidden]=\"!showFilter\">\n <ng-content select=\"[mojFilterPanel]\"></ng-content>\n </div>\n <div class=\"moj-filter-layout__content\">\n <button\n type=\"button\"\n class=\"govuk-button govuk-button--secondary moj-filter-layout__toggle-button\"\n [attr.aria-controls]=\"filterId\"\n [attr.aria-expanded]=\"showFilter\"\n (click)=\"toggleFilter()\"\n >\n {{ showFilter ? 'Hide filter' : 'Show filter' }}\n </button>\n\n <ng-content select=\"[mojFilterContent]\"></ng-content>\n </div>\n</div>\n"
30
+ });
31
+ };
32
+ i0.ɵɵngDeclareClassMetadata({
33
+ minVersion: "12.0.0",
34
+ version: "21.2.25",
35
+ ngImport: i0,
36
+ type: MojFilterComponent,
37
+ decorators: [{
38
+ type: Component,
39
+ args: [{
40
+ selector: "opal-lib-moj-filter",
41
+ standalone: true,
42
+ template: "<div class=\"moj-filter-layout\">\n <div class=\"moj-filter-layout__filter\" [id]=\"filterId\" [hidden]=\"!showFilter\">\n <ng-content select=\"[mojFilterPanel]\"></ng-content>\n </div>\n <div class=\"moj-filter-layout__content\">\n <button\n type=\"button\"\n class=\"govuk-button govuk-button--secondary moj-filter-layout__toggle-button\"\n [attr.aria-controls]=\"filterId\"\n [attr.aria-expanded]=\"showFilter\"\n (click)=\"toggleFilter()\"\n >\n {{ showFilter ? 'Hide filter' : 'Show filter' }}\n </button>\n\n <ng-content select=\"[mojFilterContent]\"></ng-content>\n </div>\n</div>\n"
43
+ }]
44
+ }],
45
+ propDecorators: {
46
+ showFilter: [{
47
+ type: Input,
48
+ args: [{ required: false }]
49
+ }],
50
+ filterId: [{
51
+ type: Input,
52
+ args: [{ required: false }]
53
+ }]
54
+ }
55
+ });
35
56
  export { MojFilterComponent };
36
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter.mjs.map
57
+
58
+ //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-filter.mjs.map
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- //# sourceMappingURL=hmcts-opal-frontend-common-components-moj-moj-header-interfaces.mjs.map