ps-toolkit-ui 0.0.123 → 0.0.127

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 () {
@@ -2629,15 +2630,12 @@
2629
2630
  opt.urlNewTab = option.InputAction === exports.PermissionInputActionEnum.LinkNewTab;
2630
2631
  }
2631
2632
  else if (option.InputAction === exports.PermissionInputActionEnum.Modal) {
2632
- console.log(this_1.table.modals);
2633
- console.log(option.Action);
2634
- console.log(this_1.table.modals.find(function (x) { return x.name === option.Action; }));
2635
2633
  opt.modal = this_1.table.modals.find(function (x) { return x.name === option.Action; });
2636
2634
  opt.onClick = function (btn) {
2637
2635
  var e_2, _a;
2638
2636
  if (opt.modal.table) {
2639
2637
  var p = new PermissionClass();
2640
- p.RelatedId = btn.row.Id;
2638
+ p.RelatedId = btn.row.Data.Id;
2641
2639
  p.Area = _this.table.permissions.Area;
2642
2640
  p.Controller = _this.table.permissions.Controller;
2643
2641
  p.Action = option.Action;
@@ -2651,8 +2649,8 @@
2651
2649
  }
2652
2650
  if (opt.modal.form) {
2653
2651
  opt.modal.form.name = option.Name;
2654
- opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
2655
- 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);
2656
2654
  opt.modal.form.onSuccessBase = function () {
2657
2655
  opt.modal.hide();
2658
2656
  };
@@ -2663,7 +2661,7 @@
2663
2661
  var r = _c.value;
2664
2662
  if (r.table) {
2665
2663
  var p = new PermissionClass();
2666
- p.RelatedId = btn.row.Id;
2664
+ p.RelatedId = btn.row.Data.Id;
2667
2665
  p.Area = _this.table.permissions.Area;
2668
2666
  p.Controller = _this.table.permissions.Controller;
2669
2667
  p.Action = r.name;
@@ -2712,7 +2710,7 @@
2712
2710
  p.Area = _this.table.permissions.Area;
2713
2711
  p.Controller = _this.table.permissions.Controller;
2714
2712
  p.Action = option.Action;
2715
- _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 () {
2716
2714
  _this.table.load();
2717
2715
  });
2718
2716
  };
@@ -7215,6 +7213,8 @@
7215
7213
  this.permission = false;
7216
7214
  return;
7217
7215
  }
7216
+ console.log(this.permissions.getAccesses());
7217
+ console.log(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; }));
7218
7218
  try {
7219
7219
  for (var _b = __values(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; })), _c = _b.next(); !_c.done; _c = _b.next()) {
7220
7220
  var access = _c.value;