@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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +2 -2
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +10 -0
- package/lib/types/facade/f-univer.d.ts +6 -0
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/services/exchange.service.d.ts +5 -2
- package/lib/types/services/operate.service.d.ts +1 -1
- package/lib/types/services/request.service.d.ts +2 -0
- package/lib/types/services/utils/tool.d.ts +3 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
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};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
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};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
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};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
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};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
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};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
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};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
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
|
/**
|
@@ -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
|
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
|
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();}
|