@univerjs-pro/sheets-exchange-client 0.12.4-experimental.20251210-8d33c6e → 0.12.4-experimental.20251210-29c379a
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';function _0x166a(_0x1f8c30,_0x299c54){_0x1f8c30=_0x1f8c30-0xf9;const _0x3ba7e5=_0x3ba7();let _0x166af0=_0x3ba7e5[_0x1f8c30];return _0x166af0;}function _0x3ba7(){const _0x5d99f3=['disposeWithMe','DependentOn','IMenuManagerService','UNIVER_SHEET','exportXLSXByUnitId','_initCommands','symbol','onStarting','sheets-exchange-client.config','IExchangeOperateService','OTHERS','forEach','get','_commandService','_menuManagerService','DirectExportIcon','OPERATION','exchange.download','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','unit','22YZwuFa','Plugin','getOwnPropertyDescriptor','8565396aeNVTS','Module','UniverSheetsExchangeClientPlugin','ExportIcon','48441HaRVxW','12582128YQrwkl','SHEET_EXCHANGE_CLIENT_PLUGIN','MenuItemType','54FSxTLL','ExportXLSXOperation','_initMenus','ImportXLSXOperation','UniverInstanceType','onReady','CommandType','16885264BpQxcD','Inject','BUTTON','_injector','140300lIUtNk','Injector','menu','_configService','9AcomBn','registerCommand','setConfig','mergeMenu','merge','exchange.file','length','Disposable','getMenuHiddenObservable','68485fGIQwu','importXLSXToUnitId','232RFifKJ','UniverExchangeClientPlugin','defineProperty','16556350pAdPqp','_config','type','FolderIcon'];_0x3ba7=function(){return _0x5d99f3;};return _0x3ba7();}const _0x426917=_0x166a;(function(_0x36d13c,_0x18c7a6){const _0x13e748=_0x166a,_0x44d91a=_0x36d13c();while(!![]){try{const _0x3840df=parseInt(_0x13e748(0x117))/0x1*(parseInt(_0x13e748(0x101))/0x2)+-parseInt(_0x13e748(0x108))/0x3*(parseInt(_0x13e748(0x126))/0x4)+parseInt(_0x13e748(0x124))/0x5*(-parseInt(_0x13e748(0x10c))/0x6)+-parseInt(_0x13e748(0x104))/0x7+parseInt(_0x13e748(0x109))/0x8+parseInt(_0x13e748(0x11b))/0x9*(parseInt(_0x13e748(0x129))/0xa)+-parseInt(_0x13e748(0x113))/0xb;if(_0x3840df===_0x18c7a6)break;else _0x44d91a['push'](_0x44d91a['shift']());}catch(_0x52f450){_0x44d91a['push'](_0x44d91a['shift']());}}}(_0x3ba7,0xe8ba2));Object[_0x426917(0x128)](exports,Symbol['toStringTag'],{'value':_0x426917(0x105)});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':'exchange-client.operation.import-xlsx','type':i[_0x426917(0x112)][_0x426917(0xfc)],'handler':async _0x20acb7=>{const _0x22e7bd=_0x426917,_0x15ddd3=_0x20acb7['get'](g[_0x22e7bd(0x136)]);return new URLSearchParams(location['search'])[_0x22e7bd(0x139)](_0x22e7bd(0x100))?_0x15ddd3[_0x22e7bd(0x125)]():_0x15ddd3['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType'][_0x426917(0xfc)],'handler':async _0x4cd435=>{const _0xea6e86=_0x426917,_0x616f4c=_0x4cd435[_0xea6e86(0x139)](g[_0xea6e86(0x136)]);return new URLSearchParams(location['search'])['get'](_0xea6e86(0x100))?_0x616f4c[_0xea6e86(0x131)]():_0x616f4c[_0xea6e86(0xff)](),!0x0;}},v=_0x426917(0x135),h={},S=_0x426917(0xfe);function x(_0x4cdb5d){const _0x31f8fe=_0x426917;return{'id':S,'type':c[_0x31f8fe(0x10b)]['SUBITEMS'],'icon':_0x31f8fe(0xfb),'tooltip':_0x31f8fe(0x120),'hidden$':c[_0x31f8fe(0x123)](_0x4cdb5d,i[_0x31f8fe(0x110)][_0x31f8fe(0x130)]),'disabled$':I['getCurrentRangeDisable$'](_0x4cdb5d,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x66ac79=_0x426917;return{'id':l['id'],'type':c[_0x66ac79(0x10b)][_0x66ac79(0x115)],'title':'exchange.upload','icon':_0x66ac79(0x12c)};}function C(){const _0x320245=_0x426917;return{'id':p['id'],'type':c[_0x320245(0x10b)][_0x320245(0x115)],'title':_0x320245(0xfd),'icon':_0x320245(0x107)};}const f={[c['RibbonStartGroup'][_0x426917(0x137)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x25174f,_0x28c9a4,_0x3d66f6,_0x17c88f)=>{const _0xe9efa=_0x426917;for(var _0x463548=_0x17c88f>0x1?void 0x0:_0x17c88f?T(_0x28c9a4,_0x3d66f6):_0x28c9a4,_0x4ce28e=_0x25174f[_0xe9efa(0x121)]-0x1,_0x36587d;_0x4ce28e>=0x0;_0x4ce28e--)(_0x36587d=_0x25174f[_0x4ce28e])&&(_0x463548=_0x36587d(_0x463548)||_0x463548);return _0x463548;},m=(_0x340f28,_0x347d3b)=>(_0x497812,_0x58ec51)=>_0x347d3b(_0x497812,_0x58ec51,_0x340f28);let u=class extends i[_0x426917(0x122)]{constructor(_0x3b9597,_0x36273a){const _0x495ebe=_0x426917;super(),this['_commandService']=_0x3b9597,this[_0x495ebe(0xfa)]=_0x36273a,this[_0x495ebe(0x132)](),this[_0x495ebe(0x10e)]();}[_0x426917(0x132)](){const _0x50152f=_0x426917;[l,p][_0x50152f(0x138)](_0x1753e6=>{const _0x5b7289=_0x50152f;this[_0x5b7289(0x12d)](this[_0x5b7289(0xf9)][_0x5b7289(0x11c)](_0x1753e6));});}[_0x426917(0x10e)](){const _0x1515bf=_0x426917;this[_0x1515bf(0xfa)][_0x1515bf(0x11e)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x426917(0x12f)])],u);var O=Object[_0x426917(0x128)],U=Object[_0x426917(0x103)],X=(_0x1b4998,_0x319b75,_0x3498d4)=>_0x319b75 in _0x1b4998?O(_0x1b4998,_0x319b75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3498d4}):_0x1b4998[_0x319b75]=_0x3498d4,N=(_0x3a7c29,_0x1a4e82,_0x426056,_0x1f36ab)=>{for(var _0x27c347=_0x1f36ab>0x1?void 0x0:_0x1f36ab?U(_0x1a4e82,_0x426056):_0x1a4e82,_0x3e64da=_0x3a7c29['length']-0x1,_0x56647a;_0x3e64da>=0x0;_0x3e64da--)(_0x56647a=_0x3a7c29[_0x3e64da])&&(_0x27c347=_0x56647a(_0x27c347)||_0x27c347);return _0x27c347;},d=(_0x519bca,_0x33bbc7)=>(_0x208c58,_0x44916c)=>_0x33bbc7(_0x208c58,_0x44916c,_0x519bca),E=(_0x31dfaa,_0x11cdde,_0x12cf22)=>X(_0x31dfaa,typeof _0x11cdde!=_0x426917(0x133)?_0x11cdde+'':_0x11cdde,_0x12cf22);const L=_0x426917(0x10a);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x426917(0x102)]{constructor(_0x855d2a=h,_0x5920b2,_0x4dad43){const _0x5647ba=_0x426917;super(),this[_0x5647ba(0x12a)]=_0x855d2a,this['_injector']=_0x5920b2,this[_0x5647ba(0x11a)]=_0x4dad43;const {menu:_0x1ca350,..._0x393378}=i[_0x5647ba(0x11f)]({},h,this[_0x5647ba(0x12a)]);_0x1ca350&&this[_0x5647ba(0x11a)][_0x5647ba(0x11d)](_0x5647ba(0x119),_0x1ca350,{'merge':!0x0}),this[_0x5647ba(0x11a)][_0x5647ba(0x11d)](v,_0x393378);}[_0x426917(0x134)](){const _0x37673d=_0x426917;[[u]][_0x37673d(0x138)](_0x9213fd=>this['_injector']['add'](_0x9213fd));}[_0x426917(0x111)](){const _0x384c0c=_0x426917;this[_0x384c0c(0x116)][_0x384c0c(0x139)](u);}},E(exports[_0x426917(0x106)],'pluginName',L),E(exports['UniverSheetsExchangeClientPlugin'],_0x426917(0x12b),i[_0x426917(0x110)][_0x426917(0x130)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x426917(0x12e)](g[_0x426917(0x127)]),d(0x1,i[_0x426917(0x114)](i[_0x426917(0x118)])),d(0x2,i['IConfigService'])],exports[_0x426917(0x106)]),exports[_0x426917(0x10d)]=p,exports[_0x426917(0x10f)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x157e(_0x312e61,_0x1bc907){_0x312e61=_0x312e61-0x185;const _0x1ff130=_0x1ff1();let _0x157ebf=_0x1ff130[_0x312e61];return _0x157ebf;}const _0x473593=_0x157e;(function(_0x578e79,_0x213e08){const _0x35bde1=_0x157e,_0x4c820f=_0x578e79();while(!![]){try{const _0x407648=-parseInt(_0x35bde1(0x1ac))/0x1+-parseInt(_0x35bde1(0x1a5))/0x2+parseInt(_0x35bde1(0x19d))/0x3+parseInt(_0x35bde1(0x1a3))/0x4+parseInt(_0x35bde1(0x19e))/0x5*(parseInt(_0x35bde1(0x197))/0x6)+-parseInt(_0x35bde1(0x19f))/0x7*(-parseInt(_0x35bde1(0x1a6))/0x8)+-parseInt(_0x35bde1(0x18c))/0x9;if(_0x407648===_0x213e08)break;else _0x4c820f['push'](_0x4c820f['shift']());}catch(_0x193e90){_0x4c820f['push'](_0x4c820f['shift']());}}}(_0x1ff1,0x1c73b));import{IExchangeOperateService as _0x56033d,UniverExchangeClientPlugin as _0x148b62}from'@univerjs-pro/exchange-client';import{CommandType as _0x4ff4e0,UniverInstanceType as _0x53c7d7,Disposable as _0xb2f6fb,ICommandService as _0x45cac0,DependentOn as _0x14340a,Inject as _0x243a27,Injector as _0x6e9224,IConfigService as _0x150bed,Plugin as _0x3a50f6,merge as _0x2edc90}from'@univerjs/core';import{MenuItemType as _0x47a9b2,getMenuHiddenObservable as _0x5d2fbc,RibbonStartGroup as _0x324c4e,IMenuManagerService as _0xad5d02}from'@univerjs/ui';import{WorkbookExportPermission as _0x18a620}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14f87b}from'@univerjs/sheets-ui';const p={'id':_0x473593(0x1ad),'type':_0x4ff4e0[_0x473593(0x1a4)],'handler':async _0x35562f=>{const _0x5b963a=_0x473593,_0x1d66d5=_0x35562f[_0x5b963a(0x189)](_0x56033d);return new URLSearchParams(location[_0x5b963a(0x194)])[_0x5b963a(0x189)]('unit')?_0x1d66d5[_0x5b963a(0x191)]():_0x1d66d5[_0x5b963a(0x185)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x4ff4e0[_0x473593(0x1a4)],'handler':async _0x32c7cc=>{const _0x1fe17a=_0x473593,_0x2dcf8c=_0x32c7cc[_0x1fe17a(0x189)](_0x56033d);return new URLSearchParams(location[_0x1fe17a(0x194)])['get'](_0x1fe17a(0x188))?_0x2dcf8c['exportXLSXByUnitId']():_0x2dcf8c['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x252916){const _0x11055f=_0x473593;return{'id':S,'type':_0x47a9b2['SUBITEMS'],'icon':_0x11055f(0x186),'tooltip':_0x11055f(0x195),'hidden$':_0x5d2fbc(_0x252916,_0x53c7d7[_0x11055f(0x192)]),'disabled$':_0x14f87b(_0x252916,{'workbookTypes':[_0x18a620]})};}function w(){const _0x4b405b=_0x473593;return{'id':p['id'],'type':_0x47a9b2[_0x4b405b(0x198)],'title':_0x4b405b(0x1aa),'icon':_0x4b405b(0x1a0)};}function D(){const _0x11ab03=_0x473593;return{'id':u['id'],'type':_0x47a9b2[_0x11ab03(0x198)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x324c4e[_0x473593(0x19a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x473593(0x19b)],A=(_0x4610a0,_0x41a8d4,_0x1a62f4,_0x403d66)=>{const _0x478193=_0x473593;for(var _0x142136=_0x403d66>0x1?void 0x0:_0x403d66?G(_0x41a8d4,_0x1a62f4):_0x41a8d4,_0x20a467=_0x4610a0[_0x478193(0x1ae)]-0x1,_0x5d741b;_0x20a467>=0x0;_0x20a467--)(_0x5d741b=_0x4610a0[_0x20a467])&&(_0x142136=_0x5d741b(_0x142136)||_0x142136);return _0x142136;},d=(_0x519a4a,_0x42fb7b)=>(_0x1aa94f,_0x76581c)=>_0x42fb7b(_0x1aa94f,_0x76581c,_0x519a4a);function _0x1ff1(){const _0x149807=['UNIVER_SHEET','forEach','search','exchange.file','defineProperty','6jcQcQq','BUTTON','registerCommand','OTHERS','getOwnPropertyDescriptor','_menuManagerService','191997MUnICC','164985KCnFMf','1516844sUnwQv','FolderIcon','_initMenus','onReady','526528eJezNI','OPERATION','116232utzIOM','8xDDXyR','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','disposeWithMe','exchange.upload','type','148292UJXGkJ','exchange-client.operation.import-xlsx','length','importXLSXToSnapshot','DirectExportIcon','_commandService','unit','get','_configService','setConfig','1101357EmuIIH','pluginName','_injector','add','_initCommands','importXLSXToUnitId'];_0x1ff1=function(){return _0x149807;};return _0x1ff1();}let c=class extends _0xb2f6fb{constructor(_0x49ad65,_0x3079fb){const _0x2630a3=_0x473593;super(),this[_0x2630a3(0x187)]=_0x49ad65,this[_0x2630a3(0x19c)]=_0x3079fb,this[_0x2630a3(0x190)](),this[_0x2630a3(0x1a1)]();}[_0x473593(0x190)](){const _0x98b38c=_0x473593;[p,u][_0x98b38c(0x193)](_0x3fca42=>{const _0x151c3e=_0x98b38c;this[_0x151c3e(0x1a9)](this[_0x151c3e(0x187)][_0x151c3e(0x199)](_0x3fca42));});}[_0x473593(0x1a1)](){const _0x37f1f9=_0x473593;this[_0x37f1f9(0x19c)]['mergeMenu'](F);}};c=A([d(0x0,_0x45cac0),d(0x1,_0xad5d02)],c);var j=Object[_0x473593(0x196)],B=Object[_0x473593(0x19b)],$=(_0xcea7b0,_0x38c256,_0x551a9a)=>_0x38c256 in _0xcea7b0?j(_0xcea7b0,_0x38c256,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x551a9a}):_0xcea7b0[_0x38c256]=_0x551a9a,V=(_0x1b951b,_0x5af1ac,_0x1f9fb5,_0x2f799a)=>{const _0xe7ca55=_0x473593;for(var _0xa2b6aa=_0x2f799a>0x1?void 0x0:_0x2f799a?B(_0x5af1ac,_0x1f9fb5):_0x5af1ac,_0x37f86d=_0x1b951b[_0xe7ca55(0x1ae)]-0x1,_0x215826;_0x37f86d>=0x0;_0x37f86d--)(_0x215826=_0x1b951b[_0x37f86d])&&(_0xa2b6aa=_0x215826(_0xa2b6aa)||_0xa2b6aa);return _0xa2b6aa;},_=(_0x1d4fc3,_0x18c520)=>(_0x4e0d67,_0x22252b)=>_0x18c520(_0x4e0d67,_0x22252b,_0x1d4fc3),I=(_0x2f34cd,_0x1fa420,_0x1644f0)=>$(_0x2f34cd,typeof _0x1fa420!='symbol'?_0x1fa420+'':_0x1fa420,_0x1644f0);const W=_0x473593(0x1a7);let s=class extends _0x3a50f6{constructor(_0x7d494a=l,_0x1962ec,_0x4d8046){const _0x532d1b=_0x473593;super(),this[_0x532d1b(0x1a8)]=_0x7d494a,this[_0x532d1b(0x18e)]=_0x1962ec,this[_0x532d1b(0x18a)]=_0x4d8046;const {menu:_0x4151eb,..._0x4a8bf3}=_0x2edc90({},l,this['_config']);_0x4151eb&&this[_0x532d1b(0x18a)][_0x532d1b(0x18b)]('menu',_0x4151eb,{'merge':!0x0}),this[_0x532d1b(0x18a)][_0x532d1b(0x18b)](H,_0x4a8bf3);}['onStarting'](){const _0x261685=_0x473593;[[c]][_0x261685(0x193)](_0x2564e0=>this[_0x261685(0x18e)][_0x261685(0x18f)](_0x2564e0));}[_0x473593(0x1a2)](){this['_injector']['get'](c);}};I(s,_0x473593(0x18d),W),I(s,_0x473593(0x1ab),_0x53c7d7[_0x473593(0x192)]),s=V([_0x14340a(_0x148b62),_(0x1,_0x243a27(_0x6e9224)),_(0x2,_0x150bed)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x157e(_0x312e61,_0x1bc907){_0x312e61=_0x312e61-0x185;const _0x1ff130=_0x1ff1();let _0x157ebf=_0x1ff130[_0x312e61];return _0x157ebf;}const _0x473593=_0x157e;(function(_0x578e79,_0x213e08){const _0x35bde1=_0x157e,_0x4c820f=_0x578e79();while(!![]){try{const _0x407648=-parseInt(_0x35bde1(0x1ac))/0x1+-parseInt(_0x35bde1(0x1a5))/0x2+parseInt(_0x35bde1(0x19d))/0x3+parseInt(_0x35bde1(0x1a3))/0x4+parseInt(_0x35bde1(0x19e))/0x5*(parseInt(_0x35bde1(0x197))/0x6)+-parseInt(_0x35bde1(0x19f))/0x7*(-parseInt(_0x35bde1(0x1a6))/0x8)+-parseInt(_0x35bde1(0x18c))/0x9;if(_0x407648===_0x213e08)break;else _0x4c820f['push'](_0x4c820f['shift']());}catch(_0x193e90){_0x4c820f['push'](_0x4c820f['shift']());}}}(_0x1ff1,0x1c73b));import{IExchangeOperateService as _0x56033d,UniverExchangeClientPlugin as _0x148b62}from'@univerjs-pro/exchange-client';import{CommandType as _0x4ff4e0,UniverInstanceType as _0x53c7d7,Disposable as _0xb2f6fb,ICommandService as _0x45cac0,DependentOn as _0x14340a,Inject as _0x243a27,Injector as _0x6e9224,IConfigService as _0x150bed,Plugin as _0x3a50f6,merge as _0x2edc90}from'@univerjs/core';import{MenuItemType as _0x47a9b2,getMenuHiddenObservable as _0x5d2fbc,RibbonStartGroup as _0x324c4e,IMenuManagerService as _0xad5d02}from'@univerjs/ui';import{WorkbookExportPermission as _0x18a620}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x14f87b}from'@univerjs/sheets-ui';const p={'id':_0x473593(0x1ad),'type':_0x4ff4e0[_0x473593(0x1a4)],'handler':async _0x35562f=>{const _0x5b963a=_0x473593,_0x1d66d5=_0x35562f[_0x5b963a(0x189)](_0x56033d);return new URLSearchParams(location[_0x5b963a(0x194)])[_0x5b963a(0x189)]('unit')?_0x1d66d5[_0x5b963a(0x191)]():_0x1d66d5[_0x5b963a(0x185)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x4ff4e0[_0x473593(0x1a4)],'handler':async _0x32c7cc=>{const _0x1fe17a=_0x473593,_0x2dcf8c=_0x32c7cc[_0x1fe17a(0x189)](_0x56033d);return new URLSearchParams(location[_0x1fe17a(0x194)])['get'](_0x1fe17a(0x188))?_0x2dcf8c['exportXLSXByUnitId']():_0x2dcf8c['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x252916){const _0x11055f=_0x473593;return{'id':S,'type':_0x47a9b2['SUBITEMS'],'icon':_0x11055f(0x186),'tooltip':_0x11055f(0x195),'hidden$':_0x5d2fbc(_0x252916,_0x53c7d7[_0x11055f(0x192)]),'disabled$':_0x14f87b(_0x252916,{'workbookTypes':[_0x18a620]})};}function w(){const _0x4b405b=_0x473593;return{'id':p['id'],'type':_0x47a9b2[_0x4b405b(0x198)],'title':_0x4b405b(0x1aa),'icon':_0x4b405b(0x1a0)};}function D(){const _0x11ab03=_0x473593;return{'id':u['id'],'type':_0x47a9b2[_0x11ab03(0x198)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x324c4e[_0x473593(0x19a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x473593(0x19b)],A=(_0x4610a0,_0x41a8d4,_0x1a62f4,_0x403d66)=>{const _0x478193=_0x473593;for(var _0x142136=_0x403d66>0x1?void 0x0:_0x403d66?G(_0x41a8d4,_0x1a62f4):_0x41a8d4,_0x20a467=_0x4610a0[_0x478193(0x1ae)]-0x1,_0x5d741b;_0x20a467>=0x0;_0x20a467--)(_0x5d741b=_0x4610a0[_0x20a467])&&(_0x142136=_0x5d741b(_0x142136)||_0x142136);return _0x142136;},d=(_0x519a4a,_0x42fb7b)=>(_0x1aa94f,_0x76581c)=>_0x42fb7b(_0x1aa94f,_0x76581c,_0x519a4a);function _0x1ff1(){const _0x149807=['UNIVER_SHEET','forEach','search','exchange.file','defineProperty','6jcQcQq','BUTTON','registerCommand','OTHERS','getOwnPropertyDescriptor','_menuManagerService','191997MUnICC','164985KCnFMf','1516844sUnwQv','FolderIcon','_initMenus','onReady','526528eJezNI','OPERATION','116232utzIOM','8xDDXyR','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','disposeWithMe','exchange.upload','type','148292UJXGkJ','exchange-client.operation.import-xlsx','length','importXLSXToSnapshot','DirectExportIcon','_commandService','unit','get','_configService','setConfig','1101357EmuIIH','pluginName','_injector','add','_initCommands','importXLSXToUnitId'];_0x1ff1=function(){return _0x149807;};return _0x1ff1();}let c=class extends _0xb2f6fb{constructor(_0x49ad65,_0x3079fb){const _0x2630a3=_0x473593;super(),this[_0x2630a3(0x187)]=_0x49ad65,this[_0x2630a3(0x19c)]=_0x3079fb,this[_0x2630a3(0x190)](),this[_0x2630a3(0x1a1)]();}[_0x473593(0x190)](){const _0x98b38c=_0x473593;[p,u][_0x98b38c(0x193)](_0x3fca42=>{const _0x151c3e=_0x98b38c;this[_0x151c3e(0x1a9)](this[_0x151c3e(0x187)][_0x151c3e(0x199)](_0x3fca42));});}[_0x473593(0x1a1)](){const _0x37f1f9=_0x473593;this[_0x37f1f9(0x19c)]['mergeMenu'](F);}};c=A([d(0x0,_0x45cac0),d(0x1,_0xad5d02)],c);var j=Object[_0x473593(0x196)],B=Object[_0x473593(0x19b)],$=(_0xcea7b0,_0x38c256,_0x551a9a)=>_0x38c256 in _0xcea7b0?j(_0xcea7b0,_0x38c256,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x551a9a}):_0xcea7b0[_0x38c256]=_0x551a9a,V=(_0x1b951b,_0x5af1ac,_0x1f9fb5,_0x2f799a)=>{const _0xe7ca55=_0x473593;for(var _0xa2b6aa=_0x2f799a>0x1?void 0x0:_0x2f799a?B(_0x5af1ac,_0x1f9fb5):_0x5af1ac,_0x37f86d=_0x1b951b[_0xe7ca55(0x1ae)]-0x1,_0x215826;_0x37f86d>=0x0;_0x37f86d--)(_0x215826=_0x1b951b[_0x37f86d])&&(_0xa2b6aa=_0x215826(_0xa2b6aa)||_0xa2b6aa);return _0xa2b6aa;},_=(_0x1d4fc3,_0x18c520)=>(_0x4e0d67,_0x22252b)=>_0x18c520(_0x4e0d67,_0x22252b,_0x1d4fc3),I=(_0x2f34cd,_0x1fa420,_0x1644f0)=>$(_0x2f34cd,typeof _0x1fa420!='symbol'?_0x1fa420+'':_0x1fa420,_0x1644f0);const W=_0x473593(0x1a7);let s=class extends _0x3a50f6{constructor(_0x7d494a=l,_0x1962ec,_0x4d8046){const _0x532d1b=_0x473593;super(),this[_0x532d1b(0x1a8)]=_0x7d494a,this[_0x532d1b(0x18e)]=_0x1962ec,this[_0x532d1b(0x18a)]=_0x4d8046;const {menu:_0x4151eb,..._0x4a8bf3}=_0x2edc90({},l,this['_config']);_0x4151eb&&this[_0x532d1b(0x18a)][_0x532d1b(0x18b)]('menu',_0x4151eb,{'merge':!0x0}),this[_0x532d1b(0x18a)][_0x532d1b(0x18b)](H,_0x4a8bf3);}['onStarting'](){const _0x261685=_0x473593;[[c]][_0x261685(0x193)](_0x2564e0=>this[_0x261685(0x18e)][_0x261685(0x18f)](_0x2564e0));}[_0x473593(0x1a2)](){this['_injector']['get'](c);}};I(s,_0x473593(0x18d),W),I(s,_0x473593(0x1ab),_0x53c7d7[_0x473593(0x192)]),s=V([_0x14340a(_0x148b62),_(0x1,_0x243a27(_0x6e9224)),_(0x2,_0x150bed)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1f9f(_0x347f60,_0x7664d9){_0x347f60=_0x347f60-0x12b;const _0x156c99=_0x156c();let _0x1f9fa3=_0x156c99[_0x347f60];return _0x1f9fa3;}(function(_0x1b3cfd,_0x2e511c){const _0x12f689=_0x1f9f,_0x58e1d5=_0x1b3cfd();while(!![]){try{const _0x10dfa2=parseInt(_0x12f689(0x164))/0x1+parseInt(_0x12f689(0x138))/0x2*(parseInt(_0x12f689(0x141))/0x3)+parseInt(_0x12f689(0x14e))/0x4+-parseInt(_0x12f689(0x135))/0x5*(parseInt(_0x12f689(0x13a))/0x6)+parseInt(_0x12f689(0x13b))/0x7+-parseInt(_0x12f689(0x140))/0x8+-parseInt(_0x12f689(0x15b))/0x9;if(_0x10dfa2===_0x2e511c)break;else _0x58e1d5['push'](_0x58e1d5['shift']());}catch(_0x33fd2d){_0x58e1d5['push'](_0x58e1d5['shift']());}}}(_0x156c,0x28a35),function(_0x37d794,_0x19bf22){const _0x5a073f=_0x1f9f;typeof exports==_0x5a073f(0x14c)&&typeof module<'u'?_0x19bf22(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5a073f(0x146)&&define[_0x5a073f(0x133)]?define([_0x5a073f(0x137),_0x5a073f(0x14f),_0x5a073f(0x145),_0x5a073f(0x136),'@univerjs/sheets',_0x5a073f(0x169)],_0x19bf22):(_0x37d794=typeof globalThis<'u'?globalThis:_0x37d794||self,_0x19bf22(_0x37d794['UniverProSheetsExchangeClient']={},_0x37d794[_0x5a073f(0x152)],_0x37d794[_0x5a073f(0x15e)],_0x37d794[_0x5a073f(0x16e)],_0x37d794[_0x5a073f(0x151)],_0x37d794['UniverSheetsUi']));}(this,function(_0x5e3435,_0x1767e8,_0x28e901,_0x50608b,_0x5525c5,_0x4dceca){'use strict';const _0x41f98b=_0x1f9f;const _0x32d15c={'id':_0x41f98b(0x16f),'type':_0x28e901['CommandType']['OPERATION'],'handler':async _0x49ebfb=>{const _0x452e97=_0x41f98b,_0x88002c=_0x49ebfb[_0x452e97(0x165)](_0x1767e8[_0x452e97(0x12c)]);return new URLSearchParams(location['search'])['get'](_0x452e97(0x130))?_0x88002c[_0x452e97(0x16d)]():_0x88002c['importXLSXToSnapshot'](),!0x0;}},_0x478498={'id':_0x41f98b(0x14d),'type':_0x28e901[_0x41f98b(0x155)]['OPERATION'],'handler':async _0x4662d1=>{const _0x1ec40e=_0x41f98b,_0x38f68d=_0x4662d1[_0x1ec40e(0x165)](_0x1767e8['IExchangeOperateService']);return new URLSearchParams(location[_0x1ec40e(0x150)])[_0x1ec40e(0x165)]('unit')?_0x38f68d[_0x1ec40e(0x143)]():_0x38f68d[_0x1ec40e(0x12f)](),!0x0;}},_0x41a3b0=_0x41f98b(0x154),_0x412589={},_0x1aeab0='sheets-exchange-client.operation.exchange';function _0x3c3e80(_0x3d56e8){const _0x3e7a8b=_0x41f98b;return{'id':_0x1aeab0,'type':_0x50608b[_0x3e7a8b(0x158)][_0x3e7a8b(0x12b)],'icon':_0x3e7a8b(0x132),'tooltip':'exchange.file','hidden$':_0x50608b['getMenuHiddenObservable'](_0x3d56e8,_0x28e901['UniverInstanceType'][_0x3e7a8b(0x12e)]),'disabled$':_0x4dceca[_0x3e7a8b(0x13d)](_0x3d56e8,{'workbookTypes':[_0x5525c5['WorkbookExportPermission']]})};}function _0xe455d(){const _0x24604e=_0x41f98b;return{'id':_0x32d15c['id'],'type':_0x50608b[_0x24604e(0x158)][_0x24604e(0x144)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x8dee5c(){const _0x286069=_0x41f98b;return{'id':_0x478498['id'],'type':_0x50608b['MenuItemType'][_0x286069(0x144)],'title':_0x286069(0x167),'icon':_0x286069(0x147)};}const _0x278475={[_0x50608b[_0x41f98b(0x13f)][_0x41f98b(0x12d)]]:{[_0x1aeab0]:{'order':0.3,'menuItemFactory':_0x3c3e80,[_0x32d15c['id']]:{'order':0x0,'menuItemFactory':_0xe455d},[_0x478498['id']]:{'order':0x1,'menuItemFactory':_0x8dee5c}}}};var _0x4c6771=Object[_0x41f98b(0x16c)],_0x108dad=(_0x2332dc,_0x2fd984,_0x546cb7,_0x4fb280)=>{const _0x5b3f5a=_0x41f98b;for(var _0x2c18e3=_0x4fb280>0x1?void 0x0:_0x4fb280?_0x4c6771(_0x2fd984,_0x546cb7):_0x2fd984,_0x260fd2=_0x2332dc[_0x5b3f5a(0x171)]-0x1,_0x54517b;_0x260fd2>=0x0;_0x260fd2--)(_0x54517b=_0x2332dc[_0x260fd2])&&(_0x2c18e3=_0x54517b(_0x2c18e3)||_0x2c18e3);return _0x2c18e3;},_0x3259ce=(_0x3c3299,_0x118745)=>(_0x2bbd4d,_0xfab104)=>_0x118745(_0x2bbd4d,_0xfab104,_0x3c3299);let _0x3949d1=class extends _0x28e901[_0x41f98b(0x163)]{constructor(_0x541890,_0x5c6a8e){const _0xfcc1d4=_0x41f98b;super(),this[_0xfcc1d4(0x15f)]=_0x541890,this[_0xfcc1d4(0x15a)]=_0x5c6a8e,this[_0xfcc1d4(0x15c)](),this['_initMenus']();}['_initCommands'](){const _0x5d352b=_0x41f98b;[_0x32d15c,_0x478498][_0x5d352b(0x16a)](_0x3f20fc=>{const _0xd53722=_0x5d352b;this[_0xd53722(0x162)](this[_0xd53722(0x15f)]['registerCommand'](_0x3f20fc));});}[_0x41f98b(0x134)](){const _0x5ab224=_0x41f98b;this['_menuManagerService'][_0x5ab224(0x148)](_0x278475);}};_0x3949d1=_0x108dad([_0x3259ce(0x0,_0x28e901['ICommandService']),_0x3259ce(0x1,_0x50608b[_0x41f98b(0x149)])],_0x3949d1);var _0x23775a=Object[_0x41f98b(0x166)],_0xc36ee6=Object[_0x41f98b(0x16c)],_0x14bcd8=(_0x2622cc,_0x407273,_0x41e77c)=>_0x407273 in _0x2622cc?_0x23775a(_0x2622cc,_0x407273,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41e77c}):_0x2622cc[_0x407273]=_0x41e77c,_0x338fe1=(_0x131293,_0x18a775,_0x4676fb,_0x1d972d)=>{const _0x597ab1=_0x41f98b;for(var _0x5c3da2=_0x1d972d>0x1?void 0x0:_0x1d972d?_0xc36ee6(_0x18a775,_0x4676fb):_0x18a775,_0xfcadf0=_0x131293[_0x597ab1(0x171)]-0x1,_0x3c54cd;_0xfcadf0>=0x0;_0xfcadf0--)(_0x3c54cd=_0x131293[_0xfcadf0])&&(_0x5c3da2=_0x3c54cd(_0x5c3da2)||_0x5c3da2);return _0x5c3da2;},_0x53923d=(_0x10e653,_0x5d13ba)=>(_0x1828a3,_0x455dab)=>_0x5d13ba(_0x1828a3,_0x455dab,_0x10e653),_0x35c6ec=(_0x3eaed1,_0x5ea2b5,_0x5184a0)=>_0x14bcd8(_0x3eaed1,typeof _0x5ea2b5!='symbol'?_0x5ea2b5+'':_0x5ea2b5,_0x5184a0);const _0x4ce0f0=_0x41f98b(0x139);_0x5e3435[_0x41f98b(0x13c)]=class extends _0x28e901['Plugin']{constructor(_0x3884c9=_0x412589,_0x2d07d7,_0x5a0c0b){const _0x49760e=_0x41f98b;super(),this[_0x49760e(0x14b)]=_0x3884c9,this['_injector']=_0x2d07d7,this[_0x49760e(0x13e)]=_0x5a0c0b;const {menu:_0x49993c,..._0x30d4e9}=_0x28e901['merge']({},_0x412589,this['_config']);_0x49993c&&this[_0x49760e(0x13e)][_0x49760e(0x161)](_0x49760e(0x14a),_0x49993c,{'merge':!0x0}),this[_0x49760e(0x13e)]['setConfig'](_0x41a3b0,_0x30d4e9);}['onStarting'](){const _0x21fb0e=_0x41f98b;[[_0x3949d1]][_0x21fb0e(0x16a)](_0x293a43=>this[_0x21fb0e(0x157)][_0x21fb0e(0x159)](_0x293a43));}['onReady'](){const _0x9c5e1d=_0x41f98b;this['_injector'][_0x9c5e1d(0x165)](_0x3949d1);}},_0x35c6ec(_0x5e3435[_0x41f98b(0x13c)],_0x41f98b(0x131),_0x4ce0f0),_0x35c6ec(_0x5e3435[_0x41f98b(0x13c)],'type',_0x28e901[_0x41f98b(0x168)][_0x41f98b(0x12e)]),_0x5e3435[_0x41f98b(0x13c)]=_0x338fe1([_0x28e901[_0x41f98b(0x16b)](_0x1767e8['UniverExchangeClientPlugin']),_0x53923d(0x1,_0x28e901[_0x41f98b(0x160)](_0x28e901[_0x41f98b(0x153)])),_0x53923d(0x2,_0x28e901[_0x41f98b(0x156)])],_0x5e3435[_0x41f98b(0x13c)]),_0x5e3435[_0x41f98b(0x170)]=_0x478498,_0x5e3435['ImportXLSXOperation']=_0x32d15c,Object[_0x41f98b(0x166)](_0x5e3435,Symbol[_0x41f98b(0x142)],{'value':_0x41f98b(0x15d)});}));function _0x156c(){const _0xc56ebd=['add','_menuManagerService','296451JNkVVp','_initCommands','Module','UniverCore','_commandService','Inject','setConfig','disposeWithMe','Disposable','47045bKCyWq','get','defineProperty','exchange.download','UniverInstanceType','@univerjs/sheets-ui','forEach','DependentOn','getOwnPropertyDescriptor','importXLSXToUnitId','UniverUi','exchange-client.operation.import-xlsx','ExportXLSXOperation','length','SUBITEMS','IExchangeOperateService','OTHERS','UNIVER_SHEET','exportXLSXBySnapshot','unit','pluginName','DirectExportIcon','amd','_initMenus','15VsoijF','@univerjs/ui','exports','122242exTcCU','SHEET_EXCHANGE_CLIENT_PLUGIN','19686ZNltTu','1040935dBpoxd','UniverSheetsExchangeClientPlugin','getCurrentRangeDisable$','_configService','RibbonStartGroup','2432480Oxauqk','12RsGpVG','toStringTag','exportXLSXByUnitId','BUTTON','@univerjs/core','function','ExportIcon','mergeMenu','IMenuManagerService','menu','_config','object','exchange-client.operation.export-xlsx','292244CAMQlY','@univerjs-pro/exchange-client','search','UniverSheets','UniverProExchangeClient','Injector','sheets-exchange-client.config','CommandType','IConfigService','_injector','MenuItemType'];_0x156c=function(){return _0xc56ebd;};return _0x156c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.12.4-experimental.20251210-
|
|
3
|
+
"version": "0.12.4-experimental.20251210-29c379a",
|
|
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/
|
|
46
|
-
"@univerjs/sheets
|
|
47
|
-
"@univerjs/ui": "0.12.4-experimental.20251210-
|
|
48
|
-
"@univerjs
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.12.4-experimental.20251210-29c379a",
|
|
46
|
+
"@univerjs/sheets": "0.12.4-experimental.20251210-29c379a",
|
|
47
|
+
"@univerjs/sheets-ui": "0.12.4-experimental.20251210-29c379a",
|
|
48
|
+
"@univerjs/ui": "0.12.4-experimental.20251210-29c379a",
|
|
49
|
+
"@univerjs/core": "0.12.4-experimental.20251210-29c379a"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|