@hmcts/ccd-case-ui-toolkit 5.0.47-fix-case-link → 5.0.48-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
|
@@ -116,11 +116,11 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
116
116
|
i0.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
117
117
|
} }
|
|
118
118
|
const _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
119
|
-
const _c1$
|
|
119
|
+
const _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
120
120
|
class FooterComponent {
|
|
121
121
|
}
|
|
122
122
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
123
|
-
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
123
|
+
FooterComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
124
124
|
i0.ɵɵprojectionDef(_c0$_);
|
|
125
125
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
126
126
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -189,7 +189,7 @@ function HeaderBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
189
189
|
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
190
190
|
} }
|
|
191
191
|
const _c0$Z = [[["", "headerNavigation", ""]]];
|
|
192
|
-
const _c1$
|
|
192
|
+
const _c1$q = ["[headerNavigation]"];
|
|
193
193
|
class HeaderBarComponent {
|
|
194
194
|
constructor() {
|
|
195
195
|
this.signOutRequest = new EventEmitter();
|
|
@@ -199,7 +199,7 @@ class HeaderBarComponent {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
202
|
-
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
202
|
+
HeaderBarComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
203
203
|
i0.ɵɵprojectionDef(_c0$Z);
|
|
204
204
|
i0.ɵɵelementStart(0, "header", 0);
|
|
205
205
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -258,11 +258,11 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
258
258
|
}] }); })();
|
|
259
259
|
|
|
260
260
|
const _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
261
|
-
const _c1$
|
|
261
|
+
const _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
262
262
|
class NavigationComponent {
|
|
263
263
|
}
|
|
264
264
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
265
|
-
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
265
|
+
NavigationComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
266
266
|
i0.ɵɵprojectionDef(_c0$Y);
|
|
267
267
|
i0.ɵɵelementStart(0, "div");
|
|
268
268
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
@@ -381,11 +381,11 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
381
381
|
}], null, null); })();
|
|
382
382
|
|
|
383
383
|
const _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
384
|
-
const _c1$
|
|
384
|
+
const _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
385
385
|
class BodyComponent {
|
|
386
386
|
}
|
|
387
387
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
388
|
-
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
388
|
+
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
389
389
|
i0.ɵɵprojectionDef(_c0$X);
|
|
390
390
|
i0.ɵɵelementStart(0, "div", 0);
|
|
391
391
|
i0.ɵɵprojection(1);
|
|
@@ -1012,11 +1012,11 @@ NotificationBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationB
|
|
|
1012
1012
|
}] }); })();
|
|
1013
1013
|
|
|
1014
1014
|
const _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1015
|
-
const _c1$
|
|
1015
|
+
const _c1$n = ["*"];
|
|
1016
1016
|
class TabComponent {
|
|
1017
1017
|
}
|
|
1018
1018
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1019
|
-
TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1019
|
+
TabComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
1020
1020
|
i0.ɵɵprojectionDef();
|
|
1021
1021
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1022
1022
|
i0.ɵɵprojection(1);
|
|
@@ -1043,7 +1043,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1043
1043
|
}] }); })();
|
|
1044
1044
|
|
|
1045
1045
|
const _c0$T = ["tab"];
|
|
1046
|
-
const _c1$
|
|
1046
|
+
const _c1$m = function () { return ["."]; };
|
|
1047
1047
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1048
1048
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
1049
1049
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -1056,7 +1056,7 @@ function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1056
1056
|
} if (rf & 2) {
|
|
1057
1057
|
const panel_r1 = ctx.$implicit;
|
|
1058
1058
|
i0.ɵɵadvance(1);
|
|
1059
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(6, _c1$
|
|
1059
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1060
1060
|
i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1061
1061
|
i0.ɵɵadvance(2);
|
|
1062
1062
|
i0.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -3314,7 +3314,7 @@ class FieldsUtils {
|
|
|
3314
3314
|
if (!caseField) {
|
|
3315
3315
|
return false;
|
|
3316
3316
|
}
|
|
3317
|
-
return caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
3317
|
+
return caseField.field_type.collection_field_type.id === 'CaseLink';
|
|
3318
3318
|
}
|
|
3319
3319
|
static cloneObject(obj) {
|
|
3320
3320
|
return Object.assign({}, obj);
|
|
@@ -4216,18 +4216,18 @@ class AbstractFormFieldComponent {
|
|
|
4216
4216
|
return control;
|
|
4217
4217
|
}
|
|
4218
4218
|
addControlToFormGroup(control, parent, replace) {
|
|
4219
|
-
if (
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4219
|
+
if (replace) {
|
|
4220
|
+
if (this.caseField.field_type && this.caseField.field_type.collection_field_type
|
|
4221
|
+
&& this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
4222
|
+
&& this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4223
|
+
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4224
|
+
}
|
|
4225
|
+
else {
|
|
4226
|
+
parent.setControl(this.caseField.id, control);
|
|
4227
|
+
}
|
|
4228
4228
|
}
|
|
4229
4229
|
else {
|
|
4230
|
-
parent.
|
|
4230
|
+
parent.addControl(this.caseField.id, control);
|
|
4231
4231
|
}
|
|
4232
4232
|
return control;
|
|
4233
4233
|
}
|
|
@@ -9855,6 +9855,7 @@ class LinkedCasesService {
|
|
|
9855
9855
|
this.isLinkedCasesEventTrigger = false;
|
|
9856
9856
|
this.linkCaseReasons = [];
|
|
9857
9857
|
this.linkedCases = [];
|
|
9858
|
+
this.linkedCasesFrom = [];
|
|
9858
9859
|
this.initialCaseLinks = [];
|
|
9859
9860
|
this.editMode = false;
|
|
9860
9861
|
this.jurisdictionsResponse = [];
|
|
@@ -10284,7 +10285,7 @@ function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (r
|
|
|
10284
10285
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
10285
10286
|
i0.ɵɵelementEnd();
|
|
10286
10287
|
} }
|
|
10287
|
-
const _c1$
|
|
10288
|
+
const _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
10288
10289
|
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
10289
10290
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10290
10291
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -10303,7 +10304,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10303
10304
|
i0.ɵɵelementEnd();
|
|
10304
10305
|
} if (rf & 2) {
|
|
10305
10306
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10306
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
10307
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
10307
10308
|
i0.ɵɵadvance(1);
|
|
10308
10309
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
10309
10310
|
i0.ɵɵadvance(3);
|
|
@@ -10557,7 +10558,7 @@ function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if
|
|
|
10557
10558
|
} if (rf & 2) {
|
|
10558
10559
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10559
10560
|
i0.ɵɵadvance(1);
|
|
10560
|
-
i0.ɵɵ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);
|
|
10561
|
+
i0.ɵɵ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");
|
|
10561
10562
|
} }
|
|
10562
10563
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10563
10564
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -10573,7 +10574,7 @@ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10573
10574
|
i0.ɵɵelementEnd();
|
|
10574
10575
|
i0.ɵɵelement(6, "div", 9);
|
|
10575
10576
|
i0.ɵɵelementStart(7, "div", 10);
|
|
10576
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
10577
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10577
10578
|
i0.ɵɵelementEnd();
|
|
10578
10579
|
i0.ɵɵelementEnd();
|
|
10579
10580
|
i0.ɵɵelementEnd();
|
|
@@ -10649,7 +10650,7 @@ class CaseFileViewFieldComponent {
|
|
|
10649
10650
|
}
|
|
10650
10651
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10651
10652
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
10652
|
-
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
10653
|
+
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
10653
10654
|
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10654
10655
|
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
10655
10656
|
} if (rf & 2) {
|
|
@@ -10683,7 +10684,7 @@ function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
|
|
|
10683
10684
|
} if (rf & 2) {
|
|
10684
10685
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10685
10686
|
i0.ɵɵadvance(1);
|
|
10686
|
-
i0.ɵɵ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);
|
|
10687
|
+
i0.ɵɵ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");
|
|
10687
10688
|
} }
|
|
10688
10689
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10689
10690
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -10699,7 +10700,7 @@ function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10699
10700
|
i0.ɵɵelementEnd();
|
|
10700
10701
|
i0.ɵɵelement(6, "div", 9);
|
|
10701
10702
|
i0.ɵɵelementStart(7, "div", 10);
|
|
10702
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
10703
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10703
10704
|
i0.ɵɵelementEnd();
|
|
10704
10705
|
i0.ɵɵelementEnd();
|
|
10705
10706
|
i0.ɵɵelementEnd();
|
|
@@ -10717,7 +10718,7 @@ class CaseFileViewFieldReadComponent extends CaseFileViewFieldComponent {
|
|
|
10717
10718
|
}
|
|
10718
10719
|
}
|
|
10719
10720
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
10720
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
10721
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
|
|
10721
10722
|
i0.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
10722
10723
|
i0.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
10723
10724
|
} if (rf & 2) {
|
|
@@ -11460,8 +11461,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
|
11460
11461
|
hasCaseLinkCollection() {
|
|
11461
11462
|
return (this.caseField.field_type &&
|
|
11462
11463
|
this.caseField.field_type.type === 'Collection' &&
|
|
11463
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
11464
|
-
this.caseField.id === 'caseLinks');
|
|
11464
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
11465
11465
|
}
|
|
11466
11466
|
}
|
|
11467
11467
|
ReadCaseLinkFieldComponent.ɵfac = function ReadCaseLinkFieldComponent_Factory(t) { return ɵReadCaseLinkFieldComponent_BaseFactory(t || ReadCaseLinkFieldComponent); };
|
|
@@ -11484,7 +11484,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11484
11484
|
|
|
11485
11485
|
const _c0$P = ["writeComplexFieldComponent"];
|
|
11486
11486
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11487
|
-
i0.ɵɵelementStart(0, "span",
|
|
11487
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
11488
11488
|
i0.ɵɵtext(1);
|
|
11489
11489
|
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
11490
11490
|
i0.ɵɵelementEnd();
|
|
@@ -11494,7 +11494,7 @@ function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) { if (rf & 1
|
|
|
11494
11494
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.caseField));
|
|
11495
11495
|
} }
|
|
11496
11496
|
function WriteCaseLinkFieldComponent_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
11497
|
-
i0.ɵɵelementStart(0, "span",
|
|
11497
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
11498
11498
|
i0.ɵɵtext(1);
|
|
11499
11499
|
i0.ɵɵelementEnd();
|
|
11500
11500
|
} if (rf & 2) {
|
|
@@ -11502,45 +11502,30 @@ function WriteCaseLinkFieldComponent_div_1_span_3_Template(rf, ctx) { if (rf & 1
|
|
|
11502
11502
|
i0.ɵɵadvance(1);
|
|
11503
11503
|
i0.ɵɵtextInterpolate(ctx_r3.caseField.hint_text);
|
|
11504
11504
|
} }
|
|
11505
|
-
function WriteCaseLinkFieldComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
11506
|
-
i0.ɵɵelementStart(0, "span", 10);
|
|
11507
|
-
i0.ɵɵtext(1);
|
|
11508
|
-
i0.ɵɵpipe(2, "ccdFirstError");
|
|
11509
|
-
i0.ɵɵelementEnd();
|
|
11510
|
-
} if (rf & 2) {
|
|
11511
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
11512
|
-
i0.ɵɵadvance(1);
|
|
11513
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r4.caseReferenceControl.errors, ctx_r4.caseField.label));
|
|
11514
|
-
} }
|
|
11515
|
-
const _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
11516
11505
|
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11517
|
-
i0.ɵɵelementStart(0, "div",
|
|
11518
|
-
i0.ɵɵelementStart(1, "label",
|
|
11519
|
-
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span",
|
|
11506
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
11507
|
+
i0.ɵɵelementStart(1, "label", 2);
|
|
11508
|
+
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span", 3);
|
|
11520
11509
|
i0.ɵɵelementEnd();
|
|
11521
|
-
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span",
|
|
11522
|
-
i0.ɵɵ
|
|
11523
|
-
i0.ɵɵelement(5, "input", 7);
|
|
11510
|
+
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span", 4);
|
|
11511
|
+
i0.ɵɵelement(4, "input", 5);
|
|
11524
11512
|
i0.ɵɵelementEnd();
|
|
11525
11513
|
} if (rf & 2) {
|
|
11526
11514
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
11527
|
-
i0.ɵɵproperty("formGroup", ctx_r0.caseLinkGroup)("ngClass", i0.ɵɵpureFunction1(8, _c1$l, !ctx_r0.caseReferenceControl.valid && (ctx_r0.caseReferenceControl.dirty || ctx_r0.caseReferenceControl.touched)));
|
|
11528
11515
|
i0.ɵɵadvance(1);
|
|
11529
|
-
i0.ɵɵproperty("for", ctx_r0.
|
|
11516
|
+
i0.ɵɵproperty("for", ctx_r0.id());
|
|
11530
11517
|
i0.ɵɵadvance(1);
|
|
11531
11518
|
i0.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
11532
11519
|
i0.ɵɵadvance(1);
|
|
11533
11520
|
i0.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
11534
11521
|
i0.ɵɵadvance(1);
|
|
11535
|
-
i0.ɵɵproperty("
|
|
11536
|
-
i0.ɵɵadvance(1);
|
|
11537
|
-
i0.ɵɵproperty("id", ctx_r0.caseReferenceControl)("formControl", ctx_r0.caseReferenceControl);
|
|
11522
|
+
i0.ɵɵproperty("id", ctx_r0.id())("formControl", ctx_r0.caseReferenceControl);
|
|
11538
11523
|
} }
|
|
11539
11524
|
function WriteCaseLinkFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
11540
|
-
const
|
|
11541
|
-
i0.ɵɵelementStart(0, "div",
|
|
11542
|
-
i0.ɵɵelementStart(1, "ccd-write-linked-cases",
|
|
11543
|
-
i0.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0.ɵɵrestoreView(
|
|
11525
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
11526
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
11527
|
+
i0.ɵɵelementStart(1, "ccd-write-linked-cases", 8);
|
|
11528
|
+
i0.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.submitLinkedCases(); });
|
|
11544
11529
|
i0.ɵɵelementEnd();
|
|
11545
11530
|
i0.ɵɵelementEnd();
|
|
11546
11531
|
} if (rf & 2) {
|
|
@@ -11555,61 +11540,22 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11555
11540
|
this.caseFields = [];
|
|
11556
11541
|
}
|
|
11557
11542
|
ngOnInit() {
|
|
11558
|
-
|
|
11559
|
-
this.
|
|
11560
|
-
if (!this.
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
}), true);
|
|
11565
|
-
}
|
|
11566
|
-
else {
|
|
11567
|
-
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11568
|
-
CaseReference: new FormControl(null, Validators.required),
|
|
11569
|
-
}), true);
|
|
11570
|
-
}
|
|
11571
|
-
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
11572
|
-
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
11573
|
-
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
11574
|
-
// field uses the Complex type, it is meant to be treated as one field
|
|
11575
|
-
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
11576
|
-
for (const caseLinkSubField of this.caseField.field_type.complex_fields) {
|
|
11577
|
-
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
11578
|
-
}
|
|
11579
|
-
}
|
|
11543
|
+
this.formArray = this.registerControl(new FormArray([]), true);
|
|
11544
|
+
this.formArray['caseField'] = this.caseField;
|
|
11545
|
+
if (!this.hasCaseLinkCollection()) {
|
|
11546
|
+
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11547
|
+
CaseReference: new FormControl(this.caseField.value.CaseReference, Validators.required),
|
|
11548
|
+
}), true);
|
|
11580
11549
|
}
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
return null;
|
|
11587
|
-
}
|
|
11588
|
-
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
11589
|
-
}
|
|
11590
|
-
else {
|
|
11591
|
-
if (control.touched) {
|
|
11592
|
-
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
11593
|
-
}
|
|
11550
|
+
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
11551
|
+
// field uses the Complex type, it is meant to be treated as one field
|
|
11552
|
+
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
11553
|
+
for (const caseLinkSubField of this.caseField.field_type.complex_fields) {
|
|
11554
|
+
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
11594
11555
|
}
|
|
11595
|
-
return null;
|
|
11596
|
-
};
|
|
11597
|
-
}
|
|
11598
|
-
validCaseReference(valueString) {
|
|
11599
|
-
if (!valueString) {
|
|
11600
|
-
return false;
|
|
11601
11556
|
}
|
|
11602
|
-
|
|
11603
|
-
}
|
|
11604
|
-
hasCaseLinkCollection() {
|
|
11605
|
-
return (this.caseField.field_type &&
|
|
11606
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
11607
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink' &&
|
|
11608
|
-
this.caseField.id === 'caseLinks');
|
|
11557
|
+
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
11609
11558
|
}
|
|
11610
|
-
/**
|
|
11611
|
-
* This method is applicable only for new Case link/unlink journey
|
|
11612
|
-
*/
|
|
11613
11559
|
submitLinkedCases() {
|
|
11614
11560
|
const formGroup = this.formGroup;
|
|
11615
11561
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -11621,6 +11567,17 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11621
11567
|
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
11622
11568
|
}
|
|
11623
11569
|
}
|
|
11570
|
+
validCaseReference(valueString) {
|
|
11571
|
+
if (!valueString) {
|
|
11572
|
+
return false;
|
|
11573
|
+
}
|
|
11574
|
+
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
11575
|
+
}
|
|
11576
|
+
hasCaseLinkCollection() {
|
|
11577
|
+
return (this.caseField.field_type &&
|
|
11578
|
+
this.caseField.field_type.type === 'Collection' &&
|
|
11579
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
11580
|
+
}
|
|
11624
11581
|
}
|
|
11625
11582
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
11626
11583
|
WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -11628,10 +11585,10 @@ WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLink
|
|
|
11628
11585
|
} if (rf & 2) {
|
|
11629
11586
|
let _t;
|
|
11630
11587
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
11631
|
-
} }, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["class", "form-group",
|
|
11588
|
+
} }, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0.ɵɵ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) { if (rf & 1) {
|
|
11632
11589
|
i0.ɵɵelementContainerStart(0);
|
|
11633
|
-
i0.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template,
|
|
11634
|
-
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div",
|
|
11590
|
+
i0.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template, 5, 5, "div", 0);
|
|
11591
|
+
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div", 0);
|
|
11635
11592
|
i0.ɵɵelementContainerEnd();
|
|
11636
11593
|
} if (rf & 2) {
|
|
11637
11594
|
i0.ɵɵadvance(1);
|
|
@@ -15380,13 +15337,9 @@ class PaletteService {
|
|
|
15380
15337
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
15381
15338
|
case 'JudicialUser':
|
|
15382
15339
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
15383
|
-
case 'CaseLink':
|
|
15384
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15385
15340
|
default:
|
|
15386
15341
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
15387
15342
|
}
|
|
15388
|
-
case 'CaseLink':
|
|
15389
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15390
15343
|
case 'Collection':
|
|
15391
15344
|
switch (caseField.field_type.collection_field_type.id) {
|
|
15392
15345
|
case 'CaseLink':
|
|
@@ -15668,13 +15621,13 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
15668
15621
|
type: Input
|
|
15669
15622
|
}] }); })();
|
|
15670
15623
|
|
|
15671
|
-
function
|
|
15624
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15672
15625
|
i0.ɵɵelementContainer(0);
|
|
15673
15626
|
} }
|
|
15674
15627
|
const _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
15675
|
-
function
|
|
15628
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
15676
15629
|
i0.ɵɵelementContainerStart(0);
|
|
15677
|
-
i0.ɵɵtemplate(1,
|
|
15630
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15678
15631
|
i0.ɵɵelementContainerEnd();
|
|
15679
15632
|
} if (rf & 2) {
|
|
15680
15633
|
const cat_r3 = ctx.$implicit;
|
|
@@ -15709,7 +15662,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
|
15709
15662
|
i0.ɵɵelement(3, "img", 12);
|
|
15710
15663
|
i0.ɵɵtext(4);
|
|
15711
15664
|
i0.ɵɵelementEnd();
|
|
15712
|
-
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
15665
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
15713
15666
|
i0.ɵɵelementEnd();
|
|
15714
15667
|
} if (rf & 2) {
|
|
15715
15668
|
const cat_r5 = ctx.cat;
|
|
@@ -15780,42 +15733,43 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
15780
15733
|
}
|
|
15781
15734
|
}
|
|
15782
15735
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
15783
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵ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"], [
|
|
15784
|
-
i0.ɵɵelementStart(0, "
|
|
15785
|
-
i0.ɵɵ
|
|
15736
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
15737
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
15738
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
15786
15739
|
i0.ɵɵelementEnd();
|
|
15787
|
-
i0.ɵɵelementStart(
|
|
15788
|
-
i0.ɵɵtext(
|
|
15740
|
+
i0.ɵɵelementStart(1, "h2", 1);
|
|
15741
|
+
i0.ɵɵtext(2, "Move File");
|
|
15789
15742
|
i0.ɵɵelementEnd();
|
|
15790
|
-
i0.ɵɵelementStart(
|
|
15791
|
-
i0.ɵɵ
|
|
15743
|
+
i0.ɵɵelementStart(3, "p");
|
|
15744
|
+
i0.ɵɵtext(4);
|
|
15792
15745
|
i0.ɵɵelementEnd();
|
|
15793
|
-
i0.ɵɵelementStart(
|
|
15794
|
-
i0.ɵɵ
|
|
15795
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
15796
|
-
i0.ɵɵtext(8, "Save");
|
|
15746
|
+
i0.ɵɵelementStart(5, "div", 2);
|
|
15747
|
+
i0.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
15797
15748
|
i0.ɵɵelementEnd();
|
|
15798
|
-
i0.ɵɵelementStart(
|
|
15799
|
-
i0.ɵɵ
|
|
15800
|
-
i0.ɵɵ
|
|
15749
|
+
i0.ɵɵelementStart(7, "div", 4);
|
|
15750
|
+
i0.ɵɵelementStart(8, "button", 5);
|
|
15751
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
15752
|
+
i0.ɵɵtext(9, "Save");
|
|
15801
15753
|
i0.ɵɵelementEnd();
|
|
15754
|
+
i0.ɵɵelementStart(10, "a", 6);
|
|
15755
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
15756
|
+
i0.ɵɵtext(11, "Cancel");
|
|
15802
15757
|
i0.ɵɵelementEnd();
|
|
15803
|
-
i0.ɵɵelementStart(11, "div", 6);
|
|
15804
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
15805
15758
|
i0.ɵɵelementEnd();
|
|
15806
15759
|
i0.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
15807
15760
|
} if (rf & 2) {
|
|
15808
|
-
i0.ɵɵadvance(
|
|
15761
|
+
i0.ɵɵadvance(4);
|
|
15809
15762
|
i0.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
15810
15763
|
i0.ɵɵadvance(2);
|
|
15811
15764
|
i0.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
15812
|
-
} }, directives: [i1.NgForOf, i1.NgTemplateOutlet], styles: ["
|
|
15765
|
+
} }, directives: [i1.NgForOf, i1.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 });
|
|
15813
15766
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
15814
15767
|
type: Component,
|
|
15815
15768
|
args: [{
|
|
15816
15769
|
selector: 'xui-case-file-view-folder-selector',
|
|
15817
15770
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
15818
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
15771
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
15772
|
+
encapsulation: ViewEncapsulation.None
|
|
15819
15773
|
}]
|
|
15820
15774
|
}], function () { return [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
15821
15775
|
type: Inject,
|
|
@@ -16296,7 +16250,7 @@ class CaseFileViewFolderComponent {
|
|
|
16296
16250
|
return Object.assign(documentTreeNode, node);
|
|
16297
16251
|
}
|
|
16298
16252
|
let filteredData = this.documentTreeData;
|
|
16299
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
16253
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
16300
16254
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
16301
16255
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
16302
16256
|
return true;
|
|
@@ -16376,7 +16330,6 @@ class CaseFileViewFolderComponent {
|
|
|
16376
16330
|
}
|
|
16377
16331
|
openMoveDialog(node) {
|
|
16378
16332
|
const dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
16379
|
-
width: '570px',
|
|
16380
16333
|
data: { categories: this.categories, document: node }
|
|
16381
16334
|
});
|
|
16382
16335
|
dialogRef.afterClosed().subscribe(newCatId => {
|
|
@@ -16401,7 +16354,7 @@ class CaseFileViewFolderComponent {
|
|
|
16401
16354
|
}
|
|
16402
16355
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
16403
16356
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
16404
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
16357
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
16405
16358
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
16406
16359
|
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
16407
16360
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -18545,7 +18498,8 @@ class LinkCasesComponent {
|
|
|
18545
18498
|
if (this.linkCaseForm.valid &&
|
|
18546
18499
|
!this.isCaseSelected(this.selectedCases) &&
|
|
18547
18500
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
18548
|
-
!this.isCaseSelectedSameAsCurrentCase()
|
|
18501
|
+
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
18502
|
+
!this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
18549
18503
|
this.getCaseInfo();
|
|
18550
18504
|
}
|
|
18551
18505
|
else {
|
|
@@ -18595,6 +18549,14 @@ class LinkCasesComponent {
|
|
|
18595
18549
|
fieldId: 'caseNumber',
|
|
18596
18550
|
});
|
|
18597
18551
|
}
|
|
18552
|
+
if (this.isCaseSelected(this.linkedCasesService.linkedCasesFrom)) {
|
|
18553
|
+
this.caseSelectionError = LinkedCasesErrorMessages.CasesLinkedError;
|
|
18554
|
+
this.errorMessages.push({
|
|
18555
|
+
title: 'dummy-case-number',
|
|
18556
|
+
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
18557
|
+
fieldId: 'caseNumber',
|
|
18558
|
+
});
|
|
18559
|
+
}
|
|
18598
18560
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
18599
18561
|
this.errorMessages.push({
|
|
18600
18562
|
title: 'dummy-case-number',
|
|
@@ -18954,6 +18916,9 @@ class LinkedCasesFromTableComponent {
|
|
|
18954
18916
|
this.caseId = this.route.snapshot.data.case.case_id;
|
|
18955
18917
|
this.getLinkedCases().subscribe(response => {
|
|
18956
18918
|
this.isServerError = false;
|
|
18919
|
+
if (response.linkedCases) {
|
|
18920
|
+
this.setLinkiedCasesFrom(response.linkedCases);
|
|
18921
|
+
}
|
|
18957
18922
|
this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(item => {
|
|
18958
18923
|
const mappedCasetype = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
18959
18924
|
const mappedCasetypeDescription = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
@@ -18968,6 +18933,16 @@ class LinkedCasesFromTableComponent {
|
|
|
18968
18933
|
this.notifyAPIFailure.emit(true);
|
|
18969
18934
|
});
|
|
18970
18935
|
}
|
|
18936
|
+
setLinkiedCasesFrom(linkedCases) {
|
|
18937
|
+
const caseLinks = linkedCases.map(item => {
|
|
18938
|
+
return {
|
|
18939
|
+
caseReference: item.caseReference,
|
|
18940
|
+
caseService: item.ccdJurisdiction,
|
|
18941
|
+
caseType: item.ccdCaseType,
|
|
18942
|
+
};
|
|
18943
|
+
});
|
|
18944
|
+
this.linkedCasesService.linkedCasesFrom = caseLinks;
|
|
18945
|
+
}
|
|
18971
18946
|
getLinkedCases() {
|
|
18972
18947
|
return this.casesService.getLinkedCases(this.caseId);
|
|
18973
18948
|
}
|
|
@@ -22179,7 +22154,7 @@ i0.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i2.NgControlStatusGro
|
|
|
22179
22154
|
WriteOrganisationComplexFieldComponent], [i1.AsyncPipe]);
|
|
22180
22155
|
i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
22181
22156
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i2.NgControlStatusGroup, i2.FormGroupDirective, WriteDateFieldComponent], []);
|
|
22182
|
-
i0.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1.NgIf, i2.
|
|
22157
|
+
i0.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, WriteLinkedCasesComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe]);
|
|
22183
22158
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22184
22159
|
i0.ɵɵsetComponentScope(
|
|
22185
22160
|
// ComponentLauncher web components
|