tnx-shared 5.3.390 → 5.3.392
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 +20 -6
- 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/classes/menu-schema.d.ts +2 -2
- package/classes/menu-schema.d.ts.map +1 -1
- package/components/file-explorer/file-manager/file-manager.component.d.ts.map +1 -1
- package/esm2015/classes/menu-schema.js +7 -4
- package/esm2015/components/file-explorer/file-manager/file-manager.component.js +8 -3
- package/fesm2015/tnx-shared.js +13 -5
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -24796,12 +24796,12 @@ class CommonErrorCode {
|
|
|
24796
24796
|
CommonErrorCode.ERROR_NOT_FOUND = 'ERR_NOT_FOUND';
|
|
24797
24797
|
CommonErrorCode.ERROR_SERVICE_NOT_RUN = 0;
|
|
24798
24798
|
|
|
24799
|
-
const getMenuData = (listMenuName, customPath = '') => {
|
|
24799
|
+
const getMenuData = (listMenuName, customPath = '', customEndpoint = '') => {
|
|
24800
24800
|
const res = [];
|
|
24801
24801
|
for (const menu of listMenuName) {
|
|
24802
24802
|
res.push({
|
|
24803
24803
|
fileName: menu,
|
|
24804
|
-
dataMenus: getListMenuByName(menu, customPath)
|
|
24804
|
+
dataMenus: getListMenuByName(menu, customPath, customEndpoint)
|
|
24805
24805
|
});
|
|
24806
24806
|
}
|
|
24807
24807
|
const op = [];
|
|
@@ -24819,11 +24819,14 @@ const getMenuData = (listMenuName, customPath = '') => {
|
|
|
24819
24819
|
}
|
|
24820
24820
|
return op;
|
|
24821
24821
|
};
|
|
24822
|
-
const getListMenuByName = (menu, customPath = '') => {
|
|
24822
|
+
const getListMenuByName = (menu, customPath = '', customEndpoint = '') => {
|
|
24823
24823
|
const appXhr = new XMLHttpRequest();
|
|
24824
24824
|
if (customPath) {
|
|
24825
24825
|
appXhr.open('GET', customPath, false);
|
|
24826
24826
|
}
|
|
24827
|
+
else if (customEndpoint) {
|
|
24828
|
+
appXhr.open('GET', `${customEndpoint}/assets/menus/${menu}.json`, false);
|
|
24829
|
+
}
|
|
24827
24830
|
else {
|
|
24828
24831
|
appXhr.open('GET', `assets/menus/${menu}.json`, false);
|
|
24829
24832
|
}
|
|
@@ -31473,8 +31476,13 @@ class FileManagerComponent extends DataListBase {
|
|
|
31473
31476
|
// Tải thư mục/ tệp.
|
|
31474
31477
|
download(explorerItem) {
|
|
31475
31478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31476
|
-
|
|
31477
|
-
|
|
31479
|
+
this._notifierService.showConfirm(`<b>Lưu ý!</b><br/><br/>Xác nhận tải về?`, 'Thông báo')
|
|
31480
|
+
.then((confirm) => __awaiter(this, void 0, void 0, function* () {
|
|
31481
|
+
if (!confirm)
|
|
31482
|
+
return;
|
|
31483
|
+
const model = this._downloadLinkService.getGenerateDownloadLinkModel(explorerItem);
|
|
31484
|
+
this._downloadLinkService.downloadLink(model);
|
|
31485
|
+
}));
|
|
31478
31486
|
});
|
|
31479
31487
|
}
|
|
31480
31488
|
copyDownloadLink(explorerItem) {
|