@hmcts/ccd-case-ui-toolkit 6.10.8-configure-linked-cases → 6.10.10-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 -35
- 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 -19
- 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/link-cases/link-cases.component.js +1 -1
- 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 -34
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -2
- 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/link-cases/link-cases.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 +7 -5
- 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
|
@@ -8648,29 +8648,11 @@
|
|
|
8648
8648
|
payload.requestedRoles[0].notes[0] = Object.assign(Object.assign({}, payload.requestedRoles[0].notes[0]), { userId: payload.requestedRoles[0].actorId });
|
|
8649
8649
|
return this.http.post("/api/specific-access-request", payload);
|
|
8650
8650
|
};
|
|
8651
|
-
CasesService.prototype.getCaseLinkResponses = function () {
|
|
8652
|
-
var _this = this;
|
|
8653
|
-
var headers = new i1$2.HttpHeaders()
|
|
8654
|
-
.set('experimental', 'true')
|
|
8655
|
-
.set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
|
|
8656
|
-
.set('Content-Type', 'application/json');
|
|
8657
|
-
var loadingToken = this.loadingService.register();
|
|
8658
|
-
return this.http
|
|
8659
|
-
.get('assets/getCaseReasons.json', { headers: headers, observe: 'body' })
|
|
8660
|
-
.pipe(operators.map(function (reasons) {
|
|
8661
|
-
return reasons.sort(function (reasonA, reasonB) { return reasonA.value_en > reasonB.value_en ? 1 : -1; });
|
|
8662
|
-
}), operators.catchError(function (error) {
|
|
8663
|
-
_this.errorService.setError(error);
|
|
8664
|
-
return rxjs.throwError(error);
|
|
8665
|
-
}), operators.finalize(function () { return _this.loadingService.unregister(loadingToken); }));
|
|
8666
|
-
};
|
|
8667
8651
|
CasesService.prototype.getLinkedCases = function (caseId) {
|
|
8668
8652
|
var url = this.appConfig.getCaseDataStoreApiUrl() + "/" + caseId;
|
|
8669
8653
|
return this.http
|
|
8670
8654
|
.get(url)
|
|
8671
|
-
.pipe(operators.catchError(function (error) {
|
|
8672
|
-
return rxjs.throwError(error);
|
|
8673
|
-
}));
|
|
8655
|
+
.pipe(operators.catchError(function (error) { return rxjs.throwError(error); }));
|
|
8674
8656
|
};
|
|
8675
8657
|
return CasesService;
|
|
8676
8658
|
}());
|
|
@@ -11147,7 +11129,7 @@
|
|
|
11147
11129
|
var DisplayContextCustomParameter;
|
|
11148
11130
|
(function (DisplayContextCustomParameter) {
|
|
11149
11131
|
DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
|
|
11150
|
-
DisplayContextCustomParameter["LinkedCases"] = "
|
|
11132
|
+
DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
|
|
11151
11133
|
})(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
|
|
11152
11134
|
|
|
11153
11135
|
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
@@ -15180,7 +15162,7 @@
|
|
|
15180
15162
|
LinkedCasesErrorMessages["CaseSelectionError"] = "You need to propose at least one case";
|
|
15181
15163
|
LinkedCasesErrorMessages["CaseProposedError"] = "This case has already been proposed";
|
|
15182
15164
|
LinkedCasesErrorMessages["CasesLinkedError"] = "These cases are already linked";
|
|
15183
|
-
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before
|
|
15165
|
+
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before continuing";
|
|
15184
15166
|
LinkedCasesErrorMessages["LinkCasesNavigationError"] = "Please select Next to link case(s)";
|
|
15185
15167
|
LinkedCasesErrorMessages["UnlinkCasesNavigationError"] = "Please select Next to unlink case(s)";
|
|
15186
15168
|
LinkedCasesErrorMessages["BackNavigationError"] = "Please select Back to go to the previous page";
|
|
@@ -15342,7 +15324,7 @@
|
|
|
15342
15324
|
if (rf & 2) {
|
|
15343
15325
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
15344
15326
|
i0__namespace.ɵɵadvance(3);
|
|
15345
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.
|
|
15327
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.serverLinkedApiError.message, " ");
|
|
15346
15328
|
}
|
|
15347
15329
|
}
|
|
15348
15330
|
function BeforeYouStartComponent_div_1_Template(rf, ctx) {
|
|
@@ -15364,7 +15346,7 @@
|
|
|
15364
15346
|
if (rf & 2) {
|
|
15365
15347
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
15366
15348
|
i0__namespace.ɵɵadvance(3);
|
|
15367
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.
|
|
15349
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.serverLinkedApiError);
|
|
15368
15350
|
}
|
|
15369
15351
|
}
|
|
15370
15352
|
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) {
|
|
@@ -15420,6 +15402,7 @@
|
|
|
15420
15402
|
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
15421
15403
|
this.isLinkCasesJourney = false;
|
|
15422
15404
|
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
15405
|
+
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
15423
15406
|
// re-initiate the state based on the casefield value
|
|
15424
15407
|
var linkedCaseRefereneIds = this.linkedCasesService.caseFieldValue.filter(function (item) { return item; }).map(function (item) { return item.id; });
|
|
15425
15408
|
this.linkedCasesService.linkedCases = this.linkedCasesService.linkedCases.filter(function (item) { return linkedCaseRefereneIds.indexOf(item.caseReference) !== -1; });
|
|
@@ -15449,9 +15432,9 @@
|
|
|
15449
15432
|
}
|
|
15450
15433
|
if (rf & 2) {
|
|
15451
15434
|
i0__namespace.ɵɵadvance(1);
|
|
15452
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
15435
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.serverLinkedApiError);
|
|
15453
15436
|
i0__namespace.ɵɵadvance(1);
|
|
15454
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
15437
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.serverLinkedApiError);
|
|
15455
15438
|
}
|
|
15456
15439
|
}, directives: [i1__namespace.NgIf], encapsulation: 2 });
|
|
15457
15440
|
(function () {
|
|
@@ -16386,7 +16369,7 @@
|
|
|
16386
16369
|
if (rf & 2) {
|
|
16387
16370
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
16388
16371
|
i0__namespace.ɵɵadvance(13);
|
|
16389
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.
|
|
16372
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.isServerReasonCodeError));
|
|
16390
16373
|
}
|
|
16391
16374
|
}
|
|
16392
16375
|
var LinkedCasesFromTableComponent = /** @class */ (function () {
|
|
@@ -16399,6 +16382,7 @@
|
|
|
16399
16382
|
this.showHideLinkText = 'Show';
|
|
16400
16383
|
this.noLinkedCases = true;
|
|
16401
16384
|
this.isServerError = false;
|
|
16385
|
+
this.isServerReasonCodeError = false;
|
|
16402
16386
|
}
|
|
16403
16387
|
LinkedCasesFromTableComponent.prototype.ngAfterViewInit = function () {
|
|
16404
16388
|
var labelField = document.getElementsByClassName('case-viewer-label');
|
|
@@ -16411,6 +16395,7 @@
|
|
|
16411
16395
|
if (this.route.snapshot.data.case) {
|
|
16412
16396
|
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
16413
16397
|
}
|
|
16398
|
+
this.isServerReasonCodeError = this.linkedCasesService.isServerReasonCodeError;
|
|
16414
16399
|
};
|
|
16415
16400
|
LinkedCasesFromTableComponent.prototype.fetchPageData = function () {
|
|
16416
16401
|
var _this = this;
|
|
@@ -16623,7 +16608,7 @@
|
|
|
16623
16608
|
i0__namespace.ɵɵadvance(14);
|
|
16624
16609
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkedCasesFromResponse);
|
|
16625
16610
|
i0__namespace.ɵɵadvance(1);
|
|
16626
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.
|
|
16611
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.isServerReasonCodeError));
|
|
16627
16612
|
}
|
|
16628
16613
|
}
|
|
16629
16614
|
var LinkedCasesToTableComponent = /** @class */ (function () {
|
|
@@ -16634,6 +16619,7 @@
|
|
|
16634
16619
|
this.notifyAPIFailure = new i0.EventEmitter(false);
|
|
16635
16620
|
this.linkedCasesFromResponse = [];
|
|
16636
16621
|
this.isServerError = false;
|
|
16622
|
+
this.isServerReasonCodeError = false;
|
|
16637
16623
|
this.jurisdictionsResponse = [];
|
|
16638
16624
|
}
|
|
16639
16625
|
LinkedCasesToTableComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -16652,6 +16638,7 @@
|
|
|
16652
16638
|
if (this.route.snapshot.data.case) {
|
|
16653
16639
|
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
16654
16640
|
}
|
|
16641
|
+
this.isServerReasonCodeError = this.linkedCasesService.isServerReasonCodeError;
|
|
16655
16642
|
};
|
|
16656
16643
|
LinkedCasesToTableComponent.prototype.getCaseRefereneLink = function (caseRef) {
|
|
16657
16644
|
return caseRef.slice(this.caseId.length - 4);
|
|
@@ -16663,17 +16650,14 @@
|
|
|
16663
16650
|
var reasons = item && item.reasons || [];
|
|
16664
16651
|
var consolidatedStateReason = reasons.map(function (x) { return x; }).find(function (reason) { return reason === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE; });
|
|
16665
16652
|
var progressedStateReason = reasons.map(function (x) { return x; }).find(function (reason) { return reason === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE; });
|
|
16666
|
-
var arrayItem;
|
|
16653
|
+
var arrayItem = Object.assign({}, item);
|
|
16667
16654
|
if (progressedStateReason) {
|
|
16668
|
-
arrayItem = Object.assign({}, item);
|
|
16669
16655
|
topLevelresultArray.push(arrayItem);
|
|
16670
16656
|
}
|
|
16671
16657
|
else if (consolidatedStateReason) {
|
|
16672
|
-
arrayItem = Object.assign({}, item);
|
|
16673
16658
|
secondLevelresultArray = __spread([Object.assign({}, item)], secondLevelresultArray);
|
|
16674
16659
|
}
|
|
16675
16660
|
else {
|
|
16676
|
-
arrayItem = Object.assign({}, item);
|
|
16677
16661
|
secondLevelresultArray.push(Object.assign({}, item));
|
|
16678
16662
|
}
|
|
16679
16663
|
});
|
|
@@ -16793,7 +16777,7 @@
|
|
|
16793
16777
|
if (rf & 2) {
|
|
16794
16778
|
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
16795
16779
|
i0__namespace.ɵɵadvance(3);
|
|
16796
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.
|
|
16780
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.serverLinkedApiError.message, " ");
|
|
16797
16781
|
}
|
|
16798
16782
|
}
|
|
16799
16783
|
function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) {
|
|
@@ -16808,6 +16792,9 @@
|
|
|
16808
16792
|
this.router = router;
|
|
16809
16793
|
this.linkedCasesService = linkedCasesService;
|
|
16810
16794
|
}
|
|
16795
|
+
NoLinkedCasesComponent.prototype.ngOnInit = function () {
|
|
16796
|
+
this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
|
|
16797
|
+
};
|
|
16811
16798
|
NoLinkedCasesComponent.prototype.onBack = function () {
|
|
16812
16799
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
16813
16800
|
window.location.hash = 'Linked cases';
|
|
@@ -16841,9 +16828,9 @@
|
|
|
16841
16828
|
if (rf & 2) {
|
|
16842
16829
|
var _r2 = i0__namespace.ɵɵreference(5);
|
|
16843
16830
|
i0__namespace.ɵɵadvance(2);
|
|
16844
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
16831
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.serverLinkedApiError);
|
|
16845
16832
|
i0__namespace.ɵɵadvance(1);
|
|
16846
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
16833
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.serverLinkedApiError)("ngIfElse", _r2);
|
|
16847
16834
|
}
|
|
16848
16835
|
}, directives: [i1__namespace.NgIf], encapsulation: 2 });
|
|
16849
16836
|
(function () {
|
|
@@ -19633,7 +19620,7 @@
|
|
|
19633
19620
|
return displayContextParameter === displayContextParameterFromLookup;
|
|
19634
19621
|
});
|
|
19635
19622
|
});
|
|
19636
|
-
if ((componentToRender === null || componentToRender === void 0 ? void 0 : componentToRender.length) > 0 && this.componentLauncherRegistry.hasOwnProperty(componentToRender[0]
|
|
19623
|
+
if ((componentToRender === null || componentToRender === void 0 ? void 0 : componentToRender.length) > 0 && this.componentLauncherRegistry.hasOwnProperty(componentToRender[0])) {
|
|
19637
19624
|
return this.componentLauncherRegistry[componentToRender[0]][write ? 0 : 1];
|
|
19638
19625
|
}
|
|
19639
19626
|
}
|