@hmcts/ccd-case-ui-toolkit 5.0.25-angular11-upgrade → 5.0.25-case-file-view-error-message-display

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 (67) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +637 -143
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/app.config.js +1 -1
  6. package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +1 -1
  7. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +1 -1
  8. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +35 -18
  9. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +102 -0
  10. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +292 -0
  11. package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +2 -0
  12. package/esm2015/lib/shared/components/palette/case-file-view/index.js +3 -0
  13. package/esm2015/lib/shared/components/palette/index.js +2 -1
  14. package/esm2015/lib/shared/components/palette/palette.module.js +24 -9
  15. package/esm2015/lib/shared/components/palette/palette.service.js +18 -1
  16. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +3 -0
  17. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +3 -0
  18. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +7 -0
  19. package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +2 -0
  20. package/esm2015/lib/shared/domain/case-file-view/index.js +5 -0
  21. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  22. package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
  23. package/esm2015/lib/shared/pipes/complex/cdd-page-fields.pipe.js +3 -3
  24. package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +46 -0
  25. package/esm2015/lib/shared/services/case-file-view/index.js +2 -0
  26. package/esm2015/lib/shared/services/index.js +2 -1
  27. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +585 -120
  28. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  29. package/lib/app.config.d.ts +4 -0
  30. package/lib/app.config.d.ts.map +1 -1
  31. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +7 -0
  32. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  33. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +22 -0
  34. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -0
  35. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +25 -0
  36. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -0
  37. package/lib/shared/components/palette/case-file-view/components/index.d.ts +2 -0
  38. package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -0
  39. package/lib/shared/components/palette/case-file-view/index.d.ts +3 -0
  40. package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -0
  41. package/lib/shared/components/palette/index.d.ts +1 -0
  42. package/lib/shared/components/palette/index.d.ts.map +1 -1
  43. package/lib/shared/components/palette/palette.module.d.ts +24 -21
  44. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  45. package/lib/shared/components/palette/palette.service.d.ts +2 -0
  46. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  47. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +9 -0
  48. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -0
  49. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +8 -0
  50. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -0
  51. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +12 -0
  52. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -0
  53. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +7 -0
  54. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +1 -0
  55. package/lib/shared/domain/case-file-view/index.d.ts +5 -0
  56. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -0
  57. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  58. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  59. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  60. package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +1 -1
  61. package/lib/shared/services/case-file-view/case-file-view.service.d.ts +21 -0
  62. package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -0
  63. package/lib/shared/services/case-file-view/index.d.ts +2 -0
  64. package/lib/shared/services/case-file-view/index.d.ts.map +1 -0
  65. package/lib/shared/services/index.d.ts +1 -0
  66. package/lib/shared/services/index.d.ts.map +1 -1
  67. package/package.json +1 -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/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/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.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, i1$5, i2, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$6, i10) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
5
+ })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i1$5, i1$6, i2, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -34,6 +34,7 @@
34
34
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
35
35
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
36
36
  var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
37
+ var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
37
38
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
38
39
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
39
40
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
@@ -42,7 +43,7 @@
42
43
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
43
44
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
44
45
  var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
45
- var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
46
+ var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
46
47
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
47
48
 
48
49
  function FooterComponent_div_2_Template(rf, ctx) {
@@ -6400,6 +6401,48 @@
6400
6401
  }], null, null);
6401
6402
  })();
6402
6403
 
6404
+ var CaseFileViewService = /** @class */ (function () {
6405
+ function CaseFileViewService(http, appConfig) {
6406
+ this.http = http;
6407
+ this.appConfig = appConfig;
6408
+ }
6409
+ /**
6410
+ * Retrieves the categories and documents for a case.
6411
+ *
6412
+ * @param caseRef 16-digit Case Reference number of the case
6413
+ * @returns An `Observable` of the `CategoriesAndDocuments` for the case
6414
+ */
6415
+ CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
6416
+ var url = this.appConfig.getCategoriesAndDocumentsUrl();
6417
+ if (url) {
6418
+ url += "/" + caseRef;
6419
+ return this.http.get(url, { observe: 'body' });
6420
+ }
6421
+ return rxjs.of(null);
6422
+ };
6423
+ CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
6424
+ var url = this.appConfig.getDocumentDataUrl();
6425
+ if (url) {
6426
+ url += "/" + caseRef;
6427
+ var body = {
6428
+ case_version: caseVersion,
6429
+ attribute_path: attributePath,
6430
+ category_id: categoryId
6431
+ };
6432
+ return this.http.put(url, body, { observe: 'body' });
6433
+ }
6434
+ return rxjs.of(null);
6435
+ };
6436
+ return CaseFileViewService;
6437
+ }());
6438
+ CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
6439
+ CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
6440
+ (function () {
6441
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
6442
+ type: i0.Injectable
6443
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
6444
+ })();
6445
+
6403
6446
  var DocumentManagementService = /** @class */ (function () {
6404
6447
  function DocumentManagementService(http, appConfig) {
6405
6448
  this.http = http;
@@ -9414,6 +9457,408 @@
9414
9457
  }] });
9415
9458
  })();
9416
9459
 
9460
+ function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) {
9461
+ if (rf & 1) {
9462
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
9463
+ i0__namespace.ɵɵelementStart(1, "div", 8);
9464
+ i0__namespace.ɵɵelement(2, "button", 9);
9465
+ i0__namespace.ɵɵelementStart(3, "span", 10);
9466
+ i0__namespace.ɵɵtext(4);
9467
+ i0__namespace.ɵɵelementEnd();
9468
+ i0__namespace.ɵɵelementEnd();
9469
+ i0__namespace.ɵɵelementEnd();
9470
+ }
9471
+ if (rf & 2) {
9472
+ var node_r2 = ctx.$implicit;
9473
+ i0__namespace.ɵɵadvance(4);
9474
+ i0__namespace.ɵɵtextInterpolate(node_r2.name);
9475
+ }
9476
+ }
9477
+ function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) {
9478
+ if (rf & 1) {
9479
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
9480
+ i0__namespace.ɵɵelementStart(1, "div", 8);
9481
+ i0__namespace.ɵɵelementStart(2, "button", 11);
9482
+ i0__namespace.ɵɵelementStart(3, "span", 12);
9483
+ i0__namespace.ɵɵtext(4);
9484
+ i0__namespace.ɵɵelementEnd();
9485
+ i0__namespace.ɵɵelementEnd();
9486
+ i0__namespace.ɵɵelementStart(5, "span", 13);
9487
+ i0__namespace.ɵɵtext(6);
9488
+ i0__namespace.ɵɵelementEnd();
9489
+ i0__namespace.ɵɵelementEnd();
9490
+ i0__namespace.ɵɵelementStart(7, "div");
9491
+ i0__namespace.ɵɵelementContainer(8, 14);
9492
+ i0__namespace.ɵɵelementEnd();
9493
+ i0__namespace.ɵɵelementEnd();
9494
+ }
9495
+ if (rf & 2) {
9496
+ var node_r3 = ctx.$implicit;
9497
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
9498
+ i0__namespace.ɵɵadvance(2);
9499
+ i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r3.name);
9500
+ i0__namespace.ɵɵadvance(2);
9501
+ i0__namespace.ɵɵtextInterpolate(node_r3.count);
9502
+ i0__namespace.ɵɵadvance(2);
9503
+ i0__namespace.ɵɵtextInterpolate(node_r3.name);
9504
+ i0__namespace.ɵɵadvance(1);
9505
+ i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
9506
+ }
9507
+ }
9508
+ var CaseFileViewFolderComponent = /** @class */ (function () {
9509
+ function CaseFileViewFolderComponent() {
9510
+ this.categories = [];
9511
+ this.getChildren = function (node) { return rxjs.of(node.children); };
9512
+ this.nestedChildren = function (_, nodeData) { return nodeData.children; };
9513
+ this.nestedTreeControl = new i1$5.NestedTreeControl(this.getChildren);
9514
+ }
9515
+ CaseFileViewFolderComponent.prototype.ngOnInit = function () {
9516
+ var _this = this;
9517
+ this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
9518
+ // Using the mock data for now as we have to display the documents as well for demo purpose
9519
+ var categories = _this.loadCategories(); // categoriesAndDocuments.categories;
9520
+ // Generate document tree data from categories
9521
+ var treeData = _this.generateTreeData(categories);
9522
+ // Append uncategorised documents
9523
+ if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
9524
+ var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
9525
+ treeData.push(uncategorisedDocuments);
9526
+ }
9527
+ // Initialise cdk tree with generated data
9528
+ _this.nestedDataSource = treeData;
9529
+ });
9530
+ };
9531
+ CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
9532
+ var _this = this;
9533
+ return categories.reduce(function (tree, node) { return __spread(tree, [
9534
+ {
9535
+ name: node.category_name,
9536
+ children: __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents))
9537
+ },
9538
+ ]); }, []);
9539
+ };
9540
+ CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
9541
+ var documentsToReturn = [];
9542
+ documents.forEach(function (document) {
9543
+ documentsToReturn.push({ name: document.document_filename });
9544
+ });
9545
+ return documentsToReturn;
9546
+ };
9547
+ CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
9548
+ var documents = [];
9549
+ uncategorisedDocuments.forEach(function (document) {
9550
+ documents.push({ name: document.document_filename });
9551
+ });
9552
+ return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, children: documents };
9553
+ };
9554
+ CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
9555
+ if (this.categoriesAndDocumentsSubscription) {
9556
+ this.categoriesAndDocumentsSubscription.unsubscribe();
9557
+ }
9558
+ };
9559
+ CaseFileViewFolderComponent.prototype.loadCategories = function () {
9560
+ return [
9561
+ {
9562
+ category_id: 'Beers',
9563
+ category_name: 'Beers',
9564
+ category_order: 1,
9565
+ documents: [
9566
+ {
9567
+ document_url: '/test',
9568
+ document_filename: 'Beers encyclopedia',
9569
+ document_binary_url: '/test/binary',
9570
+ attribute_path: '',
9571
+ upload_timestamp: ''
9572
+ }
9573
+ ],
9574
+ sub_categories: [
9575
+ {
9576
+ category_id: 'BeersBitters',
9577
+ category_name: 'Bitters',
9578
+ category_order: 1,
9579
+ documents: [],
9580
+ sub_categories: []
9581
+ },
9582
+ {
9583
+ category_id: 'BeersAmerican',
9584
+ category_name: 'American',
9585
+ category_order: 2,
9586
+ documents: [],
9587
+ sub_categories: []
9588
+ },
9589
+ {
9590
+ category_id: 'BeersAsian',
9591
+ category_name: 'Asian',
9592
+ category_order: 3,
9593
+ documents: [],
9594
+ sub_categories: []
9595
+ }
9596
+ ]
9597
+ },
9598
+ {
9599
+ category_id: 'Wines',
9600
+ category_name: 'Wines',
9601
+ category_order: 2,
9602
+ documents: [],
9603
+ sub_categories: [
9604
+ {
9605
+ category_id: 'WinesFrench',
9606
+ category_name: 'French',
9607
+ category_order: 1,
9608
+ documents: [],
9609
+ sub_categories: []
9610
+ },
9611
+ {
9612
+ category_id: 'WinesItalian',
9613
+ category_name: 'Italian',
9614
+ category_order: 2,
9615
+ documents: [],
9616
+ sub_categories: []
9617
+ }
9618
+ ]
9619
+ },
9620
+ {
9621
+ category_id: 'Spirits',
9622
+ category_name: 'Spirits',
9623
+ category_order: 3,
9624
+ documents: [],
9625
+ sub_categories: [
9626
+ {
9627
+ category_id: 'SpiritsWhisky',
9628
+ category_name: 'Scotch whisky',
9629
+ category_order: 1,
9630
+ documents: [],
9631
+ sub_categories: [
9632
+ {
9633
+ category_id: 'WhiskyHighland',
9634
+ category_name: 'Highland',
9635
+ category_order: 1,
9636
+ documents: [],
9637
+ sub_categories: [
9638
+ {
9639
+ category_id: 'WhiskyHighland1',
9640
+ category_name: 'Highland 1',
9641
+ category_order: 1,
9642
+ documents: [],
9643
+ sub_categories: []
9644
+ }
9645
+ ]
9646
+ },
9647
+ {
9648
+ category_id: 'WhiskyLowland',
9649
+ category_name: 'Lowland',
9650
+ category_order: 2,
9651
+ documents: [],
9652
+ sub_categories: [
9653
+ {
9654
+ category_id: 'WhiskyLowland1',
9655
+ category_name: 'Lowland 1',
9656
+ category_order: 1,
9657
+ documents: [
9658
+ {
9659
+ document_url: '/test',
9660
+ document_filename: 'Details about Whisky Lowland 1',
9661
+ document_binary_url: '/test/binary',
9662
+ attribute_path: '',
9663
+ upload_timestamp: ''
9664
+ }
9665
+ ],
9666
+ sub_categories: []
9667
+ },
9668
+ {
9669
+ category_id: 'WhiskyLowland2',
9670
+ category_name: 'Lowland 2',
9671
+ category_order: 2,
9672
+ documents: [],
9673
+ sub_categories: []
9674
+ }
9675
+ ]
9676
+ },
9677
+ {
9678
+ category_id: 'WhiskyIslay',
9679
+ category_name: 'Islay',
9680
+ category_order: 3,
9681
+ documents: [
9682
+ {
9683
+ document_url: '/test',
9684
+ document_filename: 'Details about Whisky Islay',
9685
+ document_binary_url: '/test/binary',
9686
+ attribute_path: '',
9687
+ upload_timestamp: ''
9688
+ },
9689
+ {
9690
+ document_url: '/test',
9691
+ document_filename: 'More information about Whisky Islay',
9692
+ document_binary_url: '/test/binary',
9693
+ attribute_path: '',
9694
+ upload_timestamp: ''
9695
+ }
9696
+ ],
9697
+ sub_categories: []
9698
+ },
9699
+ {
9700
+ category_id: 'WhiskySpeyside',
9701
+ category_name: 'Speyside',
9702
+ category_order: 4,
9703
+ documents: [],
9704
+ sub_categories: []
9705
+ },
9706
+ {
9707
+ category_id: 'WhiskyCampbeltown',
9708
+ category_name: 'Campbeltown',
9709
+ category_order: 5,
9710
+ documents: [],
9711
+ sub_categories: []
9712
+ }
9713
+ ]
9714
+ }
9715
+ ]
9716
+ }
9717
+ ];
9718
+ };
9719
+ return CaseFileViewFolderComponent;
9720
+ }());
9721
+ CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
9722
+ CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
9723
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 8, vars: 3, consts: [[1, "document-filter-container"], [1, "document-filter"], [1, "documents-title"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "icon", "icon-document"], [1, "node-name", "node-name-document"], ["mat-icon-button", "", "cdkTreeNodeToggle", "", 1, "icon", "icon-folder"], [1, "document-count"], [1, "node-name", "node-name-folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
9724
+ if (rf & 1) {
9725
+ i0__namespace.ɵɵelementStart(0, "div", 0);
9726
+ i0__namespace.ɵɵelement(1, "div", 1);
9727
+ i0__namespace.ɵɵelementStart(2, "div", 2);
9728
+ i0__namespace.ɵɵtext(3, "Documents");
9729
+ i0__namespace.ɵɵelementEnd();
9730
+ i0__namespace.ɵɵelementEnd();
9731
+ i0__namespace.ɵɵelementStart(4, "div", 3);
9732
+ i0__namespace.ɵɵelementStart(5, "cdk-tree", 4);
9733
+ i0__namespace.ɵɵtemplate(6, CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template, 5, 1, "cdk-nested-tree-node", 5);
9734
+ i0__namespace.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 9, 5, "cdk-nested-tree-node", 6);
9735
+ i0__namespace.ɵɵelementEnd();
9736
+ i0__namespace.ɵɵelementEnd();
9737
+ }
9738
+ if (rf & 2) {
9739
+ i0__namespace.ɵɵadvance(5);
9740
+ i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
9741
+ i0__namespace.ɵɵadvance(2);
9742
+ i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
9743
+ }
9744
+ }, directives: [i1__namespace$5.CdkTree, i1__namespace$5.CdkTreeNodeDef, i1__namespace$5.CdkNestedTreeNode, i1__namespace$5.CdkTreeNodeToggle, i1__namespace$5.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{height:60px;border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .node[_ngcontent-%COMP%]{display:flex;padding:4px}.document-tree-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;background-size:100%;border:0;background-color:#fff}.document-tree-container[_ngcontent-%COMP%] .icon-folder[_ngcontent-%COMP%]{background-image:url(/assets/images/folder.png)}.document-tree-container[_ngcontent-%COMP%] .icon-document[_ngcontent-%COMP%]{background-image:url(/assets/images/document.png)}.document-tree-container[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{margin-left:6px}.document-tree-container[_ngcontent-%COMP%] .node-name-document[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .node-name-folder[_ngcontent-%COMP%]{margin-top:4px}.document-tree-container[_ngcontent-%COMP%] .document-count[_ngcontent-%COMP%]{color:#fff}"] });
9745
+ (function () {
9746
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
9747
+ type: i0.Component,
9748
+ args: [{
9749
+ selector: 'ccd-case-file-view-folder',
9750
+ styleUrls: ['./case-file-view-folder.component.scss'],
9751
+ templateUrl: './case-file-view-folder.component.html'
9752
+ }]
9753
+ }], function () { return []; }, { categoriesAndDocuments: [{
9754
+ type: i0.Input
9755
+ }] });
9756
+ })();
9757
+
9758
+ function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
9759
+ if (rf & 1) {
9760
+ i0__namespace.ɵɵelementStart(0, "div", 2);
9761
+ i0__namespace.ɵɵelementStart(1, "h1", 3);
9762
+ i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
9763
+ i0__namespace.ɵɵelementEnd();
9764
+ i0__namespace.ɵɵelementStart(3, "p", 4);
9765
+ i0__namespace.ɵɵtext(4, "Try again later.");
9766
+ i0__namespace.ɵɵelementEnd();
9767
+ i0__namespace.ɵɵelementEnd();
9768
+ }
9769
+ }
9770
+ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
9771
+ if (rf & 1) {
9772
+ i0__namespace.ɵɵelementStart(0, "div");
9773
+ i0__namespace.ɵɵelementStart(1, "h2", 5);
9774
+ i0__namespace.ɵɵtext(2, "Case file");
9775
+ i0__namespace.ɵɵelementEnd();
9776
+ i0__namespace.ɵɵelementStart(3, "div", 6);
9777
+ i0__namespace.ɵɵelementStart(4, "div", 7);
9778
+ i0__namespace.ɵɵelement(5, "ccd-case-file-view-folder", 8);
9779
+ i0__namespace.ɵɵelementEnd();
9780
+ i0__namespace.ɵɵelement(6, "div", 9);
9781
+ i0__namespace.ɵɵelementStart(7, "div", 10);
9782
+ i0__namespace.ɵɵtext(8, " Media viewer ");
9783
+ i0__namespace.ɵɵelementEnd();
9784
+ i0__namespace.ɵɵelementEnd();
9785
+ i0__namespace.ɵɵelementEnd();
9786
+ }
9787
+ if (rf & 2) {
9788
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
9789
+ i0__namespace.ɵɵadvance(5);
9790
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
9791
+ }
9792
+ }
9793
+ var CaseFileViewFieldComponent = /** @class */ (function () {
9794
+ function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
9795
+ this.elementRef = elementRef;
9796
+ this.route = route;
9797
+ this.caseFileViewService = caseFileViewService;
9798
+ this.getCategoriesAndDocumentsError = false;
9799
+ }
9800
+ CaseFileViewFieldComponent.prototype.ngOnInit = function () {
9801
+ var _this = this;
9802
+ var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
9803
+ this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
9804
+ this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
9805
+ next: function (_) { },
9806
+ error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
9807
+ });
9808
+ };
9809
+ CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
9810
+ var slider = this.elementRef.nativeElement.querySelector('.slider');
9811
+ var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
9812
+ var mousedown$ = rxjs.fromEvent(slider, 'mousedown');
9813
+ var mousemove$ = rxjs.fromEvent(document, 'mousemove');
9814
+ var mouseup$ = rxjs.fromEvent(document, 'mouseup');
9815
+ var drag$ = mousedown$.pipe(operators.switchMap(function (start) {
9816
+ var x = start.clientX;
9817
+ var documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
9818
+ return mousemove$.pipe(operators.map(function (move) {
9819
+ move.preventDefault();
9820
+ return {
9821
+ dx: move.clientX - x,
9822
+ documentTreeContainerWidth: documentTreeContainerWidth
9823
+ };
9824
+ }), operators.takeUntil(mouseup$));
9825
+ }));
9826
+ drag$.subscribe(function (pos) {
9827
+ var calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
9828
+ documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
9829
+ });
9830
+ };
9831
+ CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
9832
+ if (this.categoriesAndDocumentsSubscription) {
9833
+ this.categoriesAndDocumentsSubscription.unsubscribe();
9834
+ }
9835
+ };
9836
+ return CaseFileViewFieldComponent;
9837
+ }());
9838
+ CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
9839
+ 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)); };
9840
+ 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"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
9841
+ if (rf & 1) {
9842
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
9843
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 1, "div", 1);
9844
+ }
9845
+ if (rf & 2) {
9846
+ i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
9847
+ i0__namespace.ɵɵadvance(1);
9848
+ i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
9849
+ }
9850
+ }, directives: [i1__namespace.NgIf, CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{flex:1 1 0%}"] });
9851
+ (function () {
9852
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
9853
+ type: i0.Component,
9854
+ args: [{
9855
+ selector: 'ccd-case-file-view-field',
9856
+ templateUrl: './case-file-view-field.component.html',
9857
+ styleUrls: ['./case-file-view-field.component.scss']
9858
+ }]
9859
+ }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null);
9860
+ })();
9861
+
9417
9862
  function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
9418
9863
  if (rf & 1) {
9419
9864
  i0__namespace.ɵɵelementStart(0, "a", 1);
@@ -9776,7 +10221,7 @@
9776
10221
  };
9777
10222
  return RemoveDialogComponent;
9778
10223
  }());
9779
- RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
10224
+ RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
9780
10225
  RemoveDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) {
9781
10226
  if (rf & 1) {
9782
10227
  i0__namespace.ɵɵelementStart(0, "div");
@@ -9817,7 +10262,7 @@
9817
10262
  templateUrl: './remove-dialog.component.html',
9818
10263
  styleUrls: ['../action-dialog.component.scss']
9819
10264
  }]
9820
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
10265
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
9821
10266
  })();
9822
10267
 
9823
10268
  var _c0$D = ["collectionItem"];
@@ -10196,7 +10641,7 @@
10196
10641
  };
10197
10642
  WriteCollectionFieldComponent.prototype.openModal = function (i) {
10198
10643
  var _this = this;
10199
- var dialogConfig = new i1$5.MatDialogConfig();
10644
+ var dialogConfig = new i1$6.MatDialogConfig();
10200
10645
  dialogConfig.disableClose = true;
10201
10646
  dialogConfig.autoFocus = true;
10202
10647
  dialogConfig.ariaLabel = 'Label';
@@ -10230,7 +10675,7 @@
10230
10675
  };
10231
10676
  return WriteCollectionFieldComponent;
10232
10677
  }(AbstractFieldWriteComponent));
10233
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
10678
+ 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)); };
10234
10679
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
10235
10680
  if (rf & 1) {
10236
10681
  i0__namespace.ɵɵviewQuery(_c0$D, 1);
@@ -10279,7 +10724,7 @@
10279
10724
  templateUrl: './write-collection-field.html',
10280
10725
  styleUrls: ['./collection-field.scss']
10281
10726
  }]
10282
- }], function () { return [{ type: i1__namespace$5.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
10727
+ }], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
10283
10728
  type: i0.Input
10284
10729
  }], formGroup: [{
10285
10730
  type: i0.Input
@@ -11670,7 +12115,7 @@
11670
12115
  };
11671
12116
  return DocumentDialogComponent;
11672
12117
  }());
11673
- DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
12118
+ DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
11674
12119
  DocumentDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) {
11675
12120
  if (rf & 1) {
11676
12121
  i0__namespace.ɵɵelementStart(0, "div");
@@ -11711,11 +12156,11 @@
11711
12156
  templateUrl: './document-dialog.component.html',
11712
12157
  styleUrls: ['../action-dialog.component.scss']
11713
12158
  }]
11714
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
12159
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
11715
12160
  })();
11716
12161
 
11717
12162
  function initDialog() {
11718
- var dialogConfig = new i1$5.MatDialogConfig();
12163
+ var dialogConfig = new i1$6.MatDialogConfig();
11719
12164
  dialogConfig.disableClose = true;
11720
12165
  dialogConfig.autoFocus = true;
11721
12166
  dialogConfig.ariaLabel = 'Label';
@@ -12039,7 +12484,7 @@
12039
12484
  WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
12040
12485
  WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
12041
12486
  WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
12042
- WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
12487
+ WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
12043
12488
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
12044
12489
  if (rf & 1) {
12045
12490
  i0__namespace.ɵɵviewQuery(_c0$z, 1);
@@ -12113,7 +12558,7 @@
12113
12558
  selector: 'ccd-write-document-field',
12114
12559
  templateUrl: './write-document-field.html'
12115
12560
  }]
12116
- }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$5.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
12561
+ }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$6.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
12117
12562
  type: i0.ViewChild,
12118
12563
  args: ['fileInput', { static: false }]
12119
12564
  }], clickout: [{
@@ -16158,6 +16603,9 @@
16158
16603
 
16159
16604
  var PaletteService = /** @class */ (function () {
16160
16605
  function PaletteService() {
16606
+ this.componentLauncherRegistry = {
16607
+ CaseFileView: CaseFileViewFieldComponent
16608
+ };
16161
16609
  }
16162
16610
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
16163
16611
  switch (caseField.field_type.type) {
@@ -16217,10 +16665,21 @@
16217
16665
  return CaseHistoryViewerFieldComponent;
16218
16666
  case 'WaysToPay':
16219
16667
  return WaysToPayFieldComponent;
16668
+ case 'ComponentLauncher':
16669
+ return this.getComponentLauncherComponent(caseField);
16220
16670
  default:
16221
16671
  return UnsupportedFieldComponent;
16222
16672
  }
16223
16673
  };
16674
+ PaletteService.prototype.getComponentLauncherComponent = function (caseField) {
16675
+ // Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
16676
+ // component from the componentLauncherRegistry
16677
+ var argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
16678
+ if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
16679
+ return this.componentLauncherRegistry[argumentValue];
16680
+ }
16681
+ return UnsupportedFieldComponent;
16682
+ };
16224
16683
  return PaletteService;
16225
16684
  }());
16226
16685
  PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
@@ -16523,7 +16982,7 @@
16523
16982
  };
16524
16983
  return SaveOrDiscardDialogComponent;
16525
16984
  }());
16526
- SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
16985
+ SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
16527
16986
  SaveOrDiscardDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) {
16528
16987
  if (rf & 1) {
16529
16988
  i0__namespace.ɵɵelementStart(0, "div");
@@ -16564,7 +17023,7 @@
16564
17023
  templateUrl: './save-or-discard-dialog.component.html',
16565
17024
  styleUrls: ['../action-dialog.component.scss']
16566
17025
  }]
16567
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
17026
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
16568
17027
  })();
16569
17028
 
16570
17029
  var CaseEditPageText;
@@ -17435,7 +17894,7 @@
17435
17894
  };
17436
17895
  return CaseEditPageComponent;
17437
17896
  }());
17438
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
17897
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
17439
17898
  CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) {
17440
17899
  if (rf & 1) {
17441
17900
  i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
@@ -17481,7 +17940,7 @@
17481
17940
  templateUrl: 'case-edit-page.html',
17482
17941
  styleUrls: ['./case-edit-page.scss']
17483
17942
  }]
17484
- }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$5.MatDialog }, { type: CaseFieldService }]; }, null);
17943
+ }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$6.MatDialog }, { type: CaseFieldService }]; }, null);
17485
17944
  })();
17486
17945
 
17487
17946
  var Confirmation = /** @class */ (function () {
@@ -18567,89 +19026,6 @@
18567
19026
  }], null, null);
18568
19027
  })();
18569
19028
 
18570
- var IsReadOnlyPipe = /** @class */ (function () {
18571
- function IsReadOnlyPipe(caseFieldService) {
18572
- this.caseFieldService = caseFieldService;
18573
- }
18574
- IsReadOnlyPipe.prototype.transform = function (field) {
18575
- return this.caseFieldService.isReadOnly(field);
18576
- };
18577
- return IsReadOnlyPipe;
18578
- }());
18579
- IsReadOnlyPipe.ɵfac = function IsReadOnlyPipe_Factory(t) { return new (t || IsReadOnlyPipe)(i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
18580
- IsReadOnlyPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdIsReadOnly", type: IsReadOnlyPipe, pure: true });
18581
- (function () {
18582
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IsReadOnlyPipe, [{
18583
- type: i0.Pipe,
18584
- args: [{
18585
- name: 'ccdIsReadOnly'
18586
- }]
18587
- }], function () { return [{ type: CaseFieldService }]; }, null);
18588
- })();
18589
-
18590
- var PaletteUtilsModule = /** @class */ (function () {
18591
- function PaletteUtilsModule() {
18592
- }
18593
- return PaletteUtilsModule;
18594
- }());
18595
- PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
18596
- PaletteUtilsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaletteUtilsModule });
18597
- PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
18598
- IsCompoundPipe
18599
- ], imports: [[
18600
- i1.CommonModule
18601
- ]] });
18602
- (function () {
18603
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
18604
- FieldLabelPipe,
18605
- FirstErrorPipe,
18606
- IsCompoundPipe,
18607
- IsMandatoryPipe,
18608
- IsReadOnlyPipe,
18609
- IsReadOnlyAndNotCollectionPipe,
18610
- DashPipe], imports: [i1.CommonModule], exports: [DatePipe,
18611
- FieldLabelPipe,
18612
- FirstErrorPipe,
18613
- IsCompoundPipe,
18614
- IsMandatoryPipe,
18615
- IsReadOnlyPipe,
18616
- IsReadOnlyAndNotCollectionPipe,
18617
- DashPipe] });
18618
- })();
18619
- (function () {
18620
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteUtilsModule, [{
18621
- type: i0.NgModule,
18622
- args: [{
18623
- imports: [
18624
- i1.CommonModule
18625
- ],
18626
- declarations: [
18627
- DatePipe,
18628
- FieldLabelPipe,
18629
- FirstErrorPipe,
18630
- IsCompoundPipe,
18631
- IsMandatoryPipe,
18632
- IsReadOnlyPipe,
18633
- IsReadOnlyAndNotCollectionPipe,
18634
- DashPipe
18635
- ],
18636
- exports: [
18637
- DatePipe,
18638
- FieldLabelPipe,
18639
- FirstErrorPipe,
18640
- IsCompoundPipe,
18641
- IsMandatoryPipe,
18642
- IsReadOnlyPipe,
18643
- IsReadOnlyAndNotCollectionPipe,
18644
- DashPipe
18645
- ],
18646
- providers: [
18647
- IsCompoundPipe
18648
- ]
18649
- }]
18650
- }], null, null);
18651
- })();
18652
-
18653
19029
  var CcdCollectionTableCaseFieldsFilterPipe = /** @class */ (function () {
18654
19030
  function CcdCollectionTableCaseFieldsFilterPipe() {
18655
19031
  }
@@ -18850,7 +19226,7 @@
18850
19226
  '',
18851
19227
  {}
18852
19228
  ];
18853
- ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay'];
19229
+ ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'ComponentLauncher'];
18854
19230
  ReadFieldsFilterPipe.NESTED_TYPES = {
18855
19231
  Complex: ReadFieldsFilterPipe.isValidComplex,
18856
19232
  Collection: ReadFieldsFilterPipe.isValidCollection
@@ -18903,8 +19279,8 @@
18903
19279
  function CcdPageFieldsPipe() {
18904
19280
  }
18905
19281
  CcdPageFieldsPipe.prototype.transform = function (page, dataFormGroup) {
18906
- var complex_fields = Object.keys(dataFormGroup.controls).map(function (key) {
18907
- var control = dataFormGroup.controls[key];
19282
+ var complex_fields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
19283
+ var control = dataFormGroup.controls['data'].get(key);
18908
19284
  return control['caseField'];
18909
19285
  }).filter(function (field) {
18910
19286
  return !!page.case_fields.find(function (pcf) { return pcf.id === field.id; });
@@ -19128,6 +19504,89 @@
19128
19504
  return OrderSummary;
19129
19505
  }());
19130
19506
 
19507
+ var IsReadOnlyPipe = /** @class */ (function () {
19508
+ function IsReadOnlyPipe(caseFieldService) {
19509
+ this.caseFieldService = caseFieldService;
19510
+ }
19511
+ IsReadOnlyPipe.prototype.transform = function (field) {
19512
+ return this.caseFieldService.isReadOnly(field);
19513
+ };
19514
+ return IsReadOnlyPipe;
19515
+ }());
19516
+ IsReadOnlyPipe.ɵfac = function IsReadOnlyPipe_Factory(t) { return new (t || IsReadOnlyPipe)(i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
19517
+ IsReadOnlyPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdIsReadOnly", type: IsReadOnlyPipe, pure: true });
19518
+ (function () {
19519
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IsReadOnlyPipe, [{
19520
+ type: i0.Pipe,
19521
+ args: [{
19522
+ name: 'ccdIsReadOnly'
19523
+ }]
19524
+ }], function () { return [{ type: CaseFieldService }]; }, null);
19525
+ })();
19526
+
19527
+ var PaletteUtilsModule = /** @class */ (function () {
19528
+ function PaletteUtilsModule() {
19529
+ }
19530
+ return PaletteUtilsModule;
19531
+ }());
19532
+ PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
19533
+ PaletteUtilsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaletteUtilsModule });
19534
+ PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
19535
+ IsCompoundPipe
19536
+ ], imports: [[
19537
+ i1.CommonModule
19538
+ ]] });
19539
+ (function () {
19540
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
19541
+ FieldLabelPipe,
19542
+ FirstErrorPipe,
19543
+ IsCompoundPipe,
19544
+ IsMandatoryPipe,
19545
+ IsReadOnlyPipe,
19546
+ IsReadOnlyAndNotCollectionPipe,
19547
+ DashPipe], imports: [i1.CommonModule], exports: [DatePipe,
19548
+ FieldLabelPipe,
19549
+ FirstErrorPipe,
19550
+ IsCompoundPipe,
19551
+ IsMandatoryPipe,
19552
+ IsReadOnlyPipe,
19553
+ IsReadOnlyAndNotCollectionPipe,
19554
+ DashPipe] });
19555
+ })();
19556
+ (function () {
19557
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteUtilsModule, [{
19558
+ type: i0.NgModule,
19559
+ args: [{
19560
+ imports: [
19561
+ i1.CommonModule
19562
+ ],
19563
+ declarations: [
19564
+ DatePipe,
19565
+ FieldLabelPipe,
19566
+ FirstErrorPipe,
19567
+ IsCompoundPipe,
19568
+ IsMandatoryPipe,
19569
+ IsReadOnlyPipe,
19570
+ IsReadOnlyAndNotCollectionPipe,
19571
+ DashPipe
19572
+ ],
19573
+ exports: [
19574
+ DatePipe,
19575
+ FieldLabelPipe,
19576
+ FirstErrorPipe,
19577
+ IsCompoundPipe,
19578
+ IsMandatoryPipe,
19579
+ IsReadOnlyPipe,
19580
+ IsReadOnlyAndNotCollectionPipe,
19581
+ DashPipe
19582
+ ],
19583
+ providers: [
19584
+ IsCompoundPipe
19585
+ ]
19586
+ }]
19587
+ }], null, null);
19588
+ })();
19589
+
19131
19590
  var PALETTE_COMPONENTS = [
19132
19591
  UnsupportedFieldComponent,
19133
19592
  DatetimePickerComponent,
@@ -19197,7 +19656,10 @@
19197
19656
  WriteFixedListFieldComponent,
19198
19657
  WriteFixedRadioListFieldComponent,
19199
19658
  WriteCaseLinkFieldComponent,
19200
- WriteCollectionFieldComponent
19659
+ WriteCollectionFieldComponent,
19660
+ // ComponentLauncher web components
19661
+ CaseFileViewFieldComponent,
19662
+ CaseFileViewFolderComponent
19201
19663
  ];
19202
19664
  var PaletteModule = /** @class */ (function () {
19203
19665
  function PaletteModule() {
@@ -19237,6 +19699,7 @@
19237
19699
  input.MatInputModule,
19238
19700
  i5.MatDatepickerModule,
19239
19701
  i5$1.MatAutocompleteModule,
19702
+ i1$5.CdkTreeModule,
19240
19703
  i3.PaymentLibModule,
19241
19704
  i2.ScrollToModule.forRoot()
19242
19705
  ], i4.NgxMatDatetimePickerModule,
@@ -19318,7 +19781,10 @@
19318
19781
  WriteFixedListFieldComponent,
19319
19782
  WriteFixedRadioListFieldComponent,
19320
19783
  WriteCaseLinkFieldComponent,
19321
- WriteCollectionFieldComponent], imports: [i1.CommonModule,
19784
+ WriteCollectionFieldComponent,
19785
+ // ComponentLauncher web components
19786
+ CaseFileViewFieldComponent,
19787
+ CaseFileViewFolderComponent], imports: [i1.CommonModule,
19322
19788
  i1$1.RouterModule,
19323
19789
  i1$2.FormsModule,
19324
19790
  i1$2.ReactiveFormsModule,
@@ -19339,6 +19805,7 @@
19339
19805
  input.MatInputModule,
19340
19806
  i5.MatDatepickerModule,
19341
19807
  i5$1.MatAutocompleteModule,
19808
+ i1$5.CdkTreeModule,
19342
19809
  i3.PaymentLibModule, i2__namespace.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
19343
19810
  i4.NgxMatNativeDateModule,
19344
19811
  i4.NgxMatTimepickerModule,
@@ -19412,7 +19879,10 @@
19412
19879
  WriteFixedListFieldComponent,
19413
19880
  WriteFixedRadioListFieldComponent,
19414
19881
  WriteCaseLinkFieldComponent,
19415
- WriteCollectionFieldComponent] });
19882
+ WriteCollectionFieldComponent,
19883
+ // ComponentLauncher web components
19884
+ CaseFileViewFieldComponent,
19885
+ CaseFileViewFolderComponent] });
19416
19886
  })();
19417
19887
  (function () {
19418
19888
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -19440,6 +19910,7 @@
19440
19910
  input.MatInputModule,
19441
19911
  i5.MatDatepickerModule,
19442
19912
  i5$1.MatAutocompleteModule,
19913
+ i1$5.CdkTreeModule,
19443
19914
  i3.PaymentLibModule,
19444
19915
  i2.ScrollToModule.forRoot()
19445
19916
  ],
@@ -20324,7 +20795,7 @@
20324
20795
  i0__namespace.ɵɵadvance(3);
20325
20796
  i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
20326
20797
  }
20327
- }, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
20798
+ }, 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}}"] });
20328
20799
  (function () {
20329
20800
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
20330
20801
  type: i0.Component,
@@ -20731,7 +21202,7 @@
20731
21202
  i0__namespace.ɵɵadvance(2);
20732
21203
  i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
20733
21204
  }
20734
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
21205
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$7.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
20735
21206
  (function () {
20736
21207
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
20737
21208
  type: i0.Component,
@@ -20791,12 +21262,12 @@
20791
21262
  PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
20792
21263
  PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
20793
21264
  i1.CommonModule,
20794
- i1$6.NgxPaginationModule
21265
+ i1$7.NgxPaginationModule
20795
21266
  ]] });
20796
21267
  (function () {
20797
21268
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
20798
- i1$6.NgxPaginationModule], exports: [PaginationComponent,
20799
- i1$6.PaginatePipe] });
21269
+ i1$7.NgxPaginationModule], exports: [PaginationComponent,
21270
+ i1$7.PaginatePipe] });
20800
21271
  })();
20801
21272
  (function () {
20802
21273
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
@@ -20804,14 +21275,14 @@
20804
21275
  args: [{
20805
21276
  imports: [
20806
21277
  i1.CommonModule,
20807
- i1$6.NgxPaginationModule
21278
+ i1$7.NgxPaginationModule
20808
21279
  ],
20809
21280
  declarations: [
20810
21281
  PaginationComponent
20811
21282
  ],
20812
21283
  exports: [
20813
21284
  PaginationComponent,
20814
- i1$6.PaginatePipe
21285
+ i1$7.PaginatePipe
20815
21286
  ],
20816
21287
  }]
20817
21288
  }], null, null);
@@ -20830,14 +21301,14 @@
20830
21301
  i1.CommonModule,
20831
21302
  i1$2.FormsModule,
20832
21303
  i1$1.RouterModule,
20833
- i1$6.NgxPaginationModule,
21304
+ i1$7.NgxPaginationModule,
20834
21305
  PaginationModule
20835
21306
  ]] });
20836
21307
  (function () {
20837
21308
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
20838
21309
  i1$2.FormsModule,
20839
21310
  i1$1.RouterModule,
20840
- i1$6.NgxPaginationModule,
21311
+ i1$7.NgxPaginationModule,
20841
21312
  PaginationModule], exports: [CaseListComponent] });
20842
21313
  })();
20843
21314
  (function () {
@@ -20848,7 +21319,7 @@
20848
21319
  i1.CommonModule,
20849
21320
  i1$2.FormsModule,
20850
21321
  i1$1.RouterModule,
20851
- i1$6.NgxPaginationModule,
21322
+ i1$7.NgxPaginationModule,
20852
21323
  PaginationModule
20853
21324
  ],
20854
21325
  declarations: [CaseListComponent],
@@ -22618,7 +23089,7 @@
22618
23089
  };
22619
23090
  return DeleteOrCancelDialogComponent;
22620
23091
  }());
22621
- DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
23092
+ DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
22622
23093
  DeleteOrCancelDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) {
22623
23094
  if (rf & 1) {
22624
23095
  i0__namespace.ɵɵelementStart(0, "div");
@@ -22659,7 +23130,7 @@
22659
23130
  templateUrl: './delete-or-cancel-dialog.component.html',
22660
23131
  styleUrls: ['../action-dialog.component.scss']
22661
23132
  }]
22662
- }], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
23133
+ }], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
22663
23134
  })();
22664
23135
 
22665
23136
  function EventTriggerComponent_form_0_option_5_Template(rf, ctx) {
@@ -22875,17 +23346,27 @@
22875
23346
  i0__namespace.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
22876
23347
  }
22877
23348
  }
22878
- function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
23349
+ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
22879
23350
  if (rf & 1) {
22880
- i0__namespace.ɵɵelementStart(0, "tr");
22881
- i0__namespace.ɵɵelementStart(1, "th");
22882
- i0__namespace.ɵɵelementStart(2, "div", 31);
22883
- i0__namespace.ɵɵtext(3);
23351
+ i0__namespace.ɵɵelementStart(0, "th", 34);
23352
+ i0__namespace.ɵɵelementStart(1, "div", 35);
23353
+ i0__namespace.ɵɵtext(2);
22884
23354
  i0__namespace.ɵɵelementEnd();
22885
23355
  i0__namespace.ɵɵelementEnd();
22886
- i0__namespace.ɵɵelementStart(4, "td");
22887
- i0__namespace.ɵɵelementStart(5, "span", 32);
22888
- i0__namespace.ɵɵelement(6, "ccd-field-read", 33);
23356
+ }
23357
+ if (rf & 2) {
23358
+ var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
23359
+ i0__namespace.ɵɵadvance(2);
23360
+ i0__namespace.ɵɵtextInterpolate(field_r21.label);
23361
+ }
23362
+ }
23363
+ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
23364
+ if (rf & 1) {
23365
+ i0__namespace.ɵɵelementStart(0, "tr");
23366
+ i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
23367
+ i0__namespace.ɵɵelementStart(2, "th");
23368
+ i0__namespace.ɵɵelementStart(3, "span", 32);
23369
+ i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
22889
23370
  i0__namespace.ɵɵelementEnd();
22890
23371
  i0__namespace.ɵɵelementEnd();
22891
23372
  i0__namespace.ɵɵelementEnd();
@@ -22893,15 +23374,15 @@
22893
23374
  if (rf & 2) {
22894
23375
  var field_r21 = i0__namespace.ɵɵnextContext().$implicit;
22895
23376
  var ctx_r22 = i0__namespace.ɵɵnextContext(4);
22896
- i0__namespace.ɵɵadvance(3);
22897
- i0__namespace.ɵɵtextInterpolate(field_r21.label);
23377
+ i0__namespace.ɵɵadvance(1);
23378
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
22898
23379
  i0__namespace.ɵɵadvance(3);
22899
23380
  i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
22900
23381
  }
22901
23382
  }
22902
23383
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
22903
23384
  if (rf & 1) {
22904
- i0__namespace.ɵɵelementStart(0, "tr", 34);
23385
+ i0__namespace.ɵɵelementStart(0, "tr", 36);
22905
23386
  i0__namespace.ɵɵelementStart(1, "th");
22906
23387
  i0__namespace.ɵɵelementStart(2, "span", 32);
22907
23388
  i0__namespace.ɵɵelement(3, "ccd-field-read", 33);
@@ -22922,7 +23403,7 @@
22922
23403
  i0__namespace.ɵɵelementStart(1, "div", 27);
22923
23404
  i0__namespace.ɵɵelementContainerStart(2, 28);
22924
23405
  i0__namespace.ɵɵpipe(3, "ccdIsCompound");
22925
- i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 7, 5, "tr", 29);
23406
+ i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
22926
23407
  i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
22927
23408
  i0__namespace.ɵɵelementContainerEnd();
22928
23409
  i0__namespace.ɵɵelementEnd();
@@ -22976,8 +23457,8 @@
22976
23457
  i0__namespace.ɵɵelement(0, "mat-tab", 24);
22977
23458
  }
22978
23459
  if (rf & 2) {
22979
- var tab_r27 = ctx.$implicit;
22980
- i0__namespace.ɵɵproperty("id", tab_r27.id)("label", tab_r27.label);
23460
+ var tab_r29 = ctx.$implicit;
23461
+ i0__namespace.ɵɵproperty("id", tab_r29.id)("label", tab_r29.label);
22981
23462
  }
22982
23463
  }
22983
23464
  function CaseFullAccessViewComponent_ng_container_11_router_outlet_6_Template(rf, ctx) {
@@ -22987,10 +23468,10 @@
22987
23468
  }
22988
23469
  function CaseFullAccessViewComponent_ng_container_11_Template(rf, ctx) {
22989
23470
  if (rf & 1) {
22990
- var _r29_1 = i0__namespace.ɵɵgetCurrentView();
23471
+ var _r31_1 = i0__namespace.ɵɵgetCurrentView();
22991
23472
  i0__namespace.ɵɵelementContainerStart(0);
22992
23473
  i0__namespace.ɵɵelementStart(1, "mat-tab-group", 21, 22);
22993
- i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(); return ctx_r28.tabChanged($event); });
23474
+ i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r30 = i0__namespace.ɵɵnextContext(); return ctx_r30.tabChanged($event); });
22994
23475
  i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template, 1, 2, "mat-tab", 23);
22995
23476
  i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template, 2, 2, "mat-tab", 23);
22996
23477
  i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template, 1, 2, "mat-tab", 23);
@@ -23206,6 +23687,16 @@
23206
23687
  });
23207
23688
  }
23208
23689
  };
23690
+ /**
23691
+ * Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
23692
+ * fields.
23693
+ * @param caseField The `CaseField` instance to check
23694
+ * @returns `true` if it should not have a label; `false` otherwise
23695
+ */
23696
+ CaseFullAccessViewComponent.prototype.isFieldToHaveNoLabel = function (caseField) {
23697
+ return caseField.field_type.type === 'ComponentLauncher'
23698
+ && caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
23699
+ };
23209
23700
  CaseFullAccessViewComponent.prototype.init = function () {
23210
23701
  var _this = this;
23211
23702
  // Clone and sort tabs array
@@ -23264,7 +23755,7 @@
23264
23755
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
23265
23756
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
23266
23757
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
23267
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
23758
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
23268
23759
  CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
23269
23760
  if (rf & 1) {
23270
23761
  i0__namespace.ɵɵviewQuery(_c0$a, 1);
@@ -23273,7 +23764,7 @@
23273
23764
  var _t = void 0;
23274
23765
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
23275
23766
  }
23276
- }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], [1, "case-viewer-label", "text-16"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
23767
+ }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
23277
23768
  if (rf & 1) {
23278
23769
  i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
23279
23770
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
@@ -23320,7 +23811,7 @@
23320
23811
  templateUrl: './case-full-access-view.component.html',
23321
23812
  styleUrls: ['./case-full-access-view.component.scss']
23322
23813
  }]
23323
- }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
23814
+ }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$6.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
23324
23815
  type: i0.Input
23325
23816
  }], hasEventSelector: [{
23326
23817
  type: i0.Input
@@ -27514,7 +28005,7 @@
27514
28005
  i0__namespace.ɵɵadvance(1);
27515
28006
  i0__namespace.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
27516
28007
  }
27517
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
28008
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$7.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
27518
28009
  (function () {
27519
28010
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchResultComponent, [{
27520
28011
  type: i0.Component,
@@ -27572,7 +28063,7 @@
27572
28063
  BrowserService
27573
28064
  ], imports: [[
27574
28065
  i1.CommonModule,
27575
- i1$6.NgxPaginationModule,
28066
+ i1$7.NgxPaginationModule,
27576
28067
  i1$1.RouterModule,
27577
28068
  i1$2.FormsModule,
27578
28069
  i1$2.ReactiveFormsModule,
@@ -27584,7 +28075,7 @@
27584
28075
  ]] });
27585
28076
  (function () {
27586
28077
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
27587
- i1$6.NgxPaginationModule,
28078
+ i1$7.NgxPaginationModule,
27588
28079
  i1$1.RouterModule,
27589
28080
  i1$2.FormsModule,
27590
28081
  i1$2.ReactiveFormsModule,
@@ -27600,7 +28091,7 @@
27600
28091
  args: [{
27601
28092
  imports: [
27602
28093
  i1.CommonModule,
27603
- i1$6.NgxPaginationModule,
28094
+ i1$7.NgxPaginationModule,
27604
28095
  i1$1.RouterModule,
27605
28096
  i1$2.FormsModule,
27606
28097
  i1$2.ReactiveFormsModule,
@@ -27928,6 +28419,9 @@
27928
28419
  exports.CaseEventTriggerComponent = CaseEventTriggerComponent;
27929
28420
  exports.CaseField = CaseField;
27930
28421
  exports.CaseFieldService = CaseFieldService;
28422
+ exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
28423
+ exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
28424
+ exports.CaseFileViewService = CaseFileViewService;
27931
28425
  exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
27932
28426
  exports.CaseHeaderComponent = CaseHeaderComponent;
27933
28427
  exports.CaseHeaderModule = CaseHeaderModule;