@eqproject/eqp-dynamic-module 2.3.18 → 2.3.19
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 +5 -3
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +7 -7
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +25 -5
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +23 -15
- package/esm2020/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +4 -3
- package/esm2020/lib/components/private/graphs/graphs.component.mjs +166 -0
- package/esm2020/lib/eqp-dynamic-module.module.mjs +6 -3
- package/esm2020/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +3 -2
- package/esm2020/lib/models/dynamicModuleViewModeEnum.mjs +2 -1
- package/esm2020/lib/models/graph.model.mjs +15 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +261 -58
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +259 -58
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +1 -0
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +4 -1
- package/lib/components/private/graphs/graphs.component.d.ts +46 -0
- package/lib/eqp-dynamic-module.module.d.ts +11 -10
- package/lib/models/dynamicModuleListFormRecordActionsDefault.d.ts +2 -1
- package/lib/models/dynamicModuleViewModeEnum.d.ts +2 -1
- package/lib/models/graph.model.d.ts +15 -0
- package/package.json +1 -1
|
@@ -80,6 +80,7 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
80
80
|
* Metodo per creare il FormGroup che rappresenta la form.
|
|
81
81
|
*/
|
|
82
82
|
private createHTMLreadableValues;
|
|
83
|
+
private stringToValuePairs;
|
|
83
84
|
private getResponseValues;
|
|
84
85
|
private getResponseTemplate;
|
|
85
86
|
private replaceTemplatePlaceholdersWithValues;
|
|
@@ -8,6 +8,7 @@ import { DynamicModuleListConfig } from "../../../../models/dynamicModuleListCon
|
|
|
8
8
|
import { DynamicModuleCompileConfig } from "./../../../..//models/dynamicModuleCompileConfig.model";
|
|
9
9
|
import { EndPointConfiguration } from "./../../../../models/endPointConfiguration.model";
|
|
10
10
|
import { MatDialog, MatDialogRef } from "@angular/material/dialog";
|
|
11
|
+
import { Router } from "@angular/router";
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
type Panel = {
|
|
13
14
|
record: Record;
|
|
@@ -19,6 +20,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
19
20
|
private utilityHelperService;
|
|
20
21
|
private changeDetector;
|
|
21
22
|
private dialog;
|
|
23
|
+
private router;
|
|
22
24
|
debugMode: boolean;
|
|
23
25
|
debugLog(message: string, element?: any): void;
|
|
24
26
|
configurations: DynamicModuleListConfig;
|
|
@@ -56,7 +58,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
56
58
|
onDeleteRecord: EventEmitter<Record>;
|
|
57
59
|
saveRecordEvent: EventEmitter<Record>;
|
|
58
60
|
afterSaveRecordEvent: EventEmitter<Record>;
|
|
59
|
-
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, dialog: MatDialog);
|
|
61
|
+
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, dialog: MatDialog, router: Router);
|
|
60
62
|
ngOnInit(): void;
|
|
61
63
|
ngOnChanges(changes: SimpleChanges): void;
|
|
62
64
|
onOpening(indice: number): void;
|
|
@@ -134,6 +136,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
134
136
|
onlyView: boolean;
|
|
135
137
|
}): void;
|
|
136
138
|
openAddPopup(): void;
|
|
139
|
+
openGraphs(): void;
|
|
137
140
|
onAddSaveRecord(record: Record): void;
|
|
138
141
|
onAddAfterSaveRecord(record: Record): void;
|
|
139
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewFormRecordComponent, never>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Form } from "../../../models/form.model";
|
|
3
|
+
import { DynamicModuleCompileConfig } from '../../../models/dynamicModuleCompileConfig.model';
|
|
4
|
+
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
5
|
+
import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
6
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
7
|
+
import { GraphField } from '../../../models/graph.model';
|
|
8
|
+
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
9
|
+
import { DynRecord } from '../../../models/record.model';
|
|
10
|
+
import { DatePipe } from '@angular/common';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class GraphsComponent implements OnInit {
|
|
13
|
+
private utilityHelperService;
|
|
14
|
+
private datePipe;
|
|
15
|
+
debugMode: boolean;
|
|
16
|
+
debugLog(message: string, element?: any): void;
|
|
17
|
+
configurations: DynamicModuleCompileConfig;
|
|
18
|
+
endPointConfiguration: EndPointConfiguration;
|
|
19
|
+
userID: string;
|
|
20
|
+
formID: string;
|
|
21
|
+
form: Form;
|
|
22
|
+
pickerModeEnum: typeof PickerModeEnum;
|
|
23
|
+
fieldFormGroup: UntypedFormGroup;
|
|
24
|
+
loaded: boolean;
|
|
25
|
+
generated: boolean;
|
|
26
|
+
minperiod: Date;
|
|
27
|
+
maxperiod: Date;
|
|
28
|
+
minperiodS: string;
|
|
29
|
+
maxperiodS: string;
|
|
30
|
+
fields: Array<GraphField>;
|
|
31
|
+
selectedFields: Array<GraphField>;
|
|
32
|
+
answers: Array<DynRecord>;
|
|
33
|
+
eligibleAnswers: Array<DynRecord>;
|
|
34
|
+
constructor(utilityHelperService: UtilityHelperService, datePipe: DatePipe);
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Metodo per recuperare tutti i record salvati per una particolare Form.
|
|
38
|
+
* La chiamata viene effettuata solo se è stato configurato l'endPoint da usare.
|
|
39
|
+
*/
|
|
40
|
+
getFormByID(): void;
|
|
41
|
+
getRecordsByFormID(): Promise<void>;
|
|
42
|
+
generateGraph(): void;
|
|
43
|
+
getEligibleAnswers(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraphsComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraphsComponent, "graphs", never, { "debugMode": "debugMode"; "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; }, {}, never, never, false, never>;
|
|
46
|
+
}
|
|
@@ -31,17 +31,18 @@ import * as i29 from "./components/private/form-statistics/filter-templates/text
|
|
|
31
31
|
import * as i30 from "./components/private/form-statistics/filter-templates/attachment-filter-template/attachment-filter-template.component";
|
|
32
32
|
import * as i31 from "./components/private/form-statistics/filter-templates/image-filter-template/image-filter-template.component";
|
|
33
33
|
import * as i32 from "./components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component";
|
|
34
|
-
import * as i33 from "./
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "@angular/
|
|
37
|
-
import * as i36 from "@
|
|
38
|
-
import * as i37 from "@eqproject/eqp-
|
|
39
|
-
import * as i38 from "@eqproject/eqp-
|
|
40
|
-
import * as i39 from "@eqproject/eqp-
|
|
41
|
-
import * as i40 from "@eqproject/eqp-
|
|
42
|
-
import * as i41 from "@eqproject/eqp-
|
|
34
|
+
import * as i33 from "./components/private/graphs/graphs.component";
|
|
35
|
+
import * as i34 from "./modules/material.module";
|
|
36
|
+
import * as i35 from "@angular/forms";
|
|
37
|
+
import * as i36 from "@angular/common";
|
|
38
|
+
import * as i37 from "@eqproject/eqp-table";
|
|
39
|
+
import * as i38 from "@eqproject/eqp-attachments";
|
|
40
|
+
import * as i39 from "@eqproject/eqp-select";
|
|
41
|
+
import * as i40 from "@eqproject/eqp-datetimepicker";
|
|
42
|
+
import * as i41 from "@eqproject/eqp-filters";
|
|
43
|
+
import * as i42 from "@eqproject/eqp-numeric";
|
|
43
44
|
export declare class EqpDynamicModuleModule {
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
45
|
-
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
|
|
46
|
+
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.MaterialModule, typeof i35.FormsModule, typeof i36.CommonModule, typeof i35.ReactiveFormsModule, typeof i37.EqpTableModule, typeof i38.EqpAttachmentsModule, typeof i39.EqpSelectModule, typeof i40.EqpDatetimepickerModule, typeof i41.EqpFiltersModule, typeof i42.EqpNumericModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent]>;
|
|
46
47
|
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
47
48
|
}
|
|
@@ -4,5 +4,6 @@ export declare class DynamicModuleListFormRecordActionsDefault {
|
|
|
4
4
|
edit: boolean;
|
|
5
5
|
duplicate: boolean;
|
|
6
6
|
delete: boolean;
|
|
7
|
-
|
|
7
|
+
graphs: boolean;
|
|
8
|
+
constructor(add?: boolean, view?: boolean, edit?: boolean, duplicate?: boolean, del?: boolean, graphs?: boolean);
|
|
8
9
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classe base che implementa la valorizzazione dell'ID (se null) con una nuova GUID
|
|
3
|
+
* in creazione dell'oggetto.
|
|
4
|
+
* Per scelta architetturale, visto che non possiamo assumere la persistenza su DB relazionale o su NOSQL, ogni
|
|
5
|
+
* oggetto della configurazione viene persistito, e gestito con ID di tipo stringa creato da una GUID.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GraphField {
|
|
8
|
+
Name: string;
|
|
9
|
+
Coords: Array<Coords>;
|
|
10
|
+
Visible: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class Coords {
|
|
13
|
+
x: any;
|
|
14
|
+
y: number;
|
|
15
|
+
}
|