@hmcts/rpx-xui-common-lib 2.0.19 → 2.0.21

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 (279) hide show
  1. package/README.md +1 -1
  2. package/esm2022/lib/components/accessibility/accessibility.component.mjs +725 -0
  3. package/esm2022/lib/components/checkbox-list/checkbox-list.component.mjs +232 -0
  4. package/esm2022/lib/components/contact-details/contact-details.component.mjs +104 -0
  5. package/esm2022/lib/components/cookie-banner/cookie-banner.component.mjs +151 -0
  6. package/esm2022/lib/components/due-date/due-date.component.mjs +141 -0
  7. package/esm2022/lib/components/exui-main-wrapper/exui-page-wrapper.component.mjs +80 -0
  8. package/esm2022/lib/components/find-location/find-location.component.mjs +220 -0
  9. package/esm2022/lib/components/find-person/find-person.component.mjs +234 -0
  10. package/esm2022/lib/components/find-service/find-service.component.mjs +193 -0
  11. package/{esm2020 → esm2022}/lib/components/find-task-name/find-task-name.component.mjs +53 -53
  12. package/{esm2020 → esm2022}/lib/components/generic-filter/generic-filter-utils.mjs +1 -1
  13. package/esm2022/lib/components/generic-filter/generic-filter.component.mjs +1184 -0
  14. package/esm2022/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.mjs +56 -0
  15. package/esm2022/lib/components/invite-user-form/invite-user-form.component.mjs +51 -0
  16. package/esm2022/lib/components/invite-user-permissions/invite-user-permission.component.mjs +54 -0
  17. package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +33 -0
  18. package/esm2022/lib/components/pagination/pagination.component.mjs +92 -0
  19. package/esm2022/lib/components/search-judicials/search-judicials.component.mjs +185 -0
  20. package/esm2022/lib/components/search-location/search-location.component.mjs +237 -0
  21. package/esm2022/lib/components/search-service/search-service.component.mjs +83 -0
  22. package/esm2022/lib/components/search-venue/search-venue.component.mjs +190 -0
  23. package/esm2022/lib/components/selected-case/selected-case.component.mjs +379 -0
  24. package/esm2022/lib/components/selected-case-confirm/selected-case-confirm.component.mjs +135 -0
  25. package/esm2022/lib/components/selected-case-list/selected-case-list.component.mjs +98 -0
  26. package/esm2022/lib/components/service-message/service-message.component.mjs +51 -0
  27. package/esm2022/lib/components/service-messages/service-messages.component.mjs +76 -0
  28. package/esm2022/lib/components/share-case/share-case.component.mjs +420 -0
  29. package/esm2022/lib/components/share-case-confirm/share-case-confirm.component.mjs +85 -0
  30. package/esm2022/lib/components/tab/tab.component.mjs +40 -0
  31. package/esm2022/lib/components/tc-confirm/tc-confirm.component.mjs +66 -0
  32. package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.mjs +17 -0
  33. package/esm2022/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.mjs +17 -0
  34. package/esm2022/lib/components/terms-and-conditions/terms-and-conditions.component.mjs +58 -0
  35. package/esm2022/lib/components/user-details/user-details.component.mjs +273 -0
  36. package/esm2022/lib/components/user-list/user-list.component.mjs +100 -0
  37. package/esm2022/lib/components/user-select/user-select.component.mjs +94 -0
  38. package/esm2022/lib/components/write-address/write-address.component.mjs +342 -0
  39. package/esm2022/lib/components/write-address-inputs/write-address-inputs.component.mjs +165 -0
  40. package/esm2022/lib/directives/feature-toggle/feature-toggle.directive.mjs +41 -0
  41. package/{esm2020 → esm2022}/lib/directives/let/let.directive.mjs +5 -5
  42. package/{esm2020 → esm2022}/lib/exui-common-lib.module.mjs +15 -15
  43. package/esm2022/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.mjs +55 -0
  44. package/esm2022/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.mjs +137 -0
  45. package/esm2022/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.mjs +121 -0
  46. package/esm2022/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs +46 -0
  47. package/esm2022/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.mjs +79 -0
  48. package/esm2022/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.mjs +79 -0
  49. package/esm2022/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.mjs +45 -0
  50. package/esm2022/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.mjs +71 -0
  51. package/esm2022/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.mjs +84 -0
  52. package/esm2022/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.mjs +48 -0
  53. package/esm2022/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.mjs +42 -0
  54. package/esm2022/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.mjs +80 -0
  55. package/esm2022/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.mjs +185 -0
  56. package/esm2022/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.mjs +57 -0
  57. package/esm2022/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.mjs +111 -0
  58. package/esm2022/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.mjs +140 -0
  59. package/esm2022/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.mjs +34 -0
  60. package/esm2022/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.mjs +129 -0
  61. package/esm2022/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.mjs +204 -0
  62. package/esm2022/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.mjs +60 -0
  63. package/esm2022/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.mjs +58 -0
  64. package/esm2022/lib/gov-ui/directives/remove-host.directive.mjs +30 -0
  65. package/{esm2020 → esm2022}/lib/gov-ui/gov-ui.service.mjs +5 -5
  66. package/esm2022/lib/gov-ui/util/helpers/html-templates.helper.mjs +22 -0
  67. package/{esm2020 → esm2022}/lib/gov-ui/validators/checkboxes-be-checked.validator.mjs +1 -1
  68. package/{esm2020 → esm2022}/lib/gov-ui/validators/date.validator.mjs +1 -1
  69. package/esm2022/lib/gov-ui/validators/radio-group.validator.mjs +15 -0
  70. package/esm2022/lib/models/address-option.model.mjs +21 -0
  71. package/{esm2020 → esm2022}/lib/pipes/capitalize/capitalize.pipe.mjs +4 -4
  72. package/esm2022/lib/services/address/address-parser.mjs +76 -0
  73. package/esm2022/lib/services/address/address.service.mjs +55 -0
  74. package/esm2022/lib/services/case-sharing-state/case-sharing-state.service.mjs +170 -0
  75. package/{esm2020 → esm2022}/lib/services/cookie/cookie.service.mjs +6 -6
  76. package/{esm2020 → esm2022}/lib/services/feature-toggle/feature-toggle.guard.mjs +5 -5
  77. package/{esm2020 → esm2022}/lib/services/feature-toggle/feature-toggle.service.mjs +4 -4
  78. package/esm2022/lib/services/feature-toggle/launch-darkly.service.mjs +65 -0
  79. package/esm2022/lib/services/filter/filter.service.mjs +95 -0
  80. package/esm2022/lib/services/find-person/find-person.service.mjs +83 -0
  81. package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +68 -0
  82. package/esm2022/lib/services/google-tag-manager/google-tag-manager.service.mjs +71 -0
  83. package/{esm2020 → esm2022}/lib/services/loading/loading.service.mjs +4 -4
  84. package/{esm2020 → esm2022}/lib/services/locations/location.service.mjs +5 -5
  85. package/{esm2020 → esm2022}/lib/services/manage-session/manage-session.services.mjs +5 -5
  86. package/esm2022/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.mjs +33 -0
  87. package/esm2022/lib/services/ref-data/ref-data.service.mjs +34 -0
  88. package/{esm2020 → esm2022}/lib/services/role-guard/role.guard.mjs +5 -5
  89. package/{esm2020 → esm2022}/lib/services/role-guard/role.service.mjs +4 -4
  90. package/esm2022/lib/services/storage/session-storage/session-storage.service.mjs +43 -0
  91. package/esm2022/lib/services/task-name/task-name.service.mjs +35 -0
  92. package/{esm2020 → esm2022}/lib/services/timeout-notifications/timeout-notifications.service.mjs +5 -5
  93. package/{fesm2020 → fesm2022}/hmcts-rpx-xui-common-lib.mjs +2823 -2835
  94. package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -0
  95. package/lib/components/checkbox-list/checkbox-list.component.d.ts +1 -1
  96. package/lib/components/contact-details/contact-details.component.d.ts +1 -1
  97. package/lib/components/cookie-banner/cookie-banner.component.d.ts +1 -1
  98. package/lib/components/due-date/due-date.component.d.ts +1 -1
  99. package/lib/components/exui-main-wrapper/exui-page-wrapper.component.d.ts +1 -1
  100. package/lib/components/find-location/find-location.component.d.ts +1 -1
  101. package/lib/components/find-person/find-person.component.d.ts +1 -1
  102. package/lib/components/find-service/find-service.component.d.ts +1 -1
  103. package/lib/components/find-task-name/find-task-name.component.d.ts +1 -1
  104. package/lib/components/generic-filter/generic-filter.component.d.ts +1 -1
  105. package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +1 -1
  106. package/lib/components/invite-user-form/invite-user-form.component.d.ts +1 -1
  107. package/lib/components/invite-user-permissions/invite-user-permission.component.d.ts +1 -1
  108. package/lib/components/loading-spinner/loading-spinner.component.d.ts +1 -1
  109. package/lib/components/pagination/pagination.component.d.ts +1 -1
  110. package/lib/components/search-judicials/search-judicials.component.d.ts +1 -1
  111. package/lib/components/search-location/search-location.component.d.ts +1 -1
  112. package/lib/components/search-service/search-service.component.d.ts +1 -1
  113. package/lib/components/search-venue/search-venue.component.d.ts +1 -1
  114. package/lib/components/selected-case/selected-case.component.d.ts +1 -1
  115. package/lib/components/selected-case-confirm/selected-case-confirm.component.d.ts +1 -1
  116. package/lib/components/selected-case-list/selected-case-list.component.d.ts +1 -1
  117. package/lib/components/service-message/service-message.component.d.ts +1 -1
  118. package/lib/components/service-messages/service-messages.component.d.ts +1 -1
  119. package/lib/components/share-case/share-case.component.d.ts +1 -1
  120. package/lib/components/share-case-confirm/share-case-confirm.component.d.ts +1 -1
  121. package/lib/components/tab/tab.component.d.ts +1 -1
  122. package/lib/components/tc-confirm/tc-confirm.component.d.ts +1 -1
  123. package/lib/components/terms-and-conditions/terms-and-conditions.component.d.ts +1 -1
  124. package/lib/components/user-details/user-details.component.d.ts +1 -1
  125. package/lib/components/user-list/user-list.component.d.ts +1 -1
  126. package/lib/components/user-select/user-select.component.d.ts +1 -1
  127. package/lib/components/write-address/write-address.component.d.ts +1 -1
  128. package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +1 -1
  129. package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +1 -1
  130. package/lib/directives/let/let.directive.d.ts +1 -1
  131. package/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.d.ts +1 -1
  132. package/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.d.ts +1 -1
  133. package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +1 -1
  134. package/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -1
  135. package/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -1
  136. package/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.d.ts +1 -1
  137. package/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.d.ts +1 -1
  138. package/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.d.ts +1 -1
  139. package/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.d.ts +1 -1
  140. package/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.d.ts +1 -1
  141. package/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.d.ts +1 -1
  142. package/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.d.ts +1 -1
  143. package/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.d.ts +1 -1
  144. package/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.d.ts +1 -1
  145. package/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.d.ts +1 -1
  146. package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +1 -1
  147. package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +1 -1
  148. package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +1 -1
  149. package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +1 -1
  150. package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +1 -1
  151. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +1 -1
  152. package/lib/services/feature-toggle/feature-toggle.guard.d.ts +2 -2
  153. package/lib/services/role-guard/role.guard.d.ts +2 -2
  154. package/package.json +5 -11
  155. package/esm2020/lib/components/accessibility/accessibility.component.mjs +0 -737
  156. package/esm2020/lib/components/checkbox-list/checkbox-list.component.mjs +0 -231
  157. package/esm2020/lib/components/contact-details/contact-details.component.mjs +0 -107
  158. package/esm2020/lib/components/cookie-banner/cookie-banner.component.mjs +0 -150
  159. package/esm2020/lib/components/due-date/due-date.component.mjs +0 -140
  160. package/esm2020/lib/components/exui-main-wrapper/exui-page-wrapper.component.mjs +0 -79
  161. package/esm2020/lib/components/find-location/find-location.component.mjs +0 -219
  162. package/esm2020/lib/components/find-person/find-person.component.mjs +0 -234
  163. package/esm2020/lib/components/find-service/find-service.component.mjs +0 -192
  164. package/esm2020/lib/components/generic-filter/generic-filter.component.mjs +0 -1198
  165. package/esm2020/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.mjs +0 -55
  166. package/esm2020/lib/components/invite-user-form/invite-user-form.component.mjs +0 -50
  167. package/esm2020/lib/components/invite-user-permissions/invite-user-permission.component.mjs +0 -54
  168. package/esm2020/lib/components/loading-spinner/loading-spinner.component.mjs +0 -32
  169. package/esm2020/lib/components/pagination/pagination.component.mjs +0 -93
  170. package/esm2020/lib/components/search-judicials/search-judicials.component.mjs +0 -184
  171. package/esm2020/lib/components/search-location/search-location.component.mjs +0 -236
  172. package/esm2020/lib/components/search-service/search-service.component.mjs +0 -81
  173. package/esm2020/lib/components/search-venue/search-venue.component.mjs +0 -188
  174. package/esm2020/lib/components/selected-case/selected-case.component.mjs +0 -380
  175. package/esm2020/lib/components/selected-case-confirm/selected-case-confirm.component.mjs +0 -135
  176. package/esm2020/lib/components/selected-case-list/selected-case-list.component.mjs +0 -98
  177. package/esm2020/lib/components/service-message/service-message.component.mjs +0 -50
  178. package/esm2020/lib/components/service-messages/service-messages.component.mjs +0 -75
  179. package/esm2020/lib/components/share-case/share-case.component.mjs +0 -420
  180. package/esm2020/lib/components/share-case-confirm/share-case-confirm.component.mjs +0 -85
  181. package/esm2020/lib/components/tab/tab.component.mjs +0 -39
  182. package/esm2020/lib/components/tc-confirm/tc-confirm.component.mjs +0 -65
  183. package/esm2020/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.mjs +0 -16
  184. package/esm2020/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.mjs +0 -16
  185. package/esm2020/lib/components/terms-and-conditions/terms-and-conditions.component.mjs +0 -59
  186. package/esm2020/lib/components/user-details/user-details.component.mjs +0 -281
  187. package/esm2020/lib/components/user-list/user-list.component.mjs +0 -99
  188. package/esm2020/lib/components/user-select/user-select.component.mjs +0 -92
  189. package/esm2020/lib/components/write-address/write-address.component.mjs +0 -345
  190. package/esm2020/lib/components/write-address-inputs/write-address-inputs.component.mjs +0 -165
  191. package/esm2020/lib/directives/feature-toggle/feature-toggle.directive.mjs +0 -41
  192. package/esm2020/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.mjs +0 -54
  193. package/esm2020/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.mjs +0 -136
  194. package/esm2020/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.mjs +0 -120
  195. package/esm2020/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.mjs +0 -45
  196. package/esm2020/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.mjs +0 -80
  197. package/esm2020/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.mjs +0 -78
  198. package/esm2020/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.mjs +0 -45
  199. package/esm2020/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.mjs +0 -70
  200. package/esm2020/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.mjs +0 -84
  201. package/esm2020/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.mjs +0 -47
  202. package/esm2020/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.mjs +0 -41
  203. package/esm2020/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.mjs +0 -79
  204. package/esm2020/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.mjs +0 -188
  205. package/esm2020/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.mjs +0 -56
  206. package/esm2020/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.mjs +0 -112
  207. package/esm2020/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.mjs +0 -141
  208. package/esm2020/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.mjs +0 -33
  209. package/esm2020/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.mjs +0 -130
  210. package/esm2020/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.mjs +0 -204
  211. package/esm2020/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.mjs +0 -59
  212. package/esm2020/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.mjs +0 -57
  213. package/esm2020/lib/gov-ui/directives/remove-host.directive.mjs +0 -30
  214. package/esm2020/lib/gov-ui/util/helpers/html-templates.helper.mjs +0 -22
  215. package/esm2020/lib/gov-ui/validators/radio-group.validator.mjs +0 -15
  216. package/esm2020/lib/models/address-option.model.mjs +0 -21
  217. package/esm2020/lib/services/address/address-parser.mjs +0 -76
  218. package/esm2020/lib/services/address/address.service.mjs +0 -55
  219. package/esm2020/lib/services/case-sharing-state/case-sharing-state.service.mjs +0 -170
  220. package/esm2020/lib/services/feature-toggle/launch-darkly.service.mjs +0 -65
  221. package/esm2020/lib/services/filter/filter.service.mjs +0 -95
  222. package/esm2020/lib/services/find-person/find-person.service.mjs +0 -83
  223. package/esm2020/lib/services/google-analytics/google-analytics.service.mjs +0 -68
  224. package/esm2020/lib/services/google-tag-manager/google-tag-manager.service.mjs +0 -71
  225. package/esm2020/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.mjs +0 -33
  226. package/esm2020/lib/services/ref-data/ref-data.service.mjs +0 -34
  227. package/esm2020/lib/services/storage/session-storage/session-storage.service.mjs +0 -43
  228. package/esm2020/lib/services/task-name/task-name.service.mjs +0 -35
  229. package/fesm2015/hmcts-rpx-xui-common-lib.mjs +0 -11073
  230. package/fesm2015/hmcts-rpx-xui-common-lib.mjs.map +0 -1
  231. package/fesm2020/hmcts-rpx-xui-common-lib.mjs.map +0 -1
  232. /package/{esm2020 → esm2022}/hmcts-rpx-xui-common-lib.mjs +0 -0
  233. /package/{esm2020 → esm2022}/lib/components/index.mjs +0 -0
  234. /package/{esm2020 → esm2022}/lib/components/public_api.mjs +0 -0
  235. /package/{esm2020 → esm2022}/lib/directives/index.mjs +0 -0
  236. /package/{esm2020 → esm2022}/lib/directives/public-api.mjs +0 -0
  237. /package/{esm2020 → esm2022}/lib/gov-ui/components/hmcts-banner/hmcts-banner-info.interface.mjs +0 -0
  238. /package/{esm2020 → esm2022}/lib/gov-ui/components/index.mjs +0 -0
  239. /package/{esm2020 → esm2022}/lib/gov-ui/components/public_api.mjs +0 -0
  240. /package/{esm2020 → esm2022}/lib/gov-ui/index.mjs +0 -0
  241. /package/{esm2020 → esm2022}/lib/gov-ui/models/checkboxes-model.mjs +0 -0
  242. /package/{esm2020 → esm2022}/lib/gov-ui/models/error-messages-model.mjs +0 -0
  243. /package/{esm2020 → esm2022}/lib/gov-ui/models/gov-ui-config-model.mjs +0 -0
  244. /package/{esm2020 → esm2022}/lib/gov-ui/models/index.mjs +0 -0
  245. /package/{esm2020 → esm2022}/lib/gov-ui/models/public_api.mjs +0 -0
  246. /package/{esm2020 → esm2022}/lib/gov-ui/models/radio-buttons.model.mjs +0 -0
  247. /package/{esm2020 → esm2022}/lib/gov-ui/public_api.mjs +0 -0
  248. /package/{esm2020 → esm2022}/lib/gov-ui/validators/index.mjs +0 -0
  249. /package/{esm2020 → esm2022}/lib/gov-ui/validators/public_api.mjs +0 -0
  250. /package/{esm2020 → esm2022}/lib/models/address-message.enum.mjs +0 -0
  251. /package/{esm2020 → esm2022}/lib/models/address.model.mjs +0 -0
  252. /package/{esm2020 → esm2022}/lib/models/case-share.model.mjs +0 -0
  253. /package/{esm2020 → esm2022}/lib/models/contact-details.model.mjs +0 -0
  254. /package/{esm2020 → esm2022}/lib/models/due-date.model.mjs +0 -0
  255. /package/{esm2020 → esm2022}/lib/models/feature-user.mjs +0 -0
  256. /package/{esm2020 → esm2022}/lib/models/filter.model.mjs +0 -0
  257. /package/{esm2020 → esm2022}/lib/models/idle-config.model.mjs +0 -0
  258. /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
  259. /package/{esm2020 → esm2022}/lib/models/location.model.mjs +0 -0
  260. /package/{esm2020 → esm2022}/lib/models/pagination.model.mjs +0 -0
  261. /package/{esm2020 → esm2022}/lib/models/person.model.mjs +0 -0
  262. /package/{esm2020 → esm2022}/lib/models/public_api.mjs +0 -0
  263. /package/{esm2020 → esm2022}/lib/models/search-options.model.mjs +0 -0
  264. /package/{esm2020 → esm2022}/lib/models/task-name.model.mjs +0 -0
  265. /package/{esm2020 → esm2022}/lib/models/tcDocument.model.mjs +0 -0
  266. /package/{esm2020 → esm2022}/lib/models/timeout-notification.model.mjs +0 -0
  267. /package/{esm2020 → esm2022}/lib/models/user-access-type.model.mjs +0 -0
  268. /package/{esm2020 → esm2022}/lib/models/user-details.model.mjs +0 -0
  269. /package/{esm2020 → esm2022}/lib/models/user.model.mjs +0 -0
  270. /package/{esm2020 → esm2022}/lib/pipes/index.mjs +0 -0
  271. /package/{esm2020 → esm2022}/lib/services/address/address-type.enum.mjs +0 -0
  272. /package/{esm2020 → esm2022}/lib/services/index.mjs +0 -0
  273. /package/{esm2020 → esm2022}/lib/services/public-api.mjs +0 -0
  274. /package/{esm2020 → esm2022}/lib/services/ref-data/index.mjs +0 -0
  275. /package/{esm2020 → esm2022}/lib/services/ref-data/models/ref-data-htmcs-service.model.mjs +0 -0
  276. /package/{esm2020 → esm2022}/lib/services/ref-data/models/ref-data-region.model.mjs +0 -0
  277. /package/{esm2020 → esm2022}/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.mjs +0 -0
  278. /package/{esm2020 → esm2022}/lib/window.mjs +0 -0
  279. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -0,0 +1,57 @@
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-textarea--error": a0 });
12
+ /*
13
+ * CheckBox component - state less
14
+ * Responsible for displaying a list of gov-uk-checkboxes
15
+ * @param: options - object with data for wrapper (fieldset) and
16
+ * array of items for gov-uk-checkboxes
17
+ * @param: errors - array of errorMessage
18
+ * */
19
+ export class GovUkTextareaComponent {
20
+ setDescribedBy() {
21
+ return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
22
+ }
23
+ static { this.ɵfac = function GovUkTextareaComponent_Factory(t) { return new (t || GovUkTextareaComponent)(); }; }
24
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkTextareaComponent, selectors: [["xuilib-gov-uk-textarea"]], inputs: { config: "config", errorMessage: "errorMessage", group: "group" }, decls: 7, vars: 17, consts: [[1, "govuk-form-group", 3, "formGroup", "ngClass"], [3, "config"], ["id", "more-detail-hint", 1, "govuk-hint"], [3, "config", "errorMessage"], ["name", "more-detail", 1, "govuk-textarea", 3, "formControlName", "ngClass", "id", "rows"]], template: function GovUkTextareaComponent_Template(rf, ctx) { if (rf & 1) {
25
+ i0.ɵɵelementStart(0, "div", 0);
26
+ i0.ɵɵelement(1, "xuilib-gov-label", 1);
27
+ i0.ɵɵelementStart(2, "span", 2);
28
+ i0.ɵɵtext(3);
29
+ i0.ɵɵpipe(4, "rpxTranslate");
30
+ i0.ɵɵelementEnd();
31
+ i0.ɵɵelement(5, "xuilib-gov-uk-error-message", 3)(6, "textarea", 4);
32
+ i0.ɵɵelementEnd();
33
+ } if (rf & 2) {
34
+ i0.ɵɵproperty("formGroup", ctx.group)("ngClass", i0.ɵɵpureFunction1(13, _c0, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid));
35
+ i0.ɵɵadvance();
36
+ i0.ɵɵproperty("config", ctx.config);
37
+ i0.ɵɵadvance(2);
38
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 11, ctx.config.hint), "\n");
39
+ i0.ɵɵadvance(2);
40
+ i0.ɵɵproperty("config", ctx.config)("errorMessage", ctx.errorMessage);
41
+ i0.ɵɵadvance();
42
+ i0.ɵɵproperty("formControlName", ctx.config.key)("ngClass", i0.ɵɵpureFunction1(15, _c1, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id)("rows", ctx.config.rows);
43
+ i0.ɵɵattribute("aria-describedby", ctx.setDescribedBy());
44
+ } }, dependencies: [i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.GovUkLabelComponent, i4.GovUkErrorMessageComponent, i5.RpxTranslatePipe], encapsulation: 2 }); }
45
+ }
46
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkTextareaComponent, [{
47
+ type: Component,
48
+ args: [{ selector: 'xuilib-gov-uk-textarea', template: "<div [formGroup]=\"group\"\nclass=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span id=\"more-detail-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<textarea\n class=\"govuk-textarea\" [formControlName]=\"config.key\"\n [ngClass]=\"{'govuk-textarea--error': errorMessage?.isInvalid}\"\n [id]=\"config.id\" name=\"more-detail\" [rows]=\"config.rows\" [attr.aria-describedby]=\"setDescribedBy()\"></textarea>\n</div>\n" }]
49
+ }], null, { config: [{
50
+ type: Input
51
+ }], errorMessage: [{
52
+ type: Input
53
+ }], group: [{
54
+ type: Input
55
+ }] }); })();
56
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkTextareaComponent, { className: "GovUkTextareaComponent", filePath: "lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.ts", lineNumber: 17 }); })();
57
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ292LXVrLXRleHRhcmVhLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2dvdi11ay10ZXh0YXJlYS9nb3YtdWstdGV4dGFyZWEuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvZ292LXVrLXRleHRhcmVhL2dvdi11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tZGV0YWlsXCIgW3Jvd3NdPVwiY29uZmlnLnJvd3NcIiBbYXR0ci5hcmlhLWRlc2NyaWJlZGJ5XT1cInNldERlc2NyaWJlZEJ5KClcIj48L3RleHRhcmVhPlxuPC9kaXY+XG4iXX0=
@@ -0,0 +1,111 @@
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 HmctsBannerComponent_ng_container_0_div_1_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "div");
7
+ i0.ɵɵtext(1);
8
+ i0.ɵɵelementEnd();
9
+ } if (rf & 2) {
10
+ const ctx_r0 = i0.ɵɵnextContext(2);
11
+ i0.ɵɵclassMapInterpolate1("hmcts-banner-title hmcts-banner-title--", ctx_r0.type, "");
12
+ i0.ɵɵadvance();
13
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
14
+ } }
15
+ function HmctsBannerComponent_ng_container_0_ng_container_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
16
+ i0.ɵɵelementContainerStart(0);
17
+ i0.ɵɵnamespaceSVG();
18
+ i0.ɵɵelementStart(1, "svg", 7);
19
+ i0.ɵɵelement(2, "path", 8);
20
+ i0.ɵɵelementEnd();
21
+ i0.ɵɵelementContainerEnd();
22
+ } }
23
+ function HmctsBannerComponent_ng_container_0_ng_container_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementContainerStart(0);
25
+ i0.ɵɵnamespaceSVG();
26
+ i0.ɵɵelementStart(1, "svg", 9);
27
+ i0.ɵɵelement(2, "path", 10);
28
+ i0.ɵɵelementEnd();
29
+ i0.ɵɵelementContainerEnd();
30
+ } }
31
+ function HmctsBannerComponent_ng_container_0_ng_container_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
32
+ i0.ɵɵelementContainerStart(0);
33
+ i0.ɵɵnamespaceSVG();
34
+ i0.ɵɵelementStart(1, "svg", 11);
35
+ i0.ɵɵelement(2, "path", 12);
36
+ i0.ɵɵelementEnd();
37
+ i0.ɵɵelementContainerEnd();
38
+ } }
39
+ function HmctsBannerComponent_ng_container_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
40
+ i0.ɵɵelementContainerStart(0)(1, 5);
41
+ i0.ɵɵtemplate(2, HmctsBannerComponent_ng_container_0_ng_container_3_ng_container_2_Template, 3, 0, "ng-container", 6)(3, HmctsBannerComponent_ng_container_0_ng_container_3_ng_container_3_Template, 3, 0, "ng-container", 6)(4, HmctsBannerComponent_ng_container_0_ng_container_3_ng_container_4_Template, 3, 0, "ng-container", 6);
42
+ i0.ɵɵelementContainerEnd()();
43
+ } if (rf & 2) {
44
+ const ctx_r0 = i0.ɵɵnextContext(2);
45
+ i0.ɵɵadvance();
46
+ i0.ɵɵproperty("ngSwitch", ctx_r0.type);
47
+ i0.ɵɵadvance();
48
+ i0.ɵɵproperty("ngSwitchCase", "warning");
49
+ i0.ɵɵadvance();
50
+ i0.ɵɵproperty("ngSwitchCase", "success");
51
+ i0.ɵɵadvance();
52
+ i0.ɵɵproperty("ngSwitchCase", "information");
53
+ } }
54
+ function HmctsBannerComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
55
+ i0.ɵɵelementContainerStart(0);
56
+ i0.ɵɵtemplate(1, HmctsBannerComponent_ng_container_0_div_1_Template, 2, 4, "div", 1);
57
+ i0.ɵɵelementStart(2, "div");
58
+ i0.ɵɵtemplate(3, HmctsBannerComponent_ng_container_0_ng_container_3_Template, 5, 4, "ng-container", 0);
59
+ i0.ɵɵelementStart(4, "div", 2)(5, "span", 3);
60
+ i0.ɵɵtext(6);
61
+ i0.ɵɵpipe(7, "rpxTranslate");
62
+ i0.ɵɵelementEnd();
63
+ i0.ɵɵelementStart(8, "span", 4);
64
+ i0.ɵɵtext(9);
65
+ i0.ɵɵpipe(10, "rpxTranslate");
66
+ i0.ɵɵelementEnd()()();
67
+ i0.ɵɵelementContainerEnd();
68
+ } if (rf & 2) {
69
+ const ctx_r0 = i0.ɵɵnextContext();
70
+ i0.ɵɵadvance();
71
+ i0.ɵɵproperty("ngIf", ctx_r0.title);
72
+ i0.ɵɵadvance();
73
+ i0.ɵɵclassMapInterpolate1("hmcts-banner hmcts-banner--", ctx_r0.type, "");
74
+ i0.ɵɵadvance();
75
+ i0.ɵɵproperty("ngIf", ctx_r0.showMessageIcon);
76
+ i0.ɵɵadvance();
77
+ i0.ɵɵclassProp("hmcts-banner__message--bold", ctx_r0.messageBoldText);
78
+ i0.ɵɵadvance(2);
79
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 9, ctx_r0.type));
80
+ i0.ɵɵadvance(3);
81
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 11, ctx_r0.message));
82
+ } }
83
+ export class HmctsBannerComponent {
84
+ constructor() {
85
+ this.title = '';
86
+ this.showMessageIcon = false;
87
+ this.messageBoldText = false;
88
+ }
89
+ static { this.ɵfac = function HmctsBannerComponent_Factory(t) { return new (t || HmctsBannerComponent)(); }; }
90
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsBannerComponent, selectors: [["xuilib-hmcts-banner"]], inputs: { message: "message", type: "type", title: "title", showMessageIcon: "showMessageIcon", messageBoldText: "messageBoldText" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "class", 4, "ngIf"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], [1, "hmcts-banner__message-text", "govuk-!-font-weight-bold"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon", "hmcts-banner__icon--warning"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon", "hmcts-banner__icon--success"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon", "hmcts-banner__icon--information"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function HmctsBannerComponent_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵtemplate(0, HmctsBannerComponent_ng_container_0_Template, 11, 13, "ng-container", 0);
92
+ } if (rf & 2) {
93
+ i0.ɵɵproperty("ngIf", ctx.message && ctx.type);
94
+ } }, dependencies: [i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i2.RpxTranslatePipe], styles: [".hmcts-banner-title[_ngcontent-%COMP%]{color:#fff;background-color:#1d70b8;font-weight:700;padding:10px 15px 5px}.hmcts-banner-title--success[_ngcontent-%COMP%]{background-color:#00703c}.hmcts-banner-title--warning[_ngcontent-%COMP%]{background-color:#d4351c}.hmcts-banner__message--bold[_ngcontent-%COMP%]{font-weight:700}"] }); }
95
+ }
96
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsBannerComponent, [{
97
+ type: Component,
98
+ args: [{ selector: 'xuilib-hmcts-banner', template: "<ng-container *ngIf=\"message && type\">\n <div *ngIf=\"title\"\n class=\"hmcts-banner-title hmcts-banner-title--{{ type }}\">\n {{ title }}\n </div>\n <div class=\"hmcts-banner hmcts-banner--{{ type }}\">\n <ng-container *ngIf=\"showMessageIcon\">\n <ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'warning'\">\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--warning\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"'success'\">\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--success\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"'information'\">\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--information\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <div class=\"hmcts-banner__message\" [class.hmcts-banner__message--bold]=\"messageBoldText\">\n <span class=\"hmcts-banner__assistive\">{{type | rpxTranslate}}</span>\n <span class=\"hmcts-banner__message-text govuk-!-font-weight-bold\">{{message | rpxTranslate}}</span>\n </div>\n </div>\n</ng-container>\n", styles: [".hmcts-banner-title{color:#fff;background-color:#1d70b8;font-weight:700;padding:10px 15px 5px}.hmcts-banner-title--success{background-color:#00703c}.hmcts-banner-title--warning{background-color:#d4351c}.hmcts-banner__message--bold{font-weight:700}\n"] }]
99
+ }], null, { message: [{
100
+ type: Input
101
+ }], type: [{
102
+ type: Input
103
+ }], title: [{
104
+ type: Input
105
+ }], showMessageIcon: [{
106
+ type: Input
107
+ }], messageBoldText: [{
108
+ type: Input
109
+ }] }); })();
110
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsBannerComponent, { className: "HmctsBannerComponent", filePath: "lib/gov-ui/components/hmcts-banner/hmcts-banner.component.ts", lineNumber: 8 }); })();
111
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtYmFubmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2htY3RzLWJhbm5lci9obWN0cy1iYW5uZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtYmFubmVyL2htY3RzLWJhbm5lci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7SUNDL0MsMkJBQzREO0lBQzFELFlBQ0Y7SUFBQSxpQkFBTTs7O0lBRkoscUZBQXlEO0lBQ3pELGNBQ0Y7SUFERSw2Q0FDRjs7O0lBSU0sNkJBQXdDOztJQU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IDwvbmctY29udGFpbmVyPlxuXG4gICAgPGRpdiBjbGFzcz1cImhtY3RzLWJhbm5lcl9fbWVzc2FnZVwiIFtjbGFzcy5obWN0cy1iYW5uZXJfX21lc3NhZ2UtLWJvbGRdPVwibWVzc2FnZUJvbGRUZXh0XCI+XG4gICAgICA8c3BhbiBjbGFzcz1cImhtY3RzLWJhbm5lcl9fYXNzaXN0aXZlXCI+e3t0eXBlIHwgcnB4VHJhbnNsYXRlfX08L3NwYW4+XG4gICAgICA8c3BhbiBjbGFzcz1cImhtY3RzLWJhbm5lcl9fbWVzc2FnZS10ZXh0IGdvdnVrLSEtZm9udC13ZWlnaHQtYm9sZFwiPnt7bWVzc2FnZSB8IHJweFRyYW5zbGF0ZX19PC9zcGFuPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvbmctY29udGFpbmVyPlxuIl19
@@ -0,0 +1,140 @@
1
+ import { DOCUMENT } from '@angular/common';
2
+ import { Component, Inject, 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 HmctsErrorSummaryComponent_div_0_li_6_a_1_Template(rf, ctx) { if (rf & 1) {
8
+ const _r1 = i0.ɵɵgetCurrentView();
9
+ i0.ɵɵelementStart(0, "a", 9);
10
+ i0.ɵɵlistener("click", function HmctsErrorSummaryComponent_div_0_li_6_a_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r1); const message_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.scrollTo(message_r2["id"])); });
11
+ i0.ɵɵtext(1);
12
+ i0.ɵɵpipe(2, "rpxTranslate");
13
+ i0.ɵɵelementEnd();
14
+ } if (rf & 2) {
15
+ const message_r2 = i0.ɵɵnextContext().$implicit;
16
+ i0.ɵɵproperty("fragment", message_r2["id"]);
17
+ i0.ɵɵadvance();
18
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, message_r2["message"]));
19
+ } }
20
+ function HmctsErrorSummaryComponent_div_0_li_6_span_2_Template(rf, ctx) { if (rf & 1) {
21
+ i0.ɵɵelementStart(0, "span");
22
+ i0.ɵɵtext(1);
23
+ i0.ɵɵpipe(2, "rpxTranslate");
24
+ i0.ɵɵelementEnd();
25
+ } if (rf & 2) {
26
+ const message_r2 = i0.ɵɵnextContext().$implicit;
27
+ i0.ɵɵadvance();
28
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, message_r2["message"]));
29
+ } }
30
+ function HmctsErrorSummaryComponent_div_0_li_6_Template(rf, ctx) { if (rf & 1) {
31
+ i0.ɵɵelementStart(0, "li");
32
+ i0.ɵɵtemplate(1, HmctsErrorSummaryComponent_div_0_li_6_a_1_Template, 3, 4, "a", 7)(2, HmctsErrorSummaryComponent_div_0_li_6_span_2_Template, 3, 3, "span", 8);
33
+ i0.ɵɵelementEnd();
34
+ } if (rf & 2) {
35
+ const message_r2 = ctx.$implicit;
36
+ const ctx_r2 = i0.ɵɵnextContext(2);
37
+ i0.ɵɵadvance();
38
+ i0.ɵɵproperty("ngIf", ctx_r2.hasElement(message_r2["id"]));
39
+ i0.ɵɵadvance();
40
+ i0.ɵɵproperty("ngIf", !ctx_r2.hasElement(message_r2["id"]));
41
+ } }
42
+ function HmctsErrorSummaryComponent_div_0_Template(rf, ctx) { if (rf & 1) {
43
+ i0.ɵɵelementStart(0, "div", 2)(1, "h2", 3);
44
+ i0.ɵɵtext(2);
45
+ i0.ɵɵpipe(3, "rpxTranslate");
46
+ i0.ɵɵelementEnd();
47
+ i0.ɵɵelementStart(4, "div", 4)(5, "ul", 5);
48
+ i0.ɵɵtemplate(6, HmctsErrorSummaryComponent_div_0_li_6_Template, 3, 2, "li", 6);
49
+ i0.ɵɵelementEnd()()();
50
+ } if (rf & 2) {
51
+ const ctx_r2 = i0.ɵɵnextContext();
52
+ i0.ɵɵadvance(2);
53
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, ctx_r2.header), " ");
54
+ i0.ɵɵadvance(4);
55
+ i0.ɵɵproperty("ngForOf", ctx_r2.messages);
56
+ } }
57
+ function HmctsErrorSummaryComponent_div_1_p_7_Template(rf, ctx) { if (rf & 1) {
58
+ i0.ɵɵelementStart(0, "p", 16);
59
+ i0.ɵɵtext(1);
60
+ i0.ɵɵpipe(2, "rpxTranslate");
61
+ i0.ɵɵelementEnd();
62
+ } if (rf & 2) {
63
+ const message_r4 = ctx.$implicit;
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, message_r4["message"]));
66
+ } }
67
+ function HmctsErrorSummaryComponent_div_1_Template(rf, ctx) { if (rf & 1) {
68
+ i0.ɵɵelementStart(0, "div", 10);
69
+ i0.ɵɵnamespaceSVG();
70
+ i0.ɵɵelementStart(1, "svg", 11);
71
+ i0.ɵɵelement(2, "path", 12);
72
+ i0.ɵɵelementEnd();
73
+ i0.ɵɵnamespaceHTML();
74
+ i0.ɵɵelementStart(3, "div", 13)(4, "span", 14);
75
+ i0.ɵɵtext(5);
76
+ i0.ɵɵpipe(6, "rpxTranslate");
77
+ i0.ɵɵelementEnd();
78
+ i0.ɵɵtemplate(7, HmctsErrorSummaryComponent_div_1_p_7_Template, 3, 3, "p", 15);
79
+ i0.ɵɵelementEnd()();
80
+ } if (rf & 2) {
81
+ const ctx_r2 = i0.ɵɵnextContext();
82
+ i0.ɵɵadvance(5);
83
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
84
+ i0.ɵɵadvance(2);
85
+ i0.ɵɵproperty("ngForOf", ctx_r2.messages);
86
+ } }
87
+ /*
88
+ Error Summary component
89
+ State Less component
90
+ @property errorMessages that is array of messages.
91
+ Component is also responsible for scrolling. Up and Down the page when user click on links
92
+ */
93
+ export class HmctsErrorSummaryComponent {
94
+ set errorMessages(value) {
95
+ this.messages = value;
96
+ }
97
+ constructor(document) {
98
+ this.document = document;
99
+ }
100
+ ngAfterViewInit() {
101
+ this.scrollTo('errorSummary');
102
+ }
103
+ ngOnChanges(changes) {
104
+ if (changes.errorMessages) {
105
+ this.scrollTo('errorSummary');
106
+ }
107
+ }
108
+ scrollTo(selector) {
109
+ if (this.document.querySelector(`#${selector}`)) {
110
+ const el = this.document.querySelector(`#${selector}`);
111
+ el.focus();
112
+ }
113
+ }
114
+ hasElement(selector) {
115
+ return this.document.querySelector(`#${selector}`);
116
+ }
117
+ static { this.ɵfac = function HmctsErrorSummaryComponent_Factory(t) { return new (t || HmctsErrorSummaryComponent)(i0.ɵɵdirectiveInject(DOCUMENT)); }; }
118
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsErrorSummaryComponent, selectors: [["xuilib-hmcts-error-summary"]], inputs: { errorMessages: "errorMessages", header: "header", showWarningMessage: "showWarningMessage" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["id", "errorSummary", "class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 4, "ngIf"], ["class", "hmcts-banner hmcts-banner--warning", 4, "ngIf"], ["id", "errorSummary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], [3, "routerLink", "fragment", "click", 4, "ngIf"], [4, "ngIf"], [3, "click", "routerLink", "fragment"], [1, "hmcts-banner", "hmcts-banner--warning"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["class", "govuk-body", 4, "ngFor", "ngForOf"], [1, "govuk-body"]], template: function HmctsErrorSummaryComponent_Template(rf, ctx) { if (rf & 1) {
119
+ i0.ɵɵtemplate(0, HmctsErrorSummaryComponent_div_0_Template, 7, 4, "div", 0)(1, HmctsErrorSummaryComponent_div_1_Template, 8, 4, "div", 1);
120
+ } if (rf & 2) {
121
+ i0.ɵɵproperty("ngIf", !ctx.showWarningMessage && ctx.messages && ctx.messages.length > 0);
122
+ i0.ɵɵadvance();
123
+ i0.ɵɵproperty("ngIf", ctx.showWarningMessage);
124
+ } }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.RpxTranslatePipe], encapsulation: 2 }); }
125
+ }
126
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsErrorSummaryComponent, [{
127
+ type: Component,
128
+ args: [{ selector: 'xuilib-hmcts-error-summary', template: "<div *ngIf=\"!showWarningMessage && messages && messages.length > 0\" id=\"errorSummary\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\"\n data-module=\"error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{header | rpxTranslate}}\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let message of messages\">\n <a (click)=\"scrollTo(message['id'])\" [routerLink]=\"\" [fragment]=\"message['id']\"\n *ngIf=\"hasElement(message['id'])\">{{message['message'] | rpxTranslate}}</a>\n <span *ngIf=\"!hasElement(message['id'])\">{{message['message'] | rpxTranslate}}</span>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"showWarningMessage\" class=\"hmcts-banner hmcts-banner--warning\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\" /></svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">{{'Warning' | rpxTranslate}}</span>\n <p class=\"govuk-body\" *ngFor=\"let message of messages\">{{ message['message'] | rpxTranslate}}</p>\n </div>\n</div>\n" }]
129
+ }], () => [{ type: undefined, decorators: [{
130
+ type: Inject,
131
+ args: [DOCUMENT]
132
+ }] }], { errorMessages: [{
133
+ type: Input
134
+ }], header: [{
135
+ type: Input
136
+ }], showWarningMessage: [{
137
+ type: Input
138
+ }] }); })();
139
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsErrorSummaryComponent, { className: "HmctsErrorSummaryComponent", filePath: "lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.ts", lineNumber: 13 }); })();
140
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtZXJyb3Itc3VtbWFyeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHVpLWNvbW1vbi1saWIvc3JjL2xpYi9nb3YtdWkvY29tcG9uZW50cy9obWN0cy1lcnJvci1zdW1tYXJ5L2htY3RzLWVycm9yLXN1bW1hcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtZXJyb3Itc3VtbWFyeS9obWN0cy1lcnJvci1zdW1tYXJ5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQ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NvblwiIGZpbGw9XCJjdXJyZW50Q29sb3JcIiByb2xlPVwicHJlc2VudGF0aW9uXCIgZm9jdXNhYmxlPVwiZmFsc2VcIiB4bWxucz1cImh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnXCIgdmlld0JveD1cIjAgMCAyNSAyNVwiIGhlaWdodD1cIjI1XCIgd2lkdGg9XCIyNVwiPlxuICA8cGF0aCBkPVwiTTEzLjYsMTUuNGgtMi4zdi00LjVoMi4zVjE1LjR6IE0xMy42LDE5LjhoLTIuM3YtMi4yaDIuM1YxOS44eiBNMCwyMy4yaDI1TDEyLjUsMkwwLDIzLjJ6XCIgLz48L3N2Zz5cbiAgPGRpdiBjbGFzcz1cImhtY3RzLWJhbm5lcl9fbWVzc2FnZVwiPlxuICAgICAgPHNwYW4gY2xhc3M9XCJobWN0cy1iYW5uZXJfX2Fzc2lzdGl2ZVwiPnt7J1dhcm5pbmcnIHwgcnB4VHJhbnNsYXRlfX08L3NwYW4+XG4gICAgICA8cCBjbGFzcz1cImdvdnVrLWJvZHlcIiAqbmdGb3I9XCJsZXQgbWVzc2FnZSBvZiBtZXNzYWdlc1wiPnt7IG1lc3NhZ2VbJ21lc3NhZ2UnXSB8IHJweFRyYW5zbGF0ZX19PC9wPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
@@ -0,0 +1,34 @@
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 HmctsIdentityBarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "div", 3)(3, "span", 4);
7
+ i0.ɵɵtext(4);
8
+ i0.ɵɵpipe(5, "rpxTranslate");
9
+ i0.ɵɵelementEnd()()()();
10
+ } if (rf & 2) {
11
+ const ctx_r0 = i0.ɵɵnextContext();
12
+ i0.ɵɵadvance(4);
13
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, ctx_r0.value));
14
+ } }
15
+ export class HmctsIdentityBarComponent {
16
+ set content(value) {
17
+ this.value = value.name;
18
+ }
19
+ constructor() { }
20
+ static { this.ɵfac = function HmctsIdentityBarComponent_Factory(t) { return new (t || HmctsIdentityBarComponent)(); }; }
21
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsIdentityBarComponent, selectors: [["xuilib-hmcts-identity-bar"]], inputs: { content: "content" }, decls: 1, vars: 1, consts: [["class", "hmcts-identity-bar", 4, "ngIf"], [1, "hmcts-identity-bar"], [1, "hmcts-identity-bar__container"], [1, "hmcts-identity-bar__details"], [1, "hmcts-identity-bar__title"]], template: function HmctsIdentityBarComponent_Template(rf, ctx) { if (rf & 1) {
22
+ i0.ɵɵtemplate(0, HmctsIdentityBarComponent_div_0_Template, 6, 3, "div", 0);
23
+ } if (rf & 2) {
24
+ i0.ɵɵproperty("ngIf", ctx.value);
25
+ } }, dependencies: [i1.NgIf, i2.RpxTranslatePipe] }); }
26
+ }
27
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsIdentityBarComponent, [{
28
+ type: Component,
29
+ args: [{ selector: 'xuilib-hmcts-identity-bar', template: "<div class=\"hmcts-identity-bar\" *ngIf=\"value\">\n <div class=\"hmcts-identity-bar__container\">\n <div class=\"hmcts-identity-bar__details\">\n <span class=\"hmcts-identity-bar__title\">{{value | rpxTranslate}}</span>\n </div>\n </div>\n</div>\n" }]
30
+ }], () => [], { content: [{
31
+ type: Input
32
+ }] }); })();
33
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsIdentityBarComponent, { className: "HmctsIdentityBarComponent", filePath: "lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.ts", lineNumber: 8 }); })();
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtaWRl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IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICAgIHNlbGVjdG9yOiAneHVpbGliLWhtY3RzLWlkZW50aXR5LWJhcicsXG4gICAgdGVtcGxhdGVVcmw6ICcuL2htY3RzLWlkZW50aXR5LWJhci5jb21wb25lbnQuaHRtbCcsXG4gICAgc3R5bGVVcmxzOiBbJy4vaG1jdHMtaWRlbnRpdHktYmFyLmNvbXBvbmVudC5zY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgSG1jdHNJZGVudGl0eUJhckNvbXBvbmVudCB7XG5cbiAgICBASW5wdXQoKSBwdWJsaWMgc2V0IGNvbnRlbnQodmFsdWU6IGFueSkge1xuICAgICAgICB0aGlzLnZhbHVlID0gdmFsdWUubmFtZTtcbiAgICB9XG5cbiAgICBwdWJsaWMgdmFsdWU6IHN0cmluZztcblxuICAgIGNvbnN0cnVjdG9yKCkgeyB9XG59XG4iLCI8ZGl2IGNsYXNzPVwiaG1jdHMtaWRlbnRpdHktYmFyXCIgKm5nSWY9XCJ2YWx1ZVwiPlxuICA8ZGl2IGNsYXNzPVwiaG1jdHMtaWRlbnRpdHktYmFyX19jb250YWluZXJcIj5cbiAgICA8ZGl2IGNsYXNzPVwiaG1jdHMtaWRlbnRpdHktYmFyX19kZXRhaWxzXCI+XG4gICAgICA8c3BhbiBjbGFzcz1cImhtY3RzLWlkZW50aXR5LWJhcl9fdGl0bGVcIj57e3ZhbHVlIHwgcnB4VHJhbnNsYXRlfX08L3NwYW4+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -0,0 +1,129 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "@angular/router";
5
+ import * as i3 from "../hmcts-error-summary/hmcts-error-summary.component";
6
+ import * as i4 from "../hmcts-banner/hmcts-banner.component";
7
+ import * as i5 from "rpx-xui-translation";
8
+ const _c0 = ["*"];
9
+ function HmctsMainWrapperComponent_a_0_Template(rf, ctx) { if (rf & 1) {
10
+ const _r1 = i0.ɵɵgetCurrentView();
11
+ i0.ɵɵelementStart(0, "a", 8);
12
+ i0.ɵɵlistener("click", function HmctsMainWrapperComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onGoBack()); });
13
+ i0.ɵɵtext(1);
14
+ i0.ɵɵpipe(2, "rpxTranslate");
15
+ i0.ɵɵelementEnd();
16
+ } if (rf & 2) {
17
+ const ctx_r1 = i0.ɵɵnextContext();
18
+ i0.ɵɵproperty("routerLink", ctx_r1.backLink);
19
+ i0.ɵɵadvance();
20
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Back"));
21
+ } }
22
+ function HmctsMainWrapperComponent_xuilib_hmcts_error_summary_4_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵelement(0, "xuilib-hmcts-error-summary", 9);
24
+ } if (rf & 2) {
25
+ const ctx_r1 = i0.ɵɵnextContext();
26
+ i0.ɵɵproperty("errorMessages", ctx_r1.summaryErrors.items)("header", ctx_r1.summaryErrors.header)("showWarningMessage", ctx_r1.showWarningMessage);
27
+ } }
28
+ function HmctsMainWrapperComponent_xuilib_hmcts_banner_5_Template(rf, ctx) { if (rf & 1) {
29
+ i0.ɵɵelement(0, "xuilib-hmcts-banner", 10);
30
+ } if (rf & 2) {
31
+ const ctx_r1 = i0.ɵɵnextContext();
32
+ i0.ɵɵproperty("type", ctx_r1.bannerData.type)("message", ctx_r1.bannerData.message);
33
+ } }
34
+ function HmctsMainWrapperComponent_h1_6_Template(rf, ctx) { if (rf & 1) {
35
+ i0.ɵɵelementStart(0, "h1", 11);
36
+ i0.ɵɵtext(1);
37
+ i0.ɵɵpipe(2, "rpxTranslate");
38
+ i0.ɵɵelementEnd();
39
+ } if (rf & 2) {
40
+ const ctx_r1 = i0.ɵɵnextContext();
41
+ i0.ɵɵadvance();
42
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.title));
43
+ } }
44
+ function HmctsMainWrapperComponent_div_8_a_2_Template(rf, ctx) { if (rf & 1) {
45
+ const _r3 = i0.ɵɵgetCurrentView();
46
+ i0.ɵɵelementStart(0, "a", 15);
47
+ i0.ɵɵlistener("click", function HmctsMainWrapperComponent_div_8_a_2_Template_a_click_0_listener() { const actionButton_r4 = i0.ɵɵrestoreView(_r3).$implicit; return i0.ɵɵresetView(actionButton_r4.action()); });
48
+ i0.ɵɵtext(1);
49
+ i0.ɵɵpipe(2, "rpxTranslate");
50
+ i0.ɵɵelementEnd();
51
+ } if (rf & 2) {
52
+ const actionButton_r4 = ctx.$implicit;
53
+ i0.ɵɵclassMapInterpolate1("govuk-button ", actionButton_r4.class, "");
54
+ i0.ɵɵadvance();
55
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 4, actionButton_r4.name));
56
+ } }
57
+ function HmctsMainWrapperComponent_div_8_Template(rf, ctx) { if (rf & 1) {
58
+ i0.ɵɵelementStart(0, "div", 12)(1, "div", 13);
59
+ i0.ɵɵtemplate(2, HmctsMainWrapperComponent_div_8_a_2_Template, 3, 6, "a", 14);
60
+ i0.ɵɵelementEnd()();
61
+ } if (rf & 2) {
62
+ const ctx_r1 = i0.ɵɵnextContext();
63
+ i0.ɵɵadvance(2);
64
+ i0.ɵɵproperty("ngForOf", ctx_r1.actionButtons);
65
+ } }
66
+ /*
67
+ * Main Content wrapper
68
+ * Responsible for:
69
+ * Wrapping content within the gov-uk html elements bellow
70
+ * @prop showBackLink - switch for back link
71
+ * @prop title = title
72
+ * @prop summaryErrors list of errors
73
+ * @prop back link, title (title), summaryErrors (array of errors)
74
+ * */
75
+ export class HmctsMainWrapperComponent {
76
+ set banner(value) {
77
+ this.bannerData = value;
78
+ }
79
+ constructor() {
80
+ this.backEvent = new EventEmitter();
81
+ }
82
+ ngOnInit() {
83
+ this.hasBackLink = this.backLink !== undefined || this.backEvent.observers.length > 0;
84
+ }
85
+ onGoBack() {
86
+ this.backEvent.emit();
87
+ }
88
+ static { this.ɵfac = function HmctsMainWrapperComponent_Factory(t) { return new (t || HmctsMainWrapperComponent)(); }; }
89
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsMainWrapperComponent, selectors: [["xuilib-hmcts-main-wrapper"]], inputs: { backLink: "backLink", title: "title", summaryErrors: "summaryErrors", banner: "banner", actionButtons: "actionButtons", showWarningMessage: "showWarningMessage" }, outputs: { backEvent: "backEvent" }, ngContentSelectors: _c0, decls: 9, vars: 5, consts: [["class", "govuk-back-link", 3, "routerLink", "click", 4, "ngIf"], ["id", "content", "role", "main", 1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [3, "errorMessages", "header", "showWarningMessage", 4, "ngIf"], [3, "type", "message", 4, "ngIf"], ["class", "govuk-heading-xl", 4, "ngIf"], ["class", "govuk-grid-column-one-third", 4, "ngIf"], [1, "govuk-back-link", 3, "click", "routerLink"], [3, "errorMessages", "header", "showWarningMessage"], [3, "type", "message"], [1, "govuk-heading-xl"], [1, "govuk-grid-column-one-third"], [1, "hmcts-page-heading__actions-wrapper"], ["role", "button", "draggable", "false", 3, "class", "click", 4, "ngFor", "ngForOf"], ["role", "button", "draggable", "false", 3, "click"]], template: function HmctsMainWrapperComponent_Template(rf, ctx) { if (rf & 1) {
90
+ i0.ɵɵprojectionDef();
91
+ i0.ɵɵtemplate(0, HmctsMainWrapperComponent_a_0_Template, 3, 4, "a", 0);
92
+ i0.ɵɵelementStart(1, "main", 1)(2, "div", 2)(3, "div", 3);
93
+ i0.ɵɵtemplate(4, HmctsMainWrapperComponent_xuilib_hmcts_error_summary_4_Template, 1, 3, "xuilib-hmcts-error-summary", 4)(5, HmctsMainWrapperComponent_xuilib_hmcts_banner_5_Template, 1, 2, "xuilib-hmcts-banner", 5)(6, HmctsMainWrapperComponent_h1_6_Template, 3, 3, "h1", 6);
94
+ i0.ɵɵprojection(7);
95
+ i0.ɵɵelementEnd();
96
+ i0.ɵɵtemplate(8, HmctsMainWrapperComponent_div_8_Template, 3, 1, "div", 7);
97
+ i0.ɵɵelementEnd()();
98
+ } if (rf & 2) {
99
+ i0.ɵɵproperty("ngIf", ctx.hasBackLink);
100
+ i0.ɵɵadvance(4);
101
+ i0.ɵɵproperty("ngIf", ctx.summaryErrors && !ctx.summaryErrors.isFromValid);
102
+ i0.ɵɵadvance();
103
+ i0.ɵɵproperty("ngIf", ctx.bannerData);
104
+ i0.ɵɵadvance();
105
+ i0.ɵɵproperty("ngIf", ctx.title);
106
+ i0.ɵɵadvance(2);
107
+ i0.ɵɵproperty("ngIf", (ctx.actionButtons == null ? null : ctx.actionButtons.length) > 0);
108
+ } }, dependencies: [i1.NgForOf, i1.NgIf, i2.RouterLink, i3.HmctsErrorSummaryComponent, i4.HmctsBannerComponent, i5.RpxTranslatePipe], encapsulation: 2 }); }
109
+ }
110
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsMainWrapperComponent, [{
111
+ type: Component,
112
+ args: [{ selector: 'xuilib-hmcts-main-wrapper', template: "<a *ngIf=\"hasBackLink\" [routerLink]=\"backLink\" (click)=\"onGoBack()\" class=\"govuk-back-link\">{{'Back' | rpxTranslate}}</a>\n<main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-hmcts-error-summary\n *ngIf=\"summaryErrors && !summaryErrors.isFromValid\"\n [errorMessages]=\"summaryErrors.items\"\n [header]=\"summaryErrors.header\"\n [showWarningMessage]=\"showWarningMessage\">\n </xuilib-hmcts-error-summary>\n <xuilib-hmcts-banner *ngIf=\"bannerData\"\n [type]=\"bannerData.type\"\n [message]=\"bannerData.message\"\n ></xuilib-hmcts-banner>\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">{{title | rpxTranslate}}</h1>\n <ng-content></ng-content>\n </div>\n <div class=\"govuk-grid-column-one-third\" *ngIf=\"actionButtons?.length > 0\">\n <div class=\"hmcts-page-heading__actions-wrapper\">\n <a\n *ngFor=\"let actionButton of actionButtons\"\n (click)=\"actionButton.action()\"\n role=\"button\"\n draggable=\"false\"\n class=\"govuk-button {{ actionButton.class }}\"\n >{{ actionButton.name | rpxTranslate }}</a>\n </div>\n </div>\n </div>\n</main>\n" }]
113
+ }], () => [], { backLink: [{
114
+ type: Input
115
+ }], title: [{
116
+ type: Input
117
+ }], summaryErrors: [{
118
+ type: Input
119
+ }], banner: [{
120
+ type: Input
121
+ }], actionButtons: [{
122
+ type: Input
123
+ }], showWarningMessage: [{
124
+ type: Input
125
+ }], backEvent: [{
126
+ type: Output
127
+ }] }); })();
128
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsMainWrapperComponent, { className: "HmctsMainWrapperComponent", filePath: "lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.ts", lineNumber: 16 }); })();
129
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG1jdHMtbWFpbi13cmFwcGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4dWktY29tbW9uLWxpYi9zcmMvbGliL2dvdi11aS9jb21wb25lbnRzL2htY3RzLW1haW4td3JhcHBlci9obWN0cy1tYWluLXdyYXBwZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvZ292LXVpL2NvbXBvbmVudHMvaG1jdHMtbWFpbi13cmFwcGVyL2htY3RzLW1haW4td3JhcHBlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI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