@hmcts/rpx-xui-common-lib 2.1.2-angular-upgrade-11 → 2.1.2-google-analytics-1

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 (513) 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/index.mjs +2 -0
  17. package/esm2022/lib/components/invite-user-form/invite-user-form.component.mjs +51 -0
  18. package/esm2022/lib/components/invite-user-permissions/invite-user-permission.component.mjs +54 -0
  19. package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +33 -0
  20. package/esm2022/lib/components/pagination/pagination.component.mjs +92 -0
  21. package/esm2022/lib/components/public_api.mjs +39 -0
  22. package/esm2022/lib/components/search-judicials/search-judicials.component.mjs +185 -0
  23. package/esm2022/lib/components/search-location/search-location.component.mjs +240 -0
  24. package/esm2022/lib/components/search-service/search-service.component.mjs +94 -0
  25. package/esm2022/lib/components/search-venue/search-venue.component.mjs +188 -0
  26. package/esm2022/lib/components/selected-case/selected-case.component.mjs +381 -0
  27. package/esm2022/lib/components/selected-case-confirm/selected-case-confirm.component.mjs +135 -0
  28. package/esm2022/lib/components/selected-case-list/selected-case-list.component.mjs +98 -0
  29. package/esm2022/lib/components/service-message/service-message.component.mjs +62 -0
  30. package/esm2022/lib/components/service-messages/service-messages.component.mjs +165 -0
  31. package/esm2022/lib/components/share-case/share-case.component.mjs +427 -0
  32. package/esm2022/lib/components/share-case-confirm/share-case-confirm.component.mjs +85 -0
  33. package/esm2022/lib/components/tab/tab.component.mjs +40 -0
  34. package/esm2022/lib/components/tc-confirm/tc-confirm.component.mjs +66 -0
  35. package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.mjs +17 -0
  36. package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.mjs +17 -0
  37. package/esm2022/lib/components/terms-and-conditions/terms-and-conditions.component.mjs +58 -0
  38. package/esm2022/lib/components/user-details/user-details.component.mjs +276 -0
  39. package/esm2022/lib/components/user-list/user-list.component.mjs +100 -0
  40. package/esm2022/lib/components/user-select/user-select.component.mjs +94 -0
  41. package/esm2022/lib/components/write-address/write-address.component.mjs +342 -0
  42. package/esm2022/lib/components/write-address-inputs/write-address-inputs.component.mjs +165 -0
  43. package/esm2022/lib/directives/feature-toggle/feature-toggle.directive.mjs +41 -0
  44. package/esm2022/lib/directives/index.mjs +2 -0
  45. package/esm2022/lib/directives/let/let.directive.mjs +29 -0
  46. package/esm2022/lib/directives/public-api.mjs +3 -0
  47. package/esm2022/lib/exui-common-lib.module.mjs +313 -0
  48. package/esm2022/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.mjs +55 -0
  49. package/esm2022/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.mjs +137 -0
  50. package/esm2022/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.mjs +127 -0
  51. package/esm2022/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs +46 -0
  52. package/esm2022/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.mjs +79 -0
  53. package/esm2022/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.mjs +79 -0
  54. package/esm2022/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.mjs +45 -0
  55. package/esm2022/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.mjs +71 -0
  56. package/esm2022/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.mjs +84 -0
  57. package/esm2022/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.mjs +48 -0
  58. package/esm2022/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.mjs +42 -0
  59. package/esm2022/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.mjs +80 -0
  60. package/esm2022/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.mjs +185 -0
  61. package/esm2022/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.mjs +57 -0
  62. package/esm2022/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.mjs +2 -0
  63. package/esm2022/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.mjs +111 -0
  64. package/esm2022/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.mjs +140 -0
  65. package/esm2022/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.mjs +34 -0
  66. package/esm2022/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.mjs +129 -0
  67. package/esm2022/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.mjs +204 -0
  68. package/esm2022/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.mjs +60 -0
  69. package/esm2022/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.mjs +58 -0
  70. package/esm2022/lib/gov-ui/components/index.mjs +2 -0
  71. package/esm2022/lib/gov-ui/components/public_api.mjs +22 -0
  72. package/esm2022/lib/gov-ui/directives/remove-host.directive.mjs +30 -0
  73. package/esm2022/lib/gov-ui/gov-ui.service.mjs +14 -0
  74. package/esm2022/lib/gov-ui/index.mjs +2 -0
  75. package/esm2022/lib/gov-ui/models/checkboxes-model.mjs +2 -0
  76. package/esm2022/lib/gov-ui/models/error-messages-model.mjs +2 -0
  77. package/esm2022/lib/gov-ui/models/gov-ui-config-model.mjs +2 -0
  78. package/esm2022/lib/gov-ui/models/index.mjs +2 -0
  79. package/esm2022/lib/gov-ui/models/public_api.mjs +7 -0
  80. package/esm2022/lib/gov-ui/models/radio-buttons.model.mjs +2 -0
  81. package/esm2022/lib/gov-ui/public_api.mjs +8 -0
  82. package/esm2022/lib/gov-ui/util/helpers/html-templates.helper.mjs +22 -0
  83. package/esm2022/lib/gov-ui/validators/checkboxes-be-checked.validator.mjs +18 -0
  84. package/esm2022/lib/gov-ui/validators/date.validator.mjs +15 -0
  85. package/esm2022/lib/gov-ui/validators/index.mjs +2 -0
  86. package/esm2022/lib/gov-ui/validators/public_api.mjs +7 -0
  87. package/esm2022/lib/gov-ui/validators/radio-group.validator.mjs +15 -0
  88. package/esm2022/lib/models/address-message.enum.mjs +11 -0
  89. package/esm2022/lib/models/address-option.model.mjs +21 -0
  90. package/esm2022/lib/models/address.model.mjs +4 -0
  91. package/esm2022/lib/models/case-share.model.mjs +7 -0
  92. package/esm2022/lib/models/contact-details.model.mjs +7 -0
  93. package/esm2022/lib/models/due-date.model.mjs +8 -0
  94. package/esm2022/lib/models/feature-user.mjs +5 -0
  95. package/esm2022/lib/models/filter.model.mjs +3 -0
  96. package/esm2022/lib/models/idle-config.model.mjs +2 -0
  97. package/esm2022/lib/models/index.mjs +19 -0
  98. package/esm2022/lib/models/location.model.mjs +7 -0
  99. package/esm2022/lib/models/pagination.model.mjs +2 -0
  100. package/esm2022/lib/models/person.model.mjs +19 -0
  101. package/esm2022/lib/models/public_api.mjs +7 -0
  102. package/esm2022/lib/models/search-options.model.mjs +2 -0
  103. package/esm2022/lib/models/service-message.model.mjs +2 -0
  104. package/esm2022/lib/models/task-name.model.mjs +2 -0
  105. package/esm2022/lib/models/tcDocument.model.mjs +2 -0
  106. package/esm2022/lib/models/timeout-notification.model.mjs +2 -0
  107. package/esm2022/lib/models/user-access-type.model.mjs +2 -0
  108. package/esm2022/lib/models/user-details.model.mjs +2 -0
  109. package/esm2022/lib/models/user.model.mjs +2 -0
  110. package/esm2022/lib/pipes/capitalize/capitalize.pipe.mjs +15 -0
  111. package/esm2022/lib/pipes/index.mjs +2 -0
  112. package/esm2022/lib/services/address/address-parser.mjs +76 -0
  113. package/esm2022/lib/services/address/address-type.enum.mjs +7 -0
  114. package/esm2022/lib/services/address/address.service.mjs +55 -0
  115. package/esm2022/lib/services/case-sharing-state/case-sharing-state.service.mjs +170 -0
  116. package/esm2022/lib/services/cookie/cookie.service.mjs +48 -0
  117. package/esm2022/lib/services/feature-toggle/feature-toggle.guard.mjs +37 -0
  118. package/esm2022/lib/services/feature-toggle/feature-toggle.service.mjs +33 -0
  119. package/esm2022/lib/services/feature-toggle/launch-darkly.service.mjs +65 -0
  120. package/esm2022/lib/services/filter/filter.service.mjs +95 -0
  121. package/esm2022/lib/services/find-person/find-person.service.mjs +92 -0
  122. package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +73 -0
  123. package/esm2022/lib/services/google-tag-manager/google-tag-manager.service.mjs +85 -0
  124. package/esm2022/lib/services/index.mjs +2 -0
  125. package/esm2022/lib/services/loading/loading.service.mjs +41 -0
  126. package/esm2022/lib/services/locations/location.service.mjs +38 -0
  127. package/esm2022/lib/services/manage-session/manage-session.services.mjs +50 -0
  128. package/esm2022/lib/services/public-api.mjs +18 -0
  129. package/esm2022/lib/services/ref-data/index.mjs +4 -0
  130. package/esm2022/lib/services/ref-data/models/ref-data-htmcs-service.model.mjs +2 -0
  131. package/esm2022/lib/services/ref-data/models/ref-data-region.model.mjs +2 -0
  132. package/esm2022/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.mjs +2 -0
  133. package/esm2022/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.mjs +33 -0
  134. package/esm2022/lib/services/ref-data/ref-data.service.mjs +34 -0
  135. package/esm2022/lib/services/role-guard/role.guard.mjs +43 -0
  136. package/esm2022/lib/services/role-guard/role.service.mjs +22 -0
  137. package/esm2022/lib/services/storage/session-storage/session-storage.service.mjs +43 -0
  138. package/esm2022/lib/services/task-name/task-name.service.mjs +35 -0
  139. package/esm2022/lib/services/timeout-notifications/timeout-notifications.service.mjs +103 -0
  140. package/esm2022/lib/window.mjs +4 -0
  141. package/esm2022/public-api.mjs +12 -0
  142. package/fesm2022/hmcts-rpx-xui-common-lib.mjs +10377 -0
  143. package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -0
  144. package/index.d.ts +5 -0
  145. package/lib/components/accessibility/accessibility.component.d.ts +7 -1
  146. package/lib/components/checkbox-list/checkbox-list.component.d.ts +14 -7
  147. package/lib/components/contact-details/contact-details.component.d.ts +3 -0
  148. package/lib/components/cookie-banner/cookie-banner.component.d.ts +5 -1
  149. package/lib/components/due-date/due-date.component.d.ts +12 -6
  150. package/lib/components/exui-main-wrapper/exui-page-wrapper.component.d.ts +3 -0
  151. package/lib/components/find-location/find-location.component.d.ts +16 -8
  152. package/lib/components/find-person/find-person.component.d.ts +5 -2
  153. package/lib/components/find-service/find-service.component.d.ts +29 -0
  154. package/lib/components/find-task-name/find-task-name.component.d.ts +44 -0
  155. package/lib/components/generic-filter/generic-filter-utils.d.ts +2 -5
  156. package/lib/components/generic-filter/generic-filter.component.d.ts +29 -8
  157. package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +3 -0
  158. package/lib/components/invite-user-form/invite-user-form.component.d.ts +4 -1
  159. package/lib/components/invite-user-permissions/invite-user-permission.component.d.ts +3 -0
  160. package/lib/components/loading-spinner/loading-spinner.component.d.ts +8 -1
  161. package/lib/components/pagination/pagination.component.d.ts +3 -0
  162. package/lib/components/public_api.d.ts +11 -0
  163. package/lib/components/search-judicials/search-judicials.component.d.ts +4 -1
  164. package/lib/components/search-location/search-location.component.d.ts +27 -20
  165. package/lib/components/search-service/search-service.component.d.ts +20 -0
  166. package/lib/components/search-venue/search-venue.component.d.ts +4 -2
  167. package/lib/components/selected-case/selected-case.component.d.ts +4 -1
  168. package/lib/components/selected-case-confirm/selected-case-confirm.component.d.ts +3 -0
  169. package/lib/components/selected-case-list/selected-case-list.component.d.ts +4 -0
  170. package/lib/components/service-message/service-message.component.d.ts +9 -4
  171. package/lib/components/service-messages/service-messages.component.d.ts +15 -5
  172. package/lib/components/share-case/share-case.component.d.ts +41 -2
  173. package/lib/components/share-case-confirm/share-case-confirm.component.d.ts +3 -0
  174. package/lib/components/tab/tab.component.d.ts +3 -0
  175. package/lib/components/tc-confirm/tc-confirm.component.d.ts +3 -0
  176. package/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.d.ts +3 -0
  177. package/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.d.ts +3 -0
  178. package/lib/components/terms-and-conditions/terms-and-conditions.component.d.ts +3 -0
  179. package/lib/components/user-details/user-details.component.d.ts +4 -0
  180. package/lib/components/user-list/user-list.component.d.ts +3 -0
  181. package/lib/components/user-select/user-select.component.d.ts +5 -3
  182. package/lib/components/write-address/write-address.component.d.ts +45 -0
  183. package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +16 -0
  184. package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +4 -1
  185. package/lib/directives/let/let.directive.d.ts +4 -1
  186. package/lib/exui-common-lib.module.d.ts +83 -4
  187. package/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.d.ts +3 -0
  188. package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +17 -5
  189. package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +3 -0
  190. package/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.d.ts +3 -0
  191. package/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +3 -0
  192. package/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.d.ts +3 -0
  193. package/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.d.ts +3 -0
  194. package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +4 -2
  195. package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +4 -0
  196. package/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.d.ts +3 -0
  197. package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +5 -2
  198. package/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.d.ts +3 -0
  199. package/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.d.ts +3 -0
  200. package/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.d.ts +3 -0
  201. package/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.d.ts +7 -0
  202. package/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.d.ts +7 -2
  203. package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +4 -1
  204. package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +4 -1
  205. package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +6 -3
  206. package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +3 -0
  207. package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +4 -1
  208. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +3 -0
  209. package/lib/gov-ui/components/public_api.d.ts +20 -0
  210. package/lib/gov-ui/directives/remove-host.directive.d.ts +3 -0
  211. package/lib/gov-ui/gov-ui.service.d.ts +3 -0
  212. package/lib/gov-ui/models/checkboxes-model.d.ts +4 -7
  213. package/lib/gov-ui/models/gov-ui-config-model.d.ts +2 -0
  214. package/lib/gov-ui/models/public_api.d.ts +0 -1
  215. package/lib/gov-ui/models/radio-buttons.model.d.ts +9 -0
  216. package/lib/gov-ui/public_api.d.ts +1 -0
  217. package/lib/models/address-message.enum.d.ts +9 -0
  218. package/lib/models/address-option.model.d.ts +9 -0
  219. package/lib/models/address.model.d.ts +9 -0
  220. package/lib/models/case-share.model.d.ts +5 -0
  221. package/lib/models/contact-details.model.d.ts +4 -0
  222. package/lib/models/feature-user.d.ts +4 -6
  223. package/lib/models/filter.model.d.ts +43 -9
  224. package/lib/models/index.d.ts +4 -0
  225. package/lib/models/location.model.d.ts +12 -12
  226. package/lib/models/person.model.d.ts +3 -0
  227. package/lib/models/public_api.d.ts +1 -0
  228. package/lib/models/search-options.model.d.ts +1 -1
  229. package/lib/models/service-message.model.d.ts +8 -0
  230. package/lib/models/task-name.model.d.ts +4 -0
  231. package/lib/models/user-access-type.model.d.ts +6 -0
  232. package/lib/models/user-details.model.d.ts +2 -0
  233. package/lib/pipes/capitalize/capitalize.pipe.d.ts +7 -0
  234. package/lib/pipes/index.d.ts +1 -0
  235. package/lib/services/address/address-parser.d.ts +17 -0
  236. package/lib/services/address/address-type.enum.d.ts +5 -0
  237. package/lib/services/address/address.service.d.ts +15 -0
  238. package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +5 -2
  239. package/lib/services/cookie/cookie.service.d.ts +3 -0
  240. package/lib/services/feature-toggle/feature-toggle.guard.d.ts +8 -2
  241. package/lib/services/feature-toggle/feature-toggle.service.d.ts +4 -0
  242. package/lib/services/feature-toggle/launch-darkly.service.d.ts +14 -10
  243. package/lib/services/filter/filter.service.d.ts +6 -0
  244. package/lib/services/find-person/find-person.service.d.ts +5 -2
  245. package/lib/services/google-analytics/google-analytics.service.d.ts +4 -1
  246. package/lib/services/google-tag-manager/google-tag-manager.service.d.ts +5 -1
  247. package/lib/services/loading/loading.service.d.ts +5 -2
  248. package/lib/services/locations/location.service.d.ts +4 -1
  249. package/lib/services/manage-session/manage-session.services.d.ts +3 -0
  250. package/lib/services/public-api.d.ts +2 -4
  251. package/lib/services/ref-data/index.d.ts +3 -0
  252. package/lib/services/ref-data/models/ref-data-htmcs-service.model.d.ts +13 -0
  253. package/lib/services/ref-data/models/ref-data-region.model.d.ts +4 -0
  254. package/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.d.ts +8 -0
  255. package/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.d.ts +18 -0
  256. package/lib/services/ref-data/ref-data.service.d.ts +17 -0
  257. package/lib/services/role-guard/role.guard.d.ts +7 -3
  258. package/lib/services/role-guard/role.service.d.ts +9 -4
  259. package/lib/services/{session-storage → storage/session-storage}/session-storage.service.d.ts +3 -0
  260. package/lib/services/task-name/task-name.service.d.ts +17 -0
  261. package/lib/services/timeout-notifications/timeout-notifications.service.d.ts +8 -2
  262. package/lib/window.d.ts +1 -1
  263. package/package.json +22 -22
  264. package/public-api.d.ts +1 -0
  265. package/bundles/hmcts-rpx-xui-common-lib.umd.js +0 -9742
  266. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +0 -1
  267. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +0 -16
  268. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +0 -1
  269. package/esm2015/hmcts-rpx-xui-common-lib.js +0 -73
  270. package/esm2015/lib/components/accessibility/accessibility.component.js +0 -20
  271. package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +0 -275
  272. package/esm2015/lib/components/contact-details/contact-details.component.js +0 -27
  273. package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +0 -129
  274. package/esm2015/lib/components/due-date/due-date.component.js +0 -210
  275. package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +0 -42
  276. package/esm2015/lib/components/find-location/find-location.component.js +0 -240
  277. package/esm2015/lib/components/find-person/find-person.component.js +0 -259
  278. package/esm2015/lib/components/generic-filter/generic-filter-utils.js +0 -65
  279. package/esm2015/lib/components/generic-filter/generic-filter.component.js +0 -636
  280. package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +0 -42
  281. package/esm2015/lib/components/index.js +0 -7
  282. package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +0 -45
  283. package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +0 -44
  284. package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +0 -27
  285. package/esm2015/lib/components/pagination/pagination.component.js +0 -50
  286. package/esm2015/lib/components/public_api.js +0 -33
  287. package/esm2015/lib/components/search-judicials/search-judicials.component.js +0 -249
  288. package/esm2015/lib/components/search-location/search-location.component.js +0 -294
  289. package/esm2015/lib/components/search-venue/search-venue.component.js +0 -246
  290. package/esm2015/lib/components/selected-case/selected-case.component.js +0 -316
  291. package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +0 -74
  292. package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +0 -94
  293. package/esm2015/lib/components/service-message/service-message.component.js +0 -40
  294. package/esm2015/lib/components/service-messages/service-messages.component.js +0 -106
  295. package/esm2015/lib/components/share-case/share-case.component.js +0 -172
  296. package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +0 -67
  297. package/esm2015/lib/components/tab/tab.component.js +0 -45
  298. package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +0 -37
  299. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +0 -19
  300. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +0 -19
  301. package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +0 -26
  302. package/esm2015/lib/components/user-details/user-details.component.js +0 -78
  303. package/esm2015/lib/components/user-list/user-list.component.js +0 -63
  304. package/esm2015/lib/components/user-select/user-select.component.js +0 -105
  305. package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +0 -95
  306. package/esm2015/lib/directives/index.js +0 -7
  307. package/esm2015/lib/directives/let/let.directive.js +0 -68
  308. package/esm2015/lib/directives/public-api.js +0 -8
  309. package/esm2015/lib/exui-common-lib.module.js +0 -162
  310. package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +0 -51
  311. package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +0 -32
  312. package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +0 -114
  313. package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +0 -34
  314. package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -43
  315. package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +0 -57
  316. package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +0 -37
  317. package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +0 -54
  318. package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +0 -31
  319. package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +0 -51
  320. package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +0 -32
  321. package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +0 -46
  322. package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +0 -69
  323. package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +0 -43
  324. package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +0 -35
  325. package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +0 -90
  326. package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +0 -33
  327. package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +0 -75
  328. package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +0 -49
  329. package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +0 -43
  330. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +0 -42
  331. package/esm2015/lib/gov-ui/components/index.js +0 -7
  332. package/esm2015/lib/gov-ui/components/public_api.js +0 -7
  333. package/esm2015/lib/gov-ui/directives/remove-host.directive.js +0 -50
  334. package/esm2015/lib/gov-ui/gov-ui.service.js +0 -19
  335. package/esm2015/lib/gov-ui/index.js +0 -7
  336. package/esm2015/lib/gov-ui/models/banner-data-model.js +0 -16
  337. package/esm2015/lib/gov-ui/models/checkboxes-model.js +0 -22
  338. package/esm2015/lib/gov-ui/models/error-messages-model.js +0 -16
  339. package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +0 -36
  340. package/esm2015/lib/gov-ui/models/index.js +0 -7
  341. package/esm2015/lib/gov-ui/models/isession-storage.interface.js +0 -24
  342. package/esm2015/lib/gov-ui/models/public_api.js +0 -13
  343. package/esm2015/lib/gov-ui/public_api.js +0 -12
  344. package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +0 -32
  345. package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +0 -58
  346. package/esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js +0 -37
  347. package/esm2015/lib/gov-ui/validators/date.validator.js +0 -32
  348. package/esm2015/lib/gov-ui/validators/index.js +0 -7
  349. package/esm2015/lib/gov-ui/validators/public_api.js +0 -12
  350. package/esm2015/lib/gov-ui/validators/radio-group.validator.js +0 -27
  351. package/esm2015/lib/models/case-share.model.js +0 -26
  352. package/esm2015/lib/models/contact-details.model.js +0 -31
  353. package/esm2015/lib/models/due-date.model.js +0 -15
  354. package/esm2015/lib/models/feature-user.js +0 -20
  355. package/esm2015/lib/models/filter.model.js +0 -120
  356. package/esm2015/lib/models/idle-config.model.js +0 -20
  357. package/esm2015/lib/models/index.js +0 -20
  358. package/esm2015/lib/models/location.model.js +0 -129
  359. package/esm2015/lib/models/pagination.model.js +0 -18
  360. package/esm2015/lib/models/person.model.js +0 -92
  361. package/esm2015/lib/models/public_api.js +0 -11
  362. package/esm2015/lib/models/search-options.model.js +0 -22
  363. package/esm2015/lib/models/tcDocument.model.js +0 -18
  364. package/esm2015/lib/models/timeout-notification.model.js +0 -18
  365. package/esm2015/lib/models/user-details.model.js +0 -22
  366. package/esm2015/lib/models/user.model.js +0 -25
  367. package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +0 -218
  368. package/esm2015/lib/services/cookie/cookie.service.js +0 -110
  369. package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +0 -74
  370. package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +0 -53
  371. package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +0 -141
  372. package/esm2015/lib/services/filter/filter.service.js +0 -118
  373. package/esm2015/lib/services/find-person/find-person.service.js +0 -214
  374. package/esm2015/lib/services/google-analytics/google-analytics.service.js +0 -123
  375. package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +0 -125
  376. package/esm2015/lib/services/index.js +0 -7
  377. package/esm2015/lib/services/loading/loading.service.js +0 -78
  378. package/esm2015/lib/services/locations/location.service.js +0 -57
  379. package/esm2015/lib/services/manage-session/manage-session.services.js +0 -105
  380. package/esm2015/lib/services/public-api.js +0 -25
  381. package/esm2015/lib/services/role-guard/role.guard.js +0 -78
  382. package/esm2015/lib/services/role-guard/role.service.js +0 -39
  383. package/esm2015/lib/services/session-storage/session-storage.service.js +0 -55
  384. package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +0 -158
  385. package/esm2015/lib/window.js +0 -13
  386. package/esm2015/public-api.js +0 -16
  387. package/esm5/hmcts-rpx-xui-common-lib.js +0 -73
  388. package/esm5/lib/components/accessibility/accessibility.component.js +0 -22
  389. package/esm5/lib/components/checkbox-list/checkbox-list.component.js +0 -391
  390. package/esm5/lib/components/contact-details/contact-details.component.js +0 -29
  391. package/esm5/lib/components/cookie-banner/cookie-banner.component.js +0 -154
  392. package/esm5/lib/components/due-date/due-date.component.js +0 -254
  393. package/esm5/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +0 -45
  394. package/esm5/lib/components/find-location/find-location.component.js +0 -293
  395. package/esm5/lib/components/find-person/find-person.component.js +0 -286
  396. package/esm5/lib/components/generic-filter/generic-filter-utils.js +0 -66
  397. package/esm5/lib/components/generic-filter/generic-filter.component.js +0 -839
  398. package/esm5/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +0 -47
  399. package/esm5/lib/components/index.js +0 -7
  400. package/esm5/lib/components/invite-user-form/invite-user-form.component.js +0 -54
  401. package/esm5/lib/components/invite-user-permissions/invite-user-permission.component.js +0 -46
  402. package/esm5/lib/components/loading-spinner/loading-spinner.component.js +0 -29
  403. package/esm5/lib/components/pagination/pagination.component.js +0 -58
  404. package/esm5/lib/components/public_api.js +0 -33
  405. package/esm5/lib/components/search-judicials/search-judicials.component.js +0 -291
  406. package/esm5/lib/components/search-location/search-location.component.js +0 -330
  407. package/esm5/lib/components/search-venue/search-venue.component.js +0 -290
  408. package/esm5/lib/components/selected-case/selected-case.component.js +0 -430
  409. package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +0 -84
  410. package/esm5/lib/components/selected-case-list/selected-case-list.component.js +0 -109
  411. package/esm5/lib/components/service-message/service-message.component.js +0 -46
  412. package/esm5/lib/components/service-messages/service-messages.component.js +0 -122
  413. package/esm5/lib/components/share-case/share-case.component.js +0 -223
  414. package/esm5/lib/components/share-case-confirm/share-case-confirm.component.js +0 -70
  415. package/esm5/lib/components/tab/tab.component.js +0 -51
  416. package/esm5/lib/components/tc-confirm/tc-confirm.component.js +0 -42
  417. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +0 -22
  418. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +0 -22
  419. package/esm5/lib/components/terms-and-conditions/terms-and-conditions.component.js +0 -29
  420. package/esm5/lib/components/user-details/user-details.component.js +0 -92
  421. package/esm5/lib/components/user-list/user-list.component.js +0 -76
  422. package/esm5/lib/components/user-select/user-select.component.js +0 -131
  423. package/esm5/lib/directives/feature-toggle/feature-toggle.directive.js +0 -104
  424. package/esm5/lib/directives/index.js +0 -7
  425. package/esm5/lib/directives/let/let.directive.js +0 -78
  426. package/esm5/lib/directives/public-api.js +0 -8
  427. package/esm5/lib/exui-common-lib.module.js +0 -162
  428. package/esm5/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +0 -56
  429. package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +0 -36
  430. package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +0 -135
  431. package/esm5/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +0 -37
  432. package/esm5/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
  433. package/esm5/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +0 -65
  434. package/esm5/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +0 -40
  435. package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +0 -66
  436. package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +0 -34
  437. package/esm5/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +0 -67
  438. package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +0 -36
  439. package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +0 -52
  440. package/esm5/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +0 -77
  441. package/esm5/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +0 -50
  442. package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +0 -38
  443. package/esm5/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +0 -108
  444. package/esm5/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +0 -40
  445. package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +0 -87
  446. package/esm5/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +0 -51
  447. package/esm5/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +0 -49
  448. package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +0 -46
  449. package/esm5/lib/gov-ui/components/index.js +0 -7
  450. package/esm5/lib/gov-ui/components/public_api.js +0 -7
  451. package/esm5/lib/gov-ui/directives/remove-host.directive.js +0 -52
  452. package/esm5/lib/gov-ui/gov-ui.service.js +0 -22
  453. package/esm5/lib/gov-ui/index.js +0 -7
  454. package/esm5/lib/gov-ui/models/banner-data-model.js +0 -16
  455. package/esm5/lib/gov-ui/models/checkboxes-model.js +0 -22
  456. package/esm5/lib/gov-ui/models/error-messages-model.js +0 -16
  457. package/esm5/lib/gov-ui/models/gov-ui-config-model.js +0 -36
  458. package/esm5/lib/gov-ui/models/index.js +0 -7
  459. package/esm5/lib/gov-ui/models/isession-storage.interface.js +0 -24
  460. package/esm5/lib/gov-ui/models/public_api.js +0 -13
  461. package/esm5/lib/gov-ui/public_api.js +0 -12
  462. package/esm5/lib/gov-ui/util/helpers/html-templates.helper.js +0 -57
  463. package/esm5/lib/gov-ui/util/session-storage/session-storage-utils.js +0 -58
  464. package/esm5/lib/gov-ui/validators/checkboxes-be-checked.validator.js +0 -38
  465. package/esm5/lib/gov-ui/validators/date.validator.js +0 -32
  466. package/esm5/lib/gov-ui/validators/index.js +0 -7
  467. package/esm5/lib/gov-ui/validators/public_api.js +0 -12
  468. package/esm5/lib/gov-ui/validators/radio-group.validator.js +0 -27
  469. package/esm5/lib/models/case-share.model.js +0 -26
  470. package/esm5/lib/models/contact-details.model.js +0 -31
  471. package/esm5/lib/models/due-date.model.js +0 -15
  472. package/esm5/lib/models/feature-user.js +0 -28
  473. package/esm5/lib/models/filter.model.js +0 -124
  474. package/esm5/lib/models/idle-config.model.js +0 -20
  475. package/esm5/lib/models/index.js +0 -20
  476. package/esm5/lib/models/location.model.js +0 -129
  477. package/esm5/lib/models/pagination.model.js +0 -18
  478. package/esm5/lib/models/person.model.js +0 -92
  479. package/esm5/lib/models/public_api.js +0 -11
  480. package/esm5/lib/models/search-options.model.js +0 -22
  481. package/esm5/lib/models/tcDocument.model.js +0 -18
  482. package/esm5/lib/models/timeout-notification.model.js +0 -18
  483. package/esm5/lib/models/user-details.model.js +0 -22
  484. package/esm5/lib/models/user.model.js +0 -25
  485. package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +0 -289
  486. package/esm5/lib/services/cookie/cookie.service.js +0 -136
  487. package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +0 -89
  488. package/esm5/lib/services/feature-toggle/feature-toggle.service.js +0 -90
  489. package/esm5/lib/services/feature-toggle/launch-darkly.service.js +0 -187
  490. package/esm5/lib/services/filter/filter.service.js +0 -153
  491. package/esm5/lib/services/find-person/find-person.service.js +0 -238
  492. package/esm5/lib/services/google-analytics/google-analytics.service.js +0 -128
  493. package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +0 -135
  494. package/esm5/lib/services/index.js +0 -7
  495. package/esm5/lib/services/loading/loading.service.js +0 -109
  496. package/esm5/lib/services/locations/location.service.js +0 -86
  497. package/esm5/lib/services/manage-session/manage-session.services.js +0 -111
  498. package/esm5/lib/services/public-api.js +0 -25
  499. package/esm5/lib/services/role-guard/role.guard.js +0 -81
  500. package/esm5/lib/services/role-guard/role.service.js +0 -45
  501. package/esm5/lib/services/session-storage/session-storage.service.js +0 -96
  502. package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +0 -190
  503. package/esm5/lib/window.js +0 -13
  504. package/esm5/public-api.js +0 -16
  505. package/fesm2015/hmcts-rpx-xui-common-lib.js +0 -7973
  506. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +0 -1
  507. package/fesm5/hmcts-rpx-xui-common-lib.js +0 -9423
  508. package/fesm5/hmcts-rpx-xui-common-lib.js.map +0 -1
  509. package/hmcts-rpx-xui-common-lib.d.ts +0 -67
  510. package/hmcts-rpx-xui-common-lib.metadata.json +0 -1
  511. package/lib/gov-ui/models/banner-data-model.d.ts +0 -4
  512. package/lib/gov-ui/models/isession-storage.interface.d.ts +0 -4
  513. package/lib/gov-ui/util/session-storage/session-storage-utils.d.ts +0 -6
@@ -0,0 +1,127 @@
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 "@angular/forms";
5
+ import * as i3 from "../gov-uk-label/gov-uk-label.component";
6
+ import * as i4 from "../gov-uk-error-message/gov-uk-error-message.component";
7
+ import * as i5 from "../gov-uk-fieldset/gov-uk-fieldset.component";
8
+ import * as i6 from "rpx-xui-translation";
9
+ const _c0 = a0 => ({ "govuk-form-group--error": a0 });
10
+ const _c1 = (a0, a1, a2, a3, a4) => ({ legend: a0, classes: a1, id: a2, hint: a3, isPageHeading: a4 });
11
+ const _c2 = (a0, a1, a2) => ({ label: a0, name: a1, id: a2, classes: "govuk-date-input__label" });
12
+ const _c3 = a0 => ({ "govuk-input--error": a0 });
13
+ const _c4 = () => ({ id: "passport" });
14
+ function GovUkDateComponent_xuilib_gov_uk_error_message_3_Template(rf, ctx) { if (rf & 1) {
15
+ i0.ɵɵelement(0, "xuilib-gov-uk-error-message", 2);
16
+ } if (rf & 2) {
17
+ const ctx_r0 = i0.ɵɵnextContext();
18
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction0(2, _c4))("errorMessage", ctx_r0.errorMessage);
19
+ } }
20
+ /*
21
+ * Gov UK Date Component
22
+ * Responsible for displaying 3 input fields:
23
+ * day / month / year
24
+ * displaying errorMessage messages
25
+ * */
26
+ export class GovUkDateComponent {
27
+ constructor() {
28
+ this.isOptional = false;
29
+ }
30
+ ngOnInit() {
31
+ this.day = `${this.config.id}_day`;
32
+ this.month = `${this.config.id}_month`;
33
+ this.year = `${this.config.id}_year`;
34
+ const dateValidator = this.DateValidator();
35
+ this.formGroup.get(this.day).setValidators(dateValidator);
36
+ }
37
+ isValidDate(d, month, year) {
38
+ const dateCheck = !isNaN(d.getTime());
39
+ // Month mismatch occurs if the provided day or month are invalid, or either is omitted. **Note:** This is insufficient for
40
+ // checking date validity when the year is omitted because it defaults to 1900 - an extra check is required
41
+ const monthMatch = d.getMonth() === month;
42
+ const yearMatch = d.getFullYear() === year;
43
+ return dateCheck && monthMatch && yearMatch;
44
+ }
45
+ isEmpty(value) {
46
+ // Note: Intentional use of == to check for null or undefined
47
+ /* eslint-disable eqeqeq */
48
+ /* tslint:disable:triple-equals */
49
+ // NaN and < 0 checks required for month field
50
+ return value == null || value === '' || isNaN(value) || value < 0;
51
+ /* eslint-enable eqeqeq */
52
+ /* tslint:enable:triple-equals */
53
+ }
54
+ DateValidator() {
55
+ return () => {
56
+ const day = this.formGroup.get(this.day).value;
57
+ const month = this.formGroup.get(this.month).value - 1;
58
+ const year = this.formGroup.get(this.year).value;
59
+ // Validation should pass if the date field is optional and day, month, and year are all empty
60
+ if (this.isOptional && this.isEmpty(day) && this.isEmpty(month) && this.isEmpty(year)) {
61
+ return null;
62
+ }
63
+ const validDay = this.formGroup.get(this.day).valid;
64
+ const validMonth = this.formGroup.get(this.month).valid;
65
+ const validYear = this.formGroup.get(this.year).valid;
66
+ if (!validDay || !validMonth || !validYear) {
67
+ return { dateComponent: true };
68
+ }
69
+ // + to coerce year to a number
70
+ return !this.isValidDate(new Date(year, month, day), month, +year) ? { dateComponent: true } : null;
71
+ };
72
+ }
73
+ static { this.ɵfac = function GovUkDateComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkDateComponent)(); }; }
74
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkDateComponent, selectors: [["xuilib-gov-uk-date"]], inputs: { config: "config", errorMessage: "errorMessage", formGroup: "formGroup", isOptional: "isOptional" }, decls: 20, vars: 53, consts: [[1, "govuk-form-group", 3, "ngClass", "formGroup"], [1, "date-input-container"], [3, "config", "errorMessage"], [3, "config", "errorMessage", 4, "ngIf"], [1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [3, "config"], ["type", "text", "value", "", "pattern", "\\d*", "maxlength", "2", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "ngClass", "id", "name", "formControlName"], ["type", "text", "value", "", "pattern", "\\d*", "maxlength", "4", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "ngClass", "id", "name", "formControlName"]], template: function GovUkDateComponent_Template(rf, ctx) { if (rf & 1) {
75
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "xuilib-gov-uk-fieldset", 2);
76
+ i0.ɵɵtemplate(3, GovUkDateComponent_xuilib_gov_uk_error_message_3_Template, 1, 3, "xuilib-gov-uk-error-message", 3);
77
+ i0.ɵɵelementStart(4, "div", 4)(5, "div", 5)(6, "div", 6);
78
+ i0.ɵɵelement(7, "xuilib-gov-label", 7);
79
+ i0.ɵɵpipe(8, "rpxTranslate");
80
+ i0.ɵɵelement(9, "input", 8);
81
+ i0.ɵɵelementEnd()();
82
+ i0.ɵɵelementStart(10, "div", 5)(11, "div", 6);
83
+ i0.ɵɵelement(12, "xuilib-gov-label", 7);
84
+ i0.ɵɵpipe(13, "rpxTranslate");
85
+ i0.ɵɵelement(14, "input", 8);
86
+ i0.ɵɵelementEnd()();
87
+ i0.ɵɵelementStart(15, "div", 5)(16, "div", 6);
88
+ i0.ɵɵelement(17, "xuilib-gov-label", 7);
89
+ i0.ɵɵpipe(18, "rpxTranslate");
90
+ i0.ɵɵelement(19, "input", 9);
91
+ i0.ɵɵelementEnd()()()()()();
92
+ } if (rf & 2) {
93
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(27, _c0, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("formGroup", ctx.formGroup);
94
+ i0.ɵɵadvance(2);
95
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction5(29, _c1, ctx.config.label || "Date component", ctx.config.classes || "govuk-label--m", ctx.config.id, ctx.config.hint != null ? ctx.config.hint : "For example, 12 11 2007", ctx.config.isPageHeading || false))("errorMessage", ctx.errorMessage);
96
+ i0.ɵɵadvance();
97
+ i0.ɵɵproperty("ngIf", ctx.errorMessage);
98
+ i0.ɵɵadvance();
99
+ i0.ɵɵproperty("id", ctx.config.id + "-date");
100
+ i0.ɵɵadvance(3);
101
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction3(35, _c2, i0.ɵɵpipeBind1(8, 21, "Day"), ctx.config.id + "-day", ctx.config.id + "-day"));
102
+ i0.ɵɵadvance(2);
103
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(39, _c3, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id + "-day")("name", ctx.config.id + "-day")("formControlName", ctx.config.id + "_day");
104
+ i0.ɵɵadvance(3);
105
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction3(41, _c2, i0.ɵɵpipeBind1(13, 23, "Month"), ctx.config.id + "-month", ctx.config.id + "-month"));
106
+ i0.ɵɵadvance(2);
107
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c3, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id + "-month")("name", ctx.config.id + "-month")("formControlName", ctx.config.id + "_month");
108
+ i0.ɵɵadvance(3);
109
+ i0.ɵɵproperty("config", i0.ɵɵpureFunction3(47, _c2, i0.ɵɵpipeBind1(18, 25, "Year"), ctx.config.id + "-year", ctx.config.id + "-year"));
110
+ i0.ɵɵadvance(2);
111
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(51, _c3, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id + "-year")("name", ctx.config.id + "-year")("formControlName", ctx.config.id + "_year");
112
+ } }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.MaxLengthValidator, i2.PatternValidator, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.GovUkFieldsetComponent, i6.RpxTranslatePipe], styles: [".govuk-form-group[_ngcontent-%COMP%] .date-input-container[_ngcontent-%COMP%]{margin-bottom:30px}.govuk-form-group[_ngcontent-%COMP%] .date-input-container[_ngcontent-%COMP%] .govuk-date-input[_ngcontent-%COMP%] .govuk-date-input__item[_ngcontent-%COMP%] .govuk-form-group[_ngcontent-%COMP%]{margin-bottom:0}"] }); }
113
+ }
114
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkDateComponent, [{
115
+ type: Component,
116
+ args: [{ selector: 'xuilib-gov-uk-date', template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\" [formGroup]=\"formGroup\">\n <div class=\"date-input-container\">\n <xuilib-gov-uk-fieldset\n [config]=\"{\n legend: config.label || 'Date component',\n classes: config.classes || 'govuk-label--m',\n id: config.id,\n hint: config.hint != null ? config.hint : 'For example, 12 11 2007',\n isPageHeading: config.isPageHeading || false}\"\n [errorMessage]=\"errorMessage\">\n <xuilib-gov-uk-error-message\n [config]=\"{id: 'passport'}\"\n *ngIf=\"errorMessage\"\n [errorMessage]=\"errorMessage\">\n </xuilib-gov-uk-error-message>\n <div class=\"govuk-date-input\" [id]=\"config.id+'-date'\">\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <xuilib-gov-label\n [config]=\"{label: 'Day' | rpxTranslate, name: config.id+'-day', id: config.id+'-day', classes: 'govuk-date-input__label'}\">\n </xuilib-gov-label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id+'-day'\"\n [name]=\"config.id+'-day'\" type=\"text\" value=\"\" pattern=\"\\d*\" maxlength=\"2\"\n [formControlName]=\"config.id+'_day'\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <xuilib-gov-label\n [config]=\"{label: 'Month' | rpxTranslate, name: config.id+'-month', id: config.id+'-month', classes: 'govuk-date-input__label'}\">\n </xuilib-gov-label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id+'-month'\"\n [name]=\"config.id+'-month'\" type=\"text\" value=\"\" pattern=\"\\d*\" maxlength=\"2\"\n [formControlName]=\"config.id+'_month'\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <xuilib-gov-label\n [config]=\"{label: 'Year' | rpxTranslate, name: config.id+'-year', id: config.id+'-year', classes: 'govuk-date-input__label'}\">\n </xuilib-gov-label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-4\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id+'-year'\"\n [name]=\"config.id+'-year'\" type=\"text\" value=\"\" pattern=\"\\d*\" maxlength=\"4\"\n [formControlName]=\"config.id+'_year'\">\n </div>\n </div>\n </div>\n </xuilib-gov-uk-fieldset>\n </div>\n</div>\n", styles: [".govuk-form-group .date-input-container{margin-bottom:30px}.govuk-form-group .date-input-container .govuk-date-input .govuk-date-input__item .govuk-form-group{margin-bottom:0}\n"] }]
117
+ }], () => [], { config: [{
118
+ type: Input
119
+ }], errorMessage: [{
120
+ type: Input
121
+ }], formGroup: [{
122
+ type: Input
123
+ }], isOptional: [{
124
+ type: Input
125
+ }] }); })();
126
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkDateComponent, { className: "GovUkDateComponent", filePath: "lib/gov-ui/components/gov-uk-date/gov-uk-date.component.ts", lineNumber: 20 }); })();
127
+ //# source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ICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwieydnb3Z1ay1pbnB1dC0tZXJyb3InOiBlcnJvck1lc3NhZ2U/LmlzSW52YWxpZH1cIlxuICAgICAgICAgICAgICAgICAgIFtpZF09XCJjb25maWcuaWQrJy15ZWFyJ1wiXG4gICAgICAgICAgICAgICAgICAgW25hbWVdPVwiY29uZmlnLmlkKycteWVhcidcIiB0eXBlPVwidGV4dFwiIHZhbHVlPVwiXCIgcGF0dGVybj1cIlxcZCpcIiBtYXhsZW5ndGg9XCI0XCJcbiAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cImNvbmZpZy5pZCsnX3llYXInXCI+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgPC94dWlsaWItZ292LXVrLWZpZWxkc2V0PlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
@@ -0,0 +1,46 @@
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 GovUkErrorMessageComponent_span_0_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "span", 1)(1, "span", 2);
7
+ i0.ɵɵtext(2);
8
+ i0.ɵɵpipe(3, "rpxTranslate");
9
+ i0.ɵɵelementEnd();
10
+ i0.ɵɵtext(4);
11
+ i0.ɵɵpipe(5, "rpxTranslate");
12
+ i0.ɵɵelementEnd();
13
+ } if (rf & 2) {
14
+ const message_r1 = ctx.$implicit;
15
+ const ctx_r1 = i0.ɵɵnextContext();
16
+ i0.ɵɵproperty("id", ctx_r1.config.id + "-error");
17
+ i0.ɵɵadvance(2);
18
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 3, "Error"), ":");
19
+ i0.ɵɵadvance(2);
20
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 5, message_r1), "\n");
21
+ } }
22
+ /*
23
+ * Gov UK Error Message
24
+ * Responsible for displaying in-line error messages
25
+ * @prop config - obj with properties
26
+ * @prop errorMessage - all error bject with messages property that is arry of strings.
27
+ * */
28
+ export class GovUkErrorMessageComponent {
29
+ constructor() { }
30
+ static { this.ɵfac = function GovUkErrorMessageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkErrorMessageComponent)(); }; }
31
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkErrorMessageComponent, selectors: [["xuilib-gov-uk-error-message"]], inputs: { config: "config", errorMessage: "errorMessage" }, decls: 1, vars: 1, consts: [["class", "govuk-error-message", 3, "id", 4, "ngFor", "ngForOf"], [1, "govuk-error-message", 3, "id"], [1, "govuk-visually-hidden"]], template: function GovUkErrorMessageComponent_Template(rf, ctx) { if (rf & 1) {
32
+ i0.ɵɵtemplate(0, GovUkErrorMessageComponent_span_0_Template, 6, 7, "span", 0);
33
+ } if (rf & 2) {
34
+ i0.ɵɵproperty("ngForOf", ctx.errorMessage == null ? null : ctx.errorMessage.messages);
35
+ } }, dependencies: [i1.NgForOf, i2.RpxTranslatePipe], encapsulation: 2 }); }
36
+ }
37
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkErrorMessageComponent, [{
38
+ type: Component,
39
+ args: [{ selector: ' xuilib-gov-uk-error-message', template: "<span class=\"govuk-error-message\" [id]=\"config.id + '-error'\" *ngFor=\"let message of errorMessage?.messages\">\n <span class=\"govuk-visually-hidden\">{{'Error' | rpxTranslate}}:</span>{{message | rpxTranslate}}\n</span>\n" }]
40
+ }], () => [], { config: [{
41
+ type: Input
42
+ }], errorMessage: [{
43
+ type: Input
44
+ }] }); })();
45
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkErrorMessageComponent, { className: "GovUkErrorMessageComponent", filePath: "lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.ts", lineN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ZSBvZiBlcnJvck1lc3NhZ2U/Lm1lc3NhZ2VzXCI+XG4gIDxzcGFuIGNsYXNzPVwiZ292dWstdmlzdWFsbHktaGlkZGVuXCI+e3snRXJyb3InIHwgcnB4VHJhbnNsYXRlfX06PC9zcGFuPnt7bWVzc2FnZSB8IHJweFRyYW5zbGF0ZX19XG48L3NwYW4+XG4iXX0=
@@ -0,0 +1,79 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { HtmlTemplatesHelper } from '../../util/helpers/html-templates.helper';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "rpx-xui-translation";
6
+ const _c0 = ["*"];
7
+ function GovUkFieldsetComponent_legend_1_Template(rf, ctx) { if (rf & 1) {
8
+ i0.ɵɵelementStart(0, "legend");
9
+ i0.ɵɵtext(1);
10
+ i0.ɵɵpipe(2, "rpxTranslate");
11
+ i0.ɵɵelementEnd();
12
+ } if (rf & 2) {
13
+ const ctx_r0 = i0.ɵɵnextContext();
14
+ i0.ɵɵclassMap(ctx_r0.config.classes + " govuk-fieldset__legend");
15
+ i0.ɵɵadvance();
16
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, ctx_r0.config.legend), " ");
17
+ } }
18
+ function GovUkFieldsetComponent_legend_2_Template(rf, ctx) { if (rf & 1) {
19
+ i0.ɵɵelementStart(0, "legend")(1, "h1");
20
+ i0.ɵɵtext(2);
21
+ i0.ɵɵpipe(3, "rpxTranslate");
22
+ i0.ɵɵelementEnd()();
23
+ } if (rf & 2) {
24
+ const ctx_r0 = i0.ɵɵnextContext();
25
+ i0.ɵɵclassMap(ctx_r0.config.classes + " govuk-fieldset__legend");
26
+ i0.ɵɵadvance(2);
27
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx_r0.config.legend));
28
+ } }
29
+ function GovUkFieldsetComponent_span_3_Template(rf, ctx) { if (rf & 1) {
30
+ i0.ɵɵelementStart(0, "span", 3);
31
+ i0.ɵɵtext(1);
32
+ i0.ɵɵpipe(2, "rpxTranslate");
33
+ i0.ɵɵelementEnd();
34
+ } if (rf & 2) {
35
+ const ctx_r0 = i0.ɵɵnextContext();
36
+ i0.ɵɵproperty("id", ctx_r0.config.id + "-hint");
37
+ i0.ɵɵadvance();
38
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r0.config.hint), " ");
39
+ } }
40
+ /*
41
+ * Gov Uk Fieldset Component
42
+ * Used to wrap group fieldset elements
43
+ * it can conditionally display h1 tag
44
+ * @param config
45
+ * @param isHeading
46
+ * @param errorMessage - used for aria tag
47
+ * */
48
+ export class GovUkFieldsetComponent {
49
+ constructor() { }
50
+ setDescribedBy() {
51
+ return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
52
+ }
53
+ static { this.ɵfac = function GovUkFieldsetComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkFieldsetComponent)(); }; }
54
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkFieldsetComponent, selectors: [["xuilib-gov-uk-fieldset"]], inputs: { config: "config", errorMessage: "errorMessage" }, ngContentSelectors: _c0, decls: 5, vars: 4, consts: [[1, "govuk-fieldset"], [3, "class", 4, "ngIf"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [1, "govuk-hint", 3, "id"]], template: function GovUkFieldsetComponent_Template(rf, ctx) { if (rf & 1) {
55
+ i0.ɵɵprojectionDef();
56
+ i0.ɵɵelementStart(0, "fieldset", 0);
57
+ i0.ɵɵtemplate(1, GovUkFieldsetComponent_legend_1_Template, 3, 5, "legend", 1)(2, GovUkFieldsetComponent_legend_2_Template, 4, 5, "legend", 1)(3, GovUkFieldsetComponent_span_3_Template, 3, 4, "span", 2);
58
+ i0.ɵɵprojection(4);
59
+ i0.ɵɵelementEnd();
60
+ } if (rf & 2) {
61
+ i0.ɵɵattribute("aria-describedby", ctx.setDescribedBy());
62
+ i0.ɵɵadvance();
63
+ i0.ɵɵproperty("ngIf", !ctx.config.isPageHeading);
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵproperty("ngIf", ctx.config.isPageHeading);
66
+ i0.ɵɵadvance();
67
+ i0.ɵɵproperty("ngIf", ctx.config.hint);
68
+ } }, dependencies: [i1.NgIf, i2.RpxTranslatePipe], encapsulation: 2 }); }
69
+ }
70
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkFieldsetComponent, [{
71
+ type: Component,
72
+ args: [{ selector: 'xuilib-gov-uk-fieldset', template: "<fieldset class=\"govuk-fieldset\" [attr.aria-describedby]=\"setDescribedBy()\">\n <legend [class]=\"config.classes + ' govuk-fieldset__legend'\" *ngIf=\"!config.isPageHeading\">\n {{config.legend | rpxTranslate}}\n </legend>\n\n <legend [class]=\"config.classes + ' govuk-fieldset__legend'\" *ngIf=\"config.isPageHeading\">\n <h1>{{config.legend | rpxTranslate}}</h1>\n </legend>\n\n <span [id]=\"config.id+'-hint'\" class=\"govuk-hint\" *ngIf=\"config.hint\">\n {{config.hint | rpxTranslate}}\n </span>\n <ng-content></ng-content>\n</fieldset>\n" }]
73
+ }], () => [], { config: [{
74
+ type: Input
75
+ }], errorMessage: [{
76
+ type: Input
77
+ }] }); })();
78
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkFieldsetComponent, { className: "GovUkFieldsetComponent", filePath: "lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.ts", lineNumber: 17 }); })();
79
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZpZWxkc2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1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GFzcz1cImdvdnVrLWhpbnRcIiAqbmdJZj1cImNvbmZpZy5oaW50XCI+XG4gICAge3tjb25maWcuaGludCB8IHJweFRyYW5zbGF0ZX19XG4gIDwvc3Bhbj5cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9maWVsZHNldD5cbiJdfQ==
@@ -0,0 +1,79 @@
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-file-upload--error": a0 });
12
+ function GovUkFileUploadComponent_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), " ");
22
+ } }
23
+ function GovUkFileUploadComponent_input_4_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelement(0, "input", 6);
25
+ } if (rf & 2) {
26
+ const ctx_r0 = i0.ɵɵnextContext();
27
+ i0.ɵɵproperty("formControlName", ctx_r0.config.id)("ngClass", i0.ɵɵpureFunction1(5, _c1, ctx_r0.errorMessage == null ? null : ctx_r0.errorMessage.isInvalid))("id", ctx_r0.config.id)("name", ctx_r0.config.name);
28
+ i0.ɵɵattribute("aria-describedby", ctx_r0.setDescribedBy());
29
+ } }
30
+ /*
31
+ * Gov UK Input component
32
+ * Responsible for displaying input, hint and error messages
33
+ * @prop errorMessages - array of messages
34
+ * @prop focusOn - passing the FormGroup
35
+ * @prop config - adding configuration
36
+ * */
37
+ export class GovUkFileUploadComponent {
38
+ constructor() {
39
+ // { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
40
+ this.reloadInput = true;
41
+ }
42
+ ngOnInit() {
43
+ this.config.classes = 'govuk-label--m';
44
+ }
45
+ setDescribedBy() {
46
+ return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
47
+ }
48
+ static { this.ɵfac = function GovUkFileUploadComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkFileUploadComponent)(); }; }
49
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkFileUploadComponent, selectors: [["xuilib-gov-uk-file-upload"]], inputs: { errorMessage: "errorMessage", group: "group", config: "config" }, decls: 5, vars: 9, consts: [[1, "govuk-form-group", 3, "formGroup", "ngClass"], [3, "config"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], [3, "config", "errorMessage"], ["class", "govuk-file-upload", "type", "file", 3, "formControlName", "ngClass", "id", "name", 4, "ngIf"], [1, "govuk-hint", 3, "id"], ["type", "file", 1, "govuk-file-upload", 3, "formControlName", "ngClass", "id", "name"]], template: function GovUkFileUploadComponent_Template(rf, ctx) { if (rf & 1) {
50
+ i0.ɵɵelementStart(0, "div", 0);
51
+ i0.ɵɵelement(1, "xuilib-gov-label", 1);
52
+ i0.ɵɵtemplate(2, GovUkFileUploadComponent_span_2_Template, 3, 4, "span", 2);
53
+ i0.ɵɵelement(3, "xuilib-gov-uk-error-message", 3);
54
+ i0.ɵɵtemplate(4, GovUkFileUploadComponent_input_4_Template, 1, 7, "input", 4);
55
+ i0.ɵɵelementEnd();
56
+ } if (rf & 2) {
57
+ i0.ɵɵproperty("formGroup", ctx.group)("ngClass", i0.ɵɵpureFunction1(7, _c0, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid));
58
+ i0.ɵɵadvance();
59
+ i0.ɵɵproperty("config", ctx.config);
60
+ i0.ɵɵadvance();
61
+ i0.ɵɵproperty("ngIf", ctx.config.hint);
62
+ i0.ɵɵadvance();
63
+ i0.ɵɵproperty("config", ctx.config)("errorMessage", ctx.errorMessage);
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵproperty("ngIf", ctx.reloadInput);
66
+ } }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.RpxTranslatePipe], encapsulation: 2 }); }
67
+ }
68
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkFileUploadComponent, [{
69
+ type: Component,
70
+ args: [{ selector: 'xuilib-gov-uk-file-upload', template: "<div class=\"govuk-form-group\" [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-file-upload\"\n *ngIf=\"reloadInput\"\n [formControlName]=\"config.id\"\n [ngClass]=\"{'govuk-file-upload--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\" [name]=\"config.name\"\n [attr.aria-describedby]=\"setDescribedBy()\"\n type=\"file\">\n</div>\n" }]
71
+ }], () => [], { errorMessage: [{
72
+ type: Input
73
+ }], group: [{
74
+ type: Input
75
+ }], config: [{
76
+ type: Input
77
+ }] }); })();
78
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkFileUploadComponent, { className: "GovUkFileUploadComponent", filePath: "lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.ts", lineNumber: 17 }); })();
79
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZpbGUtdXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1maWxlLXVwbG9hZC9nb3YtdWstZmlsZS11cGxvYWQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWZpbGUtdXBsb2FkL2dvdi11ay1maWxlLXVwbG9hZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUN2RCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFHekMsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sMENBQTBDLENBQUM7Ozs7Ozs7Ozs7SUNDdkUsK0JBQXVFO0lBQ25FLFlBQ0o7O0lBQUEsaUJBQU87OztJQUZtQiwrQ0FBeUI7SUFDL0MsY0FDSjtJQURJLHlFQUNKOzs7SUFJQSwyQkFNbUI7OztJQUZLLEFBQWpCLEFBREEsQUFEQSxrREFBNkIsMkdBQ29DLHdCQUNqRCw0QkFBcUI7OztBRFZsRDs7Ozs7O0lBTUk7QUFLSixNQUFNLE9BQU8sd0JBQXdCO0lBQ25DO1FBSUEsb0hB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NzXT1cInsnZ292dWstZmlsZS11cGxvYWQtLWVycm9yJzogZXJyb3JNZXNzYWdlPy5pc0ludmFsaWR9XCJcbiAgICAgICAgICAgICBbaWRdPVwiY29uZmlnLmlkXCIgW25hbWVdPVwiY29uZmlnLm5hbWVcIlxuICAgICAgICAgICAgIFthdHRyLmFyaWEtZGVzY3JpYmVkYnldPVwic2V0RGVzY3JpYmVkQnkoKVwiXG4gICAgICAgICAgICAgdHlwZT1cImZpbGVcIj5cbjwvZGl2PlxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWZvcm0tZ3JvdXAtd3JhcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9nb3YtdWstZm9ybS1ncm91cC13cmFwcGVyL2dvdi11ay1mb3JtLWdyb3VwLXdyYXBwZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWZvcm0tZ3JvdXAtd3JhcHBlci9nb3YtdWstZm9ybS1ncm91cC13cmFwcGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7Ozs7QUFHL0M7Ozs7O0lBS0k7QUFLSixNQUFNLE9BQU8sOEJBQThCO0lBQ3pDLGdCQUFnQixDQUFDOytIQUROLDhCQUE4QjtvRUFBOUIsOEJBQThCOztZQ1p6QyxBQURGLDhCQUF1SCxnQ0FHNUY7WUFFdkIsaURBQXlHO1lBRXpHLGtCQUF5QjtZQUc3QixBQURFLGlCQUF5QixFQUNyQjs7WUFWcUQsb0dBQTJEOztZQUVsSCxjQUFxSTtZQUNySSxBQURBLGlJQUFxSSwyQkFDL0c7WUFFTyxjQUFzQjtZQUFDLEFBQXZCLCtEQUFzQiwyQkFBdUI7OztpRkRRakUsOEJBQThCO2NBSjFDLFNBQVM7MkJBQ0Usa0NBQWtDO29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zUGFnZUhlYWRpbmc6IGJvb2xlYW47fTsgLy8gVE9ETyBjcmVhdGUgYSBnbG9iYWwgaW50ZXJmYWNlXG5cbn1cblxuIiwiPGRpdiBjbGFzcz1cImdvdnVrLWZvcm0tZ3JvdXBcIiBbYXR0ci5mb3JtR3JvdXBOYW1lXT1cImdyb3VwXCIgW25nQ2xhc3NdPVwieydnb3Z1ay1mb3JtLWdyb3VwLS1lcnJvcic6IChlcnJvcj8uaXNJbnZhbGlkKX1cIj5cbiAgPHh1aWxpYi1nb3YtdWstZmllbGRzZXRcbiAgICBbY29uZmlnXT1cIntsZWdlbmQ6IGNvbmZpZy5sZWdlbmQsIGNsYXNzZXM6ICdnb3Z1ay1sYWJlbC0tbScsIGlkOiBjb25maWcua2V5LCBoaW50OiBjb25maWcuaGludCwgaXNQYWdlSGVhZGluZzogY29uZmlnLmlzUGFnZUhlYWRpbmd9XCJcbiAgICBbZXJyb3JNZXNzYWdlXT1cImVycm9yXCI+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay1pbnB1dC9nb3YtdWstaW5wdXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLWlucHV0L2dvdi11ay1pbnB1dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjo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ZWwgW2NvbmZpZ109XCJjb25maWdcIj48L3h1aWxpYi1nb3YtbGFiZWw+XG5cbjxzcGFuICpuZ0lmPVwiY29uZmlnLmhpbnRcIiBbaWRdPVwiY29uZmlnLmlkICsnLWhpbnQnXCIgY2xhc3M9XCJnb3Z1ay1oaW50XCI+XG4gIHt7Y29uZmlnLmhpbnQgfCBycHhUcmFuc2xhdGV9fVxuPC9zcGFuPlxuXG48eHVpbGliLWdvdi11ay1lcnJvci1tZXNzYWdlIFtjb25maWddPVwiY29uZmlnXCIgW2Vycm9yTWVzc2FnZV09XCJlcnJvck1lc3NhZ2VcIj48L3h1aWxpYi1nb3YtdWstZXJyb3ItbWVzc2FnZT5cblxuPGlucHV0IGNsYXNzPVwiZ292dWstaW5wdXRcIlxuICAgICAgIFtjbGFzcy5nb3Z1ay0hLXdpZHRoLWZ1bGxdPVwiY29uZmlnLmZ1bGxXaWR0aFwiXG4gICAgICAgW25nQ2xhc3NdPVwieydnb3Z1ay1pbnB1dC0tZXJyb3InOiBlcnJvck1lc3NhZ2U/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9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