ps-toolkit-ui 1.20.14 → 1.20.16

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.
@@ -9221,6 +9221,7 @@
9221
9221
  this.withCheck = false;
9222
9222
  this.withSelect = false;
9223
9223
  this.showExtraButtons = true;
9224
+ this.firstLoad = true;
9224
9225
  this.extraButtons = [];
9225
9226
  this.form = null;
9226
9227
  this.searchForm = null;
@@ -9488,7 +9489,9 @@
9488
9489
  this.title = this.listAccess.Name;
9489
9490
  this.url = this.getUrl(this.listAccess.Url);
9490
9491
  if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
9491
- this.load();
9492
+ if (this.firstLoad) {
9493
+ this.load();
9494
+ }
9492
9495
  }
9493
9496
  else {
9494
9497
  this.loading = false;
@@ -9546,7 +9549,8 @@
9546
9549
  p.Controller = 'print';
9547
9550
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
9548
9551
  var params = $$1.param(_this.searchData(true));
9549
- window.open('/report' + _this.getUrl(access.Url) + (params ? '?' + params : ''), '_blank');
9552
+ var u = _this.getUrl(access.Url);
9553
+ window.open('/report' + u + (params ? (u.includes('?') ? '&' : '?') + params : ''), '_blank');
9550
9554
  };
9551
9555
  }
9552
9556
  else if (access.InputAction === exports.PermissionInputActionEnum.Modal) {
@@ -9599,7 +9603,8 @@
9599
9603
  if (option.AccessType === exports.PermissionAccessTypeEnum.Report) {
9600
9604
  opt.onClick = function () {
9601
9605
  var params = _this.data().map(function (x) { return 'Ids=' + x.Id; }).join('&');
9602
- window.open('/report' + _this.getOptionUrl(option.Url, _this.permissions.RelatedId, '') + (params ? '?' + params : ''), '_blank');
9606
+ var u = _this.getOptionUrl(option.Url, _this.permissions.RelatedId, '');
9607
+ window.open('/report' + u + (params ? (u.includes('?') ? '&' : '?') + params : ''), '_blank');
9603
9608
  };
9604
9609
  }
9605
9610
  else if (option.InputAction === exports.PermissionInputActionEnum.OnClick) {