ps-toolkit-ui 0.0.190 → 0.0.194
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 +10 -8
- 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 +9 -8
- package/esm2015/lib/components/table/row/table.row.component.js +3 -2
- package/fesm2015/ps-toolkit-ui.js +10 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2501,6 +2501,7 @@
|
|
|
2501
2501
|
if (this.table.hasChildren) {
|
|
2502
2502
|
if (!this.table.childrenAutoLoad) {
|
|
2503
2503
|
this.children = this.getChildren();
|
|
2504
|
+
console.log(this.table, this.children, 'this.children');
|
|
2504
2505
|
}
|
|
2505
2506
|
if (this.table.permissions.hasAccess(exports.PermissionAccessTypeEnum.Insert)) {
|
|
2506
2507
|
this.addChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'AddSubsetTitle', 'fad fa-plus fa-rotate-90', exports.InputType.Icon, 'green m-h-5 h-25 d-ib va-m f-u');
|
|
@@ -2861,7 +2862,7 @@
|
|
|
2861
2862
|
};
|
|
2862
2863
|
TableRowComponent.prototype.getChildren = function () {
|
|
2863
2864
|
var _this = this;
|
|
2864
|
-
return this.row.Data.Id ? this.table.rows.filter(function (x) { return x.ParentId === _this.row.Data.Id; }) : [];
|
|
2865
|
+
return this.row.Data.Id ? this.table.rows.filter(function (x) { return x.Data.ParentId === _this.row.Data.Id; }) : [];
|
|
2865
2866
|
};
|
|
2866
2867
|
return TableRowComponent;
|
|
2867
2868
|
}());
|
|
@@ -7271,14 +7272,15 @@
|
|
|
7271
7272
|
}
|
|
7272
7273
|
}
|
|
7273
7274
|
else if (access.AccessType === exports.PermissionAccessTypeEnum.Print) {
|
|
7274
|
-
var p_1 = new PermissionClass();
|
|
7275
|
-
p_1.RelatedId = 'Index';
|
|
7276
|
-
p_1.Area = this_1.permissions.Area;
|
|
7277
|
-
p_1.Controller = 'Print';
|
|
7278
|
-
console.log(this_1.permissions, 'this.permissions');
|
|
7279
|
-
p_1.Action = this_1.permissions.Controller + (this_1.permissions.Action ? this_1.permissions.Action : '');
|
|
7280
7275
|
accessInp.onClick = function () {
|
|
7281
|
-
|
|
7276
|
+
var p = new PermissionClass();
|
|
7277
|
+
p.RelatedId = 'Index';
|
|
7278
|
+
p.Area = _this.permissions.Area;
|
|
7279
|
+
p.Controller = 'Print';
|
|
7280
|
+
p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
|
|
7281
|
+
var params = $.param(_this.searchData(true));
|
|
7282
|
+
window.open('/Report' + p.getUrl() + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
|
|
7283
|
+
(params ? '?' + params : ''), '_blank');
|
|
7282
7284
|
};
|
|
7283
7285
|
}
|
|
7284
7286
|
else if (access.InputAction === exports.PermissionInputActionEnum.OnClick) {
|