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.
- package/bundles/ps-toolkit-ui.umd.js +8 -3
- 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/chart.class.js +2 -2
- package/esm2015/lib/classes/currentDataClass.js +15 -0
- package/esm2015/lib/classes/permission.class.js +3 -2
- package/esm2015/lib/components/base.component.js +5 -2
- package/esm2015/lib/components/layout/layout.component.js +1 -1
- package/esm2015/lib/components/sidebar/sidebar.component.js +1 -1
- package/esm2015/public-api.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +7 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/{current-data.class.d.ts → currentDataClass.d.ts} +0 -0
- package/lib/classes/permission.class.d.ts +2 -1
- package/lib/components/base.component.d.ts +1 -0
- package/lib/components/layout/layout.component.d.ts +1 -1
- package/lib/components/sidebar/sidebar.component.d.ts +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2015/lib/classes/current-data.class.js +0 -15
|
@@ -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
|
|
7619
|
+
if (data.filter(function (x) { return x !== 0; }).length === 0) {
|
|
7615
7620
|
this.empty = true;
|
|
7616
7621
|
return;
|
|
7617
7622
|
}
|