@hmcts/rpx-xui-common-lib 2.1.6-angular-upgrade-11-welsh → 2.1.6-javascript-void

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 (361) hide show
  1. package/README.md +1 -1
  2. package/esm2022/hmcts-rpx-xui-common-lib.mjs +5 -0
  3. package/esm2022/lib/components/accessibility/accessibility.component.mjs +833 -0
  4. package/esm2022/lib/components/checkbox-list/checkbox-list.component.mjs +232 -0
  5. package/esm2022/lib/components/contact-details/contact-details.component.mjs +123 -0
  6. package/esm2022/lib/components/cookie-banner/cookie-banner.component.mjs +151 -0
  7. package/esm2022/lib/components/due-date/due-date.component.mjs +141 -0
  8. package/esm2022/lib/components/exui-main-wrapper/exui-page-wrapper.component.mjs +80 -0
  9. package/esm2022/lib/components/find-location/find-location.component.mjs +220 -0
  10. package/esm2022/lib/components/find-person/find-person.component.mjs +234 -0
  11. package/esm2022/lib/components/find-service/find-service.component.mjs +193 -0
  12. package/esm2022/lib/components/find-task-name/find-task-name.component.mjs +200 -0
  13. package/esm2022/lib/components/generic-filter/generic-filter-utils.mjs +21 -0
  14. package/esm2022/lib/components/generic-filter/generic-filter.component.mjs +1224 -0
  15. package/esm2022/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.mjs +56 -0
  16. package/esm2022/lib/components/invite-user-form/invite-user-form.component.mjs +51 -0
  17. package/esm2022/lib/components/invite-user-permissions/invite-user-permission.component.mjs +54 -0
  18. package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +33 -0
  19. package/esm2022/lib/components/pagination/pagination.component.mjs +92 -0
  20. package/esm2022/lib/components/public_api.mjs +39 -0
  21. package/esm2022/lib/components/search-judicials/search-judicials.component.mjs +185 -0
  22. package/esm2022/lib/components/search-location/search-location.component.mjs +240 -0
  23. package/esm2022/lib/components/search-service/search-service.component.mjs +94 -0
  24. package/esm2022/lib/components/search-venue/search-venue.component.mjs +188 -0
  25. package/esm2022/lib/components/selected-case/selected-case.component.mjs +381 -0
  26. package/esm2022/lib/components/selected-case-confirm/selected-case-confirm.component.mjs +135 -0
  27. package/esm2022/lib/components/selected-case-list/selected-case-list.component.mjs +98 -0
  28. package/esm2022/lib/components/service-message/service-message.component.mjs +62 -0
  29. package/esm2022/lib/components/service-messages/service-messages.component.mjs +163 -0
  30. package/esm2022/lib/components/share-case/share-case.component.mjs +427 -0
  31. package/esm2022/lib/components/share-case-confirm/share-case-confirm.component.mjs +85 -0
  32. package/esm2022/lib/components/tab/tab.component.mjs +40 -0
  33. package/esm2022/lib/components/tc-confirm/tc-confirm.component.mjs +66 -0
  34. package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.mjs +17 -0
  35. package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.mjs +17 -0
  36. package/esm2022/lib/components/terms-and-conditions/terms-and-conditions.component.mjs +58 -0
  37. package/esm2022/lib/components/user-details/user-details.component.mjs +276 -0
  38. package/esm2022/lib/components/user-list/user-list.component.mjs +100 -0
  39. package/esm2022/lib/components/user-select/user-select.component.mjs +94 -0
  40. package/esm2022/lib/components/write-address/write-address.component.mjs +342 -0
  41. package/esm2022/lib/components/write-address-inputs/write-address-inputs.component.mjs +165 -0
  42. package/esm2022/lib/directives/feature-toggle/feature-toggle.directive.mjs +41 -0
  43. package/esm2022/lib/directives/let/let.directive.mjs +29 -0
  44. package/esm2022/lib/exui-common-lib.module.mjs +313 -0
  45. package/esm2022/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.mjs +55 -0
  46. package/esm2022/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.mjs +137 -0
  47. package/esm2022/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.mjs +127 -0
  48. package/esm2022/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs +46 -0
  49. package/esm2022/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.mjs +79 -0
  50. package/esm2022/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.mjs +79 -0
  51. package/esm2022/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.mjs +45 -0
  52. package/esm2022/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.mjs +71 -0
  53. package/esm2022/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.mjs +84 -0
  54. package/esm2022/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.mjs +48 -0
  55. package/esm2022/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.mjs +42 -0
  56. package/esm2022/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.mjs +80 -0
  57. package/esm2022/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.mjs +185 -0
  58. package/esm2022/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.mjs +57 -0
  59. package/esm2022/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.mjs +2 -0
  60. package/esm2022/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.mjs +111 -0
  61. package/esm2022/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.mjs +140 -0
  62. package/esm2022/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.mjs +34 -0
  63. package/esm2022/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.mjs +129 -0
  64. package/esm2022/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.mjs +204 -0
  65. package/esm2022/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.mjs +60 -0
  66. package/esm2022/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.mjs +58 -0
  67. package/esm2022/lib/gov-ui/directives/remove-host.directive.mjs +30 -0
  68. package/esm2022/lib/gov-ui/gov-ui.service.mjs +14 -0
  69. package/esm2022/lib/gov-ui/models/checkboxes-model.mjs +2 -0
  70. package/{esm2015/lib/gov-ui/models/gov-ui-config-model.js → esm2022/lib/gov-ui/models/gov-ui-config-model.mjs} +1 -1
  71. package/{esm2015/lib/gov-ui/models/public_api.js → esm2022/lib/gov-ui/models/public_api.mjs} +1 -2
  72. package/esm2022/lib/gov-ui/models/radio-buttons.model.mjs +2 -0
  73. package/esm2022/lib/gov-ui/util/helpers/html-templates.helper.mjs +22 -0
  74. package/{esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js → esm2022/lib/gov-ui/validators/checkboxes-be-checked.validator.mjs} +1 -1
  75. package/{esm2015/lib/gov-ui/validators/date.validator.js → esm2022/lib/gov-ui/validators/date.validator.mjs} +1 -1
  76. package/esm2022/lib/gov-ui/validators/radio-group.validator.mjs +15 -0
  77. package/esm2022/lib/models/address-message.enum.mjs +11 -0
  78. package/esm2022/lib/models/address-option.model.mjs +21 -0
  79. package/esm2022/lib/models/address.model.mjs +4 -0
  80. package/{esm2015/lib/models/contact-details.model.js → esm2022/lib/models/contact-details.model.mjs} +1 -1
  81. package/esm2022/lib/models/feature-user.mjs +5 -0
  82. package/esm2022/lib/models/filter.model.mjs +3 -0
  83. package/esm2022/lib/models/index.mjs +19 -0
  84. package/esm2022/lib/models/location.model.mjs +7 -0
  85. package/esm2022/lib/models/person.model.mjs +21 -0
  86. package/{esm2015/lib/models/public_api.js → esm2022/lib/models/public_api.mjs} +2 -1
  87. package/{esm2015/lib/models/search-options.model.js → esm2022/lib/models/search-options.model.mjs} +1 -1
  88. package/esm2022/lib/models/service-message.model.mjs +2 -0
  89. package/esm2022/lib/models/task-name.model.mjs +2 -0
  90. package/esm2022/lib/models/user-access-type.model.mjs +2 -0
  91. package/esm2022/lib/models/user-details.model.mjs +2 -0
  92. package/esm2022/lib/pipes/capitalize/capitalize.pipe.mjs +15 -0
  93. package/esm2022/lib/pipes/index.mjs +2 -0
  94. package/esm2022/lib/services/address/address-parser.mjs +76 -0
  95. package/esm2022/lib/services/address/address-type.enum.mjs +7 -0
  96. package/esm2022/lib/services/address/address.service.mjs +55 -0
  97. package/esm2022/lib/services/case-sharing-state/case-sharing-state.service.mjs +170 -0
  98. package/esm2022/lib/services/cookie/cookie.service.mjs +48 -0
  99. package/esm2022/lib/services/feature-toggle/feature-toggle.guard.mjs +37 -0
  100. package/esm2022/lib/services/feature-toggle/feature-toggle.service.mjs +33 -0
  101. package/esm2022/lib/services/feature-toggle/launch-darkly.service.mjs +65 -0
  102. package/esm2022/lib/services/filter/filter.service.mjs +95 -0
  103. package/esm2022/lib/services/find-person/find-person.service.mjs +92 -0
  104. package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +73 -0
  105. package/esm2022/lib/services/google-tag-manager/google-tag-manager.service.mjs +85 -0
  106. package/{esm2015/lib/services/loading/loading.service.js → esm2022/lib/services/loading/loading.service.mjs} +8 -6
  107. package/esm2022/lib/services/locations/location.service.mjs +38 -0
  108. package/{esm2015/lib/services/manage-session/manage-session.services.js → esm2022/lib/services/manage-session/manage-session.services.mjs} +8 -10
  109. package/esm2022/lib/services/public-api.mjs +18 -0
  110. package/esm2022/lib/services/ref-data/index.mjs +4 -0
  111. package/esm2022/lib/services/ref-data/models/ref-data-htmcs-service.model.mjs +2 -0
  112. package/esm2022/lib/services/ref-data/models/ref-data-region.model.mjs +2 -0
  113. package/esm2022/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.mjs +2 -0
  114. package/esm2022/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.mjs +33 -0
  115. package/esm2022/lib/services/ref-data/ref-data.service.mjs +34 -0
  116. package/esm2022/lib/services/role-guard/role.guard.mjs +43 -0
  117. package/esm2022/lib/services/role-guard/role.service.mjs +22 -0
  118. package/esm2022/lib/services/storage/session-storage/session-storage.service.mjs +43 -0
  119. package/esm2022/lib/services/task-name/task-name.service.mjs +35 -0
  120. package/esm2022/lib/services/timeout-notifications/timeout-notifications.service.mjs +103 -0
  121. package/{esm2015/public-api.js → esm2022/public-api.mjs} +2 -1
  122. package/fesm2022/hmcts-rpx-xui-common-lib.mjs +10377 -0
  123. package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -0
  124. package/index.d.ts +5 -0
  125. package/lib/components/accessibility/accessibility.component.d.ts +7 -1
  126. package/lib/components/checkbox-list/checkbox-list.component.d.ts +8 -2
  127. package/lib/components/contact-details/contact-details.component.d.ts +3 -0
  128. package/lib/components/cookie-banner/cookie-banner.component.d.ts +5 -1
  129. package/lib/components/due-date/due-date.component.d.ts +8 -2
  130. package/lib/components/exui-main-wrapper/exui-page-wrapper.component.d.ts +3 -0
  131. package/lib/components/find-location/find-location.component.d.ts +12 -6
  132. package/lib/components/find-person/find-person.component.d.ts +5 -2
  133. package/lib/components/find-service/find-service.component.d.ts +24 -9
  134. package/lib/components/find-task-name/find-task-name.component.d.ts +44 -0
  135. package/lib/components/generic-filter/generic-filter-utils.d.ts +2 -5
  136. package/lib/components/generic-filter/generic-filter.component.d.ts +25 -6
  137. package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +3 -0
  138. package/lib/components/invite-user-form/invite-user-form.component.d.ts +3 -0
  139. package/lib/components/invite-user-permissions/invite-user-permission.component.d.ts +3 -0
  140. package/lib/components/loading-spinner/loading-spinner.component.d.ts +8 -1
  141. package/lib/components/pagination/pagination.component.d.ts +3 -0
  142. package/lib/components/public_api.d.ts +6 -0
  143. package/lib/components/search-judicials/search-judicials.component.d.ts +3 -0
  144. package/lib/components/search-location/search-location.component.d.ts +25 -20
  145. package/lib/components/search-service/search-service.component.d.ts +16 -9
  146. package/lib/components/search-venue/search-venue.component.d.ts +3 -1
  147. package/lib/components/selected-case/selected-case.component.d.ts +3 -0
  148. package/lib/components/selected-case-confirm/selected-case-confirm.component.d.ts +3 -0
  149. package/lib/components/selected-case-list/selected-case-list.component.d.ts +3 -0
  150. package/lib/components/service-message/service-message.component.d.ts +9 -4
  151. package/lib/components/service-messages/service-messages.component.d.ts +15 -5
  152. package/lib/components/share-case/share-case.component.d.ts +4 -0
  153. package/lib/components/share-case-confirm/share-case-confirm.component.d.ts +3 -0
  154. package/lib/components/tab/tab.component.d.ts +3 -0
  155. package/lib/components/tc-confirm/tc-confirm.component.d.ts +3 -0
  156. package/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.d.ts +3 -0
  157. package/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.d.ts +3 -0
  158. package/lib/components/terms-and-conditions/terms-and-conditions.component.d.ts +3 -0
  159. package/lib/components/user-details/user-details.component.d.ts +4 -0
  160. package/lib/components/user-list/user-list.component.d.ts +3 -0
  161. package/lib/components/user-select/user-select.component.d.ts +5 -3
  162. package/lib/components/write-address/write-address.component.d.ts +45 -0
  163. package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +16 -0
  164. package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +3 -0
  165. package/lib/directives/let/let.directive.d.ts +3 -0
  166. package/lib/exui-common-lib.module.d.ts +83 -4
  167. package/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.d.ts +3 -0
  168. package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +17 -5
  169. package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +3 -0
  170. package/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.d.ts +3 -0
  171. package/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +3 -0
  172. package/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.d.ts +3 -0
  173. package/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.d.ts +3 -0
  174. package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +4 -2
  175. package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +4 -0
  176. package/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.d.ts +3 -0
  177. package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +5 -2
  178. package/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.d.ts +3 -0
  179. package/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.d.ts +3 -0
  180. package/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.d.ts +3 -0
  181. package/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.d.ts +7 -0
  182. package/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.d.ts +7 -2
  183. package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +3 -0
  184. package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +3 -0
  185. package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +6 -3
  186. package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +3 -0
  187. package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +3 -0
  188. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +3 -0
  189. package/lib/gov-ui/directives/remove-host.directive.d.ts +3 -0
  190. package/lib/gov-ui/gov-ui.service.d.ts +3 -0
  191. package/lib/gov-ui/models/checkboxes-model.d.ts +4 -7
  192. package/lib/gov-ui/models/gov-ui-config-model.d.ts +2 -0
  193. package/lib/gov-ui/models/public_api.d.ts +0 -1
  194. package/lib/gov-ui/models/radio-buttons.model.d.ts +9 -0
  195. package/lib/models/address-message.enum.d.ts +9 -0
  196. package/lib/models/address-option.model.d.ts +9 -0
  197. package/lib/models/address.model.d.ts +9 -0
  198. package/lib/models/contact-details.model.d.ts +4 -0
  199. package/lib/models/feature-user.d.ts +4 -6
  200. package/lib/models/filter.model.d.ts +42 -9
  201. package/lib/models/index.d.ts +4 -0
  202. package/lib/models/location.model.d.ts +12 -12
  203. package/lib/models/person.model.d.ts +5 -3
  204. package/lib/models/public_api.d.ts +1 -0
  205. package/lib/models/search-options.model.d.ts +1 -1
  206. package/lib/models/service-message.model.d.ts +8 -0
  207. package/lib/models/task-name.model.d.ts +4 -0
  208. package/lib/models/user-access-type.model.d.ts +6 -0
  209. package/lib/models/user-details.model.d.ts +2 -0
  210. package/lib/pipes/capitalize/capitalize.pipe.d.ts +7 -0
  211. package/lib/pipes/index.d.ts +1 -0
  212. package/lib/services/address/address-parser.d.ts +17 -0
  213. package/lib/services/address/address-type.enum.d.ts +5 -0
  214. package/lib/services/address/address.service.d.ts +15 -0
  215. package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +3 -0
  216. package/lib/services/cookie/cookie.service.d.ts +3 -0
  217. package/lib/services/feature-toggle/feature-toggle.guard.d.ts +8 -2
  218. package/lib/services/feature-toggle/feature-toggle.service.d.ts +4 -0
  219. package/lib/services/feature-toggle/launch-darkly.service.d.ts +14 -10
  220. package/lib/services/filter/filter.service.d.ts +6 -0
  221. package/lib/services/find-person/find-person.service.d.ts +5 -2
  222. package/lib/services/google-analytics/google-analytics.service.d.ts +4 -1
  223. package/lib/services/google-tag-manager/google-tag-manager.service.d.ts +5 -1
  224. package/lib/services/loading/loading.service.d.ts +3 -0
  225. package/lib/services/locations/location.service.d.ts +4 -1
  226. package/lib/services/manage-session/manage-session.services.d.ts +3 -0
  227. package/lib/services/public-api.d.ts +2 -0
  228. package/lib/services/ref-data/index.d.ts +3 -0
  229. package/lib/services/ref-data/models/ref-data-htmcs-service.model.d.ts +13 -0
  230. package/lib/services/ref-data/models/ref-data-region.model.d.ts +4 -0
  231. package/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.d.ts +8 -0
  232. package/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.d.ts +18 -0
  233. package/lib/services/ref-data/ref-data.service.d.ts +17 -0
  234. package/lib/services/role-guard/role.guard.d.ts +7 -3
  235. package/lib/services/role-guard/role.service.d.ts +8 -4
  236. package/lib/services/{session-storage → storage/session-storage}/session-storage.service.d.ts +3 -0
  237. package/lib/services/task-name/task-name.service.d.ts +17 -0
  238. package/lib/services/timeout-notifications/timeout-notifications.service.d.ts +8 -2
  239. package/package.json +21 -11
  240. package/public-api.d.ts +1 -0
  241. package/bundles/hmcts-rpx-xui-common-lib.umd.js +0 -5139
  242. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +0 -1
  243. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +0 -2
  244. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +0 -1
  245. package/esm2015/hmcts-rpx-xui-common-lib.js +0 -70
  246. package/esm2015/lib/components/accessibility/accessibility.component.js +0 -14
  247. package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +0 -177
  248. package/esm2015/lib/components/contact-details/contact-details.component.js +0 -17
  249. package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +0 -68
  250. package/esm2015/lib/components/due-date/due-date.component.js +0 -115
  251. package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +0 -28
  252. package/esm2015/lib/components/find-location/find-location.component.js +0 -124
  253. package/esm2015/lib/components/find-person/find-person.component.js +0 -118
  254. package/esm2015/lib/components/find-service/find-service.component.js +0 -31
  255. package/esm2015/lib/components/generic-filter/generic-filter-utils.js +0 -21
  256. package/esm2015/lib/components/generic-filter/generic-filter.component.js +0 -387
  257. package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +0 -27
  258. package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +0 -25
  259. package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +0 -25
  260. package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +0 -18
  261. package/esm2015/lib/components/pagination/pagination.component.js +0 -28
  262. package/esm2015/lib/components/public_api.js +0 -33
  263. package/esm2015/lib/components/search-judicials/search-judicials.component.js +0 -126
  264. package/esm2015/lib/components/search-location/search-location.component.js +0 -133
  265. package/esm2015/lib/components/search-service/search-service.component.js +0 -31
  266. package/esm2015/lib/components/search-venue/search-venue.component.js +0 -123
  267. package/esm2015/lib/components/selected-case/selected-case.component.js +0 -158
  268. package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +0 -36
  269. package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +0 -49
  270. package/esm2015/lib/components/service-message/service-message.component.js +0 -22
  271. package/esm2015/lib/components/service-messages/service-messages.component.js +0 -48
  272. package/esm2015/lib/components/share-case/share-case.component.js +0 -205
  273. package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +0 -34
  274. package/esm2015/lib/components/tab/tab.component.js +0 -21
  275. package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +0 -22
  276. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +0 -13
  277. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +0 -13
  278. package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +0 -16
  279. package/esm2015/lib/components/user-details/user-details.component.js +0 -41
  280. package/esm2015/lib/components/user-list/user-list.component.js +0 -33
  281. package/esm2015/lib/components/user-select/user-select.component.js +0 -58
  282. package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +0 -42
  283. package/esm2015/lib/directives/let/let.directive.js +0 -30
  284. package/esm2015/lib/exui-common-lib.module.js +0 -160
  285. package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +0 -31
  286. package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +0 -21
  287. package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +0 -64
  288. package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +0 -22
  289. package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -28
  290. package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +0 -35
  291. package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +0 -23
  292. package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +0 -34
  293. package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +0 -21
  294. package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +0 -33
  295. package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +0 -21
  296. package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +0 -27
  297. package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +0 -39
  298. package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +0 -27
  299. package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +0 -23
  300. package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +0 -48
  301. package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +0 -19
  302. package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +0 -41
  303. package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +0 -28
  304. package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +0 -23
  305. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +0 -15
  306. package/esm2015/lib/gov-ui/directives/remove-host.directive.js +0 -29
  307. package/esm2015/lib/gov-ui/gov-ui.service.js +0 -13
  308. package/esm2015/lib/gov-ui/models/banner-data-model.js +0 -2
  309. package/esm2015/lib/gov-ui/models/checkboxes-model.js +0 -2
  310. package/esm2015/lib/gov-ui/models/isession-storage.interface.js +0 -2
  311. package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +0 -22
  312. package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +0 -22
  313. package/esm2015/lib/gov-ui/validators/radio-group.validator.js +0 -15
  314. package/esm2015/lib/models/feature-user.js +0 -5
  315. package/esm2015/lib/models/filter.model.js +0 -3
  316. package/esm2015/lib/models/index.js +0 -15
  317. package/esm2015/lib/models/location.model.js +0 -7
  318. package/esm2015/lib/models/person.model.js +0 -19
  319. package/esm2015/lib/models/user-details.model.js +0 -2
  320. package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +0 -157
  321. package/esm2015/lib/services/cookie/cookie.service.js +0 -47
  322. package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +0 -35
  323. package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +0 -27
  324. package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +0 -59
  325. package/esm2015/lib/services/filter/filter.service.js +0 -64
  326. package/esm2015/lib/services/find-person/find-person.service.js +0 -106
  327. package/esm2015/lib/services/google-analytics/google-analytics.service.js +0 -68
  328. package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +0 -71
  329. package/esm2015/lib/services/locations/location.service.js +0 -39
  330. package/esm2015/lib/services/public-api.js +0 -16
  331. package/esm2015/lib/services/role-guard/role.guard.js +0 -37
  332. package/esm2015/lib/services/role-guard/role.service.js +0 -20
  333. package/esm2015/lib/services/session-storage/session-storage.service.js +0 -41
  334. package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +0 -92
  335. package/fesm2015/hmcts-rpx-xui-common-lib.js +0 -4172
  336. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +0 -1
  337. package/hmcts-rpx-xui-common-lib.d.ts +0 -69
  338. package/hmcts-rpx-xui-common-lib.metadata.json +0 -1
  339. package/lib/gov-ui/models/banner-data-model.d.ts +0 -4
  340. package/lib/gov-ui/models/isession-storage.interface.d.ts +0 -4
  341. package/lib/gov-ui/util/session-storage/session-storage-utils.d.ts +0 -6
  342. /package/{esm2015/lib/components/index.js → esm2022/lib/components/index.mjs} +0 -0
  343. /package/{esm2015/lib/directives/index.js → esm2022/lib/directives/index.mjs} +0 -0
  344. /package/{esm2015/lib/directives/public-api.js → esm2022/lib/directives/public-api.mjs} +0 -0
  345. /package/{esm2015/lib/gov-ui/components/index.js → esm2022/lib/gov-ui/components/index.mjs} +0 -0
  346. /package/{esm2015/lib/gov-ui/components/public_api.js → esm2022/lib/gov-ui/components/public_api.mjs} +0 -0
  347. /package/{esm2015/lib/gov-ui/index.js → esm2022/lib/gov-ui/index.mjs} +0 -0
  348. /package/{esm2015/lib/gov-ui/models/error-messages-model.js → esm2022/lib/gov-ui/models/error-messages-model.mjs} +0 -0
  349. /package/{esm2015/lib/gov-ui/models/index.js → esm2022/lib/gov-ui/models/index.mjs} +0 -0
  350. /package/{esm2015/lib/gov-ui/public_api.js → esm2022/lib/gov-ui/public_api.mjs} +0 -0
  351. /package/{esm2015/lib/gov-ui/validators/index.js → esm2022/lib/gov-ui/validators/index.mjs} +0 -0
  352. /package/{esm2015/lib/gov-ui/validators/public_api.js → esm2022/lib/gov-ui/validators/public_api.mjs} +0 -0
  353. /package/{esm2015/lib/models/case-share.model.js → esm2022/lib/models/case-share.model.mjs} +0 -0
  354. /package/{esm2015/lib/models/due-date.model.js → esm2022/lib/models/due-date.model.mjs} +0 -0
  355. /package/{esm2015/lib/models/idle-config.model.js → esm2022/lib/models/idle-config.model.mjs} +0 -0
  356. /package/{esm2015/lib/models/pagination.model.js → esm2022/lib/models/pagination.model.mjs} +0 -0
  357. /package/{esm2015/lib/models/tcDocument.model.js → esm2022/lib/models/tcDocument.model.mjs} +0 -0
  358. /package/{esm2015/lib/models/timeout-notification.model.js → esm2022/lib/models/timeout-notification.model.mjs} +0 -0
  359. /package/{esm2015/lib/models/user.model.js → esm2022/lib/models/user.model.mjs} +0 -0
  360. /package/{esm2015/lib/services/index.js → esm2022/lib/services/index.mjs} +0 -0
  361. /package/{esm2015/lib/window.js → esm2022/lib/window.mjs} +0 -0
@@ -0,0 +1,45 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "../gov-uk-error-message/gov-uk-error-message.component";
5
+ import * as i3 from "../gov-uk-fieldset/gov-uk-fieldset.component";
6
+ const _c0 = ["*"];
7
+ const _c1 = a0 => ({ "govuk-form-group--error": a0 });
8
+ const _c2 = (a0, a1, a2, a3) => ({ legend: a0, classes: "govuk-label--m", id: a1, hint: a2, isPageHeading: a3 });
9
+ const _c3 = a0 => ({ id: a0 });
10
+ /*
11
+ * Gov Uk Form Group Wrapper
12
+ * Used to wrap group form elements in html tags below such as
13
+ * gov-uk-checkboxes and radio buttons
14
+ * and errorMessage messages
15
+ * */
16
+ export class GovUkFormGroupWrapperComponent {
17
+ constructor() { }
18
+ static { this.ɵfac = function GovUkFormGroupWrapperComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkFormGroupWrapperComponent)(); }; }
19
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkFormGroupWrapperComponent, selectors: [["xuilib-gov-uk-form-group-wrapper"]], inputs: { error: "error", group: "group", config: "config" }, ngContentSelectors: _c0, decls: 4, vars: 15, consts: [[1, "govuk-form-group", 3, "ngClass"], [3, "config", "errorMessage"]], template: function GovUkFormGroupWrapperComponent_Template(rf, ctx) { if (rf & 1) {
20
+ i0.ɵɵprojectionDef();
21
+ i0.ɵɵelementStart(0, "div", 0)(1, "xuilib-gov-uk-fieldset", 1);
22
+ i0.ɵɵelement(2, "xuilib-gov-uk-error-message", 1);
23
+ i0.ɵɵprojection(3);
24
+ i0.ɵɵelementEnd()();
25
+ } if (rf & 2) {
26
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1, ctx.error == null ? null : ctx.error.isInvalid));
27
+ i0.ɵɵattribute("formGroupName", ctx.group);
28
+ i0.ɵɵadvance();
29
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction4(8, _c2, ctx.config.legend, ctx.config.key, ctx.config.hint, ctx.config.isPageHeading))("errorMessage", ctx.error);
30
+ i0.ɵɵadvance();
31
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction1(13, _c3, ctx.group))("errorMessage", ctx.error);
32
+ } }, dependencies: [i1.NgClass, i2.GovUkErrorMessageComponent, i3.GovUkFieldsetComponent], encapsulation: 2 }); }
33
+ }
34
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkFormGroupWrapperComponent, [{
35
+ type: Component,
36
+ args: [{ selector: 'xuilib-gov-uk-form-group-wrapper', template: "<div class=\"govuk-form-group\" [attr.formGroupName]=\"group\" [ngClass]=\"{'govuk-form-group--error': (error?.isInvalid)}\">\n <xuilib-gov-uk-fieldset\n [config]=\"{legend: config.legend, classes: 'govuk-label--m', id: config.key, hint: config.hint, isPageHeading: config.isPageHeading}\"\n [errorMessage]=\"error\">\n\n <xuilib-gov-uk-error-message [config]=\"{id: group}\" [errorMessage]=\"error\"></xuilib-gov-uk-error-message>\n\n <ng-content></ng-content>\n\n </xuilib-gov-uk-fieldset>\n</div>" }]
37
+ }], () => [], { error: [{
38
+ type: Input
39
+ }], group: [{
40
+ type: Input
41
+ }], config: [{
42
+ type: Input
43
+ }] }); })();
44
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkFormGroupWrapperComponent, { className: "GovUkFormGroupWrapperComponent", filePath: "lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.ts", lineNumber: 14 }); })();
45
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZvcm0tZ3JvdXAtd3JhcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9nb3YtdWstZm9ybS1ncm91cC13cmFwcGVyL2dvdi11ay1mb3JtLWdyb3VwLXdyYXBwZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ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LmlzUGFnZUhlYWRpbmd9XCJcbiAgICBbZXJyb3JNZXNzYWdlXT1cImVycm9yXCI+XG5cbiAgICA8eHVpbGliLWdvdi11ay1lcnJvci1tZXNzYWdlIFtjb25maWddPVwie2lkOiBncm91cH1cIiBbZXJyb3JNZXNzYWdlXT1cImVycm9yXCI+PC94dWlsaWItZ292LXVrLWVycm9yLW1lc3NhZ2U+XG5cbiAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG5cbiAgPC94dWlsaWItZ292LXVrLWZpZWxkc2V0PlxuPC9kaXY+Il19
@@ -0,0 +1,71 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@angular/forms";
7
+ import * as i3 from "../gov-uk-label/gov-uk-label.component";
8
+ import * as i4 from "../gov-uk-error-message/gov-uk-error-message.component";
9
+ import * as i5 from "rpx-xui-translation";
10
+ const _c0 = a0 => ({ "govuk-form-group--error": a0 });
11
+ const _c1 = a0 => ({ "govuk-input--error": a0 });
12
+ function GovUkInputComponent_span_2_Template(rf, ctx) { if (rf & 1) {
13
+ i0.ɵɵelementStart(0, "span", 5);
14
+ i0.ɵɵtext(1);
15
+ i0.ɵɵpipe(2, "rpxTranslate");
16
+ i0.ɵɵelementEnd();
17
+ } if (rf & 2) {
18
+ const ctx_r0 = i0.ɵɵnextContext();
19
+ i0.ɵɵproperty("id", ctx_r0.config.id + "-hint");
20
+ i0.ɵɵadvance();
21
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r0.config.hint), "\n");
22
+ } }
23
+ /*
24
+ * Gov UK Input component
25
+ * Responsible for displaying input, hint and error messages
26
+ * @prop errorMessages - array of messages
27
+ * @prop focusOn - passing the FormGroup
28
+ * @prop config - adding configuration
29
+ * */
30
+ export class GovUkInputComponent {
31
+ constructor() { }
32
+ // { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
33
+ ngOnInit() {
34
+ this.config.classes = typeof (this.config.classes) === 'string' ? this.config.classes : 'govuk-label govuk-label--m';
35
+ }
36
+ setDescribedBy() {
37
+ return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
38
+ }
39
+ static { this.ɵfac = function GovUkInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkInputComponent)(); }; }
40
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkInputComponent, selectors: [["xuilib-gov-uk-input"]], inputs: { errorMessage: "errorMessage", group: "group", config: "config" }, decls: 5, vars: 19, consts: [[1, "govuk-form-group", "gov-uk-input", 3, "formGroup", "ngClass"], [3, "config"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [3, "config", "errorMessage"], [1, "govuk-input", 3, "ngClass", "id", "name", "type", "formControlName"], [1, "govuk-hint", 3, "id"]], template: function GovUkInputComponent_Template(rf, ctx) { if (rf & 1) {
41
+ i0.ɵɵelementStart(0, "div", 0);
42
+ i0.ɵɵelement(1, "xuilib-gov-label", 1);
43
+ i0.ɵɵtemplate(2, GovUkInputComponent_span_2_Template, 3, 4, "span", 2);
44
+ i0.ɵɵelement(3, "xuilib-gov-uk-error-message", 3)(4, "input", 4);
45
+ i0.ɵɵelementEnd();
46
+ } if (rf & 2) {
47
+ i0.ɵɵproperty("formGroup", ctx.group)("ngClass", i0.ɵɵpureFunction1(15, _c0, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid));
48
+ i0.ɵɵadvance();
49
+ i0.ɵɵproperty("config", ctx.config);
50
+ i0.ɵɵadvance();
51
+ i0.ɵɵproperty("ngIf", ctx.config.hint);
52
+ i0.ɵɵadvance();
53
+ i0.ɵɵproperty("config", ctx.config)("errorMessage", ctx.errorMessage);
54
+ i0.ɵɵadvance();
55
+ i0.ɵɵclassProp("govuk-!-width-full", ctx.config.fullWidth);
56
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c1, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id)("name", ctx.config.name)("type", ctx.config.type)("formControlName", ctx.config.name);
57
+ i0.ɵɵattribute("aria-invalid", ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid)("aria-describedby", ctx.setDescribedBy());
58
+ } }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.RpxTranslatePipe], styles: [".gov-uk-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled{background:#b1b4b6}"] }); }
59
+ }
60
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkInputComponent, [{
61
+ type: Component,
62
+ args: [{ selector: 'xuilib-gov-uk-input', template: "<div class=\"govuk-form-group gov-uk-input\" [formGroup]=\"group\"\n[ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n\n<span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint | rpxTranslate}}\n</span>\n\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<input class=\"govuk-input\"\n [class.govuk-!-width-full]=\"config.fullWidth\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\"\n [name]=\"config.name\"\n [type]=\"config.type\"\n [attr.aria-invalid]=\"errorMessage?.isInvalid\"\n [formControlName]=\"config.name\"\n [attr.aria-describedby]='setDescribedBy()'>\n</div>\n", styles: [".gov-uk-input input:disabled{background:#b1b4b6}\n"] }]
63
+ }], () => [], { errorMessage: [{
64
+ type: Input
65
+ }], group: [{
66
+ type: Input
67
+ }], config: [{
68
+ type: Input
69
+ }] }); })();
70
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkInputComponent, { className: "GovUkInputComponent", filePath: "lib/gov-ui/components/gov-uk-input/gov-uk-input.component.ts", lineNumber: 17 }); })();
71
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1pbnB1dC9nb3YtdWstaW5wdXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWlucHV0L2dvdi11ay1pbnB1dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMENBQTBDLENBQUM7Ozs7Ozs7Ozs7SUNFL0UsK0JBQXVFO0lBQ3JFLFlBQ0Y7O0lBQUEsaUJBQU87OztJQUZtQiwrQ0FBeUI7SUFDakQsY0FDRjtJQURFLDBFQUNGOztBREhBOzs7Ozs7SUFNSTtBQU1KLE1BQU0sT0FBTyxtQkFBbUI7SUFDOUIsZ0JBQWdCLENBQUM7SUFJakIsb0hBQW9IO0lBRTdHLFFBQVE7UUFDYixJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sR0FB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dPVwiY29uZmlnLmZ1bGxXaWR0aFwiXG4gICAgICAgW25nQ2xhc3NdPVwieydnb3Z1ay1pbnB1dC0tZXJyb3InOiBlcnJvck1lc3NhZ2U/LmlzSW52YWxpZH1cIlxuICAgICAgIFtpZF09XCJjb25maWcuaWRcIlxuICAgICAgIFtuYW1lXT1cImNvbmZpZy5uYW1lXCJcbiAgICAgICBbdHlwZV09XCJjb25maWcudHlwZVwiXG4gICAgICAgW2F0dHIuYXJpYS1pbnZhbGlkXT1cImVycm9yTWVzc2FnZT8uaXNJbnZhbGlkXCJcbiAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cImNvbmZpZy5uYW1lXCJcbiAgICAgICBbYXR0ci5hcmlhLWRlc2NyaWJlZGJ5XT0nc2V0RGVzY3JpYmVkQnkoKSc+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,84 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "rpx-xui-translation";
5
+ function GovUkLabelComponent_h1_0_label_1_span_4_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "span", 5);
7
+ i0.ɵɵtext(1, "(optional)");
8
+ i0.ɵɵelementEnd();
9
+ } }
10
+ function GovUkLabelComponent_h1_0_label_1_Template(rf, ctx) { if (rf & 1) {
11
+ i0.ɵɵelementStart(0, "label", 3)(1, "span");
12
+ i0.ɵɵtext(2);
13
+ i0.ɵɵpipe(3, "rpxTranslate");
14
+ i0.ɵɵelementEnd();
15
+ i0.ɵɵtemplate(4, GovUkLabelComponent_h1_0_label_1_span_4_Template, 2, 0, "span", 4);
16
+ i0.ɵɵelementEnd();
17
+ } if (rf & 2) {
18
+ const ctx_r0 = i0.ɵɵnextContext(2);
19
+ i0.ɵɵclassMap(ctx_r0.config.classes + " govuk-label");
20
+ i0.ɵɵproperty("for", ctx_r0.config.id);
21
+ i0.ɵɵadvance(2);
22
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, ctx_r0.config.label));
23
+ i0.ɵɵadvance(2);
24
+ i0.ɵɵproperty("ngIf", ctx_r0.config.optional);
25
+ } }
26
+ function GovUkLabelComponent_h1_0_Template(rf, ctx) { if (rf & 1) {
27
+ i0.ɵɵelementStart(0, "h1");
28
+ i0.ɵɵtemplate(1, GovUkLabelComponent_h1_0_label_1_Template, 5, 7, "label", 2);
29
+ i0.ɵɵelementEnd();
30
+ } if (rf & 2) {
31
+ const ctx_r0 = i0.ɵɵnextContext();
32
+ i0.ɵɵadvance();
33
+ i0.ɵɵproperty("ngIf", ctx_r0.config.label);
34
+ } }
35
+ function GovUkLabelComponent_ng_template_1_label_0_span_3_Template(rf, ctx) { if (rf & 1) {
36
+ i0.ɵɵelementStart(0, "span", 5);
37
+ i0.ɵɵtext(1, "(optional)");
38
+ i0.ɵɵelementEnd();
39
+ } }
40
+ function GovUkLabelComponent_ng_template_1_label_0_Template(rf, ctx) { if (rf & 1) {
41
+ i0.ɵɵelementStart(0, "label", 3)(1, "span");
42
+ i0.ɵɵtext(2);
43
+ i0.ɵɵelementEnd();
44
+ i0.ɵɵtemplate(3, GovUkLabelComponent_ng_template_1_label_0_span_3_Template, 2, 0, "span", 4);
45
+ i0.ɵɵelementEnd();
46
+ } if (rf & 2) {
47
+ const ctx_r0 = i0.ɵɵnextContext(2);
48
+ i0.ɵɵclassMap(ctx_r0.config.classes + " govuk-label");
49
+ i0.ɵɵproperty("for", ctx_r0.config.id);
50
+ i0.ɵɵadvance(2);
51
+ i0.ɵɵtextInterpolate(ctx_r0.config.label);
52
+ i0.ɵɵadvance();
53
+ i0.ɵɵproperty("ngIf", ctx_r0.config.optional);
54
+ } }
55
+ function GovUkLabelComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
56
+ i0.ɵɵtemplate(0, GovUkLabelComponent_ng_template_1_label_0_Template, 4, 5, "label", 2);
57
+ } if (rf & 2) {
58
+ const ctx_r0 = i0.ɵɵnextContext();
59
+ i0.ɵɵproperty("ngIf", ctx_r0.config.label);
60
+ } }
61
+ /*
62
+ * Gov UK Label component
63
+ * Responsible for displaying label tag
64
+ * @prop isPageHading - boolean to display h1
65
+ * @prop config - obj with properties
66
+ * */
67
+ export class GovUkLabelComponent {
68
+ constructor() { }
69
+ static { this.ɵfac = function GovUkLabelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkLabelComponent)(); }; }
70
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkLabelComponent, selectors: [["xuilib-gov-label"]], inputs: { config: "config" }, decls: 3, vars: 2, consts: [["noHeading", ""], [4, "ngIf", "ngIfElse"], [3, "for", "class", 4, "ngIf"], [3, "for"], ["class", "govuk-label__optional", 4, "ngIf"], [1, "govuk-label__optional"]], template: function GovUkLabelComponent_Template(rf, ctx) { if (rf & 1) {
71
+ i0.ɵɵtemplate(0, GovUkLabelComponent_h1_0_Template, 2, 1, "h1", 1)(1, GovUkLabelComponent_ng_template_1_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
72
+ } if (rf & 2) {
73
+ const noHeading_r2 = i0.ɵɵreference(2);
74
+ i0.ɵɵproperty("ngIf", ctx.config.isPageHeading)("ngIfElse", noHeading_r2);
75
+ } }, dependencies: [i1.NgIf, i2.RpxTranslatePipe], styles: [".govuk-label[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.govuk-label__optional[_ngcontent-%COMP%]{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}"] }); }
76
+ }
77
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkLabelComponent, [{
78
+ type: Component,
79
+ args: [{ selector: 'xuilib-gov-label', template: "<h1 *ngIf=\"config.isPageHeading else noHeading\">\n <label *ngIf=\"config.label\" [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label | rpxTranslate }}</span>\n <span class=\"govuk-label__optional\" *ngIf=\"config.optional\">(optional)</span>\n </label>\n</h1>\n<ng-template #noHeading>\n <label *ngIf=\"config.label\" [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label }}</span>\n <span class=\"govuk-label__optional\" *ngIf=\"config.optional\">(optional)</span>\n </label>\n</ng-template>\n", styles: [".govuk-label{display:flex;align-items:center;flex-wrap:wrap}.govuk-label__optional{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}\n"] }]
80
+ }], () => [], { config: [{
81
+ type: Input
82
+ }] }); })();
83
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkLabelComponent, { className: "GovUkLabelComponent", filePath: "lib/gov-ui/components/gov-uk-label/gov-uk-label.component.ts", lineNumber: 14 }); })();
84
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1sYWJlbC9nb3YtdWstbGFiZWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWxhYmVsL2dvdi11ay1sYWJlbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQzs7Ozs7SUNHM0MsK0JBQTREO0lBQUEsMEJBQVU7SUFBQSxpQkFBTzs7O0lBRDdFLEFBREYsZ0NBQXdGLFdBQ2hGO0lBQUEsWUFBaUM7O0lBQUEsaU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AgPHNwYW4+e3sgY29uZmlnLmxhYmVsIH19PC9zcGFuPlxuICAgIDxzcGFuIGNsYXNzPVwiZ292dWstbGFiZWxfX29wdGlvbmFsXCIgKm5nSWY9XCJjb25maWcub3B0aW9uYWxcIj4ob3B0aW9uYWwpPC9zcGFuPlxuICA8L2xhYmVsPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
@@ -0,0 +1,48 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/forms";
5
+ import * as i2 from "../gov-uk-label/gov-uk-label.component";
6
+ import * as i3 from "../../directives/remove-host.directive";
7
+ /*
8
+ * Gov Uk Radio state-less Component responsible for
9
+ * displaying radios input and hint
10
+ *
11
+ * */
12
+ export class GovUkRadioComponent {
13
+ constructor() { }
14
+ /*
15
+ * ngOnInIt
16
+ * needed to manage the focus id if passed on in config
17
+ * si it can focus on element when user clicks on error message in the header.
18
+ **/
19
+ ngOnInit() {
20
+ const id = this.config.focusOn ? this.config.focusOn : this.config.value;
21
+ this.config.id = id;
22
+ this.config.classes = this.config.classes ?
23
+ this.config.classes.concat(' govuk-radios__label') : 'govuk-radios__label';
24
+ }
25
+ static { this.ɵfac = function GovUkRadioComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkRadioComponent)(); }; }
26
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkRadioComponent, selectors: [["xuilib-gov-radio"]], inputs: { group: "group", config: "config" }, decls: 3, vars: 8, consts: [[1, "govuk-radios__item", 3, "formGroup"], ["type", "radio", 3, "className", "id", "value", "name", "formControl"], ["appRemoveHost", "", 3, "config"]], template: function GovUkRadioComponent_Template(rf, ctx) { if (rf & 1) {
27
+ i0.ɵɵelementStart(0, "div", 0);
28
+ i0.ɵɵelement(1, "input", 1)(2, "xuilib-gov-label", 2);
29
+ i0.ɵɵelementEnd();
30
+ } if (rf & 2) {
31
+ i0.ɵɵproperty("formGroup", ctx.group);
32
+ i0.ɵɵadvance();
33
+ i0.ɵɵproperty("className", "govuk-radios__input " + ctx.config.classes)("id", ctx.config.id)("value", ctx.config.value)("name", ctx.config.name)("formControl", ctx.group.controls[ctx.config.name]);
34
+ i0.ɵɵattribute("data-aria-controls", ctx.config.id);
35
+ i0.ɵɵadvance();
36
+ i0.ɵɵproperty("config", ctx.config);
37
+ } }, dependencies: [i1.DefaultValueAccessor, i1.RadioControlValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.FormControlDirective, i1.FormGroupDirective, i2.GovUkLabelComponent, i3.RemoveHostDirective], encapsulation: 2 }); }
38
+ }
39
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkRadioComponent, [{
40
+ type: Component,
41
+ args: [{ selector: 'xuilib-gov-radio', template: "<div class=\"govuk-radios__item\" [formGroup]=\"group\">\n <input [className]=\"'govuk-radios__input ' + config.classes\"\n [id]=\"config.id\"\n [value]=\"config.value\" type=\"radio\"\n [attr.data-aria-controls]=\"config.id\"\n [name]=\"config.name\"\n [formControl]=\"group.controls[config.name]\">\n <xuilib-gov-label appRemoveHost [config]=\"config\"></xuilib-gov-label>\n</div>\n" }]
42
+ }], () => [], { group: [{
43
+ type: Input
44
+ }], config: [{
45
+ type: Input
46
+ }] }); })();
47
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkRadioComponent, { className: "GovUkRadioComponent", filePath: "lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.ts", lineNumber: 13 }); })();
48
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXJhZGlvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2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G4gICAgICAgICBbbmFtZV09XCJjb25maWcubmFtZVwiXG4gICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZ3JvdXAuY29udHJvbHNbY29uZmlnLm5hbWVdXCI+XG4gIDx4dWlsaWItZ292LWxhYmVsIGFwcFJlbW92ZUhvc3QgW2NvbmZpZ109XCJjb25maWdcIj48L3h1aWxpYi1nb3YtbGFiZWw+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,42 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "../gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component";
5
+ import * as i3 from "../gov-uk-radio/gov-uk-radio.component";
6
+ import * as i4 from "../../directives/remove-host.directive";
7
+ function GovUkRadiosComponent_xuilib_gov_radio_2_Template(rf, ctx) { if (rf & 1) {
8
+ i0.ɵɵelement(0, "xuilib-gov-radio", 3);
9
+ } if (rf & 2) {
10
+ const item_r1 = ctx.$implicit;
11
+ const ctx_r1 = i0.ɵɵnextContext();
12
+ i0.ɵɵproperty("group", ctx_r1.options.group)("config", item_r1.config);
13
+ } }
14
+ /*
15
+ * Radios component - state less
16
+ * Responsible for displaying a list of gov-uk-radio components
17
+ * @param: options - object with data for wrapper (fieldset) and
18
+ * array of items for gov-uk-checkboxes
19
+ * @param: errors - array of error stings
20
+ * */
21
+ export class GovUkRadiosComponent {
22
+ static { this.ɵfac = function GovUkRadiosComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkRadiosComponent)(); }; }
23
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkRadiosComponent, selectors: [["xuilib-gov-uk-radios"]], inputs: { options: "options", errors: "errors" }, decls: 3, vars: 4, consts: [[3, "error", "config", "group"], [1, "govuk-radios"], ["appRemoveHost", "", 3, "group", "config", 4, "ngFor", "ngForOf"], ["appRemoveHost", "", 3, "group", "config"]], template: function GovUkRadiosComponent_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementStart(0, "xuilib-gov-uk-form-group-wrapper", 0)(1, "div", 1);
25
+ i0.ɵɵtemplate(2, GovUkRadiosComponent_xuilib_gov_radio_2_Template, 1, 2, "xuilib-gov-radio", 2);
26
+ i0.ɵɵelementEnd()();
27
+ } if (rf & 2) {
28
+ i0.ɵɵproperty("error", ctx.errors)("config", ctx.options.config)("group", ctx.options.key);
29
+ i0.ɵɵadvance(2);
30
+ i0.ɵɵproperty("ngForOf", ctx.options.items);
31
+ } }, dependencies: [i1.NgForOf, i2.GovUkFormGroupWrapperComponent, i3.GovUkRadioComponent, i4.RemoveHostDirective], encapsulation: 2 }); }
32
+ }
33
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkRadiosComponent, [{
34
+ type: Component,
35
+ args: [{ selector: 'xuilib-gov-uk-radios', template: "<xuilib-gov-uk-form-group-wrapper\n[error]=\"errors\"\n[config]=\"options.config\"\n[group]=\"options.key\">\n<div class=\"govuk-radios\">\n <xuilib-gov-radio\n appRemoveHost\n *ngFor=\"let item of options.items\"\n [group]=\"options.group\"\n [config]=\"item.config\">\n </xuilib-gov-radio>\n</div>\n</xuilib-gov-uk-form-group-wrapper>" }]
36
+ }], null, { options: [{
37
+ type: Input
38
+ }], errors: [{
39
+ type: Input
40
+ }] }); })();
41
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkRadiosComponent, { className: "GovUkRadiosComponent", filePath: "lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.ts", lineNumber: 16 }); })();
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXJhZGlvcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpY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WstZm9ybS1ncm91cC13cmFwcGVyPiJdfQ==
@@ -0,0 +1,80 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@angular/forms";
7
+ import * as i3 from "../gov-uk-label/gov-uk-label.component";
8
+ import * as i4 from "../gov-uk-error-message/gov-uk-error-message.component";
9
+ import * as i5 from "rpx-xui-translation";
10
+ const _c0 = a0 => ({ "govuk-form-group--error": a0 });
11
+ function GovUkSelectComponent_span_2_Template(rf, ctx) { if (rf & 1) {
12
+ i0.ɵɵelementStart(0, "span", 6);
13
+ i0.ɵɵtext(1);
14
+ i0.ɵɵpipe(2, "rpxTranslate");
15
+ i0.ɵɵelementEnd();
16
+ } if (rf & 2) {
17
+ const ctx_r0 = i0.ɵɵnextContext();
18
+ i0.ɵɵproperty("id", ctx_r0.config.id + "-hint");
19
+ i0.ɵɵadvance();
20
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r0.config.hint), "\n");
21
+ } }
22
+ function GovUkSelectComponent_option_5_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵelementStart(0, "option", 7);
24
+ i0.ɵɵtext(1);
25
+ i0.ɵɵpipe(2, "rpxTranslate");
26
+ i0.ɵɵelementEnd();
27
+ } if (rf & 2) {
28
+ const item_r2 = ctx.$implicit;
29
+ i0.ɵɵpropertyInterpolate("value", item_r2.value);
30
+ i0.ɵɵadvance();
31
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, item_r2.label));
32
+ } }
33
+ /*
34
+ * Gov Uk Select Dumb Component responsible for
35
+ * dropdown input.
36
+ * */
37
+ export class GovUkSelectComponent {
38
+ constructor() { }
39
+ setDescribedBy() {
40
+ return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
41
+ }
42
+ static { this.ɵfac = function GovUkSelectComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkSelectComponent)(); }; }
43
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkSelectComponent, selectors: [["xuilib-gov-select"]], inputs: { errorMessage: "errorMessage", group: "group", config: "config", items: "items" }, decls: 6, vars: 15, consts: [[1, "govuk-form-group", 3, "formGroup", "ngClass"], [3, "config"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [3, "config", "errorMessage"], [1, "govuk-select", 3, "id", "name", "formControlName"], [3, "value", 4, "ngFor", "ngForOf"], [1, "govuk-hint", 3, "id"], [3, "value"]], template: function GovUkSelectComponent_Template(rf, ctx) { if (rf & 1) {
44
+ i0.ɵɵelementStart(0, "div", 0);
45
+ i0.ɵɵelement(1, "xuilib-gov-label", 1);
46
+ i0.ɵɵtemplate(2, GovUkSelectComponent_span_2_Template, 3, 4, "span", 2);
47
+ i0.ɵɵelement(3, "xuilib-gov-uk-error-message", 3);
48
+ i0.ɵɵelementStart(4, "select", 4);
49
+ i0.ɵɵtemplate(5, GovUkSelectComponent_option_5_Template, 3, 4, "option", 5);
50
+ i0.ɵɵelementEnd()();
51
+ } if (rf & 2) {
52
+ i0.ɵɵproperty("formGroup", ctx.group)("ngClass", i0.ɵɵpureFunction1(13, _c0, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid));
53
+ i0.ɵɵadvance();
54
+ i0.ɵɵproperty("config", ctx.config);
55
+ i0.ɵɵadvance();
56
+ i0.ɵɵproperty("ngIf", ctx.config.hint);
57
+ i0.ɵɵadvance();
58
+ i0.ɵɵproperty("config", ctx.config)("errorMessage", ctx.errorMessage);
59
+ i0.ɵɵadvance();
60
+ i0.ɵɵclassProp("govuk-!-width-full", ctx.config.fullWidth);
61
+ i0.ɵɵproperty("id", ctx.config.id)("name", ctx.config.id)("formControlName", ctx.config.id);
62
+ i0.ɵɵattribute("aria-describedby", ctx.setDescribedBy());
63
+ i0.ɵɵadvance();
64
+ i0.ɵɵproperty("ngForOf", ctx.items);
65
+ } }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.RpxTranslatePipe], encapsulation: 2 }); }
66
+ }
67
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkSelectComponent, [{
68
+ type: Component,
69
+ args: [{ selector: 'xuilib-gov-select', template: "<div class=\"govuk-form-group\" [formGroup]=\"group\"\n[ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint | rpxTranslate}}\n</span>\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<select class=\"govuk-select\"\n [class.govuk-!-width-full]=\"config.fullWidth\"\n [id]=\"config.id\" [name]=\"config.id\" [formControlName]=\"config.id\" [attr.aria-describedby]='setDescribedBy()'>\n <option value=\"{{item.value}}\" *ngFor=\"let item of items\">{{item.label | rpxTranslate}}</option>\n</select>\n</div>\n" }]
70
+ }], () => [], { errorMessage: [{
71
+ type: Input
72
+ }], group: [{
73
+ type: Input
74
+ }], config: [{
75
+ type: Input
76
+ }], items: [{
77
+ type: Input
78
+ }] }); })();
79
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkSelectComponent, { className: "GovUkSelectComponent", filePath: "lib/gov-ui/components/gov-uk-select/gov-uk-select.component.ts", lineNumber: 14 }); })();
80
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXNlbGVjdC5jb21wb25l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uaWQgKyctaGludCdcIiBjbGFzcz1cImdvdnVrLWhpbnRcIj5cbiB7e2NvbmZpZy5oaW50IHwgcnB4VHJhbnNsYXRlfX1cbjwvc3Bhbj5cbjx4dWlsaWItZ292LXVrLWVycm9yLW1lc3NhZ2UgW2NvbmZpZ109XCJjb25maWdcIiBbZXJyb3JNZXNzYWdlXT1cImVycm9yTWVzc2FnZVwiPjwveHVpbGliLWdvdi11ay1lcnJvci1tZXNzYWdlPlxuXG48c2VsZWN0IGNsYXNzPVwiZ292dWstc2VsZWN0XCJcbiAgICAgICAgW2NsYXNzLmdvdnVrLSEtd2lkdGgtZnVsbF09XCJjb25maWcuZnVsbFdpZHRoXCJcbiAgICAgICAgW2lkXT1cImNvbmZpZy5pZFwiIFtuYW1lXT1cImNvbmZpZy5pZFwiIFtmb3JtQ29udHJvbE5hbWVdPVwiY29uZmlnLmlkXCIgW2F0dHIuYXJpYS1kZXNjcmliZWRieV09J3NldERlc2NyaWJlZEJ5KCknPlxuICA8b3B0aW9uIHZhbHVlPVwie3tpdGVtLnZhbHVlfX1cIiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBpdGVtc1wiPnt7aXRlbS5sYWJlbCB8IHJweFRyYW5zbGF0ZX19PC9vcHRpb24+XG48L3NlbGVjdD5cbjwvZGl2PlxuIl19
@@ -0,0 +1,185 @@
1
+ import { formatDate } from '@angular/common';
2
+ import { Component, Input } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@angular/router";
6
+ import * as i3 from "rpx-xui-translation";
7
+ function GovukTableComponent_th_6_Template(rf, ctx) { if (rf & 1) {
8
+ i0.ɵɵelementStart(0, "th", 6);
9
+ i0.ɵɵtext(1);
10
+ i0.ɵɵpipe(2, "rpxTranslate");
11
+ i0.ɵɵelementEnd();
12
+ } if (rf & 2) {
13
+ const h_r1 = ctx.$implicit;
14
+ i0.ɵɵadvance();
15
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, h_r1.header));
16
+ } }
17
+ function GovukTableComponent_tr_8_ng_container_1_th_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
18
+ i0.ɵɵelementContainerStart(0);
19
+ i0.ɵɵtext(1);
20
+ i0.ɵɵpipe(2, "rpxTranslate");
21
+ i0.ɵɵelementContainerEnd();
22
+ } if (rf & 2) {
23
+ const col_r2 = i0.ɵɵnextContext(2).$implicit;
24
+ const r_r3 = i0.ɵɵnextContext().$implicit;
25
+ i0.ɵɵadvance();
26
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, r_r3[col_r2.key]));
27
+ } }
28
+ function GovukTableComponent_tr_8_ng_container_1_th_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
29
+ i0.ɵɵelementContainerStart(0);
30
+ i0.ɵɵelementStart(1, "a", 13);
31
+ i0.ɵɵtext(2);
32
+ i0.ɵɵpipe(3, "rpxTranslate");
33
+ i0.ɵɵelementEnd();
34
+ i0.ɵɵelementContainerEnd();
35
+ } if (rf & 2) {
36
+ const col_r2 = i0.ɵɵnextContext(2).$implicit;
37
+ const r_r3 = i0.ɵɵnextContext().$implicit;
38
+ i0.ɵɵadvance();
39
+ i0.ɵɵproperty("routerLink", r_r3.routerLink);
40
+ i0.ɵɵadvance();
41
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, r_r3[col_r2.key]));
42
+ } }
43
+ function GovukTableComponent_tr_8_ng_container_1_th_1_Template(rf, ctx) { if (rf & 1) {
44
+ i0.ɵɵelementStart(0, "th", 11);
45
+ i0.ɵɵtemplate(1, GovukTableComponent_tr_8_ng_container_1_th_1_ng_container_1_Template, 3, 3, "ng-container", 12)(2, GovukTableComponent_tr_8_ng_container_1_th_1_ng_container_2_Template, 4, 4, "ng-container", 12);
46
+ i0.ɵɵelementEnd();
47
+ } if (rf & 2) {
48
+ const col_r2 = i0.ɵɵnextContext().$implicit;
49
+ const r_r3 = i0.ɵɵnextContext().$implicit;
50
+ i0.ɵɵadvance();
51
+ i0.ɵɵproperty("ngIf", !col_r2.type || col_r2.type === "text" || !r_r3.routerLink);
52
+ i0.ɵɵadvance();
53
+ i0.ɵɵproperty("ngIf", col_r2.type === "link" && r_r3.routerLink);
54
+ } }
55
+ function GovukTableComponent_tr_8_ng_container_1_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
56
+ i0.ɵɵelementContainerStart(0);
57
+ i0.ɵɵtext(1);
58
+ i0.ɵɵpipe(2, "rpxTranslate");
59
+ i0.ɵɵelementContainerEnd();
60
+ } if (rf & 2) {
61
+ const col_r2 = i0.ɵɵnextContext(2).$implicit;
62
+ const r_r3 = i0.ɵɵnextContext().$implicit;
63
+ const ctx_r3 = i0.ɵɵnextContext();
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.formatDate(r_r3[col_r2.key])));
66
+ } }
67
+ function GovukTableComponent_tr_8_ng_container_1_td_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
68
+ i0.ɵɵelementContainerStart(0);
69
+ i0.ɵɵtext(1);
70
+ i0.ɵɵpipe(2, "rpxTranslate");
71
+ i0.ɵɵelementContainerEnd();
72
+ } if (rf & 2) {
73
+ const col_r2 = i0.ɵɵnextContext(2).$implicit;
74
+ const r_r3 = i0.ɵɵnextContext().$implicit;
75
+ i0.ɵɵadvance();
76
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, r_r3[col_r2.key]));
77
+ } }
78
+ function GovukTableComponent_tr_8_ng_container_1_td_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
79
+ i0.ɵɵelementContainerStart(0);
80
+ i0.ɵɵelementStart(1, "a", 13);
81
+ i0.ɵɵtext(2);
82
+ i0.ɵɵpipe(3, "rpxTranslate");
83
+ i0.ɵɵelementEnd();
84
+ i0.ɵɵelementContainerEnd();
85
+ } if (rf & 2) {
86
+ const col_r2 = i0.ɵɵnextContext(2).$implicit;
87
+ const r_r3 = i0.ɵɵnextContext().$implicit;
88
+ i0.ɵɵadvance();
89
+ i0.ɵɵproperty("routerLink", r_r3.routerLink);
90
+ i0.ɵɵadvance();
91
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, r_r3[col_r2.key]));
92
+ } }
93
+ function GovukTableComponent_tr_8_ng_container_1_td_2_Template(rf, ctx) { if (rf & 1) {
94
+ i0.ɵɵelementStart(0, "td", 14);
95
+ i0.ɵɵtemplate(1, GovukTableComponent_tr_8_ng_container_1_td_2_ng_container_1_Template, 3, 3, "ng-container", 12)(2, GovukTableComponent_tr_8_ng_container_1_td_2_ng_container_2_Template, 3, 3, "ng-container", 12)(3, GovukTableComponent_tr_8_ng_container_1_td_2_ng_container_3_Template, 4, 4, "ng-container", 12);
96
+ i0.ɵɵelementEnd();
97
+ } if (rf & 2) {
98
+ const col_r2 = i0.ɵɵnextContext().$implicit;
99
+ const r_r3 = i0.ɵɵnextContext().$implicit;
100
+ i0.ɵɵadvance();
101
+ i0.ɵɵproperty("ngIf", col_r2.type === "date");
102
+ i0.ɵɵadvance();
103
+ i0.ɵɵproperty("ngIf", !col_r2.type || col_r2.type === "text" || !r_r3.routerLink);
104
+ i0.ɵɵadvance();
105
+ i0.ɵɵproperty("ngIf", col_r2.type === "link" && r_r3.routerLink);
106
+ } }
107
+ function GovukTableComponent_tr_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
108
+ i0.ɵɵelementContainerStart(0);
109
+ i0.ɵɵtemplate(1, GovukTableComponent_tr_8_ng_container_1_th_1_Template, 3, 2, "th", 9)(2, GovukTableComponent_tr_8_ng_container_1_td_2_Template, 4, 3, "td", 10);
110
+ i0.ɵɵelementContainerEnd();
111
+ } if (rf & 2) {
112
+ const isFirst_r5 = ctx.first;
113
+ const ctx_r3 = i0.ɵɵnextContext(2);
114
+ i0.ɵɵadvance();
115
+ i0.ɵɵproperty("ngIf", isFirst_r5 && ctx_r3.firstCellIsHeader);
116
+ i0.ɵɵadvance();
117
+ i0.ɵɵproperty("ngIf", !(isFirst_r5 && ctx_r3.firstCellIsHeader));
118
+ } }
119
+ function GovukTableComponent_tr_8_Template(rf, ctx) { if (rf & 1) {
120
+ i0.ɵɵelementStart(0, "tr", 7);
121
+ i0.ɵɵtemplate(1, GovukTableComponent_tr_8_ng_container_1_Template, 3, 2, "ng-container", 8);
122
+ i0.ɵɵelementEnd();
123
+ } if (rf & 2) {
124
+ const ctx_r3 = i0.ɵɵnextContext();
125
+ i0.ɵɵadvance();
126
+ i0.ɵɵproperty("ngForOf", ctx_r3.columnConfig);
127
+ } }
128
+ export class GovukTableComponent {
129
+ constructor() {
130
+ this.classes = '';
131
+ this.caption = 'Dates and amounts';
132
+ this.firstCellIsHeader = true;
133
+ this.columnConfig = [
134
+ { header: 'Date', key: 'date', type: 'text' },
135
+ { header: 'Amount', key: 'amount' }
136
+ ];
137
+ }
138
+ formatDate(date) {
139
+ return formatDate(date, 'dd/MM/yyyy', 'en-UK');
140
+ }
141
+ static { this.ɵfac = function GovukTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovukTableComponent)(); }; }
142
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovukTableComponent, selectors: [["xuilib-gov-uk-table"]], inputs: { classes: "classes", caption: "caption", firstCellIsHeader: "firstCellIsHeader", rows: "rows", columnConfig: "columnConfig" }, decls: 9, vars: 8, consts: [[1, "govuk-table__caption"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["class", "govuk-table__header", "scope", "col", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["data-selector", "table-row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__header"], ["data-selector", "table-row", 1, "govuk-table__row"], [4, "ngFor", "ngForOf"], ["data-selector", "table-header", "class", "govuk-table__header", "scope", "row", 4, "ngIf"], ["data-selector", "table-cell", "class", "govuk-table__cell", 4, "ngIf"], ["data-selector", "table-header", "scope", "row", 1, "govuk-table__header"], [4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["data-selector", "table-cell", 1, "govuk-table__cell"]], template: function GovukTableComponent_Template(rf, ctx) { if (rf & 1) {
143
+ i0.ɵɵelementStart(0, "table")(1, "caption", 0);
144
+ i0.ɵɵtext(2);
145
+ i0.ɵɵpipe(3, "rpxTranslate");
146
+ i0.ɵɵelementEnd();
147
+ i0.ɵɵelementStart(4, "thead", 1)(5, "tr", 2);
148
+ i0.ɵɵtemplate(6, GovukTableComponent_th_6_Template, 3, 3, "th", 3);
149
+ i0.ɵɵelementEnd()();
150
+ i0.ɵɵelementStart(7, "tbody", 4);
151
+ i0.ɵɵtemplate(8, GovukTableComponent_tr_8_Template, 2, 1, "tr", 5);
152
+ i0.ɵɵelementEnd()();
153
+ } if (rf & 2) {
154
+ i0.ɵɵclassMap("govuk-table " + ctx.classes);
155
+ i0.ɵɵadvance(2);
156
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, ctx.caption));
157
+ i0.ɵɵadvance(4);
158
+ i0.ɵɵproperty("ngForOf", ctx.columnConfig);
159
+ i0.ɵɵadvance(2);
160
+ i0.ɵɵproperty("ngForOf", ctx.rows);
161
+ } }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.RpxTranslatePipe] }); }
162
+ }
163
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovukTableComponent, [{
164
+ type: Component,
165
+ args: [{ selector: 'xuilib-gov-uk-table', template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption | rpxTranslate}}</caption>\n <thead class=\"govuk-table__head\" >\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of columnConfig\">{{h.header | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\" *ngFor=\"let r of rows\">\n <ng-container *ngFor=\"let col of columnConfig; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key] | rpxTranslate}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key] | rpxTranslate}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\">\n <ng-container *ngIf=\"col.type === 'date'\">{{formatDate(r[col.key]) | rpxTranslate}}</ng-container>\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key] | rpxTranslate}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key] | rpxTranslate}}</a>\n </ng-container>\n </td>\n </ng-container>\n </tr>\n </tbody>\n</table>\n" }]
166
+ }], () => [], { classes: [{
167
+ type: Input
168
+ }], caption: [{
169
+ type: Input
170
+ }], firstCellIsHeader: [{
171
+ type: Input
172
+ }], rows: [{
173
+ type: Input
174
+ }], columnConfig: [{
175
+ type: Input
176
+ }] }); })();
177
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovukTableComponent, { className: "GovukTableComponent", filePath: "lib/gov-ui/components/gov-uk-table/gov-uk-table.component.ts", lineNumber: 9 }); })();
178
+ export class GovukTableColumnConfig {
179
+ constructor() {
180
+ this.header = '';
181
+ this.key = '';
182
+ this.type = 'text';
183
+ }
184
+ }
185
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXRhYmxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4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T0gJ2xpbmsnICYmIHIucm91dGVyTGlua1wiPlxuICAgICAgICAgICAgICAgICAgICA8YSBjbGFzcz1cImdvdnVrLWxpbmtcIiBbcm91dGVyTGlua109XCJyLnJvdXRlckxpbmtcIj57e3JbY29sLmtleV0gfCBycHhUcmFuc2xhdGV9fTwvYT5cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDwvdGg+XG4gICAgICAgICAgICA8dGQgZGF0YS1zZWxlY3Rvcj1cInRhYmxlLWNlbGxcIiBjbGFzcz1cImdvdnVrLXRhYmxlX19jZWxsXCIgICpuZ0lmPVwiIShpc0ZpcnN0ICYmIGZpcnN0Q2VsbElzSGVhZGVyKVwiPlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJjb2wudHlwZSA9PT0gJ2RhdGUnXCI+e3tmb3JtYXREYXRlKHJbY29sLmtleV0pIHwgcnB4VHJhbnNsYXRlfX08L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWNvbC50eXBlIHx8IGNvbC50eXBlID09PSAndGV4dCcgfHwgIXIucm91dGVyTGlua1wiPnt7cltjb2wua2V5XSB8IHJweFRyYW5zbGF0ZX19PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImNvbC50eXBlID09PSAnbGluaycgJiYgci5yb3V0ZXJMaW5rXCI+XG4gICAgICAgICAgICAgICAgICAgIDxhIGNsYXNzPVwiZ292dWstbGlua1wiIFtyb3V0ZXJMaW5rXT1cInIucm91dGVyTGlua1wiPnt7cltjb2wua2V5XSB8IHJweFRyYW5zbGF0ZX19PC9hPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC90ZD5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgPC90cj5cbiAgICA8L3Rib2R5PlxuPC90YWJsZT5cbiJdfQ==