tnx-shared 5.3.386 → 5.3.388
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 +17 -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 +15 -1
- package/fesm2015/tnx-shared.js +17 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -10283,12 +10283,26 @@
|
|
|
10283
10283
|
fileName: fileName,
|
|
10284
10284
|
fileInstanceId: fileInstanceId,
|
|
10285
10285
|
fileId: fileInstanceId,
|
|
10286
|
+
fileVersionId: fileVersionInstanceId,
|
|
10286
10287
|
fileVersionInstanceId: fileVersionInstanceId,
|
|
10287
10288
|
outputType: this.convertModelType.pdf,
|
|
10288
10289
|
toBase64: true
|
|
10289
10290
|
};
|
|
10290
10291
|
return this.defaultPost(url, model);
|
|
10291
10292
|
};
|
|
10293
|
+
DownloadLinkService.prototype.convertToPdfBase64 = function (fileName, fileInstanceId, fileVersionInstanceId) {
|
|
10294
|
+
var url = this.serviceUri + "/ConvertDocumentToPdfBase64";
|
|
10295
|
+
var model = {
|
|
10296
|
+
fileName: fileName,
|
|
10297
|
+
fileInstanceId: fileInstanceId,
|
|
10298
|
+
fileVersionInstanceId: fileVersionInstanceId,
|
|
10299
|
+
fileId: fileInstanceId,
|
|
10300
|
+
fileVersionId: fileVersionInstanceId,
|
|
10301
|
+
outputType: this.convertModelType.pdf,
|
|
10302
|
+
toBase64: true
|
|
10303
|
+
};
|
|
10304
|
+
return this.defaultPost(url, model);
|
|
10305
|
+
};
|
|
10292
10306
|
/**
|
|
10293
10307
|
* Lấy danh sách file trong một thư mục
|
|
10294
10308
|
* @param serviceCode : mã dịch vụ
|
|
@@ -50106,12 +50120,12 @@
|
|
|
50106
50120
|
};
|
|
50107
50121
|
FileViewerComponent.prototype.print = function () {
|
|
50108
50122
|
var _this = this;
|
|
50109
|
-
this._downloadLinkService.
|
|
50123
|
+
this._downloadLinkService.convertToPdfBase64(this.data.name, this.data.fileId, this.data.fileVersionId)
|
|
50110
50124
|
.then(function (rs) {
|
|
50111
|
-
if (!rs.success || !rs.data
|
|
50125
|
+
if (!rs.success || !rs.data) {
|
|
50112
50126
|
return;
|
|
50113
50127
|
}
|
|
50114
|
-
_this._fileExplorerService.print(rs.data
|
|
50128
|
+
_this._fileExplorerService.print(rs.data);
|
|
50115
50129
|
});
|
|
50116
50130
|
};
|
|
50117
50131
|
FileViewerComponent.prototype.download = function () {
|