@univerjs-pro/sheets-exchange-client 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023

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 _0x5a7790=_0x4d6e;(function(_0x127a9f,_0x54d766){const _0x5e87b8=_0x4d6e,_0x1a0bf5=_0x127a9f();while(!![]){try{const _0xe473e9=parseInt(_0x5e87b8(0x122))/0x1+-parseInt(_0x5e87b8(0x13e))/0x2+parseInt(_0x5e87b8(0x120))/0x3+parseInt(_0x5e87b8(0x10d))/0x4+-parseInt(_0x5e87b8(0x117))/0x5+parseInt(_0x5e87b8(0x12e))/0x6+-parseInt(_0x5e87b8(0x141))/0x7;if(_0xe473e9===_0x54d766)break;else _0x1a0bf5['push'](_0x1a0bf5['shift']());}catch(_0x2727f5){_0x1a0bf5['push'](_0x1a0bf5['shift']());}}}(_0x3e57,0x7fafa));function _0x3e57(){const _0x2770e4=['exchange.upload','disposeWithMe','defineProperty','DependentOn','2962300ecTOFz','ExportXLSXOperation','ImportXLSXOperation','length','unit','MenuItemType','search','_initCommands','OPERATION','sheets-exchange-client.config','2361810qCSDZU','getCurrentRangeDisable$','get','onStarting','_commandService','_initMenus','WorkbookExportPermission','toStringTag','UniverSheetsExchangeClientPlugin','2531694UafHuf','IConfigService','812541SauvmO','_injector','FolderIcon','_config','getOwnPropertyDescriptor','Inject','mergeMenu','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','CommandType','UniverInstanceType','menu','1744740oASyVv','symbol','UniverExchangeClientPlugin','type','_menuManagerService','RibbonStartGroup','onReady','forEach','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','ExportIcon','ICommandService','exchange-client.operation.export-xlsx','merge','UNIVER_SHEET','Module','1499126gygcef','_configService','add','6600139OJddAY'];_0x3e57=function(){return _0x2770e4;};return _0x3e57();}Object[_0x5a7790(0x10b)](exports,Symbol[_0x5a7790(0x11e)],{'value':_0x5a7790(0x13d)});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':_0x5a7790(0x137),'type':i[_0x5a7790(0x12b)][_0x5a7790(0x115)],'handler':async _0x4dabe0=>{const _0x59c1a7=_0x5a7790,_0x16950a=_0x4dabe0[_0x59c1a7(0x119)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x59c1a7(0x113)])['get'](_0x59c1a7(0x111))?_0x16950a['importXLSXToUnitId']():_0x16950a['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x5a7790(0x13a),'type':i[_0x5a7790(0x12b)][_0x5a7790(0x115)],'handler':async _0x374f96=>{const _0x4a61eb=_0x5a7790,_0x1844b0=_0x374f96[_0x4a61eb(0x119)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x4a61eb(0x113)])[_0x4a61eb(0x119)](_0x4a61eb(0x111))?_0x1844b0['exportXLSXByUnitId']():_0x1844b0[_0x4a61eb(0x136)](),!0x0;}},v=_0x5a7790(0x116),h={},S='sheets-exchange-client.operation.exchange';function x(_0x2d33ec){const _0x5ea71e=_0x5a7790;return{'id':S,'type':c[_0x5ea71e(0x112)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c['getMenuHiddenObservable'](_0x2d33ec,i[_0x5ea71e(0x12c)]['UNIVER_SHEET']),'disabled$':I[_0x5ea71e(0x118)](_0x2d33ec,{'workbookTypes':[_[_0x5ea71e(0x11d)]]})};}function P(){const _0x29b9e7=_0x5a7790;return{'id':l['id'],'type':c[_0x29b9e7(0x112)][_0x29b9e7(0x129)],'title':_0x29b9e7(0x142),'icon':_0x29b9e7(0x124)};}function C(){const _0x4f19a8=_0x5a7790;return{'id':p['id'],'type':c[_0x4f19a8(0x112)][_0x4f19a8(0x129)],'title':'exchange.download','icon':_0x4f19a8(0x138)};}const f={[c[_0x5a7790(0x133)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x4d6e(_0x11206c,_0x20a82b){const _0x3e5731=_0x3e57();return _0x4d6e=function(_0x4d6e3e,_0x1669d9){_0x4d6e3e=_0x4d6e3e-0x10a;let _0x256894=_0x3e5731[_0x4d6e3e];return _0x256894;},_0x4d6e(_0x11206c,_0x20a82b);}var T=Object[_0x5a7790(0x126)],y=(_0x21e4b2,_0xd8e1d6,_0x103561,_0x236bfe)=>{const _0x22c192=_0x5a7790;for(var _0x266944=_0x236bfe>0x1?void 0x0:_0x236bfe?T(_0xd8e1d6,_0x103561):_0xd8e1d6,_0x44ffd8=_0x21e4b2[_0x22c192(0x110)]-0x1,_0x51312e;_0x44ffd8>=0x0;_0x44ffd8--)(_0x51312e=_0x21e4b2[_0x44ffd8])&&(_0x266944=_0x51312e(_0x266944)||_0x266944);return _0x266944;},m=(_0x29ca82,_0x38366d)=>(_0x65c8d2,_0x295d59)=>_0x38366d(_0x65c8d2,_0x295d59,_0x29ca82);let u=class extends i['Disposable']{constructor(_0x1cd9fd,_0xb49a28){const _0x1ff5e0=_0x5a7790;super(),this['_commandService']=_0x1cd9fd,this['_menuManagerService']=_0xb49a28,this[_0x1ff5e0(0x114)](),this[_0x1ff5e0(0x11c)]();}['_initCommands'](){[l,p]['forEach'](_0x25493c=>{const _0x58b2d4=_0x4d6e;this[_0x58b2d4(0x10a)](this[_0x58b2d4(0x11b)]['registerCommand'](_0x25493c));});}['_initMenus'](){const _0x3fd85a=_0x5a7790;this[_0x3fd85a(0x132)][_0x3fd85a(0x128)](f);}};u=y([m(0x0,i[_0x5a7790(0x139)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x5a7790(0x10b)],U=Object[_0x5a7790(0x126)],X=(_0x3c18cd,_0x10e925,_0x14b344)=>_0x10e925 in _0x3c18cd?O(_0x3c18cd,_0x10e925,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14b344}):_0x3c18cd[_0x10e925]=_0x14b344,N=(_0x51e86a,_0x46831f,_0x5d789a,_0x361746)=>{for(var _0x4e908c=_0x361746>0x1?void 0x0:_0x361746?U(_0x46831f,_0x5d789a):_0x46831f,_0x4a7cf1=_0x51e86a['length']-0x1,_0xa86187;_0x4a7cf1>=0x0;_0x4a7cf1--)(_0xa86187=_0x51e86a[_0x4a7cf1])&&(_0x4e908c=_0xa86187(_0x4e908c)||_0x4e908c);return _0x4e908c;},d=(_0x5abebb,_0x1b9075)=>(_0x3b94f5,_0x1ec25e)=>_0x1b9075(_0x3b94f5,_0x1ec25e,_0x5abebb),E=(_0x399973,_0x311a7c,_0x33ad1e)=>X(_0x399973,typeof _0x311a7c!=_0x5a7790(0x12f)?_0x311a7c+'':_0x311a7c,_0x33ad1e);const L=_0x5a7790(0x12a);exports[_0x5a7790(0x11f)]=class extends i['Plugin']{constructor(_0x4cc70c=h,_0x28bae8,_0x44b462){const _0x129a27=_0x5a7790;super(),this[_0x129a27(0x125)]=_0x4cc70c,this[_0x129a27(0x123)]=_0x28bae8,this[_0x129a27(0x13f)]=_0x44b462;const {menu:_0xda46dd,..._0x223951}=i[_0x129a27(0x13b)]({},h,this['_config']);_0xda46dd&&this['_configService']['setConfig'](_0x129a27(0x12d),_0xda46dd,{'merge':!0x0}),this[_0x129a27(0x13f)]['setConfig'](v,_0x223951);}[_0x5a7790(0x11a)](){const _0x1eeef3=_0x5a7790;[[u]][_0x1eeef3(0x135)](_0x4245e8=>this[_0x1eeef3(0x123)][_0x1eeef3(0x140)](_0x4245e8));}[_0x5a7790(0x134)](){const _0x144dbe=_0x5a7790;this[_0x144dbe(0x123)][_0x144dbe(0x119)](u);}},E(exports[_0x5a7790(0x11f)],'pluginName',L),E(exports[_0x5a7790(0x11f)],_0x5a7790(0x131),i['UniverInstanceType'][_0x5a7790(0x13c)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x5a7790(0x10c)](g[_0x5a7790(0x130)]),d(0x1,i[_0x5a7790(0x127)](i['Injector'])),d(0x2,i[_0x5a7790(0x121)])],exports[_0x5a7790(0x11f)]),exports[_0x5a7790(0x10e)]=p,exports[_0x5a7790(0x10f)]=l;
1
+ 'use strict';const _0x4ef95b=_0x5a82;(function(_0x43d14a,_0x52275f){const _0x7b402f=_0x5a82,_0x15ce1e=_0x43d14a();while(!![]){try{const _0x1da2db=-parseInt(_0x7b402f(0x105))/0x1*(parseInt(_0x7b402f(0xfb))/0x2)+parseInt(_0x7b402f(0xd4))/0x3+-parseInt(_0x7b402f(0x10b))/0x4+parseInt(_0x7b402f(0xd1))/0x5*(-parseInt(_0x7b402f(0xcd))/0x6)+parseInt(_0x7b402f(0xfc))/0x7+-parseInt(_0x7b402f(0xff))/0x8+parseInt(_0x7b402f(0xd7))/0x9;if(_0x1da2db===_0x52275f)break;else _0x15ce1e['push'](_0x15ce1e['shift']());}catch(_0x332be4){_0x15ce1e['push'](_0x15ce1e['shift']());}}}(_0x77e7,0xa391c));function _0x5a82(_0x45590c,_0x3b410a){const _0x77e740=_0x77e7();return _0x5a82=function(_0x5a82b7,_0x359ab){_0x5a82b7=_0x5a82b7-0xc8;let _0x1c1564=_0x77e740[_0x5a82b7];return _0x1c1564;},_0x5a82(_0x45590c,_0x3b410a);}Object[_0x4ef95b(0xf4)](exports,Symbol[_0x4ef95b(0xfd)],{'value':'Module'});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':_0x4ef95b(0xe3),'type':i['CommandType'][_0x4ef95b(0xd8)],'handler':async _0x4a661f=>{const _0x5296be=_0x4ef95b,_0x35050c=_0x4a661f['get'](g[_0x5296be(0xdc)]);return new URLSearchParams(location['search'])[_0x5296be(0xe6)](_0x5296be(0xf0))?_0x35050c[_0x5296be(0xee)]():_0x35050c[_0x5296be(0xfa)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x4ef95b(0xcb)][_0x4ef95b(0xd8)],'handler':async _0x12ac36=>{const _0x34d8bd=_0x4ef95b,_0x3aec80=_0x12ac36[_0x34d8bd(0xe6)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x34d8bd(0x109)])[_0x34d8bd(0xe6)](_0x34d8bd(0xf0))?_0x3aec80[_0x34d8bd(0xf6)]():_0x3aec80[_0x34d8bd(0xe7)](),!0x0;}},v=_0x4ef95b(0xc9),h={},S=_0x4ef95b(0xfe);function x(_0x542c0f){const _0x444f1d=_0x4ef95b;return{'id':S,'type':c[_0x444f1d(0xf7)]['SUBITEMS'],'icon':_0x444f1d(0xe2),'tooltip':_0x444f1d(0xd6),'hidden$':c[_0x444f1d(0xe5)](_0x542c0f,i['UniverInstanceType'][_0x444f1d(0xca)]),'disabled$':I[_0x444f1d(0x10a)](_0x542c0f,{'workbookTypes':[_[_0x444f1d(0xd3)]]})};}function P(){const _0x2f083b=_0x4ef95b;return{'id':l['id'],'type':c[_0x2f083b(0xf7)][_0x2f083b(0xf3)],'title':_0x2f083b(0xe8),'icon':_0x2f083b(0xcf)};}function C(){const _0x114482=_0x4ef95b;return{'id':p['id'],'type':c[_0x114482(0xf7)][_0x114482(0xf3)],'title':_0x114482(0xec),'icon':_0x114482(0xef)};}const f={[c[_0x4ef95b(0xd0)][_0x4ef95b(0x10c)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4ef95b(0xe4)],y=(_0x104d7b,_0x4262b3,_0x148220,_0x3f1bda)=>{for(var _0x2b8c00=_0x3f1bda>0x1?void 0x0:_0x3f1bda?T(_0x4262b3,_0x148220):_0x4262b3,_0x267530=_0x104d7b['length']-0x1,_0x4f35bf;_0x267530>=0x0;_0x267530--)(_0x4f35bf=_0x104d7b[_0x267530])&&(_0x2b8c00=_0x4f35bf(_0x2b8c00)||_0x2b8c00);return _0x2b8c00;},m=(_0x1e9f2c,_0x3fbb9b)=>(_0x5b1bdc,_0x7a28ec)=>_0x3fbb9b(_0x5b1bdc,_0x7a28ec,_0x1e9f2c);let u=class extends i[_0x4ef95b(0xf2)]{constructor(_0x4924fb,_0x3b2d6f){const _0x1cfe7a=_0x4ef95b;super(),this[_0x1cfe7a(0x107)]=_0x4924fb,this[_0x1cfe7a(0xdf)]=_0x3b2d6f,this['_initCommands'](),this[_0x1cfe7a(0xce)]();}['_initCommands'](){[l,p]['forEach'](_0x363f1c=>{const _0x342290=_0x5a82;this[_0x342290(0xda)](this[_0x342290(0x107)][_0x342290(0xd2)](_0x363f1c));});}[_0x4ef95b(0xce)](){const _0x252d89=_0x4ef95b;this[_0x252d89(0xdf)][_0x252d89(0xea)](f);}};u=y([m(0x0,i[_0x4ef95b(0xc8)]),m(0x1,c[_0x4ef95b(0xe0)])],u);var O=Object['defineProperty'],U=Object[_0x4ef95b(0xe4)],X=(_0x4bac1c,_0x21e4d2,_0x270e5a)=>_0x21e4d2 in _0x4bac1c?O(_0x4bac1c,_0x21e4d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x270e5a}):_0x4bac1c[_0x21e4d2]=_0x270e5a,N=(_0x161e56,_0x364bb5,_0x5c2858,_0x198070)=>{const _0x298013=_0x4ef95b;for(var _0x512280=_0x198070>0x1?void 0x0:_0x198070?U(_0x364bb5,_0x5c2858):_0x364bb5,_0x53efde=_0x161e56[_0x298013(0x100)]-0x1,_0x2fef91;_0x53efde>=0x0;_0x53efde--)(_0x2fef91=_0x161e56[_0x53efde])&&(_0x512280=_0x2fef91(_0x512280)||_0x512280);return _0x512280;},d=(_0x4d44e2,_0x53a340)=>(_0x514b82,_0x84d58c)=>_0x53a340(_0x514b82,_0x84d58c,_0x4d44e2),E=(_0x214ba3,_0x5a66fa,_0x657a84)=>X(_0x214ba3,typeof _0x5a66fa!=_0x4ef95b(0xe1)?_0x5a66fa+'':_0x5a66fa,_0x657a84);const L=_0x4ef95b(0xf1);function _0x77e7(){const _0x34fd2a=['OTHERS','ICommandService','sheets-exchange-client.config','UNIVER_SHEET','CommandType','onStarting','863376sBOMnR','_initMenus','FolderIcon','RibbonStartGroup','5rSQSZr','registerCommand','WorkbookExportPermission','395214Bpooth','Injector','exchange.file','22613463SuyvyF','OPERATION','merge','disposeWithMe','type','IExchangeOperateService','add','_config','_menuManagerService','IMenuManagerService','symbol','DirectExportIcon','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','getMenuHiddenObservable','get','exportXLSXBySnapshot','exchange.upload','IConfigService','mergeMenu','Inject','exchange.download','setConfig','importXLSXToUnitId','ExportIcon','unit','SHEET_EXCHANGE_CLIENT_PLUGIN','Disposable','BUTTON','defineProperty','UniverExchangeClientPlugin','exportXLSXByUnitId','MenuItemType','menu','UniverSheetsExchangeClientPlugin','importXLSXToSnapshot','2uhbEdC','248829QGdpDH','toStringTag','sheets-exchange-client.operation.exchange','4274152cesojv','length','forEach','pluginName','ImportXLSXOperation','UniverInstanceType','898067eULxEj','_injector','_commandService','ExportXLSXOperation','search','getCurrentRangeDisable$','1734720cNGzqz'];_0x77e7=function(){return _0x34fd2a;};return _0x77e7();}exports[_0x4ef95b(0xf9)]=class extends i['Plugin']{constructor(_0xf2c381=h,_0x263c1d,_0x2a1831){const _0x3ab400=_0x4ef95b;super(),this['_config']=_0xf2c381,this[_0x3ab400(0x106)]=_0x263c1d,this['_configService']=_0x2a1831;const {menu:_0xc9b87d,..._0x2b3569}=i[_0x3ab400(0xd9)]({},h,this[_0x3ab400(0xde)]);_0xc9b87d&&this['_configService'][_0x3ab400(0xed)](_0x3ab400(0xf8),_0xc9b87d,{'merge':!0x0}),this['_configService'][_0x3ab400(0xed)](v,_0x2b3569);}[_0x4ef95b(0xcc)](){const _0x25b414=_0x4ef95b;[[u]][_0x25b414(0x101)](_0x5711aa=>this['_injector'][_0x25b414(0xdd)](_0x5711aa));}['onReady'](){const _0x5f1869=_0x4ef95b;this[_0x5f1869(0x106)][_0x5f1869(0xe6)](u);}},E(exports[_0x4ef95b(0xf9)],_0x4ef95b(0x102),L),E(exports[_0x4ef95b(0xf9)],_0x4ef95b(0xdb),i[_0x4ef95b(0x104)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x4ef95b(0xf5)]),d(0x1,i[_0x4ef95b(0xeb)](i[_0x4ef95b(0xd5)])),d(0x2,i[_0x4ef95b(0xe9)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x4ef95b(0x108)]=p,exports[_0x4ef95b(0x103)]=l;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4ddf7a=_0x1f11;function _0x1f11(_0x14f855,_0x28e5af){const _0x1979f9=_0x1979();return _0x1f11=function(_0x1f11f4,_0x4bce52){_0x1f11f4=_0x1f11f4-0xda;let _0x4e7c08=_0x1979f9[_0x1f11f4];return _0x4e7c08;},_0x1f11(_0x14f855,_0x28e5af);}(function(_0x4a9ce2,_0x12d9aa){const _0x30e9e1=_0x1f11,_0x2f00cb=_0x4a9ce2();while(!![]){try{const _0xd73c61=parseInt(_0x30e9e1(0xdf))/0x1+-parseInt(_0x30e9e1(0xf4))/0x2+-parseInt(_0x30e9e1(0xfb))/0x3*(-parseInt(_0x30e9e1(0xeb))/0x4)+parseInt(_0x30e9e1(0xfa))/0x5+parseInt(_0x30e9e1(0x108))/0x6+-parseInt(_0x30e9e1(0xf0))/0x7*(parseInt(_0x30e9e1(0xed))/0x8)+parseInt(_0x30e9e1(0xf2))/0x9*(parseInt(_0x30e9e1(0xfc))/0xa);if(_0xd73c61===_0x12d9aa)break;else _0x2f00cb['push'](_0x2f00cb['shift']());}catch(_0x12e010){_0x2f00cb['push'](_0x2f00cb['shift']());}}}(_0x1979,0x970af));import{IExchangeOperateService as _0x3fc310,UniverExchangeClientPlugin as _0x2ad842}from'@univerjs-pro/exchange-client';function _0x1979(){const _0x584ed9=['_menuManagerService','484SQQdfc','unit','296936NEuVrA','search','_initMenus','161beCHIz','symbol','289845fsyulc','BUTTON','1157096WdEhjM','exportXLSXBySnapshot','UNIVER_SHEET','registerCommand','exchange-client.operation.export-xlsx','pluginName','354800hXYiJG','723VkZpBQ','310YhIovs','setConfig','ExportIcon','length','_injector','FolderIcon','defineProperty','disposeWithMe','exchange-client.operation.import-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','onReady','1150614dkJHns','importXLSXToUnitId','get','_initCommands','DirectExportIcon','exchange.upload','mergeMenu','760665vLcjBC','menu','sheets-exchange-client.config','OPERATION','_configService','type','exchange.file','add','exchange.download','SUBITEMS','getOwnPropertyDescriptor'];_0x1979=function(){return _0x584ed9;};return _0x1979();}import{CommandType as _0x10cb8b,UniverInstanceType as _0x195d14,Disposable as _0x143458,ICommandService as _0x552882,DependentOn as _0x33cf84,Inject as _0x1b8eda,Injector as _0x5b89f7,IConfigService as _0x368a7b,Plugin as _0x36b843,merge as _0x53d355}from'@univerjs/core';import{MenuItemType as _0x3a227c,getMenuHiddenObservable as _0x4fc5cf,RibbonStartGroup as _0x5db307,IMenuManagerService as _0x398648}from'@univerjs/ui';import{WorkbookExportPermission as _0x2507d3}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x24eea6}from'@univerjs/sheets-ui';const p={'id':_0x4ddf7a(0x104),'type':_0x10cb8b['OPERATION'],'handler':async _0x34eaf8=>{const _0x308e84=_0x4ddf7a,_0x282f06=_0x34eaf8[_0x308e84(0xda)](_0x3fc310);return new URLSearchParams(location[_0x308e84(0xee)])[_0x308e84(0xda)](_0x308e84(0xec))?_0x282f06[_0x308e84(0x109)]():_0x282f06['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4ddf7a(0xf8),'type':_0x10cb8b[_0x4ddf7a(0xe2)],'handler':async _0xe1d0f3=>{const _0x59daeb=_0x4ddf7a,_0x2dd4dc=_0xe1d0f3[_0x59daeb(0xda)](_0x3fc310);return new URLSearchParams(location['search'])[_0x59daeb(0xda)](_0x59daeb(0xec))?_0x2dd4dc['exportXLSXByUnitId']():_0x2dd4dc[_0x59daeb(0xf5)](),!0x0;}},H=_0x4ddf7a(0xe1),l={},S='sheets-exchange-client.operation.exchange';function R(_0x42cf3c){const _0x52555d=_0x4ddf7a;return{'id':S,'type':_0x3a227c[_0x52555d(0xe8)],'icon':_0x52555d(0xdc),'tooltip':_0x52555d(0xe5),'hidden$':_0x4fc5cf(_0x42cf3c,_0x195d14[_0x52555d(0xf6)]),'disabled$':_0x24eea6(_0x42cf3c,{'workbookTypes':[_0x2507d3]})};}function w(){const _0x4bf263=_0x4ddf7a;return{'id':p['id'],'type':_0x3a227c[_0x4bf263(0xf3)],'title':_0x4bf263(0xdd),'icon':_0x4bf263(0x101)};}function D(){const _0x1db190=_0x4ddf7a;return{'id':u['id'],'type':_0x3a227c[_0x1db190(0xf3)],'title':_0x1db190(0xe7),'icon':_0x1db190(0xfe)};}const F={[_0x5db307['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ddf7a(0xe9)],A=(_0x1136a0,_0x282fc0,_0x2a5c88,_0x23e7f6)=>{const _0x158aee=_0x4ddf7a;for(var _0x3babed=_0x23e7f6>0x1?void 0x0:_0x23e7f6?G(_0x282fc0,_0x2a5c88):_0x282fc0,_0x43a3e6=_0x1136a0[_0x158aee(0xff)]-0x1,_0x2d25aa;_0x43a3e6>=0x0;_0x43a3e6--)(_0x2d25aa=_0x1136a0[_0x43a3e6])&&(_0x3babed=_0x2d25aa(_0x3babed)||_0x3babed);return _0x3babed;},d=(_0x573a05,_0x25fd15)=>(_0x5bdf4c,_0x504fa4)=>_0x25fd15(_0x5bdf4c,_0x504fa4,_0x573a05);let c=class extends _0x143458{constructor(_0x2c8e05,_0x1302be){const _0x1703f4=_0x4ddf7a;super(),this['_commandService']=_0x2c8e05,this[_0x1703f4(0xea)]=_0x1302be,this[_0x1703f4(0xdb)](),this[_0x1703f4(0xef)]();}[_0x4ddf7a(0xdb)](){[p,u]['forEach'](_0x45b67d=>{const _0x323031=_0x1f11;this[_0x323031(0x103)](this['_commandService'][_0x323031(0xf7)](_0x45b67d));});}[_0x4ddf7a(0xef)](){const _0xd6bf09=_0x4ddf7a;this['_menuManagerService'][_0xd6bf09(0xde)](F);}};c=A([d(0x0,_0x552882),d(0x1,_0x398648)],c);var j=Object[_0x4ddf7a(0x102)],B=Object[_0x4ddf7a(0xe9)],$=(_0x4de3ea,_0x2a94dd,_0x37cac1)=>_0x2a94dd in _0x4de3ea?j(_0x4de3ea,_0x2a94dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cac1}):_0x4de3ea[_0x2a94dd]=_0x37cac1,V=(_0x51f49f,_0x55fb43,_0x506dce,_0x3bcaf3)=>{const _0x3b20bb=_0x4ddf7a;for(var _0x2bb25b=_0x3bcaf3>0x1?void 0x0:_0x3bcaf3?B(_0x55fb43,_0x506dce):_0x55fb43,_0x3af281=_0x51f49f[_0x3b20bb(0xff)]-0x1,_0x38b960;_0x3af281>=0x0;_0x3af281--)(_0x38b960=_0x51f49f[_0x3af281])&&(_0x2bb25b=_0x38b960(_0x2bb25b)||_0x2bb25b);return _0x2bb25b;},_=(_0x3ca91a,_0x444458)=>(_0x5d554e,_0x29479f)=>_0x444458(_0x5d554e,_0x29479f,_0x3ca91a),I=(_0x341c84,_0x4ca1e9,_0x123146)=>$(_0x341c84,typeof _0x4ca1e9!=_0x4ddf7a(0xf1)?_0x4ca1e9+'':_0x4ca1e9,_0x123146);const W=_0x4ddf7a(0x105);let s=class extends _0x36b843{constructor(_0x4ea442=l,_0x3c1418,_0x5eabe7){const _0x55beea=_0x4ddf7a;super(),this[_0x55beea(0x106)]=_0x4ea442,this['_injector']=_0x3c1418,this[_0x55beea(0xe3)]=_0x5eabe7;const {menu:_0x4c31b6,..._0x20138d}=_0x53d355({},l,this['_config']);_0x4c31b6&&this['_configService']['setConfig'](_0x55beea(0xe0),_0x4c31b6,{'merge':!0x0}),this['_configService'][_0x55beea(0xfd)](H,_0x20138d);}['onStarting'](){const _0x3fd0c4=_0x4ddf7a;[[c]]['forEach'](_0x5ec1b2=>this['_injector'][_0x3fd0c4(0xe6)](_0x5ec1b2));}[_0x4ddf7a(0x107)](){const _0x12e4e3=_0x4ddf7a;this[_0x12e4e3(0x100)][_0x12e4e3(0xda)](c);}};I(s,_0x4ddf7a(0xf9),W),I(s,_0x4ddf7a(0xe4),_0x195d14[_0x4ddf7a(0xf6)]),s=V([_0x33cf84(_0x2ad842),_(0x1,_0x1b8eda(_0x5b89f7)),_(0x2,_0x368a7b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x1cf4c1=_0xa70c;(function(_0x15699c,_0x473063){const _0x135394=_0xa70c,_0x12baac=_0x15699c();while(!![]){try{const _0x886545=parseInt(_0x135394(0x15f))/0x1+parseInt(_0x135394(0x13f))/0x2+parseInt(_0x135394(0x162))/0x3+parseInt(_0x135394(0x157))/0x4+parseInt(_0x135394(0x14a))/0x5+parseInt(_0x135394(0x13d))/0x6*(-parseInt(_0x135394(0x147))/0x7)+parseInt(_0x135394(0x143))/0x8*(-parseInt(_0x135394(0x152))/0x9);if(_0x886545===_0x473063)break;else _0x12baac['push'](_0x12baac['shift']());}catch(_0xf2065b){_0x12baac['push'](_0x12baac['shift']());}}}(_0x143c,0xa9274));function _0x143c(){const _0x33db21=['getOwnPropertyDescriptor','_menuManagerService','12068442qSlNuW','_initMenus','SUBITEMS','menu','unit','1130664YNfeqi','exchange-client.operation.import-xlsx','length','DirectExportIcon','exchange.file','OTHERS','symbol','defineProperty','760102mdCnrr','_commandService','type','2158248DTVgLj','exchange.upload','_injector','importXLSXToSnapshot','mergeMenu','exportXLSXBySnapshot','setConfig','UNIVER_SHEET','registerCommand','_config','get','_initCommands','520656LjXYUJ','pluginName','1363404JEUfcT','exchange.download','search','SHEET_EXCHANGE_CLIENT_PLUGIN','8dFbNUL','sheets-exchange-client.config','FolderIcon','BUTTON','77EIupXK','disposeWithMe','add','2722200yoRyBO','_configService','forEach','onStarting','sheets-exchange-client.operation.exchange','OPERATION'];_0x143c=function(){return _0x33db21;};return _0x143c();}import{IExchangeOperateService as _0x143bf0,UniverExchangeClientPlugin as _0xb012f9}from'@univerjs-pro/exchange-client';import{CommandType as _0x1dc3db,UniverInstanceType as _0x17974d,Disposable as _0x10198a,ICommandService as _0x140caf,DependentOn as _0x2c7cf8,Inject as _0x360d0e,Injector as _0x3caf4f,IConfigService as _0x464b82,Plugin as _0x18f4fd,merge as _0x781c22}from'@univerjs/core';import{MenuItemType as _0x4a9556,getMenuHiddenObservable as _0x2e3125,RibbonStartGroup as _0x1a1478,IMenuManagerService as _0x2d719d}from'@univerjs/ui';import{WorkbookExportPermission as _0x4fe937}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x170092}from'@univerjs/sheets-ui';function _0xa70c(_0x97d650,_0x44324d){const _0x143cea=_0x143c();return _0xa70c=function(_0xa70c8e,_0x27b4fb){_0xa70c8e=_0xa70c8e-0x13d;let _0x5d6cc1=_0x143cea[_0xa70c8e];return _0x5d6cc1;},_0xa70c(_0x97d650,_0x44324d);}const p={'id':_0x1cf4c1(0x158),'type':_0x1dc3db[_0x1cf4c1(0x14f)],'handler':async _0x4015a7=>{const _0x1a2196=_0x1cf4c1,_0x3166b7=_0x4015a7[_0x1a2196(0x16c)](_0x143bf0);return new URLSearchParams(location[_0x1a2196(0x141)])[_0x1a2196(0x16c)](_0x1a2196(0x156))?_0x3166b7['importXLSXToUnitId']():_0x3166b7[_0x1a2196(0x165)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1dc3db['OPERATION'],'handler':async _0x2d10d2=>{const _0x4fce2f=_0x1cf4c1,_0x3686b2=_0x2d10d2[_0x4fce2f(0x16c)](_0x143bf0);return new URLSearchParams(location[_0x4fce2f(0x141)])[_0x4fce2f(0x16c)](_0x4fce2f(0x156))?_0x3686b2['exportXLSXByUnitId']():_0x3686b2[_0x4fce2f(0x167)](),!0x0;}},H=_0x1cf4c1(0x144),l={},S=_0x1cf4c1(0x14e);function R(_0xb75321){const _0x5916dd=_0x1cf4c1;return{'id':S,'type':_0x4a9556[_0x5916dd(0x154)],'icon':_0x5916dd(0x15a),'tooltip':_0x5916dd(0x15b),'hidden$':_0x2e3125(_0xb75321,_0x17974d[_0x5916dd(0x169)]),'disabled$':_0x170092(_0xb75321,{'workbookTypes':[_0x4fe937]})};}function w(){const _0x12dd57=_0x1cf4c1;return{'id':p['id'],'type':_0x4a9556[_0x12dd57(0x146)],'title':_0x12dd57(0x163),'icon':_0x12dd57(0x145)};}function D(){const _0x378d0c=_0x1cf4c1;return{'id':u['id'],'type':_0x4a9556[_0x378d0c(0x146)],'title':_0x378d0c(0x140),'icon':'ExportIcon'};}const F={[_0x1a1478[_0x1cf4c1(0x15c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x1cf4c1(0x150)],A=(_0x35851d,_0xf0b7c3,_0x4d3a34,_0x19f9c1)=>{const _0x28fca8=_0x1cf4c1;for(var _0x50e481=_0x19f9c1>0x1?void 0x0:_0x19f9c1?G(_0xf0b7c3,_0x4d3a34):_0xf0b7c3,_0x1e745f=_0x35851d[_0x28fca8(0x159)]-0x1,_0x5a09c6;_0x1e745f>=0x0;_0x1e745f--)(_0x5a09c6=_0x35851d[_0x1e745f])&&(_0x50e481=_0x5a09c6(_0x50e481)||_0x50e481);return _0x50e481;},d=(_0x1bfc10,_0xc27352)=>(_0x4e3400,_0x9bb66c)=>_0xc27352(_0x4e3400,_0x9bb66c,_0x1bfc10);let c=class extends _0x10198a{constructor(_0x3599b4,_0x546bde){const _0x4ee653=_0x1cf4c1;super(),this[_0x4ee653(0x160)]=_0x3599b4,this[_0x4ee653(0x151)]=_0x546bde,this[_0x4ee653(0x16d)](),this[_0x4ee653(0x153)]();}[_0x1cf4c1(0x16d)](){[p,u]['forEach'](_0x594f4c=>{const _0x53846c=_0xa70c;this[_0x53846c(0x148)](this[_0x53846c(0x160)][_0x53846c(0x16a)](_0x594f4c));});}['_initMenus'](){const _0x57dc19=_0x1cf4c1;this[_0x57dc19(0x151)][_0x57dc19(0x166)](F);}};c=A([d(0x0,_0x140caf),d(0x1,_0x2d719d)],c);var j=Object[_0x1cf4c1(0x15e)],B=Object[_0x1cf4c1(0x150)],$=(_0x134697,_0x54df8c,_0x38ddfe)=>_0x54df8c in _0x134697?j(_0x134697,_0x54df8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38ddfe}):_0x134697[_0x54df8c]=_0x38ddfe,V=(_0x27d3ce,_0x53bdc3,_0x2b1332,_0x286e0e)=>{for(var _0x391bb7=_0x286e0e>0x1?void 0x0:_0x286e0e?B(_0x53bdc3,_0x2b1332):_0x53bdc3,_0x2aaf5f=_0x27d3ce['length']-0x1,_0x2d5e44;_0x2aaf5f>=0x0;_0x2aaf5f--)(_0x2d5e44=_0x27d3ce[_0x2aaf5f])&&(_0x391bb7=_0x2d5e44(_0x391bb7)||_0x391bb7);return _0x391bb7;},_=(_0x5e6a94,_0x1aa301)=>(_0x3dc80e,_0x182141)=>_0x1aa301(_0x3dc80e,_0x182141,_0x5e6a94),I=(_0x1646a5,_0x45b7b5,_0x992f1e)=>$(_0x1646a5,typeof _0x45b7b5!=_0x1cf4c1(0x15d)?_0x45b7b5+'':_0x45b7b5,_0x992f1e);const W=_0x1cf4c1(0x142);let s=class extends _0x18f4fd{constructor(_0x42d809=l,_0x40aebe,_0x50c050){const _0x162740=_0x1cf4c1;super(),this[_0x162740(0x16b)]=_0x42d809,this['_injector']=_0x40aebe,this['_configService']=_0x50c050;const {menu:_0x10beed,..._0x2a4879}=_0x781c22({},l,this['_config']);_0x10beed&&this[_0x162740(0x14b)][_0x162740(0x168)](_0x162740(0x155),_0x10beed,{'merge':!0x0}),this['_configService'][_0x162740(0x168)](H,_0x2a4879);}[_0x1cf4c1(0x14d)](){const _0x15f60b=_0x1cf4c1;[[c]][_0x15f60b(0x14c)](_0x105e80=>this[_0x15f60b(0x164)][_0x15f60b(0x149)](_0x105e80));}['onReady'](){this['_injector']['get'](c);}};I(s,_0x1cf4c1(0x13e),W),I(s,_0x1cf4c1(0x161),_0x17974d['UNIVER_SHEET']),s=V([_0x2c7cf8(_0xb012f9),_(0x1,_0x360d0e(_0x3caf4f)),_(0x2,_0x464b82)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4ddf7a=_0x1f11;function _0x1f11(_0x14f855,_0x28e5af){const _0x1979f9=_0x1979();return _0x1f11=function(_0x1f11f4,_0x4bce52){_0x1f11f4=_0x1f11f4-0xda;let _0x4e7c08=_0x1979f9[_0x1f11f4];return _0x4e7c08;},_0x1f11(_0x14f855,_0x28e5af);}(function(_0x4a9ce2,_0x12d9aa){const _0x30e9e1=_0x1f11,_0x2f00cb=_0x4a9ce2();while(!![]){try{const _0xd73c61=parseInt(_0x30e9e1(0xdf))/0x1+-parseInt(_0x30e9e1(0xf4))/0x2+-parseInt(_0x30e9e1(0xfb))/0x3*(-parseInt(_0x30e9e1(0xeb))/0x4)+parseInt(_0x30e9e1(0xfa))/0x5+parseInt(_0x30e9e1(0x108))/0x6+-parseInt(_0x30e9e1(0xf0))/0x7*(parseInt(_0x30e9e1(0xed))/0x8)+parseInt(_0x30e9e1(0xf2))/0x9*(parseInt(_0x30e9e1(0xfc))/0xa);if(_0xd73c61===_0x12d9aa)break;else _0x2f00cb['push'](_0x2f00cb['shift']());}catch(_0x12e010){_0x2f00cb['push'](_0x2f00cb['shift']());}}}(_0x1979,0x970af));import{IExchangeOperateService as _0x3fc310,UniverExchangeClientPlugin as _0x2ad842}from'@univerjs-pro/exchange-client';function _0x1979(){const _0x584ed9=['_menuManagerService','484SQQdfc','unit','296936NEuVrA','search','_initMenus','161beCHIz','symbol','289845fsyulc','BUTTON','1157096WdEhjM','exportXLSXBySnapshot','UNIVER_SHEET','registerCommand','exchange-client.operation.export-xlsx','pluginName','354800hXYiJG','723VkZpBQ','310YhIovs','setConfig','ExportIcon','length','_injector','FolderIcon','defineProperty','disposeWithMe','exchange-client.operation.import-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','onReady','1150614dkJHns','importXLSXToUnitId','get','_initCommands','DirectExportIcon','exchange.upload','mergeMenu','760665vLcjBC','menu','sheets-exchange-client.config','OPERATION','_configService','type','exchange.file','add','exchange.download','SUBITEMS','getOwnPropertyDescriptor'];_0x1979=function(){return _0x584ed9;};return _0x1979();}import{CommandType as _0x10cb8b,UniverInstanceType as _0x195d14,Disposable as _0x143458,ICommandService as _0x552882,DependentOn as _0x33cf84,Inject as _0x1b8eda,Injector as _0x5b89f7,IConfigService as _0x368a7b,Plugin as _0x36b843,merge as _0x53d355}from'@univerjs/core';import{MenuItemType as _0x3a227c,getMenuHiddenObservable as _0x4fc5cf,RibbonStartGroup as _0x5db307,IMenuManagerService as _0x398648}from'@univerjs/ui';import{WorkbookExportPermission as _0x2507d3}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x24eea6}from'@univerjs/sheets-ui';const p={'id':_0x4ddf7a(0x104),'type':_0x10cb8b['OPERATION'],'handler':async _0x34eaf8=>{const _0x308e84=_0x4ddf7a,_0x282f06=_0x34eaf8[_0x308e84(0xda)](_0x3fc310);return new URLSearchParams(location[_0x308e84(0xee)])[_0x308e84(0xda)](_0x308e84(0xec))?_0x282f06[_0x308e84(0x109)]():_0x282f06['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4ddf7a(0xf8),'type':_0x10cb8b[_0x4ddf7a(0xe2)],'handler':async _0xe1d0f3=>{const _0x59daeb=_0x4ddf7a,_0x2dd4dc=_0xe1d0f3[_0x59daeb(0xda)](_0x3fc310);return new URLSearchParams(location['search'])[_0x59daeb(0xda)](_0x59daeb(0xec))?_0x2dd4dc['exportXLSXByUnitId']():_0x2dd4dc[_0x59daeb(0xf5)](),!0x0;}},H=_0x4ddf7a(0xe1),l={},S='sheets-exchange-client.operation.exchange';function R(_0x42cf3c){const _0x52555d=_0x4ddf7a;return{'id':S,'type':_0x3a227c[_0x52555d(0xe8)],'icon':_0x52555d(0xdc),'tooltip':_0x52555d(0xe5),'hidden$':_0x4fc5cf(_0x42cf3c,_0x195d14[_0x52555d(0xf6)]),'disabled$':_0x24eea6(_0x42cf3c,{'workbookTypes':[_0x2507d3]})};}function w(){const _0x4bf263=_0x4ddf7a;return{'id':p['id'],'type':_0x3a227c[_0x4bf263(0xf3)],'title':_0x4bf263(0xdd),'icon':_0x4bf263(0x101)};}function D(){const _0x1db190=_0x4ddf7a;return{'id':u['id'],'type':_0x3a227c[_0x1db190(0xf3)],'title':_0x1db190(0xe7),'icon':_0x1db190(0xfe)};}const F={[_0x5db307['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ddf7a(0xe9)],A=(_0x1136a0,_0x282fc0,_0x2a5c88,_0x23e7f6)=>{const _0x158aee=_0x4ddf7a;for(var _0x3babed=_0x23e7f6>0x1?void 0x0:_0x23e7f6?G(_0x282fc0,_0x2a5c88):_0x282fc0,_0x43a3e6=_0x1136a0[_0x158aee(0xff)]-0x1,_0x2d25aa;_0x43a3e6>=0x0;_0x43a3e6--)(_0x2d25aa=_0x1136a0[_0x43a3e6])&&(_0x3babed=_0x2d25aa(_0x3babed)||_0x3babed);return _0x3babed;},d=(_0x573a05,_0x25fd15)=>(_0x5bdf4c,_0x504fa4)=>_0x25fd15(_0x5bdf4c,_0x504fa4,_0x573a05);let c=class extends _0x143458{constructor(_0x2c8e05,_0x1302be){const _0x1703f4=_0x4ddf7a;super(),this['_commandService']=_0x2c8e05,this[_0x1703f4(0xea)]=_0x1302be,this[_0x1703f4(0xdb)](),this[_0x1703f4(0xef)]();}[_0x4ddf7a(0xdb)](){[p,u]['forEach'](_0x45b67d=>{const _0x323031=_0x1f11;this[_0x323031(0x103)](this['_commandService'][_0x323031(0xf7)](_0x45b67d));});}[_0x4ddf7a(0xef)](){const _0xd6bf09=_0x4ddf7a;this['_menuManagerService'][_0xd6bf09(0xde)](F);}};c=A([d(0x0,_0x552882),d(0x1,_0x398648)],c);var j=Object[_0x4ddf7a(0x102)],B=Object[_0x4ddf7a(0xe9)],$=(_0x4de3ea,_0x2a94dd,_0x37cac1)=>_0x2a94dd in _0x4de3ea?j(_0x4de3ea,_0x2a94dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cac1}):_0x4de3ea[_0x2a94dd]=_0x37cac1,V=(_0x51f49f,_0x55fb43,_0x506dce,_0x3bcaf3)=>{const _0x3b20bb=_0x4ddf7a;for(var _0x2bb25b=_0x3bcaf3>0x1?void 0x0:_0x3bcaf3?B(_0x55fb43,_0x506dce):_0x55fb43,_0x3af281=_0x51f49f[_0x3b20bb(0xff)]-0x1,_0x38b960;_0x3af281>=0x0;_0x3af281--)(_0x38b960=_0x51f49f[_0x3af281])&&(_0x2bb25b=_0x38b960(_0x2bb25b)||_0x2bb25b);return _0x2bb25b;},_=(_0x3ca91a,_0x444458)=>(_0x5d554e,_0x29479f)=>_0x444458(_0x5d554e,_0x29479f,_0x3ca91a),I=(_0x341c84,_0x4ca1e9,_0x123146)=>$(_0x341c84,typeof _0x4ca1e9!=_0x4ddf7a(0xf1)?_0x4ca1e9+'':_0x4ca1e9,_0x123146);const W=_0x4ddf7a(0x105);let s=class extends _0x36b843{constructor(_0x4ea442=l,_0x3c1418,_0x5eabe7){const _0x55beea=_0x4ddf7a;super(),this[_0x55beea(0x106)]=_0x4ea442,this['_injector']=_0x3c1418,this[_0x55beea(0xe3)]=_0x5eabe7;const {menu:_0x4c31b6,..._0x20138d}=_0x53d355({},l,this['_config']);_0x4c31b6&&this['_configService']['setConfig'](_0x55beea(0xe0),_0x4c31b6,{'merge':!0x0}),this['_configService'][_0x55beea(0xfd)](H,_0x20138d);}['onStarting'](){const _0x3fd0c4=_0x4ddf7a;[[c]]['forEach'](_0x5ec1b2=>this['_injector'][_0x3fd0c4(0xe6)](_0x5ec1b2));}[_0x4ddf7a(0x107)](){const _0x12e4e3=_0x4ddf7a;this[_0x12e4e3(0x100)][_0x12e4e3(0xda)](c);}};I(s,_0x4ddf7a(0xf9),W),I(s,_0x4ddf7a(0xe4),_0x195d14[_0x4ddf7a(0xf6)]),s=V([_0x33cf84(_0x2ad842),_(0x1,_0x1b8eda(_0x5b89f7)),_(0x2,_0x368a7b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
1
+ const _0x1cf4c1=_0xa70c;(function(_0x15699c,_0x473063){const _0x135394=_0xa70c,_0x12baac=_0x15699c();while(!![]){try{const _0x886545=parseInt(_0x135394(0x15f))/0x1+parseInt(_0x135394(0x13f))/0x2+parseInt(_0x135394(0x162))/0x3+parseInt(_0x135394(0x157))/0x4+parseInt(_0x135394(0x14a))/0x5+parseInt(_0x135394(0x13d))/0x6*(-parseInt(_0x135394(0x147))/0x7)+parseInt(_0x135394(0x143))/0x8*(-parseInt(_0x135394(0x152))/0x9);if(_0x886545===_0x473063)break;else _0x12baac['push'](_0x12baac['shift']());}catch(_0xf2065b){_0x12baac['push'](_0x12baac['shift']());}}}(_0x143c,0xa9274));function _0x143c(){const _0x33db21=['getOwnPropertyDescriptor','_menuManagerService','12068442qSlNuW','_initMenus','SUBITEMS','menu','unit','1130664YNfeqi','exchange-client.operation.import-xlsx','length','DirectExportIcon','exchange.file','OTHERS','symbol','defineProperty','760102mdCnrr','_commandService','type','2158248DTVgLj','exchange.upload','_injector','importXLSXToSnapshot','mergeMenu','exportXLSXBySnapshot','setConfig','UNIVER_SHEET','registerCommand','_config','get','_initCommands','520656LjXYUJ','pluginName','1363404JEUfcT','exchange.download','search','SHEET_EXCHANGE_CLIENT_PLUGIN','8dFbNUL','sheets-exchange-client.config','FolderIcon','BUTTON','77EIupXK','disposeWithMe','add','2722200yoRyBO','_configService','forEach','onStarting','sheets-exchange-client.operation.exchange','OPERATION'];_0x143c=function(){return _0x33db21;};return _0x143c();}import{IExchangeOperateService as _0x143bf0,UniverExchangeClientPlugin as _0xb012f9}from'@univerjs-pro/exchange-client';import{CommandType as _0x1dc3db,UniverInstanceType as _0x17974d,Disposable as _0x10198a,ICommandService as _0x140caf,DependentOn as _0x2c7cf8,Inject as _0x360d0e,Injector as _0x3caf4f,IConfigService as _0x464b82,Plugin as _0x18f4fd,merge as _0x781c22}from'@univerjs/core';import{MenuItemType as _0x4a9556,getMenuHiddenObservable as _0x2e3125,RibbonStartGroup as _0x1a1478,IMenuManagerService as _0x2d719d}from'@univerjs/ui';import{WorkbookExportPermission as _0x4fe937}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x170092}from'@univerjs/sheets-ui';function _0xa70c(_0x97d650,_0x44324d){const _0x143cea=_0x143c();return _0xa70c=function(_0xa70c8e,_0x27b4fb){_0xa70c8e=_0xa70c8e-0x13d;let _0x5d6cc1=_0x143cea[_0xa70c8e];return _0x5d6cc1;},_0xa70c(_0x97d650,_0x44324d);}const p={'id':_0x1cf4c1(0x158),'type':_0x1dc3db[_0x1cf4c1(0x14f)],'handler':async _0x4015a7=>{const _0x1a2196=_0x1cf4c1,_0x3166b7=_0x4015a7[_0x1a2196(0x16c)](_0x143bf0);return new URLSearchParams(location[_0x1a2196(0x141)])[_0x1a2196(0x16c)](_0x1a2196(0x156))?_0x3166b7['importXLSXToUnitId']():_0x3166b7[_0x1a2196(0x165)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1dc3db['OPERATION'],'handler':async _0x2d10d2=>{const _0x4fce2f=_0x1cf4c1,_0x3686b2=_0x2d10d2[_0x4fce2f(0x16c)](_0x143bf0);return new URLSearchParams(location[_0x4fce2f(0x141)])[_0x4fce2f(0x16c)](_0x4fce2f(0x156))?_0x3686b2['exportXLSXByUnitId']():_0x3686b2[_0x4fce2f(0x167)](),!0x0;}},H=_0x1cf4c1(0x144),l={},S=_0x1cf4c1(0x14e);function R(_0xb75321){const _0x5916dd=_0x1cf4c1;return{'id':S,'type':_0x4a9556[_0x5916dd(0x154)],'icon':_0x5916dd(0x15a),'tooltip':_0x5916dd(0x15b),'hidden$':_0x2e3125(_0xb75321,_0x17974d[_0x5916dd(0x169)]),'disabled$':_0x170092(_0xb75321,{'workbookTypes':[_0x4fe937]})};}function w(){const _0x12dd57=_0x1cf4c1;return{'id':p['id'],'type':_0x4a9556[_0x12dd57(0x146)],'title':_0x12dd57(0x163),'icon':_0x12dd57(0x145)};}function D(){const _0x378d0c=_0x1cf4c1;return{'id':u['id'],'type':_0x4a9556[_0x378d0c(0x146)],'title':_0x378d0c(0x140),'icon':'ExportIcon'};}const F={[_0x1a1478[_0x1cf4c1(0x15c)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x1cf4c1(0x150)],A=(_0x35851d,_0xf0b7c3,_0x4d3a34,_0x19f9c1)=>{const _0x28fca8=_0x1cf4c1;for(var _0x50e481=_0x19f9c1>0x1?void 0x0:_0x19f9c1?G(_0xf0b7c3,_0x4d3a34):_0xf0b7c3,_0x1e745f=_0x35851d[_0x28fca8(0x159)]-0x1,_0x5a09c6;_0x1e745f>=0x0;_0x1e745f--)(_0x5a09c6=_0x35851d[_0x1e745f])&&(_0x50e481=_0x5a09c6(_0x50e481)||_0x50e481);return _0x50e481;},d=(_0x1bfc10,_0xc27352)=>(_0x4e3400,_0x9bb66c)=>_0xc27352(_0x4e3400,_0x9bb66c,_0x1bfc10);let c=class extends _0x10198a{constructor(_0x3599b4,_0x546bde){const _0x4ee653=_0x1cf4c1;super(),this[_0x4ee653(0x160)]=_0x3599b4,this[_0x4ee653(0x151)]=_0x546bde,this[_0x4ee653(0x16d)](),this[_0x4ee653(0x153)]();}[_0x1cf4c1(0x16d)](){[p,u]['forEach'](_0x594f4c=>{const _0x53846c=_0xa70c;this[_0x53846c(0x148)](this[_0x53846c(0x160)][_0x53846c(0x16a)](_0x594f4c));});}['_initMenus'](){const _0x57dc19=_0x1cf4c1;this[_0x57dc19(0x151)][_0x57dc19(0x166)](F);}};c=A([d(0x0,_0x140caf),d(0x1,_0x2d719d)],c);var j=Object[_0x1cf4c1(0x15e)],B=Object[_0x1cf4c1(0x150)],$=(_0x134697,_0x54df8c,_0x38ddfe)=>_0x54df8c in _0x134697?j(_0x134697,_0x54df8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38ddfe}):_0x134697[_0x54df8c]=_0x38ddfe,V=(_0x27d3ce,_0x53bdc3,_0x2b1332,_0x286e0e)=>{for(var _0x391bb7=_0x286e0e>0x1?void 0x0:_0x286e0e?B(_0x53bdc3,_0x2b1332):_0x53bdc3,_0x2aaf5f=_0x27d3ce['length']-0x1,_0x2d5e44;_0x2aaf5f>=0x0;_0x2aaf5f--)(_0x2d5e44=_0x27d3ce[_0x2aaf5f])&&(_0x391bb7=_0x2d5e44(_0x391bb7)||_0x391bb7);return _0x391bb7;},_=(_0x5e6a94,_0x1aa301)=>(_0x3dc80e,_0x182141)=>_0x1aa301(_0x3dc80e,_0x182141,_0x5e6a94),I=(_0x1646a5,_0x45b7b5,_0x992f1e)=>$(_0x1646a5,typeof _0x45b7b5!=_0x1cf4c1(0x15d)?_0x45b7b5+'':_0x45b7b5,_0x992f1e);const W=_0x1cf4c1(0x142);let s=class extends _0x18f4fd{constructor(_0x42d809=l,_0x40aebe,_0x50c050){const _0x162740=_0x1cf4c1;super(),this[_0x162740(0x16b)]=_0x42d809,this['_injector']=_0x40aebe,this['_configService']=_0x50c050;const {menu:_0x10beed,..._0x2a4879}=_0x781c22({},l,this['_config']);_0x10beed&&this[_0x162740(0x14b)][_0x162740(0x168)](_0x162740(0x155),_0x10beed,{'merge':!0x0}),this['_configService'][_0x162740(0x168)](H,_0x2a4879);}[_0x1cf4c1(0x14d)](){const _0x15f60b=_0x1cf4c1;[[c]][_0x15f60b(0x14c)](_0x105e80=>this[_0x15f60b(0x164)][_0x15f60b(0x149)](_0x105e80));}['onReady'](){this['_injector']['get'](c);}};I(s,_0x1cf4c1(0x13e),W),I(s,_0x1cf4c1(0x161),_0x17974d['UNIVER_SHEET']),s=V([_0x2c7cf8(_0xb012f9),_(0x1,_0x360d0e(_0x3caf4f)),_(0x2,_0x464b82)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3afe(){const _0x298d26=['@univerjs/core','UniverCore','SUBITEMS','Plugin','14kBSRfq','importXLSXToSnapshot','OPERATION','exchange.file','DirectExportIcon','@univerjs/ui','exchange.upload','pluginName','ExportIcon','function','BUTTON','UniverInstanceType','207xbrdbP','MenuItemType','merge','349072TcjGcv','type','get','UniverSheetsExchangeClientPlugin','amd','setConfig','_configService','getMenuHiddenObservable','UniverExchangeClientPlugin','Disposable','RibbonStartGroup','@univerjs/sheets-ui','IConfigService','ExportXLSXOperation','defineProperty','ICommandService','getCurrentRangeDisable$','menu','_initMenus','_config','SHEET_EXCHANGE_CLIENT_PLUGIN','58221vXhGUi','UNIVER_SHEET','DependentOn','add','IExchangeOperateService','_initCommands','length','CommandType','exports','5434340tDCPuX','917328jquiin','_injector','_commandService','Inject','4333215vRhjyM','1998eslHbf','4464378sEHbTr','sheets-exchange-client.config','UniverSheets','object','OTHERS','search','forEach','ImportXLSXOperation','@univerjs/sheets','UniverUi','getOwnPropertyDescriptor','_menuManagerService','25291wQtGwt','onReady','mergeMenu','Module','IMenuManagerService'];_0x3afe=function(){return _0x298d26;};return _0x3afe();}function _0x3205(_0xb431f1,_0x5c131e){const _0x3afedf=_0x3afe();return _0x3205=function(_0x32051d,_0x1d77c0){_0x32051d=_0x32051d-0x1af;let _0xde9bfb=_0x3afedf[_0x32051d];return _0xde9bfb;},_0x3205(_0xb431f1,_0x5c131e);}(function(_0x2b0f9b,_0x468041){const _0x2cf4c1=_0x3205,_0x4b1338=_0x2b0f9b();while(!![]){try{const _0x2f1896=parseInt(_0x2cf4c1(0x1d8))/0x1*(-parseInt(_0x2cf4c1(0x1b4))/0x2)+-parseInt(_0x2cf4c1(0x1e8))/0x3+parseInt(_0x2cf4c1(0x1e2))/0x4+parseInt(_0x2cf4c1(0x1e6))/0x5+parseInt(_0x2cf4c1(0x1e7))/0x6*(parseInt(_0x2cf4c1(0x1f4))/0x7)+-parseInt(_0x2cf4c1(0x1c3))/0x8*(-parseInt(_0x2cf4c1(0x1c0))/0x9)+-parseInt(_0x2cf4c1(0x1e1))/0xa;if(_0x2f1896===_0x468041)break;else _0x4b1338['push'](_0x4b1338['shift']());}catch(_0x53dc24){_0x4b1338['push'](_0x4b1338['shift']());}}}(_0x3afe,0xd2d5b),function(_0x1679f5,_0x4e94dc){const _0x5dd531=_0x3205;typeof exports==_0x5dd531(0x1eb)&&typeof module<'u'?_0x4e94dc(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5dd531(0x1bd)&&define[_0x5dd531(0x1c7)]?define([_0x5dd531(0x1e0),'@univerjs-pro/exchange-client',_0x5dd531(0x1b0),_0x5dd531(0x1b9),_0x5dd531(0x1f0),_0x5dd531(0x1ce)],_0x4e94dc):(_0x1679f5=typeof globalThis<'u'?globalThis:_0x1679f5||self,_0x4e94dc(_0x1679f5['UniverProSheetsExchangeClient']={},_0x1679f5['UniverProExchangeClient'],_0x1679f5[_0x5dd531(0x1b1)],_0x1679f5[_0x5dd531(0x1f1)],_0x1679f5[_0x5dd531(0x1ea)],_0x1679f5['UniverSheetsUi']));}(this,function(_0x4d0d12,_0x31433e,_0x1b24ff,_0x33a391,_0x5b6a76,_0x58c93c){'use strict';const _0x50c0c0=_0x3205;const _0x2c1fc7={'id':'exchange-client.operation.import-xlsx','type':_0x1b24ff[_0x50c0c0(0x1df)][_0x50c0c0(0x1b6)],'handler':async _0x43d481=>{const _0x5d30c7=_0x50c0c0,_0xce8467=_0x43d481['get'](_0x31433e[_0x5d30c7(0x1dc)]);return new URLSearchParams(location[_0x5d30c7(0x1ed)])[_0x5d30c7(0x1c5)]('unit')?_0xce8467['importXLSXToUnitId']():_0xce8467[_0x5d30c7(0x1b5)](),!0x0;}},_0x6d310f={'id':'exchange-client.operation.export-xlsx','type':_0x1b24ff[_0x50c0c0(0x1df)][_0x50c0c0(0x1b6)],'handler':async _0x8bfc66=>{const _0x20b315=_0x50c0c0,_0x35518d=_0x8bfc66[_0x20b315(0x1c5)](_0x31433e['IExchangeOperateService']);return new URLSearchParams(location[_0x20b315(0x1ed)])[_0x20b315(0x1c5)]('unit')?_0x35518d['exportXLSXByUnitId']():_0x35518d['exportXLSXBySnapshot'](),!0x0;}},_0x1bc695=_0x50c0c0(0x1e9),_0x46c011={},_0x48afad='sheets-exchange-client.operation.exchange';function _0x2c95f9(_0x16424e){const _0x41d0ec=_0x50c0c0;return{'id':_0x48afad,'type':_0x33a391[_0x41d0ec(0x1c1)][_0x41d0ec(0x1b2)],'icon':_0x41d0ec(0x1b8),'tooltip':_0x41d0ec(0x1b7),'hidden$':_0x33a391[_0x41d0ec(0x1ca)](_0x16424e,_0x1b24ff[_0x41d0ec(0x1bf)][_0x41d0ec(0x1d9)]),'disabled$':_0x58c93c[_0x41d0ec(0x1d3)](_0x16424e,{'workbookTypes':[_0x5b6a76['WorkbookExportPermission']]})};}function _0x282abe(){const _0x5452b2=_0x50c0c0;return{'id':_0x2c1fc7['id'],'type':_0x33a391['MenuItemType'][_0x5452b2(0x1be)],'title':_0x5452b2(0x1ba),'icon':'FolderIcon'};}function _0x3731a5(){const _0x396cc6=_0x50c0c0;return{'id':_0x6d310f['id'],'type':_0x33a391[_0x396cc6(0x1c1)]['BUTTON'],'title':'exchange.download','icon':_0x396cc6(0x1bc)};}const _0x1bddc3={[_0x33a391[_0x50c0c0(0x1cd)][_0x50c0c0(0x1ec)]]:{[_0x48afad]:{'order':0.3,'menuItemFactory':_0x2c95f9,[_0x2c1fc7['id']]:{'order':0x0,'menuItemFactory':_0x282abe},[_0x6d310f['id']]:{'order':0x1,'menuItemFactory':_0x3731a5}}}};var _0x3c63dc=Object[_0x50c0c0(0x1f2)],_0x5f5260=(_0x540b21,_0x52179b,_0x3a198e,_0x32afcb)=>{const _0x1616ab=_0x50c0c0;for(var _0x3b28b9=_0x32afcb>0x1?void 0x0:_0x32afcb?_0x3c63dc(_0x52179b,_0x3a198e):_0x52179b,_0x1940e2=_0x540b21[_0x1616ab(0x1de)]-0x1,_0x16cd55;_0x1940e2>=0x0;_0x1940e2--)(_0x16cd55=_0x540b21[_0x1940e2])&&(_0x3b28b9=_0x16cd55(_0x3b28b9)||_0x3b28b9);return _0x3b28b9;},_0x2930df=(_0x2c2be8,_0x4d3af2)=>(_0x2ef632,_0x4394ee)=>_0x4d3af2(_0x2ef632,_0x4394ee,_0x2c2be8);let _0x4d5d2b=class extends _0x1b24ff[_0x50c0c0(0x1cc)]{constructor(_0x4f8881,_0x253d67){const _0x524c6c=_0x50c0c0;super(),this[_0x524c6c(0x1e4)]=_0x4f8881,this[_0x524c6c(0x1f3)]=_0x253d67,this[_0x524c6c(0x1dd)](),this['_initMenus']();}[_0x50c0c0(0x1dd)](){const _0x31df09=_0x50c0c0;[_0x2c1fc7,_0x6d310f][_0x31df09(0x1ee)](_0x274c20=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x274c20));});}[_0x50c0c0(0x1d5)](){const _0x4a2557=_0x50c0c0;this['_menuManagerService'][_0x4a2557(0x1f6)](_0x1bddc3);}};_0x4d5d2b=_0x5f5260([_0x2930df(0x0,_0x1b24ff[_0x50c0c0(0x1d2)]),_0x2930df(0x1,_0x33a391[_0x50c0c0(0x1af)])],_0x4d5d2b);var _0x102738=Object[_0x50c0c0(0x1d1)],_0xd284da=Object[_0x50c0c0(0x1f2)],_0xece728=(_0x5eb241,_0x3fba94,_0x2cbe9c)=>_0x3fba94 in _0x5eb241?_0x102738(_0x5eb241,_0x3fba94,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cbe9c}):_0x5eb241[_0x3fba94]=_0x2cbe9c,_0x1cddda=(_0x5b7a78,_0x3bce30,_0x4553d9,_0x156b31)=>{const _0x1a3cfa=_0x50c0c0;for(var _0x25c721=_0x156b31>0x1?void 0x0:_0x156b31?_0xd284da(_0x3bce30,_0x4553d9):_0x3bce30,_0x56f133=_0x5b7a78[_0x1a3cfa(0x1de)]-0x1,_0xe6a85e;_0x56f133>=0x0;_0x56f133--)(_0xe6a85e=_0x5b7a78[_0x56f133])&&(_0x25c721=_0xe6a85e(_0x25c721)||_0x25c721);return _0x25c721;},_0xfcf9d4=(_0x53d5af,_0x2c904d)=>(_0x26c130,_0x1a36fd)=>_0x2c904d(_0x26c130,_0x1a36fd,_0x53d5af),_0xf9fa8=(_0xfcdaeb,_0x535afa,_0x7eccb8)=>_0xece728(_0xfcdaeb,typeof _0x535afa!='symbol'?_0x535afa+'':_0x535afa,_0x7eccb8);const _0x131d36=_0x50c0c0(0x1d7);_0x4d0d12['UniverSheetsExchangeClientPlugin']=class extends _0x1b24ff[_0x50c0c0(0x1b3)]{constructor(_0x25b240=_0x46c011,_0x47573d,_0x179c34){const _0x29afec=_0x50c0c0;super(),this[_0x29afec(0x1d6)]=_0x25b240,this[_0x29afec(0x1e3)]=_0x47573d,this['_configService']=_0x179c34;const {menu:_0x3eada9,..._0x5703c5}=_0x1b24ff[_0x29afec(0x1c2)]({},_0x46c011,this['_config']);_0x3eada9&&this[_0x29afec(0x1c9)][_0x29afec(0x1c8)](_0x29afec(0x1d4),_0x3eada9,{'merge':!0x0}),this[_0x29afec(0x1c9)]['setConfig'](_0x1bc695,_0x5703c5);}['onStarting'](){const _0x4cd729=_0x50c0c0;[[_0x4d5d2b]][_0x4cd729(0x1ee)](_0x5b56a1=>this[_0x4cd729(0x1e3)][_0x4cd729(0x1db)](_0x5b56a1));}[_0x50c0c0(0x1f5)](){const _0x163929=_0x50c0c0;this[_0x163929(0x1e3)][_0x163929(0x1c5)](_0x4d5d2b);}},_0xf9fa8(_0x4d0d12[_0x50c0c0(0x1c6)],_0x50c0c0(0x1bb),_0x131d36),_0xf9fa8(_0x4d0d12[_0x50c0c0(0x1c6)],_0x50c0c0(0x1c4),_0x1b24ff[_0x50c0c0(0x1bf)]['UNIVER_SHEET']),_0x4d0d12[_0x50c0c0(0x1c6)]=_0x1cddda([_0x1b24ff[_0x50c0c0(0x1da)](_0x31433e[_0x50c0c0(0x1cb)]),_0xfcf9d4(0x1,_0x1b24ff[_0x50c0c0(0x1e5)](_0x1b24ff['Injector'])),_0xfcf9d4(0x2,_0x1b24ff[_0x50c0c0(0x1cf)])],_0x4d0d12['UniverSheetsExchangeClientPlugin']),_0x4d0d12[_0x50c0c0(0x1d0)]=_0x6d310f,_0x4d0d12[_0x50c0c0(0x1ef)]=_0x2c1fc7,Object[_0x50c0c0(0x1d1)](_0x4d0d12,Symbol['toStringTag'],{'value':_0x50c0c0(0x1f7)});}));
1
+ function _0x7375(_0x1c700d,_0x54856b){const _0x149cb5=_0x149c();return _0x7375=function(_0x7375af,_0x1c04d3){_0x7375af=_0x7375af-0x1d3;let _0x2c8444=_0x149cb5[_0x7375af];return _0x2c8444;},_0x7375(_0x1c700d,_0x54856b);}function _0x149c(){const _0x5d02ae=['disposeWithMe','UNIVER_SHEET','pluginName','DirectExportIcon','importXLSXToUnitId','length','2966984ygOTEi','getMenuHiddenObservable','_configService','search','19917aNrmyd','ICommandService','IMenuManagerService','CommandType','215330ceJlWi','963790oMWJUs','UniverUi','UniverInstanceType','defineProperty','amd','IExchangeOperateService','UniverSheets','2672658eYwTEI','WorkbookExportPermission','exchange.file','forEach','@univerjs-pro/exchange-client','_initMenus','exchange-client.operation.export-xlsx','OTHERS','@univerjs/sheets-ui','sheets-exchange-client.operation.exchange','getCurrentRangeDisable$','@univerjs/sheets','symbol','UniverSheetsUi','exchange.upload','OPERATION','SUBITEMS','exchange-client.operation.import-xlsx','function','getOwnPropertyDescriptor','@univerjs/core','UniverSheetsExchangeClientPlugin','1757182pWocqI','Plugin','IConfigService','_injector','_config','Injector','sheets-exchange-client.config','onStarting','190ueReyH','_initCommands','9652736SlpeaF','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','BUTTON','FolderIcon','Disposable','mergeMenu','exchange.download','exportXLSXByUnitId','registerCommand','_menuManagerService','get','unit','RibbonStartGroup','ExportXLSXOperation','merge','ImportXLSXOperation','onReady','UniverProSheetsExchangeClient','MenuItemType','importXLSXToSnapshot','exports','toStringTag'];_0x149c=function(){return _0x5d02ae;};return _0x149c();}(function(_0x561a06,_0x2ad96c){const _0x32dc2e=_0x7375,_0x537694=_0x561a06();while(!![]){try{const _0x1549cd=parseInt(_0x32dc2e(0x1f9))/0x1+parseInt(_0x32dc2e(0x21e))/0x2*(-parseInt(_0x32dc2e(0x1f4))/0x3)+parseInt(_0x32dc2e(0x1f0))/0x4+parseInt(_0x32dc2e(0x1f8))/0x5+parseInt(_0x32dc2e(0x200))/0x6+parseInt(_0x32dc2e(0x216))/0x7+-parseInt(_0x32dc2e(0x1d3))/0x8;if(_0x1549cd===_0x2ad96c)break;else _0x537694['push'](_0x537694['shift']());}catch(_0x58ea71){_0x537694['push'](_0x537694['shift']());}}}(_0x149c,0x9461e),function(_0x20c878,_0x26131b){const _0x4f7bcf=_0x7375;typeof exports=='object'&&typeof module<'u'?_0x26131b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4f7bcf(0x212)&&define[_0x4f7bcf(0x1fd)]?define([_0x4f7bcf(0x1e8),_0x4f7bcf(0x204),_0x4f7bcf(0x214),'@univerjs/ui',_0x4f7bcf(0x20b),_0x4f7bcf(0x208)],_0x26131b):(_0x20c878=typeof globalThis<'u'?globalThis:_0x20c878||self,_0x26131b(_0x20c878[_0x4f7bcf(0x1e5)]={},_0x20c878['UniverProExchangeClient'],_0x20c878['UniverCore'],_0x20c878[_0x4f7bcf(0x1fa)],_0x20c878[_0x4f7bcf(0x1ff)],_0x20c878[_0x4f7bcf(0x20d)]));}(this,function(_0x28b316,_0x2e4c74,_0x1a6a2f,_0xb6e0fb,_0x2244bf,_0x74cf7e){'use strict';const _0x1896b6=_0x7375;const _0x1b3f0e={'id':_0x1896b6(0x211),'type':_0x1a6a2f['CommandType']['OPERATION'],'handler':async _0x541960=>{const _0x453c7c=_0x1896b6,_0x36d09e=_0x541960[_0x453c7c(0x1de)](_0x2e4c74['IExchangeOperateService']);return new URLSearchParams(location[_0x453c7c(0x1f3)])[_0x453c7c(0x1de)](_0x453c7c(0x1df))?_0x36d09e[_0x453c7c(0x1ee)]():_0x36d09e[_0x453c7c(0x1e7)](),!0x0;}},_0x52659c={'id':_0x1896b6(0x206),'type':_0x1a6a2f[_0x1896b6(0x1f7)][_0x1896b6(0x20f)],'handler':async _0x14b589=>{const _0x237b64=_0x1896b6,_0x20296d=_0x14b589[_0x237b64(0x1de)](_0x2e4c74[_0x237b64(0x1fe)]);return new URLSearchParams(location[_0x237b64(0x1f3)])[_0x237b64(0x1de)](_0x237b64(0x1df))?_0x20296d[_0x237b64(0x1db)]():_0x20296d[_0x237b64(0x1d4)](),!0x0;}},_0x304265=_0x1896b6(0x21c),_0xdd281b={},_0x2eb95e=_0x1896b6(0x209);function _0x10b056(_0x1eabbd){const _0x53a93b=_0x1896b6;return{'id':_0x2eb95e,'type':_0xb6e0fb['MenuItemType'][_0x53a93b(0x210)],'icon':_0x53a93b(0x1ed),'tooltip':_0x53a93b(0x202),'hidden$':_0xb6e0fb[_0x53a93b(0x1f1)](_0x1eabbd,_0x1a6a2f['UniverInstanceType'][_0x53a93b(0x1eb)]),'disabled$':_0x74cf7e[_0x53a93b(0x20a)](_0x1eabbd,{'workbookTypes':[_0x2244bf[_0x53a93b(0x201)]]})};}function _0x11d9d4(){const _0x1894f5=_0x1896b6;return{'id':_0x1b3f0e['id'],'type':_0xb6e0fb[_0x1894f5(0x1e6)][_0x1894f5(0x1d6)],'title':_0x1894f5(0x20e),'icon':_0x1894f5(0x1d7)};}function _0x225c27(){const _0x298051=_0x1896b6;return{'id':_0x52659c['id'],'type':_0xb6e0fb['MenuItemType'][_0x298051(0x1d6)],'title':_0x298051(0x1da),'icon':'ExportIcon'};}const _0x41297d={[_0xb6e0fb[_0x1896b6(0x1e0)][_0x1896b6(0x207)]]:{[_0x2eb95e]:{'order':0.3,'menuItemFactory':_0x10b056,[_0x1b3f0e['id']]:{'order':0x0,'menuItemFactory':_0x11d9d4},[_0x52659c['id']]:{'order':0x1,'menuItemFactory':_0x225c27}}}};var _0x3d8e4a=Object[_0x1896b6(0x213)],_0x10af9b=(_0x288983,_0x3ac10a,_0x1a3ad8,_0x573807)=>{for(var _0x967d26=_0x573807>0x1?void 0x0:_0x573807?_0x3d8e4a(_0x3ac10a,_0x1a3ad8):_0x3ac10a,_0x4404b4=_0x288983['length']-0x1,_0x173520;_0x4404b4>=0x0;_0x4404b4--)(_0x173520=_0x288983[_0x4404b4])&&(_0x967d26=_0x173520(_0x967d26)||_0x967d26);return _0x967d26;},_0x116296=(_0x33bc40,_0x396bfa)=>(_0x1f8d0f,_0x72927c)=>_0x396bfa(_0x1f8d0f,_0x72927c,_0x33bc40);let _0xe58fd6=class extends _0x1a6a2f[_0x1896b6(0x1d8)]{constructor(_0x55c57a,_0x5babd2){const _0x573d4a=_0x1896b6;super(),this['_commandService']=_0x55c57a,this['_menuManagerService']=_0x5babd2,this[_0x573d4a(0x21f)](),this[_0x573d4a(0x205)]();}['_initCommands'](){[_0x1b3f0e,_0x52659c]['forEach'](_0xfa7e98=>{const _0x2a18f1=_0x7375;this[_0x2a18f1(0x1ea)](this['_commandService'][_0x2a18f1(0x1dc)](_0xfa7e98));});}['_initMenus'](){const _0x1b1738=_0x1896b6;this[_0x1b1738(0x1dd)][_0x1b1738(0x1d9)](_0x41297d);}};_0xe58fd6=_0x10af9b([_0x116296(0x0,_0x1a6a2f[_0x1896b6(0x1f5)]),_0x116296(0x1,_0xb6e0fb[_0x1896b6(0x1f6)])],_0xe58fd6);var _0x31bd1c=Object[_0x1896b6(0x1fc)],_0xa2b719=Object[_0x1896b6(0x213)],_0x56568e=(_0x3e3917,_0x2a2854,_0x32cb45)=>_0x2a2854 in _0x3e3917?_0x31bd1c(_0x3e3917,_0x2a2854,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32cb45}):_0x3e3917[_0x2a2854]=_0x32cb45,_0x4c5aa1=(_0x54ffb8,_0x504d8b,_0x478323,_0x3dc2c)=>{const _0x25de4a=_0x1896b6;for(var _0x2d79fd=_0x3dc2c>0x1?void 0x0:_0x3dc2c?_0xa2b719(_0x504d8b,_0x478323):_0x504d8b,_0x2addd0=_0x54ffb8[_0x25de4a(0x1ef)]-0x1,_0x4f67ee;_0x2addd0>=0x0;_0x2addd0--)(_0x4f67ee=_0x54ffb8[_0x2addd0])&&(_0x2d79fd=_0x4f67ee(_0x2d79fd)||_0x2d79fd);return _0x2d79fd;},_0xc7b2d8=(_0x38fd6b,_0x473849)=>(_0x3bed64,_0x40bfc4)=>_0x473849(_0x3bed64,_0x40bfc4,_0x38fd6b),_0x17a06f=(_0x5e825e,_0xf97d7d,_0x854623)=>_0x56568e(_0x5e825e,typeof _0xf97d7d!=_0x1896b6(0x20c)?_0xf97d7d+'':_0xf97d7d,_0x854623);const _0x4f1491=_0x1896b6(0x1d5);_0x28b316[_0x1896b6(0x215)]=class extends _0x1a6a2f[_0x1896b6(0x217)]{constructor(_0x5eaca6=_0xdd281b,_0x3116b3,_0x2a87af){const _0x4ab42d=_0x1896b6;super(),this[_0x4ab42d(0x21a)]=_0x5eaca6,this[_0x4ab42d(0x219)]=_0x3116b3,this[_0x4ab42d(0x1f2)]=_0x2a87af;const {menu:_0x89b68a,..._0x22b846}=_0x1a6a2f[_0x4ab42d(0x1e2)]({},_0xdd281b,this[_0x4ab42d(0x21a)]);_0x89b68a&&this['_configService']['setConfig']('menu',_0x89b68a,{'merge':!0x0}),this['_configService']['setConfig'](_0x304265,_0x22b846);}[_0x1896b6(0x21d)](){const _0x306ab5=_0x1896b6;[[_0xe58fd6]][_0x306ab5(0x203)](_0x37c2ce=>this[_0x306ab5(0x219)]['add'](_0x37c2ce));}[_0x1896b6(0x1e4)](){const _0x1efb54=_0x1896b6;this[_0x1efb54(0x219)]['get'](_0xe58fd6);}},_0x17a06f(_0x28b316[_0x1896b6(0x215)],_0x1896b6(0x1ec),_0x4f1491),_0x17a06f(_0x28b316[_0x1896b6(0x215)],'type',_0x1a6a2f[_0x1896b6(0x1fb)][_0x1896b6(0x1eb)]),_0x28b316[_0x1896b6(0x215)]=_0x4c5aa1([_0x1a6a2f['DependentOn'](_0x2e4c74['UniverExchangeClientPlugin']),_0xc7b2d8(0x1,_0x1a6a2f['Inject'](_0x1a6a2f[_0x1896b6(0x21b)])),_0xc7b2d8(0x2,_0x1a6a2f[_0x1896b6(0x218)])],_0x28b316[_0x1896b6(0x215)]),_0x28b316[_0x1896b6(0x1e1)]=_0x52659c,_0x28b316[_0x1896b6(0x1e3)]=_0x1b3f0e,Object[_0x1896b6(0x1fc)](_0x28b316,Symbol[_0x1896b6(0x1e9)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.10.13-nightly.202510290902",
3
+ "version": "0.10.14-nightly.202511031023",
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.10.13-nightly.202510290902",
46
- "@univerjs/sheets": "0.10.13-nightly.202510290902",
47
- "@univerjs/core": "0.10.13-nightly.202510290902",
48
- "@univerjs/sheets-ui": "0.10.13-nightly.202510290902",
49
- "@univerjs/ui": "0.10.13-nightly.202510290902"
45
+ "@univerjs-pro/exchange-client": "0.10.14-nightly.202511031023",
46
+ "@univerjs/core": "0.10.14-nightly.202511031023",
47
+ "@univerjs/sheets-ui": "0.10.14-nightly.202511031023",
48
+ "@univerjs/sheets": "0.10.14-nightly.202511031023",
49
+ "@univerjs/ui": "0.10.14-nightly.202511031023"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^7.1.12",
54
54
  "vitest": "^3.2.4",
55
- "@univerjs-infra/shared": "0.10.13"
55
+ "@univerjs-infra/shared": "0.10.14"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",