@univerjs-pro/exchange-client 0.8.0-nightly.202506101607 → 0.8.0-nightly.202506111607
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 +4 -7
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/exchange.service.d.ts +5 -7
- package/lib/types/services/operate.service.d.ts +5 -5
- 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 _0x4185ab=_0x20e9;(function(_0x4cdc11,_0x23d18d){const _0x5e91e5=_0x20e9,_0xf6ea98=_0x4cdc11();while(!![]){try{const _0xb88ef0=parseInt(_0x5e91e5(0x11d))/0x1+parseInt(_0x5e91e5(0x113))/0x2+-parseInt(_0x5e91e5(0x11e))/0x3+parseInt(_0x5e91e5(0x111))/0x4+-parseInt(_0x5e91e5(0x10e))/0x5+-parseInt(_0x5e91e5(0x112))/0x6+parseInt(_0x5e91e5(0x10c))/0x7*(parseInt(_0x5e91e5(0x115))/0x8);if(_0xb88ef0===_0x23d18d)break;else _0xf6ea98['push'](_0xf6ea98['shift']());}catch(_0xe97cf4){_0xf6ea98['push'](_0xf6ea98['shift']());}}}(_0x3500,0x8fea6));const e={'exchange':{'file':'File','upload':_0x4185ab(0x114),'download':'Save\x20As','downloadWPS':_0x4185ab(0x118),'uploading':_0x4185ab(0x121),'uploadSuccess':_0x4185ab(0x11f),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':'Downloading','downloadSuccess':_0x4185ab(0x116),'unknownMistake':_0x4185ab(0x11c),'networkError':_0x4185ab(0x10f),'tooLarge':_0x4185ab(0x10d),'internalError':_0x4185ab(0x120),'interrupt':_0x4185ab(0x11a),'fileTypeError':_0x4185ab(0x11b),'wait':_0x4185ab(0x119),'cancel':_0x4185ab(0x110),'uploadAgain':_0x4185ab(0x117)}};function _0x3500(){const _0x31edf7=['2726772bmRDoO','1350270lmZblu','Open(File)','712NwWRgK','Download\x20success','Upload\x20again','Save\x20As\x20WPS','Please\x20wait...','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Unknown\x20mistake','490694tfsoBJ','645501UDLLLa','File\x20uploaded\x20successfully','Internal\x20unknown\x20error','Uploading','13636XBpYQK','Data\x20is\x20too\x20large','1930035riVKuV','Network\x20error','Cancel','1223652kaFpnR'];_0x3500=function(){return _0x31edf7;};return _0x3500();}function _0x20e9(_0x4c10af,_0x4ec24a){const _0x35003b=_0x3500();return _0x20e9=function(_0x20e979,_0x3a6f5a){_0x20e979=_0x20e979-0x10c;let _0x25327e=_0x35003b[_0x20e979];return _0x25327e;},_0x20e9(_0x4c10af,_0x4ec24a);}export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x10a8(_0x1cc714,_0x282d24){const _0x3c5e18=_0x3c5e();return _0x10a8=function(_0x10a8be,_0x19cad1){_0x10a8be=_0x10a8be-0x11a;let _0x370461=_0x3c5e18[_0x10a8be];return _0x370461;},_0x10a8(_0x1cc714,_0x282d24);}const _0x111998=_0x10a8;(function(_0x39c289,_0x2e1ac7){const _0x571ea5=_0x10a8,_0x58ba36=_0x39c289();while(!![]){try{const _0x8a0d25=-parseInt(_0x571ea5(0x130))/0x1+-parseInt(_0x571ea5(0x122))/0x2*(parseInt(_0x571ea5(0x11c))/0x3)+parseInt(_0x571ea5(0x128))/0x4*(-parseInt(_0x571ea5(0x12c))/0x5)+parseInt(_0x571ea5(0x124))/0x6+-parseInt(_0x571ea5(0x126))/0x7+parseInt(_0x571ea5(0x12b))/0x8*(parseInt(_0x571ea5(0x133))/0x9)+parseInt(_0x571ea5(0x129))/0xa;if(_0x8a0d25===_0x2e1ac7)break;else _0x58ba36['push'](_0x58ba36['shift']());}catch(_0x279735){_0x58ba36['push'](_0x58ba36['shift']());}}}(_0x3c5e,0x4ad24));const o={'exchange':{'file':'فایل','upload':_0x111998(0x125),'download':_0x111998(0x131),'downloadWPS':_0x111998(0x127),'uploading':_0x111998(0x11f),'uploadSuccess':_0x111998(0x11a),'uploadSuccessTip':_0x111998(0x11b),'downloading':_0x111998(0x11d),'downloadSuccess':_0x111998(0x11e),'unknownMistake':'خطای\x20ناشناخته','networkError':_0x111998(0x12d),'tooLarge':_0x111998(0x12f),'internalError':_0x111998(0x120),'interrupt':_0x111998(0x12e),'fileTypeError':_0x111998(0x132),'wait':_0x111998(0x123),'cancel':_0x111998(0x12a),'uploadAgain':_0x111998(0x121)}};export{o as default};function _0x3c5e(){const _0x16e6ad=['فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','15612xwRYdL','در\x20حال\x20دانلود','دانلود\x20موفقیت\x20آمیز','در\x20حال\x20بارگذاری','خطای\x20داخلی\x20ناشناخته','بارگذاری\x20مجدد','222nYWTkt','لطفا\x20صبر\x20کنید...','2129478LaSCEb','بازکردن(فایل)','540540sgBZhh','ذخیره\x20به\x20عنوان\x20WPS','49004VHlqAM','1903610QMCPaZ','لغو','152hQgLqg','25mlmuFY','خطای\x20شبکه','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','116950qwqPSC','ذخیره\x20به\x20عنوان','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','281493bysVbN'];_0x3c5e=function(){return _0x16e6ad;};return _0x3c5e();}
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x188115=_0x4a13;(function(_0x106616,_0x53b9fd){const _0x44dcd9=_0x4a13,_0x31b4b6=_0x106616();while(!![]){try{const _0x247d0e=-parseInt(_0x44dcd9(0x1e7))/0x1+-parseInt(_0x44dcd9(0x1db))/0x2+parseInt(_0x44dcd9(0x1d8))/0x3+parseInt(_0x44dcd9(0x1e6))/0x4+parseInt(_0x44dcd9(0x1dc))/0x5*(parseInt(_0x44dcd9(0x1d6))/0x6)+-parseInt(_0x44dcd9(0x1de))/0x7*(-parseInt(_0x44dcd9(0x1e9))/0x8)+parseInt(_0x44dcd9(0x1eb))/0x9;if(_0x247d0e===_0x53b9fd)break;else _0x31b4b6['push'](_0x31b4b6['shift']());}catch(_0x5a22bd){_0x31b4b6['push'](_0x31b4b6['shift']());}}}(_0x3691,0xe9450));const e={'exchange':{'file':_0x188115(0x1ea),'upload':_0x188115(0x1e2),'download':_0x188115(0x1e0),'downloadWPS':'Enregistrer\x20sous\x20WPS','uploading':_0x188115(0x1e4),'uploadSuccess':_0x188115(0x1e5),'uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x188115(0x1df),'downloadSuccess':_0x188115(0x1e1),'unknownMistake':_0x188115(0x1ed),'networkError':_0x188115(0x1d9),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x188115(0x1e3),'interrupt':_0x188115(0x1d7),'fileTypeError':_0x188115(0x1e8),'wait':_0x188115(0x1dd),'cancel':_0x188115(0x1ec),'uploadAgain':_0x188115(0x1da)}};export{e as default};function _0x4a13(_0x4a7ee3,_0x623092){const _0x36919a=_0x3691();return _0x4a13=function(_0x4a13ef,_0x44bafb){_0x4a13ef=_0x4a13ef-0x1d6;let _0x1a3b96=_0x36919a[_0x4a13ef];return _0x1a3b96;},_0x4a13(_0x4a7ee3,_0x623092);}function _0x3691(){const _0x4ad4c8=['Téléchargement\x20en\x20cours','Fichier\x20téléchargé\x20avec\x20succès','7110840uzyzhQ','1296155TdxGas','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','73536atHfii','Fichier','11385396GdKcwl','Annuler','Erreur\x20inconnue','228162sqfVdg','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','639378Exnutj','Erreur\x20réseau','Télécharger\x20à\x20nouveau','3700078gjNcyS','110fOPBjq','Veuillez\x20patienter...','7bRULCF','Téléchargement','Enregistrer\x20sous','Téléchargement\x20réussi','Ouvrir\x20(Fichier)','Erreur\x20interne\x20inconnue'];_0x3691=function(){return _0x4ad4c8;};return _0x3691();}
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x241800=_0x22c9;(function(_0xc0bb22,_0x1dded2){const _0x2a68e9=_0x22c9,_0x3a112d=_0xc0bb22();while(!![]){try{const _0x36de87=-parseInt(_0x2a68e9(0x185))/0x1*(parseInt(_0x2a68e9(0x189))/0x2)+parseInt(_0x2a68e9(0x18c))/0x3*(-parseInt(_0x2a68e9(0x18a))/0x4)+-parseInt(_0x2a68e9(0x196))/0x5+parseInt(_0x2a68e9(0x18f))/0x6+-parseInt(_0x2a68e9(0x18b))/0x7*(-parseInt(_0x2a68e9(0x192))/0x8)+parseInt(_0x2a68e9(0x18e))/0x9+parseInt(_0x2a68e9(0x182))/0xa*(parseInt(_0x2a68e9(0x188))/0xb);if(_0x36de87===_0x1dded2)break;else _0x3a112d['push'](_0x3a112d['shift']());}catch(_0x1b71f5){_0x3a112d['push'](_0x3a112d['shift']());}}}(_0x3a47,0x79035));function _0x22c9(_0x37761a,_0x40f425){const _0x3a4785=_0x3a47();return _0x22c9=function(_0x22c9bc,_0x533743){_0x22c9bc=_0x22c9bc-0x182;let _0x598939=_0x3a4785[_0x22c9bc];return _0x598939;},_0x22c9(_0x37761a,_0x40f425);}const o={'exchange':{'file':_0x241800(0x18d),'upload':'Открыть(Файл)','download':_0x241800(0x194),'downloadWPS':_0x241800(0x187),'uploading':'Загрузка','uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x241800(0x183),'downloading':'Скачивание','downloadSuccess':'Скачивание\x20успешно','unknownMistake':'Неизвестная\x20ошибка','networkError':_0x241800(0x195),'tooLarge':_0x241800(0x191),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x241800(0x190),'fileTypeError':_0x241800(0x186),'wait':'Пожалуйста,\x20подождите...','cancel':_0x241800(0x193),'uploadAgain':_0x241800(0x184)}};function _0x3a47(){const _0x3ff58c=['2368230XvrFVE','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Загрузить\x20снова','1oIKMqh','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Сохранить\x20как\x20WPS','44eEypDT','158330sgrKvJ','1526268zOBwNh','574RXsbBP','3HzrkjG','Файл','1127853rocXUz','1231746YpiFBd','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Данные\x20слишком\x20большие','59848clRGVB','Отмена','Сохранить\x20как','Сетевая\x20ошибка','4674705EbyAuW'];_0x3a47=function(){return _0x3ff58c;};return _0x3a47();}export{o as default};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x2aad(_0x296413,_0x13be69){const _0x1119cd=_0x1119();return _0x2aad=function(_0x2aad9f,_0x53ea93){_0x2aad9f=_0x2aad9f-0x1e5;let _0x53f495=_0x1119cd[_0x2aad9f];return _0x53f495;},_0x2aad(_0x296413,_0x13be69);}const _0xa0b4c9=_0x2aad;(function(_0x2a63a1,_0x3e9dbe){const _0x2da74f=_0x2aad,_0x2bd27f=_0x2a63a1();while(!![]){try{const _0x247e06=parseInt(_0x2da74f(0x1f7))/0x1+-parseInt(_0x2da74f(0x1f2))/0x2*(parseInt(_0x2da74f(0x1f1))/0x3)+parseInt(_0x2da74f(0x1ed))/0x4+parseInt(_0x2da74f(0x1f6))/0x5*(-parseInt(_0x2da74f(0x1e5))/0x6)+parseInt(_0x2da74f(0x1f9))/0x7+-parseInt(_0x2da74f(0x1fc))/0x8+-parseInt(_0x2da74f(0x1f5))/0x9;if(_0x247e06===_0x3e9dbe)break;else _0x2bd27f['push'](_0x2bd27f['shift']());}catch(_0x337170){_0x2bd27f['push'](_0x2bd27f['shift']());}}}(_0x1119,0x40eb8));const n={'exchange':{'file':'Tệp','upload':_0xa0b4c9(0x1ee),'download':_0xa0b4c9(0x1e6),'downloadWPS':_0xa0b4c9(0x1ea),'uploading':_0xa0b4c9(0x1e8),'uploadSuccess':_0xa0b4c9(0x1f4),'uploadSuccessTip':_0xa0b4c9(0x1e7),'downloading':_0xa0b4c9(0x1ec),'downloadSuccess':_0xa0b4c9(0x1ef),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0xa0b4c9(0x1fb),'tooLarge':_0xa0b4c9(0x1e9),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0xa0b4c9(0x1f8),'fileTypeError':_0xa0b4c9(0x1f0),'wait':_0xa0b4c9(0x1eb),'cancel':_0xa0b4c9(0x1f3),'uploadAgain':_0xa0b4c9(0x1fa)}};export{n as default};function _0x1119(){const _0x469d55=['Đang\x20tải\x20xuống','1290224JrMwhD','Mở\x20(Tệp)','Tải\x20xuống\x20thành\x20công','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','120MADrKZ','17864dDgfRF','Hủy\x20bỏ','Tải\x20lên\x20tệp\x20thành\x20công','1272546JCkWaB','5yuKXnW','490601tmEDOx','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','845362aVCFjD','Tải\x20lên\x20lại','Lỗi\x20mạng','1252456rrrCNS','76680ACEwcq','Lưu\x20dưới\x20dạng','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Đang\x20tải\x20lên','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Lưu\x20dưới\x20dạng\x20WPS','Vui\x20lòng\x20đợi...'];_0x1119=function(){return _0x469d55;};return _0x1119();}
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x41e05d=_0x378d;(function(_0x3f69eb,_0x4e7a9d){const _0x39d67b=_0x378d,_0x585990=_0x3f69eb();while(!![]){try{const _0x4a4a14=parseInt(_0x39d67b(0x15b))/0x1*(-parseInt(_0x39d67b(0x16a))/0x2)+-parseInt(_0x39d67b(0x164))/0x3*(parseInt(_0x39d67b(0x160))/0x4)+-parseInt(_0x39d67b(0x171))/0x5*(parseInt(_0x39d67b(0x15a))/0x6)+-parseInt(_0x39d67b(0x168))/0x7+-parseInt(_0x39d67b(0x16d))/0x8+parseInt(_0x39d67b(0x162))/0x9*(parseInt(_0x39d67b(0x15f))/0xa)+-parseInt(_0x39d67b(0x166))/0xb*(-parseInt(_0x39d67b(0x161))/0xc);if(_0x4a4a14===_0x4e7a9d)break;else _0x585990['push'](_0x585990['shift']());}catch(_0x2193ba){_0x585990['push'](_0x585990['shift']());}}}(_0x39f1,0x2f507));function _0x378d(_0x1a9bcf,_0x379db7){const _0x39f137=_0x39f1();return _0x378d=function(_0x378d48,_0x75f3b4){_0x378d48=_0x378d48-0x159;let _0x10c9d1=_0x39f137[_0x378d48];return _0x10c9d1;},_0x378d(_0x1a9bcf,_0x379db7);}const o={'exchange':{'file':'文件','upload':_0x41e05d(0x170),'download':_0x41e05d(0x159),'downloadWPS':_0x41e05d(0x16c),'uploading':_0x41e05d(0x167),'uploadSuccess':_0x41e05d(0x165),'uploadSuccessTip':_0x41e05d(0x15d),'downloading':_0x41e05d(0x16f),'downloadSuccess':_0x41e05d(0x16e),'unknownMistake':_0x41e05d(0x15e),'networkError':_0x41e05d(0x163),'tooLarge':_0x41e05d(0x173),'internalError':_0x41e05d(0x169),'interrupt':_0x41e05d(0x172),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x41e05d(0x16b),'cancel':'取消','uploadAgain':_0x41e05d(0x15c)}};function _0x39f1(){const _0x447b4a=['1169464KrHjhJ','下载成功','下载中','打开(文件)','3190WUYixU','网络连接中断,文件上传失败','数据流过大','另存为','2802iQuUwV','75039xWQjrl','再次上传','{0}个文件上传成功','未知错误','10GkcBPg','20dHsVhh','816MHrNTs','2247489QGJtcW','网络异常','88971bwTKrD','文件上传成功','126335eTBYLu','上传中','135597EAevyh','内部未知错误','6THbCIy','请稍等...','另存为\x20WPS'];_0x39f1=function(){return _0x447b4a;};return _0x39f1();}export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xeeef(_0x5b9d6e,_0x4d4bd0){const _0x269c9e=_0x269c();return _0xeeef=function(_0xeeef77,_0x4cd120){_0xeeef77=_0xeeef77-0x149;let _0x2477a5=_0x269c9e[_0xeeef77];return _0x2477a5;},_0xeeef(_0x5b9d6e,_0x4d4bd0);}const _0xe2e6b=_0xeeef;(function(_0x270bfc,_0x441021){const _0x596e40=_0xeeef,_0x4c7f3f=_0x270bfc();while(!![]){try{const _0x4632e7=parseInt(_0x596e40(0x155))/0x1*(-parseInt(_0x596e40(0x150))/0x2)+-parseInt(_0x596e40(0x14f))/0x3*(parseInt(_0x596e40(0x153))/0x4)+-parseInt(_0x596e40(0x149))/0x5+-parseInt(_0x596e40(0x158))/0x6+parseInt(_0x596e40(0x152))/0x7+-parseInt(_0x596e40(0x151))/0x8+parseInt(_0x596e40(0x157))/0x9;if(_0x4632e7===_0x441021)break;else _0x4c7f3f['push'](_0x4c7f3f['shift']());}catch(_0x4677a5){_0x4c7f3f['push'](_0x4c7f3f['shift']());}}}(_0x269c,0xbedf9));function _0x269c(){const _0x39a14a=['未知錯誤','上傳中','9759rhDWZy','2MriRLz','6342280ZRbqeE','6755910gEtrDS','124PahnjR','開啟(檔案)','1106728bnDItb','檔案上傳成功','32877189QkRkQD','4170240DyffIw','請稍等...','所選檔案\x20[{0}]\x20不支援上傳','5704690fDlgUE','另存為\x20WPS','網路異常','再次上傳'];_0x269c=function(){return _0x39a14a;};return _0x269c();}const o={'exchange':{'file':'檔案','upload':_0xe2e6b(0x154),'download':'另存為','downloadWPS':_0xe2e6b(0x14a),'uploading':_0xe2e6b(0x14e),'uploadSuccess':_0xe2e6b(0x156),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':_0xe2e6b(0x14d),'networkError':_0xe2e6b(0x14b),'tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0xe2e6b(0x15a),'wait':_0xe2e6b(0x159),'cancel':'取消','uploadAgain':_0xe2e6b(0x14c)}};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
|
/**
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { IExchangeExportOptions } from '@univerjs-pro/exchange-client';
|
2
1
|
import { IDocumentData, IWorkbookData } from '@univerjs/core';
|
3
2
|
import { FUniver } from '@univerjs/core/facade';
|
4
3
|
/**
|
@@ -74,7 +73,6 @@ export interface IFUniverExchangeClientMixin {
|
|
74
73
|
/**
|
75
74
|
* Export XLSX file by unit id
|
76
75
|
* @param {string} unitId Unit id
|
77
|
-
* @param {IExchangeExportOptions} [options] Export options
|
78
76
|
* @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
|
79
77
|
*
|
80
78
|
* @example
|
@@ -91,7 +89,7 @@ export interface IFUniverExchangeClientMixin {
|
|
91
89
|
* downloadFile(file, 'univer', 'xlsx');
|
92
90
|
* ```
|
93
91
|
*/
|
94
|
-
exportXLSXByUnitIdAsync(unitId: string
|
92
|
+
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
95
93
|
/**
|
96
94
|
* Export XLSX file by workbook data
|
97
95
|
*
|
@@ -103,7 +101,6 @@ export interface IFUniverExchangeClientMixin {
|
|
103
101
|
/**
|
104
102
|
* Export XLSX file by workbook data
|
105
103
|
* @param {IWorkbookData} snapshot Workbook data
|
106
|
-
* @param {IExchangeExportOptions} [options] Export options
|
107
104
|
* @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
|
108
105
|
*
|
109
106
|
* @example
|
@@ -120,7 +117,7 @@ export interface IFUniverExchangeClientMixin {
|
|
120
117
|
* downloadFile(file, 'univer', 'xlsx');
|
121
118
|
* ```
|
122
119
|
*/
|
123
|
-
exportXLSXBySnapshotAsync(snapshot: IWorkbookData
|
120
|
+
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
124
121
|
/**
|
125
122
|
* Import DOCX file to unit id
|
126
123
|
*
|
@@ -232,7 +229,7 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
232
229
|
* @param unitId
|
233
230
|
* @param options
|
234
231
|
*/
|
235
|
-
exportXLSXByUnitIdAsync(unitId: string
|
232
|
+
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
236
233
|
/**
|
237
234
|
* Export XLSX file by workbook data
|
238
235
|
* @param snapshot
|
@@ -243,7 +240,7 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
243
240
|
* @param snapshot
|
244
241
|
* @param options
|
245
242
|
*/
|
246
|
-
exportXLSXBySnapshotAsync(snapshot: IWorkbookData
|
243
|
+
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
247
244
|
/**
|
248
245
|
* Import DOCX file to unit id
|
249
246
|
* @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,
|
3
|
+
export { ExchangeService, 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 */
|
@@ -16,9 +16,6 @@ export interface IRequestState {
|
|
16
16
|
error: IError | undefined;
|
17
17
|
state: RequestState;
|
18
18
|
}
|
19
|
-
export interface IExchangeExportOptions {
|
20
|
-
enableServerCalculation?: boolean;
|
21
|
-
}
|
22
19
|
export interface IExchangeService {
|
23
20
|
requestState$: Observable<IRequestState>;
|
24
21
|
/**
|
@@ -30,13 +27,13 @@ export interface IExchangeService {
|
|
30
27
|
* Export XLSX file by unit id
|
31
28
|
* @param unitId
|
32
29
|
*/
|
33
|
-
exportXLSXByUnitId(unitId: string
|
30
|
+
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
34
31
|
/**
|
35
32
|
* Export XLSX file by workbook data
|
36
33
|
* @param snapshot
|
37
34
|
* @returns
|
38
35
|
*/
|
39
|
-
exportXLSXBySnapshot(snapshot: IWorkbookData
|
36
|
+
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
40
37
|
/**
|
41
38
|
* Import DOCX file to document data
|
42
39
|
* @param file
|
@@ -73,8 +70,8 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
73
70
|
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
74
71
|
exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
|
75
72
|
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
76
|
-
exportXLSXByUnitId(unitId: string
|
77
|
-
exportXLSXBySnapshot(data: IWorkbookData
|
73
|
+
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
74
|
+
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
78
75
|
importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
|
79
76
|
private _importToSnapshot;
|
80
77
|
/**
|
@@ -91,4 +88,5 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
91
88
|
private _getDownloadEndpointURL;
|
92
89
|
private _getMinSheetRowCount;
|
93
90
|
private _getMinSheetColumnCount;
|
91
|
+
private _getEnableServerSideComputing;
|
94
92
|
}
|
@@ -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
|
3
|
+
import { ExchangeService } 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
|
23
|
+
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
24
24
|
/**
|
25
25
|
* Export xlsx file by snapshot
|
26
26
|
* @returns
|
27
27
|
*/
|
28
|
-
exportXLSXBySnapshot(
|
28
|
+
exportXLSXBySnapshot(): 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, unitType?: UniverInstanceType
|
99
|
-
exportXLSXBySnapshot(
|
98
|
+
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
99
|
+
exportXLSXBySnapshot(): Promise<void>;
|
100
100
|
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
101
101
|
private _importFileToUnitId;
|
102
102
|
private _getUnitID;
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x415bb7,_0x1c58d2){const _0x2bbeaf=_0x231b,_0x587f60=_0x415bb7();while(!![]){try{const _0x403a7f=parseInt(_0x2bbeaf(0x103))/0x1*(-parseInt(_0x2bbeaf(0x101))/0x2)+parseInt(_0x2bbeaf(0xf1))/0x3+-parseInt(_0x2bbeaf(0xea))/0x4+-parseInt(_0x2bbeaf(0xe9))/0x5*(parseInt(_0x2bbeaf(0xfc))/0x6)+-parseInt(_0x2bbeaf(0xfa))/0x7*(-parseInt(_0x2bbeaf(0x10c))/0x8)+parseInt(_0x2bbeaf(0xf2))/0x9+-parseInt(_0x2bbeaf(0x104))/0xa;if(_0x403a7f===_0x1c58d2)break;else _0x587f60['push'](_0x587f60['shift']());}catch(_0x11f02a){_0x587f60['push'](_0x587f60['shift']());}}}(_0x3cc2,0x2f8f2),function(_0x1ce5bd,_0x3205b1){const _0x42e4c8=_0x231b;typeof exports==_0x42e4c8(0x106)&&typeof module<'u'?_0x3205b1(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define==_0x42e4c8(0xf5)&&define[_0x42e4c8(0x10f)]?define([_0x42e4c8(0xf8),_0x42e4c8(0xed)],_0x3205b1):(_0x1ce5bd=typeof globalThis<'u'?globalThis:_0x1ce5bd||self,_0x3205b1(_0x1ce5bd[_0x42e4c8(0xf0)],_0x1ce5bd[_0x42e4c8(0x10e)]));}(this,function(_0x503cb4,_0x5b44d3){'use strict';const _0x420434=_0x231b;var _0x44e3a5=(_0x55503=>(_0x55503[_0x55503[_0x420434(0xf3)]=0x0]=_0x420434(0xf3),_0x55503[_0x55503[_0x420434(0x108)]=0x1]='UNIVER_DOC',_0x55503[_0x55503[_0x420434(0xf9)]=0x2]=_0x420434(0xf9),_0x55503[_0x55503['UNIVER_SLIDE']=0x3]=_0x420434(0xff),_0x55503[_0x55503[_0x420434(0xf7)]=0x4]=_0x420434(0xf7),_0x55503[_0x55503[_0x420434(0x111)]=-0x1]='UNRECOGNIZED',_0x55503))(_0x44e3a5||{});class _0x74e24c extends _0x5b44d3['FUniver']{async[_0x420434(0xfb)](_0x4bae6a){const _0x5793e0=_0x420434;return this[_0x5793e0(0x109)](_0x4bae6a);}async[_0x420434(0x109)](_0x1b54c5){const _0x3ddabf=_0x420434,_0x1ade10=this[_0x3ddabf(0xf4)][_0x3ddabf(0x105)](_0x503cb4[_0x3ddabf(0x10a)]);if(!_0x1ade10)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1ade10[_0x3ddabf(0x10d)](_0x1b54c5,_0x44e3a5['UNIVER_SHEET']);}async[_0x420434(0xec)](_0x1e81de){const _0x267ec1=_0x420434;return this[_0x267ec1(0x102)](_0x1e81de);}async[_0x420434(0x102)](_0x394faa){const _0x329fbe=_0x420434,_0x49193d=this[_0x329fbe(0xf4)][_0x329fbe(0x105)](_0x503cb4[_0x329fbe(0x10a)]);if(!_0x49193d)throw new Error(_0x329fbe(0x10b));return _0x49193d[_0x329fbe(0xec)](_0x394faa);}async[_0x420434(0xeb)](_0x16d0ec){const _0x1b654a=_0x420434;return this[_0x1b654a(0x110)](_0x16d0ec);}async[_0x420434(0x110)](_0x542a44){const _0xb532f6=_0x420434,_0x4e1965=this[_0xb532f6(0xf4)][_0xb532f6(0x105)](_0x503cb4[_0xb532f6(0x10a)]);if(!_0x4e1965)throw new Error(_0xb532f6(0x10b));return _0x4e1965['exportXLSXByUnitId'](_0x542a44);}async['exportXLSXBySnapshot'](_0x7fbd9a){const _0x587072=_0x420434;return this[_0x587072(0xf6)](_0x7fbd9a);}async[_0x420434(0xf6)](_0x1e7dbc){const _0x297abe=_0x420434,_0x24edcd=this[_0x297abe(0xf4)][_0x297abe(0x105)](_0x503cb4[_0x297abe(0x10a)]);if(!_0x24edcd)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x24edcd['exportXLSXBySnapshot'](_0x1e7dbc);}async[_0x420434(0xfd)](_0x545cb6){return this['importDOCXToUnitIdAsync'](_0x545cb6);}async['importDOCXToUnitIdAsync'](_0x4a77a8){const _0x49f202=_0x420434,_0x2dd68f=this['_injector'][_0x49f202(0x105)](_0x503cb4[_0x49f202(0x10a)]);if(!_0x2dd68f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2dd68f[_0x49f202(0x10d)](_0x4a77a8,_0x44e3a5[_0x49f202(0x108)]);}async[_0x420434(0xee)](_0x5e2900){const _0x33e8ee=_0x420434;return this[_0x33e8ee(0xfe)](_0x5e2900);}async[_0x420434(0xfe)](_0x42f32d){const _0x4c3c14=_0x420434,_0x5e1421=this['_injector'][_0x4c3c14(0x105)](_0x503cb4[_0x4c3c14(0x10a)]);if(!_0x5e1421)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5e1421[_0x4c3c14(0xee)](_0x42f32d);}async[_0x420434(0xef)](_0x48684e){const _0x5d03b3=_0x420434,_0x13b840=this[_0x5d03b3(0xf4)][_0x5d03b3(0x105)](_0x503cb4['IExchangeService']);if(!_0x13b840)throw new Error(_0x5d03b3(0x10b));return _0x13b840['exportDOCXBySnapshot'](_0x48684e);}async['exportDOCXByUnitIdAsync'](_0x640d2){const _0x503515=_0x420434,_0x2535a1=this['_injector'][_0x503515(0x105)](_0x503cb4['IExchangeService']);if(!_0x2535a1)throw new Error(_0x503515(0x10b));return _0x2535a1['exportDOCXByUnitId'](_0x640d2);}}_0x5b44d3[_0x420434(0x107)][_0x420434(0x100)](_0x74e24c);}));function _0x231b(_0x303b1b,_0x50b405){const _0x3cc2ac=_0x3cc2();return _0x231b=function(_0x231b20,_0x4fb554){_0x231b20=_0x231b20-0xe9;let _0x5851cf=_0x3cc2ac[_0x231b20];return _0x5851cf;},_0x231b(_0x303b1b,_0x50b405);}function _0x3cc2(){const _0x27dd87=['importXLSXToUnitIdAsync','IExchangeService','The\x20exchange\x20service\x20is\x20not\x20available','4528IgrPeV','importFileToUnitId','UniverCoreFacade','amd','exportXLSXByUnitIdAsync','UNRECOGNIZED','410QSiRxU','678780BMndAA','exportXLSXByUnitId','importXLSXToSnapshot','@univerjs/core/facade','importDOCXToSnapshot','exportDOCXBySnapshotAsync','UniverProExchangeClient','512094YsWcxw','2754027DNidpf','UNIVER_UNKNOWN','_injector','function','exportXLSXBySnapshotAsync','UNIVER_PROJECT','@univerjs-pro/exchange-client','UNIVER_SHEET','4697pmUJZH','importXLSXToUnitId','27546UosniA','importDOCXToUnitId','importDOCXToSnapshotAsync','UNIVER_SLIDE','extend','12XgUIBY','importXLSXToSnapshotAsync','16355GOrpBV','173980PAyYIo','get','object','FUniver','UNIVER_DOC'];_0x3cc2=function(){return _0x27dd87;};return _0x3cc2();}
|