@eqproject/eqp-dynamic-module 1.1.8 → 2.0.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/README.md +142 -15
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +144 -87
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +48 -37
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +44 -4
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +9 -3
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +9 -3
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +12 -8
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +33 -14
- package/esm2020/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +8 -7
- package/esm2020/lib/models/DynamicMoDuleViewModeEnum.mjs +7 -0
- package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +9 -0
- package/esm2020/lib/models/dynamicModuleConfig.model.mjs +13 -0
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.model.mjs +9 -0
- package/esm2020/lib/models/dynamicModuleConfiguratorSpecificConfig.model.mjs +10 -0
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +29 -0
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +17 -0
- package/esm2020/lib/models/dynamicModuleRepairConfig.model.mjs +9 -0
- package/esm2020/lib/models/endPointConfiguration.model.mjs +1 -1
- package/esm2020/lib/models/form.model.mjs +1 -1
- package/esm2020/lib/models/listFormRecordActionsDefault.mjs +9 -0
- package/esm2020/lib/models/record.model.mjs +1 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +11 -1
- package/esm2020/lib/services/voice-recognition.service.mjs +32 -26
- package/esm2020/public-api.mjs +8 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +442 -185
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +428 -175
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +18 -19
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +19 -13
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +8 -0
- package/lib/components/private/dynamic-module-field/dynamic-module-field.component.d.ts +2 -0
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +2 -0
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +6 -3
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +6 -3
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +3 -2
- package/lib/models/DynamicMoDuleViewModeEnum.d.ts +5 -0
- package/lib/models/dynamicModuleCompileConfig.model.d.ts +19 -0
- package/lib/models/dynamicModuleConfig.model.d.ts +11 -0
- package/lib/models/dynamicModuleConfiguratorConfig.model.d.ts +7 -0
- package/lib/models/dynamicModuleConfiguratorSpecificConfig.model.d.ts +11 -0
- package/lib/models/dynamicModuleGeneralConfig.model.d.ts +31 -0
- package/lib/models/dynamicModuleListConfig.model.d.ts +17 -0
- package/lib/models/dynamicModuleRepairConfig.model.d.ts +3 -0
- package/lib/models/endPointConfiguration.model.d.ts +2 -0
- package/lib/models/form.model.d.ts +1 -0
- package/lib/models/listFormRecordActionsDefault.d.ts +7 -0
- package/lib/models/record.model.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, OnInit } from
|
|
2
|
-
import { Context } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { Context } from "../../../models/context.model";
|
|
3
|
+
import { DynamicModuleConfig } from "../../../models/dynamicModuleConfig.model";
|
|
4
|
+
import { DynamicMoDuleViewModeEnum } from "../../../models/DynamicMoDuleViewModeEnum";
|
|
5
|
+
import { EndPointConfiguration } from "../../../models/endPointConfiguration.model";
|
|
6
|
+
import { Form, FormTypeEnum } from "../../../models/form.model";
|
|
7
|
+
import { Record } from "../../../models/record.model";
|
|
8
|
+
import { UtilityHelperService } from "../../../services/utilityHelper.services";
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit {
|
|
9
11
|
private utilityHelperService;
|
|
12
|
+
configurations: DynamicModuleConfig;
|
|
10
13
|
context: Context;
|
|
11
|
-
|
|
12
|
-
formID: string;
|
|
13
|
-
userID: string;
|
|
14
|
-
repairMode: boolean;
|
|
15
|
-
values: Array<Record>;
|
|
16
|
-
showButtons: boolean;
|
|
17
|
-
showTitle: boolean;
|
|
18
|
-
viewMode: FormTypeEnum;
|
|
19
|
-
FormJSON: string;
|
|
14
|
+
starterViewMode: DynamicMoDuleViewModeEnum;
|
|
20
15
|
/**
|
|
21
16
|
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
22
17
|
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
@@ -50,13 +45,17 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
50
45
|
afterDeleteRecord: EventEmitter<Record>;
|
|
51
46
|
afterDuplicateRecord: EventEmitter<Record>;
|
|
52
47
|
form: Form;
|
|
48
|
+
lastform: Form;
|
|
53
49
|
FormTypeEnum: typeof FormTypeEnum;
|
|
50
|
+
DynamicMoDuleViewModeEnum: typeof DynamicMoDuleViewModeEnum;
|
|
54
51
|
selectedRecord: Record;
|
|
55
52
|
onlyView: boolean;
|
|
53
|
+
viewMode: DynamicMoDuleViewModeEnum;
|
|
54
|
+
loader: boolean;
|
|
56
55
|
constructor(utilityHelperService: UtilityHelperService);
|
|
57
|
-
ngOnInit(): void
|
|
56
|
+
ngOnInit(): Promise<void>;
|
|
58
57
|
ngAfterViewInit(): void;
|
|
59
|
-
getFormByID(): void;
|
|
58
|
+
getFormByID(id?: string): void;
|
|
60
59
|
/**
|
|
61
60
|
* Metodo per configurare gli endpoint da usare di default a partire dall'url base del server
|
|
62
61
|
* a cui si deve connettere e al token da passare per autenticarsi.
|
|
@@ -70,7 +69,7 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
70
69
|
* La risposta della chiamata deve essere un array di oggetti di tipo "DynRecord"
|
|
71
70
|
* a partire dai quali vengono ricreati i Record usati nel client.
|
|
72
71
|
*/
|
|
73
|
-
getRecordsByFormID(): void
|
|
72
|
+
getRecordsByFormID(): Promise<void>;
|
|
74
73
|
/**
|
|
75
74
|
* Metodo invocato quando si vuole aggiungere, visualizzare o modificare un record.
|
|
76
75
|
* Se l'evento è null vuol dire che stiamo aggiungendo un nuovo record altrimenti siamo in modifica
|
|
@@ -107,5 +106,5 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
107
106
|
onDeleteRecord(record: Record): void;
|
|
108
107
|
onSaveJson(record: string): void;
|
|
109
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleComponent, "eqp-dynamic-module", never, { "
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleComponent, "eqp-dynamic-module", never, { "configurations": "configurations"; }, { "saveRecord": "saveRecord"; "deleteRecord": "deleteRecord"; "duplicateRecord": "duplicateRecord"; "SaveJSON": "SaveJSON"; "afterSaveRecord": "afterSaveRecord"; "afterDeleteRecord": "afterDeleteRecord"; "afterDuplicateRecord": "afterDuplicateRecord"; }, never, never, false>;
|
|
111
110
|
}
|
|
@@ -7,23 +7,15 @@ import { Context } from '../../../models/context.model';
|
|
|
7
7
|
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
8
8
|
import { ActionOnRecord, Form, FormScalarTypeEnum, FormTypeEnum } from '../../../models/form.model';
|
|
9
9
|
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
10
|
+
import { dynamicModuleCompileConfig } from '../../../models/dynamicModuleCompileConfig.model';
|
|
11
|
+
import { DynamicModuleConfiguratorConfig } from '../../../models/dynamicModuleConfiguratorConfig.model';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
12
14
|
private formBuilder;
|
|
13
15
|
private dialog;
|
|
14
16
|
private utilityHelperService;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
formID: string;
|
|
18
|
-
innerFormManagment: boolean;
|
|
19
|
-
orgaID: string;
|
|
20
|
-
innerFormRef: MatDialogRef<TemplateRef<any>>;
|
|
21
|
-
UserID: number;
|
|
22
|
-
/**
|
|
23
|
-
* Url del server da chiamare per recuerare, salvare o eliminare i record.
|
|
24
|
-
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
25
|
-
*/
|
|
26
|
-
baseServerUrl: string;
|
|
17
|
+
configurations: DynamicModuleConfiguratorConfig;
|
|
18
|
+
loader: boolean;
|
|
27
19
|
/**
|
|
28
20
|
* Token da usare negli endpoint da chiamare per recuperare o salvare i record.
|
|
29
21
|
* Usato solo se viene popolata la proprietà "baseServerUrl".
|
|
@@ -36,6 +28,19 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
36
28
|
* viene lasciata null e non viene eseguita nessuna chiamata al server.
|
|
37
29
|
*/
|
|
38
30
|
endPointConfiguration: EndPointConfiguration;
|
|
31
|
+
/**
|
|
32
|
+
* Url del server da chiamare per recuerare, salvare o eliminare i record.
|
|
33
|
+
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
34
|
+
*/
|
|
35
|
+
baseServerUrl: string;
|
|
36
|
+
context: Context;
|
|
37
|
+
formID: string;
|
|
38
|
+
form: Form;
|
|
39
|
+
orgaID: string;
|
|
40
|
+
UserID: number;
|
|
41
|
+
innerFormManagment: boolean;
|
|
42
|
+
innerFormRef: MatDialogRef<TemplateRef<any>>;
|
|
43
|
+
viewConfig: dynamicModuleCompileConfig;
|
|
39
44
|
formFormGroup: UntypedFormGroup;
|
|
40
45
|
formCompleted: boolean;
|
|
41
46
|
previewForm: Form;
|
|
@@ -58,6 +63,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
58
63
|
indexSelectedInnerForm: number;
|
|
59
64
|
dialogInnerFormRef: MatDialogRef<TemplateRef<any>>;
|
|
60
65
|
dialogInnerForm: TemplateRef<any>;
|
|
66
|
+
innerFormConfig: DynamicModuleConfiguratorConfig;
|
|
61
67
|
actionsOnRecordColumns: Array<ConfigColumn>;
|
|
62
68
|
actionsOnRecordTable: EqpTableComponent;
|
|
63
69
|
selectedAction: ActionOnRecord;
|
|
@@ -241,5 +247,5 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
241
247
|
*/
|
|
242
248
|
private reloadActionsOnRecordTable;
|
|
243
249
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleConfiguratorComponent, never>;
|
|
244
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "configurations": "configurations"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; }, never, never, false>;
|
|
245
251
|
}
|
|
@@ -90,6 +90,14 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
90
90
|
questionPoll(control: FormControl): {
|
|
91
91
|
[s: string]: boolean;
|
|
92
92
|
};
|
|
93
|
+
stringSanitaizedValidator(control: FormControl): {
|
|
94
|
+
[s: string]: boolean;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Metodo chiamato dai mat-error per prendere gli errori generati relativi al campo.
|
|
98
|
+
* @param control è il nome del GroupControl di cui leggere se ci sono errori
|
|
99
|
+
*/
|
|
100
|
+
getFormValidationErrors(control: string): string;
|
|
93
101
|
/**
|
|
94
102
|
* Metodo chiamato quando cambia il FieldType del BaseField che si sta aggiungendo/modificando.
|
|
95
103
|
* Ricrea l'oggetto field popolando solo le proprietà del BaseField inserite dall'utente
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { IBaseFieldComponent } from '../../../interfaces/iBaseFieldComponent.interface';
|
|
4
4
|
import { BaseField, FieldTypeEnum } from '../../../models/baseField.model';
|
|
5
|
+
import { dynamicModuleListConfig } from '../../../models/dynamicModuleListConfig.model';
|
|
5
6
|
import { Form } from '../../../models/form.model';
|
|
6
7
|
import { Record } from '../../../models/record.model';
|
|
7
8
|
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
@@ -12,6 +13,7 @@ export declare class DynamicModuleFieldComponent implements OnInit, IBaseFieldCo
|
|
|
12
13
|
form: Form;
|
|
13
14
|
record: Record;
|
|
14
15
|
recordChange: EventEmitter<Record>;
|
|
16
|
+
configList: dynamicModuleListConfig;
|
|
15
17
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
16
18
|
selectedInnerForm: Form;
|
|
17
19
|
selectedInnerFormRecord: Record;
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { IBaseFieldComponent } from '../../../interfaces/iBaseFieldComponent.interface';
|
|
4
4
|
import { BaseField, FieldTypeEnum } from '../../../models/baseField.model';
|
|
5
|
+
import { dynamicModuleListConfig } from '../../../models/dynamicModuleListConfig.model';
|
|
5
6
|
import { Form } from '../../../models/form.model';
|
|
6
7
|
import { Record } from '../../../models/record.model';
|
|
7
8
|
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
@@ -12,6 +13,7 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
|
|
|
12
13
|
form: Form;
|
|
13
14
|
record: Record;
|
|
14
15
|
recordChange: EventEmitter<Record>;
|
|
16
|
+
configList: dynamicModuleListConfig;
|
|
15
17
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
16
18
|
selectedInnerForm: Form;
|
|
17
19
|
selectedInnerFormRecord: Record;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { dynamicModuleCompileConfig } from '../../../../models/dynamicModuleCompileConfig.model';
|
|
3
4
|
import { BaseField, FieldTypeEnum } from '../../../../models/baseField.model';
|
|
4
5
|
import { Form, FormScalarTypeEnum } from '../../../../models/form.model';
|
|
5
6
|
import { Record } from '../../../../models/record.model';
|
|
@@ -9,11 +10,13 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class AddFormRecordComponent implements OnInit {
|
|
10
11
|
private cdr;
|
|
11
12
|
utilityService: UtilityHelperService;
|
|
12
|
-
|
|
13
|
-
showButtons: boolean;
|
|
13
|
+
configurations: dynamicModuleCompileConfig;
|
|
14
14
|
form: Form;
|
|
15
15
|
record: Record;
|
|
16
16
|
onlyView: boolean;
|
|
17
|
+
showTitle: boolean;
|
|
18
|
+
showSaveButton: boolean;
|
|
19
|
+
userMode: boolean;
|
|
17
20
|
formForm: UntypedFormGroup;
|
|
18
21
|
fieldGroups: {
|
|
19
22
|
[key: string]: Array<BaseField>;
|
|
@@ -51,5 +54,5 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
51
54
|
*/
|
|
52
55
|
private createFieldGroups;
|
|
53
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddFormRecordComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "configurations": "configurations"; "form": "form"; "record": "record"; "onlyView": "onlyView"; }, { "saveRecordEvent": "saveRecordEvent"; }, never, never, false>;
|
|
55
58
|
}
|
package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts
CHANGED
|
@@ -2,11 +2,14 @@ import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { ConfigColumn, EqpTableComponent } from '@eqproject/eqp-table';
|
|
3
3
|
import { Form } from '../../../../models/form.model';
|
|
4
4
|
import { Record } from '../../../../models/record.model';
|
|
5
|
+
import { listFormRecordActionsDefault } from '../../../../models/listFormRecordActionsDefault';
|
|
6
|
+
import { dynamicModuleListConfig } from '../../../../models/dynamicModuleListConfig.model';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
7
|
-
|
|
9
|
+
configurations: dynamicModuleListConfig;
|
|
8
10
|
form: Form;
|
|
9
|
-
|
|
11
|
+
defaultListActions: listFormRecordActionsDefault;
|
|
12
|
+
showTitle: boolean;
|
|
10
13
|
tableRecords: EqpTableComponent;
|
|
11
14
|
columns: ConfigColumn[];
|
|
12
15
|
onAddViewEditRecord: EventEmitter<{
|
|
@@ -63,5 +66,5 @@ export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
|
63
66
|
*/
|
|
64
67
|
private reloadTables;
|
|
65
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListFormRecordComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListFormRecordComponent, "list-form-record", never, { "
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListFormRecordComponent, "list-form-record", never, { "configurations": "configurations"; "form": "form"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onDuplicateRecord": "onDuplicateRecord"; }, never, never, false>;
|
|
67
70
|
}
|
package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { dynamicModuleRepairConfig } from '../../../../models/dynamicModuleRepairConfig.model';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class RepairFormFieldsComponent implements OnInit {
|
|
4
|
-
|
|
5
|
+
configurations: dynamicModuleRepairConfig;
|
|
5
6
|
onSaveJson: EventEmitter<string>;
|
|
6
7
|
formulaTextArea: ElementRef<HTMLTextAreaElement>;
|
|
7
8
|
constructor();
|
|
@@ -9,5 +10,5 @@ export declare class RepairFormFieldsComponent implements OnInit {
|
|
|
9
10
|
printTheJSONInPrettyFormat(): void;
|
|
10
11
|
saveJson(): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<RepairFormFieldsComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RepairFormFieldsComponent, "repair-form-fields", never, { "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RepairFormFieldsComponent, "repair-form-fields", never, { "configurations": "configurations"; }, { "onSaveJson": "onSaveJson"; }, never, never, false>;
|
|
13
14
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class dynamicModuleCompileConfig {
|
|
2
|
+
/**
|
|
3
|
+
* Show/Hide module name in COMPILE/LIST
|
|
4
|
+
*/
|
|
5
|
+
showTitle: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* ID dell'utente che compila il Form
|
|
8
|
+
*/
|
|
9
|
+
userMode: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Show/Hide form save button
|
|
12
|
+
*/
|
|
13
|
+
showSaveButton: any;
|
|
14
|
+
/**
|
|
15
|
+
* Set id for save
|
|
16
|
+
*/
|
|
17
|
+
userID: string;
|
|
18
|
+
constructor(showTitle?: boolean, userMode?: boolean, showSaveButton?: boolean, userID?: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { dynamicModuleCompileConfig } from "./dynamicModuleCompileConfig.model";
|
|
2
|
+
import { dynamicModuleGeneralConfig } from "./dynamicModuleGeneralConfig.model";
|
|
3
|
+
import { dynamicModuleListConfig } from "./dynamicModuleListConfig.model";
|
|
4
|
+
import { dynamicModuleRepairConfig } from "./dynamicModuleRepairConfig.model";
|
|
5
|
+
export declare class DynamicModuleConfig {
|
|
6
|
+
dynamicModuleGeneralConfig: dynamicModuleGeneralConfig;
|
|
7
|
+
dynamicModuleCompileConfig: dynamicModuleCompileConfig;
|
|
8
|
+
dynamicModuleListConfig: dynamicModuleListConfig;
|
|
9
|
+
dynamicModuleRepairConfig: dynamicModuleRepairConfig;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DynamicModuleConfiguratorSpecificConfig } from "./dynamicModuleConfiguratorSpecificConfig.model";
|
|
2
|
+
import { dynamicModuleGeneralConfig } from "./dynamicModuleGeneralConfig.model";
|
|
3
|
+
export declare class DynamicModuleConfiguratorConfig {
|
|
4
|
+
dynamicModuleGeneralConfig: dynamicModuleGeneralConfig;
|
|
5
|
+
dynamicModuleConfiguratorSpecificConfig: DynamicModuleConfiguratorSpecificConfig;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
3
|
+
import { Form } from "./form.model";
|
|
4
|
+
export declare class DynamicModuleConfiguratorSpecificConfig {
|
|
5
|
+
form: Form;
|
|
6
|
+
orgaID: string;
|
|
7
|
+
UserID: number;
|
|
8
|
+
innerFormManagment: boolean;
|
|
9
|
+
innerFormRef: MatDialogRef<TemplateRef<any>>;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Context } from "./context.model";
|
|
2
|
+
import { DynamicMoDuleViewModeEnum } from "./DynamicMoDuleViewModeEnum";
|
|
3
|
+
import { EndPointConfiguration } from "./endPointConfiguration.model";
|
|
4
|
+
export declare class dynamicModuleGeneralConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
7
|
+
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
8
|
+
*/
|
|
9
|
+
baseServerUrl: string;
|
|
10
|
+
/**
|
|
11
|
+
* Token da usare negli endpoint da chiamare per recuperare o salvare i record.
|
|
12
|
+
* Usato solo se viene popolata la proprietà "baseServerUrl".
|
|
13
|
+
*/
|
|
14
|
+
userToken: string;
|
|
15
|
+
/**
|
|
16
|
+
* Configurazione degli endpoint da chiamare per recuperare o salvare i dati.
|
|
17
|
+
* Può essere definita dall'utente oppure lasciata null, viene popolata con dei
|
|
18
|
+
* valori di default se viene valorizzata la proprietà "baseServerUrl" altrimenti
|
|
19
|
+
* viene lasciata null e non viene eseguita nessuna chiamata al server.
|
|
20
|
+
*/
|
|
21
|
+
endPointConfiguration: EndPointConfiguration;
|
|
22
|
+
context: Context;
|
|
23
|
+
/**
|
|
24
|
+
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
25
|
+
*/
|
|
26
|
+
starterViewMode: DynamicMoDuleViewModeEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Specifica del form da visualizzare DynaForms.ID
|
|
29
|
+
*/
|
|
30
|
+
formID: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { listFormRecordActionsDefault } from "./listFormRecordActionsDefault";
|
|
2
|
+
import { Record } from "./record.model";
|
|
3
|
+
export declare class dynamicModuleListConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Show/Hide module name in COMPILE/LIST
|
|
6
|
+
*/
|
|
7
|
+
showTitle: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Lista delle azioni di default da mostrare per visualizzare/modificare/duplicare/eliminare in LIST MODE
|
|
10
|
+
*/
|
|
11
|
+
defaultListActions: listFormRecordActionsDefault;
|
|
12
|
+
/**
|
|
13
|
+
* Lista dei record da mostrare in LIST MODE
|
|
14
|
+
*/
|
|
15
|
+
values: Array<Record>;
|
|
16
|
+
constructor(showTitle?: boolean, defaultListActions?: listFormRecordActionsDefault, values?: Array<Record>);
|
|
17
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare class EndPointConfiguration {
|
|
2
2
|
Records: {
|
|
3
3
|
GetByFormIDEndPoint?: EndPointData;
|
|
4
|
+
GetAllByEntAndUserIDEndPoint?: EndPointData;
|
|
4
5
|
GetByIDEndPoint?: EndPointData;
|
|
5
6
|
SaveEndPoint?: EndPointData;
|
|
6
7
|
DuplicateEndPoint?: EndPointData;
|
|
@@ -9,6 +10,7 @@ export declare class EndPointConfiguration {
|
|
|
9
10
|
};
|
|
10
11
|
Forms: {
|
|
11
12
|
GetByIDEndPoint: EndPointData;
|
|
13
|
+
GetByIDAndVersionEndPoint: EndPointData;
|
|
12
14
|
SaveEndPoint: EndPointData;
|
|
13
15
|
};
|
|
14
16
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export declare class Record {
|
|
2
2
|
ID: string;
|
|
3
3
|
EntID: string;
|
|
4
|
+
Version: number;
|
|
4
5
|
userID: string;
|
|
5
6
|
[key: string]: any;
|
|
6
7
|
}
|
|
7
8
|
export declare class DynRecord {
|
|
8
9
|
ID: string;
|
|
9
10
|
EntID: string;
|
|
11
|
+
Version: number;
|
|
10
12
|
userID: string;
|
|
11
13
|
Values: {
|
|
12
14
|
[key: string]: any;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -19,6 +19,13 @@ export * from './lib/interfaces/iRootObject.interface';
|
|
|
19
19
|
export * from './lib/models/baseField.model';
|
|
20
20
|
export * from './lib/models/baseObj.model';
|
|
21
21
|
export * from './lib/models/context.model';
|
|
22
|
+
export * from './lib/models/dynamicModuleConfiguratorConfig.model';
|
|
23
|
+
export * from './lib/models/dynamicModuleConfiguratorSpecificConfig.model';
|
|
24
|
+
export * from './lib/models/dynamicModuleConfig.model';
|
|
25
|
+
export * from './lib/models/dynamicModuleGeneralConfig.model';
|
|
26
|
+
export * from './lib/models/dynamicModuleCompileConfig.model';
|
|
27
|
+
export * from './lib/models/dynamicModuleListConfig.model';
|
|
28
|
+
export * from './lib/models/dynamicModuleRepairConfig.model';
|
|
22
29
|
export * from './lib/models/endPointConfiguration.model';
|
|
23
30
|
export * from './lib/models/entity.model';
|
|
24
31
|
export * from './lib/models/form.model';
|