@eqproject/eqp-dynamic-module 2.0.13 → 2.0.14
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/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +2 -2
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +2 -2
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +3 -3
- package/esm2020/lib/components/private/form-records/view-form-record/view-form-record.component.mjs +2 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +17 -20
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +17 -20
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +1 -1
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +2 -2
- package/lib/components/private/form-records/view-form-record/view-form-record.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,13 +9,10 @@ import * as i2 from '@angular/common/http';
|
|
|
9
9
|
import { Subject, interval } from 'rxjs';
|
|
10
10
|
import * as i5 from '@eqproject/eqp-table';
|
|
11
11
|
import { TypeColumn, NumberColumnPipe, CellAlignmentEnum, EqpTableModule } from '@eqproject/eqp-table';
|
|
12
|
-
import { EqpDynamicModuleDialogService as EqpDynamicModuleDialogService$1 } from 'projects/eqp-dynamic-module/src/lib/services/eqp-dynamic-module-dialog.service';
|
|
13
12
|
import * as i2$1 from '@angular/material/button';
|
|
14
13
|
import { MatButtonModule } from '@angular/material/button';
|
|
15
14
|
import * as i4 from '@angular/material/icon';
|
|
16
15
|
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import { DynamicModuleCompileConfig as DynamicModuleCompileConfig$1 } from 'projects/eqp-dynamic-module/src/lib/models/dynamicModuleCompileConfig.model';
|
|
18
|
-
import { ParamTypeEnum as ParamTypeEnum$1 } from 'projects/eqp-dynamic-module/src/lib/models/endPointConfiguration.model';
|
|
19
16
|
import * as i3$3 from '@angular/material/expansion';
|
|
20
17
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
21
18
|
import * as i11 from '@angular/material/stepper';
|
|
@@ -1196,7 +1193,7 @@ class ListFormRecordComponent {
|
|
|
1196
1193
|
console.log(this.endPointConfiguration);
|
|
1197
1194
|
if (this.endPointConfiguration &&
|
|
1198
1195
|
this.endPointConfiguration.Records.DuplicateEndPoint) {
|
|
1199
|
-
EqpDynamicModuleDialogService
|
|
1196
|
+
EqpDynamicModuleDialogService.Confirm("Duplicare il record selezionato?", () => {
|
|
1200
1197
|
var dynamicModuleParams = [
|
|
1201
1198
|
{
|
|
1202
1199
|
ParamName: "id",
|
|
@@ -1222,7 +1219,7 @@ class ListFormRecordComponent {
|
|
|
1222
1219
|
deleteRecord(record) {
|
|
1223
1220
|
if (this.endPointConfiguration &&
|
|
1224
1221
|
this.endPointConfiguration.Records.DeleteEndPoint) {
|
|
1225
|
-
EqpDynamicModuleDialogService
|
|
1222
|
+
EqpDynamicModuleDialogService.Confirm("Eliminare il record selezionato?", () => {
|
|
1226
1223
|
var dynamicModuleParams = [
|
|
1227
1224
|
{
|
|
1228
1225
|
ParamName: "id",
|
|
@@ -2509,7 +2506,7 @@ class AddFormRecordComponent {
|
|
|
2509
2506
|
{
|
|
2510
2507
|
ParamName: "Record",
|
|
2511
2508
|
ParamValue: dynRec,
|
|
2512
|
-
ParamType: ParamTypeEnum
|
|
2509
|
+
ParamType: ParamTypeEnum["In Body"],
|
|
2513
2510
|
},
|
|
2514
2511
|
];
|
|
2515
2512
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
@@ -2525,7 +2522,7 @@ class AddFormRecordComponent {
|
|
|
2525
2522
|
dynamicModuleParams.push({
|
|
2526
2523
|
ParamName: "id",
|
|
2527
2524
|
ParamValue: id,
|
|
2528
|
-
ParamType: ParamTypeEnum
|
|
2525
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2529
2526
|
});
|
|
2530
2527
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
2531
2528
|
this.form = res;
|
|
@@ -2539,7 +2536,7 @@ class AddFormRecordComponent {
|
|
|
2539
2536
|
{
|
|
2540
2537
|
ParamName: "id",
|
|
2541
2538
|
ParamValue: this.record,
|
|
2542
|
-
ParamType: ParamTypeEnum
|
|
2539
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2543
2540
|
},
|
|
2544
2541
|
];
|
|
2545
2542
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.GetByIDEndPoint, dynamicRecordParams, (res) => {
|
|
@@ -2561,12 +2558,12 @@ class AddFormRecordComponent {
|
|
|
2561
2558
|
{
|
|
2562
2559
|
ParamName: "EntID",
|
|
2563
2560
|
ParamValue: this.record.EntID,
|
|
2564
|
-
ParamType: ParamTypeEnum
|
|
2561
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2565
2562
|
},
|
|
2566
2563
|
{
|
|
2567
2564
|
ParamName: "Version",
|
|
2568
2565
|
ParamValue: this.record.Version,
|
|
2569
|
-
ParamType: ParamTypeEnum
|
|
2566
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2570
2567
|
},
|
|
2571
2568
|
];
|
|
2572
2569
|
console.log("this record", this.record);
|
|
@@ -2688,7 +2685,7 @@ class ViewFormRecordComponent {
|
|
|
2688
2685
|
{
|
|
2689
2686
|
ParamName: "id",
|
|
2690
2687
|
ParamValue: this.record,
|
|
2691
|
-
ParamType: ParamTypeEnum
|
|
2688
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2692
2689
|
},
|
|
2693
2690
|
];
|
|
2694
2691
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.GetByIDEndPoint, dynamicRecordParams, (res) => {
|
|
@@ -2710,12 +2707,12 @@ class ViewFormRecordComponent {
|
|
|
2710
2707
|
{
|
|
2711
2708
|
ParamName: "EntID",
|
|
2712
2709
|
ParamValue: this.record.EntID,
|
|
2713
|
-
ParamType: ParamTypeEnum
|
|
2710
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2714
2711
|
},
|
|
2715
2712
|
{
|
|
2716
2713
|
ParamName: "Version",
|
|
2717
2714
|
ParamValue: this.record.Version,
|
|
2718
|
-
ParamType: ParamTypeEnum
|
|
2715
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2719
2716
|
},
|
|
2720
2717
|
];
|
|
2721
2718
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
|
|
@@ -2830,7 +2827,7 @@ class ListViewFormRecordComponent {
|
|
|
2830
2827
|
this.defaultListActions = this.listConfigurations.defaultListActions;
|
|
2831
2828
|
this.showTitle = this.listConfigurations.showTitle;
|
|
2832
2829
|
console.log('compileConfigurations: ', this.compileConfigurations);
|
|
2833
|
-
this.outCompileConfigurations = new DynamicModuleCompileConfig
|
|
2830
|
+
this.outCompileConfigurations = new DynamicModuleCompileConfig(this.compileConfigurations.showTitle, this.compileConfigurations.showSaveButton, this.compileConfigurations.showBackButton, this.compileConfigurations.userID);
|
|
2834
2831
|
console.log('outcompileConfigurations ', this.outCompileConfigurations);
|
|
2835
2832
|
this.getFormByID();
|
|
2836
2833
|
// this.outCompileConfigurations.userID;
|
|
@@ -2853,7 +2850,7 @@ class ListViewFormRecordComponent {
|
|
|
2853
2850
|
dynamicModuleParams.push({
|
|
2854
2851
|
ParamName: "id",
|
|
2855
2852
|
ParamValue: id,
|
|
2856
|
-
ParamType: ParamTypeEnum
|
|
2853
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2857
2854
|
});
|
|
2858
2855
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
2859
2856
|
this.form = res;
|
|
@@ -2887,7 +2884,7 @@ class ListViewFormRecordComponent {
|
|
|
2887
2884
|
{
|
|
2888
2885
|
ParamName: "EntID",
|
|
2889
2886
|
ParamValue: this.form.ID,
|
|
2890
|
-
ParamType: ParamTypeEnum
|
|
2887
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
2891
2888
|
},
|
|
2892
2889
|
];
|
|
2893
2890
|
await this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetByFormIDEndPoint, dynamicModuleParams, (res) => {
|
|
@@ -3132,12 +3129,12 @@ class ListViewFormRecordComponent {
|
|
|
3132
3129
|
{
|
|
3133
3130
|
ParamName: "EntID",
|
|
3134
3131
|
ParamValue: event.record.EntID,
|
|
3135
|
-
ParamType: ParamTypeEnum
|
|
3132
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
3136
3133
|
},
|
|
3137
3134
|
{
|
|
3138
3135
|
ParamName: "Version",
|
|
3139
3136
|
ParamValue: event.record.Version,
|
|
3140
|
-
ParamType: ParamTypeEnum
|
|
3137
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
3141
3138
|
},
|
|
3142
3139
|
];
|
|
3143
3140
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
|
|
@@ -3147,7 +3144,7 @@ class ListViewFormRecordComponent {
|
|
|
3147
3144
|
{
|
|
3148
3145
|
ParamName: "id",
|
|
3149
3146
|
ParamValue: event.record.ID,
|
|
3150
|
-
ParamType: ParamTypeEnum
|
|
3147
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
3151
3148
|
},
|
|
3152
3149
|
];
|
|
3153
3150
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetByIDEndPoint, dynamicRecordParams, (res) => {
|
|
@@ -3169,7 +3166,7 @@ class ListViewFormRecordComponent {
|
|
|
3169
3166
|
dynamicModuleParams.push({
|
|
3170
3167
|
ParamName: "id",
|
|
3171
3168
|
ParamValue: this.formID,
|
|
3172
|
-
ParamType: ParamTypeEnum
|
|
3169
|
+
ParamType: ParamTypeEnum["Query param"],
|
|
3173
3170
|
});
|
|
3174
3171
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
3175
3172
|
this.form = res;
|