ps-toolkit-ui 1.19.90 → 1.19.92

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.
@@ -282,6 +282,8 @@
282
282
  Minimum: 'کوچک نمایی',
283
283
  Export: 'خروجی',
284
284
  Send: 'ارسال',
285
+ ExportExcel: 'خروجی فایل اکسل',
286
+ ExportExcelData: 'خروجی اطلاعات',
285
287
  And: ' و ',
286
288
  UsernamePasswordInvalid: 'نام کاربری یا کلمه عبور اشتباه است',
287
289
  DbUpdateException: 'امکان حذف رکورد مورد نظر به دلیل استفاده شدن در سامانه وجود ندارد',
@@ -3877,7 +3879,7 @@
3877
3879
  var e_1, _a;
3878
3880
  var _this = this;
3879
3881
  this.reload = new InputClass(this.table.environment, this.table.l, 'Reload', 'fad fa-sync-alt', exports.InputType.Icon, 'm-r-10-p');
3880
- this.excel = new InputClass(this.table.environment, this.table.l, 'Excel', 'fad fa-arrow-down-to-line f-s-21', exports.InputType.Icon, 'm-r-10-p');
3882
+ this.excel = new InputClass(this.table.environment, this.table.l, 'ExportExcel', 'fad fa-arrow-down-to-line f-s-21', exports.InputType.Icon, 'm-r-10-p');
3881
3883
  this.maximum = new InputClass(this.table.environment, this.table.l, 'Maximum', 'fad fa-arrows-maximize', exports.InputType.Icon, 'm-r-10-p');
3882
3884
  this.expertSearch = new InputClass(this.table.environment, this.table.l, 'ExpertSearch', 'fad fa-magnifying-glass', exports.InputType.Icon, 'm-r-10-p');
3883
3885
  try {
@@ -9381,7 +9383,7 @@
9381
9383
  return (relatedId ? url.replace('{}', relatedId) : (url.match(/{}/g) || []).length > 1 ? url.replace('/{}', '') : url).replace('{}', rowId);
9382
9384
  };
9383
9385
  TableClass.prototype.searchData = function (report) {
9384
- var e_1, _b;
9386
+ var e_1, _c;
9385
9387
  if (report === void 0) { report = false; }
9386
9388
  var d = {};
9387
9389
  if (!report) {
@@ -9400,8 +9402,8 @@
9400
9402
  d.SortType = this.sortType;
9401
9403
  }
9402
9404
  try {
9403
- 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()) {
9404
- 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;
9405
9407
  var vl = c.search.data();
9406
9408
  this.addData(d, c.name, vl);
9407
9409
  }
@@ -9409,7 +9411,7 @@
9409
9411
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
9410
9412
  finally {
9411
9413
  try {
9412
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
9414
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
9413
9415
  }
9414
9416
  finally { if (e_1) throw e_1.error; }
9415
9417
  }
@@ -9419,11 +9421,11 @@
9419
9421
  return this.searchForm ? this.searchForm.data(d) : d;
9420
9422
  };
9421
9423
  TableClass.prototype.addData = function (d, name, vl) {
9422
- var e_2, _b;
9424
+ var e_2, _c;
9423
9425
  if (typeof vl === 'object' && !(vl instanceof Array)) {
9424
9426
  try {
9425
- for (var _c = __values(Object.entries(vl)), _d = _c.next(); !_d.done; _d = _c.next()) {
9426
- 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];
9427
9429
  if (value != null) {
9428
9430
  d[key] = value;
9429
9431
  }
@@ -9432,7 +9434,7 @@
9432
9434
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
9433
9435
  finally {
9434
9436
  try {
9435
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
9437
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
9436
9438
  }
9437
9439
  finally { if (e_2) throw e_2.error; }
9438
9440
  }
@@ -9464,7 +9466,7 @@
9464
9466
  this.modal.show(data);
9465
9467
  };
9466
9468
  TableClass.prototype.set = function (changeRows) {
9467
- var e_3, _b, e_4, _c;
9469
+ var e_3, _c, e_4, _d;
9468
9470
  var _this = this;
9469
9471
  if (changeRows === void 0) { changeRows = null; }
9470
9472
  this.permission = true;
@@ -9569,15 +9571,15 @@
9569
9571
  };
9570
9572
  var this_1 = this;
9571
9573
  try {
9572
- for (var _d = __values(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; })), _e = _d.next(); !_e.done; _e = _d.next()) {
9573
- 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;
9574
9576
  _loop_1(access);
9575
9577
  }
9576
9578
  }
9577
9579
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
9578
9580
  finally {
9579
9581
  try {
9580
- if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
9582
+ if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
9581
9583
  }
9582
9584
  finally { if (e_3) throw e_3.error; }
9583
9585
  }
@@ -9611,15 +9613,15 @@
9611
9613
  };
9612
9614
  var this_2 = this;
9613
9615
  try {
9614
- for (var _f = __values(this.permissions.getOptions().filter(function (x) { return x.Multi; })), _g = _f.next(); !_g.done; _g = _f.next()) {
9615
- 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;
9616
9618
  _loop_2(option);
9617
9619
  }
9618
9620
  }
9619
9621
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
9620
9622
  finally {
9621
9623
  try {
9622
- if (_g && !_g.done && (_c = _f.return)) _c.call(_f);
9624
+ if (_h && !_h.done && (_d = _g.return)) _d.call(_g);
9623
9625
  }
9624
9626
  finally { if (e_4) throw e_4.error; }
9625
9627
  }
@@ -9691,7 +9693,7 @@
9691
9693
  }
9692
9694
  };
9693
9695
  TableClass.prototype.getCell = function (row, col) {
9694
- var e_5, _b;
9696
+ var e_5, _c;
9695
9697
  // console.log('getCell');
9696
9698
  var cv = _.get(row.Data, col.name);
9697
9699
  if (cv === null) {
@@ -9759,7 +9761,7 @@
9759
9761
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
9760
9762
  finally {
9761
9763
  try {
9762
- 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);
9763
9765
  }
9764
9766
  finally { if (e_5) throw e_5.error; }
9765
9767
  }
@@ -9800,6 +9802,7 @@
9800
9802
  };
9801
9803
  TableClass.prototype.excel = function () {
9802
9804
  var _this = this;
9805
+ var _a, _b;
9803
9806
  var data = [];
9804
9807
  this.rows.forEach(function (row) {
9805
9808
  var x = {};
@@ -9808,7 +9811,7 @@
9808
9811
  });
9809
9812
  data.push(x);
9810
9813
  });
9811
- new ExcelClass().exportAsExcelFile(data, this.name ? this.name : 'ExportData');
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'));
9812
9815
  };
9813
9816
  TableClass.prototype.getText = function (s) {
9814
9817
  var span = document.createElement('span');