@eqproject/eqp-dynamic-module 2.3.43 → 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.
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +14 -2
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +30 -8
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +4 -3
- package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +4 -5
- package/esm2020/lib/components/private/field-templates/label-field-template/label-field-template.component.mjs +74 -0
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +3 -3
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +17 -9
- package/esm2020/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.mjs +4 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +126 -0
- package/esm2020/lib/eqp-dynamic-module.module.mjs +9 -3
- package/esm2020/lib/models/baseField.model.mjs +8 -2
- package/esm2020/lib/models/fields/imageField.model.mjs +1 -1
- package/esm2020/lib/models/fields/imageSelectorField.model.mjs +1 -1
- package/esm2020/lib/models/fields/labelField.model.mjs +4 -0
- package/esm2020/lib/models/logicOperator.model.mjs +6 -1
- package/esm2020/lib/models/statistic.model.mjs +1 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +19 -5
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +291 -31
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +291 -31
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +3 -1
- package/lib/components/private/field-templates/label-field-template/label-field-template.component.d.ts +34 -0
- package/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.d.ts +47 -0
- package/lib/eqp-dynamic-module.module.d.ts +13 -11
- package/lib/models/baseField.model.d.ts +8 -1
- package/lib/models/fields/imageSelectorField.model.d.ts +3 -0
- package/lib/models/fields/labelField.model.d.ts +4 -0
- package/lib/models/logicOperator.model.d.ts +4 -0
- package/lib/models/statistic.model.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -5,7 +5,7 @@ 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";
|
|
@@ -47,9 +47,11 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
47
47
|
key: string;
|
|
48
48
|
value: string;
|
|
49
49
|
}[];
|
|
50
|
+
fieldInvisibilityEnum: typeof FieldInvisibilityEnum;
|
|
50
51
|
saveFieldEvent: EventEmitter<BaseField | any>;
|
|
51
52
|
fieldTypeFormTemplate: TemplateRef<any>;
|
|
52
53
|
textFieldFormTemplate: TemplateRef<any>;
|
|
54
|
+
labelFieldFormTemplate: TemplateRef<any>;
|
|
53
55
|
textareaFieldFormTemplate: TemplateRef<any>;
|
|
54
56
|
booleadFieldFormTemplate: TemplateRef<any>;
|
|
55
57
|
dateFieldFormTemplate: TemplateRef<any>;
|
|
@@ -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
|
+
}
|
|
@@ -35,16 +35,18 @@ import * as i32 from "./components/private/form-statistics/filter-templates/list
|
|
|
35
35
|
import * as i33 from "./components/private/graphs/graphs.component";
|
|
36
36
|
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
|
-
import * as i36 from "./
|
|
39
|
-
import * as i37 from "
|
|
40
|
-
import * as i38 from "
|
|
41
|
-
import * as i39 from "@
|
|
42
|
-
import * as i40 from "@
|
|
43
|
-
import * as i41 from "@eqproject/eqp-
|
|
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 "@
|
|
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";
|
|
48
50
|
export declare const customNumericMaskConfig: {
|
|
49
51
|
align: string;
|
|
50
52
|
allowNegative: boolean;
|
|
@@ -61,6 +63,6 @@ export declare const customNumericMaskConfig: {
|
|
|
61
63
|
};
|
|
62
64
|
export declare class EqpDynamicModuleModule {
|
|
63
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
64
|
-
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
|
|
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]>;
|
|
65
67
|
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
66
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;
|
|
@@ -53,7 +55,8 @@ export declare enum FieldTypeEnum {
|
|
|
53
55
|
'Elenco generico' = 8,
|
|
54
56
|
'Lookup' = 9,
|
|
55
57
|
'Form di dettaglio' = 10,
|
|
56
|
-
'Elenco immagini' = 11
|
|
58
|
+
'Elenco immagini' = 11,
|
|
59
|
+
"Etichetta" = 12
|
|
57
60
|
}
|
|
58
61
|
export declare enum ColSpanSizesEnum {
|
|
59
62
|
'col-sm-3' = 1,
|
|
@@ -96,3 +99,7 @@ export declare enum ColSpanSizesEnum {
|
|
|
96
99
|
'col-lg-10' = 38,
|
|
97
100
|
'col-lg-11' = 39
|
|
98
101
|
}
|
|
102
|
+
export declare enum FieldInvisibilityEnum {
|
|
103
|
+
'NASCOSTO' = 1,
|
|
104
|
+
'NASCOSTO CON AREA VISIBILE' = 2
|
|
105
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AttachmentType, IAttachmentDTO } from "@eqproject/eqp-attachments";
|
|
2
2
|
import { BaseField } from "../baseField.model";
|
|
3
3
|
export declare class ImageSelectorField extends BaseField {
|
|
4
|
+
ValuePairs: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
4
7
|
DynAttachments: Array<DynAttachment>;
|
|
5
8
|
DynAttachmentsIDs: Array<number>;
|
|
6
9
|
ResizedImagesHeightPx: number;
|
|
@@ -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
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';
|