ps-toolkit-ui 0.0.37 → 0.0.38
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.
- package/bundles/ps-toolkit-ui.umd.js +3 -4
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/permission.class.js +3 -4
- package/fesm2015/ps-toolkit-ui.js +2 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/permission.class.d.ts +2 -3
- package/package.json +1 -1
|
@@ -5056,14 +5056,14 @@
|
|
|
5056
5056
|
};
|
|
5057
5057
|
|
|
5058
5058
|
var PermissionClass = /** @class */ (function () {
|
|
5059
|
-
function PermissionClass(Name, Icon, Type, Area, Controller, Action,
|
|
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 (
|
|
5066
|
+
if (Condition === void 0) { Condition = null; }
|
|
5067
5067
|
if (Accesses === void 0) { Accesses = []; }
|
|
5068
5068
|
this.Name = Name;
|
|
5069
5069
|
this.Icon = Icon;
|
|
@@ -5071,10 +5071,9 @@
|
|
|
5071
5071
|
this.Area = Area;
|
|
5072
5072
|
this.Controller = Controller;
|
|
5073
5073
|
this.Action = Action;
|
|
5074
|
-
this.
|
|
5074
|
+
this.Condition = Condition;
|
|
5075
5075
|
this.Accesses = Accesses;
|
|
5076
5076
|
this.RelatedId = null;
|
|
5077
|
-
this.Condition = null;
|
|
5078
5077
|
}
|
|
5079
5078
|
PermissionClass.prototype.getAccess = function (a) {
|
|
5080
5079
|
var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; });
|