ps-toolkit-ui 1.8.51 → 1.8.53

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.
@@ -2758,7 +2758,7 @@
2758
2758
  return (relatedId ? url.replace('{}', relatedId) : url).replace('{}', rowId);
2759
2759
  };
2760
2760
  TableRowComponent.prototype.setOptions = function () {
2761
- var e_1, _a, e_2, _b;
2761
+ var e_1, _b, e_2, _c;
2762
2762
  var _this = this;
2763
2763
  var opts = [];
2764
2764
  var _loop_1 = function (option) {
@@ -2775,15 +2775,15 @@
2775
2775
  };
2776
2776
  var this_1 = this;
2777
2777
  try {
2778
- 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()) {
2779
- 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;
2780
2780
  _loop_1(option);
2781
2781
  }
2782
2782
  }
2783
2783
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2784
2784
  finally {
2785
2785
  try {
2786
- if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
2786
+ if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
2787
2787
  }
2788
2788
  finally { if (e_1) throw e_1.error; }
2789
2789
  }
@@ -2862,7 +2862,7 @@
2862
2862
  else if (option.InputAction === exports.PermissionInputActionEnum.Modal) {
2863
2863
  opt.modal = this_2.table.optionsActions.find(function (x) { return x.name === option.Action; });
2864
2864
  opt.onClick = function () {
2865
- var e_3, _a;
2865
+ var e_3, _b;
2866
2866
  if (opt.modal.table) {
2867
2867
  var p = new PermissionClass();
2868
2868
  p.RelatedId = _this.row.Data.Id;
@@ -2905,15 +2905,15 @@
2905
2905
  }
2906
2906
  };
2907
2907
  try {
2908
- for (var _b = (e_3 = void 0, __values(opt.modal.accordion.rows)), _c = _b.next(); !_c.done; _c = _b.next()) {
2909
- 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;
2910
2910
  _loop_3(r);
2911
2911
  }
2912
2912
  }
2913
2913
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
2914
2914
  finally {
2915
2915
  try {
2916
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2916
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
2917
2917
  }
2918
2918
  finally { if (e_3) throw e_3.error; }
2919
2919
  }
@@ -2950,15 +2950,15 @@
2950
2950
  };
2951
2951
  var this_2 = this;
2952
2952
  try {
2953
- 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()) {
2954
- 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;
2955
2955
  _loop_2(option);
2956
2956
  }
2957
2957
  }
2958
2958
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
2959
2959
  finally {
2960
2960
  try {
2961
- if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
2961
+ if (_g && !_g.done && (_c = _f.return)) _c.call(_f);
2962
2962
  }
2963
2963
  finally { if (e_2) throw e_2.error; }
2964
2964
  }
@@ -3014,7 +3014,10 @@
3014
3014
  return HelperClass.getFileSize(cv);
3015
3015
  }
3016
3016
  else if (col.type === exports.TableCollType.Price) {
3017
- return cv.toLocaleString() + ' ' + this.table.l('Rial');
3017
+ try {
3018
+ return parseFloat(cv).toLocaleString() + ' ' + this.table.l('Rial');
3019
+ }
3020
+ catch (_a) { }
3018
3021
  }
3019
3022
  else if (col.type === exports.TableCollType.Number) {
3020
3023
  return cv.toLocaleString();
@@ -5733,6 +5736,7 @@
5733
5736
  this.inp.table.style = { padding: 0, boxShadow: 'unset' };
5734
5737
  this.inp.table.permissions = p;
5735
5738
  this.inp.table.showExtraButtons = false;
5739
+ this.inp.table.loading = false;
5736
5740
  this.inp.table.cols.forEach(function (x) { return x.sort = false; });
5737
5741
  if (this.inp.table.form) {
5738
5742
  this.inp.table.form.onTop = true;