@hmcts/ccd-case-ui-toolkit 6.13.10-case-file-view-sort-by-document-upload-date → 6.13.10-case-file-view-sort-by-document-upload-date-v3

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 (216) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +532 -492
  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 +1 -1
  6. package/esm2015/lib/components/form/date-input/date-input.component.js +8 -8
  7. package/esm2015/lib/components/header/header-bar/header-bar.component.js +3 -2
  8. package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.module.js +1 -1
  9. package/esm2015/lib/shared/commons/case-edit-data/case-edit-validation.model.js +1 -1
  10. package/esm2015/lib/shared/components/activity/activity.component.js +5 -5
  11. package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +1 -1
  12. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +4 -4
  13. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +4 -4
  14. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
  15. package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +1 -2
  16. 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
  17. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +1 -2
  18. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +1 -1
  19. package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +1 -2
  20. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +16 -8
  21. package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -2
  22. package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +12 -12
  23. package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -1
  24. package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +1 -2
  25. package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +5 -5
  26. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
  27. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -3
  28. package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +4 -4
  29. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -5
  30. package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +3 -3
  31. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +2 -2
  32. package/esm2015/lib/shared/components/error/callback-errors.component.js +5 -5
  33. package/esm2015/lib/shared/components/error/domain/error-context.js +1 -1
  34. package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +2 -2
  35. package/esm2015/lib/shared/components/pagination/pagination.component.js +10 -10
  36. package/esm2015/lib/shared/components/palette/address/address-option.model.js +7 -4
  37. package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +4 -4
  38. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
  39. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +2 -2
  40. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
  41. package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
  42. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +7 -7
  43. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +1 -1
  44. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +1 -1
  45. package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +1 -1
  46. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
  47. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
  48. package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +1 -2
  49. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -2
  50. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +3 -2
  51. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +4 -3
  52. package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +1 -2
  53. package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
  54. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  55. package/esm2015/lib/shared/components/palette/palette.service.js +2 -2
  56. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
  57. package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
  58. package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +1 -3
  59. package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
  60. package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
  61. package/esm2015/lib/shared/components/search-result/search-result.component.js +5 -5
  62. package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
  63. package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +3 -4
  64. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +9 -5
  65. package/esm2015/lib/shared/domain/addresses/address.model.js +1 -2
  66. package/esm2015/lib/shared/domain/case-details.model.js +1 -2
  67. package/esm2015/lib/shared/domain/case-event-data.model.js +1 -2
  68. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
  69. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
  70. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +1 -2
  71. package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +1 -2
  72. package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +1 -2
  73. package/esm2015/lib/shared/domain/case-view/case-tab.model.js +1 -2
  74. package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +1 -2
  75. package/esm2015/lib/shared/domain/case-view/case-view.model.js +1 -2
  76. package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
  77. package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
  78. package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
  79. package/esm2015/lib/shared/domain/definition/case-field.model.js +1 -2
  80. package/esm2015/lib/shared/domain/definition/case-type.model.js +1 -2
  81. package/esm2015/lib/shared/domain/definition/event-case-field.model.js +1 -2
  82. package/esm2015/lib/shared/domain/definition/field-type.model.js +1 -2
  83. package/esm2015/lib/shared/domain/document/document-data.model.js +1 -2
  84. package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
  85. package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
  86. package/esm2015/lib/shared/domain/search/field.model.js +1 -1
  87. package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
  88. package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +1 -2
  89. package/esm2015/lib/shared/domain/search/search-result-view.model.js +1 -2
  90. package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
  91. package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +8 -1
  92. package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
  93. package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
  94. package/esm2015/lib/shared/pipes/complex/{ccd-page-fields.pipe.js → cdd-page-fields.pipe.js} +3 -3
  95. package/esm2015/lib/shared/pipes/complex/index.js +2 -2
  96. package/esm2015/lib/shared/services/activity/activity.polling.service.js +2 -2
  97. package/esm2015/lib/shared/services/activity/activity.service.js +18 -9
  98. package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
  99. package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
  100. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
  101. package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
  102. package/esm2015/lib/shared/services/definitions/definitions.service.js +8 -3
  103. package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
  104. package/esm2015/lib/shared/services/fields/fields.utils.js +4 -5
  105. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +1 -2
  106. package/esm2015/lib/shared/services/form/form-value.service.js +2 -1
  107. package/esm2015/lib/shared/services/loading/loading.service.js +7 -2
  108. package/esm2015/lib/shared/services/search/search.service.js +10 -5
  109. package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
  110. package/esm2015/lib/shared/services/window/window.service.js +1 -1
  111. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +475 -441
  112. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  113. package/lib/app.config.d.ts.map +1 -1
  114. package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
  115. package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
  116. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  117. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
  118. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  119. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  120. package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -1
  121. 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
  122. 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
  123. package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
  124. package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
  125. package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
  126. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  127. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  128. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  129. package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
  130. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  131. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  132. package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
  133. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  134. package/lib/shared/components/error/domain/error-context.d.ts +2 -2
  135. package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
  136. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
  137. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
  138. package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
  139. package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
  140. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  141. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  142. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  143. package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
  144. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  145. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  146. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  147. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  148. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  149. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  150. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  151. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  152. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  153. package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
  154. package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
  155. package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
  156. package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
  157. package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
  158. package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
  159. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  160. package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
  161. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  162. package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
  163. package/lib/shared/domain/case-details.model.d.ts.map +1 -1
  164. package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
  165. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
  166. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
  167. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  168. package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
  169. package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
  170. package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
  171. package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
  172. package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
  173. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +2 -1
  174. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
  175. package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
  176. package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
  177. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  178. package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
  179. package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
  180. package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
  181. package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
  182. package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
  183. package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
  184. package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
  185. package/lib/shared/domain/search/field.model.d.ts.map +1 -1
  186. package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
  187. package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
  188. package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
  189. package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
  190. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +1 -0
  191. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
  192. package/lib/shared/fixture/case-field-builder.d.ts +6 -6
  193. package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
  194. package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
  195. package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
  196. package/lib/shared/pipes/complex/{ccd-page-fields.pipe.d.ts → cdd-page-fields.pipe.d.ts} +1 -1
  197. package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +1 -0
  198. package/lib/shared/pipes/complex/index.d.ts +1 -1
  199. package/lib/shared/pipes/pipes.module.d.ts +1 -1
  200. package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
  201. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  202. package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
  203. package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
  204. package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
  205. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  206. package/lib/shared/services/fields/fields.utils.d.ts +1 -0
  207. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  208. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  209. package/lib/shared/services/loading/loading.service.d.ts +4 -1
  210. package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
  211. package/lib/shared/services/search/search.service.d.ts +2 -0
  212. package/lib/shared/services/search/search.service.d.ts.map +1 -1
  213. package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
  214. package/lib/shared/services/window/window.service.d.ts.map +1 -1
  215. package/package.json +2 -2
  216. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +0 -1
@@ -1036,22 +1036,22 @@
1036
1036
  }
1037
1037
  };
1038
1038
  DateInputComponent.prototype.dayId = function () {
1039
- return this.id + "-day";
1039
+ return this.id + '-day';
1040
1040
  };
1041
1041
  DateInputComponent.prototype.monthId = function () {
1042
- return this.id + "-month";
1042
+ return this.id + '-month';
1043
1043
  };
1044
1044
  DateInputComponent.prototype.yearId = function () {
1045
- return this.id + "-year";
1045
+ return this.id + '-year';
1046
1046
  };
1047
1047
  DateInputComponent.prototype.hourId = function () {
1048
- return this.id + "-hour";
1048
+ return this.id + '-hour';
1049
1049
  };
1050
1050
  DateInputComponent.prototype.minuteId = function () {
1051
- return this.id + "-minute";
1051
+ return this.id + '-minute';
1052
1052
  };
1053
1053
  DateInputComponent.prototype.secondId = function () {
1054
- return this.id + "-second";
1054
+ return this.id + '-second';
1055
1055
  };
1056
1056
  DateInputComponent.prototype.viewValue = function () {
1057
1057
  if (this.day || this.month || this.year || this.hour || this.minute || this.second) {
@@ -1066,7 +1066,7 @@
1066
1066
  this.minute ? this.pad(this.minute) : '',
1067
1067
  this.second ? this.pad(this.second) : ''
1068
1068
  ].join(':');
1069
- return date + "T" + time + ".000";
1069
+ return date + 'T' + time + '.000';
1070
1070
  }
1071
1071
  else {
1072
1072
  return date;
@@ -2131,7 +2131,7 @@
2131
2131
  });
2132
2132
  ActivityService.handleHttpError = function (response) {
2133
2133
  var error = HttpErrorService.convertToHttpError(response);
2134
- if ((response === null || response === void 0 ? void 0 : response.status) !== error.status) {
2134
+ if (response.status && response.status !== error.status) {
2135
2135
  error.status = response.status;
2136
2136
  }
2137
2137
  return error;
@@ -2139,11 +2139,12 @@
2139
2139
  ActivityService.prototype.getOptions = function () {
2140
2140
  var userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
2141
2141
  var headers = new i1$2.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
2142
- return {
2142
+ var options = {
2143
2143
  headers: headers,
2144
2144
  withCredentials: true,
2145
2145
  observe: 'body',
2146
2146
  };
2147
+ return options;
2147
2148
  };
2148
2149
  ActivityService.prototype.getActivities = function () {
2149
2150
  var caseId = [];
@@ -2152,33 +2153,41 @@
2152
2153
  }
2153
2154
  try {
2154
2155
  var options = this.getOptions();
2155
- var url = this.activityUrl() + "/cases/" + caseId.join(',') + "/activity";
2156
+ var url = this.activityUrl() + ("/cases/" + caseId.join(',') + "/activity");
2156
2157
  return this.http
2157
2158
  .get(url, options, false, ActivityService.handleHttpError)
2158
2159
  .pipe(operators.map(function (response) { return response; }));
2159
2160
  }
2160
2161
  catch (error) {
2161
- console.log("user may not be authenticated." + error);
2162
+ console.log('user may not be authenticated.' + error);
2162
2163
  }
2163
2164
  };
2164
2165
  ActivityService.prototype.postActivity = function (caseId, activity) {
2165
2166
  try {
2166
2167
  var options = this.getOptions();
2167
- var url = this.activityUrl() + "/cases/" + caseId + "/activity";
2168
+ var url = this.activityUrl() + ("/cases/" + caseId + "/activity");
2168
2169
  var body = { activity: activity };
2169
2170
  return this.http
2170
2171
  .post(url, body, options, false)
2171
2172
  .pipe(operators.map(function (response) { return response; }));
2172
2173
  }
2173
2174
  catch (error) {
2174
- console.log("user may not be authenticated." + error);
2175
+ console.log('user may not be authenticated.' + error);
2175
2176
  }
2176
2177
  };
2177
2178
  ActivityService.prototype.verifyUserIsAuthorized = function () {
2178
2179
  var _this = this;
2179
- if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
2180
+ if (this.sessionStorageService.getItem('userDetails') === undefined) {
2181
+ return;
2182
+ }
2183
+ if (this.activityUrl() && this.userAuthorised === undefined) {
2180
2184
  this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(function () { return _this.userAuthorised = true; }, function (error) {
2181
- _this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
2185
+ if ([401, 403].indexOf(error.status) > -1) {
2186
+ _this.userAuthorised = false;
2187
+ }
2188
+ else {
2189
+ _this.userAuthorised = true;
2190
+ }
2182
2191
  });
2183
2192
  }
2184
2193
  };
@@ -2291,7 +2300,7 @@
2291
2300
  requests.get(activity.caseId).next(activity);
2292
2301
  });
2293
2302
  }, function (err) {
2294
- console.log("error: " + err);
2303
+ console.log('error: ' + err);
2295
2304
  Array.from(requests.values()).forEach(function (subject) { return subject.error(err); });
2296
2305
  }); });
2297
2306
  });
@@ -2431,9 +2440,9 @@
2431
2440
  };
2432
2441
  ActivityComponent.prototype.generateDescription = function (prefix, suffix, namesArray, unknownCount) {
2433
2442
  var resultText = prefix;
2434
- resultText += namesArray.map(function (activityInfo) { return activityInfo.forename + " " + activityInfo.surname; }).join(', ');
2443
+ resultText += namesArray.map(function (activityInfo) { return activityInfo.forename + ' ' + activityInfo.surname; }).join(', ');
2435
2444
  if (unknownCount > 0) {
2436
- resultText += (namesArray.length > 0 ? " and " + unknownCount + " other" : unknownCount + " user");
2445
+ resultText += (namesArray.length > 0 ? ' and ' + unknownCount + ' other' : unknownCount + ' user');
2437
2446
  resultText += (unknownCount > 1 ? 's' : '');
2438
2447
  }
2439
2448
  else {
@@ -2441,10 +2450,10 @@
2441
2450
  }
2442
2451
  if (suffix.length > 0) {
2443
2452
  if (namesArray.length + unknownCount > 1) {
2444
- resultText += " are " + suffix;
2453
+ resultText += ' are ' + suffix;
2445
2454
  }
2446
2455
  else {
2447
- resultText += " is " + suffix;
2456
+ resultText += ' is ' + suffix;
2448
2457
  }
2449
2458
  }
2450
2459
  return resultText;
@@ -2783,7 +2792,7 @@
2783
2792
  break;
2784
2793
  case 'n':
2785
2794
  case 'N':
2786
- maybePush(result, "***" + c + "***", inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2795
+ maybePush(result, '***' + c + '***', inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2787
2796
  break;
2788
2797
  case 'V':
2789
2798
  case 'O':
@@ -2917,9 +2926,9 @@
2917
2926
  resultDate = offsetDate.getDate() + " " + DatePipe.MONTHS[offsetDate.getMonth()] + " " + offsetDate.getFullYear();
2918
2927
  if (match[4] && match[5] && match[6] && format !== 'short') {
2919
2928
  resultDate += ', ';
2920
- resultDate += this.getHour(offsetDate.getHours().toString()) + ":";
2921
- resultDate += this.pad(offsetDate.getMinutes()) + ":";
2922
- resultDate += this.pad(offsetDate.getSeconds()) + " ";
2929
+ resultDate += this.getHour(offsetDate.getHours().toString()) + ':';
2930
+ resultDate += this.pad(offsetDate.getMinutes()) + ':';
2931
+ resultDate += this.pad(offsetDate.getSeconds()) + ' ';
2923
2932
  resultDate += (this.toInt(offsetDate.getHours().toString()) >= 12) ? 'PM' : 'AM';
2924
2933
  }
2925
2934
  }
@@ -3294,7 +3303,6 @@
3294
3303
  }], null, null);
3295
3304
  })();
3296
3305
 
3297
- // tslint:disable:variable-name
3298
3306
  var AddressModel = /** @class */ (function () {
3299
3307
  function AddressModel() {
3300
3308
  this.AddressLine1 = '';
@@ -3314,14 +3322,12 @@
3314
3322
  return Alert;
3315
3323
  }());
3316
3324
 
3317
- // tslint:disable:variable-name
3318
3325
  var CaseDetails = /** @class */ (function () {
3319
3326
  function CaseDetails() {
3320
3327
  }
3321
3328
  return CaseDetails;
3322
3329
  }());
3323
3330
 
3324
- // tslint:disable:variable-name
3325
3331
  var CaseEventData = /** @class */ (function () {
3326
3332
  function CaseEventData() {
3327
3333
  }
@@ -3619,7 +3625,6 @@
3619
3625
  __metadata("design:type", Array)
3620
3626
  ], CaseEventTrigger.prototype, "wizard_pages", void 0);
3621
3627
 
3622
- // tslint:disable:variable-name
3623
3628
  var CaseViewEvent = /** @class */ (function () {
3624
3629
  function CaseViewEvent() {
3625
3630
  }
@@ -3664,7 +3669,6 @@
3664
3669
  __metadata("design:type", Array)
3665
3670
  ], CaseType.prototype, "case_fields", void 0);
3666
3671
 
3667
- // tslint:disable:variable-name
3668
3672
  var EventCaseField = /** @class */ (function () {
3669
3673
  function EventCaseField() {
3670
3674
  }
@@ -3715,7 +3719,6 @@
3715
3719
  return CasePrintDocument;
3716
3720
  }());
3717
3721
 
3718
- // tslint:disable:variable-name
3719
3722
  var HRef = /** @class */ (function () {
3720
3723
  function HRef() {
3721
3724
  }
@@ -3767,25 +3770,25 @@
3767
3770
  OrganisationConverter.toSimpleAddress = function (organisationModel) {
3768
3771
  var simpleAddress = '';
3769
3772
  if (organisationModel.addressLine1) {
3770
- simpleAddress += organisationModel.addressLine1 + "<br>";
3773
+ simpleAddress += organisationModel.addressLine1 + '<br>';
3771
3774
  }
3772
3775
  if (organisationModel.addressLine2) {
3773
- simpleAddress += organisationModel.addressLine2 + "<br>";
3776
+ simpleAddress += organisationModel.addressLine2 + '<br>';
3774
3777
  }
3775
3778
  if (organisationModel.addressLine3) {
3776
- simpleAddress += organisationModel.addressLine3 + "<br>";
3779
+ simpleAddress += organisationModel.addressLine3 + '<br>';
3777
3780
  }
3778
3781
  if (organisationModel.townCity) {
3779
- simpleAddress += organisationModel.townCity + "<br>";
3782
+ simpleAddress += organisationModel.townCity + '<br>';
3780
3783
  }
3781
3784
  if (organisationModel.county) {
3782
- simpleAddress += organisationModel.county + "<br>";
3785
+ simpleAddress += organisationModel.county + '<br>';
3783
3786
  }
3784
3787
  if (organisationModel.country) {
3785
- simpleAddress += organisationModel.country + "<br>";
3788
+ simpleAddress += organisationModel.country + '<br>';
3786
3789
  }
3787
3790
  if (organisationModel.postCode) {
3788
- simpleAddress += organisationModel.postCode + "<br>";
3791
+ simpleAddress += organisationModel.postCode + '<br>';
3789
3792
  }
3790
3793
  return simpleAddress;
3791
3794
  };
@@ -3906,7 +3909,12 @@
3906
3909
  })(exports.SortOrder || (exports.SortOrder = {}));
3907
3910
 
3908
3911
  var WorkbasketInputModel = /** @class */ (function () {
3909
- function WorkbasketInputModel() {
3912
+ function WorkbasketInputModel(label, order, field, metadata, display_context_parameter) {
3913
+ this.label = label;
3914
+ this.order = order;
3915
+ this.field = field;
3916
+ this.metadata = metadata;
3917
+ this.display_context_parameter = display_context_parameter;
3910
3918
  }
3911
3919
  return WorkbasketInputModel;
3912
3920
  }());
@@ -3933,9 +3941,9 @@
3933
3941
  });
3934
3942
  return valueMap;
3935
3943
  };
3936
- // public static getType(elem: any): string {
3937
- // return Object.prototype.toString.call(elem).slice(8, -1);
3938
- // }
3944
+ FieldsUtils.getType = function (elem) {
3945
+ return Object.prototype.toString.call(elem).slice(8, -1);
3946
+ };
3939
3947
  FieldsUtils.isObject = function (elem) {
3940
3948
  return typeof elem === 'object' && elem !== null;
3941
3949
  };
@@ -4444,7 +4452,6 @@
4444
4452
  var elements = (result[field.id] || field.value);
4445
4453
  if (elements) {
4446
4454
  elements.forEach(function (elem) {
4447
- // tslint:disable-next-line:switch-default
4448
4455
  switch (field.field_type.collection_field_type.type) {
4449
4456
  case 'MoneyGBP': {
4450
4457
  elem.value = FieldsUtils.getMoneyGBP(elem.value);
@@ -4494,6 +4501,7 @@
4494
4501
  if (!condition) {
4495
4502
  return null;
4496
4503
  }
4504
+ ;
4497
4505
  condition = condition.replace(/CONTAINS/g, ' CONTAINS');
4498
4506
  return peg.parse(condition.trim(), {});
4499
4507
  };
@@ -4507,12 +4515,14 @@
4507
4515
  if (!conditions || conditions.length === 0) {
4508
4516
  return true;
4509
4517
  }
4518
+ ;
4510
4519
  var validJoinComparators = ['AND', 'OR'];
4511
- return conditions.reduce(function (accumulator, condition, index) {
4520
+ var result = conditions.reduce(function (accumulator, condition, index) {
4512
4521
  var isJoinComparator = function (comparator) { return (typeof comparator === 'string' && validJoinComparators.indexOf(comparator) !== -1); };
4513
4522
  if (isJoinComparator(condition)) {
4514
4523
  return accumulator;
4515
4524
  }
4525
+ ;
4516
4526
  var currentConditionResult = true;
4517
4527
  if (Array.isArray(condition)) {
4518
4528
  currentConditionResult = _this.evaluate(fields, condition);
@@ -4529,9 +4539,9 @@
4529
4539
  }
4530
4540
  return currentConditionResult;
4531
4541
  }, true);
4542
+ return result;
4532
4543
  };
4533
4544
  ConditionParser.evaluateJoin = function (leftResult, comparator, rightResult) {
4534
- // tslint:disable-next-line:switch-default
4535
4545
  switch (comparator) {
4536
4546
  case 'OR': return leftResult || rightResult;
4537
4547
  case 'AND': return leftResult && rightResult;
@@ -4621,7 +4631,8 @@
4621
4631
  }
4622
4632
  };
4623
4633
  ConditionParser.unquoted = function (str) {
4624
- return str.replace(/^"|"$/g, '');
4634
+ var res = str.replace(/^"|"$/g, '');
4635
+ return res;
4625
4636
  };
4626
4637
  ConditionParser.findValueForComplexCondition = function (fields, head, tail, path) {
4627
4638
  if (!fields) {
@@ -4735,8 +4746,8 @@
4735
4746
  if (originalCondition.indexOf(condition.fieldReference) > -1) {
4736
4747
  if (this.processedList && this.processedList.indexOf(condition.fieldReference) === -1) {
4737
4748
  this.processedList.push(condition.fieldReference);
4738
- var regularExp = new RegExp("(\\b)" + condition.fieldReference + "(?=[^\"]*(?:\"[^\"]*\"[^\"]*)*$)(\\b)", 'g');
4739
- return originalCondition.replace(regularExp, pathPrefix + "." + condition.fieldReference);
4749
+ var regularExp = new RegExp('(\\b)' + condition.fieldReference + '(?=[^"]*(?:"[^"]*"[^"]*)*$)(\\b)', 'g');
4750
+ return originalCondition.replace(regularExp, pathPrefix + '.' + condition.fieldReference);
4740
4751
  }
4741
4752
  else {
4742
4753
  return originalCondition;
@@ -4815,7 +4826,6 @@
4815
4826
  }
4816
4827
  // Consider what type of field this is.
4817
4828
  var ft = caseField.field_type;
4818
- // tslint:disable-next-line:switch-default
4819
4829
  switch (ft.type) {
4820
4830
  case 'Collection':
4821
4831
  if (ft.collection_field_type.type === 'Complex' && ft.collection_field_type.complex_fields) {
@@ -5306,14 +5316,14 @@
5306
5316
  var formFields = form.getRawValue();
5307
5317
  var currentPage = wizard.getPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
5308
5318
  currentPage.wizard_page_fields.forEach(function (wpf) {
5309
- var caseField = _this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
5310
- if (_this.hasShowConditionField(caseField, formFields)) {
5311
- var condition = new ShowCondition(caseField.show_condition);
5312
- if (_this.isHidden(condition, formFields.data) && !(_this.isReadonly(caseField))) {
5313
- _this.resetField(form, caseField);
5319
+ var case_field = _this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
5320
+ if (_this.hasShowConditionField(case_field, formFields)) {
5321
+ var condition = new ShowCondition(case_field.show_condition);
5322
+ if (_this.isHidden(condition, formFields.data) && !(_this.isReadonly(case_field))) {
5323
+ _this.resetField(form, case_field);
5314
5324
  }
5315
5325
  }
5316
- _this.retainHiddenValueByFieldType(caseField, form);
5326
+ _this.retainHiddenValueByFieldType(case_field, form);
5317
5327
  });
5318
5328
  };
5319
5329
  FieldsPurger.prototype.retainHiddenValueByFieldType = function (field, form) {
@@ -5344,13 +5354,13 @@
5344
5354
  FieldsPurger.prototype.hasShowConditionPage = function (wizardPage, formFields) {
5345
5355
  return wizardPage.show_condition && formFields[this.getShowConditionKey(wizardPage.show_condition)];
5346
5356
  };
5347
- FieldsPurger.prototype.hasShowConditionField = function (caseField, formFields) {
5348
- return caseField.show_condition && formFields.data[this.getShowConditionKey(caseField.show_condition)];
5357
+ FieldsPurger.prototype.hasShowConditionField = function (case_field, formFields) {
5358
+ return case_field.show_condition && formFields.data[this.getShowConditionKey(case_field.show_condition)];
5349
5359
  };
5350
- FieldsPurger.prototype.getShowConditionKey = function (showCondition) {
5360
+ FieldsPurger.prototype.getShowConditionKey = function (show_condition) {
5351
5361
  // Need to allow for negated conditions, i.e. !=, as well as regular ones (=)
5352
5362
  // Also need to allow for conditions specified using the "CONTAINS" keyword
5353
- return showCondition.split(/!=|=|CONTAINS/)[0];
5363
+ return show_condition.split(/!=|=|CONTAINS/)[0];
5354
5364
  };
5355
5365
  FieldsPurger.prototype.resetField = function (form, field) {
5356
5366
  var e_1, _a;
@@ -5446,8 +5456,8 @@
5446
5456
  FieldsPurger.prototype.resetPage = function (form, wizardPage) {
5447
5457
  var _this = this;
5448
5458
  wizardPage.wizard_page_fields.forEach(function (wpf) {
5449
- var caseField = _this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
5450
- _this.resetField(form, caseField);
5459
+ var case_field = _this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
5460
+ _this.resetField(form, case_field);
5451
5461
  });
5452
5462
  };
5453
5463
  FieldsPurger.prototype.getType = function (elem) {
@@ -5457,8 +5467,8 @@
5457
5467
  return this.getType(elem) === 'Object';
5458
5468
  };
5459
5469
  // TODO: call isReadOnly on CaseFields once we make it available
5460
- FieldsPurger.prototype.isReadonly = function (caseField) {
5461
- return caseField.display_context.toUpperCase() === 'READONLY';
5470
+ FieldsPurger.prototype.isReadonly = function (case_field) {
5471
+ return case_field.display_context.toUpperCase() === 'READONLY';
5462
5472
  };
5463
5473
  /**
5464
5474
  * Deletes a field value by setting the value of the corresponding {@link FormControl} to null (or an empty array
@@ -5645,7 +5655,6 @@
5645
5655
  return;
5646
5656
  }
5647
5657
  caseFields.forEach(function (caseField) {
5648
- // tslint:disable-next-line:switch-default
5649
5658
  switch (caseField.field_type.type) {
5650
5659
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
5651
5660
  _this.convertArrayToDynamicListOutput(caseField, data);
@@ -6354,6 +6363,7 @@
6354
6363
  });
6355
6364
  }
6356
6365
  }
6366
+ ;
6357
6367
  });
6358
6368
  }
6359
6369
  };
@@ -6792,7 +6802,7 @@
6792
6802
  return addressModel;
6793
6803
  };
6794
6804
  AddressParser.prototype.parseAddressLine1 = function (classification, address) {
6795
- var addressLine;
6805
+ var addressLine = '';
6796
6806
  if (classification === AddressType.RD06) {
6797
6807
  addressLine =
6798
6808
  address.SUB_BUILDING_NAME + " " + address.ORGANISATION_NAME + " " + address.DEPARTMENT_NAME + " " + address.PO_BOX_NUMBER;
@@ -6805,7 +6815,7 @@
6805
6815
  return this.removeNonAddressValues(addressLine);
6806
6816
  };
6807
6817
  AddressParser.prototype.parseAddressLine2 = function (classification, address) {
6808
- var addressLine;
6818
+ var addressLine = '';
6809
6819
  if (classification === AddressType.RD06) {
6810
6820
  addressLine = address.BUILDING_NAME + " ";
6811
6821
  }
@@ -6816,7 +6826,7 @@
6816
6826
  return this.removeNonAddressValues(addressLine);
6817
6827
  };
6818
6828
  AddressParser.prototype.parseAddressLine3 = function (classification, address) {
6819
- var addressLine;
6829
+ var addressLine = '';
6820
6830
  if (classification === AddressType.RD06) {
6821
6831
  addressLine =
6822
6832
  address.BUILDING_NUMBER + " " + address.THOROUGHFARE_NAME;
@@ -6844,7 +6854,7 @@
6844
6854
  return value.replace(new RegExp('^,', 'gi'), '');
6845
6855
  };
6846
6856
  AddressParser.prototype.prefixWithCommaIfPresent = function (value) {
6847
- return value ? ", " + value : value;
6857
+ return value ? ', ' + value : value;
6848
6858
  };
6849
6859
  return AddressParser;
6850
6860
  }());
@@ -7325,7 +7335,7 @@
7325
7335
  if (flagType) {
7326
7336
  url += "?flag-type=" + flagType;
7327
7337
  }
7328
- if (typeof welshRequired === 'boolean') {
7338
+ if (welshRequired != null) {
7329
7339
  // Check if flag-type has been added to the query string; if so, append welsh-required with '&'
7330
7340
  url.indexOf('?') > -1 ? url += '&' : url += '?';
7331
7341
  welshRequired ? url += 'welsh-required=Y' : url += 'welsh-required=N';
@@ -7931,6 +7941,18 @@
7931
7941
  }], null, null);
7932
7942
  })();
7933
7943
 
7944
+ var HasLoadingState = /** @class */ (function () {
7945
+ function HasLoadingState() {
7946
+ }
7947
+ Object.defineProperty(HasLoadingState.prototype, "isLoading", {
7948
+ get: function () {
7949
+ return;
7950
+ },
7951
+ enumerable: false,
7952
+ configurable: true
7953
+ });
7954
+ return HasLoadingState;
7955
+ }());
7934
7956
  var LoadingService = /** @class */ (function () {
7935
7957
  function LoadingService() {
7936
7958
  this.registered = new Map();
@@ -7955,7 +7977,7 @@
7955
7977
  };
7956
7978
  LoadingService.prototype.generateToken = function () {
7957
7979
  var timestamp = window.performance.now();
7958
- return "toolkit-loading-" + timestamp; // format: [source-library]-[unique incrementing number]
7980
+ return 'toolkit-loading-' + timestamp; // format: [source-library]-[unique incrementing number]
7959
7981
  };
7960
7982
  return LoadingService;
7961
7983
  }());
@@ -7976,7 +7998,10 @@
7976
7998
  }
7977
7999
  SearchService.prototype.search = function (jurisdictionId, caseTypeId, metaCriteria, caseCriteria, view) {
7978
8000
  var _this = this;
7979
- var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types/" + caseTypeId + "/cases";
8001
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid"
8002
+ + ("/jurisdictions/" + jurisdictionId)
8003
+ + ("/case-types/" + caseTypeId)
8004
+ + "/cases";
7980
8005
  var options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
7981
8006
  var loadingToken = this.loadingService.register();
7982
8007
  return this.httpService
@@ -7985,14 +8010,15 @@
7985
8010
  };
7986
8011
  SearchService.prototype.searchCasesByIds = function (caseTypeId, filter, view, sort) {
7987
8012
  var _this = this;
7988
- var url = this.appConfig.getCaseDataUrl() + "/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view;
8013
+ var url = this.appConfig.getCaseDataUrl() +
8014
+ ("/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view);
7989
8015
  var body = Object.assign(Object.assign({ sort: sort }, filter), { size: this.appConfig.getPaginationPageSize() });
7990
8016
  var loadingToken = this.loadingService.register();
7991
8017
  return this.httpService.post(url, body).pipe(operators.map(function (response) { return response; }), operators.finalize(function () { return _this.loadingService.unregister(loadingToken); }));
7992
8018
  };
7993
8019
  SearchService.prototype.searchCases = function (caseTypeId, metaCriteria, caseCriteria, view, sort) {
7994
8020
  var _this = this;
7995
- var url = this.appConfig.getCaseDataUrl() + "/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view;
8021
+ var url = this.appConfig.getCaseDataUrl() + ("/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view);
7996
8022
  var options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
7997
8023
  var body = {
7998
8024
  sort: sort,
@@ -8037,8 +8063,9 @@
8037
8063
  return SearchService;
8038
8064
  }());
8039
8065
  SearchService.V2_MEDIATYPE_SEARCH_INPUTS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-search-input-details.v2+json;charset=UTF-8';
8040
- // public static readonly VIEW_SEARCH = 'SEARCH';
8066
+ SearchService.VIEW_SEARCH = 'SEARCH';
8041
8067
  SearchService.VIEW_WORKBASKET = 'WORKBASKET';
8068
+ SearchService.FIELD_PREFIX = 'case.';
8042
8069
  SearchService.ɵfac = function SearchService_Factory(t) { return new (t || SearchService)(i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(RequestOptionsBuilder), i0__namespace.ɵɵinject(LoadingService)); };
8043
8070
  SearchService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: SearchService, factory: SearchService.ɵfac });
8044
8071
  (function () {
@@ -8168,12 +8195,17 @@
8168
8195
  this.appConfig = appConfig;
8169
8196
  }
8170
8197
  DefinitionsService.prototype.getCaseTypes = function (jurisdictionId, access) {
8171
- var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types?access=" + access;
8198
+ var url = this.appConfig.getApiUrl()
8199
+ + "/caseworkers/:uid"
8200
+ + ("/jurisdictions/" + jurisdictionId)
8201
+ + ("/case-types?access=" + access);
8172
8202
  return this.http
8173
8203
  .get(url).pipe(operators.map(function (response) { return response; }));
8174
8204
  };
8175
8205
  DefinitionsService.prototype.getJurisdictions = function (access) {
8176
- var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions?access=" + access;
8206
+ var url = this.appConfig.getApiUrl()
8207
+ + "/caseworkers/:uid"
8208
+ + ("/jurisdictions?access=" + access);
8177
8209
  return this.http
8178
8210
  .get(url)
8179
8211
  .pipe(operators.map(function (response) { return response; }));
@@ -8255,8 +8287,8 @@
8255
8287
  compare: function (a, b) {
8256
8288
  var fieldA = a.case_fields[fieldId];
8257
8289
  var fieldB = b.case_fields[fieldId];
8258
- fieldA = util.isUndefined(fieldA) || fieldA === null ? '' : fieldA.toLowerCase();
8259
- fieldB = util.isUndefined(fieldB) || fieldB === null ? '' : fieldB.toLowerCase();
8290
+ fieldA = util.isUndefined(fieldA) || fieldA == null ? '' : fieldA.toLowerCase();
8291
+ fieldB = util.isUndefined(fieldB) || fieldB == null ? '' : fieldB.toLowerCase();
8260
8292
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
8261
8293
  }
8262
8294
  };
@@ -8266,8 +8298,8 @@
8266
8298
  compare: function (a, b) {
8267
8299
  var fieldA = a.case_fields[fieldId];
8268
8300
  var fieldB = b.case_fields[fieldId];
8269
- fieldA = util.isUndefined(fieldA) || fieldA === null ? '' : fieldA.join().toLowerCase();
8270
- fieldB = util.isUndefined(fieldB) || fieldB === null ? '' : fieldB.join().toLowerCase();
8301
+ fieldA = util.isUndefined(fieldA) || fieldA == null ? '' : fieldA.join().toLowerCase();
8302
+ fieldB = util.isUndefined(fieldB) || fieldB == null ? '' : fieldB.join().toLowerCase();
8271
8303
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
8272
8304
  }
8273
8305
  };
@@ -8525,31 +8557,31 @@
8525
8557
  };
8526
8558
  WizardPageFieldToCaseFieldMapper.prototype.processComplexFieldOverride = function (override, caseField, caseFields) {
8527
8559
  var caseFieldIds = override.complex_field_element_id.split('.');
8528
- var caseFieldLeaf;
8560
+ var case_field_leaf;
8529
8561
  var children = this.getCaseFieldChildren(caseField);
8530
8562
  if (children.length > 0) {
8531
8563
  var _a = __read(caseFieldIds), _ = _a[0], tail = _a.slice(1);
8532
- caseFieldLeaf = this.getCaseFieldLeaf(tail, children);
8564
+ case_field_leaf = this.getCaseFieldLeaf(tail, children);
8533
8565
  }
8534
8566
  else {
8535
- caseFieldLeaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
8567
+ case_field_leaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
8536
8568
  }
8537
8569
  if (override.display_context !== 'HIDDEN') {
8538
- caseFieldLeaf.hidden = false;
8539
- caseFieldLeaf.display_context = override.display_context;
8570
+ case_field_leaf.hidden = false;
8571
+ case_field_leaf.display_context = override.display_context;
8540
8572
  if (override.label && override.label.length > 0) {
8541
- caseFieldLeaf.label = override.label;
8573
+ case_field_leaf.label = override.label;
8542
8574
  }
8543
8575
  if (override.hint_text && override.hint_text.length > 0) {
8544
- caseFieldLeaf.hint_text = override.hint_text;
8576
+ case_field_leaf.hint_text = override.hint_text;
8545
8577
  }
8546
8578
  if (override.show_condition && override.show_condition.length > 0) {
8547
- caseFieldLeaf.show_condition = override.show_condition;
8579
+ case_field_leaf.show_condition = override.show_condition;
8548
8580
  }
8549
8581
  }
8550
8582
  else {
8551
- caseFieldLeaf.hidden = true;
8552
- caseFieldLeaf.display_context = override.display_context;
8583
+ case_field_leaf.hidden = true;
8584
+ case_field_leaf.display_context = override.display_context;
8553
8585
  }
8554
8586
  };
8555
8587
  WizardPageFieldToCaseFieldMapper.prototype.fixShowConditionPath = function (caseField, pathPrefix) {
@@ -8563,7 +8595,7 @@
8563
8595
  });
8564
8596
  };
8565
8597
  WizardPageFieldToCaseFieldMapper.prototype.preparePathPrefix = function (pathPrefix, caseField) {
8566
- return pathPrefix.length === 0 ? caseField : pathPrefix + "." + caseField;
8598
+ return pathPrefix.length === 0 ? caseField : pathPrefix + '.' + caseField;
8567
8599
  };
8568
8600
  WizardPageFieldToCaseFieldMapper.prototype.getCaseFieldLeaf = function (caseFieldId, caseFields) {
8569
8601
  var _a = __read(caseFieldId), head = _a[0], tail = _a.slice(1);
@@ -8855,7 +8887,11 @@
8855
8887
  };
8856
8888
  CasesService.prototype.getCaseView = function (jurisdictionId, caseTypeId, caseId) {
8857
8889
  var _this = this;
8858
- var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types/" + caseTypeId + "/cases/" + caseId;
8890
+ var url = this.appConfig.getApiUrl()
8891
+ + "/caseworkers/:uid"
8892
+ + ("/jurisdictions/" + jurisdictionId)
8893
+ + ("/case-types/" + caseTypeId)
8894
+ + ("/cases/" + caseId);
8859
8895
  var loadingToken = this.loadingService.register();
8860
8896
  return this.http
8861
8897
  .get(url)
@@ -8907,7 +8943,7 @@
8907
8943
  CasesService.prototype.createEvent = function (caseDetails, eventData) {
8908
8944
  var _this = this;
8909
8945
  var caseId = caseDetails.case_id;
8910
- var url = this.appConfig.getCaseDataUrl() + "/cases/" + caseId + "/events";
8946
+ var url = this.appConfig.getCaseDataUrl() + ("/cases/" + caseId + "/events");
8911
8947
  var headers = new i1$2.HttpHeaders()
8912
8948
  .set('experimental', 'true')
8913
8949
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
@@ -8921,8 +8957,9 @@
8921
8957
  };
8922
8958
  CasesService.prototype.validateCase = function (ctid, eventData, pageId) {
8923
8959
  var _this = this;
8924
- var pageIdString = pageId ? "?pageId=" + pageId : '';
8925
- var url = this.appConfig.getCaseDataUrl() + "/case-types/" + ctid + "/validate" + pageIdString;
8960
+ var pageIdString = pageId ? '?pageId=' + pageId : '';
8961
+ var url = this.appConfig.getCaseDataUrl()
8962
+ + ("/case-types/" + ctid + "/validate" + pageIdString);
8926
8963
  var headers = new i1$2.HttpHeaders()
8927
8964
  .set('experimental', 'true')
8928
8965
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
@@ -8940,7 +8977,8 @@
8940
8977
  if (eventData.ignore_warning) {
8941
8978
  ignoreWarning = 'true';
8942
8979
  }
8943
- var url = this.appConfig.getCaseDataUrl() + "/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning;
8980
+ var url = this.appConfig.getCaseDataUrl()
8981
+ + ("/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning);
8944
8982
  var headers = new i1$2.HttpHeaders()
8945
8983
  .set('experimental', 'true')
8946
8984
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
@@ -8954,7 +8992,9 @@
8954
8992
  };
8955
8993
  CasesService.prototype.getPrintDocuments = function (caseId) {
8956
8994
  var _this = this;
8957
- var url = this.appConfig.getCaseDataUrl() + "/cases/" + caseId + "/documents";
8995
+ var url = this.appConfig.getCaseDataUrl()
8996
+ + ("/cases/" + caseId)
8997
+ + "/documents";
8958
8998
  var headers = new i1$2.HttpHeaders()
8959
8999
  .set('experimental', 'true')
8960
9000
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
@@ -9690,7 +9730,7 @@
9690
9730
  PageValidationService.prototype.isHidden = function (caseField, editForm, path) {
9691
9731
  var formFields = editForm.getRawValue();
9692
9732
  var condition = ShowCondition.getInstance(caseField.show_condition);
9693
- if (path && path.indexOf("_" + caseField.id + "_") === -1) {
9733
+ if (path && path.indexOf('_' + caseField.id + '_') === -1) {
9694
9734
  path = "" + path + caseField.id;
9695
9735
  }
9696
9736
  return !condition.match(formFields.data, path);
@@ -10660,7 +10700,7 @@
10660
10700
  var label = casefield.label || 'Field';
10661
10701
  var id_1 = casefield.id;
10662
10702
  if (fieldElement['component'] && fieldElement['component'].parent) {
10663
- if (fieldElement['component'].idPrefix.indexOf("_" + id_1 + "_") === -1) {
10703
+ if (fieldElement['component'].idPrefix.indexOf('_' + id_1 + '_') === -1) {
10664
10704
  id_1 = "" + fieldElement['component'].idPrefix + id_1;
10665
10705
  }
10666
10706
  else {
@@ -10801,8 +10841,8 @@
10801
10841
  }
10802
10842
  };
10803
10843
  CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
10804
- this.ignoreWarning = errorContext.ignoreWarning;
10805
- this.triggerText = errorContext.triggerText;
10844
+ this.ignoreWarning = errorContext.ignore_warning;
10845
+ this.triggerText = errorContext.trigger_text;
10806
10846
  };
10807
10847
  CaseEditPageComponent.prototype.next = function () {
10808
10848
  this.resetErrors();
@@ -11148,12 +11188,12 @@
11148
11188
  CallbackErrorsComponent.prototype.buildCallbackErrorsContext = function () {
11149
11189
  var errorContext = new CallbackErrorsContext();
11150
11190
  if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
11151
- errorContext.ignoreWarning = true;
11152
- errorContext.triggerText = this.triggerTextIgnore;
11191
+ errorContext.ignore_warning = true;
11192
+ errorContext.trigger_text = this.triggerTextIgnore;
11153
11193
  }
11154
11194
  else {
11155
- errorContext.ignoreWarning = false;
11156
- errorContext.triggerText = this.triggerTextContinue;
11195
+ errorContext.ignore_warning = false;
11196
+ errorContext.trigger_text = this.triggerTextContinue;
11157
11197
  }
11158
11198
  return errorContext;
11159
11199
  };
@@ -11198,7 +11238,7 @@
11198
11238
 
11199
11239
  var AddressOption = /** @class */ (function () {
11200
11240
  function AddressOption(addressModel, description) {
11201
- if (description === null) {
11241
+ if (description == null) {
11202
11242
  this.value = addressModel;
11203
11243
  this.description = this.getDescription();
11204
11244
  }
@@ -11207,10 +11247,13 @@
11207
11247
  }
11208
11248
  }
11209
11249
  AddressOption.prototype.getDescription = function () {
11210
- return this.removeInitialCommaIfPresent("" + (this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1) + this.prefixWithCommaIfPresent(this.value.AddressLine2) + this.prefixWithCommaIfPresent(this.value.AddressLine3) + ", " + this.value.PostTown);
11250
+ return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
11251
+ + this.prefixWithCommaIfPresent(this.value.AddressLine2)
11252
+ + this.prefixWithCommaIfPresent(this.value.AddressLine3)
11253
+ + ', ' + this.value.PostTown);
11211
11254
  };
11212
11255
  AddressOption.prototype.prefixWithCommaIfPresent = function (value) {
11213
- return value ? ", " + value : value;
11256
+ return value ? ', ' + value : value;
11214
11257
  };
11215
11258
  AddressOption.prototype.removeInitialCommaIfPresent = function (value) {
11216
11259
  return value.replace(new RegExp('^,', 'gi'), '');
@@ -11354,7 +11397,7 @@
11354
11397
  this.missingPostcode = false;
11355
11398
  var postcode_1 = this.postcode.value;
11356
11399
  this.caseField.value = null;
11357
- this.addressOptions = [];
11400
+ this.addressOptions = new Array();
11358
11401
  this.addressesService.getAddressesForPostcode(postcode_1.replace(' ', '').toUpperCase()).subscribe(function (result) {
11359
11402
  result.forEach(function (address) {
11360
11403
  _this.addressOptions.push(new AddressOption(address, null));
@@ -11397,7 +11440,7 @@
11397
11440
  var hasAddress = false;
11398
11441
  if (address) {
11399
11442
  Object.keys(address).forEach(function (key) {
11400
- if (address[key] !== null) {
11443
+ if (address[key] != null) {
11401
11444
  hasAddress = true;
11402
11445
  }
11403
11446
  });
@@ -11420,7 +11463,7 @@
11420
11463
  };
11421
11464
  WriteAddressFieldComponent.prototype.defaultLabel = function (numberOfAddresses) {
11422
11465
  return numberOfAddresses === 0 ? 'No address found'
11423
- : "" + numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + "found";
11466
+ : numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
11424
11467
  };
11425
11468
  WriteAddressFieldComponent.prototype.setFormValue = function () {
11426
11469
  if (this.writeComplexFieldComponent.complexGroup) {
@@ -12978,7 +13021,7 @@
12978
13021
  }
12979
13022
  };
12980
13023
  WriteCollectionFieldComponent.prototype.buildCaseField = function (item, index, isNew) {
12981
- var e_1, _c;
13024
+ var e_1, _a;
12982
13025
  if (isNew === void 0) { isNew = false; }
12983
13026
  /**
12984
13027
  * What follow is code that makes me want to go jump in the shower!
@@ -13014,8 +13057,8 @@
13014
13057
  if (!value) {
13015
13058
  value = new i2.FormGroup({});
13016
13059
  try {
13017
- for (var _d = __values(Object.keys(group.controls)), _e = _d.next(); !_e.done; _e = _d.next()) {
13018
- var key = _e.value;
13060
+ for (var _b = __values(Object.keys(group.controls)), _c = _b.next(); !_c.done; _c = _b.next()) {
13061
+ var key = _c.value;
13019
13062
  value.addControl(key, group.get(key));
13020
13063
  // DON'T remove the control for this key from the outer group or it
13021
13064
  // goes awry. So DON'T uncomment the below line!
@@ -13025,7 +13068,7 @@
13025
13068
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
13026
13069
  finally {
13027
13070
  try {
13028
- if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
13071
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
13029
13072
  }
13030
13073
  finally { if (e_1) throw e_1.error; }
13031
13074
  }
@@ -13156,7 +13199,6 @@
13156
13199
  this.formArray.removeAt(index);
13157
13200
  };
13158
13201
  WriteCollectionFieldComponent.prototype.resetIds = function (index) {
13159
- var _a, _b;
13160
13202
  for (var i = index; i < this.collItems.length; i++) {
13161
13203
  var counter = i + 1;
13162
13204
  if (this.collItems[i].index && this.collItems[i].index === counter) {
@@ -13166,15 +13208,16 @@
13166
13208
  && this.collItems[i].caseField.id === counter.toString()) {
13167
13209
  this.collItems[i].caseField.id = i.toString();
13168
13210
  }
13169
- var idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
13170
- var idPrefix1Current = idPrefix1.replace("_" + i.toString(), "_" + counter.toString());
13211
+ var idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
13212
+ var idPrefix1Current = idPrefix1.replace('_' + i.toString(), '_' + counter.toString());
13171
13213
  if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
13172
13214
  this.collItems[i].prefix = idPrefix1;
13173
13215
  }
13174
- var idPrefixAvailable = !!((_b = (_a = this.collItems[i].container) === null || _a === void 0 ? void 0 : _a['component']) === null || _b === void 0 ? void 0 : _b.idPrefix);
13216
+ var idPrefixAvailable = this.collItems[i].container && this.collItems[i].container['component']
13217
+ && this.collItems[i].container['component'].idPrefix ? true : false;
13175
13218
  var idPrefix2 = idPrefixAvailable ?
13176
- this.collItems[i].container['component'].idPrefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
13177
- var idPrefix2current = idPrefix2.replace("_" + i.toString(), "_" + counter.toString());
13219
+ this.collItems[i].container['component'].idPrefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
13220
+ var idPrefix2current = idPrefix2.replace('_' + i.toString(), '_' + counter.toString());
13178
13221
  if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
13179
13222
  this.collItems[i].container['component'].idPrefix = idPrefix2;
13180
13223
  }
@@ -14530,257 +14573,6 @@
14530
14573
  }], null, null);
14531
14574
  })();
14532
14575
 
14533
- var FixedListPipe = /** @class */ (function () {
14534
- function FixedListPipe() {
14535
- }
14536
- FixedListPipe.prototype.transform = function (value, items) {
14537
- if (!!items) {
14538
- var item = items.find(function (i) { return i.code === value; });
14539
- return item ? item.label : FixedListPipe.EMPTY;
14540
- }
14541
- else {
14542
- return FixedListPipe.EMPTY;
14543
- }
14544
- };
14545
- return FixedListPipe;
14546
- }());
14547
- FixedListPipe.EMPTY = '';
14548
- FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
14549
- FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
14550
- (function () {
14551
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
14552
- type: i0.Pipe,
14553
- args: [{
14554
- name: 'ccdFixedList'
14555
- }]
14556
- }], null, null);
14557
- })();
14558
-
14559
- function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
14560
- if (rf & 1) {
14561
- i0__namespace.ɵɵelementStart(0, "div");
14562
- i0__namespace.ɵɵtext(1);
14563
- i0__namespace.ɵɵpipe(2, "ccdFixedList");
14564
- i0__namespace.ɵɵelementEnd();
14565
- }
14566
- if (rf & 2) {
14567
- var value_r1 = ctx.$implicit;
14568
- var ctx_r0 = i0__namespace.ɵɵnextContext();
14569
- i0__namespace.ɵɵadvance(1);
14570
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
14571
- }
14572
- }
14573
- var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
14574
- __extends(ReadDynamicMultiSelectListFieldComponent, _super);
14575
- function ReadDynamicMultiSelectListFieldComponent() {
14576
- return _super !== null && _super.apply(this, arguments) || this;
14577
- }
14578
- ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
14579
- /**
14580
- *
14581
- * Reassigning list_items from formatted_list when list_items is empty
14582
- */
14583
- if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
14584
- this.caseField.list_items = this.caseField.formatted_value.list_items;
14585
- }
14586
- if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
14587
- this.caseField.value = this.caseField.formatted_value.value;
14588
- }
14589
- _super.prototype.ngOnInit.call(this);
14590
- };
14591
- return ReadDynamicMultiSelectListFieldComponent;
14592
- }(AbstractFieldReadComponent));
14593
- ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
14594
- ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
14595
- if (rf & 1) {
14596
- i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
14597
- }
14598
- if (rf & 2) {
14599
- i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
14600
- }
14601
- }, directives: [i1__namespace.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
14602
- var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
14603
- (function () {
14604
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
14605
- type: i0.Component,
14606
- args: [{
14607
- selector: 'ccd-read-dynamic-multi-select-list-field',
14608
- templateUrl: './read-dynamic-multi-select-list-field.html',
14609
- styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
14610
- }]
14611
- }], null, null);
14612
- })();
14613
-
14614
- function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
14615
- if (rf & 1) {
14616
- i0__namespace.ɵɵelementStart(0, "span", 5);
14617
- i0__namespace.ɵɵtext(1);
14618
- i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
14619
- i0__namespace.ɵɵelementEnd();
14620
- }
14621
- if (rf & 2) {
14622
- var ctx_r0 = i0__namespace.ɵɵnextContext();
14623
- i0__namespace.ɵɵadvance(1);
14624
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
14625
- }
14626
- }
14627
- function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
14628
- if (rf & 1) {
14629
- i0__namespace.ɵɵelementStart(0, "span", 6);
14630
- i0__namespace.ɵɵtext(1);
14631
- i0__namespace.ɵɵelementEnd();
14632
- }
14633
- if (rf & 2) {
14634
- var ctx_r1 = i0__namespace.ɵɵnextContext();
14635
- i0__namespace.ɵɵadvance(1);
14636
- i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
14637
- }
14638
- }
14639
- function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
14640
- if (rf & 1) {
14641
- i0__namespace.ɵɵelementStart(0, "span", 7);
14642
- i0__namespace.ɵɵtext(1);
14643
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
14644
- i0__namespace.ɵɵelementEnd();
14645
- }
14646
- if (rf & 2) {
14647
- var ctx_r2 = i0__namespace.ɵɵnextContext();
14648
- i0__namespace.ɵɵadvance(1);
14649
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
14650
- }
14651
- }
14652
- function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
14653
- if (rf & 1) {
14654
- var _r6_1 = i0__namespace.ɵɵgetCurrentView();
14655
- i0__namespace.ɵɵelementContainerStart(0);
14656
- i0__namespace.ɵɵelementStart(1, "div", 8);
14657
- i0__namespace.ɵɵelementStart(2, "input", 9);
14658
- i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
14659
- i0__namespace.ɵɵelementEnd();
14660
- i0__namespace.ɵɵelementStart(3, "label", 10);
14661
- i0__namespace.ɵɵtext(4);
14662
- i0__namespace.ɵɵelementEnd();
14663
- i0__namespace.ɵɵelementEnd();
14664
- i0__namespace.ɵɵelementContainerEnd();
14665
- }
14666
- if (rf & 2) {
14667
- var checkbox_r4 = ctx.$implicit;
14668
- var ctx_r3 = i0__namespace.ɵɵnextContext();
14669
- i0__namespace.ɵɵadvance(2);
14670
- i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
14671
- i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
14672
- i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
14673
- i0__namespace.ɵɵadvance(1);
14674
- i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
14675
- i0__namespace.ɵɵadvance(1);
14676
- i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
14677
- }
14678
- }
14679
- var _c0$L = function (a0) { return { "error": a0 }; };
14680
- var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
14681
- __extends(WriteDynamicMultiSelectListFieldComponent, _super);
14682
- function WriteDynamicMultiSelectListFieldComponent() {
14683
- return _super !== null && _super.apply(this, arguments) || this;
14684
- }
14685
- WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
14686
- var _this = this;
14687
- this.checkboxes = new i2.FormArray([]);
14688
- this.setInitialCaseList();
14689
- this.setInitialCaseFieldValue();
14690
- // Initialise array with existing values
14691
- if (this.caseField.value && Array.isArray(this.caseField.value)) {
14692
- var values = this.caseField.value;
14693
- values.forEach(function (value) {
14694
- _this.checkboxes.push(new i2.FormControl(value));
14695
- });
14696
- }
14697
- this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
14698
- this.dynamicListFormControl.setValue(this.checkboxes.value);
14699
- };
14700
- WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
14701
- var _this = this;
14702
- var target = event.target;
14703
- if (!target || !target.value) {
14704
- return;
14705
- }
14706
- var selectedListItem = this.getValueListItem(target.value);
14707
- if (!this.isSelected(target.value)) {
14708
- // Add a new control in the FormArray
14709
- this.checkboxes.push(new i2.FormControl(selectedListItem));
14710
- }
14711
- else {
14712
- // Remove the control from the FormArray
14713
- this.checkboxes.controls.forEach(function (ctrl, i) {
14714
- if (ctrl.value.code === target.value) {
14715
- _this.checkboxes.removeAt(i);
14716
- }
14717
- });
14718
- }
14719
- this.dynamicListFormControl.setValue(this.checkboxes.value);
14720
- };
14721
- WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
14722
- if (this.checkboxes && this.checkboxes.controls) {
14723
- return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
14724
- }
14725
- };
14726
- WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
14727
- return this.caseField.list_items.find(function (i) { return i.code === value; });
14728
- };
14729
- WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
14730
- var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
14731
- var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
14732
- if (!hasListItems && hasFormattedListItems) {
14733
- this.caseField.list_items = this.caseField.formatted_value.list_items;
14734
- }
14735
- };
14736
- WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
14737
- if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
14738
- this.caseField.value = this.caseField.formatted_value.value;
14739
- }
14740
- var isNull = this.caseField.value === undefined || this.caseField.value === '';
14741
- if (isNull || !Array.isArray(this.caseField.value)) {
14742
- this.caseField.value = [];
14743
- }
14744
- };
14745
- return WriteDynamicMultiSelectListFieldComponent;
14746
- }(AbstractFieldWriteComponent));
14747
- WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
14748
- WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
14749
- if (rf & 1) {
14750
- i0__namespace.ɵɵelementStart(0, "div", 0);
14751
- i0__namespace.ɵɵelementStart(1, "fieldset");
14752
- i0__namespace.ɵɵelementStart(2, "legend");
14753
- i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
14754
- i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
14755
- i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
14756
- i0__namespace.ɵɵelementEnd();
14757
- i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
14758
- i0__namespace.ɵɵelementEnd();
14759
- i0__namespace.ɵɵelementEnd();
14760
- }
14761
- if (rf & 2) {
14762
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
14763
- i0__namespace.ɵɵadvance(3);
14764
- i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
14765
- i0__namespace.ɵɵadvance(1);
14766
- i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
14767
- i0__namespace.ɵɵadvance(1);
14768
- i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
14769
- i0__namespace.ɵɵadvance(1);
14770
- i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
14771
- }
14772
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14773
- var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
14774
- (function () {
14775
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
14776
- type: i0.Component,
14777
- args: [{
14778
- selector: 'ccd-write-dynamic-multi-select-list-field',
14779
- templateUrl: './write-dynamic-multi-select-list-field.html'
14780
- }]
14781
- }], null, null);
14782
- })();
14783
-
14784
14576
  var DynamicRadioListPipe = /** @class */ (function () {
14785
14577
  function DynamicRadioListPipe() {
14786
14578
  }
@@ -14901,7 +14693,7 @@
14901
14693
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
14902
14694
  }
14903
14695
  }
14904
- var _c0$K = function (a0) { return { selected: a0 }; };
14696
+ var _c0$L = function (a0) { return { selected: a0 }; };
14905
14697
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14906
14698
  if (rf & 1) {
14907
14699
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -14914,7 +14706,7 @@
14914
14706
  if (rf & 2) {
14915
14707
  var radioButton_r5 = ctx.$implicit;
14916
14708
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14917
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14709
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14918
14710
  i0__namespace.ɵɵadvance(1);
14919
14711
  i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14920
14712
  i0__namespace.ɵɵadvance(1);
@@ -15078,7 +14870,7 @@
15078
14870
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
15079
14871
  }
15080
14872
  }
15081
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14873
+ var _c0$K = function (a0) { return { "form-group-error": a0 }; };
15082
14874
  var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
15083
14875
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15084
14876
  __extends(WriteEmailFieldComponent, _super);
@@ -15103,7 +14895,7 @@
15103
14895
  i0__namespace.ɵɵelementEnd();
15104
14896
  }
15105
14897
  if (rf & 2) {
15106
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14898
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15107
14899
  i0__namespace.ɵɵadvance(1);
15108
14900
  i0__namespace.ɵɵproperty("for", ctx.id());
15109
14901
  i0__namespace.ɵɵadvance(1);
@@ -15127,6 +14919,32 @@
15127
14919
  }], null, null);
15128
14920
  })();
15129
14921
 
14922
+ var FixedListPipe = /** @class */ (function () {
14923
+ function FixedListPipe() {
14924
+ }
14925
+ FixedListPipe.prototype.transform = function (value, items) {
14926
+ if (!!items) {
14927
+ var item = items.find(function (i) { return i.code === value; });
14928
+ return item ? item.label : FixedListPipe.EMPTY;
14929
+ }
14930
+ else {
14931
+ return FixedListPipe.EMPTY;
14932
+ }
14933
+ };
14934
+ return FixedListPipe;
14935
+ }());
14936
+ FixedListPipe.EMPTY = '';
14937
+ FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
14938
+ FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
14939
+ (function () {
14940
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
14941
+ type: i0.Pipe,
14942
+ args: [{
14943
+ name: 'ccdFixedList'
14944
+ }]
14945
+ }], null, null);
14946
+ })();
14947
+
15130
14948
  var ReadFixedListFieldComponent = /** @class */ (function (_super) {
15131
14949
  __extends(ReadFixedListFieldComponent, _super);
15132
14950
  function ReadFixedListFieldComponent() {
@@ -15209,7 +15027,7 @@
15209
15027
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
15210
15028
  }
15211
15029
  }
15212
- var _c0$I = function (a0) { return { "form-group-error": a0 }; };
15030
+ var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15213
15031
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
15214
15032
  __extends(WriteFixedListFieldComponent, _super);
15215
15033
  function WriteFixedListFieldComponent() {
@@ -15258,7 +15076,7 @@
15258
15076
  i0__namespace.ɵɵelementEnd();
15259
15077
  }
15260
15078
  if (rf & 2) {
15261
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15079
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15262
15080
  i0__namespace.ɵɵadvance(1);
15263
15081
  i0__namespace.ɵɵproperty("for", ctx.id());
15264
15082
  i0__namespace.ɵɵadvance(1);
@@ -15376,7 +15194,7 @@
15376
15194
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15377
15195
  }
15378
15196
  }
15379
- var _c0$H = function (a0) { return { selected: a0 }; };
15197
+ var _c0$I = function (a0) { return { selected: a0 }; };
15380
15198
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15381
15199
  if (rf & 1) {
15382
15200
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15389,7 +15207,7 @@
15389
15207
  if (rf & 2) {
15390
15208
  var radioButton_r4 = ctx.$implicit;
15391
15209
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15392
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15210
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15393
15211
  i0__namespace.ɵɵadvance(1);
15394
15212
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15395
15213
  i0__namespace.ɵɵadvance(1);
@@ -15559,7 +15377,7 @@
15559
15377
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15560
15378
  }
15561
15379
  }
15562
- var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
15380
+ var _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
15563
15381
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15564
15382
  if (rf & 1) {
15565
15383
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15571,7 +15389,7 @@
15571
15389
  if (rf & 2) {
15572
15390
  var judicialUser_r5 = ctx.$implicit;
15573
15391
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15574
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15392
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15575
15393
  i0__namespace.ɵɵadvance(1);
15576
15394
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15577
15395
  }
@@ -15810,7 +15628,7 @@
15810
15628
  casesResponse.push(_this.mapResponse(result));
15811
15629
  });
15812
15630
  });
15813
- _this.linkedCases = casesResponse.map(function (item) {
15631
+ var caseLinks = casesResponse.map(function (item) {
15814
15632
  return {
15815
15633
  caseReference: item.caseReference,
15816
15634
  caseName: item.caseName,
@@ -15824,6 +15642,7 @@
15824
15642
  }),
15825
15643
  };
15826
15644
  });
15645
+ _this.linkedCases = caseLinks;
15827
15646
  _this.serverLinkedApiError = null;
15828
15647
  }, function (err) {
15829
15648
  _this.serverLinkedApiError = {
@@ -16360,7 +16179,7 @@
16360
16179
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
16361
16180
  }
16362
16181
  }
16363
- var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
16182
+ var _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
16364
16183
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
16365
16184
  if (rf & 1) {
16366
16185
  i0__namespace.ɵɵelementStart(0, "div", 35);
@@ -16378,7 +16197,7 @@
16378
16197
  }
16379
16198
  if (rf & 2) {
16380
16199
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
16381
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
16200
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
16382
16201
  i0__namespace.ɵɵadvance(3);
16383
16202
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
16384
16203
  }
@@ -16435,11 +16254,11 @@
16435
16254
  var ctx_r0 = i0__namespace.ɵɵnextContext();
16436
16255
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
16437
16256
  i0__namespace.ɵɵadvance(1);
16438
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
16257
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
16439
16258
  i0__namespace.ɵɵadvance(3);
16440
16259
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
16441
16260
  i0__namespace.ɵɵadvance(2);
16442
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
16261
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
16443
16262
  i0__namespace.ɵɵadvance(5);
16444
16263
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
16445
16264
  i0__namespace.ɵɵadvance(2);
@@ -16873,7 +16692,7 @@
16873
16692
  i0__namespace.ɵɵadvance(4);
16874
16693
  i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
16875
16694
  i0__namespace.ɵɵadvance(4);
16876
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
16695
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
16877
16696
  i0__namespace.ɵɵadvance(1);
16878
16697
  i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
16879
16698
  i0__namespace.ɵɵadvance(18);
@@ -17557,7 +17376,7 @@
17557
17376
  i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
17558
17377
  }
17559
17378
  }
17560
- var _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
17379
+ var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
17561
17380
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
17562
17381
  if (rf & 1) {
17563
17382
  i0__namespace.ɵɵelementStart(0, "div", 7);
@@ -17569,7 +17388,7 @@
17569
17388
  }
17570
17389
  if (rf & 2) {
17571
17390
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
17572
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17391
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17573
17392
  i0__namespace.ɵɵadvance(1);
17574
17393
  i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
17575
17394
  i0__namespace.ɵɵadvance(2);
@@ -17745,7 +17564,6 @@
17745
17564
  }] });
17746
17565
  })();
17747
17566
 
17748
- // tslint:disable:variable-name
17749
17567
  var LinkCaseReason = /** @class */ (function () {
17750
17568
  function LinkCaseReason() {
17751
17569
  }
@@ -17904,7 +17722,7 @@
17904
17722
  this.caseField = (_a = tab === null || tab === void 0 ? void 0 : tab.fields) === null || _a === void 0 ? void 0 : _a.find(function (field) { return field.id === 'caseLinks'; });
17905
17723
  }
17906
17724
  this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
17907
- var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
17725
+ var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
17908
17726
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
17909
17727
  next: function (reasons) {
17910
17728
  _this.reasonListLoaded = true;
@@ -18166,7 +17984,7 @@
18166
17984
  };
18167
17985
  WriteLinkedCasesFieldComponent.prototype.getLinkedCaseReasons = function () {
18168
17986
  var _this = this;
18169
- var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
17987
+ var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
18170
17988
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
18171
17989
  next: function (reasons) {
18172
17990
  // Sort in ascending order
@@ -18225,10 +18043,11 @@
18225
18043
  var _this = this;
18226
18044
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe(function (caseView) {
18227
18045
  var caseViewFiltered = caseView.tabs.filter(function (tab) {
18228
- return tab.fields.some(function (_b) {
18046
+ var linkField = tab.fields.some(function (_b) {
18229
18047
  var field_type = _b.field_type;
18230
18048
  return field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink';
18231
18049
  });
18050
+ return linkField;
18232
18051
  });
18233
18052
  if (caseViewFiltered) {
18234
18053
  var caseLinkFieldValue = caseViewFiltered.map(function (filtered) { var _a; return ((_a = filtered.fields) === null || _a === void 0 ? void 0 : _a.length) > 0 && filtered.fields.filter(function (field) { return field.id === 'caseLinks'; })[0].value; });
@@ -18511,7 +18330,7 @@
18511
18330
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
18512
18331
  }
18513
18332
  }
18514
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
18333
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
18515
18334
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
18516
18335
  __extends(WriteMoneyGbpFieldComponent, _super);
18517
18336
  function WriteMoneyGbpFieldComponent() {
@@ -18541,7 +18360,7 @@
18541
18360
  i0__namespace.ɵɵelementEnd();
18542
18361
  }
18543
18362
  if (rf & 2) {
18544
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18363
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18545
18364
  i0__namespace.ɵɵadvance(1);
18546
18365
  i0__namespace.ɵɵproperty("for", ctx.id());
18547
18366
  i0__namespace.ɵɵadvance(1);
@@ -18689,7 +18508,7 @@
18689
18508
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
18690
18509
  }
18691
18510
  }
18692
- var _c0$C = function (a0) { return { "error": a0 }; };
18511
+ var _c0$D = function (a0) { return { "error": a0 }; };
18693
18512
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
18694
18513
  __extends(WriteMultiSelectListFieldComponent, _super);
18695
18514
  function WriteMultiSelectListFieldComponent() {
@@ -18753,7 +18572,7 @@
18753
18572
  i0__namespace.ɵɵelementEnd();
18754
18573
  }
18755
18574
  if (rf & 2) {
18756
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
18575
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
18757
18576
  i0__namespace.ɵɵadvance(3);
18758
18577
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
18759
18578
  i0__namespace.ɵɵadvance(1);
@@ -18844,7 +18663,7 @@
18844
18663
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
18845
18664
  }
18846
18665
  }
18847
- var _c0$B = function (a0) { return { "form-group-error": a0 }; };
18666
+ var _c0$C = function (a0) { return { "form-group-error": a0 }; };
18848
18667
  var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
18849
18668
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
18850
18669
  __extends(WriteNumberFieldComponent, _super);
@@ -18869,7 +18688,7 @@
18869
18688
  i0__namespace.ɵɵelementEnd();
18870
18689
  }
18871
18690
  if (rf & 2) {
18872
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
18691
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
18873
18692
  i0__namespace.ɵɵadvance(1);
18874
18693
  i0__namespace.ɵɵproperty("for", ctx.id());
18875
18694
  i0__namespace.ɵɵadvance(1);
@@ -19170,7 +18989,7 @@
19170
18989
  i0__namespace.ɵɵelementEnd();
19171
18990
  }
19172
18991
  }
19173
- var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
18992
+ var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
19174
18993
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
19175
18994
  if (rf & 1) {
19176
18995
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -19186,7 +19005,7 @@
19186
19005
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
19187
19006
  var tmp_0_0 = null;
19188
19007
  var tmp_2_0 = null;
19189
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
19008
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
19190
19009
  i0__namespace.ɵɵadvance(2);
19191
19010
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
19192
19011
  i0__namespace.ɵɵadvance(2);
@@ -19590,6 +19409,231 @@
19590
19409
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
19591
19410
  })();
19592
19411
 
19412
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
19413
+ if (rf & 1) {
19414
+ i0__namespace.ɵɵelementStart(0, "div");
19415
+ i0__namespace.ɵɵtext(1);
19416
+ i0__namespace.ɵɵpipe(2, "ccdFixedList");
19417
+ i0__namespace.ɵɵelementEnd();
19418
+ }
19419
+ if (rf & 2) {
19420
+ var value_r1 = ctx.$implicit;
19421
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19422
+ i0__namespace.ɵɵadvance(1);
19423
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
19424
+ }
19425
+ }
19426
+ var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
19427
+ __extends(ReadDynamicMultiSelectListFieldComponent, _super);
19428
+ function ReadDynamicMultiSelectListFieldComponent() {
19429
+ return _super !== null && _super.apply(this, arguments) || this;
19430
+ }
19431
+ ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
19432
+ /**
19433
+ *
19434
+ * Reassigning list_items from formatted_list when list_items is empty
19435
+ */
19436
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
19437
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
19438
+ }
19439
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
19440
+ this.caseField.value = this.caseField.formatted_value.value;
19441
+ }
19442
+ _super.prototype.ngOnInit.call(this);
19443
+ };
19444
+ return ReadDynamicMultiSelectListFieldComponent;
19445
+ }(AbstractFieldReadComponent));
19446
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
19447
+ ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
19448
+ if (rf & 1) {
19449
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
19450
+ }
19451
+ if (rf & 2) {
19452
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
19453
+ }
19454
+ }, directives: [i1__namespace.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
19455
+ var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
19456
+ (function () {
19457
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
19458
+ type: i0.Component,
19459
+ args: [{
19460
+ selector: 'ccd-read-dynamic-multi-select-list-field',
19461
+ templateUrl: './read-dynamic-multi-select-list-field.html',
19462
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
19463
+ }]
19464
+ }], null, null);
19465
+ })();
19466
+
19467
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
19468
+ if (rf & 1) {
19469
+ i0__namespace.ɵɵelementStart(0, "span", 5);
19470
+ i0__namespace.ɵɵtext(1);
19471
+ i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
19472
+ i0__namespace.ɵɵelementEnd();
19473
+ }
19474
+ if (rf & 2) {
19475
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19476
+ i0__namespace.ɵɵadvance(1);
19477
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
19478
+ }
19479
+ }
19480
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
19481
+ if (rf & 1) {
19482
+ i0__namespace.ɵɵelementStart(0, "span", 6);
19483
+ i0__namespace.ɵɵtext(1);
19484
+ i0__namespace.ɵɵelementEnd();
19485
+ }
19486
+ if (rf & 2) {
19487
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
19488
+ i0__namespace.ɵɵadvance(1);
19489
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
19490
+ }
19491
+ }
19492
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
19493
+ if (rf & 1) {
19494
+ i0__namespace.ɵɵelementStart(0, "span", 7);
19495
+ i0__namespace.ɵɵtext(1);
19496
+ i0__namespace.ɵɵpipe(2, "ccdFirstError");
19497
+ i0__namespace.ɵɵelementEnd();
19498
+ }
19499
+ if (rf & 2) {
19500
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
19501
+ i0__namespace.ɵɵadvance(1);
19502
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
19503
+ }
19504
+ }
19505
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
19506
+ if (rf & 1) {
19507
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
19508
+ i0__namespace.ɵɵelementContainerStart(0);
19509
+ i0__namespace.ɵɵelementStart(1, "div", 8);
19510
+ i0__namespace.ɵɵelementStart(2, "input", 9);
19511
+ i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
19512
+ i0__namespace.ɵɵelementEnd();
19513
+ i0__namespace.ɵɵelementStart(3, "label", 10);
19514
+ i0__namespace.ɵɵtext(4);
19515
+ i0__namespace.ɵɵelementEnd();
19516
+ i0__namespace.ɵɵelementEnd();
19517
+ i0__namespace.ɵɵelementContainerEnd();
19518
+ }
19519
+ if (rf & 2) {
19520
+ var checkbox_r4 = ctx.$implicit;
19521
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
19522
+ i0__namespace.ɵɵadvance(2);
19523
+ i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
19524
+ i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
19525
+ i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
19526
+ i0__namespace.ɵɵadvance(1);
19527
+ i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
19528
+ i0__namespace.ɵɵadvance(1);
19529
+ i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
19530
+ }
19531
+ }
19532
+ var _c0$A = function (a0) { return { "error": a0 }; };
19533
+ var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
19534
+ __extends(WriteDynamicMultiSelectListFieldComponent, _super);
19535
+ function WriteDynamicMultiSelectListFieldComponent() {
19536
+ return _super !== null && _super.apply(this, arguments) || this;
19537
+ }
19538
+ WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
19539
+ var _this = this;
19540
+ this.checkboxes = new i2.FormArray([]);
19541
+ this.setInitialCaseList();
19542
+ this.setInitialCaseFieldValue();
19543
+ // Initialise array with existing values
19544
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
19545
+ var values = this.caseField.value;
19546
+ values.forEach(function (value) {
19547
+ _this.checkboxes.push(new i2.FormControl(value));
19548
+ });
19549
+ }
19550
+ this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
19551
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
19552
+ };
19553
+ WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
19554
+ var _this = this;
19555
+ var target = event.target;
19556
+ if (!target || !target.value) {
19557
+ return;
19558
+ }
19559
+ var selectedListItem = this.getValueListItem(target.value);
19560
+ if (!this.isSelected(target.value)) {
19561
+ // Add a new control in the FormArray
19562
+ this.checkboxes.push(new i2.FormControl(selectedListItem));
19563
+ }
19564
+ else {
19565
+ // Remove the control from the FormArray
19566
+ this.checkboxes.controls.forEach(function (ctrl, i) {
19567
+ if (ctrl.value.code === target.value) {
19568
+ _this.checkboxes.removeAt(i);
19569
+ }
19570
+ });
19571
+ }
19572
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
19573
+ };
19574
+ WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
19575
+ if (this.checkboxes && this.checkboxes.controls) {
19576
+ return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
19577
+ }
19578
+ };
19579
+ WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
19580
+ return this.caseField.list_items.find(function (i) { return i.code === value; });
19581
+ };
19582
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
19583
+ var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
19584
+ var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
19585
+ if (!hasListItems && hasFormattedListItems) {
19586
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
19587
+ }
19588
+ };
19589
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
19590
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
19591
+ this.caseField.value = this.caseField.formatted_value.value;
19592
+ }
19593
+ var isNull = this.caseField.value === undefined || this.caseField.value === '';
19594
+ if (isNull || !Array.isArray(this.caseField.value)) {
19595
+ this.caseField.value = [];
19596
+ }
19597
+ };
19598
+ return WriteDynamicMultiSelectListFieldComponent;
19599
+ }(AbstractFieldWriteComponent));
19600
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
19601
+ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
19602
+ if (rf & 1) {
19603
+ i0__namespace.ɵɵelementStart(0, "div", 0);
19604
+ i0__namespace.ɵɵelementStart(1, "fieldset");
19605
+ i0__namespace.ɵɵelementStart(2, "legend");
19606
+ i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
19607
+ i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
19608
+ i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
19609
+ i0__namespace.ɵɵelementEnd();
19610
+ i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
19611
+ i0__namespace.ɵɵelementEnd();
19612
+ i0__namespace.ɵɵelementEnd();
19613
+ }
19614
+ if (rf & 2) {
19615
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
19616
+ i0__namespace.ɵɵadvance(3);
19617
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
19618
+ i0__namespace.ɵɵadvance(1);
19619
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
19620
+ i0__namespace.ɵɵadvance(1);
19621
+ i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
19622
+ i0__namespace.ɵɵadvance(1);
19623
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
19624
+ }
19625
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
19626
+ var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
19627
+ (function () {
19628
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
19629
+ type: i0.Component,
19630
+ args: [{
19631
+ selector: 'ccd-write-dynamic-multi-select-list-field',
19632
+ templateUrl: './write-dynamic-multi-select-list-field.html'
19633
+ }]
19634
+ }], null, null);
19635
+ })();
19636
+
19593
19637
  var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
19594
19638
  __extends(ReadPhoneUKFieldComponent, _super);
19595
19639
  function ReadPhoneUKFieldComponent() {
@@ -19790,7 +19834,7 @@
19790
19834
  WriteTextAreaFieldComponent.prototype.autoGrow = function (event) {
19791
19835
  if (this.browserService.isIEOrEdge()) {
19792
19836
  event.target.style.height = 'auto';
19793
- event.target.style.height = event.target.scrollHeight + "px";
19837
+ event.target.style.height = event.target.scrollHeight + 'px';
19794
19838
  event.target.scrollTop = event.target.scrollHeight;
19795
19839
  }
19796
19840
  };
@@ -20030,7 +20074,6 @@
20030
20074
  return YesNoService.EMPTY;
20031
20075
  };
20032
20076
  YesNoService.prototype.isYes = function (value) {
20033
- // tslint:disable-next-line:switch-default
20034
20077
  switch (typeof (value)) {
20035
20078
  case 'boolean':
20036
20079
  return value;
@@ -20040,7 +20083,6 @@
20040
20083
  return false;
20041
20084
  };
20042
20085
  YesNoService.prototype.isNo = function (value) {
20043
- // tslint:disable-next-line:switch-default
20044
20086
  switch (typeof (value)) {
20045
20087
  case 'boolean':
20046
20088
  return !value;
@@ -22410,7 +22452,7 @@
22410
22452
  // is expected not to have a party name)
22411
22453
  if (this.flagsData) {
22412
22454
  this.filteredFlagsData =
22413
- this.flagsData.filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
22455
+ this.flagsData.filter(function (f) { return f.flags.partyName != null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
22414
22456
  }
22415
22457
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
22416
22458
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -24838,7 +24880,6 @@
24838
24880
  return FeeValue;
24839
24881
  }());
24840
24882
 
24841
- // tslint:disable:variable-name
24842
24883
  var Fee = /** @class */ (function () {
24843
24884
  function Fee() {
24844
24885
  }
@@ -25544,7 +25585,7 @@
25544
25585
  function CcdPageFieldsPipe() {
25545
25586
  }
25546
25587
  CcdPageFieldsPipe.prototype.transform = function (page, dataFormGroup) {
25547
- var complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
25588
+ var complex_fields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
25548
25589
  var control = dataFormGroup.controls['data'].get(key);
25549
25590
  return control['caseField'];
25550
25591
  }).filter(function (field) {
@@ -25564,7 +25605,7 @@
25564
25605
  field_type: {
25565
25606
  id: page.id,
25566
25607
  type: 'Complex',
25567
- complex_fields: complexFields
25608
+ complex_fields: complex_fields
25568
25609
  }
25569
25610
  });
25570
25611
  };
@@ -25743,11 +25784,11 @@
25743
25784
  }
25744
25785
  return childrenCaseFields;
25745
25786
  };
25746
- CollectionCreateCheckerService.prototype.isComplex = function (caseField) {
25747
- return caseField.field_type.type === 'Complex';
25787
+ CollectionCreateCheckerService.prototype.isComplex = function (case_field) {
25788
+ return case_field.field_type.type === 'Complex';
25748
25789
  };
25749
- CollectionCreateCheckerService.prototype.isCollection = function (caseField) {
25750
- return caseField.field_type.type === 'Collection';
25790
+ CollectionCreateCheckerService.prototype.isCollection = function (case_field) {
25791
+ return case_field.field_type.type === 'Collection';
25751
25792
  };
25752
25793
  CollectionCreateCheckerService.prototype.hasCreateAccess = function (caseField, role) {
25753
25794
  return !!caseField.acls.find(function (acl) { return acl.role === role && acl.create === true; });
@@ -26948,7 +26989,7 @@
26948
26989
  if (caseField.field_type.type === 'Complex') {
26949
26990
  // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
26950
26991
  // handle both null and undefined values
26951
- if (caseField.value !== null) {
26992
+ if (caseField.value != null) {
26952
26993
  // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
26953
26994
  // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
26954
26995
  // parent)
@@ -27014,8 +27055,8 @@
27014
27055
  this.caseEdit.navigateToPage(pageId);
27015
27056
  };
27016
27057
  CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
27017
- this.ignoreWarning = errorContext.ignoreWarning;
27018
- this.triggerText = errorContext.triggerText;
27058
+ this.ignoreWarning = errorContext.ignore_warning;
27059
+ this.triggerText = errorContext.trigger_text;
27019
27060
  };
27020
27061
  CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
27021
27062
  if (null === this.editForm.get('data').get(field.id)) {
@@ -27647,7 +27688,6 @@
27647
27688
  { provide: COMPONENT_PORTAL_INJECTION_TOKEN, useValue: this }
27648
27689
  ]
27649
27690
  });
27650
- // tslint:disable-next-line:switch-default
27651
27691
  switch (portalType) {
27652
27692
  case EventCompletionPortalTypes.TaskCancelled:
27653
27693
  this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
@@ -28182,36 +28222,36 @@
28182
28222
  this.screenReaderCurrentLabel = "You're on page";
28183
28223
  this.pageChange = new i0.EventEmitter();
28184
28224
  this.pageBoundsCorrection = new i0.EventEmitter();
28185
- this.pDirectionLinks = true;
28186
- this.pAutoHide = false;
28187
- this.pResponsive = false;
28225
+ this._directionLinks = true;
28226
+ this._autoHide = false;
28227
+ this._responsive = false;
28188
28228
  }
28189
28229
  Object.defineProperty(PaginationComponent.prototype, "directionLinks", {
28190
28230
  get: function () {
28191
- return this.pDirectionLinks;
28231
+ return this._directionLinks;
28192
28232
  },
28193
28233
  set: function (value) {
28194
- this.pDirectionLinks = coerceToBoolean(value);
28234
+ this._directionLinks = coerceToBoolean(value);
28195
28235
  },
28196
28236
  enumerable: false,
28197
28237
  configurable: true
28198
28238
  });
28199
28239
  Object.defineProperty(PaginationComponent.prototype, "autoHide", {
28200
28240
  get: function () {
28201
- return this.pAutoHide;
28241
+ return this._autoHide;
28202
28242
  },
28203
28243
  set: function (value) {
28204
- this.pAutoHide = coerceToBoolean(value);
28244
+ this._autoHide = coerceToBoolean(value);
28205
28245
  },
28206
28246
  enumerable: false,
28207
28247
  configurable: true
28208
28248
  });
28209
28249
  Object.defineProperty(PaginationComponent.prototype, "responsive", {
28210
28250
  get: function () {
28211
- return this.pResponsive;
28251
+ return this._responsive;
28212
28252
  },
28213
28253
  set: function (value) {
28214
- this.pResponsive = coerceToBoolean(value);
28254
+ this._responsive = coerceToBoolean(value);
28215
28255
  },
28216
28256
  enumerable: false,
28217
28257
  configurable: true
@@ -28978,7 +29018,7 @@
28978
29018
  var formValue = _this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
28979
29019
  workbasketInputs.forEach(function (item) {
28980
29020
  if (item.field.elementPath) {
28981
- item.field.id = item.field.id + "." + item.field.elementPath;
29021
+ item.field.id = item.field.id + '.' + item.field.elementPath;
28982
29022
  }
28983
29023
  item.field.label = item.label;
28984
29024
  if (formValue) {
@@ -29030,7 +29070,7 @@
29030
29070
  var value = formGroupLS[key];
29031
29071
  // Clear the filter form group control values if it has a value in local storage
29032
29072
  // The regionList form group control value should be ignored as it always contain the latest value
29033
- if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
29073
+ if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
29034
29074
  this.formGroup.get(key).setValue(null);
29035
29075
  }
29036
29076
  }
@@ -30159,7 +30199,7 @@
30159
30199
  this.eventTrigger = this.route.snapshot.data.eventTrigger;
30160
30200
  if (this.activityPollingService.isEnabled) {
30161
30201
  this.ngZone.runOutsideAngular(function () {
30162
- _this.activitySubscription = _this.postEditActivity().subscribe(function () {
30202
+ _this.activitySubscription = _this.postEditActivity().subscribe(function (_resolved) {
30163
30203
  // console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
30164
30204
  });
30165
30205
  });
@@ -31131,8 +31171,8 @@
31131
31171
  return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
31132
31172
  };
31133
31173
  CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
31134
- this.ignoreWarning = callbackErrorsContext.ignoreWarning;
31135
- this.triggerText = callbackErrorsContext.triggerText;
31174
+ this.ignoreWarning = callbackErrorsContext.ignore_warning;
31175
+ this.triggerText = callbackErrorsContext.trigger_text;
31136
31176
  };
31137
31177
  CaseFullAccessViewComponent.prototype.isDraft = function () {
31138
31178
  return Draft.isDraft(this.caseDetails.case_id);
@@ -31411,7 +31451,7 @@
31411
31451
  * or the empty string
31412
31452
  */
31413
31453
  PrintUrlPipe.prototype.transform = function (remoteUrl) {
31414
- if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
31454
+ if (remoteUrl && remoteUrl.length > 0) {
31415
31455
  var printServiceUrlPathname = void 0;
31416
31456
  /**
31417
31457
  * Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
@@ -31427,7 +31467,7 @@
31427
31467
  printServiceUrlPathname = urlParser.pathname;
31428
31468
  if (printServiceUrlPathname[0] !== '/') {
31429
31469
  // Fix for IE11; it returns the pathname without leading slash
31430
- printServiceUrlPathname = "/" + printServiceUrlPathname;
31470
+ printServiceUrlPathname = '/' + printServiceUrlPathname;
31431
31471
  }
31432
31472
  }
31433
31473
  else {
@@ -31630,10 +31670,10 @@
31630
31670
  };
31631
31671
  CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
31632
31672
  if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
31633
- var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31634
- var accessGranted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31635
- this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31636
- this.userAccessType = accessProcess ? accessProcess.value : null;
31673
+ var access_process = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31674
+ var access_granted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31675
+ this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31676
+ this.userAccessType = access_process ? access_process.value : null;
31637
31677
  }
31638
31678
  };
31639
31679
  CaseViewerComponent.prototype.isDataLoaded = function () {
@@ -32929,11 +32969,11 @@
32929
32969
  };
32930
32970
  this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId_1, challengedAccessRequest)
32931
32971
  .pipe(operators.switchMap(function () { return _this.caseNotifier.fetchAndRefresh(caseId_1); }))
32932
- .subscribe(function () {
32972
+ .subscribe(function (_response) {
32933
32973
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
32934
32974
  // Angular 7.2!
32935
32975
  _this.router.navigate(['success'], { relativeTo: _this.route });
32936
- }, function () {
32976
+ }, function (_error) {
32937
32977
  // Navigate to error page
32938
32978
  });
32939
32979
  }
@@ -32947,7 +32987,7 @@
32947
32987
  }
32948
32988
  };
32949
32989
  CaseChallengedAccessRequestComponent.prototype.inputEmpty = function (input) {
32950
- return input.value === null || input.value.trim().length === 0;
32990
+ return input.value == null || input.value.trim().length === 0;
32951
32991
  };
32952
32992
  return CaseChallengedAccessRequestComponent;
32953
32993
  }());
@@ -33571,11 +33611,11 @@
33571
33611
  };
33572
33612
  this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId_1, specificAccessRequest)
33573
33613
  .pipe(operators.switchMap(function () { return _this.caseNotifier.fetchAndRefresh(caseId_1); }))
33574
- .subscribe(function () {
33614
+ .subscribe(function (_response) {
33575
33615
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
33576
33616
  // Angular 7.2
33577
33617
  _this.router.navigate(['success'], { relativeTo: _this.route });
33578
- }, function () {
33618
+ }, function (_error) {
33579
33619
  // Navigate to error page
33580
33620
  });
33581
33621
  }
@@ -33590,7 +33630,7 @@
33590
33630
  }
33591
33631
  };
33592
33632
  CaseSpecificAccessRequestComponent.prototype.inputEmpty = function (input) {
33593
- return input.value === null || input.value.trim().length === 0;
33633
+ return input.value == null || input.value.trim().length === 0;
33594
33634
  };
33595
33635
  return CaseSpecificAccessRequestComponent;
33596
33636
  }());
@@ -34491,7 +34531,7 @@
34491
34531
  }
34492
34532
  searchInputs.forEach(function (item) {
34493
34533
  if (item.field.elementPath) {
34494
- item.field.id = item.field.id + "." + item.field.elementPath;
34534
+ item.field.id = item.field.id + '.' + item.field.elementPath;
34495
34535
  }
34496
34536
  item.field.label = item.label;
34497
34537
  if (formValueObject) {
@@ -34770,7 +34810,7 @@
34770
34810
  if (rf & 2) {
34771
34811
  var ctx_r3 = i0__namespace.ɵɵnextContext(2);
34772
34812
  i0__namespace.ɵɵadvance(6);
34773
- i0__namespace.ɵɵtextInterpolate1(" The total size of the result set is ", i0__namespace.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.totalResultsCount), ". Only the first 10,000 records are available for display. ");
34813
+ i0__namespace.ɵɵtextInterpolate1(" The total size of the result set is ", i0__namespace.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.total_results_count), ". Only the first 10,000 records are available for display. ");
34774
34814
  }
34775
34815
  }
34776
34816
  function SearchResultComponent_table_0_div_5_Template(rf, ctx) {
@@ -35329,7 +35369,7 @@
35329
35369
  };
35330
35370
  Object.defineProperty(SearchResultComponent.prototype, "resultTotal", {
35331
35371
  get: function () {
35332
- var total = this.paginationMetadata.totalResultsCount;
35372
+ var total = this.paginationMetadata.total_results_count;
35333
35373
  var maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
35334
35374
  this.paginationLimitEnforced = maximumResultReached;
35335
35375
  return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
@@ -35480,7 +35520,7 @@
35480
35520
  return col;
35481
35521
  };
35482
35522
  SearchResultComponent.prototype.hasResults = function () {
35483
- return this.resultView.results.length && this.paginationMetadata.totalPagesCount;
35523
+ return this.resultView.results.length && this.paginationMetadata.total_pages_count;
35484
35524
  };
35485
35525
  SearchResultComponent.prototype.hasDrafts = function () {
35486
35526
  return this.resultView.hasDrafts();
@@ -35579,7 +35619,7 @@
35579
35619
  return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
35580
35620
  };
35581
35621
  SearchResultComponent.prototype.getTotalResults = function () {
35582
- var total = this.paginationMetadata.totalResultsCount + this.draftsCount;
35622
+ var total = this.paginationMetadata.total_results_count + this.draftsCount;
35583
35623
  return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
35584
35624
  };
35585
35625
  SearchResultComponent.prototype.prepareCaseLinkUrl = function (caseId) {
@@ -35737,7 +35777,6 @@
35737
35777
  })();
35738
35778
  i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
35739
35779
 
35740
- // tslint:disable:variable-name
35741
35780
  var ComplexFieldOverride = /** @class */ (function () {
35742
35781
  function ComplexFieldOverride() {
35743
35782
  }
@@ -35759,24 +35798,24 @@
35759
35798
  this.caseField.id = id;
35760
35799
  return this;
35761
35800
  };
35762
- CaseFieldBuilder.prototype.withFieldType = function (fieldType) {
35763
- this.caseField.field_type = fieldType;
35801
+ CaseFieldBuilder.prototype.withFieldType = function (field_type) {
35802
+ this.caseField.field_type = field_type;
35764
35803
  return this;
35765
35804
  };
35766
- CaseFieldBuilder.prototype.withDisplayContext = function (displayContext) {
35767
- this.caseField.display_context = displayContext;
35805
+ CaseFieldBuilder.prototype.withDisplayContext = function (display_context) {
35806
+ this.caseField.display_context = display_context;
35768
35807
  return this;
35769
35808
  };
35770
- CaseFieldBuilder.prototype.withDisplayContextParameter = function (displayContextParameter) {
35771
- this.caseField.display_context_parameter = displayContextParameter;
35809
+ CaseFieldBuilder.prototype.withDisplayContextParameter = function (display_context_parameter) {
35810
+ this.caseField.display_context_parameter = display_context_parameter;
35772
35811
  return this;
35773
35812
  };
35774
35813
  CaseFieldBuilder.prototype.withHidden = function (hidden) {
35775
35814
  this.caseField.hidden = hidden;
35776
35815
  return this;
35777
35816
  };
35778
- CaseFieldBuilder.prototype.withHintText = function (hintText) {
35779
- this.caseField.hint_text = hintText;
35817
+ CaseFieldBuilder.prototype.withHintText = function (hint_text) {
35818
+ this.caseField.hint_text = hint_text;
35780
35819
  return this;
35781
35820
  };
35782
35821
  CaseFieldBuilder.prototype.withLabel = function (label) {
@@ -35787,12 +35826,12 @@
35787
35826
  this.caseField.order = order;
35788
35827
  return this;
35789
35828
  };
35790
- CaseFieldBuilder.prototype.withSecurityLabel = function (securityLabel) {
35791
- this.caseField.security_label = securityLabel;
35829
+ CaseFieldBuilder.prototype.withSecurityLabel = function (security_label) {
35830
+ this.caseField.security_label = security_label;
35792
35831
  return this;
35793
35832
  };
35794
- CaseFieldBuilder.prototype.withShowCondition = function (showCondition) {
35795
- this.caseField.show_condition = showCondition;
35833
+ CaseFieldBuilder.prototype.withShowCondition = function (show_condition) {
35834
+ this.caseField.show_condition = show_condition;
35796
35835
  return this;
35797
35836
  };
35798
35837
  CaseFieldBuilder.prototype.withShowSummaryContentOption = function (option) {
@@ -35820,21 +35859,21 @@
35820
35859
  complex_fields: []
35821
35860
  };
35822
35861
  };
35823
- var createCaseEventTrigger = function (id, name, caseId, showSummary, caseFields, wizardPages, canSaveDraft) {
35824
- if (wizardPages === void 0) { wizardPages = []; }
35825
- if (canSaveDraft === void 0) { canSaveDraft = false; }
35862
+ var createCaseEventTrigger = function (id, name, case_id, show_summary, case_fields, wizard_pages, can_save_draft) {
35863
+ if (wizard_pages === void 0) { wizard_pages = []; }
35864
+ if (can_save_draft === void 0) { can_save_draft = false; }
35826
35865
  var eventTrigger = new CaseEventTrigger();
35827
35866
  eventTrigger.id = id;
35828
35867
  eventTrigger.name = name;
35829
- eventTrigger.case_id = caseId;
35830
- eventTrigger.show_summary = showSummary;
35831
- eventTrigger.wizard_pages = wizardPages;
35868
+ eventTrigger.case_id = case_id;
35869
+ eventTrigger.show_summary = show_summary;
35870
+ eventTrigger.wizard_pages = wizard_pages;
35832
35871
  eventTrigger.event_token = 'test-token';
35833
- eventTrigger.case_fields = caseFields;
35834
- eventTrigger.can_save_draft = canSaveDraft;
35872
+ eventTrigger.case_fields = case_fields;
35873
+ eventTrigger.can_save_draft = can_save_draft;
35835
35874
  return eventTrigger;
35836
35875
  };
35837
- var aCaseField = function (id, label, type, displayContext, showSummaryContentOption, typeComplexFields, retainHiddenValue, hidden) {
35876
+ var aCaseField = function (id, label, type, display_context, show_summary_content_option, typeComplexFields, retain_hidden_value, hidden) {
35838
35877
  if (typeComplexFields === void 0) { typeComplexFields = []; }
35839
35878
  return ({
35840
35879
  id: id || 'personFirstName',
@@ -35843,10 +35882,10 @@
35843
35882
  type: type || 'Text',
35844
35883
  complex_fields: typeComplexFields || []
35845
35884
  },
35846
- display_context: displayContext || 'OPTIONAL',
35885
+ display_context: display_context || 'OPTIONAL',
35847
35886
  label: label || 'First name',
35848
- show_summary_content_option: showSummaryContentOption,
35849
- retain_hidden_value: retainHiddenValue || false,
35887
+ show_summary_content_option: show_summary_content_option,
35888
+ retain_hidden_value: retain_hidden_value || false,
35850
35889
  hidden: hidden || false
35851
35890
  });
35852
35891
  };
@@ -35888,48 +35927,48 @@
35888
35927
  complexFieldOverride.display_context = 'HIDDEN';
35889
35928
  return complexFieldOverride;
35890
35929
  };
35891
- var createCaseField = function (id, label, hint, fieldType, displayContext, order, showCondition, acls, hidden) {
35930
+ var createCaseField = function (id, label, hint, fieldType, display_context, order, show_condition, ACLs, hidden) {
35892
35931
  if (order === void 0) { order = undefined; }
35893
- if (showCondition === void 0) { showCondition = undefined; }
35894
- if (acls === void 0) { acls = undefined; }
35932
+ if (show_condition === void 0) { show_condition = undefined; }
35933
+ if (ACLs === void 0) { ACLs = undefined; }
35895
35934
  return CaseFieldBuilder.create()
35896
35935
  .withId(id || 'personFirstName')
35897
35936
  .withFieldType(fieldType || textFieldType())
35898
- .withDisplayContext(displayContext || 'OPTIONAL')
35937
+ .withDisplayContext(display_context || 'OPTIONAL')
35899
35938
  .withLabel(label || 'First name')
35900
35939
  .withHintText(hint || 'First name hint text')
35901
35940
  .withShowSummaryContentOption(0)
35902
35941
  .withOrder(order)
35903
- .withShowCondition(showCondition || undefined)
35904
- .withACLs(acls)
35942
+ .withShowCondition(show_condition || undefined)
35943
+ .withACLs(ACLs)
35905
35944
  .withHidden(hidden || false)
35906
35945
  .build();
35907
35946
  };
35908
- var newCaseField = function (id, label, hint, fieldType, displayContext, order) {
35947
+ var newCaseField = function (id, label, hint, fieldType, display_context, order) {
35909
35948
  if (order === void 0) { order = undefined; }
35910
35949
  return CaseFieldBuilder.create()
35911
35950
  .withId(id || 'personFirstName')
35912
35951
  .withFieldType(fieldType || textFieldType())
35913
- .withDisplayContext(displayContext || 'OPTIONAL')
35952
+ .withDisplayContext(display_context || 'OPTIONAL')
35914
35953
  .withHintText(hint || 'First name hint text')
35915
35954
  .withLabel(label || 'First name')
35916
35955
  .withOrder(order)
35917
35956
  .withShowSummaryContentOption(0);
35918
35957
  };
35919
- var createFieldType = function (typeId, type, complexFields, collectionFieldType) {
35920
- if (complexFields === void 0) { complexFields = []; }
35921
- if (collectionFieldType === void 0) { collectionFieldType = undefined; }
35958
+ var createFieldType = function (typeId, type, complex_fields, collection_field_type) {
35959
+ if (complex_fields === void 0) { complex_fields = []; }
35960
+ if (collection_field_type === void 0) { collection_field_type = undefined; }
35922
35961
  return {
35923
35962
  id: typeId || 'Text',
35924
35963
  type: type || 'Text',
35925
- complex_fields: complexFields || [],
35926
- collection_field_type: collectionFieldType || undefined
35964
+ complex_fields: complex_fields || [],
35965
+ collection_field_type: collection_field_type || undefined
35927
35966
  };
35928
35967
  };
35929
35968
  var createFixedListFieldType = function (typeId, fixedListItems) {
35930
35969
  if (fixedListItems === void 0) { fixedListItems = []; }
35931
35970
  return {
35932
- id: "FixedList-" + typeId,
35971
+ id: 'FixedList-' + typeId,
35933
35972
  type: 'FixedList',
35934
35973
  fixed_list_items: fixedListItems || []
35935
35974
  };
@@ -35937,18 +35976,18 @@
35937
35976
  var createMultiSelectListFieldType = function (typeId, fixedListItems) {
35938
35977
  if (fixedListItems === void 0) { fixedListItems = []; }
35939
35978
  return {
35940
- id: "MultiSelectList-" + typeId,
35979
+ id: 'MultiSelectList-' + typeId,
35941
35980
  type: 'MultiSelectList',
35942
35981
  fixed_list_items: fixedListItems || []
35943
35982
  };
35944
35983
  };
35945
- var createACL = function (role, aclCreate, aclRead, aclUpdate, aclDelete) {
35984
+ var createACL = function (role, create, read, update, _delete) {
35946
35985
  return ({
35947
35986
  role: role || 'roleX',
35948
- create: aclCreate,
35949
- read: aclRead,
35950
- update: aclUpdate,
35951
- delete: aclDelete
35987
+ create: create,
35988
+ read: read,
35989
+ update: update,
35990
+ delete: _delete
35952
35991
  });
35953
35992
  };
35954
35993
 
@@ -36167,6 +36206,7 @@
36167
36206
  exports.FormatTranslatorService = FormatTranslatorService;
36168
36207
  exports.GreyBarService = GreyBarService;
36169
36208
  exports.HRef = HRef;
36209
+ exports.HasLoadingState = HasLoadingState;
36170
36210
  exports.HeaderBarComponent = HeaderBarComponent;
36171
36211
  exports.HeadersModule = HeadersModule;
36172
36212
  exports.HttpError = HttpError;