@univerjs-pro/sheets-exchange-client 0.14.0 → 0.15.0

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1f9a97=_0x4dfe;function _0x5870(){const _0x338f41=['1891958EYxCDJ','menu','toStringTag','RibbonStartGroup','IConfigService','merge','_initMenus','getCurrentRangeDisable$','unit','ICommandService','setConfig','exportXLSXBySnapshot','exchange.upload','UNIVER_SHEET','_commandService','ImportXLSXOperation','ExportXLSXOperation','MenuItemType','_config','type','_initCommands','Plugin','length','_injector','2911230FjMNQs','add','onStarting','SUBITEMS','exchange.file','2666784bVDjFC','FolderIcon','ExportIcon','UniverSheetsExchangeClientPlugin','IExchangeOperateService','Inject','4559051vsavqi','5620Vnmcmf','importXLSXToSnapshot','pluginName','sheets-exchange-client.config','defineProperty','Disposable','exportXLSXByUnitId','Injector','2120Pssjrg','Module','CommandType','forEach','UniverInstanceType','search','OPERATION','DirectExportIcon','_menuManagerService','12091662xZQoxu','registerCommand','get','importXLSXToUnitId','_configService','getMenuHiddenObservable','698315wEwzYb','sheets-exchange-client.operation.exchange','OTHERS','exchange-client.operation.import-xlsx','16vqPoms','disposeWithMe'];_0x5870=function(){return _0x338f41;};return _0x5870();}(function(_0x35ddc3,_0x142c12){const _0x57a142=_0x4dfe,_0x4ecc77=_0x35ddc3();while(!![]){try{const _0x37c037=parseInt(_0x57a142(0x189))/0x1+-parseInt(_0x57a142(0x18f))/0x2+parseInt(_0x57a142(0x16b))/0x3+parseInt(_0x57a142(0x172))/0x4*(parseInt(_0x57a142(0x17a))/0x5)+-parseInt(_0x57a142(0x166))/0x6+parseInt(_0x57a142(0x171))/0x7*(-parseInt(_0x57a142(0x18d))/0x8)+parseInt(_0x57a142(0x183))/0x9;if(_0x37c037===_0x142c12)break;else _0x4ecc77['push'](_0x4ecc77['shift']());}catch(_0x4932d4){_0x4ecc77['push'](_0x4ecc77['shift']());}}}(_0x5870,0xc1887));Object['defineProperty'](exports,Symbol[_0x1f9a97(0x191)],{'value':_0x1f9a97(0x17b)});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':_0x1f9a97(0x18c),'type':i[_0x1f9a97(0x17c)][_0x1f9a97(0x180)],'handler':async _0x1d983d=>{const _0x1adb59=_0x1f9a97,_0x21428c=_0x1d983d[_0x1adb59(0x185)](g[_0x1adb59(0x16f)]);return new URLSearchParams(location['search'])[_0x1adb59(0x185)](_0x1adb59(0x156))?_0x21428c[_0x1adb59(0x186)]():_0x21428c[_0x1adb59(0x173)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x1f9a97(0x17c)][_0x1f9a97(0x180)],'handler':async _0x5b2dfd=>{const _0x14c7a7=_0x1f9a97,_0x34bbaf=_0x5b2dfd[_0x14c7a7(0x185)](g[_0x14c7a7(0x16f)]);return new URLSearchParams(location[_0x14c7a7(0x17f)])[_0x14c7a7(0x185)](_0x14c7a7(0x156))?_0x34bbaf[_0x14c7a7(0x178)]():_0x34bbaf[_0x14c7a7(0x159)](),!0x0;}},v=_0x1f9a97(0x175),h={},S=_0x1f9a97(0x18a);function x(_0x183902){const _0x4d32fd=_0x1f9a97;return{'id':S,'type':c[_0x4d32fd(0x15f)][_0x4d32fd(0x169)],'icon':_0x4d32fd(0x181),'tooltip':_0x4d32fd(0x16a),'hidden$':c[_0x4d32fd(0x188)](_0x183902,i[_0x4d32fd(0x17e)][_0x4d32fd(0x15b)]),'disabled$':I[_0x4d32fd(0x155)](_0x183902,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2e0de2=_0x1f9a97;return{'id':l['id'],'type':c[_0x2e0de2(0x15f)]['BUTTON'],'title':_0x2e0de2(0x15a),'icon':_0x2e0de2(0x16c)};}function C(){const _0x5bb6d3=_0x1f9a97;return{'id':p['id'],'type':c[_0x5bb6d3(0x15f)]['BUTTON'],'title':'exchange.download','icon':_0x5bb6d3(0x16d)};}function _0x4dfe(_0x36e7e1,_0x2487df){_0x36e7e1=_0x36e7e1-0x152;const _0x5870e7=_0x5870();let _0x4dfe13=_0x5870e7[_0x36e7e1];return _0x4dfe13;}const f={[c[_0x1f9a97(0x192)][_0x1f9a97(0x18b)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x3228e0,_0x10813e,_0x1aa719,_0x506d1a)=>{const _0x438030=_0x1f9a97;for(var _0x493f81=_0x506d1a>0x1?void 0x0:_0x506d1a?T(_0x10813e,_0x1aa719):_0x10813e,_0x5e1a5b=_0x3228e0[_0x438030(0x164)]-0x1,_0x3b233b;_0x5e1a5b>=0x0;_0x5e1a5b--)(_0x3b233b=_0x3228e0[_0x5e1a5b])&&(_0x493f81=_0x3b233b(_0x493f81)||_0x493f81);return _0x493f81;},m=(_0x37ff45,_0x5d6557)=>(_0x499de5,_0x2fb771)=>_0x5d6557(_0x499de5,_0x2fb771,_0x37ff45);let u=class extends i[_0x1f9a97(0x177)]{constructor(_0x810241,_0x44e452){const _0x375343=_0x1f9a97;super(),this[_0x375343(0x15c)]=_0x810241,this[_0x375343(0x182)]=_0x44e452,this[_0x375343(0x162)](),this[_0x375343(0x154)]();}[_0x1f9a97(0x162)](){const _0x4e6749=_0x1f9a97;[l,p][_0x4e6749(0x17d)](_0x2898b5=>{const _0x4ecff6=_0x4e6749;this[_0x4ecff6(0x18e)](this[_0x4ecff6(0x15c)][_0x4ecff6(0x184)](_0x2898b5));});}[_0x1f9a97(0x154)](){const _0x5e6c7c=_0x1f9a97;this[_0x5e6c7c(0x182)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x1f9a97(0x157)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x1f9a97(0x176)],U=Object['getOwnPropertyDescriptor'],X=(_0x2f7d61,_0x5f3f46,_0x514e96)=>_0x5f3f46 in _0x2f7d61?O(_0x2f7d61,_0x5f3f46,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x514e96}):_0x2f7d61[_0x5f3f46]=_0x514e96,N=(_0x33d012,_0x158932,_0x3628d9,_0xb48e12)=>{const _0x1d6082=_0x1f9a97;for(var _0x2e0156=_0xb48e12>0x1?void 0x0:_0xb48e12?U(_0x158932,_0x3628d9):_0x158932,_0x11763f=_0x33d012[_0x1d6082(0x164)]-0x1,_0x36f80b;_0x11763f>=0x0;_0x11763f--)(_0x36f80b=_0x33d012[_0x11763f])&&(_0x2e0156=_0x36f80b(_0x2e0156)||_0x2e0156);return _0x2e0156;},d=(_0x323869,_0x42463d)=>(_0x10b7f0,_0x150c53)=>_0x42463d(_0x10b7f0,_0x150c53,_0x323869),E=(_0xa6c3c6,_0x836b77,_0x1bc987)=>X(_0xa6c3c6,typeof _0x836b77!='symbol'?_0x836b77+'':_0x836b77,_0x1bc987);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1f9a97(0x16e)]=class extends i[_0x1f9a97(0x163)]{constructor(_0x14a450=h,_0x35b1b8,_0x3093ca){const _0x51ec02=_0x1f9a97;super(),this['_config']=_0x14a450,this[_0x51ec02(0x165)]=_0x35b1b8,this['_configService']=_0x3093ca;const {menu:_0x4805c9,..._0x5ae13a}=i[_0x51ec02(0x153)]({},h,this[_0x51ec02(0x160)]);_0x4805c9&&this[_0x51ec02(0x187)]['setConfig'](_0x51ec02(0x190),_0x4805c9,{'merge':!0x0}),this['_configService'][_0x51ec02(0x158)](v,_0x5ae13a);}[_0x1f9a97(0x168)](){const _0x245996=_0x1f9a97;[[u]][_0x245996(0x17d)](_0xa8c4c8=>this[_0x245996(0x165)][_0x245996(0x167)](_0xa8c4c8));}['onReady'](){const _0xd3102f=_0x1f9a97;this[_0xd3102f(0x165)]['get'](u);}},E(exports[_0x1f9a97(0x16e)],_0x1f9a97(0x174),L),E(exports[_0x1f9a97(0x16e)],_0x1f9a97(0x161),i[_0x1f9a97(0x17e)][_0x1f9a97(0x15b)]),exports[_0x1f9a97(0x16e)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0x1f9a97(0x170)](i[_0x1f9a97(0x179)])),d(0x2,i[_0x1f9a97(0x152)])],exports[_0x1f9a97(0x16e)]),exports[_0x1f9a97(0x15e)]=p,exports[_0x1f9a97(0x15d)]=l;
1
+ 'use strict';const _0x28607e=_0x4fe9;(function(_0x3ed2ed,_0x1641fc){const _0x416234=_0x4fe9,_0x85989b=_0x3ed2ed();while(!![]){try{const _0x4adb10=-parseInt(_0x416234(0x1b6))/0x1*(parseInt(_0x416234(0x1b5))/0x2)+-parseInt(_0x416234(0x1e5))/0x3+parseInt(_0x416234(0x1e6))/0x4+-parseInt(_0x416234(0x1bc))/0x5+parseInt(_0x416234(0x1b4))/0x6+-parseInt(_0x416234(0x1b3))/0x7*(parseInt(_0x416234(0x1d5))/0x8)+parseInt(_0x416234(0x1ce))/0x9;if(_0x4adb10===_0x1641fc)break;else _0x85989b['push'](_0x85989b['shift']());}catch(_0x3342fd){_0x85989b['push'](_0x85989b['shift']());}}}(_0x34b1,0xeaaf9));function _0x4fe9(_0x5481ee,_0x3b3ee2){_0x5481ee=_0x5481ee-0x1aa;const _0x34b188=_0x34b1();let _0x4fe901=_0x34b188[_0x5481ee];return _0x4fe901;}Object[_0x28607e(0x1b1)](exports,Symbol['toStringTag'],{'value':'Module'});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':'exchange-client.operation.import-xlsx','type':i['CommandType']['OPERATION'],'handler':async _0x167fa9=>{const _0x34b8fe=_0x28607e,_0x5becf7=_0x167fa9['get'](g[_0x34b8fe(0x1b0)]);return new URLSearchParams(location[_0x34b8fe(0x1be)])[_0x34b8fe(0x1cc)](_0x34b8fe(0x1c5))?_0x5becf7[_0x34b8fe(0x1db)]():_0x5becf7[_0x34b8fe(0x1d7)](),!0x0;}},p={'id':_0x28607e(0x1ac),'type':i[_0x28607e(0x1c6)][_0x28607e(0x1bf)],'handler':async _0x365e18=>{const _0x5ec2f8=_0x28607e,_0x4c4929=_0x365e18[_0x5ec2f8(0x1cc)](g[_0x5ec2f8(0x1b0)]);return new URLSearchParams(location['search'])[_0x5ec2f8(0x1cc)](_0x5ec2f8(0x1c5))?_0x4c4929[_0x5ec2f8(0x1b9)]():_0x4c4929[_0x5ec2f8(0x1de)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x28607e(0x1ca);function _0x34b1(){const _0x575485=['UniverSheetsExchangeClientPlugin','UniverExchangeClientPlugin','_injector','unit','CommandType','exchange.download','setConfig','exchange.file','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','get','ImportXLSXOperation','20707839WPtQXd','getCurrentRangeDisable$','UNIVER_SHEET','_configService','DependentOn','length','_commandService','32NWNfpl','Plugin','importXLSXToSnapshot','getOwnPropertyDescriptor','disposeWithMe','Inject','importXLSXToUnitId','_initMenus','Disposable','exportXLSXBySnapshot','registerCommand','Injector','_initCommands','RibbonStartGroup','menu','SUBITEMS','1671726GVwGHp','2608308YcEYSN','BUTTON','IMenuManagerService','exchange-client.operation.export-xlsx','UniverInstanceType','IConfigService','_config','IExchangeOperateService','defineProperty','DirectExportIcon','459263FhoSIm','5648898fTuclu','2tpXIJP','426514rkTCTE','mergeMenu','MenuItemType','exportXLSXByUnitId','exchange.upload','forEach','8434830BRIOSh','onStarting','search','OPERATION','_menuManagerService','type'];_0x34b1=function(){return _0x575485;};return _0x34b1();}function x(_0x18154e){const _0x56a97c=_0x28607e;return{'id':S,'type':c['MenuItemType'][_0x56a97c(0x1e4)],'icon':_0x56a97c(0x1b2),'tooltip':_0x56a97c(0x1c9),'hidden$':c['getMenuHiddenObservable'](_0x18154e,i['UniverInstanceType'][_0x56a97c(0x1d0)]),'disabled$':I[_0x56a97c(0x1cf)](_0x18154e,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3f5a6a=_0x28607e;return{'id':l['id'],'type':c[_0x3f5a6a(0x1b8)][_0x3f5a6a(0x1aa)],'title':_0x3f5a6a(0x1ba),'icon':'FolderIcon'};}function C(){const _0x357437=_0x28607e;return{'id':p['id'],'type':c[_0x357437(0x1b8)][_0x357437(0x1aa)],'title':_0x357437(0x1c7),'icon':'ExportIcon'};}const f={[c[_0x28607e(0x1e2)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x28607e(0x1d8)],y=(_0x58b14a,_0x4a3a00,_0xc15ec2,_0x229d99)=>{const _0x5d60e9=_0x28607e;for(var _0x4470a2=_0x229d99>0x1?void 0x0:_0x229d99?T(_0x4a3a00,_0xc15ec2):_0x4a3a00,_0x172c2f=_0x58b14a[_0x5d60e9(0x1d3)]-0x1,_0x419d87;_0x172c2f>=0x0;_0x172c2f--)(_0x419d87=_0x58b14a[_0x172c2f])&&(_0x4470a2=_0x419d87(_0x4470a2)||_0x4470a2);return _0x4470a2;},m=(_0x16faf4,_0x3ef1e9)=>(_0x4da4b0,_0x2c4f2f)=>_0x3ef1e9(_0x4da4b0,_0x2c4f2f,_0x16faf4);let u=class extends i[_0x28607e(0x1dd)]{constructor(_0x5a33ee,_0x569167){const _0x2b94bf=_0x28607e;super(),this[_0x2b94bf(0x1d4)]=_0x5a33ee,this[_0x2b94bf(0x1c0)]=_0x569167,this[_0x2b94bf(0x1e1)](),this[_0x2b94bf(0x1dc)]();}[_0x28607e(0x1e1)](){const _0x45d0cd=_0x28607e;[l,p][_0x45d0cd(0x1bb)](_0x2d60fe=>{const _0x290cfa=_0x45d0cd;this[_0x290cfa(0x1d9)](this['_commandService'][_0x290cfa(0x1df)](_0x2d60fe));});}[_0x28607e(0x1dc)](){const _0x185a05=_0x28607e;this[_0x185a05(0x1c0)][_0x185a05(0x1b7)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x28607e(0x1ab)])],u);var O=Object[_0x28607e(0x1b1)],U=Object[_0x28607e(0x1d8)],X=(_0x2a8875,_0x3a6165,_0x301b91)=>_0x3a6165 in _0x2a8875?O(_0x2a8875,_0x3a6165,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301b91}):_0x2a8875[_0x3a6165]=_0x301b91,N=(_0x594b00,_0x4b3224,_0x180db6,_0x463ef0)=>{for(var _0x54a157=_0x463ef0>0x1?void 0x0:_0x463ef0?U(_0x4b3224,_0x180db6):_0x4b3224,_0xbd06b6=_0x594b00['length']-0x1,_0x55ca71;_0xbd06b6>=0x0;_0xbd06b6--)(_0x55ca71=_0x594b00[_0xbd06b6])&&(_0x54a157=_0x55ca71(_0x54a157)||_0x54a157);return _0x54a157;},d=(_0x1a0a0a,_0x5cdbf8)=>(_0x3d5034,_0x4ad64e)=>_0x5cdbf8(_0x3d5034,_0x4ad64e,_0x1a0a0a),E=(_0x3d4c5d,_0x375ea9,_0x144996)=>X(_0x3d4c5d,typeof _0x375ea9!='symbol'?_0x375ea9+'':_0x375ea9,_0x144996);const L=_0x28607e(0x1cb);exports[_0x28607e(0x1c2)]=class extends i[_0x28607e(0x1d6)]{constructor(_0x37b00a=h,_0x5cd1c1,_0x36225f){const _0x20a88d=_0x28607e;super(),this[_0x20a88d(0x1af)]=_0x37b00a,this[_0x20a88d(0x1c4)]=_0x5cd1c1,this[_0x20a88d(0x1d1)]=_0x36225f;const {menu:_0x54401e,..._0x3516bc}=i['merge']({},h,this[_0x20a88d(0x1af)]);_0x54401e&&this['_configService']['setConfig'](_0x20a88d(0x1e3),_0x54401e,{'merge':!0x0}),this[_0x20a88d(0x1d1)][_0x20a88d(0x1c8)](v,_0x3516bc);}[_0x28607e(0x1bd)](){const _0x417b72=_0x28607e;[[u]][_0x417b72(0x1bb)](_0x291150=>this['_injector']['add'](_0x291150));}['onReady'](){const _0x2b2b45=_0x28607e;this['_injector'][_0x2b2b45(0x1cc)](u);}},E(exports[_0x28607e(0x1c2)],'pluginName',L),E(exports[_0x28607e(0x1c2)],_0x28607e(0x1c1),i[_0x28607e(0x1ad)][_0x28607e(0x1d0)]),exports[_0x28607e(0x1c2)]=N([i[_0x28607e(0x1d2)](g[_0x28607e(0x1c3)]),d(0x1,i[_0x28607e(0x1da)](i[_0x28607e(0x1e0)])),d(0x2,i[_0x28607e(0x1ae)])],exports[_0x28607e(0x1c2)]),exports['ExportXLSXOperation']=p,exports[_0x28607e(0x1cd)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xcbd775=_0x4e2e;(function(_0x4b4327,_0x3238ea){const _0x40c7b=_0x4e2e,_0x1c5036=_0x4b4327();while(!![]){try{const _0x38899e=parseInt(_0x40c7b(0x1db))/0x1*(-parseInt(_0x40c7b(0x1ef))/0x2)+-parseInt(_0x40c7b(0x1e1))/0x3*(parseInt(_0x40c7b(0x1c9))/0x4)+-parseInt(_0x40c7b(0x1f5))/0x5+-parseInt(_0x40c7b(0x1e5))/0x6+parseInt(_0x40c7b(0x1dd))/0x7+parseInt(_0x40c7b(0x1d8))/0x8+-parseInt(_0x40c7b(0x1e4))/0x9*(-parseInt(_0x40c7b(0x1e3))/0xa);if(_0x38899e===_0x3238ea)break;else _0x1c5036['push'](_0x1c5036['shift']());}catch(_0x5a6bdf){_0x1c5036['push'](_0x1c5036['shift']());}}}(_0x1d11,0x53fea));function _0x4e2e(_0x3324aa,_0x19f07c){_0x3324aa=_0x3324aa-0x1c5;const _0x1d1122=_0x1d11();let _0x4e2e7a=_0x1d1122[_0x3324aa];return _0x4e2e7a;}import{IExchangeOperateService as _0x91ff8c,UniverExchangeClientPlugin as _0x540d38}from'@univerjs-pro/exchange-client';import{CommandType as _0x297604,UniverInstanceType as _0x41fca8,Disposable as _0x55aba2,ICommandService as _0x52ccf9,DependentOn as _0x42b780,Inject as _0xa25d4,Injector as _0x405c5f,IConfigService as _0x3726bb,Plugin as _0x38015c,merge as _0x399531}from'@univerjs/core';import{MenuItemType as _0x1af064,getMenuHiddenObservable as _0xc14e54,RibbonStartGroup as _0x4a822f,IMenuManagerService as _0x376d21}from'@univerjs/ui';import{WorkbookExportPermission as _0x1c106c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4da3fa}from'@univerjs/sheets-ui';const p={'id':_0xcbd775(0x1ca),'type':_0x297604[_0xcbd775(0x1ee)],'handler':async _0x34bd19=>{const _0x2e9673=_0xcbd775,_0x382b04=_0x34bd19[_0x2e9673(0x1e0)](_0x91ff8c);return new URLSearchParams(location['search'])['get'](_0x2e9673(0x1cc))?_0x382b04[_0x2e9673(0x1eb)]():_0x382b04[_0x2e9673(0x1f4)](),!0x0;}},u={'id':_0xcbd775(0x1ce),'type':_0x297604[_0xcbd775(0x1ee)],'handler':async _0x3c2df6=>{const _0x2d2687=_0xcbd775,_0x55e9c4=_0x3c2df6[_0x2d2687(0x1e0)](_0x91ff8c);return new URLSearchParams(location[_0x2d2687(0x1c7)])[_0x2d2687(0x1e0)](_0x2d2687(0x1cc))?_0x55e9c4[_0x2d2687(0x1f0)]():_0x55e9c4[_0x2d2687(0x1ea)](),!0x0;}},H=_0xcbd775(0x1d5),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5e3979){const _0x9ca2af=_0xcbd775;return{'id':S,'type':_0x1af064[_0x9ca2af(0x1da)],'icon':_0x9ca2af(0x1dc),'tooltip':'exchange.file','hidden$':_0xc14e54(_0x5e3979,_0x41fca8[_0x9ca2af(0x1cb)]),'disabled$':_0x4da3fa(_0x5e3979,{'workbookTypes':[_0x1c106c]})};}function w(){const _0xe660e6=_0xcbd775;return{'id':p['id'],'type':_0x1af064[_0xe660e6(0x1d4)],'title':_0xe660e6(0x1e9),'icon':_0xe660e6(0x1f2)};}function D(){const _0x24a67f=_0xcbd775;return{'id':u['id'],'type':_0x1af064['BUTTON'],'title':_0x24a67f(0x1d3),'icon':_0x24a67f(0x1d0)};}const F={[_0x4a822f[_0xcbd775(0x1e7)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xcbd775(0x1d7)],A=(_0x450d7e,_0x102e60,_0x5d2439,_0x420a2e)=>{for(var _0x2dac74=_0x420a2e>0x1?void 0x0:_0x420a2e?G(_0x102e60,_0x5d2439):_0x102e60,_0x4751e2=_0x450d7e['length']-0x1,_0x57a3f3;_0x4751e2>=0x0;_0x4751e2--)(_0x57a3f3=_0x450d7e[_0x4751e2])&&(_0x2dac74=_0x57a3f3(_0x2dac74)||_0x2dac74);return _0x2dac74;},d=(_0x3bb547,_0x4fad9b)=>(_0x5a4c7e,_0x5ad4f9)=>_0x4fad9b(_0x5a4c7e,_0x5ad4f9,_0x3bb547);let c=class extends _0x55aba2{constructor(_0x16d763,_0x509153){const _0x2077ba=_0xcbd775;super(),this[_0x2077ba(0x1ec)]=_0x16d763,this['_menuManagerService']=_0x509153,this['_initCommands'](),this[_0x2077ba(0x1df)]();}[_0xcbd775(0x1d2)](){const _0x23d8fb=_0xcbd775;[p,u][_0x23d8fb(0x1e2)](_0x489274=>{const _0x1d4215=_0x23d8fb;this['disposeWithMe'](this[_0x1d4215(0x1ec)][_0x1d4215(0x1de)](_0x489274));});}[_0xcbd775(0x1df)](){const _0x128f9b=_0xcbd775;this[_0x128f9b(0x1d1)][_0x128f9b(0x1ed)](F);}};c=A([d(0x0,_0x52ccf9),d(0x1,_0x376d21)],c);function _0x1d11(){const _0x3945f4=['SUBITEMS','36617dYfmCg','DirectExportIcon','3744034Rofllz','registerCommand','_initMenus','get','3lJvYrk','forEach','33710otXnSt','18dGqflg','172884yvErqf','setConfig','OTHERS','type','exchange.upload','exportXLSXBySnapshot','importXLSXToUnitId','_commandService','mergeMenu','OPERATION','16mrlNMW','exportXLSXByUnitId','add','FolderIcon','defineProperty','importXLSXToSnapshot','603020hHUglU','menu','_config','search','_configService','1022668NykIJq','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','pluginName','exchange-client.operation.export-xlsx','_injector','ExportIcon','_menuManagerService','_initCommands','exchange.download','BUTTON','sheets-exchange-client.config','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','4003672mJFaFl','symbol'];_0x1d11=function(){return _0x3945f4;};return _0x1d11();}var j=Object[_0xcbd775(0x1f3)],B=Object[_0xcbd775(0x1d7)],$=(_0x229004,_0x444f1c,_0xdc27d2)=>_0x444f1c in _0x229004?j(_0x229004,_0x444f1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc27d2}):_0x229004[_0x444f1c]=_0xdc27d2,V=(_0x2e97ad,_0x1ea1c4,_0x356b1b,_0x2ad075)=>{for(var _0x12b4db=_0x2ad075>0x1?void 0x0:_0x2ad075?B(_0x1ea1c4,_0x356b1b):_0x1ea1c4,_0x1d1ed9=_0x2e97ad['length']-0x1,_0x43d320;_0x1d1ed9>=0x0;_0x1d1ed9--)(_0x43d320=_0x2e97ad[_0x1d1ed9])&&(_0x12b4db=_0x43d320(_0x12b4db)||_0x12b4db);return _0x12b4db;},_=(_0x26827a,_0x4dc48b)=>(_0x13868f,_0x281c65)=>_0x4dc48b(_0x13868f,_0x281c65,_0x26827a),I=(_0x28718c,_0x10bdd0,_0x3dc573)=>$(_0x28718c,typeof _0x10bdd0!=_0xcbd775(0x1d9)?_0x10bdd0+'':_0x10bdd0,_0x3dc573);const W=_0xcbd775(0x1d6);let s=class extends _0x38015c{constructor(_0x201747=l,_0x5a5a57,_0x4a9d1f){const _0x5ca8cb=_0xcbd775;super(),this[_0x5ca8cb(0x1c6)]=_0x201747,this[_0x5ca8cb(0x1cf)]=_0x5a5a57,this[_0x5ca8cb(0x1c8)]=_0x4a9d1f;const {menu:_0x31e600,..._0x479a7f}=_0x399531({},l,this['_config']);_0x31e600&&this[_0x5ca8cb(0x1c8)][_0x5ca8cb(0x1e6)](_0x5ca8cb(0x1c5),_0x31e600,{'merge':!0x0}),this[_0x5ca8cb(0x1c8)]['setConfig'](H,_0x479a7f);}['onStarting'](){const _0x189ed6=_0xcbd775;[[c]][_0x189ed6(0x1e2)](_0x478781=>this[_0x189ed6(0x1cf)][_0x189ed6(0x1f1)](_0x478781));}['onReady'](){const _0x1c264d=_0xcbd775;this['_injector'][_0x1c264d(0x1e0)](c);}};I(s,_0xcbd775(0x1cd),W),I(s,_0xcbd775(0x1e8),_0x41fca8[_0xcbd775(0x1cb)]),s=V([_0x42b780(_0x540d38),_(0x1,_0xa25d4(_0x405c5f)),_(0x2,_0x3726bb)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x552f05=_0x4470;(function(_0x4c72c2,_0x28ef06){const _0x49d707=_0x4470,_0x5a95f5=_0x4c72c2();while(!![]){try{const _0x51fd25=parseInt(_0x49d707(0x123))/0x1*(parseInt(_0x49d707(0x125))/0x2)+-parseInt(_0x49d707(0x108))/0x3+-parseInt(_0x49d707(0x112))/0x4*(parseInt(_0x49d707(0x115))/0x5)+-parseInt(_0x49d707(0xff))/0x6*(parseInt(_0x49d707(0x10c))/0x7)+-parseInt(_0x49d707(0x110))/0x8+parseInt(_0x49d707(0x11c))/0x9*(parseInt(_0x49d707(0x105))/0xa)+parseInt(_0x49d707(0x127))/0xb;if(_0x51fd25===_0x28ef06)break;else _0x5a95f5['push'](_0x5a95f5['shift']());}catch(_0x2214c9){_0x5a95f5['push'](_0x5a95f5['shift']());}}}(_0x5242,0xd9484));import{IExchangeOperateService as _0x4b29b1,UniverExchangeClientPlugin as _0x3388d5}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ee1cc,UniverInstanceType as _0x50522d,Disposable as _0xcd3333,ICommandService as _0x24d2df,DependentOn as _0x471c06,Inject as _0x40037d,Injector as _0x7257c1,IConfigService as _0x20c626,Plugin as _0xa7b2bc,merge as _0xbf23a}from'@univerjs/core';import{MenuItemType as _0x2b020d,getMenuHiddenObservable as _0x3b9bc3,RibbonStartGroup as _0x13776f,IMenuManagerService as _0x389c05}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e0d1b}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40ea56}from'@univerjs/sheets-ui';const p={'id':_0x552f05(0x101),'type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x425f94=>{const _0x29e04d=_0x552f05,_0x4a8908=_0x425f94[_0x29e04d(0x104)](_0x4b29b1);return new URLSearchParams(location[_0x29e04d(0x10d)])[_0x29e04d(0x104)](_0x29e04d(0x103))?_0x4a8908[_0x29e04d(0x113)]():_0x4a8908['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x30d399=>{const _0x12238e=_0x552f05,_0x105df3=_0x30d399['get'](_0x4b29b1);return new URLSearchParams(location[_0x12238e(0x10d)])['get']('unit')?_0x105df3[_0x12238e(0x11d)]():_0x105df3[_0x12238e(0x126)](),!0x0;}},H=_0x552f05(0xf8),l={},S=_0x552f05(0x119);function R(_0x50d755){const _0x2f06a5=_0x552f05;return{'id':S,'type':_0x2b020d[_0x2f06a5(0x11a)],'icon':_0x2f06a5(0x10b),'tooltip':'exchange.file','hidden$':_0x3b9bc3(_0x50d755,_0x50522d['UNIVER_SHEET']),'disabled$':_0x40ea56(_0x50d755,{'workbookTypes':[_0x4e0d1b]})};}function w(){const _0x119684=_0x552f05;return{'id':p['id'],'type':_0x2b020d[_0x119684(0x106)],'title':_0x119684(0x120),'icon':'FolderIcon'};}function D(){const _0x5d09ee=_0x552f05;return{'id':u['id'],'type':_0x2b020d[_0x5d09ee(0x106)],'title':_0x5d09ee(0xfc),'icon':'ExportIcon'};}const F={[_0x13776f[_0x552f05(0x121)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x552f05(0x100)],A=(_0x4887ea,_0x1f2768,_0x4db6ab,_0x3d245e)=>{for(var _0x483b3b=_0x3d245e>0x1?void 0x0:_0x3d245e?G(_0x1f2768,_0x4db6ab):_0x1f2768,_0x772485=_0x4887ea['length']-0x1,_0x176b91;_0x772485>=0x0;_0x772485--)(_0x176b91=_0x4887ea[_0x772485])&&(_0x483b3b=_0x176b91(_0x483b3b)||_0x483b3b);return _0x483b3b;},d=(_0x44d7bd,_0x52d5a6)=>(_0xe4f275,_0x475981)=>_0x52d5a6(_0xe4f275,_0x475981,_0x44d7bd);let c=class extends _0xcd3333{constructor(_0x45eb28,_0xcacbbf){const _0x566a08=_0x552f05;super(),this[_0x566a08(0xfd)]=_0x45eb28,this[_0x566a08(0x11f)]=_0xcacbbf,this[_0x566a08(0xfa)](),this[_0x566a08(0x10f)]();}['_initCommands'](){const _0x515479=_0x552f05;[p,u][_0x515479(0x117)](_0x1237c3=>{const _0x17cedb=_0x515479;this[_0x17cedb(0xf9)](this[_0x17cedb(0xfd)][_0x17cedb(0x118)](_0x1237c3));});}[_0x552f05(0x10f)](){const _0x37303f=_0x552f05;this['_menuManagerService'][_0x37303f(0x111)](F);}};c=A([d(0x0,_0x24d2df),d(0x1,_0x389c05)],c);var j=Object[_0x552f05(0xfe)],B=Object[_0x552f05(0x100)],$=(_0x436b5d,_0x4a6a11,_0xe30c91)=>_0x4a6a11 in _0x436b5d?j(_0x436b5d,_0x4a6a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe30c91}):_0x436b5d[_0x4a6a11]=_0xe30c91,V=(_0x272cb8,_0x45ded1,_0x5bb18d,_0x300529)=>{const _0x1cf1f7=_0x552f05;for(var _0x2d8459=_0x300529>0x1?void 0x0:_0x300529?B(_0x45ded1,_0x5bb18d):_0x45ded1,_0x1b38e1=_0x272cb8[_0x1cf1f7(0x124)]-0x1,_0x38b6f9;_0x1b38e1>=0x0;_0x1b38e1--)(_0x38b6f9=_0x272cb8[_0x1b38e1])&&(_0x2d8459=_0x38b6f9(_0x2d8459)||_0x2d8459);return _0x2d8459;},_=(_0x24bc1e,_0x57998e)=>(_0x17c4ca,_0x22f6ff)=>_0x57998e(_0x17c4ca,_0x22f6ff,_0x24bc1e),I=(_0x46a476,_0x28fcc3,_0x2df416)=>$(_0x46a476,typeof _0x28fcc3!='symbol'?_0x28fcc3+'':_0x28fcc3,_0x2df416);function _0x5242(){const _0x383c65=['830601ppBnhd','exportXLSXByUnitId','type','_menuManagerService','exchange.upload','OTHERS','_configService','1uuZgjH','length','1480532rKqPRT','exportXLSXBySnapshot','26307116vxkHFV','sheets-exchange-client.config','disposeWithMe','_initCommands','menu','exchange.download','_commandService','defineProperty','2762844uYTqTB','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','get','110hMYPQq','BUTTON','setConfig','435111cvhvaZ','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','7CSHFwq','search','OPERATION','_initMenus','7312744FaTWhp','mergeMenu','187828gdZpOg','importXLSXToUnitId','pluginName','185JipeCd','_injector','forEach','registerCommand','sheets-exchange-client.operation.exchange','SUBITEMS','_config'];_0x5242=function(){return _0x383c65;};return _0x5242();}const W=_0x552f05(0x10a);function _0x4470(_0x417d52,_0x1ec540){_0x417d52=_0x417d52-0xf8;const _0x524245=_0x5242();let _0x4470c4=_0x524245[_0x417d52];return _0x4470c4;}let s=class extends _0xa7b2bc{constructor(_0x135fee=l,_0x242bdb,_0x779958){const _0x1868b1=_0x552f05;super(),this[_0x1868b1(0x11b)]=_0x135fee,this[_0x1868b1(0x116)]=_0x242bdb,this[_0x1868b1(0x122)]=_0x779958;const {menu:_0x1a7b24,..._0xc344d5}=_0xbf23a({},l,this[_0x1868b1(0x11b)]);_0x1a7b24&&this[_0x1868b1(0x122)][_0x1868b1(0x107)](_0x1868b1(0xfb),_0x1a7b24,{'merge':!0x0}),this[_0x1868b1(0x122)]['setConfig'](H,_0xc344d5);}['onStarting'](){const _0x32bd49=_0x552f05;[[c]]['forEach'](_0x2400fd=>this[_0x32bd49(0x116)]['add'](_0x2400fd));}[_0x552f05(0x109)](){const _0x2d582e=_0x552f05;this[_0x2d582e(0x116)][_0x2d582e(0x104)](c);}};I(s,_0x552f05(0x114),W),I(s,_0x552f05(0x11e),_0x50522d[_0x552f05(0x102)]),s=V([_0x471c06(_0x3388d5),_(0x1,_0x40037d(_0x7257c1)),_(0x2,_0x20c626)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xcbd775=_0x4e2e;(function(_0x4b4327,_0x3238ea){const _0x40c7b=_0x4e2e,_0x1c5036=_0x4b4327();while(!![]){try{const _0x38899e=parseInt(_0x40c7b(0x1db))/0x1*(-parseInt(_0x40c7b(0x1ef))/0x2)+-parseInt(_0x40c7b(0x1e1))/0x3*(parseInt(_0x40c7b(0x1c9))/0x4)+-parseInt(_0x40c7b(0x1f5))/0x5+-parseInt(_0x40c7b(0x1e5))/0x6+parseInt(_0x40c7b(0x1dd))/0x7+parseInt(_0x40c7b(0x1d8))/0x8+-parseInt(_0x40c7b(0x1e4))/0x9*(-parseInt(_0x40c7b(0x1e3))/0xa);if(_0x38899e===_0x3238ea)break;else _0x1c5036['push'](_0x1c5036['shift']());}catch(_0x5a6bdf){_0x1c5036['push'](_0x1c5036['shift']());}}}(_0x1d11,0x53fea));function _0x4e2e(_0x3324aa,_0x19f07c){_0x3324aa=_0x3324aa-0x1c5;const _0x1d1122=_0x1d11();let _0x4e2e7a=_0x1d1122[_0x3324aa];return _0x4e2e7a;}import{IExchangeOperateService as _0x91ff8c,UniverExchangeClientPlugin as _0x540d38}from'@univerjs-pro/exchange-client';import{CommandType as _0x297604,UniverInstanceType as _0x41fca8,Disposable as _0x55aba2,ICommandService as _0x52ccf9,DependentOn as _0x42b780,Inject as _0xa25d4,Injector as _0x405c5f,IConfigService as _0x3726bb,Plugin as _0x38015c,merge as _0x399531}from'@univerjs/core';import{MenuItemType as _0x1af064,getMenuHiddenObservable as _0xc14e54,RibbonStartGroup as _0x4a822f,IMenuManagerService as _0x376d21}from'@univerjs/ui';import{WorkbookExportPermission as _0x1c106c}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4da3fa}from'@univerjs/sheets-ui';const p={'id':_0xcbd775(0x1ca),'type':_0x297604[_0xcbd775(0x1ee)],'handler':async _0x34bd19=>{const _0x2e9673=_0xcbd775,_0x382b04=_0x34bd19[_0x2e9673(0x1e0)](_0x91ff8c);return new URLSearchParams(location['search'])['get'](_0x2e9673(0x1cc))?_0x382b04[_0x2e9673(0x1eb)]():_0x382b04[_0x2e9673(0x1f4)](),!0x0;}},u={'id':_0xcbd775(0x1ce),'type':_0x297604[_0xcbd775(0x1ee)],'handler':async _0x3c2df6=>{const _0x2d2687=_0xcbd775,_0x55e9c4=_0x3c2df6[_0x2d2687(0x1e0)](_0x91ff8c);return new URLSearchParams(location[_0x2d2687(0x1c7)])[_0x2d2687(0x1e0)](_0x2d2687(0x1cc))?_0x55e9c4[_0x2d2687(0x1f0)]():_0x55e9c4[_0x2d2687(0x1ea)](),!0x0;}},H=_0xcbd775(0x1d5),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5e3979){const _0x9ca2af=_0xcbd775;return{'id':S,'type':_0x1af064[_0x9ca2af(0x1da)],'icon':_0x9ca2af(0x1dc),'tooltip':'exchange.file','hidden$':_0xc14e54(_0x5e3979,_0x41fca8[_0x9ca2af(0x1cb)]),'disabled$':_0x4da3fa(_0x5e3979,{'workbookTypes':[_0x1c106c]})};}function w(){const _0xe660e6=_0xcbd775;return{'id':p['id'],'type':_0x1af064[_0xe660e6(0x1d4)],'title':_0xe660e6(0x1e9),'icon':_0xe660e6(0x1f2)};}function D(){const _0x24a67f=_0xcbd775;return{'id':u['id'],'type':_0x1af064['BUTTON'],'title':_0x24a67f(0x1d3),'icon':_0x24a67f(0x1d0)};}const F={[_0x4a822f[_0xcbd775(0x1e7)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xcbd775(0x1d7)],A=(_0x450d7e,_0x102e60,_0x5d2439,_0x420a2e)=>{for(var _0x2dac74=_0x420a2e>0x1?void 0x0:_0x420a2e?G(_0x102e60,_0x5d2439):_0x102e60,_0x4751e2=_0x450d7e['length']-0x1,_0x57a3f3;_0x4751e2>=0x0;_0x4751e2--)(_0x57a3f3=_0x450d7e[_0x4751e2])&&(_0x2dac74=_0x57a3f3(_0x2dac74)||_0x2dac74);return _0x2dac74;},d=(_0x3bb547,_0x4fad9b)=>(_0x5a4c7e,_0x5ad4f9)=>_0x4fad9b(_0x5a4c7e,_0x5ad4f9,_0x3bb547);let c=class extends _0x55aba2{constructor(_0x16d763,_0x509153){const _0x2077ba=_0xcbd775;super(),this[_0x2077ba(0x1ec)]=_0x16d763,this['_menuManagerService']=_0x509153,this['_initCommands'](),this[_0x2077ba(0x1df)]();}[_0xcbd775(0x1d2)](){const _0x23d8fb=_0xcbd775;[p,u][_0x23d8fb(0x1e2)](_0x489274=>{const _0x1d4215=_0x23d8fb;this['disposeWithMe'](this[_0x1d4215(0x1ec)][_0x1d4215(0x1de)](_0x489274));});}[_0xcbd775(0x1df)](){const _0x128f9b=_0xcbd775;this[_0x128f9b(0x1d1)][_0x128f9b(0x1ed)](F);}};c=A([d(0x0,_0x52ccf9),d(0x1,_0x376d21)],c);function _0x1d11(){const _0x3945f4=['SUBITEMS','36617dYfmCg','DirectExportIcon','3744034Rofllz','registerCommand','_initMenus','get','3lJvYrk','forEach','33710otXnSt','18dGqflg','172884yvErqf','setConfig','OTHERS','type','exchange.upload','exportXLSXBySnapshot','importXLSXToUnitId','_commandService','mergeMenu','OPERATION','16mrlNMW','exportXLSXByUnitId','add','FolderIcon','defineProperty','importXLSXToSnapshot','603020hHUglU','menu','_config','search','_configService','1022668NykIJq','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','pluginName','exchange-client.operation.export-xlsx','_injector','ExportIcon','_menuManagerService','_initCommands','exchange.download','BUTTON','sheets-exchange-client.config','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','4003672mJFaFl','symbol'];_0x1d11=function(){return _0x3945f4;};return _0x1d11();}var j=Object[_0xcbd775(0x1f3)],B=Object[_0xcbd775(0x1d7)],$=(_0x229004,_0x444f1c,_0xdc27d2)=>_0x444f1c in _0x229004?j(_0x229004,_0x444f1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc27d2}):_0x229004[_0x444f1c]=_0xdc27d2,V=(_0x2e97ad,_0x1ea1c4,_0x356b1b,_0x2ad075)=>{for(var _0x12b4db=_0x2ad075>0x1?void 0x0:_0x2ad075?B(_0x1ea1c4,_0x356b1b):_0x1ea1c4,_0x1d1ed9=_0x2e97ad['length']-0x1,_0x43d320;_0x1d1ed9>=0x0;_0x1d1ed9--)(_0x43d320=_0x2e97ad[_0x1d1ed9])&&(_0x12b4db=_0x43d320(_0x12b4db)||_0x12b4db);return _0x12b4db;},_=(_0x26827a,_0x4dc48b)=>(_0x13868f,_0x281c65)=>_0x4dc48b(_0x13868f,_0x281c65,_0x26827a),I=(_0x28718c,_0x10bdd0,_0x3dc573)=>$(_0x28718c,typeof _0x10bdd0!=_0xcbd775(0x1d9)?_0x10bdd0+'':_0x10bdd0,_0x3dc573);const W=_0xcbd775(0x1d6);let s=class extends _0x38015c{constructor(_0x201747=l,_0x5a5a57,_0x4a9d1f){const _0x5ca8cb=_0xcbd775;super(),this[_0x5ca8cb(0x1c6)]=_0x201747,this[_0x5ca8cb(0x1cf)]=_0x5a5a57,this[_0x5ca8cb(0x1c8)]=_0x4a9d1f;const {menu:_0x31e600,..._0x479a7f}=_0x399531({},l,this['_config']);_0x31e600&&this[_0x5ca8cb(0x1c8)][_0x5ca8cb(0x1e6)](_0x5ca8cb(0x1c5),_0x31e600,{'merge':!0x0}),this[_0x5ca8cb(0x1c8)]['setConfig'](H,_0x479a7f);}['onStarting'](){const _0x189ed6=_0xcbd775;[[c]][_0x189ed6(0x1e2)](_0x478781=>this[_0x189ed6(0x1cf)][_0x189ed6(0x1f1)](_0x478781));}['onReady'](){const _0x1c264d=_0xcbd775;this['_injector'][_0x1c264d(0x1e0)](c);}};I(s,_0xcbd775(0x1cd),W),I(s,_0xcbd775(0x1e8),_0x41fca8[_0xcbd775(0x1cb)]),s=V([_0x42b780(_0x540d38),_(0x1,_0xa25d4(_0x405c5f)),_(0x2,_0x3726bb)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x552f05=_0x4470;(function(_0x4c72c2,_0x28ef06){const _0x49d707=_0x4470,_0x5a95f5=_0x4c72c2();while(!![]){try{const _0x51fd25=parseInt(_0x49d707(0x123))/0x1*(parseInt(_0x49d707(0x125))/0x2)+-parseInt(_0x49d707(0x108))/0x3+-parseInt(_0x49d707(0x112))/0x4*(parseInt(_0x49d707(0x115))/0x5)+-parseInt(_0x49d707(0xff))/0x6*(parseInt(_0x49d707(0x10c))/0x7)+-parseInt(_0x49d707(0x110))/0x8+parseInt(_0x49d707(0x11c))/0x9*(parseInt(_0x49d707(0x105))/0xa)+parseInt(_0x49d707(0x127))/0xb;if(_0x51fd25===_0x28ef06)break;else _0x5a95f5['push'](_0x5a95f5['shift']());}catch(_0x2214c9){_0x5a95f5['push'](_0x5a95f5['shift']());}}}(_0x5242,0xd9484));import{IExchangeOperateService as _0x4b29b1,UniverExchangeClientPlugin as _0x3388d5}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ee1cc,UniverInstanceType as _0x50522d,Disposable as _0xcd3333,ICommandService as _0x24d2df,DependentOn as _0x471c06,Inject as _0x40037d,Injector as _0x7257c1,IConfigService as _0x20c626,Plugin as _0xa7b2bc,merge as _0xbf23a}from'@univerjs/core';import{MenuItemType as _0x2b020d,getMenuHiddenObservable as _0x3b9bc3,RibbonStartGroup as _0x13776f,IMenuManagerService as _0x389c05}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e0d1b}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40ea56}from'@univerjs/sheets-ui';const p={'id':_0x552f05(0x101),'type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x425f94=>{const _0x29e04d=_0x552f05,_0x4a8908=_0x425f94[_0x29e04d(0x104)](_0x4b29b1);return new URLSearchParams(location[_0x29e04d(0x10d)])[_0x29e04d(0x104)](_0x29e04d(0x103))?_0x4a8908[_0x29e04d(0x113)]():_0x4a8908['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x30d399=>{const _0x12238e=_0x552f05,_0x105df3=_0x30d399['get'](_0x4b29b1);return new URLSearchParams(location[_0x12238e(0x10d)])['get']('unit')?_0x105df3[_0x12238e(0x11d)]():_0x105df3[_0x12238e(0x126)](),!0x0;}},H=_0x552f05(0xf8),l={},S=_0x552f05(0x119);function R(_0x50d755){const _0x2f06a5=_0x552f05;return{'id':S,'type':_0x2b020d[_0x2f06a5(0x11a)],'icon':_0x2f06a5(0x10b),'tooltip':'exchange.file','hidden$':_0x3b9bc3(_0x50d755,_0x50522d['UNIVER_SHEET']),'disabled$':_0x40ea56(_0x50d755,{'workbookTypes':[_0x4e0d1b]})};}function w(){const _0x119684=_0x552f05;return{'id':p['id'],'type':_0x2b020d[_0x119684(0x106)],'title':_0x119684(0x120),'icon':'FolderIcon'};}function D(){const _0x5d09ee=_0x552f05;return{'id':u['id'],'type':_0x2b020d[_0x5d09ee(0x106)],'title':_0x5d09ee(0xfc),'icon':'ExportIcon'};}const F={[_0x13776f[_0x552f05(0x121)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x552f05(0x100)],A=(_0x4887ea,_0x1f2768,_0x4db6ab,_0x3d245e)=>{for(var _0x483b3b=_0x3d245e>0x1?void 0x0:_0x3d245e?G(_0x1f2768,_0x4db6ab):_0x1f2768,_0x772485=_0x4887ea['length']-0x1,_0x176b91;_0x772485>=0x0;_0x772485--)(_0x176b91=_0x4887ea[_0x772485])&&(_0x483b3b=_0x176b91(_0x483b3b)||_0x483b3b);return _0x483b3b;},d=(_0x44d7bd,_0x52d5a6)=>(_0xe4f275,_0x475981)=>_0x52d5a6(_0xe4f275,_0x475981,_0x44d7bd);let c=class extends _0xcd3333{constructor(_0x45eb28,_0xcacbbf){const _0x566a08=_0x552f05;super(),this[_0x566a08(0xfd)]=_0x45eb28,this[_0x566a08(0x11f)]=_0xcacbbf,this[_0x566a08(0xfa)](),this[_0x566a08(0x10f)]();}['_initCommands'](){const _0x515479=_0x552f05;[p,u][_0x515479(0x117)](_0x1237c3=>{const _0x17cedb=_0x515479;this[_0x17cedb(0xf9)](this[_0x17cedb(0xfd)][_0x17cedb(0x118)](_0x1237c3));});}[_0x552f05(0x10f)](){const _0x37303f=_0x552f05;this['_menuManagerService'][_0x37303f(0x111)](F);}};c=A([d(0x0,_0x24d2df),d(0x1,_0x389c05)],c);var j=Object[_0x552f05(0xfe)],B=Object[_0x552f05(0x100)],$=(_0x436b5d,_0x4a6a11,_0xe30c91)=>_0x4a6a11 in _0x436b5d?j(_0x436b5d,_0x4a6a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe30c91}):_0x436b5d[_0x4a6a11]=_0xe30c91,V=(_0x272cb8,_0x45ded1,_0x5bb18d,_0x300529)=>{const _0x1cf1f7=_0x552f05;for(var _0x2d8459=_0x300529>0x1?void 0x0:_0x300529?B(_0x45ded1,_0x5bb18d):_0x45ded1,_0x1b38e1=_0x272cb8[_0x1cf1f7(0x124)]-0x1,_0x38b6f9;_0x1b38e1>=0x0;_0x1b38e1--)(_0x38b6f9=_0x272cb8[_0x1b38e1])&&(_0x2d8459=_0x38b6f9(_0x2d8459)||_0x2d8459);return _0x2d8459;},_=(_0x24bc1e,_0x57998e)=>(_0x17c4ca,_0x22f6ff)=>_0x57998e(_0x17c4ca,_0x22f6ff,_0x24bc1e),I=(_0x46a476,_0x28fcc3,_0x2df416)=>$(_0x46a476,typeof _0x28fcc3!='symbol'?_0x28fcc3+'':_0x28fcc3,_0x2df416);function _0x5242(){const _0x383c65=['830601ppBnhd','exportXLSXByUnitId','type','_menuManagerService','exchange.upload','OTHERS','_configService','1uuZgjH','length','1480532rKqPRT','exportXLSXBySnapshot','26307116vxkHFV','sheets-exchange-client.config','disposeWithMe','_initCommands','menu','exchange.download','_commandService','defineProperty','2762844uYTqTB','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','get','110hMYPQq','BUTTON','setConfig','435111cvhvaZ','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','7CSHFwq','search','OPERATION','_initMenus','7312744FaTWhp','mergeMenu','187828gdZpOg','importXLSXToUnitId','pluginName','185JipeCd','_injector','forEach','registerCommand','sheets-exchange-client.operation.exchange','SUBITEMS','_config'];_0x5242=function(){return _0x383c65;};return _0x5242();}const W=_0x552f05(0x10a);function _0x4470(_0x417d52,_0x1ec540){_0x417d52=_0x417d52-0xf8;const _0x524245=_0x5242();let _0x4470c4=_0x524245[_0x417d52];return _0x4470c4;}let s=class extends _0xa7b2bc{constructor(_0x135fee=l,_0x242bdb,_0x779958){const _0x1868b1=_0x552f05;super(),this[_0x1868b1(0x11b)]=_0x135fee,this[_0x1868b1(0x116)]=_0x242bdb,this[_0x1868b1(0x122)]=_0x779958;const {menu:_0x1a7b24,..._0xc344d5}=_0xbf23a({},l,this[_0x1868b1(0x11b)]);_0x1a7b24&&this[_0x1868b1(0x122)][_0x1868b1(0x107)](_0x1868b1(0xfb),_0x1a7b24,{'merge':!0x0}),this[_0x1868b1(0x122)]['setConfig'](H,_0xc344d5);}['onStarting'](){const _0x32bd49=_0x552f05;[[c]]['forEach'](_0x2400fd=>this[_0x32bd49(0x116)]['add'](_0x2400fd));}[_0x552f05(0x109)](){const _0x2d582e=_0x552f05;this[_0x2d582e(0x116)][_0x2d582e(0x104)](c);}};I(s,_0x552f05(0x114),W),I(s,_0x552f05(0x11e),_0x50522d[_0x552f05(0x102)]),s=V([_0x471c06(_0x3388d5),_(0x1,_0x40037d(_0x7257c1)),_(0x2,_0x20c626)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xc22f63,_0x6e8aed){const _0x59c58f=_0x39fb,_0x5ba112=_0xc22f63();while(!![]){try{const _0x58969d=-parseInt(_0x59c58f(0x1f2))/0x1+-parseInt(_0x59c58f(0x1c1))/0x2+-parseInt(_0x59c58f(0x1cb))/0x3+-parseInt(_0x59c58f(0x1ee))/0x4+-parseInt(_0x59c58f(0x1d2))/0x5+parseInt(_0x59c58f(0x204))/0x6*(-parseInt(_0x59c58f(0x1d0))/0x7)+parseInt(_0x59c58f(0x1cd))/0x8;if(_0x58969d===_0x6e8aed)break;else _0x5ba112['push'](_0x5ba112['shift']());}catch(_0x3969a3){_0x5ba112['push'](_0x5ba112['shift']());}}}(_0xb3c1,0xf2a19),function(_0x1a4b79,_0x1ec319){const _0x189648=_0x39fb;typeof exports==_0x189648(0x1e8)&&typeof module<'u'?_0x1ec319(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x189648(0x1d4)&&define[_0x189648(0x1fa)]?define([_0x189648(0x209),_0x189648(0x1e2),_0x189648(0x1d3),_0x189648(0x1fe),_0x189648(0x1fd),_0x189648(0x1d6)],_0x1ec319):(_0x1a4b79=typeof globalThis<'u'?globalThis:_0x1a4b79||self,_0x1ec319(_0x1a4b79[_0x189648(0x1c0)]={},_0x1a4b79[_0x189648(0x1f7)],_0x1a4b79[_0x189648(0x1d9)],_0x1a4b79['UniverUi'],_0x1a4b79[_0x189648(0x1f1)],_0x1a4b79[_0x189648(0x1e6)]));}(this,function(_0x4c6e1c,_0x4991eb,_0x46de30,_0x3b6c0d,_0xb21fc7,_0x2a6aa7){'use strict';const _0x1a1d64=_0x39fb;const _0x40b5b8={'id':_0x1a1d64(0x1ff),'type':_0x46de30[_0x1a1d64(0x207)]['OPERATION'],'handler':async _0xa5bf86=>{const _0x50328f=_0x1a1d64,_0x13b5bb=_0xa5bf86[_0x50328f(0x206)](_0x4991eb['IExchangeOperateService']);return new URLSearchParams(location[_0x50328f(0x1f8)])['get'](_0x50328f(0x1fc))?_0x13b5bb[_0x50328f(0x1df)]():_0x13b5bb[_0x50328f(0x205)](),!0x0;}},_0x4ab6d4={'id':_0x1a1d64(0x1c2),'type':_0x46de30[_0x1a1d64(0x207)][_0x1a1d64(0x1db)],'handler':async _0x5df3ba=>{const _0x2e3025=_0x1a1d64,_0x11212f=_0x5df3ba[_0x2e3025(0x206)](_0x4991eb['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x2e3025(0x1fc))?_0x11212f[_0x2e3025(0x20f)]():_0x11212f[_0x2e3025(0x1d7)](),!0x0;}},_0x28d924=_0x1a1d64(0x1c5),_0x4377de={},_0x4f1749=_0x1a1d64(0x1ce);function _0x3164d0(_0x5f3097){const _0x24c782=_0x1a1d64;return{'id':_0x4f1749,'type':_0x3b6c0d['MenuItemType'][_0x24c782(0x1f4)],'icon':_0x24c782(0x1c3),'tooltip':_0x24c782(0x1e5),'hidden$':_0x3b6c0d[_0x24c782(0x1c9)](_0x5f3097,_0x46de30[_0x24c782(0x1ed)][_0x24c782(0x1e4)]),'disabled$':_0x2a6aa7[_0x24c782(0x1cc)](_0x5f3097,{'workbookTypes':[_0xb21fc7['WorkbookExportPermission']]})};}function _0x4681f9(){const _0x531ecc=_0x1a1d64;return{'id':_0x40b5b8['id'],'type':_0x3b6c0d[_0x531ecc(0x20b)]['BUTTON'],'title':_0x531ecc(0x20d),'icon':_0x531ecc(0x1e0)};}function _0x275bd8(){const _0x5ca547=_0x1a1d64;return{'id':_0x4ab6d4['id'],'type':_0x3b6c0d[_0x5ca547(0x20b)][_0x5ca547(0x1c6)],'title':_0x5ca547(0x20e),'icon':'ExportIcon'};}const _0x33d82c={[_0x3b6c0d['RibbonStartGroup']['OTHERS']]:{[_0x4f1749]:{'order':0.3,'menuItemFactory':_0x3164d0,[_0x40b5b8['id']]:{'order':0x0,'menuItemFactory':_0x4681f9},[_0x4ab6d4['id']]:{'order':0x1,'menuItemFactory':_0x275bd8}}}};var _0xdc9b8d=Object[_0x1a1d64(0x1e7)],_0x21f4d8=(_0xe5d24f,_0x21a660,_0x5d4beb,_0x50fd10)=>{const _0x2f0a11=_0x1a1d64;for(var _0x5dc56c=_0x50fd10>0x1?void 0x0:_0x50fd10?_0xdc9b8d(_0x21a660,_0x5d4beb):_0x21a660,_0x466d7b=_0xe5d24f[_0x2f0a11(0x1e1)]-0x1,_0x5aeace;_0x466d7b>=0x0;_0x466d7b--)(_0x5aeace=_0xe5d24f[_0x466d7b])&&(_0x5dc56c=_0x5aeace(_0x5dc56c)||_0x5dc56c);return _0x5dc56c;},_0x598afa=(_0x1749cf,_0x353094)=>(_0x170920,_0x1b7062)=>_0x353094(_0x170920,_0x1b7062,_0x1749cf);let _0x5b5615=class extends _0x46de30[_0x1a1d64(0x1de)]{constructor(_0x2cf88b,_0x21024f){const _0x6f3f48=_0x1a1d64;super(),this['_commandService']=_0x2cf88b,this[_0x6f3f48(0x20a)]=_0x21024f,this[_0x6f3f48(0x1da)](),this[_0x6f3f48(0x1ec)]();}['_initCommands'](){[_0x40b5b8,_0x4ab6d4]['forEach'](_0xe73b8a=>{const _0x505541=_0x39fb;this[_0x505541(0x1f0)](this[_0x505541(0x1c7)][_0x505541(0x1ea)](_0xe73b8a));});}['_initMenus'](){const _0x3f3ec3=_0x1a1d64;this[_0x3f3ec3(0x20a)][_0x3f3ec3(0x1f9)](_0x33d82c);}};_0x5b5615=_0x21f4d8([_0x598afa(0x0,_0x46de30[_0x1a1d64(0x1f5)]),_0x598afa(0x1,_0x3b6c0d[_0x1a1d64(0x1e3)])],_0x5b5615);var _0x491912=Object[_0x1a1d64(0x200)],_0x3890f5=Object[_0x1a1d64(0x1e7)],_0x927323=(_0x389637,_0x14057b,_0x5baac9)=>_0x14057b in _0x389637?_0x491912(_0x389637,_0x14057b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5baac9}):_0x389637[_0x14057b]=_0x5baac9,_0x2e0bfb=(_0x19334e,_0x209b79,_0x1bc62d,_0xb680ce)=>{const _0x5adba2=_0x1a1d64;for(var _0x54365b=_0xb680ce>0x1?void 0x0:_0xb680ce?_0x3890f5(_0x209b79,_0x1bc62d):_0x209b79,_0x12ebb9=_0x19334e[_0x5adba2(0x1e1)]-0x1,_0x54c1e5;_0x12ebb9>=0x0;_0x12ebb9--)(_0x54c1e5=_0x19334e[_0x12ebb9])&&(_0x54365b=_0x54c1e5(_0x54365b)||_0x54365b);return _0x54365b;},_0x4bceb0=(_0x3f5bb9,_0x3b8af7)=>(_0x417ef5,_0x22b900)=>_0x3b8af7(_0x417ef5,_0x22b900,_0x3f5bb9),_0x36db08=(_0x4671e3,_0x35967c,_0x2f822f)=>_0x927323(_0x4671e3,typeof _0x35967c!=_0x1a1d64(0x203)?_0x35967c+'':_0x35967c,_0x2f822f);const _0x4c0280='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x4c6e1c[_0x1a1d64(0x20c)]=class extends _0x46de30[_0x1a1d64(0x202)]{constructor(_0x1a5f78=_0x4377de,_0x4b3026,_0x42b5e9){const _0x2638bb=_0x1a1d64;super(),this[_0x2638bb(0x201)]=_0x1a5f78,this[_0x2638bb(0x1f3)]=_0x4b3026,this[_0x2638bb(0x1c4)]=_0x42b5e9;const {menu:_0x3433a2,..._0x8807e5}=_0x46de30[_0x2638bb(0x208)]({},_0x4377de,this[_0x2638bb(0x201)]);_0x3433a2&&this[_0x2638bb(0x1c4)][_0x2638bb(0x1cf)]('menu',_0x3433a2,{'merge':!0x0}),this[_0x2638bb(0x1c4)]['setConfig'](_0x28d924,_0x8807e5);}[_0x1a1d64(0x1fb)](){const _0x16a8e4=_0x1a1d64;[[_0x5b5615]][_0x16a8e4(0x1dc)](_0x53fdd1=>this['_injector'][_0x16a8e4(0x1d1)](_0x53fdd1));}[_0x1a1d64(0x1d8)](){this['_injector']['get'](_0x5b5615);}},_0x36db08(_0x4c6e1c[_0x1a1d64(0x20c)],'pluginName',_0x4c0280),_0x36db08(_0x4c6e1c['UniverSheetsExchangeClientPlugin'],_0x1a1d64(0x1c8),_0x46de30[_0x1a1d64(0x1ed)]['UNIVER_SHEET']),_0x4c6e1c[_0x1a1d64(0x20c)]=_0x2e0bfb([_0x46de30['DependentOn'](_0x4991eb[_0x1a1d64(0x1ca)]),_0x4bceb0(0x1,_0x46de30[_0x1a1d64(0x1eb)](_0x46de30[_0x1a1d64(0x1dd)])),_0x4bceb0(0x2,_0x46de30[_0x1a1d64(0x1d5)])],_0x4c6e1c[_0x1a1d64(0x20c)]),_0x4c6e1c[_0x1a1d64(0x1ef)]=_0x4ab6d4,_0x4c6e1c['ImportXLSXOperation']=_0x40b5b8,Object[_0x1a1d64(0x200)](_0x4c6e1c,Symbol[_0x1a1d64(0x1e9)],{'value':_0x1a1d64(0x1f6)});}));function _0x39fb(_0x22dbc4,_0x13d802){_0x22dbc4=_0x22dbc4-0x1c0;const _0xb3c143=_0xb3c1();let _0x39fbb2=_0xb3c143[_0x22dbc4];return _0x39fbb2;}function _0xb3c1(){const _0x1a8b9b=['UniverCore','_initCommands','OPERATION','forEach','Injector','Disposable','importXLSXToUnitId','FolderIcon','length','@univerjs-pro/exchange-client','IMenuManagerService','UNIVER_SHEET','exchange.file','UniverSheetsUi','getOwnPropertyDescriptor','object','toStringTag','registerCommand','Inject','_initMenus','UniverInstanceType','1849812GcsnTH','ExportXLSXOperation','disposeWithMe','UniverSheets','725475JZoiDX','_injector','SUBITEMS','ICommandService','Module','UniverProExchangeClient','search','mergeMenu','amd','onStarting','unit','@univerjs/sheets','@univerjs/ui','exchange-client.operation.import-xlsx','defineProperty','_config','Plugin','symbol','144KVqzVD','importXLSXToSnapshot','get','CommandType','merge','exports','_menuManagerService','MenuItemType','UniverSheetsExchangeClientPlugin','exchange.upload','exchange.download','exportXLSXByUnitId','UniverProSheetsExchangeClient','2860898JYXFcg','exchange-client.operation.export-xlsx','DirectExportIcon','_configService','sheets-exchange-client.config','BUTTON','_commandService','type','getMenuHiddenObservable','UniverExchangeClientPlugin','471705inMwLx','getCurrentRangeDisable$','41876320KphOZu','sheets-exchange-client.operation.exchange','setConfig','161315FgeqDT','add','4560155OYtjLU','@univerjs/core','function','IConfigService','@univerjs/sheets-ui','exportXLSXBySnapshot','onReady'];_0xb3c1=function(){return _0x1a8b9b;};return _0xb3c1();}
1
+ (function(_0x377b50,_0x53c1a2){const _0x4370ad=_0x16be,_0x33a5a9=_0x377b50();while(!![]){try{const _0x4f840c=parseInt(_0x4370ad(0x1ea))/0x1+parseInt(_0x4370ad(0x1f2))/0x2+parseInt(_0x4370ad(0x1e6))/0x3*(-parseInt(_0x4370ad(0x1b2))/0x4)+parseInt(_0x4370ad(0x1c1))/0x5+parseInt(_0x4370ad(0x1e7))/0x6+parseInt(_0x4370ad(0x1c6))/0x7*(parseInt(_0x4370ad(0x1ef))/0x8)+parseInt(_0x4370ad(0x1ae))/0x9*(-parseInt(_0x4370ad(0x1d5))/0xa);if(_0x4f840c===_0x53c1a2)break;else _0x33a5a9['push'](_0x33a5a9['shift']());}catch(_0x5024a4){_0x33a5a9['push'](_0x33a5a9['shift']());}}}(_0x19a3,0xcd2bb),function(_0x5b06fc,_0x45273e){const _0x130c54=_0x16be;typeof exports=='object'&&typeof module<'u'?_0x45273e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x130c54(0x1b5)&&define[_0x130c54(0x1ba)]?define([_0x130c54(0x1c0),'@univerjs-pro/exchange-client',_0x130c54(0x1ac),_0x130c54(0x1e0),_0x130c54(0x1ab),'@univerjs/sheets-ui'],_0x45273e):(_0x5b06fc=typeof globalThis<'u'?globalThis:_0x5b06fc||self,_0x45273e(_0x5b06fc[_0x130c54(0x1bb)]={},_0x5b06fc[_0x130c54(0x1b4)],_0x5b06fc[_0x130c54(0x1dd)],_0x5b06fc[_0x130c54(0x1cd)],_0x5b06fc[_0x130c54(0x1be)],_0x5b06fc[_0x130c54(0x1da)]));}(this,function(_0x1952d6,_0x13f51b,_0x31651e,_0x29973e,_0x3d7e81,_0x13d3fa){'use strict';const _0x2fca61=_0x16be;const _0x3a3684={'id':'exchange-client.operation.import-xlsx','type':_0x31651e[_0x2fca61(0x1b6)][_0x2fca61(0x1db)],'handler':async _0x3cfc38=>{const _0x207124=_0x2fca61,_0x3f314f=_0x3cfc38[_0x207124(0x1d1)](_0x13f51b['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x207124(0x1d1)]('unit')?_0x3f314f['importXLSXToUnitId']():_0x3f314f[_0x207124(0x1e9)](),!0x0;}},_0x4131e2={'id':_0x2fca61(0x1ad),'type':_0x31651e[_0x2fca61(0x1b6)][_0x2fca61(0x1db)],'handler':async _0xe67edd=>{const _0x6d41e4=_0x2fca61,_0x2d1517=_0xe67edd[_0x6d41e4(0x1d1)](_0x13f51b[_0x6d41e4(0x1d4)]);return new URLSearchParams(location[_0x6d41e4(0x1e8)])[_0x6d41e4(0x1d1)](_0x6d41e4(0x1cc))?_0x2d1517['exportXLSXByUnitId']():_0x2d1517[_0x6d41e4(0x1e2)](),!0x0;}},_0x147d72=_0x2fca61(0x1b0),_0x54e1b5={},_0x48c0bd='sheets-exchange-client.operation.exchange';function _0xa9025(_0x38ab8b){const _0x54b7c1=_0x2fca61;return{'id':_0x48c0bd,'type':_0x29973e['MenuItemType'][_0x54b7c1(0x1e5)],'icon':_0x54b7c1(0x1de),'tooltip':_0x54b7c1(0x1ec),'hidden$':_0x29973e[_0x54b7c1(0x1d6)](_0x38ab8b,_0x31651e[_0x54b7c1(0x1cf)][_0x54b7c1(0x1cb)]),'disabled$':_0x13d3fa[_0x54b7c1(0x1d2)](_0x38ab8b,{'workbookTypes':[_0x3d7e81['WorkbookExportPermission']]})};}function _0x4b1376(){const _0x201698=_0x2fca61;return{'id':_0x3a3684['id'],'type':_0x29973e[_0x201698(0x1bd)]['BUTTON'],'title':_0x201698(0x1f1),'icon':_0x201698(0x1df)};}function _0x1a6f15(){const _0x10dade=_0x2fca61;return{'id':_0x4131e2['id'],'type':_0x29973e[_0x10dade(0x1bd)][_0x10dade(0x1eb)],'title':_0x10dade(0x1c7),'icon':_0x10dade(0x1d9)};}const _0x4d836f={[_0x29973e[_0x2fca61(0x1d3)][_0x2fca61(0x1c5)]]:{[_0x48c0bd]:{'order':0.3,'menuItemFactory':_0xa9025,[_0x3a3684['id']]:{'order':0x0,'menuItemFactory':_0x4b1376},[_0x4131e2['id']]:{'order':0x1,'menuItemFactory':_0x1a6f15}}}};var _0x475b91=Object[_0x2fca61(0x1e4)],_0x2a5ef8=(_0x5b694e,_0x545a8f,_0x3aa57a,_0x8229f)=>{const _0x5b3f9b=_0x2fca61;for(var _0x1b62a4=_0x8229f>0x1?void 0x0:_0x8229f?_0x475b91(_0x545a8f,_0x3aa57a):_0x545a8f,_0x470821=_0x5b694e[_0x5b3f9b(0x1d0)]-0x1,_0x412ce6;_0x470821>=0x0;_0x470821--)(_0x412ce6=_0x5b694e[_0x470821])&&(_0x1b62a4=_0x412ce6(_0x1b62a4)||_0x1b62a4);return _0x1b62a4;},_0x511912=(_0x4bad3a,_0x4afd26)=>(_0x1429bf,_0x1941aa)=>_0x4afd26(_0x1429bf,_0x1941aa,_0x4bad3a);let _0x493685=class extends _0x31651e[_0x2fca61(0x1c8)]{constructor(_0x4d26e8,_0xd9ea9a){const _0x366b0f=_0x2fca61;super(),this[_0x366b0f(0x1bc)]=_0x4d26e8,this[_0x366b0f(0x1d8)]=_0xd9ea9a,this[_0x366b0f(0x1e3)](),this[_0x366b0f(0x1b7)]();}['_initCommands'](){[_0x3a3684,_0x4131e2]['forEach'](_0x16f59b=>{const _0xd38aaa=_0x16be;this['disposeWithMe'](this[_0xd38aaa(0x1bc)]['registerCommand'](_0x16f59b));});}[_0x2fca61(0x1b7)](){const _0x222f60=_0x2fca61;this[_0x222f60(0x1d8)]['mergeMenu'](_0x4d836f);}};_0x493685=_0x2a5ef8([_0x511912(0x0,_0x31651e[_0x2fca61(0x1a9)]),_0x511912(0x1,_0x29973e[_0x2fca61(0x1f0)])],_0x493685);var _0x2ccb6a=Object[_0x2fca61(0x1ce)],_0x1576e2=Object[_0x2fca61(0x1e4)],_0x10671f=(_0x198f3,_0x3d78d0,_0x3a2529)=>_0x3d78d0 in _0x198f3?_0x2ccb6a(_0x198f3,_0x3d78d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2529}):_0x198f3[_0x3d78d0]=_0x3a2529,_0x279918=(_0x9f028c,_0x35a084,_0x2c67fe,_0x5441f4)=>{const _0x1cbc13=_0x2fca61;for(var _0x2c60d6=_0x5441f4>0x1?void 0x0:_0x5441f4?_0x1576e2(_0x35a084,_0x2c67fe):_0x35a084,_0x310f=_0x9f028c[_0x1cbc13(0x1d0)]-0x1,_0x20342d;_0x310f>=0x0;_0x310f--)(_0x20342d=_0x9f028c[_0x310f])&&(_0x2c60d6=_0x20342d(_0x2c60d6)||_0x2c60d6);return _0x2c60d6;},_0x4340ef=(_0x1f5f76,_0x4a2b8a)=>(_0x317a06,_0x3c3900)=>_0x4a2b8a(_0x317a06,_0x3c3900,_0x1f5f76),_0x14fe1a=(_0x321c24,_0x33cc23,_0x1d07a2)=>_0x10671f(_0x321c24,typeof _0x33cc23!='symbol'?_0x33cc23+'':_0x33cc23,_0x1d07a2);const _0x323be1='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x1952d6['UniverSheetsExchangeClientPlugin']=class extends _0x31651e[_0x2fca61(0x1e1)]{constructor(_0x219e30=_0x54e1b5,_0x5a815e,_0x3184ff){const _0x4f4e88=_0x2fca61;super(),this[_0x4f4e88(0x1c4)]=_0x219e30,this[_0x4f4e88(0x1c3)]=_0x5a815e,this[_0x4f4e88(0x1d7)]=_0x3184ff;const {menu:_0x833b23,..._0x4c9608}=_0x31651e[_0x4f4e88(0x1bf)]({},_0x54e1b5,this[_0x4f4e88(0x1c4)]);_0x833b23&&this[_0x4f4e88(0x1d7)]['setConfig']('menu',_0x833b23,{'merge':!0x0}),this['_configService']['setConfig'](_0x147d72,_0x4c9608);}[_0x2fca61(0x1f3)](){const _0x308e78=_0x2fca61;[[_0x493685]][_0x308e78(0x1ee)](_0x26a479=>this[_0x308e78(0x1c3)]['add'](_0x26a479));}[_0x2fca61(0x1af)](){const _0x360599=_0x2fca61;this[_0x360599(0x1c3)][_0x360599(0x1d1)](_0x493685);}},_0x14fe1a(_0x1952d6['UniverSheetsExchangeClientPlugin'],'pluginName',_0x323be1),_0x14fe1a(_0x1952d6[_0x2fca61(0x1b3)],_0x2fca61(0x1ca),_0x31651e['UniverInstanceType'][_0x2fca61(0x1cb)]),_0x1952d6[_0x2fca61(0x1b3)]=_0x279918([_0x31651e[_0x2fca61(0x1b8)](_0x13f51b[_0x2fca61(0x1b9)]),_0x4340ef(0x1,_0x31651e[_0x2fca61(0x1aa)](_0x31651e[_0x2fca61(0x1dc)])),_0x4340ef(0x2,_0x31651e['IConfigService'])],_0x1952d6[_0x2fca61(0x1b3)]),_0x1952d6[_0x2fca61(0x1b1)]=_0x4131e2,_0x1952d6[_0x2fca61(0x1c9)]=_0x3a3684,Object[_0x2fca61(0x1ce)](_0x1952d6,Symbol[_0x2fca61(0x1ed)],{'value':_0x2fca61(0x1c2)});}));function _0x16be(_0x14250b,_0x15f5e1){_0x14250b=_0x14250b-0x1a9;const _0x19a38f=_0x19a3();let _0x16bef0=_0x19a38f[_0x14250b];return _0x16bef0;}function _0x19a3(){const _0x5cd9b5=['ExportXLSXOperation','24440PKkOWP','UniverSheetsExchangeClientPlugin','UniverProExchangeClient','function','CommandType','_initMenus','DependentOn','UniverExchangeClientPlugin','amd','UniverProSheetsExchangeClient','_commandService','MenuItemType','UniverSheets','merge','exports','3305770AoHIjn','Module','_injector','_config','OTHERS','7zSjQMX','exchange.download','Disposable','ImportXLSXOperation','type','UNIVER_SHEET','unit','UniverUi','defineProperty','UniverInstanceType','length','get','getCurrentRangeDisable$','RibbonStartGroup','IExchangeOperateService','5090GIgZQa','getMenuHiddenObservable','_configService','_menuManagerService','ExportIcon','UniverSheetsUi','OPERATION','Injector','UniverCore','DirectExportIcon','FolderIcon','@univerjs/ui','Plugin','exportXLSXBySnapshot','_initCommands','getOwnPropertyDescriptor','SUBITEMS','81aaRtPB','3931008nHaIUS','search','importXLSXToSnapshot','1200552eDHIJS','BUTTON','exchange.file','toStringTag','forEach','12661144FtBeKl','IMenuManagerService','exchange.upload','502978Qusmmn','onStarting','ICommandService','Inject','@univerjs/sheets','@univerjs/core','exchange-client.operation.export-xlsx','59157vVIxXa','onReady','sheets-exchange-client.config'];_0x19a3=function(){return _0x5cd9b5;};return _0x19a3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
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.14.0",
46
- "@univerjs/core": "0.14.0",
47
- "@univerjs/sheets-ui": "0.14.0",
48
- "@univerjs/sheets": "0.14.0",
49
- "@univerjs/ui": "0.14.0"
45
+ "@univerjs/core": "0.15.0",
46
+ "@univerjs-pro/exchange-client": "0.15.0",
47
+ "@univerjs/sheets": "0.15.0",
48
+ "@univerjs/ui": "0.15.0",
49
+ "@univerjs/sheets-ui": "0.15.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.7",
54
- "vitest": "^4.0.15",
55
- "@univerjs-infra/shared": "0.14.0"
53
+ "vite": "^7.3.0",
54
+ "vitest": "^4.0.16",
55
+ "@univerjs-infra/shared": "0.15.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",