@univerjs-pro/exchange-client 0.8.0-nightly.202506081606 → 0.8.0-nightly.202506091607

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.
Files changed (43) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +2 -2
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +2 -2
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.js +2 -2
  21. package/lib/locale/en-US.js +1 -1
  22. package/lib/locale/fa-IR.js +1 -1
  23. package/lib/locale/fr-FR.js +1 -1
  24. package/lib/locale/ru-RU.js +1 -1
  25. package/lib/locale/vi-VN.js +1 -1
  26. package/lib/locale/zh-CN.js +1 -1
  27. package/lib/locale/zh-TW.js +1 -1
  28. package/lib/types/facade/f-univer.d.ts +13 -4
  29. package/lib/types/index.d.ts +1 -1
  30. package/lib/types/locale/en-US.d.ts +1 -0
  31. package/lib/types/services/exchange.service.d.ts +8 -5
  32. package/lib/types/services/operate.service.d.ts +5 -5
  33. package/lib/types/services/request.service.d.ts +2 -0
  34. package/lib/umd/facade.js +1 -1
  35. package/lib/umd/index.js +2 -2
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/fa-IR.js +1 -1
  38. package/lib/umd/locale/fr-FR.js +1 -1
  39. package/lib/umd/locale/ru-RU.js +1 -1
  40. package/lib/umd/locale/vi-VN.js +1 -1
  41. package/lib/umd/locale/zh-CN.js +1 -1
  42. package/lib/umd/locale/zh-TW.js +1 -1
  43. package/package.json +7 -7
@@ -1 +1 @@
1
- const _0x6b74cd=_0x2a97;(function(_0x5ae8cf,_0x438f13){const _0x30b64e=_0x2a97,_0x2dfab9=_0x5ae8cf();while(!![]){try{const _0x43305e=parseInt(_0x30b64e(0x1a3))/0x1+parseInt(_0x30b64e(0x1b5))/0x2*(-parseInt(_0x30b64e(0x1a9))/0x3)+parseInt(_0x30b64e(0x1a4))/0x4+-parseInt(_0x30b64e(0x1a1))/0x5*(parseInt(_0x30b64e(0x1ab))/0x6)+-parseInt(_0x30b64e(0x1a6))/0x7+parseInt(_0x30b64e(0x1ad))/0x8*(-parseInt(_0x30b64e(0x1a7))/0x9)+parseInt(_0x30b64e(0x1aa))/0xa;if(_0x43305e===_0x438f13)break;else _0x2dfab9['push'](_0x2dfab9['shift']());}catch(_0x104ce8){_0x2dfab9['push'](_0x2dfab9['shift']());}}}(_0x977e,0x872de));const e={'exchange':{'file':'File','upload':_0x6b74cd(0x1ac),'download':_0x6b74cd(0x1a5),'uploading':_0x6b74cd(0x1b4),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x6b74cd(0x1b1),'downloadSuccess':_0x6b74cd(0x1a8),'unknownMistake':_0x6b74cd(0x1af),'networkError':_0x6b74cd(0x1b0),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x6b74cd(0x1a2),'interrupt':_0x6b74cd(0x1b2),'fileTypeError':_0x6b74cd(0x1b3),'wait':'Please\x20wait...','cancel':'Cancel','uploadAgain':_0x6b74cd(0x1ae)}};function _0x977e(){const _0x1f46a0=['Network\x20error','Downloading','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Uploading','1751522GFyXYD','2264165xgNqEP','Internal\x20unknown\x20error','269122mgaKHV','1829860UpHRQE','Save\x20As','4254019aDEfSt','9VsOdvE','Download\x20success','3EFOMjn','31523170vsYkwR','12zSSXPw','Open(File)','7488528CKSttg','Upload\x20again','Unknown\x20mistake'];_0x977e=function(){return _0x1f46a0;};return _0x977e();}function _0x2a97(_0x56f874,_0xebd571){const _0x977ea=_0x977e();return _0x2a97=function(_0x2a9799,_0x5c71a5){_0x2a9799=_0x2a9799-0x1a1;let _0x1db982=_0x977ea[_0x2a9799];return _0x1db982;},_0x2a97(_0x56f874,_0xebd571);}export{e as default};
1
+ const _0x3341cf=_0x1a6c;function _0x1a6c(_0x36f8b4,_0x289f80){const _0x4ac037=_0x4ac0();return _0x1a6c=function(_0x1a6ce2,_0x3cf57e){_0x1a6ce2=_0x1a6ce2-0x18e;let _0x277923=_0x4ac037[_0x1a6ce2];return _0x277923;},_0x1a6c(_0x36f8b4,_0x289f80);}function _0x4ac0(){const _0x1f4d21=['Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','File\x20uploaded\x20successfully','Save\x20As','Uploading','3piZWfN','54HbdWCG','Upload\x20again','4RgOnne','Cancel','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1076516OSTIJU','3766848tnvAhC','Save\x20As\x20WPS','869818fSufen','8071365UGACKh','139240CgeJeG','603mJCZPS','244651aMFzGL','168775nLZBTe','{0}\x20file(s)\x20uploaded\x20successfully','Network\x20error','Data\x20is\x20too\x20large','Internal\x20unknown\x20error','Open(File)','File','Download\x20success'];_0x4ac0=function(){return _0x1f4d21;};return _0x4ac0();}(function(_0x230f89,_0x57170b){const _0x10bd1d=_0x1a6c,_0x4a5cce=_0x230f89();while(!![]){try{const _0x1a89bc=parseInt(_0x10bd1d(0x1a2))/0x1+-parseInt(_0x10bd1d(0x19d))/0x2*(parseInt(_0x10bd1d(0x194))/0x3)+-parseInt(_0x10bd1d(0x197))/0x4*(parseInt(_0x10bd1d(0x19e))/0x5)+-parseInt(_0x10bd1d(0x195))/0x6*(-parseInt(_0x10bd1d(0x19a))/0x7)+parseInt(_0x10bd1d(0x19b))/0x8+parseInt(_0x10bd1d(0x1a0))/0x9*(parseInt(_0x10bd1d(0x19f))/0xa)+parseInt(_0x10bd1d(0x1a1))/0xb;if(_0x1a89bc===_0x57170b)break;else _0x4a5cce['push'](_0x4a5cce['shift']());}catch(_0x2bbbd4){_0x4a5cce['push'](_0x4a5cce['shift']());}}}(_0x4ac0,0xe2f9a));const e={'exchange':{'file':_0x3341cf(0x18e),'upload':_0x3341cf(0x1a7),'download':_0x3341cf(0x192),'downloadWPS':_0x3341cf(0x19c),'uploading':_0x3341cf(0x193),'uploadSuccess':_0x3341cf(0x191),'uploadSuccessTip':_0x3341cf(0x1a3),'downloading':'Downloading','downloadSuccess':_0x3341cf(0x18f),'unknownMistake':'Unknown\x20mistake','networkError':_0x3341cf(0x1a4),'tooLarge':_0x3341cf(0x1a5),'internalError':_0x3341cf(0x1a6),'interrupt':_0x3341cf(0x199),'fileTypeError':_0x3341cf(0x190),'wait':'Please\x20wait...','cancel':_0x3341cf(0x198),'uploadAgain':_0x3341cf(0x196)}};export{e as default};
@@ -1 +1 @@
1
- const _0x4158c0=_0x176d;function _0x578d(){const _0x5d39d7=['989211zIgxhG','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','3093260LzZzyz','فایل','ذخیره\x20به\x20عنوان','263285SOBRWu','2382975gbqOKH','4370216GagpcA','9283HtalNR','2949226vFPTZV','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','لغو','80xhzrEQ','552KVRxlC','18FFwEyB','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20ناشناخته','در\x20حال\x20دانلود','لطفا\x20صبر\x20کنید...','داده\x20خیلی\x20بزرگ\x20است','4AzNRzK','18gTgkjX','بازکردن(فایل)','دانلود\x20موفقیت\x20آمیز','در\x20حال\x20بارگذاری'];_0x578d=function(){return _0x5d39d7;};return _0x578d();}function _0x176d(_0x492092,_0x529a4a){const _0x578deb=_0x578d();return _0x176d=function(_0x176dde,_0x4b4a5b){_0x176dde=_0x176dde-0x11f;let _0xd5039d=_0x578deb[_0x176dde];return _0xd5039d;},_0x176d(_0x492092,_0x529a4a);}(function(_0x59a225,_0x1fe013){const _0x265c76=_0x176d,_0x1212c4=_0x59a225();while(!![]){try{const _0x1e2736=parseInt(_0x265c76(0x124))/0x1*(-parseInt(_0x265c76(0x128))/0x2)+parseInt(_0x265c76(0x135))/0x3*(-parseInt(_0x265c76(0x130))/0x4)+parseInt(_0x265c76(0x122))/0x5+-parseInt(_0x265c76(0x12a))/0x6*(-parseInt(_0x265c76(0x125))/0x7)+parseInt(_0x265c76(0x123))/0x8*(parseInt(_0x265c76(0x131))/0x9)+-parseInt(_0x265c76(0x137))/0xa+parseInt(_0x265c76(0x121))/0xb*(-parseInt(_0x265c76(0x129))/0xc);if(_0x1e2736===_0x1fe013)break;else _0x1212c4['push'](_0x1212c4['shift']());}catch(_0x6284f9){_0x1212c4['push'](_0x1212c4['shift']());}}}(_0x578d,0xb032e));const o={'exchange':{'file':_0x4158c0(0x11f),'upload':_0x4158c0(0x132),'download':_0x4158c0(0x120),'uploading':_0x4158c0(0x134),'uploadSuccess':_0x4158c0(0x136),'uploadSuccessTip':_0x4158c0(0x12b),'downloading':_0x4158c0(0x12d),'downloadSuccess':_0x4158c0(0x133),'unknownMistake':_0x4158c0(0x12c),'networkError':'خطای\x20شبکه','tooLarge':_0x4158c0(0x12f),'internalError':'خطای\x20داخلی\x20ناشناخته','interrupt':_0x4158c0(0x126),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','wait':_0x4158c0(0x12e),'cancel':_0x4158c0(0x127),'uploadAgain':'بارگذاری\x20مجدد'}};export{o as default};
1
+ const _0x1b015f=_0xba83;(function(_0x3fbea1,_0x4a63ab){const _0x2a6d82=_0xba83,_0x1b5c69=_0x3fbea1();while(!![]){try{const _0x30d237=parseInt(_0x2a6d82(0x140))/0x1+parseInt(_0x2a6d82(0x133))/0x2+parseInt(_0x2a6d82(0x135))/0x3*(-parseInt(_0x2a6d82(0x137))/0x4)+-parseInt(_0x2a6d82(0x13a))/0x5+parseInt(_0x2a6d82(0x138))/0x6*(parseInt(_0x2a6d82(0x130))/0x7)+-parseInt(_0x2a6d82(0x131))/0x8+-parseInt(_0x2a6d82(0x13f))/0x9;if(_0x30d237===_0x4a63ab)break;else _0x1b5c69['push'](_0x1b5c69['shift']());}catch(_0x2187fb){_0x1b5c69['push'](_0x1b5c69['shift']());}}}(_0x559c,0x3250d));function _0x559c(){const _0x8e1576=['ذخیره\x20به\x20عنوان','644502uPxhuL','بارگذاری\x20مجدد','6KivPAu','در\x20حال\x20بارگذاری','38852tyDuxi','1554726UlXJna','فایل','6210PaoHAZ','خطای\x20ناشناخته','لغو','خطای\x20داخلی\x20ناشناخته','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','3364740dQuudH','378612BtUSPx','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','لطفا\x20صبر\x20کنید...','خطای\x20شبکه','بازکردن(فایل)','7XAasaX','2874904pUMWbs'];_0x559c=function(){return _0x8e1576;};return _0x559c();}function _0xba83(_0x5e3e7f,_0x433e95){const _0x559cb6=_0x559c();return _0xba83=function(_0xba83a6,_0x28e563){_0xba83a6=_0xba83a6-0x12e;let _0x57b2f1=_0x559cb6[_0xba83a6];return _0x57b2f1;},_0xba83(_0x5e3e7f,_0x433e95);}const o={'exchange':{'file':_0x1b015f(0x139),'upload':_0x1b015f(0x12f),'download':_0x1b015f(0x132),'downloadWPS':'ذخیره\x20به\x20عنوان\x20WPS','uploading':_0x1b015f(0x136),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':'در\x20حال\x20دانلود','downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x1b015f(0x13b),'networkError':_0x1b015f(0x12e),'tooLarge':_0x1b015f(0x142),'internalError':_0x1b015f(0x13d),'interrupt':_0x1b015f(0x141),'fileTypeError':_0x1b015f(0x13e),'wait':_0x1b015f(0x143),'cancel':_0x1b015f(0x13c),'uploadAgain':_0x1b015f(0x134)}};export{o as default};
@@ -1 +1 @@
1
- const _0x1e857f=_0x910c;(function(_0x4aa7f6,_0x543373){const _0x382b4d=_0x910c,_0x5741c6=_0x4aa7f6();while(!![]){try{const _0x36479b=-parseInt(_0x382b4d(0x168))/0x1+-parseInt(_0x382b4d(0x15f))/0x2*(-parseInt(_0x382b4d(0x16e))/0x3)+parseInt(_0x382b4d(0x171))/0x4+parseInt(_0x382b4d(0x169))/0x5*(parseInt(_0x382b4d(0x16b))/0x6)+-parseInt(_0x382b4d(0x164))/0x7+parseInt(_0x382b4d(0x176))/0x8*(-parseInt(_0x382b4d(0x173))/0x9)+parseInt(_0x382b4d(0x170))/0xa;if(_0x36479b===_0x543373)break;else _0x5741c6['push'](_0x5741c6['shift']());}catch(_0xdeb01f){_0x5741c6['push'](_0x5741c6['shift']());}}}(_0x4f74,0x8bd64));const e={'exchange':{'file':_0x1e857f(0x161),'upload':_0x1e857f(0x172),'download':_0x1e857f(0x16c),'uploading':_0x1e857f(0x16d),'uploadSuccess':'Fichier\x20téléchargé\x20avec\x20succès','uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x1e857f(0x160),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x1e857f(0x162),'networkError':_0x1e857f(0x16f),'tooLarge':_0x1e857f(0x165),'internalError':_0x1e857f(0x167),'interrupt':_0x1e857f(0x174),'fileTypeError':_0x1e857f(0x175),'wait':_0x1e857f(0x16a),'cancel':_0x1e857f(0x166),'uploadAgain':_0x1e857f(0x163)}};function _0x910c(_0x5f524c,_0x3ac7ab){const _0x4f74c9=_0x4f74();return _0x910c=function(_0x910c2e,_0x3de892){_0x910c2e=_0x910c2e-0x15f;let _0xa157e0=_0x4f74c9[_0x910c2e];return _0xa157e0;},_0x910c(_0x5f524c,_0x3ac7ab);}export{e as default};function _0x4f74(){const _0x49161f=['42972RyghZH','Enregistrer\x20sous','Téléchargement\x20en\x20cours','225HVhJwD','Erreur\x20réseau','879900dtKMzH','3431644bfYQEI','Ouvrir\x20(Fichier)','9GAbbhF','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','4637176JMWbtK','15286XmnwMw','Téléchargement','Fichier','Erreur\x20inconnue','Télécharger\x20à\x20nouveau','2581285QBERvx','Les\x20données\x20sont\x20trop\x20volumineuses','Annuler','Erreur\x20interne\x20inconnue','420510pjViIP','295goDzbv','Veuillez\x20patienter...'];_0x4f74=function(){return _0x49161f;};return _0x4f74();}
1
+ const _0x1e3af0=_0x3ff2;function _0x1d0e(){const _0x3af4fb=['8OkcyPc','Téléchargement\x20en\x20cours','Erreur\x20interne\x20inconnue','Erreur\x20réseau','8auIvSK','Enregistrer\x20sous','6721WrTPeL','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Veuillez\x20patienter...','42060rgzqzg','Annuler','212127meJmvd','Enregistrer\x20sous\x20WPS','Fichier','1414269EhMFLM','5208520UGZXlR','Téléchargement','32995Wiearf','852xSFdLf','50MHDJoC','3189504BHIMWE','Télécharger\x20à\x20nouveau','2312513JEoogM','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Ouvrir\x20(Fichier)','Fichier\x20téléchargé\x20avec\x20succès'];_0x1d0e=function(){return _0x3af4fb;};return _0x1d0e();}(function(_0x4db165,_0x334a60){const _0x143c83=_0x3ff2,_0x535d09=_0x4db165();while(!![]){try{const _0x3175ca=-parseInt(_0x143c83(0x1b4))/0x1*(-parseInt(_0x143c83(0x1ad))/0x2)+parseInt(_0x143c83(0x1a3))/0x3+-parseInt(_0x143c83(0x19e))/0x4+-parseInt(_0x143c83(0x1a0))/0x5*(parseInt(_0x143c83(0x1a1))/0x6)+parseInt(_0x143c83(0x1a5))/0x7*(-parseInt(_0x143c83(0x1a9))/0x8)+-parseInt(_0x143c83(0x19d))/0x9*(parseInt(_0x143c83(0x1a2))/0xa)+parseInt(_0x143c83(0x1af))/0xb*(parseInt(_0x143c83(0x1b2))/0xc);if(_0x3175ca===_0x334a60)break;else _0x535d09['push'](_0x535d09['shift']());}catch(_0x352700){_0x535d09['push'](_0x535d09['shift']());}}}(_0x1d0e,0xaa67b));const e={'exchange':{'file':_0x1e3af0(0x19c),'upload':_0x1e3af0(0x1a7),'download':_0x1e3af0(0x1ae),'downloadWPS':_0x1e3af0(0x19b),'uploading':_0x1e3af0(0x1aa),'uploadSuccess':_0x1e3af0(0x1a8),'uploadSuccessTip':_0x1e3af0(0x1b0),'downloading':_0x1e3af0(0x19f),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':'Erreur\x20inconnue','networkError':_0x1e3af0(0x1ac),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x1e3af0(0x1ab),'interrupt':_0x1e3af0(0x1a6),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x1e3af0(0x1b1),'cancel':_0x1e3af0(0x1b3),'uploadAgain':_0x1e3af0(0x1a4)}};function _0x3ff2(_0x5e124c,_0x462efe){const _0x1d0ecc=_0x1d0e();return _0x3ff2=function(_0x3ff2cb,_0x2ed715){_0x3ff2cb=_0x3ff2cb-0x19b;let _0x257f93=_0x1d0ecc[_0x3ff2cb];return _0x257f93;},_0x3ff2(_0x5e124c,_0x462efe);}export{e as default};
@@ -1 +1 @@
1
- const _0x352225=_0x3b85;function _0x3ece(){const _0x3c020a=['Загрузить\x20снова','10pzfDgm','5189732faXXAe','Открыть(Файл)','Сохранить\x20как','1103UBOWoM','Загрузка','379743MGsDhN','7163634gcVUAT','32460032ISXAhs','Неизвестная\x20ошибка','104yMdnEH','82dsWGoa','1696431Ykdbpb','Скачивание','Данные\x20слишком\x20большие','Внутренняя\x20неизвестная\x20ошибка','5gjtHrV','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание\x20успешно','Файл\x20успешно\x20загружен','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','373293xflxQB','Сетевая\x20ошибка','Файл'];_0x3ece=function(){return _0x3c020a;};return _0x3ece();}(function(_0x12b6dc,_0x4e4fc4){const _0x5a51fb=_0x3b85,_0x44dd90=_0x12b6dc();while(!![]){try{const _0x1673fe=parseInt(_0x5a51fb(0x1b0))/0x1*(-parseInt(_0x5a51fb(0x1b7))/0x2)+parseInt(_0x5a51fb(0x1b8))/0x3+parseInt(_0x5a51fb(0x1ad))/0x4+parseInt(_0x5a51fb(0x1a3))/0x5*(parseInt(_0x5a51fb(0x1b3))/0x6)+parseInt(_0x5a51fb(0x1b2))/0x7+parseInt(_0x5a51fb(0x1b6))/0x8*(parseInt(_0x5a51fb(0x1a8))/0x9)+parseInt(_0x5a51fb(0x1ac))/0xa*(-parseInt(_0x5a51fb(0x1b4))/0xb);if(_0x1673fe===_0x4e4fc4)break;else _0x44dd90['push'](_0x44dd90['shift']());}catch(_0x2d55c6){_0x44dd90['push'](_0x44dd90['shift']());}}}(_0x3ece,0x9fb54));function _0x3b85(_0x1893e2,_0x3a16fb){const _0x3ece2c=_0x3ece();return _0x3b85=function(_0x3b8549,_0x34d631){_0x3b8549=_0x3b8549-0x1a1;let _0x3c4c20=_0x3ece2c[_0x3b8549];return _0x3c4c20;},_0x3b85(_0x1893e2,_0x3a16fb);}const o={'exchange':{'file':_0x352225(0x1aa),'upload':_0x352225(0x1ae),'download':_0x352225(0x1af),'uploading':_0x352225(0x1b1),'uploadSuccess':_0x352225(0x1a6),'uploadSuccessTip':_0x352225(0x1a4),'downloading':_0x352225(0x1b9),'downloadSuccess':_0x352225(0x1a5),'unknownMistake':_0x352225(0x1b5),'networkError':_0x352225(0x1a9),'tooLarge':_0x352225(0x1a1),'internalError':_0x352225(0x1a2),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x352225(0x1a7),'wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':_0x352225(0x1ab)}};export{o as default};
1
+ function _0x5ca5(){const _0xf3f3bd=['Пожалуйста,\x20подождите...','8cvLjgn','1241800drQUXX','Загрузить\x20снова','Загрузка','190996iFUsxA','Файл','7tiecLu','286SapZbp','Отмена','54dqywPU','Сетевая\x20ошибка','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Сохранить\x20как\x20WPS','15VAwvxt','58722OWtMda','100658jFrOWQ','Внутренняя\x20неизвестная\x20ошибка','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Данные\x20слишком\x20большие','120970mchQbe','15828psoFVu','584615amvNgd','Скачивание\x20успешно','Открыть(Файл)'];_0x5ca5=function(){return _0xf3f3bd;};return _0x5ca5();}const _0x3855e2=_0x240d;(function(_0x22387e,_0x20a8b5){const _0x466cb9=_0x240d,_0x1b8b30=_0x22387e();while(!![]){try{const _0x483508=parseInt(_0x466cb9(0x189))/0x1+parseInt(_0x466cb9(0x17b))/0x2*(-parseInt(_0x466cb9(0x179))/0x3)+parseInt(_0x466cb9(0x185))/0x4*(parseInt(_0x466cb9(0x181))/0x5)+parseInt(_0x466cb9(0x17a))/0x6+-parseInt(_0x466cb9(0x18b))/0x7*(parseInt(_0x466cb9(0x186))/0x8)+parseInt(_0x466cb9(0x174))/0x9*(parseInt(_0x466cb9(0x17f))/0xa)+parseInt(_0x466cb9(0x18c))/0xb*(parseInt(_0x466cb9(0x180))/0xc);if(_0x483508===_0x20a8b5)break;else _0x1b8b30['push'](_0x1b8b30['shift']());}catch(_0x45bafd){_0x1b8b30['push'](_0x1b8b30['shift']());}}}(_0x5ca5,0x20deb));function _0x240d(_0x218e56,_0x5265f1){const _0x5ca579=_0x5ca5();return _0x240d=function(_0x240da4,_0x39234a){_0x240da4=_0x240da4-0x174;let _0x119e43=_0x5ca579[_0x240da4];return _0x119e43;},_0x240d(_0x218e56,_0x5265f1);}const o={'exchange':{'file':_0x3855e2(0x18a),'upload':_0x3855e2(0x183),'download':'Сохранить\x20как','downloadWPS':_0x3855e2(0x178),'uploading':_0x3855e2(0x188),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x3855e2(0x177),'downloading':'Скачивание','downloadSuccess':_0x3855e2(0x182),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x3855e2(0x175),'tooLarge':_0x3855e2(0x17e),'internalError':_0x3855e2(0x17c),'interrupt':_0x3855e2(0x17d),'fileTypeError':_0x3855e2(0x176),'wait':_0x3855e2(0x184),'cancel':_0x3855e2(0x18d),'uploadAgain':_0x3855e2(0x187)}};export{o as default};
@@ -1 +1 @@
1
- const _0x296a19=_0xe364;(function(_0x416b06,_0x5af936){const _0x218b0f=_0xe364,_0x352106=_0x416b06();while(!![]){try{const _0x541ad7=-parseInt(_0x218b0f(0x12d))/0x1+-parseInt(_0x218b0f(0x11a))/0x2+-parseInt(_0x218b0f(0x12a))/0x3+parseInt(_0x218b0f(0x122))/0x4+-parseInt(_0x218b0f(0x11b))/0x5+parseInt(_0x218b0f(0x119))/0x6+parseInt(_0x218b0f(0x123))/0x7;if(_0x541ad7===_0x5af936)break;else _0x352106['push'](_0x352106['shift']());}catch(_0x403811){_0x352106['push'](_0x352106['shift']());}}}(_0x47e3,0x4fa69));function _0x47e3(){const _0x45891c=['Tải\x20lên\x20lại','Lỗi\x20mạng','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','911000Prjopy','11818912tkoklQ','Đang\x20tải\x20xuống','Lỗi\x20không\x20xác\x20định','Lưu\x20dưới\x20dạng','Tải\x20xuống\x20thành\x20công','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','1897053IIhedk','Vui\x20lòng\x20đợi...','Hủy\x20bỏ','183265zLVSWa','Mở\x20(Tệp)','Luồng\x20dữ\x20liệu\x20quá\x20lớn','2819226FnEFYY','1212490kYJKgU','3189635DoVtCI','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Đang\x20tải\x20lên','Tệp'];_0x47e3=function(){return _0x45891c;};return _0x47e3();}const n={'exchange':{'file':_0x296a19(0x11e),'upload':_0x296a19(0x12e),'download':_0x296a19(0x126),'uploading':_0x296a19(0x11d),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x296a19(0x129),'downloading':_0x296a19(0x124),'downloadSuccess':_0x296a19(0x127),'unknownMistake':_0x296a19(0x125),'networkError':_0x296a19(0x120),'tooLarge':_0x296a19(0x118),'internalError':_0x296a19(0x128),'interrupt':_0x296a19(0x11c),'fileTypeError':_0x296a19(0x121),'wait':_0x296a19(0x12b),'cancel':_0x296a19(0x12c),'uploadAgain':_0x296a19(0x11f)}};function _0xe364(_0x4f366a,_0x53e9d2){const _0x47e319=_0x47e3();return _0xe364=function(_0xe364ca,_0x155744){_0xe364ca=_0xe364ca-0x118;let _0x1eca31=_0x47e319[_0xe364ca];return _0x1eca31;},_0xe364(_0x4f366a,_0x53e9d2);}export{n as default};
1
+ const _0x154a35=_0x24f0;function _0x23a6(){const _0x428745=['Lỗi\x20mạng','Tải\x20xuống\x20thành\x20công','Lưu\x20dưới\x20dạng\x20WPS','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','600306SBJmay','1092970ooPKHN','Vui\x20lòng\x20đợi...','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20không\x20xác\x20định','Hủy\x20bỏ','15zvZfgP','12QFFHln','3138633OgKuKj','Tệp','Mở\x20(Tệp)','249404lbToNB','253832PyZqxZ','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','9PAROIq','1778256vgGwVf','22OxWSmL','Luồng\x20dữ\x20liệu\x20quá\x20lớn','98548kvOLHV'];_0x23a6=function(){return _0x428745;};return _0x23a6();}function _0x24f0(_0x1ca3b7,_0x59c77b){const _0x23a617=_0x23a6();return _0x24f0=function(_0x24f06f,_0x197e6f){_0x24f06f=_0x24f06f-0x1a9;let _0x2014e9=_0x23a617[_0x24f06f];return _0x2014e9;},_0x24f0(_0x1ca3b7,_0x59c77b);}(function(_0x245122,_0x789408){const _0x576ee0=_0x24f0,_0xa4f307=_0x245122();while(!![]){try{const _0x423b59=-parseInt(_0x576ee0(0x1b5))/0x1+-parseInt(_0x576ee0(0x1ae))/0x2*(parseInt(_0x576ee0(0x1b1))/0x3)+parseInt(_0x576ee0(0x1af))/0x4*(parseInt(_0x576ee0(0x1a9))/0x5)+parseInt(_0x576ee0(0x1aa))/0x6*(parseInt(_0x576ee0(0x1bb))/0x7)+parseInt(_0x576ee0(0x1b2))/0x8+parseInt(_0x576ee0(0x1ab))/0x9+-parseInt(_0x576ee0(0x1bc))/0xa*(parseInt(_0x576ee0(0x1b3))/0xb);if(_0x423b59===_0x789408)break;else _0xa4f307['push'](_0xa4f307['shift']());}catch(_0x2a157f){_0xa4f307['push'](_0xa4f307['shift']());}}}(_0x23a6,0x3affd));const n={'exchange':{'file':_0x154a35(0x1ac),'upload':_0x154a35(0x1ad),'download':'Lưu\x20dưới\x20dạng','downloadWPS':_0x154a35(0x1b8),'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x154a35(0x1be),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x154a35(0x1b7),'unknownMistake':_0x154a35(0x1bf),'networkError':_0x154a35(0x1b6),'tooLarge':_0x154a35(0x1b4),'internalError':_0x154a35(0x1b9),'interrupt':_0x154a35(0x1b0),'fileTypeError':_0x154a35(0x1ba),'wait':_0x154a35(0x1bd),'cancel':_0x154a35(0x1c0),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
@@ -1 +1 @@
1
- function _0x4313(){const _0x14afae=['1254544hiRaSp','155915TmlhFm','下载中','4611145LRZrTb','174OArymw','9ndsivo','下载成功','504070PhbSHs','内部未知错误','打开(文件)','网络异常','1546214htFlle','文件上传成功','未知错误','所选文件\x20[{0}]\x20不支持上传','数据流过大','{0}个文件上传成功','2047893SEinQP','再次上传','9399752pilwDL'];_0x4313=function(){return _0x14afae;};return _0x4313();}function _0x1da1(_0xe44d8e,_0x3b1609){const _0x4313b1=_0x4313();return _0x1da1=function(_0x1da179,_0xaed67c){_0x1da179=_0x1da179-0xbe;let _0x4e63f0=_0x4313b1[_0x1da179];return _0x4e63f0;},_0x1da1(_0xe44d8e,_0x3b1609);}const _0x250cd0=_0x1da1;(function(_0x51779c,_0x40c91a){const _0x28b631=_0x1da1,_0x10bdbc=_0x51779c();while(!![]){try{const _0x1c24b9=parseInt(_0x28b631(0xc6))/0x1+-parseInt(_0x28b631(0xca))/0x2+parseInt(_0x28b631(0xd0))/0x3+-parseInt(_0x28b631(0xbf))/0x4+-parseInt(_0x28b631(0xc0))/0x5*(-parseInt(_0x28b631(0xc3))/0x6)+parseInt(_0x28b631(0xc2))/0x7+parseInt(_0x28b631(0xbe))/0x8*(-parseInt(_0x28b631(0xc4))/0x9);if(_0x1c24b9===_0x40c91a)break;else _0x10bdbc['push'](_0x10bdbc['shift']());}catch(_0x1ea88e){_0x10bdbc['push'](_0x10bdbc['shift']());}}}(_0x4313,0x7725f));const o={'exchange':{'file':'文件','upload':_0x250cd0(0xc8),'download':'另存为','uploading':'上传中','uploadSuccess':_0x250cd0(0xcb),'uploadSuccessTip':_0x250cd0(0xcf),'downloading':_0x250cd0(0xc1),'downloadSuccess':_0x250cd0(0xc5),'unknownMistake':_0x250cd0(0xcc),'networkError':_0x250cd0(0xc9),'tooLarge':_0x250cd0(0xce),'internalError':_0x250cd0(0xc7),'interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x250cd0(0xcd),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x250cd0(0xd1)}};export{o as default};
1
+ const _0x7c48c8=_0x4674;(function(_0x2a5a5e,_0x1837ca){const _0x288e00=_0x4674,_0x4aa0c7=_0x2a5a5e();while(!![]){try{const _0x4e0037=-parseInt(_0x288e00(0x18b))/0x1*(-parseInt(_0x288e00(0x193))/0x2)+parseInt(_0x288e00(0x18d))/0x3+parseInt(_0x288e00(0x192))/0x4+-parseInt(_0x288e00(0x188))/0x5*(parseInt(_0x288e00(0x189))/0x6)+parseInt(_0x288e00(0x183))/0x7+-parseInt(_0x288e00(0x18c))/0x8+-parseInt(_0x288e00(0x180))/0x9*(-parseInt(_0x288e00(0x18e))/0xa);if(_0x4e0037===_0x1837ca)break;else _0x4aa0c7['push'](_0x4aa0c7['shift']());}catch(_0x360f47){_0x4aa0c7['push'](_0x4aa0c7['shift']());}}}(_0xaeb7,0x3d257));function _0x4674(_0x546bc3,_0x27b9ec){const _0xaeb7be=_0xaeb7();return _0x4674=function(_0x4674f9,_0x4b087e){_0x4674f9=_0x4674f9-0x17e;let _0x1f2a9f=_0xaeb7be[_0x4674f9];return _0x1f2a9f;},_0x4674(_0x546bc3,_0x27b9ec);}function _0xaeb7(){const _0x26a673=['21807UMbRLD','所选文件\x20[{0}]\x20不支持上传','{0}个文件上传成功','289303vbGxhF','文件上传成功','再次上传','下载成功','网络异常','565885GRlcIM','24hgqKdc','下载中','13603DyxkrG','48096iHVhor','117453lxDkUz','150rAcwvg','另存为','网络连接中断,文件上传失败','内部未知错误','1607632UMEjrw','28YfGLlH','请稍等...','另存为\x20WPS','打开(文件)','数据流过大'];_0xaeb7=function(){return _0x26a673;};return _0xaeb7();}const o={'exchange':{'file':'文件','upload':_0x7c48c8(0x17e),'download':_0x7c48c8(0x18f),'downloadWPS':_0x7c48c8(0x195),'uploading':'上传中','uploadSuccess':_0x7c48c8(0x184),'uploadSuccessTip':_0x7c48c8(0x182),'downloading':_0x7c48c8(0x18a),'downloadSuccess':_0x7c48c8(0x186),'unknownMistake':'未知错误','networkError':_0x7c48c8(0x187),'tooLarge':_0x7c48c8(0x17f),'internalError':_0x7c48c8(0x191),'interrupt':_0x7c48c8(0x190),'fileTypeError':_0x7c48c8(0x181),'wait':_0x7c48c8(0x194),'cancel':'取消','uploadAgain':_0x7c48c8(0x185)}};export{o as default};
@@ -1 +1 @@
1
- const _0x2c4416=_0x5b92;(function(_0x210937,_0x13be57){const _0x5f0ff1=_0x5b92,_0x451fa4=_0x210937();while(!![]){try{const _0x45a34a=parseInt(_0x5f0ff1(0xf2))/0x1+parseInt(_0x5f0ff1(0xf8))/0x2+-parseInt(_0x5f0ff1(0xf5))/0x3+parseInt(_0x5f0ff1(0xfd))/0x4*(-parseInt(_0x5f0ff1(0x100))/0x5)+-parseInt(_0x5f0ff1(0xf0))/0x6+-parseInt(_0x5f0ff1(0xfa))/0x7*(parseInt(_0x5f0ff1(0xf9))/0x8)+-parseInt(_0x5f0ff1(0xf3))/0x9*(-parseInt(_0x5f0ff1(0xff))/0xa);if(_0x45a34a===_0x13be57)break;else _0x451fa4['push'](_0x451fa4['shift']());}catch(_0x10ccb3){_0x451fa4['push'](_0x451fa4['shift']());}}}(_0x3562,0x6f9db));function _0x3562(){const _0x525dd6=['未知錯誤','另存為','837490VivHhC','2626184KkhdfL','7dwEbxl','所選檔案\x20[{0}]\x20不支援上傳','下載成功','18808yyAJAq','下載中','8835500BinmKf','200NpCCoF','2971242KxiLGy','開啟(檔案)','603109rMwojf','9oIOLmC','檔案上傳成功','1309995rtDxBX'];_0x3562=function(){return _0x525dd6;};return _0x3562();}const o={'exchange':{'file':'檔案','upload':_0x2c4416(0xf1),'download':_0x2c4416(0xf7),'uploading':'上傳中','uploadSuccess':_0x2c4416(0xf4),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x2c4416(0xfe),'downloadSuccess':_0x2c4416(0xfc),'unknownMistake':_0x2c4416(0xf6),'networkError':'網路異常','tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0x2c4416(0xfb),'wait':'請稍等...','cancel':'取消','uploadAgain':'再次上傳'}};function _0x5b92(_0x44d54e,_0x3781da){const _0x35620e=_0x3562();return _0x5b92=function(_0x5b92e8,_0x120421){_0x5b92e8=_0x5b92e8-0xf0;let _0x27148b=_0x35620e[_0x5b92e8];return _0x27148b;},_0x5b92(_0x44d54e,_0x3781da);}export{o as default};
1
+ function _0x1eee(_0x4d0fa1,_0xd4a2b8){const _0x26d42f=_0x26d4();return _0x1eee=function(_0x1eee5e,_0x40a44b){_0x1eee5e=_0x1eee5e-0x135;let _0x202462=_0x26d42f[_0x1eee5e];return _0x202462;},_0x1eee(_0x4d0fa1,_0xd4a2b8);}function _0x26d4(){const _0x3dc721=['網路異常','內部未知錯誤','未知錯誤','15dWFluq','9HWjPVr','102232wMLJUa','2OemRtX','上傳中','另存為\x20WPS','203HsxUSB','開啟(檔案)','檔案上傳成功','資料流過大','132200YMQlGk','1229190zQNJyv','1257309MHlBIG','21612zfFkEg','下載中','下載成功','請稍等...','1481598mAAMZw','另存為','333058wirKnz','再次上傳','1397qaIYJq'];_0x26d4=function(){return _0x3dc721;};return _0x26d4();}const _0x17f2ba=_0x1eee;(function(_0x1ea58f,_0x17bddb){const _0x2f87c3=_0x1eee,_0x1e732e=_0x1ea58f();while(!![]){try{const _0x2d5c06=-parseInt(_0x2f87c3(0x141))/0x1*(parseInt(_0x2f87c3(0x138))/0x2)+parseInt(_0x2f87c3(0x14a))/0x3+-parseInt(_0x2f87c3(0x140))/0x4*(-parseInt(_0x2f87c3(0x13e))/0x5)+-parseInt(_0x2f87c3(0x136))/0x6+parseInt(_0x2f87c3(0x144))/0x7*(parseInt(_0x2f87c3(0x148))/0x8)+-parseInt(_0x2f87c3(0x13f))/0x9*(-parseInt(_0x2f87c3(0x149))/0xa)+-parseInt(_0x2f87c3(0x13a))/0xb*(parseInt(_0x2f87c3(0x14b))/0xc);if(_0x2d5c06===_0x17bddb)break;else _0x1e732e['push'](_0x1e732e['shift']());}catch(_0x4d04f7){_0x1e732e['push'](_0x1e732e['shift']());}}}(_0x26d4,0x469b3));const o={'exchange':{'file':'檔案','upload':_0x17f2ba(0x145),'download':_0x17f2ba(0x137),'downloadWPS':_0x17f2ba(0x143),'uploading':_0x17f2ba(0x142),'uploadSuccess':_0x17f2ba(0x146),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x17f2ba(0x14c),'downloadSuccess':_0x17f2ba(0x14d),'unknownMistake':_0x17f2ba(0x13d),'networkError':_0x17f2ba(0x13b),'tooLarge':_0x17f2ba(0x147),'internalError':_0x17f2ba(0x13c),'interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x17f2ba(0x135),'cancel':'取消','uploadAgain':_0x17f2ba(0x139)}};export{o as default};
@@ -1,3 +1,4 @@
1
+ import { IExchangeExportOptions } from '@univerjs-pro/exchange-client';
1
2
  import { IDocumentData, IWorkbookData } from '@univerjs/core';
2
3
  import { FUniver } from '@univerjs/core/facade';
3
4
  /**
@@ -73,6 +74,7 @@ export interface IFUniverExchangeClientMixin {
73
74
  /**
74
75
  * Export XLSX file by unit id
75
76
  * @param {string} unitId Unit id
77
+ * @param {IExchangeExportOptions} [options] Export options
76
78
  * @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
77
79
  *
78
80
  * @example
@@ -82,12 +84,14 @@ export interface IFUniverExchangeClientMixin {
82
84
  * const fWorkbook = univerAPI.getActiveWorkbook();
83
85
  * const unitId = fWorkbook.getId();
84
86
  * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
87
+ * // or with server-side calculation enabled
88
+ * // const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, { enableServerCalculation: true });
85
89
  *
86
90
  * // Download the file
87
91
  * downloadFile(file, 'univer', 'xlsx');
88
92
  * ```
89
93
  */
90
- exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
94
+ exportXLSXByUnitIdAsync(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
91
95
  /**
92
96
  * Export XLSX file by workbook data
93
97
  *
@@ -99,6 +103,7 @@ export interface IFUniverExchangeClientMixin {
99
103
  /**
100
104
  * Export XLSX file by workbook data
101
105
  * @param {IWorkbookData} snapshot Workbook data
106
+ * @param {IExchangeExportOptions} [options] Export options
102
107
  * @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
103
108
  *
104
109
  * @example
@@ -108,12 +113,14 @@ export interface IFUniverExchangeClientMixin {
108
113
  * const fWorkbook = univerAPI.getActiveWorkbook();
109
114
  * const snapshot = fWorkbook.save();
110
115
  * const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
116
+ * // or with server-side calculation enabled
117
+ * // const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });
111
118
  *
112
119
  * // Download the file
113
120
  * downloadFile(file, 'univer', 'xlsx');
114
121
  * ```
115
122
  */
116
- exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
123
+ exportXLSXBySnapshotAsync(snapshot: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
117
124
  /**
118
125
  * Import DOCX file to unit id
119
126
  *
@@ -223,8 +230,9 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
223
230
  /**
224
231
  * Export XLSX file by unit id
225
232
  * @param unitId
233
+ * @param options
226
234
  */
227
- exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
235
+ exportXLSXByUnitIdAsync(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
228
236
  /**
229
237
  * Export XLSX file by workbook data
230
238
  * @param snapshot
@@ -233,8 +241,9 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
233
241
  /**
234
242
  * Export XLSX file by workbook data
235
243
  * @param snapshot
244
+ * @param options
236
245
  */
237
- exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
246
+ exportXLSXBySnapshotAsync(snapshot: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
238
247
  /**
239
248
  * Import DOCX file to unit id
240
249
  * @param file File path or file object
@@ -1,6 +1,6 @@
1
1
  import './global.css';
2
2
  export { UniverExchangeClientPlugin } from './plugin';
3
- export { ExchangeService, IExchangeService } from './services/exchange.service';
3
+ export { ExchangeService, type IExchangeExportOptions, IExchangeService } from './services/exchange.service';
4
4
  export { ExchangeOperateService, IExchangeOperateService } from './services/operate.service';
5
5
  export { IRequestService, RequestService } from './services/request.service';
6
6
  /** @deprecated Will be removed in the 0.2.19 release */
@@ -3,6 +3,7 @@ declare const locale: {
3
3
  file: string;
4
4
  upload: string;
5
5
  download: string;
6
+ downloadWPS: string;
6
7
  uploading: string;
7
8
  uploadSuccess: string;
8
9
  uploadSuccessTip: string;
@@ -15,6 +15,9 @@ export interface IRequestState {
15
15
  error: IError | undefined;
16
16
  state: RequestState;
17
17
  }
18
+ export interface IExchangeExportOptions {
19
+ enableServerCalculation?: boolean;
20
+ }
18
21
  export interface IExchangeService {
19
22
  requestState$: Observable<IRequestState>;
20
23
  /**
@@ -26,13 +29,13 @@ export interface IExchangeService {
26
29
  * Export XLSX file by unit id
27
30
  * @param unitId
28
31
  */
29
- exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
32
+ exportXLSXByUnitId(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
30
33
  /**
31
34
  * Export XLSX file by workbook data
32
- * @param data
35
+ * @param snapshot
33
36
  * @returns
34
37
  */
35
- exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
38
+ exportXLSXBySnapshot(snapshot: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
36
39
  /**
37
40
  * Import DOCX file to document data
38
41
  * @param file
@@ -68,8 +71,8 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
68
71
  exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
69
72
  exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
70
73
  importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
71
- exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
72
- exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
74
+ exportXLSXByUnitId(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
75
+ exportXLSXBySnapshot(data: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
73
76
  importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
74
77
  private _importToSnapshot;
75
78
  /**
@@ -1,6 +1,6 @@
1
1
  import { IDisposable, Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
- import { ExchangeService } from './exchange.service';
3
+ import { ExchangeService, IExchangeExportOptions } from './exchange.service';
4
4
  import { UploadNotificationService } from './upload-notification.service';
5
5
  import { UniverType } from '@univerjs/protocol';
6
6
  import { IMessageService } from '@univerjs/ui';
@@ -20,12 +20,12 @@ export interface IExchangeOperateService {
20
20
  * Export xlsx file by unitId
21
21
  * @returns
22
22
  */
23
- exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
23
+ exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType, options?: IExchangeExportOptions): Promise<void>;
24
24
  /**
25
25
  * Export xlsx file by snapshot
26
26
  * @returns
27
27
  */
28
- exportXLSXBySnapshot(): Promise<void>;
28
+ exportXLSXBySnapshot(options?: IExchangeExportOptions): Promise<void>;
29
29
  /**
30
30
  * Upload file to server, get unitId and open unit
31
31
  * @param file
@@ -95,8 +95,8 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
95
95
  exportDOCXBySnapshot(): Promise<void>;
96
96
  importXLSXToUnitId(): Promise<string | undefined>;
97
97
  importXLSXToSnapshot(): Promise<void>;
98
- exportXLSXByUnitId(unitId?: string, unitName?: string): Promise<void>;
99
- exportXLSXBySnapshot(): Promise<void>;
98
+ exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType, options?: IExchangeExportOptions): Promise<void>;
99
+ exportXLSXBySnapshot(options?: IExchangeExportOptions): Promise<void>;
100
100
  registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
101
101
  private _importFileToUnitId;
102
102
  private _getUnitID;
@@ -43,6 +43,8 @@ export interface IExportRequest {
43
43
  /** if jsonID is specified, the input is the json file which represents a univer unit */
44
44
  jsonID: string;
45
45
  type: UniverType;
46
+ /** If sscSwitch is set to true, server-side formula calculation will be triggered */
47
+ sscSwitch?: boolean;
46
48
  }
47
49
  export interface IExportResponse {
48
50
  error: IError | undefined;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x15b5(_0x243a06,_0x1ada92){const _0x4415bd=_0x4415();return _0x15b5=function(_0x15b5a3,_0x5374bb){_0x15b5a3=_0x15b5a3-0x76;let _0x7b434a=_0x4415bd[_0x15b5a3];return _0x7b434a;},_0x15b5(_0x243a06,_0x1ada92);}function _0x4415(){const _0x1d2a98=['2249416UFAqjn','UniverCoreFacade','importDOCXToUnitIdAsync','exportXLSXByUnitId','824890lsZfMI','UNIVER_SLIDE','exportXLSXByUnitIdAsync','UNRECOGNIZED','2857285bJpGeU','@univerjs-pro/exchange-client','UNIVER_SHEET','1246574HgFakt','_injector','importXLSXToUnitIdAsync','UNIVER_DOC','importFileToUnitId','@univerjs/core/facade','exportDOCXBySnapshot','1213302KsreuE','exportXLSXBySnapshot','importXLSXToSnapshot','UniverProExchangeClient','importDOCXToUnitId','FUniver','UNIVER_UNKNOWN','IExchangeService','importDOCXToSnapshot','importXLSXToSnapshotAsync','exportXLSXBySnapshotAsync','6qTpQvs','get','exportDOCXBySnapshotAsync','789840asNwFp','UNIVER_PROJECT','extend','The\x20exchange\x20service\x20is\x20not\x20available','exportDOCXByUnitId','function','amd','importDOCXToSnapshotAsync','1035548qSxypJ'];_0x4415=function(){return _0x1d2a98;};return _0x4415();}(function(_0x2d8ca9,_0x5ec2f4){const _0x4a54ea=_0x15b5,_0xfdd09=_0x2d8ca9();while(!![]){try{const _0x40f399=parseInt(_0x4a54ea(0x7f))/0x1+parseInt(_0x4a54ea(0x8c))/0x2+parseInt(_0x4a54ea(0x7c))/0x3*(-parseInt(_0x4a54ea(0x87))/0x4)+-parseInt(_0x4a54ea(0x90))/0x5+parseInt(_0x4a54ea(0x9a))/0x6+-parseInt(_0x4a54ea(0x93))/0x7+parseInt(_0x4a54ea(0x88))/0x8;if(_0x40f399===_0x5ec2f4)break;else _0xfdd09['push'](_0xfdd09['shift']());}catch(_0x351bcb){_0xfdd09['push'](_0xfdd09['shift']());}}}(_0x4415,0x6623e),function(_0x7cf3c0,_0x25ba0d){const _0x41c67f=_0x15b5;typeof exports=='object'&&typeof module<'u'?_0x25ba0d(require(_0x41c67f(0x91)),require(_0x41c67f(0x98))):typeof define==_0x41c67f(0x84)&&define[_0x41c67f(0x85)]?define(['@univerjs-pro/exchange-client',_0x41c67f(0x98)],_0x25ba0d):(_0x7cf3c0=typeof globalThis<'u'?globalThis:_0x7cf3c0||self,_0x25ba0d(_0x7cf3c0[_0x41c67f(0x9d)],_0x7cf3c0[_0x41c67f(0x89)]));}(this,function(_0x374846,_0x3e02fe){'use strict';const _0x5400f4=_0x15b5;var _0x436d33=(_0x2b85a1=>(_0x2b85a1[_0x2b85a1[_0x5400f4(0x77)]=0x0]=_0x5400f4(0x77),_0x2b85a1[_0x2b85a1[_0x5400f4(0x96)]=0x1]=_0x5400f4(0x96),_0x2b85a1[_0x2b85a1[_0x5400f4(0x92)]=0x2]=_0x5400f4(0x92),_0x2b85a1[_0x2b85a1[_0x5400f4(0x8d)]=0x3]='UNIVER_SLIDE',_0x2b85a1[_0x2b85a1[_0x5400f4(0x80)]=0x4]=_0x5400f4(0x80),_0x2b85a1[_0x2b85a1['UNRECOGNIZED']=-0x1]=_0x5400f4(0x8f),_0x2b85a1))(_0x436d33||{});class _0x2e73a3 extends _0x3e02fe[_0x5400f4(0x76)]{async['importXLSXToUnitId'](_0x26a39d){const _0x188172=_0x5400f4;return this[_0x188172(0x95)](_0x26a39d);}async[_0x5400f4(0x95)](_0xdf446b){const _0x109ba6=_0x5400f4,_0x37aa36=this['_injector'][_0x109ba6(0x7d)](_0x374846[_0x109ba6(0x78)]);if(!_0x37aa36)throw new Error(_0x109ba6(0x82));return _0x37aa36[_0x109ba6(0x97)](_0xdf446b,_0x436d33[_0x109ba6(0x92)]);}async['importXLSXToSnapshot'](_0x25c473){const _0x404fba=_0x5400f4;return this[_0x404fba(0x7a)](_0x25c473);}async[_0x5400f4(0x7a)](_0x20b5ed){const _0x4cd724=_0x5400f4,_0x55ebf2=this[_0x4cd724(0x94)][_0x4cd724(0x7d)](_0x374846['IExchangeService']);if(!_0x55ebf2)throw new Error(_0x4cd724(0x82));return _0x55ebf2[_0x4cd724(0x9c)](_0x20b5ed);}async[_0x5400f4(0x8b)](_0x1bc006){const _0x52fba0=_0x5400f4;return this[_0x52fba0(0x8e)](_0x1bc006);}async[_0x5400f4(0x8e)](_0x4b2832){const _0x19f18d=_0x5400f4,_0x2bc221=this[_0x19f18d(0x94)]['get'](_0x374846[_0x19f18d(0x78)]);if(!_0x2bc221)throw new Error(_0x19f18d(0x82));return _0x2bc221[_0x19f18d(0x8b)](_0x4b2832);}async[_0x5400f4(0x9b)](_0x5a607a){const _0x419e13=_0x5400f4;return this[_0x419e13(0x7b)](_0x5a607a);}async[_0x5400f4(0x7b)](_0x23f4a2){const _0x351924=_0x5400f4,_0x189a96=this[_0x351924(0x94)][_0x351924(0x7d)](_0x374846[_0x351924(0x78)]);if(!_0x189a96)throw new Error(_0x351924(0x82));return _0x189a96[_0x351924(0x9b)](_0x23f4a2);}async[_0x5400f4(0x9e)](_0x56db0e){const _0xe4f973=_0x5400f4;return this[_0xe4f973(0x8a)](_0x56db0e);}async[_0x5400f4(0x8a)](_0x965df3){const _0x3b2c9c=_0x5400f4,_0x57e955=this['_injector'][_0x3b2c9c(0x7d)](_0x374846[_0x3b2c9c(0x78)]);if(!_0x57e955)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x57e955[_0x3b2c9c(0x97)](_0x965df3,_0x436d33[_0x3b2c9c(0x96)]);}async[_0x5400f4(0x79)](_0x3e2909){const _0x4eef8e=_0x5400f4;return this[_0x4eef8e(0x86)](_0x3e2909);}async[_0x5400f4(0x86)](_0x48a3cd){const _0x124370=_0x5400f4,_0x5646bd=this[_0x124370(0x94)][_0x124370(0x7d)](_0x374846[_0x124370(0x78)]);if(!_0x5646bd)throw new Error(_0x124370(0x82));return _0x5646bd[_0x124370(0x79)](_0x48a3cd);}async[_0x5400f4(0x7e)](_0x255814){const _0x2a2648=_0x5400f4,_0x5d1234=this[_0x2a2648(0x94)]['get'](_0x374846['IExchangeService']);if(!_0x5d1234)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5d1234[_0x2a2648(0x99)](_0x255814);}async['exportDOCXByUnitIdAsync'](_0x294924){const _0x20b0fb=_0x5400f4,_0x2747f1=this[_0x20b0fb(0x94)][_0x20b0fb(0x7d)](_0x374846[_0x20b0fb(0x78)]);if(!_0x2747f1)throw new Error(_0x20b0fb(0x82));return _0x2747f1[_0x20b0fb(0x83)](_0x294924);}}_0x3e02fe[_0x5400f4(0x76)][_0x5400f4(0x81)](_0x2e73a3);}));
1
+ function _0x5ba3(_0x31adee,_0x510071){const _0xb5ef7f=_0xb5ef();return _0x5ba3=function(_0x5ba336,_0x3d7dbd){_0x5ba336=_0x5ba336-0xcb;let _0x595bcb=_0xb5ef7f[_0x5ba336];return _0x595bcb;},_0x5ba3(_0x31adee,_0x510071);}function _0xb5ef(){const _0x4f697c=['1627370AcBqJC','exportXLSXByUnitIdAsync','55544ZIGNud','importXLSXToSnapshotAsync','@univerjs/core/facade','533341gQTWej','importXLSXToSnapshot','importDOCXToSnapshot','exportDOCXByUnitId','6536250uRnYhd','The\x20exchange\x20service\x20is\x20not\x20available','exportXLSXByUnitId','UNIVER_SLIDE','1987446EZdGzf','FUniver','exportDOCXBySnapshot','UNIVER_DOC','get','importXLSXToUnitIdAsync','exportXLSXBySnapshot','function','importDOCXToSnapshotAsync','exportXLSXBySnapshotAsync','object','UniverProExchangeClient','UNIVER_UNKNOWN','IExchangeService','exportDOCXByUnitIdAsync','1001nHLYNN','importDOCXToUnitId','_injector','UNIVER_SHEET','extend','importXLSXToUnitId','importFileToUnitId','UNRECOGNIZED','9470214bLPrnW','importDOCXToUnitIdAsync','@univerjs-pro/exchange-client','1990596phHBXJ','5qrDkry','UniverCoreFacade'];_0xb5ef=function(){return _0x4f697c;};return _0xb5ef();}(function(_0x3c5b5f,_0x4c7035){const _0x45f8f5=_0x5ba3,_0x2e618b=_0x3c5b5f();while(!![]){try{const _0x28bbb5=parseInt(_0x45f8f5(0xde))/0x1+parseInt(_0x45f8f5(0xd9))/0x2+parseInt(_0x45f8f5(0xe6))/0x3+parseInt(_0x45f8f5(0xd6))/0x4*(-parseInt(_0x45f8f5(0xd7))/0x5)+parseInt(_0x45f8f5(0xe2))/0x6+parseInt(_0x45f8f5(0xcb))/0x7*(-parseInt(_0x45f8f5(0xdb))/0x8)+-parseInt(_0x45f8f5(0xd3))/0x9;if(_0x28bbb5===_0x4c7035)break;else _0x2e618b['push'](_0x2e618b['shift']());}catch(_0x1ae926){_0x2e618b['push'](_0x2e618b['shift']());}}}(_0xb5ef,0x87c6b),function(_0x438b78,_0x7b1e64){const _0x938cc7=_0x5ba3;typeof exports==_0x938cc7(0xf0)&&typeof module<'u'?_0x7b1e64(require(_0x938cc7(0xd5)),require(_0x938cc7(0xdd))):typeof define==_0x938cc7(0xed)&&define['amd']?define([_0x938cc7(0xd5),'@univerjs/core/facade'],_0x7b1e64):(_0x438b78=typeof globalThis<'u'?globalThis:_0x438b78||self,_0x7b1e64(_0x438b78[_0x938cc7(0xf1)],_0x438b78[_0x938cc7(0xd8)]));}(this,function(_0x26bd69,_0x4c3348){'use strict';const _0x14e3c1=_0x5ba3;var _0x5ea5e4=(_0x45fcab=>(_0x45fcab[_0x45fcab[_0x14e3c1(0xf2)]=0x0]=_0x14e3c1(0xf2),_0x45fcab[_0x45fcab[_0x14e3c1(0xe9)]=0x1]=_0x14e3c1(0xe9),_0x45fcab[_0x45fcab['UNIVER_SHEET']=0x2]=_0x14e3c1(0xce),_0x45fcab[_0x45fcab['UNIVER_SLIDE']=0x3]=_0x14e3c1(0xe5),_0x45fcab[_0x45fcab['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x45fcab[_0x45fcab['UNRECOGNIZED']=-0x1]=_0x14e3c1(0xd2),_0x45fcab))(_0x5ea5e4||{});class _0x313f9d extends _0x4c3348[_0x14e3c1(0xe7)]{async[_0x14e3c1(0xd0)](_0x5312dc){const _0x20bfdc=_0x14e3c1;return this[_0x20bfdc(0xeb)](_0x5312dc);}async[_0x14e3c1(0xeb)](_0x48f2ad){const _0x34a158=_0x14e3c1,_0x2b4445=this[_0x34a158(0xcd)]['get'](_0x26bd69['IExchangeService']);if(!_0x2b4445)throw new Error(_0x34a158(0xe3));return _0x2b4445[_0x34a158(0xd1)](_0x48f2ad,_0x5ea5e4['UNIVER_SHEET']);}async[_0x14e3c1(0xdf)](_0x45095f){const _0x505ea1=_0x14e3c1;return this[_0x505ea1(0xdc)](_0x45095f);}async[_0x14e3c1(0xdc)](_0x3e5ec3){const _0x114fd9=_0x14e3c1,_0x355411=this[_0x114fd9(0xcd)][_0x114fd9(0xea)](_0x26bd69[_0x114fd9(0xf3)]);if(!_0x355411)throw new Error(_0x114fd9(0xe3));return _0x355411[_0x114fd9(0xdf)](_0x3e5ec3);}async[_0x14e3c1(0xe4)](_0x309b9e){return this['exportXLSXByUnitIdAsync'](_0x309b9e);}async[_0x14e3c1(0xda)](_0x20cfd,_0x147b76){const _0xcaaffb=_0x14e3c1,_0x29c649=this[_0xcaaffb(0xcd)][_0xcaaffb(0xea)](_0x26bd69[_0xcaaffb(0xf3)]);if(!_0x29c649)throw new Error(_0xcaaffb(0xe3));return _0x29c649[_0xcaaffb(0xe4)](_0x20cfd,_0x147b76);}async[_0x14e3c1(0xec)](_0x26e9f0){const _0x2df578=_0x14e3c1;return this[_0x2df578(0xef)](_0x26e9f0);}async[_0x14e3c1(0xef)](_0x5344f5,_0x2a111b){const _0x1488ea=_0x14e3c1,_0x26b1a6=this[_0x1488ea(0xcd)]['get'](_0x26bd69[_0x1488ea(0xf3)]);if(!_0x26b1a6)throw new Error(_0x1488ea(0xe3));return _0x26b1a6[_0x1488ea(0xec)](_0x5344f5,_0x2a111b);}async[_0x14e3c1(0xcc)](_0x5e1a61){return this['importDOCXToUnitIdAsync'](_0x5e1a61);}async[_0x14e3c1(0xd4)](_0x37e13f){const _0x1e63d1=_0x14e3c1,_0x8d4b27=this[_0x1e63d1(0xcd)][_0x1e63d1(0xea)](_0x26bd69[_0x1e63d1(0xf3)]);if(!_0x8d4b27)throw new Error(_0x1e63d1(0xe3));return _0x8d4b27['importFileToUnitId'](_0x37e13f,_0x5ea5e4[_0x1e63d1(0xe9)]);}async[_0x14e3c1(0xe0)](_0x5954d3){const _0x155553=_0x14e3c1;return this[_0x155553(0xee)](_0x5954d3);}async['importDOCXToSnapshotAsync'](_0x555e5d){const _0x19995e=_0x14e3c1,_0x24dec2=this[_0x19995e(0xcd)]['get'](_0x26bd69['IExchangeService']);if(!_0x24dec2)throw new Error(_0x19995e(0xe3));return _0x24dec2[_0x19995e(0xe0)](_0x555e5d);}async['exportDOCXBySnapshotAsync'](_0x38910a){const _0x52202e=_0x14e3c1,_0x5f253e=this[_0x52202e(0xcd)][_0x52202e(0xea)](_0x26bd69['IExchangeService']);if(!_0x5f253e)throw new Error(_0x52202e(0xe3));return _0x5f253e[_0x52202e(0xe8)](_0x38910a);}async[_0x14e3c1(0xf4)](_0x347112){const _0x2e5bcd=_0x14e3c1,_0xddb861=this[_0x2e5bcd(0xcd)][_0x2e5bcd(0xea)](_0x26bd69['IExchangeService']);if(!_0xddb861)throw new Error(_0x2e5bcd(0xe3));return _0xddb861[_0x2e5bcd(0xe1)](_0x347112);}}_0x4c3348[_0x14e3c1(0xe7)][_0x14e3c1(0xcf)](_0x313f9d);}));