@univerjs-pro/sheets-exchange-client 0.2.12 → 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';const _0x27ae70=_0x4f4c;(function(_0x5b0ad9,_0x5542bd){const _0x1ab71f=_0x4f4c,_0x1c137e=_0x5b0ad9();while(!![]){try{const _0x21f3ea=parseInt(_0x1ab71f(0x168))/0x1*(parseInt(_0x1ab71f(0x19d))/0x2)+-parseInt(_0x1ab71f(0x199))/0x3*(-parseInt(_0x1ab71f(0x16a))/0x4)+-parseInt(_0x1ab71f(0x18c))/0x5+parseInt(_0x1ab71f(0x171))/0x6*(-parseInt(_0x1ab71f(0x17b))/0x7)+-parseInt(_0x1ab71f(0x185))/0x8*(parseInt(_0x1ab71f(0x1a7))/0x9)+-parseInt(_0x1ab71f(0x16c))/0xa+parseInt(_0x1ab71f(0x195))/0xb;if(_0x21f3ea===_0x5542bd)break;else _0x1c137e['push'](_0x1c137e['shift']());}catch(_0x216417){_0x1c137e['push'](_0x1c137e['shift']());}}}(_0x499d,0x8a13d));function _0x4f4c(_0x4cd340,_0x2c3653){const _0x499d1a=_0x499d();return _0x4f4c=function(_0x4f4c1d,_0x18c477){_0x4f4c1d=_0x4f4c1d-0x160;let _0x562a3f=_0x499d1a[_0x4f4c1d];return _0x562a3f;},_0x4f4c(_0x4cd340,_0x2c3653);}Object['defineProperty'](exports,Symbol[_0x27ae70(0x165)],{'value':_0x27ae70(0x174)});const o=require(_0x27ae70(0x18e)),g=require(_0x27ae70(0x16d)),s=require(_0x27ae70(0x188)),E=require(_0x27ae70(0x1a3)),v=require('@univerjs/sheets'),u={'id':_0x27ae70(0x170),'type':o['CommandType']['OPERATION'],'handler':async _0x5ded94=>(_0x5ded94[_0x27ae70(0x166)](g[_0x27ae70(0x167)])[_0x27ae70(0x177)](),!0x0)},p={'id':_0x27ae70(0x17a),'type':o['CommandType'][_0x27ae70(0x160)],'handler':async _0x4e787e=>(_0x4e787e[_0x27ae70(0x166)](g[_0x27ae70(0x167)])[_0x27ae70(0x187)](),!0x0)},m=_0x27ae70(0x173);function I(_0x22fd12){const _0x1e7b2c=_0x27ae70;return{'id':m,'type':s[_0x1e7b2c(0x192)]['SUBITEMS'],'icon':_0x1e7b2c(0x17f),'tooltip':_0x1e7b2c(0x18d),'hidden$':s['getMenuHiddenObservable'](_0x22fd12,o['UniverInstanceType']['UNIVER_SHEET']),'disabled$':E[_0x1e7b2c(0x194)](_0x22fd12,{'workbookTypes':[v[_0x1e7b2c(0x193)]]})};}function f(){const _0x21ede9=_0x27ae70;return{'id':u['id'],'type':s[_0x21ede9(0x192)][_0x21ede9(0x181)],'title':_0x21ede9(0x162),'icon':_0x21ede9(0x197)};}function x(){const _0x520e4f=_0x27ae70;return{'id':p['id'],'type':s[_0x520e4f(0x192)]['BUTTON'],'title':'exchange.download','icon':_0x520e4f(0x190)};}function _0x499d(){const _0x42d0b6=['_commandService','45VPgGaV','OPERATION','sheets-exchange-client.config','exchange.upload','setConfig','OnLifecycle','toStringTag','get','IExchangeOperateService','32933gyhaPi','length','4KNwruv','Plugin','416820nqCmHi','@univerjs-pro/exchange-client','_initCommands','FILE','exchange-client.operation.import-xlsx','95988wtUkVN','menu','sheets-exchange-client.operation.exchange','Module','type','_initMenus','importXLSXToUnitId','defineProperty','UNIVER_SHEET','exchange-client.operation.export-xlsx','49XFMkeC','Injector','getOwnPropertyDescriptor','initialize','DirectExportSingle','Disposable','BUTTON','UniverSheetsExchangeClientPlugin','disposeWithMe','Inject','252272yofPaM','_config','exportXLSXByUnitId','@univerjs/ui','_injector','_menuManagerService','UniverInstanceType','2266025kJWfLm','exchange.file','@univerjs/core','ICommandService','ExportSingle','RibbonStartGroup','MenuItemType','WorkbookExportPermission','getCurrentRangeDisable$','6519755CWoZwz','pluginName','FolderSingle','IMenuManagerService','335028ygdFRy','_configService','forEach','ExportXLSXOperation','38QzBlhv','symbol','Ready','UniverExchangeClientPlugin','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','@univerjs/sheets-ui','IConfigService','DependentOn'];_0x499d=function(){return _0x42d0b6;};return _0x499d();}const C={[s[_0x27ae70(0x191)][_0x27ae70(0x16f)]]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x27ae70(0x178)],P=Object['getOwnPropertyDescriptor'],O=(_0x186c2c,_0x2b9bb8,_0x1ece87,_0xcb8ea6)=>{const _0x5d8089=_0x27ae70;for(var _0x3be291=_0xcb8ea6>0x1?void 0x0:_0xcb8ea6?P(_0x2b9bb8,_0x1ece87):_0x2b9bb8,_0x47d1b4=_0x186c2c[_0x5d8089(0x169)]-0x1,_0x3d872c;_0x47d1b4>=0x0;_0x47d1b4--)(_0x3d872c=_0x186c2c[_0x47d1b4])&&(_0x3be291=(_0xcb8ea6?_0x3d872c(_0x2b9bb8,_0x1ece87,_0x3be291):_0x3d872c(_0x3be291))||_0x3be291);return _0xcb8ea6&&_0x3be291&&y(_0x2b9bb8,_0x1ece87,_0x3be291),_0x3be291;},h=(_0x3f92ee,_0x594b48)=>(_0x75255a,_0x5676d9)=>_0x594b48(_0x75255a,_0x5676d9,_0x3f92ee);let l=class extends o[_0x27ae70(0x180)]{constructor(_0x3cdd4c,_0x2cb37f){const _0x15d425=_0x27ae70;super(),this[_0x15d425(0x1a6)]=_0x3cdd4c,this[_0x15d425(0x18a)]=_0x2cb37f,this['_initCommands'](),this[_0x15d425(0x176)]();}[_0x27ae70(0x16e)](){const _0x2a23d2=_0x27ae70;[u,p][_0x2a23d2(0x19b)](_0x64edf1=>{const _0x47d36f=_0x2a23d2;this[_0x47d36f(0x183)](this[_0x47d36f(0x1a6)]['registerCommand'](_0x64edf1));});}['_initMenus'](){const _0x2469c8=_0x27ae70;this[_0x2469c8(0x18a)][_0x2469c8(0x1a2)](C);}};l=O([o[_0x27ae70(0x164)](o['LifecycleStages'][_0x27ae70(0x19f)],l),h(0x0,o[_0x27ae70(0x18f)]),h(0x1,s[_0x27ae70(0x198)])],l);const T=_0x27ae70(0x161),U={};var S=Object['defineProperty'],X=Object[_0x27ae70(0x17d)],b=(_0x35e930,_0x8189b2,_0x44e585)=>_0x8189b2 in _0x35e930?S(_0x35e930,_0x8189b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44e585}):_0x35e930[_0x8189b2]=_0x44e585,N=(_0xfe1abf,_0x4de972,_0x4c936e,_0x315ca0)=>{for(var _0x1a97b2=_0x315ca0>0x1?void 0x0:_0x315ca0?X(_0x4de972,_0x4c936e):_0x4de972,_0x116f3d=_0xfe1abf['length']-0x1,_0x2785c3;_0x116f3d>=0x0;_0x116f3d--)(_0x2785c3=_0xfe1abf[_0x116f3d])&&(_0x1a97b2=(_0x315ca0?_0x2785c3(_0x4de972,_0x4c936e,_0x1a97b2):_0x2785c3(_0x1a97b2))||_0x1a97b2);return _0x315ca0&&_0x1a97b2&&S(_0x4de972,_0x4c936e,_0x1a97b2),_0x1a97b2;},d=(_0x1c7365,_0x31a192)=>(_0x12205b,_0x34218a)=>_0x31a192(_0x12205b,_0x34218a,_0x1c7365),_=(_0x17ba5a,_0x128644,_0x563f20)=>b(_0x17ba5a,typeof _0x128644!=_0x27ae70(0x19e)?_0x128644+'':_0x128644,_0x563f20);const M=_0x27ae70(0x1a1);exports[_0x27ae70(0x182)]=class extends o[_0x27ae70(0x16b)]{constructor(_0x2e5978=U,_0xadb343,_0x8c4419){const _0x4f8697=_0x27ae70;super(),this[_0x4f8697(0x186)]=_0x2e5978,this['_injector']=_0xadb343,this[_0x4f8697(0x19a)]=_0x8c4419;const {menu:_0x53768a,..._0x26007a}=this[_0x4f8697(0x186)];_0x53768a&&this[_0x4f8697(0x19a)][_0x4f8697(0x163)](_0x4f8697(0x172),_0x53768a,{'merge':!0x0}),this['_configService']['setConfig'](T,_0x26007a);}[_0x27ae70(0x17e)](){const _0x52397c=_0x27ae70;[[l]][_0x52397c(0x19b)](_0x44c15e=>this[_0x52397c(0x189)]['add'](_0x44c15e));}['onReady'](){const _0x1d6a58=_0x27ae70;this[_0x1d6a58(0x17e)]();}},_(exports[_0x27ae70(0x182)],_0x27ae70(0x196),M),_(exports[_0x27ae70(0x182)],_0x27ae70(0x175),o[_0x27ae70(0x18b)][_0x27ae70(0x179)]),exports[_0x27ae70(0x182)]=N([o[_0x27ae70(0x1a5)](g[_0x27ae70(0x1a0)]),d(0x1,o[_0x27ae70(0x184)](o[_0x27ae70(0x17c)])),d(0x2,o[_0x27ae70(0x1a4)])],exports[_0x27ae70(0x182)]),exports[_0x27ae70(0x19c)]=p,exports['ImportXLSXOperation']=u;
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
- const _0x581f38=_0x1edc;(function(_0x110def,_0x375300){const _0x4777ec=_0x1edc,_0x34a46f=_0x110def();while(!![]){try{const _0x30c542=-parseInt(_0x4777ec(0xb2))/0x1+parseInt(_0x4777ec(0xb0))/0x2*(-parseInt(_0x4777ec(0xba))/0x3)+-parseInt(_0x4777ec(0xad))/0x4+-parseInt(_0x4777ec(0xac))/0x5*(parseInt(_0x4777ec(0xa1))/0x6)+parseInt(_0x4777ec(0xb5))/0x7+parseInt(_0x4777ec(0xc5))/0x8*(-parseInt(_0x4777ec(0xb1))/0x9)+parseInt(_0x4777ec(0xaa))/0xa*(parseInt(_0x4777ec(0xab))/0xb);if(_0x30c542===_0x375300)break;else _0x34a46f['push'](_0x34a46f['shift']());}catch(_0x442d0a){_0x34a46f['push'](_0x34a46f['shift']());}}}(_0x3c1e,0xe61e5));import{CommandType as _0x194cbb,UniverInstanceType as _0x24208e,OnLifecycle as _0x275042,LifecycleStages as _0x225d5c,Disposable as _0x5cd33c,ICommandService as _0x581f43,DependentOn as _0x46f74b,Inject as _0xdcc819,Injector as _0x20ee8d,Plugin as _0x20a92b,IConfigService as _0x17e3d9}from'@univerjs/core';import{IExchangeOperateService as _0x73b632,UniverExchangeClientPlugin as _0x46964d}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x24708c,getMenuHiddenObservable as _0x1e6c12,RibbonStartGroup as _0x38d31c,IMenuManagerService as _0x3b09ca}from'@univerjs/ui';function _0x3c1e(){const _0x177c7c=['forEach','UNIVER_SHEET','OPERATION','FILE','type','symbol','getOwnPropertyDescriptor','4465980QwTHju','exchange-client.operation.export-xlsx','DirectExportSingle','ExportSingle','_menuManagerService','_commandService','length','_configService','_config','610SVLWjQ','818147JlEaBi','10cCAVJs','3213728RlSVft','initialize','BUTTON','26YmUHVq','181080czjpUo','7574XdSWIg','Ready','exchange.download','720832FwDosv','_initMenus','mergeMenu','disposeWithMe','onReady','271482VCogNH','get','exportXLSXByUnitId','pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.operation.exchange','menu','defineProperty','exchange.file','registerCommand','_injector','88qiIGkS','FolderSingle','exchange.upload','sheets-exchange-client.config','setConfig'];_0x3c1e=function(){return _0x177c7c;};return _0x3c1e();}import{getCurrentRangeDisable$ as _0x7e6d02}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x1534bf}from'@univerjs/sheets';const l={'id':'exchange-client.operation.import-xlsx','type':_0x194cbb[_0x581f38(0x9c)],'handler':async _0x252123=>(_0x252123[_0x581f38(0xbb)](_0x73b632)['importXLSXToUnitId'](),!0x0)},m={'id':_0x581f38(0xa2),'type':_0x194cbb[_0x581f38(0x9c)],'handler':async _0x17c50e=>(_0x17c50e[_0x581f38(0xbb)](_0x73b632)[_0x581f38(0xbc)](),!0x0)},f=_0x581f38(0xbf);function D(_0x1f230e){const _0x46d052=_0x581f38;return{'id':f,'type':_0x24708c['SUBITEMS'],'icon':_0x46d052(0xa3),'tooltip':_0x46d052(0xc2),'hidden$':_0x1e6c12(_0x1f230e,_0x24208e[_0x46d052(0x9b)]),'disabled$':_0x7e6d02(_0x1f230e,{'workbookTypes':[_0x1534bf]})};}function H(){const _0x4156ed=_0x581f38;return{'id':l['id'],'type':_0x24708c['BUTTON'],'title':_0x4156ed(0x97),'icon':_0x4156ed(0xc6)};}function R(){const _0x40c00a=_0x581f38;return{'id':m['id'],'type':_0x24708c[_0x40c00a(0xaf)],'title':_0x40c00a(0xb4),'icon':_0x40c00a(0xa4)};}const G={[_0x38d31c[_0x581f38(0x9d)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object['defineProperty'],$=Object[_0x581f38(0xa0)],j=(_0x4f40ee,_0x48425b,_0x4ce719,_0x2bd44c)=>{for(var _0x23c28d=_0x2bd44c>0x1?void 0x0:_0x2bd44c?$(_0x48425b,_0x4ce719):_0x48425b,_0x47460b=_0x4f40ee['length']-0x1,_0x239b5e;_0x47460b>=0x0;_0x47460b--)(_0x239b5e=_0x4f40ee[_0x47460b])&&(_0x23c28d=(_0x2bd44c?_0x239b5e(_0x48425b,_0x4ce719,_0x23c28d):_0x239b5e(_0x23c28d))||_0x23c28d);return _0x2bd44c&&_0x23c28d&&w(_0x48425b,_0x4ce719,_0x23c28d),_0x23c28d;},u=(_0x322c14,_0x1d42af)=>(_0x5e791a,_0x33eeed)=>_0x1d42af(_0x5e791a,_0x33eeed,_0x322c14);let a=class extends _0x5cd33c{constructor(_0x25b804,_0xd30385){const _0x5b8a18=_0x581f38;super(),this[_0x5b8a18(0xa6)]=_0x25b804,this[_0x5b8a18(0xa5)]=_0xd30385,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){const _0x2b4a0f=_0x581f38;[l,m][_0x2b4a0f(0x9a)](_0x3e5b3e=>{const _0x37feae=_0x2b4a0f;this[_0x37feae(0xb8)](this[_0x37feae(0xa6)][_0x37feae(0xc3)](_0x3e5b3e));});}[_0x581f38(0xb6)](){const _0x3ef420=_0x581f38;this['_menuManagerService'][_0x3ef420(0xb7)](G);}};a=j([_0x275042(_0x225d5c[_0x581f38(0xb3)],a),u(0x0,_0x581f43),u(0x1,_0x3b09ca)],a);const A=_0x581f38(0x98),B={};var E=Object[_0x581f38(0xc1)],z=Object[_0x581f38(0xa0)],V=(_0x2485a9,_0x4090b5,_0x3d862a)=>_0x4090b5 in _0x2485a9?E(_0x2485a9,_0x4090b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d862a}):_0x2485a9[_0x4090b5]=_0x3d862a,W=(_0xd1bccb,_0x21255d,_0x441f64,_0x2305b5)=>{const _0x410a57=_0x581f38;for(var _0x1f3d5f=_0x2305b5>0x1?void 0x0:_0x2305b5?z(_0x21255d,_0x441f64):_0x21255d,_0x16e0ad=_0xd1bccb[_0x410a57(0xa7)]-0x1,_0xebb0f8;_0x16e0ad>=0x0;_0x16e0ad--)(_0xebb0f8=_0xd1bccb[_0x16e0ad])&&(_0x1f3d5f=(_0x2305b5?_0xebb0f8(_0x21255d,_0x441f64,_0x1f3d5f):_0xebb0f8(_0x1f3d5f))||_0x1f3d5f);return _0x2305b5&&_0x1f3d5f&&E(_0x21255d,_0x441f64,_0x1f3d5f),_0x1f3d5f;},d=(_0x84c9df,_0x128b36)=>(_0x3be480,_0x12197a)=>_0x128b36(_0x3be480,_0x12197a,_0x84c9df),S=(_0x573b8d,_0x13f428,_0x1c34b4)=>V(_0x573b8d,typeof _0x13f428!=_0x581f38(0x9f)?_0x13f428+'':_0x13f428,_0x1c34b4);const K=_0x581f38(0xbe);let s=class extends _0x20a92b{constructor(_0x2624af=B,_0x581794,_0x294c1a){const _0x41cd6c=_0x581f38;super(),this[_0x41cd6c(0xa9)]=_0x2624af,this[_0x41cd6c(0xc4)]=_0x581794,this[_0x41cd6c(0xa8)]=_0x294c1a;const {menu:_0x5d934,..._0x4c7bdf}=this['_config'];_0x5d934&&this['_configService'][_0x41cd6c(0x99)](_0x41cd6c(0xc0),_0x5d934,{'merge':!0x0}),this['_configService']['setConfig'](A,_0x4c7bdf);}[_0x581f38(0xae)](){const _0x4f7a14=_0x581f38;[[a]][_0x4f7a14(0x9a)](_0x24cd67=>this[_0x4f7a14(0xc4)]['add'](_0x24cd67));}[_0x581f38(0xb9)](){this['initialize']();}};S(s,_0x581f38(0xbd),K),S(s,_0x581f38(0x9e),_0x24208e[_0x581f38(0x9b)]),s=W([_0x46f74b(_0x46964d),d(0x1,_0xdcc819(_0x20ee8d)),d(0x2,_0x17e3d9)],s);function _0x1edc(_0x2ca440,_0x2ae35a){const _0x3c1edc=_0x3c1e();return _0x1edc=function(_0x1edca0,_0x1cb311){_0x1edca0=_0x1edca0-0x97;let _0x476e67=_0x3c1edc[_0x1edca0];return _0x476e67;},_0x1edc(_0x2ca440,_0x2ae35a);}export{m as ExportXLSXOperation,l as ImportXLSXOperation,s 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};
@@ -6,7 +6,7 @@ export declare class UniverSheetsExchangeClientPlugin extends Plugin {
6
6
  private readonly _configService;
7
7
  static pluginName: string;
8
8
  static type: UniverInstanceType;
9
- constructor(_config: Partial<IUniverSheetsExchangeClientConfig>, _injector: Injector, _configService: IConfigService);
9
+ constructor(_config: Partial<IUniverSheetsExchangeClientConfig> | undefined, _injector: Injector, _configService: IConfigService);
10
10
  initialize(): void;
11
11
  onReady(): void;
12
12
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1e06(){const _0x4be188=['exchange.download','18tEcVHx','_initCommands','setConfig','sheets-exchange-client.operation.exchange','IConfigService','Ready','UniverExchangeClient','ICommandService','ExportXLSXOperation','SUBITEMS','getOwnPropertyDescriptor','sheets-exchange-client.config','@univerjs-pro/exchange-client','@univerjs/sheets','UniverUi','178209eThWLK','exchange.file','importXLSXToUnitId','982144hIwIbX','initialize','getCurrentRangeDisable$','24129CzNkor','pluginName','Injector','BUTTON','disposeWithMe','DirectExportSingle','Plugin','MenuItemType','forEach','mergeMenu','exports','WorkbookExportPermission','UNIVER_SHEET','add','UniverSheetsExchangeClientPlugin','16784iHvWoU','1263700OahTVG','IMenuManagerService','CommandType','type','Disposable','RibbonStartGroup','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverExchangeClientPlugin','92940taqMlN','_commandService','864493RBOvsP','function','UniverSheetsExchangeClient','amd','UniverInstanceType','get','2920nmhUoC','DependentOn','length','@univerjs/sheets-ui','ExportSingle','IExchangeOperateService','FILE','_config','getMenuHiddenObservable','menu','Inject','OPERATION','_configService','UniverCore','@univerjs/ui','_initMenus','object','_injector','@univerjs/core','defineProperty','OnLifecycle'];_0x1e06=function(){return _0x4be188;};return _0x1e06();}function _0x4c1f(_0x29e121,_0x372f46){const _0x1e068b=_0x1e06();return _0x4c1f=function(_0x4c1f90,_0x3e4cf7){_0x4c1f90=_0x4c1f90-0x16b;let _0x1ab252=_0x1e068b[_0x4c1f90];return _0x1ab252;},_0x4c1f(_0x29e121,_0x372f46);}(function(_0x539029,_0x1978df){const _0x24e8a4=_0x4c1f,_0x11af72=_0x539029();while(!![]){try{const _0x415e63=parseInt(_0x24e8a4(0x17e))/0x1+-parseInt(_0x24e8a4(0x193))/0x2+-parseInt(_0x24e8a4(0x19c))/0x3+-parseInt(_0x24e8a4(0x181))/0x4+-parseInt(_0x24e8a4(0x194))/0x5+-parseInt(_0x24e8a4(0x16f))/0x6*(parseInt(_0x24e8a4(0x19e))/0x7)+-parseInt(_0x24e8a4(0x1a4))/0x8*(-parseInt(_0x24e8a4(0x184))/0x9);if(_0x415e63===_0x1978df)break;else _0x11af72['push'](_0x11af72['shift']());}catch(_0x132f25){_0x11af72['push'](_0x11af72['shift']());}}}(_0x1e06,0x3cb35),function(_0xf4ef29,_0x476679){const _0xb8b2d6=_0x4c1f;typeof exports==_0xb8b2d6(0x1b4)&&typeof module<'u'?_0x476679(exports,require(_0xb8b2d6(0x16b)),require(_0xb8b2d6(0x17b)),require(_0xb8b2d6(0x1b2)),require(_0xb8b2d6(0x1a7)),require(_0xb8b2d6(0x17c))):typeof define==_0xb8b2d6(0x19f)&&define[_0xb8b2d6(0x1a1)]?define([_0xb8b2d6(0x18e),_0xb8b2d6(0x16b),_0xb8b2d6(0x17b),_0xb8b2d6(0x1b2),_0xb8b2d6(0x1a7),_0xb8b2d6(0x17c)],_0x476679):(_0xf4ef29=typeof globalThis<'u'?globalThis:_0xf4ef29||self,_0x476679(_0xf4ef29[_0xb8b2d6(0x1a0)]={},_0xf4ef29[_0xb8b2d6(0x1b1)],_0xf4ef29[_0xb8b2d6(0x175)],_0xf4ef29[_0xb8b2d6(0x17d)],_0xf4ef29['UniverSheetsUi'],_0xf4ef29['UniverSheets']));}(this,function(_0x2fd658,_0x14290d,_0x3234ff,_0x19c2a9,_0x467ab7,_0x258d23){'use strict';const _0x1358f9=_0x4c1f;const _0x22718a={'id':'exchange-client.operation.import-xlsx','type':_0x14290d[_0x1358f9(0x196)][_0x1358f9(0x1af)],'handler':async _0x99070e=>(_0x99070e['get'](_0x3234ff[_0x1358f9(0x1a9)])[_0x1358f9(0x180)](),!0x0)},_0x144921={'id':'exchange-client.operation.export-xlsx','type':_0x14290d[_0x1358f9(0x196)][_0x1358f9(0x1af)],'handler':async _0x2748dd=>(_0x2748dd[_0x1358f9(0x1a3)](_0x3234ff['IExchangeOperateService'])['exportXLSXByUnitId'](),!0x0)},_0x573383=_0x1358f9(0x172);function _0x175b9f(_0x49afeb){const _0x47ef5f=_0x1358f9;return{'id':_0x573383,'type':_0x19c2a9[_0x47ef5f(0x18b)][_0x47ef5f(0x178)],'icon':_0x47ef5f(0x189),'tooltip':_0x47ef5f(0x17f),'hidden$':_0x19c2a9[_0x47ef5f(0x1ac)](_0x49afeb,_0x14290d['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0x467ab7[_0x47ef5f(0x183)](_0x49afeb,{'workbookTypes':[_0x258d23[_0x47ef5f(0x18f)]]})};}function _0x2c0cfd(){const _0x42caae=_0x1358f9;return{'id':_0x22718a['id'],'type':_0x19c2a9['MenuItemType'][_0x42caae(0x187)],'title':'exchange.upload','icon':'FolderSingle'};}function _0x59dd27(){const _0x4d9c78=_0x1358f9;return{'id':_0x144921['id'],'type':_0x19c2a9[_0x4d9c78(0x18b)][_0x4d9c78(0x187)],'title':_0x4d9c78(0x16e),'icon':_0x4d9c78(0x1a8)};}const _0x4b9e2c={[_0x19c2a9[_0x1358f9(0x199)][_0x1358f9(0x1aa)]]:{[_0x573383]:{'order':0x4,'menuItemFactory':_0x175b9f,[_0x22718a['id']]:{'order':0x0,'menuItemFactory':_0x2c0cfd},[_0x144921['id']]:{'order':0x1,'menuItemFactory':_0x59dd27}}}};var _0x45269c=Object[_0x1358f9(0x16c)],_0xc934e8=Object[_0x1358f9(0x179)],_0x40a975=(_0x4b5614,_0x44f594,_0x186235,_0x3691ae)=>{const _0xcc6102=_0x1358f9;for(var _0x31742d=_0x3691ae>0x1?void 0x0:_0x3691ae?_0xc934e8(_0x44f594,_0x186235):_0x44f594,_0x1e0ec7=_0x4b5614[_0xcc6102(0x1a6)]-0x1,_0x5654ab;_0x1e0ec7>=0x0;_0x1e0ec7--)(_0x5654ab=_0x4b5614[_0x1e0ec7])&&(_0x31742d=(_0x3691ae?_0x5654ab(_0x44f594,_0x186235,_0x31742d):_0x5654ab(_0x31742d))||_0x31742d);return _0x3691ae&&_0x31742d&&_0x45269c(_0x44f594,_0x186235,_0x31742d),_0x31742d;},_0x1e9628=(_0x41086d,_0xb92c47)=>(_0x46a1d0,_0x43b4c7)=>_0xb92c47(_0x46a1d0,_0x43b4c7,_0x41086d);let _0x22d7a4=class extends _0x14290d[_0x1358f9(0x198)]{constructor(_0x41e4fc,_0x241f98){const _0x2c091a=_0x1358f9;super(),this['_commandService']=_0x41e4fc,this['_menuManagerService']=_0x241f98,this['_initCommands'](),this[_0x2c091a(0x1b3)]();}[_0x1358f9(0x170)](){const _0x7ef8ca=_0x1358f9;[_0x22718a,_0x144921][_0x7ef8ca(0x18c)](_0x14fcd1=>{const _0x529cd6=_0x7ef8ca;this[_0x529cd6(0x188)](this[_0x529cd6(0x19d)]['registerCommand'](_0x14fcd1));});}[_0x1358f9(0x1b3)](){const _0x5d2c22=_0x1358f9;this['_menuManagerService'][_0x5d2c22(0x18d)](_0x4b9e2c);}};_0x22d7a4=_0x40a975([_0x14290d[_0x1358f9(0x16d)](_0x14290d['LifecycleStages'][_0x1358f9(0x174)],_0x22d7a4),_0x1e9628(0x0,_0x14290d[_0x1358f9(0x176)]),_0x1e9628(0x1,_0x19c2a9[_0x1358f9(0x195)])],_0x22d7a4);const _0x36941c=_0x1358f9(0x17a),_0x391676={};var _0x146210=Object[_0x1358f9(0x16c)],_0x303531=Object[_0x1358f9(0x179)],_0x257ff2=(_0x854711,_0x43f41a,_0x5eae3d)=>_0x43f41a in _0x854711?_0x146210(_0x854711,_0x43f41a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eae3d}):_0x854711[_0x43f41a]=_0x5eae3d,_0x5beed9=(_0x4e9a64,_0x4e4812,_0x530cfa,_0x179564)=>{const _0x59bda7=_0x1358f9;for(var _0x39edd8=_0x179564>0x1?void 0x0:_0x179564?_0x303531(_0x4e4812,_0x530cfa):_0x4e4812,_0x2b87b0=_0x4e9a64[_0x59bda7(0x1a6)]-0x1,_0x54628c;_0x2b87b0>=0x0;_0x2b87b0--)(_0x54628c=_0x4e9a64[_0x2b87b0])&&(_0x39edd8=(_0x179564?_0x54628c(_0x4e4812,_0x530cfa,_0x39edd8):_0x54628c(_0x39edd8))||_0x39edd8);return _0x179564&&_0x39edd8&&_0x146210(_0x4e4812,_0x530cfa,_0x39edd8),_0x39edd8;},_0x4c5921=(_0x11fc93,_0x1217d2)=>(_0x4ca3c0,_0x280a2c)=>_0x1217d2(_0x4ca3c0,_0x280a2c,_0x11fc93),_0x31a795=(_0x5649ed,_0x24a24e,_0xa8ded7)=>_0x257ff2(_0x5649ed,typeof _0x24a24e!='symbol'?_0x24a24e+'':_0x24a24e,_0xa8ded7);const _0x4fa512=_0x1358f9(0x19a);_0x2fd658[_0x1358f9(0x192)]=class extends _0x14290d[_0x1358f9(0x18a)]{constructor(_0x196320=_0x391676,_0x491478,_0x41d7b4){const _0x13eaf5=_0x1358f9;super(),this[_0x13eaf5(0x1ab)]=_0x196320,this[_0x13eaf5(0x1b5)]=_0x491478,this[_0x13eaf5(0x1b0)]=_0x41d7b4;const {menu:_0x2a4c77,..._0x45297f}=this[_0x13eaf5(0x1ab)];_0x2a4c77&&this[_0x13eaf5(0x1b0)][_0x13eaf5(0x171)](_0x13eaf5(0x1ad),_0x2a4c77,{'merge':!0x0}),this[_0x13eaf5(0x1b0)]['setConfig'](_0x36941c,_0x45297f);}[_0x1358f9(0x182)](){const _0x4bd92d=_0x1358f9;[[_0x22d7a4]]['forEach'](_0x1903e7=>this['_injector'][_0x4bd92d(0x191)](_0x1903e7));}['onReady'](){this['initialize']();}},_0x31a795(_0x2fd658[_0x1358f9(0x192)],_0x1358f9(0x185),_0x4fa512),_0x31a795(_0x2fd658['UniverSheetsExchangeClientPlugin'],_0x1358f9(0x197),_0x14290d[_0x1358f9(0x1a2)][_0x1358f9(0x190)]),_0x2fd658[_0x1358f9(0x192)]=_0x5beed9([_0x14290d[_0x1358f9(0x1a5)](_0x3234ff[_0x1358f9(0x19b)]),_0x4c5921(0x1,_0x14290d[_0x1358f9(0x1ae)](_0x14290d[_0x1358f9(0x186)])),_0x4c5921(0x2,_0x14290d[_0x1358f9(0x173)])],_0x2fd658[_0x1358f9(0x192)]),_0x2fd658[_0x1358f9(0x177)]=_0x144921,_0x2fd658['ImportXLSXOperation']=_0x22718a,Object['defineProperty'](_0x2fd658,Symbol['toStringTag'],{'value':'Module'});}));
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.12",
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.12",
47
- "@univerjs/sheets": "0.2.12",
48
- "@univerjs/core": "0.2.12",
49
- "@univerjs/sheets-ui": "0.2.12",
50
- "@univerjs/ui": "0.2.12"
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.12",
56
- "@univerjs/sheets": "0.2.12"
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.12",
63
- "@univerjs/shared": "0.2.12",
64
- "@univerjs/core": "0.2.12"
64
+ "@univerjs-infra/shared": "0.2.13"
65
65
  },
66
66
  "univerSpace": {
67
67
  ".": {