ps-toolkit-ui 0.0.125 → 0.0.129

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.
@@ -2600,6 +2600,7 @@
2600
2600
  }
2601
2601
  }
2602
2602
  else if (option.Action === 'Delete') {
2603
+ opt.class = opt.class.replace('blue', 'red');
2603
2604
  opt.onClick = function () {
2604
2605
  if (_this.table.form) {
2605
2606
  _this.table.form.clear();
@@ -2635,7 +2636,7 @@
2635
2636
  var e_2, _a;
2636
2637
  if (opt.modal.table) {
2637
2638
  var p = new PermissionClass();
2638
- p.RelatedId = btn.row.Id;
2639
+ p.RelatedId = btn.row.Data.Id;
2639
2640
  p.Area = _this.table.permissions.Area;
2640
2641
  p.Controller = _this.table.permissions.Controller;
2641
2642
  p.Action = option.Action;
@@ -2649,8 +2650,8 @@
2649
2650
  }
2650
2651
  if (opt.modal.form) {
2651
2652
  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);
2653
+ opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Data.Id;
2654
+ opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Data.Id);
2654
2655
  opt.modal.form.onSuccessBase = function () {
2655
2656
  opt.modal.hide();
2656
2657
  };
@@ -2661,7 +2662,7 @@
2661
2662
  var r = _c.value;
2662
2663
  if (r.table) {
2663
2664
  var p = new PermissionClass();
2664
- p.RelatedId = btn.row.Id;
2665
+ p.RelatedId = btn.row.Data.Id;
2665
2666
  p.Area = _this.table.permissions.Area;
2666
2667
  p.Controller = _this.table.permissions.Controller;
2667
2668
  p.Action = r.name;
@@ -2710,7 +2711,7 @@
2710
2711
  p.Area = _this.table.permissions.Area;
2711
2712
  p.Controller = _this.table.permissions.Controller;
2712
2713
  p.Action = option.Action;
2713
- _this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + btn.row.Id, null, function () {
2714
+ _this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + btn.row.Data.Id, null, function () {
2714
2715
  _this.table.load();
2715
2716
  });
2716
2717
  };
@@ -7216,8 +7217,9 @@
7216
7217
  try {
7217
7218
  for (var _b = __values(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; })), _c = _b.next(); !_c.done; _c = _b.next()) {
7218
7219
  var access = _c.value;
7219
- var accessInp = new InputClass(this.environment, this.l, access.Name, access.Icon, access.InputType === exports.PermissionInputTypeEnum.Button ? exports.InputType.Button : exports.InputType.Icon, 'w-u h-30');
7220
+ var accessInp = new InputClass(this.environment, this.l, access.Name, access.Icon, access.InputType === exports.PermissionInputTypeEnum.Button ? exports.InputType.Button : exports.InputType.Icon, 'blue w-u h-30');
7220
7221
  if (access.Action === 'Insert') {
7222
+ accessInp.class = accessInp.class.replace('blue', 'green');
7221
7223
  if (this.form) {
7222
7224
  this.form.url = this.form.baseUrl = this.url + 'Insert';
7223
7225
  if (!this.form.onTop) {
@@ -7228,14 +7230,12 @@
7228
7230
  };
7229
7231
  _this.showInsertModal();
7230
7232
  };
7231
- this.buttons.unshift(accessInp);
7232
7233
  }
7233
7234
  else {
7234
7235
  this.form.displayLabel = false;
7235
7236
  }
7236
7237
  }
7237
7238
  else {
7238
- this.buttons.unshift(accessInp);
7239
7239
  if (this.modal) {
7240
7240
  accessInp.onClick = function () {
7241
7241
  _this.modal.show();