@eqproject/eqp-dynamic-module 2.3.42 → 2.4.1

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 (45) hide show
  1. package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +28 -4
  2. package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +242 -90
  3. package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +5 -3
  4. package/esm2020/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.mjs +71 -0
  5. package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +31 -18
  6. package/esm2020/lib/components/private/field-templates/label-field-template/label-field-template.component.mjs +74 -0
  7. package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +6 -15
  8. package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +3 -3
  9. package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +31 -3
  10. package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +21 -18
  11. package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +3 -3
  12. package/esm2020/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.mjs +4 -3
  13. package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +126 -0
  14. package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +5 -11
  15. package/esm2020/lib/eqp-dynamic-module.module.mjs +12 -3
  16. package/esm2020/lib/models/baseField.model.mjs +9 -2
  17. package/esm2020/lib/models/fields/imageField.model.mjs +17 -4
  18. package/esm2020/lib/models/fields/imageSelectorField.model.mjs +21 -0
  19. package/esm2020/lib/models/fields/labelField.model.mjs +4 -0
  20. package/esm2020/lib/models/fields/listValueField.model.mjs +1 -4
  21. package/esm2020/lib/models/form.model.mjs +1 -1
  22. package/esm2020/lib/models/logicOperator.model.mjs +6 -1
  23. package/esm2020/lib/models/statistic.model.mjs +1 -1
  24. package/esm2020/lib/services/utilityHelper.services.mjs +37 -14
  25. package/esm2020/public-api.mjs +2 -1
  26. package/fesm2015/eqproject-eqp-dynamic-module.mjs +711 -185
  27. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  28. package/fesm2020/eqproject-eqp-dynamic-module.mjs +711 -185
  29. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  30. package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +4 -1
  31. package/lib/components/private/add-form-field/add-form-field.component.d.ts +18 -8
  32. package/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.d.ts +31 -0
  33. package/lib/components/private/field-templates/label-field-template/label-field-template.component.d.ts +34 -0
  34. package/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.d.ts +47 -0
  35. package/lib/eqp-dynamic-module.module.d.ts +14 -11
  36. package/lib/models/baseField.model.d.ts +9 -1
  37. package/lib/models/fields/imageField.model.d.ts +4 -13
  38. package/lib/models/fields/imageSelectorField.model.d.ts +49 -0
  39. package/lib/models/fields/labelField.model.d.ts +4 -0
  40. package/lib/models/fields/listValueField.model.d.ts +1 -19
  41. package/lib/models/form.model.d.ts +1 -0
  42. package/lib/models/logicOperator.model.d.ts +4 -0
  43. package/lib/models/statistic.model.d.ts +2 -2
  44. package/package.json +1 -1
  45. package/public-api.d.ts +1 -0
@@ -19,6 +19,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
19
19
  debugMode: boolean;
20
20
  configurations: DynamicModuleConfiguratorConfig;
21
21
  formID: string;
22
+ ProjectName: string;
22
23
  viewMode: string;
23
24
  loader: boolean;
24
25
  /**
@@ -46,6 +47,8 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
46
47
  dialogImportRef: MatDialogRef<TemplateRef<any>>;
47
48
  dialogImport: TemplateRef<any>;
48
49
  form: Form;
50
+ backupForm: Form;
51
+ saved: boolean;
49
52
  orgaID: string;
50
53
  UserID: number;
51
54
  innerFormManagment: boolean;
@@ -267,5 +270,5 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
267
270
  */
268
271
  private reloadActionsOnRecordTable;
269
272
  static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleConfiguratorComponent, never>;
270
- static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "debugMode": "debugMode"; "configurations": "configurations"; "formID": "formID"; "viewMode": "viewMode"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; }, never, never, false, never>;
273
+ static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "debugMode": "debugMode"; "configurations": "configurations"; "formID": "formID"; "ProjectName": "ProjectName"; "viewMode": "viewMode"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; }, never, never, false, never>;
271
274
  }
@@ -5,12 +5,13 @@ import { AttachmentType, EqpAttachmentsComponent, IAttachmentDTO } from "@eqproj
5
5
  import { PickerModeEnum } from "@eqproject/eqp-datetimepicker";
6
6
  import { EnumHelper } from "@eqproject/eqp-select";
7
7
  import { ConfigColumn } from "@eqproject/eqp-table";
8
- import { BaseField, ColSpanSizesEnum, FieldTypeEnum } from "../../../models/baseField.model";
8
+ import { BaseField, ColSpanSizesEnum, FieldInvisibilityEnum, FieldTypeEnum } from "../../../models/baseField.model";
9
9
  import { BoolPresentantioEnum } from "../../../models/fields/booleanField.model";
10
10
  import { DateTimeTypeEnum } from "../../../models/fields/dateField.model";
11
11
  import { ListPresentationEnum } from "../../../models/fields/listValueField.model";
12
12
  import { TextMaskEnum } from "../../../models/fields/textField.model";
13
13
  import { FormFieldGroup } from "../../../models/form.model";
14
+ import { DynAttachment } from "../../../models/fields/imageSelectorField.model";
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class AddFormFieldComponent implements OnInit {
16
17
  private formBuilder;
@@ -23,6 +24,7 @@ export declare class AddFormFieldComponent implements OnInit {
23
24
  /** Elenco dei Field creati nella form, usati per popolare l'autocomplete della proprietà Formula. */
24
25
  availableFields: Array<BaseField>;
25
26
  fieldTypesToExclude: Array<FieldTypeEnum>;
27
+ resizedImagesHeightPx: number;
26
28
  fieldFormGroup: UntypedFormGroup;
27
29
  keyValueObject: {
28
30
  key: string;
@@ -45,15 +47,18 @@ export declare class AddFormFieldComponent implements OnInit {
45
47
  key: string;
46
48
  value: string;
47
49
  }[];
50
+ fieldInvisibilityEnum: typeof FieldInvisibilityEnum;
48
51
  saveFieldEvent: EventEmitter<BaseField | any>;
49
52
  fieldTypeFormTemplate: TemplateRef<any>;
50
53
  textFieldFormTemplate: TemplateRef<any>;
54
+ labelFieldFormTemplate: TemplateRef<any>;
51
55
  textareaFieldFormTemplate: TemplateRef<any>;
52
56
  booleadFieldFormTemplate: TemplateRef<any>;
53
57
  dateFieldFormTemplate: TemplateRef<any>;
54
58
  numericFieldFormTemplate: TemplateRef<any>;
55
59
  attachmentFieldFormTemplate: TemplateRef<any>;
56
60
  imageFieldFormTemplate: TemplateRef<any>;
61
+ imageFieldSelectorFormTemplate: TemplateRef<any>;
57
62
  listValueFieldFormTemplate: TemplateRef<any>;
58
63
  lookupFieldFormTemplate: TemplateRef<any>;
59
64
  metadataColumns: Array<ConfigColumn>;
@@ -70,6 +75,13 @@ export declare class AddFormFieldComponent implements OnInit {
70
75
  AttachmentType: typeof AttachmentType;
71
76
  pickerModeEnum: typeof PickerModeEnum;
72
77
  subscription: any;
78
+ configColumnListImages: Array<ConfigColumn>;
79
+ configColumnImage: Array<ConfigColumn>;
80
+ GenericListImagesImageTemplate: TemplateRef<any>;
81
+ GenericListImagesKeyTemplate: TemplateRef<any>;
82
+ GenericListImagesValueTemplate: TemplateRef<any>;
83
+ imageSelectorAttachments: EqpAttachmentsComponent;
84
+ imageAttachment: EqpAttachmentsComponent;
73
85
  constructor(formBuilder: UntypedFormBuilder, enumHelper: EnumHelper, dialog: MatDialog, cdr: ChangeDetectorRef);
74
86
  ngOnInit(): void;
75
87
  /**
@@ -134,13 +146,6 @@ export declare class AddFormFieldComponent implements OnInit {
134
146
  * in precedenza, altrimenti svuota la lista delle immagini caricate.
135
147
  */
136
148
  onPresentationModeChange(): void;
137
- /**
138
- * Metodo invocato quando viene caricato il componente eqp-attachments per caricare le immagini da usare
139
- * nella visualizzazione ad immagini dei campi di tipo "Elenco generico". Aggiunge due colonne a quelle
140
- * configurate nel componente in cui l'utente può indicare chiave e valore della scelta.
141
- * @param component Istanza del componente eqp-attachments in cui effettuare la modifica.
142
- */
143
- configureButtonImagesColumns(component: EqpAttachmentsComponent): void;
144
149
  /**
145
150
  * Metodo invocato al salvataggio degli allegati quando viene configurato un campo di tipo "Elenco generico"
146
151
  * con il tipo di visualizzazione ad immagini. Intercetta l'elenco aggiornato delle immagini caricate e lo
@@ -148,6 +153,7 @@ export declare class AddFormFieldComponent implements OnInit {
148
153
  * @param attachments Array aggiornato degli allegati caricati.
149
154
  */
150
155
  catchButtonImagesChange(attachments: Array<IAttachmentDTO>): void;
156
+ catchButtonImageChange(attachments: Array<IAttachmentDTO>): void;
151
157
  /**
152
158
  * Metodo chiamato al keyup degli input testuali che prevedono l'aggiunta del valore inserito in un array.
153
159
  * Se l'utente preme il tasto invio, in base al tipo di campo che sta inserendo/modificando, questo metodo
@@ -214,6 +220,10 @@ export declare class AddFormFieldComponent implements OnInit {
214
220
  * dei campi di tipo Allegato o Immagine.
215
221
  */
216
222
  countValuePairs(valuePairs: any): number;
223
+ configureColumns(): void;
224
+ setResizedImagesHeightPx(): void;
225
+ deleteListImage(el: DynAttachment, i: number, col: number): void;
226
+ deleteImage(el: DynAttachment): void;
217
227
  static ɵfac: i0.ɵɵFactoryDeclaration<AddFormFieldComponent, never>;
218
228
  static ɵcmp: i0.ɵɵComponentDeclaration<AddFormFieldComponent, "eqp-dynamic-module-add-form-field", never, { "field": "field"; "indexField": "indexField"; "formFieldsGroups": "formFieldsGroups"; "availableFields": "availableFields"; "fieldTypesToExclude": "fieldTypesToExclude"; }, { "saveFieldEvent": "saveFieldEvent"; }, never, never, false, never>;
219
229
  }
@@ -0,0 +1,31 @@
1
+ import { EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { Record } from '../../../../models/record.model';
4
+ import { DynAttachment, ImageSelectorField } from '../../../../models/fields/imageSelectorField.model';
5
+ import { UtilityHelperService } from '../../../../services/utilityHelper.services';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ImageFieldSelectorTemplateComponent {
8
+ private dialog;
9
+ utilityService: UtilityHelperService;
10
+ record: Record;
11
+ field: ImageSelectorField;
12
+ recordChange: EventEmitter<Record>;
13
+ FieldstyleObj: any;
14
+ LabelstyleObj: any;
15
+ constructor(dialog: MatDialog, utilityService: UtilityHelperService);
16
+ ngOnInit(): void;
17
+ initStyles(): void;
18
+ ToLowerCase(el: string): string;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ /**
21
+ * Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
22
+ */
23
+ updateField(): void;
24
+ initializeAttachments(): void;
25
+ /**
26
+ * Metodo per emettere l'evento che il valore del record è cambiato.
27
+ */
28
+ onRecordValueChange(event: DynAttachment): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageFieldSelectorTemplateComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageFieldSelectorTemplateComponent, "image-field-selector-template", never, { "record": "record"; "field": "field"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
31
+ }
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { Record } from '../../../../models/record.model';
3
+ import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
4
+ import { VoiceRecognitionService } from '../../../../services/voice-recognition.service';
5
+ import { Subscription } from 'rxjs';
6
+ import { LabelField } from 'projects/eqp-dynamic-module/src/lib/models/fields/labelField.model';
7
+ import * as i0 from "@angular/core";
8
+ export declare class LabelFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
9
+ voiceservice: VoiceRecognitionService;
10
+ isStillRecoginze: boolean;
11
+ source: import("rxjs").Observable<number>;
12
+ newtext: string;
13
+ subscription: Subscription;
14
+ field: LabelField;
15
+ record: Record;
16
+ STT: boolean;
17
+ FieldstyleObj: any;
18
+ LabelstyleObj: any;
19
+ recordChange: EventEmitter<Record>;
20
+ constructor(voiceservice: VoiceRecognitionService);
21
+ ngOnInit(): void;
22
+ initStyles(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ /**
25
+ * Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
26
+ */
27
+ updateField(): void;
28
+ /**
29
+ * Metodo per emettere l'evento che il valore del record è cambiato.
30
+ */
31
+ onRecordValueChange(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelFieldTemplateComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelFieldTemplateComponent, "label-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
34
+ }
@@ -0,0 +1,47 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Record } from '../../../../../models/record.model';
3
+ import { ImageSelectorField } from '../../../../../models/fields/imageSelectorField.model';
4
+ import { LogicOperatorImageSelector } from '../../../../../models/logicOperator.model';
5
+ import { Statistic } from '../../../../../models/statistic.model';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ImageSelectorFilterTemplateComponent {
8
+ field: ImageSelectorField;
9
+ record: Record;
10
+ filterChange: EventEmitter<Statistic>;
11
+ validatorsArray: any[];
12
+ logicOperatorImageSelectorValue: typeof LogicOperatorImageSelector;
13
+ selectedLogicOperator: LogicOperatorImageSelector;
14
+ activeCondition: boolean;
15
+ FieldstyleObj: any;
16
+ LabelstyleObj: any;
17
+ arrayData: {
18
+ Key: string;
19
+ Value: any;
20
+ Selected?: boolean;
21
+ ImgUrl?: string;
22
+ }[];
23
+ constructor();
24
+ ngOnInit(): void;
25
+ initStyles(): void;
26
+ /**
27
+ * Metodo per emettere l'evento che il valore del record è cambiato.
28
+ */
29
+ onFilterChange(): void;
30
+ /**
31
+ * Metodo che genera l'oggetto da inviare all'esterno
32
+ */
33
+ generateCondition(mode: any): Statistic;
34
+ /**
35
+ * Metodo di aggiunta dei validator dell'input
36
+ */
37
+ private configureControllers;
38
+ /**
39
+ * Metodo per creare un array di oggetti del tipo { Key: string, Value: any } da usare come sorgente dati per la eqp-select.
40
+ */
41
+ private setArrayData;
42
+ prepareValuePairs(): void;
43
+ private createArrayDataElement;
44
+ private createNumberArrayDataElement;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageSelectorFilterTemplateComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageSelectorFilterTemplateComponent, "image-selector-filter-template", never, { "field": "field"; "record": "record"; }, { "filterChange": "filterChange"; }, never, never, false, never>;
47
+ }
@@ -34,16 +34,19 @@ import * as i31 from "./components/private/form-statistics/filter-templates/imag
34
34
  import * as i32 from "./components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component";
35
35
  import * as i33 from "./components/private/graphs/graphs.component";
36
36
  import * as i34 from "./components/private/graphs/graph/graph.component";
37
- import * as i35 from "./modules/material.module";
38
- import * as i36 from "@angular/forms";
39
- import * as i37 from "@angular/common";
40
- import * as i38 from "@eqproject/eqp-table";
41
- import * as i39 from "@eqproject/eqp-attachments";
42
- import * as i40 from "@eqproject/eqp-select";
43
- import * as i41 from "@eqproject/eqp-datetimepicker";
44
- import * as i42 from "@eqproject/eqp-filters";
45
- import * as i43 from "@eqproject/eqp-numeric";
46
- import * as i44 from "@canvasjs/angular-stockcharts";
37
+ import * as i35 from "./components/private/field-templates/image-field-selector-template/image-field-selector-template.component";
38
+ import * as i36 from "./components/private/field-templates/label-field-template/label-field-template.component";
39
+ import * as i37 from "./components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component";
40
+ import * as i38 from "./modules/material.module";
41
+ import * as i39 from "@angular/forms";
42
+ import * as i40 from "@angular/common";
43
+ import * as i41 from "@eqproject/eqp-table";
44
+ import * as i42 from "@eqproject/eqp-attachments";
45
+ import * as i43 from "@eqproject/eqp-select";
46
+ import * as i44 from "@eqproject/eqp-datetimepicker";
47
+ import * as i45 from "@eqproject/eqp-filters";
48
+ import * as i46 from "@eqproject/eqp-numeric";
49
+ import * as i47 from "@canvasjs/angular-stockcharts";
47
50
  export declare const customNumericMaskConfig: {
48
51
  align: string;
49
52
  allowNegative: boolean;
@@ -60,6 +63,6 @@ export declare const customNumericMaskConfig: {
60
63
  };
61
64
  export declare class EqpDynamicModuleModule {
62
65
  static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
63
- static ɵmod: i0.ɵɵNgModuleDeclaration<EqpDynamicModuleModule, [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i3.AddFormFieldComponent, typeof i4.TextFieldTemplateComponent, typeof i5.BooleanFieldTemplateComponent, typeof i6.DateFieldTemplateComponent, typeof i7.TextareaFieldTemplateComponent, typeof i8.NumericFieldTemplateComponent, typeof i9.ListValueFieldTemplateComponent, typeof i10.AttachmentFieldTemplateComponent, typeof i11.ImageFieldTemplateComponent, typeof i12.ListFormRecordComponent, typeof i13.ListViewFormRecordComponent, typeof i14.AddFormRecordComponent, typeof i15.ViewFormRecordComponent, typeof i16.DynamicModuleFieldComponent, typeof i17.DynamicModuleFieldFixComponent, typeof i18.SpinnerComponent, typeof i19.AddFormulaComponent, typeof i19.DialogDataExampleDialog, typeof i20.RepairFormFieldsComponent, typeof i21.SingleRecordComponent, typeof i22.FilterFormStatisticComponent, typeof i23.DynamicModuleFilterFixComponent, typeof i24.TextFilterTemplateComponent, typeof i25.NumericFilterTemplateComponent, typeof i26.BooleanFilterTemplateComponent, typeof i27.DateFilterTemplateComponent, typeof i28.ListValueFilterTemplateComponent, typeof i29.TextareaFilterTemplateComponent, typeof i30.AttachmentFilterTemplateComponent, typeof i31.ImageFilterTemplateComponent, typeof i32.ListFormRecordFilterTemplateComponent, typeof i33.GraphsComponent, typeof i34.GraphComponent], [typeof i35.MaterialModule, typeof i36.FormsModule, typeof i37.CommonModule, typeof i36.ReactiveFormsModule, typeof i38.EqpTableModule, typeof i39.EqpAttachmentsModule, typeof i40.EqpSelectModule, typeof i41.EqpDatetimepickerModule, typeof i42.EqpFiltersModule, typeof i43.EqpNumericModule, typeof i44.CanvasJSAngularStockChartsModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i44.CanvasJSChart, typeof i44.CanvasJSStockChart]>;
66
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EqpDynamicModuleModule, [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i3.AddFormFieldComponent, typeof i4.TextFieldTemplateComponent, typeof i5.BooleanFieldTemplateComponent, typeof i6.DateFieldTemplateComponent, typeof i7.TextareaFieldTemplateComponent, typeof i8.NumericFieldTemplateComponent, typeof i9.ListValueFieldTemplateComponent, typeof i10.AttachmentFieldTemplateComponent, typeof i11.ImageFieldTemplateComponent, typeof i12.ListFormRecordComponent, typeof i13.ListViewFormRecordComponent, typeof i14.AddFormRecordComponent, typeof i15.ViewFormRecordComponent, typeof i16.DynamicModuleFieldComponent, typeof i17.DynamicModuleFieldFixComponent, typeof i18.SpinnerComponent, typeof i19.AddFormulaComponent, typeof i19.DialogDataExampleDialog, typeof i20.RepairFormFieldsComponent, typeof i21.SingleRecordComponent, typeof i22.FilterFormStatisticComponent, typeof i23.DynamicModuleFilterFixComponent, typeof i24.TextFilterTemplateComponent, typeof i25.NumericFilterTemplateComponent, typeof i26.BooleanFilterTemplateComponent, typeof i27.DateFilterTemplateComponent, typeof i28.ListValueFilterTemplateComponent, typeof i29.TextareaFilterTemplateComponent, typeof i30.AttachmentFilterTemplateComponent, typeof i31.ImageFilterTemplateComponent, typeof i32.ListFormRecordFilterTemplateComponent, typeof i33.GraphsComponent, typeof i34.GraphComponent, typeof i35.ImageFieldSelectorTemplateComponent, typeof i36.LabelFieldTemplateComponent, typeof i37.ImageSelectorFilterTemplateComponent], [typeof i38.MaterialModule, typeof i39.FormsModule, typeof i40.CommonModule, typeof i39.ReactiveFormsModule, typeof i41.EqpTableModule, typeof i42.EqpAttachmentsModule, typeof i43.EqpSelectModule, typeof i44.EqpDatetimepickerModule, typeof i45.EqpFiltersModule, typeof i46.EqpNumericModule, typeof i47.CanvasJSAngularStockChartsModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i47.CanvasJSChart, typeof i47.CanvasJSStockChart]>;
64
67
  static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
65
68
  }
@@ -31,12 +31,14 @@ export declare class BaseField extends BaseObj {
31
31
  ColSpanSizes: Array<ColSpanSizesEnum>;
32
32
  VisibleIf: string;
33
33
  InListView: boolean;
34
+ Invisibility: FieldInvisibilityEnum;
34
35
  FieldType: FieldTypeEnum;
35
36
  FieldValue: any;
36
37
  FormFormGroup: UntypedFormGroup;
37
38
  }
38
39
  export declare class AnswerStyle {
39
40
  InListView: boolean;
41
+ Invisibility: FieldInvisibilityEnum;
40
42
  VisibleIf: string;
41
43
  FieldstyleCSS: string;
42
44
  LabelstyleCSS: string;
@@ -52,7 +54,9 @@ export declare enum FieldTypeEnum {
52
54
  'Immagine' = 7,
53
55
  'Elenco generico' = 8,
54
56
  'Lookup' = 9,
55
- 'Form di dettaglio' = 10
57
+ 'Form di dettaglio' = 10,
58
+ 'Elenco immagini' = 11,
59
+ "Etichetta" = 12
56
60
  }
57
61
  export declare enum ColSpanSizesEnum {
58
62
  'col-sm-3' = 1,
@@ -95,3 +99,7 @@ export declare enum ColSpanSizesEnum {
95
99
  'col-lg-10' = 38,
96
100
  'col-lg-11' = 39
97
101
  }
102
+ export declare enum FieldInvisibilityEnum {
103
+ 'NASCOSTO' = 1,
104
+ 'NASCOSTO CON AREA VISIBILE' = 2
105
+ }
@@ -1,16 +1,7 @@
1
- import { IAttachmentDTO } from "@eqproject/eqp-attachments";
2
1
  import { BaseField } from "../baseField.model";
3
- import { AttachmentField } from "./attachmentField.model";
2
+ import { DynAttachment } from "./imageSelectorField.model";
4
3
  export declare class ImageField extends BaseField {
5
- /**Se true il medico può disegnare sull'immagine */
6
- EnableDrawing: boolean;
7
- /**Se true l'immagine non è fissa, ma viene caricata come un allegato; */
8
- ImageIsContextualAttachment: boolean;
9
- /**Contiene l'allegato caricato nel campo (se ImageIsContextualAttachment == true) */
10
- ContextualAttachment: IAttachmentDTO;
11
- /**Proprietà per recuperare l'allegato caricato come array per eqp-attachments (se ImageIsContextualAttachment == true) */
12
- get _contextualAttachments(): IAttachmentDTO[];
13
- /**Nome dell'immagine caricata (se ImageIsContextualAttachment == true) */
14
- ImgName: string;
15
- AttachDefinition: AttachmentField;
4
+ DynAttachment: DynAttachment;
5
+ DynAttachmentID: number;
6
+ ResizedImagesHeightPx: number;
16
7
  }
@@ -0,0 +1,49 @@
1
+ import { AttachmentType, IAttachmentDTO } from "@eqproject/eqp-attachments";
2
+ import { BaseField } from "../baseField.model";
3
+ export declare class ImageSelectorField extends BaseField {
4
+ ValuePairs: {
5
+ [key: string]: any;
6
+ };
7
+ DynAttachments: Array<DynAttachment>;
8
+ DynAttachmentsIDs: Array<number>;
9
+ ResizedImagesHeightPx: number;
10
+ IsMultiChoiche: boolean;
11
+ AttachmentList: Array<DynAttachment>;
12
+ }
13
+ export declare class DynAttachment implements IAttachmentDTO {
14
+ ID: number | string;
15
+ FileName?: string;
16
+ FileContentType?: string;
17
+ FileExtension?: string;
18
+ FilePath?: string;
19
+ AttachmentType?: AttachmentType;
20
+ FileDataBase64?: string;
21
+ IsImage?: boolean;
22
+ FileThumbnailBase64?: string;
23
+ TrustedUrl?: any;
24
+ Path: string;
25
+ ThumbmailPath: string;
26
+ Title: string;
27
+ CreationDate: Date;
28
+ ProjectName: string;
29
+ OrgaID: string;
30
+ FormID: string;
31
+ FieldID: string;
32
+ AnswerID: string;
33
+ ImageWidthPx: number;
34
+ ImageHeightPx: number;
35
+ ResizedImageHeightPx: number;
36
+ ButtonValue: string;
37
+ ButtonKey: string;
38
+ objectToSelect?: DynAttachmentSelectObject;
39
+ originalIndex?: number;
40
+ }
41
+ export declare class DynAttachmentSelectObject {
42
+ ID: number | string;
43
+ ButtonValue: string;
44
+ ButtonKey: string;
45
+ }
46
+ export declare class attachmentTypeEnum {
47
+ SINGLE: number;
48
+ LIST: number;
49
+ }
@@ -0,0 +1,4 @@
1
+ import { BaseField } from "../baseField.model";
2
+ export declare class LabelField extends BaseField {
3
+ Etichetta: string;
4
+ }
@@ -1,4 +1,3 @@
1
- import { AttachmentType, IAttachmentDTO } from "@eqproject/eqp-attachments";
2
1
  import { BaseField } from "../baseField.model";
3
2
  /**Lista di valori */
4
3
  export declare class ListValueField extends BaseField {
@@ -17,26 +16,9 @@ export declare class ListValueField extends BaseField {
17
16
  IsMultiChoiche: boolean;
18
17
  /**Modalità di presentazione */
19
18
  PresentationMode: ListPresentationEnum;
20
- /**Elenco delle immagini per la visualizzazione a immagini (ListPresentationEnum.Immagini) */
21
- ButtonImageList: Array<ButtonImage>;
22
- }
23
- export declare class ButtonImage implements IAttachmentDTO {
24
- ButtonKey: string;
25
- ButtonValue: string;
26
- ID: string | number;
27
- FileName?: string;
28
- FileContentType?: string;
29
- FileExtension?: string;
30
- FilePath?: string;
31
- AttachmentType?: AttachmentType;
32
- FileDataBase64?: string;
33
- IsImage?: boolean;
34
- FileThumbnailBase64?: string;
35
- TrustedUrl?: any;
36
19
  }
37
20
  export declare enum ListPresentationEnum {
38
21
  "Combo box" = 1,
39
22
  "Radio button" = 2,
40
- "Pulsante con testo" = 3,
41
- "Immagini" = 4
23
+ "Pulsante con testo" = 3
42
24
  }
@@ -11,6 +11,7 @@ export declare class Form extends BaseObj implements IRootObject {
11
11
  Description: string;
12
12
  Version: number;
13
13
  OrgaID: string;
14
+ ProjectName: string;
14
15
  FormScalarType: FormScalarTypeEnum;
15
16
  FormFieldsGroups: Array<FormFieldGroup>;
16
17
  /**
@@ -28,3 +28,7 @@ export declare enum LogicOperatorListValue {
28
28
  "=" = 1,
29
29
  "!=" = 2
30
30
  }
31
+ export declare enum LogicOperatorImageSelector {
32
+ "=" = 1,
33
+ "!=" = 2
34
+ }
@@ -1,10 +1,10 @@
1
1
  import { FieldTypeEnum } from "./baseField.model";
2
- import { LogicOperatorBoolean, LogicOperatorDate, LogicOperatorListValue, LogicOperatorNumeric, LogicOperatorText } from "./logicOperator.model";
2
+ import { LogicOperatorBoolean, LogicOperatorDate, LogicOperatorImageSelector, LogicOperatorListValue, LogicOperatorNumeric, LogicOperatorText } from "./logicOperator.model";
3
3
  export declare class Statistic {
4
4
  fieldtype: FieldTypeEnum;
5
5
  key: string;
6
6
  value: string;
7
- logicoperator: LogicOperatorBoolean | LogicOperatorListValue | LogicOperatorNumeric | LogicOperatorText | LogicOperatorDate;
7
+ logicoperator: LogicOperatorBoolean | LogicOperatorListValue | LogicOperatorNumeric | LogicOperatorText | LogicOperatorDate | LogicOperatorImageSelector;
8
8
  }
9
9
  export declare class FilterStatistic {
10
10
  Statistics: Array<Statistic>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.3.42",
7
+ "version": "2.4.1",
8
8
  "peerDependencies": {
9
9
  "@angular-material-components/datetime-picker": "^15.0.0",
10
10
  "@angular-material-components/moment-adapter": "^15.0.0",
package/public-api.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './lib/models/fields/booleanField.model';
38
38
  export * from './lib/models/fields/dateField.model';
39
39
  export * from './lib/models/fields/imageField.model';
40
40
  export * from './lib/models/fields/listValueField.model';
41
+ export * from './lib/models/fields/imageSelectorField.model';
41
42
  export * from './lib/models/fields/lookupField.model';
42
43
  export * from './lib/models/fields/numericField.model';
43
44
  export * from './lib/models/fields/textareaField.model';