@hmcts/rpx-xui-common-lib 1.8.0-angular-upgrade-9-rc.6 → 2.0.0-angular-upgrade-8

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 (280) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +7435 -3173
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +2 -2
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-rpx-xui-common-lib.js +28 -22
  6. package/esm2015/lib/components/accessibility/accessibility.component.js +17 -13
  7. package/esm2015/lib/components/checkbox-list/checkbox-list.component.js +127 -45
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +23 -16
  9. package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +78 -31
  10. package/esm2015/lib/components/due-date/due-date.component.js +110 -24
  11. package/esm2015/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +34 -29
  12. package/esm2015/lib/components/find-location/find-location.component.js +140 -69
  13. package/esm2015/lib/components/find-person/find-person.component.js +180 -97
  14. package/esm2015/lib/components/generic-filter/generic-filter-utils.js +55 -11
  15. package/esm2015/lib/components/generic-filter/generic-filter.component.js +293 -54
  16. package/esm2015/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +29 -20
  17. package/esm2015/lib/components/index.js +7 -2
  18. package/esm2015/lib/components/invite-user-form/invite-user-form.component.js +33 -23
  19. package/esm2015/lib/components/invite-user-permissions/invite-user-permission.component.js +35 -34
  20. package/esm2015/lib/components/loading-spinner/loading-spinner.component.js +22 -16
  21. package/esm2015/lib/components/pagination/pagination.component.js +38 -28
  22. package/esm2015/lib/components/public_api.js +33 -33
  23. package/esm2015/lib/components/search-judicials/search-judicials.component.js +156 -70
  24. package/esm2015/lib/components/search-location/search-location.component.js +183 -80
  25. package/esm2015/lib/components/search-venue/search-venue.component.js +154 -62
  26. package/esm2015/lib/components/selected-case/selected-case.component.js +191 -54
  27. package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +53 -22
  28. package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +68 -38
  29. package/esm2015/lib/components/service-message/service-message.component.js +32 -23
  30. package/esm2015/lib/components/service-messages/service-messages.component.js +77 -29
  31. package/esm2015/lib/components/share-case/share-case.component.js +104 -45
  32. package/esm2015/lib/components/share-case-confirm/share-case-confirm.component.js +50 -27
  33. package/esm2015/lib/components/tab/tab.component.js +37 -19
  34. package/esm2015/lib/components/tc-confirm/tc-confirm.component.js +29 -20
  35. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +17 -13
  36. package/esm2015/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +17 -13
  37. package/esm2015/lib/components/terms-and-conditions/terms-and-conditions.component.js +23 -16
  38. package/esm2015/lib/components/user-details/user-details.component.js +57 -47
  39. package/esm2015/lib/components/user-list/user-list.component.js +54 -19
  40. package/esm2015/lib/components/user-select/user-select.component.js +64 -23
  41. package/esm2015/lib/directives/feature-toggle/feature-toggle.directive.js +67 -21
  42. package/esm2015/lib/directives/index.js +7 -2
  43. package/esm2015/lib/directives/let/let.directive.js +49 -16
  44. package/esm2015/lib/directives/public-api.js +8 -3
  45. package/esm2015/lib/exui-common-lib.module.js +40 -31
  46. package/esm2015/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +34 -23
  47. package/esm2015/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +23 -18
  48. package/esm2015/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +68 -30
  49. package/esm2015/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +25 -19
  50. package/esm2015/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +28 -19
  51. package/esm2015/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +36 -23
  52. package/esm2015/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +28 -23
  53. package/esm2015/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +35 -24
  54. package/esm2015/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +22 -15
  55. package/esm2015/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +35 -23
  56. package/esm2015/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +23 -18
  57. package/esm2015/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +34 -27
  58. package/esm2015/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +47 -32
  59. package/esm2015/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +29 -22
  60. package/esm2015/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +26 -20
  61. package/esm2015/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +56 -26
  62. package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +27 -17
  63. package/esm2015/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +52 -40
  64. package/esm2015/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +49 -0
  65. package/esm2015/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +36 -29
  66. package/esm2015/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +40 -18
  67. package/esm2015/lib/gov-ui/components/index.js +7 -2
  68. package/esm2015/lib/gov-ui/components/public_api.js +7 -21
  69. package/esm2015/lib/gov-ui/directives/remove-host.directive.js +30 -12
  70. package/esm2015/lib/gov-ui/gov-ui.service.js +16 -12
  71. package/esm2015/lib/gov-ui/index.js +7 -2
  72. package/esm2015/lib/gov-ui/models/banner-data-model.js +16 -1
  73. package/esm2015/lib/gov-ui/models/checkboxes-model.js +22 -1
  74. package/esm2015/lib/gov-ui/models/error-messages-model.js +16 -1
  75. package/esm2015/lib/gov-ui/models/gov-ui-config-model.js +36 -1
  76. package/esm2015/lib/gov-ui/models/index.js +7 -1
  77. package/esm2015/lib/gov-ui/models/isession-storage.interface.js +24 -1
  78. package/esm2015/lib/gov-ui/models/public_api.js +10 -1
  79. package/esm2015/lib/gov-ui/public_api.js +9 -5
  80. package/esm2015/lib/gov-ui/util/helpers/html-templates.helper.js +14 -4
  81. package/esm2015/lib/gov-ui/util/session-storage/session-storage-utils.js +48 -12
  82. package/esm2015/lib/gov-ui/validators/checkboxes-be-checked.validator.js +24 -5
  83. package/esm2015/lib/gov-ui/validators/date.validator.js +20 -3
  84. package/esm2015/lib/gov-ui/validators/index.js +7 -2
  85. package/esm2015/lib/gov-ui/validators/public_api.js +9 -4
  86. package/esm2015/lib/gov-ui/validators/radio-group.validator.js +15 -3
  87. package/esm2015/lib/models/case-share.model.js +26 -1
  88. package/esm2015/lib/models/contact-details.model.js +31 -7
  89. package/esm2015/lib/models/due-date.model.js +14 -7
  90. package/esm2015/lib/models/feature-user.js +16 -1
  91. package/esm2015/lib/models/filter.model.js +116 -1
  92. package/esm2015/lib/models/idle-config.model.js +20 -1
  93. package/esm2015/lib/models/index.js +19 -6
  94. package/esm2015/lib/models/location.model.js +108 -1
  95. package/esm2015/lib/models/pagination.model.js +18 -0
  96. package/esm2015/lib/models/person.model.js +92 -17
  97. package/esm2015/lib/models/public_api.js +11 -4
  98. package/esm2015/lib/models/search-options.model.js +22 -1
  99. package/esm2015/lib/models/tcDocument.model.js +18 -1
  100. package/esm2015/lib/models/timeout-notification.model.js +18 -1
  101. package/esm2015/lib/models/user-details.model.js +22 -1
  102. package/esm2015/lib/models/user.model.js +25 -1
  103. package/esm2015/lib/services/case-sharing-state/case-sharing-state.service.js +92 -19
  104. package/esm2015/lib/services/cookie/cookie.service.js +78 -19
  105. package/esm2015/lib/services/feature-toggle/feature-toggle.guard.js +51 -16
  106. package/esm2015/lib/services/feature-toggle/feature-toggle.service.js +35 -11
  107. package/esm2015/lib/services/feature-toggle/launch-darkly.service.js +101 -21
  108. package/esm2015/lib/services/filter/filter.service.js +63 -11
  109. package/esm2015/lib/services/find-person/find-person.service.js +130 -25
  110. package/esm2015/lib/services/google-analytics/google-analytics.service.js +70 -21
  111. package/esm2015/lib/services/google-tag-manager/google-tag-manager.service.js +71 -23
  112. package/esm2015/lib/services/index.js +7 -2
  113. package/esm2015/lib/services/loading/loading.service.js +48 -11
  114. package/esm2015/lib/services/locations/location.service.js +35 -22
  115. package/esm2015/lib/services/manage-session/manage-session.services.js +70 -21
  116. package/esm2015/lib/services/public-api.js +18 -13
  117. package/esm2015/lib/services/role-guard/role.guard.js +61 -24
  118. package/esm2015/lib/services/role-guard/role.service.js +28 -11
  119. package/esm2015/lib/services/session-storage/session-storage.service.js +24 -12
  120. package/esm2015/lib/services/timeout-notifications/timeout-notifications.service.js +82 -20
  121. package/esm2015/lib/window.js +10 -1
  122. package/esm2015/public-api.js +13 -8
  123. package/esm5/hmcts-rpx-xui-common-lib.js +28 -22
  124. package/esm5/lib/components/accessibility/accessibility.component.js +15 -10
  125. package/esm5/lib/components/checkbox-list/checkbox-list.component.js +232 -57
  126. package/esm5/lib/components/contact-details/contact-details.component.js +22 -14
  127. package/esm5/lib/components/cookie-banner/cookie-banner.component.js +106 -36
  128. package/esm5/lib/components/due-date/due-date.component.js +142 -29
  129. package/esm5/lib/components/exui-main-wrapper/exui-page-wrapper.component.js +33 -27
  130. package/esm5/lib/components/find-location/find-location.component.js +180 -80
  131. package/esm5/lib/components/find-person/find-person.component.js +203 -102
  132. package/esm5/lib/components/generic-filter/generic-filter-utils.js +57 -13
  133. package/esm5/lib/components/generic-filter/generic-filter.component.js +421 -85
  134. package/esm5/lib/components/hmcts-session-dialog/hmcts-session-dialog.component.js +32 -19
  135. package/esm5/lib/components/index.js +7 -2
  136. package/esm5/lib/components/invite-user-form/invite-user-form.component.js +37 -23
  137. package/esm5/lib/components/invite-user-permissions/invite-user-permission.component.js +34 -32
  138. package/esm5/lib/components/loading-spinner/loading-spinner.component.js +21 -14
  139. package/esm5/lib/components/pagination/pagination.component.js +45 -28
  140. package/esm5/lib/components/public_api.js +33 -33
  141. package/esm5/lib/components/search-judicials/search-judicials.component.js +198 -78
  142. package/esm5/lib/components/search-location/search-location.component.js +217 -89
  143. package/esm5/lib/components/search-venue/search-venue.component.js +199 -71
  144. package/esm5/lib/components/selected-case/selected-case.component.js +279 -72
  145. package/esm5/lib/components/selected-case-confirm/selected-case-confirm.component.js +61 -22
  146. package/esm5/lib/components/selected-case-list/selected-case-list.component.js +82 -39
  147. package/esm5/lib/components/service-message/service-message.component.js +36 -22
  148. package/esm5/lib/components/service-messages/service-messages.component.js +91 -30
  149. package/esm5/lib/components/share-case/share-case.component.js +138 -52
  150. package/esm5/lib/components/share-case-confirm/share-case-confirm.component.js +49 -25
  151. package/esm5/lib/components/tab/tab.component.js +41 -18
  152. package/esm5/lib/components/tc-confirm/tc-confirm.component.js +32 -19
  153. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-html/tc-display-html.component.js +15 -10
  154. package/esm5/lib/components/terms-and-conditions/tc-display/tc-display-plain/tc-display-plain.component.js +15 -10
  155. package/esm5/lib/components/terms-and-conditions/terms-and-conditions.component.js +22 -14
  156. package/esm5/lib/components/user-details/user-details.component.js +71 -48
  157. package/esm5/lib/components/user-list/user-list.component.js +65 -18
  158. package/esm5/lib/components/user-select/user-select.component.js +92 -27
  159. package/esm5/lib/directives/feature-toggle/feature-toggle.directive.js +70 -21
  160. package/esm5/lib/directives/index.js +7 -2
  161. package/esm5/lib/directives/let/let.directive.js +51 -15
  162. package/esm5/lib/directives/public-api.js +8 -3
  163. package/esm5/lib/exui-common-lib.module.js +34 -22
  164. package/esm5/lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.js +37 -22
  165. package/esm5/lib/gov-ui/components/gov-uk-checkboxes/gov-uk-checkboxes.component.js +22 -16
  166. package/esm5/lib/gov-ui/components/gov-uk-date/gov-uk-date.component.js +89 -32
  167. package/esm5/lib/gov-ui/components/gov-uk-error-message/gov-uk-error-message.component.js +24 -17
  168. package/esm5/lib/gov-ui/components/gov-uk-fieldset/gov-uk-fieldset.component.js +31 -18
  169. package/esm5/lib/gov-ui/components/gov-uk-file-upload/gov-uk-file-upload.component.js +43 -23
  170. package/esm5/lib/gov-ui/components/gov-uk-form-group-wrapper/gov-uk-form-group-wrapper.component.js +27 -21
  171. package/esm5/lib/gov-ui/components/gov-uk-input/gov-uk-input.component.js +45 -24
  172. package/esm5/lib/gov-ui/components/gov-uk-label/gov-uk-label.component.js +21 -13
  173. package/esm5/lib/gov-ui/components/gov-uk-radio/gov-uk-radio.component.js +44 -18
  174. package/esm5/lib/gov-ui/components/gov-uk-radios/gov-uk-radios.component.js +22 -16
  175. package/esm5/lib/gov-ui/components/gov-uk-select/gov-uk-select.component.js +37 -26
  176. package/esm5/lib/gov-ui/components/gov-uk-table/gov-uk-table.component.js +51 -31
  177. package/esm5/lib/gov-ui/components/gov-uk-textarea/gov-uk-textarea.component.js +32 -21
  178. package/esm5/lib/gov-ui/components/hmcts-banner/hmcts-banner.component.js +25 -18
  179. package/esm5/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.js +71 -28
  180. package/esm5/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +27 -16
  181. package/esm5/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.js +60 -41
  182. package/esm5/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.js +51 -0
  183. package/esm5/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.js +36 -28
  184. package/esm5/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.js +39 -16
  185. package/esm5/lib/gov-ui/components/index.js +7 -2
  186. package/esm5/lib/gov-ui/components/public_api.js +7 -21
  187. package/esm5/lib/gov-ui/directives/remove-host.directive.js +29 -10
  188. package/esm5/lib/gov-ui/gov-ui.service.js +14 -9
  189. package/esm5/lib/gov-ui/index.js +7 -2
  190. package/esm5/lib/gov-ui/models/banner-data-model.js +16 -1
  191. package/esm5/lib/gov-ui/models/checkboxes-model.js +22 -1
  192. package/esm5/lib/gov-ui/models/error-messages-model.js +16 -1
  193. package/esm5/lib/gov-ui/models/gov-ui-config-model.js +36 -1
  194. package/esm5/lib/gov-ui/models/index.js +7 -1
  195. package/esm5/lib/gov-ui/models/isession-storage.interface.js +24 -1
  196. package/esm5/lib/gov-ui/models/public_api.js +10 -1
  197. package/esm5/lib/gov-ui/public_api.js +9 -5
  198. package/esm5/lib/gov-ui/util/helpers/html-templates.helper.js +34 -3
  199. package/esm5/lib/gov-ui/util/session-storage/session-storage-utils.js +48 -12
  200. package/esm5/lib/gov-ui/validators/checkboxes-be-checked.validator.js +24 -5
  201. package/esm5/lib/gov-ui/validators/date.validator.js +20 -3
  202. package/esm5/lib/gov-ui/validators/index.js +7 -2
  203. package/esm5/lib/gov-ui/validators/public_api.js +9 -4
  204. package/esm5/lib/gov-ui/validators/radio-group.validator.js +15 -3
  205. package/esm5/lib/models/case-share.model.js +26 -1
  206. package/esm5/lib/models/contact-details.model.js +31 -7
  207. package/esm5/lib/models/due-date.model.js +14 -7
  208. package/esm5/lib/models/feature-user.js +16 -1
  209. package/esm5/lib/models/filter.model.js +116 -1
  210. package/esm5/lib/models/idle-config.model.js +20 -1
  211. package/esm5/lib/models/index.js +19 -6
  212. package/esm5/lib/models/location.model.js +108 -1
  213. package/esm5/lib/models/pagination.model.js +18 -0
  214. package/esm5/lib/models/person.model.js +92 -17
  215. package/esm5/lib/models/public_api.js +11 -4
  216. package/esm5/lib/models/search-options.model.js +22 -1
  217. package/esm5/lib/models/tcDocument.model.js +18 -1
  218. package/esm5/lib/models/timeout-notification.model.js +18 -1
  219. package/esm5/lib/models/user-details.model.js +22 -1
  220. package/esm5/lib/models/user.model.js +25 -1
  221. package/esm5/lib/services/case-sharing-state/case-sharing-state.service.js +132 -27
  222. package/esm5/lib/services/cookie/cookie.service.js +104 -21
  223. package/esm5/lib/services/feature-toggle/feature-toggle.guard.js +61 -13
  224. package/esm5/lib/services/feature-toggle/feature-toggle.service.js +70 -12
  225. package/esm5/lib/services/feature-toggle/launch-darkly.service.js +142 -21
  226. package/esm5/lib/services/filter/filter.service.js +101 -15
  227. package/esm5/lib/services/find-person/find-person.service.js +152 -27
  228. package/esm5/lib/services/google-analytics/google-analytics.service.js +78 -21
  229. package/esm5/lib/services/google-tag-manager/google-tag-manager.service.js +79 -23
  230. package/esm5/lib/services/index.js +7 -2
  231. package/esm5/lib/services/loading/loading.service.js +69 -14
  232. package/esm5/lib/services/locations/location.service.js +50 -11
  233. package/esm5/lib/services/manage-session/manage-session.services.js +73 -20
  234. package/esm5/lib/services/public-api.js +18 -13
  235. package/esm5/lib/services/role-guard/role.guard.js +60 -22
  236. package/esm5/lib/services/role-guard/role.service.js +28 -10
  237. package/esm5/lib/services/session-storage/session-storage.service.js +61 -12
  238. package/esm5/lib/services/timeout-notifications/timeout-notifications.service.js +111 -19
  239. package/esm5/lib/window.js +10 -1
  240. package/esm5/public-api.js +13 -8
  241. package/fesm2015/hmcts-rpx-xui-common-lib.js +6513 -3192
  242. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  243. package/fesm5/hmcts-rpx-xui-common-lib.js +7455 -3160
  244. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  245. package/hmcts-rpx-xui-common-lib.d.ts +21 -20
  246. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  247. package/lib/components/checkbox-list/checkbox-list.component.d.ts +5 -6
  248. package/lib/components/due-date/due-date.component.d.ts +4 -4
  249. package/lib/components/find-location/find-location.component.d.ts +2 -4
  250. package/lib/components/generic-filter/generic-filter.component.d.ts +2 -4
  251. package/lib/components/invite-user-form/invite-user-form.component.d.ts +1 -1
  252. package/lib/components/public_api.d.ts +4 -9
  253. package/lib/components/search-judicials/search-judicials.component.d.ts +1 -1
  254. package/lib/components/search-location/search-location.component.d.ts +2 -4
  255. package/lib/components/search-venue/search-venue.component.d.ts +1 -1
  256. package/lib/components/user-list/user-list.component.d.ts +9 -2
  257. package/lib/directives/feature-toggle/feature-toggle.directive.d.ts +1 -1
  258. package/lib/directives/let/let.directive.d.ts +1 -1
  259. package/lib/exui-common-lib.module.d.ts +4 -2
  260. package/lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.d.ts +1 -1
  261. package/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.d.ts +1 -1
  262. package/lib/gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component.d.ts +1 -1
  263. package/lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.d.ts +10 -0
  264. package/lib/gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component.d.ts +1 -1
  265. package/lib/gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component.d.ts +2 -0
  266. package/lib/gov-ui/components/public_api.d.ts +0 -19
  267. package/lib/gov-ui/public_api.d.ts +1 -2
  268. package/lib/models/index.d.ts +1 -0
  269. package/lib/models/pagination.model.d.ts +5 -0
  270. package/lib/services/case-sharing-state/case-sharing-state.service.d.ts +1 -1
  271. package/lib/services/loading/loading.service.d.ts +2 -2
  272. package/lib/services/role-guard/role.service.d.ts +1 -2
  273. package/lib/window.d.ts +1 -1
  274. package/package.json +10 -6
  275. package/esm2015/lib/gov-ui/directives/index.js +0 -2
  276. package/esm2015/lib/gov-ui/directives/public_api.js +0 -2
  277. package/esm5/lib/gov-ui/directives/index.js +0 -2
  278. package/esm5/lib/gov-ui/directives/public_api.js +0 -2
  279. package/lib/gov-ui/directives/index.d.ts +0 -1
  280. package/lib/gov-ui/directives/public_api.d.ts +0 -1
@@ -25,20 +25,19 @@ 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
- get selection(): T[];
29
- set selection(value: T[]);
28
+ selection: T[];
30
29
  private pSelection;
31
30
  private pSelectionMade;
32
31
  /**
33
32
  * Indicates whether or not all of the items are selected.
34
33
  */
35
- get allSelected(): boolean;
34
+ readonly allSelected: boolean;
36
35
  ngOnChanges(): void;
37
36
  /**
38
37
  * Indicates whether or not there are any options to render.
39
38
  */
40
- get hasOptions(): boolean;
41
- get isFunctional(): boolean;
39
+ readonly hasOptions: boolean;
40
+ readonly isFunctional: boolean;
42
41
  /**
43
42
  * Indicates whether or not an item is part of the current selection.
44
43
  * @param item The item in question.
@@ -63,7 +62,7 @@ export declare class CheckboxListComponent<T> implements OnChanges {
63
62
  * @param item The item to check in the options.
64
63
  */
65
64
  containsItem(items: T[], item: T): boolean;
66
- private get hasPreselection();
65
+ private readonly hasPreselection;
67
66
  private setupPreselection;
68
67
  private getSelection;
69
68
  private checkSelection;
@@ -36,13 +36,13 @@ export declare class DueDateComponent implements OnChanges {
36
36
  */
37
37
  mediumUrgencyCutoff: number;
38
38
  private pBadge;
39
- get badge(): string;
39
+ readonly badge: string;
40
40
  private pLabel;
41
- get label(): string;
41
+ readonly label: string;
42
42
  private pAccessibleLabel;
43
- get accessibleLabel(): string;
43
+ readonly accessibleLabel: string;
44
44
  private pDaysDiff;
45
- get daysDiff(): number;
45
+ readonly daysDiff: number;
46
46
  ngOnChanges(): void;
47
47
  private handleInputChanges;
48
48
  private getDaysDifference;
@@ -19,10 +19,8 @@ export declare class FindLocationComponent {
19
19
  searchLocationComponent: SearchLocationComponent;
20
20
  private pServices;
21
21
  private pDisabled;
22
- get disabled(): boolean;
23
- set disabled(value: boolean);
24
- get services(): string[];
25
- set services(value: string[]);
22
+ disabled: boolean;
23
+ services: string[];
26
24
  addLocation(): void;
27
25
  removeLocation(location: LocationByEPIMMSModel): void;
28
26
  onInputChanged(term: string): void;
@@ -11,11 +11,9 @@ export declare class GenericFilterComponent implements OnInit, OnDestroy {
11
11
  formSub: Subscription;
12
12
  constructor(filterService: FilterService, fb: FormBuilder);
13
13
  private _config;
14
- get config(): FilterConfig;
15
- set config(value: FilterConfig);
14
+ config: FilterConfig;
16
15
  private _settings?;
17
- get settings(): FilterSetting;
18
- set settings(value: FilterSetting);
16
+ settings: FilterSetting;
19
17
  private static addFormValidators;
20
18
  ngOnInit(): void;
21
19
  ngOnDestroy(): void;
@@ -4,6 +4,6 @@ export declare class InviteUserFormComponent {
4
4
  isInvalid: any;
5
5
  submitForm: EventEmitter<any>;
6
6
  inviteUserForm: FormGroup;
7
- set errorMessages(value: any);
7
+ errorMessages: any;
8
8
  onSubmit(): void;
9
9
  }
@@ -1,20 +1,12 @@
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';
5
4
  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';
9
5
  export * from './generic-filter/generic-filter.component';
10
6
  export * from './hmcts-session-dialog/hmcts-session-dialog.component';
11
7
  export * from './invite-user-form/invite-user-form.component';
12
8
  export * from './invite-user-permissions/invite-user-permission.component';
13
9
  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';
18
10
  export * from './selected-case-confirm/selected-case-confirm.component';
19
11
  export * from './selected-case-list/selected-case-list.component';
20
12
  export * from './selected-case/selected-case.component';
@@ -29,4 +21,7 @@ export * from './terms-and-conditions/tc-display/tc-display-plain/tc-display-pla
29
21
  export * from './terms-and-conditions/terms-and-conditions.component';
30
22
  export * from './user-details/user-details.component';
31
23
  export * from './user-list/user-list.component';
32
- export * from './user-select/user-select.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';
@@ -27,7 +27,7 @@ export declare class SearchJudicialsComponent implements OnInit {
27
27
  onKeyDown(): void;
28
28
  onKeyUp(event: any): void;
29
29
  onFocus(): void;
30
- get displayedJudicialsDuplicationFiltered(): JudicialUserModel[];
30
+ readonly displayedJudicialsDuplicationFiltered: JudicialUserModel[];
31
31
  filter(term: string): void;
32
32
  onSelectionChange(selection?: JudicialUserModel): void;
33
33
  search(currentValue: string): void;
@@ -25,10 +25,8 @@ export declare class SearchLocationComponent implements OnInit {
25
25
  private pSelectedLocations;
26
26
  private pReset;
27
27
  constructor(locationService: LocationService, fb: FormBuilder, cd: ChangeDetectorRef);
28
- get reset(): boolean;
29
- set reset(value: boolean);
30
- get selectedLocations(): any[];
31
- set selectedLocations(value: any[]);
28
+ reset: boolean;
29
+ selectedLocations: any[];
32
30
  ngOnInit(): void;
33
31
  filter(term: string): void;
34
32
  onSelectionChange(location: LocationByEPIMMSModel): void;
@@ -27,7 +27,7 @@ export declare class SearchVenueComponent implements OnInit, AfterContentInit {
27
27
  onKeyDown(): void;
28
28
  onKeyUp(event: any): void;
29
29
  onFocus(): void;
30
- get displayedLocationsDuplicationFiltered(): LocationByEPIMMSModel[];
30
+ readonly displayedLocationsDuplicationFiltered: LocationByEPIMMSModel[];
31
31
  filter(term: string): void;
32
32
  onSelectionChange(selection?: LocationByEPIMMSModel): void;
33
33
  search(currentValue: string): void;
@@ -1,7 +1,14 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { Pagination } from '../../models';
2
3
  import { User } from '../../models/user.model';
3
- export declare class UserListComponent {
4
+ export declare class UserListComponent implements OnInit {
4
5
  users: User[];
6
+ currentPageNumber?: number;
7
+ pageTotalSize?: any;
5
8
  userClick: EventEmitter<User>;
9
+ pageChange: EventEmitter<any>;
10
+ pagination: Pagination;
11
+ ngOnInit(): void;
6
12
  onUserClick(user: User): void;
13
+ emitPageClickEvent(pageNumber: any): void;
7
14
  }
@@ -6,7 +6,7 @@ export declare class FeatureToggleDirective implements OnDestroy {
6
6
  private readonly templateRef;
7
7
  private feature;
8
8
  private subscription;
9
- set xuilibFeatureToggle(feature: string);
9
+ xuilibFeatureToggle: 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
- set xuilibLet(condition: T);
10
+ xuilibLet: T;
11
11
  }
@@ -23,9 +23,11 @@ import { HmctsBannerComponent } from './gov-ui/components/hmcts-banner/hmcts-ban
23
23
  import { HmctsErrorSummaryComponent } from './gov-ui/components/hmcts-error-summary/hmcts-error-summary.component';
24
24
  import { HmctsIdentityBarComponent } from './gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component';
25
25
  import { HmctsMainWrapperComponent } from './gov-ui/components/hmcts-main-wrapper/hmcts-main-wrapper.component';
26
+ import { HmctsPaginationComponent } from './gov-ui/components/hmcts-pagination/hmcts-pagination.component';
27
+ import { HmctsPrimaryNavigationComponent } from './gov-ui/components/hmcts-primary-navigation/hmcts-primary-navigation.component';
26
28
  import { HmctsSubNavigationComponent } from './gov-ui/components/hmcts-sub-navigation/hmcts-sub-navigation.component';
27
29
  import { RemoveHostDirective } from './gov-ui/directives/remove-host.directive';
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)[];
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)[];
30
+ 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 | typeof SearchJudicialsComponent | typeof SearchVenueComponent)[];
31
+ export declare const GOV_UI_COMPONENTS: (typeof HmctsIdentityBarComponent | typeof HmctsPaginationComponent | typeof HmctsSubNavigationComponent | typeof HmctsPrimaryNavigationComponent | typeof HmctsErrorSummaryComponent | typeof HmctsMainWrapperComponent | typeof HmctsBannerComponent | typeof GovukTableComponent | typeof GovUkFormGroupWrapperComponent | typeof GovUkLabelComponent | typeof GovUkErrorMessageComponent | typeof GovUkCheckboxesComponent | typeof GovUkRadioComponent | typeof RemoveHostDirective)[];
30
32
  export declare class ExuiCommonLibModule {
31
33
  }
@@ -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
- set errorMessages(value: any);
4
+ errorMessages: any;
5
5
  header: string;
6
6
  showWarningMessage: boolean;
7
7
  messages: object[];
@@ -1,5 +1,5 @@
1
1
  export declare class HmctsIdentityBarComponent {
2
- set content(value: any);
2
+ content: 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
- set banner(value: BannerDataModel);
15
+ banner: BannerDataModel;
16
16
  actionButtons: {
17
17
  name: string;
18
18
  class: string;
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class HmctsPaginationComponent {
3
+ id: string;
4
+ maxSize: number;
5
+ pageSize: number;
6
+ showPageNumbers: boolean;
7
+ showResultCount: boolean;
8
+ pageChange: EventEmitter<number>;
9
+ pageBoundsCorrection: EventEmitter<number>;
10
+ }
@@ -1,5 +1,5 @@
1
1
  export declare class HmctsPrimaryNavigationComponent {
2
- set userLoggedIn(value: any);
2
+ userLoggedIn: any;
3
3
  label: string;
4
4
  items: {
5
5
  active: boolean;
@@ -6,4 +6,6 @@ export interface SubNavigation {
6
6
  text: string;
7
7
  href: string;
8
8
  active: boolean;
9
+ total?: number;
10
+ roundel?: number;
9
11
  }
@@ -1,20 +1 @@
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';
20
1
  export * from './hmcts-sub-navigation/hmcts-sub-navigation.component';
@@ -1,4 +1,3 @@
1
- export * from './components';
2
- export * from './directives';
3
1
  export * from './gov-ui.service';
4
2
  export * from './validators';
3
+ export * from './components';
@@ -3,6 +3,7 @@ export * from './contact-details.model';
3
3
  export * from './due-date.model';
4
4
  export * from './feature-user';
5
5
  export * from './idle-config.model';
6
+ export * from './pagination.model';
6
7
  export * from './person.model';
7
8
  export * from './public_api';
8
9
  export * from './search-options.model';
@@ -0,0 +1,5 @@
1
+ export interface Pagination {
2
+ itemsPerPage: number;
3
+ currentPage: number;
4
+ totalItems: number;
5
+ }
@@ -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
- get state(): import("rxjs").Observable<SharedCase[]>;
6
+ readonly state: import("rxjs").Observable<SharedCase[]>;
7
7
  constructor();
8
8
  setCases(cases: SharedCase[]): void;
9
9
  getCases(): SharedCase[];
@@ -1,11 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
2
  export declare abstract class HasLoadingState {
3
- get isLoading(): Observable<boolean>;
3
+ readonly isLoading: Observable<boolean>;
4
4
  }
5
5
  export declare class LoadingService implements HasLoadingState {
6
6
  private readonly registered;
7
7
  private readonly loading;
8
- get isLoading(): Observable<boolean>;
8
+ readonly isLoading: Observable<boolean>;
9
9
  register(): string;
10
10
  unregister(token: string): void;
11
11
  private generateToken;
@@ -2,6 +2,5 @@ export declare type Role = string;
2
2
  export declare type Roles = Role[];
3
3
  export declare class RoleService {
4
4
  private pRoles;
5
- get roles(): Roles;
6
- set roles(roles: Roles);
5
+ roles: Roles;
7
6
  }
package/lib/window.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  export declare const windowToken: InjectionToken<unknown>;
3
- export declare function windowProvider(): Window & typeof globalThis;
3
+ export declare function windowProvider(): Window;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "1.8.0-angular-upgrade-9-rc.6",
3
+ "version": "2.0.0-angular-upgrade-8",
4
4
  "peerDependencies": {
5
- "@angular/common": "^9.1.0",
6
- "@angular/core": "^9.1.0",
7
- "@angular/material": "^9.1.0",
8
- "@angular/cdk": "^9.1.0",
5
+ "@angular/common": "^7.2.0",
6
+ "@angular/core": "^7.2.0",
7
+ "@angular/material": "^7.2.0",
8
+ "@angular/cdk": "^7.2.0",
9
9
  "launchdarkly-js-client-sdk": "^2.15.2",
10
10
  "ngx-pagination": "^3.2.1"
11
11
  },
@@ -26,6 +26,10 @@
26
26
  "email": "ronald.mansveld@hmcts.net"
27
27
  }
28
28
  ],
29
+ "devDependencies": {
30
+ "ngx-spec": "^2.1.4",
31
+ "node-sass": "^4.0.0"
32
+ },
29
33
  "main": "bundles/hmcts-rpx-xui-common-lib.umd.js",
30
34
  "module": "fesm5/hmcts-rpx-xui-common-lib.js",
31
35
  "es2015": "fesm2015/hmcts-rpx-xui-common-lib.js",
@@ -37,6 +41,6 @@
37
41
  "metadata": "hmcts-rpx-xui-common-lib.metadata.json",
38
42
  "sideEffects": false,
39
43
  "dependencies": {
40
- "tslib": "^1.10.0"
44
+ "tslib": "^1.9.0"
41
45
  }
42
46
  }
@@ -1,2 +0,0 @@
1
- export * from './public_api';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2dvdi11aS9kaXJlY3RpdmVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './remove-host.directive';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvZ292LXVpL2RpcmVjdGl2ZXMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yZW1vdmUtaG9zdC5kaXJlY3RpdmUnO1xuIl19
@@ -1,2 +0,0 @@
1
- export * from './public_api';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvcnB4LXh1aS1jb21tb24tbGliLyIsInNvdXJjZXMiOlsibGliL2dvdi11aS9kaXJlY3RpdmVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './remove-host.directive';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvZ292LXVpL2RpcmVjdGl2ZXMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yZW1vdmUtaG9zdC5kaXJlY3RpdmUnO1xuIl19
@@ -1 +0,0 @@
1
- export * from './public_api';
@@ -1 +0,0 @@
1
- export * from './remove-host.directive';