@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,67 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/sort-service" />
5
- export * from './public-api';
1
+ import { ISortServiceArrayValues, ISortServiceValues } from '@hmcts/opal-frontend-common/services/sort-service/interfaces';
2
+ import { SortableValuesType } from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/types';
3
+ import * as i0 from '@angular/core';
4
+
5
+ declare class SortService {
6
+ /**
7
+ * Sorts an array of values in ascending order.
8
+ *
9
+ * @param array - The array of values to be sorted.
10
+ * @returns The sorted array in ascending order.
11
+ */
12
+ arraySortAsc(array: ISortServiceArrayValues): ISortServiceArrayValues;
13
+ /**
14
+ * Sorts an array of values in descending order.
15
+ *
16
+ * @param array - The array of values to be sorted.
17
+ * @returns The sorted array in descending order.
18
+ */
19
+ arraySortDesc(array: ISortServiceArrayValues): ISortServiceArrayValues;
20
+ /**
21
+ * Sorts an array of objects based on a specified key and sort type.
22
+ *
23
+ * @param array - The array of objects to be sorted. Each object should implement the `ISortServiceValues` interface.
24
+ * @param config - The configuration object containing the key to sort by and the sort type (ascending or descending).
25
+ * @returns The sorted array of objects.
26
+ *
27
+ * @remarks
28
+ * - If the input array is not an array or the config key is not provided, the original array is returned.
29
+ * - The `sortType` can be either 'ascending' or 'descending'.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const array = [
34
+ * { name: 'Alice', age: 30 },
35
+ * { name: 'Bob', age: 25 },
36
+ * ];
37
+ * const config = { key: 'age', sortType: 'ascending' };
38
+ * const sortedArray = getObjects(array, config);
39
+ * // sortedArray will be:
40
+ * // [
41
+ * // { name: 'Bob', age: 25 },
42
+ * // { name: 'Alice', age: 30 },
43
+ * // ]
44
+ * ```
45
+ */
46
+ private sortObjectArray;
47
+ /**
48
+ * Sorts an array of objects in ascending order based on the specified key.
49
+ *
50
+ * @param array - The array of objects to be sorted.
51
+ * @param key - The key of the object property to sort by.
52
+ * @returns The sorted array of objects.
53
+ */
54
+ sortObjectArrayAsc(array: ISortServiceValues<SortableValuesType>[] | null, key: string): ISortServiceValues<SortableValuesType>[] | null;
55
+ /**
56
+ * Sorts an array of objects in descending order based on the specified key.
57
+ *
58
+ * @param array - The array of objects to be sorted. Each object should implement the ISortServiceValues interface.
59
+ * @param key - The key of the object property to sort by.
60
+ * @returns The sorted array of objects in descending order.
61
+ */
62
+ sortObjectArrayDesc(array: ISortServiceValues<SortableValuesType>[] | null, key: string): ISortServiceValues<SortableValuesType>[] | null;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortService, never>;
64
+ static ɵprov: i0.ɵɵInjectableDeclaration<SortService>;
65
+ }
66
+
67
+ export { SortService };
@@ -1,5 +1,15 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/sort-service/interfaces" />
5
- export * from './public-api';
1
+ import { SortableValuesType } from '@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table/types';
2
+
3
+ interface ISortServiceValues<T extends SortableValuesType> {
4
+ [key: string]: T;
5
+ }
6
+ interface ISortServiceArrayValues extends Array<SortableValuesType> {
7
+ [key: number]: SortableValuesType;
8
+ }
9
+
10
+ interface ISortServiceConfig {
11
+ key: string;
12
+ sortType: 'ascending' | 'descending';
13
+ }
14
+
15
+ export type { ISortServiceArrayValues, ISortServiceConfig, ISortServiceValues };
@@ -1,5 +1,31 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/transfer-state-service" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { PLATFORM_ID, TransferState } from '@angular/core';
3
+ import { ITransferStateServerState } from '@hmcts/opal-frontend-common/services/transfer-state-service/interfaces';
4
+
5
+ declare class TransferStateService {
6
+ private readonly platformId;
7
+ readonly serverTransferState: ITransferStateServerState | null;
8
+ private readonly transferState;
9
+ private readonly globalStore;
10
+ private readonly storedServerTransferState;
11
+ constructor(platformId: typeof PLATFORM_ID, serverTransferState: ITransferStateServerState | null, transferState: TransferState);
12
+ /**
13
+ * Initializes the SSO (Single Sign-On) enabled state.
14
+ * Sets the SSO enabled state based on the stored server transfer state.
15
+ */
16
+ initializeSsoEnabled(): void;
17
+ /**
18
+ * Initializes the LaunchDarkly configuration by assigning the stored server transfer state's
19
+ * launchDarklyConfig value to the globalStore's launchDarklyConfig property.
20
+ */
21
+ initializeLaunchDarklyConfig(): void;
22
+ /**
23
+ * Initializes the Application Insights configuration by assigning the stored server transfer state's
24
+ * appInsightsConfig value to the globalStore's appInsightsConfig property.
25
+ */
26
+ initializeAppInsightsConfig(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransferStateService, [null, { optional: true; }, null]>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransferStateService>;
29
+ }
30
+
31
+ export { TransferStateService };
@@ -1,5 +1,19 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/transfer-state-service/interfaces" />
5
- export * from './public-api';
1
+ interface ITransferStateAppInsightsConfig {
2
+ enabled: boolean;
3
+ connectionString: string;
4
+ cloudRoleName: string;
5
+ }
6
+
7
+ interface ITransferStateLaunchDarklyConfig {
8
+ enabled: boolean | null;
9
+ clientId: string | null;
10
+ stream: boolean | null;
11
+ }
12
+
13
+ interface ITransferStateServerState {
14
+ launchDarklyConfig: ITransferStateLaunchDarklyConfig;
15
+ ssoEnabled: boolean;
16
+ appInsightsConfig: ITransferStateAppInsightsConfig;
17
+ }
18
+
19
+ export type { ITransferStateAppInsightsConfig, ITransferStateLaunchDarklyConfig, ITransferStateServerState };
@@ -1,5 +1,17 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/transfer-state-service/mocks" />
5
- export * from './public-api';
1
+ import { ITransferStateServerState } from '@hmcts/opal-frontend-common/services/transfer-state-service/interfaces';
2
+
3
+ declare const TRANSFER_STATE_APP_INSIGHTS_CONFIG_MOCK: {
4
+ enabled: boolean;
5
+ connectionString: string;
6
+ cloudRoleName: string;
7
+ };
8
+
9
+ declare const TRANSFER_STATE_LAUNCH_DARKLY_CONFIG_MOCK: {
10
+ enabled: boolean;
11
+ clientId: string;
12
+ stream: boolean;
13
+ };
14
+
15
+ declare const TRANSFER_STATE_MOCK: ITransferStateServerState;
16
+
17
+ export { TRANSFER_STATE_APP_INSIGHTS_CONFIG_MOCK, TRANSFER_STATE_LAUNCH_DARKLY_CONFIG_MOCK, TRANSFER_STATE_MOCK };
@@ -1,5 +1,33 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/transformation-service" />
5
- export * from './public-api';
1
+ import { ITransformItem } from '@hmcts/opal-frontend-common/services/transformation-service/interfaces';
2
+ import * as i0 from '@angular/core';
3
+
4
+ declare class TransformationService {
5
+ private readonly dateService;
6
+ /**
7
+ * Applies a transformation to the given value based on the specified transformation configuration.
8
+ *
9
+ * @param value - The value to be transformed.
10
+ * @param transformItem - The configuration for the transformation, including the type of transformation and any necessary format details.
11
+ * @returns The transformed value, or the original value if no transformation is applied.
12
+ */
13
+ private applyTransformation;
14
+ /**
15
+ * Transforms the values of an object based on a given transformation configuration.
16
+ *
17
+ * @param obj - The object whose values need to be transformed. It should be a non-null object.
18
+ * @param toTransform - An array of transformation configurations, where each configuration specifies
19
+ * the key to transform and the transformation details.
20
+ * @returns The transformed object with values modified according to the transformation configuration.
21
+ *
22
+ * @remarks
23
+ * - If the input `obj` is not an object or is null, it returns the input as is.
24
+ * - The function recursively processes nested objects.
25
+ */
26
+ transformObjectValues(obj: {
27
+ [key: string]: any;
28
+ }, toTransform: ITransformItem[]): any;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransformationService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransformationService>;
31
+ }
32
+
33
+ export { TransformationService };
@@ -1,5 +1,8 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/transformation-service/interfaces" />
5
- export * from './public-api';
1
+ interface ITransformItem {
2
+ key: string;
3
+ transformType: string;
4
+ dateInputFormat: string | null;
5
+ dateOutputFormat: string | null;
6
+ }
7
+
8
+ export type { ITransformItem };
@@ -1,5 +1,88 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/services/utils-service" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class UtilsService {
4
+ private readonly viewportScroller;
5
+ /**
6
+ * Converts the first letter of a string to uppercase.
7
+ * @param str - The input string.
8
+ * @returns The input string with the first letter capitalized.
9
+ */
10
+ upperCaseFirstLetter(str: string): string;
11
+ /**
12
+ * Converts the entire string to uppercase.
13
+ * @param str - The input string.
14
+ * @returns The input string in uppercase.
15
+ */
16
+ upperCaseAllLetters(str: string): string;
17
+ /**
18
+ * Converts a number to a monetary string representation.
19
+ * @param amount - The number to convert.
20
+ * @returns The monetary string representation of the number.
21
+ */
22
+ convertToMonetaryString(amount: number | string): string;
23
+ /**
24
+ * Formats a 6-digit number or string as a sort code.
25
+ * @param value - The 6-digit value to format.
26
+ * @returns The formatted sort code string (xx-xx-xx).
27
+ */
28
+ formatSortCode(value: string | number): string;
29
+ /**
30
+ * Filters out null or empty strings from an array of address lines.
31
+ *
32
+ * @param address - An array of address lines which may contain strings or null values.
33
+ * @returns A new array containing only non-empty strings from the input array.
34
+ */
35
+ formatAddress(address: (string | null)[]): string[];
36
+ /**
37
+ * Scrolls the viewport to the top of the page.
38
+ * Utilizes the `viewportScroller` service to scroll to the position [0, 0].
39
+ */
40
+ scrollToTop(): void;
41
+ checkFormValues(form: {
42
+ [key: string]: any;
43
+ }): boolean;
44
+ checkFormArrayValues(forms: {
45
+ [key: string]: any;
46
+ }[]): boolean;
47
+ getFormStatus(form: {
48
+ [key: string]: any;
49
+ }, providedMessage: string, notProvidedMessage: string): string;
50
+ getArrayFormStatus(forms: {
51
+ [key: string]: any;
52
+ }[], providedMessage: string, notProvidedMessage: string): string;
53
+ /**
54
+ * Copies the provided string value to the clipboard.
55
+ *
56
+ * @param value - The string value to be copied to the clipboard.
57
+ *
58
+ * @remarks
59
+ * This method uses the `navigator.clipboard.writeText` API to copy text to the clipboard.
60
+ * Ensure that the browser supports the Clipboard API before using this method.
61
+ */
62
+ copyToClipboard(value: string): Promise<void>;
63
+ /**
64
+ * Recursively filters out properties from an object where the value is `null` or `undefined`.
65
+ *
66
+ * @param obj - The object to filter. Can include nested objects.
67
+ * @returns A new object with only non-null and non-undefined values.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const input = {
72
+ * a: 1,
73
+ * b: null,
74
+ * c: undefined,
75
+ * d: 'hello',
76
+ * e: { x: null, y: 2 },
77
+ * f: { z: undefined },
78
+ * };
79
+ * const result = filterNullOrUndefined(input);
80
+ * console.log(result); // Output: { a: 1, d: 'hello', e: { y: 2 } }
81
+ * ```
82
+ */
83
+ filterNullOrUndefined(obj: Record<string, unknown>): Record<string, unknown>;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
85
+ static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
86
+ }
87
+
88
+ export { UtilsService };
@@ -1,5 +1,42 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/stores/global" />
5
- export * from './public-api';
1
+ import * as _ngrx_signals from '@ngrx/signals';
2
+ import * as _angular_core from '@angular/core';
3
+ import { LDFlagSet } from 'launchdarkly-js-client-sdk';
4
+ import { ITransferStateLaunchDarklyConfig, ITransferStateAppInsightsConfig } from '@hmcts/opal-frontend-common/services/transfer-state-service/interfaces';
5
+ import { ISessionUserState, ISessionTokenExpiry } from '@hmcts/opal-frontend-common/services/session-service/interfaces';
6
+ import { IErrorState } from '@hmcts/opal-frontend-common/stores/global/interfaces';
7
+
8
+ declare const GlobalStore: _angular_core.Type<{
9
+ authenticated: _angular_core.Signal<boolean>;
10
+ error: _ngrx_signals.DeepSignal<{
11
+ error: boolean;
12
+ message: string;
13
+ }>;
14
+ featureFlags: _angular_core.Signal<LDFlagSet>;
15
+ userState: _ngrx_signals.DeepSignal<ISessionUserState>;
16
+ ssoEnabled: _angular_core.Signal<boolean>;
17
+ launchDarklyConfig: _ngrx_signals.DeepSignal<ITransferStateLaunchDarklyConfig>;
18
+ appInsightsConfig: _ngrx_signals.DeepSignal<ITransferStateAppInsightsConfig>;
19
+ tokenExpiry: _ngrx_signals.DeepSignal<ISessionTokenExpiry>;
20
+ setAuthenticated: (authenticated: boolean) => void;
21
+ setError: (error: IErrorState) => void;
22
+ setFeatureFlags: (featureFlags: LDFlagSet) => void;
23
+ setUserState: (userState: ISessionUserState) => void;
24
+ setSsoEnabled: (ssoEnabled: boolean) => void;
25
+ setLaunchDarklyConfig: (config: ITransferStateLaunchDarklyConfig) => void;
26
+ setAppInsightsConfig: (config: ITransferStateAppInsightsConfig) => void;
27
+ setTokenExpiry: (tokenExpiry: ISessionTokenExpiry) => void;
28
+ } & _ngrx_signals.StateSource<{
29
+ authenticated: boolean;
30
+ error: {
31
+ error: boolean;
32
+ message: string;
33
+ };
34
+ featureFlags: LDFlagSet;
35
+ userState: ISessionUserState;
36
+ ssoEnabled: boolean;
37
+ launchDarklyConfig: ITransferStateLaunchDarklyConfig;
38
+ appInsightsConfig: ITransferStateAppInsightsConfig;
39
+ tokenExpiry: ISessionTokenExpiry;
40
+ }>>;
41
+
42
+ export { GlobalStore };
@@ -1,5 +1,6 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/stores/global/interfaces" />
5
- export * from './public-api';
1
+ interface IErrorState {
2
+ error: boolean;
3
+ message: string;
4
+ }
5
+
6
+ export type { IErrorState };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/stores/global/types" />
5
- export * from './public-api';
1
+ import { GlobalStore } from '@hmcts/opal-frontend-common/stores/global';
2
+
3
+ type GlobalStoreType = InstanceType<typeof GlobalStore>;
4
+
5
+ export type { GlobalStoreType };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/alphabetical-text" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function alphabeticalTextValidator(): ValidatorFn;
4
+
5
+ export { alphabeticalTextValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/amount" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function amountValidator(maxIntegers: number, maxDecimals: number): ValidatorFn;
4
+
5
+ export { amountValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/date-after-year" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function dateAfterYearValidator(year: number): ValidatorFn;
4
+
5
+ export { dateAfterYearValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/date-before" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function dateBeforeValidator(targetDate: Date | null): ValidatorFn;
4
+
5
+ export { dateBeforeValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/date-of-birth" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function dateOfBirthValidator(): ValidatorFn;
4
+
5
+ export { dateOfBirthValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/future-date" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function futureDateValidator(): ValidatorFn;
4
+
5
+ export { futureDateValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/invalid-value" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function invalidValueValidator(invalidValues: string[]): ValidatorFn;
4
+
5
+ export { invalidValueValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/national-insurance-number" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function nationalInsuranceNumberValidator(): ValidatorFn;
4
+
5
+ export { nationalInsuranceNumberValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/numerical-only" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function numericalTextValidator(): ValidatorFn;
4
+
5
+ export { numericalTextValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/optional-max-length" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function optionalMaxLengthValidator(maxLength: number): ValidatorFn;
4
+
5
+ export { optionalMaxLengthValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/optional-valid-date" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function optionalValidDateValidator(): ValidatorFn;
4
+
5
+ export { optionalValidDateValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/optional-valid-email-address" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function optionalEmailAddressValidator(): ValidatorFn;
4
+
5
+ export { optionalEmailAddressValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/optional-valid-telephone" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function optionalPhoneNumberValidator(): ValidatorFn;
4
+
5
+ export { optionalPhoneNumberValidator };
@@ -1,5 +1,17 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ import { DateService } from '@hmcts/opal-frontend-common/services/date-service';
3
+
1
4
  /**
2
- * Generated bundle index. Do not edit.
5
+ * Validates whether a date, constructed from provided form controls for day, month and year
6
+ * is at least 18 years in the past.
7
+ *
8
+ * @param dayControl - Name of the control for the day portion of the date
9
+ * @param monthControl - Name of the control for the month portion of the date
10
+ * @param yearControl - Name of the control for the year portion of the date
11
+ * @param dateService - An instance of DateService
12
+ * @returns Validator function that returns null if the date is valid and the age is 18 years older,
13
+ * or an error object within { underEighteen: true } if under 18.
3
14
  */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/over-eighteen" />
5
- export * from './public-api';
15
+ declare const overEighteenValidator: (dayControl: string, monthControl: string, yearControl: string, dateService: DateService) => ValidatorFn;
16
+
17
+ export { overEighteenValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/past-date" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function pastDateValidator(): ValidatorFn;
4
+
5
+ export { pastDateValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/special-characters" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function specialCharactersValidator(): ValidatorFn;
4
+
5
+ export { specialCharactersValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/two-decimal-places" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function twoDecimalPlacesValidator(): ValidatorFn;
4
+
5
+ export { twoDecimalPlacesValidator };
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@hmcts/opal-frontend-common/validators/valid-value" />
5
- export * from './public-api';
1
+ import { ValidatorFn } from '@angular/forms';
2
+
3
+ declare function validValueValidator(validValues: string[]): ValidatorFn;
4
+
5
+ export { validValueValidator };