@eqproject/eqp-dynamic-module 2.10.73 → 2.10.75

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.
@@ -7208,9 +7208,10 @@ class DbgetterComponent {
7208
7208
  this.QueryEditorComponent.inputParams.config.field = this.field;
7209
7209
  this.QueryEditorComponent.inputParams.config.record = this.record;
7210
7210
  this.QueryEditorComponent.inputParams.config.inConfig = this.inConfig;
7211
- // V2: il QueryEditor in RESULT mode riceve anche loadQueryStatuses con il queryConfig già unwrappato
7211
+ // V2: il QueryEditor in RESULT mode riceve il queryConfig e il version flag
7212
7212
  if (isV2) {
7213
7213
  this.QueryEditorComponent.inputParams.config.loadQueryStatuses = this.field.DataGetter.DataGetterValue;
7214
+ this.QueryEditorComponent.inputParams.config.DataGetterCodeVersion = 2;
7214
7215
  }
7215
7216
  if (this.field.DataGetter.DataGetterValue.openedFields.find(x => typeof x.QueryPropertyValue !== "object" && x.QueryPropertyValue == '?') != null) {
7216
7217
  // Il campo ha almeno un valore con "?"
@@ -18366,7 +18367,13 @@ class EqpDynamicModuleConfiguratorComponent {
18366
18367
  this.currentAiDataGetterField.DataGetter.DataGetterValue = data;
18367
18368
  this.currentAiDataGetterField.DataGetter.DataGetterCardinality = 1;
18368
18369
  this.currentAiDataGetterField.DataGetter.DataGetterHasResetButton = true;
18369
- if (data?.selectedFields?.length === 1) {
18370
+ // V2: DataGetterColumnForce già incluso nel QueryCommandDTO dal server AI
18371
+ // V1 fallback: calcolato dai selectedFields flat
18372
+ const columnForce = data?.DataGetterColumnForce;
18373
+ if (columnForce) {
18374
+ this.currentAiDataGetterField.DataGetter.DataGetterColumnForce = columnForce;
18375
+ }
18376
+ else if (data?.selectedFields?.length === 1) {
18370
18377
  const sf = data.selectedFields[0];
18371
18378
  this.currentAiDataGetterField.DataGetter.DataGetterColumnForce = {
18372
18379
  key: sf.DatabaseTableName + "_" + sf.PropertyName + "__" + sf.CurrentTranslate.replace(/ /g, '_'),
@@ -18375,6 +18382,8 @@ class EqpDynamicModuleConfiguratorComponent {
18375
18382
  };
18376
18383
  }
18377
18384
  this.currentAiDataGetterField.DataGetter.DataGetterSpeechText = null;
18385
+ // Azzera DataGetterSpeechText dal config object per evitare che "Modifica" lo rilanci
18386
+ this.QueryEditorComponent.inputParams.config.DataGetterSpeechText = null;
18378
18387
  this.currentAiDataGetterField = null;
18379
18388
  this.aiDataGetterLoading = false;
18380
18389
  if (this.pendingAiDataGetterFields.length > 0) {