@univerjs-pro/exchange-client 0.4.2 → 0.5.0-nightly.202411091605
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 -0
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +2 -2
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/types/index.d.ts +483 -10
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +38 -20
- package/lib/locale/en-US.json +0 -20
- package/lib/locale/fa-IR.json +0 -20
- package/lib/locale/ru-RU.json +0 -20
- package/lib/locale/vi-VN.json +0 -20
- package/lib/locale/zh-CN.json +0 -20
- package/lib/locale/zh-TW.json +0 -20
- package/lib/types/controllers/config.schema.d.ts +0 -16
- package/lib/types/controllers/exchange.controller.d.ts +0 -8
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/locale/fa-IR.d.ts +0 -3
- package/lib/types/locale/ru-RU.d.ts +0 -3
- package/lib/types/locale/vi-VN.d.ts +0 -3
- package/lib/types/locale/zh-CN.d.ts +0 -21
- package/lib/types/locale/zh-TW.d.ts +0 -3
- package/lib/types/plugin.d.ts +0 -11
- package/lib/types/services/__tests__/snapshot.spec.d.ts +0 -16
- package/lib/types/services/exchange.service.d.ts +0 -87
- package/lib/types/services/operate.service.d.ts +0 -121
- package/lib/types/services/request.service.d.ts +0 -107
- package/lib/types/services/upload-notification.service.d.ts +0 -52
- package/lib/types/services/utils/snapshot.d.ts +0 -76
- package/lib/types/services/utils/tool.d.ts +0 -19
- package/lib/types/views/UploadNotificationContainer.d.ts +0 -2
- package/lib/types/views/link-list/LinkList.d.ts +0 -6
- package/lib/types/views/upload-again/UploadAgain.d.ts +0 -2
- package/lib/types/views/upload-button/UploadButton.d.ts +0 -7
- package/lib/types/views/upload-error/UploadError.d.ts +0 -2
- package/lib/types/views/upload-notification/UploadNotification.d.ts +0 -2
- package/lib/types/views/upload-success/UploadSuccess.d.ts +0 -5
- package/lib/types/views/uploading/Uploading.d.ts +0 -2
- package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +0 -2
- package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +0 -5
@@ -0,0 +1 @@
|
|
1
|
+
function _0x36b8(_0x5b7df1,_0x5c7920){var _0x173a16=_0x173a();return _0x36b8=function(_0x36b8c7,_0x23ac41){_0x36b8c7=_0x36b8c7-0xf6;var _0x55fafb=_0x173a16[_0x36b8c7];return _0x55fafb;},_0x36b8(_0x5b7df1,_0x5c7920);}function _0x173a(){var _0x94f5=['exports','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','File\x20uploaded\x20successfully','UniverExchangeClientEnUS','955658JlcbUH','Network\x20error','Upload\x20again','3jHgzYf','function','4672876mNFuFW','{0}\x20file(s)\x20uploaded\x20successfully','29148zqowsE','675777TSRLLQ','37865360UUuLNJ','51184NUTLTG','object','Unknown\x20mistake','Download\x20success','Internal\x20unknown\x20error','1656UTGuuV','Please\x20wait...','5527225fNsXqY','Open(File)','Save\x20As','Downloading','420rqWuzc','Data\x20is\x20too\x20large'];_0x173a=function(){return _0x94f5;};return _0x173a();}(function(_0x2d9376,_0x1f8a75){var _0x5840c5=_0x36b8,_0x1c6d3e=_0x2d9376();while(!![]){try{var _0x2da454=parseInt(_0x5840c5(0x10e))/0x1+-parseInt(_0x5840c5(0x106))/0x2+-parseInt(_0x5840c5(0x109))/0x3*(parseInt(_0x5840c5(0x10b))/0x4)+-parseInt(_0x5840c5(0xfc))/0x5+-parseInt(_0x5840c5(0x100))/0x6*(-parseInt(_0x5840c5(0x10d))/0x7)+parseInt(_0x5840c5(0x110))/0x8*(-parseInt(_0x5840c5(0xfa))/0x9)+parseInt(_0x5840c5(0x10f))/0xa;if(_0x2da454===_0x1f8a75)break;else _0x1c6d3e['push'](_0x1c6d3e['shift']());}catch(_0x36da5a){_0x1c6d3e['push'](_0x1c6d3e['shift']());}}}(_0x173a,0xc96ec),function(_0x236f6b,_0x131bdf){var _0x15ecd0=_0x36b8;typeof exports==_0x15ecd0(0xf6)&&typeof module<'u'?module[_0x15ecd0(0x102)]=_0x131bdf():typeof define==_0x15ecd0(0x10a)&&define['amd']?define(_0x131bdf):(_0x236f6b=typeof globalThis<'u'?globalThis:_0x236f6b||self,_0x236f6b[_0x15ecd0(0x105)]=_0x131bdf());}(this,function(){'use strict';var _0x3c45e9=_0x36b8;return{'exchange':{'file':'File','upload':_0x3c45e9(0xfd),'download':_0x3c45e9(0xfe),'uploading':'Uploading','uploadSuccess':_0x3c45e9(0x104),'uploadSuccessTip':_0x3c45e9(0x10c),'downloading':_0x3c45e9(0xff),'downloadSuccess':_0x3c45e9(0xf8),'unknownMistake':_0x3c45e9(0xf7),'networkError':_0x3c45e9(0x107),'tooLarge':_0x3c45e9(0x101),'internalError':_0x3c45e9(0xf9),'interrupt':_0x3c45e9(0x103),'wait':_0x3c45e9(0xfb),'cancel':'Cancel','uploadAgain':_0x3c45e9(0x108)}};}));
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x84b9(_0x13b67b,_0x30fc5c){var _0x770ff9=_0x770f();return _0x84b9=function(_0x84b9cb,_0x7b45cd){_0x84b9cb=_0x84b9cb-0x13b;var _0x4c510c=_0x770ff9[_0x84b9cb];return _0x4c510c;},_0x84b9(_0x13b67b,_0x30fc5c);}function _0x770f(){var _0x2170e5=['فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','492090UBRMUK','خطای\x20شبکه','در\x20حال\x20بارگذاری','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','14281erNFrc','بارگذاری\x20مجدد','949242GUhlRB','فایل','ذخیره\x20به\x20عنوان','بازکردن(فایل)','object','1767514lgmMVa','exports','5895Dbleeo','دانلود\x20موفقیت\x20آمیز','6VuCEpX','لغو','582315eJSQNj','1528EkxiCV','1000856zLhMXc','خطای\x20ناشناخته','function'];_0x770f=function(){return _0x2170e5;};return _0x770f();}(function(_0x22cf1b,_0xae5e59){var _0x11309e=_0x84b9,_0x160f02=_0x22cf1b();while(!![]){try{var _0x1d7d8f=-parseInt(_0x11309e(0x144))/0x1*(parseInt(_0x11309e(0x14f))/0x2)+-parseInt(_0x11309e(0x140))/0x3+parseInt(_0x11309e(0x13c))/0x4+parseInt(_0x11309e(0x151))/0x5+-parseInt(_0x11309e(0x146))/0x6+parseInt(_0x11309e(0x14b))/0x7+parseInt(_0x11309e(0x13b))/0x8*(-parseInt(_0x11309e(0x14d))/0x9);if(_0x1d7d8f===_0xae5e59)break;else _0x160f02['push'](_0x160f02['shift']());}catch(_0x5aa579){_0x160f02['push'](_0x160f02['shift']());}}}(_0x770f,0x1f7e2),function(_0x4974fd,_0x39ea19){var _0x1b487b=_0x84b9;typeof exports==_0x1b487b(0x14a)&&typeof module<'u'?module[_0x1b487b(0x14c)]=_0x39ea19():typeof define==_0x1b487b(0x13e)&&define['amd']?define(_0x39ea19):(_0x4974fd=typeof globalThis<'u'?globalThis:_0x4974fd||self,_0x4974fd['UniverExchangeClientFaIR']=_0x39ea19());}(this,function(){'use strict';var _0x53f302=_0x84b9;return{'exchange':{'file':_0x53f302(0x147),'upload':_0x53f302(0x149),'download':_0x53f302(0x148),'uploading':_0x53f302(0x142),'uploadSuccess':_0x53f302(0x13f),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x53f302(0x14e),'unknownMistake':_0x53f302(0x13d),'networkError':_0x53f302(0x141),'tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':'خطای\x20داخلی\x20ناشناخته','interrupt':_0x53f302(0x143),'wait':'لطفا\x20صبر\x20کنید...','cancel':_0x53f302(0x150),'uploadAgain':_0x53f302(0x145)}};}));
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x41e2(){var _0x3359f3=['{0}\x20файл(ов)\x20успешно\x20загружен(о)','Сохранить\x20как','Внутренняя\x20неизвестная\x20ошибка','Отмена','exports','365842zbBrBk','UniverExchangeClientRuRU','amd','function','Загрузка','1LUhkUG','16oCdjof','Скачивание','Данные\x20слишком\x20большие','309190xbDvVi','11hJOjOC','Пожалуйста,\x20подождите...','4129800niFvby','Загрузить\x20снова','197323hjbhWW','Скачивание\x20успешно','150MlxWrJ','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','Файл\x20успешно\x20загружен','9560240dDEuYY','10569672TvSSng','253899RNNMVo','object'];_0x41e2=function(){return _0x3359f3;};return _0x41e2();}function _0x1410(_0x31483b,_0x4d39a8){var _0x41e2ae=_0x41e2();return _0x1410=function(_0x141079,_0x39ce1c){_0x141079=_0x141079-0xf2;var _0x53e949=_0x41e2ae[_0x141079];return _0x53e949;},_0x1410(_0x31483b,_0x4d39a8);}(function(_0x442d78,_0x5b5b90){var _0xcdcddf=_0x1410,_0x8ca4d4=_0x442d78();while(!![]){try{var _0x167992=-parseInt(_0xcdcddf(0xff))/0x1*(-parseInt(_0xcdcddf(0xfa))/0x2)+parseInt(_0xcdcddf(0x106))/0x3+parseInt(_0xcdcddf(0x100))/0x4*(parseInt(_0xcdcddf(0x103))/0x5)+parseInt(_0xcdcddf(0x10a))/0x6*(-parseInt(_0xcdcddf(0x108))/0x7)+-parseInt(_0xcdcddf(0xf2))/0x8+-parseInt(_0xcdcddf(0xf3))/0x9+parseInt(_0xcdcddf(0x10d))/0xa*(parseInt(_0xcdcddf(0x104))/0xb);if(_0x167992===_0x5b5b90)break;else _0x8ca4d4['push'](_0x8ca4d4['shift']());}catch(_0x6d50cf){_0x8ca4d4['push'](_0x8ca4d4['shift']());}}}(_0x41e2,0xad090),function(_0x50f251,_0x15cfaa){var _0x1c0736=_0x1410;typeof exports==_0x1c0736(0xf4)&&typeof module<'u'?module[_0x1c0736(0xf9)]=_0x15cfaa():typeof define==_0x1c0736(0xfd)&&define[_0x1c0736(0xfc)]?define(_0x15cfaa):(_0x50f251=typeof globalThis<'u'?globalThis:_0x50f251||self,_0x50f251[_0x1c0736(0xfb)]=_0x15cfaa());}(this,function(){'use strict';var _0x11c0ec=_0x1410;return{'exchange':{'file':'Файл','upload':'Открыть(Файл)','download':_0x11c0ec(0xf6),'uploading':_0x11c0ec(0xfe),'uploadSuccess':_0x11c0ec(0x10c),'uploadSuccessTip':_0x11c0ec(0xf5),'downloading':_0x11c0ec(0x101),'downloadSuccess':_0x11c0ec(0x109),'unknownMistake':'Неизвестная\x20ошибка','networkError':'Сетевая\x20ошибка','tooLarge':_0x11c0ec(0x102),'internalError':_0x11c0ec(0xf7),'interrupt':_0x11c0ec(0x10b),'wait':_0x11c0ec(0x105),'cancel':_0x11c0ec(0xf8),'uploadAgain':_0x11c0ec(0x107)}};}));
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x1909(){var _0x10e510=['1048400WuEnKC','49642hVNbmD','Lưu\x20dưới\x20dạng','Hủy\x20bỏ','Đang\x20tải\x20lên','596035VnOdRb','Đang\x20tải\x20xuống','674014VmLmzF','5976dHbTHj','Tải\x20lên\x20tệp\x20thành\x20công','Tải\x20lên\x20lại','6kPXHCl','28LAxnso','UniverExchangeClientViVN','object','Lỗi\x20mạng','Luồng\x20dữ\x20liệu\x20quá\x20lớn','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20xuống\x20thành\x20công','1190016RlPgbn','931ZqTFdL','4jpziDI','78423HPzqEa','amd','Vui\x20lòng\x20đợi...','exports','Mở\x20(Tệp)'];_0x1909=function(){return _0x10e510;};return _0x1909();}function _0x59c6(_0x2f529b,_0x9a94ee){var _0x19090d=_0x1909();return _0x59c6=function(_0x59c6c5,_0x2f11e6){_0x59c6c5=_0x59c6c5-0x17f;var _0x170582=_0x19090d[_0x59c6c5];return _0x170582;},_0x59c6(_0x2f529b,_0x9a94ee);}(function(_0x2b2323,_0x4e9e31){var _0x28c2d4=_0x59c6,_0x2db041=_0x2b2323();while(!![]){try{var _0x3c97e0=-parseInt(_0x28c2d4(0x195))/0x1*(-parseInt(_0x28c2d4(0x18e))/0x2)+-parseInt(_0x28c2d4(0x18f))/0x3*(parseInt(_0x28c2d4(0x185))/0x4)+parseInt(_0x28c2d4(0x199))/0x5*(parseInt(_0x28c2d4(0x184))/0x6)+-parseInt(_0x28c2d4(0x18d))/0x7*(-parseInt(_0x28c2d4(0x181))/0x8)+parseInt(_0x28c2d4(0x18c))/0x9+-parseInt(_0x28c2d4(0x194))/0xa+-parseInt(_0x28c2d4(0x180))/0xb;if(_0x3c97e0===_0x4e9e31)break;else _0x2db041['push'](_0x2db041['shift']());}catch(_0x135f6a){_0x2db041['push'](_0x2db041['shift']());}}}(_0x1909,0x18a65),function(_0x4a2dd1,_0x40e8cf){var _0x59a234=_0x59c6;typeof exports==_0x59a234(0x187)&&typeof module<'u'?module[_0x59a234(0x192)]=_0x40e8cf():typeof define=='function'&&define[_0x59a234(0x190)]?define(_0x40e8cf):(_0x4a2dd1=typeof globalThis<'u'?globalThis:_0x4a2dd1||self,_0x4a2dd1[_0x59a234(0x186)]=_0x40e8cf());}(this,function(){'use strict';var _0x545c5a=_0x59c6;return{'exchange':{'file':'Tệp','upload':_0x545c5a(0x193),'download':_0x545c5a(0x196),'uploading':_0x545c5a(0x198),'uploadSuccess':_0x545c5a(0x182),'uploadSuccessTip':_0x545c5a(0x18a),'downloading':_0x545c5a(0x17f),'downloadSuccess':_0x545c5a(0x18b),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x545c5a(0x188),'tooLarge':_0x545c5a(0x189),'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.','wait':_0x545c5a(0x191),'cancel':_0x545c5a(0x197),'uploadAgain':_0x545c5a(0x183)}};}));
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(_0x45682b,_0x52584d){var _0x5a0805=_0x3854,_0x1282b9=_0x45682b();while(!![]){try{var _0x420056=-parseInt(_0x5a0805(0x1c9))/0x1*(parseInt(_0x5a0805(0x1c7))/0x2)+-parseInt(_0x5a0805(0x1b8))/0x3*(parseInt(_0x5a0805(0x1bb))/0x4)+-parseInt(_0x5a0805(0x1b5))/0x5+-parseInt(_0x5a0805(0x1bd))/0x6+parseInt(_0x5a0805(0x1be))/0x7*(parseInt(_0x5a0805(0x1bf))/0x8)+parseInt(_0x5a0805(0x1b9))/0x9*(parseInt(_0x5a0805(0x1ce))/0xa)+-parseInt(_0x5a0805(0x1cb))/0xb*(-parseInt(_0x5a0805(0x1ba))/0xc);if(_0x420056===_0x52584d)break;else _0x1282b9['push'](_0x1282b9['shift']());}catch(_0x78cf6a){_0x1282b9['push'](_0x1282b9['shift']());}}}(_0x1906,0x2dd10),function(_0xcd9fdb,_0x13b689){var _0x48fda8=_0x3854;typeof exports==_0x48fda8(0x1c6)&&typeof module<'u'?module['exports']=_0x13b689():typeof define==_0x48fda8(0x1c2)&&define[_0x48fda8(0x1c5)]?define(_0x13b689):(_0xcd9fdb=typeof globalThis<'u'?globalThis:_0xcd9fdb||self,_0xcd9fdb[_0x48fda8(0x1bc)]=_0x13b689());}(this,function(){'use strict';var _0x2834ee=_0x3854;return{'exchange':{'file':'文件','upload':'打开(文件)','download':_0x2834ee(0x1cf),'uploading':_0x2834ee(0x1c0),'uploadSuccess':_0x2834ee(0x1c4),'uploadSuccessTip':_0x2834ee(0x1b6),'downloading':'下载中','downloadSuccess':_0x2834ee(0x1c1),'unknownMistake':_0x2834ee(0x1cc),'networkError':_0x2834ee(0x1ca),'tooLarge':_0x2834ee(0x1cd),'internalError':_0x2834ee(0x1b7),'interrupt':_0x2834ee(0x1c8),'wait':_0x2834ee(0x1c3),'cancel':'取消','uploadAgain':'再次上传'}};}));function _0x3854(_0x3df482,_0xaead71){var _0x19068a=_0x1906();return _0x3854=function(_0x38544c,_0x47c16f){_0x38544c=_0x38544c-0x1b5;var _0x3f795b=_0x19068a[_0x38544c];return _0x3f795b;},_0x3854(_0x3df482,_0xaead71);}function _0x1906(){var _0x7ddfa6=['144616FlBcnM','上传中','下载成功','function','请稍等...','文件上传成功','amd','object','8080mSCUHU','网络连接中断,文件上传失败。','87JgtUIs','网络异常','121704cAjEWR','未知错误','数据流过大','490TDRgiJ','另存为','804735vWejHz','{0}个文件上传成功','内部未知错误','3KYyOxo','37089NLWeeG','1260pqHfvJ','1340996HHQDBv','UniverExchangeClientZhCN','2186778tcPoBJ','14PlgOgy'];_0x1906=function(){return _0x7ddfa6;};return _0x1906();}
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x57b2(_0x2e80b7,_0x4e5aab){var _0x2de645=_0x2de6();return _0x57b2=function(_0x57b2d8,_0x4c68b0){_0x57b2d8=_0x57b2d8-0x1ee;var _0x3de0b8=_0x2de645[_0x57b2d8];return _0x3de0b8;},_0x57b2(_0x2e80b7,_0x4e5aab);}function _0x2de6(){var _0x8cc1b1=['另存為','1624218lhBEgt','6935700PmHsak','開啟(檔案)','下載成功','1039404CINFOs','6IVYWjn','網路異常','2032892KNRQif','amd','內部未知錯誤','{0}個檔案上傳成功','2NIBmcR','exports','145953YxYNVN','下載中','48PvFICa','17549972URpBQA','2517455bqNnpW','網路連線中斷,檔案上傳失敗。\x20','檔案上傳成功','請稍等...','UniverExchangeClientZhTW','未知錯誤','function','資料流過大','7eMSZoV'];_0x2de6=function(){return _0x8cc1b1;};return _0x2de6();}(function(_0x24fb25,_0x3f32d1){var _0x541b8c=_0x57b2,_0x50d347=_0x24fb25();while(!![]){try{var _0x327493=-parseInt(_0x541b8c(0x1fb))/0x1*(parseInt(_0x541b8c(0x206))/0x2)+-parseInt(_0x541b8c(0x200))/0x3*(-parseInt(_0x541b8c(0x202))/0x4)+-parseInt(_0x541b8c(0x1f1))/0x5+-parseInt(_0x541b8c(0x1ff))/0x6*(parseInt(_0x541b8c(0x1f9))/0x7)+-parseInt(_0x541b8c(0x1ef))/0x8*(parseInt(_0x541b8c(0x208))/0x9)+parseInt(_0x541b8c(0x1fc))/0xa+parseInt(_0x541b8c(0x1f0))/0xb;if(_0x327493===_0x3f32d1)break;else _0x50d347['push'](_0x50d347['shift']());}catch(_0x2c75ed){_0x50d347['push'](_0x50d347['shift']());}}}(_0x2de6,0xdd7d7),function(_0x103605,_0x4e3882){var _0x248819=_0x57b2;typeof exports=='object'&&typeof module<'u'?module[_0x248819(0x207)]=_0x4e3882():typeof define==_0x248819(0x1f7)&&define[_0x248819(0x203)]?define(_0x4e3882):(_0x103605=typeof globalThis<'u'?globalThis:_0x103605||self,_0x103605[_0x248819(0x1f5)]=_0x4e3882());}(this,function(){'use strict';var _0x16f5f3=_0x57b2;return{'exchange':{'file':'檔案','upload':_0x16f5f3(0x1fd),'download':_0x16f5f3(0x1fa),'uploading':'上傳中','uploadSuccess':_0x16f5f3(0x1f3),'uploadSuccessTip':_0x16f5f3(0x205),'downloading':_0x16f5f3(0x1ee),'downloadSuccess':_0x16f5f3(0x1fe),'unknownMistake':_0x16f5f3(0x1f6),'networkError':_0x16f5f3(0x201),'tooLarge':_0x16f5f3(0x1f8),'internalError':_0x16f5f3(0x204),'interrupt':_0x16f5f3(0x1f2),'wait':_0x16f5f3(0x1f4),'cancel':'取消','uploadAgain':'再次上傳'}};}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@univerjs-pro/exchange-client",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.0-nightly.202411091605",
|
4
4
|
"private": false,
|
5
5
|
"description": "",
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
@@ -28,11 +28,19 @@
|
|
28
28
|
"require": "./lib/cjs/*",
|
29
29
|
"types": "./lib/types/index.d.ts"
|
30
30
|
},
|
31
|
-
"./
|
32
|
-
|
31
|
+
"./facade": {
|
32
|
+
"import": "./lib/es/facade.js",
|
33
|
+
"require": "./lib/cjs/facade.js",
|
34
|
+
"types": "./lib/types/facade/index.d.ts"
|
35
|
+
},
|
36
|
+
"./locale/*": {
|
37
|
+
"import": "./lib/es/locale/*.js",
|
38
|
+
"require": "./lib/cjs/locale/*.js",
|
39
|
+
"types": "./lib/types/locale/*.d.ts"
|
40
|
+
},
|
41
|
+
"./lib/*": "./lib/*"
|
33
42
|
},
|
34
|
-
"main": "./lib/
|
35
|
-
"module": "./lib/es/index.js",
|
43
|
+
"main": "./lib/es/index.js",
|
36
44
|
"types": "./lib/types/index.d.ts",
|
37
45
|
"publishConfig": {
|
38
46
|
"access": "public"
|
@@ -48,25 +56,25 @@
|
|
48
56
|
"rxjs": ">=7.0.0"
|
49
57
|
},
|
50
58
|
"dependencies": {
|
51
|
-
"@univerjs/icons": "^0.
|
59
|
+
"@univerjs/icons": "^0.2.5",
|
52
60
|
"pako": "^2.1.0",
|
53
|
-
"@univerjs/
|
54
|
-
"@univerjs/design": "0.
|
55
|
-
"@univerjs
|
56
|
-
"@univerjs/
|
57
|
-
"@univerjs/
|
58
|
-
"@univerjs/
|
61
|
+
"@univerjs-pro/collaboration": "0.5.0-nightly.202411091605",
|
62
|
+
"@univerjs/design": "0.5.0-nightly.202411091605",
|
63
|
+
"@univerjs/network": "0.5.0-nightly.202411091605",
|
64
|
+
"@univerjs/core": "0.5.0-nightly.202411091605",
|
65
|
+
"@univerjs/ui": "0.5.0-nightly.202411091605",
|
66
|
+
"@univerjs/protocol": "0.1.39-alpha.38"
|
59
67
|
},
|
60
68
|
"devDependencies": {
|
61
69
|
"@types/pako": "^2.0.3",
|
62
70
|
"less": "^4.2.0",
|
63
71
|
"rxjs": "^7.8.1",
|
64
72
|
"typescript": "5.6.3",
|
65
|
-
"vite": "^5.4.
|
66
|
-
"vitest": "^2.1.
|
67
|
-
"@univerjs-infra/shared": "0.
|
73
|
+
"vite": "^5.4.10",
|
74
|
+
"vitest": "^2.1.4",
|
75
|
+
"@univerjs-infra/shared": "0.5.0-alpha.0"
|
68
76
|
},
|
69
|
-
"
|
77
|
+
"space": {
|
70
78
|
".": {
|
71
79
|
"import": "./lib/es/index.js",
|
72
80
|
"require": "./lib/cjs/index.js",
|
@@ -77,14 +85,24 @@
|
|
77
85
|
"require": "./lib/cjs/*",
|
78
86
|
"types": "./lib/types/index.d.ts"
|
79
87
|
},
|
80
|
-
"./
|
81
|
-
|
88
|
+
"./facade": {
|
89
|
+
"import": "./lib/es/facade.js",
|
90
|
+
"require": "./lib/cjs/facade.js",
|
91
|
+
"types": "./lib/types/facade/index.d.ts"
|
92
|
+
},
|
93
|
+
"./locale/*": {
|
94
|
+
"import": "./lib/es/locale/*.js",
|
95
|
+
"require": "./lib/cjs/locale/*.js",
|
96
|
+
"types": "./lib/types/locale/*.d.ts"
|
97
|
+
},
|
98
|
+
"./lib/*": "./lib/*"
|
82
99
|
},
|
83
100
|
"scripts": {
|
84
101
|
"test": "vitest run",
|
85
102
|
"test:watch": "vitest",
|
86
103
|
"coverage": "vitest run --coverage",
|
87
104
|
"lint:types": "tsc --noEmit",
|
88
|
-
"build": "
|
89
|
-
}
|
105
|
+
"build": "tsx build.ts"
|
106
|
+
},
|
107
|
+
"module": "./lib/es/index.js"
|
90
108
|
}
|
package/lib/locale/en-US.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"exchange": {
|
3
|
-
"file": "File",
|
4
|
-
"upload": "Open(File)",
|
5
|
-
"download": "Save As",
|
6
|
-
"uploading": "Uploading",
|
7
|
-
"uploadSuccess": "File uploaded successfully",
|
8
|
-
"uploadSuccessTip": "{0} file(s) uploaded successfully",
|
9
|
-
"downloading": "Downloading",
|
10
|
-
"downloadSuccess": "Download success",
|
11
|
-
"unknownMistake": "Unknown mistake",
|
12
|
-
"networkError": "Network error",
|
13
|
-
"tooLarge": "Data is too large",
|
14
|
-
"internalError": "Internal unknown error",
|
15
|
-
"interrupt": "The network connection was interrupted and the file upload failed.",
|
16
|
-
"wait": "Please wait...",
|
17
|
-
"cancel": "Cancel",
|
18
|
-
"uploadAgain": "Upload again"
|
19
|
-
}
|
20
|
-
}
|
package/lib/locale/fa-IR.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"exchange": {
|
3
|
-
"file": "فایل",
|
4
|
-
"upload": "بازکردن(فایل)",
|
5
|
-
"download": "ذخیره به عنوان",
|
6
|
-
"uploading": "در حال بارگذاری",
|
7
|
-
"uploadSuccess": "فایل با موفقیت بارگذاری شد",
|
8
|
-
"uploadSuccessTip": "{0} فایل با موفقیت بارگذاری شد",
|
9
|
-
"downloading": "در حال دانلود",
|
10
|
-
"downloadSuccess": "دانلود موفقیت آمیز",
|
11
|
-
"unknownMistake": "خطای ناشناخته",
|
12
|
-
"networkError": "خطای شبکه",
|
13
|
-
"tooLarge": "داده خیلی بزرگ است",
|
14
|
-
"internalError": "خطای داخلی ناشناخته",
|
15
|
-
"interrupt": "اتصال شبکه قطع شد و بارگذاری فایل ناموفق بود.",
|
16
|
-
"wait": "لطفا صبر کنید...",
|
17
|
-
"cancel": "لغو",
|
18
|
-
"uploadAgain": "بارگذاری مجدد"
|
19
|
-
}
|
20
|
-
}
|
package/lib/locale/ru-RU.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"exchange": {
|
3
|
-
"file": "Файл",
|
4
|
-
"upload": "Открыть(Файл)",
|
5
|
-
"download": "Сохранить как",
|
6
|
-
"uploading": "Загрузка",
|
7
|
-
"uploadSuccess": "Файл успешно загружен",
|
8
|
-
"uploadSuccessTip": "{0} файл(ов) успешно загружен(о)",
|
9
|
-
"downloading": "Скачивание",
|
10
|
-
"downloadSuccess": "Скачивание успешно",
|
11
|
-
"unknownMistake": "Неизвестная ошибка",
|
12
|
-
"networkError": "Сетевая ошибка",
|
13
|
-
"tooLarge": "Данные слишком большие",
|
14
|
-
"internalError": "Внутренняя неизвестная ошибка",
|
15
|
-
"interrupt": "Сетевое соединение было прервано, и загрузка файла не удалась.",
|
16
|
-
"wait": "Пожалуйста, подождите...",
|
17
|
-
"cancel": "Отмена",
|
18
|
-
"uploadAgain": "Загрузить снова"
|
19
|
-
}
|
20
|
-
}
|
package/lib/locale/vi-VN.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"exchange": {
|
3
|
-
"file": "Tệp",
|
4
|
-
"upload": "Mở (Tệp)",
|
5
|
-
"download": "Lưu dưới dạng",
|
6
|
-
"uploading": "Đang tải lên",
|
7
|
-
"uploadSuccess": "Tải lên tệp thành công",
|
8
|
-
"uploadSuccessTip": "{0} tệp đã được tải lên thành công",
|
9
|
-
"downloading": "Đang tải xuống",
|
10
|
-
"downloadSuccess": "Tải xuống thành công",
|
11
|
-
"unknownMistake": "Lỗi không xác định",
|
12
|
-
"networkError": "Lỗi mạng",
|
13
|
-
"tooLarge": "Luồng dữ liệu quá lớn",
|
14
|
-
"internalError": "Lỗi không xác định bên trong",
|
15
|
-
"interrupt": "Kết nối mạng bị gián đoạn, tải lên tệp thất bại.",
|
16
|
-
"wait": "Vui lòng đợi...",
|
17
|
-
"cancel": "Hủy bỏ",
|
18
|
-
"uploadAgain": "Tải lên lại"
|
19
|
-
}
|
20
|
-
}
|
package/lib/locale/zh-CN.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"exchange": {
|
3
|
-
"file": "文件",
|
4
|
-
"upload": "打开(文件)",
|
5
|
-
"download": "另存为",
|
6
|
-
"uploading": "上传中",
|
7
|
-
"uploadSuccess": "文件上传成功",
|
8
|
-
"uploadSuccessTip": "{0}个文件上传成功",
|
9
|
-
"downloading": "下载中",
|
10
|
-
"downloadSuccess": "下载成功",
|
11
|
-
"unknownMistake": "未知错误",
|
12
|
-
"networkError": "网络异常",
|
13
|
-
"tooLarge": "数据流过大",
|
14
|
-
"internalError": "内部未知错误",
|
15
|
-
"interrupt": "网络连接中断,文件上传失败。",
|
16
|
-
"wait": "请稍等...",
|
17
|
-
"cancel": "取消",
|
18
|
-
"uploadAgain": "再次上传"
|
19
|
-
}
|
20
|
-
}
|
package/lib/locale/zh-TW.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"exchange": {
|
3
|
-
"file": "檔案",
|
4
|
-
"upload": "開啟(檔案)",
|
5
|
-
"download": "另存為",
|
6
|
-
"uploading": "上傳中",
|
7
|
-
"uploadSuccess": "檔案上傳成功",
|
8
|
-
"uploadSuccessTip": "{0}個檔案上傳成功",
|
9
|
-
"downloading": "下載中",
|
10
|
-
"downloadSuccess": "下載成功",
|
11
|
-
"unknownMistake": "未知錯誤",
|
12
|
-
"networkError": "網路異常",
|
13
|
-
"tooLarge": "資料流過大",
|
14
|
-
"internalError": "內部未知錯誤",
|
15
|
-
"interrupt": "網路連線中斷,檔案上傳失敗。 ",
|
16
|
-
"wait": "請稍等...",
|
17
|
-
"cancel": "取消",
|
18
|
-
"uploadAgain": "再次上傳"
|
19
|
-
}
|
20
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export declare const PLUGIN_CONFIG_KEY = "exchange-client.config";
|
2
|
-
export declare const configSymbol: unique symbol;
|
3
|
-
export interface IUniverExchangeClientConfig {
|
4
|
-
/**
|
5
|
-
* The URL of the endpoint for downloading files.
|
6
|
-
* @default 'location.origin'
|
7
|
-
*/
|
8
|
-
downloadEndpointUrl?: string;
|
9
|
-
uploadFileServerUrl?: string;
|
10
|
-
importServerUrl?: string;
|
11
|
-
exportServerUrl?: string;
|
12
|
-
getTaskServerUrl?: string;
|
13
|
-
signUrlServerUrl?: string;
|
14
|
-
maxTimeoutTime?: number;
|
15
|
-
}
|
16
|
-
export declare const defaultPluginConfig: IUniverExchangeClientConfig;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Disposable, Injector } from '@univerjs/core';
|
2
|
-
import { IUIPartsService } from '@univerjs/ui';
|
3
|
-
export declare class ExchangeClientController extends Disposable {
|
4
|
-
private readonly _injector;
|
5
|
-
private readonly _uiPartsService;
|
6
|
-
constructor(_injector: Injector, _uiPartsService: IUIPartsService);
|
7
|
-
private _registerComponents;
|
8
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
declare const locales: {
|
2
|
-
exchange: {
|
3
|
-
file: string;
|
4
|
-
upload: string;
|
5
|
-
download: string;
|
6
|
-
uploading: string;
|
7
|
-
uploadSuccess: string;
|
8
|
-
uploadSuccessTip: string;
|
9
|
-
downloading: string;
|
10
|
-
downloadSuccess: string;
|
11
|
-
unknownMistake: string;
|
12
|
-
networkError: string;
|
13
|
-
tooLarge: string;
|
14
|
-
internalError: string;
|
15
|
-
interrupt: string;
|
16
|
-
wait: string;
|
17
|
-
cancel: string;
|
18
|
-
uploadAgain: string;
|
19
|
-
};
|
20
|
-
};
|
21
|
-
export default locales;
|
package/lib/types/plugin.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import { IUniverExchangeClientConfig } from './controllers/config.schema';
|
2
|
-
import { IConfigService, Injector, Plugin } from '@univerjs/core';
|
3
|
-
export declare class UniverExchangeClientPlugin extends Plugin {
|
4
|
-
private readonly _config;
|
5
|
-
readonly _injector: Injector;
|
6
|
-
private readonly _configService;
|
7
|
-
static pluginName: string;
|
8
|
-
constructor(_config: IUniverExchangeClientConfig | undefined, _injector: Injector, _configService: IConfigService);
|
9
|
-
onStarting(): void;
|
10
|
-
onReady(): void;
|
11
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
export {};
|
@@ -1,87 +0,0 @@
|
|
1
|
-
import { IDisposable, IDocumentData, IWorkbookData, Disposable, IConfigService } from '@univerjs/core';
|
2
|
-
import { IError, UniverType } from '@univerjs/protocol';
|
3
|
-
import { RequestService } from './request.service';
|
4
|
-
import { Observable } from 'rxjs';
|
5
|
-
export declare enum RequestState {
|
6
|
-
UPLOAD = 0,
|
7
|
-
IMPORT = 1,
|
8
|
-
EXPORT = 2,
|
9
|
-
GET_TASK = 3,
|
10
|
-
SIGN_URL = 4,
|
11
|
-
GET_JSON = 5,
|
12
|
-
GET_FILE = 6
|
13
|
-
}
|
14
|
-
export interface IRequestState {
|
15
|
-
error: IError | undefined;
|
16
|
-
state: RequestState;
|
17
|
-
}
|
18
|
-
export interface IExchangeService {
|
19
|
-
requestState$: Observable<IRequestState>;
|
20
|
-
/**
|
21
|
-
* Import XLSX file to workbook data
|
22
|
-
* @param file
|
23
|
-
*/
|
24
|
-
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
25
|
-
/**
|
26
|
-
* Export XLSX file by unit id
|
27
|
-
* @param unitId
|
28
|
-
*/
|
29
|
-
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
30
|
-
/**
|
31
|
-
* Export XLSX file by workbook data
|
32
|
-
* @param data
|
33
|
-
* @returns
|
34
|
-
*/
|
35
|
-
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
36
|
-
/**
|
37
|
-
* Import DOCX file to document data
|
38
|
-
* @param file
|
39
|
-
*/
|
40
|
-
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
41
|
-
/**
|
42
|
-
* Export DOCX file by unit id
|
43
|
-
* @param unitId
|
44
|
-
*/
|
45
|
-
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
46
|
-
/**
|
47
|
-
* Export DOCX file by document data
|
48
|
-
* @param data
|
49
|
-
* @returns
|
50
|
-
*/
|
51
|
-
exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
|
52
|
-
/**
|
53
|
-
* Import file to unit id
|
54
|
-
* @param file
|
55
|
-
* @param univerType
|
56
|
-
*/
|
57
|
-
importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
|
58
|
-
}
|
59
|
-
export declare const IExchangeService: import('@wendellhu/redi').IdentifierDecorator<IExchangeService>;
|
60
|
-
export declare class ExchangeService extends Disposable implements IExchangeService, IDisposable {
|
61
|
-
private readonly _configService;
|
62
|
-
private readonly _requestService;
|
63
|
-
private readonly _requestState$;
|
64
|
-
readonly requestState$: Observable<IRequestState>;
|
65
|
-
constructor(_configService: IConfigService, _requestService: RequestService);
|
66
|
-
dispose(): void;
|
67
|
-
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
68
|
-
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
69
|
-
exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
|
70
|
-
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
71
|
-
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
72
|
-
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
73
|
-
importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
|
74
|
-
private _importToSnapshot;
|
75
|
-
/**
|
76
|
-
* Export file by snapshot
|
77
|
-
* @param snapshot
|
78
|
-
* @param univerType
|
79
|
-
* @returns
|
80
|
-
*/
|
81
|
-
private _exportBySnapshot;
|
82
|
-
private _export;
|
83
|
-
private _upload;
|
84
|
-
private _import;
|
85
|
-
private _signUrl;
|
86
|
-
private _getDownloadEndpointURL;
|
87
|
-
}
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { IDisposable, Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { ExchangeService } from './exchange.service';
|
4
|
-
import { UploadNotificationService } from './upload-notification.service';
|
5
|
-
import { UniverType } from '@univerjs/protocol';
|
6
|
-
import { IMessageService } from '@univerjs/ui';
|
7
|
-
export interface IExchangeOperateService {
|
8
|
-
interrupt(): void;
|
9
|
-
/**
|
10
|
-
* Upload file to server, get unitId and open unit
|
11
|
-
* @param file
|
12
|
-
*/
|
13
|
-
importXLSXToUnitId(): Promise<string | undefined>;
|
14
|
-
/**
|
15
|
-
* Upload xlsx file to server, get snapshot and refresh current sheet
|
16
|
-
* @param file
|
17
|
-
*/
|
18
|
-
importXLSXToSnapshot(): Promise<void>;
|
19
|
-
/**
|
20
|
-
* Export xlsx file by unitId
|
21
|
-
* @returns
|
22
|
-
*/
|
23
|
-
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
24
|
-
/**
|
25
|
-
* Export xlsx file by snapshot
|
26
|
-
* @returns
|
27
|
-
*/
|
28
|
-
exportXLSXBySnapshot(): Promise<void>;
|
29
|
-
/**
|
30
|
-
* Upload file to server, get unitId and open unit
|
31
|
-
* @param file
|
32
|
-
*/
|
33
|
-
importDOCXToUnitId(): Promise<string | undefined>;
|
34
|
-
/**
|
35
|
-
* Upload docx file to server, get snapshot and refresh current doc
|
36
|
-
* @param file
|
37
|
-
*/
|
38
|
-
importDOCXToSnapshot(): Promise<void>;
|
39
|
-
/**
|
40
|
-
* Export docx file by unitId
|
41
|
-
* @returns
|
42
|
-
*/
|
43
|
-
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverType): Promise<void>;
|
44
|
-
/**
|
45
|
-
* Export docx file by snapshot
|
46
|
-
* @returns
|
47
|
-
*/
|
48
|
-
exportDOCXBySnapshot(): Promise<void>;
|
49
|
-
/**
|
50
|
-
* Upload file, supports multiple types
|
51
|
-
* @param file
|
52
|
-
*/
|
53
|
-
uploadFileToUnitId(types: UniverType[]): Promise<{
|
54
|
-
unitId: string;
|
55
|
-
type: UniverType;
|
56
|
-
} | undefined>;
|
57
|
-
/**
|
58
|
-
* Customize the imported Unit URL format according to the needs of your own scene
|
59
|
-
* @param getLink
|
60
|
-
*/
|
61
|
-
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
62
|
-
/**
|
63
|
-
* Observable of upload progress
|
64
|
-
*/
|
65
|
-
progress$: Observable<IUploadProgress>;
|
66
|
-
}
|
67
|
-
export interface IUploadProgress {
|
68
|
-
/** Task that already completed. */
|
69
|
-
done: number;
|
70
|
-
/** The total number of tasks need to execute. */
|
71
|
-
count: number;
|
72
|
-
}
|
73
|
-
export declare const IExchangeOperateService: import('@wendellhu/redi').IdentifierDecorator<IExchangeOperateService>;
|
74
|
-
export declare class ExchangeOperateService extends Disposable implements IExchangeOperateService, IDisposable {
|
75
|
-
private _univerInstanceService;
|
76
|
-
private readonly _messageService;
|
77
|
-
private readonly _localeService;
|
78
|
-
private readonly _exchangeService;
|
79
|
-
private readonly _uploadNotificationService;
|
80
|
-
protected readonly _logService: ILogService;
|
81
|
-
private _interrupted;
|
82
|
-
private readonly _progress$;
|
83
|
-
readonly progress$: Observable<IUploadProgress>;
|
84
|
-
private _totalUploadTaskCount;
|
85
|
-
private _doneUploadTaskCount;
|
86
|
-
constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService);
|
87
|
-
interrupt(): void;
|
88
|
-
uploadFileToUnitId(types: UniverType[]): Promise<{
|
89
|
-
unitId: string;
|
90
|
-
type: UniverType;
|
91
|
-
} | undefined>;
|
92
|
-
importDOCXToUnitId(): Promise<string | undefined>;
|
93
|
-
importDOCXToSnapshot(): Promise<void>;
|
94
|
-
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
95
|
-
exportDOCXBySnapshot(): Promise<void>;
|
96
|
-
importXLSXToUnitId(): Promise<string | undefined>;
|
97
|
-
importXLSXToSnapshot(): Promise<void>;
|
98
|
-
exportXLSXByUnitId(unitId?: string, unitName?: string): Promise<void>;
|
99
|
-
exportXLSXBySnapshot(): Promise<void>;
|
100
|
-
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
101
|
-
private _importFileToUnitId;
|
102
|
-
private _getUnitID;
|
103
|
-
private _getUnitName;
|
104
|
-
private _getUnitJson;
|
105
|
-
/**
|
106
|
-
* Get unit link /?unit={unitId}&type=2
|
107
|
-
* @param unitId
|
108
|
-
* @param type
|
109
|
-
* @returns
|
110
|
-
*/
|
111
|
-
private _getLinkByUnitId;
|
112
|
-
private _refresh;
|
113
|
-
private _showNetworkError;
|
114
|
-
private _showDownloadMessage;
|
115
|
-
private _showUploadMessage;
|
116
|
-
private _emitProgress;
|
117
|
-
private _addTotalCount;
|
118
|
-
private _addDoneTask;
|
119
|
-
private _completeProgress;
|
120
|
-
private _clearProgress;
|
121
|
-
}
|