tnx-shared 5.3.386 → 5.3.387
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/tnx-shared.umd.js +14 -3
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/file-explorer/services/download-link.service.d.ts +1 -0
- package/components/file-explorer/services/download-link.service.d.ts.map +1 -1
- package/esm2015/components/file-explorer/file-viewer/file-viewer.component.js +4 -4
- package/esm2015/components/file-explorer/services/download-link.service.js +12 -1
- package/fesm2015/tnx-shared.js +14 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -10289,6 +10289,17 @@
|
|
|
10289
10289
|
};
|
|
10290
10290
|
return this.defaultPost(url, model);
|
|
10291
10291
|
};
|
|
10292
|
+
DownloadLinkService.prototype.convertToPdfBase64 = function (fileName, fileInstanceId, fileVersionInstanceId) {
|
|
10293
|
+
var url = this.serviceUri + "/ConvertDocumentToPdfBase64";
|
|
10294
|
+
var model = {
|
|
10295
|
+
fileName: fileName,
|
|
10296
|
+
fileInstanceId: fileInstanceId,
|
|
10297
|
+
fileVersionInstanceId: fileVersionInstanceId,
|
|
10298
|
+
outputType: this.convertModelType.pdf,
|
|
10299
|
+
toBase64: true
|
|
10300
|
+
};
|
|
10301
|
+
return this.defaultPost(url, model);
|
|
10302
|
+
};
|
|
10292
10303
|
/**
|
|
10293
10304
|
* Lấy danh sách file trong một thư mục
|
|
10294
10305
|
* @param serviceCode : mã dịch vụ
|
|
@@ -50106,12 +50117,12 @@
|
|
|
50106
50117
|
};
|
|
50107
50118
|
FileViewerComponent.prototype.print = function () {
|
|
50108
50119
|
var _this = this;
|
|
50109
|
-
this._downloadLinkService.
|
|
50120
|
+
this._downloadLinkService.convertToPdfBase64(this.data.name, this.data.fileId, this.data.fileVersionId)
|
|
50110
50121
|
.then(function (rs) {
|
|
50111
|
-
if (!rs.success || !rs.data
|
|
50122
|
+
if (!rs.success || !rs.data) {
|
|
50112
50123
|
return;
|
|
50113
50124
|
}
|
|
50114
|
-
_this._fileExplorerService.print(rs.data
|
|
50125
|
+
_this._fileExplorerService.print(rs.data);
|
|
50115
50126
|
});
|
|
50116
50127
|
};
|
|
50117
50128
|
FileViewerComponent.prototype.download = function () {
|