@univerjs-pro/exchange-client 0.6.0 → 0.6.1-nightly.202502221605
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/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/services/operate.service.d.ts +8 -0
- package/lib/types/services/utils/content-type.d.ts +16 -0
- package/lib/types/services/utils/tool.d.ts +6 -1
- 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 +12 -12
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x24de47=_0x2000;function _0x2000(_0x1ab715,_0x418a39){const _0xcab41a=_0xcab4();return _0x2000=function(_0x200060,_0x40526c){_0x200060=_0x200060-0x1dd;let _0x552d13=_0xcab41a[_0x200060];return _0x552d13;},_0x2000(_0x1ab715,_0x418a39);}(function(_0x28ca75,_0x54418c){const _0x5ce0cb=_0x2000,_0x2a2e73=_0x28ca75();while(!![]){try{const _0x4794e4=-parseInt(_0x5ce0cb(0x1e2))/0x1*(parseInt(_0x5ce0cb(0x1f1))/0x2)+-parseInt(_0x5ce0cb(0x1dd))/0x3+parseInt(_0x5ce0cb(0x1df))/0x4*(parseInt(_0x5ce0cb(0x1e5))/0x5)+parseInt(_0x5ce0cb(0x1e9))/0x6*(-parseInt(_0x5ce0cb(0x1e3))/0x7)+parseInt(_0x5ce0cb(0x1e8))/0x8+parseInt(_0x5ce0cb(0x1ea))/0x9+parseInt(_0x5ce0cb(0x1e0))/0xa;if(_0x4794e4===_0x54418c)break;else _0x2a2e73['push'](_0x2a2e73['shift']());}catch(_0x2a4ac6){_0x2a2e73['push'](_0x2a2e73['shift']());}}}(_0xcab4,0x27bcc));const e={'exchange':{'file':_0x24de47(0x1e6),'upload':_0x24de47(0x1f2),'download':_0x24de47(0x1de),'uploading':_0x24de47(0x1f3),'uploadSuccess':_0x24de47(0x1ef),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x24de47(0x1eb),'downloadSuccess':'Download\x20success','unknownMistake':_0x24de47(0x1ed),'networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':_0x24de47(0x1f0),'interrupt':_0x24de47(0x1e1),'fileTypeError':_0x24de47(0x1e4),'wait':_0x24de47(0x1ec),'cancel':_0x24de47(0x1ee),'uploadAgain':_0x24de47(0x1e7)}};function _0xcab4(){const _0x52956e=['194473ubdfTH','14wvTHOD','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','1315105XVVmLW','File','Upload\x20again','757952CCRBMA','845346oUFfzH','556803RnpygC','Downloading','Please\x20wait...','Unknown\x20mistake','Cancel','File\x20uploaded\x20successfully','Internal\x20unknown\x20error','2bzpwJj','Open(File)','Uploading','665232XckNeb','Save\x20As','4TvefVb','4411310hcerLp','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed'];_0xcab4=function(){return _0x52956e;};return _0xcab4();}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x473791=_0x988d;function _0x58ab(){const _0x2f0fd5=['13506YIcRfb','80qNHntr','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','ذخیره\x20به\x20عنوان','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','بارگذاری\x20مجدد','457872KCnltf','4871517rfDLTf','366832GdYFfw','داده\x20خیلی\x20بزرگ\x20است','8556012PHSsCK','بازکردن(فایل)','36fcYnJk','لطفا\x20صبر\x20کنید...','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','در\x20حال\x20بارگذاری','فایل','1018746yWEpRM','دانلود\x20موفقیت\x20آمیز','5373260zlkLLv','لغو','در\x20حال\x20دانلود','85YYIyBf','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد'];_0x58ab=function(){return _0x2f0fd5;};return _0x58ab();}(function(_0x60ff35,_0x5e52c5){const _0x3477b2=_0x988d,_0x551f27=_0x60ff35();while(!![]){try{const _0x31bfb7=-parseInt(_0x3477b2(0x1bb))/0x1+-parseInt(_0x3477b2(0x1b5))/0x2*(parseInt(_0x3477b2(0x1a9))/0x3)+parseInt(_0x3477b2(0x1a5))/0x4*(parseInt(_0x3477b2(0x1b3))/0x5)+-parseInt(_0x3477b2(0x1a7))/0x6+parseInt(_0x3477b2(0x1bc))/0x7+-parseInt(_0x3477b2(0x1b6))/0x8*(-parseInt(_0x3477b2(0x1ae))/0x9)+-parseInt(_0x3477b2(0x1b0))/0xa;if(_0x31bfb7===_0x5e52c5)break;else _0x551f27['push'](_0x551f27['shift']());}catch(_0x10ad88){_0x551f27['push'](_0x551f27['shift']());}}}(_0x58ab,0xd7fbf));function _0x988d(_0x6dc996,_0x119cec){const _0x58ab4d=_0x58ab();return _0x988d=function(_0x988d48,_0x1d9bdb){_0x988d48=_0x988d48-0x1a5;let _0x239e5c=_0x58ab4d[_0x988d48];return _0x239e5c;},_0x988d(_0x6dc996,_0x119cec);}const o={'exchange':{'file':_0x473791(0x1ad),'upload':_0x473791(0x1a8),'download':_0x473791(0x1b8),'uploading':_0x473791(0x1ac),'uploadSuccess':_0x473791(0x1b4),'uploadSuccessTip':_0x473791(0x1ab),'downloading':_0x473791(0x1b2),'downloadSuccess':_0x473791(0x1af),'unknownMistake':'خطای\x20ناشناخته','networkError':'خطای\x20شبکه','tooLarge':_0x473791(0x1a6),'internalError':'خطای\x20داخلی\x20ناشناخته','interrupt':_0x473791(0x1b7),'fileTypeError':_0x473791(0x1b9),'wait':_0x473791(0x1aa),'cancel':_0x473791(0x1b1),'uploadAgain':_0x473791(0x1ba)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x25c29e=_0x1b2f;(function(_0x304015,_0x2e49e5){const _0x390115=_0x1b2f,_0x562b40=_0x304015();while(!![]){try{const _0x4b6064=parseInt(_0x390115(0xe4))/0x1*(parseInt(_0x390115(0xd2))/0x2)+parseInt(_0x390115(0xd6))/0x3+parseInt(_0x390115(0xe5))/0x4*(parseInt(_0x390115(0xcf))/0x5)+parseInt(_0x390115(0xda))/0x6*(-parseInt(_0x390115(0xd5))/0x7)+parseInt(_0x390115(0xd8))/0x8*(-parseInt(_0x390115(0xe1))/0x9)+-parseInt(_0x390115(0xd0))/0xa*(-parseInt(_0x390115(0xe2))/0xb)+parseInt(_0x390115(0xe3))/0xc*(-parseInt(_0x390115(0xdd))/0xd);if(_0x4b6064===_0x2e49e5)break;else _0x562b40['push'](_0x562b40['shift']());}catch(_0xe8127c){_0x562b40['push'](_0x562b40['shift']());}}}(_0x40e2,0xde9aa));function _0x1b2f(_0x5ab82a,_0x1625d2){const _0x40e293=_0x40e2();return _0x1b2f=function(_0x1b2f25,_0x2c60a8){_0x1b2f25=_0x1b2f25-0xcf;let _0x5c0a92=_0x40e293[_0x1b2f25];return _0x5c0a92;},_0x1b2f(_0x5ab82a,_0x1625d2);}function _0x40e2(){const _0x478599=['Erreur\x20interne\x20inconnue','1896635IecVfG','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Télécharger\x20à\x20nouveau','Erreur\x20réseau','45DSETOU','719631YSuvhu','204fbRQMI','165350gnKsMP','6332EdUcoJ','2360yJHnOZ','250ASmhtX','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','16ptsiVp','Ouvrir\x20(Fichier)','Enregistrer\x20sous','7NhmHby','1836918BmWhGa','Téléchargement\x20en\x20cours','1472248YNDxsH','Veuillez\x20patienter...','33906JAGSjB','Téléchargement\x20réussi'];_0x40e2=function(){return _0x478599;};return _0x40e2();}const e={'exchange':{'file':'Fichier','upload':_0x25c29e(0xd3),'download':_0x25c29e(0xd4),'uploading':_0x25c29e(0xd7),'uploadSuccess':'Fichier\x20téléchargé\x20avec\x20succès','uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':'Téléchargement','downloadSuccess':_0x25c29e(0xdb),'unknownMistake':'Erreur\x20inconnue','networkError':_0x25c29e(0xe0),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x25c29e(0xdc),'interrupt':_0x25c29e(0xd1),'fileTypeError':_0x25c29e(0xde),'wait':_0x25c29e(0xd9),'cancel':'Annuler','uploadAgain':_0x25c29e(0xdf)}};export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x183b99=_0x58fb;(function(_0x4df2b6,_0x1b9217){const _0x1f9116=_0x58fb,_0x3a1df4=_0x4df2b6();while(!![]){try{const _0x2f8cc6=parseInt(_0x1f9116(0xef))/0x1+parseInt(_0x1f9116(0xe5))/0x2+parseInt(_0x1f9116(0xf3))/0x3*(parseInt(_0x1f9116(0xf6))/0x4)+parseInt(_0x1f9116(0xe6))/0x5*(parseInt(_0x1f9116(0xe4))/0x6)+parseInt(_0x1f9116(0xe8))/0x7*(parseInt(_0x1f9116(0xf4))/0x8)+-parseInt(_0x1f9116(0xfb))/0x9*(parseInt(_0x1f9116(0xe3))/0xa)+-parseInt(_0x1f9116(0xf8))/0xb;if(_0x2f8cc6===_0x1b9217)break;else _0x3a1df4['push'](_0x3a1df4['shift']());}catch(_0x4bb4cd){_0x3a1df4['push'](_0x3a1df4['shift']());}}}(_0x3bc5,0xd198b));function _0x58fb(_0xc6e044,_0x14f31f){const _0x3bc53a=_0x3bc5();return _0x58fb=function(_0x58fb71,_0x37d6db){_0x58fb71=_0x58fb71-0xe3;let _0x3ce7aa=_0x3bc53a[_0x58fb71];return _0x3ce7aa;},_0x58fb(_0xc6e044,_0x14f31f);}function _0x3bc5(){const _0x15e5cd=['739395uUZkbK','Файл','753683DhmAyy','Загрузить\x20снова','Открыть(Файл)','Пожалуйста,\x20подождите...','Внутренняя\x20неизвестная\x20ошибка','Данные\x20слишком\x20большие','Файл\x20успешно\x20загружен','737015LQjkZx','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Скачивание\x20успешно','Неизвестная\x20ошибка','32397tfrhwt','56eSNgOm','Сетевая\x20ошибка','388GQhJwK','Сохранить\x20как','30342136UuShCk','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Скачивание','81oMASYP','617420dLMHBs','60DZLpou','311140YcbeSI'];_0x3bc5=function(){return _0x15e5cd;};return _0x3bc5();}const o={'exchange':{'file':_0x183b99(0xe7),'upload':_0x183b99(0xea),'download':_0x183b99(0xf7),'uploading':'Загрузка','uploadSuccess':_0x183b99(0xee),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x183b99(0xfa),'downloadSuccess':_0x183b99(0xf1),'unknownMistake':_0x183b99(0xf2),'networkError':_0x183b99(0xf5),'tooLarge':_0x183b99(0xed),'internalError':_0x183b99(0xec),'interrupt':_0x183b99(0xf0),'fileTypeError':_0x183b99(0xf9),'wait':_0x183b99(0xeb),'cancel':'Отмена','uploadAgain':_0x183b99(0xe9)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x390b19=_0x2dbf;(function(_0xf97c39,_0x232a4d){const _0x26f684=_0x2dbf,_0x1c1105=_0xf97c39();while(!![]){try{const _0x4f6e9b=-parseInt(_0x26f684(0xa8))/0x1*(-parseInt(_0x26f684(0xab))/0x2)+parseInt(_0x26f684(0xb4))/0x3+parseInt(_0x26f684(0xaa))/0x4*(-parseInt(_0x26f684(0xb2))/0x5)+parseInt(_0x26f684(0xa7))/0x6+parseInt(_0x26f684(0xb0))/0x7*(-parseInt(_0x26f684(0xaf))/0x8)+parseInt(_0x26f684(0xb6))/0x9*(parseInt(_0x26f684(0xac))/0xa)+-parseInt(_0x26f684(0xb7))/0xb*(-parseInt(_0x26f684(0xbc))/0xc);if(_0x4f6e9b===_0x232a4d)break;else _0x1c1105['push'](_0x1c1105['shift']());}catch(_0x2128ca){_0x1c1105['push'](_0x1c1105['shift']());}}}(_0x3225,0x88faf));const n={'exchange':{'file':_0x390b19(0xb5),'upload':_0x390b19(0xad),'download':_0x390b19(0xae),'uploading':_0x390b19(0xa6),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x390b19(0xb1),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x390b19(0xb3),'networkError':_0x390b19(0xb9),'tooLarge':_0x390b19(0xba),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x390b19(0xa9),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x390b19(0xbb),'uploadAgain':_0x390b19(0xb8)}};function _0x3225(){const _0x3bb986=['Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','124mbvVJR','15594SpMljv','194690gjONJc','Mở\x20(Tệp)','Lưu\x20dưới\x20dạng','48ltykkw','537733IVXbQg','Đang\x20tải\x20xuống','179195UWFIwm','Lỗi\x20không\x20xác\x20định','111015FMPZVo','Tệp','171jpCtEZ','6741911SWeKOv','Tải\x20lên\x20lại','Lỗi\x20mạng','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Hủy\x20bỏ','12okmFby','Đang\x20tải\x20lên','2281554yEQqFD','94EHHhqR'];_0x3225=function(){return _0x3bb986;};return _0x3225();}function _0x2dbf(_0x1380d6,_0x409863){const _0x3225eb=_0x3225();return _0x2dbf=function(_0x2dbf8f,_0x31fa64){_0x2dbf8f=_0x2dbf8f-0xa6;let _0x357b8b=_0x3225eb[_0x2dbf8f];return _0x357b8b;},_0x2dbf(_0x1380d6,_0x409863);}export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x45cb7a=_0x2d56;function _0x2d56(_0x575ec3,_0x2cf929){const _0x1e105a=_0x1e10();return _0x2d56=function(_0x2d5686,_0xe2efee){_0x2d5686=_0x2d5686-0xca;let _0x4f2e3c=_0x1e105a[_0x2d5686];return _0x4f2e3c;},_0x2d56(_0x575ec3,_0x2cf929);}function _0x1e10(){const _0x4137af=['18QzHinl','4068532RFIMBc','网络连接中断,文件上传失败','6694014vKOMDg','23080ZjSmuo','{0}个文件上传成功','11oNHMEo','5335160UfzSoJ','网络异常','623404DlVwMW','打开(文件)','内部未知错误','133170rrVxrt','请稍等...','文件上传成功','未知错误','数据流过大','1687jbGuvq','上传中','3vDxTUm','17283192POQvOK','另存为','3CoTDTd'];_0x1e10=function(){return _0x4137af;};return _0x1e10();}(function(_0x3520c8,_0x53cab9){const _0x20826a=_0x2d56,_0x1a8f88=_0x3520c8();while(!![]){try{const _0x1ca6b7=-parseInt(_0x20826a(0xca))/0x1*(parseInt(_0x20826a(0xd7))/0x2)+-parseInt(_0x20826a(0xcd))/0x3*(-parseInt(_0x20826a(0xcf))/0x4)+parseInt(_0x20826a(0xda))/0x5+parseInt(_0x20826a(0xd1))/0x6+-parseInt(_0x20826a(0xdf))/0x7*(parseInt(_0x20826a(0xd2))/0x8)+-parseInt(_0x20826a(0xce))/0x9*(parseInt(_0x20826a(0xd5))/0xa)+-parseInt(_0x20826a(0xd4))/0xb*(-parseInt(_0x20826a(0xcb))/0xc);if(_0x1ca6b7===_0x53cab9)break;else _0x1a8f88['push'](_0x1a8f88['shift']());}catch(_0x61f879){_0x1a8f88['push'](_0x1a8f88['shift']());}}}(_0x1e10,0xdc487));const o={'exchange':{'file':'文件','upload':_0x45cb7a(0xd8),'download':_0x45cb7a(0xcc),'uploading':_0x45cb7a(0xe0),'uploadSuccess':_0x45cb7a(0xdc),'uploadSuccessTip':_0x45cb7a(0xd3),'downloading':'下载中','downloadSuccess':'下载成功','unknownMistake':_0x45cb7a(0xdd),'networkError':_0x45cb7a(0xd6),'tooLarge':_0x45cb7a(0xde),'internalError':_0x45cb7a(0xd9),'interrupt':_0x45cb7a(0xd0),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x45cb7a(0xdb),'cancel':'取消','uploadAgain':'再次上传'}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x228b23=_0xb589;(function(_0x14a8d5,_0x26247e){const _0x4220b6=_0xb589,_0x2ae14a=_0x14a8d5();while(!![]){try{const _0x356f84=parseInt(_0x4220b6(0x112))/0x1+parseInt(_0x4220b6(0x11d))/0x2*(-parseInt(_0x4220b6(0x129))/0x3)+-parseInt(_0x4220b6(0x11f))/0x4*(parseInt(_0x4220b6(0x119))/0x5)+-parseInt(_0x4220b6(0x11b))/0x6+parseInt(_0x4220b6(0x11e))/0x7*(-parseInt(_0x4220b6(0x123))/0x8)+parseInt(_0x4220b6(0x126))/0x9*(parseInt(_0x4220b6(0x121))/0xa)+-parseInt(_0x4220b6(0x125))/0xb*(-parseInt(_0x4220b6(0x11c))/0xc);if(_0x356f84===_0x26247e)break;else _0x2ae14a['push'](_0x2ae14a['shift']());}catch(_0x420743){_0x2ae14a['push'](_0x2ae14a['shift']());}}}(_0x1b50,0x665be));const o={'exchange':{'file':'檔案','upload':_0x228b23(0x113),'download':_0x228b23(0x118),'uploading':_0x228b23(0x124),'uploadSuccess':_0x228b23(0x128),'uploadSuccessTip':_0x228b23(0x117),'downloading':'下載中','downloadSuccess':_0x228b23(0x120),'unknownMistake':'未知錯誤','networkError':_0x228b23(0x115),'tooLarge':_0x228b23(0x114),'internalError':_0x228b23(0x11a),'interrupt':_0x228b23(0x116),'fileTypeError':_0x228b23(0x122),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x228b23(0x127)}};export{o as default};function _0xb589(_0x261613,_0x1a751f){const _0x1b5074=_0x1b50();return _0xb589=function(_0xb58953,_0x2ea85b){_0xb58953=_0xb58953-0x112;let _0x187467=_0x1b5074[_0xb58953];return _0x187467;},_0xb589(_0x261613,_0x1a751f);}function _0x1b50(){const _0x25fd7d=['14jASzfd','292OEPMOb','下載成功','10TMCmcq','所選檔案\x20[{0}]\x20不支援上傳','2756776BJzpyo','上傳中','110ORykyC','5333931niNhuF','再次上傳','檔案上傳成功','51hfXuaR','268452xtMdlo','開啟(檔案)','資料流過大','網路異常','網路連線中斷,檔案上傳失敗','{0}個檔案上傳成功','另存為','49510BiXjvf','內部未知錯誤','4594356amRtHX','2718336mJBbhI','62278HsGezG'];_0x1b50=function(){return _0x25fd7d;};return _0x1b50();}
|
@@ -118,4 +118,12 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
118
118
|
private _addDoneTask;
|
119
119
|
private _completeProgress;
|
120
120
|
private _clearProgress;
|
121
|
+
/**
|
122
|
+
* Although we have specified the supported file types in advance, users can still switch to select all types of files.
|
123
|
+
In order to prevent such unsupported files from being transmitted to the server, they need to be intercepted in advance.
|
124
|
+
* @param fileList
|
125
|
+
* @param type
|
126
|
+
* @returns
|
127
|
+
*/
|
128
|
+
private _fileTypeError;
|
121
129
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
2
|
+
export declare const XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
3
|
+
export declare const XLSM = "application/vnd.ms-excel.sheet.macroEnabled.12";
|
4
|
+
export declare const XLTX = "application/vnd.openxmlformats-officedocument.spreadsheetml.template";
|
5
|
+
export declare const PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
6
|
+
export declare const UNIT_CONTENT_TYPE: {
|
7
|
+
0: string[];
|
8
|
+
1: string[];
|
9
|
+
2: string[];
|
10
|
+
3: string[];
|
11
|
+
4: string[];
|
12
|
+
[-1]: string[];
|
13
|
+
};
|
14
|
+
export declare const CONTENT_TYPE_EXTNAME: {
|
15
|
+
[key: string]: string;
|
16
|
+
};
|
@@ -6,7 +6,12 @@ export declare function downloadFileByURL(url: string, filename: string, fileExt
|
|
6
6
|
* @param {File} file - The File object to be downloaded.
|
7
7
|
*/
|
8
8
|
export declare function downloadFile(file: File | Blob, filename: string, fileExt: string): void;
|
9
|
-
|
9
|
+
/**
|
10
|
+
* Get the UniverType of a file based on its content type and extension.
|
11
|
+
* @param file
|
12
|
+
* @returns
|
13
|
+
*/
|
14
|
+
export declare function getUniverTypeByFile(file: File): UniverType.UNIVER_UNKNOWN;
|
10
15
|
export declare function getUploadFile(types: UniverType[], multiple?: boolean): Promise<FileList | null>;
|
11
16
|
export declare function getFileByURL(url: string): Promise<File | undefined>;
|
12
17
|
export declare function getFileNameFromURL(url: string): string | undefined;
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x20c7ce,_0x28308b){const _0x4bb695=_0x2c13,_0x3a4806=_0x20c7ce();while(!![]){try{const _0x52cdce=parseInt(_0x4bb695(0x12d))/0x1*(-parseInt(_0x4bb695(0x111))/0x2)+-parseInt(_0x4bb695(0x120))/0x3+parseInt(_0x4bb695(0x122))/0x4*(-parseInt(_0x4bb695(0x12c))/0x5)+-parseInt(_0x4bb695(0x125))/0x6+-parseInt(_0x4bb695(0x109))/0x7+-parseInt(_0x4bb695(0x114))/0x8+parseInt(_0x4bb695(0x129))/0x9*(parseInt(_0x4bb695(0x11f))/0xa);if(_0x52cdce===_0x28308b)break;else _0x3a4806['push'](_0x3a4806['shift']());}catch(_0x5ef1bc){_0x3a4806['push'](_0x3a4806['shift']());}}}(_0x5d29,0x76361),function(_0x1842e6,_0x2f29df){const _0x4d29fa=_0x2c13;typeof exports=='object'&&typeof module<'u'?_0x2f29df(require(_0x4d29fa(0x12a)),require(_0x4d29fa(0x117))):typeof define==_0x4d29fa(0x10b)&&define[_0x4d29fa(0x128)]?define([_0x4d29fa(0x12a),_0x4d29fa(0x117)],_0x2f29df):(_0x1842e6=typeof globalThis<'u'?globalThis:_0x1842e6||self,_0x2f29df(_0x1842e6[_0x4d29fa(0x110)],_0x1842e6['UniverCoreFacade']));}(this,function(_0x58be37,_0x141510){'use strict';const _0x190327=_0x2c13;var _0x12d2df=(_0xff8e1b=>(_0xff8e1b[_0xff8e1b[_0x190327(0x10a)]=0x0]=_0x190327(0x10a),_0xff8e1b[_0xff8e1b[_0x190327(0x123)]=0x1]=_0x190327(0x123),_0xff8e1b[_0xff8e1b[_0x190327(0x113)]=0x2]=_0x190327(0x113),_0xff8e1b[_0xff8e1b[_0x190327(0x107)]=0x3]='UNIVER_SLIDE',_0xff8e1b[_0xff8e1b[_0x190327(0x10d)]=0x4]='UNIVER_PROJECT',_0xff8e1b[_0xff8e1b[_0x190327(0x10c)]=-0x1]=_0x190327(0x10c),_0xff8e1b))(_0x12d2df||{});class _0x2d498c extends _0x141510['FUniver']{async[_0x190327(0x11d)](_0x2a3d51){const _0x25d14b=_0x190327;return this[_0x25d14b(0x12b)](_0x2a3d51);}async[_0x190327(0x12b)](_0x15447d){const _0x2697a1=_0x190327,_0x3f5c42=this[_0x2697a1(0x121)][_0x2697a1(0x127)](_0x58be37[_0x2697a1(0x124)]);if(!_0x3f5c42)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3f5c42[_0x2697a1(0x11b)](_0x15447d,_0x12d2df[_0x2697a1(0x113)]);}async[_0x190327(0x112)](_0x521683){const _0x548c9f=_0x190327;return this[_0x548c9f(0x10f)](_0x521683);}async[_0x190327(0x10f)](_0x47aa61){const _0x384d06=_0x190327,_0x1e6ec4=this[_0x384d06(0x121)][_0x384d06(0x127)](_0x58be37['IExchangeService']);if(!_0x1e6ec4)throw new Error(_0x384d06(0x108));return _0x1e6ec4[_0x384d06(0x112)](_0x47aa61);}async[_0x190327(0x118)](_0x2742cb){return this['exportXLSXByUnitIdAsync'](_0x2742cb);}async[_0x190327(0x11a)](_0x564af1){const _0x305943=_0x190327,_0x1fe960=this[_0x305943(0x121)]['get'](_0x58be37[_0x305943(0x124)]);if(!_0x1fe960)throw new Error(_0x305943(0x108));return _0x1fe960[_0x305943(0x118)](_0x564af1);}async[_0x190327(0x126)](_0x1a14e3){return this['exportXLSXBySnapshotAsync'](_0x1a14e3);}async[_0x190327(0x119)](_0x2a791a){const _0x2a380=_0x190327,_0xc8e0a8=this[_0x2a380(0x121)]['get'](_0x58be37['IExchangeService']);if(!_0xc8e0a8)throw new Error(_0x2a380(0x108));return _0xc8e0a8[_0x2a380(0x126)](_0x2a791a);}async['importDOCXToUnitId'](_0x1e0fba){const _0x4d03b1=_0x190327;return this[_0x4d03b1(0x116)](_0x1e0fba);}async[_0x190327(0x116)](_0x49ab51){const _0x173ad1=_0x190327,_0x2f4a95=this[_0x173ad1(0x121)][_0x173ad1(0x127)](_0x58be37['IExchangeService']);if(!_0x2f4a95)throw new Error(_0x173ad1(0x108));return _0x2f4a95['importFileToUnitId'](_0x49ab51,_0x12d2df[_0x173ad1(0x123)]);}async[_0x190327(0x11c)](_0x4a4bd3){return this['importDOCXToSnapshotAsync'](_0x4a4bd3);}async[_0x190327(0x10e)](_0xe2b8d6){const _0x493919=_0x190327,_0x434a8f=this[_0x493919(0x121)][_0x493919(0x127)](_0x58be37[_0x493919(0x124)]);if(!_0x434a8f)throw new Error(_0x493919(0x108));return _0x434a8f[_0x493919(0x11c)](_0xe2b8d6);}}_0x141510[_0x190327(0x11e)][_0x190327(0x115)](_0x2d498c);}));function _0x2c13(_0x104855,_0x157d4c){const _0x5d29c3=_0x5d29();return _0x2c13=function(_0x2c138e,_0x19af58){_0x2c138e=_0x2c138e-0x107;let _0x257610=_0x5d29c3[_0x2c138e];return _0x257610;},_0x2c13(_0x104855,_0x157d4c);}function _0x5d29(){const _0x3abf5b=['importXLSXToSnapshotAsync','UniverProExchangeClient','2WBBFIC','importXLSXToSnapshot','UNIVER_SHEET','493272sPPkFP','extend','importDOCXToUnitIdAsync','@univerjs/core/facade','exportXLSXByUnitId','exportXLSXBySnapshotAsync','exportXLSXByUnitIdAsync','importFileToUnitId','importDOCXToSnapshot','importXLSXToUnitId','FUniver','10gnEzpJ','1200402XCsxDd','_injector','1267132WqVPUw','UNIVER_DOC','IExchangeService','3793254BepjJo','exportXLSXBySnapshot','get','amd','28476999kCbJlp','@univerjs-pro/exchange-client','importXLSXToUnitIdAsync','5kbZKTd','738887DARXgn','UNIVER_SLIDE','The\x20exchange\x20service\x20is\x20not\x20available','3711722zoCdvX','UNIVER_UNKNOWN','function','UNRECOGNIZED','UNIVER_PROJECT','importDOCXToSnapshotAsync'];_0x5d29=function(){return _0x3abf5b;};return _0x5d29();}
|