@univerjs-pro/sheets-exchange-client 0.2.11 → 0.2.13

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';var _0x28056f=_0x2ac1;(function(_0x29dbc9,_0xcb7dbb){var _0xf11307=_0x2ac1,_0x42ab68=_0x29dbc9();while(!![]){try{var _0x1c878c=-parseInt(_0xf11307(0x1cb))/0x1+-parseInt(_0xf11307(0x1b8))/0x2*(parseInt(_0xf11307(0x1be))/0x3)+parseInt(_0xf11307(0x1db))/0x4*(parseInt(_0xf11307(0x1d6))/0x5)+parseInt(_0xf11307(0x1ae))/0x6*(parseInt(_0xf11307(0x1b0))/0x7)+-parseInt(_0xf11307(0x1b7))/0x8*(-parseInt(_0xf11307(0x1e0))/0x9)+-parseInt(_0xf11307(0x1c6))/0xa+parseInt(_0xf11307(0x1cf))/0xb;if(_0x1c878c===_0xcb7dbb)break;else _0x42ab68['push'](_0x42ab68['shift']());}catch(_0x565b48){_0x42ab68['push'](_0x42ab68['shift']());}}}(_0x44e8,0x5d8b9));Object[_0x28056f(0x1b6)](exports,Symbol['toStringTag'],{'value':_0x28056f(0x1ec)});const o=require('@univerjs/core'),u=require(_0x28056f(0x1ab)),a=require('@univerjs/ui'),S=require(_0x28056f(0x1a7)),m=require(_0x28056f(0x1b2)),h={'id':_0x28056f(0x1ad),'type':o['CommandType'][_0x28056f(0x1c8)],'handler':async _0x16691d=>(_0x16691d[_0x28056f(0x1d1)](u[_0x28056f(0x1d4)])[_0x28056f(0x1aa)](),!0x0)},_={'id':_0x28056f(0x1a9),'type':o[_0x28056f(0x1df)]['OPERATION'],'handler':async _0xc38e9b=>(_0xc38e9b['get'](u[_0x28056f(0x1d4)])['exportXLSXByUnitId'](),!0x0)},g=_0x28056f(0x1e2);function v(_0x3e7d01){var _0x585d0a=_0x28056f;return{'id':g,'group':a[_0x585d0a(0x1c3)][_0x585d0a(0x1d8)],'type':a[_0x585d0a(0x1e9)][_0x585d0a(0x1b9)],'icon':_0x585d0a(0x1a8),'tooltip':'exchange.file','positions':[a['MenuPosition']['TOOLBAR_START']],'hidden$':a['getMenuHiddenObservable'](_0x3e7d01,o['UniverInstanceType']['UNIVER_SHEET']),'disabled$':S['getCurrentRangeDisable$'](_0x3e7d01,{'workbookTypes':[m[_0x585d0a(0x1c2)]]})};}function I(){var _0x570f8f=_0x28056f;return{'id':h['id'],'type':a['MenuItemType'][_0x570f8f(0x1d0)],'title':_0x570f8f(0x1e7),'icon':_0x570f8f(0x1b3),'positions':[g]};}function x(){var _0x579e5f=_0x28056f;return{'id':_['id'],'type':a[_0x579e5f(0x1e9)][_0x579e5f(0x1d0)],'title':_0x579e5f(0x1d5),'icon':_0x579e5f(0x1c1),'positions':[g]};}var T=Object[_0x28056f(0x1b6)],f=Object['getOwnPropertyDescriptor'],O=(_0x4f1f76,_0x37a4f0,_0x49447d,_0x2effc5)=>{var _0xb9f977=_0x28056f;for(var _0x9bdf74=_0x2effc5>0x1?void 0x0:_0x2effc5?f(_0x37a4f0,_0x49447d):_0x37a4f0,_0x41ba91=_0x4f1f76[_0xb9f977(0x1e3)]-0x1,_0x5e963e;_0x41ba91>=0x0;_0x41ba91--)(_0x5e963e=_0x4f1f76[_0x41ba91])&&(_0x9bdf74=(_0x2effc5?_0x5e963e(_0x37a4f0,_0x49447d,_0x9bdf74):_0x5e963e(_0x9bdf74))||_0x9bdf74);return _0x2effc5&&_0x9bdf74&&T(_0x37a4f0,_0x49447d,_0x9bdf74),_0x9bdf74;},l=(_0x3d5387,_0x18806a)=>(_0x320f6f,_0x375fd4)=>_0x18806a(_0x320f6f,_0x375fd4,_0x3d5387);const P={};let p=class extends o['Disposable']{constructor(_0x31cbfe,_0x48e0b1,_0x2fbbe7,_0xef2766){var _0x14d029=_0x28056f;super(),this[_0x14d029(0x1e6)]=_0x31cbfe,this['_injector']=_0x48e0b1,this[_0x14d029(0x1ac)]=_0x2fbbe7,this[_0x14d029(0x1b4)]=_0xef2766,this[_0x14d029(0x1cc)](),this['_initMenus']();}[_0x28056f(0x1cc)](){[h,_]['forEach'](_0x322bf0=>{var _0x837b70=_0x2ac1;this[_0x837b70(0x1d3)](this[_0x837b70(0x1ac)]['registerCommand'](_0x322bf0));});}[_0x28056f(0x1c4)](){var _0x2659eb=_0x28056f;const {menu:_0x1e519c={}}=this[_0x2659eb(0x1e6)];[v,I,x]['forEach'](_0x25e54c=>{var _0x4cac38=_0x2659eb;this[_0x4cac38(0x1d3)](this[_0x4cac38(0x1b4)][_0x4cac38(0x1d7)](this[_0x4cac38(0x1b1)][_0x4cac38(0x1d9)](_0x25e54c),_0x1e519c));});}};function _0x2ac1(_0x198cfa,_0x5905e7){var _0x44e880=_0x44e8();return _0x2ac1=function(_0x2ac19c,_0x164740){_0x2ac19c=_0x2ac19c-0x1a7;var _0x24766e=_0x44e880[_0x2ac19c];return _0x24766e;},_0x2ac1(_0x198cfa,_0x5905e7);}function _0x44e8(){var _0x36c345=['@univerjs/sheets-ui','DirectExportSingle','exchange-client.operation.export-xlsx','importXLSXToUnitId','@univerjs-pro/exchange-client','_commandService','exchange-client.operation.import-xlsx','6VoRyRv','getOwnPropertyDescriptor','1213506qZKjis','_injector','@univerjs/sheets','FolderSingle','_menuService','add','defineProperty','200dUsmbo','252398bZulws','SUBITEMS','Injector','deepMerge','pluginName','ICommandService','3DmAMGS','DependentOn','ImportXLSXOperation','ExportSingle','WorkbookExportPermission','MenuGroup','_initMenus','onReady','3644830aiBwuF','symbol','OPERATION','Tools','Ready','3496REXQay','_initCommands','IMenuService','UniverExchangeClientPlugin','3561701zptxlA','BUTTON','get','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','IExchangeOperateService','exchange.download','5kbacMK','addMenuItem','TOOLBAR_OTHERS','invoke','OnLifecycle','1304660UBZxSz','Inject','UniverInstanceType','initialize','CommandType','19449tnmvbD','createInstance','sheets-exchange-client.operation.exchange','length','LifecycleStages','UniverSheetsExchangeClientPlugin','_config','exchange.upload','UNIVER_SHEET','MenuItemType','ExportXLSXOperation','Plugin','Module'];_0x44e8=function(){return _0x36c345;};return _0x44e8();}p=O([o[_0x28056f(0x1da)](o[_0x28056f(0x1e4)][_0x28056f(0x1ca)],p),l(0x1,o['Inject'](o[_0x28056f(0x1ba)])),l(0x2,o[_0x28056f(0x1bd)]),l(0x3,a[_0x28056f(0x1cd)])],p);var d=Object[_0x28056f(0x1b6)],y=Object[_0x28056f(0x1af)],C=(_0xdee1f4,_0x8ebcfe,_0x2d755c)=>_0x8ebcfe in _0xdee1f4?d(_0xdee1f4,_0x8ebcfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d755c}):_0xdee1f4[_0x8ebcfe]=_0x2d755c,U=(_0x99cce8,_0x1f08a2,_0x4e9eab,_0x14f1f7)=>{for(var _0x1526da=_0x14f1f7>0x1?void 0x0:_0x14f1f7?y(_0x1f08a2,_0x4e9eab):_0x1f08a2,_0x4ef287=_0x99cce8['length']-0x1,_0x278b7b;_0x4ef287>=0x0;_0x4ef287--)(_0x278b7b=_0x99cce8[_0x4ef287])&&(_0x1526da=(_0x14f1f7?_0x278b7b(_0x1f08a2,_0x4e9eab,_0x1526da):_0x278b7b(_0x1526da))||_0x1526da);return _0x14f1f7&&_0x1526da&&d(_0x1f08a2,_0x4e9eab,_0x1526da),_0x1526da;},X=(_0x162e6b,_0x1f5532)=>(_0xf128d3,_0x4c83e9)=>_0x1f5532(_0xf128d3,_0x4c83e9,_0x162e6b),E=(_0x3f0825,_0x1d17be,_0x266756)=>C(_0x3f0825,typeof _0x1d17be!=_0x28056f(0x1c7)?_0x1d17be+'':_0x1d17be,_0x266756);const M=_0x28056f(0x1d2);exports['UniverSheetsExchangeClientPlugin']=class extends o[_0x28056f(0x1eb)]{constructor(_0x379f28={},_0x374d29){var _0x4634b2=_0x28056f;super(),this['_config']=_0x379f28,this[_0x4634b2(0x1b1)]=_0x374d29,this['_config']=o[_0x4634b2(0x1c9)][_0x4634b2(0x1bb)]({},P,this[_0x4634b2(0x1e6)]);}[_0x28056f(0x1de)](){var _0x5602b5=_0x28056f;[[p,{'useFactory':()=>this[_0x5602b5(0x1b1)][_0x5602b5(0x1e1)](p,this[_0x5602b5(0x1e6)])}]]['forEach'](_0x570939=>this[_0x5602b5(0x1b1)][_0x5602b5(0x1b5)](_0x570939));}[_0x28056f(0x1c5)](){this['initialize']();}},E(exports[_0x28056f(0x1e5)],_0x28056f(0x1bc),M),E(exports['UniverSheetsExchangeClientPlugin'],'type',o[_0x28056f(0x1dd)][_0x28056f(0x1e8)]),exports[_0x28056f(0x1e5)]=U([o[_0x28056f(0x1bf)](u[_0x28056f(0x1ce)]),X(0x1,o[_0x28056f(0x1dc)](o['Injector']))],exports['UniverSheetsExchangeClientPlugin']),exports[_0x28056f(0x1ea)]=_,exports[_0x28056f(0x1c0)]=h;
1
+ 'use strict';const _0x3b06f3=_0x3fd9;(function(_0x4b74be,_0x1a0865){const _0x754ca3=_0x3fd9,_0x205373=_0x4b74be();while(!![]){try{const _0x1a9654=-parseInt(_0x754ca3(0x1d6))/0x1+parseInt(_0x754ca3(0x1cc))/0x2+-parseInt(_0x754ca3(0x1b9))/0x3*(parseInt(_0x754ca3(0x1e1))/0x4)+-parseInt(_0x754ca3(0x1ba))/0x5*(parseInt(_0x754ca3(0x1cf))/0x6)+parseInt(_0x754ca3(0x1a2))/0x7+parseInt(_0x754ca3(0x1a1))/0x8+parseInt(_0x754ca3(0x1c1))/0x9;if(_0x1a9654===_0x1a0865)break;else _0x205373['push'](_0x205373['shift']());}catch(_0x5c75cd){_0x205373['push'](_0x205373['shift']());}}}(_0x5c62,0x2eeb2));Object[_0x3b06f3(0x1bf)](exports,Symbol[_0x3b06f3(0x1a0)],{'value':_0x3b06f3(0x1d8)});function _0x5c62(){const _0x4b4386=['BUTTON','@univerjs/sheets-ui','forEach','_configService','_commandService','mergeMenu','Inject','registerCommand','@univerjs/sheets','Disposable','@univerjs/ui','9oheuoC','15285LRJaCf','UNIVER_SHEET','Injector','exchange-client.operation.import-xlsx','DirectExportSingle','defineProperty','_menuManagerService','5209911wajngc','symbol','_config','exportXLSXByUnitId','setConfig','get','IConfigService','exchange.upload','sheets-exchange-client.operation.exchange','ICommandService','Ready','24270ZIYwLr','menu','UniverExchangeClientPlugin','318hwNPaN','DependentOn','importXLSXToUnitId','OnLifecycle','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverInstanceType','exchange.download','232952aCcLFN','ExportXLSXOperation','Module','initialize','exchange-client.operation.export-xlsx','pluginName','getMenuHiddenObservable','IExchangeOperateService','FolderSingle','ImportXLSXOperation','OPERATION','488648iRJMpV','_injector','exchange.file','_initMenus','@univerjs-pro/exchange-client','ExportSingle','MenuItemType','toStringTag','1711568MvTUKH','1040739nmaHEm','UniverSheetsExchangeClientPlugin','getCurrentRangeDisable$','length','@univerjs/core','CommandType','type','onReady','getOwnPropertyDescriptor','Plugin','WorkbookExportPermission','disposeWithMe'];_0x5c62=function(){return _0x4b4386;};return _0x5c62();}const o=require(_0x3b06f3(0x1a6)),g=require(_0x3b06f3(0x19d)),s=require(_0x3b06f3(0x1b8)),E=require(_0x3b06f3(0x1af)),v=require(_0x3b06f3(0x1b6)),u={'id':_0x3b06f3(0x1bd),'type':o[_0x3b06f3(0x1a7)][_0x3b06f3(0x1e0)],'handler':async _0x284e55=>(_0x284e55['get'](g[_0x3b06f3(0x1dd)])[_0x3b06f3(0x1d1)](),!0x0)},p={'id':_0x3b06f3(0x1da),'type':o[_0x3b06f3(0x1a7)][_0x3b06f3(0x1e0)],'handler':async _0x228800=>(_0x228800[_0x3b06f3(0x1c6)](g['IExchangeOperateService'])[_0x3b06f3(0x1c4)](),!0x0)},m=_0x3b06f3(0x1c9);function I(_0x29e3b5){const _0x3f29de=_0x3b06f3;return{'id':m,'type':s[_0x3f29de(0x19f)]['SUBITEMS'],'icon':_0x3f29de(0x1be),'tooltip':_0x3f29de(0x19b),'hidden$':s[_0x3f29de(0x1dc)](_0x29e3b5,o[_0x3f29de(0x1d4)][_0x3f29de(0x1bb)]),'disabled$':E[_0x3f29de(0x1a4)](_0x29e3b5,{'workbookTypes':[v[_0x3f29de(0x1ac)]]})};}function f(){const _0x3d46a5=_0x3b06f3;return{'id':u['id'],'type':s[_0x3d46a5(0x19f)]['BUTTON'],'title':_0x3d46a5(0x1c8),'icon':_0x3d46a5(0x1de)};}function x(){const _0x1f3a90=_0x3b06f3;return{'id':p['id'],'type':s[_0x1f3a90(0x19f)][_0x1f3a90(0x1ae)],'title':_0x1f3a90(0x1d5),'icon':_0x1f3a90(0x19e)};}function _0x3fd9(_0x434bea,_0x21f70a){const _0x5c6270=_0x5c62();return _0x3fd9=function(_0x3fd939,_0xc399f9){_0x3fd939=_0x3fd939-0x19b;let _0x3ddf6f=_0x5c6270[_0x3fd939];return _0x3ddf6f;},_0x3fd9(_0x434bea,_0x21f70a);}const C={[s['RibbonStartGroup']['FILE']]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x3b06f3(0x1bf)],P=Object[_0x3b06f3(0x1aa)],O=(_0x122d8e,_0x245502,_0x5a3f69,_0x34ab06)=>{const _0x4cb383=_0x3b06f3;for(var _0x4056bf=_0x34ab06>0x1?void 0x0:_0x34ab06?P(_0x245502,_0x5a3f69):_0x245502,_0x182980=_0x122d8e[_0x4cb383(0x1a5)]-0x1,_0x3892ba;_0x182980>=0x0;_0x182980--)(_0x3892ba=_0x122d8e[_0x182980])&&(_0x4056bf=(_0x34ab06?_0x3892ba(_0x245502,_0x5a3f69,_0x4056bf):_0x3892ba(_0x4056bf))||_0x4056bf);return _0x34ab06&&_0x4056bf&&y(_0x245502,_0x5a3f69,_0x4056bf),_0x4056bf;},h=(_0x3ff8a5,_0x1a4b23)=>(_0x1d954e,_0x145957)=>_0x1a4b23(_0x1d954e,_0x145957,_0x3ff8a5);let l=class extends o[_0x3b06f3(0x1b7)]{constructor(_0x150bcc,_0x5c5273){const _0x55435f=_0x3b06f3;super(),this['_commandService']=_0x150bcc,this['_menuManagerService']=_0x5c5273,this['_initCommands'](),this[_0x55435f(0x19c)]();}['_initCommands'](){const _0x228706=_0x3b06f3;[u,p][_0x228706(0x1b0)](_0x19874a=>{const _0x174605=_0x228706;this[_0x174605(0x1ad)](this[_0x174605(0x1b2)][_0x174605(0x1b5)](_0x19874a));});}[_0x3b06f3(0x19c)](){const _0x5a5aa0=_0x3b06f3;this[_0x5a5aa0(0x1c0)][_0x5a5aa0(0x1b3)](C);}};l=O([o[_0x3b06f3(0x1d2)](o['LifecycleStages'][_0x3b06f3(0x1cb)],l),h(0x0,o[_0x3b06f3(0x1ca)]),h(0x1,s['IMenuManagerService'])],l);const T='sheets-exchange-client.config',U={};var S=Object[_0x3b06f3(0x1bf)],X=Object[_0x3b06f3(0x1aa)],b=(_0x8840dd,_0x1cd93e,_0x25010d)=>_0x1cd93e in _0x8840dd?S(_0x8840dd,_0x1cd93e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25010d}):_0x8840dd[_0x1cd93e]=_0x25010d,N=(_0x2b9869,_0x448fea,_0x751d4,_0x5ebbdb)=>{const _0xb9b92f=_0x3b06f3;for(var _0x540488=_0x5ebbdb>0x1?void 0x0:_0x5ebbdb?X(_0x448fea,_0x751d4):_0x448fea,_0x4cbe47=_0x2b9869[_0xb9b92f(0x1a5)]-0x1,_0x1c8bad;_0x4cbe47>=0x0;_0x4cbe47--)(_0x1c8bad=_0x2b9869[_0x4cbe47])&&(_0x540488=(_0x5ebbdb?_0x1c8bad(_0x448fea,_0x751d4,_0x540488):_0x1c8bad(_0x540488))||_0x540488);return _0x5ebbdb&&_0x540488&&S(_0x448fea,_0x751d4,_0x540488),_0x540488;},d=(_0x55393e,_0x198544)=>(_0x3f527d,_0x541b61)=>_0x198544(_0x3f527d,_0x541b61,_0x55393e),_=(_0x5bc54a,_0x361e01,_0x128aad)=>b(_0x5bc54a,typeof _0x361e01!=_0x3b06f3(0x1c2)?_0x361e01+'':_0x361e01,_0x128aad);const M=_0x3b06f3(0x1d3);exports['UniverSheetsExchangeClientPlugin']=class extends o[_0x3b06f3(0x1ab)]{constructor(_0x30b071=U,_0x5b4033,_0x580807){const _0x5f5dd5=_0x3b06f3;super(),this['_config']=_0x30b071,this[_0x5f5dd5(0x1e2)]=_0x5b4033,this[_0x5f5dd5(0x1b1)]=_0x580807;const {menu:_0x1dcadf,..._0x206760}=this[_0x5f5dd5(0x1c3)];_0x1dcadf&&this[_0x5f5dd5(0x1b1)][_0x5f5dd5(0x1c5)](_0x5f5dd5(0x1cd),_0x1dcadf,{'merge':!0x0}),this[_0x5f5dd5(0x1b1)][_0x5f5dd5(0x1c5)](T,_0x206760);}[_0x3b06f3(0x1d9)](){const _0x404d71=_0x3b06f3;[[l]][_0x404d71(0x1b0)](_0x476918=>this['_injector']['add'](_0x476918));}[_0x3b06f3(0x1a9)](){this['initialize']();}},_(exports[_0x3b06f3(0x1a3)],_0x3b06f3(0x1db),M),_(exports[_0x3b06f3(0x1a3)],_0x3b06f3(0x1a8),o['UniverInstanceType'][_0x3b06f3(0x1bb)]),exports['UniverSheetsExchangeClientPlugin']=N([o[_0x3b06f3(0x1d0)](g[_0x3b06f3(0x1ce)]),d(0x1,o[_0x3b06f3(0x1b4)](o[_0x3b06f3(0x1bc)])),d(0x2,o[_0x3b06f3(0x1c7)])],exports[_0x3b06f3(0x1a3)]),exports[_0x3b06f3(0x1d7)]=p,exports[_0x3b06f3(0x1df)]=u;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x523e21=_0x5a77;(function(_0x567ba4,_0x4d3f6f){var _0x4c7eb0=_0x5a77,_0x328dde=_0x567ba4();while(!![]){try{var _0x50f316=parseInt(_0x4c7eb0(0x90))/0x1*(parseInt(_0x4c7eb0(0x99))/0x2)+parseInt(_0x4c7eb0(0x85))/0x3+-parseInt(_0x4c7eb0(0xa0))/0x4+-parseInt(_0x4c7eb0(0x9b))/0x5+parseInt(_0x4c7eb0(0x82))/0x6+parseInt(_0x4c7eb0(0x91))/0x7*(-parseInt(_0x4c7eb0(0xad))/0x8)+-parseInt(_0x4c7eb0(0x8a))/0x9;if(_0x50f316===_0x4d3f6f)break;else _0x328dde['push'](_0x328dde['shift']());}catch(_0x1811d3){_0x328dde['push'](_0x328dde['shift']());}}}(_0x2712,0x215b1));import{CommandType as _0x51ece8,UniverInstanceType as _0xeb5b84,OnLifecycle as _0x429256,LifecycleStages as _0x589be9,Inject as _0x42e93a,Injector as _0x1e9cf3,Disposable as _0x27fd9a,ICommandService as _0xf31316,DependentOn as _0x1e4314,Plugin as _0x2ed7b3,Tools as _0x2e58b5}from'@univerjs/core';import{IExchangeOperateService as _0x222702,UniverExchangeClientPlugin as _0x1386a8}from'@univerjs-pro/exchange-client';import{MenuGroup as _0x3dbcfa,MenuItemType as _0x51cfb4,MenuPosition as _0x286c8c,getMenuHiddenObservable as _0xe327c,IMenuService as _0x296202}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0xd8f78f}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x1933e3}from'@univerjs/sheets';const g={'id':_0x523e21(0x8c),'type':_0x51ece8[_0x523e21(0x81)],'handler':async _0x2ee9cd=>(_0x2ee9cd[_0x523e21(0x8b)](_0x222702)[_0x523e21(0x87)](),!0x0)},f={'id':_0x523e21(0x8f),'type':_0x51ece8[_0x523e21(0x81)],'handler':async _0x55c07f=>(_0x55c07f[_0x523e21(0x8b)](_0x222702)[_0x523e21(0xa1)](),!0x0)},_=_0x523e21(0x92);function _0x5a77(_0x58bcbd,_0x36e9e6){var _0x2712f5=_0x2712();return _0x5a77=function(_0x5a77a2,_0x54bfd3){_0x5a77a2=_0x5a77a2-0x81;var _0x2a67a8=_0x2712f5[_0x5a77a2];return _0x2a67a8;},_0x5a77(_0x58bcbd,_0x36e9e6);}function D(_0x8f661d){var _0x5e7ab3=_0x523e21;return{'id':_,'group':_0x3dbcfa[_0x5e7ab3(0x95)],'type':_0x51cfb4[_0x5e7ab3(0x94)],'icon':_0x5e7ab3(0xa7),'tooltip':_0x5e7ab3(0x89),'positions':[_0x286c8c[_0x5e7ab3(0x8e)]],'hidden$':_0xe327c(_0x8f661d,_0xeb5b84[_0x5e7ab3(0x8d)]),'disabled$':_0xd8f78f(_0x8f661d,{'workbookTypes':[_0x1933e3]})};}function _0x2712(){var _0x3d17d0=['pluginName','24pjvTba','disposeWithMe','_initMenus','OPERATION','1390662BfMpKl','invoke','registerCommand','721659OxRnfF','getOwnPropertyDescriptor','importXLSXToUnitId','exchange.upload','exchange.file','544761lzALiS','get','exchange-client.operation.import-xlsx','UNIVER_SHEET','TOOLBAR_START','exchange-client.operation.export-xlsx','5933VIJsGj','534212pZnoWH','sheets-exchange-client.operation.exchange','add','SUBITEMS','TOOLBAR_OTHERS','exchange.download','BUTTON','length','22DunmfL','forEach','420100WbXMsS','addMenuItem','_commandService','_menuService','deepMerge','109884nkiFLV','exportXLSXByUnitId','createInstance','type','initialize','FolderSingle','_config','DirectExportSingle','_injector','_initCommands','symbol','defineProperty'];_0x2712=function(){return _0x3d17d0;};return _0x2712();}function H(){var _0x58f5d5=_0x523e21;return{'id':g['id'],'type':_0x51cfb4[_0x58f5d5(0x97)],'title':_0x58f5d5(0x88),'icon':_0x58f5d5(0xa5),'positions':[_]};}function j(){var _0x501638=_0x523e21;return{'id':f['id'],'type':_0x51cfb4[_0x501638(0x97)],'title':_0x501638(0x96),'icon':'ExportSingle','positions':[_]};}var A=Object[_0x523e21(0xab)],w=Object[_0x523e21(0x86)],B=(_0x58c3db,_0x4fbef6,_0x3c52ff,_0x4731eb)=>{for(var _0x202664=_0x4731eb>0x1?void 0x0:_0x4731eb?w(_0x4fbef6,_0x3c52ff):_0x4fbef6,_0xa4c734=_0x58c3db['length']-0x1,_0x2888bf;_0xa4c734>=0x0;_0xa4c734--)(_0x2888bf=_0x58c3db[_0xa4c734])&&(_0x202664=(_0x4731eb?_0x2888bf(_0x4fbef6,_0x3c52ff,_0x202664):_0x2888bf(_0x202664))||_0x202664);return _0x4731eb&&_0x202664&&A(_0x4fbef6,_0x3c52ff,_0x202664),_0x202664;},p=(_0x348816,_0x276208)=>(_0x4f9b86,_0x3b92d2)=>_0x276208(_0x4f9b86,_0x3b92d2,_0x348816);const $={};let s=class extends _0x27fd9a{constructor(_0x3a2ee6,_0x570dbd,_0x131935,_0x10b22b){var _0x57ba10=_0x523e21;super(),this[_0x57ba10(0xa6)]=_0x3a2ee6,this[_0x57ba10(0xa8)]=_0x570dbd,this[_0x57ba10(0x9d)]=_0x131935,this[_0x57ba10(0x9e)]=_0x10b22b,this[_0x57ba10(0xa9)](),this[_0x57ba10(0xaf)]();}[_0x523e21(0xa9)](){var _0x296b2c=_0x523e21;[g,f][_0x296b2c(0x9a)](_0x45a75e=>{var _0x3f6aab=_0x296b2c;this[_0x3f6aab(0xae)](this['_commandService'][_0x3f6aab(0x84)](_0x45a75e));});}['_initMenus'](){var _0x441481=_0x523e21;const {menu:_0x925b9d={}}=this[_0x441481(0xa6)];[D,H,j][_0x441481(0x9a)](_0x4b0c3e=>{var _0x27d536=_0x441481;this[_0x27d536(0xae)](this[_0x27d536(0x9e)][_0x27d536(0x9c)](this[_0x27d536(0xa8)][_0x27d536(0x83)](_0x4b0c3e),_0x925b9d));});}};s=B([_0x429256(_0x589be9['Ready'],s),p(0x1,_0x42e93a(_0x1e9cf3)),p(0x2,_0xf31316),p(0x3,_0x296202)],s);var S=Object[_0x523e21(0xab)],F=Object[_0x523e21(0x86)],G=(_0x278593,_0xa13a1f,_0xfe6135)=>_0xa13a1f in _0x278593?S(_0x278593,_0xa13a1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfe6135}):_0x278593[_0xa13a1f]=_0xfe6135,W=(_0x2a2cee,_0x6dbced,_0x26f959,_0x8ed6f)=>{var _0x1c1a98=_0x523e21;for(var _0x547f1d=_0x8ed6f>0x1?void 0x0:_0x8ed6f?F(_0x6dbced,_0x26f959):_0x6dbced,_0x163a13=_0x2a2cee[_0x1c1a98(0x98)]-0x1,_0x55edf6;_0x163a13>=0x0;_0x163a13--)(_0x55edf6=_0x2a2cee[_0x163a13])&&(_0x547f1d=(_0x8ed6f?_0x55edf6(_0x6dbced,_0x26f959,_0x547f1d):_0x55edf6(_0x547f1d))||_0x547f1d);return _0x8ed6f&&_0x547f1d&&S(_0x6dbced,_0x26f959,_0x547f1d),_0x547f1d;},z=(_0x5810c3,_0x4dca04)=>(_0x4766a1,_0x3bcb18)=>_0x4dca04(_0x4766a1,_0x3bcb18,_0x5810c3),v=(_0x2a3b14,_0x215c17,_0x201f5f)=>G(_0x2a3b14,typeof _0x215c17!=_0x523e21(0xaa)?_0x215c17+'':_0x215c17,_0x201f5f);const V='SHEET_EXCHANGE_CLIENT_PLUGIN';let a=class extends _0x2ed7b3{constructor(_0x37b00d={},_0x193073){var _0x33e46f=_0x523e21;super(),this[_0x33e46f(0xa6)]=_0x37b00d,this[_0x33e46f(0xa8)]=_0x193073,this[_0x33e46f(0xa6)]=_0x2e58b5[_0x33e46f(0x9f)]({},$,this[_0x33e46f(0xa6)]);}['initialize'](){var _0x409900=_0x523e21;[[s,{'useFactory':()=>this['_injector'][_0x409900(0xa2)](s,this[_0x409900(0xa6)])}]][_0x409900(0x9a)](_0x3a80c2=>this[_0x409900(0xa8)][_0x409900(0x93)](_0x3a80c2));}['onReady'](){var _0xd03984=_0x523e21;this[_0xd03984(0xa4)]();}};v(a,_0x523e21(0xac),V),v(a,_0x523e21(0xa3),_0xeb5b84['UNIVER_SHEET']),a=W([_0x1e4314(_0x1386a8),z(0x1,_0x42e93a(_0x1e9cf3))],a);export{f as ExportXLSXOperation,g as ImportXLSXOperation,a as UniverSheetsExchangeClientPlugin};
1
+ function _0x44f5(){const _0x1e1369=['menu','_config','105UsmCNc','OPERATION','_injector','type','540994GrnQJX','onReady','_commandService','exportXLSXByUnitId','Ready','2300091CvFLes','initialize','_initMenus','exchange.download','exchange.file','pluginName','989260uWAAnL','length','disposeWithMe','5Uibljc','setConfig','UNIVER_SHEET','81906NEmaoY','defineProperty','registerCommand','BUTTON','7442541hXkIGW','_initCommands','getOwnPropertyDescriptor','FILE','DirectExportSingle','5465408elJnWC','forEach','1437260isrGrl','exchange.upload','get','_configService','sheets-exchange-client.config','_menuManagerService'];_0x44f5=function(){return _0x1e1369;};return _0x44f5();}const _0x22827a=_0x382c;(function(_0x4af88b,_0x1a815f){const _0x2d4a78=_0x382c,_0x18402d=_0x4af88b();while(!![]){try{const _0x4e1de4=parseInt(_0x2d4a78(0x1ba))/0x1+parseInt(_0x2d4a78(0x1d6))/0x2+-parseInt(_0x2d4a78(0x1bf))/0x3+-parseInt(_0x2d4a78(0x1c5))/0x4*(-parseInt(_0x2d4a78(0x1c8))/0x5)+-parseInt(_0x2d4a78(0x1cb))/0x6*(parseInt(_0x2d4a78(0x1de))/0x7)+parseInt(_0x2d4a78(0x1d4))/0x8+-parseInt(_0x2d4a78(0x1cf))/0x9;if(_0x4e1de4===_0x1a815f)break;else _0x18402d['push'](_0x18402d['shift']());}catch(_0x2b4eb5){_0x18402d['push'](_0x18402d['shift']());}}}(_0x44f5,0x5fa18));import{CommandType as _0x1619a5,UniverInstanceType as _0x31dc52,OnLifecycle as _0x42d0e3,LifecycleStages as _0x2807f8,Disposable as _0x4dd473,ICommandService as _0x2817b3,DependentOn as _0x2923f3,Inject as _0x33abf2,Injector as _0x53069e,Plugin as _0x4e6755,IConfigService as _0x3f90ff}from'@univerjs/core';import{IExchangeOperateService as _0x27357b,UniverExchangeClientPlugin as _0x3d94d9}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x554c2e,getMenuHiddenObservable as _0x20551e,RibbonStartGroup as _0x2f9a90,IMenuManagerService as _0x4c3488}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x393643}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x5c5531}from'@univerjs/sheets';const l={'id':'exchange-client.operation.import-xlsx','type':_0x1619a5[_0x22827a(0x1b7)],'handler':async _0x8f1ad5=>(_0x8f1ad5[_0x22827a(0x1d8)](_0x27357b)['importXLSXToUnitId'](),!0x0)},m={'id':'exchange-client.operation.export-xlsx','type':_0x1619a5[_0x22827a(0x1b7)],'handler':async _0x40d257=>(_0x40d257[_0x22827a(0x1d8)](_0x27357b)[_0x22827a(0x1bd)](),!0x0)},f='sheets-exchange-client.operation.exchange';function D(_0x557de1){const _0x5a2f83=_0x22827a;return{'id':f,'type':_0x554c2e['SUBITEMS'],'icon':_0x5a2f83(0x1d3),'tooltip':_0x5a2f83(0x1c3),'hidden$':_0x20551e(_0x557de1,_0x31dc52[_0x5a2f83(0x1ca)]),'disabled$':_0x393643(_0x557de1,{'workbookTypes':[_0x5c5531]})};}function H(){const _0x359354=_0x22827a;return{'id':l['id'],'type':_0x554c2e[_0x359354(0x1ce)],'title':_0x359354(0x1d7),'icon':'FolderSingle'};}function R(){const _0x2d60a0=_0x22827a;return{'id':m['id'],'type':_0x554c2e['BUTTON'],'title':_0x2d60a0(0x1c2),'icon':'ExportSingle'};}const G={[_0x2f9a90[_0x22827a(0x1d2)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};function _0x382c(_0xa157f0,_0x3ef976){const _0x44f5ee=_0x44f5();return _0x382c=function(_0x382c4a,_0x2e5edc){_0x382c4a=_0x382c4a-0x1b7;let _0x3654b8=_0x44f5ee[_0x382c4a];return _0x3654b8;},_0x382c(_0xa157f0,_0x3ef976);}var w=Object[_0x22827a(0x1cc)],$=Object[_0x22827a(0x1d1)],j=(_0x2df241,_0x135d2e,_0x1c9083,_0x265ffd)=>{const _0x5a7737=_0x22827a;for(var _0x2cc6cc=_0x265ffd>0x1?void 0x0:_0x265ffd?$(_0x135d2e,_0x1c9083):_0x135d2e,_0xf201ed=_0x2df241[_0x5a7737(0x1c6)]-0x1,_0x30b7fd;_0xf201ed>=0x0;_0xf201ed--)(_0x30b7fd=_0x2df241[_0xf201ed])&&(_0x2cc6cc=(_0x265ffd?_0x30b7fd(_0x135d2e,_0x1c9083,_0x2cc6cc):_0x30b7fd(_0x2cc6cc))||_0x2cc6cc);return _0x265ffd&&_0x2cc6cc&&w(_0x135d2e,_0x1c9083,_0x2cc6cc),_0x2cc6cc;},u=(_0x52b300,_0x1391c0)=>(_0x322f7a,_0x32e1d1)=>_0x1391c0(_0x322f7a,_0x32e1d1,_0x52b300);let a=class extends _0x4dd473{constructor(_0x73c305,_0x5eb6ff){const _0x26671e=_0x22827a;super(),this[_0x26671e(0x1bc)]=_0x73c305,this[_0x26671e(0x1db)]=_0x5eb6ff,this[_0x26671e(0x1d0)](),this['_initMenus']();}[_0x22827a(0x1d0)](){const _0x494e9b=_0x22827a;[l,m][_0x494e9b(0x1d5)](_0x2de3f6=>{const _0x4bfdd6=_0x494e9b;this[_0x4bfdd6(0x1c7)](this['_commandService'][_0x4bfdd6(0x1cd)](_0x2de3f6));});}[_0x22827a(0x1c1)](){const _0x5a0c2c=_0x22827a;this[_0x5a0c2c(0x1db)]['mergeMenu'](G);}};a=j([_0x42d0e3(_0x2807f8[_0x22827a(0x1be)],a),u(0x0,_0x2817b3),u(0x1,_0x4c3488)],a);const A=_0x22827a(0x1da),B={};var E=Object[_0x22827a(0x1cc)],z=Object['getOwnPropertyDescriptor'],V=(_0xdb954e,_0x389103,_0x7a52f1)=>_0x389103 in _0xdb954e?E(_0xdb954e,_0x389103,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7a52f1}):_0xdb954e[_0x389103]=_0x7a52f1,W=(_0x209890,_0x419e57,_0x5e6bfd,_0x375dee)=>{const _0x837cd2=_0x22827a;for(var _0x33b3d4=_0x375dee>0x1?void 0x0:_0x375dee?z(_0x419e57,_0x5e6bfd):_0x419e57,_0x169535=_0x209890[_0x837cd2(0x1c6)]-0x1,_0x83db0a;_0x169535>=0x0;_0x169535--)(_0x83db0a=_0x209890[_0x169535])&&(_0x33b3d4=(_0x375dee?_0x83db0a(_0x419e57,_0x5e6bfd,_0x33b3d4):_0x83db0a(_0x33b3d4))||_0x33b3d4);return _0x375dee&&_0x33b3d4&&E(_0x419e57,_0x5e6bfd,_0x33b3d4),_0x33b3d4;},d=(_0x49e606,_0x19bf1d)=>(_0xf4ccf0,_0x2c01bd)=>_0x19bf1d(_0xf4ccf0,_0x2c01bd,_0x49e606),S=(_0x1a3e98,_0xeaefee,_0x1e0077)=>V(_0x1a3e98,typeof _0xeaefee!='symbol'?_0xeaefee+'':_0xeaefee,_0x1e0077);const K='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4e6755{constructor(_0x3ba751=B,_0x3d4d4a,_0x8addc0){const _0x594381=_0x22827a;super(),this[_0x594381(0x1dd)]=_0x3ba751,this[_0x594381(0x1b8)]=_0x3d4d4a,this['_configService']=_0x8addc0;const {menu:_0x27d7d6,..._0x3951c4}=this[_0x594381(0x1dd)];_0x27d7d6&&this[_0x594381(0x1d9)]['setConfig'](_0x594381(0x1dc),_0x27d7d6,{'merge':!0x0}),this[_0x594381(0x1d9)][_0x594381(0x1c9)](A,_0x3951c4);}[_0x22827a(0x1c0)](){[[a]]['forEach'](_0x3bafba=>this['_injector']['add'](_0x3bafba));}[_0x22827a(0x1bb)](){const _0x9a1264=_0x22827a;this[_0x9a1264(0x1c0)]();}};S(s,_0x22827a(0x1c4),K),S(s,_0x22827a(0x1b9),_0x31dc52[_0x22827a(0x1ca)]),s=W([_0x2923f3(_0x3d94d9),d(0x1,_0x33abf2(_0x53069e)),d(0x2,_0x3f90ff)],s);export{m as ExportXLSXOperation,l as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
@@ -0,0 +1,7 @@
1
+ import { MenuConfig } from '@univerjs/ui';
2
+ export declare const PLUGIN_CONFIG_KEY = "sheets-exchange-client.config";
3
+ export declare const configSymbol: unique symbol;
4
+ export interface IUniverSheetsExchangeClientConfig {
5
+ menu?: MenuConfig;
6
+ }
7
+ export declare const defaultPluginConfig: IUniverSheetsExchangeClientConfig;
@@ -1,15 +1,9 @@
1
- import { Disposable, ICommandService, Injector } from '@univerjs/core';
2
- import { MenuConfig, IMenuService } from '@univerjs/ui';
3
- export interface ISheetsExchangeClientConfig {
4
- menu: MenuConfig;
5
- }
6
- export declare const DefaultSheetsExchangeClientConfig: {};
1
+ import { Disposable, ICommandService } from '@univerjs/core';
2
+ import { IMenuManagerService } from '@univerjs/ui';
7
3
  export declare class SheetsExchangeClientController extends Disposable {
8
- private readonly _config;
9
- private readonly _injector;
10
4
  private readonly _commandService;
11
- private readonly _menuService;
12
- constructor(_config: Partial<ISheetsExchangeClientConfig>, _injector: Injector, _commandService: ICommandService, _menuService: IMenuService);
5
+ protected readonly _menuManagerService: IMenuManagerService;
6
+ constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService);
13
7
  private _initCommands;
14
8
  private _initMenus;
15
9
  }
@@ -1,5 +1,6 @@
1
1
  import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
2
2
  import { IAccessor } from '@univerjs/core';
3
+ export declare const SHEETS_EXCHANGE_OPERATION_ID = "sheets-exchange-client.operation.exchange";
3
4
  export declare function SheetsExchangeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
4
5
  export declare function ImportXLSXToUnitIdMenuItemFactory(): IMenuButtonItem<string>;
5
6
  export declare function ExportXLSXByUnitIdMenuItemFactory(): IMenuButtonItem<string>;
@@ -0,0 +1,2 @@
1
+ import { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const menuSchema: MenuSchemaType;
@@ -1,11 +1,12 @@
1
- import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { ISheetsExchangeClientConfig } from './controllers/exchange.controller';
1
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { IUniverSheetsExchangeClientConfig } from './controllers/config.schema';
3
3
  export declare class UniverSheetsExchangeClientPlugin extends Plugin {
4
4
  private readonly _config;
5
5
  readonly _injector: Injector;
6
+ private readonly _configService;
6
7
  static pluginName: string;
7
8
  static type: UniverInstanceType;
8
- constructor(_config: Partial<ISheetsExchangeClientConfig>, _injector: Injector);
9
+ constructor(_config: Partial<IUniverSheetsExchangeClientConfig> | undefined, _injector: Injector, _configService: IConfigService);
9
10
  initialize(): void;
10
11
  onReady(): void;
11
12
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5da4(_0x2c131a,_0x24320a){var _0x5bcb58=_0x5bcb();return _0x5da4=function(_0x5da4e4,_0x222c6f){_0x5da4e4=_0x5da4e4-0x17a;var _0x42ad30=_0x5bcb58[_0x5da4e4];return _0x42ad30;},_0x5da4(_0x2c131a,_0x24320a);}(function(_0x10ff48,_0x284ccd){var _0xa80f97=_0x5da4,_0x263e88=_0x10ff48();while(!![]){try{var _0x47a8eb=parseInt(_0xa80f97(0x1a8))/0x1*(parseInt(_0xa80f97(0x1b7))/0x2)+parseInt(_0xa80f97(0x17c))/0x3*(-parseInt(_0xa80f97(0x1b1))/0x4)+-parseInt(_0xa80f97(0x1b5))/0x5+-parseInt(_0xa80f97(0x184))/0x6+parseInt(_0xa80f97(0x1bc))/0x7+-parseInt(_0xa80f97(0x19e))/0x8*(parseInt(_0xa80f97(0x180))/0x9)+-parseInt(_0xa80f97(0x1b8))/0xa*(-parseInt(_0xa80f97(0x1c7))/0xb);if(_0x47a8eb===_0x284ccd)break;else _0x263e88['push'](_0x263e88['shift']());}catch(_0x306107){_0x263e88['push'](_0x263e88['shift']());}}}(_0x5bcb,0x61d28),function(_0x378864,_0x422807){var _0x16d8d8=_0x5da4;typeof exports==_0x16d8d8(0x1aa)&&typeof module<'u'?_0x422807(exports,require('@univerjs/core'),require(_0x16d8d8(0x196)),require(_0x16d8d8(0x194)),require(_0x16d8d8(0x1a7)),require(_0x16d8d8(0x19c))):typeof define==_0x16d8d8(0x19f)&&define[_0x16d8d8(0x195)]?define([_0x16d8d8(0x185),_0x16d8d8(0x17b),_0x16d8d8(0x196),_0x16d8d8(0x194),_0x16d8d8(0x1a7),_0x16d8d8(0x19c)],_0x422807):(_0x378864=typeof globalThis<'u'?globalThis:_0x378864||self,_0x422807(_0x378864['UniverSheetsExchangeClient']={},_0x378864[_0x16d8d8(0x1a9)],_0x378864[_0x16d8d8(0x1a6)],_0x378864['UniverUi'],_0x378864[_0x16d8d8(0x1c6)],_0x378864[_0x16d8d8(0x193)]));}(this,function(_0x4771f6,_0x1a3987,_0x1e15ff,_0x3e3391,_0x99f20c,_0x12b108){'use strict';var _0x2ac10a=_0x5da4;const _0x1bcbf9={'id':_0x2ac10a(0x1bb),'type':_0x1a3987[_0x2ac10a(0x1be)][_0x2ac10a(0x1bf)],'handler':async _0x1dc362=>(_0x1dc362[_0x2ac10a(0x1ac)](_0x1e15ff[_0x2ac10a(0x1af)])[_0x2ac10a(0x192)](),!0x0)},_0x1a712f={'id':_0x2ac10a(0x17f),'type':_0x1a3987[_0x2ac10a(0x1be)][_0x2ac10a(0x1bf)],'handler':async _0x571a39=>(_0x571a39[_0x2ac10a(0x1ac)](_0x1e15ff[_0x2ac10a(0x1af)])[_0x2ac10a(0x18c)](),!0x0)},_0x523d90='sheets-exchange-client.operation.exchange';function _0x234c3d(_0x5aa66a){var _0x3dd7b6=_0x2ac10a;return{'id':_0x523d90,'group':_0x3e3391[_0x3dd7b6(0x1a1)][_0x3dd7b6(0x1b3)],'type':_0x3e3391[_0x3dd7b6(0x182)][_0x3dd7b6(0x183)],'icon':_0x3dd7b6(0x1c0),'tooltip':_0x3dd7b6(0x17d),'positions':[_0x3e3391['MenuPosition'][_0x3dd7b6(0x1c1)]],'hidden$':_0x3e3391['getMenuHiddenObservable'](_0x5aa66a,_0x1a3987[_0x3dd7b6(0x19a)][_0x3dd7b6(0x17a)]),'disabled$':_0x99f20c[_0x3dd7b6(0x1c3)](_0x5aa66a,{'workbookTypes':[_0x12b108[_0x3dd7b6(0x18f)]]})};}function _0x2e48ba(){var _0x198e49=_0x2ac10a;return{'id':_0x1bcbf9['id'],'type':_0x3e3391['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':_0x198e49(0x18d),'positions':[_0x523d90]};}function _0xd60c34(){var _0xa42411=_0x2ac10a;return{'id':_0x1a712f['id'],'type':_0x3e3391[_0xa42411(0x182)][_0xa42411(0x19d)],'title':_0xa42411(0x1ba),'icon':_0xa42411(0x1a3),'positions':[_0x523d90]};}var _0x538527=Object[_0x2ac10a(0x191)],_0x27b007=Object[_0x2ac10a(0x19b)],_0x5aa7f0=(_0x354456,_0x1fdc18,_0x10f70b,_0x275f10)=>{var _0x28eda6=_0x2ac10a;for(var _0x28d228=_0x275f10>0x1?void 0x0:_0x275f10?_0x27b007(_0x1fdc18,_0x10f70b):_0x1fdc18,_0x409914=_0x354456[_0x28eda6(0x189)]-0x1,_0x2f2fc0;_0x409914>=0x0;_0x409914--)(_0x2f2fc0=_0x354456[_0x409914])&&(_0x28d228=(_0x275f10?_0x2f2fc0(_0x1fdc18,_0x10f70b,_0x28d228):_0x2f2fc0(_0x28d228))||_0x28d228);return _0x275f10&&_0x28d228&&_0x538527(_0x1fdc18,_0x10f70b,_0x28d228),_0x28d228;},_0xdcc68e=(_0x50e0c4,_0x4ff6a9)=>(_0xde3f24,_0x1b62c9)=>_0x4ff6a9(_0xde3f24,_0x1b62c9,_0x50e0c4);const _0x3dc81c={};let _0x5979f0=class extends _0x1a3987[_0x2ac10a(0x1c4)]{constructor(_0x171cb3,_0x1779a1,_0x3df130,_0x1d3c9e){var _0x52872a=_0x2ac10a;super(),this[_0x52872a(0x17e)]=_0x171cb3,this['_injector']=_0x1779a1,this[_0x52872a(0x18b)]=_0x3df130,this['_menuService']=_0x1d3c9e,this[_0x52872a(0x181)](),this['_initMenus']();}[_0x2ac10a(0x181)](){var _0x7ebdac=_0x2ac10a;[_0x1bcbf9,_0x1a712f][_0x7ebdac(0x198)](_0x12b961=>{var _0x8afe9=_0x7ebdac;this['disposeWithMe'](this[_0x8afe9(0x18b)][_0x8afe9(0x188)](_0x12b961));});}[_0x2ac10a(0x1b2)](){var _0x382078=_0x2ac10a;const {menu:_0x22b8ad={}}=this[_0x382078(0x17e)];[_0x234c3d,_0x2e48ba,_0xd60c34][_0x382078(0x198)](_0x28895c=>{var _0x4e6f99=_0x382078;this[_0x4e6f99(0x1c9)](this['_menuService'][_0x4e6f99(0x187)](this['_injector'][_0x4e6f99(0x1ab)](_0x28895c),_0x22b8ad));});}};_0x5979f0=_0x5aa7f0([_0x1a3987[_0x2ac10a(0x1bd)](_0x1a3987[_0x2ac10a(0x1a0)][_0x2ac10a(0x186)],_0x5979f0),_0xdcc68e(0x1,_0x1a3987[_0x2ac10a(0x1ae)](_0x1a3987[_0x2ac10a(0x197)])),_0xdcc68e(0x2,_0x1a3987[_0x2ac10a(0x1c5)]),_0xdcc68e(0x3,_0x3e3391[_0x2ac10a(0x199)])],_0x5979f0);var _0x2df5fe=Object[_0x2ac10a(0x191)],_0x559fc1=Object[_0x2ac10a(0x19b)],_0x147f6e=(_0x50ba41,_0x31380e,_0x347eec)=>_0x31380e in _0x50ba41?_0x2df5fe(_0x50ba41,_0x31380e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x347eec}):_0x50ba41[_0x31380e]=_0x347eec,_0x1a74bd=(_0x4c7e12,_0x5b2a76,_0x38741b,_0xdc74a0)=>{var _0x4ff587=_0x2ac10a;for(var _0x1aa538=_0xdc74a0>0x1?void 0x0:_0xdc74a0?_0x559fc1(_0x5b2a76,_0x38741b):_0x5b2a76,_0x5b62c9=_0x4c7e12[_0x4ff587(0x189)]-0x1,_0x19babf;_0x5b62c9>=0x0;_0x5b62c9--)(_0x19babf=_0x4c7e12[_0x5b62c9])&&(_0x1aa538=(_0xdc74a0?_0x19babf(_0x5b2a76,_0x38741b,_0x1aa538):_0x19babf(_0x1aa538))||_0x1aa538);return _0xdc74a0&&_0x1aa538&&_0x2df5fe(_0x5b2a76,_0x38741b,_0x1aa538),_0x1aa538;},_0x181a35=(_0x49aea7,_0x44c9d1)=>(_0xc03053,_0x1b5307)=>_0x44c9d1(_0xc03053,_0x1b5307,_0x49aea7),_0x22522f=(_0x2251ac,_0x202e15,_0xb84abd)=>_0x147f6e(_0x2251ac,typeof _0x202e15!=_0x2ac10a(0x1a2)?_0x202e15+'':_0x202e15,_0xb84abd);const _0x4a79ea=_0x2ac10a(0x1b0);_0x4771f6[_0x2ac10a(0x190)]=class extends _0x1a3987['Plugin']{constructor(_0x3deb9d={},_0x515037){var _0x3e0e5a=_0x2ac10a;super(),this[_0x3e0e5a(0x17e)]=_0x3deb9d,this[_0x3e0e5a(0x1c2)]=_0x515037,this[_0x3e0e5a(0x17e)]=_0x1a3987[_0x3e0e5a(0x1b9)][_0x3e0e5a(0x1c8)]({},_0x3dc81c,this[_0x3e0e5a(0x17e)]);}[_0x2ac10a(0x1b6)](){var _0x28f9b0=_0x2ac10a;[[_0x5979f0,{'useFactory':()=>this['_injector']['createInstance'](_0x5979f0,this[_0x28f9b0(0x17e)])}]]['forEach'](_0x7ad510=>this[_0x28f9b0(0x1c2)][_0x28f9b0(0x1b4)](_0x7ad510));}[_0x2ac10a(0x1a5)](){var _0x2928f=_0x2ac10a;this[_0x2928f(0x1b6)]();}},_0x22522f(_0x4771f6['UniverSheetsExchangeClientPlugin'],_0x2ac10a(0x18a),_0x4a79ea),_0x22522f(_0x4771f6[_0x2ac10a(0x190)],'type',_0x1a3987['UniverInstanceType'][_0x2ac10a(0x17a)]),_0x4771f6[_0x2ac10a(0x190)]=_0x1a74bd([_0x1a3987['DependentOn'](_0x1e15ff[_0x2ac10a(0x1ad)]),_0x181a35(0x1,_0x1a3987['Inject'](_0x1a3987[_0x2ac10a(0x197)]))],_0x4771f6[_0x2ac10a(0x190)]),_0x4771f6['ExportXLSXOperation']=_0x1a712f,_0x4771f6[_0x2ac10a(0x18e)]=_0x1bcbf9,Object[_0x2ac10a(0x191)](_0x4771f6,Symbol[_0x2ac10a(0x1a4)],{'value':'Module'});}));function _0x5bcb(){var _0x3c5b4d=['function','LifecycleStages','MenuGroup','symbol','ExportSingle','toStringTag','onReady','UniverExchangeClient','@univerjs/sheets-ui','17343TOaCBC','UniverCore','object','invoke','get','UniverExchangeClientPlugin','Inject','IExchangeOperateService','SHEET_EXCHANGE_CLIENT_PLUGIN','300184rxWtps','_initMenus','TOOLBAR_OTHERS','add','262465aqobCN','initialize','34OIITDY','3997530zbDFiY','Tools','exchange.download','exchange-client.operation.import-xlsx','1874789mOSMLl','OnLifecycle','CommandType','OPERATION','DirectExportSingle','TOOLBAR_START','_injector','getCurrentRangeDisable$','Disposable','ICommandService','UniverSheetsUi','44DckjKE','deepMerge','disposeWithMe','UNIVER_SHEET','@univerjs/core','27fsIEmM','exchange.file','_config','exchange-client.operation.export-xlsx','6802353XzXTQJ','_initCommands','MenuItemType','SUBITEMS','1663596mXrreN','exports','Ready','addMenuItem','registerCommand','length','pluginName','_commandService','exportXLSXByUnitId','FolderSingle','ImportXLSXOperation','WorkbookExportPermission','UniverSheetsExchangeClientPlugin','defineProperty','importXLSXToUnitId','UniverSheets','@univerjs/ui','amd','@univerjs-pro/exchange-client','Injector','forEach','IMenuService','UniverInstanceType','getOwnPropertyDescriptor','@univerjs/sheets','BUTTON','8rQiVnz'];_0x5bcb=function(){return _0x3c5b4d;};return _0x5bcb();}
1
+ function _0x242c(){const _0x1b6d7e=['IConfigService','UniverSheetsExchangeClientPlugin','Ready','Module','_initCommands','324372oVHYnX','length','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportSingle','sheets-exchange-client.operation.exchange','568bgleZn','exportXLSXByUnitId','mergeMenu','exchange.upload','disposeWithMe','CommandType','@univerjs/ui','sheets-exchange-client.config','UniverExchangeClientPlugin','exchange.file','registerCommand','@univerjs/core','function','exchange-client.operation.import-xlsx','type','5122aAYoUs','@univerjs-pro/exchange-client','MenuItemType','_initMenus','UNIVER_SHEET','2873592lJMbXF','BUTTON','UniverSheetsUi','exchange-client.operation.export-xlsx','_commandService','ImportXLSXOperation','_configService','FILE','UniverSheetsExchangeClient','88398kwqVfw','defineProperty','forEach','WorkbookExportPermission','UniverCore','UniverInstanceType','IExchangeOperateService','942PUgjmP','ICommandService','@univerjs/sheets','pluginName','ExportSingle','IMenuManagerService','OPERATION','initialize','ExportXLSXOperation','exports','FolderSingle','Injector','5361045DHrEwv','menu','_injector','_menuManagerService','LifecycleStages','object','Disposable','get','30499gEdEOu','@univerjs/sheets-ui','_config','getCurrentRangeDisable$','exchange.download','UniverSheets','importXLSXToUnitId','setConfig','DependentOn','17981200VoFyde','Plugin','280RPZozF'];_0x242c=function(){return _0x1b6d7e;};return _0x242c();}function _0xd242(_0x4fa1ec,_0x29a72e){const _0x242c8b=_0x242c();return _0xd242=function(_0xd24201,_0x33ec90){_0xd24201=_0xd24201-0x93;let _0x1f996b=_0x242c8b[_0xd24201];return _0x1f996b;},_0xd242(_0x4fa1ec,_0x29a72e);}(function(_0x53c91c,_0x557c06){const _0x2c677c=_0xd242,_0x298c6d=_0x53c91c();while(!![]){try{const _0x5d96c2=-parseInt(_0x2c677c(0xd0))/0x1*(-parseInt(_0x2c677c(0xb6))/0x2)+-parseInt(_0x2c677c(0xd5))/0x3+parseInt(_0x2c677c(0xbc))/0x4+-parseInt(_0x2c677c(0xa3))/0x5+-parseInt(_0x2c677c(0x97))/0x6*(-parseInt(_0x2c677c(0xab))/0x7)+-parseInt(_0x2c677c(0xc1))/0x8*(parseInt(_0x2c677c(0xde))/0x9)+parseInt(_0x2c677c(0xb4))/0xa;if(_0x5d96c2===_0x557c06)break;else _0x298c6d['push'](_0x298c6d['shift']());}catch(_0x5d51b1){_0x298c6d['push'](_0x298c6d['shift']());}}}(_0x242c,0x86fcb),function(_0x501d48,_0x2926b5){const _0x1000a3=_0xd242;typeof exports==_0x1000a3(0xa8)&&typeof module<'u'?_0x2926b5(exports,require(_0x1000a3(0xcc)),require(_0x1000a3(0xd1)),require(_0x1000a3(0xc7)),require(_0x1000a3(0xac)),require(_0x1000a3(0x99))):typeof define==_0x1000a3(0xcd)&&define['amd']?define([_0x1000a3(0xa0),_0x1000a3(0xcc),_0x1000a3(0xd1),'@univerjs/ui',_0x1000a3(0xac),'@univerjs/sheets'],_0x2926b5):(_0x501d48=typeof globalThis<'u'?globalThis:_0x501d48||self,_0x2926b5(_0x501d48[_0x1000a3(0xdd)]={},_0x501d48[_0x1000a3(0x94)],_0x501d48['UniverExchangeClient'],_0x501d48['UniverUi'],_0x501d48[_0x1000a3(0xd7)],_0x501d48[_0x1000a3(0xb0)]));}(this,function(_0x569c19,_0x30a6bf,_0x13034c,_0x45e61e,_0x58ee13,_0x25b122){'use strict';const _0x51bc0d=_0xd242;const _0x4f738c={'id':_0x51bc0d(0xce),'type':_0x30a6bf[_0x51bc0d(0xc6)][_0x51bc0d(0x9d)],'handler':async _0x4f334b=>(_0x4f334b[_0x51bc0d(0xaa)](_0x13034c[_0x51bc0d(0x96)])[_0x51bc0d(0xb1)](),!0x0)},_0xe8d2f={'id':_0x51bc0d(0xd8),'type':_0x30a6bf[_0x51bc0d(0xc6)][_0x51bc0d(0x9d)],'handler':async _0x461066=>(_0x461066[_0x51bc0d(0xaa)](_0x13034c[_0x51bc0d(0x96)])[_0x51bc0d(0xc2)](),!0x0)},_0x36f739=_0x51bc0d(0xc0);function _0x8252b2(_0x6e5199){const _0x3053c2=_0x51bc0d;return{'id':_0x36f739,'type':_0x45e61e[_0x3053c2(0xd2)]['SUBITEMS'],'icon':_0x3053c2(0xbf),'tooltip':_0x3053c2(0xca),'hidden$':_0x45e61e['getMenuHiddenObservable'](_0x6e5199,_0x30a6bf[_0x3053c2(0x95)][_0x3053c2(0xd4)]),'disabled$':_0x58ee13[_0x3053c2(0xae)](_0x6e5199,{'workbookTypes':[_0x25b122[_0x3053c2(0x93)]]})};}function _0x539fca(){const _0x18fa72=_0x51bc0d;return{'id':_0x4f738c['id'],'type':_0x45e61e[_0x18fa72(0xd2)][_0x18fa72(0xd6)],'title':_0x18fa72(0xc4),'icon':_0x18fa72(0xa1)};}function _0x309a22(){const _0x247d85=_0x51bc0d;return{'id':_0xe8d2f['id'],'type':_0x45e61e[_0x247d85(0xd2)]['BUTTON'],'title':_0x247d85(0xaf),'icon':_0x247d85(0x9b)};}const _0x2130ab={[_0x45e61e['RibbonStartGroup'][_0x51bc0d(0xdc)]]:{[_0x36f739]:{'order':0x4,'menuItemFactory':_0x8252b2,[_0x4f738c['id']]:{'order':0x0,'menuItemFactory':_0x539fca},[_0xe8d2f['id']]:{'order':0x1,'menuItemFactory':_0x309a22}}}};var _0xbe03b8=Object[_0x51bc0d(0xdf)],_0x3153fa=Object['getOwnPropertyDescriptor'],_0x12d13a=(_0xc2633b,_0x4c9b1a,_0x2d3982,_0x2180e7)=>{const _0x1330de=_0x51bc0d;for(var _0x9b7633=_0x2180e7>0x1?void 0x0:_0x2180e7?_0x3153fa(_0x4c9b1a,_0x2d3982):_0x4c9b1a,_0x36aa2e=_0xc2633b[_0x1330de(0xbd)]-0x1,_0x47b18a;_0x36aa2e>=0x0;_0x36aa2e--)(_0x47b18a=_0xc2633b[_0x36aa2e])&&(_0x9b7633=(_0x2180e7?_0x47b18a(_0x4c9b1a,_0x2d3982,_0x9b7633):_0x47b18a(_0x9b7633))||_0x9b7633);return _0x2180e7&&_0x9b7633&&_0xbe03b8(_0x4c9b1a,_0x2d3982,_0x9b7633),_0x9b7633;},_0x2515a2=(_0x1e9175,_0x221283)=>(_0x5e5df9,_0x927c69)=>_0x221283(_0x5e5df9,_0x927c69,_0x1e9175);let _0x1030ae=class extends _0x30a6bf[_0x51bc0d(0xa9)]{constructor(_0x43d878,_0x5a8eec){const _0x3d8bf4=_0x51bc0d;super(),this[_0x3d8bf4(0xd9)]=_0x43d878,this[_0x3d8bf4(0xa6)]=_0x5a8eec,this['_initCommands'](),this['_initMenus']();}[_0x51bc0d(0xbb)](){const _0x3ab1e2=_0x51bc0d;[_0x4f738c,_0xe8d2f][_0x3ab1e2(0xe0)](_0x3335a4=>{const _0x3d96a8=_0x3ab1e2;this[_0x3d96a8(0xc5)](this[_0x3d96a8(0xd9)][_0x3d96a8(0xcb)](_0x3335a4));});}[_0x51bc0d(0xd3)](){const _0x22c25d=_0x51bc0d;this[_0x22c25d(0xa6)][_0x22c25d(0xc3)](_0x2130ab);}};_0x1030ae=_0x12d13a([_0x30a6bf['OnLifecycle'](_0x30a6bf[_0x51bc0d(0xa7)][_0x51bc0d(0xb9)],_0x1030ae),_0x2515a2(0x0,_0x30a6bf[_0x51bc0d(0x98)]),_0x2515a2(0x1,_0x45e61e[_0x51bc0d(0x9c)])],_0x1030ae);const _0x27065c=_0x51bc0d(0xc8),_0xd47917={};var _0x1b7da1=Object['defineProperty'],_0x6d0c05=Object['getOwnPropertyDescriptor'],_0x210f0f=(_0x30bc19,_0x5f3768,_0x6bedee)=>_0x5f3768 in _0x30bc19?_0x1b7da1(_0x30bc19,_0x5f3768,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6bedee}):_0x30bc19[_0x5f3768]=_0x6bedee,_0xdf09c0=(_0x7f1632,_0xe79e5d,_0x2c65b1,_0x57d97f)=>{for(var _0x43f872=_0x57d97f>0x1?void 0x0:_0x57d97f?_0x6d0c05(_0xe79e5d,_0x2c65b1):_0xe79e5d,_0x126b92=_0x7f1632['length']-0x1,_0x37e872;_0x126b92>=0x0;_0x126b92--)(_0x37e872=_0x7f1632[_0x126b92])&&(_0x43f872=(_0x57d97f?_0x37e872(_0xe79e5d,_0x2c65b1,_0x43f872):_0x37e872(_0x43f872))||_0x43f872);return _0x57d97f&&_0x43f872&&_0x1b7da1(_0xe79e5d,_0x2c65b1,_0x43f872),_0x43f872;},_0x5b33b9=(_0x292b2d,_0xf282d8)=>(_0xccab5,_0x3da360)=>_0xf282d8(_0xccab5,_0x3da360,_0x292b2d),_0x4bf7af=(_0x18b9e4,_0x5990e2,_0x1658ec)=>_0x210f0f(_0x18b9e4,typeof _0x5990e2!='symbol'?_0x5990e2+'':_0x5990e2,_0x1658ec);const _0x464593=_0x51bc0d(0xbe);_0x569c19[_0x51bc0d(0xb8)]=class extends _0x30a6bf[_0x51bc0d(0xb5)]{constructor(_0xce22e6=_0xd47917,_0x11f1ab,_0x418ec1){const _0xe4031a=_0x51bc0d;super(),this[_0xe4031a(0xad)]=_0xce22e6,this[_0xe4031a(0xa5)]=_0x11f1ab,this[_0xe4031a(0xdb)]=_0x418ec1;const {menu:_0x1ff42e,..._0x106206}=this['_config'];_0x1ff42e&&this[_0xe4031a(0xdb)][_0xe4031a(0xb2)](_0xe4031a(0xa4),_0x1ff42e,{'merge':!0x0}),this[_0xe4031a(0xdb)][_0xe4031a(0xb2)](_0x27065c,_0x106206);}[_0x51bc0d(0x9e)](){const _0x3ceda2=_0x51bc0d;[[_0x1030ae]][_0x3ceda2(0xe0)](_0x496fc3=>this[_0x3ceda2(0xa5)]['add'](_0x496fc3));}['onReady'](){const _0x5f2814=_0x51bc0d;this[_0x5f2814(0x9e)]();}},_0x4bf7af(_0x569c19[_0x51bc0d(0xb8)],_0x51bc0d(0x9a),_0x464593),_0x4bf7af(_0x569c19[_0x51bc0d(0xb8)],_0x51bc0d(0xcf),_0x30a6bf['UniverInstanceType']['UNIVER_SHEET']),_0x569c19['UniverSheetsExchangeClientPlugin']=_0xdf09c0([_0x30a6bf[_0x51bc0d(0xb3)](_0x13034c[_0x51bc0d(0xc9)]),_0x5b33b9(0x1,_0x30a6bf['Inject'](_0x30a6bf[_0x51bc0d(0xa2)])),_0x5b33b9(0x2,_0x30a6bf[_0x51bc0d(0xb7)])],_0x569c19[_0x51bc0d(0xb8)]),_0x569c19[_0x51bc0d(0x9f)]=_0xe8d2f,_0x569c19[_0x51bc0d(0xda)]=_0x4f738c,Object[_0x51bc0d(0xdf)](_0x569c19,Symbol['toStringTag'],{'value':_0x51bc0d(0xba)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,25 +43,25 @@
43
43
  "lib"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@univerjs-pro/exchange-client": "0.2.11",
47
- "@univerjs/core": "0.2.11",
48
- "@univerjs/sheets-ui": "0.2.11",
49
- "@univerjs/ui": "0.2.11",
50
- "@univerjs/sheets": "0.2.11"
46
+ "@univerjs-pro/exchange-client": "0.2.13",
47
+ "@univerjs/sheets": "0.2.13",
48
+ "@univerjs/core": "0.2.13",
49
+ "@univerjs/sheets-ui": "0.2.13",
50
+ "@univerjs/ui": "0.2.13"
51
51
  },
52
52
  "dependencies": {
53
- "@univerjs/icons": "^0.1.72",
53
+ "@univerjs/icons": "^0.1.78",
54
54
  "@univerjs/protocol": "0.1.39-alpha.15",
55
- "@univerjs/sheets-ui": "0.2.11",
56
- "@univerjs/sheets": "0.2.11"
55
+ "@univerjs/sheets": "0.2.13",
56
+ "@univerjs-pro/exchange-client": "0.2.13",
57
+ "@univerjs/sheets-ui": "0.2.13",
58
+ "@univerjs/core": "0.2.13"
57
59
  },
58
60
  "devDependencies": {
59
- "typescript": "^5.5.4",
60
- "vite": "^5.4.0",
61
+ "typescript": "^5.6.2",
62
+ "vite": "^5.4.3",
61
63
  "vitest": "^2.0.5",
62
- "@univerjs-pro/exchange-client": "0.2.11",
63
- "@univerjs/core": "0.2.11",
64
- "@univerjs/shared": "0.2.11"
64
+ "@univerjs-infra/shared": "0.2.13"
65
65
  },
66
66
  "univerSpace": {
67
67
  ".": {