@eqproject/eqp-dynamic-module 2.0.1 → 2.0.3
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 +31 -23
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +52 -27
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +10 -6
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +3 -3
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +3 -3
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +1 -3
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +1 -1
- package/esm2020/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +1 -1
- package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +2 -2
- package/esm2020/lib/models/dynamicModuleConfig.model.mjs +6 -10
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.model.mjs +5 -5
- package/esm2020/lib/models/dynamicModuleConfiguratorSpecificConfig.model.mjs +1 -1
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +15 -8
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +4 -4
- package/esm2020/lib/models/dynamicModuleRepairConfig.model.mjs +4 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +140 -99
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +140 -99
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +17 -4
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +4 -4
- package/lib/components/private/dynamic-module-field/dynamic-module-field.component.d.ts +2 -2
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +2 -2
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +2 -2
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +2 -2
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +2 -2
- package/lib/models/dynamicModuleCompileConfig.model.d.ts +1 -1
- package/lib/models/dynamicModuleConfig.model.d.ts +9 -9
- package/lib/models/dynamicModuleConfiguratorConfig.model.d.ts +3 -3
- package/lib/models/dynamicModuleConfiguratorSpecificConfig.model.d.ts +0 -1
- package/lib/models/dynamicModuleGeneralConfig.model.d.ts +2 -4
- package/lib/models/dynamicModuleListConfig.model.d.ts +2 -2
- package/lib/models/dynamicModuleRepairConfig.model.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnInit } from "@angular/core";
|
|
2
2
|
import { Context } from "../../../models/context.model";
|
|
3
|
-
import {
|
|
3
|
+
import { DynamicModuleCompileConfig } from "../../../models/dynamicModuleCompileConfig.model";
|
|
4
|
+
import { DynamicModuleGeneralConfig } from "../../../models/dynamicModuleGeneralConfig.model";
|
|
5
|
+
import { DynamicModuleListConfig } from "../../../models/dynamicModuleListConfig.model";
|
|
6
|
+
import { DynamicModuleRepairConfig } from "../../../models/dynamicModuleRepairConfig.model";
|
|
4
7
|
import { DynamicMoDuleViewModeEnum } from "../../../models/DynamicMoDuleViewModeEnum";
|
|
5
8
|
import { EndPointConfiguration } from "../../../models/endPointConfiguration.model";
|
|
6
9
|
import { Form, FormTypeEnum } from "../../../models/form.model";
|
|
@@ -9,9 +12,16 @@ import { UtilityHelperService } from "../../../services/utilityHelper.services";
|
|
|
9
12
|
import * as i0 from "@angular/core";
|
|
10
13
|
export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit {
|
|
11
14
|
private utilityHelperService;
|
|
12
|
-
configurations:
|
|
13
|
-
|
|
15
|
+
configurations: DynamicModuleGeneralConfig;
|
|
16
|
+
formID: string;
|
|
14
17
|
starterViewMode: DynamicMoDuleViewModeEnum;
|
|
18
|
+
userID: string;
|
|
19
|
+
showTitle: boolean;
|
|
20
|
+
userMode: boolean;
|
|
21
|
+
showSaveButton: boolean;
|
|
22
|
+
values: Array<Record>;
|
|
23
|
+
FormJSON: string;
|
|
24
|
+
context: Context;
|
|
15
25
|
/**
|
|
16
26
|
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
17
27
|
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
@@ -51,6 +61,9 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
51
61
|
selectedRecord: Record;
|
|
52
62
|
onlyView: boolean;
|
|
53
63
|
viewMode: DynamicMoDuleViewModeEnum;
|
|
64
|
+
dynamicModuleCompileConfig: DynamicModuleCompileConfig;
|
|
65
|
+
dynamicModuleListConfig: DynamicModuleListConfig;
|
|
66
|
+
dynamicModuleRepairConfig: DynamicModuleRepairConfig;
|
|
54
67
|
loader: boolean;
|
|
55
68
|
constructor(utilityHelperService: UtilityHelperService);
|
|
56
69
|
ngOnInit(): Promise<void>;
|
|
@@ -106,5 +119,5 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
106
119
|
onDeleteRecord(record: Record): void;
|
|
107
120
|
onSaveJson(record: string): void;
|
|
108
121
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleComponent, 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>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleComponent, "eqp-dynamic-module", never, { "configurations": "configurations"; "formID": "formID"; "starterViewMode": "starterViewMode"; "userID": "userID"; "showTitle": "showTitle"; "userMode": "userMode"; "showSaveButton": "showSaveButton"; "values": "values"; "FormJSON": "FormJSON"; }, { "saveRecord": "saveRecord"; "deleteRecord": "deleteRecord"; "duplicateRecord": "duplicateRecord"; "SaveJSON": "SaveJSON"; "afterSaveRecord": "afterSaveRecord"; "afterDeleteRecord": "afterDeleteRecord"; "afterDuplicateRecord": "afterDuplicateRecord"; }, never, never, false>;
|
|
110
123
|
}
|
|
@@ -7,7 +7,7 @@ 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 {
|
|
10
|
+
import { DynamicModuleCompileConfig } from '../../../models/dynamicModuleCompileConfig.model';
|
|
11
11
|
import { DynamicModuleConfiguratorConfig } from '../../../models/dynamicModuleConfiguratorConfig.model';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
@@ -15,6 +15,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
15
15
|
private dialog;
|
|
16
16
|
private utilityHelperService;
|
|
17
17
|
configurations: DynamicModuleConfiguratorConfig;
|
|
18
|
+
formID: string;
|
|
18
19
|
loader: boolean;
|
|
19
20
|
/**
|
|
20
21
|
* Token da usare negli endpoint da chiamare per recuperare o salvare i record.
|
|
@@ -34,13 +35,12 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
34
35
|
*/
|
|
35
36
|
baseServerUrl: string;
|
|
36
37
|
context: Context;
|
|
37
|
-
formID: string;
|
|
38
38
|
form: Form;
|
|
39
39
|
orgaID: string;
|
|
40
40
|
UserID: number;
|
|
41
41
|
innerFormManagment: boolean;
|
|
42
42
|
innerFormRef: MatDialogRef<TemplateRef<any>>;
|
|
43
|
-
viewConfig:
|
|
43
|
+
viewConfig: DynamicModuleCompileConfig;
|
|
44
44
|
formFormGroup: UntypedFormGroup;
|
|
45
45
|
formCompleted: boolean;
|
|
46
46
|
previewForm: Form;
|
|
@@ -247,5 +247,5 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
247
247
|
*/
|
|
248
248
|
private reloadActionsOnRecordTable;
|
|
249
249
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleConfiguratorComponent, never>;
|
|
250
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "configurations": "configurations"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; }, never, never, false>;
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "configurations": "configurations"; "formID": "formID"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; }, never, never, false>;
|
|
251
251
|
}
|
|
@@ -2,7 +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 {
|
|
5
|
+
import { DynamicModuleListConfig } from '../../../models/dynamicModuleListConfig.model';
|
|
6
6
|
import { Form } from '../../../models/form.model';
|
|
7
7
|
import { Record } from '../../../models/record.model';
|
|
8
8
|
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
@@ -13,7 +13,7 @@ export declare class DynamicModuleFieldComponent implements OnInit, IBaseFieldCo
|
|
|
13
13
|
form: Form;
|
|
14
14
|
record: Record;
|
|
15
15
|
recordChange: EventEmitter<Record>;
|
|
16
|
-
configList:
|
|
16
|
+
configList: DynamicModuleListConfig;
|
|
17
17
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
18
18
|
selectedInnerForm: Form;
|
|
19
19
|
selectedInnerFormRecord: Record;
|
|
@@ -2,7 +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 {
|
|
5
|
+
import { DynamicModuleListConfig } from '../../../models/dynamicModuleListConfig.model';
|
|
6
6
|
import { Form } from '../../../models/form.model';
|
|
7
7
|
import { Record } from '../../../models/record.model';
|
|
8
8
|
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
@@ -13,7 +13,7 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
|
|
|
13
13
|
form: Form;
|
|
14
14
|
record: Record;
|
|
15
15
|
recordChange: EventEmitter<Record>;
|
|
16
|
-
configList:
|
|
16
|
+
configList: DynamicModuleListConfig;
|
|
17
17
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
18
18
|
selectedInnerForm: Form;
|
|
19
19
|
selectedInnerFormRecord: Record;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { DynamicModuleCompileConfig } from '../../../../models/dynamicModuleCompileConfig.model';
|
|
4
4
|
import { BaseField, FieldTypeEnum } from '../../../../models/baseField.model';
|
|
5
5
|
import { Form, FormScalarTypeEnum } from '../../../../models/form.model';
|
|
6
6
|
import { Record } from '../../../../models/record.model';
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export declare class AddFormRecordComponent implements OnInit {
|
|
11
11
|
private cdr;
|
|
12
12
|
utilityService: UtilityHelperService;
|
|
13
|
-
configurations:
|
|
13
|
+
configurations: DynamicModuleCompileConfig;
|
|
14
14
|
form: Form;
|
|
15
15
|
record: Record;
|
|
16
16
|
onlyView: boolean;
|
package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { ConfigColumn, EqpTableComponent } from '@eqproject/eqp-table';
|
|
|
3
3
|
import { Form } from '../../../../models/form.model';
|
|
4
4
|
import { Record } from '../../../../models/record.model';
|
|
5
5
|
import { listFormRecordActionsDefault } from '../../../../models/listFormRecordActionsDefault';
|
|
6
|
-
import {
|
|
6
|
+
import { DynamicModuleListConfig } from '../../../../models/dynamicModuleListConfig.model';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
9
|
-
configurations:
|
|
9
|
+
configurations: DynamicModuleListConfig;
|
|
10
10
|
form: Form;
|
|
11
11
|
defaultListActions: listFormRecordActionsDefault;
|
|
12
12
|
showTitle: boolean;
|
package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DynamicModuleRepairConfig } from '../../../../models/dynamicModuleRepairConfig.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RepairFormFieldsComponent implements OnInit {
|
|
5
|
-
configurations:
|
|
5
|
+
configurations: DynamicModuleRepairConfig;
|
|
6
6
|
onSaveJson: EventEmitter<string>;
|
|
7
7
|
formulaTextArea: ElementRef<HTMLTextAreaElement>;
|
|
8
8
|
constructor();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
5
|
export declare class DynamicModuleConfig {
|
|
6
|
-
dynamicModuleGeneralConfig:
|
|
7
|
-
dynamicModuleCompileConfig:
|
|
8
|
-
dynamicModuleListConfig:
|
|
9
|
-
dynamicModuleRepairConfig:
|
|
10
|
-
constructor();
|
|
6
|
+
dynamicModuleGeneralConfig: DynamicModuleGeneralConfig;
|
|
7
|
+
dynamicModuleCompileConfig: DynamicModuleCompileConfig;
|
|
8
|
+
dynamicModuleListConfig: DynamicModuleListConfig;
|
|
9
|
+
dynamicModuleRepairConfig: DynamicModuleRepairConfig;
|
|
10
|
+
constructor(general: DynamicModuleGeneralConfig, compile: DynamicModuleCompileConfig, list: DynamicModuleListConfig, repair: DynamicModuleRepairConfig);
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DynamicModuleConfiguratorSpecificConfig } from "./dynamicModuleConfiguratorSpecificConfig.model";
|
|
2
|
-
import {
|
|
2
|
+
import { DynamicModuleGeneralConfig } from "./dynamicModuleGeneralConfig.model";
|
|
3
3
|
export declare class DynamicModuleConfiguratorConfig {
|
|
4
|
-
dynamicModuleGeneralConfig:
|
|
4
|
+
dynamicModuleGeneralConfig: DynamicModuleGeneralConfig;
|
|
5
5
|
dynamicModuleConfiguratorSpecificConfig: DynamicModuleConfiguratorSpecificConfig;
|
|
6
|
-
constructor();
|
|
6
|
+
constructor(general?: DynamicModuleGeneralConfig, specific?: DynamicModuleConfiguratorSpecificConfig);
|
|
7
7
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Context } from "./context.model";
|
|
2
|
-
import { DynamicMoDuleViewModeEnum } from "./DynamicMoDuleViewModeEnum";
|
|
3
2
|
import { EndPointConfiguration } from "./endPointConfiguration.model";
|
|
4
|
-
export declare class
|
|
3
|
+
export declare class DynamicModuleGeneralConfig {
|
|
5
4
|
/**
|
|
6
5
|
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
7
6
|
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
@@ -23,9 +22,8 @@ export declare class dynamicModuleGeneralConfig {
|
|
|
23
22
|
/**
|
|
24
23
|
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
25
24
|
*/
|
|
26
|
-
starterViewMode: DynamicMoDuleViewModeEnum;
|
|
27
25
|
/**
|
|
28
26
|
* Specifica del form da visualizzare DynaForms.ID
|
|
29
27
|
*/
|
|
30
|
-
|
|
28
|
+
constructor(baseServerUrl?: string, userToken?: string, context?: Context, endPointConfiguration?: EndPointConfiguration);
|
|
31
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { listFormRecordActionsDefault } from "./listFormRecordActionsDefault";
|
|
2
2
|
import { Record } from "./record.model";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class DynamicModuleListConfig {
|
|
4
4
|
/**
|
|
5
5
|
* Show/Hide module name in COMPILE/LIST
|
|
6
6
|
*/
|
|
@@ -13,5 +13,5 @@ export declare class dynamicModuleListConfig {
|
|
|
13
13
|
* Lista dei record da mostrare in LIST MODE
|
|
14
14
|
*/
|
|
15
15
|
values: Array<Record>;
|
|
16
|
-
constructor(showTitle?: boolean,
|
|
16
|
+
constructor(showTitle?: boolean, values?: Array<Record>, defaultListActions?: listFormRecordActionsDefault);
|
|
17
17
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './lib/models/dynamicModuleGeneralConfig.model';
|
|
|
26
26
|
export * from './lib/models/dynamicModuleCompileConfig.model';
|
|
27
27
|
export * from './lib/models/dynamicModuleListConfig.model';
|
|
28
28
|
export * from './lib/models/dynamicModuleRepairConfig.model';
|
|
29
|
+
export * from './lib/models/dynamicModuleViewModeEnum';
|
|
29
30
|
export * from './lib/models/endPointConfiguration.model';
|
|
30
31
|
export * from './lib/models/entity.model';
|
|
31
32
|
export * from './lib/models/form.model';
|