@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-all-document-count-v3 → 5.0.25-case-file-view-document-tree-functionalities-v6

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 (37) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +263 -377
  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/components/header/navigation/navigation-item.component.js +1 -1
  6. package/esm2015/lib/shared/components/pagination/pagination.component.js +1 -1
  7. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +53 -18
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +118 -82
  9. package/esm2015/lib/shared/components/palette/palette.module.js +7 -4
  10. package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
  11. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.js +6 -0
  12. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +8 -7
  13. package/esm2015/lib/shared/domain/case-file-view/index.js +2 -1
  14. package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +5 -6
  15. package/esm2015/public-api.js +1 -3
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +217 -334
  17. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  18. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +6 -3
  19. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  20. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +11 -5
  21. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  22. package/lib/shared/components/palette/palette.module.d.ts +2 -1
  23. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  24. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts +5 -0
  25. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts.map +1 -0
  26. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +2 -1
  27. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  28. package/lib/shared/domain/case-file-view/index.d.ts +1 -0
  29. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
  30. package/lib/shared/services/case-file-view/case-file-view.service.d.ts +2 -3
  31. package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
  32. package/package.json +1 -1
  33. package/public-api.d.ts +0 -2
  34. package/public-api.d.ts.map +1 -1
  35. package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +0 -192
  36. package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts +0 -3
  37. package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/cdk/overlay'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
- typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/cdk/overlay', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.cdk.overlay, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i2, i1$5, i1$6, i2$1, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/cdk/overlay'), require('@hmcts/media-viewer'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/cdk/overlay', '@hmcts/media-viewer', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.cdk.overlay, global.i5, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
5
+ })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i4, i1$5, i5, i1$6, i2, i4$1, momentAdapter, i5$1, i6, i5$2, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -33,14 +33,15 @@
33
33
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
34
34
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
35
35
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
36
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
37
- var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
38
- var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
39
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
40
36
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
37
+ var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
41
38
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
42
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
+ var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
40
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
41
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
43
42
  var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
43
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
44
+ var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
44
45
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
45
46
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
46
47
  var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
@@ -116,7 +117,7 @@
116
117
  i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
117
118
  }
118
119
  }
119
- var _c0$Q = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
120
+ var _c0$P = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
120
121
  var _c1$n = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
121
122
  var FooterComponent = /** @class */ (function () {
122
123
  function FooterComponent() {
@@ -126,7 +127,7 @@
126
127
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
127
128
  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) {
128
129
  if (rf & 1) {
129
- i0__namespace.ɵɵprojectionDef(_c0$Q);
130
+ i0__namespace.ɵɵprojectionDef(_c0$P);
130
131
  i0__namespace.ɵɵelementStart(0, "footer", 0);
131
132
  i0__namespace.ɵɵelementStart(1, "div", 1);
132
133
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -205,7 +206,7 @@
205
206
  i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
206
207
  }
207
208
  }
208
- var _c0$P = [[["", "headerNavigation", ""]]];
209
+ var _c0$O = [[["", "headerNavigation", ""]]];
209
210
  var _c1$m = ["[headerNavigation]"];
210
211
  var HeaderBarComponent = /** @class */ (function () {
211
212
  function HeaderBarComponent() {
@@ -219,7 +220,7 @@
219
220
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
220
221
  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) {
221
222
  if (rf & 1) {
222
- i0__namespace.ɵɵprojectionDef(_c0$P);
223
+ i0__namespace.ɵɵprojectionDef(_c0$O);
223
224
  i0__namespace.ɵɵelementStart(0, "header", 0);
224
225
  i0__namespace.ɵɵelementStart(1, "div", 1);
225
226
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -280,7 +281,7 @@
280
281
  }] });
281
282
  })();
282
283
 
283
- var _c0$O = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
284
+ var _c0$N = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
284
285
  var _c1$l = ["[leftNavLinks]", "[rightNavLinks]"];
285
286
  var NavigationComponent = /** @class */ (function () {
286
287
  function NavigationComponent() {
@@ -290,7 +291,7 @@
290
291
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
291
292
  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) {
292
293
  if (rf & 1) {
293
- i0__namespace.ɵɵprojectionDef(_c0$O);
294
+ i0__namespace.ɵɵprojectionDef(_c0$N);
294
295
  i0__namespace.ɵɵelementStart(0, "div");
295
296
  i0__namespace.ɵɵelementStart(1, "nav", 0);
296
297
  i0__namespace.ɵɵprojection(2);
@@ -349,7 +350,7 @@
349
350
  i0__namespace.ɵɵadvance(1);
350
351
  i0__namespace.ɵɵproperty("ngIf", ctx.imageLink);
351
352
  }
352
- }, directives: [i1__namespace$1.RouterLinkWithHref, i1__namespace$1.RouterLinkActive, i1__namespace.NgIf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none;padding-right:10px;font-size:18px}a[_ngcontent-%COMP%], a.active[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:focus{color:#fff}a[_ngcontent-%COMP%]:focus{background-color:#005ea5}input[_ngcontent-%COMP%]{float:right;background-color:#00823b;margin-top:-3px}.item-bold[_ngcontent-%COMP%]{font-size:18px;font-weight:700}"] });
353
+ }, directives: [i1__namespace$1.RouterLinkWithHref, i1__namespace$1.RouterLinkActive, i1__namespace.NgIf], styles: ["a[_ngcontent-%COMP%]{text-decoration:none;padding-right:10px;font-size:18px}a[_ngcontent-%COMP%], a.active[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]:focus{background-color:#005ea5;color:#fff}input[_ngcontent-%COMP%]{float:right;background-color:#00823b;margin-top:-3px}.item-bold[_ngcontent-%COMP%]{font-size:18px;font-weight:700}"] });
353
354
  (function () {
354
355
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationItemComponent, [{
355
356
  type: i0.Component,
@@ -435,7 +436,7 @@
435
436
  }], null, null);
436
437
  })();
437
438
 
438
- var _c0$N = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
439
+ var _c0$M = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
439
440
  var _c1$k = ["[topBody]", "[leftBody]", "[rightBody]"];
440
441
  var BodyComponent = /** @class */ (function () {
441
442
  function BodyComponent() {
@@ -445,7 +446,7 @@
445
446
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
446
447
  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) {
447
448
  if (rf & 1) {
448
- i0__namespace.ɵɵprojectionDef(_c0$N);
449
+ i0__namespace.ɵɵprojectionDef(_c0$M);
449
450
  i0__namespace.ɵɵelementStart(0, "div", 0);
450
451
  i0__namespace.ɵɵprojection(1);
451
452
  i0__namespace.ɵɵprojection(2, 1);
@@ -792,7 +793,7 @@
792
793
  return typeof state === "function" ? receiver === state : state.has(receiver);
793
794
  }
794
795
 
795
- var _c0$M = function (a0) { return { "govuk-input--error": a0 }; };
796
+ var _c0$L = function (a0) { return { "govuk-input--error": a0 }; };
796
797
  function DateInputComponent_div_16_Template(rf, ctx) {
797
798
  if (rf & 1) {
798
799
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -810,7 +811,7 @@
810
811
  i0__namespace.ɵɵadvance(1);
811
812
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
812
813
  i0__namespace.ɵɵadvance(2);
813
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r3.isInvalid));
814
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$L, ctx_r3.isInvalid));
814
815
  }
815
816
  }
816
817
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -830,7 +831,7 @@
830
831
  i0__namespace.ɵɵadvance(1);
831
832
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
832
833
  i0__namespace.ɵɵadvance(2);
833
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r4.isInvalid));
834
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$L, ctx_r4.isInvalid));
834
835
  }
835
836
  }
836
837
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -850,7 +851,7 @@
850
851
  i0__namespace.ɵɵadvance(1);
851
852
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
852
853
  i0__namespace.ɵɵadvance(2);
853
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r5.isInvalid));
854
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$L, ctx_r5.isInvalid));
854
855
  }
855
856
  }
856
857
  var DateInputComponent = /** @class */ (function () {
@@ -1084,15 +1085,15 @@
1084
1085
  i0__namespace.ɵɵadvance(2);
1085
1086
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1086
1087
  i0__namespace.ɵɵadvance(2);
1087
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$M, ctx.isInvalid));
1088
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$L, ctx.isInvalid));
1088
1089
  i0__namespace.ɵɵadvance(3);
1089
1090
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1090
1091
  i0__namespace.ɵɵadvance(2);
1091
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$M, ctx.isInvalid));
1092
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$L, ctx.isInvalid));
1092
1093
  i0__namespace.ɵɵadvance(3);
1093
1094
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1094
1095
  i0__namespace.ɵɵadvance(2);
1095
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$M, ctx.isInvalid));
1096
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$L, ctx.isInvalid));
1096
1097
  i0__namespace.ɵɵadvance(2);
1097
1098
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1098
1099
  i0__namespace.ɵɵadvance(1);
@@ -1173,7 +1174,7 @@
1173
1174
  i0__namespace.ɵɵelementContainerEnd();
1174
1175
  }
1175
1176
  }
1176
- var _c0$L = ["*"];
1177
+ var _c0$K = ["*"];
1177
1178
  exports.AlertMessageType = void 0;
1178
1179
  (function (AlertMessageType) {
1179
1180
  AlertMessageType["WARNING"] = "warning";
@@ -1194,7 +1195,7 @@
1194
1195
  AlertComponent.TYPE_ERROR = 'error';
1195
1196
  AlertComponent.TYPE_INFORMATION = 'information';
1196
1197
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1197
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$L, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1198
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$K, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1198
1199
  if (rf & 1) {
1199
1200
  i0__namespace.ɵɵprojectionDef();
1200
1201
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1300,7 +1301,7 @@
1300
1301
  }], null, null);
1301
1302
  })();
1302
1303
 
1303
- var _c0$K = function (a0) { return { "js-hidden": a0 }; };
1304
+ var _c0$J = function (a0) { return { "js-hidden": a0 }; };
1304
1305
  var _c1$j = ["*"];
1305
1306
  var TabComponent = /** @class */ (function () {
1306
1307
  function TabComponent() {
@@ -1316,7 +1317,7 @@
1316
1317
  i0__namespace.ɵɵelementEnd();
1317
1318
  }
1318
1319
  if (rf & 2) {
1319
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$K, !ctx.selected));
1320
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$J, !ctx.selected));
1320
1321
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1321
1322
  }
1322
1323
  }, directives: [i1__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1339,7 +1340,7 @@
1339
1340
  }] });
1340
1341
  })();
1341
1342
 
1342
- var _c0$J = ["tab"];
1343
+ var _c0$I = ["tab"];
1343
1344
  var _c1$i = function () { return ["."]; };
1344
1345
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1345
1346
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1393,7 +1394,7 @@
1393
1394
  }
1394
1395
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1395
1396
  if (rf & 1) {
1396
- i0__namespace.ɵɵviewQuery(_c0$J, 1);
1397
+ i0__namespace.ɵɵviewQuery(_c0$I, 1);
1397
1398
  }
1398
1399
  if (rf & 2) {
1399
1400
  var _t = void 0;
@@ -1472,7 +1473,7 @@
1472
1473
  }], null, null);
1473
1474
  })();
1474
1475
 
1475
- var _c0$I = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1476
+ var _c0$H = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1476
1477
  var ActivityBannerComponent = /** @class */ (function () {
1477
1478
  function ActivityBannerComponent() {
1478
1479
  }
@@ -1493,7 +1494,7 @@
1493
1494
  i0__namespace.ɵɵelementEnd();
1494
1495
  }
1495
1496
  if (rf & 2) {
1496
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$I, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1497
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$H, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1497
1498
  i0__namespace.ɵɵadvance(2);
1498
1499
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1499
1500
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -6403,10 +6404,9 @@
6403
6404
  })();
6404
6405
 
6405
6406
  var CaseFileViewService = /** @class */ (function () {
6406
- function CaseFileViewService(http, appConfig, errorService) {
6407
+ function CaseFileViewService(http, appConfig) {
6407
6408
  this.http = http;
6408
6409
  this.appConfig = appConfig;
6409
- this.errorService = errorService;
6410
6410
  }
6411
6411
  /**
6412
6412
  * Retrieves the categories and documents for a case.
@@ -6437,12 +6437,12 @@
6437
6437
  };
6438
6438
  return CaseFileViewService;
6439
6439
  }());
6440
- CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
6440
+ CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
6441
6441
  CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
6442
6442
  (function () {
6443
6443
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
6444
6444
  type: i0.Injectable
6445
- }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
6445
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
6446
6446
  })();
6447
6447
 
6448
6448
  var DocumentManagementService = /** @class */ (function () {
@@ -8859,7 +8859,7 @@
8859
8859
  return IsCompoundPipe;
8860
8860
  }());
8861
8861
  IsCompoundPipe.COMPOUND_TYPES = [
8862
- 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
8862
+ 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
8863
8863
  ];
8864
8864
  IsCompoundPipe.EXCLUDE = [
8865
8865
  'CaseLink', 'JudicialUser'
@@ -9203,7 +9203,7 @@
9203
9203
  }], null, null);
9204
9204
  })();
9205
9205
 
9206
- var _c0$H = ["writeComplexFieldComponent"];
9206
+ var _c0$G = ["writeComplexFieldComponent"];
9207
9207
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
9208
9208
  if (rf & 1) {
9209
9209
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -9417,7 +9417,7 @@
9417
9417
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
9418
9418
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
9419
9419
  if (rf & 1) {
9420
- i0__namespace.ɵɵviewQuery(_c0$H, 1);
9420
+ i0__namespace.ɵɵviewQuery(_c0$G, 1);
9421
9421
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
9422
9422
  }
9423
9423
  if (rf & 2) {
@@ -9481,6 +9481,12 @@
9481
9481
  return CategoriesAndDocuments;
9482
9482
  }());
9483
9483
 
9484
+ var DocumentTreeNodeType;
9485
+ (function (DocumentTreeNodeType) {
9486
+ DocumentTreeNodeType["FOLDER"] = "folder";
9487
+ DocumentTreeNodeType["DOCUMENT"] = "document";
9488
+ })(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
9489
+
9484
9490
  var DocumentTreeNode = /** @class */ (function () {
9485
9491
  function DocumentTreeNode() {
9486
9492
  }
@@ -9506,9 +9512,9 @@
9506
9512
  var _a, _b;
9507
9513
  var sortAscending = function () {
9508
9514
  return function (a, b) {
9509
- var nameA = a.name.toUpperCase(); // ignore upper and lowercase
9510
- var nameB = b.name.toUpperCase(); // ignore upper and lowercase
9511
- if (a.type === 'category' || b.type === 'category') {
9515
+ var nameA = a.name.toUpperCase();
9516
+ var nameB = b.name.toUpperCase();
9517
+ if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
9512
9518
  return 0;
9513
9519
  }
9514
9520
  if (nameA < nameB) {
@@ -9528,9 +9534,9 @@
9528
9534
  var _a, _b;
9529
9535
  var sortDescending = function () {
9530
9536
  return function (a, b) {
9531
- var nameA = a.name.toUpperCase(); // ignore upper and lowercase
9532
- var nameB = b.name.toUpperCase(); // ignore upper and lowercase
9533
- if (a.type === 'category' || b.type === 'category') {
9537
+ var nameA = a.name.toUpperCase();
9538
+ var nameB = b.name.toUpperCase();
9539
+ if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
9534
9540
  return 0;
9535
9541
  }
9536
9542
  if (nameA > nameB) {
@@ -9581,198 +9587,6 @@
9581
9587
  __metadata("design:paramtypes", [])
9582
9588
  ], DocumentTreeNode.prototype, "childDocumentCount", null);
9583
9589
 
9584
- var categoriesAndDocumentsTestData = {
9585
- case_version: 1,
9586
- categories: [
9587
- {
9588
- category_id: 'Beers',
9589
- category_name: 'Beers',
9590
- category_order: 1,
9591
- documents: [
9592
- {
9593
- document_url: '/test',
9594
- document_filename: 'Lager encyclopedia',
9595
- document_binary_url: '/test/binary',
9596
- attribute_path: '',
9597
- upload_timestamp: ''
9598
- },
9599
- {
9600
- document_url: '/test',
9601
- document_filename: 'Beers encyclopedia',
9602
- document_binary_url: '/test/binary',
9603
- attribute_path: '',
9604
- upload_timestamp: ''
9605
- },
9606
- {
9607
- document_url: '/test',
9608
- document_filename: 'Ale encyclopedia',
9609
- document_binary_url: '/test/binary',
9610
- attribute_path: '',
9611
- upload_timestamp: ''
9612
- }
9613
- ],
9614
- sub_categories: [
9615
- {
9616
- category_id: 'BeersBitters',
9617
- category_name: 'Bitters',
9618
- category_order: 1,
9619
- documents: [],
9620
- sub_categories: []
9621
- },
9622
- {
9623
- category_id: 'BeersAmerican',
9624
- category_name: 'American',
9625
- category_order: 2,
9626
- documents: [],
9627
- sub_categories: []
9628
- },
9629
- {
9630
- category_id: 'BeersAsian',
9631
- category_name: 'Asian',
9632
- category_order: 3,
9633
- documents: [],
9634
- sub_categories: []
9635
- }
9636
- ]
9637
- },
9638
- {
9639
- category_id: 'Wines',
9640
- category_name: 'Wines',
9641
- category_order: 2,
9642
- documents: [],
9643
- sub_categories: [
9644
- {
9645
- category_id: 'WinesFrench',
9646
- category_name: 'French',
9647
- category_order: 1,
9648
- documents: [],
9649
- sub_categories: []
9650
- },
9651
- {
9652
- category_id: 'WinesItalian',
9653
- category_name: 'Italian',
9654
- category_order: 2,
9655
- documents: [],
9656
- sub_categories: []
9657
- }
9658
- ]
9659
- },
9660
- {
9661
- category_id: 'Spirits',
9662
- category_name: 'Spirits',
9663
- category_order: 3,
9664
- documents: [],
9665
- sub_categories: [
9666
- {
9667
- category_id: 'SpiritsWhisky',
9668
- category_name: 'Scotch whisky',
9669
- category_order: 1,
9670
- documents: [],
9671
- sub_categories: [
9672
- {
9673
- category_id: 'WhiskyHighland',
9674
- category_name: 'Highland',
9675
- category_order: 1,
9676
- documents: [],
9677
- sub_categories: [
9678
- {
9679
- category_id: 'WhiskyHighland1',
9680
- category_name: 'Highland 1',
9681
- category_order: 1,
9682
- documents: [],
9683
- sub_categories: []
9684
- }
9685
- ]
9686
- },
9687
- {
9688
- category_id: 'WhiskyLowland',
9689
- category_name: 'Lowland',
9690
- category_order: 2,
9691
- documents: [],
9692
- sub_categories: [
9693
- {
9694
- category_id: 'WhiskyLowland1',
9695
- category_name: 'Lowland 1',
9696
- category_order: 1,
9697
- documents: [
9698
- {
9699
- document_url: '/test',
9700
- document_filename: 'Details about Whisky Lowland 1',
9701
- document_binary_url: '/test/binary',
9702
- attribute_path: '',
9703
- upload_timestamp: ''
9704
- }
9705
- ],
9706
- sub_categories: []
9707
- },
9708
- {
9709
- category_id: 'WhiskyLowland2',
9710
- category_name: 'Lowland 2',
9711
- category_order: 2,
9712
- documents: [],
9713
- sub_categories: []
9714
- }
9715
- ]
9716
- },
9717
- {
9718
- category_id: 'WhiskyIslay',
9719
- category_name: 'Islay',
9720
- category_order: 3,
9721
- documents: [
9722
- {
9723
- document_url: '/test',
9724
- document_filename: 'Details about Whisky Islay',
9725
- document_binary_url: '/test/binary',
9726
- attribute_path: '',
9727
- upload_timestamp: ''
9728
- },
9729
- {
9730
- document_url: '/test',
9731
- document_filename: 'More information about Whisky Islay',
9732
- document_binary_url: '/test/binary',
9733
- attribute_path: '',
9734
- upload_timestamp: ''
9735
- }
9736
- ],
9737
- sub_categories: []
9738
- },
9739
- {
9740
- category_id: 'WhiskySpeyside',
9741
- category_name: 'Speyside',
9742
- category_order: 4,
9743
- documents: [],
9744
- sub_categories: []
9745
- },
9746
- {
9747
- category_id: 'WhiskyCampbeltown',
9748
- category_name: 'Campbeltown',
9749
- category_order: 5,
9750
- documents: [],
9751
- sub_categories: []
9752
- }
9753
- ]
9754
- }
9755
- ]
9756
- }
9757
- ],
9758
- uncategorised_documents: [
9759
- {
9760
- document_url: '/uncategorised-document-1',
9761
- document_filename: 'Uncategorised document 1',
9762
- document_binary_url: '/test/binary',
9763
- attribute_path: '',
9764
- upload_timestamp: ''
9765
- },
9766
- {
9767
- document_url: '/uncategorised-document-2',
9768
- document_filename: 'Uncategorised document 2',
9769
- document_binary_url: '/test/binary',
9770
- attribute_path: '',
9771
- upload_timestamp: ''
9772
- }
9773
- ]
9774
- };
9775
-
9776
9590
  function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template(rf, ctx) {
9777
9591
  if (rf & 1) {
9778
9592
  i0__namespace.ɵɵelementContainerStart(0);
@@ -9923,56 +9737,84 @@
9923
9737
  }] });
9924
9738
  })();
9925
9739
 
9926
- var _c0$G = ["tree"];
9927
- function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) {
9740
+ function CaseFileViewFolderComponent_div_8_div_1_Template(rf, ctx) {
9928
9741
  if (rf & 1) {
9929
- i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
9930
- i0__namespace.ɵɵelementStart(1, "div", 8);
9931
- i0__namespace.ɵɵelementStart(2, "button", 9);
9932
- i0__namespace.ɵɵelement(3, "img", 10);
9742
+ i0__namespace.ɵɵelementStart(0, "div");
9743
+ i0__namespace.ɵɵtext(1, " No results found ");
9744
+ i0__namespace.ɵɵelementEnd();
9745
+ }
9746
+ }
9747
+ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_3_Template(rf, ctx) {
9748
+ if (rf & 1) {
9749
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
9750
+ i0__namespace.ɵɵelementStart(1, "div", 13);
9751
+ i0__namespace.ɵɵelementStart(2, "button", 14);
9752
+ i0__namespace.ɵɵelement(3, "img", 15);
9933
9753
  i0__namespace.ɵɵelementEnd();
9934
- i0__namespace.ɵɵelementStart(4, "span", 11);
9754
+ i0__namespace.ɵɵelementStart(4, "span", 16);
9935
9755
  i0__namespace.ɵɵtext(5);
9936
9756
  i0__namespace.ɵɵelementEnd();
9937
9757
  i0__namespace.ɵɵelementEnd();
9938
9758
  i0__namespace.ɵɵelementEnd();
9939
9759
  }
9940
9760
  if (rf & 2) {
9941
- var node_r2 = ctx.$implicit;
9761
+ var node_r4 = ctx.$implicit;
9942
9762
  i0__namespace.ɵɵadvance(5);
9943
- i0__namespace.ɵɵtextInterpolate(node_r2.name);
9763
+ i0__namespace.ɵɵtextInterpolate(node_r4.name);
9944
9764
  }
9945
9765
  }
9946
- function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) {
9766
+ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, ctx) {
9947
9767
  if (rf & 1) {
9948
- i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
9949
- i0__namespace.ɵɵelementStart(1, "div", 12);
9950
- i0__namespace.ɵɵelementStart(2, "button", 13);
9951
- i0__namespace.ɵɵelement(3, "img", 14);
9952
- i0__namespace.ɵɵelementStart(4, "span", 15);
9768
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
9769
+ i0__namespace.ɵɵelementStart(1, "div", 13);
9770
+ i0__namespace.ɵɵelementStart(2, "button", 17);
9771
+ i0__namespace.ɵɵelement(3, "img", 18);
9772
+ i0__namespace.ɵɵelementStart(4, "span", 19);
9953
9773
  i0__namespace.ɵɵtext(5);
9954
9774
  i0__namespace.ɵɵelementEnd();
9955
9775
  i0__namespace.ɵɵelementEnd();
9956
- i0__namespace.ɵɵelementStart(6, "span", 16);
9776
+ i0__namespace.ɵɵelementStart(6, "span", 20);
9957
9777
  i0__namespace.ɵɵtext(7);
9958
9778
  i0__namespace.ɵɵelementEnd();
9959
9779
  i0__namespace.ɵɵelementEnd();
9960
9780
  i0__namespace.ɵɵelementStart(8, "div");
9961
- i0__namespace.ɵɵelementContainer(9, 17);
9781
+ i0__namespace.ɵɵelementContainer(9, 21);
9962
9782
  i0__namespace.ɵɵelementEnd();
9963
9783
  i0__namespace.ɵɵelementEnd();
9964
9784
  }
9965
9785
  if (rf & 2) {
9966
- var node_r3 = ctx.$implicit;
9967
- var ctx_r1 = i0__namespace.ɵɵnextContext();
9786
+ var node_r5 = ctx.$implicit;
9787
+ var ctx_r3 = i0__namespace.ɵɵnextContext(2);
9968
9788
  i0__namespace.ɵɵadvance(2);
9969
- i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r3.name);
9970
- i0__namespace.ɵɵadvance(3);
9971
- i0__namespace.ɵɵtextInterpolate(node_r3.childDocumentCount);
9789
+ i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r5.name);
9790
+ i0__namespace.ɵɵadvance(1);
9791
+ i0__namespace.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r5) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0__namespace.ɵɵsanitizeUrl);
9792
+ i0__namespace.ɵɵadvance(2);
9793
+ i0__namespace.ɵɵtextInterpolate(node_r5.childDocumentCount);
9972
9794
  i0__namespace.ɵɵadvance(2);
9973
- i0__namespace.ɵɵtextInterpolate(node_r3.name);
9795
+ i0__namespace.ɵɵtextInterpolate(node_r5.name);
9796
+ i0__namespace.ɵɵadvance(1);
9797
+ i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r5));
9798
+ }
9799
+ }
9800
+ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) {
9801
+ if (rf & 1) {
9802
+ i0__namespace.ɵɵelementStart(0, "div", 7);
9803
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
9804
+ i0__namespace.ɵɵelementStart(2, "cdk-tree", 9);
9805
+ i0__namespace.ɵɵtemplate(3, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_3_Template, 6, 1, "cdk-nested-tree-node", 10);
9806
+ i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 10, 6, "cdk-nested-tree-node", 11);
9807
+ i0__namespace.ɵɵelementEnd();
9808
+ i0__namespace.ɵɵelementEnd();
9809
+ }
9810
+ if (rf & 2) {
9811
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
9812
+ i0__namespace.ɵɵadvance(1);
9813
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
9974
9814
  i0__namespace.ɵɵadvance(1);
9975
- i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
9815
+ i0__namespace.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
9816
+ i0__namespace.ɵɵadvance(2);
9817
+ i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
9976
9818
  }
9977
9819
  }
9978
9820
  var CaseFileViewFolderComponent = /** @class */ (function () {
@@ -9980,37 +9822,34 @@
9980
9822
  this.categories = [];
9981
9823
  this.getChildren = function (node) { return rxjs.of(node.children); };
9982
9824
  this.nestedChildren = function (_, nodeData) { return nodeData.children; };
9983
- this.nestedTreeControl = new i2.NestedTreeControl(this.getChildren);
9825
+ this.nestedTreeControl = new i4.NestedTreeControl(this.getChildren);
9984
9826
  }
9985
- Object.defineProperty(CaseFileViewFolderComponent.prototype, "documentCount", {
9986
- get: function () {
9987
- var _a;
9988
- if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
9989
- return this.nestedDataSource.reduce(function (acc, item) {
9990
- return acc + item.childDocumentCount;
9991
- }, 0);
9992
- }
9993
- else {
9994
- return 0;
9995
- }
9996
- },
9997
- enumerable: false,
9998
- configurable: true
9999
- });
10000
9827
  CaseFileViewFolderComponent.prototype.ngOnInit = function () {
10001
9828
  var _this = this;
9829
+ this.documentFilterFormGroup = new i1$2.FormGroup({});
9830
+ this.documentSearchFormControl = new i1$2.FormControl('');
9831
+ this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
9832
+ // Listen to search input and initiate filter documents if at least three characters entered
9833
+ this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.tap(function (searchTerm) { return _this.searchTermLength = searchTerm.length; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase()).pipe(); })).subscribe(function (documentTreeData) {
9834
+ _this.nestedDataSource = documentTreeData;
9835
+ _this.nestedTreeControl.dataNodes = documentTreeData;
9836
+ _this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
9837
+ ? _this.nestedTreeControl.expandAll()
9838
+ : _this.nestedTreeControl.collapseAll();
9839
+ });
9840
+ // Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
10002
9841
  this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
10003
- // Using the mock data for now as we have to display the documents as well for demo purpose
10004
- var categories = _this.loadCategories(); // categoriesAndDocuments.categories;
9842
+ var categories = categoriesAndDocuments.categories;
10005
9843
  // Generate document tree data from categories
10006
- var treeData = _this.generateTreeData(categories);
9844
+ _this.documentTreeData = _this.generateTreeData(categories);
10007
9845
  // Append uncategorised documents
10008
9846
  if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
10009
9847
  var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
10010
- treeData.push(uncategorisedDocuments);
9848
+ _this.documentTreeData.push(uncategorisedDocuments);
10011
9849
  }
10012
9850
  // Initialise cdk tree with generated data
10013
- _this.nestedDataSource = treeData;
9851
+ _this.nestedDataSource = _this.documentTreeData;
9852
+ _this.nestedTreeControl.dataNodes = _this.documentTreeData;
10014
9853
  });
10015
9854
  };
10016
9855
  CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
@@ -10018,7 +9857,7 @@
10018
9857
  return categories.reduce(function (tree, node) {
10019
9858
  var newDocumentTreeNode = new DocumentTreeNode();
10020
9859
  newDocumentTreeNode.name = node.category_name;
10021
- newDocumentTreeNode.type = 'category';
9860
+ newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
10022
9861
  newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
10023
9862
  return __spread(tree, [
10024
9863
  newDocumentTreeNode,
@@ -10030,7 +9869,7 @@
10030
9869
  documents.forEach(function (document) {
10031
9870
  var documentTreeNode = new DocumentTreeNode();
10032
9871
  documentTreeNode.name = document.document_filename;
10033
- documentTreeNode.type = 'document';
9872
+ documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
10034
9873
  documentsToReturn.push(documentTreeNode);
10035
9874
  });
10036
9875
  return documentsToReturn;
@@ -10040,15 +9879,35 @@
10040
9879
  uncategorisedDocuments.forEach(function (document) {
10041
9880
  var documentTreeNode = new DocumentTreeNode();
10042
9881
  documentTreeNode.name = document.document_filename;
10043
- documentTreeNode.type = 'document';
9882
+ documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
10044
9883
  documents.push(documentTreeNode);
10045
9884
  });
10046
9885
  var uncategorisedNode = new DocumentTreeNode();
10047
9886
  uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
10048
- uncategorisedNode.type = 'category';
9887
+ uncategorisedNode.type = DocumentTreeNodeType.FOLDER;
10049
9888
  uncategorisedNode.children = documents;
10050
9889
  return uncategorisedNode;
10051
9890
  };
9891
+ CaseFileViewFolderComponent.prototype.filter = function (searchTerm) {
9892
+ // Make a copy of the data so we do not mutate the original
9893
+ function copy(node) {
9894
+ var documentTreeNode = new DocumentTreeNode();
9895
+ return Object.assign(documentTreeNode, node);
9896
+ }
9897
+ var filteredData = this.documentTreeData;
9898
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
9899
+ filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
9900
+ if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
9901
+ return true;
9902
+ }
9903
+ // Call recursively if node has children
9904
+ if (node.children) {
9905
+ return (node.children = node.children.map(copy).filter(filterTreeData)).length;
9906
+ }
9907
+ });
9908
+ }
9909
+ return rxjs.of(filteredData);
9910
+ };
10052
9911
  CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
10053
9912
  var sortedData = this.nestedDataSource.map(function (item) {
10054
9913
  item.sortChildrenAscending();
@@ -10067,11 +9926,6 @@
10067
9926
  });
10068
9927
  this.updateNodeData(sortedData);
10069
9928
  };
10070
- CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
10071
- if (this.categoriesAndDocumentsSubscription) {
10072
- this.categoriesAndDocumentsSubscription.unsubscribe();
10073
- }
10074
- };
10075
9929
  CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
10076
9930
  var _this = this;
10077
9931
  var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
@@ -10093,49 +9947,43 @@
10093
9947
  });
10094
9948
  newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
10095
9949
  };
10096
- CaseFileViewFolderComponent.prototype.loadCategories = function () {
10097
- return categoriesAndDocumentsTestData.categories;
9950
+ CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
9951
+ var _a, _b;
9952
+ (_a = this.categoriesAndDocumentsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
9953
+ (_b = this.documentFilterSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
10098
9954
  };
10099
9955
  return CaseFileViewFolderComponent;
10100
9956
  }());
10101
9957
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
9958
+ CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
9959
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
10102
9960
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
10103
- CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], viewQuery: function CaseFileViewFolderComponent_Query(rf, ctx) {
10104
- if (rf & 1) {
10105
- i0__namespace.ɵɵviewQuery(_c0$G, 3);
10106
- }
10107
- if (rf & 2) {
10108
- var _t = void 0;
10109
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tree = _t.first);
10110
- }
10111
- }, 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) {
9961
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 9, vars: 2, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], ["cdkTreeNodeToggle", "", 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"], ["mat-icon-button", "", 1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
10112
9962
  if (rf & 1) {
10113
9963
  i0__namespace.ɵɵelementStart(0, "div", 0);
10114
9964
  i0__namespace.ɵɵelementStart(1, "div", 1);
10115
- i0__namespace.ɵɵtext(2);
9965
+ i0__namespace.ɵɵelement(2, "input", 2);
10116
9966
  i0__namespace.ɵɵelementEnd();
10117
- i0__namespace.ɵɵelementStart(3, "div");
10118
- i0__namespace.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
10119
- i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_4_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_4_listener() { return ctx.sortDataSourceDescAlphabetically(); });
10120
9967
  i0__namespace.ɵɵelementEnd();
9968
+ i0__namespace.ɵɵelementStart(3, "div", 3);
9969
+ i0__namespace.ɵɵelementStart(4, "div", 4);
9970
+ i0__namespace.ɵɵtext(5, "Documents");
10121
9971
  i0__namespace.ɵɵelementEnd();
9972
+ i0__namespace.ɵɵelementStart(6, "div");
9973
+ i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
9974
+ i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener() { return ctx.sortDataSourceDescAlphabetically(); });
10122
9975
  i0__namespace.ɵɵelementEnd();
10123
- i0__namespace.ɵɵelementStart(5, "div", 3);
10124
- i0__namespace.ɵɵelementStart(6, "cdk-tree", 4);
10125
- i0__namespace.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 6, 1, "cdk-nested-tree-node", 5);
10126
- i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 10, 5, "cdk-nested-tree-node", 6);
10127
9976
  i0__namespace.ɵɵelementEnd();
10128
9977
  i0__namespace.ɵɵelementEnd();
9978
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_div_8_Template, 5, 4, "div", 6);
10129
9979
  }
10130
9980
  if (rf & 2) {
10131
- i0__namespace.ɵɵadvance(2);
10132
- i0__namespace.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
10133
- i0__namespace.ɵɵadvance(4);
10134
- i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
10135
- i0__namespace.ɵɵadvance(2);
10136
- i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
9981
+ i0__namespace.ɵɵadvance(1);
9982
+ i0__namespace.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
9983
+ i0__namespace.ɵɵadvance(7);
9984
+ i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
10137
9985
  }
10138
- }, 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}"] });
9986
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i4__namespace.CdkTree, i4__namespace.CdkTreeNodeDef, i4__namespace.CdkNestedTreeNode, i4__namespace.CdkTreeNodeToggle, i4__namespace.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%;padding:8px 8px 0;margin-bottom:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-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;overflow-x:hidden;overflow-y:scroll;height:400px}.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;white-space:nowrap;cursor:pointer}.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%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding-top:4px}.node__name[_ngcontent-%COMP%]{margin-left:4px}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}"] });
10139
9987
  (function () {
10140
9988
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
10141
9989
  type: i0.Component,
@@ -10146,21 +9994,61 @@
10146
9994
  }]
10147
9995
  }], function () { return []; }, { categoriesAndDocuments: [{
10148
9996
  type: i0.Input
10149
- }], tree: [{
10150
- type: i0.ViewChild,
10151
- args: ['tree', { static: true }]
10152
9997
  }] });
10153
9998
  })();
10154
9999
 
10000
+ function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
10001
+ if (rf & 1) {
10002
+ i0__namespace.ɵɵelementStart(0, "div", 2);
10003
+ i0__namespace.ɵɵelementStart(1, "h1", 3);
10004
+ i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
10005
+ i0__namespace.ɵɵelementEnd();
10006
+ i0__namespace.ɵɵelementStart(3, "p", 4);
10007
+ i0__namespace.ɵɵtext(4, "Try again later.");
10008
+ i0__namespace.ɵɵelementEnd();
10009
+ i0__namespace.ɵɵelementEnd();
10010
+ }
10011
+ }
10012
+ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
10013
+ if (rf & 1) {
10014
+ i0__namespace.ɵɵelementStart(0, "div");
10015
+ i0__namespace.ɵɵelementStart(1, "h2", 5);
10016
+ i0__namespace.ɵɵtext(2, "Case file");
10017
+ i0__namespace.ɵɵelementEnd();
10018
+ i0__namespace.ɵɵelementStart(3, "div", 6);
10019
+ i0__namespace.ɵɵelementStart(4, "div", 7);
10020
+ i0__namespace.ɵɵelement(5, "ccd-case-file-view-folder", 8);
10021
+ i0__namespace.ɵɵelementEnd();
10022
+ i0__namespace.ɵɵelement(6, "div", 9);
10023
+ i0__namespace.ɵɵelementStart(7, "div", 10);
10024
+ i0__namespace.ɵɵelement(8, "mv-media-viewer", 11);
10025
+ i0__namespace.ɵɵelementEnd();
10026
+ i0__namespace.ɵɵelementEnd();
10027
+ i0__namespace.ɵɵelementEnd();
10028
+ }
10029
+ if (rf & 2) {
10030
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
10031
+ i0__namespace.ɵɵadvance(5);
10032
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
10033
+ i0__namespace.ɵɵadvance(3);
10034
+ i0__namespace.ɵɵproperty("url", "")("showToolbar", true)("contentType", "pdf");
10035
+ }
10036
+ }
10155
10037
  var CaseFileViewFieldComponent = /** @class */ (function () {
10156
10038
  function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
10157
10039
  this.elementRef = elementRef;
10158
10040
  this.route = route;
10159
10041
  this.caseFileViewService = caseFileViewService;
10042
+ this.getCategoriesAndDocumentsError = false;
10160
10043
  }
10161
10044
  CaseFileViewFieldComponent.prototype.ngOnInit = function () {
10045
+ var _this = this;
10162
10046
  var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
10163
10047
  this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
10048
+ this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
10049
+ next: function (_) { },
10050
+ error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
10051
+ });
10164
10052
  };
10165
10053
  CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
10166
10054
  var slider = this.elementRef.nativeElement.querySelector('.slider');
@@ -10184,30 +10072,26 @@
10184
10072
  documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
10185
10073
  });
10186
10074
  };
10075
+ CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
10076
+ if (this.categoriesAndDocumentsSubscription) {
10077
+ this.categoriesAndDocumentsSubscription.unsubscribe();
10078
+ }
10079
+ };
10187
10080
  return CaseFileViewFieldComponent;
10188
10081
  }());
10189
10082
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
10190
10083
  CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService)); };
10191
- CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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) {
10084
+ CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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"], [3, "url", "downloadFileName", "showToolbar", "contentType"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
10192
10085
  if (rf & 1) {
10193
- i0__namespace.ɵɵelementStart(0, "h2", 0);
10194
- i0__namespace.ɵɵtext(1, "Case file");
10195
- i0__namespace.ɵɵelementEnd();
10196
- i0__namespace.ɵɵelementStart(2, "div", 1);
10197
- i0__namespace.ɵɵelementStart(3, "div", 2);
10198
- i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
10199
- i0__namespace.ɵɵelementEnd();
10200
- i0__namespace.ɵɵelement(5, "div", 4);
10201
- i0__namespace.ɵɵelementStart(6, "div", 5);
10202
- i0__namespace.ɵɵtext(7, " Media viewer ");
10203
- i0__namespace.ɵɵelementEnd();
10204
- i0__namespace.ɵɵelementEnd();
10086
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
10087
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 4, "div", 1);
10205
10088
  }
10206
10089
  if (rf & 2) {
10207
- i0__namespace.ɵɵadvance(4);
10208
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
10090
+ i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
10091
+ i0__namespace.ɵɵadvance(1);
10092
+ i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
10209
10093
  }
10210
- }, 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%}"] });
10094
+ }, directives: [i1__namespace.NgIf, CaseFileViewFolderComponent, i5__namespace.ɵcs], 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%}"] });
10211
10095
  (function () {
10212
10096
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
10213
10097
  type: i0.Component,
@@ -11035,7 +10919,7 @@
11035
10919
  };
11036
10920
  return WriteCollectionFieldComponent;
11037
10921
  }(AbstractFieldWriteComponent));
11038
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
10922
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
11039
10923
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
11040
10924
  if (rf & 1) {
11041
10925
  i0__namespace.ɵɵviewQuery(_c0$D, 1);
@@ -11084,7 +10968,7 @@
11084
10968
  templateUrl: './write-collection-field.html',
11085
10969
  styleUrls: ['./collection-field.scss']
11086
10970
  }]
11087
- }], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
10971
+ }], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
11088
10972
  type: i0.Input
11089
10973
  }], formGroup: [{
11090
10974
  type: i0.Input
@@ -12129,7 +12013,7 @@
12129
12013
  };
12130
12014
  return DatetimePickerComponent;
12131
12015
  }(AbstractFormFieldComponent));
12132
- DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
12016
+ DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4$1.NGX_MAT_DATE_FORMATS)); };
12133
12017
  DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
12134
12018
  if (rf & 1) {
12135
12019
  i0__namespace.ɵɵviewQuery(_c0$B, 1);
@@ -12141,8 +12025,8 @@
12141
12025
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
12142
12026
  }
12143
12027
  }, inputs: { dateControl: "dateControl" }, features: [i0__namespace.ɵɵProvidersFeature([
12144
- { provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
12145
- { provide: i4.NgxMatDateAdapter, useClass: momentAdapter.NgxMatMomentAdapter },
12028
+ { provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
12029
+ { provide: i4$1.NgxMatDateAdapter, useClass: momentAdapter.NgxMatMomentAdapter },
12146
12030
  { provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
12147
12031
  ]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 14, vars: 26, consts: [[1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "min", "max", "formControl", "ngxMatDatetimePicker", "focusin", "focusout", "dateChange"], ["input", ""], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian", "yearSelected", "monthSelected", "opened"], ["picker", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) {
12148
12032
  if (rf & 1) {
@@ -12188,7 +12072,7 @@
12188
12072
  i0__namespace.ɵɵadvance(1);
12189
12073
  i0__namespace.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
12190
12074
  }
12191
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace.MatDatepickerToggle, i6__namespace.MatSuffix, i4__namespace.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
12075
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i4__namespace$1.NgxMatDatetimeInput, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace.MatSuffix, i4__namespace$1.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
12192
12076
  (function () {
12193
12077
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
12194
12078
  type: i0.Component,
@@ -12198,15 +12082,15 @@
12198
12082
  styleUrls: ['./datetime-picker.component.scss'],
12199
12083
  encapsulation: i0.ViewEncapsulation.None,
12200
12084
  providers: [
12201
- { provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
12202
- { provide: i4.NgxMatDateAdapter, useClass: momentAdapter.NgxMatMomentAdapter },
12085
+ { provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
12086
+ { provide: i4$1.NgxMatDateAdapter, useClass: momentAdapter.NgxMatMomentAdapter },
12203
12087
  { provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
12204
12088
  ]
12205
12089
  }]
12206
12090
  }], function () {
12207
12091
  return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
12208
12092
  type: i0.Inject,
12209
- args: [i4.NGX_MAT_DATE_FORMATS]
12093
+ args: [i4$1.NGX_MAT_DATE_FORMATS]
12210
12094
  }] }];
12211
12095
  }, { datetimePicker: [{
12212
12096
  type: i0.ViewChild,
@@ -14738,7 +14622,7 @@
14738
14622
  i0__namespace.ɵɵadvance(1);
14739
14623
  i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
14740
14624
  }
14741
- }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i5__namespace$1.MatAutocompleteTrigger, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace$1.MatAutocomplete, i1__namespace.NgForOf, i6__namespace$1.MatOption, i1__namespace.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
14625
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i5__namespace$2.MatAutocompleteTrigger, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace$2.MatAutocomplete, i1__namespace.NgForOf, i6__namespace$1.MatOption, i1__namespace.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
14742
14626
  (function () {
14743
14627
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
14744
14628
  type: i0.Component,
@@ -20054,20 +19938,21 @@
20054
19938
  TabsModule,
20055
19939
  LabelSubstitutorModule,
20056
19940
  i1$4.NgxMdModule,
20057
- i4.NgxMatDatetimePickerModule,
20058
- i4.NgxMatTimepickerModule,
20059
- i4.NgxMatNativeDateModule,
19941
+ i4$1.NgxMatDatetimePickerModule,
19942
+ i4$1.NgxMatTimepickerModule,
19943
+ i4$1.NgxMatNativeDateModule,
20060
19944
  i6.MatFormFieldModule,
20061
19945
  input.MatInputModule,
20062
- i5.MatDatepickerModule,
20063
- i5$1.MatAutocompleteModule,
20064
- i2.CdkTreeModule,
19946
+ i5$1.MatDatepickerModule,
19947
+ i5$2.MatAutocompleteModule,
19948
+ i4.CdkTreeModule,
20065
19949
  i1$5.OverlayModule,
20066
19950
  i3.PaymentLibModule,
20067
- i2$1.ScrollToModule.forRoot()
20068
- ], i4.NgxMatDatetimePickerModule,
20069
- i4.NgxMatNativeDateModule,
20070
- i4.NgxMatTimepickerModule,
19951
+ i2.ScrollToModule.forRoot(),
19952
+ i5.MediaViewerModule
19953
+ ], i4$1.NgxMatDatetimePickerModule,
19954
+ i4$1.NgxMatNativeDateModule,
19955
+ i4$1.NgxMatTimepickerModule,
20071
19956
  TabsModule,
20072
19957
  PaletteUtilsModule,
20073
19958
  PipesModule] });
@@ -20163,18 +20048,18 @@
20163
20048
  TabsModule,
20164
20049
  LabelSubstitutorModule,
20165
20050
  i1$4.NgxMdModule,
20166
- i4.NgxMatDatetimePickerModule,
20167
- i4.NgxMatTimepickerModule,
20168
- i4.NgxMatNativeDateModule,
20051
+ i4$1.NgxMatDatetimePickerModule,
20052
+ i4$1.NgxMatTimepickerModule,
20053
+ i4$1.NgxMatNativeDateModule,
20169
20054
  i6.MatFormFieldModule,
20170
20055
  input.MatInputModule,
20171
- i5.MatDatepickerModule,
20172
- i5$1.MatAutocompleteModule,
20173
- i2.CdkTreeModule,
20056
+ i5$1.MatDatepickerModule,
20057
+ i5$2.MatAutocompleteModule,
20058
+ i4.CdkTreeModule,
20174
20059
  i1$5.OverlayModule,
20175
- i3.PaymentLibModule, i2__namespace$1.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
20176
- i4.NgxMatNativeDateModule,
20177
- i4.NgxMatTimepickerModule,
20060
+ i3.PaymentLibModule, i2__namespace.ScrollToModule, i5.MediaViewerModule], exports: [i4$1.NgxMatDatetimePickerModule,
20061
+ i4$1.NgxMatNativeDateModule,
20062
+ i4$1.NgxMatTimepickerModule,
20178
20063
  TabsModule,
20179
20064
  PaletteUtilsModule,
20180
20065
  PipesModule, UnsupportedFieldComponent,
@@ -20271,17 +20156,18 @@
20271
20156
  TabsModule,
20272
20157
  LabelSubstitutorModule,
20273
20158
  i1$4.NgxMdModule,
20274
- i4.NgxMatDatetimePickerModule,
20275
- i4.NgxMatTimepickerModule,
20276
- i4.NgxMatNativeDateModule,
20159
+ i4$1.NgxMatDatetimePickerModule,
20160
+ i4$1.NgxMatTimepickerModule,
20161
+ i4$1.NgxMatNativeDateModule,
20277
20162
  i6.MatFormFieldModule,
20278
20163
  input.MatInputModule,
20279
- i5.MatDatepickerModule,
20280
- i5$1.MatAutocompleteModule,
20281
- i2.CdkTreeModule,
20164
+ i5$1.MatDatepickerModule,
20165
+ i5$2.MatAutocompleteModule,
20166
+ i4.CdkTreeModule,
20282
20167
  i1$5.OverlayModule,
20283
20168
  i3.PaymentLibModule,
20284
- i2$1.ScrollToModule.forRoot()
20169
+ i2.ScrollToModule.forRoot(),
20170
+ i5.MediaViewerModule
20285
20171
  ],
20286
20172
  declarations: __spread([
20287
20173
  FixedListPipe,
@@ -20293,9 +20179,9 @@
20293
20179
  CaseFileViewOverlayMenuComponent,
20294
20180
  ]),
20295
20181
  exports: __spread([
20296
- i4.NgxMatDatetimePickerModule,
20297
- i4.NgxMatNativeDateModule,
20298
- i4.NgxMatTimepickerModule,
20182
+ i4$1.NgxMatDatetimePickerModule,
20183
+ i4$1.NgxMatNativeDateModule,
20184
+ i4$1.NgxMatTimepickerModule,
20299
20185
  TabsModule,
20300
20186
  PaletteUtilsModule,
20301
20187
  PipesModule
@@ -21166,7 +21052,7 @@
21166
21052
  i0__namespace.ɵɵadvance(3);
21167
21053
  i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
21168
21054
  }
21169
- }, directives: [i1__namespace$7.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
21055
+ }, directives: [i1__namespace$7.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
21170
21056
  (function () {
21171
21057
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
21172
21058
  type: i0.Component,