@eqproject/eqp-dynamic-module 2.0.2 → 2.0.4
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 +5 -5
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +44 -27
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +3 -3
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +5 -5
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +5 -5
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +5 -4
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +5 -5
- package/esm2020/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +1 -1
- package/esm2020/lib/models/DynamicModuleViewModeEnum.mjs +7 -0
- package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +4 -4
- package/esm2020/lib/models/dynamicModuleConfig.model.mjs +1 -1
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.model.mjs +3 -3
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +3 -3
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +4 -8
- package/esm2020/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +10 -0
- package/esm2020/lib/models/dynamicModuleRepairConfig.model.mjs +2 -2
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +76 -55
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +76 -55
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +16 -14
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +2 -2
- 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 +3 -2
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +4 -4
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +2 -2
- package/lib/models/DynamicModuleViewModeEnum.d.ts +5 -0
- package/lib/models/dynamicModuleCompileConfig.model.d.ts +6 -6
- package/lib/models/dynamicModuleConfig.model.d.ts +9 -9
- package/lib/models/dynamicModuleConfiguratorConfig.model.d.ts +3 -3
- package/lib/models/dynamicModuleGeneralConfig.model.d.ts +1 -1
- package/lib/models/dynamicModuleListConfig.model.d.ts +4 -4
- package/lib/models/dynamicModuleListFormRecordActionsDefault.d.ts +8 -0
- package/lib/models/dynamicModuleRepairConfig.model.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/esm2020/lib/models/DynamicMoDuleViewModeEnum.mjs +0 -7
- package/esm2020/lib/models/listFormRecordActionsDefault.mjs +0 -9
- package/lib/models/DynamicMoDuleViewModeEnum.d.ts +0 -5
- package/lib/models/listFormRecordActionsDefault.d.ts +0 -7
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class
|
|
3
|
-
constructor(showTitle = true, values = null, defaultListActions = new
|
|
1
|
+
import { DynamicModuleListFormRecordActionsDefault } from "./dynamicModuleListFormRecordActionsDefault";
|
|
2
|
+
export class DynamicModuleListConfig {
|
|
3
|
+
constructor(showTitle = true, values = null, defaultListActions = new DynamicModuleListFormRecordActionsDefault()) {
|
|
4
4
|
/**
|
|
5
5
|
* Show/Hide module name in COMPILE/LIST
|
|
6
6
|
*/
|
|
7
7
|
this.showTitle = true;
|
|
8
|
-
/**
|
|
9
|
-
* Lista delle azioni di default da mostrare per visualizzare/modificare/duplicare/eliminare in LIST MODE
|
|
10
|
-
*/
|
|
11
|
-
this.defaultListActions = new listFormRecordActionsDefault();
|
|
12
8
|
this.showTitle = showTitle;
|
|
13
9
|
this.values = values;
|
|
14
10
|
this.defaultListActions = defaultListActions;
|
|
15
11
|
}
|
|
16
12
|
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pY01vZHVsZUxpc3RDb25maWcubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lcXAtZHluYW1pYy1tb2R1bGUvc3JjL2xpYi9tb2RlbHMvZHluYW1pY01vZHVsZUxpc3RDb25maWcubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHlDQUF5QyxFQUFFLE1BQU0sNkNBQTZDLENBQUM7QUFHeEcsTUFBTSxPQUFPLHVCQUF1QjtJQWdCbEMsWUFDRSxZQUFxQixJQUFJLEVBQ3pCLFNBQXdCLElBQUksRUFDNUIscUJBQWdFLElBQUkseUNBQXlDLEVBQUU7UUFsQmpIOztXQUVHO1FBQ0gsY0FBUyxHQUFZLElBQUksQ0FBQztRQWlCeEIsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFTLENBQUM7UUFDM0IsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLGtCQUFrQixHQUFHLGtCQUFrQixDQUFDO0lBQy9DLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IER5bmFtaWNNb2R1bGVMaXN0Rm9ybVJlY29yZEFjdGlvbnNEZWZhdWx0IH0gZnJvbSBcIi4vZHluYW1pY01vZHVsZUxpc3RGb3JtUmVjb3JkQWN0aW9uc0RlZmF1bHRcIjtcclxuaW1wb3J0IHsgUmVjb3JkIH0gZnJvbSBcIi4vcmVjb3JkLm1vZGVsXCI7XHJcblx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
1
|
+
export class DynamicModuleListFormRecordActionsDefault {
|
|
2
|
+
constructor(add = true, view = true, edit = true, duplicate = true, del = true) {
|
|
3
|
+
this.add = add;
|
|
4
|
+
this.view = view;
|
|
5
|
+
this.edit = edit;
|
|
6
|
+
this.duplicate = duplicate;
|
|
7
|
+
this.delete = del;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pY01vZHVsZUxpc3RGb3JtUmVjb3JkQWN0aW9uc0RlZmF1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lcXAtZHluYW1pYy1tb2R1bGUvc3JjL2xpYi9tb2RlbHMvZHluYW1pY01vZHVsZUxpc3RGb3JtUmVjb3JkQWN0aW9uc0RlZmF1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlDQUF5QztJQXNCcEQsWUFBWSxNQUFlLElBQUksRUFBRSxPQUFnQixJQUFJLEVBQUUsT0FBZ0IsSUFBSSxFQUFFLFlBQXFCLElBQUksRUFBRSxNQUFlLElBQUk7UUFDekgsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUE7UUFDZCxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQTtRQUNoQixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQTtRQUNoQixJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsQ0FBQTtRQUMxQixJQUFJLENBQUMsTUFBTSxHQUFHLEdBQUcsQ0FBQTtJQUNuQixDQUFDO0NBRUYiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgRHluYW1pY01vZHVsZUxpc3RGb3JtUmVjb3JkQWN0aW9uc0RlZmF1bHQge1xyXG4gIC8qXHJcbiAgICogcHVsc2FudGUgYWdnaXVuZ2kgaW4gYWx0b1xyXG4gICovXHJcbiAgYWRkOiBib29sZWFuXHJcbiAgLypcclxuICAgKiBwdWxzYW50ZSB2aXN1YWxpenphIG5lbCBtZW51IGRlbGxhIHJpc3Bvc3RhXHJcbiAgKi9cclxuICB2aWV3OiBib29sZWFuXHJcbiAgLypcclxuICAgKiBwdWxzYW50ZSBtb2RpZmljYSBuZWwgbWVudSBkZWxsYSByaXNwb3N0YVxyXG4gICovXHJcbiAgZWRpdDogYm9vbGVhblxyXG4gIC8qXHJcbiAgICogcHVsc2FudGUgZHVwbGljYSBuZWwgbWVudSBkZWxsYSByaXNwb3N0YVxyXG4gICovXHJcbiAgZHVwbGljYXRlOiBib29sZWFuXHJcbiAgLypcclxuICAgKiBwdWxzYW50ZSBlbGltaW5hIG5lbCBtZW51IGRlbGxhIHJpc3Bvc3RhXHJcbiAgKi9cclxuICBkZWxldGU6IGJvb2xlYW5cclxuXHJcbiAgY29uc3RydWN0b3IoYWRkOiBib29sZWFuID0gdHJ1ZSwgdmlldzogYm9vbGVhbiA9IHRydWUsIGVkaXQ6IGJvb2xlYW4gPSB0cnVlLCBkdXBsaWNhdGU6IGJvb2xlYW4gPSB0cnVlLCBkZWw6IGJvb2xlYW4gPSB0cnVlKXtcclxuICAgIHRoaXMuYWRkID0gYWRkXHJcbiAgICB0aGlzLnZpZXcgPSB2aWV3XHJcbiAgICB0aGlzLmVkaXQgPSBlZGl0XHJcbiAgICB0aGlzLmR1cGxpY2F0ZSA9IGR1cGxpY2F0ZVxyXG4gICAgdGhpcy5kZWxldGUgPSBkZWxcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class
|
|
1
|
+
export class DynamicModuleRepairConfig {
|
|
2
2
|
constructor(formJson) {
|
|
3
3
|
/*
|
|
4
4
|
* stringa da passare in REPAIR MODE
|
|
@@ -7,4 +7,4 @@ export class dynamicModuleRepairConfig {
|
|
|
7
7
|
this.FormJSON = formJson;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pY01vZHVsZVJlcGFpckNvbmZpZy5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VxcC1keW5hbWljLW1vZHVsZS9zcmMvbGliL21vZGVscy9keW5hbWljTW9kdWxlUmVwYWlyQ29uZmlnLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyx5QkFBeUI7SUFNcEMsWUFBWSxRQUFnQjtRQUw1Qjs7V0FFRztRQUNILGFBQVEsR0FBVyxFQUFFLENBQUM7UUFHcEIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDM0IsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIER5bmFtaWNNb2R1bGVSZXBhaXJDb25maWcge1xyXG4gIC8qXHJcbiAgICogc3RyaW5nYSBkYSBwYXNzYXJlIGluIFJFUEFJUiBNT0RFXHJcbiAgICovXHJcbiAgRm9ybUpTT046IHN0cmluZyA9IFwiXCI7XHJcblxyXG4gIGNvbnN0cnVjdG9yKGZvcm1Kc29uOiBzdHJpbmcpe1xyXG4gICAgdGhpcy5Gb3JtSlNPTiA9IGZvcm1Kc29uO1xyXG4gIH1cclxufVxyXG4iXX0=
|
package/esm2020/public-api.mjs
CHANGED
|
@@ -29,6 +29,8 @@ export * from './lib/models/dynamicModuleGeneralConfig.model';
|
|
|
29
29
|
export * from './lib/models/dynamicModuleCompileConfig.model';
|
|
30
30
|
export * from './lib/models/dynamicModuleListConfig.model';
|
|
31
31
|
export * from './lib/models/dynamicModuleRepairConfig.model';
|
|
32
|
+
export * from './lib/models/dynamicModuleViewModeEnum';
|
|
33
|
+
export * from './lib/models/dynamicModuleListFormRecordActionsDefault';
|
|
32
34
|
export * from './lib/models/endPointConfiguration.model';
|
|
33
35
|
export * from './lib/models/entity.model';
|
|
34
36
|
export * from './lib/models/form.model';
|
|
@@ -46,4 +48,4 @@ export * from './lib/services/custom-form-validators.service';
|
|
|
46
48
|
export * from './lib/services/eqp-dynamic-module-dialog.service';
|
|
47
49
|
export * from './lib/services/spinner.service';
|
|
48
50
|
export * from './lib/services/utilityHelper.services';
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2VxcC1keW5hbWljLW1vZHVsZS9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYywyRUFBMkUsQ0FBQztBQUMxRixjQUFjLHFHQUFxRyxDQUFDO0FBQ3BILGNBQWMsa0VBQWtFLENBQUM7QUFDakYsY0FBYyw4RUFBOEUsQ0FBQztBQUM3RixjQUFjLHdHQUF3RyxDQUFDO0FBQ3ZILGNBQWMsa0dBQWtHLENBQUM7QUFDakgsY0FBYyw0RkFBNEYsQ0FBQztBQUMzRyxjQUFjLDhGQUE4RixDQUFDO0FBQzdHLGNBQWMsd0dBQXdHLENBQUM7QUFDdkgsY0FBYyxrR0FBa0csQ0FBQztBQUNqSCxjQUFjLDRGQUE0RixDQUFDO0FBQzNHLGNBQWMsb0dBQW9HLENBQUM7QUFDbkgsY0FBYyxpRkFBaUYsQ0FBQztBQUNoRyxjQUFjLHVGQUF1RixDQUFDO0FBQ3RHLGNBQWMsbUZBQW1GLENBQUM7QUFDbEcsY0FBYyxnREFBZ0QsQ0FBQztBQ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dGV4dEZpZWxkLm1vZGVsJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvc2VydmljZXMvY3VzdG9tLWZvcm0tdmFsaWRhdG9ycy5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvc2VydmljZXMvZXFwLWR5bmFtaWMtbW9kdWxlLWRpYWxvZy5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvc2VydmljZXMvc3Bpbm5lci5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvc2VydmljZXMvdXRpbGl0eUhlbHBlci5zZXJ2aWNlcyc7XHJcbiJdfQ==
|
|
@@ -73,17 +73,18 @@ class Context {
|
|
|
73
73
|
class ContextUser {
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
class
|
|
77
|
-
constructor(showTitle = true,
|
|
76
|
+
class DynamicModuleCompileConfig {
|
|
77
|
+
constructor(showTitle = true, showSaveButton = true, showBackButton = true, userID = "0") {
|
|
78
78
|
this.showTitle = showTitle;
|
|
79
|
-
this.userMode = userMode;
|
|
80
79
|
this.showSaveButton = showSaveButton;
|
|
80
|
+
this.showBackButton = showBackButton;
|
|
81
81
|
this.userID = userID;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
class
|
|
86
|
-
constructor(view = true, edit = true, duplicate = true, del = true) {
|
|
85
|
+
class DynamicModuleListFormRecordActionsDefault {
|
|
86
|
+
constructor(add = true, view = true, edit = true, duplicate = true, del = true) {
|
|
87
|
+
this.add = add;
|
|
87
88
|
this.view = view;
|
|
88
89
|
this.edit = edit;
|
|
89
90
|
this.duplicate = duplicate;
|
|
@@ -91,23 +92,19 @@ class listFormRecordActionsDefault {
|
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
|
|
94
|
-
class
|
|
95
|
-
constructor(showTitle = true, values = null, defaultListActions = new
|
|
95
|
+
class DynamicModuleListConfig {
|
|
96
|
+
constructor(showTitle = true, values = null, defaultListActions = new DynamicModuleListFormRecordActionsDefault()) {
|
|
96
97
|
/**
|
|
97
98
|
* Show/Hide module name in COMPILE/LIST
|
|
98
99
|
*/
|
|
99
100
|
this.showTitle = true;
|
|
100
|
-
/**
|
|
101
|
-
* Lista delle azioni di default da mostrare per visualizzare/modificare/duplicare/eliminare in LIST MODE
|
|
102
|
-
*/
|
|
103
|
-
this.defaultListActions = new listFormRecordActionsDefault();
|
|
104
101
|
this.showTitle = showTitle;
|
|
105
102
|
this.values = values;
|
|
106
103
|
this.defaultListActions = defaultListActions;
|
|
107
104
|
}
|
|
108
105
|
}
|
|
109
106
|
|
|
110
|
-
class
|
|
107
|
+
class DynamicModuleRepairConfig {
|
|
111
108
|
constructor(formJson) {
|
|
112
109
|
/*
|
|
113
110
|
* stringa da passare in REPAIR MODE
|
|
@@ -117,12 +114,12 @@ class dynamicModuleRepairConfig {
|
|
|
117
114
|
}
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
var
|
|
121
|
-
(function (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})(
|
|
117
|
+
var DynamicModuleViewModeEnum$1;
|
|
118
|
+
(function (DynamicModuleViewModeEnum) {
|
|
119
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
120
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
121
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
122
|
+
})(DynamicModuleViewModeEnum$1 || (DynamicModuleViewModeEnum$1 = {}));
|
|
126
123
|
|
|
127
124
|
class EndPointConfiguration {
|
|
128
125
|
}
|
|
@@ -833,7 +830,7 @@ var DateTimeTypeEnum;
|
|
|
833
830
|
|
|
834
831
|
class ListFormRecordComponent {
|
|
835
832
|
constructor() {
|
|
836
|
-
this.defaultListActions = new
|
|
833
|
+
this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
837
834
|
this.showTitle = true;
|
|
838
835
|
this.columns = new Array();
|
|
839
836
|
this.onAddViewEditRecord = new EventEmitter();
|
|
@@ -1032,10 +1029,10 @@ class ListFormRecordComponent {
|
|
|
1032
1029
|
}
|
|
1033
1030
|
}
|
|
1034
1031
|
ListFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1035
|
-
ListFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: ListFormRecordComponent, selector: "list-form-record", inputs: { configurations: "configurations", form: "form" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", onDuplicateRecord: "onDuplicateRecord" }, viewQueries: [{ propertyName: "tableRecords", first: true, predicate: ["tableRecords"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n
|
|
1032
|
+
ListFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: ListFormRecordComponent, selector: "list-form-record", inputs: { configurations: "configurations", form: "form" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", onDuplicateRecord: "onDuplicateRecord" }, viewQueries: [{ propertyName: "tableRecords", first: true, predicate: ["tableRecords"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\" *ngIf=\"defaultListActions.add\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<eqp-table #tableRecords [data]=\"configurations.values\" [columns]=\"columns\"></eqp-table>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.EqpTableComponent, selector: "eqp-table" }] });
|
|
1036
1033
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, decorators: [{
|
|
1037
1034
|
type: Component,
|
|
1038
|
-
args: [{ selector: 'list-form-record', template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n
|
|
1035
|
+
args: [{ selector: 'list-form-record', template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\" *ngIf=\"defaultListActions.add\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<eqp-table #tableRecords [data]=\"configurations.values\" [columns]=\"columns\"></eqp-table>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}\n"] }]
|
|
1039
1036
|
}], ctorParameters: function () { return []; }, propDecorators: { configurations: [{
|
|
1040
1037
|
type: Input
|
|
1041
1038
|
}], form: [{
|
|
@@ -2057,7 +2054,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2057
2054
|
constructor(dialog) {
|
|
2058
2055
|
this.dialog = dialog;
|
|
2059
2056
|
this.recordChange = new EventEmitter();
|
|
2060
|
-
this.configList = new
|
|
2057
|
+
this.configList = new DynamicModuleListConfig();
|
|
2061
2058
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
2062
2059
|
this.onlyViewInnerFormRecord = false;
|
|
2063
2060
|
}
|
|
@@ -2069,7 +2066,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2069
2066
|
ngOnInit() {
|
|
2070
2067
|
this.configList.values = this.record[this.field.Name];
|
|
2071
2068
|
this.configList.showTitle = true;
|
|
2072
|
-
this.configList.defaultListActions = new
|
|
2069
|
+
this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
2073
2070
|
}
|
|
2074
2071
|
/**
|
|
2075
2072
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
@@ -2178,6 +2175,7 @@ class AddFormRecordComponent {
|
|
|
2178
2175
|
this.form = new Form();
|
|
2179
2176
|
this.showTitle = true;
|
|
2180
2177
|
this.showSaveButton = true;
|
|
2178
|
+
this.showBackButton = true;
|
|
2181
2179
|
this.userMode = true;
|
|
2182
2180
|
this.fieldGroups = {};
|
|
2183
2181
|
this.FormScalarTypeEnum = FormScalarTypeEnum;
|
|
@@ -2187,7 +2185,7 @@ class AddFormRecordComponent {
|
|
|
2187
2185
|
ngOnInit() {
|
|
2188
2186
|
this.showTitle = this.configurations.showTitle;
|
|
2189
2187
|
this.showSaveButton = this.configurations.showSaveButton;
|
|
2190
|
-
this.
|
|
2188
|
+
this.showBackButton = this.configurations.showBackButton;
|
|
2191
2189
|
if (this.record == null) {
|
|
2192
2190
|
this.record = new Record();
|
|
2193
2191
|
}
|
|
@@ -2266,10 +2264,10 @@ class AddFormRecordComponent {
|
|
|
2266
2264
|
}
|
|
2267
2265
|
}
|
|
2268
2266
|
AddFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2269
|
-
AddFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: AddFormRecordComponent, selector: "add-form-record", inputs: { configurations: "configurations", form: "form", record: "record", onlyView: "onlyView" }, outputs: { saveRecordEvent: "saveRecordEvent" }, viewQueries: [{ propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }], ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"
|
|
2267
|
+
AddFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: AddFormRecordComponent, selector: "add-form-record", inputs: { configurations: "configurations", form: "form", record: "record", onlyView: "onlyView" }, outputs: { saveRecordEvent: "saveRecordEvent" }, viewQueries: [{ propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }], ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"showBackButton || showSaveButton\">\r\n <div class=\"col-sm-12 text-right\">\r\n <button class=\"mr-2\" mat-raised-button type=\"button\"\r\n *ngIf=\"showBackButton\"\r\n (click)=\"saveOrExitForm(true)\">\r\n Annulla\r\n </button>\r\n <button class=\"mr-2\" mat-raised-button color=\"primary\" type=\"button\"\r\n *ngIf=\"showSaveButton\"\r\n (click)=\"saveOrExitForm(false)\"\r\n [disabled]=\"formForm.invalid || formForm.disabled\">\r\n Salva\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields'>\r\n <div class=\"row\">\r\n <div class=\"mt-2\" \r\n *ngFor=\"let field of fields\" \r\n [hidden]=\"!field.InListView\" \r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-field-fix #fieldTemplate \r\n [field]=\"field\" \r\n [form]=\"form\" \r\n [record]=\"record\"\r\n (recordChange)=\"onRecordChange()\">\r\n </dynamic-module-field-fix>\r\n </div>\r\n </div>\r\n</ng-template>", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i9.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i9.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "component", type: i4$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i4$3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "directive", type: i5$1.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i5$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicModuleFieldFixComponent, selector: "dynamic-module-field-fix", inputs: ["field", "form", "record"], outputs: ["recordChange"] }] });
|
|
2270
2268
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, decorators: [{
|
|
2271
2269
|
type: Component,
|
|
2272
|
-
args: [{ selector: 'add-form-record', template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"
|
|
2270
|
+
args: [{ selector: 'add-form-record', template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"showBackButton || showSaveButton\">\r\n <div class=\"col-sm-12 text-right\">\r\n <button class=\"mr-2\" mat-raised-button type=\"button\"\r\n *ngIf=\"showBackButton\"\r\n (click)=\"saveOrExitForm(true)\">\r\n Annulla\r\n </button>\r\n <button class=\"mr-2\" mat-raised-button color=\"primary\" type=\"button\"\r\n *ngIf=\"showSaveButton\"\r\n (click)=\"saveOrExitForm(false)\"\r\n [disabled]=\"formForm.invalid || formForm.disabled\">\r\n Salva\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields'>\r\n <div class=\"row\">\r\n <div class=\"mt-2\" \r\n *ngFor=\"let field of fields\" \r\n [hidden]=\"!field.InListView\" \r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-field-fix #fieldTemplate \r\n [field]=\"field\" \r\n [form]=\"form\" \r\n [record]=\"record\"\r\n (recordChange)=\"onRecordChange()\">\r\n </dynamic-module-field-fix>\r\n </div>\r\n </div>\r\n</ng-template>" }]
|
|
2273
2271
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
2274
2272
|
type: Input
|
|
2275
2273
|
}], form: [{
|
|
@@ -2334,13 +2332,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2334
2332
|
class EqpDynamicModuleComponent {
|
|
2335
2333
|
constructor(utilityHelperService) {
|
|
2336
2334
|
this.utilityHelperService = utilityHelperService;
|
|
2337
|
-
this.starterViewMode =
|
|
2335
|
+
this.starterViewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2338
2336
|
this.userID = "0";
|
|
2339
2337
|
this.showTitle = true;
|
|
2340
|
-
this.
|
|
2338
|
+
this.showBackButton = true;
|
|
2341
2339
|
this.showSaveButton = true;
|
|
2342
2340
|
this.values = null;
|
|
2343
2341
|
this.FormJSON = "";
|
|
2342
|
+
this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
2344
2343
|
this.context = new Context();
|
|
2345
2344
|
/**
|
|
2346
2345
|
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
@@ -2360,7 +2359,7 @@ class EqpDynamicModuleComponent {
|
|
|
2360
2359
|
*/
|
|
2361
2360
|
this.endPointConfiguration = null;
|
|
2362
2361
|
//@Input() form: Form = new Form();
|
|
2363
|
-
// defaultListActions:
|
|
2362
|
+
// defaultListActions: dynamicModuleListFormRecordActionsDefault = new dynamicModuleListFormRecordActionsDefault();
|
|
2364
2363
|
// FormJSON: string = "";
|
|
2365
2364
|
/**
|
|
2366
2365
|
* Eventi emessi quando si salva, elimina o duplica un record
|
|
@@ -2380,14 +2379,14 @@ class EqpDynamicModuleComponent {
|
|
|
2380
2379
|
this.form = new Form();
|
|
2381
2380
|
this.lastform = new Form();
|
|
2382
2381
|
this.FormTypeEnum = FormTypeEnum;
|
|
2383
|
-
this.
|
|
2382
|
+
this.DynamicModuleViewModeEnum = DynamicModuleViewModeEnum$1;
|
|
2384
2383
|
this.loader = false;
|
|
2385
2384
|
}
|
|
2386
2385
|
ngOnInit() {
|
|
2387
2386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
|
-
this.dynamicModuleCompileConfig = new
|
|
2389
|
-
this.dynamicModuleListConfig = new
|
|
2390
|
-
this.dynamicModuleRepairConfig = new
|
|
2387
|
+
this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID);
|
|
2388
|
+
this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions);
|
|
2389
|
+
this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
|
|
2391
2390
|
this.context = this.configurations.context;
|
|
2392
2391
|
this.baseServerUrl =
|
|
2393
2392
|
this.configurations.baseServerUrl;
|
|
@@ -2402,10 +2401,18 @@ class EqpDynamicModuleComponent {
|
|
|
2402
2401
|
// prende il form e imposta la viewmode corretta
|
|
2403
2402
|
yield this.getFormByID();
|
|
2404
2403
|
}
|
|
2405
|
-
this.loader = true;
|
|
2406
2404
|
});
|
|
2407
2405
|
}
|
|
2408
|
-
ngAfterViewInit() {
|
|
2406
|
+
ngAfterViewInit() {
|
|
2407
|
+
if (this.starterViewMode == DynamicModuleViewModeEnum$1.COMPILE) {
|
|
2408
|
+
// da vedere in getFormByID
|
|
2409
|
+
setTimeout(() => this.onAddViewEditRecord(null), 1000);
|
|
2410
|
+
}
|
|
2411
|
+
else {
|
|
2412
|
+
this.viewMode = this.starterViewMode;
|
|
2413
|
+
this.loader = true;
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2409
2416
|
getFormByID(id = this.formID) {
|
|
2410
2417
|
const dynamicModuleParams = new Array();
|
|
2411
2418
|
dynamicModuleParams.push({
|
|
@@ -2417,10 +2424,10 @@ class EqpDynamicModuleComponent {
|
|
|
2417
2424
|
this.lastform = res;
|
|
2418
2425
|
this.form = res;
|
|
2419
2426
|
this.getRecordsByFormID();
|
|
2420
|
-
if (this.starterViewMode ==
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2423
|
-
this.viewMode = this.starterViewMode;
|
|
2427
|
+
// if (this.starterViewMode == DynamicModuleViewModeEnum.COMPILE) {
|
|
2428
|
+
// this.onAddViewEditRecord(null);
|
|
2429
|
+
// }
|
|
2430
|
+
// this.viewMode = this.starterViewMode;
|
|
2424
2431
|
}, (err) => { });
|
|
2425
2432
|
}
|
|
2426
2433
|
/**
|
|
@@ -2512,13 +2519,15 @@ class EqpDynamicModuleComponent {
|
|
|
2512
2519
|
this.selectedRecord.ID = res.ID;
|
|
2513
2520
|
this.selectedRecord.EntID = res.EntID;
|
|
2514
2521
|
this.selectedRecord.userID = res.userID;
|
|
2515
|
-
this.viewMode =
|
|
2522
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2523
|
+
this.loader = true;
|
|
2516
2524
|
});
|
|
2517
2525
|
});
|
|
2518
2526
|
}
|
|
2519
2527
|
else {
|
|
2520
2528
|
this.selectedRecord = JSON.parse(JSON.stringify(event.record));
|
|
2521
|
-
this.viewMode =
|
|
2529
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2530
|
+
this.loader = true;
|
|
2522
2531
|
}
|
|
2523
2532
|
}
|
|
2524
2533
|
else {
|
|
@@ -2532,11 +2541,12 @@ class EqpDynamicModuleComponent {
|
|
|
2532
2541
|
this.form = res;
|
|
2533
2542
|
this.selectedRecord = null;
|
|
2534
2543
|
this.onlyView = false;
|
|
2535
|
-
this.viewMode =
|
|
2544
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2545
|
+
this.loader = true;
|
|
2536
2546
|
}, (err) => { });
|
|
2537
2547
|
// this.selectedRecord = null;
|
|
2538
2548
|
// this.onlyView = false;
|
|
2539
|
-
// this.viewMode =
|
|
2549
|
+
// this.viewMode = DynamicModuleViewModeEnum.COMPILE;
|
|
2540
2550
|
}
|
|
2541
2551
|
}
|
|
2542
2552
|
/**
|
|
@@ -2566,12 +2576,14 @@ class EqpDynamicModuleComponent {
|
|
|
2566
2576
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
2567
2577
|
this.getRecordsByFormID();
|
|
2568
2578
|
this.afterSaveRecord.emit(event);
|
|
2569
|
-
this.viewMode =
|
|
2579
|
+
this.viewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2580
|
+
this.loader = true;
|
|
2570
2581
|
});
|
|
2571
2582
|
}
|
|
2572
2583
|
else {
|
|
2573
2584
|
this.saveRecord.emit(event);
|
|
2574
|
-
this.viewMode =
|
|
2585
|
+
this.viewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2586
|
+
this.loader = true;
|
|
2575
2587
|
}
|
|
2576
2588
|
}
|
|
2577
2589
|
/**
|
|
@@ -2633,10 +2645,10 @@ class EqpDynamicModuleComponent {
|
|
|
2633
2645
|
}
|
|
2634
2646
|
}
|
|
2635
2647
|
EqpDynamicModuleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, deps: [{ token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2636
|
-
EqpDynamicModuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: EqpDynamicModuleComponent, selector: "eqp-dynamic-module", inputs: { configurations: "configurations", formID: "formID", starterViewMode: "starterViewMode", userID: "userID", showTitle: "showTitle",
|
|
2648
|
+
EqpDynamicModuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: EqpDynamicModuleComponent, selector: "eqp-dynamic-module", inputs: { configurations: "configurations", formID: "formID", starterViewMode: "starterViewMode", userID: "userID", showTitle: "showTitle", showBackButton: "showBackButton", showSaveButton: "showSaveButton", values: "values", FormJSON: "FormJSON", defaultListActions: "defaultListActions" }, outputs: { saveRecord: "saveRecord", deleteRecord: "deleteRecord", duplicateRecord: "duplicateRecord", SaveJSON: "SaveJSON", afterSaveRecord: "afterSaveRecord", afterDeleteRecord: "afterDeleteRecord", afterDuplicateRecord: "afterDuplicateRecord" }, ngImport: i0, template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.COMPILE\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.LIST && dynamicModuleListConfig.values\"\r\n [form]=\"lastform\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n \r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onDuplicateRecord)=\"onDuplicateRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.REPAIR\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n \r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["configurations", "form"], outputs: ["onAddViewEditRecord", "onDeleteRecord", "onDuplicateRecord"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["configurations", "form", "record", "onlyView"], outputs: ["saveRecordEvent"] }, { kind: "component", type: SpinnerComponent, selector: "eqp-dynamic-module-spinner" }, { kind: "component", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: ["configurations"], outputs: ["onSaveJson"] }] });
|
|
2637
2649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, decorators: [{
|
|
2638
2650
|
type: Component,
|
|
2639
|
-
args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"viewMode ==
|
|
2651
|
+
args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.COMPILE\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.LIST && dynamicModuleListConfig.values\"\r\n [form]=\"lastform\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n \r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onDuplicateRecord)=\"onDuplicateRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.REPAIR\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n \r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"] }]
|
|
2640
2652
|
}], ctorParameters: function () { return [{ type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
2641
2653
|
type: Input
|
|
2642
2654
|
}], formID: [{
|
|
@@ -2647,7 +2659,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2647
2659
|
type: Input
|
|
2648
2660
|
}], showTitle: [{
|
|
2649
2661
|
type: Input
|
|
2650
|
-
}],
|
|
2662
|
+
}], showBackButton: [{
|
|
2651
2663
|
type: Input
|
|
2652
2664
|
}], showSaveButton: [{
|
|
2653
2665
|
type: Input
|
|
@@ -2655,6 +2667,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2655
2667
|
type: Input
|
|
2656
2668
|
}], FormJSON: [{
|
|
2657
2669
|
type: Input
|
|
2670
|
+
}], defaultListActions: [{
|
|
2671
|
+
type: Input
|
|
2658
2672
|
}], saveRecord: [{
|
|
2659
2673
|
type: Output
|
|
2660
2674
|
}], deleteRecord: [{
|
|
@@ -2877,11 +2891,11 @@ class DynamicModuleConfiguratorSpecificConfig {
|
|
|
2877
2891
|
}
|
|
2878
2892
|
}
|
|
2879
2893
|
|
|
2880
|
-
class
|
|
2894
|
+
class DynamicModuleGeneralConfig {
|
|
2881
2895
|
/**
|
|
2882
2896
|
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
2883
2897
|
*/
|
|
2884
|
-
// starterViewMode:
|
|
2898
|
+
// starterViewMode: DynamicModuleViewModeEnum = DynamicModuleViewModeEnum.LIST;
|
|
2885
2899
|
/**
|
|
2886
2900
|
* Specifica del form da visualizzare DynaForms.ID
|
|
2887
2901
|
*/
|
|
@@ -2913,7 +2927,7 @@ class dynamicModuleGeneralConfig {
|
|
|
2913
2927
|
}
|
|
2914
2928
|
|
|
2915
2929
|
class DynamicModuleConfiguratorConfig {
|
|
2916
|
-
constructor(general = new
|
|
2930
|
+
constructor(general = new DynamicModuleGeneralConfig(), specific = new DynamicModuleConfiguratorSpecificConfig()) {
|
|
2917
2931
|
this.dynamicModuleGeneralConfig = general;
|
|
2918
2932
|
this.dynamicModuleConfiguratorSpecificConfig = specific;
|
|
2919
2933
|
}
|
|
@@ -4036,7 +4050,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
4036
4050
|
this.UserID = 36;
|
|
4037
4051
|
this.innerFormManagment = false;
|
|
4038
4052
|
/* CONFIGURAZIONE PER VISUALIZZAZIONE FORM CREATA */
|
|
4039
|
-
this.viewConfig = new
|
|
4053
|
+
this.viewConfig = new DynamicModuleCompileConfig(true, false, false, '0');
|
|
4040
4054
|
this.formCompleted = false;
|
|
4041
4055
|
//#region Enumeratori usati nell'html
|
|
4042
4056
|
this.FormTypeEnum = FormTypeEnum;
|
|
@@ -4682,7 +4696,7 @@ class DynamicModuleFieldComponent {
|
|
|
4682
4696
|
constructor(dialog) {
|
|
4683
4697
|
this.dialog = dialog;
|
|
4684
4698
|
this.recordChange = new EventEmitter();
|
|
4685
|
-
this.configList = new
|
|
4699
|
+
this.configList = new DynamicModuleListConfig();
|
|
4686
4700
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
4687
4701
|
this.onlyViewInnerFormRecord = false;
|
|
4688
4702
|
}
|
|
@@ -4694,7 +4708,7 @@ class DynamicModuleFieldComponent {
|
|
|
4694
4708
|
ngOnInit() {
|
|
4695
4709
|
this.configList.values = this.record[this.field.Name];
|
|
4696
4710
|
this.configList.showTitle = true;
|
|
4697
|
-
this.configList.defaultListActions = new
|
|
4711
|
+
this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
4698
4712
|
}
|
|
4699
4713
|
/**
|
|
4700
4714
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
@@ -4889,6 +4903,13 @@ class DynamicModuleConfig {
|
|
|
4889
4903
|
}
|
|
4890
4904
|
}
|
|
4891
4905
|
|
|
4906
|
+
var DynamicModuleViewModeEnum;
|
|
4907
|
+
(function (DynamicModuleViewModeEnum) {
|
|
4908
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
4909
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
4910
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
4911
|
+
})(DynamicModuleViewModeEnum || (DynamicModuleViewModeEnum = {}));
|
|
4912
|
+
|
|
4892
4913
|
/**
|
|
4893
4914
|
* Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
|
|
4894
4915
|
*/
|
|
@@ -4921,5 +4942,5 @@ class TextareaField extends BaseField {
|
|
|
4921
4942
|
* Generated bundle index. Do not edit.
|
|
4922
4943
|
*/
|
|
4923
4944
|
|
|
4924
|
-
export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord, DynamicModuleConfig, DynamicModuleConfiguratorConfig, DynamicModuleConfiguratorSpecificConfig, DynamicModuleFieldComponent, EndPointConfiguration, EndPointData, EndPointDataParams, Entity, EqpDynamicModuleComponent, EqpDynamicModuleConfiguratorComponent, EqpDynamicModuleDialogService, EqpDynamicModuleModule, FieldTypeEnum, Form, FormFieldGroup, FormScalarTypeEnum, FormTypeEnum, ImageField, ImageFieldTemplateComponent, ListFormRecordComponent, ListPresentationEnum, ListValueField, ListValueFieldTemplateComponent, LookupField, NumericField, NumericFieldTemplateComponent, ParamTypeEnum, Record, RepairFormFieldsComponent, RequestMethodEnum, SpinnerService, TelRegex, TextField, TextFieldTemplateComponent, TextMaskEnum, TextareaField, TextareaFieldTemplateComponent, UrlRegex, UtilityHelperService
|
|
4945
|
+
export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord, DynamicModuleCompileConfig, DynamicModuleConfig, DynamicModuleConfiguratorConfig, DynamicModuleConfiguratorSpecificConfig, DynamicModuleFieldComponent, DynamicModuleGeneralConfig, DynamicModuleListConfig, DynamicModuleListFormRecordActionsDefault, DynamicModuleRepairConfig, DynamicModuleViewModeEnum, EndPointConfiguration, EndPointData, EndPointDataParams, Entity, EqpDynamicModuleComponent, EqpDynamicModuleConfiguratorComponent, EqpDynamicModuleDialogService, EqpDynamicModuleModule, FieldTypeEnum, Form, FormFieldGroup, FormScalarTypeEnum, FormTypeEnum, ImageField, ImageFieldTemplateComponent, ListFormRecordComponent, ListPresentationEnum, ListValueField, ListValueFieldTemplateComponent, LookupField, NumericField, NumericFieldTemplateComponent, ParamTypeEnum, Record, RepairFormFieldsComponent, RequestMethodEnum, SpinnerService, TelRegex, TextField, TextFieldTemplateComponent, TextMaskEnum, TextareaField, TextareaFieldTemplateComponent, UrlRegex, UtilityHelperService };
|
|
4925
4946
|
//# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map
|