@eqproject/eqp-dynamic-module 2.10.77 → 2.10.78
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/components/private/add-form-field/add-form-field.component.mjs +8 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +8 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +7 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15900,7 +15900,7 @@ class AddFormFieldComponent {
|
|
|
15900
15900
|
this.createColumnKeys(data);
|
|
15901
15901
|
}
|
|
15902
15902
|
createColumnKeys(data) {
|
|
15903
|
-
var _a;
|
|
15903
|
+
var _a, _b;
|
|
15904
15904
|
if (data == null && this.field.DataGetter.DataGetterValue != null) {
|
|
15905
15905
|
data = this.field.DataGetter.DataGetterValue;
|
|
15906
15906
|
}
|
|
@@ -15917,6 +15917,13 @@ class AddFormFieldComponent {
|
|
|
15917
15917
|
const label = key.CurrentTranslate || key.PropertyName;
|
|
15918
15918
|
this.columnKeys.push({ key: key.DatabaseTableName + "_" + key.PropertyName + "__" + label.replace(" ", "_"), value: label });
|
|
15919
15919
|
});
|
|
15920
|
+
// V2: auto-seleziona la colonna suggerita dall'AI nel pannello di configurazione
|
|
15921
|
+
if (isV2 && ((_b = data.DataGetterColumnForce) === null || _b === void 0 ? void 0 : _b.key)) {
|
|
15922
|
+
const match = this.columnKeys.find(k => k.key === data.DataGetterColumnForce.key);
|
|
15923
|
+
if (match) {
|
|
15924
|
+
this.field.DataGetter.DataGetterColumnForce = match.key;
|
|
15925
|
+
}
|
|
15926
|
+
}
|
|
15920
15927
|
}
|
|
15921
15928
|
}
|
|
15922
15929
|
//#endregion DB GETTER
|