ps-toolkit-ui 0.0.126 → 0.0.130

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();
@@ -2634,6 +2635,7 @@
2634
2635
  opt.onClick = function (btn) {
2635
2636
  var e_2, _a;
2636
2637
  if (opt.modal.table) {
2638
+ console.log(_this.table.permissions, 'this.table.permissions');
2637
2639
  var p = new PermissionClass();
2638
2640
  p.RelatedId = btn.row.Data.Id;
2639
2641
  p.Area = _this.table.permissions.Area;
@@ -2726,7 +2728,7 @@
2726
2728
  };
2727
2729
  var this_1 = this;
2728
2730
  try {
2729
- for (var _b = __values(this.row.Options), _c = _b.next(); !_c.done; _c = _b.next()) {
2731
+ for (var _b = __values(this.row.Options.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Option; })), _c = _b.next(); !_c.done; _c = _b.next()) {
2730
2732
  var option = _c.value;
2731
2733
  _loop_1(option);
2732
2734
  }
@@ -7216,8 +7218,9 @@
7216
7218
  try {
7217
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()) {
7218
7220
  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');
7221
+ 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
7222
  if (access.Action === 'Insert') {
7223
+ accessInp.class = accessInp.class.replace('blue', 'green');
7221
7224
  if (this.form) {
7222
7225
  this.form.url = this.form.baseUrl = this.url + 'Insert';
7223
7226
  if (!this.form.onTop) {
@@ -7228,14 +7231,12 @@
7228
7231
  };
7229
7232
  _this.showInsertModal();
7230
7233
  };
7231
- this.buttons.unshift(accessInp);
7232
7234
  }
7233
7235
  else {
7234
7236
  this.form.displayLabel = false;
7235
7237
  }
7236
7238
  }
7237
7239
  else {
7238
- this.buttons.unshift(accessInp);
7239
7240
  if (this.modal) {
7240
7241
  accessInp.onClick = function () {
7241
7242
  _this.modal.show();