@eqproject/eqp-dynamic-module 2.9.26 → 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 (24) 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 +28 -8
  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/boolean-field-template/boolean-field-template.component.mjs +4 -1
  8. package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +4 -1
  9. package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +4 -1
  10. package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +4 -1
  11. package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +4 -1
  12. package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +4 -1
  13. package/esm2020/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.mjs +5 -5
  14. package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +3 -2
  15. package/esm2020/lib/components/private/tmw-image-marker/tmw-image-marker.component.mjs +3 -2
  16. package/esm2020/lib/models/baseField.model.mjs +7 -3
  17. package/fesm2015/eqproject-eqp-dynamic-module.mjs +226 -144
  18. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  19. package/fesm2020/eqproject-eqp-dynamic-module.mjs +223 -144
  20. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  21. package/lib/components/private/add-form-field/add-form-field.component.d.ts +2 -0
  22. package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +32 -0
  23. package/lib/models/baseField.model.d.ts +4 -2
  24. package/package.json +1 -1
@@ -91,6 +91,7 @@ export declare class AddFormFieldComponent implements OnInit {
91
91
  selectedMetadata: BaseField;
92
92
  dialogFormulaRef: MatDialogRef<TemplateRef<any>>;
93
93
  dialogVisibleIfRef: MatDialogRef<TemplateRef<any>>;
94
+ dialogReadOnlyIfRef: MatDialogRef<TemplateRef<any>>;
94
95
  dialogFormula: TemplateRef<any>;
95
96
  buttonImagesKeyValueInputColumn: TemplateRef<any>;
96
97
  FieldTypeEnum: typeof FieldTypeEnum;
@@ -220,6 +221,7 @@ export declare class AddFormFieldComponent implements OnInit {
220
221
  deleteKeyFromDictionary(key: string): void;
221
222
  openFormulaDialog(): void;
222
223
  openVisibleIfDialog(): void;
224
+ openReadOnlyIfDialog(): void;
223
225
  openAnswerStyleVisibleIfDialog(): void;
224
226
  stringSanitizer(value: any): void;
225
227
  /**
@@ -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>;
@@ -19,6 +19,7 @@ export declare class BaseField extends BaseObj {
19
19
  OrdinalPosition: number;
20
20
  Disabled: boolean;
21
21
  Readonly: boolean;
22
+ ReadonlyIf: string;
22
23
  FieldstyleCSS: string;
23
24
  LabelstyleCSS: string;
24
25
  AnswerStyle: AnswerStyle;
@@ -124,6 +125,7 @@ export declare enum FieldInvisibilityEnum {
124
125
  'NASCOSTO CON AREA VISIBILE' = 2
125
126
  }
126
127
  export declare enum DataGetterCardinalityEnum {
127
- 'PIU RECENTE' = 2,
128
- 'MENO RECENTE' = 3
128
+ 'PIU RECENTE' = 1,
129
+ 'MENO RECENTE' = 4,
130
+ 'CONTESTUALIZZATA ALLA RISPOSTA' = 5
129
131
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.9.26",
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",