@hmcts/ccd-case-ui-toolkit 7.3.76 → 7.3.77-field-interpolation
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.
|
@@ -7059,6 +7059,7 @@ class LabelSubstitutorModule {
|
|
|
7059
7059
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
7060
7060
|
FieldsUtils,
|
|
7061
7061
|
CurrencyPipe,
|
|
7062
|
+
PlaceholderService
|
|
7062
7063
|
] });
|
|
7063
7064
|
}
|
|
7064
7065
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelSubstitutorModule, [{
|
|
@@ -7073,6 +7074,7 @@ class LabelSubstitutorModule {
|
|
|
7073
7074
|
providers: [
|
|
7074
7075
|
FieldsUtils,
|
|
7075
7076
|
CurrencyPipe,
|
|
7077
|
+
PlaceholderService
|
|
7076
7078
|
]
|
|
7077
7079
|
}]
|
|
7078
7080
|
}], null, null); })();
|
|
@@ -11558,6 +11560,8 @@ class CaseEditPageComponent {
|
|
|
11558
11560
|
saveDraftSub;
|
|
11559
11561
|
caseFormValidationErrorsSub;
|
|
11560
11562
|
logger = new StructuredLoggerService();
|
|
11563
|
+
fieldsUtils = new FieldsUtils();
|
|
11564
|
+
placeholderService = new PlaceholderService();
|
|
11561
11565
|
caseEditFormComponents;
|
|
11562
11566
|
static scrollToTop() {
|
|
11563
11567
|
window.scrollTo(0, 0);
|
|
@@ -11722,7 +11726,7 @@ class CaseEditPageComponent {
|
|
|
11722
11726
|
? group.get(`${casefield.id}_judicialUserControl`)
|
|
11723
11727
|
: group.get(casefield.id);
|
|
11724
11728
|
if (fieldElement) {
|
|
11725
|
-
const label = casefield
|
|
11729
|
+
const label = this.getInterpolatedFieldLabel(casefield);
|
|
11726
11730
|
let id = casefield.id;
|
|
11727
11731
|
if (fieldElement['component'] && (fieldElement['component'].parent || sourceFromComplexField)) {
|
|
11728
11732
|
if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
|
|
@@ -11787,7 +11791,7 @@ class CaseEditPageComponent {
|
|
|
11787
11791
|
});
|
|
11788
11792
|
}
|
|
11789
11793
|
else {
|
|
11790
|
-
this.validationErrors.push({ id, message: `Select or fill the required ${
|
|
11794
|
+
this.validationErrors.push({ id, message: `Select or fill the required ${label} field` });
|
|
11791
11795
|
fieldElement.markAsDirty();
|
|
11792
11796
|
}
|
|
11793
11797
|
}
|
|
@@ -12195,7 +12199,20 @@ class CaseEditPageComponent {
|
|
|
12195
12199
|
});
|
|
12196
12200
|
}
|
|
12197
12201
|
getRpxTranslatePipeArgs(fieldLabel) {
|
|
12198
|
-
return fieldLabel ? ({ FIELDLABEL: fieldLabel }) : null;
|
|
12202
|
+
return fieldLabel ? ({ FIELDLABEL: this.resolveLabelPlaceholders(fieldLabel) }) : null;
|
|
12203
|
+
}
|
|
12204
|
+
getInterpolatedFieldLabel(caseField) {
|
|
12205
|
+
const label = caseField.label || 'Field';
|
|
12206
|
+
return this.resolveLabelPlaceholders(label);
|
|
12207
|
+
}
|
|
12208
|
+
resolveLabelPlaceholders(label) {
|
|
12209
|
+
const dataControl = this.editForm?.controls?.['data'];
|
|
12210
|
+
const formFields = dataControl && typeof dataControl.getRawValue === 'function'
|
|
12211
|
+
? dataControl.getRawValue()
|
|
12212
|
+
: {};
|
|
12213
|
+
const contextFields = this.caseFields?.length ? this.caseFields : this.eventTrigger?.case_fields || [];
|
|
12214
|
+
const fields = this.fieldsUtils.mergeLabelCaseFieldsAndFormFields(contextFields, formFields);
|
|
12215
|
+
return this.placeholderService.resolvePlaceholders(fields, label);
|
|
12199
12216
|
}
|
|
12200
12217
|
onEventCanBeCompleted(eventCanBeCompleted) {
|
|
12201
12218
|
this.caseEdit.onEventCanBeCompleted({
|
|
@@ -12255,7 +12272,7 @@ class CaseEditPageComponent {
|
|
|
12255
12272
|
type: ViewChildren,
|
|
12256
12273
|
args: [CaseEditFormComponent]
|
|
12257
12274
|
}] }); })();
|
|
12258
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber:
|
|
12275
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 38 }); })();
|
|
12259
12276
|
|
|
12260
12277
|
class CallbackErrorsContext {
|
|
12261
12278
|
triggerText;
|
|
@@ -25350,7 +25367,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
25350
25367
|
type: ViewChild,
|
|
25351
25368
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
25352
25369
|
}] }); })();
|
|
25353
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadComponent, { className: "FieldReadComponent", filePath: "lib/shared/components/palette/base-field/field-read.component.ts", lineNumber:
|
|
25370
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadComponent, { className: "FieldReadComponent", filePath: "lib/shared/components/palette/base-field/field-read.component.ts", lineNumber: 15 }); })();
|
|
25354
25371
|
|
|
25355
25372
|
const _c0$y = ["fieldContainer"];
|
|
25356
25373
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
@@ -29712,22 +29729,24 @@ class UpdateFlagTitleDisplayPipe extends AsyncPipe {
|
|
|
29712
29729
|
|
|
29713
29730
|
const _c0$l = (a0, a1, a2) => [a0, false, undefined, true, a1, a2];
|
|
29714
29731
|
function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
29715
|
-
i0.ɵɵelementContainerStart(0);
|
|
29716
|
-
i0.ɵɵelementStart(
|
|
29717
|
-
i0.ɵɵtext(
|
|
29718
|
-
i0.ɵɵpipe(
|
|
29732
|
+
i0.ɵɵelementContainerStart(0)(1, 2);
|
|
29733
|
+
i0.ɵɵelementStart(2, "dt", 3)(3, "span", 4);
|
|
29734
|
+
i0.ɵɵtext(4);
|
|
29735
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
29719
29736
|
i0.ɵɵelementEnd()();
|
|
29720
|
-
i0.ɵɵelementStart(
|
|
29721
|
-
i0.ɵɵelement(
|
|
29737
|
+
i0.ɵɵelementStart(6, "dd", 3);
|
|
29738
|
+
i0.ɵɵelement(7, "ccd-field-read", 5);
|
|
29722
29739
|
i0.ɵɵelementEnd();
|
|
29723
|
-
i0.ɵɵelementContainerEnd();
|
|
29740
|
+
i0.ɵɵelementContainerEnd()();
|
|
29724
29741
|
} if (rf & 2) {
|
|
29725
29742
|
const field_r1 = ctx.$implicit;
|
|
29726
29743
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
29727
29744
|
i0.ɵɵadvance();
|
|
29745
|
+
i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
|
|
29746
|
+
i0.ɵɵadvance();
|
|
29728
29747
|
i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
|
|
29729
29748
|
i0.ɵɵadvance(2);
|
|
29730
|
-
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(
|
|
29749
|
+
i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(5, 11, field_r1.label) : field_r1.label);
|
|
29731
29750
|
i0.ɵɵadvance(2);
|
|
29732
29751
|
i0.ɵɵproperty("hidden", field_r1.hidden);
|
|
29733
29752
|
i0.ɵɵadvance();
|
|
@@ -29740,9 +29759,9 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
29740
29759
|
class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
29741
29760
|
caseFields = [];
|
|
29742
29761
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldRawComponent_BaseFactory; return function ReadComplexFieldRawComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldRawComponent_BaseFactory || (ɵReadComplexFieldRawComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent)))(__ngFactoryType__ || ReadComplexFieldRawComponent); }; })();
|
|
29743
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29762
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29744
29763
|
i0.ɵɵelementStart(0, "dl", 0);
|
|
29745
|
-
i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template,
|
|
29764
|
+
i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template, 8, 13, "ng-container", 1);
|
|
29746
29765
|
i0.ɵɵpipe(2, "ccdReadFieldsFilter");
|
|
29747
29766
|
i0.ɵɵelementEnd();
|
|
29748
29767
|
} if (rf & 2) {
|
|
@@ -29752,17 +29771,17 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
29752
29771
|
}
|
|
29753
29772
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
29754
29773
|
type: Component,
|
|
29755
|
-
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n
|
|
29774
|
+
args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
|
|
29756
29775
|
}], null, { caseFields: [{
|
|
29757
29776
|
type: Input
|
|
29758
29777
|
}] }); })();
|
|
29759
29778
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldRawComponent, { className: "ReadComplexFieldRawComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-raw.component.ts", lineNumber: 17 }); })();
|
|
29760
29779
|
|
|
29761
29780
|
const _c0$k = (a0, a1, a2, a3) => [a0, false, undefined, true, a1, a2, a3];
|
|
29762
|
-
function
|
|
29781
|
+
function ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
29763
29782
|
i0.ɵɵelementContainerStart(0);
|
|
29764
|
-
i0.ɵɵelementStart(1, "tr",
|
|
29765
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
29783
|
+
i0.ɵɵelementStart(1, "tr", 8)(2, "td", 9)(3, "span", 3);
|
|
29784
|
+
i0.ɵɵelement(4, "ccd-field-read", 10);
|
|
29766
29785
|
i0.ɵɵelementEnd()()();
|
|
29767
29786
|
i0.ɵɵelementContainerEnd();
|
|
29768
29787
|
} if (rf & 2) {
|
|
@@ -29773,13 +29792,13 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template(r
|
|
|
29773
29792
|
i0.ɵɵadvance(3);
|
|
29774
29793
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29775
29794
|
} }
|
|
29776
|
-
function
|
|
29777
|
-
i0.ɵɵelementStart(0, "tr",
|
|
29795
|
+
function ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
29796
|
+
i0.ɵɵelementStart(0, "tr", 11)(1, "th", 12)(2, "span", 3);
|
|
29778
29797
|
i0.ɵɵtext(3);
|
|
29779
29798
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
29780
29799
|
i0.ɵɵelementEnd()();
|
|
29781
29800
|
i0.ɵɵelementStart(5, "td")(6, "span", 3);
|
|
29782
|
-
i0.ɵɵelement(7, "ccd-field-read",
|
|
29801
|
+
i0.ɵɵelement(7, "ccd-field-read", 10);
|
|
29783
29802
|
i0.ɵɵelementEnd()()();
|
|
29784
29803
|
} if (rf & 2) {
|
|
29785
29804
|
const field_r1 = i0.ɵɵnextContext().$implicit;
|
|
@@ -29791,16 +29810,19 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf
|
|
|
29791
29810
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
|
|
29792
29811
|
} }
|
|
29793
29812
|
function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
29794
|
-
i0.ɵɵelementContainerStart(0);
|
|
29795
|
-
i0.ɵɵtemplate(
|
|
29796
|
-
i0.ɵɵpipe(
|
|
29797
|
-
i0.ɵɵtemplate(
|
|
29798
|
-
i0.ɵɵelementContainerEnd();
|
|
29813
|
+
i0.ɵɵelementContainerStart(0)(1, 6);
|
|
29814
|
+
i0.ɵɵtemplate(2, ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template, 5, 5, "ng-container", 7);
|
|
29815
|
+
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
29816
|
+
i0.ɵɵtemplate(4, ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
29817
|
+
i0.ɵɵelementContainerEnd()();
|
|
29799
29818
|
} if (rf & 2) {
|
|
29800
29819
|
const field_r1 = ctx.$implicit;
|
|
29801
|
-
const SimpleRow_r3 = i0.ɵɵreference(
|
|
29820
|
+
const SimpleRow_r3 = i0.ɵɵreference(5);
|
|
29821
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
29822
|
+
i0.ɵɵadvance();
|
|
29823
|
+
i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
|
|
29802
29824
|
i0.ɵɵadvance();
|
|
29803
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
29825
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 5, field_r1))("ngIfElse", SimpleRow_r3);
|
|
29804
29826
|
} }
|
|
29805
29827
|
class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
29806
29828
|
// parent_ can be replaced with any ***_ - underscore is only important character
|
|
@@ -29821,7 +29843,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29821
29843
|
this.path = ReadComplexFieldTableComponent.DUMMY_STRING_PRE + this.idPrefix + ReadComplexFieldTableComponent.DUMMY_STRING_POST;
|
|
29822
29844
|
}
|
|
29823
29845
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldTableComponent_BaseFactory; return function ReadComplexFieldTableComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldTableComponent_BaseFactory || (ɵReadComplexFieldTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent)))(__ngFactoryType__ || ReadComplexFieldTableComponent); }; })();
|
|
29824
|
-
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) {
|
|
29846
|
+
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) {
|
|
29825
29847
|
i0.ɵɵelementStart(0, "div", 1)(1, "dl", 2)(2, "dt")(3, "span", 3);
|
|
29826
29848
|
i0.ɵɵtext(4);
|
|
29827
29849
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -29829,7 +29851,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29829
29851
|
i0.ɵɵelement(6, "dd");
|
|
29830
29852
|
i0.ɵɵelementEnd();
|
|
29831
29853
|
i0.ɵɵelementStart(7, "table", 4)(8, "tbody");
|
|
29832
|
-
i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template,
|
|
29854
|
+
i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template, 6, 7, "ng-container", 5);
|
|
29833
29855
|
i0.ɵɵpipe(10, "ccdReadFieldsFilter");
|
|
29834
29856
|
i0.ɵɵelementEnd()()();
|
|
29835
29857
|
} if (rf & 2) {
|
|
@@ -29841,7 +29863,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
29841
29863
|
}
|
|
29842
29864
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
29843
29865
|
type: Component,
|
|
29844
|
-
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
|
|
29866
|
+
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"] }]
|
|
29845
29867
|
}], null, { caseFields: [{
|
|
29846
29868
|
type: Input
|
|
29847
29869
|
}] }); })();
|
|
@@ -32621,8 +32643,8 @@ i0.ɵɵsetComponentScope(ReadOrderSummaryRowComponent, function () { return [Rea
|
|
|
32621
32643
|
i0.ɵɵsetComponentScope(ReadComplexFieldComponent, function () { return [i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault, ReadComplexFieldRawComponent,
|
|
32622
32644
|
ReadComplexFieldTableComponent,
|
|
32623
32645
|
ReadComplexFieldCollectionTableComponent]; }, []);
|
|
32624
|
-
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i4.NgForOf, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32625
|
-
i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i4.NgForOf, i4.NgIf, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32646
|
+
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i4.NgForOf, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32647
|
+
i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i4.NgForOf, i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32626
32648
|
i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, function () { return [i4.NgForOf, i4.NgIf, FieldReadComponent,
|
|
32627
32649
|
ReadCaseLinkFieldComponent]; }, function () { return [i4.KeyValuePipe, IsCompoundPipe, CcdCollectionTableCaseFieldsFilterPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
|
|
32628
32650
|
i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault,
|