@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-all-document-count → 5.0.27-angular11-upgrade
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.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +156 -708
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +24 -45
- package/esm2015/lib/shared/components/palette/index.js +1 -2
- package/esm2015/lib/shared/components/palette/palette.module.js +9 -24
- package/esm2015/lib/shared/components/palette/palette.service.js +1 -18
- package/esm2015/lib/shared/components/search-result/search-result.component.js +10 -12
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
- package/esm2015/lib/shared/services/index.js +1 -2
- package/esm2015/public-api.js +1 -3
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +133 -640
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +0 -4
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +0 -7
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +0 -1
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +21 -24
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts +0 -2
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/index.d.ts +0 -1
- package/lib/shared/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/public-api.d.ts.map +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +0 -70
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +0 -320
- package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +0 -2
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +0 -3
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +0 -3
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +0 -3
- package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +0 -7
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +0 -28
- package/esm2015/lib/shared/domain/case-file-view/index.js +0 -5
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +0 -47
- package/esm2015/lib/shared/services/case-file-view/index.js +0 -2
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +0 -19
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +0 -26
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-file-view/components/index.d.ts +0 -2
- package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-file-view/index.d.ts +0 -3
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +0 -1
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +0 -9
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +0 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +0 -8
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +0 -1
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +0 -12
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +0 -1
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +0 -7
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +0 -1
- package/lib/shared/domain/case-file-view/index.d.ts +0 -5
- package/lib/shared/domain/case-file-view/index.d.ts.map +0 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +0 -22
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +0 -1
- package/lib/shared/services/case-file-view/index.d.ts +0 -2
- package/lib/shared/services/case-file-view/index.d.ts.map +0 -1
|
@@ -7,10 +7,10 @@ import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
|
7
7
|
import * as i1$3 from '@angular/forms';
|
|
8
8
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import polling from 'rx-polling';
|
|
10
|
-
import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer
|
|
10
|
+
import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer } from 'rxjs';
|
|
11
11
|
import * as i1$2 from '@angular/common/http';
|
|
12
12
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
13
|
-
import { catchError, map, publish, refCount, debounceTime, distinctUntilChanged, finalize, tap, delay, publishReplay, take, first,
|
|
13
|
+
import { catchError, map, publish, refCount, debounceTime, distinctUntilChanged, finalize, tap, delay, publishReplay, take, first, filter, switchMap } from 'rxjs/operators';
|
|
14
14
|
import { Type, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
|
|
15
15
|
import * as _ from 'underscore';
|
|
16
16
|
import * as moment from 'moment';
|
|
@@ -19,9 +19,7 @@ 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/
|
|
23
|
-
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
24
|
-
import * as i1$6 from '@angular/material/dialog';
|
|
22
|
+
import * as i1$5 from '@angular/material/dialog';
|
|
25
23
|
import { MatDialogConfig } from '@angular/material/dialog';
|
|
26
24
|
import * as i2 from '@nicky-lenaers/ngx-scroll-to';
|
|
27
25
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
@@ -41,7 +39,7 @@ import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
|
41
39
|
import * as i6$2 from '@angular/cdk/portal';
|
|
42
40
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
43
41
|
import { MatInputModule } from '@angular/material/input';
|
|
44
|
-
import * as i1$
|
|
42
|
+
import * as i1$6 from 'ngx-pagination';
|
|
45
43
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
46
44
|
import * as i10 from '@angular/material/tabs';
|
|
47
45
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -5653,46 +5651,6 @@ CaseFieldService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFieldService, fac
|
|
|
5653
5651
|
type: Injectable
|
|
5654
5652
|
}], null, null); })();
|
|
5655
5653
|
|
|
5656
|
-
class CaseFileViewService {
|
|
5657
|
-
constructor(http, appConfig, errorService) {
|
|
5658
|
-
this.http = http;
|
|
5659
|
-
this.appConfig = appConfig;
|
|
5660
|
-
this.errorService = errorService;
|
|
5661
|
-
}
|
|
5662
|
-
/**
|
|
5663
|
-
* Retrieves the categories and documents for a case.
|
|
5664
|
-
*
|
|
5665
|
-
* @param caseRef 16-digit Case Reference number of the case
|
|
5666
|
-
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
5667
|
-
*/
|
|
5668
|
-
getCategoriesAndDocuments(caseRef) {
|
|
5669
|
-
let url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
5670
|
-
if (url) {
|
|
5671
|
-
url += `/${caseRef}`;
|
|
5672
|
-
return this.http.get(url, { observe: 'body' });
|
|
5673
|
-
}
|
|
5674
|
-
return of(null);
|
|
5675
|
-
}
|
|
5676
|
-
updateDocumentCategory(caseRef, caseVersion, attributePath, categoryId) {
|
|
5677
|
-
let url = this.appConfig.getDocumentDataUrl();
|
|
5678
|
-
if (url) {
|
|
5679
|
-
url += `/${caseRef}`;
|
|
5680
|
-
const body = {
|
|
5681
|
-
case_version: caseVersion,
|
|
5682
|
-
attribute_path: attributePath,
|
|
5683
|
-
category_id: categoryId
|
|
5684
|
-
};
|
|
5685
|
-
return this.http.put(url, body, { observe: 'body' });
|
|
5686
|
-
}
|
|
5687
|
-
return of(null);
|
|
5688
|
-
}
|
|
5689
|
-
}
|
|
5690
|
-
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService)); };
|
|
5691
|
-
CaseFileViewService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
5692
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewService, [{
|
|
5693
|
-
type: Injectable
|
|
5694
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null); })();
|
|
5695
|
-
|
|
5696
5654
|
class DocumentManagementService {
|
|
5697
5655
|
constructor(http, appConfig) {
|
|
5698
5656
|
this.http = http;
|
|
@@ -8051,420 +8009,6 @@ WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFi
|
|
|
8051
8009
|
type: Input
|
|
8052
8010
|
}] }); })();
|
|
8053
8011
|
|
|
8054
|
-
class CaseFileViewCategory {
|
|
8055
|
-
}
|
|
8056
|
-
|
|
8057
|
-
class CaseFileViewDocument {
|
|
8058
|
-
}
|
|
8059
|
-
|
|
8060
|
-
/**
|
|
8061
|
-
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
8062
|
-
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
8063
|
-
*/
|
|
8064
|
-
class CategoriesAndDocuments {
|
|
8065
|
-
}
|
|
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);
|
|
8092
|
-
|
|
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);
|
|
8098
|
-
i0.ɵɵelementEnd();
|
|
8099
|
-
i0.ɵɵelementStart(4, "span", 11);
|
|
8100
|
-
i0.ɵɵtext(5);
|
|
8101
|
-
i0.ɵɵelementEnd();
|
|
8102
|
-
i0.ɵɵelementEnd();
|
|
8103
|
-
i0.ɵɵelementEnd();
|
|
8104
|
-
} if (rf & 2) {
|
|
8105
|
-
const node_r2 = ctx.$implicit;
|
|
8106
|
-
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);
|
|
8115
|
-
i0.ɵɵtext(5);
|
|
8116
|
-
i0.ɵɵelementEnd();
|
|
8117
|
-
i0.ɵɵelementEnd();
|
|
8118
|
-
i0.ɵɵelementStart(6, "span", 16);
|
|
8119
|
-
i0.ɵɵtext(7);
|
|
8120
|
-
i0.ɵɵelementEnd();
|
|
8121
|
-
i0.ɵɵelementEnd();
|
|
8122
|
-
i0.ɵɵelementStart(8, "div");
|
|
8123
|
-
i0.ɵɵelementContainer(9, 17);
|
|
8124
|
-
i0.ɵɵelementEnd();
|
|
8125
|
-
i0.ɵɵelementEnd();
|
|
8126
|
-
} if (rf & 2) {
|
|
8127
|
-
const node_r3 = ctx.$implicit;
|
|
8128
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
8129
|
-
i0.ɵɵadvance(2);
|
|
8130
|
-
i0.ɵɵattribute("aria-label", "toggle " + node_r3.name);
|
|
8131
|
-
i0.ɵɵadvance(3);
|
|
8132
|
-
i0.ɵɵtextInterpolate(node_r3.childDocumentCount);
|
|
8133
|
-
i0.ɵɵadvance(2);
|
|
8134
|
-
i0.ɵɵtextInterpolate(node_r3.name);
|
|
8135
|
-
i0.ɵɵadvance(1);
|
|
8136
|
-
i0.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
|
|
8137
|
-
} }
|
|
8138
|
-
class CaseFileViewFolderComponent {
|
|
8139
|
-
constructor() {
|
|
8140
|
-
this.categories = [];
|
|
8141
|
-
this.getChildren = (node) => of(node.children);
|
|
8142
|
-
this.nestedChildren = (_, nodeData) => nodeData.children;
|
|
8143
|
-
this.nestedTreeControl = new NestedTreeControl(this.getChildren);
|
|
8144
|
-
}
|
|
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
|
-
ngOnInit() {
|
|
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;
|
|
8160
|
-
// Generate document tree data from categories
|
|
8161
|
-
const treeData = this.generateTreeData(categories);
|
|
8162
|
-
// Append uncategorised documents
|
|
8163
|
-
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
8164
|
-
const uncategorisedDocuments = this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
8165
|
-
treeData.push(uncategorisedDocuments);
|
|
8166
|
-
}
|
|
8167
|
-
// Initialise cdk tree with generated data
|
|
8168
|
-
this.nestedDataSource = treeData;
|
|
8169
|
-
});
|
|
8170
|
-
}
|
|
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
|
-
}, []);
|
|
8182
|
-
}
|
|
8183
|
-
getDocuments(documents) {
|
|
8184
|
-
const documentsToReturn = [];
|
|
8185
|
-
documents.forEach(document => {
|
|
8186
|
-
const documentTreeNode = new DocumentTreeNode();
|
|
8187
|
-
documentTreeNode.name = document.document_filename;
|
|
8188
|
-
documentTreeNode.type = 'document';
|
|
8189
|
-
documentsToReturn.push(documentTreeNode);
|
|
8190
|
-
});
|
|
8191
|
-
return documentsToReturn;
|
|
8192
|
-
}
|
|
8193
|
-
getUncategorisedDocuments(uncategorisedDocuments) {
|
|
8194
|
-
const documents = [];
|
|
8195
|
-
uncategorisedDocuments.forEach(document => {
|
|
8196
|
-
const documentTreeNode = new DocumentTreeNode();
|
|
8197
|
-
documentTreeNode.name = document.document_filename;
|
|
8198
|
-
documentTreeNode.type = 'document';
|
|
8199
|
-
documents.push(documentTreeNode);
|
|
8200
|
-
});
|
|
8201
|
-
const uncategorisedNode = new DocumentTreeNode();
|
|
8202
|
-
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
8203
|
-
uncategorisedNode.type = 'category';
|
|
8204
|
-
uncategorisedNode.children = documents;
|
|
8205
|
-
return uncategorisedNode;
|
|
8206
|
-
}
|
|
8207
|
-
ngOnDestroy() {
|
|
8208
|
-
if (this.categoriesAndDocumentsSubscription) {
|
|
8209
|
-
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
8210
|
-
}
|
|
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
|
-
];
|
|
8371
|
-
}
|
|
8372
|
-
}
|
|
8373
|
-
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
8374
|
-
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) {
|
|
8376
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
8377
|
-
i0.ɵɵelement(1, "div", 1);
|
|
8378
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
8379
|
-
i0.ɵɵtext(3);
|
|
8380
|
-
i0.ɵɵelementEnd();
|
|
8381
|
-
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);
|
|
8386
|
-
i0.ɵɵelementEnd();
|
|
8387
|
-
i0.ɵɵelementEnd();
|
|
8388
|
-
} 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}"] });
|
|
8396
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
8397
|
-
type: Component,
|
|
8398
|
-
args: [{
|
|
8399
|
-
selector: 'ccd-case-file-view-folder',
|
|
8400
|
-
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
8401
|
-
templateUrl: './case-file-view-folder.component.html'
|
|
8402
|
-
}]
|
|
8403
|
-
}], function () { return []; }, { categoriesAndDocuments: [{
|
|
8404
|
-
type: Input
|
|
8405
|
-
}] }); })();
|
|
8406
|
-
|
|
8407
|
-
class CaseFileViewFieldComponent {
|
|
8408
|
-
constructor(elementRef, route, caseFileViewService) {
|
|
8409
|
-
this.elementRef = elementRef;
|
|
8410
|
-
this.route = route;
|
|
8411
|
-
this.caseFileViewService = caseFileViewService;
|
|
8412
|
-
}
|
|
8413
|
-
ngOnInit() {
|
|
8414
|
-
const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
8415
|
-
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
8416
|
-
}
|
|
8417
|
-
ngAfterViewInit() {
|
|
8418
|
-
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
8419
|
-
const documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
8420
|
-
const mousedown$ = fromEvent(slider, 'mousedown');
|
|
8421
|
-
const mousemove$ = fromEvent(document, 'mousemove');
|
|
8422
|
-
const mouseup$ = fromEvent(document, 'mouseup');
|
|
8423
|
-
const drag$ = mousedown$.pipe(switchMap((start) => {
|
|
8424
|
-
const x = start.clientX;
|
|
8425
|
-
const documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
|
|
8426
|
-
return mousemove$.pipe(map(move => {
|
|
8427
|
-
move.preventDefault();
|
|
8428
|
-
return {
|
|
8429
|
-
dx: move.clientX - x,
|
|
8430
|
-
documentTreeContainerWidth
|
|
8431
|
-
};
|
|
8432
|
-
}), takeUntil(mouseup$));
|
|
8433
|
-
}));
|
|
8434
|
-
drag$.subscribe(pos => {
|
|
8435
|
-
const calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
|
|
8436
|
-
documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
|
|
8437
|
-
});
|
|
8438
|
-
}
|
|
8439
|
-
}
|
|
8440
|
-
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
8441
|
-
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService)); };
|
|
8442
|
-
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 1, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8443
|
-
i0.ɵɵelementStart(0, "h2", 0);
|
|
8444
|
-
i0.ɵɵtext(1, "Case file");
|
|
8445
|
-
i0.ɵɵelementEnd();
|
|
8446
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
8447
|
-
i0.ɵɵelementStart(3, "div", 2);
|
|
8448
|
-
i0.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
8449
|
-
i0.ɵɵelementEnd();
|
|
8450
|
-
i0.ɵɵelement(5, "div", 4);
|
|
8451
|
-
i0.ɵɵelementStart(6, "div", 5);
|
|
8452
|
-
i0.ɵɵtext(7, " Media viewer ");
|
|
8453
|
-
i0.ɵɵelementEnd();
|
|
8454
|
-
i0.ɵɵelementEnd();
|
|
8455
|
-
} if (rf & 2) {
|
|
8456
|
-
i0.ɵɵadvance(4);
|
|
8457
|
-
i0.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
8458
|
-
} }, directives: [CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{flex:1 1 0%}"] });
|
|
8459
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
8460
|
-
type: Component,
|
|
8461
|
-
args: [{
|
|
8462
|
-
selector: 'ccd-case-file-view-field',
|
|
8463
|
-
templateUrl: './case-file-view-field.component.html',
|
|
8464
|
-
styleUrls: ['./case-file-view-field.component.scss'],
|
|
8465
|
-
}]
|
|
8466
|
-
}], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null); })();
|
|
8467
|
-
|
|
8468
8012
|
var PaletteContext;
|
|
8469
8013
|
(function (PaletteContext) {
|
|
8470
8014
|
PaletteContext["DEFAULT"] = "DEFAULT";
|
|
@@ -8788,7 +8332,7 @@ class RemoveDialogComponent {
|
|
|
8788
8332
|
this.matDialogRef.close(this.result);
|
|
8789
8333
|
}
|
|
8790
8334
|
}
|
|
8791
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
8335
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
8792
8336
|
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
8337
|
i0.ɵɵelementStart(0, "div");
|
|
8794
8338
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -8826,7 +8370,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
8826
8370
|
templateUrl: './remove-dialog.component.html',
|
|
8827
8371
|
styleUrls: ['../action-dialog.component.scss']
|
|
8828
8372
|
}]
|
|
8829
|
-
}], function () { return [{ type: i1$
|
|
8373
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
8830
8374
|
|
|
8831
8375
|
const _c0$D = ["collectionItem"];
|
|
8832
8376
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -9200,7 +8744,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
9200
8744
|
return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
|
|
9201
8745
|
}
|
|
9202
8746
|
}
|
|
9203
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$
|
|
8747
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
9204
8748
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9205
8749
|
i0.ɵɵviewQuery(_c0$D, 1);
|
|
9206
8750
|
} if (rf & 2) {
|
|
@@ -9242,7 +8786,7 @@ WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollec
|
|
|
9242
8786
|
templateUrl: './write-collection-field.html',
|
|
9243
8787
|
styleUrls: ['./collection-field.scss']
|
|
9244
8788
|
}]
|
|
9245
|
-
}], function () { return [{ type: i1$
|
|
8789
|
+
}], function () { return [{ type: i1$5.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
9246
8790
|
type: Input
|
|
9247
8791
|
}], formGroup: [{
|
|
9248
8792
|
type: Input
|
|
@@ -10418,7 +9962,7 @@ class DocumentDialogComponent {
|
|
|
10418
9962
|
this.matDialogRef.close(this.result);
|
|
10419
9963
|
}
|
|
10420
9964
|
}
|
|
10421
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
9965
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
10422
9966
|
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
9967
|
i0.ɵɵelementStart(0, "div");
|
|
10424
9968
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -10456,7 +10000,7 @@ DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogCom
|
|
|
10456
10000
|
templateUrl: './document-dialog.component.html',
|
|
10457
10001
|
styleUrls: ['../action-dialog.component.scss']
|
|
10458
10002
|
}]
|
|
10459
|
-
}], function () { return [{ type: i1$
|
|
10003
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
10460
10004
|
|
|
10461
10005
|
function initDialog() {
|
|
10462
10006
|
const dialogConfig = new MatDialogConfig();
|
|
@@ -10763,7 +10307,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
|
|
|
10763
10307
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
10764
10308
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
10765
10309
|
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$
|
|
10310
|
+
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
10311
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10768
10312
|
i0.ɵɵviewQuery(_c0$z, 1);
|
|
10769
10313
|
} if (rf & 2) {
|
|
@@ -10828,7 +10372,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
10828
10372
|
selector: 'ccd-write-document-field',
|
|
10829
10373
|
templateUrl: './write-document-field.html'
|
|
10830
10374
|
}]
|
|
10831
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$
|
|
10375
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$5.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
10832
10376
|
type: ViewChild,
|
|
10833
10377
|
args: ['fileInput', { static: false }]
|
|
10834
10378
|
}], clickout: [{
|
|
@@ -14180,11 +13724,6 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
14180
13724
|
}], function () { return [{ type: YesNoService }]; }, null); })();
|
|
14181
13725
|
|
|
14182
13726
|
class PaletteService {
|
|
14183
|
-
constructor() {
|
|
14184
|
-
this.componentLauncherRegistry = {
|
|
14185
|
-
CaseFileView: CaseFileViewFieldComponent
|
|
14186
|
-
};
|
|
14187
|
-
}
|
|
14188
13727
|
getFieldComponentClass(caseField, write) {
|
|
14189
13728
|
switch (caseField.field_type.type) {
|
|
14190
13729
|
case 'Text':
|
|
@@ -14243,21 +13782,10 @@ class PaletteService {
|
|
|
14243
13782
|
return CaseHistoryViewerFieldComponent;
|
|
14244
13783
|
case 'WaysToPay':
|
|
14245
13784
|
return WaysToPayFieldComponent;
|
|
14246
|
-
case 'ComponentLauncher':
|
|
14247
|
-
return this.getComponentLauncherComponent(caseField);
|
|
14248
13785
|
default:
|
|
14249
13786
|
return UnsupportedFieldComponent;
|
|
14250
13787
|
}
|
|
14251
13788
|
}
|
|
14252
|
-
getComponentLauncherComponent(caseField) {
|
|
14253
|
-
// Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
|
|
14254
|
-
// component from the componentLauncherRegistry
|
|
14255
|
-
const argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
|
|
14256
|
-
if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
|
|
14257
|
-
return this.componentLauncherRegistry[argumentValue];
|
|
14258
|
-
}
|
|
14259
|
-
return UnsupportedFieldComponent;
|
|
14260
|
-
}
|
|
14261
13789
|
}
|
|
14262
13790
|
PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
|
|
14263
13791
|
PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory: PaletteService.ɵfac });
|
|
@@ -14518,7 +14046,7 @@ class SaveOrDiscardDialogComponent {
|
|
|
14518
14046
|
this.matDialogRef.close(this.result);
|
|
14519
14047
|
}
|
|
14520
14048
|
}
|
|
14521
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
14049
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
14522
14050
|
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
14051
|
i0.ɵɵelementStart(0, "div");
|
|
14524
14052
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -14556,7 +14084,7 @@ SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SaveOrDiscar
|
|
|
14556
14084
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
14557
14085
|
styleUrls: ['../action-dialog.component.scss']
|
|
14558
14086
|
}]
|
|
14559
|
-
}], function () { return [{ type: i1$
|
|
14087
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
14560
14088
|
|
|
14561
14089
|
var CaseEditPageText;
|
|
14562
14090
|
(function (CaseEditPageText) {
|
|
@@ -15323,7 +14851,7 @@ class CaseEditPageComponent {
|
|
|
15323
14851
|
return caseEventData;
|
|
15324
14852
|
}
|
|
15325
14853
|
}
|
|
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$
|
|
14854
|
+
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
14855
|
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
14856
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
15329
14857
|
i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
|
|
@@ -15365,7 +14893,7 @@ CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageCompone
|
|
|
15365
14893
|
templateUrl: 'case-edit-page.html',
|
|
15366
14894
|
styleUrls: ['./case-edit-page.scss']
|
|
15367
14895
|
}]
|
|
15368
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$
|
|
14896
|
+
}], 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
14897
|
|
|
15370
14898
|
class Confirmation {
|
|
15371
14899
|
constructor(caseId, status, header, body) {
|
|
@@ -16303,6 +15831,79 @@ FormModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
16303
15831
|
}]
|
|
16304
15832
|
}], null, null); })();
|
|
16305
15833
|
|
|
15834
|
+
class IsReadOnlyPipe {
|
|
15835
|
+
constructor(caseFieldService) {
|
|
15836
|
+
this.caseFieldService = caseFieldService;
|
|
15837
|
+
}
|
|
15838
|
+
transform(field) {
|
|
15839
|
+
return this.caseFieldService.isReadOnly(field);
|
|
15840
|
+
}
|
|
15841
|
+
}
|
|
15842
|
+
IsReadOnlyPipe.ɵfac = function IsReadOnlyPipe_Factory(t) { return new (t || IsReadOnlyPipe)(i0.ɵɵdirectiveInject(CaseFieldService)); };
|
|
15843
|
+
IsReadOnlyPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdIsReadOnly", type: IsReadOnlyPipe, pure: true });
|
|
15844
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsReadOnlyPipe, [{
|
|
15845
|
+
type: Pipe,
|
|
15846
|
+
args: [{
|
|
15847
|
+
name: 'ccdIsReadOnly'
|
|
15848
|
+
}]
|
|
15849
|
+
}], function () { return [{ type: CaseFieldService }]; }, null); })();
|
|
15850
|
+
|
|
15851
|
+
class PaletteUtilsModule {
|
|
15852
|
+
}
|
|
15853
|
+
PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
|
|
15854
|
+
PaletteUtilsModule.ɵmod = i0.ɵɵdefineNgModule({ type: PaletteUtilsModule });
|
|
15855
|
+
PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
15856
|
+
IsCompoundPipe
|
|
15857
|
+
], imports: [[
|
|
15858
|
+
CommonModule
|
|
15859
|
+
]] });
|
|
15860
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
|
|
15861
|
+
FieldLabelPipe,
|
|
15862
|
+
FirstErrorPipe,
|
|
15863
|
+
IsCompoundPipe,
|
|
15864
|
+
IsMandatoryPipe,
|
|
15865
|
+
IsReadOnlyPipe,
|
|
15866
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
15867
|
+
DashPipe], imports: [CommonModule], exports: [DatePipe,
|
|
15868
|
+
FieldLabelPipe,
|
|
15869
|
+
FirstErrorPipe,
|
|
15870
|
+
IsCompoundPipe,
|
|
15871
|
+
IsMandatoryPipe,
|
|
15872
|
+
IsReadOnlyPipe,
|
|
15873
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
15874
|
+
DashPipe] }); })();
|
|
15875
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteUtilsModule, [{
|
|
15876
|
+
type: NgModule,
|
|
15877
|
+
args: [{
|
|
15878
|
+
imports: [
|
|
15879
|
+
CommonModule
|
|
15880
|
+
],
|
|
15881
|
+
declarations: [
|
|
15882
|
+
DatePipe,
|
|
15883
|
+
FieldLabelPipe,
|
|
15884
|
+
FirstErrorPipe,
|
|
15885
|
+
IsCompoundPipe,
|
|
15886
|
+
IsMandatoryPipe,
|
|
15887
|
+
IsReadOnlyPipe,
|
|
15888
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
15889
|
+
DashPipe
|
|
15890
|
+
],
|
|
15891
|
+
exports: [
|
|
15892
|
+
DatePipe,
|
|
15893
|
+
FieldLabelPipe,
|
|
15894
|
+
FirstErrorPipe,
|
|
15895
|
+
IsCompoundPipe,
|
|
15896
|
+
IsMandatoryPipe,
|
|
15897
|
+
IsReadOnlyPipe,
|
|
15898
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
15899
|
+
DashPipe
|
|
15900
|
+
],
|
|
15901
|
+
providers: [
|
|
15902
|
+
IsCompoundPipe
|
|
15903
|
+
]
|
|
15904
|
+
}]
|
|
15905
|
+
}], null, null); })();
|
|
15906
|
+
|
|
16306
15907
|
class CcdCollectionTableCaseFieldsFilterPipe {
|
|
16307
15908
|
transform(objs, caseField, value) {
|
|
16308
15909
|
const fields = objs.map((obj) => (Object.assign(Object.assign({}, obj.value.caseField), { type: obj.value.type.type ? obj.value.type.type : obj.value.type })));
|
|
@@ -16489,7 +16090,7 @@ ReadFieldsFilterPipe.EMPTY_VALUES = [
|
|
|
16489
16090
|
'',
|
|
16490
16091
|
{}
|
|
16491
16092
|
];
|
|
16492
|
-
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay'
|
|
16093
|
+
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay'];
|
|
16493
16094
|
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
16494
16095
|
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
16495
16096
|
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
@@ -16721,79 +16322,6 @@ class Fee {
|
|
|
16721
16322
|
class OrderSummary {
|
|
16722
16323
|
}
|
|
16723
16324
|
|
|
16724
|
-
class IsReadOnlyPipe {
|
|
16725
|
-
constructor(caseFieldService) {
|
|
16726
|
-
this.caseFieldService = caseFieldService;
|
|
16727
|
-
}
|
|
16728
|
-
transform(field) {
|
|
16729
|
-
return this.caseFieldService.isReadOnly(field);
|
|
16730
|
-
}
|
|
16731
|
-
}
|
|
16732
|
-
IsReadOnlyPipe.ɵfac = function IsReadOnlyPipe_Factory(t) { return new (t || IsReadOnlyPipe)(i0.ɵɵdirectiveInject(CaseFieldService)); };
|
|
16733
|
-
IsReadOnlyPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdIsReadOnly", type: IsReadOnlyPipe, pure: true });
|
|
16734
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsReadOnlyPipe, [{
|
|
16735
|
-
type: Pipe,
|
|
16736
|
-
args: [{
|
|
16737
|
-
name: 'ccdIsReadOnly'
|
|
16738
|
-
}]
|
|
16739
|
-
}], function () { return [{ type: CaseFieldService }]; }, null); })();
|
|
16740
|
-
|
|
16741
|
-
class PaletteUtilsModule {
|
|
16742
|
-
}
|
|
16743
|
-
PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
|
|
16744
|
-
PaletteUtilsModule.ɵmod = i0.ɵɵdefineNgModule({ type: PaletteUtilsModule });
|
|
16745
|
-
PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
16746
|
-
IsCompoundPipe
|
|
16747
|
-
], imports: [[
|
|
16748
|
-
CommonModule
|
|
16749
|
-
]] });
|
|
16750
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
|
|
16751
|
-
FieldLabelPipe,
|
|
16752
|
-
FirstErrorPipe,
|
|
16753
|
-
IsCompoundPipe,
|
|
16754
|
-
IsMandatoryPipe,
|
|
16755
|
-
IsReadOnlyPipe,
|
|
16756
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
16757
|
-
DashPipe], imports: [CommonModule], exports: [DatePipe,
|
|
16758
|
-
FieldLabelPipe,
|
|
16759
|
-
FirstErrorPipe,
|
|
16760
|
-
IsCompoundPipe,
|
|
16761
|
-
IsMandatoryPipe,
|
|
16762
|
-
IsReadOnlyPipe,
|
|
16763
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
16764
|
-
DashPipe] }); })();
|
|
16765
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteUtilsModule, [{
|
|
16766
|
-
type: NgModule,
|
|
16767
|
-
args: [{
|
|
16768
|
-
imports: [
|
|
16769
|
-
CommonModule
|
|
16770
|
-
],
|
|
16771
|
-
declarations: [
|
|
16772
|
-
DatePipe,
|
|
16773
|
-
FieldLabelPipe,
|
|
16774
|
-
FirstErrorPipe,
|
|
16775
|
-
IsCompoundPipe,
|
|
16776
|
-
IsMandatoryPipe,
|
|
16777
|
-
IsReadOnlyPipe,
|
|
16778
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
16779
|
-
DashPipe
|
|
16780
|
-
],
|
|
16781
|
-
exports: [
|
|
16782
|
-
DatePipe,
|
|
16783
|
-
FieldLabelPipe,
|
|
16784
|
-
FirstErrorPipe,
|
|
16785
|
-
IsCompoundPipe,
|
|
16786
|
-
IsMandatoryPipe,
|
|
16787
|
-
IsReadOnlyPipe,
|
|
16788
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
16789
|
-
DashPipe
|
|
16790
|
-
],
|
|
16791
|
-
providers: [
|
|
16792
|
-
IsCompoundPipe
|
|
16793
|
-
]
|
|
16794
|
-
}]
|
|
16795
|
-
}], null, null); })();
|
|
16796
|
-
|
|
16797
16325
|
const PALETTE_COMPONENTS = [
|
|
16798
16326
|
UnsupportedFieldComponent,
|
|
16799
16327
|
DatetimePickerComponent,
|
|
@@ -16863,10 +16391,7 @@ const PALETTE_COMPONENTS = [
|
|
|
16863
16391
|
WriteFixedListFieldComponent,
|
|
16864
16392
|
WriteFixedRadioListFieldComponent,
|
|
16865
16393
|
WriteCaseLinkFieldComponent,
|
|
16866
|
-
WriteCollectionFieldComponent
|
|
16867
|
-
// ComponentLauncher web components
|
|
16868
|
-
CaseFileViewFieldComponent,
|
|
16869
|
-
CaseFileViewFolderComponent
|
|
16394
|
+
WriteCollectionFieldComponent
|
|
16870
16395
|
];
|
|
16871
16396
|
class PaletteModule {
|
|
16872
16397
|
}
|
|
@@ -16903,7 +16428,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
16903
16428
|
MatInputModule,
|
|
16904
16429
|
MatDatepickerModule,
|
|
16905
16430
|
MatAutocompleteModule,
|
|
16906
|
-
CdkTreeModule,
|
|
16907
16431
|
PaymentLibModule,
|
|
16908
16432
|
ScrollToModule.forRoot()
|
|
16909
16433
|
], NgxMatDatetimePickerModule,
|
|
@@ -16984,10 +16508,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
16984
16508
|
WriteFixedListFieldComponent,
|
|
16985
16509
|
WriteFixedRadioListFieldComponent,
|
|
16986
16510
|
WriteCaseLinkFieldComponent,
|
|
16987
|
-
WriteCollectionFieldComponent,
|
|
16988
|
-
// ComponentLauncher web components
|
|
16989
|
-
CaseFileViewFieldComponent,
|
|
16990
|
-
CaseFileViewFolderComponent], imports: [CommonModule,
|
|
16511
|
+
WriteCollectionFieldComponent], imports: [CommonModule,
|
|
16991
16512
|
RouterModule,
|
|
16992
16513
|
FormsModule,
|
|
16993
16514
|
ReactiveFormsModule,
|
|
@@ -17008,7 +16529,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17008
16529
|
MatInputModule,
|
|
17009
16530
|
MatDatepickerModule,
|
|
17010
16531
|
MatAutocompleteModule,
|
|
17011
|
-
CdkTreeModule,
|
|
17012
16532
|
PaymentLibModule, i2.ScrollToModule], exports: [NgxMatDatetimePickerModule,
|
|
17013
16533
|
NgxMatNativeDateModule,
|
|
17014
16534
|
NgxMatTimepickerModule,
|
|
@@ -17082,10 +16602,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17082
16602
|
WriteFixedListFieldComponent,
|
|
17083
16603
|
WriteFixedRadioListFieldComponent,
|
|
17084
16604
|
WriteCaseLinkFieldComponent,
|
|
17085
|
-
WriteCollectionFieldComponent
|
|
17086
|
-
// ComponentLauncher web components
|
|
17087
|
-
CaseFileViewFieldComponent,
|
|
17088
|
-
CaseFileViewFolderComponent] }); })();
|
|
16605
|
+
WriteCollectionFieldComponent] }); })();
|
|
17089
16606
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
|
|
17090
16607
|
type: NgModule,
|
|
17091
16608
|
args: [{
|
|
@@ -17111,7 +16628,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17111
16628
|
MatInputModule,
|
|
17112
16629
|
MatDatepickerModule,
|
|
17113
16630
|
MatAutocompleteModule,
|
|
17114
|
-
CdkTreeModule,
|
|
17115
16631
|
PaymentLibModule,
|
|
17116
16632
|
ScrollToModule.forRoot()
|
|
17117
16633
|
],
|
|
@@ -17896,7 +17412,7 @@ PaginationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaginationComponent,
|
|
|
17896
17412
|
i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
|
|
17897
17413
|
i0.ɵɵadvance(3);
|
|
17898
17414
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
17899
|
-
} }, directives: [i1$
|
|
17415
|
+
} }, 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
17416
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
17901
17417
|
type: Component,
|
|
17902
17418
|
args: [{
|
|
@@ -18246,7 +17762,7 @@ CaseListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseListComponent, sele
|
|
|
18246
17762
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(9, 8, ctx.cases, i0.ɵɵpureFunction3(11, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
|
|
18247
17763
|
i0.ɵɵadvance(2);
|
|
18248
17764
|
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$
|
|
17765
|
+
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$6.PaginatePipe, i1.CurrencyPipe], styles: [""] });
|
|
18250
17766
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
18251
17767
|
type: Component,
|
|
18252
17768
|
args: [{
|
|
@@ -19935,7 +19451,7 @@ class DeleteOrCancelDialogComponent {
|
|
|
19935
19451
|
this.matDialogRef.close(this.result);
|
|
19936
19452
|
}
|
|
19937
19453
|
}
|
|
19938
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
19454
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$5.MatDialogRef)); };
|
|
19939
19455
|
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
19456
|
i0.ɵɵelementStart(0, "div");
|
|
19941
19457
|
i0.ɵɵelementStart(1, "div", 0);
|
|
@@ -19973,7 +19489,7 @@ DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DeleteOrCan
|
|
|
19973
19489
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
19974
19490
|
styleUrls: ['../action-dialog.component.scss']
|
|
19975
19491
|
}]
|
|
19976
|
-
}], function () { return [{ type: i1$
|
|
19492
|
+
}], function () { return [{ type: i1$5.MatDialogRef }]; }, null); })();
|
|
19977
19493
|
|
|
19978
19494
|
function EventTriggerComponent_form_0_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
19979
19495
|
i0.ɵɵelementStart(0, "option", 8);
|
|
@@ -20155,50 +19671,39 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template(rf, ctx)
|
|
|
20155
19671
|
const tab_r16 = ctx.$implicit;
|
|
20156
19672
|
i0.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
|
|
20157
19673
|
} }
|
|
20158
|
-
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);
|
|
20161
|
-
i0.ɵɵtext(2);
|
|
20162
|
-
i0.ɵɵelementEnd();
|
|
20163
|
-
i0.ɵɵelementEnd();
|
|
20164
|
-
} if (rf & 2) {
|
|
20165
|
-
const field_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
20166
|
-
i0.ɵɵadvance(2);
|
|
20167
|
-
i0.ɵɵtextInterpolate(field_r21.label);
|
|
20168
|
-
} }
|
|
20169
19674
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
20170
19675
|
i0.ɵɵelementStart(0, "tr");
|
|
20171
|
-
i0.ɵɵ
|
|
20172
|
-
i0.ɵɵelementStart(2, "
|
|
20173
|
-
i0.ɵɵ
|
|
20174
|
-
i0.ɵɵ
|
|
19676
|
+
i0.ɵɵelementStart(1, "th");
|
|
19677
|
+
i0.ɵɵelementStart(2, "div", 31);
|
|
19678
|
+
i0.ɵɵtext(3);
|
|
19679
|
+
i0.ɵɵelementEnd();
|
|
19680
|
+
i0.ɵɵelementEnd();
|
|
19681
|
+
i0.ɵɵelementStart(4, "td");
|
|
19682
|
+
i0.ɵɵelementStart(5, "span", 32);
|
|
19683
|
+
i0.ɵɵelement(6, "ccd-field-read", 33);
|
|
20175
19684
|
i0.ɵɵelementEnd();
|
|
20176
19685
|
i0.ɵɵelementEnd();
|
|
20177
19686
|
i0.ɵɵelementEnd();
|
|
20178
19687
|
} if (rf & 2) {
|
|
20179
19688
|
const field_r21 = i0.ɵɵnextContext().$implicit;
|
|
20180
19689
|
const ctx_r22 = i0.ɵɵnextContext(4);
|
|
20181
|
-
i0.ɵɵadvance(
|
|
20182
|
-
i0.ɵɵ
|
|
20183
|
-
i0.ɵɵadvance(
|
|
20184
|
-
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
|
|
20185
|
-
i0.ɵɵadvance(2);
|
|
19690
|
+
i0.ɵɵadvance(3);
|
|
19691
|
+
i0.ɵɵtextInterpolate(field_r21.label);
|
|
19692
|
+
i0.ɵɵadvance(3);
|
|
20186
19693
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
|
|
20187
19694
|
} }
|
|
20188
19695
|
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",
|
|
20190
|
-
i0.ɵɵelementStart(1, "th"
|
|
20191
|
-
i0.ɵɵelementStart(2, "span",
|
|
20192
|
-
i0.ɵɵelement(3, "ccd-field-read",
|
|
19696
|
+
i0.ɵɵelementStart(0, "tr", 34);
|
|
19697
|
+
i0.ɵɵelementStart(1, "th");
|
|
19698
|
+
i0.ɵɵelementStart(2, "span", 32);
|
|
19699
|
+
i0.ɵɵelement(3, "ccd-field-read", 33);
|
|
20193
19700
|
i0.ɵɵelementEnd();
|
|
20194
19701
|
i0.ɵɵelementEnd();
|
|
20195
19702
|
i0.ɵɵelementEnd();
|
|
20196
19703
|
} if (rf & 2) {
|
|
20197
19704
|
const field_r21 = i0.ɵɵnextContext().$implicit;
|
|
20198
19705
|
const ctx_r23 = i0.ɵɵnextContext(4);
|
|
20199
|
-
i0.ɵɵadvance(
|
|
20200
|
-
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
|
|
20201
|
-
i0.ɵɵadvance(2);
|
|
19706
|
+
i0.ɵɵadvance(3);
|
|
20202
19707
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r23.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r23.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r23.markdownUseHrefAsRouterLink);
|
|
20203
19708
|
} }
|
|
20204
19709
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -20206,8 +19711,8 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
|
|
|
20206
19711
|
i0.ɵɵelementStart(1, "div", 27);
|
|
20207
19712
|
i0.ɵɵelementContainerStart(2, 28);
|
|
20208
19713
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
20209
|
-
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template,
|
|
20210
|
-
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4,
|
|
19714
|
+
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 7, 5, "tr", 29);
|
|
19715
|
+
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
|
|
20211
19716
|
i0.ɵɵelementContainerEnd();
|
|
20212
19717
|
i0.ɵɵelementEnd();
|
|
20213
19718
|
i0.ɵɵelementContainerEnd();
|
|
@@ -20250,17 +19755,17 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template(rf, ctx)
|
|
|
20250
19755
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template(rf, ctx) { if (rf & 1) {
|
|
20251
19756
|
i0.ɵɵelement(0, "mat-tab", 24);
|
|
20252
19757
|
} if (rf & 2) {
|
|
20253
|
-
const
|
|
20254
|
-
i0.ɵɵproperty("id",
|
|
19758
|
+
const tab_r27 = ctx.$implicit;
|
|
19759
|
+
i0.ɵɵproperty("id", tab_r27.id)("label", tab_r27.label);
|
|
20255
19760
|
} }
|
|
20256
19761
|
function CaseFullAccessViewComponent_ng_container_11_router_outlet_6_Template(rf, ctx) { if (rf & 1) {
|
|
20257
19762
|
i0.ɵɵelement(0, "router-outlet");
|
|
20258
19763
|
} }
|
|
20259
19764
|
function CaseFullAccessViewComponent_ng_container_11_Template(rf, ctx) { if (rf & 1) {
|
|
20260
|
-
const
|
|
19765
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
20261
19766
|
i0.ɵɵelementContainerStart(0);
|
|
20262
19767
|
i0.ɵɵelementStart(1, "mat-tab-group", 21, 22);
|
|
20263
|
-
i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(
|
|
19768
|
+
i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.tabChanged($event); });
|
|
20264
19769
|
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template, 1, 2, "mat-tab", 23);
|
|
20265
19770
|
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template, 2, 2, "mat-tab", 23);
|
|
20266
19771
|
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template, 1, 2, "mat-tab", 23);
|
|
@@ -20471,16 +19976,6 @@ class CaseFullAccessViewComponent {
|
|
|
20471
19976
|
});
|
|
20472
19977
|
}
|
|
20473
19978
|
}
|
|
20474
|
-
/**
|
|
20475
|
-
* Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
|
|
20476
|
-
* fields.
|
|
20477
|
-
* @param caseField The `CaseField` instance to check
|
|
20478
|
-
* @returns `true` if it should not have a label; `false` otherwise
|
|
20479
|
-
*/
|
|
20480
|
-
isFieldToHaveNoLabel(caseField) {
|
|
20481
|
-
return caseField.field_type.type === 'ComponentLauncher'
|
|
20482
|
-
&& caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
|
|
20483
|
-
}
|
|
20484
19979
|
init() {
|
|
20485
19980
|
// Clone and sort tabs array
|
|
20486
19981
|
this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
|
|
@@ -20535,13 +20030,13 @@ CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
|
|
|
20535
20030
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
20536
20031
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
20537
20032
|
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$
|
|
20033
|
+
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
20034
|
CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
|
|
20540
20035
|
i0.ɵɵviewQuery(_c0$a, 1);
|
|
20541
20036
|
} if (rf & 2) {
|
|
20542
20037
|
let _t;
|
|
20543
20038
|
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"], [
|
|
20039
|
+
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], [1, "case-viewer-label", "text-16"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20545
20040
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
20546
20041
|
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
20547
20042
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 1);
|
|
@@ -20584,7 +20079,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
|
|
|
20584
20079
|
templateUrl: './case-full-access-view.component.html',
|
|
20585
20080
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
20586
20081
|
}]
|
|
20587
|
-
}], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$
|
|
20082
|
+
}], 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
20083
|
type: Input
|
|
20589
20084
|
}], hasEventSelector: [{
|
|
20590
20085
|
type: Input
|
|
@@ -23701,11 +23196,11 @@ function SearchResultComponent_table_0_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
23701
23196
|
i0.ɵɵadvance(2);
|
|
23702
23197
|
i0.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
|
|
23703
23198
|
} }
|
|
23704
|
-
function
|
|
23199
|
+
function SearchResultComponent_table_0_th_10_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
23705
23200
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
23706
23201
|
i0.ɵɵelementStart(0, "div", 27);
|
|
23707
23202
|
i0.ɵɵelementStart(1, "a", 28);
|
|
23708
|
-
i0.ɵɵlistener("click", function
|
|
23203
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
|
|
23709
23204
|
i0.ɵɵelementEnd();
|
|
23710
23205
|
i0.ɵɵelementEnd();
|
|
23711
23206
|
} if (rf & 2) {
|
|
@@ -23719,13 +23214,11 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
23719
23214
|
i0.ɵɵelementStart(0, "th");
|
|
23720
23215
|
i0.ɵɵelementStart(1, "table", 24);
|
|
23721
23216
|
i0.ɵɵelementStart(2, "tr");
|
|
23722
|
-
i0.ɵɵelementStart(3, "
|
|
23723
|
-
i0.ɵɵ
|
|
23724
|
-
i0.ɵɵ
|
|
23725
|
-
i0.ɵɵtext(5);
|
|
23726
|
-
i0.ɵɵelementEnd();
|
|
23727
|
-
i0.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
|
|
23217
|
+
i0.ɵɵelementStart(3, "div", 25);
|
|
23218
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r22); const col_r15 = ctx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
|
|
23219
|
+
i0.ɵɵtext(4);
|
|
23728
23220
|
i0.ɵɵelementEnd();
|
|
23221
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_10_div_5_Template, 2, 1, "div", 26);
|
|
23729
23222
|
i0.ɵɵelementEnd();
|
|
23730
23223
|
i0.ɵɵelementEnd();
|
|
23731
23224
|
i0.ɵɵelementEnd();
|
|
@@ -23733,8 +23226,8 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
23733
23226
|
const col_r15 = ctx.$implicit;
|
|
23734
23227
|
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
23735
23228
|
i0.ɵɵadvance(1);
|
|
23736
|
-
i0.ɵɵ
|
|
23737
|
-
i0.ɵɵadvance(
|
|
23229
|
+
i0.ɵɵattributeInterpolate2("aria-label", "Sort by ", col_r15.label, " ", ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending", "");
|
|
23230
|
+
i0.ɵɵadvance(3);
|
|
23738
23231
|
i0.ɵɵtextInterpolate(col_r15.label);
|
|
23739
23232
|
i0.ɵɵadvance(1);
|
|
23740
23233
|
i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
|
|
@@ -24006,7 +23499,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
24006
23499
|
i0.ɵɵelementStart(7, "thead");
|
|
24007
23500
|
i0.ɵɵelementStart(8, "tr", 7);
|
|
24008
23501
|
i0.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
|
|
24009
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template,
|
|
23502
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 6, 4, "th", 9);
|
|
24010
23503
|
i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
|
|
24011
23504
|
i0.ɵɵelementEnd();
|
|
24012
23505
|
i0.ɵɵelementEnd();
|
|
@@ -24394,7 +23887,7 @@ SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultCompone
|
|
|
24394
23887
|
i0.ɵɵproperty("ngIf", ctx.hasResults());
|
|
24395
23888
|
i0.ɵɵadvance(1);
|
|
24396
23889
|
i0.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
24397
|
-
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1.DecimalPipe, i1$
|
|
23890
|
+
} }, 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
23891
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
24399
23892
|
type: Component,
|
|
24400
23893
|
args: [{
|
|
@@ -24733,5 +24226,5 @@ class TestRouteSnapshotBuilder {
|
|
|
24733
24226
|
* Generated bundle index. Do not edit.
|
|
24734
24227
|
*/
|
|
24735
24228
|
|
|
24736
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService,
|
|
24229
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, MULTIPLE_TASKS_FOUND, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, TestRouteSnapshotBuilder, UnsupportedFieldComponent, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
24737
24230
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|