@univerjs-pro/exchange-client 0.6.5 → 0.6.6-nightly.202503151606
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 +9 -9
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x357aad=_0x3624;(function(_0x373130,_0x15c407){const _0x4e957f=_0x3624,_0x3233a5=_0x373130();while(!![]){try{const _0x47c02a=parseInt(_0x4e957f(0x165))/0x1*(-parseInt(_0x4e957f(0x164))/0x2)+-parseInt(_0x4e957f(0x163))/0x3+parseInt(_0x4e957f(0x153))/0x4*(-parseInt(_0x4e957f(0x156))/0x5)+-parseInt(_0x4e957f(0x167))/0x6+-parseInt(_0x4e957f(0x158))/0x7*(parseInt(_0x4e957f(0x157))/0x8)+parseInt(_0x4e957f(0x152))/0x9*(-parseInt(_0x4e957f(0x154))/0xa)+parseInt(_0x4e957f(0x155))/0xb;if(_0x47c02a===_0x15c407)break;else _0x3233a5['push'](_0x3233a5['shift']());}catch(_0xb5abb7){_0x3233a5['push'](_0x3233a5['shift']());}}}(_0x418d,0x4e0a3));const e={'exchange':{'file':_0x357aad(0x166),'upload':_0x357aad(0x160),'download':_0x357aad(0x15a),'uploading':_0x357aad(0x162),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x357aad(0x15f),'downloading':_0x357aad(0x15e),'downloadSuccess':_0x357aad(0x15c),'unknownMistake':_0x357aad(0x151),'networkError':_0x357aad(0x150),'tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':_0x357aad(0x15d),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x357aad(0x15b),'cancel':_0x357aad(0x161),'uploadAgain':_0x357aad(0x159)}};export{e as default};function _0x3624(_0x4346b8,_0xba81ff){const _0x418d6d=_0x418d();return _0x3624=function(_0x3624fb,_0x1c0a67){_0x3624fb=_0x3624fb-0x150;let _0x108540=_0x418d6d[_0x3624fb];return _0x108540;},_0x3624(_0x4346b8,_0xba81ff);}function _0x418d(){const _0x3ab7af=['Unknown\x20mistake','11439fOjivx','12YsVWwP','2110ZpgURU','23257729FITzsO','714335nKcUxC','1816mflJLU','2303eTkLlg','Upload\x20again','Save\x20As','Please\x20wait...','Download\x20success','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Downloading','{0}\x20file(s)\x20uploaded\x20successfully','Open(File)','Cancel','Uploading','872604IebkaZ','6pbvMpJ','38215YBSlbl','File','3706260OupdUS','Network\x20error'];_0x418d=function(){return _0x3ab7af;};return _0x418d();}
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x4982(){const _0x300325=['55440oLSeUh','3128190DNtNle','فایل','4956datUQe','18VrnqsA','لغو','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','خطای\x20ناشناخته','212bybbeV','7944464FcoCrh','80721ywvClA','خطای\x20داخلی\x20ناشناخته','72595MCbFfa','20853lTMzMT','در\x20حال\x20بارگذاری','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','در\x20حال\x20دانلود','64YJjxzt','168GtHRRU','ذخیره\x20به\x20عنوان','داده\x20خیلی\x20بزرگ\x20است','دانلود\x20موفقیت\x20آمیز'];_0x4982=function(){return _0x300325;};return _0x4982();}const _0x324ce5=_0x5aac;function _0x5aac(_0x477f79,_0xe33bd){const _0x4982ff=_0x4982();return _0x5aac=function(_0x5aacb2,_0xdba960){_0x5aacb2=_0x5aacb2-0xb8;let _0x1a0918=_0x4982ff[_0x5aacb2];return _0x1a0918;},_0x5aac(_0x477f79,_0xe33bd);}(function(_0x3de6a0,_0x867cbf){const _0xa6b8db=_0x5aac,_0x2b3509=_0x3de6a0();while(!![]){try{const _0x30a09d=-parseInt(_0xa6b8db(0xc7))/0x1*(-parseInt(_0xa6b8db(0xc2))/0x2)+parseInt(_0xa6b8db(0xcc))/0x3*(parseInt(_0xa6b8db(0xbb))/0x4)+parseInt(_0xa6b8db(0xcb))/0x5*(parseInt(_0xa6b8db(0xc3))/0x6)+parseInt(_0xa6b8db(0xbf))/0x7+parseInt(_0xa6b8db(0xba))/0x8*(-parseInt(_0xa6b8db(0xc9))/0x9)+parseInt(_0xa6b8db(0xc0))/0xa+-parseInt(_0xa6b8db(0xc8))/0xb;if(_0x30a09d===_0x867cbf)break;else _0x2b3509['push'](_0x2b3509['shift']());}catch(_0x1d5d82){_0x2b3509['push'](_0x2b3509['shift']());}}}(_0x4982,0x5ea0e));const o={'exchange':{'file':_0x324ce5(0xc1),'upload':'بازکردن(فایل)','download':_0x324ce5(0xbc),'uploading':_0x324ce5(0xcd),'uploadSuccess':_0x324ce5(0xb8),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':_0x324ce5(0xb9),'downloadSuccess':_0x324ce5(0xbe),'unknownMistake':_0x324ce5(0xc6),'networkError':'خطای\x20شبکه','tooLarge':_0x324ce5(0xbd),'internalError':_0x324ce5(0xca),'interrupt':_0x324ce5(0xc5),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','wait':'لطفا\x20صبر\x20کنید...','cancel':_0x324ce5(0xc4),'uploadAgain':'بارگذاری\x20مجدد'}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x781dc6=_0x2bd4;function _0x5108(){const _0x18387e=['Téléchargement\x20réussi','234JuJpfd','100247mCHmxv','Erreur\x20interne\x20inconnue','Ouvrir\x20(Fichier)','Téléchargement\x20en\x20cours','21024vndtRi','21150HfGoGR','3449645YKlAfm','584MbcGRj','1988378iVLeHP','Fichier\x20téléchargé\x20avec\x20succès','9SGCrld','2123gvWdZe','Erreur\x20réseau','Fichier','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','729482bPTSSR','Téléchargement','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Enregistrer\x20sous','1854872CrSzHv','Les\x20données\x20sont\x20trop\x20volumineuses'];_0x5108=function(){return _0x18387e;};return _0x5108();}(function(_0x702d97,_0x48d569){const _0x495e55=_0x2bd4,_0x10c62d=_0x702d97();while(!![]){try{const _0x359fbf=parseInt(_0x495e55(0x180))/0x1+-parseInt(_0x495e55(0x179))/0x2+-parseInt(_0x495e55(0x18c))/0x3*(parseInt(_0x495e55(0x178))/0x4)+parseInt(_0x495e55(0x177))/0x5+-parseInt(_0x495e55(0x187))/0x6*(-parseInt(_0x495e55(0x188))/0x7)+parseInt(_0x495e55(0x184))/0x8*(parseInt(_0x495e55(0x17b))/0x9)+-parseInt(_0x495e55(0x18d))/0xa*(-parseInt(_0x495e55(0x17c))/0xb);if(_0x359fbf===_0x48d569)break;else _0x10c62d['push'](_0x10c62d['shift']());}catch(_0x12ab93){_0x10c62d['push'](_0x10c62d['shift']());}}}(_0x5108,0x92a33));function _0x2bd4(_0x2ba739,_0x3135d1){const _0x510831=_0x5108();return _0x2bd4=function(_0x2bd4db,_0x4bf64c){_0x2bd4db=_0x2bd4db-0x177;let _0x3bf0af=_0x510831[_0x2bd4db];return _0x3bf0af;},_0x2bd4(_0x2ba739,_0x3135d1);}const e={'exchange':{'file':_0x781dc6(0x17e),'upload':_0x781dc6(0x18a),'download':_0x781dc6(0x183),'uploading':_0x781dc6(0x18b),'uploadSuccess':_0x781dc6(0x17a),'uploadSuccessTip':_0x781dc6(0x182),'downloading':_0x781dc6(0x181),'downloadSuccess':_0x781dc6(0x186),'unknownMistake':'Erreur\x20inconnue','networkError':_0x781dc6(0x17d),'tooLarge':_0x781dc6(0x185),'internalError':_0x781dc6(0x189),'interrupt':_0x781dc6(0x17f),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':'Veuillez\x20patienter...','cancel':'Annuler','uploadAgain':'Télécharger\x20à\x20nouveau'}};export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4161df=_0x4e96;(function(_0x352bbc,_0x2dd5e5){const _0x27d9b6=_0x4e96,_0x7adfa=_0x352bbc();while(!![]){try{const _0x1331c5=-parseInt(_0x27d9b6(0xe0))/0x1*(-parseInt(_0x27d9b6(0xf0))/0x2)+parseInt(_0x27d9b6(0xed))/0x3+parseInt(_0x27d9b6(0xef))/0x4+parseInt(_0x27d9b6(0xe2))/0x5+-parseInt(_0x27d9b6(0xf1))/0x6+-parseInt(_0x27d9b6(0xe6))/0x7+-parseInt(_0x27d9b6(0xee))/0x8*(parseInt(_0x27d9b6(0xe4))/0x9);if(_0x1331c5===_0x2dd5e5)break;else _0x7adfa['push'](_0x7adfa['shift']());}catch(_0x593019){_0x7adfa['push'](_0x7adfa['shift']());}}}(_0x5d6a,0xf421e));function _0x4e96(_0x3f06e0,_0x4c4d3d){const _0x5d6a24=_0x5d6a();return _0x4e96=function(_0x4e9617,_0x566376){_0x4e9617=_0x4e9617-0xdf;let _0x4c5628=_0x5d6a24[_0x4e9617];return _0x4c5628;},_0x4e96(_0x3f06e0,_0x4c4d3d);}function _0x5d6a(){const _0x3ebc05=['Пожалуйста,\x20подождите...','3707313KAEaRK','816TGWfZG','3980064mfBFlj','2OvNosB','10472964eKcNnK','Сетевая\x20ошибка','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Отмена','1531270TnFUML','{0}\x20файл(ов)\x20успешно\x20загружен(о)','8606815RByGCA','Файл','141147OgBbqL','Загрузить\x20снова','7968058ECVJun','Скачивание','Данные\x20слишком\x20большие','Неизвестная\x20ошибка','Загрузка','Сохранить\x20как'];_0x5d6a=function(){return _0x3ebc05;};return _0x5d6a();}const o={'exchange':{'file':_0x4161df(0xe3),'upload':'Открыть(Файл)','download':_0x4161df(0xeb),'uploading':_0x4161df(0xea),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x4161df(0xe1),'downloading':_0x4161df(0xe7),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x4161df(0xe9),'networkError':_0x4161df(0xf2),'tooLarge':_0x4161df(0xe8),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x4161df(0xf3),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x4161df(0xec),'cancel':_0x4161df(0xdf),'uploadAgain':_0x4161df(0xe5)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x395d5f=_0x208a;function _0x5b15(){const _0x207ae4=['Hủy\x20bỏ','493445SkfkeL','Lưu\x20dưới\x20dạng','213924TNvZgD','Đang\x20tải\x20xuống','6KMCKog','Luồng\x20dữ\x20liệu\x20quá\x20lớn','223968oinKye','1052800OOTOEG','11384622nuMPOU','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','3299520pPCvTq','Tải\x20xuống\x20thành\x20công','7TWhzWe','Tải\x20lên\x20lại','956752NZZvlf'];_0x5b15=function(){return _0x207ae4;};return _0x5b15();}(function(_0x7b4967,_0x5b4f02){const _0x5ae7e1=_0x208a,_0x2d5ac6=_0x7b4967();while(!![]){try{const _0x1a2008=parseInt(_0x5ae7e1(0x18f))/0x1+parseInt(_0x5ae7e1(0x187))/0x2+parseInt(_0x5ae7e1(0x18d))/0x3*(parseInt(_0x5ae7e1(0x18b))/0x4)+parseInt(_0x5ae7e1(0x189))/0x5+parseInt(_0x5ae7e1(0x183))/0x6+-parseInt(_0x5ae7e1(0x185))/0x7*(-parseInt(_0x5ae7e1(0x190))/0x8)+-parseInt(_0x5ae7e1(0x180))/0x9;if(_0x1a2008===_0x5b4f02)break;else _0x2d5ac6['push'](_0x2d5ac6['shift']());}catch(_0x574110){_0x2d5ac6['push'](_0x2d5ac6['shift']());}}}(_0x5b15,0x4f3cd));function _0x208a(_0x2d34b1,_0x8d4668){const _0x5b15c5=_0x5b15();return _0x208a=function(_0x208af2,_0x5ea08b){_0x208af2=_0x208af2-0x180;let _0x79985=_0x5b15c5[_0x208af2];return _0x79985;},_0x208a(_0x2d34b1,_0x8d4668);}const n={'exchange':{'file':'Tệp','upload':'Mở\x20(Tệp)','download':_0x395d5f(0x18a),'uploading':'Đang\x20tải\x20lên','uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x395d5f(0x18c),'downloadSuccess':_0x395d5f(0x184),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':'Lỗi\x20mạng','tooLarge':_0x395d5f(0x18e),'internalError':_0x395d5f(0x181),'interrupt':_0x395d5f(0x182),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':'Vui\x20lòng\x20đợi...','cancel':_0x395d5f(0x188),'uploadAgain':_0x395d5f(0x186)}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4899f8=_0x5c2a;(function(_0x5ecf86,_0x20c114){const _0x573a5e=_0x5c2a,_0x524d55=_0x5ecf86();while(!![]){try{const _0x4d3157=parseInt(_0x573a5e(0x84))/0x1*(-parseInt(_0x573a5e(0x7f))/0x2)+parseInt(_0x573a5e(0x82))/0x3*(-parseInt(_0x573a5e(0x83))/0x4)+parseInt(_0x573a5e(0x7c))/0x5+-parseInt(_0x573a5e(0x89))/0x6*(-parseInt(_0x573a5e(0x8f))/0x7)+parseInt(_0x573a5e(0x87))/0x8+-parseInt(_0x573a5e(0x81))/0x9+parseInt(_0x573a5e(0x8c))/0xa*(-parseInt(_0x573a5e(0x88))/0xb);if(_0x4d3157===_0x20c114)break;else _0x524d55['push'](_0x524d55['shift']());}catch(_0x5ba3de){_0x524d55['push'](_0x524d55['shift']());}}}(_0x323e,0x7c0f4));const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0x4899f8(0x7e),'uploading':_0x4899f8(0x90),'uploadSuccess':_0x4899f8(0x80),'uploadSuccessTip':_0x4899f8(0x7d),'downloading':_0x4899f8(0x92),'downloadSuccess':_0x4899f8(0x8a),'unknownMistake':_0x4899f8(0x8d),'networkError':'网络异常','tooLarge':_0x4899f8(0x85),'internalError':_0x4899f8(0x8e),'interrupt':_0x4899f8(0x86),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x4899f8(0x91),'cancel':'取消','uploadAgain':_0x4899f8(0x8b)}};function _0x323e(){const _0x418e91=['1fXQuOT','数据流过大','网络连接中断,文件上传失败','752224LgRKwN','209SokFoW','5034318dwGeva','下载成功','再次上传','102290rTFPgG','未知错误','内部未知错误','7tzVKly','上传中','请稍等...','下载中','3322475mXCZVs','{0}个文件上传成功','另存为','429790mLVWAs','文件上传成功','284391PECTcl','3TCMnQQ','2594332SIYutV'];_0x323e=function(){return _0x418e91;};return _0x323e();}function _0x5c2a(_0x1bd85a,_0x1f1621){const _0x323e6d=_0x323e();return _0x5c2a=function(_0x5c2a82,_0x27ee3d){_0x5c2a82=_0x5c2a82-0x7c;let _0x3c99bb=_0x323e6d[_0x5c2a82];return _0x3c99bb;},_0x5c2a(_0x1bd85a,_0x1f1621);}export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x8a22(_0x203f1c,_0x90303c){const _0x450326=_0x4503();return _0x8a22=function(_0x8a22a8,_0x512d47){_0x8a22a8=_0x8a22a8-0x112;let _0x457af7=_0x450326[_0x8a22a8];return _0x457af7;},_0x8a22(_0x203f1c,_0x90303c);}const _0x235d20=_0x8a22;(function(_0x1079ad,_0x3c115f){const _0x5add2a=_0x8a22,_0x5abd04=_0x1079ad();while(!![]){try{const _0x3fc4c2=-parseInt(_0x5add2a(0x125))/0x1+parseInt(_0x5add2a(0x11f))/0x2*(-parseInt(_0x5add2a(0x113))/0x3)+-parseInt(_0x5add2a(0x115))/0x4+-parseInt(_0x5add2a(0x114))/0x5+parseInt(_0x5add2a(0x119))/0x6+parseInt(_0x5add2a(0x11e))/0x7*(parseInt(_0x5add2a(0x122))/0x8)+parseInt(_0x5add2a(0x121))/0x9*(parseInt(_0x5add2a(0x11c))/0xa);if(_0x3fc4c2===_0x3c115f)break;else _0x5abd04['push'](_0x5abd04['shift']());}catch(_0x5a2ddf){_0x5abd04['push'](_0x5abd04['shift']());}}}(_0x4503,0x3bb49));const o={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0x235d20(0x11d),'uploading':_0x235d20(0x116),'uploadSuccess':_0x235d20(0x123),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x235d20(0x120),'downloadSuccess':_0x235d20(0x11a),'unknownMistake':_0x235d20(0x112),'networkError':_0x235d20(0x11b),'tooLarge':'資料流過大','internalError':_0x235d20(0x118),'interrupt':_0x235d20(0x117),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x235d20(0x124),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x4503(){const _0x4b2af3=['網路連線中斷,檔案上傳失敗','內部未知錯誤','1814466DuGzjg','下載成功','網路異常','100twBqEC','另存為','1386889SbzKlo','808GIvttW','下載中','762030TtMoGZ','8TsJBhs','檔案上傳成功','請稍等...','312184ylpDOE','未知錯誤','2169Hqtlgh','1381965ooyVDy','888064BkWoxf','上傳中'];_0x4503=function(){return _0x4b2af3;};return _0x4503();}export{o as default};
|
@@ -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 _0x461b(_0x18d6bb,_0xc75e21){const _0x1e1180=_0x1e11();return _0x461b=function(_0x461b08,_0x136b0f){_0x461b08=_0x461b08-0x9e;let _0x1834e8=_0x1e1180[_0x461b08];return _0x1834e8;},_0x461b(_0x18d6bb,_0xc75e21);}(function(_0x2ac69f,_0x3dd5e7){const _0x46df68=_0x461b,_0x449d65=_0x2ac69f();while(!![]){try{const _0x3d2f1d=parseInt(_0x46df68(0xa3))/0x1+parseInt(_0x46df68(0xab))/0x2+-parseInt(_0x46df68(0xb6))/0x3*(parseInt(_0x46df68(0xa6))/0x4)+-parseInt(_0x46df68(0xae))/0x5+parseInt(_0x46df68(0xbe))/0x6+parseInt(_0x46df68(0xa4))/0x7+parseInt(_0x46df68(0xa8))/0x8*(parseInt(_0x46df68(0x9e))/0x9);if(_0x3d2f1d===_0x3dd5e7)break;else _0x449d65['push'](_0x449d65['shift']());}catch(_0x2a6dfc){_0x449d65['push'](_0x449d65['shift']());}}}(_0x1e11,0x80c03),function(_0x1917e7,_0xfd8942){const _0x483c91=_0x461b;typeof exports==_0x483c91(0xac)&&typeof module<'u'?_0xfd8942(require(_0x483c91(0xa1)),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x483c91(0xbd)]?define([_0x483c91(0xa1),_0x483c91(0xa7)],_0xfd8942):(_0x1917e7=typeof globalThis<'u'?globalThis:_0x1917e7||self,_0xfd8942(_0x1917e7[_0x483c91(0xc1)],_0x1917e7[_0x483c91(0xc2)]));}(this,function(_0x3ab324,_0x3efb2b){'use strict';const _0x240b70=_0x461b;var _0x5851d4=(_0x513f8e=>(_0x513f8e[_0x513f8e[_0x240b70(0xba)]=0x0]=_0x240b70(0xba),_0x513f8e[_0x513f8e[_0x240b70(0xb8)]=0x1]=_0x240b70(0xb8),_0x513f8e[_0x513f8e['UNIVER_SHEET']=0x2]=_0x240b70(0xa0),_0x513f8e[_0x513f8e[_0x240b70(0xb4)]=0x3]=_0x240b70(0xb4),_0x513f8e[_0x513f8e[_0x240b70(0xb1)]=0x4]=_0x240b70(0xb1),_0x513f8e[_0x513f8e[_0x240b70(0xb5)]=-0x1]='UNRECOGNIZED',_0x513f8e))(_0x5851d4||{});class _0x28d406 extends _0x3efb2b[_0x240b70(0xbb)]{async[_0x240b70(0xc3)](_0x33f2a8){const _0x396d14=_0x240b70;return this[_0x396d14(0xb9)](_0x33f2a8);}async[_0x240b70(0xb9)](_0x5b52d6){const _0x36fb9a=_0x240b70,_0x1bc917=this[_0x36fb9a(0xb2)]['get'](_0x3ab324[_0x36fb9a(0xad)]);if(!_0x1bc917)throw new Error(_0x36fb9a(0xb0));return _0x1bc917[_0x36fb9a(0xb7)](_0x5b52d6,_0x5851d4[_0x36fb9a(0xa0)]);}async['importXLSXToSnapshot'](_0xe81d91){return this['importXLSXToSnapshotAsync'](_0xe81d91);}async['importXLSXToSnapshotAsync'](_0x24b6c0){const _0x333294=_0x240b70,_0x358141=this[_0x333294(0xb2)][_0x333294(0xa9)](_0x3ab324[_0x333294(0xad)]);if(!_0x358141)throw new Error(_0x333294(0xb0));return _0x358141[_0x333294(0xa5)](_0x24b6c0);}async[_0x240b70(0xbf)](_0x276dcb){const _0x2ac07d=_0x240b70;return this[_0x2ac07d(0xa2)](_0x276dcb);}async[_0x240b70(0xa2)](_0x5ac5e1){const _0x2e1f25=_0x240b70,_0x237569=this[_0x2e1f25(0xb2)][_0x2e1f25(0xa9)](_0x3ab324[_0x2e1f25(0xad)]);if(!_0x237569)throw new Error(_0x2e1f25(0xb0));return _0x237569['exportXLSXByUnitId'](_0x5ac5e1);}async[_0x240b70(0x9f)](_0xdbb801){const _0x2ae2c3=_0x240b70;return this[_0x2ae2c3(0xb3)](_0xdbb801);}async[_0x240b70(0xb3)](_0x4c9d2f){const _0x5324c7=_0x240b70,_0x3d99de=this[_0x5324c7(0xb2)][_0x5324c7(0xa9)](_0x3ab324[_0x5324c7(0xad)]);if(!_0x3d99de)throw new Error(_0x5324c7(0xb0));return _0x3d99de[_0x5324c7(0x9f)](_0x4c9d2f);}async[_0x240b70(0xbc)](_0x5c9d7b){const _0x7d19da=_0x240b70;return this[_0x7d19da(0xaa)](_0x5c9d7b);}async['importDOCXToUnitIdAsync'](_0x40530d){const _0x5221f7=_0x240b70,_0x11f33a=this[_0x5221f7(0xb2)][_0x5221f7(0xa9)](_0x3ab324[_0x5221f7(0xad)]);if(!_0x11f33a)throw new Error(_0x5221f7(0xb0));return _0x11f33a[_0x5221f7(0xb7)](_0x40530d,_0x5851d4['UNIVER_DOC']);}async[_0x240b70(0xc4)](_0x5346a){const _0xe371a4=_0x240b70;return this[_0xe371a4(0xc0)](_0x5346a);}async[_0x240b70(0xc0)](_0x4c15c5){const _0x479c35=_0x240b70,_0x4470d2=this[_0x479c35(0xb2)]['get'](_0x3ab324['IExchangeService']);if(!_0x4470d2)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4470d2[_0x479c35(0xc4)](_0x4c15c5);}}_0x3efb2b[_0x240b70(0xbb)][_0x240b70(0xaf)](_0x28d406);}));function _0x1e11(){const _0x37d34b=['UNIVER_UNKNOWN','FUniver','importDOCXToUnitId','amd','4723452Iihufs','exportXLSXByUnitId','importDOCXToSnapshotAsync','UniverProExchangeClient','UniverCoreFacade','importXLSXToUnitId','importDOCXToSnapshot','10431fjLQYn','exportXLSXBySnapshot','UNIVER_SHEET','@univerjs-pro/exchange-client','exportXLSXByUnitIdAsync','381374PZlowB','1553209SAgrAg','importXLSXToSnapshot','2348GyAlLU','@univerjs/core/facade','2488yoHvNF','get','importDOCXToUnitIdAsync','620274TLqzSV','object','IExchangeService','3973465bjRFFk','extend','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_PROJECT','_injector','exportXLSXBySnapshotAsync','UNIVER_SLIDE','UNRECOGNIZED','3777VeBsJd','importFileToUnitId','UNIVER_DOC','importXLSXToUnitIdAsync'];_0x1e11=function(){return _0x37d34b;};return _0x1e11();}
|