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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +220 -383
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +15 -19
  6. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
  7. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +117 -244
  8. package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
  9. package/esm2015/lib/shared/components/search-result/search-result.component.js +43 -43
  10. package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +6 -0
  11. package/esm2015/lib/shared/domain/case-file-view/index.js +2 -2
  12. package/esm2015/public-api.js +1 -3
  13. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +199 -354
  14. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  15. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +1 -1
  16. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  17. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +9 -2
  18. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  19. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +11 -0
  20. package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +1 -0
  21. package/lib/shared/domain/case-file-view/index.d.ts +1 -1
  22. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
  23. package/package.json +1 -1
  24. package/public-api.d.ts +0 -2
  25. package/public-api.d.ts.map +1 -1
  26. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +0 -28
  27. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +0 -7
  28. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +0 -1
@@ -19,9 +19,9 @@ import { isUndefined } from 'util';
19
19
  import { StateMachine } from '@edium/fsm';
20
20
  import * as i1$4 from 'ngx-md';
21
21
  import { NgxMdModule } from 'ngx-md';
22
- import * as i1$5 from '@angular/cdk/tree';
22
+ import * as i3 from '@angular/cdk/tree';
23
23
  import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
24
- import * as i1$6 from '@angular/material/dialog';
24
+ import * as i1$5 from '@angular/material/dialog';
25
25
  import { MatDialogConfig } from '@angular/material/dialog';
26
26
  import * as i2 from '@nicky-lenaers/ngx-scroll-to';
27
27
  import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
@@ -36,12 +36,12 @@ import * as i5$1 from '@angular/material/autocomplete';
36
36
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
37
37
  import * as i6$1 from '@angular/material/core';
38
38
  import { MAT_DATE_LOCALE } from '@angular/material/core';
39
- import * as i3 from '@hmcts/ccpay-web-component';
39
+ import * as i3$1 from '@hmcts/ccpay-web-component';
40
40
  import { PaymentLibModule } from '@hmcts/ccpay-web-component';
41
41
  import * as i6$2 from '@angular/cdk/portal';
42
42
  import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
43
43
  import { MatInputModule } from '@angular/material/input';
44
- import * as i1$7 from 'ngx-pagination';
44
+ import * as i1$6 from 'ngx-pagination';
45
45
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
46
46
  import * as i10 from '@angular/material/tabs';
47
47
  import { MatTabsModule } from '@angular/material/tabs';
@@ -7600,7 +7600,7 @@ class IsCompoundPipe {
7600
7600
  }
7601
7601
  }
7602
7602
  IsCompoundPipe.COMPOUND_TYPES = [
7603
- 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
7603
+ 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
7604
7604
  ];
7605
7605
  IsCompoundPipe.EXCLUDE = [
7606
7606
  'CaseLink', 'JudicialUser'
@@ -8064,76 +8064,75 @@ class CaseFileViewDocument {
8064
8064
  class CategoriesAndDocuments {
8065
8065
  }
8066
8066
 
8067
- class DocumentTreeNode {
8068
- get childDocumentCount() {
8069
- const countChildren = (childNodes) => {
8070
- let count = 0;
8071
- if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
8072
- const documents = childNodes.filter(item => item.type === 'document');
8073
- count += documents.length;
8074
- childNodes.forEach((children) => {
8075
- count += countChildren(children.children);
8076
- });
8077
- }
8078
- return count;
8079
- };
8080
- return countChildren(this.children);
8081
- }
8082
- }
8083
- __decorate([
8084
- Type(() => DocumentTreeNode),
8085
- __metadata("design:type", Array)
8086
- ], DocumentTreeNode.prototype, "children", void 0);
8087
- __decorate([
8088
- Expose(),
8089
- __metadata("design:type", Object),
8090
- __metadata("design:paramtypes", [])
8091
- ], DocumentTreeNode.prototype, "childDocumentCount", null);
8067
+ var DocumentTreeNodeType;
8068
+ (function (DocumentTreeNodeType) {
8069
+ DocumentTreeNodeType["FOLDER"] = "folder";
8070
+ DocumentTreeNodeType["DOCUMENT"] = "document";
8071
+ })(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
8092
8072
 
8093
- function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) { if (rf & 1) {
8094
- i0.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
8095
- i0.ɵɵelementStart(1, "div", 8);
8096
- i0.ɵɵelementStart(2, "button", 9);
8097
- i0.ɵɵelement(3, "img", 10);
8073
+ function CaseFileViewFolderComponent_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
8074
+ i0.ɵɵelementStart(0, "div");
8075
+ i0.ɵɵtext(1, " No results found ");
8098
8076
  i0.ɵɵelementEnd();
8099
- i0.ɵɵelementStart(4, "span", 11);
8077
+ } }
8078
+ function CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_3_Template(rf, ctx) { if (rf & 1) {
8079
+ i0.ɵɵelementStart(0, "cdk-nested-tree-node", 10);
8080
+ i0.ɵɵelementStart(1, "div", 11);
8081
+ i0.ɵɵelementStart(2, "button", 12);
8082
+ i0.ɵɵelement(3, "img", 13);
8083
+ i0.ɵɵelementStart(4, "div", 14);
8100
8084
  i0.ɵɵtext(5);
8101
8085
  i0.ɵɵelementEnd();
8102
8086
  i0.ɵɵelementEnd();
8103
8087
  i0.ɵɵelementEnd();
8088
+ i0.ɵɵelementEnd();
8104
8089
  } if (rf & 2) {
8105
- const node_r2 = ctx.$implicit;
8090
+ const node_r4 = ctx.$implicit;
8106
8091
  i0.ɵɵadvance(5);
8107
- i0.ɵɵtextInterpolate(node_r2.name);
8108
- } }
8109
- function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) { if (rf & 1) {
8110
- i0.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
8111
- i0.ɵɵelementStart(1, "div", 12);
8112
- i0.ɵɵelementStart(2, "button", 13);
8113
- i0.ɵɵelement(3, "img", 14);
8114
- i0.ɵɵelementStart(4, "span", 15);
8092
+ i0.ɵɵtextInterpolate(node_r4.name);
8093
+ } }
8094
+ function CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_4_Template(rf, ctx) { if (rf & 1) {
8095
+ i0.ɵɵelementStart(0, "cdk-nested-tree-node", 10);
8096
+ i0.ɵɵelementStart(1, "div", 11);
8097
+ i0.ɵɵelementStart(2, "button", 15);
8098
+ i0.ɵɵelement(3, "img", 16);
8099
+ i0.ɵɵelementStart(4, "div", 17);
8115
8100
  i0.ɵɵtext(5);
8116
8101
  i0.ɵɵelementEnd();
8117
8102
  i0.ɵɵelementEnd();
8118
- i0.ɵɵelementStart(6, "span", 16);
8119
- i0.ɵɵtext(7);
8120
8103
  i0.ɵɵelementEnd();
8121
- i0.ɵɵelementEnd();
8122
- i0.ɵɵelementStart(8, "div");
8123
- i0.ɵɵelementContainer(9, 17);
8104
+ i0.ɵɵelementStart(6, "div");
8105
+ i0.ɵɵelementContainer(7, 18);
8124
8106
  i0.ɵɵelementEnd();
8125
8107
  i0.ɵɵelementEnd();
8126
8108
  } if (rf & 2) {
8127
- const node_r3 = ctx.$implicit;
8128
- const ctx_r1 = i0.ɵɵnextContext();
8109
+ const node_r5 = ctx.$implicit;
8110
+ const ctx_r3 = i0.ɵɵnextContext(2);
8129
8111
  i0.ɵɵadvance(2);
8130
- i0.ɵɵattribute("aria-label", "toggle " + node_r3.name);
8131
- i0.ɵɵadvance(3);
8132
- i0.ɵɵtextInterpolate(node_r3.childDocumentCount);
8112
+ i0.ɵɵattribute("aria-label", "toggle " + node_r5.name);
8113
+ i0.ɵɵadvance(1);
8114
+ i0.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r5) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0.ɵɵsanitizeUrl);
8133
8115
  i0.ɵɵadvance(2);
8134
- i0.ɵɵtextInterpolate(node_r3.name);
8116
+ i0.ɵɵtextInterpolate(node_r5.name);
8135
8117
  i0.ɵɵadvance(1);
8136
- i0.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
8118
+ i0.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r5));
8119
+ } }
8120
+ function CaseFileViewFolderComponent_div_5_Template(rf, ctx) { if (rf & 1) {
8121
+ i0.ɵɵelementStart(0, "div", 5);
8122
+ i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_5_div_1_Template, 2, 0, "div", 6);
8123
+ i0.ɵɵelementStart(2, "cdk-tree", 7);
8124
+ i0.ɵɵtemplate(3, CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_3_Template, 6, 1, "cdk-nested-tree-node", 8);
8125
+ i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_5_cdk_nested_tree_node_4_Template, 8, 5, "cdk-nested-tree-node", 9);
8126
+ i0.ɵɵelementEnd();
8127
+ i0.ɵɵelementEnd();
8128
+ } if (rf & 2) {
8129
+ const ctx_r0 = i0.ɵɵnextContext();
8130
+ i0.ɵɵadvance(1);
8131
+ i0.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
8132
+ i0.ɵɵadvance(1);
8133
+ i0.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
8134
+ i0.ɵɵadvance(2);
8135
+ i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
8137
8136
  } }
8138
8137
  class CaseFileViewFolderComponent {
8139
8138
  constructor() {
@@ -8142,257 +8141,107 @@ class CaseFileViewFolderComponent {
8142
8141
  this.nestedChildren = (_, nodeData) => nodeData.children;
8143
8142
  this.nestedTreeControl = new NestedTreeControl(this.getChildren);
8144
8143
  }
8145
- get documentCount() {
8146
- var _a;
8147
- if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
8148
- return this.nestedDataSource.reduce((acc, item) => {
8149
- return acc + item.childDocumentCount;
8150
- }, 0);
8151
- }
8152
- else {
8153
- return 0;
8154
- }
8155
- }
8156
8144
  ngOnInit() {
8145
+ this.documentFilterFormGroup = new FormGroup({});
8146
+ this.documentSearchFormControl = new FormControl('');
8147
+ this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
8148
+ // Listen to search input and initiate filter documents if at least three characters entered
8149
+ this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(tap((searchTerm) => this.searchTermLength = searchTerm.length), switchMap((searchTerm) => this.filter(searchTerm.toLowerCase()).pipe())).subscribe(documentTreeData => {
8150
+ this.nestedDataSource = documentTreeData;
8151
+ this.nestedTreeControl.dataNodes = documentTreeData;
8152
+ this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
8153
+ ? this.nestedTreeControl.expandAll()
8154
+ : this.nestedTreeControl.collapseAll();
8155
+ });
8156
+ // Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
8157
8157
  this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(categoriesAndDocuments => {
8158
- // Using the mock data for now as we have to display the documents as well for demo purpose
8159
- const categories = this.loadCategories(); // categoriesAndDocuments.categories;
8158
+ const categories = categoriesAndDocuments.categories;
8160
8159
  // Generate document tree data from categories
8161
- const treeData = this.generateTreeData(categories);
8160
+ this.documentTreeData = this.generateTreeData(categories);
8162
8161
  // Append uncategorised documents
8163
8162
  if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
8164
8163
  const uncategorisedDocuments = this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
8165
- treeData.push(uncategorisedDocuments);
8164
+ this.documentTreeData.push(uncategorisedDocuments);
8166
8165
  }
8167
8166
  // Initialise cdk tree with generated data
8168
- this.nestedDataSource = treeData;
8167
+ this.nestedDataSource = this.documentTreeData;
8168
+ this.nestedTreeControl.dataNodes = this.documentTreeData;
8169
8169
  });
8170
8170
  }
8171
8171
  generateTreeData(categories) {
8172
- return categories.reduce((tree, node) => {
8173
- const newDocumentTreeNode = new DocumentTreeNode();
8174
- newDocumentTreeNode.name = node.category_name;
8175
- newDocumentTreeNode.type = 'category';
8176
- newDocumentTreeNode.children = [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)];
8177
- return [
8178
- ...tree,
8179
- newDocumentTreeNode,
8180
- ];
8181
- }, []);
8172
+ return categories.reduce((tree, node) => [
8173
+ ...tree,
8174
+ ...[
8175
+ {
8176
+ name: node.category_name,
8177
+ type: DocumentTreeNodeType.FOLDER,
8178
+ children: [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)]
8179
+ },
8180
+ ],
8181
+ ], []);
8182
8182
  }
8183
8183
  getDocuments(documents) {
8184
8184
  const documentsToReturn = [];
8185
8185
  documents.forEach(document => {
8186
- const documentTreeNode = new DocumentTreeNode();
8187
- documentTreeNode.name = document.document_filename;
8188
- documentTreeNode.type = 'document';
8189
- documentsToReturn.push(documentTreeNode);
8186
+ documentsToReturn.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
8190
8187
  });
8191
8188
  return documentsToReturn;
8192
8189
  }
8193
8190
  getUncategorisedDocuments(uncategorisedDocuments) {
8194
8191
  const documents = [];
8195
8192
  uncategorisedDocuments.forEach(document => {
8196
- const documentTreeNode = new DocumentTreeNode();
8197
- documentTreeNode.name = document.document_filename;
8198
- documentTreeNode.type = 'document';
8199
- documents.push(documentTreeNode);
8193
+ documents.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
8200
8194
  });
8201
- const uncategorisedNode = new DocumentTreeNode();
8202
- uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
8203
- uncategorisedNode.type = 'category';
8204
- uncategorisedNode.children = documents;
8205
- return uncategorisedNode;
8195
+ return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, type: DocumentTreeNodeType.FOLDER, children: documents };
8196
+ }
8197
+ filter(searchTerm) {
8198
+ // Make a copy of the data so we do not mutate the original
8199
+ function copy(node) {
8200
+ return Object.assign({}, node);
8201
+ }
8202
+ let filteredData = this.documentTreeData;
8203
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
8204
+ filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
8205
+ if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
8206
+ return true;
8207
+ }
8208
+ // Call recursively if node has children
8209
+ if (node.children) {
8210
+ return (node.children = node.children.map(copy).filter(filterTreeData)).length;
8211
+ }
8212
+ });
8213
+ }
8214
+ return of(filteredData);
8206
8215
  }
8207
8216
  ngOnDestroy() {
8208
8217
  if (this.categoriesAndDocumentsSubscription) {
8209
8218
  this.categoriesAndDocumentsSubscription.unsubscribe();
8210
8219
  }
8211
- }
8212
- loadCategories() {
8213
- return [
8214
- {
8215
- category_id: 'Beers',
8216
- category_name: 'Beers',
8217
- category_order: 1,
8218
- documents: [
8219
- {
8220
- document_url: '/test',
8221
- document_filename: 'Beers encyclopedia',
8222
- document_binary_url: '/test/binary',
8223
- attribute_path: '',
8224
- upload_timestamp: ''
8225
- }
8226
- ],
8227
- sub_categories: [
8228
- {
8229
- category_id: 'BeersBitters',
8230
- category_name: 'Bitters',
8231
- category_order: 1,
8232
- documents: [],
8233
- sub_categories: []
8234
- },
8235
- {
8236
- category_id: 'BeersAmerican',
8237
- category_name: 'American',
8238
- category_order: 2,
8239
- documents: [],
8240
- sub_categories: []
8241
- },
8242
- {
8243
- category_id: 'BeersAsian',
8244
- category_name: 'Asian',
8245
- category_order: 3,
8246
- documents: [],
8247
- sub_categories: []
8248
- }
8249
- ]
8250
- },
8251
- {
8252
- category_id: 'Wines',
8253
- category_name: 'Wines',
8254
- category_order: 2,
8255
- documents: [],
8256
- sub_categories: [
8257
- {
8258
- category_id: 'WinesFrench',
8259
- category_name: 'French',
8260
- category_order: 1,
8261
- documents: [],
8262
- sub_categories: []
8263
- },
8264
- {
8265
- category_id: 'WinesItalian',
8266
- category_name: 'Italian',
8267
- category_order: 2,
8268
- documents: [],
8269
- sub_categories: []
8270
- }
8271
- ]
8272
- },
8273
- {
8274
- category_id: 'Spirits',
8275
- category_name: 'Spirits',
8276
- category_order: 3,
8277
- documents: [],
8278
- sub_categories: [
8279
- {
8280
- category_id: 'SpiritsWhisky',
8281
- category_name: 'Scotch whisky',
8282
- category_order: 1,
8283
- documents: [],
8284
- sub_categories: [
8285
- {
8286
- category_id: 'WhiskyHighland',
8287
- category_name: 'Highland',
8288
- category_order: 1,
8289
- documents: [],
8290
- sub_categories: [
8291
- {
8292
- category_id: 'WhiskyHighland1',
8293
- category_name: 'Highland 1',
8294
- category_order: 1,
8295
- documents: [],
8296
- sub_categories: []
8297
- }
8298
- ]
8299
- },
8300
- {
8301
- category_id: 'WhiskyLowland',
8302
- category_name: 'Lowland',
8303
- category_order: 2,
8304
- documents: [],
8305
- sub_categories: [
8306
- {
8307
- category_id: 'WhiskyLowland1',
8308
- category_name: 'Lowland 1',
8309
- category_order: 1,
8310
- documents: [
8311
- {
8312
- document_url: '/test',
8313
- document_filename: 'Details about Whisky Lowland 1',
8314
- document_binary_url: '/test/binary',
8315
- attribute_path: '',
8316
- upload_timestamp: ''
8317
- }
8318
- ],
8319
- sub_categories: []
8320
- },
8321
- {
8322
- category_id: 'WhiskyLowland2',
8323
- category_name: 'Lowland 2',
8324
- category_order: 2,
8325
- documents: [],
8326
- sub_categories: []
8327
- }
8328
- ]
8329
- },
8330
- {
8331
- category_id: 'WhiskyIslay',
8332
- category_name: 'Islay',
8333
- category_order: 3,
8334
- documents: [
8335
- {
8336
- document_url: '/test',
8337
- document_filename: 'Details about Whisky Islay',
8338
- document_binary_url: '/test/binary',
8339
- attribute_path: '',
8340
- upload_timestamp: ''
8341
- },
8342
- {
8343
- document_url: '/test',
8344
- document_filename: 'More information about Whisky Islay',
8345
- document_binary_url: '/test/binary',
8346
- attribute_path: '',
8347
- upload_timestamp: ''
8348
- }
8349
- ],
8350
- sub_categories: []
8351
- },
8352
- {
8353
- category_id: 'WhiskySpeyside',
8354
- category_name: 'Speyside',
8355
- category_order: 4,
8356
- documents: [],
8357
- sub_categories: []
8358
- },
8359
- {
8360
- category_id: 'WhiskyCampbeltown',
8361
- category_name: 'Campbeltown',
8362
- category_order: 5,
8363
- documents: [],
8364
- sub_categories: []
8365
- }
8366
- ]
8367
- }
8368
- ]
8369
- }
8370
- ];
8220
+ if (this.documentFilterSubscription) {
8221
+ this.documentFilterSubscription.unsubscribe();
8222
+ }
8371
8223
  }
8372
8224
  }
8373
8225
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
8226
+ CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
8227
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
8374
8228
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
8375
- CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 8, vars: 4, 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, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node-name", "node-name-document"], ["cdkTreeNodeToggle", "", 1, "node"], ["mat-icon-button", "", 1, "node__icon"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "node__iconImg"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
8229
+ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 6, vars: 2, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "documents-title"], ["class", "document-tree", 4, "ngIf"], [1, "document-tree"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", 1, "node-button"], ["alt", "document image", "src", "/assets/images/document.png", 1, "icon"], [1, "node-name", "node-name-document"], ["mat-icon-button", "", "cdkTreeNodeToggle", "", 1, "node-button"], ["alt", "folder image", 1, "icon", 3, "src"], [1, "node-name", "node-name-folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
8376
8230
  i0.ɵɵelementStart(0, "div", 0);
8377
- i0.ɵɵelement(1, "div", 1);
8378
- i0.ɵɵelementStart(2, "div", 2);
8379
- i0.ɵɵtext(3);
8380
- i0.ɵɵelementEnd();
8231
+ i0.ɵɵelementStart(1, "div", 1);
8232
+ i0.ɵɵelement(2, "input", 2);
8381
8233
  i0.ɵɵelementEnd();
8382
- i0.ɵɵelementStart(4, "div", 3);
8383
- i0.ɵɵelementStart(5, "cdk-tree", 4);
8384
- i0.ɵɵtemplate(6, CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template, 6, 1, "cdk-nested-tree-node", 5);
8385
- i0.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 10, 5, "cdk-nested-tree-node", 6);
8234
+ i0.ɵɵelementStart(3, "div", 3);
8235
+ i0.ɵɵtext(4, "Documents");
8386
8236
  i0.ɵɵelementEnd();
8387
8237
  i0.ɵɵelementEnd();
8238
+ i0.ɵɵtemplate(5, CaseFileViewFolderComponent_div_5_Template, 5, 4, "div", 4);
8388
8239
  } if (rf & 2) {
8389
- i0.ɵɵadvance(3);
8390
- i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
8391
- i0.ɵɵadvance(2);
8392
- i0.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
8393
- i0.ɵɵadvance(2);
8394
- i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
8395
- } }, directives: [i1$5.CdkTree, i1$5.CdkTreeNodeDef, i1$5.CdkNestedTreeNode, i1$5.CdkTreeNodeToggle, i1$5.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{height:60px;border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.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%]{height:24px}.node__count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff}.node__name[_ngcontent-%COMP%]{margin-left:6px}"] });
8240
+ i0.ɵɵadvance(1);
8241
+ i0.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
8242
+ i0.ɵɵadvance(4);
8243
+ i0.ɵɵproperty("ngIf", ctx.documentTreeData);
8244
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName, i1.NgIf, i3.CdkTree, i3.CdkTreeNodeDef, i3.CdkNestedTreeNode, i3.CdkTreeNodeToggle, i3.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%;padding:8px 8px 0;margin-bottom:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree[_ngcontent-%COMP%]{margin:4px;overflow-x:hidden;overflow-y:scroll;height:400px}.document-tree[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.document-tree[_ngcontent-%COMP%] .node[_ngcontent-%COMP%]{display:flex;padding:4px;white-space:nowrap}.document-tree[_ngcontent-%COMP%] .node[_ngcontent-%COMP%] .node-button[_ngcontent-%COMP%]{display:flex;background-color:#faf8f8;border:none;width:100%}.document-tree[_ngcontent-%COMP%] .node-button[_ngcontent-%COMP%]:hover{cursor:pointer}.document-tree[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;background-size:100%;border:0;background-color:#faf8f8}.document-tree[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{margin-left:10px}.document-tree[_ngcontent-%COMP%] .node-name-document[_ngcontent-%COMP%], .document-tree[_ngcontent-%COMP%] .node-name-folder[_ngcontent-%COMP%]{margin-top:8px;font-size:16px}.document-tree[_ngcontent-%COMP%] .document-count[_ngcontent-%COMP%]{color:#fff}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}"] });
8396
8245
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
8397
8246
  type: Component,
8398
8247
  args: [{
@@ -8461,7 +8310,7 @@ CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFi
8461
8310
  args: [{
8462
8311
  selector: 'ccd-case-file-view-field',
8463
8312
  templateUrl: './case-file-view-field.component.html',
8464
- styleUrls: ['./case-file-view-field.component.scss'],
8313
+ styleUrls: ['./case-file-view-field.component.scss']
8465
8314
  }]
8466
8315
  }], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null); })();
8467
8316
 
@@ -8788,7 +8637,7 @@ class RemoveDialogComponent {
8788
8637
  this.matDialogRef.close(this.result);
8789
8638
  }
8790
8639
  }
8791
- RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialogRef)); };
8640
+ RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
8792
8641
  RemoveDialogComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
8793
8642
  i0.ɵɵelementStart(0, "div");
8794
8643
  i0.ɵɵelementStart(1, "div", 0);
@@ -8826,7 +8675,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
8826
8675
  templateUrl: './remove-dialog.component.html',
8827
8676
  styleUrls: ['../action-dialog.component.scss']
8828
8677
  }]
8829
- }], function () { return [{ type: i1$6.MatDialogRef }]; }, null); })();
8678
+ }], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
8830
8679
 
8831
8680
  const _c0$D = ["collectionItem"];
8832
8681
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
@@ -9200,7 +9049,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
9200
9049
  return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
9201
9050
  }
9202
9051
  }
9203
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
9052
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
9204
9053
  WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
9205
9054
  i0.ɵɵviewQuery(_c0$D, 1);
9206
9055
  } if (rf & 2) {
@@ -9242,7 +9091,7 @@ WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollec
9242
9091
  templateUrl: './write-collection-field.html',
9243
9092
  styleUrls: ['./collection-field.scss']
9244
9093
  }]
9245
- }], function () { return [{ type: i1$6.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
9094
+ }], function () { return [{ type: i1$5.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
9246
9095
  type: Input
9247
9096
  }], formGroup: [{
9248
9097
  type: Input
@@ -10418,7 +10267,7 @@ class DocumentDialogComponent {
10418
10267
  this.matDialogRef.close(this.result);
10419
10268
  }
10420
10269
  }
10421
- DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialogRef)); };
10270
+ DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
10422
10271
  DocumentDialogComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
10423
10272
  i0.ɵɵelementStart(0, "div");
10424
10273
  i0.ɵɵelementStart(1, "div", 0);
@@ -10456,7 +10305,7 @@ DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogCom
10456
10305
  templateUrl: './document-dialog.component.html',
10457
10306
  styleUrls: ['../action-dialog.component.scss']
10458
10307
  }]
10459
- }], function () { return [{ type: i1$6.MatDialogRef }]; }, null); })();
10308
+ }], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
10460
10309
 
10461
10310
  function initDialog() {
10462
10311
  const dialogConfig = new MatDialogConfig();
@@ -10763,7 +10612,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
10763
10612
  WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
10764
10613
  WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
10765
10614
  WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
10766
- WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
10615
+ WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
10767
10616
  WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
10768
10617
  i0.ɵɵviewQuery(_c0$z, 1);
10769
10618
  } if (rf & 2) {
@@ -10828,7 +10677,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
10828
10677
  selector: 'ccd-write-document-field',
10829
10678
  templateUrl: './write-document-field.html'
10830
10679
  }]
10831
- }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$6.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
10680
+ }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$5.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
10832
10681
  type: ViewChild,
10833
10682
  args: ['fileInput', { static: false }]
10834
10683
  }], clickout: [{
@@ -13677,7 +13526,7 @@ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Ca
13677
13526
  i0.ɵɵelement(0, "ccpay-payment-lib", 0);
13678
13527
  } if (rf & 2) {
13679
13528
  i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("REFUNDS_API_ROOT", ctx.getRefundsUrl())("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("LOGGEDINUSERROLES", ctx.getUserRoles());
13680
- } }, directives: [i3.PaymentLibComponent], encapsulation: 2 });
13529
+ } }, directives: [i3$1.PaymentLibComponent], encapsulation: 2 });
13681
13530
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
13682
13531
  type: Component,
13683
13532
  args: [{
@@ -14002,7 +13851,7 @@ WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldCom
14002
13851
  i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 13, "ccpay-payment-lib", 0);
14003
13852
  } if (rf & 2) {
14004
13853
  i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
14005
- } }, directives: [i1.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
13854
+ } }, directives: [i1.NgIf, i3$1.PaymentLibComponent], encapsulation: 2 });
14006
13855
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WaysToPayFieldComponent, [{
14007
13856
  type: Component,
14008
13857
  args: [{
@@ -14518,7 +14367,7 @@ class SaveOrDiscardDialogComponent {
14518
14367
  this.matDialogRef.close(this.result);
14519
14368
  }
14520
14369
  }
14521
- SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialogRef)); };
14370
+ SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
14522
14371
  SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
14523
14372
  i0.ɵɵelementStart(0, "div");
14524
14373
  i0.ɵɵelementStart(1, "div", 0);
@@ -14556,7 +14405,7 @@ SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SaveOrDiscar
14556
14405
  templateUrl: './save-or-discard-dialog.component.html',
14557
14406
  styleUrls: ['../action-dialog.component.scss']
14558
14407
  }]
14559
- }], function () { return [{ type: i1$6.MatDialogRef }]; }, null); })();
14408
+ }], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
14560
14409
 
14561
14410
  var CaseEditPageText;
14562
14411
  (function (CaseEditPageText) {
@@ -15323,7 +15172,7 @@ class CaseEditPageComponent {
15323
15172
  return caseEventData;
15324
15173
  }
15325
15174
  }
15326
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService)); };
15175
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService)); };
15327
15176
  CaseEditPageComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
15328
15177
  i0.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
15329
15178
  i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
@@ -15365,7 +15214,7 @@ CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageCompone
15365
15214
  templateUrl: 'case-edit-page.html',
15366
15215
  styleUrls: ['./case-edit-page.scss']
15367
15216
  }]
15368
- }], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$6.MatDialog }, { type: CaseFieldService }]; }, null); })();
15217
+ }], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$5.MatDialog }, { type: CaseFieldService }]; }, null); })();
15369
15218
 
15370
15219
  class Confirmation {
15371
15220
  constructor(caseId, status, header, body) {
@@ -17896,7 +17745,7 @@ PaginationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaginationComponent,
17896
17745
  i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
17897
17746
  i0.ɵɵadvance(3);
17898
17747
  i0.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
17899
- } }, directives: [i1$7.PaginationControlsDirective, i1.NgIf, i1.NgForOf], pipes: [i1.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}}"] });
17748
+ } }, directives: [i1$6.PaginationControlsDirective, i1.NgIf, i1.NgForOf], pipes: [i1.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}}"] });
17900
17749
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
17901
17750
  type: Component,
17902
17751
  args: [{
@@ -18246,7 +18095,7 @@ CaseListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseListComponent, sele
18246
18095
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(9, 8, ctx.cases, i0.ɵɵpureFunction3(11, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
18247
18096
  i0.ɵɵadvance(2);
18248
18097
  i0.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
18249
- } }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$7.PaginatePipe, i1.CurrencyPipe], styles: [""] });
18098
+ } }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$6.PaginatePipe, i1.CurrencyPipe], styles: [""] });
18250
18099
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
18251
18100
  type: Component,
18252
18101
  args: [{
@@ -19935,7 +19784,7 @@ class DeleteOrCancelDialogComponent {
19935
19784
  this.matDialogRef.close(this.result);
19936
19785
  }
19937
19786
  }
19938
- DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialogRef)); };
19787
+ DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
19939
19788
  DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
19940
19789
  i0.ɵɵelementStart(0, "div");
19941
19790
  i0.ɵɵelementStart(1, "div", 0);
@@ -19973,7 +19822,7 @@ DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DeleteOrCan
19973
19822
  templateUrl: './delete-or-cancel-dialog.component.html',
19974
19823
  styleUrls: ['../action-dialog.component.scss']
19975
19824
  }]
19976
- }], function () { return [{ type: i1$6.MatDialogRef }]; }, null); })();
19825
+ }], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
19977
19826
 
19978
19827
  function EventTriggerComponent_form_0_option_5_Template(rf, ctx) { if (rf & 1) {
19979
19828
  i0.ɵɵelementStart(0, "option", 8);
@@ -20156,8 +20005,8 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template(rf, ctx)
20156
20005
  i0.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
20157
20006
  } }
20158
20007
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
20159
- i0.ɵɵelementStart(0, "th", 35);
20160
- i0.ɵɵelementStart(1, "div", 36);
20008
+ i0.ɵɵelementStart(0, "th", 34);
20009
+ i0.ɵɵelementStart(1, "div", 35);
20161
20010
  i0.ɵɵtext(2);
20162
20011
  i0.ɵɵelementEnd();
20163
20012
  i0.ɵɵelementEnd();
@@ -20169,9 +20018,9 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
20169
20018
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
20170
20019
  i0.ɵɵelementStart(0, "tr");
20171
20020
  i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
20172
- i0.ɵɵelementStart(2, "th", 32);
20173
- i0.ɵɵelementStart(3, "span", 33);
20174
- i0.ɵɵelement(4, "ccd-field-read", 34);
20021
+ i0.ɵɵelementStart(2, "td");
20022
+ i0.ɵɵelementStart(3, "span", 32);
20023
+ i0.ɵɵelement(4, "ccd-field-read", 33);
20175
20024
  i0.ɵɵelementEnd();
20176
20025
  i0.ɵɵelementEnd();
20177
20026
  i0.ɵɵelementEnd();
@@ -20180,25 +20029,21 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
20180
20029
  const ctx_r22 = i0.ɵɵnextContext(4);
20181
20030
  i0.ɵɵadvance(1);
20182
20031
  i0.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
20183
- i0.ɵɵadvance(1);
20184
- i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
20185
- i0.ɵɵadvance(2);
20032
+ i0.ɵɵadvance(3);
20186
20033
  i0.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
20187
20034
  } }
20188
20035
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) { if (rf & 1) {
20189
- i0.ɵɵelementStart(0, "tr", 37);
20190
- i0.ɵɵelementStart(1, "th", 32);
20191
- i0.ɵɵelementStart(2, "span", 33);
20192
- i0.ɵɵelement(3, "ccd-field-read", 34);
20036
+ i0.ɵɵelementStart(0, "tr", 36);
20037
+ i0.ɵɵelementStart(1, "th");
20038
+ i0.ɵɵelementStart(2, "span", 32);
20039
+ i0.ɵɵelement(3, "ccd-field-read", 33);
20193
20040
  i0.ɵɵelementEnd();
20194
20041
  i0.ɵɵelementEnd();
20195
20042
  i0.ɵɵelementEnd();
20196
20043
  } if (rf & 2) {
20197
20044
  const field_r21 = i0.ɵɵnextContext().$implicit;
20198
20045
  const ctx_r23 = i0.ɵɵnextContext(4);
20199
- i0.ɵɵadvance(1);
20200
- i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
20201
- i0.ɵɵadvance(2);
20046
+ i0.ɵɵadvance(3);
20202
20047
  i0.ɵɵproperty("topLevelFormGroup", ctx_r23.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r23.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r23.markdownUseHrefAsRouterLink);
20203
20048
  } }
20204
20049
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
@@ -20206,8 +20051,8 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
20206
20051
  i0.ɵɵelementStart(1, "div", 27);
20207
20052
  i0.ɵɵelementContainerStart(2, 28);
20208
20053
  i0.ɵɵpipe(3, "ccdIsCompound");
20209
- i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 29);
20210
- i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 30);
20054
+ i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
20055
+ i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
20211
20056
  i0.ɵɵelementContainerEnd();
20212
20057
  i0.ɵɵelementEnd();
20213
20058
  i0.ɵɵelementContainerEnd();
@@ -20535,13 +20380,13 @@ CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
20535
20380
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
20536
20381
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
20537
20382
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
20538
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(SessionStorageService)); };
20383
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(SessionStorageService)); };
20539
20384
  CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
20540
20385
  i0.ɵɵviewQuery(_c0$a, 1);
20541
20386
  } if (rf & 2) {
20542
20387
  let _t;
20543
20388
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
20544
- } }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
20389
+ } }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
20545
20390
  i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
20546
20391
  i0.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
20547
20392
  i0.ɵɵelementStart(2, "ccd-callback-errors", 1);
@@ -20584,7 +20429,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
20584
20429
  templateUrl: './case-full-access-view.component.html',
20585
20430
  styleUrls: ['./case-full-access-view.component.scss']
20586
20431
  }]
20587
- }], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$6.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
20432
+ }], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
20588
20433
  type: Input
20589
20434
  }], hasEventSelector: [{
20590
20435
  type: Input
@@ -23703,8 +23548,8 @@ function SearchResultComponent_table_0_th_9_Template(rf, ctx) { if (rf & 1) {
23703
23548
  } }
23704
23549
  function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) { if (rf & 1) {
23705
23550
  const _r19 = i0.ɵɵgetCurrentView();
23706
- i0.ɵɵelementStart(0, "div", 27);
23707
- i0.ɵɵelementStart(1, "a", 28);
23551
+ i0.ɵɵelementStart(0, "div", 28);
23552
+ i0.ɵɵelementStart(1, "a", 29);
23708
23553
  i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_6_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
23709
23554
  i0.ɵɵelementEnd();
23710
23555
  i0.ɵɵelementEnd();
@@ -23718,13 +23563,13 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
23718
23563
  const _r22 = i0.ɵɵgetCurrentView();
23719
23564
  i0.ɵɵelementStart(0, "th");
23720
23565
  i0.ɵɵelementStart(1, "table", 24);
23721
- i0.ɵɵelementStart(2, "tr");
23722
- i0.ɵɵelementStart(3, "th");
23723
- i0.ɵɵelementStart(4, "div", 25);
23566
+ i0.ɵɵelementStart(2, "tr", 7);
23567
+ i0.ɵɵelementStart(3, "th", 25);
23568
+ i0.ɵɵelementStart(4, "div", 26);
23724
23569
  i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_4_listener() { i0.ɵɵrestoreView(_r22); const col_r15 = ctx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
23725
23570
  i0.ɵɵtext(5);
23726
23571
  i0.ɵɵelementEnd();
23727
- i0.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
23572
+ i0.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 27);
23728
23573
  i0.ɵɵelementEnd();
23729
23574
  i0.ɵɵelementEnd();
23730
23575
  i0.ɵɵelementEnd();
@@ -23733,23 +23578,23 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
23733
23578
  const col_r15 = ctx.$implicit;
23734
23579
  const ctx_r7 = i0.ɵɵnextContext(2);
23735
23580
  i0.ɵɵadvance(1);
23736
- i0.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
23581
+ i0.ɵɵattributeInterpolate2("aria-label", "Sort by ", col_r15.label, " ", ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending", "");
23737
23582
  i0.ɵɵadvance(4);
23738
23583
  i0.ɵɵtextInterpolate(col_r15.label);
23739
23584
  i0.ɵɵadvance(1);
23740
23585
  i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
23741
23586
  } }
23742
23587
  function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
23743
- i0.ɵɵelement(0, "th", 29);
23588
+ i0.ɵɵelement(0, "th", 30);
23744
23589
  } }
23745
23590
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
23746
23591
  const _r30 = i0.ɵɵgetCurrentView();
23747
23592
  i0.ɵɵelementStart(0, "td", 20);
23748
23593
  i0.ɵɵelementStart(1, "div", 21);
23749
- i0.ɵɵelementStart(2, "input", 31);
23594
+ i0.ɵɵelementStart(2, "input", 32);
23750
23595
  i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r30); const result_r24 = i0.ɵɵnextContext().$implicit; const ctx_r28 = i0.ɵɵnextContext(3); return ctx_r28.changeSelection(result_r24); });
23751
23596
  i0.ɵɵelementEnd();
23752
- i0.ɵɵelement(3, "label", 32);
23597
+ i0.ɵɵelement(3, "label", 33);
23753
23598
  i0.ɵɵelementEnd();
23754
23599
  i0.ɵɵelementEnd();
23755
23600
  } if (rf & 2) {
@@ -23764,7 +23609,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ct
23764
23609
  } }
23765
23610
  const _c0 = function () { return ["value"]; };
23766
23611
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
23767
- i0.ɵɵelement(0, "ccd-field-read", 41);
23612
+ i0.ɵɵelement(0, "ccd-field-read", 42);
23768
23613
  } if (rf & 2) {
23769
23614
  const col_r32 = i0.ɵɵnextContext(3).$implicit;
23770
23615
  const result_r24 = i0.ɵɵnextContext().$implicit;
@@ -23779,9 +23624,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_containe
23779
23624
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r24.case_id));
23780
23625
  } }
23781
23626
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
23782
- i0.ɵɵelementContainerStart(0, 38);
23783
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
23784
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0.ɵɵtemplateRefExtractor);
23627
+ i0.ɵɵelementContainerStart(0, 39);
23628
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
23629
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0.ɵɵtemplateRefExtractor);
23785
23630
  i0.ɵɵelementContainerEnd();
23786
23631
  } if (rf & 2) {
23787
23632
  const _r38 = i0.ɵɵreference(3);
@@ -23792,9 +23637,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_containe
23792
23637
  i0.ɵɵproperty("ngIf", ctx_r36.draftPrefixOrGet(col_r32, result_r24))("ngIfElse", _r38);
23793
23638
  } }
23794
23639
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
23795
- i0.ɵɵelementStart(0, "a", 36);
23640
+ i0.ɵɵelementStart(0, "a", 37);
23796
23641
  i0.ɵɵpipe(1, "ccdCaseReference");
23797
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
23642
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
23798
23643
  i0.ɵɵelementEnd();
23799
23644
  } if (rf & 2) {
23800
23645
  const result_r24 = i0.ɵɵnextContext(2).$implicit;
@@ -23805,8 +23650,8 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf
23805
23650
  i0.ɵɵproperty("ngIf", !ctx_r34.hideRows);
23806
23651
  } }
23807
23652
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
23808
- i0.ɵɵelementStart(0, "div", 38);
23809
- i0.ɵɵelement(1, "ccd-field-read", 41);
23653
+ i0.ɵɵelementStart(0, "div", 39);
23654
+ i0.ɵɵelement(1, "ccd-field-read", 42);
23810
23655
  i0.ɵɵelementEnd();
23811
23656
  } if (rf & 2) {
23812
23657
  const col_r32 = i0.ɵɵnextContext().$implicit;
@@ -23817,9 +23662,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(
23817
23662
  i0.ɵɵproperty("caseField", result_r24.columns[col_r32.case_field_id])("contextFields", result_r24.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
23818
23663
  } }
23819
23664
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
23820
- i0.ɵɵelementStart(0, "td", 33);
23821
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
23822
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
23665
+ i0.ɵɵelementStart(0, "td", 34);
23666
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
23667
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
23823
23668
  i0.ɵɵelementEnd();
23824
23669
  } if (rf & 2) {
23825
23670
  const colIndex_r33 = ctx.index;
@@ -23831,7 +23676,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ct
23831
23676
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
23832
23677
  i0.ɵɵelementStart(0, "td");
23833
23678
  i0.ɵɵelementStart(1, "div");
23834
- i0.ɵɵelement(2, "ccd-activity", 42);
23679
+ i0.ɵɵelement(2, "ccd-activity", 43);
23835
23680
  i0.ɵɵelementEnd();
23836
23681
  i0.ɵɵelementEnd();
23837
23682
  } if (rf & 2) {
@@ -23845,7 +23690,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template(rf, ct
23845
23690
  function SearchResultComponent_table_0_ng_container_13_tr_1_Template(rf, ctx) { if (rf & 1) {
23846
23691
  i0.ɵɵelementStart(0, "tr");
23847
23692
  i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template, 4, 5, "td", 8);
23848
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 30);
23693
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 31);
23849
23694
  i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template, 3, 4, "td", 0);
23850
23695
  i0.ɵɵelementEnd();
23851
23696
  } if (rf & 2) {
@@ -23872,10 +23717,10 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
23872
23717
  const _r56 = i0.ɵɵgetCurrentView();
23873
23718
  i0.ɵɵelementStart(0, "td", 20);
23874
23719
  i0.ɵɵelementStart(1, "div", 21);
23875
- i0.ɵɵelementStart(2, "input", 43);
23720
+ i0.ɵɵelementStart(2, "input", 44);
23876
23721
  i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r56); const result_r50 = i0.ɵɵnextContext().$implicit; const ctx_r54 = i0.ɵɵnextContext(3); return ctx_r54.changeSelection(result_r50); })("keyup", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r56); const result_r50 = i0.ɵɵnextContext().$implicit; const ctx_r57 = i0.ɵɵnextContext(3); return ctx_r57.onKeyUp($event, result_r50); });
23877
23722
  i0.ɵɵelementEnd();
23878
- i0.ɵɵelement(3, "label", 32);
23723
+ i0.ɵɵelement(3, "label", 33);
23879
23724
  i0.ɵɵelementEnd();
23880
23725
  i0.ɵɵelementEnd();
23881
23726
  } if (rf & 2) {
@@ -23889,7 +23734,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
23889
23734
  i0.ɵɵpropertyInterpolate1("for", "select-", result_r50.case_id, "");
23890
23735
  } }
23891
23736
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
23892
- i0.ɵɵelement(0, "ccd-field-read", 41);
23737
+ i0.ɵɵelement(0, "ccd-field-read", 42);
23893
23738
  } if (rf & 2) {
23894
23739
  const col_r60 = i0.ɵɵnextContext(3).$implicit;
23895
23740
  const result_r50 = i0.ɵɵnextContext().$implicit;
@@ -23904,9 +23749,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
23904
23749
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r50.case_id));
23905
23750
  } }
23906
23751
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
23907
- i0.ɵɵelementContainerStart(0, 38);
23908
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
23909
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0.ɵɵtemplateRefExtractor);
23752
+ i0.ɵɵelementContainerStart(0, 39);
23753
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
23754
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0.ɵɵtemplateRefExtractor);
23910
23755
  i0.ɵɵelementContainerEnd();
23911
23756
  } if (rf & 2) {
23912
23757
  const _r66 = i0.ɵɵreference(3);
@@ -23917,9 +23762,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
23917
23762
  i0.ɵɵproperty("ngIf", ctx_r64.draftPrefixOrGet(col_r60, result_r50))("ngIfElse", _r66);
23918
23763
  } }
23919
23764
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
23920
- i0.ɵɵelementStart(0, "a", 36);
23765
+ i0.ɵɵelementStart(0, "a", 37);
23921
23766
  i0.ɵɵpipe(1, "ccdCaseReference");
23922
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
23767
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
23923
23768
  i0.ɵɵelementEnd();
23924
23769
  } if (rf & 2) {
23925
23770
  const result_r50 = i0.ɵɵnextContext(2).$implicit;
@@ -23930,8 +23775,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
23930
23775
  i0.ɵɵproperty("ngIf", !ctx_r62.hideRows);
23931
23776
  } }
23932
23777
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
23933
- i0.ɵɵelementStart(0, "div", 38);
23934
- i0.ɵɵelement(1, "ccd-field-read", 41);
23778
+ i0.ɵɵelementStart(0, "div", 39);
23779
+ i0.ɵɵelement(1, "ccd-field-read", 42);
23935
23780
  i0.ɵɵelementEnd();
23936
23781
  } if (rf & 2) {
23937
23782
  const col_r60 = i0.ɵɵnextContext().$implicit;
@@ -23942,9 +23787,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
23942
23787
  i0.ɵɵproperty("caseField", result_r50.columns[col_r60.case_field_id])("contextFields", result_r50.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
23943
23788
  } }
23944
23789
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
23945
- i0.ɵɵelementStart(0, "td", 33);
23946
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
23947
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
23790
+ i0.ɵɵelementStart(0, "td", 34);
23791
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
23792
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
23948
23793
  i0.ɵɵelementEnd();
23949
23794
  } if (rf & 2) {
23950
23795
  const colIndex_r61 = ctx.index;
@@ -23956,7 +23801,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
23956
23801
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
23957
23802
  i0.ɵɵelementStart(0, "td");
23958
23803
  i0.ɵɵelementStart(1, "div");
23959
- i0.ɵɵelement(2, "ccd-activity", 42);
23804
+ i0.ɵɵelement(2, "ccd-activity", 43);
23960
23805
  i0.ɵɵelementEnd();
23961
23806
  i0.ɵɵelementEnd();
23962
23807
  } if (rf & 2) {
@@ -23970,7 +23815,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
23970
23815
  function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
23971
23816
  i0.ɵɵelementStart(0, "tr");
23972
23817
  i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
23973
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
23818
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 31);
23974
23819
  i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
23975
23820
  i0.ɵɵelementEnd();
23976
23821
  } if (rf & 2) {
@@ -24006,7 +23851,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
24006
23851
  i0.ɵɵelementStart(7, "thead");
24007
23852
  i0.ɵɵelementStart(8, "tr", 7);
24008
23853
  i0.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
24009
- i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
23854
+ i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 4, "th", 9);
24010
23855
  i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
24011
23856
  i0.ɵɵelementEnd();
24012
23857
  i0.ɵɵelementEnd();
@@ -24038,7 +23883,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
24038
23883
  } }
24039
23884
  function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
24040
23885
  const _r78 = i0.ɵɵgetCurrentView();
24041
- i0.ɵɵelementStart(0, "ccd-pagination", 44);
23886
+ i0.ɵɵelementStart(0, "ccd-pagination", 45);
24042
23887
  i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r78); const ctx_r77 = i0.ɵɵnextContext(); return ctx_r77.goToPage($event); });
24043
23888
  i0.ɵɵelementEnd();
24044
23889
  } if (rf & 2) {
@@ -24046,7 +23891,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
24046
23891
  i0.ɵɵproperty("visibilityLabel", ctx_r1.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r1.page)("screenReaderCurrentLabel", "You're on page");
24047
23892
  } }
24048
23893
  function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
24049
- i0.ɵɵelementStart(0, "div", 45);
23894
+ i0.ɵɵelementStart(0, "div", 46);
24050
23895
  i0.ɵɵtext(1, " No cases found. Try using different filters.\n");
24051
23896
  i0.ɵɵelementEnd();
24052
23897
  } }
@@ -24384,7 +24229,7 @@ SearchResultComponent.PARAM_JURISDICTION = 'jurisdiction';
24384
24229
  SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
24385
24230
  SearchResultComponent.PARAM_CASE_STATE = 'case-state';
24386
24231
  SearchResultComponent.ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
24387
- SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
24232
+ SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["aria-describedby", "search results", 1, "search-result-column-header"], ["scope", "col"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
24388
24233
  i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 15, 9, "table", 0);
24389
24234
  i0.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
24390
24235
  i0.ɵɵtemplate(2, SearchResultComponent_div_2_Template, 2, 0, "div", 2);
@@ -24394,7 +24239,7 @@ SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultCompone
24394
24239
  i0.ɵɵproperty("ngIf", ctx.hasResults());
24395
24240
  i0.ɵɵadvance(1);
24396
24241
  i0.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
24397
- } }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1.DecimalPipe, i1$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}"] });
24242
+ } }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1.DecimalPipe, i1$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}"] });
24398
24243
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
24399
24244
  type: Component,
24400
24245
  args: [{