ps-toolkit-ui 0.0.40 → 0.0.41
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 -0
- 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 +4 -1
- package/fesm2015/ps-toolkit-ui.js +3 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/permission.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -5086,6 +5086,9 @@
|
|
|
5086
5086
|
PermissionClass.prototype.getOptions = function () {
|
|
5087
5087
|
return this.Accesses.filter(function (x) { return x.Type !== exports.PermissionTypeEnum.Access; });
|
|
5088
5088
|
};
|
|
5089
|
+
PermissionClass.prototype.getOption = function (a) {
|
|
5090
|
+
return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
|
|
5091
|
+
};
|
|
5089
5092
|
PermissionClass.prototype.getUrl = function () {
|
|
5090
5093
|
return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
|
|
5091
5094
|
(this.RelatedId ? this.RelatedId + "/" : '') +
|