@hmcts/ccd-case-ui-toolkit 5.0.24-case-file-view-post-ccd-toolkit-angular11-upgrade → 5.0.24-case-file-view-folder-document-icons-v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +492 -175
- 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/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +2 -2
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +24 -9
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +292 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +2 -0
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +2 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +17 -9
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +2 -0
- package/esm2015/lib/shared/domain/case-file-view/index.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +453 -148
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +12 -3
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +25 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts +2 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts +1 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +23 -21
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +7 -0
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/index.d.ts +1 -0
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('ngx-md'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('rxjs/Subject'), require('util'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@edium/fsm'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'ngx-md', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'rxjs/Subject', 'util', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@edium/fsm', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global["ngx-md"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.rxjs.Subject, global.util, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global["@edium/fsm"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, i1$4, i1$5, i2, i4, momentAdapter, i5, i6, Subject, util, i5$1, i6$1, i3, fsm, i6$2, input, i1$
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('rxjs/Subject'), require('util'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@edium/fsm'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'ngx-md', '@angular/cdk/tree', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'rxjs/Subject', 'util', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@edium/fsm', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global["ngx-md"], global.ng.cdk.tree, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.rxjs.Subject, global.util, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global["@edium/fsm"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, i1$4, i1$5, i1$6, i2, i4, momentAdapter, i5, i6, Subject, util, i5$1, i6$1, i3, fsm, i6$2, input, i1$7, i10) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
35
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
36
36
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
37
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
37
38
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
38
39
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
39
40
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
43
44
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
44
45
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
45
|
-
var i1__namespace$
|
|
46
|
+
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
46
47
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
47
48
|
|
|
48
49
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
@@ -7784,10 +7785,357 @@
|
|
|
7784
7785
|
}] });
|
|
7785
7786
|
})();
|
|
7786
7787
|
|
|
7788
|
+
var CaseFileViewService = /** @class */ (function () {
|
|
7789
|
+
function CaseFileViewService(http, appConfig, errorService) {
|
|
7790
|
+
this.http = http;
|
|
7791
|
+
this.appConfig = appConfig;
|
|
7792
|
+
this.errorService = errorService;
|
|
7793
|
+
}
|
|
7794
|
+
/**
|
|
7795
|
+
* Retrieves the categories and documents for a case.
|
|
7796
|
+
*
|
|
7797
|
+
* @param caseRef 16-digit Case Reference number of the case
|
|
7798
|
+
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
7799
|
+
*/
|
|
7800
|
+
CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
|
|
7801
|
+
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
7802
|
+
if (url) {
|
|
7803
|
+
url += "/" + caseRef;
|
|
7804
|
+
return this.http.get(url, { observe: 'body' });
|
|
7805
|
+
}
|
|
7806
|
+
return rxjs.of(null);
|
|
7807
|
+
};
|
|
7808
|
+
CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
|
|
7809
|
+
var url = this.appConfig.getDocumentDataUrl();
|
|
7810
|
+
if (url) {
|
|
7811
|
+
url += "/" + caseRef;
|
|
7812
|
+
var body = {
|
|
7813
|
+
case_version: caseVersion,
|
|
7814
|
+
attribute_path: attributePath,
|
|
7815
|
+
category_id: categoryId
|
|
7816
|
+
};
|
|
7817
|
+
return this.http.put(url, body, { observe: 'body' });
|
|
7818
|
+
}
|
|
7819
|
+
return rxjs.of(null);
|
|
7820
|
+
};
|
|
7821
|
+
return CaseFileViewService;
|
|
7822
|
+
}());
|
|
7823
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
|
|
7824
|
+
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
7825
|
+
(function () {
|
|
7826
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
7827
|
+
type: i0.Injectable
|
|
7828
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
|
|
7829
|
+
})();
|
|
7830
|
+
|
|
7831
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) {
|
|
7832
|
+
if (rf & 1) {
|
|
7833
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
|
|
7834
|
+
i0__namespace.ɵɵelementStart(1, "div", 8);
|
|
7835
|
+
i0__namespace.ɵɵelement(2, "button", 9);
|
|
7836
|
+
i0__namespace.ɵɵelementStart(3, "span", 10);
|
|
7837
|
+
i0__namespace.ɵɵtext(4);
|
|
7838
|
+
i0__namespace.ɵɵelementEnd();
|
|
7839
|
+
i0__namespace.ɵɵelementEnd();
|
|
7840
|
+
i0__namespace.ɵɵelementEnd();
|
|
7841
|
+
}
|
|
7842
|
+
if (rf & 2) {
|
|
7843
|
+
var node_r2 = ctx.$implicit;
|
|
7844
|
+
i0__namespace.ɵɵadvance(4);
|
|
7845
|
+
i0__namespace.ɵɵtextInterpolate(node_r2.name);
|
|
7846
|
+
}
|
|
7847
|
+
}
|
|
7848
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) {
|
|
7849
|
+
if (rf & 1) {
|
|
7850
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
|
|
7851
|
+
i0__namespace.ɵɵelementStart(1, "div", 8);
|
|
7852
|
+
i0__namespace.ɵɵelementStart(2, "button", 11);
|
|
7853
|
+
i0__namespace.ɵɵelementStart(3, "span", 12);
|
|
7854
|
+
i0__namespace.ɵɵtext(4);
|
|
7855
|
+
i0__namespace.ɵɵelementEnd();
|
|
7856
|
+
i0__namespace.ɵɵelementEnd();
|
|
7857
|
+
i0__namespace.ɵɵelementStart(5, "span", 13);
|
|
7858
|
+
i0__namespace.ɵɵtext(6);
|
|
7859
|
+
i0__namespace.ɵɵelementEnd();
|
|
7860
|
+
i0__namespace.ɵɵelementEnd();
|
|
7861
|
+
i0__namespace.ɵɵelementStart(7, "div");
|
|
7862
|
+
i0__namespace.ɵɵelementContainer(8, 14);
|
|
7863
|
+
i0__namespace.ɵɵelementEnd();
|
|
7864
|
+
i0__namespace.ɵɵelementEnd();
|
|
7865
|
+
}
|
|
7866
|
+
if (rf & 2) {
|
|
7867
|
+
var node_r3 = ctx.$implicit;
|
|
7868
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
7869
|
+
i0__namespace.ɵɵadvance(2);
|
|
7870
|
+
i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r3.name);
|
|
7871
|
+
i0__namespace.ɵɵadvance(2);
|
|
7872
|
+
i0__namespace.ɵɵtextInterpolate(node_r3.count);
|
|
7873
|
+
i0__namespace.ɵɵadvance(2);
|
|
7874
|
+
i0__namespace.ɵɵtextInterpolate(node_r3.name);
|
|
7875
|
+
i0__namespace.ɵɵadvance(1);
|
|
7876
|
+
i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
|
|
7877
|
+
}
|
|
7878
|
+
}
|
|
7879
|
+
var CaseFileViewFolderComponent = /** @class */ (function () {
|
|
7880
|
+
function CaseFileViewFolderComponent() {
|
|
7881
|
+
this.categories = [];
|
|
7882
|
+
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
7883
|
+
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
7884
|
+
this.nestedTreeControl = new i1$5.NestedTreeControl(this.getChildren);
|
|
7885
|
+
}
|
|
7886
|
+
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
7887
|
+
var _this = this;
|
|
7888
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
|
|
7889
|
+
// Using the mock data for now as we have to display the documents as well for demo purpose
|
|
7890
|
+
var categories = _this.loadCategories(); // categoriesAndDocuments.categories;
|
|
7891
|
+
// Generate document tree data from categories
|
|
7892
|
+
var treeData = _this.generateTreeData(categories);
|
|
7893
|
+
// Append uncategorised documents
|
|
7894
|
+
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
7895
|
+
var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
7896
|
+
treeData.push(uncategorisedDocuments);
|
|
7897
|
+
}
|
|
7898
|
+
// Initialise cdk tree with generated data
|
|
7899
|
+
_this.nestedDataSource = treeData;
|
|
7900
|
+
});
|
|
7901
|
+
};
|
|
7902
|
+
CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
|
|
7903
|
+
var _this = this;
|
|
7904
|
+
return categories.reduce(function (tree, node) { return __spread(tree, [
|
|
7905
|
+
{
|
|
7906
|
+
name: node.category_name,
|
|
7907
|
+
children: __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents))
|
|
7908
|
+
},
|
|
7909
|
+
]); }, []);
|
|
7910
|
+
};
|
|
7911
|
+
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
7912
|
+
var documentsToReturn = [];
|
|
7913
|
+
documents.forEach(function (document) {
|
|
7914
|
+
documentsToReturn.push({ name: document.document_filename });
|
|
7915
|
+
});
|
|
7916
|
+
return documentsToReturn;
|
|
7917
|
+
};
|
|
7918
|
+
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
7919
|
+
var documents = [];
|
|
7920
|
+
uncategorisedDocuments.forEach(function (document) {
|
|
7921
|
+
documents.push({ name: document.document_filename });
|
|
7922
|
+
});
|
|
7923
|
+
return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, children: documents };
|
|
7924
|
+
};
|
|
7925
|
+
CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
|
|
7926
|
+
if (this.categoriesAndDocumentsSubscription) {
|
|
7927
|
+
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
7928
|
+
}
|
|
7929
|
+
};
|
|
7930
|
+
CaseFileViewFolderComponent.prototype.loadCategories = function () {
|
|
7931
|
+
return [
|
|
7932
|
+
{
|
|
7933
|
+
category_id: 'Beers',
|
|
7934
|
+
category_name: 'Beers',
|
|
7935
|
+
category_order: 1,
|
|
7936
|
+
documents: [
|
|
7937
|
+
{
|
|
7938
|
+
document_url: '/test',
|
|
7939
|
+
document_filename: 'Beers encyclopedia',
|
|
7940
|
+
document_binary_url: '/test/binary',
|
|
7941
|
+
attribute_path: '',
|
|
7942
|
+
upload_timestamp: ''
|
|
7943
|
+
}
|
|
7944
|
+
],
|
|
7945
|
+
sub_categories: [
|
|
7946
|
+
{
|
|
7947
|
+
category_id: 'BeersBitters',
|
|
7948
|
+
category_name: 'Bitters',
|
|
7949
|
+
category_order: 1,
|
|
7950
|
+
documents: [],
|
|
7951
|
+
sub_categories: []
|
|
7952
|
+
},
|
|
7953
|
+
{
|
|
7954
|
+
category_id: 'BeersAmerican',
|
|
7955
|
+
category_name: 'American',
|
|
7956
|
+
category_order: 2,
|
|
7957
|
+
documents: [],
|
|
7958
|
+
sub_categories: []
|
|
7959
|
+
},
|
|
7960
|
+
{
|
|
7961
|
+
category_id: 'BeersAsian',
|
|
7962
|
+
category_name: 'Asian',
|
|
7963
|
+
category_order: 3,
|
|
7964
|
+
documents: [],
|
|
7965
|
+
sub_categories: []
|
|
7966
|
+
}
|
|
7967
|
+
]
|
|
7968
|
+
},
|
|
7969
|
+
{
|
|
7970
|
+
category_id: 'Wines',
|
|
7971
|
+
category_name: 'Wines',
|
|
7972
|
+
category_order: 2,
|
|
7973
|
+
documents: [],
|
|
7974
|
+
sub_categories: [
|
|
7975
|
+
{
|
|
7976
|
+
category_id: 'WinesFrench',
|
|
7977
|
+
category_name: 'French',
|
|
7978
|
+
category_order: 1,
|
|
7979
|
+
documents: [],
|
|
7980
|
+
sub_categories: []
|
|
7981
|
+
},
|
|
7982
|
+
{
|
|
7983
|
+
category_id: 'WinesItalian',
|
|
7984
|
+
category_name: 'Italian',
|
|
7985
|
+
category_order: 2,
|
|
7986
|
+
documents: [],
|
|
7987
|
+
sub_categories: []
|
|
7988
|
+
}
|
|
7989
|
+
]
|
|
7990
|
+
},
|
|
7991
|
+
{
|
|
7992
|
+
category_id: 'Spirits',
|
|
7993
|
+
category_name: 'Spirits',
|
|
7994
|
+
category_order: 3,
|
|
7995
|
+
documents: [],
|
|
7996
|
+
sub_categories: [
|
|
7997
|
+
{
|
|
7998
|
+
category_id: 'SpiritsWhisky',
|
|
7999
|
+
category_name: 'Scotch whisky',
|
|
8000
|
+
category_order: 1,
|
|
8001
|
+
documents: [],
|
|
8002
|
+
sub_categories: [
|
|
8003
|
+
{
|
|
8004
|
+
category_id: 'WhiskyHighland',
|
|
8005
|
+
category_name: 'Highland',
|
|
8006
|
+
category_order: 1,
|
|
8007
|
+
documents: [],
|
|
8008
|
+
sub_categories: [
|
|
8009
|
+
{
|
|
8010
|
+
category_id: 'WhiskyHighland1',
|
|
8011
|
+
category_name: 'Highland 1',
|
|
8012
|
+
category_order: 1,
|
|
8013
|
+
documents: [],
|
|
8014
|
+
sub_categories: []
|
|
8015
|
+
}
|
|
8016
|
+
]
|
|
8017
|
+
},
|
|
8018
|
+
{
|
|
8019
|
+
category_id: 'WhiskyLowland',
|
|
8020
|
+
category_name: 'Lowland',
|
|
8021
|
+
category_order: 2,
|
|
8022
|
+
documents: [],
|
|
8023
|
+
sub_categories: [
|
|
8024
|
+
{
|
|
8025
|
+
category_id: 'WhiskyLowland1',
|
|
8026
|
+
category_name: 'Lowland 1',
|
|
8027
|
+
category_order: 1,
|
|
8028
|
+
documents: [
|
|
8029
|
+
{
|
|
8030
|
+
document_url: '/test',
|
|
8031
|
+
document_filename: 'Details about Whisky Lowland 1',
|
|
8032
|
+
document_binary_url: '/test/binary',
|
|
8033
|
+
attribute_path: '',
|
|
8034
|
+
upload_timestamp: ''
|
|
8035
|
+
}
|
|
8036
|
+
],
|
|
8037
|
+
sub_categories: []
|
|
8038
|
+
},
|
|
8039
|
+
{
|
|
8040
|
+
category_id: 'WhiskyLowland2',
|
|
8041
|
+
category_name: 'Lowland 2',
|
|
8042
|
+
category_order: 2,
|
|
8043
|
+
documents: [],
|
|
8044
|
+
sub_categories: []
|
|
8045
|
+
}
|
|
8046
|
+
]
|
|
8047
|
+
},
|
|
8048
|
+
{
|
|
8049
|
+
category_id: 'WhiskyIslay',
|
|
8050
|
+
category_name: 'Islay',
|
|
8051
|
+
category_order: 3,
|
|
8052
|
+
documents: [
|
|
8053
|
+
{
|
|
8054
|
+
document_url: '/test',
|
|
8055
|
+
document_filename: 'Details about Whisky Islay',
|
|
8056
|
+
document_binary_url: '/test/binary',
|
|
8057
|
+
attribute_path: '',
|
|
8058
|
+
upload_timestamp: ''
|
|
8059
|
+
},
|
|
8060
|
+
{
|
|
8061
|
+
document_url: '/test',
|
|
8062
|
+
document_filename: 'More information about Whisky Islay',
|
|
8063
|
+
document_binary_url: '/test/binary',
|
|
8064
|
+
attribute_path: '',
|
|
8065
|
+
upload_timestamp: ''
|
|
8066
|
+
}
|
|
8067
|
+
],
|
|
8068
|
+
sub_categories: []
|
|
8069
|
+
},
|
|
8070
|
+
{
|
|
8071
|
+
category_id: 'WhiskySpeyside',
|
|
8072
|
+
category_name: 'Speyside',
|
|
8073
|
+
category_order: 4,
|
|
8074
|
+
documents: [],
|
|
8075
|
+
sub_categories: []
|
|
8076
|
+
},
|
|
8077
|
+
{
|
|
8078
|
+
category_id: 'WhiskyCampbeltown',
|
|
8079
|
+
category_name: 'Campbeltown',
|
|
8080
|
+
category_order: 5,
|
|
8081
|
+
documents: [],
|
|
8082
|
+
sub_categories: []
|
|
8083
|
+
}
|
|
8084
|
+
]
|
|
8085
|
+
}
|
|
8086
|
+
]
|
|
8087
|
+
}
|
|
8088
|
+
];
|
|
8089
|
+
};
|
|
8090
|
+
return CaseFileViewFolderComponent;
|
|
8091
|
+
}());
|
|
8092
|
+
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
8093
|
+
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
|
|
8094
|
+
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 8, vars: 3, consts: [[1, "document-filter-container"], [1, "document-filter"], [1, "documents-title"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "icon", "icon-document"], [1, "node-name", "node-name-document"], ["mat-icon-button", "", "cdkTreeNodeToggle", "", 1, "icon", "icon-folder"], [1, "document-count"], [1, "node-name", "node-name-folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
8095
|
+
if (rf & 1) {
|
|
8096
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
8097
|
+
i0__namespace.ɵɵelement(1, "div", 1);
|
|
8098
|
+
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
8099
|
+
i0__namespace.ɵɵtext(3, "Documents");
|
|
8100
|
+
i0__namespace.ɵɵelementEnd();
|
|
8101
|
+
i0__namespace.ɵɵelementEnd();
|
|
8102
|
+
i0__namespace.ɵɵelementStart(4, "div", 3);
|
|
8103
|
+
i0__namespace.ɵɵelementStart(5, "cdk-tree", 4);
|
|
8104
|
+
i0__namespace.ɵɵtemplate(6, CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template, 5, 1, "cdk-nested-tree-node", 5);
|
|
8105
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 9, 5, "cdk-nested-tree-node", 6);
|
|
8106
|
+
i0__namespace.ɵɵelementEnd();
|
|
8107
|
+
i0__namespace.ɵɵelementEnd();
|
|
8108
|
+
}
|
|
8109
|
+
if (rf & 2) {
|
|
8110
|
+
i0__namespace.ɵɵadvance(5);
|
|
8111
|
+
i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
8112
|
+
i0__namespace.ɵɵadvance(2);
|
|
8113
|
+
i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
|
|
8114
|
+
}
|
|
8115
|
+
}, directives: [i1__namespace$5.CdkTree, i1__namespace$5.CdkTreeNodeDef, i1__namespace$5.CdkNestedTreeNode, i1__namespace$5.CdkTreeNodeToggle, i1__namespace$5.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{height:60px;border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .node[_ngcontent-%COMP%]{display:flex;padding:4px}.document-tree-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;background-size:100%;border:0;background-color:#fff}.document-tree-container[_ngcontent-%COMP%] .icon-folder[_ngcontent-%COMP%]{background-image:url(/assets/images/folder.png)}.document-tree-container[_ngcontent-%COMP%] .icon-document[_ngcontent-%COMP%]{background-image:url(/assets/images/document.png)}.document-tree-container[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{margin-left:6px}.document-tree-container[_ngcontent-%COMP%] .node-name-document[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .node-name-folder[_ngcontent-%COMP%]{margin-top:4px}.document-tree-container[_ngcontent-%COMP%] .document-count[_ngcontent-%COMP%]{color:#fff}"] });
|
|
8116
|
+
(function () {
|
|
8117
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
8118
|
+
type: i0.Component,
|
|
8119
|
+
args: [{
|
|
8120
|
+
selector: 'ccd-case-file-view-folder',
|
|
8121
|
+
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
8122
|
+
templateUrl: './case-file-view-folder.component.html'
|
|
8123
|
+
}]
|
|
8124
|
+
}], function () { return []; }, { categoriesAndDocuments: [{
|
|
8125
|
+
type: i0.Input
|
|
8126
|
+
}] });
|
|
8127
|
+
})();
|
|
8128
|
+
|
|
7787
8129
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
7788
|
-
function CaseFileViewFieldComponent(elementRef) {
|
|
8130
|
+
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
|
|
7789
8131
|
this.elementRef = elementRef;
|
|
8132
|
+
this.route = route;
|
|
8133
|
+
this.caseFileViewService = caseFileViewService;
|
|
7790
8134
|
}
|
|
8135
|
+
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
8136
|
+
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
8137
|
+
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
8138
|
+
};
|
|
7791
8139
|
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
7792
8140
|
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
7793
8141
|
var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
@@ -7812,23 +8160,28 @@
|
|
|
7812
8160
|
};
|
|
7813
8161
|
return CaseFileViewFieldComponent;
|
|
7814
8162
|
}());
|
|
7815
|
-
CaseFileViewFieldComponent
|
|
7816
|
-
CaseFileViewFieldComponent.ɵ
|
|
8163
|
+
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
8164
|
+
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService)); };
|
|
8165
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 1, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
7817
8166
|
if (rf & 1) {
|
|
7818
8167
|
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
7819
8168
|
i0__namespace.ɵɵtext(1, "Case file");
|
|
7820
8169
|
i0__namespace.ɵɵelementEnd();
|
|
7821
8170
|
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
7822
8171
|
i0__namespace.ɵɵelementStart(3, "div", 2);
|
|
7823
|
-
i0__namespace.ɵɵ
|
|
8172
|
+
i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
7824
8173
|
i0__namespace.ɵɵelementEnd();
|
|
7825
|
-
i0__namespace.ɵɵelement(5, "div",
|
|
7826
|
-
i0__namespace.ɵɵelementStart(6, "div",
|
|
8174
|
+
i0__namespace.ɵɵelement(5, "div", 4);
|
|
8175
|
+
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
7827
8176
|
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
7828
8177
|
i0__namespace.ɵɵelementEnd();
|
|
7829
8178
|
i0__namespace.ɵɵelementEnd();
|
|
7830
8179
|
}
|
|
7831
|
-
|
|
8180
|
+
if (rf & 2) {
|
|
8181
|
+
i0__namespace.ɵɵadvance(4);
|
|
8182
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
8183
|
+
}
|
|
8184
|
+
}, 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%}"] });
|
|
7832
8185
|
(function () {
|
|
7833
8186
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
7834
8187
|
type: i0.Component,
|
|
@@ -7837,7 +8190,7 @@
|
|
|
7837
8190
|
templateUrl: './case-file-view-field.component.html',
|
|
7838
8191
|
styleUrls: ['./case-file-view-field.component.scss']
|
|
7839
8192
|
}]
|
|
7840
|
-
}], function () { return [{ type: i0__namespace.ElementRef }]; }, null);
|
|
8193
|
+
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null);
|
|
7841
8194
|
})();
|
|
7842
8195
|
|
|
7843
8196
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
@@ -8202,7 +8555,7 @@
|
|
|
8202
8555
|
};
|
|
8203
8556
|
return RemoveDialogComponent;
|
|
8204
8557
|
}());
|
|
8205
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
8558
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
8206
8559
|
RemoveDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) {
|
|
8207
8560
|
if (rf & 1) {
|
|
8208
8561
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -8243,7 +8596,7 @@
|
|
|
8243
8596
|
templateUrl: './remove-dialog.component.html',
|
|
8244
8597
|
styleUrls: ['../action-dialog.component.scss']
|
|
8245
8598
|
}]
|
|
8246
|
-
}], function () { return [{ type: i1__namespace$
|
|
8599
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
8247
8600
|
})();
|
|
8248
8601
|
|
|
8249
8602
|
var Jurisdiction = /** @class */ (function () {
|
|
@@ -8675,7 +9028,7 @@
|
|
|
8675
9028
|
};
|
|
8676
9029
|
WriteCollectionFieldComponent.prototype.openModal = function (i) {
|
|
8677
9030
|
var _this = this;
|
|
8678
|
-
var dialogConfig = new i1$
|
|
9031
|
+
var dialogConfig = new i1$6.MatDialogConfig();
|
|
8679
9032
|
dialogConfig.disableClose = true;
|
|
8680
9033
|
dialogConfig.autoFocus = true;
|
|
8681
9034
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -8709,7 +9062,7 @@
|
|
|
8709
9062
|
};
|
|
8710
9063
|
return WriteCollectionFieldComponent;
|
|
8711
9064
|
}(AbstractFieldWriteComponent));
|
|
8712
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
9065
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
8713
9066
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
8714
9067
|
if (rf & 1) {
|
|
8715
9068
|
i0__namespace.ɵɵviewQuery(_c0$D, 1);
|
|
@@ -8758,7 +9111,7 @@
|
|
|
8758
9111
|
templateUrl: './write-collection-field.html',
|
|
8759
9112
|
styleUrls: ['./collection-field.scss']
|
|
8760
9113
|
}]
|
|
8761
|
-
}], function () { return [{ type: i1__namespace$
|
|
9114
|
+
}], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
8762
9115
|
type: i0.Input
|
|
8763
9116
|
}], formGroup: [{
|
|
8764
9117
|
type: i0.Input
|
|
@@ -10376,7 +10729,7 @@
|
|
|
10376
10729
|
};
|
|
10377
10730
|
return DocumentDialogComponent;
|
|
10378
10731
|
}());
|
|
10379
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
10732
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
10380
10733
|
DocumentDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) {
|
|
10381
10734
|
if (rf & 1) {
|
|
10382
10735
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -10417,11 +10770,11 @@
|
|
|
10417
10770
|
templateUrl: './document-dialog.component.html',
|
|
10418
10771
|
styleUrls: ['../action-dialog.component.scss']
|
|
10419
10772
|
}]
|
|
10420
|
-
}], function () { return [{ type: i1__namespace$
|
|
10773
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
10421
10774
|
})();
|
|
10422
10775
|
|
|
10423
10776
|
function initDialog() {
|
|
10424
|
-
var dialogConfig = new i1$
|
|
10777
|
+
var dialogConfig = new i1$6.MatDialogConfig();
|
|
10425
10778
|
dialogConfig.disableClose = true;
|
|
10426
10779
|
dialogConfig.autoFocus = true;
|
|
10427
10780
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -10988,7 +11341,7 @@
|
|
|
10988
11341
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
10989
11342
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
10990
11343
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
10991
|
-
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
11344
|
+
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
10992
11345
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
10993
11346
|
if (rf & 1) {
|
|
10994
11347
|
i0__namespace.ɵɵviewQuery(_c0$z, 1);
|
|
@@ -11062,7 +11415,7 @@
|
|
|
11062
11415
|
selector: 'ccd-write-document-field',
|
|
11063
11416
|
templateUrl: './write-document-field.html'
|
|
11064
11417
|
}]
|
|
11065
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
11418
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$6.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
11066
11419
|
type: i0.ViewChild,
|
|
11067
11420
|
args: ['fileInput', { static: false }]
|
|
11068
11421
|
}], clickout: [{
|
|
@@ -12707,49 +13060,6 @@
|
|
|
12707
13060
|
return PaymentField;
|
|
12708
13061
|
}(AbstractFieldReadComponent));
|
|
12709
13062
|
|
|
12710
|
-
var CaseFileViewService = /** @class */ (function () {
|
|
12711
|
-
function CaseFileViewService(http, appConfig, errorService) {
|
|
12712
|
-
this.http = http;
|
|
12713
|
-
this.appConfig = appConfig;
|
|
12714
|
-
this.errorService = errorService;
|
|
12715
|
-
}
|
|
12716
|
-
/**
|
|
12717
|
-
* Retrieves the categories and documents for a case.
|
|
12718
|
-
*
|
|
12719
|
-
* @param caseRef 16-digit Case Reference number of the case
|
|
12720
|
-
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
12721
|
-
*/
|
|
12722
|
-
CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
|
|
12723
|
-
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
12724
|
-
if (url) {
|
|
12725
|
-
url += "/" + caseRef;
|
|
12726
|
-
return this.http.get(url, { observe: 'body' });
|
|
12727
|
-
}
|
|
12728
|
-
return rxjs.of(null);
|
|
12729
|
-
};
|
|
12730
|
-
CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
|
|
12731
|
-
var url = this.appConfig.getDocumentDataUrl();
|
|
12732
|
-
if (url) {
|
|
12733
|
-
url += "/" + caseRef;
|
|
12734
|
-
var body = {
|
|
12735
|
-
case_version: caseVersion,
|
|
12736
|
-
attribute_path: attributePath,
|
|
12737
|
-
category_id: categoryId
|
|
12738
|
-
};
|
|
12739
|
-
return this.http.put(url, body, { observe: 'body' });
|
|
12740
|
-
}
|
|
12741
|
-
return rxjs.of(null);
|
|
12742
|
-
};
|
|
12743
|
-
return CaseFileViewService;
|
|
12744
|
-
}());
|
|
12745
|
-
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
|
|
12746
|
-
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
12747
|
-
(function () {
|
|
12748
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
12749
|
-
type: i0.Injectable
|
|
12750
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
|
|
12751
|
-
})();
|
|
12752
|
-
|
|
12753
13063
|
var ErrorNotifierService = /** @class */ (function () {
|
|
12754
13064
|
function ErrorNotifierService() {
|
|
12755
13065
|
this.errorSource = new rxjs.Subject();
|
|
@@ -16184,7 +16494,7 @@
|
|
|
16184
16494
|
};
|
|
16185
16495
|
return SaveOrDiscardDialogComponent;
|
|
16186
16496
|
}());
|
|
16187
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
16497
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
16188
16498
|
SaveOrDiscardDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) {
|
|
16189
16499
|
if (rf & 1) {
|
|
16190
16500
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -16225,7 +16535,7 @@
|
|
|
16225
16535
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
16226
16536
|
styleUrls: ['../action-dialog.component.scss']
|
|
16227
16537
|
}]
|
|
16228
|
-
}], function () { return [{ type: i1__namespace$
|
|
16538
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
16229
16539
|
})();
|
|
16230
16540
|
|
|
16231
16541
|
var CaseEditPageText;
|
|
@@ -17145,7 +17455,7 @@
|
|
|
17145
17455
|
};
|
|
17146
17456
|
return CaseEditPageComponent;
|
|
17147
17457
|
}());
|
|
17148
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
17458
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
|
|
17149
17459
|
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) {
|
|
17150
17460
|
if (rf & 1) {
|
|
17151
17461
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
@@ -17191,7 +17501,7 @@
|
|
|
17191
17501
|
templateUrl: 'case-edit-page.html',
|
|
17192
17502
|
styleUrls: ['./case-edit-page.scss']
|
|
17193
17503
|
}]
|
|
17194
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$
|
|
17504
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$6.MatDialog }, { type: CaseFieldService }]; }, null);
|
|
17195
17505
|
})();
|
|
17196
17506
|
|
|
17197
17507
|
var Confirmation = /** @class */ (function () {
|
|
@@ -18650,89 +18960,6 @@
|
|
|
18650
18960
|
}], null, null);
|
|
18651
18961
|
})();
|
|
18652
18962
|
|
|
18653
|
-
var IsReadOnlyPipe = /** @class */ (function () {
|
|
18654
|
-
function IsReadOnlyPipe(caseFieldService) {
|
|
18655
|
-
this.caseFieldService = caseFieldService;
|
|
18656
|
-
}
|
|
18657
|
-
IsReadOnlyPipe.prototype.transform = function (field) {
|
|
18658
|
-
return this.caseFieldService.isReadOnly(field);
|
|
18659
|
-
};
|
|
18660
|
-
return IsReadOnlyPipe;
|
|
18661
|
-
}());
|
|
18662
|
-
IsReadOnlyPipe.ɵfac = function IsReadOnlyPipe_Factory(t) { return new (t || IsReadOnlyPipe)(i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
|
|
18663
|
-
IsReadOnlyPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdIsReadOnly", type: IsReadOnlyPipe, pure: true });
|
|
18664
|
-
(function () {
|
|
18665
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IsReadOnlyPipe, [{
|
|
18666
|
-
type: i0.Pipe,
|
|
18667
|
-
args: [{
|
|
18668
|
-
name: 'ccdIsReadOnly'
|
|
18669
|
-
}]
|
|
18670
|
-
}], function () { return [{ type: CaseFieldService }]; }, null);
|
|
18671
|
-
})();
|
|
18672
|
-
|
|
18673
|
-
var PaletteUtilsModule = /** @class */ (function () {
|
|
18674
|
-
function PaletteUtilsModule() {
|
|
18675
|
-
}
|
|
18676
|
-
return PaletteUtilsModule;
|
|
18677
|
-
}());
|
|
18678
|
-
PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
|
|
18679
|
-
PaletteUtilsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaletteUtilsModule });
|
|
18680
|
-
PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
|
|
18681
|
-
IsCompoundPipe
|
|
18682
|
-
], imports: [[
|
|
18683
|
-
i1.CommonModule
|
|
18684
|
-
]] });
|
|
18685
|
-
(function () {
|
|
18686
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
|
|
18687
|
-
FieldLabelPipe,
|
|
18688
|
-
FirstErrorPipe,
|
|
18689
|
-
IsCompoundPipe,
|
|
18690
|
-
IsMandatoryPipe,
|
|
18691
|
-
IsReadOnlyPipe,
|
|
18692
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
18693
|
-
DashPipe], imports: [i1.CommonModule], exports: [DatePipe,
|
|
18694
|
-
FieldLabelPipe,
|
|
18695
|
-
FirstErrorPipe,
|
|
18696
|
-
IsCompoundPipe,
|
|
18697
|
-
IsMandatoryPipe,
|
|
18698
|
-
IsReadOnlyPipe,
|
|
18699
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
18700
|
-
DashPipe] });
|
|
18701
|
-
})();
|
|
18702
|
-
(function () {
|
|
18703
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteUtilsModule, [{
|
|
18704
|
-
type: i0.NgModule,
|
|
18705
|
-
args: [{
|
|
18706
|
-
imports: [
|
|
18707
|
-
i1.CommonModule
|
|
18708
|
-
],
|
|
18709
|
-
declarations: [
|
|
18710
|
-
DatePipe,
|
|
18711
|
-
FieldLabelPipe,
|
|
18712
|
-
FirstErrorPipe,
|
|
18713
|
-
IsCompoundPipe,
|
|
18714
|
-
IsMandatoryPipe,
|
|
18715
|
-
IsReadOnlyPipe,
|
|
18716
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
18717
|
-
DashPipe
|
|
18718
|
-
],
|
|
18719
|
-
exports: [
|
|
18720
|
-
DatePipe,
|
|
18721
|
-
FieldLabelPipe,
|
|
18722
|
-
FirstErrorPipe,
|
|
18723
|
-
IsCompoundPipe,
|
|
18724
|
-
IsMandatoryPipe,
|
|
18725
|
-
IsReadOnlyPipe,
|
|
18726
|
-
IsReadOnlyAndNotCollectionPipe,
|
|
18727
|
-
DashPipe
|
|
18728
|
-
],
|
|
18729
|
-
providers: [
|
|
18730
|
-
IsCompoundPipe
|
|
18731
|
-
]
|
|
18732
|
-
}]
|
|
18733
|
-
}], null, null);
|
|
18734
|
-
})();
|
|
18735
|
-
|
|
18736
18963
|
var CcdCollectionTableCaseFieldsFilterPipe = /** @class */ (function () {
|
|
18737
18964
|
function CcdCollectionTableCaseFieldsFilterPipe() {
|
|
18738
18965
|
}
|
|
@@ -19211,6 +19438,89 @@
|
|
|
19211
19438
|
return OrderSummary;
|
|
19212
19439
|
}());
|
|
19213
19440
|
|
|
19441
|
+
var IsReadOnlyPipe = /** @class */ (function () {
|
|
19442
|
+
function IsReadOnlyPipe(caseFieldService) {
|
|
19443
|
+
this.caseFieldService = caseFieldService;
|
|
19444
|
+
}
|
|
19445
|
+
IsReadOnlyPipe.prototype.transform = function (field) {
|
|
19446
|
+
return this.caseFieldService.isReadOnly(field);
|
|
19447
|
+
};
|
|
19448
|
+
return IsReadOnlyPipe;
|
|
19449
|
+
}());
|
|
19450
|
+
IsReadOnlyPipe.ɵfac = function IsReadOnlyPipe_Factory(t) { return new (t || IsReadOnlyPipe)(i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
|
|
19451
|
+
IsReadOnlyPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdIsReadOnly", type: IsReadOnlyPipe, pure: true });
|
|
19452
|
+
(function () {
|
|
19453
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IsReadOnlyPipe, [{
|
|
19454
|
+
type: i0.Pipe,
|
|
19455
|
+
args: [{
|
|
19456
|
+
name: 'ccdIsReadOnly'
|
|
19457
|
+
}]
|
|
19458
|
+
}], function () { return [{ type: CaseFieldService }]; }, null);
|
|
19459
|
+
})();
|
|
19460
|
+
|
|
19461
|
+
var PaletteUtilsModule = /** @class */ (function () {
|
|
19462
|
+
function PaletteUtilsModule() {
|
|
19463
|
+
}
|
|
19464
|
+
return PaletteUtilsModule;
|
|
19465
|
+
}());
|
|
19466
|
+
PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
|
|
19467
|
+
PaletteUtilsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaletteUtilsModule });
|
|
19468
|
+
PaletteUtilsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
|
|
19469
|
+
IsCompoundPipe
|
|
19470
|
+
], imports: [[
|
|
19471
|
+
i1.CommonModule
|
|
19472
|
+
]] });
|
|
19473
|
+
(function () {
|
|
19474
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
|
|
19475
|
+
FieldLabelPipe,
|
|
19476
|
+
FirstErrorPipe,
|
|
19477
|
+
IsCompoundPipe,
|
|
19478
|
+
IsMandatoryPipe,
|
|
19479
|
+
IsReadOnlyPipe,
|
|
19480
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
19481
|
+
DashPipe], imports: [i1.CommonModule], exports: [DatePipe,
|
|
19482
|
+
FieldLabelPipe,
|
|
19483
|
+
FirstErrorPipe,
|
|
19484
|
+
IsCompoundPipe,
|
|
19485
|
+
IsMandatoryPipe,
|
|
19486
|
+
IsReadOnlyPipe,
|
|
19487
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
19488
|
+
DashPipe] });
|
|
19489
|
+
})();
|
|
19490
|
+
(function () {
|
|
19491
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteUtilsModule, [{
|
|
19492
|
+
type: i0.NgModule,
|
|
19493
|
+
args: [{
|
|
19494
|
+
imports: [
|
|
19495
|
+
i1.CommonModule
|
|
19496
|
+
],
|
|
19497
|
+
declarations: [
|
|
19498
|
+
DatePipe,
|
|
19499
|
+
FieldLabelPipe,
|
|
19500
|
+
FirstErrorPipe,
|
|
19501
|
+
IsCompoundPipe,
|
|
19502
|
+
IsMandatoryPipe,
|
|
19503
|
+
IsReadOnlyPipe,
|
|
19504
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
19505
|
+
DashPipe
|
|
19506
|
+
],
|
|
19507
|
+
exports: [
|
|
19508
|
+
DatePipe,
|
|
19509
|
+
FieldLabelPipe,
|
|
19510
|
+
FirstErrorPipe,
|
|
19511
|
+
IsCompoundPipe,
|
|
19512
|
+
IsMandatoryPipe,
|
|
19513
|
+
IsReadOnlyPipe,
|
|
19514
|
+
IsReadOnlyAndNotCollectionPipe,
|
|
19515
|
+
DashPipe
|
|
19516
|
+
],
|
|
19517
|
+
providers: [
|
|
19518
|
+
IsCompoundPipe
|
|
19519
|
+
]
|
|
19520
|
+
}]
|
|
19521
|
+
}], null, null);
|
|
19522
|
+
})();
|
|
19523
|
+
|
|
19214
19524
|
var PALETTE_COMPONENTS = [
|
|
19215
19525
|
UnsupportedFieldComponent,
|
|
19216
19526
|
DatetimePickerComponent,
|
|
@@ -19282,7 +19592,8 @@
|
|
|
19282
19592
|
WriteCaseLinkFieldComponent,
|
|
19283
19593
|
WriteCollectionFieldComponent,
|
|
19284
19594
|
// ComponentLauncher web components
|
|
19285
|
-
CaseFileViewFieldComponent
|
|
19595
|
+
CaseFileViewFieldComponent,
|
|
19596
|
+
CaseFileViewFolderComponent
|
|
19286
19597
|
];
|
|
19287
19598
|
var PaletteModule = /** @class */ (function () {
|
|
19288
19599
|
function PaletteModule() {
|
|
@@ -19322,6 +19633,7 @@
|
|
|
19322
19633
|
input.MatInputModule,
|
|
19323
19634
|
i5.MatDatepickerModule,
|
|
19324
19635
|
i5$1.MatAutocompleteModule,
|
|
19636
|
+
i1$5.CdkTreeModule,
|
|
19325
19637
|
i3.PaymentLibModule,
|
|
19326
19638
|
i2.ScrollToModule.forRoot()
|
|
19327
19639
|
], i4.NgxMatDatetimePickerModule,
|
|
@@ -19405,7 +19717,8 @@
|
|
|
19405
19717
|
WriteCaseLinkFieldComponent,
|
|
19406
19718
|
WriteCollectionFieldComponent,
|
|
19407
19719
|
// ComponentLauncher web components
|
|
19408
|
-
CaseFileViewFieldComponent
|
|
19720
|
+
CaseFileViewFieldComponent,
|
|
19721
|
+
CaseFileViewFolderComponent], imports: [i1.CommonModule,
|
|
19409
19722
|
i1$1.RouterModule,
|
|
19410
19723
|
i1$2.FormsModule,
|
|
19411
19724
|
i1$2.ReactiveFormsModule,
|
|
@@ -19426,6 +19739,7 @@
|
|
|
19426
19739
|
input.MatInputModule,
|
|
19427
19740
|
i5.MatDatepickerModule,
|
|
19428
19741
|
i5$1.MatAutocompleteModule,
|
|
19742
|
+
i1$5.CdkTreeModule,
|
|
19429
19743
|
i3.PaymentLibModule, i2__namespace.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
19430
19744
|
i4.NgxMatNativeDateModule,
|
|
19431
19745
|
i4.NgxMatTimepickerModule,
|
|
@@ -19501,7 +19815,8 @@
|
|
|
19501
19815
|
WriteCaseLinkFieldComponent,
|
|
19502
19816
|
WriteCollectionFieldComponent,
|
|
19503
19817
|
// ComponentLauncher web components
|
|
19504
|
-
CaseFileViewFieldComponent
|
|
19818
|
+
CaseFileViewFieldComponent,
|
|
19819
|
+
CaseFileViewFolderComponent] });
|
|
19505
19820
|
})();
|
|
19506
19821
|
(function () {
|
|
19507
19822
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
|
|
@@ -19529,6 +19844,7 @@
|
|
|
19529
19844
|
input.MatInputModule,
|
|
19530
19845
|
i5.MatDatepickerModule,
|
|
19531
19846
|
i5$1.MatAutocompleteModule,
|
|
19847
|
+
i1$5.CdkTreeModule,
|
|
19532
19848
|
i3.PaymentLibModule,
|
|
19533
19849
|
i2.ScrollToModule.forRoot()
|
|
19534
19850
|
],
|
|
@@ -20411,7 +20727,7 @@
|
|
|
20411
20727
|
i0__namespace.ɵɵadvance(3);
|
|
20412
20728
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
20413
20729
|
}
|
|
20414
|
-
}, directives: [i1__namespace$
|
|
20730
|
+
}, directives: [i1__namespace$7.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
20415
20731
|
(function () {
|
|
20416
20732
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
|
|
20417
20733
|
type: i0.Component,
|
|
@@ -20818,7 +21134,7 @@
|
|
|
20818
21134
|
i0__namespace.ɵɵadvance(2);
|
|
20819
21135
|
i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
20820
21136
|
}
|
|
20821
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$
|
|
21137
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$7.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
|
|
20822
21138
|
(function () {
|
|
20823
21139
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
|
|
20824
21140
|
type: i0.Component,
|
|
@@ -20878,12 +21194,12 @@
|
|
|
20878
21194
|
PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
|
|
20879
21195
|
PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
20880
21196
|
i1.CommonModule,
|
|
20881
|
-
i1$
|
|
21197
|
+
i1$7.NgxPaginationModule
|
|
20882
21198
|
]] });
|
|
20883
21199
|
(function () {
|
|
20884
21200
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
|
|
20885
|
-
i1$
|
|
20886
|
-
i1$
|
|
21201
|
+
i1$7.NgxPaginationModule], exports: [PaginationComponent,
|
|
21202
|
+
i1$7.PaginatePipe] });
|
|
20887
21203
|
})();
|
|
20888
21204
|
(function () {
|
|
20889
21205
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
|
|
@@ -20891,14 +21207,14 @@
|
|
|
20891
21207
|
args: [{
|
|
20892
21208
|
imports: [
|
|
20893
21209
|
i1.CommonModule,
|
|
20894
|
-
i1$
|
|
21210
|
+
i1$7.NgxPaginationModule
|
|
20895
21211
|
],
|
|
20896
21212
|
declarations: [
|
|
20897
21213
|
PaginationComponent
|
|
20898
21214
|
],
|
|
20899
21215
|
exports: [
|
|
20900
21216
|
PaginationComponent,
|
|
20901
|
-
i1$
|
|
21217
|
+
i1$7.PaginatePipe
|
|
20902
21218
|
],
|
|
20903
21219
|
}]
|
|
20904
21220
|
}], null, null);
|
|
@@ -20917,14 +21233,14 @@
|
|
|
20917
21233
|
i1.CommonModule,
|
|
20918
21234
|
i1$2.FormsModule,
|
|
20919
21235
|
i1$1.RouterModule,
|
|
20920
|
-
i1$
|
|
21236
|
+
i1$7.NgxPaginationModule,
|
|
20921
21237
|
PaginationModule
|
|
20922
21238
|
]] });
|
|
20923
21239
|
(function () {
|
|
20924
21240
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
|
|
20925
21241
|
i1$2.FormsModule,
|
|
20926
21242
|
i1$1.RouterModule,
|
|
20927
|
-
i1$
|
|
21243
|
+
i1$7.NgxPaginationModule,
|
|
20928
21244
|
PaginationModule], exports: [CaseListComponent] });
|
|
20929
21245
|
})();
|
|
20930
21246
|
(function () {
|
|
@@ -20935,7 +21251,7 @@
|
|
|
20935
21251
|
i1.CommonModule,
|
|
20936
21252
|
i1$2.FormsModule,
|
|
20937
21253
|
i1$1.RouterModule,
|
|
20938
|
-
i1$
|
|
21254
|
+
i1$7.NgxPaginationModule,
|
|
20939
21255
|
PaginationModule
|
|
20940
21256
|
],
|
|
20941
21257
|
declarations: [CaseListComponent],
|
|
@@ -22705,7 +23021,7 @@
|
|
|
22705
23021
|
};
|
|
22706
23022
|
return DeleteOrCancelDialogComponent;
|
|
22707
23023
|
}());
|
|
22708
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
23024
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
22709
23025
|
DeleteOrCancelDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) {
|
|
22710
23026
|
if (rf & 1) {
|
|
22711
23027
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -22746,7 +23062,7 @@
|
|
|
22746
23062
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
22747
23063
|
styleUrls: ['../action-dialog.component.scss']
|
|
22748
23064
|
}]
|
|
22749
|
-
}], function () { return [{ type: i1__namespace$
|
|
23065
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
22750
23066
|
})();
|
|
22751
23067
|
|
|
22752
23068
|
function EventTriggerComponent_form_0_option_5_Template(rf, ctx) {
|
|
@@ -22980,7 +23296,7 @@
|
|
|
22980
23296
|
if (rf & 1) {
|
|
22981
23297
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
22982
23298
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
|
|
22983
|
-
i0__namespace.ɵɵelementStart(2, "
|
|
23299
|
+
i0__namespace.ɵɵelementStart(2, "th");
|
|
22984
23300
|
i0__namespace.ɵɵelementStart(3, "span", 32);
|
|
22985
23301
|
i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
|
|
22986
23302
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23369,7 +23685,7 @@
|
|
|
23369
23685
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
23370
23686
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
23371
23687
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
23372
|
-
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
23688
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location)); };
|
|
23373
23689
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
23374
23690
|
if (rf & 1) {
|
|
23375
23691
|
i0__namespace.ɵɵviewQuery(_c0$a, 1);
|
|
@@ -23425,7 +23741,7 @@
|
|
|
23425
23741
|
templateUrl: './case-full-access-view.component.html',
|
|
23426
23742
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
23427
23743
|
}]
|
|
23428
|
-
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$
|
|
23744
|
+
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$6.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }]; }, { hasPrint: [{
|
|
23429
23745
|
type: i0.Input
|
|
23430
23746
|
}], hasEventSelector: [{
|
|
23431
23747
|
type: i0.Input
|
|
@@ -27616,7 +27932,7 @@
|
|
|
27616
27932
|
i0__namespace.ɵɵadvance(1);
|
|
27617
27933
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
27618
27934
|
}
|
|
27619
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$
|
|
27935
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$7.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
|
|
27620
27936
|
(function () {
|
|
27621
27937
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchResultComponent, [{
|
|
27622
27938
|
type: i0.Component,
|
|
@@ -27674,7 +27990,7 @@
|
|
|
27674
27990
|
BrowserService
|
|
27675
27991
|
], imports: [[
|
|
27676
27992
|
i1.CommonModule,
|
|
27677
|
-
i1$
|
|
27993
|
+
i1$7.NgxPaginationModule,
|
|
27678
27994
|
i1$1.RouterModule,
|
|
27679
27995
|
i1$2.FormsModule,
|
|
27680
27996
|
i1$2.ReactiveFormsModule,
|
|
@@ -27686,7 +28002,7 @@
|
|
|
27686
28002
|
]] });
|
|
27687
28003
|
(function () {
|
|
27688
28004
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
|
|
27689
|
-
i1$
|
|
28005
|
+
i1$7.NgxPaginationModule,
|
|
27690
28006
|
i1$1.RouterModule,
|
|
27691
28007
|
i1$2.FormsModule,
|
|
27692
28008
|
i1$2.ReactiveFormsModule,
|
|
@@ -27702,7 +28018,7 @@
|
|
|
27702
28018
|
args: [{
|
|
27703
28019
|
imports: [
|
|
27704
28020
|
i1.CommonModule,
|
|
27705
|
-
i1$
|
|
28021
|
+
i1$7.NgxPaginationModule,
|
|
27706
28022
|
i1$1.RouterModule,
|
|
27707
28023
|
i1$2.FormsModule,
|
|
27708
28024
|
i1$2.ReactiveFormsModule,
|
|
@@ -28031,6 +28347,7 @@
|
|
|
28031
28347
|
exports.CaseField = CaseField;
|
|
28032
28348
|
exports.CaseFieldService = CaseFieldService;
|
|
28033
28349
|
exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
|
|
28350
|
+
exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
|
|
28034
28351
|
exports.CaseFileViewService = CaseFileViewService;
|
|
28035
28352
|
exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
|
|
28036
28353
|
exports.CaseHeaderComponent = CaseHeaderComponent;
|