@hmcts/ccd-case-ui-toolkit 6.14.4 → 6.14.5-activity-tracker-2

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 (299) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +4491 -4141
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/app.config.js +11 -1
  6. package/esm2015/lib/components/banners/index.js +2 -1
  7. package/esm2015/lib/components/banners/notification-banner/index.js +2 -1
  8. package/esm2015/lib/components/body/index.js +2 -1
  9. package/esm2015/lib/components/footer/index.js +2 -1
  10. package/esm2015/lib/components/form/date-input/date-input.component.js +8 -8
  11. package/esm2015/lib/components/form/index.js +2 -1
  12. package/esm2015/lib/components/header/header-bar/header-bar.component.js +2 -3
  13. package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.module.js +1 -1
  14. package/esm2015/lib/shared/commons/case-edit-data/case-edit-validation.model.js +1 -1
  15. package/esm2015/lib/shared/components/activity/activity-banner/activity-banner.component.js +5 -5
  16. package/esm2015/lib/shared/components/activity/activity-icon/activity-icon.component.js +2 -2
  17. package/esm2015/lib/shared/components/activity/activity.module.js +13 -13
  18. package/esm2015/lib/shared/components/activity/case-activity.component.js +174 -0
  19. package/esm2015/lib/shared/components/activity/index.js +2 -2
  20. package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +1 -1
  21. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +4 -4
  22. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +4 -4
  23. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
  24. package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +2 -1
  25. package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +3 -3
  26. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +2 -1
  27. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +1 -1
  28. package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +2 -1
  29. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +11 -22
  30. package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -2
  31. package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +12 -12
  32. package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -1
  33. package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +2 -1
  34. package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +5 -5
  35. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +29 -16
  36. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +40 -20
  37. package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +4 -4
  38. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -5
  39. package/esm2015/lib/shared/components/case-viewer/case-viewer.module.js +7 -5
  40. package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +3 -3
  41. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +2 -2
  42. package/esm2015/lib/shared/components/error/callback-errors.component.js +5 -5
  43. package/esm2015/lib/shared/components/error/domain/error-context.js +1 -1
  44. package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +2 -2
  45. package/esm2015/lib/shared/components/pagination/pagination.component.js +10 -10
  46. package/esm2015/lib/shared/components/palette/address/address-option.model.js +4 -7
  47. package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +4 -4
  48. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
  49. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +2 -2
  50. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
  51. package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
  52. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +9 -9
  53. package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +4 -3
  54. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +1 -1
  55. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +1 -1
  56. package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +1 -1
  57. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
  58. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
  59. package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +2 -1
  60. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -2
  61. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +2 -3
  62. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +3 -4
  63. package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +2 -1
  64. package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
  65. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  66. package/esm2015/lib/shared/components/palette/palette.service.js +2 -2
  67. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
  68. package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
  69. package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +3 -1
  70. package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
  71. package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
  72. package/esm2015/lib/shared/components/search-result/search-result.component.js +42 -28
  73. package/esm2015/lib/shared/components/search-result/search-result.module.js +2 -2
  74. package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
  75. package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +4 -3
  76. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +5 -9
  77. package/esm2015/lib/shared/domain/activity/activity.model.js +1 -1
  78. package/esm2015/lib/shared/domain/activity/case-activity-info.model.js +3 -0
  79. package/esm2015/lib/shared/domain/activity/case-activity.model.js +3 -0
  80. package/esm2015/lib/shared/domain/activity/index.js +4 -1
  81. package/esm2015/lib/shared/domain/activity/user.model.js +3 -0
  82. package/esm2015/lib/shared/domain/addresses/address.model.js +2 -1
  83. package/esm2015/lib/shared/domain/case-details.model.js +2 -1
  84. package/esm2015/lib/shared/domain/case-event-data.model.js +2 -1
  85. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
  86. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +2 -1
  87. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
  88. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +2 -1
  89. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -1
  90. package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +2 -1
  91. package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +2 -1
  92. package/esm2015/lib/shared/domain/case-view/case-tab.model.js +2 -1
  93. package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +2 -1
  94. package/esm2015/lib/shared/domain/case-view/case-view.model.js +2 -1
  95. package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
  96. package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
  97. package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
  98. package/esm2015/lib/shared/domain/definition/case-field.model.js +2 -1
  99. package/esm2015/lib/shared/domain/definition/case-type.model.js +2 -1
  100. package/esm2015/lib/shared/domain/definition/event-case-field.model.js +2 -1
  101. package/esm2015/lib/shared/domain/definition/field-type.model.js +2 -1
  102. package/esm2015/lib/shared/domain/document/document-data.model.js +2 -1
  103. package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
  104. package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
  105. package/esm2015/lib/shared/domain/search/field.model.js +1 -1
  106. package/esm2015/lib/shared/domain/search/index.js +2 -1
  107. package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
  108. package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +2 -1
  109. package/esm2015/lib/shared/domain/search/search-result-view.model.js +2 -1
  110. package/esm2015/lib/shared/domain/search/sorting/index.js +4 -0
  111. package/esm2015/lib/shared/domain/user/index.js +3 -0
  112. package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
  113. package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +1 -8
  114. package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
  115. package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
  116. package/esm2015/lib/shared/pipes/complex/{cdd-page-fields.pipe.js → ccd-page-fields.pipe.js} +3 -3
  117. package/esm2015/lib/shared/pipes/complex/index.js +2 -2
  118. package/esm2015/lib/shared/services/activity/activity-socket.service.js +91 -0
  119. package/esm2015/lib/shared/services/activity/activity.polling.service.js +26 -11
  120. package/esm2015/lib/shared/services/activity/activity.service.js +51 -26
  121. package/esm2015/lib/shared/services/activity/index.js +2 -1
  122. package/esm2015/lib/shared/services/activity/utils/index.js +118 -0
  123. package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
  124. package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
  125. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
  126. package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
  127. package/esm2015/lib/shared/services/definitions/definitions.service.js +3 -8
  128. package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
  129. package/esm2015/lib/shared/services/fields/fields.utils.js +5 -4
  130. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +2 -1
  131. package/esm2015/lib/shared/services/form/form-value.service.js +1 -2
  132. package/esm2015/lib/shared/services/loading/loading.service.js +2 -7
  133. package/esm2015/lib/shared/services/search/search.service.js +5 -10
  134. package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
  135. package/esm2015/lib/shared/services/window/window.service.js +1 -1
  136. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +5379 -5080
  137. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  138. package/lib/app.config.d.ts +10 -0
  139. package/lib/app.config.d.ts.map +1 -1
  140. package/lib/components/banners/index.d.ts +1 -0
  141. package/lib/components/banners/index.d.ts.map +1 -1
  142. package/lib/components/banners/notification-banner/index.d.ts +1 -0
  143. package/lib/components/banners/notification-banner/index.d.ts.map +1 -1
  144. package/lib/components/body/index.d.ts +1 -0
  145. package/lib/components/body/index.d.ts.map +1 -1
  146. package/lib/components/footer/index.d.ts +1 -0
  147. package/lib/components/footer/index.d.ts.map +1 -1
  148. package/lib/components/form/index.d.ts +1 -0
  149. package/lib/components/form/index.d.ts.map +1 -1
  150. package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
  151. package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
  152. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  153. package/lib/shared/components/activity/activity.module.d.ts +4 -4
  154. package/lib/shared/components/activity/activity.module.d.ts.map +1 -1
  155. package/lib/shared/components/activity/case-activity.component.d.ts +32 -0
  156. package/lib/shared/components/activity/case-activity.component.d.ts.map +1 -0
  157. package/lib/shared/components/activity/index.d.ts +1 -1
  158. package/lib/shared/components/activity/index.d.ts.map +1 -1
  159. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
  160. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  161. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  162. package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -1
  163. package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts +2 -2
  164. package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts.map +1 -1
  165. package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
  166. package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
  167. package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
  168. package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -3
  169. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  170. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  171. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  172. package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
  173. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  174. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +5 -4
  175. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
  176. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +7 -4
  177. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  178. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  179. package/lib/shared/components/case-viewer/case-viewer.module.d.ts.map +1 -1
  180. package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
  181. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  182. package/lib/shared/components/error/domain/error-context.d.ts +2 -2
  183. package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
  184. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
  185. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
  186. package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
  187. package/lib/shared/components/pagination/pagination.component.d.ts.map +1 -1
  188. package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
  189. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  190. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  191. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  192. package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
  193. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  194. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +1 -1
  195. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
  196. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  197. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  198. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  199. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  200. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  201. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  202. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  203. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  204. package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
  205. package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
  206. package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
  207. package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
  208. package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
  209. package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
  210. package/lib/shared/components/search-result/search-result.component.d.ts +9 -6
  211. package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
  212. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  213. package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
  214. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  215. package/lib/shared/domain/activity/activity.model.d.ts +1 -0
  216. package/lib/shared/domain/activity/activity.model.d.ts.map +1 -1
  217. package/lib/shared/domain/activity/case-activity-info.model.d.ts +9 -0
  218. package/lib/shared/domain/activity/case-activity-info.model.d.ts.map +1 -0
  219. package/lib/shared/domain/activity/case-activity.model.d.ts +5 -0
  220. package/lib/shared/domain/activity/case-activity.model.d.ts.map +1 -0
  221. package/lib/shared/domain/activity/index.d.ts +3 -0
  222. package/lib/shared/domain/activity/index.d.ts.map +1 -1
  223. package/lib/shared/domain/activity/user.model.d.ts +6 -0
  224. package/lib/shared/domain/activity/user.model.d.ts.map +1 -0
  225. package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
  226. package/lib/shared/domain/case-details.model.d.ts.map +1 -1
  227. package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
  228. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
  229. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  230. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
  231. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  232. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  233. package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
  234. package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
  235. package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
  236. package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
  237. package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
  238. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +1 -2
  239. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
  240. package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
  241. package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
  242. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  243. package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
  244. package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
  245. package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
  246. package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
  247. package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
  248. package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
  249. package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
  250. package/lib/shared/domain/search/field.model.d.ts.map +1 -1
  251. package/lib/shared/domain/search/index.d.ts +1 -0
  252. package/lib/shared/domain/search/index.d.ts.map +1 -1
  253. package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
  254. package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
  255. package/lib/shared/domain/search/search-result-view.model.d.ts +0 -1
  256. package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
  257. package/lib/shared/domain/search/sorting/index.d.ts +4 -0
  258. package/lib/shared/domain/search/sorting/index.d.ts.map +1 -0
  259. package/lib/shared/domain/user/index.d.ts +3 -0
  260. package/lib/shared/domain/user/index.d.ts.map +1 -0
  261. package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
  262. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +0 -1
  263. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
  264. package/lib/shared/fixture/case-field-builder.d.ts +6 -6
  265. package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
  266. package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
  267. package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
  268. package/lib/shared/pipes/complex/{cdd-page-fields.pipe.d.ts → ccd-page-fields.pipe.d.ts} +1 -1
  269. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -0
  270. package/lib/shared/pipes/complex/index.d.ts +1 -1
  271. package/lib/shared/pipes/pipes.module.d.ts +1 -1
  272. package/lib/shared/services/activity/activity-socket.service.d.ts +33 -0
  273. package/lib/shared/services/activity/activity-socket.service.d.ts.map +1 -0
  274. package/lib/shared/services/activity/activity.polling.service.d.ts +6 -5
  275. package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
  276. package/lib/shared/services/activity/activity.service.d.ts +14 -5
  277. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  278. package/lib/shared/services/activity/index.d.ts +1 -0
  279. package/lib/shared/services/activity/index.d.ts.map +1 -1
  280. package/lib/shared/services/activity/utils/index.d.ts +40 -0
  281. package/lib/shared/services/activity/utils/index.d.ts.map +1 -0
  282. package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
  283. package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
  284. package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
  285. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  286. package/lib/shared/services/fields/fields.utils.d.ts +0 -1
  287. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  288. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  289. package/lib/shared/services/loading/loading.service.d.ts +1 -4
  290. package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
  291. package/lib/shared/services/search/search.service.d.ts +0 -2
  292. package/lib/shared/services/search/search.service.d.ts.map +1 -1
  293. package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
  294. package/lib/shared/services/window/window.service.d.ts.map +1 -1
  295. package/package.json +2 -2
  296. package/esm2015/lib/shared/components/activity/activity.component.js +0 -150
  297. package/lib/shared/components/activity/activity.component.d.ts +0 -32
  298. package/lib/shared/components/activity/activity.component.d.ts.map +0 -1
  299. package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +0 -1
@@ -1,150 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { Activity, DisplayMode } from '../../domain/activity/activity.model';
3
- import { ActivityPollingService } from '../../services/activity/activity.polling.service';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../../services/activity/activity.polling.service";
6
- import * as i2 from "@angular/common";
7
- import * as i3 from "./activity-icon/activity-icon.component";
8
- import * as i4 from "./activity-banner/activity-banner.component";
9
- function ActivityComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
10
- i0.ɵɵelementStart(0, "div");
11
- i0.ɵɵelement(1, "ccd-activity-icon", 5);
12
- i0.ɵɵelementEnd();
13
- } if (rf & 2) {
14
- const ctx_r1 = i0.ɵɵnextContext(2);
15
- i0.ɵɵclassProp("activityEditorsAndViewersIcons", ctx_r1.viewersPresent())("activityEditorsIcon", !ctx_r1.viewersPresent());
16
- i0.ɵɵadvance(1);
17
- i0.ɵɵproperty("description", ctx_r1.editorsText);
18
- } }
19
- function ActivityComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
20
- i0.ɵɵelementStart(0, "div", 6);
21
- i0.ɵɵelement(1, "ccd-activity-icon", 7);
22
- i0.ɵɵelementEnd();
23
- } if (rf & 2) {
24
- const ctx_r2 = i0.ɵɵnextContext(2);
25
- i0.ɵɵadvance(1);
26
- i0.ɵɵproperty("description", ctx_r2.viewersText);
27
- } }
28
- function ActivityComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
29
- i0.ɵɵelementStart(0, "div");
30
- i0.ɵɵelement(1, "ccd-activity-banner", 8);
31
- i0.ɵɵelementEnd();
32
- } if (rf & 2) {
33
- const ctx_r3 = i0.ɵɵnextContext(2);
34
- i0.ɵɵadvance(1);
35
- i0.ɵɵproperty("description", ctx_r3.editorsText);
36
- } }
37
- function ActivityComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
38
- i0.ɵɵelementStart(0, "div");
39
- i0.ɵɵelement(1, "ccd-activity-banner", 9);
40
- i0.ɵɵelementEnd();
41
- } if (rf & 2) {
42
- const ctx_r4 = i0.ɵɵnextContext(2);
43
- i0.ɵɵadvance(1);
44
- i0.ɵɵproperty("description", ctx_r4.viewersText);
45
- } }
46
- function ActivityComponent_div_0_Template(rf, ctx) { if (rf & 1) {
47
- i0.ɵɵelementStart(0, "div", 1);
48
- i0.ɵɵtemplate(1, ActivityComponent_div_0_div_1_Template, 2, 5, "div", 2);
49
- i0.ɵɵtemplate(2, ActivityComponent_div_0_div_2_Template, 2, 1, "div", 3);
50
- i0.ɵɵtemplate(3, ActivityComponent_div_0_div_3_Template, 2, 1, "div", 4);
51
- i0.ɵɵtemplate(4, ActivityComponent_div_0_div_4_Template, 2, 1, "div", 4);
52
- i0.ɵɵelementEnd();
53
- } if (rf & 2) {
54
- const ctx_r0 = i0.ɵɵnextContext();
55
- i0.ɵɵadvance(1);
56
- i0.ɵɵproperty("ngIf", ctx_r0.displayMode === ctx_r0.dspMode.ICON && ctx_r0.editorsPresent());
57
- i0.ɵɵadvance(1);
58
- i0.ɵɵproperty("ngIf", ctx_r0.displayMode === ctx_r0.dspMode.ICON && ctx_r0.viewersPresent());
59
- i0.ɵɵadvance(1);
60
- i0.ɵɵproperty("ngIf", ctx_r0.displayMode === ctx_r0.dspMode.BANNER && ctx_r0.editorsPresent());
61
- i0.ɵɵadvance(1);
62
- i0.ɵɵproperty("ngIf", ctx_r0.displayMode === ctx_r0.dspMode.BANNER && ctx_r0.viewersPresent());
63
- } }
64
- export class ActivityComponent {
65
- constructor(activityPollingService) {
66
- this.activityPollingService = activityPollingService;
67
- this.dspMode = DisplayMode;
68
- this.VIEWERS_PREFIX = '';
69
- this.VIEWERS_SUFFIX = 'viewing this case';
70
- this.EDITORS_PREFIX = 'This case is being updated by ';
71
- this.EDITORS_SUFFIX = '';
72
- }
73
- ngOnInit() {
74
- this.activity = new Activity();
75
- this.activity.caseId = this.caseId;
76
- this.activity.editors = [];
77
- this.activity.unknownEditors = 0;
78
- this.activity.viewers = [];
79
- this.activity.unknownViewers = 0;
80
- this.viewersText = '';
81
- this.editorsText = '';
82
- this.subscription = this.activityPollingService.subscribeToActivity(this.caseId, newActivity => this.onActivityChange(newActivity));
83
- }
84
- onActivityChange(newActivity) {
85
- this.activity = newActivity;
86
- this.viewersText = this.generateDescription(this.VIEWERS_PREFIX, this.VIEWERS_SUFFIX, this.activity.viewers, this.activity.unknownViewers);
87
- this.editorsText = this.generateDescription(this.EDITORS_PREFIX, this.EDITORS_SUFFIX, this.activity.editors, this.activity.unknownEditors);
88
- }
89
- isActivityEnabled() {
90
- return this.activityPollingService.isEnabled;
91
- }
92
- isActiveCase() {
93
- return this.activity.editors.length || this.activity.viewers.length || this.activity.unknownEditors || this.activity.unknownViewers;
94
- }
95
- viewersPresent() {
96
- return (this.activity.viewers.length > 0 || this.activity.unknownViewers > 0);
97
- }
98
- editorsPresent() {
99
- return (this.activity.editors.length > 0 || this.activity.unknownEditors > 0);
100
- }
101
- ngOnDestroy() {
102
- if (this.subscription) {
103
- this.subscription.complete();
104
- this.subscription.unsubscribe();
105
- }
106
- this.activityPollingService.stopPolling();
107
- }
108
- generateDescription(prefix, suffix, namesArray, unknownCount) {
109
- let resultText = prefix;
110
- resultText += namesArray.map(activityInfo => activityInfo.forename + ' ' + activityInfo.surname).join(', ');
111
- if (unknownCount > 0) {
112
- resultText += (namesArray.length > 0 ? ' and ' + unknownCount + ' other' : unknownCount + ' user');
113
- resultText += (unknownCount > 1 ? 's' : '');
114
- }
115
- else {
116
- resultText = this.replaceLastCommaWithAnd(resultText);
117
- }
118
- if (suffix.length > 0) {
119
- if (namesArray.length + unknownCount > 1) {
120
- resultText += ' are ' + suffix;
121
- }
122
- else {
123
- resultText += ' is ' + suffix;
124
- }
125
- }
126
- return resultText;
127
- }
128
- replaceLastCommaWithAnd(str) {
129
- return str.trim().replace(/,([^,]*)$/, ' and $1').split(' ').join(' ');
130
- }
131
- }
132
- ActivityComponent.ɵfac = function ActivityComponent_Factory(t) { return new (t || ActivityComponent)(i0.ɵɵdirectiveInject(i1.ActivityPollingService)); };
133
- ActivityComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityComponent, selectors: [["ccd-activity"]], inputs: { caseId: "caseId", displayMode: "displayMode" }, decls: 1, vars: 1, consts: [["class", "activityComponent", 4, "ngIf"], [1, "activityComponent"], [3, "activityEditorsAndViewersIcons", "activityEditorsIcon", 4, "ngIf"], ["class", "activityViewersIcon", 4, "ngIf"], [4, "ngIf"], ["imageLink", "/img/editor.png", 3, "description"], [1, "activityViewersIcon"], ["imageLink", "/img/viewer.png", 3, "description"], ["imageLink", "/img/editorBanner.png", "bannerType", "editor", 3, "description"], ["imageLink", "/img/viewerBanner.png", "bannerType", "viewer", 3, "description"]], template: function ActivityComponent_Template(rf, ctx) { if (rf & 1) {
134
- i0.ɵɵtemplate(0, ActivityComponent_div_0_Template, 5, 4, "div", 0);
135
- } if (rf & 2) {
136
- i0.ɵɵproperty("ngIf", ctx.isActivityEnabled());
137
- } }, directives: [i2.NgIf, i3.ActivityIconComponent, i4.ActivityBannerComponent], styles: [".activityEditorsIcon[_ngcontent-%COMP%]{margin-left:14px}.activityEditorsAndViewersIcons[_ngcontent-%COMP%], .activityViewersIcon[_ngcontent-%COMP%]{float:left;margin-left:14px}"] });
138
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActivityComponent, [{
139
- type: Component,
140
- args: [{
141
- selector: 'ccd-activity',
142
- templateUrl: './activity.component.html',
143
- styleUrls: ['./activity.component.css']
144
- }]
145
- }], function () { return [{ type: i1.ActivityPollingService }]; }, { caseId: [{
146
- type: Input
147
- }], displayMode: [{
148
- type: Input
149
- }] }); })();
150
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL2FjdGl2aXR5L2FjdGl2aXR5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvY29tcG9uZW50cy9hY3Rpdml0eS9hY3Rpdml0eS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBcUIsTUFBTSxlQUFlLENBQUM7QUFFcEUsT0FBTyxFQUFFLFFBQVEsRUFBZ0IsV0FBVyxFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sa0RBQWtELENBQUM7Ozs7Ozs7SUNGeEYsMkJBQXdLO0lBQ3RLLHVDQUErRjtJQUNqRyxpQkFBTTs7O0lBRndELHlFQUF5RCxpREFBQTtJQUN0RSxlQUEyQjtJQUEzQixnREFBMkI7OztJQUU1RSw4QkFBMEY7SUFDeEYsdUNBQStGO0lBQ2pHLGlCQUFNOzs7SUFEMkMsZUFBMkI7SUFBM0IsZ0RBQTJCOzs7SUFFNUUsMkJBQWdFO0lBQzlELHlDQUNzQjtJQUN4QixpQkFBTTs7O0lBRm1ELGVBQTJCO0lBQTNCLGdEQUEyQjs7O0lBR3BGLDJCQUFnRTtJQUM5RCx5Q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WFnZUxpbms9XCIvaW1nL3ZpZXdlci5wbmdcIiBbZGVzY3JpcHRpb25dPVwidmlld2Vyc1RleHRcIj48L2NjZC1hY3Rpdml0eS1pY29uPlxuICA8L2Rpdj5cbiAgPGRpdiAqbmdJZj1cImRpc3BsYXlNb2RlID09PSBkc3BNb2RlLkJBTk5FUiAmJiBlZGl0b3JzUHJlc2VudCgpXCI+XG4gICAgPGNjZC1hY3Rpdml0eS1iYW5uZXIgaW1hZ2VMaW5rPVwiL2ltZy9lZGl0b3JCYW5uZXIucG5nXCIgW2Rlc2NyaXB0aW9uXT1cImVkaXRvcnNUZXh0XCIgYmFubmVyVHlwZT1cImVkaXRvclwiPlxuICAgIDwvY2NkLWFjdGl2aXR5LWJhbm5lcj5cbiAgPC9kaXY+XG4gIDxkaXYgKm5nSWY9XCJkaXNwbGF5TW9kZSA9PT0gZHNwTW9kZS5CQU5ORVIgJiYgdmlld2Vyc1ByZXNlbnQoKVwiPlxuICAgIDxjY2QtYWN0aXZpdHktYmFubmVyIGltYWdlTGluaz1cIi9pbWcvdmlld2VyQmFubmVyLnBuZ1wiIFtkZXNjcmlwdGlvbl09XCJ2aWV3ZXJzVGV4dFwiIGJhbm5lclR5cGU9XCJ2aWV3ZXJcIj5cbiAgICA8L2NjZC1hY3Rpdml0eS1iYW5uZXI+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -1,32 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { Activity, ActivityInfo, DisplayMode } from '../../domain/activity/activity.model';
4
- import { ActivityPollingService } from '../../services/activity/activity.polling.service';
5
- import * as i0 from "@angular/core";
6
- export declare class ActivityComponent implements OnInit, OnDestroy {
7
- private readonly activityPollingService;
8
- activity: Activity;
9
- dspMode: typeof DisplayMode;
10
- viewersText: string;
11
- editorsText: string;
12
- subscription: Subject<Activity>;
13
- caseId: string;
14
- displayMode: DisplayMode;
15
- private readonly VIEWERS_PREFIX;
16
- private readonly VIEWERS_SUFFIX;
17
- private readonly EDITORS_PREFIX;
18
- private readonly EDITORS_SUFFIX;
19
- constructor(activityPollingService: ActivityPollingService);
20
- ngOnInit(): void;
21
- onActivityChange(newActivity: Activity): void;
22
- isActivityEnabled(): boolean;
23
- isActiveCase(): number;
24
- viewersPresent(): boolean;
25
- editorsPresent(): boolean;
26
- ngOnDestroy(): void;
27
- generateDescription(prefix: string, suffix: string, namesArray: ActivityInfo[], unknownCount: any): string;
28
- private replaceLastCommaWithAnd;
29
- static ɵfac: i0.ɵɵFactoryDef<ActivityComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDefWithMeta<ActivityComponent, "ccd-activity", never, { "caseId": "caseId"; "displayMode": "displayMode"; }, {}, never, never>;
31
- }
32
- //# sourceMappingURL=activity.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activity.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/activity/activity.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;;AAE1F,qBAKa,iBAAkB,YAAW,MAAM,EAAE,SAAS;IAmB7C,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IAlB5C,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,qBAAe;IAEtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAGhC,MAAM,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,WAAW,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAM;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