ps-toolkit-ui 1.20.29 → 1.20.31

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.
@@ -3948,6 +3948,15 @@
3948
3948
  this.export.onClick = function () {
3949
3949
  $__namespace(_this.exportDropDown.nativeElement).slideToggle();
3950
3950
  };
3951
+ this.print.onClick = function () {
3952
+ var url = _this.table.permissions.getAccess(exports.PermissionAccessTypeEnum.List).Url.replace('/list', '/report').replace('-list', '-report');
3953
+ var data = _this.table.searchData();
3954
+ data.Page = 1;
3955
+ data.PerPage = -1;
3956
+ new RequestClass(_this.table.environment, _this.table.l).send(url, exports.Method.Post, data, _this.print, function (result) {
3957
+ window.open('/report' + url + '/' + result, '_blank');
3958
+ }, function () { });
3959
+ };
3951
3960
  $__namespace(document).mouseup(function (e) {
3952
3961
  var container = $__namespace(_this.exportDropDown.nativeElement);
3953
3962
  // @ts-ignore