@hmcts/ccd-case-ui-toolkit 7.0.19 → 7.0.20-cot-771
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/esm2020/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +4 -4
- package/esm2020/lib/shared/components/palette/yes-no/read-yes-no-field.component.mjs +3 -6
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +5 -8
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +5 -8
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/yes-no/read-yes-no-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -16880,8 +16880,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16880
16880
|
}
|
|
16881
16881
|
}
|
|
16882
16882
|
}
|
|
16883
|
-
getLinkedCaseReasons(
|
|
16884
|
-
const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode?serviceId=${
|
|
16883
|
+
getLinkedCaseReasons(serviceCode) {
|
|
16884
|
+
const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode?serviceId=${serviceCode}`;
|
|
16885
16885
|
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
16886
16886
|
next: reasons => {
|
|
16887
16887
|
// Sort in ascending order
|
|
@@ -16896,7 +16896,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
16896
16896
|
const servicesApiUrl = `refdata/location/orgServices?ccdCaseType=${this.caseDetails?.case_type?.id}`;
|
|
16897
16897
|
this.commonDataService.getServiceOrgData(servicesApiUrl).subscribe(result => {
|
|
16898
16898
|
result.forEach(ids => {
|
|
16899
|
-
this.getLinkedCaseReasons(ids.
|
|
16899
|
+
this.getLinkedCaseReasons(ids.service_code);
|
|
16900
16900
|
});
|
|
16901
16901
|
});
|
|
16902
16902
|
}
|
|
@@ -20362,9 +20362,6 @@ class ReadYesNoFieldComponent extends AbstractFieldReadComponent {
|
|
|
20362
20362
|
ngOnInit() {
|
|
20363
20363
|
super.ngOnInit();
|
|
20364
20364
|
this.formattedValue = this.yesNoService.format(this.caseField.value);
|
|
20365
|
-
if (!this.caseField.label) {
|
|
20366
|
-
this.caseField.label = this.formattedValue;
|
|
20367
|
-
}
|
|
20368
20365
|
}
|
|
20369
20366
|
}
|
|
20370
20367
|
ReadYesNoFieldComponent.ɵfac = function ReadYesNoFieldComponent_Factory(t) { return new (t || ReadYesNoFieldComponent)(i0.ɵɵdirectiveInject(YesNoService)); };
|
|
@@ -20375,13 +20372,13 @@ ReadYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Rea
|
|
|
20375
20372
|
i0.ɵɵelementEnd();
|
|
20376
20373
|
} if (rf & 2) {
|
|
20377
20374
|
i0.ɵɵadvance(1);
|
|
20378
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue));
|
|
20375
|
+
i0.ɵɵtextInterpolate(ctx.formattedValue ? i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue) : null);
|
|
20379
20376
|
} }, dependencies: [i1.RpxTranslatePipe], encapsulation: 2 });
|
|
20380
20377
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadYesNoFieldComponent, [{
|
|
20381
20378
|
type: Component,
|
|
20382
20379
|
args: [{
|
|
20383
20380
|
selector: 'ccd-read-yes-no-field',
|
|
20384
|
-
template: `<span class="text-16">{{caseField.label | rpxTranslate : null : formattedValue}}</span>`
|
|
20381
|
+
template: `<span class="text-16">{{formattedValue ? (caseField.label | rpxTranslate : null : formattedValue) : null}}</span>`
|
|
20385
20382
|
}]
|
|
20386
20383
|
}], function () { return [{ type: YesNoService }]; }, null); })();
|
|
20387
20384
|
|