@hmcts/ccd-case-ui-toolkit 5.0.24-case-file-view-error-message-display → 5.0.24-case-file-view-document-search-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 +341 -293
- 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 +18 -50
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +77 -194
- package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +178 -0
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +6 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +6 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +313 -268
- 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 +3 -6
- 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 +8 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts +3 -0
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +4 -0
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +3 -2
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
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
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
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,
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, i1$4, i2, i1$5, i2$1, i4, momentAdapter, i5, i6, Subject, util, i5$1, i6$1, i3, fsm, i6$2, input, i1$6, i10) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
35
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
36
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
37
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
38
36
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
37
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
38
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
39
39
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
40
40
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
41
41
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
44
44
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
45
45
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
46
|
-
var i1__namespace$
|
|
46
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
47
47
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
48
48
|
|
|
49
49
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
@@ -7185,7 +7185,7 @@
|
|
|
7185
7185
|
return IsCompoundPipe;
|
|
7186
7186
|
}());
|
|
7187
7187
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
7188
|
-
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
|
|
7188
|
+
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
|
|
7189
7189
|
];
|
|
7190
7190
|
IsCompoundPipe.EXCLUDE = [
|
|
7191
7191
|
'CaseLink', 'JudicialUser'
|
|
@@ -7786,9 +7786,10 @@
|
|
|
7786
7786
|
})();
|
|
7787
7787
|
|
|
7788
7788
|
var CaseFileViewService = /** @class */ (function () {
|
|
7789
|
-
function CaseFileViewService(http, appConfig) {
|
|
7789
|
+
function CaseFileViewService(http, appConfig, errorService) {
|
|
7790
7790
|
this.http = http;
|
|
7791
7791
|
this.appConfig = appConfig;
|
|
7792
|
+
this.errorService = errorService;
|
|
7792
7793
|
}
|
|
7793
7794
|
/**
|
|
7794
7795
|
* Retrieves the categories and documents for a case.
|
|
@@ -7819,20 +7820,226 @@
|
|
|
7819
7820
|
};
|
|
7820
7821
|
return CaseFileViewService;
|
|
7821
7822
|
}());
|
|
7822
|
-
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
|
|
7823
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
|
|
7823
7824
|
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
7824
7825
|
(function () {
|
|
7825
7826
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
7826
7827
|
type: i0.Injectable
|
|
7827
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
|
|
7828
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
|
|
7828
7829
|
})();
|
|
7829
7830
|
|
|
7830
|
-
function
|
|
7831
|
+
var CaseFileViewCategory = /** @class */ (function () {
|
|
7832
|
+
function CaseFileViewCategory() {
|
|
7833
|
+
}
|
|
7834
|
+
return CaseFileViewCategory;
|
|
7835
|
+
}());
|
|
7836
|
+
|
|
7837
|
+
var CaseFileViewDocument = /** @class */ (function () {
|
|
7838
|
+
function CaseFileViewDocument() {
|
|
7839
|
+
}
|
|
7840
|
+
return CaseFileViewDocument;
|
|
7841
|
+
}());
|
|
7842
|
+
|
|
7843
|
+
/**
|
|
7844
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
7845
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
7846
|
+
*/
|
|
7847
|
+
var CategoriesAndDocuments = /** @class */ (function () {
|
|
7848
|
+
function CategoriesAndDocuments() {
|
|
7849
|
+
}
|
|
7850
|
+
return CategoriesAndDocuments;
|
|
7851
|
+
}());
|
|
7852
|
+
|
|
7853
|
+
var DocumentTreeNodeType;
|
|
7854
|
+
(function (DocumentTreeNodeType) {
|
|
7855
|
+
DocumentTreeNodeType["FOLDER"] = "folder";
|
|
7856
|
+
DocumentTreeNodeType["DOCUMENT"] = "document";
|
|
7857
|
+
})(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
|
|
7858
|
+
|
|
7859
|
+
var categoriesAndDocuments = {
|
|
7860
|
+
case_version: 1,
|
|
7861
|
+
categories: [
|
|
7862
|
+
{
|
|
7863
|
+
category_id: 'Beers',
|
|
7864
|
+
category_name: 'Beers',
|
|
7865
|
+
category_order: 1,
|
|
7866
|
+
documents: [
|
|
7867
|
+
{
|
|
7868
|
+
document_url: '/test',
|
|
7869
|
+
document_filename: 'Beers encyclopedia',
|
|
7870
|
+
document_binary_url: '/test/binary',
|
|
7871
|
+
attribute_path: '',
|
|
7872
|
+
upload_timestamp: ''
|
|
7873
|
+
}
|
|
7874
|
+
],
|
|
7875
|
+
sub_categories: [
|
|
7876
|
+
{
|
|
7877
|
+
category_id: 'BeersBitters',
|
|
7878
|
+
category_name: 'Bitters',
|
|
7879
|
+
category_order: 1,
|
|
7880
|
+
documents: [],
|
|
7881
|
+
sub_categories: []
|
|
7882
|
+
},
|
|
7883
|
+
{
|
|
7884
|
+
category_id: 'BeersAmerican',
|
|
7885
|
+
category_name: 'American',
|
|
7886
|
+
category_order: 2,
|
|
7887
|
+
documents: [],
|
|
7888
|
+
sub_categories: []
|
|
7889
|
+
},
|
|
7890
|
+
{
|
|
7891
|
+
category_id: 'BeersAsian',
|
|
7892
|
+
category_name: 'Asian',
|
|
7893
|
+
category_order: 3,
|
|
7894
|
+
documents: [],
|
|
7895
|
+
sub_categories: []
|
|
7896
|
+
}
|
|
7897
|
+
]
|
|
7898
|
+
},
|
|
7899
|
+
{
|
|
7900
|
+
category_id: 'Wines',
|
|
7901
|
+
category_name: 'Wines',
|
|
7902
|
+
category_order: 2,
|
|
7903
|
+
documents: [],
|
|
7904
|
+
sub_categories: [
|
|
7905
|
+
{
|
|
7906
|
+
category_id: 'WinesFrench',
|
|
7907
|
+
category_name: 'French',
|
|
7908
|
+
category_order: 1,
|
|
7909
|
+
documents: [],
|
|
7910
|
+
sub_categories: []
|
|
7911
|
+
},
|
|
7912
|
+
{
|
|
7913
|
+
category_id: 'WinesItalian',
|
|
7914
|
+
category_name: 'Italian',
|
|
7915
|
+
category_order: 2,
|
|
7916
|
+
documents: [],
|
|
7917
|
+
sub_categories: []
|
|
7918
|
+
}
|
|
7919
|
+
]
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
category_id: 'Spirits',
|
|
7923
|
+
category_name: 'Spirits',
|
|
7924
|
+
category_order: 3,
|
|
7925
|
+
documents: [],
|
|
7926
|
+
sub_categories: [
|
|
7927
|
+
{
|
|
7928
|
+
category_id: 'SpiritsWhisky',
|
|
7929
|
+
category_name: 'Scotch whisky',
|
|
7930
|
+
category_order: 1,
|
|
7931
|
+
documents: [],
|
|
7932
|
+
sub_categories: [
|
|
7933
|
+
{
|
|
7934
|
+
category_id: 'WhiskyHighland',
|
|
7935
|
+
category_name: 'Highland',
|
|
7936
|
+
category_order: 1,
|
|
7937
|
+
documents: [],
|
|
7938
|
+
sub_categories: [
|
|
7939
|
+
{
|
|
7940
|
+
category_id: 'WhiskyHighland1',
|
|
7941
|
+
category_name: 'Highland 1',
|
|
7942
|
+
category_order: 1,
|
|
7943
|
+
documents: [],
|
|
7944
|
+
sub_categories: []
|
|
7945
|
+
}
|
|
7946
|
+
]
|
|
7947
|
+
},
|
|
7948
|
+
{
|
|
7949
|
+
category_id: 'WhiskyLowland',
|
|
7950
|
+
category_name: 'Lowland',
|
|
7951
|
+
category_order: 2,
|
|
7952
|
+
documents: [],
|
|
7953
|
+
sub_categories: [
|
|
7954
|
+
{
|
|
7955
|
+
category_id: 'WhiskyLowland1',
|
|
7956
|
+
category_name: 'Lowland 1',
|
|
7957
|
+
category_order: 1,
|
|
7958
|
+
documents: [
|
|
7959
|
+
{
|
|
7960
|
+
document_url: '/test',
|
|
7961
|
+
document_filename: 'Details about Whisky Lowland 1',
|
|
7962
|
+
document_binary_url: '/test/binary',
|
|
7963
|
+
attribute_path: '',
|
|
7964
|
+
upload_timestamp: ''
|
|
7965
|
+
}
|
|
7966
|
+
],
|
|
7967
|
+
sub_categories: []
|
|
7968
|
+
},
|
|
7969
|
+
{
|
|
7970
|
+
category_id: 'WhiskyLowland2',
|
|
7971
|
+
category_name: 'Lowland 2',
|
|
7972
|
+
category_order: 2,
|
|
7973
|
+
documents: [],
|
|
7974
|
+
sub_categories: []
|
|
7975
|
+
}
|
|
7976
|
+
]
|
|
7977
|
+
},
|
|
7978
|
+
{
|
|
7979
|
+
category_id: 'WhiskyIslay',
|
|
7980
|
+
category_name: 'Islay',
|
|
7981
|
+
category_order: 3,
|
|
7982
|
+
documents: [
|
|
7983
|
+
{
|
|
7984
|
+
document_url: '/test',
|
|
7985
|
+
document_filename: 'Details about Whisky Islay',
|
|
7986
|
+
document_binary_url: '/test/binary',
|
|
7987
|
+
attribute_path: '',
|
|
7988
|
+
upload_timestamp: ''
|
|
7989
|
+
},
|
|
7990
|
+
{
|
|
7991
|
+
document_url: '/test',
|
|
7992
|
+
document_filename: 'More information about Whisky Islay',
|
|
7993
|
+
document_binary_url: '/test/binary',
|
|
7994
|
+
attribute_path: '',
|
|
7995
|
+
upload_timestamp: ''
|
|
7996
|
+
}
|
|
7997
|
+
],
|
|
7998
|
+
sub_categories: []
|
|
7999
|
+
},
|
|
8000
|
+
{
|
|
8001
|
+
category_id: 'WhiskySpeyside',
|
|
8002
|
+
category_name: 'Speyside',
|
|
8003
|
+
category_order: 4,
|
|
8004
|
+
documents: [],
|
|
8005
|
+
sub_categories: []
|
|
8006
|
+
},
|
|
8007
|
+
{
|
|
8008
|
+
category_id: 'WhiskyCampbeltown',
|
|
8009
|
+
category_name: 'Campbeltown',
|
|
8010
|
+
category_order: 5,
|
|
8011
|
+
documents: [],
|
|
8012
|
+
sub_categories: []
|
|
8013
|
+
}
|
|
8014
|
+
]
|
|
8015
|
+
}
|
|
8016
|
+
]
|
|
8017
|
+
}
|
|
8018
|
+
],
|
|
8019
|
+
uncategorised_documents: [
|
|
8020
|
+
{
|
|
8021
|
+
document_url: '/uncategorised-document-1',
|
|
8022
|
+
document_filename: 'Uncategorised document 1',
|
|
8023
|
+
document_binary_url: '/test/binary',
|
|
8024
|
+
attribute_path: '',
|
|
8025
|
+
upload_timestamp: ''
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
document_url: '/uncategorised-document-2',
|
|
8029
|
+
document_filename: 'Uncategorised document 2',
|
|
8030
|
+
document_binary_url: '/test/binary',
|
|
8031
|
+
attribute_path: '',
|
|
8032
|
+
upload_timestamp: ''
|
|
8033
|
+
}
|
|
8034
|
+
]
|
|
8035
|
+
};
|
|
8036
|
+
|
|
8037
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) {
|
|
7831
8038
|
if (rf & 1) {
|
|
7832
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
7833
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
7834
|
-
i0__namespace.ɵɵelement(2, "button",
|
|
7835
|
-
i0__namespace.ɵɵelementStart(3, "span",
|
|
8039
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 9);
|
|
8040
|
+
i0__namespace.ɵɵelementStart(1, "div", 10);
|
|
8041
|
+
i0__namespace.ɵɵelement(2, "button", 11);
|
|
8042
|
+
i0__namespace.ɵɵelementStart(3, "span", 12);
|
|
7836
8043
|
i0__namespace.ɵɵtext(4);
|
|
7837
8044
|
i0__namespace.ɵɵelementEnd();
|
|
7838
8045
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -7844,21 +8051,21 @@
|
|
|
7844
8051
|
i0__namespace.ɵɵtextInterpolate(node_r2.name);
|
|
7845
8052
|
}
|
|
7846
8053
|
}
|
|
7847
|
-
function
|
|
8054
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template(rf, ctx) {
|
|
7848
8055
|
if (rf & 1) {
|
|
7849
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
7850
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
7851
|
-
i0__namespace.ɵɵelementStart(2, "button",
|
|
7852
|
-
i0__namespace.ɵɵelementStart(3, "span",
|
|
8056
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 9);
|
|
8057
|
+
i0__namespace.ɵɵelementStart(1, "div", 10);
|
|
8058
|
+
i0__namespace.ɵɵelementStart(2, "button", 13);
|
|
8059
|
+
i0__namespace.ɵɵelementStart(3, "span", 14);
|
|
7853
8060
|
i0__namespace.ɵɵtext(4);
|
|
7854
8061
|
i0__namespace.ɵɵelementEnd();
|
|
7855
8062
|
i0__namespace.ɵɵelementEnd();
|
|
7856
|
-
i0__namespace.ɵɵelementStart(5, "span",
|
|
8063
|
+
i0__namespace.ɵɵelementStart(5, "span", 15);
|
|
7857
8064
|
i0__namespace.ɵɵtext(6);
|
|
7858
8065
|
i0__namespace.ɵɵelementEnd();
|
|
7859
8066
|
i0__namespace.ɵɵelementEnd();
|
|
7860
8067
|
i0__namespace.ɵɵelementStart(7, "div");
|
|
7861
|
-
i0__namespace.ɵɵelementContainer(8,
|
|
8068
|
+
i0__namespace.ɵɵelementContainer(8, 16);
|
|
7862
8069
|
i0__namespace.ɵɵelementEnd();
|
|
7863
8070
|
i0__namespace.ɵɵelementEnd();
|
|
7864
8071
|
}
|
|
@@ -7880,22 +8087,30 @@
|
|
|
7880
8087
|
this.categories = [];
|
|
7881
8088
|
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
7882
8089
|
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
7883
|
-
this.nestedTreeControl = new
|
|
8090
|
+
this.nestedTreeControl = new i2.NestedTreeControl(this.getChildren);
|
|
7884
8091
|
}
|
|
7885
8092
|
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
7886
8093
|
var _this = this;
|
|
7887
|
-
this.
|
|
8094
|
+
this.documentFilterFormGroup = new i1$2.FormGroup({});
|
|
8095
|
+
this.documentSearchFormControl = new i1$2.FormControl('');
|
|
8096
|
+
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
8097
|
+
// Listen to search input and initiate filter documents if at least three characters entered
|
|
8098
|
+
this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase(), _this.documentTreeData); })).subscribe(function (documentTreeData) {
|
|
8099
|
+
_this.nestedDataSource = documentTreeData;
|
|
8100
|
+
});
|
|
8101
|
+
// Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
|
|
8102
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocumentsResult) {
|
|
7888
8103
|
// Using the mock data for now as we have to display the documents as well for demo purpose
|
|
7889
|
-
var categories =
|
|
8104
|
+
var categories = categoriesAndDocuments.categories; // categoriesAndDocuments.categories;
|
|
7890
8105
|
// Generate document tree data from categories
|
|
7891
|
-
|
|
8106
|
+
_this.documentTreeData = _this.generateTreeData(categories);
|
|
7892
8107
|
// Append uncategorised documents
|
|
7893
|
-
if (
|
|
7894
|
-
var uncategorisedDocuments = _this.getUncategorisedDocuments(
|
|
7895
|
-
|
|
8108
|
+
if (categoriesAndDocumentsResult.uncategorised_documents && categoriesAndDocumentsResult.uncategorised_documents.length > 0) {
|
|
8109
|
+
var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocumentsResult.uncategorised_documents);
|
|
8110
|
+
_this.documentTreeData.push(uncategorisedDocuments);
|
|
7896
8111
|
}
|
|
7897
8112
|
// Initialise cdk tree with generated data
|
|
7898
|
-
_this.nestedDataSource =
|
|
8113
|
+
_this.nestedDataSource = _this.documentTreeData;
|
|
7899
8114
|
});
|
|
7900
8115
|
};
|
|
7901
8116
|
CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
|
|
@@ -7903,6 +8118,7 @@
|
|
|
7903
8118
|
return categories.reduce(function (tree, node) { return __spread(tree, [
|
|
7904
8119
|
{
|
|
7905
8120
|
name: node.category_name,
|
|
8121
|
+
type: DocumentTreeNodeType.FOLDER,
|
|
7906
8122
|
children: __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents))
|
|
7907
8123
|
},
|
|
7908
8124
|
]); }, []);
|
|
@@ -7910,208 +8126,77 @@
|
|
|
7910
8126
|
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
7911
8127
|
var documentsToReturn = [];
|
|
7912
8128
|
documents.forEach(function (document) {
|
|
7913
|
-
documentsToReturn.push({ name: document.document_filename });
|
|
8129
|
+
documentsToReturn.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
|
|
7914
8130
|
});
|
|
7915
8131
|
return documentsToReturn;
|
|
7916
8132
|
};
|
|
7917
8133
|
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
7918
8134
|
var documents = [];
|
|
7919
8135
|
uncategorisedDocuments.forEach(function (document) {
|
|
7920
|
-
documents.push({ name: document.document_filename });
|
|
8136
|
+
documents.push({ name: document.document_filename, type: DocumentTreeNodeType.DOCUMENT });
|
|
7921
8137
|
});
|
|
7922
|
-
return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, children: documents };
|
|
8138
|
+
return { name: CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE, type: DocumentTreeNodeType.FOLDER, children: documents };
|
|
8139
|
+
};
|
|
8140
|
+
CaseFileViewFolderComponent.prototype.filter = function (searchTerm, documentTreeData) {
|
|
8141
|
+
// Make a copy of the data so we do not mutate the original
|
|
8142
|
+
function copy(node) {
|
|
8143
|
+
return Object.assign({}, node);
|
|
8144
|
+
}
|
|
8145
|
+
var filteredData = documentTreeData;
|
|
8146
|
+
if (searchTerm && searchTerm.length > 2 && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
8147
|
+
filteredData = documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
8148
|
+
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
8149
|
+
return true;
|
|
8150
|
+
}
|
|
8151
|
+
// Call recursively if node has children
|
|
8152
|
+
if (node.children) {
|
|
8153
|
+
return (node.children = node.children.map(copy).filter(filterTreeData)).length;
|
|
8154
|
+
}
|
|
8155
|
+
});
|
|
8156
|
+
}
|
|
8157
|
+
return rxjs.of(filteredData);
|
|
7923
8158
|
};
|
|
7924
8159
|
CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
|
|
7925
8160
|
if (this.categoriesAndDocumentsSubscription) {
|
|
7926
8161
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
7927
8162
|
}
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
{
|
|
7932
|
-
category_id: 'Beers',
|
|
7933
|
-
category_name: 'Beers',
|
|
7934
|
-
category_order: 1,
|
|
7935
|
-
documents: [
|
|
7936
|
-
{
|
|
7937
|
-
document_url: '/test',
|
|
7938
|
-
document_filename: 'Beers encyclopedia',
|
|
7939
|
-
document_binary_url: '/test/binary',
|
|
7940
|
-
attribute_path: '',
|
|
7941
|
-
upload_timestamp: ''
|
|
7942
|
-
}
|
|
7943
|
-
],
|
|
7944
|
-
sub_categories: [
|
|
7945
|
-
{
|
|
7946
|
-
category_id: 'BeersBitters',
|
|
7947
|
-
category_name: 'Bitters',
|
|
7948
|
-
category_order: 1,
|
|
7949
|
-
documents: [],
|
|
7950
|
-
sub_categories: []
|
|
7951
|
-
},
|
|
7952
|
-
{
|
|
7953
|
-
category_id: 'BeersAmerican',
|
|
7954
|
-
category_name: 'American',
|
|
7955
|
-
category_order: 2,
|
|
7956
|
-
documents: [],
|
|
7957
|
-
sub_categories: []
|
|
7958
|
-
},
|
|
7959
|
-
{
|
|
7960
|
-
category_id: 'BeersAsian',
|
|
7961
|
-
category_name: 'Asian',
|
|
7962
|
-
category_order: 3,
|
|
7963
|
-
documents: [],
|
|
7964
|
-
sub_categories: []
|
|
7965
|
-
}
|
|
7966
|
-
]
|
|
7967
|
-
},
|
|
7968
|
-
{
|
|
7969
|
-
category_id: 'Wines',
|
|
7970
|
-
category_name: 'Wines',
|
|
7971
|
-
category_order: 2,
|
|
7972
|
-
documents: [],
|
|
7973
|
-
sub_categories: [
|
|
7974
|
-
{
|
|
7975
|
-
category_id: 'WinesFrench',
|
|
7976
|
-
category_name: 'French',
|
|
7977
|
-
category_order: 1,
|
|
7978
|
-
documents: [],
|
|
7979
|
-
sub_categories: []
|
|
7980
|
-
},
|
|
7981
|
-
{
|
|
7982
|
-
category_id: 'WinesItalian',
|
|
7983
|
-
category_name: 'Italian',
|
|
7984
|
-
category_order: 2,
|
|
7985
|
-
documents: [],
|
|
7986
|
-
sub_categories: []
|
|
7987
|
-
}
|
|
7988
|
-
]
|
|
7989
|
-
},
|
|
7990
|
-
{
|
|
7991
|
-
category_id: 'Spirits',
|
|
7992
|
-
category_name: 'Spirits',
|
|
7993
|
-
category_order: 3,
|
|
7994
|
-
documents: [],
|
|
7995
|
-
sub_categories: [
|
|
7996
|
-
{
|
|
7997
|
-
category_id: 'SpiritsWhisky',
|
|
7998
|
-
category_name: 'Scotch whisky',
|
|
7999
|
-
category_order: 1,
|
|
8000
|
-
documents: [],
|
|
8001
|
-
sub_categories: [
|
|
8002
|
-
{
|
|
8003
|
-
category_id: 'WhiskyHighland',
|
|
8004
|
-
category_name: 'Highland',
|
|
8005
|
-
category_order: 1,
|
|
8006
|
-
documents: [],
|
|
8007
|
-
sub_categories: [
|
|
8008
|
-
{
|
|
8009
|
-
category_id: 'WhiskyHighland1',
|
|
8010
|
-
category_name: 'Highland 1',
|
|
8011
|
-
category_order: 1,
|
|
8012
|
-
documents: [],
|
|
8013
|
-
sub_categories: []
|
|
8014
|
-
}
|
|
8015
|
-
]
|
|
8016
|
-
},
|
|
8017
|
-
{
|
|
8018
|
-
category_id: 'WhiskyLowland',
|
|
8019
|
-
category_name: 'Lowland',
|
|
8020
|
-
category_order: 2,
|
|
8021
|
-
documents: [],
|
|
8022
|
-
sub_categories: [
|
|
8023
|
-
{
|
|
8024
|
-
category_id: 'WhiskyLowland1',
|
|
8025
|
-
category_name: 'Lowland 1',
|
|
8026
|
-
category_order: 1,
|
|
8027
|
-
documents: [
|
|
8028
|
-
{
|
|
8029
|
-
document_url: '/test',
|
|
8030
|
-
document_filename: 'Details about Whisky Lowland 1',
|
|
8031
|
-
document_binary_url: '/test/binary',
|
|
8032
|
-
attribute_path: '',
|
|
8033
|
-
upload_timestamp: ''
|
|
8034
|
-
}
|
|
8035
|
-
],
|
|
8036
|
-
sub_categories: []
|
|
8037
|
-
},
|
|
8038
|
-
{
|
|
8039
|
-
category_id: 'WhiskyLowland2',
|
|
8040
|
-
category_name: 'Lowland 2',
|
|
8041
|
-
category_order: 2,
|
|
8042
|
-
documents: [],
|
|
8043
|
-
sub_categories: []
|
|
8044
|
-
}
|
|
8045
|
-
]
|
|
8046
|
-
},
|
|
8047
|
-
{
|
|
8048
|
-
category_id: 'WhiskyIslay',
|
|
8049
|
-
category_name: 'Islay',
|
|
8050
|
-
category_order: 3,
|
|
8051
|
-
documents: [
|
|
8052
|
-
{
|
|
8053
|
-
document_url: '/test',
|
|
8054
|
-
document_filename: 'Details about Whisky Islay',
|
|
8055
|
-
document_binary_url: '/test/binary',
|
|
8056
|
-
attribute_path: '',
|
|
8057
|
-
upload_timestamp: ''
|
|
8058
|
-
},
|
|
8059
|
-
{
|
|
8060
|
-
document_url: '/test',
|
|
8061
|
-
document_filename: 'More information about Whisky Islay',
|
|
8062
|
-
document_binary_url: '/test/binary',
|
|
8063
|
-
attribute_path: '',
|
|
8064
|
-
upload_timestamp: ''
|
|
8065
|
-
}
|
|
8066
|
-
],
|
|
8067
|
-
sub_categories: []
|
|
8068
|
-
},
|
|
8069
|
-
{
|
|
8070
|
-
category_id: 'WhiskySpeyside',
|
|
8071
|
-
category_name: 'Speyside',
|
|
8072
|
-
category_order: 4,
|
|
8073
|
-
documents: [],
|
|
8074
|
-
sub_categories: []
|
|
8075
|
-
},
|
|
8076
|
-
{
|
|
8077
|
-
category_id: 'WhiskyCampbeltown',
|
|
8078
|
-
category_name: 'Campbeltown',
|
|
8079
|
-
category_order: 5,
|
|
8080
|
-
documents: [],
|
|
8081
|
-
sub_categories: []
|
|
8082
|
-
}
|
|
8083
|
-
]
|
|
8084
|
-
}
|
|
8085
|
-
]
|
|
8086
|
-
}
|
|
8087
|
-
];
|
|
8163
|
+
if (this.documentFilterSubscription) {
|
|
8164
|
+
this.documentFilterSubscription.unsubscribe();
|
|
8165
|
+
}
|
|
8088
8166
|
};
|
|
8089
8167
|
return CaseFileViewFolderComponent;
|
|
8090
8168
|
}());
|
|
8091
8169
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
8170
|
+
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
8171
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 2;
|
|
8092
8172
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
|
|
8093
|
-
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls:
|
|
8173
|
+
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 10, vars: 4, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["for", "document-search", 1, "form-label"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", 1, "form-control", "document-search"], [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) {
|
|
8094
8174
|
if (rf & 1) {
|
|
8095
8175
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
8096
|
-
i0__namespace.ɵɵ
|
|
8097
|
-
i0__namespace.ɵɵ
|
|
8098
|
-
i0__namespace.ɵɵ
|
|
8176
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
8177
|
+
i0__namespace.ɵɵelement(2, "label", 2);
|
|
8178
|
+
i0__namespace.ɵɵelement(3, "input", 3);
|
|
8099
8179
|
i0__namespace.ɵɵelementEnd();
|
|
8180
|
+
i0__namespace.ɵɵelementStart(4, "div", 4);
|
|
8181
|
+
i0__namespace.ɵɵtext(5, "Documents");
|
|
8100
8182
|
i0__namespace.ɵɵelementEnd();
|
|
8101
|
-
i0__namespace.ɵɵ
|
|
8102
|
-
i0__namespace.ɵɵelementStart(
|
|
8103
|
-
i0__namespace.ɵɵ
|
|
8104
|
-
i0__namespace.ɵɵtemplate(
|
|
8183
|
+
i0__namespace.ɵɵelementEnd();
|
|
8184
|
+
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
8185
|
+
i0__namespace.ɵɵelementStart(7, "cdk-tree", 6);
|
|
8186
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 5, 1, "cdk-nested-tree-node", 7);
|
|
8187
|
+
i0__namespace.ɵɵtemplate(9, CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template, 9, 5, "cdk-nested-tree-node", 8);
|
|
8105
8188
|
i0__namespace.ɵɵelementEnd();
|
|
8106
8189
|
i0__namespace.ɵɵelementEnd();
|
|
8107
8190
|
}
|
|
8108
8191
|
if (rf & 2) {
|
|
8109
|
-
i0__namespace.ɵɵadvance(
|
|
8192
|
+
i0__namespace.ɵɵadvance(1);
|
|
8193
|
+
i0__namespace.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
|
|
8194
|
+
i0__namespace.ɵɵadvance(6);
|
|
8110
8195
|
i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
8111
8196
|
i0__namespace.ɵɵadvance(2);
|
|
8112
8197
|
i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
|
|
8113
8198
|
}
|
|
8114
|
-
}, directives: [i1__namespace$
|
|
8199
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i2__namespace.CdkTree, i2__namespace.CdkTreeNodeDef, i2__namespace.CdkNestedTreeNode, i2__namespace.CdkTreeNodeToggle, i2__namespace.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%;padding:8px 0 0 8px;margin-bottom:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 98% #fff;padding-right:30px;min-width:30%;max-width:340px}.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:#faf8f8}.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}"] });
|
|
8115
8200
|
(function () {
|
|
8116
8201
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
8117
8202
|
type: i0.Component,
|
|
@@ -8125,56 +8210,15 @@
|
|
|
8125
8210
|
}] });
|
|
8126
8211
|
})();
|
|
8127
8212
|
|
|
8128
|
-
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
8129
|
-
if (rf & 1) {
|
|
8130
|
-
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
8131
|
-
i0__namespace.ɵɵelementStart(1, "h1", 3);
|
|
8132
|
-
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
8133
|
-
i0__namespace.ɵɵelementEnd();
|
|
8134
|
-
i0__namespace.ɵɵelementStart(3, "p", 4);
|
|
8135
|
-
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
8136
|
-
i0__namespace.ɵɵelementEnd();
|
|
8137
|
-
i0__namespace.ɵɵelementEnd();
|
|
8138
|
-
}
|
|
8139
|
-
}
|
|
8140
|
-
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
8141
|
-
if (rf & 1) {
|
|
8142
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
8143
|
-
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
8144
|
-
i0__namespace.ɵɵtext(2, "Case file");
|
|
8145
|
-
i0__namespace.ɵɵelementEnd();
|
|
8146
|
-
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
8147
|
-
i0__namespace.ɵɵelementStart(4, "div", 7);
|
|
8148
|
-
i0__namespace.ɵɵelement(5, "ccd-case-file-view-folder", 8);
|
|
8149
|
-
i0__namespace.ɵɵelementEnd();
|
|
8150
|
-
i0__namespace.ɵɵelement(6, "div", 9);
|
|
8151
|
-
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
8152
|
-
i0__namespace.ɵɵtext(8, " Media viewer ");
|
|
8153
|
-
i0__namespace.ɵɵelementEnd();
|
|
8154
|
-
i0__namespace.ɵɵelementEnd();
|
|
8155
|
-
i0__namespace.ɵɵelementEnd();
|
|
8156
|
-
}
|
|
8157
|
-
if (rf & 2) {
|
|
8158
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
8159
|
-
i0__namespace.ɵɵadvance(5);
|
|
8160
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
|
|
8161
|
-
}
|
|
8162
|
-
}
|
|
8163
8213
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
8164
8214
|
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
|
|
8165
8215
|
this.elementRef = elementRef;
|
|
8166
8216
|
this.route = route;
|
|
8167
8217
|
this.caseFileViewService = caseFileViewService;
|
|
8168
|
-
this.getCategoriesAndDocumentsError = false;
|
|
8169
8218
|
}
|
|
8170
8219
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
8171
|
-
var _this = this;
|
|
8172
8220
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
8173
8221
|
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
8174
|
-
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
8175
|
-
next: function (_) { },
|
|
8176
|
-
error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
|
|
8177
|
-
});
|
|
8178
8222
|
};
|
|
8179
8223
|
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
8180
8224
|
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -8198,26 +8242,30 @@
|
|
|
8198
8242
|
documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
|
|
8199
8243
|
});
|
|
8200
8244
|
};
|
|
8201
|
-
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
8202
|
-
if (this.categoriesAndDocumentsSubscription) {
|
|
8203
|
-
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
8204
|
-
}
|
|
8205
|
-
};
|
|
8206
8245
|
return CaseFileViewFieldComponent;
|
|
8207
8246
|
}());
|
|
8208
8247
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
8209
8248
|
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)); };
|
|
8210
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
8249
|
+
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) {
|
|
8211
8250
|
if (rf & 1) {
|
|
8212
|
-
i0__namespace.ɵɵ
|
|
8213
|
-
i0__namespace.ɵɵ
|
|
8251
|
+
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
8252
|
+
i0__namespace.ɵɵtext(1, "Case file");
|
|
8253
|
+
i0__namespace.ɵɵelementEnd();
|
|
8254
|
+
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
8255
|
+
i0__namespace.ɵɵelementStart(3, "div", 2);
|
|
8256
|
+
i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
8257
|
+
i0__namespace.ɵɵelementEnd();
|
|
8258
|
+
i0__namespace.ɵɵelement(5, "div", 4);
|
|
8259
|
+
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
8260
|
+
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
8261
|
+
i0__namespace.ɵɵelementEnd();
|
|
8262
|
+
i0__namespace.ɵɵelementEnd();
|
|
8214
8263
|
}
|
|
8215
8264
|
if (rf & 2) {
|
|
8216
|
-
i0__namespace.ɵɵ
|
|
8217
|
-
i0__namespace.ɵɵ
|
|
8218
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
8265
|
+
i0__namespace.ɵɵadvance(4);
|
|
8266
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
8219
8267
|
}
|
|
8220
|
-
}, directives: [
|
|
8268
|
+
}, 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%}"] });
|
|
8221
8269
|
(function () {
|
|
8222
8270
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
8223
8271
|
type: i0.Component,
|
|
@@ -8591,7 +8639,7 @@
|
|
|
8591
8639
|
};
|
|
8592
8640
|
return RemoveDialogComponent;
|
|
8593
8641
|
}());
|
|
8594
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
8642
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
|
|
8595
8643
|
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) {
|
|
8596
8644
|
if (rf & 1) {
|
|
8597
8645
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -8632,7 +8680,7 @@
|
|
|
8632
8680
|
templateUrl: './remove-dialog.component.html',
|
|
8633
8681
|
styleUrls: ['../action-dialog.component.scss']
|
|
8634
8682
|
}]
|
|
8635
|
-
}], function () { return [{ type: i1__namespace$
|
|
8683
|
+
}], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
|
|
8636
8684
|
})();
|
|
8637
8685
|
|
|
8638
8686
|
var Jurisdiction = /** @class */ (function () {
|
|
@@ -9064,7 +9112,7 @@
|
|
|
9064
9112
|
};
|
|
9065
9113
|
WriteCollectionFieldComponent.prototype.openModal = function (i) {
|
|
9066
9114
|
var _this = this;
|
|
9067
|
-
var dialogConfig = new i1$
|
|
9115
|
+
var dialogConfig = new i1$5.MatDialogConfig();
|
|
9068
9116
|
dialogConfig.disableClose = true;
|
|
9069
9117
|
dialogConfig.autoFocus = true;
|
|
9070
9118
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -9098,7 +9146,7 @@
|
|
|
9098
9146
|
};
|
|
9099
9147
|
return WriteCollectionFieldComponent;
|
|
9100
9148
|
}(AbstractFieldWriteComponent));
|
|
9101
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
9149
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
9102
9150
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
9103
9151
|
if (rf & 1) {
|
|
9104
9152
|
i0__namespace.ɵɵviewQuery(_c0$D, 1);
|
|
@@ -9147,7 +9195,7 @@
|
|
|
9147
9195
|
templateUrl: './write-collection-field.html',
|
|
9148
9196
|
styleUrls: ['./collection-field.scss']
|
|
9149
9197
|
}]
|
|
9150
|
-
}], function () { return [{ type: i1__namespace$
|
|
9198
|
+
}], function () { return [{ type: i1__namespace$5.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
9151
9199
|
type: i0.Input
|
|
9152
9200
|
}], formGroup: [{
|
|
9153
9201
|
type: i0.Input
|
|
@@ -10765,7 +10813,7 @@
|
|
|
10765
10813
|
};
|
|
10766
10814
|
return DocumentDialogComponent;
|
|
10767
10815
|
}());
|
|
10768
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
10816
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
|
|
10769
10817
|
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) {
|
|
10770
10818
|
if (rf & 1) {
|
|
10771
10819
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -10806,11 +10854,11 @@
|
|
|
10806
10854
|
templateUrl: './document-dialog.component.html',
|
|
10807
10855
|
styleUrls: ['../action-dialog.component.scss']
|
|
10808
10856
|
}]
|
|
10809
|
-
}], function () { return [{ type: i1__namespace$
|
|
10857
|
+
}], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
|
|
10810
10858
|
})();
|
|
10811
10859
|
|
|
10812
10860
|
function initDialog() {
|
|
10813
|
-
var dialogConfig = new i1$
|
|
10861
|
+
var dialogConfig = new i1$5.MatDialogConfig();
|
|
10814
10862
|
dialogConfig.disableClose = true;
|
|
10815
10863
|
dialogConfig.autoFocus = true;
|
|
10816
10864
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -11377,7 +11425,7 @@
|
|
|
11377
11425
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
11378
11426
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
11379
11427
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
11380
|
-
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$
|
|
11428
|
+
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
11381
11429
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
11382
11430
|
if (rf & 1) {
|
|
11383
11431
|
i0__namespace.ɵɵviewQuery(_c0$z, 1);
|
|
@@ -11451,7 +11499,7 @@
|
|
|
11451
11499
|
selector: 'ccd-write-document-field',
|
|
11452
11500
|
templateUrl: './write-document-field.html'
|
|
11453
11501
|
}]
|
|
11454
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
11502
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$5.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
11455
11503
|
type: i0.ViewChild,
|
|
11456
11504
|
args: ['fileInput', { static: false }]
|
|
11457
11505
|
}], clickout: [{
|
|
@@ -16530,7 +16578,7 @@
|
|
|
16530
16578
|
};
|
|
16531
16579
|
return SaveOrDiscardDialogComponent;
|
|
16532
16580
|
}());
|
|
16533
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
16581
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
|
|
16534
16582
|
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) {
|
|
16535
16583
|
if (rf & 1) {
|
|
16536
16584
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -16571,7 +16619,7 @@
|
|
|
16571
16619
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
16572
16620
|
styleUrls: ['../action-dialog.component.scss']
|
|
16573
16621
|
}]
|
|
16574
|
-
}], function () { return [{ type: i1__namespace$
|
|
16622
|
+
}], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
|
|
16575
16623
|
})();
|
|
16576
16624
|
|
|
16577
16625
|
var CaseEditPageText;
|
|
@@ -17491,7 +17539,7 @@
|
|
|
17491
17539
|
};
|
|
17492
17540
|
return CaseEditPageComponent;
|
|
17493
17541
|
}());
|
|
17494
|
-
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$
|
|
17542
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
|
|
17495
17543
|
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) {
|
|
17496
17544
|
if (rf & 1) {
|
|
17497
17545
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
@@ -17537,7 +17585,7 @@
|
|
|
17537
17585
|
templateUrl: 'case-edit-page.html',
|
|
17538
17586
|
styleUrls: ['./case-edit-page.scss']
|
|
17539
17587
|
}]
|
|
17540
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$
|
|
17588
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$5.MatDialog }, { type: CaseFieldService }]; }, null);
|
|
17541
17589
|
})();
|
|
17542
17590
|
|
|
17543
17591
|
var Confirmation = /** @class */ (function () {
|
|
@@ -19669,9 +19717,9 @@
|
|
|
19669
19717
|
input.MatInputModule,
|
|
19670
19718
|
i5.MatDatepickerModule,
|
|
19671
19719
|
i5$1.MatAutocompleteModule,
|
|
19672
|
-
|
|
19720
|
+
i2.CdkTreeModule,
|
|
19673
19721
|
i3.PaymentLibModule,
|
|
19674
|
-
i2.ScrollToModule.forRoot()
|
|
19722
|
+
i2$1.ScrollToModule.forRoot()
|
|
19675
19723
|
], i4.NgxMatDatetimePickerModule,
|
|
19676
19724
|
i4.NgxMatNativeDateModule,
|
|
19677
19725
|
i4.NgxMatTimepickerModule,
|
|
@@ -19775,8 +19823,8 @@
|
|
|
19775
19823
|
input.MatInputModule,
|
|
19776
19824
|
i5.MatDatepickerModule,
|
|
19777
19825
|
i5$1.MatAutocompleteModule,
|
|
19778
|
-
|
|
19779
|
-
i3.PaymentLibModule, i2__namespace.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
19826
|
+
i2.CdkTreeModule,
|
|
19827
|
+
i3.PaymentLibModule, i2__namespace$1.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
19780
19828
|
i4.NgxMatNativeDateModule,
|
|
19781
19829
|
i4.NgxMatTimepickerModule,
|
|
19782
19830
|
TabsModule,
|
|
@@ -19880,9 +19928,9 @@
|
|
|
19880
19928
|
input.MatInputModule,
|
|
19881
19929
|
i5.MatDatepickerModule,
|
|
19882
19930
|
i5$1.MatAutocompleteModule,
|
|
19883
|
-
|
|
19931
|
+
i2.CdkTreeModule,
|
|
19884
19932
|
i3.PaymentLibModule,
|
|
19885
|
-
i2.ScrollToModule.forRoot()
|
|
19933
|
+
i2$1.ScrollToModule.forRoot()
|
|
19886
19934
|
],
|
|
19887
19935
|
declarations: __spread([
|
|
19888
19936
|
FixedListPipe,
|
|
@@ -20763,7 +20811,7 @@
|
|
|
20763
20811
|
i0__namespace.ɵɵadvance(3);
|
|
20764
20812
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
20765
20813
|
}
|
|
20766
|
-
}, directives: [i1__namespace$
|
|
20814
|
+
}, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
20767
20815
|
(function () {
|
|
20768
20816
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
|
|
20769
20817
|
type: i0.Component,
|
|
@@ -21170,7 +21218,7 @@
|
|
|
21170
21218
|
i0__namespace.ɵɵadvance(2);
|
|
21171
21219
|
i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
21172
21220
|
}
|
|
21173
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$
|
|
21221
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
|
|
21174
21222
|
(function () {
|
|
21175
21223
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
|
|
21176
21224
|
type: i0.Component,
|
|
@@ -21230,12 +21278,12 @@
|
|
|
21230
21278
|
PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
|
|
21231
21279
|
PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
21232
21280
|
i1.CommonModule,
|
|
21233
|
-
i1$
|
|
21281
|
+
i1$6.NgxPaginationModule
|
|
21234
21282
|
]] });
|
|
21235
21283
|
(function () {
|
|
21236
21284
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
|
|
21237
|
-
i1$
|
|
21238
|
-
i1$
|
|
21285
|
+
i1$6.NgxPaginationModule], exports: [PaginationComponent,
|
|
21286
|
+
i1$6.PaginatePipe] });
|
|
21239
21287
|
})();
|
|
21240
21288
|
(function () {
|
|
21241
21289
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
|
|
@@ -21243,14 +21291,14 @@
|
|
|
21243
21291
|
args: [{
|
|
21244
21292
|
imports: [
|
|
21245
21293
|
i1.CommonModule,
|
|
21246
|
-
i1$
|
|
21294
|
+
i1$6.NgxPaginationModule
|
|
21247
21295
|
],
|
|
21248
21296
|
declarations: [
|
|
21249
21297
|
PaginationComponent
|
|
21250
21298
|
],
|
|
21251
21299
|
exports: [
|
|
21252
21300
|
PaginationComponent,
|
|
21253
|
-
i1$
|
|
21301
|
+
i1$6.PaginatePipe
|
|
21254
21302
|
],
|
|
21255
21303
|
}]
|
|
21256
21304
|
}], null, null);
|
|
@@ -21269,14 +21317,14 @@
|
|
|
21269
21317
|
i1.CommonModule,
|
|
21270
21318
|
i1$2.FormsModule,
|
|
21271
21319
|
i1$1.RouterModule,
|
|
21272
|
-
i1$
|
|
21320
|
+
i1$6.NgxPaginationModule,
|
|
21273
21321
|
PaginationModule
|
|
21274
21322
|
]] });
|
|
21275
21323
|
(function () {
|
|
21276
21324
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
|
|
21277
21325
|
i1$2.FormsModule,
|
|
21278
21326
|
i1$1.RouterModule,
|
|
21279
|
-
i1$
|
|
21327
|
+
i1$6.NgxPaginationModule,
|
|
21280
21328
|
PaginationModule], exports: [CaseListComponent] });
|
|
21281
21329
|
})();
|
|
21282
21330
|
(function () {
|
|
@@ -21287,7 +21335,7 @@
|
|
|
21287
21335
|
i1.CommonModule,
|
|
21288
21336
|
i1$2.FormsModule,
|
|
21289
21337
|
i1$1.RouterModule,
|
|
21290
|
-
i1$
|
|
21338
|
+
i1$6.NgxPaginationModule,
|
|
21291
21339
|
PaginationModule
|
|
21292
21340
|
],
|
|
21293
21341
|
declarations: [CaseListComponent],
|
|
@@ -23057,7 +23105,7 @@
|
|
|
23057
23105
|
};
|
|
23058
23106
|
return DeleteOrCancelDialogComponent;
|
|
23059
23107
|
}());
|
|
23060
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
23108
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialogRef)); };
|
|
23061
23109
|
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) {
|
|
23062
23110
|
if (rf & 1) {
|
|
23063
23111
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -23098,7 +23146,7 @@
|
|
|
23098
23146
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
23099
23147
|
styleUrls: ['../action-dialog.component.scss']
|
|
23100
23148
|
}]
|
|
23101
|
-
}], function () { return [{ type: i1__namespace$
|
|
23149
|
+
}], function () { return [{ type: i1__namespace$5.MatDialogRef }]; }, null);
|
|
23102
23150
|
})();
|
|
23103
23151
|
|
|
23104
23152
|
function EventTriggerComponent_form_0_option_5_Template(rf, ctx) {
|
|
@@ -23332,7 +23380,7 @@
|
|
|
23332
23380
|
if (rf & 1) {
|
|
23333
23381
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
23334
23382
|
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);
|
|
23335
|
-
i0__namespace.ɵɵelementStart(2, "
|
|
23383
|
+
i0__namespace.ɵɵelementStart(2, "td");
|
|
23336
23384
|
i0__namespace.ɵɵelementStart(3, "span", 32);
|
|
23337
23385
|
i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
|
|
23338
23386
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23721,7 +23769,7 @@
|
|
|
23721
23769
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
23722
23770
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
23723
23771
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
23724
|
-
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$
|
|
23772
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$5.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location)); };
|
|
23725
23773
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
23726
23774
|
if (rf & 1) {
|
|
23727
23775
|
i0__namespace.ɵɵviewQuery(_c0$a, 1);
|
|
@@ -23777,7 +23825,7 @@
|
|
|
23777
23825
|
templateUrl: './case-full-access-view.component.html',
|
|
23778
23826
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
23779
23827
|
}]
|
|
23780
|
-
}], 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$
|
|
23828
|
+
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$5.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }]; }, { hasPrint: [{
|
|
23781
23829
|
type: i0.Input
|
|
23782
23830
|
}], hasEventSelector: [{
|
|
23783
23831
|
type: i0.Input
|
|
@@ -27968,7 +28016,7 @@
|
|
|
27968
28016
|
i0__namespace.ɵɵadvance(1);
|
|
27969
28017
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.hasResults() || ctx.hasDrafts()));
|
|
27970
28018
|
}
|
|
27971
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$
|
|
28019
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], pipes: [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe], styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width:379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
|
|
27972
28020
|
(function () {
|
|
27973
28021
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchResultComponent, [{
|
|
27974
28022
|
type: i0.Component,
|
|
@@ -28026,7 +28074,7 @@
|
|
|
28026
28074
|
BrowserService
|
|
28027
28075
|
], imports: [[
|
|
28028
28076
|
i1.CommonModule,
|
|
28029
|
-
i1$
|
|
28077
|
+
i1$6.NgxPaginationModule,
|
|
28030
28078
|
i1$1.RouterModule,
|
|
28031
28079
|
i1$2.FormsModule,
|
|
28032
28080
|
i1$2.ReactiveFormsModule,
|
|
@@ -28038,7 +28086,7 @@
|
|
|
28038
28086
|
]] });
|
|
28039
28087
|
(function () {
|
|
28040
28088
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
|
|
28041
|
-
i1$
|
|
28089
|
+
i1$6.NgxPaginationModule,
|
|
28042
28090
|
i1$1.RouterModule,
|
|
28043
28091
|
i1$2.FormsModule,
|
|
28044
28092
|
i1$2.ReactiveFormsModule,
|
|
@@ -28054,7 +28102,7 @@
|
|
|
28054
28102
|
args: [{
|
|
28055
28103
|
imports: [
|
|
28056
28104
|
i1.CommonModule,
|
|
28057
|
-
i1$
|
|
28105
|
+
i1$6.NgxPaginationModule,
|
|
28058
28106
|
i1$1.RouterModule,
|
|
28059
28107
|
i1$2.FormsModule,
|
|
28060
28108
|
i1$2.ReactiveFormsModule,
|