ps-toolkit-ui 0.0.173 → 0.0.174

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.
@@ -2739,12 +2739,10 @@
2739
2739
  });
2740
2740
  };
2741
2741
  }
2742
- else {
2743
- if (option.OnClick) {
2744
- opt.onClick = function (btn) {
2745
- option.OnClick(btn);
2746
- };
2747
- }
2742
+ else if (option.InputAction === exports.PermissionInputActionEnum.OnClick) {
2743
+ opt.onClick = function (btn) {
2744
+ _this.table.optionsActions.find(function (x) { return x.name === option.Action; }).OnClick(btn);
2745
+ };
2748
2746
  }
2749
2747
  opts.push(opt);
2750
2748
  };
@@ -3016,9 +3014,6 @@
3016
3014
  _this.setSortable();
3017
3015
  };
3018
3016
  }
3019
- if (this.table.hasChildren && this.table.form) {
3020
- this.table.form.inputs.push(new InputClass(this.table.environment, this.table.l, 'ParentId', null, exports.InputType.Hidden, null, null, false));
3021
- }
3022
3017
  this.table.set(this.changeRows);
3023
3018
  if (this.table.searchForm) {
3024
3019
  this.table.searchForm.displayLabel = false;