@hmcts/rpx-xui-common-lib 1.7.0-ao-rectification → 1.8.0-angular-upgrade-9

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 (284) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +4154 -6312
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +15 -1
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-rpx-xui-common-lib.js +29 -33
  6. package/esm2015/lib/components/accessibility/accessibility.component.js +13 -17
  7. package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +45 -127
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +16 -23
  9. package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +31 -78
  10. package/esm2015/lib/components/due-date/due-date.component.js +24 -110
  11. package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +29 -34
  12. package/esm2015/lib/components/find-location/find-location.component.js +62 -132
  13. package/esm2015/lib/components/find-person/find-person.component.js +93 -174
  14. package/esm2015/lib/components/generic-filter/generic-filter-utils.js +11 -55
  15. package/esm2015/lib/components/generic-filter/generic-filter.component.js +54 -290
  16. package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +20 -29
  17. package/esm2015/lib/components/index.js +2 -7
  18. package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +23 -33
  19. package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +34 -35
  20. package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +16 -22
  21. package/esm2015/lib/components/pagination/pagination.component.js +28 -38
  22. package/esm2015/lib/components/public_api.js +33 -34
  23. package/esm2015/lib/components/search-judicials/search-judicials.component.js +163 -0
  24. package/esm2015/lib/components/search-location/search-location.component.js +79 -180
  25. package/esm2015/lib/components/search-venue/search-venue.component.js +154 -0
  26. package/esm2015/lib/components/selected-case/selected-case.component.js +54 -191
  27. package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +22 -53
  28. package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +38 -68
  29. package/esm2015/lib/components/service-message/service-message.component.js +23 -32
  30. package/esm2015/lib/components/service-messages/service-messages.component.js +29 -77
  31. package/esm2015/lib/components/share-case/share-case.component.js +45 -104
  32. package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +27 -50
  33. package/esm2015/lib/components/tab/tab.component.js +19 -37
  34. package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +20 -29
  35. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +13 -17
  36. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +13 -17
  37. package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +16 -23
  38. package/esm2015/lib/components/user-details/user-details.component.js +47 -57
  39. package/esm2015/lib/components/user-list/user-list.component.js +19 -83
  40. package/esm2015/lib/components/user-select/user-select.component.js +23 -64
  41. package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +21 -67
  42. package/esm2015/lib/directives/index.js +2 -7
  43. package/esm2015/lib/directives/let/let.directive.js +16 -49
  44. package/esm2015/lib/directives/public-api.js +3 -8
  45. package/esm2015/lib/exui-common-lib.module.js +35 -41
  46. package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +23 -34
  47. package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +18 -23
  48. package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +30 -68
  49. package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +19 -25
  50. package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +19 -28
  51. package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +23 -36
  52. package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +23 -28
  53. package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +24 -35
  54. package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +15 -22
  55. package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +23 -35
  56. package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +18 -23
  57. package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +27 -34
  58. package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +32 -47
  59. package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +22 -29
  60. package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +20 -26
  61. package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +26 -56
  62. package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +17 -27
  63. package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +40 -52
  64. package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +29 -36
  65. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +18 -35
  66. package/esm2015/lib/gov-ui/components/index.js +2 -7
  67. package/esm2015/lib/gov-ui/components/public_api.js +21 -7
  68. package/esm2015/lib/gov-ui/directives/index.js +2 -0
  69. package/esm2015/lib/gov-ui/directives/public_api.js +2 -0
  70. package/esm2015/lib/gov-ui/directives/remove-host.directive.js +12 -30
  71. package/esm2015/lib/gov-ui/gov-ui.service.js +12 -16
  72. package/esm2015/lib/gov-ui/index.js +2 -7
  73. package/esm2015/lib/gov-ui/models/banner-data-model.js +1 -16
  74. package/esm2015/lib/gov-ui/models/checkboxes-model.js +1 -22
  75. package/esm2015/lib/gov-ui/models/error-messages-model.js +1 -16
  76. package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +1 -36
  77. package/esm2015/lib/gov-ui/models/index.js +1 -7
  78. package/esm2015/lib/gov-ui/models/isession-storage.interface.js +1 -24
  79. package/esm2015/lib/gov-ui/models/public_api.js +1 -10
  80. package/esm2015/lib/gov-ui/public_api.js +5 -9
  81. package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +4 -14
  82. package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +12 -48
  83. package/esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js +5 -24
  84. package/esm2015/lib/gov-ui/validators/date.validator.js +3 -20
  85. package/esm2015/lib/gov-ui/validators/index.js +2 -7
  86. package/esm2015/lib/gov-ui/validators/public_api.js +4 -9
  87. package/esm2015/lib/gov-ui/validators/radio-group.validator.js +3 -15
  88. package/esm2015/lib/models/case-share.model.js +1 -26
  89. package/esm2015/lib/models/contact-details.model.js +7 -31
  90. package/esm2015/lib/models/due-date.model.js +7 -14
  91. package/esm2015/lib/models/feature-user.js +1 -16
  92. package/esm2015/lib/models/filter.model.js +1 -110
  93. package/esm2015/lib/models/idle-config.model.js +1 -20
  94. package/esm2015/lib/models/index.js +6 -19
  95. package/esm2015/lib/models/location.model.js +1 -108
  96. package/esm2015/lib/models/person.model.js +17 -66
  97. package/esm2015/lib/models/public_api.js +4 -11
  98. package/esm2015/lib/models/search-options.model.js +1 -22
  99. package/esm2015/lib/models/tcDocument.model.js +1 -18
  100. package/esm2015/lib/models/timeout-notification.model.js +1 -18
  101. package/esm2015/lib/models/user-details.model.js +1 -22
  102. package/esm2015/lib/models/user.model.js +1 -25
  103. package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +19 -92
  104. package/esm2015/lib/services/cookie/cookie.service.js +19 -78
  105. package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +16 -51
  106. package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +11 -35
  107. package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +21 -101
  108. package/esm2015/lib/services/filter/filter.service.js +11 -63
  109. package/esm2015/lib/services/find-person/find-person.service.js +28 -125
  110. package/esm2015/lib/services/google-analytics/google-analytics.service.js +21 -70
  111. package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +23 -71
  112. package/esm2015/lib/services/index.js +2 -7
  113. package/esm2015/lib/services/loading/loading.service.js +11 -48
  114. package/esm2015/lib/services/locations/location.service.js +27 -30
  115. package/esm2015/lib/services/manage-session/manage-session.services.js +21 -70
  116. package/esm2015/lib/services/public-api.js +13 -18
  117. package/esm2015/lib/services/role-guard/role.guard.js +24 -61
  118. package/esm2015/lib/services/role-guard/role.service.js +11 -28
  119. package/esm2015/lib/services/session-storage/session-storage.service.js +12 -24
  120. package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +20 -82
  121. package/esm2015/lib/window.js +1 -10
  122. package/esm2015/public-api.js +8 -13
  123. package/esm5/hmcts-rpx-xui-common-lib.js +29 -33
  124. package/esm5/lib/components/accessibility/accessibility.component.js +10 -15
  125. package/esm5/lib/components/checkbox-list/checkbox-list.component.js +57 -232
  126. package/esm5/lib/components/contact-details/contact-details.component.js +14 -22
  127. package/esm5/lib/components/cookie-banner/cookie-banner.component.js +36 -106
  128. package/esm5/lib/components/due-date/due-date.component.js +29 -142
  129. package/esm5/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +27 -33
  130. package/esm5/lib/components/find-location/find-location.component.js +72 -168
  131. package/esm5/lib/components/find-person/find-person.component.js +97 -193
  132. package/esm5/lib/components/generic-filter/generic-filter-utils.js +13 -57
  133. package/esm5/lib/components/generic-filter/generic-filter.component.js +83 -409
  134. package/esm5/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +19 -32
  135. package/esm5/lib/components/index.js +2 -7
  136. package/esm5/lib/components/invite-user-form/invite-user-form.component.js +23 -37
  137. package/esm5/lib/components/invite-user-permissions/invite-user-permission.component.js +32 -34
  138. package/esm5/lib/components/loading-spinner/loading-spinner.component.js +14 -21
  139. package/esm5/lib/components/pagination/pagination.component.js +28 -45
  140. package/esm5/lib/components/public_api.js +33 -34
  141. package/esm5/lib/components/search-judicials/search-judicials.component.js +171 -0
  142. package/esm5/lib/components/search-location/search-location.component.js +87 -210
  143. package/esm5/lib/components/search-venue/search-venue.component.js +162 -0
  144. package/esm5/lib/components/selected-case/selected-case.component.js +72 -279
  145. package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +22 -61
  146. package/esm5/lib/components/selected-case-list/selected-case-list.component.js +39 -82
  147. package/esm5/lib/components/service-message/service-message.component.js +22 -36
  148. package/esm5/lib/components/service-messages/service-messages.component.js +30 -91
  149. package/esm5/lib/components/share-case/share-case.component.js +52 -138
  150. package/esm5/lib/components/share-case-confirm/share-case-confirm.component.js +25 -49
  151. package/esm5/lib/components/tab/tab.component.js +18 -41
  152. package/esm5/lib/components/tc-confirm/tc-confirm.component.js +19 -32
  153. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +10 -15
  154. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +10 -15
  155. package/esm5/lib/components/terms-and-conditions/terms-and-conditions.component.js +14 -22
  156. package/esm5/lib/components/user-details/user-details.component.js +48 -71
  157. package/esm5/lib/components/user-list/user-list.component.js +18 -103
  158. package/esm5/lib/components/user-select/user-select.component.js +27 -92
  159. package/esm5/lib/directives/feature-toggle/feature-toggle.directive.js +21 -70
  160. package/esm5/lib/directives/index.js +2 -7
  161. package/esm5/lib/directives/let/let.directive.js +15 -51
  162. package/esm5/lib/directives/public-api.js +3 -8
  163. package/esm5/lib/exui-common-lib.module.js +26 -35
  164. package/esm5/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +22 -37
  165. package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +16 -22
  166. package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +32 -89
  167. package/esm5/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +17 -24
  168. package/esm5/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +18 -31
  169. package/esm5/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +23 -43
  170. package/esm5/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +21 -27
  171. package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +24 -45
  172. package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +13 -21
  173. package/esm5/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +18 -44
  174. package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +16 -22
  175. package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +26 -37
  176. package/esm5/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +31 -51
  177. package/esm5/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +21 -32
  178. package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +18 -25
  179. package/esm5/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +28 -71
  180. package/esm5/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +16 -27
  181. package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +41 -60
  182. package/esm5/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +28 -36
  183. package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +16 -34
  184. package/esm5/lib/gov-ui/components/index.js +2 -7
  185. package/esm5/lib/gov-ui/components/public_api.js +21 -7
  186. package/esm5/lib/gov-ui/directives/index.js +2 -0
  187. package/esm5/lib/gov-ui/directives/public_api.js +2 -0
  188. package/esm5/lib/gov-ui/directives/remove-host.directive.js +10 -29
  189. package/esm5/lib/gov-ui/gov-ui.service.js +9 -14
  190. package/esm5/lib/gov-ui/index.js +2 -7
  191. package/esm5/lib/gov-ui/models/banner-data-model.js +1 -16
  192. package/esm5/lib/gov-ui/models/checkboxes-model.js +1 -22
  193. package/esm5/lib/gov-ui/models/error-messages-model.js +1 -16
  194. package/esm5/lib/gov-ui/models/gov-ui-config-model.js +1 -36
  195. package/esm5/lib/gov-ui/models/index.js +1 -7
  196. package/esm5/lib/gov-ui/models/isession-storage.interface.js +1 -24
  197. package/esm5/lib/gov-ui/models/public_api.js +1 -10
  198. package/esm5/lib/gov-ui/public_api.js +5 -9
  199. package/esm5/lib/gov-ui/util/helpers/html-templates.helper.js +3 -34
  200. package/esm5/lib/gov-ui/util/session-storage/session-storage-utils.js +12 -48
  201. package/esm5/lib/gov-ui/validators/checkboxes-be-checked.validator.js +5 -24
  202. package/esm5/lib/gov-ui/validators/date.validator.js +3 -20
  203. package/esm5/lib/gov-ui/validators/index.js +2 -7
  204. package/esm5/lib/gov-ui/validators/public_api.js +4 -9
  205. package/esm5/lib/gov-ui/validators/radio-group.validator.js +3 -15
  206. package/esm5/lib/models/case-share.model.js +1 -26
  207. package/esm5/lib/models/contact-details.model.js +7 -31
  208. package/esm5/lib/models/due-date.model.js +7 -14
  209. package/esm5/lib/models/feature-user.js +1 -16
  210. package/esm5/lib/models/filter.model.js +1 -110
  211. package/esm5/lib/models/idle-config.model.js +1 -20
  212. package/esm5/lib/models/index.js +6 -19
  213. package/esm5/lib/models/location.model.js +1 -108
  214. package/esm5/lib/models/person.model.js +17 -66
  215. package/esm5/lib/models/public_api.js +4 -11
  216. package/esm5/lib/models/search-options.model.js +1 -22
  217. package/esm5/lib/models/tcDocument.model.js +1 -18
  218. package/esm5/lib/models/timeout-notification.model.js +1 -18
  219. package/esm5/lib/models/user-details.model.js +1 -22
  220. package/esm5/lib/models/user.model.js +1 -25
  221. package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +27 -132
  222. package/esm5/lib/services/cookie/cookie.service.js +21 -104
  223. package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +13 -61
  224. package/esm5/lib/services/feature-toggle/feature-toggle.service.js +12 -70
  225. package/esm5/lib/services/feature-toggle/launch-darkly.service.js +21 -142
  226. package/esm5/lib/services/filter/filter.service.js +15 -101
  227. package/esm5/lib/services/find-person/find-person.service.js +29 -141
  228. package/esm5/lib/services/google-analytics/google-analytics.service.js +21 -78
  229. package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +23 -79
  230. package/esm5/lib/services/index.js +2 -7
  231. package/esm5/lib/services/loading/loading.service.js +14 -69
  232. package/esm5/lib/services/locations/location.service.js +19 -34
  233. package/esm5/lib/services/manage-session/manage-session.services.js +20 -73
  234. package/esm5/lib/services/public-api.js +13 -18
  235. package/esm5/lib/services/role-guard/role.guard.js +22 -60
  236. package/esm5/lib/services/role-guard/role.service.js +10 -28
  237. package/esm5/lib/services/session-storage/session-storage.service.js +12 -61
  238. package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +19 -111
  239. package/esm5/lib/window.js +1 -10
  240. package/esm5/public-api.js +8 -13
  241. package/fesm2015/hmcts-rpx-xui-common-lib.js +3150 -4658
  242. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  243. package/fesm5/hmcts-rpx-xui-common-lib.js +2951 -5334
  244. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  245. package/hmcts-rpx-xui-common-lib.d.ts +27 -26
  246. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  247. package/lib/components/checkbox-list/checkbox-list.component.d.ts +6 -5
  248. package/lib/components/due-date/due-date.component.d.ts +4 -4
  249. package/lib/components/find-location/find-location.component.d.ts +5 -3
  250. package/lib/components/generic-filter/generic-filter.component.d.ts +4 -2
  251. package/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.d.ts +1 -1
  252. package/lib/components/invite-user-form/invite-user-form.component.d.ts +2 -2
  253. package/lib/components/public_api.d.ts +9 -5
  254. package/lib/components/search-judicials/search-judicials.component.d.ts +37 -0
  255. package/lib/components/search-location/search-location.component.d.ts +4 -2
  256. package/lib/components/search-venue/search-venue.component.d.ts +37 -0
  257. package/lib/components/user-list/user-list.component.d.ts +0 -8
  258. package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +1 -1
  259. package/lib/directives/let/let.directive.d.ts +1 -1
  260. package/lib/exui-common-lib.module.d.ts +3 -1
  261. package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +1 -1
  262. package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +1 -1
  263. package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +1 -1
  264. package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +1 -1
  265. package/lib/gov-ui/components/public_api.d.ts +19 -0
  266. package/lib/gov-ui/directives/index.d.ts +1 -0
  267. package/lib/gov-ui/directives/public_api.d.ts +1 -0
  268. package/lib/gov-ui/public_api.d.ts +2 -1
  269. package/lib/models/filter.model.d.ts +1 -0
  270. package/lib/models/index.d.ts +0 -1
  271. package/lib/models/person.model.d.ts +12 -0
  272. package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +1 -1
  273. package/lib/services/find-person/find-person.service.d.ts +2 -1
  274. package/lib/services/loading/loading.service.d.ts +2 -2
  275. package/lib/services/locations/location.service.d.ts +8 -0
  276. package/lib/services/role-guard/role.service.d.ts +2 -1
  277. package/lib/window.d.ts +2 -2
  278. package/package.json +3 -8
  279. package/esm2015/lib/components/pagination-v1/pagination.component.js +0 -130
  280. package/esm2015/lib/models/pagination.model.js +0 -16
  281. package/esm5/lib/components/pagination-v1/pagination.component.js +0 -144
  282. package/esm5/lib/models/pagination.model.js +0 -16
  283. package/lib/components/pagination-v1/pagination.component.d.ts +0 -19
  284. package/lib/models/pagination.model.d.ts +0 -4
@@ -25,19 +25,20 @@ export declare class CheckboxListComponent<T> implements OnChanges {
25
25
  * Note: This array is immutable, which means pushing and popping will
26
26
  * have no effect on which checkboxes are selected.
27
27
  */
28
- selection: T[];
28
+ get selection(): T[];
29
+ set selection(value: T[]);
29
30
  private pSelection;
30
31
  private pSelectionMade;
31
32
  /**
32
33
  * Indicates whether or not all of the items are selected.
33
34
  */
34
- readonly allSelected: boolean;
35
+ get allSelected(): boolean;
35
36
  ngOnChanges(): void;
36
37
  /**
37
38
  * Indicates whether or not there are any options to render.
38
39
  */
39
- readonly hasOptions: boolean;
40
- readonly isFunctional: boolean;
40
+ get hasOptions(): boolean;
41
+ get isFunctional(): boolean;
41
42
  /**
42
43
  * Indicates whether or not an item is part of the current selection.
43
44
  * @param item The item in question.
@@ -62,7 +63,7 @@ export declare class CheckboxListComponent<T> implements OnChanges {
62
63
  * @param item The item to check in the options.
63
64
  */
64
65
  containsItem(items: T[], item: T): boolean;
65
- private readonly hasPreselection;
66
+ private get hasPreselection();
66
67
  private setupPreselection;
67
68
  private getSelection;
68
69
  private checkSelection;
@@ -36,13 +36,13 @@ export declare class DueDateComponent implements OnChanges {
36
36
  */
37
37
  mediumUrgencyCutoff: number;
38
38
  private pBadge;
39
- readonly badge: string;
39
+ get badge(): string;
40
40
  private pLabel;
41
- readonly label: string;
41
+ get label(): string;
42
42
  private pAccessibleLabel;
43
- readonly accessibleLabel: string;
43
+ get accessibleLabel(): string;
44
44
  private pDaysDiff;
45
- readonly daysDiff: number;
45
+ get daysDiff(): number;
46
46
  ngOnChanges(): void;
47
47
  private handleInputChanges;
48
48
  private getDaysDifference;
@@ -9,15 +9,17 @@ export declare class FindLocationComponent {
9
9
  form: FormGroup;
10
10
  field: FilterFieldConfig;
11
11
  fields: FilterFieldConfig[];
12
- title: string;
12
+ locationTitle: string;
13
13
  locations: LocationByEPIMMSModel[];
14
14
  tempSelectedLocation: LocationByEPIMMSModel;
15
15
  serviceIds: string;
16
16
  searchLocationComponent: SearchLocationComponent;
17
17
  private pServices;
18
18
  private pDisabled;
19
- disabled: boolean;
20
- services: string[];
19
+ get disabled(): boolean;
20
+ set disabled(value: boolean);
21
+ get services(): string[];
22
+ set services(value: string[]);
21
23
  addLocation(): void;
22
24
  removeLocation(location: LocationByEPIMMSModel): void;
23
25
  onInputChanged(term: string): void;
@@ -11,9 +11,11 @@ export declare class GenericFilterComponent implements OnInit, OnDestroy {
11
11
  formSub: Subscription;
12
12
  constructor(filterService: FilterService, fb: FormBuilder);
13
13
  private _config;
14
- config: FilterConfig;
14
+ get config(): FilterConfig;
15
+ set config(value: FilterConfig);
15
16
  private _settings?;
16
- settings: FilterSetting;
17
+ get settings(): FilterSetting;
18
+ set settings(value: FilterSetting);
17
19
  private static addFormValidators;
18
20
  ngOnInit(): void;
19
21
  ngOnDestroy(): void;
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  export declare class HmctsSessionDialogComponent {
3
3
  positionTop: string;
4
- close: EventEmitter<{}>;
4
+ close: EventEmitter<any>;
5
5
  constructor();
6
6
  onClose(): void;
7
7
  }
@@ -2,8 +2,8 @@ import { EventEmitter } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  export declare class InviteUserFormComponent {
4
4
  isInvalid: any;
5
- submitForm: EventEmitter<{}>;
5
+ submitForm: EventEmitter<any>;
6
6
  inviteUserForm: FormGroup;
7
- errorMessages: any;
7
+ set errorMessages(value: any);
8
8
  onSubmit(): void;
9
9
  }
@@ -1,12 +1,20 @@
1
1
  export * from './accessibility/accessibility.component';
2
2
  export * from './checkbox-list/checkbox-list.component';
3
3
  export * from './contact-details/contact-details.component';
4
+ export * from './cookie-banner/cookie-banner.component';
4
5
  export * from './due-date/due-date.component';
6
+ export * from './exui-main-wrapper/exui-page-wrapper.component';
7
+ export * from './find-location/find-location.component';
8
+ export * from './find-person/find-person.component';
5
9
  export * from './generic-filter/generic-filter.component';
6
10
  export * from './hmcts-session-dialog/hmcts-session-dialog.component';
7
11
  export * from './invite-user-form/invite-user-form.component';
8
12
  export * from './invite-user-permissions/invite-user-permission.component';
9
13
  export * from './loading-spinner/loading-spinner.component';
14
+ export * from './pagination/pagination.component';
15
+ export * from './search-location/search-location.component';
16
+ export * from './search-venue/search-venue.component';
17
+ export * from './search-judicials/search-judicials.component';
10
18
  export * from './selected-case-confirm/selected-case-confirm.component';
11
19
  export * from './selected-case-list/selected-case-list.component';
12
20
  export * from './selected-case/selected-case.component';
@@ -21,8 +29,4 @@ export * from './terms-and-conditions/tc-display/tc-display-plain/tc-display-pla
21
29
  export * from './terms-and-conditions/terms-and-conditions.component';
22
30
  export * from './user-details/user-details.component';
23
31
  export * from './user-list/user-list.component';
24
- export * from './cookie-banner/cookie-banner.component';
25
- export * from './find-location/find-location.component';
26
- export * from './search-location/search-location.component';
27
- export * from './pagination/pagination.component';
28
- export * from './pagination-v1/pagination.component';
32
+ export * from './user-select/user-select.component';
@@ -0,0 +1,37 @@
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { JudicialUserModel } from '../../models';
5
+ import { FindAPersonService } from '../../services/find-person/find-person.service';
6
+ export declare class SearchJudicialsComponent implements OnInit {
7
+ private readonly judicialService;
8
+ formGroup: FormGroup;
9
+ control: AbstractControl;
10
+ disabled: boolean;
11
+ selectedJudicials: JudicialUserModel[];
12
+ submitted?: boolean;
13
+ placeholderContent: string;
14
+ showAutocomplete: boolean;
15
+ displayedJudicials: JudicialUserModel[];
16
+ judicialChanged: EventEmitter<JudicialUserModel>;
17
+ idValue: string;
18
+ errorMessage: string;
19
+ serviceId: string;
20
+ autoCompleteInputBox: ElementRef<HTMLInputElement>;
21
+ selectedJudicial: JudicialUserModel;
22
+ private readonly minSearchCharacters;
23
+ keyUpSubject$: Subject<string>;
24
+ searchInProgress: boolean;
25
+ constructor(judicialService: FindAPersonService, fb: FormBuilder);
26
+ ngOnInit(): void;
27
+ onKeyDown(): void;
28
+ onKeyUp(event: any): void;
29
+ onFocus(): void;
30
+ get displayedJudicialsDuplicationFiltered(): JudicialUserModel[];
31
+ filter(term: string): void;
32
+ onSelectionChange(selection?: JudicialUserModel): void;
33
+ search(currentValue: string): void;
34
+ getDisplayName(selectedJudicial: JudicialUserModel): string;
35
+ searchJudicials(term: string, serviceId: string): Observable<JudicialUserModel[]>;
36
+ getControlValueDisplayText(): string;
37
+ }
@@ -24,8 +24,10 @@ export declare class SearchLocationComponent implements OnInit {
24
24
  private pSelectedLocations;
25
25
  private pReset;
26
26
  constructor(locationService: LocationService, fb: FormBuilder, cd: ChangeDetectorRef);
27
- reset: boolean;
28
- selectedLocations: any[];
27
+ get reset(): boolean;
28
+ set reset(value: boolean);
29
+ get selectedLocations(): any[];
30
+ set selectedLocations(value: any[]);
29
31
  ngOnInit(): void;
30
32
  filter(term: string): void;
31
33
  onSelectionChange(location: LocationByEPIMMSModel): void;
@@ -0,0 +1,37 @@
1
+ import { AfterContentInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { LocationByEPIMMSModel } from '../../models/location.model';
5
+ import { LocationService } from '../../services/locations/location.service';
6
+ export declare class SearchVenueComponent implements OnInit, AfterContentInit {
7
+ private readonly locationService;
8
+ control: AbstractControl;
9
+ disabled: boolean;
10
+ locationType: string;
11
+ selectedLocations: LocationByEPIMMSModel[];
12
+ serviceIds: string;
13
+ submitted?: boolean;
14
+ autoCompleteInputBox: ElementRef<HTMLInputElement>;
15
+ findLocationFormGroup: FormGroup;
16
+ showAutocomplete: boolean;
17
+ displayedLocations: LocationByEPIMMSModel[];
18
+ locationChanged: EventEmitter<LocationByEPIMMSModel>;
19
+ selectedLocation: LocationByEPIMMSModel;
20
+ private readonly minSearchCharacters;
21
+ keyUpSubject$: Subject<string>;
22
+ readyAfterContent: boolean;
23
+ searchInProgress: boolean;
24
+ constructor(locationService: LocationService, fb: FormBuilder);
25
+ ngAfterContentInit(): void;
26
+ ngOnInit(): void;
27
+ onKeyDown(): void;
28
+ onKeyUp(event: any): void;
29
+ onFocus(): void;
30
+ get displayedLocationsDuplicationFiltered(): LocationByEPIMMSModel[];
31
+ filter(term: string): void;
32
+ onSelectionChange(selection?: LocationByEPIMMSModel): void;
33
+ search(currentValue: string): void;
34
+ getDisplayName(selectedLocation: LocationByEPIMMSModel): string;
35
+ searchLocations(term: string): Observable<LocationByEPIMMSModel[]>;
36
+ getControlCourtNameValue(): string;
37
+ }
@@ -1,15 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { PaginationParameter } from '../../models/pagination.model';
3
2
  import { User } from '../../models/user.model';
4
3
  export declare class UserListComponent {
5
4
  users: User[];
6
5
  userClick: EventEmitter<User>;
7
- pagination: PaginationParameter;
8
- moreResultsToGo: boolean;
9
- constructor();
10
6
  onUserClick(user: User): void;
11
- onPaginationHandler(pageNumber: number): void;
12
- getFirstResult(rows: User[]): number;
13
- getLastResult(rows: User[]): number;
14
- getTotalResults(rows: User[]): number;
15
7
  }
@@ -6,7 +6,7 @@ export declare class FeatureToggleDirective implements OnDestroy {
6
6
  private readonly templateRef;
7
7
  private feature;
8
8
  private subscription;
9
- xuilibFeatureToggle: string;
9
+ set xuilibFeatureToggle(feature: string);
10
10
  constructor(service: FeatureToggleService, viewContainer: ViewContainerRef, templateRef: TemplateRef<any>);
11
11
  ngOnDestroy(): void;
12
12
  private updateSubscription;
@@ -7,5 +7,5 @@ export declare class LetDirective<T = any> {
7
7
  private readonly viewContainer;
8
8
  private readonly context;
9
9
  constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>);
10
- xuilibLet: T;
10
+ set xuilibLet(condition: T);
11
11
  }
@@ -2,7 +2,9 @@ import { AccessibilityComponent } from './components/accessibility/accessibility
2
2
  import { CookieBannerComponent } from './components/cookie-banner/cookie-banner.component';
3
3
  import { FindPersonComponent } from './components/find-person/find-person.component';
4
4
  import { GenericFilterComponent } from './components/generic-filter/generic-filter.component';
5
+ import { SearchJudicialsComponent } from './components/search-judicials/search-judicials.component';
5
6
  import { SearchLocationComponent } from './components/search-location/search-location.component';
7
+ import { SearchVenueComponent } from './components/search-venue/search-venue.component';
6
8
  import { SelectedCaseConfirmComponent } from './components/selected-case-confirm/selected-case-confirm.component';
7
9
  import { SelectedCaseListComponent } from './components/selected-case-list/selected-case-list.component';
8
10
  import { SelectedCaseComponent } from './components/selected-case/selected-case.component';
@@ -23,7 +25,7 @@ import { HmctsIdentityBarComponent } from './gov-ui/components/hmcts-identity-ba
23
25
  import { HmctsMainWrapperComponent } from './gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component';
24
26
  import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
25
27
  import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
26
- export declare const COMMON_COMPONENTS: (typeof AccessibilityComponent | typeof GenericFilterComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof FeatureToggleDirective | typeof LetDirective | typeof FindPersonComponent)[];
28
+ export declare const COMMON_COMPONENTS: (typeof AccessibilityComponent | typeof CookieBannerComponent | typeof SearchLocationComponent | typeof FindPersonComponent | typeof GenericFilterComponent | typeof SearchVenueComponent | typeof SearchJudicialsComponent | typeof SelectedCaseConfirmComponent | typeof SelectedCaseListComponent | typeof SelectedCaseComponent | typeof ServiceMessagesComponent | typeof ShareCaseConfirmComponent | typeof ShareCaseComponent | typeof FeatureToggleDirective | typeof LetDirective)[];
27
29
  export declare const GOV_UI_COMPONENTS: (typeof HmctsIdentityBarComponent | typeof HmctsSubNavigationComponent | typeof HmctsErrorSummaryComponent | typeof HmctsMainWrapperComponent | typeof HmctsBannerComponent | typeof GovukTableComponent | typeof GovUkFormGroupWrapperComponent | typeof GovUkLabelComponent | typeof GovUkErrorMessageComponent | typeof GovUkCheckboxesComponent | typeof GovUkRadioComponent | typeof RemoveHostDirective)[];
28
30
  export declare class ExuiCommonLibModule {
29
31
  }
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  export declare class HmctsErrorSummaryComponent implements AfterViewInit, OnChanges {
3
3
  private readonly document;
4
- errorMessages: any;
4
+ set errorMessages(value: any);
5
5
  header: string;
6
6
  showWarningMessage: boolean;
7
7
  messages: object[];
@@ -1,5 +1,5 @@
1
1
  export declare class HmctsIdentityBarComponent {
2
- content: any;
2
+ set content(value: any);
3
3
  value: string;
4
4
  constructor();
5
5
  }
@@ -12,7 +12,7 @@ export declare class HmctsMainWrapperComponent implements OnInit {
12
12
  message: any;
13
13
  }[];
14
14
  };
15
- banner: BannerDataModel;
15
+ set banner(value: BannerDataModel);
16
16
  actionButtons: {
17
17
  name: string;
18
18
  class: string;
@@ -1,5 +1,5 @@
1
1
  export declare class HmctsPrimaryNavigationComponent {
2
- userLoggedIn: any;
2
+ set userLoggedIn(value: any);
3
3
  label: string;
4
4
  items: {
5
5
  active: boolean;
@@ -1 +1,20 @@
1
+ export * from './gov-uk-checkbox/gov-uk-checkbox.component';
2
+ export * from './gov-uk-checkboxes/gov-uk-checkboxes.component';
3
+ export * from './gov-uk-date/gov-uk-date.component';
4
+ export * from './gov-uk-error-message/gov-uk-error-message.component';
5
+ export * from './gov-uk-fieldset/gov-uk-fieldset.component';
6
+ export * from './gov-uk-file-upload/gov-uk-file-upload.component';
7
+ export * from './gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component';
8
+ export * from './gov-uk-input/gov-uk-input.component';
9
+ export * from './gov-uk-label/gov-uk-label.component';
10
+ export * from './gov-uk-radio/gov-uk-radio.component';
11
+ export * from './gov-uk-radios/gov-uk-radios.component';
12
+ export * from './gov-uk-select/gov-uk-select.component';
13
+ export * from './gov-uk-table/gov-uk-table.component';
14
+ export * from './gov-uk-textarea/gov-uk-textarea.component';
15
+ export * from './hmcts-banner/hmcts-banner.component';
16
+ export * from './hmcts-error-summary/hmcts-error-summary.component';
17
+ export * from './hmcts-identity-bar/hmcts-identity-bar.component';
18
+ export * from './hmcts-main-wrapper/hmcts-main-wrapper.component';
19
+ export * from './hmcts-primary-navigation/hmcts-primary-navigation.component';
1
20
  export * from './hmcts-sub-navigation/hmcts-sub-navigation.component';
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1 @@
1
+ export * from './remove-host.directive';
@@ -1,3 +1,4 @@
1
+ export * from './components';
2
+ export * from './directives';
1
3
  export * from './gov-ui.service';
2
4
  export * from './validators';
3
- export * from './components';
@@ -37,6 +37,7 @@ export interface FilterFieldConfig {
37
37
  domain?: PersonRole;
38
38
  title?: string;
39
39
  subTitle?: string;
40
+ locationTitle?: string;
40
41
  }
41
42
  export interface FilterSetting {
42
43
  id: string;
@@ -10,4 +10,3 @@ export * from './tcDocument.model';
10
10
  export * from './timeout-notification.model';
11
11
  export * from './user-details.model';
12
12
  export * from './user.model';
13
- export * from './pagination.model';
@@ -5,6 +5,18 @@ export interface Person {
5
5
  domain: string;
6
6
  knownAs?: string;
7
7
  }
8
+ export interface JudicialUserModel {
9
+ emailId: string;
10
+ fullName: string;
11
+ idamId: string;
12
+ isJudge: string;
13
+ isMagistrate: string;
14
+ isPanelMember: string;
15
+ knownAs: string;
16
+ personalCode: string;
17
+ surname: string;
18
+ title: string;
19
+ }
8
20
  export interface CaseworkersByService {
9
21
  service: string;
10
22
  caseworkers: Caseworker[];
@@ -3,7 +3,7 @@ import { UserDetails } from '../../models/user-details.model';
3
3
  export declare class CaseSharingStateService {
4
4
  private caseState;
5
5
  private readonly subject;
6
- readonly state: import("rxjs").Observable<SharedCase[]>;
6
+ get state(): import("rxjs").Observable<SharedCase[]>;
7
7
  constructor();
8
8
  setCases(cases: SharedCase[]): void;
9
9
  getCases(): SharedCase[];
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { Caseworker, Person, SearchOptions } from '../../models';
3
+ import { Caseworker, JudicialUserModel, Person, SearchOptions } from '../../models';
4
4
  import { SessionStorageService } from '../session-storage/session-storage.service';
5
5
  export declare class FindAPersonService {
6
6
  private readonly http;
@@ -13,4 +13,5 @@ export declare class FindAPersonService {
13
13
  findCaseworkers(searchOptions: SearchOptions): Observable<Person[]>;
14
14
  mapCaseworkers(caseworkers: Caseworker[], roleCategory: string): Person[];
15
15
  searchInCaseworkers(caseworkers: Caseworker[], searchOptions: SearchOptions): Person[];
16
+ searchJudicial(value: string, serviceId: string): Observable<JudicialUserModel[]>;
16
17
  }
@@ -1,11 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
2
  export declare abstract class HasLoadingState {
3
- readonly isLoading: Observable<boolean>;
3
+ get isLoading(): Observable<boolean>;
4
4
  }
5
5
  export declare class LoadingService implements HasLoadingState {
6
6
  private readonly registered;
7
7
  private readonly loading;
8
- readonly isLoading: Observable<boolean>;
8
+ get isLoading(): Observable<boolean>;
9
9
  register(): string;
10
10
  unregister(token: string): void;
11
11
  private generateToken;
@@ -12,4 +12,12 @@ export declare class LocationService {
12
12
  * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
13
13
  */
14
14
  getAllLocations(serviceIds: string, locationType: string, searchTerm: string): Observable<LocationByEPIMMSModel[]>;
15
+ /**
16
+ * @description searchLocations from service Ids/location type/search term
17
+ * @param serviceIds: BBA3 | BBA3,BFA1 split with ','
18
+ * @param locationType: optional | hearing | case_management
19
+ * @param searchTerm: any search term for postcode | site name | venue name |court name | court address etc.
20
+ * @return Observable<LocationByEPIMMSModel[]>: Array of locationModel in Observable
21
+ */
22
+ searchLocations(serviceIds: string, locationType: string, searchTerm: string): Observable<LocationByEPIMMSModel[]>;
15
23
  }
@@ -2,5 +2,6 @@ export declare type Role = string;
2
2
  export declare type Roles = Role[];
3
3
  export declare class RoleService {
4
4
  private pRoles;
5
- roles: Roles;
5
+ get roles(): Roles;
6
+ set roles(roles: Roles);
6
7
  }
package/lib/window.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- export declare const windowToken: InjectionToken<{}>;
3
- export declare function windowProvider(): Window;
2
+ export declare const windowToken: InjectionToken<unknown>;
3
+ export declare function windowProvider(): Window & typeof globalThis;
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "1.7.0-ao-rectification",
3
+ "version": "1.8.0-angular-upgrade-9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0",
7
7
  "@angular/material": "^7.2.0",
8
8
  "@angular/cdk": "^7.2.0",
9
- "launchdarkly-js-client-sdk": "^2.15.2",
10
- "ngx-pagination": "^3.2.1"
9
+ "launchdarkly-js-client-sdk": "^2.15.2"
11
10
  },
12
11
  "publishConfig": {
13
12
  "access": "public"
@@ -26,10 +25,6 @@
26
25
  "email": "ronald.mansveld@hmcts.net"
27
26
  }
28
27
  ],
29
- "devDependencies": {
30
- "ngx-spec": "^2.1.4",
31
- "node-sass": "^4.0.0"
32
- },
33
28
  "main": "bundles/hmcts-rpx-xui-common-lib.umd.js",
34
29
  "module": "fesm5/hmcts-rpx-xui-common-lib.js",
35
30
  "es2015": "fesm2015/hmcts-rpx-xui-common-lib.js",
@@ -41,6 +36,6 @@
41
36
  "metadata": "hmcts-rpx-xui-common-lib.metadata.json",
42
37
  "sideEffects": false,
43
38
  "dependencies": {
44
- "tslib": "^1.9.0"
39
+ "tslib": "^1.10.0"
45
40
  }
46
41
  }