@eqproject/eqp-dynamic-module 1.0.3 → 1.0.4

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 (21) hide show
  1. package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +25 -4
  2. package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +3 -3
  3. package/esm2020/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +5 -1
  4. package/esm2020/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.mjs +5 -1
  5. package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +5 -1
  6. package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +5 -1
  7. package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +28 -3
  8. package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +5 -1
  9. package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +8 -1
  10. package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +5 -1
  11. package/esm2020/lib/models/baseField.model.mjs +1 -1
  12. package/esm2020/lib/services/utilityHelper.services.mjs +4 -1
  13. package/fesm2015/eqproject-eqp-dynamic-module.mjs +87 -7
  14. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  15. package/fesm2020/eqproject-eqp-dynamic-module.mjs +87 -7
  16. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  17. package/lib/components/private/add-form-field/add-form-field.component.d.ts +5 -0
  18. package/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.d.ts +2 -1
  19. package/lib/models/baseField.model.d.ts +2 -0
  20. package/lib/services/utilityHelper.services.d.ts +1 -0
  21. package/package.json +1 -1
@@ -33,6 +33,10 @@ export declare class AddFormFieldComponent implements OnInit {
33
33
  label: string;
34
34
  value: string;
35
35
  }>;
36
+ VisibleIfAutocompleteOptions: Array<{
37
+ label: string;
38
+ value: string;
39
+ }>;
36
40
  AvailableFileExtensions: {
37
41
  key: string;
38
42
  value: string;
@@ -77,6 +81,7 @@ export declare class AddFormFieldComponent implements OnInit {
77
81
  * oppure al keyup sulla tastiera di un tasto diverso dalle frecce.
78
82
  */
79
83
  setFormulaAutocompleteOptions(keyboardEvent: KeyboardEvent): void;
84
+ setVisibleIfAutocompleteOptions(keyboardEvent: KeyboardEvent): void;
80
85
  /**
81
86
  * Crea il FormGroup per l'aggiunta di un nuovo campo all'interno della form.
82
87
  * Metodo richiamato ogni volta che cambia il tipo del campo scelto o viene aggiunto/modificato un Field
@@ -27,7 +27,7 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
27
27
  */
28
28
  buttonSelectClick(data: {
29
29
  Key: string;
30
- Value: any;
30
+ Value: string;
31
31
  Selected?: boolean;
32
32
  ImgUrl?: string;
33
33
  }): void;
@@ -45,6 +45,7 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
45
45
  */
46
46
  private setArrayData;
47
47
  private createArrayDataElement;
48
+ private createNumberArrayDataElement;
48
49
  /**
49
50
  * Metodo per aggiornare il valore e il validator del FormControl associato al campo.
50
51
  */
@@ -14,9 +14,11 @@ export declare class BaseField extends BaseObj {
14
14
  Description: string;
15
15
  Required: boolean;
16
16
  Formula: string;
17
+ Tooltip: string;
17
18
  OrdinalPosition: number;
18
19
  Disabled: boolean;
19
20
  Readonly: boolean;
21
+ VisibleIf: string;
20
22
  /**
21
23
  * Entità a cui appartiene il campo. Si tenga presente che sono ammessi anche campi
22
24
  * di sola visualizzazione e calcolati, da utilizzare nelle form,
@@ -16,6 +16,7 @@ export declare class UtilityHelperService {
16
16
  constructor(formBuilder: UntypedFormBuilder, http: HttpClient, spinnerService: SpinnerService);
17
17
  static EvaluateFieldFormula(formula: string, rec: Record, ctx: any): any;
18
18
  static SetContext(ctx: Context): void;
19
+ static isNumeric(n: any): boolean;
19
20
  static GetFieldType(field: BaseField): TextField;
20
21
  /**
21
22
  * Metodo per impostare i valori da suggerire nell'autocomplete per i campi in cui l'utente deve scrivere comandi javascript.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "1.0.3",
7
+ "version": "1.0.4",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "~14.2.8",
10
10
  "@angular/core": "~14.2.8",