@univerjs-pro/exchange-client 0.8.0 → 0.8.1-nightly.202506121607

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 (44) 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/controllers/config.schema.d.ts +10 -0
  29. package/lib/types/facade/f-univer.d.ts +6 -0
  30. package/lib/types/locale/en-US.d.ts +1 -0
  31. package/lib/types/services/exchange.service.d.ts +5 -2
  32. package/lib/types/services/operate.service.d.ts +1 -1
  33. package/lib/types/services/request.service.d.ts +2 -0
  34. package/lib/types/services/utils/tool.d.ts +3 -2
  35. package/lib/umd/facade.js +1 -1
  36. package/lib/umd/index.js +2 -2
  37. package/lib/umd/locale/en-US.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ru-RU.js +1 -1
  41. package/lib/umd/locale/vi-VN.js +1 -1
  42. package/lib/umd/locale/zh-CN.js +1 -1
  43. package/lib/umd/locale/zh-TW.js +1 -1
  44. package/package.json +8 -8
@@ -1 +1 @@
1
- const _0x4db20e=_0x45e4;function _0x45e4(_0x5cdf02,_0x2f05ac){const _0x11965f=_0x1196();return _0x45e4=function(_0x45e40b,_0x209fb2){_0x45e40b=_0x45e40b-0x67;let _0x42a290=_0x11965f[_0x45e40b];return _0x42a290;},_0x45e4(_0x5cdf02,_0x2f05ac);}(function(_0x4bbc8a,_0x26a542){const _0x35152a=_0x45e4,_0x54bd26=_0x4bbc8a();while(!![]){try{const _0x360963=parseInt(_0x35152a(0x72))/0x1*(-parseInt(_0x35152a(0x7c))/0x2)+-parseInt(_0x35152a(0x74))/0x3*(-parseInt(_0x35152a(0x69))/0x4)+-parseInt(_0x35152a(0x6f))/0x5*(parseInt(_0x35152a(0x6d))/0x6)+-parseInt(_0x35152a(0x7e))/0x7*(-parseInt(_0x35152a(0x67))/0x8)+parseInt(_0x35152a(0x70))/0x9*(-parseInt(_0x35152a(0x6c))/0xa)+-parseInt(_0x35152a(0x7a))/0xb*(parseInt(_0x35152a(0x81))/0xc)+-parseInt(_0x35152a(0x71))/0xd*(-parseInt(_0x35152a(0x79))/0xe);if(_0x360963===_0x26a542)break;else _0x54bd26['push'](_0x54bd26['shift']());}catch(_0x259c5b){_0x54bd26['push'](_0x54bd26['shift']());}}}(_0x1196,0x85732));const e={'exchange':{'file':_0x4db20e(0x78),'upload':_0x4db20e(0x6e),'download':_0x4db20e(0x6a),'uploading':_0x4db20e(0x77),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x4db20e(0x80),'downloadSuccess':'Download\x20success','unknownMistake':_0x4db20e(0x7d),'networkError':_0x4db20e(0x73),'tooLarge':_0x4db20e(0x7b),'internalError':_0x4db20e(0x75),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x4db20e(0x7f),'wait':_0x4db20e(0x6b),'cancel':_0x4db20e(0x68),'uploadAgain':_0x4db20e(0x76)}};function _0x1196(){const _0x248432=['6gFuGqd','Open(File)','5084465FVWUqv','1136988uWIlpN','13hBtRiT','2TPfXzq','Network\x20error','15ePqbeR','Internal\x20unknown\x20error','Upload\x20again','Uploading','File','16694902WYnyBM','275WEmMcl','Data\x20is\x20too\x20large','919478iIGJGR','Unknown\x20mistake','5508377mGybjx','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Downloading','38400wQcjNE','8xndqDf','Cancel','871124hPTEyF','Save\x20As','Please\x20wait...','40WUBemk'];_0x1196=function(){return _0x248432;};return _0x1196();}export{e as default};
1
+ const _0x199df4=_0x1d99;(function(_0x5c2b70,_0x321440){const _0xf13a00=_0x1d99,_0x14f8be=_0x5c2b70();while(!![]){try{const _0x580f40=-parseInt(_0xf13a00(0xa9))/0x1*(-parseInt(_0xf13a00(0xb8))/0x2)+parseInt(_0xf13a00(0xb3))/0x3+parseInt(_0xf13a00(0xad))/0x4*(-parseInt(_0xf13a00(0xa7))/0x5)+parseInt(_0xf13a00(0xaa))/0x6*(-parseInt(_0xf13a00(0xbc))/0x7)+parseInt(_0xf13a00(0xac))/0x8*(-parseInt(_0xf13a00(0xab))/0x9)+-parseInt(_0xf13a00(0xb9))/0xa+parseInt(_0xf13a00(0xa5))/0xb*(parseInt(_0xf13a00(0xb4))/0xc);if(_0x580f40===_0x321440)break;else _0x14f8be['push'](_0x14f8be['shift']());}catch(_0x1c50f7){_0x14f8be['push'](_0x14f8be['shift']());}}}(_0x4327,0x3dea4));const e={'exchange':{'file':'File','upload':'Open(File)','download':_0x199df4(0xb1),'downloadWPS':'Save\x20As\x20WPS','uploading':_0x199df4(0xb7),'uploadSuccess':_0x199df4(0xa4),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x199df4(0xae),'downloadSuccess':_0x199df4(0xba),'unknownMistake':'Unknown\x20mistake','networkError':_0x199df4(0xb2),'tooLarge':_0x199df4(0xb5),'internalError':_0x199df4(0xa8),'interrupt':_0x199df4(0xb6),'fileTypeError':_0x199df4(0xaf),'wait':_0x199df4(0xb0),'cancel':_0x199df4(0xbb),'uploadAgain':_0x199df4(0xa6)}};function _0x1d99(_0x164e32,_0x1ec56a){const _0x4327c6=_0x4327();return _0x1d99=function(_0x1d9969,_0x4b131b){_0x1d9969=_0x1d9969-0xa4;let _0x16fa0f=_0x4327c6[_0x1d9969];return _0x16fa0f;},_0x1d99(_0x164e32,_0x1ec56a);}function _0x4327(){const _0x16fee3=['8aGyDrO','8pJrXjN','Downloading','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Please\x20wait...','Save\x20As','Network\x20error','1035897lSYlDj','2280FXojht','Data\x20is\x20too\x20large','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Uploading','82TFESJa','1429750HGzqdj','Download\x20success','Cancel','224CGavKV','File\x20uploaded\x20successfully','11473uPGHDb','Upload\x20again','268110qOifXX','Internal\x20unknown\x20error','1397fvBdni','4854GVXuUN','639315aEagWI'];_0x4327=function(){return _0x16fee3;};return _0x4327();}export{e as default};
@@ -1 +1 @@
1
- function _0xbe25(){const _0x53969c=['در\x20حال\x20دانلود','لطفا\x20صبر\x20کنید...','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','لغو','150TPfmkb','در\x20حال\x20بارگذاری','785548vQlBVG','297006MLEZYi','بارگذاری\x20مجدد','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','992604MtyIME','خطای\x20ناشناخته','45xMKYDN','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','3191800zUXRub','4bZRTvI','5646256BSdwvM','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','بازکردن(فایل)','خطای\x20داخلی\x20ناشناخته','638FNNiLY','3447VUyAmP','3791032HSjgNy','فایل','1748ovdAhE'];_0xbe25=function(){return _0x53969c;};return _0xbe25();}const _0x2af4d5=_0x2485;function _0x2485(_0x5b4d35,_0xbbd0d9){const _0xbe2597=_0xbe25();return _0x2485=function(_0x2485a1,_0x49628a){_0x2485a1=_0x2485a1-0xb6;let _0x4a2cf5=_0xbe2597[_0x2485a1];return _0x4a2cf5;},_0x2485(_0x5b4d35,_0xbbd0d9);}(function(_0x4baf28,_0x540c06){const _0x56ea35=_0x2485,_0x5a97b8=_0x4baf28();while(!![]){try{const _0xd86780=-parseInt(_0x56ea35(0xbc))/0x1*(parseInt(_0x56ea35(0xcc))/0x2)+-parseInt(_0x56ea35(0xc2))/0x3*(-parseInt(_0x56ea35(0xc5))/0x4)+parseInt(_0x56ea35(0xca))/0x5*(-parseInt(_0x56ea35(0xcd))/0x6)+-parseInt(_0x56ea35(0xc3))/0x7+parseInt(_0x56ea35(0xbd))/0x8+parseInt(_0x56ea35(0xb9))/0x9*(-parseInt(_0x56ea35(0xbb))/0xa)+parseInt(_0x56ea35(0xc1))/0xb*(parseInt(_0x56ea35(0xb7))/0xc);if(_0xd86780===_0x540c06)break;else _0x5a97b8['push'](_0x5a97b8['shift']());}catch(_0x336b01){_0x5a97b8['push'](_0x5a97b8['shift']());}}}(_0xbe25,0xc6367));const o={'exchange':{'file':_0x2af4d5(0xc4),'upload':_0x2af4d5(0xbf),'download':'ذخیره\x20به\x20عنوان','uploading':_0x2af4d5(0xcb),'uploadSuccess':_0x2af4d5(0xba),'uploadSuccessTip':_0x2af4d5(0xc8),'downloading':_0x2af4d5(0xc6),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x2af4d5(0xb8),'networkError':'خطای\x20شبکه','tooLarge':_0x2af4d5(0xb6),'internalError':_0x2af4d5(0xc0),'interrupt':_0x2af4d5(0xcf),'fileTypeError':_0x2af4d5(0xbe),'wait':_0x2af4d5(0xc7),'cancel':_0x2af4d5(0xc9),'uploadAgain':_0x2af4d5(0xce)}};export{o as default};
1
+ const _0x456a06=_0x2d01;(function(_0x34204d,_0x53fef2){const _0x338ea7=_0x2d01,_0x14dc63=_0x34204d();while(!![]){try{const _0x5751ab=parseInt(_0x338ea7(0x122))/0x1*(parseInt(_0x338ea7(0x11f))/0x2)+-parseInt(_0x338ea7(0x125))/0x3*(parseInt(_0x338ea7(0x129))/0x4)+-parseInt(_0x338ea7(0x130))/0x5+parseInt(_0x338ea7(0x11c))/0x6*(-parseInt(_0x338ea7(0x127))/0x7)+-parseInt(_0x338ea7(0x120))/0x8*(parseInt(_0x338ea7(0x11e))/0x9)+parseInt(_0x338ea7(0x119))/0xa*(-parseInt(_0x338ea7(0x126))/0xb)+parseInt(_0x338ea7(0x124))/0xc;if(_0x5751ab===_0x53fef2)break;else _0x14dc63['push'](_0x14dc63['shift']());}catch(_0x257865){_0x14dc63['push'](_0x14dc63['shift']());}}}(_0x3dd0,0x66c06));const o={'exchange':{'file':_0x456a06(0x123),'upload':_0x456a06(0x11b),'download':_0x456a06(0x12f),'downloadWPS':'ذخیره\x20به\x20عنوان\x20WPS','uploading':_0x456a06(0x12b),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x456a06(0x12d),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x456a06(0x128),'unknownMistake':_0x456a06(0x12c),'networkError':_0x456a06(0x12e),'tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':_0x456a06(0x12a),'interrupt':_0x456a06(0x11d),'fileTypeError':_0x456a06(0x118),'wait':_0x456a06(0x11a),'cancel':'لغو','uploadAgain':_0x456a06(0x121)}};function _0x3dd0(){const _0x6054fe=['خطای\x20شبکه','ذخیره\x20به\x20عنوان','605060hFVyMs','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','130MsaDUB','لطفا\x20صبر\x20کنید...','بازکردن(فایل)','42flqpyj','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','99KnanUP','6lkHGVI','519664piXINA','بارگذاری\x20مجدد','159569CbUMDd','فایل','23315832FuGZYA','483rwgoOs','549197SYkaAA','188909qLMFMp','دانلود\x20موفقیت\x20آمیز','8132glHJdC','خطای\x20داخلی\x20ناشناخته','در\x20حال\x20بارگذاری','خطای\x20ناشناخته','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد'];_0x3dd0=function(){return _0x6054fe;};return _0x3dd0();}function _0x2d01(_0x25aa53,_0x362031){const _0x3dd054=_0x3dd0();return _0x2d01=function(_0x2d01dd,_0x270514){_0x2d01dd=_0x2d01dd-0x118;let _0x4dba3e=_0x3dd054[_0x2d01dd];return _0x4dba3e;},_0x2d01(_0x25aa53,_0x362031);}export{o as default};
@@ -1 +1 @@
1
- function _0x4291(){const _0x250c6a=['Veuillez\x20patienter...','175mfIRfa','Téléchargement','233416CbNDQA','833CWjffm','Erreur\x20réseau','1123652cpurMR','Erreur\x20inconnue','Les\x20données\x20sont\x20trop\x20volumineuses','13488OXaINJ','1414989fLcCBK','Ouvrir\x20(Fichier)','545218payMjB','53224lRkuMi','63ArUGRP','Téléchargement\x20réussi','4737750GXZyZN','Erreur\x20interne\x20inconnue','Fichier','Annuler','Télécharger\x20à\x20nouveau'];_0x4291=function(){return _0x250c6a;};return _0x4291();}const _0x502a8e=_0x5ab6;(function(_0x2c8335,_0x1effe2){const _0x29d2ec=_0x5ab6,_0x9b32f2=_0x2c8335();while(!![]){try{const _0x4c110c=-parseInt(_0x29d2ec(0xe9))/0x1+-parseInt(_0x29d2ec(0xe3))/0x2+parseInt(_0x29d2ec(0xe7))/0x3+parseInt(_0x29d2ec(0xea))/0x4*(parseInt(_0x29d2ec(0xde))/0x5)+-parseInt(_0x29d2ec(0xe6))/0x6*(-parseInt(_0x29d2ec(0xe1))/0x7)+-parseInt(_0x29d2ec(0xe0))/0x8*(parseInt(_0x29d2ec(0xeb))/0x9)+parseInt(_0x29d2ec(0xed))/0xa;if(_0x4c110c===_0x1effe2)break;else _0x9b32f2['push'](_0x9b32f2['shift']());}catch(_0x8cfd52){_0x9b32f2['push'](_0x9b32f2['shift']());}}}(_0x4291,0x59b11));function _0x5ab6(_0x1bb381,_0x46c689){const _0x4291d0=_0x4291();return _0x5ab6=function(_0x5ab6a7,_0x280456){_0x5ab6a7=_0x5ab6a7-0xdb;let _0x4f6088=_0x4291d0[_0x5ab6a7];return _0x4f6088;},_0x5ab6(_0x1bb381,_0x46c689);}const e={'exchange':{'file':_0x502a8e(0xef),'upload':_0x502a8e(0xe8),'download':'Enregistrer\x20sous','uploading':'Téléchargement\x20en\x20cours','uploadSuccess':'Fichier\x20téléchargé\x20avec\x20succès','uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x502a8e(0xdf),'downloadSuccess':_0x502a8e(0xec),'unknownMistake':_0x502a8e(0xe4),'networkError':_0x502a8e(0xe2),'tooLarge':_0x502a8e(0xe5),'internalError':_0x502a8e(0xee),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x502a8e(0xdd),'cancel':_0x502a8e(0xdb),'uploadAgain':_0x502a8e(0xdc)}};export{e as default};
1
+ const _0xf363be=_0x582f;(function(_0x3e24cc,_0x2ca011){const _0x174568=_0x582f,_0x8e918d=_0x3e24cc();while(!![]){try{const _0x4126ac=-parseInt(_0x174568(0x139))/0x1*(-parseInt(_0x174568(0x13a))/0x2)+parseInt(_0x174568(0x128))/0x3+parseInt(_0x174568(0x13d))/0x4*(-parseInt(_0x174568(0x134))/0x5)+parseInt(_0x174568(0x13b))/0x6*(-parseInt(_0x174568(0x12e))/0x7)+parseInt(_0x174568(0x12d))/0x8+parseInt(_0x174568(0x135))/0x9*(parseInt(_0x174568(0x130))/0xa)+-parseInt(_0x174568(0x132))/0xb;if(_0x4126ac===_0x2ca011)break;else _0x8e918d['push'](_0x8e918d['shift']());}catch(_0x4ee269){_0x8e918d['push'](_0x8e918d['shift']());}}}(_0x5d10,0x786e7));function _0x582f(_0x5ca3a1,_0x3e561e){const _0x5d1078=_0x5d10();return _0x582f=function(_0x582fc5,_0x330bed){_0x582fc5=_0x582fc5-0x128;let _0x22b2ab=_0x5d1078[_0x582fc5];return _0x22b2ab;},_0x582f(_0x5ca3a1,_0x3e561e);}const e={'exchange':{'file':'Fichier','upload':_0xf363be(0x137),'download':_0xf363be(0x12f),'downloadWPS':'Enregistrer\x20sous\x20WPS','uploading':'Téléchargement\x20en\x20cours','uploadSuccess':_0xf363be(0x13c),'uploadSuccessTip':_0xf363be(0x131),'downloading':'Téléchargement','downloadSuccess':_0xf363be(0x133),'unknownMistake':'Erreur\x20inconnue','networkError':_0xf363be(0x138),'tooLarge':_0xf363be(0x12c),'internalError':'Erreur\x20interne\x20inconnue','interrupt':_0xf363be(0x13e),'fileTypeError':_0xf363be(0x129),'wait':_0xf363be(0x12b),'cancel':_0xf363be(0x12a),'uploadAgain':_0xf363be(0x136)}};function _0x5d10(){const _0x383e44=['1880277vBPBlV','Enregistrer\x20sous','160PlcYAb','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','4445232CGRrDo','Téléchargement\x20réussi','45865gJCQqS','73521LofQLG','Télécharger\x20à\x20nouveau','Ouvrir\x20(Fichier)','Erreur\x20réseau','245OjcZEV','1618CKNITF','18wSHIhz','Fichier\x20téléchargé\x20avec\x20succès','8WGRIOO','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','2837085QaHGlS','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Annuler','Veuillez\x20patienter...','Les\x20données\x20sont\x20trop\x20volumineuses','3575792cEBjef'];_0x5d10=function(){return _0x383e44;};return _0x5d10();}export{e as default};
@@ -1 +1 @@
1
- function _0x3a3e(_0x181d47,_0x262c56){const _0x1dc478=_0x1dc4();return _0x3a3e=function(_0x3a3ec1,_0x15b714){_0x3a3ec1=_0x3a3ec1-0xe2;let _0x537caa=_0x1dc478[_0x3a3ec1];return _0x537caa;},_0x3a3e(_0x181d47,_0x262c56);}const _0x3c1e27=_0x3a3e;function _0x1dc4(){const _0x4f117a=['Открыть(Файл)','205647ealYzb','3147879mjdiiP','Скачивание\x20успешно','282045LbbRBe','Отмена','Загрузка','Данные\x20слишком\x20большие','1151766GEcifG','1230792oVuWFo','28gmNpBG','Пожалуйста,\x20подождите...','29525499wkbsdv','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','16raNVmN','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Файл','Загрузить\x20снова','Неизвестная\x20ошибка','2455544HPoOHt','Файл\x20успешно\x20загружен'];_0x1dc4=function(){return _0x4f117a;};return _0x1dc4();}(function(_0x489160,_0xc84c1d){const _0x27d1d3=_0x3a3e,_0x6530a9=_0x489160();while(!![]){try{const _0x4f6e74=-parseInt(_0x27d1d3(0xe8))/0x1+-parseInt(_0x27d1d3(0xe5))/0x2+parseInt(_0x27d1d3(0xf0))/0x3+parseInt(_0x27d1d3(0xf1))/0x4*(-parseInt(_0x27d1d3(0xeb))/0x5)+-parseInt(_0x27d1d3(0xef))/0x6+parseInt(_0x27d1d3(0xe9))/0x7*(-parseInt(_0x27d1d3(0xf6))/0x8)+parseInt(_0x27d1d3(0xf3))/0x9;if(_0x4f6e74===_0xc84c1d)break;else _0x6530a9['push'](_0x6530a9['shift']());}catch(_0x2a57a6){_0x6530a9['push'](_0x6530a9['shift']());}}}(_0x1dc4,0xbc4a6));const o={'exchange':{'file':_0x3c1e27(0xe2),'upload':_0x3c1e27(0xe7),'download':'Сохранить\x20как','uploading':_0x3c1e27(0xed),'uploadSuccess':_0x3c1e27(0xe6),'uploadSuccessTip':_0x3c1e27(0xf7),'downloading':'Скачивание','downloadSuccess':_0x3c1e27(0xea),'unknownMistake':_0x3c1e27(0xe4),'networkError':'Сетевая\x20ошибка','tooLarge':_0x3c1e27(0xee),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x3c1e27(0xf5),'fileTypeError':_0x3c1e27(0xf4),'wait':_0x3c1e27(0xf2),'cancel':_0x3c1e27(0xec),'uploadAgain':_0x3c1e27(0xe3)}};export{o as default};
1
+ function _0x2779(_0x5baac1,_0x587484){const _0x3c3bf4=_0x3c3b();return _0x2779=function(_0x27799e,_0x4ceae9){_0x27799e=_0x27799e-0x1cd;let _0x169056=_0x3c3bf4[_0x27799e];return _0x169056;},_0x2779(_0x5baac1,_0x587484);}const _0x481a9c=_0x2779;function _0x3c3b(){const _0x4291df=['Внутренняя\x20неизвестная\x20ошибка','49897674EQwUpn','32573FAxhpL','28CARxVk','Загрузить\x20снова','8451880RKWoUv','Сохранить\x20как\x20WPS','Неизвестная\x20ошибка','30clpfHj','Файл\x20успешно\x20загружен','7631316lLeAqE','Скачивание','Сетевая\x20ошибка','Открыть(Файл)','Скачивание\x20успешно','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Загрузка','1175030iNlmdo','Файл','{0}\x20файл(ов)\x20успешно\x20загружен(о)','954504byOIOf','2509314RlOSfn'];_0x3c3b=function(){return _0x4291df;};return _0x3c3b();}(function(_0x3e2789,_0x2e4160){const _0x3047cf=_0x2779,_0x4c9608=_0x3e2789();while(!![]){try{const _0x144b9b=-parseInt(_0x3047cf(0x1d1))/0x1*(parseInt(_0x3047cf(0x1d7))/0x2)+parseInt(_0x3047cf(0x1cd))/0x3+-parseInt(_0x3047cf(0x1d9))/0x4+parseInt(_0x3047cf(0x1e0))/0x5+parseInt(_0x3047cf(0x1ce))/0x6*(-parseInt(_0x3047cf(0x1d2))/0x7)+-parseInt(_0x3047cf(0x1d4))/0x8+parseInt(_0x3047cf(0x1d0))/0x9;if(_0x144b9b===_0x2e4160)break;else _0x4c9608['push'](_0x4c9608['shift']());}catch(_0x1f1988){_0x4c9608['push'](_0x4c9608['shift']());}}}(_0x3c3b,0xed337));const o={'exchange':{'file':_0x481a9c(0x1e1),'upload':_0x481a9c(0x1dc),'download':'Сохранить\x20как','downloadWPS':_0x481a9c(0x1d5),'uploading':_0x481a9c(0x1df),'uploadSuccess':_0x481a9c(0x1d8),'uploadSuccessTip':_0x481a9c(0x1e2),'downloading':_0x481a9c(0x1da),'downloadSuccess':_0x481a9c(0x1dd),'unknownMistake':_0x481a9c(0x1d6),'networkError':_0x481a9c(0x1db),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x481a9c(0x1cf),'interrupt':_0x481a9c(0x1de),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':_0x481a9c(0x1d3)}};export{o as default};
@@ -1 +1 @@
1
- function _0x3aa4(_0x4c41f2,_0xbf74ad){const _0x8d74e7=_0x8d74();return _0x3aa4=function(_0x3aa4c6,_0x73c04b){_0x3aa4c6=_0x3aa4c6-0x165;let _0x2c7e2c=_0x8d74e7[_0x3aa4c6];return _0x2c7e2c;},_0x3aa4(_0x4c41f2,_0xbf74ad);}const _0x156d44=_0x3aa4;function _0x8d74(){const _0x4d76f8=['17405210rprFFq','9502423aecazb','596352ydUFng','Đang\x20tải\x20lên','6870275ZLFIFb','36SWpgKC','Tải\x20lên\x20lại','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','6774240vfgmli','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Luồng\x20dữ\x20liệu\x20quá\x20lớn','2091576WNvLoi','Lưu\x20dưới\x20dạng','Lỗi\x20không\x20xác\x20định','Vui\x20lòng\x20đợi...','Tải\x20xuống\x20thành\x20công','Mở\x20(Tệp)','Hủy\x20bỏ','Lỗi\x20mạng','Đang\x20tải\x20xuống','4WXUamK','440HhWLkR','6571RKPUgu'];_0x8d74=function(){return _0x4d76f8;};return _0x8d74();}(function(_0x422b37,_0x142f19){const _0x138bec=_0x3aa4,_0x1095f5=_0x422b37();while(!![]){try{const _0x337c55=parseInt(_0x138bec(0x177))/0x1*(-parseInt(_0x138bec(0x176))/0x2)+-parseInt(_0x138bec(0x16c))/0x3*(parseInt(_0x138bec(0x175))/0x4)+parseInt(_0x138bec(0x165))/0x5+-parseInt(_0x138bec(0x169))/0x6+parseInt(_0x138bec(0x179))/0x7+-parseInt(_0x138bec(0x17a))/0x8*(parseInt(_0x138bec(0x166))/0x9)+parseInt(_0x138bec(0x178))/0xa;if(_0x337c55===_0x142f19)break;else _0x1095f5['push'](_0x1095f5['shift']());}catch(_0x5e6b8e){_0x1095f5['push'](_0x1095f5['shift']());}}}(_0x8d74,0xdc395));const n={'exchange':{'file':'Tệp','upload':_0x156d44(0x171),'download':_0x156d44(0x16d),'uploading':_0x156d44(0x17b),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x156d44(0x168),'downloading':_0x156d44(0x174),'downloadSuccess':_0x156d44(0x170),'unknownMistake':_0x156d44(0x16e),'networkError':_0x156d44(0x173),'tooLarge':_0x156d44(0x16b),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x156d44(0x16a),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x156d44(0x16f),'cancel':_0x156d44(0x172),'uploadAgain':_0x156d44(0x167)}};export{n as default};
1
+ const _0x51aa96=_0x5208;(function(_0x4d328d,_0x350438){const _0x35ed55=_0x5208,_0x1cabd1=_0x4d328d();while(!![]){try{const _0x12a80b=parseInt(_0x35ed55(0xbb))/0x1+parseInt(_0x35ed55(0xd1))/0x2+parseInt(_0x35ed55(0xc8))/0x3*(parseInt(_0x35ed55(0xcf))/0x4)+-parseInt(_0x35ed55(0xbf))/0x5*(-parseInt(_0x35ed55(0xb9))/0x6)+parseInt(_0x35ed55(0xc6))/0x7+parseInt(_0x35ed55(0xbe))/0x8*(-parseInt(_0x35ed55(0xcc))/0x9)+-parseInt(_0x35ed55(0xd2))/0xa;if(_0x12a80b===_0x350438)break;else _0x1cabd1['push'](_0x1cabd1['shift']());}catch(_0xd984cf){_0x1cabd1['push'](_0x1cabd1['shift']());}}}(_0x22e4,0xc79b6));const n={'exchange':{'file':_0x51aa96(0xbd),'upload':_0x51aa96(0xcb),'download':_0x51aa96(0xca),'downloadWPS':_0x51aa96(0xc3),'uploading':_0x51aa96(0xce),'uploadSuccess':_0x51aa96(0xd3),'uploadSuccessTip':_0x51aa96(0xd0),'downloading':_0x51aa96(0xc9),'downloadSuccess':_0x51aa96(0xc7),'unknownMistake':_0x51aa96(0xbc),'networkError':_0x51aa96(0xc2),'tooLarge':_0x51aa96(0xc5),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x51aa96(0xba),'fileTypeError':_0x51aa96(0xcd),'wait':_0x51aa96(0xc4),'cancel':_0x51aa96(0xc1),'uploadAgain':_0x51aa96(0xc0)}};function _0x22e4(){const _0x1c293b=['99826UHWyRb','Lỗi\x20không\x20xác\x20định','Tệp','32KrtbHW','24250XMVdIF','Tải\x20lên\x20lại','Hủy\x20bỏ','Lỗi\x20mạng','Lưu\x20dưới\x20dạng\x20WPS','Vui\x20lòng\x20đợi...','Luồng\x20dữ\x20liệu\x20quá\x20lớn','3728207BQuuRd','Tải\x20xuống\x20thành\x20công','292854lHlRGc','Đang\x20tải\x20xuống','Lưu\x20dưới\x20dạng','Mở\x20(Tệp)','1410660aOreIg','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Đang\x20tải\x20lên','12RYMuGE','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','1336806oYqKqP','15944340UZCfTM','Tải\x20lên\x20tệp\x20thành\x20công','1788RgyoHB','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại'];_0x22e4=function(){return _0x1c293b;};return _0x22e4();}function _0x5208(_0x4d7ff2,_0x509992){const _0x22e4cc=_0x22e4();return _0x5208=function(_0x520866,_0x7cb697){_0x520866=_0x520866-0xb9;let _0x6a4063=_0x22e4cc[_0x520866];return _0x6a4063;},_0x5208(_0x4d7ff2,_0x509992);}export{n as default};
@@ -1 +1 @@
1
- const _0xe352b8=_0x12f1;(function(_0x551ef5,_0x4bf099){const _0x410e07=_0x12f1,_0x5584a1=_0x551ef5();while(!![]){try{const _0x34c517=parseInt(_0x410e07(0x142))/0x1*(parseInt(_0x410e07(0x137))/0x2)+-parseInt(_0x410e07(0x136))/0x3*(-parseInt(_0x410e07(0x13d))/0x4)+parseInt(_0x410e07(0x138))/0x5+-parseInt(_0x410e07(0x141))/0x6+-parseInt(_0x410e07(0x13f))/0x7+parseInt(_0x410e07(0x133))/0x8*(parseInt(_0x410e07(0x130))/0x9)+-parseInt(_0x410e07(0x146))/0xa*(parseInt(_0x410e07(0x13c))/0xb);if(_0x34c517===_0x4bf099)break;else _0x5584a1['push'](_0x5584a1['shift']());}catch(_0x4e4708){_0x5584a1['push'](_0x5584a1['shift']());}}}(_0x5d25,0x8caf5));function _0x12f1(_0x570bd8,_0x3665af){const _0x5d2558=_0x5d25();return _0x12f1=function(_0x12f18b,_0x800359){_0x12f18b=_0x12f18b-0x130;let _0x5b419f=_0x5d2558[_0x12f18b];return _0x5b419f;},_0x12f1(_0x570bd8,_0x3665af);}function _0x5d25(){const _0x2fc0af=['6081RpGhSQ','16750iTUrRK','1270155kEmVtV','内部未知错误','网络连接中断,文件上传失败','文件上传成功','5582401rbPdcJ','1412KaLzzc','{0}个文件上传成功','4216562OGBBfz','另存为','3027834VWEEMk','15kmsdvC','所选文件\x20[{0}]\x20不支持上传','未知错误','下载成功','10SFmrUL','18jWtTPb','再次上传','上传中','4382216zAPAjF','数据流过大','请稍等...'];_0x5d25=function(){return _0x2fc0af;};return _0x5d25();}const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0xe352b8(0x140),'uploading':_0xe352b8(0x132),'uploadSuccess':_0xe352b8(0x13b),'uploadSuccessTip':_0xe352b8(0x13e),'downloading':'下载中','downloadSuccess':_0xe352b8(0x145),'unknownMistake':_0xe352b8(0x144),'networkError':'网络异常','tooLarge':_0xe352b8(0x134),'internalError':_0xe352b8(0x139),'interrupt':_0xe352b8(0x13a),'fileTypeError':_0xe352b8(0x143),'wait':_0xe352b8(0x135),'cancel':'取消','uploadAgain':_0xe352b8(0x131)}};export{o as default};
1
+ function _0x4dba(){const _0x1a7ef8=['371713YtvteQ','再次上传','所选文件\x20[{0}]\x20不支持上传','文件上传成功','数据流过大','1464BXRhad','9192810FZZqyQ','下载中','14DRJhGh','41022575IaCgxd','64107ddeHPg','另存为','网络异常','未知错误','48MxpaZX','5091906oEbTLV','网络连接中断,文件上传失败','{0}个文件上传成功','13827CxfQJE','另存为\x20WPS','1742505kgAVUc','12LZfQQS'];_0x4dba=function(){return _0x1a7ef8;};return _0x4dba();}const _0x33ea92=_0x4275;(function(_0x4ee550,_0xec1dab){const _0x27f546=_0x4275,_0x561cd3=_0x4ee550();while(!![]){try{const _0x44e8b9=parseInt(_0x27f546(0x1bf))/0x1+parseInt(_0x27f546(0x1b7))/0x2*(-parseInt(_0x27f546(0x1bb))/0x3)+-parseInt(_0x27f546(0x1be))/0x4*(parseInt(_0x27f546(0x1bd))/0x5)+parseInt(_0x27f546(0x1b8))/0x6*(-parseInt(_0x27f546(0x1b1))/0x7)+parseInt(_0x27f546(0x1c4))/0x8*(-parseInt(_0x27f546(0x1b3))/0x9)+parseInt(_0x27f546(0x1c5))/0xa+parseInt(_0x27f546(0x1b2))/0xb;if(_0x44e8b9===_0xec1dab)break;else _0x561cd3['push'](_0x561cd3['shift']());}catch(_0x47c9a7){_0x561cd3['push'](_0x561cd3['shift']());}}}(_0x4dba,0xd2c9d));const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0x33ea92(0x1b4),'downloadWPS':_0x33ea92(0x1bc),'uploading':'上传中','uploadSuccess':_0x33ea92(0x1c2),'uploadSuccessTip':_0x33ea92(0x1ba),'downloading':_0x33ea92(0x1b0),'downloadSuccess':'下载成功','unknownMistake':_0x33ea92(0x1b6),'networkError':_0x33ea92(0x1b5),'tooLarge':_0x33ea92(0x1c3),'internalError':'内部未知错误','interrupt':_0x33ea92(0x1b9),'fileTypeError':_0x33ea92(0x1c1),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x33ea92(0x1c0)}};function _0x4275(_0xc7f42b,_0x68eec3){const _0x4dba23=_0x4dba();return _0x4275=function(_0x42750b,_0x5b1106){_0x42750b=_0x42750b-0x1b0;let _0x1f0477=_0x4dba23[_0x42750b];return _0x1f0477;},_0x4275(_0xc7f42b,_0x68eec3);}export{o as default};
@@ -1 +1 @@
1
- function _0x5d45(){const _0x568aea=['4JZxEdb','另存為','1159165VJFpFA','開啟(檔案)','網路連線中斷,檔案上傳失敗','網路異常','180055sqcRrO','11421NApKim','所選檔案\x20[{0}]\x20不支援上傳','96280qEJfmp','2BZNmFF','{0}個檔案上傳成功','1744698HCLkkQ','檔案上傳成功','482977ivwBQZ','216CwYzmI','請稍等...','下載中','259761DQMmnE','下載成功','30JKomFD'];_0x5d45=function(){return _0x568aea;};return _0x5d45();}const _0x3a92c8=_0x4f08;(function(_0x125d3f,_0x2688fd){const _0x162928=_0x4f08,_0x2231dc=_0x125d3f();while(!![]){try{const _0x4d768c=parseInt(_0x162928(0xa6))/0x1+parseInt(_0x162928(0xa9))/0x2*(parseInt(_0x162928(0x9c))/0x3)+-parseInt(_0x162928(0x9f))/0x4*(-parseInt(_0x162928(0xa5))/0x5)+parseInt(_0x162928(0x96))/0x6+parseInt(_0x162928(0xa1))/0x7+-parseInt(_0x162928(0xa8))/0x8*(parseInt(_0x162928(0x99))/0x9)+parseInt(_0x162928(0x9e))/0xa*(-parseInt(_0x162928(0x98))/0xb);if(_0x4d768c===_0x2688fd)break;else _0x2231dc['push'](_0x2231dc['shift']());}catch(_0x5af06d){_0x2231dc['push'](_0x2231dc['shift']());}}}(_0x5d45,0x2976c));const o={'exchange':{'file':'檔案','upload':_0x3a92c8(0xa2),'download':_0x3a92c8(0xa0),'uploading':'上傳中','uploadSuccess':_0x3a92c8(0x97),'uploadSuccessTip':_0x3a92c8(0x95),'downloading':_0x3a92c8(0x9b),'downloadSuccess':_0x3a92c8(0x9d),'unknownMistake':'未知錯誤','networkError':_0x3a92c8(0xa4),'tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':_0x3a92c8(0xa3),'fileTypeError':_0x3a92c8(0xa7),'wait':_0x3a92c8(0x9a),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x4f08(_0x49f570,_0x4a84fc){const _0x5d4581=_0x5d45();return _0x4f08=function(_0x4f08dd,_0x2dd0d0){_0x4f08dd=_0x4f08dd-0x95;let _0x213d5b=_0x5d4581[_0x4f08dd];return _0x213d5b;},_0x4f08(_0x49f570,_0x4a84fc);}export{o as default};
1
+ const _0x270f9a=_0x4703;function _0x4703(_0x33f0c3,_0x52fe75){const _0x3ecf3d=_0x3ecf();return _0x4703=function(_0x4703e5,_0xf517c3){_0x4703e5=_0x4703e5-0xcb;let _0x5ee129=_0x3ecf3d[_0x4703e5];return _0x5ee129;},_0x4703(_0x33f0c3,_0x52fe75);}(function(_0x112688,_0x5d4e70){const _0x4b801b=_0x4703,_0x360de4=_0x112688();while(!![]){try{const _0x5e70f2=parseInt(_0x4b801b(0xdc))/0x1*(parseInt(_0x4b801b(0xda))/0x2)+-parseInt(_0x4b801b(0xcd))/0x3*(-parseInt(_0x4b801b(0xd4))/0x4)+parseInt(_0x4b801b(0xd0))/0x5*(parseInt(_0x4b801b(0xd6))/0x6)+parseInt(_0x4b801b(0xce))/0x7*(-parseInt(_0x4b801b(0xcf))/0x8)+parseInt(_0x4b801b(0xe4))/0x9*(parseInt(_0x4b801b(0xe0))/0xa)+-parseInt(_0x4b801b(0xdb))/0xb+-parseInt(_0x4b801b(0xd1))/0xc*(parseInt(_0x4b801b(0xd8))/0xd);if(_0x5e70f2===_0x5d4e70)break;else _0x360de4['push'](_0x360de4['shift']());}catch(_0x2e0259){_0x360de4['push'](_0x360de4['shift']());}}}(_0x3ecf,0xc3255));const o={'exchange':{'file':'檔案','upload':_0x270f9a(0xcc),'download':_0x270f9a(0xdf),'downloadWPS':_0x270f9a(0xcb),'uploading':_0x270f9a(0xd5),'uploadSuccess':_0x270f9a(0xd9),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x270f9a(0xd7),'downloadSuccess':_0x270f9a(0xe1),'unknownMistake':_0x270f9a(0xd3),'networkError':_0x270f9a(0xd2),'tooLarge':'資料流過大','internalError':_0x270f9a(0xe2),'interrupt':_0x270f9a(0xdd),'fileTypeError':_0x270f9a(0xe3),'wait':_0x270f9a(0xde),'cancel':'取消','uploadAgain':'再次上傳'}};export{o as default};function _0x3ecf(){const _0x4bf8c7=['檔案上傳成功','664PdMDLT','6964562NTHGYh','116YiusaX','網路連線中斷,檔案上傳失敗','請稍等...','另存為','20FsGEGx','下載成功','內部未知錯誤','所選檔案\x20[{0}]\x20不支援上傳','1797417HEGQZx','另存為\x20WPS','開啟(檔案)','309cXPhFN','7afBmsz','3778472EaCHGC','4441720OdPTvB','372JNsURi','網路異常','未知錯誤','58836cPWQFt','上傳中','6vGRlJB','下載中','392743XSRiku'];_0x3ecf=function(){return _0x4bf8c7;};return _0x3ecf();}
@@ -1,8 +1,18 @@
1
1
  export declare const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY = "exchange-client.config";
2
2
  export declare const configSymbol: unique symbol;
3
3
  export interface IUniverExchangeClientOptions {
4
+ /**
5
+ * The minimum number of rows in the worksheet after import.
6
+ */
4
7
  minSheetRowCount?: number;
8
+ /**
9
+ * The minimum number of columns in the worksheet after import.
10
+ */
5
11
  minSheetColumnCount?: number;
12
+ /**
13
+ * Export whether to enable server-side formula computing.
14
+ */
15
+ enableServerSideComputing?: boolean;
6
16
  }
7
17
  export interface IUniverExchangeClientConfig {
8
18
  /**
@@ -82,6 +82,8 @@ export interface IFUniverExchangeClientMixin {
82
82
  * const fWorkbook = univerAPI.getActiveWorkbook();
83
83
  * const unitId = fWorkbook.getId();
84
84
  * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
85
+ * // or with server-side calculation enabled
86
+ * // const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, { enableServerCalculation: true });
85
87
  *
86
88
  * // Download the file
87
89
  * downloadFile(file, 'univer', 'xlsx');
@@ -108,6 +110,8 @@ export interface IFUniverExchangeClientMixin {
108
110
  * const fWorkbook = univerAPI.getActiveWorkbook();
109
111
  * const snapshot = fWorkbook.save();
110
112
  * const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
113
+ * // or with server-side calculation enabled
114
+ * // const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });
111
115
  *
112
116
  * // Download the file
113
117
  * downloadFile(file, 'univer', 'xlsx');
@@ -223,6 +227,7 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
223
227
  /**
224
228
  * Export XLSX file by unit id
225
229
  * @param unitId
230
+ * @param options
226
231
  */
227
232
  exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
228
233
  /**
@@ -233,6 +238,7 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
233
238
  /**
234
239
  * Export XLSX file by workbook data
235
240
  * @param snapshot
241
+ * @param options
236
242
  */
237
243
  exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
238
244
  /**
@@ -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;
@@ -2,6 +2,7 @@ import { IDisposable, IDocumentData, IWorkbookData, Disposable, IConfigService }
2
2
  import { IError, UniverType } from '@univerjs/protocol';
3
3
  import { Observable } from 'rxjs';
4
4
  import { RequestService } from './request.service';
5
+ import { HTTPService } from '@univerjs/network';
5
6
  export declare enum RequestState {
6
7
  UPLOAD = 0,
7
8
  IMPORT = 1,
@@ -29,7 +30,7 @@ export interface IExchangeService {
29
30
  exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
30
31
  /**
31
32
  * Export XLSX file by workbook data
32
- * @param data
33
+ * @param snapshot
33
34
  * @returns
34
35
  */
35
36
  exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
@@ -59,10 +60,11 @@ export interface IExchangeService {
59
60
  export declare const IExchangeService: import('@wendellhu/redi').IdentifierDecorator<IExchangeService>;
60
61
  export declare class ExchangeService extends Disposable implements IExchangeService, IDisposable {
61
62
  private readonly _configService;
63
+ private readonly _httpService;
62
64
  private readonly _requestService;
63
65
  private readonly _requestState$;
64
66
  readonly requestState$: Observable<IRequestState>;
65
- constructor(_configService: IConfigService, _requestService: RequestService);
67
+ constructor(_configService: IConfigService, _httpService: HTTPService, _requestService: RequestService);
66
68
  dispose(): void;
67
69
  importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
68
70
  exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
@@ -86,4 +88,5 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
86
88
  private _getDownloadEndpointURL;
87
89
  private _getMinSheetRowCount;
88
90
  private _getMinSheetColumnCount;
91
+ private _getEnableServerSideComputing;
89
92
  }
@@ -95,7 +95,7 @@ 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>;
98
+ exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
99
99
  exportXLSXBySnapshot(): Promise<void>;
100
100
  registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
101
101
  private _importFileToUnitId;
@@ -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;
@@ -1,3 +1,4 @@
1
+ import { HTTPService } from '@univerjs/network';
1
2
  import { UniverType } from '@univerjs/protocol';
2
3
  export declare function downloadFileByURL(url: string, filename: string, fileExt: string): void;
3
4
  /**
@@ -13,9 +14,9 @@ export declare function downloadFile(file: File | Blob, filename: string, fileEx
13
14
  */
14
15
  export declare function getUniverTypeByFile(file: File): UniverType.UNIVER_UNKNOWN;
15
16
  export declare function getUploadFile(types: UniverType[], multiple?: boolean): Promise<FileList | null>;
16
- export declare function getFileByURL(url: string): Promise<File | undefined>;
17
+ export declare function getFileByURL(url: string, httpService: HTTPService): Promise<File | undefined>;
17
18
  export declare function getFileNameFromURL(url: string): string | undefined;
18
- export declare function getTextFromURL(url: string): Promise<string | undefined>;
19
+ export declare function getTextFromURL(url: string, httpService: HTTPService): Promise<string | undefined>;
19
20
  export declare function blobToString(blob: Blob): Promise<string>;
20
21
  export declare function bufferToFile(buffer: Uint8Array): File;
21
22
  export declare function replaceType(path: string, type: string): string;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x19ad(_0xfd83bf,_0x113a0f){const _0x53837f=_0x5383();return _0x19ad=function(_0x19adf8,_0x1a63ab){_0x19adf8=_0x19adf8-0xc0;let _0x29c169=_0x53837f[_0x19adf8];return _0x29c169;},_0x19ad(_0xfd83bf,_0x113a0f);}(function(_0x20244b,_0x3e3e64){const _0x37613f=_0x19ad,_0x44043d=_0x20244b();while(!![]){try{const _0x56aa26=-parseInt(_0x37613f(0xe4))/0x1*(parseInt(_0x37613f(0xd2))/0x2)+-parseInt(_0x37613f(0xd9))/0x3+-parseInt(_0x37613f(0xc3))/0x4+-parseInt(_0x37613f(0xc6))/0x5+parseInt(_0x37613f(0xc8))/0x6*(parseInt(_0x37613f(0xcd))/0x7)+parseInt(_0x37613f(0xd6))/0x8*(-parseInt(_0x37613f(0xde))/0x9)+parseInt(_0x37613f(0xdc))/0xa;if(_0x56aa26===_0x3e3e64)break;else _0x44043d['push'](_0x44043d['shift']());}catch(_0x4c4352){_0x44043d['push'](_0x44043d['shift']());}}}(_0x5383,0x2af96),function(_0x5bef05,_0x33d342){const _0x355c78=_0x19ad;typeof exports=='object'&&typeof module<'u'?_0x33d342(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0x355c78(0xd1),'@univerjs/core/facade'],_0x33d342):(_0x5bef05=typeof globalThis<'u'?globalThis:_0x5bef05||self,_0x33d342(_0x5bef05[_0x355c78(0xe1)],_0x5bef05[_0x355c78(0xc9)]));}(this,function(_0x3e434e,_0x25dcf3){'use strict';const _0x26cc09=_0x19ad;var _0x30362d=(_0x38bc69=>(_0x38bc69[_0x38bc69['UNIVER_UNKNOWN']=0x0]=_0x26cc09(0xce),_0x38bc69[_0x38bc69[_0x26cc09(0xd0)]=0x1]='UNIVER_DOC',_0x38bc69[_0x38bc69[_0x26cc09(0xd4)]=0x2]=_0x26cc09(0xd4),_0x38bc69[_0x38bc69['UNIVER_SLIDE']=0x3]=_0x26cc09(0xc4),_0x38bc69[_0x38bc69[_0x26cc09(0xcc)]=0x4]=_0x26cc09(0xcc),_0x38bc69[_0x38bc69[_0x26cc09(0xd5)]=-0x1]=_0x26cc09(0xd5),_0x38bc69))(_0x30362d||{});class _0x84c9fd extends _0x25dcf3[_0x26cc09(0xc5)]{async[_0x26cc09(0xc2)](_0x12d84c){const _0x570381=_0x26cc09;return this[_0x570381(0xe3)](_0x12d84c);}async[_0x26cc09(0xe3)](_0x50890f){const _0x503f05=_0x26cc09,_0x41f066=this['_injector'][_0x503f05(0xd7)](_0x3e434e[_0x503f05(0xcf)]);if(!_0x41f066)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x41f066[_0x503f05(0xd8)](_0x50890f,_0x30362d[_0x503f05(0xd4)]);}async['importXLSXToSnapshot'](_0x11b743){const _0xd158b9=_0x26cc09;return this[_0xd158b9(0xda)](_0x11b743);}async['importXLSXToSnapshotAsync'](_0x482665){const _0x5b68de=_0x26cc09,_0x4c432a=this[_0x5b68de(0xc7)]['get'](_0x3e434e['IExchangeService']);if(!_0x4c432a)throw new Error(_0x5b68de(0xcb));return _0x4c432a['importXLSXToSnapshot'](_0x482665);}async[_0x26cc09(0xe2)](_0x3802c0){const _0x4a2029=_0x26cc09;return this[_0x4a2029(0xca)](_0x3802c0);}async['exportXLSXByUnitIdAsync'](_0x449e46){const _0x5c0c8c=_0x26cc09,_0x115129=this[_0x5c0c8c(0xc7)]['get'](_0x3e434e['IExchangeService']);if(!_0x115129)throw new Error(_0x5c0c8c(0xcb));return _0x115129[_0x5c0c8c(0xe2)](_0x449e46);}async[_0x26cc09(0xe5)](_0x5098d9){return this['exportXLSXBySnapshotAsync'](_0x5098d9);}async[_0x26cc09(0xdb)](_0x3d4eb5){const _0x331732=_0x26cc09,_0x2480f5=this[_0x331732(0xc7)][_0x331732(0xd7)](_0x3e434e['IExchangeService']);if(!_0x2480f5)throw new Error(_0x331732(0xcb));return _0x2480f5[_0x331732(0xe5)](_0x3d4eb5);}async['importDOCXToUnitId'](_0x419681){const _0x548886=_0x26cc09;return this[_0x548886(0xc0)](_0x419681);}async[_0x26cc09(0xc0)](_0x3cc17e){const _0x2c0417=_0x26cc09,_0x3a1c70=this['_injector']['get'](_0x3e434e[_0x2c0417(0xcf)]);if(!_0x3a1c70)throw new Error(_0x2c0417(0xcb));return _0x3a1c70[_0x2c0417(0xd8)](_0x3cc17e,_0x30362d[_0x2c0417(0xd0)]);}async[_0x26cc09(0xe0)](_0x431091){const _0x4c1598=_0x26cc09;return this[_0x4c1598(0xdd)](_0x431091);}async[_0x26cc09(0xdd)](_0x2b595d){const _0x39104b=_0x26cc09,_0x4584cf=this[_0x39104b(0xc7)][_0x39104b(0xd7)](_0x3e434e['IExchangeService']);if(!_0x4584cf)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4584cf['importDOCXToSnapshot'](_0x2b595d);}async[_0x26cc09(0xc1)](_0x18956a){const _0x255da5=_0x26cc09,_0x42f2bf=this[_0x255da5(0xc7)][_0x255da5(0xd7)](_0x3e434e[_0x255da5(0xcf)]);if(!_0x42f2bf)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x42f2bf[_0x255da5(0xd3)](_0x18956a);}async[_0x26cc09(0xdf)](_0x5931d2){const _0x595535=_0x26cc09,_0x1227c0=this[_0x595535(0xc7)]['get'](_0x3e434e['IExchangeService']);if(!_0x1227c0)throw new Error(_0x595535(0xcb));return _0x1227c0['exportDOCXByUnitId'](_0x5931d2);}}_0x25dcf3[_0x26cc09(0xc5)]['extend'](_0x84c9fd);}));function _0x5383(){const _0x49769e=['get','importFileToUnitId','842391IjGQWC','importXLSXToSnapshotAsync','exportXLSXBySnapshotAsync','8834840sazOWr','importDOCXToSnapshotAsync','61344JVZmHA','exportDOCXByUnitIdAsync','importDOCXToSnapshot','UniverProExchangeClient','exportXLSXByUnitId','importXLSXToUnitIdAsync','85yULHCt','exportXLSXBySnapshot','importDOCXToUnitIdAsync','exportDOCXBySnapshotAsync','importXLSXToUnitId','1141540OcazcN','UNIVER_SLIDE','FUniver','635400fzDGjY','_injector','6aLUrwV','UniverCoreFacade','exportXLSXByUnitIdAsync','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_PROJECT','1438577FwtaAq','UNIVER_UNKNOWN','IExchangeService','UNIVER_DOC','@univerjs-pro/exchange-client','198UsVyqL','exportDOCXBySnapshot','UNIVER_SHEET','UNRECOGNIZED','248ZjDpVC'];_0x5383=function(){return _0x49769e;};return _0x5383();}
1
+ function _0x21c6(_0x373f6b,_0x59300e){const _0xa3f3b2=_0xa3f3();return _0x21c6=function(_0x21c674,_0x3915ca){_0x21c674=_0x21c674-0x1b4;let _0x1d9ab8=_0xa3f3b2[_0x21c674];return _0x1d9ab8;},_0x21c6(_0x373f6b,_0x59300e);}(function(_0x179d4e,_0x456abd){const _0x34eb73=_0x21c6,_0x4d272c=_0x179d4e();while(!![]){try{const _0x261ac8=parseInt(_0x34eb73(0x1b6))/0x1+parseInt(_0x34eb73(0x1c6))/0x2+-parseInt(_0x34eb73(0x1c8))/0x3*(parseInt(_0x34eb73(0x1c9))/0x4)+parseInt(_0x34eb73(0x1bf))/0x5*(parseInt(_0x34eb73(0x1bd))/0x6)+-parseInt(_0x34eb73(0x1d8))/0x7*(parseInt(_0x34eb73(0x1cc))/0x8)+parseInt(_0x34eb73(0x1c3))/0x9+-parseInt(_0x34eb73(0x1d9))/0xa*(parseInt(_0x34eb73(0x1cf))/0xb);if(_0x261ac8===_0x456abd)break;else _0x4d272c['push'](_0x4d272c['shift']());}catch(_0x283321){_0x4d272c['push'](_0x4d272c['shift']());}}}(_0xa3f3,0xe646b),function(_0xef820f,_0xf53bd2){const _0x1c9044=_0x21c6;typeof exports=='object'&&typeof module<'u'?_0xf53bd2(require(_0x1c9044(0x1ca)),require(_0x1c9044(0x1b9))):typeof define==_0x1c9044(0x1d3)&&define['amd']?define(['@univerjs-pro/exchange-client',_0x1c9044(0x1b9)],_0xf53bd2):(_0xef820f=typeof globalThis<'u'?globalThis:_0xef820f||self,_0xf53bd2(_0xef820f[_0x1c9044(0x1c5)],_0xef820f[_0x1c9044(0x1b8)]));}(this,function(_0xa8443a,_0x5f58b7){'use strict';const _0x12ab5d=_0x21c6;var _0x28096f=(_0x1a0a23=>(_0x1a0a23[_0x1a0a23[_0x12ab5d(0x1d1)]=0x0]=_0x12ab5d(0x1d1),_0x1a0a23[_0x1a0a23[_0x12ab5d(0x1da)]=0x1]=_0x12ab5d(0x1da),_0x1a0a23[_0x1a0a23[_0x12ab5d(0x1d7)]=0x2]=_0x12ab5d(0x1d7),_0x1a0a23[_0x1a0a23[_0x12ab5d(0x1b7)]=0x3]=_0x12ab5d(0x1b7),_0x1a0a23[_0x1a0a23['UNIVER_PROJECT']=0x4]=_0x12ab5d(0x1b5),_0x1a0a23[_0x1a0a23[_0x12ab5d(0x1b4)]=-0x1]=_0x12ab5d(0x1b4),_0x1a0a23))(_0x28096f||{});class _0x8fbfc6 extends _0x5f58b7['FUniver']{async['importXLSXToUnitId'](_0x1efaf1){const _0x318695=_0x12ab5d;return this[_0x318695(0x1db)](_0x1efaf1);}async[_0x12ab5d(0x1db)](_0x940ac0){const _0x3a8f0c=_0x12ab5d,_0x5f594c=this['_injector']['get'](_0xa8443a[_0x3a8f0c(0x1d0)]);if(!_0x5f594c)throw new Error(_0x3a8f0c(0x1c7));return _0x5f594c[_0x3a8f0c(0x1bb)](_0x940ac0,_0x28096f['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x3447dc){const _0x1453da=_0x12ab5d;return this[_0x1453da(0x1c4)](_0x3447dc);}async['importXLSXToSnapshotAsync'](_0x14708e){const _0x3347dd=_0x12ab5d,_0xb69a9d=this[_0x3347dd(0x1ba)][_0x3347dd(0x1cd)](_0xa8443a[_0x3347dd(0x1d0)]);if(!_0xb69a9d)throw new Error(_0x3347dd(0x1c7));return _0xb69a9d['importXLSXToSnapshot'](_0x14708e);}async[_0x12ab5d(0x1ce)](_0x29b9c2){const _0x449190=_0x12ab5d;return this[_0x449190(0x1be)](_0x29b9c2);}async['exportXLSXByUnitIdAsync'](_0x36e723){const _0x44967d=_0x12ab5d,_0x3cc61d=this[_0x44967d(0x1ba)][_0x44967d(0x1cd)](_0xa8443a[_0x44967d(0x1d0)]);if(!_0x3cc61d)throw new Error(_0x44967d(0x1c7));return _0x3cc61d[_0x44967d(0x1ce)](_0x36e723);}async[_0x12ab5d(0x1bc)](_0x3c3bf3){const _0x216f7a=_0x12ab5d;return this[_0x216f7a(0x1cb)](_0x3c3bf3);}async[_0x12ab5d(0x1cb)](_0x1edf9a){const _0x20eba7=_0x12ab5d,_0x124ef9=this[_0x20eba7(0x1ba)][_0x20eba7(0x1cd)](_0xa8443a[_0x20eba7(0x1d0)]);if(!_0x124ef9)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x124ef9[_0x20eba7(0x1bc)](_0x1edf9a);}async[_0x12ab5d(0x1c2)](_0x2eb587){return this['importDOCXToUnitIdAsync'](_0x2eb587);}async['importDOCXToUnitIdAsync'](_0x45c38e){const _0xb91920=_0x12ab5d,_0x5f26f3=this[_0xb91920(0x1ba)][_0xb91920(0x1cd)](_0xa8443a[_0xb91920(0x1d0)]);if(!_0x5f26f3)throw new Error(_0xb91920(0x1c7));return _0x5f26f3[_0xb91920(0x1bb)](_0x45c38e,_0x28096f['UNIVER_DOC']);}async[_0x12ab5d(0x1c0)](_0x1cb8e8){return this['importDOCXToSnapshotAsync'](_0x1cb8e8);}async[_0x12ab5d(0x1d5)](_0x5a2a4a){const _0x399b7a=_0x12ab5d,_0x1905a0=this[_0x399b7a(0x1ba)]['get'](_0xa8443a['IExchangeService']);if(!_0x1905a0)throw new Error(_0x399b7a(0x1c7));return _0x1905a0[_0x399b7a(0x1c0)](_0x5a2a4a);}async['exportDOCXBySnapshotAsync'](_0x5b0b9a){const _0x3cc835=_0x12ab5d,_0x18c6af=this[_0x3cc835(0x1ba)][_0x3cc835(0x1cd)](_0xa8443a[_0x3cc835(0x1d0)]);if(!_0x18c6af)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x18c6af[_0x3cc835(0x1d6)](_0x5b0b9a);}async['exportDOCXByUnitIdAsync'](_0x4b6eeb){const _0x50c7b1=_0x12ab5d,_0x4bab6b=this['_injector']['get'](_0xa8443a[_0x50c7b1(0x1d0)]);if(!_0x4bab6b)throw new Error(_0x50c7b1(0x1c7));return _0x4bab6b[_0x50c7b1(0x1d4)](_0x4b6eeb);}}_0x5f58b7[_0x12ab5d(0x1d2)][_0x12ab5d(0x1c1)](_0x8fbfc6);}));function _0xa3f3(){const _0x3001c0=['579070aZyQkI','UNIVER_DOC','importXLSXToUnitIdAsync','UNRECOGNIZED','UNIVER_PROJECT','1803282tfvyFs','UNIVER_SLIDE','UniverCoreFacade','@univerjs/core/facade','_injector','importFileToUnitId','exportXLSXBySnapshot','606rdRuJC','exportXLSXByUnitIdAsync','71140qSrcds','importDOCXToSnapshot','extend','importDOCXToUnitId','347895EhWKxA','importXLSXToSnapshotAsync','UniverProExchangeClient','2736610vGWdvI','The\x20exchange\x20service\x20is\x20not\x20available','3jHhFMm','2713340OrHpaP','@univerjs-pro/exchange-client','exportXLSXBySnapshotAsync','1505656heOIgE','get','exportXLSXByUnitId','253DrpFLL','IExchangeService','UNIVER_UNKNOWN','FUniver','function','exportDOCXByUnitId','importDOCXToSnapshotAsync','exportDOCXBySnapshot','UNIVER_SHEET','63lDNoGq'];_0xa3f3=function(){return _0x3001c0;};return _0xa3f3();}