@eqproject/eqp-dynamic-module 2.0.2 → 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 +4 -4
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +17 -12
- 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 +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 -1
- 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 +1 -1
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.model.mjs +3 -3
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +2 -2
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +2 -2
- package/esm2020/lib/models/dynamicModuleRepairConfig.model.mjs +2 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +38 -26
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +38 -26
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +8 -8
- 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 +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/dynamicModuleGeneralConfig.model.d.ts +1 -1
- package/lib/models/dynamicModuleListConfig.model.d.ts +1 -1
- package/lib/models/dynamicModuleRepairConfig.model.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -73,7 +73,7 @@ class Context {
|
|
|
73
73
|
class ContextUser {
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
class
|
|
76
|
+
class DynamicModuleCompileConfig {
|
|
77
77
|
constructor(showTitle = true, userMode = true, showSaveButton = true, userID = "0") {
|
|
78
78
|
this.showTitle = showTitle;
|
|
79
79
|
this.userMode = userMode;
|
|
@@ -91,7 +91,7 @@ class listFormRecordActionsDefault {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
class
|
|
94
|
+
class DynamicModuleListConfig {
|
|
95
95
|
constructor(showTitle = true, values = null, defaultListActions = new listFormRecordActionsDefault()) {
|
|
96
96
|
/**
|
|
97
97
|
* Show/Hide module name in COMPILE/LIST
|
|
@@ -107,7 +107,7 @@ class dynamicModuleListConfig {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class DynamicModuleRepairConfig {
|
|
111
111
|
constructor(formJson) {
|
|
112
112
|
/*
|
|
113
113
|
* stringa da passare in REPAIR MODE
|
|
@@ -117,12 +117,12 @@ class dynamicModuleRepairConfig {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
var DynamicMoDuleViewModeEnum;
|
|
120
|
+
var DynamicMoDuleViewModeEnum$1;
|
|
121
121
|
(function (DynamicMoDuleViewModeEnum) {
|
|
122
122
|
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
123
123
|
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
124
124
|
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
125
|
-
})(DynamicMoDuleViewModeEnum || (DynamicMoDuleViewModeEnum = {}));
|
|
125
|
+
})(DynamicMoDuleViewModeEnum$1 || (DynamicMoDuleViewModeEnum$1 = {}));
|
|
126
126
|
|
|
127
127
|
class EndPointConfiguration {
|
|
128
128
|
}
|
|
@@ -2057,7 +2057,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2057
2057
|
constructor(dialog) {
|
|
2058
2058
|
this.dialog = dialog;
|
|
2059
2059
|
this.recordChange = new EventEmitter();
|
|
2060
|
-
this.configList = new
|
|
2060
|
+
this.configList = new DynamicModuleListConfig();
|
|
2061
2061
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
2062
2062
|
this.onlyViewInnerFormRecord = false;
|
|
2063
2063
|
}
|
|
@@ -2334,7 +2334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2334
2334
|
class EqpDynamicModuleComponent {
|
|
2335
2335
|
constructor(utilityHelperService) {
|
|
2336
2336
|
this.utilityHelperService = utilityHelperService;
|
|
2337
|
-
this.starterViewMode = DynamicMoDuleViewModeEnum.LIST;
|
|
2337
|
+
this.starterViewMode = DynamicMoDuleViewModeEnum$1.LIST;
|
|
2338
2338
|
this.userID = "0";
|
|
2339
2339
|
this.showTitle = true;
|
|
2340
2340
|
this.userMode = false;
|
|
@@ -2380,14 +2380,14 @@ class EqpDynamicModuleComponent {
|
|
|
2380
2380
|
this.form = new Form();
|
|
2381
2381
|
this.lastform = new Form();
|
|
2382
2382
|
this.FormTypeEnum = FormTypeEnum;
|
|
2383
|
-
this.DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum;
|
|
2383
|
+
this.DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum$1;
|
|
2384
2384
|
this.loader = false;
|
|
2385
2385
|
}
|
|
2386
2386
|
ngOnInit() {
|
|
2387
2387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
|
-
this.dynamicModuleCompileConfig = new
|
|
2389
|
-
this.dynamicModuleListConfig = new
|
|
2390
|
-
this.dynamicModuleRepairConfig = new
|
|
2388
|
+
this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.userMode, this.showSaveButton, this.userID);
|
|
2389
|
+
this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values);
|
|
2390
|
+
this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
|
|
2391
2391
|
this.context = this.configurations.context;
|
|
2392
2392
|
this.baseServerUrl =
|
|
2393
2393
|
this.configurations.baseServerUrl;
|
|
@@ -2405,7 +2405,12 @@ class EqpDynamicModuleComponent {
|
|
|
2405
2405
|
this.loader = true;
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
|
-
ngAfterViewInit() {
|
|
2408
|
+
ngAfterViewInit() {
|
|
2409
|
+
if (this.starterViewMode == DynamicMoDuleViewModeEnum$1.COMPILE) {
|
|
2410
|
+
// da vedere in getFormByID
|
|
2411
|
+
setTimeout(() => this.onAddViewEditRecord(null), 1000);
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2409
2414
|
getFormByID(id = this.formID) {
|
|
2410
2415
|
const dynamicModuleParams = new Array();
|
|
2411
2416
|
dynamicModuleParams.push({
|
|
@@ -2417,10 +2422,10 @@ class EqpDynamicModuleComponent {
|
|
|
2417
2422
|
this.lastform = res;
|
|
2418
2423
|
this.form = res;
|
|
2419
2424
|
this.getRecordsByFormID();
|
|
2420
|
-
if (this.starterViewMode == DynamicMoDuleViewModeEnum.COMPILE) {
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2423
|
-
this.viewMode = this.starterViewMode;
|
|
2425
|
+
// if (this.starterViewMode == DynamicMoDuleViewModeEnum.COMPILE) {
|
|
2426
|
+
// this.onAddViewEditRecord(null);
|
|
2427
|
+
// }
|
|
2428
|
+
// this.viewMode = this.starterViewMode;
|
|
2424
2429
|
}, (err) => { });
|
|
2425
2430
|
}
|
|
2426
2431
|
/**
|
|
@@ -2512,13 +2517,13 @@ class EqpDynamicModuleComponent {
|
|
|
2512
2517
|
this.selectedRecord.ID = res.ID;
|
|
2513
2518
|
this.selectedRecord.EntID = res.EntID;
|
|
2514
2519
|
this.selectedRecord.userID = res.userID;
|
|
2515
|
-
this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
|
|
2520
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
|
|
2516
2521
|
});
|
|
2517
2522
|
});
|
|
2518
2523
|
}
|
|
2519
2524
|
else {
|
|
2520
2525
|
this.selectedRecord = JSON.parse(JSON.stringify(event.record));
|
|
2521
|
-
this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
|
|
2526
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
|
|
2522
2527
|
}
|
|
2523
2528
|
}
|
|
2524
2529
|
else {
|
|
@@ -2532,7 +2537,7 @@ class EqpDynamicModuleComponent {
|
|
|
2532
2537
|
this.form = res;
|
|
2533
2538
|
this.selectedRecord = null;
|
|
2534
2539
|
this.onlyView = false;
|
|
2535
|
-
this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
|
|
2540
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
|
|
2536
2541
|
}, (err) => { });
|
|
2537
2542
|
// this.selectedRecord = null;
|
|
2538
2543
|
// this.onlyView = false;
|
|
@@ -2566,12 +2571,12 @@ class EqpDynamicModuleComponent {
|
|
|
2566
2571
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
2567
2572
|
this.getRecordsByFormID();
|
|
2568
2573
|
this.afterSaveRecord.emit(event);
|
|
2569
|
-
this.viewMode = DynamicMoDuleViewModeEnum.LIST;
|
|
2574
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
|
|
2570
2575
|
});
|
|
2571
2576
|
}
|
|
2572
2577
|
else {
|
|
2573
2578
|
this.saveRecord.emit(event);
|
|
2574
|
-
this.viewMode = DynamicMoDuleViewModeEnum.LIST;
|
|
2579
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
|
|
2575
2580
|
}
|
|
2576
2581
|
}
|
|
2577
2582
|
/**
|
|
@@ -2877,7 +2882,7 @@ class DynamicModuleConfiguratorSpecificConfig {
|
|
|
2877
2882
|
}
|
|
2878
2883
|
}
|
|
2879
2884
|
|
|
2880
|
-
class
|
|
2885
|
+
class DynamicModuleGeneralConfig {
|
|
2881
2886
|
/**
|
|
2882
2887
|
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
2883
2888
|
*/
|
|
@@ -2913,7 +2918,7 @@ class dynamicModuleGeneralConfig {
|
|
|
2913
2918
|
}
|
|
2914
2919
|
|
|
2915
2920
|
class DynamicModuleConfiguratorConfig {
|
|
2916
|
-
constructor(general = new
|
|
2921
|
+
constructor(general = new DynamicModuleGeneralConfig(), specific = new DynamicModuleConfiguratorSpecificConfig()) {
|
|
2917
2922
|
this.dynamicModuleGeneralConfig = general;
|
|
2918
2923
|
this.dynamicModuleConfiguratorSpecificConfig = specific;
|
|
2919
2924
|
}
|
|
@@ -4036,7 +4041,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
4036
4041
|
this.UserID = 36;
|
|
4037
4042
|
this.innerFormManagment = false;
|
|
4038
4043
|
/* CONFIGURAZIONE PER VISUALIZZAZIONE FORM CREATA */
|
|
4039
|
-
this.viewConfig = new
|
|
4044
|
+
this.viewConfig = new DynamicModuleCompileConfig(true, false, false, '0');
|
|
4040
4045
|
this.formCompleted = false;
|
|
4041
4046
|
//#region Enumeratori usati nell'html
|
|
4042
4047
|
this.FormTypeEnum = FormTypeEnum;
|
|
@@ -4682,7 +4687,7 @@ class DynamicModuleFieldComponent {
|
|
|
4682
4687
|
constructor(dialog) {
|
|
4683
4688
|
this.dialog = dialog;
|
|
4684
4689
|
this.recordChange = new EventEmitter();
|
|
4685
|
-
this.configList = new
|
|
4690
|
+
this.configList = new DynamicModuleListConfig();
|
|
4686
4691
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
4687
4692
|
this.onlyViewInnerFormRecord = false;
|
|
4688
4693
|
}
|
|
@@ -4889,6 +4894,13 @@ class DynamicModuleConfig {
|
|
|
4889
4894
|
}
|
|
4890
4895
|
}
|
|
4891
4896
|
|
|
4897
|
+
var DynamicMoDuleViewModeEnum;
|
|
4898
|
+
(function (DynamicMoDuleViewModeEnum) {
|
|
4899
|
+
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
4900
|
+
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
4901
|
+
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
4902
|
+
})(DynamicMoDuleViewModeEnum || (DynamicMoDuleViewModeEnum = {}));
|
|
4903
|
+
|
|
4892
4904
|
/**
|
|
4893
4905
|
* Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
|
|
4894
4906
|
*/
|
|
@@ -4921,5 +4933,5 @@ class TextareaField extends BaseField {
|
|
|
4921
4933
|
* Generated bundle index. Do not edit.
|
|
4922
4934
|
*/
|
|
4923
4935
|
|
|
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
|
|
4936
|
+
export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord, DynamicMoDuleViewModeEnum, DynamicModuleCompileConfig, DynamicModuleConfig, DynamicModuleConfiguratorConfig, DynamicModuleConfiguratorSpecificConfig, DynamicModuleFieldComponent, DynamicModuleGeneralConfig, DynamicModuleListConfig, DynamicModuleRepairConfig, 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
4937
|
//# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map
|