tuain-ng-forms-lib 13.0.13 → 13.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/forms/basic-form.mjs +13 -1
- package/fesm2015/tuain-ng-forms-lib.mjs +12 -0
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +12 -0
- 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;
|
|
@@ -2522,6 +2526,8 @@ class BasicFormComponent {
|
|
|
2522
2526
|
getErrorType() { return this._errorType; }
|
|
2523
2527
|
getErrorMessage() { return this.errorMessage; }
|
|
2524
2528
|
getErrorDetail() { return this.errorDetail; }
|
|
2529
|
+
getErrorName() { return this.errorName; }
|
|
2530
|
+
getErrorFullCode() { return this.errorFullCode; }
|
|
2525
2531
|
getErrorCode() { return this._errorType; }
|
|
2526
2532
|
getFormParameter(name) {
|
|
2527
2533
|
return (name) ? (this.extraData?.[name] ?? null) : null;
|
|
@@ -2630,6 +2636,8 @@ class BasicFormComponent {
|
|
|
2630
2636
|
return false;
|
|
2631
2637
|
}
|
|
2632
2638
|
this.errorCode = recordResponse.errorCode;
|
|
2639
|
+
this.errorFullCode = recordResponse.errorFullCode;
|
|
2640
|
+
this.errorName = recordResponse.errorName;
|
|
2633
2641
|
this.errorMessage = recordResponse.errorMessage;
|
|
2634
2642
|
this.errorDetail = recordResponse.errorDetail;
|
|
2635
2643
|
return true;
|
|
@@ -2652,6 +2660,8 @@ class BasicFormComponent {
|
|
|
2652
2660
|
immutableData: this._formStructure?.immutableData,
|
|
2653
2661
|
};
|
|
2654
2662
|
this.errorCode = NO_ERROR;
|
|
2663
|
+
this.errorFullCode = '';
|
|
2664
|
+
this.errorName = '';
|
|
2655
2665
|
this.errorMessage = '';
|
|
2656
2666
|
this.errorDetail = '';
|
|
2657
2667
|
this.busy = true;
|
|
@@ -2663,6 +2673,8 @@ class BasicFormComponent {
|
|
|
2663
2673
|
if (formActionResponse.hasError()) {
|
|
2664
2674
|
const error = formActionResponse.error;
|
|
2665
2675
|
this.errorCode = error.errorCode;
|
|
2676
|
+
this.errorFullCode = error.errorFullCode;
|
|
2677
|
+
this.errorName = error.errorName;
|
|
2666
2678
|
this.errorMessage = error.errorMessage;
|
|
2667
2679
|
this.errorDetail = error.errorDetail;
|
|
2668
2680
|
}
|