@univerjs-pro/sheets-exchange-client 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251220-0a5ea4d
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 +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x43d289=_0x2ff7;(function(_0x47d00b,_0x683b65){const _0x31cd87=_0x2ff7,_0x2c0ea2=_0x47d00b();while(!![]){try{const _0x2bcc0f=-parseInt(_0x31cd87(0x191))/0x1+parseInt(_0x31cd87(0x190))/0x2*(parseInt(_0x31cd87(0x15f))/0x3)+-parseInt(_0x31cd87(0x181))/0x4*(parseInt(_0x31cd87(0x173))/0x5)+parseInt(_0x31cd87(0x165))/0x6+parseInt(_0x31cd87(0x170))/0x7+-parseInt(_0x31cd87(0x16f))/0x8*(parseInt(_0x31cd87(0x162))/0x9)+parseInt(_0x31cd87(0x193))/0xa;if(_0x2bcc0f===_0x683b65)break;else _0x2c0ea2['push'](_0x2c0ea2['shift']());}catch(_0x38a4da){_0x2c0ea2['push'](_0x2c0ea2['shift']());}}}(_0x50bc,0x26115));Object[_0x43d289(0x16a)](exports,Symbol[_0x43d289(0x174)],{'value':_0x43d289(0x166)});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':_0x43d289(0x189),'type':i['CommandType'][_0x43d289(0x17f)],'handler':async _0x3f13ad=>{const _0xce0deb=_0x43d289,_0xf2d6b1=_0x3f13ad['get'](g[_0xce0deb(0x15d)]);return new URLSearchParams(location[_0xce0deb(0x18e)])[_0xce0deb(0x18b)](_0xce0deb(0x182))?_0xf2d6b1[_0xce0deb(0x171)]():_0xf2d6b1[_0xce0deb(0x18c)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x43d289(0x177)][_0x43d289(0x17f)],'handler':async _0x2d6b7d=>{const _0x39d213=_0x43d289,_0x4f2112=_0x2d6b7d[_0x39d213(0x18b)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x39d213(0x18e)])[_0x39d213(0x18b)](_0x39d213(0x182))?_0x4f2112[_0x39d213(0x163)]():_0x4f2112[_0x39d213(0x184)](),!0x0;}},v=_0x43d289(0x157),h={},S=_0x43d289(0x18f);function x(_0x22e89b){const _0x250db6=_0x43d289;return{'id':S,'type':c[_0x250db6(0x15c)][_0x250db6(0x169)],'icon':'DirectExportIcon','tooltip':_0x250db6(0x167),'hidden$':c[_0x250db6(0x175)](_0x22e89b,i[_0x250db6(0x192)][_0x250db6(0x187)]),'disabled$':I[_0x250db6(0x15a)](_0x22e89b,{'workbookTypes':[_[_0x250db6(0x197)]]})};}function P(){const _0xc338f5=_0x43d289;return{'id':l['id'],'type':c['MenuItemType'][_0xc338f5(0x168)],'title':_0xc338f5(0x19a),'icon':'FolderIcon'};}function C(){const _0x15b044=_0x43d289;return{'id':p['id'],'type':c['MenuItemType'][_0x15b044(0x168)],'title':_0x15b044(0x164),'icon':_0x15b044(0x17a)};}const f={[c[_0x43d289(0x159)][_0x43d289(0x194)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x43d289(0x176)],y=(_0x36f75d,_0x1d6f45,_0x542db2,_0x5c014f)=>{for(var _0x4dcc30=_0x5c014f>0x1?void 0x0:_0x5c014f?T(_0x1d6f45,_0x542db2):_0x1d6f45,_0x326156=_0x36f75d['length']-0x1,_0x4a7a3d;_0x326156>=0x0;_0x326156--)(_0x4a7a3d=_0x36f75d[_0x326156])&&(_0x4dcc30=_0x4a7a3d(_0x4dcc30)||_0x4dcc30);return _0x4dcc30;},m=(_0x979fa5,_0x3f85ed)=>(_0x2b1c18,_0x1a4951)=>_0x3f85ed(_0x2b1c18,_0x1a4951,_0x979fa5);let u=class extends i[_0x43d289(0x17c)]{constructor(_0x8fcd85,_0xde8855){const _0x518f72=_0x43d289;super(),this[_0x518f72(0x188)]=_0x8fcd85,this['_menuManagerService']=_0xde8855,this[_0x518f72(0x195)](),this[_0x518f72(0x161)]();}[_0x43d289(0x195)](){const _0x20f290=_0x43d289;[l,p][_0x20f290(0x15b)](_0x585ed7=>{const _0x1340af=_0x20f290;this['disposeWithMe'](this[_0x1340af(0x188)][_0x1340af(0x158)](_0x585ed7));});}[_0x43d289(0x161)](){const _0x2ea917=_0x43d289;this[_0x2ea917(0x185)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x43d289(0x15e)]),m(0x1,c[_0x43d289(0x17d)])],u);function _0x50bc(){const _0x133048=['ICommandService','3aIZnTb','symbol','_initMenus','9RcLGQf','exportXLSXByUnitId','exchange.download','306390oZZgNJ','Module','exchange.file','BUTTON','SUBITEMS','defineProperty','onReady','Plugin','DependentOn','menu','1738808lzZTDs','974918YGHKvI','importXLSXToUnitId','Inject','1605ZdTeUP','toStringTag','getMenuHiddenObservable','getOwnPropertyDescriptor','CommandType','add','SHEET_EXCHANGE_CLIENT_PLUGIN','ExportIcon','_injector','Disposable','IMenuManagerService','onStarting','OPERATION','UniverExchangeClientPlugin','1564zbOIws','unit','merge','exportXLSXBySnapshot','_menuManagerService','_config','UNIVER_SHEET','_commandService','exchange-client.operation.import-xlsx','_configService','get','importXLSXToSnapshot','ExportXLSXOperation','search','sheets-exchange-client.operation.exchange','179002yrzDkg','298372jIguFr','UniverInstanceType','5173190RHtDwo','OTHERS','_initCommands','ImportXLSXOperation','WorkbookExportPermission','setConfig','UniverSheetsExchangeClientPlugin','exchange.upload','sheets-exchange-client.config','registerCommand','RibbonStartGroup','getCurrentRangeDisable$','forEach','MenuItemType','IExchangeOperateService'];_0x50bc=function(){return _0x133048;};return _0x50bc();}function _0x2ff7(_0x4b2e9d,_0x3ca6b4){_0x4b2e9d=_0x4b2e9d-0x157;const _0x50bc94=_0x50bc();let _0x2ff770=_0x50bc94[_0x4b2e9d];return _0x2ff770;}var O=Object[_0x43d289(0x16a)],U=Object[_0x43d289(0x176)],X=(_0x5d4d79,_0x9ff861,_0xdc0e58)=>_0x9ff861 in _0x5d4d79?O(_0x5d4d79,_0x9ff861,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc0e58}):_0x5d4d79[_0x9ff861]=_0xdc0e58,N=(_0x45a1f0,_0x5dc005,_0x73ffa,_0x3daa48)=>{for(var _0x212e08=_0x3daa48>0x1?void 0x0:_0x3daa48?U(_0x5dc005,_0x73ffa):_0x5dc005,_0x4b9d48=_0x45a1f0['length']-0x1,_0x1ac197;_0x4b9d48>=0x0;_0x4b9d48--)(_0x1ac197=_0x45a1f0[_0x4b9d48])&&(_0x212e08=_0x1ac197(_0x212e08)||_0x212e08);return _0x212e08;},d=(_0x446315,_0x515c2b)=>(_0x51e481,_0x44af7b)=>_0x515c2b(_0x51e481,_0x44af7b,_0x446315),E=(_0x54e425,_0x3dd767,_0x37703b)=>X(_0x54e425,typeof _0x3dd767!=_0x43d289(0x160)?_0x3dd767+'':_0x3dd767,_0x37703b);const L=_0x43d289(0x179);exports[_0x43d289(0x199)]=class extends i[_0x43d289(0x16c)]{constructor(_0x2d5f67=h,_0x5d160b,_0x3f1587){const _0xf0407f=_0x43d289;super(),this['_config']=_0x2d5f67,this['_injector']=_0x5d160b,this[_0xf0407f(0x18a)]=_0x3f1587;const {menu:_0x2fe9d7,..._0x356837}=i[_0xf0407f(0x183)]({},h,this[_0xf0407f(0x186)]);_0x2fe9d7&&this[_0xf0407f(0x18a)][_0xf0407f(0x198)](_0xf0407f(0x16e),_0x2fe9d7,{'merge':!0x0}),this[_0xf0407f(0x18a)][_0xf0407f(0x198)](v,_0x356837);}[_0x43d289(0x17e)](){const _0x15262f=_0x43d289;[[u]][_0x15262f(0x15b)](_0x4e5e61=>this[_0x15262f(0x17b)][_0x15262f(0x178)](_0x4e5e61));}[_0x43d289(0x16b)](){const _0x51cf65=_0x43d289;this[_0x51cf65(0x17b)]['get'](u);}},E(exports[_0x43d289(0x199)],'pluginName',L),E(exports[_0x43d289(0x199)],'type',i[_0x43d289(0x192)][_0x43d289(0x187)]),exports[_0x43d289(0x199)]=N([i[_0x43d289(0x16d)](g[_0x43d289(0x180)]),d(0x1,i[_0x43d289(0x172)](i['Injector'])),d(0x2,i['IConfigService'])],exports[_0x43d289(0x199)]),exports[_0x43d289(0x18d)]=p,exports[_0x43d289(0x196)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x50d904=_0x17a0;(function(_0x1491e4,_0x565160){const _0x50eed8=_0x17a0,_0x122880=_0x1491e4();while(!![]){try{const _0x55a725=parseInt(_0x50eed8(0x1e6))/0x1*(parseInt(_0x50eed8(0x1f1))/0x2)+-parseInt(_0x50eed8(0x206))/0x3*(-parseInt(_0x50eed8(0x203))/0x4)+-parseInt(_0x50eed8(0x1f0))/0x5*(-parseInt(_0x50eed8(0x1fa))/0x6)+parseInt(_0x50eed8(0x1e8))/0x7+-parseInt(_0x50eed8(0x1f9))/0x8*(parseInt(_0x50eed8(0x1ff))/0x9)+parseInt(_0x50eed8(0x213))/0xa+-parseInt(_0x50eed8(0x20d))/0xb;if(_0x55a725===_0x565160)break;else _0x122880['push'](_0x122880['shift']());}catch(_0x44419d){_0x122880['push'](_0x122880['shift']());}}}(_0x2a75,0x8a32d));import{IExchangeOperateService as _0xe06be3,UniverExchangeClientPlugin as _0x221305}from'@univerjs-pro/exchange-client';import{CommandType as _0x48e8b3,UniverInstanceType as _0x116a7c,Disposable as _0x73650d,ICommandService as _0x35d70c,DependentOn as _0x2c38de,Inject as _0x106028,Injector as _0x219c14,IConfigService as _0x15308c,Plugin as _0x348e91,merge as _0x267911}from'@univerjs/core';function _0x2a75(){const _0x36d475=['1293404XESJvo','search','exchange.download','_initMenus','pluginName','_configService','_injector','exchange.upload','10905FehpHs','6tNsUzL','unit','symbol','BUTTON','importXLSXToSnapshot','OTHERS','menu','_commandService','56WrQYYZ','186rlOXkU','mergeMenu','exchange-client.operation.export-xlsx','SUBITEMS','SHEET_EXCHANGE_CLIENT_PLUGIN','1232667vFyATp','exchange.file','_initCommands','UNIVER_SHEET','12336RugWiF','disposeWithMe','onReady','579mzVhgo','getOwnPropertyDescriptor','add','sheets-exchange-client.operation.exchange','DirectExportIcon','get','sheets-exchange-client.config','5950824dNsmmd','forEach','OPERATION','length','exportXLSXBySnapshot','_config','7376120ZFJjtu','ExportIcon','160193vAktFC','_menuManagerService'];_0x2a75=function(){return _0x36d475;};return _0x2a75();}import{MenuItemType as _0x295754,getMenuHiddenObservable as _0x44f13d,RibbonStartGroup as _0x3d1ebe,IMenuManagerService as _0x3577d0}from'@univerjs/ui';function _0x17a0(_0x1e53d4,_0x56d943){_0x1e53d4=_0x1e53d4-0x1e5;const _0x2a75b5=_0x2a75();let _0x17a05d=_0x2a75b5[_0x1e53d4];return _0x17a05d;}import{WorkbookExportPermission as _0x2f37b7}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3400c3}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x48e8b3[_0x50d904(0x20f)],'handler':async _0x31802f=>{const _0x53db38=_0x50d904,_0x2b99d9=_0x31802f[_0x53db38(0x20b)](_0xe06be3);return new URLSearchParams(location[_0x53db38(0x1e9)])['get'](_0x53db38(0x1f2))?_0x2b99d9['importXLSXToUnitId']():_0x2b99d9[_0x53db38(0x1f5)](),!0x0;}},u={'id':_0x50d904(0x1fc),'type':_0x48e8b3['OPERATION'],'handler':async _0x13b75a=>{const _0x59b308=_0x50d904,_0x14af56=_0x13b75a[_0x59b308(0x20b)](_0xe06be3);return new URLSearchParams(location[_0x59b308(0x1e9)])['get'](_0x59b308(0x1f2))?_0x14af56['exportXLSXByUnitId']():_0x14af56[_0x59b308(0x211)](),!0x0;}},H=_0x50d904(0x20c),l={},S=_0x50d904(0x209);function R(_0x5764df){const _0x354dca=_0x50d904;return{'id':S,'type':_0x295754[_0x354dca(0x1fd)],'icon':_0x354dca(0x20a),'tooltip':_0x354dca(0x200),'hidden$':_0x44f13d(_0x5764df,_0x116a7c[_0x354dca(0x202)]),'disabled$':_0x3400c3(_0x5764df,{'workbookTypes':[_0x2f37b7]})};}function w(){const _0x3bc884=_0x50d904;return{'id':p['id'],'type':_0x295754[_0x3bc884(0x1f4)],'title':_0x3bc884(0x1ef),'icon':'FolderIcon'};}function D(){const _0x58f203=_0x50d904;return{'id':u['id'],'type':_0x295754[_0x58f203(0x1f4)],'title':_0x58f203(0x1ea),'icon':_0x58f203(0x1e5)};}const F={[_0x3d1ebe[_0x50d904(0x1f6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x49206a,_0x1f8946,_0x312c4b,_0x6ab429)=>{const _0x5e90c6=_0x50d904;for(var _0x21e5ea=_0x6ab429>0x1?void 0x0:_0x6ab429?G(_0x1f8946,_0x312c4b):_0x1f8946,_0xcebd26=_0x49206a[_0x5e90c6(0x210)]-0x1,_0x3724d0;_0xcebd26>=0x0;_0xcebd26--)(_0x3724d0=_0x49206a[_0xcebd26])&&(_0x21e5ea=_0x3724d0(_0x21e5ea)||_0x21e5ea);return _0x21e5ea;},d=(_0xe9dff8,_0x398305)=>(_0x2e1899,_0x853a32)=>_0x398305(_0x2e1899,_0x853a32,_0xe9dff8);let c=class extends _0x73650d{constructor(_0x354233,_0x53aabb){const _0x3c11c7=_0x50d904;super(),this[_0x3c11c7(0x1f8)]=_0x354233,this[_0x3c11c7(0x1e7)]=_0x53aabb,this[_0x3c11c7(0x201)](),this[_0x3c11c7(0x1eb)]();}[_0x50d904(0x201)](){const _0x229dcb=_0x50d904;[p,u][_0x229dcb(0x20e)](_0x5a7979=>{const _0xc23a5f=_0x229dcb;this[_0xc23a5f(0x204)](this['_commandService']['registerCommand'](_0x5a7979));});}[_0x50d904(0x1eb)](){const _0x8b9c3d=_0x50d904;this['_menuManagerService'][_0x8b9c3d(0x1fb)](F);}};c=A([d(0x0,_0x35d70c),d(0x1,_0x3577d0)],c);var j=Object['defineProperty'],B=Object[_0x50d904(0x207)],$=(_0x3a28ae,_0x272f13,_0x5c5d1d)=>_0x272f13 in _0x3a28ae?j(_0x3a28ae,_0x272f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c5d1d}):_0x3a28ae[_0x272f13]=_0x5c5d1d,V=(_0x408335,_0x487a99,_0x4e9586,_0x5b3c27)=>{const _0x5762d2=_0x50d904;for(var _0x358744=_0x5b3c27>0x1?void 0x0:_0x5b3c27?B(_0x487a99,_0x4e9586):_0x487a99,_0x5b8897=_0x408335[_0x5762d2(0x210)]-0x1,_0x3e716e;_0x5b8897>=0x0;_0x5b8897--)(_0x3e716e=_0x408335[_0x5b8897])&&(_0x358744=_0x3e716e(_0x358744)||_0x358744);return _0x358744;},_=(_0x2b9af2,_0x243132)=>(_0x4bb0d2,_0x29bb91)=>_0x243132(_0x4bb0d2,_0x29bb91,_0x2b9af2),I=(_0x5d1fa7,_0x32fe72,_0x410ad6)=>$(_0x5d1fa7,typeof _0x32fe72!=_0x50d904(0x1f3)?_0x32fe72+'':_0x32fe72,_0x410ad6);const W=_0x50d904(0x1fe);let s=class extends _0x348e91{constructor(_0x31e269=l,_0x2a48bd,_0x20cb9a){const _0x486431=_0x50d904;super(),this[_0x486431(0x212)]=_0x31e269,this[_0x486431(0x1ee)]=_0x2a48bd,this[_0x486431(0x1ed)]=_0x20cb9a;const {menu:_0x23898a,..._0x1aec6c}=_0x267911({},l,this['_config']);_0x23898a&&this[_0x486431(0x1ed)]['setConfig'](_0x486431(0x1f7),_0x23898a,{'merge':!0x0}),this[_0x486431(0x1ed)]['setConfig'](H,_0x1aec6c);}['onStarting'](){const _0x6c6a05=_0x50d904;[[c]][_0x6c6a05(0x20e)](_0x2065d8=>this[_0x6c6a05(0x1ee)][_0x6c6a05(0x208)](_0x2065d8));}[_0x50d904(0x205)](){const _0x357aa4=_0x50d904;this[_0x357aa4(0x1ee)][_0x357aa4(0x20b)](c);}};I(s,_0x50d904(0x1ec),W),I(s,'type',_0x116a7c[_0x50d904(0x202)]),s=V([_0x2c38de(_0x221305),_(0x1,_0x106028(_0x219c14)),_(0x2,_0x15308c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x50d904=_0x17a0;(function(_0x1491e4,_0x565160){const _0x50eed8=_0x17a0,_0x122880=_0x1491e4();while(!![]){try{const _0x55a725=parseInt(_0x50eed8(0x1e6))/0x1*(parseInt(_0x50eed8(0x1f1))/0x2)+-parseInt(_0x50eed8(0x206))/0x3*(-parseInt(_0x50eed8(0x203))/0x4)+-parseInt(_0x50eed8(0x1f0))/0x5*(-parseInt(_0x50eed8(0x1fa))/0x6)+parseInt(_0x50eed8(0x1e8))/0x7+-parseInt(_0x50eed8(0x1f9))/0x8*(parseInt(_0x50eed8(0x1ff))/0x9)+parseInt(_0x50eed8(0x213))/0xa+-parseInt(_0x50eed8(0x20d))/0xb;if(_0x55a725===_0x565160)break;else _0x122880['push'](_0x122880['shift']());}catch(_0x44419d){_0x122880['push'](_0x122880['shift']());}}}(_0x2a75,0x8a32d));import{IExchangeOperateService as _0xe06be3,UniverExchangeClientPlugin as _0x221305}from'@univerjs-pro/exchange-client';import{CommandType as _0x48e8b3,UniverInstanceType as _0x116a7c,Disposable as _0x73650d,ICommandService as _0x35d70c,DependentOn as _0x2c38de,Inject as _0x106028,Injector as _0x219c14,IConfigService as _0x15308c,Plugin as _0x348e91,merge as _0x267911}from'@univerjs/core';function _0x2a75(){const _0x36d475=['1293404XESJvo','search','exchange.download','_initMenus','pluginName','_configService','_injector','exchange.upload','10905FehpHs','6tNsUzL','unit','symbol','BUTTON','importXLSXToSnapshot','OTHERS','menu','_commandService','56WrQYYZ','186rlOXkU','mergeMenu','exchange-client.operation.export-xlsx','SUBITEMS','SHEET_EXCHANGE_CLIENT_PLUGIN','1232667vFyATp','exchange.file','_initCommands','UNIVER_SHEET','12336RugWiF','disposeWithMe','onReady','579mzVhgo','getOwnPropertyDescriptor','add','sheets-exchange-client.operation.exchange','DirectExportIcon','get','sheets-exchange-client.config','5950824dNsmmd','forEach','OPERATION','length','exportXLSXBySnapshot','_config','7376120ZFJjtu','ExportIcon','160193vAktFC','_menuManagerService'];_0x2a75=function(){return _0x36d475;};return _0x2a75();}import{MenuItemType as _0x295754,getMenuHiddenObservable as _0x44f13d,RibbonStartGroup as _0x3d1ebe,IMenuManagerService as _0x3577d0}from'@univerjs/ui';function _0x17a0(_0x1e53d4,_0x56d943){_0x1e53d4=_0x1e53d4-0x1e5;const _0x2a75b5=_0x2a75();let _0x17a05d=_0x2a75b5[_0x1e53d4];return _0x17a05d;}import{WorkbookExportPermission as _0x2f37b7}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x3400c3}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x48e8b3[_0x50d904(0x20f)],'handler':async _0x31802f=>{const _0x53db38=_0x50d904,_0x2b99d9=_0x31802f[_0x53db38(0x20b)](_0xe06be3);return new URLSearchParams(location[_0x53db38(0x1e9)])['get'](_0x53db38(0x1f2))?_0x2b99d9['importXLSXToUnitId']():_0x2b99d9[_0x53db38(0x1f5)](),!0x0;}},u={'id':_0x50d904(0x1fc),'type':_0x48e8b3['OPERATION'],'handler':async _0x13b75a=>{const _0x59b308=_0x50d904,_0x14af56=_0x13b75a[_0x59b308(0x20b)](_0xe06be3);return new URLSearchParams(location[_0x59b308(0x1e9)])['get'](_0x59b308(0x1f2))?_0x14af56['exportXLSXByUnitId']():_0x14af56[_0x59b308(0x211)](),!0x0;}},H=_0x50d904(0x20c),l={},S=_0x50d904(0x209);function R(_0x5764df){const _0x354dca=_0x50d904;return{'id':S,'type':_0x295754[_0x354dca(0x1fd)],'icon':_0x354dca(0x20a),'tooltip':_0x354dca(0x200),'hidden$':_0x44f13d(_0x5764df,_0x116a7c[_0x354dca(0x202)]),'disabled$':_0x3400c3(_0x5764df,{'workbookTypes':[_0x2f37b7]})};}function w(){const _0x3bc884=_0x50d904;return{'id':p['id'],'type':_0x295754[_0x3bc884(0x1f4)],'title':_0x3bc884(0x1ef),'icon':'FolderIcon'};}function D(){const _0x58f203=_0x50d904;return{'id':u['id'],'type':_0x295754[_0x58f203(0x1f4)],'title':_0x58f203(0x1ea),'icon':_0x58f203(0x1e5)};}const F={[_0x3d1ebe[_0x50d904(0x1f6)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x49206a,_0x1f8946,_0x312c4b,_0x6ab429)=>{const _0x5e90c6=_0x50d904;for(var _0x21e5ea=_0x6ab429>0x1?void 0x0:_0x6ab429?G(_0x1f8946,_0x312c4b):_0x1f8946,_0xcebd26=_0x49206a[_0x5e90c6(0x210)]-0x1,_0x3724d0;_0xcebd26>=0x0;_0xcebd26--)(_0x3724d0=_0x49206a[_0xcebd26])&&(_0x21e5ea=_0x3724d0(_0x21e5ea)||_0x21e5ea);return _0x21e5ea;},d=(_0xe9dff8,_0x398305)=>(_0x2e1899,_0x853a32)=>_0x398305(_0x2e1899,_0x853a32,_0xe9dff8);let c=class extends _0x73650d{constructor(_0x354233,_0x53aabb){const _0x3c11c7=_0x50d904;super(),this[_0x3c11c7(0x1f8)]=_0x354233,this[_0x3c11c7(0x1e7)]=_0x53aabb,this[_0x3c11c7(0x201)](),this[_0x3c11c7(0x1eb)]();}[_0x50d904(0x201)](){const _0x229dcb=_0x50d904;[p,u][_0x229dcb(0x20e)](_0x5a7979=>{const _0xc23a5f=_0x229dcb;this[_0xc23a5f(0x204)](this['_commandService']['registerCommand'](_0x5a7979));});}[_0x50d904(0x1eb)](){const _0x8b9c3d=_0x50d904;this['_menuManagerService'][_0x8b9c3d(0x1fb)](F);}};c=A([d(0x0,_0x35d70c),d(0x1,_0x3577d0)],c);var j=Object['defineProperty'],B=Object[_0x50d904(0x207)],$=(_0x3a28ae,_0x272f13,_0x5c5d1d)=>_0x272f13 in _0x3a28ae?j(_0x3a28ae,_0x272f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c5d1d}):_0x3a28ae[_0x272f13]=_0x5c5d1d,V=(_0x408335,_0x487a99,_0x4e9586,_0x5b3c27)=>{const _0x5762d2=_0x50d904;for(var _0x358744=_0x5b3c27>0x1?void 0x0:_0x5b3c27?B(_0x487a99,_0x4e9586):_0x487a99,_0x5b8897=_0x408335[_0x5762d2(0x210)]-0x1,_0x3e716e;_0x5b8897>=0x0;_0x5b8897--)(_0x3e716e=_0x408335[_0x5b8897])&&(_0x358744=_0x3e716e(_0x358744)||_0x358744);return _0x358744;},_=(_0x2b9af2,_0x243132)=>(_0x4bb0d2,_0x29bb91)=>_0x243132(_0x4bb0d2,_0x29bb91,_0x2b9af2),I=(_0x5d1fa7,_0x32fe72,_0x410ad6)=>$(_0x5d1fa7,typeof _0x32fe72!=_0x50d904(0x1f3)?_0x32fe72+'':_0x32fe72,_0x410ad6);const W=_0x50d904(0x1fe);let s=class extends _0x348e91{constructor(_0x31e269=l,_0x2a48bd,_0x20cb9a){const _0x486431=_0x50d904;super(),this[_0x486431(0x212)]=_0x31e269,this[_0x486431(0x1ee)]=_0x2a48bd,this[_0x486431(0x1ed)]=_0x20cb9a;const {menu:_0x23898a,..._0x1aec6c}=_0x267911({},l,this['_config']);_0x23898a&&this[_0x486431(0x1ed)]['setConfig'](_0x486431(0x1f7),_0x23898a,{'merge':!0x0}),this[_0x486431(0x1ed)]['setConfig'](H,_0x1aec6c);}['onStarting'](){const _0x6c6a05=_0x50d904;[[c]][_0x6c6a05(0x20e)](_0x2065d8=>this[_0x6c6a05(0x1ee)][_0x6c6a05(0x208)](_0x2065d8));}[_0x50d904(0x205)](){const _0x357aa4=_0x50d904;this[_0x357aa4(0x1ee)][_0x357aa4(0x20b)](c);}};I(s,_0x50d904(0x1ec),W),I(s,'type',_0x116a7c[_0x50d904(0x202)]),s=V([_0x2c38de(_0x221305),_(0x1,_0x106028(_0x219c14)),_(0x2,_0x15308c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2a0e(_0x898140,_0x5e422c){_0x898140=_0x898140-0x6e;const _0x4ff9d7=_0x4ff9();let _0x2a0ea1=_0x4ff9d7[_0x898140];return _0x2a0ea1;}function _0x4ff9(){const _0x165f03=['object','ICommandService','Inject','type','toStringTag','_initCommands','get','83778IuOHQG','getMenuHiddenObservable','unit','getCurrentRangeDisable$','MenuItemType','_config','_injector','length','SUBITEMS','OPERATION','_menuManagerService','disposeWithMe','defineProperty','1213722hakgMX','UniverUi','exchange.file','UniverSheets','search','forEach','exports','_commandService','UniverInstanceType','BUTTON','add','@univerjs/sheets','onReady','7143Uxhmaw','UniverProExchangeClient','IMenuManagerService','WorkbookExportPermission','UniverCore','exchange.download','4177655fvWgrn','Module','exchange-client.operation.import-xlsx','ExportXLSXOperation','CommandType','699224jxmbCA','343hAoUwV','UniverSheetsExchangeClientPlugin','symbol','12376368FwaxQs','RibbonStartGroup','mergeMenu','sheets-exchange-client.operation.exchange','3573504pPUuTD','DirectExportIcon','UniverProSheetsExchangeClient','ImportXLSXOperation','function','getOwnPropertyDescriptor','_initMenus','FolderIcon','_configService','IConfigService','412PTemvz','UNIVER_SHEET','menu','IExchangeOperateService','@univerjs/core','setConfig','Plugin'];_0x4ff9=function(){return _0x165f03;};return _0x4ff9();}(function(_0x298704,_0x292bf5){const _0x54feb7=_0x2a0e,_0x4297cd=_0x298704();while(!![]){try{const _0x530be0=parseInt(_0x54feb7(0x89))/0x1+-parseInt(_0x54feb7(0x71))/0x2+parseInt(_0x54feb7(0x7e))/0x3*(-parseInt(_0x54feb7(0x9b))/0x4)+-parseInt(_0x54feb7(0x84))/0x5+parseInt(_0x54feb7(0xa9))/0x6*(parseInt(_0x54feb7(0x8a))/0x7)+-parseInt(_0x54feb7(0x91))/0x8+parseInt(_0x54feb7(0x8d))/0x9;if(_0x530be0===_0x292bf5)break;else _0x4297cd['push'](_0x4297cd['shift']());}catch(_0x1fef81){_0x4297cd['push'](_0x4297cd['shift']());}}}(_0x4ff9,0x98670),function(_0x31cac2,_0x1f96b0){const _0x4f67c7=_0x2a0e;typeof exports==_0x4f67c7(0xa2)&&typeof module<'u'?_0x1f96b0(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4f67c7(0x95)&&define['amd']?define([_0x4f67c7(0x77),'@univerjs-pro/exchange-client',_0x4f67c7(0x9f),'@univerjs/ui',_0x4f67c7(0x7c),'@univerjs/sheets-ui'],_0x1f96b0):(_0x31cac2=typeof globalThis<'u'?globalThis:_0x31cac2||self,_0x1f96b0(_0x31cac2[_0x4f67c7(0x93)]={},_0x31cac2[_0x4f67c7(0x7f)],_0x31cac2[_0x4f67c7(0x82)],_0x31cac2[_0x4f67c7(0x72)],_0x31cac2[_0x4f67c7(0x74)],_0x31cac2['UniverSheetsUi']));}(this,function(_0xad2853,_0xb10b5e,_0x359a27,_0x458cda,_0x4559ca,_0x8ac14f){'use strict';const _0x5c8514=_0x2a0e;const _0x3674cd={'id':_0x5c8514(0x86),'type':_0x359a27[_0x5c8514(0x88)][_0x5c8514(0xb2)],'handler':async _0x45a014=>{const _0xf54c05=_0x5c8514,_0x1b3401=_0x45a014[_0xf54c05(0xa8)](_0xb10b5e[_0xf54c05(0x9e)]);return new URLSearchParams(location[_0xf54c05(0x75)])[_0xf54c05(0xa8)]('unit')?_0x1b3401['importXLSXToUnitId']():_0x1b3401['importXLSXToSnapshot'](),!0x0;}},_0x35e0c6={'id':'exchange-client.operation.export-xlsx','type':_0x359a27[_0x5c8514(0x88)][_0x5c8514(0xb2)],'handler':async _0x58c3a0=>{const _0x51081e=_0x5c8514,_0x57b5cb=_0x58c3a0[_0x51081e(0xa8)](_0xb10b5e[_0x51081e(0x9e)]);return new URLSearchParams(location[_0x51081e(0x75)])[_0x51081e(0xa8)](_0x51081e(0xab))?_0x57b5cb['exportXLSXByUnitId']():_0x57b5cb['exportXLSXBySnapshot'](),!0x0;}},_0x22b824='sheets-exchange-client.config',_0x141497={},_0x24bd92=_0x5c8514(0x90);function _0x57ec79(_0x21f706){const _0x5f3bab=_0x5c8514;return{'id':_0x24bd92,'type':_0x458cda['MenuItemType'][_0x5f3bab(0xb1)],'icon':_0x5f3bab(0x92),'tooltip':_0x5f3bab(0x73),'hidden$':_0x458cda[_0x5f3bab(0xaa)](_0x21f706,_0x359a27[_0x5f3bab(0x79)][_0x5f3bab(0x9c)]),'disabled$':_0x8ac14f[_0x5f3bab(0xac)](_0x21f706,{'workbookTypes':[_0x4559ca[_0x5f3bab(0x81)]]})};}function _0x41f35d(){const _0x5bda8b=_0x5c8514;return{'id':_0x3674cd['id'],'type':_0x458cda[_0x5bda8b(0xad)][_0x5bda8b(0x7a)],'title':'exchange.upload','icon':_0x5bda8b(0x98)};}function _0x41a7a9(){const _0x4c973c=_0x5c8514;return{'id':_0x35e0c6['id'],'type':_0x458cda[_0x4c973c(0xad)][_0x4c973c(0x7a)],'title':_0x4c973c(0x83),'icon':'ExportIcon'};}const _0x3bcc6d={[_0x458cda[_0x5c8514(0x8e)]['OTHERS']]:{[_0x24bd92]:{'order':0.3,'menuItemFactory':_0x57ec79,[_0x3674cd['id']]:{'order':0x0,'menuItemFactory':_0x41f35d},[_0x35e0c6['id']]:{'order':0x1,'menuItemFactory':_0x41a7a9}}}};var _0x57d7cb=Object[_0x5c8514(0x96)],_0x3129d2=(_0x33a3e4,_0x51a3b5,_0x1a6eb8,_0x2d28ba)=>{const _0x50d263=_0x5c8514;for(var _0x39aa55=_0x2d28ba>0x1?void 0x0:_0x2d28ba?_0x57d7cb(_0x51a3b5,_0x1a6eb8):_0x51a3b5,_0x4aeb1b=_0x33a3e4[_0x50d263(0xb0)]-0x1,_0x28238c;_0x4aeb1b>=0x0;_0x4aeb1b--)(_0x28238c=_0x33a3e4[_0x4aeb1b])&&(_0x39aa55=_0x28238c(_0x39aa55)||_0x39aa55);return _0x39aa55;},_0x129bd0=(_0x2ad8e6,_0x26d9ae)=>(_0x91d75b,_0x592c95)=>_0x26d9ae(_0x91d75b,_0x592c95,_0x2ad8e6);let _0x1808e8=class extends _0x359a27['Disposable']{constructor(_0x4354b8,_0x423b98){const _0x38b331=_0x5c8514;super(),this[_0x38b331(0x78)]=_0x4354b8,this[_0x38b331(0x6e)]=_0x423b98,this[_0x38b331(0xa7)](),this[_0x38b331(0x97)]();}['_initCommands'](){const _0x1da287=_0x5c8514;[_0x3674cd,_0x35e0c6][_0x1da287(0x76)](_0x3fd41d=>{const _0x5531f8=_0x1da287;this[_0x5531f8(0x6f)](this[_0x5531f8(0x78)]['registerCommand'](_0x3fd41d));});}['_initMenus'](){const _0x2e9728=_0x5c8514;this[_0x2e9728(0x6e)][_0x2e9728(0x8f)](_0x3bcc6d);}};_0x1808e8=_0x3129d2([_0x129bd0(0x0,_0x359a27[_0x5c8514(0xa3)]),_0x129bd0(0x1,_0x458cda[_0x5c8514(0x80)])],_0x1808e8);var _0x32dc59=Object['defineProperty'],_0x52f7fa=Object[_0x5c8514(0x96)],_0x3ff6bd=(_0x245a73,_0x48bdb3,_0x5d9491)=>_0x48bdb3 in _0x245a73?_0x32dc59(_0x245a73,_0x48bdb3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d9491}):_0x245a73[_0x48bdb3]=_0x5d9491,_0x21795c=(_0x3b4448,_0xbb3632,_0x7374e8,_0x43fb1b)=>{const _0x440e1a=_0x5c8514;for(var _0x3be48c=_0x43fb1b>0x1?void 0x0:_0x43fb1b?_0x52f7fa(_0xbb3632,_0x7374e8):_0xbb3632,_0xae2576=_0x3b4448[_0x440e1a(0xb0)]-0x1,_0x4810a3;_0xae2576>=0x0;_0xae2576--)(_0x4810a3=_0x3b4448[_0xae2576])&&(_0x3be48c=_0x4810a3(_0x3be48c)||_0x3be48c);return _0x3be48c;},_0x10ee74=(_0x3eb8d2,_0x3dc96f)=>(_0xb03e04,_0x2ab8ca)=>_0x3dc96f(_0xb03e04,_0x2ab8ca,_0x3eb8d2),_0x6d5600=(_0x349ce4,_0x282a73,_0x1fdec6)=>_0x3ff6bd(_0x349ce4,typeof _0x282a73!=_0x5c8514(0x8c)?_0x282a73+'':_0x282a73,_0x1fdec6);const _0x369c2d='SHEET_EXCHANGE_CLIENT_PLUGIN';_0xad2853[_0x5c8514(0x8b)]=class extends _0x359a27[_0x5c8514(0xa1)]{constructor(_0x39744c=_0x141497,_0x216816,_0x49094f){const _0x135fcb=_0x5c8514;super(),this['_config']=_0x39744c,this[_0x135fcb(0xaf)]=_0x216816,this[_0x135fcb(0x99)]=_0x49094f;const {menu:_0x437e4d,..._0x2d59d4}=_0x359a27['merge']({},_0x141497,this[_0x135fcb(0xae)]);_0x437e4d&&this[_0x135fcb(0x99)]['setConfig'](_0x135fcb(0x9d),_0x437e4d,{'merge':!0x0}),this['_configService'][_0x135fcb(0xa0)](_0x22b824,_0x2d59d4);}['onStarting'](){const _0x1f58a7=_0x5c8514;[[_0x1808e8]][_0x1f58a7(0x76)](_0x22c623=>this[_0x1f58a7(0xaf)][_0x1f58a7(0x7b)](_0x22c623));}[_0x5c8514(0x7d)](){const _0x4e53de=_0x5c8514;this[_0x4e53de(0xaf)][_0x4e53de(0xa8)](_0x1808e8);}},_0x6d5600(_0xad2853[_0x5c8514(0x8b)],'pluginName',_0x369c2d),_0x6d5600(_0xad2853[_0x5c8514(0x8b)],_0x5c8514(0xa5),_0x359a27[_0x5c8514(0x79)][_0x5c8514(0x9c)]),_0xad2853['UniverSheetsExchangeClientPlugin']=_0x21795c([_0x359a27['DependentOn'](_0xb10b5e['UniverExchangeClientPlugin']),_0x10ee74(0x1,_0x359a27[_0x5c8514(0xa4)](_0x359a27['Injector'])),_0x10ee74(0x2,_0x359a27[_0x5c8514(0x9a)])],_0xad2853[_0x5c8514(0x8b)]),_0xad2853[_0x5c8514(0x87)]=_0x35e0c6,_0xad2853[_0x5c8514(0x94)]=_0x3674cd,Object[_0x5c8514(0x70)](_0xad2853,Symbol[_0x5c8514(0xa6)],{'value':_0x5c8514(0x85)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251220-0a5ea4d",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.13.0-insiders.
|
|
46
|
-
"@univerjs/core": "0.13.0-insiders.
|
|
47
|
-
"@univerjs/sheets
|
|
48
|
-
"@univerjs/ui": "0.13.0-insiders.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.13.0-insiders.20251220-0a5ea4d",
|
|
46
|
+
"@univerjs/core": "0.13.0-insiders.20251220-0a5ea4d",
|
|
47
|
+
"@univerjs/sheets": "0.13.0-insiders.20251220-0a5ea4d",
|
|
48
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251220-0a5ea4d",
|
|
49
|
+
"@univerjs/ui": "0.13.0-insiders.20251220-0a5ea4d"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|