@eqproject/eqp-dynamic-module 2.10.75 → 2.10.76
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/README.md +5 -1
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +12 -4
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +12 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +11 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15900,13 +15900,22 @@ class AddFormFieldComponent {
|
|
|
15900
15900
|
this.createColumnKeys(data);
|
|
15901
15901
|
}
|
|
15902
15902
|
createColumnKeys(data) {
|
|
15903
|
+
var _a;
|
|
15903
15904
|
if (data == null && this.field.DataGetter.DataGetterValue != null) {
|
|
15904
15905
|
data = this.field.DataGetter.DataGetterValue;
|
|
15905
15906
|
}
|
|
15906
|
-
if (data
|
|
15907
|
+
if (data == null || typeof data === "undefined")
|
|
15908
|
+
return;
|
|
15909
|
+
// V2 (DataGetterCodeVersion === 2): selectedFields è dentro queryCommandDatabaseConfiguration
|
|
15910
|
+
const isV2 = data.DataGetterCodeVersion === 2;
|
|
15911
|
+
const selectedFields = isV2
|
|
15912
|
+
? (_a = data.queryCommandDatabaseConfiguration) === null || _a === void 0 ? void 0 : _a.selectedFields
|
|
15913
|
+
: data.selectedFields;
|
|
15914
|
+
if (selectedFields != null && typeof selectedFields != "undefined") {
|
|
15907
15915
|
this.columnKeys = new Array();
|
|
15908
|
-
|
|
15909
|
-
|
|
15916
|
+
selectedFields.forEach((key) => {
|
|
15917
|
+
const label = key.CurrentTranslate || key.PropertyName;
|
|
15918
|
+
this.columnKeys.push({ key: key.DatabaseTableName + "_" + key.PropertyName + "__" + label.replace(" ", "_"), value: label });
|
|
15910
15919
|
});
|
|
15911
15920
|
}
|
|
15912
15921
|
}
|