@univerjs-pro/sheets-exchange-client 0.11.0 → 0.12.0
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 +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2a4d(){const _0x6c4100=['symbol','_config','get','_initMenus','setConfig','disposeWithMe','importXLSXToUnitId','1220GjwaTz','importXLSXToSnapshot','exchange-client.operation.import-xlsx','304975MdWWuM','toStringTag','OTHERS','add','onStarting','2726250MGYndx','UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','search','merge','SHEET_EXCHANGE_CLIENT_PLUGIN','_commandService','Injector','exportXLSXBySnapshot','exportXLSXByUnitId','FolderIcon','215800vOKhhf','IExchangeOperateService','Module','WorkbookExportPermission','ExportXLSXOperation','registerCommand','ICommandService','getOwnPropertyDescriptor','RibbonStartGroup','UniverExchangeClientPlugin','menu','pluginName','ExportIcon','DependentOn','67437qfirRD','ImportXLSXOperation','OPERATION','forEach','BUTTON','mergeMenu','getMenuHiddenObservable','unit','101286JIchzX','onReady','UniverInstanceType','type','exchange.file','_configService','MenuItemType','defineProperty','exchange.upload','Inject','1998XUkuie','SUBITEMS','CommandType','328sszLas','UNIVER_SHEET','_injector','2703358IACgaj','length','getCurrentRangeDisable$','_menuManagerService','24VZrKkb'];_0x2a4d=function(){return _0x6c4100;};return _0x2a4d();}const _0x2a7552=_0x4edc;(function(_0x23325b,_0x5c9d4f){const _0x4873b6=_0x4edc,_0x21821b=_0x23325b();while(!![]){try{const _0xf69acc=parseInt(_0x4873b6(0x144))/0x1+parseInt(_0x4873b6(0x139))/0x2*(parseInt(_0x4873b6(0x11d))/0x3)+-parseInt(_0x4873b6(0x154))/0x4+-parseInt(_0x4873b6(0x141))/0x5*(-parseInt(_0x4873b6(0x12f))/0x6)+parseInt(_0x4873b6(0x135))/0x7+-parseInt(_0x4873b6(0x132))/0x8*(parseInt(_0x4873b6(0x125))/0x9)+-parseInt(_0x4873b6(0x149))/0xa;if(_0xf69acc===_0x5c9d4f)break;else _0x21821b['push'](_0x21821b['shift']());}catch(_0x185452){_0x21821b['push'](_0x21821b['shift']());}}}(_0x2a4d,0x3e0e4));Object[_0x2a7552(0x12c)](exports,Symbol[_0x2a7552(0x145)],{'value':_0x2a7552(0x156)});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':_0x2a7552(0x143),'type':i[_0x2a7552(0x131)][_0x2a7552(0x11f)],'handler':async _0x2d992a=>{const _0x4c25e8=_0x2a7552,_0x38f22f=_0x2d992a[_0x4c25e8(0x13c)](g[_0x4c25e8(0x155)]);return new URLSearchParams(location[_0x4c25e8(0x14c)])[_0x4c25e8(0x13c)](_0x4c25e8(0x124))?_0x38f22f[_0x4c25e8(0x140)]():_0x38f22f[_0x4c25e8(0x142)](),!0x0;}},p={'id':_0x2a7552(0x14b),'type':i[_0x2a7552(0x131)][_0x2a7552(0x11f)],'handler':async _0x1c8aa5=>{const _0x564a16=_0x2a7552,_0x49daca=_0x1c8aa5[_0x564a16(0x13c)](g[_0x564a16(0x155)]);return new URLSearchParams(location[_0x564a16(0x14c)])[_0x564a16(0x13c)](_0x564a16(0x124))?_0x49daca[_0x564a16(0x152)]():_0x49daca[_0x564a16(0x151)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x1fb67a){const _0x400810=_0x2a7552;return{'id':S,'type':c[_0x400810(0x12b)][_0x400810(0x130)],'icon':'DirectExportIcon','tooltip':_0x400810(0x129),'hidden$':c[_0x400810(0x123)](_0x1fb67a,i[_0x400810(0x127)][_0x400810(0x133)]),'disabled$':I[_0x400810(0x137)](_0x1fb67a,{'workbookTypes':[_[_0x400810(0x157)]]})};}function P(){const _0x19d565=_0x2a7552;return{'id':l['id'],'type':c[_0x19d565(0x12b)][_0x19d565(0x121)],'title':_0x19d565(0x12d),'icon':_0x19d565(0x153)};}function C(){const _0x2abcd5=_0x2a7552;return{'id':p['id'],'type':c[_0x2abcd5(0x12b)][_0x2abcd5(0x121)],'title':'exchange.download','icon':_0x2abcd5(0x11b)};}const f={[c[_0x2a7552(0x117)][_0x2a7552(0x146)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x2a7552(0x116)],y=(_0x38e205,_0x134abc,_0x5a6c8b,_0x44b76e)=>{const _0x2cfc6c=_0x2a7552;for(var _0x634502=_0x44b76e>0x1?void 0x0:_0x44b76e?T(_0x134abc,_0x5a6c8b):_0x134abc,_0x55799d=_0x38e205[_0x2cfc6c(0x136)]-0x1,_0x4010ee;_0x55799d>=0x0;_0x55799d--)(_0x4010ee=_0x38e205[_0x55799d])&&(_0x634502=_0x4010ee(_0x634502)||_0x634502);return _0x634502;},m=(_0x1fc66,_0x4c66db)=>(_0x4566e0,_0x1e86f0)=>_0x4c66db(_0x4566e0,_0x1e86f0,_0x1fc66);function _0x4edc(_0x5146ec,_0x33e5da){const _0x2a4d8e=_0x2a4d();return _0x4edc=function(_0x4edc2d,_0x3b4c8d){_0x4edc2d=_0x4edc2d-0x115;let _0xee8edc=_0x2a4d8e[_0x4edc2d];return _0xee8edc;},_0x4edc(_0x5146ec,_0x33e5da);}let u=class extends i['Disposable']{constructor(_0x1139af,_0x414704){const _0x27a3fb=_0x2a7552;super(),this[_0x27a3fb(0x14f)]=_0x1139af,this[_0x27a3fb(0x138)]=_0x414704,this['_initCommands'](),this[_0x27a3fb(0x13d)]();}['_initCommands'](){const _0x126e6c=_0x2a7552;[l,p][_0x126e6c(0x120)](_0x151f00=>{const _0x107deb=_0x126e6c;this[_0x107deb(0x13f)](this[_0x107deb(0x14f)][_0x107deb(0x159)](_0x151f00));});}[_0x2a7552(0x13d)](){const _0x4fc48e=_0x2a7552;this[_0x4fc48e(0x138)][_0x4fc48e(0x122)](f);}};u=y([m(0x0,i[_0x2a7552(0x115)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x2a7552(0x12c)],U=Object[_0x2a7552(0x116)],X=(_0x1ba865,_0x15d7fb,_0x361cab)=>_0x15d7fb in _0x1ba865?O(_0x1ba865,_0x15d7fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361cab}):_0x1ba865[_0x15d7fb]=_0x361cab,N=(_0x53c46d,_0x2fa8b2,_0x2c26c3,_0x2a2e2f)=>{const _0x20699d=_0x2a7552;for(var _0x1b1bdf=_0x2a2e2f>0x1?void 0x0:_0x2a2e2f?U(_0x2fa8b2,_0x2c26c3):_0x2fa8b2,_0x106e90=_0x53c46d[_0x20699d(0x136)]-0x1,_0x111180;_0x106e90>=0x0;_0x106e90--)(_0x111180=_0x53c46d[_0x106e90])&&(_0x1b1bdf=_0x111180(_0x1b1bdf)||_0x1b1bdf);return _0x1b1bdf;},d=(_0xb17636,_0xfdae10)=>(_0x1aab95,_0x12a0fa)=>_0xfdae10(_0x1aab95,_0x12a0fa,_0xb17636),E=(_0x5db5f6,_0x5f31e9,_0x19b71a)=>X(_0x5db5f6,typeof _0x5f31e9!=_0x2a7552(0x13a)?_0x5f31e9+'':_0x5f31e9,_0x19b71a);const L=_0x2a7552(0x14e);exports[_0x2a7552(0x14a)]=class extends i['Plugin']{constructor(_0x178085=h,_0xcdcc7e,_0x378b31){const _0x3def19=_0x2a7552;super(),this[_0x3def19(0x13b)]=_0x178085,this[_0x3def19(0x134)]=_0xcdcc7e,this[_0x3def19(0x12a)]=_0x378b31;const {menu:_0x4a0d82,..._0xb1c2cc}=i[_0x3def19(0x14d)]({},h,this[_0x3def19(0x13b)]);_0x4a0d82&&this['_configService'][_0x3def19(0x13e)](_0x3def19(0x119),_0x4a0d82,{'merge':!0x0}),this['_configService']['setConfig'](v,_0xb1c2cc);}[_0x2a7552(0x148)](){const _0x2e7a3a=_0x2a7552;[[u]]['forEach'](_0x7e3f9a=>this[_0x2e7a3a(0x134)][_0x2e7a3a(0x147)](_0x7e3f9a));}[_0x2a7552(0x126)](){const _0x2c6af7=_0x2a7552;this[_0x2c6af7(0x134)]['get'](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x2a7552(0x11a),L),E(exports[_0x2a7552(0x14a)],_0x2a7552(0x128),i['UniverInstanceType']['UNIVER_SHEET']),exports[_0x2a7552(0x14a)]=N([i[_0x2a7552(0x11c)](g[_0x2a7552(0x118)]),d(0x1,i[_0x2a7552(0x12e)](i[_0x2a7552(0x150)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x2a7552(0x158)]=p,exports[_0x2a7552(0x11e)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3f4a43=_0x47a8;(function(_0x47c10f,_0x365d23){const _0x1b9c0a=_0x47a8,_0x25b6dc=_0x47c10f();while(!![]){try{const _0x4d5846=parseInt(_0x1b9c0a(0x12c))/0x1+parseInt(_0x1b9c0a(0x135))/0x2+parseInt(_0x1b9c0a(0x139))/0x3*(-parseInt(_0x1b9c0a(0x155))/0x4)+-parseInt(_0x1b9c0a(0x136))/0x5*(parseInt(_0x1b9c0a(0x154))/0x6)+-parseInt(_0x1b9c0a(0x13c))/0x7*(parseInt(_0x1b9c0a(0x12b))/0x8)+parseInt(_0x1b9c0a(0x134))/0x9+parseInt(_0x1b9c0a(0x13e))/0xa*(parseInt(_0x1b9c0a(0x156))/0xb);if(_0x4d5846===_0x365d23)break;else _0x25b6dc['push'](_0x25b6dc['shift']());}catch(_0x677e7a){_0x25b6dc['push'](_0x25b6dc['shift']());}}}(_0x5910,0xd8c98));import{IExchangeOperateService as _0x4a1274,UniverExchangeClientPlugin as _0x2fc665}from'@univerjs-pro/exchange-client';import{CommandType as _0x1d43db,UniverInstanceType as _0x3f0b58,Disposable as _0x18475d,ICommandService as _0x1e2ce4,DependentOn as _0x5a88a5,Inject as _0x334736,Injector as _0x58d444,IConfigService as _0x45ece5,Plugin as _0xc421a4,merge as _0x16b5f2}from'@univerjs/core';import{MenuItemType as _0x1ced25,getMenuHiddenObservable as _0x13b3a7,RibbonStartGroup as _0x30e5fc,IMenuManagerService as _0x269b42}from'@univerjs/ui';import{WorkbookExportPermission as _0x4b6f9f}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2966ea}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1d43db[_0x3f4a43(0x131)],'handler':async _0x480ae8=>{const _0x187cd0=_0x3f4a43,_0x397c84=_0x480ae8['get'](_0x4a1274);return new URLSearchParams(location['search'])['get']('unit')?_0x397c84[_0x187cd0(0x133)]():_0x397c84['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x3f4a43(0x12f),'type':_0x1d43db['OPERATION'],'handler':async _0x3fa1d2=>{const _0x47dacc=_0x3f4a43,_0x5e69a0=_0x3fa1d2[_0x47dacc(0x149)](_0x4a1274);return new URLSearchParams(location[_0x47dacc(0x142)])['get']('unit')?_0x5e69a0[_0x47dacc(0x13a)]():_0x5e69a0['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x3f4a43(0x140);function R(_0x178ea8){const _0x18bd78=_0x3f4a43;return{'id':S,'type':_0x1ced25[_0x18bd78(0x13b)],'icon':_0x18bd78(0x14a),'tooltip':_0x18bd78(0x138),'hidden$':_0x13b3a7(_0x178ea8,_0x3f0b58[_0x18bd78(0x14b)]),'disabled$':_0x2966ea(_0x178ea8,{'workbookTypes':[_0x4b6f9f]})};}function w(){const _0x1d0b73=_0x3f4a43;return{'id':p['id'],'type':_0x1ced25[_0x1d0b73(0x130)],'title':'exchange.upload','icon':_0x1d0b73(0x150)};}function D(){const _0xfb4227=_0x3f4a43;return{'id':u['id'],'type':_0x1ced25[_0xfb4227(0x130)],'title':_0xfb4227(0x147),'icon':_0xfb4227(0x13d)};}const F={[_0x30e5fc[_0x3f4a43(0x151)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3f4a43(0x14e)],A=(_0x9e1b81,_0x228307,_0x561b9a,_0x20e597)=>{const _0x1c235d=_0x3f4a43;for(var _0x4463f3=_0x20e597>0x1?void 0x0:_0x20e597?G(_0x228307,_0x561b9a):_0x228307,_0x4bf7d0=_0x9e1b81[_0x1c235d(0x157)]-0x1,_0x17ac48;_0x4bf7d0>=0x0;_0x4bf7d0--)(_0x17ac48=_0x9e1b81[_0x4bf7d0])&&(_0x4463f3=_0x17ac48(_0x4463f3)||_0x4463f3);return _0x4463f3;},d=(_0x54a33b,_0x169087)=>(_0x34e9dc,_0x298ada)=>_0x169087(_0x34e9dc,_0x298ada,_0x54a33b);let c=class extends _0x18475d{constructor(_0x4a9010,_0x2422c4){const _0x587abd=_0x3f4a43;super(),this[_0x587abd(0x146)]=_0x4a9010,this[_0x587abd(0x132)]=_0x2422c4,this[_0x587abd(0x14c)](),this['_initMenus']();}[_0x3f4a43(0x14c)](){const _0x4c16c9=_0x3f4a43;[p,u][_0x4c16c9(0x12d)](_0x2d50ac=>{const _0x2f6f17=_0x4c16c9;this['disposeWithMe'](this[_0x2f6f17(0x146)]['registerCommand'](_0x2d50ac));});}[_0x3f4a43(0x148)](){const _0x47bc78=_0x3f4a43;this[_0x47bc78(0x132)][_0x47bc78(0x158)](F);}};c=A([d(0x0,_0x1e2ce4),d(0x1,_0x269b42)],c);function _0x5910(){const _0x524158=['440293NMIfxp','ExportIcon','3509830zwZYKK','_config','sheets-exchange-client.operation.exchange','menu','search','setConfig','_configService','onStarting','_commandService','exchange.download','_initMenus','get','DirectExportIcon','UNIVER_SHEET','_initCommands','type','getOwnPropertyDescriptor','symbol','FolderIcon','OTHERS','pluginName','add','9295548Hqvnbe','362244eZmSkr','55JMPSie','length','mergeMenu','8tEHBAV','811770KUOUCT','forEach','_injector','exchange-client.operation.export-xlsx','BUTTON','OPERATION','_menuManagerService','importXLSXToUnitId','8063685aPseqF','429520CFghNf','5KwRQyC','defineProperty','exchange.file','39VXhfpp','exportXLSXByUnitId','SUBITEMS'];_0x5910=function(){return _0x524158;};return _0x5910();}var j=Object[_0x3f4a43(0x137)],B=Object[_0x3f4a43(0x14e)],$=(_0xee162d,_0x38fc98,_0x5d556d)=>_0x38fc98 in _0xee162d?j(_0xee162d,_0x38fc98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d556d}):_0xee162d[_0x38fc98]=_0x5d556d,V=(_0x2af3a2,_0xa7c428,_0x9ae5af,_0x48f091)=>{for(var _0x343c70=_0x48f091>0x1?void 0x0:_0x48f091?B(_0xa7c428,_0x9ae5af):_0xa7c428,_0x560a19=_0x2af3a2['length']-0x1,_0x5359b7;_0x560a19>=0x0;_0x560a19--)(_0x5359b7=_0x2af3a2[_0x560a19])&&(_0x343c70=_0x5359b7(_0x343c70)||_0x343c70);return _0x343c70;},_=(_0x208294,_0x571b5a)=>(_0x55e88c,_0x53daed)=>_0x571b5a(_0x55e88c,_0x53daed,_0x208294),I=(_0x359892,_0x518139,_0x56096f)=>$(_0x359892,typeof _0x518139!=_0x3f4a43(0x14f)?_0x518139+'':_0x518139,_0x56096f);function _0x47a8(_0xf288a7,_0x6e6659){const _0x591041=_0x5910();return _0x47a8=function(_0x47a8c2,_0xcb04d3){_0x47a8c2=_0x47a8c2-0x12b;let _0xe50e66=_0x591041[_0x47a8c2];return _0xe50e66;},_0x47a8(_0xf288a7,_0x6e6659);}const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0xc421a4{constructor(_0x55bb31=l,_0x19d097,_0x1d8f38){const _0x3807aa=_0x3f4a43;super(),this[_0x3807aa(0x13f)]=_0x55bb31,this[_0x3807aa(0x12e)]=_0x19d097,this[_0x3807aa(0x144)]=_0x1d8f38;const {menu:_0x5a97d6,..._0x120cf1}=_0x16b5f2({},l,this[_0x3807aa(0x13f)]);_0x5a97d6&&this[_0x3807aa(0x144)][_0x3807aa(0x143)](_0x3807aa(0x141),_0x5a97d6,{'merge':!0x0}),this[_0x3807aa(0x144)][_0x3807aa(0x143)](H,_0x120cf1);}[_0x3f4a43(0x145)](){const _0x4d9000=_0x3f4a43;[[c]][_0x4d9000(0x12d)](_0x18004d=>this[_0x4d9000(0x12e)][_0x4d9000(0x153)](_0x18004d));}['onReady'](){const _0x265d69=_0x3f4a43;this[_0x265d69(0x12e)][_0x265d69(0x149)](c);}};I(s,_0x3f4a43(0x152),W),I(s,_0x3f4a43(0x14d),_0x3f0b58[_0x3f4a43(0x14b)]),s=V([_0x5a88a5(_0x2fc665),_(0x1,_0x334736(_0x58d444)),_(0x2,_0x45ece5)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3f4a43=_0x47a8;(function(_0x47c10f,_0x365d23){const _0x1b9c0a=_0x47a8,_0x25b6dc=_0x47c10f();while(!![]){try{const _0x4d5846=parseInt(_0x1b9c0a(0x12c))/0x1+parseInt(_0x1b9c0a(0x135))/0x2+parseInt(_0x1b9c0a(0x139))/0x3*(-parseInt(_0x1b9c0a(0x155))/0x4)+-parseInt(_0x1b9c0a(0x136))/0x5*(parseInt(_0x1b9c0a(0x154))/0x6)+-parseInt(_0x1b9c0a(0x13c))/0x7*(parseInt(_0x1b9c0a(0x12b))/0x8)+parseInt(_0x1b9c0a(0x134))/0x9+parseInt(_0x1b9c0a(0x13e))/0xa*(parseInt(_0x1b9c0a(0x156))/0xb);if(_0x4d5846===_0x365d23)break;else _0x25b6dc['push'](_0x25b6dc['shift']());}catch(_0x677e7a){_0x25b6dc['push'](_0x25b6dc['shift']());}}}(_0x5910,0xd8c98));import{IExchangeOperateService as _0x4a1274,UniverExchangeClientPlugin as _0x2fc665}from'@univerjs-pro/exchange-client';import{CommandType as _0x1d43db,UniverInstanceType as _0x3f0b58,Disposable as _0x18475d,ICommandService as _0x1e2ce4,DependentOn as _0x5a88a5,Inject as _0x334736,Injector as _0x58d444,IConfigService as _0x45ece5,Plugin as _0xc421a4,merge as _0x16b5f2}from'@univerjs/core';import{MenuItemType as _0x1ced25,getMenuHiddenObservable as _0x13b3a7,RibbonStartGroup as _0x30e5fc,IMenuManagerService as _0x269b42}from'@univerjs/ui';import{WorkbookExportPermission as _0x4b6f9f}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2966ea}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1d43db[_0x3f4a43(0x131)],'handler':async _0x480ae8=>{const _0x187cd0=_0x3f4a43,_0x397c84=_0x480ae8['get'](_0x4a1274);return new URLSearchParams(location['search'])['get']('unit')?_0x397c84[_0x187cd0(0x133)]():_0x397c84['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x3f4a43(0x12f),'type':_0x1d43db['OPERATION'],'handler':async _0x3fa1d2=>{const _0x47dacc=_0x3f4a43,_0x5e69a0=_0x3fa1d2[_0x47dacc(0x149)](_0x4a1274);return new URLSearchParams(location[_0x47dacc(0x142)])['get']('unit')?_0x5e69a0[_0x47dacc(0x13a)]():_0x5e69a0['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x3f4a43(0x140);function R(_0x178ea8){const _0x18bd78=_0x3f4a43;return{'id':S,'type':_0x1ced25[_0x18bd78(0x13b)],'icon':_0x18bd78(0x14a),'tooltip':_0x18bd78(0x138),'hidden$':_0x13b3a7(_0x178ea8,_0x3f0b58[_0x18bd78(0x14b)]),'disabled$':_0x2966ea(_0x178ea8,{'workbookTypes':[_0x4b6f9f]})};}function w(){const _0x1d0b73=_0x3f4a43;return{'id':p['id'],'type':_0x1ced25[_0x1d0b73(0x130)],'title':'exchange.upload','icon':_0x1d0b73(0x150)};}function D(){const _0xfb4227=_0x3f4a43;return{'id':u['id'],'type':_0x1ced25[_0xfb4227(0x130)],'title':_0xfb4227(0x147),'icon':_0xfb4227(0x13d)};}const F={[_0x30e5fc[_0x3f4a43(0x151)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3f4a43(0x14e)],A=(_0x9e1b81,_0x228307,_0x561b9a,_0x20e597)=>{const _0x1c235d=_0x3f4a43;for(var _0x4463f3=_0x20e597>0x1?void 0x0:_0x20e597?G(_0x228307,_0x561b9a):_0x228307,_0x4bf7d0=_0x9e1b81[_0x1c235d(0x157)]-0x1,_0x17ac48;_0x4bf7d0>=0x0;_0x4bf7d0--)(_0x17ac48=_0x9e1b81[_0x4bf7d0])&&(_0x4463f3=_0x17ac48(_0x4463f3)||_0x4463f3);return _0x4463f3;},d=(_0x54a33b,_0x169087)=>(_0x34e9dc,_0x298ada)=>_0x169087(_0x34e9dc,_0x298ada,_0x54a33b);let c=class extends _0x18475d{constructor(_0x4a9010,_0x2422c4){const _0x587abd=_0x3f4a43;super(),this[_0x587abd(0x146)]=_0x4a9010,this[_0x587abd(0x132)]=_0x2422c4,this[_0x587abd(0x14c)](),this['_initMenus']();}[_0x3f4a43(0x14c)](){const _0x4c16c9=_0x3f4a43;[p,u][_0x4c16c9(0x12d)](_0x2d50ac=>{const _0x2f6f17=_0x4c16c9;this['disposeWithMe'](this[_0x2f6f17(0x146)]['registerCommand'](_0x2d50ac));});}[_0x3f4a43(0x148)](){const _0x47bc78=_0x3f4a43;this[_0x47bc78(0x132)][_0x47bc78(0x158)](F);}};c=A([d(0x0,_0x1e2ce4),d(0x1,_0x269b42)],c);function _0x5910(){const _0x524158=['440293NMIfxp','ExportIcon','3509830zwZYKK','_config','sheets-exchange-client.operation.exchange','menu','search','setConfig','_configService','onStarting','_commandService','exchange.download','_initMenus','get','DirectExportIcon','UNIVER_SHEET','_initCommands','type','getOwnPropertyDescriptor','symbol','FolderIcon','OTHERS','pluginName','add','9295548Hqvnbe','362244eZmSkr','55JMPSie','length','mergeMenu','8tEHBAV','811770KUOUCT','forEach','_injector','exchange-client.operation.export-xlsx','BUTTON','OPERATION','_menuManagerService','importXLSXToUnitId','8063685aPseqF','429520CFghNf','5KwRQyC','defineProperty','exchange.file','39VXhfpp','exportXLSXByUnitId','SUBITEMS'];_0x5910=function(){return _0x524158;};return _0x5910();}var j=Object[_0x3f4a43(0x137)],B=Object[_0x3f4a43(0x14e)],$=(_0xee162d,_0x38fc98,_0x5d556d)=>_0x38fc98 in _0xee162d?j(_0xee162d,_0x38fc98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d556d}):_0xee162d[_0x38fc98]=_0x5d556d,V=(_0x2af3a2,_0xa7c428,_0x9ae5af,_0x48f091)=>{for(var _0x343c70=_0x48f091>0x1?void 0x0:_0x48f091?B(_0xa7c428,_0x9ae5af):_0xa7c428,_0x560a19=_0x2af3a2['length']-0x1,_0x5359b7;_0x560a19>=0x0;_0x560a19--)(_0x5359b7=_0x2af3a2[_0x560a19])&&(_0x343c70=_0x5359b7(_0x343c70)||_0x343c70);return _0x343c70;},_=(_0x208294,_0x571b5a)=>(_0x55e88c,_0x53daed)=>_0x571b5a(_0x55e88c,_0x53daed,_0x208294),I=(_0x359892,_0x518139,_0x56096f)=>$(_0x359892,typeof _0x518139!=_0x3f4a43(0x14f)?_0x518139+'':_0x518139,_0x56096f);function _0x47a8(_0xf288a7,_0x6e6659){const _0x591041=_0x5910();return _0x47a8=function(_0x47a8c2,_0xcb04d3){_0x47a8c2=_0x47a8c2-0x12b;let _0xe50e66=_0x591041[_0x47a8c2];return _0xe50e66;},_0x47a8(_0xf288a7,_0x6e6659);}const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0xc421a4{constructor(_0x55bb31=l,_0x19d097,_0x1d8f38){const _0x3807aa=_0x3f4a43;super(),this[_0x3807aa(0x13f)]=_0x55bb31,this[_0x3807aa(0x12e)]=_0x19d097,this[_0x3807aa(0x144)]=_0x1d8f38;const {menu:_0x5a97d6,..._0x120cf1}=_0x16b5f2({},l,this[_0x3807aa(0x13f)]);_0x5a97d6&&this[_0x3807aa(0x144)][_0x3807aa(0x143)](_0x3807aa(0x141),_0x5a97d6,{'merge':!0x0}),this[_0x3807aa(0x144)][_0x3807aa(0x143)](H,_0x120cf1);}[_0x3f4a43(0x145)](){const _0x4d9000=_0x3f4a43;[[c]][_0x4d9000(0x12d)](_0x18004d=>this[_0x4d9000(0x12e)][_0x4d9000(0x153)](_0x18004d));}['onReady'](){const _0x265d69=_0x3f4a43;this[_0x265d69(0x12e)][_0x265d69(0x149)](c);}};I(s,_0x3f4a43(0x152),W),I(s,_0x3f4a43(0x14d),_0x3f0b58[_0x3f4a43(0x14b)]),s=V([_0x5a88a5(_0x2fc665),_(0x1,_0x334736(_0x58d444)),_(0x2,_0x45ece5)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x40d4(){const _0x6116c6=['_initMenus','_injector','CommandType','IConfigService','IExchangeOperateService','type','_configService','12pfTczF','ExportXLSXOperation','unit','OTHERS','UniverSheetsExchangeClientPlugin','1014913HlBSEe','get','570987nLgLmo','UNIVER_SHEET','ICommandService','IMenuManagerService','setConfig','registerCommand','object','SUBITEMS','RibbonStartGroup','BUTTON','sheets-exchange-client.config','exchange.file','forEach','ExportIcon','@univerjs/core','_initCommands','445012QZkEKF','defineProperty','70QSeWfq','4059013imCVWc','symbol','UniverSheetsUi','OPERATION','_commandService','_config','exportXLSXBySnapshot','add','exchange-client.operation.export-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','length','FolderIcon','MenuItemType','@univerjs/sheets','1759216jfYVXi','UniverUi','Inject','@univerjs-pro/exchange-client','UniverExchangeClientPlugin','1316709QBhnpv','exchange.download','toStringTag','Module','onReady','merge','amd','Injector','sheets-exchange-client.operation.exchange','search','getOwnPropertyDescriptor','Plugin','getMenuHiddenObservable','UniverSheets','importXLSXToUnitId','_menuManagerService','WorkbookExportPermission','UniverCore','DirectExportIcon','function','importXLSXToSnapshot','Disposable','26646QpFzwr'];_0x40d4=function(){return _0x6116c6;};return _0x40d4();}function _0x45bb(_0x2aec6d,_0x454385){const _0x40d4e7=_0x40d4();return _0x45bb=function(_0x45bb2c,_0x3f9038){_0x45bb2c=_0x45bb2c-0xc3;let _0x5100df=_0x40d4e7[_0x45bb2c];return _0x5100df;},_0x45bb(_0x2aec6d,_0x454385);}(function(_0x4dec4a,_0x412996){const _0x24cc50=_0x45bb,_0x255ee9=_0x4dec4a();while(!![]){try{const _0x4f5b1f=-parseInt(_0x24cc50(0xf6))/0x1+-parseInt(_0x24cc50(0x108))/0x2+parseInt(_0x24cc50(0xd3))/0x3*(parseInt(_0x24cc50(0xf1))/0x4)+-parseInt(_0x24cc50(0x10a))/0x5*(parseInt(_0x24cc50(0xe9))/0x6)+parseInt(_0x24cc50(0x10b))/0x7+parseInt(_0x24cc50(0xce))/0x8+-parseInt(_0x24cc50(0xf8))/0x9;if(_0x4f5b1f===_0x412996)break;else _0x255ee9['push'](_0x255ee9['shift']());}catch(_0xca4564){_0x255ee9['push'](_0x255ee9['shift']());}}}(_0x40d4,0xb7f1a),function(_0x4f685a,_0x43fb79){const _0x1ae6c5=_0x45bb;typeof exports==_0x1ae6c5(0xfe)&&typeof module<'u'?_0x43fb79(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1ae6c5(0xe6)&&define[_0x1ae6c5(0xd9)]?define(['exports',_0x1ae6c5(0xd1),_0x1ae6c5(0x106),'@univerjs/ui',_0x1ae6c5(0xcd),'@univerjs/sheets-ui'],_0x43fb79):(_0x4f685a=typeof globalThis<'u'?globalThis:_0x4f685a||self,_0x43fb79(_0x4f685a['UniverProSheetsExchangeClient']={},_0x4f685a['UniverProExchangeClient'],_0x4f685a[_0x1ae6c5(0xe4)],_0x4f685a[_0x1ae6c5(0xcf)],_0x4f685a[_0x1ae6c5(0xe0)],_0x4f685a[_0x1ae6c5(0x10d)]));}(this,function(_0x23d58f,_0x12fd7d,_0x343484,_0x2138d1,_0x136f9d,_0x5472df){'use strict';const _0x28f278=_0x45bb;const _0x4108cc={'id':'exchange-client.operation.import-xlsx','type':_0x343484[_0x28f278(0xec)][_0x28f278(0xc3)],'handler':async _0x33a0a6=>{const _0x382df0=_0x28f278,_0xba4c0=_0x33a0a6[_0x382df0(0xf7)](_0x12fd7d[_0x382df0(0xee)]);return new URLSearchParams(location[_0x382df0(0xdc)])['get'](_0x382df0(0xf3))?_0xba4c0[_0x382df0(0xe1)]():_0xba4c0[_0x382df0(0xe7)](),!0x0;}},_0x3918ae={'id':_0x28f278(0xc8),'type':_0x343484[_0x28f278(0xec)][_0x28f278(0xc3)],'handler':async _0x27f878=>{const _0x4412ad=_0x28f278,_0x30d908=_0x27f878[_0x4412ad(0xf7)](_0x12fd7d[_0x4412ad(0xee)]);return new URLSearchParams(location[_0x4412ad(0xdc)])['get'](_0x4412ad(0xf3))?_0x30d908['exportXLSXByUnitId']():_0x30d908[_0x4412ad(0xc6)](),!0x0;}},_0x177f23=_0x28f278(0x102),_0x7770ed={},_0x2080a4=_0x28f278(0xdb);function _0x2581cb(_0x11f029){const _0x23beae=_0x28f278;return{'id':_0x2080a4,'type':_0x2138d1['MenuItemType'][_0x23beae(0xff)],'icon':_0x23beae(0xe5),'tooltip':_0x23beae(0x103),'hidden$':_0x2138d1[_0x23beae(0xdf)](_0x11f029,_0x343484['UniverInstanceType'][_0x23beae(0xf9)]),'disabled$':_0x5472df['getCurrentRangeDisable$'](_0x11f029,{'workbookTypes':[_0x136f9d[_0x23beae(0xe3)]]})};}function _0x568935(){const _0x5d5f6c=_0x28f278;return{'id':_0x4108cc['id'],'type':_0x2138d1[_0x5d5f6c(0xcc)][_0x5d5f6c(0x101)],'title':'exchange.upload','icon':_0x5d5f6c(0xcb)};}function _0xb780a6(){const _0x2e054c=_0x28f278;return{'id':_0x3918ae['id'],'type':_0x2138d1['MenuItemType'][_0x2e054c(0x101)],'title':_0x2e054c(0xd4),'icon':_0x2e054c(0x105)};}const _0xf6287a={[_0x2138d1[_0x28f278(0x100)][_0x28f278(0xf4)]]:{[_0x2080a4]:{'order':0.3,'menuItemFactory':_0x2581cb,[_0x4108cc['id']]:{'order':0x0,'menuItemFactory':_0x568935},[_0x3918ae['id']]:{'order':0x1,'menuItemFactory':_0xb780a6}}}};var _0x4af73d=Object[_0x28f278(0xdd)],_0x15848f=(_0x3c03a3,_0x3e4c79,_0x9e7f0f,_0x19f953)=>{const _0x4fe310=_0x28f278;for(var _0x43430d=_0x19f953>0x1?void 0x0:_0x19f953?_0x4af73d(_0x3e4c79,_0x9e7f0f):_0x3e4c79,_0x911243=_0x3c03a3[_0x4fe310(0xca)]-0x1,_0x25f6cb;_0x911243>=0x0;_0x911243--)(_0x25f6cb=_0x3c03a3[_0x911243])&&(_0x43430d=_0x25f6cb(_0x43430d)||_0x43430d);return _0x43430d;},_0x5d62d6=(_0x134b18,_0xeed0b4)=>(_0xa18c84,_0x513c2f)=>_0xeed0b4(_0xa18c84,_0x513c2f,_0x134b18);let _0x22edd6=class extends _0x343484[_0x28f278(0xe8)]{constructor(_0x19e7b2,_0x146e1d){const _0x7d0a95=_0x28f278;super(),this[_0x7d0a95(0xc4)]=_0x19e7b2,this[_0x7d0a95(0xe2)]=_0x146e1d,this[_0x7d0a95(0x107)](),this['_initMenus']();}[_0x28f278(0x107)](){const _0x281c52=_0x28f278;[_0x4108cc,_0x3918ae][_0x281c52(0x104)](_0x316192=>{const _0x3fbf4e=_0x281c52;this['disposeWithMe'](this[_0x3fbf4e(0xc4)][_0x3fbf4e(0xfd)](_0x316192));});}[_0x28f278(0xea)](){const _0x2be89a=_0x28f278;this[_0x2be89a(0xe2)]['mergeMenu'](_0xf6287a);}};_0x22edd6=_0x15848f([_0x5d62d6(0x0,_0x343484[_0x28f278(0xfa)]),_0x5d62d6(0x1,_0x2138d1[_0x28f278(0xfb)])],_0x22edd6);var _0x55a146=Object[_0x28f278(0x109)],_0x448ca0=Object['getOwnPropertyDescriptor'],_0x1dfdbe=(_0x1a129b,_0x38f24c,_0x547e89)=>_0x38f24c in _0x1a129b?_0x55a146(_0x1a129b,_0x38f24c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x547e89}):_0x1a129b[_0x38f24c]=_0x547e89,_0x468021=(_0x224aaf,_0x574f0c,_0x1152cb,_0x1224de)=>{const _0xceac3a=_0x28f278;for(var _0x39353d=_0x1224de>0x1?void 0x0:_0x1224de?_0x448ca0(_0x574f0c,_0x1152cb):_0x574f0c,_0x27d923=_0x224aaf[_0xceac3a(0xca)]-0x1,_0x392422;_0x27d923>=0x0;_0x27d923--)(_0x392422=_0x224aaf[_0x27d923])&&(_0x39353d=_0x392422(_0x39353d)||_0x39353d);return _0x39353d;},_0x5cf38a=(_0x191ace,_0x4f2056)=>(_0xf3341e,_0x3643a1)=>_0x4f2056(_0xf3341e,_0x3643a1,_0x191ace),_0x45f981=(_0x25d22c,_0x1089bb,_0x3161ab)=>_0x1dfdbe(_0x25d22c,typeof _0x1089bb!=_0x28f278(0x10c)?_0x1089bb+'':_0x1089bb,_0x3161ab);const _0x34c9ce=_0x28f278(0xc9);_0x23d58f[_0x28f278(0xf5)]=class extends _0x343484[_0x28f278(0xde)]{constructor(_0x3cedda=_0x7770ed,_0x2460dd,_0x14ae35){const _0x17cfa5=_0x28f278;super(),this['_config']=_0x3cedda,this[_0x17cfa5(0xeb)]=_0x2460dd,this[_0x17cfa5(0xf0)]=_0x14ae35;const {menu:_0x3e65b3,..._0x319c71}=_0x343484[_0x17cfa5(0xd8)]({},_0x7770ed,this[_0x17cfa5(0xc5)]);_0x3e65b3&&this[_0x17cfa5(0xf0)][_0x17cfa5(0xfc)]('menu',_0x3e65b3,{'merge':!0x0}),this[_0x17cfa5(0xf0)][_0x17cfa5(0xfc)](_0x177f23,_0x319c71);}['onStarting'](){const _0x210bcb=_0x28f278;[[_0x22edd6]][_0x210bcb(0x104)](_0x45ffcc=>this['_injector'][_0x210bcb(0xc7)](_0x45ffcc));}[_0x28f278(0xd7)](){const _0x4252d6=_0x28f278;this[_0x4252d6(0xeb)][_0x4252d6(0xf7)](_0x22edd6);}},_0x45f981(_0x23d58f['UniverSheetsExchangeClientPlugin'],'pluginName',_0x34c9ce),_0x45f981(_0x23d58f[_0x28f278(0xf5)],_0x28f278(0xef),_0x343484['UniverInstanceType'][_0x28f278(0xf9)]),_0x23d58f[_0x28f278(0xf5)]=_0x468021([_0x343484['DependentOn'](_0x12fd7d[_0x28f278(0xd2)]),_0x5cf38a(0x1,_0x343484[_0x28f278(0xd0)](_0x343484[_0x28f278(0xda)])),_0x5cf38a(0x2,_0x343484[_0x28f278(0xed)])],_0x23d58f[_0x28f278(0xf5)]),_0x23d58f[_0x28f278(0xf2)]=_0x3918ae,_0x23d58f['ImportXLSXOperation']=_0x4108cc,Object[_0x28f278(0x109)](_0x23d58f,Symbol[_0x28f278(0xd5)],{'value':_0x28f278(0xd6)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
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/core": "0.
|
|
47
|
-
"@univerjs/sheets": "0.
|
|
48
|
-
"@univerjs/sheets-ui": "0.
|
|
49
|
-
"@univerjs/ui": "0.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.12.0",
|
|
46
|
+
"@univerjs/core": "0.12.0",
|
|
47
|
+
"@univerjs/sheets": "0.12.0",
|
|
48
|
+
"@univerjs/sheets-ui": "0.12.0",
|
|
49
|
+
"@univerjs/ui": "0.12.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vite": "^7.
|
|
53
|
+
"vite": "^7.2.2",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.
|
|
55
|
+
"@univerjs-infra/shared": "0.12.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|