@eqproject/eqp-dynamic-module 2.9.27 → 2.9.28

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.
Files changed (18) hide show
  1. package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +3 -3
  2. package/esm2020/lib/components/private/action-button-creator/action-button-creator.component.mjs +3 -3
  3. package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +10 -11
  4. package/esm2020/lib/components/private/add-formula-field/add-formula-field.component.mjs +4 -3
  5. package/esm2020/lib/components/private/dbgetter/dbgetter.component.mjs +25 -10
  6. package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +138 -115
  7. package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +4 -1
  8. package/esm2020/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.mjs +5 -5
  9. package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +3 -2
  10. package/esm2020/lib/components/private/tmw-image-marker/tmw-image-marker.component.mjs +3 -2
  11. package/esm2020/lib/models/baseField.model.mjs +7 -3
  12. package/fesm2015/eqproject-eqp-dynamic-module.mjs +193 -147
  13. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  14. package/fesm2020/eqproject-eqp-dynamic-module.mjs +190 -147
  15. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  16. package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +32 -0
  17. package/lib/models/baseField.model.d.ts +3 -2
  18. package/package.json +1 -1
@@ -79,7 +79,39 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
79
79
  onImageMark(event: DynAttachment): void;
80
80
  onExternalComponentOut(ev: eventOut): void;
81
81
  onSelectedValue(value: any): void;
82
+ /**
83
+ * Gestisce il recupero dei dati dinamici (Dynamic Module Getter) in base alla modalità.
84
+ */
82
85
  manageDMGetter(): void;
86
+ /**
87
+ * Esegue la chiamata se la modalità è "contestualizzata alla risposta",
88
+ * utilizzando l'ID della risposta originaria.
89
+ */
90
+ private handleResponseContextualized;
91
+ /**
92
+ * Gestisce tutte le altre modalità, inclusa la contestualizzazione per ID esterno.
93
+ */
94
+ private handleNonContextualized;
95
+ /**
96
+ * Costruisce i parametri richiesti dalla chiamata API in base al contesto.
97
+ */
98
+ private buildBaseParams;
99
+ /**
100
+ * Imposta il valore del campo nel record corrente, usando la colonna specificata.
101
+ */
102
+ private setFieldValue;
103
+ /**
104
+ * Esegue la chiamata API in modalità contestualizzata e assegna il risultato.
105
+ */
106
+ private fetchDataWithContextualization;
107
+ /**
108
+ * Esegue la chiamata API in modalità NON contestualizzata e assegna il risultato.
109
+ */
110
+ private fetchDataWithoutContextualization;
111
+ /**
112
+ * Seleziona la risposta corretta tra le disponibili, in base alla cardinalità.
113
+ */
114
+ private pickAnswer;
83
115
  onFireTrigger(ev: FireTrigger): void;
84
116
  reloadDBGetter(): void;
85
117
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleFieldFixComponent, never>;
@@ -125,6 +125,7 @@ export declare enum FieldInvisibilityEnum {
125
125
  'NASCOSTO CON AREA VISIBILE' = 2
126
126
  }
127
127
  export declare enum DataGetterCardinalityEnum {
128
- 'PIU RECENTE' = 2,
129
- 'MENO RECENTE' = 3
128
+ 'PIU RECENTE' = 1,
129
+ 'MENO RECENTE' = 4,
130
+ 'CONTESTUALIZZATA ALLA RISPOSTA' = 5
130
131
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.9.27",
7
+ "version": "2.9.28",
8
8
  "peerDependencies": {
9
9
  "@angular-material-components/datetime-picker": "^15.0.0",
10
10
  "@angular-material-components/moment-adapter": "^15.0.0",