@univerjs-pro/exchange-client 0.20.1 → 0.21.0
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 +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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 +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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 +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.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/index.d.ts +1 -1
- package/lib/types/services/exchange.service.d.ts +3 -4
- package/lib/types/services/operate.service.d.ts +5 -6
- package/lib/types/services/request.service.d.ts +4 -4
- package/lib/types/services/upload-notification.service.d.ts +2 -3
- package/lib/types/services/utils/tool.d.ts +4 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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 +13 -14
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x47a1(){const _0x53b4e3=['3ObgbdJ','Téléchargement\x20en\x20cours','5930934KvKpla','Fichier\x20téléchargé\x20avec\x20succès','19063472BWXGCA','Veuillez\x20patienter...','1161569oAXzQb','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20inconnue','Téléchargement','Fichier','Télécharger\x20à\x20nouveau','Annuler','Téléchargement\x20réussi','5450036oUzjXx','2261588KscVzo','2396810hoEquh','156720ffXCtR'];_0x47a1=function(){return _0x53b4e3;};return _0x47a1();}const _0x5ab41a=_0x2078;(function(_0x149bd4,_0x3754ad){const _0x581265=_0x2078,_0x5cc74e=_0x149bd4();while(!![]){try{const _0x18a8fb=-parseInt(_0x581265(0xff))/0x1+-parseInt(_0x581265(0xf7))/0x2+-parseInt(_0x581265(0xf9))/0x3*(-parseInt(_0x581265(0xf5))/0x4)+parseInt(_0x581265(0xf8))/0x5+-parseInt(_0x581265(0xfb))/0x6+parseInt(_0x581265(0xf6))/0x7+parseInt(_0x581265(0xfd))/0x8;if(_0x18a8fb===_0x3754ad)break;else _0x5cc74e['push'](_0x5cc74e['shift']());}catch(_0x5f33fc){_0x5cc74e['push'](_0x5cc74e['shift']());}}}(_0x47a1,0xb7730));function _0x2078(_0x44e7d6,_0x3bba0d){_0x44e7d6=_0x44e7d6-0xef;const _0x47a143=_0x47a1();let _0x20787b=_0x47a143[_0x44e7d6];return _0x20787b;}const locale={'exchange':{'file':_0x5ab41a(0xf1),'upload':'Ouvrir\x20(Fichier)','download':'Enregistrer\x20sous','uploading':_0x5ab41a(0xfa),'uploadSuccess':_0x5ab41a(0xfc),'uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x5ab41a(0xf0),'downloadSuccess':_0x5ab41a(0xf4),'unknownMistake':_0x5ab41a(0xef),'networkError':'Erreur\x20réseau','tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':'Erreur\x20interne\x20inconnue','interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':_0x5ab41a(0x100),'wait':_0x5ab41a(0xfe),'cancel':_0x5ab41a(0xf3),'uploadAgain':_0x5ab41a(0xf2)}};export{locale as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3263db=_0xd70b;(function(_0x4eb59a,_0x7f6cba){const _0x330450=_0xd70b,_0x3ba58f=_0x4eb59a();while(!![]){try{const _0x3cb19d=-parseInt(_0x330450(0x15d))/0x1+-parseInt(_0x330450(0x166))/0x2+parseInt(_0x330450(0x16d))/0x3+-parseInt(_0x330450(0x160))/0x4+parseInt(_0x330450(0x16a))/0x5*(-parseInt(_0x330450(0x16e))/0x6)+-parseInt(_0x330450(0x163))/0x7*(-parseInt(_0x330450(0x161))/0x8)+parseInt(_0x330450(0x162))/0x9;if(_0x3cb19d===_0x7f6cba)break;else _0x3ba58f['push'](_0x3ba58f['shift']());}catch(_0x4f63be){_0x3ba58f['push'](_0x3ba58f['shift']());}}}(_0x2ef5,0xed0e4));function _0xd70b(_0x4328e3,_0x586934){_0x4328e3=_0x4328e3-0x15d;const _0x2ef50c=_0x2ef5();let _0xd70b99=_0x2ef50c[_0x4328e3];return _0xd70b99;}const locale={'exchange':{'file':_0x3263db(0x167),'upload':'開く(ファイル)','download':_0x3263db(0x16c),'uploading':_0x3263db(0x169),'uploadSuccess':'ファイルが正常にアップロードされました','uploadSuccessTip':'{0}\x20個のファイルが正常にアップロードされました','downloading':_0x3263db(0x165),'downloadSuccess':_0x3263db(0x171),'unknownMistake':'不明なエラー','networkError':_0x3263db(0x168),'tooLarge':_0x3263db(0x16f),'internalError':'内部エラーが発生しました','interrupt':_0x3263db(0x15e),'fileTypeError':_0x3263db(0x16b),'wait':_0x3263db(0x170),'cancel':_0x3263db(0x15f),'uploadAgain':_0x3263db(0x164)}};function _0x2ef5(){const _0x44b58b=['226338clptul','データが大きすぎます','お待ちください...','ダウンロードが完了しました','1290251VlafBE','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','キャンセル','6545268ZrDecl','8wRWZSq','40164471sudSps','7361501HqpRSj','再度アップロード','ダウンロード中','1507534GTkKuO','ファイル','ネットワークエラー','アップロード中','215agYZII','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','名前を付けて保存','2277126CGkrXJ'];_0x2ef5=function(){return _0x44b58b;};return _0x2ef5();}export{locale as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b66f3=_0x528d;function _0x528d(_0x2be6c3,_0x3e1d48){_0x2be6c3=_0x2be6c3-0x157;const _0x1a0928=_0x1a09();let _0x528d5a=_0x1a0928[_0x2be6c3];return _0x528d5a;}(function(_0xf27261,_0x10866c){const _0x3b34fd=_0x528d,_0x144698=_0xf27261();while(!![]){try{const _0x1fe1c0=parseInt(_0x3b34fd(0x169))/0x1*(parseInt(_0x3b34fd(0x167))/0x2)+parseInt(_0x3b34fd(0x166))/0x3*(parseInt(_0x3b34fd(0x161))/0x4)+-parseInt(_0x3b34fd(0x163))/0x5*(parseInt(_0x3b34fd(0x16b))/0x6)+parseInt(_0x3b34fd(0x15e))/0x7*(parseInt(_0x3b34fd(0x16a))/0x8)+parseInt(_0x3b34fd(0x158))/0x9+parseInt(_0x3b34fd(0x164))/0xa*(-parseInt(_0x3b34fd(0x15d))/0xb)+-parseInt(_0x3b34fd(0x160))/0xc;if(_0x1fe1c0===_0x10866c)break;else _0x144698['push'](_0x144698['shift']());}catch(_0x3475b5){_0x144698['push'](_0x144698['shift']());}}}(_0x1a09,0x8b5b1));const locale={'exchange':{'file':'파일','upload':'열기(파일)','download':_0x2b66f3(0x162),'uploading':'업로드\x20중','uploadSuccess':_0x2b66f3(0x165),'uploadSuccessTip':_0x2b66f3(0x168),'downloading':_0x2b66f3(0x15f),'downloadSuccess':_0x2b66f3(0x157),'unknownMistake':_0x2b66f3(0x15a),'networkError':_0x2b66f3(0x159),'tooLarge':_0x2b66f3(0x16c),'internalError':_0x2b66f3(0x15c),'interrupt':_0x2b66f3(0x15b),'fileTypeError':'선택한\x20파일\x20[{0}]은(는)\x20업로드가\x20지원되지\x20않습니다','wait':'잠시만\x20기다려\x20주세요...','cancel':'취소','uploadAgain':_0x2b66f3(0x16d)}};function _0x1a09(){const _0x2e1679=['파일이\x20성공적으로\x20업로드되었습니다','766197gKorsE','58462qGVvSp','{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','37DYYzds','278912QQrInr','6kXuwjc','데이터가\x20너무\x20큽니다','다시\x20업로드','다운로드가\x20완료되었습니다','3366513GtuhMU','네트워크\x20오류','알\x20수\x20없는\x20오류','네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다','내부\x20오류가\x20발생했습니다','3769139vXaaLO','112mKbzeG','다운로드\x20중','6246396edTYvL','12vWAgyN','다른\x20이름으로\x20저장','5014965MwnNsZ','20VTRZIT'];_0x1a09=function(){return _0x2e1679;};return _0x1a09();}export{locale as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3bd9(_0x31fb8b,_0x562f92){_0x31fb8b=_0x31fb8b-0x1b0;const _0x401ac7=_0x401a();let _0x3bd9ab=_0x401ac7[_0x31fb8b];return _0x3bd9ab;}const _0x49e564=_0x3bd9;(function(_0x15de7f,_0x11029c){const _0x337226=_0x3bd9,_0x458ed7=_0x15de7f();while(!![]){try{const _0x14e8fb=-parseInt(_0x337226(0x1b9))/0x1*(parseInt(_0x337226(0x1c1))/0x2)+parseInt(_0x337226(0x1bd))/0x3*(-parseInt(_0x337226(0x1ba))/0x4)+-parseInt(_0x337226(0x1b0))/0x5+-parseInt(_0x337226(0x1bc))/0x6*(-parseInt(_0x337226(0x1b4))/0x7)+-parseInt(_0x337226(0x1b3))/0x8+parseInt(_0x337226(0x1b1))/0x9+parseInt(_0x337226(0x1c2))/0xa;if(_0x14e8fb===_0x11029c)break;else _0x458ed7['push'](_0x458ed7['shift']());}catch(_0x337851){_0x458ed7['push'](_0x458ed7['shift']());}}}(_0x401a,0x8ea1c));const locale={'exchange':{'file':'Файл','upload':_0x49e564(0x1be),'download':_0x49e564(0x1bb),'uploading':_0x49e564(0x1b6),'uploadSuccess':_0x49e564(0x1b7),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':'Скачивание','downloadSuccess':'Скачивание\x20успешно','unknownMistake':'Неизвестная\x20ошибка','networkError':'Сетевая\x20ошибка','tooLarge':_0x49e564(0x1bf),'internalError':_0x49e564(0x1b5),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x49e564(0x1b2),'wait':'Пожалуйста,\x20подождите...','cancel':_0x49e564(0x1c0),'uploadAgain':_0x49e564(0x1b8)}};function _0x401a(){const _0x23922e=['Отмена','8lZxXQt','20279480PccCdS','5664980dSmZRg','6747435KcjARx','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','7216864WDpBiK','28cBxBbJ','Внутренняя\x20неизвестная\x20ошибка','Загрузка','Файл\x20успешно\x20загружен','Загрузить\x20снова','19635gOpPfy','4jJpApV','Сохранить\x20как','645588IOWItv','1530573pxUovX','Открыть(Файл)','Данные\x20слишком\x20большие'];_0x401a=function(){return _0x23922e;};return _0x401a();}export{locale as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x59a1(){const _0x49e2ed=['Dáta\x20sú\x20príliš\x20veľké','6msAqTN','Interná\x20neznáma\x20chyba','Sieťová\x20chyba','5740640wiibbk','10501376vKFlIW','Sťahovanie\x20úspešné','Zrušiť','Sťahovanie','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','Uložiť\x20ako','2276162pNkQPT','Súbor','Otvoriť\x20(súbor)','6850hTprAW','2108661dCDJRZ','Nahrávanie','36bySdWX','Súbor\x20bol\x20úspešne\x20nahraný','Neznáma\x20chyba','243447nAjxSp','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','256735JvgmrJ','Nahrať\x20znova','56421cgrNEv','Prosím\x20počkajte...'];_0x59a1=function(){return _0x49e2ed;};return _0x59a1();}const _0x12fd5f=_0x1750;(function(_0x55084c,_0x555c55){const _0x48632f=_0x1750,_0x4c2dcf=_0x55084c();while(!![]){try{const _0xa43b4b=parseInt(_0x48632f(0x175))/0x1*(-parseInt(_0x48632f(0x17c))/0x2)+-parseInt(_0x48632f(0x170))/0x3+-parseInt(_0x48632f(0x17f))/0x4+parseInt(_0x48632f(0x177))/0x5*(parseInt(_0x48632f(0x172))/0x6)+parseInt(_0x48632f(0x16c))/0x7+-parseInt(_0x48632f(0x180))/0x8+parseInt(_0x48632f(0x179))/0x9*(parseInt(_0x48632f(0x16f))/0xa);if(_0xa43b4b===_0x555c55)break;else _0x4c2dcf['push'](_0x4c2dcf['shift']());}catch(_0x21a8d8){_0x4c2dcf['push'](_0x4c2dcf['shift']());}}}(_0x59a1,0xb63d5));const locale={'exchange':{'file':_0x12fd5f(0x16d),'upload':_0x12fd5f(0x16e),'download':_0x12fd5f(0x16b),'uploading':_0x12fd5f(0x171),'uploadSuccess':_0x12fd5f(0x173),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':_0x12fd5f(0x183),'downloadSuccess':_0x12fd5f(0x181),'unknownMistake':_0x12fd5f(0x174),'networkError':_0x12fd5f(0x17e),'tooLarge':_0x12fd5f(0x17b),'internalError':_0x12fd5f(0x17d),'interrupt':_0x12fd5f(0x184),'fileTypeError':_0x12fd5f(0x176),'wait':_0x12fd5f(0x17a),'cancel':_0x12fd5f(0x182),'uploadAgain':_0x12fd5f(0x178)}};function _0x1750(_0x4110cb,_0x3003e2){_0x4110cb=_0x4110cb-0x16b;const _0x59a1b8=_0x59a1();let _0x1750dc=_0x59a1b8[_0x4110cb];return _0x1750dc;}export{locale as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4c33(_0x32a7b3,_0x42dd85){_0x32a7b3=_0x32a7b3-0x129;const _0x105cb6=_0x105c();let _0x4c3344=_0x105cb6[_0x32a7b3];return _0x4c3344;}const _0x54a29a=_0x4c33;(function(_0x2dadfa,_0x1b4bdb){const _0x35cf31=_0x4c33,_0x4a8af6=_0x2dadfa();while(!![]){try{const _0x508310=-parseInt(_0x35cf31(0x136))/0x1+-parseInt(_0x35cf31(0x12c))/0x2+parseInt(_0x35cf31(0x132))/0x3*(-parseInt(_0x35cf31(0x13b))/0x4)+-parseInt(_0x35cf31(0x12e))/0x5+parseInt(_0x35cf31(0x135))/0x6+parseInt(_0x35cf31(0x138))/0x7+parseInt(_0x35cf31(0x133))/0x8;if(_0x508310===_0x1b4bdb)break;else _0x4a8af6['push'](_0x4a8af6['shift']());}catch(_0x1c97bb){_0x4a8af6['push'](_0x4a8af6['shift']());}}}(_0x105c,0x88f1e));const locale={'exchange':{'file':_0x54a29a(0x139),'upload':_0x54a29a(0x12f),'download':_0x54a29a(0x13c),'uploading':_0x54a29a(0x12a),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x54a29a(0x12d),'downloading':_0x54a29a(0x131),'downloadSuccess':_0x54a29a(0x129),'unknownMistake':_0x54a29a(0x130),'networkError':'Lỗi\x20mạng','tooLarge':_0x54a29a(0x13a),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x54a29a(0x137),'fileTypeError':_0x54a29a(0x12b),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x54a29a(0x134),'uploadAgain':'Tải\x20lên\x20lại'}};export{locale as default};function _0x105c(){const _0x9ac840=['Lưu\x20dưới\x20dạng','Tải\x20xuống\x20thành\x20công','Đang\x20tải\x20lên','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1832546TqNCAY','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','2893430FPbTfN','Mở\x20(Tệp)','Lỗi\x20không\x20xác\x20định','Đang\x20tải\x20xuống','3PnPsqO','11685104mGENil','Hủy\x20bỏ','6311334EoETWq','1046014eAsBSR','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','6731809YPWidN','Tệp','Luồng\x20dữ\x20liệu\x20quá\x20lớn','1489260atwoIk'];_0x105c=function(){return _0x9ac840;};return _0x105c();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3dc1(_0x53dd34,_0x29f204){_0x53dd34=_0x53dd34-0x6e;const _0x5b5414=_0x5b54();let _0x3dc12f=_0x5b5414[_0x53dd34];return _0x3dc12f;}const _0x237c38=_0x3dc1;function _0x5b54(){const _0x445f46=['3468615FzRaGx','762060gUbjVU','2822298KFUOHt','121VBzxfj','上传中','2rUkYkn','文件上传成功','1134licRAJ','924500UbQvJi','打开(文件)','内部未知错误','24632WzjaVp','下载成功','请稍等...','网络连接中断,文件上传失败','6vxETCf','3940573QQsVup','608807lvMwkn','另存为','所选文件\x20[{0}]\x20不支持上传','网络异常','未知错误','数据流过大'];_0x5b54=function(){return _0x445f46;};return _0x5b54();}(function(_0x143e0a,_0x560e34){const _0x278be6=_0x3dc1,_0x984964=_0x143e0a();while(!![]){try{const _0x35b9ad=parseInt(_0x278be6(0x7d))/0x1*(-parseInt(_0x278be6(0x71))/0x2)+parseInt(_0x278be6(0x7b))/0x3*(parseInt(_0x278be6(0x74))/0x4)+parseInt(_0x278be6(0x83))/0x5+parseInt(_0x278be6(0x6e))/0x6+parseInt(_0x278be6(0x7c))/0x7+-parseInt(_0x278be6(0x77))/0x8*(parseInt(_0x278be6(0x73))/0x9)+parseInt(_0x278be6(0x84))/0xa*(-parseInt(_0x278be6(0x6f))/0xb);if(_0x35b9ad===_0x560e34)break;else _0x984964['push'](_0x984964['shift']());}catch(_0xd3f6b4){_0x984964['push'](_0x984964['shift']());}}}(_0x5b54,0x567dc));const locale={'exchange':{'file':'文件','upload':_0x237c38(0x75),'download':_0x237c38(0x7e),'uploading':_0x237c38(0x70),'uploadSuccess':_0x237c38(0x72),'uploadSuccessTip':'{0}个文件上传成功','downloading':'下载中','downloadSuccess':_0x237c38(0x78),'unknownMistake':_0x237c38(0x81),'networkError':_0x237c38(0x80),'tooLarge':_0x237c38(0x82),'internalError':_0x237c38(0x76),'interrupt':_0x237c38(0x7a),'fileTypeError':_0x237c38(0x7f),'wait':_0x237c38(0x79),'cancel':'取消','uploadAgain':'再次上传'}};export{locale as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3688(_0xa2f30b,_0x5174c3){_0xa2f30b=_0xa2f30b-0xcf;const _0x1dc9b1=_0x1dc9();let _0x3688ca=_0x1dc9b1[_0xa2f30b];return _0x3688ca;}const _0xc5370d=_0x3688;function _0x1dc9(){const _0x2f3322=['資料流過大','7316415pnXVxJ','2BxJVcj','70JuqJMq','上傳中','所選檔案\x20[{0}]\x20不支援上傳','4AnTzHV','16zBYGfD','3549399XBciyn','5637390pyhVYk','請稍等...','下載中','網路連線中斷,檔案上傳失敗','開啟(檔案)','3566225ZmTudh','2524338zPmMFx','另存為','{0}個檔案上傳成功','網路異常','再次上傳','154965CbqegP','507969hgXrHT','未知錯誤'];_0x1dc9=function(){return _0x2f3322;};return _0x1dc9();}(function(_0x323e20,_0x379c58){const _0x30db91=_0x3688,_0x2d2a4c=_0x323e20();while(!![]){try{const _0x4feafa=parseInt(_0x30db91(0xd7))/0x1*(-parseInt(_0x30db91(0xdc))/0x2)+parseInt(_0x30db91(0xd2))/0x3*(-parseInt(_0x30db91(0xe0))/0x4)+parseInt(_0x30db91(0xd1))/0x5+parseInt(_0x30db91(0xe3))/0x6+parseInt(_0x30db91(0xe2))/0x7*(parseInt(_0x30db91(0xe1))/0x8)+-parseInt(_0x30db91(0xdb))/0x9+parseInt(_0x30db91(0xdd))/0xa*(-parseInt(_0x30db91(0xd8))/0xb);if(_0x4feafa===_0x379c58)break;else _0x2d2a4c['push'](_0x2d2a4c['shift']());}catch(_0x11b734){_0x2d2a4c['push'](_0x2d2a4c['shift']());}}}(_0x1dc9,0x82735));const locale={'exchange':{'file':'檔案','upload':_0xc5370d(0xd0),'download':_0xc5370d(0xd3),'uploading':_0xc5370d(0xde),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0xc5370d(0xd4),'downloading':_0xc5370d(0xe5),'downloadSuccess':'下載成功','unknownMistake':_0xc5370d(0xd9),'networkError':_0xc5370d(0xd5),'tooLarge':_0xc5370d(0xda),'internalError':'內部未知錯誤','interrupt':_0xc5370d(0xcf),'fileTypeError':_0xc5370d(0xdf),'wait':_0xc5370d(0xe4),'cancel':'取消','uploadAgain':_0xc5370d(0xd6)}};export{locale as default};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export { IRequestService, RequestService } from './services/request.service';
|
|
|
8
8
|
export { IUploadNotificationService, UploadNotificationService, UploadNotificationState } from './services/upload-notification.service';
|
|
9
9
|
export { transformDocumentDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson, } from './services/utils/snapshot';
|
|
10
10
|
export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
|
11
|
-
export { downloadFile,
|
|
11
|
+
export { downloadFile, getUniverInstanceTypeByFile, getUploadFile } from './services/utils/tool';
|
|
12
12
|
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
|
@@ -2,9 +2,8 @@ import type { IDisposable, IDocumentData, IWorkbookData } from '@univerjs/core';
|
|
|
2
2
|
import type { IError } from '@univerjs/protocol';
|
|
3
3
|
import type { Observable } from 'rxjs';
|
|
4
4
|
import type { RequestService } from './request.service';
|
|
5
|
-
import { Disposable, IConfigService } from '@univerjs/core';
|
|
5
|
+
import { Disposable, IConfigService, UniverInstanceType } from '@univerjs/core';
|
|
6
6
|
import { HTTPService } from '@univerjs/network';
|
|
7
|
-
import { UniverType } from '@univerjs/protocol';
|
|
8
7
|
export declare enum RequestState {
|
|
9
8
|
UPLOAD = 0,
|
|
10
9
|
IMPORT = 1,
|
|
@@ -57,7 +56,7 @@ export interface IExchangeService {
|
|
|
57
56
|
* @param file
|
|
58
57
|
* @param univerType
|
|
59
58
|
*/
|
|
60
|
-
importFileToUnitId(file: File | string, univerType:
|
|
59
|
+
importFileToUnitId(file: File | string, univerType: UniverInstanceType): Promise<string | undefined>;
|
|
61
60
|
/**
|
|
62
61
|
* Import workbook data to unit id
|
|
63
62
|
* @param snapshot
|
|
@@ -81,7 +80,7 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
|
81
80
|
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
|
82
81
|
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
|
83
82
|
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
|
84
|
-
importFileToUnitId(file: File | string, univerType:
|
|
83
|
+
importFileToUnitId(file: File | string, univerType: UniverInstanceType): Promise<string | undefined>;
|
|
85
84
|
importWorkbookDataToUnitId(snapshot: IWorkbookData): Promise<string | undefined>;
|
|
86
85
|
interruptImportTask(): void;
|
|
87
86
|
private _importToSnapshot;
|
|
@@ -3,7 +3,6 @@ import type { Observable } from 'rxjs';
|
|
|
3
3
|
import type { ExchangeService } from './exchange.service';
|
|
4
4
|
import type { UploadNotificationService } from './upload-notification.service';
|
|
5
5
|
import { Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
|
6
|
-
import { UniverType } from '@univerjs/protocol';
|
|
7
6
|
import { IMessageService } from '@univerjs/ui';
|
|
8
7
|
export interface IExchangeOperateService {
|
|
9
8
|
interrupt(): void;
|
|
@@ -41,7 +40,7 @@ export interface IExchangeOperateService {
|
|
|
41
40
|
* Export docx file by unitId
|
|
42
41
|
* @returns
|
|
43
42
|
*/
|
|
44
|
-
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?:
|
|
43
|
+
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
|
45
44
|
/**
|
|
46
45
|
* Export docx file by snapshot
|
|
47
46
|
* @returns
|
|
@@ -51,9 +50,9 @@ export interface IExchangeOperateService {
|
|
|
51
50
|
* Upload file, supports multiple types
|
|
52
51
|
* @param file
|
|
53
52
|
*/
|
|
54
|
-
uploadFileToUnitId(types:
|
|
53
|
+
uploadFileToUnitId(types: UniverInstanceType[]): Promise<{
|
|
55
54
|
unitId: string;
|
|
56
|
-
type:
|
|
55
|
+
type: UniverInstanceType;
|
|
57
56
|
} | undefined>;
|
|
58
57
|
/**
|
|
59
58
|
* Customize the imported Unit URL format according to the needs of your own scene
|
|
@@ -85,9 +84,9 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
|
85
84
|
private _doneUploadTaskCount;
|
|
86
85
|
constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService);
|
|
87
86
|
interrupt(): void;
|
|
88
|
-
uploadFileToUnitId(types:
|
|
87
|
+
uploadFileToUnitId(types: UniverInstanceType[]): Promise<{
|
|
89
88
|
unitId: string;
|
|
90
|
-
type:
|
|
89
|
+
type: UniverInstanceType;
|
|
91
90
|
} | undefined>;
|
|
92
91
|
importDOCXToUnitId(): Promise<string | undefined>;
|
|
93
92
|
importDOCXToSnapshot(): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDisposable } from '@univerjs/core';
|
|
2
|
-
import type { IError
|
|
1
|
+
import type { IDisposable, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import type { IError } from '@univerjs/protocol';
|
|
3
3
|
import type { ISheetBlockJson, ISnapshotJson } from './utils/snapshot';
|
|
4
4
|
import { IConfigService } from '@univerjs/core';
|
|
5
5
|
import { HTTPService } from '@univerjs/network';
|
|
@@ -17,7 +17,7 @@ export declare enum ImportOutputType {
|
|
|
17
17
|
}
|
|
18
18
|
export interface IImportRequest {
|
|
19
19
|
fileID: string;
|
|
20
|
-
type:
|
|
20
|
+
type: UniverInstanceType;
|
|
21
21
|
outputType: ImportOutputType;
|
|
22
22
|
/** not supported yet */
|
|
23
23
|
fileUrl: string;
|
|
@@ -33,7 +33,7 @@ export interface IExportRequest {
|
|
|
33
33
|
unitID: string;
|
|
34
34
|
/** If jsonID is specified, the input is the json file which represents a univer unit */
|
|
35
35
|
jsonID: string;
|
|
36
|
-
type:
|
|
36
|
+
type: UniverInstanceType;
|
|
37
37
|
/** If sscSwitch is set to true, server-side formula calculation will be triggered */
|
|
38
38
|
sscSwitch?: boolean;
|
|
39
39
|
/** If useImageUrl is set to true, cell images will not be converted to links on export */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { IDisposable } from '@univerjs/core';
|
|
2
|
-
import type { UniverType } from '@univerjs/protocol';
|
|
1
|
+
import type { IDisposable, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
import type { Observable } from 'rxjs';
|
|
4
3
|
import { Disposable } from '@univerjs/core';
|
|
5
4
|
export declare enum UploadNotificationState {
|
|
@@ -10,7 +9,7 @@ export declare enum UploadNotificationState {
|
|
|
10
9
|
export interface ILinkList {
|
|
11
10
|
link: string;
|
|
12
11
|
name: string;
|
|
13
|
-
type:
|
|
12
|
+
type: UniverInstanceType;
|
|
14
13
|
}
|
|
15
14
|
export interface IUploadNotificationService {
|
|
16
15
|
visible$: Observable<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTTPService } from '@univerjs/network';
|
|
2
|
-
import {
|
|
2
|
+
import { UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare function downloadFileByURL(url: string, filename: string, fileExt: string): void;
|
|
4
4
|
/**
|
|
5
5
|
* Triggers a download of a given File object.
|
|
@@ -8,12 +8,12 @@ export declare function downloadFileByURL(url: string, filename: string, fileExt
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function downloadFile(file: File | Blob, filename: string, fileExt: string): void;
|
|
10
10
|
/**
|
|
11
|
-
* Get the
|
|
11
|
+
* Get the UniverInstanceType of a file based on its content type and extension.
|
|
12
12
|
* @param file
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function getUploadFile(types:
|
|
15
|
+
export declare function getUniverInstanceTypeByFile(file: File): UniverInstanceType.UNIVER_UNKNOWN;
|
|
16
|
+
export declare function getUploadFile(types: UniverInstanceType[], multiple?: boolean): Promise<FileList | null>;
|
|
17
17
|
export declare function getFileByURL(url: string, httpService: HTTPService): Promise<File | undefined>;
|
|
18
18
|
export declare function getFileNameFromURL(url: string): string | undefined;
|
|
19
19
|
export declare function getTextFromURL(url: string, httpService: HTTPService): Promise<string | undefined>;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4d69(){const _0x5a48bc=['exportDOCXBySnapshotAsync','exportDOCXByUnitId','UniverInstanceType','importDOCXToSnapshotAsync','36190kDWHbN','470DVoidL','608370vsHYfg','_injector','function','exportXLSXByUnitId','198999pEYenX','importXLSXToSnapshotAsync','IExchangeService','@univerjs/core/facade','@univerjs-pro/exchange-client','importFileToUnitId','amd','2WqOabj','56488pyGRws','UNIVER_SHEET','exportDOCXBySnapshot','importXLSXToUnitIdAsync','13810tllBUb','3740253IuvQGv','importXLSXToSnapshot','UniverCore','exportXLSXByUnitIdAsync','get','extend','The\x20exchange\x20service\x20is\x20not\x20available','exportXLSXBySnapshotAsync','object','FUniver','3356ftopcV','35wAiepW','99zHPvIP','exportXLSXBySnapshot','12kGGdLs','exportDOCXByUnitIdAsync','UniverProExchangeClient'];_0x4d69=function(){return _0x5a48bc;};return _0x4d69();}function _0x5dbd(_0x21d27e,_0x336732){_0x21d27e=_0x21d27e-0x100;const _0x4d6933=_0x4d69();let _0x5dbdb9=_0x4d6933[_0x21d27e];return _0x5dbdb9;}(function(_0x1593f7,_0x2610f0){const _0x16eb59=_0x5dbd,_0x3595d7=_0x1593f7();while(!![]){try{const _0x316c27=-parseInt(_0x16eb59(0x110))/0x1+-parseInt(_0x16eb59(0x11d))/0x2*(parseInt(_0x16eb59(0x116))/0x3)+parseInt(_0x16eb59(0x105))/0x4*(-parseInt(_0x16eb59(0x111))/0x5)+-parseInt(_0x16eb59(0x112))/0x6+parseInt(_0x16eb59(0x106))/0x7*(parseInt(_0x16eb59(0x11e))/0x8)+-parseInt(_0x16eb59(0x107))/0x9*(-parseInt(_0x16eb59(0x122))/0xa)+-parseInt(_0x16eb59(0x123))/0xb*(-parseInt(_0x16eb59(0x109))/0xc);if(_0x316c27===_0x2610f0)break;else _0x3595d7['push'](_0x3595d7['shift']());}catch(_0x88ec8b){_0x3595d7['push'](_0x3595d7['shift']());}}}(_0x4d69,0x1a4d7),function(_0x3dc5e4,_0x31d8b6){const _0x5d15b4=_0x5dbd;typeof exports==_0x5d15b4(0x103)&&typeof module<'u'?_0x31d8b6(require(`@univerjs-pro/exchange-client`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define==_0x5d15b4(0x114)&&define[_0x5d15b4(0x11c)]?define([_0x5d15b4(0x11a),'@univerjs/core',_0x5d15b4(0x119)],_0x31d8b6):(_0x3dc5e4=typeof globalThis<'u'?globalThis:_0x3dc5e4||self,_0x31d8b6(_0x3dc5e4[_0x5d15b4(0x10b)],_0x3dc5e4[_0x5d15b4(0x125)],_0x3dc5e4['UniverCoreFacade']));}(this,function(_0x3c31c0,_0x550d2a,_0x177f16){const _0x38dc57=_0x5dbd;var _0x40cc89=class extends _0x177f16[_0x38dc57(0x104)]{async[_0x38dc57(0x121)](_0x52b349){const _0x1b65da=_0x38dc57;let _0xc2f433=this[_0x1b65da(0x113)][_0x1b65da(0x127)](_0x3c31c0['IExchangeService']);if(!_0xc2f433)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc2f433[_0x1b65da(0x11b)](_0x52b349,_0x550d2a['UniverInstanceType'][_0x1b65da(0x11f)]);}async[_0x38dc57(0x117)](_0x2a310c){const _0x436edc=_0x38dc57;let _0x2c3a43=this[_0x436edc(0x113)][_0x436edc(0x127)](_0x3c31c0['IExchangeService']);if(!_0x2c3a43)throw Error(_0x436edc(0x101));return _0x2c3a43[_0x436edc(0x124)](_0x2a310c);}async[_0x38dc57(0x126)](_0x3eb091){const _0x2dd1e6=_0x38dc57;let _0x2c9f1a=this[_0x2dd1e6(0x113)]['get'](_0x3c31c0['IExchangeService']);if(!_0x2c9f1a)throw Error(_0x2dd1e6(0x101));return _0x2c9f1a[_0x2dd1e6(0x115)](_0x3eb091);}async[_0x38dc57(0x102)](_0x15fc77){const _0xa8fea5=_0x38dc57;let _0x59a570=this[_0xa8fea5(0x113)][_0xa8fea5(0x127)](_0x3c31c0[_0xa8fea5(0x118)]);if(!_0x59a570)throw Error(_0xa8fea5(0x101));return _0x59a570[_0xa8fea5(0x108)](_0x15fc77);}async['importDOCXToUnitIdAsync'](_0x28aac7){const _0xe8cb9c=_0x38dc57;let _0x3f25a8=this['_injector']['get'](_0x3c31c0[_0xe8cb9c(0x118)]);if(!_0x3f25a8)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3f25a8[_0xe8cb9c(0x11b)](_0x28aac7,_0x550d2a[_0xe8cb9c(0x10e)]['UNIVER_DOC']);}async[_0x38dc57(0x10f)](_0x19f347){const _0x21c7a1=_0x38dc57;let _0x5a3904=this['_injector'][_0x21c7a1(0x127)](_0x3c31c0[_0x21c7a1(0x118)]);if(!_0x5a3904)throw Error(_0x21c7a1(0x101));return _0x5a3904['importDOCXToSnapshot'](_0x19f347);}async[_0x38dc57(0x10c)](_0xa5dbb3){const _0x42edf2=_0x38dc57;let _0x3fc56a=this['_injector']['get'](_0x3c31c0[_0x42edf2(0x118)]);if(!_0x3fc56a)throw Error(_0x42edf2(0x101));return _0x3fc56a[_0x42edf2(0x120)](_0xa5dbb3);}async[_0x38dc57(0x10a)](_0x2827d2){const _0x242553=_0x38dc57;let _0x5655df=this[_0x242553(0x113)]['get'](_0x3c31c0[_0x242553(0x118)]);if(!_0x5655df)throw Error(_0x242553(0x101));return _0x5655df[_0x242553(0x10d)](_0x2827d2);}};_0x177f16['FUniver'][_0x38dc57(0x100)](_0x40cc89);}));
|