@univerjs-pro/exchange-client 0.6.5 → 0.6.6-nightly.202503141606
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 _0x4137c6=_0x265c;(function(_0x13fbf9,_0x26f55e){const _0x450fe4=_0x265c,_0x3cf99d=_0x13fbf9();while(!![]){try{const _0xf5edaf=parseInt(_0x450fe4(0xd5))/0x1+-parseInt(_0x450fe4(0xcd))/0x2+-parseInt(_0x450fe4(0xc6))/0x3*(-parseInt(_0x450fe4(0xc7))/0x4)+-parseInt(_0x450fe4(0xc5))/0x5+-parseInt(_0x450fe4(0xc0))/0x6+-parseInt(_0x450fe4(0xd1))/0x7*(-parseInt(_0x450fe4(0xd4))/0x8)+-parseInt(_0x450fe4(0xd0))/0x9*(parseInt(_0x450fe4(0xd6))/0xa);if(_0xf5edaf===_0x26f55e)break;else _0x3cf99d['push'](_0x3cf99d['shift']());}catch(_0x3d626a){_0x3cf99d['push'](_0x3cf99d['shift']());}}}(_0x1fcc,0x76ea0));const e={'exchange':{'file':_0x4137c6(0xc2),'upload':'Open(File)','download':_0x4137c6(0xc1),'uploading':_0x4137c6(0xc9),'uploadSuccess':_0x4137c6(0xcc),'uploadSuccessTip':_0x4137c6(0xd3),'downloading':_0x4137c6(0xc4),'downloadSuccess':_0x4137c6(0xd7),'unknownMistake':_0x4137c6(0xcb),'networkError':_0x4137c6(0xce),'tooLarge':_0x4137c6(0xd8),'internalError':_0x4137c6(0xd2),'interrupt':_0x4137c6(0xcf),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x4137c6(0xc8),'cancel':_0x4137c6(0xc3),'uploadAgain':_0x4137c6(0xca)}};function _0x265c(_0x3304e4,_0x2625dc){const _0x1fcca9=_0x1fcc();return _0x265c=function(_0x265cdf,_0x7fae5a){_0x265cdf=_0x265cdf-0xc0;let _0x4592b6=_0x1fcca9[_0x265cdf];return _0x4592b6;},_0x265c(_0x3304e4,_0x2625dc);}export{e as default};function _0x1fcc(){const _0xf898ab=['Network\x20error','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','208098BRqIsZ','112NNtprd','Internal\x20unknown\x20error','{0}\x20file(s)\x20uploaded\x20successfully','273616QLRxkK','427459qlvbYr','190cgrUSr','Download\x20success','Data\x20is\x20too\x20large','94554VMaIyq','Save\x20As','File','Cancel','Downloading','1079405hyubyq','9psjCoN','372748EaChmt','Please\x20wait...','Uploading','Upload\x20again','Unknown\x20mistake','File\x20uploaded\x20successfully','192444CIfEVj'];_0x1fcc=function(){return _0xf898ab;};return _0x1fcc();}
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2a888e=_0x354e;(function(_0x1dca45,_0x374975){const _0x58d4a0=_0x354e,_0x3b3025=_0x1dca45();while(!![]){try{const _0x588202=-parseInt(_0x58d4a0(0x19a))/0x1*(parseInt(_0x58d4a0(0x19b))/0x2)+parseInt(_0x58d4a0(0x19c))/0x3*(parseInt(_0x58d4a0(0x197))/0x4)+parseInt(_0x58d4a0(0x191))/0x5+-parseInt(_0x58d4a0(0x18e))/0x6*(-parseInt(_0x58d4a0(0x19d))/0x7)+parseInt(_0x58d4a0(0x190))/0x8+-parseInt(_0x58d4a0(0x19e))/0x9*(parseInt(_0x58d4a0(0x195))/0xa)+parseInt(_0x58d4a0(0x1a0))/0xb;if(_0x588202===_0x374975)break;else _0x3b3025['push'](_0x3b3025['shift']());}catch(_0x547d23){_0x3b3025['push'](_0x3b3025['shift']());}}}(_0x42d3,0xa6102));function _0x42d3(){const _0x5a5efb=['فایل','ذخیره\x20به\x20عنوان','در\x20حال\x20بارگذاری','خطای\x20داخلی\x20ناشناخته','لغو','در\x20حال\x20دانلود','129666rXfDrD','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','6878712CgumpQ','237145voeGtT','بازکردن(فایل)','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','بارگذاری\x20مجدد','371390lBpbjm','خطای\x20ناشناخته','2440108uQQbDt','داده\x20خیلی\x20بزرگ\x20است','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','50047iPGxHG','54iYUpNz','3fbBjDS','112DhhVkc','45Ahxjmh','دانلود\x20موفقیت\x20آمیز','3894957QsvSaX','لطفا\x20صبر\x20کنید...'];_0x42d3=function(){return _0x5a5efb;};return _0x42d3();}function _0x354e(_0x9a8107,_0x4f2dec){const _0x42d36d=_0x42d3();return _0x354e=function(_0x354efd,_0x5b64be){_0x354efd=_0x354efd-0x18e;let _0x492f8f=_0x42d36d[_0x354efd];return _0x492f8f;},_0x354e(_0x9a8107,_0x4f2dec);}const o={'exchange':{'file':_0x2a888e(0x1a2),'upload':_0x2a888e(0x192),'download':_0x2a888e(0x1a3),'uploading':_0x2a888e(0x1a4),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x2a888e(0x18f),'downloading':_0x2a888e(0x1a7),'downloadSuccess':_0x2a888e(0x19f),'unknownMistake':_0x2a888e(0x196),'networkError':'خطای\x20شبکه','tooLarge':_0x2a888e(0x198),'internalError':_0x2a888e(0x1a5),'interrupt':_0x2a888e(0x193),'fileTypeError':_0x2a888e(0x199),'wait':_0x2a888e(0x1a1),'cancel':_0x2a888e(0x1a6),'uploadAgain':_0x2a888e(0x194)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x47db88=_0xca06;(function(_0x115987,_0x2f5e68){const _0x9a4871=_0xca06,_0x57dda3=_0x115987();while(!![]){try{const _0x343104=parseInt(_0x9a4871(0x190))/0x1*(-parseInt(_0x9a4871(0x191))/0x2)+-parseInt(_0x9a4871(0x18e))/0x3*(parseInt(_0x9a4871(0x18f))/0x4)+parseInt(_0x9a4871(0x1a2))/0x5*(parseInt(_0x9a4871(0x195))/0x6)+-parseInt(_0x9a4871(0x199))/0x7+parseInt(_0x9a4871(0x1a3))/0x8+parseInt(_0x9a4871(0x192))/0x9+parseInt(_0x9a4871(0x19d))/0xa*(parseInt(_0x9a4871(0x18d))/0xb);if(_0x343104===_0x2f5e68)break;else _0x57dda3['push'](_0x57dda3['shift']());}catch(_0x4734e8){_0x57dda3['push'](_0x57dda3['shift']());}}}(_0x463d,0xcb1d5));const e={'exchange':{'file':_0x47db88(0x19b),'upload':_0x47db88(0x193),'download':'Enregistrer\x20sous','uploading':'Téléchargement\x20en\x20cours','uploadSuccess':_0x47db88(0x19e),'uploadSuccessTip':_0x47db88(0x19c),'downloading':_0x47db88(0x19f),'downloadSuccess':_0x47db88(0x196),'unknownMistake':'Erreur\x20inconnue','networkError':_0x47db88(0x198),'tooLarge':_0x47db88(0x1a1),'internalError':'Erreur\x20interne\x20inconnue','interrupt':_0x47db88(0x1a4),'fileTypeError':_0x47db88(0x19a),'wait':_0x47db88(0x1a0),'cancel':_0x47db88(0x197),'uploadAgain':_0x47db88(0x194)}};export{e as default};function _0xca06(_0xaeb51c,_0x23ff79){const _0x463dc0=_0x463d();return _0xca06=function(_0xca06ef,_0x40ed6f){_0xca06ef=_0xca06ef-0x18d;let _0x1e2dbf=_0x463dc0[_0xca06ef];return _0x1e2dbf;},_0xca06(_0xaeb51c,_0x23ff79);}function _0x463d(){const _0x50dcea=['Fichier\x20téléchargé\x20avec\x20succès','Téléchargement','Veuillez\x20patienter...','Les\x20données\x20sont\x20trop\x20volumineuses','105kJhrsU','458568eDLKgZ','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','317537JhJUAw','15699MRqcVu','224UxmlLT','3QVDAkZ','767586Gbxkwq','13634244zNPuMA','Ouvrir\x20(Fichier)','Télécharger\x20à\x20nouveau','24456KnNoAW','Téléchargement\x20réussi','Annuler','Erreur\x20réseau','3348765kVWPxE','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Fichier','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','380jLWTdQ'];_0x463d=function(){return _0x50dcea;};return _0x463d();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x31c106=_0x5851;function _0x5c1a(){const _0x103e64=['9lprRWe','6bseDGW','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Неизвестная\x20ошибка','59351810fnlndB','7KUrMOH','Файл','1103688ctuCdU','Сетевая\x20ошибка','Загрузить\x20снова','Загрузка','Внутренняя\x20неизвестная\x20ошибка','8259385KAzEFO','Скачивание\x20успешно','1251574FyOiQR','Открыть(Файл)','Пожалуйста,\x20подождите...','862562YPMDxH','4994100uFZTLR','1638015KBFOuT','Сохранить\x20как'];_0x5c1a=function(){return _0x103e64;};return _0x5c1a();}function _0x5851(_0xf92907,_0x27a5ee){const _0x5c1ace=_0x5c1a();return _0x5851=function(_0x5851c1,_0x1047cf){_0x5851c1=_0x5851c1-0x1a7;let _0xb5159b=_0x5c1ace[_0x5851c1];return _0xb5159b;},_0x5851(_0xf92907,_0x27a5ee);}(function(_0x586255,_0x2999d2){const _0x3d62dc=_0x5851,_0x2db28f=_0x586255();while(!![]){try{const _0x5f1fef=-parseInt(_0x3d62dc(0x1ae))/0x1+-parseInt(_0x3d62dc(0x1b1))/0x2+-parseInt(_0x3d62dc(0x1b3))/0x3+-parseInt(_0x3d62dc(0x1b2))/0x4+parseInt(_0x3d62dc(0x1ac))/0x5*(-parseInt(_0x3d62dc(0x1b6))/0x6)+-parseInt(_0x3d62dc(0x1ba))/0x7*(-parseInt(_0x3d62dc(0x1a7))/0x8)+-parseInt(_0x3d62dc(0x1b5))/0x9*(-parseInt(_0x3d62dc(0x1b9))/0xa);if(_0x5f1fef===_0x2999d2)break;else _0x2db28f['push'](_0x2db28f['shift']());}catch(_0x51a590){_0x2db28f['push'](_0x2db28f['shift']());}}}(_0x5c1a,0xe6708));const o={'exchange':{'file':_0x31c106(0x1bb),'upload':_0x31c106(0x1af),'download':_0x31c106(0x1b4),'uploading':_0x31c106(0x1aa),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':'Скачивание','downloadSuccess':_0x31c106(0x1ad),'unknownMistake':_0x31c106(0x1b8),'networkError':_0x31c106(0x1a8),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x31c106(0x1ab),'interrupt':_0x31c106(0x1b7),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x31c106(0x1b0),'cancel':'Отмена','uploadAgain':_0x31c106(0x1a9)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x4b79aa=_0x3e9c;(function(_0x5bf75a,_0xb31270){const _0x533448=_0x3e9c,_0x3a2b94=_0x5bf75a();while(!![]){try{const _0x4de409=parseInt(_0x533448(0xd2))/0x1+parseInt(_0x533448(0xd0))/0x2+-parseInt(_0x533448(0xdb))/0x3+-parseInt(_0x533448(0xc9))/0x4+-parseInt(_0x533448(0xcf))/0x5+parseInt(_0x533448(0xd8))/0x6*(-parseInt(_0x533448(0xcb))/0x7)+parseInt(_0x533448(0xc8))/0x8;if(_0x4de409===_0xb31270)break;else _0x3a2b94['push'](_0x3a2b94['shift']());}catch(_0x349329){_0x3a2b94['push'](_0x3a2b94['shift']());}}}(_0x3c7b,0xe1bfe));function _0x3e9c(_0xfb3488,_0x58dc4a){const _0x3c7b26=_0x3c7b();return _0x3e9c=function(_0x3e9cae,_0x812e73){_0x3e9cae=_0x3e9cae-0xc8;let _0x4039d6=_0x3c7b26[_0x3e9cae];return _0x4039d6;},_0x3e9c(_0xfb3488,_0x58dc4a);}const n={'exchange':{'file':_0x4b79aa(0xd7),'upload':_0x4b79aa(0xce),'download':'Lưu\x20dưới\x20dạng','uploading':_0x4b79aa(0xd3),'uploadSuccess':_0x4b79aa(0xcd),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x4b79aa(0xd5),'downloadSuccess':_0x4b79aa(0xd1),'unknownMistake':_0x4b79aa(0xda),'networkError':_0x4b79aa(0xcc),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x4b79aa(0xdc),'interrupt':_0x4b79aa(0xd9),'fileTypeError':_0x4b79aa(0xd4),'wait':_0x4b79aa(0xd6),'cancel':_0x4b79aa(0xca),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};function _0x3c7b(){const _0x3745e1=['Hủy\x20bỏ','313915FrwpbV','Lỗi\x20mạng','Tải\x20lên\x20tệp\x20thành\x20công','Mở\x20(Tệp)','3246200bPWfzk','2902348MEBSWH','Tải\x20xuống\x20thành\x20công','508895JuPOzD','Đang\x20tải\x20lên','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Đang\x20tải\x20xuống','Vui\x20lòng\x20đợi...','Tệp','60LDEXkj','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Lỗi\x20không\x20xác\x20định','4452837wpOnxP','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','23575648bPRQwq','5601544FnthPR'];_0x3c7b=function(){return _0x3745e1;};return _0x3c7b();}
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x19b399=_0x1a3f;function _0x1a3f(_0x575756,_0x86ebda){const _0x2b49cc=_0x2b49();return _0x1a3f=function(_0x1a3f43,_0x1f3832){_0x1a3f43=_0x1a3f43-0x11a;let _0x4881d4=_0x2b49cc[_0x1a3f43];return _0x4881d4;},_0x1a3f(_0x575756,_0x86ebda);}function _0x2b49(){const _0x5362d7=['未知错误','9BajPAu','4BupbWy','137288MzMgZm','网络连接中断,文件上传失败','上传中','下载成功','{0}个文件上传成功','网络异常','189080XGLREF','请稍等...','另存为','数据流过大','再次上传','513471YbOpqL','695583tptKcF','7194TLzTcX','打开(文件)','1294840MLuwad','4703830bEToDY','665NhNapT'];_0x2b49=function(){return _0x5362d7;};return _0x2b49();}(function(_0x321909,_0xd45e6f){const _0x5f4de8=_0x1a3f,_0x4b6827=_0x321909();while(!![]){try{const _0xe53b88=parseInt(_0x5f4de8(0x12b))/0x1+parseInt(_0x5f4de8(0x11c))/0x2+parseInt(_0x5f4de8(0x121))/0x3*(-parseInt(_0x5f4de8(0x12a))/0x4)+-parseInt(_0x5f4de8(0x127))/0x5*(parseInt(_0x5f4de8(0x123))/0x6)+-parseInt(_0x5f4de8(0x122))/0x7+-parseInt(_0x5f4de8(0x125))/0x8*(parseInt(_0x5f4de8(0x129))/0x9)+parseInt(_0x5f4de8(0x126))/0xa;if(_0xe53b88===_0xd45e6f)break;else _0x4b6827['push'](_0x4b6827['shift']());}catch(_0x26354a){_0x4b6827['push'](_0x4b6827['shift']());}}}(_0x2b49,0x1af1b));const o={'exchange':{'file':'文件','upload':_0x19b399(0x124),'download':_0x19b399(0x11e),'uploading':_0x19b399(0x12d),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x19b399(0x11a),'downloading':'下载中','downloadSuccess':_0x19b399(0x12e),'unknownMistake':_0x19b399(0x128),'networkError':_0x19b399(0x11b),'tooLarge':_0x19b399(0x11f),'internalError':'内部未知错误','interrupt':_0x19b399(0x12c),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x19b399(0x11d),'cancel':'取消','uploadAgain':_0x19b399(0x120)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x5ea6ef=_0x459f;(function(_0x21d90a,_0x501928){const _0x2f60d8=_0x459f,_0x38aa8a=_0x21d90a();while(!![]){try{const _0x4e787f=parseInt(_0x2f60d8(0x1f5))/0x1*(-parseInt(_0x2f60d8(0x206))/0x2)+parseInt(_0x2f60d8(0x1fc))/0x3+parseInt(_0x2f60d8(0x1f8))/0x4*(parseInt(_0x2f60d8(0x1fd))/0x5)+-parseInt(_0x2f60d8(0x201))/0x6*(parseInt(_0x2f60d8(0x203))/0x7)+parseInt(_0x2f60d8(0x1f0))/0x8+parseInt(_0x2f60d8(0x1f9))/0x9*(parseInt(_0x2f60d8(0x1f2))/0xa)+parseInt(_0x2f60d8(0x1ff))/0xb*(-parseInt(_0x2f60d8(0x204))/0xc);if(_0x4e787f===_0x501928)break;else _0x38aa8a['push'](_0x38aa8a['shift']());}catch(_0x2c055a){_0x38aa8a['push'](_0x38aa8a['shift']());}}}(_0x35de,0x7a52c));function _0x35de(){const _0x59cd44=['內部未知錯誤','未知錯誤','4cUMPpS','7756623tIIHbK','另存為','網路異常','2426529NVSXsL','3678685cCZjma','開啟(檔案)','792297JHcDWI','資料流過大','117972KMFAYY','網路連線中斷,檔案上傳失敗','287qZgxUL','204WJWNut','請稍等...','30034kxybsr','6648072WVgVLl','下載中','10PoWRzq','檔案上傳成功','所選檔案\x20[{0}]\x20不支援上傳','47lJNJDC'];_0x35de=function(){return _0x59cd44;};return _0x35de();}const o={'exchange':{'file':'檔案','upload':_0x5ea6ef(0x1fe),'download':_0x5ea6ef(0x1fa),'uploading':'上傳中','uploadSuccess':_0x5ea6ef(0x1f3),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x5ea6ef(0x1f1),'downloadSuccess':'下載成功','unknownMistake':_0x5ea6ef(0x1f7),'networkError':_0x5ea6ef(0x1fb),'tooLarge':_0x5ea6ef(0x200),'internalError':_0x5ea6ef(0x1f6),'interrupt':_0x5ea6ef(0x202),'fileTypeError':_0x5ea6ef(0x1f4),'wait':_0x5ea6ef(0x205),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x459f(_0x17bc2a,_0xd32885){const _0x35de49=_0x35de();return _0x459f=function(_0x459f35,_0x3a67b5){_0x459f35=_0x459f35-0x1f0;let _0x23cb8e=_0x35de49[_0x459f35];return _0x23cb8e;},_0x459f(_0x17bc2a,_0xd32885);}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 _0x5ba1(){const _0x319336=['importXLSXToSnapshot','12WjwkfU','109NSotRo','importXLSXToUnitIdAsync','importFileToUnitId','object','27DuwLgW','UNIVER_DOC','@univerjs-pro/exchange-client','importXLSXToUnitId','1030qnsdpw','get','UNRECOGNIZED','FUniver','importDOCXToUnitIdAsync','function','UniverCoreFacade','UNIVER_PROJECT','exportXLSXByUnitId','UNIVER_SHEET','exportXLSXBySnapshotAsync','_injector','3188480ADJFSK','1900336znZZWL','extend','exportXLSXBySnapshot','IExchangeService','importDOCXToSnapshot','1786881OteAUP','13516756wVpyfF','@univerjs/core/facade','7MOlEiu','importXLSXToSnapshotAsync','importDOCXToSnapshotAsync','UniverProExchangeClient','UNIVER_SLIDE','exportXLSXByUnitIdAsync','UNIVER_UNKNOWN','The\x20exchange\x20service\x20is\x20not\x20available','4540170kwqALA','2292824qkJpjU'];_0x5ba1=function(){return _0x319336;};return _0x5ba1();}function _0xd23e(_0x3008fa,_0x3eed78){const _0x5ba1f4=_0x5ba1();return _0xd23e=function(_0xd23ee0,_0x19deb2){_0xd23ee0=_0xd23ee0-0x1c2;let _0x4524ef=_0x5ba1f4[_0xd23ee0];return _0x4524ef;},_0xd23e(_0x3008fa,_0x3eed78);}(function(_0x13c9d5,_0xce40ed){const _0x48ed2d=_0xd23e,_0x5ab0c1=_0x13c9d5();while(!![]){try{const _0x741a46=-parseInt(_0x48ed2d(0x1ce))/0x1*(parseInt(_0x48ed2d(0x1d6))/0x2)+-parseInt(_0x48ed2d(0x1e8))/0x3+parseInt(_0x48ed2d(0x1e3))/0x4+parseInt(_0x48ed2d(0x1e2))/0x5*(-parseInt(_0x48ed2d(0x1cd))/0x6)+-parseInt(_0x48ed2d(0x1c2))/0x7*(parseInt(_0x48ed2d(0x1cb))/0x8)+parseInt(_0x48ed2d(0x1d2))/0x9*(parseInt(_0x48ed2d(0x1ca))/0xa)+parseInt(_0x48ed2d(0x1e9))/0xb;if(_0x741a46===_0xce40ed)break;else _0x5ab0c1['push'](_0x5ab0c1['shift']());}catch(_0x500db7){_0x5ab0c1['push'](_0x5ab0c1['shift']());}}}(_0x5ba1,0xd00ce),function(_0x50447c,_0x371e44){const _0x4a9593=_0xd23e;typeof exports==_0x4a9593(0x1d1)&&typeof module<'u'?_0x371e44(require(_0x4a9593(0x1d4)),require(_0x4a9593(0x1ea))):typeof define==_0x4a9593(0x1db)&&define['amd']?define([_0x4a9593(0x1d4),_0x4a9593(0x1ea)],_0x371e44):(_0x50447c=typeof globalThis<'u'?globalThis:_0x50447c||self,_0x371e44(_0x50447c[_0x4a9593(0x1c5)],_0x50447c[_0x4a9593(0x1dc)]));}(this,function(_0x525325,_0x42caa7){'use strict';const _0x31a93c=_0xd23e;var _0x494a97=(_0x122dc3=>(_0x122dc3[_0x122dc3['UNIVER_UNKNOWN']=0x0]=_0x31a93c(0x1c8),_0x122dc3[_0x122dc3[_0x31a93c(0x1d3)]=0x1]=_0x31a93c(0x1d3),_0x122dc3[_0x122dc3[_0x31a93c(0x1df)]=0x2]=_0x31a93c(0x1df),_0x122dc3[_0x122dc3[_0x31a93c(0x1c6)]=0x3]=_0x31a93c(0x1c6),_0x122dc3[_0x122dc3[_0x31a93c(0x1dd)]=0x4]=_0x31a93c(0x1dd),_0x122dc3[_0x122dc3[_0x31a93c(0x1d8)]=-0x1]=_0x31a93c(0x1d8),_0x122dc3))(_0x494a97||{});class _0x342365 extends _0x42caa7[_0x31a93c(0x1d9)]{async[_0x31a93c(0x1d5)](_0x69acd8){return this['importXLSXToUnitIdAsync'](_0x69acd8);}async[_0x31a93c(0x1cf)](_0x4549d6){const _0x1414d6=_0x31a93c,_0x335606=this['_injector'][_0x1414d6(0x1d7)](_0x525325[_0x1414d6(0x1e6)]);if(!_0x335606)throw new Error(_0x1414d6(0x1c9));return _0x335606[_0x1414d6(0x1d0)](_0x4549d6,_0x494a97['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x49c18b){const _0x26c4d6=_0x31a93c;return this[_0x26c4d6(0x1c3)](_0x49c18b);}async[_0x31a93c(0x1c3)](_0x5a3d58){const _0x797c31=_0x31a93c,_0xbcfb6d=this[_0x797c31(0x1e1)][_0x797c31(0x1d7)](_0x525325['IExchangeService']);if(!_0xbcfb6d)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xbcfb6d[_0x797c31(0x1cc)](_0x5a3d58);}async['exportXLSXByUnitId'](_0xe57713){const _0x390341=_0x31a93c;return this[_0x390341(0x1c7)](_0xe57713);}async[_0x31a93c(0x1c7)](_0xaf09da){const _0x118669=_0x31a93c,_0x29d15b=this['_injector'][_0x118669(0x1d7)](_0x525325[_0x118669(0x1e6)]);if(!_0x29d15b)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x29d15b[_0x118669(0x1de)](_0xaf09da);}async['exportXLSXBySnapshot'](_0x2e0159){const _0xfd1e8c=_0x31a93c;return this[_0xfd1e8c(0x1e0)](_0x2e0159);}async[_0x31a93c(0x1e0)](_0xe46ee6){const _0x4aba04=_0x31a93c,_0x417eba=this[_0x4aba04(0x1e1)][_0x4aba04(0x1d7)](_0x525325['IExchangeService']);if(!_0x417eba)throw new Error(_0x4aba04(0x1c9));return _0x417eba[_0x4aba04(0x1e5)](_0xe46ee6);}async['importDOCXToUnitId'](_0x16ca94){return this['importDOCXToUnitIdAsync'](_0x16ca94);}async[_0x31a93c(0x1da)](_0x4e7c8b){const _0x27b747=_0x31a93c,_0x57130b=this[_0x27b747(0x1e1)][_0x27b747(0x1d7)](_0x525325[_0x27b747(0x1e6)]);if(!_0x57130b)throw new Error(_0x27b747(0x1c9));return _0x57130b[_0x27b747(0x1d0)](_0x4e7c8b,_0x494a97['UNIVER_DOC']);}async['importDOCXToSnapshot'](_0x1b7cd5){const _0x191086=_0x31a93c;return this[_0x191086(0x1c4)](_0x1b7cd5);}async[_0x31a93c(0x1c4)](_0x389bf8){const _0x5b9549=_0x31a93c,_0x14f56f=this[_0x5b9549(0x1e1)]['get'](_0x525325[_0x5b9549(0x1e6)]);if(!_0x14f56f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x14f56f[_0x5b9549(0x1e7)](_0x389bf8);}}_0x42caa7['FUniver'][_0x31a93c(0x1e4)](_0x342365);}));
|