@hmcts/ccd-case-ui-toolkit 6.19.10 → 6.19.11-case-file-view-feature-toggle-v1.1

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 (70) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +281 -298
  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/shared/components/case-editor/case-edit/case-edit.component.js +5 -16
  7. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +4 -12
  8. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +3 -6
  9. package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +1 -2
  10. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +1 -2
  11. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.js +22 -8
  12. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +43 -28
  13. package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +233 -0
  14. package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +2 -2
  15. package/esm2015/lib/shared/components/palette/complex/read-complex-field-table.component.js +3 -4
  16. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +2 -2
  17. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
  18. package/esm2015/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.js +6 -0
  19. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +39 -13
  20. package/esm2015/lib/shared/domain/case-file-view/index.js +3 -2
  21. package/esm2015/lib/shared/domain/index.js +10 -10
  22. package/esm2015/lib/shared/domain/search/sorting/sort-parameters.js +1 -1
  23. package/esm2015/lib/shared/domain/sort-order.enum.js +7 -0
  24. package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +13 -20
  25. package/esm2015/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.js +2 -2
  26. package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +1 -1
  27. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +246 -263
  28. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  29. package/lib/app.config.d.ts +2 -0
  30. package/lib/app.config.d.ts.map +1 -1
  31. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +1 -4
  32. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  33. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +2 -4
  34. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  35. package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
  36. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  37. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  38. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +8 -5
  39. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -1
  40. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +5 -3
  41. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  42. package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts +3 -0
  43. package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +1 -0
  44. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
  45. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -1
  46. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  47. package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts +5 -0
  48. package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts.map +1 -0
  49. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +4 -2
  50. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  51. package/lib/shared/domain/case-file-view/index.d.ts +2 -1
  52. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
  53. package/lib/shared/domain/index.d.ts +9 -9
  54. package/lib/shared/domain/index.d.ts.map +1 -1
  55. package/lib/shared/domain/search/sorting/sort-parameters.d.ts +1 -1
  56. package/lib/shared/domain/search/sorting/sort-parameters.d.ts.map +1 -1
  57. package/lib/shared/{components/palette/complex/sort-order.d.ts → domain/sort-order.enum.d.ts} +1 -1
  58. package/lib/shared/domain/sort-order.enum.d.ts.map +1 -0
  59. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts +1 -1
  60. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  61. package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
  62. package/package.json +1 -1
  63. package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +0 -39
  64. package/esm2015/lib/shared/components/palette/complex/sort-order.js +0 -7
  65. package/esm2015/lib/shared/domain/search/sorting/sort-order.js +0 -7
  66. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +0 -14
  67. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +0 -1
  68. package/lib/shared/components/palette/complex/sort-order.d.ts.map +0 -1
  69. package/lib/shared/domain/search/sorting/sort-order.d.ts +0 -6
  70. package/lib/shared/domain/search/sorting/sort-order.d.ts.map +0 -1
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rpx-xui-translation'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
3
  typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', 'rpx-xui-translation', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.i1, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.i12, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i2, i1, i1$1, i2$1, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$2, i1$4, i5, i6, i3, i1$5, i7, i3$1, i4, momentAdapter, i5$1, i6$1, i12, i6$2, i1$6, i10) { 'use strict';
5
+ })(this, (function (exports, i0, i2, i1, i1$1, i2$1, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$2, i1$4, i5, i6, i3, i1$5, i8, i3$1, i4, momentAdapter, i5$1, i6$1, i12, i6$2, i1$6, i10) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -40,7 +40,7 @@
40
40
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
41
41
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
42
42
  var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
43
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
43
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
44
44
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
45
45
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
46
46
  var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
@@ -144,7 +144,7 @@
144
144
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
145
145
  }
146
146
  }
147
- var _c0$10 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
147
+ var _c0$$ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
148
148
  var _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
149
149
  var FooterComponent = /** @class */ (function () {
150
150
  function FooterComponent() {
@@ -154,7 +154,7 @@
154
154
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
155
155
  FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$t, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
156
156
  if (rf & 1) {
157
- i0__namespace.ɵɵprojectionDef(_c0$10);
157
+ i0__namespace.ɵɵprojectionDef(_c0$$);
158
158
  i0__namespace.ɵɵelementStart(0, "footer", 0);
159
159
  i0__namespace.ɵɵelementStart(1, "div", 1);
160
160
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
@@ -240,7 +240,7 @@
240
240
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 1, ctx_r2.title));
241
241
  }
242
242
  }
243
- var _c0$$ = [[["", "headerNavigation", ""]]];
243
+ var _c0$_ = [[["", "headerNavigation", ""]]];
244
244
  var _c1$s = ["[headerNavigation]"];
245
245
  var HeaderBarComponent = /** @class */ (function () {
246
246
  function HeaderBarComponent() {
@@ -254,7 +254,7 @@
254
254
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
255
255
  HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$s, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
256
256
  if (rf & 1) {
257
- i0__namespace.ɵɵprojectionDef(_c0$$);
257
+ i0__namespace.ɵɵprojectionDef(_c0$_);
258
258
  i0__namespace.ɵɵelementStart(0, "header", 0);
259
259
  i0__namespace.ɵɵelementStart(1, "div", 1);
260
260
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -321,7 +321,7 @@
321
321
  }] });
322
322
  })();
323
323
 
324
- var _c0$_ = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
324
+ var _c0$Z = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
325
325
  var _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
326
326
  var NavigationComponent = /** @class */ (function () {
327
327
  function NavigationComponent() {
@@ -331,7 +331,7 @@
331
331
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
332
332
  NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$r, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
333
333
  if (rf & 1) {
334
- i0__namespace.ɵɵprojectionDef(_c0$_);
334
+ i0__namespace.ɵɵprojectionDef(_c0$Z);
335
335
  i0__namespace.ɵɵelementStart(0, "div");
336
336
  i0__namespace.ɵɵelementStart(1, "nav", 0);
337
337
  i0__namespace.ɵɵprojection(2);
@@ -487,7 +487,7 @@
487
487
  }], null, null);
488
488
  })();
489
489
 
490
- var _c0$Z = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
490
+ var _c0$Y = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
491
491
  var _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
492
492
  var BodyComponent = /** @class */ (function () {
493
493
  function BodyComponent() {
@@ -497,7 +497,7 @@
497
497
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
498
498
  BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$q, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
499
499
  if (rf & 1) {
500
- i0__namespace.ɵɵprojectionDef(_c0$Z);
500
+ i0__namespace.ɵɵprojectionDef(_c0$Y);
501
501
  i0__namespace.ɵɵelementStart(0, "div", 0);
502
502
  i0__namespace.ɵɵprojection(1);
503
503
  i0__namespace.ɵɵprojection(2, 1);
@@ -981,7 +981,7 @@
981
981
  __disposeResources: __disposeResources,
982
982
  };
983
983
 
984
- var _c0$Y = function (a0) { return { "govuk-input--error": a0 }; };
984
+ var _c0$X = function (a0) { return { "govuk-input--error": a0 }; };
985
985
  function DateInputComponent_div_19_Template(rf, ctx) {
986
986
  if (rf & 1) {
987
987
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -1002,7 +1002,7 @@
1002
1002
  i0__namespace.ɵɵadvance(1);
1003
1003
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Hour"));
1004
1004
  i0__namespace.ɵɵadvance(2);
1005
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Y, ctx_r3.isInvalid));
1005
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$X, ctx_r3.isInvalid));
1006
1006
  }
1007
1007
  }
1008
1008
  function DateInputComponent_div_20_Template(rf, ctx) {
@@ -1025,7 +1025,7 @@
1025
1025
  i0__namespace.ɵɵadvance(1);
1026
1026
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Minute"));
1027
1027
  i0__namespace.ɵɵadvance(2);
1028
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Y, ctx_r4.isInvalid));
1028
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$X, ctx_r4.isInvalid));
1029
1029
  }
1030
1030
  }
1031
1031
  function DateInputComponent_div_21_Template(rf, ctx) {
@@ -1048,7 +1048,7 @@
1048
1048
  i0__namespace.ɵɵadvance(1);
1049
1049
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Second"));
1050
1050
  i0__namespace.ɵɵadvance(2);
1051
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Y, ctx_r5.isInvalid));
1051
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$X, ctx_r5.isInvalid));
1052
1052
  }
1053
1053
  }
1054
1054
  var DateInputComponent = /** @class */ (function () {
@@ -1287,19 +1287,19 @@
1287
1287
  i0__namespace.ɵɵadvance(1);
1288
1288
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 21, "Day"));
1289
1289
  i0__namespace.ɵɵadvance(2);
1290
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$Y, ctx.isInvalid));
1290
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$X, ctx.isInvalid));
1291
1291
  i0__namespace.ɵɵadvance(3);
1292
1292
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1293
1293
  i0__namespace.ɵɵadvance(1);
1294
1294
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(10, 23, "Month"));
1295
1295
  i0__namespace.ɵɵadvance(2);
1296
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$Y, ctx.isInvalid));
1296
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$X, ctx.isInvalid));
1297
1297
  i0__namespace.ɵɵadvance(3);
1298
1298
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1299
1299
  i0__namespace.ɵɵadvance(1);
1300
1300
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 25, "Year"));
1301
1301
  i0__namespace.ɵɵadvance(2);
1302
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$Y, ctx.isInvalid));
1302
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$X, ctx.isInvalid));
1303
1303
  i0__namespace.ɵɵadvance(2);
1304
1304
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1305
1305
  i0__namespace.ɵɵadvance(1);
@@ -1380,7 +1380,7 @@
1380
1380
  i0__namespace.ɵɵelementContainerEnd();
1381
1381
  }
1382
1382
  }
1383
- var _c0$X = ["*"];
1383
+ var _c0$W = ["*"];
1384
1384
  exports.AlertMessageType = void 0;
1385
1385
  (function (AlertMessageType) {
1386
1386
  AlertMessageType["WARNING"] = "warning";
@@ -1401,7 +1401,7 @@
1401
1401
  AlertComponent.TYPE_ERROR = 'error';
1402
1402
  AlertComponent.TYPE_INFORMATION = 'information';
1403
1403
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1404
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$X, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1404
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$W, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1405
1405
  if (rf & 1) {
1406
1406
  i0__namespace.ɵɵprojectionDef();
1407
1407
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1683,7 +1683,7 @@
1683
1683
  }] });
1684
1684
  })();
1685
1685
 
1686
- var _c0$W = function (a0) { return { "js-hidden": a0 }; };
1686
+ var _c0$V = function (a0) { return { "js-hidden": a0 }; };
1687
1687
  var _c1$p = ["*"];
1688
1688
  var TabComponent = /** @class */ (function () {
1689
1689
  function TabComponent() {
@@ -1699,7 +1699,7 @@
1699
1699
  i0__namespace.ɵɵelementEnd();
1700
1700
  }
1701
1701
  if (rf & 2) {
1702
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$W, !ctx.selected));
1702
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$V, !ctx.selected));
1703
1703
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1704
1704
  }
1705
1705
  }, directives: [i2__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1722,7 +1722,7 @@
1722
1722
  }] });
1723
1723
  })();
1724
1724
 
1725
- var _c0$V = ["tab"];
1725
+ var _c0$U = ["tab"];
1726
1726
  var _c1$o = function () { return ["."]; };
1727
1727
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1728
1728
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1778,7 +1778,7 @@
1778
1778
  }
1779
1779
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1780
1780
  if (rf & 1) {
1781
- i0__namespace.ɵɵviewQuery(_c0$V, 1);
1781
+ i0__namespace.ɵɵviewQuery(_c0$U, 1);
1782
1782
  }
1783
1783
  if (rf & 2) {
1784
1784
  var _t = void 0;
@@ -1859,7 +1859,7 @@
1859
1859
  }], null, null);
1860
1860
  })();
1861
1861
 
1862
- var _c0$U = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1862
+ var _c0$T = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1863
1863
  var ActivityBannerComponent = /** @class */ (function () {
1864
1864
  function ActivityBannerComponent() {
1865
1865
  }
@@ -1882,7 +1882,7 @@
1882
1882
  i0__namespace.ɵɵelementEnd();
1883
1883
  }
1884
1884
  if (rf & 2) {
1885
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$U, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1885
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$T, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1886
1886
  i0__namespace.ɵɵadvance(2);
1887
1887
  i0__namespace.ɵɵpropertyInterpolate("alt", i0__namespace.ɵɵpipeBind1(3, 4, ctx.description));
1888
1888
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -3501,6 +3501,20 @@
3501
3501
  return Alert;
3502
3502
  }());
3503
3503
 
3504
+ // tslint:disable:variable-name
3505
+ var CaseDetails = /** @class */ (function () {
3506
+ function CaseDetails() {
3507
+ }
3508
+ return CaseDetails;
3509
+ }());
3510
+
3511
+ // tslint:disable:variable-name
3512
+ var CaseEventData = /** @class */ (function () {
3513
+ function CaseEventData() {
3514
+ }
3515
+ return CaseEventData;
3516
+ }());
3517
+
3504
3518
  var WizardPageField = /** @class */ (function () {
3505
3519
  function WizardPageField() {
3506
3520
  }
@@ -3920,6 +3934,20 @@
3920
3934
  return FormDocument;
3921
3935
  }());
3922
3936
 
3937
+ var DRAFT_PREFIX = 'DRAFT';
3938
+ var DRAFT_QUERY_PARAM = 'draft';
3939
+ var Draft = /** @class */ (function () {
3940
+ function Draft() {
3941
+ }
3942
+ Draft.stripDraftId = function (draftId) {
3943
+ return draftId.slice(DRAFT_PREFIX.length);
3944
+ };
3945
+ Draft.isDraft = function (id) {
3946
+ return String(id).startsWith(DRAFT_PREFIX);
3947
+ };
3948
+ return Draft;
3949
+ }());
3950
+
3923
3951
  var OrganisationConverter = /** @class */ (function () {
3924
3952
  function OrganisationConverter() {
3925
3953
  }
@@ -3965,6 +3993,12 @@
3965
3993
  }], null, null);
3966
3994
  })();
3967
3995
 
3996
+ var PaginationMetadata = /** @class */ (function () {
3997
+ function PaginationMetadata() {
3998
+ }
3999
+ return PaginationMetadata;
4000
+ }());
4001
+
3968
4002
  function hasRoles(profile) {
3969
4003
  if (profile.user && profile.user.idam && Array.isArray(profile.user.idam.roles)) {
3970
4004
  return profile.user.idam.roles.length > 0;
@@ -4023,20 +4057,6 @@
4023
4057
  __metadata("design:type", Array)
4024
4058
  ], SearchResultViewItem.prototype, "hydrated_case_fields", void 0);
4025
4059
 
4026
- var DRAFT_PREFIX = 'DRAFT';
4027
- var DRAFT_QUERY_PARAM = 'draft';
4028
- var Draft = /** @class */ (function () {
4029
- function Draft() {
4030
- }
4031
- Draft.stripDraftId = function (draftId) {
4032
- return draftId.slice(DRAFT_PREFIX.length);
4033
- };
4034
- Draft.isDraft = function (id) {
4035
- return String(id).startsWith(DRAFT_PREFIX);
4036
- };
4037
- return Draft;
4038
- }());
4039
-
4040
4060
  // @dynamic
4041
4061
  var SearchResultView = /** @class */ (function () {
4042
4062
  function SearchResultView() {
@@ -4057,19 +4077,20 @@
4057
4077
  __metadata("design:type", Array)
4058
4078
  ], SearchResultView.prototype, "results", void 0);
4059
4079
 
4060
- // tslint:disable:variable-name
4061
- var CaseDetails = /** @class */ (function () {
4062
- function CaseDetails() {
4080
+ var SortParameters = /** @class */ (function () {
4081
+ function SortParameters(comparator, sortOrder) {
4082
+ this.comparator = comparator;
4083
+ this.sortOrder = sortOrder;
4063
4084
  }
4064
- return CaseDetails;
4085
+ return SortParameters;
4065
4086
  }());
4066
4087
 
4067
- // tslint:disable:variable-name
4068
- var CaseEventData = /** @class */ (function () {
4069
- function CaseEventData() {
4070
- }
4071
- return CaseEventData;
4072
- }());
4088
+ exports.SortOrder = void 0;
4089
+ (function (SortOrder) {
4090
+ SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
4091
+ SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
4092
+ SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
4093
+ })(exports.SortOrder || (exports.SortOrder = {}));
4073
4094
 
4074
4095
  var WorkbasketInputModel = /** @class */ (function () {
4075
4096
  function WorkbasketInputModel() {
@@ -4082,27 +4103,6 @@
4082
4103
  return WorkbasketInput;
4083
4104
  }());
4084
4105
 
4085
- var PaginationMetadata = /** @class */ (function () {
4086
- function PaginationMetadata() {
4087
- }
4088
- return PaginationMetadata;
4089
- }());
4090
-
4091
- exports.SortOrder = void 0;
4092
- (function (SortOrder) {
4093
- SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
4094
- SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
4095
- SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
4096
- })(exports.SortOrder || (exports.SortOrder = {}));
4097
-
4098
- var SortParameters = /** @class */ (function () {
4099
- function SortParameters(comparator, sortOrder) {
4100
- this.comparator = comparator;
4101
- this.sortOrder = sortOrder;
4102
- }
4103
- return SortParameters;
4104
- }());
4105
-
4106
4106
  // @dynamic
4107
4107
  var FieldsUtils = /** @class */ (function () {
4108
4108
  function FieldsUtils() {
@@ -4868,7 +4868,7 @@
4868
4868
  };
4869
4869
  ConditionParser.findValueForComplexConditionInArray = function (fields, head, tail, path) {
4870
4870
  // use the path to resolve which array element we refer to
4871
- if (path && path.startsWith(head)) {
4871
+ if (path.startsWith(head)) {
4872
4872
  var _a = __read(path.split(/[_]+/g)), _ = _a[0], pathTail = _a.slice(1);
4873
4873
  if (pathTail.length > 0) {
4874
4874
  try {
@@ -8700,7 +8700,6 @@
8700
8700
  childrenCaseFields.forEach(function (e) { return _this.hideParentIfAllChildrenHidden(e); });
8701
8701
  if (childrenCaseFields.length > 0 && this.allCaseFieldsHidden(childrenCaseFields)) {
8702
8702
  caseField.hidden = true;
8703
- caseField.display_context = 'HIDDEN';
8704
8703
  }
8705
8704
  };
8706
8705
  WizardPageFieldToCaseFieldMapper.prototype.getCaseFieldChildren = function (caseField) {
@@ -9885,48 +9884,8 @@
9885
9884
  }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null);
9886
9885
  })();
9887
9886
 
9888
- var ValidPageListCaseFieldsService = /** @class */ (function () {
9889
- function ValidPageListCaseFieldsService(fieldsUtils) {
9890
- this.fieldsUtils = fieldsUtils;
9891
- }
9892
- ValidPageListCaseFieldsService.prototype.isShown = function (page, eventTriggerFields, data) {
9893
- var fields = this.fieldsUtils
9894
- .mergeCaseFieldsAndFormFields(eventTriggerFields, data);
9895
- return page.parsedShowCondition.match(fields);
9896
- };
9897
- ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, caseEventDatadata, eventTriggerFields, fromPreviousPage) {
9898
- if (fromPreviousPage === void 0) { fromPreviousPage = false; }
9899
- var pageListCaseFields = this.validPageListCaseFields(validPageList, caseEventDatadata, eventTriggerFields);
9900
- if (!fromPreviousPage && pageListCaseFields.length > 0) {
9901
- Object.keys(caseEventDatadata).forEach(function (key) {
9902
- if (pageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
9903
- delete caseEventDatadata[key];
9904
- }
9905
- });
9906
- }
9907
- };
9908
- ValidPageListCaseFieldsService.prototype.validPageListCaseFields = function (validPageList, data, eventTriggerFields) {
9909
- var _this = this;
9910
- var validPageListCaseFields = [];
9911
- validPageList.forEach(function (page) {
9912
- if (_this.isShown(page, eventTriggerFields, data)) {
9913
- page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
9914
- }
9915
- });
9916
- return validPageListCaseFields;
9917
- };
9918
- return ValidPageListCaseFieldsService;
9919
- }());
9920
- ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(i0__namespace.ɵɵinject(FieldsUtils)); };
9921
- ValidPageListCaseFieldsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ValidPageListCaseFieldsService, factory: ValidPageListCaseFieldsService.ɵfac });
9922
- (function () {
9923
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ValidPageListCaseFieldsService, [{
9924
- type: i0.Injectable
9925
- }], function () { return [{ type: FieldsUtils }]; }, null);
9926
- })();
9927
-
9928
9887
  var CaseEditComponent = /** @class */ (function () {
9929
- function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService) {
9888
+ function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService) {
9930
9889
  this.fb = fb;
9931
9890
  this.caseNotifier = caseNotifier;
9932
9891
  this.router = router;
@@ -9940,7 +9899,6 @@
9940
9899
  this.formValueService = formValueService;
9941
9900
  this.formErrorService = formErrorService;
9942
9901
  this.loadingService = loadingService;
9943
- this.validPageListCaseFieldsService = validPageListCaseFieldsService;
9944
9902
  this.cancelled = new i0.EventEmitter();
9945
9903
  this.submitted = new i0.EventEmitter();
9946
9904
  this.isEventCompletionChecksRequired = false;
@@ -9948,7 +9906,6 @@
9948
9906
  this.ignoreWarning = false;
9949
9907
  this.isLinkedCasesSubmission = false;
9950
9908
  this.callbackErrorsSubject = new rxjs.Subject();
9951
- this.validPageList = [];
9952
9909
  }
9953
9910
  CaseEditComponent.prototype.ngOnInit = function () {
9954
9911
  var _this = this;
@@ -10113,11 +10070,6 @@
10113
10070
  this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
10114
10071
  // Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
10115
10072
  this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
10116
- // delete fields which are not part of the case event journey wizard pages case fields
10117
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
10118
- var pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, caseEventData.data, eventTrigger.case_fields);
10119
- // // Remove unnesessary case fields which are hidden
10120
- this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
10121
10073
  caseEventData.event_token = eventTrigger.event_token;
10122
10074
  caseEventData.ignore_warning = this.ignoreWarning;
10123
10075
  if (this.confirmation) {
@@ -10219,9 +10171,7 @@
10219
10171
  rawFormValueData[key] = parentField.formatted_value[caseField.id];
10220
10172
  }
10221
10173
  else {
10222
- if (!(caseField.hidden && caseField.retain_hidden_value)) {
10223
- rawFormValueData[key] = caseField.formatted_value;
10224
- }
10174
+ rawFormValueData[key] = caseField.formatted_value;
10225
10175
  }
10226
10176
  }
10227
10177
  }
@@ -10287,7 +10237,7 @@
10287
10237
  }());
10288
10238
  CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
10289
10239
  CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
10290
- CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(ValidPageListCaseFieldsService)); };
10240
+ CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
10291
10241
  CaseEditComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0__namespace.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) {
10292
10242
  if (rf & 1) {
10293
10243
  i0__namespace.ɵɵelement(0, "router-outlet");
@@ -10302,7 +10252,7 @@
10302
10252
  styleUrls: ['../case-edit.scss'],
10303
10253
  providers: [GreyBarService]
10304
10254
  }]
10305
- }], function () { return [{ type: i2__namespace$1.FormBuilder }, { type: CaseNotifier }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }]; }, { eventTrigger: [{
10255
+ }], function () { return [{ type: i2__namespace$1.FormBuilder }, { type: CaseNotifier }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }]; }, { eventTrigger: [{
10306
10256
  type: i0.Input
10307
10257
  }], submit: [{
10308
10258
  type: i0.Input
@@ -10998,7 +10948,7 @@
10998
10948
  }
10999
10949
  }
11000
10950
  var CaseEditPageComponent = /** @class */ (function () {
11001
- function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService) {
10951
+ function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService) {
11002
10952
  this.caseEdit = caseEdit;
11003
10953
  this.route = route;
11004
10954
  this.formValueService = formValueService;
@@ -11009,7 +10959,6 @@
11009
10959
  this.caseFieldService = caseFieldService;
11010
10960
  this.caseEditDataService = caseEditDataService;
11011
10961
  this.loadingService = loadingService;
11012
- this.validPageListCaseFieldsService = validPageListCaseFieldsService;
11013
10962
  this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
11014
10963
  this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
11015
10964
  this.formValuesChanged = false;
@@ -11220,9 +11169,6 @@
11220
11169
  }
11221
11170
  }
11222
11171
  if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
11223
- if (this.caseEdit.validPageList.findIndex(function (page) { return page.id === _this.currentPage.id; }) === -1) {
11224
- this.caseEdit.validPageList.push(this.currentPage);
11225
- }
11226
11172
  this.caseEdit.isSubmitting = true;
11227
11173
  this.caseEdit.error = null;
11228
11174
  var caseEventData = this.buildCaseEventData();
@@ -11491,8 +11437,6 @@
11491
11437
  this.formValueService.sanitiseDynamicLists(caseFields, formFields);
11492
11438
  // Get hold of the CaseEventData.
11493
11439
  var caseEventData = this.formValueService.sanitise(formFields);
11494
- // delete fields which are not part of the case event journey wizard pages case fields
11495
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage);
11496
11440
  // Tidy it up before we return it.
11497
11441
  this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
11498
11442
  return caseEventData;
@@ -11535,7 +11479,7 @@
11535
11479
  CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
11536
11480
  CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
11537
11481
  CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
11538
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(ValidPageListCaseFieldsService)); };
11482
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
11539
11483
  CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditPageComponent_Template(rf, ctx) {
11540
11484
  if (rf & 1) {
11541
11485
  i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
@@ -11578,7 +11522,7 @@
11578
11522
  templateUrl: 'case-edit-page.html',
11579
11523
  styleUrls: ['./case-edit-page.scss']
11580
11524
  }]
11581
- }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }]; }, null);
11525
+ }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null);
11582
11526
  })();
11583
11527
 
11584
11528
  var CallbackErrorsContext = /** @class */ (function () {
@@ -11778,7 +11722,7 @@
11778
11722
  return AddressOption;
11779
11723
  }());
11780
11724
 
11781
- var _c0$T = ["writeComplexFieldComponent"];
11725
+ var _c0$S = ["writeComplexFieldComponent"];
11782
11726
  function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) {
11783
11727
  if (rf & 1) {
11784
11728
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -12013,7 +11957,7 @@
12013
11957
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
12014
11958
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
12015
11959
  if (rf & 1) {
12016
- i0__namespace.ɵɵviewQuery(_c0$T, 1);
11960
+ i0__namespace.ɵɵviewQuery(_c0$S, 1);
12017
11961
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
12018
11962
  }
12019
11963
  if (rf & 2) {
@@ -12667,7 +12611,7 @@
12667
12611
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
12668
12612
  }
12669
12613
  }
12670
- var _c0$S = function (a0) { return { "form-group-error": a0 }; };
12614
+ var _c0$R = function (a0) { return { "form-group-error": a0 }; };
12671
12615
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
12672
12616
  if (rf & 1) {
12673
12617
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12689,7 +12633,7 @@
12689
12633
  i0__namespace.ɵɵadvance(1);
12690
12634
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12691
12635
  i0__namespace.ɵɵadvance(1);
12692
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$S, ctx_r1.errorMessages.length > 0));
12636
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$R, ctx_r1.errorMessages.length > 0));
12693
12637
  i0__namespace.ɵɵadvance(1);
12694
12638
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 8, ctx_r1.createFlagCaption), " ");
12695
12639
  i0__namespace.ɵɵadvance(2);
@@ -13165,7 +13109,7 @@
13165
13109
  }], null, null);
13166
13110
  })();
13167
13111
 
13168
- var _c0$R = ["writeComplexFieldComponent"];
13112
+ var _c0$Q = ["writeComplexFieldComponent"];
13169
13113
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
13170
13114
  if (rf & 1) {
13171
13115
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -13273,7 +13217,7 @@
13273
13217
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
13274
13218
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
13275
13219
  if (rf & 1) {
13276
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
13220
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
13277
13221
  }
13278
13222
  if (rf & 2) {
13279
13223
  var _t = void 0;
@@ -13318,7 +13262,7 @@
13318
13262
  }] });
13319
13263
  })();
13320
13264
 
13321
- var _c0$Q = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
13265
+ var _c0$P = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
13322
13266
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
13323
13267
  if (rf & 1) {
13324
13268
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -13333,7 +13277,7 @@
13333
13277
  if (rf & 2) {
13334
13278
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
13335
13279
  i0__namespace.ɵɵadvance(4);
13336
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$Q, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
13280
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$P, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
13337
13281
  }
13338
13282
  }
13339
13283
  var _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -13498,7 +13442,7 @@
13498
13442
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
13499
13443
  })();
13500
13444
 
13501
- var _c0$P = ["collectionItem"];
13445
+ var _c0$O = ["collectionItem"];
13502
13446
  function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) {
13503
13447
  if (rf & 1) {
13504
13448
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13931,7 +13875,7 @@
13931
13875
  WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13932
13876
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13933
13877
  if (rf & 1) {
13934
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
13878
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
13935
13879
  }
13936
13880
  if (rf & 2) {
13937
13881
  var _t = void 0;
@@ -14644,7 +14588,7 @@
14644
14588
  }], null, null);
14645
14589
  })();
14646
14590
 
14647
- var _c0$O = ["fileInput"];
14591
+ var _c0$N = ["fileInput"];
14648
14592
  function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
14649
14593
  if (rf & 1) {
14650
14594
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14958,7 +14902,7 @@
14958
14902
  WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService), i0__namespace.ɵɵdirectiveInject(JurisdictionService)); };
14959
14903
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14960
14904
  if (rf & 1) {
14961
- i0__namespace.ɵɵviewQuery(_c0$O, 1);
14905
+ i0__namespace.ɵɵviewQuery(_c0$N, 1);
14962
14906
  }
14963
14907
  if (rf & 2) {
14964
14908
  var _t = void 0;
@@ -15172,7 +15116,7 @@
15172
15116
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r5.label));
15173
15117
  }
15174
15118
  }
15175
- var _c0$N = function (a0) { return { "form-group-error": a0 }; };
15119
+ var _c0$M = function (a0) { return { "form-group-error": a0 }; };
15176
15120
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
15177
15121
  __extends(WriteDynamicListFieldComponent, _super);
15178
15122
  function WriteDynamicListFieldComponent() {
@@ -15222,7 +15166,7 @@
15222
15166
  i0__namespace.ɵɵelementEnd();
15223
15167
  }
15224
15168
  if (rf & 2) {
15225
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$N, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
15169
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
15226
15170
  i0__namespace.ɵɵadvance(1);
15227
15171
  i0__namespace.ɵɵproperty("for", ctx.id());
15228
15172
  i0__namespace.ɵɵadvance(1);
@@ -15449,7 +15393,7 @@
15449
15393
  i0__namespace.ɵɵproperty("content", checkbox_r4.label);
15450
15394
  }
15451
15395
  }
15452
- var _c0$M = function (a0) { return { "error": a0 }; };
15396
+ var _c0$L = function (a0) { return { "error": a0 }; };
15453
15397
  var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
15454
15398
  __extends(WriteDynamicMultiSelectListFieldComponent, _super);
15455
15399
  function WriteDynamicMultiSelectListFieldComponent() {
@@ -15532,7 +15476,7 @@
15532
15476
  i0__namespace.ɵɵelementEnd();
15533
15477
  }
15534
15478
  if (rf & 2) {
15535
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$M, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
15479
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
15536
15480
  i0__namespace.ɵɵadvance(3);
15537
15481
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
15538
15482
  i0__namespace.ɵɵadvance(1);
@@ -15684,7 +15628,7 @@
15684
15628
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
15685
15629
  }
15686
15630
  }
15687
- var _c0$L = function (a0) { return { selected: a0 }; };
15631
+ var _c0$K = function (a0) { return { selected: a0 }; };
15688
15632
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
15689
15633
  if (rf & 1) {
15690
15634
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -15698,7 +15642,7 @@
15698
15642
  if (rf & 2) {
15699
15643
  var radioButton_r5 = ctx.$implicit;
15700
15644
  var ctx_r4 = i0__namespace.ɵɵnextContext();
15701
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
15645
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
15702
15646
  i0__namespace.ɵɵadvance(1);
15703
15647
  i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
15704
15648
  i0__namespace.ɵɵadvance(1);
@@ -15864,7 +15808,7 @@
15864
15808
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
15865
15809
  }
15866
15810
  }
15867
- var _c0$K = function (a0) { return { "form-group-error": a0 }; };
15811
+ var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15868
15812
  var _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
15869
15813
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15870
15814
  __extends(WriteEmailFieldComponent, _super);
@@ -15889,7 +15833,7 @@
15889
15833
  i0__namespace.ɵɵelementEnd();
15890
15834
  }
15891
15835
  if (rf & 2) {
15892
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15836
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15893
15837
  i0__namespace.ɵɵadvance(1);
15894
15838
  i0__namespace.ɵɵproperty("for", ctx.id());
15895
15839
  i0__namespace.ɵɵadvance(1);
@@ -16000,7 +15944,7 @@
16000
15944
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r4.label));
16001
15945
  }
16002
15946
  }
16003
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15947
+ var _c0$I = function (a0) { return { "form-group-error": a0 }; };
16004
15948
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
16005
15949
  __extends(WriteFixedListFieldComponent, _super);
16006
15950
  function WriteFixedListFieldComponent() {
@@ -16049,7 +15993,7 @@
16049
15993
  i0__namespace.ɵɵelementEnd();
16050
15994
  }
16051
15995
  if (rf & 2) {
16052
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15996
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
16053
15997
  i0__namespace.ɵɵadvance(1);
16054
15998
  i0__namespace.ɵɵproperty("for", ctx.id());
16055
15999
  i0__namespace.ɵɵadvance(1);
@@ -16171,7 +16115,7 @@
16171
16115
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
16172
16116
  }
16173
16117
  }
16174
- var _c0$I = function (a0) { return { selected: a0 }; };
16118
+ var _c0$H = function (a0) { return { selected: a0 }; };
16175
16119
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
16176
16120
  if (rf & 1) {
16177
16121
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -16185,7 +16129,7 @@
16185
16129
  if (rf & 2) {
16186
16130
  var radioButton_r4 = ctx.$implicit;
16187
16131
  var ctx_r3 = i0__namespace.ɵɵnextContext();
16188
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
16132
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
16189
16133
  i0__namespace.ɵɵadvance(1);
16190
16134
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
16191
16135
  i0__namespace.ɵɵadvance(1);
@@ -16368,7 +16312,7 @@
16368
16312
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.errors, ctx_r2.caseField.label), " ");
16369
16313
  }
16370
16314
  }
16371
- var _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
16315
+ var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
16372
16316
  function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) {
16373
16317
  if (rf & 1) {
16374
16318
  var _r9_1 = i0__namespace.ɵɵgetCurrentView();
@@ -16380,7 +16324,7 @@
16380
16324
  if (rf & 2) {
16381
16325
  var judicialUser_r7 = ctx.$implicit;
16382
16326
  var ctx_r4 = i0__namespace.ɵɵnextContext();
16383
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, !ctx_r4.showAutocomplete))("value", judicialUser_r7);
16327
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r4.showAutocomplete))("value", judicialUser_r7);
16384
16328
  i0__namespace.ɵɵadvance(1);
16385
16329
  i0__namespace.ɵɵtextInterpolate2(" ", (judicialUser_r7 == null ? null : judicialUser_r7.fullName) ? judicialUser_r7.fullName : "", "", (judicialUser_r7 == null ? null : judicialUser_r7.emailId) ? " (" + judicialUser_r7.emailId + ")" : "", " ");
16386
16330
  }
@@ -17309,7 +17253,7 @@
17309
17253
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
17310
17254
  }
17311
17255
  }
17312
- var _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
17256
+ var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
17313
17257
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
17314
17258
  if (rf & 1) {
17315
17259
  i0__namespace.ɵɵelementStart(0, "div", 35);
@@ -17327,7 +17271,7 @@
17327
17271
  }
17328
17272
  if (rf & 2) {
17329
17273
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
17330
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
17274
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
17331
17275
  i0__namespace.ɵɵadvance(3);
17332
17276
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
17333
17277
  }
@@ -17384,11 +17328,11 @@
17384
17328
  var ctx_r0 = i0__namespace.ɵɵnextContext();
17385
17329
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
17386
17330
  i0__namespace.ɵɵadvance(1);
17387
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
17331
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
17388
17332
  i0__namespace.ɵɵadvance(3);
17389
17333
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
17390
17334
  i0__namespace.ɵɵadvance(2);
17391
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
17335
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
17392
17336
  i0__namespace.ɵɵadvance(5);
17393
17337
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
17394
17338
  i0__namespace.ɵɵadvance(2);
@@ -17822,7 +17766,7 @@
17822
17766
  i0__namespace.ɵɵadvance(4);
17823
17767
  i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
17824
17768
  i0__namespace.ɵɵadvance(4);
17825
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
17769
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
17826
17770
  i0__namespace.ɵɵadvance(1);
17827
17771
  i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
17828
17772
  i0__namespace.ɵɵadvance(18);
@@ -18529,7 +18473,7 @@
18529
18473
  i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
18530
18474
  }
18531
18475
  }
18532
- var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
18476
+ var _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
18533
18477
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
18534
18478
  if (rf & 1) {
18535
18479
  i0__namespace.ɵɵelementStart(0, "div", 7);
@@ -18541,7 +18485,7 @@
18541
18485
  }
18542
18486
  if (rf & 2) {
18543
18487
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
18544
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
18488
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
18545
18489
  i0__namespace.ɵɵadvance(1);
18546
18490
  i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
18547
18491
  i0__namespace.ɵɵadvance(2);
@@ -19428,7 +19372,7 @@
19428
19372
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
19429
19373
  }
19430
19374
  }
19431
- var _c0$E = function (a0) { return { "form-group-error": a0 }; };
19375
+ var _c0$D = function (a0) { return { "form-group-error": a0 }; };
19432
19376
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
19433
19377
  __extends(WriteMoneyGbpFieldComponent, _super);
19434
19378
  function WriteMoneyGbpFieldComponent() {
@@ -19458,7 +19402,7 @@
19458
19402
  i0__namespace.ɵɵelementEnd();
19459
19403
  }
19460
19404
  if (rf & 2) {
19461
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
19405
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
19462
19406
  i0__namespace.ɵɵadvance(1);
19463
19407
  i0__namespace.ɵɵproperty("for", ctx.id());
19464
19408
  i0__namespace.ɵɵadvance(1);
@@ -19613,7 +19557,7 @@
19613
19557
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 6, checkbox_r4.label));
19614
19558
  }
19615
19559
  }
19616
- var _c0$D = function (a0) { return { "error": a0 }; };
19560
+ var _c0$C = function (a0) { return { "error": a0 }; };
19617
19561
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
19618
19562
  __extends(WriteMultiSelectListFieldComponent, _super);
19619
19563
  function WriteMultiSelectListFieldComponent() {
@@ -19677,7 +19621,7 @@
19677
19621
  i0__namespace.ɵɵelementEnd();
19678
19622
  }
19679
19623
  if (rf & 2) {
19680
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
19624
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
19681
19625
  i0__namespace.ɵɵadvance(3);
19682
19626
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
19683
19627
  i0__namespace.ɵɵadvance(1);
@@ -19771,7 +19715,7 @@
19771
19715
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)), " ");
19772
19716
  }
19773
19717
  }
19774
- var _c0$C = function (a0) { return { "form-group-error": a0 }; };
19718
+ var _c0$B = function (a0) { return { "form-group-error": a0 }; };
19775
19719
  var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
19776
19720
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
19777
19721
  __extends(WriteNumberFieldComponent, _super);
@@ -19796,7 +19740,7 @@
19796
19740
  i0__namespace.ɵɵelementEnd();
19797
19741
  }
19798
19742
  if (rf & 2) {
19799
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
19743
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
19800
19744
  i0__namespace.ɵɵadvance(1);
19801
19745
  i0__namespace.ɵɵproperty("for", ctx.id());
19802
19746
  i0__namespace.ɵɵadvance(1);
@@ -20135,7 +20079,7 @@
20135
20079
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 1, "No results found."), " ");
20136
20080
  }
20137
20081
  }
20138
- var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
20082
+ var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
20139
20083
  function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) {
20140
20084
  if (rf & 1) {
20141
20085
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -20151,7 +20095,7 @@
20151
20095
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
20152
20096
  var tmp_0_0 = null;
20153
20097
  var tmp_2_0 = null;
20154
- 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));
20098
+ 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));
20155
20099
  i0__namespace.ɵɵadvance(2);
20156
20100
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
20157
20101
  i0__namespace.ɵɵadvance(2);
@@ -20649,7 +20593,7 @@
20649
20593
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
20650
20594
  }
20651
20595
  }
20652
- var _c0$A = function (a0) { return { "form-group-error": a0 }; };
20596
+ var _c0$z = function (a0) { return { "form-group-error": a0 }; };
20653
20597
  var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
20654
20598
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
20655
20599
  __extends(WritePhoneUKFieldComponent, _super);
@@ -20674,7 +20618,7 @@
20674
20618
  i0__namespace.ɵɵelementEnd();
20675
20619
  }
20676
20620
  if (rf & 2) {
20677
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$A, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
20621
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
20678
20622
  i0__namespace.ɵɵadvance(1);
20679
20623
  i0__namespace.ɵɵproperty("for", ctx.id());
20680
20624
  i0__namespace.ɵɵadvance(1);
@@ -20770,7 +20714,7 @@
20770
20714
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
20771
20715
  }
20772
20716
  }
20773
- var _c0$z = function (a0) { return { "form-group-error": a0 }; };
20717
+ var _c0$y = function (a0) { return { "form-group-error": a0 }; };
20774
20718
  var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
20775
20719
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
20776
20720
  __extends(WriteTextAreaFieldComponent, _super);
@@ -20806,7 +20750,7 @@
20806
20750
  i0__namespace.ɵɵelementEnd();
20807
20751
  }
20808
20752
  if (rf & 2) {
20809
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
20753
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
20810
20754
  i0__namespace.ɵɵadvance(1);
20811
20755
  i0__namespace.ɵɵproperty("for", ctx.id());
20812
20756
  i0__namespace.ɵɵadvance(1);
@@ -20902,7 +20846,7 @@
20902
20846
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
20903
20847
  }
20904
20848
  }
20905
- var _c0$y = function (a0) { return { "form-group-error": a0 }; };
20849
+ var _c0$x = function (a0) { return { "form-group-error": a0 }; };
20906
20850
  var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
20907
20851
  var WriteTextFieldComponent = /** @class */ (function (_super) {
20908
20852
  __extends(WriteTextFieldComponent, _super);
@@ -20932,7 +20876,7 @@
20932
20876
  i0__namespace.ɵɵelementEnd();
20933
20877
  }
20934
20878
  if (rf & 2) {
20935
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
20879
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
20936
20880
  i0__namespace.ɵɵadvance(1);
20937
20881
  i0__namespace.ɵɵproperty("for", ctx.id());
20938
20882
  i0__namespace.ɵɵadvance(1);
@@ -21145,7 +21089,7 @@
21145
21089
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
21146
21090
  }
21147
21091
  }
21148
- var _c0$x = function (a0) { return { selected: a0 }; };
21092
+ var _c0$w = function (a0) { return { selected: a0 }; };
21149
21093
  function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
21150
21094
  if (rf & 1) {
21151
21095
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -21158,7 +21102,7 @@
21158
21102
  if (rf & 2) {
21159
21103
  var value_r4 = ctx.$implicit;
21160
21104
  var ctx_r3 = i0__namespace.ɵɵnextContext();
21161
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, ctx_r3.yesNoControl.value === value_r4));
21105
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$w, ctx_r3.yesNoControl.value === value_r4));
21162
21106
  i0__namespace.ɵɵadvance(1);
21163
21107
  i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
21164
21108
  i0__namespace.ɵɵattribute("name", ctx_r3.id());
@@ -21326,7 +21270,7 @@
21326
21270
  }], null, null);
21327
21271
  })();
21328
21272
 
21329
- var _c0$w = ["fieldContainer"];
21273
+ var _c0$v = ["fieldContainer"];
21330
21274
  var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
21331
21275
  var FieldReadComponent = /** @class */ (function (_super) {
21332
21276
  __extends(FieldReadComponent, _super);
@@ -21379,7 +21323,7 @@
21379
21323
  FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
21380
21324
  FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
21381
21325
  if (rf & 1) {
21382
- i0__namespace.ɵɵviewQuery(_c0$w, 1, i0.ViewContainerRef);
21326
+ i0__namespace.ɵɵviewQuery(_c0$v, 1, i0.ViewContainerRef);
21383
21327
  }
21384
21328
  if (rf & 2) {
21385
21329
  var _t = void 0;
@@ -21420,7 +21364,7 @@
21420
21364
  }] });
21421
21365
  })();
21422
21366
 
21423
- var _c0$v = ["fieldContainer"];
21367
+ var _c0$u = ["fieldContainer"];
21424
21368
  var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
21425
21369
  var FieldWriteComponent = /** @class */ (function (_super) {
21426
21370
  __extends(FieldWriteComponent, _super);
@@ -21468,7 +21412,7 @@
21468
21412
  FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
21469
21413
  FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
21470
21414
  if (rf & 1) {
21471
- i0__namespace.ɵɵviewQuery(_c0$v, 3, i0.ViewContainerRef);
21415
+ i0__namespace.ɵɵviewQuery(_c0$u, 3, i0.ViewContainerRef);
21472
21416
  }
21473
21417
  if (rf & 2) {
21474
21418
  var _t = void 0;
@@ -21532,7 +21476,7 @@
21532
21476
  i0__namespace.ɵɵprojection(0);
21533
21477
  }
21534
21478
  }
21535
- var _c0$u = ["*"];
21479
+ var _c0$t = ["*"];
21536
21480
  var FieldReadLabelComponent = /** @class */ (function (_super) {
21537
21481
  __extends(FieldReadLabelComponent, _super);
21538
21482
  function FieldReadLabelComponent() {
@@ -21570,7 +21514,7 @@
21570
21514
  return FieldReadLabelComponent;
21571
21515
  }(AbstractFieldReadComponent));
21572
21516
  FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
21573
- FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$u, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
21517
+ FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$t, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
21574
21518
  if (rf & 1) {
21575
21519
  i0__namespace.ɵɵprojectionDef();
21576
21520
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -21609,7 +21553,7 @@
21609
21553
  i0__namespace.ɵɵelementContainer(0);
21610
21554
  }
21611
21555
  }
21612
- var _c0$t = function (a0) { return { cat: a0, level: 1 }; };
21556
+ var _c0$s = function (a0) { return { cat: a0, level: 1 }; };
21613
21557
  function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
21614
21558
  if (rf & 1) {
21615
21559
  i0__namespace.ɵɵelementContainerStart(0);
@@ -21621,7 +21565,7 @@
21621
21565
  i0__namespace.ɵɵnextContext();
21622
21566
  var _r1 = i0__namespace.ɵɵreference(13);
21623
21567
  i0__namespace.ɵɵadvance(1);
21624
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$t, cat_r3));
21568
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$s, cat_r3));
21625
21569
  }
21626
21570
  }
21627
21571
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) {
@@ -21863,7 +21807,7 @@
21863
21807
  i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
21864
21808
  }
21865
21809
  }
21866
- var _c0$s = [[["", "trigger", ""]]];
21810
+ var _c0$r = [[["", "trigger", ""]]];
21867
21811
  var _c1$8 = ["[trigger]"];
21868
21812
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
21869
21813
  function CaseFileViewOverlayMenuComponent() {
@@ -21881,7 +21825,7 @@
21881
21825
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
21882
21826
  CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$8, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
21883
21827
  if (rf & 1) {
21884
- i0__namespace.ɵɵprojectionDef(_c0$s);
21828
+ i0__namespace.ɵɵprojectionDef(_c0$r);
21885
21829
  i0__namespace.ɵɵelementStart(0, "div");
21886
21830
  i0__namespace.ɵɵelementStart(1, "button", 0, 1);
21887
21831
  i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
@@ -21973,20 +21917,38 @@
21973
21917
  }] });
21974
21918
  })();
21975
21919
 
21920
+ var CaseFileViewSortColumns;
21921
+ (function (CaseFileViewSortColumns) {
21922
+ CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
21923
+ CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
21924
+ })(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
21925
+
21976
21926
  var CaseFileViewFolderSortComponent = /** @class */ (function () {
21977
- function CaseFileViewFolderSortComponent() {
21927
+ function CaseFileViewFolderSortComponent(appConfig) {
21978
21928
  var _this = this;
21929
+ this.appConfig = appConfig;
21979
21930
  this.isOpen = false;
21980
21931
  this.sortAscending = new i0.EventEmitter();
21981
21932
  this.sortDescending = new i0.EventEmitter();
21982
21933
  this.overlayMenuItems = [
21983
- { actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
21984
- { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
21934
+ { actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
21935
+ { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
21985
21936
  ];
21986
21937
  }
21938
+ CaseFileViewFolderSortComponent.prototype.ngOnInit = function () {
21939
+ var _this = this;
21940
+ if (this.appConfig.getEnableCaseFileViewVersion1_1()) {
21941
+ this.overlayMenuItems = [
21942
+ { actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
21943
+ { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
21944
+ { actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
21945
+ { actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
21946
+ ];
21947
+ }
21948
+ };
21987
21949
  return CaseFileViewFolderSortComponent;
21988
21950
  }());
21989
- CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
21951
+ CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
21990
21952
  CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 3, vars: 3, consts: [[3, "title", "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button-icon"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) {
21991
21953
  if (rf & 1) {
21992
21954
  i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
@@ -22008,7 +21970,7 @@
22008
21970
  templateUrl: './case-file-view-folder-sort.component.html',
22009
21971
  styleUrls: ['./case-file-view-folder-sort.component.scss']
22010
21972
  }]
22011
- }], function () { return []; }, { sortAscending: [{
21973
+ }], function () { return [{ type: AbstractAppConfig }]; }, { sortAscending: [{
22012
21974
  type: i0.Output
22013
21975
  }], sortDescending: [{
22014
21976
  type: i0.Output
@@ -22065,48 +22027,56 @@
22065
22027
  enumerable: false,
22066
22028
  configurable: true
22067
22029
  });
22068
- DocumentTreeNode.prototype.sortChildrenAscending = function () {
22030
+ DocumentTreeNode.prototype.sortChildrenAscending = function (column, sortOrder) {
22031
+ var _this = this;
22069
22032
  var _a, _b;
22070
22033
  var sortAscending = function () {
22071
22034
  return function (a, b) {
22072
- var nameA = a.name.toUpperCase();
22073
- var nameB = b.name.toUpperCase();
22035
+ var nodeA = _this.getNodeToSort(a, column, sortOrder);
22036
+ var nodeB = _this.getNodeToSort(b, column, sortOrder);
22074
22037
  if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
22075
22038
  return 0;
22076
22039
  }
22077
- if (nameA < nameB) {
22040
+ if (!nodeA || !nodeB) {
22041
+ return 0;
22042
+ }
22043
+ if (nodeA < nodeB) {
22078
22044
  return -1;
22079
22045
  }
22080
- if (nameA > nameB) {
22046
+ if (nodeA > nodeB) {
22081
22047
  return 1;
22082
22048
  }
22083
22049
  };
22084
22050
  };
22085
22051
  (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
22086
22052
  (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
22087
- childNodes.sortChildrenAscending();
22053
+ childNodes.sortChildrenAscending(column, sortOrder);
22088
22054
  });
22089
22055
  };
22090
- DocumentTreeNode.prototype.sortChildrenDescending = function () {
22056
+ DocumentTreeNode.prototype.sortChildrenDescending = function (column, sortOrder) {
22057
+ var _this = this;
22091
22058
  var _a, _b;
22092
22059
  var sortDescending = function () {
22093
22060
  return function (a, b) {
22094
- var nameA = a.name.toUpperCase();
22095
- var nameB = b.name.toUpperCase();
22061
+ var nodeA = _this.getNodeToSort(a, column, sortOrder);
22062
+ var nodeB = _this.getNodeToSort(b, column, sortOrder);
22096
22063
  if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
22097
22064
  return 0;
22098
22065
  }
22099
- if (nameA > nameB) {
22066
+ if (!nodeA || !nodeB) {
22067
+ return 0;
22068
+ }
22069
+ if (nodeA > nodeB) {
22100
22070
  return -1;
22101
22071
  }
22102
- if (nameA < nameB) {
22072
+ if (nodeA < nodeB) {
22103
22073
  return 1;
22104
22074
  }
22105
22075
  };
22106
22076
  };
22107
22077
  (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
22108
22078
  (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
22109
- childNodes.sortChildrenDescending();
22079
+ childNodes.sortChildrenDescending(column, sortOrder);
22110
22080
  });
22111
22081
  };
22112
22082
  Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
@@ -22132,6 +22102,24 @@
22132
22102
  enumerable: false,
22133
22103
  configurable: true
22134
22104
  });
22105
+ DocumentTreeNode.prototype.getNodeToSort = function (node, column, sortOrder) {
22106
+ if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
22107
+ return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
22108
+ : '';
22109
+ }
22110
+ if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
22111
+ if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
22112
+ return new Date(node.upload_timestamp);
22113
+ }
22114
+ if (sortOrder === exports.SortOrder.ASCENDING) {
22115
+ return new Date(9999, 12, 31);
22116
+ }
22117
+ if (sortOrder === exports.SortOrder.DESCENDING) {
22118
+ return new Date(1111, 1, 1);
22119
+ }
22120
+ }
22121
+ return '';
22122
+ };
22135
22123
  return DocumentTreeNode;
22136
22124
  }());
22137
22125
  __decorate([
@@ -22162,10 +22150,14 @@
22162
22150
  i0__namespace.ɵɵelementEnd();
22163
22151
  i0__namespace.ɵɵelementStart(4, "span", 16);
22164
22152
  i0__namespace.ɵɵtext(5);
22153
+ i0__namespace.ɵɵelement(6, "br");
22154
+ i0__namespace.ɵɵelementStart(7, "span", 17);
22155
+ i0__namespace.ɵɵtext(8);
22165
22156
  i0__namespace.ɵɵelementEnd();
22166
- i0__namespace.ɵɵelementStart(6, "div", 17);
22167
- i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
22168
- i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
22157
+ i0__namespace.ɵɵelementEnd();
22158
+ i0__namespace.ɵɵelementStart(9, "div", 18);
22159
+ i0__namespace.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
22160
+ i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
22169
22161
  i0__namespace.ɵɵelementEnd();
22170
22162
  i0__namespace.ɵɵelementEnd();
22171
22163
  i0__namespace.ɵɵelementEnd();
@@ -22177,27 +22169,29 @@
22177
22169
  i0__namespace.ɵɵadvance(1);
22178
22170
  i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
22179
22171
  i0__namespace.ɵɵadvance(4);
22180
- i0__namespace.ɵɵtextInterpolate(node_r4.name);
22172
+ i0__namespace.ɵɵtextInterpolate1(" ", node_r4.name, " ");
22173
+ i0__namespace.ɵɵadvance(3);
22174
+ i0__namespace.ɵɵtextInterpolate(node_r4.upload_timestamp);
22181
22175
  i0__namespace.ɵɵadvance(2);
22182
22176
  i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
22183
22177
  }
22184
22178
  }
22185
22179
  function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
22186
22180
  if (rf & 1) {
22187
- i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
22188
- i0__namespace.ɵɵelementStart(1, "button", 20);
22189
- i0__namespace.ɵɵelementStart(2, "div", 21);
22190
- i0__namespace.ɵɵelement(3, "img", 22);
22191
- i0__namespace.ɵɵelementStart(4, "span", 23);
22181
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
22182
+ i0__namespace.ɵɵelementStart(1, "button", 21);
22183
+ i0__namespace.ɵɵelementStart(2, "div", 22);
22184
+ i0__namespace.ɵɵelement(3, "img", 23);
22185
+ i0__namespace.ɵɵelementStart(4, "span", 24);
22192
22186
  i0__namespace.ɵɵtext(5);
22193
22187
  i0__namespace.ɵɵelementEnd();
22194
22188
  i0__namespace.ɵɵelementEnd();
22195
- i0__namespace.ɵɵelementStart(6, "span", 24);
22189
+ i0__namespace.ɵɵelementStart(6, "span", 25);
22196
22190
  i0__namespace.ɵɵtext(7);
22197
22191
  i0__namespace.ɵɵelementEnd();
22198
22192
  i0__namespace.ɵɵelementEnd();
22199
22193
  i0__namespace.ɵɵelementStart(8, "div");
22200
- i0__namespace.ɵɵelementContainer(9, 25);
22194
+ i0__namespace.ɵɵelementContainer(9, 26);
22201
22195
  i0__namespace.ɵɵelementEnd();
22202
22196
  i0__namespace.ɵɵelementEnd();
22203
22197
  }
@@ -22222,7 +22216,7 @@
22222
22216
  i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
22223
22217
  i0__namespace.ɵɵelementStart(2, "div");
22224
22218
  i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
22225
- i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
22219
+ i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
22226
22220
  i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
22227
22221
  i0__namespace.ɵɵelementEnd();
22228
22222
  i0__namespace.ɵɵelementEnd();
@@ -22240,17 +22234,18 @@
22240
22234
  }
22241
22235
  var MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
22242
22236
  var CaseFileViewFolderComponent = /** @class */ (function () {
22243
- function CaseFileViewFolderComponent(windowService, router, documentManagementService, dialog) {
22237
+ function CaseFileViewFolderComponent(windowService, router, documentManagementService, dialog, appConfig) {
22244
22238
  this.windowService = windowService;
22245
22239
  this.router = router;
22246
22240
  this.documentManagementService = documentManagementService;
22247
22241
  this.dialog = dialog;
22242
+ this.appConfig = appConfig;
22248
22243
  this.clickedDocument = new i0.EventEmitter();
22249
22244
  this.moveDocument = new i0.EventEmitter();
22250
22245
  this.categories = [];
22251
22246
  this.getChildren = function (node) { return rxjs.of(node.children); };
22252
22247
  this.nestedChildren = function (_, nodeData) { return nodeData.children; };
22253
- this.nestedTreeControl = new i7.NestedTreeControl(this.getChildren);
22248
+ this.nestedTreeControl = new i8.NestedTreeControl(this.getChildren);
22254
22249
  }
22255
22250
  Object.defineProperty(CaseFileViewFolderComponent.prototype, "documentCount", {
22256
22251
  get: function () {
@@ -22309,6 +22304,7 @@
22309
22304
  }, []);
22310
22305
  };
22311
22306
  CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
22307
+ var _this = this;
22312
22308
  var documentsToReturn = [];
22313
22309
  documents.forEach(function (document) {
22314
22310
  var documentTreeNode = new DocumentTreeNode();
@@ -22317,11 +22313,14 @@
22317
22313
  documentTreeNode.document_filename = document.document_filename;
22318
22314
  documentTreeNode.document_binary_url = document.document_binary_url;
22319
22315
  documentTreeNode.attribute_path = document.attribute_path;
22316
+ documentTreeNode.upload_timestamp = _this.appConfig.getEnableCaseFileViewVersion1_1()
22317
+ && document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
22320
22318
  documentsToReturn.push(documentTreeNode);
22321
22319
  });
22322
22320
  return documentsToReturn;
22323
22321
  };
22324
22322
  CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
22323
+ var _this = this;
22325
22324
  var documents = [];
22326
22325
  uncategorisedDocuments.forEach(function (document) {
22327
22326
  var documentTreeNode = new DocumentTreeNode();
@@ -22330,6 +22329,8 @@
22330
22329
  documentTreeNode.document_filename = document.document_filename;
22331
22330
  documentTreeNode.document_binary_url = document.document_binary_url;
22332
22331
  documentTreeNode.attribute_path = document.attribute_path;
22332
+ documentTreeNode.upload_timestamp = _this.appConfig.getEnableCaseFileViewVersion1_1()
22333
+ && document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
22333
22334
  documents.push(documentTreeNode);
22334
22335
  });
22335
22336
  var uncategorisedNode = new DocumentTreeNode();
@@ -22384,16 +22385,16 @@
22384
22385
  return;
22385
22386
  }
22386
22387
  };
22387
- CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
22388
+ CaseFileViewFolderComponent.prototype.sortDataSourceAscending = function (column) {
22388
22389
  var sortedData = this.nestedDataSource.map(function (item) {
22389
- item.sortChildrenAscending();
22390
+ item.sortChildrenAscending(column, exports.SortOrder.ASCENDING);
22390
22391
  return item;
22391
22392
  });
22392
22393
  this.updateNodeData(sortedData);
22393
22394
  };
22394
- CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
22395
+ CaseFileViewFolderComponent.prototype.sortDataSourceDescending = function (column) {
22395
22396
  var sortedData = this.nestedDataSource.map(function (item) {
22396
- item.sortChildrenDescending();
22397
+ item.sortChildrenDescending(column, exports.SortOrder.DESCENDING);
22397
22398
  return item;
22398
22399
  });
22399
22400
  this.updateNodeData(sortedData);
@@ -22453,8 +22454,8 @@
22453
22454
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
22454
22455
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
22455
22456
  CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
22456
- CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
22457
- CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
22457
+ CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
22458
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
22458
22459
  if (rf & 1) {
22459
22460
  i0__namespace.ɵɵelementStart(0, "div", 0);
22460
22461
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -22467,7 +22468,7 @@
22467
22468
  i0__namespace.ɵɵelementEnd();
22468
22469
  i0__namespace.ɵɵelementStart(6, "div");
22469
22470
  i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
22470
- i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener() { return ctx.sortDataSourceDescAlphabetically(); });
22471
+ i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener($event) { return ctx.sortDataSourceAscending($event); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener($event) { return ctx.sortDataSourceDescending($event); });
22471
22472
  i0__namespace.ɵɵelementEnd();
22472
22473
  i0__namespace.ɵɵelementEnd();
22473
22474
  i0__namespace.ɵɵelementEnd();
@@ -22481,7 +22482,7 @@
22481
22482
  i0__namespace.ɵɵadvance(3);
22482
22483
  i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
22483
22484
  }
22484
- }, directives: [i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlName, CaseFileViewFolderSortComponent, i2__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
22485
+ }, directives: [i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlName, CaseFileViewFolderSortComponent, i2__namespace.NgIf, i8__namespace.CdkTree, i8__namespace.CdkTreeNodeDef, i8__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i8__namespace.CdkTreeNodeToggle, i8__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
22485
22486
  (function () {
22486
22487
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
22487
22488
  type: i0.Component,
@@ -22490,7 +22491,7 @@
22490
22491
  templateUrl: './case-file-view-folder.component.html',
22491
22492
  styleUrls: ['./case-file-view-folder.component.scss'],
22492
22493
  }]
22493
- }], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }]; }, { categoriesAndDocuments: [{
22494
+ }], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: AbstractAppConfig }]; }, { categoriesAndDocuments: [{
22494
22495
  type: i0.Input
22495
22496
  }], allowMoving: [{
22496
22497
  type: i0.Input
@@ -22551,7 +22552,7 @@
22551
22552
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.flagCommentsCharLimitErrorMessage), " ");
22552
22553
  }
22553
22554
  }
22554
- var _c0$r = function (a0) { return { "form-group-error": a0 }; };
22555
+ var _c0$q = function (a0) { return { "form-group-error": a0 }; };
22555
22556
  var AddCommentsComponent = /** @class */ (function () {
22556
22557
  function AddCommentsComponent() {
22557
22558
  this.optional = false;
@@ -22636,7 +22637,7 @@
22636
22637
  if (rf & 2) {
22637
22638
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
22638
22639
  i0__namespace.ɵɵadvance(2);
22639
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c0$r, ctx.errorMessages.length > 0));
22640
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c0$q, ctx.errorMessages.length > 0));
22640
22641
  i0__namespace.ɵɵadvance(2);
22641
22642
  i0__namespace.ɵɵproperty("for", ctx.flagCommentsControlName);
22642
22643
  i0__namespace.ɵɵadvance(1);
@@ -23010,7 +23011,7 @@
23010
23011
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "Next"));
23011
23012
  }
23012
23013
  }
23013
- var _c0$q = function (a0) { return { "form-group-error": a0 }; };
23014
+ var _c0$p = function (a0) { return { "form-group-error": a0 }; };
23014
23015
  var ManageCaseFlagsComponent = /** @class */ (function () {
23015
23016
  function ManageCaseFlagsComponent() {
23016
23017
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -23171,7 +23172,7 @@
23171
23172
  if (rf & 2) {
23172
23173
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
23173
23174
  i0__namespace.ɵɵadvance(1);
23174
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$q, ctx.errorMessages.length > 0));
23175
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$p, ctx.errorMessages.length > 0));
23175
23176
  i0__namespace.ɵɵadvance(4);
23176
23177
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
23177
23178
  i0__namespace.ɵɵadvance(2);
@@ -23282,7 +23283,7 @@
23282
23283
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
23283
23284
  }
23284
23285
  }
23285
- var _c0$p = function (a0) { return { "form-group-error": a0 }; };
23286
+ var _c0$o = function (a0) { return { "form-group-error": a0 }; };
23286
23287
  function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) {
23287
23288
  if (rf & 1) {
23288
23289
  i0__namespace.ɵɵelementStart(0, "div", 25);
@@ -23299,7 +23300,7 @@
23299
23300
  if (rf & 2) {
23300
23301
  var ctx_r5 = i0__namespace.ɵɵnextContext();
23301
23302
  i0__namespace.ɵɵadvance(1);
23302
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
23303
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$o, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
23303
23304
  i0__namespace.ɵɵadvance(2);
23304
23305
  i0__namespace.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
23305
23306
  i0__namespace.ɵɵadvance(1);
@@ -23474,7 +23475,7 @@
23474
23475
  var _r2 = i0__namespace.ɵɵreference(12);
23475
23476
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
23476
23477
  i0__namespace.ɵɵadvance(1);
23477
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
23478
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$o, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
23478
23479
  i0__namespace.ɵɵadvance(2);
23479
23480
  i0__namespace.ɵɵproperty("for", ctx.languageSearchTermControlName);
23480
23481
  i0__namespace.ɵɵadvance(1);
@@ -23619,7 +23620,7 @@
23619
23620
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "Next"));
23620
23621
  }
23621
23622
  }
23622
- var _c0$o = function (a0) { return { "form-group-error": a0 }; };
23623
+ var _c0$n = function (a0) { return { "form-group-error": a0 }; };
23623
23624
  var SelectFlagLocationComponent = /** @class */ (function () {
23624
23625
  function SelectFlagLocationComponent() {
23625
23626
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -23709,7 +23710,7 @@
23709
23710
  if (rf & 2) {
23710
23711
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
23711
23712
  i0__namespace.ɵɵadvance(1);
23712
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$o, ctx.errorMessages.length > 0));
23713
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$n, ctx.errorMessages.length > 0));
23713
23714
  i0__namespace.ɵɵadvance(4);
23714
23715
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
23715
23716
  i0__namespace.ɵɵadvance(2);
@@ -23791,7 +23792,7 @@
23791
23792
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
23792
23793
  }
23793
23794
  }
23794
- var _c0$n = function (a0) { return { "form-group-error": a0 }; };
23795
+ var _c0$m = function (a0) { return { "form-group-error": a0 }; };
23795
23796
  var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
23796
23797
  function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
23797
23798
  if (rf & 1) {
@@ -23808,7 +23809,7 @@
23808
23809
  if (rf & 2) {
23809
23810
  var ctx_r2 = i0__namespace.ɵɵnextContext();
23810
23811
  i0__namespace.ɵɵadvance(1);
23811
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$n, ctx_r2.flagTypeErrorMessage.length > 0));
23812
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$m, ctx_r2.flagTypeErrorMessage.length > 0));
23812
23813
  i0__namespace.ɵɵadvance(3);
23813
23814
  i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
23814
23815
  i0__namespace.ɵɵadvance(1);
@@ -23977,7 +23978,7 @@
23977
23978
  if (rf & 2) {
23978
23979
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
23979
23980
  i0__namespace.ɵɵadvance(1);
23980
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$n, ctx.flagTypeNotSelectedErrorMessage.length > 0));
23981
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$m, ctx.flagTypeNotSelectedErrorMessage.length > 0));
23981
23982
  i0__namespace.ɵɵadvance(4);
23982
23983
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
23983
23984
  i0__namespace.ɵɵadvance(1);
@@ -24052,7 +24053,7 @@
24052
24053
  i0__namespace.ɵɵelementEnd();
24053
24054
  }
24054
24055
  }
24055
- var _c0$m = function (a0) { return { "form-group-error": a0 }; };
24056
+ var _c0$l = function (a0) { return { "form-group-error": a0 }; };
24056
24057
  var _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
24057
24058
  var UpdateFlagComponent = /** @class */ (function () {
24058
24059
  function UpdateFlagComponent() {
@@ -24174,7 +24175,7 @@
24174
24175
  if (rf & 2) {
24175
24176
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
24176
24177
  i0__namespace.ɵɵadvance(2);
24177
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$m, ctx.errorMessages.length > 0));
24178
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$l, ctx.errorMessages.length > 0));
24178
24179
  i0__namespace.ɵɵadvance(2);
24179
24180
  i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
24180
24181
  i0__namespace.ɵɵadvance(1);
@@ -24240,7 +24241,7 @@
24240
24241
  i0__namespace.ɵɵproperty("caseField", field_r1)("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
24241
24242
  }
24242
24243
  }
24243
- var _c0$l = function (a0, a4, a5) { return [a0, false, undefined, true, a4, a5]; };
24244
+ var _c0$k = function (a0, a4, a5) { return [a0, false, undefined, true, a4, a5]; };
24244
24245
  /**
24245
24246
  * Display a complex type fields as a list of values without labels.
24246
24247
  * This is intended for rendering of Check Your Answer page.
@@ -24264,7 +24265,7 @@
24264
24265
  }
24265
24266
  if (rf & 2) {
24266
24267
  i0__namespace.ɵɵadvance(1);
24267
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(2, 1, i0__namespace.ɵɵpureFunction3(8, _c0$l, ctx.caseField, ctx.topLevelFormGroup, ctx.id())));
24268
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(2, 1, i0__namespace.ɵɵpureFunction3(8, _c0$k, ctx.caseField, ctx.topLevelFormGroup, ctx.id())));
24268
24269
  }
24269
24270
  }, styles: ["dl.complex-raw[_ngcontent-%COMP%]{list-style-type:none;margin:5px 0 10px}dl.complex-raw[_ngcontent-%COMP%] dl.complex-raw[_ngcontent-%COMP%]{padding-left:2ch}dl.complex-raw[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{font-weight:700}"] });
24270
24271
  var ɵReadComplexFieldRawComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent);
@@ -24345,7 +24346,6 @@
24345
24346
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(2, 2, field_r1))("ngIfElse", _r3);
24346
24347
  }
24347
24348
  }
24348
- var _c0$k = function (a0, a4, a6) { return [a0, false, undefined, true, a4, undefined, a6]; };
24349
24349
  var ReadComplexFieldTableComponent = /** @class */ (function (_super) {
24350
24350
  __extends(ReadComplexFieldTableComponent, _super);
24351
24351
  function ReadComplexFieldTableComponent() {
@@ -24356,7 +24356,7 @@
24356
24356
  return ReadComplexFieldTableComponent;
24357
24357
  }(AbstractFieldReadComponent));
24358
24358
  ReadComplexFieldTableComponent.ɵfac = function ReadComplexFieldTableComponent_Factory(t) { return ɵReadComplexFieldTableComponent_BaseFactory(t || ReadComplexFieldTableComponent); };
24359
- ReadComplexFieldTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 11, vars: 16, consts: [[1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["SimpleRow", ""], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) {
24359
+ ReadComplexFieldTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 11, vars: 9, consts: [[1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["SimpleRow", ""], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) {
24360
24360
  if (rf & 1) {
24361
24361
  i0__namespace.ɵɵelementStart(0, "div", 0);
24362
24362
  i0__namespace.ɵɵelementStart(1, "dl", 1);
@@ -24380,7 +24380,7 @@
24380
24380
  i0__namespace.ɵɵadvance(4);
24381
24381
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 2, ctx.caseField.label));
24382
24382
  i0__namespace.ɵɵadvance(5);
24383
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(10, 4, i0__namespace.ɵɵpureFunction3(12, _c0$k, ctx.caseField, ctx.topLevelFormGroup, ctx.idPrefix)));
24383
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind4(10, 4, ctx.caseField, false, undefined, true));
24384
24384
  }
24385
24385
  }, styles: [".complex-panel[_ngcontent-%COMP%]{margin:13px 0;border:1px solid #bfc1c3}.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{background-color:#dee0e2;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;padding:5px 5px 2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{vertical-align:top}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%], .complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%]{border-bottom:none}.complex-panel[_ngcontent-%COMP%] .complex-panel-simple-field[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-left:5px;width:295px}.complex-panel[_ngcontent-%COMP%] .complex-panel-compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px}"] });
24386
24386
  var ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent);
@@ -24397,13 +24397,6 @@
24397
24397
  }] });
24398
24398
  })();
24399
24399
 
24400
- var SortOrder;
24401
- (function (SortOrder) {
24402
- SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
24403
- SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
24404
- SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
24405
- })(SortOrder || (SortOrder = {}));
24406
-
24407
24400
  function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) {
24408
24401
  if (rf & 1) {
24409
24402
  var _r4_1 = i0__namespace.ɵɵgetCurrentView();
@@ -24677,7 +24670,7 @@
24677
24670
  return _this;
24678
24671
  }
24679
24672
  ReadComplexFieldCollectionTableComponent.isSortAscending = function (column) {
24680
- return !(column.sortOrder === SortOrder.UNSORTED || column.sortOrder === SortOrder.DESCENDING);
24673
+ return !(column.sortOrder === exports.SortOrder.UNSORTED || column.sortOrder === exports.SortOrder.DESCENDING);
24681
24674
  };
24682
24675
  ReadComplexFieldCollectionTableComponent.prototype.ngOnInit = function () {
24683
24676
  _super.prototype.ngOnInit.call(this);
@@ -24735,19 +24728,19 @@
24735
24728
  });
24736
24729
  };
24737
24730
  ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
24738
- var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
24739
- || this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
24731
+ var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.UNSORTED
24732
+ || this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.DESCENDING;
24740
24733
  // tslint:disable-next-line:switch-default
24741
24734
  switch (this.columnsHorizontalLabel[column].type.type) {
24742
24735
  case 'Number':
24743
24736
  case 'MoneyGBP': {
24744
24737
  if (shouldSortInAscendingOrder) {
24745
24738
  this.rows.sort(function (a, b) { return a[column] - b[column]; });
24746
- this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
24739
+ this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
24747
24740
  }
24748
24741
  else {
24749
24742
  this.rows.sort(function (a, b) { return b[column] - a[column]; });
24750
- this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
24743
+ this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
24751
24744
  }
24752
24745
  break;
24753
24746
  }
@@ -24764,11 +24757,11 @@
24764
24757
  {
24765
24758
  if (shouldSortInAscendingOrder) {
24766
24759
  this.rows.sort(function (a, b) { return a[column] < b[column] ? -1 : a[column] > b[column] ? 1 : 0; });
24767
- this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
24760
+ this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
24768
24761
  }
24769
24762
  else {
24770
24763
  this.rows.sort(function (a, b) { return a[column] < b[column] ? 1 : a[column] > b[column] ? -1 : 0; });
24771
- this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
24764
+ this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
24772
24765
  }
24773
24766
  }
24774
24767
  break;
@@ -24784,7 +24777,7 @@
24784
24777
  var id = _c.value;
24785
24778
  var trimmedId = id.trim();
24786
24779
  labelsHorizontal[trimmedId] = allLabels[trimmedId];
24787
- labelsHorizontal[trimmedId].sortOrder = SortOrder.UNSORTED;
24780
+ labelsHorizontal[trimmedId].sortOrder = exports.SortOrder.UNSORTED;
24788
24781
  delete labelsVertical[trimmedId];
24789
24782
  }
24790
24783
  }
@@ -26414,17 +26407,17 @@
26414
26407
  /**
26415
26408
  * Complex type should have at least on simple field descendant with a value.
26416
26409
  */
26417
- ReadFieldsFilterPipe.isValidComplex = function (field, values, checkConditionalShowAgainst) {
26410
+ ReadFieldsFilterPipe.isValidComplex = function (field, values) {
26418
26411
  values = values || {};
26419
26412
  var type = field.field_type;
26420
26413
  var value = ReadFieldsFilterPipe.getValue(field, values);
26421
26414
  var hasChildrenWithValue = type.complex_fields.find(function (f) {
26422
- var willKeep = ReadFieldsFilterPipe.keepField(f, value, true, checkConditionalShowAgainst);
26423
- return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst).hidden !== true;
26415
+ var willKeep = ReadFieldsFilterPipe.keepField(f, value, true);
26416
+ return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, value).hidden !== true;
26424
26417
  });
26425
26418
  return !!hasChildrenWithValue;
26426
26419
  };
26427
- ReadFieldsFilterPipe.isValidCollection = function (field, values, checkConditionalShowAgainst) {
26420
+ ReadFieldsFilterPipe.isValidCollection = function (field, values) {
26428
26421
  // if field is collection and it has complex/collection child field; parent field doesnt have value defined
26429
26422
  if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
26430
26423
  return true;
@@ -26438,7 +26431,7 @@
26438
26431
  value: item.value,
26439
26432
  label: null,
26440
26433
  });
26441
- return ReadFieldsFilterPipe.isValidComplex(complexField, undefined, checkConditionalShowAgainst);
26434
+ return ReadFieldsFilterPipe.isValidComplex(complexField);
26442
26435
  });
26443
26436
  }
26444
26437
  return isNotEmpty;
@@ -26450,11 +26443,11 @@
26450
26443
  ReadFieldsFilterPipe.isCompound = function (field) {
26451
26444
  return ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type];
26452
26445
  };
26453
- ReadFieldsFilterPipe.isValidCompound = function (field, value, checkConditionalShowAgainst) {
26446
+ ReadFieldsFilterPipe.isValidCompound = function (field, value) {
26454
26447
  return ReadFieldsFilterPipe.isCompound(field)
26455
- && ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value, checkConditionalShowAgainst);
26448
+ && ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
26456
26449
  };
26457
- ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels, checkConditionalShowAgainst) {
26450
+ ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels) {
26458
26451
  if (ignoreLabels === void 0) { ignoreLabels = false; }
26459
26452
  // We shouldn't ditch labels.
26460
26453
  if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
@@ -26466,7 +26459,7 @@
26466
26459
  }
26467
26460
  value = value || {};
26468
26461
  if (ReadFieldsFilterPipe.isCompound(field)) {
26469
- return ReadFieldsFilterPipe.isValidCompound(field, value, checkConditionalShowAgainst);
26462
+ return ReadFieldsFilterPipe.isValidCompound(field, value);
26470
26463
  }
26471
26464
  return !ReadFieldsFilterPipe.isEmpty(field.value)
26472
26465
  || !ReadFieldsFilterPipe.isEmpty(value[field.id]);
@@ -26509,7 +26502,7 @@
26509
26502
  /**
26510
26503
  * Filter out fields having no data to display and harmonise field values coming parent's value.
26511
26504
  */
26512
- ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path, idPrefix) {
26505
+ ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path) {
26513
26506
  if (setupHidden === void 0) { setupHidden = false; }
26514
26507
  if (!complexField || !complexField.field_type) {
26515
26508
  return [];
@@ -26519,15 +26512,8 @@
26519
26512
  var checkConditionalShowAgainst = values;
26520
26513
  var formGroupAvailable = false;
26521
26514
  if (formGroup) {
26522
- checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
26515
+ checkConditionalShowAgainst = formGroup.value;
26523
26516
  formGroupAvailable = true;
26524
- if (idPrefix) {
26525
- var fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
26526
- if (checkConditionalShowAgainst[fieldId]) {
26527
- checkConditionalShowAgainst = values;
26528
- formGroupAvailable = false;
26529
- }
26530
- }
26531
26517
  }
26532
26518
  return fields
26533
26519
  .map(function (f) {
@@ -26547,7 +26533,7 @@
26547
26533
  }
26548
26534
  return f;
26549
26535
  })
26550
- .filter(function (f) { return keepEmpty || ReadFieldsFilterPipe.keepField(f, undefined, false, checkConditionalShowAgainst); });
26536
+ .filter(function (f) { return keepEmpty || ReadFieldsFilterPipe.keepField(f); });
26551
26537
  };
26552
26538
  return ReadFieldsFilterPipe;
26553
26539
  }());
@@ -26710,7 +26696,7 @@
26710
26696
  }
26711
26697
  return searchResults.sort(function (a, b) {
26712
26698
  return sortParameters.comparator.compare(a, b)
26713
- * (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
26699
+ * (sortParameters.sortOrder === exports.SortOrder.DESCENDING ? 1 : -1);
26714
26700
  });
26715
26701
  };
26716
26702
  return SortSearchResultPipe;
@@ -27006,12 +26992,12 @@
27006
26992
  i3$1.MatInputModule,
27007
26993
  i5$1.MatDatepickerModule,
27008
26994
  i5.MatAutocompleteModule,
27009
- i7.CdkTreeModule,
26995
+ i8.CdkTreeModule,
27010
26996
  i1$5.OverlayModule,
27011
26997
  i3.PaymentLibModule,
27012
26998
  i2$2.ScrollToModule.forRoot(),
27013
26999
  i1.RpxTranslationModule.forChild(),
27014
- i7.CdkTreeModule,
27000
+ i8.CdkTreeModule,
27015
27001
  i1$5.OverlayModule,
27016
27002
  i1$3.MatDialogModule,
27017
27003
  i12.MediaViewerModule,
@@ -27154,9 +27140,9 @@
27154
27140
  i3$1.MatInputModule,
27155
27141
  i5$1.MatDatepickerModule,
27156
27142
  i5.MatAutocompleteModule,
27157
- i7.CdkTreeModule,
27143
+ i8.CdkTreeModule,
27158
27144
  i1$5.OverlayModule,
27159
- i3.PaymentLibModule, i2__namespace$2.ScrollToModule, i1__namespace.RpxTranslationModule, i7.CdkTreeModule,
27145
+ i3.PaymentLibModule, i2__namespace$2.ScrollToModule, i1__namespace.RpxTranslationModule, i8.CdkTreeModule,
27160
27146
  i1$5.OverlayModule,
27161
27147
  i1$3.MatDialogModule,
27162
27148
  i12.MediaViewerModule,
@@ -27299,12 +27285,12 @@
27299
27285
  i3$1.MatInputModule,
27300
27286
  i5$1.MatDatepickerModule,
27301
27287
  i5.MatAutocompleteModule,
27302
- i7.CdkTreeModule,
27288
+ i8.CdkTreeModule,
27303
27289
  i1$5.OverlayModule,
27304
27290
  i3.PaymentLibModule,
27305
27291
  i2$2.ScrollToModule.forRoot(),
27306
27292
  i1.RpxTranslationModule.forChild(),
27307
- i7.CdkTreeModule,
27293
+ i8.CdkTreeModule,
27308
27294
  i1$5.OverlayModule,
27309
27295
  i1$3.MatDialogModule,
27310
27296
  i12.MediaViewerModule,
@@ -28678,8 +28664,7 @@
28678
28664
  JudicialworkerService,
28679
28665
  CaseworkerService,
28680
28666
  SessionStorageService,
28681
- EventCompletionStateMachineService,
28682
- ValidPageListCaseFieldsService
28667
+ EventCompletionStateMachineService
28683
28668
  ], imports: [[
28684
28669
  i2.CommonModule,
28685
28670
  i1$1.RouterModule,
@@ -28795,8 +28780,7 @@
28795
28780
  JudicialworkerService,
28796
28781
  CaseworkerService,
28797
28782
  SessionStorageService,
28798
- EventCompletionStateMachineService,
28799
- ValidPageListCaseFieldsService
28783
+ EventCompletionStateMachineService
28800
28784
  ]
28801
28785
  }]
28802
28786
  }], null, null);
@@ -32418,7 +32402,6 @@
32418
32402
  var targetTabIndex = this.tabGroup._tabs.toArray().findIndex(function (tab) { return tab.textLabel === triggerOutputEventText; });
32419
32403
  if (targetTabIndex > -1) {
32420
32404
  this.selectedTabIndex = targetTabIndex;
32421
- this.tabGroup.selectedIndex = targetTabIndex;
32422
32405
  }
32423
32406
  };
32424
32407
  CaseFullAccessViewComponent.prototype.hasActiveCaseFlags = function () {