@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-document-tree-functionalities-v2 → 5.0.25-case-file-sort-documents-v2

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 (43) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +696 -250
  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/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +19 -15
  6. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
  7. 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 +44 -0
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +298 -118
  9. package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +3 -1
  10. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.js +2 -0
  11. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +90 -0
  12. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/index.js +2 -0
  13. package/esm2015/lib/shared/components/palette/palette.module.js +18 -5
  14. package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
  15. package/esm2015/lib/shared/components/search-result/search-result.component.js +43 -43
  16. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +92 -0
  17. package/esm2015/lib/shared/domain/case-file-view/index.js +2 -2
  18. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +637 -229
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  20. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +1 -1
  21. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  22. 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 +14 -0
  23. 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 -0
  24. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +6 -10
  25. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  26. package/lib/shared/components/palette/case-file-view/components/index.d.ts +2 -0
  27. package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -1
  28. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts +6 -0
  29. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts.map +1 -0
  30. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +15 -0
  31. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -0
  32. package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts +2 -0
  33. package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts.map +1 -0
  34. package/lib/shared/components/palette/palette.module.d.ts +25 -22
  35. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  36. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +10 -0
  37. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -0
  38. package/lib/shared/domain/case-file-view/index.d.ts +1 -1
  39. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +0 -6
  42. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +0 -11
  43. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
- typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
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.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i3, i1$5, i2, i4, momentAdapter, i5, i6, i5$1, i6$1, i3$1, i6$2, input, i1$6, i10) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/cdk/overlay'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/cdk/overlay', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
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.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.cdk.overlay, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
5
+ })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i2, i1$5, i1$6, i2$1, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -33,17 +33,18 @@
33
33
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
34
34
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
35
35
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
36
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
37
- var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
38
36
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
37
+ var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
38
+ var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
39
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
39
40
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
40
41
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
41
42
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
42
43
  var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
43
44
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
44
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
45
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
45
46
  var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
46
- var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
47
+ var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
47
48
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
48
49
 
49
50
  function FooterComponent_div_2_Template(rf, ctx) {
@@ -115,7 +116,7 @@
115
116
  i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
116
117
  }
117
118
  }
118
- var _c0$P = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
119
+ var _c0$Q = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
119
120
  var _c1$n = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
120
121
  var FooterComponent = /** @class */ (function () {
121
122
  function FooterComponent() {
@@ -125,7 +126,7 @@
125
126
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
126
127
  FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$n, 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) {
127
128
  if (rf & 1) {
128
- i0__namespace.ɵɵprojectionDef(_c0$P);
129
+ i0__namespace.ɵɵprojectionDef(_c0$Q);
129
130
  i0__namespace.ɵɵelementStart(0, "footer", 0);
130
131
  i0__namespace.ɵɵelementStart(1, "div", 1);
131
132
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -204,7 +205,7 @@
204
205
  i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
205
206
  }
206
207
  }
207
- var _c0$O = [[["", "headerNavigation", ""]]];
208
+ var _c0$P = [[["", "headerNavigation", ""]]];
208
209
  var _c1$m = ["[headerNavigation]"];
209
210
  var HeaderBarComponent = /** @class */ (function () {
210
211
  function HeaderBarComponent() {
@@ -218,7 +219,7 @@
218
219
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
219
220
  HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$m, decls: 15, vars: 8, 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) {
220
221
  if (rf & 1) {
221
- i0__namespace.ɵɵprojectionDef(_c0$O);
222
+ i0__namespace.ɵɵprojectionDef(_c0$P);
222
223
  i0__namespace.ɵɵelementStart(0, "header", 0);
223
224
  i0__namespace.ɵɵelementStart(1, "div", 1);
224
225
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -279,7 +280,7 @@
279
280
  }] });
280
281
  })();
281
282
 
282
- var _c0$N = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
283
+ var _c0$O = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
283
284
  var _c1$l = ["[leftNavLinks]", "[rightNavLinks]"];
284
285
  var NavigationComponent = /** @class */ (function () {
285
286
  function NavigationComponent() {
@@ -289,7 +290,7 @@
289
290
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
290
291
  NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$l, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
291
292
  if (rf & 1) {
292
- i0__namespace.ɵɵprojectionDef(_c0$N);
293
+ i0__namespace.ɵɵprojectionDef(_c0$O);
293
294
  i0__namespace.ɵɵelementStart(0, "div");
294
295
  i0__namespace.ɵɵelementStart(1, "nav", 0);
295
296
  i0__namespace.ɵɵprojection(2);
@@ -434,7 +435,7 @@
434
435
  }], null, null);
435
436
  })();
436
437
 
437
- var _c0$M = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
438
+ var _c0$N = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
438
439
  var _c1$k = ["[topBody]", "[leftBody]", "[rightBody]"];
439
440
  var BodyComponent = /** @class */ (function () {
440
441
  function BodyComponent() {
@@ -444,7 +445,7 @@
444
445
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
445
446
  BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$k, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
446
447
  if (rf & 1) {
447
- i0__namespace.ɵɵprojectionDef(_c0$M);
448
+ i0__namespace.ɵɵprojectionDef(_c0$N);
448
449
  i0__namespace.ɵɵelementStart(0, "div", 0);
449
450
  i0__namespace.ɵɵprojection(1);
450
451
  i0__namespace.ɵɵprojection(2, 1);
@@ -791,7 +792,7 @@
791
792
  return typeof state === "function" ? receiver === state : state.has(receiver);
792
793
  }
793
794
 
794
- var _c0$L = function (a0) { return { "govuk-input--error": a0 }; };
795
+ var _c0$M = function (a0) { return { "govuk-input--error": a0 }; };
795
796
  function DateInputComponent_div_16_Template(rf, ctx) {
796
797
  if (rf & 1) {
797
798
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -809,7 +810,7 @@
809
810
  i0__namespace.ɵɵadvance(1);
810
811
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
811
812
  i0__namespace.ɵɵadvance(2);
812
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$L, ctx_r3.isInvalid));
813
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r3.isInvalid));
813
814
  }
814
815
  }
815
816
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -829,7 +830,7 @@
829
830
  i0__namespace.ɵɵadvance(1);
830
831
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
831
832
  i0__namespace.ɵɵadvance(2);
832
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$L, ctx_r4.isInvalid));
833
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r4.isInvalid));
833
834
  }
834
835
  }
835
836
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -849,7 +850,7 @@
849
850
  i0__namespace.ɵɵadvance(1);
850
851
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
851
852
  i0__namespace.ɵɵadvance(2);
852
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$L, ctx_r5.isInvalid));
853
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r5.isInvalid));
853
854
  }
854
855
  }
855
856
  var DateInputComponent = /** @class */ (function () {
@@ -1083,15 +1084,15 @@
1083
1084
  i0__namespace.ɵɵadvance(2);
1084
1085
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1085
1086
  i0__namespace.ɵɵadvance(2);
1086
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$L, ctx.isInvalid));
1087
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$M, ctx.isInvalid));
1087
1088
  i0__namespace.ɵɵadvance(3);
1088
1089
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1089
1090
  i0__namespace.ɵɵadvance(2);
1090
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$L, ctx.isInvalid));
1091
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$M, ctx.isInvalid));
1091
1092
  i0__namespace.ɵɵadvance(3);
1092
1093
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1093
1094
  i0__namespace.ɵɵadvance(2);
1094
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$L, ctx.isInvalid));
1095
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$M, ctx.isInvalid));
1095
1096
  i0__namespace.ɵɵadvance(2);
1096
1097
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1097
1098
  i0__namespace.ɵɵadvance(1);
@@ -1172,7 +1173,7 @@
1172
1173
  i0__namespace.ɵɵelementContainerEnd();
1173
1174
  }
1174
1175
  }
1175
- var _c0$K = ["*"];
1176
+ var _c0$L = ["*"];
1176
1177
  exports.AlertMessageType = void 0;
1177
1178
  (function (AlertMessageType) {
1178
1179
  AlertMessageType["WARNING"] = "warning";
@@ -1193,7 +1194,7 @@
1193
1194
  AlertComponent.TYPE_ERROR = 'error';
1194
1195
  AlertComponent.TYPE_INFORMATION = 'information';
1195
1196
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1196
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$K, decls: 10, vars: 10, 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) {
1197
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$L, decls: 10, vars: 10, 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) {
1197
1198
  if (rf & 1) {
1198
1199
  i0__namespace.ɵɵprojectionDef();
1199
1200
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1299,7 +1300,7 @@
1299
1300
  }], null, null);
1300
1301
  })();
1301
1302
 
1302
- var _c0$J = function (a0) { return { "js-hidden": a0 }; };
1303
+ var _c0$K = function (a0) { return { "js-hidden": a0 }; };
1303
1304
  var _c1$j = ["*"];
1304
1305
  var TabComponent = /** @class */ (function () {
1305
1306
  function TabComponent() {
@@ -1315,7 +1316,7 @@
1315
1316
  i0__namespace.ɵɵelementEnd();
1316
1317
  }
1317
1318
  if (rf & 2) {
1318
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$J, !ctx.selected));
1319
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$K, !ctx.selected));
1319
1320
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1320
1321
  }
1321
1322
  }, directives: [i1__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}}"] });
@@ -1338,7 +1339,7 @@
1338
1339
  }] });
1339
1340
  })();
1340
1341
 
1341
- var _c0$I = ["tab"];
1342
+ var _c0$J = ["tab"];
1342
1343
  var _c1$i = function () { return ["."]; };
1343
1344
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1344
1345
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1392,7 +1393,7 @@
1392
1393
  }
1393
1394
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1394
1395
  if (rf & 1) {
1395
- i0__namespace.ɵɵviewQuery(_c0$I, 1);
1396
+ i0__namespace.ɵɵviewQuery(_c0$J, 1);
1396
1397
  }
1397
1398
  if (rf & 2) {
1398
1399
  var _t = void 0;
@@ -1471,7 +1472,7 @@
1471
1472
  }], null, null);
1472
1473
  })();
1473
1474
 
1474
- var _c0$H = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1475
+ var _c0$I = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1475
1476
  var ActivityBannerComponent = /** @class */ (function () {
1476
1477
  function ActivityBannerComponent() {
1477
1478
  }
@@ -1492,7 +1493,7 @@
1492
1493
  i0__namespace.ɵɵelementEnd();
1493
1494
  }
1494
1495
  if (rf & 2) {
1495
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$H, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1496
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$I, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1496
1497
  i0__namespace.ɵɵadvance(2);
1497
1498
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1498
1499
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -8858,7 +8859,7 @@
8858
8859
  return IsCompoundPipe;
8859
8860
  }());
8860
8861
  IsCompoundPipe.COMPOUND_TYPES = [
8861
- 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
8862
+ 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
8862
8863
  ];
8863
8864
  IsCompoundPipe.EXCLUDE = [
8864
8865
  'CaseLink', 'JudicialUser'
@@ -9202,7 +9203,7 @@
9202
9203
  }], null, null);
9203
9204
  })();
9204
9205
 
9205
- var _c0$G = ["writeComplexFieldComponent"];
9206
+ var _c0$H = ["writeComplexFieldComponent"];
9206
9207
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
9207
9208
  if (rf & 1) {
9208
9209
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -9416,7 +9417,7 @@
9416
9417
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
9417
9418
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
9418
9419
  if (rf & 1) {
9419
- i0__namespace.ɵɵviewQuery(_c0$G, 1);
9420
+ i0__namespace.ɵɵviewQuery(_c0$H, 1);
9420
9421
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
9421
9422
  }
9422
9423
  if (rf & 2) {
@@ -9480,85 +9481,306 @@
9480
9481
  return CategoriesAndDocuments;
9481
9482
  }());
9482
9483
 
9483
- var DocumentTreeNodeType;
9484
- (function (DocumentTreeNodeType) {
9485
- DocumentTreeNodeType["FOLDER"] = "folder";
9486
- DocumentTreeNodeType["DOCUMENT"] = "document";
9487
- })(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
9484
+ var DocumentTreeNode = /** @class */ (function () {
9485
+ function DocumentTreeNode() {
9486
+ }
9487
+ Object.defineProperty(DocumentTreeNode.prototype, "childDocumentCount", {
9488
+ get: function () {
9489
+ var countChildren = function (childNodes) {
9490
+ var count = 0;
9491
+ if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
9492
+ var documents = childNodes.filter(function (item) { return item.type === 'document'; });
9493
+ count += documents.length;
9494
+ childNodes.forEach(function (children) {
9495
+ count += countChildren(children.children);
9496
+ });
9497
+ }
9498
+ return count;
9499
+ };
9500
+ return countChildren(this.children);
9501
+ },
9502
+ enumerable: false,
9503
+ configurable: true
9504
+ });
9505
+ DocumentTreeNode.prototype.sortChildrenAscending = function () {
9506
+ var _a, _b;
9507
+ var sortAscending = function () {
9508
+ return function (a, b) {
9509
+ var nameA = a.name.toUpperCase(); // ignore upper and lowercase
9510
+ var nameB = b.name.toUpperCase(); // ignore upper and lowercase
9511
+ if (a.type === 'category' || b.type === 'category') {
9512
+ return 0;
9513
+ }
9514
+ if (nameA < nameB) {
9515
+ return -1;
9516
+ }
9517
+ if (nameA > nameB) {
9518
+ return 1;
9519
+ }
9520
+ };
9521
+ };
9522
+ (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
9523
+ (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
9524
+ childNodes.sortChildrenAscending();
9525
+ });
9526
+ };
9527
+ DocumentTreeNode.prototype.sortChildrenDescending = function () {
9528
+ var _a, _b;
9529
+ var sortDescending = function () {
9530
+ return function (a, b) {
9531
+ var nameA = a.name.toUpperCase(); // ignore upper and lowercase
9532
+ var nameB = b.name.toUpperCase(); // ignore upper and lowercase
9533
+ if (a.type === 'category' || b.type === 'category') {
9534
+ return 0;
9535
+ }
9536
+ if (nameA > nameB) {
9537
+ return -1;
9538
+ }
9539
+ if (nameA < nameB) {
9540
+ return 1;
9541
+ }
9542
+ };
9543
+ };
9544
+ (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
9545
+ (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
9546
+ childNodes.sortChildrenDescending();
9547
+ });
9548
+ };
9549
+ Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
9550
+ get: function () {
9551
+ var _a;
9552
+ var flattenChildren = function (nodeChild) {
9553
+ var _a;
9554
+ var flattenedNodes = [];
9555
+ flattenedNodes.push(nodeChild);
9556
+ if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
9557
+ nodeChild.children.forEach(function (child) {
9558
+ flattenedNodes.push.apply(flattenedNodes, __spread(flattenChildren(child)));
9559
+ });
9560
+ }
9561
+ return flattenedNodes;
9562
+ };
9563
+ return __spread([
9564
+ this
9565
+ ], (_a = this.children) === null || _a === void 0 ? void 0 : _a.map(function (item) {
9566
+ return flattenChildren(item);
9567
+ }).flat());
9568
+ },
9569
+ enumerable: false,
9570
+ configurable: true
9571
+ });
9572
+ return DocumentTreeNode;
9573
+ }());
9574
+ __decorate([
9575
+ classTransformer.Type(function () { return DocumentTreeNode; }),
9576
+ __metadata("design:type", Array)
9577
+ ], DocumentTreeNode.prototype, "children", void 0);
9578
+ __decorate([
9579
+ classTransformer.Expose(),
9580
+ __metadata("design:type", Object),
9581
+ __metadata("design:paramtypes", [])
9582
+ ], DocumentTreeNode.prototype, "childDocumentCount", null);
9488
9583
 
9489
- function CaseFileViewFolderComponent_div_5_div_1_Template(rf, ctx) {
9584
+ function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template(rf, ctx) {
9490
9585
  if (rf & 1) {
9491
- i0__namespace.ɵɵelementStart(0, "div");
9492
- i0__namespace.ɵɵtext(1, " No results found ");
9586
+ i0__namespace.ɵɵelementContainerStart(0);
9587
+ i0__namespace.ɵɵelementStart(1, "div", 4);
9588
+ i0__namespace.ɵɵtext(2);
9493
9589
  i0__namespace.ɵɵelementEnd();
9590
+ i0__namespace.ɵɵelementContainerEnd();
9591
+ }
9592
+ if (rf & 2) {
9593
+ var ctx_r1 = i0__namespace.ɵɵnextContext(2);
9594
+ i0__namespace.ɵɵadvance(2);
9595
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.title);
9494
9596
  }
9495
9597
  }
9496
- function CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_3_Template(rf, ctx) {
9598
+ function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template(rf, ctx) {
9497
9599
  if (rf & 1) {
9498
- i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 10);
9499
- i0__namespace.ɵɵelementStart(1, "div", 11);
9500
- i0__namespace.ɵɵelementStart(2, "button", 12);
9501
- i0__namespace.ɵɵelement(3, "img", 13);
9502
- i0__namespace.ɵɵelementStart(4, "div", 14);
9503
- i0__namespace.ɵɵtext(5);
9504
- i0__namespace.ɵɵelementEnd();
9505
- i0__namespace.ɵɵelementEnd();
9600
+ i0__namespace.ɵɵelement(0, "img", 8);
9601
+ }
9602
+ if (rf & 2) {
9603
+ var item_r3 = i0__namespace.ɵɵnextContext().$implicit;
9604
+ var ctx_r4 = i0__namespace.ɵɵnextContext(2);
9605
+ i0__namespace.ɵɵproperty("src", item_r3.iconSrc, i0__namespace.ɵɵsanitizeUrl)("alt", ctx_r4.title);
9606
+ }
9607
+ }
9608
+ function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template(rf, ctx) {
9609
+ if (rf & 1) {
9610
+ var _r7_1 = i0__namespace.ɵɵgetCurrentView();
9611
+ i0__namespace.ɵɵelementContainerStart(0);
9612
+ i0__namespace.ɵɵelementStart(1, "div", 5);
9613
+ i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var item_r3 = ctx.$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(2); item_r3.actionFn(); return ctx_r6.closeOverlay(); });
9614
+ i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template, 1, 2, "img", 6);
9615
+ i0__namespace.ɵɵelementStart(3, "div", 7);
9616
+ i0__namespace.ɵɵtext(4);
9506
9617
  i0__namespace.ɵɵelementEnd();
9507
9618
  i0__namespace.ɵɵelementEnd();
9619
+ i0__namespace.ɵɵelementContainerEnd();
9508
9620
  }
9509
9621
  if (rf & 2) {
9510
- var node_r4 = ctx.$implicit;
9511
- i0__namespace.ɵɵadvance(5);
9512
- i0__namespace.ɵɵtextInterpolate(node_r4.name);
9622
+ var item_r3 = ctx.$implicit;
9623
+ i0__namespace.ɵɵadvance(2);
9624
+ i0__namespace.ɵɵproperty("ngIf", item_r3.iconSrc);
9625
+ i0__namespace.ɵɵadvance(2);
9626
+ i0__namespace.ɵɵtextInterpolate(item_r3.actionText);
9513
9627
  }
9514
9628
  }
9515
- function CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_4_Template(rf, ctx) {
9629
+ function CaseFileViewOverlayMenuComponent_ng_template_0_Template(rf, ctx) {
9516
9630
  if (rf & 1) {
9517
- i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 10);
9518
- i0__namespace.ɵɵelementStart(1, "div", 11);
9519
- i0__namespace.ɵɵelementStart(2, "button", 15);
9520
- i0__namespace.ɵɵelement(3, "img", 16);
9521
- i0__namespace.ɵɵelementStart(4, "div", 17);
9522
- i0__namespace.ɵɵtext(5);
9631
+ i0__namespace.ɵɵelementStart(0, "div", 1);
9632
+ i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template, 3, 1, "ng-container", 2);
9633
+ i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template, 5, 2, "ng-container", 3);
9523
9634
  i0__namespace.ɵɵelementEnd();
9635
+ }
9636
+ if (rf & 2) {
9637
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
9638
+ i0__namespace.ɵɵadvance(1);
9639
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
9640
+ i0__namespace.ɵɵadvance(1);
9641
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.menuItems);
9642
+ }
9643
+ }
9644
+ var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
9645
+ function CaseFileViewOverlayMenuComponent() {
9646
+ this.title = '';
9647
+ this.isOpen = false;
9648
+ this.isOpenChange = new i0.EventEmitter();
9649
+ }
9650
+ CaseFileViewOverlayMenuComponent.prototype.closeOverlay = function () {
9651
+ var isOpen = false;
9652
+ this.isOpen = isOpen;
9653
+ this.isOpenChange.emit(isOpen);
9654
+ };
9655
+ return CaseFileViewOverlayMenuComponent;
9656
+ }());
9657
+ CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
9658
+ CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", cdkOverlayOrigin: "cdkOverlayOrigin", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, decls: 1, vars: 2, consts: [["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"], [1, "overlayMenu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlayMenu__title"], [1, "overlayMenu__item", 3, "click"], ["class", "overlayMenu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlayMenu__actionText"], [1, "overlayMenu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
9659
+ if (rf & 1) {
9660
+ i0__namespace.ɵɵtemplate(0, CaseFileViewOverlayMenuComponent_ng_template_0_Template, 3, 2, "ng-template", 0);
9661
+ }
9662
+ if (rf & 2) {
9663
+ i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", ctx.cdkOverlayOrigin)("cdkConnectedOverlayOpen", ctx.isOpen);
9664
+ }
9665
+ }, directives: [i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlayMenu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlayMenu__item[_ngcontent-%COMP%], .overlayMenu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlayMenu__item[_ngcontent-%COMP%]:last-child, .overlayMenu__title[_ngcontent-%COMP%]:last-child{border:none}.overlayMenu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlayMenu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlayMenu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlayMenu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
9666
+ (function () {
9667
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
9668
+ type: i0.Component,
9669
+ args: [{
9670
+ selector: 'ccd-case-file-view-overlay-menu',
9671
+ templateUrl: './case-file-view-overlay-menu.component.html',
9672
+ styleUrls: ['./case-file-view-overlay-menu.component.scss']
9673
+ }]
9674
+ }], null, { title: [{
9675
+ type: i0.Input
9676
+ }], menuItems: [{
9677
+ type: i0.Input
9678
+ }], cdkOverlayOrigin: [{
9679
+ type: i0.Input
9680
+ }], isOpen: [{
9681
+ type: i0.Input
9682
+ }], isOpenChange: [{
9683
+ type: i0.Output
9684
+ }] });
9685
+ })();
9686
+
9687
+ var CaseFileViewFolderSortComponent = /** @class */ (function () {
9688
+ function CaseFileViewFolderSortComponent() {
9689
+ var _this = this;
9690
+ this.isOpen = false;
9691
+ this.sortAscending = new i0.EventEmitter();
9692
+ this.sortDescending = new i0.EventEmitter();
9693
+ this.overlayMenuItems = [
9694
+ { actionText: 'A to Z descending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
9695
+ { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
9696
+ ];
9697
+ }
9698
+ CaseFileViewFolderSortComponent.prototype.ngOnInit = function () {
9699
+ };
9700
+ return CaseFileViewFolderSortComponent;
9701
+ }());
9702
+ CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
9703
+ CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 4, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "sort-button", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button__arrows"], [3, "title", "menuItems", "cdkOverlayOrigin", "isOpen", "isOpenChange"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) {
9704
+ if (rf & 1) {
9705
+ i0__namespace.ɵɵelementStart(0, "button", 0, 1);
9706
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSortComponent_Template_button_click_0_listener() { return ctx.isOpen = !ctx.isOpen; });
9707
+ i0__namespace.ɵɵelement(2, "img", 2);
9708
+ i0__namespace.ɵɵelementEnd();
9709
+ i0__namespace.ɵɵelementStart(3, "ccd-case-file-view-overlay-menu", 3);
9710
+ i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_3_listener($event) { return ctx.isOpen = $event; });
9711
+ i0__namespace.ɵɵelementEnd();
9712
+ }
9713
+ if (rf & 2) {
9714
+ var _r0 = i0__namespace.ɵɵreference(1);
9715
+ i0__namespace.ɵɵadvance(3);
9716
+ i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("cdkOverlayOrigin", _r0)("isOpen", ctx.isOpen);
9717
+ }
9718
+ }, directives: [i1__namespace$5.CdkOverlayOrigin, CaseFileViewOverlayMenuComponent], styles: [".sort-button[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.sort-button__arrows[_ngcontent-%COMP%]{display:block;height:20px}"] });
9719
+ (function () {
9720
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
9721
+ type: i0.Component,
9722
+ args: [{
9723
+ selector: 'ccd-case-file-view-folder-sort',
9724
+ templateUrl: './case-file-view-folder-sort.component.html',
9725
+ styleUrls: ['./case-file-view-folder-sort.component.scss']
9726
+ }]
9727
+ }], function () { return []; }, { sortAscending: [{
9728
+ type: i0.Output
9729
+ }], sortDescending: [{
9730
+ type: i0.Output
9731
+ }] });
9732
+ })();
9733
+
9734
+ var _c0$G = ["tree"];
9735
+ function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) {
9736
+ if (rf & 1) {
9737
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
9738
+ i0__namespace.ɵɵelementStart(1, "div", 9);
9739
+ i0__namespace.ɵɵelementStart(2, "button", 10);
9740
+ i0__namespace.ɵɵelement(3, "img", 11);
9524
9741
  i0__namespace.ɵɵelementEnd();
9742
+ i0__namespace.ɵɵelementStart(4, "span", 12);
9743
+ i0__namespace.ɵɵtext(5);
9525
9744
  i0__namespace.ɵɵelementEnd();
9526
- i0__namespace.ɵɵelementStart(6, "div");
9527
- i0__namespace.ɵɵelementContainer(7, 18);
9528
9745
  i0__namespace.ɵɵelementEnd();
9529
9746
  i0__namespace.ɵɵelementEnd();
9530
9747
  }
9531
9748
  if (rf & 2) {
9532
- var node_r5 = ctx.$implicit;
9533
- var ctx_r3 = i0__namespace.ɵɵnextContext(2);
9534
- i0__namespace.ɵɵadvance(2);
9535
- i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r5.name);
9536
- i0__namespace.ɵɵadvance(1);
9537
- i0__namespace.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r5) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0__namespace.ɵɵsanitizeUrl);
9538
- i0__namespace.ɵɵadvance(2);
9539
- i0__namespace.ɵɵtextInterpolate(node_r5.name);
9540
- i0__namespace.ɵɵadvance(1);
9541
- i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r5));
9749
+ var node_r3 = ctx.$implicit;
9750
+ i0__namespace.ɵɵadvance(5);
9751
+ i0__namespace.ɵɵtextInterpolate(node_r3.name);
9542
9752
  }
9543
9753
  }
9544
- function CaseFileViewFolderComponent_div_5_Template(rf, ctx) {
9754
+ function CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template(rf, ctx) {
9545
9755
  if (rf & 1) {
9546
- i0__namespace.ɵɵelementStart(0, "div", 5);
9547
- i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_5_div_1_Template, 2, 0, "div", 6);
9548
- i0__namespace.ɵɵelementStart(2, "cdk-tree", 7);
9549
- i0__namespace.ɵɵtemplate(3, CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_3_Template, 6, 1, "cdk-nested-tree-node", 8);
9550
- i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_4_Template, 8, 5, "cdk-nested-tree-node", 9);
9756
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
9757
+ i0__namespace.ɵɵelementStart(1, "div", 13);
9758
+ i0__namespace.ɵɵelementStart(2, "button", 14);
9759
+ i0__namespace.ɵɵelement(3, "img", 15);
9760
+ i0__namespace.ɵɵelementStart(4, "span", 16);
9761
+ i0__namespace.ɵɵtext(5);
9762
+ i0__namespace.ɵɵelementEnd();
9763
+ i0__namespace.ɵɵelementEnd();
9764
+ i0__namespace.ɵɵelementStart(6, "span", 17);
9765
+ i0__namespace.ɵɵtext(7);
9766
+ i0__namespace.ɵɵelementEnd();
9767
+ i0__namespace.ɵɵelementEnd();
9768
+ i0__namespace.ɵɵelementStart(8, "div");
9769
+ i0__namespace.ɵɵelementContainer(9, 18);
9551
9770
  i0__namespace.ɵɵelementEnd();
9552
9771
  i0__namespace.ɵɵelementEnd();
9553
9772
  }
9554
9773
  if (rf & 2) {
9555
- var ctx_r0 = i0__namespace.ɵɵnextContext();
9556
- i0__namespace.ɵɵadvance(1);
9557
- i0__namespace.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
9558
- i0__namespace.ɵɵadvance(1);
9559
- i0__namespace.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
9774
+ var node_r4 = ctx.$implicit;
9775
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
9560
9776
  i0__namespace.ɵɵadvance(2);
9561
- i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
9777
+ i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r4.name);
9778
+ i0__namespace.ɵɵadvance(3);
9779
+ i0__namespace.ɵɵtextInterpolate(node_r4.childDocumentCount);
9780
+ i0__namespace.ɵɵadvance(2);
9781
+ i0__namespace.ɵɵtextInterpolate(node_r4.name);
9782
+ i0__namespace.ɵɵadvance(1);
9783
+ i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r2.nestedTreeControl.isExpanded(node_r4));
9562
9784
  }
9563
9785
  }
9564
9786
  var CaseFileViewFolderComponent = /** @class */ (function () {
@@ -9566,122 +9788,329 @@
9566
9788
  this.categories = [];
9567
9789
  this.getChildren = function (node) { return rxjs.of(node.children); };
9568
9790
  this.nestedChildren = function (_, nodeData) { return nodeData.children; };
9569
- this.nestedTreeControl = new i3.NestedTreeControl(this.getChildren);
9791
+ this.nestedTreeControl = new i2.NestedTreeControl(this.getChildren);
9570
9792
  }
9571
9793
  CaseFileViewFolderComponent.prototype.ngOnInit = function () {
9572
9794
  var _this = this;
9573
- this.documentFilterFormGroup = new i1$2.FormGroup({});
9574
- this.documentSearchFormControl = new i1$2.FormControl('');
9575
- this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
9576
- // Listen to search input and initiate filter documents if at least three characters entered
9577
- this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.tap(function (searchTerm) { return _this.searchTermLength = searchTerm.length; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase()).pipe(); })).subscribe(function (documentTreeData) {
9578
- _this.nestedDataSource = documentTreeData;
9579
- _this.nestedTreeControl.dataNodes = documentTreeData;
9580
- _this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
9581
- ? _this.nestedTreeControl.expandAll()
9582
- : _this.nestedTreeControl.collapseAll();
9583
- });
9584
- // Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
9585
9795
  this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
9586
- var categories = categoriesAndDocuments.categories;
9796
+ // Using the mock data for now as we have to display the documents as well for demo purpose
9797
+ var categories = _this.loadCategories(); // categoriesAndDocuments.categories;
9587
9798
  // Generate document tree data from categories
9588
- _this.documentTreeData = _this.generateTreeData(categories);
9799
+ var treeData = _this.generateTreeData(categories);
9589
9800
  // Append uncategorised documents
9590
9801
  if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
9591
9802
  var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
9592
- _this.documentTreeData.push(uncategorisedDocuments);
9803
+ treeData.push(uncategorisedDocuments);
9593
9804
  }
9594
9805
  // Initialise cdk tree with generated data
9595
- _this.nestedDataSource = _this.documentTreeData;
9596
- _this.nestedTreeControl.dataNodes = _this.documentTreeData;
9806
+ _this.nestedDataSource = treeData;
9597
9807
  });
9598
9808
  };
9599
9809
  CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
9600
9810
  var _this = this;
9601
- return categories.reduce(function (tree, node) { return __spread(tree, [
9602
- {
9603
- name: node.category_name,
9604
- type: DocumentTreeNodeType.FOLDER,
9605
- children: __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents))
9606
- },
9607
- ]); }, []);
9811
+ return categories.reduce(function (tree, node) {
9812
+ var newDocumentTreeNode = new DocumentTreeNode();
9813
+ newDocumentTreeNode.name = node.category_name;
9814
+ newDocumentTreeNode.type = 'category';
9815
+ newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
9816
+ return __spread(tree, [
9817
+ newDocumentTreeNode,
9818
+ ]);
9819
+ }, []);
9608
9820
  };
9609
9821
  CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
9610
9822
  var documentsToReturn = [];
9611
9823
  documents.forEach(function (document) {
9612
- documentsToReturn.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
9824
+ var documentTreeNode = new DocumentTreeNode();
9825
+ documentTreeNode.name = document.document_filename;
9826
+ documentTreeNode.type = 'document';
9827
+ documentsToReturn.push(documentTreeNode);
9613
9828
  });
9614
9829
  return documentsToReturn;
9615
9830
  };
9616
9831
  CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
9617
9832
  var documents = [];
9618
9833
  uncategorisedDocuments.forEach(function (document) {
9619
- documents.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
9834
+ var documentTreeNode = new DocumentTreeNode();
9835
+ documentTreeNode.name = document.document_filename;
9836
+ documentTreeNode.type = 'document';
9837
+ documents.push(documentTreeNode);
9838
+ });
9839
+ var uncategorisedNode = new DocumentTreeNode();
9840
+ uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
9841
+ uncategorisedNode.type = 'category';
9842
+ uncategorisedNode.children = documents;
9843
+ return uncategorisedNode;
9844
+ };
9845
+ CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
9846
+ var sortedData = this.nestedDataSource.map(function (item) {
9847
+ item.sortChildrenAscending();
9848
+ var newDocumentTreeNode = new DocumentTreeNode();
9849
+ newDocumentTreeNode.name = item.name;
9850
+ newDocumentTreeNode.type = item.type;
9851
+ newDocumentTreeNode.children = item.children;
9852
+ return newDocumentTreeNode;
9620
9853
  });
9621
- return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, type: DocumentTreeNodeType.FOLDER, children: documents };
9854
+ this.updateNodeData(sortedData);
9622
9855
  };
9623
- CaseFileViewFolderComponent.prototype.filter = function (searchTerm) {
9624
- // Make a copy of the data so we do not mutate the original
9625
- function copy(node) {
9626
- return Object.assign({}, node);
9627
- }
9628
- var filteredData = this.documentTreeData;
9629
- if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
9630
- filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
9631
- if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
9632
- return true;
9633
- }
9634
- // Call recursively if node has children
9635
- if (node.children) {
9636
- return (node.children = node.children.map(copy).filter(filterTreeData)).length;
9637
- }
9638
- });
9639
- }
9640
- return rxjs.of(filteredData);
9856
+ CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
9857
+ var sortedData = this.nestedDataSource.map(function (item) {
9858
+ item.sortChildrenDescending();
9859
+ return item;
9860
+ });
9861
+ this.updateNodeData(sortedData);
9641
9862
  };
9642
9863
  CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
9643
9864
  if (this.categoriesAndDocumentsSubscription) {
9644
9865
  this.categoriesAndDocumentsSubscription.unsubscribe();
9645
9866
  }
9646
- if (this.documentFilterSubscription) {
9647
- this.documentFilterSubscription.unsubscribe();
9648
- }
9867
+ };
9868
+ CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
9869
+ var _this = this;
9870
+ var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
9871
+ return item.name;
9872
+ });
9873
+ this.nestedTreeControl.collapseAll();
9874
+ this.nestedDataSource = data.map(function (item) {
9875
+ var newDocumentTreeNode = new DocumentTreeNode();
9876
+ newDocumentTreeNode.name = item.name;
9877
+ newDocumentTreeNode.type = item.type;
9878
+ newDocumentTreeNode.children = item.children;
9879
+ return newDocumentTreeNode;
9880
+ });
9881
+ var flattenedArray = this.nestedDataSource.map(function (item) {
9882
+ return item.flattenedAll;
9883
+ }).flat();
9884
+ var newObjects = flattenedArray.filter(function (item) {
9885
+ return prevSelected.includes(item.name);
9886
+ });
9887
+ newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
9888
+ };
9889
+ CaseFileViewFolderComponent.prototype.loadCategories = function () {
9890
+ return [
9891
+ {
9892
+ category_id: 'Beers',
9893
+ category_name: 'Beers',
9894
+ category_order: 1,
9895
+ documents: [
9896
+ {
9897
+ document_url: '/test',
9898
+ document_filename: 'Lager encyclopedia',
9899
+ document_binary_url: '/test/binary',
9900
+ attribute_path: '',
9901
+ upload_timestamp: ''
9902
+ },
9903
+ {
9904
+ document_url: '/test',
9905
+ document_filename: 'Beers encyclopedia',
9906
+ document_binary_url: '/test/binary',
9907
+ attribute_path: '',
9908
+ upload_timestamp: ''
9909
+ },
9910
+ {
9911
+ document_url: '/test',
9912
+ document_filename: 'Ale encyclopedia',
9913
+ document_binary_url: '/test/binary',
9914
+ attribute_path: '',
9915
+ upload_timestamp: ''
9916
+ }
9917
+ ],
9918
+ sub_categories: [
9919
+ {
9920
+ category_id: 'BeersBitters',
9921
+ category_name: 'Bitters',
9922
+ category_order: 1,
9923
+ documents: [],
9924
+ sub_categories: []
9925
+ },
9926
+ {
9927
+ category_id: 'BeersAmerican',
9928
+ category_name: 'American',
9929
+ category_order: 2,
9930
+ documents: [],
9931
+ sub_categories: []
9932
+ },
9933
+ {
9934
+ category_id: 'BeersAsian',
9935
+ category_name: 'Asian',
9936
+ category_order: 3,
9937
+ documents: [],
9938
+ sub_categories: []
9939
+ }
9940
+ ]
9941
+ },
9942
+ {
9943
+ category_id: 'Wines',
9944
+ category_name: 'Wines',
9945
+ category_order: 2,
9946
+ documents: [],
9947
+ sub_categories: [
9948
+ {
9949
+ category_id: 'WinesFrench',
9950
+ category_name: 'French',
9951
+ category_order: 1,
9952
+ documents: [],
9953
+ sub_categories: []
9954
+ },
9955
+ {
9956
+ category_id: 'WinesItalian',
9957
+ category_name: 'Italian',
9958
+ category_order: 2,
9959
+ documents: [],
9960
+ sub_categories: []
9961
+ }
9962
+ ]
9963
+ },
9964
+ {
9965
+ category_id: 'Spirits',
9966
+ category_name: 'Spirits',
9967
+ category_order: 3,
9968
+ documents: [],
9969
+ sub_categories: [
9970
+ {
9971
+ category_id: 'SpiritsWhisky',
9972
+ category_name: 'Scotch whisky',
9973
+ category_order: 1,
9974
+ documents: [],
9975
+ sub_categories: [
9976
+ {
9977
+ category_id: 'WhiskyHighland',
9978
+ category_name: 'Highland',
9979
+ category_order: 1,
9980
+ documents: [],
9981
+ sub_categories: [
9982
+ {
9983
+ category_id: 'WhiskyHighland1',
9984
+ category_name: 'Highland 1',
9985
+ category_order: 1,
9986
+ documents: [],
9987
+ sub_categories: []
9988
+ }
9989
+ ]
9990
+ },
9991
+ {
9992
+ category_id: 'WhiskyLowland',
9993
+ category_name: 'Lowland',
9994
+ category_order: 2,
9995
+ documents: [],
9996
+ sub_categories: [
9997
+ {
9998
+ category_id: 'WhiskyLowland1',
9999
+ category_name: 'Lowland 1',
10000
+ category_order: 1,
10001
+ documents: [
10002
+ {
10003
+ document_url: '/test',
10004
+ document_filename: 'Details about Whisky Lowland 1',
10005
+ document_binary_url: '/test/binary',
10006
+ attribute_path: '',
10007
+ upload_timestamp: ''
10008
+ }
10009
+ ],
10010
+ sub_categories: []
10011
+ },
10012
+ {
10013
+ category_id: 'WhiskyLowland2',
10014
+ category_name: 'Lowland 2',
10015
+ category_order: 2,
10016
+ documents: [],
10017
+ sub_categories: []
10018
+ }
10019
+ ]
10020
+ },
10021
+ {
10022
+ category_id: 'WhiskyIslay',
10023
+ category_name: 'Islay',
10024
+ category_order: 3,
10025
+ documents: [
10026
+ {
10027
+ document_url: '/test',
10028
+ document_filename: 'Details about Whisky Islay',
10029
+ document_binary_url: '/test/binary',
10030
+ attribute_path: '',
10031
+ upload_timestamp: ''
10032
+ },
10033
+ {
10034
+ document_url: '/test',
10035
+ document_filename: 'More information about Whisky Islay',
10036
+ document_binary_url: '/test/binary',
10037
+ attribute_path: '',
10038
+ upload_timestamp: ''
10039
+ }
10040
+ ],
10041
+ sub_categories: []
10042
+ },
10043
+ {
10044
+ category_id: 'WhiskySpeyside',
10045
+ category_name: 'Speyside',
10046
+ category_order: 4,
10047
+ documents: [],
10048
+ sub_categories: []
10049
+ },
10050
+ {
10051
+ category_id: 'WhiskyCampbeltown',
10052
+ category_name: 'Campbeltown',
10053
+ category_order: 5,
10054
+ documents: [],
10055
+ sub_categories: []
10056
+ }
10057
+ ]
10058
+ }
10059
+ ]
10060
+ }
10061
+ ];
9649
10062
  };
9650
10063
  return CaseFileViewFolderComponent;
9651
10064
  }());
9652
10065
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
9653
- CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
9654
- CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
9655
10066
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
9656
- CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 6, vars: 2, 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, "documents-title"], ["class", "document-tree", 4, "ngIf"], [1, "document-tree"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", 1, "node-button"], ["alt", "document image", "src", "/assets/images/document.png", 1, "icon"], [1, "node-name", "node-name-document"], ["mat-icon-button", "", "cdkTreeNodeToggle", "", 1, "node-button"], ["alt", "folder image", 1, "icon", 3, "src"], [1, "node-name", "node-name-folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
10067
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], viewQuery: function CaseFileViewFolderComponent_Query(rf, ctx) {
10068
+ if (rf & 1) {
10069
+ i0__namespace.ɵɵviewQuery(_c0$G, 3);
10070
+ }
10071
+ if (rf & 2) {
10072
+ var _t = void 0;
10073
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tree = _t.first);
10074
+ }
10075
+ }, inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 10, vars: 3, consts: [[1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["tree", ""], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], ["cdkTreeNodeToggle", "", 1, "node"], ["mat-icon-button", "", 1, "node__icon"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "node__iconImg"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
9657
10076
  if (rf & 1) {
9658
10077
  i0__namespace.ɵɵelementStart(0, "div", 0);
9659
10078
  i0__namespace.ɵɵelementStart(1, "div", 1);
9660
- i0__namespace.ɵɵelement(2, "input", 2);
10079
+ i0__namespace.ɵɵtext(2, "Documents");
9661
10080
  i0__namespace.ɵɵelementEnd();
9662
- i0__namespace.ɵɵelementStart(3, "div", 3);
9663
- i0__namespace.ɵɵtext(4, "Documents");
10081
+ i0__namespace.ɵɵelementStart(3, "div");
10082
+ i0__namespace.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
10083
+ i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_4_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_4_listener() { return ctx.sortDataSourceDescAlphabetically(); });
10084
+ i0__namespace.ɵɵelementEnd();
10085
+ i0__namespace.ɵɵelementEnd();
10086
+ i0__namespace.ɵɵelementEnd();
10087
+ i0__namespace.ɵɵelementStart(5, "div", 3);
10088
+ i0__namespace.ɵɵelementStart(6, "cdk-tree", 4, 5);
10089
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 6, 1, "cdk-nested-tree-node", 6);
10090
+ i0__namespace.ɵɵtemplate(9, CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template, 10, 5, "cdk-nested-tree-node", 7);
9664
10091
  i0__namespace.ɵɵelementEnd();
9665
10092
  i0__namespace.ɵɵelementEnd();
9666
- i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_5_Template, 5, 4, "div", 4);
9667
10093
  }
9668
10094
  if (rf & 2) {
9669
- i0__namespace.ɵɵadvance(1);
9670
- i0__namespace.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
9671
- i0__namespace.ɵɵadvance(4);
9672
- i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
10095
+ i0__namespace.ɵɵadvance(6);
10096
+ i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
10097
+ i0__namespace.ɵɵadvance(3);
10098
+ i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
9673
10099
  }
9674
- }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace.NgIf, i3__namespace.CdkTree, i3__namespace.CdkTreeNodeDef, i3__namespace.CdkNestedTreeNode, i3__namespace.CdkTreeNodeToggle, i3__namespace.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%;padding:8px 8px 0;margin-bottom: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[_ngcontent-%COMP%]{margin:4px;overflow-x:hidden;overflow-y:scroll;height:400px}.document-tree[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.document-tree[_ngcontent-%COMP%] .node[_ngcontent-%COMP%]{display:flex;padding:4px;white-space:nowrap}.document-tree[_ngcontent-%COMP%] .node[_ngcontent-%COMP%] .node-button[_ngcontent-%COMP%]{display:flex;background-color:#faf8f8;border:none;width:100%}.document-tree[_ngcontent-%COMP%] .node-button[_ngcontent-%COMP%]:hover{cursor:pointer}.document-tree[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;background-size:100%;border:0;background-color:#faf8f8}.document-tree[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{margin-left:10px}.document-tree[_ngcontent-%COMP%] .node-name-document[_ngcontent-%COMP%], .document-tree[_ngcontent-%COMP%] .node-name-folder[_ngcontent-%COMP%]{margin-top:8px;font-size:16px}.document-tree[_ngcontent-%COMP%] .document-count[_ngcontent-%COMP%]{color:#fff}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}"] });
10100
+ }, directives: [CaseFileViewFolderSortComponent, i2__namespace.CdkTree, i2__namespace.CdkTreeNodeDef, i2__namespace.CdkNestedTreeNode, i2__namespace.CdkTreeNodeToggle, i2__namespace.CdkTreeNodeOutlet], styles: [".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}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.node[_ngcontent-%COMP%]{display:flex;align-items:center;padding:6px 0}.node__icon[_ngcontent-%COMP%]{position:relative;background:none;border:0;padding:6px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:24px;width:24px}.node__count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;padding-top:4px}.node__name[_ngcontent-%COMP%]{margin-left:4px}"] });
9675
10101
  (function () {
9676
10102
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
9677
10103
  type: i0.Component,
9678
10104
  args: [{
9679
10105
  selector: 'ccd-case-file-view-folder',
10106
+ templateUrl: './case-file-view-folder.component.html',
9680
10107
  styleUrls: ['./case-file-view-folder.component.scss'],
9681
- templateUrl: './case-file-view-folder.component.html'
9682
10108
  }]
9683
10109
  }], function () { return []; }, { categoriesAndDocuments: [{
9684
10110
  type: i0.Input
10111
+ }], tree: [{
10112
+ type: i0.ViewChild,
10113
+ args: ['tree', { static: true }]
9685
10114
  }] });
9686
10115
  })();
9687
10116
 
@@ -9747,7 +10176,7 @@
9747
10176
  args: [{
9748
10177
  selector: 'ccd-case-file-view-field',
9749
10178
  templateUrl: './case-file-view-field.component.html',
9750
- styleUrls: ['./case-file-view-field.component.scss']
10179
+ styleUrls: ['./case-file-view-field.component.scss'],
9751
10180
  }]
9752
10181
  }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null);
9753
10182
  })();
@@ -10114,7 +10543,7 @@
10114
10543
  };
10115
10544
  return RemoveDialogComponent;
10116
10545
  }());
10117
- RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
10546
+ RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
10118
10547
  RemoveDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) {
10119
10548
  if (rf & 1) {
10120
10549
  i0__namespace.ɵɵelementStart(0, "div");
@@ -10155,7 +10584,7 @@
10155
10584
  templateUrl: './remove-dialog.component.html',
10156
10585
  styleUrls: ['../action-dialog.component.scss']
10157
10586
  }]
10158
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
10587
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
10159
10588
  })();
10160
10589
 
10161
10590
  var _c0$D = ["collectionItem"];
@@ -10534,7 +10963,7 @@
10534
10963
  };
10535
10964
  WriteCollectionFieldComponent.prototype.openModal = function (i) {
10536
10965
  var _this = this;
10537
- var dialogConfig = new i1$5.MatDialogConfig();
10966
+ var dialogConfig = new i1$6.MatDialogConfig();
10538
10967
  dialogConfig.disableClose = true;
10539
10968
  dialogConfig.autoFocus = true;
10540
10969
  dialogConfig.ariaLabel = 'Label';
@@ -10568,7 +10997,7 @@
10568
10997
  };
10569
10998
  return WriteCollectionFieldComponent;
10570
10999
  }(AbstractFieldWriteComponent));
10571
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
11000
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
10572
11001
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
10573
11002
  if (rf & 1) {
10574
11003
  i0__namespace.ɵɵviewQuery(_c0$D, 1);
@@ -10617,7 +11046,7 @@
10617
11046
  templateUrl: './write-collection-field.html',
10618
11047
  styleUrls: ['./collection-field.scss']
10619
11048
  }]
10620
- }], function () { return [{ type: i1__namespace$5.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
11049
+ }], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
10621
11050
  type: i0.Input
10622
11051
  }], formGroup: [{
10623
11052
  type: i0.Input
@@ -12008,7 +12437,7 @@
12008
12437
  };
12009
12438
  return DocumentDialogComponent;
12010
12439
  }());
12011
- DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
12440
+ DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
12012
12441
  DocumentDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) {
12013
12442
  if (rf & 1) {
12014
12443
  i0__namespace.ɵɵelementStart(0, "div");
@@ -12049,11 +12478,11 @@
12049
12478
  templateUrl: './document-dialog.component.html',
12050
12479
  styleUrls: ['../action-dialog.component.scss']
12051
12480
  }]
12052
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
12481
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
12053
12482
  })();
12054
12483
 
12055
12484
  function initDialog() {
12056
- var dialogConfig = new i1$5.MatDialogConfig();
12485
+ var dialogConfig = new i1$6.MatDialogConfig();
12057
12486
  dialogConfig.disableClose = true;
12058
12487
  dialogConfig.autoFocus = true;
12059
12488
  dialogConfig.ariaLabel = 'Label';
@@ -12377,7 +12806,7 @@
12377
12806
  WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
12378
12807
  WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
12379
12808
  WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
12380
- 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$5.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
12809
+ 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$6.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
12381
12810
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
12382
12811
  if (rf & 1) {
12383
12812
  i0__namespace.ɵɵviewQuery(_c0$z, 1);
@@ -12451,7 +12880,7 @@
12451
12880
  selector: 'ccd-write-document-field',
12452
12881
  templateUrl: './write-document-field.html'
12453
12882
  }]
12454
- }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$5.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
12883
+ }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$6.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
12455
12884
  type: i0.ViewChild,
12456
12885
  args: ['fileInput', { static: false }]
12457
12886
  }], clickout: [{
@@ -15855,7 +16284,7 @@
15855
16284
  if (rf & 2) {
15856
16285
  i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("REFUNDS_API_ROOT", ctx.getRefundsUrl())("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("LOGGEDINUSERROLES", ctx.getUserRoles());
15857
16286
  }
15858
- }, directives: [i3__namespace$1.PaymentLibComponent], encapsulation: 2 });
16287
+ }, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
15859
16288
  (function () {
15860
16289
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
15861
16290
  type: i0.Component,
@@ -16282,7 +16711,7 @@
16282
16711
  if (rf & 2) {
16283
16712
  i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
16284
16713
  }
16285
- }, directives: [i1__namespace.NgIf, i3__namespace$1.PaymentLibComponent], encapsulation: 2 });
16714
+ }, directives: [i1__namespace.NgIf, i3__namespace.PaymentLibComponent], encapsulation: 2 });
16286
16715
  (function () {
16287
16716
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WaysToPayFieldComponent, [{
16288
16717
  type: i0.Component,
@@ -16875,7 +17304,7 @@
16875
17304
  };
16876
17305
  return SaveOrDiscardDialogComponent;
16877
17306
  }());
16878
- SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
17307
+ SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
16879
17308
  SaveOrDiscardDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) {
16880
17309
  if (rf & 1) {
16881
17310
  i0__namespace.ɵɵelementStart(0, "div");
@@ -16916,7 +17345,7 @@
16916
17345
  templateUrl: './save-or-discard-dialog.component.html',
16917
17346
  styleUrls: ['../action-dialog.component.scss']
16918
17347
  }]
16919
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
17348
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
16920
17349
  })();
16921
17350
 
16922
17351
  var CaseEditPageText;
@@ -17787,7 +18216,7 @@
17787
18216
  };
17788
18217
  return CaseEditPageComponent;
17789
18218
  }());
17790
- 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$5.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
18219
+ 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$6.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
17791
18220
  CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, 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"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 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"], ["role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [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"]], template: function CaseEditPageComponent_Template(rf, ctx) {
17792
18221
  if (rf & 1) {
17793
18222
  i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
@@ -17833,7 +18262,7 @@
17833
18262
  templateUrl: 'case-edit-page.html',
17834
18263
  styleUrls: ['./case-edit-page.scss']
17835
18264
  }]
17836
- }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$5.MatDialog }, { type: CaseFieldService }]; }, null);
18265
+ }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$6.MatDialog }, { type: CaseFieldService }]; }, null);
17837
18266
  })();
17838
18267
 
17839
18268
  var Confirmation = /** @class */ (function () {
@@ -19552,7 +19981,9 @@
19552
19981
  WriteCollectionFieldComponent,
19553
19982
  // ComponentLauncher web components
19554
19983
  CaseFileViewFieldComponent,
19555
- CaseFileViewFolderComponent
19984
+ CaseFileViewFolderComponent,
19985
+ CaseFileViewFolderSortComponent,
19986
+ CaseFileViewOverlayMenuComponent
19556
19987
  ];
19557
19988
  var PaletteModule = /** @class */ (function () {
19558
19989
  function PaletteModule() {
@@ -19592,9 +20023,10 @@
19592
20023
  input.MatInputModule,
19593
20024
  i5.MatDatepickerModule,
19594
20025
  i5$1.MatAutocompleteModule,
19595
- i3.CdkTreeModule,
19596
- i3$1.PaymentLibModule,
19597
- i2.ScrollToModule.forRoot()
20026
+ i2.CdkTreeModule,
20027
+ i1$5.OverlayModule,
20028
+ i3.PaymentLibModule,
20029
+ i2$1.ScrollToModule.forRoot()
19598
20030
  ], i4.NgxMatDatetimePickerModule,
19599
20031
  i4.NgxMatNativeDateModule,
19600
20032
  i4.NgxMatTimepickerModule,
@@ -19677,7 +20109,9 @@
19677
20109
  WriteCollectionFieldComponent,
19678
20110
  // ComponentLauncher web components
19679
20111
  CaseFileViewFieldComponent,
19680
- CaseFileViewFolderComponent], imports: [i1.CommonModule,
20112
+ CaseFileViewFolderComponent,
20113
+ CaseFileViewFolderSortComponent,
20114
+ CaseFileViewOverlayMenuComponent, CaseFileViewOverlayMenuComponent], imports: [i1.CommonModule,
19681
20115
  i1$1.RouterModule,
19682
20116
  i1$2.FormsModule,
19683
20117
  i1$2.ReactiveFormsModule,
@@ -19698,8 +20132,9 @@
19698
20132
  input.MatInputModule,
19699
20133
  i5.MatDatepickerModule,
19700
20134
  i5$1.MatAutocompleteModule,
19701
- i3.CdkTreeModule,
19702
- i3$1.PaymentLibModule, i2__namespace.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
20135
+ i2.CdkTreeModule,
20136
+ i1$5.OverlayModule,
20137
+ i3.PaymentLibModule, i2__namespace$1.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
19703
20138
  i4.NgxMatNativeDateModule,
19704
20139
  i4.NgxMatTimepickerModule,
19705
20140
  TabsModule,
@@ -19775,7 +20210,9 @@
19775
20210
  WriteCollectionFieldComponent,
19776
20211
  // ComponentLauncher web components
19777
20212
  CaseFileViewFieldComponent,
19778
- CaseFileViewFolderComponent] });
20213
+ CaseFileViewFolderComponent,
20214
+ CaseFileViewFolderSortComponent,
20215
+ CaseFileViewOverlayMenuComponent] });
19779
20216
  })();
19780
20217
  (function () {
19781
20218
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -19803,9 +20240,10 @@
19803
20240
  input.MatInputModule,
19804
20241
  i5.MatDatepickerModule,
19805
20242
  i5$1.MatAutocompleteModule,
19806
- i3.CdkTreeModule,
19807
- i3$1.PaymentLibModule,
19808
- i2.ScrollToModule.forRoot()
20243
+ i2.CdkTreeModule,
20244
+ i1$5.OverlayModule,
20245
+ i3.PaymentLibModule,
20246
+ i2$1.ScrollToModule.forRoot()
19809
20247
  ],
19810
20248
  declarations: __spread([
19811
20249
  FixedListPipe,
@@ -19813,7 +20251,9 @@
19813
20251
  DynamicListPipe,
19814
20252
  DynamicRadioListPipe,
19815
20253
  DocumentUrlPipe
19816
- ], PALETTE_COMPONENTS),
20254
+ ], PALETTE_COMPONENTS, [
20255
+ CaseFileViewOverlayMenuComponent,
20256
+ ]),
19817
20257
  exports: __spread([
19818
20258
  i4.NgxMatDatetimePickerModule,
19819
20259
  i4.NgxMatNativeDateModule,
@@ -20688,7 +21128,7 @@
20688
21128
  i0__namespace.ɵɵadvance(3);
20689
21129
  i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
20690
21130
  }
20691
- }, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
21131
+ }, directives: [i1__namespace$7.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
20692
21132
  (function () {
20693
21133
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
20694
21134
  type: i0.Component,
@@ -21095,7 +21535,7 @@
21095
21535
  i0__namespace.ɵɵadvance(2);
21096
21536
  i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
21097
21537
  }
21098
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
21538
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$7.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
21099
21539
  (function () {
21100
21540
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
21101
21541
  type: i0.Component,
@@ -21155,12 +21595,12 @@
21155
21595
  PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
21156
21596
  PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
21157
21597
  i1.CommonModule,
21158
- i1$6.NgxPaginationModule
21598
+ i1$7.NgxPaginationModule
21159
21599
  ]] });
21160
21600
  (function () {
21161
21601
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
21162
- i1$6.NgxPaginationModule], exports: [PaginationComponent,
21163
- i1$6.PaginatePipe] });
21602
+ i1$7.NgxPaginationModule], exports: [PaginationComponent,
21603
+ i1$7.PaginatePipe] });
21164
21604
  })();
21165
21605
  (function () {
21166
21606
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
@@ -21168,14 +21608,14 @@
21168
21608
  args: [{
21169
21609
  imports: [
21170
21610
  i1.CommonModule,
21171
- i1$6.NgxPaginationModule
21611
+ i1$7.NgxPaginationModule
21172
21612
  ],
21173
21613
  declarations: [
21174
21614
  PaginationComponent
21175
21615
  ],
21176
21616
  exports: [
21177
21617
  PaginationComponent,
21178
- i1$6.PaginatePipe
21618
+ i1$7.PaginatePipe
21179
21619
  ],
21180
21620
  }]
21181
21621
  }], null, null);
@@ -21194,14 +21634,14 @@
21194
21634
  i1.CommonModule,
21195
21635
  i1$2.FormsModule,
21196
21636
  i1$1.RouterModule,
21197
- i1$6.NgxPaginationModule,
21637
+ i1$7.NgxPaginationModule,
21198
21638
  PaginationModule
21199
21639
  ]] });
21200
21640
  (function () {
21201
21641
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
21202
21642
  i1$2.FormsModule,
21203
21643
  i1$1.RouterModule,
21204
- i1$6.NgxPaginationModule,
21644
+ i1$7.NgxPaginationModule,
21205
21645
  PaginationModule], exports: [CaseListComponent] });
21206
21646
  })();
21207
21647
  (function () {
@@ -21212,7 +21652,7 @@
21212
21652
  i1.CommonModule,
21213
21653
  i1$2.FormsModule,
21214
21654
  i1$1.RouterModule,
21215
- i1$6.NgxPaginationModule,
21655
+ i1$7.NgxPaginationModule,
21216
21656
  PaginationModule
21217
21657
  ],
21218
21658
  declarations: [CaseListComponent],
@@ -22982,7 +23422,7 @@
22982
23422
  };
22983
23423
  return DeleteOrCancelDialogComponent;
22984
23424
  }());
22985
- DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
23425
+ DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
22986
23426
  DeleteOrCancelDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) {
22987
23427
  if (rf & 1) {
22988
23428
  i0__namespace.ɵɵelementStart(0, "div");
@@ -23023,7 +23463,7 @@
23023
23463
  templateUrl: './delete-or-cancel-dialog.component.html',
23024
23464
  styleUrls: ['../action-dialog.component.scss']
23025
23465
  }]
23026
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
23466
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
23027
23467
  })();
23028
23468
 
23029
23469
  function EventTriggerComponent_form_0_option_5_Template(rf, ctx) {
@@ -23241,8 +23681,8 @@
23241
23681
  }
23242
23682
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
23243
23683
  if (rf & 1) {
23244
- i0__namespace.ɵɵelementStart(0, "th", 34);
23245
- i0__namespace.ɵɵelementStart(1, "div", 35);
23684
+ i0__namespace.ɵɵelementStart(0, "th", 35);
23685
+ i0__namespace.ɵɵelementStart(1, "div", 36);
23246
23686
  i0__namespace.ɵɵtext(2);
23247
23687
  i0__namespace.ɵɵelementEnd();
23248
23688
  i0__namespace.ɵɵelementEnd();
@@ -23257,9 +23697,9 @@
23257
23697
  if (rf & 1) {
23258
23698
  i0__namespace.ɵɵelementStart(0, "tr");
23259
23699
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
23260
- i0__namespace.ɵɵelementStart(2, "td");
23261
- i0__namespace.ɵɵelementStart(3, "span", 32);
23262
- i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
23700
+ i0__namespace.ɵɵelementStart(2, "th", 32);
23701
+ i0__namespace.ɵɵelementStart(3, "span", 33);
23702
+ i0__namespace.ɵɵelement(4, "ccd-field-read", 34);
23263
23703
  i0__namespace.ɵɵelementEnd();
23264
23704
  i0__namespace.ɵɵelementEnd();
23265
23705
  i0__namespace.ɵɵelementEnd();
@@ -23269,16 +23709,18 @@
23269
23709
  var ctx_r22 = i0__namespace.ɵɵnextContext(4);
23270
23710
  i0__namespace.ɵɵadvance(1);
23271
23711
  i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
23272
- i0__namespace.ɵɵadvance(3);
23712
+ i0__namespace.ɵɵadvance(1);
23713
+ i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
23714
+ i0__namespace.ɵɵadvance(2);
23273
23715
  i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
23274
23716
  }
23275
23717
  }
23276
23718
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
23277
23719
  if (rf & 1) {
23278
- i0__namespace.ɵɵelementStart(0, "tr", 36);
23279
- i0__namespace.ɵɵelementStart(1, "th");
23280
- i0__namespace.ɵɵelementStart(2, "span", 32);
23281
- i0__namespace.ɵɵelement(3, "ccd-field-read", 33);
23720
+ i0__namespace.ɵɵelementStart(0, "tr", 37);
23721
+ i0__namespace.ɵɵelementStart(1, "th", 32);
23722
+ i0__namespace.ɵɵelementStart(2, "span", 33);
23723
+ i0__namespace.ɵɵelement(3, "ccd-field-read", 34);
23282
23724
  i0__namespace.ɵɵelementEnd();
23283
23725
  i0__namespace.ɵɵelementEnd();
23284
23726
  i0__namespace.ɵɵelementEnd();
@@ -23286,7 +23728,9 @@
23286
23728
  if (rf & 2) {
23287
23729
  var field_r21 = i0__namespace.ɵɵnextContext().$implicit;
23288
23730
  var ctx_r23 = i0__namespace.ɵɵnextContext(4);
23289
- i0__namespace.ɵɵadvance(3);
23731
+ i0__namespace.ɵɵadvance(1);
23732
+ i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
23733
+ i0__namespace.ɵɵadvance(2);
23290
23734
  i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r23.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r23.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r23.markdownUseHrefAsRouterLink);
23291
23735
  }
23292
23736
  }
@@ -23296,8 +23740,8 @@
23296
23740
  i0__namespace.ɵɵelementStart(1, "div", 27);
23297
23741
  i0__namespace.ɵɵelementContainerStart(2, 28);
23298
23742
  i0__namespace.ɵɵpipe(3, "ccdIsCompound");
23299
- i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
23300
- i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
23743
+ i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 29);
23744
+ i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 30);
23301
23745
  i0__namespace.ɵɵelementContainerEnd();
23302
23746
  i0__namespace.ɵɵelementEnd();
23303
23747
  i0__namespace.ɵɵelementContainerEnd();
@@ -23648,7 +24092,7 @@
23648
24092
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
23649
24093
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
23650
24094
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
23651
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
24095
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
23652
24096
  CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
23653
24097
  if (rf & 1) {
23654
24098
  i0__namespace.ɵɵviewQuery(_c0$a, 1);
@@ -23657,7 +24101,7 @@
23657
24101
  var _t = void 0;
23658
24102
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
23659
24103
  }
23660
- }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
24104
+ }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
23661
24105
  if (rf & 1) {
23662
24106
  i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
23663
24107
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
@@ -23704,7 +24148,7 @@
23704
24148
  templateUrl: './case-full-access-view.component.html',
23705
24149
  styleUrls: ['./case-full-access-view.component.scss']
23706
24150
  }]
23707
- }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
24151
+ }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$6.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
23708
24152
  type: i0.Input
23709
24153
  }], hasEventSelector: [{
23710
24154
  type: i0.Input
@@ -27108,8 +27552,8 @@
27108
27552
  function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) {
27109
27553
  if (rf & 1) {
27110
27554
  var _r19_1 = i0__namespace.ɵɵgetCurrentView();
27111
- i0__namespace.ɵɵelementStart(0, "div", 28);
27112
- i0__namespace.ɵɵelementStart(1, "a", 29);
27555
+ i0__namespace.ɵɵelementStart(0, "div", 27);
27556
+ i0__namespace.ɵɵelementStart(1, "a", 28);
27113
27557
  i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_6_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var col_r15 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
27114
27558
  i0__namespace.ɵɵelementEnd();
27115
27559
  i0__namespace.ɵɵelementEnd();
@@ -27126,13 +27570,13 @@
27126
27570
  var _r22_1 = i0__namespace.ɵɵgetCurrentView();
27127
27571
  i0__namespace.ɵɵelementStart(0, "th");
27128
27572
  i0__namespace.ɵɵelementStart(1, "table", 24);
27129
- i0__namespace.ɵɵelementStart(2, "tr", 7);
27130
- i0__namespace.ɵɵelementStart(3, "th", 25);
27131
- i0__namespace.ɵɵelementStart(4, "div", 26);
27573
+ i0__namespace.ɵɵelementStart(2, "tr");
27574
+ i0__namespace.ɵɵelementStart(3, "th");
27575
+ i0__namespace.ɵɵelementStart(4, "div", 25);
27132
27576
  i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_4_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var col_r15 = ctx.$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
27133
27577
  i0__namespace.ɵɵtext(5);
27134
27578
  i0__namespace.ɵɵelementEnd();
27135
- i0__namespace.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 27);
27579
+ i0__namespace.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
27136
27580
  i0__namespace.ɵɵelementEnd();
27137
27581
  i0__namespace.ɵɵelementEnd();
27138
27582
  i0__namespace.ɵɵelementEnd();
@@ -27142,7 +27586,7 @@
27142
27586
  var col_r15 = ctx.$implicit;
27143
27587
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
27144
27588
  i0__namespace.ɵɵadvance(1);
27145
- i0__namespace.ɵɵattributeInterpolate2("aria-label", "Sort by ", col_r15.label, " ", ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending", "");
27589
+ i0__namespace.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
27146
27590
  i0__namespace.ɵɵadvance(4);
27147
27591
  i0__namespace.ɵɵtextInterpolate(col_r15.label);
27148
27592
  i0__namespace.ɵɵadvance(1);
@@ -27151,7 +27595,7 @@
27151
27595
  }
27152
27596
  function SearchResultComponent_table_0_th_11_Template(rf, ctx) {
27153
27597
  if (rf & 1) {
27154
- i0__namespace.ɵɵelement(0, "th", 30);
27598
+ i0__namespace.ɵɵelement(0, "th", 29);
27155
27599
  }
27156
27600
  }
27157
27601
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ctx) {
@@ -27159,10 +27603,10 @@
27159
27603
  var _r30_1 = i0__namespace.ɵɵgetCurrentView();
27160
27604
  i0__namespace.ɵɵelementStart(0, "td", 20);
27161
27605
  i0__namespace.ɵɵelementStart(1, "div", 21);
27162
- i0__namespace.ɵɵelementStart(2, "input", 32);
27606
+ i0__namespace.ɵɵelementStart(2, "input", 31);
27163
27607
  i0__namespace.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template_input_change_2_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var result_r24 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r28 = i0__namespace.ɵɵnextContext(3); return ctx_r28.changeSelection(result_r24); });
27164
27608
  i0__namespace.ɵɵelementEnd();
27165
- i0__namespace.ɵɵelement(3, "label", 33);
27609
+ i0__namespace.ɵɵelement(3, "label", 32);
27166
27610
  i0__namespace.ɵɵelementEnd();
27167
27611
  i0__namespace.ɵɵelementEnd();
27168
27612
  }
@@ -27180,7 +27624,7 @@
27180
27624
  var _c0 = function () { return ["value"]; };
27181
27625
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
27182
27626
  if (rf & 1) {
27183
- i0__namespace.ɵɵelement(0, "ccd-field-read", 42);
27627
+ i0__namespace.ɵɵelement(0, "ccd-field-read", 41);
27184
27628
  }
27185
27629
  if (rf & 2) {
27186
27630
  var col_r32 = i0__namespace.ɵɵnextContext(3).$implicit;
@@ -27201,9 +27645,9 @@
27201
27645
  }
27202
27646
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
27203
27647
  if (rf & 1) {
27204
- i0__namespace.ɵɵelementContainerStart(0, 39);
27205
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
27206
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0__namespace.ɵɵtemplateRefExtractor);
27648
+ i0__namespace.ɵɵelementContainerStart(0, 38);
27649
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
27650
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0__namespace.ɵɵtemplateRefExtractor);
27207
27651
  i0__namespace.ɵɵelementContainerEnd();
27208
27652
  }
27209
27653
  if (rf & 2) {
@@ -27217,9 +27661,9 @@
27217
27661
  }
27218
27662
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf, ctx) {
27219
27663
  if (rf & 1) {
27220
- i0__namespace.ɵɵelementStart(0, "a", 37);
27664
+ i0__namespace.ɵɵelementStart(0, "a", 36);
27221
27665
  i0__namespace.ɵɵpipe(1, "ccdCaseReference");
27222
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
27666
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
27223
27667
  i0__namespace.ɵɵelementEnd();
27224
27668
  }
27225
27669
  if (rf & 2) {
@@ -27233,8 +27677,8 @@
27233
27677
  }
27234
27678
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(rf, ctx) {
27235
27679
  if (rf & 1) {
27236
- i0__namespace.ɵɵelementStart(0, "div", 39);
27237
- i0__namespace.ɵɵelement(1, "ccd-field-read", 42);
27680
+ i0__namespace.ɵɵelementStart(0, "div", 38);
27681
+ i0__namespace.ɵɵelement(1, "ccd-field-read", 41);
27238
27682
  i0__namespace.ɵɵelementEnd();
27239
27683
  }
27240
27684
  if (rf & 2) {
@@ -27248,9 +27692,9 @@
27248
27692
  }
27249
27693
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ctx) {
27250
27694
  if (rf & 1) {
27251
- i0__namespace.ɵɵelementStart(0, "td", 34);
27252
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
27253
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
27695
+ i0__namespace.ɵɵelementStart(0, "td", 33);
27696
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
27697
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
27254
27698
  i0__namespace.ɵɵelementEnd();
27255
27699
  }
27256
27700
  if (rf & 2) {
@@ -27265,7 +27709,7 @@
27265
27709
  if (rf & 1) {
27266
27710
  i0__namespace.ɵɵelementStart(0, "td");
27267
27711
  i0__namespace.ɵɵelementStart(1, "div");
27268
- i0__namespace.ɵɵelement(2, "ccd-activity", 43);
27712
+ i0__namespace.ɵɵelement(2, "ccd-activity", 42);
27269
27713
  i0__namespace.ɵɵelementEnd();
27270
27714
  i0__namespace.ɵɵelementEnd();
27271
27715
  }
@@ -27282,7 +27726,7 @@
27282
27726
  if (rf & 1) {
27283
27727
  i0__namespace.ɵɵelementStart(0, "tr");
27284
27728
  i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template, 4, 5, "td", 8);
27285
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 31);
27729
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 30);
27286
27730
  i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template, 3, 4, "td", 0);
27287
27731
  i0__namespace.ɵɵelementEnd();
27288
27732
  }
@@ -27315,10 +27759,10 @@
27315
27759
  var _r56_1 = i0__namespace.ɵɵgetCurrentView();
27316
27760
  i0__namespace.ɵɵelementStart(0, "td", 20);
27317
27761
  i0__namespace.ɵɵelementStart(1, "div", 21);
27318
- i0__namespace.ɵɵelementStart(2, "input", 44);
27762
+ i0__namespace.ɵɵelementStart(2, "input", 43);
27319
27763
  i0__namespace.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0__namespace.ɵɵrestoreView(_r56_1); var result_r50 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r54 = i0__namespace.ɵɵnextContext(3); return ctx_r54.changeSelection(result_r50); })("keyup", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_keyup_2_listener($event) { i0__namespace.ɵɵrestoreView(_r56_1); var result_r50 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r57 = i0__namespace.ɵɵnextContext(3); return ctx_r57.onKeyUp($event, result_r50); });
27320
27764
  i0__namespace.ɵɵelementEnd();
27321
- i0__namespace.ɵɵelement(3, "label", 33);
27765
+ i0__namespace.ɵɵelement(3, "label", 32);
27322
27766
  i0__namespace.ɵɵelementEnd();
27323
27767
  i0__namespace.ɵɵelementEnd();
27324
27768
  }
@@ -27335,7 +27779,7 @@
27335
27779
  }
27336
27780
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
27337
27781
  if (rf & 1) {
27338
- i0__namespace.ɵɵelement(0, "ccd-field-read", 42);
27782
+ i0__namespace.ɵɵelement(0, "ccd-field-read", 41);
27339
27783
  }
27340
27784
  if (rf & 2) {
27341
27785
  var col_r60 = i0__namespace.ɵɵnextContext(3).$implicit;
@@ -27356,9 +27800,9 @@
27356
27800
  }
27357
27801
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
27358
27802
  if (rf & 1) {
27359
- i0__namespace.ɵɵelementContainerStart(0, 39);
27360
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
27361
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0__namespace.ɵɵtemplateRefExtractor);
27803
+ i0__namespace.ɵɵelementContainerStart(0, 38);
27804
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
27805
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0__namespace.ɵɵtemplateRefExtractor);
27362
27806
  i0__namespace.ɵɵelementContainerEnd();
27363
27807
  }
27364
27808
  if (rf & 2) {
@@ -27372,9 +27816,9 @@
27372
27816
  }
27373
27817
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) {
27374
27818
  if (rf & 1) {
27375
- i0__namespace.ɵɵelementStart(0, "a", 37);
27819
+ i0__namespace.ɵɵelementStart(0, "a", 36);
27376
27820
  i0__namespace.ɵɵpipe(1, "ccdCaseReference");
27377
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
27821
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
27378
27822
  i0__namespace.ɵɵelementEnd();
27379
27823
  }
27380
27824
  if (rf & 2) {
@@ -27388,8 +27832,8 @@
27388
27832
  }
27389
27833
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) {
27390
27834
  if (rf & 1) {
27391
- i0__namespace.ɵɵelementStart(0, "div", 39);
27392
- i0__namespace.ɵɵelement(1, "ccd-field-read", 42);
27835
+ i0__namespace.ɵɵelementStart(0, "div", 38);
27836
+ i0__namespace.ɵɵelement(1, "ccd-field-read", 41);
27393
27837
  i0__namespace.ɵɵelementEnd();
27394
27838
  }
27395
27839
  if (rf & 2) {
@@ -27403,9 +27847,9 @@
27403
27847
  }
27404
27848
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) {
27405
27849
  if (rf & 1) {
27406
- i0__namespace.ɵɵelementStart(0, "td", 34);
27407
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
27408
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
27850
+ i0__namespace.ɵɵelementStart(0, "td", 33);
27851
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
27852
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
27409
27853
  i0__namespace.ɵɵelementEnd();
27410
27854
  }
27411
27855
  if (rf & 2) {
@@ -27420,7 +27864,7 @@
27420
27864
  if (rf & 1) {
27421
27865
  i0__namespace.ɵɵelementStart(0, "td");
27422
27866
  i0__namespace.ɵɵelementStart(1, "div");
27423
- i0__namespace.ɵɵelement(2, "ccd-activity", 43);
27867
+ i0__namespace.ɵɵelement(2, "ccd-activity", 42);
27424
27868
  i0__namespace.ɵɵelementEnd();
27425
27869
  i0__namespace.ɵɵelementEnd();
27426
27870
  }
@@ -27437,7 +27881,7 @@
27437
27881
  if (rf & 1) {
27438
27882
  i0__namespace.ɵɵelementStart(0, "tr");
27439
27883
  i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
27440
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 31);
27884
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
27441
27885
  i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
27442
27886
  i0__namespace.ɵɵelementEnd();
27443
27887
  }
@@ -27479,7 +27923,7 @@
27479
27923
  i0__namespace.ɵɵelementStart(7, "thead");
27480
27924
  i0__namespace.ɵɵelementStart(8, "tr", 7);
27481
27925
  i0__namespace.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
27482
- i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 4, "th", 9);
27926
+ i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
27483
27927
  i0__namespace.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
27484
27928
  i0__namespace.ɵɵelementEnd();
27485
27929
  i0__namespace.ɵɵelementEnd();
@@ -27514,7 +27958,7 @@
27514
27958
  function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
27515
27959
  if (rf & 1) {
27516
27960
  var _r78_1 = i0__namespace.ɵɵgetCurrentView();
27517
- i0__namespace.ɵɵelementStart(0, "ccd-pagination", 45);
27961
+ i0__namespace.ɵɵelementStart(0, "ccd-pagination", 44);
27518
27962
  i0__namespace.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r78_1); var ctx_r77 = i0__namespace.ɵɵnextContext(); return ctx_r77.goToPage($event); });
27519
27963
  i0__namespace.ɵɵelementEnd();
27520
27964
  }
@@ -27525,7 +27969,7 @@
27525
27969
  }
27526
27970
  function SearchResultComponent_div_2_Template(rf, ctx) {
27527
27971
  if (rf & 1) {
27528
- i0__namespace.ɵɵelementStart(0, "div", 46);
27972
+ i0__namespace.ɵɵelementStart(0, "div", 45);
27529
27973
  i0__namespace.ɵɵtext(1, " No cases found. Try using different filters.\n");
27530
27974
  i0__namespace.ɵɵelementEnd();
27531
27975
  }
@@ -27887,7 +28331,7 @@
27887
28331
  SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
27888
28332
  SearchResultComponent.PARAM_CASE_STATE = 'case-state';
27889
28333
  SearchResultComponent.ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0__namespace.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(ActivityService), i0__namespace.ɵɵdirectiveInject(CaseReferencePipe), i0__namespace.ɵɵdirectiveInject(exports.PlaceholderService), i0__namespace.ɵɵdirectiveInject(BrowserService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
27890
- SearchResultComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["aria-describedby", "search results", 1, "search-result-column-header"], ["scope", "col"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) {
28334
+ SearchResultComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) {
27891
28335
  if (rf & 1) {
27892
28336
  i0__namespace.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 15, 9, "table", 0);
27893
28337
  i0__namespace.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
@@ -27900,7 +28344,7 @@
27900
28344
  i0__namespace.ɵɵadvance(1);
27901
28345
  i0__namespace.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
27902
28346
  }
27903
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
28347
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$7.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
27904
28348
  (function () {
27905
28349
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchResultComponent, [{
27906
28350
  type: i0.Component,
@@ -27958,7 +28402,7 @@
27958
28402
  BrowserService
27959
28403
  ], imports: [[
27960
28404
  i1.CommonModule,
27961
- i1$6.NgxPaginationModule,
28405
+ i1$7.NgxPaginationModule,
27962
28406
  i1$1.RouterModule,
27963
28407
  i1$2.FormsModule,
27964
28408
  i1$2.ReactiveFormsModule,
@@ -27970,7 +28414,7 @@
27970
28414
  ]] });
27971
28415
  (function () {
27972
28416
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
27973
- i1$6.NgxPaginationModule,
28417
+ i1$7.NgxPaginationModule,
27974
28418
  i1$1.RouterModule,
27975
28419
  i1$2.FormsModule,
27976
28420
  i1$2.ReactiveFormsModule,
@@ -27986,7 +28430,7 @@
27986
28430
  args: [{
27987
28431
  imports: [
27988
28432
  i1.CommonModule,
27989
- i1$6.NgxPaginationModule,
28433
+ i1$7.NgxPaginationModule,
27990
28434
  i1$1.RouterModule,
27991
28435
  i1$2.FormsModule,
27992
28436
  i1$2.ReactiveFormsModule,
@@ -28316,6 +28760,8 @@
28316
28760
  exports.CaseFieldService = CaseFieldService;
28317
28761
  exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
28318
28762
  exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
28763
+ exports.CaseFileViewFolderSortComponent = CaseFileViewFolderSortComponent;
28764
+ exports.CaseFileViewOverlayMenuComponent = CaseFileViewOverlayMenuComponent;
28319
28765
  exports.CaseFileViewService = CaseFileViewService;
28320
28766
  exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
28321
28767
  exports.CaseHeaderComponent = CaseHeaderComponent;