@eqproject/eqp-dynamic-module 2.3.0 → 2.3.2
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 +7 -4
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +5 -1
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +27 -8
- package/esm2020/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +1 -1
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +4 -3
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +66 -30
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +53 -12
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +43 -6
- package/esm2020/lib/models/baseField.model.mjs +9 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +18 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +217 -55
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +217 -55
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +1 -0
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +10 -2
- package/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.d.ts +9 -0
- package/lib/models/baseField.model.d.ts +8 -0
- package/lib/services/utilityHelper.services.d.ts +9 -0
- package/package.json +1 -1
|
@@ -178,6 +178,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
178
178
|
*/
|
|
179
179
|
openFormulaDialog(): void;
|
|
180
180
|
openVisibleIfDialog(): void;
|
|
181
|
+
openAnswerStyleVisibleIfDialog(): void;
|
|
181
182
|
stringSanitizer(value: any): void;
|
|
182
183
|
/**
|
|
183
184
|
* Metodo invocato dall'output dal dialog per aggiungere/modificare un metadata
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef } from "@angular/core";
|
|
1
|
+
import { OnInit, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
2
|
import { ConfigColumn, EqpTableComponent } from "@eqproject/eqp-table";
|
|
3
3
|
import { Form } from "../../../../models/form.model";
|
|
4
4
|
import { DynRecord, Record, RecordButton } from "../../../../models/record.model";
|
|
@@ -7,6 +7,7 @@ import { DynamicModuleListFormRecordActionsDefault } from "../../../../models/dy
|
|
|
7
7
|
import { DynamicModuleListConfig } from "../../../../models/dynamicModuleListConfig.model";
|
|
8
8
|
import { DynamicModuleCompileConfig } from "./../../../..//models/dynamicModuleCompileConfig.model";
|
|
9
9
|
import { EndPointConfiguration } from "./../../../../models/endPointConfiguration.model";
|
|
10
|
+
import { MatDialog, MatDialogRef } from "@angular/material/dialog";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
type Panel = {
|
|
12
13
|
record: Record;
|
|
@@ -16,6 +17,7 @@ type Panel = {
|
|
|
16
17
|
export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
17
18
|
private utilityHelperService;
|
|
18
19
|
private changeDetector;
|
|
20
|
+
private dialog;
|
|
19
21
|
debugMode: boolean;
|
|
20
22
|
debugLog(message: string, element?: any): void;
|
|
21
23
|
configurations: DynamicModuleListConfig;
|
|
@@ -42,6 +44,9 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
42
44
|
columns: ConfigColumn[];
|
|
43
45
|
panels: Array<Panel>;
|
|
44
46
|
buttons: Array<RecordButton>;
|
|
47
|
+
popupLoader: boolean;
|
|
48
|
+
openAddDialog: TemplateRef<any>;
|
|
49
|
+
openAddDialogRef: MatDialogRef<TemplateRef<any>>;
|
|
45
50
|
onAddViewEditRecord: EventEmitter<{
|
|
46
51
|
record: Record;
|
|
47
52
|
onlyView: boolean;
|
|
@@ -50,7 +55,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
50
55
|
onDuplicateRecord: EventEmitter<Record>;
|
|
51
56
|
saveRecordEvent: EventEmitter<Record>;
|
|
52
57
|
afterSaveRecordEvent: EventEmitter<Record>;
|
|
53
|
-
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef);
|
|
58
|
+
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, dialog: MatDialog);
|
|
54
59
|
ngOnInit(): void;
|
|
55
60
|
ngOnChanges(changes: SimpleChanges): void;
|
|
56
61
|
onOpening(indice: number): void;
|
|
@@ -127,6 +132,9 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
127
132
|
record: Record;
|
|
128
133
|
onlyView: boolean;
|
|
129
134
|
}): void;
|
|
135
|
+
openAddPopup(): void;
|
|
136
|
+
onAddSaveRecord(record: Record): void;
|
|
137
|
+
onAddAfterSaveRecord(record: Record): void;
|
|
130
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewFormRecordComponent, never>;
|
|
131
139
|
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewFormRecordComponent, "list-view-form-record", never, { "debugMode": "debugMode"; "configurations": "configurations"; "compileConfigurations": "compileConfigurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "defaultListViewFunction": "defaultListViewFunction"; "externalButtons": "externalButtons"; "onlyView": "onlyView"; "records": "records"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onDuplicateRecord": "onDuplicateRecord"; "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
132
140
|
}
|
|
@@ -10,6 +10,7 @@ import { EndPointConfiguration } from './../../../../models/endPointConfiguratio
|
|
|
10
10
|
import { Statistic } from '../../../../models/statistic.model';
|
|
11
11
|
import { DynamicModuleListConfig } from '../../../../models/dynamicModuleListConfig.model';
|
|
12
12
|
import { DynamicModuleListFormRecordActionsDefault } from '../../../../models/dynamicModuleListFormRecordActionsDefault';
|
|
13
|
+
import { ConfigColumn, ExportEqpTable } from '@eqproject/eqp-table';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class FilterFormStatisticComponent {
|
|
15
16
|
private cdr;
|
|
@@ -26,13 +27,19 @@ export declare class FilterFormStatisticComponent {
|
|
|
26
27
|
onlyView: boolean;
|
|
27
28
|
defaultListActions: DynamicModuleListFormRecordActionsDefault;
|
|
28
29
|
internalListView: boolean;
|
|
30
|
+
pageSize: number;
|
|
31
|
+
pageIndex: number;
|
|
32
|
+
pageLength: Array<number>;
|
|
33
|
+
exportEqpTable: ExportEqpTable;
|
|
29
34
|
showTitle: boolean;
|
|
30
35
|
showSaveButton: boolean;
|
|
31
36
|
showBackButton: boolean;
|
|
32
37
|
loader: boolean;
|
|
33
38
|
showListView: boolean;
|
|
34
39
|
filterResults: Array<DynRecord>;
|
|
40
|
+
filterEqpTableResults: Array<any>;
|
|
35
41
|
listViewConfigurations: DynamicModuleListConfig;
|
|
42
|
+
columns: Array<ConfigColumn>;
|
|
36
43
|
formForm: UntypedFormGroup;
|
|
37
44
|
fieldGroups: {
|
|
38
45
|
[key: string]: Array<BaseField>;
|
|
@@ -46,6 +53,8 @@ export declare class FilterFormStatisticComponent {
|
|
|
46
53
|
filters: Array<Statistic>;
|
|
47
54
|
constructor(cdr: ChangeDetectorRef, utilityService: UtilityHelperService);
|
|
48
55
|
ngOnInit(): void;
|
|
56
|
+
configureColumns(): void;
|
|
57
|
+
configureExport(): void;
|
|
49
58
|
/**
|
|
50
59
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
51
60
|
* Serve ad aggiornare il valore di tutti i campi che hanno una formula.
|
|
@@ -21,6 +21,7 @@ export declare class BaseField extends BaseObj {
|
|
|
21
21
|
VisibleIf: string;
|
|
22
22
|
FieldstyleCSS: string;
|
|
23
23
|
LabelstyleCSS: string;
|
|
24
|
+
AnswerStyle: AnswerStyle;
|
|
24
25
|
/**
|
|
25
26
|
* Entità a cui appartiene il campo. Si tenga presente che sono ammessi anche campi
|
|
26
27
|
* di sola visualizzazione e calcolati, da utilizzare nelle form,
|
|
@@ -34,6 +35,13 @@ export declare class BaseField extends BaseObj {
|
|
|
34
35
|
FieldValue: any;
|
|
35
36
|
FormFormGroup: UntypedFormGroup;
|
|
36
37
|
}
|
|
38
|
+
export declare class AnswerStyle {
|
|
39
|
+
InListView: boolean;
|
|
40
|
+
VisibleIf: string;
|
|
41
|
+
FieldstyleCSS: string;
|
|
42
|
+
LabelstyleCSS: string;
|
|
43
|
+
ColSpanSizes: Array<ColSpanSizesEnum>;
|
|
44
|
+
}
|
|
37
45
|
export declare enum FieldTypeEnum {
|
|
38
46
|
'Campo di testo' = 1,
|
|
39
47
|
'Area di testo' = 2,
|
|
@@ -43,6 +43,15 @@ export declare class UtilityHelperService {
|
|
|
43
43
|
* @returns Restituisce una stringa contenente le classi css da applicare.
|
|
44
44
|
*/
|
|
45
45
|
getFieldSyleClass(field: BaseField): string;
|
|
46
|
+
/**
|
|
47
|
+
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
48
|
+
* Se per il field sono state specificate delle classi allora vengono applcate quelle, altrimenti vengono usate
|
|
49
|
+
* delle classi di default.
|
|
50
|
+
* @param field BaseField da visualizzare.
|
|
51
|
+
* @returns Restituisce una stringa contenente le classi css da applicare.
|
|
52
|
+
*/
|
|
53
|
+
getFieldAnswerStyleClass(field: BaseField): string;
|
|
54
|
+
private getDefaultStyleClass;
|
|
46
55
|
/**
|
|
47
56
|
* Metodo per creare il FormGroup che rappresenta una Form a partire dai suoi BaseField.
|
|
48
57
|
* @param formFields Lista dei BaseField che compongono la form.
|