ps-toolkit-ui 0.0.215 → 0.0.216

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.
@@ -314,6 +314,9 @@
314
314
  LangClass.prototype.get = function (area, c, k, v) {
315
315
  var _this = this;
316
316
  if (v === void 0) { v = null; }
317
+ if (k.match(/^-?\d+$/) || k.match(/^\d+\.\d+$/)) {
318
+ return k;
319
+ }
317
320
  var cv = _.get(this.lang, area ? area + "." + c + "." + k : c + "." + k);
318
321
  if (!cv) {
319
322
  cv = _.get(this.lang, "Public." + c + "." + k);
@@ -827,7 +830,7 @@
827
830
  PermissionAccessTypeEnum[PermissionAccessTypeEnum["Insert"] = 2] = "Insert";
828
831
  PermissionAccessTypeEnum[PermissionAccessTypeEnum["Update"] = 3] = "Update";
829
832
  PermissionAccessTypeEnum[PermissionAccessTypeEnum["Delete"] = 4] = "Delete";
830
- PermissionAccessTypeEnum[PermissionAccessTypeEnum["Print"] = 5] = "Print";
833
+ PermissionAccessTypeEnum[PermissionAccessTypeEnum["Report"] = 5] = "Report";
831
834
  })(exports.PermissionAccessTypeEnum || (exports.PermissionAccessTypeEnum = {}));
832
835
  (function (PermissionInputActionEnum) {
833
836
  PermissionInputActionEnum[PermissionInputActionEnum["None"] = 0] = "None";
@@ -2658,9 +2661,8 @@
2658
2661
  }
2659
2662
  };
2660
2663
  }
2661
- else if (option.AccessType === exports.PermissionAccessTypeEnum.Print) {
2664
+ else if (option.AccessType === exports.PermissionAccessTypeEnum.Report) {
2662
2665
  var p = new PermissionClass();
2663
- p.RelatedId = 'Index';
2664
2666
  p.Area = this_1.table.permissions.Area;
2665
2667
  p.Controller = 'Print';
2666
2668
  p.Action = option.Controller;
@@ -2816,6 +2818,9 @@
2816
2818
  else if (col.type === exports.TableCollType.Image) {
2817
2819
  return '<img class="h-100" alt="" src="' + this.service.environment.url + cv + '"/>';
2818
2820
  }
2821
+ else if (col.type === exports.TableCollType.FileSize) {
2822
+ return HelperClass.getFileSize(cv);
2823
+ }
2819
2824
  else if (col.type === exports.TableCollType.Price) {
2820
2825
  return cv.toLocaleString() + ' ' + this.table.l('Rial');
2821
2826
  }
@@ -3003,7 +3008,7 @@
3003
3008
  return a + percent;
3004
3009
  }, 0);
3005
3010
  this.reload = new InputClass(this.table.environment, this.table.l, 'Reload', 'fa-duotone fa-sync-alt', exports.InputType.Icon, 'm-h-5');
3006
- this.maximum = new InputClass(this.table.environment, this.table.l, 'Maximum', 'fa-duotone fa-expand-arrows-alt', exports.InputType.Icon, 'm-h-5');
3011
+ this.maximum = new InputClass(this.table.environment, this.table.l, 'Maximum', 'fa-duotone fa-arrows-maximize', exports.InputType.Icon, 'm-h-5');
3007
3012
  this.optDelete = new InputClass(this.table.environment, this.table.l, 'Delete', 'fa-duotone fa-trash', exports.InputType.Icon, 'red h-25 m-h-5 d-ib va-m f-u');
3008
3013
  try {
3009
3014
  for (var _b = __values(this.table.cols.filter(function (x) { return x.withSearch; })), _c = _b.next(); !_c.done; _c = _b.next()) {
@@ -3047,7 +3052,7 @@
3047
3052
  };
3048
3053
  this.maximum.onClick = function () {
3049
3054
  $__namespace(_this.tableDiv.nativeElement).toggleClass('maximum');
3050
- _this.maximum.icon = _this.maximum.name === 'Minimum' ? 'fa-duotone fa-expand-arrows-alt' : 'fa-duotone fa-compress-arrows-alt';
3055
+ _this.maximum.icon = _this.maximum.name === 'Minimum' ? 'fa-duotone fa-arrows-maximize' : 'fa-duotone fa-arrows-minimize';
3051
3056
  _this.maximum.name = _this.maximum.name === 'Minimum' ? 'Maximum' : 'Minimum';
3052
3057
  };
3053
3058
  this.optDelete.onClick = function (i) {
@@ -7468,10 +7473,9 @@
7468
7473
  }
7469
7474
  }
7470
7475
  }
7471
- else if (access.AccessType === exports.PermissionAccessTypeEnum.Print) {
7476
+ else if (access.AccessType === exports.PermissionAccessTypeEnum.Report) {
7472
7477
  accessInp.onClick = function () {
7473
7478
  var p = new PermissionClass();
7474
- p.RelatedId = 'Index';
7475
7479
  p.Area = _this.permissions.Area;
7476
7480
  p.Controller = 'Print';
7477
7481
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');