@univerjs-pro/exchange-client 0.6.5 → 0.6.6
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +2 -2
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/facade/f-univer.d.ts +6 -12
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2ede46=_0x1dc7;function _0x3390(){const _0x1ca63d=['File','2630XWbXud','911448STdhZe','Upload\x20again','Uploading','Open(File)','Data\x20is\x20too\x20large','803QCnHSl','Downloading','Please\x20wait...','Download\x20success','9549FYyQdk','5929930MIQvtS','Internal\x20unknown\x20error','35izQbxh','1680368yOnZiZ','File\x20uploaded\x20successfully','Cancel','541876COsuuw','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','941932bjVcAB','Network\x20error','15iosVaW','386784WEnevJ','6UsSgZb'];_0x3390=function(){return _0x1ca63d;};return _0x3390();}(function(_0x165ae3,_0x3f9221){const _0x595566=_0x1dc7,_0x5c93ad=_0x165ae3();while(!![]){try{const _0x47d29b=parseInt(_0x595566(0x13f))/0x1+-parseInt(_0x595566(0x138))/0x2+-parseInt(_0x595566(0x13a))/0x3*(-parseInt(_0x595566(0x136))/0x4)+parseInt(_0x595566(0x130))/0x5*(parseInt(_0x595566(0x13c))/0x6)+parseInt(_0x595566(0x132))/0x7*(parseInt(_0x595566(0x133))/0x8)+-parseInt(_0x595566(0x12f))/0x9*(parseInt(_0x595566(0x13e))/0xa)+parseInt(_0x595566(0x12b))/0xb*(-parseInt(_0x595566(0x13b))/0xc);if(_0x47d29b===_0x3f9221)break;else _0x5c93ad['push'](_0x5c93ad['shift']());}catch(_0x92a75b){_0x5c93ad['push'](_0x5c93ad['shift']());}}}(_0x3390,0xb0490));function _0x1dc7(_0x1930e3,_0x38ec53){const _0x339006=_0x3390();return _0x1dc7=function(_0x1dc7dc,_0x2b2a90){_0x1dc7dc=_0x1dc7dc-0x129;let _0x130351=_0x339006[_0x1dc7dc];return _0x130351;},_0x1dc7(_0x1930e3,_0x38ec53);}const e={'exchange':{'file':_0x2ede46(0x13d),'upload':_0x2ede46(0x129),'download':'Save\x20As','uploading':_0x2ede46(0x141),'uploadSuccess':_0x2ede46(0x134),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x2ede46(0x12c),'downloadSuccess':_0x2ede46(0x12e),'unknownMistake':'Unknown\x20mistake','networkError':_0x2ede46(0x139),'tooLarge':_0x2ede46(0x12a),'internalError':_0x2ede46(0x131),'interrupt':_0x2ede46(0x137),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x2ede46(0x12d),'cancel':_0x2ede46(0x135),'uploadAgain':_0x2ede46(0x140)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2637bf=_0x35e4;function _0x5bb5(){const _0x4527ed=['15669XGIHLI','65791jOSKtG','2636368jsWAkj','458550yYojUY','282gGPpQw','در\x20حال\x20بارگذاری','خطای\x20شبکه','ذخیره\x20به\x20عنوان','دانلود\x20موفقیت\x20آمیز','118442JVNDIb','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','61408afSNjb','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','لطفا\x20صبر\x20کنید...','30233Ndioel','3KEaozj','30lTpjDo','خطای\x20داخلی\x20ناشناخته','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','فایل','لغو','بارگذاری\x20مجدد','280hRCJpB'];_0x5bb5=function(){return _0x4527ed;};return _0x5bb5();}(function(_0x572249,_0x53c4a4){const _0x69986c=_0x35e4,_0x5b05c9=_0x572249();while(!![]){try{const _0x534d05=parseInt(_0x69986c(0x1f5))/0x1*(-parseInt(_0x69986c(0x206))/0x2)+parseInt(_0x69986c(0x1f6))/0x3*(parseInt(_0x69986c(0x209))/0x4)+parseInt(_0x69986c(0x200))/0x5+parseInt(_0x69986c(0x201))/0x6*(-parseInt(_0x69986c(0x1f4))/0x7)+parseInt(_0x69986c(0x1ff))/0x8+-parseInt(_0x69986c(0x1fd))/0x9*(-parseInt(_0x69986c(0x1fc))/0xa)+-parseInt(_0x69986c(0x1fe))/0xb;if(_0x534d05===_0x53c4a4)break;else _0x5b05c9['push'](_0x5b05c9['shift']());}catch(_0x251332){_0x5b05c9['push'](_0x5b05c9['shift']());}}}(_0x5bb5,0x39d57));const o={'exchange':{'file':_0x2637bf(0x1f9),'upload':'بازکردن(فایل)','download':_0x2637bf(0x204),'uploading':_0x2637bf(0x202),'uploadSuccess':_0x2637bf(0x207),'uploadSuccessTip':_0x2637bf(0x208),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x2637bf(0x205),'unknownMistake':'خطای\x20ناشناخته','networkError':_0x2637bf(0x203),'tooLarge':_0x2637bf(0x20b),'internalError':_0x2637bf(0x1f7),'interrupt':_0x2637bf(0x20a),'fileTypeError':_0x2637bf(0x1f8),'wait':_0x2637bf(0x1f3),'cancel':_0x2637bf(0x1fa),'uploadAgain':_0x2637bf(0x1fb)}};function _0x35e4(_0xfedde0,_0x48dcb0){const _0x5bb510=_0x5bb5();return _0x35e4=function(_0x35e462,_0x4cb85a){_0x35e462=_0x35e462-0x1f3;let _0x12be9d=_0x5bb510[_0x35e462];return _0x12be9d;},_0x35e4(_0xfedde0,_0x48dcb0);}export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x98c2ca=_0x31a6;(function(_0x5a314c,_0x207520){const _0x4fc220=_0x31a6,_0x5ef1ef=_0x5a314c();while(!![]){try{const _0x546818=-parseInt(_0x4fc220(0x17d))/0x1*(-parseInt(_0x4fc220(0x189))/0x2)+parseInt(_0x4fc220(0x18b))/0x3*(parseInt(_0x4fc220(0x185))/0x4)+-parseInt(_0x4fc220(0x180))/0x5+-parseInt(_0x4fc220(0x18f))/0x6+-parseInt(_0x4fc220(0x186))/0x7*(parseInt(_0x4fc220(0x17f))/0x8)+parseInt(_0x4fc220(0x190))/0x9+-parseInt(_0x4fc220(0x17c))/0xa*(-parseInt(_0x4fc220(0x192))/0xb);if(_0x546818===_0x207520)break;else _0x5ef1ef['push'](_0x5ef1ef['shift']());}catch(_0x5438ca){_0x5ef1ef['push'](_0x5ef1ef['shift']());}}}(_0x1421,0x2b254));function _0x31a6(_0x22777a,_0x5a839b){const _0x14212f=_0x1421();return _0x31a6=function(_0x31a6a5,_0x2634c1){_0x31a6a5=_0x31a6a5-0x179;let _0x363339=_0x14212f[_0x31a6a5];return _0x363339;},_0x31a6(_0x22777a,_0x5a839b);}const e={'exchange':{'file':_0x98c2ca(0x188),'upload':_0x98c2ca(0x184),'download':_0x98c2ca(0x18d),'uploading':_0x98c2ca(0x18e),'uploadSuccess':_0x98c2ca(0x181),'uploadSuccessTip':_0x98c2ca(0x18a),'downloading':_0x98c2ca(0x179),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x98c2ca(0x17e),'networkError':_0x98c2ca(0x187),'tooLarge':_0x98c2ca(0x17a),'internalError':_0x98c2ca(0x17b),'interrupt':_0x98c2ca(0x191),'fileTypeError':_0x98c2ca(0x183),'wait':_0x98c2ca(0x18c),'cancel':_0x98c2ca(0x182),'uploadAgain':'Télécharger\x20à\x20nouveau'}};export{e as default};function _0x1421(){const _0xd1c3ee=['Téléchargement\x20en\x20cours','263862VFeRBw','175590ifIZmR','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','40139yVJXLE','Téléchargement','Les\x20données\x20sont\x20trop\x20volumineuses','Erreur\x20interne\x20inconnue','390SghBLB','50JIIiiw','Erreur\x20inconnue','56AaQZBY','971730WFpMGk','Fichier\x20téléchargé\x20avec\x20succès','Annuler','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Ouvrir\x20(Fichier)','108sueibc','194145SZRChp','Erreur\x20réseau','Fichier','6422GcQcki','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','31869lcjlAI','Veuillez\x20patienter...','Enregistrer\x20sous'];_0x1421=function(){return _0xd1c3ee;};return _0x1421();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x27b905=_0xda64;function _0xda64(_0x218162,_0x5db527){const _0x9c545c=_0x9c54();return _0xda64=function(_0xda64ac,_0x52aecc){_0xda64ac=_0xda64ac-0x156;let _0x493d77=_0x9c545c[_0xda64ac];return _0x493d77;},_0xda64(_0x218162,_0x5db527);}function _0x9c54(){const _0x1617e8=['Сетевая\x20ошибка','2LfXEes','Неизвестная\x20ошибка','Пожалуйста,\x20подождите...','Сохранить\x20как','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Загрузить\x20снова','3775023kQrPdk','6127dRatKE','11912mgkDKF','Файл','42rqKSSa','Данные\x20слишком\x20большие','126668dRIVaJ','2836272NvBWTn','254905kmhOXv','342685rJfKFh','Скачивание\x20успешно','48EahHhE','Скачивание','70NTxzVp','Файл\x20успешно\x20загружен','Открыть(Файл)','765uiPDJh','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки'];_0x9c54=function(){return _0x1617e8;};return _0x9c54();}(function(_0x35226e,_0x5162d0){const _0x49218f=_0xda64,_0x258c51=_0x35226e();while(!![]){try{const _0x23f0d3=parseInt(_0x49218f(0x15d))/0x1*(parseInt(_0x49218f(0x168))/0x2)+-parseInt(_0x49218f(0x15f))/0x3*(parseInt(_0x49218f(0x15a))/0x4)+-parseInt(_0x49218f(0x15c))/0x5*(-parseInt(_0x49218f(0x158))/0x6)+parseInt(_0x49218f(0x16e))/0x7+parseInt(_0x49218f(0x156))/0x8*(-parseInt(_0x49218f(0x164))/0x9)+-parseInt(_0x49218f(0x161))/0xa*(-parseInt(_0x49218f(0x16f))/0xb)+-parseInt(_0x49218f(0x15b))/0xc;if(_0x23f0d3===_0x5162d0)break;else _0x258c51['push'](_0x258c51['shift']());}catch(_0x3dd6ee){_0x258c51['push'](_0x258c51['shift']());}}}(_0x9c54,0x5b19b));const o={'exchange':{'file':_0x27b905(0x157),'upload':_0x27b905(0x163),'download':_0x27b905(0x16b),'uploading':'Загрузка','uploadSuccess':_0x27b905(0x162),'uploadSuccessTip':_0x27b905(0x16c),'downloading':_0x27b905(0x160),'downloadSuccess':_0x27b905(0x15e),'unknownMistake':_0x27b905(0x169),'networkError':_0x27b905(0x167),'tooLarge':_0x27b905(0x159),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x27b905(0x165),'fileTypeError':_0x27b905(0x166),'wait':_0x27b905(0x16a),'cancel':'Отмена','uploadAgain':_0x27b905(0x16d)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x471003=_0x1501;function _0x30e6(){const _0x2b81f6=['1371990RDPbXO','Mở\x20(Tệp)','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','566751BCXwEU','Đang\x20tải\x20xuống','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tải\x20lên\x20tệp\x20thành\x20công','22266oHnXGR','657182CPRgMS','Vui\x20lòng\x20đợi...','Tải\x20xuống\x20thành\x20công','416CXcRrT','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Luồng\x20dữ\x20liệu\x20quá\x20lớn','863492BLpNON','Tải\x20lên\x20lại','145140yQgdhs','1uFTaWU','Lỗi\x20không\x20xác\x20định','Đang\x20tải\x20lên','2547678PUvtOm','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công'];_0x30e6=function(){return _0x2b81f6;};return _0x30e6();}(function(_0xb17a7d,_0x2a20e8){const _0x268b86=_0x1501,_0x3b2879=_0xb17a7d();while(!![]){try{const _0x3a1c0d=-parseInt(_0x268b86(0x1ce))/0x1*(parseInt(_0x268b86(0x1c5))/0x2)+parseInt(_0x268b86(0x1d6))/0x3+-parseInt(_0x268b86(0x1cd))/0x4+-parseInt(_0x268b86(0x1d3))/0x5+parseInt(_0x268b86(0x1d1))/0x6+parseInt(_0x268b86(0x1cb))/0x7+-parseInt(_0x268b86(0x1c8))/0x8*(-parseInt(_0x268b86(0x1da))/0x9);if(_0x3a1c0d===_0x2a20e8)break;else _0x3b2879['push'](_0x3b2879['shift']());}catch(_0x406e48){_0x3b2879['push'](_0x3b2879['shift']());}}}(_0x30e6,0x373d4));function _0x1501(_0x20cf54,_0x26d130){const _0x30e666=_0x30e6();return _0x1501=function(_0x150185,_0xae9eb4){_0x150185=_0x150185-0x1c5;let _0x20fc18=_0x30e666[_0x150185];return _0x20fc18;},_0x1501(_0x20cf54,_0x26d130);}const n={'exchange':{'file':'Tệp','upload':_0x471003(0x1d4),'download':'Lưu\x20dưới\x20dạng','uploading':_0x471003(0x1d0),'uploadSuccess':_0x471003(0x1d9),'uploadSuccessTip':_0x471003(0x1d2),'downloading':_0x471003(0x1d7),'downloadSuccess':_0x471003(0x1c7),'unknownMistake':_0x471003(0x1cf),'networkError':'Lỗi\x20mạng','tooLarge':_0x471003(0x1ca),'internalError':_0x471003(0x1d8),'interrupt':_0x471003(0x1c9),'fileTypeError':_0x471003(0x1d5),'wait':_0x471003(0x1c6),'cancel':'Hủy\x20bỏ','uploadAgain':_0x471003(0x1cc)}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x26b48b=_0x12b8;(function(_0x15cb18,_0x51de3a){const _0x18b09b=_0x12b8,_0x3dda3c=_0x15cb18();while(!![]){try{const _0x4c5843=-parseInt(_0x18b09b(0x158))/0x1+parseInt(_0x18b09b(0x14b))/0x2*(parseInt(_0x18b09b(0x148))/0x3)+parseInt(_0x18b09b(0x150))/0x4+parseInt(_0x18b09b(0x159))/0x5*(-parseInt(_0x18b09b(0x154))/0x6)+-parseInt(_0x18b09b(0x149))/0x7*(parseInt(_0x18b09b(0x145))/0x8)+-parseInt(_0x18b09b(0x14c))/0x9+-parseInt(_0x18b09b(0x155))/0xa*(-parseInt(_0x18b09b(0x146))/0xb);if(_0x4c5843===_0x51de3a)break;else _0x3dda3c['push'](_0x3dda3c['shift']());}catch(_0x392c5b){_0x3dda3c['push'](_0x3dda3c['shift']());}}}(_0x1caf,0xc23c3));const o={'exchange':{'file':'文件','upload':_0x26b48b(0x14e),'download':_0x26b48b(0x144),'uploading':'上传中','uploadSuccess':_0x26b48b(0x15a),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x26b48b(0x156),'downloadSuccess':_0x26b48b(0x14f),'unknownMistake':_0x26b48b(0x14d),'networkError':'网络异常','tooLarge':_0x26b48b(0x152),'internalError':_0x26b48b(0x14a),'interrupt':_0x26b48b(0x153),'fileTypeError':_0x26b48b(0x147),'wait':_0x26b48b(0x151),'cancel':'取消','uploadAgain':_0x26b48b(0x157)}};function _0x1caf(){const _0x3b8c86=['网络连接中断,文件上传失败','106674RtoxoP','90fMrREn','下载中','再次上传','1288729nXslGT','200nFHHzh','文件上传成功','另存为','192SqAaou','3205169YMySOY','所选文件\x20[{0}]\x20不支持上传','32559aMikgu','46522KtcNqY','内部未知错误','254nlttyu','12465468Lmcucp','未知错误','打开(文件)','下载成功','1357160JqgXgb','请稍等...','数据流过大'];_0x1caf=function(){return _0x3b8c86;};return _0x1caf();}function _0x12b8(_0x5554ff,_0x123757){const _0x1cafe2=_0x1caf();return _0x12b8=function(_0x12b898,_0x43900){_0x12b898=_0x12b898-0x144;let _0x46b315=_0x1cafe2[_0x12b898];return _0x46b315;},_0x12b8(_0x5554ff,_0x123757);}export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4e8e76=_0x505d;function _0x505d(_0xdffb93,_0x38330d){const _0x4da476=_0x4da4();return _0x505d=function(_0x505df1,_0x1fc521){_0x505df1=_0x505df1-0x17c;let _0x4186c1=_0x4da476[_0x505df1];return _0x4186c1;},_0x505d(_0xdffb93,_0x38330d);}(function(_0x3264db,_0x4fd021){const _0x1799ad=_0x505d,_0x2e6a76=_0x3264db();while(!![]){try{const _0x58bdb0=parseInt(_0x1799ad(0x181))/0x1*(parseInt(_0x1799ad(0x193))/0x2)+parseInt(_0x1799ad(0x196))/0x3*(-parseInt(_0x1799ad(0x190))/0x4)+parseInt(_0x1799ad(0x194))/0x5*(parseInt(_0x1799ad(0x185))/0x6)+parseInt(_0x1799ad(0x184))/0x7+parseInt(_0x1799ad(0x186))/0x8*(parseInt(_0x1799ad(0x189))/0x9)+parseInt(_0x1799ad(0x192))/0xa*(parseInt(_0x1799ad(0x18a))/0xb)+parseInt(_0x1799ad(0x18c))/0xc*(-parseInt(_0x1799ad(0x195))/0xd);if(_0x58bdb0===_0x4fd021)break;else _0x2e6a76['push'](_0x2e6a76['shift']());}catch(_0x2586b8){_0x2e6a76['push'](_0x2e6a76['shift']());}}}(_0x4da4,0x6821c));const o={'exchange':{'file':'檔案','upload':_0x4e8e76(0x182),'download':_0x4e8e76(0x17c),'uploading':_0x4e8e76(0x191),'uploadSuccess':_0x4e8e76(0x188),'uploadSuccessTip':_0x4e8e76(0x18d),'downloading':_0x4e8e76(0x17d),'downloadSuccess':'下載成功','unknownMistake':_0x4e8e76(0x18f),'networkError':_0x4e8e76(0x183),'tooLarge':_0x4e8e76(0x180),'internalError':_0x4e8e76(0x17e),'interrupt':_0x4e8e76(0x17f),'fileTypeError':_0x4e8e76(0x187),'wait':_0x4e8e76(0x18e),'cancel':'取消','uploadAgain':_0x4e8e76(0x18b)}};export{o as default};function _0x4da4(){const _0x11dd0=['未知錯誤','4jwSGaU','上傳中','20zNanqH','10UXMogT','199295myCctk','3471PXeXif','1086963QlKNdx','另存為','下載中','內部未知錯誤','網路連線中斷,檔案上傳失敗','資料流過大','54975igtShI','開啟(檔案)','網路異常','3382414QMZGZK','108xssMyL','4136CRzhOW','所選檔案\x20[{0}]\x20不支援上傳','檔案上傳成功','6111ZaUNTA','2326610yzKxlj','再次上傳','65652MPNRaJ','{0}個檔案上傳成功','請稍等...'];_0x4da4=function(){return _0x11dd0;};return _0x4da4();}
|
@@ -77,17 +77,14 @@ export interface IFUniverExchangeClientMixin {
|
|
77
77
|
*
|
78
78
|
* @example
|
79
79
|
* ```typescript
|
80
|
+
* import { downloadFile } from '@univerjs-pro/exchange-client';
|
81
|
+
*
|
80
82
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
81
83
|
* const unitId = fWorkbook.getId();
|
82
84
|
* const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
|
83
85
|
*
|
84
86
|
* // Download the file
|
85
|
-
*
|
86
|
-
* const a = document.createElement('a');
|
87
|
-
* a.href = url;
|
88
|
-
* a.download = 'filename.xlsx';
|
89
|
-
* a.click();
|
90
|
-
* URL.revokeObjectURL(url);
|
87
|
+
* downloadFile(file, 'univer', 'xlsx');
|
91
88
|
* ```
|
92
89
|
*/
|
93
90
|
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
@@ -106,17 +103,14 @@ export interface IFUniverExchangeClientMixin {
|
|
106
103
|
*
|
107
104
|
* @example
|
108
105
|
* ```typescript
|
106
|
+
* import { downloadFile } from '@univerjs-pro/exchange-client';
|
107
|
+
*
|
109
108
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
110
109
|
* const snapshot = fWorkbook.save();
|
111
110
|
* const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
|
112
111
|
*
|
113
112
|
* // Download the file
|
114
|
-
*
|
115
|
-
* const a = document.createElement('a');
|
116
|
-
* a.href = url;
|
117
|
-
* a.download = 'filename.xlsx';
|
118
|
-
* a.click();
|
119
|
-
* URL.revokeObjectURL(url);
|
113
|
+
* downloadFile(file, 'univer', 'xlsx');
|
120
114
|
* ```
|
121
115
|
*/
|
122
116
|
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x9717(_0x178114,_0x3e9cf3){const _0x2593be=_0x2593();return _0x9717=function(_0x97176f,_0x202884){_0x97176f=_0x97176f-0x15a;let _0x576ed4=_0x2593be[_0x97176f];return _0x576ed4;},_0x9717(_0x178114,_0x3e9cf3);}function _0x2593(){const _0x3c8a9e=['10ORstdQ','51PyRqlI','12577635uIleTa','UNIVER_SHEET','@univerjs-pro/exchange-client','UNIVER_PROJECT','UniverProExchangeClient','_injector','importXLSXToUnitId','UNRECOGNIZED','importXLSXToUnitIdAsync','The\x20exchange\x20service\x20is\x20not\x20available','66353EBBGhL','amd','3412584wxSFqp','FUniver','extend','exportXLSXBySnapshot','exportXLSXByUnitIdAsync','get','882729FccWiY','importXLSXToSnapshotAsync','UNIVER_SLIDE','@univerjs/core/facade','function','IExchangeService','importFileToUnitId','importDOCXToUnitIdAsync','importDOCXToSnapshot','148458UQoQQI','exportXLSXBySnapshotAsync','7609776tXCbYG','importXLSXToSnapshot','UNIVER_DOC','5oJIboi','UniverCoreFacade','5374612YDZEkh'];_0x2593=function(){return _0x3c8a9e;};return _0x2593();}(function(_0x1632d4,_0x21fdb7){const _0x194313=_0x9717,_0xdbe3a7=_0x1632d4();while(!![]){try{const _0x5d1929=parseInt(_0x194313(0x16c))/0x1+-parseInt(_0x194313(0x175))/0x2*(parseInt(_0x194313(0x17e))/0x3)+parseInt(_0x194313(0x17c))/0x4*(parseInt(_0x194313(0x17a))/0x5)+-parseInt(_0x194313(0x177))/0x6+parseInt(_0x194313(0x164))/0x7+-parseInt(_0x194313(0x166))/0x8+parseInt(_0x194313(0x15a))/0x9*(parseInt(_0x194313(0x17d))/0xa);if(_0x5d1929===_0x21fdb7)break;else _0xdbe3a7['push'](_0xdbe3a7['shift']());}catch(_0x35eb90){_0xdbe3a7['push'](_0xdbe3a7['shift']());}}}(_0x2593,0xa5306),function(_0x2ee6c7,_0x423584){const _0x130d56=_0x9717;typeof exports=='object'&&typeof module<'u'?_0x423584(require('@univerjs-pro/exchange-client'),require(_0x130d56(0x16f))):typeof define==_0x130d56(0x170)&&define[_0x130d56(0x165)]?define([_0x130d56(0x15c),_0x130d56(0x16f)],_0x423584):(_0x2ee6c7=typeof globalThis<'u'?globalThis:_0x2ee6c7||self,_0x423584(_0x2ee6c7[_0x130d56(0x15e)],_0x2ee6c7[_0x130d56(0x17b)]));}(this,function(_0x552ce6,_0x21ebd7){'use strict';const _0x269e93=_0x9717;var _0x94ec6c=(_0x1f665b=>(_0x1f665b[_0x1f665b['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x1f665b[_0x1f665b['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x1f665b[_0x1f665b[_0x269e93(0x15b)]=0x2]=_0x269e93(0x15b),_0x1f665b[_0x1f665b[_0x269e93(0x16e)]=0x3]='UNIVER_SLIDE',_0x1f665b[_0x1f665b['UNIVER_PROJECT']=0x4]=_0x269e93(0x15d),_0x1f665b[_0x1f665b[_0x269e93(0x161)]=-0x1]=_0x269e93(0x161),_0x1f665b))(_0x94ec6c||{});class _0x4a78c9 extends _0x21ebd7[_0x269e93(0x167)]{async[_0x269e93(0x160)](_0x313b20){const _0x4104a3=_0x269e93;return this[_0x4104a3(0x162)](_0x313b20);}async[_0x269e93(0x162)](_0x470a5f){const _0x24fb8e=_0x269e93,_0x251da7=this[_0x24fb8e(0x15f)][_0x24fb8e(0x16b)](_0x552ce6[_0x24fb8e(0x171)]);if(!_0x251da7)throw new Error(_0x24fb8e(0x163));return _0x251da7[_0x24fb8e(0x172)](_0x470a5f,_0x94ec6c[_0x24fb8e(0x15b)]);}async[_0x269e93(0x178)](_0x27a7a8){const _0x96a44a=_0x269e93;return this[_0x96a44a(0x16d)](_0x27a7a8);}async[_0x269e93(0x16d)](_0x775d95){const _0x1febf0=_0x269e93,_0x48aaf6=this[_0x1febf0(0x15f)][_0x1febf0(0x16b)](_0x552ce6[_0x1febf0(0x171)]);if(!_0x48aaf6)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x48aaf6[_0x1febf0(0x178)](_0x775d95);}async['exportXLSXByUnitId'](_0xbd983c){const _0x3b0ba4=_0x269e93;return this[_0x3b0ba4(0x16a)](_0xbd983c);}async['exportXLSXByUnitIdAsync'](_0x115b9c){const _0x28220f=_0x269e93,_0x18cbf6=this[_0x28220f(0x15f)][_0x28220f(0x16b)](_0x552ce6[_0x28220f(0x171)]);if(!_0x18cbf6)throw new Error(_0x28220f(0x163));return _0x18cbf6['exportXLSXByUnitId'](_0x115b9c);}async[_0x269e93(0x169)](_0x24c4bf){return this['exportXLSXBySnapshotAsync'](_0x24c4bf);}async[_0x269e93(0x176)](_0x507615){const _0x1b9110=_0x269e93,_0x33a0f1=this['_injector'][_0x1b9110(0x16b)](_0x552ce6['IExchangeService']);if(!_0x33a0f1)throw new Error(_0x1b9110(0x163));return _0x33a0f1[_0x1b9110(0x169)](_0x507615);}async['importDOCXToUnitId'](_0x56c23e){const _0x51cbdb=_0x269e93;return this[_0x51cbdb(0x173)](_0x56c23e);}async[_0x269e93(0x173)](_0x32bd00){const _0x15e854=_0x269e93,_0x150f7f=this['_injector']['get'](_0x552ce6[_0x15e854(0x171)]);if(!_0x150f7f)throw new Error(_0x15e854(0x163));return _0x150f7f['importFileToUnitId'](_0x32bd00,_0x94ec6c[_0x15e854(0x179)]);}async[_0x269e93(0x174)](_0x46ba95){return this['importDOCXToSnapshotAsync'](_0x46ba95);}async['importDOCXToSnapshotAsync'](_0x377f56){const _0x1d2f17=_0x269e93,_0x5aaf87=this[_0x1d2f17(0x15f)][_0x1d2f17(0x16b)](_0x552ce6['IExchangeService']);if(!_0x5aaf87)throw new Error(_0x1d2f17(0x163));return _0x5aaf87['importDOCXToSnapshot'](_0x377f56);}}_0x21ebd7[_0x269e93(0x167)][_0x269e93(0x168)](_0x4a78c9);}));
|