ps-toolkit-ui 0.0.36 → 0.0.37

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.
@@ -5056,13 +5056,14 @@
5056
5056
  };
5057
5057
 
5058
5058
  var PermissionClass = /** @class */ (function () {
5059
- function PermissionClass(Name, Icon, Type, Area, Controller, Action, Accesses) {
5059
+ function PermissionClass(Name, Icon, Type, Area, Controller, Action, condition, Accesses) {
5060
5060
  if (Name === void 0) { Name = ''; }
5061
5061
  if (Icon === void 0) { Icon = ''; }
5062
5062
  if (Type === void 0) { Type = null; }
5063
5063
  if (Area === void 0) { Area = ''; }
5064
5064
  if (Controller === void 0) { Controller = ''; }
5065
5065
  if (Action === void 0) { Action = ''; }
5066
+ if (condition === void 0) { condition = null; }
5066
5067
  if (Accesses === void 0) { Accesses = []; }
5067
5068
  this.Name = Name;
5068
5069
  this.Icon = Icon;
@@ -5070,6 +5071,7 @@
5070
5071
  this.Area = Area;
5071
5072
  this.Controller = Controller;
5072
5073
  this.Action = Action;
5074
+ this.condition = condition;
5073
5075
  this.Accesses = Accesses;
5074
5076
  this.RelatedId = null;
5075
5077
  this.Condition = null;
@@ -6902,7 +6904,7 @@
6902
6904
  return p.length > 0 ? this.getPermissionClass(p[0]) : null;
6903
6905
  };
6904
6906
  BaseComponent.prototype.getPermissionClass = function (p) {
6905
- return new PermissionClass(p.Name, p.Icon, p.Type, p.Area, p.Controller, p.Action, this.getPermissionAccessesClass(p.Id));
6907
+ return new PermissionClass(p.Name, p.Icon, p.Type, p.Area, p.Controller, p.Action, p.Condition, this.getPermissionAccessesClass(p.Id));
6906
6908
  };
6907
6909
  BaseComponent.prototype.getPermissionAccessesClass = function (parentId) {
6908
6910
  var _this = this;