@eqproject/eqp-dynamic-module 2.4.45 → 2.5.0
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 +3 -3
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +45 -6
- package/esm2020/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.mjs +5 -1
- package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +32 -8
- package/esm2020/lib/components/private/field-templates/image-field-selector-template/image-field-selector-template.component.mjs +3 -3
- package/esm2020/lib/components/private/field-templates/label-field-template/label-field-template.component.mjs +5 -1
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +3 -3
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +8 -4
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +7 -3
- package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +7 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +28 -8
- package/esm2020/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +3 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +3 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +3 -3
- package/esm2020/lib/components/private/graphs/graphs.component.mjs +8 -6
- package/esm2020/lib/eqp-dynamic-module.module.mjs +13 -6
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +148 -42
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +148 -42
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +3 -2
- package/lib/components/private/field-templates/date-field-template/date-field-template.component.d.ts +6 -2
- package/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.d.ts +6 -2
- package/lib/components/private/graphs/graphs.component.d.ts +4 -2
- package/lib/eqp-dynamic-module.module.d.ts +2 -1
- package/package.json +2 -2
|
@@ -2,7 +2,6 @@ import { ChangeDetectorRef, EventEmitter, OnInit, TemplateRef } from "@angular/c
|
|
|
2
2
|
import { FormControl, UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
3
3
|
import { MatDialog, MatDialogRef } from "@angular/material/dialog";
|
|
4
4
|
import { AttachmentType, EqpAttachmentsComponent, IAttachmentDTO } from "@eqproject/eqp-attachments";
|
|
5
|
-
import { PickerModeEnum } from "@eqproject/eqp-datetimepicker";
|
|
6
5
|
import { EnumHelper } from "@eqproject/eqp-select";
|
|
7
6
|
import { ConfigColumn } from "@eqproject/eqp-table";
|
|
8
7
|
import { BaseField, ColSpanSizesEnum, FieldInvisibilityEnum, FieldTypeEnum } from "../../../models/baseField.model";
|
|
@@ -15,6 +14,7 @@ import { AttachmentFieldTypeEnum, DynAttachment } from "../../../models/dynAttac
|
|
|
15
14
|
import { DynamicLoaderDirectiveData, eventOut } from "../../../directives/dynamic-loader/dynamic-loader.directive";
|
|
16
15
|
import { HttpClient } from "@angular/common/http";
|
|
17
16
|
import { DataGetterTypeEnum } from '../../../models/baseField.model';
|
|
17
|
+
import { ModeEnum, TimeTypeEnum } from "tmw-picker";
|
|
18
18
|
import * as i0 from "@angular/core";
|
|
19
19
|
export declare class AddFormFieldComponent implements OnInit {
|
|
20
20
|
private formBuilder;
|
|
@@ -85,7 +85,6 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
85
85
|
ListPresentationEnum: typeof ListPresentationEnum;
|
|
86
86
|
TextMaskEnum: typeof TextMaskEnum;
|
|
87
87
|
AttachmentType: typeof AttachmentType;
|
|
88
|
-
pickerModeEnum: typeof PickerModeEnum;
|
|
89
88
|
attachmentFieldTypeEnum: typeof AttachmentFieldTypeEnum;
|
|
90
89
|
dataGetterTypeEnum: typeof DataGetterTypeEnum;
|
|
91
90
|
subscription: any;
|
|
@@ -98,6 +97,8 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
98
97
|
imageAttachment: EqpAttachmentsComponent;
|
|
99
98
|
dialogQERef: MatDialogRef<TemplateRef<any>>;
|
|
100
99
|
dialogQE: TemplateRef<any>;
|
|
100
|
+
mode: typeof ModeEnum;
|
|
101
|
+
timeType: typeof TimeTypeEnum;
|
|
101
102
|
constructor(formBuilder: UntypedFormBuilder, enumHelper: EnumHelper, dialog: MatDialog, cdr: ChangeDetectorRef, httpClient: HttpClient);
|
|
102
103
|
ngOnInit(): void;
|
|
103
104
|
/**
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
3
2
|
import { Record } from '../../../../models/record.model';
|
|
4
3
|
import { DateField } from '../../../../models/fields/dateField.model';
|
|
5
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
import { ModeEnum, TimeTypeEnum } from "tmw-picker";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DateFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
8
8
|
field: DateField;
|
|
9
9
|
record: Record;
|
|
10
10
|
recordChange: EventEmitter<Record>;
|
|
11
|
-
|
|
11
|
+
modes: typeof ModeEnum;
|
|
12
|
+
timeType: typeof TimeTypeEnum;
|
|
13
|
+
mode: ModeEnum;
|
|
14
|
+
outputFormat: string;
|
|
12
15
|
constructor();
|
|
13
16
|
ngOnInit(): void;
|
|
14
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -20,6 +23,7 @@ export declare class DateFieldTemplateComponent implements OnInit, OnChanges, IB
|
|
|
20
23
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
21
24
|
*/
|
|
22
25
|
onRecordValueChange(): void;
|
|
26
|
+
setOutputFormat(): void;
|
|
23
27
|
/**
|
|
24
28
|
* In base al formato della data richiesta nel DateField (solo data, solo orario o data e ora)
|
|
25
29
|
* imposta la visualizzazione corretta del componente eqp-datetimepicker.
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
3
2
|
import { Record } from '../../../../../models/record.model';
|
|
4
3
|
import { DateField } from '../../../../../models/fields/dateField.model';
|
|
5
4
|
import { LogicOperatorDate } from '../../../../../models/logicOperator.model';
|
|
6
5
|
import { Statistic } from '../../../../../models/statistic.model';
|
|
6
|
+
import { ModeEnum, TimeTypeEnum } from 'tmw-picker';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class DateFilterTemplateComponent {
|
|
9
9
|
field: DateField;
|
|
10
10
|
record: Record;
|
|
11
11
|
filterChange: EventEmitter<any>;
|
|
12
|
-
pickerMode: PickerModeEnum;
|
|
13
12
|
logicOperatorNumeric: typeof LogicOperatorDate;
|
|
14
13
|
selectedLogicOperator: LogicOperatorDate;
|
|
15
14
|
activeCondition: boolean;
|
|
15
|
+
modes: typeof ModeEnum;
|
|
16
|
+
timeType: typeof TimeTypeEnum;
|
|
17
|
+
mode: ModeEnum;
|
|
18
|
+
outputFormat: string;
|
|
16
19
|
constructor();
|
|
17
20
|
ngOnInit(): void;
|
|
18
21
|
/**
|
|
@@ -28,6 +31,7 @@ export declare class DateFilterTemplateComponent {
|
|
|
28
31
|
* Metodo che genera l'oggetto da inviare all'esterno
|
|
29
32
|
*/
|
|
30
33
|
generateCondition(mode: any): Statistic;
|
|
34
|
+
setOutputFormat(): void;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterTemplateComponent, never>;
|
|
32
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterTemplateComponent, "date-filter-template", never, { "field": "field"; "record": "record"; }, { "filterChange": "filterChange"; }, never, never, false, never>;
|
|
33
37
|
}
|
|
@@ -2,12 +2,12 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { Form } from "../../../models/form.model";
|
|
3
3
|
import { DynamicModuleCompileConfig } from '../../../models/dynamicModuleCompileConfig.model';
|
|
4
4
|
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
5
|
-
import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
6
5
|
import { UntypedFormGroup } from '@angular/forms';
|
|
7
6
|
import { GraphField } from '../../../models/graph.model';
|
|
8
7
|
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
9
8
|
import { DynRecord } from '../../../models/record.model';
|
|
10
9
|
import { DatePipe } from '@angular/common';
|
|
10
|
+
import { ModeEnum, TimeTypeEnum } from 'tmw-picker';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class GraphsComponent implements OnInit {
|
|
13
13
|
private utilityHelperService;
|
|
@@ -17,7 +17,6 @@ export declare class GraphsComponent implements OnInit {
|
|
|
17
17
|
userID: string;
|
|
18
18
|
formID: string;
|
|
19
19
|
form: Form;
|
|
20
|
-
pickerModeEnum: typeof PickerModeEnum;
|
|
21
20
|
fieldFormGroup: UntypedFormGroup;
|
|
22
21
|
loaded: boolean;
|
|
23
22
|
generated: boolean;
|
|
@@ -30,6 +29,9 @@ export declare class GraphsComponent implements OnInit {
|
|
|
30
29
|
selectedGeneratedFields: Array<GraphField>;
|
|
31
30
|
answers: Array<DynRecord>;
|
|
32
31
|
eligibleAnswers: Array<DynRecord>;
|
|
32
|
+
modes: typeof ModeEnum;
|
|
33
|
+
timeType: typeof TimeTypeEnum;
|
|
34
|
+
mode: ModeEnum;
|
|
33
35
|
constructor(utilityHelperService: UtilityHelperService, datePipe: DatePipe);
|
|
34
36
|
ngOnInit(): void;
|
|
35
37
|
/**
|
|
@@ -54,6 +54,7 @@ import * as i51 from "@eqproject/eqp-img-drawing";
|
|
|
54
54
|
import * as i52 from "@angular/cdk/drag-drop";
|
|
55
55
|
import * as i53 from "@eqproject/eqp-numeric";
|
|
56
56
|
import * as i54 from "@canvasjs/angular-stockcharts";
|
|
57
|
+
import * as i55 from "tmw-picker";
|
|
57
58
|
export declare const customNumericMaskConfig: {
|
|
58
59
|
align: string;
|
|
59
60
|
allowNegative: boolean;
|
|
@@ -70,6 +71,6 @@ export declare const customNumericMaskConfig: {
|
|
|
70
71
|
};
|
|
71
72
|
export declare class EqpDynamicModuleModule {
|
|
72
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
73
|
-
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.DynamicLoaderDirective, typeof i42.DbgetterComponent], [typeof i43.MaterialModule, typeof i44.FormsModule, typeof i45.CommonModule, typeof i44.ReactiveFormsModule, typeof i46.EqpTableModule, typeof i47.EqpAttachmentsModule, typeof i48.EqpSelectModule, typeof i49.EqpDatetimepickerModule, typeof i50.EqpFiltersModule, typeof i51.EqpImgDrawingModule, typeof i52.DragDropModule, typeof i53.EqpNumericModule, typeof i54.CanvasJSAngularStockChartsModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i52.DragDropModule, typeof i54.CanvasJSChart, typeof i54.CanvasJSStockChart, typeof i41.DynamicLoaderDirective]>;
|
|
74
|
+
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.DynamicLoaderDirective, typeof i42.DbgetterComponent], [typeof i43.MaterialModule, typeof i44.FormsModule, typeof i45.CommonModule, typeof i44.ReactiveFormsModule, typeof i46.EqpTableModule, typeof i47.EqpAttachmentsModule, typeof i48.EqpSelectModule, typeof i49.EqpDatetimepickerModule, typeof i50.EqpFiltersModule, typeof i51.EqpImgDrawingModule, typeof i52.DragDropModule, typeof i53.EqpNumericModule, typeof i54.CanvasJSAngularStockChartsModule, typeof i55.TmwPickerModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i52.DragDropModule, typeof i54.CanvasJSChart, typeof i54.CanvasJSStockChart, typeof i41.DynamicLoaderDirective, typeof i55.TmwPickerModule]>;
|
|
74
75
|
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
75
76
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "EqProject"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.5.0",
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@angular-material-components/datetime-picker": "^15.0.0",
|
|
10
10
|
"@angular-material-components/moment-adapter": "^15.0.0",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"@canvasjs/angular-stockcharts": "^1.1.0",
|
|
20
20
|
"@canvasjs/stockcharts": "^1.7.39",
|
|
21
21
|
"@eqproject/eqp-attachments": "2.1.3",
|
|
22
|
-
"@eqproject/eqp-datetimepicker": "2.0.2",
|
|
23
22
|
"@eqproject/eqp-filters": "2.0.3",
|
|
24
23
|
"@eqproject/eqp-numeric": "2.0.1",
|
|
25
24
|
"@eqproject/eqp-select": "2.0.2",
|
|
@@ -29,6 +28,7 @@
|
|
|
29
28
|
"ngx-image-cropper": "^6.3.2",
|
|
30
29
|
"ngx-mat-select-search": "^7.0.1",
|
|
31
30
|
"simple-statistics": "^7.8.3",
|
|
31
|
+
"tmw-picker": "1.0.45",
|
|
32
32
|
"tslib": "^2.4.0"
|
|
33
33
|
},
|
|
34
34
|
"sideEffects": true,
|