@eqproject/eqp-dynamic-module 2.10.16 → 2.10.18
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 +19 -3
- package/esm2020/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.mjs +97 -4
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +1 -2
- package/esm2020/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +7 -1
- package/esm2020/lib/models/baseField.model.mjs +1 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +180 -34
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +176 -34
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +3 -0
- package/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.d.ts +5 -0
- package/lib/models/baseField.model.d.ts +2 -0
- package/package.json +1 -1
|
@@ -72,6 +72,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
72
72
|
key: string;
|
|
73
73
|
value: string;
|
|
74
74
|
}>;
|
|
75
|
+
aggregationFunctionEnum: any;
|
|
75
76
|
fieldTypeFormTemplate: TemplateRef<any>;
|
|
76
77
|
textFieldFormTemplate: TemplateRef<any>;
|
|
77
78
|
labelFieldFormTemplate: TemplateRef<any>;
|
|
@@ -123,6 +124,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
123
124
|
DMGetterCardinalities: typeof DataGetterCardinalityEnum;
|
|
124
125
|
platform: string;
|
|
125
126
|
loadedFieldExtra: boolean;
|
|
127
|
+
aggregationFieldLoaded: boolean;
|
|
126
128
|
constructor(formBuilder: UntypedFormBuilder, enumHelper: EnumHelper, dialog: MatDialog, cdr: ChangeDetectorRef, httpClient: HttpClient, utilityHelperService: UtilityHelperService);
|
|
127
129
|
ngOnInit(): Promise<void>;
|
|
128
130
|
/**
|
|
@@ -151,6 +153,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
151
153
|
* @param control è il nome del GroupControl di cui leggere se ci sono errori
|
|
152
154
|
*/
|
|
153
155
|
getFormValidationErrors(control: string): string;
|
|
156
|
+
setAggregation(enumType: any, reset: boolean): void;
|
|
154
157
|
/**
|
|
155
158
|
* Metodo chiamato quando cambia il FieldType del BaseField che si sta aggiungendo/modificando.
|
|
156
159
|
* Ricrea l'oggetto field popolando solo le proprietà del BaseField inserite dall'utente
|
package/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { EndPointConfiguration } from "../../../../models/endPointConfiguration.
|
|
|
9
9
|
import { ModeEnum } from "tmw-picker";
|
|
10
10
|
import { DatePipe } from "@angular/common";
|
|
11
11
|
import { ActionButton } from '../../../../models/trigger.model';
|
|
12
|
+
import { NumberAggregationFunctionEnum } from '../../../../models/statistic.model';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class HListFormRecordComponent implements OnInit, OnChanges {
|
|
14
15
|
private utilityHelperService;
|
|
@@ -42,6 +43,8 @@ export declare class HListFormRecordComponent implements OnInit, OnChanges {
|
|
|
42
43
|
selectedProperties: string[];
|
|
43
44
|
filteredAnswers: any;
|
|
44
45
|
displayedColumns: any[];
|
|
46
|
+
existingAggregations: Array<NumberAggregationFunctionEnum>;
|
|
47
|
+
numberAggregationFunctionEnum: typeof NumberAggregationFunctionEnum;
|
|
45
48
|
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, datepipe: DatePipe);
|
|
46
49
|
ngOnInit(): void;
|
|
47
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -103,6 +106,8 @@ export declare class HListFormRecordComponent implements OnInit, OnChanges {
|
|
|
103
106
|
*/
|
|
104
107
|
filterDataAnswers(): void;
|
|
105
108
|
setMinMaxDates(): void;
|
|
109
|
+
fillAggregationColumns(): void;
|
|
110
|
+
standardDeviation(arr: any, usePopulation?: boolean): number;
|
|
106
111
|
printValue(fieldType: any, value: any, fieldconfig: any, record: any): any;
|
|
107
112
|
private resizeBase64Image;
|
|
108
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<HListFormRecordComponent, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { BaseObj } from './baseObj.model';
|
|
3
3
|
import { Contestualization } from './getter.model';
|
|
4
|
+
import { NotNumberAggregationFunctionEnum, NumberAggregationFunctionEnum } from './statistic.model';
|
|
4
5
|
/**
|
|
5
6
|
* Contiene le informazioni di base del campo, indipendentemente dal tipo.
|
|
6
7
|
* Questa classe è volutamente astratta perché il tipo di campo è dettato dal tipo
|
|
@@ -20,6 +21,7 @@ export declare class BaseField extends BaseObj {
|
|
|
20
21
|
Disabled: boolean;
|
|
21
22
|
Readonly: boolean;
|
|
22
23
|
ReadonlyIf: string;
|
|
24
|
+
Aggregations: Array<NumberAggregationFunctionEnum> | Array<NotNumberAggregationFunctionEnum>;
|
|
23
25
|
FieldstyleCSS: string;
|
|
24
26
|
LabelstyleCSS: string;
|
|
25
27
|
AnswerStyle: AnswerStyle;
|