@hmcts/ccd-case-ui-toolkit 5.0.47-fix-case-link → 5.0.47-linked-cases-from-table-check
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 +129 -158
- 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/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 +3 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +26 -25
- package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +11 -2
- package/esm2015/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.js +14 -1
- package/esm2015/lib/shared/components/palette/case-link/read-case-link-field.component.js +2 -3
- package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +2 -1
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +41 -84
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/components/palette/palette.service.js +1 -5
- package/esm2015/lib/shared/services/fields/fields.utils.js +2 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +122 -147
- 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/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts +1 -0
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.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/services/linked-cases.service.d.ts +1 -0
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +3 -6
- 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$r = ["[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$r, 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$q = ["[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$q, 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$p = ["[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$p, 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$o = ["[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$o, 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$n = ["*"];
|
|
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$n, 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$m = 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$m))("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';
|
|
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 (
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4866
|
+
if (replace) {
|
|
4867
|
+
if (this.caseField.field_type && this.caseField.field_type.collection_field_type
|
|
4868
|
+
&& this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
4869
|
+
&& this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4870
|
+
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4871
|
+
}
|
|
4872
|
+
else {
|
|
4873
|
+
parent.setControl(this.caseField.id, control);
|
|
4874
|
+
}
|
|
4875
4875
|
}
|
|
4876
4876
|
else {
|
|
4877
|
-
parent.
|
|
4877
|
+
parent.addControl(this.caseField.id, control);
|
|
4878
4878
|
}
|
|
4879
4879
|
return control;
|
|
4880
4880
|
};
|
|
@@ -11409,6 +11409,7 @@
|
|
|
11409
11409
|
this.isLinkedCasesEventTrigger = false;
|
|
11410
11410
|
this.linkCaseReasons = [];
|
|
11411
11411
|
this.linkedCases = [];
|
|
11412
|
+
this.linkedCasesFrom = [];
|
|
11412
11413
|
this.initialCaseLinks = [];
|
|
11413
11414
|
this.editMode = false;
|
|
11414
11415
|
this.jurisdictionsResponse = [];
|
|
@@ -11695,7 +11696,7 @@
|
|
|
11695
11696
|
i0__namespace.ɵɵelementEnd();
|
|
11696
11697
|
}
|
|
11697
11698
|
}
|
|
11698
|
-
var _c1$
|
|
11699
|
+
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
11699
11700
|
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11700
11701
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11701
11702
|
if (rf & 1) {
|
|
@@ -11716,7 +11717,7 @@
|
|
|
11716
11717
|
}
|
|
11717
11718
|
if (rf & 2) {
|
|
11718
11719
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11719
|
-
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
11720
|
+
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
11720
11721
|
i0__namespace.ɵɵadvance(1);
|
|
11721
11722
|
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11722
11723
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -12003,7 +12004,7 @@
|
|
|
12003
12004
|
if (rf & 2) {
|
|
12004
12005
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12005
12006
|
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);
|
|
12007
|
+
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)("height", "94.5vh");
|
|
12007
12008
|
}
|
|
12008
12009
|
}
|
|
12009
12010
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
@@ -12021,7 +12022,7 @@
|
|
|
12021
12022
|
i0__namespace.ɵɵelementEnd();
|
|
12022
12023
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12023
12024
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12024
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
12025
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12025
12026
|
i0__namespace.ɵɵelementEnd();
|
|
12026
12027
|
i0__namespace.ɵɵelementEnd();
|
|
12027
12028
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12102,7 +12103,7 @@
|
|
|
12102
12103
|
}());
|
|
12103
12104
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
12104
12105
|
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"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
12106
|
+
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", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
12106
12107
|
if (rf & 1) {
|
|
12107
12108
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
12108
12109
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12145,7 +12146,7 @@
|
|
|
12145
12146
|
if (rf & 2) {
|
|
12146
12147
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12147
12148
|
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);
|
|
12149
|
+
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)("height", "94.5vh");
|
|
12149
12150
|
}
|
|
12150
12151
|
}
|
|
12151
12152
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
@@ -12163,7 +12164,7 @@
|
|
|
12163
12164
|
i0__namespace.ɵɵelementEnd();
|
|
12164
12165
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12165
12166
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12166
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
12167
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12167
12168
|
i0__namespace.ɵɵelementEnd();
|
|
12168
12169
|
i0__namespace.ɵɵelementEnd();
|
|
12169
12170
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12186,7 +12187,7 @@
|
|
|
12186
12187
|
return CaseFileViewFieldReadComponent;
|
|
12187
12188
|
}(CaseFileViewFieldComponent));
|
|
12188
12189
|
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"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
12190
|
+
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", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
12190
12191
|
if (rf & 1) {
|
|
12191
12192
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
12192
12193
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -13007,8 +13008,7 @@
|
|
|
13007
13008
|
ReadCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13008
13009
|
return (this.caseField.field_type &&
|
|
13009
13010
|
this.caseField.field_type.type === 'Collection' &&
|
|
13010
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
13011
|
-
this.caseField.id === 'caseLinks');
|
|
13011
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13012
13012
|
};
|
|
13013
13013
|
return ReadCaseLinkFieldComponent;
|
|
13014
13014
|
}(AbstractFieldReadComponent));
|
|
@@ -13038,7 +13038,7 @@
|
|
|
13038
13038
|
var _c0$P = ["writeComplexFieldComponent"];
|
|
13039
13039
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) {
|
|
13040
13040
|
if (rf & 1) {
|
|
13041
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13041
|
+
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
13042
13042
|
i0__namespace.ɵɵtext(1);
|
|
13043
13043
|
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
13044
13044
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -13051,7 +13051,7 @@
|
|
|
13051
13051
|
}
|
|
13052
13052
|
function WriteCaseLinkFieldComponent_div_1_span_3_Template(rf, ctx) {
|
|
13053
13053
|
if (rf & 1) {
|
|
13054
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13054
|
+
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
13055
13055
|
i0__namespace.ɵɵtext(1);
|
|
13056
13056
|
i0__namespace.ɵɵelementEnd();
|
|
13057
13057
|
}
|
|
@@ -13061,52 +13061,34 @@
|
|
|
13061
13061
|
i0__namespace.ɵɵtextInterpolate(ctx_r3.caseField.hint_text);
|
|
13062
13062
|
}
|
|
13063
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 }; };
|
|
13078
13064
|
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) {
|
|
13079
13065
|
if (rf & 1) {
|
|
13080
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13081
|
-
i0__namespace.ɵɵelementStart(1, "label",
|
|
13082
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span",
|
|
13066
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
13067
|
+
i0__namespace.ɵɵelementStart(1, "label", 2);
|
|
13068
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span", 3);
|
|
13083
13069
|
i0__namespace.ɵɵelementEnd();
|
|
13084
|
-
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span",
|
|
13085
|
-
i0__namespace.ɵɵ
|
|
13086
|
-
i0__namespace.ɵɵelement(5, "input", 7);
|
|
13070
|
+
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span", 4);
|
|
13071
|
+
i0__namespace.ɵɵelement(4, "input", 5);
|
|
13087
13072
|
i0__namespace.ɵɵelementEnd();
|
|
13088
13073
|
}
|
|
13089
13074
|
if (rf & 2) {
|
|
13090
13075
|
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)));
|
|
13092
13076
|
i0__namespace.ɵɵadvance(1);
|
|
13093
|
-
i0__namespace.ɵɵproperty("for", ctx_r0.
|
|
13077
|
+
i0__namespace.ɵɵproperty("for", ctx_r0.id());
|
|
13094
13078
|
i0__namespace.ɵɵadvance(1);
|
|
13095
13079
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
13096
13080
|
i0__namespace.ɵɵadvance(1);
|
|
13097
13081
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
13098
13082
|
i0__namespace.ɵɵadvance(1);
|
|
13099
|
-
i0__namespace.ɵɵproperty("
|
|
13100
|
-
i0__namespace.ɵɵadvance(1);
|
|
13101
|
-
i0__namespace.ɵɵproperty("id", ctx_r0.caseReferenceControl)("formControl", ctx_r0.caseReferenceControl);
|
|
13083
|
+
i0__namespace.ɵɵproperty("id", ctx_r0.id())("formControl", ctx_r0.caseReferenceControl);
|
|
13102
13084
|
}
|
|
13103
13085
|
}
|
|
13104
13086
|
function WriteCaseLinkFieldComponent_div_2_Template(rf, ctx) {
|
|
13105
13087
|
if (rf & 1) {
|
|
13106
|
-
var
|
|
13107
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13108
|
-
i0__namespace.ɵɵelementStart(1, "ccd-write-linked-cases",
|
|
13109
|
-
i0__namespace.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
13088
|
+
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13089
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
13090
|
+
i0__namespace.ɵɵelementStart(1, "ccd-write-linked-cases", 8);
|
|
13091
|
+
i0__namespace.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(); return ctx_r4.submitLinkedCases(); });
|
|
13110
13092
|
i0__namespace.ɵɵelementEnd();
|
|
13111
13093
|
i0__namespace.ɵɵelementEnd();
|
|
13112
13094
|
}
|
|
@@ -13126,72 +13108,32 @@
|
|
|
13126
13108
|
}
|
|
13127
13109
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
13128
13110
|
var e_1, _a;
|
|
13129
|
-
|
|
13130
|
-
this.
|
|
13131
|
-
if (!this.
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
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
|
-
}
|
|
13111
|
+
this.formArray = this.registerControl(new i2.FormArray([]), true);
|
|
13112
|
+
this.formArray['caseField'] = this.caseField;
|
|
13113
|
+
if (!this.hasCaseLinkCollection()) {
|
|
13114
|
+
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
13115
|
+
CaseReference: new i2.FormControl(this.caseField.value.CaseReference, i2.Validators.required),
|
|
13116
|
+
}), true);
|
|
13161
13117
|
}
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13118
|
+
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
13119
|
+
// field uses the Complex type, it is meant to be treated as one field
|
|
13120
|
+
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
13121
|
+
try {
|
|
13122
|
+
for (var _b = __values(this.caseField.field_type.complex_fields), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13123
|
+
var caseLinkSubField = _c.value;
|
|
13124
|
+
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
13169
13125
|
}
|
|
13170
|
-
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
13171
13126
|
}
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13127
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
13128
|
+
finally {
|
|
13129
|
+
try {
|
|
13130
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13175
13131
|
}
|
|
13132
|
+
finally { if (e_1) throw e_1.error; }
|
|
13176
13133
|
}
|
|
13177
|
-
return null;
|
|
13178
|
-
};
|
|
13179
|
-
};
|
|
13180
|
-
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13181
|
-
if (!valueString) {
|
|
13182
|
-
return false;
|
|
13183
13134
|
}
|
|
13184
|
-
|
|
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');
|
|
13135
|
+
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
13191
13136
|
};
|
|
13192
|
-
/**
|
|
13193
|
-
* This method is applicable only for new Case link/unlink journey
|
|
13194
|
-
*/
|
|
13195
13137
|
WriteCaseLinkFieldComponent.prototype.submitLinkedCases = function () {
|
|
13196
13138
|
var formGroup = this.formGroup;
|
|
13197
13139
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -13203,6 +13145,17 @@
|
|
|
13203
13145
|
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
13204
13146
|
}
|
|
13205
13147
|
};
|
|
13148
|
+
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13149
|
+
if (!valueString) {
|
|
13150
|
+
return false;
|
|
13151
|
+
}
|
|
13152
|
+
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
13153
|
+
};
|
|
13154
|
+
WriteCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13155
|
+
return (this.caseField.field_type &&
|
|
13156
|
+
this.caseField.field_type.type === 'Collection' &&
|
|
13157
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13158
|
+
};
|
|
13206
13159
|
return WriteCaseLinkFieldComponent;
|
|
13207
13160
|
}(AbstractFieldWriteComponent));
|
|
13208
13161
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
@@ -13214,11 +13167,11 @@
|
|
|
13214
13167
|
var _t = void 0;
|
|
13215
13168
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
13216
13169
|
}
|
|
13217
|
-
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["class", "form-group",
|
|
13170
|
+
}, 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) {
|
|
13218
13171
|
if (rf & 1) {
|
|
13219
13172
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
13220
|
-
i0__namespace.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template,
|
|
13221
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div",
|
|
13173
|
+
i0__namespace.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template, 5, 5, "div", 0);
|
|
13174
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div", 0);
|
|
13222
13175
|
i0__namespace.ɵɵelementContainerEnd();
|
|
13223
13176
|
}
|
|
13224
13177
|
if (rf & 2) {
|
|
@@ -17901,13 +17854,9 @@
|
|
|
17901
17854
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
17902
17855
|
case 'JudicialUser':
|
|
17903
17856
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
17904
|
-
case 'CaseLink':
|
|
17905
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17906
17857
|
default:
|
|
17907
17858
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
17908
17859
|
}
|
|
17909
|
-
case 'CaseLink':
|
|
17910
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17911
17860
|
case 'Collection':
|
|
17912
17861
|
switch (caseField.field_type.collection_field_type.id) {
|
|
17913
17862
|
case 'CaseLink':
|
|
@@ -18230,16 +18179,16 @@
|
|
|
18230
18179
|
}] });
|
|
18231
18180
|
})();
|
|
18232
18181
|
|
|
18233
|
-
function
|
|
18182
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
18234
18183
|
if (rf & 1) {
|
|
18235
18184
|
i0__namespace.ɵɵelementContainer(0);
|
|
18236
18185
|
}
|
|
18237
18186
|
}
|
|
18238
18187
|
var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
18239
|
-
function
|
|
18188
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
18240
18189
|
if (rf & 1) {
|
|
18241
18190
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18242
|
-
i0__namespace.ɵɵtemplate(1,
|
|
18191
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18243
18192
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18244
18193
|
}
|
|
18245
18194
|
if (rf & 2) {
|
|
@@ -18282,7 +18231,7 @@
|
|
|
18282
18231
|
i0__namespace.ɵɵelement(3, "img", 12);
|
|
18283
18232
|
i0__namespace.ɵɵtext(4);
|
|
18284
18233
|
i0__namespace.ɵɵelementEnd();
|
|
18285
|
-
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
18234
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
18286
18235
|
i0__namespace.ɵɵelementEnd();
|
|
18287
18236
|
}
|
|
18288
18237
|
if (rf & 2) {
|
|
@@ -18378,46 +18327,47 @@
|
|
|
18378
18327
|
return CaseFileViewFolderSelectorComponent;
|
|
18379
18328
|
}());
|
|
18380
18329
|
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)); };
|
|
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"], [
|
|
18330
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [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"], ["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) {
|
|
18382
18331
|
if (rf & 1) {
|
|
18383
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
18384
|
-
i0__namespace.ɵɵ
|
|
18332
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18333
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
18385
18334
|
i0__namespace.ɵɵelementEnd();
|
|
18386
|
-
i0__namespace.ɵɵelementStart(
|
|
18387
|
-
i0__namespace.ɵɵtext(
|
|
18335
|
+
i0__namespace.ɵɵelementStart(1, "h2", 1);
|
|
18336
|
+
i0__namespace.ɵɵtext(2, "Move File");
|
|
18388
18337
|
i0__namespace.ɵɵelementEnd();
|
|
18389
|
-
i0__namespace.ɵɵelementStart(
|
|
18390
|
-
i0__namespace.ɵɵ
|
|
18338
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
18339
|
+
i0__namespace.ɵɵtext(4);
|
|
18391
18340
|
i0__namespace.ɵɵelementEnd();
|
|
18392
|
-
i0__namespace.ɵɵelementStart(
|
|
18393
|
-
i0__namespace.ɵɵ
|
|
18394
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
18395
|
-
i0__namespace.ɵɵtext(8, "Save");
|
|
18341
|
+
i0__namespace.ɵɵelementStart(5, "div", 2);
|
|
18342
|
+
i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
18396
18343
|
i0__namespace.ɵɵelementEnd();
|
|
18397
|
-
i0__namespace.ɵɵelementStart(
|
|
18398
|
-
i0__namespace.ɵɵ
|
|
18399
|
-
i0__namespace.ɵɵ
|
|
18344
|
+
i0__namespace.ɵɵelementStart(7, "div", 4);
|
|
18345
|
+
i0__namespace.ɵɵelementStart(8, "button", 5);
|
|
18346
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
18347
|
+
i0__namespace.ɵɵtext(9, "Save");
|
|
18400
18348
|
i0__namespace.ɵɵelementEnd();
|
|
18349
|
+
i0__namespace.ɵɵelementStart(10, "a", 6);
|
|
18350
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
18351
|
+
i0__namespace.ɵɵtext(11, "Cancel");
|
|
18401
18352
|
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(); });
|
|
18404
18353
|
i0__namespace.ɵɵelementEnd();
|
|
18405
18354
|
i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
18406
18355
|
}
|
|
18407
18356
|
if (rf & 2) {
|
|
18408
|
-
i0__namespace.ɵɵadvance(
|
|
18357
|
+
i0__namespace.ɵɵadvance(4);
|
|
18409
18358
|
i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
18410
18359
|
i0__namespace.ɵɵadvance(2);
|
|
18411
18360
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18412
18361
|
}
|
|
18413
|
-
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["
|
|
18362
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
|
|
18414
18363
|
(function () {
|
|
18415
18364
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18416
18365
|
type: i0.Component,
|
|
18417
18366
|
args: [{
|
|
18418
18367
|
selector: 'xui-case-file-view-folder-selector',
|
|
18419
18368
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
18420
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18369
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
18370
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18421
18371
|
}]
|
|
18422
18372
|
}], function () {
|
|
18423
18373
|
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
@@ -18969,7 +18919,7 @@
|
|
|
18969
18919
|
return Object.assign(documentTreeNode, node);
|
|
18970
18920
|
}
|
|
18971
18921
|
var filteredData = this.documentTreeData;
|
|
18972
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
18922
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
18973
18923
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
18974
18924
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
18975
18925
|
return true;
|
|
@@ -19051,7 +19001,6 @@
|
|
|
19051
19001
|
CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
|
|
19052
19002
|
var _this = this;
|
|
19053
19003
|
var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
19054
|
-
width: '570px',
|
|
19055
19004
|
data: { categories: this.categories, document: node }
|
|
19056
19005
|
});
|
|
19057
19006
|
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
@@ -19077,7 +19026,7 @@
|
|
|
19077
19026
|
}());
|
|
19078
19027
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
19079
19028
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19080
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
19029
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
19081
19030
|
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)); };
|
|
19082
19031
|
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) {
|
|
19083
19032
|
if (rf & 1) {
|
|
@@ -21470,7 +21419,8 @@
|
|
|
21470
21419
|
if (this.linkCaseForm.valid &&
|
|
21471
21420
|
!this.isCaseSelected(this.selectedCases) &&
|
|
21472
21421
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
21473
|
-
!this.isCaseSelectedSameAsCurrentCase()
|
|
21422
|
+
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
21423
|
+
!this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
21474
21424
|
this.getCaseInfo();
|
|
21475
21425
|
}
|
|
21476
21426
|
else {
|
|
@@ -21520,6 +21470,14 @@
|
|
|
21520
21470
|
fieldId: 'caseNumber',
|
|
21521
21471
|
});
|
|
21522
21472
|
}
|
|
21473
|
+
if (this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
21474
|
+
this.caseSelectionError = exports.LinkedCasesErrorMessages.CasesLinkedError;
|
|
21475
|
+
this.errorMessages.push({
|
|
21476
|
+
title: 'dummy-case-number',
|
|
21477
|
+
description: exports.LinkedCasesErrorMessages.CasesLinkedError,
|
|
21478
|
+
fieldId: 'caseNumber',
|
|
21479
|
+
});
|
|
21480
|
+
}
|
|
21523
21481
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
21524
21482
|
this.errorMessages.push({
|
|
21525
21483
|
title: 'dummy-case-number',
|
|
@@ -21907,6 +21865,9 @@
|
|
|
21907
21865
|
this.caseId = this.route.snapshot.data.case.case_id;
|
|
21908
21866
|
this.getLinkedCases().subscribe(function (response) {
|
|
21909
21867
|
_this.isServerError = false;
|
|
21868
|
+
if (response.linkedCases) {
|
|
21869
|
+
_this.setLinkiedCasesFrom(response.linkedCases);
|
|
21870
|
+
}
|
|
21910
21871
|
_this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(function (item) {
|
|
21911
21872
|
var mappedCasetype = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
21912
21873
|
var mappedCasetypeDescription = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
@@ -21921,6 +21882,16 @@
|
|
|
21921
21882
|
_this.notifyAPIFailure.emit(true);
|
|
21922
21883
|
});
|
|
21923
21884
|
};
|
|
21885
|
+
LinkedCasesFromTableComponent.prototype.setLinkiedCasesFrom = function (linkedCases) {
|
|
21886
|
+
var caseLinks = linkedCases.map(function (item) {
|
|
21887
|
+
return {
|
|
21888
|
+
caseReference: item.caseReference,
|
|
21889
|
+
caseService: item.ccdJurisdiction,
|
|
21890
|
+
caseType: item.ccdCaseType,
|
|
21891
|
+
};
|
|
21892
|
+
});
|
|
21893
|
+
this.linkedCasesService.linkedCasesFrom = caseLinks;
|
|
21894
|
+
};
|
|
21924
21895
|
LinkedCasesFromTableComponent.prototype.getLinkedCases = function () {
|
|
21925
21896
|
return this.casesService.getLinkedCases(this.caseId);
|
|
21926
21897
|
};
|
|
@@ -25561,7 +25532,7 @@
|
|
|
25561
25532
|
WriteOrganisationComplexFieldComponent], [i1__namespace.AsyncPipe]);
|
|
25562
25533
|
i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
25563
25534
|
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
|
|
25564
|
-
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.
|
|
25535
|
+
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, WriteLinkedCasesComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
25565
25536
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
25566
25537
|
i0__namespace.ɵɵsetComponentScope(
|
|
25567
25538
|
// ComponentLauncher web components
|