ps-toolkit-ui 1.22.12 → 1.22.16

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.
@@ -1961,7 +1961,7 @@
1961
1961
  HelperClass.addNotification(_this.l(m));
1962
1962
  }
1963
1963
  if (failure) {
1964
- failure(m);
1964
+ failure(m, res);
1965
1965
  }
1966
1966
  if (btn) {
1967
1967
  btn.loading = false;
@@ -1969,7 +1969,7 @@
1969
1969
  }
1970
1970
  }, function (res) {
1971
1971
  if (failure) {
1972
- failure('Error');
1972
+ failure('Error', res);
1973
1973
  }
1974
1974
  if (btn) {
1975
1975
  btn.loading = false;
@@ -1997,9 +1997,9 @@
1997
1997
  if (btn) {
1998
1998
  btn.loading = false;
1999
1999
  }
2000
- }, function () {
2000
+ }, function (res) {
2001
2001
  if (failure) {
2002
- failure('Error');
2002
+ failure('Error', res);
2003
2003
  }
2004
2004
  if (btn) {
2005
2005
  btn.loading = false;
@@ -2249,7 +2249,7 @@
2249
2249
  HelperClass.addNotification(m);
2250
2250
  }
2251
2251
  if (_this.onFailed) {
2252
- _this.onFailed(res.message);
2252
+ _this.onFailed(res.message, res);
2253
2253
  }
2254
2254
  }
2255
2255
  try {
@@ -2265,11 +2265,11 @@
2265
2265
  }
2266
2266
  finally { if (e_3) throw e_3.error; }
2267
2267
  }
2268
- }, function () {
2268
+ }, function (res) {
2269
2269
  var e_4, _c;
2270
2270
  HelperClass.addNotification(_this.l('Error'));
2271
2271
  if (_this.onFailed) {
2272
- _this.onFailed('Error');
2272
+ _this.onFailed('Error', res);
2273
2273
  }
2274
2274
  try {
2275
2275
  for (var btns_4 = __values(btns), btns_4_1 = btns_4.next(); !btns_4_1.done; btns_4_1 = btns_4.next()) {
@@ -2640,6 +2640,11 @@
2640
2640
  _this.setOptions(r);
2641
2641
  }
2642
2642
  else if (_this.type === exports.InputType.Tree || _this.type === exports.InputType.TreeRadio) {
2643
+ result.forEach(function (x) {
2644
+ var _a;
2645
+ x.Id = x.Id.toString();
2646
+ x.ParentId = ((_a = x.ParentId) !== null && _a !== void 0 ? _a : null) !== null ? x.ParentId.toString() : null;
2647
+ });
2643
2648
  _this.rows = _this.getRows(result, null);
2644
2649
  if (_this.value != null) {
2645
2650
  setTimeout(function () {