@hmcts/ccd-case-ui-toolkit 7.0.19 → 7.0.20-exui-1511-rc1
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
|
@@ -12,9 +12,6 @@ export class ReadYesNoFieldComponent extends AbstractFieldReadComponent {
|
|
|
12
12
|
ngOnInit() {
|
|
13
13
|
super.ngOnInit();
|
|
14
14
|
this.formattedValue = this.yesNoService.format(this.caseField.value);
|
|
15
|
-
if (!this.caseField.label) {
|
|
16
|
-
this.caseField.label = this.formattedValue;
|
|
17
|
-
}
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
17
|
ReadYesNoFieldComponent.ɵfac = function ReadYesNoFieldComponent_Factory(t) { return new (t || ReadYesNoFieldComponent)(i0.ɵɵdirectiveInject(i1.YesNoService)); };
|
|
@@ -25,13 +22,13 @@ ReadYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Rea
|
|
|
25
22
|
i0.ɵɵelementEnd();
|
|
26
23
|
} if (rf & 2) {
|
|
27
24
|
i0.ɵɵadvance(1);
|
|
28
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue));
|
|
25
|
+
i0.ɵɵtextInterpolate(ctx.formattedValue ? i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue) : null);
|
|
29
26
|
} }, dependencies: [i2.RpxTranslatePipe], encapsulation: 2 });
|
|
30
27
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadYesNoFieldComponent, [{
|
|
31
28
|
type: Component,
|
|
32
29
|
args: [{
|
|
33
30
|
selector: 'ccd-read-yes-no-field',
|
|
34
|
-
template: `<span class="text-16">{{caseField.label | rpxTranslate : null : formattedValue}}</span>`
|
|
31
|
+
template: `<span class="text-16">{{formattedValue ? (caseField.label | rpxTranslate : null : formattedValue) : null}}</span>`
|
|
35
32
|
}]
|
|
36
33
|
}], function () { return [{ type: i1.YesNoService }]; }, null); })();
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZC15ZXMtbm8tZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL3BhbGV0dGUveWVzLW5vL3JlYWQteWVzLW5vLWZpZWxkLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDZDQUE2QyxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQzs7OztBQU1oRCxNQUFNLE9BQU8sdUJBQXdCLFNBQVEsMEJBQTBCO0lBR3JFLFlBQTZCLFlBQTBCO1FBQ3JELEtBQUssRUFBRSxDQUFDO1FBRG1CLGlCQUFZLEdBQVosWUFBWSxDQUFjO0lBRXZELENBQUM7SUFFTSxRQUFRO1FBQ2IsS0FBSyxDQUFDLFFBQVEsRUFBRSxDQUFDO1FBQ2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mc7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSB5ZXNOb1NlcnZpY2U6IFllc05vU2VydmljZSkge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkluaXQoKSB7XG4gICAgc3VwZXIubmdPbkluaXQoKTtcbiAgICB0aGlzLmZvcm1hdHRlZFZhbHVlID0gdGhpcy55ZXNOb1NlcnZpY2UuZm9ybWF0KHRoaXMuY2FzZUZpZWxkLnZhbHVlKTtcbiAgfVxufVxuIl19
|
|
@@ -21920,9 +21920,6 @@ class ReadYesNoFieldComponent extends AbstractFieldReadComponent {
|
|
|
21920
21920
|
ngOnInit() {
|
|
21921
21921
|
super.ngOnInit();
|
|
21922
21922
|
this.formattedValue = this.yesNoService.format(this.caseField.value);
|
|
21923
|
-
if (!this.caseField.label) {
|
|
21924
|
-
this.caseField.label = this.formattedValue;
|
|
21925
|
-
}
|
|
21926
21923
|
}
|
|
21927
21924
|
}
|
|
21928
21925
|
ReadYesNoFieldComponent.ɵfac = function ReadYesNoFieldComponent_Factory(t) { return new (t || ReadYesNoFieldComponent)(i0.ɵɵdirectiveInject(YesNoService)); };
|
|
@@ -21935,7 +21932,7 @@ ReadYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Rea
|
|
|
21935
21932
|
}
|
|
21936
21933
|
if (rf & 2) {
|
|
21937
21934
|
i0.ɵɵadvance(1);
|
|
21938
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue));
|
|
21935
|
+
i0.ɵɵtextInterpolate(ctx.formattedValue ? i0.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue) : null);
|
|
21939
21936
|
}
|
|
21940
21937
|
}, dependencies: [i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21941
21938
|
(function () {
|
|
@@ -21943,7 +21940,7 @@ ReadYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Rea
|
|
|
21943
21940
|
type: Component,
|
|
21944
21941
|
args: [{
|
|
21945
21942
|
selector: 'ccd-read-yes-no-field',
|
|
21946
|
-
template: `<span class="text-16">{{caseField.label | rpxTranslate : null : formattedValue}}</span>`
|
|
21943
|
+
template: `<span class="text-16">{{formattedValue ? (caseField.label | rpxTranslate : null : formattedValue) : null}}</span>`
|
|
21947
21944
|
}]
|
|
21948
21945
|
}], function () { return [{ type: YesNoService }]; }, null);
|
|
21949
21946
|
})();
|