@eqproject/eqp-dynamic-module 2.10.84 → 2.10.86

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.
@@ -48,6 +48,7 @@ export declare class AddFormRecordComponent implements OnInit {
48
48
  loader: boolean;
49
49
  isSaving: boolean;
50
50
  formloaded: boolean;
51
+ private _recordChanging;
51
52
  formForm: UntypedFormGroup;
52
53
  fieldGroups: {
53
54
  [key: string]: Array<BaseField>;
@@ -63,8 +64,9 @@ export declare class AddFormRecordComponent implements OnInit {
63
64
  /**
64
65
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
65
66
  * Serve ad aggiornare il valore di tutti i campi che hanno una formula.
67
+ * Il guard _recordChanging previene la rientranza: i campi formula aggiornano
68
+ * record[name] e ciò riemette recordChange; senza guard si genera un loop infinito.
66
69
  */
67
- private _isInRecordChange;
68
70
  onRecordChange(): void;
69
71
  previewOrNewResponseRecord(): void;
70
72
  editResponseRecord(): void;
@@ -69,6 +69,12 @@ export declare class UtilityHelperService {
69
69
  * In nuovo FormControl avrà il nome del campo passato e verranno impostati i Validators in base al tipo del campo stesso.
70
70
  * @param field BaseField per cui creare il FormControl da inserire nel FormGroup dela form.
71
71
  */
72
+ /**
73
+ * Validator "required" che legge dal record invece che da control.value.
74
+ * Serve per far funzionare la validazione quando il valore viene impostato via formula/ActionButton
75
+ * (che aggiornano record[fieldName] direttamente senza passare dal FormControl).
76
+ */
77
+ private createRecordRequiredValidator;
72
78
  private createFieldFormControl;
73
79
  /**
74
80
  * Metodo per configurare gli endpoint da usare di default a partire dall'url base del server
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.10.84",
7
+ "version": "2.10.86",
8
8
  "peerDependencies": {
9
9
  "@angular-material-components/datetime-picker": "^15.0.0",
10
10
  "@angular-material-components/moment-adapter": "^15.0.0",