tuain-ng-forms-lib 13.0.13 → 13.0.15
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/forms/basic-form.mjs +21 -6
- package/fesm2015/tuain-ng-forms-lib.mjs +20 -5
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +20 -5
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/components/forms/basic-form.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2190,6 +2190,8 @@ class BasicFormComponent {
|
|
|
2190
2190
|
this.formSubject = null;
|
|
2191
2191
|
this._errorType = '';
|
|
2192
2192
|
this.errorCode = '';
|
|
2193
|
+
this.errorFullCode = '';
|
|
2194
|
+
this.errorName = '';
|
|
2193
2195
|
this.errorMessage = '';
|
|
2194
2196
|
this.errorDetail = '';
|
|
2195
2197
|
this.visible = false;
|
|
@@ -2397,6 +2399,8 @@ class BasicFormComponent {
|
|
|
2397
2399
|
cleanStart() {
|
|
2398
2400
|
this._errorType = '';
|
|
2399
2401
|
this.errorCode = '';
|
|
2402
|
+
this.errorFullCode = '';
|
|
2403
|
+
this.errorName = '';
|
|
2400
2404
|
this.errorMessage = '';
|
|
2401
2405
|
this.errorDetail = '';
|
|
2402
2406
|
this._formStructure = null;
|
|
@@ -2518,11 +2522,19 @@ class BasicFormComponent {
|
|
|
2518
2522
|
this.errorMessage = errorMessage || '';
|
|
2519
2523
|
this.errorDetail = errorDetail || '';
|
|
2520
2524
|
}
|
|
2521
|
-
resetError() {
|
|
2525
|
+
resetError() {
|
|
2526
|
+
this.errorCode = NO_ERROR;
|
|
2527
|
+
this.errorFullCode = '';
|
|
2528
|
+
this.errorName = '';
|
|
2529
|
+
this.errorMessage = '';
|
|
2530
|
+
this.errorDetail = '';
|
|
2531
|
+
}
|
|
2522
2532
|
getErrorType() { return this._errorType; }
|
|
2523
2533
|
getErrorMessage() { return this.errorMessage; }
|
|
2524
2534
|
getErrorDetail() { return this.errorDetail; }
|
|
2525
|
-
|
|
2535
|
+
getErrorName() { return this.errorName; }
|
|
2536
|
+
getErrorFullCode() { return this.errorFullCode; }
|
|
2537
|
+
getErrorCode() { return this.errorCode; }
|
|
2526
2538
|
getFormParameter(name) {
|
|
2527
2539
|
return (name) ? (this.extraData?.[name] ?? null) : null;
|
|
2528
2540
|
}
|
|
@@ -2630,6 +2642,8 @@ class BasicFormComponent {
|
|
|
2630
2642
|
return false;
|
|
2631
2643
|
}
|
|
2632
2644
|
this.errorCode = recordResponse.errorCode;
|
|
2645
|
+
this.errorFullCode = recordResponse.errorFullCode;
|
|
2646
|
+
this.errorName = recordResponse.errorName;
|
|
2633
2647
|
this.errorMessage = recordResponse.errorMessage;
|
|
2634
2648
|
this.errorDetail = recordResponse.errorDetail;
|
|
2635
2649
|
return true;
|
|
@@ -2652,17 +2666,18 @@ class BasicFormComponent {
|
|
|
2652
2666
|
immutableData: this._formStructure?.immutableData,
|
|
2653
2667
|
};
|
|
2654
2668
|
this.errorCode = NO_ERROR;
|
|
2669
|
+
this.errorFullCode = '';
|
|
2670
|
+
this.errorName = '';
|
|
2655
2671
|
this.errorMessage = '';
|
|
2656
2672
|
this.errorDetail = '';
|
|
2657
2673
|
this.busy = true;
|
|
2658
2674
|
const formActionResponse = await this.formManagerService.execServerAction(actionDetail);
|
|
2659
2675
|
this.busy = false;
|
|
2660
|
-
if (formActionResponse && formActionResponse.error.errorType) {
|
|
2661
|
-
console.log('Excepción no soportada');
|
|
2662
|
-
}
|
|
2663
2676
|
if (formActionResponse.hasError()) {
|
|
2664
2677
|
const error = formActionResponse.error;
|
|
2665
2678
|
this.errorCode = error.errorCode;
|
|
2679
|
+
this.errorFullCode = error.errorFullCode;
|
|
2680
|
+
this.errorName = error.errorName;
|
|
2666
2681
|
this.errorMessage = error.errorMessage;
|
|
2667
2682
|
this.errorDetail = error.errorDetail;
|
|
2668
2683
|
}
|