@eqproject/eqp-dynamic-module 2.4.3 → 2.4.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.
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +1 -1
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +3 -3
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +1 -1
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +14 -4
- package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +82 -43
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +48 -70
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +1 -1
- package/esm2020/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +3 -2
- package/esm2020/lib/components/private/tmw-image-drawer/i18n.mjs +63 -0
- package/esm2020/lib/components/private/tmw-image-drawer/tmw-image-drawer.component.mjs +403 -0
- package/esm2020/lib/eqp-dynamic-module.module.mjs +6 -3
- package/esm2020/lib/models/endPointConfiguration.model.mjs +24 -1
- package/esm2020/lib/models/fields/imageField.model.mjs +7 -14
- package/esm2020/lib/models/fields/imageSelectorField.model.mjs +2 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +1 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +933 -422
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +773 -270
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +6 -1
- package/lib/components/private/field-templates/image-field-template/image-field-template.component.d.ts +18 -5
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +5 -2
- package/lib/components/private/tmw-image-drawer/i18n.d.ts +27 -0
- package/lib/components/private/tmw-image-drawer/tmw-image-drawer.component.d.ts +70 -0
- package/lib/eqp-dynamic-module.module.d.ts +13 -12
- package/lib/models/endPointConfiguration.model.d.ts +2 -0
- package/lib/models/fields/imageField.model.d.ts +5 -0
- package/lib/models/fields/imageSelectorField.model.d.ts +3 -0
- package/lib/services/utilityHelper.services.d.ts +2 -1
- package/package.json +1 -2
|
@@ -6,12 +6,16 @@ import { DynamicModuleListConfig } from '../../../models/dynamicModuleListConfig
|
|
|
6
6
|
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
|
+
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
10
|
+
import { DynAttachment } from '../../../models/fields/imageSelectorField.model';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFieldComponent {
|
|
11
13
|
private dialog;
|
|
14
|
+
endPointConfiguration: EndPointConfiguration;
|
|
12
15
|
field: BaseField;
|
|
13
16
|
form: Form;
|
|
14
17
|
record: Record;
|
|
18
|
+
inConfig: boolean;
|
|
15
19
|
recordChange: EventEmitter<Record>;
|
|
16
20
|
configList: DynamicModuleListConfig;
|
|
17
21
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
@@ -55,6 +59,7 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
|
|
|
55
59
|
* aggiornato dall'utente. Se null allora l'utente non ha modificato nulla e ha chiuso il dialog.
|
|
56
60
|
*/
|
|
57
61
|
onSaveInnerFormRecord(record: Record): void;
|
|
62
|
+
onImageDraw(event: DynAttachment): void;
|
|
58
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleFieldFixComponent, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModuleFieldFixComponent, "dynamic-module-field-fix", never, { "field": "field"; "form": "form"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
|
|
64
|
+
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>;
|
|
60
65
|
}
|
|
@@ -4,21 +4,32 @@ import { Record } from '../../../../models/record.model';
|
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
5
|
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
6
6
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
7
|
-
import { I18nInterface } from '
|
|
7
|
+
import { I18nInterface } from '../../tmw-image-drawer/i18n';
|
|
8
|
+
import { DynAttachment } from '../../../../models/fields/imageSelectorField.model';
|
|
9
|
+
import { EndPointConfiguration } from '../../../../models/endPointConfiguration.model';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
10
12
|
private dialog;
|
|
11
|
-
|
|
13
|
+
private utilityHelperService;
|
|
14
|
+
endPointConfiguration: EndPointConfiguration;
|
|
12
15
|
record: Record;
|
|
13
16
|
field: ImageField;
|
|
17
|
+
inConfig: boolean;
|
|
14
18
|
recordChange: EventEmitter<Record>;
|
|
19
|
+
imageDraw: EventEmitter<DynAttachment>;
|
|
15
20
|
imageWidth: number;
|
|
21
|
+
drawingLoaded: boolean;
|
|
22
|
+
FileBase64: string;
|
|
23
|
+
DrawFileBase64: string;
|
|
24
|
+
FileDataBase64: string;
|
|
25
|
+
AttachmentID: string | number;
|
|
26
|
+
imageDrawAttachment: DynAttachment;
|
|
16
27
|
width: any;
|
|
17
28
|
height: any;
|
|
18
29
|
i18n: I18nInterface;
|
|
19
30
|
dialogImageDrawingRef: MatDialogRef<TemplateRef<any>>;
|
|
20
31
|
dialogImageDrawing: TemplateRef<any>;
|
|
21
|
-
constructor(dialog: MatDialog,
|
|
32
|
+
constructor(dialog: MatDialog, utilityHelperService: UtilityHelperService);
|
|
22
33
|
ngOnInit(): void;
|
|
23
34
|
ngOnChanges(changes: SimpleChanges): void;
|
|
24
35
|
/**
|
|
@@ -39,7 +50,7 @@ export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, I
|
|
|
39
50
|
* dell'allegato caricato e chiude il dialog in cui disegnare.
|
|
40
51
|
* @param drawnPicture Blob dell'immagine disegnata.
|
|
41
52
|
*/
|
|
42
|
-
|
|
53
|
+
saveDraw(drawnPicture: Blob): Promise<void>;
|
|
43
54
|
/**
|
|
44
55
|
* Metodo per chiudere il dialog in cui disegnare sull'immagine cariata e svuotare le dimensioni.
|
|
45
56
|
*/
|
|
@@ -62,6 +73,8 @@ export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, I
|
|
|
62
73
|
*/
|
|
63
74
|
private onRecordValueChange;
|
|
64
75
|
openDraw(): void;
|
|
76
|
+
load(ID: any, Types: any): void;
|
|
77
|
+
loadOriginal(): void;
|
|
65
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageFieldTemplateComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageFieldTemplateComponent, "image-field-template", never, { "record": "record"; "field": "field"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageFieldTemplateComponent, "image-field-template", never, { "endPointConfiguration": "endPointConfiguration"; "record": "record"; "field": "field"; "inConfig": "inConfig"; }, { "recordChange": "recordChange"; "imageDraw": "imageDraw"; }, never, never, false, never>;
|
|
67
80
|
}
|
|
@@ -19,6 +19,7 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
19
19
|
record: Record | string;
|
|
20
20
|
onlyView: boolean;
|
|
21
21
|
isDuplicate: boolean;
|
|
22
|
+
inConfig: boolean;
|
|
22
23
|
showTitle: boolean;
|
|
23
24
|
showSaveButton: boolean;
|
|
24
25
|
showBackButton: boolean;
|
|
@@ -51,7 +52,7 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
51
52
|
* nel body della chiamata, altrimenti scatena l'evento "saveRecord".
|
|
52
53
|
* @param event Oggetto di tipo Record da salvare.
|
|
53
54
|
*/
|
|
54
|
-
onSaveRecord(event: Record): void
|
|
55
|
+
onSaveRecord(event: Record): Promise<void>;
|
|
55
56
|
getFormByID(id?: string): void;
|
|
56
57
|
getRecordByID(): void;
|
|
57
58
|
getFormByIDandVersion(): void;
|
|
@@ -80,6 +81,8 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
80
81
|
private getResponseValues;
|
|
81
82
|
private getResponseTemplate;
|
|
82
83
|
private replaceTemplatePlaceholdersWithValues;
|
|
84
|
+
delay(ms: number): Promise<unknown>;
|
|
85
|
+
private resizeBase64Image;
|
|
83
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddFormRecordComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "record": "record"; "onlyView": "onlyView"; "isDuplicate": "isDuplicate"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "record": "record"; "onlyView": "onlyView"; "isDuplicate": "isDuplicate"; "inConfig": "inConfig"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
85
88
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const I18nFr: I18nInterface;
|
|
2
|
+
export declare const I18nEn: I18nInterface;
|
|
3
|
+
export declare const i18nLanguages: {
|
|
4
|
+
[name: string]: I18nInterface;
|
|
5
|
+
};
|
|
6
|
+
export interface I18nInterface {
|
|
7
|
+
saveBtn?: string;
|
|
8
|
+
cancelBtn?: string;
|
|
9
|
+
closeDialog?: string;
|
|
10
|
+
loadImage?: string;
|
|
11
|
+
loadImageUrl?: string;
|
|
12
|
+
loading?: string;
|
|
13
|
+
loadError?: string;
|
|
14
|
+
removeImage?: string;
|
|
15
|
+
sizes?: {
|
|
16
|
+
[name: string]: string;
|
|
17
|
+
};
|
|
18
|
+
undo?: string;
|
|
19
|
+
redo?: string;
|
|
20
|
+
clear?: string;
|
|
21
|
+
colors?: {
|
|
22
|
+
[name: string]: string;
|
|
23
|
+
};
|
|
24
|
+
tools?: {
|
|
25
|
+
[name: string]: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { I18nInterface } from './i18n';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TmwImageDrawerComponent implements OnInit, AfterViewInit, OnChanges {
|
|
5
|
+
closeDialog: EventEmitter<void>;
|
|
6
|
+
src?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
forceSizeCanvas: boolean;
|
|
10
|
+
forceSizeExport: boolean;
|
|
11
|
+
enableRemoveImage: boolean;
|
|
12
|
+
enableLoadAnotherImage: boolean;
|
|
13
|
+
enableTooltip: boolean;
|
|
14
|
+
showCancelButton: boolean;
|
|
15
|
+
inConfig?: boolean;
|
|
16
|
+
i18nUser: I18nInterface;
|
|
17
|
+
locale: string;
|
|
18
|
+
loadingTemplate?: TemplateRef<any>;
|
|
19
|
+
errorTemplate?: TemplateRef<any>;
|
|
20
|
+
outputMimeType: string;
|
|
21
|
+
outputQuality: number;
|
|
22
|
+
borderCss: string;
|
|
23
|
+
drawingSizes: {
|
|
24
|
+
[name: string]: number;
|
|
25
|
+
};
|
|
26
|
+
colors: {
|
|
27
|
+
[name: string]: string;
|
|
28
|
+
};
|
|
29
|
+
save: EventEmitter<Blob>;
|
|
30
|
+
loadOriginal: EventEmitter<void>;
|
|
31
|
+
currentTool: string;
|
|
32
|
+
currentSize: string;
|
|
33
|
+
currentColor: string;
|
|
34
|
+
i18n: I18nInterface;
|
|
35
|
+
canUndo: boolean;
|
|
36
|
+
canRedo: boolean;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
hasError: boolean;
|
|
39
|
+
errorMessage: string;
|
|
40
|
+
private canvas;
|
|
41
|
+
private stack;
|
|
42
|
+
colorsName: string[];
|
|
43
|
+
drawingSizesName: string[];
|
|
44
|
+
private imageUsed?;
|
|
45
|
+
componentGuid: string;
|
|
46
|
+
constructor();
|
|
47
|
+
ngOnInit(): void;
|
|
48
|
+
ngAfterViewInit(): void;
|
|
49
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
50
|
+
selectTool(tool: string): void;
|
|
51
|
+
selectDrawingSize(size: string): void;
|
|
52
|
+
selectColor(color: string): void;
|
|
53
|
+
undo(): void;
|
|
54
|
+
redo(): void;
|
|
55
|
+
clearCanvas(): void;
|
|
56
|
+
saveImage(): void;
|
|
57
|
+
doLoadOriginal(): void;
|
|
58
|
+
getTextTranslated(name: string): string;
|
|
59
|
+
getTooltipTranslated(name: string): string;
|
|
60
|
+
private setUndoRedo;
|
|
61
|
+
importPhotoFromFile(event: Event | any): void;
|
|
62
|
+
removeImage(): void;
|
|
63
|
+
get hasImage(): boolean;
|
|
64
|
+
private importPhotoFromSrc;
|
|
65
|
+
private importPhotoFromBlob;
|
|
66
|
+
importPhotoFromUrl(): void;
|
|
67
|
+
close(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TmwImageDrawerComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TmwImageDrawerComponent, "tmw-image-drawer", never, { "src": "src"; "width": "width"; "height": "height"; "forceSizeCanvas": "forceSizeCanvas"; "forceSizeExport": "forceSizeExport"; "enableRemoveImage": "enableRemoveImage"; "enableLoadAnotherImage": "enableLoadAnotherImage"; "enableTooltip": "enableTooltip"; "showCancelButton": "showCancelButton"; "inConfig": "inConfig"; "i18nUser": "i18n"; "locale": "locale"; "loadingTemplate": "loadingTemplate"; "errorTemplate": "errorTemplate"; "outputMimeType": "outputMimeType"; "outputQuality": "outputQuality"; "borderCss": "borderCss"; "drawingSizes": "drawingSizes"; "colors": "colors"; }, { "closeDialog": "closeDialog"; "save": "save"; "loadOriginal": "loadOriginal"; }, never, ["*"], false, never>;
|
|
70
|
+
}
|
|
@@ -37,17 +37,18 @@ import * as i34 from "./components/private/graphs/graph/graph.component";
|
|
|
37
37
|
import * as i35 from "./components/private/field-templates/image-field-selector-template/image-field-selector-template.component";
|
|
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
|
-
import * as i38 from "./
|
|
41
|
-
import * as i39 from "
|
|
42
|
-
import * as i40 from "@angular/
|
|
43
|
-
import * as i41 from "@
|
|
44
|
-
import * as i42 from "@eqproject/eqp-
|
|
45
|
-
import * as i43 from "@eqproject/eqp-
|
|
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 "@
|
|
40
|
+
import * as i38 from "./components/private/tmw-image-drawer/tmw-image-drawer.component";
|
|
41
|
+
import * as i39 from "./modules/material.module";
|
|
42
|
+
import * as i40 from "@angular/forms";
|
|
43
|
+
import * as i41 from "@angular/common";
|
|
44
|
+
import * as i42 from "@eqproject/eqp-table";
|
|
45
|
+
import * as i43 from "@eqproject/eqp-attachments";
|
|
46
|
+
import * as i44 from "@eqproject/eqp-select";
|
|
47
|
+
import * as i45 from "@eqproject/eqp-datetimepicker";
|
|
48
|
+
import * as i46 from "@eqproject/eqp-filters";
|
|
49
|
+
import * as i47 from "@eqproject/eqp-img-drawing";
|
|
50
|
+
import * as i48 from "@eqproject/eqp-numeric";
|
|
51
|
+
import * as i49 from "@canvasjs/angular-stockcharts";
|
|
51
52
|
export declare const customNumericMaskConfig: {
|
|
52
53
|
align: string;
|
|
53
54
|
allowNegative: boolean;
|
|
@@ -64,6 +65,6 @@ export declare const customNumericMaskConfig: {
|
|
|
64
65
|
};
|
|
65
66
|
export declare class EqpDynamicModuleModule {
|
|
66
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
67
|
-
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
|
|
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 i39.MaterialModule, typeof i40.FormsModule, typeof i41.CommonModule, typeof i40.ReactiveFormsModule, typeof i42.EqpTableModule, typeof i43.EqpAttachmentsModule, typeof i44.EqpSelectModule, typeof i45.EqpDatetimepickerModule, typeof i46.EqpFiltersModule, typeof i47.EqpImgDrawingModule, typeof i48.EqpNumericModule, typeof i49.CanvasJSAngularStockChartsModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i49.CanvasJSChart, typeof i49.CanvasJSStockChart]>;
|
|
68
69
|
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
69
70
|
}
|
|
@@ -10,9 +10,11 @@ export declare class EndPointConfiguration {
|
|
|
10
10
|
ApplyFilter?: EndPointData;
|
|
11
11
|
};
|
|
12
12
|
Forms: {
|
|
13
|
+
GetAttachmentWithBases64: EndPointData;
|
|
13
14
|
GetByIDEndPoint: EndPointData;
|
|
14
15
|
GetByIDAndVersionEndPoint: EndPointData;
|
|
15
16
|
SaveEndPoint: EndPointData;
|
|
17
|
+
SaveAttachmentEndPoint: EndPointData;
|
|
16
18
|
};
|
|
17
19
|
constructor(baseUrl?: string, userToken?: string);
|
|
18
20
|
}
|
|
@@ -37,6 +37,9 @@ export declare class DynAttachment implements IAttachmentDTO {
|
|
|
37
37
|
ButtonKey: string;
|
|
38
38
|
objectToSelect?: DynAttachmentSelectObject;
|
|
39
39
|
originalIndex?: number;
|
|
40
|
+
FileBases64?: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
40
43
|
}
|
|
41
44
|
export declare class DynAttachmentSelectObject {
|
|
42
45
|
ID: number | string;
|
|
@@ -7,6 +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/fields/imageSelectorField.model";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class UtilityHelperService {
|
|
12
13
|
private formBuilder;
|
|
@@ -93,7 +94,7 @@ export declare class UtilityHelperService {
|
|
|
93
94
|
* @param errorCallBack Metodo da eseguire in caso di errore dopo la chiamata http.
|
|
94
95
|
* NOTA: in input viene passato l'errore generato della chiamata stessa.
|
|
95
96
|
*/
|
|
96
|
-
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Record | Array<Record>) => void, errorCallBack?: (err: unknown) => void): void;
|
|
97
|
+
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Record | Array<Record> | DynAttachment) => void, errorCallBack?: (err: unknown) => void): void;
|
|
97
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityHelperService, never>;
|
|
98
99
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityHelperService>;
|
|
99
100
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "EqProject"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.4.
|
|
7
|
+
"version": "2.4.4",
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@angular-material-components/datetime-picker": "^15.0.0",
|
|
10
10
|
"@angular-material-components/moment-adapter": "^15.0.0",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@eqproject/eqp-attachments": "2.1.3",
|
|
22
22
|
"@eqproject/eqp-datetimepicker": "2.0.2",
|
|
23
23
|
"@eqproject/eqp-filters": "2.0.3",
|
|
24
|
-
"@eqproject/eqp-img-drawing": "2.0.3",
|
|
25
24
|
"@eqproject/eqp-numeric": "2.0.1",
|
|
26
25
|
"@eqproject/eqp-select": "2.0.2",
|
|
27
26
|
"@eqproject/eqp-table": "2.5.2",
|