@univerjs-pro/exchange-client 0.8.0-nightly.202506071606 → 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 _0x2e8458=_0x1d60;function _0x5534(){const _0x1f45e1=['Cancel','40VETwyQ','Unknown\x20mistake','Uploading','Save\x20As','291980LXRGKu','Internal\x20unknown\x20error','314988EljhOK','40qLkWoC','Open(File)','Network\x20error','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','4602190wWBDuj','4504712sxEypy','9JKrFBo','9691QymrgY','File','File\x20uploaded\x20successfully','42FRzaMH','6024lRmssl','10092GqQMOK','19621LjRdon','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','{0}\x20file(s)\x20uploaded\x20successfully','Downloading','Please\x20wait...','Download\x20success'];_0x5534=function(){return _0x1f45e1;};return _0x5534();}function _0x1d60(_0x16e057,_0x2271a6){const _0x55341f=_0x5534();return _0x1d60=function(_0x1d60ea,_0x5379ab){_0x1d60ea=_0x1d60ea-0x1af;let _0x4e772c=_0x55341f[_0x1d60ea];return _0x4e772c;},_0x1d60(_0x16e057,_0x2271a6);}(function(_0x4468cd,_0x51075e){const _0x1e48d0=_0x1d60,_0x17516d=_0x4468cd();while(!![]){try{const _0x37a7eb=parseInt(_0x1e48d0(0x1c7))/0x1*(parseInt(_0x1e48d0(0x1ba))/0x2)+parseInt(_0x1e48d0(0x1c5))/0x3+parseInt(_0x1e48d0(0x1b7))/0x4*(-parseInt(_0x1e48d0(0x1b3))/0x5)+-parseInt(_0x1e48d0(0x1b9))/0x6*(parseInt(_0x1e48d0(0x1c4))/0x7)+parseInt(_0x1e48d0(0x1bf))/0x8+-parseInt(_0x1e48d0(0x1c0))/0x9*(parseInt(_0x1e48d0(0x1be))/0xa)+parseInt(_0x1e48d0(0x1c1))/0xb*(parseInt(_0x1e48d0(0x1c6))/0xc);if(_0x37a7eb===_0x51075e)break;else _0x17516d['push'](_0x17516d['shift']());}catch(_0x33ed61){_0x17516d['push'](_0x17516d['shift']());}}}(_0x5534,0x52d47));const e={'exchange':{'file':_0x2e8458(0x1c2),'upload':_0x2e8458(0x1bb),'download':_0x2e8458(0x1b6),'uploading':_0x2e8458(0x1b5),'uploadSuccess':_0x2e8458(0x1c3),'uploadSuccessTip':_0x2e8458(0x1c9),'downloading':_0x2e8458(0x1af),'downloadSuccess':_0x2e8458(0x1b1),'unknownMistake':_0x2e8458(0x1b4),'networkError':_0x2e8458(0x1bc),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x2e8458(0x1b8),'interrupt':_0x2e8458(0x1c8),'fileTypeError':_0x2e8458(0x1bd),'wait':_0x2e8458(0x1b0),'cancel':_0x2e8458(0x1b2),'uploadAgain':'Upload\x20again'}};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
- function _0x4314(){const _0x5b0772=['لطفا\x20صبر\x20کنید...','بارگذاری\x20مجدد','خطای\x20ناشناخته','16jQevLV','در\x20حال\x20بارگذاری','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','27265LJQkkm','525484iHJwnH','فایل','12nsJVtl','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','3MsUoFm','63054lOTpqD','خطای\x20داخلی\x20ناشناخته','6393140nlekIF','3329744vvsHlO','66WmsSpM','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20شبکه','2994945VBLuUO','9KkthRD','21445754uqGXOP','دانلود\x20موفقیت\x20آمیز'];_0x4314=function(){return _0x5b0772;};return _0x4314();}const _0x4b0cd3=_0x511b;(function(_0x33328e,_0x46b9a7){const _0x3e110f=_0x511b,_0x10c8ae=_0x33328e();while(!![]){try{const _0x5155f8=-parseInt(_0x3e110f(0xe7))/0x1*(-parseInt(_0x3e110f(0xd9))/0x2)+parseInt(_0x3e110f(0xd8))/0x3*(parseInt(_0x3e110f(0xd4))/0x4)+parseInt(_0x3e110f(0xe0))/0x5+parseInt(_0x3e110f(0xdd))/0x6*(parseInt(_0x3e110f(0xd3))/0x7)+-parseInt(_0x3e110f(0xdc))/0x8*(-parseInt(_0x3e110f(0xe1))/0x9)+parseInt(_0x3e110f(0xdb))/0xa+-parseInt(_0x3e110f(0xe2))/0xb*(parseInt(_0x3e110f(0xd6))/0xc);if(_0x5155f8===_0x46b9a7)break;else _0x10c8ae['push'](_0x10c8ae['shift']());}catch(_0x43b123){_0x10c8ae['push'](_0x10c8ae['shift']());}}}(_0x4314,0x5da43));function _0x511b(_0x516f43,_0x57185b){const _0x4314f9=_0x4314();return _0x511b=function(_0x511bfb,_0x2cb0b0){_0x511bfb=_0x511bfb-0xd1;let _0xb6b083=_0x4314f9[_0x511bfb];return _0xb6b083;},_0x511b(_0x516f43,_0x57185b);}const o={'exchange':{'file':_0x4b0cd3(0xd5),'upload':'بازکردن(فایل)','download':'ذخیره\x20به\x20عنوان','uploading':_0x4b0cd3(0xe8),'uploadSuccess':_0x4b0cd3(0xde),'uploadSuccessTip':_0x4b0cd3(0xd7),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x4b0cd3(0xe3),'unknownMistake':_0x4b0cd3(0xe6),'networkError':_0x4b0cd3(0xdf),'tooLarge':_0x4b0cd3(0xd2),'internalError':_0x4b0cd3(0xda),'interrupt':_0x4b0cd3(0xd1),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','wait':_0x4b0cd3(0xe4),'cancel':'لغو','uploadAgain':_0x4b0cd3(0xe5)}};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 _0x54ae07=_0x2b16;(function(_0x2c33ef,_0x10c68c){const _0xfb9fc2=_0x2b16,_0x22f1a0=_0x2c33ef();while(!![]){try{const _0x45eeff=-parseInt(_0xfb9fc2(0x1bb))/0x1+parseInt(_0xfb9fc2(0x1b8))/0x2*(parseInt(_0xfb9fc2(0x1b4))/0x3)+parseInt(_0xfb9fc2(0x1c0))/0x4*(-parseInt(_0xfb9fc2(0x1b5))/0x5)+parseInt(_0xfb9fc2(0x1b7))/0x6*(parseInt(_0xfb9fc2(0x1c4))/0x7)+-parseInt(_0xfb9fc2(0x1c5))/0x8*(parseInt(_0xfb9fc2(0x1b1))/0x9)+-parseInt(_0xfb9fc2(0x1bd))/0xa+parseInt(_0xfb9fc2(0x1c1))/0xb;if(_0x45eeff===_0x10c68c)break;else _0x22f1a0['push'](_0x22f1a0['shift']());}catch(_0x18ba2d){_0x22f1a0['push'](_0x22f1a0['shift']());}}}(_0x1ead,0xb5794));function _0x2b16(_0x37f523,_0x22da1){const _0x1eadec=_0x1ead();return _0x2b16=function(_0x2b1625,_0x2969c7){_0x2b1625=_0x2b1625-0x1af;let _0x28b5b9=_0x1eadec[_0x2b1625];return _0x28b5b9;},_0x2b16(_0x37f523,_0x22da1);}const e={'exchange':{'file':_0x54ae07(0x1b0),'upload':'Ouvrir\x20(Fichier)','download':'Enregistrer\x20sous','uploading':_0x54ae07(0x1b6),'uploadSuccess':_0x54ae07(0x1b3),'uploadSuccessTip':_0x54ae07(0x1c3),'downloading':_0x54ae07(0x1b2),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x54ae07(0x1c2),'networkError':_0x54ae07(0x1b9),'tooLarge':_0x54ae07(0x1ba),'internalError':'Erreur\x20interne\x20inconnue','interrupt':_0x54ae07(0x1be),'fileTypeError':_0x54ae07(0x1af),'wait':'Veuillez\x20patienter...','cancel':_0x54ae07(0x1bf),'uploadAgain':_0x54ae07(0x1bc)}};export{e as default};function _0x1ead(){const _0x188061=['Erreur\x20réseau','Les\x20données\x20sont\x20trop\x20volumineuses','499517jJRrPK','Télécharger\x20à\x20nouveau','9779330TKGneG','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Annuler','375428gVQXdK','29649763SRyDor','Erreur\x20inconnue','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','16373jddrrC','810776ICKJRk','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Fichier','36ZmMnpV','Téléchargement','Fichier\x20téléchargé\x20avec\x20succès','36177RrSGEu','70bEkHhl','Téléchargement\x20en\x20cours','1770NobURu','92zGjVWe'];_0x1ead=function(){return _0x188061;};return _0x1ead();}
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 _0x7c6ee4=_0x3d5c;function _0x3d5c(_0xa8b949,_0x4b4202){const _0x1d1df7=_0x1d1d();return _0x3d5c=function(_0x3d5ccf,_0x53de0b){_0x3d5ccf=_0x3d5ccf-0x189;let _0x3a6596=_0x1d1df7[_0x3d5ccf];return _0x3a6596;},_0x3d5c(_0xa8b949,_0x4b4202);}function _0x1d1d(){const _0x4b7631=['Файл','107840zWqNpx','259112YiZUmf','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','3tHXbeg','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','4twfSWO','Загрузка','Неизвестная\x20ошибка','2981986QXJkPN','Загрузить\x20снова','73606676VrHEzm','279STIXnQ','Внутренняя\x20неизвестная\x20ошибка','Открыть(Файл)','Скачивание\x20успешно','1477450OeGXwn','Пожалуйста,\x20подождите...','5273665RvQsgZ','4992534tZMPPr','Сетевая\x20ошибка','7vPLDIf'];_0x1d1d=function(){return _0x4b7631;};return _0x1d1d();}(function(_0x489be3,_0x56ed96){const _0x13d66c=_0x3d5c,_0x28c018=_0x489be3();while(!![]){try{const _0x4a6dc2=-parseInt(_0x13d66c(0x18c))/0x1+parseInt(_0x13d66c(0x19c))/0x2*(-parseInt(_0x13d66c(0x196))/0x3)+-parseInt(_0x13d66c(0x199))/0x4*(parseInt(_0x13d66c(0x18e))/0x5)+-parseInt(_0x13d66c(0x18f))/0x6*(parseInt(_0x13d66c(0x191))/0x7)+-parseInt(_0x13d66c(0x194))/0x8*(parseInt(_0x13d66c(0x19f))/0x9)+parseInt(_0x13d66c(0x193))/0xa+parseInt(_0x13d66c(0x19e))/0xb;if(_0x4a6dc2===_0x56ed96)break;else _0x28c018['push'](_0x28c018['shift']());}catch(_0x22313b){_0x28c018['push'](_0x28c018['shift']());}}}(_0x1d1d,0xcdce0));const o={'exchange':{'file':_0x7c6ee4(0x192),'upload':_0x7c6ee4(0x18a),'download':'Сохранить\x20как','uploading':_0x7c6ee4(0x19a),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x7c6ee4(0x197),'downloading':'Скачивание','downloadSuccess':_0x7c6ee4(0x18b),'unknownMistake':_0x7c6ee4(0x19b),'networkError':_0x7c6ee4(0x190),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x7c6ee4(0x189),'interrupt':_0x7c6ee4(0x195),'fileTypeError':_0x7c6ee4(0x198),'wait':_0x7c6ee4(0x18d),'cancel':'Отмена','uploadAgain':_0x7c6ee4(0x19d)}};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 _0x2da77a=_0x53b0;(function(_0x3645b5,_0x907136){const _0x1c048e=_0x53b0,_0x3a4a95=_0x3645b5();while(!![]){try{const _0x18d6ec=parseInt(_0x1c048e(0x16e))/0x1+-parseInt(_0x1c048e(0x174))/0x2+parseInt(_0x1c048e(0x172))/0x3*(-parseInt(_0x1c048e(0x17b))/0x4)+parseInt(_0x1c048e(0x169))/0x5*(-parseInt(_0x1c048e(0x173))/0x6)+parseInt(_0x1c048e(0x178))/0x7+-parseInt(_0x1c048e(0x16b))/0x8+parseInt(_0x1c048e(0x16d))/0x9;if(_0x18d6ec===_0x907136)break;else _0x3a4a95['push'](_0x3a4a95['shift']());}catch(_0x18376a){_0x3a4a95['push'](_0x3a4a95['shift']());}}}(_0xd423,0x548fb));function _0xd423(){const _0x4c368f=['Đang\x20tải\x20xuống','1044792QrFMxV','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','6933195wfZOdl','257973RQpGbL','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20mạng','Lưu\x20dưới\x20dạng','138gBqoRa','8358TahdeD','155558XzPxOt','Tải\x20xuống\x20thành\x20công','Lỗi\x20không\x20xác\x20định','Luồng\x20dữ\x20liệu\x20quá\x20lớn','1857198mESbpW','Đang\x20tải\x20lên','Mở\x20(Tệp)','55652YVQPFT','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Hủy\x20bỏ','355zWpAst'];_0xd423=function(){return _0x4c368f;};return _0xd423();}function _0x53b0(_0x44dc39,_0x4a4648){const _0xd423d2=_0xd423();return _0x53b0=function(_0x53b04d,_0x14e138){_0x53b04d=_0x53b04d-0x168;let _0x10f3d8=_0xd423d2[_0x53b04d];return _0x10f3d8;},_0x53b0(_0x44dc39,_0x4a4648);}const n={'exchange':{'file':'Tệp','upload':_0x2da77a(0x17a),'download':_0x2da77a(0x171),'uploading':_0x2da77a(0x179),'uploadSuccess':_0x2da77a(0x16f),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x2da77a(0x16a),'downloadSuccess':_0x2da77a(0x175),'unknownMistake':_0x2da77a(0x176),'networkError':_0x2da77a(0x170),'tooLarge':_0x2da77a(0x177),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x2da77a(0x17c),'fileTypeError':_0x2da77a(0x16c),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x2da77a(0x168),'uploadAgain':'Tải\x20lên\x20lại'}};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
- const _0x52c9f3=_0x52da;function _0x52da(_0x3a8552,_0x1c3a6f){const _0x17cce3=_0x17cc();return _0x52da=function(_0x52da38,_0x112278){_0x52da38=_0x52da38-0x193;let _0x2721ac=_0x17cce3[_0x52da38];return _0x2721ac;},_0x52da(_0x3a8552,_0x1c3a6f);}(function(_0x3ec232,_0x2cd40a){const _0x527036=_0x52da,_0x456d21=_0x3ec232();while(!![]){try{const _0x464dac=-parseInt(_0x527036(0x1a9))/0x1*(parseInt(_0x527036(0x1a6))/0x2)+parseInt(_0x527036(0x1a1))/0x3+parseInt(_0x527036(0x1a4))/0x4*(parseInt(_0x527036(0x19e))/0x5)+parseInt(_0x527036(0x19a))/0x6*(-parseInt(_0x527036(0x199))/0x7)+-parseInt(_0x527036(0x198))/0x8+parseInt(_0x527036(0x1a0))/0x9*(-parseInt(_0x527036(0x196))/0xa)+parseInt(_0x527036(0x19b))/0xb;if(_0x464dac===_0x2cd40a)break;else _0x456d21['push'](_0x456d21['shift']());}catch(_0x518d25){_0x456d21['push'](_0x456d21['shift']());}}}(_0x17cc,0x9a389));function _0x17cc(){const _0x26504f=['13297075MqZxdY','上传中','打开(文件)','5nAMVOX','数据流过大','61164KVxEQS','1439727mQOaTu','内部未知错误','另存为','3068976FbUpSJ','所选文件\x20[{0}]\x20不支持上传','2VfcRse','未知错误','{0}个文件上传成功','187977iIvGDO','下载成功','文件上传成功','请稍等...','1390IANpLn','再次上传','4151896bAkmul','7ZPWYtd','1036086TbbGQO'];_0x17cc=function(){return _0x26504f;};return _0x17cc();}const o={'exchange':{'file':'文件','upload':_0x52c9f3(0x19d),'download':_0x52c9f3(0x1a3),'uploading':_0x52c9f3(0x19c),'uploadSuccess':_0x52c9f3(0x194),'uploadSuccessTip':_0x52c9f3(0x1a8),'downloading':'下载中','downloadSuccess':_0x52c9f3(0x193),'unknownMistake':_0x52c9f3(0x1a7),'networkError':'网络异常','tooLarge':_0x52c9f3(0x19f),'internalError':_0x52c9f3(0x1a2),'interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x52c9f3(0x1a5),'wait':_0x52c9f3(0x195),'cancel':'取消','uploadAgain':_0x52c9f3(0x197)}};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 _0x8ccbfd=_0x1b7b;function _0x5b75(){const _0xbb2a5f=['2240bgYLRb','42woteqT','401660rqtTbq','內部未知錯誤','資料流過大','41816xgpama','開啟(檔案)','4240uVppLE','檔案上傳成功','未知錯誤','網路異常','下載成功','486505vzgLOD','26301EsfADB','網路連線中斷,檔案上傳失敗','1002386HHsYhc','{0}個檔案上傳成功','1179BWGyZa','343633IIwNyz','1263ZnbPUU'];_0x5b75=function(){return _0xbb2a5f;};return _0x5b75();}(function(_0x24133b,_0x5bb354){const _0x224c07=_0x1b7b,_0x21ead8=_0x24133b();while(!![]){try{const _0x47180e=-parseInt(_0x224c07(0x1dc))/0x1+-parseInt(_0x224c07(0x1e0))/0x2+parseInt(_0x224c07(0x1dd))/0x3*(-parseInt(_0x224c07(0x1de))/0x4)+parseInt(_0x224c07(0x1ea))/0x5*(-parseInt(_0x224c07(0x1df))/0x6)+parseInt(_0x224c07(0x1d9))/0x7+parseInt(_0x224c07(0x1e3))/0x8*(parseInt(_0x224c07(0x1db))/0x9)+parseInt(_0x224c07(0x1e5))/0xa*(parseInt(_0x224c07(0x1d7))/0xb);if(_0x47180e===_0x5bb354)break;else _0x21ead8['push'](_0x21ead8['shift']());}catch(_0x38bb96){_0x21ead8['push'](_0x21ead8['shift']());}}}(_0x5b75,0x5cde5));const o={'exchange':{'file':'檔案','upload':_0x8ccbfd(0x1e4),'download':'另存為','uploading':'上傳中','uploadSuccess':_0x8ccbfd(0x1e6),'uploadSuccessTip':_0x8ccbfd(0x1da),'downloading':'下載中','downloadSuccess':_0x8ccbfd(0x1e9),'unknownMistake':_0x8ccbfd(0x1e7),'networkError':_0x8ccbfd(0x1e8),'tooLarge':_0x8ccbfd(0x1e2),'internalError':_0x8ccbfd(0x1e1),'interrupt':_0x8ccbfd(0x1d8),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':'再次上傳'}};function _0x1b7b(_0x3aec0c,_0x3d131c){const _0x5b753e=_0x5b75();return _0x1b7b=function(_0x1b7b06,_0x43a145){_0x1b7b06=_0x1b7b06-0x1d7;let _0x38434e=_0x5b753e[_0x1b7b06];return _0x38434e;},_0x1b7b(_0x3aec0c,_0x3d131c);}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 _0x2012(){const _0x449813=['@univerjs/core/facade','132712XLfTMo','amd','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_PROJECT','importDOCXToSnapshot','639810XYyWVY','3007164gBpJav','UniverCoreFacade','2754550ozHFNU','UNIVER_SHEET','get','@univerjs-pro/exchange-client','112342lzLnLe','UNIVER_DOC','1431vxVDrX','exportDOCXByUnitId','UNIVER_SLIDE','exportDOCXBySnapshot','5500712eqlIVD','IExchangeService','importDOCXToUnitIdAsync','254680SGATGt','importDOCXToSnapshotAsync','exportXLSXBySnapshotAsync','42nSBVEo','extend','exportXLSXByUnitId','importXLSXToUnitIdAsync','FUniver','object','importXLSXToUnitId','_injector','UNRECOGNIZED','UNIVER_UNKNOWN','exportDOCXBySnapshotAsync','UniverProExchangeClient','importFileToUnitId','importXLSXToSnapshot','importXLSXToSnapshotAsync'];_0x2012=function(){return _0x449813;};return _0x2012();}function _0x3ebc(_0xe6a91c,_0x3bb965){const _0x201219=_0x2012();return _0x3ebc=function(_0x3ebc1d,_0x56c0d3){_0x3ebc1d=_0x3ebc1d-0x16d;let _0x39cb34=_0x201219[_0x3ebc1d];return _0x39cb34;},_0x3ebc(_0xe6a91c,_0x3bb965);}(function(_0x554827,_0x2c3e67){const _0x3c068f=_0x3ebc,_0x41cf36=_0x554827();while(!![]){try{const _0x250d17=-parseInt(_0x3c068f(0x176))/0x1+parseInt(_0x3c068f(0x16d))/0x2*(-parseInt(_0x3c068f(0x179))/0x3)+-parseInt(_0x3c068f(0x18f))/0x4+parseInt(_0x3c068f(0x191))/0x5+-parseInt(_0x3c068f(0x18e))/0x6+-parseInt(_0x3c068f(0x173))/0x7+-parseInt(_0x3c068f(0x189))/0x8*(-parseInt(_0x3c068f(0x16f))/0x9);if(_0x250d17===_0x2c3e67)break;else _0x41cf36['push'](_0x41cf36['shift']());}catch(_0x2b246a){_0x41cf36['push'](_0x41cf36['shift']());}}}(_0x2012,0x7adcd),function(_0x545fdc,_0x4c546c){const _0x458b88=_0x3ebc;typeof exports==_0x458b88(0x17e)&&typeof module<'u'?_0x4c546c(require(_0x458b88(0x194)),require(_0x458b88(0x188))):typeof define=='function'&&define[_0x458b88(0x18a)]?define([_0x458b88(0x194),'@univerjs/core/facade'],_0x4c546c):(_0x545fdc=typeof globalThis<'u'?globalThis:_0x545fdc||self,_0x4c546c(_0x545fdc[_0x458b88(0x184)],_0x545fdc[_0x458b88(0x190)]));}(this,function(_0x507d25,_0xff13ba){'use strict';const _0x16e68d=_0x3ebc;var _0x46c889=(_0x32bc8e=>(_0x32bc8e[_0x32bc8e[_0x16e68d(0x182)]=0x0]=_0x16e68d(0x182),_0x32bc8e[_0x32bc8e[_0x16e68d(0x16e)]=0x1]=_0x16e68d(0x16e),_0x32bc8e[_0x32bc8e[_0x16e68d(0x192)]=0x2]='UNIVER_SHEET',_0x32bc8e[_0x32bc8e[_0x16e68d(0x171)]=0x3]='UNIVER_SLIDE',_0x32bc8e[_0x32bc8e[_0x16e68d(0x18c)]=0x4]='UNIVER_PROJECT',_0x32bc8e[_0x32bc8e[_0x16e68d(0x181)]=-0x1]=_0x16e68d(0x181),_0x32bc8e))(_0x46c889||{});class _0x5ebeff extends _0xff13ba[_0x16e68d(0x17d)]{async[_0x16e68d(0x17f)](_0x1c5bd7){const _0x1d9698=_0x16e68d;return this[_0x1d9698(0x17c)](_0x1c5bd7);}async[_0x16e68d(0x17c)](_0x50bc5e){const _0x250aa1=_0x16e68d,_0x3b8e24=this[_0x250aa1(0x180)][_0x250aa1(0x193)](_0x507d25['IExchangeService']);if(!_0x3b8e24)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3b8e24[_0x250aa1(0x185)](_0x50bc5e,_0x46c889[_0x250aa1(0x192)]);}async['importXLSXToSnapshot'](_0x5b6f5c){const _0x7c9f43=_0x16e68d;return this[_0x7c9f43(0x187)](_0x5b6f5c);}async['importXLSXToSnapshotAsync'](_0x2fabd1){const _0x1d4537=_0x16e68d,_0x391c29=this[_0x1d4537(0x180)][_0x1d4537(0x193)](_0x507d25[_0x1d4537(0x174)]);if(!_0x391c29)throw new Error(_0x1d4537(0x18b));return _0x391c29[_0x1d4537(0x186)](_0x2fabd1);}async[_0x16e68d(0x17b)](_0x196e9b){return this['exportXLSXByUnitIdAsync'](_0x196e9b);}async['exportXLSXByUnitIdAsync'](_0x395e46){const _0xb4c6e2=_0x16e68d,_0x409671=this['_injector']['get'](_0x507d25[_0xb4c6e2(0x174)]);if(!_0x409671)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x409671[_0xb4c6e2(0x17b)](_0x395e46);}async['exportXLSXBySnapshot'](_0x45b6b0){const _0x42e5c8=_0x16e68d;return this[_0x42e5c8(0x178)](_0x45b6b0);}async[_0x16e68d(0x178)](_0x2db966){const _0xac59c5=_0x16e68d,_0x1df949=this[_0xac59c5(0x180)][_0xac59c5(0x193)](_0x507d25[_0xac59c5(0x174)]);if(!_0x1df949)throw new Error(_0xac59c5(0x18b));return _0x1df949['exportXLSXBySnapshot'](_0x2db966);}async['importDOCXToUnitId'](_0xea5807){return this['importDOCXToUnitIdAsync'](_0xea5807);}async[_0x16e68d(0x175)](_0x5ef49a){const _0x1a9817=_0x16e68d,_0x44a057=this[_0x1a9817(0x180)]['get'](_0x507d25['IExchangeService']);if(!_0x44a057)throw new Error(_0x1a9817(0x18b));return _0x44a057[_0x1a9817(0x185)](_0x5ef49a,_0x46c889[_0x1a9817(0x16e)]);}async['importDOCXToSnapshot'](_0x5294c2){const _0xb768e=_0x16e68d;return this[_0xb768e(0x177)](_0x5294c2);}async[_0x16e68d(0x177)](_0x449de3){const _0x322443=_0x16e68d,_0x456c02=this[_0x322443(0x180)][_0x322443(0x193)](_0x507d25['IExchangeService']);if(!_0x456c02)throw new Error(_0x322443(0x18b));return _0x456c02[_0x322443(0x18d)](_0x449de3);}async[_0x16e68d(0x183)](_0x1b10c6){const _0x2df765=_0x16e68d,_0x3eef6d=this[_0x2df765(0x180)][_0x2df765(0x193)](_0x507d25[_0x2df765(0x174)]);if(!_0x3eef6d)throw new Error(_0x2df765(0x18b));return _0x3eef6d[_0x2df765(0x172)](_0x1b10c6);}async['exportDOCXByUnitIdAsync'](_0x377fc1){const _0x424632=_0x16e68d,_0x63ccfd=this['_injector'][_0x424632(0x193)](_0x507d25['IExchangeService']);if(!_0x63ccfd)throw new Error(_0x424632(0x18b));return _0x63ccfd[_0x424632(0x170)](_0x377fc1);}}_0xff13ba[_0x16e68d(0x17d)][_0x16e68d(0x17a)](_0x5ebeff);}));
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);}));