@univerjs-pro/exchange-client 0.6.0-experimental.20250125-1d060b9 → 0.6.0-experimental.20250220-d9a8e74
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/index.css +1 -1
- package/lib/types/facade/f-univer.d.ts +3 -2
- package/lib/types/index.d.ts +1 -0
- 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 +13 -13
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x4159(){const _0x5cdd10=['Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','182780GZphmG','Downloading','8uMiJFJ','6314628ECbkrT','9KewuBg','1872939NbqxNG','Download\x20success','1518320McjGUr','5KPSiwm','File\x20uploaded\x20successfully','Network\x20error','Data\x20is\x20too\x20large','715670Wuxabz','2igVxpq','441469GUbzrz','Please\x20wait...','Upload\x20again','Save\x20As','19893632kzzVxG','Internal\x20unknown\x20error','Cancel','Unknown\x20mistake'];_0x4159=function(){return _0x5cdd10;};return _0x4159();}const _0x10c70a=_0x3c0b;(function(_0x35a234,_0x5b9ad9){const _0x4a1440=_0x3c0b,_0xf36639=_0x35a234();while(!![]){try{const _0x50e178=-parseInt(_0x4a1440(0x85))/0x1+-parseInt(_0x4a1440(0x92))/0x2*(-parseInt(_0x4a1440(0x8a))/0x3)+-parseInt(_0x4a1440(0x8c))/0x4+-parseInt(_0x4a1440(0x8d))/0x5*(parseInt(_0x4a1440(0x88))/0x6)+-parseInt(_0x4a1440(0x7c))/0x7*(parseInt(_0x4a1440(0x87))/0x8)+parseInt(_0x4a1440(0x89))/0x9*(-parseInt(_0x4a1440(0x91))/0xa)+parseInt(_0x4a1440(0x80))/0xb;if(_0x50e178===_0x5b9ad9)break;else _0xf36639['push'](_0xf36639['shift']());}catch(_0x455668){_0xf36639['push'](_0xf36639['shift']());}}}(_0x4159,0xa6d81));const e={'exchange':{'file':'File','upload':'Open(File)','download':_0x10c70a(0x7f),'uploading':'Uploading','uploadSuccess':_0x10c70a(0x8e),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x10c70a(0x86),'downloadSuccess':_0x10c70a(0x8b),'unknownMistake':_0x10c70a(0x83),'networkError':_0x10c70a(0x8f),'tooLarge':_0x10c70a(0x90),'internalError':_0x10c70a(0x81),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x10c70a(0x84),'wait':_0x10c70a(0x7d),'cancel':_0x10c70a(0x82),'uploadAgain':_0x10c70a(0x7e)}};function _0x3c0b(_0x3e804e,_0x87c6cc){const _0x415920=_0x4159();return _0x3c0b=function(_0x3c0b38,_0x3b0bcf){_0x3c0b38=_0x3c0b38-0x7c;let _0x1459d6=_0x415920[_0x3c0b38];return _0x1459d6;},_0x3c0b(_0x3e804e,_0x87c6cc);}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x195c02=_0x4f05;function _0x2f7c(){const _0x321ca6=['خطای\x20داخلی\x20ناشناخته','3704tsdJeq','7653576WxlAiN','داده\x20خیلی\x20بزرگ\x20است','3292095vXhaIF','5377302wfTgSB','در\x20حال\x20دانلود','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20شبکه','خطای\x20ناشناخته','در\x20حال\x20بارگذاری','25718AArYTL','ذخیره\x20به\x20عنوان','59GwakQl','فایل','38314wFlIsV','28390113EBdlRG','10YPVFYJ','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','بازکردن(فایل)','لغو','1397248iJppFL'];_0x2f7c=function(){return _0x321ca6;};return _0x2f7c();}(function(_0x861063,_0x158930){const _0x449d8e=_0x4f05,_0x335c91=_0x861063();while(!![]){try{const _0x20fdc4=parseInt(_0x449d8e(0x1b0))/0x1*(-parseInt(_0x449d8e(0x1b2))/0x2)+-parseInt(_0x449d8e(0x1a8))/0x3+-parseInt(_0x449d8e(0x1a2))/0x4+parseInt(_0x449d8e(0x1a7))/0x5+-parseInt(_0x449d8e(0x1a5))/0x6+-parseInt(_0x449d8e(0x1ae))/0x7*(-parseInt(_0x449d8e(0x1a4))/0x8)+parseInt(_0x449d8e(0x19d))/0x9*(parseInt(_0x449d8e(0x19e))/0xa);if(_0x20fdc4===_0x158930)break;else _0x335c91['push'](_0x335c91['shift']());}catch(_0x2cfffb){_0x335c91['push'](_0x335c91['shift']());}}}(_0x2f7c,0xebebd));function _0x4f05(_0x309af6,_0x4ee52b){const _0x2f7cd9=_0x2f7c();return _0x4f05=function(_0x4f0540,_0x549d75){_0x4f0540=_0x4f0540-0x19d;let _0x484400=_0x2f7cd9[_0x4f0540];return _0x484400;},_0x4f05(_0x309af6,_0x4ee52b);}const o={'exchange':{'file':_0x195c02(0x1b1),'upload':_0x195c02(0x1a0),'download':_0x195c02(0x1af),'uploading':_0x195c02(0x1ad),'uploadSuccess':_0x195c02(0x1aa),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':_0x195c02(0x1a9),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x195c02(0x1ac),'networkError':_0x195c02(0x1ab),'tooLarge':_0x195c02(0x1a6),'internalError':_0x195c02(0x1a3),'interrupt':_0x195c02(0x19f),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','wait':'لطفا\x20صبر\x20کنید...','cancel':_0x195c02(0x1a1),'uploadAgain':'بارگذاری\x20مجدد'}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x59f7fa=_0x333f;function _0x333f(_0x321a00,_0x2df25f){const _0x506b5e=_0x506b();return _0x333f=function(_0x333f8c,_0x2ea06e){_0x333f8c=_0x333f8c-0x1e5;let _0x2b9ef0=_0x506b5e[_0x333f8c];return _0x2b9ef0;},_0x333f(_0x321a00,_0x2df25f);}(function(_0x3fd01e,_0xbf8f38){const _0x5e158d=_0x333f,_0x2a398e=_0x3fd01e();while(!![]){try{const _0x4dcd7b=-parseInt(_0x5e158d(0x1e7))/0x1+parseInt(_0x5e158d(0x1fa))/0x2+parseInt(_0x5e158d(0x1fb))/0x3+-parseInt(_0x5e158d(0x1eb))/0x4*(parseInt(_0x5e158d(0x1f6))/0x5)+parseInt(_0x5e158d(0x1f0))/0x6*(parseInt(_0x5e158d(0x1e9))/0x7)+parseInt(_0x5e158d(0x1e5))/0x8*(-parseInt(_0x5e158d(0x1e6))/0x9)+parseInt(_0x5e158d(0x1ef))/0xa;if(_0x4dcd7b===_0xbf8f38)break;else _0x2a398e['push'](_0x2a398e['shift']());}catch(_0x35d7b6){_0x2a398e['push'](_0x2a398e['shift']());}}}(_0x506b,0xc978b));const e={'exchange':{'file':_0x59f7fa(0x1f3),'upload':'Ouvrir\x20(Fichier)','download':'Enregistrer\x20sous','uploading':_0x59f7fa(0x1ec),'uploadSuccess':_0x59f7fa(0x1ee),'uploadSuccessTip':_0x59f7fa(0x1f5),'downloading':_0x59f7fa(0x1ea),'downloadSuccess':_0x59f7fa(0x1f1),'unknownMistake':'Erreur\x20inconnue','networkError':_0x59f7fa(0x1f9),'tooLarge':_0x59f7fa(0x1f4),'internalError':_0x59f7fa(0x1ed),'interrupt':_0x59f7fa(0x1e8),'fileTypeError':_0x59f7fa(0x1f8),'wait':'Veuillez\x20patienter...','cancel':_0x59f7fa(0x1f2),'uploadAgain':_0x59f7fa(0x1f7)}};function _0x506b(){const _0x2cde18=['889SbMTLs','Téléchargement','5719132jiYTvu','Téléchargement\x20en\x20cours','Erreur\x20interne\x20inconnue','Fichier\x20téléchargé\x20avec\x20succès','8702810PujKFi','62610WgGyDX','Téléchargement\x20réussi','Annuler','Fichier','Les\x20données\x20sont\x20trop\x20volumineuses','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','5okQKet','Télécharger\x20à\x20nouveau','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20réseau','3190590dIEifJ','3004161RapZzx','32nbuUQV','2388726PDcxGh','1475542DqkSFz','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué'];_0x506b=function(){return _0x2cde18;};return _0x506b();}export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x90116d=_0x6485;function _0x6485(_0x3e21d9,_0x47ac90){const _0x1a063f=_0x1a06();return _0x6485=function(_0x6485c6,_0xd0a0d6){_0x6485c6=_0x6485c6-0xa0;let _0x1f5ad5=_0x1a063f[_0x6485c6];return _0x1f5ad5;},_0x6485(_0x3e21d9,_0x47ac90);}(function(_0x591d07,_0xe80447){const _0x1af5a4=_0x6485,_0x52cb91=_0x591d07();while(!![]){try{const _0x2af7ac=-parseInt(_0x1af5a4(0xb0))/0x1+-parseInt(_0x1af5a4(0xa3))/0x2+parseInt(_0x1af5a4(0xa0))/0x3+parseInt(_0x1af5a4(0xb2))/0x4*(-parseInt(_0x1af5a4(0xa2))/0x5)+parseInt(_0x1af5a4(0xa5))/0x6*(parseInt(_0x1af5a4(0xb1))/0x7)+parseInt(_0x1af5a4(0xb4))/0x8*(parseInt(_0x1af5a4(0xa6))/0x9)+parseInt(_0x1af5a4(0xa1))/0xa;if(_0x2af7ac===_0xe80447)break;else _0x52cb91['push'](_0x52cb91['shift']());}catch(_0x10091a){_0x52cb91['push'](_0x52cb91['shift']());}}}(_0x1a06,0xa0ee1));const o={'exchange':{'file':_0x90116d(0xa9),'upload':'Открыть(Файл)','download':'Сохранить\x20как','uploading':_0x90116d(0xae),'uploadSuccess':_0x90116d(0xab),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x90116d(0xac),'downloadSuccess':_0x90116d(0xaa),'unknownMistake':_0x90116d(0xad),'networkError':_0x90116d(0xaf),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x90116d(0xb5),'interrupt':_0x90116d(0xa7),'fileTypeError':_0x90116d(0xa8),'wait':_0x90116d(0xa4),'cancel':'Отмена','uploadAgain':_0x90116d(0xb3)}};export{o as default};function _0x1a06(){const _0x5d873a=['Файл\x20успешно\x20загружен','Скачивание','Неизвестная\x20ошибка','Загрузка','Сетевая\x20ошибка','826986Ugecst','1392902kVAdwS','80AslfzT','Загрузить\x20снова','6680592SGjIfm','Внутренняя\x20неизвестная\x20ошибка','3396573fLiadJ','2598220uJrIcK','160265IHrfSK','995688zARgcG','Пожалуйста,\x20подождите...','12hSuDYV','9bIKYGj','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Файл','Скачивание\x20успешно'];_0x1a06=function(){return _0x5d873a;};return _0x1a06();}
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3e7e51=_0x1f69;(function(_0x165802,_0x320494){const _0x453e26=_0x1f69,_0x1c31c6=_0x165802();while(!![]){try{const _0x51b73e=-parseInt(_0x453e26(0x100))/0x1*(-parseInt(_0x453e26(0x102))/0x2)+-parseInt(_0x453e26(0xf1))/0x3*(-parseInt(_0x453e26(0xff))/0x4)+-parseInt(_0x453e26(0x101))/0x5+parseInt(_0x453e26(0xfd))/0x6+-parseInt(_0x453e26(0x104))/0x7*(parseInt(_0x453e26(0xf6))/0x8)+-parseInt(_0x453e26(0x107))/0x9+parseInt(_0x453e26(0xf9))/0xa;if(_0x51b73e===_0x320494)break;else _0x1c31c6['push'](_0x1c31c6['shift']());}catch(_0x1e1d37){_0x1c31c6['push'](_0x1c31c6['shift']());}}}(_0x40b1,0x26607));function _0x40b1(){const _0x24db62=['2QWNGLn','Luồng\x20dữ\x20liệu\x20quá\x20lớn','14FzSWaq','Hủy\x20bỏ','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','2602071DYGsVd','152916VvGGwx','Tải\x20xuống\x20thành\x20công','Tải\x20lên\x20lại','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Đang\x20tải\x20lên','298208WTmjDs','Mở\x20(Tệp)','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1483790GrbziX','Tệp','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','544746IlLukv','Đang\x20tải\x20xuống','24MVtzCe','143783PNClCT','839615qXLVWe'];_0x40b1=function(){return _0x24db62;};return _0x40b1();}const n={'exchange':{'file':_0x3e7e51(0xfa),'upload':_0x3e7e51(0xf7),'download':'Lưu\x20dưới\x20dạng','uploading':_0x3e7e51(0xf5),'uploadSuccess':_0x3e7e51(0xfb),'uploadSuccessTip':_0x3e7e51(0x106),'downloading':_0x3e7e51(0xfe),'downloadSuccess':_0x3e7e51(0xf2),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':'Lỗi\x20mạng','tooLarge':_0x3e7e51(0x103),'internalError':_0x3e7e51(0xfc),'interrupt':_0x3e7e51(0xf4),'fileTypeError':_0x3e7e51(0xf8),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x3e7e51(0x105),'uploadAgain':_0x3e7e51(0xf3)}};function _0x1f69(_0x2dbbff,_0x4b69a6){const _0x40b121=_0x40b1();return _0x1f69=function(_0x1f6946,_0x1f98af){_0x1f6946=_0x1f6946-0xf1;let _0x1edb2e=_0x40b121[_0x1f6946];return _0x1edb2e;},_0x1f69(_0x2dbbff,_0x4b69a6);}export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x27a9c2=_0x35dc;(function(_0x4c58f8,_0x2ac7d0){const _0x5cd200=_0x35dc,_0x4653b7=_0x4c58f8();while(!![]){try{const _0x1bb371=parseInt(_0x5cd200(0x153))/0x1*(-parseInt(_0x5cd200(0x13f))/0x2)+-parseInt(_0x5cd200(0x14a))/0x3+-parseInt(_0x5cd200(0x14d))/0x4+parseInt(_0x5cd200(0x14f))/0x5*(parseInt(_0x5cd200(0x147))/0x6)+-parseInt(_0x5cd200(0x143))/0x7+-parseInt(_0x5cd200(0x144))/0x8+-parseInt(_0x5cd200(0x145))/0x9*(-parseInt(_0x5cd200(0x14b))/0xa);if(_0x1bb371===_0x2ac7d0)break;else _0x4653b7['push'](_0x4653b7['shift']());}catch(_0x236d7a){_0x4653b7['push'](_0x4653b7['shift']());}}}(_0x5de4,0x86790));const o={'exchange':{'file':'文件','upload':_0x27a9c2(0x140),'download':_0x27a9c2(0x142),'uploading':'上传中','uploadSuccess':_0x27a9c2(0x141),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x27a9c2(0x14e),'downloadSuccess':_0x27a9c2(0x148),'unknownMistake':_0x27a9c2(0x152),'networkError':_0x27a9c2(0x14c),'tooLarge':_0x27a9c2(0x146),'internalError':'内部未知错误','interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x27a9c2(0x151),'wait':_0x27a9c2(0x150),'cancel':'取消','uploadAgain':_0x27a9c2(0x149)}};function _0x35dc(_0x1c8ea2,_0x1bfb0c){const _0x5de4ff=_0x5de4();return _0x35dc=function(_0x35dc7c,_0x3acb43){_0x35dc7c=_0x35dc7c-0x13f;let _0x16a34d=_0x5de4ff[_0x35dc7c];return _0x16a34d;},_0x35dc(_0x1c8ea2,_0x1bfb0c);}function _0x5de4(){const _0x37642e=['网络异常','3827864mxxKky','下载中','1675WYJHOx','请稍等...','所选文件\x20[{0}]\x20不支持上传','未知错误','17RhlbBU','87166lGdBED','打开(文件)','文件上传成功','另存为','3140816RatSoH','5548032RfyhME','27222651ymwrMF','数据流过大','12822YOJZyA','下载成功','再次上传','1049295UIPTRd','10etiKZL'];_0x5de4=function(){return _0x37642e;};return _0x5de4();}export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x5c9c(_0x409981,_0xcc3d3e){const _0x1fee52=_0x1fee();return _0x5c9c=function(_0x5c9c10,_0x38a965){_0x5c9c10=_0x5c9c10-0x96;let _0xd9ff98=_0x1fee52[_0x5c9c10];return _0xd9ff98;},_0x5c9c(_0x409981,_0xcc3d3e);}function _0x1fee(){const _0x2aca46=['下載成功','所選檔案\x20[{0}]\x20不支援上傳','1NslvPU','9FdxKAu','1039242IxfCTp','48424040JiaMoq','檔案上傳成功','1022XzNNGZ','請稍等...','內部未知錯誤','106700JlcAXy','開啟(檔案)','4212996iJVqeZ','7937415YMkdFL','上傳中','3017430PwXTPS','91768dgvwVH','下載中','網路連線中斷,檔案上傳失敗','另存為','網路異常','{0}個檔案上傳成功'];_0x1fee=function(){return _0x2aca46;};return _0x1fee();}const _0x3fcc02=_0x5c9c;(function(_0x12d987,_0x11e996){const _0x51f8b2=_0x5c9c,_0x219225=_0x12d987();while(!![]){try{const _0x3c45bb=parseInt(_0x51f8b2(0xa6))/0x1*(parseInt(_0x51f8b2(0xa8))/0x2)+-parseInt(_0x51f8b2(0xa7))/0x3*(parseInt(_0x51f8b2(0x98))/0x4)+-parseInt(_0x51f8b2(0x9b))/0x5+-parseInt(_0x51f8b2(0x9a))/0x6+-parseInt(_0x51f8b2(0xab))/0x7*(parseInt(_0x51f8b2(0x9e))/0x8)+-parseInt(_0x51f8b2(0x9d))/0x9+parseInt(_0x51f8b2(0xa9))/0xa;if(_0x3c45bb===_0x11e996)break;else _0x219225['push'](_0x219225['shift']());}catch(_0x4bd480){_0x219225['push'](_0x219225['shift']());}}}(_0x1fee,0xefd2b));const o={'exchange':{'file':'檔案','upload':_0x3fcc02(0x99),'download':_0x3fcc02(0xa1),'uploading':_0x3fcc02(0x9c),'uploadSuccess':_0x3fcc02(0xaa),'uploadSuccessTip':_0x3fcc02(0xa3),'downloading':_0x3fcc02(0x9f),'downloadSuccess':_0x3fcc02(0xa4),'unknownMistake':'未知錯誤','networkError':_0x3fcc02(0xa2),'tooLarge':'資料流過大','internalError':_0x3fcc02(0x97),'interrupt':_0x3fcc02(0xa0),'fileTypeError':_0x3fcc02(0xa5),'wait':_0x3fcc02(0x96),'cancel':'取消','uploadAgain':'再次上傳'}};export{o as default};
|
package/lib/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.univer-exchange-
|
1
|
+
.univer-exchange-link-list{max-height:280px;overflow-y:auto;overflow-x:hidden;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin;margin-top:var(--margin-lg)}.univer-exchange-link-list-inner{display:flex;list-style:none;padding:0;margin:0;gap:8px;flex-direction:column}.univer-exchange-link-list-inner-item-link{display:flex;justify-content:space-between;text-decoration-line:none;color:var(--color-black);padding:var(--padding-xs) var(--padding-sm);background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-link-list-inner-item-link:hover{background-color:rgb(var(--border-color))}.univer-exchange-link-list-inner-item-link-content{display:flex;align-items:center;width:calc(100% - 48px)}.univer-exchange-link-list-inner-item-link-icon{height:20px;font-size:20px;display:flex}.univer-exchange-link-list-inner-item-link-name{margin-left:var(--margin-xxs);color:var(--color-black);font-size:var(--font-size-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-exchange-link-list-inner-item-link-direct{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-link-list-inner-item-link-direct:hover{background-color:rgb(var(--bg-color-hover))}.univer-exchange-upload-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:28px;border-width:0;border-radius:6px;padding:0 var(--padding-sm);font-size:var(--font-size-xs);transition:all .15s;color:rgb(var(--hyacinth-500));background-color:transparent;border-color:transparent}.univer-exchange-upload-button:hover{background-color:rgb(var(--hyacinth-50))}.univer-exchange-upload-error{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--margin-lg)}.univer-exchange-upload-error-tip{color:var(--color-black);font-size:var(--font-size-sm);padding:0 var(--padding-lg) 0 var(--padding-sm);margin-bottom:var(--margin-sm)}.univer-exchange-upload-success{display:flex;padding:0 var(--padding-xs) 0 var(--padding-sm);align-items:center;justify-content:space-between;margin-top:var(--margin-sm)}.univer-exchange-upload-success-tip{color:rgb(var(--text-color-secondary));font-size:var(--font-size-xs)}.univer-exchange-uploading{display:flex;flex-direction:column;align-items:flex-start;margin-top:var(--margin-lg)}.univer-exchange-uploading-tip{color:var(--color-black);font-size:var(--font-size-sm);padding:0 var(--padding-lg) 0 var(--padding-sm)}.univer-exchange-uploading-progress{padding:0 var(--padding-lg) 0 var(--padding-sm)}.univer-exchange-upload-progress{width:324px;height:6px;margin:var(--margin-base) 0 var(--margin-sm) 0;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg)}.univer-exchange-upload-progress-inner{height:6px;border-radius:var(--border-radius-lg);transition:width .5s}.univer-exchange-upload-notification{position:fixed;z-index:1000;bottom:48px;right:12px;width:372px;display:flex;flex-direction:column;justify-content:flex-start;padding:var(--padding-xl) var(--padding-base) var(--padding-lg) var(--padding-base);background-color:#fff;border-radius:6px;box-shadow:var(--box-shadow-base);box-sizing:border-box}.univer-exchange-upload-notification-header{display:flex;align-items:center;justify-content:space-between;padding:0 var(--padding-sm) 0 6px}.univer-exchange-upload-notification-header-title{display:flex}.univer-exchange-upload-notification-header-icon{height:24px;font-size:24px}.univer-exchange-upload-notification-header-icon-success{color:rgb(var(--success-color))}.univer-exchange-upload-notification-header-icon-uploading{color:rgb(var(--info-color))}.univer-exchange-upload-notification-header-icon-error{color:rgb(var(--error-color))}.univer-exchange-upload-notification-header-text{margin-left:6px;line-height:24px;color:var(--color-black);font-size:17px;font-weight:600}.univer-exchange-upload-notification-header-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-exchange-upload-notification-header-close:hover{background-color:rgb(var(--bg-color-hover))}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { IDocumentData, IWorkbookData
|
1
|
+
import { IDocumentData, IWorkbookData } from '@univerjs/core';
|
2
|
+
import { FUniver } from '@univerjs/core/facade';
|
2
3
|
/**
|
3
4
|
* @ignore
|
4
5
|
*/
|
@@ -180,7 +181,7 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
180
181
|
*/
|
181
182
|
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
182
183
|
}
|
183
|
-
declare module '@univerjs/core' {
|
184
|
+
declare module '@univerjs/core/facade' {
|
184
185
|
interface FUniver extends IFUniverExchangeClientMixin {
|
185
186
|
}
|
186
187
|
}
|
package/lib/types/index.d.ts
CHANGED
@@ -9,3 +9,4 @@ export { IUploadNotificationService, UploadNotificationService, UploadNotificati
|
|
9
9
|
export { downloadFile, getUniverTypeByFile, getUploadFile } from './services/utils/tool';
|
10
10
|
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
11
11
|
export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
12
|
+
export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
@@ -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
|
-
(function(
|
1
|
+
function _0xf334(_0x37da52,_0x49d919){const _0x353e19=_0x353e();return _0xf334=function(_0xf33435,_0x1a3065){_0xf33435=_0xf33435-0x18e;let _0xa70964=_0x353e19[_0xf33435];return _0xa70964;},_0xf334(_0x37da52,_0x49d919);}(function(_0xb86d17,_0x18c9c2){const _0x6a9b23=_0xf334,_0xc51ba6=_0xb86d17();while(!![]){try{const _0x2fef8d=parseInt(_0x6a9b23(0x191))/0x1*(parseInt(_0x6a9b23(0x19b))/0x2)+parseInt(_0x6a9b23(0x1ac))/0x3*(parseInt(_0x6a9b23(0x1a5))/0x4)+parseInt(_0x6a9b23(0x1b3))/0x5*(-parseInt(_0x6a9b23(0x1b0))/0x6)+-parseInt(_0x6a9b23(0x1b2))/0x7+parseInt(_0x6a9b23(0x18e))/0x8+parseInt(_0x6a9b23(0x197))/0x9+-parseInt(_0x6a9b23(0x1ae))/0xa*(-parseInt(_0x6a9b23(0x1ad))/0xb);if(_0x2fef8d===_0x18c9c2)break;else _0xc51ba6['push'](_0xc51ba6['shift']());}catch(_0x17c743){_0xc51ba6['push'](_0xc51ba6['shift']());}}}(_0x353e,0x92a79),function(_0x5deff8,_0x26b597){const _0x42f066=_0xf334;typeof exports==_0x42f066(0x193)&&typeof module<'u'?_0x26b597(require('@univerjs-pro/exchange-client'),require(_0x42f066(0x19f))):typeof define=='function'&&define[_0x42f066(0x1a9)]?define([_0x42f066(0x192),'@univerjs/core/facade'],_0x26b597):(_0x5deff8=typeof globalThis<'u'?globalThis:_0x5deff8||self,_0x26b597(_0x5deff8['UniverProExchangeClient'],_0x5deff8['UniverCoreFacade']));}(this,function(_0x533f8b,_0x24c2ea){'use strict';const _0x428919=_0xf334;var _0x20e62f=(_0x4ad3fe=>(_0x4ad3fe[_0x4ad3fe[_0x428919(0x1af)]=0x0]=_0x428919(0x1af),_0x4ad3fe[_0x4ad3fe[_0x428919(0x194)]=0x1]=_0x428919(0x194),_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a2)]=0x2]=_0x428919(0x1a2),_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a3)]=0x3]='UNIVER_SLIDE',_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a0)]=0x4]=_0x428919(0x1a0),_0x4ad3fe[_0x4ad3fe[_0x428919(0x1a6)]=-0x1]=_0x428919(0x1a6),_0x4ad3fe))(_0x20e62f||{});class _0x46a0c6 extends _0x24c2ea['FUniver']{async[_0x428919(0x19e)](_0x28cd0f){const _0x228bb0=_0x428919;return this[_0x228bb0(0x198)](_0x28cd0f);}async[_0x428919(0x198)](_0x128611){const _0x49db68=_0x428919,_0x14f1f0=this['_injector']['get'](_0x533f8b[_0x49db68(0x1a4)]);if(!_0x14f1f0)throw new Error(_0x49db68(0x18f));return _0x14f1f0[_0x49db68(0x196)](_0x128611,_0x20e62f['UNIVER_SHEET']);}async[_0x428919(0x199)](_0x443dcf){return this['importXLSXToSnapshotAsync'](_0x443dcf);}async[_0x428919(0x1ab)](_0x48df5){const _0x5329c3=_0x428919,_0x584958=this[_0x5329c3(0x190)][_0x5329c3(0x1a8)](_0x533f8b[_0x5329c3(0x1a4)]);if(!_0x584958)throw new Error(_0x5329c3(0x18f));return _0x584958['importXLSXToSnapshot'](_0x48df5);}async[_0x428919(0x19c)](_0x2c4757){const _0x5a6fb5=_0x428919;return this[_0x5a6fb5(0x19a)](_0x2c4757);}async[_0x428919(0x19a)](_0xf10d88){const _0x74a2f6=_0x428919,_0x28f072=this[_0x74a2f6(0x190)][_0x74a2f6(0x1a8)](_0x533f8b[_0x74a2f6(0x1a4)]);if(!_0x28f072)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x28f072[_0x74a2f6(0x19c)](_0xf10d88);}async['exportXLSXBySnapshot'](_0xb1a237){const _0x46d663=_0x428919;return this[_0x46d663(0x1a7)](_0xb1a237);}async[_0x428919(0x1a7)](_0x520767){const _0x3942ec=_0x428919,_0x2c29e1=this[_0x3942ec(0x190)][_0x3942ec(0x1a8)](_0x533f8b[_0x3942ec(0x1a4)]);if(!_0x2c29e1)throw new Error(_0x3942ec(0x18f));return _0x2c29e1[_0x3942ec(0x19d)](_0x520767);}async[_0x428919(0x1a1)](_0x5b94e3){const _0x40ae62=_0x428919;return this[_0x40ae62(0x1b4)](_0x5b94e3);}async['importDOCXToUnitIdAsync'](_0x515895){const _0x5d1a2d=_0x428919,_0x150bd2=this['_injector']['get'](_0x533f8b[_0x5d1a2d(0x1a4)]);if(!_0x150bd2)throw new Error(_0x5d1a2d(0x18f));return _0x150bd2['importFileToUnitId'](_0x515895,_0x20e62f[_0x5d1a2d(0x194)]);}async['importDOCXToSnapshot'](_0x2f0ddf){const _0x38eb39=_0x428919;return this[_0x38eb39(0x1aa)](_0x2f0ddf);}async[_0x428919(0x1aa)](_0x504b64){const _0x340dd6=_0x428919,_0x22a2c3=this[_0x340dd6(0x190)]['get'](_0x533f8b[_0x340dd6(0x1a4)]);if(!_0x22a2c3)throw new Error(_0x340dd6(0x18f));return _0x22a2c3[_0x340dd6(0x195)](_0x504b64);}}_0x24c2ea['FUniver'][_0x428919(0x1b1)](_0x46a0c6);}));function _0x353e(){const _0x5967c3=['exportXLSXBySnapshotAsync','get','amd','importDOCXToSnapshotAsync','importXLSXToSnapshotAsync','657qrUTfW','50677wfaVrO','1250QxmvLM','UNIVER_UNKNOWN','138hJLGjI','extend','6968129QpCvjR','66345VczIiO','importDOCXToUnitIdAsync','6832296YqVgUX','The\x20exchange\x20service\x20is\x20not\x20available','_injector','929GeNRkm','@univerjs-pro/exchange-client','object','UNIVER_DOC','importDOCXToSnapshot','importFileToUnitId','356292ArpZlz','importXLSXToUnitIdAsync','importXLSXToSnapshot','exportXLSXByUnitIdAsync','668samUFi','exportXLSXByUnitId','exportXLSXBySnapshot','importXLSXToUnitId','@univerjs/core/facade','UNIVER_PROJECT','importDOCXToUnitId','UNIVER_SHEET','UNIVER_SLIDE','IExchangeService','2220MGxdIv','UNRECOGNIZED'];_0x353e=function(){return _0x5967c3;};return _0x353e();}
|