@univerjs-pro/sheets-exchange-client 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251213-692494c
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';const
|
|
1
|
+
'use strict';const _0x3eb70e=_0x2047;(function(_0x4d7d29,_0x510c0c){const _0x188df0=_0x2047,_0x21e07e=_0x4d7d29();while(!![]){try{const _0x397625=parseInt(_0x188df0(0x1ff))/0x1*(parseInt(_0x188df0(0x211))/0x2)+-parseInt(_0x188df0(0x212))/0x3+parseInt(_0x188df0(0x1fb))/0x4*(parseInt(_0x188df0(0x1f6))/0x5)+-parseInt(_0x188df0(0x1ec))/0x6*(parseInt(_0x188df0(0x20d))/0x7)+-parseInt(_0x188df0(0x205))/0x8*(parseInt(_0x188df0(0x1f7))/0x9)+-parseInt(_0x188df0(0x203))/0xa+-parseInt(_0x188df0(0x218))/0xb*(-parseInt(_0x188df0(0x214))/0xc);if(_0x397625===_0x510c0c)break;else _0x21e07e['push'](_0x21e07e['shift']());}catch(_0x2e02e4){_0x21e07e['push'](_0x21e07e['shift']());}}}(_0x38ee,0x93872));function _0x2047(_0xefc630,_0x244ebd){_0xefc630=_0xefc630-0x1e5;const _0x38ee95=_0x38ee();let _0x2047e3=_0x38ee95[_0xefc630];return _0x2047e3;}Object[_0x3eb70e(0x204)](exports,Symbol[_0x3eb70e(0x21f)],{'value':_0x3eb70e(0x1f1)});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':_0x3eb70e(0x1fc),'type':i[_0x3eb70e(0x1f3)]['OPERATION'],'handler':async _0x4d633f=>{const _0x1e6f88=_0x3eb70e,_0x9772ea=_0x4d633f[_0x1e6f88(0x1fa)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x1e6f88(0x1e8)])['get'](_0x1e6f88(0x1fd))?_0x9772ea[_0x1e6f88(0x20b)]():_0x9772ea['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x3eb70e(0x1f3)]['OPERATION'],'handler':async _0x7cba60=>{const _0x56cbde=_0x3eb70e,_0x2eccfa=_0x7cba60[_0x56cbde(0x1fa)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x56cbde(0x1e8)])['get'](_0x56cbde(0x1fd))?_0x2eccfa[_0x56cbde(0x213)]():_0x2eccfa[_0x56cbde(0x21a)](),!0x0;}},v=_0x3eb70e(0x20f),h={},S='sheets-exchange-client.operation.exchange';function x(_0x4607fb){const _0x591723=_0x3eb70e;return{'id':S,'type':c['MenuItemType'][_0x591723(0x1f4)],'icon':_0x591723(0x201),'tooltip':'exchange.file','hidden$':c[_0x591723(0x1e5)](_0x4607fb,i['UniverInstanceType'][_0x591723(0x1e6)]),'disabled$':I[_0x591723(0x21b)](_0x4607fb,{'workbookTypes':[_['WorkbookExportPermission']]})};}function _0x38ee(){const _0x5065b7=['add','1pywdJn','onStarting','DirectExportIcon','symbol','3279920lFAJIG','defineProperty','1049440TWzgVa','_injector','UniverExchangeClientPlugin','Plugin','_initMenus','OTHERS','importXLSXToUnitId','registerCommand','64449EEZpca','ExportIcon','sheets-exchange-client.config','_configService','2192626RyZoHl','806655VHTpZs','exportXLSXByUnitId','1176540iAOeFF','_commandService','BUTTON','_menuManagerService','110KnEbwF','getOwnPropertyDescriptor','exportXLSXBySnapshot','getCurrentRangeDisable$','merge','exchange.upload','type','toStringTag','UniverSheetsExchangeClientPlugin','setConfig','onReady','getMenuHiddenObservable','UNIVER_SHEET','IMenuManagerService','search','Disposable','Inject','IConfigService','756fijgbM','exchange.download','mergeMenu','SHEET_EXCHANGE_CLIENT_PLUGIN','menu','Module','_config','CommandType','SUBITEMS','forEach','1450fxyRFL','54ArHSwS','ExportXLSXOperation','length','get','14780sUcHXj','exchange-client.operation.import-xlsx','unit'];_0x38ee=function(){return _0x5065b7;};return _0x38ee();}function P(){const _0xc1d33e=_0x3eb70e;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0xc1d33e(0x21d),'icon':'FolderIcon'};}function C(){const _0x1bcead=_0x3eb70e;return{'id':p['id'],'type':c['MenuItemType'][_0x1bcead(0x216)],'title':_0x1bcead(0x1ed),'icon':_0x1bcead(0x20e)};}const f={[c['RibbonStartGroup'][_0x3eb70e(0x20a)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x3eb70e(0x219)],y=(_0x430007,_0x3a4d55,_0x568318,_0x27bfeb)=>{const _0x2a57ed=_0x3eb70e;for(var _0xb4ad7f=_0x27bfeb>0x1?void 0x0:_0x27bfeb?T(_0x3a4d55,_0x568318):_0x3a4d55,_0x3ee7f0=_0x430007[_0x2a57ed(0x1f9)]-0x1,_0x46a934;_0x3ee7f0>=0x0;_0x3ee7f0--)(_0x46a934=_0x430007[_0x3ee7f0])&&(_0xb4ad7f=_0x46a934(_0xb4ad7f)||_0xb4ad7f);return _0xb4ad7f;},m=(_0x4acec5,_0x7a9c7b)=>(_0x491758,_0x378e4f)=>_0x7a9c7b(_0x491758,_0x378e4f,_0x4acec5);let u=class extends i[_0x3eb70e(0x1e9)]{constructor(_0x19b8c8,_0x35fc78){const _0x1f3c43=_0x3eb70e;super(),this[_0x1f3c43(0x215)]=_0x19b8c8,this[_0x1f3c43(0x217)]=_0x35fc78,this['_initCommands'](),this[_0x1f3c43(0x209)]();}['_initCommands'](){const _0xc5d784=_0x3eb70e;[l,p][_0xc5d784(0x1f5)](_0x597c0c=>{const _0x5cc609=_0xc5d784;this['disposeWithMe'](this[_0x5cc609(0x215)][_0x5cc609(0x20c)](_0x597c0c));});}['_initMenus'](){const _0x24b3d1=_0x3eb70e;this[_0x24b3d1(0x217)][_0x24b3d1(0x1ee)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x3eb70e(0x1e7)])],u);var O=Object[_0x3eb70e(0x204)],U=Object[_0x3eb70e(0x219)],X=(_0x1617ce,_0x2ede78,_0x36d5b2)=>_0x2ede78 in _0x1617ce?O(_0x1617ce,_0x2ede78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d5b2}):_0x1617ce[_0x2ede78]=_0x36d5b2,N=(_0x3f7f2c,_0x196e9b,_0x4053a4,_0xa5a704)=>{const _0x137c01=_0x3eb70e;for(var _0x23fa5f=_0xa5a704>0x1?void 0x0:_0xa5a704?U(_0x196e9b,_0x4053a4):_0x196e9b,_0x267d09=_0x3f7f2c[_0x137c01(0x1f9)]-0x1,_0x1d4d22;_0x267d09>=0x0;_0x267d09--)(_0x1d4d22=_0x3f7f2c[_0x267d09])&&(_0x23fa5f=_0x1d4d22(_0x23fa5f)||_0x23fa5f);return _0x23fa5f;},d=(_0x13ad44,_0x2c8242)=>(_0xe1e327,_0x204ce0)=>_0x2c8242(_0xe1e327,_0x204ce0,_0x13ad44),E=(_0x1f23a5,_0x39f732,_0x1e0534)=>X(_0x1f23a5,typeof _0x39f732!=_0x3eb70e(0x202)?_0x39f732+'':_0x39f732,_0x1e0534);const L=_0x3eb70e(0x1ef);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x3eb70e(0x208)]{constructor(_0x4cf345=h,_0xad53cf,_0x138c3d){const _0x1ffb1e=_0x3eb70e;super(),this[_0x1ffb1e(0x1f2)]=_0x4cf345,this[_0x1ffb1e(0x206)]=_0xad53cf,this[_0x1ffb1e(0x210)]=_0x138c3d;const {menu:_0x45a676,..._0x57382c}=i[_0x1ffb1e(0x21c)]({},h,this[_0x1ffb1e(0x1f2)]);_0x45a676&&this['_configService'][_0x1ffb1e(0x221)](_0x1ffb1e(0x1f0),_0x45a676,{'merge':!0x0}),this[_0x1ffb1e(0x210)][_0x1ffb1e(0x221)](v,_0x57382c);}[_0x3eb70e(0x200)](){const _0x2becb5=_0x3eb70e;[[u]][_0x2becb5(0x1f5)](_0xba8b7e=>this[_0x2becb5(0x206)][_0x2becb5(0x1fe)](_0xba8b7e));}[_0x3eb70e(0x222)](){const _0x1842e6=_0x3eb70e;this[_0x1842e6(0x206)][_0x1842e6(0x1fa)](u);}},E(exports[_0x3eb70e(0x220)],'pluginName',L),E(exports['UniverSheetsExchangeClientPlugin'],_0x3eb70e(0x21e),i['UniverInstanceType'][_0x3eb70e(0x1e6)]),exports[_0x3eb70e(0x220)]=N([i['DependentOn'](g[_0x3eb70e(0x207)]),d(0x1,i[_0x3eb70e(0x1ea)](i['Injector'])),d(0x2,i[_0x3eb70e(0x1eb)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x3eb70e(0x1f8)]=p,exports['ImportXLSXOperation']=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1b9991=_0x580f;(function(_0x14934f,_0xf3530a){const _0x139bef=_0x580f,_0x4b71ae=_0x14934f();while(!![]){try{const _0x3a5c25=-parseInt(_0x139bef(0x1c6))/0x1*(parseInt(_0x139bef(0x1c9))/0x2)+-parseInt(_0x139bef(0x1e8))/0x3*(parseInt(_0x139bef(0x1db))/0x4)+-parseInt(_0x139bef(0x1d9))/0x5*(parseInt(_0x139bef(0x1c2))/0x6)+-parseInt(_0x139bef(0x1e6))/0x7+parseInt(_0x139bef(0x1bc))/0x8*(parseInt(_0x139bef(0x1eb))/0x9)+parseInt(_0x139bef(0x1d5))/0xa*(parseInt(_0x139bef(0x1e0))/0xb)+parseInt(_0x139bef(0x1c5))/0xc;if(_0x3a5c25===_0xf3530a)break;else _0x4b71ae['push'](_0x4b71ae['shift']());}catch(_0x35f160){_0x4b71ae['push'](_0x4b71ae['shift']());}}}(_0x24a0,0xf31ca));import{IExchangeOperateService as _0xbafa41,UniverExchangeClientPlugin as _0x5093c3}from'@univerjs-pro/exchange-client';import{CommandType as _0xa7a279,UniverInstanceType as _0xdcd7ef,Disposable as _0x2700f9,ICommandService as _0x292b69,DependentOn as _0x1fe67c,Inject as _0x56234f,Injector as _0x48049d,IConfigService as _0x47b98d,Plugin as _0xadb2dd,merge as _0x425a1b}from'@univerjs/core';import{MenuItemType as _0x521481,getMenuHiddenObservable as _0x2de4aa,RibbonStartGroup as _0x2abbac,IMenuManagerService as _0x57bf03}from'@univerjs/ui';import{WorkbookExportPermission as _0x2311da}from'@univerjs/sheets';function _0x24a0(){const _0x1828fc=['_initCommands','9RWnfGo','exchange-client.operation.export-xlsx','unit','243CFHZzI','mergeMenu','429752XJeZJQ','exchange-client.operation.import-xlsx','exportXLSXByUnitId','importXLSXToSnapshot','get','defineProperty','342mxDFSe','registerCommand','_config','31865028NzrtKf','66307chTPsU','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.file','2poOCKZ','_menuManagerService','sheets-exchange-client.operation.exchange','length','sheets-exchange-client.config','setConfig','DirectExportIcon','onReady','type','getOwnPropertyDescriptor','exportXLSXBySnapshot','pluginName','158170UYkIGM','_injector','exchange.upload','OTHERS','139530JxQXfE','importXLSXToUnitId','1763116plnrFS','disposeWithMe','BUTTON','SUBITEMS','_initMenus','1265bOfUnJ','menu','_commandService','OPERATION','_configService','forEach','13648005oqOIQF'];_0x24a0=function(){return _0x1828fc;};return _0x24a0();}import{getCurrentRangeDisable$ as _0x557726}from'@univerjs/sheets-ui';const p={'id':_0x1b9991(0x1bd),'type':_0xa7a279['OPERATION'],'handler':async _0x352dca=>{const _0x41ff03=_0x1b9991,_0x36b243=_0x352dca['get'](_0xbafa41);return new URLSearchParams(location['search'])[_0x41ff03(0x1c0)](_0x41ff03(0x1ea))?_0x36b243[_0x41ff03(0x1da)]():_0x36b243[_0x41ff03(0x1bf)](),!0x0;}},u={'id':_0x1b9991(0x1e9),'type':_0xa7a279[_0x1b9991(0x1e3)],'handler':async _0x3562a6=>{const _0xd901e7=_0x1b9991,_0x39f132=_0x3562a6[_0xd901e7(0x1c0)](_0xbafa41);return new URLSearchParams(location['search'])[_0xd901e7(0x1c0)](_0xd901e7(0x1ea))?_0x39f132[_0xd901e7(0x1be)]():_0x39f132[_0xd901e7(0x1d3)](),!0x0;}},H=_0x1b9991(0x1cd),l={},S=_0x1b9991(0x1cb);function R(_0xdbccf4){const _0x43dead=_0x1b9991;return{'id':S,'type':_0x521481[_0x43dead(0x1de)],'icon':_0x43dead(0x1cf),'tooltip':_0x43dead(0x1c8),'hidden$':_0x2de4aa(_0xdbccf4,_0xdcd7ef['UNIVER_SHEET']),'disabled$':_0x557726(_0xdbccf4,{'workbookTypes':[_0x2311da]})};}function w(){const _0x44aa63=_0x1b9991;return{'id':p['id'],'type':_0x521481[_0x44aa63(0x1dd)],'title':_0x44aa63(0x1d7),'icon':'FolderIcon'};}function _0x580f(_0x264054,_0x394244){_0x264054=_0x264054-0x1bc;const _0x24a049=_0x24a0();let _0x580f01=_0x24a049[_0x264054];return _0x580f01;}function D(){return{'id':u['id'],'type':_0x521481['BUTTON'],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2abbac[_0x1b9991(0x1d8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x1b9991(0x1d2)],A=(_0x1ce5eb,_0x54d665,_0x4c9e8c,_0x5f454b)=>{const _0x3c3389=_0x1b9991;for(var _0x552983=_0x5f454b>0x1?void 0x0:_0x5f454b?G(_0x54d665,_0x4c9e8c):_0x54d665,_0xda7998=_0x1ce5eb[_0x3c3389(0x1cc)]-0x1,_0x89f981;_0xda7998>=0x0;_0xda7998--)(_0x89f981=_0x1ce5eb[_0xda7998])&&(_0x552983=_0x89f981(_0x552983)||_0x552983);return _0x552983;},d=(_0x48ec28,_0x42613f)=>(_0x4d836e,_0x1d2bcf)=>_0x42613f(_0x4d836e,_0x1d2bcf,_0x48ec28);let c=class extends _0x2700f9{constructor(_0x15220b,_0x4c121a){const _0x2b24f2=_0x1b9991;super(),this[_0x2b24f2(0x1e2)]=_0x15220b,this[_0x2b24f2(0x1ca)]=_0x4c121a,this[_0x2b24f2(0x1e7)](),this[_0x2b24f2(0x1df)]();}[_0x1b9991(0x1e7)](){const _0x535fec=_0x1b9991;[p,u][_0x535fec(0x1e5)](_0x514ca5=>{const _0x2dca21=_0x535fec;this[_0x2dca21(0x1dc)](this[_0x2dca21(0x1e2)][_0x2dca21(0x1c3)](_0x514ca5));});}[_0x1b9991(0x1df)](){const _0x3bfe5b=_0x1b9991;this[_0x3bfe5b(0x1ca)][_0x3bfe5b(0x1ec)](F);}};c=A([d(0x0,_0x292b69),d(0x1,_0x57bf03)],c);var j=Object[_0x1b9991(0x1c1)],B=Object[_0x1b9991(0x1d2)],$=(_0x42e644,_0x4806cc,_0x54cab9)=>_0x4806cc in _0x42e644?j(_0x42e644,_0x4806cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54cab9}):_0x42e644[_0x4806cc]=_0x54cab9,V=(_0x817a6f,_0x5ba721,_0x4746d0,_0x53114e)=>{const _0x4a1ac0=_0x1b9991;for(var _0x213f37=_0x53114e>0x1?void 0x0:_0x53114e?B(_0x5ba721,_0x4746d0):_0x5ba721,_0x159cef=_0x817a6f[_0x4a1ac0(0x1cc)]-0x1,_0xa36590;_0x159cef>=0x0;_0x159cef--)(_0xa36590=_0x817a6f[_0x159cef])&&(_0x213f37=_0xa36590(_0x213f37)||_0x213f37);return _0x213f37;},_=(_0x262321,_0x259ee8)=>(_0x1824d4,_0x15780b)=>_0x259ee8(_0x1824d4,_0x15780b,_0x262321),I=(_0x465667,_0x5286cf,_0x3f9b8b)=>$(_0x465667,typeof _0x5286cf!='symbol'?_0x5286cf+'':_0x5286cf,_0x3f9b8b);const W=_0x1b9991(0x1c7);let s=class extends _0xadb2dd{constructor(_0x24db2a=l,_0x348aa8,_0x291c10){const _0x216339=_0x1b9991;super(),this[_0x216339(0x1c4)]=_0x24db2a,this[_0x216339(0x1d6)]=_0x348aa8,this['_configService']=_0x291c10;const {menu:_0xeb44c2,..._0x2b0cb7}=_0x425a1b({},l,this[_0x216339(0x1c4)]);_0xeb44c2&&this[_0x216339(0x1e4)]['setConfig'](_0x216339(0x1e1),_0xeb44c2,{'merge':!0x0}),this[_0x216339(0x1e4)][_0x216339(0x1ce)](H,_0x2b0cb7);}['onStarting'](){const _0x22b9dd=_0x1b9991;[[c]][_0x22b9dd(0x1e5)](_0x351bbd=>this[_0x22b9dd(0x1d6)]['add'](_0x351bbd));}[_0x1b9991(0x1d0)](){const _0x36a9d5=_0x1b9991;this['_injector'][_0x36a9d5(0x1c0)](c);}};I(s,_0x1b9991(0x1d4),W),I(s,_0x1b9991(0x1d1),_0xdcd7ef['UNIVER_SHEET']),s=V([_0x1fe67c(_0x5093c3),_(0x1,_0x56234f(_0x48049d)),_(0x2,_0x47b98d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1b9991=_0x580f;(function(_0x14934f,_0xf3530a){const _0x139bef=_0x580f,_0x4b71ae=_0x14934f();while(!![]){try{const _0x3a5c25=-parseInt(_0x139bef(0x1c6))/0x1*(parseInt(_0x139bef(0x1c9))/0x2)+-parseInt(_0x139bef(0x1e8))/0x3*(parseInt(_0x139bef(0x1db))/0x4)+-parseInt(_0x139bef(0x1d9))/0x5*(parseInt(_0x139bef(0x1c2))/0x6)+-parseInt(_0x139bef(0x1e6))/0x7+parseInt(_0x139bef(0x1bc))/0x8*(parseInt(_0x139bef(0x1eb))/0x9)+parseInt(_0x139bef(0x1d5))/0xa*(parseInt(_0x139bef(0x1e0))/0xb)+parseInt(_0x139bef(0x1c5))/0xc;if(_0x3a5c25===_0xf3530a)break;else _0x4b71ae['push'](_0x4b71ae['shift']());}catch(_0x35f160){_0x4b71ae['push'](_0x4b71ae['shift']());}}}(_0x24a0,0xf31ca));import{IExchangeOperateService as _0xbafa41,UniverExchangeClientPlugin as _0x5093c3}from'@univerjs-pro/exchange-client';import{CommandType as _0xa7a279,UniverInstanceType as _0xdcd7ef,Disposable as _0x2700f9,ICommandService as _0x292b69,DependentOn as _0x1fe67c,Inject as _0x56234f,Injector as _0x48049d,IConfigService as _0x47b98d,Plugin as _0xadb2dd,merge as _0x425a1b}from'@univerjs/core';import{MenuItemType as _0x521481,getMenuHiddenObservable as _0x2de4aa,RibbonStartGroup as _0x2abbac,IMenuManagerService as _0x57bf03}from'@univerjs/ui';import{WorkbookExportPermission as _0x2311da}from'@univerjs/sheets';function _0x24a0(){const _0x1828fc=['_initCommands','9RWnfGo','exchange-client.operation.export-xlsx','unit','243CFHZzI','mergeMenu','429752XJeZJQ','exchange-client.operation.import-xlsx','exportXLSXByUnitId','importXLSXToSnapshot','get','defineProperty','342mxDFSe','registerCommand','_config','31865028NzrtKf','66307chTPsU','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.file','2poOCKZ','_menuManagerService','sheets-exchange-client.operation.exchange','length','sheets-exchange-client.config','setConfig','DirectExportIcon','onReady','type','getOwnPropertyDescriptor','exportXLSXBySnapshot','pluginName','158170UYkIGM','_injector','exchange.upload','OTHERS','139530JxQXfE','importXLSXToUnitId','1763116plnrFS','disposeWithMe','BUTTON','SUBITEMS','_initMenus','1265bOfUnJ','menu','_commandService','OPERATION','_configService','forEach','13648005oqOIQF'];_0x24a0=function(){return _0x1828fc;};return _0x24a0();}import{getCurrentRangeDisable$ as _0x557726}from'@univerjs/sheets-ui';const p={'id':_0x1b9991(0x1bd),'type':_0xa7a279['OPERATION'],'handler':async _0x352dca=>{const _0x41ff03=_0x1b9991,_0x36b243=_0x352dca['get'](_0xbafa41);return new URLSearchParams(location['search'])[_0x41ff03(0x1c0)](_0x41ff03(0x1ea))?_0x36b243[_0x41ff03(0x1da)]():_0x36b243[_0x41ff03(0x1bf)](),!0x0;}},u={'id':_0x1b9991(0x1e9),'type':_0xa7a279[_0x1b9991(0x1e3)],'handler':async _0x3562a6=>{const _0xd901e7=_0x1b9991,_0x39f132=_0x3562a6[_0xd901e7(0x1c0)](_0xbafa41);return new URLSearchParams(location['search'])[_0xd901e7(0x1c0)](_0xd901e7(0x1ea))?_0x39f132[_0xd901e7(0x1be)]():_0x39f132[_0xd901e7(0x1d3)](),!0x0;}},H=_0x1b9991(0x1cd),l={},S=_0x1b9991(0x1cb);function R(_0xdbccf4){const _0x43dead=_0x1b9991;return{'id':S,'type':_0x521481[_0x43dead(0x1de)],'icon':_0x43dead(0x1cf),'tooltip':_0x43dead(0x1c8),'hidden$':_0x2de4aa(_0xdbccf4,_0xdcd7ef['UNIVER_SHEET']),'disabled$':_0x557726(_0xdbccf4,{'workbookTypes':[_0x2311da]})};}function w(){const _0x44aa63=_0x1b9991;return{'id':p['id'],'type':_0x521481[_0x44aa63(0x1dd)],'title':_0x44aa63(0x1d7),'icon':'FolderIcon'};}function _0x580f(_0x264054,_0x394244){_0x264054=_0x264054-0x1bc;const _0x24a049=_0x24a0();let _0x580f01=_0x24a049[_0x264054];return _0x580f01;}function D(){return{'id':u['id'],'type':_0x521481['BUTTON'],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x2abbac[_0x1b9991(0x1d8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x1b9991(0x1d2)],A=(_0x1ce5eb,_0x54d665,_0x4c9e8c,_0x5f454b)=>{const _0x3c3389=_0x1b9991;for(var _0x552983=_0x5f454b>0x1?void 0x0:_0x5f454b?G(_0x54d665,_0x4c9e8c):_0x54d665,_0xda7998=_0x1ce5eb[_0x3c3389(0x1cc)]-0x1,_0x89f981;_0xda7998>=0x0;_0xda7998--)(_0x89f981=_0x1ce5eb[_0xda7998])&&(_0x552983=_0x89f981(_0x552983)||_0x552983);return _0x552983;},d=(_0x48ec28,_0x42613f)=>(_0x4d836e,_0x1d2bcf)=>_0x42613f(_0x4d836e,_0x1d2bcf,_0x48ec28);let c=class extends _0x2700f9{constructor(_0x15220b,_0x4c121a){const _0x2b24f2=_0x1b9991;super(),this[_0x2b24f2(0x1e2)]=_0x15220b,this[_0x2b24f2(0x1ca)]=_0x4c121a,this[_0x2b24f2(0x1e7)](),this[_0x2b24f2(0x1df)]();}[_0x1b9991(0x1e7)](){const _0x535fec=_0x1b9991;[p,u][_0x535fec(0x1e5)](_0x514ca5=>{const _0x2dca21=_0x535fec;this[_0x2dca21(0x1dc)](this[_0x2dca21(0x1e2)][_0x2dca21(0x1c3)](_0x514ca5));});}[_0x1b9991(0x1df)](){const _0x3bfe5b=_0x1b9991;this[_0x3bfe5b(0x1ca)][_0x3bfe5b(0x1ec)](F);}};c=A([d(0x0,_0x292b69),d(0x1,_0x57bf03)],c);var j=Object[_0x1b9991(0x1c1)],B=Object[_0x1b9991(0x1d2)],$=(_0x42e644,_0x4806cc,_0x54cab9)=>_0x4806cc in _0x42e644?j(_0x42e644,_0x4806cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54cab9}):_0x42e644[_0x4806cc]=_0x54cab9,V=(_0x817a6f,_0x5ba721,_0x4746d0,_0x53114e)=>{const _0x4a1ac0=_0x1b9991;for(var _0x213f37=_0x53114e>0x1?void 0x0:_0x53114e?B(_0x5ba721,_0x4746d0):_0x5ba721,_0x159cef=_0x817a6f[_0x4a1ac0(0x1cc)]-0x1,_0xa36590;_0x159cef>=0x0;_0x159cef--)(_0xa36590=_0x817a6f[_0x159cef])&&(_0x213f37=_0xa36590(_0x213f37)||_0x213f37);return _0x213f37;},_=(_0x262321,_0x259ee8)=>(_0x1824d4,_0x15780b)=>_0x259ee8(_0x1824d4,_0x15780b,_0x262321),I=(_0x465667,_0x5286cf,_0x3f9b8b)=>$(_0x465667,typeof _0x5286cf!='symbol'?_0x5286cf+'':_0x5286cf,_0x3f9b8b);const W=_0x1b9991(0x1c7);let s=class extends _0xadb2dd{constructor(_0x24db2a=l,_0x348aa8,_0x291c10){const _0x216339=_0x1b9991;super(),this[_0x216339(0x1c4)]=_0x24db2a,this[_0x216339(0x1d6)]=_0x348aa8,this['_configService']=_0x291c10;const {menu:_0xeb44c2,..._0x2b0cb7}=_0x425a1b({},l,this[_0x216339(0x1c4)]);_0xeb44c2&&this[_0x216339(0x1e4)]['setConfig'](_0x216339(0x1e1),_0xeb44c2,{'merge':!0x0}),this[_0x216339(0x1e4)][_0x216339(0x1ce)](H,_0x2b0cb7);}['onStarting'](){const _0x22b9dd=_0x1b9991;[[c]][_0x22b9dd(0x1e5)](_0x351bbd=>this[_0x22b9dd(0x1d6)]['add'](_0x351bbd));}[_0x1b9991(0x1d0)](){const _0x36a9d5=_0x1b9991;this['_injector'][_0x36a9d5(0x1c0)](c);}};I(s,_0x1b9991(0x1d4),W),I(s,_0x1b9991(0x1d1),_0xdcd7ef['UNIVER_SHEET']),s=V([_0x1fe67c(_0x5093c3),_(0x1,_0x56234f(_0x48049d)),_(0x2,_0x47b98d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39ba34,_0x238fb8){const _0x952db9=_0x29f2,_0x34b864=_0x39ba34();while(!![]){try{const _0x53156c=-parseInt(_0x952db9(0x1fb))/0x1*(-parseInt(_0x952db9(0x206))/0x2)+-parseInt(_0x952db9(0x1e3))/0x3+parseInt(_0x952db9(0x22a))/0x4*(-parseInt(_0x952db9(0x22d))/0x5)+parseInt(_0x952db9(0x203))/0x6+-parseInt(_0x952db9(0x22e))/0x7*(-parseInt(_0x952db9(0x223))/0x8)+-parseInt(_0x952db9(0x1eb))/0x9*(parseInt(_0x952db9(0x21e))/0xa)+-parseInt(_0x952db9(0x204))/0xb*(-parseInt(_0x952db9(0x218))/0xc);if(_0x53156c===_0x238fb8)break;else _0x34b864['push'](_0x34b864['shift']());}catch(_0x48083b){_0x34b864['push'](_0x34b864['shift']());}}}(_0x4f6f,0x51772),function(_0x111883,_0x1196fd){const _0x2cc9d9=_0x29f2;typeof exports==_0x2cc9d9(0x21d)&&typeof module<'u'?_0x1196fd(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x2cc9d9(0x221),_0x2cc9d9(0x1fd),_0x2cc9d9(0x1fe),_0x2cc9d9(0x1fa),_0x2cc9d9(0x20b),'@univerjs/sheets-ui'],_0x1196fd):(_0x111883=typeof globalThis<'u'?globalThis:_0x111883||self,_0x1196fd(_0x111883[_0x2cc9d9(0x200)]={},_0x111883[_0x2cc9d9(0x217)],_0x111883['UniverCore'],_0x111883[_0x2cc9d9(0x220)],_0x111883[_0x2cc9d9(0x201)],_0x111883[_0x2cc9d9(0x1f8)]));}(this,function(_0x203864,_0x364273,_0x572959,_0x4dd9f7,_0x3fd700,_0x247c97){'use strict';const _0x53e420=_0x29f2;const _0x3bfaec={'id':_0x53e420(0x211),'type':_0x572959[_0x53e420(0x1e8)][_0x53e420(0x21a)],'handler':async _0x4fc041=>{const _0x4adacf=_0x53e420,_0x20b4b1=_0x4fc041[_0x4adacf(0x205)](_0x364273[_0x4adacf(0x232)]);return new URLSearchParams(location[_0x4adacf(0x1f3)])[_0x4adacf(0x205)](_0x4adacf(0x1f4))?_0x20b4b1[_0x4adacf(0x1ed)]():_0x20b4b1[_0x4adacf(0x20c)](),!0x0;}},_0x5a336f={'id':'exchange-client.operation.export-xlsx','type':_0x572959[_0x53e420(0x1e8)][_0x53e420(0x21a)],'handler':async _0x54d94b=>{const _0x30887a=_0x53e420,_0x552cb5=_0x54d94b[_0x30887a(0x205)](_0x364273['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x30887a(0x205)](_0x30887a(0x1f4))?_0x552cb5['exportXLSXByUnitId']():_0x552cb5[_0x30887a(0x1ee)](),!0x0;}},_0x137eb0='sheets-exchange-client.config',_0xb06e8f={},_0x1aa365=_0x53e420(0x22b);function _0x145e74(_0x4ead7e){const _0x4ab4c6=_0x53e420;return{'id':_0x1aa365,'type':_0x4dd9f7[_0x4ab4c6(0x202)][_0x4ab4c6(0x1ef)],'icon':_0x4ab4c6(0x1ff),'tooltip':_0x4ab4c6(0x1f0),'hidden$':_0x4dd9f7[_0x4ab4c6(0x230)](_0x4ead7e,_0x572959[_0x4ab4c6(0x1e6)]['UNIVER_SHEET']),'disabled$':_0x247c97[_0x4ab4c6(0x228)](_0x4ead7e,{'workbookTypes':[_0x3fd700[_0x4ab4c6(0x1f1)]]})};}function _0x1db3f8(){const _0x55ba59=_0x53e420;return{'id':_0x3bfaec['id'],'type':_0x4dd9f7[_0x55ba59(0x202)]['BUTTON'],'title':_0x55ba59(0x216),'icon':'FolderIcon'};}function _0x47a1bf(){const _0x4703e0=_0x53e420;return{'id':_0x5a336f['id'],'type':_0x4dd9f7[_0x4703e0(0x202)][_0x4703e0(0x22f)],'title':_0x4703e0(0x21b),'icon':_0x4703e0(0x20a)};}const _0x1524f5={[_0x4dd9f7[_0x53e420(0x22c)]['OTHERS']]:{[_0x1aa365]:{'order':0.3,'menuItemFactory':_0x145e74,[_0x3bfaec['id']]:{'order':0x0,'menuItemFactory':_0x1db3f8},[_0x5a336f['id']]:{'order':0x1,'menuItemFactory':_0x47a1bf}}}};var _0x3ccc03=Object[_0x53e420(0x215)],_0x2d049d=(_0x411050,_0x2d0812,_0x2c5bfa,_0x2dbaa)=>{const _0x109344=_0x53e420;for(var _0x402a67=_0x2dbaa>0x1?void 0x0:_0x2dbaa?_0x3ccc03(_0x2d0812,_0x2c5bfa):_0x2d0812,_0x4cdcd0=_0x411050[_0x109344(0x1f7)]-0x1,_0x10cabe;_0x4cdcd0>=0x0;_0x4cdcd0--)(_0x10cabe=_0x411050[_0x4cdcd0])&&(_0x402a67=_0x10cabe(_0x402a67)||_0x402a67);return _0x402a67;},_0x35409a=(_0x2ad0ec,_0x2c17d5)=>(_0x433cc5,_0x34024a)=>_0x2c17d5(_0x433cc5,_0x34024a,_0x2ad0ec);let _0x443bca=class extends _0x572959[_0x53e420(0x214)]{constructor(_0x432332,_0x1c61e0){const _0xc406ac=_0x53e420;super(),this[_0xc406ac(0x222)]=_0x432332,this[_0xc406ac(0x1e7)]=_0x1c61e0,this['_initCommands'](),this[_0xc406ac(0x1e9)]();}[_0x53e420(0x20e)](){[_0x3bfaec,_0x5a336f]['forEach'](_0x403deb=>{const _0x4571a2=_0x29f2;this[_0x4571a2(0x21f)](this[_0x4571a2(0x222)][_0x4571a2(0x1ec)](_0x403deb));});}[_0x53e420(0x1e9)](){const _0x3d28ba=_0x53e420;this[_0x3d28ba(0x1e7)]['mergeMenu'](_0x1524f5);}};_0x443bca=_0x2d049d([_0x35409a(0x0,_0x572959[_0x53e420(0x208)]),_0x35409a(0x1,_0x4dd9f7[_0x53e420(0x219)])],_0x443bca);var _0x275c05=Object[_0x53e420(0x1f6)],_0x42bef5=Object['getOwnPropertyDescriptor'],_0x4a621a=(_0x3fa38f,_0x3c58ad,_0x2d3245)=>_0x3c58ad in _0x3fa38f?_0x275c05(_0x3fa38f,_0x3c58ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d3245}):_0x3fa38f[_0x3c58ad]=_0x2d3245,_0x206cb5=(_0x22210f,_0x30dd43,_0x1ca488,_0x4cfd14)=>{const _0x62541d=_0x53e420;for(var _0x5d222c=_0x4cfd14>0x1?void 0x0:_0x4cfd14?_0x42bef5(_0x30dd43,_0x1ca488):_0x30dd43,_0x21ce2e=_0x22210f[_0x62541d(0x1f7)]-0x1,_0x119277;_0x21ce2e>=0x0;_0x21ce2e--)(_0x119277=_0x22210f[_0x21ce2e])&&(_0x5d222c=_0x119277(_0x5d222c)||_0x5d222c);return _0x5d222c;},_0x501f51=(_0x415bc9,_0x4688f6)=>(_0xae1f90,_0x5eb8d8)=>_0x4688f6(_0xae1f90,_0x5eb8d8,_0x415bc9),_0x3cd008=(_0x4134d6,_0x3efe50,_0x1947d2)=>_0x4a621a(_0x4134d6,typeof _0x3efe50!=_0x53e420(0x213)?_0x3efe50+'':_0x3efe50,_0x1947d2);const _0x494d7c='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x203864[_0x53e420(0x1f2)]=class extends _0x572959[_0x53e420(0x1fc)]{constructor(_0x8d6e37=_0xb06e8f,_0x5c9212,_0x579d2b){const _0x7b0776=_0x53e420;super(),this[_0x7b0776(0x210)]=_0x8d6e37,this[_0x7b0776(0x226)]=_0x5c9212,this[_0x7b0776(0x1e5)]=_0x579d2b;const {menu:_0xfe86af,..._0x58f699}=_0x572959[_0x7b0776(0x225)]({},_0xb06e8f,this[_0x7b0776(0x210)]);_0xfe86af&&this['_configService'][_0x7b0776(0x21c)](_0x7b0776(0x1f9),_0xfe86af,{'merge':!0x0}),this[_0x7b0776(0x1e5)]['setConfig'](_0x137eb0,_0x58f699);}[_0x53e420(0x1f5)](){const _0x415a26=_0x53e420;[[_0x443bca]]['forEach'](_0x156a4d=>this['_injector'][_0x415a26(0x209)](_0x156a4d));}['onReady'](){const _0x50e87b=_0x53e420;this[_0x50e87b(0x226)][_0x50e87b(0x205)](_0x443bca);}},_0x3cd008(_0x203864[_0x53e420(0x1f2)],_0x53e420(0x224),_0x494d7c),_0x3cd008(_0x203864[_0x53e420(0x1f2)],_0x53e420(0x20f),_0x572959[_0x53e420(0x1e6)][_0x53e420(0x207)]),_0x203864[_0x53e420(0x1f2)]=_0x206cb5([_0x572959['DependentOn'](_0x364273['UniverExchangeClientPlugin']),_0x501f51(0x1,_0x572959[_0x53e420(0x212)](_0x572959[_0x53e420(0x20d)])),_0x501f51(0x2,_0x572959[_0x53e420(0x227)])],_0x203864[_0x53e420(0x1f2)]),_0x203864[_0x53e420(0x1ea)]=_0x5a336f,_0x203864[_0x53e420(0x229)]=_0x3bfaec,Object[_0x53e420(0x1f6)](_0x203864,Symbol[_0x53e420(0x1e4)],{'value':_0x53e420(0x231)});}));function _0x29f2(_0x37e8a1,_0xa2b010){_0x37e8a1=_0x37e8a1-0x1e3;const _0x4f6f41=_0x4f6f();let _0x29f2a3=_0x4f6f41[_0x37e8a1];return _0x29f2a3;}function _0x4f6f(){const _0x164024=['Disposable','getOwnPropertyDescriptor','exchange.upload','UniverProExchangeClient','108sittfF','IMenuManagerService','OPERATION','exchange.download','setConfig','object','20RoEpkA','disposeWithMe','UniverUi','exports','_commandService','8NyzmOq','pluginName','merge','_injector','IConfigService','getCurrentRangeDisable$','ImportXLSXOperation','1104860SVWTuL','sheets-exchange-client.operation.exchange','RibbonStartGroup','10fXkhmA','2115638yKWdKq','BUTTON','getMenuHiddenObservable','Module','IExchangeOperateService','1994661LLsmMB','toStringTag','_configService','UniverInstanceType','_menuManagerService','CommandType','_initMenus','ExportXLSXOperation','2084256yEyagO','registerCommand','importXLSXToUnitId','exportXLSXBySnapshot','SUBITEMS','exchange.file','WorkbookExportPermission','UniverSheetsExchangeClientPlugin','search','unit','onStarting','defineProperty','length','UniverSheetsUi','menu','@univerjs/ui','54995HCtYDM','Plugin','@univerjs-pro/exchange-client','@univerjs/core','DirectExportIcon','UniverProSheetsExchangeClient','UniverSheets','MenuItemType','172122JxpTEw','1654004ZcrYMP','get','12oucPmK','UNIVER_SHEET','ICommandService','add','ExportIcon','@univerjs/sheets','importXLSXToSnapshot','Injector','_initCommands','type','_config','exchange-client.operation.import-xlsx','Inject','symbol'];_0x4f6f=function(){return _0x164024;};return _0x4f6f();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.12.4-insiders.
|
|
3
|
+
"version": "0.12.4-insiders.20251213-692494c",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/
|
|
46
|
-
"@univerjs/sheets
|
|
47
|
-
"@univerjs
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/ui": "0.12.4-insiders.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.12.4-insiders.20251213-692494c",
|
|
46
|
+
"@univerjs/sheets": "0.12.4-insiders.20251213-692494c",
|
|
47
|
+
"@univerjs/core": "0.12.4-insiders.20251213-692494c",
|
|
48
|
+
"@univerjs/ui": "0.12.4-insiders.20251213-692494c",
|
|
49
|
+
"@univerjs/sheets-ui": "0.12.4-insiders.20251213-692494c"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vite": "^7.2.
|
|
53
|
+
"vite": "^7.2.7",
|
|
54
54
|
"vitest": "^4.0.15",
|
|
55
55
|
"@univerjs-infra/shared": "0.12.4"
|
|
56
56
|
},
|