ps-toolkit-ui 1.4.23 → 1.4.26
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 -16
- 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 +3 -2
- package/esm2015/lib/components/table/row/table.row.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +1 -15
- package/fesm2015/ps-toolkit-ui.js +3 -16
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2736,7 +2736,7 @@
|
|
|
2736
2736
|
p.Area = this_2.table.permissions.Area;
|
|
2737
2737
|
p.Controller = option.Controller;
|
|
2738
2738
|
p.Action = option.Action;
|
|
2739
|
-
opt.url = '/
|
|
2739
|
+
opt.url = '/file' + this_2.getOptionUrl(option.Url, this_2.table.permissions.RelatedId, this_2.row.Data.Id);
|
|
2740
2740
|
opt.urlNewTab = true;
|
|
2741
2741
|
}
|
|
2742
2742
|
else if (option.InputAction === exports.PermissionInputActionEnum.Confirm) {
|
|
@@ -2988,20 +2988,6 @@
|
|
|
2988
2988
|
TableComponent.prototype.ngOnInit = function () {
|
|
2989
2989
|
var e_1, _a;
|
|
2990
2990
|
var _this = this;
|
|
2991
|
-
// if (this.app.isReport){
|
|
2992
|
-
// this.table.perPage = -1;
|
|
2993
|
-
// this.table.extraButtons = false;
|
|
2994
|
-
// this.table.displayLabel = false;
|
|
2995
|
-
// this.table.isReport = true;
|
|
2996
|
-
// this.table.permissions.Accesses = ['List'];
|
|
2997
|
-
// this.table.permissions.Options = [];
|
|
2998
|
-
// this.table.cols.forEach(x => x.sort = false);
|
|
2999
|
-
// this.table.onLoad = () => {
|
|
3000
|
-
// setTimeout(() => {
|
|
3001
|
-
// window.print();
|
|
3002
|
-
// }, 500);
|
|
3003
|
-
// };
|
|
3004
|
-
// }
|
|
3005
2991
|
this.loadIcon = new InputClass(this.table.environment, null, 'LoadIcon');
|
|
3006
2992
|
this.sizeIcon = new InputClass(this.table.environment, null, 'SizeIcon');
|
|
3007
2993
|
if (this.table.hasChildren) {
|
|
@@ -7475,6 +7461,7 @@
|
|
|
7475
7461
|
if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
|
|
7476
7462
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7477
7463
|
if (this_1.form) {
|
|
7464
|
+
console.log(access.Url.replace('{}', this_1.permissions.RelatedId), access);
|
|
7478
7465
|
this_1.form.url = this_1.form.baseUrl = access.Url.replace('{}', this_1.permissions.RelatedId);
|
|
7479
7466
|
if (!this_1.form.onTop) {
|
|
7480
7467
|
accessInp.onClick = function () {
|
|
@@ -7508,7 +7495,7 @@
|
|
|
7508
7495
|
p.Controller = 'print';
|
|
7509
7496
|
p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
|
|
7510
7497
|
var params = $$1.param(_this.searchData(true));
|
|
7511
|
-
window.open('/report' +
|
|
7498
|
+
window.open('/report' + access.Url + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
|
|
7512
7499
|
(params ? '?' + params : ''), '_blank');
|
|
7513
7500
|
};
|
|
7514
7501
|
}
|