ps-toolkit-ui 0.0.182 → 0.0.187

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.
@@ -7170,12 +7170,14 @@
7170
7170
  this.loading = false;
7171
7171
  }
7172
7172
  };
7173
- TableClass.prototype.searchData = function () {
7173
+ TableClass.prototype.searchData = function (report) {
7174
7174
  var e_1, _a;
7175
- var d = {
7176
- Page: this.page,
7177
- PerPage: this.perPage,
7178
- };
7175
+ if (report === void 0) { report = false; }
7176
+ var d = {};
7177
+ if (!report) {
7178
+ d.Page = this.page;
7179
+ d.PerPage = this.perPage;
7180
+ }
7179
7181
  if (this.sortable) {
7180
7182
  d.Sort = 'Priority';
7181
7183
  d.SortType = 'ASC';
@@ -7269,13 +7271,14 @@
7269
7271
  }
7270
7272
  }
7271
7273
  else if (access.AccessType === exports.PermissionAccessTypeEnum.Print) {
7272
- var p = new PermissionClass();
7273
- p.RelatedId = 'Index';
7274
- p.Area = this_1.permissions.Area;
7275
- p.Controller = 'Print';
7276
- p.Action = this_1.permissions.Controller;
7277
- accessInp.url = '/Report' + p.getUrl();
7278
- accessInp.urlNewTab = true;
7274
+ var p_1 = new PermissionClass();
7275
+ p_1.RelatedId = 'Index';
7276
+ p_1.Area = this_1.permissions.Area;
7277
+ p_1.Controller = 'Print';
7278
+ p_1.Action = this_1.permissions.Controller + this_1.permissions.Action ? this_1.permissions.Action : null;
7279
+ accessInp.onClick = function () {
7280
+ window.open('/Report' + p_1.getUrl() + '?' + $.param(_this.searchData(true)), '_blank');
7281
+ };
7279
7282
  }
7280
7283
  else if (access.InputAction === exports.PermissionInputActionEnum.OnClick) {
7281
7284
  accessInp.onClick = function (btn) {