@hmcts/opal-frontend-common 0.0.53 → 0.0.55

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 (302) hide show
  1. package/fesm2022/{hmcts-opal-frontend-common-access-denied.component-Br5FPygn.mjs → hmcts-opal-frontend-common-access-denied.component-GXcZeEZc.mjs} +4 -4
  2. package/fesm2022/{hmcts-opal-frontend-common-access-denied.component-Br5FPygn.mjs.map → hmcts-opal-frontend-common-access-denied.component-GXcZeEZc.mjs.map} +1 -1
  3. package/fesm2022/{hmcts-opal-frontend-common-account-created.component-89uNNkjk.mjs → hmcts-opal-frontend-common-account-created.component-CnWM00dp.mjs} +4 -4
  4. package/fesm2022/{hmcts-opal-frontend-common-account-created.component-89uNNkjk.mjs.map → hmcts-opal-frontend-common-account-created.component-CnWM00dp.mjs.map} +1 -1
  5. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.mjs +3 -3
  6. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.mjs +3 -3
  7. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.mjs +3 -3
  8. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs +7 -11
  9. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs.map +1 -1
  10. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.mjs +3 -3
  11. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.mjs +3 -3
  12. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.mjs +3 -3
  13. package/fesm2022/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.mjs +3 -3
  14. package/fesm2022/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.mjs +3 -3
  15. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.mjs +3 -3
  16. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.mjs +3 -3
  17. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.mjs +3 -3
  18. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-account-information.mjs +3 -3
  19. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-action-links.mjs +3 -3
  20. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.mjs +3 -3
  21. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-page-header.mjs +3 -3
  22. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.mjs +3 -3
  23. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.mjs +3 -3
  24. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.mjs +3 -3
  25. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.mjs +3 -3
  26. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.mjs +3 -3
  27. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.mjs +3 -3
  28. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.mjs +3 -3
  29. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.mjs +3 -3
  30. package/fesm2022/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.mjs +3 -3
  31. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-accordion.mjs +3 -3
  32. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-back-link.mjs +3 -3
  33. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-button.mjs +3 -3
  34. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.mjs +3 -3
  35. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.mjs +17 -13
  36. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.mjs.map +1 -1
  37. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-date-input.mjs +3 -3
  38. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-details.mjs +3 -3
  39. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.mjs +3 -3
  40. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-footer.mjs +3 -3
  41. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-header.mjs +6 -6
  42. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.mjs +3 -3
  43. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.mjs +3 -3
  44. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.mjs +3 -3
  45. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-list.mjs +3 -3
  46. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.mjs +3 -3
  47. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-pagination.mjs +3 -3
  48. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-panel.mjs +3 -3
  49. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-radio.mjs +12 -12
  50. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-select.mjs +3 -3
  51. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.mjs +6 -6
  52. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.mjs +12 -12
  53. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-table.mjs +12 -12
  54. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.mjs +3 -3
  55. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.mjs +3 -3
  56. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tabs.mjs +3 -3
  57. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-tag.mjs +3 -3
  58. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-task-list.mjs +6 -6
  59. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-area.mjs +3 -3
  60. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.mjs +3 -3
  61. package/fesm2022/hmcts-opal-frontend-common-components-govuk-govuk-text-input.mjs +3 -3
  62. package/fesm2022/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.mjs +3 -3
  63. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-alert.mjs +21 -21
  64. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-badge.mjs +3 -3
  65. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.mjs +3 -3
  66. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-button-menu.mjs +3 -3
  67. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-date-picker.mjs +3 -3
  68. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.mjs +3 -3
  69. 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 +3 -3
  70. 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 +3 -3
  71. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.mjs +3 -3
  72. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.mjs +3 -3
  73. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.mjs +3 -3
  74. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.mjs +3 -3
  75. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-filter.mjs +3 -3
  76. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-header.mjs +6 -6
  77. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-notification-badge.mjs +3 -3
  78. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-page-header.mjs +3 -3
  79. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-pagination.mjs +3 -3
  80. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.mjs +6 -6
  81. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sortable-table.mjs +18 -18
  82. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.mjs +6 -6
  83. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.mjs +3 -3
  84. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-timeline.mjs +6 -6
  85. package/fesm2022/{hmcts-opal-frontend-common-concurrency-failure.component-CNOm0hb1.mjs → hmcts-opal-frontend-common-concurrency-failure.component-CMrT3Rgc.mjs} +4 -4
  86. package/fesm2022/{hmcts-opal-frontend-common-concurrency-failure.component-CNOm0hb1.mjs.map → hmcts-opal-frontend-common-concurrency-failure.component-CMrT3Rgc.mjs.map} +1 -1
  87. package/fesm2022/hmcts-opal-frontend-common-directives-capitalisation.mjs +3 -3
  88. package/fesm2022/hmcts-opal-frontend-common-directives-govuk-button.mjs +3 -3
  89. package/fesm2022/{hmcts-opal-frontend-common-internal-server-error.component-uQxN5cql.mjs → hmcts-opal-frontend-common-internal-server-error.component-2YW-gEtF.mjs} +4 -4
  90. package/fesm2022/{hmcts-opal-frontend-common-internal-server-error.component-uQxN5cql.mjs.map → hmcts-opal-frontend-common-internal-server-error.component-2YW-gEtF.mjs.map} +1 -1
  91. package/fesm2022/{hmcts-opal-frontend-common-pages-access-denied.component-Br5FPygn.mjs → hmcts-opal-frontend-common-pages-access-denied.component-GXcZeEZc.mjs} +4 -4
  92. package/fesm2022/{hmcts-opal-frontend-common-pages-access-denied.component-Br5FPygn.mjs.map → hmcts-opal-frontend-common-pages-access-denied.component-GXcZeEZc.mjs.map} +1 -1
  93. package/fesm2022/{hmcts-opal-frontend-common-pages-account-created.component-89uNNkjk.mjs → hmcts-opal-frontend-common-pages-account-created.component-CnWM00dp.mjs} +4 -4
  94. package/fesm2022/{hmcts-opal-frontend-common-pages-account-created.component-89uNNkjk.mjs.map → hmcts-opal-frontend-common-pages-account-created.component-CnWM00dp.mjs.map} +1 -1
  95. package/fesm2022/{hmcts-opal-frontend-common-pages-concurrency-failure.component-CNOm0hb1.mjs → hmcts-opal-frontend-common-pages-concurrency-failure.component-CMrT3Rgc.mjs} +4 -4
  96. package/fesm2022/{hmcts-opal-frontend-common-pages-concurrency-failure.component-CNOm0hb1.mjs.map → hmcts-opal-frontend-common-pages-concurrency-failure.component-CMrT3Rgc.mjs.map} +1 -1
  97. package/fesm2022/{hmcts-opal-frontend-common-pages-internal-server-error.component-uQxN5cql.mjs → hmcts-opal-frontend-common-pages-internal-server-error.component-2YW-gEtF.mjs} +4 -4
  98. package/fesm2022/{hmcts-opal-frontend-common-pages-internal-server-error.component-uQxN5cql.mjs.map → hmcts-opal-frontend-common-pages-internal-server-error.component-2YW-gEtF.mjs.map} +1 -1
  99. package/fesm2022/{hmcts-opal-frontend-common-pages-permission-denied.component-Bxml231o.mjs → hmcts-opal-frontend-common-pages-permission-denied.component-DkLF7y3R.mjs} +4 -4
  100. package/fesm2022/{hmcts-opal-frontend-common-pages-permission-denied.component-Bxml231o.mjs.map → hmcts-opal-frontend-common-pages-permission-denied.component-DkLF7y3R.mjs.map} +1 -1
  101. package/fesm2022/{hmcts-opal-frontend-common-pages-sign-in-stub.component-Cg3ZPi_5.mjs → hmcts-opal-frontend-common-pages-sign-in-stub.component-vKSMYfXq.mjs} +4 -4
  102. package/fesm2022/{hmcts-opal-frontend-common-pages-sign-in-stub.component-Cg3ZPi_5.mjs.map → hmcts-opal-frontend-common-pages-sign-in-stub.component-vKSMYfXq.mjs.map} +1 -1
  103. package/fesm2022/{hmcts-opal-frontend-common-pages-sign-in.component-pbUwRT9N.mjs → hmcts-opal-frontend-common-pages-sign-in.component-DVDmyTKi.mjs} +4 -4
  104. package/fesm2022/{hmcts-opal-frontend-common-pages-sign-in.component-pbUwRT9N.mjs.map → hmcts-opal-frontend-common-pages-sign-in.component-DVDmyTKi.mjs.map} +1 -1
  105. package/fesm2022/hmcts-opal-frontend-common-pages.mjs +6 -6
  106. package/fesm2022/{hmcts-opal-frontend-common-permission-denied.component-Bxml231o.mjs → hmcts-opal-frontend-common-permission-denied.component-DkLF7y3R.mjs} +4 -4
  107. package/fesm2022/{hmcts-opal-frontend-common-permission-denied.component-Bxml231o.mjs.map → hmcts-opal-frontend-common-permission-denied.component-DkLF7y3R.mjs.map} +1 -1
  108. package/fesm2022/hmcts-opal-frontend-common-pipes-date-format.mjs +3 -3
  109. package/fesm2022/hmcts-opal-frontend-common-pipes-days-ago.mjs +3 -3
  110. package/fesm2022/hmcts-opal-frontend-common-pipes-monetary.mjs +26 -0
  111. package/fesm2022/hmcts-opal-frontend-common-pipes-monetary.mjs.map +1 -0
  112. package/fesm2022/hmcts-opal-frontend-common-pipes-national-insurance.mjs +3 -3
  113. package/fesm2022/hmcts-opal-frontend-common-resolvers-title.mjs +3 -3
  114. package/fesm2022/hmcts-opal-frontend-common-services-app-initializer-service.mjs +3 -3
  115. package/fesm2022/hmcts-opal-frontend-common-services-app-insights-service.mjs +3 -3
  116. package/fesm2022/hmcts-opal-frontend-common-services-auth-service.mjs +3 -3
  117. package/fesm2022/hmcts-opal-frontend-common-services-date-service.mjs +3 -3
  118. package/fesm2022/hmcts-opal-frontend-common-services-launch-darkly-service.mjs +3 -3
  119. package/fesm2022/hmcts-opal-frontend-common-services-opal-user-service.mjs +3 -3
  120. package/fesm2022/hmcts-opal-frontend-common-services-permissions-service.mjs +3 -3
  121. package/fesm2022/hmcts-opal-frontend-common-services-session-service.mjs +3 -3
  122. package/fesm2022/hmcts-opal-frontend-common-services-sort-service.mjs +3 -3
  123. package/fesm2022/hmcts-opal-frontend-common-services-transfer-state-service.mjs +3 -3
  124. package/fesm2022/hmcts-opal-frontend-common-services-transformation-service.mjs +3 -3
  125. package/fesm2022/hmcts-opal-frontend-common-services-utils-service.mjs +3 -3
  126. package/fesm2022/{hmcts-opal-frontend-common-sign-in-stub.component-Cg3ZPi_5.mjs → hmcts-opal-frontend-common-sign-in-stub.component-vKSMYfXq.mjs} +4 -4
  127. package/fesm2022/{hmcts-opal-frontend-common-sign-in-stub.component-Cg3ZPi_5.mjs.map → hmcts-opal-frontend-common-sign-in-stub.component-vKSMYfXq.mjs.map} +1 -1
  128. package/fesm2022/{hmcts-opal-frontend-common-sign-in.component-BkzULgTE.mjs → hmcts-opal-frontend-common-sign-in.component-D9_GhRtz.mjs} +4 -4
  129. package/fesm2022/{hmcts-opal-frontend-common-sign-in.component-BkzULgTE.mjs.map → hmcts-opal-frontend-common-sign-in.component-D9_GhRtz.mjs.map} +1 -1
  130. package/fesm2022/hmcts-opal-frontend-common.mjs +6 -6
  131. package/package.json +181 -172
  132. package/{components/abstract/abstract-form-base/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-base-interfaces.d.ts} +8 -1
  133. package/{components/abstract/abstract-form-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-base.d.ts} +9 -5
  134. package/{components/govuk/govuk-checkboxes/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes.d.ts} +2 -1
  135. package/types/hmcts-opal-frontend-common-pipes-monetary.d.ts +11 -0
  136. /package/{components/abstract/abstract-form-alias-base/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base-interfaces.d.ts} +0 -0
  137. /package/{components/abstract/abstract-form-alias-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-alias-base.d.ts} +0 -0
  138. /package/{components/abstract/abstract-form-array-base/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base-interfaces.d.ts} +0 -0
  139. /package/{components/abstract/abstract-form-array-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-base.d.ts} +0 -0
  140. /package/{components/abstract/abstract-form-array-parent-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-parent-base.d.ts} +0 -0
  141. /package/{components/abstract/abstract-form-array-removal-base/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base-interfaces.d.ts} +0 -0
  142. /package/{components/abstract/abstract-form-array-removal-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-array-removal-base.d.ts} +0 -0
  143. /package/{components/abstract/abstract-form-parent-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-form-parent-base.d.ts} +0 -0
  144. /package/{components/abstract/abstract-nested-form-base/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-nested-form-base.d.ts} +0 -0
  145. /package/{components/abstract/abstract-sortable-table/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-interfaces.d.ts} +0 -0
  146. /package/{components/abstract/abstract-sortable-table-pagination/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-pagination.d.ts} +0 -0
  147. /package/{components/abstract/abstract-sortable-table/types/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table-types.d.ts} +0 -0
  148. /package/{components/abstract/abstract-sortable-table/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-sortable-table.d.ts} +0 -0
  149. /package/{components/abstract/abstract-tab-data/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-tab-data.d.ts} +0 -0
  150. /package/{components/abstract/abstract-table-filter/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-interfaces.d.ts} +0 -0
  151. /package/{components/abstract/abstract-table-filter/types/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter-types.d.ts} +0 -0
  152. /package/{components/abstract/abstract-table-filter/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-abstract-table-filter.d.ts} +0 -0
  153. /package/{components/abstract/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-abstract-interfaces.d.ts} +0 -0
  154. /package/{components/alphagov/alphagov-accessible-autocomplete/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete-interfaces.d.ts} +0 -0
  155. /package/{components/alphagov/alphagov-accessible-autocomplete/index.d.ts → types/hmcts-opal-frontend-common-components-alphagov-alphagov-accessible-autocomplete.d.ts} +0 -0
  156. /package/{components/custom/custom-account-information/custom-account-information-item/custom-account-information-item-label/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-label.d.ts} +0 -0
  157. /package/{components/custom/custom-account-information/custom-account-information-item/custom-account-information-item-value/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item-custom-account-information-item-value.d.ts} +0 -0
  158. /package/{components/custom/custom-account-information/custom-account-information-item/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-account-information-custom-account-information-item.d.ts} +0 -0
  159. /package/{components/custom/custom-account-information/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-account-information.d.ts} +0 -0
  160. /package/{components/custom/custom-action-links/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-action-links.d.ts} +0 -0
  161. /package/{components/custom/custom-horizontal-scroll-pane/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-horizontal-scroll-pane.d.ts} +0 -0
  162. /package/{components/custom/custom-page-header/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-page-header.d.ts} +0 -0
  163. /package/{components/custom/custom-scrollable-panes/custom-scrollable-panes-inner-pane/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes-custom-scrollable-panes-inner-pane.d.ts} +0 -0
  164. /package/{components/custom/custom-scrollable-panes/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-scrollable-panes.d.ts} +0 -0
  165. /package/{components/custom/custom-summary-metric-bar/custom-summary-metric-bar-item/custom-summary-metric-bar-item-label/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-label.d.ts} +0 -0
  166. /package/{components/custom/custom-summary-metric-bar/custom-summary-metric-bar-item/custom-summary-metric-bar-item-value/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item-custom-summary-metric-bar-item-value.d.ts} +0 -0
  167. /package/{components/custom/custom-summary-metric-bar/custom-summary-metric-bar-item/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar-custom-summary-metric-bar-item.d.ts} +0 -0
  168. /package/{components/custom/custom-summary-metric-bar/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-summary-metric-bar.d.ts} +0 -0
  169. /package/{components/custom/custom-vertical-scroll-pane/custom-vertical-scroll-pane-inner-pane/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-inner-pane.d.ts} +0 -0
  170. /package/{components/custom/custom-vertical-scroll-pane/custom-vertical-scroll-pane-outer-pane/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane-custom-vertical-scroll-pane-outer-pane.d.ts} +0 -0
  171. /package/{components/custom/custom-vertical-scroll-pane/index.d.ts → types/hmcts-opal-frontend-common-components-custom-custom-vertical-scroll-pane.d.ts} +0 -0
  172. /package/{components/govuk/govuk-accordion/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-accordion.d.ts} +0 -0
  173. /package/{components/govuk/govuk-back-link/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-back-link.d.ts} +0 -0
  174. /package/{components/govuk/govuk-button/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-button.d.ts} +0 -0
  175. /package/{components/govuk/govuk-cancel-link/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-cancel-link.d.ts} +0 -0
  176. /package/{components/govuk/govuk-checkboxes/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-checkboxes-interfaces.d.ts} +0 -0
  177. /package/{components/govuk/govuk-date-input/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-date-input-interfaces.d.ts} +0 -0
  178. /package/{components/govuk/govuk-date-input/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-date-input.d.ts} +0 -0
  179. /package/{components/govuk/govuk-details/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-details.d.ts} +0 -0
  180. /package/{components/govuk/govuk-error-summary/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-error-summary.d.ts} +0 -0
  181. /package/{components/govuk/govuk-footer/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-footer-interfaces.d.ts} +0 -0
  182. /package/{components/govuk/govuk-footer/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-footer.d.ts} +0 -0
  183. /package/{components/govuk/govuk-header/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-header-interfaces.d.ts} +0 -0
  184. /package/{components/govuk/govuk-header/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-header.d.ts} +0 -0
  185. /package/{components/govuk/govuk-heading-with-caption/types/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption-types.d.ts} +0 -0
  186. /package/{components/govuk/govuk-heading-with-caption/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-heading-with-caption.d.ts} +0 -0
  187. /package/{components/govuk/govuk-inset-text/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-inset-text.d.ts} +0 -0
  188. /package/{components/govuk/govuk-list/govuk-list-link/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-list-govuk-list-link.d.ts} +0 -0
  189. /package/{components/govuk/govuk-list/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-list.d.ts} +0 -0
  190. /package/{components/govuk/govuk-notification-banner/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-notification-banner.d.ts} +0 -0
  191. /package/{components/govuk/govuk-pagination/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-pagination.d.ts} +0 -0
  192. /package/{components/govuk/govuk-panel/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-panel.d.ts} +0 -0
  193. /package/{components/govuk/govuk-radio/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-radio-interfaces.d.ts} +0 -0
  194. /package/{components/govuk/govuk-radio/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-radio.d.ts} +0 -0
  195. /package/{components/govuk/govuk-select/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-select-interfaces.d.ts} +0 -0
  196. /package/{components/govuk/govuk-select/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-select.d.ts} +0 -0
  197. /package/{components/govuk/govuk-summary-card-list/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-summary-card-list.d.ts} +0 -0
  198. /package/{components/govuk/govuk-summary-list/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-summary-list.d.ts} +0 -0
  199. /package/{components/govuk/govuk-table/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-table.d.ts} +0 -0
  200. /package/{components/govuk/govuk-tabs/govuk-tabs-list-item/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-list-item.d.ts} +0 -0
  201. /package/{components/govuk/govuk-tabs/govuk-tabs-panel/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-tabs-govuk-tabs-panel.d.ts} +0 -0
  202. /package/{components/govuk/govuk-tabs/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-tabs.d.ts} +0 -0
  203. /package/{components/govuk/govuk-tag/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-tag.d.ts} +0 -0
  204. /package/{components/govuk/govuk-task-list/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-task-list.d.ts} +0 -0
  205. /package/{components/govuk/govuk-text-area/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-text-area.d.ts} +0 -0
  206. /package/{components/govuk/govuk-text-input-prefix-suffix/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-text-input-prefix-suffix.d.ts} +0 -0
  207. /package/{components/govuk/govuk-text-input/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-govuk-text-input.d.ts} +0 -0
  208. /package/{components/govuk/helpers/index.d.ts → types/hmcts-opal-frontend-common-components-govuk-helpers.d.ts} +0 -0
  209. /package/{components/hod/hod-loading-spinner/index.d.ts → types/hmcts-opal-frontend-common-components-hod-hod-loading-spinner.d.ts} +0 -0
  210. /package/{components/moj/moj-alert/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-alert.d.ts} +0 -0
  211. /package/{components/moj/moj-badge/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-badge.d.ts} +0 -0
  212. /package/{components/moj/moj-button-menu/moj-button-menu-item/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-button-menu-moj-button-menu-item.d.ts} +0 -0
  213. /package/{components/moj/moj-button-menu/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-button-menu.d.ts} +0 -0
  214. /package/{components/moj/moj-date-picker/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-date-picker.d.ts} +0 -0
  215. /package/{components/moj/moj-filter/moj-filter-panel/moj-filter-panel-header/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-header.d.ts} +0 -0
  216. /package/{components/moj/moj-filter/moj-filter-panel/moj-filter-panel-option/moj-filter-panel-option-form-group-item/index.d.ts → 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} +0 -0
  217. /package/{components/moj/moj-filter/moj-filter-panel/moj-filter-panel-option/moj-filter-panel-option-form-group-keyword/index.d.ts → 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} +0 -0
  218. /package/{components/moj/moj-filter/moj-filter-panel/moj-filter-panel-option/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-option.d.ts} +0 -0
  219. /package/{components/moj/moj-filter/moj-filter-panel/moj-filter-panel-selected/moj-filter-panel-selected-tag/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected-moj-filter-panel-selected-tag.d.ts} +0 -0
  220. /package/{components/moj/moj-filter/moj-filter-panel/moj-filter-panel-selected/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel-moj-filter-panel-selected.d.ts} +0 -0
  221. /package/{components/moj/moj-filter/moj-filter-panel/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-filter-moj-filter-panel.d.ts} +0 -0
  222. /package/{components/moj/moj-filter/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-filter.d.ts} +0 -0
  223. /package/{components/moj/moj-header/interfaces/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-header-interfaces.d.ts} +0 -0
  224. /package/{components/moj/moj-header/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-header.d.ts} +0 -0
  225. /package/{components/moj/moj-notification-badge/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-notification-badge.d.ts} +0 -0
  226. /package/{components/moj/moj-page-header/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-page-header.d.ts} +0 -0
  227. /package/{components/moj/moj-pagination/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-pagination.d.ts} +0 -0
  228. /package/{components/moj/moj-primary-navigation/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-primary-navigation.d.ts} +0 -0
  229. /package/{components/moj/moj-sortable-table/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-sortable-table.d.ts} +0 -0
  230. /package/{components/moj/moj-sub-navigation/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.d.ts} +0 -0
  231. /package/{components/moj/moj-ticket-panel/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-ticket-panel.d.ts} +0 -0
  232. /package/{components/moj/moj-timeline/index.d.ts → types/hmcts-opal-frontend-common-components-moj-moj-timeline.d.ts} +0 -0
  233. /package/{constants/index.d.ts → types/hmcts-opal-frontend-common-constants.d.ts} +0 -0
  234. /package/{directives/capitalisation/index.d.ts → types/hmcts-opal-frontend-common-directives-capitalisation.d.ts} +0 -0
  235. /package/{directives/govuk-button/index.d.ts → types/hmcts-opal-frontend-common-directives-govuk-button.d.ts} +0 -0
  236. /package/{guards/account/index.d.ts → types/hmcts-opal-frontend-common-guards-account.d.ts} +0 -0
  237. /package/{guards/auth/index.d.ts → types/hmcts-opal-frontend-common-guards-auth.d.ts} +0 -0
  238. /package/{guards/can-deactivate/interfaces/index.d.ts → types/hmcts-opal-frontend-common-guards-can-deactivate-interfaces.d.ts} +0 -0
  239. /package/{guards/can-deactivate/types/index.d.ts → types/hmcts-opal-frontend-common-guards-can-deactivate-types.d.ts} +0 -0
  240. /package/{guards/can-deactivate/index.d.ts → types/hmcts-opal-frontend-common-guards-can-deactivate.d.ts} +0 -0
  241. /package/{guards/has-flow-state/index.d.ts → types/hmcts-opal-frontend-common-guards-has-flow-state.d.ts} +0 -0
  242. /package/{guards/has-url-state-match/index.d.ts → types/hmcts-opal-frontend-common-guards-has-url-state-match.d.ts} +0 -0
  243. /package/{guards/helpers/index.d.ts → types/hmcts-opal-frontend-common-guards-helpers.d.ts} +0 -0
  244. /package/{guards/route-permissions/index.d.ts → types/hmcts-opal-frontend-common-guards-route-permissions.d.ts} +0 -0
  245. /package/{guards/signed-in/index.d.ts → types/hmcts-opal-frontend-common-guards-signed-in.d.ts} +0 -0
  246. /package/{guards/types/index.d.ts → types/hmcts-opal-frontend-common-guards-types.d.ts} +0 -0
  247. /package/{interceptors/http-error/constants/index.d.ts → types/hmcts-opal-frontend-common-interceptors-http-error-constants.d.ts} +0 -0
  248. /package/{interceptors/http-error/interfaces/index.d.ts → types/hmcts-opal-frontend-common-interceptors-http-error-interfaces.d.ts} +0 -0
  249. /package/{interceptors/http-error/index.d.ts → types/hmcts-opal-frontend-common-interceptors-http-error.d.ts} +0 -0
  250. /package/{pages/routing/constants/index.d.ts → types/hmcts-opal-frontend-common-pages-routing-constants.d.ts} +0 -0
  251. /package/{pages/routing/interfaces/index.d.ts → types/hmcts-opal-frontend-common-pages-routing-interfaces.d.ts} +0 -0
  252. /package/{pages/index.d.ts → types/hmcts-opal-frontend-common-pages.d.ts} +0 -0
  253. /package/{pipes/date-format/index.d.ts → types/hmcts-opal-frontend-common-pipes-date-format.d.ts} +0 -0
  254. /package/{pipes/days-ago/index.d.ts → types/hmcts-opal-frontend-common-pipes-days-ago.d.ts} +0 -0
  255. /package/{pipes/national-insurance/index.d.ts → types/hmcts-opal-frontend-common-pipes-national-insurance.d.ts} +0 -0
  256. /package/{resolvers/title/index.d.ts → types/hmcts-opal-frontend-common-resolvers-title.d.ts} +0 -0
  257. /package/{services/app-initializer-service/index.d.ts → types/hmcts-opal-frontend-common-services-app-initializer-service.d.ts} +0 -0
  258. /package/{services/app-insights-service/index.d.ts → types/hmcts-opal-frontend-common-services-app-insights-service.d.ts} +0 -0
  259. /package/{services/auth-service/constants/index.d.ts → types/hmcts-opal-frontend-common-services-auth-service-constants.d.ts} +0 -0
  260. /package/{services/auth-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-auth-service-interfaces.d.ts} +0 -0
  261. /package/{services/auth-service/index.d.ts → types/hmcts-opal-frontend-common-services-auth-service.d.ts} +0 -0
  262. /package/{services/date-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-date-service-interfaces.d.ts} +0 -0
  263. /package/{services/date-service/index.d.ts → types/hmcts-opal-frontend-common-services-date-service.d.ts} +0 -0
  264. /package/{services/launch-darkly-service/mocks/index.d.ts → types/hmcts-opal-frontend-common-services-launch-darkly-service-mocks.d.ts} +0 -0
  265. /package/{services/launch-darkly-service/index.d.ts → types/hmcts-opal-frontend-common-services-launch-darkly-service.d.ts} +0 -0
  266. /package/{services/opal-user-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-opal-user-service-interfaces.d.ts} +0 -0
  267. /package/{services/opal-user-service/mocks/index.d.ts → types/hmcts-opal-frontend-common-services-opal-user-service-mocks.d.ts} +0 -0
  268. /package/{services/opal-user-service/index.d.ts → types/hmcts-opal-frontend-common-services-opal-user-service.d.ts} +0 -0
  269. /package/{services/permissions-service/index.d.ts → types/hmcts-opal-frontend-common-services-permissions-service.d.ts} +0 -0
  270. /package/{services/session-service/constants/index.d.ts → types/hmcts-opal-frontend-common-services-session-service-constants.d.ts} +0 -0
  271. /package/{services/session-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-session-service-interfaces.d.ts} +0 -0
  272. /package/{services/session-service/mocks/index.d.ts → types/hmcts-opal-frontend-common-services-session-service-mocks.d.ts} +0 -0
  273. /package/{services/session-service/index.d.ts → types/hmcts-opal-frontend-common-services-session-service.d.ts} +0 -0
  274. /package/{services/sort-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-sort-service-interfaces.d.ts} +0 -0
  275. /package/{services/sort-service/index.d.ts → types/hmcts-opal-frontend-common-services-sort-service.d.ts} +0 -0
  276. /package/{services/transfer-state-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-transfer-state-service-interfaces.d.ts} +0 -0
  277. /package/{services/transfer-state-service/mocks/index.d.ts → types/hmcts-opal-frontend-common-services-transfer-state-service-mocks.d.ts} +0 -0
  278. /package/{services/transfer-state-service/index.d.ts → types/hmcts-opal-frontend-common-services-transfer-state-service.d.ts} +0 -0
  279. /package/{services/transformation-service/constants/index.d.ts → types/hmcts-opal-frontend-common-services-transformation-service-constants.d.ts} +0 -0
  280. /package/{services/transformation-service/interfaces/index.d.ts → types/hmcts-opal-frontend-common-services-transformation-service-interfaces.d.ts} +0 -0
  281. /package/{services/transformation-service/index.d.ts → types/hmcts-opal-frontend-common-services-transformation-service.d.ts} +0 -0
  282. /package/{services/utils-service/index.d.ts → types/hmcts-opal-frontend-common-services-utils-service.d.ts} +0 -0
  283. /package/{stores/global/constants/index.d.ts → types/hmcts-opal-frontend-common-stores-global-constants.d.ts} +0 -0
  284. /package/{stores/global/interfaces/index.d.ts → types/hmcts-opal-frontend-common-stores-global-interfaces.d.ts} +0 -0
  285. /package/{stores/global/types/index.d.ts → types/hmcts-opal-frontend-common-stores-global-types.d.ts} +0 -0
  286. /package/{stores/global/index.d.ts → types/hmcts-opal-frontend-common-stores-global.d.ts} +0 -0
  287. /package/types/{index.d.ts → hmcts-opal-frontend-common-types.d.ts} +0 -0
  288. /package/{validators/amount/index.d.ts → types/hmcts-opal-frontend-common-validators-amount.d.ts} +0 -0
  289. /package/{validators/date-after-year/index.d.ts → types/hmcts-opal-frontend-common-validators-date-after-year.d.ts} +0 -0
  290. /package/{validators/date-before/index.d.ts → types/hmcts-opal-frontend-common-validators-date-before.d.ts} +0 -0
  291. /package/{validators/date-of-birth/index.d.ts → types/hmcts-opal-frontend-common-validators-date-of-birth.d.ts} +0 -0
  292. /package/{validators/future-date/index.d.ts → types/hmcts-opal-frontend-common-validators-future-date.d.ts} +0 -0
  293. /package/{validators/invalid-value/index.d.ts → types/hmcts-opal-frontend-common-validators-invalid-value.d.ts} +0 -0
  294. /package/{validators/national-insurance-number/index.d.ts → types/hmcts-opal-frontend-common-validators-national-insurance-number.d.ts} +0 -0
  295. /package/{validators/optional-max-length/index.d.ts → types/hmcts-opal-frontend-common-validators-optional-max-length.d.ts} +0 -0
  296. /package/{validators/optional-valid-date/index.d.ts → types/hmcts-opal-frontend-common-validators-optional-valid-date.d.ts} +0 -0
  297. /package/{validators/optional-valid-telephone/index.d.ts → types/hmcts-opal-frontend-common-validators-optional-valid-telephone.d.ts} +0 -0
  298. /package/{validators/over-eighteen/index.d.ts → types/hmcts-opal-frontend-common-validators-over-eighteen.d.ts} +0 -0
  299. /package/{validators/past-date/index.d.ts → types/hmcts-opal-frontend-common-validators-past-date.d.ts} +0 -0
  300. /package/{validators/pattern-validator/index.d.ts → types/hmcts-opal-frontend-common-validators-pattern-validator.d.ts} +0 -0
  301. /package/{validators/valid-value/index.d.ts → types/hmcts-opal-frontend-common-validators-valid-value.d.ts} +0 -0
  302. /package/{index.d.ts → types/hmcts-opal-frontend-common.d.ts} +0 -0
@@ -9,13 +9,13 @@ class AccessDeniedComponent {
9
9
  // For now, test page will act as our 'Dashboard' page
10
10
  this.router.navigate(['/']);
11
11
  }
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AccessDeniedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AccessDeniedComponent, isStandalone: true, selector: "opal-lib-access-denied", ngImport: i0, template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-l\">Access Denied</h1>\n <p class=\"govuk-body\">You do not have the appropriate permissions to access this page.</p>\n <p class=\"govuk-body\">\n <opal-lib-govuk-button\n buttonClasses=\"govuk-button--secondary\"\n buttonId=\"go-back\"\n (buttonClickEvent)=\"handleGoBackButtonClick()\"\n >\n Back to dashboard</opal-lib-govuk-button\n >\n </p>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: GovukButtonComponent, selector: "opal-lib-govuk-button", inputs: ["buttonId", "type", "buttonClasses"], outputs: ["buttonClickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AccessDeniedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AccessDeniedComponent, isStandalone: true, selector: "opal-lib-access-denied", ngImport: i0, template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-l\">Access Denied</h1>\n <p class=\"govuk-body\">You do not have the appropriate permissions to access this page.</p>\n <p class=\"govuk-body\">\n <opal-lib-govuk-button\n buttonClasses=\"govuk-button--secondary\"\n buttonId=\"go-back\"\n (buttonClickEvent)=\"handleGoBackButtonClick()\"\n >\n Back to dashboard</opal-lib-govuk-button\n >\n </p>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: GovukButtonComponent, selector: "opal-lib-govuk-button", inputs: ["buttonId", "type", "buttonClasses"], outputs: ["buttonClickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AccessDeniedComponent, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AccessDeniedComponent, decorators: [{
16
16
  type: Component,
17
17
  args: [{ selector: 'opal-lib-access-denied', imports: [GovukButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-l\">Access Denied</h1>\n <p class=\"govuk-body\">You do not have the appropriate permissions to access this page.</p>\n <p class=\"govuk-body\">\n <opal-lib-govuk-button\n buttonClasses=\"govuk-button--secondary\"\n buttonId=\"go-back\"\n (buttonClickEvent)=\"handleGoBackButtonClick()\"\n >\n Back to dashboard</opal-lib-govuk-button\n >\n </p>\n </div>\n</div>\n" }]
18
18
  }] });
19
19
 
20
20
  export { AccessDeniedComponent };
21
- //# sourceMappingURL=hmcts-opal-frontend-common-access-denied.component-Br5FPygn.mjs.map
21
+ //# sourceMappingURL=hmcts-opal-frontend-common-access-denied.component-GXcZeEZc.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"hmcts-opal-frontend-common-access-denied.component-Br5FPygn.mjs","sources":["../../../projects/opal-frontend-common/pages/access-denied/access-denied.component.ts","../../../projects/opal-frontend-common/pages/access-denied/access-denied.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { GovukButtonComponent } from '@hmcts/opal-frontend-common/components/govuk/govuk-button';\n\n@Component({\n selector: 'opal-lib-access-denied',\n imports: [GovukButtonComponent],\n templateUrl: './access-denied.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccessDeniedComponent {\n private readonly router = inject(Router);\n\n public handleGoBackButtonClick(): void {\n // For now, test page will act as our 'Dashboard' page\n this.router.navigate(['/']);\n }\n}\n","<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-l\">Access Denied</h1>\n <p class=\"govuk-body\">You do not have the appropriate permissions to access this page.</p>\n <p class=\"govuk-body\">\n <opal-lib-govuk-button\n buttonClasses=\"govuk-button--secondary\"\n buttonId=\"go-back\"\n (buttonClickEvent)=\"handleGoBackButtonClick()\"\n >\n Back to dashboard</opal-lib-govuk-button\n >\n </p>\n </div>\n</div>\n"],"names":[],"mappings":";;;;;MAUa,qBAAqB,CAAA;AACf,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAEjC,uBAAuB,GAAA;;QAE5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC;IAC7B;wGANW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVlC,ihBAeA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDTY,oBAAoB,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,eAAA,CAAA,EAAA,OAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAInB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,WACzB,CAAC,oBAAoB,CAAC,EAAA,eAAA,EAEd,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ihBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"hmcts-opal-frontend-common-access-denied.component-GXcZeEZc.mjs","sources":["../../../projects/opal-frontend-common/pages/access-denied/access-denied.component.ts","../../../projects/opal-frontend-common/pages/access-denied/access-denied.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { GovukButtonComponent } from '@hmcts/opal-frontend-common/components/govuk/govuk-button';\n\n@Component({\n selector: 'opal-lib-access-denied',\n imports: [GovukButtonComponent],\n templateUrl: './access-denied.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccessDeniedComponent {\n private readonly router = inject(Router);\n\n public handleGoBackButtonClick(): void {\n // For now, test page will act as our 'Dashboard' page\n this.router.navigate(['/']);\n }\n}\n","<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-l\">Access Denied</h1>\n <p class=\"govuk-body\">You do not have the appropriate permissions to access this page.</p>\n <p class=\"govuk-body\">\n <opal-lib-govuk-button\n buttonClasses=\"govuk-button--secondary\"\n buttonId=\"go-back\"\n (buttonClickEvent)=\"handleGoBackButtonClick()\"\n >\n Back to dashboard</opal-lib-govuk-button\n >\n </p>\n </div>\n</div>\n"],"names":[],"mappings":";;;;;MAUa,qBAAqB,CAAA;AACf,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAEjC,uBAAuB,GAAA;;QAE5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC;IAC7B;wGANW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVlC,ihBAeA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDTY,oBAAoB,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,eAAA,CAAA,EAAA,OAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAInB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,WACzB,CAAC,oBAAoB,CAAC,EAAA,eAAA,EAEd,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ihBAAA,EAAA;;;;;"}
@@ -3,13 +3,13 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { GovukPanelComponent } from '@hmcts/opal-frontend-common/components/govuk/govuk-panel';
4
4
 
5
5
  class AccountCreated {
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AccountCreated, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AccountCreated, isStandalone: true, selector: "opal-lib-account-created", ngImport: i0, template: "<div class=\"govuk-grid-column-two-thirds\">\n <opal-lib-govuk-panel panelTitle=\"User account created\"></opal-lib-govuk-panel>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h2 class=\"govuk-fieldset__heading\">Next steps</h2>\n </legend>\n <p class=\"govuk-body\">\n Your Opal account has been created but is not yet live. <br />\n Contact your team lead to activate it fully.\n </p>\n </fieldset>\n</div>\n", dependencies: [{ kind: "component", type: GovukPanelComponent, selector: "opal-lib-govuk-panel", inputs: ["panelTitle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AccountCreated, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AccountCreated, isStandalone: true, selector: "opal-lib-account-created", ngImport: i0, template: "<div class=\"govuk-grid-column-two-thirds\">\n <opal-lib-govuk-panel panelTitle=\"User account created\"></opal-lib-govuk-panel>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h2 class=\"govuk-fieldset__heading\">Next steps</h2>\n </legend>\n <p class=\"govuk-body\">\n Your Opal account has been created but is not yet live. <br />\n Contact your team lead to activate it fully.\n </p>\n </fieldset>\n</div>\n", dependencies: [{ kind: "component", type: GovukPanelComponent, selector: "opal-lib-govuk-panel", inputs: ["panelTitle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AccountCreated, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AccountCreated, decorators: [{
10
10
  type: Component,
11
11
  args: [{ selector: 'opal-lib-account-created', imports: [GovukPanelComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"govuk-grid-column-two-thirds\">\n <opal-lib-govuk-panel panelTitle=\"User account created\"></opal-lib-govuk-panel>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h2 class=\"govuk-fieldset__heading\">Next steps</h2>\n </legend>\n <p class=\"govuk-body\">\n Your Opal account has been created but is not yet live. <br />\n Contact your team lead to activate it fully.\n </p>\n </fieldset>\n</div>\n" }]
12
12
  }] });
13
13
 
14
14
  export { AccountCreated };
15
- //# sourceMappingURL=hmcts-opal-frontend-common-account-created.component-89uNNkjk.mjs.map
15
+ //# sourceMappingURL=hmcts-opal-frontend-common-account-created.component-CnWM00dp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"hmcts-opal-frontend-common-account-created.component-89uNNkjk.mjs","sources":["../../../projects/opal-frontend-common/pages/account-created/account-created.component.ts","../../../projects/opal-frontend-common/pages/account-created/account-created.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { GovukPanelComponent } from '@hmcts/opal-frontend-common/components/govuk/govuk-panel';\n\n@Component({\n selector: 'opal-lib-account-created',\n imports: [GovukPanelComponent],\n templateUrl: './account-created.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccountCreated {}\n","<div class=\"govuk-grid-column-two-thirds\">\n <opal-lib-govuk-panel panelTitle=\"User account created\"></opal-lib-govuk-panel>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h2 class=\"govuk-fieldset__heading\">Next steps</h2>\n </legend>\n <p class=\"govuk-body\">\n Your Opal account has been created but is not yet live. <br />\n Contact your team lead to activate it fully.\n </p>\n </fieldset>\n</div>\n"],"names":[],"mappings":";;;;MASa,cAAc,CAAA;wGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECT3B,0fAYA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDPY,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIlB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,WAC3B,CAAC,mBAAmB,CAAC,EAAA,eAAA,EAEb,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0fAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"hmcts-opal-frontend-common-account-created.component-CnWM00dp.mjs","sources":["../../../projects/opal-frontend-common/pages/account-created/account-created.component.ts","../../../projects/opal-frontend-common/pages/account-created/account-created.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { GovukPanelComponent } from '@hmcts/opal-frontend-common/components/govuk/govuk-panel';\n\n@Component({\n selector: 'opal-lib-account-created',\n imports: [GovukPanelComponent],\n templateUrl: './account-created.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccountCreated {}\n","<div class=\"govuk-grid-column-two-thirds\">\n <opal-lib-govuk-panel panelTitle=\"User account created\"></opal-lib-govuk-panel>\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h2 class=\"govuk-fieldset__heading\">Next steps</h2>\n </legend>\n <p class=\"govuk-body\">\n Your Opal account has been created but is not yet live. <br />\n Contact your team lead to activate it fully.\n </p>\n </fieldset>\n</div>\n"],"names":[],"mappings":";;;;MASa,cAAc,CAAA;wGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECT3B,0fAYA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDPY,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIlB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,WAC3B,CAAC,mBAAmB,CAAC,EAAA,eAAA,EAEb,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0fAAA,EAAA;;;;;"}
@@ -211,10 +211,10 @@ class AbstractFormAliasBaseComponent extends AbstractFormBaseComponent {
211
211
  this['ngUnsubscribe'].complete();
212
212
  super.ngOnDestroy();
213
213
  }
214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormAliasBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
215
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractFormAliasBaseComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "aliasFirstField", predicate: ["aliasFirstField"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
214
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormAliasBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
215
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractFormAliasBaseComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "aliasFirstField", predicate: ["aliasFirstField"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
216
216
  }
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormAliasBaseComponent, decorators: [{
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormAliasBaseComponent, decorators: [{
218
218
  type: Component,
219
219
  args: [{
220
220
  template: '',
@@ -234,10 +234,10 @@ class AbstractFormArrayBaseComponent extends AbstractFormBaseComponent {
234
234
  this.ngUnsubscribe.complete();
235
235
  super.ngOnDestroy();
236
236
  }
237
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormArrayBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
238
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractFormArrayBaseComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
237
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormArrayBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
238
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractFormArrayBaseComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
239
239
  }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormArrayBaseComponent, decorators: [{
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormArrayBaseComponent, decorators: [{
241
241
  type: Component,
242
242
  args: [{
243
243
  template: '',
@@ -77,10 +77,10 @@ class AbstractFormArrayRemovalComponent {
77
77
  this.router.navigate([route], { relativeTo: this.activatedRoute.parent });
78
78
  }
79
79
  }
80
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormArrayRemovalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
81
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractFormArrayRemovalComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true });
80
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormArrayRemovalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
81
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractFormArrayRemovalComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true });
82
82
  }
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormArrayRemovalComponent, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormArrayRemovalComponent, decorators: [{
84
84
  type: Component,
85
85
  args: [{
86
86
  template: '',
@@ -543,21 +543,17 @@ class AbstractFormBaseComponent {
543
543
  * Handles route with the supplied route
544
544
  *
545
545
  * @param route string of route
546
- * @param nonRelative boolean indicating if route is relative to the parent
547
- * @param event optional event to prevent default behavior
548
- * @param routeData optional data to pass with the route
549
- * @param fragment optional URL fragment (hash) to navigate to
546
+ * @param options optional parameters
550
547
  */
551
- handleRoute(route, nonRelative = false, event,
552
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
553
- routeData, fragment) {
548
+ handleRoute(route, options) {
549
+ const { nonRelative = false, event, routeData, fragment } = options ?? {};
554
550
  if (event) {
555
551
  event.preventDefault();
556
552
  }
557
553
  this.unsavedChanges.emit(this.hasUnsavedChanges());
558
554
  const navigationExtras = {
559
555
  ...(nonRelative ? {} : { relativeTo: this.activatedRoute.parent }),
560
- ...(routeData === undefined ? {} : { state: routeData }),
556
+ ...(routeData ? { state: routeData } : {}),
561
557
  ...(fragment ? { fragment } : {}),
562
558
  };
563
559
  this.router.navigate([route], navigationExtras);
@@ -599,10 +595,10 @@ class AbstractFormBaseComponent {
599
595
  this.ngUnsubscribe.next();
600
596
  this.ngUnsubscribe.complete();
601
597
  }
602
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
603
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractFormBaseComponent, isStandalone: true, selector: "ng-component", outputs: { unsavedChanges: "unsavedChanges", formSubmit: "formSubmit" }, ngImport: i0, template: '', isInline: true });
598
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
599
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractFormBaseComponent, isStandalone: true, selector: "ng-component", outputs: { unsavedChanges: "unsavedChanges", formSubmit: "formSubmit" }, ngImport: i0, template: '', isInline: true });
604
600
  }
605
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractFormBaseComponent, decorators: [{
601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractFormBaseComponent, decorators: [{
606
602
  type: Component,
607
603
  args: [{
608
604
  template: '',
@@ -1 +1 @@
1
- {"version":3,"file":"hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs","sources":["../../../projects/opal-frontend-common/components/abstract/abstract-form-base/abstract-form-base.component.ts","../../../projects/opal-frontend-common/components/abstract/abstract-form-base/hmcts-opal-frontend-common-components-abstract-abstract-form-base.ts"],"sourcesContent":["import { ChangeDetectorRef, Component, EventEmitter, OnDestroy, OnInit, Output, inject } from '@angular/core';\nimport { FormArray, FormControl, FormGroup, FormRecord, ValidatorFn } from '@angular/forms';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { Subject, takeUntil } from 'rxjs';\nimport { IAbstractFormBaseFieldError } from './interfaces/abstract-form-base-field-error.interface';\nimport { IAbstractFormBaseFieldErrors } from './interfaces/abstract-form-base-field-errors.interface';\nimport { IAbstractFormBaseFormError } from './interfaces/abstract-form-base-form-error.interface';\nimport {\n IAbstractFormBaseFormErrorSummaryMessage,\n IAbstractFormControlErrorMessage,\n IAbstractFormArrayControlValidation,\n} from '@hmcts/opal-frontend-common/components/abstract/interfaces';\nimport { IAbstractFormBaseHighPriorityFormError } from './interfaces/abstract-form-base-high-priority-form-error.interface';\nimport { IAbstractFormBaseForm } from './interfaces/abstract-form-base-form.interface';\nimport { UtilsService } from '@hmcts/opal-frontend-common/services/utils-service';\n\n@Component({\n template: '',\n})\nexport abstract class AbstractFormBaseComponent implements OnInit, OnDestroy {\n private readonly changeDetectorRef = inject(ChangeDetectorRef);\n private readonly router = inject(Router);\n private readonly activatedRoute = inject(ActivatedRoute);\n\n @Output() protected unsavedChanges = new EventEmitter<boolean>();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Output() protected formSubmit = new EventEmitter<IAbstractFormBaseForm<any>>();\n protected readonly utilsService = inject(UtilsService);\n protected fieldErrors!: IAbstractFormBaseFieldErrors;\n protected formSubmitted = false;\n protected readonly ngUnsubscribe = new Subject<void>();\n\n public form!: FormGroup;\n public formControlErrorMessages!: IAbstractFormControlErrorMessage;\n public formErrorSummaryMessage!: IAbstractFormBaseFormErrorSummaryMessage[];\n public formErrors!: IAbstractFormBaseFormError[];\n\n constructor() {}\n\n /**\n * Scrolls to a specific form field and attempts to focus on it.\n *\n * This method locates the target field or its associated label/legend\n * based on the provided `fieldId`. It ensures that the field or its\n * nested focusable element is brought into view and focused, if possible.\n *\n * The scrolling behavior is smooth, and the method prioritizes the following\n * elements in order:\n * 1. A label associated with an autocomplete field (`label[for=\"${fieldId}-autocomplete\"]`).\n * 2. A regular label associated with the field (`label[for=\"${fieldId}\"]`).\n * 3. A legend within a fieldset associated with the field (`[id=\"${fieldId}\"] .govuk-fieldset__legend`).\n * 4. The field itself or its nested focusable element.\n *\n * @param fieldId - The ID of the form field to scroll to and focus on.\n */\n private scroll(fieldId: string): void {\n const autocompleteLabel = document.querySelector<HTMLElement>(`label[for=\"${fieldId}-autocomplete\"]`);\n const regularLabel = document.querySelector<HTMLElement>(`label[for=\"${fieldId}\"]`);\n const fieldsetLegend = document.querySelector<HTMLElement>(`[id=\"${fieldId}\"] .govuk-fieldset__legend`);\n\n const labelTarget = autocompleteLabel ?? regularLabel ?? fieldsetLegend ?? null;\n const focusableSelector = 'input:not([type=\"hidden\"]), select, textarea, button, [tabindex]:not([tabindex=\"-1\"])';\n\n let fieldElement = document.getElementById(`${fieldId}-autocomplete`) ?? document.getElementById(fieldId);\n\n if (fieldElement && !this.canReceiveFocus(fieldElement)) {\n const nestedFocusable = fieldElement.querySelector<HTMLElement>(focusableSelector);\n if (nestedFocusable) {\n fieldElement = nestedFocusable;\n }\n }\n\n fieldElement ??= document.querySelector<HTMLElement>(`[id=\"${fieldId}\"] ${focusableSelector}`);\n\n if (labelTarget) {\n labelTarget.scrollIntoView({ behavior: 'smooth' });\n } else if (fieldElement) {\n fieldElement.scrollIntoView({ behavior: 'smooth' });\n }\n\n fieldElement?.focus();\n }\n\n /**\n * Determines whether a given HTML element can receive focus.\n *\n * An element is considered focusable if:\n * - It has a `tabIndex` greater than or equal to 0 and does not have the `disabled` attribute.\n * - It is an anchor (`<a>`) element with a valid `href` attribute.\n * - It is one of the following tags: `INPUT`, `SELECT`, `TEXTAREA`, or `BUTTON`,\n * and it is not disabled.\n *\n * @param element - The HTML element to check for focusability.\n * @returns `true` if the element can receive focus, otherwise `false`.\n */\n private canReceiveFocus(element: HTMLElement): boolean {\n if (element.tabIndex >= 0 && !element.hasAttribute('disabled')) {\n return true;\n }\n\n if (element instanceof HTMLAnchorElement && element.hasAttribute('href') && element.href) {\n return !!element.href;\n }\n\n const focusableTags = ['INPUT', 'SELECT', 'TEXTAREA', 'BUTTON'];\n if (focusableTags.includes(element.tagName)) {\n return !(element as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLButtonElement).disabled;\n }\n\n return false;\n }\n\n /**\n * Returns the highest priority form error from the given error keys and field errors.\n * @param errorKeys - An array of error keys.\n * @param fieldErrors - An object containing field errors.\n * @returns The highest priority form error or null if no errors are found.\n */\n private getHighestPriorityError(\n errorKeys: string[] = [],\n fieldErrors: IAbstractFormBaseFieldError = {},\n ): IAbstractFormBaseHighPriorityFormError | null {\n if (errorKeys.length && Object.keys(fieldErrors).length) {\n const errors = errorKeys.map((errorType: string) => {\n return {\n ...fieldErrors[errorType],\n type: errorType,\n };\n });\n\n const sortedErrors = [...errors].sort((a, b) => a.priority - b.priority);\n\n return sortedErrors[0];\n }\n return null;\n }\n\n /**\n * Retrieves the details of the highest priority form error for a given control path.\n * @param controlPath - The path to the control in the form.\n * @returns The details of the highest priority form error, or null if there are no errors.\n */\n private getFieldErrorDetails(controlPath: (string | number)[]): IAbstractFormBaseHighPriorityFormError | null {\n // Get the control\n const control = this.form.get(controlPath);\n\n // If we have errors\n const controlErrors = control?.errors;\n\n if (controlErrors) {\n /// Get all the error keys\n // Use Array.prototype.at for clarity when accessing the last segment of the control path\n const controlKey = controlPath.at(-1);\n const errorKeys = Object.keys(controlErrors) || [];\n const fieldErrors = controlKey === undefined ? {} : this.fieldErrors[controlKey] || {};\n\n if (errorKeys.length && Object.keys(fieldErrors).length) {\n return this.getHighestPriorityError(errorKeys, fieldErrors);\n }\n }\n return null;\n }\n\n /**\n * Retrieves all form errors from the provided form and its nested form groups.\n *\n * @param form - The form group to retrieve errors from.\n * @param controlPath - An optional array representing the path to the current control within the form group.\n * @returns An array of form errors, each containing the field ID, error message, priority, and type.\n */\n private getFormErrors(form: FormGroup, controlPath: (string | number)[] = []): IAbstractFormBaseFormError[] {\n // recursively get all errors from all controls in the form including nested form group controls\n const formControls = form.controls;\n\n const errorSummary = Object.keys(formControls)\n .filter((controlName) => formControls[controlName].invalid)\n .flatMap((controlName) => {\n const control = formControls[controlName];\n\n if (control instanceof FormRecord) {\n // We only support FormControls in FormRecords\n const recordFieldErrorDetails = this.getFieldErrorDetails([...controlPath, controlName]);\n\n return {\n fieldId: controlName,\n message: recordFieldErrorDetails?.message ?? null,\n priority: recordFieldErrorDetails?.priority ?? 999999999,\n type: recordFieldErrorDetails?.type ?? null,\n };\n }\n\n if (control instanceof FormGroup) {\n return this.getFormErrors(control, [...controlPath, controlName]);\n }\n\n if (control instanceof FormArray) {\n return control.controls.flatMap((controlItem, index) => {\n // We only support FormGroups in FormArrays\n if (controlItem instanceof FormGroup) {\n return this.getFormErrors(controlItem, [...controlPath, controlName, index]);\n }\n return [];\n });\n }\n\n const getFieldErrorDetails = this.getFieldErrorDetails([...controlPath, controlName]);\n\n // Return the error summary entry\n // If we don't have the error details, return a null message\n return {\n fieldId: controlName,\n message: getFieldErrorDetails?.message ?? null,\n priority: getFieldErrorDetails?.priority ?? 999999999,\n type: getFieldErrorDetails?.type ?? null,\n };\n });\n\n // Remove any null errors\n return errorSummary.filter((item) => item?.message !== null);\n }\n\n /**\n * Sets the error messages for the form controls and error summary based on the provided form errors.\n * @param formErrors - An array of form errors containing field IDs and error messages.\n */\n private setErrorMessages(formErrors: IAbstractFormBaseFormError[]) {\n // Reset the form error messages\n this.formControlErrorMessages = {};\n this.formErrorSummaryMessage = [];\n\n // Set the form error messages based on the error summary entries\n for (const entry of formErrors) {\n this.formControlErrorMessages[entry.fieldId] = entry.message;\n this.formErrorSummaryMessage.push({ fieldId: entry.fieldId, message: entry.message });\n }\n }\n\n /**\n * Gets the indexes of the date fields to remove based on the form error summary message.\n * @returns An array of indexes representing the date fields to remove.\n */\n private getDateFieldsToRemoveIndexes(): number[] {\n const indexesToRemove: number[] = [];\n // The order of the field ids is important\n // this is the order in which we want to remove them\n const foundIndexes = this.getFormErrorSummaryIndex(\n ['dayOfMonth', 'monthOfYear', 'year'],\n this.formErrorSummaryMessage,\n );\n\n // Determine which indexes to remove based on the found fields\n switch (foundIndexes.length) {\n case 3:\n // All three date fields are present\n indexesToRemove.push(foundIndexes[1], foundIndexes[2]);\n break;\n case 2:\n // Two date fields are present\n indexesToRemove.push(foundIndexes[1]);\n break;\n }\n\n return indexesToRemove;\n }\n\n /**\n * Returns an array of indices corresponding to the positions of the given field IDs in the form error summary message array.\n *\n * @param fieldIds - An array of field IDs to search for in the form error summary message array.\n * @param formErrorSummaryMessage - An array of form error summary messages.\n * @returns An array of indices corresponding to the positions of the field IDs in the form error summary message array.\n */\n private getFormErrorSummaryIndex(\n fieldIds: string[],\n formErrorSummaryMessage: IAbstractFormBaseFormErrorSummaryMessage[],\n ): number[] {\n return fieldIds.reduce((acc: number[], field) => {\n const index = formErrorSummaryMessage.findIndex((error) => error.fieldId === field);\n if (index === -1) {\n return acc;\n }\n return [...acc, index];\n }, []);\n }\n\n /**\n * Removes error summary messages from the given array based on the specified indexes.\n *\n * @param formErrorSummaryMessage - The array of error summary messages.\n * @param indexes - The indexes of the error summary messages to be removed.\n * @returns The updated array of error summary messages.\n */\n private removeErrorSummaryMessages(\n formErrorSummaryMessage: IAbstractFormBaseFormErrorSummaryMessage[],\n indexes: number[],\n ): IAbstractFormBaseFormErrorSummaryMessage[] {\n return formErrorSummaryMessage.filter((_, index) => !indexes.includes(index));\n }\n\n /**\n * Splits the form errors into two arrays based on the provided field IDs.\n * Errors with field IDs included in the fieldIds array will be moved to the removedFormErrors array,\n * while the remaining errors will be moved to the cleanFormErrors array.\n *\n * @param fieldIds - An array of field IDs to filter the form errors.\n * @param formErrors - An array of form errors to be split.\n * @returns An array containing two arrays: cleanFormErrors and removedFormErrors.\n */\n private splitFormErrors(\n fieldIds: string[],\n formErrors: IAbstractFormBaseFormError[],\n ): IAbstractFormBaseFormError[][] {\n const cleanFormErrors: IAbstractFormBaseFormError[] = [];\n const removedFormErrors: IAbstractFormBaseFormError[] = [];\n\n for (const error of formErrors) {\n if (fieldIds.includes(error.fieldId)) {\n removedFormErrors.push(error);\n } else {\n cleanFormErrors.push(error);\n }\n }\n\n return [cleanFormErrors, removedFormErrors];\n }\n\n /**\n * Manipulates the error message for specific fields in the formErrors array.\n * @param fields - An array of field IDs to target for error message manipulation.\n * @param messageOverride - The new error message to be used for the targeted fields.\n * @param errorType - The type of error to match for the targeted fields.\n * @param formErrors - An array of IFormError objects representing the form errors.\n * @returns An array of IFormError objects with the manipulated error messages.\n */\n private manipulateFormErrorMessage(\n fields: string[],\n messageOverride: string,\n errorType: string,\n formErrors: IAbstractFormBaseFormError[],\n ): IAbstractFormBaseFormError[] {\n const manipulatedFields: IAbstractFormBaseFormError[] = [];\n for (const field of formErrors) {\n if (fields.includes(field.fieldId)) {\n if (field.type === errorType) {\n manipulatedFields.push({ ...field, message: messageOverride });\n } else {\n manipulatedFields.push(field);\n }\n continue;\n }\n manipulatedFields.push(field);\n }\n\n return manipulatedFields;\n }\n\n /**\n * Retrieves the form errors with the highest priority.\n *\n * @param formErrors - An array of form errors.\n * @returns An array of form errors with the highest priority.\n */\n private getHighPriorityFormErrors(formErrors: IAbstractFormBaseFormError[]): IAbstractFormBaseFormError[] {\n // Get the lowest priority (1 is the highest priority, 3 is the lowest priority)\n const lowestPriority = Math.min(...formErrors.map((item) => item.priority));\n return formErrors.filter((item) => item.priority === lowestPriority);\n }\n\n /**\n * Focuses on the error summary element and scrolls to the top of the page.\n *\n * This method first triggers change detection to ensure the view is up-to-date.\n * It then selects the error summary element with the class 'govuk-error-summary'.\n * If the error summary element is found, it sets focus on it without scrolling the page.\n * Finally, it calls a utility service to scroll to the top of the page.\n *\n * @private\n */\n private focusAndScrollToErrorSummary(): void {\n this.changeDetectorRef.detectChanges();\n\n const errorSummary = document.querySelector('.govuk-error-summary') as HTMLElement;\n if (errorSummary) {\n errorSummary.focus({ preventScroll: true });\n this.utilsService.scrollToTop();\n }\n }\n\n /**\n * Setup listener for the form value changes and to emit hasUnsavedChanges\n */\n private setupListener(): void {\n this.form.valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {\n this.unsavedChanges.emit(this.hasUnsavedChanges());\n });\n }\n\n /**\n * Adds controls to a form group.\n *\n * @param formGroup - The form group to add controls to.\n * @param controls - An array of form array control validations.\n * @param index - The index of the form array control.\n */\n protected addControlsToFormGroup(\n formGroup: FormGroup,\n controls: IAbstractFormArrayControlValidation[],\n index: number,\n ): void {\n for (const { controlName, validators } of controls) {\n formGroup.addControl(`${controlName}_${index}`, new FormControl(null, validators));\n }\n }\n\n /**\n * Creates a form control with the specified validators and initial value.\n *\n * @param validators - An array of validator functions.\n * @param initialValue - The initial value for the form control. Defaults to null.\n * @returns The created form control.\n */\n protected createFormControl(validators: ValidatorFn[], initialValue: string | null = null): FormControl {\n return new FormControl(initialValue, { validators: [...validators] });\n }\n\n /**\n * Handles the error messages and populates the relevant variables\n */\n protected handleErrorMessages(): void {\n this.formErrors = this.getFormErrors(this.form);\n\n this.setErrorMessages(this.formErrors);\n\n this.formErrorSummaryMessage = this.removeErrorSummaryMessages(\n this.formErrorSummaryMessage,\n this.getDateFieldsToRemoveIndexes(),\n );\n }\n\n /**\n * Checks whether the form has been touched and submitted\n *\n * @returns boolean\n */\n protected hasUnsavedChanges(): boolean {\n return this.form.dirty && !this.formSubmitted;\n }\n\n /**\n * Sets the value of a form control specified by its path and marks it as touched.\n *\n * @param value - The value to set for the form control.\n * @param controlPath - The dot-delimited path to the form control within the form group.\n */\n protected setInputValue(value: string, controlPath: string): void {\n const control = this.form.get(controlPath);\n if (control) {\n control.patchValue(value);\n control.markAsTouched();\n }\n }\n\n /**\n * Handles the form errors for the date input fields.\n * @param formErrors - An array of form errors.\n * @returns An array of form errors with the manipulated error messages.\n */\n protected handleDateInputFormErrors() {\n const dateInputFields = ['dayOfMonth', 'monthOfYear', 'year'];\n const splitFormErrors = this.splitFormErrors(dateInputFields, this.formErrors);\n const highPriorityDateControlErrors = this.getHighPriorityFormErrors(splitFormErrors[1]);\n let manipulatedFormErrors: IAbstractFormBaseFormError[] = highPriorityDateControlErrors;\n\n // If we have more than one error then we want to manipulate the error message\n if (highPriorityDateControlErrors.length > 1) {\n manipulatedFormErrors = this.manipulateFormErrorMessage(\n dateInputFields,\n 'Please enter a DOB',\n 'required',\n manipulatedFormErrors,\n );\n }\n\n return [...splitFormErrors[0], ...manipulatedFormErrors];\n }\n\n /**\n * Sets the initial error messages for the form controls.\n *\n * @param form - The FormGroup instance.\n */\n protected setInitialErrorMessages(): void {\n const formControls = this.form.controls;\n const initialFormControlErrorMessages: IAbstractFormControlErrorMessage = {};\n\n for (const controlName of Object.keys(formControls)) {\n initialFormControlErrorMessages[controlName] = null;\n }\n\n this.formControlErrorMessages = initialFormControlErrorMessages;\n this.formErrorSummaryMessage = [];\n }\n\n /**\n * Repopulates the search form with the data from the account enquiry search.\n * @param state - The state object containing the search form data.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n protected rePopulateForm(state: any): void {\n this.form.patchValue(state);\n }\n\n /**\n * Adds a new form control to the form group.\n *\n * @param controlName - The name of the control to add.\n * @param validators - An array of validators to apply to the control.\n */\n protected createControl(controlName: string, validators: ValidatorFn[]): void {\n this.form.addControl(controlName, new FormControl(null, validators));\n }\n\n /**\n * Updates the validators of an existing form control.\n *\n * @param controlName - The name of the control to update.\n * @param validators - An array of validators to apply to the control.\n */\n protected updateControl(controlName: string, validators: ValidatorFn[]): void {\n const control = this.form.get(controlName);\n if (control) {\n control.setValidators(validators);\n control.updateValueAndValidity();\n } else {\n this.createControl(controlName, validators);\n }\n }\n\n /**\n * Removes a control from the form.\n *\n * @param controlName - The name of the control to remove.\n */\n protected removeControl(controlName: string): void {\n if (this.formControlErrorMessages[controlName]) {\n this.removeControlErrors(controlName);\n }\n this.form.removeControl(controlName);\n }\n\n /**\n * Removes the error message associated with the specified control name from the formControlErrorMessages object.\n *\n * @param controlName - The name of the control for which to remove the error message.\n */\n protected removeControlErrors(controlName: string): void {\n delete this.formControlErrorMessages[controlName];\n }\n\n /**\n * Clears all error messages from the form.\n */\n protected clearAllErrorMessages(): void {\n this.formControlErrorMessages = {};\n this.formErrorSummaryMessage = [];\n this.formErrors = [];\n this.form.updateValueAndValidity({ onlySelf: false, emitEvent: false });\n }\n\n /**\n * Create a plain object from a FormRecord of FormControls.\n *\n * What it does: copies each control's current value onto a plain object.\n * When to use: when you need the raw values from a FormRecord (e.g. to send to an API).\n *\n * Example\n * -------\n * // record: FormRecord<FormControl<string | null>> with a single control 'firstName'\n * const out = this.objectFromFormRecord(record, {\n * mapKey: k => k, // optional (defaults to identity)\n * mapValue: v => v ?? '' // turn null/undefined into ''\n * });\n * // out -> { firstName: '' }\n *\n * @typeParam T - Control value type.\n * @typeParam U - Output value type (defaults to T).\n * @typeParam K - Output key type (defaults to string). Control names are strings; provide `mapKey` if you need numbers.\n */\n protected objectFromFormRecord<T, U = T, K extends string | number = string>(\n controlRecord: FormRecord<FormControl<T | null | undefined>>,\n options?: {\n mapKey?: (key: string) => K;\n mapValue?: (value: T | null | undefined) => U;\n },\n ): Record<K, U> {\n const mapKey = options?.mapKey ?? ((k: string) => k as unknown as K);\n const mapValue = options?.mapValue ?? ((v: T | null | undefined) => v as unknown as U);\n\n const result = {} as Record<K, U>;\n\n for (const [name, control] of Object.entries(controlRecord.controls)) {\n result[mapKey(name)] = mapValue(control.value);\n }\n\n return result;\n }\n\n /**\n * Patch a FormRecord of FormControls from a plain object.\n *\n * What it does: for each entry in `values`, finds the matching control by name\n * (optionally mapped via `mapKey`) and sets its value **only if** it changes.\n * When to use: when you need to patch many controls at once, without\n * triggering extra updates for unchanged values.\n *\n * Example\n * -------\n * // controlRecord: FormRecord<FormControl<string>> with controls 'firstName', 'lastName'\n * this.patchFormRecordFromObject(controlRecord, { firstName: 'Ada', lastName: 'Lovelace' }, {\n * emitEvent: true,\n * isEqual: (a, b) => a === b,\n * // mapKey: k => `ctrl_${k as string}` // optional: map incoming keys to control names\n * });\n *\n * @typeParam T - Control value type.\n * @typeParam K - Keys present in the `values` object (string or number).\n */\n protected patchFormRecordFromObject<T, K extends string | number = string>(\n controlRecord: FormRecord<FormControl<T>>,\n values: Record<K, T>,\n options?: {\n emitEvent?: boolean;\n /** How provided keys map to control names (defaults to String(key)). */\n mapKey?: (key: K) => string;\n /** Equality check used to avoid unnecessary writes (defaults to Object.is). */\n isEqual?: (a: T, b: T) => boolean;\n },\n ): void {\n const emitEvent = options?.emitEvent ?? false;\n const mapKey = options?.mapKey ?? String;\n const isEqual = options?.isEqual ?? Object.is;\n\n for (const [k, v] of Object.entries(values) as [K, T][]) {\n const controlName = mapKey(k);\n const ctrl = controlRecord.get(controlName) as FormControl<T> | null;\n if (!ctrl) {\n // If the control isn't present, skip silently. Callers can validate separately.\n continue;\n }\n if (!isEqual(ctrl.value, v)) {\n ctrl.setValue(v, { emitEvent });\n }\n }\n }\n\n /**\n * Clears the search form.\n */\n public handleClearForm(): void {\n this.form.reset();\n }\n\n /**\n * Handles the scroll of the component error from the summary\n *\n * @param fieldId - Field id of the component\n */\n public scrollTo(fieldId: string): void {\n this['scroll'](fieldId);\n }\n\n /**\n * Handles route with the supplied route\n *\n * @param route string of route\n * @param nonRelative boolean indicating if route is relative to the parent\n * @param event optional event to prevent default behavior\n * @param routeData optional data to pass with the route\n * @param fragment optional URL fragment (hash) to navigate to\n */\n public handleRoute(\n route: string,\n nonRelative: boolean = false,\n event?: Event,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n routeData?: any,\n fragment?: string,\n ): void {\n if (event) {\n event.preventDefault();\n }\n\n this.unsavedChanges.emit(this.hasUnsavedChanges());\n\n const navigationExtras = {\n ...(nonRelative ? {} : { relativeTo: this.activatedRoute.parent }),\n ...(routeData === undefined ? {} : { state: routeData }),\n ...(fragment ? { fragment } : {}),\n };\n\n this.router.navigate([route], navigationExtras);\n }\n\n /**\n * Handles the form submission event.\n *\n * @param event - The form submission event.\n * @returns void\n */\n public handleFormSubmit(event: SubmitEvent): void {\n this.handleErrorMessages();\n\n if (this.form.valid) {\n this.formSubmitted = true;\n const nestedFlow = event.submitter ? event.submitter.className.includes('nested-flow') : false;\n this.unsavedChanges.emit(this.hasUnsavedChanges());\n this.formSubmit.emit({ formData: this.form.value, nestedFlow: nestedFlow });\n } else {\n this.focusAndScrollToErrorSummary();\n }\n }\n\n /**\n * Handles the input event to convert all letters in the input value to uppercase.\n * This method is triggered by an input event and modifies the input value directly.\n *\n * @param event - The input event triggered by the user.\n */\n public handleUppercaseInputMask(event: Event): void {\n const input = event.target as HTMLInputElement;\n input.value = this.utilsService.upperCaseAllLetters(input.value);\n }\n\n public ngOnInit(): void {\n if (this.form) {\n this.setupListener();\n }\n }\n\n public ngOnDestroy(): void {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAmBsB,yBAAyB,CAAA;AAC5B,IAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC7C,IAAA,MAAM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AAA;AAChB,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE;AACzB,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE;IAC/B;wGAntBoB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,iJAFnC,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAEQ,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAH9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,EAAE;AACb,iBAAA;;sBAME;;sBAEA;;;AC1BH;;AAEG;;;;"}
1
+ {"version":3,"file":"hmcts-opal-frontend-common-components-abstract-abstract-form-base.mjs","sources":["../../../projects/opal-frontend-common/components/abstract/abstract-form-base/abstract-form-base.component.ts","../../../projects/opal-frontend-common/components/abstract/abstract-form-base/hmcts-opal-frontend-common-components-abstract-abstract-form-base.ts"],"sourcesContent":["import { ChangeDetectorRef, Component, EventEmitter, OnDestroy, OnInit, Output, inject } from '@angular/core';\nimport { FormArray, FormControl, FormGroup, FormRecord, ValidatorFn } from '@angular/forms';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { Subject, takeUntil } from 'rxjs';\nimport { IAbstractFormBaseFieldError } from './interfaces/abstract-form-base-field-error.interface';\nimport { IAbstractFormBaseFieldErrors } from './interfaces/abstract-form-base-field-errors.interface';\nimport { IAbstractFormBaseFormError } from './interfaces/abstract-form-base-form-error.interface';\nimport {\n IAbstractFormBaseFormErrorSummaryMessage,\n IAbstractFormControlErrorMessage,\n IAbstractFormArrayControlValidation,\n} from '@hmcts/opal-frontend-common/components/abstract/interfaces';\nimport { IAbstractFormBaseHighPriorityFormError } from './interfaces/abstract-form-base-high-priority-form-error.interface';\nimport { IAbstractFormBaseForm } from './interfaces/abstract-form-base-form.interface';\nimport { UtilsService } from '@hmcts/opal-frontend-common/services/utils-service';\nimport { IAbstractFormBaseHandleRouteOptions } from './interfaces/abstract-form-base-handleroute-options.interface';\n\n@Component({\n template: '',\n})\nexport abstract class AbstractFormBaseComponent implements OnInit, OnDestroy {\n private readonly changeDetectorRef = inject(ChangeDetectorRef);\n private readonly router = inject(Router);\n private readonly activatedRoute = inject(ActivatedRoute);\n\n @Output() protected unsavedChanges = new EventEmitter<boolean>();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Output() protected formSubmit = new EventEmitter<IAbstractFormBaseForm<any>>();\n protected readonly utilsService = inject(UtilsService);\n protected fieldErrors!: IAbstractFormBaseFieldErrors;\n protected formSubmitted = false;\n protected readonly ngUnsubscribe = new Subject<void>();\n\n public form!: FormGroup;\n public formControlErrorMessages!: IAbstractFormControlErrorMessage;\n public formErrorSummaryMessage!: IAbstractFormBaseFormErrorSummaryMessage[];\n public formErrors!: IAbstractFormBaseFormError[];\n\n constructor() {}\n\n /**\n * Scrolls to a specific form field and attempts to focus on it.\n *\n * This method locates the target field or its associated label/legend\n * based on the provided `fieldId`. It ensures that the field or its\n * nested focusable element is brought into view and focused, if possible.\n *\n * The scrolling behavior is smooth, and the method prioritizes the following\n * elements in order:\n * 1. A label associated with an autocomplete field (`label[for=\"${fieldId}-autocomplete\"]`).\n * 2. A regular label associated with the field (`label[for=\"${fieldId}\"]`).\n * 3. A legend within a fieldset associated with the field (`[id=\"${fieldId}\"] .govuk-fieldset__legend`).\n * 4. The field itself or its nested focusable element.\n *\n * @param fieldId - The ID of the form field to scroll to and focus on.\n */\n private scroll(fieldId: string): void {\n const autocompleteLabel = document.querySelector<HTMLElement>(`label[for=\"${fieldId}-autocomplete\"]`);\n const regularLabel = document.querySelector<HTMLElement>(`label[for=\"${fieldId}\"]`);\n const fieldsetLegend = document.querySelector<HTMLElement>(`[id=\"${fieldId}\"] .govuk-fieldset__legend`);\n\n const labelTarget = autocompleteLabel ?? regularLabel ?? fieldsetLegend ?? null;\n const focusableSelector = 'input:not([type=\"hidden\"]), select, textarea, button, [tabindex]:not([tabindex=\"-1\"])';\n\n let fieldElement = document.getElementById(`${fieldId}-autocomplete`) ?? document.getElementById(fieldId);\n\n if (fieldElement && !this.canReceiveFocus(fieldElement)) {\n const nestedFocusable = fieldElement.querySelector<HTMLElement>(focusableSelector);\n if (nestedFocusable) {\n fieldElement = nestedFocusable;\n }\n }\n\n fieldElement ??= document.querySelector<HTMLElement>(`[id=\"${fieldId}\"] ${focusableSelector}`);\n\n if (labelTarget) {\n labelTarget.scrollIntoView({ behavior: 'smooth' });\n } else if (fieldElement) {\n fieldElement.scrollIntoView({ behavior: 'smooth' });\n }\n\n fieldElement?.focus();\n }\n\n /**\n * Determines whether a given HTML element can receive focus.\n *\n * An element is considered focusable if:\n * - It has a `tabIndex` greater than or equal to 0 and does not have the `disabled` attribute.\n * - It is an anchor (`<a>`) element with a valid `href` attribute.\n * - It is one of the following tags: `INPUT`, `SELECT`, `TEXTAREA`, or `BUTTON`,\n * and it is not disabled.\n *\n * @param element - The HTML element to check for focusability.\n * @returns `true` if the element can receive focus, otherwise `false`.\n */\n private canReceiveFocus(element: HTMLElement): boolean {\n if (element.tabIndex >= 0 && !element.hasAttribute('disabled')) {\n return true;\n }\n\n if (element instanceof HTMLAnchorElement && element.hasAttribute('href') && element.href) {\n return !!element.href;\n }\n\n const focusableTags = ['INPUT', 'SELECT', 'TEXTAREA', 'BUTTON'];\n if (focusableTags.includes(element.tagName)) {\n return !(element as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLButtonElement).disabled;\n }\n\n return false;\n }\n\n /**\n * Returns the highest priority form error from the given error keys and field errors.\n * @param errorKeys - An array of error keys.\n * @param fieldErrors - An object containing field errors.\n * @returns The highest priority form error or null if no errors are found.\n */\n private getHighestPriorityError(\n errorKeys: string[] = [],\n fieldErrors: IAbstractFormBaseFieldError = {},\n ): IAbstractFormBaseHighPriorityFormError | null {\n if (errorKeys.length && Object.keys(fieldErrors).length) {\n const errors = errorKeys.map((errorType: string) => {\n return {\n ...fieldErrors[errorType],\n type: errorType,\n };\n });\n\n const sortedErrors = [...errors].sort((a, b) => a.priority - b.priority);\n\n return sortedErrors[0];\n }\n return null;\n }\n\n /**\n * Retrieves the details of the highest priority form error for a given control path.\n * @param controlPath - The path to the control in the form.\n * @returns The details of the highest priority form error, or null if there are no errors.\n */\n private getFieldErrorDetails(controlPath: (string | number)[]): IAbstractFormBaseHighPriorityFormError | null {\n // Get the control\n const control = this.form.get(controlPath);\n\n // If we have errors\n const controlErrors = control?.errors;\n\n if (controlErrors) {\n /// Get all the error keys\n // Use Array.prototype.at for clarity when accessing the last segment of the control path\n const controlKey = controlPath.at(-1);\n const errorKeys = Object.keys(controlErrors) || [];\n const fieldErrors = controlKey === undefined ? {} : this.fieldErrors[controlKey] || {};\n\n if (errorKeys.length && Object.keys(fieldErrors).length) {\n return this.getHighestPriorityError(errorKeys, fieldErrors);\n }\n }\n return null;\n }\n\n /**\n * Retrieves all form errors from the provided form and its nested form groups.\n *\n * @param form - The form group to retrieve errors from.\n * @param controlPath - An optional array representing the path to the current control within the form group.\n * @returns An array of form errors, each containing the field ID, error message, priority, and type.\n */\n private getFormErrors(form: FormGroup, controlPath: (string | number)[] = []): IAbstractFormBaseFormError[] {\n // recursively get all errors from all controls in the form including nested form group controls\n const formControls = form.controls;\n\n const errorSummary = Object.keys(formControls)\n .filter((controlName) => formControls[controlName].invalid)\n .flatMap((controlName) => {\n const control = formControls[controlName];\n\n if (control instanceof FormRecord) {\n // We only support FormControls in FormRecords\n const recordFieldErrorDetails = this.getFieldErrorDetails([...controlPath, controlName]);\n\n return {\n fieldId: controlName,\n message: recordFieldErrorDetails?.message ?? null,\n priority: recordFieldErrorDetails?.priority ?? 999999999,\n type: recordFieldErrorDetails?.type ?? null,\n };\n }\n\n if (control instanceof FormGroup) {\n return this.getFormErrors(control, [...controlPath, controlName]);\n }\n\n if (control instanceof FormArray) {\n return control.controls.flatMap((controlItem, index) => {\n // We only support FormGroups in FormArrays\n if (controlItem instanceof FormGroup) {\n return this.getFormErrors(controlItem, [...controlPath, controlName, index]);\n }\n return [];\n });\n }\n\n const getFieldErrorDetails = this.getFieldErrorDetails([...controlPath, controlName]);\n\n // Return the error summary entry\n // If we don't have the error details, return a null message\n return {\n fieldId: controlName,\n message: getFieldErrorDetails?.message ?? null,\n priority: getFieldErrorDetails?.priority ?? 999999999,\n type: getFieldErrorDetails?.type ?? null,\n };\n });\n\n // Remove any null errors\n return errorSummary.filter((item) => item?.message !== null);\n }\n\n /**\n * Sets the error messages for the form controls and error summary based on the provided form errors.\n * @param formErrors - An array of form errors containing field IDs and error messages.\n */\n private setErrorMessages(formErrors: IAbstractFormBaseFormError[]) {\n // Reset the form error messages\n this.formControlErrorMessages = {};\n this.formErrorSummaryMessage = [];\n\n // Set the form error messages based on the error summary entries\n for (const entry of formErrors) {\n this.formControlErrorMessages[entry.fieldId] = entry.message;\n this.formErrorSummaryMessage.push({ fieldId: entry.fieldId, message: entry.message });\n }\n }\n\n /**\n * Gets the indexes of the date fields to remove based on the form error summary message.\n * @returns An array of indexes representing the date fields to remove.\n */\n private getDateFieldsToRemoveIndexes(): number[] {\n const indexesToRemove: number[] = [];\n // The order of the field ids is important\n // this is the order in which we want to remove them\n const foundIndexes = this.getFormErrorSummaryIndex(\n ['dayOfMonth', 'monthOfYear', 'year'],\n this.formErrorSummaryMessage,\n );\n\n // Determine which indexes to remove based on the found fields\n switch (foundIndexes.length) {\n case 3:\n // All three date fields are present\n indexesToRemove.push(foundIndexes[1], foundIndexes[2]);\n break;\n case 2:\n // Two date fields are present\n indexesToRemove.push(foundIndexes[1]);\n break;\n }\n\n return indexesToRemove;\n }\n\n /**\n * Returns an array of indices corresponding to the positions of the given field IDs in the form error summary message array.\n *\n * @param fieldIds - An array of field IDs to search for in the form error summary message array.\n * @param formErrorSummaryMessage - An array of form error summary messages.\n * @returns An array of indices corresponding to the positions of the field IDs in the form error summary message array.\n */\n private getFormErrorSummaryIndex(\n fieldIds: string[],\n formErrorSummaryMessage: IAbstractFormBaseFormErrorSummaryMessage[],\n ): number[] {\n return fieldIds.reduce((acc: number[], field) => {\n const index = formErrorSummaryMessage.findIndex((error) => error.fieldId === field);\n if (index === -1) {\n return acc;\n }\n return [...acc, index];\n }, []);\n }\n\n /**\n * Removes error summary messages from the given array based on the specified indexes.\n *\n * @param formErrorSummaryMessage - The array of error summary messages.\n * @param indexes - The indexes of the error summary messages to be removed.\n * @returns The updated array of error summary messages.\n */\n private removeErrorSummaryMessages(\n formErrorSummaryMessage: IAbstractFormBaseFormErrorSummaryMessage[],\n indexes: number[],\n ): IAbstractFormBaseFormErrorSummaryMessage[] {\n return formErrorSummaryMessage.filter((_, index) => !indexes.includes(index));\n }\n\n /**\n * Splits the form errors into two arrays based on the provided field IDs.\n * Errors with field IDs included in the fieldIds array will be moved to the removedFormErrors array,\n * while the remaining errors will be moved to the cleanFormErrors array.\n *\n * @param fieldIds - An array of field IDs to filter the form errors.\n * @param formErrors - An array of form errors to be split.\n * @returns An array containing two arrays: cleanFormErrors and removedFormErrors.\n */\n private splitFormErrors(\n fieldIds: string[],\n formErrors: IAbstractFormBaseFormError[],\n ): IAbstractFormBaseFormError[][] {\n const cleanFormErrors: IAbstractFormBaseFormError[] = [];\n const removedFormErrors: IAbstractFormBaseFormError[] = [];\n\n for (const error of formErrors) {\n if (fieldIds.includes(error.fieldId)) {\n removedFormErrors.push(error);\n } else {\n cleanFormErrors.push(error);\n }\n }\n\n return [cleanFormErrors, removedFormErrors];\n }\n\n /**\n * Manipulates the error message for specific fields in the formErrors array.\n * @param fields - An array of field IDs to target for error message manipulation.\n * @param messageOverride - The new error message to be used for the targeted fields.\n * @param errorType - The type of error to match for the targeted fields.\n * @param formErrors - An array of IFormError objects representing the form errors.\n * @returns An array of IFormError objects with the manipulated error messages.\n */\n private manipulateFormErrorMessage(\n fields: string[],\n messageOverride: string,\n errorType: string,\n formErrors: IAbstractFormBaseFormError[],\n ): IAbstractFormBaseFormError[] {\n const manipulatedFields: IAbstractFormBaseFormError[] = [];\n for (const field of formErrors) {\n if (fields.includes(field.fieldId)) {\n if (field.type === errorType) {\n manipulatedFields.push({ ...field, message: messageOverride });\n } else {\n manipulatedFields.push(field);\n }\n continue;\n }\n manipulatedFields.push(field);\n }\n\n return manipulatedFields;\n }\n\n /**\n * Retrieves the form errors with the highest priority.\n *\n * @param formErrors - An array of form errors.\n * @returns An array of form errors with the highest priority.\n */\n private getHighPriorityFormErrors(formErrors: IAbstractFormBaseFormError[]): IAbstractFormBaseFormError[] {\n // Get the lowest priority (1 is the highest priority, 3 is the lowest priority)\n const lowestPriority = Math.min(...formErrors.map((item) => item.priority));\n return formErrors.filter((item) => item.priority === lowestPriority);\n }\n\n /**\n * Focuses on the error summary element and scrolls to the top of the page.\n *\n * This method first triggers change detection to ensure the view is up-to-date.\n * It then selects the error summary element with the class 'govuk-error-summary'.\n * If the error summary element is found, it sets focus on it without scrolling the page.\n * Finally, it calls a utility service to scroll to the top of the page.\n *\n * @private\n */\n private focusAndScrollToErrorSummary(): void {\n this.changeDetectorRef.detectChanges();\n\n const errorSummary = document.querySelector('.govuk-error-summary') as HTMLElement;\n if (errorSummary) {\n errorSummary.focus({ preventScroll: true });\n this.utilsService.scrollToTop();\n }\n }\n\n /**\n * Setup listener for the form value changes and to emit hasUnsavedChanges\n */\n private setupListener(): void {\n this.form.valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {\n this.unsavedChanges.emit(this.hasUnsavedChanges());\n });\n }\n\n /**\n * Adds controls to a form group.\n *\n * @param formGroup - The form group to add controls to.\n * @param controls - An array of form array control validations.\n * @param index - The index of the form array control.\n */\n protected addControlsToFormGroup(\n formGroup: FormGroup,\n controls: IAbstractFormArrayControlValidation[],\n index: number,\n ): void {\n for (const { controlName, validators } of controls) {\n formGroup.addControl(`${controlName}_${index}`, new FormControl(null, validators));\n }\n }\n\n /**\n * Creates a form control with the specified validators and initial value.\n *\n * @param validators - An array of validator functions.\n * @param initialValue - The initial value for the form control. Defaults to null.\n * @returns The created form control.\n */\n protected createFormControl(validators: ValidatorFn[], initialValue: string | null = null): FormControl {\n return new FormControl(initialValue, { validators: [...validators] });\n }\n\n /**\n * Handles the error messages and populates the relevant variables\n */\n protected handleErrorMessages(): void {\n this.formErrors = this.getFormErrors(this.form);\n\n this.setErrorMessages(this.formErrors);\n\n this.formErrorSummaryMessage = this.removeErrorSummaryMessages(\n this.formErrorSummaryMessage,\n this.getDateFieldsToRemoveIndexes(),\n );\n }\n\n /**\n * Checks whether the form has been touched and submitted\n *\n * @returns boolean\n */\n protected hasUnsavedChanges(): boolean {\n return this.form.dirty && !this.formSubmitted;\n }\n\n /**\n * Sets the value of a form control specified by its path and marks it as touched.\n *\n * @param value - The value to set for the form control.\n * @param controlPath - The dot-delimited path to the form control within the form group.\n */\n protected setInputValue(value: string, controlPath: string): void {\n const control = this.form.get(controlPath);\n if (control) {\n control.patchValue(value);\n control.markAsTouched();\n }\n }\n\n /**\n * Handles the form errors for the date input fields.\n * @param formErrors - An array of form errors.\n * @returns An array of form errors with the manipulated error messages.\n */\n protected handleDateInputFormErrors() {\n const dateInputFields = ['dayOfMonth', 'monthOfYear', 'year'];\n const splitFormErrors = this.splitFormErrors(dateInputFields, this.formErrors);\n const highPriorityDateControlErrors = this.getHighPriorityFormErrors(splitFormErrors[1]);\n let manipulatedFormErrors: IAbstractFormBaseFormError[] = highPriorityDateControlErrors;\n\n // If we have more than one error then we want to manipulate the error message\n if (highPriorityDateControlErrors.length > 1) {\n manipulatedFormErrors = this.manipulateFormErrorMessage(\n dateInputFields,\n 'Please enter a DOB',\n 'required',\n manipulatedFormErrors,\n );\n }\n\n return [...splitFormErrors[0], ...manipulatedFormErrors];\n }\n\n /**\n * Sets the initial error messages for the form controls.\n *\n * @param form - The FormGroup instance.\n */\n protected setInitialErrorMessages(): void {\n const formControls = this.form.controls;\n const initialFormControlErrorMessages: IAbstractFormControlErrorMessage = {};\n\n for (const controlName of Object.keys(formControls)) {\n initialFormControlErrorMessages[controlName] = null;\n }\n\n this.formControlErrorMessages = initialFormControlErrorMessages;\n this.formErrorSummaryMessage = [];\n }\n\n /**\n * Repopulates the search form with the data from the account enquiry search.\n * @param state - The state object containing the search form data.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n protected rePopulateForm(state: any): void {\n this.form.patchValue(state);\n }\n\n /**\n * Adds a new form control to the form group.\n *\n * @param controlName - The name of the control to add.\n * @param validators - An array of validators to apply to the control.\n */\n protected createControl(controlName: string, validators: ValidatorFn[]): void {\n this.form.addControl(controlName, new FormControl(null, validators));\n }\n\n /**\n * Updates the validators of an existing form control.\n *\n * @param controlName - The name of the control to update.\n * @param validators - An array of validators to apply to the control.\n */\n protected updateControl(controlName: string, validators: ValidatorFn[]): void {\n const control = this.form.get(controlName);\n if (control) {\n control.setValidators(validators);\n control.updateValueAndValidity();\n } else {\n this.createControl(controlName, validators);\n }\n }\n\n /**\n * Removes a control from the form.\n *\n * @param controlName - The name of the control to remove.\n */\n protected removeControl(controlName: string): void {\n if (this.formControlErrorMessages[controlName]) {\n this.removeControlErrors(controlName);\n }\n this.form.removeControl(controlName);\n }\n\n /**\n * Removes the error message associated with the specified control name from the formControlErrorMessages object.\n *\n * @param controlName - The name of the control for which to remove the error message.\n */\n protected removeControlErrors(controlName: string): void {\n delete this.formControlErrorMessages[controlName];\n }\n\n /**\n * Clears all error messages from the form.\n */\n protected clearAllErrorMessages(): void {\n this.formControlErrorMessages = {};\n this.formErrorSummaryMessage = [];\n this.formErrors = [];\n this.form.updateValueAndValidity({ onlySelf: false, emitEvent: false });\n }\n\n /**\n * Create a plain object from a FormRecord of FormControls.\n *\n * What it does: copies each control's current value onto a plain object.\n * When to use: when you need the raw values from a FormRecord (e.g. to send to an API).\n *\n * Example\n * -------\n * // record: FormRecord<FormControl<string | null>> with a single control 'firstName'\n * const out = this.objectFromFormRecord(record, {\n * mapKey: k => k, // optional (defaults to identity)\n * mapValue: v => v ?? '' // turn null/undefined into ''\n * });\n * // out -> { firstName: '' }\n *\n * @typeParam T - Control value type.\n * @typeParam U - Output value type (defaults to T).\n * @typeParam K - Output key type (defaults to string). Control names are strings; provide `mapKey` if you need numbers.\n */\n protected objectFromFormRecord<T, U = T, K extends string | number = string>(\n controlRecord: FormRecord<FormControl<T | null | undefined>>,\n options?: {\n mapKey?: (key: string) => K;\n mapValue?: (value: T | null | undefined) => U;\n },\n ): Record<K, U> {\n const mapKey = options?.mapKey ?? ((k: string) => k as unknown as K);\n const mapValue = options?.mapValue ?? ((v: T | null | undefined) => v as unknown as U);\n\n const result = {} as Record<K, U>;\n\n for (const [name, control] of Object.entries(controlRecord.controls)) {\n result[mapKey(name)] = mapValue(control.value);\n }\n\n return result;\n }\n\n /**\n * Patch a FormRecord of FormControls from a plain object.\n *\n * What it does: for each entry in `values`, finds the matching control by name\n * (optionally mapped via `mapKey`) and sets its value **only if** it changes.\n * When to use: when you need to patch many controls at once, without\n * triggering extra updates for unchanged values.\n *\n * Example\n * -------\n * // controlRecord: FormRecord<FormControl<string>> with controls 'firstName', 'lastName'\n * this.patchFormRecordFromObject(controlRecord, { firstName: 'Ada', lastName: 'Lovelace' }, {\n * emitEvent: true,\n * isEqual: (a, b) => a === b,\n * // mapKey: k => `ctrl_${k as string}` // optional: map incoming keys to control names\n * });\n *\n * @typeParam T - Control value type.\n * @typeParam K - Keys present in the `values` object (string or number).\n */\n protected patchFormRecordFromObject<T, K extends string | number = string>(\n controlRecord: FormRecord<FormControl<T>>,\n values: Record<K, T>,\n options?: {\n emitEvent?: boolean;\n /** How provided keys map to control names (defaults to String(key)). */\n mapKey?: (key: K) => string;\n /** Equality check used to avoid unnecessary writes (defaults to Object.is). */\n isEqual?: (a: T, b: T) => boolean;\n },\n ): void {\n const emitEvent = options?.emitEvent ?? false;\n const mapKey = options?.mapKey ?? String;\n const isEqual = options?.isEqual ?? Object.is;\n\n for (const [k, v] of Object.entries(values) as [K, T][]) {\n const controlName = mapKey(k);\n const ctrl = controlRecord.get(controlName) as FormControl<T> | null;\n if (!ctrl) {\n // If the control isn't present, skip silently. Callers can validate separately.\n continue;\n }\n if (!isEqual(ctrl.value, v)) {\n ctrl.setValue(v, { emitEvent });\n }\n }\n }\n\n /**\n * Clears the search form.\n */\n public handleClearForm(): void {\n this.form.reset();\n }\n\n /**\n * Handles the scroll of the component error from the summary\n *\n * @param fieldId - Field id of the component\n */\n public scrollTo(fieldId: string): void {\n this['scroll'](fieldId);\n }\n\n /**\n * Handles route with the supplied route\n *\n * @param route string of route\n * @param options optional parameters\n */\n public handleRoute(route: string, options?: IAbstractFormBaseHandleRouteOptions): void {\n const { nonRelative = false, event, routeData, fragment } = options ?? {};\n\n if (event) {\n event.preventDefault();\n }\n\n this.unsavedChanges.emit(this.hasUnsavedChanges());\n\n const navigationExtras = {\n ...(nonRelative ? {} : { relativeTo: this.activatedRoute.parent }),\n ...(routeData ? { state: routeData } : {}),\n ...(fragment ? { fragment } : {}),\n };\n\n this.router.navigate([route], navigationExtras);\n }\n\n /**\n * Handles the form submission event.\n *\n * @param event - The form submission event.\n * @returns void\n */\n public handleFormSubmit(event: SubmitEvent): void {\n this.handleErrorMessages();\n\n if (this.form.valid) {\n this.formSubmitted = true;\n const nestedFlow = event.submitter ? event.submitter.className.includes('nested-flow') : false;\n this.unsavedChanges.emit(this.hasUnsavedChanges());\n this.formSubmit.emit({ formData: this.form.value, nestedFlow: nestedFlow });\n } else {\n this.focusAndScrollToErrorSummary();\n }\n }\n\n /**\n * Handles the input event to convert all letters in the input value to uppercase.\n * This method is triggered by an input event and modifies the input value directly.\n *\n * @param event - The input event triggered by the user.\n */\n public handleUppercaseInputMask(event: Event): void {\n const input = event.target as HTMLInputElement;\n input.value = this.utilsService.upperCaseAllLetters(input.value);\n }\n\n public ngOnInit(): void {\n if (this.form) {\n this.setupListener();\n }\n }\n\n public ngOnDestroy(): void {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAoBsB,yBAAyB,CAAA;AAC5B,IAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC7C,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,IAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAEpC,IAAA,cAAc,GAAG,IAAI,YAAY,EAAW;;AAE5C,IAAA,UAAU,GAAG,IAAI,YAAY,EAA8B;AAC5D,IAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AAC5C,IAAA,WAAW;IACX,aAAa,GAAG,KAAK;AACZ,IAAA,aAAa,GAAG,IAAI,OAAO,EAAQ;AAE/C,IAAA,IAAI;AACJ,IAAA,wBAAwB;AACxB,IAAA,uBAAuB;AACvB,IAAA,UAAU;AAEjB,IAAA,WAAA,GAAA,EAAe;AAEf;;;;;;;;;;;;;;;AAeG;AACK,IAAA,MAAM,CAAC,OAAe,EAAA;QAC5B,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAc,CAAA,WAAA,EAAc,OAAO,CAAA,eAAA,CAAiB,CAAC;QACrG,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAc,CAAA,WAAA,EAAc,OAAO,CAAA,EAAA,CAAI,CAAC;QACnF,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAc,CAAA,KAAA,EAAQ,OAAO,CAAA,0BAAA,CAA4B,CAAC;QAEvG,MAAM,WAAW,GAAG,iBAAiB,IAAI,YAAY,IAAI,cAAc,IAAI,IAAI;QAC/E,MAAM,iBAAiB,GAAG,uFAAuF;AAEjH,QAAA,IAAI,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA,EAAG,OAAO,CAAA,aAAA,CAAe,CAAC,IAAI,QAAQ,CA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AAC1C,QAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B;AAC9C,QAAA,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC;IAClE;IAEO,QAAQ,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,aAAa,EAAE;QACtB;IACF;IAEO,WAAW,GAAA;AAChB,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE;AACzB,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE;IAC/B;wGA3sBoB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,iJAFnC,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;4FAEQ,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAH9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,EAAE;AACb,iBAAA;;sBAME;;sBAEA;;;AC3BH;;AAEG;;;;"}
@@ -125,10 +125,10 @@ class AbstractNestedFormBaseComponent extends AbstractFormBaseComponent {
125
125
  }
126
126
  super.ngOnDestroy();
127
127
  }
128
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractNestedFormBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
129
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractNestedFormBaseComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
128
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractNestedFormBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
129
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractNestedFormBaseComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
130
130
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractNestedFormBaseComponent, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractNestedFormBaseComponent, decorators: [{
132
132
  type: Component,
133
133
  args: [{
134
134
  template: '',
@@ -61,10 +61,10 @@ class AbstractSortableTablePaginationComponent extends AbstractSortableTableComp
61
61
  const totalPages = Math.ceil(this.displayTableDataSignal().length / this.itemsPerPageSignal());
62
62
  this.currentPageSignal.set(Math.max(1, Math.min(newPage, totalPages)));
63
63
  }
64
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractSortableTablePaginationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
65
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractSortableTablePaginationComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
64
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractSortableTablePaginationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
65
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractSortableTablePaginationComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractSortableTablePaginationComponent, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractSortableTablePaginationComponent, decorators: [{
68
68
  type: Component,
69
69
  args: [{
70
70
  template: '',
@@ -185,10 +185,10 @@ class AbstractSortableTableComponent extends AbstractTableFilterComponent {
185
185
  this.onSortChange({ key, sortType });
186
186
  }
187
187
  }
188
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractSortableTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
189
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractSortableTableComponent, isStandalone: true, selector: "ng-component", outputs: { abstractSortState: "abstractSortState" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
188
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractSortableTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
189
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractSortableTableComponent, isStandalone: true, selector: "ng-component", outputs: { abstractSortState: "abstractSortState" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
190
190
  }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractSortableTableComponent, decorators: [{
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractSortableTableComponent, decorators: [{
192
192
  type: Component,
193
193
  args: [{
194
194
  template: '',
@@ -168,10 +168,10 @@ class AbstractTableFilterComponent {
168
168
  this.appliedKeyword.set(keyword);
169
169
  this.applyFilterState();
170
170
  }
171
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractTableFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
172
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: AbstractTableFilterComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true });
171
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractTableFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
172
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AbstractTableFilterComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true });
173
173
  }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AbstractTableFilterComponent, decorators: [{
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AbstractTableFilterComponent, decorators: [{
175
175
  type: Component,
176
176
  args: [{ template: '' }]
177
177
  }] });
@@ -134,10 +134,10 @@ class AlphagovAccessibleAutocompleteComponent {
134
134
  this.ngUnsubscribe.next();
135
135
  this.ngUnsubscribe.complete();
136
136
  }
137
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AlphagovAccessibleAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
138
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: AlphagovAccessibleAutocompleteComponent, isStandalone: true, selector: "opal-lib-alphagov-accessible-autocomplete", inputs: { labelText: "labelText", labelClasses: "labelClasses", inputId: "inputId", inputName: "inputName", inputClasses: "inputClasses", hintText: "hintText", autoCompleteItems: "autoCompleteItems", showAllValues: "showAllValues", errors: "errors", control: "control" }, viewQueries: [{ propertyName: "autocompleteContainer", first: true, predicate: ["autocomplete"], descendants: true }], ngImport: i0, template: "<div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"!!errors\">\n <label class=\"govuk-label {{ labelClasses }}\" [for]=\"autoCompleteId\"> {{ labelText }} </label>\n @if (hintText) {\n <div id=\"{{ inputId }}-hint\" class=\"govuk-hint\">\n {{ hintText }}\n </div>\n }\n\n @if (errors) {\n <p id=\"{{ this.autoCompleteId }}-error-message\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error: </span> {{ errors }}\n </p>\n }\n\n <div #autocomplete id=\"{{ autoCompleteId }}-container\" class=\"{{ inputClasses }}\"></div>\n <input\n [id]=\"inputId\"\n [name]=\"inputName\"\n type=\"hidden\"\n [formControl]=\"getControl\"\n [attr.aria-describedby]=\"hintText ? inputId + '-hint' : null\"\n />\n</div>\n", styles: [":host ::ng-deep .autocomplete__option{font-family:GDS Transport,arial,sans-serif}:host ::ng-deep .govuk-input--error input{border-color:#d4351c}:host ::ng-deep .autocomplete__input{background-color:#fff}:host ::ng-deep .autocomplete__dropdown-arrow-down{z-index:1!important;pointer-events:none!important}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
137
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AlphagovAccessibleAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
138
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AlphagovAccessibleAutocompleteComponent, isStandalone: true, selector: "opal-lib-alphagov-accessible-autocomplete", inputs: { labelText: "labelText", labelClasses: "labelClasses", inputId: "inputId", inputName: "inputName", inputClasses: "inputClasses", hintText: "hintText", autoCompleteItems: "autoCompleteItems", showAllValues: "showAllValues", errors: "errors", control: "control" }, viewQueries: [{ propertyName: "autocompleteContainer", first: true, predicate: ["autocomplete"], descendants: true }], ngImport: i0, template: "<div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"!!errors\">\n <label class=\"govuk-label {{ labelClasses }}\" [for]=\"autoCompleteId\"> {{ labelText }} </label>\n @if (hintText) {\n <div id=\"{{ inputId }}-hint\" class=\"govuk-hint\">\n {{ hintText }}\n </div>\n }\n\n @if (errors) {\n <p id=\"{{ this.autoCompleteId }}-error-message\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error: </span> {{ errors }}\n </p>\n }\n\n <div #autocomplete id=\"{{ autoCompleteId }}-container\" class=\"{{ inputClasses }}\"></div>\n <input\n [id]=\"inputId\"\n [name]=\"inputName\"\n type=\"hidden\"\n [formControl]=\"getControl\"\n [attr.aria-describedby]=\"hintText ? inputId + '-hint' : null\"\n />\n</div>\n", styles: [":host ::ng-deep .autocomplete__option{font-family:GDS Transport,arial,sans-serif}:host ::ng-deep .govuk-input--error input{border-color:#d4351c}:host ::ng-deep .autocomplete__input{background-color:#fff}:host ::ng-deep .autocomplete__dropdown-arrow-down{z-index:1!important;pointer-events:none!important}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
139
139
  }
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: AlphagovAccessibleAutocompleteComponent, decorators: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AlphagovAccessibleAutocompleteComponent, decorators: [{
141
141
  type: Component,
142
142
  args: [{ selector: 'opal-lib-alphagov-accessible-autocomplete', imports: [ReactiveFormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"!!errors\">\n <label class=\"govuk-label {{ labelClasses }}\" [for]=\"autoCompleteId\"> {{ labelText }} </label>\n @if (hintText) {\n <div id=\"{{ inputId }}-hint\" class=\"govuk-hint\">\n {{ hintText }}\n </div>\n }\n\n @if (errors) {\n <p id=\"{{ this.autoCompleteId }}-error-message\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error: </span> {{ errors }}\n </p>\n }\n\n <div #autocomplete id=\"{{ autoCompleteId }}-container\" class=\"{{ inputClasses }}\"></div>\n <input\n [id]=\"inputId\"\n [name]=\"inputName\"\n type=\"hidden\"\n [formControl]=\"getControl\"\n [attr.aria-describedby]=\"hintText ? inputId + '-hint' : null\"\n />\n</div>\n", styles: [":host ::ng-deep .autocomplete__option{font-family:GDS Transport,arial,sans-serif}:host ::ng-deep .govuk-input--error input{border-color:#d4351c}:host ::ng-deep .autocomplete__input{background-color:#fff}:host ::ng-deep .autocomplete__dropdown-arrow-down{z-index:1!important;pointer-events:none!important}\n"] }]
143
143
  }], ctorParameters: () => [], propDecorators: { labelText: [{
@@ -3,10 +3,10 @@ import { HostBinding, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class CustomAccountInformationItemLabelComponent {
5
5
  hostClass = 'govuk-body govuk-!-font-size-16 govuk-!-font-weight-bold govuk-!-margin-0';
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationItemLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: CustomAccountInformationItemLabelComponent, isStandalone: true, selector: "opal-lib-custom-account-information-item-label, [opal-lib-custom-account-information-item-label]", host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationItemLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CustomAccountInformationItemLabelComponent, isStandalone: true, selector: "opal-lib-custom-account-information-item-label, [opal-lib-custom-account-information-item-label]", host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationItemLabelComponent, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationItemLabelComponent, decorators: [{
10
10
  type: Component,
11
11
  args: [{ selector: 'opal-lib-custom-account-information-item-label, [opal-lib-custom-account-information-item-label]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
12
12
  }], propDecorators: { hostClass: [{
@@ -3,10 +3,10 @@ import { HostBinding, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class CustomAccountInformationItemValueComponent {
5
5
  hostClass = 'govuk-body govuk-!-font-size-16 govuk-!-margin-0';
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationItemValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: CustomAccountInformationItemValueComponent, isStandalone: true, selector: "opal-lib-custom-account-information-item-value, [opal-lib-custom-account-information-item-value]", host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationItemValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CustomAccountInformationItemValueComponent, isStandalone: true, selector: "opal-lib-custom-account-information-item-value, [opal-lib-custom-account-information-item-value]", host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationItemValueComponent, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationItemValueComponent, decorators: [{
10
10
  type: Component,
11
11
  args: [{ selector: 'opal-lib-custom-account-information-item-value, [opal-lib-custom-account-information-item-value]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
12
12
  }], propDecorators: { hostClass: [{
@@ -6,10 +6,10 @@ class CustomAccountInformationItemComponent {
6
6
  get hostClass() {
7
7
  return this.itemClasses;
8
8
  }
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: CustomAccountInformationItemComponent, isStandalone: true, selector: "opal-lib-custom-account-information-item", inputs: { itemClasses: "itemClasses" }, host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CustomAccountInformationItemComponent, isStandalone: true, selector: "opal-lib-custom-account-information-item", inputs: { itemClasses: "itemClasses" }, host: { properties: { "class": "this.hostClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationItemComponent, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationItemComponent, decorators: [{
13
13
  type: Component,
14
14
  args: [{ selector: 'opal-lib-custom-account-information-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
15
15
  }], propDecorators: { itemClasses: [{
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class CustomAccountInformationComponent {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: CustomAccountInformationComponent, isStandalone: true, selector: "opal-lib-custom-account-information, [opal-lib-custom-account-information]", ngImport: i0, template: "<div class=\"govuk-grid-row\">\n <ng-content></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CustomAccountInformationComponent, isStandalone: true, selector: "opal-lib-custom-account-information, [opal-lib-custom-account-information]", ngImport: i0, template: "<div class=\"govuk-grid-row\">\n <ng-content></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomAccountInformationComponent, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomAccountInformationComponent, decorators: [{
9
9
  type: Component,
10
10
  args: [{ selector: 'opal-lib-custom-account-information, [opal-lib-custom-account-information]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"govuk-grid-row\">\n <ng-content></ng-content>\n</div>\n" }]
11
11
  }] });
@@ -10,10 +10,10 @@ class CustomActionLinksComponent {
10
10
  get hostClass() {
11
11
  return this.classSize;
12
12
  }
13
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomActionLinksComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: CustomActionLinksComponent, isStandalone: true, selector: "opal-lib-custom-action-links", inputs: { id: "id", classSize: "classSize" }, host: { properties: { "attr.id": "this.hostId", "class": "this.hostClass" } }, ngImport: i0, template: "<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible custom-section-break--2px\" />\n<ng-content select=\"[heading]\"></ng-content>\n<ng-content select=\"[links]\"></ng-content>\n" });
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomActionLinksComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CustomActionLinksComponent, isStandalone: true, selector: "opal-lib-custom-action-links", inputs: { id: "id", classSize: "classSize" }, host: { properties: { "attr.id": "this.hostId", "class": "this.hostClass" } }, ngImport: i0, template: "<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible custom-section-break--2px\" />\n<ng-content select=\"[heading]\"></ng-content>\n<ng-content select=\"[links]\"></ng-content>\n" });
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomActionLinksComponent, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomActionLinksComponent, decorators: [{
17
17
  type: Component,
18
18
  args: [{ selector: 'opal-lib-custom-action-links', template: "<hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible custom-section-break--2px\" />\n<ng-content select=\"[heading]\"></ng-content>\n<ng-content select=\"[links]\"></ng-content>\n" }]
19
19
  }], propDecorators: { id: [{
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { Component } from '@angular/core';
3
3
 
4
4
  class CustomHorizontalScrollPaneComponent {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomHorizontalScrollPaneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.14", type: CustomHorizontalScrollPaneComponent, isStandalone: true, selector: "opal-lib-custom-horizontal-scroll-pane", ngImport: i0, template: "<div class=\"custom-horizontal-scroll-pane\">\n <ng-content></ng-content>\n</div>\n", styles: [".custom-horizontal-scroll-pane{overflow-x:auto;overflow-y:hidden;width:100%}\n"] });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomHorizontalScrollPaneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CustomHorizontalScrollPaneComponent, isStandalone: true, selector: "opal-lib-custom-horizontal-scroll-pane", ngImport: i0, template: "<div class=\"custom-horizontal-scroll-pane\">\n <ng-content></ng-content>\n</div>\n", styles: [".custom-horizontal-scroll-pane{overflow-x:auto;overflow-y:hidden;width:100%}\n"] });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: CustomHorizontalScrollPaneComponent, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomHorizontalScrollPaneComponent, decorators: [{
9
9
  type: Component,
10
10
  args: [{ selector: 'opal-lib-custom-horizontal-scroll-pane', template: "<div class=\"custom-horizontal-scroll-pane\">\n <ng-content></ng-content>\n</div>\n", styles: [".custom-horizontal-scroll-pane{overflow-x:auto;overflow-y:hidden;width:100%}\n"] }]
11
11
  }] });