@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.
- 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 +10 -10
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
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};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
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};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
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};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
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};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
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};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
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();}
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
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
|
/**
|
@@ -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 _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);}));
|