@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-all-document-count-v2 → 5.0.25-case-file-view-document-count-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 (28) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +158 -103
  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/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.js +46 -0
  6. 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 +3 -6
  7. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +46 -43
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +2 -1
  9. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +43 -33
  10. package/esm2015/lib/shared/components/palette/palette.module.js +9 -6
  11. package/esm2015/public-api.js +1 -3
  12. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +150 -95
  13. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  14. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts +15 -0
  15. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts.map +1 -0
  16. 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 +2 -3
  17. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -1
  18. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +2 -3
  19. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  20. package/lib/shared/components/palette/case-file-view/components/index.d.ts +1 -0
  21. package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -1
  22. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +1 -3
  23. 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 -1
  24. package/lib/shared/components/palette/palette.module.d.ts +24 -23
  25. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  26. package/package.json +1 -1
  27. package/public-api.d.ts +0 -2
  28. package/public-api.d.ts.map +1 -1
@@ -117,14 +117,14 @@
117
117
  }
118
118
  }
119
119
  var _c0$Q = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
120
- var _c1$n = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
120
+ var _c1$o = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
121
121
  var FooterComponent = /** @class */ (function () {
122
122
  function FooterComponent() {
123
123
  }
124
124
  return FooterComponent;
125
125
  }());
126
126
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
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
+ FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$o, 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) {
128
128
  if (rf & 1) {
129
129
  i0__namespace.ɵɵprojectionDef(_c0$Q);
130
130
  i0__namespace.ɵɵelementStart(0, "footer", 0);
@@ -206,7 +206,7 @@
206
206
  }
207
207
  }
208
208
  var _c0$P = [[["", "headerNavigation", ""]]];
209
- var _c1$m = ["[headerNavigation]"];
209
+ var _c1$n = ["[headerNavigation]"];
210
210
  var HeaderBarComponent = /** @class */ (function () {
211
211
  function HeaderBarComponent() {
212
212
  this.signOutRequest = new i0.EventEmitter();
@@ -217,7 +217,7 @@
217
217
  return HeaderBarComponent;
218
218
  }());
219
219
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
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
+ HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$n, 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) {
221
221
  if (rf & 1) {
222
222
  i0__namespace.ɵɵprojectionDef(_c0$P);
223
223
  i0__namespace.ɵɵelementStart(0, "header", 0);
@@ -281,14 +281,14 @@
281
281
  })();
282
282
 
283
283
  var _c0$O = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
284
- var _c1$l = ["[leftNavLinks]", "[rightNavLinks]"];
284
+ var _c1$m = ["[leftNavLinks]", "[rightNavLinks]"];
285
285
  var NavigationComponent = /** @class */ (function () {
286
286
  function NavigationComponent() {
287
287
  }
288
288
  return NavigationComponent;
289
289
  }());
290
290
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
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
+ NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$m, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
292
292
  if (rf & 1) {
293
293
  i0__namespace.ɵɵprojectionDef(_c0$O);
294
294
  i0__namespace.ɵɵelementStart(0, "div");
@@ -436,14 +436,14 @@
436
436
  })();
437
437
 
438
438
  var _c0$N = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
439
- var _c1$k = ["[topBody]", "[leftBody]", "[rightBody]"];
439
+ var _c1$l = ["[topBody]", "[leftBody]", "[rightBody]"];
440
440
  var BodyComponent = /** @class */ (function () {
441
441
  function BodyComponent() {
442
442
  }
443
443
  return BodyComponent;
444
444
  }());
445
445
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
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
+ BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$l, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
447
447
  if (rf & 1) {
448
448
  i0__namespace.ɵɵprojectionDef(_c0$N);
449
449
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1301,14 +1301,14 @@
1301
1301
  })();
1302
1302
 
1303
1303
  var _c0$K = function (a0) { return { "js-hidden": a0 }; };
1304
- var _c1$j = ["*"];
1304
+ var _c1$k = ["*"];
1305
1305
  var TabComponent = /** @class */ (function () {
1306
1306
  function TabComponent() {
1307
1307
  }
1308
1308
  return TabComponent;
1309
1309
  }());
1310
1310
  TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
1311
- TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$j, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1311
+ TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$k, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1312
1312
  if (rf & 1) {
1313
1313
  i0__namespace.ɵɵprojectionDef();
1314
1314
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1340,7 +1340,7 @@
1340
1340
  })();
1341
1341
 
1342
1342
  var _c0$J = ["tab"];
1343
- var _c1$i = function () { return ["."]; };
1343
+ var _c1$j = function () { return ["."]; };
1344
1344
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1345
1345
  function TabsComponent_li_2_Template(rf, ctx) {
1346
1346
  if (rf & 1) {
@@ -1355,7 +1355,7 @@
1355
1355
  if (rf & 2) {
1356
1356
  var panel_r1 = ctx.$implicit;
1357
1357
  i0__namespace.ɵɵadvance(1);
1358
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$i))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1358
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$j))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1359
1359
  i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
1360
1360
  i0__namespace.ɵɵadvance(2);
1361
1361
  i0__namespace.ɵɵtextInterpolate(panel_r1.title);
@@ -9211,7 +9211,7 @@
9211
9211
  i0__namespace.ɵɵelementEnd();
9212
9212
  }
9213
9213
  }
9214
- var _c1$h = function (a0) { return { "form-group-error": a0 }; };
9214
+ var _c1$i = function (a0) { return { "form-group-error": a0 }; };
9215
9215
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
9216
9216
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
9217
9217
  if (rf & 1) {
@@ -9232,7 +9232,7 @@
9232
9232
  }
9233
9233
  if (rf & 2) {
9234
9234
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
9235
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$h, ctx_r2.missingPostcode));
9235
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$i, ctx_r2.missingPostcode));
9236
9236
  i0__namespace.ɵɵadvance(1);
9237
9237
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
9238
9238
  i0__namespace.ɵɵadvance(3);
@@ -9581,66 +9581,69 @@
9581
9581
  __metadata("design:paramtypes", [])
9582
9582
  ], DocumentTreeNode.prototype, "childDocumentCount", null);
9583
9583
 
9584
- function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template(rf, ctx) {
9584
+ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) {
9585
9585
  if (rf & 1) {
9586
9586
  i0__namespace.ɵɵelementContainerStart(0);
9587
- i0__namespace.ɵɵelementStart(1, "div", 4);
9587
+ i0__namespace.ɵɵelementStart(1, "div", 6);
9588
9588
  i0__namespace.ɵɵtext(2);
9589
9589
  i0__namespace.ɵɵelementEnd();
9590
9590
  i0__namespace.ɵɵelementContainerEnd();
9591
9591
  }
9592
9592
  if (rf & 2) {
9593
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
9593
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
9594
9594
  i0__namespace.ɵɵadvance(2);
9595
- i0__namespace.ɵɵtextInterpolate(ctx_r1.title);
9595
+ i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
9596
9596
  }
9597
9597
  }
9598
- function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template(rf, ctx) {
9598
+ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) {
9599
9599
  if (rf & 1) {
9600
- i0__namespace.ɵɵelement(0, "img", 8);
9600
+ i0__namespace.ɵɵelement(0, "img", 10);
9601
9601
  }
9602
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);
9603
+ var item_r4 = i0__namespace.ɵɵnextContext().$implicit;
9604
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
9605
+ i0__namespace.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
9606
+ i0__namespace.ɵɵproperty("src", item_r4.iconSrc, i0__namespace.ɵɵsanitizeUrl);
9606
9607
  }
9607
9608
  }
9608
- function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template(rf, ctx) {
9609
+ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) {
9609
9610
  if (rf & 1) {
9610
- var _r7_1 = i0__namespace.ɵɵgetCurrentView();
9611
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
9611
9612
  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);
9613
+ i0__namespace.ɵɵelementStart(1, "div", 7);
9614
+ i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var item_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); item_r4.actionFn(); return ctx_r7.closeOverlay(); });
9615
+ i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
9616
+ i0__namespace.ɵɵelementStart(3, "div", 9);
9616
9617
  i0__namespace.ɵɵtext(4);
9617
9618
  i0__namespace.ɵɵelementEnd();
9618
9619
  i0__namespace.ɵɵelementEnd();
9619
9620
  i0__namespace.ɵɵelementContainerEnd();
9620
9621
  }
9621
9622
  if (rf & 2) {
9622
- var item_r3 = ctx.$implicit;
9623
+ var item_r4 = ctx.$implicit;
9623
9624
  i0__namespace.ɵɵadvance(2);
9624
- i0__namespace.ɵɵproperty("ngIf", item_r3.iconSrc);
9625
+ i0__namespace.ɵɵproperty("ngIf", item_r4.iconSrc);
9625
9626
  i0__namespace.ɵɵadvance(2);
9626
- i0__namespace.ɵɵtextInterpolate(item_r3.actionText);
9627
+ i0__namespace.ɵɵtextInterpolate(item_r4.actionText);
9627
9628
  }
9628
9629
  }
9629
- function CaseFileViewOverlayMenuComponent_ng_template_0_Template(rf, ctx) {
9630
+ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
9630
9631
  if (rf & 1) {
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);
9632
+ i0__namespace.ɵɵelementStart(0, "div", 3);
9633
+ i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
9634
+ i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
9634
9635
  i0__namespace.ɵɵelementEnd();
9635
9636
  }
9636
9637
  if (rf & 2) {
9637
- var ctx_r0 = i0__namespace.ɵɵnextContext();
9638
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
9638
9639
  i0__namespace.ɵɵadvance(1);
9639
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
9640
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.title);
9640
9641
  i0__namespace.ɵɵadvance(1);
9641
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.menuItems);
9642
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
9642
9643
  }
9643
9644
  }
9645
+ var _c0$G = [[["", "trigger", ""]]];
9646
+ var _c1$h = ["[trigger]"];
9644
9647
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
9645
9648
  function CaseFileViewOverlayMenuComponent() {
9646
9649
  this.title = '';
@@ -9655,14 +9658,24 @@
9655
9658
  return CaseFileViewOverlayMenuComponent;
9656
9659
  }());
9657
9660
  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) {
9661
+ CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$h, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
9659
9662
  if (rf & 1) {
9660
- i0__namespace.ɵɵtemplate(0, CaseFileViewOverlayMenuComponent_ng_template_0_Template, 3, 2, "ng-template", 0);
9663
+ i0__namespace.ɵɵprojectionDef(_c0$G);
9664
+ i0__namespace.ɵɵelementStart(0, "div");
9665
+ i0__namespace.ɵɵelementStart(1, "button", 0, 1);
9666
+ i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener() { return ctx.isOpen = !ctx.isOpen; });
9667
+ i0__namespace.ɵɵprojection(3);
9668
+ i0__namespace.ɵɵelementEnd();
9669
+ i0__namespace.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
9670
+ i0__namespace.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
9671
+ i0__namespace.ɵɵelementEnd();
9661
9672
  }
9662
9673
  if (rf & 2) {
9663
- i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", ctx.cdkOverlayOrigin)("cdkConnectedOverlayOpen", ctx.isOpen);
9674
+ var _r0 = i0__namespace.ɵɵreference(2);
9675
+ i0__namespace.ɵɵadvance(4);
9676
+ i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
9664
9677
  }
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}"] });
9678
+ }, directives: [i1__namespace$5.CdkOverlayOrigin, i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
9666
9679
  (function () {
9667
9680
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
9668
9681
  type: i0.Component,
@@ -9675,8 +9688,6 @@
9675
9688
  type: i0.Input
9676
9689
  }], menuItems: [{
9677
9690
  type: i0.Input
9678
- }], cdkOverlayOrigin: [{
9679
- type: i0.Input
9680
9691
  }], isOpen: [{
9681
9692
  type: i0.Input
9682
9693
  }], isOpenChange: [{
@@ -9695,12 +9706,10 @@
9695
9706
  { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
9696
9707
  ];
9697
9708
  }
9698
- CaseFileViewFolderSortComponent.prototype.ngOnInit = function () {
9699
- };
9700
9709
  return CaseFileViewFolderSortComponent;
9701
9710
  }());
9702
9711
  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) {
9712
+ CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 4, vars: 3, 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", "isOpen", "isOpenChange"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) {
9704
9713
  if (rf & 1) {
9705
9714
  i0__namespace.ɵɵelementStart(0, "button", 0, 1);
9706
9715
  i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSortComponent_Template_button_click_0_listener() { return ctx.isOpen = !ctx.isOpen; });
@@ -9711,9 +9720,8 @@
9711
9720
  i0__namespace.ɵɵelementEnd();
9712
9721
  }
9713
9722
  if (rf & 2) {
9714
- var _r0 = i0__namespace.ɵɵreference(1);
9715
9723
  i0__namespace.ɵɵadvance(3);
9716
- i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("cdkOverlayOrigin", _r0)("isOpen", ctx.isOpen);
9724
+ i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
9717
9725
  }
9718
9726
  }, 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
9727
  (function () {
@@ -9731,17 +9739,72 @@
9731
9739
  }] });
9732
9740
  })();
9733
9741
 
9734
- var _c0$G = ["tree"];
9742
+ var CaseFileViewFolderDocumentActionsComponent = /** @class */ (function () {
9743
+ function CaseFileViewFolderDocumentActionsComponent() {
9744
+ var _this = this;
9745
+ this.isOpen = false;
9746
+ this.changeFolderAction = new i0.EventEmitter();
9747
+ this.openInANewTabAction = new i0.EventEmitter();
9748
+ this.downloadAction = new i0.EventEmitter();
9749
+ this.printAction = new i0.EventEmitter();
9750
+ this.overlayMenuItems = [
9751
+ { actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: function () { return _this.changeFolderAction.emit(); } },
9752
+ { actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: function () { return _this.openInANewTabAction.emit(); } },
9753
+ { actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: function () { return _this.downloadAction.emit(); } },
9754
+ { actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: function () { return _this.printAction.emit(); } },
9755
+ ];
9756
+ }
9757
+ return CaseFileViewFolderDocumentActionsComponent;
9758
+ }());
9759
+ CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
9760
+ CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], outputs: { changeFolderAction: "changeFolderAction", openInANewTabAction: "openInANewTabAction", downloadAction: "downloadAction", printAction: "printAction" }, decls: 3, vars: 2, consts: [[3, "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/case-file-view/document-menu/more_vert.svg", "alt", "More document options", 1, "actions-trigger-icon"]], template: function CaseFileViewFolderDocumentActionsComponent_Template(rf, ctx) {
9761
+ if (rf & 1) {
9762
+ i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
9763
+ i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
9764
+ i0__namespace.ɵɵelementContainerStart(1, 1);
9765
+ i0__namespace.ɵɵelement(2, "img", 2);
9766
+ i0__namespace.ɵɵelementContainerEnd();
9767
+ i0__namespace.ɵɵelementEnd();
9768
+ }
9769
+ if (rf & 2) {
9770
+ i0__namespace.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
9771
+ }
9772
+ }, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-5px}"] });
9773
+ (function () {
9774
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
9775
+ type: i0.Component,
9776
+ args: [{
9777
+ selector: 'ccd-case-file-view-folder-document-actions',
9778
+ templateUrl: './case-file-view-folder-document-actions.component.html',
9779
+ styleUrls: ['./case-file-view-folder-document-actions.component.scss']
9780
+ }]
9781
+ }], function () { return []; }, { changeFolderAction: [{
9782
+ type: i0.Output
9783
+ }], openInANewTabAction: [{
9784
+ type: i0.Output
9785
+ }], downloadAction: [{
9786
+ type: i0.Output
9787
+ }], printAction: [{
9788
+ type: i0.Output
9789
+ }] });
9790
+ })();
9791
+
9735
9792
  function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) {
9736
9793
  if (rf & 1) {
9794
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
9737
9795
  i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
9738
- i0__namespace.ɵɵelementStart(1, "div", 8);
9739
- i0__namespace.ɵɵelementStart(2, "button", 9);
9796
+ i0__namespace.ɵɵelementStart(1, "button", 8);
9797
+ i0__namespace.ɵɵelementStart(2, "div", 9);
9740
9798
  i0__namespace.ɵɵelement(3, "img", 10);
9741
9799
  i0__namespace.ɵɵelementEnd();
9742
9800
  i0__namespace.ɵɵelementStart(4, "span", 11);
9743
9801
  i0__namespace.ɵɵtext(5);
9744
9802
  i0__namespace.ɵɵelementEnd();
9803
+ i0__namespace.ɵɵelementStart(6, "div", 12);
9804
+ i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 13);
9805
+ i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.triggerDocumentAction("changeFolder"); })("openInANewTabAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.triggerDocumentAction("openInANewTab"); })("downloadAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.triggerDocumentAction("download"); })("printAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.triggerDocumentAction("print"); });
9806
+ i0__namespace.ɵɵelementEnd();
9807
+ i0__namespace.ɵɵelementEnd();
9745
9808
  i0__namespace.ɵɵelementEnd();
9746
9809
  i0__namespace.ɵɵelementEnd();
9747
9810
  }
@@ -9754,33 +9817,33 @@
9754
9817
  function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) {
9755
9818
  if (rf & 1) {
9756
9819
  i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
9757
- i0__namespace.ɵɵelementStart(1, "div", 12);
9758
- i0__namespace.ɵɵelementStart(2, "button", 13);
9759
- i0__namespace.ɵɵelement(3, "img", 14);
9760
- i0__namespace.ɵɵelementStart(4, "span", 15);
9820
+ i0__namespace.ɵɵelementStart(1, "button", 14);
9821
+ i0__namespace.ɵɵelementStart(2, "div", 15);
9822
+ i0__namespace.ɵɵelement(3, "img", 16);
9823
+ i0__namespace.ɵɵelementStart(4, "span", 17);
9761
9824
  i0__namespace.ɵɵtext(5);
9762
9825
  i0__namespace.ɵɵelementEnd();
9763
9826
  i0__namespace.ɵɵelementEnd();
9764
- i0__namespace.ɵɵelementStart(6, "span", 16);
9827
+ i0__namespace.ɵɵelementStart(6, "span", 18);
9765
9828
  i0__namespace.ɵɵtext(7);
9766
9829
  i0__namespace.ɵɵelementEnd();
9767
9830
  i0__namespace.ɵɵelementEnd();
9768
9831
  i0__namespace.ɵɵelementStart(8, "div");
9769
- i0__namespace.ɵɵelementContainer(9, 17);
9832
+ i0__namespace.ɵɵelementContainer(9, 19);
9770
9833
  i0__namespace.ɵɵelementEnd();
9771
9834
  i0__namespace.ɵɵelementEnd();
9772
9835
  }
9773
9836
  if (rf & 2) {
9774
- var node_r3 = ctx.$implicit;
9837
+ var node_r8 = ctx.$implicit;
9775
9838
  var ctx_r1 = i0__namespace.ɵɵnextContext();
9776
9839
  i0__namespace.ɵɵadvance(2);
9777
- i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r3.name);
9840
+ i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r8.name);
9778
9841
  i0__namespace.ɵɵadvance(3);
9779
- i0__namespace.ɵɵtextInterpolate(node_r3.childDocumentCount);
9842
+ i0__namespace.ɵɵtextInterpolate(node_r8.childDocumentCount);
9780
9843
  i0__namespace.ɵɵadvance(2);
9781
- i0__namespace.ɵɵtextInterpolate(node_r3.name);
9844
+ i0__namespace.ɵɵtextInterpolate(node_r8.name);
9782
9845
  i0__namespace.ɵɵadvance(1);
9783
- i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
9846
+ i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r8));
9784
9847
  }
9785
9848
  }
9786
9849
  var CaseFileViewFolderComponent = /** @class */ (function () {
@@ -9790,21 +9853,6 @@
9790
9853
  this.nestedChildren = function (_, nodeData) { return nodeData.children; };
9791
9854
  this.nestedTreeControl = new i2.NestedTreeControl(this.getChildren);
9792
9855
  }
9793
- Object.defineProperty(CaseFileViewFolderComponent.prototype, "documentCount", {
9794
- get: function () {
9795
- var _a;
9796
- if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
9797
- return this.nestedDataSource.reduce(function (acc, item) {
9798
- return acc + item.childDocumentCount;
9799
- }, 0);
9800
- }
9801
- else {
9802
- return 0;
9803
- }
9804
- },
9805
- enumerable: false,
9806
- configurable: true
9807
- });
9808
9856
  CaseFileViewFolderComponent.prototype.ngOnInit = function () {
9809
9857
  var _this = this;
9810
9858
  this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
@@ -9857,6 +9905,24 @@
9857
9905
  uncategorisedNode.children = documents;
9858
9906
  return uncategorisedNode;
9859
9907
  };
9908
+ CaseFileViewFolderComponent.prototype.triggerDocumentAction = function (actionType) {
9909
+ switch (actionType) {
9910
+ case ('changeFolder'):
9911
+ console.log('changeFolder!');
9912
+ break;
9913
+ case ('openInANewTab'):
9914
+ console.log('openInANewTab!');
9915
+ break;
9916
+ case ('download'):
9917
+ console.log('download!');
9918
+ break;
9919
+ case ('print'):
9920
+ console.log('print!');
9921
+ break;
9922
+ default:
9923
+ return;
9924
+ }
9925
+ };
9860
9926
  CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
9861
9927
  var sortedData = this.nestedDataSource.map(function (item) {
9862
9928
  item.sortChildrenAscending();
@@ -10079,19 +10145,11 @@
10079
10145
  }());
10080
10146
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
10081
10147
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
10082
- CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], viewQuery: function CaseFileViewFolderComponent_Query(rf, ctx) {
10083
- if (rf & 1) {
10084
- i0__namespace.ɵɵviewQuery(_c0$G, 3);
10085
- }
10086
- if (rf & 2) {
10087
- var _t = void 0;
10088
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tree = _t.first);
10089
- }
10090
- }, inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 9, vars: 4, consts: [[1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], [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, "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) {
10148
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 9, vars: 3, consts: [[1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], [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, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], ["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) {
10091
10149
  if (rf & 1) {
10092
10150
  i0__namespace.ɵɵelementStart(0, "div", 0);
10093
10151
  i0__namespace.ɵɵelementStart(1, "div", 1);
10094
- i0__namespace.ɵɵtext(2);
10152
+ i0__namespace.ɵɵtext(2, "Documents");
10095
10153
  i0__namespace.ɵɵelementEnd();
10096
10154
  i0__namespace.ɵɵelementStart(3, "div");
10097
10155
  i0__namespace.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
@@ -10101,20 +10159,18 @@
10101
10159
  i0__namespace.ɵɵelementEnd();
10102
10160
  i0__namespace.ɵɵelementStart(5, "div", 3);
10103
10161
  i0__namespace.ɵɵelementStart(6, "cdk-tree", 4);
10104
- i0__namespace.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 6, 1, "cdk-nested-tree-node", 5);
10162
+ i0__namespace.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 8, 1, "cdk-nested-tree-node", 5);
10105
10163
  i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 10, 5, "cdk-nested-tree-node", 6);
10106
10164
  i0__namespace.ɵɵelementEnd();
10107
10165
  i0__namespace.ɵɵelementEnd();
10108
10166
  }
10109
10167
  if (rf & 2) {
10110
- i0__namespace.ɵɵadvance(2);
10111
- i0__namespace.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
10112
- i0__namespace.ɵɵadvance(4);
10168
+ i0__namespace.ɵɵadvance(6);
10113
10169
  i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
10114
10170
  i0__namespace.ɵɵadvance(2);
10115
10171
  i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
10116
10172
  }
10117
- }, 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}.node__iconImg[_ngcontent-%COMP%]{display:block;height: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:6px}"] });
10173
+ }, directives: [CaseFileViewFolderSortComponent, i2__namespace.CdkTree, i2__namespace.CdkTreeNodeDef, i2__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, 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;width:100%;padding:6px;background:none;border:0;cursor:pointer}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.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:6px;font-size:1rem}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
10118
10174
  (function () {
10119
10175
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
10120
10176
  type: i0.Component,
@@ -10125,9 +10181,6 @@
10125
10181
  }]
10126
10182
  }], function () { return []; }, { categoriesAndDocuments: [{
10127
10183
  type: i0.Input
10128
- }], tree: [{
10129
- type: i0.ViewChild,
10130
- args: ['tree', { static: true }]
10131
10184
  }] });
10132
10185
  })();
10133
10186
 
@@ -20000,7 +20053,8 @@
20000
20053
  CaseFileViewFieldComponent,
20001
20054
  CaseFileViewFolderComponent,
20002
20055
  CaseFileViewFolderSortComponent,
20003
- CaseFileViewOverlayMenuComponent
20056
+ CaseFileViewOverlayMenuComponent,
20057
+ CaseFileViewFolderDocumentActionsComponent
20004
20058
  ];
20005
20059
  var PaletteModule = /** @class */ (function () {
20006
20060
  function PaletteModule() {
@@ -20128,7 +20182,8 @@
20128
20182
  CaseFileViewFieldComponent,
20129
20183
  CaseFileViewFolderComponent,
20130
20184
  CaseFileViewFolderSortComponent,
20131
- CaseFileViewOverlayMenuComponent, CaseFileViewOverlayMenuComponent], imports: [i1.CommonModule,
20185
+ CaseFileViewOverlayMenuComponent,
20186
+ CaseFileViewFolderDocumentActionsComponent], imports: [i1.CommonModule,
20132
20187
  i1$1.RouterModule,
20133
20188
  i1$2.FormsModule,
20134
20189
  i1$2.ReactiveFormsModule,
@@ -20229,7 +20284,8 @@
20229
20284
  CaseFileViewFieldComponent,
20230
20285
  CaseFileViewFolderComponent,
20231
20286
  CaseFileViewFolderSortComponent,
20232
- CaseFileViewOverlayMenuComponent] });
20287
+ CaseFileViewOverlayMenuComponent,
20288
+ CaseFileViewFolderDocumentActionsComponent] });
20233
20289
  })();
20234
20290
  (function () {
20235
20291
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -20268,9 +20324,7 @@
20268
20324
  DynamicListPipe,
20269
20325
  DynamicRadioListPipe,
20270
20326
  DocumentUrlPipe
20271
- ], PALETTE_COMPONENTS, [
20272
- CaseFileViewOverlayMenuComponent,
20273
- ]),
20327
+ ], PALETTE_COMPONENTS),
20274
20328
  exports: __spread([
20275
20329
  i4.NgxMatDatetimePickerModule,
20276
20330
  i4.NgxMatNativeDateModule,
@@ -28777,6 +28831,7 @@
28777
28831
  exports.CaseFieldService = CaseFieldService;
28778
28832
  exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
28779
28833
  exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
28834
+ exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
28780
28835
  exports.CaseFileViewFolderSortComponent = CaseFileViewFolderSortComponent;
28781
28836
  exports.CaseFileViewOverlayMenuComponent = CaseFileViewOverlayMenuComponent;
28782
28837
  exports.CaseFileViewService = CaseFileViewService;