ps-toolkit-ui 0.0.124 → 0.0.128

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.
@@ -2567,6 +2567,7 @@
2567
2567
  [this.addChildren] : [];
2568
2568
  var _loop_1 = function (option) {
2569
2569
  var opt = new InputClass(this_1.table.environment, this_1.table.l, option.Name, option.Icon, option.InputType === exports.PermissionInputTypeEnum.Icon ? exports.InputType.Icon : exports.InputType.Button, 'blue h-25 m-h-5 d-ib va-m f-u');
2570
+ opt.row = this_1.row;
2570
2571
  if (option.Action === 'Update') {
2571
2572
  if (this_1.table.form) {
2572
2573
  opt.onClick = function () {
@@ -2632,10 +2633,9 @@
2632
2633
  opt.modal = this_1.table.modals.find(function (x) { return x.name === option.Action; });
2633
2634
  opt.onClick = function (btn) {
2634
2635
  var e_2, _a;
2635
- console.log(btn, 'btn btn btn');
2636
2636
  if (opt.modal.table) {
2637
2637
  var p = new PermissionClass();
2638
- p.RelatedId = btn.row.Id;
2638
+ p.RelatedId = btn.row.Data.Id;
2639
2639
  p.Area = _this.table.permissions.Area;
2640
2640
  p.Controller = _this.table.permissions.Controller;
2641
2641
  p.Action = option.Action;
@@ -2649,8 +2649,8 @@
2649
2649
  }
2650
2650
  if (opt.modal.form) {
2651
2651
  opt.modal.form.name = option.Name;
2652
- opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
2653
- opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Id);
2652
+ opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Data.Id;
2653
+ opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Data.Id);
2654
2654
  opt.modal.form.onSuccessBase = function () {
2655
2655
  opt.modal.hide();
2656
2656
  };
@@ -2661,7 +2661,7 @@
2661
2661
  var r = _c.value;
2662
2662
  if (r.table) {
2663
2663
  var p = new PermissionClass();
2664
- p.RelatedId = btn.row.Id;
2664
+ p.RelatedId = btn.row.Data.Id;
2665
2665
  p.Area = _this.table.permissions.Area;
2666
2666
  p.Controller = _this.table.permissions.Controller;
2667
2667
  p.Action = r.name;
@@ -2710,7 +2710,7 @@
2710
2710
  p.Area = _this.table.permissions.Area;
2711
2711
  p.Controller = _this.table.permissions.Controller;
2712
2712
  p.Action = option.Action;
2713
- _this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + btn.row.Id, null, function () {
2713
+ _this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + btn.row.Data.Id, null, function () {
2714
2714
  _this.table.load();
2715
2715
  });
2716
2716
  };
@@ -7228,14 +7228,12 @@
7228
7228
  };
7229
7229
  _this.showInsertModal();
7230
7230
  };
7231
- this.buttons.unshift(accessInp);
7232
7231
  }
7233
7232
  else {
7234
7233
  this.form.displayLabel = false;
7235
7234
  }
7236
7235
  }
7237
7236
  else {
7238
- this.buttons.unshift(accessInp);
7239
7237
  if (this.modal) {
7240
7238
  accessInp.onClick = function () {
7241
7239
  _this.modal.show();