@eqproject/eqp-dynamic-module 0.0.10 → 0.0.12

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 (34) hide show
  1. package/bundles/eqproject-eqp-dynamic-module.umd.js +27 -22
  2. package/bundles/eqproject-eqp-dynamic-module.umd.js.map +1 -1
  3. package/bundles/eqproject-eqp-dynamic-module.umd.min.js +2 -2
  4. package/bundles/eqproject-eqp-dynamic-module.umd.min.js.map +1 -1
  5. package/eqproject-eqp-dynamic-module.metadata.json +1 -1
  6. package/esm2015/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.js +5 -2
  7. package/esm2015/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.js +20 -17
  8. package/esm2015/lib/components/private/add-form-field/add-form-field.component.js +1 -1
  9. package/esm2015/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.js +1 -1
  10. package/esm2015/lib/eqp-dynamic-module.module.js +1 -3
  11. package/esm2015/lib/models/fields/{testareaField.model.js → textareaField.model.js} +1 -1
  12. package/esm2015/lib/models/form.model.js +1 -1
  13. package/esm2015/lib/services/utilityHelper.services.js +1 -1
  14. package/esm2015/public-api.js +2 -2
  15. package/esm5/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.js +5 -2
  16. package/esm5/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.js +20 -17
  17. package/esm5/lib/components/private/add-form-field/add-form-field.component.js +1 -1
  18. package/esm5/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.js +1 -1
  19. package/esm5/lib/eqp-dynamic-module.module.js +1 -3
  20. package/esm5/lib/models/fields/{testareaField.model.js → textareaField.model.js} +1 -1
  21. package/esm5/lib/models/form.model.js +1 -1
  22. package/esm5/lib/services/utilityHelper.services.js +1 -1
  23. package/esm5/public-api.js +2 -2
  24. package/fesm2015/eqproject-eqp-dynamic-module.js +23 -19
  25. package/fesm2015/eqproject-eqp-dynamic-module.js.map +1 -1
  26. package/fesm5/eqproject-eqp-dynamic-module.js +23 -19
  27. package/fesm5/eqproject-eqp-dynamic-module.js.map +1 -1
  28. package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +1 -1
  29. package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +1 -2
  30. package/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.d.ts +1 -1
  31. package/lib/models/fields/{testareaField.model.d.ts → textareaField.model.d.ts} +0 -0
  32. package/lib/models/form.model.d.ts +1 -0
  33. package/package.json +1 -1
  34. package/public-api.d.ts +1 -1
@@ -11,6 +11,7 @@ export declare class EqpDynamicModuleComponent implements OnInit {
11
11
  values: Array<Record>;
12
12
  showButtons: boolean;
13
13
  showTitle: boolean;
14
+ viewMode: FormTypeEnum;
14
15
  /**
15
16
  * Url del server da chiamare per recuperare, salvare o eliminare i record.
16
17
  * Usato per creare la configurazione di default degli endpoint da chiamare.
@@ -43,7 +44,6 @@ export declare class EqpDynamicModuleComponent implements OnInit {
43
44
  afterDeleteRecord: EventEmitter<Record>;
44
45
  afterDuplicateRecord: EventEmitter<Record>;
45
46
  form: Form;
46
- viewMode: FormTypeEnum;
47
47
  FormTypeEnum: typeof FormTypeEnum;
48
48
  selectedRecord: Record;
49
49
  onlyView: boolean;
@@ -15,6 +15,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
15
15
  form: Form;
16
16
  formID: string;
17
17
  innerFormManagment: boolean;
18
+ orgaID: string;
18
19
  /**
19
20
  * Url del server da chiamare per recuerare, salvare o eliminare i record.
20
21
  * Usato per creare la configurazione di default degli endpoint da chiamare.
@@ -163,8 +164,6 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
163
164
  * Metodo per salvare la form creata alla fine del wizard.
164
165
  * Se è stato configurato un endPoint per il salvataggio viene effettuata una chiamata al server passando l'oggeto da salvare
165
166
  * nel body della chiamata, altrimenti scatena l'evento "saveFormEvent".
166
- * NOTA: Per comunicare correttamente con la parte server del modulo dinamico bisogna modificare l'array dei Fields.
167
- * Al posto di passare un array di BaseField bisogna passare un array di oggetti del tipo { FieldType: FieldTypeEnum, Value: BaseField }.
168
167
  */
169
168
  saveForm(): void;
170
169
  /**
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
3
3
  import { Record } from '../../../../models/record.model';
4
- import { TextareaField } from '../../../../models/fields/testareaField.model';
4
+ import { TextareaField } from '../../../../models/fields/textareaField.model';
5
5
  export declare class TextareaFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
6
6
  field: TextareaField;
7
7
  record: Record;
@@ -23,6 +23,7 @@ export declare class Form extends BaseObj implements IRootObject {
23
23
  InnerForms: Array<Form>;
24
24
  RootEntityID: string;
25
25
  OldName?: string;
26
+ ObjectFields: any[];
26
27
  }
27
28
  export declare class FormFieldGroup {
28
29
  Name: string;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "0.0.10",
7
+ "version": "0.0.12",
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^9.0.7",
10
10
  "@angular/core": "^9.0.7",
package/public-api.d.ts CHANGED
@@ -29,7 +29,7 @@ export * from './lib/models/fields/imageField.model';
29
29
  export * from './lib/models/fields/listValueField.model';
30
30
  export * from './lib/models/fields/lookupField.model';
31
31
  export * from './lib/models/fields/numericField.model';
32
- export * from './lib/models/fields/testareaField.model';
32
+ export * from './lib/models/fields/textareaField.model';
33
33
  export * from './lib/models/fields/textField.model';
34
34
  export * from './lib/services/custom-form-validators.service';
35
35
  export * from './lib/services/eqp-dynamic-module-dialog.service';