ps-toolkit-ui 0.0.2 → 0.0.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 +7 -7
- 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 +2 -1
- package/esm2015/lib/components/table/report/table.report.component.js +2 -2
- package/esm2015/lib/components/table/row/table.row.component.js +5 -7
- package/fesm2015/ps-toolkit-ui.js +7 -7
- 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')) {
|
|
@@ -2416,7 +2412,9 @@
|
|
|
2416
2412
|
_this.table.form.onSuccessBase = function () {
|
|
2417
2413
|
_this.table.modal.hide();
|
|
2418
2414
|
if (_this.table.childrenAutoLoad) {
|
|
2419
|
-
|
|
2415
|
+
console.log(11111);
|
|
2416
|
+
console.log(_this.row.ParentId);
|
|
2417
|
+
_this.loadParent.emit(_this.row.ParentId);
|
|
2420
2418
|
}
|
|
2421
2419
|
else {
|
|
2422
2420
|
_this.table.load();
|
|
@@ -2497,7 +2495,7 @@
|
|
|
2497
2495
|
TableRowComponent.prototype.getOptions = function () {
|
|
2498
2496
|
var _this = this;
|
|
2499
2497
|
return (this.addChildren !== null && (this.table.level === null || this.table.level > this.level) ? [this.addChildren] : [])
|
|
2500
|
-
.concat(this.table.options.filter(function (x) { return x.condition == null || x.condition
|
|
2498
|
+
.concat(this.table.options.filter(function (x) { return x.condition == null || _this.row[x.condition]; }).map(function (o) {
|
|
2501
2499
|
var i = HelperClass.clone(o);
|
|
2502
2500
|
if (i.url) {
|
|
2503
2501
|
i.url = i.url.replace('{}', _this.row.Id);
|
|
@@ -5043,6 +5041,7 @@
|
|
|
5043
5041
|
this.Children = Children;
|
|
5044
5042
|
this.Accesses = Accesses;
|
|
5045
5043
|
this.RelatedId = null;
|
|
5044
|
+
this.Condition = null;
|
|
5046
5045
|
}
|
|
5047
5046
|
PermissionClass.prototype.hasAccess = function (a) {
|
|
5048
5047
|
return this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; }).length > 0;
|
|
@@ -6385,7 +6384,7 @@
|
|
|
6385
6384
|
if (_this.table.hasChildren && _this.row.ParentId != null) {
|
|
6386
6385
|
_this.table.form.onSuccessBase = function () {
|
|
6387
6386
|
_this.table.modal.hide();
|
|
6388
|
-
_this.loadParent.emit(_this.row.
|
|
6387
|
+
_this.loadParent.emit(_this.row.ParentId);
|
|
6389
6388
|
};
|
|
6390
6389
|
}
|
|
6391
6390
|
else {
|
|
@@ -7119,6 +7118,7 @@
|
|
|
7119
7118
|
return "continue";
|
|
7120
7119
|
}
|
|
7121
7120
|
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');
|
|
7121
|
+
opt.condition = option.Condition;
|
|
7122
7122
|
if (option.Type === exports.PermissionTypeEnum.OptionLink || option.Type === exports.PermissionTypeEnum.OptionLinkNewTab) {
|
|
7123
7123
|
var p = new PermissionClass();
|
|
7124
7124
|
p.RelatedId = this_1.permissions.RelatedId;
|