@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
|
@@ -72,7 +72,7 @@ class Context {
|
|
|
72
72
|
class ContextUser {
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class DynamicModuleCompileConfig {
|
|
76
76
|
constructor(showTitle = true, userMode = true, showSaveButton = true, userID = "0") {
|
|
77
77
|
this.showTitle = showTitle;
|
|
78
78
|
this.userMode = userMode;
|
|
@@ -90,7 +90,7 @@ class listFormRecordActionsDefault {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class DynamicModuleListConfig {
|
|
94
94
|
constructor(showTitle = true, values = null, defaultListActions = new listFormRecordActionsDefault()) {
|
|
95
95
|
/**
|
|
96
96
|
* Show/Hide module name in COMPILE/LIST
|
|
@@ -106,7 +106,7 @@ class dynamicModuleListConfig {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
class
|
|
109
|
+
class DynamicModuleRepairConfig {
|
|
110
110
|
constructor(formJson) {
|
|
111
111
|
/*
|
|
112
112
|
* stringa da passare in REPAIR MODE
|
|
@@ -116,12 +116,12 @@ class dynamicModuleRepairConfig {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
var DynamicMoDuleViewModeEnum;
|
|
119
|
+
var DynamicMoDuleViewModeEnum$1;
|
|
120
120
|
(function (DynamicMoDuleViewModeEnum) {
|
|
121
121
|
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
122
122
|
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
123
123
|
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
124
|
-
})(DynamicMoDuleViewModeEnum || (DynamicMoDuleViewModeEnum = {}));
|
|
124
|
+
})(DynamicMoDuleViewModeEnum$1 || (DynamicMoDuleViewModeEnum$1 = {}));
|
|
125
125
|
|
|
126
126
|
class EndPointConfiguration {
|
|
127
127
|
}
|
|
@@ -2054,7 +2054,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2054
2054
|
constructor(dialog) {
|
|
2055
2055
|
this.dialog = dialog;
|
|
2056
2056
|
this.recordChange = new EventEmitter();
|
|
2057
|
-
this.configList = new
|
|
2057
|
+
this.configList = new DynamicModuleListConfig();
|
|
2058
2058
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
2059
2059
|
this.onlyViewInnerFormRecord = false;
|
|
2060
2060
|
}
|
|
@@ -2331,7 +2331,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2331
2331
|
class EqpDynamicModuleComponent {
|
|
2332
2332
|
constructor(utilityHelperService) {
|
|
2333
2333
|
this.utilityHelperService = utilityHelperService;
|
|
2334
|
-
this.starterViewMode = DynamicMoDuleViewModeEnum.LIST;
|
|
2334
|
+
this.starterViewMode = DynamicMoDuleViewModeEnum$1.LIST;
|
|
2335
2335
|
this.userID = "0";
|
|
2336
2336
|
this.showTitle = true;
|
|
2337
2337
|
this.userMode = false;
|
|
@@ -2377,13 +2377,13 @@ class EqpDynamicModuleComponent {
|
|
|
2377
2377
|
this.form = new Form();
|
|
2378
2378
|
this.lastform = new Form();
|
|
2379
2379
|
this.FormTypeEnum = FormTypeEnum;
|
|
2380
|
-
this.DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum;
|
|
2380
|
+
this.DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum$1;
|
|
2381
2381
|
this.loader = false;
|
|
2382
2382
|
}
|
|
2383
2383
|
async ngOnInit() {
|
|
2384
|
-
this.dynamicModuleCompileConfig = new
|
|
2385
|
-
this.dynamicModuleListConfig = new
|
|
2386
|
-
this.dynamicModuleRepairConfig = new
|
|
2384
|
+
this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.userMode, this.showSaveButton, this.userID);
|
|
2385
|
+
this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values);
|
|
2386
|
+
this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
|
|
2387
2387
|
this.context = this.configurations.context;
|
|
2388
2388
|
this.baseServerUrl =
|
|
2389
2389
|
this.configurations.baseServerUrl;
|
|
@@ -2400,7 +2400,12 @@ class EqpDynamicModuleComponent {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
this.loader = true;
|
|
2402
2402
|
}
|
|
2403
|
-
ngAfterViewInit() {
|
|
2403
|
+
ngAfterViewInit() {
|
|
2404
|
+
if (this.starterViewMode == DynamicMoDuleViewModeEnum$1.COMPILE) {
|
|
2405
|
+
// da vedere in getFormByID
|
|
2406
|
+
setTimeout(() => this.onAddViewEditRecord(null), 1000);
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2404
2409
|
getFormByID(id = this.formID) {
|
|
2405
2410
|
const dynamicModuleParams = new Array();
|
|
2406
2411
|
dynamicModuleParams.push({
|
|
@@ -2412,10 +2417,10 @@ class EqpDynamicModuleComponent {
|
|
|
2412
2417
|
this.lastform = res;
|
|
2413
2418
|
this.form = res;
|
|
2414
2419
|
this.getRecordsByFormID();
|
|
2415
|
-
if (this.starterViewMode == DynamicMoDuleViewModeEnum.COMPILE) {
|
|
2416
|
-
|
|
2417
|
-
}
|
|
2418
|
-
this.viewMode = this.starterViewMode;
|
|
2420
|
+
// if (this.starterViewMode == DynamicMoDuleViewModeEnum.COMPILE) {
|
|
2421
|
+
// this.onAddViewEditRecord(null);
|
|
2422
|
+
// }
|
|
2423
|
+
// this.viewMode = this.starterViewMode;
|
|
2419
2424
|
}, (err) => { });
|
|
2420
2425
|
}
|
|
2421
2426
|
/**
|
|
@@ -2505,13 +2510,13 @@ class EqpDynamicModuleComponent {
|
|
|
2505
2510
|
this.selectedRecord.ID = res.ID;
|
|
2506
2511
|
this.selectedRecord.EntID = res.EntID;
|
|
2507
2512
|
this.selectedRecord.userID = res.userID;
|
|
2508
|
-
this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
|
|
2513
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
|
|
2509
2514
|
});
|
|
2510
2515
|
});
|
|
2511
2516
|
}
|
|
2512
2517
|
else {
|
|
2513
2518
|
this.selectedRecord = JSON.parse(JSON.stringify(event.record));
|
|
2514
|
-
this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
|
|
2519
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
|
|
2515
2520
|
}
|
|
2516
2521
|
}
|
|
2517
2522
|
else {
|
|
@@ -2525,7 +2530,7 @@ class EqpDynamicModuleComponent {
|
|
|
2525
2530
|
this.form = res;
|
|
2526
2531
|
this.selectedRecord = null;
|
|
2527
2532
|
this.onlyView = false;
|
|
2528
|
-
this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
|
|
2533
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
|
|
2529
2534
|
}, (err) => { });
|
|
2530
2535
|
// this.selectedRecord = null;
|
|
2531
2536
|
// this.onlyView = false;
|
|
@@ -2558,12 +2563,12 @@ class EqpDynamicModuleComponent {
|
|
|
2558
2563
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
2559
2564
|
this.getRecordsByFormID();
|
|
2560
2565
|
this.afterSaveRecord.emit(event);
|
|
2561
|
-
this.viewMode = DynamicMoDuleViewModeEnum.LIST;
|
|
2566
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
|
|
2562
2567
|
});
|
|
2563
2568
|
}
|
|
2564
2569
|
else {
|
|
2565
2570
|
this.saveRecord.emit(event);
|
|
2566
|
-
this.viewMode = DynamicMoDuleViewModeEnum.LIST;
|
|
2571
|
+
this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
|
|
2567
2572
|
}
|
|
2568
2573
|
}
|
|
2569
2574
|
/**
|
|
@@ -2869,7 +2874,7 @@ class DynamicModuleConfiguratorSpecificConfig {
|
|
|
2869
2874
|
}
|
|
2870
2875
|
}
|
|
2871
2876
|
|
|
2872
|
-
class
|
|
2877
|
+
class DynamicModuleGeneralConfig {
|
|
2873
2878
|
/**
|
|
2874
2879
|
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
2875
2880
|
*/
|
|
@@ -2905,7 +2910,7 @@ class dynamicModuleGeneralConfig {
|
|
|
2905
2910
|
}
|
|
2906
2911
|
|
|
2907
2912
|
class DynamicModuleConfiguratorConfig {
|
|
2908
|
-
constructor(general = new
|
|
2913
|
+
constructor(general = new DynamicModuleGeneralConfig(), specific = new DynamicModuleConfiguratorSpecificConfig()) {
|
|
2909
2914
|
this.dynamicModuleGeneralConfig = general;
|
|
2910
2915
|
this.dynamicModuleConfiguratorSpecificConfig = specific;
|
|
2911
2916
|
}
|
|
@@ -4026,7 +4031,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
4026
4031
|
this.UserID = 36;
|
|
4027
4032
|
this.innerFormManagment = false;
|
|
4028
4033
|
/* CONFIGURAZIONE PER VISUALIZZAZIONE FORM CREATA */
|
|
4029
|
-
this.viewConfig = new
|
|
4034
|
+
this.viewConfig = new DynamicModuleCompileConfig(true, false, false, '0');
|
|
4030
4035
|
this.formCompleted = false;
|
|
4031
4036
|
//#region Enumeratori usati nell'html
|
|
4032
4037
|
this.FormTypeEnum = FormTypeEnum;
|
|
@@ -4672,7 +4677,7 @@ class DynamicModuleFieldComponent {
|
|
|
4672
4677
|
constructor(dialog) {
|
|
4673
4678
|
this.dialog = dialog;
|
|
4674
4679
|
this.recordChange = new EventEmitter();
|
|
4675
|
-
this.configList = new
|
|
4680
|
+
this.configList = new DynamicModuleListConfig();
|
|
4676
4681
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
4677
4682
|
this.onlyViewInnerFormRecord = false;
|
|
4678
4683
|
}
|
|
@@ -4879,6 +4884,13 @@ class DynamicModuleConfig {
|
|
|
4879
4884
|
}
|
|
4880
4885
|
}
|
|
4881
4886
|
|
|
4887
|
+
var DynamicMoDuleViewModeEnum;
|
|
4888
|
+
(function (DynamicMoDuleViewModeEnum) {
|
|
4889
|
+
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
4890
|
+
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
4891
|
+
DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
4892
|
+
})(DynamicMoDuleViewModeEnum || (DynamicMoDuleViewModeEnum = {}));
|
|
4893
|
+
|
|
4882
4894
|
/**
|
|
4883
4895
|
* Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
|
|
4884
4896
|
*/
|
|
@@ -4911,5 +4923,5 @@ class TextareaField extends BaseField {
|
|
|
4911
4923
|
* Generated bundle index. Do not edit.
|
|
4912
4924
|
*/
|
|
4913
4925
|
|
|
4914
|
-
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
|
|
4926
|
+
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 };
|
|
4915
4927
|
//# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map
|