ps-toolkit-ui 0.0.47 → 0.0.48

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.
@@ -5083,6 +5083,9 @@
5083
5083
  PermissionClass.prototype.hasAccess = function (a) {
5084
5084
  return this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; }).length > 0;
5085
5085
  };
5086
+ PermissionClass.prototype.deleteAccess = function (a) {
5087
+ this.Accesses = this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; });
5088
+ };
5086
5089
  PermissionClass.prototype.hasOption = function (a) {
5087
5090
  return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; }).length > 0;
5088
5091
  };
@@ -5093,6 +5096,9 @@
5093
5096
  var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
5094
5097
  return c.length > 0 ? c[0] : null;
5095
5098
  };
5099
+ PermissionClass.prototype.deleteOption = function (a) {
5100
+ this.Accesses = this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
5101
+ };
5096
5102
  PermissionClass.prototype.getUrl = function () {
5097
5103
  return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
5098
5104
  (this.RelatedId ? this.RelatedId + "/" : '') +