ps-toolkit-ui 1.4.3 → 1.4.6

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.
@@ -2391,7 +2391,7 @@
2391
2391
  };
2392
2392
 
2393
2393
  var PermissionClass = /** @class */ (function () {
2394
- function PermissionClass(Name, Icon, Type, InputType, AccessType, InputAction, Area, Controller, Action, Condition, Accesses) {
2394
+ function PermissionClass(Name, Icon, Type, InputType, AccessType, InputAction, Area, Controller, Action, Url, Condition, Accesses) {
2395
2395
  if (Name === void 0) { Name = ''; }
2396
2396
  if (Icon === void 0) { Icon = ''; }
2397
2397
  if (Type === void 0) { Type = null; }
@@ -2401,6 +2401,7 @@
2401
2401
  if (Area === void 0) { Area = ''; }
2402
2402
  if (Controller === void 0) { Controller = ''; }
2403
2403
  if (Action === void 0) { Action = ''; }
2404
+ if (Url === void 0) { Url = ''; }
2404
2405
  if (Condition === void 0) { Condition = null; }
2405
2406
  if (Accesses === void 0) { Accesses = []; }
2406
2407
  this.Name = Name;
@@ -2412,6 +2413,7 @@
2412
2413
  this.Area = Area;
2413
2414
  this.Controller = Controller;
2414
2415
  this.Action = Action;
2416
+ this.Url = Url;
2415
2417
  this.Condition = Condition;
2416
2418
  this.Accesses = Accesses;
2417
2419
  this.RelatedId = null;
@@ -7303,7 +7305,7 @@
7303
7305
  return p.length > 0 ? this.getPermissionClass(p[0]) : null;
7304
7306
  };
7305
7307
  BaseComponent.prototype.getPermissionClass = function (p) {
7306
- return new PermissionClass(p.Name, p.Icon, p.Type, p.InputType, p.AccessType, p.InputAction, this.app.area, p.Controller, p.Action, p.Condition, this.getPermissionAccessesClass(p.Id));
7308
+ return new PermissionClass(p.Name, p.Icon, p.Type, p.InputType, p.AccessType, p.InputAction, this.app.area, p.Controller, p.Action, p.Url, p.Condition, this.getPermissionAccessesClass(p.Id));
7307
7309
  };
7308
7310
  BaseComponent.prototype.getPermissionAccessesClass = function (parentId) {
7309
7311
  var _this = this;
@@ -7312,6 +7314,9 @@
7312
7314
  BaseComponent.prototype.hasAccess = function (a) {
7313
7315
  return this.permissions ? this.permissions.hasAccessByName(a) : false;
7314
7316
  };
7317
+ BaseComponent.prototype.getAccess = function (a) {
7318
+ return this.permissions ? this.permissions.getAccessByName(a) : null;
7319
+ };
7315
7320
  BaseComponent.prototype.hasOption = function (a) {
7316
7321
  return this.permissions ? this.permissions.hasAccessByName(a) : false;
7317
7322
  };
@@ -7611,7 +7616,7 @@
7611
7616
  if (categories === void 0) { categories = []; }
7612
7617
  var date = this.l('Date');
7613
7618
  var data = [].concat.apply([], cOpt.series.map(function (o) { return o.data; }));
7614
- if (data.filter(function (x) { return x !== 0; }).length == 0) {
7619
+ if (data.filter(function (x) { return x !== 0; }).length === 0) {
7615
7620
  this.empty = true;
7616
7621
  return;
7617
7622
  }