ps-toolkit-ui 1.20.58 → 1.20.60
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 +6 -6
- 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/components/table/table.component.js +7 -7
- package/fesm2015/ps-toolkit-ui.js +6 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/table/table.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/assets/scripts/base.js +0 -4
|
@@ -3956,16 +3956,16 @@
|
|
|
3956
3956
|
$__namespace(_this.exportDropDown.nativeElement).slideToggle();
|
|
3957
3957
|
};
|
|
3958
3958
|
this.pdf.onClick = function () {
|
|
3959
|
-
_this.exportTable(exports.TableExportType.Pdf);
|
|
3959
|
+
_this.exportTable(exports.TableExportType.Pdf, _this.pdf);
|
|
3960
3960
|
};
|
|
3961
3961
|
this.excel.onClick = function () {
|
|
3962
|
-
_this.exportTable(exports.TableExportType.Excel);
|
|
3962
|
+
_this.exportTable(exports.TableExportType.Excel, _this.excel);
|
|
3963
3963
|
};
|
|
3964
3964
|
this.excelUi.onClick = function () {
|
|
3965
3965
|
_this.table.excel();
|
|
3966
3966
|
};
|
|
3967
3967
|
this.print.onClick = function () {
|
|
3968
|
-
_this.exportTable(exports.TableExportType.Print);
|
|
3968
|
+
_this.exportTable(exports.TableExportType.Print, _this.print);
|
|
3969
3969
|
};
|
|
3970
3970
|
this.maximum.onClick = function () {
|
|
3971
3971
|
$__namespace(_this.tableDiv.nativeElement).toggleClass('maximum');
|
|
@@ -3979,7 +3979,7 @@
|
|
|
3979
3979
|
_this.confirm.show(l, url, data, accept);
|
|
3980
3980
|
};
|
|
3981
3981
|
};
|
|
3982
|
-
TableComponent.prototype.exportTable = function (type) {
|
|
3982
|
+
TableComponent.prototype.exportTable = function (type, btn) {
|
|
3983
3983
|
var _this = this;
|
|
3984
3984
|
var getWidthValue = function (str) {
|
|
3985
3985
|
var matches = __spread(str.matchAll(/w-(\d+)(?:-(\d+))?/g));
|
|
@@ -4001,7 +4001,7 @@
|
|
|
4001
4001
|
var data = this.table.searchData();
|
|
4002
4002
|
data.Page = 1;
|
|
4003
4003
|
data.PerPage = -1;
|
|
4004
|
-
data.
|
|
4004
|
+
data.ReportType = type;
|
|
4005
4005
|
data.Cols = this.table.cols.map(function (x) {
|
|
4006
4006
|
return {
|
|
4007
4007
|
Name: x.name,
|
|
@@ -4010,7 +4010,7 @@
|
|
|
4010
4010
|
Type: x.type,
|
|
4011
4011
|
};
|
|
4012
4012
|
});
|
|
4013
|
-
new RequestClass(this.table.environment, this.table.l).send(url, exports.Method.Post, data,
|
|
4013
|
+
new RequestClass(this.table.environment, this.table.l).send(url, exports.Method.Post, data, btn, function (result) {
|
|
4014
4014
|
window.open(_this.table.environment.url + '/report/{}/{}'.replace('{}', type).replace('{}', result), '_blank');
|
|
4015
4015
|
}, function () { });
|
|
4016
4016
|
};
|