@univerjs-pro/sheets-exchange-client 0.13.0 → 0.14.0-insiders.20251222-4efcfbb
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1985a2=_0x5658;(function(_0x4d3f59,_0x37c0eb){const _0x3a5e4c=_0x5658,_0xb8ac61=_0x4d3f59();while(!![]){try{const _0xe40482=parseInt(_0x3a5e4c(0x160))/0x1+parseInt(_0x3a5e4c(0x140))/0x2*(-parseInt(_0x3a5e4c(0x145))/0x3)+parseInt(_0x3a5e4c(0x16d))/0x4+-parseInt(_0x3a5e4c(0x156))/0x5+-parseInt(_0x3a5e4c(0x164))/0x6+-parseInt(_0x3a5e4c(0x13e))/0x7+parseInt(_0x3a5e4c(0x158))/0x8;if(_0xe40482===_0x37c0eb)break;else _0xb8ac61['push'](_0xb8ac61['shift']());}catch(_0x553abe){_0xb8ac61['push'](_0xb8ac61['shift']());}}}(_0x3033,0xd6222));Object[_0x1985a2(0x14b)](exports,Symbol['toStringTag'],{'value':'Module'});function _0x5658(_0x4a1ad0,_0xf3930e){_0x4a1ad0=_0x4a1ad0-0x135;const _0x303345=_0x3033();let _0x56582b=_0x303345[_0x4a1ad0];return _0x56582b;}const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x1985a2(0x14f),'type':i['CommandType']['OPERATION'],'handler':async _0x119183=>{const _0x86659c=_0x1985a2,_0x5b9f2e=_0x119183[_0x86659c(0x15d)](g[_0x86659c(0x172)]);return new URLSearchParams(location['search'])[_0x86659c(0x15d)]('unit')?_0x5b9f2e[_0x86659c(0x15e)]():_0x5b9f2e[_0x86659c(0x165)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x1985a2(0x16a)]['OPERATION'],'handler':async _0x36500c=>{const _0xf13711=_0x1985a2,_0x3acf0e=_0x36500c['get'](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0xf13711(0x15d)]('unit')?_0x3acf0e['exportXLSXByUnitId']():_0x3acf0e[_0xf13711(0x169)](),!0x0;}},v=_0x1985a2(0x16e),h={},S='sheets-exchange-client.operation.exchange';function x(_0x544dbd){const _0x53d3b5=_0x1985a2;return{'id':S,'type':c[_0x53d3b5(0x147)][_0x53d3b5(0x14a)],'icon':_0x53d3b5(0x163),'tooltip':_0x53d3b5(0x150),'hidden$':c[_0x53d3b5(0x159)](_0x544dbd,i[_0x53d3b5(0x162)]['UNIVER_SHEET']),'disabled$':I[_0x53d3b5(0x171)](_0x544dbd,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x32b97f=_0x1985a2;return{'id':l['id'],'type':c['MenuItemType'][_0x32b97f(0x14d)],'title':'exchange.upload','icon':_0x32b97f(0x146)};}function C(){const _0x205ea0=_0x1985a2;return{'id':p['id'],'type':c[_0x205ea0(0x147)][_0x205ea0(0x14d)],'title':_0x205ea0(0x170),'icon':_0x205ea0(0x13a)};}const f={[c[_0x1985a2(0x16c)][_0x1985a2(0x154)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1985a2(0x137)],y=(_0x1bb581,_0x50695c,_0xcdd0da,_0x2bd838)=>{const _0x2333bc=_0x1985a2;for(var _0x466988=_0x2bd838>0x1?void 0x0:_0x2bd838?T(_0x50695c,_0xcdd0da):_0x50695c,_0x57e656=_0x1bb581[_0x2333bc(0x149)]-0x1,_0x9e3416;_0x57e656>=0x0;_0x57e656--)(_0x9e3416=_0x1bb581[_0x57e656])&&(_0x466988=_0x9e3416(_0x466988)||_0x466988);return _0x466988;},m=(_0x1c42c1,_0x1de963)=>(_0x431df0,_0x15631c)=>_0x1de963(_0x431df0,_0x15631c,_0x1c42c1);let u=class extends i[_0x1985a2(0x14c)]{constructor(_0x57a9b4,_0x4c0280){const _0xaa7afc=_0x1985a2;super(),this[_0xaa7afc(0x16f)]=_0x57a9b4,this[_0xaa7afc(0x161)]=_0x4c0280,this[_0xaa7afc(0x136)](),this[_0xaa7afc(0x13d)]();}[_0x1985a2(0x136)](){const _0x2b3600=_0x1985a2;[l,p][_0x2b3600(0x13c)](_0x523a65=>{const _0x2e6381=_0x2b3600;this[_0x2e6381(0x135)](this[_0x2e6381(0x16f)][_0x2e6381(0x142)](_0x523a65));});}[_0x1985a2(0x13d)](){const _0x30fa49=_0x1985a2;this[_0x30fa49(0x161)][_0x30fa49(0x141)](f);}};u=y([m(0x0,i[_0x1985a2(0x166)]),m(0x1,c[_0x1985a2(0x152)])],u);var O=Object[_0x1985a2(0x14b)],U=Object[_0x1985a2(0x137)],X=(_0x335090,_0x36894e,_0x2bd00c)=>_0x36894e in _0x335090?O(_0x335090,_0x36894e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bd00c}):_0x335090[_0x36894e]=_0x2bd00c,N=(_0x2b012c,_0x19b929,_0x4f20db,_0xbd5f92)=>{const _0x27428a=_0x1985a2;for(var _0x5ac964=_0xbd5f92>0x1?void 0x0:_0xbd5f92?U(_0x19b929,_0x4f20db):_0x19b929,_0x13df36=_0x2b012c[_0x27428a(0x149)]-0x1,_0x117114;_0x13df36>=0x0;_0x13df36--)(_0x117114=_0x2b012c[_0x13df36])&&(_0x5ac964=_0x117114(_0x5ac964)||_0x5ac964);return _0x5ac964;},d=(_0x6ed628,_0x452ab5)=>(_0x4461dd,_0x318adc)=>_0x452ab5(_0x4461dd,_0x318adc,_0x6ed628),E=(_0x471e52,_0x4b30df,_0x447fee)=>X(_0x471e52,typeof _0x4b30df!=_0x1985a2(0x139)?_0x4b30df+'':_0x4b30df,_0x447fee);const L=_0x1985a2(0x157);function _0x3033(){const _0x5a4bc1=['exportXLSXBySnapshot','CommandType','add','RibbonStartGroup','1246040HKJQEq','sheets-exchange-client.config','_commandService','exchange.download','getCurrentRangeDisable$','IExchangeOperateService','disposeWithMe','_initCommands','getOwnPropertyDescriptor','onStarting','symbol','ExportIcon','onReady','forEach','_initMenus','6006784VnRNrV','merge','1446548dNzrTI','mergeMenu','registerCommand','_configService','type','6xKAQOL','FolderIcon','MenuItemType','pluginName','length','SUBITEMS','defineProperty','Disposable','BUTTON','UniverExchangeClientPlugin','exchange-client.operation.import-xlsx','exchange.file','ImportXLSXOperation','IMenuManagerService','UniverSheetsExchangeClientPlugin','OTHERS','UNIVER_SHEET','992090oAbXPU','SHEET_EXCHANGE_CLIENT_PLUGIN','25651960UHoEua','getMenuHiddenObservable','Inject','Injector','_injector','get','importXLSXToUnitId','ExportXLSXOperation','366838KyuaKe','_menuManagerService','UniverInstanceType','DirectExportIcon','3028050ciHMXC','importXLSXToSnapshot','ICommandService','Plugin','setConfig'];_0x3033=function(){return _0x5a4bc1;};return _0x3033();}exports[_0x1985a2(0x153)]=class extends i[_0x1985a2(0x167)]{constructor(_0x17799d=h,_0x4d79e7,_0x28bf7c){const _0x24a96f=_0x1985a2;super(),this['_config']=_0x17799d,this[_0x24a96f(0x15c)]=_0x4d79e7,this['_configService']=_0x28bf7c;const {menu:_0x5cee20,..._0x56ad75}=i[_0x24a96f(0x13f)]({},h,this['_config']);_0x5cee20&&this[_0x24a96f(0x143)][_0x24a96f(0x168)]('menu',_0x5cee20,{'merge':!0x0}),this[_0x24a96f(0x143)][_0x24a96f(0x168)](v,_0x56ad75);}[_0x1985a2(0x138)](){const _0x201eba=_0x1985a2;[[u]][_0x201eba(0x13c)](_0x25c21c=>this[_0x201eba(0x15c)][_0x201eba(0x16b)](_0x25c21c));}[_0x1985a2(0x13b)](){const _0x438f96=_0x1985a2;this[_0x438f96(0x15c)][_0x438f96(0x15d)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1985a2(0x148),L),E(exports[_0x1985a2(0x153)],_0x1985a2(0x144),i[_0x1985a2(0x162)][_0x1985a2(0x155)]),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x1985a2(0x14e)]),d(0x1,i[_0x1985a2(0x15a)](i[_0x1985a2(0x15b)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x1985a2(0x15f)]=p,exports[_0x1985a2(0x151)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4db81c=_0x5bc7;(function(_0x2d6d38,_0x4b2c2b){const _0x233b24=_0x5bc7,_0x436502=_0x2d6d38();while(!![]){try{const _0x5127eb=-parseInt(_0x233b24(0x202))/0x1*(parseInt(_0x233b24(0x1e8))/0x2)+-parseInt(_0x233b24(0x20e))/0x3+-parseInt(_0x233b24(0x209))/0x4+parseInt(_0x233b24(0x1ef))/0x5*(-parseInt(_0x233b24(0x1e2))/0x6)+-parseInt(_0x233b24(0x1e4))/0x7+-parseInt(_0x233b24(0x1e6))/0x8+parseInt(_0x233b24(0x20d))/0x9*(parseInt(_0x233b24(0x204))/0xa);if(_0x5127eb===_0x4b2c2b)break;else _0x436502['push'](_0x436502['shift']());}catch(_0x559149){_0x436502['push'](_0x436502['shift']());}}}(_0x2211,0xd3f58));import{IExchangeOperateService as _0x2e6b68,UniverExchangeClientPlugin as _0x40cf7f}from'@univerjs-pro/exchange-client';function _0x5bc7(_0x1d0bab,_0x3b8e15){_0x1d0bab=_0x1d0bab-0x1de;const _0x2211a7=_0x2211();let _0x5bc794=_0x2211a7[_0x1d0bab];return _0x5bc794;}import{CommandType as _0x17b4ac,UniverInstanceType as _0x517340,Disposable as _0x3d08ec,ICommandService as _0x32f1c7,DependentOn as _0x3fffa4,Inject as _0x195adf,Injector as _0x2d8093,IConfigService as _0xc364f7,Plugin as _0x2935ce,merge as _0x4ad856}from'@univerjs/core';import{MenuItemType as _0x3d73cd,getMenuHiddenObservable as _0x501014,RibbonStartGroup as _0x28c2b2,IMenuManagerService as _0x1f4e21}from'@univerjs/ui';import{WorkbookExportPermission as _0x530f52}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2cb04b}from'@univerjs/sheets-ui';const p={'id':_0x4db81c(0x200),'type':_0x17b4ac['OPERATION'],'handler':async _0x437dfd=>{const _0x2dc23c=_0x4db81c,_0x1f9fb7=_0x437dfd['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x2dc23c(0x1f2)](_0x2dc23c(0x20b))?_0x1f9fb7[_0x2dc23c(0x1e7)]():_0x1f9fb7[_0x2dc23c(0x1ff)](),!0x0;}},u={'id':_0x4db81c(0x1f1),'type':_0x17b4ac[_0x4db81c(0x1ed)],'handler':async _0x1f4259=>{const _0x525b6e=_0x4db81c,_0x125fcf=_0x1f4259['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x525b6e(0x1f2)]('unit')?_0x125fcf['exportXLSXByUnitId']():_0x125fcf[_0x525b6e(0x1f6)](),!0x0;}},H=_0x4db81c(0x206),l={},S=_0x4db81c(0x1f8);function R(_0x1440be){const _0x23228f=_0x4db81c;return{'id':S,'type':_0x3d73cd[_0x23228f(0x1e5)],'icon':_0x23228f(0x1f5),'tooltip':_0x23228f(0x1fa),'hidden$':_0x501014(_0x1440be,_0x517340[_0x23228f(0x1ea)]),'disabled$':_0x2cb04b(_0x1440be,{'workbookTypes':[_0x530f52]})};}function w(){const _0x380b7d=_0x4db81c;return{'id':p['id'],'type':_0x3d73cd[_0x380b7d(0x1f3)],'title':_0x380b7d(0x1f4),'icon':_0x380b7d(0x1fb)};}function D(){const _0x35dc50=_0x4db81c;return{'id':u['id'],'type':_0x3d73cd[_0x35dc50(0x1f3)],'title':_0x35dc50(0x1e9),'icon':_0x35dc50(0x1de)};}const F={[_0x28c2b2['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4db81c(0x1fc)],A=(_0x49a7ca,_0x27b079,_0x42aa06,_0x59eeb8)=>{const _0x1c8dc0=_0x4db81c;for(var _0x984fbe=_0x59eeb8>0x1?void 0x0:_0x59eeb8?G(_0x27b079,_0x42aa06):_0x27b079,_0x5c13dc=_0x49a7ca[_0x1c8dc0(0x1e1)]-0x1,_0x177f11;_0x5c13dc>=0x0;_0x5c13dc--)(_0x177f11=_0x49a7ca[_0x5c13dc])&&(_0x984fbe=_0x177f11(_0x984fbe)||_0x984fbe);return _0x984fbe;},d=(_0x2760e9,_0x490841)=>(_0x4aa7d1,_0x44975f)=>_0x490841(_0x4aa7d1,_0x44975f,_0x2760e9);let c=class extends _0x3d08ec{constructor(_0x49d527,_0x409b1e){const _0x4861ca=_0x4db81c;super(),this[_0x4861ca(0x1eb)]=_0x49d527,this[_0x4861ca(0x208)]=_0x409b1e,this[_0x4861ca(0x1e0)](),this[_0x4861ca(0x207)]();}[_0x4db81c(0x1e0)](){const _0x2164a3=_0x4db81c;[p,u][_0x2164a3(0x1f9)](_0x543239=>{const _0x3af195=_0x2164a3;this['disposeWithMe'](this[_0x3af195(0x1eb)][_0x3af195(0x1ee)](_0x543239));});}[_0x4db81c(0x207)](){const _0x56de81=_0x4db81c;this[_0x56de81(0x208)][_0x56de81(0x20c)](F);}};c=A([d(0x0,_0x32f1c7),d(0x1,_0x1f4e21)],c);var j=Object[_0x4db81c(0x20a)],B=Object[_0x4db81c(0x1fc)],$=(_0x5e6235,_0xc5e373,_0x1d431c)=>_0xc5e373 in _0x5e6235?j(_0x5e6235,_0xc5e373,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d431c}):_0x5e6235[_0xc5e373]=_0x1d431c,V=(_0x41bfdb,_0x543827,_0x40473a,_0x12ba7d)=>{for(var _0x23b387=_0x12ba7d>0x1?void 0x0:_0x12ba7d?B(_0x543827,_0x40473a):_0x543827,_0x1fc279=_0x41bfdb['length']-0x1,_0x453faf;_0x1fc279>=0x0;_0x1fc279--)(_0x453faf=_0x41bfdb[_0x1fc279])&&(_0x23b387=_0x453faf(_0x23b387)||_0x23b387);return _0x23b387;},_=(_0x5978a9,_0x19353e)=>(_0x3126a4,_0x10873b)=>_0x19353e(_0x3126a4,_0x10873b,_0x5978a9),I=(_0x670cca,_0x597819,_0x521f70)=>$(_0x670cca,typeof _0x597819!=_0x4db81c(0x1fd)?_0x597819+'':_0x597819,_0x521f70);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2935ce{constructor(_0x5cbe52=l,_0x5d5b4b,_0x298340){const _0x54a803=_0x4db81c;super(),this[_0x54a803(0x1ec)]=_0x5cbe52,this[_0x54a803(0x1e3)]=_0x5d5b4b,this[_0x54a803(0x1f0)]=_0x298340;const {menu:_0x76cc26,..._0x218991}=_0x4ad856({},l,this['_config']);_0x76cc26&&this[_0x54a803(0x1f0)][_0x54a803(0x205)](_0x54a803(0x203),_0x76cc26,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x218991);}[_0x4db81c(0x201)](){const _0x4ce23a=_0x4db81c;[[c]]['forEach'](_0x393130=>this[_0x4ce23a(0x1e3)][_0x4ce23a(0x1df)](_0x393130));}[_0x4db81c(0x1fe)](){const _0x2a854d=_0x4db81c;this[_0x2a854d(0x1e3)][_0x2a854d(0x1f2)](c);}};function _0x2211(){const _0x511752=['exchange-client.operation.import-xlsx','onStarting','8237DSRqmJ','menu','125770xtBSwu','setConfig','sheets-exchange-client.config','_initMenus','_menuManagerService','2251696vpMLhN','defineProperty','unit','mergeMenu','3690ZFZMFG','1945452Jhwirk','ExportIcon','add','_initCommands','length','1496016qwJUGE','_injector','10499979YCViwX','SUBITEMS','4127736ijQUKV','importXLSXToUnitId','76vyNBED','exchange.download','UNIVER_SHEET','_commandService','_config','OPERATION','registerCommand','15zmRJfv','_configService','exchange-client.operation.export-xlsx','get','BUTTON','exchange.upload','DirectExportIcon','exportXLSXBySnapshot','pluginName','sheets-exchange-client.operation.exchange','forEach','exchange.file','FolderIcon','getOwnPropertyDescriptor','symbol','onReady','importXLSXToSnapshot'];_0x2211=function(){return _0x511752;};return _0x2211();}I(s,_0x4db81c(0x1f7),W),I(s,'type',_0x517340[_0x4db81c(0x1ea)]),s=V([_0x3fffa4(_0x40cf7f),_(0x1,_0x195adf(_0x2d8093)),_(0x2,_0xc364f7)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4db81c=_0x5bc7;(function(_0x2d6d38,_0x4b2c2b){const _0x233b24=_0x5bc7,_0x436502=_0x2d6d38();while(!![]){try{const _0x5127eb=-parseInt(_0x233b24(0x202))/0x1*(parseInt(_0x233b24(0x1e8))/0x2)+-parseInt(_0x233b24(0x20e))/0x3+-parseInt(_0x233b24(0x209))/0x4+parseInt(_0x233b24(0x1ef))/0x5*(-parseInt(_0x233b24(0x1e2))/0x6)+-parseInt(_0x233b24(0x1e4))/0x7+-parseInt(_0x233b24(0x1e6))/0x8+parseInt(_0x233b24(0x20d))/0x9*(parseInt(_0x233b24(0x204))/0xa);if(_0x5127eb===_0x4b2c2b)break;else _0x436502['push'](_0x436502['shift']());}catch(_0x559149){_0x436502['push'](_0x436502['shift']());}}}(_0x2211,0xd3f58));import{IExchangeOperateService as _0x2e6b68,UniverExchangeClientPlugin as _0x40cf7f}from'@univerjs-pro/exchange-client';function _0x5bc7(_0x1d0bab,_0x3b8e15){_0x1d0bab=_0x1d0bab-0x1de;const _0x2211a7=_0x2211();let _0x5bc794=_0x2211a7[_0x1d0bab];return _0x5bc794;}import{CommandType as _0x17b4ac,UniverInstanceType as _0x517340,Disposable as _0x3d08ec,ICommandService as _0x32f1c7,DependentOn as _0x3fffa4,Inject as _0x195adf,Injector as _0x2d8093,IConfigService as _0xc364f7,Plugin as _0x2935ce,merge as _0x4ad856}from'@univerjs/core';import{MenuItemType as _0x3d73cd,getMenuHiddenObservable as _0x501014,RibbonStartGroup as _0x28c2b2,IMenuManagerService as _0x1f4e21}from'@univerjs/ui';import{WorkbookExportPermission as _0x530f52}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2cb04b}from'@univerjs/sheets-ui';const p={'id':_0x4db81c(0x200),'type':_0x17b4ac['OPERATION'],'handler':async _0x437dfd=>{const _0x2dc23c=_0x4db81c,_0x1f9fb7=_0x437dfd['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x2dc23c(0x1f2)](_0x2dc23c(0x20b))?_0x1f9fb7[_0x2dc23c(0x1e7)]():_0x1f9fb7[_0x2dc23c(0x1ff)](),!0x0;}},u={'id':_0x4db81c(0x1f1),'type':_0x17b4ac[_0x4db81c(0x1ed)],'handler':async _0x1f4259=>{const _0x525b6e=_0x4db81c,_0x125fcf=_0x1f4259['get'](_0x2e6b68);return new URLSearchParams(location['search'])[_0x525b6e(0x1f2)]('unit')?_0x125fcf['exportXLSXByUnitId']():_0x125fcf[_0x525b6e(0x1f6)](),!0x0;}},H=_0x4db81c(0x206),l={},S=_0x4db81c(0x1f8);function R(_0x1440be){const _0x23228f=_0x4db81c;return{'id':S,'type':_0x3d73cd[_0x23228f(0x1e5)],'icon':_0x23228f(0x1f5),'tooltip':_0x23228f(0x1fa),'hidden$':_0x501014(_0x1440be,_0x517340[_0x23228f(0x1ea)]),'disabled$':_0x2cb04b(_0x1440be,{'workbookTypes':[_0x530f52]})};}function w(){const _0x380b7d=_0x4db81c;return{'id':p['id'],'type':_0x3d73cd[_0x380b7d(0x1f3)],'title':_0x380b7d(0x1f4),'icon':_0x380b7d(0x1fb)};}function D(){const _0x35dc50=_0x4db81c;return{'id':u['id'],'type':_0x3d73cd[_0x35dc50(0x1f3)],'title':_0x35dc50(0x1e9),'icon':_0x35dc50(0x1de)};}const F={[_0x28c2b2['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4db81c(0x1fc)],A=(_0x49a7ca,_0x27b079,_0x42aa06,_0x59eeb8)=>{const _0x1c8dc0=_0x4db81c;for(var _0x984fbe=_0x59eeb8>0x1?void 0x0:_0x59eeb8?G(_0x27b079,_0x42aa06):_0x27b079,_0x5c13dc=_0x49a7ca[_0x1c8dc0(0x1e1)]-0x1,_0x177f11;_0x5c13dc>=0x0;_0x5c13dc--)(_0x177f11=_0x49a7ca[_0x5c13dc])&&(_0x984fbe=_0x177f11(_0x984fbe)||_0x984fbe);return _0x984fbe;},d=(_0x2760e9,_0x490841)=>(_0x4aa7d1,_0x44975f)=>_0x490841(_0x4aa7d1,_0x44975f,_0x2760e9);let c=class extends _0x3d08ec{constructor(_0x49d527,_0x409b1e){const _0x4861ca=_0x4db81c;super(),this[_0x4861ca(0x1eb)]=_0x49d527,this[_0x4861ca(0x208)]=_0x409b1e,this[_0x4861ca(0x1e0)](),this[_0x4861ca(0x207)]();}[_0x4db81c(0x1e0)](){const _0x2164a3=_0x4db81c;[p,u][_0x2164a3(0x1f9)](_0x543239=>{const _0x3af195=_0x2164a3;this['disposeWithMe'](this[_0x3af195(0x1eb)][_0x3af195(0x1ee)](_0x543239));});}[_0x4db81c(0x207)](){const _0x56de81=_0x4db81c;this[_0x56de81(0x208)][_0x56de81(0x20c)](F);}};c=A([d(0x0,_0x32f1c7),d(0x1,_0x1f4e21)],c);var j=Object[_0x4db81c(0x20a)],B=Object[_0x4db81c(0x1fc)],$=(_0x5e6235,_0xc5e373,_0x1d431c)=>_0xc5e373 in _0x5e6235?j(_0x5e6235,_0xc5e373,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d431c}):_0x5e6235[_0xc5e373]=_0x1d431c,V=(_0x41bfdb,_0x543827,_0x40473a,_0x12ba7d)=>{for(var _0x23b387=_0x12ba7d>0x1?void 0x0:_0x12ba7d?B(_0x543827,_0x40473a):_0x543827,_0x1fc279=_0x41bfdb['length']-0x1,_0x453faf;_0x1fc279>=0x0;_0x1fc279--)(_0x453faf=_0x41bfdb[_0x1fc279])&&(_0x23b387=_0x453faf(_0x23b387)||_0x23b387);return _0x23b387;},_=(_0x5978a9,_0x19353e)=>(_0x3126a4,_0x10873b)=>_0x19353e(_0x3126a4,_0x10873b,_0x5978a9),I=(_0x670cca,_0x597819,_0x521f70)=>$(_0x670cca,typeof _0x597819!=_0x4db81c(0x1fd)?_0x597819+'':_0x597819,_0x521f70);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2935ce{constructor(_0x5cbe52=l,_0x5d5b4b,_0x298340){const _0x54a803=_0x4db81c;super(),this[_0x54a803(0x1ec)]=_0x5cbe52,this[_0x54a803(0x1e3)]=_0x5d5b4b,this[_0x54a803(0x1f0)]=_0x298340;const {menu:_0x76cc26,..._0x218991}=_0x4ad856({},l,this['_config']);_0x76cc26&&this[_0x54a803(0x1f0)][_0x54a803(0x205)](_0x54a803(0x203),_0x76cc26,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x218991);}[_0x4db81c(0x201)](){const _0x4ce23a=_0x4db81c;[[c]]['forEach'](_0x393130=>this[_0x4ce23a(0x1e3)][_0x4ce23a(0x1df)](_0x393130));}[_0x4db81c(0x1fe)](){const _0x2a854d=_0x4db81c;this[_0x2a854d(0x1e3)][_0x2a854d(0x1f2)](c);}};function _0x2211(){const _0x511752=['exchange-client.operation.import-xlsx','onStarting','8237DSRqmJ','menu','125770xtBSwu','setConfig','sheets-exchange-client.config','_initMenus','_menuManagerService','2251696vpMLhN','defineProperty','unit','mergeMenu','3690ZFZMFG','1945452Jhwirk','ExportIcon','add','_initCommands','length','1496016qwJUGE','_injector','10499979YCViwX','SUBITEMS','4127736ijQUKV','importXLSXToUnitId','76vyNBED','exchange.download','UNIVER_SHEET','_commandService','_config','OPERATION','registerCommand','15zmRJfv','_configService','exchange-client.operation.export-xlsx','get','BUTTON','exchange.upload','DirectExportIcon','exportXLSXBySnapshot','pluginName','sheets-exchange-client.operation.exchange','forEach','exchange.file','FolderIcon','getOwnPropertyDescriptor','symbol','onReady','importXLSXToSnapshot'];_0x2211=function(){return _0x511752;};return _0x2211();}I(s,_0x4db81c(0x1f7),W),I(s,'type',_0x517340[_0x4db81c(0x1ea)]),s=V([_0x3fffa4(_0x40cf7f),_(0x1,_0x195adf(_0x2d8093)),_(0x2,_0xc364f7)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x396d(){const _0x2e6fd5=['exchange.file','function','1232259otjcpZ','UniverSheetsUi','UniverProExchangeClient','getMenuHiddenObservable','amd','forEach','_config','unit','UNIVER_SHEET','exportXLSXBySnapshot','disposeWithMe','OPERATION','menu','15538RTamGQ','@univerjs/core','exports','UniverUi','_menuManagerService','3016710QUBtDu','defineProperty','ICommandService','importXLSXToUnitId','CommandType','4642356ryfZUI','FolderIcon','Disposable','OTHERS','3847370rAFgmu','BUTTON','ExportIcon','onStarting','WorkbookExportPermission','RibbonStartGroup','5pgbcln','1211492BWXlDD','exchange.download','UniverSheetsExchangeClientPlugin','exportXLSXByUnitId','type','exchange-client.operation.export-xlsx','sheets-exchange-client.operation.exchange','IExchangeOperateService','_injector','setConfig','IMenuManagerService','pluginName','exchange.upload','Inject','@univerjs-pro/exchange-client','Plugin','40kzELVe','get','DependentOn','object','55EyBHaS','search','UniverProSheetsExchangeClient','toStringTag','sheets-exchange-client.config','MenuItemType','_configService','2840244IJYAdX','@univerjs/sheets','length','_commandService','106kMcIfF','_initMenus','DirectExportIcon','merge','importXLSXToSnapshot','UniverInstanceType','getOwnPropertyDescriptor'];_0x396d=function(){return _0x2e6fd5;};return _0x396d();}function _0x45de(_0x48b2bd,_0x111773){_0x48b2bd=_0x48b2bd-0x184;const _0x396d96=_0x396d();let _0x45de0a=_0x396d96[_0x48b2bd];return _0x45de0a;}(function(_0x273f41,_0x3147de){const _0x4f4498=_0x45de,_0xf602e3=_0x273f41();while(!![]){try{const _0x38fe81=parseInt(_0x4f4498(0x1bb))/0x1*(-parseInt(_0x4f4498(0x1a5))/0x2)+parseInt(_0x4f4498(0x1a1))/0x3+parseInt(_0x4f4498(0x186))/0x4+-parseInt(_0x4f4498(0x185))/0x5*(-parseInt(_0x4f4498(0x1c5))/0x6)+parseInt(_0x4f4498(0x1ae))/0x7*(parseInt(_0x4f4498(0x196))/0x8)+parseInt(_0x4f4498(0x1c0))/0x9+parseInt(_0x4f4498(0x1c9))/0xa*(-parseInt(_0x4f4498(0x19a))/0xb);if(_0x38fe81===_0x3147de)break;else _0xf602e3['push'](_0xf602e3['shift']());}catch(_0x2214d7){_0xf602e3['push'](_0xf602e3['shift']());}}}(_0x396d,0x78003),function(_0x18b044,_0x3561e1){const _0x21ebd2=_0x45de;typeof exports==_0x21ebd2(0x199)&&typeof module<'u'?_0x3561e1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x21ebd2(0x1ad)&&define[_0x21ebd2(0x1b2)]?define([_0x21ebd2(0x1bd),_0x21ebd2(0x194),_0x21ebd2(0x1bc),'@univerjs/ui',_0x21ebd2(0x1a2),'@univerjs/sheets-ui'],_0x3561e1):(_0x18b044=typeof globalThis<'u'?globalThis:_0x18b044||self,_0x3561e1(_0x18b044[_0x21ebd2(0x19c)]={},_0x18b044[_0x21ebd2(0x1b0)],_0x18b044['UniverCore'],_0x18b044[_0x21ebd2(0x1be)],_0x18b044['UniverSheets'],_0x18b044[_0x21ebd2(0x1af)]));}(this,function(_0x4da18a,_0x5639ff,_0x2e48e2,_0x5076b6,_0x3b6f2c,_0x19b20b){'use strict';const _0x2a6dc6=_0x45de;const _0x1d577c={'id':'exchange-client.operation.import-xlsx','type':_0x2e48e2[_0x2a6dc6(0x1c4)][_0x2a6dc6(0x1b9)],'handler':async _0x16951b=>{const _0x1ad4c7=_0x2a6dc6,_0x5d2830=_0x16951b[_0x1ad4c7(0x197)](_0x5639ff[_0x1ad4c7(0x18d)]);return new URLSearchParams(location[_0x1ad4c7(0x19b)])[_0x1ad4c7(0x197)](_0x1ad4c7(0x1b5))?_0x5d2830[_0x1ad4c7(0x1c3)]():_0x5d2830[_0x1ad4c7(0x1a9)](),!0x0;}},_0x16b8e0={'id':_0x2a6dc6(0x18b),'type':_0x2e48e2[_0x2a6dc6(0x1c4)]['OPERATION'],'handler':async _0x1816f2=>{const _0xcbb3f9=_0x2a6dc6,_0x570f1b=_0x1816f2[_0xcbb3f9(0x197)](_0x5639ff['IExchangeOperateService']);return new URLSearchParams(location[_0xcbb3f9(0x19b)])[_0xcbb3f9(0x197)](_0xcbb3f9(0x1b5))?_0x570f1b[_0xcbb3f9(0x189)]():_0x570f1b[_0xcbb3f9(0x1b7)](),!0x0;}},_0x5126c3=_0x2a6dc6(0x19e),_0x53bfdf={},_0x5a7e8e=_0x2a6dc6(0x18c);function _0xa88a7f(_0x59b459){const _0x3c36cc=_0x2a6dc6;return{'id':_0x5a7e8e,'type':_0x5076b6[_0x3c36cc(0x19f)]['SUBITEMS'],'icon':_0x3c36cc(0x1a7),'tooltip':_0x3c36cc(0x1ac),'hidden$':_0x5076b6[_0x3c36cc(0x1b1)](_0x59b459,_0x2e48e2[_0x3c36cc(0x1aa)][_0x3c36cc(0x1b6)]),'disabled$':_0x19b20b['getCurrentRangeDisable$'](_0x59b459,{'workbookTypes':[_0x3b6f2c[_0x3c36cc(0x1cd)]]})};}function _0x412214(){const _0x355adc=_0x2a6dc6;return{'id':_0x1d577c['id'],'type':_0x5076b6[_0x355adc(0x19f)][_0x355adc(0x1ca)],'title':_0x355adc(0x192),'icon':_0x355adc(0x1c6)};}function _0x5ee365(){const _0x19e3c9=_0x2a6dc6;return{'id':_0x16b8e0['id'],'type':_0x5076b6[_0x19e3c9(0x19f)][_0x19e3c9(0x1ca)],'title':_0x19e3c9(0x187),'icon':_0x19e3c9(0x1cb)};}const _0x191c6d={[_0x5076b6[_0x2a6dc6(0x184)][_0x2a6dc6(0x1c8)]]:{[_0x5a7e8e]:{'order':0.3,'menuItemFactory':_0xa88a7f,[_0x1d577c['id']]:{'order':0x0,'menuItemFactory':_0x412214},[_0x16b8e0['id']]:{'order':0x1,'menuItemFactory':_0x5ee365}}}};var _0x3076b5=Object['getOwnPropertyDescriptor'],_0x14bb5a=(_0x53d012,_0x743e31,_0x2af84b,_0x23b28f)=>{const _0x4d53c5=_0x2a6dc6;for(var _0x16d88f=_0x23b28f>0x1?void 0x0:_0x23b28f?_0x3076b5(_0x743e31,_0x2af84b):_0x743e31,_0x2a56de=_0x53d012[_0x4d53c5(0x1a3)]-0x1,_0x58d66b;_0x2a56de>=0x0;_0x2a56de--)(_0x58d66b=_0x53d012[_0x2a56de])&&(_0x16d88f=_0x58d66b(_0x16d88f)||_0x16d88f);return _0x16d88f;},_0x250020=(_0x529cbb,_0x152306)=>(_0x3e0b69,_0x963577)=>_0x152306(_0x3e0b69,_0x963577,_0x529cbb);let _0x213e9d=class extends _0x2e48e2[_0x2a6dc6(0x1c7)]{constructor(_0x1d3f53,_0x23cadc){const _0x1fece9=_0x2a6dc6;super(),this['_commandService']=_0x1d3f53,this[_0x1fece9(0x1bf)]=_0x23cadc,this['_initCommands'](),this[_0x1fece9(0x1a6)]();}['_initCommands'](){const _0x50bae0=_0x2a6dc6;[_0x1d577c,_0x16b8e0][_0x50bae0(0x1b3)](_0x1a6be7=>{const _0xa98869=_0x50bae0;this[_0xa98869(0x1b8)](this[_0xa98869(0x1a4)]['registerCommand'](_0x1a6be7));});}[_0x2a6dc6(0x1a6)](){this['_menuManagerService']['mergeMenu'](_0x191c6d);}};_0x213e9d=_0x14bb5a([_0x250020(0x0,_0x2e48e2[_0x2a6dc6(0x1c2)]),_0x250020(0x1,_0x5076b6[_0x2a6dc6(0x190)])],_0x213e9d);var _0x276862=Object[_0x2a6dc6(0x1c1)],_0x194b53=Object[_0x2a6dc6(0x1ab)],_0x5bb53e=(_0x43f9cd,_0x550901,_0x5f04b5)=>_0x550901 in _0x43f9cd?_0x276862(_0x43f9cd,_0x550901,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f04b5}):_0x43f9cd[_0x550901]=_0x5f04b5,_0x357b09=(_0x5eda8f,_0x2f5d68,_0x384895,_0x4af031)=>{const _0xa2e859=_0x2a6dc6;for(var _0x27d36b=_0x4af031>0x1?void 0x0:_0x4af031?_0x194b53(_0x2f5d68,_0x384895):_0x2f5d68,_0x11a8af=_0x5eda8f[_0xa2e859(0x1a3)]-0x1,_0x5926b0;_0x11a8af>=0x0;_0x11a8af--)(_0x5926b0=_0x5eda8f[_0x11a8af])&&(_0x27d36b=_0x5926b0(_0x27d36b)||_0x27d36b);return _0x27d36b;},_0x1e7167=(_0x310bfe,_0xac3f2a)=>(_0x4c4fe1,_0x475a79)=>_0xac3f2a(_0x4c4fe1,_0x475a79,_0x310bfe),_0x3b16c2=(_0x2e49b9,_0x5608d4,_0x4d405a)=>_0x5bb53e(_0x2e49b9,typeof _0x5608d4!='symbol'?_0x5608d4+'':_0x5608d4,_0x4d405a);const _0x15613d='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x4da18a[_0x2a6dc6(0x188)]=class extends _0x2e48e2[_0x2a6dc6(0x195)]{constructor(_0xdb6d4f=_0x53bfdf,_0x599e60,_0x45934d){const _0x138d39=_0x2a6dc6;super(),this[_0x138d39(0x1b4)]=_0xdb6d4f,this[_0x138d39(0x18e)]=_0x599e60,this[_0x138d39(0x1a0)]=_0x45934d;const {menu:_0x594cf1,..._0x257a2c}=_0x2e48e2[_0x138d39(0x1a8)]({},_0x53bfdf,this[_0x138d39(0x1b4)]);_0x594cf1&&this[_0x138d39(0x1a0)]['setConfig'](_0x138d39(0x1ba),_0x594cf1,{'merge':!0x0}),this[_0x138d39(0x1a0)][_0x138d39(0x18f)](_0x5126c3,_0x257a2c);}[_0x2a6dc6(0x1cc)](){const _0x1aa462=_0x2a6dc6;[[_0x213e9d]][_0x1aa462(0x1b3)](_0x5f3e71=>this[_0x1aa462(0x18e)]['add'](_0x5f3e71));}['onReady'](){const _0x5685e4=_0x2a6dc6;this['_injector'][_0x5685e4(0x197)](_0x213e9d);}},_0x3b16c2(_0x4da18a['UniverSheetsExchangeClientPlugin'],_0x2a6dc6(0x191),_0x15613d),_0x3b16c2(_0x4da18a[_0x2a6dc6(0x188)],_0x2a6dc6(0x18a),_0x2e48e2['UniverInstanceType'][_0x2a6dc6(0x1b6)]),_0x4da18a[_0x2a6dc6(0x188)]=_0x357b09([_0x2e48e2[_0x2a6dc6(0x198)](_0x5639ff['UniverExchangeClientPlugin']),_0x1e7167(0x1,_0x2e48e2[_0x2a6dc6(0x193)](_0x2e48e2['Injector'])),_0x1e7167(0x2,_0x2e48e2['IConfigService'])],_0x4da18a['UniverSheetsExchangeClientPlugin']),_0x4da18a['ExportXLSXOperation']=_0x16b8e0,_0x4da18a['ImportXLSXOperation']=_0x1d577c,Object[_0x2a6dc6(0x1c1)](_0x4da18a,Symbol[_0x2a6dc6(0x19d)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0-insiders.20251222-4efcfbb",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.
|
|
46
|
-
"@univerjs/core": "0.
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets": "0.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.14.0-insiders.20251222-4efcfbb",
|
|
46
|
+
"@univerjs/core": "0.14.0-insiders.20251222-4efcfbb",
|
|
47
|
+
"@univerjs/ui": "0.14.0-insiders.20251222-4efcfbb",
|
|
48
|
+
"@univerjs/sheets-ui": "0.14.0-insiders.20251222-4efcfbb",
|
|
49
|
+
"@univerjs/sheets": "0.14.0-insiders.20251222-4efcfbb"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.2.7",
|
|
54
54
|
"vitest": "^4.0.15",
|
|
55
|
-
"@univerjs-infra/shared": "0.
|
|
55
|
+
"@univerjs-infra/shared": "0.14.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|