@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.
@@ -15917,6 +15917,10 @@ 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: se c'è una sola colonna disponibile, selezionala automaticamente
15921
+ if (isV2 && this.columnKeys.length === 1) {
15922
+ this.field.DataGetter.DataGetterColumnForce = this.columnKeys[0].key;
15923
+ }
15920
15924
  // V2: auto-seleziona la colonna suggerita dall'AI nel pannello di configurazione
15921
15925
  if (isV2 && ((_b = data.DataGetterColumnForce) === null || _b === void 0 ? void 0 : _b.key)) {
15922
15926
  const match = this.columnKeys.find(k => k.key === data.DataGetterColumnForce.key);