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

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 +10 -10
@@ -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
+ function _0xe46a(_0xf865b9,_0x23e458){const _0x1a03ff=_0x1a03();return _0xe46a=function(_0xe46a31,_0x7f2f1c){_0xe46a31=_0xe46a31-0x1c5;let _0x7cd524=_0x1a03ff[_0xe46a31];return _0x7cd524;},_0xe46a(_0xf865b9,_0x23e458);}const _0x582126=_0xe46a;(function(_0x259b33,_0x3ed35e){const _0x260f0e=_0xe46a,_0x3f11f9=_0x259b33();while(!![]){try{const _0x158a68=parseInt(_0x260f0e(0x1d6))/0x1*(-parseInt(_0x260f0e(0x1d3))/0x2)+parseInt(_0x260f0e(0x1cd))/0x3*(parseInt(_0x260f0e(0x1d1))/0x4)+parseInt(_0x260f0e(0x1d5))/0x5*(parseInt(_0x260f0e(0x1dc))/0x6)+parseInt(_0x260f0e(0x1c9))/0x7+parseInt(_0x260f0e(0x1d0))/0x8+-parseInt(_0x260f0e(0x1d9))/0x9+parseInt(_0x260f0e(0x1cf))/0xa*(parseInt(_0x260f0e(0x1db))/0xb);if(_0x158a68===_0x3ed35e)break;else _0x3f11f9['push'](_0x3f11f9['shift']());}catch(_0x267c12){_0x3f11f9['push'](_0x3f11f9['shift']());}}}(_0x1a03,0x3d918));const e={'exchange':{'file':_0x582126(0x1da),'upload':_0x582126(0x1c6),'download':'Save\x20As','downloadWPS':_0x582126(0x1cb),'uploading':_0x582126(0x1c5),'uploadSuccess':_0x582126(0x1c7),'uploadSuccessTip':_0x582126(0x1ca),'downloading':_0x582126(0x1c8),'downloadSuccess':_0x582126(0x1d4),'unknownMistake':_0x582126(0x1d2),'networkError':_0x582126(0x1de),'tooLarge':_0x582126(0x1cc),'internalError':_0x582126(0x1dd),'interrupt':_0x582126(0x1d7),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x582126(0x1d8),'cancel':'Cancel','uploadAgain':_0x582126(0x1ce)}};function _0x1a03(){const _0xf9ae11=['Internal\x20unknown\x20error','Network\x20error','Uploading','Open(File)','File\x20uploaded\x20successfully','Downloading','108486fjFvFM','{0}\x20file(s)\x20uploaded\x20successfully','Save\x20As\x20WPS','Data\x20is\x20too\x20large','586779BNmCoi','Upload\x20again','5580JuBoff','402744NgPRBM','4sRpVJv','Unknown\x20mistake','95416YyUioO','Download\x20success','15BKgTPd','8CFEqXa','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Please\x20wait...','3501495AoiYRp','File','5170AKziSL','998418qXJVdM'];_0x1a03=function(){return _0xf9ae11;};return _0x1a03();}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
+ function _0x1911(_0x5ea01e,_0x4561b9){const _0x4fb205=_0x4fb2();return _0x1911=function(_0x1911a2,_0x22233c){_0x1911a2=_0x1911a2-0x96;let _0x3eb266=_0x4fb205[_0x1911a2];return _0x3eb266;},_0x1911(_0x5ea01e,_0x4561b9);}const _0x2d831a=_0x1911;(function(_0x23dfc4,_0x96e54){const _0xc5a62c=_0x1911,_0x320ff6=_0x23dfc4();while(!![]){try{const _0x2fd433=parseInt(_0xc5a62c(0xab))/0x1+-parseInt(_0xc5a62c(0xa3))/0x2+parseInt(_0xc5a62c(0xa4))/0x3+parseInt(_0xc5a62c(0xa2))/0x4+parseInt(_0xc5a62c(0xa5))/0x5+-parseInt(_0xc5a62c(0xaa))/0x6+parseInt(_0xc5a62c(0x9d))/0x7;if(_0x2fd433===_0x96e54)break;else _0x320ff6['push'](_0x320ff6['shift']());}catch(_0x56df8){_0x320ff6['push'](_0x320ff6['shift']());}}}(_0x4fb2,0x8b4cb));const o={'exchange':{'file':'فایل','upload':_0x2d831a(0xa1),'download':_0x2d831a(0x9c),'downloadWPS':'ذخیره\x20به\x20عنوان\x20WPS','uploading':_0x2d831a(0xa7),'uploadSuccess':_0x2d831a(0x96),'uploadSuccessTip':_0x2d831a(0x9a),'downloading':_0x2d831a(0xa0),'downloadSuccess':_0x2d831a(0xa6),'unknownMistake':_0x2d831a(0xa8),'networkError':_0x2d831a(0x9b),'tooLarge':_0x2d831a(0x98),'internalError':_0x2d831a(0x9f),'interrupt':_0x2d831a(0x99),'fileTypeError':_0x2d831a(0x97),'wait':_0x2d831a(0xa9),'cancel':_0x2d831a(0x9e),'uploadAgain':'بارگذاری\x20مجدد'}};function _0x4fb2(){const _0x1827e3=['7242655JiDFXv','لغو','خطای\x20داخلی\x20ناشناخته','در\x20حال\x20دانلود','بازکردن(فایل)','2388192TnImxr','1403730aFfMDB','853398gUBuIP','676510ZVqSrh','دانلود\x20موفقیت\x20آمیز','در\x20حال\x20بارگذاری','خطای\x20ناشناخته','لطفا\x20صبر\x20کنید...','5869314LtIVYC','199174nmpDuj','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','داده\x20خیلی\x20بزرگ\x20است','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20شبکه','ذخیره\x20به\x20عنوان'];_0x4fb2=function(){return _0x1827e3;};return _0x4fb2();}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 _0x1210af=_0x1e90;(function(_0x56ed35,_0x527fc7){const _0x3a17e0=_0x1e90,_0x2585c8=_0x56ed35();while(!![]){try{const _0x323811=-parseInt(_0x3a17e0(0xb2))/0x1*(parseInt(_0x3a17e0(0xaf))/0x2)+parseInt(_0x3a17e0(0xac))/0x3+parseInt(_0x3a17e0(0xb3))/0x4*(parseInt(_0x3a17e0(0xb4))/0x5)+-parseInt(_0x3a17e0(0xb0))/0x6+parseInt(_0x3a17e0(0xae))/0x7*(-parseInt(_0x3a17e0(0xbc))/0x8)+-parseInt(_0x3a17e0(0xa8))/0x9+parseInt(_0x3a17e0(0xb9))/0xa;if(_0x323811===_0x527fc7)break;else _0x2585c8['push'](_0x2585c8['shift']());}catch(_0x76304){_0x2585c8['push'](_0x2585c8['shift']());}}}(_0xda87,0x1d794));function _0x1e90(_0x52945c,_0x303f29){const _0xda8789=_0xda87();return _0x1e90=function(_0x1e9006,_0x2e0a0e){_0x1e9006=_0x1e9006-0xa6;let _0x1a0490=_0xda8789[_0x1e9006];return _0x1a0490;},_0x1e90(_0x52945c,_0x303f29);}const e={'exchange':{'file':'Fichier','upload':'Ouvrir\x20(Fichier)','download':_0x1210af(0xaa),'downloadWPS':'Enregistrer\x20sous\x20WPS','uploading':_0x1210af(0xbb),'uploadSuccess':_0x1210af(0xb8),'uploadSuccessTip':_0x1210af(0xab),'downloading':_0x1210af(0xb6),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x1210af(0xad),'networkError':_0x1210af(0xb1),'tooLarge':_0x1210af(0xa6),'internalError':_0x1210af(0xb7),'interrupt':_0x1210af(0xa9),'fileTypeError':_0x1210af(0xba),'wait':'Veuillez\x20patienter...','cancel':_0x1210af(0xb5),'uploadAgain':_0x1210af(0xa7)}};function _0xda87(){const _0x146dee=['3192590iJSCKk','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Téléchargement\x20en\x20cours','376enIvbQ','Les\x20données\x20sont\x20trop\x20volumineuses','Télécharger\x20à\x20nouveau','735930xPepaR','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Enregistrer\x20sous','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','620490kEsUCy','Erreur\x20inconnue','3143sltOlG','17058VNmEDA','1424718SSPLxQ','Erreur\x20réseau','25CZOpzr','592744OHLJoL','5SKUlsv','Annuler','Téléchargement','Erreur\x20interne\x20inconnue','Fichier\x20téléchargé\x20avec\x20succès'];_0xda87=function(){return _0x146dee;};return _0xda87();}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
+ const _0x488076=_0xb27a;(function(_0x15600c,_0x58d6af){const _0x1d5f85=_0xb27a,_0x505a15=_0x15600c();while(!![]){try{const _0x5e8ac3=-parseInt(_0x1d5f85(0x17b))/0x1+parseInt(_0x1d5f85(0x17f))/0x2*(parseInt(_0x1d5f85(0x17e))/0x3)+parseInt(_0x1d5f85(0x17d))/0x4*(-parseInt(_0x1d5f85(0x181))/0x5)+parseInt(_0x1d5f85(0x18a))/0x6*(-parseInt(_0x1d5f85(0x183))/0x7)+parseInt(_0x1d5f85(0x177))/0x8+parseInt(_0x1d5f85(0x17a))/0x9*(-parseInt(_0x1d5f85(0x182))/0xa)+parseInt(_0x1d5f85(0x180))/0xb;if(_0x5e8ac3===_0x58d6af)break;else _0x505a15['push'](_0x505a15['shift']());}catch(_0x13352d){_0x505a15['push'](_0x505a15['shift']());}}}(_0x265b,0x8a496));function _0xb27a(_0x3f9f07,_0x2de0ba){const _0x265b58=_0x265b();return _0xb27a=function(_0xb27a89,_0x4b57ae){_0xb27a89=_0xb27a89-0x175;let _0x726fae=_0x265b58[_0xb27a89];return _0x726fae;},_0xb27a(_0x3f9f07,_0x2de0ba);}const o={'exchange':{'file':_0x488076(0x189),'upload':_0x488076(0x186),'download':_0x488076(0x185),'downloadWPS':_0x488076(0x179),'uploading':_0x488076(0x176),'uploadSuccess':_0x488076(0x187),'uploadSuccessTip':_0x488076(0x188),'downloading':'Скачивание','downloadSuccess':_0x488076(0x18d),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x488076(0x184),'tooLarge':_0x488076(0x18c),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x488076(0x18b),'fileTypeError':_0x488076(0x17c),'wait':'Пожалуйста,\x20подождите...','cancel':_0x488076(0x178),'uploadAgain':_0x488076(0x175)}};function _0x265b(){const _0x17679c=['Файл\x20успешно\x20загружен','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Файл','24294MjoHfo','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Данные\x20слишком\x20большие','Скачивание\x20успешно','Загрузить\x20снова','Загрузка','8381760bsRQOQ','Отмена','Сохранить\x20как\x20WPS','3868731ODKrXF','767794zCaLow','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','1781588ROpEHt','27291EbMSHn','238KTKRgO','6126901ccDEkn','5dCfyQv','10vEpASH','826VdnXkM','Сетевая\x20ошибка','Сохранить\x20как','Открыть(Файл)'];_0x265b=function(){return _0x17679c;};return _0x265b();}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 _0x5a7706=_0x1c48;function _0x1c48(_0x1a4af1,_0x41fd93){const _0x544ec2=_0x544e();return _0x1c48=function(_0x1c4840,_0x9433d1){_0x1c4840=_0x1c4840-0x128;let _0x102f41=_0x544ec2[_0x1c4840];return _0x102f41;},_0x1c48(_0x1a4af1,_0x41fd93);}(function(_0x4bee98,_0x52203d){const _0x386a85=_0x1c48,_0x19e9f6=_0x4bee98();while(!![]){try{const _0xa6ffcf=parseInt(_0x386a85(0x12a))/0x1*(parseInt(_0x386a85(0x130))/0x2)+parseInt(_0x386a85(0x12d))/0x3+-parseInt(_0x386a85(0x12e))/0x4+-parseInt(_0x386a85(0x136))/0x5*(-parseInt(_0x386a85(0x129))/0x6)+-parseInt(_0x386a85(0x132))/0x7*(parseInt(_0x386a85(0x12f))/0x8)+parseInt(_0x386a85(0x13f))/0x9*(parseInt(_0x386a85(0x134))/0xa)+parseInt(_0x386a85(0x12b))/0xb*(-parseInt(_0x386a85(0x131))/0xc);if(_0xa6ffcf===_0x52203d)break;else _0x19e9f6['push'](_0x19e9f6['shift']());}catch(_0x41a1a7){_0x19e9f6['push'](_0x19e9f6['shift']());}}}(_0x544e,0x3a674));function _0x544e(){const _0x584d57=['168lzCKPo','7pJDhux','Lưu\x20dưới\x20dạng\x20WPS','2112970XmozgR','Lỗi\x20mạng','5yGnKHQ','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Mở\x20(Tệp)','Đang\x20tải\x20lên','Lỗi\x20không\x20xác\x20định','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Hủy\x20bỏ','9DCtroD','Tải\x20lên\x20tệp\x20thành\x20công','Đang\x20tải\x20xuống','Tải\x20xuống\x20thành\x20công','19692EZZBxo','155ViLcsR','52151fBwuGu','Vui\x20lòng\x20đợi...','1013472pgvYnN','289952iktgEI','2196848rakAUS','1294GbPgqz'];_0x544e=function(){return _0x584d57;};return _0x544e();}const n={'exchange':{'file':'Tệp','upload':_0x5a7706(0x13a),'download':'Lưu\x20dưới\x20dạng','downloadWPS':_0x5a7706(0x133),'uploading':_0x5a7706(0x13b),'uploadSuccess':_0x5a7706(0x140),'uploadSuccessTip':_0x5a7706(0x139),'downloading':_0x5a7706(0x141),'downloadSuccess':_0x5a7706(0x128),'unknownMistake':_0x5a7706(0x13c),'networkError':_0x5a7706(0x135),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x5a7706(0x13d),'interrupt':_0x5a7706(0x138),'fileTypeError':_0x5a7706(0x137),'wait':_0x5a7706(0x12c),'cancel':_0x5a7706(0x13e),'uploadAgain':'Tải\x20lên\x20lại'}};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 _0x2715(_0x4e772d,_0x1c9114){const _0x293bce=_0x293b();return _0x2715=function(_0x2715e4,_0x398aa6){_0x2715e4=_0x2715e4-0xc6;let _0x2d25ae=_0x293bce[_0x2715e4];return _0x2d25ae;},_0x2715(_0x4e772d,_0x1c9114);}const _0x44228b=_0x2715;(function(_0x5e7e5b,_0x2526f5){const _0x34e28b=_0x2715,_0x5ac979=_0x5e7e5b();while(!![]){try{const _0x423eb3=-parseInt(_0x34e28b(0xd6))/0x1*(parseInt(_0x34e28b(0xd7))/0x2)+-parseInt(_0x34e28b(0xdd))/0x3+parseInt(_0x34e28b(0xc9))/0x4*(-parseInt(_0x34e28b(0xd5))/0x5)+parseInt(_0x34e28b(0xcc))/0x6*(-parseInt(_0x34e28b(0xdc))/0x7)+parseInt(_0x34e28b(0xc8))/0x8*(-parseInt(_0x34e28b(0xdb))/0x9)+-parseInt(_0x34e28b(0xd2))/0xa+-parseInt(_0x34e28b(0xd1))/0xb*(-parseInt(_0x34e28b(0xd9))/0xc);if(_0x423eb3===_0x2526f5)break;else _0x5ac979['push'](_0x5ac979['shift']());}catch(_0x566f69){_0x5ac979['push'](_0x5ac979['shift']());}}}(_0x293b,0xea9fc));const o={'exchange':{'file':'文件','upload':_0x44228b(0xc7),'download':_0x44228b(0xd8),'downloadWPS':'另存为\x20WPS','uploading':_0x44228b(0xc6),'uploadSuccess':_0x44228b(0xce),'uploadSuccessTip':_0x44228b(0xd0),'downloading':_0x44228b(0xd3),'downloadSuccess':_0x44228b(0xcf),'unknownMistake':_0x44228b(0xd4),'networkError':'网络异常','tooLarge':'数据流过大','internalError':_0x44228b(0xca),'interrupt':_0x44228b(0xcb),'fileTypeError':_0x44228b(0xda),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x44228b(0xcd)}};export{o as default};function _0x293b(){const _0x25ee2a=['159939rfMtMZ','560ZxTqoo','2823036JIftXy','上传中','打开(文件)','208ZchdSt','2728LTaRcw','内部未知错误','网络连接中断,文件上传失败','21834NiiCuL','再次上传','文件上传成功','下载成功','{0}个文件上传成功','75663027ZONXMo','18656750gdSqcI','下载中','未知错误','10265fvBFVM','11133ZpFtTG','172NYDRlQ','另存为','12VBYNHx','所选文件\x20[{0}]\x20不支持上传'];_0x293b=function(){return _0x25ee2a;};return _0x293b();}
@@ -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 _0x15765c=_0x2390;function _0x2390(_0x3c4130,_0x5950c3){const _0xd4cd1b=_0xd4cd();return _0x2390=function(_0x239072,_0x26a1d0){_0x239072=_0x239072-0x133;let _0x39f48c=_0xd4cd1b[_0x239072];return _0x39f48c;},_0x2390(_0x3c4130,_0x5950c3);}(function(_0x3a4084,_0x1fae4b){const _0x468074=_0x2390,_0x494111=_0x3a4084();while(!![]){try{const _0x49a4b4=-parseInt(_0x468074(0x148))/0x1+-parseInt(_0x468074(0x13a))/0x2+parseInt(_0x468074(0x144))/0x3+-parseInt(_0x468074(0x134))/0x4+-parseInt(_0x468074(0x140))/0x5*(-parseInt(_0x468074(0x137))/0x6)+parseInt(_0x468074(0x133))/0x7*(-parseInt(_0x468074(0x146))/0x8)+parseInt(_0x468074(0x139))/0x9;if(_0x49a4b4===_0x1fae4b)break;else _0x494111['push'](_0x494111['shift']());}catch(_0x45282d){_0x494111['push'](_0x494111['shift']());}}}(_0xd4cd,0xdbe7d));const o={'exchange':{'file':'檔案','upload':_0x15765c(0x142),'download':'另存為','downloadWPS':_0x15765c(0x135),'uploading':_0x15765c(0x13d),'uploadSuccess':_0x15765c(0x138),'uploadSuccessTip':_0x15765c(0x13f),'downloading':_0x15765c(0x147),'downloadSuccess':'下載成功','unknownMistake':_0x15765c(0x13b),'networkError':'網路異常','tooLarge':_0x15765c(0x141),'internalError':_0x15765c(0x13e),'interrupt':_0x15765c(0x143),'fileTypeError':_0x15765c(0x136),'wait':_0x15765c(0x145),'cancel':'取消','uploadAgain':_0x15765c(0x13c)}};function _0xd4cd(){const _0x3a025c=['5QBAoBK','資料流過大','開啟(檔案)','網路連線中斷,檔案上傳失敗','1668615IWhzNG','請稍等...','2192MwMMCf','下載中','1558530LZEKzv','43561DrMcLm','4825956bOZWLY','另存為\x20WPS','所選檔案\x20[{0}]\x20不支援上傳','3412182VvSkrk','檔案上傳成功','42729003OXbEKf','1003430QwvPHU','未知錯誤','再次上傳','上傳中','內部未知錯誤','{0}個檔案上傳成功'];_0xd4cd=function(){return _0x3a025c;};return _0xd4cd();}export{o as default};
@@ -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 _0x2015(){const _0x5bdc6a=['30494nhpIeN','UNIVER_SHEET','exportXLSXBySnapshot','importDOCXToUnitIdAsync','function','amd','importXLSXToUnitId','importFileToUnitId','2845367QBcEXK','@univerjs/core/facade','8uXsqoS','1294970vXneBj','get','exportDOCXBySnapshot','_injector','UNIVER_UNKNOWN','916lYVGhf','UNIVER_DOC','2416590XvkuLO','UniverProExchangeClient','exportXLSXBySnapshotAsync','exportDOCXBySnapshotAsync','UNRECOGNIZED','9UazExm','UniverCoreFacade','41256lXdmax','19lQDnoD','object','@univerjs-pro/exchange-client','4731WrvHyB','importXLSXToSnapshotAsync','exportXLSXByUnitIdAsync','IExchangeService','640700gndrNO','importXLSXToUnitIdAsync','1276vxtuwm','The\x20exchange\x20service\x20is\x20not\x20available','FUniver','UNIVER_PROJECT','importXLSXToSnapshot','exportDOCXByUnitId','UNIVER_SLIDE','importDOCXToSnapshot','importDOCXToSnapshotAsync'];_0x2015=function(){return _0x5bdc6a;};return _0x2015();}function _0x20bf(_0x38da88,_0x4c3dc7){const _0x20153e=_0x2015();return _0x20bf=function(_0x20bf3f,_0x11c564){_0x20bf3f=_0x20bf3f-0x98;let _0x5cbbae=_0x20153e[_0x20bf3f];return _0x5cbbae;},_0x20bf(_0x38da88,_0x4c3dc7);}(function(_0x421c66,_0x1e9d72){const _0x3ae444=_0x20bf,_0x12b628=_0x421c66();while(!![]){try{const _0x51248e=-parseInt(_0x3ae444(0x9b))/0x1*(parseInt(_0x3ae444(0xad))/0x2)+parseInt(_0x3ae444(0x9e))/0x3*(parseInt(_0x3ae444(0xbd))/0x4)+-parseInt(_0x3ae444(0xa2))/0x5+parseInt(_0x3ae444(0xbf))/0x6+parseInt(_0x3ae444(0xb5))/0x7*(-parseInt(_0x3ae444(0xb7))/0x8)+-parseInt(_0x3ae444(0x98))/0x9*(parseInt(_0x3ae444(0xb8))/0xa)+-parseInt(_0x3ae444(0xa4))/0xb*(-parseInt(_0x3ae444(0x9a))/0xc);if(_0x51248e===_0x1e9d72)break;else _0x12b628['push'](_0x12b628['shift']());}catch(_0x5d0753){_0x12b628['push'](_0x12b628['shift']());}}}(_0x2015,0x32fff),function(_0x13a6df,_0xb46d7e){const _0x326bbb=_0x20bf;typeof exports==_0x326bbb(0x9c)&&typeof module<'u'?_0xb46d7e(require(_0x326bbb(0x9d)),require(_0x326bbb(0xb6))):typeof define==_0x326bbb(0xb1)&&define[_0x326bbb(0xb2)]?define([_0x326bbb(0x9d),'@univerjs/core/facade'],_0xb46d7e):(_0x13a6df=typeof globalThis<'u'?globalThis:_0x13a6df||self,_0xb46d7e(_0x13a6df[_0x326bbb(0xc0)],_0x13a6df[_0x326bbb(0x99)]));}(this,function(_0x285d13,_0x48d32b){'use strict';const _0x16140a=_0x20bf;var _0xf0ae28=(_0x210818=>(_0x210818[_0x210818[_0x16140a(0xbc)]=0x0]='UNIVER_UNKNOWN',_0x210818[_0x210818['UNIVER_DOC']=0x1]=_0x16140a(0xbe),_0x210818[_0x210818['UNIVER_SHEET']=0x2]=_0x16140a(0xae),_0x210818[_0x210818['UNIVER_SLIDE']=0x3]=_0x16140a(0xaa),_0x210818[_0x210818[_0x16140a(0xa7)]=0x4]=_0x16140a(0xa7),_0x210818[_0x210818['UNRECOGNIZED']=-0x1]=_0x16140a(0xc3),_0x210818))(_0xf0ae28||{});class _0x5c8134 extends _0x48d32b[_0x16140a(0xa6)]{async[_0x16140a(0xb3)](_0x8817a9){const _0x2ee741=_0x16140a;return this[_0x2ee741(0xa3)](_0x8817a9);}async[_0x16140a(0xa3)](_0x2ebe87){const _0x4e37e6=_0x16140a,_0x2fc4ff=this['_injector'][_0x4e37e6(0xb9)](_0x285d13[_0x4e37e6(0xa1)]);if(!_0x2fc4ff)throw new Error(_0x4e37e6(0xa5));return _0x2fc4ff[_0x4e37e6(0xb4)](_0x2ebe87,_0xf0ae28['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x288da9){const _0x4f8d3a=_0x16140a;return this[_0x4f8d3a(0x9f)](_0x288da9);}async[_0x16140a(0x9f)](_0x58b4c4){const _0x407925=_0x16140a,_0x1e1360=this['_injector'][_0x407925(0xb9)](_0x285d13[_0x407925(0xa1)]);if(!_0x1e1360)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1e1360[_0x407925(0xa8)](_0x58b4c4);}async['exportXLSXByUnitId'](_0x3e82e8){const _0x52a5ca=_0x16140a;return this[_0x52a5ca(0xa0)](_0x3e82e8);}async['exportXLSXByUnitIdAsync'](_0x3970de){const _0x3ecdb0=_0x16140a,_0x3466da=this[_0x3ecdb0(0xbb)][_0x3ecdb0(0xb9)](_0x285d13[_0x3ecdb0(0xa1)]);if(!_0x3466da)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3466da['exportXLSXByUnitId'](_0x3970de);}async[_0x16140a(0xaf)](_0x1a0f46){return this['exportXLSXBySnapshotAsync'](_0x1a0f46);}async[_0x16140a(0xc1)](_0x464233){const _0x1479c6=_0x16140a,_0x484042=this[_0x1479c6(0xbb)][_0x1479c6(0xb9)](_0x285d13[_0x1479c6(0xa1)]);if(!_0x484042)throw new Error(_0x1479c6(0xa5));return _0x484042['exportXLSXBySnapshot'](_0x464233);}async['importDOCXToUnitId'](_0x64d6a){const _0x181437=_0x16140a;return this[_0x181437(0xb0)](_0x64d6a);}async[_0x16140a(0xb0)](_0x2c3b59){const _0x574052=_0x16140a,_0x290f11=this[_0x574052(0xbb)][_0x574052(0xb9)](_0x285d13[_0x574052(0xa1)]);if(!_0x290f11)throw new Error(_0x574052(0xa5));return _0x290f11['importFileToUnitId'](_0x2c3b59,_0xf0ae28[_0x574052(0xbe)]);}async[_0x16140a(0xab)](_0x633985){return this['importDOCXToSnapshotAsync'](_0x633985);}async[_0x16140a(0xac)](_0x372920){const _0x21dcf5=_0x16140a,_0x58c621=this[_0x21dcf5(0xbb)][_0x21dcf5(0xb9)](_0x285d13[_0x21dcf5(0xa1)]);if(!_0x58c621)throw new Error(_0x21dcf5(0xa5));return _0x58c621[_0x21dcf5(0xab)](_0x372920);}async[_0x16140a(0xc2)](_0x1e541a){const _0xc96b58=_0x16140a,_0x45aabb=this[_0xc96b58(0xbb)][_0xc96b58(0xb9)](_0x285d13[_0xc96b58(0xa1)]);if(!_0x45aabb)throw new Error(_0xc96b58(0xa5));return _0x45aabb[_0xc96b58(0xba)](_0x1e541a);}async['exportDOCXByUnitIdAsync'](_0x126ca6){const _0xef7623=_0x16140a,_0x1356db=this[_0xef7623(0xbb)]['get'](_0x285d13[_0xef7623(0xa1)]);if(!_0x1356db)throw new Error(_0xef7623(0xa5));return _0x1356db[_0xef7623(0xa9)](_0x126ca6);}}_0x48d32b[_0x16140a(0xa6)]['extend'](_0x5c8134);}));