@univerjs-pro/sheets-exchange-client 0.12.2 → 0.12.3-experimental.20251205-e439e48

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 _0xecff98=_0xfdf2;(function(_0x43dbee,_0xfd97a7){const _0x28cf79=_0xfdf2,_0x2676fd=_0x43dbee();while(!![]){try{const _0x92a956=-parseInt(_0x28cf79(0x1c2))/0x1+-parseInt(_0x28cf79(0x1e5))/0x2+parseInt(_0x28cf79(0x1c6))/0x3+-parseInt(_0x28cf79(0x1d2))/0x4+-parseInt(_0x28cf79(0x1e0))/0x5+parseInt(_0x28cf79(0x1ba))/0x6*(parseInt(_0x28cf79(0x1c5))/0x7)+parseInt(_0x28cf79(0x1b2))/0x8;if(_0x92a956===_0xfd97a7)break;else _0x2676fd['push'](_0x2676fd['shift']());}catch(_0x345053){_0x2676fd['push'](_0x2676fd['shift']());}}}(_0x89c2,0x79dc2));function _0x89c2(){const _0x1044e1=['_menuManagerService','Inject','Injector','disposeWithMe','SUBITEMS','symbol','16987992tkYvar','ExportIcon','CommandType','search','RibbonStartGroup','get','ExportXLSXOperation','exchange-client.operation.import-xlsx','2838606gzEoXI','UNIVER_SHEET','_injector','sheets-exchange-client.operation.exchange','Module','sheets-exchange-client.config','importXLSXToUnitId','BUTTON','176066wyUFhY','FolderIcon','forEach','7siGxXJ','682572eAmPxf','onReady','UniverInstanceType','_config','getMenuHiddenObservable','_initMenus','toStringTag','exportXLSXBySnapshot','defineProperty','setConfig','MenuItemType','unit','1194504NPpcGq','IConfigService','_commandService','IExchangeOperateService','pluginName','OPERATION','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','importXLSXToSnapshot','add','merge','type','getOwnPropertyDescriptor','exportXLSXByUnitId','4835765mEkRSX','exchange.file','length','ImportXLSXOperation','ICommandService','1766282MzslLm','Disposable','Plugin','UniverSheetsExchangeClientPlugin','onStarting','WorkbookExportPermission','_configService','getCurrentRangeDisable$','exchange.download'];_0x89c2=function(){return _0x1044e1;};return _0x89c2();}Object[_0xecff98(0x1ce)](exports,Symbol[_0xecff98(0x1cc)],{'value':_0xecff98(0x1be)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0xecff98(0x1b9),'type':i[_0xecff98(0x1b4)][_0xecff98(0x1d7)],'handler':async _0x1504d8=>{const _0x423701=_0xecff98,_0xafea6=_0x1504d8[_0x423701(0x1b7)](g[_0x423701(0x1d5)]);return new URLSearchParams(location[_0x423701(0x1b5)])[_0x423701(0x1b7)](_0x423701(0x1d1))?_0xafea6[_0x423701(0x1c0)]():_0xafea6[_0x423701(0x1da)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0xecff98(0x1d7)],'handler':async _0x189fb7=>{const _0x3bc643=_0xecff98,_0x315034=_0x189fb7[_0x3bc643(0x1b7)](g[_0x3bc643(0x1d5)]);return new URLSearchParams(location[_0x3bc643(0x1b5)])['get'](_0x3bc643(0x1d1))?_0x315034[_0x3bc643(0x1df)]():_0x315034[_0x3bc643(0x1cd)](),!0x0;}},v=_0xecff98(0x1bf),h={},S=_0xecff98(0x1bd);function x(_0x2b2859){const _0x17c175=_0xecff98;return{'id':S,'type':c[_0x17c175(0x1d0)][_0x17c175(0x1b0)],'icon':_0x17c175(0x1d8),'tooltip':_0x17c175(0x1e1),'hidden$':c[_0x17c175(0x1ca)](_0x2b2859,i['UniverInstanceType'][_0x17c175(0x1bb)]),'disabled$':I[_0x17c175(0x1aa)](_0x2b2859,{'workbookTypes':[_[_0x17c175(0x1ea)]]})};}function P(){const _0x5cea8a=_0xecff98;return{'id':l['id'],'type':c[_0x5cea8a(0x1d0)][_0x5cea8a(0x1c1)],'title':'exchange.upload','icon':_0x5cea8a(0x1c3)};}function _0xfdf2(_0x4bc3ab,_0x321023){const _0x89c26f=_0x89c2();return _0xfdf2=function(_0xfdf260,_0x3ecfda){_0xfdf260=_0xfdf260-0x1a9;let _0x5365a6=_0x89c26f[_0xfdf260];return _0x5365a6;},_0xfdf2(_0x4bc3ab,_0x321023);}function C(){const _0x569376=_0xecff98;return{'id':p['id'],'type':c[_0x569376(0x1d0)][_0x569376(0x1c1)],'title':_0x569376(0x1ab),'icon':_0x569376(0x1b3)};}const f={[c[_0xecff98(0x1b6)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x525edf,_0x3ebb01,_0x53f774,_0x46354d)=>{const _0x24378a=_0xecff98;for(var _0x161e39=_0x46354d>0x1?void 0x0:_0x46354d?T(_0x3ebb01,_0x53f774):_0x3ebb01,_0x10f1f9=_0x525edf[_0x24378a(0x1e2)]-0x1,_0x4ec3d7;_0x10f1f9>=0x0;_0x10f1f9--)(_0x4ec3d7=_0x525edf[_0x10f1f9])&&(_0x161e39=_0x4ec3d7(_0x161e39)||_0x161e39);return _0x161e39;},m=(_0x1271a9,_0x5acf2c)=>(_0x3f5a1c,_0x51bb93)=>_0x5acf2c(_0x3f5a1c,_0x51bb93,_0x1271a9);let u=class extends i[_0xecff98(0x1e6)]{constructor(_0x59cf1e,_0x575ae4){const _0x1c186d=_0xecff98;super(),this['_commandService']=_0x59cf1e,this[_0x1c186d(0x1ac)]=_0x575ae4,this['_initCommands'](),this[_0x1c186d(0x1cb)]();}['_initCommands'](){const _0x105537=_0xecff98;[l,p][_0x105537(0x1c4)](_0x418ab5=>{const _0x2780b5=_0x105537;this[_0x2780b5(0x1af)](this[_0x2780b5(0x1d4)]['registerCommand'](_0x418ab5));});}[_0xecff98(0x1cb)](){const _0xe7724a=_0xecff98;this[_0xe7724a(0x1ac)]['mergeMenu'](f);}};u=y([m(0x0,i[_0xecff98(0x1e4)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0xecff98(0x1ce)],U=Object[_0xecff98(0x1de)],X=(_0x368762,_0x46d37e,_0x366798)=>_0x46d37e in _0x368762?O(_0x368762,_0x46d37e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x366798}):_0x368762[_0x46d37e]=_0x366798,N=(_0x45896b,_0x1c1343,_0x3ec300,_0x2ac142)=>{for(var _0x98e3a1=_0x2ac142>0x1?void 0x0:_0x2ac142?U(_0x1c1343,_0x3ec300):_0x1c1343,_0x2f9f67=_0x45896b['length']-0x1,_0x2f208b;_0x2f9f67>=0x0;_0x2f9f67--)(_0x2f208b=_0x45896b[_0x2f9f67])&&(_0x98e3a1=_0x2f208b(_0x98e3a1)||_0x98e3a1);return _0x98e3a1;},d=(_0x578171,_0x456c4c)=>(_0xa1d788,_0x400515)=>_0x456c4c(_0xa1d788,_0x400515,_0x578171),E=(_0x358a0f,_0x283b54,_0x54e7de)=>X(_0x358a0f,typeof _0x283b54!=_0xecff98(0x1b1)?_0x283b54+'':_0x283b54,_0x54e7de);const L=_0xecff98(0x1d9);exports[_0xecff98(0x1e8)]=class extends i[_0xecff98(0x1e7)]{constructor(_0x421073=h,_0x4256ac,_0x1eaee7){const _0x103f7c=_0xecff98;super(),this[_0x103f7c(0x1c9)]=_0x421073,this['_injector']=_0x4256ac,this['_configService']=_0x1eaee7;const {menu:_0x505715,..._0x21d925}=i[_0x103f7c(0x1dc)]({},h,this[_0x103f7c(0x1c9)]);_0x505715&&this['_configService'][_0x103f7c(0x1cf)]('menu',_0x505715,{'merge':!0x0}),this[_0x103f7c(0x1a9)][_0x103f7c(0x1cf)](v,_0x21d925);}[_0xecff98(0x1e9)](){const _0x3c0368=_0xecff98;[[u]][_0x3c0368(0x1c4)](_0x30b7cb=>this[_0x3c0368(0x1bc)][_0x3c0368(0x1db)](_0x30b7cb));}[_0xecff98(0x1c7)](){const _0x3320a6=_0xecff98;this[_0x3320a6(0x1bc)][_0x3320a6(0x1b7)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0xecff98(0x1d6),L),E(exports[_0xecff98(0x1e8)],_0xecff98(0x1dd),i[_0xecff98(0x1c8)][_0xecff98(0x1bb)]),exports[_0xecff98(0x1e8)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0xecff98(0x1ad)](i[_0xecff98(0x1ae)])),d(0x2,i[_0xecff98(0x1d3)])],exports[_0xecff98(0x1e8)]),exports[_0xecff98(0x1b8)]=p,exports[_0xecff98(0x1e3)]=l;
1
+ 'use strict';const _0x38aa2e=_0x38ca;(function(_0x5aaf68,_0x10302c){const _0x34b8c4=_0x38ca,_0x2a27dc=_0x5aaf68();while(!![]){try{const _0x3682bc=parseInt(_0x34b8c4(0x16e))/0x1+parseInt(_0x34b8c4(0x192))/0x2+parseInt(_0x34b8c4(0x183))/0x3+-parseInt(_0x34b8c4(0x16d))/0x4*(parseInt(_0x34b8c4(0x16a))/0x5)+-parseInt(_0x34b8c4(0x16c))/0x6+-parseInt(_0x34b8c4(0x196))/0x7*(-parseInt(_0x34b8c4(0x17e))/0x8)+-parseInt(_0x34b8c4(0x1a2))/0x9*(parseInt(_0x34b8c4(0x19a))/0xa);if(_0x3682bc===_0x10302c)break;else _0x2a27dc['push'](_0x2a27dc['shift']());}catch(_0x5366c9){_0x2a27dc['push'](_0x2a27dc['shift']());}}}(_0x4915,0x8a955));Object[_0x38aa2e(0x175)](exports,Symbol[_0x38aa2e(0x17d)],{'value':_0x38aa2e(0x1a7)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':_0x38aa2e(0x185),'type':i[_0x38aa2e(0x195)][_0x38aa2e(0x177)],'handler':async _0x403542=>{const _0x26f79b=_0x38aa2e,_0xaf3260=_0x403542['get'](g[_0x26f79b(0x19b)]);return new URLSearchParams(location[_0x26f79b(0x176)])[_0x26f79b(0x18e)](_0x26f79b(0x18d))?_0xaf3260[_0x26f79b(0x199)]():_0xaf3260[_0x26f79b(0x198)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x38aa2e(0x195)][_0x38aa2e(0x177)],'handler':async _0x2e738a=>{const _0xbe74ab=_0x38aa2e,_0x904dd3=_0x2e738a['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0xbe74ab(0x176)])[_0xbe74ab(0x18e)](_0xbe74ab(0x18d))?_0x904dd3[_0xbe74ab(0x174)]():_0x904dd3['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x38aa2e(0x178);function x(_0x1713e2){const _0x2f815b=_0x38aa2e;return{'id':S,'type':c[_0x2f815b(0x1a1)][_0x2f815b(0x194)],'icon':_0x2f815b(0x17a),'tooltip':_0x2f815b(0x191),'hidden$':c[_0x2f815b(0x18c)](_0x1713e2,i[_0x2f815b(0x172)][_0x2f815b(0x182)]),'disabled$':I[_0x2f815b(0x16f)](_0x1713e2,{'workbookTypes':[_[_0x2f815b(0x1a6)]]})};}function _0x38ca(_0x5bfbda,_0x78db31){_0x5bfbda=_0x5bfbda-0x16a;const _0x49153a=_0x4915();let _0x38ca0b=_0x49153a[_0x5bfbda];return _0x38ca0b;}function _0x4915(){const _0x350fc1=['6723AcrETx','_menuManagerService','exchange.upload','ExportIcon','WorkbookExportPermission','Module','UniverExchangeClientPlugin','_commandService','80IOnMxq','ImportXLSXOperation','2961996qPaztR','109204FuHJBu','845699kNAQpz','getCurrentRangeDisable$','disposeWithMe','Plugin','UniverInstanceType','getOwnPropertyDescriptor','exportXLSXByUnitId','defineProperty','search','OPERATION','sheets-exchange-client.operation.exchange','IMenuManagerService','DirectExportIcon','_configService','_initCommands','toStringTag','16mSPjTY','OTHERS','pluginName','type','UNIVER_SHEET','1584603QNiUBl','_initMenus','exchange-client.operation.import-xlsx','setConfig','_injector','menu','forEach','symbol','add','getMenuHiddenObservable','unit','get','registerCommand','merge','exchange.file','1220724DBKEGy','Disposable','SUBITEMS','CommandType','1652903EUuykk','FolderIcon','importXLSXToSnapshot','importXLSXToUnitId','12830CKRpwk','IExchangeOperateService','IConfigService','length','UniverSheetsExchangeClientPlugin','DependentOn','Inject','MenuItemType'];_0x4915=function(){return _0x350fc1;};return _0x4915();}function P(){const _0x2f14af=_0x38aa2e;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x2f14af(0x1a4),'icon':_0x2f14af(0x197)};}function C(){const _0x41dca3=_0x38aa2e;return{'id':p['id'],'type':c['MenuItemType']['BUTTON'],'title':'exchange.download','icon':_0x41dca3(0x1a5)};}const f={[c['RibbonStartGroup'][_0x38aa2e(0x17f)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x38aa2e(0x173)],y=(_0x54185c,_0x3105c7,_0x2055d1,_0x1cfa07)=>{const _0xd6f521=_0x38aa2e;for(var _0x3dc718=_0x1cfa07>0x1?void 0x0:_0x1cfa07?T(_0x3105c7,_0x2055d1):_0x3105c7,_0x42d9a4=_0x54185c[_0xd6f521(0x19d)]-0x1,_0x47e9d5;_0x42d9a4>=0x0;_0x42d9a4--)(_0x47e9d5=_0x54185c[_0x42d9a4])&&(_0x3dc718=_0x47e9d5(_0x3dc718)||_0x3dc718);return _0x3dc718;},m=(_0x1d4768,_0x1c3e8e)=>(_0x5d4ebc,_0x4b5617)=>_0x1c3e8e(_0x5d4ebc,_0x4b5617,_0x1d4768);let u=class extends i[_0x38aa2e(0x193)]{constructor(_0x66afbf,_0x288730){const _0x2fa7f7=_0x38aa2e;super(),this[_0x2fa7f7(0x1a9)]=_0x66afbf,this[_0x2fa7f7(0x1a3)]=_0x288730,this[_0x2fa7f7(0x17c)](),this[_0x2fa7f7(0x184)]();}[_0x38aa2e(0x17c)](){const _0x35f3e5=_0x38aa2e;[l,p][_0x35f3e5(0x189)](_0x132fe1=>{const _0x27a9d3=_0x35f3e5;this[_0x27a9d3(0x170)](this['_commandService'][_0x27a9d3(0x18f)](_0x132fe1));});}['_initMenus'](){const _0x11268e=_0x38aa2e;this[_0x11268e(0x1a3)]['mergeMenu'](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x38aa2e(0x179)])],u);var O=Object[_0x38aa2e(0x175)],U=Object['getOwnPropertyDescriptor'],X=(_0x12a36a,_0x255b4d,_0x57feb0)=>_0x255b4d in _0x12a36a?O(_0x12a36a,_0x255b4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57feb0}):_0x12a36a[_0x255b4d]=_0x57feb0,N=(_0x53d9f6,_0x2fe8ba,_0x5093e4,_0x238183)=>{const _0x3f4483=_0x38aa2e;for(var _0x25dcc4=_0x238183>0x1?void 0x0:_0x238183?U(_0x2fe8ba,_0x5093e4):_0x2fe8ba,_0x2247a4=_0x53d9f6[_0x3f4483(0x19d)]-0x1,_0x357701;_0x2247a4>=0x0;_0x2247a4--)(_0x357701=_0x53d9f6[_0x2247a4])&&(_0x25dcc4=_0x357701(_0x25dcc4)||_0x25dcc4);return _0x25dcc4;},d=(_0x11e66e,_0x4c292e)=>(_0x4001b0,_0x237cd7)=>_0x4c292e(_0x4001b0,_0x237cd7,_0x11e66e),E=(_0x5a511f,_0x2648e6,_0x185814)=>X(_0x5a511f,typeof _0x2648e6!=_0x38aa2e(0x18a)?_0x2648e6+'':_0x2648e6,_0x185814);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x38aa2e(0x19e)]=class extends i[_0x38aa2e(0x171)]{constructor(_0x22a493=h,_0x447da6,_0x14b5c2){const _0x2f3a2b=_0x38aa2e;super(),this['_config']=_0x22a493,this['_injector']=_0x447da6,this[_0x2f3a2b(0x17b)]=_0x14b5c2;const {menu:_0x2a1385,..._0x31a287}=i[_0x2f3a2b(0x190)]({},h,this['_config']);_0x2a1385&&this[_0x2f3a2b(0x17b)][_0x2f3a2b(0x186)](_0x2f3a2b(0x188),_0x2a1385,{'merge':!0x0}),this['_configService'][_0x2f3a2b(0x186)](v,_0x31a287);}['onStarting'](){const _0x155182=_0x38aa2e;[[u]][_0x155182(0x189)](_0x53f4d9=>this[_0x155182(0x187)][_0x155182(0x18b)](_0x53f4d9));}['onReady'](){const _0x217d95=_0x38aa2e;this[_0x217d95(0x187)][_0x217d95(0x18e)](u);}},E(exports[_0x38aa2e(0x19e)],_0x38aa2e(0x180),L),E(exports[_0x38aa2e(0x19e)],_0x38aa2e(0x181),i[_0x38aa2e(0x172)]['UNIVER_SHEET']),exports[_0x38aa2e(0x19e)]=N([i[_0x38aa2e(0x19f)](g[_0x38aa2e(0x1a8)]),d(0x1,i[_0x38aa2e(0x1a0)](i['Injector'])),d(0x2,i[_0x38aa2e(0x19c)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x38aa2e(0x16b)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5ee2cd=_0x532b;(function(_0x255f7c,_0x264760){const _0x4d74a2=_0x532b,_0x56fe34=_0x255f7c();while(!![]){try{const _0x256113=parseInt(_0x4d74a2(0xaf))/0x1+-parseInt(_0x4d74a2(0xa8))/0x2+parseInt(_0x4d74a2(0xb7))/0x3+-parseInt(_0x4d74a2(0xb6))/0x4*(-parseInt(_0x4d74a2(0xb4))/0x5)+-parseInt(_0x4d74a2(0xac))/0x6*(parseInt(_0x4d74a2(0xbc))/0x7)+-parseInt(_0x4d74a2(0xa1))/0x8+parseInt(_0x4d74a2(0xc2))/0x9;if(_0x256113===_0x264760)break;else _0x56fe34['push'](_0x56fe34['shift']());}catch(_0x32a8f4){_0x56fe34['push'](_0x56fe34['shift']());}}}(_0x2e4b,0x46043));import{IExchangeOperateService as _0x2ced38,UniverExchangeClientPlugin as _0x4ec5ac}from'@univerjs-pro/exchange-client';import{CommandType as _0x421d9f,UniverInstanceType as _0x4ddabc,Disposable as _0x1177af,ICommandService as _0x17ea83,DependentOn as _0x1744ec,Inject as _0x74ad80,Injector as _0x4d01d4,IConfigService as _0x4e2d53,Plugin as _0x5ebb9d,merge as _0x467d9b}from'@univerjs/core';import{MenuItemType as _0x4240e5,getMenuHiddenObservable as _0x19319d,RibbonStartGroup as _0x525851,IMenuManagerService as _0x162d9a}from'@univerjs/ui';import{WorkbookExportPermission as _0x509e33}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4f28ec}from'@univerjs/sheets-ui';const p={'id':_0x5ee2cd(0xad),'type':_0x421d9f[_0x5ee2cd(0xab)],'handler':async _0x59ba77=>{const _0xb313d4=_0x5ee2cd,_0x4e61a2=_0x59ba77[_0xb313d4(0x9f)](_0x2ced38);return new URLSearchParams(location[_0xb313d4(0xb1)])['get']('unit')?_0x4e61a2[_0xb313d4(0xbe)]():_0x4e61a2[_0xb313d4(0xa5)](),!0x0;}},u={'id':_0x5ee2cd(0xc6),'type':_0x421d9f[_0x5ee2cd(0xab)],'handler':async _0x39ce2c=>{const _0x396d0a=_0x5ee2cd,_0x5a43a5=_0x39ce2c['get'](_0x2ced38);return new URLSearchParams(location[_0x396d0a(0xb1)])[_0x396d0a(0x9f)](_0x396d0a(0xbb))?_0x5a43a5['exportXLSXByUnitId']():_0x5a43a5['exportXLSXBySnapshot'](),!0x0;}},H=_0x5ee2cd(0xc1),l={},S=_0x5ee2cd(0xa9);function R(_0x34189f){const _0x3d063a=_0x5ee2cd;return{'id':S,'type':_0x4240e5[_0x3d063a(0xa0)],'icon':'DirectExportIcon','tooltip':_0x3d063a(0xbd),'hidden$':_0x19319d(_0x34189f,_0x4ddabc[_0x3d063a(0xb2)]),'disabled$':_0x4f28ec(_0x34189f,{'workbookTypes':[_0x509e33]})};}function _0x2e4b(){const _0x4501ff=['disposeWithMe','search','UNIVER_SHEET','_initMenus','55AXgkRA','_menuManagerService','31640Kpqgsp','604257dNhGLo','onStarting','_configService','ExportIcon','unit','502782SVpEZU','exchange.file','importXLSXToUnitId','forEach','_initCommands','sheets-exchange-client.config','773217qupCXl','length','OTHERS','onReady','exchange-client.operation.export-xlsx','_config','setConfig','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','get','SUBITEMS','58184bknNDG','pluginName','BUTTON','exchange.upload','importXLSXToSnapshot','getOwnPropertyDescriptor','FolderIcon','983330tpNnJa','sheets-exchange-client.operation.exchange','_commandService','OPERATION','6ZlcBdF','exchange-client.operation.import-xlsx','_injector','483209FBmJIT'];_0x2e4b=function(){return _0x4501ff;};return _0x2e4b();}function w(){const _0x5c7e97=_0x5ee2cd;return{'id':p['id'],'type':_0x4240e5[_0x5c7e97(0xa3)],'title':_0x5c7e97(0xa4),'icon':_0x5c7e97(0xa7)};}function D(){const _0x33c8da=_0x5ee2cd;return{'id':u['id'],'type':_0x4240e5['BUTTON'],'title':'exchange.download','icon':_0x33c8da(0xba)};}const F={[_0x525851[_0x5ee2cd(0xc4)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5ee2cd(0xa6)],A=(_0x28da42,_0x5568cc,_0x1024f4,_0xe324b8)=>{const _0x418373=_0x5ee2cd;for(var _0x5aa1e7=_0xe324b8>0x1?void 0x0:_0xe324b8?G(_0x5568cc,_0x1024f4):_0x5568cc,_0x36abc4=_0x28da42[_0x418373(0xc3)]-0x1,_0xb91661;_0x36abc4>=0x0;_0x36abc4--)(_0xb91661=_0x28da42[_0x36abc4])&&(_0x5aa1e7=_0xb91661(_0x5aa1e7)||_0x5aa1e7);return _0x5aa1e7;},d=(_0x2e33a8,_0x41b2c0)=>(_0x17ff88,_0x96861)=>_0x41b2c0(_0x17ff88,_0x96861,_0x2e33a8);let c=class extends _0x1177af{constructor(_0x3a3029,_0xa42aea){const _0x29c545=_0x5ee2cd;super(),this[_0x29c545(0xaa)]=_0x3a3029,this[_0x29c545(0xb5)]=_0xa42aea,this[_0x29c545(0xc0)](),this[_0x29c545(0xb3)]();}['_initCommands'](){const _0x4f3938=_0x5ee2cd;[p,u][_0x4f3938(0xbf)](_0x35a2a8=>{const _0x32fa5b=_0x4f3938;this[_0x32fa5b(0xb0)](this[_0x32fa5b(0xaa)]['registerCommand'](_0x35a2a8));});}[_0x5ee2cd(0xb3)](){const _0x1b809e=_0x5ee2cd;this[_0x1b809e(0xb5)]['mergeMenu'](F);}};c=A([d(0x0,_0x17ea83),d(0x1,_0x162d9a)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x1316a4,_0x3edd62,_0xb3142a)=>_0x3edd62 in _0x1316a4?j(_0x1316a4,_0x3edd62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb3142a}):_0x1316a4[_0x3edd62]=_0xb3142a,V=(_0x28d891,_0x34b16c,_0x206602,_0x41267e)=>{for(var _0x5e6d61=_0x41267e>0x1?void 0x0:_0x41267e?B(_0x34b16c,_0x206602):_0x34b16c,_0x2066ac=_0x28d891['length']-0x1,_0x3017f9;_0x2066ac>=0x0;_0x2066ac--)(_0x3017f9=_0x28d891[_0x2066ac])&&(_0x5e6d61=_0x3017f9(_0x5e6d61)||_0x5e6d61);return _0x5e6d61;},_=(_0xebe4bb,_0x56931e)=>(_0x1e7daf,_0xde2a00)=>_0x56931e(_0x1e7daf,_0xde2a00,_0xebe4bb),I=(_0x1ad0ed,_0x40fb5d,_0x32ddb0)=>$(_0x1ad0ed,typeof _0x40fb5d!=_0x5ee2cd(0x9e)?_0x40fb5d+'':_0x40fb5d,_0x32ddb0);function _0x532b(_0x293cc9,_0x213aaa){const _0x2e4bc2=_0x2e4b();return _0x532b=function(_0x532bd0,_0x5878da){_0x532bd0=_0x532bd0-0x9d;let _0x381e55=_0x2e4bc2[_0x532bd0];return _0x381e55;},_0x532b(_0x293cc9,_0x213aaa);}const W=_0x5ee2cd(0x9d);let s=class extends _0x5ebb9d{constructor(_0x3ec846=l,_0x4317b1,_0x2e8fb2){const _0x5147ca=_0x5ee2cd;super(),this[_0x5147ca(0xc7)]=_0x3ec846,this[_0x5147ca(0xae)]=_0x4317b1,this['_configService']=_0x2e8fb2;const {menu:_0x5db4b7,..._0x2245d4}=_0x467d9b({},l,this['_config']);_0x5db4b7&&this['_configService']['setConfig']('menu',_0x5db4b7,{'merge':!0x0}),this[_0x5147ca(0xb9)][_0x5147ca(0xc8)](H,_0x2245d4);}[_0x5ee2cd(0xb8)](){const _0x3a0aeb=_0x5ee2cd;[[c]][_0x3a0aeb(0xbf)](_0x79ebb=>this[_0x3a0aeb(0xae)]['add'](_0x79ebb));}[_0x5ee2cd(0xc5)](){const _0x12d5c0=_0x5ee2cd;this[_0x12d5c0(0xae)][_0x12d5c0(0x9f)](c);}};I(s,_0x5ee2cd(0xa2),W),I(s,'type',_0x4ddabc[_0x5ee2cd(0xb2)]),s=V([_0x1744ec(_0x4ec5ac),_(0x1,_0x74ad80(_0x4d01d4)),_(0x2,_0x4e2d53)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x2f70c1=_0x322a;(function(_0x5b4d70,_0x30f806){const _0x2f9307=_0x322a,_0x2a3167=_0x5b4d70();while(!![]){try{const _0x4c3511=parseInt(_0x2f9307(0x187))/0x1+-parseInt(_0x2f9307(0x16f))/0x2+-parseInt(_0x2f9307(0x15f))/0x3+-parseInt(_0x2f9307(0x17e))/0x4*(parseInt(_0x2f9307(0x162))/0x5)+parseInt(_0x2f9307(0x179))/0x6*(parseInt(_0x2f9307(0x18a))/0x7)+-parseInt(_0x2f9307(0x161))/0x8+parseInt(_0x2f9307(0x165))/0x9;if(_0x4c3511===_0x30f806)break;else _0x2a3167['push'](_0x2a3167['shift']());}catch(_0x24a685){_0x2a3167['push'](_0x2a3167['shift']());}}}(_0x252c,0xac9f2));import{IExchangeOperateService as _0x2d53c8,UniverExchangeClientPlugin as _0x1e1482}from'@univerjs-pro/exchange-client';import{CommandType as _0x539d71,UniverInstanceType as _0x440a04,Disposable as _0x2002d9,ICommandService as _0x1e9011,DependentOn as _0x39526b,Inject as _0x5d3926,Injector as _0x4223d5,IConfigService as _0x1c92ce,Plugin as _0x4f534a,merge as _0x2a744d}from'@univerjs/core';import{MenuItemType as _0x9eba90,getMenuHiddenObservable as _0x25ceb9,RibbonStartGroup as _0x2ccfbb,IMenuManagerService as _0x3d73c9}from'@univerjs/ui';import{WorkbookExportPermission as _0x5713e1}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x47703b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x539d71[_0x2f70c1(0x169)],'handler':async _0x5b3a53=>{const _0xe5eb8d=_0x2f70c1,_0x5e58ab=_0x5b3a53[_0xe5eb8d(0x177)](_0x2d53c8);return new URLSearchParams(location[_0xe5eb8d(0x17f)])[_0xe5eb8d(0x177)](_0xe5eb8d(0x182))?_0x5e58ab[_0xe5eb8d(0x18c)]():_0x5e58ab[_0xe5eb8d(0x18b)](),!0x0;}},u={'id':_0x2f70c1(0x16a),'type':_0x539d71['OPERATION'],'handler':async _0x5b004e=>{const _0x10cdf8=_0x2f70c1,_0x2baca2=_0x5b004e[_0x10cdf8(0x177)](_0x2d53c8);return new URLSearchParams(location[_0x10cdf8(0x17f)])[_0x10cdf8(0x177)]('unit')?_0x2baca2['exportXLSXByUnitId']():_0x2baca2[_0x10cdf8(0x186)](),!0x0;}},H=_0x2f70c1(0x183),l={},S=_0x2f70c1(0x16d);function R(_0x50959b){const _0x230e9f=_0x2f70c1;return{'id':S,'type':_0x9eba90[_0x230e9f(0x188)],'icon':_0x230e9f(0x172),'tooltip':_0x230e9f(0x175),'hidden$':_0x25ceb9(_0x50959b,_0x440a04[_0x230e9f(0x178)]),'disabled$':_0x47703b(_0x50959b,{'workbookTypes':[_0x5713e1]})};}function w(){const _0xe4c0c7=_0x2f70c1;return{'id':p['id'],'type':_0x9eba90[_0xe4c0c7(0x16b)],'title':_0xe4c0c7(0x167),'icon':_0xe4c0c7(0x174)};}function D(){const _0x1172e4=_0x2f70c1;return{'id':u['id'],'type':_0x9eba90[_0x1172e4(0x16b)],'title':'exchange.download','icon':_0x1172e4(0x16c)};}const F={[_0x2ccfbb[_0x2f70c1(0x173)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2f70c1(0x17b)],A=(_0x5b5645,_0xdbea1c,_0x17713b,_0x59916a)=>{const _0x1ed868=_0x2f70c1;for(var _0x2df1e5=_0x59916a>0x1?void 0x0:_0x59916a?G(_0xdbea1c,_0x17713b):_0xdbea1c,_0x1af603=_0x5b5645[_0x1ed868(0x180)]-0x1,_0x4c3d43;_0x1af603>=0x0;_0x1af603--)(_0x4c3d43=_0x5b5645[_0x1af603])&&(_0x2df1e5=_0x4c3d43(_0x2df1e5)||_0x2df1e5);return _0x2df1e5;},d=(_0x329f66,_0x53f744)=>(_0x1357ef,_0x487764)=>_0x53f744(_0x1357ef,_0x487764,_0x329f66);let c=class extends _0x2002d9{constructor(_0x422f8c,_0x35871c){const _0x29737d=_0x2f70c1;super(),this[_0x29737d(0x17c)]=_0x422f8c,this['_menuManagerService']=_0x35871c,this[_0x29737d(0x184)](),this[_0x29737d(0x181)]();}[_0x2f70c1(0x184)](){const _0x1b9443=_0x2f70c1;[p,u][_0x1b9443(0x16e)](_0xb2598a=>{const _0x1abed4=_0x1b9443;this['disposeWithMe'](this[_0x1abed4(0x17c)][_0x1abed4(0x171)](_0xb2598a));});}[_0x2f70c1(0x181)](){const _0x21b70c=_0x2f70c1;this[_0x21b70c(0x168)][_0x21b70c(0x185)](F);}};c=A([d(0x0,_0x1e9011),d(0x1,_0x3d73c9)],c);function _0x322a(_0x25c319,_0x2d133e){_0x25c319=_0x25c319-0x15e;const _0x252c57=_0x252c();let _0x322a54=_0x252c57[_0x25c319];return _0x322a54;}var j=Object[_0x2f70c1(0x17a)],B=Object[_0x2f70c1(0x17b)],$=(_0x206c50,_0x8bd688,_0x3dde18)=>_0x8bd688 in _0x206c50?j(_0x206c50,_0x8bd688,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dde18}):_0x206c50[_0x8bd688]=_0x3dde18,V=(_0x425b5f,_0x271a31,_0x204b27,_0xca862f)=>{const _0xdf697=_0x2f70c1;for(var _0x312975=_0xca862f>0x1?void 0x0:_0xca862f?B(_0x271a31,_0x204b27):_0x271a31,_0x525fbe=_0x425b5f[_0xdf697(0x180)]-0x1,_0x566416;_0x525fbe>=0x0;_0x525fbe--)(_0x566416=_0x425b5f[_0x525fbe])&&(_0x312975=_0x566416(_0x312975)||_0x312975);return _0x312975;},_=(_0x5f4acf,_0x426bf3)=>(_0x3ad592,_0x557ede)=>_0x426bf3(_0x3ad592,_0x557ede,_0x5f4acf),I=(_0x132c26,_0x5ed702,_0x32e141)=>$(_0x132c26,typeof _0x5ed702!=_0x2f70c1(0x170)?_0x5ed702+'':_0x5ed702,_0x32e141);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4f534a{constructor(_0x587951=l,_0x2509cb,_0x24649f){const _0xbeee16=_0x2f70c1;super(),this[_0xbeee16(0x15e)]=_0x587951,this['_injector']=_0x2509cb,this['_configService']=_0x24649f;const {menu:_0x1416e4,..._0x25c170}=_0x2a744d({},l,this[_0xbeee16(0x15e)]);_0x1416e4&&this[_0xbeee16(0x163)]['setConfig']('menu',_0x1416e4,{'merge':!0x0}),this[_0xbeee16(0x163)][_0xbeee16(0x176)](H,_0x25c170);}[_0x2f70c1(0x17d)](){const _0x527b08=_0x2f70c1;[[c]][_0x527b08(0x16e)](_0x21a19f=>this['_injector'][_0x527b08(0x164)](_0x21a19f));}[_0x2f70c1(0x160)](){this['_injector']['get'](c);}};I(s,_0x2f70c1(0x189),W),I(s,_0x2f70c1(0x166),_0x440a04['UNIVER_SHEET']),s=V([_0x39526b(_0x1e1482),_(0x1,_0x5d3926(_0x4223d5)),_(0x2,_0x1c92ce)],s);function _0x252c(){const _0x5c44ef=['_configService','add','22288950MKEVha','type','exchange.upload','_menuManagerService','OPERATION','exchange-client.operation.export-xlsx','BUTTON','ExportIcon','sheets-exchange-client.operation.exchange','forEach','2281730MzDisj','symbol','registerCommand','DirectExportIcon','OTHERS','FolderIcon','exchange.file','setConfig','get','UNIVER_SHEET','267090IGSkOk','defineProperty','getOwnPropertyDescriptor','_commandService','onStarting','678272FhPYgY','search','length','_initMenus','unit','sheets-exchange-client.config','_initCommands','mergeMenu','exportXLSXBySnapshot','755124msMfOO','SUBITEMS','pluginName','161dbBxEM','importXLSXToSnapshot','importXLSXToUnitId','_config','960687PWJSzj','onReady','7203128yyTAdk','35jUXZLY'];_0x252c=function(){return _0x5c44ef;};return _0x252c();}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5ee2cd=_0x532b;(function(_0x255f7c,_0x264760){const _0x4d74a2=_0x532b,_0x56fe34=_0x255f7c();while(!![]){try{const _0x256113=parseInt(_0x4d74a2(0xaf))/0x1+-parseInt(_0x4d74a2(0xa8))/0x2+parseInt(_0x4d74a2(0xb7))/0x3+-parseInt(_0x4d74a2(0xb6))/0x4*(-parseInt(_0x4d74a2(0xb4))/0x5)+-parseInt(_0x4d74a2(0xac))/0x6*(parseInt(_0x4d74a2(0xbc))/0x7)+-parseInt(_0x4d74a2(0xa1))/0x8+parseInt(_0x4d74a2(0xc2))/0x9;if(_0x256113===_0x264760)break;else _0x56fe34['push'](_0x56fe34['shift']());}catch(_0x32a8f4){_0x56fe34['push'](_0x56fe34['shift']());}}}(_0x2e4b,0x46043));import{IExchangeOperateService as _0x2ced38,UniverExchangeClientPlugin as _0x4ec5ac}from'@univerjs-pro/exchange-client';import{CommandType as _0x421d9f,UniverInstanceType as _0x4ddabc,Disposable as _0x1177af,ICommandService as _0x17ea83,DependentOn as _0x1744ec,Inject as _0x74ad80,Injector as _0x4d01d4,IConfigService as _0x4e2d53,Plugin as _0x5ebb9d,merge as _0x467d9b}from'@univerjs/core';import{MenuItemType as _0x4240e5,getMenuHiddenObservable as _0x19319d,RibbonStartGroup as _0x525851,IMenuManagerService as _0x162d9a}from'@univerjs/ui';import{WorkbookExportPermission as _0x509e33}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4f28ec}from'@univerjs/sheets-ui';const p={'id':_0x5ee2cd(0xad),'type':_0x421d9f[_0x5ee2cd(0xab)],'handler':async _0x59ba77=>{const _0xb313d4=_0x5ee2cd,_0x4e61a2=_0x59ba77[_0xb313d4(0x9f)](_0x2ced38);return new URLSearchParams(location[_0xb313d4(0xb1)])['get']('unit')?_0x4e61a2[_0xb313d4(0xbe)]():_0x4e61a2[_0xb313d4(0xa5)](),!0x0;}},u={'id':_0x5ee2cd(0xc6),'type':_0x421d9f[_0x5ee2cd(0xab)],'handler':async _0x39ce2c=>{const _0x396d0a=_0x5ee2cd,_0x5a43a5=_0x39ce2c['get'](_0x2ced38);return new URLSearchParams(location[_0x396d0a(0xb1)])[_0x396d0a(0x9f)](_0x396d0a(0xbb))?_0x5a43a5['exportXLSXByUnitId']():_0x5a43a5['exportXLSXBySnapshot'](),!0x0;}},H=_0x5ee2cd(0xc1),l={},S=_0x5ee2cd(0xa9);function R(_0x34189f){const _0x3d063a=_0x5ee2cd;return{'id':S,'type':_0x4240e5[_0x3d063a(0xa0)],'icon':'DirectExportIcon','tooltip':_0x3d063a(0xbd),'hidden$':_0x19319d(_0x34189f,_0x4ddabc[_0x3d063a(0xb2)]),'disabled$':_0x4f28ec(_0x34189f,{'workbookTypes':[_0x509e33]})};}function _0x2e4b(){const _0x4501ff=['disposeWithMe','search','UNIVER_SHEET','_initMenus','55AXgkRA','_menuManagerService','31640Kpqgsp','604257dNhGLo','onStarting','_configService','ExportIcon','unit','502782SVpEZU','exchange.file','importXLSXToUnitId','forEach','_initCommands','sheets-exchange-client.config','773217qupCXl','length','OTHERS','onReady','exchange-client.operation.export-xlsx','_config','setConfig','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','get','SUBITEMS','58184bknNDG','pluginName','BUTTON','exchange.upload','importXLSXToSnapshot','getOwnPropertyDescriptor','FolderIcon','983330tpNnJa','sheets-exchange-client.operation.exchange','_commandService','OPERATION','6ZlcBdF','exchange-client.operation.import-xlsx','_injector','483209FBmJIT'];_0x2e4b=function(){return _0x4501ff;};return _0x2e4b();}function w(){const _0x5c7e97=_0x5ee2cd;return{'id':p['id'],'type':_0x4240e5[_0x5c7e97(0xa3)],'title':_0x5c7e97(0xa4),'icon':_0x5c7e97(0xa7)};}function D(){const _0x33c8da=_0x5ee2cd;return{'id':u['id'],'type':_0x4240e5['BUTTON'],'title':'exchange.download','icon':_0x33c8da(0xba)};}const F={[_0x525851[_0x5ee2cd(0xc4)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5ee2cd(0xa6)],A=(_0x28da42,_0x5568cc,_0x1024f4,_0xe324b8)=>{const _0x418373=_0x5ee2cd;for(var _0x5aa1e7=_0xe324b8>0x1?void 0x0:_0xe324b8?G(_0x5568cc,_0x1024f4):_0x5568cc,_0x36abc4=_0x28da42[_0x418373(0xc3)]-0x1,_0xb91661;_0x36abc4>=0x0;_0x36abc4--)(_0xb91661=_0x28da42[_0x36abc4])&&(_0x5aa1e7=_0xb91661(_0x5aa1e7)||_0x5aa1e7);return _0x5aa1e7;},d=(_0x2e33a8,_0x41b2c0)=>(_0x17ff88,_0x96861)=>_0x41b2c0(_0x17ff88,_0x96861,_0x2e33a8);let c=class extends _0x1177af{constructor(_0x3a3029,_0xa42aea){const _0x29c545=_0x5ee2cd;super(),this[_0x29c545(0xaa)]=_0x3a3029,this[_0x29c545(0xb5)]=_0xa42aea,this[_0x29c545(0xc0)](),this[_0x29c545(0xb3)]();}['_initCommands'](){const _0x4f3938=_0x5ee2cd;[p,u][_0x4f3938(0xbf)](_0x35a2a8=>{const _0x32fa5b=_0x4f3938;this[_0x32fa5b(0xb0)](this[_0x32fa5b(0xaa)]['registerCommand'](_0x35a2a8));});}[_0x5ee2cd(0xb3)](){const _0x1b809e=_0x5ee2cd;this[_0x1b809e(0xb5)]['mergeMenu'](F);}};c=A([d(0x0,_0x17ea83),d(0x1,_0x162d9a)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0x1316a4,_0x3edd62,_0xb3142a)=>_0x3edd62 in _0x1316a4?j(_0x1316a4,_0x3edd62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb3142a}):_0x1316a4[_0x3edd62]=_0xb3142a,V=(_0x28d891,_0x34b16c,_0x206602,_0x41267e)=>{for(var _0x5e6d61=_0x41267e>0x1?void 0x0:_0x41267e?B(_0x34b16c,_0x206602):_0x34b16c,_0x2066ac=_0x28d891['length']-0x1,_0x3017f9;_0x2066ac>=0x0;_0x2066ac--)(_0x3017f9=_0x28d891[_0x2066ac])&&(_0x5e6d61=_0x3017f9(_0x5e6d61)||_0x5e6d61);return _0x5e6d61;},_=(_0xebe4bb,_0x56931e)=>(_0x1e7daf,_0xde2a00)=>_0x56931e(_0x1e7daf,_0xde2a00,_0xebe4bb),I=(_0x1ad0ed,_0x40fb5d,_0x32ddb0)=>$(_0x1ad0ed,typeof _0x40fb5d!=_0x5ee2cd(0x9e)?_0x40fb5d+'':_0x40fb5d,_0x32ddb0);function _0x532b(_0x293cc9,_0x213aaa){const _0x2e4bc2=_0x2e4b();return _0x532b=function(_0x532bd0,_0x5878da){_0x532bd0=_0x532bd0-0x9d;let _0x381e55=_0x2e4bc2[_0x532bd0];return _0x381e55;},_0x532b(_0x293cc9,_0x213aaa);}const W=_0x5ee2cd(0x9d);let s=class extends _0x5ebb9d{constructor(_0x3ec846=l,_0x4317b1,_0x2e8fb2){const _0x5147ca=_0x5ee2cd;super(),this[_0x5147ca(0xc7)]=_0x3ec846,this[_0x5147ca(0xae)]=_0x4317b1,this['_configService']=_0x2e8fb2;const {menu:_0x5db4b7,..._0x2245d4}=_0x467d9b({},l,this['_config']);_0x5db4b7&&this['_configService']['setConfig']('menu',_0x5db4b7,{'merge':!0x0}),this[_0x5147ca(0xb9)][_0x5147ca(0xc8)](H,_0x2245d4);}[_0x5ee2cd(0xb8)](){const _0x3a0aeb=_0x5ee2cd;[[c]][_0x3a0aeb(0xbf)](_0x79ebb=>this[_0x3a0aeb(0xae)]['add'](_0x79ebb));}[_0x5ee2cd(0xc5)](){const _0x12d5c0=_0x5ee2cd;this[_0x12d5c0(0xae)][_0x12d5c0(0x9f)](c);}};I(s,_0x5ee2cd(0xa2),W),I(s,'type',_0x4ddabc[_0x5ee2cd(0xb2)]),s=V([_0x1744ec(_0x4ec5ac),_(0x1,_0x74ad80(_0x4d01d4)),_(0x2,_0x4e2d53)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x2f70c1=_0x322a;(function(_0x5b4d70,_0x30f806){const _0x2f9307=_0x322a,_0x2a3167=_0x5b4d70();while(!![]){try{const _0x4c3511=parseInt(_0x2f9307(0x187))/0x1+-parseInt(_0x2f9307(0x16f))/0x2+-parseInt(_0x2f9307(0x15f))/0x3+-parseInt(_0x2f9307(0x17e))/0x4*(parseInt(_0x2f9307(0x162))/0x5)+parseInt(_0x2f9307(0x179))/0x6*(parseInt(_0x2f9307(0x18a))/0x7)+-parseInt(_0x2f9307(0x161))/0x8+parseInt(_0x2f9307(0x165))/0x9;if(_0x4c3511===_0x30f806)break;else _0x2a3167['push'](_0x2a3167['shift']());}catch(_0x24a685){_0x2a3167['push'](_0x2a3167['shift']());}}}(_0x252c,0xac9f2));import{IExchangeOperateService as _0x2d53c8,UniverExchangeClientPlugin as _0x1e1482}from'@univerjs-pro/exchange-client';import{CommandType as _0x539d71,UniverInstanceType as _0x440a04,Disposable as _0x2002d9,ICommandService as _0x1e9011,DependentOn as _0x39526b,Inject as _0x5d3926,Injector as _0x4223d5,IConfigService as _0x1c92ce,Plugin as _0x4f534a,merge as _0x2a744d}from'@univerjs/core';import{MenuItemType as _0x9eba90,getMenuHiddenObservable as _0x25ceb9,RibbonStartGroup as _0x2ccfbb,IMenuManagerService as _0x3d73c9}from'@univerjs/ui';import{WorkbookExportPermission as _0x5713e1}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x47703b}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x539d71[_0x2f70c1(0x169)],'handler':async _0x5b3a53=>{const _0xe5eb8d=_0x2f70c1,_0x5e58ab=_0x5b3a53[_0xe5eb8d(0x177)](_0x2d53c8);return new URLSearchParams(location[_0xe5eb8d(0x17f)])[_0xe5eb8d(0x177)](_0xe5eb8d(0x182))?_0x5e58ab[_0xe5eb8d(0x18c)]():_0x5e58ab[_0xe5eb8d(0x18b)](),!0x0;}},u={'id':_0x2f70c1(0x16a),'type':_0x539d71['OPERATION'],'handler':async _0x5b004e=>{const _0x10cdf8=_0x2f70c1,_0x2baca2=_0x5b004e[_0x10cdf8(0x177)](_0x2d53c8);return new URLSearchParams(location[_0x10cdf8(0x17f)])[_0x10cdf8(0x177)]('unit')?_0x2baca2['exportXLSXByUnitId']():_0x2baca2[_0x10cdf8(0x186)](),!0x0;}},H=_0x2f70c1(0x183),l={},S=_0x2f70c1(0x16d);function R(_0x50959b){const _0x230e9f=_0x2f70c1;return{'id':S,'type':_0x9eba90[_0x230e9f(0x188)],'icon':_0x230e9f(0x172),'tooltip':_0x230e9f(0x175),'hidden$':_0x25ceb9(_0x50959b,_0x440a04[_0x230e9f(0x178)]),'disabled$':_0x47703b(_0x50959b,{'workbookTypes':[_0x5713e1]})};}function w(){const _0xe4c0c7=_0x2f70c1;return{'id':p['id'],'type':_0x9eba90[_0xe4c0c7(0x16b)],'title':_0xe4c0c7(0x167),'icon':_0xe4c0c7(0x174)};}function D(){const _0x1172e4=_0x2f70c1;return{'id':u['id'],'type':_0x9eba90[_0x1172e4(0x16b)],'title':'exchange.download','icon':_0x1172e4(0x16c)};}const F={[_0x2ccfbb[_0x2f70c1(0x173)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2f70c1(0x17b)],A=(_0x5b5645,_0xdbea1c,_0x17713b,_0x59916a)=>{const _0x1ed868=_0x2f70c1;for(var _0x2df1e5=_0x59916a>0x1?void 0x0:_0x59916a?G(_0xdbea1c,_0x17713b):_0xdbea1c,_0x1af603=_0x5b5645[_0x1ed868(0x180)]-0x1,_0x4c3d43;_0x1af603>=0x0;_0x1af603--)(_0x4c3d43=_0x5b5645[_0x1af603])&&(_0x2df1e5=_0x4c3d43(_0x2df1e5)||_0x2df1e5);return _0x2df1e5;},d=(_0x329f66,_0x53f744)=>(_0x1357ef,_0x487764)=>_0x53f744(_0x1357ef,_0x487764,_0x329f66);let c=class extends _0x2002d9{constructor(_0x422f8c,_0x35871c){const _0x29737d=_0x2f70c1;super(),this[_0x29737d(0x17c)]=_0x422f8c,this['_menuManagerService']=_0x35871c,this[_0x29737d(0x184)](),this[_0x29737d(0x181)]();}[_0x2f70c1(0x184)](){const _0x1b9443=_0x2f70c1;[p,u][_0x1b9443(0x16e)](_0xb2598a=>{const _0x1abed4=_0x1b9443;this['disposeWithMe'](this[_0x1abed4(0x17c)][_0x1abed4(0x171)](_0xb2598a));});}[_0x2f70c1(0x181)](){const _0x21b70c=_0x2f70c1;this[_0x21b70c(0x168)][_0x21b70c(0x185)](F);}};c=A([d(0x0,_0x1e9011),d(0x1,_0x3d73c9)],c);function _0x322a(_0x25c319,_0x2d133e){_0x25c319=_0x25c319-0x15e;const _0x252c57=_0x252c();let _0x322a54=_0x252c57[_0x25c319];return _0x322a54;}var j=Object[_0x2f70c1(0x17a)],B=Object[_0x2f70c1(0x17b)],$=(_0x206c50,_0x8bd688,_0x3dde18)=>_0x8bd688 in _0x206c50?j(_0x206c50,_0x8bd688,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dde18}):_0x206c50[_0x8bd688]=_0x3dde18,V=(_0x425b5f,_0x271a31,_0x204b27,_0xca862f)=>{const _0xdf697=_0x2f70c1;for(var _0x312975=_0xca862f>0x1?void 0x0:_0xca862f?B(_0x271a31,_0x204b27):_0x271a31,_0x525fbe=_0x425b5f[_0xdf697(0x180)]-0x1,_0x566416;_0x525fbe>=0x0;_0x525fbe--)(_0x566416=_0x425b5f[_0x525fbe])&&(_0x312975=_0x566416(_0x312975)||_0x312975);return _0x312975;},_=(_0x5f4acf,_0x426bf3)=>(_0x3ad592,_0x557ede)=>_0x426bf3(_0x3ad592,_0x557ede,_0x5f4acf),I=(_0x132c26,_0x5ed702,_0x32e141)=>$(_0x132c26,typeof _0x5ed702!=_0x2f70c1(0x170)?_0x5ed702+'':_0x5ed702,_0x32e141);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4f534a{constructor(_0x587951=l,_0x2509cb,_0x24649f){const _0xbeee16=_0x2f70c1;super(),this[_0xbeee16(0x15e)]=_0x587951,this['_injector']=_0x2509cb,this['_configService']=_0x24649f;const {menu:_0x1416e4,..._0x25c170}=_0x2a744d({},l,this[_0xbeee16(0x15e)]);_0x1416e4&&this[_0xbeee16(0x163)]['setConfig']('menu',_0x1416e4,{'merge':!0x0}),this[_0xbeee16(0x163)][_0xbeee16(0x176)](H,_0x25c170);}[_0x2f70c1(0x17d)](){const _0x527b08=_0x2f70c1;[[c]][_0x527b08(0x16e)](_0x21a19f=>this['_injector'][_0x527b08(0x164)](_0x21a19f));}[_0x2f70c1(0x160)](){this['_injector']['get'](c);}};I(s,_0x2f70c1(0x189),W),I(s,_0x2f70c1(0x166),_0x440a04['UNIVER_SHEET']),s=V([_0x39526b(_0x1e1482),_(0x1,_0x5d3926(_0x4223d5)),_(0x2,_0x1c92ce)],s);function _0x252c(){const _0x5c44ef=['_configService','add','22288950MKEVha','type','exchange.upload','_menuManagerService','OPERATION','exchange-client.operation.export-xlsx','BUTTON','ExportIcon','sheets-exchange-client.operation.exchange','forEach','2281730MzDisj','symbol','registerCommand','DirectExportIcon','OTHERS','FolderIcon','exchange.file','setConfig','get','UNIVER_SHEET','267090IGSkOk','defineProperty','getOwnPropertyDescriptor','_commandService','onStarting','678272FhPYgY','search','length','_initMenus','unit','sheets-exchange-client.config','_initCommands','mergeMenu','exportXLSXBySnapshot','755124msMfOO','SUBITEMS','pluginName','161dbBxEM','importXLSXToSnapshot','importXLSXToUnitId','_config','960687PWJSzj','onReady','7203128yyTAdk','35jUXZLY'];_0x252c=function(){return _0x5c44ef;};return _0x252c();}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2d4a4c,_0x5141a6){const _0xd496f6=_0x1e7b,_0x104720=_0x2d4a4c();while(!![]){try{const _0x2638f0=-parseInt(_0xd496f6(0x17d))/0x1*(parseInt(_0xd496f6(0x1aa))/0x2)+parseInt(_0xd496f6(0x18e))/0x3+-parseInt(_0xd496f6(0x196))/0x4+parseInt(_0xd496f6(0x183))/0x5*(-parseInt(_0xd496f6(0x18c))/0x6)+parseInt(_0xd496f6(0x1a1))/0x7*(-parseInt(_0xd496f6(0x19c))/0x8)+-parseInt(_0xd496f6(0x1b3))/0x9*(parseInt(_0xd496f6(0x188))/0xa)+parseInt(_0xd496f6(0x172))/0xb;if(_0x2638f0===_0x5141a6)break;else _0x104720['push'](_0x104720['shift']());}catch(_0x1dcd98){_0x104720['push'](_0x104720['shift']());}}}(_0x20c6,0x68944),function(_0x458f7c,_0x322d09){const _0x1663e1=_0x1e7b;typeof exports==_0x1663e1(0x190)&&typeof module<'u'?_0x322d09(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1663e1(0x182)&&define[_0x1663e1(0x1a4)]?define([_0x1663e1(0x192),_0x1663e1(0x186),_0x1663e1(0x16e),_0x1663e1(0x169),'@univerjs/sheets',_0x1663e1(0x17e)],_0x322d09):(_0x458f7c=typeof globalThis<'u'?globalThis:_0x458f7c||self,_0x322d09(_0x458f7c[_0x1663e1(0x180)]={},_0x458f7c[_0x1663e1(0x187)],_0x458f7c[_0x1663e1(0x18f)],_0x458f7c[_0x1663e1(0x197)],_0x458f7c[_0x1663e1(0x1a5)],_0x458f7c[_0x1663e1(0x193)]));}(this,function(_0xa32a92,_0x4c2fa2,_0x22d9e5,_0x5bd283,_0x36b3ca,_0x318784){'use strict';const _0x2f99f8=_0x1e7b;const _0x2e05e8={'id':_0x2f99f8(0x19e),'type':_0x22d9e5[_0x2f99f8(0x178)][_0x2f99f8(0x171)],'handler':async _0x52764a=>{const _0x91684a=_0x2f99f8,_0xf07074=_0x52764a['get'](_0x4c2fa2['IExchangeOperateService']);return new URLSearchParams(location[_0x91684a(0x19b)])[_0x91684a(0x168)](_0x91684a(0x16c))?_0xf07074[_0x91684a(0x18b)]():_0xf07074[_0x91684a(0x184)](),!0x0;}},_0x1c0945={'id':'exchange-client.operation.export-xlsx','type':_0x22d9e5[_0x2f99f8(0x178)][_0x2f99f8(0x171)],'handler':async _0x4aaaa1=>{const _0x5e0b72=_0x2f99f8,_0x3d42ac=_0x4aaaa1[_0x5e0b72(0x168)](_0x4c2fa2['IExchangeOperateService']);return new URLSearchParams(location[_0x5e0b72(0x19b)])[_0x5e0b72(0x168)](_0x5e0b72(0x16c))?_0x3d42ac[_0x5e0b72(0x17f)]():_0x3d42ac[_0x5e0b72(0x174)](),!0x0;}},_0x23d24b=_0x2f99f8(0x181),_0x39882b={},_0x567952='sheets-exchange-client.operation.exchange';function _0x1a6186(_0x4b0b5e){const _0x20ad8e=_0x2f99f8;return{'id':_0x567952,'type':_0x5bd283['MenuItemType'][_0x20ad8e(0x1a7)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x5bd283['getMenuHiddenObservable'](_0x4b0b5e,_0x22d9e5[_0x20ad8e(0x194)]['UNIVER_SHEET']),'disabled$':_0x318784['getCurrentRangeDisable$'](_0x4b0b5e,{'workbookTypes':[_0x36b3ca[_0x20ad8e(0x176)]]})};}function _0x4460ca(){const _0x505757=_0x2f99f8;return{'id':_0x2e05e8['id'],'type':_0x5bd283[_0x505757(0x16b)]['BUTTON'],'title':_0x505757(0x1b5),'icon':_0x505757(0x16d)};}function _0x3c19e0(){const _0x2eb9b1=_0x2f99f8;return{'id':_0x1c0945['id'],'type':_0x5bd283['MenuItemType'][_0x2eb9b1(0x173)],'title':_0x2eb9b1(0x177),'icon':_0x2eb9b1(0x17c)};}const _0x327835={[_0x5bd283[_0x2f99f8(0x1a0)][_0x2f99f8(0x19f)]]:{[_0x567952]:{'order':0.3,'menuItemFactory':_0x1a6186,[_0x2e05e8['id']]:{'order':0x0,'menuItemFactory':_0x4460ca},[_0x1c0945['id']]:{'order':0x1,'menuItemFactory':_0x3c19e0}}}};var _0x3e0633=Object[_0x2f99f8(0x18d)],_0x394d77=(_0x483d6d,_0xfd80f1,_0x341a54,_0x97d59f)=>{for(var _0x329de4=_0x97d59f>0x1?void 0x0:_0x97d59f?_0x3e0633(_0xfd80f1,_0x341a54):_0xfd80f1,_0xbb2990=_0x483d6d['length']-0x1,_0xabb4c3;_0xbb2990>=0x0;_0xbb2990--)(_0xabb4c3=_0x483d6d[_0xbb2990])&&(_0x329de4=_0xabb4c3(_0x329de4)||_0x329de4);return _0x329de4;},_0x39b31b=(_0x18b63e,_0x1b07a8)=>(_0x58d9f9,_0x460bfe)=>_0x1b07a8(_0x58d9f9,_0x460bfe,_0x18b63e);let _0x4a3725=class extends _0x22d9e5['Disposable']{constructor(_0x27b39b,_0x792201){const _0x1446cc=_0x2f99f8;super(),this[_0x1446cc(0x170)]=_0x27b39b,this['_menuManagerService']=_0x792201,this[_0x1446cc(0x1b2)](),this[_0x1446cc(0x1a2)]();}[_0x2f99f8(0x1b2)](){const _0x164c60=_0x2f99f8;[_0x2e05e8,_0x1c0945][_0x164c60(0x175)](_0x3f5b82=>{const _0x43b3f0=_0x164c60;this['disposeWithMe'](this[_0x43b3f0(0x170)][_0x43b3f0(0x16f)](_0x3f5b82));});}[_0x2f99f8(0x1a2)](){const _0x9e72c8=_0x2f99f8;this[_0x9e72c8(0x1b1)][_0x9e72c8(0x1b4)](_0x327835);}};_0x4a3725=_0x394d77([_0x39b31b(0x0,_0x22d9e5[_0x2f99f8(0x19d)]),_0x39b31b(0x1,_0x5bd283[_0x2f99f8(0x1b6)])],_0x4a3725);var _0x592526=Object[_0x2f99f8(0x195)],_0x224c39=Object['getOwnPropertyDescriptor'],_0x5312cb=(_0x598741,_0x71e77c,_0x10fbba)=>_0x71e77c in _0x598741?_0x592526(_0x598741,_0x71e77c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10fbba}):_0x598741[_0x71e77c]=_0x10fbba,_0x8d57de=(_0x19cd62,_0x4a5e93,_0x19059c,_0x3ce692)=>{const _0x31a453=_0x2f99f8;for(var _0x573df9=_0x3ce692>0x1?void 0x0:_0x3ce692?_0x224c39(_0x4a5e93,_0x19059c):_0x4a5e93,_0x8b1f8f=_0x19cd62[_0x31a453(0x1a9)]-0x1,_0x31467f;_0x8b1f8f>=0x0;_0x8b1f8f--)(_0x31467f=_0x19cd62[_0x8b1f8f])&&(_0x573df9=_0x31467f(_0x573df9)||_0x573df9);return _0x573df9;},_0x3e2d1c=(_0x3b9e0a,_0x35eb7a)=>(_0x21f098,_0x49e899)=>_0x35eb7a(_0x21f098,_0x49e899,_0x3b9e0a),_0x771371=(_0x516bad,_0x449009,_0x4cf88a)=>_0x5312cb(_0x516bad,typeof _0x449009!='symbol'?_0x449009+'':_0x449009,_0x4cf88a);const _0x5b4970=_0x2f99f8(0x1ac);_0xa32a92[_0x2f99f8(0x185)]=class extends _0x22d9e5[_0x2f99f8(0x17a)]{constructor(_0x1b59a1=_0x39882b,_0x46252e,_0x1ed2a5){const _0x11f1c1=_0x2f99f8;super(),this[_0x11f1c1(0x17b)]=_0x1b59a1,this[_0x11f1c1(0x189)]=_0x46252e,this['_configService']=_0x1ed2a5;const {menu:_0x2733e9,..._0x458db9}=_0x22d9e5[_0x11f1c1(0x1ab)]({},_0x39882b,this[_0x11f1c1(0x17b)]);_0x2733e9&&this[_0x11f1c1(0x191)][_0x11f1c1(0x1a8)](_0x11f1c1(0x1ad),_0x2733e9,{'merge':!0x0}),this[_0x11f1c1(0x191)]['setConfig'](_0x23d24b,_0x458db9);}[_0x2f99f8(0x1af)](){const _0x2f75e6=_0x2f99f8;[[_0x4a3725]][_0x2f75e6(0x175)](_0x35dd79=>this[_0x2f75e6(0x189)][_0x2f75e6(0x179)](_0x35dd79));}[_0x2f99f8(0x1ae)](){const _0xd217b7=_0x2f99f8;this[_0xd217b7(0x189)][_0xd217b7(0x168)](_0x4a3725);}},_0x771371(_0xa32a92['UniverSheetsExchangeClientPlugin'],'pluginName',_0x5b4970),_0x771371(_0xa32a92[_0x2f99f8(0x185)],_0x2f99f8(0x16a),_0x22d9e5[_0x2f99f8(0x194)][_0x2f99f8(0x18a)]),_0xa32a92[_0x2f99f8(0x185)]=_0x8d57de([_0x22d9e5[_0x2f99f8(0x1b0)](_0x4c2fa2['UniverExchangeClientPlugin']),_0x3e2d1c(0x1,_0x22d9e5[_0x2f99f8(0x1a3)](_0x22d9e5['Injector'])),_0x3e2d1c(0x2,_0x22d9e5[_0x2f99f8(0x198)])],_0xa32a92[_0x2f99f8(0x185)]),_0xa32a92[_0x2f99f8(0x19a)]=_0x1c0945,_0xa32a92[_0x2f99f8(0x1a6)]=_0x2e05e8,Object[_0x2f99f8(0x195)](_0xa32a92,Symbol[_0x2f99f8(0x199)],{'value':'Module'});}));function _0x1e7b(_0x4b28c1,_0x338faa){const _0x20c685=_0x20c6();return _0x1e7b=function(_0x1e7b6b,_0xad14fd){_0x1e7b6b=_0x1e7b6b-0x168;let _0x3dcf76=_0x20c685[_0x1e7b6b];return _0x3dcf76;},_0x1e7b(_0x4b28c1,_0x338faa);}function _0x20c6(){const _0x59cef1=['Inject','amd','UniverSheets','ImportXLSXOperation','SUBITEMS','setConfig','length','10hGfbfu','merge','SHEET_EXCHANGE_CLIENT_PLUGIN','menu','onReady','onStarting','DependentOn','_menuManagerService','_initCommands','3141CrVJls','mergeMenu','exchange.upload','IMenuManagerService','get','@univerjs/ui','type','MenuItemType','unit','FolderIcon','@univerjs/core','registerCommand','_commandService','OPERATION','13079330aRVFOW','BUTTON','exportXLSXBySnapshot','forEach','WorkbookExportPermission','exchange.download','CommandType','add','Plugin','_config','ExportIcon','60206YxrSVC','@univerjs/sheets-ui','exportXLSXByUnitId','UniverProSheetsExchangeClient','sheets-exchange-client.config','function','1455VHljoG','importXLSXToSnapshot','UniverSheetsExchangeClientPlugin','@univerjs-pro/exchange-client','UniverProExchangeClient','2250HvBtkQ','_injector','UNIVER_SHEET','importXLSXToUnitId','90hEyJeo','getOwnPropertyDescriptor','2533878mmsROk','UniverCore','object','_configService','exports','UniverSheetsUi','UniverInstanceType','defineProperty','2079152UmZPMi','UniverUi','IConfigService','toStringTag','ExportXLSXOperation','search','248OJfNIl','ICommandService','exchange-client.operation.import-xlsx','OTHERS','RibbonStartGroup','158424wyjPTb','_initMenus'];_0x20c6=function(){return _0x59cef1;};return _0x20c6();}
1
+ (function(_0x2643e7,_0x20eec1){const _0x58b928=_0x4e9b,_0x54ca13=_0x2643e7();while(!![]){try{const _0x4def63=-parseInt(_0x58b928(0x13f))/0x1+parseInt(_0x58b928(0x147))/0x2*(-parseInt(_0x58b928(0x118))/0x3)+parseInt(_0x58b928(0x103))/0x4*(-parseInt(_0x58b928(0x120))/0x5)+parseInt(_0x58b928(0x126))/0x6+parseInt(_0x58b928(0x142))/0x7*(parseInt(_0x58b928(0xff))/0x8)+-parseInt(_0x58b928(0x104))/0x9+parseInt(_0x58b928(0x13b))/0xa;if(_0x4def63===_0x20eec1)break;else _0x54ca13['push'](_0x54ca13['shift']());}catch(_0xf1de2f){_0x54ca13['push'](_0x54ca13['shift']());}}}(_0x2c67,0x70263),function(_0x49b0f4,_0x1abde4){const _0x190587=_0x4e9b;typeof exports==_0x190587(0x108)&&typeof module<'u'?_0x1abde4(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x190587(0x132)&&define[_0x190587(0x123)]?define([_0x190587(0x105),_0x190587(0x127),_0x190587(0x111),_0x190587(0x10c),_0x190587(0x11a),_0x190587(0x12d)],_0x1abde4):(_0x49b0f4=typeof globalThis<'u'?globalThis:_0x49b0f4||self,_0x1abde4(_0x49b0f4[_0x190587(0x112)]={},_0x49b0f4['UniverProExchangeClient'],_0x49b0f4[_0x190587(0x140)],_0x49b0f4['UniverUi'],_0x49b0f4[_0x190587(0x13e)],_0x49b0f4[_0x190587(0x116)]));}(this,function(_0x5606c1,_0x55f476,_0x5dd12a,_0x14e668,_0x28b248,_0x3fd6ee){'use strict';const _0x1c9489=_0x4e9b;const _0x4269fb={'id':_0x1c9489(0x133),'type':_0x5dd12a[_0x1c9489(0x144)][_0x1c9489(0x136)],'handler':async _0x250db8=>{const _0x3d2141=_0x1c9489,_0x1f2cd0=_0x250db8[_0x3d2141(0x119)](_0x55f476[_0x3d2141(0x10a)]);return new URLSearchParams(location[_0x3d2141(0x110)])[_0x3d2141(0x119)](_0x3d2141(0x10d))?_0x1f2cd0['importXLSXToUnitId']():_0x1f2cd0['importXLSXToSnapshot'](),!0x0;}},_0xb0a498={'id':_0x1c9489(0x141),'type':_0x5dd12a[_0x1c9489(0x144)][_0x1c9489(0x136)],'handler':async _0x54314c=>{const _0x5c89e1=_0x1c9489,_0x3c820e=_0x54314c['get'](_0x55f476[_0x5c89e1(0x10a)]);return new URLSearchParams(location[_0x5c89e1(0x110)])['get'](_0x5c89e1(0x10d))?_0x3c820e[_0x5c89e1(0x100)]():_0x3c820e[_0x5c89e1(0x10e)](),!0x0;}},_0x18760e=_0x1c9489(0x11e),_0x15d40e={},_0x5a664b='sheets-exchange-client.operation.exchange';function _0x13a047(_0x10e629){const _0x5c8784=_0x1c9489;return{'id':_0x5a664b,'type':_0x14e668[_0x5c8784(0x106)][_0x5c8784(0x12e)],'icon':_0x5c8784(0x145),'tooltip':_0x5c8784(0x11b),'hidden$':_0x14e668[_0x5c8784(0x113)](_0x10e629,_0x5dd12a[_0x5c8784(0x12c)][_0x5c8784(0x102)]),'disabled$':_0x3fd6ee['getCurrentRangeDisable$'](_0x10e629,{'workbookTypes':[_0x28b248['WorkbookExportPermission']]})};}function _0x40fa81(){const _0x526420=_0x1c9489;return{'id':_0x4269fb['id'],'type':_0x14e668[_0x526420(0x106)][_0x526420(0x13a)],'title':_0x526420(0xfe),'icon':_0x526420(0x125)};}function _0xd1665d(){const _0x43b531=_0x1c9489;return{'id':_0xb0a498['id'],'type':_0x14e668[_0x43b531(0x106)][_0x43b531(0x13a)],'title':'exchange.download','icon':_0x43b531(0x109)};}const _0x4baa0c={[_0x14e668['RibbonStartGroup']['OTHERS']]:{[_0x5a664b]:{'order':0.3,'menuItemFactory':_0x13a047,[_0x4269fb['id']]:{'order':0x0,'menuItemFactory':_0x40fa81},[_0xb0a498['id']]:{'order':0x1,'menuItemFactory':_0xd1665d}}}};var _0x11f4f4=Object['getOwnPropertyDescriptor'],_0x3eac9a=(_0x5a3c61,_0x1225fa,_0x9c37c2,_0x36ba4e)=>{for(var _0x84361c=_0x36ba4e>0x1?void 0x0:_0x36ba4e?_0x11f4f4(_0x1225fa,_0x9c37c2):_0x1225fa,_0x1a7b71=_0x5a3c61['length']-0x1,_0x2a5b0b;_0x1a7b71>=0x0;_0x1a7b71--)(_0x2a5b0b=_0x5a3c61[_0x1a7b71])&&(_0x84361c=_0x2a5b0b(_0x84361c)||_0x84361c);return _0x84361c;},_0x3520d3=(_0xe9edaa,_0xf45861)=>(_0x1f3e3,_0x170eba)=>_0xf45861(_0x1f3e3,_0x170eba,_0xe9edaa);let _0x279ed5=class extends _0x5dd12a[_0x1c9489(0x139)]{constructor(_0x1376ae,_0x58ab61){const _0x46be6a=_0x1c9489;super(),this['_commandService']=_0x1376ae,this[_0x46be6a(0x121)]=_0x58ab61,this[_0x46be6a(0x11d)](),this[_0x46be6a(0x101)]();}[_0x1c9489(0x11d)](){const _0x12c2e4=_0x1c9489;[_0x4269fb,_0xb0a498][_0x12c2e4(0x124)](_0x50eeae=>{const _0x5ea4f8=_0x12c2e4;this[_0x5ea4f8(0x130)](this[_0x5ea4f8(0x12a)][_0x5ea4f8(0x12b)](_0x50eeae));});}[_0x1c9489(0x101)](){const _0xbf9362=_0x1c9489;this[_0xbf9362(0x121)][_0xbf9362(0x11c)](_0x4baa0c);}};_0x279ed5=_0x3eac9a([_0x3520d3(0x0,_0x5dd12a[_0x1c9489(0x129)]),_0x3520d3(0x1,_0x14e668['IMenuManagerService'])],_0x279ed5);var _0x3993c2=Object['defineProperty'],_0x32983b=Object[_0x1c9489(0x135)],_0x21ade5=(_0x1f4a75,_0x550f0f,_0x82e1a5)=>_0x550f0f in _0x1f4a75?_0x3993c2(_0x1f4a75,_0x550f0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x82e1a5}):_0x1f4a75[_0x550f0f]=_0x82e1a5,_0x16d5b0=(_0x3d5177,_0x5030f0,_0x432f36,_0x5cf55f)=>{for(var _0x304270=_0x5cf55f>0x1?void 0x0:_0x5cf55f?_0x32983b(_0x5030f0,_0x432f36):_0x5030f0,_0x143875=_0x3d5177['length']-0x1,_0x2da15a;_0x143875>=0x0;_0x143875--)(_0x2da15a=_0x3d5177[_0x143875])&&(_0x304270=_0x2da15a(_0x304270)||_0x304270);return _0x304270;},_0x33147d=(_0xb8576c,_0x1b3c4c)=>(_0x373b70,_0x1475db)=>_0x1b3c4c(_0x373b70,_0x1475db,_0xb8576c),_0x6b88e6=(_0x244d6b,_0xea07c4,_0x49ad55)=>_0x21ade5(_0x244d6b,typeof _0xea07c4!=_0x1c9489(0x107)?_0xea07c4+'':_0xea07c4,_0x49ad55);const _0x236b33='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5606c1[_0x1c9489(0x143)]=class extends _0x5dd12a[_0x1c9489(0x117)]{constructor(_0x7afa7e=_0x15d40e,_0x5d8da6,_0x594555){const _0x39fb80=_0x1c9489;super(),this[_0x39fb80(0x10b)]=_0x7afa7e,this[_0x39fb80(0x115)]=_0x5d8da6,this['_configService']=_0x594555;const {menu:_0x2e6080,..._0x516504}=_0x5dd12a[_0x39fb80(0x137)]({},_0x15d40e,this['_config']);_0x2e6080&&this[_0x39fb80(0x13d)][_0x39fb80(0x128)](_0x39fb80(0x134),_0x2e6080,{'merge':!0x0}),this[_0x39fb80(0x13d)][_0x39fb80(0x128)](_0x18760e,_0x516504);}[_0x1c9489(0x114)](){const _0xacebb8=_0x1c9489;[[_0x279ed5]]['forEach'](_0x2fafe2=>this[_0xacebb8(0x115)][_0xacebb8(0x13c)](_0x2fafe2));}[_0x1c9489(0xfd)](){const _0x19be50=_0x1c9489;this[_0x19be50(0x115)][_0x19be50(0x119)](_0x279ed5);}},_0x6b88e6(_0x5606c1[_0x1c9489(0x143)],'pluginName',_0x236b33),_0x6b88e6(_0x5606c1['UniverSheetsExchangeClientPlugin'],'type',_0x5dd12a[_0x1c9489(0x12c)][_0x1c9489(0x102)]),_0x5606c1[_0x1c9489(0x143)]=_0x16d5b0([_0x5dd12a['DependentOn'](_0x55f476[_0x1c9489(0x148)]),_0x33147d(0x1,_0x5dd12a[_0x1c9489(0x12f)](_0x5dd12a[_0x1c9489(0x10f)])),_0x33147d(0x2,_0x5dd12a[_0x1c9489(0x131)])],_0x5606c1[_0x1c9489(0x143)]),_0x5606c1[_0x1c9489(0x138)]=_0xb0a498,_0x5606c1[_0x1c9489(0x11f)]=_0x4269fb,Object[_0x1c9489(0x146)](_0x5606c1,Symbol[_0x1c9489(0x122)],{'value':'Module'});}));function _0x4e9b(_0x4e2067,_0x247780){_0x4e2067=_0x4e2067-0xfd;const _0x2c6778=_0x2c67();let _0x4e9bd7=_0x2c6778[_0x4e2067];return _0x4e9bd7;}function _0x2c67(){const _0x12b403=['ImportXLSXOperation','2869480Pkvyej','_menuManagerService','toStringTag','amd','forEach','FolderIcon','749268NxNyRP','@univerjs-pro/exchange-client','setConfig','ICommandService','_commandService','registerCommand','UniverInstanceType','@univerjs/sheets-ui','SUBITEMS','Inject','disposeWithMe','IConfigService','function','exchange-client.operation.import-xlsx','menu','getOwnPropertyDescriptor','OPERATION','merge','ExportXLSXOperation','Disposable','BUTTON','17607640PMJbDl','add','_configService','UniverSheets','877058fulLiF','UniverCore','exchange-client.operation.export-xlsx','5045712MNpbyl','UniverSheetsExchangeClientPlugin','CommandType','DirectExportIcon','defineProperty','312566YzEwCP','UniverExchangeClientPlugin','onReady','exchange.upload','8SRSlse','exportXLSXByUnitId','_initMenus','UNIVER_SHEET','4LINqWg','4858722rQUMcS','exports','MenuItemType','symbol','object','ExportIcon','IExchangeOperateService','_config','@univerjs/ui','unit','exportXLSXBySnapshot','Injector','search','@univerjs/core','UniverProSheetsExchangeClient','getMenuHiddenObservable','onStarting','_injector','UniverSheetsUi','Plugin','3QctfPE','get','@univerjs/sheets','exchange.file','mergeMenu','_initCommands','sheets-exchange-client.config'];_0x2c67=function(){return _0x12b403;};return _0x2c67();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.12.2",
3
+ "version": "0.12.3-experimental.20251205-e439e48",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,17 +42,17 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs-pro/exchange-client": "0.12.2",
46
- "@univerjs/sheets": "0.12.2",
47
- "@univerjs/ui": "0.12.2",
48
- "@univerjs/sheets-ui": "0.12.2",
49
- "@univerjs/core": "0.12.2"
45
+ "@univerjs-pro/exchange-client": "0.12.3-experimental.20251205-e439e48",
46
+ "@univerjs/sheets": "0.12.3-experimental.20251205-e439e48",
47
+ "@univerjs/core": "0.12.3-experimental.20251205-e439e48",
48
+ "@univerjs/sheets-ui": "0.12.3-experimental.20251205-e439e48",
49
+ "@univerjs/ui": "0.12.3-experimental.20251205-e439e48"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
- "vite": "^7.2.2",
54
- "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.12.2"
53
+ "vite": "^7.2.6",
54
+ "vitest": "^4.0.15",
55
+ "@univerjs-infra/shared": "0.12.3"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",