@hmcts/opal-frontend-common 0.0.17 → 0.0.18

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 (454) hide show
  1. package/components/abstract/abstract-form-alias-base/index.d.ts +118 -5
  2. package/components/abstract/abstract-form-alias-base/interfaces/index.d.ts +7 -5
  3. package/components/abstract/abstract-form-array-base/index.d.ts +159 -5
  4. package/components/abstract/abstract-form-array-base/interfaces/index.d.ts +7 -5
  5. package/components/abstract/abstract-form-array-parent-base/index.d.ts +16 -5
  6. package/components/abstract/abstract-form-array-removal-base/index.d.ts +52 -5
  7. package/components/abstract/abstract-form-array-removal-base/interfaces/index.d.ts +7 -5
  8. package/components/abstract/abstract-form-base/index.d.ts +253 -5
  9. package/components/abstract/abstract-form-base/interfaces/index.d.ts +34 -5
  10. package/components/abstract/abstract-form-parent-base/index.d.ts +36 -5
  11. package/components/abstract/abstract-sortable-table/index.d.ts +82 -5
  12. package/components/abstract/abstract-sortable-table/interfaces/index.d.ts +10 -5
  13. package/components/abstract/abstract-sortable-table/types/index.d.ts +5 -5
  14. package/components/abstract/abstract-sortable-table-pagination/index.d.ts +36 -5
  15. package/components/abstract/abstract-tab-data/index.d.ts +86 -5
  16. package/components/abstract/interfaces/index.d.ts +27 -5
  17. package/components/alphagov/alphagov-accessible-autocomplete/index.d.ts +66 -5
  18. package/components/alphagov/alphagov-accessible-autocomplete/interfaces/index.d.ts +6 -5
  19. package/components/govuk/govuk-accordion/index.d.ts +16 -5
  20. package/components/govuk/govuk-back-link/index.d.ts +17 -5
  21. package/components/govuk/govuk-button/index.d.ts +17 -5
  22. package/components/govuk/govuk-cancel-link/index.d.ts +15 -5
  23. package/components/govuk/govuk-checkboxes/index.d.ts +44 -5
  24. package/components/govuk/govuk-checkboxes/interfaces/index.d.ts +18 -5
  25. package/components/govuk/govuk-date-input/index.d.ts +32 -5
  26. package/components/govuk/govuk-date-input/interfaces/index.d.ts +13 -5
  27. package/components/govuk/govuk-details/index.d.ts +9 -5
  28. package/components/govuk/govuk-error-summary/index.d.ts +19 -5
  29. package/components/govuk/govuk-footer/index.d.ts +15 -5
  30. package/components/govuk/govuk-footer/interfaces/index.d.ts +7 -5
  31. package/components/govuk/govuk-header/index.d.ts +26 -5
  32. package/components/govuk/govuk-header/interfaces/index.d.ts +6 -5
  33. package/components/govuk/govuk-heading-with-caption/index.d.ts +12 -5
  34. package/components/govuk/govuk-inset-text/index.d.ts +9 -5
  35. package/components/govuk/govuk-notification-banner/index.d.ts +14 -5
  36. package/components/govuk/govuk-pagination/index.d.ts +47 -5
  37. package/components/govuk/govuk-panel/index.d.ts +10 -5
  38. package/components/govuk/govuk-radio/index.d.ts +47 -5
  39. package/components/govuk/govuk-radio/interfaces/index.d.ts +23 -5
  40. package/components/govuk/govuk-select/index.d.ts +25 -5
  41. package/components/govuk/govuk-select/interfaces/index.d.ts +6 -5
  42. package/components/govuk/govuk-summary-card-list/index.d.ts +31 -5
  43. package/components/govuk/govuk-summary-list/index.d.ts +49 -5
  44. package/components/govuk/govuk-table/index.d.ts +31 -5
  45. package/components/govuk/govuk-tabs/index.d.ts +39 -5
  46. package/components/govuk/govuk-tag/index.d.ts +10 -5
  47. package/components/govuk/govuk-task-list/index.d.ts +18 -5
  48. package/components/govuk/govuk-text-area/index.d.ts +24 -5
  49. package/components/govuk/govuk-text-input/index.d.ts +20 -5
  50. package/components/govuk/govuk-text-input-prefix-suffix/index.d.ts +25 -5
  51. package/components/govuk/helpers/index.d.ts +4 -3
  52. package/components/moj/moj-alert/index.d.ts +47 -0
  53. package/components/moj/moj-badge/index.d.ts +10 -5
  54. package/components/moj/moj-button-menu/index.d.ts +21 -5
  55. package/components/moj/moj-date-picker/index.d.ts +43 -5
  56. package/components/moj/moj-header/index.d.ts +26 -5
  57. package/components/moj/moj-header/interfaces/index.d.ts +6 -5
  58. package/components/moj/moj-notification-badge/index.d.ts +9 -5
  59. package/components/moj/moj-page-header/index.d.ts +9 -5
  60. package/components/moj/moj-pagination/index.d.ts +165 -5
  61. package/components/moj/moj-primary-navigation/index.d.ts +50 -5
  62. package/components/moj/moj-sortable-table/index.d.ts +55 -5
  63. package/components/moj/moj-sub-navigation/index.d.ts +43 -5
  64. package/components/moj/moj-ticket-panel/index.d.ts +11 -5
  65. package/components/moj/moj-timeline/index.d.ts +13 -5
  66. package/constants/index.d.ts +8 -5
  67. package/directives/capitalisation/index.d.ts +17 -5
  68. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-alert.mjs +211 -0
  69. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-alert.mjs.map +1 -0
  70. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.mjs +2 -2
  71. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-sub-navigation.mjs.map +1 -1
  72. package/guards/auth/index.d.ts +7 -5
  73. package/guards/can-deactivate/index.d.ts +10 -5
  74. package/guards/can-deactivate/interfaces/index.d.ts +7 -5
  75. package/guards/can-deactivate/types/index.d.ts +6 -5
  76. package/guards/has-flow-state/index.d.ts +5 -5
  77. package/guards/helpers/index.d.ts +30 -3
  78. package/guards/route-permissions/index.d.ts +5 -5
  79. package/guards/signed-in/index.d.ts +9 -3
  80. package/guards/types/index.d.ts +5 -5
  81. package/index.d.ts +2 -5
  82. package/interceptors/http-error/index.d.ts +5 -5
  83. package/package.json +6 -6
  84. package/pages/index.d.ts +5 -5
  85. package/pages/routing/constants/index.d.ts +7 -5
  86. package/pages/routing/interfaces/index.d.ts +28 -5
  87. package/pipes/date-format/index.d.ts +13 -5
  88. package/pipes/days-ago/index.d.ts +10 -5
  89. package/resolvers/title/index.d.ts +13 -5
  90. package/resolvers/user-state/index.d.ts +8 -3
  91. package/services/app-initializer-service/index.d.ts +28 -5
  92. package/services/app-insights-service/index.d.ts +17 -5
  93. package/services/auth-service/constants/index.d.ts +5 -5
  94. package/services/auth-service/index.d.ts +12 -5
  95. package/services/auth-service/interfaces/index.d.ts +8 -5
  96. package/services/date-service/index.d.ts +147 -5
  97. package/services/launch-darkly-service/index.d.ts +44 -5
  98. package/services/launch-darkly-service/mocks/index.d.ts +17 -5
  99. package/services/permissions-service/index.d.ts +17 -5
  100. package/services/session-service/constants/index.d.ts +5 -5
  101. package/services/session-service/index.d.ts +33 -5
  102. package/services/session-service/interfaces/index.d.ts +27 -5
  103. package/services/session-service/mocks/index.d.ts +7 -5
  104. package/services/sort-service/index.d.ts +67 -5
  105. package/services/sort-service/interfaces/index.d.ts +15 -5
  106. package/services/transfer-state-service/index.d.ts +31 -5
  107. package/services/transfer-state-service/interfaces/index.d.ts +19 -5
  108. package/services/transfer-state-service/mocks/index.d.ts +17 -5
  109. package/services/transformation-service/index.d.ts +33 -5
  110. package/services/transformation-service/interfaces/index.d.ts +8 -5
  111. package/services/utils-service/index.d.ts +88 -5
  112. package/stores/global/index.d.ts +42 -5
  113. package/stores/global/interfaces/index.d.ts +6 -5
  114. package/stores/global/types/index.d.ts +5 -5
  115. package/validators/alphabetical-text/index.d.ts +5 -5
  116. package/validators/amount/index.d.ts +5 -5
  117. package/validators/date-after-year/index.d.ts +5 -5
  118. package/validators/date-before/index.d.ts +5 -5
  119. package/validators/date-of-birth/index.d.ts +5 -5
  120. package/validators/future-date/index.d.ts +5 -5
  121. package/validators/invalid-value/index.d.ts +5 -5
  122. package/validators/national-insurance-number/index.d.ts +5 -5
  123. package/validators/numerical-only/index.d.ts +5 -5
  124. package/validators/optional-max-length/index.d.ts +5 -5
  125. package/validators/optional-valid-date/index.d.ts +5 -5
  126. package/validators/optional-valid-email-address/index.d.ts +5 -5
  127. package/validators/optional-valid-telephone/index.d.ts +5 -5
  128. package/validators/over-eighteen/index.d.ts +15 -3
  129. package/validators/past-date/index.d.ts +5 -5
  130. package/validators/special-characters/index.d.ts +5 -5
  131. package/validators/two-decimal-places/index.d.ts +5 -5
  132. package/validators/valid-value/index.d.ts +5 -5
  133. package/components/abstract/abstract-form-alias-base/abstract-form-alias-base.component.d.ts +0 -115
  134. package/components/abstract/abstract-form-alias-base/interfaces/abstract-form-alias-base-alias-controls.interface.d.ts +0 -4
  135. package/components/abstract/abstract-form-alias-base/interfaces/public-api.d.ts +0 -1
  136. package/components/abstract/abstract-form-alias-base/public-api.d.ts +0 -1
  137. package/components/abstract/abstract-form-array-base/abstract-form-array-base.component.d.ts +0 -156
  138. package/components/abstract/abstract-form-array-base/interfaces/abstract-form-array-base-form-array-controls.interface.d.ts +0 -4
  139. package/components/abstract/abstract-form-array-base/interfaces/public-api.d.ts +0 -1
  140. package/components/abstract/abstract-form-array-base/public-api.d.ts +0 -1
  141. package/components/abstract/abstract-form-array-parent-base/abstract-form-array-parent-base.component.d.ts +0 -13
  142. package/components/abstract/abstract-form-array-parent-base/public-api.d.ts +0 -1
  143. package/components/abstract/abstract-form-array-removal-base/abstract-form-array-removal-base.component.d.ts +0 -44
  144. package/components/abstract/abstract-form-array-removal-base/interfaces/abstract-form-array-removal-base-control-value.interface.d.ts +0 -5
  145. package/components/abstract/abstract-form-array-removal-base/interfaces/public-api.d.ts +0 -1
  146. package/components/abstract/abstract-form-array-removal-base/public-api.d.ts +0 -1
  147. package/components/abstract/abstract-form-base/abstract-form-base.component.d.ts +0 -230
  148. package/components/abstract/abstract-form-base/interfaces/abstract-form-base-field-error.interface.d.ts +0 -6
  149. package/components/abstract/abstract-form-base/interfaces/abstract-form-base-field-errors.interface.d.ts +0 -4
  150. package/components/abstract/abstract-form-base/interfaces/abstract-form-base-form-error.interface.d.ts +0 -6
  151. package/components/abstract/abstract-form-base/interfaces/abstract-form-base-form.interface.d.ts +0 -4
  152. package/components/abstract/abstract-form-base/interfaces/abstract-form-base-high-priority-form-error.interface.d.ts +0 -5
  153. package/components/abstract/abstract-form-base/interfaces/abstract-form-base-status.interface.d.ts +0 -3
  154. package/components/abstract/abstract-form-base/interfaces/public-api.d.ts +0 -6
  155. package/components/abstract/abstract-form-base/public-api.d.ts +0 -1
  156. package/components/abstract/abstract-form-parent-base/abstract-form-parent-base.component.d.ts +0 -33
  157. package/components/abstract/abstract-form-parent-base/public-api.d.ts +0 -1
  158. package/components/abstract/abstract-sortable-table/abstract-sortable-table.component.d.ts +0 -79
  159. package/components/abstract/abstract-sortable-table/interfaces/abstract-sortable-table.interfaces.d.ts +0 -7
  160. package/components/abstract/abstract-sortable-table/interfaces/public-api.d.ts +0 -1
  161. package/components/abstract/abstract-sortable-table/public-api.d.ts +0 -1
  162. package/components/abstract/abstract-sortable-table/types/abstract-sortable-table-sort-direction.type.d.ts +0 -1
  163. package/components/abstract/abstract-sortable-table/types/abstract-sortable-table-sortable-values.type.d.ts +0 -1
  164. package/components/abstract/abstract-sortable-table/types/public-api.d.ts +0 -2
  165. package/components/abstract/abstract-sortable-table-pagination/abstract-sortable-table-pagination.component.d.ts +0 -31
  166. package/components/abstract/abstract-sortable-table-pagination/public-api.d.ts +0 -1
  167. package/components/abstract/abstract-tab-data/abstract-tab-data.d.ts +0 -83
  168. package/components/abstract/abstract-tab-data/public-api.d.ts +0 -1
  169. package/components/abstract/interfaces/abstract-form-array-control-validation.interface.d.ts +0 -5
  170. package/components/abstract/interfaces/abstract-form-array-control.interface.d.ts +0 -5
  171. package/components/abstract/interfaces/abstract-form-array-controls.interface.d.ts +0 -4
  172. package/components/abstract/interfaces/abstract-form-base-form-error-summary-message.interface.d.ts +0 -4
  173. package/components/abstract/interfaces/abstract-form-control-error-message.interface.d.ts +0 -3
  174. package/components/abstract/interfaces/public-api.d.ts +0 -6
  175. package/components/alphagov/alphagov-accessible-autocomplete/alphagov-accessible-autocomplete.component.d.ts +0 -59
  176. package/components/alphagov/alphagov-accessible-autocomplete/interfaces/alphagov-accessible-autocomplete-item.interface.d.ts +0 -4
  177. package/components/alphagov/alphagov-accessible-autocomplete/interfaces/public-api.d.ts +0 -1
  178. package/components/alphagov/alphagov-accessible-autocomplete/public-api.d.ts +0 -1
  179. package/components/govuk/govuk-accordion/govuk-accordion.component.d.ts +0 -13
  180. package/components/govuk/govuk-accordion/public-api.d.ts +0 -1
  181. package/components/govuk/govuk-back-link/govuk-back-link.component.d.ts +0 -14
  182. package/components/govuk/govuk-back-link/public-api.d.ts +0 -1
  183. package/components/govuk/govuk-button/govuk-button.component.d.ts +0 -14
  184. package/components/govuk/govuk-button/public-api.d.ts +0 -1
  185. package/components/govuk/govuk-cancel-link/govuk-cancel-link.component.d.ts +0 -12
  186. package/components/govuk/govuk-cancel-link/public-api.d.ts +0 -1
  187. package/components/govuk/govuk-checkboxes/govuk-checkboxes-conditional/govuk-checkboxes-conditional.component.d.ts +0 -10
  188. package/components/govuk/govuk-checkboxes/govuk-checkboxes-divider/govuk-checkboxes-divider.component.d.ts +0 -5
  189. package/components/govuk/govuk-checkboxes/govuk-checkboxes-item/govuk-checkboxes-item.component.d.ts +0 -16
  190. package/components/govuk/govuk-checkboxes/govuk-checkboxes.component.d.ts +0 -10
  191. package/components/govuk/govuk-checkboxes/interfaces/govuk-checkboxes-input.interface.d.ts +0 -17
  192. package/components/govuk/govuk-checkboxes/interfaces/public-api.d.ts +0 -1
  193. package/components/govuk/govuk-checkboxes/public-api.d.ts +0 -4
  194. package/components/govuk/govuk-date-input/govuk-date-input.component.d.ts +0 -18
  195. package/components/govuk/govuk-date-input/interfaces/govuk-date-input.interface.d.ts +0 -12
  196. package/components/govuk/govuk-date-input/interfaces/public-api.d.ts +0 -1
  197. package/components/govuk/govuk-date-input/public-api.d.ts +0 -1
  198. package/components/govuk/govuk-details/govuk-details.component.d.ts +0 -6
  199. package/components/govuk/govuk-details/public-api.d.ts +0 -1
  200. package/components/govuk/govuk-error-summary/govuk-error-summary.component.d.ts +0 -16
  201. package/components/govuk/govuk-error-summary/public-api.d.ts +0 -1
  202. package/components/govuk/govuk-footer/govuk-footer.component.d.ts +0 -7
  203. package/components/govuk/govuk-footer/interfaces/govuk-footer-links.interface.d.ts +0 -5
  204. package/components/govuk/govuk-footer/interfaces/public-api.d.ts +0 -1
  205. package/components/govuk/govuk-footer/public-api.d.ts +0 -1
  206. package/components/govuk/govuk-header/govuk-header-navigation-item/govuk-header-navigation-item.component.d.ts +0 -12
  207. package/components/govuk/govuk-header/govuk-header.component.d.ts +0 -7
  208. package/components/govuk/govuk-header/interfaces/govuk-header-links.interface.d.ts +0 -4
  209. package/components/govuk/govuk-header/interfaces/public-api.d.ts +0 -1
  210. package/components/govuk/govuk-header/public-api.d.ts +0 -2
  211. package/components/govuk/govuk-heading-with-caption/govuk-heading-with-caption.component.d.ts +0 -9
  212. package/components/govuk/govuk-heading-with-caption/public-api.d.ts +0 -1
  213. package/components/govuk/govuk-inset-text/govuk-inset-text.component.d.ts +0 -6
  214. package/components/govuk/govuk-inset-text/public-api.d.ts +0 -1
  215. package/components/govuk/govuk-notification-banner/govuk-notification-banner.component.d.ts +0 -10
  216. package/components/govuk/govuk-notification-banner/public-api.d.ts +0 -1
  217. package/components/govuk/govuk-pagination/govuk-pagination.component.d.ts +0 -44
  218. package/components/govuk/govuk-pagination/public-api.d.ts +0 -1
  219. package/components/govuk/govuk-panel/govuk-panel.component.d.ts +0 -7
  220. package/components/govuk/govuk-panel/public-api.d.ts +0 -1
  221. package/components/govuk/govuk-radio/govuk-radio.component.d.ts +0 -11
  222. package/components/govuk/govuk-radio/govuk-radios-conditional/govuk-radios-conditional.component.d.ts +0 -10
  223. package/components/govuk/govuk-radio/govuk-radios-divider/govuk-radios-divider.component.d.ts +0 -5
  224. package/components/govuk/govuk-radio/govuk-radios-item/govuk-radios-item.component.d.ts +0 -18
  225. package/components/govuk/govuk-radio/interfaces/govuk-radio-input.interface.d.ts +0 -17
  226. package/components/govuk/govuk-radio/interfaces/govuk-radio-options.interface.d.ts +0 -4
  227. package/components/govuk/govuk-radio/interfaces/public-api.d.ts +0 -2
  228. package/components/govuk/govuk-radio/public-api.d.ts +0 -4
  229. package/components/govuk/govuk-select/govuk-select.component.d.ts +0 -18
  230. package/components/govuk/govuk-select/interfaces/govuk-select-options.interface.d.ts +0 -4
  231. package/components/govuk/govuk-select/interfaces/public-api.d.ts +0 -1
  232. package/components/govuk/govuk-select/public-api.d.ts +0 -1
  233. package/components/govuk/govuk-summary-card-list/govuk-summary-card-action/govuk-summary-card-action.component.d.ts +0 -17
  234. package/components/govuk/govuk-summary-card-list/govuk-summary-card-list.component.d.ts +0 -12
  235. package/components/govuk/govuk-summary-card-list/public-api.d.ts +0 -2
  236. package/components/govuk/govuk-summary-list/govuk-summary-list-row/govuk-summary-list-row-actions/govuk-summary-list-row-action-item/govuk-summary-list-row-action-item.component.d.ts +0 -15
  237. package/components/govuk/govuk-summary-list/govuk-summary-list-row/govuk-summary-list-row-actions/govuk-summary-list-row-actions.component.d.ts +0 -5
  238. package/components/govuk/govuk-summary-list/govuk-summary-list-row/govuk-summary-list-row.component.d.ts +0 -20
  239. package/components/govuk/govuk-summary-list/govuk-summary-list.component.d.ts +0 -7
  240. package/components/govuk/govuk-summary-list/public-api.d.ts +0 -4
  241. package/components/govuk/govuk-table/govuk-table-body-row/govuk-table-body-row-data/govuk-table-body-row-data.component.d.ts +0 -8
  242. package/components/govuk/govuk-table/govuk-table-body-row/govuk-table-body-row.component.d.ts +0 -7
  243. package/components/govuk/govuk-table/govuk-table-heading/govuk-table-heading.component.d.ts +0 -7
  244. package/components/govuk/govuk-table/govuk-table.component.d.ts +0 -6
  245. package/components/govuk/govuk-table/public-api.d.ts +0 -4
  246. package/components/govuk/govuk-tabs/govuk-tab-list-item/govuk-tab-list-item.component.d.ts +0 -13
  247. package/components/govuk/govuk-tabs/govuk-tab-panel/govuk-tab-panel.component.d.ts +0 -9
  248. package/components/govuk/govuk-tabs/govuk-tabs.component.d.ts +0 -14
  249. package/components/govuk/govuk-tabs/public-api.d.ts +0 -3
  250. package/components/govuk/govuk-tag/govuk-tag.component.d.ts +0 -7
  251. package/components/govuk/govuk-tag/public-api.d.ts +0 -1
  252. package/components/govuk/govuk-task-list/govuk-task-list-item/govuk-task-list-item.component.d.ts +0 -8
  253. package/components/govuk/govuk-task-list/govuk-task-list.component.d.ts +0 -7
  254. package/components/govuk/govuk-task-list/public-api.d.ts +0 -2
  255. package/components/govuk/govuk-text-area/govuk-text-area.component.d.ts +0 -21
  256. package/components/govuk/govuk-text-area/public-api.d.ts +0 -1
  257. package/components/govuk/govuk-text-input/govuk-text-input.component.d.ts +0 -17
  258. package/components/govuk/govuk-text-input/public-api.d.ts +0 -1
  259. package/components/govuk/govuk-text-input-prefix-suffix/govuk-text-input-prefix-suffix.component.d.ts +0 -22
  260. package/components/govuk/govuk-text-input-prefix-suffix/public-api.d.ts +0 -1
  261. package/components/govuk/helpers/add-gds-body-class.d.ts +0 -4
  262. package/components/govuk/helpers/public-api.d.ts +0 -1
  263. package/components/moj/moj-badge/moj.badge.component.d.ts +0 -7
  264. package/components/moj/moj-badge/public-api.d.ts +0 -1
  265. package/components/moj/moj-banner/index.d.ts +0 -5
  266. package/components/moj/moj-banner/moj-banner.component.d.ts +0 -8
  267. package/components/moj/moj-banner/public-api.d.ts +0 -1
  268. package/components/moj/moj-button-menu/moj-button-menu-item/moj-button-menu-item.component.d.ts +0 -8
  269. package/components/moj/moj-button-menu/moj-button-menu.component.d.ts +0 -10
  270. package/components/moj/moj-button-menu/public-api.d.ts +0 -2
  271. package/components/moj/moj-date-picker/moj-date-picker.component.d.ts +0 -40
  272. package/components/moj/moj-date-picker/public-api.d.ts +0 -1
  273. package/components/moj/moj-header/interfaces/moj-header-links.interface.d.ts +0 -4
  274. package/components/moj/moj-header/interfaces/public-api.d.ts +0 -1
  275. package/components/moj/moj-header/moj-header-navigation-item/moj-header-navigation-item.component.d.ts +0 -12
  276. package/components/moj/moj-header/moj-header.component.d.ts +0 -7
  277. package/components/moj/moj-header/public-api.d.ts +0 -2
  278. package/components/moj/moj-notification-badge/moj-notification-badge.component.d.ts +0 -6
  279. package/components/moj/moj-notification-badge/public-api.d.ts +0 -1
  280. package/components/moj/moj-page-header/moj-page-header.component.d.ts +0 -6
  281. package/components/moj/moj-page-header/public-api.d.ts +0 -1
  282. package/components/moj/moj-pagination/moj-pagination-item/moj-pagination-item.component.d.ts +0 -6
  283. package/components/moj/moj-pagination/moj-pagination-link/moj-pagination-link.component.d.ts +0 -43
  284. package/components/moj/moj-pagination/moj-pagination-list/moj-pagination-list.component.d.ts +0 -6
  285. package/components/moj/moj-pagination/moj-pagination.component.d.ts +0 -108
  286. package/components/moj/moj-pagination/public-api.d.ts +0 -4
  287. package/components/moj/moj-primary-navigation/moj-primary-navigation-item/moj-primary-navigation-item.component.d.ts +0 -21
  288. package/components/moj/moj-primary-navigation/moj-primary-navigation.component.d.ts +0 -26
  289. package/components/moj/moj-primary-navigation/public-api.d.ts +0 -2
  290. package/components/moj/moj-sortable-table/moj-sortable-table-header/directive/constants/moj-sortable-table-header-sort-icons.constant.d.ts +0 -5
  291. package/components/moj/moj-sortable-table/moj-sortable-table-header/directive/moj-sortable-table-header-sort-icon.directive.d.ts +0 -18
  292. package/components/moj/moj-sortable-table/moj-sortable-table-header/moj-sortable-table-header.component.d.ts +0 -24
  293. package/components/moj/moj-sortable-table/moj-sortable-table-row/moj-sortable-table-row-data/moj-sortable-table-row-data.component.d.ts +0 -8
  294. package/components/moj/moj-sortable-table/moj-sortable-table-row/moj-sortable-table-row.component.d.ts +0 -7
  295. package/components/moj/moj-sortable-table/moj-sortable-table-status/moj-sortable-table-status.component.d.ts +0 -7
  296. package/components/moj/moj-sortable-table/moj-sortable-table.component.d.ts +0 -6
  297. package/components/moj/moj-sortable-table/public-api.d.ts +0 -5
  298. package/components/moj/moj-sub-navigation/moj-sub-navigation-item/moj-sub-navigation-item.component.d.ts +0 -19
  299. package/components/moj/moj-sub-navigation/moj-sub-navigation.component.d.ts +0 -21
  300. package/components/moj/moj-sub-navigation/public-api.d.ts +0 -2
  301. package/components/moj/moj-ticket-panel/moj-ticket-panel.component.d.ts +0 -8
  302. package/components/moj/moj-ticket-panel/public-api.d.ts +0 -1
  303. package/components/moj/moj-timeline/moj-timeline-item/moj-timeline-item.component.d.ts +0 -5
  304. package/components/moj/moj-timeline/moj-timeline.component.d.ts +0 -5
  305. package/components/moj/moj-timeline/public-api.d.ts +0 -2
  306. package/constants/public-api.d.ts +0 -2
  307. package/constants/src/footer-links.constant.d.ts +0 -2
  308. package/constants/src/header-links.constant.d.ts +0 -2
  309. package/directives/capitalisation/capitalisation.directive.d.ts +0 -14
  310. package/directives/capitalisation/public-api.d.ts +0 -1
  311. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-banner.mjs +0 -26
  312. package/fesm2022/hmcts-opal-frontend-common-components-moj-moj-banner.mjs.map +0 -1
  313. package/guards/auth/auth.guard.d.ts +0 -4
  314. package/guards/auth/public-api.d.ts +0 -1
  315. package/guards/can-deactivate/can-deactivate.guard.d.ts +0 -3
  316. package/guards/can-deactivate/interfaces/can-deactivate-can-component-deactivate.interface.d.ts +0 -4
  317. package/guards/can-deactivate/interfaces/public-api.d.ts +0 -1
  318. package/guards/can-deactivate/public-api.d.ts +0 -1
  319. package/guards/can-deactivate/types/can-deactivate.type.d.ts +0 -3
  320. package/guards/can-deactivate/types/public-api.d.ts +0 -1
  321. package/guards/has-flow-state/has-flow-state.guard.d.ts +0 -2
  322. package/guards/has-flow-state/public-api.d.ts +0 -1
  323. package/guards/helpers/get-guard-with-dummy-url.d.ts +0 -12
  324. package/guards/helpers/handle-observable-result.d.ts +0 -8
  325. package/guards/helpers/public-api.d.ts +0 -4
  326. package/guards/helpers/run-auth-guard-with-context.d.ts +0 -9
  327. package/guards/helpers/run-has-flow-state-guard-with-context.d.ts +0 -3
  328. package/guards/route-permissions/public-api.d.ts +0 -1
  329. package/guards/route-permissions/route-permissions.guard.d.ts +0 -2
  330. package/guards/signed-in/public-api.d.ts +0 -1
  331. package/guards/signed-in/signed-in.guard.d.ts +0 -8
  332. package/guards/types/guard-return.type.d.ts +0 -2
  333. package/guards/types/public-api.d.ts +0 -1
  334. package/interceptors/http-error/constants/http-error-message.constant.d.ts +0 -1
  335. package/interceptors/http-error/http-error.interceptor.d.ts +0 -2
  336. package/interceptors/http-error/public-api.d.ts +0 -1
  337. package/pages/access-denied/access-denied.component.d.ts +0 -7
  338. package/pages/public-api.d.ts +0 -1
  339. package/pages/routing/constants/public-api.d.ts +0 -2
  340. package/pages/routing/constants/routing-paths.constant.d.ts +0 -2
  341. package/pages/routing/constants/routing-titles.constant.d.ts +0 -2
  342. package/pages/routing/interfaces/child-routing-paths.interface.d.ts +0 -6
  343. package/pages/routing/interfaces/nested-routes.interface.d.ts +0 -4
  344. package/pages/routing/interfaces/parent-routing-paths.interface.d.ts +0 -7
  345. package/pages/routing/interfaces/public-api.d.ts +0 -4
  346. package/pages/routing/interfaces/routing-paths.interface.d.ts +0 -8
  347. package/pages/routing/pages.routes.d.ts +0 -2
  348. package/pages/sign-in/interfaces/index.d.ts +0 -2
  349. package/pages/sign-in/interfaces/sign-in-stub-form.interface.d.ts +0 -3
  350. package/pages/sign-in/sign-in-stub/sign-in-stub.component.d.ts +0 -19
  351. package/pages/sign-in/sign-in.component.d.ts +0 -47
  352. package/pipes/date-format/date-format.pipe.d.ts +0 -10
  353. package/pipes/date-format/public-api.d.ts +0 -1
  354. package/pipes/days-ago/days-ago.pipe.d.ts +0 -7
  355. package/pipes/days-ago/public-api.d.ts +0 -1
  356. package/public-api.d.ts +0 -1
  357. package/resolvers/title/public-api.d.ts +0 -1
  358. package/resolvers/title/title.resolver.d.ts +0 -10
  359. package/resolvers/user-state/public-api.d.ts +0 -1
  360. package/resolvers/user-state/user-state.resolver.d.ts +0 -7
  361. package/services/app-initializer-service/app-initializer.service.d.ts +0 -25
  362. package/services/app-initializer-service/public-api.d.ts +0 -1
  363. package/services/app-insights-service/app-insights.service.d.ts +0 -14
  364. package/services/app-insights-service/public-api.d.ts +0 -1
  365. package/services/auth-service/auth.service.d.ts +0 -8
  366. package/services/auth-service/constants/public-api.d.ts +0 -1
  367. package/services/auth-service/constants/sso-endpoints.constant.d.ts +0 -2
  368. package/services/auth-service/interfaces/public-api.d.ts +0 -1
  369. package/services/auth-service/interfaces/sso-endpoints.interface.d.ts +0 -6
  370. package/services/auth-service/public-api.d.ts +0 -1
  371. package/services/date-service/date.service.d.ts +0 -140
  372. package/services/date-service/interfaces/date.service.interface.d.ts +0 -4
  373. package/services/date-service/public-api.d.ts +0 -1
  374. package/services/launch-darkly-service/launch-darkly.service.d.ts +0 -41
  375. package/services/launch-darkly-service/mocks/launch-darkly-change-flags.mock.d.ts +0 -10
  376. package/services/launch-darkly-service/mocks/launch-darkly-flags.mock.d.ts +0 -4
  377. package/services/launch-darkly-service/mocks/public-api.d.ts +0 -2
  378. package/services/launch-darkly-service/public-api.d.ts +0 -1
  379. package/services/permissions-service/permissions.service.d.ts +0 -14
  380. package/services/permissions-service/public-api.d.ts +0 -1
  381. package/services/session-service/constants/public-api.d.ts +0 -1
  382. package/services/session-service/constants/session-endpoints.constant.d.ts +0 -2
  383. package/services/session-service/interfaces/public-api.d.ts +0 -3
  384. package/services/session-service/interfaces/session-endpoints.interface.d.ts +0 -4
  385. package/services/session-service/interfaces/session-token-expiry.interface.d.ts +0 -4
  386. package/services/session-service/interfaces/session-user-state.interface.d.ts +0 -15
  387. package/services/session-service/mocks/public-api.d.ts +0 -2
  388. package/services/session-service/mocks/session-token-expiry.mock.d.ts +0 -2
  389. package/services/session-service/mocks/session-user-state.mock.d.ts +0 -2
  390. package/services/session-service/public-api.d.ts +0 -1
  391. package/services/session-service/session.service.d.ts +0 -30
  392. package/services/sort-service/interfaces/public-api.d.ts +0 -2
  393. package/services/sort-service/interfaces/sort-service-values.interface.d.ts +0 -7
  394. package/services/sort-service/interfaces/sort-service.interface.d.ts +0 -4
  395. package/services/sort-service/public-api.d.ts +0 -1
  396. package/services/sort-service/sort.service.d.ts +0 -64
  397. package/services/transfer-state-service/interfaces/public-api.d.ts +0 -3
  398. package/services/transfer-state-service/interfaces/transfer-state-app-insights-config.interface.d.ts +0 -5
  399. package/services/transfer-state-service/interfaces/transfer-state-launch-darkly-config.interface.d.ts +0 -5
  400. package/services/transfer-state-service/interfaces/transfer-state-server-state.interface.d.ts +0 -7
  401. package/services/transfer-state-service/mocks/public-api.d.ts +0 -3
  402. package/services/transfer-state-service/mocks/transfer-state-app-insights-config.mock.d.ts +0 -5
  403. package/services/transfer-state-service/mocks/transfer-state-launch-darkly-config.mock.d.ts +0 -5
  404. package/services/transfer-state-service/mocks/transfer-state.mock.d.ts +0 -2
  405. package/services/transfer-state-service/public-api.d.ts +0 -1
  406. package/services/transfer-state-service/transfer-state.service.d.ts +0 -28
  407. package/services/transformation-service/interfaces/public-api.d.ts +0 -1
  408. package/services/transformation-service/interfaces/transform-item.interface.d.ts +0 -6
  409. package/services/transformation-service/public-api.d.ts +0 -1
  410. package/services/transformation-service/transformation.service.d.ts +0 -30
  411. package/services/utils-service/public-api.d.ts +0 -1
  412. package/services/utils-service/utils.service.d.ts +0 -85
  413. package/stores/global/global.store.d.ts +0 -37
  414. package/stores/global/interfaces/error-state.interface.d.ts +0 -4
  415. package/stores/global/interfaces/public-api.d.ts +0 -1
  416. package/stores/global/public-api.d.ts +0 -1
  417. package/stores/global/types/global-store.type.d.ts +0 -2
  418. package/stores/global/types/public-api.d.ts +0 -1
  419. package/validators/alphabetical-text/alphabetical-text.validator.d.ts +0 -2
  420. package/validators/alphabetical-text/public-api.d.ts +0 -1
  421. package/validators/amount/amount.validator.d.ts +0 -2
  422. package/validators/amount/public-api.d.ts +0 -1
  423. package/validators/date-after-year/date-after-year.validator.d.ts +0 -2
  424. package/validators/date-after-year/public-api.d.ts +0 -1
  425. package/validators/date-before/date-before.validator.d.ts +0 -2
  426. package/validators/date-before/public-api.d.ts +0 -1
  427. package/validators/date-of-birth/date-of-birth.validator.d.ts +0 -2
  428. package/validators/date-of-birth/public-api.d.ts +0 -1
  429. package/validators/future-date/future-date.validator.d.ts +0 -2
  430. package/validators/future-date/public-api.d.ts +0 -1
  431. package/validators/invalid-value/invalid-value.validator.d.ts +0 -2
  432. package/validators/invalid-value/public-api.d.ts +0 -1
  433. package/validators/national-insurance-number/national-insurance-number.validator.d.ts +0 -2
  434. package/validators/national-insurance-number/public-api.d.ts +0 -1
  435. package/validators/numerical-only/numerical-only.validator.d.ts +0 -2
  436. package/validators/numerical-only/public-api.d.ts +0 -1
  437. package/validators/optional-max-length/optional-max-length.validator.d.ts +0 -2
  438. package/validators/optional-max-length/public-api.d.ts +0 -1
  439. package/validators/optional-valid-date/optional-valid-date.validator.d.ts +0 -2
  440. package/validators/optional-valid-date/public-api.d.ts +0 -1
  441. package/validators/optional-valid-email-address/optional-valid-email-address.validator.d.ts +0 -2
  442. package/validators/optional-valid-email-address/public-api.d.ts +0 -1
  443. package/validators/optional-valid-telephone/optional-valid-telephone.validator.d.ts +0 -2
  444. package/validators/optional-valid-telephone/public-api.d.ts +0 -1
  445. package/validators/over-eighteen/over-eighteen.validator.d.ts +0 -14
  446. package/validators/over-eighteen/public-api.d.ts +0 -1
  447. package/validators/past-date/past-date.validator.d.ts +0 -2
  448. package/validators/past-date/public-api.d.ts +0 -1
  449. package/validators/special-characters/public-api.d.ts +0 -1
  450. package/validators/special-characters/special-characters.validator.d.ts +0 -2
  451. package/validators/two-decimal-places/public-api.d.ts +0 -1
  452. package/validators/two-decimal-places/two-decimal-places.validator.d.ts +0 -2
  453. package/validators/valid-value/public-api.d.ts +0 -1
  454. package/validators/valid-value/valid-value.validator.d.ts +0 -2
@@ -1,5 +1,34 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-form-base/interfaces" />
5
- export * from './public-api';
1
+ interface IAbstractFormBaseFieldError {
2
+ [key: string]: {
3
+ message: string;
4
+ priority: number;
5
+ };
6
+ }
7
+
8
+ interface IAbstractFormBaseFieldErrors {
9
+ [key: string]: IAbstractFormBaseFieldError;
10
+ }
11
+
12
+ interface IAbstractFormBaseFormError {
13
+ fieldId: string;
14
+ message: string | null;
15
+ priority: number;
16
+ type: string | null;
17
+ }
18
+
19
+ interface IAbstractFormBaseForm<T> {
20
+ formData: T;
21
+ nestedFlow: boolean;
22
+ }
23
+
24
+ interface IAbstractFormBaseHighPriorityFormError {
25
+ message: string;
26
+ priority: number;
27
+ type: string;
28
+ }
29
+
30
+ interface IAbstractFormBaseStatus {
31
+ [key: string]: string;
32
+ }
33
+
34
+ export type { IAbstractFormBaseFieldError, IAbstractFormBaseFieldErrors, IAbstractFormBaseForm, IAbstractFormBaseFormError, IAbstractFormBaseHighPriorityFormError, IAbstractFormBaseStatus };
@@ -1,5 +1,36 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-form-parent-base" />
5
- export * from './public-api';
1
+ import { CanDeactivateTypes } from '@hmcts/opal-frontend-common/guards/can-deactivate/types';
2
+
3
+ declare abstract class AbstractFormParentBaseComponent {
4
+ private readonly router;
5
+ private readonly activatedRoute;
6
+ stateUnsavedChanges: boolean;
7
+ /**
8
+ * If the user navigates externally from the site or closes the tab
9
+ * Check if there is unsaved changes form state -> warning message
10
+ * Otherwise -> no warning message
11
+ *
12
+ * @returns boolean
13
+ */
14
+ canDeactivate(): CanDeactivateTypes;
15
+ /**
16
+ * Navigates to a specified route using the Angular Router.
17
+ *
18
+ * @param route - The target route to navigate to.
19
+ * @param nonRelative - A boolean indicating whether the navigation should be absolute (true)
20
+ * or relative to the current route (false). Defaults to false.
21
+ * @param event - (Optional) The event object, typically from a click event, to prevent its default behavior.
22
+ * @param routeData - (Optional) Additional data to pass to the target route's state.
23
+ */
24
+ protected routerNavigate(route: string, nonRelative?: boolean, event?: Event, routeData?: any): void;
25
+ /**
26
+ * Checks if an object has any non-empty values.
27
+ *
28
+ * @param form - The object representing form data with key-value pairs.
29
+ * @returns A boolean indicating whether the object has any non-empty values.
30
+ */
31
+ protected hasFormValues(form: {
32
+ [key: string]: any;
33
+ }): boolean;
34
+ }
35
+
36
+ export { AbstractFormParentBaseComponent };
@@ -1,5 +1,82 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table" />
5
- export * from './public-api';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, EventEmitter } from '@angular/core';
3
+ import { IAbstractTableData, IAbstractSortState } from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/interfaces';
4
+ import { SortableValuesType, SortDirectionType } from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/types';
5
+
6
+ declare abstract class AbstractSortableTableComponent implements OnInit {
7
+ private readonly sortService;
8
+ abstractTableDataSignal: _angular_core.WritableSignal<IAbstractTableData<SortableValuesType>[]>;
9
+ abstractExistingSortState: IAbstractSortState | null;
10
+ sortStateSignal: _angular_core.WritableSignal<IAbstractSortState>;
11
+ sortedColumnTitleSignal: _angular_core.WritableSignal<string>;
12
+ sortedColumnDirectionSignal: _angular_core.WritableSignal<SortDirectionType>;
13
+ abstractSortState: EventEmitter<IAbstractSortState>;
14
+ /**
15
+ * Creates an initial sort state for a table based on the provided table data.
16
+ *
17
+ * @param tableData - Array of table data objects representing table rows.
18
+ * @returns Initial sort state object with column names as keys and 'none' as values.
19
+ */
20
+ private createSortState;
21
+ /**
22
+ * Initializes the sort state for the sortable table component.
23
+ *
24
+ * This method sets the initial sort state based on the existing sort state or creates a new one
25
+ * if none exists. It then updates the sort state signal with the initial sort state.
26
+ *
27
+ * If an existing sort state is found, it iterates over each entry and triggers the sort change
28
+ * for each key that has a sort type other than 'none'.
29
+ *
30
+ * @private
31
+ * @returns {void}
32
+ */
33
+ private initialiseSortState;
34
+ /**
35
+ * Updates the sort state for a given column key and sort type.
36
+ * Resets the sort state for all other columns to 'none'.
37
+ *
38
+ * @param key - The column to sort by.
39
+ * @param sortType - Sorting order ('ascending' or 'descending').
40
+ */
41
+ private updateSortState;
42
+ /**
43
+ * Retrieves the sorted table data based on the specified key and sort type.
44
+ *
45
+ * @param key - The key of the property to sort by.
46
+ * @param sortType - The type of sorting to apply, either 'ascending' or 'descending'.
47
+ * @returns An array of sorted table data objects.
48
+ */
49
+ private getSortedTableData;
50
+ /**
51
+ * Determines the first column with a sort state other than 'none' and updates the sorted column signals accordingly.
52
+ *
53
+ * - If a sorted column is found, updates the `sortedColumnTitleSignal` and `sortedColumnDirectionSignal` with the column key and state.
54
+ * - If no sorted column is found, sets the `sortedColumnTitleSignal` to an empty string and `sortedColumnDirectionSignal` to 'none'.
55
+ *
56
+ * @private
57
+ * @returns {void}
58
+ */
59
+ private getSortedColumn;
60
+ /**
61
+ * Handles the change in sorting for the table.
62
+ *
63
+ * @param event - An object containing the key to sort by and the sort type.
64
+ * @param event.key - The key of the column to sort.
65
+ * @param event.sortType - The type of sorting to apply ('ascending' or 'descending').
66
+ *
67
+ * This method updates the sort state, sorts the table data based on the provided key and sort type,
68
+ * updates the table data signal, and emits the updated sort state.
69
+ */
70
+ protected onSortChange(event: {
71
+ key: string;
72
+ sortType: 'ascending' | 'descending';
73
+ }): void;
74
+ /**
75
+ * Lifecycle hook to initialise the sort state.
76
+ */
77
+ ngOnInit(): void;
78
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractSortableTableComponent, never>;
79
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AbstractSortableTableComponent, "ng-component", never, {}, { "abstractSortState": "abstractSortState"; }, never, never, true, never>;
80
+ }
81
+
82
+ export { AbstractSortableTableComponent };
@@ -1,5 +1,10 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/interfaces" />
5
- export * from './public-api';
1
+ import { SortDirectionType, SortableValuesType } from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/types';
2
+
3
+ interface IAbstractSortState {
4
+ [key: string]: SortDirectionType;
5
+ }
6
+ interface IAbstractTableData<T extends SortableValuesType> {
7
+ [key: string]: T;
8
+ }
9
+
10
+ export type { IAbstractSortState, IAbstractTableData };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/types" />
5
- export * from './public-api';
1
+ type SortDirectionType = 'ascending' | 'descending' | 'none';
2
+
3
+ type SortableValuesType = string | number | boolean | null;
4
+
5
+ export type { SortDirectionType, SortableValuesType };
@@ -1,5 +1,36 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table-pagination" />
5
- export * from './public-api';
1
+ import * as _hmcts_opal_frontend_common_components_abstract_abstract_sortable_table_interfaces from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/interfaces';
2
+ import * as _hmcts_opal_frontend_common_components_abstract_abstract_sortable_table_types from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/types';
3
+ import * as _angular_core from '@angular/core';
4
+ import { AbstractSortableTableComponent } from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table';
5
+
6
+ declare abstract class AbstractSortableTablePaginationComponent extends AbstractSortableTableComponent {
7
+ currentPageSignal: _angular_core.WritableSignal<number>;
8
+ itemsPerPageSignal: _angular_core.WritableSignal<number>;
9
+ startIndexComputed: _angular_core.Signal<number>;
10
+ endIndexComputed: _angular_core.Signal<number>;
11
+ paginatedTableDataComputed: _angular_core.Signal<_hmcts_opal_frontend_common_components_abstract_abstract_sortable_table_interfaces.IAbstractTableData<_hmcts_opal_frontend_common_components_abstract_abstract_sortable_table_types.SortableValuesType>[]>;
12
+ /**
13
+ * Handles sorting changes and resets the page to the first page.
14
+ *
15
+ * @param event - The sorting event containing:
16
+ * - `key`: The column key to sort by.
17
+ * - `sortType`: The sorting order, either 'ascending' or 'descending'.
18
+ *
19
+ * Resets `currentPageSignal` to 1 and triggers re-sorting of `abstractTableDataSignal`.
20
+ */
21
+ onSortChange(event: {
22
+ key: string;
23
+ sortType: 'ascending' | 'descending';
24
+ }): void;
25
+ /**
26
+ * Handles the event when the page is changed.
27
+ *
28
+ * @param newPage - The new page number to set. If the provided page number is out of range,
29
+ * it will be clamped between 1 and the total number of pages.
30
+ */
31
+ onPageChange(newPage: number): void;
32
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AbstractSortableTablePaginationComponent, never>;
33
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AbstractSortableTablePaginationComponent, "ng-component", never, {}, {}, never, never, true, never>;
34
+ }
35
+
36
+ export { AbstractSortableTablePaginationComponent };
@@ -1,5 +1,86 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/abstract-tab-data" />
5
- export * from './public-api';
1
+ import { ActivatedRoute } from '@angular/router';
2
+ import { Observable } from 'rxjs';
3
+
4
+ declare abstract class AbstractTabData {
5
+ private readonly router;
6
+ readonly activatedRoute: ActivatedRoute;
7
+ activeTab: string;
8
+ /**
9
+ * Creates an observable stream that fetches and transforms data based on the current tab.
10
+ *
11
+ * It fetches data using the `fetchData` function with parameters obtained from `getParams`,
12
+ * transforms the result using the `transform` function, and shares the result among subscribers.
13
+ *
14
+ * @template T The type of data returned by the fetchData observable.
15
+ * @template U The type of the value emitted by the resulting observable.
16
+ * @param fragment$ - An observable emitting the current tab identifier.
17
+ * @param getParams - A function that returns parameters for data fetching based on the tab.
18
+ * @param fetchData - A function that fetches data as an observable, given the parameters.
19
+ * @param transform - A function to transform the fetched data before emission.
20
+ * @returns An observable emitting the transformed fetched data, depending on the current tab.
21
+ */
22
+ private createConditionalStream;
23
+ /**
24
+ * Returns an observable stream of the current URL fragment, starting with the initial fragment or a default tab.
25
+ *
26
+ * This method listens to changes in the route fragment and emits the fragment value as a string.
27
+ * It starts with the current fragment (or the provided default tab if none exists), filters out falsy values,
28
+ * ensures only distinct values are emitted, and completes when the provided `destroy$` observable emits.
29
+ *
30
+ * @param defaultTab - The default tab to use if no fragment is present in the route snapshot.
31
+ * @param destroy$ - An observable that signals when to complete the fragment stream.
32
+ * @returns An observable emitting the current fragment string, updating on changes, and completing on destroy.
33
+ */
34
+ protected getFragmentStream(defaultTab: string, destroy$: Observable<void>): Observable<string>;
35
+ /**
36
+ * Wraps a fragment stream and executes the provided callback on each tab change.
37
+ *
38
+ * @param fragment$ - The fragment observable stream.
39
+ * @param clearFn - A function to execute when the tab changes.
40
+ * @returns The fragment stream with a side-effect to run `clearFn` on each emission.
41
+ */
42
+ protected clearCacheOnTabChange(fragment$: Observable<string>, clearFn: () => void): Observable<string>;
43
+ /**
44
+ * Creates an observable data stream for a tab, transforming the fetched data as needed.
45
+ *
46
+ * @template T The type of the data fetched.
47
+ * @template R The type of the transformed data.
48
+ * @param fragment$ An observable emitting the current tab fragment.
49
+ * @param getParams A function that returns fetch parameters based on the tab.
50
+ * @param fetchData A function that fetches data given the parameters.
51
+ * @param transform A function to transform the fetched data.
52
+ * @returns An observable emitting the transformed data for the current tab.
53
+ */
54
+ createTabDataStream<T, R>(fragment$: Observable<string>, getParams: (tab?: string) => any, fetchData: (params: any) => Observable<T>, transform: (data: T) => R): Observable<R>;
55
+ /**
56
+ * Creates an observable stream that emits a formatted count string based on the current tab and fragment.
57
+ *
58
+ * @template T - The type of the data returned by the fetchCount observable.
59
+ * @param fragment$ - An observable emitting the current fragment or tab identifier.
60
+ * @param getParams - A function that returns the parameters required for fetching the count.
61
+ * @param fetchCount - A function that takes the parameters and returns an observable emitting the count data.
62
+ * @param extractCount - A function that extracts the numeric count from the fetched data.
63
+ * @param formatFn - (Optional) A function to format the count as a string. Defaults to a simple string conversion.
64
+ * @returns An observable that emits the formatted count string whenever the fragment or parameters change.
65
+ */
66
+ createCountStream<T>(fragment$: Observable<string>, getParams: (tab?: string) => any, fetchCount: (params: any) => Observable<T>, extractCount: (data: T) => number, formatFn?: (count: number) => string): Observable<string>;
67
+ /**
68
+ * Handles the tab switch by updating the active tab and triggering a router fragment update.
69
+ *
70
+ * @param fragment - The identifier of the tab to activate.
71
+ */
72
+ handleTabSwitch(fragment: string): void;
73
+ /**
74
+ * Formats a count value, capping it at a specified maximum.
75
+ *
76
+ * If the count exceeds the cap, returns a string in the format "{cap}+".
77
+ * Otherwise, returns the count as a string.
78
+ *
79
+ * @param count - The number to format.
80
+ * @param cap - The maximum value to display before capping.
81
+ * @returns A string representing the count, capped if necessary.
82
+ */
83
+ formatCountWithCap(count: number, cap: number): string;
84
+ }
85
+
86
+ export { AbstractTabData };
@@ -1,5 +1,27 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/abstract/interfaces" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ interface IAbstractFormBaseFormErrorSummaryMessage {
4
+ fieldId: string;
5
+ message: string | null;
6
+ }
7
+
8
+ interface IAbstractFormArrayControlValidation {
9
+ controlName: string;
10
+ validators: ValidatorFn[];
11
+ }
12
+
13
+ interface IAbstractFormArrayControl {
14
+ inputId: string;
15
+ inputName: string;
16
+ controlName: string;
17
+ }
18
+
19
+ interface IAbstractFormArrayControls {
20
+ [key: string]: IAbstractFormArrayControl;
21
+ }
22
+
23
+ interface IAbstractFormControlErrorMessage {
24
+ [key: string]: string | null;
25
+ }
26
+
27
+ export type { IAbstractFormArrayControl, IAbstractFormArrayControlValidation, IAbstractFormArrayControls, IAbstractFormBaseFormErrorSummaryMessage, IAbstractFormControlErrorMessage };
@@ -1,5 +1,66 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/alphagov/alphagov-accessible-autocomplete" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy, ElementRef } from '@angular/core';
3
+ import { AbstractControl, FormControl } from '@angular/forms';
4
+
5
+ interface IAlphagovAccessibleAutocompleteItem {
6
+ name: string;
7
+ value: string | number;
8
+ }
9
+
10
+ declare class AlphagovAccessibleAutocompleteComponent implements OnInit, OnDestroy {
11
+ labelText: string;
12
+ labelClasses: string;
13
+ inputId: string;
14
+ inputName: string;
15
+ inputClasses: string;
16
+ hintText: string;
17
+ autoCompleteItems: IAlphagovAccessibleAutocompleteItem[];
18
+ showAllValues: boolean;
19
+ errors: string | null;
20
+ autocompleteContainer: ElementRef<HTMLElement>;
21
+ private readonly changeDetector;
22
+ private _control;
23
+ private readonly ngUnsubscribe;
24
+ autoCompleteId: string;
25
+ set control(abstractControl: AbstractControl | null);
26
+ constructor();
27
+ /**
28
+ * Gets the control for the alphagov-accessible-autocomplete component.
29
+ * @returns The control for the component.
30
+ */
31
+ get getControl(): FormControl<any>;
32
+ /**
33
+ * Handles the confirmation of a selected name.
34
+ *
35
+ * @param selectedName - The selected name.
36
+ * @returns void
37
+ */
38
+ private handleOnConfirm;
39
+ /**
40
+ * Retrieves the default value for the autocomplete component.
41
+ *
42
+ * @returns The default value as a string.
43
+ */
44
+ private getDefaultValue;
45
+ /**
46
+ * Builds the props object for the AccessibleAutocomplete component.
47
+ * @returns The props object for the AccessibleAutocomplete component.
48
+ */
49
+ private buildAutoCompleteProps;
50
+ /**
51
+ * Configures the auto-complete functionality using the accessible-autocomplete library.
52
+ */
53
+ private configureAutoComplete;
54
+ /**
55
+ * Sets up the control subscription for value changes.
56
+ * Whenever the control value changes, this method is called to handle the changes.
57
+ * If the new value is null, it clears the autocomplete container and configures the autocomplete.
58
+ */
59
+ private setupControlSub;
60
+ ngOnInit(): void;
61
+ ngOnDestroy(): void;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlphagovAccessibleAutocompleteComponent, never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlphagovAccessibleAutocompleteComponent, "opal-lib-alphagov-accessible-autocomplete", never, { "labelText": { "alias": "labelText"; "required": true; }; "labelClasses": { "alias": "labelClasses"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "inputName": { "alias": "inputName"; "required": true; }; "inputClasses": { "alias": "inputClasses"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "autoCompleteItems": { "alias": "autoCompleteItems"; "required": true; }; "showAllValues": { "alias": "showAllValues"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "control": { "alias": "control"; "required": true; }; }, {}, never, never, true, never>;
64
+ }
65
+
66
+ export { AlphagovAccessibleAutocompleteComponent };
@@ -1,5 +1,6 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/alphagov/alphagov-accessible-autocomplete/interfaces" />
5
- export * from './public-api';
1
+ interface IAlphagovAccessibleAutocompleteItem {
2
+ name: string;
3
+ value: string | number;
4
+ }
5
+
6
+ export type { IAlphagovAccessibleAutocompleteItem };
@@ -1,5 +1,16 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/govuk/govuk-accordion" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { AfterViewInit } from '@angular/core';
3
+
4
+ declare class GovukAccordionComponent implements AfterViewInit {
5
+ private readonly platformId;
6
+ /**
7
+ * Lifecycle hook that is called after Angular has fully initialized the component's view.
8
+ * It is called only once after the first ngAfterContentChecked.
9
+ * We use it to initialize the govuk-frontend component.
10
+ */
11
+ ngAfterViewInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukAccordionComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukAccordionComponent, "opal-lib-govuk-accordion", never, {}, {}, never, never, true, never>;
14
+ }
15
+
16
+ export { GovukAccordionComponent };
@@ -1,5 +1,17 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/govuk/govuk-back-link" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
+
4
+ declare class GovukBackLinkComponent {
5
+ clickEvent: EventEmitter<Event>;
6
+ /**
7
+ * Handles the back navigation for the component by emitting an event.
8
+ * This method prevents the default action of the event.
9
+ *
10
+ * @param {Event} event - The event object representing the user's action.
11
+ */
12
+ onBack(event: Event): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukBackLinkComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukBackLinkComponent, "opal-lib-govuk-back-link", never, {}, { "clickEvent": "clickEvent"; }, never, never, true, never>;
15
+ }
16
+
17
+ export { GovukBackLinkComponent };
@@ -1,5 +1,17 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/govuk/govuk-button" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
+
4
+ declare class GovukButtonComponent {
5
+ buttonId: string;
6
+ type: string;
7
+ buttonClasses: string;
8
+ buttonClickEvent: EventEmitter<boolean>;
9
+ /**
10
+ * Handles the button click event.
11
+ */
12
+ handleButtonClick(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukButtonComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukButtonComponent, "opal-lib-govuk-button", never, { "buttonId": { "alias": "buttonId"; "required": true; }; "type": { "alias": "type"; "required": false; }; "buttonClasses": { "alias": "buttonClasses"; "required": false; }; }, { "buttonClickEvent": "buttonClickEvent"; }, never, ["*"], true, never>;
15
+ }
16
+
17
+ export { GovukButtonComponent };
@@ -1,5 +1,15 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/govuk/govuk-cancel-link" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
+
4
+ declare class GovukCancelLinkComponent {
5
+ cancelLinkText: string;
6
+ linkClickEvent: EventEmitter<boolean>;
7
+ /**
8
+ * Handles the button click event.
9
+ */
10
+ handleClick(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukCancelLinkComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukCancelLinkComponent, "opal-lib-govuk-cancel-link", never, { "cancelLinkText": { "alias": "cancelLinkText"; "required": false; }; }, { "linkClickEvent": "linkClickEvent"; }, never, never, true, never>;
13
+ }
14
+
15
+ export { GovukCancelLinkComponent };
@@ -1,5 +1,44 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/govuk/govuk-checkboxes" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
+ import { AbstractControl, FormControl } from '@angular/forms';
4
+
5
+ declare class GovukCheckboxesConditionalComponent implements OnInit {
6
+ conditionalId: string;
7
+ class: string;
8
+ id: string;
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukCheckboxesConditionalComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukCheckboxesConditionalComponent, "opal-lib-govuk-checkboxes-conditional, [opal-lib-govuk-checkboxes-conditional]", never, { "conditionalId": { "alias": "conditionalId"; "required": true; }; }, {}, never, ["*"], true, never>;
12
+ }
13
+
14
+ declare class GovukCheckboxesDividerComponent {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukCheckboxesDividerComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukCheckboxesDividerComponent, "opal-lib-govuk-checkboxes-divider", never, {}, {}, never, ["*"], true, never>;
17
+ }
18
+
19
+ declare class GovukCheckboxesItemComponent {
20
+ private _control;
21
+ labelText: string;
22
+ labelClasses: string;
23
+ inputId: string;
24
+ inputName: string;
25
+ inputClasses: string;
26
+ ariaControls: string;
27
+ set control(abstractControl: AbstractControl | null);
28
+ class: string;
29
+ get getControl(): FormControl<any>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukCheckboxesItemComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukCheckboxesItemComponent, "opal-lib-govuk-checkboxes-item, [opal-lib-govuk-checkboxes-item]", never, { "labelText": { "alias": "labelText"; "required": true; }; "labelClasses": { "alias": "labelClasses"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "inputName": { "alias": "inputName"; "required": true; }; "inputClasses": { "alias": "inputClasses"; "required": false; }; "ariaControls": { "alias": "ariaControls"; "required": false; }; "control": { "alias": "control"; "required": true; }; }, {}, never, never, true, never>;
32
+ }
33
+
34
+ declare class GovukCheckboxesComponent {
35
+ fieldSetId: string;
36
+ legendText: string;
37
+ legendHint: string;
38
+ legendClasses: string;
39
+ checkboxClasses: string;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<GovukCheckboxesComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<GovukCheckboxesComponent, "opal-lib-govuk-checkboxes", never, { "fieldSetId": { "alias": "fieldSetId"; "required": true; }; "legendText": { "alias": "legendText"; "required": true; }; "legendHint": { "alias": "legendHint"; "required": false; }; "legendClasses": { "alias": "legendClasses"; "required": false; }; "checkboxClasses": { "alias": "checkboxClasses"; "required": false; }; }, {}, never, ["*"], true, never>;
42
+ }
43
+
44
+ export { GovukCheckboxesComponent, GovukCheckboxesConditionalComponent, GovukCheckboxesDividerComponent, GovukCheckboxesItemComponent };
@@ -1,5 +1,18 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/components/govuk/govuk-checkboxes/interfaces" />
5
- export * from './public-api';
1
+ interface IGovUkCheckboxInputConditional {
2
+ inputName: string;
3
+ inputClasses: string;
4
+ inputId: string;
5
+ inputLabel: string;
6
+ }
7
+ interface IGovUkCheckboxInput {
8
+ inputName: string;
9
+ inputClasses?: string | null;
10
+ inputId: string;
11
+ inputValue: string;
12
+ inputLabel: string;
13
+ inputTextDivider?: string | null;
14
+ inputHint?: string | null;
15
+ conditional?: IGovUkCheckboxInputConditional;
16
+ }
17
+
18
+ export type { IGovUkCheckboxInput };