ps-toolkit-ui 0.0.38 → 0.0.39
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 +1 -5
- 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/table.class.js +1 -2
- package/esm2015/lib/components/base.component.js +2 -2
- package/esm2015/lib/components/table/row/table.row.component.js +1 -4
- package/fesm2015/ps-toolkit-ui.js +1 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2525,9 +2525,6 @@
|
|
|
2525
2525
|
};
|
|
2526
2526
|
TableRowComponent.prototype.getOptions = function () {
|
|
2527
2527
|
var _this = this;
|
|
2528
|
-
console.log(this.table.options);
|
|
2529
|
-
console.log(this.table.options.map(function (x) { return x.condition; }));
|
|
2530
|
-
console.log(this.table.options.map(function (x) { return _this.row[x.condition]; }));
|
|
2531
2528
|
return (this.addChildren !== null && (this.table.level === null || this.table.level > this.level) ? [this.addChildren] : [])
|
|
2532
2529
|
.concat(this.table.options.filter(function (x) { return x.condition == null ||
|
|
2533
2530
|
(x.condition.startsWith('!') ? !_this.row[x.condition.substring(1)] : _this.row[x.condition]); }).map(function (o) {
|
|
@@ -6903,7 +6900,7 @@
|
|
|
6903
6900
|
return p.length > 0 ? this.getPermissionClass(p[0]) : null;
|
|
6904
6901
|
};
|
|
6905
6902
|
BaseComponent.prototype.getPermissionClass = function (p) {
|
|
6906
|
-
return new PermissionClass(p.Name, p.Icon, p.Type,
|
|
6903
|
+
return new PermissionClass(p.Name, p.Icon, p.Type, this.app.area, p.Controller, p.Action, p.Condition, this.getPermissionAccessesClass(p.Id));
|
|
6907
6904
|
};
|
|
6908
6905
|
BaseComponent.prototype.getPermissionAccessesClass = function (parentId) {
|
|
6909
6906
|
var _this = this;
|
|
@@ -7139,7 +7136,6 @@
|
|
|
7139
7136
|
return "continue";
|
|
7140
7137
|
}
|
|
7141
7138
|
var opt = new InputClass(this_1.environment, this_1.l, option.Name, option.Icon, exports.InputType.Icon, 'blue h-25 m-h-5 d-ib va-m f-u');
|
|
7142
|
-
console.log(option.Condition, 'option.Condition option.Condition');
|
|
7143
7139
|
opt.condition = option.Condition;
|
|
7144
7140
|
if (option.Type === exports.PermissionTypeEnum.OptionLink || option.Type === exports.PermissionTypeEnum.OptionLinkNewTab) {
|
|
7145
7141
|
var p = new PermissionClass();
|