@eqproject/eqp-dynamic-module 2.10.78 → 2.10.79
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 +4 -0
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +5 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +4 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +4 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15792,6 +15792,10 @@ class AddFormFieldComponent {
|
|
|
15792
15792
|
const label = key.CurrentTranslate || key.PropertyName;
|
|
15793
15793
|
this.columnKeys.push({ key: key.DatabaseTableName + "_" + key.PropertyName + "__" + label.replace(" ", "_"), value: label });
|
|
15794
15794
|
});
|
|
15795
|
+
// V2: se c'è una sola colonna disponibile, selezionala automaticamente
|
|
15796
|
+
if (isV2 && this.columnKeys.length === 1) {
|
|
15797
|
+
this.field.DataGetter.DataGetterColumnForce = this.columnKeys[0].key;
|
|
15798
|
+
}
|
|
15795
15799
|
// V2: auto-seleziona la colonna suggerita dall'AI nel pannello di configurazione
|
|
15796
15800
|
if (isV2 && data.DataGetterColumnForce?.key) {
|
|
15797
15801
|
const match = this.columnKeys.find(k => k.key === data.DataGetterColumnForce.key);
|