ps-toolkit-ui 0.0.177 → 0.0.181

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.
@@ -1667,7 +1667,7 @@
1667
1667
  var ivs = _.get(d, inp.name.replace('Id', ''));
1668
1668
  inp.setValue({ Search: ivs, Value: iv }, true);
1669
1669
  }
1670
- else if (inp.type !== exports.InputType.Label) {
1670
+ else if (inp.type !== exports.InputType.Label || iv != null) {
1671
1671
  inp.setValue(iv, true);
1672
1672
  }
1673
1673
  if (inp.type === exports.InputType.SelectAutoCompletePlaque || inp.type === exports.InputType.SelectAutoComplete) {
@@ -2741,8 +2741,7 @@
2741
2741
  }
2742
2742
  else if (option.InputAction === exports.PermissionInputActionEnum.OnClick) {
2743
2743
  opt.onClick = function (btn) {
2744
- console.log(btn, 11111111);
2745
- _this.table.optionsActions.find(function (x) { return x.name === option.Action; }).onClick(_this.row.Data);
2744
+ _this.table.optionsActions.find(function (x) { return x.name === option.Action; }).onClick(btn);
2746
2745
  };
2747
2746
  }
2748
2747
  opts.push(opt);
@@ -7278,6 +7277,11 @@
7278
7277
  accessInp.url = '/Report' + p.getUrl();
7279
7278
  accessInp.urlNewTab = true;
7280
7279
  }
7280
+ else if (access.InputAction === exports.PermissionInputActionEnum.OnClick) {
7281
+ accessInp.onClick = function (btn) {
7282
+ _this.optionsActions.find(function (x) { return x.name === access.Action; }).onClick(btn);
7283
+ };
7284
+ }
7281
7285
  this_1.buttons.push(accessInp);
7282
7286
  };
7283
7287
  var this_1 = this;