ps-toolkit-ui 1.17.43 → 1.17.45

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.
@@ -1802,6 +1802,7 @@
1802
1802
  return HelperClass;
1803
1803
  }());
1804
1804
 
1805
+ exports.request = null;
1805
1806
  var RequestClass = /** @class */ (function () {
1806
1807
  function RequestClass(environment, l) {
1807
1808
  if (environment === void 0) { environment = null; }
@@ -2152,14 +2153,17 @@
2152
2153
  data: data,
2153
2154
  headers: token == null ? {} : { Authorization: token }
2154
2155
  };
2155
- var request = $$1.ajax(settings);
2156
- request.done(function (response) {
2156
+ if (exports.request != null) {
2157
+ exports.request.abort();
2158
+ }
2159
+ exports.request = $$1.ajax(settings);
2160
+ exports.request.done(function (response) {
2157
2161
  if (!_this.environment.production) {
2158
2162
  console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
2159
2163
  }
2160
2164
  done(response);
2161
2165
  });
2162
- request.fail(function (response) {
2166
+ exports.request.fail(function (response) {
2163
2167
  if (!_this.environment.production) {
2164
2168
  console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #8c413a; color: white', response);
2165
2169
  }
@@ -2688,7 +2692,6 @@
2688
2692
  }
2689
2693
  else if (_this.type === exports.InputType.Tree || _this.type === exports.InputType.TreeRadio) {
2690
2694
  _this.rows = _this.getRows(result, null);
2691
- console.log(_this.rows);
2692
2695
  }
2693
2696
  if (done) {
2694
2697
  done();
@@ -2709,7 +2712,6 @@
2709
2712
  }
2710
2713
  else if (this.type === exports.InputType.Tree || this.type === exports.InputType.TreeRadio) {
2711
2714
  this.rows = this.getRows(result_1, null);
2712
- console.log(this.rows);
2713
2715
  }
2714
2716
  }
2715
2717
  }