@univerjs-pro/exchange-client 1.0.0-beta.0 → 1.0.0-beta.2
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +6 -36
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.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-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/components.controller.d.ts +2 -0
- package/lib/types/index.d.ts +2 -2
- package/lib/types/services/exchange.service.d.ts +3 -0
- package/lib/types/services/request.service.d.ts +8 -0
- package/lib/types/services/utils/tool.d.ts +2 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xf88b(){const _0x2be9ce=['Данные\x20слишком\x20большие','4942DdPgii','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','5NeWPSS','2bVdynm','Загрузить\x20снова','Подтвердить','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','2920hFjoJM','Внутренняя\x20неизвестная\x20ошибка','Загрузка','{0}\x20файл(ов)\x20успешно\x20загружен(о)','8468306SRfSHx','Сетевая\x20ошибка','30nYecNY','551700lBIpOr','Скачивание','597930wclggz','Отмена','Пожалуйста,\x20подождите...','1041784stuYns','280656uGWIbp','4055myIVGL'];_0xf88b=function(){return _0x2be9ce;};return _0xf88b();}const _0x1c297c=_0x5dfe;function _0x5dfe(_0x530893,_0x4279b3){_0x530893=_0x530893-0x8c;const _0xf88b24=_0xf88b();let _0x5dfe2b=_0xf88b24[_0x530893];return _0x5dfe2b;}(function(_0x54f6e8,_0x1c77f7){const _0x13cb2f=_0x5dfe,_0x594245=_0x54f6e8();while(!![]){try{const _0x283cd4=parseInt(_0x13cb2f(0x9a))/0x1+-parseInt(_0x13cb2f(0x9f))/0x2*(-parseInt(_0x13cb2f(0x95))/0x3)+parseInt(_0x13cb2f(0x98))/0x4+parseInt(_0x13cb2f(0x9e))/0x5*(parseInt(_0x13cb2f(0x93))/0x6)+-parseInt(_0x13cb2f(0x9c))/0x7*(-parseInt(_0x13cb2f(0x8c))/0x8)+-parseInt(_0x13cb2f(0x99))/0x9*(-parseInt(_0x13cb2f(0x92))/0xa)+-parseInt(_0x13cb2f(0x90))/0xb;if(_0x283cd4===_0x1c77f7)break;else _0x594245['push'](_0x594245['shift']());}catch(_0x1bb785){_0x594245['push'](_0x594245['shift']());}}}(_0xf88b,0x217c5));const e={'exchange-client':{'uploading':_0x1c297c(0x8e),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x1c297c(0x8f),'downloading':_0x1c297c(0x94),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':'Неизвестная\x20ошибка','networkError':_0x1c297c(0x91),'tooLarge':_0x1c297c(0x9b),'internalError':_0x1c297c(0x8d),'interrupt':_0x1c297c(0xa2),'fileTypeError':_0x1c297c(0x9d),'wait':_0x1c297c(0x97),'cancel':_0x1c297c(0x96),'confirm':_0x1c297c(0xa1),'uploadAgain':_0x1c297c(0xa0)}};export{e as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3f14(){const _0x2664f6=['Sieťová\x20chyba','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','51275duQFyy','Nahrávanie','92974PiWplm','Úspešne\x20nahraných\x20{0}\x20súborov','Neznáma\x20chyba','69346TeAKMQ','12281697rklxGn','Prosím\x20počkajte...','Nahrať\x20znova','12ZMMXpd','1460108AAhnOa','Zrušiť','Súbor\x20bol\x20úspešne\x20nahraný','Dáta\x20sú\x20príliš\x20veľké','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','2277678FwJHhw','Potvrdiť','3789285sFQOiq','Sťahovanie','848lJLUTm'];_0x3f14=function(){return _0x2664f6;};return _0x3f14();}const _0x38dc34=_0x5499;(function(_0x1c533a,_0x36fb11){const _0x1828cf=_0x5499,_0x4ef601=_0x1c533a();while(!![]){try{const _0x5f4301=-parseInt(_0x1828cf(0x115))/0x1+-parseInt(_0x1828cf(0x118))/0x2*(parseInt(_0x1828cf(0x11c))/0x3)+-parseInt(_0x1828cf(0x11d))/0x4+-parseInt(_0x1828cf(0x124))/0x5+-parseInt(_0x1828cf(0x122))/0x6+parseInt(_0x1828cf(0x113))/0x7*(parseInt(_0x1828cf(0x110))/0x8)+parseInt(_0x1828cf(0x119))/0x9;if(_0x5f4301===_0x36fb11)break;else _0x4ef601['push'](_0x4ef601['shift']());}catch(_0xc7841b){_0x4ef601['push'](_0x4ef601['shift']());}}}(_0x3f14,0x63588));const e={'exchange-client':{'uploading':_0x38dc34(0x114),'uploadSuccess':_0x38dc34(0x11f),'uploadSuccessTip':_0x38dc34(0x116),'downloading':_0x38dc34(0x10f),'downloadSuccess':'Sťahovanie\x20úspešné','unknownMistake':_0x38dc34(0x117),'networkError':_0x38dc34(0x111),'tooLarge':_0x38dc34(0x120),'internalError':'Interná\x20neznáma\x20chyba','interrupt':_0x38dc34(0x112),'fileTypeError':_0x38dc34(0x121),'wait':_0x38dc34(0x11a),'cancel':_0x38dc34(0x11e),'confirm':_0x38dc34(0x123),'uploadAgain':_0x38dc34(0x11b)}};function _0x5499(_0x541976,_0x2b566e){_0x541976=_0x541976-0x10f;const _0x3f14ea=_0x3f14();let _0x549952=_0x3f14ea[_0x541976];return _0x549952;}export{e as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x17d9(){const _0x9e1ff8=['355137GdaHdj','Tải\x20xuống\x20thành\x20công','Lỗi\x20mạng','Hủy\x20bỏ','Tải\x20lên\x20tệp\x20thành\x20công','Xác\x20nhận','4616940HPqMBr','4322664nIlvTH','2163280SHpCCZ','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','8QjTikd','Lỗi\x20không\x20xác\x20định','1975001COFmrp','27aRWZdr','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20lên\x20lại','Đang\x20tải\x20lên','Đang\x20tải\x20xuống','10aQimjX','105272biLFvg','Vui\x20lòng\x20đợi...','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','7386582FCzFUR'];_0x17d9=function(){return _0x9e1ff8;};return _0x17d9();}function _0x2e09(_0x3b164c,_0x581488){_0x3b164c=_0x3b164c-0x1a1;const _0x17d91d=_0x17d9();let _0x2e098a=_0x17d91d[_0x3b164c];return _0x2e098a;}const _0xc414f7=_0x2e09;(function(_0x1166ee,_0x2fb6c7){const _0x2e5140=_0x2e09,_0xfd2cbb=_0x1166ee();while(!![]){try{const _0x633f1=parseInt(_0x2e5140(0x1af))/0x1+-parseInt(_0x2e5140(0x1ab))/0x2*(parseInt(_0x2e5140(0x1a4))/0x3)+-parseInt(_0x2e5140(0x1b7))/0x4*(-parseInt(_0x2e5140(0x1aa))/0x5)+-parseInt(_0x2e5140(0x1ae))/0x6+parseInt(_0x2e5140(0x1a3))/0x7+parseInt(_0x2e5140(0x1a1))/0x8*(parseInt(_0x2e5140(0x1b6))/0x9)+parseInt(_0x2e5140(0x1b5))/0xa;if(_0x633f1===_0x2fb6c7)break;else _0xfd2cbb['push'](_0xfd2cbb['shift']());}catch(_0x2fdd13){_0xfd2cbb['push'](_0xfd2cbb['shift']());}}}(_0x17d9,0xe96b9));const e={'exchange-client':{'uploading':_0xc414f7(0x1a8),'uploadSuccess':_0xc414f7(0x1b3),'uploadSuccessTip':_0xc414f7(0x1a6),'downloading':_0xc414f7(0x1a9),'downloadSuccess':_0xc414f7(0x1b0),'unknownMistake':_0xc414f7(0x1a2),'networkError':_0xc414f7(0x1b1),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0xc414f7(0x1ad),'interrupt':_0xc414f7(0x1a5),'fileTypeError':_0xc414f7(0x1b8),'wait':_0xc414f7(0x1ac),'cancel':_0xc414f7(0x1b2),'confirm':_0xc414f7(0x1b4),'uploadAgain':_0xc414f7(0x1a7)}};export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xfd74c8=_0x5e32;function _0x5e32(_0x493756,_0x401fd8){_0x493756=_0x493756-0x1d6;const _0x1d8ab4=_0x1d8a();let _0x5e32a1=_0x1d8ab4[_0x493756];return _0x5e32a1;}function _0x1d8a(){const _0x4db226=['12869652iLsQqR','6kFviRX','309356dCgXIC','65ZBLlrr','949770ehSjuR','内部未知错误','1381170WvekwS','8MFyrCp','下载中','未知错误','所选文件\x20[{0}]\x20不支持上传','上传中','55eewmfF','1TkdERX','997654JrFtdF','1034037ljGpMB','数据流过大','再次上传','{0}个文件上传成功','网络连接中断,文件上传失败','文件上传成功','4000283pPmUTm'];_0x1d8a=function(){return _0x4db226;};return _0x1d8a();}(function(_0x3a3a0b,_0x44e213){const _0x562c2e=_0x5e32,_0x2f64fc=_0x3a3a0b();while(!![]){try{const _0x57a025=-parseInt(_0x562c2e(0x1dc))/0x1*(parseInt(_0x562c2e(0x1dd))/0x2)+parseInt(_0x562c2e(0x1e9))/0x3+-parseInt(_0x562c2e(0x1e7))/0x4*(-parseInt(_0x562c2e(0x1e8))/0x5)+parseInt(_0x562c2e(0x1e6))/0x6*(-parseInt(_0x562c2e(0x1e4))/0x7)+parseInt(_0x562c2e(0x1d6))/0x8*(-parseInt(_0x562c2e(0x1de))/0x9)+parseInt(_0x562c2e(0x1eb))/0xa*(-parseInt(_0x562c2e(0x1db))/0xb)+parseInt(_0x562c2e(0x1e5))/0xc;if(_0x57a025===_0x44e213)break;else _0x2f64fc['push'](_0x2f64fc['shift']());}catch(_0x1b62fc){_0x2f64fc['push'](_0x2f64fc['shift']());}}}(_0x1d8a,0x7ea26));const e={'exchange-client':{'uploading':_0xfd74c8(0x1da),'uploadSuccess':_0xfd74c8(0x1e3),'uploadSuccessTip':_0xfd74c8(0x1e1),'downloading':_0xfd74c8(0x1d7),'downloadSuccess':'下载成功','unknownMistake':_0xfd74c8(0x1d8),'networkError':'网络异常','tooLarge':_0xfd74c8(0x1df),'internalError':_0xfd74c8(0x1ea),'interrupt':_0xfd74c8(0x1e2),'fileTypeError':_0xfd74c8(0x1d9),'wait':'请稍等...','cancel':'取消','confirm':'确认','uploadAgain':_0xfd74c8(0x1e0)}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x6144(_0x5051d9,_0x3cef42){_0x5051d9=_0x5051d9-0xbb;const _0x2ba54d=_0x2ba5();let _0x614471=_0x2ba54d[_0x5051d9];return _0x614471;}const _0x3611e8=_0x6144;function _0x2ba5(){const _0x3d75a5=['11504FmASJr','2889gvWtsV','3408TPMGQt','3269baMGmI','6203810ICmMtU','38jydBgM','74078ZpJhgg','上傳中','再次上傳','下載成功','未知錯誤','15306cqXTSZ','{0}個檔案上傳成功','139667puXbqp','網絡異常','所選檔案\x20[{0}]\x20不支援上傳','12702bMiirc','7375545zcyFSF','檔案上傳成功','內部未知錯誤','下載中','1308ytYogm'];_0x2ba5=function(){return _0x3d75a5;};return _0x2ba5();}(function(_0x538c38,_0x111579){const _0x3ea6f4=_0x6144,_0x475437=_0x538c38();while(!![]){try{const _0x34a0ad=-parseInt(_0x3ea6f4(0xbd))/0x1*(-parseInt(_0x3ea6f4(0xbc))/0x2)+parseInt(_0x3ea6f4(0xc7))/0x3*(parseInt(_0x3ea6f4(0xcc))/0x4)+parseInt(_0x3ea6f4(0xc8))/0x5+-parseInt(_0x3ea6f4(0xc2))/0x6*(-parseInt(_0x3ea6f4(0xd0))/0x7)+parseInt(_0x3ea6f4(0xcd))/0x8*(-parseInt(_0x3ea6f4(0xce))/0x9)+-parseInt(_0x3ea6f4(0xbb))/0xa+-parseInt(_0x3ea6f4(0xc4))/0xb*(parseInt(_0x3ea6f4(0xcf))/0xc);if(_0x34a0ad===_0x111579)break;else _0x475437['push'](_0x475437['shift']());}catch(_0x1b54bc){_0x475437['push'](_0x475437['shift']());}}}(_0x2ba5,0xbc1c3));const e={'exchange-client':{'uploading':_0x3611e8(0xbe),'uploadSuccess':_0x3611e8(0xc9),'uploadSuccessTip':_0x3611e8(0xc3),'downloading':_0x3611e8(0xcb),'downloadSuccess':_0x3611e8(0xc0),'unknownMistake':_0x3611e8(0xc1),'networkError':_0x3611e8(0xc5),'tooLarge':'資料流過大','internalError':_0x3611e8(0xca),'interrupt':'網絡連線中斷,檔案上傳失敗','fileTypeError':_0x3611e8(0xc6),'wait':'請稍等...','cancel':'取消','confirm':'確認','uploadAgain':_0x3611e8(0xbf)}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x24b021=_0x3d64;function _0x3d64(_0x73cff,_0x8f9a42){_0x73cff=_0x73cff-0x1ad;const _0x48dfd5=_0x48df();let _0x3d644d=_0x48dfd5[_0x73cff];return _0x3d644d;}function _0x48df(){const _0x5c81f9=['2429XefMxW','上傳中','檔案上傳成功','再次上傳','4915Xxgzlb','572944LKrFPk','網路連線中斷,檔案上傳失敗','未知錯誤','4817439SYKgOd','{0}個檔案上傳成功','資料流過大','內部未知錯誤','8TfqkQz','2SlGpcu','20789670LylEkL','1992hnesYD','5886xapFqd','網路異常','3190740qswxRz','下載成功','1895781UPopPC'];_0x48df=function(){return _0x5c81f9;};return _0x48df();}(function(_0x2ee6ff,_0x1ca6b4){const _0x3a35ab=_0x3d64,_0x6437b5=_0x2ee6ff();while(!![]){try{const _0x115fb0=parseInt(_0x3a35ab(0x1b2))/0x1*(parseInt(_0x3a35ab(0x1bf))/0x2)+parseInt(_0x3a35ab(0x1b9))/0x3+parseInt(_0x3a35ab(0x1b4))/0x4*(parseInt(_0x3a35ab(0x1be))/0x5)+parseInt(_0x3a35ab(0x1b5))/0x6*(parseInt(_0x3a35ab(0x1ba))/0x7)+-parseInt(_0x3a35ab(0x1b1))/0x8*(-parseInt(_0x3a35ab(0x1ad))/0x9)+-parseInt(_0x3a35ab(0x1b7))/0xa+-parseInt(_0x3a35ab(0x1b3))/0xb;if(_0x115fb0===_0x1ca6b4)break;else _0x6437b5['push'](_0x6437b5['shift']());}catch(_0x16ff52){_0x6437b5['push'](_0x6437b5['shift']());}}}(_0x48df,0x5824f));const e={'exchange-client':{'uploading':_0x24b021(0x1bb),'uploadSuccess':_0x24b021(0x1bc),'uploadSuccessTip':_0x24b021(0x1ae),'downloading':'下載中','downloadSuccess':_0x24b021(0x1b8),'unknownMistake':_0x24b021(0x1c1),'networkError':_0x24b021(0x1b6),'tooLarge':_0x24b021(0x1af),'internalError':_0x24b021(0x1b0),'interrupt':_0x24b021(0x1c0),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','confirm':'確認','uploadAgain':_0x24b021(0x1bd)}};export{e as default};
|
|
@@ -4,4 +4,6 @@ export declare class ComponentsController extends Disposable {
|
|
|
4
4
|
private readonly _iconManager;
|
|
5
5
|
private readonly _componentManager;
|
|
6
6
|
constructor(_iconManager: IconManager, _componentManager: ComponentManager);
|
|
7
|
+
private _registerIcons;
|
|
8
|
+
private _registerComponents;
|
|
7
9
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import './global.css';
|
|
|
2
2
|
export { UniverExchangeClientPlugin } from './plugin';
|
|
3
3
|
export { IExchangeService } from './services/exchange.service';
|
|
4
4
|
export { IExchangeOperateService } from './services/operate.service';
|
|
5
|
-
export { ExchangeBaseExportMode, ExchangeBaseFormulaPolicy, ExchangeBaseImportMode, ExchangeFormat, ImportOutputType, } from './services/request.service';
|
|
6
|
-
export type { IExchangeBaseExportOption, IExchangeBaseImportOption, IExchangeExportOptions, IExchangeImportOptions, IExchangeSheetExportOption, IExchangeSheetImportOption, IExportRequest, IImportRequest, } from './services/request.service';
|
|
5
|
+
export { ExchangeBaseExportMode, ExchangeBaseFormulaPolicy, ExchangeBaseImportMode, ExchangeDocType, ExchangeFormat, ImportOutputType, } from './services/request.service';
|
|
6
|
+
export type { IExchangeBaseExportOption, IExchangeBaseImportOption, IExchangeDocImportOption, IExchangeExportOptions, IExchangeImportOptions, IExchangeSheetExportOption, IExchangeSheetImportOption, IExportRequest, IImportRequest, } from './services/request.service';
|
|
7
7
|
export { isCurrentUnitLoadedFromServer } from './services/utils/collaboration';
|
|
8
8
|
export { ClientSnapshotServerService, transformSheetBlockMetaToString, transformWorkbookSnapshotMetaToString, } from './services/utils/snapshot';
|
|
9
9
|
export type { ISnapshotBlockJson, ISnapshotBlockJsonResponse, ISnapshotJson, } from './services/utils/snapshot';
|
|
@@ -24,6 +24,8 @@ export interface IExchangeService {
|
|
|
24
24
|
* Download a file in the browser.
|
|
25
25
|
*/
|
|
26
26
|
downloadFile(file: File | Blob, filename: string, fileExt: string): void;
|
|
27
|
+
/** Resolve and fetch one file artifact by protocol file id. */
|
|
28
|
+
getFileById(fileId: string, signal?: AbortSignal): Promise<File | undefined>;
|
|
27
29
|
exportFileByUnitId(unitId: string, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
|
|
28
30
|
exportFileBySnapshot(snapshot: ISnapshotBlockJson, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
|
|
29
31
|
/**
|
|
@@ -47,6 +49,7 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
|
47
49
|
constructor(_configService: IConfigService, _httpService: HTTPService, _requestService: RequestService);
|
|
48
50
|
dispose(): void;
|
|
49
51
|
downloadFile(file: File | Blob, filename: string, fileExt: string): void;
|
|
52
|
+
getFileById(fileId: string, signal?: AbortSignal): Promise<File | undefined>;
|
|
50
53
|
importFileToUnitId(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<string | undefined>;
|
|
51
54
|
importFileToJson<T = unknown>(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<T | undefined>;
|
|
52
55
|
exportFileByUnitId(unitId: string, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
|
|
@@ -23,6 +23,10 @@ export declare enum ExchangeFormat {
|
|
|
23
23
|
PPTX = "pptx",
|
|
24
24
|
PDF = "pdf"
|
|
25
25
|
}
|
|
26
|
+
export declare enum ExchangeDocType {
|
|
27
|
+
MODERN = "modern",
|
|
28
|
+
TRADITIONAL = "traditional"
|
|
29
|
+
}
|
|
26
30
|
export declare enum ExchangeBaseImportMode {
|
|
27
31
|
/**
|
|
28
32
|
* Select the source automatically. Imports visible worksheets when no native Excel table exists;
|
|
@@ -80,9 +84,13 @@ export interface IExchangeBaseExportOption {
|
|
|
80
84
|
baseFormulaPolicy?: ExchangeBaseFormulaPolicy;
|
|
81
85
|
};
|
|
82
86
|
}
|
|
87
|
+
export interface IExchangeDocImportOption {
|
|
88
|
+
docType?: ExchangeDocType;
|
|
89
|
+
}
|
|
83
90
|
export interface IExchangeImportOptions {
|
|
84
91
|
sheet?: IExchangeSheetImportOption;
|
|
85
92
|
base?: IExchangeBaseImportOption;
|
|
93
|
+
doc?: IExchangeDocImportOption;
|
|
86
94
|
}
|
|
87
95
|
export interface IExchangeExportOptions {
|
|
88
96
|
sheet?: IExchangeSheetExportOption;
|
|
@@ -10,6 +10,8 @@ export declare function getUniverInstanceTypeByFile(file: File): UniverInstanceT
|
|
|
10
10
|
export declare function isSupportedFileType(file: File, univerType: UniverInstanceType): boolean;
|
|
11
11
|
export declare function getUploadFile(types: UniverInstanceType[], multiple?: boolean): Promise<FileList | null>;
|
|
12
12
|
export declare function getFileByURL(url: string, httpService: HTTPService): Promise<File | undefined>;
|
|
13
|
+
/** Fetch a signed file URL and reject when an optional cancellation signal aborts. */
|
|
14
|
+
export declare function fetchFileByURL(url: string, httpService: HTTPService, signal?: AbortSignal): Promise<File>;
|
|
13
15
|
export declare function getFileNameFromURL(url: string): string | undefined;
|
|
14
16
|
export declare function blobToString(blob: Blob): Promise<string>;
|
|
15
17
|
export declare function bufferToFile(buffer: Uint8Array): File;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c9aaf,_0x14c572){var _0x329fd2=_0x3896,_0x458de8=_0x2c9aaf();while(!![]){try{var _0x19afa1=-parseInt(_0x329fd2(0x14f))/0x1*(-parseInt(_0x329fd2(0x14c))/0x2)+parseInt(_0x329fd2(0x158))/0x3*(parseInt(_0x329fd2(0x159))/0x4)+-parseInt(_0x329fd2(0x15d))/0x5+parseInt(_0x329fd2(0x14d))/0x6+parseInt(_0x329fd2(0x14b))/0x7*(parseInt(_0x329fd2(0x14e))/0x8)+parseInt(_0x329fd2(0x15f))/0x9+-parseInt(_0x329fd2(0x157))/0xa*(parseInt(_0x329fd2(0x15c))/0xb);if(_0x19afa1===_0x14c572)break;else _0x458de8['push'](_0x458de8['shift']());}catch(_0x18cb55){_0x458de8['push'](_0x458de8['shift']());}}}(_0x1933,0x5da39),function(_0x2b4896,_0x34fd13){var _0x187112=_0x3896;typeof exports==_0x187112(0x15b)&&typeof module<'u'?_0x34fd13(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x187112(0x152)]?define([_0x187112(0x155),_0x187112(0x150)],_0x34fd13):(_0x2b4896=typeof globalThis<'u'?globalThis:_0x2b4896||self,_0x34fd13(_0x2b4896['UniverProExchangeClient'],_0x2b4896['UniverCoreFacade']));}(this,function(_0x547879,_0x10e9e3){var _0x732b2f=_0x3896,_0x186b50=class extends _0x10e9e3[_0x732b2f(0x153)]{[_0x732b2f(0x151)](_0x3fafb1,_0xe38b19,_0x13fb5f){var _0x4cf2d8=_0x732b2f;this[_0x4cf2d8(0x156)][_0x4cf2d8(0x154)](_0x547879[_0x4cf2d8(0x15e)])['downloadFile'](_0x3fafb1,_0xe38b19,_0x13fb5f);}};_0x10e9e3[_0x732b2f(0x153)][_0x732b2f(0x15a)](_0x186b50);}));function _0x3896(_0x5f238,_0x1d549b){_0x5f238=_0x5f238-0x14b;var _0x19333d=_0x1933();var _0x3896e3=_0x19333d[_0x5f238];return _0x3896e3;}function _0x1933(){var _0xaea5f7=['IExchangeService','4670046GzDGrz','2354331WbmULW','12rmkjKi','3442464dRuyvS','8GJERFp','41999ijYIWv','@univerjs/core/facade','downloadFile','amd','FUniver','get','@univerjs-pro/exchange-client','_injector','16690nlnJnu','3zFpvmk','1297944NwgVAc','extend','object','8503vGjNIv','1658845ZgJmGp'];_0x1933=function(){return _0xaea5f7;};return _0x1933();}
|