ps-toolkit-ui 1.4.24 → 1.4.27

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.
@@ -2988,20 +2988,6 @@
2988
2988
  TableComponent.prototype.ngOnInit = function () {
2989
2989
  var e_1, _a;
2990
2990
  var _this = this;
2991
- // if (this.app.isReport){
2992
- // this.table.perPage = -1;
2993
- // this.table.extraButtons = false;
2994
- // this.table.displayLabel = false;
2995
- // this.table.isReport = true;
2996
- // this.table.permissions.Accesses = ['List'];
2997
- // this.table.permissions.Options = [];
2998
- // this.table.cols.forEach(x => x.sort = false);
2999
- // this.table.onLoad = () => {
3000
- // setTimeout(() => {
3001
- // window.print();
3002
- // }, 500);
3003
- // };
3004
- // }
3005
2991
  this.loadIcon = new InputClass(this.table.environment, null, 'LoadIcon');
3006
2992
  this.sizeIcon = new InputClass(this.table.environment, null, 'SizeIcon');
3007
2993
  if (this.table.hasChildren) {
@@ -7438,7 +7424,7 @@
7438
7424
  TableClass.prototype.showInsertModal = function (cId) {
7439
7425
  if (cId === void 0) { cId = null; }
7440
7426
  var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
7441
- this.form.url = this.form.baseUrl = insertAccess.Url + (cId ? '/' + cId : '');
7427
+ this.form.url = this.form.baseUrl = insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : '');
7442
7428
  this.form.name = insertAccess.Name;
7443
7429
  this.form.method = exports.Method.Post;
7444
7430
  this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
@@ -7508,7 +7494,7 @@
7508
7494
  p.Controller = 'print';
7509
7495
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
7510
7496
  var params = $$1.param(_this.searchData(true));
7511
- window.open('/report' + p.getUrl() + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
7497
+ window.open('/report' + access.Url + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
7512
7498
  (params ? '?' + params : ''), '_blank');
7513
7499
  };
7514
7500
  }