@univerjs-pro/sheets-exchange-client 0.2.15 → 0.3.0-alpha.1

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 _0x502a62=_0x5220;(function(_0x18d592,_0x1fd70f){const _0x9ca8eb=_0x5220,_0xec4f5=_0x18d592();while(!![]){try{const _0x2976f4=parseInt(_0x9ca8eb(0x1b1))/0x1+-parseInt(_0x9ca8eb(0x1a7))/0x2*(-parseInt(_0x9ca8eb(0x1d8))/0x3)+-parseInt(_0x9ca8eb(0x1d5))/0x4*(-parseInt(_0x9ca8eb(0x1d1))/0x5)+-parseInt(_0x9ca8eb(0x19a))/0x6+-parseInt(_0x9ca8eb(0x1cc))/0x7+-parseInt(_0x9ca8eb(0x1c7))/0x8+parseInt(_0x9ca8eb(0x1a3))/0x9;if(_0x2976f4===_0x1fd70f)break;else _0xec4f5['push'](_0xec4f5['shift']());}catch(_0x55519b){_0xec4f5['push'](_0xec4f5['shift']());}}}(_0x4aa3,0xaffbb));function _0x4aa3(){const _0x3f6d1f=['mergeMenu','ICommandService','sheets-exchange-client.operation.exchange','2069554hTxxLs','onReady','_configService','exchange.file','registerCommand','FolderSingle','forEach','@univerjs/sheets','symbol','_initMenus','1260772boAgBs','Inject','@univerjs/sheets-ui','IConfigService','_menuManagerService','_initCommands','exchange.download','getOwnPropertyDescriptor','IMenuManagerService','exportXLSXByUnitId','type','IExchangeOperateService','get','@univerjs-pro/exchange-client','initialize','OPERATION','Plugin','UniverExchangeClientPlugin','setConfig','CommandType','defineProperty','_injector','7387208SsCHLM','LifecycleStages','Module','pluginName','_commandService','9970569yQOLuO','toStringTag','exchange-client.operation.export-xlsx','ExportSingle','BUTTON','2479025auLkvA','getCurrentRangeDisable$','UNIVER_SHEET','length','8bzbfyT','Injector','add','3MXYpDO','DirectExportSingle','Disposable','MenuItemType','4969842WrtTtb','_config','OnLifecycle','UniverSheetsExchangeClientPlugin','Ready','ImportXLSXOperation','importXLSXToUnitId','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','5487687JjLTkt'];_0x4aa3=function(){return _0x3f6d1f;};return _0x4aa3();}Object[_0x502a62(0x1c5)](exports,Symbol[_0x502a62(0x1cd)],{'value':_0x502a62(0x1c9)});const o=require('@univerjs/core'),g=require(_0x502a62(0x1be)),s=require('@univerjs/ui'),E=require(_0x502a62(0x1b3)),v=require(_0x502a62(0x1ae)),u={'id':'exchange-client.operation.import-xlsx','type':o['CommandType'][_0x502a62(0x1c0)],'handler':async _0x3ce999=>(_0x3ce999[_0x502a62(0x1bd)](g[_0x502a62(0x1bc)])[_0x502a62(0x1a0)](),!0x0)},p={'id':_0x502a62(0x1ce),'type':o[_0x502a62(0x1c4)]['OPERATION'],'handler':async _0x1ede56=>(_0x1ede56['get'](g['IExchangeOperateService'])[_0x502a62(0x1ba)](),!0x0)},m=_0x502a62(0x1a6);function I(_0x7dd309){const _0x16d783=_0x502a62;return{'id':m,'type':s[_0x16d783(0x199)]['SUBITEMS'],'icon':_0x16d783(0x197),'tooltip':_0x16d783(0x1aa),'hidden$':s['getMenuHiddenObservable'](_0x7dd309,o['UniverInstanceType'][_0x16d783(0x1d3)]),'disabled$':E[_0x16d783(0x1d2)](_0x7dd309,{'workbookTypes':[v['WorkbookExportPermission']]})};}function f(){const _0x1e1915=_0x502a62;return{'id':u['id'],'type':s[_0x1e1915(0x199)][_0x1e1915(0x1d0)],'title':_0x1e1915(0x1a1),'icon':_0x1e1915(0x1ac)};}function x(){const _0x265570=_0x502a62;return{'id':p['id'],'type':s[_0x265570(0x199)]['BUTTON'],'title':_0x265570(0x1b7),'icon':_0x265570(0x1cf)};}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[_0x502a62(0x1c5)],P=Object['getOwnPropertyDescriptor'],O=(_0x10559b,_0x3f285d,_0x438900,_0x439c32)=>{const _0x3f6b57=_0x502a62;for(var _0x43b18d=_0x439c32>0x1?void 0x0:_0x439c32?P(_0x3f285d,_0x438900):_0x3f285d,_0x41f7f3=_0x10559b[_0x3f6b57(0x1d4)]-0x1,_0xe8e6fc;_0x41f7f3>=0x0;_0x41f7f3--)(_0xe8e6fc=_0x10559b[_0x41f7f3])&&(_0x43b18d=(_0x439c32?_0xe8e6fc(_0x3f285d,_0x438900,_0x43b18d):_0xe8e6fc(_0x43b18d))||_0x43b18d);return _0x439c32&&_0x43b18d&&y(_0x3f285d,_0x438900,_0x43b18d),_0x43b18d;},h=(_0x5e17a2,_0x27e868)=>(_0x5866bd,_0x47ca93)=>_0x27e868(_0x5866bd,_0x47ca93,_0x5e17a2);let l=class extends o[_0x502a62(0x198)]{constructor(_0x140766,_0x4c61c6){const _0x57ab3e=_0x502a62;super(),this[_0x57ab3e(0x1cb)]=_0x140766,this[_0x57ab3e(0x1b5)]=_0x4c61c6,this[_0x57ab3e(0x1b6)](),this[_0x57ab3e(0x1b0)]();}[_0x502a62(0x1b6)](){const _0x39a48f=_0x502a62;[u,p][_0x39a48f(0x1ad)](_0x1b2c70=>{const _0x262aa8=_0x39a48f;this['disposeWithMe'](this[_0x262aa8(0x1cb)][_0x262aa8(0x1ab)](_0x1b2c70));});}[_0x502a62(0x1b0)](){const _0x38ad21=_0x502a62;this[_0x38ad21(0x1b5)][_0x38ad21(0x1a4)](C);}};l=O([o[_0x502a62(0x19c)](o[_0x502a62(0x1c8)][_0x502a62(0x19e)],l),h(0x0,o[_0x502a62(0x1a5)]),h(0x1,s[_0x502a62(0x1b9)])],l);const T='sheets-exchange-client.config',U={};var S=Object[_0x502a62(0x1c5)],X=Object[_0x502a62(0x1b8)],b=(_0x415dbf,_0x61e8cc,_0x4b6f16)=>_0x61e8cc in _0x415dbf?S(_0x415dbf,_0x61e8cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b6f16}):_0x415dbf[_0x61e8cc]=_0x4b6f16,N=(_0x356e45,_0x3937c9,_0x16d755,_0x5d9fe3)=>{const _0x588293=_0x502a62;for(var _0x2b69e4=_0x5d9fe3>0x1?void 0x0:_0x5d9fe3?X(_0x3937c9,_0x16d755):_0x3937c9,_0x4b1508=_0x356e45[_0x588293(0x1d4)]-0x1,_0x38a4fe;_0x4b1508>=0x0;_0x4b1508--)(_0x38a4fe=_0x356e45[_0x4b1508])&&(_0x2b69e4=(_0x5d9fe3?_0x38a4fe(_0x3937c9,_0x16d755,_0x2b69e4):_0x38a4fe(_0x2b69e4))||_0x2b69e4);return _0x5d9fe3&&_0x2b69e4&&S(_0x3937c9,_0x16d755,_0x2b69e4),_0x2b69e4;},d=(_0x187f41,_0x4ae028)=>(_0x358c60,_0x3fca52)=>_0x4ae028(_0x358c60,_0x3fca52,_0x187f41),_=(_0x4a3caf,_0x9f7a94,_0x58af28)=>b(_0x4a3caf,typeof _0x9f7a94!=_0x502a62(0x1af)?_0x9f7a94+'':_0x9f7a94,_0x58af28);const M=_0x502a62(0x1a2);function _0x5220(_0x458de3,_0x53c9f2){const _0x4aa35f=_0x4aa3();return _0x5220=function(_0x522009,_0x2847f5){_0x522009=_0x522009-0x197;let _0x55c829=_0x4aa35f[_0x522009];return _0x55c829;},_0x5220(_0x458de3,_0x53c9f2);}exports[_0x502a62(0x19d)]=class extends o[_0x502a62(0x1c1)]{constructor(_0x3ee3d4=U,_0x14b573,_0x56a5c7){const _0x562364=_0x502a62;super(),this[_0x562364(0x19b)]=_0x3ee3d4,this[_0x562364(0x1c6)]=_0x14b573,this[_0x562364(0x1a9)]=_0x56a5c7;const {menu:_0x534e16,..._0x2ec7c3}=this[_0x562364(0x19b)];_0x534e16&&this['_configService'][_0x562364(0x1c3)]('menu',_0x534e16,{'merge':!0x0}),this[_0x562364(0x1a9)][_0x562364(0x1c3)](T,_0x2ec7c3);}[_0x502a62(0x1bf)](){const _0x33577b=_0x502a62;[[l]][_0x33577b(0x1ad)](_0x317357=>this[_0x33577b(0x1c6)][_0x33577b(0x1d7)](_0x317357));}[_0x502a62(0x1a8)](){const _0x5e6693=_0x502a62;this[_0x5e6693(0x1bf)]();}},_(exports['UniverSheetsExchangeClientPlugin'],_0x502a62(0x1ca),M),_(exports[_0x502a62(0x19d)],_0x502a62(0x1bb),o['UniverInstanceType']['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([o['DependentOn'](g[_0x502a62(0x1c2)]),d(0x1,o[_0x502a62(0x1b2)](o[_0x502a62(0x1d6)])),d(0x2,o[_0x502a62(0x1b4)])],exports[_0x502a62(0x19d)]),exports['ExportXLSXOperation']=p,exports[_0x502a62(0x19f)]=u;
1
+ 'use strict';const _0x5bdbad=_0x1a0d;(function(_0xd287f8,_0x5c823d){const _0x4d50cd=_0x1a0d,_0x1ee77a=_0xd287f8();while(!![]){try{const _0x56b7a3=-parseInt(_0x4d50cd(0xd8))/0x1+-parseInt(_0x4d50cd(0xd3))/0x2+parseInt(_0x4d50cd(0xd9))/0x3+parseInt(_0x4d50cd(0xba))/0x4*(-parseInt(_0x4d50cd(0xf5))/0x5)+parseInt(_0x4d50cd(0xe2))/0x6+parseInt(_0x4d50cd(0xca))/0x7*(-parseInt(_0x4d50cd(0xf3))/0x8)+parseInt(_0x4d50cd(0xb6))/0x9*(parseInt(_0x4d50cd(0xe8))/0xa);if(_0x56b7a3===_0x5c823d)break;else _0x1ee77a['push'](_0x1ee77a['shift']());}catch(_0x27f7f2){_0x1ee77a['push'](_0x1ee77a['shift']());}}}(_0x4ac0,0x4466b));Object[_0x5bdbad(0xbb)](exports,Symbol['toStringTag'],{'value':_0x5bdbad(0xd0)});const o=require(_0x5bdbad(0xe0)),g=require('@univerjs-pro/exchange-client'),s=require(_0x5bdbad(0xea)),E=require(_0x5bdbad(0xcf)),v=require(_0x5bdbad(0xc9)),u={'id':_0x5bdbad(0xc5),'type':o[_0x5bdbad(0xeb)][_0x5bdbad(0xf2)],'handler':async _0x4abb96=>(_0x4abb96[_0x5bdbad(0xbd)](g[_0x5bdbad(0xcb)])['importXLSXToUnitId'](),!0x0)},p={'id':'exchange-client.operation.export-xlsx','type':o[_0x5bdbad(0xeb)][_0x5bdbad(0xf2)],'handler':async _0x3beee2=>(_0x3beee2[_0x5bdbad(0xbd)](g[_0x5bdbad(0xcb)])['exportXLSXByUnitId'](),!0x0)},m=_0x5bdbad(0xed);function I(_0x14d200){const _0x18d037=_0x5bdbad;return{'id':m,'type':s[_0x18d037(0xd4)][_0x18d037(0xd1)],'icon':_0x18d037(0xb7),'tooltip':_0x18d037(0xc3),'hidden$':s[_0x18d037(0xb8)](_0x14d200,o[_0x18d037(0xdc)]['UNIVER_SHEET']),'disabled$':E[_0x18d037(0xda)](_0x14d200,{'workbookTypes':[v[_0x18d037(0xe6)]]})};}function _0x1a0d(_0x3fb7aa,_0x2726c3){const _0x4ac075=_0x4ac0();return _0x1a0d=function(_0x1a0d4b,_0x480447){_0x1a0d4b=_0x1a0d4b-0xb3;let _0x1985c1=_0x4ac075[_0x1a0d4b];return _0x1985c1;},_0x1a0d(_0x3fb7aa,_0x2726c3);}function f(){const _0x5164ac=_0x5bdbad;return{'id':u['id'],'type':s[_0x5164ac(0xd4)][_0x5164ac(0xb4)],'title':_0x5164ac(0xc1),'icon':_0x5164ac(0xef)};}function x(){const _0x1f46ac=_0x5bdbad;return{'id':p['id'],'type':s[_0x1f46ac(0xd4)][_0x1f46ac(0xb4)],'title':_0x1f46ac(0xee),'icon':_0x1f46ac(0xcc)};}function _0x4ac0(){const _0x1bb2ee=['@univerjs/sheets','7AYWhca','IExchangeOperateService','ExportSingle','ImportXLSXOperation','forEach','@univerjs/sheets-ui','Module','SUBITEMS','_configService','254620SeMJMs','MenuItemType','_injector','Injector','ExportXLSXOperation','151508aQjpLO','1370493UyJRWF','getCurrentRangeDisable$','UNIVER_SHEET','UniverInstanceType','FILE','setConfig','Disposable','@univerjs/core','ICommandService','1622688AWhMXn','SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.config','disposeWithMe','WorkbookExportPermission','IConfigService','10cwhhKA','symbol','@univerjs/ui','CommandType','_menuManagerService','sheets-exchange-client.operation.exchange','exchange.download','FolderSingle','RibbonStartGroup','UniverSheetsExchangeClientPlugin','OPERATION','1473616ZTudJs','OnLifecycle','2556635cTXKzc','length','BUTTON','type','4745151dGNTDX','DirectExportSingle','getMenuHiddenObservable','_initMenus','4qCvMvj','defineProperty','initialize','get','_commandService','IMenuManagerService','_config','exchange.upload','Inject','exchange.file','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','_initCommands','LifecycleStages','DependentOn'];_0x4ac0=function(){return _0x1bb2ee;};return _0x4ac0();}const C={[s[_0x5bdbad(0xf0)][_0x5bdbad(0xdd)]]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x5bdbad(0xbb)],P=Object['getOwnPropertyDescriptor'],O=(_0x17c768,_0x3b60c1,_0x4b7e3c,_0x2d0b6f)=>{const _0x27fc03=_0x5bdbad;for(var _0x5a543e=_0x2d0b6f>0x1?void 0x0:_0x2d0b6f?P(_0x3b60c1,_0x4b7e3c):_0x3b60c1,_0x363ce6=_0x17c768[_0x27fc03(0xb3)]-0x1,_0x18b267;_0x363ce6>=0x0;_0x363ce6--)(_0x18b267=_0x17c768[_0x363ce6])&&(_0x5a543e=(_0x2d0b6f?_0x18b267(_0x3b60c1,_0x4b7e3c,_0x5a543e):_0x18b267(_0x5a543e))||_0x5a543e);return _0x2d0b6f&&_0x5a543e&&y(_0x3b60c1,_0x4b7e3c,_0x5a543e),_0x5a543e;},h=(_0x4b129b,_0x339a01)=>(_0x2381c0,_0x319367)=>_0x339a01(_0x2381c0,_0x319367,_0x4b129b);let l=class extends o[_0x5bdbad(0xdf)]{constructor(_0x58525f,_0x3597cc){const _0xa3052c=_0x5bdbad;super(),this[_0xa3052c(0xbe)]=_0x58525f,this[_0xa3052c(0xec)]=_0x3597cc,this[_0xa3052c(0xc6)](),this['_initMenus']();}['_initCommands'](){const _0x381ffe=_0x5bdbad;[u,p][_0x381ffe(0xce)](_0x14d304=>{const _0x4aa337=_0x381ffe;this[_0x4aa337(0xe5)](this['_commandService']['registerCommand'](_0x14d304));});}[_0x5bdbad(0xb9)](){this['_menuManagerService']['mergeMenu'](C);}};l=O([o[_0x5bdbad(0xf4)](o[_0x5bdbad(0xc7)]['Ready'],l),h(0x0,o[_0x5bdbad(0xe1)]),h(0x1,s[_0x5bdbad(0xbf)])],l);const T=_0x5bdbad(0xe4),U={};var S=Object[_0x5bdbad(0xbb)],X=Object[_0x5bdbad(0xc4)],b=(_0x56899e,_0x38a1b8,_0x6ee9de)=>_0x38a1b8 in _0x56899e?S(_0x56899e,_0x38a1b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6ee9de}):_0x56899e[_0x38a1b8]=_0x6ee9de,N=(_0x134f77,_0x34ce48,_0x5d4ed8,_0x1b4d85)=>{const _0x299356=_0x5bdbad;for(var _0x1efa03=_0x1b4d85>0x1?void 0x0:_0x1b4d85?X(_0x34ce48,_0x5d4ed8):_0x34ce48,_0x497fb6=_0x134f77[_0x299356(0xb3)]-0x1,_0x55eac9;_0x497fb6>=0x0;_0x497fb6--)(_0x55eac9=_0x134f77[_0x497fb6])&&(_0x1efa03=(_0x1b4d85?_0x55eac9(_0x34ce48,_0x5d4ed8,_0x1efa03):_0x55eac9(_0x1efa03))||_0x1efa03);return _0x1b4d85&&_0x1efa03&&S(_0x34ce48,_0x5d4ed8,_0x1efa03),_0x1efa03;},d=(_0x48b947,_0x379274)=>(_0x53a59f,_0x481d2a)=>_0x379274(_0x53a59f,_0x481d2a,_0x48b947),_=(_0x343bcb,_0x33bfbe,_0x22d433)=>b(_0x343bcb,typeof _0x33bfbe!=_0x5bdbad(0xe9)?_0x33bfbe+'':_0x33bfbe,_0x22d433);const M=_0x5bdbad(0xe3);exports[_0x5bdbad(0xf1)]=class extends o['Plugin']{constructor(_0x34143d=U,_0x22cd66,_0x3b16e5){const _0x220d66=_0x5bdbad;super(),this[_0x220d66(0xc0)]=_0x34143d,this[_0x220d66(0xd5)]=_0x22cd66,this[_0x220d66(0xd2)]=_0x3b16e5;const {menu:_0x510aef,..._0x473b0a}=this['_config'];_0x510aef&&this[_0x220d66(0xd2)][_0x220d66(0xde)]('menu',_0x510aef,{'merge':!0x0}),this['_configService'][_0x220d66(0xde)](T,_0x473b0a);}[_0x5bdbad(0xbc)](){const _0x528d83=_0x5bdbad;[[l]][_0x528d83(0xce)](_0x11173f=>this[_0x528d83(0xd5)]['add'](_0x11173f));}['onReady'](){const _0x288e9c=_0x5bdbad;this[_0x288e9c(0xbc)]();}},_(exports['UniverSheetsExchangeClientPlugin'],'pluginName',M),_(exports[_0x5bdbad(0xf1)],_0x5bdbad(0xb5),o['UniverInstanceType'][_0x5bdbad(0xdb)]),exports[_0x5bdbad(0xf1)]=N([o[_0x5bdbad(0xc8)](g['UniverExchangeClientPlugin']),d(0x1,o[_0x5bdbad(0xc2)](o[_0x5bdbad(0xd6)])),d(0x2,o[_0x5bdbad(0xe7)])],exports[_0x5bdbad(0xf1)]),exports[_0x5bdbad(0xd7)]=p,exports[_0x5bdbad(0xcd)]=u;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xc5fc00=_0x2724;(function(_0x31cb03,_0x2bf5ef){const _0x207b7f=_0x2724,_0x3322b3=_0x31cb03();while(!![]){try{const _0x39d19c=parseInt(_0x207b7f(0x11e))/0x1*(parseInt(_0x207b7f(0x138))/0x2)+parseInt(_0x207b7f(0x13a))/0x3+parseInt(_0x207b7f(0x11c))/0x4+parseInt(_0x207b7f(0x13b))/0x5+parseInt(_0x207b7f(0x120))/0x6+parseInt(_0x207b7f(0x143))/0x7+-parseInt(_0x207b7f(0x145))/0x8;if(_0x39d19c===_0x2bf5ef)break;else _0x3322b3['push'](_0x3322b3['shift']());}catch(_0x28f03d){_0x3322b3['push'](_0x3322b3['shift']());}}}(_0x562f,0xe199c));import{CommandType as _0x38f16d,UniverInstanceType as _0x284881,OnLifecycle as _0x259f05,LifecycleStages as _0x922626,Disposable as _0x2e8fb1,ICommandService as _0x5b5d96,DependentOn as _0x3fd03b,Inject as _0x2fd33f,Injector as _0x57c391,Plugin as _0x1ca315,IConfigService as _0x3b0f5e}from'@univerjs/core';function _0x562f(){const _0x2d40bd=['disposeWithMe','FolderSingle','get','OPERATION','length','Ready','forEach','initialize','defineProperty','exchange.download','setConfig','SUBITEMS','SHEET_EXCHANGE_CLIENT_PLUGIN','menu','_commandService','type','sheets-exchange-client.operation.exchange','BUTTON','_menuManagerService','_injector','UNIVER_SHEET','pluginName','importXLSXToUnitId','2cCbGeM','_configService','901464fvryqx','3962850GPCBpf','_initCommands','symbol','exportXLSXByUnitId','_initMenus','add','registerCommand','exchange.file','10312827xyPmuw','_config','29809088WFzHvL','DirectExportSingle','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','mergeMenu','FILE','ExportSingle','1545376DgrBoB','exchange.upload','255973UGLQPw','sheets-exchange-client.config','8649360vHkSkD'];_0x562f=function(){return _0x2d40bd;};return _0x562f();}import{IExchangeOperateService as _0x469b91,UniverExchangeClientPlugin as _0x12401b}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x4e625c,getMenuHiddenObservable as _0x220baf,RibbonStartGroup as _0x75fce7,IMenuManagerService as _0x4a5c54}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x54e419}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x49df24}from'@univerjs/sheets';const l={'id':'exchange-client.operation.import-xlsx','type':_0x38f16d[_0xc5fc00(0x124)],'handler':async _0x2a3c41=>(_0x2a3c41[_0xc5fc00(0x123)](_0x469b91)[_0xc5fc00(0x137)](),!0x0)},m={'id':_0xc5fc00(0x117),'type':_0x38f16d[_0xc5fc00(0x124)],'handler':async _0x2633cb=>(_0x2633cb[_0xc5fc00(0x123)](_0x469b91)[_0xc5fc00(0x13e)](),!0x0)},f=_0xc5fc00(0x131);function D(_0x168b3b){const _0x564a1d=_0xc5fc00;return{'id':f,'type':_0x4e625c[_0x564a1d(0x12c)],'icon':_0x564a1d(0x146),'tooltip':_0x564a1d(0x142),'hidden$':_0x220baf(_0x168b3b,_0x284881[_0x564a1d(0x135)]),'disabled$':_0x54e419(_0x168b3b,{'workbookTypes':[_0x49df24]})};}function H(){const _0x1cb85a=_0xc5fc00;return{'id':l['id'],'type':_0x4e625c[_0x1cb85a(0x132)],'title':_0x1cb85a(0x11d),'icon':_0x1cb85a(0x122)};}function R(){const _0x1a0e68=_0xc5fc00;return{'id':m['id'],'type':_0x4e625c[_0x1a0e68(0x132)],'title':_0x1a0e68(0x12a),'icon':_0x1a0e68(0x11b)};}const G={[_0x75fce7[_0xc5fc00(0x11a)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object[_0xc5fc00(0x129)],$=Object[_0xc5fc00(0x118)],j=(_0x250331,_0x467d93,_0x1fd72d,_0x53a8bc)=>{for(var _0x2e7029=_0x53a8bc>0x1?void 0x0:_0x53a8bc?$(_0x467d93,_0x1fd72d):_0x467d93,_0x1ec09a=_0x250331['length']-0x1,_0x44ab5c;_0x1ec09a>=0x0;_0x1ec09a--)(_0x44ab5c=_0x250331[_0x1ec09a])&&(_0x2e7029=(_0x53a8bc?_0x44ab5c(_0x467d93,_0x1fd72d,_0x2e7029):_0x44ab5c(_0x2e7029))||_0x2e7029);return _0x53a8bc&&_0x2e7029&&w(_0x467d93,_0x1fd72d,_0x2e7029),_0x2e7029;},u=(_0x58b3b7,_0x399a04)=>(_0x12037e,_0x58642f)=>_0x399a04(_0x12037e,_0x58642f,_0x58b3b7);let a=class extends _0x2e8fb1{constructor(_0x34ee01,_0x2520b7){const _0x4b12fd=_0xc5fc00;super(),this[_0x4b12fd(0x12f)]=_0x34ee01,this[_0x4b12fd(0x133)]=_0x2520b7,this[_0x4b12fd(0x13c)](),this[_0x4b12fd(0x13f)]();}[_0xc5fc00(0x13c)](){const _0x1247a0=_0xc5fc00;[l,m][_0x1247a0(0x127)](_0x62f48a=>{const _0x1f3b2c=_0x1247a0;this[_0x1f3b2c(0x121)](this[_0x1f3b2c(0x12f)][_0x1f3b2c(0x141)](_0x62f48a));});}[_0xc5fc00(0x13f)](){const _0x19e3c7=_0xc5fc00;this[_0x19e3c7(0x133)][_0x19e3c7(0x119)](G);}};a=j([_0x259f05(_0x922626[_0xc5fc00(0x126)],a),u(0x0,_0x5b5d96),u(0x1,_0x4a5c54)],a);const A=_0xc5fc00(0x11f),B={};function _0x2724(_0x39b1cb,_0x2cc1e0){const _0x562f33=_0x562f();return _0x2724=function(_0x27248e,_0x397df5){_0x27248e=_0x27248e-0x117;let _0x1ecf51=_0x562f33[_0x27248e];return _0x1ecf51;},_0x2724(_0x39b1cb,_0x2cc1e0);}var E=Object[_0xc5fc00(0x129)],z=Object[_0xc5fc00(0x118)],V=(_0x3a40b8,_0x10a32f,_0x4e1643)=>_0x10a32f in _0x3a40b8?E(_0x3a40b8,_0x10a32f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e1643}):_0x3a40b8[_0x10a32f]=_0x4e1643,W=(_0x338737,_0x5a4238,_0x5877b5,_0x524059)=>{const _0xa046d6=_0xc5fc00;for(var _0x14efbb=_0x524059>0x1?void 0x0:_0x524059?z(_0x5a4238,_0x5877b5):_0x5a4238,_0x363182=_0x338737[_0xa046d6(0x125)]-0x1,_0x51ed22;_0x363182>=0x0;_0x363182--)(_0x51ed22=_0x338737[_0x363182])&&(_0x14efbb=(_0x524059?_0x51ed22(_0x5a4238,_0x5877b5,_0x14efbb):_0x51ed22(_0x14efbb))||_0x14efbb);return _0x524059&&_0x14efbb&&E(_0x5a4238,_0x5877b5,_0x14efbb),_0x14efbb;},d=(_0x379d39,_0x392da8)=>(_0x4755e0,_0x2a8a6d)=>_0x392da8(_0x4755e0,_0x2a8a6d,_0x379d39),S=(_0x27e7fd,_0x13b55b,_0x5d0daa)=>V(_0x27e7fd,typeof _0x13b55b!=_0xc5fc00(0x13d)?_0x13b55b+'':_0x13b55b,_0x5d0daa);const K=_0xc5fc00(0x12d);let s=class extends _0x1ca315{constructor(_0x1a4c1a=B,_0x165089,_0x58cf01){const _0x2df5b3=_0xc5fc00;super(),this[_0x2df5b3(0x144)]=_0x1a4c1a,this['_injector']=_0x165089,this[_0x2df5b3(0x139)]=_0x58cf01;const {menu:_0x1c80ee,..._0x9a9e16}=this[_0x2df5b3(0x144)];_0x1c80ee&&this['_configService'][_0x2df5b3(0x12b)](_0x2df5b3(0x12e),_0x1c80ee,{'merge':!0x0}),this[_0x2df5b3(0x139)]['setConfig'](A,_0x9a9e16);}[_0xc5fc00(0x128)](){const _0x3950a5=_0xc5fc00;[[a]][_0x3950a5(0x127)](_0x21cc80=>this[_0x3950a5(0x134)][_0x3950a5(0x140)](_0x21cc80));}['onReady'](){const _0x4b3427=_0xc5fc00;this[_0x4b3427(0x128)]();}};S(s,_0xc5fc00(0x136),K),S(s,_0xc5fc00(0x130),_0x284881[_0xc5fc00(0x135)]),s=W([_0x3fd03b(_0x12401b),d(0x1,_0x2fd33f(_0x57c391)),d(0x2,_0x3b0f5e)],s);export{m as ExportXLSXOperation,l as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0xd3b09=_0x60c7;(function(_0x98c702,_0x5242ce){const _0x19edad=_0x60c7,_0x1f5866=_0x98c702();while(!![]){try{const _0x4919d9=parseInt(_0x19edad(0xd2))/0x1*(-parseInt(_0x19edad(0xd3))/0x2)+-parseInt(_0x19edad(0xc8))/0x3+parseInt(_0x19edad(0xb6))/0x4*(parseInt(_0x19edad(0xb5))/0x5)+-parseInt(_0x19edad(0xc7))/0x6+parseInt(_0x19edad(0xd9))/0x7+-parseInt(_0x19edad(0xb8))/0x8+parseInt(_0x19edad(0xc9))/0x9*(parseInt(_0x19edad(0xc2))/0xa);if(_0x4919d9===_0x5242ce)break;else _0x1f5866['push'](_0x1f5866['shift']());}catch(_0x788521){_0x1f5866['push'](_0x1f5866['shift']());}}}(_0x5c58,0x1e41f));function _0x5c58(){const _0x2fd207=['exportXLSXByUnitId','40Dqpklb','sheets-exchange-client.operation.exchange','_commandService','sheets-exchange-client.config','pluginName','1250610QtbBAt','264369eMxYzP','403371VSTJfh','FILE','onReady','length','importXLSXToUnitId','defineProperty','registerCommand','Ready','SHEET_EXCHANGE_CLIENT_PLUGIN','661eVnMlz','362gxZvjt','symbol','getOwnPropertyDescriptor','add','_menuManagerService','_initMenus','1003905tcMwkY','initialize','setConfig','FolderSingle','_injector','_initCommands','_config','UNIVER_SHEET','exchange-client.operation.export-xlsx','1113790RpvKWJ','4CYLtqs','OPERATION','42520rflMRP','DirectExportSingle','get','SUBITEMS','BUTTON','mergeMenu','forEach','_configService','exchange.upload'];_0x5c58=function(){return _0x2fd207;};return _0x5c58();}import{CommandType as _0x50a336,UniverInstanceType as _0x3e601f,OnLifecycle as _0x5ae621,LifecycleStages as _0x51a863,Disposable as _0x111362,ICommandService as _0x39e2bd,DependentOn as _0x5532b1,Inject as _0x3c59f1,Injector as _0x26c4ee,Plugin as _0x35590f,IConfigService as _0x4fe64d}from'@univerjs/core';import{IExchangeOperateService as _0x41e717,UniverExchangeClientPlugin as _0x16f9d8}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x1b10ef,getMenuHiddenObservable as _0x741eba,RibbonStartGroup as _0x585cd1,IMenuManagerService as _0x3cd96e}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x1172ec}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x16aec5}from'@univerjs/sheets';const l={'id':'exchange-client.operation.import-xlsx','type':_0x50a336['OPERATION'],'handler':async _0x5afee9=>(_0x5afee9[_0xd3b09(0xba)](_0x41e717)[_0xd3b09(0xcd)](),!0x0)},m={'id':_0xd3b09(0xb4),'type':_0x50a336[_0xd3b09(0xb7)],'handler':async _0x4696ba=>(_0x4696ba[_0xd3b09(0xba)](_0x41e717)[_0xd3b09(0xc1)](),!0x0)},f=_0xd3b09(0xc3);function D(_0x18b575){const _0x52022d=_0xd3b09;return{'id':f,'type':_0x1b10ef[_0x52022d(0xbb)],'icon':_0x52022d(0xb9),'tooltip':'exchange.file','hidden$':_0x741eba(_0x18b575,_0x3e601f[_0x52022d(0xb3)]),'disabled$':_0x1172ec(_0x18b575,{'workbookTypes':[_0x16aec5]})};}function H(){const _0x54a39b=_0xd3b09;return{'id':l['id'],'type':_0x1b10ef[_0x54a39b(0xbc)],'title':_0x54a39b(0xc0),'icon':_0x54a39b(0xaf)};}function _0x60c7(_0x30394e,_0x991b98){const _0x5c58d4=_0x5c58();return _0x60c7=function(_0x60c702,_0x1cba91){_0x60c702=_0x60c702-0xad;let _0x1b4131=_0x5c58d4[_0x60c702];return _0x1b4131;},_0x60c7(_0x30394e,_0x991b98);}function R(){const _0x4d0a47=_0xd3b09;return{'id':m['id'],'type':_0x1b10ef[_0x4d0a47(0xbc)],'title':'exchange.download','icon':'ExportSingle'};}const G={[_0x585cd1[_0xd3b09(0xca)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object[_0xd3b09(0xce)],$=Object[_0xd3b09(0xd5)],j=(_0x5954a6,_0x527226,_0x173a71,_0x528703)=>{const _0x311e0e=_0xd3b09;for(var _0x202f82=_0x528703>0x1?void 0x0:_0x528703?$(_0x527226,_0x173a71):_0x527226,_0x309cf3=_0x5954a6[_0x311e0e(0xcc)]-0x1,_0x1f6c69;_0x309cf3>=0x0;_0x309cf3--)(_0x1f6c69=_0x5954a6[_0x309cf3])&&(_0x202f82=(_0x528703?_0x1f6c69(_0x527226,_0x173a71,_0x202f82):_0x1f6c69(_0x202f82))||_0x202f82);return _0x528703&&_0x202f82&&w(_0x527226,_0x173a71,_0x202f82),_0x202f82;},u=(_0x500297,_0x2e34c5)=>(_0xa9de77,_0x190a8c)=>_0x2e34c5(_0xa9de77,_0x190a8c,_0x500297);let a=class extends _0x111362{constructor(_0x120f40,_0x21feef){const _0x4838b4=_0xd3b09;super(),this[_0x4838b4(0xc4)]=_0x120f40,this[_0x4838b4(0xd7)]=_0x21feef,this[_0x4838b4(0xb1)](),this[_0x4838b4(0xd8)]();}[_0xd3b09(0xb1)](){const _0x3c5878=_0xd3b09;[l,m][_0x3c5878(0xbe)](_0x525048=>{const _0x34ea82=_0x3c5878;this['disposeWithMe'](this[_0x34ea82(0xc4)][_0x34ea82(0xcf)](_0x525048));});}['_initMenus'](){const _0x30bfd7=_0xd3b09;this[_0x30bfd7(0xd7)][_0x30bfd7(0xbd)](G);}};a=j([_0x5ae621(_0x51a863[_0xd3b09(0xd0)],a),u(0x0,_0x39e2bd),u(0x1,_0x3cd96e)],a);const A=_0xd3b09(0xc5),B={};var E=Object[_0xd3b09(0xce)],z=Object['getOwnPropertyDescriptor'],V=(_0x4495b4,_0x3259d9,_0x287df1)=>_0x3259d9 in _0x4495b4?E(_0x4495b4,_0x3259d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287df1}):_0x4495b4[_0x3259d9]=_0x287df1,W=(_0x448943,_0x339ceb,_0xffe7da,_0x4c7292)=>{const _0x39ab49=_0xd3b09;for(var _0x166523=_0x4c7292>0x1?void 0x0:_0x4c7292?z(_0x339ceb,_0xffe7da):_0x339ceb,_0xca647=_0x448943[_0x39ab49(0xcc)]-0x1,_0x4681fd;_0xca647>=0x0;_0xca647--)(_0x4681fd=_0x448943[_0xca647])&&(_0x166523=(_0x4c7292?_0x4681fd(_0x339ceb,_0xffe7da,_0x166523):_0x4681fd(_0x166523))||_0x166523);return _0x4c7292&&_0x166523&&E(_0x339ceb,_0xffe7da,_0x166523),_0x166523;},d=(_0x2588ef,_0x2d3ffb)=>(_0x2e551f,_0x5ac545)=>_0x2d3ffb(_0x2e551f,_0x5ac545,_0x2588ef),S=(_0x4e9641,_0x2fc32d,_0x950065)=>V(_0x4e9641,typeof _0x2fc32d!=_0xd3b09(0xd4)?_0x2fc32d+'':_0x2fc32d,_0x950065);const K=_0xd3b09(0xd1);let s=class extends _0x35590f{constructor(_0x23df29=B,_0x32ad3,_0x4dc6aa){const _0x51b77f=_0xd3b09;super(),this[_0x51b77f(0xb2)]=_0x23df29,this['_injector']=_0x32ad3,this['_configService']=_0x4dc6aa;const {menu:_0x58731d,..._0x4eb202}=this[_0x51b77f(0xb2)];_0x58731d&&this[_0x51b77f(0xbf)][_0x51b77f(0xae)]('menu',_0x58731d,{'merge':!0x0}),this[_0x51b77f(0xbf)][_0x51b77f(0xae)](A,_0x4eb202);}[_0xd3b09(0xad)](){const _0x94b66a=_0xd3b09;[[a]][_0x94b66a(0xbe)](_0x37c513=>this[_0x94b66a(0xb0)][_0x94b66a(0xd6)](_0x37c513));}[_0xd3b09(0xcb)](){const _0x1624d6=_0xd3b09;this[_0x1624d6(0xad)]();}};S(s,_0xd3b09(0xc6),K),S(s,'type',_0x3e601f['UNIVER_SHEET']),s=W([_0x5532b1(_0x16f9d8),d(0x1,_0x3c59f1(_0x26c4ee)),d(0x2,_0x4fe64d)],s);export{m as ExportXLSXOperation,l as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
@@ -1,2 +1,2 @@
1
1
  export { UniverSheetsExchangeClientPlugin } from './plugin';
2
- export { ImportXLSXOperation, ExportXLSXOperation, } from './commands/operations/exchange.operation';
2
+ export { ExportXLSXOperation, ImportXLSXOperation, } from './commands/operations/exchange.operation';
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x580c(_0x36e388,_0x490bb3){const _0x5c5ee9=_0x5c5e();return _0x580c=function(_0x580c98,_0x800b0b){_0x580c98=_0x580c98-0x1c0;let _0x340980=_0x5c5ee9[_0x580c98];return _0x340980;},_0x580c(_0x36e388,_0x490bb3);}(function(_0x5ab7a5,_0x2cd95c){const _0x5be4c2=_0x580c,_0x31c35a=_0x5ab7a5();while(!![]){try{const _0x3b34f2=-parseInt(_0x5be4c2(0x1e5))/0x1*(-parseInt(_0x5be4c2(0x20b))/0x2)+parseInt(_0x5be4c2(0x1f0))/0x3*(-parseInt(_0x5be4c2(0x1c3))/0x4)+parseInt(_0x5be4c2(0x1c1))/0x5*(-parseInt(_0x5be4c2(0x1cf))/0x6)+-parseInt(_0x5be4c2(0x1d1))/0x7+parseInt(_0x5be4c2(0x1f2))/0x8*(-parseInt(_0x5be4c2(0x1fb))/0x9)+-parseInt(_0x5be4c2(0x20c))/0xa*(parseInt(_0x5be4c2(0x202))/0xb)+parseInt(_0x5be4c2(0x1d4))/0xc*(parseInt(_0x5be4c2(0x1f1))/0xd);if(_0x3b34f2===_0x2cd95c)break;else _0x31c35a['push'](_0x31c35a['shift']());}catch(_0x3f811f){_0x31c35a['push'](_0x31c35a['shift']());}}}(_0x5c5e,0xf2d5b),function(_0x4a87d0,_0x5d16d3){const _0x4ee21d=_0x580c;typeof exports=='object'&&typeof module<'u'?_0x5d16d3(exports,require(_0x4ee21d(0x204)),require(_0x4ee21d(0x1fe)),require(_0x4ee21d(0x1db)),require(_0x4ee21d(0x1de)),require(_0x4ee21d(0x1c6))):typeof define==_0x4ee21d(0x1d6)&&define['amd']?define([_0x4ee21d(0x1d0),'@univerjs/core',_0x4ee21d(0x1fe),_0x4ee21d(0x1db),_0x4ee21d(0x1de),'@univerjs/sheets'],_0x5d16d3):(_0x4a87d0=typeof globalThis<'u'?globalThis:_0x4a87d0||self,_0x5d16d3(_0x4a87d0[_0x4ee21d(0x1c8)]={},_0x4a87d0[_0x4ee21d(0x1ea)],_0x4a87d0[_0x4ee21d(0x1d5)],_0x4a87d0['UniverUi'],_0x4a87d0['UniverSheetsUi'],_0x4a87d0[_0x4ee21d(0x209)]));}(this,function(_0x13a726,_0x2bddd4,_0x3b33bf,_0x4be4c0,_0x2b08b7,_0x299d48){'use strict';const _0x376b45=_0x580c;const _0x1b4719={'id':_0x376b45(0x1c9),'type':_0x2bddd4['CommandType'][_0x376b45(0x206)],'handler':async _0x58180c=>(_0x58180c['get'](_0x3b33bf[_0x376b45(0x1f4)])[_0x376b45(0x1f8)](),!0x0)},_0x1e342f={'id':'exchange-client.operation.export-xlsx','type':_0x2bddd4[_0x376b45(0x1e1)][_0x376b45(0x206)],'handler':async _0x51e330=>(_0x51e330[_0x376b45(0x1ee)](_0x3b33bf['IExchangeOperateService'])[_0x376b45(0x1f7)](),!0x0)},_0x2a4cab=_0x376b45(0x1d8);function _0x2b68b8(_0x142891){const _0x416ce7=_0x376b45;return{'id':_0x2a4cab,'type':_0x4be4c0['MenuItemType'][_0x416ce7(0x1fc)],'icon':_0x416ce7(0x208),'tooltip':_0x416ce7(0x1e4),'hidden$':_0x4be4c0[_0x416ce7(0x1d2)](_0x142891,_0x2bddd4[_0x416ce7(0x1e0)]['UNIVER_SHEET']),'disabled$':_0x2b08b7[_0x416ce7(0x1c4)](_0x142891,{'workbookTypes':[_0x299d48['WorkbookExportPermission']]})};}function _0x266734(){const _0x48ff58=_0x376b45;return{'id':_0x1b4719['id'],'type':_0x4be4c0[_0x48ff58(0x1d3)][_0x48ff58(0x1f5)],'title':_0x48ff58(0x1e6),'icon':'FolderSingle'};}function _0x1d5827(){const _0x81bfcc=_0x376b45;return{'id':_0x1e342f['id'],'type':_0x4be4c0[_0x81bfcc(0x1d3)][_0x81bfcc(0x1f5)],'title':_0x81bfcc(0x1ff),'icon':'ExportSingle'};}const _0x28597b={[_0x4be4c0['RibbonStartGroup'][_0x376b45(0x1ca)]]:{[_0x2a4cab]:{'order':0x4,'menuItemFactory':_0x2b68b8,[_0x1b4719['id']]:{'order':0x0,'menuItemFactory':_0x266734},[_0x1e342f['id']]:{'order':0x1,'menuItemFactory':_0x1d5827}}}};var _0x829e7f=Object['defineProperty'],_0x21b00d=Object[_0x376b45(0x201)],_0x5b04a0=(_0xbe6d47,_0x1e2e32,_0x4ab2d1,_0x46fdce)=>{const _0x157ea0=_0x376b45;for(var _0x383431=_0x46fdce>0x1?void 0x0:_0x46fdce?_0x21b00d(_0x1e2e32,_0x4ab2d1):_0x1e2e32,_0x28e215=_0xbe6d47[_0x157ea0(0x200)]-0x1,_0x53e7aa;_0x28e215>=0x0;_0x28e215--)(_0x53e7aa=_0xbe6d47[_0x28e215])&&(_0x383431=(_0x46fdce?_0x53e7aa(_0x1e2e32,_0x4ab2d1,_0x383431):_0x53e7aa(_0x383431))||_0x383431);return _0x46fdce&&_0x383431&&_0x829e7f(_0x1e2e32,_0x4ab2d1,_0x383431),_0x383431;},_0x30daa9=(_0x149064,_0x1f7f03)=>(_0x43aefb,_0x372ea5)=>_0x1f7f03(_0x43aefb,_0x372ea5,_0x149064);let _0x3c18ef=class extends _0x2bddd4[_0x376b45(0x1c0)]{constructor(_0x4a0941,_0x2d27fc){const _0x18e563=_0x376b45;super(),this[_0x18e563(0x1dc)]=_0x4a0941,this[_0x18e563(0x1eb)]=_0x2d27fc,this[_0x18e563(0x1cb)](),this[_0x18e563(0x1e7)]();}['_initCommands'](){const _0x2fb565=_0x376b45;[_0x1b4719,_0x1e342f][_0x2fb565(0x1f6)](_0x44515f=>{const _0x38b2c6=_0x2fb565;this[_0x38b2c6(0x1ce)](this[_0x38b2c6(0x1dc)][_0x38b2c6(0x1e3)](_0x44515f));});}[_0x376b45(0x1e7)](){const _0x4d03f1=_0x376b45;this[_0x4d03f1(0x1eb)]['mergeMenu'](_0x28597b);}};_0x3c18ef=_0x5b04a0([_0x2bddd4[_0x376b45(0x1e2)](_0x2bddd4[_0x376b45(0x1d7)][_0x376b45(0x1dd)],_0x3c18ef),_0x30daa9(0x0,_0x2bddd4['ICommandService']),_0x30daa9(0x1,_0x4be4c0[_0x376b45(0x1e8)])],_0x3c18ef);const _0x19b625='sheets-exchange-client.config',_0x2c8cdc={};var _0x38117e=Object[_0x376b45(0x1ec)],_0x1693a2=Object[_0x376b45(0x201)],_0x4b9f10=(_0x1d8b58,_0x1001f4,_0x5cf564)=>_0x1001f4 in _0x1d8b58?_0x38117e(_0x1d8b58,_0x1001f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cf564}):_0x1d8b58[_0x1001f4]=_0x5cf564,_0x455eff=(_0x351806,_0x1f8f33,_0x3e8cb1,_0x15c497)=>{for(var _0x17a26c=_0x15c497>0x1?void 0x0:_0x15c497?_0x1693a2(_0x1f8f33,_0x3e8cb1):_0x1f8f33,_0x450380=_0x351806['length']-0x1,_0x411a65;_0x450380>=0x0;_0x450380--)(_0x411a65=_0x351806[_0x450380])&&(_0x17a26c=(_0x15c497?_0x411a65(_0x1f8f33,_0x3e8cb1,_0x17a26c):_0x411a65(_0x17a26c))||_0x17a26c);return _0x15c497&&_0x17a26c&&_0x38117e(_0x1f8f33,_0x3e8cb1,_0x17a26c),_0x17a26c;},_0x2db2a8=(_0x47be8e,_0x5bcd9a)=>(_0x37e7d3,_0x376123)=>_0x5bcd9a(_0x37e7d3,_0x376123,_0x47be8e),_0x4d1449=(_0x20ce77,_0x247804,_0x47ee3c)=>_0x4b9f10(_0x20ce77,typeof _0x247804!='symbol'?_0x247804+'':_0x247804,_0x47ee3c);const _0x49ce33=_0x376b45(0x205);_0x13a726[_0x376b45(0x1df)]=class extends _0x2bddd4[_0x376b45(0x20d)]{constructor(_0x4e9e7d=_0x2c8cdc,_0x471122,_0x432d60){const _0x35663a=_0x376b45;super(),this['_config']=_0x4e9e7d,this['_injector']=_0x471122,this[_0x35663a(0x1c5)]=_0x432d60;const {menu:_0x352c12,..._0x23d511}=this['_config'];_0x352c12&&this[_0x35663a(0x1c5)][_0x35663a(0x1e9)](_0x35663a(0x1d9),_0x352c12,{'merge':!0x0}),this[_0x35663a(0x1c5)][_0x35663a(0x1e9)](_0x19b625,_0x23d511);}['initialize'](){const _0x23e349=_0x376b45;[[_0x3c18ef]][_0x23e349(0x1f6)](_0x2c9fe0=>this[_0x23e349(0x207)][_0x23e349(0x1f9)](_0x2c9fe0));}[_0x376b45(0x1c2)](){const _0x338cce=_0x376b45;this[_0x338cce(0x1ef)]();}},_0x4d1449(_0x13a726[_0x376b45(0x1df)],'pluginName',_0x49ce33),_0x4d1449(_0x13a726[_0x376b45(0x1df)],_0x376b45(0x1c7),_0x2bddd4[_0x376b45(0x1e0)][_0x376b45(0x203)]),_0x13a726['UniverSheetsExchangeClientPlugin']=_0x455eff([_0x2bddd4[_0x376b45(0x1fa)](_0x3b33bf[_0x376b45(0x1da)]),_0x2db2a8(0x1,_0x2bddd4[_0x376b45(0x1ed)](_0x2bddd4[_0x376b45(0x1f3)])),_0x2db2a8(0x2,_0x2bddd4[_0x376b45(0x1cd)])],_0x13a726[_0x376b45(0x1df)]),_0x13a726['ExportXLSXOperation']=_0x1e342f,_0x13a726[_0x376b45(0x1fd)]=_0x1b4719,Object['defineProperty'](_0x13a726,Symbol[_0x376b45(0x1cc)],{'value':_0x376b45(0x20a)});}));function _0x5c5e(){const _0x3a503c=['16783bXDlSY','88CGbmyK','Injector','IExchangeOperateService','BUTTON','forEach','exportXLSXByUnitId','importXLSXToUnitId','add','DependentOn','19143aiNFQP','SUBITEMS','ImportXLSXOperation','@univerjs-pro/exchange-client','exchange.download','length','getOwnPropertyDescriptor','1517527bcSliM','UNIVER_SHEET','@univerjs/core','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','_injector','DirectExportSingle','UniverSheets','Module','2063876ekkfCa','30YrgmFl','Plugin','Disposable','5GKlmXv','onReady','12gexdVN','getCurrentRangeDisable$','_configService','@univerjs/sheets','type','UniverSheetsExchangeClient','exchange-client.operation.import-xlsx','FILE','_initCommands','toStringTag','IConfigService','disposeWithMe','1729182mraYvv','exports','4117554prkAfo','getMenuHiddenObservable','MenuItemType','19932QlmPjw','UniverExchangeClient','function','LifecycleStages','sheets-exchange-client.operation.exchange','menu','UniverExchangeClientPlugin','@univerjs/ui','_commandService','Ready','@univerjs/sheets-ui','UniverSheetsExchangeClientPlugin','UniverInstanceType','CommandType','OnLifecycle','registerCommand','exchange.file','1ggruCp','exchange.upload','_initMenus','IMenuManagerService','setConfig','UniverCore','_menuManagerService','defineProperty','Inject','get','initialize','867951ioBVJD'];_0x5c5e=function(){return _0x3a503c;};return _0x5c5e();}
1
+ function _0x4b97(){const _0x16dfb7=['32dbPFbG','84FCJzBy','UniverSheetsExchangeClientPlugin','Ready','getCurrentRangeDisable$','WorkbookExportPermission','CommandType','477840sSPLOp','IConfigService','281699biQhlW','Module','OPERATION','IMenuManagerService','_injector','registerCommand','154JaNswN','function','get','exportXLSXByUnitId','UniverSheets','defineProperty','exchange-client.operation.import-xlsx','IExchangeOperateService','ICommandService','sheets-exchange-client.operation.exchange','@univerjs/core','6274ZRHmjr','UniverInstanceType','UniverSheetsExchangeClient','UniverCore','BUTTON','exchange.upload','sheets-exchange-client.config','144858AolWUf','UniverExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.download','Inject','Injector','_config','DirectExportSingle','FILE','@univerjs-pro/exchange-client','@univerjs/ui','_commandService','add','forEach','pluginName','_initMenus','onReady','exchange-client.operation.export-xlsx','110hvSKyg','initialize','exchange.file','OnLifecycle','_initCommands','Plugin','disposeWithMe','setConfig','UNIVER_SHEET','FolderSingle','_configService','_menuManagerService','getOwnPropertyDescriptor','RibbonStartGroup','MenuItemType','@univerjs/sheets','object','type','DependentOn','LifecycleStages','29952xSJhxE','Disposable','23391GEDrXG','74232mxnnxy','@univerjs/sheets-ui','ExportSingle'];_0x4b97=function(){return _0x16dfb7;};return _0x4b97();}function _0x3a37(_0x37ae3f,_0x2fc3e0){const _0x4b9753=_0x4b97();return _0x3a37=function(_0x3a3766,_0x1d334e){_0x3a3766=_0x3a3766-0x160;let _0x2cba2a=_0x4b9753[_0x3a3766];return _0x2cba2a;},_0x3a37(_0x37ae3f,_0x2fc3e0);}(function(_0x4bd6b1,_0x1fc2a8){const _0xa97a2a=_0x3a37,_0x2ce1c6=_0x4bd6b1();while(!![]){try{const _0x4a3d49=-parseInt(_0xa97a2a(0x19b))/0x1*(-parseInt(_0xa97a2a(0x167))/0x2)+-parseInt(_0xa97a2a(0x194))/0x3*(-parseInt(_0xa97a2a(0x19a))/0x4)+parseInt(_0xa97a2a(0x1a1))/0x5+parseInt(_0xa97a2a(0x16e))/0x6+parseInt(_0xa97a2a(0x1a9))/0x7*(-parseInt(_0xa97a2a(0x197))/0x8)+parseInt(_0xa97a2a(0x196))/0x9*(-parseInt(_0xa97a2a(0x180))/0xa)+-parseInt(_0xa97a2a(0x1a3))/0xb;if(_0x4a3d49===_0x1fc2a8)break;else _0x2ce1c6['push'](_0x2ce1c6['shift']());}catch(_0x16a1df){_0x2ce1c6['push'](_0x2ce1c6['shift']());}}}(_0x4b97,0x31fd3),function(_0x53c01d,_0x40a82e){const _0x42323e=_0x3a37;typeof exports==_0x42323e(0x190)&&typeof module<'u'?_0x40a82e(exports,require('@univerjs/core'),require(_0x42323e(0x177)),require('@univerjs/ui'),require('@univerjs/sheets-ui'),require(_0x42323e(0x18f))):typeof define==_0x42323e(0x1aa)&&define['amd']?define(['exports',_0x42323e(0x166),_0x42323e(0x177),_0x42323e(0x178),_0x42323e(0x198),_0x42323e(0x18f)],_0x40a82e):(_0x53c01d=typeof globalThis<'u'?globalThis:_0x53c01d||self,_0x40a82e(_0x53c01d[_0x42323e(0x169)]={},_0x53c01d[_0x42323e(0x16a)],_0x53c01d[_0x42323e(0x16f)],_0x53c01d['UniverUi'],_0x53c01d['UniverSheetsUi'],_0x53c01d[_0x42323e(0x160)]));}(this,function(_0x31a99c,_0x182659,_0x58d6cd,_0xf1b520,_0x4b9879,_0x54b683){'use strict';const _0x59cf2c=_0x3a37;const _0x1badbe={'id':_0x59cf2c(0x162),'type':_0x182659[_0x59cf2c(0x1a0)][_0x59cf2c(0x1a5)],'handler':async _0x2dd8b8=>(_0x2dd8b8['get'](_0x58d6cd[_0x59cf2c(0x163)])['importXLSXToUnitId'](),!0x0)},_0x5df98a={'id':_0x59cf2c(0x17f),'type':_0x182659[_0x59cf2c(0x1a0)]['OPERATION'],'handler':async _0x13e9f7=>(_0x13e9f7[_0x59cf2c(0x1ab)](_0x58d6cd[_0x59cf2c(0x163)])[_0x59cf2c(0x1ac)](),!0x0)},_0x38ada7=_0x59cf2c(0x165);function _0x8c7b6c(_0x26cdc2){const _0x3aeadb=_0x59cf2c;return{'id':_0x38ada7,'type':_0xf1b520[_0x3aeadb(0x18e)]['SUBITEMS'],'icon':_0x3aeadb(0x175),'tooltip':_0x3aeadb(0x182),'hidden$':_0xf1b520['getMenuHiddenObservable'](_0x26cdc2,_0x182659[_0x3aeadb(0x168)]['UNIVER_SHEET']),'disabled$':_0x4b9879[_0x3aeadb(0x19e)](_0x26cdc2,{'workbookTypes':[_0x54b683[_0x3aeadb(0x19f)]]})};}function _0x20b022(){const _0x174c91=_0x59cf2c;return{'id':_0x1badbe['id'],'type':_0xf1b520[_0x174c91(0x18e)][_0x174c91(0x16b)],'title':_0x174c91(0x16c),'icon':_0x174c91(0x189)};}function _0x2a609b(){const _0x450351=_0x59cf2c;return{'id':_0x5df98a['id'],'type':_0xf1b520['MenuItemType'][_0x450351(0x16b)],'title':_0x450351(0x171),'icon':_0x450351(0x199)};}const _0x5373d7={[_0xf1b520[_0x59cf2c(0x18d)][_0x59cf2c(0x176)]]:{[_0x38ada7]:{'order':0x4,'menuItemFactory':_0x8c7b6c,[_0x1badbe['id']]:{'order':0x0,'menuItemFactory':_0x20b022},[_0x5df98a['id']]:{'order':0x1,'menuItemFactory':_0x2a609b}}}};var _0x2b425a=Object['defineProperty'],_0x47bfb9=Object[_0x59cf2c(0x18c)],_0x3768e2=(_0x5b0f78,_0x3c9fd2,_0x1e71b2,_0x297842)=>{for(var _0x31a326=_0x297842>0x1?void 0x0:_0x297842?_0x47bfb9(_0x3c9fd2,_0x1e71b2):_0x3c9fd2,_0x3a4090=_0x5b0f78['length']-0x1,_0x4bc42c;_0x3a4090>=0x0;_0x3a4090--)(_0x4bc42c=_0x5b0f78[_0x3a4090])&&(_0x31a326=(_0x297842?_0x4bc42c(_0x3c9fd2,_0x1e71b2,_0x31a326):_0x4bc42c(_0x31a326))||_0x31a326);return _0x297842&&_0x31a326&&_0x2b425a(_0x3c9fd2,_0x1e71b2,_0x31a326),_0x31a326;},_0x4f4c1d=(_0x28a173,_0x15aba9)=>(_0x24d180,_0x649b2f)=>_0x15aba9(_0x24d180,_0x649b2f,_0x28a173);let _0x5a6ad0=class extends _0x182659[_0x59cf2c(0x195)]{constructor(_0x550254,_0x2c9746){const _0x1289e6=_0x59cf2c;super(),this['_commandService']=_0x550254,this[_0x1289e6(0x18b)]=_0x2c9746,this[_0x1289e6(0x184)](),this[_0x1289e6(0x17d)]();}[_0x59cf2c(0x184)](){const _0x4b278d=_0x59cf2c;[_0x1badbe,_0x5df98a][_0x4b278d(0x17b)](_0x4fafd3=>{const _0x2e3903=_0x4b278d;this[_0x2e3903(0x186)](this[_0x2e3903(0x179)][_0x2e3903(0x1a8)](_0x4fafd3));});}[_0x59cf2c(0x17d)](){const _0x425db3=_0x59cf2c;this[_0x425db3(0x18b)]['mergeMenu'](_0x5373d7);}};_0x5a6ad0=_0x3768e2([_0x182659[_0x59cf2c(0x183)](_0x182659[_0x59cf2c(0x193)][_0x59cf2c(0x19d)],_0x5a6ad0),_0x4f4c1d(0x0,_0x182659[_0x59cf2c(0x164)]),_0x4f4c1d(0x1,_0xf1b520[_0x59cf2c(0x1a6)])],_0x5a6ad0);const _0x50e1d1=_0x59cf2c(0x16d),_0x276e90={};var _0x3bd675=Object[_0x59cf2c(0x161)],_0xc5d19e=Object[_0x59cf2c(0x18c)],_0x40b393=(_0x273035,_0x5b5458,_0x5e5383)=>_0x5b5458 in _0x273035?_0x3bd675(_0x273035,_0x5b5458,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e5383}):_0x273035[_0x5b5458]=_0x5e5383,_0x418ea5=(_0x459e58,_0x130876,_0x5b7763,_0x4c1c78)=>{for(var _0x5f2c69=_0x4c1c78>0x1?void 0x0:_0x4c1c78?_0xc5d19e(_0x130876,_0x5b7763):_0x130876,_0x4db968=_0x459e58['length']-0x1,_0x15078f;_0x4db968>=0x0;_0x4db968--)(_0x15078f=_0x459e58[_0x4db968])&&(_0x5f2c69=(_0x4c1c78?_0x15078f(_0x130876,_0x5b7763,_0x5f2c69):_0x15078f(_0x5f2c69))||_0x5f2c69);return _0x4c1c78&&_0x5f2c69&&_0x3bd675(_0x130876,_0x5b7763,_0x5f2c69),_0x5f2c69;},_0x28cf68=(_0x1763cc,_0x57cc96)=>(_0x434092,_0x403232)=>_0x57cc96(_0x434092,_0x403232,_0x1763cc),_0x562f11=(_0x26e7e9,_0x5bbfab,_0x5ae32b)=>_0x40b393(_0x26e7e9,typeof _0x5bbfab!='symbol'?_0x5bbfab+'':_0x5bbfab,_0x5ae32b);const _0x56ad27=_0x59cf2c(0x170);_0x31a99c[_0x59cf2c(0x19c)]=class extends _0x182659[_0x59cf2c(0x185)]{constructor(_0x3e62de=_0x276e90,_0x61729d,_0x54c1dd){const _0xc6305=_0x59cf2c;super(),this['_config']=_0x3e62de,this[_0xc6305(0x1a7)]=_0x61729d,this[_0xc6305(0x18a)]=_0x54c1dd;const {menu:_0x2044a2,..._0x4c0243}=this[_0xc6305(0x174)];_0x2044a2&&this[_0xc6305(0x18a)][_0xc6305(0x187)]('menu',_0x2044a2,{'merge':!0x0}),this[_0xc6305(0x18a)][_0xc6305(0x187)](_0x50e1d1,_0x4c0243);}[_0x59cf2c(0x181)](){const _0x538971=_0x59cf2c;[[_0x5a6ad0]][_0x538971(0x17b)](_0xbc533a=>this[_0x538971(0x1a7)][_0x538971(0x17a)](_0xbc533a));}[_0x59cf2c(0x17e)](){this['initialize']();}},_0x562f11(_0x31a99c['UniverSheetsExchangeClientPlugin'],_0x59cf2c(0x17c),_0x56ad27),_0x562f11(_0x31a99c['UniverSheetsExchangeClientPlugin'],_0x59cf2c(0x191),_0x182659['UniverInstanceType'][_0x59cf2c(0x188)]),_0x31a99c[_0x59cf2c(0x19c)]=_0x418ea5([_0x182659[_0x59cf2c(0x192)](_0x58d6cd['UniverExchangeClientPlugin']),_0x28cf68(0x1,_0x182659[_0x59cf2c(0x172)](_0x182659[_0x59cf2c(0x173)])),_0x28cf68(0x2,_0x182659[_0x59cf2c(0x1a2)])],_0x31a99c['UniverSheetsExchangeClientPlugin']),_0x31a99c['ExportXLSXOperation']=_0x5df98a,_0x31a99c['ImportXLSXOperation']=_0x1badbe,Object[_0x59cf2c(0x161)](_0x31a99c,Symbol['toStringTag'],{'value':_0x59cf2c(0x1a4)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.2.15",
3
+ "version": "0.3.0-alpha.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,25 +43,26 @@
43
43
  "lib"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@univerjs/sheets": "0.2.15",
47
- "@univerjs-pro/exchange-client": "0.2.15",
48
- "@univerjs/core": "0.2.15",
49
- "@univerjs/sheets-ui": "0.2.15",
50
- "@univerjs/ui": "0.2.15"
46
+ "@univerjs-pro/exchange-client": "0.3.0-alpha.1",
47
+ "@univerjs/core": "0.3.0-alpha.1",
48
+ "@univerjs/sheets": "0.3.0-alpha.1",
49
+ "@univerjs/sheets-ui": "0.3.0-alpha.1",
50
+ "@univerjs/ui": "0.3.0-alpha.1"
51
51
  },
52
52
  "dependencies": {
53
53
  "@univerjs/icons": "^0.1.78",
54
- "@univerjs/core": "0.2.15",
55
- "@univerjs/protocol": "0.1.39-alpha.15",
56
- "@univerjs/sheets": "0.2.15",
57
- "@univerjs/sheets-ui": "0.2.15",
58
- "@univerjs-pro/exchange-client": "0.2.15"
54
+ "@univerjs-pro/exchange-client": "0.3.0-alpha.1",
55
+ "@univerjs/core": "0.3.0-alpha.1",
56
+ "@univerjs/protocol": "0.1.39-alpha.22",
57
+ "@univerjs/ui": "0.3.0-alpha.1",
58
+ "@univerjs/sheets": "0.3.0-alpha.1",
59
+ "@univerjs/sheets-ui": "0.3.0-alpha.1"
59
60
  },
60
61
  "devDependencies": {
61
62
  "typescript": "^5.6.2",
62
- "vite": "^5.4.5",
63
- "vitest": "^2.1.0",
64
- "@univerjs-infra/shared": "0.2.15"
63
+ "vite": "^5.4.8",
64
+ "vitest": "^2.1.1",
65
+ "@univerjs-infra/shared": "0.3.0-alpha.1"
65
66
  },
66
67
  "univerSpace": {
67
68
  ".": {