@hmcts/ccd-case-ui-toolkit 6.10.8-configure-linked-cases → 6.10.9-configure-linked-cases
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 +22 -19
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +2 -4
- package/esm2015/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.js +6 -5
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +4 -2
- package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +5 -6
- package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +7 -4
- package/esm2015/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.js +2 -2
- package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +1 -1
- package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +1 -1
- package/esm2015/lib/shared/components/palette/palette.service.js +2 -2
- package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +2 -2
- package/esm2015/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.js +1 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +22 -19
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts +5 -1
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +2 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts +6 -4
- package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts +8 -2
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +2 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.d.ts +1 -1
- package/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts +3 -9
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/domain/definition/display-context-enum.model.d.ts +1 -1
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8668,9 +8668,7 @@
|
|
|
8668
8668
|
var url = this.appConfig.getCaseDataStoreApiUrl() + "/" + caseId;
|
|
8669
8669
|
return this.http
|
|
8670
8670
|
.get(url)
|
|
8671
|
-
.pipe(operators.catchError(function (error) {
|
|
8672
|
-
return rxjs.throwError(error);
|
|
8673
|
-
}));
|
|
8671
|
+
.pipe(operators.catchError(function (error) { return rxjs.throwError(error); }));
|
|
8674
8672
|
};
|
|
8675
8673
|
return CasesService;
|
|
8676
8674
|
}());
|
|
@@ -11147,7 +11145,7 @@
|
|
|
11147
11145
|
var DisplayContextCustomParameter;
|
|
11148
11146
|
(function (DisplayContextCustomParameter) {
|
|
11149
11147
|
DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
|
|
11150
|
-
DisplayContextCustomParameter["LinkedCases"] = "
|
|
11148
|
+
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
11151
11149
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
11152
11150
|
|
|
11153
11151
|
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
@@ -15180,7 +15178,7 @@
|
|
|
15180
15178
|
LinkedCasesErrorMessages["CaseSelectionError"] = "You need to propose at least one case";
|
|
15181
15179
|
LinkedCasesErrorMessages["CaseProposedError"] = "This case has already been proposed";
|
|
15182
15180
|
LinkedCasesErrorMessages["CasesLinkedError"] = "These cases are already linked";
|
|
15183
|
-
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before
|
|
15181
|
+
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before continuing";
|
|
15184
15182
|
LinkedCasesErrorMessages["LinkCasesNavigationError"] = "Please select Next to link case(s)";
|
|
15185
15183
|
LinkedCasesErrorMessages["UnlinkCasesNavigationError"] = "Please select Next to unlink case(s)";
|
|
15186
15184
|
LinkedCasesErrorMessages["BackNavigationError"] = "Please select Back to go to the previous page";
|
|
@@ -15342,7 +15340,7 @@
|
|
|
15342
15340
|
if (rf & 2) {
|
|
15343
15341
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
15344
15342
|
i0__namespace.ɵɵadvance(3);
|
|
15345
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.
|
|
15343
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.serverLinkedApiError.message, " ");
|
|
15346
15344
|
}
|
|
15347
15345
|
}
|
|
15348
15346
|
function BeforeYouStartComponent_div_1_Template(rf, ctx) {
|
|
@@ -15364,7 +15362,7 @@
|
|
|
15364
15362
|
if (rf & 2) {
|
|
15365
15363
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
15366
15364
|
i0__namespace.ɵɵadvance(3);
|
|
15367
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.
|
|
15365
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.serverLinkedApiError);
|
|
15368
15366
|
}
|
|
15369
15367
|
}
|
|
15370
15368
|
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) {
|
|
@@ -15420,6 +15418,7 @@
|
|
|
15420
15418
|
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
15421
15419
|
this.isLinkCasesJourney = false;
|
|
15422
15420
|
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
15421
|
+
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
15423
15422
|
// re-initiate the state based on the casefield value
|
|
15424
15423
|
var linkedCaseRefereneIds = this.linkedCasesService.caseFieldValue.filter(function (item) { return item; }).map(function (item) { return item.id; });
|
|
15425
15424
|
this.linkedCasesService.linkedCases = this.linkedCasesService.linkedCases.filter(function (item) { return linkedCaseRefereneIds.indexOf(item.caseReference) !== -1; });
|
|
@@ -15449,9 +15448,9 @@
|
|
|
15449
15448
|
}
|
|
15450
15449
|
if (rf & 2) {
|
|
15451
15450
|
i0__namespace.ɵɵadvance(1);
|
|
15452
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
15451
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.serverLinkedApiError);
|
|
15453
15452
|
i0__namespace.ɵɵadvance(1);
|
|
15454
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
15453
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.serverLinkedApiError);
|
|
15455
15454
|
}
|
|
15456
15455
|
}, directives: [i1__namespace.NgIf], encapsulation: 2 });
|
|
15457
15456
|
(function () {
|
|
@@ -16386,7 +16385,7 @@
|
|
|
16386
16385
|
if (rf & 2) {
|
|
16387
16386
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
16388
16387
|
i0__namespace.ɵɵadvance(13);
|
|
16389
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.
|
|
16388
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.isServerReasonCodeError));
|
|
16390
16389
|
}
|
|
16391
16390
|
}
|
|
16392
16391
|
var LinkedCasesFromTableComponent = /** @class */ (function () {
|
|
@@ -16399,6 +16398,7 @@
|
|
|
16399
16398
|
this.showHideLinkText = 'Show';
|
|
16400
16399
|
this.noLinkedCases = true;
|
|
16401
16400
|
this.isServerError = false;
|
|
16401
|
+
this.isServerReasonCodeError = false;
|
|
16402
16402
|
}
|
|
16403
16403
|
LinkedCasesFromTableComponent.prototype.ngAfterViewInit = function () {
|
|
16404
16404
|
var labelField = document.getElementsByClassName('case-viewer-label');
|
|
@@ -16411,6 +16411,7 @@
|
|
|
16411
16411
|
if (this.route.snapshot.data.case) {
|
|
16412
16412
|
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
16413
16413
|
}
|
|
16414
|
+
this.isServerReasonCodeError = this.linkedCasesService.isServerReasonCodeError;
|
|
16414
16415
|
};
|
|
16415
16416
|
LinkedCasesFromTableComponent.prototype.fetchPageData = function () {
|
|
16416
16417
|
var _this = this;
|
|
@@ -16623,7 +16624,7 @@
|
|
|
16623
16624
|
i0__namespace.ɵɵadvance(14);
|
|
16624
16625
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkedCasesFromResponse);
|
|
16625
16626
|
i0__namespace.ɵɵadvance(1);
|
|
16626
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.
|
|
16627
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.isServerReasonCodeError));
|
|
16627
16628
|
}
|
|
16628
16629
|
}
|
|
16629
16630
|
var LinkedCasesToTableComponent = /** @class */ (function () {
|
|
@@ -16634,6 +16635,7 @@
|
|
|
16634
16635
|
this.notifyAPIFailure = new i0.EventEmitter(false);
|
|
16635
16636
|
this.linkedCasesFromResponse = [];
|
|
16636
16637
|
this.isServerError = false;
|
|
16638
|
+
this.isServerReasonCodeError = false;
|
|
16637
16639
|
this.jurisdictionsResponse = [];
|
|
16638
16640
|
}
|
|
16639
16641
|
LinkedCasesToTableComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -16652,6 +16654,7 @@
|
|
|
16652
16654
|
if (this.route.snapshot.data.case) {
|
|
16653
16655
|
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
16654
16656
|
}
|
|
16657
|
+
this.isServerReasonCodeError = this.linkedCasesService.isServerReasonCodeError;
|
|
16655
16658
|
};
|
|
16656
16659
|
LinkedCasesToTableComponent.prototype.getCaseRefereneLink = function (caseRef) {
|
|
16657
16660
|
return caseRef.slice(this.caseId.length - 4);
|
|
@@ -16663,17 +16666,14 @@
|
|
|
16663
16666
|
var reasons = item && item.reasons || [];
|
|
16664
16667
|
var consolidatedStateReason = reasons.map(function (x) { return x; }).find(function (reason) { return reason === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE; });
|
|
16665
16668
|
var progressedStateReason = reasons.map(function (x) { return x; }).find(function (reason) { return reason === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE; });
|
|
16666
|
-
var arrayItem;
|
|
16669
|
+
var arrayItem = Object.assign({}, item);
|
|
16667
16670
|
if (progressedStateReason) {
|
|
16668
|
-
arrayItem = Object.assign({}, item);
|
|
16669
16671
|
topLevelresultArray.push(arrayItem);
|
|
16670
16672
|
}
|
|
16671
16673
|
else if (consolidatedStateReason) {
|
|
16672
|
-
arrayItem = Object.assign({}, item);
|
|
16673
16674
|
secondLevelresultArray = __spread([Object.assign({}, item)], secondLevelresultArray);
|
|
16674
16675
|
}
|
|
16675
16676
|
else {
|
|
16676
|
-
arrayItem = Object.assign({}, item);
|
|
16677
16677
|
secondLevelresultArray.push(Object.assign({}, item));
|
|
16678
16678
|
}
|
|
16679
16679
|
});
|
|
@@ -16793,7 +16793,7 @@
|
|
|
16793
16793
|
if (rf & 2) {
|
|
16794
16794
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
16795
16795
|
i0__namespace.ɵɵadvance(3);
|
|
16796
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.
|
|
16796
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.serverLinkedApiError.message, " ");
|
|
16797
16797
|
}
|
|
16798
16798
|
}
|
|
16799
16799
|
function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) {
|
|
@@ -16808,6 +16808,9 @@
|
|
|
16808
16808
|
this.router = router;
|
|
16809
16809
|
this.linkedCasesService = linkedCasesService;
|
|
16810
16810
|
}
|
|
16811
|
+
NoLinkedCasesComponent.prototype.ngOnInit = function () {
|
|
16812
|
+
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
16813
|
+
};
|
|
16811
16814
|
NoLinkedCasesComponent.prototype.onBack = function () {
|
|
16812
16815
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
16813
16816
|
window.location.hash = 'Linked cases';
|
|
@@ -16841,9 +16844,9 @@
|
|
|
16841
16844
|
if (rf & 2) {
|
|
16842
16845
|
var _r2 = i0__namespace.ɵɵreference(5);
|
|
16843
16846
|
i0__namespace.ɵɵadvance(2);
|
|
16844
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
16847
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.serverLinkedApiError);
|
|
16845
16848
|
i0__namespace.ɵɵadvance(1);
|
|
16846
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
16849
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.serverLinkedApiError)("ngIfElse", _r2);
|
|
16847
16850
|
}
|
|
16848
16851
|
}, directives: [i1__namespace.NgIf], encapsulation: 2 });
|
|
16849
16852
|
(function () {
|
|
@@ -19633,7 +19636,7 @@
|
|
|
19633
19636
|
return displayContextParameter === displayContextParameterFromLookup;
|
|
19634
19637
|
});
|
|
19635
19638
|
});
|
|
19636
|
-
if ((componentToRender === null || componentToRender === void 0 ? void 0 : componentToRender.length) > 0 && this.componentLauncherRegistry.hasOwnProperty(componentToRender[0]
|
|
19639
|
+
if ((componentToRender === null || componentToRender === void 0 ? void 0 : componentToRender.length) > 0 && this.componentLauncherRegistry.hasOwnProperty(componentToRender[0])) {
|
|
19637
19640
|
return this.componentLauncherRegistry[componentToRender[0]][write ? 0 : 1];
|
|
19638
19641
|
}
|
|
19639
19642
|
}
|