@univerjs-pro/sheets-exchange-client 0.13.0 → 0.14.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 +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 _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;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +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};
|
package/lib/index.js
CHANGED
|
@@ -1 +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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +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();}
|
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",
|
|
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/sheets-ui": "0.
|
|
48
|
-
"@univerjs/sheets": "0.
|
|
49
|
-
"@univerjs/ui": "0.
|
|
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"
|
|
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",
|