@hmcts/rpx-xui-common-lib 2.0.0-rc.3 → 2.1.0-angular-upgrade-11

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 (282) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +3788 -3772
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-rpx-xui-common-lib.js +59 -50
  6. package/esm2015/lib/components/accessibility/accessibility.component.js +2 -8
  7. package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +14 -112
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +2 -12
  9. package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +68 -0
  10. package/esm2015/lib/components/due-date/due-date.component.js +7 -102
  11. package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +7 -21
  12. package/esm2015/lib/components/find-location/find-location.component.js +120 -0
  13. package/esm2015/lib/components/find-person/find-person.component.js +118 -0
  14. package/esm2015/lib/components/generic-filter/generic-filter-utils.js +21 -0
  15. package/esm2015/lib/components/generic-filter/generic-filter.component.js +381 -0
  16. package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +3 -18
  17. package/esm2015/lib/components/index.js +2 -7
  18. package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +2 -22
  19. package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +2 -21
  20. package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +7 -45
  21. package/esm2015/lib/components/pagination/pagination.component.js +28 -0
  22. package/esm2015/lib/components/public_api.js +33 -30
  23. package/esm2015/lib/components/search-judicials/search-judicials.component.js +126 -0
  24. package/esm2015/lib/components/search-location/search-location.component.js +114 -0
  25. package/esm2015/lib/components/search-venue/search-venue.component.js +123 -0
  26. package/esm2015/lib/components/selected-case/selected-case.component.js +20 -176
  27. package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +6 -51
  28. package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +3 -52
  29. package/esm2015/lib/components/service-message/service-message.component.js +2 -20
  30. package/esm2015/lib/components/service-messages/service-messages.component.js +8 -66
  31. package/esm2015/lib/components/share-case/share-case.component.js +7 -88
  32. package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +4 -37
  33. package/esm2015/lib/components/tab/tab.component.js +2 -26
  34. package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +2 -17
  35. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +2 -8
  36. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +2 -8
  37. package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +2 -12
  38. package/esm2015/lib/components/user-details/user-details.component.js +2 -39
  39. package/esm2015/lib/components/user-list/user-list.component.js +15 -19
  40. package/esm2015/lib/components/user-select/user-select.component.js +5 -52
  41. package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +3 -56
  42. package/esm2015/lib/directives/index.js +2 -7
  43. package/esm2015/lib/directives/let/let.directive.js +1 -39
  44. package/esm2015/lib/directives/public-api.js +3 -8
  45. package/esm2015/lib/exui-common-lib.module.js +33 -34
  46. package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +2 -22
  47. package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +2 -13
  48. package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +49 -27
  49. package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +2 -14
  50. package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +2 -17
  51. package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +2 -24
  52. package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +2 -16
  53. package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +3 -23
  54. package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +2 -12
  55. package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +6 -24
  56. package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +2 -13
  57. package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +2 -21
  58. package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +2 -32
  59. package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +2 -18
  60. package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +2 -14
  61. package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +2 -44
  62. package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +2 -16
  63. package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +2 -36
  64. package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +28 -0
  65. package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +2 -22
  66. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +4 -26
  67. package/esm2015/lib/gov-ui/components/index.js +2 -7
  68. package/esm2015/lib/gov-ui/components/public_api.js +22 -26
  69. package/esm2015/lib/gov-ui/directives/remove-host.directive.js +1 -22
  70. package/esm2015/lib/gov-ui/gov-ui.service.js +2 -8
  71. package/esm2015/lib/gov-ui/index.js +2 -7
  72. package/esm2015/lib/gov-ui/models/banner-data-model.js +2 -16
  73. package/esm2015/lib/gov-ui/models/checkboxes-model.js +2 -22
  74. package/esm2015/lib/gov-ui/models/error-messages-model.js +2 -16
  75. package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +2 -36
  76. package/esm2015/lib/gov-ui/models/index.js +2 -7
  77. package/esm2015/lib/gov-ui/models/isession-storage.interface.js +2 -0
  78. package/esm2015/lib/gov-ui/models/public_api.js +5 -10
  79. package/esm2015/lib/gov-ui/public_api.js +5 -11
  80. package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +4 -14
  81. package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +22 -0
  82. package/esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js +5 -24
  83. package/esm2015/lib/gov-ui/validators/date.validator.js +3 -20
  84. package/esm2015/lib/gov-ui/validators/index.js +2 -7
  85. package/esm2015/lib/gov-ui/validators/public_api.js +4 -9
  86. package/esm2015/lib/gov-ui/validators/radio-group.validator.js +3 -15
  87. package/esm2015/lib/models/case-share.model.js +2 -26
  88. package/esm2015/lib/models/contact-details.model.js +7 -31
  89. package/esm2015/lib/models/due-date.model.js +7 -14
  90. package/esm2015/lib/models/feature-user.js +1 -16
  91. package/esm2015/lib/models/filter.model.js +3 -0
  92. package/esm2015/lib/models/idle-config.model.js +2 -20
  93. package/esm2015/lib/models/index.js +14 -7
  94. package/esm2015/lib/models/location.model.js +2 -0
  95. package/esm2015/lib/models/pagination.model.js +2 -0
  96. package/esm2015/lib/models/person.model.js +17 -0
  97. package/esm2015/lib/models/public_api.js +6 -15
  98. package/esm2015/lib/models/search-options.model.js +2 -0
  99. package/esm2015/lib/models/tcDocument.model.js +2 -18
  100. package/esm2015/lib/models/timeout-notification.model.js +2 -18
  101. package/esm2015/lib/models/user-details.model.js +2 -22
  102. package/esm2015/lib/models/user.model.js +2 -25
  103. package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +9 -84
  104. package/esm2015/lib/services/cookie/cookie.service.js +47 -0
  105. package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +10 -43
  106. package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +3 -28
  107. package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +20 -95
  108. package/esm2015/lib/services/filter/filter.service.js +64 -0
  109. package/esm2015/lib/services/find-person/find-person.service.js +106 -0
  110. package/esm2015/lib/services/google-analytics/google-analytics.service.js +8 -63
  111. package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +10 -64
  112. package/esm2015/lib/services/index.js +2 -7
  113. package/esm2015/lib/services/loading/loading.service.js +10 -50
  114. package/esm2015/lib/services/locations/location.service.js +39 -0
  115. package/esm2015/lib/services/manage-session/manage-session.services.js +11 -64
  116. package/esm2015/lib/services/public-api.js +13 -17
  117. package/esm2015/lib/services/role-guard/role.guard.js +12 -53
  118. package/esm2015/lib/services/role-guard/role.service.js +2 -21
  119. package/esm2015/lib/services/session-storage/session-storage.service.js +41 -0
  120. package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +10 -76
  121. package/esm2015/lib/window.js +1 -10
  122. package/esm2015/public-api.js +8 -13
  123. package/fesm2015/hmcts-rpx-xui-common-lib.js +1862 -1835
  124. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  125. package/hmcts-rpx-xui-common-lib.d.ts +57 -43
  126. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  127. package/lib/components/checkbox-list/checkbox-list.component.d.ts +6 -5
  128. package/lib/components/cookie-banner/cookie-banner.component.d.ts +20 -0
  129. package/lib/components/due-date/due-date.component.d.ts +4 -4
  130. package/lib/components/find-location/find-location.component.d.ts +33 -0
  131. package/lib/components/find-person/find-person.component.d.ts +40 -0
  132. package/lib/components/generic-filter/generic-filter-utils.d.ts +8 -0
  133. package/lib/components/generic-filter/generic-filter.component.d.ts +42 -0
  134. package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +1 -1
  135. package/lib/components/invite-user-form/invite-user-form.component.d.ts +2 -2
  136. package/lib/components/loading-spinner/loading-spinner.component.d.ts +1 -7
  137. package/lib/components/pagination/pagination.component.d.ts +10 -0
  138. package/lib/components/public_api.d.ts +12 -4
  139. package/lib/components/search-judicials/search-judicials.component.d.ts +37 -0
  140. package/lib/components/search-location/search-location.component.d.ts +40 -0
  141. package/lib/components/search-venue/search-venue.component.d.ts +37 -0
  142. package/lib/components/user-list/user-list.component.d.ts +9 -2
  143. package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +1 -1
  144. package/lib/directives/let/let.directive.d.ts +1 -1
  145. package/lib/exui-common-lib.module.d.ts +11 -11
  146. package/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.d.ts +8 -0
  147. package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +1 -1
  148. package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +1 -1
  149. package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +1 -1
  150. package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +10 -0
  151. package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +1 -1
  152. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +2 -0
  153. package/lib/gov-ui/components/public_api.d.ts +20 -19
  154. package/lib/gov-ui/models/isession-storage.interface.d.ts +4 -0
  155. package/lib/gov-ui/public_api.d.ts +1 -2
  156. package/lib/gov-ui/util/session-storage/session-storage-utils.d.ts +6 -0
  157. package/lib/models/due-date.model.d.ts +1 -1
  158. package/lib/models/filter.model.d.ts +65 -0
  159. package/lib/models/index.d.ts +12 -0
  160. package/lib/models/location.model.d.ts +49 -0
  161. package/lib/models/pagination.model.d.ts +5 -0
  162. package/lib/models/person.model.d.ts +43 -0
  163. package/lib/models/public_api.d.ts +2 -6
  164. package/lib/models/search-options.model.d.ts +8 -0
  165. package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +1 -1
  166. package/lib/services/cookie/cookie.service.d.ts +9 -0
  167. package/lib/services/feature-toggle/feature-toggle.service.d.ts +1 -1
  168. package/lib/services/feature-toggle/launch-darkly.service.d.ts +4 -5
  169. package/lib/services/filter/filter.service.d.ts +15 -0
  170. package/lib/services/find-person/find-person.service.d.ts +17 -0
  171. package/lib/services/loading/loading.service.d.ts +2 -2
  172. package/lib/services/locations/location.service.d.ts +23 -0
  173. package/lib/services/public-api.d.ts +4 -3
  174. package/lib/services/role-guard/role.service.d.ts +2 -1
  175. package/lib/services/session-storage/session-storage.service.d.ts +20 -0
  176. package/lib/window.d.ts +2 -2
  177. package/package.json +8 -16
  178. package/public-api.d.ts +2 -2
  179. package/esm2015/lib/gov-ui/directives/index.js +0 -7
  180. package/esm2015/lib/gov-ui/directives/public_api.js +0 -7
  181. package/esm5/hmcts-rpx-xui-common-lib.js +0 -59
  182. package/esm5/lib/components/accessibility/accessibility.component.js +0 -22
  183. package/esm5/lib/components/checkbox-list/checkbox-list.component.js +0 -391
  184. package/esm5/lib/components/contact-details/contact-details.component.js +0 -29
  185. package/esm5/lib/components/due-date/due-date.component.js +0 -254
  186. package/esm5/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +0 -45
  187. package/esm5/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +0 -47
  188. package/esm5/lib/components/index.js +0 -7
  189. package/esm5/lib/components/invite-user-form/invite-user-form.component.js +0 -54
  190. package/esm5/lib/components/invite-user-permissions/invite-user-permission.component.js +0 -46
  191. package/esm5/lib/components/loading-spinner/loading-spinner.component.js +0 -61
  192. package/esm5/lib/components/public_api.js +0 -30
  193. package/esm5/lib/components/selected-case/selected-case.component.js +0 -430
  194. package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +0 -91
  195. package/esm5/lib/components/selected-case-list/selected-case-list.component.js +0 -109
  196. package/esm5/lib/components/service-message/service-message.component.js +0 -46
  197. package/esm5/lib/components/service-messages/service-messages.component.js +0 -122
  198. package/esm5/lib/components/share-case/share-case.component.js +0 -223
  199. package/esm5/lib/components/share-case-confirm/share-case-confirm.component.js +0 -70
  200. package/esm5/lib/components/tab/tab.component.js +0 -51
  201. package/esm5/lib/components/tc-confirm/tc-confirm.component.js +0 -42
  202. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +0 -22
  203. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +0 -22
  204. package/esm5/lib/components/terms-and-conditions/terms-and-conditions.component.js +0 -29
  205. package/esm5/lib/components/user-details/user-details.component.js +0 -92
  206. package/esm5/lib/components/user-list/user-list.component.js +0 -43
  207. package/esm5/lib/components/user-select/user-select.component.js +0 -131
  208. package/esm5/lib/directives/feature-toggle/feature-toggle.directive.js +0 -104
  209. package/esm5/lib/directives/index.js +0 -7
  210. package/esm5/lib/directives/let/let.directive.js +0 -78
  211. package/esm5/lib/directives/public-api.js +0 -8
  212. package/esm5/lib/exui-common-lib.module.js +0 -156
  213. package/esm5/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +0 -56
  214. package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +0 -36
  215. package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +0 -48
  216. package/esm5/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +0 -37
  217. package/esm5/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
  218. package/esm5/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +0 -65
  219. package/esm5/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +0 -40
  220. package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +0 -66
  221. package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +0 -34
  222. package/esm5/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +0 -67
  223. package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +0 -36
  224. package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +0 -52
  225. package/esm5/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +0 -77
  226. package/esm5/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +0 -50
  227. package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +0 -38
  228. package/esm5/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +0 -108
  229. package/esm5/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +0 -40
  230. package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +0 -87
  231. package/esm5/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +0 -49
  232. package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +0 -41
  233. package/esm5/lib/gov-ui/components/index.js +0 -7
  234. package/esm5/lib/gov-ui/components/public_api.js +0 -26
  235. package/esm5/lib/gov-ui/directives/index.js +0 -7
  236. package/esm5/lib/gov-ui/directives/public_api.js +0 -7
  237. package/esm5/lib/gov-ui/directives/remove-host.directive.js +0 -52
  238. package/esm5/lib/gov-ui/gov-ui.service.js +0 -22
  239. package/esm5/lib/gov-ui/index.js +0 -7
  240. package/esm5/lib/gov-ui/models/banner-data-model.js +0 -16
  241. package/esm5/lib/gov-ui/models/checkboxes-model.js +0 -22
  242. package/esm5/lib/gov-ui/models/error-messages-model.js +0 -16
  243. package/esm5/lib/gov-ui/models/gov-ui-config-model.js +0 -36
  244. package/esm5/lib/gov-ui/models/index.js +0 -7
  245. package/esm5/lib/gov-ui/models/public_api.js +0 -13
  246. package/esm5/lib/gov-ui/public_api.js +0 -14
  247. package/esm5/lib/gov-ui/util/helpers/html-templates.helper.js +0 -57
  248. package/esm5/lib/gov-ui/validators/checkboxes-be-checked.validator.js +0 -38
  249. package/esm5/lib/gov-ui/validators/date.validator.js +0 -32
  250. package/esm5/lib/gov-ui/validators/index.js +0 -7
  251. package/esm5/lib/gov-ui/validators/public_api.js +0 -12
  252. package/esm5/lib/gov-ui/validators/radio-group.validator.js +0 -27
  253. package/esm5/lib/models/case-share.model.js +0 -26
  254. package/esm5/lib/models/contact-details.model.js +0 -31
  255. package/esm5/lib/models/due-date.model.js +0 -15
  256. package/esm5/lib/models/feature-user.js +0 -28
  257. package/esm5/lib/models/idle-config.model.js +0 -20
  258. package/esm5/lib/models/index.js +0 -7
  259. package/esm5/lib/models/public_api.js +0 -15
  260. package/esm5/lib/models/tcDocument.model.js +0 -18
  261. package/esm5/lib/models/timeout-notification.model.js +0 -18
  262. package/esm5/lib/models/user-details.model.js +0 -22
  263. package/esm5/lib/models/user.model.js +0 -25
  264. package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +0 -289
  265. package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +0 -83
  266. package/esm5/lib/services/feature-toggle/feature-toggle.service.js +0 -88
  267. package/esm5/lib/services/feature-toggle/launch-darkly.service.js +0 -177
  268. package/esm5/lib/services/google-analytics/google-analytics.service.js +0 -128
  269. package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +0 -135
  270. package/esm5/lib/services/index.js +0 -7
  271. package/esm5/lib/services/loading/loading.service.js +0 -100
  272. package/esm5/lib/services/manage-session/manage-session.services.js +0 -111
  273. package/esm5/lib/services/public-api.js +0 -20
  274. package/esm5/lib/services/role-guard/role.guard.js +0 -81
  275. package/esm5/lib/services/role-guard/role.service.js +0 -45
  276. package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +0 -190
  277. package/esm5/lib/window.js +0 -13
  278. package/esm5/public-api.js +0 -16
  279. package/fesm5/hmcts-rpx-xui-common-lib.js +0 -4751
  280. package/fesm5/hmcts-rpx-xui-common-lib.js.map +0 -1
  281. package/lib/gov-ui/directives/index.d.ts +0 -1
  282. package/lib/gov-ui/directives/public_api.d.ts +0 -1
@@ -1,4751 +0,0 @@
1
- import { MatAutocompleteModule, MatTabsModule } from '@angular/material';
2
- import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
3
- import { __values, __assign, __spread } from 'tslib';
4
- import { initialize } from 'launchdarkly-js-client-sdk';
5
- import { formatDate, DOCUMENT, CommonModule } from '@angular/common';
6
- import { Title } from '@angular/platform-browser';
7
- import { RouterModule, Router, NavigationEnd } from '@angular/router';
8
- import { Component, EventEmitter, Input, Output, ViewEncapsulation, Renderer2, Injectable, Directive, TemplateRef, ViewContainerRef, ElementRef, InjectionToken, Inject, defineInjectable, ViewChild, NgModule, inject } from '@angular/core';
9
- import { DocumentInterruptSource, Idle } from '@ng-idle/core';
10
- import { Keepalive } from '@ng-idle/keepalive';
11
- import { BehaviorSubject, combineLatest, Subject } from 'rxjs';
12
- import { distinctUntilChanged, map, filter, delay } from 'rxjs/operators';
13
-
14
- /**
15
- * @fileoverview added by tsickle
16
- * Generated from: lib/components/accessibility/accessibility.component.ts
17
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18
- */
19
- var AccessibilityComponent = /** @class */ (function () {
20
- function AccessibilityComponent() {
21
- }
22
- AccessibilityComponent.decorators = [
23
- { type: Component, args: [{
24
- selector: 'xuilib-accessibility',
25
- template: "<h1 class=\"govuk-heading-xl\" id=\"Accessibility-statement-for-Expert-UI\">Accessibility statement for Expert UI</h1>\n\n<ul class=\"govuk-list\">\n <li><a href=\"accessibility#immigration\">Immigration and Asylum</a></li>\n <li><a href=\"accessibility#family\">Family Public Law </a></li>\n</ul>\n\n<p class=\"govuk-body\">This website is run by HM Courts & Tribunals Service. We want as many people as possible to be\n able to use this website. For example, you should be able to:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>change colours, contrast levels and fonts</li>\n <li>zoom in up to 300% without the text spilling off the screen</li>\n <li>navigate most of the website using just a keyboard</li>\n <li>navigate most of the website using speech recognition software</li>\n <li>listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and\n VoiceOver)\n </li>\n</ul>\n\n<p class=\"govuk-body\">We\u2019ve also made the website text as simple as possible to understand.</p>\n\n<p class=\"govuk-body\"><a rel=\"noopener noreferrer\" target=\"_blank\" href=\"https://mcmw.abilitynet.org.uk/\">AbilityNet</a>\n has advice on making your device easier to use if you have a disability.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"How-accessible-this-website-is\">How accessible this website is</h2>\n\n<p class=\"govuk-body\">We know some parts of the website are not fully accessible:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>some pages are difficult to navigate using just a keyboard</li>\n <li>some pages can\u2019t be listened to in full using a screen reader</li>\n <li>some pages have problems with colour contrasts between text and background</li>\n <li>some PDFs may not be fully accessible to a screen reader</li>\n</ul>\n\n<h2 class=\"govuk-heading-l\" id=\"What-to-do-if-you-cannot-access-parts-of-this-website\">Feedback and contact\n information</h2>\n\n<p class=\"govuk-body\">If you need information on this website in a different format like accessible PDF, large print,\n easy read, audio recording or braille, you can:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>email: <a href=\"mailto:HMCTSforms@justice.gov.uk\"> HMCTSforms@justice.gov.uk</a></li>\n <li>call: +44 (0) 300 123 1711</li>\n <li>contact your service representative</li>\n</ul>\n\n<p class=\"govuk-body\">We\u2019ll consider your request and get back to you in 10 working days.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"Reporting-accessibility-problems-with-this-website\">Reporting accessibility problems\n with this website</h2>\n\n<p class=\"govuk-body\">We\u2019re always looking to improve the accessibility of this website. If you find any problems not\n listed on this page or think we\u2019re not meeting accessibility requirements, contact:</p>\n\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>email: <a href=\"mailto:customer.service@justice.gov.uk\"> customer.service@justice.gov.uk</a></li>\n <li>telephone: +44 (0) 300 123 1711</li>\n</ul>\n\n<h2 class=\"govuk-heading-l\" id=\"Enforcement-procedure \">Enforcement procedure</h2>\n\n<p class=\"govuk-body\">The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector\n Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the \u2018accessibility\n regulations\u2019). </p>\n\n<p class=\"govuk-body\">If you\u2019re not happy with how we respond to your complaint, <a rel=\"noopener noreferrer\"\n target=\"_blank\"\n href=\"https://www.equalityadvisoryservice.com/\">contact\n the Equality Advisory and Support Service (EASS).</a></p>\n\n<h1 class=\"govuk-heading-l\" id=\"Contacting-us-by-phone-or-visiting-us-in-person\">Contacting us by phone or visiting us\n in person</h1>\n\n<p class=\"govuk-body\">We provide a text relay service for people who are D/deaf, hearing impaired or have a speech\n impediment.</p>\n\n<p class=\"govuk-body\">Our offices and tribunal venues have audio induction loops, or if you contact us before your visit\n we can arrange a British Sign Language (BSL) interpreter. You can also request step-free access or a foreign language\n interpreter.</p>\n\n<p class=\"govuk-body\">If you have a question about accessibility in our Tribunal venues, you can contact the First-tier\n Tribunal enquiry line: +44 (0) 300 123 1711. You can <a target=\"_blank\"\n href=\"https://courttribunalfinder.service.gov.uk/search/\">find\n the contact details for court and tribunal venues</a>. </p>\n\n<p class=\"govuk-body\">You can also contact your service representative for more information.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"Technical-information-about-this-website\u2019s-accessibility\">Technical information about\n this website\u2019s accessibility</h1>\n\n<p class=\"govuk-body\">HMCTS is committed to making its website accessible, in accordance with the Public Sector Bodies\n (Websites and Mobile Applications) (No.2) Accessibility Regulations 2018.</p>\n\n<p class=\"govuk-body\">This website is partially compliant with the <a rel=\"noopener noreferrer\" target=\"_blank\"\n href=\"https://www.w3.org/TR/WCAG21/\">Web Content\n Accessibility Guidelines version 2.1</a>, due to the non-compliances listed below.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"Non-accessible-content\">Non-accessible content </h1>\n\n<p class=\"govuk-body\">The content listed below is non-compliant for the following reasons.</p>\n\n<h2 class=\"govuk-heading-l\" id=\"Non-compliance-with-the-accessibility-regulations\">Non-compliance with the accessibility\n regulations</h2>\n\n<p class=\"govuk-body\">Some pages cannot be navigated completely using just a keyboard, so some people won\u2019t be able to\n tab through the pages. This fails WCAG 2.1 success criterion 2.1 (keyboard accessible).</p>\n\n<p class=\"govuk-body\">Some pages can\u2019t be listened to in full using a screen reader, so some people won\u2019t be able to\n access the information. This fails WCAG 2.1 success criterion 1.2.5 (audio description \u2013 prerecorded).</p>\n\n<p class=\"govuk-body\">Some of the contrast ratios don\u2019t meet the current accessibility requirements. This fails WCAG 2.1\n success criterion 1.4.3 (contrast \u2013 minimum).</p>\n\n<h3 class=\"govuk-heading-m\" id=\"immigration\">Immigration and Asylum</h3>\n\n<p class=\"govuk-body\">Some of the images on the service include text and are not accessible for some low vision users.\n We have identified a solution for this issue that we will implement as soon as possible.</p>\n\n<h3 class=\"govuk-heading-m\" id=\"family\">Family Public Law </h3>\n\n<ol class=\"govuk-list govuk-list--alpha\">\n <li>The navigation system used in family public law cannot be rendered well by screen readers, so features can\u2019t be\n listened to in full\n </li>\n <li>Some essential functions within the family public law digital service cannot be accessed properly using screen\n readers\n </li>\n <li>Some complex forms within the service will not be rendered correctly or cannot be listened to by screen readers\n </li>\n</ol>\n\n<h2 class=\"govuk-heading-m\" id=\"Disproportionate burden \">Disproportionate burden </h2>\n\n<p class=\"govuk-body\">For Manage organisation, Register organisation, Approve organisations and Manage cases, we found\n the following issues that are currently being triaged to find out if there is a disproportionate burden:</p>\n\n<ol class=\"govuk-list govuk-list--alpha\">\n <li>Screen readers can\u2019t switch between headers, read content in tabs and buttons</li>\n <li>Screen readers can\u2019t tab between radio buttons, read links or content</li>\n <li>Colour contrast ratios uneven between page background and content</li>\n <li>Some labels, fields, error messages and other content can\u2019t be clearly identified by screen readers and voice\n activation software\n </li>\n <li>Some page headings and titles don\u2019t follow a logical structure for screen readers</li>\n <li>The navigation of some pages isn\u2019t clear</li>\n <li>Some headings, links and button labels aren\u2019t clearly descriptive</li>\n</ol>\n\n<h2 class=\"govuk-heading-m\" id=\"Content-that\u2019s-not-within-the-scope-of-the-accessibility-regulations\">Content that\u2019s not\n within the scope of the accessibility regulations </h2>\n\n<p class=\"govuk-body\">PDFs, documents and attachments to email notifications published before 23 September 2018 may not\n meet accessibility standards. For example, they may not be structured so they\u2019re accessible to a screen reader.</p>\n\n<p class=\"govuk-body\">Any new PDFs or Word documents we publish will meet accessibility standards.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"what-to-improve-accessibility\">What we\u2019re doing to improve accessibility</h1>\n\n<p class=\"govuk-body\">We\u2019re committed to ensuring our services are accessible to all our users and that they comply with\n level AA of the Web Content Accessibility Guidelines \u2013 WCAG 2.1.</p>\n\n<p class=\"govuk-body\">We\u2019re actively working to improve the identified issues and make them AA-compliant by 23 September\n 2020. We\u2019re also continuing to improve all other AAA-level accessibility issues as we iterate the service.</p>\n\n<h1 class=\"govuk-heading-l\" id=\"preparation-of-this-accessibility-statement\">Preparation of this accessibility\n statement</h1>\n\n<p class=\"govuk-body\">This statement was prepared on 16 September 2019. It was last reviewed on 16 September 2020.</p>\n\n<p class=\"govuk-body\">This website was last tested on 19 May 2020. The test was carried out by the <a target=\"_blank\"\n href=\"https://digitalaccessibilitycentre.org/\">Digital\n Accessibility Centre (DAC)</a>.</p>\n",
26
- styles: [".govuk-list--alpha{padding-left:20px;list-style-type:lower-alpha}"]
27
- }] }
28
- ];
29
- /** @nocollapse */
30
- AccessibilityComponent.ctorParameters = function () { return []; };
31
- return AccessibilityComponent;
32
- }());
33
-
34
- /**
35
- * @fileoverview added by tsickle
36
- * Generated from: lib/components/checkbox-list/checkbox-list.component.ts
37
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
38
- */
39
- /**
40
- * @template T
41
- */
42
- var CheckboxListComponent = /** @class */ (function () {
43
- function CheckboxListComponent() {
44
- /**
45
- * The options to show checkboxes for. Note that the type
46
- * within the array corresponds to the one for the component.
47
- */
48
- this.options = [];
49
- /**
50
- * Whenever the selection changes, this event fires. What is dispatched
51
- * is the current selection, also retrievable from .selection.
52
- */
53
- this.selectionChange = new EventEmitter();
54
- }
55
- Object.defineProperty(CheckboxListComponent.prototype, "selection", {
56
- /**
57
- * The currently selected values.
58
- * Note: This array is immutable, which means pushing and popping will
59
- * have no effect on which checkboxes are selected.
60
- */
61
- get: /**
62
- * The currently selected values.
63
- * Note: This array is immutable, which means pushing and popping will
64
- * have no effect on which checkboxes are selected.
65
- * @return {?}
66
- */
67
- function () {
68
- return this.pSelection ? __spread(this.pSelection) : [];
69
- },
70
- set: /**
71
- * @param {?} value
72
- * @return {?}
73
- */
74
- function (value) {
75
- this.pSelection = this.getSelection(value);
76
- },
77
- enumerable: true,
78
- configurable: true
79
- });
80
- Object.defineProperty(CheckboxListComponent.prototype, "allSelected", {
81
- /**
82
- * Indicates whether or not all of the items are selected.
83
- */
84
- get: /**
85
- * Indicates whether or not all of the items are selected.
86
- * @return {?}
87
- */
88
- function () {
89
- return this.selection.length === this.options.length;
90
- },
91
- enumerable: true,
92
- configurable: true
93
- });
94
- // Catch any changes to any of the Input() properties.
95
- // Catch any changes to any of the Input() properties.
96
- /**
97
- * @return {?}
98
- */
99
- CheckboxListComponent.prototype.ngOnChanges =
100
- // Catch any changes to any of the Input() properties.
101
- /**
102
- * @return {?}
103
- */
104
- function () {
105
- // Set up the pre-selected values.
106
- this.setupPreselection();
107
- // Now check the current selection to make sure it's valid.
108
- this.checkSelection();
109
- };
110
- Object.defineProperty(CheckboxListComponent.prototype, "hasOptions", {
111
- /**
112
- * Indicates whether or not there are any options to render.
113
- */
114
- get: /**
115
- * Indicates whether or not there are any options to render.
116
- * @return {?}
117
- */
118
- function () {
119
- return this.options && this.options.length > 0;
120
- },
121
- enumerable: true,
122
- configurable: true
123
- });
124
- Object.defineProperty(CheckboxListComponent.prototype, "isFunctional", {
125
- get: /**
126
- * @return {?}
127
- */
128
- function () {
129
- return this.labelFunction && this.hasOptions;
130
- },
131
- enumerable: true,
132
- configurable: true
133
- });
134
- /**
135
- * Indicates whether or not an item is part of the current selection.
136
- * @param item The item in question.
137
- */
138
- /**
139
- * Indicates whether or not an item is part of the current selection.
140
- * @param {?} item The item in question.
141
- * @return {?}
142
- */
143
- CheckboxListComponent.prototype.isSelected = /**
144
- * Indicates whether or not an item is part of the current selection.
145
- * @param {?} item The item in question.
146
- * @return {?}
147
- */
148
- function (item) {
149
- return this.selection.includes(item);
150
- };
151
- /**
152
- * If an item is already selected, it will be removed from the selection.
153
- * Otherwise, it will be added to the selection..
154
- */
155
- /**
156
- * If an item is already selected, it will be removed from the selection.
157
- * Otherwise, it will be added to the selection..
158
- * @param {?} item
159
- * @return {?}
160
- */
161
- CheckboxListComponent.prototype.toggleItemSelection = /**
162
- * If an item is already selected, it will be removed from the selection.
163
- * Otherwise, it will be added to the selection..
164
- * @param {?} item
165
- * @return {?}
166
- */
167
- function (item) {
168
- if (this.pSelection === undefined) {
169
- // If we don't have any selection at all yet, make it just this item.
170
- this.pSelection = [item];
171
- }
172
- else if (this.isSelected(item)) {
173
- // If this item is already selected, remove it.
174
- this.pSelection.splice(this.pSelection.indexOf(item), 1);
175
- }
176
- else {
177
- // If it's not selected, add it.
178
- this.pSelection.push(item);
179
- }
180
- // Indicate that the user has now made an active selection.
181
- this.pSelectionMade = true;
182
- // Now emit an event so any containers know about the change to selection.
183
- this.selectionChange.emit(this.selection);
184
- };
185
- /**
186
- * If all of the items are selected, deselect them all.
187
- * Otherwise, select them all.
188
- */
189
- /**
190
- * If all of the items are selected, deselect them all.
191
- * Otherwise, select them all.
192
- * @return {?}
193
- */
194
- CheckboxListComponent.prototype.toggleSelectAll = /**
195
- * If all of the items are selected, deselect them all.
196
- * Otherwise, select them all.
197
- * @return {?}
198
- */
199
- function () {
200
- // Do we already have them all selected?
201
- if (this.allSelected) {
202
- // If so, clear out the selection.
203
- this.pSelection = [];
204
- }
205
- else {
206
- // If not, select all of them.
207
- this.pSelection = __spread(this.options);
208
- }
209
- // Indicate that the user has now made an active selection.
210
- this.pSelectionMade = true;
211
- // Now emit an event so any containers know about the change to selection.
212
- this.selectionChange.emit(this.pSelection);
213
- };
214
- /**
215
- * Use the labelFunction to determine whether the options include the item.
216
- * This is to handle partial objects being set in the pre-selection where
217
- * they may not be available by the same mechanism as the options.
218
- *
219
- * @param items The array of items in which to look for the item.
220
- * @param item The item to check in the options.
221
- */
222
- /**
223
- * Use the labelFunction to determine whether the options include the item.
224
- * This is to handle partial objects being set in the pre-selection where
225
- * they may not be available by the same mechanism as the options.
226
- *
227
- * @param {?} items The array of items in which to look for the item.
228
- * @param {?} item The item to check in the options.
229
- * @return {?}
230
- */
231
- CheckboxListComponent.prototype.containsItem = /**
232
- * Use the labelFunction to determine whether the options include the item.
233
- * This is to handle partial objects being set in the pre-selection where
234
- * they may not be available by the same mechanism as the options.
235
- *
236
- * @param {?} items The array of items in which to look for the item.
237
- * @param {?} item The item to check in the options.
238
- * @return {?}
239
- */
240
- function (items, item) {
241
- var _this = this;
242
- if (this.isFunctional) {
243
- /** @type {?} */
244
- var itemLabel_1 = this.labelFunction(item);
245
- return items.some((/**
246
- * @param {?} opt
247
- * @return {?}
248
- */
249
- function (opt) {
250
- return _this.labelFunction(opt) === itemLabel_1;
251
- }));
252
- }
253
- return false;
254
- };
255
- Object.defineProperty(CheckboxListComponent.prototype, "hasPreselection", {
256
- // Simple utility function to indicate whether there is an active preselection.
257
- get:
258
- // Simple utility function to indicate whether there is an active preselection.
259
- /**
260
- * @private
261
- * @return {?}
262
- */
263
- function () {
264
- return this.preselection && this.preselection.length > 0;
265
- },
266
- enumerable: true,
267
- configurable: true
268
- });
269
- // Set up the initially selected values.
270
- // NOTE: If the preselection changes and the user has NOT made an active selection,
271
- // the current selection will also be changed. As soon as the user has made an
272
- // active selection, however, the preselection is no longer relevant.
273
- // Set up the initially selected values.
274
- // NOTE: If the preselection changes and the user has NOT made an active selection,
275
- // the current selection will also be changed. As soon as the user has made an
276
- // active selection, however, the preselection is no longer relevant.
277
- /**
278
- * @private
279
- * @return {?}
280
- */
281
- CheckboxListComponent.prototype.setupPreselection =
282
- // Set up the initially selected values.
283
- // NOTE: If the preselection changes and the user has NOT made an active selection,
284
- // the current selection will also be changed. As soon as the user has made an
285
- // active selection, however, the preselection is no longer relevant.
286
- /**
287
- * @private
288
- * @return {?}
289
- */
290
- function () {
291
- var _this = this;
292
- if (this.isFunctional && !this.pSelectionMade && this.hasPreselection) {
293
- /** @type {?} */
294
- var changed = true;
295
- if (this.pSelection) {
296
- // If there is no difference between the arrays, this is not a change.
297
- changed = this.pSelection.filter((/**
298
- * @param {?} item
299
- * @return {?}
300
- */
301
- function (item) {
302
- return !_this.containsItem(_this.preselection, item);
303
- })).length > 0;
304
- }
305
- // If this is a change, update the selection and then emit an
306
- // event so any containers know about the change to selection.
307
- if (changed) {
308
- this.pSelection = this.getSelection(this.preselection);
309
- this.selectionChange.emit(this.selection);
310
- }
311
- }
312
- };
313
- /**
314
- * @private
315
- * @param {?} items
316
- * @return {?}
317
- */
318
- CheckboxListComponent.prototype.getSelection = /**
319
- * @private
320
- * @param {?} items
321
- * @return {?}
322
- */
323
- function (items) {
324
- var _this = this;
325
- return __spread(this.options.filter((/**
326
- * @param {?} opt
327
- * @return {?}
328
- */
329
- function (opt) {
330
- return _this.containsItem(items, opt);
331
- })));
332
- };
333
- // The options have changed. Let's make sure the selection
334
- // doesn't contain anything that's not currently an option.
335
- // The options have changed. Let's make sure the selection
336
- // doesn't contain anything that's not currently an option.
337
- /**
338
- * @private
339
- * @return {?}
340
- */
341
- CheckboxListComponent.prototype.checkSelection =
342
- // The options have changed. Let's make sure the selection
343
- // doesn't contain anything that's not currently an option.
344
- /**
345
- * @private
346
- * @return {?}
347
- */
348
- function () {
349
- var _this = this;
350
- if (this.isFunctional) {
351
- // Check which of the currently selected items are actually options.
352
- /** @type {?} */
353
- var allowedSelection = this.selection.filter((/**
354
- * @param {?} item
355
- * @return {?}
356
- */
357
- function (item) {
358
- return _this.containsItem(_this.options, item);
359
- }));
360
- // If any have dropped out, change the selection.
361
- if (allowedSelection.length !== this.selection.length) {
362
- this.pSelection = __spread(allowedSelection);
363
- // And emit an event so any containers know about the change to selection.
364
- this.selectionChange.emit(this.selection);
365
- }
366
- }
367
- };
368
- CheckboxListComponent.decorators = [
369
- { type: Component, args: [{
370
- selector: 'xuilib-checkbox-list',
371
- template: "<div class=\"xui-checkbox-list govuk-checkboxes govuk-checkboxes--small\" *ngIf=\"isFunctional\">\n <div class=\"select-all govuk-checkboxes__item\">\n <input type=\"checkbox\" id=\"select_all\" class=\"govuk-checkboxes__input\" [checked]=\"allSelected\"\n (change)=\"toggleSelectAll()\" />\n <label for=\"select_all\" class=\"govuk-label govuk-checkboxes__label\">Select all / Deselect all</label>\n </div>\n <div class=\"checkbox-items\">\n <div *ngFor=\"let item of options; let i = index\" class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" [id]=\"'select_' + i\" class=\"govuk-checkboxes__input\" [checked]=\"isSelected(item)\"\n (change)=\"toggleItemSelection(item)\" />\n <label [for]=\"'select_' + i\" class=\"govuk-label govuk-checkboxes__label\">{{labelFunction(item)}}</label>\n </div>\n </div>\n</div>\n",
372
- encapsulation: ViewEncapsulation.None,
373
- styles: [".xui-checkbox-list .select-all{margin-bottom:10px}.xui-checkbox-list .checkbox-items{display:flex;flex-direction:column;flex-wrap:wrap;height:100%;max-height:100%;align-items:flex-start;align-content:flex-start;width:100%;max-width:100%;overflow-x:scroll}"]
374
- }] }
375
- ];
376
- CheckboxListComponent.propDecorators = {
377
- options: [{ type: Input }],
378
- preselection: [{ type: Input }],
379
- labelFunction: [{ type: Input }],
380
- selectionChange: [{ type: Output }],
381
- selection: [{ type: Input }]
382
- };
383
- return CheckboxListComponent;
384
- }());
385
-
386
- /**
387
- * @fileoverview added by tsickle
388
- * Generated from: lib/components/contact-details/contact-details.component.ts
389
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
390
- */
391
- var ContactDetailsComponent = /** @class */ (function () {
392
- function ContactDetailsComponent() {
393
- }
394
- ContactDetailsComponent.decorators = [
395
- { type: Component, args: [{
396
- selector: 'xuilib-contact-details',
397
- template: "<div class=\"contact-details\" *ngIf=\"data\">\n <h3 class=\"govuk-heading-m\" *ngIf=\"data.title\">{{ data.title }}</h3>\n <p *ngIf=\"data.badgeText\"><span [className]=\"'hmcts-badge ' + data.badgeColour\">{{ data.badgeText }}</span></p>\n <div class=\"email\" *ngIf=\"data.email\"><span class=\"govuk-!-font-weight-bold\">Email: </span> <a href=\"mailto:{{ data.email }}\">{{ data.email }}</a></div>\n <div class=\"phone\" *ngIf=\"data.phone\"><span class=\"govuk-!-font-weight-bold\">Phone: </span>{{ data.phone }}</div>\n <div class=\"opening-times\" *ngIf=\"data.openingTimes\"><span class=\"govuk-!-font-weight-bold\">Opening times: </span>{{ data.openingTimes}}</div>\n</div>\n\n",
398
- styles: [".contact-details{margin-top:30px}.contact-details h3,.contact-details p{margin-bottom:10px}"]
399
- }] }
400
- ];
401
- /** @nocollapse */
402
- ContactDetailsComponent.ctorParameters = function () { return []; };
403
- ContactDetailsComponent.propDecorators = {
404
- data: [{ type: Input }]
405
- };
406
- return ContactDetailsComponent;
407
- }());
408
-
409
- /**
410
- * @fileoverview added by tsickle
411
- * Generated from: lib/models/due-date.model.ts
412
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
413
- */
414
- /** @enum {string} */
415
- var BadgeColour = {
416
- RED: "hmcts-badge--red",
417
- ORANGE: "hmcts-badge--orange",
418
- GREEN: "hmcts-badge--green",
419
- };
420
- /** @type {?} */
421
- var SECONDS_IN_A_DAY = 60 * 60 * 24;
422
-
423
- /**
424
- * @fileoverview added by tsickle
425
- * Generated from: lib/components/due-date/due-date.component.ts
426
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
427
- */
428
- var DueDateComponent = /** @class */ (function () {
429
- function DueDateComponent() {
430
- /**
431
- * This should be considered HIGH urgency if there are fewer than this
432
- * many days until the due date.
433
- * * Set to 0 if you want it to show HIGH if it was due yesterday.
434
- * * Set to 1 if you want it to show HIGH if it's due today.
435
- * * Set to 2 if you want it to show HIGH if it's due tomorrow.
436
- *
437
- * Defaults to 0 (ZERO), which means it won't show as HIGH urgency until the
438
- * due date is in the past.
439
- *
440
- * NOTE: If this is higher than the mediumUrgencyCutoff value, MEDIUM urgency
441
- * will never be shown.
442
- *
443
- * ALSO NOTE: Anything overdue is automatically considered HIGH urgency.
444
- */
445
- this.highUrgencyCutoff = 0; // Default
446
- // Default
447
- /**
448
- * This should be considered MEDIUM urgency if there are fewer than this
449
- * many days until the due date.
450
- * * Set to 1 if you want it to show MEDIUM if it's due today.
451
- * * Set to 2 if you want it to show MEDIUM if it's due tomorrow.
452
- * * Set to 3 if you want it to show MEDIUM if it's due the day after tomorrow.
453
- *
454
- * Defaults to 2, which means it won't show as MEDIUM urgency unless the
455
- * due date is today or tomorrow.
456
- *
457
- * NOTE: If this is lower than the highUrgencyCutoff value, MEDIUM urgency
458
- * will never be shown.
459
- */
460
- this.mediumUrgencyCutoff = 2;
461
- }
462
- Object.defineProperty(DueDateComponent.prototype, "badge", {
463
- get: /**
464
- * @return {?}
465
- */
466
- function () {
467
- return this.pBadge;
468
- },
469
- enumerable: true,
470
- configurable: true
471
- });
472
- Object.defineProperty(DueDateComponent.prototype, "label", {
473
- get: /**
474
- * @return {?}
475
- */
476
- function () {
477
- return this.pLabel;
478
- },
479
- enumerable: true,
480
- configurable: true
481
- });
482
- Object.defineProperty(DueDateComponent.prototype, "accessibleLabel", {
483
- get: /**
484
- * @return {?}
485
- */
486
- function () {
487
- return this.pAccessibleLabel;
488
- },
489
- enumerable: true,
490
- configurable: true
491
- });
492
- Object.defineProperty(DueDateComponent.prototype, "daysDiff", {
493
- get: /**
494
- * @return {?}
495
- */
496
- function () {
497
- return this.pDaysDiff;
498
- },
499
- enumerable: true,
500
- configurable: true
501
- });
502
- // Catch any changes to any of the Input() properties.
503
- // Catch any changes to any of the Input() properties.
504
- /**
505
- * @return {?}
506
- */
507
- DueDateComponent.prototype.ngOnChanges =
508
- // Catch any changes to any of the Input() properties.
509
- /**
510
- * @return {?}
511
- */
512
- function () {
513
- this.handleInputChanges();
514
- };
515
- // Set up the label, urgency class, and accessibility fields.
516
- // Set up the label, urgency class, and accessibility fields.
517
- /**
518
- * @private
519
- * @return {?}
520
- */
521
- DueDateComponent.prototype.handleInputChanges =
522
- // Set up the label, urgency class, and accessibility fields.
523
- /**
524
- * @private
525
- * @return {?}
526
- */
527
- function () {
528
- // If we don't have a dueDate, skip out of here.
529
- if (!this.dueDate) {
530
- return;
531
- }
532
- // How many days from today is the due date?
533
- // Already happened means daysDiff > 0;
534
- // Today means daysDiff = 0;
535
- // Yet to come means daysDiff < 0;
536
- this.pDaysDiff = this.getDaysDifference(this.dueDate, new Date());
537
- // Is it overdue?
538
- if (this.daysDiff > 0) {
539
- this.pBadge = BadgeColour.RED;
540
- /** @type {?} */
541
- var daysLabel = this.daysDiff === 1 ? 'day' : 'days';
542
- this.pLabel = "+" + this.daysDiff + " " + daysLabel;
543
- this.pAccessibleLabel = "This task is " + this.daysDiff + " " + daysLabel + " past its due date";
544
- }
545
- else {
546
- // Special label for "Today".
547
- if (this.daysDiff === 0) {
548
- this.pLabel = 'TODAY';
549
- this.pAccessibleLabel = 'This task is due to be completed today';
550
- }
551
- else {
552
- this.pLabel = "" + formatDate(this.dueDate, 'd MMM', 'en-GB');
553
- this.pAccessibleLabel = "This task is due to be completed by " + formatDate(this.dueDate, 'd MMMM y', 'en-GB');
554
- }
555
- if (this.daysDiff + this.highUrgencyCutoff > 0) {
556
- this.pBadge = BadgeColour.RED;
557
- }
558
- else if (this.daysDiff + this.mediumUrgencyCutoff > 0) {
559
- this.pBadge = BadgeColour.ORANGE;
560
- }
561
- else {
562
- this.pBadge = BadgeColour.GREEN;
563
- }
564
- }
565
- };
566
- // This will return the difference between two dates.
567
- // If fromDate is BEFORE toDate, it will be a positive number.
568
- // If fromDate is AFTER toDate, it will be a negative number.
569
- // This will return the difference between two dates.
570
- // If fromDate is BEFORE toDate, it will be a positive number.
571
- // If fromDate is AFTER toDate, it will be a negative number.
572
- /**
573
- * @private
574
- * @param {?} fromDate
575
- * @param {?} toDate
576
- * @return {?}
577
- */
578
- DueDateComponent.prototype.getDaysDifference =
579
- // This will return the difference between two dates.
580
- // If fromDate is BEFORE toDate, it will be a positive number.
581
- // If fromDate is AFTER toDate, it will be a negative number.
582
- /**
583
- * @private
584
- * @param {?} fromDate
585
- * @param {?} toDate
586
- * @return {?}
587
- */
588
- function (fromDate, toDate) {
589
- /** @type {?} */
590
- var fromEpoch = fromDate.getTime();
591
- /** @type {?} */
592
- var toEpoch = toDate.getTime();
593
- /** @type {?} */
594
- var diffSecs = Math.floor((toEpoch - fromEpoch) / 1000);
595
- return Math.floor(diffSecs / SECONDS_IN_A_DAY);
596
- };
597
- DueDateComponent.decorators = [
598
- { type: Component, args: [{
599
- selector: 'xuilib-due-date',
600
- template: "<span *ngIf=\"dueDate\" class=\"due-date hmcts-badge\" [ngClass]=\"badge\"\n [title]=\"accessibleLabel\" [attr.aria-label]=\"accessibleLabel\">\n {{label}}\n</span>",
601
- encapsulation: ViewEncapsulation.None,
602
- styles: [".due-date{white-space:nowrap}.due-date.hmcts-badge--orange{color:#f47738;border-color:#f47738}"]
603
- }] }
604
- ];
605
- DueDateComponent.propDecorators = {
606
- dueDate: [{ type: Input }],
607
- highUrgencyCutoff: [{ type: Input }],
608
- mediumUrgencyCutoff: [{ type: Input }]
609
- };
610
- return DueDateComponent;
611
- }());
612
-
613
- /**
614
- * @fileoverview added by tsickle
615
- * Generated from: lib/components/exui-main-wrapper/exui-page-wrapper.component.ts
616
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
617
- */
618
- /**
619
- * Main Page Wrapper
620
- * Responsible for:
621
- * Wrapping content within the gov-uk html elements bellow
622
- * \@prop showBackLink - switch for back link
623
- * \@prop appHeaderTitle = appHeaderTitle
624
- * \@prop appFunctionalTitle = appFunctionalTitle
625
- * \@prop summaryErrors list of errors
626
- * \@prop back link, appHeaderTitle (appHeaderTitle), summaryErrors (array of errors)
627
- */
628
- var ExuiPageWrapperComponent = /** @class */ (function () {
629
- function ExuiPageWrapperComponent() {
630
- }
631
- ExuiPageWrapperComponent.decorators = [
632
- { type: Component, args: [{
633
- selector: 'exui-page-wrapper',
634
- template: "<div class=\"page\">\n <a *ngIf=\"backLink\" [routerLink]=\"backLink\" class=\"govuk-back-link\">Back</a>\n <div class=\"govuk-width-container\">\n <main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">\n <span *ngIf=\"fnTitle\" class=\"govuk-caption-xl\">{{fnTitle}}</span>\n {{title}}\n </h1>\n <ng-content>\n\n </ng-content>\n </div>\n </main>\n </div>\n</div>\n",
635
- styles: [".page{width:100%}"]
636
- }] }
637
- ];
638
- /** @nocollapse */
639
- ExuiPageWrapperComponent.ctorParameters = function () { return []; };
640
- ExuiPageWrapperComponent.propDecorators = {
641
- backLink: [{ type: Input }],
642
- title: [{ type: Input }],
643
- fnTitle: [{ type: Input }]
644
- };
645
- return ExuiPageWrapperComponent;
646
- }());
647
-
648
- /**
649
- * @fileoverview added by tsickle
650
- * Generated from: lib/components/hmcts-session-dialog/hmcts-session-dialog.component.ts
651
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
652
- */
653
- /*
654
- * Gov UK Dialog Component
655
- * Responsible for displaying dialog layout
656
- * using ng-content to display content from parent
657
- * */
658
- var HmctsSessionDialogComponent = /** @class */ (function () {
659
- function HmctsSessionDialogComponent() {
660
- this.close = new EventEmitter();
661
- }
662
- /**
663
- * @return {?}
664
- */
665
- HmctsSessionDialogComponent.prototype.onClose = /**
666
- * @return {?}
667
- */
668
- function () {
669
- this.close.emit();
670
- };
671
- HmctsSessionDialogComponent.decorators = [
672
- { type: Component, args: [{
673
- selector: 'xuilib-session-dialog',
674
- template: "<div class=\"gem-c-modal-dialogue\" data-module=\"modal-dialogue\" id=\"modal-default\" style=\"display: block;\">\n <div class=\"gem-c-modal-dialogue__overlay\"></div>\n <dialog class=\"gem-c-modal-dialogue__box\" aria-modal=\"true\" role=\"dialog\" tabindex=\"0\" [ngStyle]=\"{'margin-top': positionTop}\">\n <div class=\"gem-c-modal-dialogue__header\">\n <svg role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 38 38\" height=\"33\" width=\"33\">\n <style type=\"text/css\">\n .st0{fill:#FFFFFF;}\n </style>\n <g id=\"_4_-_granular_components_warning_icon\" transform=\"translate(0.5 0.5)\">\n <g id=\"Warning_icon\" transform=\"translate(0)\">\n <path id=\"Exclusion_1\" class=\"st0\" d=\"M18.5,37.5c-5.04,0.01-9.88-1.99-13.44-5.57C1.49,28.38-0.51,23.54-0.5,18.5\n c-0.01-5.04,1.99-9.88,5.56-13.43C8.62,1.49,13.46-0.51,18.5-0.5c5.04-0.01,9.88,1.99,13.44,5.56c3.57,3.56,5.58,8.39,5.56,13.44\n c0.01,5.04-1.99,9.88-5.56,13.44C28.38,35.51,23.54,37.51,18.5,37.5z M18.52,24.29c-0.4,0-0.8,0.08-1.17,0.23\n c-0.36,0.15-0.69,0.37-0.97,0.64c-0.28,0.27-0.5,0.59-0.65,0.95c-0.16,0.36-0.24,0.76-0.23,1.15c0,0.4,0.08,0.8,0.23,1.17\n c0.15,0.36,0.37,0.68,0.65,0.96c0.28,0.27,0.61,0.49,0.97,0.64c0.37,0.16,0.77,0.24,1.17,0.24c0.4,0,0.79-0.08,1.15-0.24\n c0.35-0.15,0.67-0.37,0.95-0.64c0.27-0.27,0.49-0.6,0.64-0.96c0.16-0.37,0.24-0.77,0.23-1.17c0-0.4-0.08-0.79-0.23-1.15\n c-0.15-0.35-0.37-0.67-0.64-0.95c-0.27-0.27-0.6-0.49-0.95-0.64C19.31,24.37,18.92,24.29,18.52,24.29L18.52,24.29z M16.11,7.5\n l0.42,14.87h3.91L20.86,7.5H16.11z\"/>\n </g>\n </g>\n </svg>\n <div class=\"gem-c-modal-dialogue__title\">We are about to sign you out</div>\n </div>\n <div class=\"gem-c-modal-dialogue__content\">\n <ng-content></ng-content>\n </div>\n </dialog>\n</div>\n",
675
- styles: [".gem-c-modal-dialogue{display:none;position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;outline:0}.gem-c-modal-dialogue__box{display:block;position:fixed;background:#fff;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;overflow-y:auto;border:0;font-family:\"GDS Transport\",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:1rem;line-height:1.25;color:#0b0c0c}.gem-c-modal-dialogue__box:focus{outline:#fd0 solid 3px}@media (min-width:40.0625em){.gem-c-modal-dialogue__box{font-size:1.1875rem;line-height:1.3157894737;position:relative;top:inherit;right:inherit;bottom:inherit;left:inherit;width:auto;max-width:640px;height:auto;margin:30px auto;border:2px solid #0b0c0c}}@media print{.gem-c-modal-dialogue__box{font-family:sans-serif;font-size:14pt;line-height:1.15;color:#000}}@media (min-width:40.0625em) and (max-width:64em){.gem-c-modal-dialogue__box--wide{margin:30px}}.gem-c-modal-dialogue__overlay{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:.8;background:#0b0c0c;pointer-events:none;touch-action:none}@media screen{.gem-o-template--modal{overflow-y:inherit}}.gem-o-template__body--modal{overflow:hidden}.gem-o-template__body--blur .govuk-footer,.gem-o-template__body--blur .govuk-header,.gem-o-template__body--blur .govuk-main-wrapper,.gem-o-template__body--blur .govuk-phase-banner,.gem-o-template__body--blur .govuk-skip-link,.gem-o-template__body--blur .govuk-width-container .govuk-back-link{filter:blur(2px)}.govuk-warning-text__icon{margin:0 0 0 12px}.gem-c-modal-dialogue__header{padding:9px 15px 10px;color:#fff;background:#d4351d;display:flex}.gem-c-modal-dialogue__title{margin:5px 0 4px 12px}.gem-c-modal-dialogue__logotype-crown{fill:currentColor;vertical-align:middle}.gem-c-modal-dialogue__logotype-crown-fallback-image{width:30px;height:26px;border:0;vertical-align:middle}.gem-c-modal-dialogue__content{padding:15px;background:#fff}.gem-c-modal-dialogue__close-button{position:absolute;top:0;right:0;width:44px;height:44px;border:0;color:#fff;background:0 0;cursor:pointer;font-family:\"GDS Transport\",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:1.5rem;line-height:1.3}@media (min-width:40.0625em){.gem-c-modal-dialogue__box--wide{max-width:960px}.gem-c-modal-dialogue__close-button{font-size:2.25rem;line-height:1.3}}@media print{.gem-c-modal-dialogue__close-button{font-family:sans-serif;font-size:24pt;line-height:1.3}}@media (max-width:40.0525em){.gem-c-modal-dialogue__close-button{font-size:36px;line-height:1.3}}.gem-c-modal-dialogue__close-button:focus,.gem-c-modal-dialogue__close-button:hover{color:#0b0c0c;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;outline:0;background:#fd0}"]
676
- }] }
677
- ];
678
- /** @nocollapse */
679
- HmctsSessionDialogComponent.ctorParameters = function () { return []; };
680
- HmctsSessionDialogComponent.propDecorators = {
681
- positionTop: [{ type: Input }],
682
- close: [{ type: Output }]
683
- };
684
- return HmctsSessionDialogComponent;
685
- }());
686
-
687
- /**
688
- * @fileoverview added by tsickle
689
- * Generated from: lib/components/invite-user-form/invite-user-form.component.ts
690
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
691
- */
692
- var InviteUserFormComponent = /** @class */ (function () {
693
- function InviteUserFormComponent() {
694
- this.submitForm = new EventEmitter();
695
- }
696
- Object.defineProperty(InviteUserFormComponent.prototype, "errorMessages", {
697
- set: /**
698
- * @param {?} value
699
- * @return {?}
700
- */
701
- function (value) {
702
- this.isInvalid = value || {};
703
- },
704
- enumerable: true,
705
- configurable: true
706
- });
707
- /**
708
- * @return {?}
709
- */
710
- InviteUserFormComponent.prototype.onSubmit = /**
711
- * @return {?}
712
- */
713
- function () {
714
- this.submitForm.emit();
715
- };
716
- InviteUserFormComponent.decorators = [
717
- { type: Component, args: [{
718
- selector: 'xuilib-invite-user-form',
719
- template: "\n<form [formGroup]=\"inviteUserForm\" (ngSubmit)=\"onSubmit()\" >\n\n <xuilib-gov-uk-input\n [config]=\"{label: 'First name', hint: 'Include all middle names.', name: 'firstName', id: 'firstName', type: 'text', classes: 'testClass'}\"\n [errorMessage]=\"isInvalid.firstName\"\n [group]=\"inviteUserForm\">\n </xuilib-gov-uk-input>\n\n <xuilib-gov-uk-input\n [config]=\"{label: 'Last name', name: 'lastName', id: 'lastName', type: 'text'}\"\n [errorMessage]=\"isInvalid.lastName\"\n [group]=\"inviteUserForm\">\n </xuilib-gov-uk-input>\n\n <xuilib-gov-uk-input\n [config]=\"{label: 'Email address', name: 'email', id: 'email', type: 'email'}\"\n [errorMessage]=\"isInvalid.email\"\n [group]=\"inviteUserForm\">\n </xuilib-gov-uk-input>\n\n <xuilib-invite-permission-form [inviteUserForm]=\"inviteUserForm\" [errorMessages]=\"isInvalid.roles\">\n </xuilib-invite-permission-form>\n\n <button type=\"submit\" class=\"govuk-button\">\n Send invitation\n </button>\n</form>\n"
720
- }] }
721
- ];
722
- InviteUserFormComponent.propDecorators = {
723
- submitForm: [{ type: Output }],
724
- inviteUserForm: [{ type: Input }],
725
- errorMessages: [{ type: Input }]
726
- };
727
- return InviteUserFormComponent;
728
- }());
729
-
730
- /**
731
- * @fileoverview added by tsickle
732
- * Generated from: lib/components/invite-user-permissions/invite-user-permission.component.ts
733
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
734
- */
735
- var InviteUserPermissionComponent = /** @class */ (function () {
736
- function InviteUserPermissionComponent() {
737
- this.isPuiCaseManager = false;
738
- this.isPuiUserManager = false;
739
- this.isPuiOrganisationManager = false;
740
- this.isPuiFinanceManager = false;
741
- }
742
- InviteUserPermissionComponent.decorators = [
743
- { type: Component, args: [{
744
- selector: 'xuilib-invite-permission-form',
745
- template: " <!--permissions -->\n <ng-container [formGroup]=\"inviteUserForm\">\n <xuilib-gov-uk-form-group-wrapper\n [config]=\"{hint: 'Choose what the user will be able to do. You can change this later.', legend: 'Permissions', key: 'roles'}\"\n [formGroupName]=\"'roles'\"\n [error]=\"errorMessages\">\n\n <div class=\"govuk-checkboxes\">\n <xuilib-gov-checkbox\n [group]=\"inviteUserForm.controls['roles']\"\n [isChecked]=\"isPuiCaseManager\"\n [config]=\"{value: 'pui-case-manager', label: 'Manage Cases', name: 'roles', hint: 'View, create and progress cases.', focusOn: 'roles'}\">\n </xuilib-gov-checkbox>\n\n <xuilib-gov-checkbox\n [group]=\"inviteUserForm.controls['roles']\"\n [isChecked]=\"isPuiUserManager\"\n [config]=\"{value: 'pui-user-manager', label: 'Manage Users', name: 'roles',\n hint: 'Invite users.'}\">\n </xuilib-gov-checkbox>\n\n <xuilib-gov-checkbox\n [group]=\"inviteUserForm.controls['roles']\"\n [isChecked]=\"isPuiOrganisationManager\"\n [config]=\"{value: 'pui-organisation-manager', label: 'Manage Organisation', name: 'roles',\n hint: 'View organisation name and addresses.'}\">\n </xuilib-gov-checkbox>\n\n <!-- <xuilib-gov-checkbox\n [group]=\"inviteUserForm.controls['roles']\"\n [isChecked]=\"isPuiFinanceManager\"\n [config]=\"{value: 'pui-finance-manager', label: 'Manage Payments', name: 'roles',\n hint: 'View account balances, available credit and transactions.'}\">\n </xuilib-gov-checkbox> -->\n </div>\n\n </xuilib-gov-uk-form-group-wrapper>\n</ng-container>"
746
- }] }
747
- ];
748
- InviteUserPermissionComponent.propDecorators = {
749
- inviteUserForm: [{ type: Input }],
750
- isPuiCaseManager: [{ type: Input }],
751
- isPuiUserManager: [{ type: Input }],
752
- isPuiOrganisationManager: [{ type: Input }],
753
- isPuiFinanceManager: [{ type: Input }],
754
- errorMessages: [{ type: Input }]
755
- };
756
- return InviteUserPermissionComponent;
757
- }());
758
-
759
- /**
760
- * @fileoverview added by tsickle
761
- * Generated from: lib/components/loading-spinner/loading-spinner.component.ts
762
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
763
- */
764
- var LoadingSpinnerComponent = /** @class */ (function () {
765
- function LoadingSpinnerComponent(renderer) {
766
- this.renderer = renderer;
767
- this.zIndex = 1000;
768
- this.loadingText = 'Page can take up to 30 seconds to load';
769
- }
770
- /**
771
- * @return {?}
772
- */
773
- LoadingSpinnerComponent.prototype.ngOnInit = /**
774
- * @return {?}
775
- */
776
- function () {
777
- this.renderer.addClass(document.body, 'loading-spinner-in-action');
778
- };
779
- /**
780
- * @return {?}
781
- */
782
- LoadingSpinnerComponent.prototype.ngOnDestroy = /**
783
- * @return {?}
784
- */
785
- function () {
786
- this.renderer.removeClass(document.body, 'loading-spinner-in-action');
787
- };
788
- LoadingSpinnerComponent.decorators = [
789
- { type: Component, args: [{
790
- selector: 'xuilib-loading-spinner',
791
- template: "<div class=\"loading-spinner__overlay\" [ngStyle]=\"{'z-index': zIndex}\">\n <div class=\"loading-spinner__box\" [ngStyle]=\"{'z-index': zIndex + 1}\">\n <div class=\"loading-spinner__fan\">\n <ng-container *ngFor=\"let i of [].constructor(12)\">\n <div></div>\n </ng-container>\n </div>\n <p>{{loadingText}}</p>\n </div>\n</div>",
792
- encapsulation: ViewEncapsulation.None,
793
- styles: [".loading-spinner-in-action{overflow:hidden}.loading-spinner-in-action .loading-spinner__overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.7)}.loading-spinner-in-action .loading-spinner__box{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.loading-spinner-in-action .loading-spinner__fan{display:inline-block;position:relative;width:64px;height:64px}.loading-spinner-in-action .loading-spinner__fan div{transform-origin:32px 32px;-webkit-animation:1.2s linear infinite lds-spinner;animation:1.2s linear infinite lds-spinner}.loading-spinner-in-action .loading-spinner__fan div:after{content:\" \";display:block;position:absolute;top:3px;left:29px;width:5px;height:14px;border-radius:20%;background:#0b0c0c}.loading-spinner-in-action .loading-spinner__fan div:nth-child(1){transform:rotate(0);-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(2){transform:rotate(30deg);-webkit-animation-delay:-1s;animation-delay:-1s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(3){transform:rotate(60deg);-webkit-animation-delay:-.9s;animation-delay:-.9s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(4){transform:rotate(90deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(5){transform:rotate(120deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(6){transform:rotate(150deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(7){transform:rotate(180deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(8){transform:rotate(210deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(9){transform:rotate(240deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(10){transform:rotate(270deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(11){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}.loading-spinner-in-action .loading-spinner__fan div:nth-child(12){transform:rotate(330deg);-webkit-animation-delay:0s;animation-delay:0s}@-webkit-keyframes lds-spinner{0%{opacity:1}100%{opacity:0}}@keyframes lds-spinner{0%{opacity:1}100%{opacity:0}}"]
794
- }] }
795
- ];
796
- /** @nocollapse */
797
- LoadingSpinnerComponent.ctorParameters = function () { return [
798
- { type: Renderer2 }
799
- ]; };
800
- LoadingSpinnerComponent.propDecorators = {
801
- zIndex: [{ type: Input }],
802
- loadingText: [{ type: Input }]
803
- };
804
- return LoadingSpinnerComponent;
805
- }());
806
-
807
- /**
808
- * @fileoverview added by tsickle
809
- * Generated from: lib/services/case-sharing-state/case-sharing-state.service.ts
810
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
811
- */
812
- var CaseSharingStateService = /** @class */ (function () {
813
- function CaseSharingStateService() {
814
- this.caseState = [];
815
- this.subject = new BehaviorSubject(this.caseState);
816
- }
817
- Object.defineProperty(CaseSharingStateService.prototype, "state", {
818
- get: /**
819
- * @return {?}
820
- */
821
- function () {
822
- return this.subject.asObservable().pipe(distinctUntilChanged());
823
- },
824
- enumerable: true,
825
- configurable: true
826
- });
827
- /**
828
- * @param {?} cases
829
- * @return {?}
830
- */
831
- CaseSharingStateService.prototype.setCases = /**
832
- * @param {?} cases
833
- * @return {?}
834
- */
835
- function (cases) {
836
- var _this = this;
837
- this.caseState = [];
838
- cases.forEach((/**
839
- * @param {?} aCase
840
- * @return {?}
841
- */
842
- function (aCase) {
843
- _this.caseState.push({ caseId: aCase.caseId, caseTitle: aCase.caseTitle, caseTypeId: aCase.caseTypeId, roles: aCase.roles,
844
- sharedWith: aCase.sharedWith, pendingShares: aCase.pendingShares, pendingUnshares: aCase.pendingUnshares });
845
- }));
846
- this.subject.next(this.caseState);
847
- };
848
- /**
849
- * @return {?}
850
- */
851
- CaseSharingStateService.prototype.getCases = /**
852
- * @return {?}
853
- */
854
- function () {
855
- return this.caseState;
856
- };
857
- /**
858
- * @param {?} user
859
- * @return {?}
860
- */
861
- CaseSharingStateService.prototype.requestShare = /**
862
- * @param {?} user
863
- * @return {?}
864
- */
865
- function (user) {
866
- var e_1, _a;
867
- /** @type {?} */
868
- var oldSharedCases = this.caseState.slice();
869
- /** @type {?} */
870
- var newSharedCases = [];
871
- try {
872
- for (var oldSharedCases_1 = __values(oldSharedCases), oldSharedCases_1_1 = oldSharedCases_1.next(); !oldSharedCases_1_1.done; oldSharedCases_1_1 = oldSharedCases_1.next()) {
873
- var sharedCase = oldSharedCases_1_1.value;
874
- if (!sharedCase.pendingShares) {
875
- sharedCase.pendingShares = [];
876
- }
877
- /** @type {?} */
878
- var newPendingShares = sharedCase.pendingShares.slice();
879
- if (!sharedCase.pendingUnshares) {
880
- sharedCase.pendingUnshares = [];
881
- }
882
- /** @type {?} */
883
- var newPendingUnshares = sharedCase.pendingUnshares.slice();
884
- if (!this.userHasAccess(sharedCase, user)) {
885
- if (!newPendingShares.some((/**
886
- * @param {?} u
887
- * @return {?}
888
- */
889
- function (u) { return u.email === user.email; }))) {
890
- newPendingShares.push(user);
891
- }
892
- }
893
- else {
894
- for (var u = 0, ul = newPendingUnshares.length; u < ul; u++) {
895
- if (newPendingUnshares[u].email === user.email) {
896
- newPendingUnshares.splice(u, 1);
897
- break;
898
- }
899
- }
900
- }
901
- /** @type {?} */
902
- var newSharedCase = __assign({}, sharedCase, { pendingUnshares: newPendingUnshares, pendingShares: newPendingShares });
903
- newSharedCases.push(newSharedCase);
904
- }
905
- }
906
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
907
- finally {
908
- try {
909
- if (oldSharedCases_1_1 && !oldSharedCases_1_1.done && (_a = oldSharedCases_1.return)) _a.call(oldSharedCases_1);
910
- }
911
- finally { if (e_1) throw e_1.error; }
912
- }
913
- this.subject.next(newSharedCases);
914
- return newSharedCases;
915
- };
916
- /**
917
- * @param {?} caseId
918
- * @param {?} user
919
- * @return {?}
920
- */
921
- CaseSharingStateService.prototype.requestUnshare = /**
922
- * @param {?} caseId
923
- * @param {?} user
924
- * @return {?}
925
- */
926
- function (caseId, user) {
927
- var e_2, _a;
928
- /** @type {?} */
929
- var newSharedCases = [];
930
- try {
931
- for (var _b = __values(this.caseState), _c = _b.next(); !_c.done; _c = _b.next()) {
932
- var sharedCase = _c.value;
933
- if (sharedCase.caseId === caseId) {
934
- if (!sharedCase.pendingUnshares) {
935
- sharedCase.pendingUnshares = [];
936
- }
937
- /** @type {?} */
938
- var newPendingUnshares = sharedCase.pendingUnshares.slice();
939
- if (newPendingUnshares) {
940
- if (!newPendingUnshares.some((/**
941
- * @param {?} u
942
- * @return {?}
943
- */
944
- function (u) { return u.email === user.email; }))) {
945
- newPendingUnshares.push(user);
946
- }
947
- }
948
- else {
949
- newPendingUnshares.push(user);
950
- }
951
- /** @type {?} */
952
- var newSharedCase = __assign({}, sharedCase, { pendingUnshares: newPendingUnshares });
953
- newSharedCases.push(newSharedCase);
954
- }
955
- else {
956
- newSharedCases.push(sharedCase);
957
- }
958
- }
959
- }
960
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
961
- finally {
962
- try {
963
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
964
- }
965
- finally { if (e_2) throw e_2.error; }
966
- }
967
- this.subject.next(newSharedCases);
968
- return;
969
- };
970
- /**
971
- * @param {?} caseId
972
- * @param {?} user
973
- * @return {?}
974
- */
975
- CaseSharingStateService.prototype.requestCancel = /**
976
- * @param {?} caseId
977
- * @param {?} user
978
- * @return {?}
979
- */
980
- function (caseId, user) {
981
- var e_3, _a;
982
- /** @type {?} */
983
- var newSharedCases = [];
984
- try {
985
- for (var _b = __values(this.caseState), _c = _b.next(); !_c.done; _c = _b.next()) {
986
- var sharedCase = _c.value;
987
- if (sharedCase.caseId === caseId) {
988
- if (!sharedCase.pendingUnshares) {
989
- sharedCase.pendingUnshares = [];
990
- }
991
- /** @type {?} */
992
- var newPendingUnshares = sharedCase.pendingUnshares.slice();
993
- for (var iPendingUnshares = 0; iPendingUnshares < newPendingUnshares.length; iPendingUnshares++) {
994
- if (newPendingUnshares[iPendingUnshares].email === user.email) {
995
- newPendingUnshares.splice(iPendingUnshares, 1);
996
- break;
997
- }
998
- }
999
- if (!sharedCase.pendingShares) {
1000
- sharedCase.pendingShares = [];
1001
- }
1002
- /** @type {?} */
1003
- var newPendingShares = sharedCase.pendingShares.slice();
1004
- for (var iPendingShares = 0; iPendingShares < newPendingShares.length; iPendingShares++) {
1005
- if (newPendingShares[iPendingShares].email === user.email) {
1006
- newPendingShares.splice(iPendingShares, 1);
1007
- break;
1008
- }
1009
- }
1010
- /** @type {?} */
1011
- var newSharedCase = __assign({}, sharedCase, { pendingUnshares: newPendingUnshares, pendingShares: newPendingShares });
1012
- newSharedCases.push(newSharedCase);
1013
- }
1014
- else {
1015
- newSharedCases.push(sharedCase);
1016
- }
1017
- }
1018
- }
1019
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1020
- finally {
1021
- try {
1022
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1023
- }
1024
- finally { if (e_3) throw e_3.error; }
1025
- }
1026
- this.subject.next(newSharedCases);
1027
- return;
1028
- };
1029
- /**
1030
- * @param {?} caseId
1031
- * @return {?}
1032
- */
1033
- CaseSharingStateService.prototype.removeCase = /**
1034
- * @param {?} caseId
1035
- * @return {?}
1036
- */
1037
- function (caseId) {
1038
- for (var i = 0, l = this.caseState.length; i < l; i++) {
1039
- if (this.caseState[i].caseId === caseId) {
1040
- this.caseState.splice(i, 1);
1041
- this.subject.next(this.caseState);
1042
- return;
1043
- }
1044
- }
1045
- };
1046
- /**
1047
- * @param {?} c
1048
- * @param {?} user
1049
- * @return {?}
1050
- */
1051
- CaseSharingStateService.prototype.userHasAccess = /**
1052
- * @param {?} c
1053
- * @param {?} user
1054
- * @return {?}
1055
- */
1056
- function (c, user) {
1057
- if (!c.sharedWith) {
1058
- return false;
1059
- }
1060
- for (var i = 0, l = c.sharedWith.length; i < l; i++) {
1061
- if (c.sharedWith[i].email === user.email) {
1062
- return true;
1063
- }
1064
- }
1065
- return false;
1066
- };
1067
- CaseSharingStateService.decorators = [
1068
- { type: Injectable, args: [{
1069
- providedIn: 'root'
1070
- },] }
1071
- ];
1072
- /** @nocollapse */
1073
- CaseSharingStateService.ctorParameters = function () { return []; };
1074
- /** @nocollapse */ CaseSharingStateService.ngInjectableDef = defineInjectable({ factory: function CaseSharingStateService_Factory() { return new CaseSharingStateService(); }, token: CaseSharingStateService, providedIn: "root" });
1075
- return CaseSharingStateService;
1076
- }());
1077
-
1078
- /**
1079
- * @fileoverview added by tsickle
1080
- * Generated from: lib/components/selected-case-confirm/selected-case-confirm.component.ts
1081
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1082
- */
1083
- var SelectedCaseConfirmComponent = /** @class */ (function () {
1084
- function SelectedCaseConfirmComponent(stateService) {
1085
- this.stateService = stateService;
1086
- this.changeLink = '';
1087
- }
1088
- /**
1089
- * @return {?}
1090
- */
1091
- SelectedCaseConfirmComponent.prototype.ngOnInit = /**
1092
- * @return {?}
1093
- */
1094
- function () {
1095
- var _this = this;
1096
- this.shareCases$ = this.stateService.state;
1097
- this.shareCases$.subscribe((/**
1098
- * @param {?} shareCases
1099
- * @return {?}
1100
- */
1101
- function (shareCases) { return _this.shareCases = shareCases; }));
1102
- };
1103
- /**
1104
- * @param {?} user
1105
- * @return {?}
1106
- */
1107
- SelectedCaseConfirmComponent.prototype.trackByUserId = /**
1108
- * @param {?} user
1109
- * @return {?}
1110
- */
1111
- function (user) {
1112
- return user.idamId;
1113
- };
1114
- /**
1115
- * @return {?}
1116
- */
1117
- SelectedCaseConfirmComponent.prototype.showUserAccessBlock = /**
1118
- * @return {?}
1119
- */
1120
- function () {
1121
- if (this.sharedCase.pendingShares) {
1122
- if (this.sharedCase.pendingShares.length > 0) {
1123
- return true;
1124
- }
1125
- }
1126
- if (this.sharedCase.pendingUnshares) {
1127
- if (this.sharedCase.pendingUnshares.length > 0) {
1128
- return true;
1129
- }
1130
- }
1131
- return false;
1132
- };
1133
- SelectedCaseConfirmComponent.decorators = [
1134
- { type: Component, args: [{
1135
- selector: 'xuilib-selected-case-confirm',
1136
- template: "<div id=\"user-access-block-{{ sharedCase.caseId }}\" *ngIf=\"showUserAccessBlock()\">\n <h2 class=\"govuk-heading-m case-share-confirm__title\">{{ sharedCase.caseTitle }}</h2>\n <div class=\"case-share-confirm__caption-area\">\n <div class=\"govuk-caption-m case-share-confirm__caption\">\n {{ sharedCase.caseId }}\n </div>\n <a [routerLink]=\"changeLink\" class=\"case-share-confirm__change-link govuk-link govuk-!-font-size-19\">Change</a>\n </div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">Name</th>\n <th class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">Email address</th>\n <th class=\"govuk-table__header govuk-table-column-actions\" scope=\"col\">Actions</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let user of sharedCase.pendingShares; trackBy: trackByUserId\">\n <td class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <span class=\"hmcts-badge\">To be added</span>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngFor=\"let user of sharedCase.pendingUnshares; trackBy: trackByUserId\">\n <td class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <span class=\"hmcts-badge hmcts-badge--red\">to be removed</span>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n",
1137
- styles: [".case-share-confirm__title{margin-bottom:0}.case-share-confirm__caption-area{border-bottom:1px solid #b1b4b6;padding-bottom:10px;display:inline-block;width:100%;clear:both}.case-share-confirm__caption{float:left}.case-share-confirm__change-link{float:right}.govuk-table-column-header{width:45%}.govuk-table-column-actions{width:10%}"]
1138
- }] }
1139
- ];
1140
- /** @nocollapse */
1141
- SelectedCaseConfirmComponent.ctorParameters = function () { return [
1142
- { type: CaseSharingStateService }
1143
- ]; };
1144
- SelectedCaseConfirmComponent.propDecorators = {
1145
- sharedCase: [{ type: Input }],
1146
- changeLink: [{ type: Input }]
1147
- };
1148
- return SelectedCaseConfirmComponent;
1149
- }());
1150
-
1151
- /**
1152
- * @fileoverview added by tsickle
1153
- * Generated from: lib/components/selected-case-list/selected-case-list.component.ts
1154
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1155
- */
1156
- var SelectedCaseListComponent = /** @class */ (function () {
1157
- function SelectedCaseListComponent(stateService) {
1158
- this.stateService = stateService;
1159
- this.shareCases = [];
1160
- this.toConfirm = false;
1161
- this.changeLink = '';
1162
- this.unselect = new EventEmitter();
1163
- this.synchronizeStore = new EventEmitter();
1164
- }
1165
- /**
1166
- * @return {?}
1167
- */
1168
- SelectedCaseListComponent.prototype.ngOnInit = /**
1169
- * @return {?}
1170
- */
1171
- function () {
1172
- var _this = this;
1173
- this.shareCases$ = this.stateService.state;
1174
- this.shareCases$.subscribe((/**
1175
- * @param {?} shareCases
1176
- * @return {?}
1177
- */
1178
- function (shareCases) { return _this.shareCases = shareCases; }));
1179
- };
1180
- /**
1181
- * @param {?} sharedCase
1182
- * @return {?}
1183
- */
1184
- SelectedCaseListComponent.prototype.onUnselect = /**
1185
- * @param {?} sharedCase
1186
- * @return {?}
1187
- */
1188
- function (sharedCase) {
1189
- this.unselect.emit(sharedCase);
1190
- };
1191
- /**
1192
- * @param {?} event
1193
- * @return {?}
1194
- */
1195
- SelectedCaseListComponent.prototype.onSynchronizeStore = /**
1196
- * @param {?} event
1197
- * @return {?}
1198
- */
1199
- function (event) {
1200
- this.synchronizeStore.emit(event);
1201
- };
1202
- /**
1203
- * @param {?} sharedCase
1204
- * @return {?}
1205
- */
1206
- SelectedCaseListComponent.prototype.trackByCaseId = /**
1207
- * @param {?} sharedCase
1208
- * @return {?}
1209
- */
1210
- function (sharedCase) {
1211
- return sharedCase.caseId;
1212
- };
1213
- SelectedCaseListComponent.decorators = [
1214
- { type: Component, args: [{
1215
- selector: 'xuilib-selected-case-list',
1216
- template: "<ng-container *ngIf=\"!toConfirm\">\n <xuilib-selected-case\n *ngFor=\"let sharedCase of (shareCases$ | async); trackBy: trackByCaseId\"\n [sharedCase]=\"sharedCase\"\n [removeUserFromCaseToggleOn]=\"removeUserFromCaseToggleOn\"\n (unselect)=\"onUnselect($event)\"\n (synchronizeStore)=\"onSynchronizeStore($event)\"\n >\n </xuilib-selected-case>\n</ng-container>\n\n<ng-container *ngIf=\"toConfirm\">\n <xuilib-selected-case-confirm\n *ngFor=\"let sharedCase of (shareCases$ | async); trackBy: trackByCaseId\"\n [sharedCase]=\"sharedCase\"\n [changeLink]=\"changeLink\">\n </xuilib-selected-case-confirm>\n</ng-container>\n",
1217
- styles: [""]
1218
- }] }
1219
- ];
1220
- /** @nocollapse */
1221
- SelectedCaseListComponent.ctorParameters = function () { return [
1222
- { type: CaseSharingStateService }
1223
- ]; };
1224
- SelectedCaseListComponent.propDecorators = {
1225
- shareCases$: [{ type: Input }],
1226
- removeUserFromCaseToggleOn: [{ type: Input }],
1227
- toConfirm: [{ type: Input }],
1228
- changeLink: [{ type: Input }],
1229
- unselect: [{ type: Output }],
1230
- synchronizeStore: [{ type: Output }]
1231
- };
1232
- return SelectedCaseListComponent;
1233
- }());
1234
-
1235
- /**
1236
- * @fileoverview added by tsickle
1237
- * Generated from: lib/components/selected-case/selected-case.component.ts
1238
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1239
- */
1240
- var SelectedCaseComponent = /** @class */ (function () {
1241
- function SelectedCaseComponent(stateService) {
1242
- this.stateService = stateService;
1243
- this.opened = false;
1244
- this.unselect = new EventEmitter();
1245
- this.synchronizeStore = new EventEmitter();
1246
- }
1247
- /**
1248
- * @return {?}
1249
- */
1250
- SelectedCaseComponent.prototype.ngOnInit = /**
1251
- * @return {?}
1252
- */
1253
- function () {
1254
- var _this = this;
1255
- this.shareCases$ = this.stateService.state;
1256
- this.shareCases$.subscribe((/**
1257
- * @param {?} shareCases
1258
- * @return {?}
1259
- */
1260
- function (shareCases) { return _this.shareCases = shareCases; }));
1261
- };
1262
- /**
1263
- * @param {?} changes
1264
- * @return {?}
1265
- */
1266
- SelectedCaseComponent.prototype.ngOnChanges = /**
1267
- * @param {?} changes
1268
- * @return {?}
1269
- */
1270
- function (changes) {
1271
- if (changes.sharedCase) {
1272
- /** @type {?} */
1273
- var sharedWith = this.sharedCase.sharedWith ? this.sharedCase.sharedWith : [];
1274
- /** @type {?} */
1275
- var pendingShares = this.sharedCase.pendingShares ? this.sharedCase.pendingShares : [];
1276
- this.combinedSortedShares = this.combineAndSortShares(sharedWith, pendingShares);
1277
- }
1278
- };
1279
- /**
1280
- * @return {?}
1281
- */
1282
- SelectedCaseComponent.prototype.onUnselect = /**
1283
- * @return {?}
1284
- */
1285
- function () {
1286
- this.unselect.emit(this.sharedCase);
1287
- };
1288
- /**
1289
- * @param {?} c
1290
- * @return {?}
1291
- */
1292
- SelectedCaseComponent.prototype.onDeselect = /**
1293
- * @param {?} c
1294
- * @return {?}
1295
- */
1296
- function (c) {
1297
- this.unselect.emit(c);
1298
- };
1299
- /**
1300
- * @param {?} user
1301
- * @return {?}
1302
- */
1303
- SelectedCaseComponent.prototype.trackByUserId = /**
1304
- * @param {?} user
1305
- * @return {?}
1306
- */
1307
- function (user) {
1308
- return user.idamId;
1309
- };
1310
- /**
1311
- * @param {?} caseId
1312
- * @param {?} user
1313
- * @return {?}
1314
- */
1315
- SelectedCaseComponent.prototype.canRemove = /**
1316
- * @param {?} caseId
1317
- * @param {?} user
1318
- * @return {?}
1319
- */
1320
- function (caseId, user) {
1321
- var _this = this;
1322
- return this.shareCases$.pipe(map((/**
1323
- * @param {?} cases
1324
- * @return {?}
1325
- */
1326
- function (cases) {
1327
- var e_1, _a;
1328
- if (_this.removeUserFromCaseToggleOn) {
1329
- try {
1330
- for (var cases_1 = __values(cases), cases_1_1 = cases_1.next(); !cases_1_1.done; cases_1_1 = cases_1.next()) {
1331
- var aCase = cases_1_1.value;
1332
- if (aCase.caseId === caseId) {
1333
- if (aCase.pendingUnshares && aCase.pendingUnshares.some((/**
1334
- * @param {?} u
1335
- * @return {?}
1336
- */
1337
- function (u) { return u.idamId === user.idamId; }))) {
1338
- return false;
1339
- }
1340
- if (aCase.sharedWith && aCase.sharedWith.some((/**
1341
- * @param {?} u
1342
- * @return {?}
1343
- */
1344
- function (u) { return u.idamId === user.idamId; }))) {
1345
- return true;
1346
- }
1347
- }
1348
- }
1349
- }
1350
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1351
- finally {
1352
- try {
1353
- if (cases_1_1 && !cases_1_1.done && (_a = cases_1.return)) _a.call(cases_1);
1354
- }
1355
- finally { if (e_1) throw e_1.error; }
1356
- }
1357
- }
1358
- return false;
1359
- })));
1360
- };
1361
- /**
1362
- * @param {?} caseId
1363
- * @param {?} user
1364
- * @return {?}
1365
- */
1366
- SelectedCaseComponent.prototype.canCancel = /**
1367
- * @param {?} caseId
1368
- * @param {?} user
1369
- * @return {?}
1370
- */
1371
- function (caseId, user) {
1372
- return this.shareCases$.pipe(map((/**
1373
- * @param {?} cases
1374
- * @return {?}
1375
- */
1376
- function (cases) {
1377
- var e_2, _a;
1378
- try {
1379
- for (var cases_2 = __values(cases), cases_2_1 = cases_2.next(); !cases_2_1.done; cases_2_1 = cases_2.next()) {
1380
- var aCase = cases_2_1.value;
1381
- if (aCase.caseId === caseId) {
1382
- if (aCase.pendingShares && aCase.pendingShares.some((/**
1383
- * @param {?} u
1384
- * @return {?}
1385
- */
1386
- function (u) { return u.idamId === user.idamId; }))) {
1387
- return true;
1388
- }
1389
- if (aCase.pendingUnshares && aCase.pendingUnshares.some((/**
1390
- * @param {?} u
1391
- * @return {?}
1392
- */
1393
- function (u) { return u.idamId === user.idamId; }))) {
1394
- return true;
1395
- }
1396
- return false;
1397
- }
1398
- }
1399
- }
1400
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1401
- finally {
1402
- try {
1403
- if (cases_2_1 && !cases_2_1.done && (_a = cases_2.return)) _a.call(cases_2);
1404
- }
1405
- finally { if (e_2) throw e_2.error; }
1406
- }
1407
- })));
1408
- };
1409
- /**
1410
- * @param {?} caseId
1411
- * @param {?} user
1412
- * @return {?}
1413
- */
1414
- SelectedCaseComponent.prototype.isToBeRemoved = /**
1415
- * @param {?} caseId
1416
- * @param {?} user
1417
- * @return {?}
1418
- */
1419
- function (caseId, user) {
1420
- return this.shareCases$.pipe(map((/**
1421
- * @param {?} cases
1422
- * @return {?}
1423
- */
1424
- function (cases) {
1425
- var e_3, _a;
1426
- try {
1427
- for (var cases_3 = __values(cases), cases_3_1 = cases_3.next(); !cases_3_1.done; cases_3_1 = cases_3.next()) {
1428
- var aCase = cases_3_1.value;
1429
- if (aCase.caseId === caseId) {
1430
- return aCase.pendingUnshares && aCase.pendingUnshares.some((/**
1431
- * @param {?} u
1432
- * @return {?}
1433
- */
1434
- function (u) { return u.idamId === user.idamId; }));
1435
- }
1436
- }
1437
- }
1438
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1439
- finally {
1440
- try {
1441
- if (cases_3_1 && !cases_3_1.done && (_a = cases_3.return)) _a.call(cases_3);
1442
- }
1443
- finally { if (e_3) throw e_3.error; }
1444
- }
1445
- })));
1446
- };
1447
- /**
1448
- * @param {?} caseId
1449
- * @param {?} user
1450
- * @return {?}
1451
- */
1452
- SelectedCaseComponent.prototype.isToBeAdded = /**
1453
- * @param {?} caseId
1454
- * @param {?} user
1455
- * @return {?}
1456
- */
1457
- function (caseId, user) {
1458
- return this.shareCases$.pipe(map((/**
1459
- * @param {?} cases
1460
- * @return {?}
1461
- */
1462
- function (cases) {
1463
- var e_4, _a;
1464
- try {
1465
- for (var cases_4 = __values(cases), cases_4_1 = cases_4.next(); !cases_4_1.done; cases_4_1 = cases_4.next()) {
1466
- var aCase = cases_4_1.value;
1467
- if (aCase.caseId === caseId) {
1468
- return aCase.pendingShares && aCase.pendingShares.some((/**
1469
- * @param {?} u
1470
- * @return {?}
1471
- */
1472
- function (u) { return u.idamId === user.idamId; }));
1473
- }
1474
- }
1475
- }
1476
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
1477
- finally {
1478
- try {
1479
- if (cases_4_1 && !cases_4_1.done && (_a = cases_4.return)) _a.call(cases_4);
1480
- }
1481
- finally { if (e_4) throw e_4.error; }
1482
- }
1483
- })));
1484
- };
1485
- /**
1486
- * @param {?} user
1487
- * @param {?} sharedCase
1488
- * @return {?}
1489
- */
1490
- SelectedCaseComponent.prototype.onRemove = /**
1491
- * @param {?} user
1492
- * @param {?} sharedCase
1493
- * @return {?}
1494
- */
1495
- function (user, sharedCase) {
1496
- this.stateService.requestUnshare(sharedCase.caseId, user);
1497
- this.synchronizeStore.emit(this.shareCases);
1498
- };
1499
- /**
1500
- * @param {?} user
1501
- * @param {?} sharedCase
1502
- * @return {?}
1503
- */
1504
- SelectedCaseComponent.prototype.onCancel = /**
1505
- * @param {?} user
1506
- * @param {?} sharedCase
1507
- * @return {?}
1508
- */
1509
- function (user, sharedCase) {
1510
- this.stateService.requestCancel(sharedCase.caseId, user);
1511
- this.synchronizeStore.emit(this.shareCases);
1512
- };
1513
- /**
1514
- * @return {?}
1515
- */
1516
- SelectedCaseComponent.prototype.showNoUsersAccessInfo = /**
1517
- * @return {?}
1518
- */
1519
- function () {
1520
- // A user is added to a case
1521
- if (this.sharedCase.pendingShares) {
1522
- if (this.sharedCase.pendingShares.length > 0) {
1523
- return false;
1524
- }
1525
- }
1526
- // A case has 0 users with access to it
1527
- if (this.sharedCase.sharedWith) {
1528
- if (this.sharedCase.sharedWith.length === 0) {
1529
- return true;
1530
- }
1531
- }
1532
- // Access to the last user is removed
1533
- if (this.sharedCase.sharedWith && this.sharedCase.pendingUnshares) {
1534
- if (this.sharedCase.pendingUnshares.length > 0
1535
- && this.sharedCase.sharedWith.length === this.sharedCase.pendingUnshares.length) {
1536
- return true;
1537
- }
1538
- }
1539
- return false;
1540
- };
1541
- /**
1542
- * @return {?}
1543
- */
1544
- SelectedCaseComponent.prototype.showUserHasAccessInfo = /**
1545
- * @return {?}
1546
- */
1547
- function () {
1548
- return !this.showNoUsersAccessInfo();
1549
- };
1550
- /**
1551
- * @return {?}
1552
- */
1553
- SelectedCaseComponent.prototype.showUserAccessTable = /**
1554
- * @return {?}
1555
- */
1556
- function () {
1557
- if (this.sharedCase.pendingShares) {
1558
- if (this.sharedCase.pendingShares.length > 0) {
1559
- return true;
1560
- }
1561
- }
1562
- if (this.sharedCase.sharedWith) {
1563
- if (this.sharedCase.sharedWith.length > 0) {
1564
- return true;
1565
- }
1566
- }
1567
- return false;
1568
- };
1569
- /**
1570
- * @param {?} sharedWith
1571
- * @param {?} pendingShares
1572
- * @return {?}
1573
- */
1574
- SelectedCaseComponent.prototype.combineAndSortShares = /**
1575
- * @param {?} sharedWith
1576
- * @param {?} pendingShares
1577
- * @return {?}
1578
- */
1579
- function (sharedWith, pendingShares) {
1580
- return __spread(sharedWith, pendingShares).sort((/**
1581
- * @param {?} user1
1582
- * @param {?} user2
1583
- * @return {?}
1584
- */
1585
- function (user1, user2) {
1586
- return user1.firstName.toLowerCase() > user2.firstName.toLowerCase() ? 1 : (user2.firstName.toLowerCase() > user1.firstName.toLowerCase() ? -1 : 0);
1587
- }));
1588
- };
1589
- /**
1590
- * @param {?} isPending
1591
- * @param {?} id
1592
- * @return {?}
1593
- */
1594
- SelectedCaseComponent.prototype.userIdSetter = /**
1595
- * @param {?} isPending
1596
- * @param {?} id
1597
- * @return {?}
1598
- */
1599
- function (isPending, id) {
1600
- return isPending ? "pendingShares-" + id : "" + id;
1601
- };
1602
- /**
1603
- * @param {?} elementName
1604
- * @return {?}
1605
- */
1606
- SelectedCaseComponent.prototype.buildElementId = /**
1607
- * @param {?} elementName
1608
- * @return {?}
1609
- */
1610
- function (elementName) {
1611
- return elementName + "-" + this.sharedCase.caseId;
1612
- };
1613
- SelectedCaseComponent.decorators = [
1614
- { type: Component, args: [{
1615
- selector: 'xuilib-selected-case',
1616
- template: "<div id=\"{{buildElementId('govuk-accordion__section')}}\" class=\"govuk-accordion__section\">\n <div class=\"govuk-grid-row govuk-case-header\">\n <div class=\"govuk-grid-column-three-quarters\">\n <h3 id=\"{{buildElementId('case-title')}}\" class=\"govuk-case-title\">{{ sharedCase.caseTitle }}</h3>\n <h1 id=\"{{buildElementId('case-id')}}\" class=\"govuk-case-sub-title\">{{ sharedCase.caseId }}</h1>\n </div>\n <div class=\"govuk-grid-column-twenty-percent\">\n <button id=\"{{buildElementId('btn-deselect-case')}}\" class=\"govuk-button hmcts-button--secondary\" (click)=\"onDeselect(sharedCase)\" title=\"Deselect case\">Deselect case</button>\n </div>\n <div class=\"govuk-accordion__section-header govuk-grid-column-five-percent\">\n <div class=\"govuk-accordion__section-heading\">\n <button type=\"button\" id=\"{{buildElementId('accordion-with-summary-sections-heading')}}\"\n aria-controls=\"accordion-with-summary-sections-content-1\" class=\"govuk-accordion__section-button\"\n aria-describedby=\"accordion-with-summary-sections-summary-1\" aria-expanded=\"false\" title=\"Expand or Collapse\">\n <span class=\"govuk-accordion__icon\" aria-hidden=\"true\"></span></button>\n </div>\n </div>\n </div>\n <div id=\"{{buildElementId('accordion-with-summary-sections-content')}}\" class=\"govuk-accordion__section-content\"\n aria-labelledby=\"buildElementId('accordion-with-summary-sections-heading')\" >\n <div class=\"govuk-grid-row\" *ngIf=\"showNoUsersAccessInfo()\">\n <span id=\"{{buildElementId('access-info-no-user')}}\" class=\"govuk-div-align-left\">No users from your organisation currently have access to this case.</span>\n </div>\n <div class=\"govuk-grid-row\" *ngIf=\"showUserHasAccessInfo()\">\n <span id=\"{{buildElementId('access-info-has-users')}}\" class=\"govuk-div-align-left\">Users from your organisation with access to this case.</span>\n </div>\n <table class=\"govuk-table\" *ngIf=\"showUserAccessTable()\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th id=\"{{buildElementId('name-heading')}}\" class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">Name</th>\n <th id=\"{{buildElementId('email-heading')}}\" class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">Email address</th>\n <th id=\"{{buildElementId('action-heading')}}\" class=\"govuk-table__header govuk-table-column-actions\" scope=\"col\">Actions</th>\n <th id=\"{{buildElementId('label-heading')}}\" class=\"govuk-table__header govuk-table-column-label\" scope=\"col\">&nbsp;&nbsp;</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let user of combinedSortedShares; index as idx; trackBy: trackByUserId\">\n <td id=\"user-full-name-{{ userIdSetter(canCancel(sharedCase.caseId, user) | async, idx) }}\" class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td id=\"user-email-{{ userIdSetter(canCancel(sharedCase.caseId, user) | async, idx) }}\" class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <a *ngIf=\"canRemove(sharedCase.caseId, user) | async\" (click)=\"onRemove(user, sharedCase)\" href=\"javascript:void(0);\">Remove <span class=\"govuk-visually-hidden\">{{ user.firstName + ' ' + user.lastName }} from case</span></a>\n <a *ngIf=\"canCancel(sharedCase.caseId, user) | async\" (click)=\"onCancel(user, sharedCase)\" href=\"javascript:void(0);\">Cancel <span class=\"govuk-visually-hidden\">adding {{ user.firstName + ' ' + user.lastName }} to case</span></a>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngIf=\"isToBeRemoved(sharedCase.caseId, user) | async\" class=\"hmcts-badge hmcts-badge--red\">To be removed</span>\n <span *ngIf=\"isToBeAdded(sharedCase.caseId, user) | async\" class=\"hmcts-badge\">To be added</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n",
1617
- styles: [".govuk-case-header{border-top:1px solid #bfc1c3}.govuk-case-title{font-family:nta,Arial,sans-serif;font-size:24px;color:#005ea5;font-weight:700;padding-left:0}.govuk-case-sub-title{font-family:nta,Arial,sans-serif;font-size:1rem!important;color:#6f777b;font-weight:400;padding-left:0}.govuk-grid-row{margin-left:0;margin-right:0}.govuk-grid-column-three-quarters{padding-top:5px;padding-left:0}.govuk-grid-column-twenty-percent{box-sizing:border-box;padding-top:10px;width:20%;float:left}.govuk-grid-column-five-percent{box-sizing:border-box;padding-top:15px;width:5%;float:left}.govuk-table-column-header{width:40%}.govuk-table-column-actions,.govuk-table-column-label{width:10%}.govuk-div-align-left{font-family:nta,Arial,sans-serif;font-size:1.1875rem!important;line-height:1.31579!important;text-align:left;margin-bottom:20px;padding-left:0;color:#0b0c0c}.govuk-accordion__section-header{border-top:0}.govuk-accordion__section-content{padding-top:0}"]
1618
- }] }
1619
- ];
1620
- /** @nocollapse */
1621
- SelectedCaseComponent.ctorParameters = function () { return [
1622
- { type: CaseSharingStateService }
1623
- ]; };
1624
- SelectedCaseComponent.propDecorators = {
1625
- sharedCase: [{ type: Input }],
1626
- selectedUser: [{ type: Input }],
1627
- opened: [{ type: Input }],
1628
- removeUserFromCaseToggleOn: [{ type: Input }],
1629
- unselect: [{ type: Output }],
1630
- synchronizeStore: [{ type: Output }]
1631
- };
1632
- return SelectedCaseComponent;
1633
- }());
1634
-
1635
- /**
1636
- * @fileoverview added by tsickle
1637
- * Generated from: lib/components/service-message/service-message.component.ts
1638
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1639
- */
1640
- var ServiceMessageComponent = /** @class */ (function () {
1641
- function ServiceMessageComponent() {
1642
- this.hideMessage = new EventEmitter();
1643
- }
1644
- /**
1645
- * @param {?} key
1646
- * @return {?}
1647
- */
1648
- ServiceMessageComponent.prototype.onHideMessageEvent = /**
1649
- * @param {?} key
1650
- * @return {?}
1651
- */
1652
- function (key) {
1653
- this.hideMessage.emit(key);
1654
- };
1655
- ServiceMessageComponent.decorators = [
1656
- { type: Component, args: [{
1657
- selector: 'xuilib-service-message',
1658
- template: "<div class=\"hmcts-banner hmcts-banner--warning\">\n\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n 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\" />\n </svg>\n\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">Warning</span>\n <h2 class=\"govuk-heading-s\" [innerHTML]=\"message\"></h2>\n <a [routerLink]=\"\" class=\"govuk-link--no-visited-state\" (click)=\"onHideMessageEvent(key)\">Hide message</a>\n </div>\n\n</div>"
1659
- }] }
1660
- ];
1661
- /** @nocollapse */
1662
- ServiceMessageComponent.ctorParameters = function () { return []; };
1663
- ServiceMessageComponent.propDecorators = {
1664
- message: [{ type: Input }],
1665
- key: [{ type: Input }],
1666
- hideMessage: [{ type: Output }]
1667
- };
1668
- return ServiceMessageComponent;
1669
- }());
1670
-
1671
- /**
1672
- * @fileoverview added by tsickle
1673
- * Generated from: lib/services/feature-toggle/feature-toggle.service.ts
1674
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1675
- */
1676
- var FeatureToggleService = /** @class */ (function () {
1677
- function FeatureToggleService() {
1678
- }
1679
- // tslint:disable-next-line: variable-name
1680
- // tslint:disable-next-line: variable-name
1681
- /**
1682
- * @param {?} _user
1683
- * @return {?}
1684
- */
1685
- FeatureToggleService.prototype.initialize =
1686
- // tslint:disable-next-line: variable-name
1687
- /**
1688
- * @param {?} _user
1689
- * @return {?}
1690
- */
1691
- function (_user) {
1692
- throw new Error('Not implemented');
1693
- };
1694
- // tslint:disable-next-line: variable-name
1695
- // tslint:disable-next-line: variable-name
1696
- /**
1697
- * @param {?} _feature
1698
- * @return {?}
1699
- */
1700
- FeatureToggleService.prototype.isEnabled =
1701
- // tslint:disable-next-line: variable-name
1702
- /**
1703
- * @param {?} _feature
1704
- * @return {?}
1705
- */
1706
- function (_feature) {
1707
- throw new Error('Not implemented');
1708
- };
1709
- // tslint:disable-next-line: variable-name
1710
- // tslint:disable-next-line: variable-name
1711
- /**
1712
- * @template R
1713
- * @param {?} _key
1714
- * @param {?} _defaultValue
1715
- * @return {?}
1716
- */
1717
- FeatureToggleService.prototype.getValue =
1718
- // tslint:disable-next-line: variable-name
1719
- /**
1720
- * @template R
1721
- * @param {?} _key
1722
- * @param {?} _defaultValue
1723
- * @return {?}
1724
- */
1725
- function (_key, _defaultValue) {
1726
- throw new Error('Not implemented');
1727
- };
1728
- // tslint:disable-next-line: variable-name
1729
- // tslint:disable-next-line: variable-name
1730
- /**
1731
- * @template R
1732
- * @param {?} _key
1733
- * @param {?} _defaultValue
1734
- * @return {?}
1735
- */
1736
- FeatureToggleService.prototype.getValueOnce =
1737
- // tslint:disable-next-line: variable-name
1738
- /**
1739
- * @template R
1740
- * @param {?} _key
1741
- * @param {?} _defaultValue
1742
- * @return {?}
1743
- */
1744
- function (_key, _defaultValue) {
1745
- throw new Error('Not implemented');
1746
- };
1747
- FeatureToggleService.decorators = [
1748
- { type: Injectable, args: [{
1749
- providedIn: 'root'
1750
- },] }
1751
- ];
1752
- /** @nocollapse */ FeatureToggleService.ngInjectableDef = defineInjectable({ factory: function FeatureToggleService_Factory() { return new FeatureToggleService(); }, token: FeatureToggleService, providedIn: "root" });
1753
- return FeatureToggleService;
1754
- }());
1755
-
1756
- /**
1757
- * @fileoverview added by tsickle
1758
- * Generated from: lib/components/service-messages/service-messages.component.ts
1759
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1760
- */
1761
- var ServiceMessagesComponent = /** @class */ (function () {
1762
- function ServiceMessagesComponent(featureToggleService) {
1763
- this.featureToggleService = featureToggleService;
1764
- this.filteredMessages = new Map();
1765
- }
1766
- /**
1767
- * @return {?}
1768
- */
1769
- ServiceMessagesComponent.prototype.ngOnInit = /**
1770
- * @return {?}
1771
- */
1772
- function () {
1773
- this.getServiceMessages();
1774
- };
1775
- /**
1776
- * @return {?}
1777
- */
1778
- ServiceMessagesComponent.prototype.getServiceMessages = /**
1779
- * @return {?}
1780
- */
1781
- function () {
1782
- var _this = this;
1783
- this.featureToggleService.getValue(this.featureToggleKey, null)
1784
- .subscribe((/**
1785
- * @param {?} messages
1786
- * @return {?}
1787
- */
1788
- function (messages) {
1789
- if (!!messages) {
1790
- _this.createFilteredMessages(messages);
1791
- }
1792
- }));
1793
- };
1794
- /**
1795
- * @private
1796
- * @param {?} messages
1797
- * @return {?}
1798
- */
1799
- ServiceMessagesComponent.prototype.createFilteredMessages = /**
1800
- * @private
1801
- * @param {?} messages
1802
- * @return {?}
1803
- */
1804
- function (messages) {
1805
- var _this = this;
1806
- this.hiddenBanners = JSON.parse(window.sessionStorage.getItem(this.serviceMessageCookie)) || [];
1807
- Object.keys(messages).forEach((/**
1808
- * @param {?} key
1809
- * @return {?}
1810
- */
1811
- function (key) {
1812
- /** @type {?} */
1813
- var regEx = new RegExp(key);
1814
- if (_this.userRoles.some((/**
1815
- * @param {?} e
1816
- * @return {?}
1817
- */
1818
- function (e) { return regEx.test(e); })) && _this.hiddenBanners.indexOf(key) === -1) {
1819
- _this.filteredMessages.set(key, messages[key]);
1820
- }
1821
- }));
1822
- };
1823
- /**
1824
- * @param {?} key
1825
- * @return {?}
1826
- */
1827
- ServiceMessagesComponent.prototype.hideMessage = /**
1828
- * @param {?} key
1829
- * @return {?}
1830
- */
1831
- function (key) {
1832
- this.filteredMessages.delete(key);
1833
- this.hiddenBanners.push(key);
1834
- window.sessionStorage.setItem(this.serviceMessageCookie, JSON.stringify(this.hiddenBanners));
1835
- };
1836
- ServiceMessagesComponent.decorators = [
1837
- { type: Component, args: [{
1838
- selector: 'xuilib-service-messages',
1839
- template: "<div class=\"govuk-width-container govuk-!-margin-top-6\">\n <xuilib-service-message *ngFor=\"let message of filteredMessages | keyvalue\" [key]=\"message.key\"\n [message]=\"message.value\" (hideMessage)=\"hideMessage($event)\"></xuilib-service-message>\n</div>"
1840
- }] }
1841
- ];
1842
- /** @nocollapse */
1843
- ServiceMessagesComponent.ctorParameters = function () { return [
1844
- { type: FeatureToggleService }
1845
- ]; };
1846
- ServiceMessagesComponent.propDecorators = {
1847
- userRoles: [{ type: Input }],
1848
- featureToggleKey: [{ type: Input }],
1849
- serviceMessageCookie: [{ type: Input }]
1850
- };
1851
- return ServiceMessagesComponent;
1852
- }());
1853
-
1854
- /**
1855
- * @fileoverview added by tsickle
1856
- * Generated from: lib/components/share-case-confirm/share-case-confirm.component.ts
1857
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1858
- */
1859
- var ShareCaseConfirmComponent = /** @class */ (function () {
1860
- function ShareCaseConfirmComponent(stateService) {
1861
- this.stateService = stateService;
1862
- this.shareCases = []; // cases selected for sharing
1863
- this.changeLink = '';
1864
- this.completeLink = '';
1865
- }
1866
- /**
1867
- * @return {?}
1868
- */
1869
- ShareCaseConfirmComponent.prototype.ngOnInit = /**
1870
- * @return {?}
1871
- */
1872
- function () {
1873
- var _this = this;
1874
- this.shareCases$.subscribe((/**
1875
- * @param {?} shareCases
1876
- * @return {?}
1877
- */
1878
- function (shareCases) {
1879
- _this.shareCases = shareCases;
1880
- _this.stateService.setCases(shareCases);
1881
- }));
1882
- this.shareCases$ = this.stateService.state;
1883
- };
1884
- ShareCaseConfirmComponent.decorators = [
1885
- { type: Component, args: [{
1886
- selector: 'xuilib-share-case-confirm',
1887
- template: "<div id=\"casesToConfirm\">\n <h3 class=\"govuk-heading-l\">Cases</h3>\n <div *ngIf=\"shareCases && shareCases.length > 0\" id=\"summarySections\">\n <xuilib-selected-case-list\n [shareCases$]=\"shareCases$\"\n [toConfirm]=\"true\"\n [changeLink]=\"changeLink\">\n </xuilib-selected-case-list>\n </div>\n\n <div id=\"noCaseDisplay\" *ngIf=\"shareCases && shareCases.length === 0\" class=\"govuk-hint\">\n No cases to display.\n </div>\n\n</div>\n\n<div id=\"share-case-nav\" *ngIf=\"shareCases && shareCases.length > 0\">\n <button class=\"govuk-button\" title=\"Confirm\" [routerLink]=\"completeLink\">Confirm</button>\n</div>\n",
1888
- styles: [""]
1889
- }] }
1890
- ];
1891
- /** @nocollapse */
1892
- ShareCaseConfirmComponent.ctorParameters = function () { return [
1893
- { type: CaseSharingStateService }
1894
- ]; };
1895
- ShareCaseConfirmComponent.propDecorators = {
1896
- shareCases$: [{ type: Input }],
1897
- changeLink: [{ type: Input }],
1898
- completeLink: [{ type: Input }]
1899
- };
1900
- return ShareCaseConfirmComponent;
1901
- }());
1902
-
1903
- /**
1904
- * @fileoverview added by tsickle
1905
- * Generated from: lib/components/user-select/user-select.component.ts
1906
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1907
- */
1908
- var UserSelectComponent = /** @class */ (function () {
1909
- function UserSelectComponent() {
1910
- this.selected = new EventEmitter();
1911
- this.control = new FormControl();
1912
- }
1913
- /**
1914
- * @return {?}
1915
- */
1916
- UserSelectComponent.prototype.ngOnInit = /**
1917
- * @return {?}
1918
- */
1919
- function () {
1920
- var _this = this;
1921
- this.filteredUsers = this.control.valueChanges.pipe(map((/**
1922
- * @param {?} value
1923
- * @return {?}
1924
- */
1925
- function (value) { return typeof value === typeof 'string' ? _this.filterUsers(value) : _this.users; })));
1926
- this.selected.emit(null);
1927
- };
1928
- /**
1929
- * @param {?} user
1930
- * @return {?}
1931
- */
1932
- UserSelectComponent.prototype.displayValue = /**
1933
- * @param {?} user
1934
- * @return {?}
1935
- */
1936
- function (user) {
1937
- return user ? user.firstName + " " + user.lastName + " - " + user.email : '';
1938
- };
1939
- /**
1940
- * @param {?} e
1941
- * @return {?}
1942
- */
1943
- UserSelectComponent.prototype.onSelected = /**
1944
- * @param {?} e
1945
- * @return {?}
1946
- */
1947
- function (e) {
1948
- this.selected.emit(e.option.value);
1949
- };
1950
- /**
1951
- * @return {?}
1952
- */
1953
- UserSelectComponent.prototype.clear = /**
1954
- * @return {?}
1955
- */
1956
- function () {
1957
- this.control.setValue(null);
1958
- };
1959
- /**
1960
- * @param {?} newUserValue
1961
- * @return {?}
1962
- */
1963
- UserSelectComponent.prototype.onUserChange = /**
1964
- * @param {?} newUserValue
1965
- * @return {?}
1966
- */
1967
- function (newUserValue) {
1968
- if (!newUserValue || !newUserValue.email) {
1969
- this.selected.emit(null);
1970
- }
1971
- };
1972
- /**
1973
- * @private
1974
- * @param {?} value
1975
- * @return {?}
1976
- */
1977
- UserSelectComponent.prototype.filterUsers = /**
1978
- * @private
1979
- * @param {?} value
1980
- * @return {?}
1981
- */
1982
- function (value) {
1983
- if (value) {
1984
- value = value.toLowerCase();
1985
- return this.users.filter((/**
1986
- * @param {?} user
1987
- * @return {?}
1988
- */
1989
- function (user) {
1990
- if (user.firstName.toLowerCase().includes(value)) {
1991
- return true;
1992
- }
1993
- if (user.lastName.toLowerCase().includes(value)) {
1994
- return true;
1995
- }
1996
- if (user.email.toLowerCase().includes(value)) {
1997
- return true;
1998
- }
1999
- return false;
2000
- }));
2001
- }
2002
- return [];
2003
- };
2004
- UserSelectComponent.decorators = [
2005
- { type: Component, args: [{
2006
- selector: 'xuilib-user-select',
2007
- template: "<input class=\"govuk-input\" type=\"text\" [matAutocomplete]=\"dropdown\" [formControl]=\"control\" (ngModelChange)=\"onUserChange($event)\" aria-labelledby=\"add-user-hint\">\n\n<mat-autocomplete #dropdown=\"matAutocomplete\" [displayWith]=\"displayValue\" autoActiveFirstOption (optionSelected)=\"onSelected($event)\">\n <mat-option *ngFor=\"let user of filteredUsers | async\" [value]=\"user\">\n {{ user.firstName }} {{ user.lastName }} - {{ user.email }}\n </mat-option>\n</mat-autocomplete>",
2008
- styles: [""]
2009
- }] }
2010
- ];
2011
- /** @nocollapse */
2012
- UserSelectComponent.ctorParameters = function () { return []; };
2013
- UserSelectComponent.propDecorators = {
2014
- users: [{ type: Input }],
2015
- selected: [{ type: Output }]
2016
- };
2017
- return UserSelectComponent;
2018
- }());
2019
-
2020
- /**
2021
- * @fileoverview added by tsickle
2022
- * Generated from: lib/components/share-case/share-case.component.ts
2023
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2024
- */
2025
- var ShareCaseComponent = /** @class */ (function () {
2026
- function ShareCaseComponent(stateService) {
2027
- this.stateService = stateService;
2028
- this.shareCases = []; // cases selected for sharing
2029
- // cases selected for sharing
2030
- this.removeUserFromCaseToggleOn = false;
2031
- this.users = []; // users of this organisation the cases can be shared with
2032
- // users of this organisation the cases can be shared with
2033
- this.confirmLink = '';
2034
- this.unselect = new EventEmitter();
2035
- this.synchronizeStore = new EventEmitter();
2036
- }
2037
- /**
2038
- * @return {?}
2039
- */
2040
- ShareCaseComponent.prototype.ngOnInit = /**
2041
- * @return {?}
2042
- */
2043
- function () {
2044
- var _this = this;
2045
- this.shareCases$.subscribe((/**
2046
- * @param {?} shareCases
2047
- * @return {?}
2048
- */
2049
- function (shareCases) {
2050
- _this.shareCases = shareCases;
2051
- _this.stateService.setCases(shareCases);
2052
- }));
2053
- this.shareCases$ = this.stateService.state;
2054
- };
2055
- /**
2056
- * @param {?} c
2057
- * @return {?}
2058
- */
2059
- ShareCaseComponent.prototype.onUnselect = /**
2060
- * @param {?} c
2061
- * @return {?}
2062
- */
2063
- function (c) {
2064
- this.unselect.emit(c);
2065
- this.stateService.removeCase(c.caseId);
2066
- };
2067
- /**
2068
- * @param {?} event
2069
- * @return {?}
2070
- */
2071
- ShareCaseComponent.prototype.onSynchronizeStore = /**
2072
- * @param {?} event
2073
- * @return {?}
2074
- */
2075
- function (event) {
2076
- this.synchronizeStore.emit(event);
2077
- };
2078
- /**
2079
- * @param {?} user
2080
- * @return {?}
2081
- */
2082
- ShareCaseComponent.prototype.onSelectedUser = /**
2083
- * @param {?} user
2084
- * @return {?}
2085
- */
2086
- function (user) {
2087
- this.selectedUser = user;
2088
- };
2089
- /**
2090
- * @return {?}
2091
- */
2092
- ShareCaseComponent.prototype.addUser = /**
2093
- * @return {?}
2094
- */
2095
- function () {
2096
- /** @type {?} */
2097
- var newSharedCases = this.stateService.requestShare(this.selectedUser);
2098
- this.selectedUser = null;
2099
- if (this.userSelect) {
2100
- this.userSelect.clear();
2101
- }
2102
- this.synchronizeStore.emit(newSharedCases);
2103
- };
2104
- /**
2105
- * @return {?}
2106
- */
2107
- ShareCaseComponent.prototype.isDisabledAdd = /**
2108
- * @return {?}
2109
- */
2110
- function () {
2111
- return this.selectedUser === null || this.shareCases.length === 0;
2112
- };
2113
- /**
2114
- * @return {?}
2115
- */
2116
- ShareCaseComponent.prototype.isDisabledContinue = /**
2117
- * @return {?}
2118
- */
2119
- function () {
2120
- /** @type {?} */
2121
- var isDisabled = true;
2122
- this.shareCases$.subscribe((/**
2123
- * @param {?} shareCases
2124
- * @return {?}
2125
- */
2126
- function (shareCases) {
2127
- var e_1, _a;
2128
- try {
2129
- for (var shareCases_1 = __values(shareCases), shareCases_1_1 = shareCases_1.next(); !shareCases_1_1.done; shareCases_1_1 = shareCases_1.next()) {
2130
- var caseState = shareCases_1_1.value;
2131
- if (caseState.pendingShares && caseState.pendingShares.length > 0) {
2132
- isDisabled = false;
2133
- break;
2134
- }
2135
- if (caseState.pendingUnshares && caseState.pendingUnshares.length > 0) {
2136
- isDisabled = false;
2137
- break;
2138
- }
2139
- }
2140
- }
2141
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2142
- finally {
2143
- try {
2144
- if (shareCases_1_1 && !shareCases_1_1.done && (_a = shareCases_1.return)) _a.call(shareCases_1);
2145
- }
2146
- finally { if (e_1) throw e_1.error; }
2147
- }
2148
- }));
2149
- return isDisabled;
2150
- };
2151
- /**
2152
- * @param {?} sharedCase
2153
- * @return {?}
2154
- */
2155
- ShareCaseComponent.prototype.onDeselect = /**
2156
- * @param {?} sharedCase
2157
- * @return {?}
2158
- */
2159
- function (sharedCase) {
2160
- var e_2, _a;
2161
- if (sharedCase !== null) {
2162
- /** @type {?} */
2163
- var updated = [];
2164
- try {
2165
- for (var _b = __values(this.shareCases), _c = _b.next(); !_c.done; _c = _b.next()) {
2166
- var element = _c.value;
2167
- if (element.caseId !== sharedCase.caseId) {
2168
- updated.push(element);
2169
- }
2170
- }
2171
- }
2172
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2173
- finally {
2174
- try {
2175
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2176
- }
2177
- finally { if (e_2) throw e_2.error; }
2178
- }
2179
- this.shareCases = updated;
2180
- }
2181
- this.stateService.setCases(this.shareCases);
2182
- };
2183
- ShareCaseComponent.decorators = [
2184
- { type: Component, args: [{
2185
- selector: 'xuilib-share-case',
2186
- template: "<div id=\"add-user\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">Enter email address</label>\n <span id=\"add-user-hint\" class=\"govuk-hint\">\n Search by name or email address. You can only add people from your organisation individually - but you can add as many as you like.\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-user-select\n id=\"add-user-input\"\n aria-describedby=\"add-user-hint\"\n [users]=\"users\"\n (selected)=\"onSelectedUser($event)\">\n </xuilib-user-select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-add-user\" (click)=\"addUser()\" class=\"govuk-button\" [disabled]=\"isDisabledAdd()\" title=\"Add user to the case\">Add</button>\n </div>\n </div>\n <details id=\"add-user-help\" class=\"govuk-details\" data-module=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span id=\"content-why-can-not-find-email\" class=\"govuk-details__summary-text\">\n Can\u2019t find an email address?\n </span>\n </summary>\n <div id=\"content-reason-can-not-find-email\" class=\"govuk-details__text\">\n If you can\u2019t find your colleague\u2019s email address, they will need to complete their registration. Contact your\n administrator for help.\n </div>\n </details>\n</div>\n\n<div id=\"cases\">\n <h3 id=\"title-selected-cases\" class=\"govuk-heading-m\">Selected cases</h3>\n <div *ngIf=\"shareCases && shareCases.length > 0\" class=\"govuk-accordion\" data-module=\"govuk-accordion\" id=\"accordion-with-summary-sections\">\n <xuilib-selected-case-list\n [shareCases$]=\"shareCases$\"\n [removeUserFromCaseToggleOn]=\"removeUserFromCaseToggleOn\"\n (unselect)=\"onUnselect($event)\"\n (synchronizeStore)=\"onSynchronizeStore($event)\"\n >\n </xuilib-selected-case-list>\n </div>\n\n <div id=\"noCaseDisplay\" *ngIf=\"shareCases && shareCases.length === 0\" class=\"govuk-hint\">\n No cases to display.\n </div>\n\n</div>\n\n<div id=\"share-case-nav\">\n <button class=\"govuk-button\" [disabled]=\"isDisabledContinue()\" title=\"Continue\" [routerLink]=\"confirmLink\">Continue</button>\n</div>\n",
2187
- styles: [""]
2188
- }] }
2189
- ];
2190
- /** @nocollapse */
2191
- ShareCaseComponent.ctorParameters = function () { return [
2192
- { type: CaseSharingStateService }
2193
- ]; };
2194
- ShareCaseComponent.propDecorators = {
2195
- removeUserFromCaseToggleOn: [{ type: Input }],
2196
- shareCases$: [{ type: Input }],
2197
- users: [{ type: Input }],
2198
- confirmLink: [{ type: Input }],
2199
- unselect: [{ type: Output }],
2200
- synchronizeStore: [{ type: Output }],
2201
- userSelect: [{ type: ViewChild, args: [UserSelectComponent,] }]
2202
- };
2203
- return ShareCaseComponent;
2204
- }());
2205
-
2206
- /**
2207
- * @fileoverview added by tsickle
2208
- * Generated from: lib/components/tab/tab.component.ts
2209
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2210
- */
2211
- var TabComponent = /** @class */ (function () {
2212
- function TabComponent() {
2213
- this.tabChange = new EventEmitter();
2214
- }
2215
- /**
2216
- * @param {?} event
2217
- * @return {?}
2218
- */
2219
- TabComponent.prototype.tabChanged = /**
2220
- * @param {?} event
2221
- * @return {?}
2222
- */
2223
- function (event) {
2224
- this.tabChange.emit(event);
2225
- };
2226
- TabComponent.decorators = [
2227
- { type: Component, args: [{
2228
- selector: 'xuilib-tab',
2229
- template: "<mat-tab-group animationDuration=\"0ms\" (selectedTabChange)=\"tabChanged($event)\">\n <mat-tab *ngFor=\"let tabItem of tabItems; let last = last;\" [label]=\"tabItem.text\">\n </mat-tab>\n</mat-tab-group>"
2230
- }] }
2231
- ];
2232
- /** @nocollapse */
2233
- TabComponent.ctorParameters = function () { return []; };
2234
- TabComponent.propDecorators = {
2235
- tabItems: [{ type: Input }],
2236
- tabChange: [{ type: Output }]
2237
- };
2238
- return TabComponent;
2239
- }());
2240
-
2241
- /**
2242
- * @fileoverview added by tsickle
2243
- * Generated from: lib/components/tc-confirm/tc-confirm.component.ts
2244
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2245
- */
2246
- var TcConfirmComponent = /** @class */ (function () {
2247
- function TcConfirmComponent() {
2248
- this.confirm = new EventEmitter();
2249
- }
2250
- /**
2251
- * @return {?}
2252
- */
2253
- TcConfirmComponent.prototype.onClick = /**
2254
- * @return {?}
2255
- */
2256
- function () {
2257
- this.confirm.emit();
2258
- };
2259
- TcConfirmComponent.decorators = [
2260
- { type: Component, args: [{
2261
- selector: 'xuilib-tc-confirm',
2262
- template: "<div class=\"govuk-width-container\">\n <main role=\"main\" class=\"govuk-main-wrapper\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <div class=\"column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Using this service</h1>\n <h2 class=\"govuk-heading-m\">Terms and conditions</h2>\n <p>We've recently updated the\n <a\n routerLink=\"/terms-and-conditions\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >terms and conditions</a\n >.\n </p>\n <p>You must review and accept them.\n </p>\n <p>\n <button class=\"govuk-button\" (click)=\"onClick()\">\n {{ buttonText }}\n </button>\n </p>\n </div>\n </div>\n </div>\n <div class=\"govuk-grid-column-one-third\"></div>\n </main>\n</div>\n",
2263
- styles: [""]
2264
- }] }
2265
- ];
2266
- /** @nocollapse */
2267
- TcConfirmComponent.ctorParameters = function () { return []; };
2268
- TcConfirmComponent.propDecorators = {
2269
- buttonText: [{ type: Input }],
2270
- confirm: [{ type: Output }]
2271
- };
2272
- return TcConfirmComponent;
2273
- }());
2274
-
2275
- /**
2276
- * @fileoverview added by tsickle
2277
- * Generated from: lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.ts
2278
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2279
- */
2280
- var TcDisplayHtmlComponent = /** @class */ (function () {
2281
- function TcDisplayHtmlComponent() {
2282
- }
2283
- TcDisplayHtmlComponent.decorators = [
2284
- { type: Component, args: [{
2285
- selector: 'xuilib-tc-display-html',
2286
- template: "<ng-content></ng-content>",
2287
- styles: [":host{display:block;width:100%}"]
2288
- }] }
2289
- ];
2290
- /** @nocollapse */
2291
- TcDisplayHtmlComponent.ctorParameters = function () { return []; };
2292
- return TcDisplayHtmlComponent;
2293
- }());
2294
-
2295
- /**
2296
- * @fileoverview added by tsickle
2297
- * Generated from: lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.ts
2298
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2299
- */
2300
- var TcDisplayPlainComponent = /** @class */ (function () {
2301
- function TcDisplayPlainComponent() {
2302
- }
2303
- TcDisplayPlainComponent.decorators = [
2304
- { type: Component, args: [{
2305
- selector: 'xuilib-tc-display-plain',
2306
- template: "<ng-content></ng-content>",
2307
- styles: [":host{display:block;width:100%}"]
2308
- }] }
2309
- ];
2310
- /** @nocollapse */
2311
- TcDisplayPlainComponent.ctorParameters = function () { return []; };
2312
- return TcDisplayPlainComponent;
2313
- }());
2314
-
2315
- /**
2316
- * @fileoverview added by tsickle
2317
- * Generated from: lib/components/terms-and-conditions/terms-and-conditions.component.ts
2318
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2319
- */
2320
- var TermsAndConditionsComponent = /** @class */ (function () {
2321
- function TermsAndConditionsComponent() {
2322
- }
2323
- TermsAndConditionsComponent.decorators = [
2324
- { type: Component, args: [{
2325
- selector: 'xuilib-terms-and-conditions',
2326
- template: "<ng-container [ngSwitch]=\"document.mimeType\">\n <xuilib-tc-display-html *ngSwitchCase=\"'text/html'\">\n <div [innerHTML]=\"document.content\"></div>\n </xuilib-tc-display-html>\n <xuilib-tc-display-plain *ngSwitchCase=\"'text/plain'\">\n {{ document.content }}\n </xuilib-tc-display-plain>\n <div *ngSwitchDefault>\n An error occured. Please try again.\n </div>\n</ng-container>\n",
2327
- styles: [":host{display:block;width:100%}"]
2328
- }] }
2329
- ];
2330
- /** @nocollapse */
2331
- TermsAndConditionsComponent.ctorParameters = function () { return []; };
2332
- TermsAndConditionsComponent.propDecorators = {
2333
- document: [{ type: Input }]
2334
- };
2335
- return TermsAndConditionsComponent;
2336
- }());
2337
-
2338
- /**
2339
- * @fileoverview added by tsickle
2340
- * Generated from: lib/components/user-details/user-details.component.ts
2341
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2342
- */
2343
- var UserDetailsComponent = /** @class */ (function () {
2344
- function UserDetailsComponent() {
2345
- this.showEditLink = false;
2346
- this.showHelpLink = false;
2347
- this.suspendUserEvent = new EventEmitter();
2348
- this.showSuspendUserButton = false;
2349
- this.reinvite = new EventEmitter();
2350
- }
2351
- /**
2352
- * @param {?} user
2353
- * @return {?}
2354
- */
2355
- UserDetailsComponent.prototype.reinviteClick = /**
2356
- * @param {?} user
2357
- * @return {?}
2358
- */
2359
- function (user) {
2360
- this.reinvite.emit(user);
2361
- };
2362
- /**
2363
- * @param {?} suspendUser
2364
- * @return {?}
2365
- */
2366
- UserDetailsComponent.prototype.suspendUser = /**
2367
- * @param {?} suspendUser
2368
- * @return {?}
2369
- */
2370
- function (suspendUser) {
2371
- this.suspendUserEvent.emit(suspendUser);
2372
- };
2373
- /**
2374
- * @param {?} theRole
2375
- * @return {?}
2376
- */
2377
- UserDetailsComponent.prototype.userHasRole = /**
2378
- * @param {?} theRole
2379
- * @return {?}
2380
- */
2381
- function (theRole) {
2382
- if (this.user && this.user.roles) {
2383
- return this.user.roles.includes(theRole);
2384
- }
2385
- return false;
2386
- };
2387
- UserDetailsComponent.decorators = [
2388
- { type: Component, args: [{
2389
- selector: 'xuilib-user-details',
2390
- template: "<div class=\"govuk-warning-text\" *ngIf=\"warningTitle && warningTitle !== ''\">\n<span class=\"govuk-warning-text__icon\">!</span>\n<strong class=\"govuk-warning-text__text\">\n {{ warningTitle }}\n</strong>\n</div>\n<table class=\"govuk-table\" *ngIf=\"user\">\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"row\">Name</th>\n <td class=\"govuk-table__cell\">{{user.fullName}}</td>\n <td class=\"govuk-table__cell\"></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"row\">Email address</th>\n <td class=\"govuk-table__cell\">{{user.email}}</td>\n <td class=\"govuk-table__cell\"></td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!user.resendInvite\">\n <th class=\"govuk-table__header\" scope=\"row\">Permissions</th>\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"user.manageOrganisations === 'Yes'\">Manage organisations</div>\n <div *ngIf=\"user.manageUsers === 'Yes'\">Manage users</div>\n <div *ngIf=\"user.manageCases === 'Yes'\">Manage cases</div>\n <div *ngIf=\"userHasRole('pui-caa')\">Case access administrator</div>\n <div *ngIf=\"userHasRole('pui-finance-manager')\">Manage fee accounts</div>\n </td>\n <td class=\"govuk-table__cell\"><a *ngIf=\"editPermissionRouterLink && showEditLink\" [routerLink]=\"editPermissionRouterLink\">Change <span class=\"govuk-visually-hidden\">roles</span></a></td>\n </tr>\n </tbody>\n</table>\n<button *ngIf=\"showSuspendUserButton\" class=\"govuk-button govuk-button--warning\" (click)=\"suspendUser(user)\">\n Suspend account\n</button>\n<div *ngIf=\"user && user.resendInvite\">\n <div class=\"govuk-inset-text\">\n <p>This user has already been invited but has not activated their account.</p>\n <p>If you resend an invitation, they'll receive an email from HM Courts and Tribunals to finish setting up their account.</p>\n <p>You can't invite the same user more than once an hour.</p>\n </div>\n <a role=\"button\" draggable=\"false\" class=\"govuk-button\" (click)=\"reinviteClick(user)\" id=\"resend-invite-button\">\n Resend invitation\n </a>\n</div>\n<p class=\"govuk-body\" *ngIf=\"showHelpLink && suspendHelpLink\"><a [routerLink]=\"suspendHelpLink\" target=\"_blank\">Get help</a> to reactivate this account.</p>\n",
2391
- styles: [":host{display:block}"]
2392
- }] }
2393
- ];
2394
- UserDetailsComponent.propDecorators = {
2395
- user: [{ type: Input }],
2396
- editPermissionRouterLink: [{ type: Input }],
2397
- warningTitle: [{ type: Input }],
2398
- showEditLink: [{ type: Input }],
2399
- showHelpLink: [{ type: Input }],
2400
- suspendHelpLink: [{ type: Input }],
2401
- suspendUserEvent: [{ type: Output }],
2402
- showSuspendUserButton: [{ type: Input }],
2403
- reinvite: [{ type: Output }]
2404
- };
2405
- return UserDetailsComponent;
2406
- }());
2407
-
2408
- /**
2409
- * @fileoverview added by tsickle
2410
- * Generated from: lib/components/user-list/user-list.component.ts
2411
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2412
- */
2413
- var UserListComponent = /** @class */ (function () {
2414
- function UserListComponent() {
2415
- this.users = [];
2416
- this.userClick = new EventEmitter();
2417
- }
2418
- /**
2419
- * @param {?} user
2420
- * @return {?}
2421
- */
2422
- UserListComponent.prototype.onUserClick = /**
2423
- * @param {?} user
2424
- * @return {?}
2425
- */
2426
- function (user) {
2427
- this.userClick.emit(user);
2428
- };
2429
- UserListComponent.decorators = [
2430
- { type: Component, args: [{
2431
- selector: 'xuilib-user-list',
2432
- template: "<table class=\"govuk-table\">\n <thead clas=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\">Name</th>\n <th class=\"govuk-table__header\" scope=\"col\">Email</th>\n <th class=\"govuk-table__header\" scope=\"col\">Status</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" data-selector=\"table-row\" *ngFor=\"let u of users\">\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">\n <a class=\"govuk-link\" [attr.title]=\"u.routerLinkTitle\" [routerLink]=\"u.routerLink\" (click)=\"onUserClick(u)\">{{ u.fullName }}</a>\n </td>\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">{{ u.email }}</td>\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">{{ u.status }}</td>\n </tr>\n </tbody>\n</table>",
2433
- styles: [":host{display:block}"]
2434
- }] }
2435
- ];
2436
- UserListComponent.propDecorators = {
2437
- users: [{ type: Input }],
2438
- userClick: [{ type: Output }]
2439
- };
2440
- return UserListComponent;
2441
- }());
2442
-
2443
- /**
2444
- * @fileoverview added by tsickle
2445
- * Generated from: lib/directives/feature-toggle/feature-toggle.directive.ts
2446
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2447
- */
2448
- var FeatureToggleDirective = /** @class */ (function () {
2449
- function FeatureToggleDirective(service, viewContainer, templateRef) {
2450
- this.service = service;
2451
- this.viewContainer = viewContainer;
2452
- this.templateRef = templateRef;
2453
- }
2454
- Object.defineProperty(FeatureToggleDirective.prototype, "xuilibFeatureToggle", {
2455
- set: /**
2456
- * @param {?} feature
2457
- * @return {?}
2458
- */
2459
- function (feature) {
2460
- this.feature = feature;
2461
- this.updateSubscription();
2462
- },
2463
- enumerable: true,
2464
- configurable: true
2465
- });
2466
- /**
2467
- * @return {?}
2468
- */
2469
- FeatureToggleDirective.prototype.ngOnDestroy = /**
2470
- * @return {?}
2471
- */
2472
- function () {
2473
- if (this.subscription) {
2474
- this.subscription.unsubscribe();
2475
- }
2476
- };
2477
- /**
2478
- * @private
2479
- * @return {?}
2480
- */
2481
- FeatureToggleDirective.prototype.updateSubscription = /**
2482
- * @private
2483
- * @return {?}
2484
- */
2485
- function () {
2486
- var _this = this;
2487
- this.subscription = this.service.isEnabled(this.feature).subscribe((/**
2488
- * @param {?} enabled
2489
- * @return {?}
2490
- */
2491
- function (enabled) {
2492
- if (enabled) {
2493
- _this.viewContainer.createEmbeddedView(_this.templateRef);
2494
- }
2495
- else {
2496
- _this.viewContainer.clear();
2497
- }
2498
- }));
2499
- };
2500
- FeatureToggleDirective.decorators = [
2501
- { type: Directive, args: [{
2502
- selector: '[xuilibFeatureToggle]'
2503
- },] }
2504
- ];
2505
- /** @nocollapse */
2506
- FeatureToggleDirective.ctorParameters = function () { return [
2507
- { type: FeatureToggleService },
2508
- { type: ViewContainerRef },
2509
- { type: TemplateRef }
2510
- ]; };
2511
- FeatureToggleDirective.propDecorators = {
2512
- xuilibFeatureToggle: [{ type: Input }]
2513
- };
2514
- return FeatureToggleDirective;
2515
- }());
2516
-
2517
- /**
2518
- * @fileoverview added by tsickle
2519
- * Generated from: lib/directives/let/let.directive.ts
2520
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2521
- */
2522
- /**
2523
- * @template T
2524
- */
2525
- var /**
2526
- * @template T
2527
- */
2528
- LetContext = /** @class */ (function () {
2529
- function LetContext() {
2530
- this.$implicit = null;
2531
- this.xuilibLet = null;
2532
- }
2533
- return LetContext;
2534
- }());
2535
- /**
2536
- * @template T
2537
- */
2538
- var LetDirective = /** @class */ (function () {
2539
- function LetDirective(viewContainer, templateRef) {
2540
- this.viewContainer = viewContainer;
2541
- this.context = new LetContext();
2542
- this.viewContainer.createEmbeddedView(templateRef, this.context);
2543
- }
2544
- Object.defineProperty(LetDirective.prototype, "xuilibLet", {
2545
- set: /**
2546
- * @param {?} condition
2547
- * @return {?}
2548
- */
2549
- function (condition) {
2550
- this.context.$implicit = this.context.xuilibLet = condition;
2551
- },
2552
- enumerable: true,
2553
- configurable: true
2554
- });
2555
- LetDirective.decorators = [
2556
- { type: Directive, args: [{
2557
- selector: '[xuilibLet]'
2558
- },] }
2559
- ];
2560
- /** @nocollapse */
2561
- LetDirective.ctorParameters = function () { return [
2562
- { type: ViewContainerRef },
2563
- { type: TemplateRef }
2564
- ]; };
2565
- LetDirective.propDecorators = {
2566
- xuilibLet: [{ type: Input }]
2567
- };
2568
- return LetDirective;
2569
- }());
2570
-
2571
- /**
2572
- * @fileoverview added by tsickle
2573
- * Generated from: lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.ts
2574
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2575
- */
2576
- /*
2577
- * Gov Uk Checkbox Dumb Component responsible for
2578
- * displaying checkbox input and hint
2579
- *
2580
- * */
2581
- var GovUkCheckboxComponent = /** @class */ (function () {
2582
- function GovUkCheckboxComponent() {
2583
- this.isChecked = false;
2584
- }
2585
- /**
2586
- * @return {?}
2587
- */
2588
- GovUkCheckboxComponent.prototype.ngOnInit = /**
2589
- * @return {?}
2590
- */
2591
- function () {
2592
- /** @type {?} */
2593
- var id = this.config.focusOn ? this.config.focusOn : this.config.value;
2594
- this.config.id = id;
2595
- this.config.classes = this.config.classes ?
2596
- this.config.classes.concat(' govuk-checkboxes__label') : 'govuk-checkboxes__label';
2597
- };
2598
- GovUkCheckboxComponent.decorators = [
2599
- { type: Component, args: [{
2600
- selector: 'xuilib-gov-checkbox',
2601
- template: "<div class=\"govuk-checkboxes__item\" [formGroup]=\"group\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\" [attr.aria-describedby]=\"config.hint ? config.value+'-item-hint' : null\"\n [id]=\"config.id\" [name]=\"config.name\" [formControlName]=\"config.value\" [checked]=\"isChecked\">\n <xuilib-gov-label appRemoveHost [config]=\"config\"></xuilib-gov-label>\n <span [id]=\"config.value+'-item-hint'\" class=\"govuk-hint govuk-checkboxes__hint\">\n {{config.hint}}\n </span>\n</div>"
2602
- }] }
2603
- ];
2604
- /** @nocollapse */
2605
- GovUkCheckboxComponent.ctorParameters = function () { return []; };
2606
- GovUkCheckboxComponent.propDecorators = {
2607
- group: [{ type: Input }],
2608
- config: [{ type: Input }],
2609
- isChecked: [{ type: Input }]
2610
- };
2611
- return GovUkCheckboxComponent;
2612
- }());
2613
-
2614
- /**
2615
- * @fileoverview added by tsickle
2616
- * Generated from: lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.ts
2617
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2618
- */
2619
- /*
2620
- * CheckBox component - state less
2621
- * Responsible for displaying a list of gov-uk-checkboxes
2622
- * @param: options - object with data for wrapper (fieldset) and
2623
- * array of items for gov-uk-checkboxes
2624
- * @param: errors - array of error stings
2625
- * */
2626
- var GovUkCheckboxesComponent = /** @class */ (function () {
2627
- function GovUkCheckboxesComponent() {
2628
- }
2629
- GovUkCheckboxesComponent.decorators = [
2630
- { type: Component, args: [{
2631
- selector: 'xuilib-gov-uk-checkboxes',
2632
- template: "<xuilib-gov-uk-form-group-wrapper\n[error]=\"errors\"\n[config]=\"options.config\"\n[group]=\"options.key\">\n<div class=\"govuk-checkboxes\">\n <xuilib-gov-checkbox *ngFor=\"let item of options.items\"\n [group]=\"item.group\"\n [config]=\"item.config\">\n </xuilib-gov-checkbox>\n</div>\n</xuilib-gov-uk-form-group-wrapper>"
2633
- }] }
2634
- ];
2635
- GovUkCheckboxesComponent.propDecorators = {
2636
- options: [{ type: Input }],
2637
- errors: [{ type: Input }]
2638
- };
2639
- return GovUkCheckboxesComponent;
2640
- }());
2641
-
2642
- /**
2643
- * @fileoverview added by tsickle
2644
- * Generated from: lib/gov-ui/components/gov-uk-date/gov-uk-date.component.ts
2645
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2646
- */
2647
- /*
2648
- * Gov UK Date Component
2649
- * Responsible for displaying 3 input fields:
2650
- * day / month / year
2651
- * displaying errorMessage messages
2652
- * */
2653
- var GovUkDateComponent = /** @class */ (function () {
2654
- function GovUkDateComponent() {
2655
- }
2656
- /**
2657
- * @return {?}
2658
- */
2659
- GovUkDateComponent.prototype.ngOnInit = /**
2660
- * @return {?}
2661
- */
2662
- function () {
2663
- };
2664
- GovUkDateComponent.decorators = [
2665
- { type: Component, args: [{
2666
- selector: 'xuilib-gov-uk-date',
2667
- template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\" [formGroup]=\"formGroup\">\n <xuilib-gov-uk-fieldset\n [config]=\"{legend: 'Date component', classes: 'govuk-label--m', id: config.id, hint: ' For example, 12 11 2007', isPageHeading: config.isPageHeading}\"\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\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', name: config.id, 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\"\n [name]=\"config.id+'-day'\" type=\"number\" value=\"\" pattern=\"[0-9]*\"\n [formControlName]=\"'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', 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=\"number\" value=\"\" pattern=\"[0-9]*\"\n [formControlName]=\"'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', 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=\"number\" value=\"\" pattern=\"[0-9]*\"\n [formControlName]=\"'year'\">\n </div>\n </div>\n </div>\n </xuilib-gov-uk-fieldset>\n</div>"
2668
- }] }
2669
- ];
2670
- /** @nocollapse */
2671
- GovUkDateComponent.ctorParameters = function () { return []; };
2672
- GovUkDateComponent.propDecorators = {
2673
- config: [{ type: Input }],
2674
- errorMessage: [{ type: Input }],
2675
- formGroup: [{ type: Input }]
2676
- };
2677
- return GovUkDateComponent;
2678
- }());
2679
-
2680
- /**
2681
- * @fileoverview added by tsickle
2682
- * Generated from: lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.ts
2683
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2684
- */
2685
- /*
2686
- * Gov UK Error Message
2687
- * Responsible for displaying in-line error messages
2688
- * @prop config - obj with properties
2689
- * @prop errorMessage - all error bject with messages property that is arry of strings.
2690
- * */
2691
- var GovUkErrorMessageComponent = /** @class */ (function () {
2692
- function GovUkErrorMessageComponent() {
2693
- }
2694
- GovUkErrorMessageComponent.decorators = [
2695
- { type: Component, args: [{
2696
- selector: ' xuilib-gov-uk-error-message',
2697
- template: "<span class=\"govuk-error-message\" [id]=\"config.id + '-error'\" *ngFor=\"let message of errorMessage?.messages\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{message}}\n</span>"
2698
- }] }
2699
- ];
2700
- /** @nocollapse */
2701
- GovUkErrorMessageComponent.ctorParameters = function () { return []; };
2702
- GovUkErrorMessageComponent.propDecorators = {
2703
- config: [{ type: Input }],
2704
- errorMessage: [{ type: Input }]
2705
- };
2706
- return GovUkErrorMessageComponent;
2707
- }());
2708
-
2709
- /**
2710
- * @fileoverview added by tsickle
2711
- * Generated from: lib/gov-ui/util/helpers/html-templates.helper.ts
2712
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2713
- */
2714
- /*
2715
- * Helper Class
2716
- * Used for dynamic templates manipulation
2717
- * */
2718
- var /*
2719
- * Helper Class
2720
- * Used for dynamic templates manipulation
2721
- * */
2722
- HtmlTemplatesHelper = /** @class */ (function () {
2723
- function HtmlTemplatesHelper() {
2724
- }
2725
- /*
2726
- * Sets described by string depending if
2727
- * there is an error, error and hit or nothing
2728
- * */
2729
- /*
2730
- * Sets described by string depending if
2731
- * there is an error, error and hit or nothing
2732
- * */
2733
- /**
2734
- * @param {?} errorMessage
2735
- * @param {?} config
2736
- * @return {?}
2737
- */
2738
- HtmlTemplatesHelper.setDescribedBy = /*
2739
- * Sets described by string depending if
2740
- * there is an error, error and hit or nothing
2741
- * */
2742
- /**
2743
- * @param {?} errorMessage
2744
- * @param {?} config
2745
- * @return {?}
2746
- */
2747
- function (errorMessage, config) {
2748
- if (!errorMessage) {
2749
- return config.hint ? config.id + "-hint" : null;
2750
- }
2751
- else if (errorMessage && errorMessage.isInvalid) {
2752
- return config.hint ? config.id + "-hint " + config.id + "-error" : config.id + "-error";
2753
- }
2754
- else {
2755
- return config.hint ? config.id + "-hint" : null;
2756
- }
2757
- };
2758
- return HtmlTemplatesHelper;
2759
- }());
2760
-
2761
- /**
2762
- * @fileoverview added by tsickle
2763
- * Generated from: lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.ts
2764
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2765
- */
2766
- /*
2767
- * Gov Uk Fieldset Component
2768
- * Used to wrap group fieldset elements
2769
- * it can conditionally display h1 tag
2770
- * @param config
2771
- * @param isHeading
2772
- * @param errorMessage - used for aria tag
2773
- * */
2774
- var GovUkFieldsetComponent = /** @class */ (function () {
2775
- function GovUkFieldsetComponent() {
2776
- }
2777
- /**
2778
- * @return {?}
2779
- */
2780
- GovUkFieldsetComponent.prototype.setDescribedBy = /**
2781
- * @return {?}
2782
- */
2783
- function () {
2784
- return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
2785
- };
2786
- GovUkFieldsetComponent.decorators = [
2787
- { type: Component, args: [{
2788
- selector: 'xuilib-gov-uk-fieldset',
2789
- template: "<fieldset class=\"govuk-fieldset\" [attr.aria-describedby]=\"setDescribedBy()\">\n <legend [class]=\"config.classes + ' govuk-fieldset__legend'\" *ngIf=\"!config.isPageHeading\">\n {{config.legend}}\n </legend>\n\n <legend [class]=\"config.classes + ' govuk-fieldset__legend'\" *ngIf=\"config.isPageHeading\">\n <h1>{{config.legend}}</h1>\n </legend>\n\n <span [id]=\"config.id+'-hint'\" class=\"govuk-hint\" *ngIf=\"config.hint\">\n {{config.hint}}\n </span>\n <ng-content></ng-content>\n</fieldset>"
2790
- }] }
2791
- ];
2792
- /** @nocollapse */
2793
- GovUkFieldsetComponent.ctorParameters = function () { return []; };
2794
- GovUkFieldsetComponent.propDecorators = {
2795
- config: [{ type: Input }],
2796
- errorMessage: [{ type: Input }]
2797
- };
2798
- return GovUkFieldsetComponent;
2799
- }());
2800
-
2801
- /**
2802
- * @fileoverview added by tsickle
2803
- * Generated from: lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.ts
2804
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2805
- */
2806
- /*
2807
- * Gov UK Input component
2808
- * Responsible for displaying input, hint and error messages
2809
- * @prop errorMessages - array of messages
2810
- * @prop focusOn - passing the FormGroup
2811
- * @prop config - adding configuration
2812
- * */
2813
- var GovUkFileUploadComponent = /** @class */ (function () {
2814
- function GovUkFileUploadComponent() {
2815
- // { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
2816
- this.reloadInput = true;
2817
- }
2818
- /**
2819
- * @return {?}
2820
- */
2821
- GovUkFileUploadComponent.prototype.ngOnInit = /**
2822
- * @return {?}
2823
- */
2824
- function () {
2825
- this.config.classes = 'govuk-label--m';
2826
- };
2827
- /**
2828
- * @return {?}
2829
- */
2830
- GovUkFileUploadComponent.prototype.setDescribedBy = /**
2831
- * @return {?}
2832
- */
2833
- function () {
2834
- return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
2835
- };
2836
- GovUkFileUploadComponent.decorators = [
2837
- { type: Component, args: [{
2838
- selector: 'xuilib-gov-uk-file-upload',
2839
- 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}}\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>"
2840
- }] }
2841
- ];
2842
- /** @nocollapse */
2843
- GovUkFileUploadComponent.ctorParameters = function () { return []; };
2844
- GovUkFileUploadComponent.propDecorators = {
2845
- errorMessage: [{ type: Input }],
2846
- group: [{ type: Input }],
2847
- config: [{ type: Input }]
2848
- };
2849
- return GovUkFileUploadComponent;
2850
- }());
2851
-
2852
- /**
2853
- * @fileoverview added by tsickle
2854
- * Generated from: lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.ts
2855
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2856
- */
2857
- /*
2858
- * Gov Uk Form Group Wrapper
2859
- * Used to wrap group form elements in html tags below such as
2860
- * gov-uk-checkboxes and radio buttons
2861
- * and errorMessage messages
2862
- * */
2863
- var GovUkFormGroupWrapperComponent = /** @class */ (function () {
2864
- function GovUkFormGroupWrapperComponent() {
2865
- }
2866
- GovUkFormGroupWrapperComponent.decorators = [
2867
- { type: Component, args: [{
2868
- selector: 'xuilib-gov-uk-form-group-wrapper',
2869
- 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>"
2870
- }] }
2871
- ];
2872
- /** @nocollapse */
2873
- GovUkFormGroupWrapperComponent.ctorParameters = function () { return []; };
2874
- GovUkFormGroupWrapperComponent.propDecorators = {
2875
- error: [{ type: Input }],
2876
- group: [{ type: Input }],
2877
- config: [{ type: Input }]
2878
- };
2879
- return GovUkFormGroupWrapperComponent;
2880
- }());
2881
-
2882
- /**
2883
- * @fileoverview added by tsickle
2884
- * Generated from: lib/gov-ui/components/gov-uk-input/gov-uk-input.component.ts
2885
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2886
- */
2887
- /*
2888
- * Gov UK Input component
2889
- * Responsible for displaying input, hint and error messages
2890
- * @prop errorMessages - array of messages
2891
- * @prop focusOn - passing the FormGroup
2892
- * @prop config - adding configuration
2893
- * */
2894
- var GovUkInputComponent = /** @class */ (function () {
2895
- function GovUkInputComponent() {
2896
- }
2897
- // { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
2898
- // { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
2899
- /**
2900
- * @return {?}
2901
- */
2902
- GovUkInputComponent.prototype.ngOnInit =
2903
- // { label: string, hint: string; name: string; id: string, type: string; isPageHeading: boolean, classes: string };
2904
- /**
2905
- * @return {?}
2906
- */
2907
- function () {
2908
- this.config.classes = 'govuk-label--m';
2909
- };
2910
- /**
2911
- * @return {?}
2912
- */
2913
- GovUkInputComponent.prototype.setDescribedBy = /**
2914
- * @return {?}
2915
- */
2916
- function () {
2917
- return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
2918
- };
2919
- GovUkInputComponent.decorators = [
2920
- { type: Component, args: [{
2921
- selector: 'xuilib-gov-uk-input',
2922
- 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}}\n</span>\n\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<input class=\"govuk-input\" [id]=\"config.id\" [name]=\"config.name\" [type]=\"config.type\"\n [attr.aria-invalid]=\"errorMessage?.isInvalid\"\n [formControlName]=\"config.name\" [attr.aria-describedby]='setDescribedBy()'>\n</div>",
2923
- styles: [".gov-uk-input input:disabled{background:#b1b4b6}"]
2924
- }] }
2925
- ];
2926
- /** @nocollapse */
2927
- GovUkInputComponent.ctorParameters = function () { return []; };
2928
- GovUkInputComponent.propDecorators = {
2929
- errorMessage: [{ type: Input }],
2930
- group: [{ type: Input }],
2931
- config: [{ type: Input }]
2932
- };
2933
- return GovUkInputComponent;
2934
- }());
2935
-
2936
- /**
2937
- * @fileoverview added by tsickle
2938
- * Generated from: lib/gov-ui/components/gov-uk-label/gov-uk-label.component.ts
2939
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2940
- */
2941
- /*
2942
- * Gov UK Label component
2943
- * Responsible for displaying label tag
2944
- * @prop isPageHading - boolean to display h1
2945
- * @prop config - obj with properties
2946
- * */
2947
- var GovUkLabelComponent = /** @class */ (function () {
2948
- function GovUkLabelComponent() {
2949
- }
2950
- GovUkLabelComponent.decorators = [
2951
- { type: Component, args: [{
2952
- selector: 'xuilib-gov-label',
2953
- template: "<h1 *ngIf=\"config.isPageHeading else noHeading\">\n <label *ngIf=\"config.label\" [class]=\"config.classes + ' govuk-label'\"\n [for]=\"config.id\" [innerHTML]=\"config.label\">\n </label>\n</h1>\n<ng-template #noHeading>\n <label *ngIf=\"config.label\" [class]=\"config.classes + ' govuk-label'\"\n [for]=\"config.id\" [innerHTML]=\"config.label\">\n </label>\n</ng-template>"
2954
- }] }
2955
- ];
2956
- /** @nocollapse */
2957
- GovUkLabelComponent.ctorParameters = function () { return []; };
2958
- GovUkLabelComponent.propDecorators = {
2959
- config: [{ type: Input }]
2960
- };
2961
- return GovUkLabelComponent;
2962
- }());
2963
-
2964
- /**
2965
- * @fileoverview added by tsickle
2966
- * Generated from: lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.ts
2967
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2968
- */
2969
- /*
2970
- * Gov Uk Radio state-less Component responsible for
2971
- * displaying radios input and hint
2972
- *
2973
- * */
2974
- var GovUkRadioComponent = /** @class */ (function () {
2975
- function GovUkRadioComponent() {
2976
- }
2977
- /*
2978
- * ngOnInIt
2979
- * needed to manage the focus id if passed on in config
2980
- * si it can focus on element when user clicks on error message in the header.
2981
- **/
2982
- /*
2983
- * ngOnInIt
2984
- * needed to manage the focus id if passed on in config
2985
- * si it can focus on element when user clicks on error message in the header.
2986
- **/
2987
- /**
2988
- * @return {?}
2989
- */
2990
- GovUkRadioComponent.prototype.ngOnInit = /*
2991
- * ngOnInIt
2992
- * needed to manage the focus id if passed on in config
2993
- * si it can focus on element when user clicks on error message in the header.
2994
- **/
2995
- /**
2996
- * @return {?}
2997
- */
2998
- function () {
2999
- /** @type {?} */
3000
- var id = this.config.focusOn ? this.config.focusOn : this.config.value;
3001
- this.config.id = id;
3002
- this.config.classes = this.config.classes ?
3003
- this.config.classes.concat(' govuk-radios__label') : 'govuk-radios__label';
3004
- };
3005
- GovUkRadioComponent.decorators = [
3006
- { type: Component, args: [{
3007
- selector: 'xuilib-gov-radio',
3008
- template: "<div class=\"govuk-radios__item\" [formGroup]=\"group\">\n <input [className]=\"'govuk-radios__input ' + config.classes\"\n [id]=\"config.id\"\n [value]=\"config.value\" type=\"radio\"\n [attr.data-aria-controls]=\"config.id\"\n [name]=\"config.name\"\n [formControl]=\"group.controls[config.name]\">\n <xuilib-gov-label appRemoveHost [config]=\"config\"></xuilib-gov-label>\n</div>"
3009
- }] }
3010
- ];
3011
- /** @nocollapse */
3012
- GovUkRadioComponent.ctorParameters = function () { return []; };
3013
- GovUkRadioComponent.propDecorators = {
3014
- group: [{ type: Input }],
3015
- config: [{ type: Input }]
3016
- };
3017
- return GovUkRadioComponent;
3018
- }());
3019
-
3020
- /**
3021
- * @fileoverview added by tsickle
3022
- * Generated from: lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.ts
3023
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3024
- */
3025
- /*
3026
- * Radios component - state less
3027
- * Responsible for displaying a list of gov-uk-radio components
3028
- * @param: options - object with data for wrapper (fieldset) and
3029
- * array of items for gov-uk-checkboxes
3030
- * @param: errors - array of error stings
3031
- * */
3032
- var GovUkRadiosComponent = /** @class */ (function () {
3033
- function GovUkRadiosComponent() {
3034
- }
3035
- GovUkRadiosComponent.decorators = [
3036
- { type: Component, args: [{
3037
- selector: 'xuilib-gov-uk-radios',
3038
- template: "<xuilib-gov-uk-form-group-wrapper\n[error]=\"errors\"\n[config]=\"options.config\"\n[group]=\"options.key\">\n<div class=\"govuk-radios\">\n <xuilib-gov-radio\n appRemoveHost\n *ngFor=\"let item of options.items\"\n [group]=\"options.group\"\n [config]=\"item.config\">\n </xuilib-gov-radio>\n</div>\n</xuilib-gov-uk-form-group-wrapper>"
3039
- }] }
3040
- ];
3041
- GovUkRadiosComponent.propDecorators = {
3042
- options: [{ type: Input }],
3043
- errors: [{ type: Input }]
3044
- };
3045
- return GovUkRadiosComponent;
3046
- }());
3047
-
3048
- /**
3049
- * @fileoverview added by tsickle
3050
- * Generated from: lib/gov-ui/components/gov-uk-select/gov-uk-select.component.ts
3051
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3052
- */
3053
- /*
3054
- * Gov Uk Select Dumb Component responsible for
3055
- * dropdown input.
3056
- * */
3057
- var GovUkSelectComponent = /** @class */ (function () {
3058
- function GovUkSelectComponent() {
3059
- }
3060
- /**
3061
- * @return {?}
3062
- */
3063
- GovUkSelectComponent.prototype.setDescribedBy = /**
3064
- * @return {?}
3065
- */
3066
- function () {
3067
- return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
3068
- };
3069
- GovUkSelectComponent.decorators = [
3070
- { type: Component, args: [{
3071
- selector: 'xuilib-gov-select',
3072
- template: "<div class=\"govuk-form-group\" [formGroup]=\"group\"\n[ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\">\n<xuilib-gov-label [config]=\"config\"></xuilib-gov-label>\n<span *ngIf=\"config.hint\" [id]=\"config.id +'-hint'\" class=\"govuk-hint\">\n {{config.hint}}\n</span>\n<xuilib-gov-uk-error-message [config]=\"config\" [errorMessage]=\"errorMessage\"></xuilib-gov-uk-error-message>\n\n<select class=\"govuk-select\" [id]=\"config.id\" [name]=\"config.id\" [formControlName]=\"config.id\" [attr.aria-describedby]='setDescribedBy()'>\n<option value=\"{{item.value}}\" *ngFor=\"let item of items\">{{item.label}}</option>\n</select>\n</div>"
3073
- }] }
3074
- ];
3075
- /** @nocollapse */
3076
- GovUkSelectComponent.ctorParameters = function () { return []; };
3077
- GovUkSelectComponent.propDecorators = {
3078
- errorMessage: [{ type: Input }],
3079
- group: [{ type: Input }],
3080
- config: [{ type: Input }],
3081
- items: [{ type: Input }]
3082
- };
3083
- return GovUkSelectComponent;
3084
- }());
3085
-
3086
- /**
3087
- * @fileoverview added by tsickle
3088
- * Generated from: lib/gov-ui/components/gov-uk-table/gov-uk-table.component.ts
3089
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3090
- */
3091
- var GovukTableComponent = /** @class */ (function () {
3092
- function GovukTableComponent() {
3093
- this.classes = '';
3094
- this.caption = 'Dates and amounts';
3095
- this.firstCellIsHeader = true;
3096
- this.columnConfig = [
3097
- { header: 'Date', key: 'date', type: 'text' },
3098
- { header: 'Amount', key: 'amount' }
3099
- ];
3100
- }
3101
- /**
3102
- * @param {?} date
3103
- * @return {?}
3104
- */
3105
- GovukTableComponent.prototype.formatDate = /**
3106
- * @param {?} date
3107
- * @return {?}
3108
- */
3109
- function (date) {
3110
- return formatDate(date, 'dd/MM/yyyy', 'en-UK');
3111
- };
3112
- GovukTableComponent.decorators = [
3113
- { type: Component, args: [{
3114
- selector: 'xuilib-gov-uk-table',
3115
- template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption}}</caption>\n <thead class=\"govuk-table__head\" >\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of columnConfig\">{{h.header}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\" *ngFor=\"let r of rows\">\n <ng-container *ngFor=\"let col of columnConfig; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key]}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key]}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\">\n <ng-container *ngIf=\"col.type === 'date'\">{{formatDate(r[col.key])}}</ng-container>\n <ng-container *ngIf=\"!col.type || col.type === 'text' || !r.routerLink\">{{r[col.key]}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && r.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"r.routerLink\">{{r[col.key]}}</a>\n </ng-container>\n </td>\n </ng-container>\n </tr>\n </tbody>\n</table>\n",
3116
- styles: [""]
3117
- }] }
3118
- ];
3119
- /** @nocollapse */
3120
- GovukTableComponent.ctorParameters = function () { return []; };
3121
- GovukTableComponent.propDecorators = {
3122
- classes: [{ type: Input }],
3123
- caption: [{ type: Input }],
3124
- firstCellIsHeader: [{ type: Input }],
3125
- rows: [{ type: Input }],
3126
- columnConfig: [{ type: Input }]
3127
- };
3128
- return GovukTableComponent;
3129
- }());
3130
- var GovukTableColumnConfig = /** @class */ (function () {
3131
- function GovukTableColumnConfig() {
3132
- this.header = '';
3133
- this.key = '';
3134
- this.type = 'text';
3135
- }
3136
- return GovukTableColumnConfig;
3137
- }());
3138
-
3139
- /**
3140
- * @fileoverview added by tsickle
3141
- * Generated from: lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.ts
3142
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3143
- */
3144
- /*
3145
- * CheckBox component - state less
3146
- * Responsible for displaying a list of gov-uk-checkboxes
3147
- * @param: options - object with data for wrapper (fieldset) and
3148
- * array of items for gov-uk-checkboxes
3149
- * @param: errors - array of errorMessage
3150
- * */
3151
- var GovUkTextareaComponent = /** @class */ (function () {
3152
- function GovUkTextareaComponent() {
3153
- }
3154
- /**
3155
- * @return {?}
3156
- */
3157
- GovUkTextareaComponent.prototype.setDescribedBy = /**
3158
- * @return {?}
3159
- */
3160
- function () {
3161
- return HtmlTemplatesHelper.setDescribedBy(this.errorMessage, this.config);
3162
- };
3163
- GovUkTextareaComponent.decorators = [
3164
- { type: Component, args: [{
3165
- selector: 'xuilib-gov-uk-textarea',
3166
- 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}}\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>"
3167
- }] }
3168
- ];
3169
- GovUkTextareaComponent.propDecorators = {
3170
- config: [{ type: Input }],
3171
- errorMessage: [{ type: Input }],
3172
- group: [{ type: Input }]
3173
- };
3174
- return GovUkTextareaComponent;
3175
- }());
3176
-
3177
- /**
3178
- * @fileoverview added by tsickle
3179
- * Generated from: lib/gov-ui/components/hmcts-banner/hmcts-banner.component.ts
3180
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3181
- */
3182
- /*
3183
- * Hmcts Banner
3184
- * Responsible for displaying prominent message and related actions
3185
- * @prop message to display
3186
- * @prop type
3187
- * */
3188
- var HmctsBannerComponent = /** @class */ (function () {
3189
- function HmctsBannerComponent() {
3190
- }
3191
- HmctsBannerComponent.decorators = [
3192
- { type: Component, args: [{
3193
- selector: 'xuilib-hmcts-banner',
3194
- template: "<div class=\"hmcts-banner hmcts-banner--{{type}}\">\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\">{{type}}</span>\n {{message}}\n </div>\n</div>",
3195
- styles: [":host{display:block;width:100%}"]
3196
- }] }
3197
- ];
3198
- /** @nocollapse */
3199
- HmctsBannerComponent.ctorParameters = function () { return []; };
3200
- HmctsBannerComponent.propDecorators = {
3201
- type: [{ type: Input }],
3202
- message: [{ type: Input }]
3203
- };
3204
- return HmctsBannerComponent;
3205
- }());
3206
-
3207
- /**
3208
- * @fileoverview added by tsickle
3209
- * Generated from: lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.ts
3210
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3211
- */
3212
- /*
3213
- Error Summary component
3214
- State Less component
3215
- @property errorMessages that is array of messages.
3216
- Component is also responsible for scrolling. Up and Down the page when user click on links
3217
- */
3218
- var HmctsErrorSummaryComponent = /** @class */ (function () {
3219
- function HmctsErrorSummaryComponent(document) {
3220
- this.document = document;
3221
- }
3222
- Object.defineProperty(HmctsErrorSummaryComponent.prototype, "errorMessages", {
3223
- set: /**
3224
- * @param {?} value
3225
- * @return {?}
3226
- */
3227
- function (value) {
3228
- this.messages = value;
3229
- },
3230
- enumerable: true,
3231
- configurable: true
3232
- });
3233
- /**
3234
- * @return {?}
3235
- */
3236
- HmctsErrorSummaryComponent.prototype.ngAfterViewInit = /**
3237
- * @return {?}
3238
- */
3239
- function () {
3240
- this.scrollTo('errorSummary');
3241
- };
3242
- /**
3243
- * @param {?} changes
3244
- * @return {?}
3245
- */
3246
- HmctsErrorSummaryComponent.prototype.ngOnChanges = /**
3247
- * @param {?} changes
3248
- * @return {?}
3249
- */
3250
- function (changes) {
3251
- if (changes.errorMessages) {
3252
- this.scrollTo('errorSummary');
3253
- }
3254
- };
3255
- /**
3256
- * @param {?} selector
3257
- * @return {?}
3258
- */
3259
- HmctsErrorSummaryComponent.prototype.scrollTo = /**
3260
- * @param {?} selector
3261
- * @return {?}
3262
- */
3263
- function (selector) {
3264
- if (this.document.querySelector("#" + selector)) {
3265
- /** @type {?} */
3266
- var el = this.document.querySelector("#" + selector);
3267
- el.focus();
3268
- }
3269
- };
3270
- /**
3271
- * @param {?} selector
3272
- * @return {?}
3273
- */
3274
- HmctsErrorSummaryComponent.prototype.hasElement = /**
3275
- * @param {?} selector
3276
- * @return {?}
3277
- */
3278
- function (selector) {
3279
- return this.document.querySelector("#" + selector);
3280
- };
3281
- HmctsErrorSummaryComponent.decorators = [
3282
- { type: Component, args: [{
3283
- selector: 'xuilib-hmcts-error-summary',
3284
- 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}}\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']}}</a>\n <span *ngIf=\"!hasElement(message['id'])\">{{message['message']}}</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</span>\n <p class=\"govuk-body\" *ngFor=\"let message of messages\">{{ message['message'] }}</p>\n </div>\n</div>"
3285
- }] }
3286
- ];
3287
- /** @nocollapse */
3288
- HmctsErrorSummaryComponent.ctorParameters = function () { return [
3289
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
3290
- ]; };
3291
- HmctsErrorSummaryComponent.propDecorators = {
3292
- errorMessages: [{ type: Input }],
3293
- header: [{ type: Input }],
3294
- showWarningMessage: [{ type: Input }]
3295
- };
3296
- return HmctsErrorSummaryComponent;
3297
- }());
3298
-
3299
- /**
3300
- * @fileoverview added by tsickle
3301
- * Generated from: lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.ts
3302
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3303
- */
3304
- var HmctsIdentityBarComponent = /** @class */ (function () {
3305
- function HmctsIdentityBarComponent() {
3306
- }
3307
- Object.defineProperty(HmctsIdentityBarComponent.prototype, "content", {
3308
- set: /**
3309
- * @param {?} value
3310
- * @return {?}
3311
- */
3312
- function (value) {
3313
- this.value = value.name;
3314
- },
3315
- enumerable: true,
3316
- configurable: true
3317
- });
3318
- HmctsIdentityBarComponent.decorators = [
3319
- { type: Component, args: [{
3320
- selector: 'xuilib-hmcts-identity-bar',
3321
- template: "<div class=\"hmcts-identity-bar\" *ngIf=\"value\">\n\n <div class=\"hmcts-identity-bar__container\">\n\n <div class=\"hmcts-identity-bar__details\">\n \n <span class=\"hmcts-identity-bar__title\">{{value}}</span>\n \n </div> \n\n </div>\n\n</div>",
3322
- styles: [""]
3323
- }] }
3324
- ];
3325
- /** @nocollapse */
3326
- HmctsIdentityBarComponent.ctorParameters = function () { return []; };
3327
- HmctsIdentityBarComponent.propDecorators = {
3328
- content: [{ type: Input }]
3329
- };
3330
- return HmctsIdentityBarComponent;
3331
- }());
3332
-
3333
- /**
3334
- * @fileoverview added by tsickle
3335
- * Generated from: lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.ts
3336
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3337
- */
3338
- /*
3339
- * Main Content wrapper
3340
- * Responsible for:
3341
- * Wrapping content within the gov-uk html elements bellow
3342
- * @prop showBackLink - switch for back link
3343
- * @prop title = title
3344
- * @prop summaryErrors list of errors
3345
- * @prop back link, title (title), summaryErrors (array of errors)
3346
- * */
3347
- var HmctsMainWrapperComponent = /** @class */ (function () {
3348
- function HmctsMainWrapperComponent() {
3349
- this.backEvent = new EventEmitter();
3350
- }
3351
- Object.defineProperty(HmctsMainWrapperComponent.prototype, "banner", {
3352
- set: /**
3353
- * @param {?} value
3354
- * @return {?}
3355
- */
3356
- function (value) {
3357
- this.bannerData = value;
3358
- },
3359
- enumerable: true,
3360
- configurable: true
3361
- });
3362
- /**
3363
- * @return {?}
3364
- */
3365
- HmctsMainWrapperComponent.prototype.ngOnInit = /**
3366
- * @return {?}
3367
- */
3368
- function () {
3369
- this.hasBackLink = this.backLink !== undefined || this.backEvent.observers.length > 0;
3370
- };
3371
- /**
3372
- * @return {?}
3373
- */
3374
- HmctsMainWrapperComponent.prototype.onGoBack = /**
3375
- * @return {?}
3376
- */
3377
- function () {
3378
- this.backEvent.emit();
3379
- };
3380
- HmctsMainWrapperComponent.decorators = [
3381
- { type: Component, args: [{
3382
- selector: 'xuilib-hmcts-main-wrapper',
3383
- template: "<a *ngIf=\"hasBackLink\" [routerLink]=\"backLink\" (click)=\"onGoBack()\" class=\"govuk-back-link\">Back</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\" [message]=\"bannerData.message\" [type]=\"bannerData.type\"></xuilib-hmcts-banner>\n <h1 *ngIf=\"title\" class=\"govuk-heading-xl\">{{title}}</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 }}</a>\n </div>\n </div>\n </div>\n</main>\n"
3384
- }] }
3385
- ];
3386
- /** @nocollapse */
3387
- HmctsMainWrapperComponent.ctorParameters = function () { return []; };
3388
- HmctsMainWrapperComponent.propDecorators = {
3389
- backLink: [{ type: Input }],
3390
- title: [{ type: Input }],
3391
- summaryErrors: [{ type: Input }],
3392
- banner: [{ type: Input }],
3393
- actionButtons: [{ type: Input }],
3394
- showWarningMessage: [{ type: Input }],
3395
- backEvent: [{ type: Output }]
3396
- };
3397
- return HmctsMainWrapperComponent;
3398
- }());
3399
-
3400
- /**
3401
- * @fileoverview added by tsickle
3402
- * Generated from: lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.ts
3403
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3404
- */
3405
- var HmctsPrimaryNavigationComponent = /** @class */ (function () {
3406
- function HmctsPrimaryNavigationComponent() {
3407
- }
3408
- Object.defineProperty(HmctsPrimaryNavigationComponent.prototype, "userLoggedIn", {
3409
- set: /**
3410
- * @param {?} value
3411
- * @return {?}
3412
- */
3413
- function (value) {
3414
- this.isUserLoggedIn = value;
3415
- },
3416
- enumerable: true,
3417
- configurable: true
3418
- });
3419
- HmctsPrimaryNavigationComponent.decorators = [
3420
- { type: Component, args: [{
3421
- selector: 'xuilib-hmcts-primary-navigation',
3422
- template: "<nav *ngIf=\"isUserLoggedIn\" class=\"hmcts-primary-navigation\" [attr.aria-label]=\"label\">\n <div class=\"hmcts-primary-navigation__container\">\n <div class=\"govuk-header__logo\" *ngIf=\"isBrandedHeader\"></div>\n <ul class=\"hmcts-primary-navigation__list\">\n <li class=\"hmcts-primary-navigation__item\" *ngFor=\"let item of items\">\n <a class=\"hmcts-primary-navigation__link\" [attr.aria-current]=\"item.active ? true: null\" [routerLink]=\"item.href\" [innerHTML]=\"item.text\"></a>\n </li>\n </ul>\n </div>\n</nav>\n",
3423
- styles: [""]
3424
- }] }
3425
- ];
3426
- /** @nocollapse */
3427
- HmctsPrimaryNavigationComponent.ctorParameters = function () { return []; };
3428
- HmctsPrimaryNavigationComponent.propDecorators = {
3429
- userLoggedIn: [{ type: Input }],
3430
- label: [{ type: Input }],
3431
- items: [{ type: Input }],
3432
- isBrandedHeader: [{ type: Input }]
3433
- };
3434
- return HmctsPrimaryNavigationComponent;
3435
- }());
3436
-
3437
- /**
3438
- * @fileoverview added by tsickle
3439
- * Generated from: lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.ts
3440
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3441
- */
3442
- var HmctsSubNavigationComponent = /** @class */ (function () {
3443
- function HmctsSubNavigationComponent() {
3444
- }
3445
- HmctsSubNavigationComponent.decorators = [
3446
- { type: Component, args: [{
3447
- selector: 'xuilib-hmcts-sub-navigation',
3448
- template: "<nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\" *ngIf=\"items\">\n <ul class=\"hmcts-sub-navigation__list\">\n <li class=\"hmcts-sub-navigation__item\" *ngFor=\"let item of items\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text}}\n </a>\n </li>\n </ul>\n</nav>\n"
3449
- }] }
3450
- ];
3451
- HmctsSubNavigationComponent.propDecorators = {
3452
- label: [{ type: Input }],
3453
- items: [{ type: Input }]
3454
- };
3455
- return HmctsSubNavigationComponent;
3456
- }());
3457
-
3458
- /**
3459
- * @fileoverview added by tsickle
3460
- * Generated from: lib/gov-ui/directives/remove-host.directive.ts
3461
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3462
- */
3463
- /*
3464
- * Remove Host Directive
3465
- * Used to remove native angular host tags tags
3466
- * sometimes needed because of CSS dependencies
3467
- * */
3468
- var RemoveHostDirective = /** @class */ (function () {
3469
- function RemoveHostDirective(el) {
3470
- this.el = el;
3471
- }
3472
- /**
3473
- * @return {?}
3474
- */
3475
- RemoveHostDirective.prototype.ngOnInit = /**
3476
- * @return {?}
3477
- */
3478
- function () {
3479
- /** @type {?} */
3480
- var nativeElement = this.el.nativeElement;
3481
- /** @type {?} */
3482
- var parentElement = nativeElement.parentElement;
3483
- // move all children out of the element
3484
- while (nativeElement.firstChild) {
3485
- parentElement.insertBefore(nativeElement.firstChild, nativeElement);
3486
- }
3487
- parentElement.removeChild(nativeElement);
3488
- };
3489
- RemoveHostDirective.decorators = [
3490
- { type: Directive, args: [{
3491
- selector: '[appRemoveHost]'
3492
- },] }
3493
- ];
3494
- /** @nocollapse */
3495
- RemoveHostDirective.ctorParameters = function () { return [
3496
- { type: ElementRef }
3497
- ]; };
3498
- return RemoveHostDirective;
3499
- }());
3500
-
3501
- /**
3502
- * @fileoverview added by tsickle
3503
- * Generated from: lib/window.ts
3504
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3505
- */
3506
- /** @type {?} */
3507
- var windowToken = new InjectionToken('Window');
3508
- /**
3509
- * @return {?}
3510
- */
3511
- function windowProvider() { return window; }
3512
-
3513
- /**
3514
- * @fileoverview added by tsickle
3515
- * Generated from: lib/exui-common-lib.module.ts
3516
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3517
- */
3518
- /** @type {?} */
3519
- var COMMON_LIB_ROOT_GUARD = new InjectionToken('COMMON_LIB_ROOT_GUARD');
3520
- var ExuiCommonLibModuleOptions = /** @class */ (function () {
3521
- function ExuiCommonLibModuleOptions() {
3522
- }
3523
- return ExuiCommonLibModuleOptions;
3524
- }());
3525
- /** @type {?} */
3526
- var COMMON_COMPONENTS = [
3527
- ExuiPageWrapperComponent,
3528
- TermsAndConditionsComponent,
3529
- TcDisplayHtmlComponent,
3530
- TcDisplayPlainComponent,
3531
- TcConfirmComponent,
3532
- ContactDetailsComponent,
3533
- HmctsSessionDialogComponent,
3534
- UserListComponent,
3535
- UserDetailsComponent,
3536
- InviteUserPermissionComponent,
3537
- InviteUserFormComponent,
3538
- ShareCaseComponent,
3539
- ShareCaseConfirmComponent,
3540
- SelectedCaseListComponent,
3541
- SelectedCaseComponent,
3542
- SelectedCaseConfirmComponent,
3543
- UserSelectComponent,
3544
- TabComponent,
3545
- AccessibilityComponent,
3546
- DueDateComponent,
3547
- CheckboxListComponent,
3548
- ServiceMessageComponent,
3549
- ServiceMessagesComponent,
3550
- LoadingSpinnerComponent
3551
- ];
3552
- /** @type {?} */
3553
- var COMMON_DIRECTIVES = [
3554
- FeatureToggleDirective,
3555
- LetDirective
3556
- ];
3557
- /** @type {?} */
3558
- var GOV_UI_COMPONENTS = [
3559
- HmctsIdentityBarComponent,
3560
- HmctsSubNavigationComponent,
3561
- HmctsPrimaryNavigationComponent,
3562
- HmctsErrorSummaryComponent,
3563
- HmctsMainWrapperComponent,
3564
- HmctsBannerComponent,
3565
- GovukTableComponent,
3566
- GovUkInputComponent,
3567
- GovUkCheckboxComponent,
3568
- GovUkFormGroupWrapperComponent,
3569
- GovUkLabelComponent,
3570
- GovUkErrorMessageComponent,
3571
- GovUkFieldsetComponent,
3572
- GovUkDateComponent,
3573
- GovUkCheckboxesComponent,
3574
- GovUkRadioComponent,
3575
- GovUkRadiosComponent,
3576
- GovUkSelectComponent,
3577
- GovUkTextareaComponent,
3578
- GovUkFileUploadComponent
3579
- ];
3580
- /** @type {?} */
3581
- var GOV_UI_DIRECTIVES = [
3582
- RemoveHostDirective
3583
- ];
3584
- var ɵ0 = windowProvider;
3585
- var ExuiCommonLibModule = /** @class */ (function () {
3586
- function ExuiCommonLibModule() {
3587
- }
3588
- ExuiCommonLibModule.decorators = [
3589
- { type: NgModule, args: [{
3590
- declarations: __spread(COMMON_COMPONENTS, COMMON_DIRECTIVES, GOV_UI_COMPONENTS, GOV_UI_DIRECTIVES),
3591
- imports: [
3592
- CommonModule,
3593
- FormsModule,
3594
- ReactiveFormsModule,
3595
- RouterModule.forChild([]),
3596
- MatAutocompleteModule,
3597
- MatTabsModule
3598
- ],
3599
- providers: [
3600
- { provide: windowToken, useFactory: ɵ0 }
3601
- ],
3602
- exports: __spread(COMMON_COMPONENTS, COMMON_DIRECTIVES, GOV_UI_COMPONENTS, GOV_UI_DIRECTIVES)
3603
- },] }
3604
- ];
3605
- return ExuiCommonLibModule;
3606
- }());
3607
-
3608
- /**
3609
- * @fileoverview added by tsickle
3610
- * Generated from: lib/gov-ui/gov-ui.service.ts
3611
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3612
- */
3613
- var GovUiService = /** @class */ (function () {
3614
- function GovUiService() {
3615
- }
3616
- GovUiService.decorators = [
3617
- { type: Injectable, args: [{
3618
- providedIn: 'root'
3619
- },] }
3620
- ];
3621
- /** @nocollapse */
3622
- GovUiService.ctorParameters = function () { return []; };
3623
- /** @nocollapse */ GovUiService.ngInjectableDef = defineInjectable({ factory: function GovUiService_Factory() { return new GovUiService(); }, token: GovUiService, providedIn: "root" });
3624
- return GovUiService;
3625
- }());
3626
-
3627
- /**
3628
- * @fileoverview added by tsickle
3629
- * Generated from: lib/gov-ui/validators/checkboxes-be-checked.validator.ts
3630
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3631
- */
3632
- /**
3633
- * @param {?=} minRequired
3634
- * @return {?}
3635
- */
3636
- function checkboxesBeCheckedValidator(minRequired) {
3637
- if (minRequired === void 0) { minRequired = 1; }
3638
- return (/**
3639
- * @param {?} formGroup
3640
- * @return {?}
3641
- */
3642
- function validate(formGroup) {
3643
- /** @type {?} */
3644
- var checked = 0;
3645
- Object.keys(formGroup.controls).forEach((/**
3646
- * @param {?} key
3647
- * @return {?}
3648
- */
3649
- function (key) {
3650
- /** @type {?} */
3651
- var control = formGroup.controls[key];
3652
- if (control.value === true) {
3653
- checked++;
3654
- }
3655
- }));
3656
- if (checked < minRequired) {
3657
- return {
3658
- requireOneCheckboxToBeChecked: true,
3659
- };
3660
- }
3661
- return null;
3662
- });
3663
- }
3664
-
3665
- /**
3666
- * @fileoverview added by tsickle
3667
- * Generated from: lib/gov-ui/validators/date.validator.ts
3668
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3669
- */
3670
- /**
3671
- * @return {?}
3672
- */
3673
- function dateValidator() {
3674
- return (/**
3675
- * @param {?} formGroup
3676
- * @return {?}
3677
- */
3678
- function validate(formGroup) {
3679
- /** @type {?} */
3680
- var d = new Date(parseInt(formGroup.controls.day.value, 10), parseInt(formGroup.controls.month.value, 10) - 1, parseInt(formGroup.controls.year.value, 10) - 1);
3681
- /**
3682
- * @param {?} val
3683
- * @return {?}
3684
- */
3685
- function isValidDate(val) {
3686
- return val instanceof Date && !isNaN(+d);
3687
- }
3688
- if (!isValidDate(d)) {
3689
- return {
3690
- dateIsInvalid: true,
3691
- };
3692
- }
3693
- return null;
3694
- });
3695
- }
3696
-
3697
- /**
3698
- * @fileoverview added by tsickle
3699
- * Generated from: lib/gov-ui/validators/radio-group.validator.ts
3700
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3701
- */
3702
- /**
3703
- * @return {?}
3704
- */
3705
- function radioGroupValidator() {
3706
- return (/**
3707
- * @param {?} formGroup
3708
- * @return {?}
3709
- */
3710
- function validate(formGroup) {
3711
- if (formGroup.controls) {
3712
- for (var control in formGroup.controls) {
3713
- if (!formGroup.controls[control].valid) {
3714
- return {
3715
- isRadioGroupInvalid: true,
3716
- };
3717
- }
3718
- }
3719
- }
3720
- return null;
3721
- });
3722
- }
3723
-
3724
- /**
3725
- * @fileoverview added by tsickle
3726
- * Generated from: lib/gov-ui/validators/public_api.ts
3727
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3728
- */
3729
-
3730
- /**
3731
- * @fileoverview added by tsickle
3732
- * Generated from: lib/gov-ui/validators/index.ts
3733
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3734
- */
3735
-
3736
- /**
3737
- * @fileoverview added by tsickle
3738
- * Generated from: lib/gov-ui/components/public_api.ts
3739
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3740
- */
3741
-
3742
- /**
3743
- * @fileoverview added by tsickle
3744
- * Generated from: lib/gov-ui/components/index.ts
3745
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3746
- */
3747
-
3748
- /**
3749
- * @fileoverview added by tsickle
3750
- * Generated from: lib/gov-ui/models/checkboxes-model.ts
3751
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3752
- */
3753
-
3754
- /**
3755
- * @fileoverview added by tsickle
3756
- * Generated from: lib/gov-ui/models/error-messages-model.ts
3757
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3758
- */
3759
-
3760
- /**
3761
- * @fileoverview added by tsickle
3762
- * Generated from: lib/gov-ui/models/banner-data-model.ts
3763
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3764
- */
3765
-
3766
- /**
3767
- * @fileoverview added by tsickle
3768
- * Generated from: lib/gov-ui/models/gov-ui-config-model.ts
3769
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3770
- */
3771
-
3772
- /**
3773
- * @fileoverview added by tsickle
3774
- * Generated from: lib/gov-ui/models/public_api.ts
3775
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3776
- */
3777
-
3778
- /**
3779
- * @fileoverview added by tsickle
3780
- * Generated from: lib/gov-ui/models/index.ts
3781
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3782
- */
3783
-
3784
- /**
3785
- * @fileoverview added by tsickle
3786
- * Generated from: lib/gov-ui/directives/public_api.ts
3787
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3788
- */
3789
-
3790
- /**
3791
- * @fileoverview added by tsickle
3792
- * Generated from: lib/gov-ui/directives/index.ts
3793
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3794
- */
3795
-
3796
- /**
3797
- * @fileoverview added by tsickle
3798
- * Generated from: lib/gov-ui/public_api.ts
3799
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3800
- */
3801
-
3802
- /**
3803
- * @fileoverview added by tsickle
3804
- * Generated from: lib/gov-ui/index.ts
3805
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3806
- */
3807
-
3808
- /**
3809
- * @fileoverview added by tsickle
3810
- * Generated from: lib/models/case-share.model.ts
3811
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3812
- */
3813
-
3814
- /**
3815
- * @fileoverview added by tsickle
3816
- * Generated from: lib/models/contact-details.model.ts
3817
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3818
- */
3819
-
3820
- /**
3821
- * @fileoverview added by tsickle
3822
- * Generated from: lib/models/feature-user.ts
3823
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3824
- */
3825
- var AnonymousFeatureUser = /** @class */ (function () {
3826
- function AnonymousFeatureUser() {
3827
- }
3828
- return AnonymousFeatureUser;
3829
- }());
3830
- var LoggedInFeatureUser = /** @class */ (function () {
3831
- function LoggedInFeatureUser() {
3832
- }
3833
- return LoggedInFeatureUser;
3834
- }());
3835
-
3836
- /**
3837
- * @fileoverview added by tsickle
3838
- * Generated from: lib/models/idle-config.model.ts
3839
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3840
- */
3841
-
3842
- /**
3843
- * @fileoverview added by tsickle
3844
- * Generated from: lib/models/tcDocument.model.ts
3845
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3846
- */
3847
-
3848
- /**
3849
- * @fileoverview added by tsickle
3850
- * Generated from: lib/models/timeout-notification.model.ts
3851
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3852
- */
3853
-
3854
- /**
3855
- * @fileoverview added by tsickle
3856
- * Generated from: lib/models/user-details.model.ts
3857
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3858
- */
3859
-
3860
- /**
3861
- * @fileoverview added by tsickle
3862
- * Generated from: lib/models/user.model.ts
3863
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3864
- */
3865
-
3866
- /**
3867
- * @fileoverview added by tsickle
3868
- * Generated from: lib/models/public_api.ts
3869
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3870
- */
3871
-
3872
- /**
3873
- * @fileoverview added by tsickle
3874
- * Generated from: lib/models/index.ts
3875
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3876
- */
3877
-
3878
- /**
3879
- * @fileoverview added by tsickle
3880
- * Generated from: lib/directives/public-api.ts
3881
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3882
- */
3883
-
3884
- /**
3885
- * @fileoverview added by tsickle
3886
- * Generated from: lib/directives/index.ts
3887
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3888
- */
3889
-
3890
- /**
3891
- * @fileoverview added by tsickle
3892
- * Generated from: lib/components/public_api.ts
3893
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3894
- */
3895
-
3896
- /**
3897
- * @fileoverview added by tsickle
3898
- * Generated from: lib/components/index.ts
3899
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3900
- */
3901
-
3902
- /**
3903
- * @fileoverview added by tsickle
3904
- * Generated from: lib/services/feature-toggle/feature-toggle.guard.ts
3905
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3906
- */
3907
- var FeatureToggleGuard = /** @class */ (function () {
3908
- function FeatureToggleGuard(featureToggleService, router) {
3909
- this.featureToggleService = featureToggleService;
3910
- this.router = router;
3911
- }
3912
- /**
3913
- * Usage: Add the FeatureToggleGuard as the Guard for a route, and provide the following
3914
- * in the data array for the route:
3915
- * - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
3916
- * - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
3917
- * @param route Automatically provided by Angular
3918
- */
3919
- /**
3920
- * Usage: Add the FeatureToggleGuard as the Guard for a route, and provide the following
3921
- * in the data array for the route:
3922
- * - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
3923
- * - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
3924
- * @param {?} route Automatically provided by Angular
3925
- * @return {?}
3926
- */
3927
- FeatureToggleGuard.prototype.canActivate = /**
3928
- * Usage: Add the FeatureToggleGuard as the Guard for a route, and provide the following
3929
- * in the data array for the route:
3930
- * - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
3931
- * - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
3932
- * @param {?} route Automatically provided by Angular
3933
- * @return {?}
3934
- */
3935
- function (route) {
3936
- var _this = this;
3937
- return combineLatest.apply(void 0, __spread(((/** @type {?} */ (route.data.needsFeaturesEnabled))).map((/**
3938
- * @param {?} feature
3939
- * @return {?}
3940
- */
3941
- function (feature) { return _this.featureToggleService.getValueOnce(feature, false); })))).pipe(map((/**
3942
- * @param {?} featureStatuses
3943
- * @return {?}
3944
- */
3945
- function (featureStatuses) { return featureStatuses.every((/**
3946
- * @param {?} status
3947
- * @return {?}
3948
- */
3949
- function (status) { return status; })); })), map((/**
3950
- * @param {?} status
3951
- * @return {?}
3952
- */
3953
- function (status) { return status || _this.router.parseUrl((/** @type {?} */ (route.data.featureDisabledRedirect))); })));
3954
- };
3955
- FeatureToggleGuard.decorators = [
3956
- { type: Injectable }
3957
- ];
3958
- /** @nocollapse */
3959
- FeatureToggleGuard.ctorParameters = function () { return [
3960
- { type: FeatureToggleService },
3961
- { type: Router }
3962
- ]; };
3963
- return FeatureToggleGuard;
3964
- }());
3965
-
3966
- /**
3967
- * @fileoverview added by tsickle
3968
- * Generated from: lib/services/feature-toggle/launch-darkly.service.ts
3969
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3970
- */
3971
- /** @type {?} */
3972
- var LAUNCHDARKLYKEY = new InjectionToken('LAUNCHDARKLYKEY');
3973
- var LaunchDarklyService = /** @class */ (function () {
3974
- function LaunchDarklyService(key) {
3975
- var _this = this;
3976
- this.ready = new BehaviorSubject(false);
3977
- this.features = {};
3978
- this.client = initialize(key, { anonymous: true }, {});
3979
- this.client.on('ready', (/**
3980
- * @return {?}
3981
- */
3982
- function () { _this.ready.next(true); }));
3983
- }
3984
- /**
3985
- * @param {?=} user
3986
- * @return {?}
3987
- */
3988
- LaunchDarklyService.prototype.initialize = /**
3989
- * @param {?=} user
3990
- * @return {?}
3991
- */
3992
- function (user) {
3993
- var _this = this;
3994
- if (user === void 0) { user = { anonymous: true }; }
3995
- this.ready.next(false);
3996
- this.client.identify(user).then((/**
3997
- * @return {?}
3998
- */
3999
- function () { return _this.ready.next(true); }));
4000
- };
4001
- /**
4002
- * @param {?} feature
4003
- * @return {?}
4004
- */
4005
- LaunchDarklyService.prototype.isEnabled = /**
4006
- * @param {?} feature
4007
- * @return {?}
4008
- */
4009
- function (feature) {
4010
- return this.getValue(feature, false);
4011
- };
4012
- /**
4013
- * @template R
4014
- * @param {?} feature
4015
- * @return {?}
4016
- */
4017
- LaunchDarklyService.prototype.getArray = /**
4018
- * @template R
4019
- * @param {?} feature
4020
- * @return {?}
4021
- */
4022
- function (feature) {
4023
- return this.getValue(feature, []);
4024
- };
4025
- /**
4026
- * @template R
4027
- * @param {?} feature
4028
- * @param {?} defaultValue
4029
- * @return {?}
4030
- */
4031
- LaunchDarklyService.prototype.getValue = /**
4032
- * @template R
4033
- * @param {?} feature
4034
- * @param {?} defaultValue
4035
- * @return {?}
4036
- */
4037
- function (feature, defaultValue) {
4038
- var _this = this;
4039
- if (!this.features.hasOwnProperty(feature)) {
4040
- this.features[feature] = new BehaviorSubject(defaultValue);
4041
- this.ready.pipe(filter((/**
4042
- * @param {?} ready
4043
- * @return {?}
4044
- */
4045
- function (ready) { return ready; })), map((/**
4046
- * @return {?}
4047
- */
4048
- function () { return _this.client.variation(feature, defaultValue); }))).subscribe((/**
4049
- * @param {?} value
4050
- * @return {?}
4051
- */
4052
- function (value) {
4053
- _this.features[feature].next(value);
4054
- _this.client.on("change:" + feature, (/**
4055
- * @param {?} val
4056
- * @return {?}
4057
- */
4058
- function (val) {
4059
- _this.features[feature].next(val);
4060
- }));
4061
- }));
4062
- }
4063
- return this.features[feature].pipe(distinctUntilChanged());
4064
- };
4065
- /**
4066
- * This method returns an observable that will only get the state of the feature toggle
4067
- * once. It calls the LD SDK directly, and should only be used in circumstances where
4068
- * only one value should be emitted, that value coming directly from LD. This will likely
4069
- * only apply for Guards, and should be used only when absolutely necessary.
4070
- * @see getValue for regular usage.
4071
- * @param feature string
4072
- * @param defaultValue R
4073
- */
4074
- /**
4075
- * This method returns an observable that will only get the state of the feature toggle
4076
- * once. It calls the LD SDK directly, and should only be used in circumstances where
4077
- * only one value should be emitted, that value coming directly from LD. This will likely
4078
- * only apply for Guards, and should be used only when absolutely necessary.
4079
- * @see getValue for regular usage.
4080
- * @template R
4081
- * @param {?} feature string
4082
- * @param {?} defaultValue R
4083
- * @return {?}
4084
- */
4085
- LaunchDarklyService.prototype.getValueOnce = /**
4086
- * This method returns an observable that will only get the state of the feature toggle
4087
- * once. It calls the LD SDK directly, and should only be used in circumstances where
4088
- * only one value should be emitted, that value coming directly from LD. This will likely
4089
- * only apply for Guards, and should be used only when absolutely necessary.
4090
- * @see getValue for regular usage.
4091
- * @template R
4092
- * @param {?} feature string
4093
- * @param {?} defaultValue R
4094
- * @return {?}
4095
- */
4096
- function (feature, defaultValue) {
4097
- var _this = this;
4098
- return this.ready.pipe(filter((/**
4099
- * @param {?} ready
4100
- * @return {?}
4101
- */
4102
- function (ready) { return ready; })), map((/**
4103
- * @return {?}
4104
- */
4105
- function () { return _this.client.variation(feature, defaultValue); })));
4106
- };
4107
- LaunchDarklyService.decorators = [
4108
- { type: Injectable, args: [{
4109
- providedIn: 'root'
4110
- },] }
4111
- ];
4112
- /** @nocollapse */
4113
- LaunchDarklyService.ctorParameters = function () { return [
4114
- { type: String, decorators: [{ type: Inject, args: [LAUNCHDARKLYKEY,] }] }
4115
- ]; };
4116
- /** @nocollapse */ LaunchDarklyService.ngInjectableDef = defineInjectable({ factory: function LaunchDarklyService_Factory() { return new LaunchDarklyService(inject(LAUNCHDARKLYKEY)); }, token: LaunchDarklyService, providedIn: "root" });
4117
- return LaunchDarklyService;
4118
- }());
4119
-
4120
- /**
4121
- * @fileoverview added by tsickle
4122
- * Generated from: lib/services/google-analytics/google-analytics.service.ts
4123
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4124
- */
4125
- var GoogleAnalyticsService = /** @class */ (function () {
4126
- function GoogleAnalyticsService(router, title, window, document) {
4127
- this.router = router;
4128
- this.title = title;
4129
- this.window = (/** @type {?} */ (window));
4130
- this.document = (/** @type {?} */ (document));
4131
- }
4132
- /**
4133
- * @param {?} googleAnalyticsKey
4134
- * @return {?}
4135
- */
4136
- GoogleAnalyticsService.prototype.init = /**
4137
- * @param {?} googleAnalyticsKey
4138
- * @return {?}
4139
- */
4140
- function (googleAnalyticsKey) {
4141
- this.googleAnalyticsKey = googleAnalyticsKey;
4142
- try {
4143
- /** @type {?} */
4144
- var script1 = this.document.createElement('script');
4145
- script1.async = true;
4146
- script1.src = "https://www.googletagmanager.com/gtag/js?id=" + this.googleAnalyticsKey;
4147
- this.document.head.appendChild(script1);
4148
- /** @type {?} */
4149
- var script2 = this.document.createElement('script');
4150
- script2.innerHTML = "\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '" + this.googleAnalyticsKey + "', {'send_page_view': false});\n ";
4151
- this.document.head.appendChild(script2);
4152
- }
4153
- catch (ex) {
4154
- console.error('Error appending google analytics');
4155
- console.error(ex);
4156
- }
4157
- this.listenForRouteChanges();
4158
- };
4159
- /**
4160
- * @private
4161
- * @return {?}
4162
- */
4163
- GoogleAnalyticsService.prototype.listenForRouteChanges = /**
4164
- * @private
4165
- * @return {?}
4166
- */
4167
- function () {
4168
- var _this = this;
4169
- if (this.googleAnalyticsKey) {
4170
- this.router.events.subscribe((/**
4171
- * @param {?} event
4172
- * @return {?}
4173
- */
4174
- function (event) {
4175
- if (event instanceof NavigationEnd) {
4176
- ((/** @type {?} */ (_this.window))).gtag('config', _this.googleAnalyticsKey, {
4177
- page_path: event.urlAfterRedirects,
4178
- page_title: _this.title.getTitle(),
4179
- });
4180
- }
4181
- }));
4182
- }
4183
- };
4184
- /**
4185
- * @param {?} eventName
4186
- * @param {?} params
4187
- * @return {?}
4188
- */
4189
- GoogleAnalyticsService.prototype.event = /**
4190
- * @param {?} eventName
4191
- * @param {?} params
4192
- * @return {?}
4193
- */
4194
- function (eventName, params) {
4195
- ((/** @type {?} */ (this.window))).gtag('event', eventName, params);
4196
- };
4197
- GoogleAnalyticsService.decorators = [
4198
- { type: Injectable, args: [{
4199
- providedIn: 'root'
4200
- },] }
4201
- ];
4202
- /** @nocollapse */
4203
- GoogleAnalyticsService.ctorParameters = function () { return [
4204
- { type: Router },
4205
- { type: Title },
4206
- { type: undefined, decorators: [{ type: Inject, args: [windowToken,] }] },
4207
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
4208
- ]; };
4209
- /** @nocollapse */ GoogleAnalyticsService.ngInjectableDef = defineInjectable({ factory: function GoogleAnalyticsService_Factory() { return new GoogleAnalyticsService(inject(Router), inject(Title), inject(windowToken), inject(DOCUMENT)); }, token: GoogleAnalyticsService, providedIn: "root" });
4210
- return GoogleAnalyticsService;
4211
- }());
4212
-
4213
- /**
4214
- * @fileoverview added by tsickle
4215
- * Generated from: lib/services/google-tag-manager/google-tag-manager.service.ts
4216
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4217
- */
4218
- var GoogleTagManagerService = /** @class */ (function () {
4219
- function GoogleTagManagerService(router, title, window, document) {
4220
- this.router = router;
4221
- this.title = title;
4222
- this.window = (/** @type {?} */ (window));
4223
- this.document = (/** @type {?} */ (document));
4224
- }
4225
- /**
4226
- * @param {?} googleTagManagerKey
4227
- * @return {?}
4228
- */
4229
- GoogleTagManagerService.prototype.init = /**
4230
- * @param {?} googleTagManagerKey
4231
- * @return {?}
4232
- */
4233
- function (googleTagManagerKey) {
4234
- this.googleTagManagerKey = googleTagManagerKey;
4235
- try {
4236
- ((/** @type {?} */ (this.window))).dataLayer = ((/** @type {?} */ (this.window))).dataLayer || [];
4237
- ((/** @type {?} */ (this.window))).dataLayer.push({
4238
- 'gtm.start': new Date().getTime(),
4239
- event: 'gtm.js'
4240
- });
4241
- /** @type {?} */
4242
- var script = this.document.createElement('script');
4243
- script.async = true;
4244
- script.src = "https://www.googletagmanager.com/gtm.js?id=" + this.googleTagManagerKey;
4245
- this.document.head.appendChild(script);
4246
- }
4247
- catch (ex) {
4248
- console.error('Error appending google tag manager');
4249
- console.error(ex);
4250
- }
4251
- this.listenForRouteChanges();
4252
- };
4253
- /**
4254
- * @private
4255
- * @return {?}
4256
- */
4257
- GoogleTagManagerService.prototype.listenForRouteChanges = /**
4258
- * @private
4259
- * @return {?}
4260
- */
4261
- function () {
4262
- var _this = this;
4263
- if (this.googleTagManagerKey) {
4264
- this.router.events.subscribe((/**
4265
- * @param {?} event
4266
- * @return {?}
4267
- */
4268
- function (event) {
4269
- if (event instanceof NavigationEnd) {
4270
- ((/** @type {?} */ (_this.window))).dataLayer.push({
4271
- event: 'pageview',
4272
- page: {
4273
- path: event.urlAfterRedirects,
4274
- title: _this.title.getTitle()
4275
- }
4276
- });
4277
- }
4278
- }));
4279
- }
4280
- };
4281
- /**
4282
- * @param {?} eventName
4283
- * @param {?} params
4284
- * @return {?}
4285
- */
4286
- GoogleTagManagerService.prototype.event = /**
4287
- * @param {?} eventName
4288
- * @param {?} params
4289
- * @return {?}
4290
- */
4291
- function (eventName, params) {
4292
- ((/** @type {?} */ (this.window))).dataLayer.push({
4293
- event: eventName,
4294
- params: params
4295
- });
4296
- };
4297
- GoogleTagManagerService.decorators = [
4298
- { type: Injectable, args: [{
4299
- providedIn: 'root'
4300
- },] }
4301
- ];
4302
- /** @nocollapse */
4303
- GoogleTagManagerService.ctorParameters = function () { return [
4304
- { type: Router },
4305
- { type: Title },
4306
- { type: undefined, decorators: [{ type: Inject, args: [windowToken,] }] },
4307
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
4308
- ]; };
4309
- /** @nocollapse */ GoogleTagManagerService.ngInjectableDef = defineInjectable({ factory: function GoogleTagManagerService_Factory() { return new GoogleTagManagerService(inject(Router), inject(Title), inject(windowToken), inject(DOCUMENT)); }, token: GoogleTagManagerService, providedIn: "root" });
4310
- return GoogleTagManagerService;
4311
- }());
4312
-
4313
- /**
4314
- * @fileoverview added by tsickle
4315
- * Generated from: lib/services/loading/loading.service.ts
4316
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4317
- */
4318
- /**
4319
- * @abstract
4320
- */
4321
- var HasLoadingState = /** @class */ (function () {
4322
- function HasLoadingState() {
4323
- }
4324
- HasLoadingState.decorators = [
4325
- { type: Injectable, args: [{
4326
- providedIn: 'root'
4327
- },] }
4328
- ];
4329
- /** @nocollapse */ HasLoadingState.ngInjectableDef = defineInjectable({ factory: function HasLoadingState_Factory() { return new HasLoadingState(); }, token: HasLoadingState, providedIn: "root" });
4330
- return HasLoadingState;
4331
- }());
4332
- var LoadingService = /** @class */ (function () {
4333
- function LoadingService() {
4334
- this.registered = new Map();
4335
- this.loading = new BehaviorSubject(false);
4336
- }
4337
- Object.defineProperty(LoadingService.prototype, "isLoading", {
4338
- get: /**
4339
- * @return {?}
4340
- */
4341
- function () {
4342
- return this.loading.asObservable().pipe(distinctUntilChanged());
4343
- },
4344
- enumerable: true,
4345
- configurable: true
4346
- });
4347
- /**
4348
- * @return {?}
4349
- */
4350
- LoadingService.prototype.register = /**
4351
- * @return {?}
4352
- */
4353
- function () {
4354
- /** @type {?} */
4355
- var token = this.generateToken();
4356
- this.registered.set(token, token);
4357
- this.loading.next(true);
4358
- return token;
4359
- };
4360
- /**
4361
- * @param {?} token
4362
- * @return {?}
4363
- */
4364
- LoadingService.prototype.unregister = /**
4365
- * @param {?} token
4366
- * @return {?}
4367
- */
4368
- function (token) {
4369
- this.registered.delete(token);
4370
- this.loading.next(this.registered.size > 0);
4371
- };
4372
- /**
4373
- * @private
4374
- * @return {?}
4375
- */
4376
- LoadingService.prototype.generateToken = /**
4377
- * @private
4378
- * @return {?}
4379
- */
4380
- function () {
4381
- /** @type {?} */
4382
- var timestamp = window.performance.now();
4383
- return "common-lib-loading-" + timestamp; // format: [source-library]-[unique incrementing number]
4384
- };
4385
- return LoadingService;
4386
- }());
4387
-
4388
- /**
4389
- * @fileoverview added by tsickle
4390
- * Generated from: lib/services/manage-session/manage-session.services.ts
4391
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4392
- */
4393
- var ManageSessionServices = /** @class */ (function () {
4394
- function ManageSessionServices(idle, keepalive) {
4395
- this.idle = idle;
4396
- this.keepalive = keepalive;
4397
- this.appStateEmitter = new Subject();
4398
- }
4399
- /**
4400
- * @param {?} idleConfig
4401
- * @return {?}
4402
- */
4403
- ManageSessionServices.prototype.init = /**
4404
- * @param {?} idleConfig
4405
- * @return {?}
4406
- */
4407
- function (idleConfig) {
4408
- var _this = this;
4409
- this.idle.setIdleName(idleConfig.idleServiceName);
4410
- this.idle.setTimeout(idleConfig.timeout);
4411
- /** @type {?} */
4412
- var interrupt = new DocumentInterruptSource('mousedown keydown DOMMouseScroll mousewheel touchstart touchmove scroll');
4413
- this.idle.setInterrupts([interrupt]);
4414
- // adding delay so that user can click on sign out before the modal shuts
4415
- this.idle.onIdleEnd.pipe(delay(250)).subscribe((/**
4416
- * @return {?}
4417
- */
4418
- function () {
4419
- _this.appStateEmitter.next({ type: 'modal', countdown: undefined, isVisible: false });
4420
- }));
4421
- this.idle.onTimeout.subscribe((/**
4422
- * @return {?}
4423
- */
4424
- function () {
4425
- _this.appStateEmitter.next({ type: 'signout' });
4426
- }));
4427
- this.idle.onTimeoutWarning.pipe(map((/**
4428
- * @param {?} sec
4429
- * @return {?}
4430
- */
4431
- function (sec) { return (sec > 60) ? Math.ceil(sec / 60) + " minutes" : sec + " seconds"; })), distinctUntilChanged()).subscribe((/**
4432
- * @param {?} countdown
4433
- * @return {?}
4434
- */
4435
- function (countdown) {
4436
- _this.appStateEmitter.next({ type: 'modal', countdown: countdown, isVisible: true });
4437
- }));
4438
- this.keepalive.interval(idleConfig.keepAliveInSeconds);
4439
- this.keepalive.onPing.subscribe((/**
4440
- * @return {?}
4441
- */
4442
- function () {
4443
- _this.appStateEmitter.next({ type: 'keepalive' });
4444
- }));
4445
- /** @type {?} */
4446
- var idleInSeconds = Math.floor((idleConfig.idleMilliseconds / 1000)) - idleConfig.timeout;
4447
- this.idle.setIdle(idleInSeconds);
4448
- this.idle.watch();
4449
- };
4450
- /**
4451
- * @return {?}
4452
- */
4453
- ManageSessionServices.prototype.appStateChanges = /**
4454
- * @return {?}
4455
- */
4456
- function () {
4457
- return this.appStateEmitter.asObservable();
4458
- };
4459
- ManageSessionServices.decorators = [
4460
- { type: Injectable, args: [{
4461
- providedIn: 'root'
4462
- },] }
4463
- ];
4464
- /** @nocollapse */
4465
- ManageSessionServices.ctorParameters = function () { return [
4466
- { type: Idle },
4467
- { type: Keepalive }
4468
- ]; };
4469
- /** @nocollapse */ ManageSessionServices.ngInjectableDef = defineInjectable({ factory: function ManageSessionServices_Factory() { return new ManageSessionServices(inject(Idle), inject(Keepalive)); }, token: ManageSessionServices, providedIn: "root" });
4470
- return ManageSessionServices;
4471
- }());
4472
-
4473
- /**
4474
- * @fileoverview added by tsickle
4475
- * Generated from: lib/services/role-guard/role.service.ts
4476
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4477
- */
4478
- var RoleService = /** @class */ (function () {
4479
- function RoleService() {
4480
- this.pRoles = [];
4481
- }
4482
- Object.defineProperty(RoleService.prototype, "roles", {
4483
- get: /**
4484
- * @return {?}
4485
- */
4486
- function () {
4487
- return this.pRoles;
4488
- },
4489
- set: /**
4490
- * @param {?} roles
4491
- * @return {?}
4492
- */
4493
- function (roles) {
4494
- this.pRoles = roles;
4495
- },
4496
- enumerable: true,
4497
- configurable: true
4498
- });
4499
- RoleService.decorators = [
4500
- { type: Injectable, args: [{
4501
- providedIn: 'root'
4502
- },] }
4503
- ];
4504
- /** @nocollapse */ RoleService.ngInjectableDef = defineInjectable({ factory: function RoleService_Factory() { return new RoleService(); }, token: RoleService, providedIn: "root" });
4505
- return RoleService;
4506
- }());
4507
-
4508
- /**
4509
- * @fileoverview added by tsickle
4510
- * Generated from: lib/services/role-guard/role.guard.ts
4511
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4512
- */
4513
- /** @enum {number} */
4514
- var RoleMatching = {
4515
- ALL: 0,
4516
- ANY: 1,
4517
- };
4518
- RoleMatching[RoleMatching.ALL] = 'ALL';
4519
- RoleMatching[RoleMatching.ANY] = 'ANY';
4520
- var RoleGuard = /** @class */ (function () {
4521
- function RoleGuard(roleService, router) {
4522
- this.roleService = roleService;
4523
- this.router = router;
4524
- }
4525
- /**
4526
- * @param {?} route
4527
- * @return {?}
4528
- */
4529
- RoleGuard.prototype.canActivate = /**
4530
- * @param {?} route
4531
- * @return {?}
4532
- */
4533
- function (route) {
4534
- var _this = this;
4535
- /** @type {?} */
4536
- var roles = ((/** @type {?} */ (route.data.needsRole)));
4537
- /** @type {?} */
4538
- var check = (/**
4539
- * @param {?} roleRegEx
4540
- * @return {?}
4541
- */
4542
- function (roleRegEx) {
4543
- /** @type {?} */
4544
- var regex = new RegExp(roleRegEx);
4545
- return _this.roleService.roles.some((/**
4546
- * @param {?} role
4547
- * @return {?}
4548
- */
4549
- function (role) { return regex.test(role); }));
4550
- });
4551
- /** @type {?} */
4552
- var match = route.data.roleMatching === RoleMatching.ALL ? roles.every(check) : roles.some(check);
4553
- return match || this.router.parseUrl((/** @type {?} */ (route.data.noRoleMatchRedirect)));
4554
- };
4555
- RoleGuard.decorators = [
4556
- { type: Injectable, args: [{
4557
- providedIn: 'root'
4558
- },] }
4559
- ];
4560
- /** @nocollapse */
4561
- RoleGuard.ctorParameters = function () { return [
4562
- { type: RoleService },
4563
- { type: Router }
4564
- ]; };
4565
- /** @nocollapse */ RoleGuard.ngInjectableDef = defineInjectable({ factory: function RoleGuard_Factory() { return new RoleGuard(inject(RoleService), inject(Router)); }, token: RoleGuard, providedIn: "root" });
4566
- return RoleGuard;
4567
- }());
4568
-
4569
- /**
4570
- * @fileoverview added by tsickle
4571
- * Generated from: lib/services/timeout-notifications/timeout-notifications.service.ts
4572
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4573
- */
4574
- /**
4575
- * TimeoutNotificationsService
4576
- *
4577
- * The Timeout Notification Service allows your application to receive notifications
4578
- * when a User is approaching the the total time that a User has been idle for.
4579
- *
4580
- * This can be set by your application using the Timeout Notification Config object.
4581
- *
4582
- * Your application will then have to listen to events coming from the Timeout Notification Service,
4583
- * and handle these events within your application.
4584
- *
4585
- * @see README.md for implementation details and code, on how to implement the Timeout Notification
4586
- * Service within your application.
4587
- */
4588
- var TimeoutNotificationsService = /** @class */ (function () {
4589
- function TimeoutNotificationsService(idle, keepalive) {
4590
- this.idle = idle;
4591
- this.keepalive = keepalive;
4592
- /**
4593
- * Convert milliseconds to seconds.
4594
- *
4595
- * @param milliseconds - 1000
4596
- * @return seconds - 1
4597
- */
4598
- this.millisecondsToSeconds = (/**
4599
- * @param {?} milliseconds
4600
- * @return {?}
4601
- */
4602
- function (milliseconds) { return milliseconds / 1000; });
4603
- this.eventEmitter = new Subject();
4604
- }
4605
- /**
4606
- * Initialise
4607
- *
4608
- * Initialise the Timeout Notification Events.
4609
- *
4610
- * I made the decision not to make ' minutes' and ' seconds' configurable via input parameters -
4611
- * As I made an assumption that any Reform team would not need to change these to 'secs, mins' or 's, m'.
4612
- *
4613
- * idleModalDisplayTime and totalIdleTime need to be passed in, in milliseconds.
4614
- *
4615
- * @see README.md for more information on TimeoutNotificationService.
4616
- */
4617
- /**
4618
- * Initialise
4619
- *
4620
- * Initialise the Timeout Notification Events.
4621
- *
4622
- * I made the decision not to make ' minutes' and ' seconds' configurable via input parameters -
4623
- * As I made an assumption that any Reform team would not need to change these to 'secs, mins' or 's, m'.
4624
- *
4625
- * idleModalDisplayTime and totalIdleTime need to be passed in, in milliseconds.
4626
- *
4627
- * @see README.md for more information on TimeoutNotificationService.
4628
- * @param {?} config
4629
- * @return {?}
4630
- */
4631
- TimeoutNotificationsService.prototype.initialise = /**
4632
- * Initialise
4633
- *
4634
- * Initialise the Timeout Notification Events.
4635
- *
4636
- * I made the decision not to make ' minutes' and ' seconds' configurable via input parameters -
4637
- * As I made an assumption that any Reform team would not need to change these to 'secs, mins' or 's, m'.
4638
- *
4639
- * idleModalDisplayTime and totalIdleTime need to be passed in, in milliseconds.
4640
- *
4641
- * @see README.md for more information on TimeoutNotificationService.
4642
- * @param {?} config
4643
- * @return {?}
4644
- */
4645
- function (config) {
4646
- var _this = this;
4647
- /** @type {?} */
4648
- var DOCUMENT_INTERRUPTS = 'mousedown keydown DOMMouseScroll mousewheel touchstart touchmove scroll';
4649
- /** @type {?} */
4650
- var MINUTES = ' minutes';
4651
- /** @type {?} */
4652
- var SECONDS = ' seconds';
4653
- /** @type {?} */
4654
- var SIGNOUT_EVENT = 'sign-out';
4655
- /** @type {?} */
4656
- var COUNTDOWN_EVENT = 'countdown';
4657
- /** @type {?} */
4658
- var KEEP_ALIVE_EVENT = 'keep-alive';
4659
- var idleServiceName = config.idleServiceName, idleModalDisplayTime = config.idleModalDisplayTime, totalIdleTime = config.totalIdleTime;
4660
- this.idle.setIdleName(idleServiceName);
4661
- /** @type {?} */
4662
- var idleModalDisplayTimeInSeconds = this.millisecondsToSeconds(idleModalDisplayTime);
4663
- /** @type {?} */
4664
- var totalIdleTimeInSeconds = this.millisecondsToSeconds(totalIdleTime);
4665
- this.idle.setTimeout(idleModalDisplayTimeInSeconds);
4666
- /** @type {?} */
4667
- var interrupt = new DocumentInterruptSource(DOCUMENT_INTERRUPTS);
4668
- this.idle.setInterrupts([interrupt]);
4669
- this.idle.onTimeout.subscribe((/**
4670
- * @return {?}
4671
- */
4672
- function () {
4673
- _this.eventEmitter.next({ eventType: SIGNOUT_EVENT });
4674
- }));
4675
- this.idle.onTimeoutWarning.pipe(map((/**
4676
- * @param {?} sec
4677
- * @return {?}
4678
- */
4679
- function (sec) { return (sec > 60) ? Math.ceil(sec / 60) + MINUTES : sec + SECONDS; })), distinctUntilChanged()).subscribe((/**
4680
- * @param {?} countdown
4681
- * @return {?}
4682
- */
4683
- function (countdown) {
4684
- _this.eventEmitter.next({ eventType: COUNTDOWN_EVENT, readableCountdown: countdown });
4685
- }));
4686
- this.keepalive.onPing.subscribe((/**
4687
- * @return {?}
4688
- */
4689
- function () {
4690
- _this.eventEmitter.next({ eventType: KEEP_ALIVE_EVENT });
4691
- }));
4692
- /** @type {?} */
4693
- var idleInSeconds = Math.floor(totalIdleTimeInSeconds) - idleModalDisplayTimeInSeconds;
4694
- this.idle.setIdle(idleInSeconds);
4695
- this.idle.watch();
4696
- };
4697
- /**
4698
- * Expose the notification events, so that a 3rd party service can listen to the notifications.
4699
- */
4700
- /**
4701
- * Expose the notification events, so that a 3rd party service can listen to the notifications.
4702
- * @return {?}
4703
- */
4704
- TimeoutNotificationsService.prototype.notificationOnChange = /**
4705
- * Expose the notification events, so that a 3rd party service can listen to the notifications.
4706
- * @return {?}
4707
- */
4708
- function () {
4709
- return this.eventEmitter.asObservable();
4710
- };
4711
- TimeoutNotificationsService.decorators = [
4712
- { type: Injectable, args: [{
4713
- providedIn: 'root'
4714
- },] }
4715
- ];
4716
- /** @nocollapse */
4717
- TimeoutNotificationsService.ctorParameters = function () { return [
4718
- { type: Idle },
4719
- { type: Keepalive }
4720
- ]; };
4721
- /** @nocollapse */ TimeoutNotificationsService.ngInjectableDef = defineInjectable({ factory: function TimeoutNotificationsService_Factory() { return new TimeoutNotificationsService(inject(Idle), inject(Keepalive)); }, token: TimeoutNotificationsService, providedIn: "root" });
4722
- return TimeoutNotificationsService;
4723
- }());
4724
-
4725
- /**
4726
- * @fileoverview added by tsickle
4727
- * Generated from: lib/services/public-api.ts
4728
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4729
- */
4730
-
4731
- /**
4732
- * @fileoverview added by tsickle
4733
- * Generated from: lib/services/index.ts
4734
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4735
- */
4736
-
4737
- /**
4738
- * @fileoverview added by tsickle
4739
- * Generated from: public-api.ts
4740
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4741
- */
4742
-
4743
- /**
4744
- * @fileoverview added by tsickle
4745
- * Generated from: hmcts-rpx-xui-common-lib.ts
4746
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4747
- */
4748
-
4749
- export { COMMON_LIB_ROOT_GUARD, ExuiCommonLibModuleOptions, COMMON_COMPONENTS, COMMON_DIRECTIVES, GOV_UI_COMPONENTS, GOV_UI_DIRECTIVES, ExuiCommonLibModule, GovUiService, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, GovUkCheckboxComponent, GovUkCheckboxesComponent, GovUkDateComponent, GovUkErrorMessageComponent, GovUkFieldsetComponent, GovUkFileUploadComponent, GovUkFormGroupWrapperComponent, GovUkInputComponent, GovUkLabelComponent, GovUkRadioComponent, GovUkRadiosComponent, GovUkSelectComponent, GovukTableComponent, GovukTableColumnConfig, GovUkTextareaComponent, HmctsBannerComponent, HmctsErrorSummaryComponent, HmctsIdentityBarComponent, HmctsMainWrapperComponent, HmctsPrimaryNavigationComponent, HmctsSubNavigationComponent, RemoveHostDirective, BadgeColour, SECONDS_IN_A_DAY, AnonymousFeatureUser, LoggedInFeatureUser, FeatureToggleDirective, LetContext, LetDirective, AccessibilityComponent, CheckboxListComponent, ContactDetailsComponent, DueDateComponent, ExuiPageWrapperComponent, HmctsSessionDialogComponent, InviteUserFormComponent, InviteUserPermissionComponent, LoadingSpinnerComponent, SelectedCaseComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseComponent, ShareCaseConfirmComponent, TabComponent, TcConfirmComponent, TermsAndConditionsComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, UserDetailsComponent, UserListComponent, UserSelectComponent, CaseSharingStateService, FeatureToggleGuard, FeatureToggleService, LAUNCHDARKLYKEY, LaunchDarklyService, GoogleAnalyticsService, GoogleTagManagerService, HasLoadingState, LoadingService, ManageSessionServices, RoleMatching, RoleGuard, RoleService, TimeoutNotificationsService, windowProvider, windowToken, AccessibilityComponent as ɵt, CheckboxListComponent as ɵv, ContactDetailsComponent as ɵf, DueDateComponent as ɵu, ExuiPageWrapperComponent as ɵa, HmctsSessionDialogComponent as ɵg, InviteUserFormComponent as ɵk, InviteUserPermissionComponent as ɵj, LoadingSpinnerComponent as ɵz, SelectedCaseConfirmComponent as ɵr, SelectedCaseListComponent as ɵp, SelectedCaseComponent as ɵq, ServiceMessageComponent as ɵw, ServiceMessagesComponent as ɵx, ShareCaseConfirmComponent as ɵo, ShareCaseComponent as ɵl, TabComponent as ɵs, TcConfirmComponent as ɵe, TcDisplayHtmlComponent as ɵc, TcDisplayPlainComponent as ɵd, TermsAndConditionsComponent as ɵb, UserDetailsComponent as ɵi, UserListComponent as ɵh, UserSelectComponent as ɵm, FeatureToggleDirective as ɵba, LetContext as ɵbb, LetDirective as ɵbc, GovUkCheckboxComponent as ɵbl, GovUkCheckboxesComponent as ɵbr, GovUkDateComponent as ɵbq, GovUkErrorMessageComponent as ɵbo, GovUkFieldsetComponent as ɵbp, GovUkFileUploadComponent as ɵbw, GovUkFormGroupWrapperComponent as ɵbm, GovUkInputComponent as ɵbk, GovUkLabelComponent as ɵbn, GovUkRadioComponent as ɵbs, GovUkRadiosComponent as ɵbt, GovUkSelectComponent as ɵbu, GovukTableComponent as ɵbj, GovUkTextareaComponent as ɵbv, HmctsBannerComponent as ɵbi, HmctsErrorSummaryComponent as ɵbg, HmctsIdentityBarComponent as ɵbd, HmctsMainWrapperComponent as ɵbh, HmctsPrimaryNavigationComponent as ɵbf, HmctsSubNavigationComponent as ɵbe, RemoveHostDirective as ɵbx, CaseSharingStateService as ɵn, FeatureToggleService as ɵy };
4750
-
4751
- //# sourceMappingURL=hmcts-rpx-xui-common-lib.js.map