@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-error-message-display → 5.0.25-case-file-sort-documents

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 (45) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +510 -169
  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 +21 -53
  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 +135 -54
  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/search-result/search-result.component.js +12 -10
  15. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +92 -0
  16. package/esm2015/lib/shared/domain/case-file-view/index.js +2 -2
  17. package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +6 -5
  18. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +453 -158
  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 +4 -7
  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 +5 -1
  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/lib/shared/services/case-file-view/case-file-view.service.d.ts +3 -2
  41. package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
  42. package/package.json +1 -1
  43. package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +0 -2
  44. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +0 -7
  45. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +0 -1
@@ -19,11 +19,13 @@ import { isUndefined } from 'util';
19
19
  import { StateMachine } from '@edium/fsm';
20
20
  import * as i1$4 from 'ngx-md';
21
21
  import { NgxMdModule } from 'ngx-md';
22
- import * as i1$5 from '@angular/cdk/tree';
22
+ import * as i2 from '@angular/cdk/tree';
23
23
  import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
24
+ import * as i1$5 from '@angular/cdk/overlay';
25
+ import { OverlayModule } from '@angular/cdk/overlay';
24
26
  import * as i1$6 from '@angular/material/dialog';
25
27
  import { MatDialogConfig } from '@angular/material/dialog';
26
- import * as i2 from '@nicky-lenaers/ngx-scroll-to';
28
+ import * as i2$1 from '@nicky-lenaers/ngx-scroll-to';
27
29
  import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
28
30
  import * as i4 from '@angular-material-components/datetime-picker';
29
31
  import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
@@ -110,13 +112,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
110
112
  i0.ɵɵadvance(3);
111
113
  i0.ɵɵtextInterpolate(ctx_r1.workhours);
112
114
  } }
113
- const _c0$P = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
115
+ const _c0$Q = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
114
116
  const _c1$n = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
115
117
  class FooterComponent {
116
118
  }
117
119
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
118
120
  FooterComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
119
- i0.ɵɵprojectionDef(_c0$P);
121
+ i0.ɵɵprojectionDef(_c0$Q);
120
122
  i0.ɵɵelementStart(0, "footer", 0);
121
123
  i0.ɵɵelementStart(1, "div", 1);
122
124
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -183,7 +185,7 @@ function HeaderBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
183
185
  i0.ɵɵadvance(3);
184
186
  i0.ɵɵtextInterpolate(ctx_r2.title);
185
187
  } }
186
- const _c0$O = [[["", "headerNavigation", ""]]];
188
+ const _c0$P = [[["", "headerNavigation", ""]]];
187
189
  const _c1$m = ["[headerNavigation]"];
188
190
  class HeaderBarComponent {
189
191
  constructor() {
@@ -195,7 +197,7 @@ class HeaderBarComponent {
195
197
  }
196
198
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
197
199
  HeaderBarComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
198
- i0.ɵɵprojectionDef(_c0$O);
200
+ i0.ɵɵprojectionDef(_c0$P);
199
201
  i0.ɵɵelementStart(0, "header", 0);
200
202
  i0.ɵɵelementStart(1, "div", 1);
201
203
  i0.ɵɵelementStart(2, "div", 2);
@@ -252,13 +254,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
252
254
  type: Output
253
255
  }] }); })();
254
256
 
255
- const _c0$N = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
257
+ const _c0$O = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
256
258
  const _c1$l = ["[leftNavLinks]", "[rightNavLinks]"];
257
259
  class NavigationComponent {
258
260
  }
259
261
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
260
262
  NavigationComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
261
- i0.ɵɵprojectionDef(_c0$N);
263
+ i0.ɵɵprojectionDef(_c0$O);
262
264
  i0.ɵɵelementStart(0, "div");
263
265
  i0.ɵɵelementStart(1, "nav", 0);
264
266
  i0.ɵɵprojection(2);
@@ -375,13 +377,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
375
377
  }]
376
378
  }], null, null); })();
377
379
 
378
- const _c0$M = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
380
+ const _c0$N = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
379
381
  const _c1$k = ["[topBody]", "[leftBody]", "[rightBody]"];
380
382
  class BodyComponent {
381
383
  }
382
384
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
383
385
  BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$k, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
384
- i0.ɵɵprojectionDef(_c0$M);
386
+ i0.ɵɵprojectionDef(_c0$N);
385
387
  i0.ɵɵelementStart(0, "div", 0);
386
388
  i0.ɵɵprojection(1);
387
389
  i0.ɵɵprojection(2, 1);
@@ -398,7 +400,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
398
400
  }]
399
401
  }], null, null); })();
400
402
 
401
- const _c0$L = function (a0) { return { "govuk-input--error": a0 }; };
403
+ const _c0$M = function (a0) { return { "govuk-input--error": a0 }; };
402
404
  function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
403
405
  const _r8 = i0.ɵɵgetCurrentView();
404
406
  i0.ɵɵelementStart(0, "div", 12);
@@ -414,7 +416,7 @@ function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
414
416
  i0.ɵɵadvance(1);
415
417
  i0.ɵɵproperty("for", ctx_r3.hourId());
416
418
  i0.ɵɵadvance(2);
417
- i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$L, ctx_r3.isInvalid));
419
+ i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$M, ctx_r3.isInvalid));
418
420
  } }
419
421
  function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
420
422
  const _r13 = i0.ɵɵgetCurrentView();
@@ -431,7 +433,7 @@ function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
431
433
  i0.ɵɵadvance(1);
432
434
  i0.ɵɵproperty("for", ctx_r4.minuteId());
433
435
  i0.ɵɵadvance(2);
434
- i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$L, ctx_r4.isInvalid));
436
+ i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$M, ctx_r4.isInvalid));
435
437
  } }
436
438
  function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
437
439
  const _r18 = i0.ɵɵgetCurrentView();
@@ -448,7 +450,7 @@ function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
448
450
  i0.ɵɵadvance(1);
449
451
  i0.ɵɵproperty("for", ctx_r5.secondId());
450
452
  i0.ɵɵadvance(2);
451
- i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$L, ctx_r5.isInvalid));
453
+ i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$M, ctx_r5.isInvalid));
452
454
  } }
453
455
  class DateInputComponent {
454
456
  constructor() {
@@ -677,15 +679,15 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
677
679
  i0.ɵɵadvance(2);
678
680
  i0.ɵɵproperty("for", ctx.dayId());
679
681
  i0.ɵɵadvance(2);
680
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$L, ctx.isInvalid));
682
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$M, ctx.isInvalid));
681
683
  i0.ɵɵadvance(3);
682
684
  i0.ɵɵproperty("for", ctx.monthId());
683
685
  i0.ɵɵadvance(2);
684
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$L, ctx.isInvalid));
686
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$M, ctx.isInvalid));
685
687
  i0.ɵɵadvance(3);
686
688
  i0.ɵɵproperty("for", ctx.yearId());
687
689
  i0.ɵɵadvance(2);
688
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$L, ctx.isInvalid));
690
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$M, ctx.isInvalid));
689
691
  i0.ɵɵadvance(2);
690
692
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
691
693
  i0.ɵɵadvance(1);
@@ -755,7 +757,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
755
757
  i0.ɵɵelementEnd();
756
758
  i0.ɵɵelementContainerEnd();
757
759
  } }
758
- const _c0$K = ["*"];
760
+ const _c0$L = ["*"];
759
761
  var AlertMessageType;
760
762
  (function (AlertMessageType) {
761
763
  AlertMessageType["WARNING"] = "warning";
@@ -775,7 +777,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
775
777
  AlertComponent.TYPE_ERROR = 'error';
776
778
  AlertComponent.TYPE_INFORMATION = 'information';
777
779
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
778
- AlertComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
780
+ AlertComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
779
781
  i0.ɵɵprojectionDef();
780
782
  i0.ɵɵelementStart(0, "div", 0);
781
783
  i0.ɵɵelementContainerStart(1, 1);
@@ -864,7 +866,7 @@ AlertModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
864
866
  }]
865
867
  }], null, null); })();
866
868
 
867
- const _c0$J = function (a0) { return { "js-hidden": a0 }; };
869
+ const _c0$K = function (a0) { return { "js-hidden": a0 }; };
868
870
  const _c1$j = ["*"];
869
871
  class TabComponent {
870
872
  }
@@ -875,7 +877,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
875
877
  i0.ɵɵprojection(1);
876
878
  i0.ɵɵelementEnd();
877
879
  } if (rf & 2) {
878
- i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$J, !ctx.selected));
880
+ i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$K, !ctx.selected));
879
881
  i0.ɵɵattribute("aria-hidden", !ctx.selected);
880
882
  } }, directives: [i1.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}}"] });
881
883
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
@@ -895,7 +897,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
895
897
  type: Input
896
898
  }] }); })();
897
899
 
898
- const _c0$I = ["tab"];
900
+ const _c0$J = ["tab"];
899
901
  const _c1$i = function () { return ["."]; };
900
902
  const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
901
903
  function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
@@ -940,7 +942,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
940
942
  let _t;
941
943
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
942
944
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
943
- i0.ɵɵviewQuery(_c0$I, 1);
945
+ i0.ɵɵviewQuery(_c0$J, 1);
944
946
  } if (rf & 2) {
945
947
  let _t;
946
948
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1005,7 +1007,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
1005
1007
  }]
1006
1008
  }], null, null); })();
1007
1009
 
1008
- const _c0$H = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1010
+ const _c0$I = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1009
1011
  class ActivityBannerComponent {
1010
1012
  constructor() { }
1011
1013
  ngOnInit() {
@@ -1022,7 +1024,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
1022
1024
  i0.ɵɵelementEnd();
1023
1025
  i0.ɵɵelementEnd();
1024
1026
  } if (rf & 2) {
1025
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$H, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1027
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$I, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1026
1028
  i0.ɵɵadvance(2);
1027
1029
  i0.ɵɵpropertyInterpolate("alt", ctx.description);
1028
1030
  i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
@@ -5654,9 +5656,10 @@ CaseFieldService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFieldService, fac
5654
5656
  }], null, null); })();
5655
5657
 
5656
5658
  class CaseFileViewService {
5657
- constructor(http, appConfig) {
5659
+ constructor(http, appConfig, errorService) {
5658
5660
  this.http = http;
5659
5661
  this.appConfig = appConfig;
5662
+ this.errorService = errorService;
5660
5663
  }
5661
5664
  /**
5662
5665
  * Retrieves the categories and documents for a case.
@@ -5686,11 +5689,11 @@ class CaseFileViewService {
5686
5689
  return of(null);
5687
5690
  }
5688
5691
  }
5689
- CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig)); };
5692
+ CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService)); };
5690
5693
  CaseFileViewService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
5691
5694
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewService, [{
5692
5695
  type: Injectable
5693
- }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null); })();
5696
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null); })();
5694
5697
 
5695
5698
  class DocumentManagementService {
5696
5699
  constructor(http, appConfig) {
@@ -7822,7 +7825,7 @@ FieldLabelPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLa
7822
7825
  }]
7823
7826
  }], null, null); })();
7824
7827
 
7825
- const _c0$G = ["writeComplexFieldComponent"];
7828
+ const _c0$H = ["writeComplexFieldComponent"];
7826
7829
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
7827
7830
  i0.ɵɵelementStart(0, "span", 14);
7828
7831
  i0.ɵɵtext(1, "Enter the Postcode");
@@ -8015,7 +8018,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
8015
8018
  }
8016
8019
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
8017
8020
  WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
8018
- i0.ɵɵviewQuery(_c0$G, 1);
8021
+ i0.ɵɵviewQuery(_c0$H, 1);
8019
8022
  i0.ɵɵviewQuery(FocusElementDirective, 1);
8020
8023
  } if (rf & 2) {
8021
8024
  let _t;
@@ -8050,47 +8053,279 @@ WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFi
8050
8053
  type: Input
8051
8054
  }] }); })();
8052
8055
 
8053
- function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) { if (rf & 1) {
8054
- i0.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
8055
- i0.ɵɵelementStart(1, "div", 8);
8056
- i0.ɵɵelement(2, "button", 9);
8057
- i0.ɵɵelementStart(3, "span", 10);
8056
+ class CaseFileViewCategory {
8057
+ }
8058
+
8059
+ class CaseFileViewDocument {
8060
+ }
8061
+
8062
+ /**
8063
+ * DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
8064
+ * @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
8065
+ */
8066
+ class CategoriesAndDocuments {
8067
+ }
8068
+
8069
+ class DocumentTreeNode {
8070
+ get childDocumentCount() {
8071
+ const countChildren = (childNodes) => {
8072
+ let count = 0;
8073
+ if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
8074
+ const documents = childNodes.filter(item => item.type === 'document');
8075
+ count += documents.length;
8076
+ childNodes.forEach((children) => {
8077
+ count += countChildren(children.children);
8078
+ });
8079
+ }
8080
+ return count;
8081
+ };
8082
+ return countChildren(this.children);
8083
+ }
8084
+ sortChildrenAscending() {
8085
+ var _a, _b;
8086
+ const sortAscending = () => {
8087
+ return (a, b) => {
8088
+ const nameA = a.name.toUpperCase(); // ignore upper and lowercase
8089
+ const nameB = b.name.toUpperCase(); // ignore upper and lowercase
8090
+ if (a.type === 'category' || b.type === 'category') {
8091
+ return 0;
8092
+ }
8093
+ if (nameA < nameB) {
8094
+ return -1;
8095
+ }
8096
+ if (nameA > nameB) {
8097
+ return 1;
8098
+ }
8099
+ };
8100
+ };
8101
+ (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
8102
+ (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
8103
+ childNodes.sortChildrenAscending();
8104
+ });
8105
+ }
8106
+ sortChildrenDescending() {
8107
+ var _a, _b;
8108
+ const sortDescending = () => {
8109
+ return (a, b) => {
8110
+ const nameA = a.name.toUpperCase(); // ignore upper and lowercase
8111
+ const nameB = b.name.toUpperCase(); // ignore upper and lowercase
8112
+ if (a.type === 'category' || b.type === 'category') {
8113
+ return 0;
8114
+ }
8115
+ if (nameA > nameB) {
8116
+ return -1;
8117
+ }
8118
+ if (nameA < nameB) {
8119
+ return 1;
8120
+ }
8121
+ };
8122
+ };
8123
+ (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
8124
+ (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
8125
+ childNodes.sortChildrenDescending();
8126
+ });
8127
+ }
8128
+ get flattenedAll() {
8129
+ var _a;
8130
+ const flattenChildren = (nodeChild) => {
8131
+ var _a;
8132
+ const flattenedNodes = [];
8133
+ flattenedNodes.push(nodeChild);
8134
+ if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
8135
+ nodeChild.children.forEach((child) => {
8136
+ flattenedNodes.push(...flattenChildren(child));
8137
+ });
8138
+ }
8139
+ return flattenedNodes;
8140
+ };
8141
+ return [
8142
+ this,
8143
+ ...(_a = this.children) === null || _a === void 0 ? void 0 : _a.map(item => {
8144
+ return flattenChildren(item);
8145
+ }).flat()
8146
+ ];
8147
+ }
8148
+ }
8149
+ __decorate([
8150
+ Type(() => DocumentTreeNode),
8151
+ __metadata("design:type", Array)
8152
+ ], DocumentTreeNode.prototype, "children", void 0);
8153
+ __decorate([
8154
+ Expose(),
8155
+ __metadata("design:type", Object),
8156
+ __metadata("design:paramtypes", [])
8157
+ ], DocumentTreeNode.prototype, "childDocumentCount", null);
8158
+
8159
+ function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
8160
+ i0.ɵɵelementContainerStart(0);
8161
+ i0.ɵɵelementStart(1, "div", 4);
8162
+ i0.ɵɵtext(2);
8163
+ i0.ɵɵelementEnd();
8164
+ i0.ɵɵelementContainerEnd();
8165
+ } if (rf & 2) {
8166
+ const ctx_r1 = i0.ɵɵnextContext(2);
8167
+ i0.ɵɵadvance(2);
8168
+ i0.ɵɵtextInterpolate(ctx_r1.title);
8169
+ } }
8170
+ function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template(rf, ctx) { if (rf & 1) {
8171
+ i0.ɵɵelement(0, "img", 8);
8172
+ } if (rf & 2) {
8173
+ const item_r3 = i0.ɵɵnextContext().$implicit;
8174
+ const ctx_r4 = i0.ɵɵnextContext(2);
8175
+ i0.ɵɵproperty("src", item_r3.iconSrc, i0.ɵɵsanitizeUrl)("alt", ctx_r4.title);
8176
+ } }
8177
+ function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
8178
+ const _r7 = i0.ɵɵgetCurrentView();
8179
+ i0.ɵɵelementContainerStart(0);
8180
+ i0.ɵɵelementStart(1, "div", 5);
8181
+ i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r7); const item_r3 = ctx.$implicit; const ctx_r6 = i0.ɵɵnextContext(2); item_r3.actionFn(); return ctx_r6.closeOverlay(); });
8182
+ i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template, 1, 2, "img", 6);
8183
+ i0.ɵɵelementStart(3, "div", 7);
8058
8184
  i0.ɵɵtext(4);
8059
8185
  i0.ɵɵelementEnd();
8060
8186
  i0.ɵɵelementEnd();
8187
+ i0.ɵɵelementContainerEnd();
8188
+ } if (rf & 2) {
8189
+ const item_r3 = ctx.$implicit;
8190
+ i0.ɵɵadvance(2);
8191
+ i0.ɵɵproperty("ngIf", item_r3.iconSrc);
8192
+ i0.ɵɵadvance(2);
8193
+ i0.ɵɵtextInterpolate(item_r3.actionText);
8194
+ } }
8195
+ function CaseFileViewOverlayMenuComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
8196
+ i0.ɵɵelementStart(0, "div", 1);
8197
+ i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template, 3, 1, "ng-container", 2);
8198
+ i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template, 5, 2, "ng-container", 3);
8061
8199
  i0.ɵɵelementEnd();
8062
8200
  } if (rf & 2) {
8063
- const node_r2 = ctx.$implicit;
8064
- i0.ɵɵadvance(4);
8065
- i0.ɵɵtextInterpolate(node_r2.name);
8201
+ const ctx_r0 = i0.ɵɵnextContext();
8202
+ i0.ɵɵadvance(1);
8203
+ i0.ɵɵproperty("ngIf", ctx_r0.title);
8204
+ i0.ɵɵadvance(1);
8205
+ i0.ɵɵproperty("ngForOf", ctx_r0.menuItems);
8066
8206
  } }
8067
- function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) { if (rf & 1) {
8068
- i0.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
8069
- i0.ɵɵelementStart(1, "div", 8);
8070
- i0.ɵɵelementStart(2, "button", 11);
8071
- i0.ɵɵelementStart(3, "span", 12);
8072
- i0.ɵɵtext(4);
8207
+ class CaseFileViewOverlayMenuComponent {
8208
+ constructor() {
8209
+ this.title = '';
8210
+ this.isOpen = false;
8211
+ this.isOpenChange = new EventEmitter();
8212
+ }
8213
+ closeOverlay() {
8214
+ const isOpen = false;
8215
+ this.isOpen = isOpen;
8216
+ this.isOpenChange.emit(isOpen);
8217
+ }
8218
+ }
8219
+ CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
8220
+ CaseFileViewOverlayMenuComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
8221
+ i0.ɵɵtemplate(0, CaseFileViewOverlayMenuComponent_ng_template_0_Template, 3, 2, "ng-template", 0);
8222
+ } if (rf & 2) {
8223
+ i0.ɵɵproperty("cdkConnectedOverlayOrigin", ctx.cdkOverlayOrigin)("cdkConnectedOverlayOpen", ctx.isOpen);
8224
+ } }, directives: [i1$5.CdkConnectedOverlay, i1.NgIf, i1.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}"] });
8225
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
8226
+ type: Component,
8227
+ args: [{
8228
+ selector: 'ccd-case-file-view-overlay-menu',
8229
+ templateUrl: './case-file-view-overlay-menu.component.html',
8230
+ styleUrls: ['./case-file-view-overlay-menu.component.scss']
8231
+ }]
8232
+ }], null, { title: [{
8233
+ type: Input
8234
+ }], menuItems: [{
8235
+ type: Input
8236
+ }], cdkOverlayOrigin: [{
8237
+ type: Input
8238
+ }], isOpen: [{
8239
+ type: Input
8240
+ }], isOpenChange: [{
8241
+ type: Output
8242
+ }] }); })();
8243
+
8244
+ class CaseFileViewFolderSortComponent {
8245
+ constructor() {
8246
+ this.isOpen = false;
8247
+ this.sortAscending = new EventEmitter();
8248
+ this.sortDescending = new EventEmitter();
8249
+ this.overlayMenuItems = [
8250
+ { actionText: 'A to Z descending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() },
8251
+ { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() },
8252
+ ];
8253
+ }
8254
+ ngOnInit() {
8255
+ }
8256
+ }
8257
+ CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
8258
+ CaseFileViewFolderSortComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
8259
+ i0.ɵɵelementStart(0, "button", 0, 1);
8260
+ i0.ɵɵlistener("click", function CaseFileViewFolderSortComponent_Template_button_click_0_listener() { return ctx.isOpen = !ctx.isOpen; });
8261
+ i0.ɵɵelement(2, "img", 2);
8262
+ i0.ɵɵelementEnd();
8263
+ i0.ɵɵelementStart(3, "ccd-case-file-view-overlay-menu", 3);
8264
+ i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_3_listener($event) { return ctx.isOpen = $event; });
8265
+ i0.ɵɵelementEnd();
8266
+ } if (rf & 2) {
8267
+ const _r0 = i0.ɵɵreference(1);
8268
+ i0.ɵɵadvance(3);
8269
+ i0.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("cdkOverlayOrigin", _r0)("isOpen", ctx.isOpen);
8270
+ } }, directives: [i1$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}"] });
8271
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
8272
+ type: Component,
8273
+ args: [{
8274
+ selector: 'ccd-case-file-view-folder-sort',
8275
+ templateUrl: './case-file-view-folder-sort.component.html',
8276
+ styleUrls: ['./case-file-view-folder-sort.component.scss']
8277
+ }]
8278
+ }], function () { return []; }, { sortAscending: [{
8279
+ type: Output
8280
+ }], sortDescending: [{
8281
+ type: Output
8282
+ }] }); })();
8283
+
8284
+ const _c0$G = ["tree"];
8285
+ function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) { if (rf & 1) {
8286
+ i0.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
8287
+ i0.ɵɵelementStart(1, "div", 9);
8288
+ i0.ɵɵelementStart(2, "button", 10);
8289
+ i0.ɵɵelement(3, "img", 11);
8073
8290
  i0.ɵɵelementEnd();
8291
+ i0.ɵɵelementStart(4, "span", 12);
8292
+ i0.ɵɵtext(5);
8074
8293
  i0.ɵɵelementEnd();
8075
- i0.ɵɵelementStart(5, "span", 13);
8076
- i0.ɵɵtext(6);
8077
8294
  i0.ɵɵelementEnd();
8078
8295
  i0.ɵɵelementEnd();
8079
- i0.ɵɵelementStart(7, "div");
8080
- i0.ɵɵelementContainer(8, 14);
8296
+ } if (rf & 2) {
8297
+ const node_r3 = ctx.$implicit;
8298
+ i0.ɵɵadvance(5);
8299
+ i0.ɵɵtextInterpolate(node_r3.name);
8300
+ } }
8301
+ function CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template(rf, ctx) { if (rf & 1) {
8302
+ i0.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
8303
+ i0.ɵɵelementStart(1, "div", 13);
8304
+ i0.ɵɵelementStart(2, "button", 14);
8305
+ i0.ɵɵelement(3, "img", 15);
8306
+ i0.ɵɵelementStart(4, "span", 16);
8307
+ i0.ɵɵtext(5);
8308
+ i0.ɵɵelementEnd();
8309
+ i0.ɵɵelementEnd();
8310
+ i0.ɵɵelementStart(6, "span", 17);
8311
+ i0.ɵɵtext(7);
8312
+ i0.ɵɵelementEnd();
8313
+ i0.ɵɵelementEnd();
8314
+ i0.ɵɵelementStart(8, "div");
8315
+ i0.ɵɵelementContainer(9, 18);
8081
8316
  i0.ɵɵelementEnd();
8082
8317
  i0.ɵɵelementEnd();
8083
8318
  } if (rf & 2) {
8084
- const node_r3 = ctx.$implicit;
8085
- const ctx_r1 = i0.ɵɵnextContext();
8086
- i0.ɵɵadvance(2);
8087
- i0.ɵɵattribute("aria-label", "toggle " + node_r3.name);
8319
+ const node_r4 = ctx.$implicit;
8320
+ const ctx_r2 = i0.ɵɵnextContext();
8088
8321
  i0.ɵɵadvance(2);
8089
- i0.ɵɵtextInterpolate(node_r3.count);
8322
+ i0.ɵɵattribute("aria-label", "toggle " + node_r4.name);
8323
+ i0.ɵɵadvance(3);
8324
+ i0.ɵɵtextInterpolate(node_r4.childDocumentCount);
8090
8325
  i0.ɵɵadvance(2);
8091
- i0.ɵɵtextInterpolate(node_r3.name);
8326
+ i0.ɵɵtextInterpolate(node_r4.name);
8092
8327
  i0.ɵɵadvance(1);
8093
- i0.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
8328
+ i0.ɵɵclassProp("document-tree-invisible", !ctx_r2.nestedTreeControl.isExpanded(node_r4));
8094
8329
  } }
8095
8330
  class CaseFileViewFolderComponent {
8096
8331
  constructor() {
@@ -8115,35 +8350,84 @@ class CaseFileViewFolderComponent {
8115
8350
  });
8116
8351
  }
8117
8352
  generateTreeData(categories) {
8118
- return categories.reduce((tree, node) => [
8119
- ...tree,
8120
- ...[
8121
- {
8122
- name: node.category_name,
8123
- children: [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)]
8124
- },
8125
- ],
8126
- ], []);
8353
+ return categories.reduce((tree, node) => {
8354
+ const newDocumentTreeNode = new DocumentTreeNode();
8355
+ newDocumentTreeNode.name = node.category_name;
8356
+ newDocumentTreeNode.type = 'category';
8357
+ newDocumentTreeNode.children = [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)];
8358
+ return [
8359
+ ...tree,
8360
+ newDocumentTreeNode,
8361
+ ];
8362
+ }, []);
8127
8363
  }
8128
8364
  getDocuments(documents) {
8129
8365
  const documentsToReturn = [];
8130
8366
  documents.forEach(document => {
8131
- documentsToReturn.push({ name: document.document_filename });
8367
+ const documentTreeNode = new DocumentTreeNode();
8368
+ documentTreeNode.name = document.document_filename;
8369
+ documentTreeNode.type = 'document';
8370
+ documentsToReturn.push(documentTreeNode);
8132
8371
  });
8133
8372
  return documentsToReturn;
8134
8373
  }
8135
8374
  getUncategorisedDocuments(uncategorisedDocuments) {
8136
8375
  const documents = [];
8137
8376
  uncategorisedDocuments.forEach(document => {
8138
- documents.push({ name: document.document_filename });
8377
+ const documentTreeNode = new DocumentTreeNode();
8378
+ documentTreeNode.name = document.document_filename;
8379
+ documentTreeNode.type = 'document';
8380
+ documents.push(documentTreeNode);
8381
+ });
8382
+ const uncategorisedNode = new DocumentTreeNode();
8383
+ uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
8384
+ uncategorisedNode.type = 'category';
8385
+ uncategorisedNode.children = documents;
8386
+ return uncategorisedNode;
8387
+ }
8388
+ sortDataSourceAscAlphabetically() {
8389
+ const sortedData = this.nestedDataSource.map(item => {
8390
+ item.sortChildrenAscending();
8391
+ const newDocumentTreeNode = new DocumentTreeNode();
8392
+ newDocumentTreeNode.name = item.name;
8393
+ newDocumentTreeNode.type = item.type;
8394
+ newDocumentTreeNode.children = item.children;
8395
+ return newDocumentTreeNode;
8396
+ });
8397
+ this.updateNodeData(sortedData);
8398
+ }
8399
+ sortDataSourceDescAlphabetically() {
8400
+ const sortedData = this.nestedDataSource.map(item => {
8401
+ item.sortChildrenDescending();
8402
+ return item;
8139
8403
  });
8140
- return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, children: documents };
8404
+ this.updateNodeData(sortedData);
8141
8405
  }
8142
8406
  ngOnDestroy() {
8143
8407
  if (this.categoriesAndDocumentsSubscription) {
8144
8408
  this.categoriesAndDocumentsSubscription.unsubscribe();
8145
8409
  }
8146
8410
  }
8411
+ updateNodeData(data) {
8412
+ const prevSelected = this.nestedTreeControl.expansionModel.selected.map((item) => {
8413
+ return item.name;
8414
+ });
8415
+ this.nestedTreeControl.collapseAll();
8416
+ this.nestedDataSource = data.map((item) => {
8417
+ const newDocumentTreeNode = new DocumentTreeNode();
8418
+ newDocumentTreeNode.name = item.name;
8419
+ newDocumentTreeNode.type = item.type;
8420
+ newDocumentTreeNode.children = item.children;
8421
+ return newDocumentTreeNode;
8422
+ });
8423
+ const flattenedArray = this.nestedDataSource.map((item) => {
8424
+ return item.flattenedAll;
8425
+ }).flat();
8426
+ const newObjects = flattenedArray.filter((item) => {
8427
+ return prevSelected.includes(item.name);
8428
+ });
8429
+ newObjects.forEach(object => this.nestedTreeControl.expand(object));
8430
+ }
8147
8431
  loadCategories() {
8148
8432
  return [
8149
8433
  {
@@ -8151,12 +8435,26 @@ class CaseFileViewFolderComponent {
8151
8435
  category_name: 'Beers',
8152
8436
  category_order: 1,
8153
8437
  documents: [
8438
+ {
8439
+ document_url: '/test',
8440
+ document_filename: 'Lager encyclopedia',
8441
+ document_binary_url: '/test/binary',
8442
+ attribute_path: '',
8443
+ upload_timestamp: ''
8444
+ },
8154
8445
  {
8155
8446
  document_url: '/test',
8156
8447
  document_filename: 'Beers encyclopedia',
8157
8448
  document_binary_url: '/test/binary',
8158
8449
  attribute_path: '',
8159
8450
  upload_timestamp: ''
8451
+ },
8452
+ {
8453
+ document_url: '/test',
8454
+ document_filename: 'Ale encyclopedia',
8455
+ document_binary_url: '/test/binary',
8456
+ attribute_path: '',
8457
+ upload_timestamp: ''
8160
8458
  }
8161
8459
  ],
8162
8460
  sub_categories: [
@@ -8307,80 +8605,57 @@ class CaseFileViewFolderComponent {
8307
8605
  }
8308
8606
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
8309
8607
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
8310
- CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 8, vars: 3, consts: [[1, "document-filter-container"], [1, "document-filter"], [1, "documents-title"], [1, "document-tree-container"], [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", "", "disabled", "", 1, "icon", "icon-document"], [1, "node-name", "node-name-document"], ["mat-icon-button", "", "cdkTreeNodeToggle", "", 1, "icon", "icon-folder"], [1, "document-count"], [1, "node-name", "node-name-folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
8608
+ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], viewQuery: function CaseFileViewFolderComponent_Query(rf, ctx) { if (rf & 1) {
8609
+ i0.ɵɵviewQuery(_c0$G, 3);
8610
+ } if (rf & 2) {
8611
+ let _t;
8612
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tree = _t.first);
8613
+ } }, 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) { if (rf & 1) {
8311
8614
  i0.ɵɵelementStart(0, "div", 0);
8312
- i0.ɵɵelement(1, "div", 1);
8313
- i0.ɵɵelementStart(2, "div", 2);
8314
- i0.ɵɵtext(3, "Documents");
8615
+ i0.ɵɵelementStart(1, "div", 1);
8616
+ i0.ɵɵtext(2, "Documents");
8315
8617
  i0.ɵɵelementEnd();
8618
+ i0.ɵɵelementStart(3, "div");
8619
+ i0.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
8620
+ i0.ɵɵ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(); });
8316
8621
  i0.ɵɵelementEnd();
8317
- i0.ɵɵelementStart(4, "div", 3);
8318
- i0.ɵɵelementStart(5, "cdk-tree", 4);
8319
- i0.ɵɵtemplate(6, CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template, 5, 1, "cdk-nested-tree-node", 5);
8320
- i0.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 9, 5, "cdk-nested-tree-node", 6);
8622
+ i0.ɵɵelementEnd();
8623
+ i0.ɵɵelementEnd();
8624
+ i0.ɵɵelementStart(5, "div", 3);
8625
+ i0.ɵɵelementStart(6, "cdk-tree", 4, 5);
8626
+ i0.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 6, 1, "cdk-nested-tree-node", 6);
8627
+ i0.ɵɵtemplate(9, CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template, 10, 5, "cdk-nested-tree-node", 7);
8321
8628
  i0.ɵɵelementEnd();
8322
8629
  i0.ɵɵelementEnd();
8323
8630
  } if (rf & 2) {
8324
- i0.ɵɵadvance(5);
8631
+ i0.ɵɵadvance(6);
8325
8632
  i0.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
8326
- i0.ɵɵadvance(2);
8633
+ i0.ɵɵadvance(3);
8327
8634
  i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
8328
- } }, directives: [i1$5.CdkTree, i1$5.CdkTreeNodeDef, i1$5.CdkNestedTreeNode, i1$5.CdkTreeNodeToggle, i1$5.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{height:60px;border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;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}.document-tree-container[_ngcontent-%COMP%] .node[_ngcontent-%COMP%]{display:flex;padding:4px}.document-tree-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;background-size:100%;border:0;background-color:#fff}.document-tree-container[_ngcontent-%COMP%] .icon-folder[_ngcontent-%COMP%]{background-image:url(/assets/images/folder.png)}.document-tree-container[_ngcontent-%COMP%] .icon-document[_ngcontent-%COMP%]{background-image:url(/assets/images/document.png)}.document-tree-container[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{margin-left:6px}.document-tree-container[_ngcontent-%COMP%] .node-name-document[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .node-name-folder[_ngcontent-%COMP%]{margin-top:4px}.document-tree-container[_ngcontent-%COMP%] .document-count[_ngcontent-%COMP%]{color:#fff}"] });
8635
+ } }, directives: [CaseFileViewFolderSortComponent, i2.CdkTree, i2.CdkTreeNodeDef, i2.CdkNestedTreeNode, i2.CdkTreeNodeToggle, i2.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}"] });
8329
8636
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
8330
8637
  type: Component,
8331
8638
  args: [{
8332
8639
  selector: 'ccd-case-file-view-folder',
8640
+ templateUrl: './case-file-view-folder.component.html',
8333
8641
  styleUrls: ['./case-file-view-folder.component.scss'],
8334
- templateUrl: './case-file-view-folder.component.html'
8335
8642
  }]
8336
8643
  }], function () { return []; }, { categoriesAndDocuments: [{
8337
8644
  type: Input
8645
+ }], tree: [{
8646
+ type: ViewChild,
8647
+ args: ['tree', { static: true }]
8338
8648
  }] }); })();
8339
8649
 
8340
- function CaseFileViewFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
8341
- i0.ɵɵelementStart(0, "div", 2);
8342
- i0.ɵɵelementStart(1, "h1", 3);
8343
- i0.ɵɵtext(2, "Sorry, there is a problem with the service");
8344
- i0.ɵɵelementEnd();
8345
- i0.ɵɵelementStart(3, "p", 4);
8346
- i0.ɵɵtext(4, "Try again later.");
8347
- i0.ɵɵelementEnd();
8348
- i0.ɵɵelementEnd();
8349
- } }
8350
- function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
8351
- i0.ɵɵelementStart(0, "div");
8352
- i0.ɵɵelementStart(1, "h2", 5);
8353
- i0.ɵɵtext(2, "Case file");
8354
- i0.ɵɵelementEnd();
8355
- i0.ɵɵelementStart(3, "div", 6);
8356
- i0.ɵɵelementStart(4, "div", 7);
8357
- i0.ɵɵelement(5, "ccd-case-file-view-folder", 8);
8358
- i0.ɵɵelementEnd();
8359
- i0.ɵɵelement(6, "div", 9);
8360
- i0.ɵɵelementStart(7, "div", 10);
8361
- i0.ɵɵtext(8, " Media viewer ");
8362
- i0.ɵɵelementEnd();
8363
- i0.ɵɵelementEnd();
8364
- i0.ɵɵelementEnd();
8365
- } if (rf & 2) {
8366
- const ctx_r1 = i0.ɵɵnextContext();
8367
- i0.ɵɵadvance(5);
8368
- i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
8369
- } }
8370
8650
  class CaseFileViewFieldComponent {
8371
8651
  constructor(elementRef, route, caseFileViewService) {
8372
8652
  this.elementRef = elementRef;
8373
8653
  this.route = route;
8374
8654
  this.caseFileViewService = caseFileViewService;
8375
- this.getCategoriesAndDocumentsError = false;
8376
8655
  }
8377
8656
  ngOnInit() {
8378
8657
  const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
8379
8658
  this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
8380
- this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
8381
- next: _ => { },
8382
- error: _ => this.getCategoriesAndDocumentsError = true
8383
- });
8384
8659
  }
8385
8660
  ngAfterViewInit() {
8386
8661
  const slider = this.elementRef.nativeElement.querySelector('.slider');
@@ -8404,28 +8679,32 @@ class CaseFileViewFieldComponent {
8404
8679
  documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
8405
8680
  });
8406
8681
  }
8407
- ngOnDestroy() {
8408
- if (this.categoriesAndDocumentsSubscription) {
8409
- this.categoriesAndDocumentsSubscription.unsubscribe();
8410
- }
8411
- }
8412
8682
  }
8413
8683
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
8414
8684
  CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService)); };
8415
- CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
8416
- i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
8417
- i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 1, "div", 1);
8685
+ CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 1, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
8686
+ i0.ɵɵelementStart(0, "h2", 0);
8687
+ i0.ɵɵtext(1, "Case file");
8688
+ i0.ɵɵelementEnd();
8689
+ i0.ɵɵelementStart(2, "div", 1);
8690
+ i0.ɵɵelementStart(3, "div", 2);
8691
+ i0.ɵɵelement(4, "ccd-case-file-view-folder", 3);
8692
+ i0.ɵɵelementEnd();
8693
+ i0.ɵɵelement(5, "div", 4);
8694
+ i0.ɵɵelementStart(6, "div", 5);
8695
+ i0.ɵɵtext(7, " Media viewer ");
8696
+ i0.ɵɵelementEnd();
8697
+ i0.ɵɵelementEnd();
8418
8698
  } if (rf & 2) {
8419
- i0.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
8420
- i0.ɵɵadvance(1);
8421
- i0.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
8422
- } }, directives: [i1.NgIf, CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{flex:1 1 0%}"] });
8699
+ i0.ɵɵadvance(4);
8700
+ i0.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
8701
+ } }, directives: [CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{flex:1 1 0%}"] });
8423
8702
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
8424
8703
  type: Component,
8425
8704
  args: [{
8426
8705
  selector: 'ccd-case-file-view-field',
8427
8706
  templateUrl: './case-file-view-field.component.html',
8428
- styleUrls: ['./case-file-view-field.component.scss']
8707
+ styleUrls: ['./case-file-view-field.component.scss'],
8429
8708
  }]
8430
8709
  }], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null); })();
8431
8710
 
@@ -9164,7 +9443,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
9164
9443
  return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
9165
9444
  }
9166
9445
  }
9167
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
9446
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
9168
9447
  WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
9169
9448
  i0.ɵɵviewQuery(_c0$D, 1);
9170
9449
  } if (rf & 2) {
@@ -9206,7 +9485,7 @@ WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollec
9206
9485
  templateUrl: './write-collection-field.html',
9207
9486
  styleUrls: ['./collection-field.scss']
9208
9487
  }]
9209
- }], function () { return [{ type: i1$6.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
9488
+ }], function () { return [{ type: i1$6.MatDialog }, { type: i2$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
9210
9489
  type: Input
9211
9490
  }], formGroup: [{
9212
9491
  type: Input
@@ -16830,7 +17109,9 @@ const PALETTE_COMPONENTS = [
16830
17109
  WriteCollectionFieldComponent,
16831
17110
  // ComponentLauncher web components
16832
17111
  CaseFileViewFieldComponent,
16833
- CaseFileViewFolderComponent
17112
+ CaseFileViewFolderComponent,
17113
+ CaseFileViewFolderSortComponent,
17114
+ CaseFileViewOverlayMenuComponent
16834
17115
  ];
16835
17116
  class PaletteModule {
16836
17117
  }
@@ -16868,6 +17149,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
16868
17149
  MatDatepickerModule,
16869
17150
  MatAutocompleteModule,
16870
17151
  CdkTreeModule,
17152
+ OverlayModule,
16871
17153
  PaymentLibModule,
16872
17154
  ScrollToModule.forRoot()
16873
17155
  ], NgxMatDatetimePickerModule,
@@ -16951,7 +17233,9 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
16951
17233
  WriteCollectionFieldComponent,
16952
17234
  // ComponentLauncher web components
16953
17235
  CaseFileViewFieldComponent,
16954
- CaseFileViewFolderComponent], imports: [CommonModule,
17236
+ CaseFileViewFolderComponent,
17237
+ CaseFileViewFolderSortComponent,
17238
+ CaseFileViewOverlayMenuComponent, CaseFileViewOverlayMenuComponent], imports: [CommonModule,
16955
17239
  RouterModule,
16956
17240
  FormsModule,
16957
17241
  ReactiveFormsModule,
@@ -16973,7 +17257,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
16973
17257
  MatDatepickerModule,
16974
17258
  MatAutocompleteModule,
16975
17259
  CdkTreeModule,
16976
- PaymentLibModule, i2.ScrollToModule], exports: [NgxMatDatetimePickerModule,
17260
+ OverlayModule,
17261
+ PaymentLibModule, i2$1.ScrollToModule], exports: [NgxMatDatetimePickerModule,
16977
17262
  NgxMatNativeDateModule,
16978
17263
  NgxMatTimepickerModule,
16979
17264
  TabsModule,
@@ -17049,7 +17334,9 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
17049
17334
  WriteCollectionFieldComponent,
17050
17335
  // ComponentLauncher web components
17051
17336
  CaseFileViewFieldComponent,
17052
- CaseFileViewFolderComponent] }); })();
17337
+ CaseFileViewFolderComponent,
17338
+ CaseFileViewFolderSortComponent,
17339
+ CaseFileViewOverlayMenuComponent] }); })();
17053
17340
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
17054
17341
  type: NgModule,
17055
17342
  args: [{
@@ -17076,6 +17363,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
17076
17363
  MatDatepickerModule,
17077
17364
  MatAutocompleteModule,
17078
17365
  CdkTreeModule,
17366
+ OverlayModule,
17079
17367
  PaymentLibModule,
17080
17368
  ScrollToModule.forRoot()
17081
17369
  ],
@@ -17085,7 +17373,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
17085
17373
  DynamicListPipe,
17086
17374
  DynamicRadioListPipe,
17087
17375
  DocumentUrlPipe,
17088
- ...PALETTE_COMPONENTS
17376
+ ...PALETTE_COMPONENTS,
17377
+ CaseFileViewOverlayMenuComponent,
17089
17378
  ],
17090
17379
  exports: [
17091
17380
  NgxMatDatetimePickerModule,
@@ -20120,8 +20409,8 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template(rf, ctx)
20120
20409
  i0.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
20121
20410
  } }
20122
20411
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
20123
- i0.ɵɵelementStart(0, "th", 34);
20124
- i0.ɵɵelementStart(1, "div", 35);
20412
+ i0.ɵɵelementStart(0, "th", 35);
20413
+ i0.ɵɵelementStart(1, "div", 36);
20125
20414
  i0.ɵɵtext(2);
20126
20415
  i0.ɵɵelementEnd();
20127
20416
  i0.ɵɵelementEnd();
@@ -20133,9 +20422,9 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
20133
20422
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
20134
20423
  i0.ɵɵelementStart(0, "tr");
20135
20424
  i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
20136
- i0.ɵɵelementStart(2, "th");
20137
- i0.ɵɵelementStart(3, "span", 32);
20138
- i0.ɵɵelement(4, "ccd-field-read", 33);
20425
+ i0.ɵɵelementStart(2, "th", 32);
20426
+ i0.ɵɵelementStart(3, "span", 33);
20427
+ i0.ɵɵelement(4, "ccd-field-read", 34);
20139
20428
  i0.ɵɵelementEnd();
20140
20429
  i0.ɵɵelementEnd();
20141
20430
  i0.ɵɵelementEnd();
@@ -20144,21 +20433,25 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
20144
20433
  const ctx_r22 = i0.ɵɵnextContext(4);
20145
20434
  i0.ɵɵadvance(1);
20146
20435
  i0.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
20147
- i0.ɵɵadvance(3);
20436
+ i0.ɵɵadvance(1);
20437
+ i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
20438
+ i0.ɵɵadvance(2);
20148
20439
  i0.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
20149
20440
  } }
20150
20441
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) { if (rf & 1) {
20151
- i0.ɵɵelementStart(0, "tr", 36);
20152
- i0.ɵɵelementStart(1, "th");
20153
- i0.ɵɵelementStart(2, "span", 32);
20154
- i0.ɵɵelement(3, "ccd-field-read", 33);
20442
+ i0.ɵɵelementStart(0, "tr", 37);
20443
+ i0.ɵɵelementStart(1, "th", 32);
20444
+ i0.ɵɵelementStart(2, "span", 33);
20445
+ i0.ɵɵelement(3, "ccd-field-read", 34);
20155
20446
  i0.ɵɵelementEnd();
20156
20447
  i0.ɵɵelementEnd();
20157
20448
  i0.ɵɵelementEnd();
20158
20449
  } if (rf & 2) {
20159
20450
  const field_r21 = i0.ɵɵnextContext().$implicit;
20160
20451
  const ctx_r23 = i0.ɵɵnextContext(4);
20161
- i0.ɵɵadvance(3);
20452
+ i0.ɵɵadvance(1);
20453
+ i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
20454
+ i0.ɵɵadvance(2);
20162
20455
  i0.ɵɵproperty("topLevelFormGroup", ctx_r23.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r23.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r23.markdownUseHrefAsRouterLink);
20163
20456
  } }
20164
20457
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
@@ -20166,8 +20459,8 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
20166
20459
  i0.ɵɵelementStart(1, "div", 27);
20167
20460
  i0.ɵɵelementContainerStart(2, 28);
20168
20461
  i0.ɵɵpipe(3, "ccdIsCompound");
20169
- i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
20170
- i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
20462
+ i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 29);
20463
+ i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 30);
20171
20464
  i0.ɵɵelementContainerEnd();
20172
20465
  i0.ɵɵelementEnd();
20173
20466
  i0.ɵɵelementContainerEnd();
@@ -20501,7 +20794,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
20501
20794
  } if (rf & 2) {
20502
20795
  let _t;
20503
20796
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
20504
- } }, 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) { if (rf & 1) {
20797
+ } }, 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) { if (rf & 1) {
20505
20798
  i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
20506
20799
  i0.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
20507
20800
  i0.ɵɵelementStart(2, "ccd-callback-errors", 1);
@@ -23661,11 +23954,11 @@ function SearchResultComponent_table_0_th_9_Template(rf, ctx) { if (rf & 1) {
23661
23954
  i0.ɵɵadvance(2);
23662
23955
  i0.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
23663
23956
  } }
23664
- function SearchResultComponent_table_0_th_10_div_5_Template(rf, ctx) { if (rf & 1) {
23957
+ function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) { if (rf & 1) {
23665
23958
  const _r19 = i0.ɵɵgetCurrentView();
23666
23959
  i0.ɵɵelementStart(0, "div", 27);
23667
23960
  i0.ɵɵelementStart(1, "a", 28);
23668
- i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
23961
+ i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_6_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
23669
23962
  i0.ɵɵelementEnd();
23670
23963
  i0.ɵɵelementEnd();
23671
23964
  } if (rf & 2) {
@@ -23679,11 +23972,13 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
23679
23972
  i0.ɵɵelementStart(0, "th");
23680
23973
  i0.ɵɵelementStart(1, "table", 24);
23681
23974
  i0.ɵɵelementStart(2, "tr");
23682
- i0.ɵɵelementStart(3, "div", 25);
23683
- i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r22); const col_r15 = ctx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
23684
- i0.ɵɵtext(4);
23975
+ i0.ɵɵelementStart(3, "th");
23976
+ i0.ɵɵelementStart(4, "div", 25);
23977
+ i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_4_listener() { i0.ɵɵrestoreView(_r22); const col_r15 = ctx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
23978
+ i0.ɵɵtext(5);
23979
+ i0.ɵɵelementEnd();
23980
+ i0.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
23685
23981
  i0.ɵɵelementEnd();
23686
- i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_10_div_5_Template, 2, 1, "div", 26);
23687
23982
  i0.ɵɵelementEnd();
23688
23983
  i0.ɵɵelementEnd();
23689
23984
  i0.ɵɵelementEnd();
@@ -23691,8 +23986,8 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
23691
23986
  const col_r15 = ctx.$implicit;
23692
23987
  const ctx_r7 = i0.ɵɵnextContext(2);
23693
23988
  i0.ɵɵadvance(1);
23694
- i0.ɵɵattributeInterpolate2("aria-label", "Sort by ", col_r15.label, " ", ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending", "");
23695
- i0.ɵɵadvance(3);
23989
+ i0.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
23990
+ i0.ɵɵadvance(4);
23696
23991
  i0.ɵɵtextInterpolate(col_r15.label);
23697
23992
  i0.ɵɵadvance(1);
23698
23993
  i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
@@ -23964,7 +24259,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
23964
24259
  i0.ɵɵelementStart(7, "thead");
23965
24260
  i0.ɵɵelementStart(8, "tr", 7);
23966
24261
  i0.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
23967
- i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 6, 4, "th", 9);
24262
+ i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
23968
24263
  i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
23969
24264
  i0.ɵɵelementEnd();
23970
24265
  i0.ɵɵelementEnd();
@@ -24691,5 +24986,5 @@ class TestRouteSnapshotBuilder {
24691
24986
  * Generated bundle index. Do not edit.
24692
24987
  */
24693
24988
 
24694
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewService, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, MULTIPLE_TASKS_FOUND, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, TestRouteSnapshotBuilder, UnsupportedFieldComponent, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
24989
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, MULTIPLE_TASKS_FOUND, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, TestRouteSnapshotBuilder, UnsupportedFieldComponent, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
24695
24990
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map