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.
@@ -2232,6 +2232,8 @@ class BasicFormComponent {
2232
2232
  this.formSubject = null;
2233
2233
  this._errorType = '';
2234
2234
  this.errorCode = '';
2235
+ this.errorFullCode = '';
2236
+ this.errorName = '';
2235
2237
  this.errorMessage = '';
2236
2238
  this.errorDetail = '';
2237
2239
  this.visible = false;
@@ -2492,6 +2494,8 @@ class BasicFormComponent {
2492
2494
  cleanStart() {
2493
2495
  this._errorType = '';
2494
2496
  this.errorCode = '';
2497
+ this.errorFullCode = '';
2498
+ this.errorName = '';
2495
2499
  this.errorMessage = '';
2496
2500
  this.errorDetail = '';
2497
2501
  this._formStructure = null;
@@ -2614,11 +2618,19 @@ class BasicFormComponent {
2614
2618
  this.errorMessage = errorMessage || '';
2615
2619
  this.errorDetail = errorDetail || '';
2616
2620
  }
2617
- resetError() { this.setError(null, null, null); }
2621
+ resetError() {
2622
+ this.errorCode = NO_ERROR;
2623
+ this.errorFullCode = '';
2624
+ this.errorName = '';
2625
+ this.errorMessage = '';
2626
+ this.errorDetail = '';
2627
+ }
2618
2628
  getErrorType() { return this._errorType; }
2619
2629
  getErrorMessage() { return this.errorMessage; }
2620
2630
  getErrorDetail() { return this.errorDetail; }
2621
- getErrorCode() { return this._errorType; }
2631
+ getErrorName() { return this.errorName; }
2632
+ getErrorFullCode() { return this.errorFullCode; }
2633
+ getErrorCode() { return this.errorCode; }
2622
2634
  getFormParameter(name) {
2623
2635
  var _a, _b;
2624
2636
  return (name) ? ((_b = (_a = this.extraData) === null || _a === void 0 ? void 0 : _a[name]) !== null && _b !== void 0 ? _b : null) : null;
@@ -2735,6 +2747,8 @@ class BasicFormComponent {
2735
2747
  return false;
2736
2748
  }
2737
2749
  this.errorCode = recordResponse.errorCode;
2750
+ this.errorFullCode = recordResponse.errorFullCode;
2751
+ this.errorName = recordResponse.errorName;
2738
2752
  this.errorMessage = recordResponse.errorMessage;
2739
2753
  this.errorDetail = recordResponse.errorDetail;
2740
2754
  return true;
@@ -2759,17 +2773,18 @@ class BasicFormComponent {
2759
2773
  immutableData: (_c = this._formStructure) === null || _c === void 0 ? void 0 : _c.immutableData,
2760
2774
  };
2761
2775
  this.errorCode = NO_ERROR;
2776
+ this.errorFullCode = '';
2777
+ this.errorName = '';
2762
2778
  this.errorMessage = '';
2763
2779
  this.errorDetail = '';
2764
2780
  this.busy = true;
2765
2781
  const formActionResponse = yield this.formManagerService.execServerAction(actionDetail);
2766
2782
  this.busy = false;
2767
- if (formActionResponse && formActionResponse.error.errorType) {
2768
- console.log('Excepción no soportada');
2769
- }
2770
2783
  if (formActionResponse.hasError()) {
2771
2784
  const error = formActionResponse.error;
2772
2785
  this.errorCode = error.errorCode;
2786
+ this.errorFullCode = error.errorFullCode;
2787
+ this.errorName = error.errorName;
2773
2788
  this.errorMessage = error.errorMessage;
2774
2789
  this.errorDetail = error.errorDetail;
2775
2790
  }