@univerjs-pro/sheets-exchange-client 0.2.12 → 0.2.14

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 _0x1aba57=_0x36ee;(function(_0x23ddcf,_0x53032d){const _0x3f0dd7=_0x36ee,_0x4ac138=_0x23ddcf();while(!![]){try{const _0x3f9044=-parseInt(_0x3f0dd7(0xb4))/0x1*(parseInt(_0x3f0dd7(0xb9))/0x2)+-parseInt(_0x3f0dd7(0x8c))/0x3+parseInt(_0x3f0dd7(0x7a))/0x4+-parseInt(_0x3f0dd7(0xa3))/0x5*(parseInt(_0x3f0dd7(0x86))/0x6)+-parseInt(_0x3f0dd7(0xaf))/0x7+-parseInt(_0x3f0dd7(0x84))/0x8+parseInt(_0x3f0dd7(0x7d))/0x9;if(_0x3f9044===_0x53032d)break;else _0x4ac138['push'](_0x4ac138['shift']());}catch(_0x105446){_0x4ac138['push'](_0x4ac138['shift']());}}}(_0x321d,0x7347a));Object['defineProperty'](exports,Symbol[_0x1aba57(0xad)],{'value':_0x1aba57(0xba)});const o=require(_0x1aba57(0x8b)),g=require('@univerjs-pro/exchange-client'),s=require(_0x1aba57(0xb6)),E=require('@univerjs/sheets-ui'),v=require(_0x1aba57(0x7e)),u={'id':_0x1aba57(0xae),'type':o[_0x1aba57(0x97)][_0x1aba57(0x9d)],'handler':async _0x204dd1=>(_0x204dd1[_0x1aba57(0xbd)](g[_0x1aba57(0x8f)])[_0x1aba57(0xbb)](),!0x0)},p={'id':_0x1aba57(0x87),'type':o[_0x1aba57(0x97)][_0x1aba57(0x9d)],'handler':async _0x373d27=>(_0x373d27[_0x1aba57(0xbd)](g[_0x1aba57(0x8f)])[_0x1aba57(0x9c)](),!0x0)},m=_0x1aba57(0xb5);function I(_0x16d087){const _0x391eb7=_0x1aba57;return{'id':m,'type':s['MenuItemType'][_0x391eb7(0x88)],'icon':'DirectExportSingle','tooltip':_0x391eb7(0x89),'hidden$':s[_0x391eb7(0x80)](_0x16d087,o[_0x391eb7(0x9f)]['UNIVER_SHEET']),'disabled$':E[_0x391eb7(0xa4)](_0x16d087,{'workbookTypes':[v[_0x391eb7(0x90)]]})};}function f(){const _0x433fc3=_0x1aba57;return{'id':u['id'],'type':s[_0x433fc3(0xa7)]['BUTTON'],'title':_0x433fc3(0xa5),'icon':'FolderSingle'};}function x(){const _0x457769=_0x1aba57;return{'id':p['id'],'type':s['MenuItemType'][_0x457769(0x7c)],'title':_0x457769(0x8d),'icon':_0x457769(0x9a)};}const C={[s[_0x1aba57(0x8e)]['FILE']]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x1aba57(0x9b)],P=Object['getOwnPropertyDescriptor'],O=(_0x34ab75,_0x88cce,_0x106255,_0x1eea16)=>{const _0x78ef41=_0x1aba57;for(var _0x41ae85=_0x1eea16>0x1?void 0x0:_0x1eea16?P(_0x88cce,_0x106255):_0x88cce,_0xbd1748=_0x34ab75[_0x78ef41(0xa2)]-0x1,_0x9f8754;_0xbd1748>=0x0;_0xbd1748--)(_0x9f8754=_0x34ab75[_0xbd1748])&&(_0x41ae85=(_0x1eea16?_0x9f8754(_0x88cce,_0x106255,_0x41ae85):_0x9f8754(_0x41ae85))||_0x41ae85);return _0x1eea16&&_0x41ae85&&y(_0x88cce,_0x106255,_0x41ae85),_0x41ae85;},h=(_0x497757,_0x3e6b04)=>(_0x157e47,_0x10429f)=>_0x3e6b04(_0x157e47,_0x10429f,_0x497757);function _0x36ee(_0x40cfba,_0x19d559){const _0x321dbb=_0x321d();return _0x36ee=function(_0x36eef0,_0x387ce3){_0x36eef0=_0x36eef0-0x79;let _0x219bdb=_0x321dbb[_0x36eef0];return _0x219bdb;},_0x36ee(_0x40cfba,_0x19d559);}let l=class extends o[_0x1aba57(0xb3)]{constructor(_0x33380b,_0x339b57){const _0x3a55f3=_0x1aba57;super(),this[_0x3a55f3(0xaa)]=_0x33380b,this['_menuManagerService']=_0x339b57,this[_0x3a55f3(0x93)](),this[_0x3a55f3(0xac)]();}[_0x1aba57(0x93)](){[u,p]['forEach'](_0x5a55ed=>{const _0x1fa8d9=_0x36ee;this[_0x1fa8d9(0xb7)](this[_0x1fa8d9(0xaa)][_0x1fa8d9(0x98)](_0x5a55ed));});}['_initMenus'](){const _0x32107e=_0x1aba57;this['_menuManagerService'][_0x32107e(0xa0)](C);}};l=O([o[_0x1aba57(0xb8)](o[_0x1aba57(0x79)][_0x1aba57(0xb0)],l),h(0x0,o[_0x1aba57(0xa1)]),h(0x1,s['IMenuManagerService'])],l);function _0x321d(){const _0x5e2c3e=['registerCommand','Injector','ExportSingle','defineProperty','exportXLSXByUnitId','OPERATION','add','UniverInstanceType','mergeMenu','ICommandService','length','20hSIuvG','getCurrentRangeDisable$','exchange.upload','sheets-exchange-client.config','MenuItemType','Inject','Plugin','_commandService','symbol','_initMenus','toStringTag','exchange-client.operation.import-xlsx','4318636iAmEDS','Ready','setConfig','UniverExchangeClientPlugin','Disposable','9EpoPEA','sheets-exchange-client.operation.exchange','@univerjs/ui','disposeWithMe','OnLifecycle','2500ALpmzV','Module','importXLSXToUnitId','UniverSheetsExchangeClientPlugin','get','LifecycleStages','1916324Qkynfn','menu','BUTTON','11787966bgNJmp','@univerjs/sheets','ExportXLSXOperation','getMenuHiddenObservable','_config','_configService','UNIVER_SHEET','3002640LrNGKI','_injector','214320rFLdWW','exchange-client.operation.export-xlsx','SUBITEMS','exchange.file','IConfigService','@univerjs/core','510783EzxfNl','exchange.download','RibbonStartGroup','IExchangeOperateService','WorkbookExportPermission','type','SHEET_EXCHANGE_CLIENT_PLUGIN','_initCommands','forEach','onReady','initialize','CommandType'];_0x321d=function(){return _0x5e2c3e;};return _0x321d();}const T=_0x1aba57(0xa6),U={};var S=Object[_0x1aba57(0x9b)],X=Object['getOwnPropertyDescriptor'],b=(_0x30b7d5,_0x473e10,_0x595b3e)=>_0x473e10 in _0x30b7d5?S(_0x30b7d5,_0x473e10,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x595b3e}):_0x30b7d5[_0x473e10]=_0x595b3e,N=(_0x26d0c0,_0x10b54f,_0x167fae,_0x11f1ad)=>{const _0x3a4e78=_0x1aba57;for(var _0x127ff6=_0x11f1ad>0x1?void 0x0:_0x11f1ad?X(_0x10b54f,_0x167fae):_0x10b54f,_0x1bb604=_0x26d0c0[_0x3a4e78(0xa2)]-0x1,_0x33b748;_0x1bb604>=0x0;_0x1bb604--)(_0x33b748=_0x26d0c0[_0x1bb604])&&(_0x127ff6=(_0x11f1ad?_0x33b748(_0x10b54f,_0x167fae,_0x127ff6):_0x33b748(_0x127ff6))||_0x127ff6);return _0x11f1ad&&_0x127ff6&&S(_0x10b54f,_0x167fae,_0x127ff6),_0x127ff6;},d=(_0x3c432d,_0x57c87a)=>(_0x47eafd,_0x41c33d)=>_0x57c87a(_0x47eafd,_0x41c33d,_0x3c432d),_=(_0x2a4b66,_0x1031ba,_0x372252)=>b(_0x2a4b66,typeof _0x1031ba!=_0x1aba57(0xab)?_0x1031ba+'':_0x1031ba,_0x372252);const M=_0x1aba57(0x92);exports['UniverSheetsExchangeClientPlugin']=class extends o[_0x1aba57(0xa9)]{constructor(_0x3031fc=U,_0x32d7cc,_0x97873a){const _0x8e052=_0x1aba57;super(),this[_0x8e052(0x81)]=_0x3031fc,this[_0x8e052(0x85)]=_0x32d7cc,this[_0x8e052(0x82)]=_0x97873a;const {menu:_0x1a1837,..._0x2d39cc}=this[_0x8e052(0x81)];_0x1a1837&&this[_0x8e052(0x82)][_0x8e052(0xb1)](_0x8e052(0x7b),_0x1a1837,{'merge':!0x0}),this['_configService'][_0x8e052(0xb1)](T,_0x2d39cc);}['initialize'](){const _0xe5a468=_0x1aba57;[[l]][_0xe5a468(0x94)](_0x53e09f=>this[_0xe5a468(0x85)][_0xe5a468(0x9e)](_0x53e09f));}[_0x1aba57(0x95)](){const _0x2b64f1=_0x1aba57;this[_0x2b64f1(0x96)]();}},_(exports['UniverSheetsExchangeClientPlugin'],'pluginName',M),_(exports['UniverSheetsExchangeClientPlugin'],_0x1aba57(0x91),o[_0x1aba57(0x9f)][_0x1aba57(0x83)]),exports[_0x1aba57(0xbc)]=N([o['DependentOn'](g[_0x1aba57(0xb2)]),d(0x1,o[_0x1aba57(0xa8)](o[_0x1aba57(0x99)])),d(0x2,o[_0x1aba57(0x8a)])],exports[_0x1aba57(0xbc)]),exports[_0x1aba57(0x7f)]=p,exports['ImportXLSXOperation']=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
+ const _0x5dc509=_0x3c3f;(function(_0x200d3f,_0x5bd84b){const _0x3fc5ad=_0x3c3f,_0x3d7405=_0x200d3f();while(!![]){try{const _0x31d001=-parseInt(_0x3fc5ad(0x1be))/0x1+parseInt(_0x3fc5ad(0x1bc))/0x2*(parseInt(_0x3fc5ad(0x1a5))/0x3)+parseInt(_0x3fc5ad(0x1a8))/0x4*(-parseInt(_0x3fc5ad(0x1a0))/0x5)+-parseInt(_0x3fc5ad(0x1bb))/0x6+-parseInt(_0x3fc5ad(0x1af))/0x7+-parseInt(_0x3fc5ad(0x1a2))/0x8*(-parseInt(_0x3fc5ad(0x1c8))/0x9)+parseInt(_0x3fc5ad(0x1bd))/0xa;if(_0x31d001===_0x5bd84b)break;else _0x3d7405['push'](_0x3d7405['shift']());}catch(_0x274338){_0x3d7405['push'](_0x3d7405['shift']());}}}(_0x581f,0xaeb75));import{CommandType as _0xeca57a,UniverInstanceType as _0x1c2326,OnLifecycle as _0x1a4caa,LifecycleStages as _0x1ea9d5,Disposable as _0x48349c,ICommandService as _0x1c1fdf,DependentOn as _0x32bc78,Inject as _0x2ac293,Injector as _0x5093e4,Plugin as _0x16bad0,IConfigService as _0x38e5bc}from'@univerjs/core';import{IExchangeOperateService as _0x4cff10,UniverExchangeClientPlugin as _0x3f783d}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x24161b,getMenuHiddenObservable as _0x35cbbf,RibbonStartGroup as _0x4bdb75,IMenuManagerService as _0x1cf154}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x1e1567}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x54ab78}from'@univerjs/sheets';const l={'id':_0x5dc509(0x1c6),'type':_0xeca57a['OPERATION'],'handler':async _0x27415e=>(_0x27415e[_0x5dc509(0x1a9)](_0x4cff10)[_0x5dc509(0x1ac)](),!0x0)},m={'id':_0x5dc509(0x1a6),'type':_0xeca57a['OPERATION'],'handler':async _0x53d94e=>(_0x53d94e[_0x5dc509(0x1a9)](_0x4cff10)[_0x5dc509(0x1ab)](),!0x0)},f=_0x5dc509(0x1b0);function D(_0x3def31){const _0x51d0a4=_0x5dc509;return{'id':f,'type':_0x24161b[_0x51d0a4(0x1c3)],'icon':_0x51d0a4(0x1a3),'tooltip':_0x51d0a4(0x1aa),'hidden$':_0x35cbbf(_0x3def31,_0x1c2326['UNIVER_SHEET']),'disabled$':_0x1e1567(_0x3def31,{'workbookTypes':[_0x54ab78]})};}function H(){const _0x1c29b6=_0x5dc509;return{'id':l['id'],'type':_0x24161b[_0x1c29b6(0x1b1)],'title':_0x1c29b6(0x19f),'icon':_0x1c29b6(0x1ba)};}function R(){const _0x364854=_0x5dc509;return{'id':m['id'],'type':_0x24161b[_0x364854(0x1b1)],'title':_0x364854(0x1b7),'icon':'ExportSingle'};}const G={[_0x4bdb75[_0x5dc509(0x1b2)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object[_0x5dc509(0x19d)],$=Object[_0x5dc509(0x1c2)],j=(_0x1f7776,_0x1b7969,_0x463777,_0x19ce5f)=>{const _0x21ca22=_0x5dc509;for(var _0x54ebea=_0x19ce5f>0x1?void 0x0:_0x19ce5f?$(_0x1b7969,_0x463777):_0x1b7969,_0x26e096=_0x1f7776[_0x21ca22(0x1c0)]-0x1,_0x5014e5;_0x26e096>=0x0;_0x26e096--)(_0x5014e5=_0x1f7776[_0x26e096])&&(_0x54ebea=(_0x19ce5f?_0x5014e5(_0x1b7969,_0x463777,_0x54ebea):_0x5014e5(_0x54ebea))||_0x54ebea);return _0x19ce5f&&_0x54ebea&&w(_0x1b7969,_0x463777,_0x54ebea),_0x54ebea;},u=(_0x455f7e,_0x36797e)=>(_0x1fc1c5,_0x2a4402)=>_0x36797e(_0x1fc1c5,_0x2a4402,_0x455f7e);function _0x581f(){const _0x13c1a1=['7895796EiotDs','26926OhcAFB','19150540CdHmnG','1201149YnKyuh','pluginName','length','initialize','getOwnPropertyDescriptor','SUBITEMS','_initCommands','_configService','exchange-client.operation.import-xlsx','add','2070891pNKDqK','onReady','_injector','defineProperty','_config','exchange.upload','85Fjjtnp','SHEET_EXCHANGE_CLIENT_PLUGIN','24VnORGS','DirectExportSingle','Ready','282HUdRMh','exchange-client.operation.export-xlsx','_menuManagerService','69352VtTzDc','get','exchange.file','exportXLSXByUnitId','importXLSXToUnitId','_initMenus','UNIVER_SHEET','2403625rEqvvj','sheets-exchange-client.operation.exchange','BUTTON','FILE','symbol','forEach','registerCommand','mergeMenu','exchange.download','setConfig','type','FolderSingle'];_0x581f=function(){return _0x13c1a1;};return _0x581f();}let a=class extends _0x48349c{constructor(_0x50e4a8,_0x5e174b){const _0x15d517=_0x5dc509;super(),this['_commandService']=_0x50e4a8,this[_0x15d517(0x1a7)]=_0x5e174b,this[_0x15d517(0x1c4)](),this[_0x15d517(0x1ad)]();}['_initCommands'](){const _0x2c87a9=_0x5dc509;[l,m][_0x2c87a9(0x1b4)](_0x361bd5=>{const _0x5e2e9c=_0x2c87a9;this['disposeWithMe'](this['_commandService'][_0x5e2e9c(0x1b5)](_0x361bd5));});}['_initMenus'](){const _0x124701=_0x5dc509;this['_menuManagerService'][_0x124701(0x1b6)](G);}};a=j([_0x1a4caa(_0x1ea9d5[_0x5dc509(0x1a4)],a),u(0x0,_0x1c1fdf),u(0x1,_0x1cf154)],a);const A='sheets-exchange-client.config',B={};function _0x3c3f(_0x32cd7e,_0xc55065){const _0x581f98=_0x581f();return _0x3c3f=function(_0x3c3f1b,_0x3d9da1){_0x3c3f1b=_0x3c3f1b-0x19c;let _0x5d4ece=_0x581f98[_0x3c3f1b];return _0x5d4ece;},_0x3c3f(_0x32cd7e,_0xc55065);}var E=Object[_0x5dc509(0x19d)],z=Object['getOwnPropertyDescriptor'],V=(_0x13e151,_0x1d0928,_0x30fe7b)=>_0x1d0928 in _0x13e151?E(_0x13e151,_0x1d0928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30fe7b}):_0x13e151[_0x1d0928]=_0x30fe7b,W=(_0x5606b7,_0x317617,_0x297257,_0x2f511f)=>{const _0x336ebd=_0x5dc509;for(var _0x73a834=_0x2f511f>0x1?void 0x0:_0x2f511f?z(_0x317617,_0x297257):_0x317617,_0x96bc0a=_0x5606b7[_0x336ebd(0x1c0)]-0x1,_0x3e2657;_0x96bc0a>=0x0;_0x96bc0a--)(_0x3e2657=_0x5606b7[_0x96bc0a])&&(_0x73a834=(_0x2f511f?_0x3e2657(_0x317617,_0x297257,_0x73a834):_0x3e2657(_0x73a834))||_0x73a834);return _0x2f511f&&_0x73a834&&E(_0x317617,_0x297257,_0x73a834),_0x73a834;},d=(_0x247036,_0x29796b)=>(_0x490a29,_0x3e19a9)=>_0x29796b(_0x490a29,_0x3e19a9,_0x247036),S=(_0x14e352,_0x3b1720,_0xd14eb6)=>V(_0x14e352,typeof _0x3b1720!=_0x5dc509(0x1b3)?_0x3b1720+'':_0x3b1720,_0xd14eb6);const K=_0x5dc509(0x1a1);let s=class extends _0x16bad0{constructor(_0x3e6f56=B,_0x19ee96,_0x2b9f90){const _0x2e8e24=_0x5dc509;super(),this[_0x2e8e24(0x19e)]=_0x3e6f56,this[_0x2e8e24(0x19c)]=_0x19ee96,this['_configService']=_0x2b9f90;const {menu:_0x3d6f29,..._0x55676d}=this['_config'];_0x3d6f29&&this[_0x2e8e24(0x1c5)][_0x2e8e24(0x1b8)]('menu',_0x3d6f29,{'merge':!0x0}),this[_0x2e8e24(0x1c5)][_0x2e8e24(0x1b8)](A,_0x55676d);}[_0x5dc509(0x1c1)](){const _0x353376=_0x5dc509;[[a]]['forEach'](_0x3a1ae1=>this[_0x353376(0x19c)][_0x353376(0x1c7)](_0x3a1ae1));}[_0x5dc509(0x1c9)](){const _0x39871c=_0x5dc509;this[_0x39871c(0x1c1)]();}};S(s,_0x5dc509(0x1bf),K),S(s,_0x5dc509(0x1b9),_0x1c2326[_0x5dc509(0x1ae)]),s=W([_0x32bc78(_0x3f783d),d(0x1,_0x2ac293(_0x5093e4)),d(0x2,_0x38e5bc)],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 _0x4abe(_0x5f2428,_0x14271d){const _0x96cafa=_0x96ca();return _0x4abe=function(_0x4abec8,_0xbfcd77){_0x4abec8=_0x4abec8-0xf4;let _0x59507e=_0x96cafa[_0x4abec8];return _0x59507e;},_0x4abe(_0x5f2428,_0x14271d);}(function(_0x2252a8,_0x4d4f12){const _0x16bb87=_0x4abe,_0x1f0c8e=_0x2252a8();while(!![]){try{const _0x155a27=-parseInt(_0x16bb87(0x120))/0x1+parseInt(_0x16bb87(0x125))/0x2*(-parseInt(_0x16bb87(0xff))/0x3)+parseInt(_0x16bb87(0x11f))/0x4*(-parseInt(_0x16bb87(0xfe))/0x5)+parseInt(_0x16bb87(0x128))/0x6*(parseInt(_0x16bb87(0x138))/0x7)+-parseInt(_0x16bb87(0x115))/0x8+-parseInt(_0x16bb87(0x135))/0x9*(-parseInt(_0x16bb87(0x117))/0xa)+parseInt(_0x16bb87(0x11c))/0xb*(parseInt(_0x16bb87(0x13a))/0xc);if(_0x155a27===_0x4d4f12)break;else _0x1f0c8e['push'](_0x1f0c8e['shift']());}catch(_0x21df36){_0x1f0c8e['push'](_0x1f0c8e['shift']());}}}(_0x96ca,0x22376),function(_0x2b8b5b,_0x34089d){const _0x229dde=_0x4abe;typeof exports==_0x229dde(0x129)&&typeof module<'u'?_0x34089d(exports,require(_0x229dde(0x13b)),require(_0x229dde(0x140)),require(_0x229dde(0xfc)),require(_0x229dde(0x133)),require(_0x229dde(0x104))):typeof define==_0x229dde(0x100)&&define[_0x229dde(0x11b)]?define([_0x229dde(0x139),_0x229dde(0x13b),_0x229dde(0x140),_0x229dde(0xfc),_0x229dde(0x133),_0x229dde(0x104)],_0x34089d):(_0x2b8b5b=typeof globalThis<'u'?globalThis:_0x2b8b5b||self,_0x34089d(_0x2b8b5b['UniverSheetsExchangeClient']={},_0x2b8b5b[_0x229dde(0x137)],_0x2b8b5b[_0x229dde(0x144)],_0x2b8b5b[_0x229dde(0x12e)],_0x2b8b5b[_0x229dde(0x106)],_0x2b8b5b[_0x229dde(0x102)]));}(this,function(_0x4acf7a,_0x13dbcd,_0x4d0f82,_0x55d020,_0x2393ff,_0x227a5f){'use strict';const _0x1e6bed=_0x4abe;const _0x5d7814={'id':_0x1e6bed(0x11a),'type':_0x13dbcd['CommandType']['OPERATION'],'handler':async _0x1797ff=>(_0x1797ff[_0x1e6bed(0x13e)](_0x4d0f82['IExchangeOperateService'])[_0x1e6bed(0xf4)](),!0x0)},_0x3e25de={'id':_0x1e6bed(0x12d),'type':_0x13dbcd[_0x1e6bed(0x122)][_0x1e6bed(0x142)],'handler':async _0x515f37=>(_0x515f37[_0x1e6bed(0x13e)](_0x4d0f82[_0x1e6bed(0xfa)])['exportXLSXByUnitId'](),!0x0)},_0x59991d=_0x1e6bed(0x119);function _0x18141f(_0x10a6a0){const _0x5c14cc=_0x1e6bed;return{'id':_0x59991d,'type':_0x55d020[_0x5c14cc(0x141)][_0x5c14cc(0x10e)],'icon':_0x5c14cc(0x10a),'tooltip':'exchange.file','hidden$':_0x55d020['getMenuHiddenObservable'](_0x10a6a0,_0x13dbcd[_0x5c14cc(0x10d)][_0x5c14cc(0xf8)]),'disabled$':_0x2393ff[_0x5c14cc(0x132)](_0x10a6a0,{'workbookTypes':[_0x227a5f[_0x5c14cc(0x111)]]})};}function _0x358701(){const _0x500a14=_0x1e6bed;return{'id':_0x5d7814['id'],'type':_0x55d020[_0x500a14(0x141)]['BUTTON'],'title':_0x500a14(0x113),'icon':_0x500a14(0x10b)};}function _0x4ea0aa(){const _0x22e2ba=_0x1e6bed;return{'id':_0x3e25de['id'],'type':_0x55d020[_0x22e2ba(0x141)]['BUTTON'],'title':_0x22e2ba(0x103),'icon':_0x22e2ba(0x121)};}const _0x2ec070={[_0x55d020[_0x1e6bed(0xfd)][_0x1e6bed(0x109)]]:{[_0x59991d]:{'order':0x4,'menuItemFactory':_0x18141f,[_0x5d7814['id']]:{'order':0x0,'menuItemFactory':_0x358701},[_0x3e25de['id']]:{'order':0x1,'menuItemFactory':_0x4ea0aa}}}};var _0xeeceeb=Object[_0x1e6bed(0x131)],_0x28cc32=Object[_0x1e6bed(0x11d)],_0x18cefd=(_0xcba543,_0x234fb3,_0x39d80e,_0x499e7b)=>{const _0xe77aae=_0x1e6bed;for(var _0x13d994=_0x499e7b>0x1?void 0x0:_0x499e7b?_0x28cc32(_0x234fb3,_0x39d80e):_0x234fb3,_0x15c757=_0xcba543[_0xe77aae(0xf7)]-0x1,_0x373d7e;_0x15c757>=0x0;_0x15c757--)(_0x373d7e=_0xcba543[_0x15c757])&&(_0x13d994=(_0x499e7b?_0x373d7e(_0x234fb3,_0x39d80e,_0x13d994):_0x373d7e(_0x13d994))||_0x13d994);return _0x499e7b&&_0x13d994&&_0xeeceeb(_0x234fb3,_0x39d80e,_0x13d994),_0x13d994;},_0x39b2c5=(_0x3df92e,_0x205023)=>(_0x31b76b,_0xda642e)=>_0x205023(_0x31b76b,_0xda642e,_0x3df92e);let _0x47f3e9=class extends _0x13dbcd[_0x1e6bed(0x123)]{constructor(_0x43ce32,_0x1b7366){const _0x2b240b=_0x1e6bed;super(),this[_0x2b240b(0x116)]=_0x43ce32,this[_0x2b240b(0xf5)]=_0x1b7366,this[_0x2b240b(0x12b)](),this['_initMenus']();}[_0x1e6bed(0x12b)](){[_0x5d7814,_0x3e25de]['forEach'](_0x59367a=>{const _0x391d03=_0x4abe;this[_0x391d03(0x11e)](this[_0x391d03(0x116)][_0x391d03(0x114)](_0x59367a));});}['_initMenus'](){const _0x3bb2ba=_0x1e6bed;this['_menuManagerService'][_0x3bb2ba(0x143)](_0x2ec070);}};_0x47f3e9=_0x18cefd([_0x13dbcd[_0x1e6bed(0x101)](_0x13dbcd['LifecycleStages'][_0x1e6bed(0x112)],_0x47f3e9),_0x39b2c5(0x0,_0x13dbcd[_0x1e6bed(0x12c)]),_0x39b2c5(0x1,_0x55d020['IMenuManagerService'])],_0x47f3e9);const _0x1cef12=_0x1e6bed(0x108),_0x4b66aa={};var _0x352eb4=Object[_0x1e6bed(0x131)],_0x11f091=Object[_0x1e6bed(0x11d)],_0x2978c7=(_0x22eb2a,_0x317f27,_0x123e0f)=>_0x317f27 in _0x22eb2a?_0x352eb4(_0x22eb2a,_0x317f27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x123e0f}):_0x22eb2a[_0x317f27]=_0x123e0f,_0x39e730=(_0x566b6e,_0x422fbc,_0x37e8bd,_0x1698ee)=>{for(var _0x5a1534=_0x1698ee>0x1?void 0x0:_0x1698ee?_0x11f091(_0x422fbc,_0x37e8bd):_0x422fbc,_0x57fbc9=_0x566b6e['length']-0x1,_0x3fbc85;_0x57fbc9>=0x0;_0x57fbc9--)(_0x3fbc85=_0x566b6e[_0x57fbc9])&&(_0x5a1534=(_0x1698ee?_0x3fbc85(_0x422fbc,_0x37e8bd,_0x5a1534):_0x3fbc85(_0x5a1534))||_0x5a1534);return _0x1698ee&&_0x5a1534&&_0x352eb4(_0x422fbc,_0x37e8bd,_0x5a1534),_0x5a1534;},_0x51f15f=(_0x40170d,_0x33b6fe)=>(_0x315bf3,_0x5cf612)=>_0x33b6fe(_0x315bf3,_0x5cf612,_0x40170d),_0x5689db=(_0x302e77,_0x50ab36,_0x390aa2)=>_0x2978c7(_0x302e77,typeof _0x50ab36!=_0x1e6bed(0x12f)?_0x50ab36+'':_0x50ab36,_0x390aa2);const _0x30b3d9='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x4acf7a[_0x1e6bed(0x130)]=class extends _0x13dbcd[_0x1e6bed(0x118)]{constructor(_0x1e7926=_0x4b66aa,_0x3ea3d2,_0x4563e9){const _0x4aa184=_0x1e6bed;super(),this[_0x4aa184(0x127)]=_0x1e7926,this[_0x4aa184(0x12a)]=_0x3ea3d2,this[_0x4aa184(0x13c)]=_0x4563e9;const {menu:_0x2c7f20,..._0x4a5213}=this[_0x4aa184(0x127)];_0x2c7f20&&this[_0x4aa184(0x13c)][_0x4aa184(0x13d)](_0x4aa184(0x134),_0x2c7f20,{'merge':!0x0}),this[_0x4aa184(0x13c)]['setConfig'](_0x1cef12,_0x4a5213);}['initialize'](){const _0x459e65=_0x1e6bed;[[_0x47f3e9]][_0x459e65(0x136)](_0x426c51=>this['_injector'][_0x459e65(0x105)](_0x426c51));}[_0x1e6bed(0x107)](){const _0x3e3797=_0x1e6bed;this[_0x3e3797(0x10f)]();}},_0x5689db(_0x4acf7a[_0x1e6bed(0x130)],_0x1e6bed(0xf9),_0x30b3d9),_0x5689db(_0x4acf7a[_0x1e6bed(0x130)],_0x1e6bed(0xfb),_0x13dbcd[_0x1e6bed(0x10d)]['UNIVER_SHEET']),_0x4acf7a['UniverSheetsExchangeClientPlugin']=_0x39e730([_0x13dbcd['DependentOn'](_0x4d0f82[_0x1e6bed(0x10c)]),_0x51f15f(0x1,_0x13dbcd[_0x1e6bed(0x126)](_0x13dbcd[_0x1e6bed(0x110)])),_0x51f15f(0x2,_0x13dbcd['IConfigService'])],_0x4acf7a[_0x1e6bed(0x130)]),_0x4acf7a[_0x1e6bed(0xf6)]=_0x3e25de,_0x4acf7a[_0x1e6bed(0x124)]=_0x5d7814,Object[_0x1e6bed(0x131)](_0x4acf7a,Symbol[_0x1e6bed(0x13f)],{'value':'Module'});}));function _0x96ca(){const _0x156c60=['forEach','UniverCore','1942535XqrULa','exports','1451328ZuABzX','@univerjs/core','_configService','setConfig','get','toStringTag','@univerjs-pro/exchange-client','MenuItemType','OPERATION','mergeMenu','UniverExchangeClient','importXLSXToUnitId','_menuManagerService','ExportXLSXOperation','length','UNIVER_SHEET','pluginName','IExchangeOperateService','type','@univerjs/ui','RibbonStartGroup','15WXXgKH','3xCSdpQ','function','OnLifecycle','UniverSheets','exchange.download','@univerjs/sheets','add','UniverSheetsUi','onReady','sheets-exchange-client.config','FILE','DirectExportSingle','FolderSingle','UniverExchangeClientPlugin','UniverInstanceType','SUBITEMS','initialize','Injector','WorkbookExportPermission','Ready','exchange.upload','registerCommand','154144ligKTn','_commandService','60360wjdFiv','Plugin','sheets-exchange-client.operation.exchange','exchange-client.operation.import-xlsx','amd','11tUNHqo','getOwnPropertyDescriptor','disposeWithMe','16964AsgeDP','185071uIRCBd','ExportSingle','CommandType','Disposable','ImportXLSXOperation','323914CzRGWB','Inject','_config','6qUKYnq','object','_injector','_initCommands','ICommandService','exchange-client.operation.export-xlsx','UniverUi','symbol','UniverSheetsExchangeClientPlugin','defineProperty','getCurrentRangeDisable$','@univerjs/sheets-ui','menu','180htBzzh'];_0x96ca=function(){return _0x156c60;};return _0x96ca();}
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.14",
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.14",
47
+ "@univerjs/sheets": "0.2.14",
48
+ "@univerjs/core": "0.2.14",
49
+ "@univerjs/sheets-ui": "0.2.14",
50
+ "@univerjs/ui": "0.2.14"
51
51
  },
52
52
  "dependencies": {
53
- "@univerjs/icons": "^0.1.72",
54
- "@univerjs/protocol": "0.1.39-alpha.15",
55
- "@univerjs/sheets-ui": "0.2.12",
56
- "@univerjs/sheets": "0.2.12"
53
+ "@univerjs/icons": "^0.1.78",
54
+ "@univerjs-pro/exchange-client": "0.2.14",
55
+ "@univerjs/core": "0.2.14",
56
+ "@univerjs/sheets": "0.2.14",
57
+ "@univerjs/sheets-ui": "0.2.14",
58
+ "@univerjs/protocol": "0.1.39-alpha.15"
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.14"
65
65
  },
66
66
  "univerSpace": {
67
67
  ".": {