ps-toolkit-ui 1.19.91 → 1.19.93

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.
@@ -3770,8 +3770,8 @@
3770
3770
  }
3771
3771
  };
3772
3772
  TableRowComponent.prototype.rightClickRow = function (e) {
3773
- e.preventDefault();
3774
3773
  if (this.table.withSelect && this.table.onRightClickRow) {
3774
+ e.preventDefault();
3775
3775
  this.table.onRightClickRow(this.row.Data);
3776
3776
  }
3777
3777
  };
@@ -9383,7 +9383,7 @@
9383
9383
  return (relatedId ? url.replace('{}', relatedId) : (url.match(/{}/g) || []).length > 1 ? url.replace('/{}', '') : url).replace('{}', rowId);
9384
9384
  };
9385
9385
  TableClass.prototype.searchData = function (report) {
9386
- var e_1, _b;
9386
+ var e_1, _c;
9387
9387
  if (report === void 0) { report = false; }
9388
9388
  var d = {};
9389
9389
  if (!report) {
@@ -9402,8 +9402,8 @@
9402
9402
  d.SortType = this.sortType;
9403
9403
  }
9404
9404
  try {
9405
- for (var _c = __values(this.cols.filter(function (x) { return x.withSearch && x.search != null && x.search.data() != null && x.search.data() !== ''; })), _d = _c.next(); !_d.done; _d = _c.next()) {
9406
- var c = _d.value;
9405
+ for (var _d = __values(this.cols.filter(function (x) { return x.withSearch && x.search != null && x.search.data() != null && x.search.data() !== ''; })), _e = _d.next(); !_e.done; _e = _d.next()) {
9406
+ var c = _e.value;
9407
9407
  var vl = c.search.data();
9408
9408
  this.addData(d, c.name, vl);
9409
9409
  }
@@ -9411,7 +9411,7 @@
9411
9411
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
9412
9412
  finally {
9413
9413
  try {
9414
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
9414
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
9415
9415
  }
9416
9416
  finally { if (e_1) throw e_1.error; }
9417
9417
  }
@@ -9421,11 +9421,11 @@
9421
9421
  return this.searchForm ? this.searchForm.data(d) : d;
9422
9422
  };
9423
9423
  TableClass.prototype.addData = function (d, name, vl) {
9424
- var e_2, _b;
9424
+ var e_2, _c;
9425
9425
  if (typeof vl === 'object' && !(vl instanceof Array)) {
9426
9426
  try {
9427
- for (var _c = __values(Object.entries(vl)), _d = _c.next(); !_d.done; _d = _c.next()) {
9428
- var _e = __read(_d.value, 2), key = _e[0], value = _e[1];
9427
+ for (var _d = __values(Object.entries(vl)), _e = _d.next(); !_e.done; _e = _d.next()) {
9428
+ var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
9429
9429
  if (value != null) {
9430
9430
  d[key] = value;
9431
9431
  }
@@ -9434,7 +9434,7 @@
9434
9434
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
9435
9435
  finally {
9436
9436
  try {
9437
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
9437
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
9438
9438
  }
9439
9439
  finally { if (e_2) throw e_2.error; }
9440
9440
  }
@@ -9466,7 +9466,7 @@
9466
9466
  this.modal.show(data);
9467
9467
  };
9468
9468
  TableClass.prototype.set = function (changeRows) {
9469
- var e_3, _b, e_4, _c;
9469
+ var e_3, _c, e_4, _d;
9470
9470
  var _this = this;
9471
9471
  if (changeRows === void 0) { changeRows = null; }
9472
9472
  this.permission = true;
@@ -9571,15 +9571,15 @@
9571
9571
  };
9572
9572
  var this_1 = this;
9573
9573
  try {
9574
- for (var _d = __values(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; })), _e = _d.next(); !_e.done; _e = _d.next()) {
9575
- var access = _e.value;
9574
+ for (var _e = __values(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; })), _f = _e.next(); !_f.done; _f = _e.next()) {
9575
+ var access = _f.value;
9576
9576
  _loop_1(access);
9577
9577
  }
9578
9578
  }
9579
9579
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
9580
9580
  finally {
9581
9581
  try {
9582
- if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
9582
+ if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
9583
9583
  }
9584
9584
  finally { if (e_3) throw e_3.error; }
9585
9585
  }
@@ -9613,15 +9613,15 @@
9613
9613
  };
9614
9614
  var this_2 = this;
9615
9615
  try {
9616
- for (var _f = __values(this.permissions.getOptions().filter(function (x) { return x.Multi; })), _g = _f.next(); !_g.done; _g = _f.next()) {
9617
- var option = _g.value;
9616
+ for (var _g = __values(this.permissions.getOptions().filter(function (x) { return x.Multi; })), _h = _g.next(); !_h.done; _h = _g.next()) {
9617
+ var option = _h.value;
9618
9618
  _loop_2(option);
9619
9619
  }
9620
9620
  }
9621
9621
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
9622
9622
  finally {
9623
9623
  try {
9624
- if (_g && !_g.done && (_c = _f.return)) _c.call(_f);
9624
+ if (_h && !_h.done && (_d = _g.return)) _d.call(_g);
9625
9625
  }
9626
9626
  finally { if (e_4) throw e_4.error; }
9627
9627
  }
@@ -9693,7 +9693,7 @@
9693
9693
  }
9694
9694
  };
9695
9695
  TableClass.prototype.getCell = function (row, col) {
9696
- var e_5, _b;
9696
+ var e_5, _c;
9697
9697
  // console.log('getCell');
9698
9698
  var cv = _.get(row.Data, col.name);
9699
9699
  if (cv === null) {
@@ -9761,7 +9761,7 @@
9761
9761
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
9762
9762
  finally {
9763
9763
  try {
9764
- if (cv_1_1 && !cv_1_1.done && (_b = cv_1.return)) _b.call(cv_1);
9764
+ if (cv_1_1 && !cv_1_1.done && (_c = cv_1.return)) _c.call(cv_1);
9765
9765
  }
9766
9766
  finally { if (e_5) throw e_5.error; }
9767
9767
  }
@@ -9802,6 +9802,7 @@
9802
9802
  };
9803
9803
  TableClass.prototype.excel = function () {
9804
9804
  var _this = this;
9805
+ var _a, _b;
9805
9806
  var data = [];
9806
9807
  this.rows.forEach(function (row) {
9807
9808
  var x = {};
@@ -9810,7 +9811,7 @@
9810
9811
  });
9811
9812
  data.push(x);
9812
9813
  });
9813
- new ExcelClass().exportAsExcelFile(data, this.l(this.name ? this.name : 'ExportExcelData'));
9814
+ new ExcelClass().exportAsExcelFile(data, this.l((_b = (_a = this.permissions) === null || _a === void 0 ? void 0 : _a.Name) !== null && _b !== void 0 ? _b : 'ExportExcelData'));
9814
9815
  };
9815
9816
  TableClass.prototype.getText = function (s) {
9816
9817
  var span = document.createElement('span');