@univerjs-pro/sheets-exchange-client 0.14.0-insiders.20251227-b250a8d → 0.15.0-insiders.20251227-dafc157
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x79aeee=_0x16f5;function _0x16f5(_0x69b9d7,_0x303c95){_0x69b9d7=_0x69b9d7-0xe6;const _0x354c3a=_0x354c();let _0x16f5e7=_0x354c3a[_0x69b9d7];return _0x16f5e7;}(function(_0x27a046,_0x341b6e){const _0x4f3ce8=_0x16f5,_0x5c0ac3=_0x27a046();while(!![]){try{const _0x239b1b=-parseInt(_0x4f3ce8(0x109))/0x1+parseInt(_0x4f3ce8(0x111))/0x2*(parseInt(_0x4f3ce8(0xf1))/0x3)+parseInt(_0x4f3ce8(0x106))/0x4*(parseInt(_0x4f3ce8(0x11a))/0x5)+parseInt(_0x4f3ce8(0x117))/0x6+parseInt(_0x4f3ce8(0x114))/0x7+parseInt(_0x4f3ce8(0x113))/0x8+-parseInt(_0x4f3ce8(0x115))/0x9;if(_0x239b1b===_0x341b6e)break;else _0x5c0ac3['push'](_0x5c0ac3['shift']());}catch(_0x3e8a04){_0x5c0ac3['push'](_0x5c0ac3['shift']());}}}(_0x354c,0xeaa33));function _0x354c(){const _0x13a0b9=['WorkbookExportPermission','type','sheets-exchange-client.config','toStringTag','getCurrentRangeDisable$','exchange-client.operation.import-xlsx','_config','_initCommands','UniverExchangeClientPlugin','ExportIcon','IExchangeOperateService','Inject','_menuManagerService','disposeWithMe','ExportXLSXOperation','OPERATION','length','101512AJwdLW','getOwnPropertyDescriptor','BUTTON','331151eSMsFy','Plugin','_configService','UNIVER_SHEET','ICommandService','DirectExportIcon','ImportXLSXOperation','defineProperty','46URXzOU','get','8969440gKBUxT','7963879qpgEzQ','31817187ZtRYdZ','exportXLSXByUnitId','6490422RSHkBY','_initMenus','exchange.upload','75UViDLH','UniverSheetsExchangeClientPlugin','unit','Injector','RibbonStartGroup','sheets-exchange-client.operation.exchange','importXLSXToSnapshot','IMenuManagerService','_injector','registerCommand','exchange.download','importXLSXToUnitId','Disposable','exchange-client.operation.export-xlsx','MenuItemType','forEach','search','SHEET_EXCHANGE_CLIENT_PLUGIN','onReady','symbol','mergeMenu','menu','UniverInstanceType','144285urZiFv','CommandType','Module','add'];_0x354c=function(){return _0x13a0b9;};return _0x354c();}Object[_0x79aeee(0x110)](exports,Symbol[_0x79aeee(0xf8)],{'value':_0x79aeee(0xf3)});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':_0x79aeee(0xfa),'type':i[_0x79aeee(0xf2)][_0x79aeee(0x104)],'handler':async _0x1135fc=>{const _0x1f3b7c=_0x79aeee,_0x58afa6=_0x1135fc[_0x1f3b7c(0x112)](g[_0x1f3b7c(0xff)]);return new URLSearchParams(location[_0x1f3b7c(0xea)])[_0x1f3b7c(0x112)]('unit')?_0x58afa6[_0x1f3b7c(0x125)]():_0x58afa6[_0x1f3b7c(0x120)](),!0x0;}},p={'id':_0x79aeee(0xe7),'type':i[_0x79aeee(0xf2)]['OPERATION'],'handler':async _0xa0cb93=>{const _0x368c67=_0x79aeee,_0x193c37=_0xa0cb93['get'](g[_0x368c67(0xff)]);return new URLSearchParams(location['search'])[_0x368c67(0x112)](_0x368c67(0x11c))?_0x193c37[_0x368c67(0x116)]():_0x193c37['exportXLSXBySnapshot'](),!0x0;}},v=_0x79aeee(0xf7),h={},S=_0x79aeee(0x11f);function x(_0x238cb9){const _0x42dcf6=_0x79aeee;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x42dcf6(0x10e),'tooltip':'exchange.file','hidden$':c['getMenuHiddenObservable'](_0x238cb9,i[_0x42dcf6(0xf0)][_0x42dcf6(0x10c)]),'disabled$':I[_0x42dcf6(0xf9)](_0x238cb9,{'workbookTypes':[_[_0x42dcf6(0xf5)]]})};}function P(){const _0x300064=_0x79aeee;return{'id':l['id'],'type':c[_0x300064(0xe8)][_0x300064(0x108)],'title':_0x300064(0x119),'icon':'FolderIcon'};}function C(){const _0x3a8382=_0x79aeee;return{'id':p['id'],'type':c[_0x3a8382(0xe8)][_0x3a8382(0x108)],'title':_0x3a8382(0x124),'icon':_0x3a8382(0xfe)};}const f={[c[_0x79aeee(0x11e)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x50a7ee,_0x2da4d0,_0x1da2a8,_0x3ca59f)=>{const _0x2dfc1=_0x79aeee;for(var _0x4c5c75=_0x3ca59f>0x1?void 0x0:_0x3ca59f?T(_0x2da4d0,_0x1da2a8):_0x2da4d0,_0x561bca=_0x50a7ee[_0x2dfc1(0x105)]-0x1,_0x6bb641;_0x561bca>=0x0;_0x561bca--)(_0x6bb641=_0x50a7ee[_0x561bca])&&(_0x4c5c75=_0x6bb641(_0x4c5c75)||_0x4c5c75);return _0x4c5c75;},m=(_0x50b396,_0x45d929)=>(_0x2dae7a,_0x3e756c)=>_0x45d929(_0x2dae7a,_0x3e756c,_0x50b396);let u=class extends i[_0x79aeee(0xe6)]{constructor(_0x5eb32a,_0x2eec65){const _0x587b17=_0x79aeee;super(),this['_commandService']=_0x5eb32a,this[_0x587b17(0x101)]=_0x2eec65,this[_0x587b17(0xfc)](),this[_0x587b17(0x118)]();}['_initCommands'](){const _0x94d842=_0x79aeee;[l,p][_0x94d842(0xe9)](_0x515854=>{const _0x442232=_0x94d842;this[_0x442232(0x102)](this['_commandService'][_0x442232(0x123)](_0x515854));});}[_0x79aeee(0x118)](){const _0x32e306=_0x79aeee;this[_0x32e306(0x101)][_0x32e306(0xee)](f);}};u=y([m(0x0,i[_0x79aeee(0x10d)]),m(0x1,c[_0x79aeee(0x121)])],u);var O=Object['defineProperty'],U=Object[_0x79aeee(0x107)],X=(_0x5aaf11,_0x1c7877,_0x262e6b)=>_0x1c7877 in _0x5aaf11?O(_0x5aaf11,_0x1c7877,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x262e6b}):_0x5aaf11[_0x1c7877]=_0x262e6b,N=(_0x3d7afd,_0x468dcf,_0x17e2f1,_0x5f38b2)=>{const _0x23c57c=_0x79aeee;for(var _0x141e9e=_0x5f38b2>0x1?void 0x0:_0x5f38b2?U(_0x468dcf,_0x17e2f1):_0x468dcf,_0x43e2ef=_0x3d7afd[_0x23c57c(0x105)]-0x1,_0x51246e;_0x43e2ef>=0x0;_0x43e2ef--)(_0x51246e=_0x3d7afd[_0x43e2ef])&&(_0x141e9e=_0x51246e(_0x141e9e)||_0x141e9e);return _0x141e9e;},d=(_0x208db1,_0x338cd4)=>(_0x4e27ee,_0x50d777)=>_0x338cd4(_0x4e27ee,_0x50d777,_0x208db1),E=(_0x4b0b29,_0x46f0a2,_0x401cc2)=>X(_0x4b0b29,typeof _0x46f0a2!=_0x79aeee(0xed)?_0x46f0a2+'':_0x46f0a2,_0x401cc2);const L=_0x79aeee(0xeb);exports[_0x79aeee(0x11b)]=class extends i[_0x79aeee(0x10a)]{constructor(_0xfd09a6=h,_0x3fc76b,_0x51b3a3){const _0x4a7e8a=_0x79aeee;super(),this[_0x4a7e8a(0xfb)]=_0xfd09a6,this['_injector']=_0x3fc76b,this[_0x4a7e8a(0x10b)]=_0x51b3a3;const {menu:_0x157735,..._0x2daf03}=i['merge']({},h,this[_0x4a7e8a(0xfb)]);_0x157735&&this[_0x4a7e8a(0x10b)]['setConfig'](_0x4a7e8a(0xef),_0x157735,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x2daf03);}['onStarting'](){const _0x29fad3=_0x79aeee;[[u]][_0x29fad3(0xe9)](_0x5861fe=>this[_0x29fad3(0x122)][_0x29fad3(0xf4)](_0x5861fe));}[_0x79aeee(0xec)](){const _0x4e4cbf=_0x79aeee;this[_0x4e4cbf(0x122)][_0x4e4cbf(0x112)](u);}},E(exports[_0x79aeee(0x11b)],'pluginName',L),E(exports[_0x79aeee(0x11b)],_0x79aeee(0xf6),i['UniverInstanceType'][_0x79aeee(0x10c)]),exports[_0x79aeee(0x11b)]=N([i['DependentOn'](g[_0x79aeee(0xfd)]),d(0x1,i[_0x79aeee(0x100)](i[_0x79aeee(0x11d)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x79aeee(0x103)]=p,exports[_0x79aeee(0x10f)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x477711=_0x1a05;(function(_0x471bcf,_0x2e6983){const _0x4a78e7=_0x1a05,_0x5cf3da=_0x471bcf();while(!![]){try{const _0x213001=parseInt(_0x4a78e7(0x178))/0x1*(-parseInt(_0x4a78e7(0x169))/0x2)+-parseInt(_0x4a78e7(0x17d))/0x3+-parseInt(_0x4a78e7(0x171))/0x4*(-parseInt(_0x4a78e7(0x164))/0x5)+-parseInt(_0x4a78e7(0x158))/0x6*(parseInt(_0x4a78e7(0x175))/0x7)+-parseInt(_0x4a78e7(0x168))/0x8+-parseInt(_0x4a78e7(0x170))/0x9+parseInt(_0x4a78e7(0x16e))/0xa*(parseInt(_0x4a78e7(0x152))/0xb);if(_0x213001===_0x2e6983)break;else _0x5cf3da['push'](_0x5cf3da['shift']());}catch(_0x5b4d14){_0x5cf3da['push'](_0x5cf3da['shift']());}}}(_0x5197,0x8a868));import{IExchangeOperateService as _0x2c6aca,UniverExchangeClientPlugin as _0x53b7c3}from'@univerjs-pro/exchange-client';import{CommandType as _0x3b3be1,UniverInstanceType as _0x5ee927,Disposable as _0x1e8ac0,ICommandService as _0x260fe3,DependentOn as _0x2147d1,Inject as _0x4dfdee,Injector as _0x20615a,IConfigService as _0x21e44b,Plugin as _0x2abe10,merge as _0x7f1cbf}from'@univerjs/core';function _0x5197(){const _0x44128b=['type','sheets-exchange-client.config','6348558gMjNda','exchange.download','exchange.file','OPERATION','_initMenus','getOwnPropertyDescriptor','_menuManagerService','exchange.upload','BUTTON','exchange-client.operation.export-xlsx','_config','forEach','13875oJWWzP','_initCommands','exportXLSXBySnapshot','FolderIcon','7402368DUoNxh','6CmLCTs','setConfig','importXLSXToUnitId','importXLSXToSnapshot','exportXLSXByUnitId','49730GajpUb','_configService','10074303TAfYKw','964aaUUko','search','ExportIcon','disposeWithMe','7wCQhfA','UNIVER_SHEET','symbol','356899PiHXpz','unit','OTHERS','length','add','1703193xbkvdE','get','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','10263gfLbFl','_commandService','onReady','_injector'];_0x5197=function(){return _0x44128b;};return _0x5197();}import{MenuItemType as _0x140cbc,getMenuHiddenObservable as _0x41f797,RibbonStartGroup as _0x1d3531,IMenuManagerService as _0x3a3206}from'@univerjs/ui';import{WorkbookExportPermission as _0x1fb4bf}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a57af}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x3b3be1['OPERATION'],'handler':async _0x4ac68d=>{const _0x11e09d=_0x1a05,_0x37e629=_0x4ac68d['get'](_0x2c6aca);return new URLSearchParams(location[_0x11e09d(0x172)])[_0x11e09d(0x17e)]('unit')?_0x37e629[_0x11e09d(0x16b)]():_0x37e629[_0x11e09d(0x16c)](),!0x0;}},u={'id':_0x477711(0x161),'type':_0x3b3be1[_0x477711(0x15b)],'handler':async _0x33ece8=>{const _0x169be5=_0x477711,_0x273afb=_0x33ece8['get'](_0x2c6aca);return new URLSearchParams(location[_0x169be5(0x172)])['get'](_0x169be5(0x179))?_0x273afb[_0x169be5(0x16d)]():_0x273afb[_0x169be5(0x166)](),!0x0;}},H=_0x477711(0x157),l={},S='sheets-exchange-client.operation.exchange';function R(_0x2881c6){const _0x172d25=_0x477711;return{'id':S,'type':_0x140cbc['SUBITEMS'],'icon':_0x172d25(0x17f),'tooltip':_0x172d25(0x15a),'hidden$':_0x41f797(_0x2881c6,_0x5ee927['UNIVER_SHEET']),'disabled$':_0x1a57af(_0x2881c6,{'workbookTypes':[_0x1fb4bf]})};}function w(){const _0x4682d1=_0x477711;return{'id':p['id'],'type':_0x140cbc[_0x4682d1(0x160)],'title':_0x4682d1(0x15f),'icon':_0x4682d1(0x167)};}function D(){const _0x2f84df=_0x477711;return{'id':u['id'],'type':_0x140cbc['BUTTON'],'title':_0x2f84df(0x159),'icon':_0x2f84df(0x173)};}const F={[_0x1d3531[_0x477711(0x17a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x45f9c8,_0x1c2c50,_0xc6b8ed,_0x5ff96d)=>{const _0xcba6e7=_0x477711;for(var _0x128e4b=_0x5ff96d>0x1?void 0x0:_0x5ff96d?G(_0x1c2c50,_0xc6b8ed):_0x1c2c50,_0x3cd9c0=_0x45f9c8[_0xcba6e7(0x17b)]-0x1,_0x3cabde;_0x3cd9c0>=0x0;_0x3cd9c0--)(_0x3cabde=_0x45f9c8[_0x3cd9c0])&&(_0x128e4b=_0x3cabde(_0x128e4b)||_0x128e4b);return _0x128e4b;},d=(_0x5b1f80,_0xc37091)=>(_0x10646a,_0x8828)=>_0xc37091(_0x10646a,_0x8828,_0x5b1f80);function _0x1a05(_0x1d5a82,_0x1f1d9c){_0x1d5a82=_0x1d5a82-0x151;const _0x51976f=_0x5197();let _0x1a0514=_0x51976f[_0x1d5a82];return _0x1a0514;}let c=class extends _0x1e8ac0{constructor(_0x2a715a,_0x2d60fe){const _0x1fcac9=_0x477711;super(),this[_0x1fcac9(0x153)]=_0x2a715a,this[_0x1fcac9(0x15e)]=_0x2d60fe,this[_0x1fcac9(0x165)](),this['_initMenus']();}[_0x477711(0x165)](){const _0x2ee308=_0x477711;[p,u][_0x2ee308(0x163)](_0x48b231=>{const _0x7b31c=_0x2ee308;this[_0x7b31c(0x174)](this[_0x7b31c(0x153)]['registerCommand'](_0x48b231));});}[_0x477711(0x15c)](){const _0x436e86=_0x477711;this[_0x436e86(0x15e)]['mergeMenu'](F);}};c=A([d(0x0,_0x260fe3),d(0x1,_0x3a3206)],c);var j=Object['defineProperty'],B=Object[_0x477711(0x15d)],$=(_0x2a04b1,_0x32d73b,_0x9b7c16)=>_0x32d73b in _0x2a04b1?j(_0x2a04b1,_0x32d73b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b7c16}):_0x2a04b1[_0x32d73b]=_0x9b7c16,V=(_0x102840,_0x1e134a,_0x1d38bc,_0x2b344d)=>{for(var _0x44e6ae=_0x2b344d>0x1?void 0x0:_0x2b344d?B(_0x1e134a,_0x1d38bc):_0x1e134a,_0x41883c=_0x102840['length']-0x1,_0x52ffa0;_0x41883c>=0x0;_0x41883c--)(_0x52ffa0=_0x102840[_0x41883c])&&(_0x44e6ae=_0x52ffa0(_0x44e6ae)||_0x44e6ae);return _0x44e6ae;},_=(_0x579bd8,_0x39138f)=>(_0xf1c7ba,_0x1d40a5)=>_0x39138f(_0xf1c7ba,_0x1d40a5,_0x579bd8),I=(_0x2462fa,_0x9aa7d9,_0x2d1a87)=>$(_0x2462fa,typeof _0x9aa7d9!=_0x477711(0x177)?_0x9aa7d9+'':_0x9aa7d9,_0x2d1a87);const W=_0x477711(0x151);let s=class extends _0x2abe10{constructor(_0x5950a3=l,_0x44fe6e,_0x541d3f){const _0x1b7b91=_0x477711;super(),this[_0x1b7b91(0x162)]=_0x5950a3,this[_0x1b7b91(0x155)]=_0x44fe6e,this[_0x1b7b91(0x16f)]=_0x541d3f;const {menu:_0x102b72,..._0x2acb96}=_0x7f1cbf({},l,this[_0x1b7b91(0x162)]);_0x102b72&&this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)]('menu',_0x102b72,{'merge':!0x0}),this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)](H,_0x2acb96);}['onStarting'](){const _0x327d7c=_0x477711;[[c]][_0x327d7c(0x163)](_0x4acec2=>this['_injector'][_0x327d7c(0x17c)](_0x4acec2));}[_0x477711(0x154)](){const _0x57c6f9=_0x477711;this[_0x57c6f9(0x155)][_0x57c6f9(0x17e)](c);}};I(s,'pluginName',W),I(s,_0x477711(0x156),_0x5ee927[_0x477711(0x176)]),s=V([_0x2147d1(_0x53b7c3),_(0x1,_0x4dfdee(_0x20615a)),_(0x2,_0x21e44b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x477711=_0x1a05;(function(_0x471bcf,_0x2e6983){const _0x4a78e7=_0x1a05,_0x5cf3da=_0x471bcf();while(!![]){try{const _0x213001=parseInt(_0x4a78e7(0x178))/0x1*(-parseInt(_0x4a78e7(0x169))/0x2)+-parseInt(_0x4a78e7(0x17d))/0x3+-parseInt(_0x4a78e7(0x171))/0x4*(-parseInt(_0x4a78e7(0x164))/0x5)+-parseInt(_0x4a78e7(0x158))/0x6*(parseInt(_0x4a78e7(0x175))/0x7)+-parseInt(_0x4a78e7(0x168))/0x8+-parseInt(_0x4a78e7(0x170))/0x9+parseInt(_0x4a78e7(0x16e))/0xa*(parseInt(_0x4a78e7(0x152))/0xb);if(_0x213001===_0x2e6983)break;else _0x5cf3da['push'](_0x5cf3da['shift']());}catch(_0x5b4d14){_0x5cf3da['push'](_0x5cf3da['shift']());}}}(_0x5197,0x8a868));import{IExchangeOperateService as _0x2c6aca,UniverExchangeClientPlugin as _0x53b7c3}from'@univerjs-pro/exchange-client';import{CommandType as _0x3b3be1,UniverInstanceType as _0x5ee927,Disposable as _0x1e8ac0,ICommandService as _0x260fe3,DependentOn as _0x2147d1,Inject as _0x4dfdee,Injector as _0x20615a,IConfigService as _0x21e44b,Plugin as _0x2abe10,merge as _0x7f1cbf}from'@univerjs/core';function _0x5197(){const _0x44128b=['type','sheets-exchange-client.config','6348558gMjNda','exchange.download','exchange.file','OPERATION','_initMenus','getOwnPropertyDescriptor','_menuManagerService','exchange.upload','BUTTON','exchange-client.operation.export-xlsx','_config','forEach','13875oJWWzP','_initCommands','exportXLSXBySnapshot','FolderIcon','7402368DUoNxh','6CmLCTs','setConfig','importXLSXToUnitId','importXLSXToSnapshot','exportXLSXByUnitId','49730GajpUb','_configService','10074303TAfYKw','964aaUUko','search','ExportIcon','disposeWithMe','7wCQhfA','UNIVER_SHEET','symbol','356899PiHXpz','unit','OTHERS','length','add','1703193xbkvdE','get','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','10263gfLbFl','_commandService','onReady','_injector'];_0x5197=function(){return _0x44128b;};return _0x5197();}import{MenuItemType as _0x140cbc,getMenuHiddenObservable as _0x41f797,RibbonStartGroup as _0x1d3531,IMenuManagerService as _0x3a3206}from'@univerjs/ui';import{WorkbookExportPermission as _0x1fb4bf}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a57af}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x3b3be1['OPERATION'],'handler':async _0x4ac68d=>{const _0x11e09d=_0x1a05,_0x37e629=_0x4ac68d['get'](_0x2c6aca);return new URLSearchParams(location[_0x11e09d(0x172)])[_0x11e09d(0x17e)]('unit')?_0x37e629[_0x11e09d(0x16b)]():_0x37e629[_0x11e09d(0x16c)](),!0x0;}},u={'id':_0x477711(0x161),'type':_0x3b3be1[_0x477711(0x15b)],'handler':async _0x33ece8=>{const _0x169be5=_0x477711,_0x273afb=_0x33ece8['get'](_0x2c6aca);return new URLSearchParams(location[_0x169be5(0x172)])['get'](_0x169be5(0x179))?_0x273afb[_0x169be5(0x16d)]():_0x273afb[_0x169be5(0x166)](),!0x0;}},H=_0x477711(0x157),l={},S='sheets-exchange-client.operation.exchange';function R(_0x2881c6){const _0x172d25=_0x477711;return{'id':S,'type':_0x140cbc['SUBITEMS'],'icon':_0x172d25(0x17f),'tooltip':_0x172d25(0x15a),'hidden$':_0x41f797(_0x2881c6,_0x5ee927['UNIVER_SHEET']),'disabled$':_0x1a57af(_0x2881c6,{'workbookTypes':[_0x1fb4bf]})};}function w(){const _0x4682d1=_0x477711;return{'id':p['id'],'type':_0x140cbc[_0x4682d1(0x160)],'title':_0x4682d1(0x15f),'icon':_0x4682d1(0x167)};}function D(){const _0x2f84df=_0x477711;return{'id':u['id'],'type':_0x140cbc['BUTTON'],'title':_0x2f84df(0x159),'icon':_0x2f84df(0x173)};}const F={[_0x1d3531[_0x477711(0x17a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x45f9c8,_0x1c2c50,_0xc6b8ed,_0x5ff96d)=>{const _0xcba6e7=_0x477711;for(var _0x128e4b=_0x5ff96d>0x1?void 0x0:_0x5ff96d?G(_0x1c2c50,_0xc6b8ed):_0x1c2c50,_0x3cd9c0=_0x45f9c8[_0xcba6e7(0x17b)]-0x1,_0x3cabde;_0x3cd9c0>=0x0;_0x3cd9c0--)(_0x3cabde=_0x45f9c8[_0x3cd9c0])&&(_0x128e4b=_0x3cabde(_0x128e4b)||_0x128e4b);return _0x128e4b;},d=(_0x5b1f80,_0xc37091)=>(_0x10646a,_0x8828)=>_0xc37091(_0x10646a,_0x8828,_0x5b1f80);function _0x1a05(_0x1d5a82,_0x1f1d9c){_0x1d5a82=_0x1d5a82-0x151;const _0x51976f=_0x5197();let _0x1a0514=_0x51976f[_0x1d5a82];return _0x1a0514;}let c=class extends _0x1e8ac0{constructor(_0x2a715a,_0x2d60fe){const _0x1fcac9=_0x477711;super(),this[_0x1fcac9(0x153)]=_0x2a715a,this[_0x1fcac9(0x15e)]=_0x2d60fe,this[_0x1fcac9(0x165)](),this['_initMenus']();}[_0x477711(0x165)](){const _0x2ee308=_0x477711;[p,u][_0x2ee308(0x163)](_0x48b231=>{const _0x7b31c=_0x2ee308;this[_0x7b31c(0x174)](this[_0x7b31c(0x153)]['registerCommand'](_0x48b231));});}[_0x477711(0x15c)](){const _0x436e86=_0x477711;this[_0x436e86(0x15e)]['mergeMenu'](F);}};c=A([d(0x0,_0x260fe3),d(0x1,_0x3a3206)],c);var j=Object['defineProperty'],B=Object[_0x477711(0x15d)],$=(_0x2a04b1,_0x32d73b,_0x9b7c16)=>_0x32d73b in _0x2a04b1?j(_0x2a04b1,_0x32d73b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b7c16}):_0x2a04b1[_0x32d73b]=_0x9b7c16,V=(_0x102840,_0x1e134a,_0x1d38bc,_0x2b344d)=>{for(var _0x44e6ae=_0x2b344d>0x1?void 0x0:_0x2b344d?B(_0x1e134a,_0x1d38bc):_0x1e134a,_0x41883c=_0x102840['length']-0x1,_0x52ffa0;_0x41883c>=0x0;_0x41883c--)(_0x52ffa0=_0x102840[_0x41883c])&&(_0x44e6ae=_0x52ffa0(_0x44e6ae)||_0x44e6ae);return _0x44e6ae;},_=(_0x579bd8,_0x39138f)=>(_0xf1c7ba,_0x1d40a5)=>_0x39138f(_0xf1c7ba,_0x1d40a5,_0x579bd8),I=(_0x2462fa,_0x9aa7d9,_0x2d1a87)=>$(_0x2462fa,typeof _0x9aa7d9!=_0x477711(0x177)?_0x9aa7d9+'':_0x9aa7d9,_0x2d1a87);const W=_0x477711(0x151);let s=class extends _0x2abe10{constructor(_0x5950a3=l,_0x44fe6e,_0x541d3f){const _0x1b7b91=_0x477711;super(),this[_0x1b7b91(0x162)]=_0x5950a3,this[_0x1b7b91(0x155)]=_0x44fe6e,this[_0x1b7b91(0x16f)]=_0x541d3f;const {menu:_0x102b72,..._0x2acb96}=_0x7f1cbf({},l,this[_0x1b7b91(0x162)]);_0x102b72&&this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)]('menu',_0x102b72,{'merge':!0x0}),this[_0x1b7b91(0x16f)][_0x1b7b91(0x16a)](H,_0x2acb96);}['onStarting'](){const _0x327d7c=_0x477711;[[c]][_0x327d7c(0x163)](_0x4acec2=>this['_injector'][_0x327d7c(0x17c)](_0x4acec2));}[_0x477711(0x154)](){const _0x57c6f9=_0x477711;this[_0x57c6f9(0x155)][_0x57c6f9(0x17e)](c);}};I(s,'pluginName',W),I(s,_0x477711(0x156),_0x5ee927[_0x477711(0x176)]),s=V([_0x2147d1(_0x53b7c3),_(0x1,_0x4dfdee(_0x20615a)),_(0x2,_0x21e44b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x203e4e,_0x598a48){const _0x162265=_0x3966,_0x400b15=_0x203e4e();while(!![]){try{const _0x15248a=-parseInt(_0x162265(0x150))/0x1*(-parseInt(_0x162265(0x116))/0x2)+parseInt(_0x162265(0x108))/0x3+parseInt(_0x162265(0x137))/0x4*(parseInt(_0x162265(0x12f))/0x5)+parseInt(_0x162265(0x111))/0x6*(parseInt(_0x162265(0x12c))/0x7)+parseInt(_0x162265(0x13e))/0x8+-parseInt(_0x162265(0x11f))/0x9+parseInt(_0x162265(0x10f))/0xa*(-parseInt(_0x162265(0x131))/0xb);if(_0x15248a===_0x598a48)break;else _0x400b15['push'](_0x400b15['shift']());}catch(_0x304a75){_0x400b15['push'](_0x400b15['shift']());}}}(_0x1c2b,0xa96d5),function(_0x206c35,_0x1d5a16){const _0x5a06d0=_0x3966;typeof exports=='object'&&typeof module<'u'?_0x1d5a16(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5a06d0(0x119)&&define[_0x5a06d0(0x149)]?define([_0x5a06d0(0x148),_0x5a06d0(0x103),_0x5a06d0(0x104),_0x5a06d0(0x139),_0x5a06d0(0x14d),'@univerjs/sheets-ui'],_0x1d5a16):(_0x206c35=typeof globalThis<'u'?globalThis:_0x206c35||self,_0x1d5a16(_0x206c35[_0x5a06d0(0x143)]={},_0x206c35[_0x5a06d0(0x109)],_0x206c35[_0x5a06d0(0x124)],_0x206c35[_0x5a06d0(0x147)],_0x206c35[_0x5a06d0(0x135)],_0x206c35[_0x5a06d0(0x130)]));}(this,function(_0x1d79a2,_0x1c211e,_0x95e674,_0x3a42cb,_0x35d0cd,_0x4b9feb){'use strict';const _0x63003c=_0x3966;const _0x4dfd8c={'id':_0x63003c(0x10d),'type':_0x95e674[_0x63003c(0x11d)]['OPERATION'],'handler':async _0x46cf76=>{const _0x28df6f=_0x63003c,_0x432170=_0x46cf76[_0x28df6f(0x126)](_0x1c211e[_0x28df6f(0x145)]);return new URLSearchParams(location['search'])[_0x28df6f(0x126)]('unit')?_0x432170[_0x28df6f(0x10b)]():_0x432170[_0x28df6f(0x142)](),!0x0;}},_0x369711={'id':_0x63003c(0x112),'type':_0x95e674['CommandType']['OPERATION'],'handler':async _0x254e7f=>{const _0x255629=_0x63003c,_0x55ff6d=_0x254e7f['get'](_0x1c211e[_0x255629(0x145)]);return new URLSearchParams(location[_0x255629(0x10c)])['get']('unit')?_0x55ff6d['exportXLSXByUnitId']():_0x55ff6d['exportXLSXBySnapshot'](),!0x0;}},_0x523e6b=_0x63003c(0x11c),_0x347208={},_0x3ef2a3=_0x63003c(0x133);function _0x5240f4(_0x36d034){const _0x3e4761=_0x63003c;return{'id':_0x3ef2a3,'type':_0x3a42cb[_0x3e4761(0x129)][_0x3e4761(0x127)],'icon':_0x3e4761(0x138),'tooltip':_0x3e4761(0x122),'hidden$':_0x3a42cb[_0x3e4761(0x14f)](_0x36d034,_0x95e674[_0x3e4761(0x136)]['UNIVER_SHEET']),'disabled$':_0x4b9feb['getCurrentRangeDisable$'](_0x36d034,{'workbookTypes':[_0x35d0cd['WorkbookExportPermission']]})};}function _0x19ca2a(){const _0x104fef=_0x63003c;return{'id':_0x4dfd8c['id'],'type':_0x3a42cb[_0x104fef(0x129)][_0x104fef(0x11a)],'title':_0x104fef(0x12a),'icon':_0x104fef(0x13d)};}function _0x2c97c3(){const _0x3706de=_0x63003c;return{'id':_0x369711['id'],'type':_0x3a42cb[_0x3706de(0x129)][_0x3706de(0x11a)],'title':'exchange.download','icon':_0x3706de(0x132)};}const _0x5da24a={[_0x3a42cb[_0x63003c(0x10e)]['OTHERS']]:{[_0x3ef2a3]:{'order':0.3,'menuItemFactory':_0x5240f4,[_0x4dfd8c['id']]:{'order':0x0,'menuItemFactory':_0x19ca2a},[_0x369711['id']]:{'order':0x1,'menuItemFactory':_0x2c97c3}}}};var _0x466f6f=Object[_0x63003c(0x113)],_0x5c73c2=(_0x54306b,_0x3d19a7,_0x130675,_0x588e97)=>{const _0x37bfc2=_0x63003c;for(var _0x23660d=_0x588e97>0x1?void 0x0:_0x588e97?_0x466f6f(_0x3d19a7,_0x130675):_0x3d19a7,_0x350bfd=_0x54306b[_0x37bfc2(0x12b)]-0x1,_0x18d3ba;_0x350bfd>=0x0;_0x350bfd--)(_0x18d3ba=_0x54306b[_0x350bfd])&&(_0x23660d=_0x18d3ba(_0x23660d)||_0x23660d);return _0x23660d;},_0x2d809d=(_0x39ffb9,_0x415795)=>(_0x54ed46,_0x94de4a)=>_0x415795(_0x54ed46,_0x94de4a,_0x39ffb9);let _0xad8033=class extends _0x95e674[_0x63003c(0x114)]{constructor(_0x3fcf2f,_0x20aeac){const _0x7991c3=_0x63003c;super(),this['_commandService']=_0x3fcf2f,this[_0x7991c3(0x146)]=_0x20aeac,this[_0x7991c3(0x115)](),this[_0x7991c3(0x13a)]();}['_initCommands'](){[_0x4dfd8c,_0x369711]['forEach'](_0x17b552=>{const _0x5afff2=_0x3966;this[_0x5afff2(0x12e)](this['_commandService'][_0x5afff2(0x118)](_0x17b552));});}[_0x63003c(0x13a)](){const _0x1f30bd=_0x63003c;this[_0x1f30bd(0x146)][_0x1f30bd(0x123)](_0x5da24a);}};_0xad8033=_0x5c73c2([_0x2d809d(0x0,_0x95e674[_0x63003c(0x107)]),_0x2d809d(0x1,_0x3a42cb['IMenuManagerService'])],_0xad8033);var _0x5e2213=Object[_0x63003c(0x106)],_0x2e160a=Object['getOwnPropertyDescriptor'],_0x46deb7=(_0x308b83,_0x3a2bcb,_0x46bcc2)=>_0x3a2bcb in _0x308b83?_0x5e2213(_0x308b83,_0x3a2bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46bcc2}):_0x308b83[_0x3a2bcb]=_0x46bcc2,_0x47af33=(_0x39f0a2,_0x59faeb,_0x36010c,_0x53bd7e)=>{const _0x2d0957=_0x63003c;for(var _0x14bb47=_0x53bd7e>0x1?void 0x0:_0x53bd7e?_0x2e160a(_0x59faeb,_0x36010c):_0x59faeb,_0x3287ab=_0x39f0a2[_0x2d0957(0x12b)]-0x1,_0x1afbe6;_0x3287ab>=0x0;_0x3287ab--)(_0x1afbe6=_0x39f0a2[_0x3287ab])&&(_0x14bb47=_0x1afbe6(_0x14bb47)||_0x14bb47);return _0x14bb47;},_0x35400d=(_0x47638a,_0x5eee30)=>(_0x10b82d,_0x5a8ce9)=>_0x5eee30(_0x10b82d,_0x5a8ce9,_0x47638a),_0x4acc93=(_0x3ebc29,_0x85e04a,_0x3f588b)=>_0x46deb7(_0x3ebc29,typeof _0x85e04a!=_0x63003c(0x128)?_0x85e04a+'':_0x85e04a,_0x3f588b);const _0x1cf1e2=_0x63003c(0x134);_0x1d79a2[_0x63003c(0x120)]=class extends _0x95e674[_0x63003c(0x140)]{constructor(_0x2e496e=_0x347208,_0x219dde,_0x1869f0){const _0x52ce05=_0x63003c;super(),this['_config']=_0x2e496e,this[_0x52ce05(0x10a)]=_0x219dde,this['_configService']=_0x1869f0;const {menu:_0x55a8e1,..._0x2163aa}=_0x95e674[_0x52ce05(0x13b)]({},_0x347208,this[_0x52ce05(0x110)]);_0x55a8e1&&this['_configService'][_0x52ce05(0x11e)]('menu',_0x55a8e1,{'merge':!0x0}),this[_0x52ce05(0x121)][_0x52ce05(0x11e)](_0x523e6b,_0x2163aa);}[_0x63003c(0x12d)](){const _0x493d48=_0x63003c;[[_0xad8033]][_0x493d48(0x14b)](_0x384efb=>this[_0x493d48(0x10a)][_0x493d48(0x13c)](_0x384efb));}[_0x63003c(0x14a)](){const _0x14cd7e=_0x63003c;this['_injector'][_0x14cd7e(0x126)](_0xad8033);}},_0x4acc93(_0x1d79a2[_0x63003c(0x120)],_0x63003c(0x117),_0x1cf1e2),_0x4acc93(_0x1d79a2[_0x63003c(0x120)],_0x63003c(0x11b),_0x95e674['UniverInstanceType'][_0x63003c(0x141)]),_0x1d79a2['UniverSheetsExchangeClientPlugin']=_0x47af33([_0x95e674[_0x63003c(0x105)](_0x1c211e['UniverExchangeClientPlugin']),_0x35400d(0x1,_0x95e674[_0x63003c(0x14c)](_0x95e674[_0x63003c(0x125)])),_0x35400d(0x2,_0x95e674['IConfigService'])],_0x1d79a2[_0x63003c(0x120)]),_0x1d79a2[_0x63003c(0x144)]=_0x369711,_0x1d79a2[_0x63003c(0x13f)]=_0x4dfd8c,Object[_0x63003c(0x106)](_0x1d79a2,Symbol[_0x63003c(0x14e)],{'value':'Module'});}));function _0x3966(_0x12512a,_0x1ce150){_0x12512a=_0x12512a-0x103;const _0x1c2bd2=_0x1c2b();let _0x39666d=_0x1c2bd2[_0x12512a];return _0x39666d;}function _0x1c2b(){const _0x228c60=['302040FPnJNx','UniverProExchangeClient','_injector','importXLSXToUnitId','search','exchange-client.operation.import-xlsx','RibbonStartGroup','460xhBPIN','_config','12384kmyRBl','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','Disposable','_initCommands','14030TrLuQX','pluginName','registerCommand','function','BUTTON','type','sheets-exchange-client.config','CommandType','setConfig','4908492NiPDBh','UniverSheetsExchangeClientPlugin','_configService','exchange.file','mergeMenu','UniverCore','Injector','get','SUBITEMS','symbol','MenuItemType','exchange.upload','length','686XOHTeO','onStarting','disposeWithMe','50dxqfae','UniverSheetsUi','49687syczCy','ExportIcon','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverSheets','UniverInstanceType','238856FaceLk','DirectExportIcon','@univerjs/ui','_initMenus','merge','add','FolderIcon','616368VuDxUh','ImportXLSXOperation','Plugin','UNIVER_SHEET','importXLSXToSnapshot','UniverProSheetsExchangeClient','ExportXLSXOperation','IExchangeOperateService','_menuManagerService','UniverUi','exports','amd','onReady','forEach','Inject','@univerjs/sheets','toStringTag','getMenuHiddenObservable','67rtaoFf','@univerjs-pro/exchange-client','@univerjs/core','DependentOn','defineProperty','ICommandService'];_0x1c2b=function(){return _0x228c60;};return _0x1c2b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-insiders.20251227-dafc157",
|
|
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.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/sheets": "0.
|
|
48
|
-
"@univerjs/ui": "0.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.0-insiders.20251227-dafc157",
|
|
46
|
+
"@univerjs/core": "0.15.0-insiders.20251227-dafc157",
|
|
47
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20251227-dafc157",
|
|
48
|
+
"@univerjs/ui": "0.15.0-insiders.20251227-dafc157",
|
|
49
|
+
"@univerjs/sheets": "0.15.0-insiders.20251227-dafc157"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.3.0",
|
|
54
54
|
"vitest": "^4.0.16",
|
|
55
|
-
"@univerjs-infra/shared": "0.
|
|
55
|
+
"@univerjs-infra/shared": "0.15.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|