@hmcts/ccd-case-ui-toolkit 7.0.19 → 7.0.20
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/yes-no/read-yes-no-field.component.mjs +3 -6
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +2 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +2 -5
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.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
|
@@ -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
|
|