ps-toolkit-ui 1.8.49 → 1.8.52

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.
@@ -1360,9 +1360,7 @@
1360
1360
  else {
1361
1361
  if (typeof res.message === 'string') {
1362
1362
  var am = res.message.split(':');
1363
- console.log(am[0]);
1364
1363
  m = form.l(am[0], am.length > 1 ? am.slice(1) : null);
1365
- console.log(m, 111111);
1366
1364
  }
1367
1365
  else {
1368
1366
  // tslint:disable-next-line:forin
@@ -1392,7 +1390,6 @@
1392
1390
  }
1393
1391
  }
1394
1392
  if (m) {
1395
- console.log(m, 2222222);
1396
1393
  HelperClass.addNotification(m);
1397
1394
  }
1398
1395
  if (form.onFailed) {
@@ -2761,7 +2758,7 @@
2761
2758
  return (relatedId ? url.replace('{}', relatedId) : url).replace('{}', rowId);
2762
2759
  };
2763
2760
  TableRowComponent.prototype.setOptions = function () {
2764
- var e_1, _a, e_2, _b;
2761
+ var e_1, _b, e_2, _c;
2765
2762
  var _this = this;
2766
2763
  var opts = [];
2767
2764
  var _loop_1 = function (option) {
@@ -2778,15 +2775,15 @@
2778
2775
  };
2779
2776
  var this_1 = this;
2780
2777
  try {
2781
- for (var _c = __values(this.row.Options.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Option && x.InputAction === exports.PermissionInputActionEnum.Input; })), _d = _c.next(); !_d.done; _d = _c.next()) {
2782
- var option = _d.value;
2778
+ for (var _d = __values(this.row.Options.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Option && x.InputAction === exports.PermissionInputActionEnum.Input; })), _e = _d.next(); !_e.done; _e = _d.next()) {
2779
+ var option = _e.value;
2783
2780
  _loop_1(option);
2784
2781
  }
2785
2782
  }
2786
2783
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2787
2784
  finally {
2788
2785
  try {
2789
- if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
2786
+ if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
2790
2787
  }
2791
2788
  finally { if (e_1) throw e_1.error; }
2792
2789
  }
@@ -2865,7 +2862,7 @@
2865
2862
  else if (option.InputAction === exports.PermissionInputActionEnum.Modal) {
2866
2863
  opt.modal = this_2.table.optionsActions.find(function (x) { return x.name === option.Action; });
2867
2864
  opt.onClick = function () {
2868
- var e_3, _a;
2865
+ var e_3, _b;
2869
2866
  if (opt.modal.table) {
2870
2867
  var p = new PermissionClass();
2871
2868
  p.RelatedId = _this.row.Data.Id;
@@ -2908,15 +2905,15 @@
2908
2905
  }
2909
2906
  };
2910
2907
  try {
2911
- for (var _b = (e_3 = void 0, __values(opt.modal.accordion.rows)), _c = _b.next(); !_c.done; _c = _b.next()) {
2912
- var r = _c.value;
2908
+ for (var _c = (e_3 = void 0, __values(opt.modal.accordion.rows)), _d = _c.next(); !_d.done; _d = _c.next()) {
2909
+ var r = _d.value;
2913
2910
  _loop_3(r);
2914
2911
  }
2915
2912
  }
2916
2913
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
2917
2914
  finally {
2918
2915
  try {
2919
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2916
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
2920
2917
  }
2921
2918
  finally { if (e_3) throw e_3.error; }
2922
2919
  }
@@ -2953,15 +2950,15 @@
2953
2950
  };
2954
2951
  var this_2 = this;
2955
2952
  try {
2956
- for (var _e = __values(this.row.Options.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Option && x.InputAction !== exports.PermissionInputActionEnum.Input; })), _f = _e.next(); !_f.done; _f = _e.next()) {
2957
- var option = _f.value;
2953
+ for (var _f = __values(this.row.Options.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Option && x.InputAction !== exports.PermissionInputActionEnum.Input; })), _g = _f.next(); !_g.done; _g = _f.next()) {
2954
+ var option = _g.value;
2958
2955
  _loop_2(option);
2959
2956
  }
2960
2957
  }
2961
2958
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
2962
2959
  finally {
2963
2960
  try {
2964
- if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
2961
+ if (_g && !_g.done && (_c = _f.return)) _c.call(_f);
2965
2962
  }
2966
2963
  finally { if (e_2) throw e_2.error; }
2967
2964
  }
@@ -3017,7 +3014,10 @@
3017
3014
  return HelperClass.getFileSize(cv);
3018
3015
  }
3019
3016
  else if (col.type === exports.TableCollType.Price) {
3020
- return cv.toLocaleString() + ' ' + this.table.l('Rial');
3017
+ try {
3018
+ return parseFloat(cv).toLocaleString() + ' ' + this.table.l('Rial');
3019
+ }
3020
+ catch (_a) { }
3021
3021
  }
3022
3022
  else if (col.type === exports.TableCollType.Number) {
3023
3023
  return cv.toLocaleString();
@@ -6527,9 +6527,9 @@
6527
6527
  this.confirm.form.data = function () {
6528
6528
  return data;
6529
6529
  };
6530
- this.confirm.form.onSuccess = function (btn) {
6530
+ this.confirm.form.onSuccess = function (result) {
6531
6531
  _this.confirm.hide();
6532
- accept(btn);
6532
+ accept(result);
6533
6533
  };
6534
6534
  this.confirm.show();
6535
6535
  };