@univerjs-pro/exchange-client 0.5.0-nightly.202411251606 → 0.5.0-nightly.202411271606
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 -0
- 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 -0
- 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/facade/f-univer.d.ts +32 -3
- package/lib/types/facade/index.d.ts +1 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- 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 -0
- 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 +10 -10
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0xf3f8f3=_0x1df5;(function(_0x619f37,_0x3c0e4d){const _0x5a8f8c=_0x1df5,_0x4c5937=_0x619f37();while(!![]){try{const _0xd4d3b8=-parseInt(_0x5a8f8c(0xc5))/0x1*(parseInt(_0x5a8f8c(0xcf))/0x2)+parseInt(_0x5a8f8c(0xc2))/0x3+parseInt(_0x5a8f8c(0xba))/0x4*(parseInt(_0x5a8f8c(0xcd))/0x5)+parseInt(_0x5a8f8c(0xc9))/0x6*(parseInt(_0x5a8f8c(0xc1))/0x7)+parseInt(_0x5a8f8c(0xbe))/0x8*(-parseInt(_0x5a8f8c(0xb8))/0x9)+parseInt(_0x5a8f8c(0xcb))/0xa+-parseInt(_0x5a8f8c(0xca))/0xb*(-parseInt(_0x5a8f8c(0xbc))/0xc);if(_0xd4d3b8===_0x3c0e4d)break;else _0x4c5937['push'](_0x4c5937['shift']());}catch(_0x47ea36){_0x4c5937['push'](_0x4c5937['shift']());}}}(_0x2bfa,0x4918f));function _0x2bfa(){const _0x12fde8=['Cancel','456403xqcqmE','Uploading','Download\x20success','Network\x20error','1236654JIIPVu','4024229zGAwgE','4177280LGppCf','Unknown\x20mistake','55zDRfSR','Internal\x20unknown\x20error','2FTkTbb','361359eBRFdd','Upload\x20again','26788xqavlT','File','12NhmDyf','File\x20uploaded\x20successfully','96KTbvos','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Data\x20is\x20too\x20large','7vnUNKG','522837tCrWbq','Downloading'];_0x2bfa=function(){return _0x12fde8;};return _0x2bfa();}function _0x1df5(_0x3d8809,_0x4c9271){const _0x2bfa99=_0x2bfa();return _0x1df5=function(_0x1df5d5,_0xd98272){_0x1df5d5=_0x1df5d5-0xb8;let _0x3644b0=_0x2bfa99[_0x1df5d5];return _0x3644b0;},_0x1df5(_0x3d8809,_0x4c9271);}const e={'exchange':{'file':_0xf3f8f3(0xbb),'upload':'Open(File)','download':'Save\x20As','uploading':_0xf3f8f3(0xc6),'uploadSuccess':_0xf3f8f3(0xbd),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0xf3f8f3(0xc3),'downloadSuccess':_0xf3f8f3(0xc7),'unknownMistake':_0xf3f8f3(0xcc),'networkError':_0xf3f8f3(0xc8),'tooLarge':_0xf3f8f3(0xc0),'internalError':_0xf3f8f3(0xce),'interrupt':_0xf3f8f3(0xbf),'wait':'Please\x20wait...','cancel':_0xf3f8f3(0xc4),'uploadAgain':_0xf3f8f3(0xb9)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0xa3c137=_0x3cca;(function(_0x1baf46,_0x2f5324){const _0x4749f3=_0x3cca,_0x178296=_0x1baf46();while(!![]){try{const _0x54eab7=-parseInt(_0x4749f3(0x91))/0x1*(-parseInt(_0x4749f3(0x86))/0x2)+-parseInt(_0x4749f3(0x8a))/0x3+parseInt(_0x4749f3(0x84))/0x4*(-parseInt(_0x4749f3(0x94))/0x5)+-parseInt(_0x4749f3(0x87))/0x6*(-parseInt(_0x4749f3(0x8f))/0x7)+parseInt(_0x4749f3(0x8d))/0x8*(-parseInt(_0x4749f3(0x8e))/0x9)+parseInt(_0x4749f3(0x93))/0xa*(parseInt(_0x4749f3(0x80))/0xb)+parseInt(_0x4749f3(0x7f))/0xc;if(_0x54eab7===_0x2f5324)break;else _0x178296['push'](_0x178296['shift']());}catch(_0x5063b4){_0x178296['push'](_0x178296['shift']());}}}(_0x1baa,0x9a8ed));const o={'exchange':{'file':_0xa3c137(0x90),'upload':_0xa3c137(0x82),'download':'ذخیره\x20به\x20عنوان','uploading':_0xa3c137(0x89),'uploadSuccess':_0xa3c137(0x81),'uploadSuccessTip':_0xa3c137(0x88),'downloading':_0xa3c137(0x7d),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0xa3c137(0x85),'networkError':'خطای\x20شبکه','tooLarge':_0xa3c137(0x7e),'internalError':_0xa3c137(0x8c),'interrupt':_0xa3c137(0x83),'wait':_0xa3c137(0x8b),'cancel':_0xa3c137(0x92),'uploadAgain':'بارگذاری\x20مجدد'}};export{o as default};function _0x3cca(_0x46a1a5,_0x452461){const _0x1baaea=_0x1baa();return _0x3cca=function(_0x3cca9d,_0x3e5a29){_0x3cca9d=_0x3cca9d-0x7d;let _0x52a74f=_0x1baaea[_0x3cca9d];return _0x52a74f;},_0x3cca(_0x46a1a5,_0x452461);}function _0x1baa(){const _0x54b82f=['در\x20حال\x20دانلود','داده\x20خیلی\x20بزرگ\x20است','2244216TSmDqH','100331XVFqvF','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','بازکردن(فایل)','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','4iLeifx','خطای\x20ناشناخته','16210YZSWhC','6xZdadM','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','در\x20حال\x20بارگذاری','139110DMSpni','لطفا\x20صبر\x20کنید...','خطای\x20داخلی\x20ناشناخته','56PUOffF','144594RKMOqU','3096485TiTHEM','فایل','41aVSmIH','لغو','330SESemK','2353850mzCuYq'];_0x1baa=function(){return _0x54b82f;};return _0x1baa();}
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x35a3(_0x2f4323,_0x1e0f8d){const _0x304626=_0x3046();return _0x35a3=function(_0x35a3d7,_0x40dc2d){_0x35a3d7=_0x35a3d7-0x1eb;let _0x9a46b0=_0x304626[_0x35a3d7];return _0x9a46b0;},_0x35a3(_0x2f4323,_0x1e0f8d);}function _0x3046(){const _0x562569=['Unknown\x20mistake','File','4PgZiSZ','Please\x20wait...','4xooMXu','1258818iJqXuB','Downloading','140AucfBK','Uploading','1551505BjAkts','100376Adizeg','2587014pDoRpo','File\x20uploaded\x20successfully','Cancel','Open(File)','Internal\x20unknown\x20error','Save\x20As','150633qaRolB','561516REQeeF','{0}\x20file(s)\x20uploaded\x20successfully','Network\x20error','1246150oqTijI'];_0x3046=function(){return _0x562569;};return _0x3046();}const _0x4e91a8=_0x35a3;(function(_0x40b89e,_0x43d468){const _0x53bd24=_0x35a3,_0x5ee699=_0x40b89e();while(!![]){try{const _0x105470=parseInt(_0x53bd24(0x1f0))/0x1*(-parseInt(_0x53bd24(0x1f7))/0x2)+-parseInt(_0x53bd24(0x1f1))/0x3+parseInt(_0x53bd24(0x1f9))/0x4*(parseInt(_0x53bd24(0x1fe))/0x5)+parseInt(_0x53bd24(0x1fa))/0x6+-parseInt(_0x53bd24(0x1fc))/0x7*(parseInt(_0x53bd24(0x1ff))/0x8)+parseInt(_0x53bd24(0x200))/0x9+parseInt(_0x53bd24(0x1f4))/0xa;if(_0x105470===_0x43d468)break;else _0x5ee699['push'](_0x5ee699['shift']());}catch(_0x4b2fab){_0x5ee699['push'](_0x5ee699['shift']());}}}(_0x3046,0x2f113));const e={'exchange':{'file':_0x4e91a8(0x1f6),'upload':_0x4e91a8(0x1ed),'download':_0x4e91a8(0x1ef),'uploading':_0x4e91a8(0x1fd),'uploadSuccess':_0x4e91a8(0x1eb),'uploadSuccessTip':_0x4e91a8(0x1f2),'downloading':_0x4e91a8(0x1fb),'downloadSuccess':'Download\x20success','unknownMistake':_0x4e91a8(0x1f5),'networkError':_0x4e91a8(0x1f3),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x4e91a8(0x1ee),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','wait':_0x4e91a8(0x1f8),'cancel':_0x4e91a8(0x1ec),'uploadAgain':'Upload\x20again'}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x4216(){const _0x46e986=['{0}\x20файл(ов)\x20успешно\x20загружен(о)','229333oCgBNi','Файл\x20успешно\x20загружен','Скачивание','2138780YpjRPa','75566UrDlZK','Данные\x20слишком\x20большие','1240336qDAFLP','Сетевая\x20ошибка','925862nGlXIA','Файл','16CdBtQz','33OHbQXC','Скачивание\x20успешно','Пожалуйста,\x20подождите...','Отмена','Загрузить\x20снова','Открыть(Файл)','647118jhsEii','77340jXGFei','33oINHqs','42OwKByh'];_0x4216=function(){return _0x46e986;};return _0x4216();}const _0xaeac3=_0x3b11;(function(_0x2c5e3c,_0x55b271){const _0x55c1b3=_0x3b11,_0x400ad0=_0x2c5e3c();while(!![]){try{const _0x188d4b=parseInt(_0x55c1b3(0xa3))/0x1+-parseInt(_0x55c1b3(0xa7))/0x2*(-parseInt(_0x55c1b3(0xa0))/0x3)+parseInt(_0x55c1b3(0x93))/0x4+-parseInt(_0x55c1b3(0x9f))/0x5*(-parseInt(_0x55c1b3(0xa1))/0x6)+-parseInt(_0x55c1b3(0x95))/0x7*(parseInt(_0x55c1b3(0x97))/0x8)+parseInt(_0x55c1b3(0x9e))/0x9+-parseInt(_0x55c1b3(0xa6))/0xa*(parseInt(_0x55c1b3(0x98))/0xb);if(_0x188d4b===_0x55b271)break;else _0x400ad0['push'](_0x400ad0['shift']());}catch(_0x4050a0){_0x400ad0['push'](_0x400ad0['shift']());}}}(_0x4216,0x37eb2));function _0x3b11(_0x4a0d72,_0x47de45){const _0x421601=_0x4216();return _0x3b11=function(_0x3b1109,_0x5e18fc){_0x3b1109=_0x3b1109-0x93;let _0x31b75a=_0x421601[_0x3b1109];return _0x31b75a;},_0x3b11(_0x4a0d72,_0x47de45);}const o={'exchange':{'file':_0xaeac3(0x96),'upload':_0xaeac3(0x9d),'download':'Сохранить\x20как','uploading':'Загрузка','uploadSuccess':_0xaeac3(0xa4),'uploadSuccessTip':_0xaeac3(0xa2),'downloading':_0xaeac3(0xa5),'downloadSuccess':_0xaeac3(0x99),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0xaeac3(0x94),'tooLarge':_0xaeac3(0xa8),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','wait':_0xaeac3(0x9a),'cancel':_0xaeac3(0x9b),'uploadAgain':_0xaeac3(0x9c)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4d9521=_0x1321;(function(_0x454a4d,_0x217324){const _0x531734=_0x1321,_0x311a45=_0x454a4d();while(!![]){try{const _0x99ef85=-parseInt(_0x531734(0x1c2))/0x1+-parseInt(_0x531734(0x1bf))/0x2+-parseInt(_0x531734(0x1b4))/0x3*(parseInt(_0x531734(0x1ba))/0x4)+-parseInt(_0x531734(0x1b7))/0x5+parseInt(_0x531734(0x1b2))/0x6+parseInt(_0x531734(0x1c0))/0x7+parseInt(_0x531734(0x1bc))/0x8;if(_0x99ef85===_0x217324)break;else _0x311a45['push'](_0x311a45['shift']());}catch(_0x299cd8){_0x311a45['push'](_0x311a45['shift']());}}}(_0xf7a0,0x56cc3));const n={'exchange':{'file':_0x4d9521(0x1b3),'upload':_0x4d9521(0x1c1),'download':_0x4d9521(0x1b6),'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x4d9521(0x1b5),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x4d9521(0x1b0),'unknownMistake':_0x4d9521(0x1bd),'networkError':_0x4d9521(0x1b1),'tooLarge':_0x4d9521(0x1bb),'internalError':_0x4d9521(0x1be),'interrupt':_0x4d9521(0x1b9),'wait':_0x4d9521(0x1b8),'cancel':'Hủy\x20bỏ','uploadAgain':_0x4d9521(0x1c3)}};function _0x1321(_0x480ac5,_0x32a425){const _0xf7a099=_0xf7a0();return _0x1321=function(_0x132131,_0x475b62){_0x132131=_0x132131-0x1b0;let _0x5e8ae5=_0xf7a099[_0x132131];return _0x5e8ae5;},_0x1321(_0x480ac5,_0x32a425);}export{n as default};function _0xf7a0(){const _0x318f83=['Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','12kmNuYb','Luồng\x20dữ\x20liệu\x20quá\x20lớn','13691616xuhSVV','Lỗi\x20không\x20xác\x20định','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','1270402urNwDY','3484264TtQkAS','Mở\x20(Tệp)','502324qLwZSB','Tải\x20lên\x20lại','Tải\x20xuống\x20thành\x20công','Lỗi\x20mạng','2365992XGJUkD','Tệp','705051qCmSHu','Tải\x20lên\x20tệp\x20thành\x20công','Lưu\x20dưới\x20dạng','2027185VzGcdD','Vui\x20lòng\x20đợi...'];_0xf7a0=function(){return _0x318f83;};return _0xf7a0();}
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x44ee8a=_0x17b7;(function(_0x1945b3,_0x594731){const _0x596b98=_0x17b7,_0x585fd3=_0x1945b3();while(!![]){try{const _0x3ca965=-parseInt(_0x596b98(0xd8))/0x1+parseInt(_0x596b98(0xdd))/0x2+-parseInt(_0x596b98(0xd9))/0x3+-parseInt(_0x596b98(0xd5))/0x4*(-parseInt(_0x596b98(0xdf))/0x5)+-parseInt(_0x596b98(0xe6))/0x6+parseInt(_0x596b98(0xe8))/0x7+parseInt(_0x596b98(0xe2))/0x8*(-parseInt(_0x596b98(0xd6))/0x9);if(_0x3ca965===_0x594731)break;else _0x585fd3['push'](_0x585fd3['shift']());}catch(_0x2a0138){_0x585fd3['push'](_0x585fd3['shift']());}}}(_0x234d,0x40c60));function _0x17b7(_0x4e83c2,_0x5282b6){const _0x234d7f=_0x234d();return _0x17b7=function(_0x17b748,_0x53f67f){_0x17b748=_0x17b748-0xd5;let _0x4c19cf=_0x234d7f[_0x17b748];return _0x4c19cf;},_0x17b7(_0x4e83c2,_0x5282b6);}const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0x44ee8a(0xdc),'uploading':'上传中','uploadSuccess':_0x44ee8a(0xda),'uploadSuccessTip':_0x44ee8a(0xe3),'downloading':_0x44ee8a(0xe5),'downloadSuccess':_0x44ee8a(0xe7),'unknownMistake':_0x44ee8a(0xd7),'networkError':_0x44ee8a(0xdb),'tooLarge':_0x44ee8a(0xe0),'internalError':_0x44ee8a(0xe1),'interrupt':_0x44ee8a(0xde),'wait':_0x44ee8a(0xe4),'cancel':'取消','uploadAgain':'再次上传'}};function _0x234d(){const _0x3bea55=['845745ddNNRj','数据流过大','内部未知错误','3992vZppud','{0}个文件上传成功','请稍等...','下载中','465492qnKtwk','下载成功','2025464tUnaKg','8OAPKPW','3168SIcDBu','未知错误','331419cLNEKx','54135yzEMDS','文件上传成功','网络异常','另存为','480712LbcgzL','网络连接中断,文件上传失败。'];_0x234d=function(){return _0x3bea55;};return _0x234d();}export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x3ae9(){const _0x2163f7=['478448PkwhDt','1114752BadJPO','檔案上傳成功','4045096WtlHEM','24050WFGxhg','再次上傳','未知錯誤','另存為','1HqBtro','請稍等...','2493630BcVXJM','210cDmNzW','9387ebNSXI','338266RuOCei','{0}個檔案上傳成功','內部未知錯誤','下載成功','下載中','3411aEdnlP'];_0x3ae9=function(){return _0x2163f7;};return _0x3ae9();}const _0xe81031=_0x3651;(function(_0x32b763,_0x379a6a){const _0x228459=_0x3651,_0x46ace7=_0x32b763();while(!![]){try{const _0x268d58=parseInt(_0x228459(0xf5))/0x1*(-parseInt(_0x228459(0xfa))/0x2)+-parseInt(_0x228459(0xee))/0x3+-parseInt(_0x228459(0xed))/0x4+parseInt(_0x228459(0xf7))/0x5+parseInt(_0x228459(0xf8))/0x6*(parseInt(_0x228459(0xf9))/0x7)+-parseInt(_0x228459(0xf0))/0x8+-parseInt(_0x228459(0xec))/0x9*(-parseInt(_0x228459(0xf1))/0xa);if(_0x268d58===_0x379a6a)break;else _0x46ace7['push'](_0x46ace7['shift']());}catch(_0x212cd9){_0x46ace7['push'](_0x46ace7['shift']());}}}(_0x3ae9,0x47176));const o={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0xe81031(0xf4),'uploading':'上傳中','uploadSuccess':_0xe81031(0xef),'uploadSuccessTip':_0xe81031(0xfb),'downloading':_0xe81031(0xeb),'downloadSuccess':_0xe81031(0xea),'unknownMistake':_0xe81031(0xf3),'networkError':'網路異常','tooLarge':'資料流過大','internalError':_0xe81031(0xe9),'interrupt':'網路連線中斷,檔案上傳失敗。\x20','wait':_0xe81031(0xf6),'cancel':'取消','uploadAgain':_0xe81031(0xf2)}};function _0x3651(_0x5ae5bc,_0x44f002){const _0x3ae9c4=_0x3ae9();return _0x3651=function(_0x365111,_0x338441){_0x365111=_0x365111-0xe9;let _0x579c16=_0x3ae9c4[_0x365111];return _0x579c16;},_0x3651(_0x5ae5bc,_0x44f002);}export{o as default};
|
@@ -1,5 +1,35 @@
|
|
1
|
-
import { IDocumentData, IWorkbookData } from '@univerjs/core';
|
2
|
-
interface IFUniverExchangeClientMixin {
|
1
|
+
import { IDocumentData, IWorkbookData, FUniver } from '@univerjs/core';
|
2
|
+
export interface IFUniverExchangeClientMixin {
|
3
|
+
/**
|
4
|
+
* Import XLSX file to unit id
|
5
|
+
* @param file File path or file object
|
6
|
+
*/
|
7
|
+
importXLSXToUnitId(file: string | File): Promise<string | undefined>;
|
8
|
+
/**
|
9
|
+
* Import XLSX file to workbook data
|
10
|
+
* @param file File path or file object
|
11
|
+
*/
|
12
|
+
importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
|
13
|
+
/**
|
14
|
+
* Export XLSX file by unit id
|
15
|
+
*/
|
16
|
+
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
17
|
+
/**
|
18
|
+
* Export XLSX file by workbook data
|
19
|
+
*/
|
20
|
+
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
21
|
+
/**
|
22
|
+
* Import DOCX file to unit id
|
23
|
+
* @param file File path or file object
|
24
|
+
*/
|
25
|
+
importDOCXToUnitId(file: string | File): Promise<string | undefined>;
|
26
|
+
/**
|
27
|
+
* Import DOCX file to document data
|
28
|
+
* @param file File path or file object
|
29
|
+
*/
|
30
|
+
importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
|
31
|
+
}
|
32
|
+
export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
|
3
33
|
/**
|
4
34
|
* Import XLSX file to unit id
|
5
35
|
* @param file File path or file object
|
@@ -33,4 +63,3 @@ declare module '@univerjs/core' {
|
|
33
63
|
interface FUniver extends IFUniverExchangeClientMixin {
|
34
64
|
}
|
35
65
|
}
|
36
|
-
export {};
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x4f5e(_0x2bd41c,_0x3983c2){const _0x3ced6e=_0x3ced();return _0x4f5e=function(_0x4f5e16,_0x2584cf){_0x4f5e16=_0x4f5e16-0x17e;let _0x48c4f1=_0x3ced6e[_0x4f5e16];return _0x48c4f1;},_0x4f5e(_0x2bd41c,_0x3983c2);}function _0x3ced(){const _0xee0c85=['importFileToUnitId','530mvdtFF','482550VbZtqk','importXLSXToUnitId','_injector','UNIVER_SHEET','exportXLSXBySnapshot','FUniver','7094248YrOzyb','9103110JqDBuH','exportXLSXByUnitId','18119156KXLVRa','2915Ytltnq','importXLSXToSnapshot','UniverProExchangeClient','234RPagUi','14AfNbez','importDOCXToSnapshot','extend','The\x20exchange\x20service\x20is\x20not\x20available','get','UNIVER_UNKNOWN','object','1979736wTwOqz','UNIVER_DOC','importDOCXToUnitId','@univerjs-pro/exchange-client','42172XDtTtM','IExchangeService','694WQoXcL','UNRECOGNIZED','UNIVER_PROJECT','@univerjs/core'];_0x3ced=function(){return _0xee0c85;};return _0x3ced();}(function(_0x4975bd,_0x2fa2a2){const _0x124e4b=_0x4f5e,_0x472e98=_0x4975bd();while(!![]){try{const _0x4a2449=parseInt(_0x124e4b(0x186))/0x1*(parseInt(_0x124e4b(0x197))/0x2)+parseInt(_0x124e4b(0x191))/0x3+-parseInt(_0x124e4b(0x195))/0x4*(parseInt(_0x124e4b(0x19c))/0x5)+parseInt(_0x124e4b(0x183))/0x6+-parseInt(_0x124e4b(0x18a))/0x7*(-parseInt(_0x124e4b(0x182))/0x8)+parseInt(_0x124e4b(0x189))/0x9*(-parseInt(_0x124e4b(0x19d))/0xa)+-parseInt(_0x124e4b(0x185))/0xb;if(_0x4a2449===_0x2fa2a2)break;else _0x472e98['push'](_0x472e98['shift']());}catch(_0x3aabd7){_0x472e98['push'](_0x472e98['shift']());}}}(_0x3ced,0xe62bc),function(_0x2111a7,_0x3f3cc9){const _0x469f4b=_0x4f5e;typeof exports==_0x469f4b(0x190)&&typeof module<'u'?_0x3f3cc9(require(_0x469f4b(0x19a)),require(_0x469f4b(0x194))):typeof define=='function'&&define['amd']?define(['@univerjs/core',_0x469f4b(0x194)],_0x3f3cc9):(_0x2111a7=typeof globalThis<'u'?globalThis:_0x2111a7||self,_0x3f3cc9(_0x2111a7['UniverCore'],_0x2111a7[_0x469f4b(0x188)]));}(this,function(_0x114c31,_0x4c8133){'use strict';const _0x15a0f9=_0x4f5e;var _0x29de45=(_0x2bc610=>(_0x2bc610[_0x2bc610[_0x15a0f9(0x18f)]=0x0]=_0x15a0f9(0x18f),_0x2bc610[_0x2bc610[_0x15a0f9(0x192)]=0x1]='UNIVER_DOC',_0x2bc610[_0x2bc610['UNIVER_SHEET']=0x2]=_0x15a0f9(0x17f),_0x2bc610[_0x2bc610['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x2bc610[_0x2bc610['UNIVER_PROJECT']=0x4]=_0x15a0f9(0x199),_0x2bc610[_0x2bc610[_0x15a0f9(0x198)]=-0x1]=_0x15a0f9(0x198),_0x2bc610))(_0x29de45||{});class _0x246cd0 extends _0x114c31[_0x15a0f9(0x181)]{async[_0x15a0f9(0x19e)](_0x2343a4){const _0x3dd827=_0x15a0f9,_0x482274=this[_0x3dd827(0x17e)][_0x3dd827(0x18e)](_0x4c8133[_0x3dd827(0x196)]);if(!_0x482274)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x482274[_0x3dd827(0x19b)](_0x2343a4,_0x29de45[_0x3dd827(0x17f)]);}async[_0x15a0f9(0x187)](_0x395bf9){const _0x455a2f=_0x15a0f9,_0x437500=this[_0x455a2f(0x17e)][_0x455a2f(0x18e)](_0x4c8133[_0x455a2f(0x196)]);if(!_0x437500)throw new Error(_0x455a2f(0x18d));return _0x437500[_0x455a2f(0x187)](_0x395bf9);}async[_0x15a0f9(0x184)](_0x41f78f){const _0x491ce5=_0x15a0f9,_0x3d7120=this[_0x491ce5(0x17e)][_0x491ce5(0x18e)](_0x4c8133[_0x491ce5(0x196)]);if(!_0x3d7120)throw new Error(_0x491ce5(0x18d));return _0x3d7120[_0x491ce5(0x184)](_0x41f78f);}async['exportXLSXBySnapshot'](_0x55c52d){const _0x35ee1e=_0x15a0f9,_0x467289=this[_0x35ee1e(0x17e)][_0x35ee1e(0x18e)](_0x4c8133[_0x35ee1e(0x196)]);if(!_0x467289)throw new Error(_0x35ee1e(0x18d));return _0x467289[_0x35ee1e(0x180)](_0x55c52d);}async[_0x15a0f9(0x193)](_0x4d9874){const _0x1bcc60=_0x15a0f9,_0x62de16=this['_injector']['get'](_0x4c8133[_0x1bcc60(0x196)]);if(!_0x62de16)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x62de16[_0x1bcc60(0x19b)](_0x4d9874,_0x29de45[_0x1bcc60(0x192)]);}async[_0x15a0f9(0x18b)](_0x3673b8){const _0x1b09f6=_0x15a0f9,_0x19f144=this['_injector'][_0x1b09f6(0x18e)](_0x4c8133[_0x1b09f6(0x196)]);if(!_0x19f144)throw new Error(_0x1b09f6(0x18d));return _0x19f144['importDOCXToSnapshot'](_0x3673b8);}}_0x114c31[_0x15a0f9(0x181)][_0x15a0f9(0x18c)](_0x246cd0);}));
|