@hmcts/ccd-case-ui-toolkit 7.3.55-message-interpolation → 7.3.55-message-interpolation-01
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.
|
@@ -11967,10 +11967,13 @@ class CaseEditPageComponent {
|
|
|
11967
11967
|
});
|
|
11968
11968
|
}
|
|
11969
11969
|
getRpxTranslatePipeArgs(fieldLabel) {
|
|
11970
|
-
return fieldLabel ? ({ FIELDLABEL: fieldLabel }) : null;
|
|
11970
|
+
return fieldLabel ? ({ FIELDLABEL: this.resolveLabelPlaceholders(fieldLabel) }) : null;
|
|
11971
11971
|
}
|
|
11972
11972
|
getInterpolatedFieldLabel(caseField) {
|
|
11973
11973
|
const label = caseField.label || 'Field';
|
|
11974
|
+
return this.resolveLabelPlaceholders(label);
|
|
11975
|
+
}
|
|
11976
|
+
resolveLabelPlaceholders(label) {
|
|
11974
11977
|
const dataControl = this.editForm?.controls?.['data'];
|
|
11975
11978
|
const formFields = dataControl && typeof dataControl.getRawValue === 'function'
|
|
11976
11979
|
? dataControl.getRawValue()
|
|
@@ -29507,10 +29510,10 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
29507
29510
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldRawComponent, { className: "ReadComplexFieldRawComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-raw.component.ts", lineNumber: 17 }); })();
|
|
29508
29511
|
|
|
29509
29512
|
const _c0$k = (a0, a1, a2, a3) => [a0, false, undefined, true, a1, a2, a3];
|
|
29510
|
-
function
|
|
29513
|
+
function ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
29511
29514
|
i0.ɵɵelementContainerStart(0);
|
|
29512
|
-
i0.ɵɵelementStart(1, "tr",
|
|
29513
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
29515
|
+
i0.ɵɵelementStart(1, "tr", 8)(2, "td", 9)(3, "span", 3);
|
|
29516
|
+
i0.ɵɵelement(4, "ccd-field-read", 10);
|
|
29514
29517
|
i0.ɵɵelementEnd()()();
|
|
29515
29518
|
i0.ɵɵelementContainerEnd();
|
|
29516
29519
|
} if (rf & 2) {
|
|
@@ -29521,13 +29524,13 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template(r
|
|
|
29521
29524
|
i0.ɵɵadvance(3);
|
|
29522
29525
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29523
29526
|
} }
|
|
29524
|
-
function
|
|
29525
|
-
i0.ɵɵelementStart(0, "tr",
|
|
29527
|
+
function ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
29528
|
+
i0.ɵɵelementStart(0, "tr", 11)(1, "th", 12)(2, "span", 3);
|
|
29526
29529
|
i0.ɵɵtext(3);
|
|
29527
29530
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
29528
29531
|
i0.ɵɵelementEnd()();
|
|
29529
29532
|
i0.ɵɵelementStart(5, "td")(6, "span", 3);
|
|
29530
|
-
i0.ɵɵelement(7, "ccd-field-read",
|
|
29533
|
+
i0.ɵɵelement(7, "ccd-field-read", 10);
|
|
29531
29534
|
i0.ɵɵelementEnd()()();
|
|
29532
29535
|
} if (rf & 2) {
|
|
29533
29536
|
const field_r1 = i0.ɵɵnextContext().$implicit;
|
|
@@ -29539,16 +29542,19 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf
|
|
|
29539
29542
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29540
29543
|
} }
|
|
29541
29544
|
function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
29542
|
-
i0.ɵɵelementContainerStart(0);
|
|
29543
|
-
i0.ɵɵtemplate(
|
|
29544
|
-
i0.ɵɵpipe(
|
|
29545
|
-
i0.ɵɵtemplate(
|
|
29546
|
-
i0.ɵɵelementContainerEnd();
|
|
29545
|
+
i0.ɵɵelementContainerStart(0)(1, 6);
|
|
29546
|
+
i0.ɵɵtemplate(2, ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template, 5, 5, "ng-container", 7);
|
|
29547
|
+
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
29548
|
+
i0.ɵɵtemplate(4, ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
29549
|
+
i0.ɵɵelementContainerEnd()();
|
|
29547
29550
|
} if (rf & 2) {
|
|
29548
29551
|
const field_r1 = ctx.$implicit;
|
|
29549
|
-
const SimpleRow_r3 = i0.ɵɵreference(
|
|
29552
|
+
const SimpleRow_r3 = i0.ɵɵreference(5);
|
|
29553
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
29554
|
+
i0.ɵɵadvance();
|
|
29555
|
+
i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
|
|
29550
29556
|
i0.ɵɵadvance();
|
|
29551
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
29557
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 5, field_r1))("ngIfElse", SimpleRow_r3);
|
|
29552
29558
|
} }
|
|
29553
29559
|
class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
29554
29560
|
// parent_ can be replaced with any ***_ - underscore is only important character
|
|
@@ -29569,7 +29575,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29569
29575
|
this.path = ReadComplexFieldTableComponent.DUMMY_STRING_PRE + this.idPrefix + ReadComplexFieldTableComponent.DUMMY_STRING_POST;
|
|
29570
29576
|
}
|
|
29571
29577
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldTableComponent_BaseFactory; return function ReadComplexFieldTableComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldTableComponent_BaseFactory || (ɵReadComplexFieldTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent)))(__ngFactoryType__ || ReadComplexFieldTableComponent); }; })();
|
|
29572
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29578
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29573
29579
|
i0.ɵɵelementStart(0, "div", 1)(1, "dl", 2)(2, "dt")(3, "span", 3);
|
|
29574
29580
|
i0.ɵɵtext(4);
|
|
29575
29581
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -29577,7 +29583,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29577
29583
|
i0.ɵɵelement(6, "dd");
|
|
29578
29584
|
i0.ɵɵelementEnd();
|
|
29579
29585
|
i0.ɵɵelementStart(7, "table", 4)(8, "tbody");
|
|
29580
|
-
i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template,
|
|
29586
|
+
i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template, 6, 7, "ng-container", 5);
|
|
29581
29587
|
i0.ɵɵpipe(10, "ccdReadFieldsFilter");
|
|
29582
29588
|
i0.ɵɵelementEnd()()();
|
|
29583
29589
|
} if (rf & 2) {
|
|
@@ -29589,7 +29595,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29589
29595
|
}
|
|
29590
29596
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
29591
29597
|
type: Component,
|
|
29592
|
-
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n
|
|
29598
|
+
args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
|
|
29593
29599
|
}], null, { caseFields: [{
|
|
29594
29600
|
type: Input
|
|
29595
29601
|
}] }); })();
|
|
@@ -32372,7 +32378,7 @@ i0.ɵɵsetComponentScope(ReadComplexFieldComponent, function () { return [i5.NgS
|
|
|
32372
32378
|
ReadComplexFieldTableComponent,
|
|
32373
32379
|
ReadComplexFieldCollectionTableComponent]; }, []);
|
|
32374
32380
|
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i5.NgForOf, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32375
|
-
i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i5.NgForOf, i5.NgIf, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32381
|
+
i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32376
32382
|
i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, function () { return [i5.NgForOf, i5.NgIf, FieldReadComponent,
|
|
32377
32383
|
ReadCaseLinkFieldComponent]; }, function () { return [i5.KeyValuePipe, IsCompoundPipe, CcdCollectionTableCaseFieldsFilterPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32378
32384
|
i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i5.NgSwitchDefault,
|