@hmcts/ccd-case-ui-toolkit 5.0.46-case-file-view-media-viewer-scrolling-behaviour → 5.0.47-fix-case-link
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 +158 -106
- 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/base-field/abstract-form-field.component.js +11 -11
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +4 -3
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +25 -26
- package/esm2015/lib/shared/components/palette/case-link/read-case-link-field.component.js +3 -2
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +84 -41
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/components/palette/palette.service.js +5 -1
- package/esm2015/lib/shared/services/fields/fields.utils.js +2 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +147 -99
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-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.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +6 -3
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
122
|
-
var _c1$
|
|
122
|
+
var _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
123
123
|
var FooterComponent = /** @class */ (function () {
|
|
124
124
|
function FooterComponent() {
|
|
125
125
|
}
|
|
126
126
|
return FooterComponent;
|
|
127
127
|
}());
|
|
128
128
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
129
|
-
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
129
|
+
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
|
|
130
130
|
if (rf & 1) {
|
|
131
131
|
i0__namespace.ɵɵprojectionDef(_c0$_);
|
|
132
132
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var _c0$Z = [[["", "headerNavigation", ""]]];
|
|
211
|
-
var _c1$
|
|
211
|
+
var _c1$r = ["[headerNavigation]"];
|
|
212
212
|
var HeaderBarComponent = /** @class */ (function () {
|
|
213
213
|
function HeaderBarComponent() {
|
|
214
214
|
this.signOutRequest = new i0.EventEmitter();
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
return HeaderBarComponent;
|
|
220
220
|
}());
|
|
221
221
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
222
|
-
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
222
|
+
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
|
|
223
223
|
if (rf & 1) {
|
|
224
224
|
i0__namespace.ɵɵprojectionDef(_c0$Z);
|
|
225
225
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
@@ -283,14 +283,14 @@
|
|
|
283
283
|
})();
|
|
284
284
|
|
|
285
285
|
var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
286
|
-
var _c1$
|
|
286
|
+
var _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
287
287
|
var NavigationComponent = /** @class */ (function () {
|
|
288
288
|
function NavigationComponent() {
|
|
289
289
|
}
|
|
290
290
|
return NavigationComponent;
|
|
291
291
|
}());
|
|
292
292
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
293
|
-
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
293
|
+
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
294
294
|
if (rf & 1) {
|
|
295
295
|
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
296
296
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -438,14 +438,14 @@
|
|
|
438
438
|
})();
|
|
439
439
|
|
|
440
440
|
var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
441
|
-
var _c1$
|
|
441
|
+
var _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
442
442
|
var BodyComponent = /** @class */ (function () {
|
|
443
443
|
function BodyComponent() {
|
|
444
444
|
}
|
|
445
445
|
return BodyComponent;
|
|
446
446
|
}());
|
|
447
447
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
448
|
-
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
448
|
+
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
449
449
|
if (rf & 1) {
|
|
450
450
|
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
451
451
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1472,14 +1472,14 @@
|
|
|
1472
1472
|
})();
|
|
1473
1473
|
|
|
1474
1474
|
var _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1475
|
-
var _c1$
|
|
1475
|
+
var _c1$o = ["*"];
|
|
1476
1476
|
var TabComponent = /** @class */ (function () {
|
|
1477
1477
|
function TabComponent() {
|
|
1478
1478
|
}
|
|
1479
1479
|
return TabComponent;
|
|
1480
1480
|
}());
|
|
1481
1481
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1482
|
-
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1482
|
+
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$o, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
|
|
1483
1483
|
if (rf & 1) {
|
|
1484
1484
|
i0__namespace.ɵɵprojectionDef();
|
|
1485
1485
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
})();
|
|
1512
1512
|
|
|
1513
1513
|
var _c0$T = ["tab"];
|
|
1514
|
-
var _c1$
|
|
1514
|
+
var _c1$n = function () { return ["."]; };
|
|
1515
1515
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1516
1516
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
1517
1517
|
if (rf & 1) {
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
if (rf & 2) {
|
|
1527
1527
|
var panel_r1 = ctx.$implicit;
|
|
1528
1528
|
i0__namespace.ɵɵadvance(1);
|
|
1529
|
-
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$
|
|
1529
|
+
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$n))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1530
1530
|
i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1531
1531
|
i0__namespace.ɵɵadvance(2);
|
|
1532
1532
|
i0__namespace.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -3923,7 +3923,7 @@
|
|
|
3923
3923
|
if (!caseField) {
|
|
3924
3924
|
return false;
|
|
3925
3925
|
}
|
|
3926
|
-
return caseField.field_type.collection_field_type.id === 'CaseLink';
|
|
3926
|
+
return caseField.field_type.collection_field_type.id === 'CaseLink' && caseField.id === 'caseLinks';
|
|
3927
3927
|
};
|
|
3928
3928
|
FieldsUtils.cloneObject = function (obj) {
|
|
3929
3929
|
return Object.assign({}, obj);
|
|
@@ -4863,18 +4863,18 @@
|
|
|
4863
4863
|
return control;
|
|
4864
4864
|
};
|
|
4865
4865
|
AbstractFormFieldComponent.prototype.addControlToFormGroup = function (control, parent, replace) {
|
|
4866
|
-
if (replace) {
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4866
|
+
if (!replace) {
|
|
4867
|
+
parent.addControl(this.caseField.id, control);
|
|
4868
|
+
return control;
|
|
4869
|
+
}
|
|
4870
|
+
if (this.caseField.field_type && this.caseField.field_type.id === 'CaseLink'
|
|
4871
|
+
&& this.caseField.field_type.type === 'Complex'
|
|
4872
|
+
&& this.caseField.field_type.complex_fields.some(function (cf) { return cf.id === 'CaseReference'; })
|
|
4873
|
+
&& this.caseField.id !== 'caseLinks') {
|
|
4874
|
+
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4875
4875
|
}
|
|
4876
4876
|
else {
|
|
4877
|
-
parent.
|
|
4877
|
+
parent.setControl(this.caseField.id, control);
|
|
4878
4878
|
}
|
|
4879
4879
|
return control;
|
|
4880
4880
|
};
|
|
@@ -11695,7 +11695,7 @@
|
|
|
11695
11695
|
i0__namespace.ɵɵelementEnd();
|
|
11696
11696
|
}
|
|
11697
11697
|
}
|
|
11698
|
-
var _c1$
|
|
11698
|
+
var _c1$m = function (a0) { return { "form-group-error": a0 }; };
|
|
11699
11699
|
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11700
11700
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11701
11701
|
if (rf & 1) {
|
|
@@ -11716,7 +11716,7 @@
|
|
|
11716
11716
|
}
|
|
11717
11717
|
if (rf & 2) {
|
|
11718
11718
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11719
|
-
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
11719
|
+
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$m, ctx_r2.missingPostcode));
|
|
11720
11720
|
i0__namespace.ɵɵadvance(1);
|
|
11721
11721
|
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11722
11722
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -12003,7 +12003,7 @@
|
|
|
12003
12003
|
if (rf & 2) {
|
|
12004
12004
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12005
12005
|
i0__namespace.ɵɵadvance(1);
|
|
12006
|
-
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)
|
|
12006
|
+
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
12007
12007
|
}
|
|
12008
12008
|
}
|
|
12009
12009
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
@@ -12021,7 +12021,7 @@
|
|
|
12021
12021
|
i0__namespace.ɵɵelementEnd();
|
|
12022
12022
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12023
12023
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12024
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
12024
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
12025
12025
|
i0__namespace.ɵɵelementEnd();
|
|
12026
12026
|
i0__namespace.ɵɵelementEnd();
|
|
12027
12027
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12102,7 +12102,7 @@
|
|
|
12102
12102
|
}());
|
|
12103
12103
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
12104
12104
|
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), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
12105
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"
|
|
12105
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
12106
12106
|
if (rf & 1) {
|
|
12107
12107
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
12108
12108
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12145,7 +12145,7 @@
|
|
|
12145
12145
|
if (rf & 2) {
|
|
12146
12146
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12147
12147
|
i0__namespace.ɵɵadvance(1);
|
|
12148
|
-
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)
|
|
12148
|
+
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
12149
12149
|
}
|
|
12150
12150
|
}
|
|
12151
12151
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
@@ -12163,7 +12163,7 @@
|
|
|
12163
12163
|
i0__namespace.ɵɵelementEnd();
|
|
12164
12164
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12165
12165
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12166
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
12166
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
12167
12167
|
i0__namespace.ɵɵelementEnd();
|
|
12168
12168
|
i0__namespace.ɵɵelementEnd();
|
|
12169
12169
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12186,7 +12186,7 @@
|
|
|
12186
12186
|
return CaseFileViewFieldReadComponent;
|
|
12187
12187
|
}(CaseFileViewFieldComponent));
|
|
12188
12188
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
12189
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"
|
|
12189
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
12190
12190
|
if (rf & 1) {
|
|
12191
12191
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
12192
12192
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -13007,7 +13007,8 @@
|
|
|
13007
13007
|
ReadCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13008
13008
|
return (this.caseField.field_type &&
|
|
13009
13009
|
this.caseField.field_type.type === 'Collection' &&
|
|
13010
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
13010
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink' &&
|
|
13011
|
+
this.caseField.id === 'caseLinks');
|
|
13011
13012
|
};
|
|
13012
13013
|
return ReadCaseLinkFieldComponent;
|
|
13013
13014
|
}(AbstractFieldReadComponent));
|
|
@@ -13037,7 +13038,7 @@
|
|
|
13037
13038
|
var _c0$P = ["writeComplexFieldComponent"];
|
|
13038
13039
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) {
|
|
13039
13040
|
if (rf & 1) {
|
|
13040
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13041
|
+
i0__namespace.ɵɵelementStart(0, "span", 8);
|
|
13041
13042
|
i0__namespace.ɵɵtext(1);
|
|
13042
13043
|
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
13043
13044
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -13050,7 +13051,7 @@
|
|
|
13050
13051
|
}
|
|
13051
13052
|
function WriteCaseLinkFieldComponent_div_1_span_3_Template(rf, ctx) {
|
|
13052
13053
|
if (rf & 1) {
|
|
13053
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13054
|
+
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
13054
13055
|
i0__namespace.ɵɵtext(1);
|
|
13055
13056
|
i0__namespace.ɵɵelementEnd();
|
|
13056
13057
|
}
|
|
@@ -13060,34 +13061,52 @@
|
|
|
13060
13061
|
i0__namespace.ɵɵtextInterpolate(ctx_r3.caseField.hint_text);
|
|
13061
13062
|
}
|
|
13062
13063
|
}
|
|
13064
|
+
function WriteCaseLinkFieldComponent_div_1_span_4_Template(rf, ctx) {
|
|
13065
|
+
if (rf & 1) {
|
|
13066
|
+
i0__namespace.ɵɵelementStart(0, "span", 10);
|
|
13067
|
+
i0__namespace.ɵɵtext(1);
|
|
13068
|
+
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
13069
|
+
i0__namespace.ɵɵelementEnd();
|
|
13070
|
+
}
|
|
13071
|
+
if (rf & 2) {
|
|
13072
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
13073
|
+
i0__namespace.ɵɵadvance(1);
|
|
13074
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r4.caseReferenceControl.errors, ctx_r4.caseField.label));
|
|
13075
|
+
}
|
|
13076
|
+
}
|
|
13077
|
+
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
13063
13078
|
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) {
|
|
13064
13079
|
if (rf & 1) {
|
|
13065
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13066
|
-
i0__namespace.ɵɵelementStart(1, "label",
|
|
13067
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span",
|
|
13080
|
+
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
13081
|
+
i0__namespace.ɵɵelementStart(1, "label", 3);
|
|
13082
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span", 4);
|
|
13068
13083
|
i0__namespace.ɵɵelementEnd();
|
|
13069
|
-
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span",
|
|
13070
|
-
i0__namespace.ɵɵ
|
|
13084
|
+
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span", 5);
|
|
13085
|
+
i0__namespace.ɵɵtemplate(4, WriteCaseLinkFieldComponent_div_1_span_4_Template, 3, 4, "span", 6);
|
|
13086
|
+
i0__namespace.ɵɵelement(5, "input", 7);
|
|
13071
13087
|
i0__namespace.ɵɵelementEnd();
|
|
13072
13088
|
}
|
|
13073
13089
|
if (rf & 2) {
|
|
13074
13090
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
13091
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r0.caseLinkGroup)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$l, !ctx_r0.caseReferenceControl.valid && (ctx_r0.caseReferenceControl.dirty || ctx_r0.caseReferenceControl.touched)));
|
|
13075
13092
|
i0__namespace.ɵɵadvance(1);
|
|
13076
|
-
i0__namespace.ɵɵproperty("for", ctx_r0.
|
|
13093
|
+
i0__namespace.ɵɵproperty("for", ctx_r0.caseReferenceControl);
|
|
13077
13094
|
i0__namespace.ɵɵadvance(1);
|
|
13078
13095
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
13079
13096
|
i0__namespace.ɵɵadvance(1);
|
|
13080
13097
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
13081
13098
|
i0__namespace.ɵɵadvance(1);
|
|
13082
|
-
i0__namespace.ɵɵproperty("
|
|
13099
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReferenceControl.errors && (ctx_r0.caseReferenceControl.dirty || ctx_r0.caseReferenceControl.touched));
|
|
13100
|
+
i0__namespace.ɵɵadvance(1);
|
|
13101
|
+
i0__namespace.ɵɵproperty("id", ctx_r0.caseReferenceControl)("formControl", ctx_r0.caseReferenceControl);
|
|
13083
13102
|
}
|
|
13084
13103
|
}
|
|
13085
13104
|
function WriteCaseLinkFieldComponent_div_2_Template(rf, ctx) {
|
|
13086
13105
|
if (rf & 1) {
|
|
13087
|
-
var
|
|
13088
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13089
|
-
i0__namespace.ɵɵelementStart(1, "ccd-write-linked-cases",
|
|
13090
|
-
i0__namespace.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
13106
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13107
|
+
i0__namespace.ɵɵelementStart(0, "div", 11);
|
|
13108
|
+
i0__namespace.ɵɵelementStart(1, "ccd-write-linked-cases", 12);
|
|
13109
|
+
i0__namespace.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.submitLinkedCases(); });
|
|
13091
13110
|
i0__namespace.ɵɵelementEnd();
|
|
13092
13111
|
i0__namespace.ɵɵelementEnd();
|
|
13093
13112
|
}
|
|
@@ -13107,32 +13126,72 @@
|
|
|
13107
13126
|
}
|
|
13108
13127
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
13109
13128
|
var e_1, _a;
|
|
13110
|
-
|
|
13111
|
-
this.
|
|
13112
|
-
if (!this.
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13129
|
+
// Will be TRUE for new Case link/unlink journey
|
|
13130
|
+
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
13131
|
+
if (!this.containsCaseLinkCollection) {
|
|
13132
|
+
if (this.caseField.value) {
|
|
13133
|
+
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
13134
|
+
CaseReference: new i2.FormControl(this.caseField.value.CaseReference, i2.Validators.required),
|
|
13135
|
+
}), true);
|
|
13136
|
+
}
|
|
13137
|
+
else {
|
|
13138
|
+
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
13139
|
+
CaseReference: new i2.FormControl(null, i2.Validators.required),
|
|
13140
|
+
}), true);
|
|
13141
|
+
}
|
|
13142
|
+
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
13143
|
+
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
13144
|
+
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
13145
|
+
// field uses the Complex type, it is meant to be treated as one field
|
|
13146
|
+
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
13147
|
+
try {
|
|
13148
|
+
for (var _b = __values(this.caseField.field_type.complex_fields), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13149
|
+
var caseLinkSubField = _c.value;
|
|
13150
|
+
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
13151
|
+
}
|
|
13152
|
+
}
|
|
13153
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
13154
|
+
finally {
|
|
13155
|
+
try {
|
|
13156
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13157
|
+
}
|
|
13158
|
+
finally { if (e_1) throw e_1.error; }
|
|
13159
|
+
}
|
|
13160
|
+
}
|
|
13116
13161
|
}
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13162
|
+
};
|
|
13163
|
+
WriteCaseLinkFieldComponent.prototype.caseReferenceValidator = function () {
|
|
13164
|
+
var _this = this;
|
|
13165
|
+
return function (control) {
|
|
13166
|
+
if (control.value) {
|
|
13167
|
+
if (_this.validCaseReference(control.value)) {
|
|
13168
|
+
return null;
|
|
13124
13169
|
}
|
|
13170
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
13125
13171
|
}
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13172
|
+
else {
|
|
13173
|
+
if (control.touched) {
|
|
13174
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
13130
13175
|
}
|
|
13131
|
-
finally { if (e_1) throw e_1.error; }
|
|
13132
13176
|
}
|
|
13177
|
+
return null;
|
|
13178
|
+
};
|
|
13179
|
+
};
|
|
13180
|
+
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13181
|
+
if (!valueString) {
|
|
13182
|
+
return false;
|
|
13133
13183
|
}
|
|
13134
|
-
|
|
13184
|
+
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
13135
13185
|
};
|
|
13186
|
+
WriteCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13187
|
+
return (this.caseField.field_type &&
|
|
13188
|
+
this.caseField.field_type.type === 'Collection' &&
|
|
13189
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink' &&
|
|
13190
|
+
this.caseField.id === 'caseLinks');
|
|
13191
|
+
};
|
|
13192
|
+
/**
|
|
13193
|
+
* This method is applicable only for new Case link/unlink journey
|
|
13194
|
+
*/
|
|
13136
13195
|
WriteCaseLinkFieldComponent.prototype.submitLinkedCases = function () {
|
|
13137
13196
|
var formGroup = this.formGroup;
|
|
13138
13197
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -13144,17 +13203,6 @@
|
|
|
13144
13203
|
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
13145
13204
|
}
|
|
13146
13205
|
};
|
|
13147
|
-
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13148
|
-
if (!valueString) {
|
|
13149
|
-
return false;
|
|
13150
|
-
}
|
|
13151
|
-
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
13152
|
-
};
|
|
13153
|
-
WriteCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13154
|
-
return (this.caseField.field_type &&
|
|
13155
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
13156
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13157
|
-
};
|
|
13158
13206
|
return WriteCaseLinkFieldComponent;
|
|
13159
13207
|
}(AbstractFieldWriteComponent));
|
|
13160
13208
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
@@ -13166,11 +13214,11 @@
|
|
|
13166
13214
|
var _t = void 0;
|
|
13167
13215
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
13168
13216
|
}
|
|
13169
|
-
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["class", "form-group", 4, "ngIf"], [1, "form-group"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [3, "caseFields", "caseField", "formGroup", "isLinkedCasesJourney", "onLinkedCasesSelected"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) {
|
|
13217
|
+
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["class", "form-group", 3, "formGroup", "ngClass", 4, "ngIf"], ["class", "form-group", 4, "ngIf"], [1, "form-group", 3, "formGroup", "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "form-group"], [3, "caseFields", "caseField", "formGroup", "isLinkedCasesJourney", "onLinkedCasesSelected"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) {
|
|
13170
13218
|
if (rf & 1) {
|
|
13171
13219
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
13172
|
-
i0__namespace.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template,
|
|
13173
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div",
|
|
13220
|
+
i0__namespace.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template, 6, 10, "div", 0);
|
|
13221
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div", 1);
|
|
13174
13222
|
i0__namespace.ɵɵelementContainerEnd();
|
|
13175
13223
|
}
|
|
13176
13224
|
if (rf & 2) {
|
|
@@ -17853,9 +17901,13 @@
|
|
|
17853
17901
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
17854
17902
|
case 'JudicialUser':
|
|
17855
17903
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
17904
|
+
case 'CaseLink':
|
|
17905
|
+
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17856
17906
|
default:
|
|
17857
17907
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
17858
17908
|
}
|
|
17909
|
+
case 'CaseLink':
|
|
17910
|
+
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17859
17911
|
case 'Collection':
|
|
17860
17912
|
switch (caseField.field_type.collection_field_type.id) {
|
|
17861
17913
|
case 'CaseLink':
|
|
@@ -18178,16 +18230,16 @@
|
|
|
18178
18230
|
}] });
|
|
18179
18231
|
})();
|
|
18180
18232
|
|
|
18181
|
-
function
|
|
18233
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
|
|
18182
18234
|
if (rf & 1) {
|
|
18183
18235
|
i0__namespace.ɵɵelementContainer(0);
|
|
18184
18236
|
}
|
|
18185
18237
|
}
|
|
18186
18238
|
var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
18187
|
-
function
|
|
18239
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
|
|
18188
18240
|
if (rf & 1) {
|
|
18189
18241
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18190
|
-
i0__namespace.ɵɵtemplate(1,
|
|
18242
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18191
18243
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18192
18244
|
}
|
|
18193
18245
|
if (rf & 2) {
|
|
@@ -18230,7 +18282,7 @@
|
|
|
18230
18282
|
i0__namespace.ɵɵelement(3, "img", 12);
|
|
18231
18283
|
i0__namespace.ɵɵtext(4);
|
|
18232
18284
|
i0__namespace.ɵɵelementEnd();
|
|
18233
|
-
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
18285
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
|
|
18234
18286
|
i0__namespace.ɵɵelementEnd();
|
|
18235
18287
|
}
|
|
18236
18288
|
if (rf & 2) {
|
|
@@ -18326,47 +18378,46 @@
|
|
|
18326
18378
|
return CaseFileViewFolderSelectorComponent;
|
|
18327
18379
|
}());
|
|
18328
18380
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
|
|
18329
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "
|
|
18381
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [1, "close", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) {
|
|
18330
18382
|
if (rf & 1) {
|
|
18331
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
18332
|
-
i0__namespace.ɵɵ
|
|
18383
|
+
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
18384
|
+
i0__namespace.ɵɵtext(1, "Move File");
|
|
18333
18385
|
i0__namespace.ɵɵelementEnd();
|
|
18334
|
-
i0__namespace.ɵɵelementStart(
|
|
18335
|
-
i0__namespace.ɵɵtext(
|
|
18386
|
+
i0__namespace.ɵɵelementStart(2, "p");
|
|
18387
|
+
i0__namespace.ɵɵtext(3);
|
|
18336
18388
|
i0__namespace.ɵɵelementEnd();
|
|
18337
|
-
i0__namespace.ɵɵelementStart(
|
|
18338
|
-
i0__namespace.ɵɵ
|
|
18389
|
+
i0__namespace.ɵɵelementStart(4, "div", 1);
|
|
18390
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
|
|
18339
18391
|
i0__namespace.ɵɵelementEnd();
|
|
18340
|
-
i0__namespace.ɵɵelementStart(
|
|
18341
|
-
i0__namespace.ɵɵ
|
|
18392
|
+
i0__namespace.ɵɵelementStart(6, "div", 3);
|
|
18393
|
+
i0__namespace.ɵɵelementStart(7, "button", 4);
|
|
18394
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
18395
|
+
i0__namespace.ɵɵtext(8, "Save");
|
|
18342
18396
|
i0__namespace.ɵɵelementEnd();
|
|
18343
|
-
i0__namespace.ɵɵelementStart(
|
|
18344
|
-
i0__namespace.ɵɵ
|
|
18345
|
-
i0__namespace.ɵɵ
|
|
18346
|
-
i0__namespace.ɵɵtext(9, "Save");
|
|
18397
|
+
i0__namespace.ɵɵelementStart(9, "a", 5);
|
|
18398
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
|
|
18399
|
+
i0__namespace.ɵɵtext(10, "Cancel");
|
|
18347
18400
|
i0__namespace.ɵɵelementEnd();
|
|
18348
|
-
i0__namespace.ɵɵelementStart(10, "a", 6);
|
|
18349
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
18350
|
-
i0__namespace.ɵɵtext(11, "Cancel");
|
|
18351
18401
|
i0__namespace.ɵɵelementEnd();
|
|
18402
|
+
i0__namespace.ɵɵelementStart(11, "div", 6);
|
|
18403
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
18352
18404
|
i0__namespace.ɵɵelementEnd();
|
|
18353
18405
|
i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
18354
18406
|
}
|
|
18355
18407
|
if (rf & 2) {
|
|
18356
|
-
i0__namespace.ɵɵadvance(
|
|
18408
|
+
i0__namespace.ɵɵadvance(3);
|
|
18357
18409
|
i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
18358
18410
|
i0__namespace.ɵɵadvance(2);
|
|
18359
18411
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18360
18412
|
}
|
|
18361
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["
|
|
18413
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
|
|
18362
18414
|
(function () {
|
|
18363
18415
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18364
18416
|
type: i0.Component,
|
|
18365
18417
|
args: [{
|
|
18366
18418
|
selector: 'xui-case-file-view-folder-selector',
|
|
18367
18419
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
18368
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18369
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
18420
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18370
18421
|
}]
|
|
18371
18422
|
}], function () {
|
|
18372
18423
|
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
@@ -18918,7 +18969,7 @@
|
|
|
18918
18969
|
return Object.assign(documentTreeNode, node);
|
|
18919
18970
|
}
|
|
18920
18971
|
var filteredData = this.documentTreeData;
|
|
18921
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
18972
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
18922
18973
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
18923
18974
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
18924
18975
|
return true;
|
|
@@ -19000,6 +19051,7 @@
|
|
|
19000
19051
|
CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
|
|
19001
19052
|
var _this = this;
|
|
19002
19053
|
var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
19054
|
+
width: '570px',
|
|
19003
19055
|
data: { categories: this.categories, document: node }
|
|
19004
19056
|
});
|
|
19005
19057
|
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
@@ -19025,7 +19077,7 @@
|
|
|
19025
19077
|
}());
|
|
19026
19078
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
19027
19079
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19028
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
19080
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
|
|
19029
19081
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
|
|
19030
19082
|
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
19031
19083
|
if (rf & 1) {
|
|
@@ -25509,7 +25561,7 @@
|
|
|
25509
25561
|
WriteOrganisationComplexFieldComponent], [i1__namespace.AsyncPipe]);
|
|
25510
25562
|
i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
25511
25563
|
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
|
|
25512
|
-
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.
|
|
25564
|
+
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, WriteLinkedCasesComponent], [FieldLabelPipe, FirstErrorPipe]);
|
|
25513
25565
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
25514
25566
|
i0__namespace.ɵɵsetComponentScope(
|
|
25515
25567
|
// ComponentLauncher web components
|
|
@@ -30060,7 +30112,7 @@
|
|
|
30060
30112
|
if (rf & 1) {
|
|
30061
30113
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
30062
30114
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 33);
|
|
30063
|
-
i0__namespace.ɵɵelementStart(2, "
|
|
30115
|
+
i0__namespace.ɵɵelementStart(2, "td", 34);
|
|
30064
30116
|
i0__namespace.ɵɵelementStart(3, "span", 35);
|
|
30065
30117
|
i0__namespace.ɵɵelement(4, "ccd-field-read", 36);
|
|
30066
30118
|
i0__namespace.ɵɵelementEnd();
|