ps-toolkit-ui 0.0.2 → 0.0.3
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 +2 -1
- package/esm2015/lib/classes/table.class.js +3 -1
- package/esm2015/lib/components/table/row/table.row.component.js +1 -5
- package/fesm2015/ps-toolkit-ui.js +3 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/permission.class.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2379,10 +2379,6 @@
|
|
|
2379
2379
|
_this.table.showInsertModal();
|
|
2380
2380
|
};
|
|
2381
2381
|
}
|
|
2382
|
-
console.log(this.row.CountChild > 0);
|
|
2383
|
-
console.log(!this.table.childrenAutoLoad);
|
|
2384
|
-
console.log((!this.table.childrenAutoLoad && this.children.length > 0));
|
|
2385
|
-
console.log(this.row.CountChild > 0 || (!this.table.childrenAutoLoad && this.children.length > 0));
|
|
2386
2382
|
this.showChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'SubsetTitle', 'fad fa-angle-left f-s-22', this.row.CountChild > 0 || (!this.table.childrenAutoLoad && this.children.length > 0) ? exports.InputType.Icon : exports.InputType.Hidden, 'h-25 m-h-5 d-ib va-m f-u');
|
|
2387
2383
|
this.showChildren.onClick = function () {
|
|
2388
2384
|
if ($__namespace(_this.childrenDiv.nativeElement).is(':visible')) {
|
|
@@ -5043,6 +5039,7 @@
|
|
|
5043
5039
|
this.Children = Children;
|
|
5044
5040
|
this.Accesses = Accesses;
|
|
5045
5041
|
this.RelatedId = null;
|
|
5042
|
+
this.Condition = null;
|
|
5046
5043
|
}
|
|
5047
5044
|
PermissionClass.prototype.hasAccess = function (a) {
|
|
5048
5045
|
return this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; }).length > 0;
|
|
@@ -7118,7 +7115,9 @@
|
|
|
7118
7115
|
if (this_1.options.filter(function (x) { return x.name === option.Name; }).length > 0) {
|
|
7119
7116
|
return "continue";
|
|
7120
7117
|
}
|
|
7118
|
+
console.log(this_1.permissions, 'this.permissions');
|
|
7121
7119
|
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');
|
|
7120
|
+
opt.condition = this_1.permissions.Condition;
|
|
7122
7121
|
if (option.Type === exports.PermissionTypeEnum.OptionLink || option.Type === exports.PermissionTypeEnum.OptionLinkNewTab) {
|
|
7123
7122
|
var p = new PermissionClass();
|
|
7124
7123
|
p.RelatedId = this_1.permissions.RelatedId;
|