@univerjs-pro/exchange-client 0.8.0-nightly.202506081606 → 0.8.0-nightly.202506091607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/facade/f-univer.d.ts +13 -4
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/services/exchange.service.d.ts +8 -5
- package/lib/types/services/operate.service.d.ts +5 -5
- package/lib/types/services/request.service.d.ts +2 -0
- 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 +7 -7
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3341cf=_0x1a6c;function _0x1a6c(_0x36f8b4,_0x289f80){const _0x4ac037=_0x4ac0();return _0x1a6c=function(_0x1a6ce2,_0x3cf57e){_0x1a6ce2=_0x1a6ce2-0x18e;let _0x277923=_0x4ac037[_0x1a6ce2];return _0x277923;},_0x1a6c(_0x36f8b4,_0x289f80);}function _0x4ac0(){const _0x1f4d21=['Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','File\x20uploaded\x20successfully','Save\x20As','Uploading','3piZWfN','54HbdWCG','Upload\x20again','4RgOnne','Cancel','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1076516OSTIJU','3766848tnvAhC','Save\x20As\x20WPS','869818fSufen','8071365UGACKh','139240CgeJeG','603mJCZPS','244651aMFzGL','168775nLZBTe','{0}\x20file(s)\x20uploaded\x20successfully','Network\x20error','Data\x20is\x20too\x20large','Internal\x20unknown\x20error','Open(File)','File','Download\x20success'];_0x4ac0=function(){return _0x1f4d21;};return _0x4ac0();}(function(_0x230f89,_0x57170b){const _0x10bd1d=_0x1a6c,_0x4a5cce=_0x230f89();while(!![]){try{const _0x1a89bc=parseInt(_0x10bd1d(0x1a2))/0x1+-parseInt(_0x10bd1d(0x19d))/0x2*(parseInt(_0x10bd1d(0x194))/0x3)+-parseInt(_0x10bd1d(0x197))/0x4*(parseInt(_0x10bd1d(0x19e))/0x5)+-parseInt(_0x10bd1d(0x195))/0x6*(-parseInt(_0x10bd1d(0x19a))/0x7)+parseInt(_0x10bd1d(0x19b))/0x8+parseInt(_0x10bd1d(0x1a0))/0x9*(parseInt(_0x10bd1d(0x19f))/0xa)+parseInt(_0x10bd1d(0x1a1))/0xb;if(_0x1a89bc===_0x57170b)break;else _0x4a5cce['push'](_0x4a5cce['shift']());}catch(_0x2bbbd4){_0x4a5cce['push'](_0x4a5cce['shift']());}}}(_0x4ac0,0xe2f9a));const e={'exchange':{'file':_0x3341cf(0x18e),'upload':_0x3341cf(0x1a7),'download':_0x3341cf(0x192),'downloadWPS':_0x3341cf(0x19c),'uploading':_0x3341cf(0x193),'uploadSuccess':_0x3341cf(0x191),'uploadSuccessTip':_0x3341cf(0x1a3),'downloading':'Downloading','downloadSuccess':_0x3341cf(0x18f),'unknownMistake':'Unknown\x20mistake','networkError':_0x3341cf(0x1a4),'tooLarge':_0x3341cf(0x1a5),'internalError':_0x3341cf(0x1a6),'interrupt':_0x3341cf(0x199),'fileTypeError':_0x3341cf(0x190),'wait':'Please\x20wait...','cancel':_0x3341cf(0x198),'uploadAgain':_0x3341cf(0x196)}};export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x1b015f=_0xba83;(function(_0x3fbea1,_0x4a63ab){const _0x2a6d82=_0xba83,_0x1b5c69=_0x3fbea1();while(!![]){try{const _0x30d237=parseInt(_0x2a6d82(0x140))/0x1+parseInt(_0x2a6d82(0x133))/0x2+parseInt(_0x2a6d82(0x135))/0x3*(-parseInt(_0x2a6d82(0x137))/0x4)+-parseInt(_0x2a6d82(0x13a))/0x5+parseInt(_0x2a6d82(0x138))/0x6*(parseInt(_0x2a6d82(0x130))/0x7)+-parseInt(_0x2a6d82(0x131))/0x8+-parseInt(_0x2a6d82(0x13f))/0x9;if(_0x30d237===_0x4a63ab)break;else _0x1b5c69['push'](_0x1b5c69['shift']());}catch(_0x2187fb){_0x1b5c69['push'](_0x1b5c69['shift']());}}}(_0x559c,0x3250d));function _0x559c(){const _0x8e1576=['ذخیره\x20به\x20عنوان','644502uPxhuL','بارگذاری\x20مجدد','6KivPAu','در\x20حال\x20بارگذاری','38852tyDuxi','1554726UlXJna','فایل','6210PaoHAZ','خطای\x20ناشناخته','لغو','خطای\x20داخلی\x20ناشناخته','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','3364740dQuudH','378612BtUSPx','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','لطفا\x20صبر\x20کنید...','خطای\x20شبکه','بازکردن(فایل)','7XAasaX','2874904pUMWbs'];_0x559c=function(){return _0x8e1576;};return _0x559c();}function _0xba83(_0x5e3e7f,_0x433e95){const _0x559cb6=_0x559c();return _0xba83=function(_0xba83a6,_0x28e563){_0xba83a6=_0xba83a6-0x12e;let _0x57b2f1=_0x559cb6[_0xba83a6];return _0x57b2f1;},_0xba83(_0x5e3e7f,_0x433e95);}const o={'exchange':{'file':_0x1b015f(0x139),'upload':_0x1b015f(0x12f),'download':_0x1b015f(0x132),'downloadWPS':'ذخیره\x20به\x20عنوان\x20WPS','uploading':_0x1b015f(0x136),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':'در\x20حال\x20دانلود','downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x1b015f(0x13b),'networkError':_0x1b015f(0x12e),'tooLarge':_0x1b015f(0x142),'internalError':_0x1b015f(0x13d),'interrupt':_0x1b015f(0x141),'fileTypeError':_0x1b015f(0x13e),'wait':_0x1b015f(0x143),'cancel':_0x1b015f(0x13c),'uploadAgain':_0x1b015f(0x134)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x1e3af0=_0x3ff2;function _0x1d0e(){const _0x3af4fb=['8OkcyPc','Téléchargement\x20en\x20cours','Erreur\x20interne\x20inconnue','Erreur\x20réseau','8auIvSK','Enregistrer\x20sous','6721WrTPeL','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Veuillez\x20patienter...','42060rgzqzg','Annuler','212127meJmvd','Enregistrer\x20sous\x20WPS','Fichier','1414269EhMFLM','5208520UGZXlR','Téléchargement','32995Wiearf','852xSFdLf','50MHDJoC','3189504BHIMWE','Télécharger\x20à\x20nouveau','2312513JEoogM','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Ouvrir\x20(Fichier)','Fichier\x20téléchargé\x20avec\x20succès'];_0x1d0e=function(){return _0x3af4fb;};return _0x1d0e();}(function(_0x4db165,_0x334a60){const _0x143c83=_0x3ff2,_0x535d09=_0x4db165();while(!![]){try{const _0x3175ca=-parseInt(_0x143c83(0x1b4))/0x1*(-parseInt(_0x143c83(0x1ad))/0x2)+parseInt(_0x143c83(0x1a3))/0x3+-parseInt(_0x143c83(0x19e))/0x4+-parseInt(_0x143c83(0x1a0))/0x5*(parseInt(_0x143c83(0x1a1))/0x6)+parseInt(_0x143c83(0x1a5))/0x7*(-parseInt(_0x143c83(0x1a9))/0x8)+-parseInt(_0x143c83(0x19d))/0x9*(parseInt(_0x143c83(0x1a2))/0xa)+parseInt(_0x143c83(0x1af))/0xb*(parseInt(_0x143c83(0x1b2))/0xc);if(_0x3175ca===_0x334a60)break;else _0x535d09['push'](_0x535d09['shift']());}catch(_0x352700){_0x535d09['push'](_0x535d09['shift']());}}}(_0x1d0e,0xaa67b));const e={'exchange':{'file':_0x1e3af0(0x19c),'upload':_0x1e3af0(0x1a7),'download':_0x1e3af0(0x1ae),'downloadWPS':_0x1e3af0(0x19b),'uploading':_0x1e3af0(0x1aa),'uploadSuccess':_0x1e3af0(0x1a8),'uploadSuccessTip':_0x1e3af0(0x1b0),'downloading':_0x1e3af0(0x19f),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':'Erreur\x20inconnue','networkError':_0x1e3af0(0x1ac),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x1e3af0(0x1ab),'interrupt':_0x1e3af0(0x1a6),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x1e3af0(0x1b1),'cancel':_0x1e3af0(0x1b3),'uploadAgain':_0x1e3af0(0x1a4)}};function _0x3ff2(_0x5e124c,_0x462efe){const _0x1d0ecc=_0x1d0e();return _0x3ff2=function(_0x3ff2cb,_0x2ed715){_0x3ff2cb=_0x3ff2cb-0x19b;let _0x257f93=_0x1d0ecc[_0x3ff2cb];return _0x257f93;},_0x3ff2(_0x5e124c,_0x462efe);}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x5ca5(){const _0xf3f3bd=['Пожалуйста,\x20подождите...','8cvLjgn','1241800drQUXX','Загрузить\x20снова','Загрузка','190996iFUsxA','Файл','7tiecLu','286SapZbp','Отмена','54dqywPU','Сетевая\x20ошибка','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Сохранить\x20как\x20WPS','15VAwvxt','58722OWtMda','100658jFrOWQ','Внутренняя\x20неизвестная\x20ошибка','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Данные\x20слишком\x20большие','120970mchQbe','15828psoFVu','584615amvNgd','Скачивание\x20успешно','Открыть(Файл)'];_0x5ca5=function(){return _0xf3f3bd;};return _0x5ca5();}const _0x3855e2=_0x240d;(function(_0x22387e,_0x20a8b5){const _0x466cb9=_0x240d,_0x1b8b30=_0x22387e();while(!![]){try{const _0x483508=parseInt(_0x466cb9(0x189))/0x1+parseInt(_0x466cb9(0x17b))/0x2*(-parseInt(_0x466cb9(0x179))/0x3)+parseInt(_0x466cb9(0x185))/0x4*(parseInt(_0x466cb9(0x181))/0x5)+parseInt(_0x466cb9(0x17a))/0x6+-parseInt(_0x466cb9(0x18b))/0x7*(parseInt(_0x466cb9(0x186))/0x8)+parseInt(_0x466cb9(0x174))/0x9*(parseInt(_0x466cb9(0x17f))/0xa)+parseInt(_0x466cb9(0x18c))/0xb*(parseInt(_0x466cb9(0x180))/0xc);if(_0x483508===_0x20a8b5)break;else _0x1b8b30['push'](_0x1b8b30['shift']());}catch(_0x45bafd){_0x1b8b30['push'](_0x1b8b30['shift']());}}}(_0x5ca5,0x20deb));function _0x240d(_0x218e56,_0x5265f1){const _0x5ca579=_0x5ca5();return _0x240d=function(_0x240da4,_0x39234a){_0x240da4=_0x240da4-0x174;let _0x119e43=_0x5ca579[_0x240da4];return _0x119e43;},_0x240d(_0x218e56,_0x5265f1);}const o={'exchange':{'file':_0x3855e2(0x18a),'upload':_0x3855e2(0x183),'download':'Сохранить\x20как','downloadWPS':_0x3855e2(0x178),'uploading':_0x3855e2(0x188),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x3855e2(0x177),'downloading':'Скачивание','downloadSuccess':_0x3855e2(0x182),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x3855e2(0x175),'tooLarge':_0x3855e2(0x17e),'internalError':_0x3855e2(0x17c),'interrupt':_0x3855e2(0x17d),'fileTypeError':_0x3855e2(0x176),'wait':_0x3855e2(0x184),'cancel':_0x3855e2(0x18d),'uploadAgain':_0x3855e2(0x187)}};export{o as default};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x154a35=_0x24f0;function _0x23a6(){const _0x428745=['Lỗi\x20mạng','Tải\x20xuống\x20thành\x20công','Lưu\x20dưới\x20dạng\x20WPS','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','600306SBJmay','1092970ooPKHN','Vui\x20lòng\x20đợi...','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20không\x20xác\x20định','Hủy\x20bỏ','15zvZfgP','12QFFHln','3138633OgKuKj','Tệp','Mở\x20(Tệp)','249404lbToNB','253832PyZqxZ','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','9PAROIq','1778256vgGwVf','22OxWSmL','Luồng\x20dữ\x20liệu\x20quá\x20lớn','98548kvOLHV'];_0x23a6=function(){return _0x428745;};return _0x23a6();}function _0x24f0(_0x1ca3b7,_0x59c77b){const _0x23a617=_0x23a6();return _0x24f0=function(_0x24f06f,_0x197e6f){_0x24f06f=_0x24f06f-0x1a9;let _0x2014e9=_0x23a617[_0x24f06f];return _0x2014e9;},_0x24f0(_0x1ca3b7,_0x59c77b);}(function(_0x245122,_0x789408){const _0x576ee0=_0x24f0,_0xa4f307=_0x245122();while(!![]){try{const _0x423b59=-parseInt(_0x576ee0(0x1b5))/0x1+-parseInt(_0x576ee0(0x1ae))/0x2*(parseInt(_0x576ee0(0x1b1))/0x3)+parseInt(_0x576ee0(0x1af))/0x4*(parseInt(_0x576ee0(0x1a9))/0x5)+parseInt(_0x576ee0(0x1aa))/0x6*(parseInt(_0x576ee0(0x1bb))/0x7)+parseInt(_0x576ee0(0x1b2))/0x8+parseInt(_0x576ee0(0x1ab))/0x9+-parseInt(_0x576ee0(0x1bc))/0xa*(parseInt(_0x576ee0(0x1b3))/0xb);if(_0x423b59===_0x789408)break;else _0xa4f307['push'](_0xa4f307['shift']());}catch(_0x2a157f){_0xa4f307['push'](_0xa4f307['shift']());}}}(_0x23a6,0x3affd));const n={'exchange':{'file':_0x154a35(0x1ac),'upload':_0x154a35(0x1ad),'download':'Lưu\x20dưới\x20dạng','downloadWPS':_0x154a35(0x1b8),'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x154a35(0x1be),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x154a35(0x1b7),'unknownMistake':_0x154a35(0x1bf),'networkError':_0x154a35(0x1b6),'tooLarge':_0x154a35(0x1b4),'internalError':_0x154a35(0x1b9),'interrupt':_0x154a35(0x1b0),'fileTypeError':_0x154a35(0x1ba),'wait':_0x154a35(0x1bd),'cancel':_0x154a35(0x1c0),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x7c48c8=_0x4674;(function(_0x2a5a5e,_0x1837ca){const _0x288e00=_0x4674,_0x4aa0c7=_0x2a5a5e();while(!![]){try{const _0x4e0037=-parseInt(_0x288e00(0x18b))/0x1*(-parseInt(_0x288e00(0x193))/0x2)+parseInt(_0x288e00(0x18d))/0x3+parseInt(_0x288e00(0x192))/0x4+-parseInt(_0x288e00(0x188))/0x5*(parseInt(_0x288e00(0x189))/0x6)+parseInt(_0x288e00(0x183))/0x7+-parseInt(_0x288e00(0x18c))/0x8+-parseInt(_0x288e00(0x180))/0x9*(-parseInt(_0x288e00(0x18e))/0xa);if(_0x4e0037===_0x1837ca)break;else _0x4aa0c7['push'](_0x4aa0c7['shift']());}catch(_0x360f47){_0x4aa0c7['push'](_0x4aa0c7['shift']());}}}(_0xaeb7,0x3d257));function _0x4674(_0x546bc3,_0x27b9ec){const _0xaeb7be=_0xaeb7();return _0x4674=function(_0x4674f9,_0x4b087e){_0x4674f9=_0x4674f9-0x17e;let _0x1f2a9f=_0xaeb7be[_0x4674f9];return _0x1f2a9f;},_0x4674(_0x546bc3,_0x27b9ec);}function _0xaeb7(){const _0x26a673=['21807UMbRLD','所选文件\x20[{0}]\x20不支持上传','{0}个文件上传成功','289303vbGxhF','文件上传成功','再次上传','下载成功','网络异常','565885GRlcIM','24hgqKdc','下载中','13603DyxkrG','48096iHVhor','117453lxDkUz','150rAcwvg','另存为','网络连接中断,文件上传失败','内部未知错误','1607632UMEjrw','28YfGLlH','请稍等...','另存为\x20WPS','打开(文件)','数据流过大'];_0xaeb7=function(){return _0x26a673;};return _0xaeb7();}const o={'exchange':{'file':'文件','upload':_0x7c48c8(0x17e),'download':_0x7c48c8(0x18f),'downloadWPS':_0x7c48c8(0x195),'uploading':'上传中','uploadSuccess':_0x7c48c8(0x184),'uploadSuccessTip':_0x7c48c8(0x182),'downloading':_0x7c48c8(0x18a),'downloadSuccess':_0x7c48c8(0x186),'unknownMistake':'未知错误','networkError':_0x7c48c8(0x187),'tooLarge':_0x7c48c8(0x17f),'internalError':_0x7c48c8(0x191),'interrupt':_0x7c48c8(0x190),'fileTypeError':_0x7c48c8(0x181),'wait':_0x7c48c8(0x194),'cancel':'取消','uploadAgain':_0x7c48c8(0x185)}};export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x1eee(_0x4d0fa1,_0xd4a2b8){const _0x26d42f=_0x26d4();return _0x1eee=function(_0x1eee5e,_0x40a44b){_0x1eee5e=_0x1eee5e-0x135;let _0x202462=_0x26d42f[_0x1eee5e];return _0x202462;},_0x1eee(_0x4d0fa1,_0xd4a2b8);}function _0x26d4(){const _0x3dc721=['網路異常','內部未知錯誤','未知錯誤','15dWFluq','9HWjPVr','102232wMLJUa','2OemRtX','上傳中','另存為\x20WPS','203HsxUSB','開啟(檔案)','檔案上傳成功','資料流過大','132200YMQlGk','1229190zQNJyv','1257309MHlBIG','21612zfFkEg','下載中','下載成功','請稍等...','1481598mAAMZw','另存為','333058wirKnz','再次上傳','1397qaIYJq'];_0x26d4=function(){return _0x3dc721;};return _0x26d4();}const _0x17f2ba=_0x1eee;(function(_0x1ea58f,_0x17bddb){const _0x2f87c3=_0x1eee,_0x1e732e=_0x1ea58f();while(!![]){try{const _0x2d5c06=-parseInt(_0x2f87c3(0x141))/0x1*(parseInt(_0x2f87c3(0x138))/0x2)+parseInt(_0x2f87c3(0x14a))/0x3+-parseInt(_0x2f87c3(0x140))/0x4*(-parseInt(_0x2f87c3(0x13e))/0x5)+-parseInt(_0x2f87c3(0x136))/0x6+parseInt(_0x2f87c3(0x144))/0x7*(parseInt(_0x2f87c3(0x148))/0x8)+-parseInt(_0x2f87c3(0x13f))/0x9*(-parseInt(_0x2f87c3(0x149))/0xa)+-parseInt(_0x2f87c3(0x13a))/0xb*(parseInt(_0x2f87c3(0x14b))/0xc);if(_0x2d5c06===_0x17bddb)break;else _0x1e732e['push'](_0x1e732e['shift']());}catch(_0x4d04f7){_0x1e732e['push'](_0x1e732e['shift']());}}}(_0x26d4,0x469b3));const o={'exchange':{'file':'檔案','upload':_0x17f2ba(0x145),'download':_0x17f2ba(0x137),'downloadWPS':_0x17f2ba(0x143),'uploading':_0x17f2ba(0x142),'uploadSuccess':_0x17f2ba(0x146),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x17f2ba(0x14c),'downloadSuccess':_0x17f2ba(0x14d),'unknownMistake':_0x17f2ba(0x13d),'networkError':_0x17f2ba(0x13b),'tooLarge':_0x17f2ba(0x147),'internalError':_0x17f2ba(0x13c),'interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x17f2ba(0x135),'cancel':'取消','uploadAgain':_0x17f2ba(0x139)}};export{o as default};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { IExchangeExportOptions } from '@univerjs-pro/exchange-client';
|
1
2
|
import { IDocumentData, IWorkbookData } from '@univerjs/core';
|
2
3
|
import { FUniver } from '@univerjs/core/facade';
|
3
4
|
/**
|
@@ -73,6 +74,7 @@ export interface IFUniverExchangeClientMixin {
|
|
73
74
|
/**
|
74
75
|
* Export XLSX file by unit id
|
75
76
|
* @param {string} unitId Unit id
|
77
|
+
* @param {IExchangeExportOptions} [options] Export options
|
76
78
|
* @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
|
77
79
|
*
|
78
80
|
* @example
|
@@ -82,12 +84,14 @@ export interface IFUniverExchangeClientMixin {
|
|
82
84
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
83
85
|
* const unitId = fWorkbook.getId();
|
84
86
|
* const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
|
87
|
+
* // or with server-side calculation enabled
|
88
|
+
* // const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, { enableServerCalculation: true });
|
85
89
|
*
|
86
90
|
* // Download the file
|
87
91
|
* downloadFile(file, 'univer', 'xlsx');
|
88
92
|
* ```
|
89
93
|
*/
|
90
|
-
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
94
|
+
exportXLSXByUnitIdAsync(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
|
91
95
|
/**
|
92
96
|
* Export XLSX file by workbook data
|
93
97
|
*
|
@@ -99,6 +103,7 @@ export interface IFUniverExchangeClientMixin {
|
|
99
103
|
/**
|
100
104
|
* Export XLSX file by workbook data
|
101
105
|
* @param {IWorkbookData} snapshot Workbook data
|
106
|
+
* @param {IExchangeExportOptions} [options] Export options
|
102
107
|
* @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
|
103
108
|
*
|
104
109
|
* @example
|
@@ -108,12 +113,14 @@ export interface IFUniverExchangeClientMixin {
|
|
108
113
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
109
114
|
* const snapshot = fWorkbook.save();
|
110
115
|
* const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
|
116
|
+
* // or with server-side calculation enabled
|
117
|
+
* // const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });
|
111
118
|
*
|
112
119
|
* // Download the file
|
113
120
|
* downloadFile(file, 'univer', 'xlsx');
|
114
121
|
* ```
|
115
122
|
*/
|
116
|
-
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
123
|
+
exportXLSXBySnapshotAsync(snapshot: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
|
117
124
|
/**
|
118
125
|
* Import DOCX file to unit id
|
119
126
|
*
|
@@ -223,8 +230,9 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
223
230
|
/**
|
224
231
|
* Export XLSX file by unit id
|
225
232
|
* @param unitId
|
233
|
+
* @param options
|
226
234
|
*/
|
227
|
-
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
235
|
+
exportXLSXByUnitIdAsync(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
|
228
236
|
/**
|
229
237
|
* Export XLSX file by workbook data
|
230
238
|
* @param snapshot
|
@@ -233,8 +241,9 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
233
241
|
/**
|
234
242
|
* Export XLSX file by workbook data
|
235
243
|
* @param snapshot
|
244
|
+
* @param options
|
236
245
|
*/
|
237
|
-
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
246
|
+
exportXLSXBySnapshotAsync(snapshot: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
|
238
247
|
/**
|
239
248
|
* Import DOCX file to unit id
|
240
249
|
* @param file File path or file object
|
package/lib/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import './global.css';
|
2
2
|
export { UniverExchangeClientPlugin } from './plugin';
|
3
|
-
export { ExchangeService, IExchangeService } from './services/exchange.service';
|
3
|
+
export { ExchangeService, type IExchangeExportOptions, IExchangeService } from './services/exchange.service';
|
4
4
|
export { ExchangeOperateService, IExchangeOperateService } from './services/operate.service';
|
5
5
|
export { IRequestService, RequestService } from './services/request.service';
|
6
6
|
/** @deprecated Will be removed in the 0.2.19 release */
|
@@ -15,6 +15,9 @@ export interface IRequestState {
|
|
15
15
|
error: IError | undefined;
|
16
16
|
state: RequestState;
|
17
17
|
}
|
18
|
+
export interface IExchangeExportOptions {
|
19
|
+
enableServerCalculation?: boolean;
|
20
|
+
}
|
18
21
|
export interface IExchangeService {
|
19
22
|
requestState$: Observable<IRequestState>;
|
20
23
|
/**
|
@@ -26,13 +29,13 @@ export interface IExchangeService {
|
|
26
29
|
* Export XLSX file by unit id
|
27
30
|
* @param unitId
|
28
31
|
*/
|
29
|
-
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
32
|
+
exportXLSXByUnitId(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
|
30
33
|
/**
|
31
34
|
* Export XLSX file by workbook data
|
32
|
-
* @param
|
35
|
+
* @param snapshot
|
33
36
|
* @returns
|
34
37
|
*/
|
35
|
-
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
38
|
+
exportXLSXBySnapshot(snapshot: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
|
36
39
|
/**
|
37
40
|
* Import DOCX file to document data
|
38
41
|
* @param file
|
@@ -68,8 +71,8 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
68
71
|
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
69
72
|
exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
|
70
73
|
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
71
|
-
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
72
|
-
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
74
|
+
exportXLSXByUnitId(unitId: string, options?: IExchangeExportOptions): Promise<File | undefined>;
|
75
|
+
exportXLSXBySnapshot(data: IWorkbookData, options?: IExchangeExportOptions): Promise<File | undefined>;
|
73
76
|
importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
|
74
77
|
private _importToSnapshot;
|
75
78
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IDisposable, Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { ExchangeService } from './exchange.service';
|
3
|
+
import { ExchangeService, IExchangeExportOptions } from './exchange.service';
|
4
4
|
import { UploadNotificationService } from './upload-notification.service';
|
5
5
|
import { UniverType } from '@univerjs/protocol';
|
6
6
|
import { IMessageService } from '@univerjs/ui';
|
@@ -20,12 +20,12 @@ export interface IExchangeOperateService {
|
|
20
20
|
* Export xlsx file by unitId
|
21
21
|
* @returns
|
22
22
|
*/
|
23
|
-
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
23
|
+
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType, options?: IExchangeExportOptions): Promise<void>;
|
24
24
|
/**
|
25
25
|
* Export xlsx file by snapshot
|
26
26
|
* @returns
|
27
27
|
*/
|
28
|
-
exportXLSXBySnapshot(): Promise<void>;
|
28
|
+
exportXLSXBySnapshot(options?: IExchangeExportOptions): Promise<void>;
|
29
29
|
/**
|
30
30
|
* Upload file to server, get unitId and open unit
|
31
31
|
* @param file
|
@@ -95,8 +95,8 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
95
95
|
exportDOCXBySnapshot(): Promise<void>;
|
96
96
|
importXLSXToUnitId(): Promise<string | undefined>;
|
97
97
|
importXLSXToSnapshot(): Promise<void>;
|
98
|
-
exportXLSXByUnitId(unitId?: string, unitName?: string): Promise<void>;
|
99
|
-
exportXLSXBySnapshot(): Promise<void>;
|
98
|
+
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType, options?: IExchangeExportOptions): Promise<void>;
|
99
|
+
exportXLSXBySnapshot(options?: IExchangeExportOptions): Promise<void>;
|
100
100
|
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
101
101
|
private _importFileToUnitId;
|
102
102
|
private _getUnitID;
|
@@ -43,6 +43,8 @@ export interface IExportRequest {
|
|
43
43
|
/** if jsonID is specified, the input is the json file which represents a univer unit */
|
44
44
|
jsonID: string;
|
45
45
|
type: UniverType;
|
46
|
+
/** If sscSwitch is set to true, server-side formula calculation will be triggered */
|
47
|
+
sscSwitch?: boolean;
|
46
48
|
}
|
47
49
|
export interface IExportResponse {
|
48
50
|
error: IError | undefined;
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x5ba3(_0x31adee,_0x510071){const _0xb5ef7f=_0xb5ef();return _0x5ba3=function(_0x5ba336,_0x3d7dbd){_0x5ba336=_0x5ba336-0xcb;let _0x595bcb=_0xb5ef7f[_0x5ba336];return _0x595bcb;},_0x5ba3(_0x31adee,_0x510071);}function _0xb5ef(){const _0x4f697c=['1627370AcBqJC','exportXLSXByUnitIdAsync','55544ZIGNud','importXLSXToSnapshotAsync','@univerjs/core/facade','533341gQTWej','importXLSXToSnapshot','importDOCXToSnapshot','exportDOCXByUnitId','6536250uRnYhd','The\x20exchange\x20service\x20is\x20not\x20available','exportXLSXByUnitId','UNIVER_SLIDE','1987446EZdGzf','FUniver','exportDOCXBySnapshot','UNIVER_DOC','get','importXLSXToUnitIdAsync','exportXLSXBySnapshot','function','importDOCXToSnapshotAsync','exportXLSXBySnapshotAsync','object','UniverProExchangeClient','UNIVER_UNKNOWN','IExchangeService','exportDOCXByUnitIdAsync','1001nHLYNN','importDOCXToUnitId','_injector','UNIVER_SHEET','extend','importXLSXToUnitId','importFileToUnitId','UNRECOGNIZED','9470214bLPrnW','importDOCXToUnitIdAsync','@univerjs-pro/exchange-client','1990596phHBXJ','5qrDkry','UniverCoreFacade'];_0xb5ef=function(){return _0x4f697c;};return _0xb5ef();}(function(_0x3c5b5f,_0x4c7035){const _0x45f8f5=_0x5ba3,_0x2e618b=_0x3c5b5f();while(!![]){try{const _0x28bbb5=parseInt(_0x45f8f5(0xde))/0x1+parseInt(_0x45f8f5(0xd9))/0x2+parseInt(_0x45f8f5(0xe6))/0x3+parseInt(_0x45f8f5(0xd6))/0x4*(-parseInt(_0x45f8f5(0xd7))/0x5)+parseInt(_0x45f8f5(0xe2))/0x6+parseInt(_0x45f8f5(0xcb))/0x7*(-parseInt(_0x45f8f5(0xdb))/0x8)+-parseInt(_0x45f8f5(0xd3))/0x9;if(_0x28bbb5===_0x4c7035)break;else _0x2e618b['push'](_0x2e618b['shift']());}catch(_0x1ae926){_0x2e618b['push'](_0x2e618b['shift']());}}}(_0xb5ef,0x87c6b),function(_0x438b78,_0x7b1e64){const _0x938cc7=_0x5ba3;typeof exports==_0x938cc7(0xf0)&&typeof module<'u'?_0x7b1e64(require(_0x938cc7(0xd5)),require(_0x938cc7(0xdd))):typeof define==_0x938cc7(0xed)&&define['amd']?define([_0x938cc7(0xd5),'@univerjs/core/facade'],_0x7b1e64):(_0x438b78=typeof globalThis<'u'?globalThis:_0x438b78||self,_0x7b1e64(_0x438b78[_0x938cc7(0xf1)],_0x438b78[_0x938cc7(0xd8)]));}(this,function(_0x26bd69,_0x4c3348){'use strict';const _0x14e3c1=_0x5ba3;var _0x5ea5e4=(_0x45fcab=>(_0x45fcab[_0x45fcab[_0x14e3c1(0xf2)]=0x0]=_0x14e3c1(0xf2),_0x45fcab[_0x45fcab[_0x14e3c1(0xe9)]=0x1]=_0x14e3c1(0xe9),_0x45fcab[_0x45fcab['UNIVER_SHEET']=0x2]=_0x14e3c1(0xce),_0x45fcab[_0x45fcab['UNIVER_SLIDE']=0x3]=_0x14e3c1(0xe5),_0x45fcab[_0x45fcab['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x45fcab[_0x45fcab['UNRECOGNIZED']=-0x1]=_0x14e3c1(0xd2),_0x45fcab))(_0x5ea5e4||{});class _0x313f9d extends _0x4c3348[_0x14e3c1(0xe7)]{async[_0x14e3c1(0xd0)](_0x5312dc){const _0x20bfdc=_0x14e3c1;return this[_0x20bfdc(0xeb)](_0x5312dc);}async[_0x14e3c1(0xeb)](_0x48f2ad){const _0x34a158=_0x14e3c1,_0x2b4445=this[_0x34a158(0xcd)]['get'](_0x26bd69['IExchangeService']);if(!_0x2b4445)throw new Error(_0x34a158(0xe3));return _0x2b4445[_0x34a158(0xd1)](_0x48f2ad,_0x5ea5e4['UNIVER_SHEET']);}async[_0x14e3c1(0xdf)](_0x45095f){const _0x505ea1=_0x14e3c1;return this[_0x505ea1(0xdc)](_0x45095f);}async[_0x14e3c1(0xdc)](_0x3e5ec3){const _0x114fd9=_0x14e3c1,_0x355411=this[_0x114fd9(0xcd)][_0x114fd9(0xea)](_0x26bd69[_0x114fd9(0xf3)]);if(!_0x355411)throw new Error(_0x114fd9(0xe3));return _0x355411[_0x114fd9(0xdf)](_0x3e5ec3);}async[_0x14e3c1(0xe4)](_0x309b9e){return this['exportXLSXByUnitIdAsync'](_0x309b9e);}async[_0x14e3c1(0xda)](_0x20cfd,_0x147b76){const _0xcaaffb=_0x14e3c1,_0x29c649=this[_0xcaaffb(0xcd)][_0xcaaffb(0xea)](_0x26bd69[_0xcaaffb(0xf3)]);if(!_0x29c649)throw new Error(_0xcaaffb(0xe3));return _0x29c649[_0xcaaffb(0xe4)](_0x20cfd,_0x147b76);}async[_0x14e3c1(0xec)](_0x26e9f0){const _0x2df578=_0x14e3c1;return this[_0x2df578(0xef)](_0x26e9f0);}async[_0x14e3c1(0xef)](_0x5344f5,_0x2a111b){const _0x1488ea=_0x14e3c1,_0x26b1a6=this[_0x1488ea(0xcd)]['get'](_0x26bd69[_0x1488ea(0xf3)]);if(!_0x26b1a6)throw new Error(_0x1488ea(0xe3));return _0x26b1a6[_0x1488ea(0xec)](_0x5344f5,_0x2a111b);}async[_0x14e3c1(0xcc)](_0x5e1a61){return this['importDOCXToUnitIdAsync'](_0x5e1a61);}async[_0x14e3c1(0xd4)](_0x37e13f){const _0x1e63d1=_0x14e3c1,_0x8d4b27=this[_0x1e63d1(0xcd)][_0x1e63d1(0xea)](_0x26bd69[_0x1e63d1(0xf3)]);if(!_0x8d4b27)throw new Error(_0x1e63d1(0xe3));return _0x8d4b27['importFileToUnitId'](_0x37e13f,_0x5ea5e4[_0x1e63d1(0xe9)]);}async[_0x14e3c1(0xe0)](_0x5954d3){const _0x155553=_0x14e3c1;return this[_0x155553(0xee)](_0x5954d3);}async['importDOCXToSnapshotAsync'](_0x555e5d){const _0x19995e=_0x14e3c1,_0x24dec2=this[_0x19995e(0xcd)]['get'](_0x26bd69['IExchangeService']);if(!_0x24dec2)throw new Error(_0x19995e(0xe3));return _0x24dec2[_0x19995e(0xe0)](_0x555e5d);}async['exportDOCXBySnapshotAsync'](_0x38910a){const _0x52202e=_0x14e3c1,_0x5f253e=this[_0x52202e(0xcd)][_0x52202e(0xea)](_0x26bd69['IExchangeService']);if(!_0x5f253e)throw new Error(_0x52202e(0xe3));return _0x5f253e[_0x52202e(0xe8)](_0x38910a);}async[_0x14e3c1(0xf4)](_0x347112){const _0x2e5bcd=_0x14e3c1,_0xddb861=this[_0x2e5bcd(0xcd)][_0x2e5bcd(0xea)](_0x26bd69['IExchangeService']);if(!_0xddb861)throw new Error(_0x2e5bcd(0xe3));return _0xddb861[_0x2e5bcd(0xe1)](_0x347112);}}_0x4c3348[_0x14e3c1(0xe7)][_0x14e3c1(0xcf)](_0x313f9d);}));
|