@eqproject/eqp-dynamic-module 2.4.4 → 2.4.6
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.
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +37 -77
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +9 -3
- package/esm2020/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.mjs +2 -2
- package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +7 -2
- package/esm2020/lib/components/private/field-templates/image-with-markers-field-template/image-with-markers-field-template.component.mjs +248 -0
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +43 -5
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +2 -1
- package/esm2020/lib/components/private/tmw-image-marker/tmw-image-marker.component.mjs +301 -0
- package/esm2020/lib/eqp-dynamic-module.module.mjs +9 -3
- package/esm2020/lib/models/baseField.model.mjs +2 -1
- package/esm2020/lib/models/dynAttachment.mjs +21 -0
- package/esm2020/lib/models/endPointConfiguration.model.mjs +13 -1
- package/esm2020/lib/models/fields/imageField.model.mjs +1 -1
- package/esm2020/lib/models/fields/imageSelectorField.model.mjs +1 -15
- package/esm2020/lib/models/fields/imageWithMarkersField.model.mjs +8 -0
- package/esm2020/lib/services/utilityHelper.services.mjs +1 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +664 -96
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +662 -96
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +4 -12
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +2 -1
- package/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.d.ts +2 -1
- package/lib/components/private/field-templates/image-field-template/image-field-template.component.d.ts +1 -1
- package/lib/components/private/field-templates/image-with-markers-field-template/image-with-markers-field-template.component.d.ts +77 -0
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +3 -1
- package/lib/components/private/tmw-image-marker/tmw-image-marker.component.d.ts +57 -0
- package/lib/eqp-dynamic-module.module.d.ts +14 -12
- package/lib/models/baseField.model.d.ts +2 -1
- package/lib/models/dynAttachment.d.ts +48 -0
- package/lib/models/endPointConfiguration.model.d.ts +1 -0
- package/lib/models/fields/imageField.model.d.ts +1 -1
- package/lib/models/fields/imageSelectorField.model.d.ts +1 -41
- package/lib/models/fields/imageWithMarkersField.model.d.ts +7 -0
- package/lib/services/utilityHelper.services.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ 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/
|
|
14
|
+
import { AttachmentFieldTypeEnum, DynAttachment } from "../../../models/dynAttachment";
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
export declare class AddFormFieldComponent implements OnInit {
|
|
17
17
|
private formBuilder;
|
|
@@ -58,6 +58,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
58
58
|
numericFieldFormTemplate: TemplateRef<any>;
|
|
59
59
|
attachmentFieldFormTemplate: TemplateRef<any>;
|
|
60
60
|
imageFieldFormTemplate: TemplateRef<any>;
|
|
61
|
+
imageWithMarkersFieldFormTemplate: TemplateRef<any>;
|
|
61
62
|
imageFieldSelectorFormTemplate: TemplateRef<any>;
|
|
62
63
|
listValueFieldFormTemplate: TemplateRef<any>;
|
|
63
64
|
lookupFieldFormTemplate: TemplateRef<any>;
|
|
@@ -74,6 +75,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
74
75
|
TextMaskEnum: typeof TextMaskEnum;
|
|
75
76
|
AttachmentType: typeof AttachmentType;
|
|
76
77
|
pickerModeEnum: typeof PickerModeEnum;
|
|
78
|
+
attachmentFieldTypeEnum: typeof AttachmentFieldTypeEnum;
|
|
77
79
|
subscription: any;
|
|
78
80
|
configColumnListImages: Array<ConfigColumn>;
|
|
79
81
|
configColumnImage: Array<ConfigColumn>;
|
|
@@ -154,6 +156,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
154
156
|
*/
|
|
155
157
|
catchButtonImagesChange(attachments: Array<IAttachmentDTO>): void;
|
|
156
158
|
catchButtonImageChange(attachments: Array<IAttachmentDTO>): void;
|
|
159
|
+
catchButtonImageWithMarkersChange(attachments: Array<IAttachmentDTO>): void;
|
|
157
160
|
/**
|
|
158
161
|
* Metodo chiamato al keyup degli input testuali che prevedono l'aggiunta del valore inserito in un array.
|
|
159
162
|
* Se l'utente preme il tasto invio, in base al tipo di campo che sta inserendo/modificando, questo metodo
|
|
@@ -208,17 +211,6 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
208
211
|
* Lascia valorizzate solo le proprietà dell'oggetto BaseField comune a tutti i tipi di campo.
|
|
209
212
|
*/
|
|
210
213
|
private restoreBaseFieldProperties;
|
|
211
|
-
/**
|
|
212
|
-
* Metodo per eliminare un metadata aggiunto per un campo di tipo Allegato o Immagine.
|
|
213
|
-
* @param metadata Metadata da eliminare.
|
|
214
|
-
*/
|
|
215
|
-
/**
|
|
216
|
-
* Imposta l'ordinamento dei metadata all'interno dei campi di tipo Allegato e Immagine.
|
|
217
|
-
*/
|
|
218
|
-
/**
|
|
219
|
-
* Metodo per ricaricare i dati della tabella dei metadata visualizzata nella creazione/modifica
|
|
220
|
-
* dei campi di tipo Allegato o Immagine.
|
|
221
|
-
*/
|
|
222
214
|
countValuePairs(valuePairs: any): number;
|
|
223
215
|
configureColumns(): void;
|
|
224
216
|
setResizedImagesHeightPx(): void;
|
|
@@ -7,7 +7,7 @@ import { Form } from '../../../models/form.model';
|
|
|
7
7
|
import { Record } from '../../../models/record.model';
|
|
8
8
|
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
9
9
|
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
10
|
-
import { DynAttachment } from '../../../models/
|
|
10
|
+
import { DynAttachment } from '../../../models/dynAttachment';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFieldComponent {
|
|
13
13
|
private dialog;
|
|
@@ -60,6 +60,7 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
|
|
|
60
60
|
*/
|
|
61
61
|
onSaveInnerFormRecord(record: Record): void;
|
|
62
62
|
onImageDraw(event: DynAttachment): void;
|
|
63
|
+
onImageMark(event: DynAttachment): void;
|
|
63
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleFieldFixComponent, never>;
|
|
64
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModuleFieldFixComponent, "dynamic-module-field-fix", never, { "endPointConfiguration": "endPointConfiguration"; "field": "field"; "form": "form"; "record": "record"; "inConfig": "inConfig"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
|
|
65
66
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { Record } from '../../../../models/record.model';
|
|
4
|
-
import {
|
|
4
|
+
import { ImageSelectorField } from '../../../../models/fields/imageSelectorField.model';
|
|
5
5
|
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
6
|
+
import { DynAttachment } from '../../../../models/dynAttachment';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ImageFieldSelectorTemplateComponent {
|
|
8
9
|
private dialog;
|
|
@@ -5,8 +5,8 @@ import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.
|
|
|
5
5
|
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
6
6
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
7
7
|
import { I18nInterface } from '../../tmw-image-drawer/i18n';
|
|
8
|
-
import { DynAttachment } from '../../../../models/fields/imageSelectorField.model';
|
|
9
8
|
import { EndPointConfiguration } from '../../../../models/endPointConfiguration.model';
|
|
9
|
+
import { DynAttachment } from '../../../../models/dynAttachment';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
12
12
|
private dialog;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { EventEmitter, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Record } from '../../../../models/record.model';
|
|
3
|
+
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
4
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { EndPointConfiguration } from '../../../../models/endPointConfiguration.model';
|
|
6
|
+
import { DynAttachment } from '../../../../models/dynAttachment';
|
|
7
|
+
import { MarkedImage } from '../../tmw-image-marker/tmw-image-marker.component';
|
|
8
|
+
import { ImageWithMarkersField } from '../../../../models/fields/imageWithMarkersField.model';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ImageWithMarkersFieldTemplateComponent {
|
|
11
|
+
private dialog;
|
|
12
|
+
private utilityHelperService;
|
|
13
|
+
endPointConfiguration: EndPointConfiguration;
|
|
14
|
+
record: Record;
|
|
15
|
+
field: ImageWithMarkersField;
|
|
16
|
+
inConfig: boolean;
|
|
17
|
+
recordChange: EventEmitter<Record>;
|
|
18
|
+
imageMark: EventEmitter<DynAttachment>;
|
|
19
|
+
imageWidth: number;
|
|
20
|
+
MarkingLoaded: boolean;
|
|
21
|
+
FileBase64: string;
|
|
22
|
+
MarkFileBase64: string;
|
|
23
|
+
FileDataBase64: string;
|
|
24
|
+
AttachmentID: string | number;
|
|
25
|
+
imageMarkAttachment: DynAttachment;
|
|
26
|
+
width: any;
|
|
27
|
+
height: any;
|
|
28
|
+
dialogImageMarkingRef: MatDialogRef<TemplateRef<any>>;
|
|
29
|
+
dialogImageMarking: TemplateRef<any>;
|
|
30
|
+
constructor(dialog: MatDialog, utilityHelperService: UtilityHelperService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
/**
|
|
34
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
35
|
+
*/
|
|
36
|
+
updateField(): void;
|
|
37
|
+
resetPreLoadedImage(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Metodo invocato quando vengono aggiunti o eliminati gli allegati nel componente AttachmentFieldTemplate.
|
|
40
|
+
* Se l'ImageField è abilitato al disegno (EnableMarking == true), non permette allegati multipli (IsMulitAttach == false)
|
|
41
|
+
* e nel Record corrente è presente l'immagine caricata dall'utente allora recupera le dimensioni dell'immagine e
|
|
42
|
+
* apre il dialog con il componente image-Marking per permettere il disegno sull'immagine appena caricata.
|
|
43
|
+
*/
|
|
44
|
+
onAttachmentsChange(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Metodo invocato al salvataggio dell'immagine dal componente image-Marking.
|
|
47
|
+
* Trasforma il Blob ricevuto in un base64, aggiorna il FileContetType e il FileDataBase64
|
|
48
|
+
* dell'allegato caricato e chiude il dialog in cui disegnare.
|
|
49
|
+
* @param MarknPicture Blob dell'immagine disegnata.
|
|
50
|
+
*/
|
|
51
|
+
saveMark(markedImage: MarkedImage): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Metodo per chiudere il dialog in cui disegnare sull'immagine cariata e svuotare le dimensioni.
|
|
54
|
+
*/
|
|
55
|
+
closeDialog(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Metodo per recuperare le dimensioni dell'immagine caricata per mostrare correttamente
|
|
58
|
+
* il componente image-Marking. Se non viene eseguito questo passaggio l'area in cui disegnare
|
|
59
|
+
* è più grande dell'immagine stessa e al salvataggio i tratti disegnati vengono spostati.
|
|
60
|
+
*/
|
|
61
|
+
private getImageDimensions;
|
|
62
|
+
/**
|
|
63
|
+
* Metodo per convertire il base64 di un'immagine in un Blob.
|
|
64
|
+
* Necessario per il recupero delle dimensioni dell'immagine caricata a partire dal suo base64.
|
|
65
|
+
* Viene eseguito solo nel caso in cui l'ImageField non ammette allegati multipli.
|
|
66
|
+
* @returns Restituisce il Blob dell'immagine caricata.
|
|
67
|
+
*/
|
|
68
|
+
private getBlobFromBase64;
|
|
69
|
+
/**
|
|
70
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
71
|
+
*/
|
|
72
|
+
private onRecordValueChange;
|
|
73
|
+
openMark(): void;
|
|
74
|
+
load(ID: any, Types: any): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageWithMarkersFieldTemplateComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageWithMarkersFieldTemplateComponent, "image-with-markers-field-template", never, { "endPointConfiguration": "endPointConfiguration"; "record": "record"; "field": "field"; "inConfig": "inConfig"; }, { "recordChange": "recordChange"; "imageMark": "imageMark"; }, never, never, false, never>;
|
|
77
|
+
}
|
|
@@ -24,6 +24,7 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
24
24
|
showSaveButton: boolean;
|
|
25
25
|
showBackButton: boolean;
|
|
26
26
|
loader: boolean;
|
|
27
|
+
isSaving: boolean;
|
|
27
28
|
formForm: UntypedFormGroup;
|
|
28
29
|
fieldGroups: {
|
|
29
30
|
[key: string]: Array<BaseField>;
|
|
@@ -55,7 +56,8 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
55
56
|
onSaveRecord(event: Record): Promise<void>;
|
|
56
57
|
getFormByID(id?: string): void;
|
|
57
58
|
getRecordByID(): void;
|
|
58
|
-
getFormByIDandVersion(): void;
|
|
59
|
+
getFormByIDandVersion(getAttachments?: boolean): void;
|
|
60
|
+
getAllRecordAttachments(recordID: string): void;
|
|
59
61
|
fieldsConfig(): void;
|
|
60
62
|
/**
|
|
61
63
|
* Metodo per creare nell'oggetto Record le proprietà mancanti rispetto ai campi che compongono la form.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { fabric } from 'fabric';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TmwImageMarkerComponent {
|
|
5
|
+
src: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
inConfig: boolean;
|
|
9
|
+
outputMimeType: string;
|
|
10
|
+
outputQuality: number;
|
|
11
|
+
forceSizeCanvas: boolean;
|
|
12
|
+
closeDialog: EventEmitter<void>;
|
|
13
|
+
save: EventEmitter<MarkedImage>;
|
|
14
|
+
componentGuid: string;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
hasError: boolean;
|
|
17
|
+
private canvas;
|
|
18
|
+
private stack;
|
|
19
|
+
markers: Array<Marker>;
|
|
20
|
+
outmarkers: Array<OutMarker>;
|
|
21
|
+
markedImage: MarkedImage;
|
|
22
|
+
canUndo: boolean;
|
|
23
|
+
canRedo: boolean;
|
|
24
|
+
errorMessage: string;
|
|
25
|
+
private imageUsed?;
|
|
26
|
+
constructor();
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
createMarker(): void;
|
|
30
|
+
private setUndoRedo;
|
|
31
|
+
private importPhotoFromSrc;
|
|
32
|
+
saveImage(): void;
|
|
33
|
+
close(): void;
|
|
34
|
+
randomIntFromInterval(min: any, max: any): number;
|
|
35
|
+
log(el: any): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TmwImageMarkerComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TmwImageMarkerComponent, "tmw-image-marker", never, { "src": "src"; "width": "width"; "height": "height"; "inConfig": "inConfig"; "outputMimeType": "outputMimeType"; "outputQuality": "outputQuality"; "forceSizeCanvas": "forceSizeCanvas"; }, { "closeDialog": "closeDialog"; "save": "save"; }, never, never, false, never>;
|
|
38
|
+
}
|
|
39
|
+
export declare class Marker {
|
|
40
|
+
circle: fabric.Circle;
|
|
41
|
+
text: fabric.Text;
|
|
42
|
+
group: fabric.Group;
|
|
43
|
+
top: number;
|
|
44
|
+
left: number;
|
|
45
|
+
caption: string;
|
|
46
|
+
description: string;
|
|
47
|
+
}
|
|
48
|
+
export declare class OutMarker {
|
|
49
|
+
top: number;
|
|
50
|
+
left: number;
|
|
51
|
+
caption: string;
|
|
52
|
+
description: string;
|
|
53
|
+
}
|
|
54
|
+
export declare class MarkedImage {
|
|
55
|
+
outmarkers: Array<OutMarker>;
|
|
56
|
+
image: Blob;
|
|
57
|
+
}
|
|
@@ -38,17 +38,19 @@ import * as i35 from "./components/private/field-templates/image-field-selector-
|
|
|
38
38
|
import * as i36 from "./components/private/field-templates/label-field-template/label-field-template.component";
|
|
39
39
|
import * as i37 from "./components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component";
|
|
40
40
|
import * as i38 from "./components/private/tmw-image-drawer/tmw-image-drawer.component";
|
|
41
|
-
import * as i39 from "./
|
|
42
|
-
import * as i40 from "
|
|
43
|
-
import * as i41 from "
|
|
44
|
-
import * as i42 from "@
|
|
45
|
-
import * as i43 from "@
|
|
46
|
-
import * as i44 from "@eqproject/eqp-
|
|
47
|
-
import * as i45 from "@eqproject/eqp-
|
|
48
|
-
import * as i46 from "@eqproject/eqp-
|
|
49
|
-
import * as i47 from "@eqproject/eqp-
|
|
50
|
-
import * as i48 from "@eqproject/eqp-
|
|
51
|
-
import * as i49 from "@
|
|
41
|
+
import * as i39 from "./components/private/field-templates/image-with-markers-field-template/image-with-markers-field-template.component";
|
|
42
|
+
import * as i40 from "./components/private/tmw-image-marker/tmw-image-marker.component";
|
|
43
|
+
import * as i41 from "./modules/material.module";
|
|
44
|
+
import * as i42 from "@angular/forms";
|
|
45
|
+
import * as i43 from "@angular/common";
|
|
46
|
+
import * as i44 from "@eqproject/eqp-table";
|
|
47
|
+
import * as i45 from "@eqproject/eqp-attachments";
|
|
48
|
+
import * as i46 from "@eqproject/eqp-select";
|
|
49
|
+
import * as i47 from "@eqproject/eqp-datetimepicker";
|
|
50
|
+
import * as i48 from "@eqproject/eqp-filters";
|
|
51
|
+
import * as i49 from "@eqproject/eqp-img-drawing";
|
|
52
|
+
import * as i50 from "@eqproject/eqp-numeric";
|
|
53
|
+
import * as i51 from "@canvasjs/angular-stockcharts";
|
|
52
54
|
export declare const customNumericMaskConfig: {
|
|
53
55
|
align: string;
|
|
54
56
|
allowNegative: boolean;
|
|
@@ -65,6 +67,6 @@ export declare const customNumericMaskConfig: {
|
|
|
65
67
|
};
|
|
66
68
|
export declare class EqpDynamicModuleModule {
|
|
67
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
68
|
-
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.TmwImageDrawerComponent], [typeof
|
|
70
|
+
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.TmwImageDrawerComponent, typeof i39.ImageWithMarkersFieldTemplateComponent, typeof i40.TmwImageMarkerComponent], [typeof i41.MaterialModule, typeof i42.FormsModule, typeof i43.CommonModule, typeof i42.ReactiveFormsModule, typeof i44.EqpTableModule, typeof i45.EqpAttachmentsModule, typeof i46.EqpSelectModule, typeof i47.EqpDatetimepickerModule, typeof i48.EqpFiltersModule, typeof i49.EqpImgDrawingModule, typeof i50.EqpNumericModule, typeof i51.CanvasJSAngularStockChartsModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i51.CanvasJSChart, typeof i51.CanvasJSStockChart]>;
|
|
69
71
|
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
70
72
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AttachmentType, IAttachmentDTO } from "@eqproject/eqp-attachments";
|
|
2
|
+
export declare class DynAttachment implements IAttachmentDTO {
|
|
3
|
+
ID: number | string;
|
|
4
|
+
FileName?: string;
|
|
5
|
+
FileContentType?: string;
|
|
6
|
+
FileExtension?: string;
|
|
7
|
+
FilePath?: string;
|
|
8
|
+
AttachmentType?: AttachmentType;
|
|
9
|
+
AttachmentFieldType: AttachmentFieldTypeEnum;
|
|
10
|
+
ExtraJSON: string;
|
|
11
|
+
FileDataBase64?: string;
|
|
12
|
+
IsImage?: boolean;
|
|
13
|
+
FileThumbnailBase64?: string;
|
|
14
|
+
TrustedUrl?: any;
|
|
15
|
+
Path: string;
|
|
16
|
+
ThumbmailPath: string;
|
|
17
|
+
Title: string;
|
|
18
|
+
CreationDate: Date;
|
|
19
|
+
ProjectName: string;
|
|
20
|
+
OrgaID: string;
|
|
21
|
+
FormID: string;
|
|
22
|
+
FieldID: string;
|
|
23
|
+
AnswerID: string;
|
|
24
|
+
ImageWidthPx: number;
|
|
25
|
+
ImageHeightPx: number;
|
|
26
|
+
ResizedImageHeightPx: number;
|
|
27
|
+
ButtonValue: string;
|
|
28
|
+
ButtonKey: string;
|
|
29
|
+
objectToSelect?: DynAttachmentSelectObject;
|
|
30
|
+
originalIndex?: number;
|
|
31
|
+
FileBases64?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare class DynAttachmentSelectObject {
|
|
36
|
+
ID: number | string;
|
|
37
|
+
ButtonValue: string;
|
|
38
|
+
ButtonKey: string;
|
|
39
|
+
}
|
|
40
|
+
export declare class attachmentTypeEnum {
|
|
41
|
+
SINGLE: number;
|
|
42
|
+
LIST: number;
|
|
43
|
+
}
|
|
44
|
+
export declare enum AttachmentFieldTypeEnum {
|
|
45
|
+
IMMAGINE = 7,
|
|
46
|
+
ELENCO_IMMAGINI = 11,
|
|
47
|
+
IMMAGINE_CON_MARKERS = 13
|
|
48
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseField } from "../baseField.model";
|
|
2
|
-
import { DynAttachment } from "
|
|
2
|
+
import { DynAttachment } from "../dynAttachment";
|
|
3
3
|
export declare class ImageField extends BaseField {
|
|
4
4
|
DynAttachment: DynAttachment;
|
|
5
5
|
DynAttachmentID: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AttachmentType, IAttachmentDTO } from "@eqproject/eqp-attachments";
|
|
2
1
|
import { BaseField } from "../baseField.model";
|
|
2
|
+
import { DynAttachment } from "../dynAttachment";
|
|
3
3
|
export declare class ImageSelectorField extends BaseField {
|
|
4
4
|
ValuePairs: {
|
|
5
5
|
[key: string]: any;
|
|
@@ -10,43 +10,3 @@ export declare class ImageSelectorField extends BaseField {
|
|
|
10
10
|
IsMultiChoiche: boolean;
|
|
11
11
|
AttachmentList: Array<DynAttachment>;
|
|
12
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
|
-
FileBases64?: {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export declare class DynAttachmentSelectObject {
|
|
45
|
-
ID: number | string;
|
|
46
|
-
ButtonValue: string;
|
|
47
|
-
ButtonKey: string;
|
|
48
|
-
}
|
|
49
|
-
export declare class attachmentTypeEnum {
|
|
50
|
-
SINGLE: number;
|
|
51
|
-
LIST: number;
|
|
52
|
-
}
|
|
@@ -7,7 +7,7 @@ import { TextField } from "../models/fields/textField.model";
|
|
|
7
7
|
import { Form } from "../models/form.model";
|
|
8
8
|
import { Record } from "../models/record.model";
|
|
9
9
|
import { SpinnerService } from "./spinner.service";
|
|
10
|
-
import { DynAttachment } from "../models/
|
|
10
|
+
import { DynAttachment } from "../models/dynAttachment";
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class UtilityHelperService {
|
|
13
13
|
private formBuilder;
|
|
@@ -94,7 +94,7 @@ export declare class UtilityHelperService {
|
|
|
94
94
|
* @param errorCallBack Metodo da eseguire in caso di errore dopo la chiamata http.
|
|
95
95
|
* NOTA: in input viene passato l'errore generato della chiamata stessa.
|
|
96
96
|
*/
|
|
97
|
-
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Record | Array<Record> | DynAttachment) => void, errorCallBack?: (err: unknown) => void): void;
|
|
97
|
+
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Record | Array<Record> | DynAttachment | Array<DynAttachment>) => void, errorCallBack?: (err: unknown) => void): void;
|
|
98
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityHelperService, never>;
|
|
99
99
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityHelperService>;
|
|
100
100
|
}
|