ps-toolkit-ui 1.4.28 → 1.4.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.
@@ -2654,14 +2654,18 @@
2654
2654
  _this.changeRows.emit(_this.row.Data);
2655
2655
  }
2656
2656
  else {
2657
- _this.confirmShow.emit({ url: _this.getOptionUrl(option.Url, _this.table.permissions.RelatedId, _this.row.Data.Id), accept: function () {
2657
+ _this.confirmShow.emit({
2658
+ action: option.Action,
2659
+ url: _this.getOptionUrl(option.Url, _this.table.permissions.RelatedId, _this.row.Data.Id),
2660
+ accept: function () {
2658
2661
  if (_this.table.hasChildren && _this.table.childrenAutoLoad && _this.row.Data.ParentId != null) {
2659
2662
  _this.loadParent.emit(_this.row.Data.ParentId);
2660
2663
  }
2661
2664
  else {
2662
2665
  _this.table.load();
2663
2666
  }
2664
- } });
2667
+ }
2668
+ });
2665
2669
  }
2666
2670
  };
2667
2671
  }
@@ -3112,7 +3116,7 @@
3112
3116
  return this.changeRows.emit(e);
3113
3117
  };
3114
3118
  TableComponent.prototype.onConfirmShow = function (e) {
3115
- this.confirm.show(this.table.l('DeleteConfirm'), e.url, null, e.accept);
3119
+ this.confirm.show(this.table.l(e.action + 'Confirm'), e.url, null, e.accept);
3116
3120
  };
3117
3121
  TableComponent.prototype.changeSort = function (e, s) {
3118
3122
  if ($__namespace(e.target).closest('.header-search').hasClass('header-search')) {
@@ -7424,9 +7428,6 @@
7424
7428
  TableClass.prototype.showInsertModal = function (cId) {
7425
7429
  if (cId === void 0) { cId = null; }
7426
7430
  var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
7427
- console.log(insertAccess);
7428
- console.log(cId, 'cId');
7429
- console.log(insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : ''));
7430
7431
  this.form.url = this.form.baseUrl = insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : '');
7431
7432
  this.form.name = insertAccess.Name;
7432
7433
  this.form.method = exports.Method.Post;