@univerjs-pro/sheets-exchange-client 0.10.5 → 0.10.6-experimental.20250903-f52e3bf
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';const _0x2fff99=_0x3276;(function(_0x35e451,_0x42e9b7){const _0x24a325=_0x3276,_0x4bbb2b=_0x35e451();while(!![]){try{const _0x5aca43=-parseInt(_0x24a325(0x1d7))/0x1*(-parseInt(_0x24a325(0x1e4))/0x2)+-parseInt(_0x24a325(0x1b9))/0x3+parseInt(_0x24a325(0x1d9))/0x4+parseInt(_0x24a325(0x1e9))/0x5+parseInt(_0x24a325(0x1cc))/0x6+-parseInt(_0x24a325(0x1c8))/0x7*(-parseInt(_0x24a325(0x1bf))/0x8)+-parseInt(_0x24a325(0x1c7))/0x9*(parseInt(_0x24a325(0x1b5))/0xa);if(_0x5aca43===_0x42e9b7)break;else _0x4bbb2b['push'](_0x4bbb2b['shift']());}catch(_0x46b6fe){_0x4bbb2b['push'](_0x4bbb2b['shift']());}}}(_0x2187,0x76ea2));Object[_0x2fff99(0x1b6)](exports,Symbol[_0x2fff99(0x1c9)],{'value':_0x2fff99(0x1c2)});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['CommandType'][_0x2fff99(0x1d0)],'handler':async _0x20ab83=>{const _0x1b56cd=_0x2fff99,_0x563481=_0x20ab83[_0x1b56cd(0x1d3)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x1b56cd(0x1d3)](_0x1b56cd(0x1b1))?_0x563481[_0x1b56cd(0x1cb)]():_0x563481[_0x1b56cd(0x1df)](),!0x0;}},p={'id':_0x2fff99(0x1ee),'type':i[_0x2fff99(0x1e2)][_0x2fff99(0x1d0)],'handler':async _0x257656=>{const _0x2a0bf2=_0x2fff99,_0x10141f=_0x257656['get'](g[_0x2a0bf2(0x1ea)]);return new URLSearchParams(location['search'])[_0x2a0bf2(0x1d3)](_0x2a0bf2(0x1b1))?_0x10141f[_0x2a0bf2(0x1b4)]():_0x10141f['exportXLSXBySnapshot'](),!0x0;}},v=_0x2fff99(0x1e7),h={},S=_0x2fff99(0x1ed);function x(_0x2bf66b){const _0x23316b=_0x2fff99;return{'id':S,'type':c[_0x23316b(0x1c5)]['SUBITEMS'],'icon':_0x23316b(0x1d2),'tooltip':_0x23316b(0x1dc),'hidden$':c[_0x23316b(0x1e5)](_0x2bf66b,i[_0x23316b(0x1ca)]['UNIVER_SHEET']),'disabled$':I[_0x23316b(0x1c0)](_0x2bf66b,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x534c9a=_0x2fff99;return{'id':l['id'],'type':c[_0x534c9a(0x1c5)][_0x534c9a(0x1de)],'title':_0x534c9a(0x1d4),'icon':_0x534c9a(0x1bd)};}function C(){const _0x379d98=_0x2fff99;return{'id':p['id'],'type':c[_0x379d98(0x1c5)][_0x379d98(0x1de)],'title':'exchange.download','icon':'ExportIcon'};}function _0x3276(_0xc6fbe,_0x3824d7){const _0x218786=_0x2187();return _0x3276=function(_0x327679,_0x4295a9){_0x327679=_0x327679-0x1b0;let _0x1c2c07=_0x218786[_0x327679];return _0x1c2c07;},_0x3276(_0xc6fbe,_0x3824d7);}const f={[c[_0x2fff99(0x1dd)][_0x2fff99(0x1bb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x2fff99(0x1bc)],y=(_0x252798,_0x18f36a,_0x117507,_0x2ee303)=>{const _0x21b2aa=_0x2fff99;for(var _0x3532c5=_0x2ee303>0x1?void 0x0:_0x2ee303?T(_0x18f36a,_0x117507):_0x18f36a,_0x31be3e=_0x252798[_0x21b2aa(0x1d8)]-0x1,_0x22a72d;_0x31be3e>=0x0;_0x31be3e--)(_0x22a72d=_0x252798[_0x31be3e])&&(_0x3532c5=_0x22a72d(_0x3532c5)||_0x3532c5);return _0x3532c5;},m=(_0x16e666,_0x523cb0)=>(_0x529d6d,_0x56d99b)=>_0x523cb0(_0x529d6d,_0x56d99b,_0x16e666);let u=class extends i['Disposable']{constructor(_0x1576a3,_0x335975){const _0xc3d6f9=_0x2fff99;super(),this[_0xc3d6f9(0x1e1)]=_0x1576a3,this['_menuManagerService']=_0x335975,this[_0xc3d6f9(0x1cd)](),this[_0xc3d6f9(0x1b2)]();}[_0x2fff99(0x1cd)](){const _0x5c6413=_0x2fff99;[l,p][_0x5c6413(0x1d5)](_0x57561d=>{const _0xca8def=_0x5c6413;this[_0xca8def(0x1b3)](this[_0xca8def(0x1e1)][_0xca8def(0x1c3)](_0x57561d));});}[_0x2fff99(0x1b2)](){const _0x41c6d3=_0x2fff99;this[_0x41c6d3(0x1ce)][_0x41c6d3(0x1e6)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x2fff99(0x1c1)])],u);var O=Object[_0x2fff99(0x1b6)],U=Object[_0x2fff99(0x1bc)],X=(_0x2a8001,_0x5817d5,_0x51d061)=>_0x5817d5 in _0x2a8001?O(_0x2a8001,_0x5817d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51d061}):_0x2a8001[_0x5817d5]=_0x51d061,N=(_0x454c61,_0x3600da,_0x1168dd,_0x22db83)=>{for(var _0x3359d7=_0x22db83>0x1?void 0x0:_0x22db83?U(_0x3600da,_0x1168dd):_0x3600da,_0x3899b6=_0x454c61['length']-0x1,_0x504e52;_0x3899b6>=0x0;_0x3899b6--)(_0x504e52=_0x454c61[_0x3899b6])&&(_0x3359d7=_0x504e52(_0x3359d7)||_0x3359d7);return _0x3359d7;},d=(_0x349440,_0x1cca50)=>(_0x17d5d3,_0x5c8b2b)=>_0x1cca50(_0x17d5d3,_0x5c8b2b,_0x349440),E=(_0x4a9175,_0x52a639,_0x1b38f7)=>X(_0x4a9175,typeof _0x52a639!=_0x2fff99(0x1e8)?_0x52a639+'':_0x52a639,_0x1b38f7);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x2187(){const _0x194962=['IExchangeOperateService','setConfig','IConfigService','sheets-exchange-client.operation.exchange','exchange-client.operation.export-xlsx','pluginName','unit','_initMenus','disposeWithMe','exportXLSXByUnitId','10tFAAzN','defineProperty','DependentOn','menu','2428905WGNhNz','type','OTHERS','getOwnPropertyDescriptor','FolderIcon','_configService','16VqtFyS','getCurrentRangeDisable$','IMenuManagerService','Module','registerCommand','ExportXLSXOperation','MenuItemType','merge','8742474ixGVZB','932939uEYoWB','toStringTag','UniverInstanceType','importXLSXToUnitId','1151154JDuUWW','_initCommands','_menuManagerService','UniverSheetsExchangeClientPlugin','OPERATION','add','DirectExportIcon','get','exchange.upload','forEach','_config','2elIPPj','length','3300972BYTcWa','Plugin','onReady','exchange.file','RibbonStartGroup','BUTTON','importXLSXToSnapshot','ImportXLSXOperation','_commandService','CommandType','_injector','668942uMzJVv','getMenuHiddenObservable','mergeMenu','sheets-exchange-client.config','symbol','1577485WPpZgm'];_0x2187=function(){return _0x194962;};return _0x2187();}exports[_0x2fff99(0x1cf)]=class extends i[_0x2fff99(0x1da)]{constructor(_0x292778=h,_0x5c2b06,_0x14d35e){const _0x495903=_0x2fff99;super(),this[_0x495903(0x1d6)]=_0x292778,this['_injector']=_0x5c2b06,this[_0x495903(0x1be)]=_0x14d35e;const {menu:_0x49f564,..._0x169358}=i[_0x495903(0x1c6)]({},h,this['_config']);_0x49f564&&this[_0x495903(0x1be)][_0x495903(0x1eb)](_0x495903(0x1b8),_0x49f564,{'merge':!0x0}),this[_0x495903(0x1be)]['setConfig'](v,_0x169358);}['onStarting'](){const _0x33b6c5=_0x2fff99;[[u]][_0x33b6c5(0x1d5)](_0xe5285e=>this[_0x33b6c5(0x1e3)][_0x33b6c5(0x1d1)](_0xe5285e));}[_0x2fff99(0x1db)](){const _0x5e16a9=_0x2fff99;this[_0x5e16a9(0x1e3)][_0x5e16a9(0x1d3)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x2fff99(0x1b0),L),E(exports[_0x2fff99(0x1cf)],_0x2fff99(0x1ba),i[_0x2fff99(0x1ca)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x2fff99(0x1b7)](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i['Injector'])),d(0x2,i[_0x2fff99(0x1ec)])],exports[_0x2fff99(0x1cf)]),exports[_0x2fff99(0x1c4)]=p,exports[_0x2fff99(0x1e0)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1c3f(_0x3e83ee,_0x3143ba){const _0x113bf1=_0x113b();return _0x1c3f=function(_0x1c3f56,_0x2a01b1){_0x1c3f56=_0x1c3f56-0x19c;let _0x149ca5=_0x113bf1[_0x1c3f56];return _0x149ca5;},_0x1c3f(_0x3e83ee,_0x3143ba);}const _0x208bef=_0x1c3f;(function(_0x46442e,_0x5b4544){const _0x1f0089=_0x1c3f,_0x38c901=_0x46442e();while(!![]){try{const _0x5ce2d8=parseInt(_0x1f0089(0x19c))/0x1*(parseInt(_0x1f0089(0x1a6))/0x2)+-parseInt(_0x1f0089(0x1bb))/0x3+parseInt(_0x1f0089(0x1b7))/0x4+-parseInt(_0x1f0089(0x1a9))/0x5*(parseInt(_0x1f0089(0x1b4))/0x6)+-parseInt(_0x1f0089(0x1bd))/0x7*(-parseInt(_0x1f0089(0x1ad))/0x8)+-parseInt(_0x1f0089(0x1c2))/0x9*(-parseInt(_0x1f0089(0x19e))/0xa)+-parseInt(_0x1f0089(0x1c0))/0xb*(parseInt(_0x1f0089(0x1bf))/0xc);if(_0x5ce2d8===_0x5b4544)break;else _0x38c901['push'](_0x38c901['shift']());}catch(_0x26bbb0){_0x38c901['push'](_0x38c901['shift']());}}}(_0x113b,0x2d2ed));import{IExchangeOperateService as _0x23baa5,UniverExchangeClientPlugin as _0x3a3e90}from'@univerjs-pro/exchange-client';import{CommandType as _0x190ab8,UniverInstanceType as _0x592bd3,Disposable as _0x5e7265,ICommandService as _0x35a94e,DependentOn as _0x2d6ef5,Inject as _0x37723b,Injector as _0xe2c0ff,IConfigService as _0x1c5293,Plugin as _0x1b69fc,merge as _0x3a7481}from'@univerjs/core';import{MenuItemType as _0x9a0d6f,getMenuHiddenObservable as _0xf39941,RibbonStartGroup as _0x73c08d,IMenuManagerService as _0x2d023d}from'@univerjs/ui';import{WorkbookExportPermission as _0xe37f19}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2a1439}from'@univerjs/sheets-ui';const p={'id':_0x208bef(0x1c6),'type':_0x190ab8[_0x208bef(0x1cb)],'handler':async _0x58a0af=>{const _0x19c006=_0x208bef,_0x38c791=_0x58a0af[_0x19c006(0x1a0)](_0x23baa5);return new URLSearchParams(location['search'])[_0x19c006(0x1a0)](_0x19c006(0x1cc))?_0x38c791[_0x19c006(0x1a5)]():_0x38c791[_0x19c006(0x1c4)](),!0x0;}},u={'id':_0x208bef(0x1be),'type':_0x190ab8['OPERATION'],'handler':async _0x22202c=>{const _0x363826=_0x208bef,_0x10dacb=_0x22202c[_0x363826(0x1a0)](_0x23baa5);return new URLSearchParams(location[_0x363826(0x1b3)])[_0x363826(0x1a0)](_0x363826(0x1cc))?_0x10dacb[_0x363826(0x1a8)]():_0x10dacb[_0x363826(0x1b6)](),!0x0;}},H=_0x208bef(0x19f),l={},S='sheets-exchange-client.operation.exchange';function R(_0x3e0aa1){const _0x218a98=_0x208bef;return{'id':S,'type':_0x9a0d6f['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x218a98(0x1b0),'hidden$':_0xf39941(_0x3e0aa1,_0x592bd3[_0x218a98(0x1c3)]),'disabled$':_0x2a1439(_0x3e0aa1,{'workbookTypes':[_0xe37f19]})};}function w(){const _0x2efa8f=_0x208bef;return{'id':p['id'],'type':_0x9a0d6f[_0x2efa8f(0x1b1)],'title':'exchange.upload','icon':_0x2efa8f(0x1c8)};}function D(){const _0x1f4e4f=_0x208bef;return{'id':u['id'],'type':_0x9a0d6f[_0x1f4e4f(0x1b1)],'title':'exchange.download','icon':_0x1f4e4f(0x1c5)};}const F={[_0x73c08d[_0x208bef(0x1a3)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x208bef(0x1b2)],A=(_0x1d3c9e,_0x3f3bdd,_0x456d1f,_0x5552b0)=>{const _0x12f715=_0x208bef;for(var _0x4b72b0=_0x5552b0>0x1?void 0x0:_0x5552b0?G(_0x3f3bdd,_0x456d1f):_0x3f3bdd,_0x1e0366=_0x1d3c9e[_0x12f715(0x1c9)]-0x1,_0x24d503;_0x1e0366>=0x0;_0x1e0366--)(_0x24d503=_0x1d3c9e[_0x1e0366])&&(_0x4b72b0=_0x24d503(_0x4b72b0)||_0x4b72b0);return _0x4b72b0;},d=(_0x4bb419,_0x2a7e1d)=>(_0x3f3500,_0x11410f)=>_0x2a7e1d(_0x3f3500,_0x11410f,_0x4bb419);let c=class extends _0x5e7265{constructor(_0x46269d,_0x4df925){const _0x3a2081=_0x208bef;super(),this[_0x3a2081(0x1bc)]=_0x46269d,this[_0x3a2081(0x1a7)]=_0x4df925,this[_0x3a2081(0x1af)](),this[_0x3a2081(0x1ca)]();}['_initCommands'](){[p,u]['forEach'](_0x253627=>{const _0x46afed=_0x1c3f;this[_0x46afed(0x1c1)](this[_0x46afed(0x1bc)]['registerCommand'](_0x253627));});}[_0x208bef(0x1ca)](){const _0x56c1fa=_0x208bef;this['_menuManagerService'][_0x56c1fa(0x1aa)](F);}};function _0x113b(){const _0x5cd294=['OPERATION','unit','add','11LtONnY','_config','1924970HxMGxq','sheets-exchange-client.config','get','defineProperty','menu','OTHERS','setConfig','importXLSXToUnitId','52006dMCNJK','_menuManagerService','exportXLSXByUnitId','68470VwwyKT','mergeMenu','symbol','_configService','8UoIVGj','_injector','_initCommands','exchange.file','BUTTON','getOwnPropertyDescriptor','search','78sqRVYQ','pluginName','exportXLSXBySnapshot','676196pQhizO','forEach','type','SHEET_EXCHANGE_CLIENT_PLUGIN','672867syMnml','_commandService','1517789fEFfgt','exchange-client.operation.export-xlsx','36fTcSKL','1015762FezHNv','disposeWithMe','9Xjzkmp','UNIVER_SHEET','importXLSXToSnapshot','ExportIcon','exchange-client.operation.import-xlsx','onStarting','FolderIcon','length','_initMenus'];_0x113b=function(){return _0x5cd294;};return _0x113b();}c=A([d(0x0,_0x35a94e),d(0x1,_0x2d023d)],c);var j=Object[_0x208bef(0x1a1)],B=Object[_0x208bef(0x1b2)],$=(_0x29177f,_0x1cdca2,_0x3e3892)=>_0x1cdca2 in _0x29177f?j(_0x29177f,_0x1cdca2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e3892}):_0x29177f[_0x1cdca2]=_0x3e3892,V=(_0xbff38b,_0x32eda4,_0x4d82af,_0x13b43a)=>{const _0x1384e2=_0x208bef;for(var _0x2b60a8=_0x13b43a>0x1?void 0x0:_0x13b43a?B(_0x32eda4,_0x4d82af):_0x32eda4,_0x3b5d34=_0xbff38b[_0x1384e2(0x1c9)]-0x1,_0x593f97;_0x3b5d34>=0x0;_0x3b5d34--)(_0x593f97=_0xbff38b[_0x3b5d34])&&(_0x2b60a8=_0x593f97(_0x2b60a8)||_0x2b60a8);return _0x2b60a8;},_=(_0x2f69ea,_0x251608)=>(_0x6e2205,_0xc8499b)=>_0x251608(_0x6e2205,_0xc8499b,_0x2f69ea),I=(_0x151398,_0x1d205f,_0x8552b3)=>$(_0x151398,typeof _0x1d205f!=_0x208bef(0x1ab)?_0x1d205f+'':_0x1d205f,_0x8552b3);const W=_0x208bef(0x1ba);let s=class extends _0x1b69fc{constructor(_0x41e50c=l,_0x5a5d03,_0x1f4738){const _0x3dc655=_0x208bef;super(),this[_0x3dc655(0x19d)]=_0x41e50c,this['_injector']=_0x5a5d03,this[_0x3dc655(0x1ac)]=_0x1f4738;const {menu:_0x1a7000,..._0x4fdda3}=_0x3a7481({},l,this[_0x3dc655(0x19d)]);_0x1a7000&&this[_0x3dc655(0x1ac)]['setConfig'](_0x3dc655(0x1a2),_0x1a7000,{'merge':!0x0}),this[_0x3dc655(0x1ac)][_0x3dc655(0x1a4)](H,_0x4fdda3);}[_0x208bef(0x1c7)](){const _0x170284=_0x208bef;[[c]][_0x170284(0x1b8)](_0x466fd7=>this[_0x170284(0x1ae)][_0x170284(0x1cd)](_0x466fd7));}['onReady'](){const _0x348d92=_0x208bef;this['_injector'][_0x348d92(0x1a0)](c);}};I(s,_0x208bef(0x1b5),W),I(s,_0x208bef(0x1b9),_0x592bd3[_0x208bef(0x1c3)]),s=V([_0x2d6ef5(_0x3a3e90),_(0x1,_0x37723b(_0xe2c0ff)),_(0x2,_0x1c5293)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1c3f(_0x3e83ee,_0x3143ba){const _0x113bf1=_0x113b();return _0x1c3f=function(_0x1c3f56,_0x2a01b1){_0x1c3f56=_0x1c3f56-0x19c;let _0x149ca5=_0x113bf1[_0x1c3f56];return _0x149ca5;},_0x1c3f(_0x3e83ee,_0x3143ba);}const _0x208bef=_0x1c3f;(function(_0x46442e,_0x5b4544){const _0x1f0089=_0x1c3f,_0x38c901=_0x46442e();while(!![]){try{const _0x5ce2d8=parseInt(_0x1f0089(0x19c))/0x1*(parseInt(_0x1f0089(0x1a6))/0x2)+-parseInt(_0x1f0089(0x1bb))/0x3+parseInt(_0x1f0089(0x1b7))/0x4+-parseInt(_0x1f0089(0x1a9))/0x5*(parseInt(_0x1f0089(0x1b4))/0x6)+-parseInt(_0x1f0089(0x1bd))/0x7*(-parseInt(_0x1f0089(0x1ad))/0x8)+-parseInt(_0x1f0089(0x1c2))/0x9*(-parseInt(_0x1f0089(0x19e))/0xa)+-parseInt(_0x1f0089(0x1c0))/0xb*(parseInt(_0x1f0089(0x1bf))/0xc);if(_0x5ce2d8===_0x5b4544)break;else _0x38c901['push'](_0x38c901['shift']());}catch(_0x26bbb0){_0x38c901['push'](_0x38c901['shift']());}}}(_0x113b,0x2d2ed));import{IExchangeOperateService as _0x23baa5,UniverExchangeClientPlugin as _0x3a3e90}from'@univerjs-pro/exchange-client';import{CommandType as _0x190ab8,UniverInstanceType as _0x592bd3,Disposable as _0x5e7265,ICommandService as _0x35a94e,DependentOn as _0x2d6ef5,Inject as _0x37723b,Injector as _0xe2c0ff,IConfigService as _0x1c5293,Plugin as _0x1b69fc,merge as _0x3a7481}from'@univerjs/core';import{MenuItemType as _0x9a0d6f,getMenuHiddenObservable as _0xf39941,RibbonStartGroup as _0x73c08d,IMenuManagerService as _0x2d023d}from'@univerjs/ui';import{WorkbookExportPermission as _0xe37f19}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2a1439}from'@univerjs/sheets-ui';const p={'id':_0x208bef(0x1c6),'type':_0x190ab8[_0x208bef(0x1cb)],'handler':async _0x58a0af=>{const _0x19c006=_0x208bef,_0x38c791=_0x58a0af[_0x19c006(0x1a0)](_0x23baa5);return new URLSearchParams(location['search'])[_0x19c006(0x1a0)](_0x19c006(0x1cc))?_0x38c791[_0x19c006(0x1a5)]():_0x38c791[_0x19c006(0x1c4)](),!0x0;}},u={'id':_0x208bef(0x1be),'type':_0x190ab8['OPERATION'],'handler':async _0x22202c=>{const _0x363826=_0x208bef,_0x10dacb=_0x22202c[_0x363826(0x1a0)](_0x23baa5);return new URLSearchParams(location[_0x363826(0x1b3)])[_0x363826(0x1a0)](_0x363826(0x1cc))?_0x10dacb[_0x363826(0x1a8)]():_0x10dacb[_0x363826(0x1b6)](),!0x0;}},H=_0x208bef(0x19f),l={},S='sheets-exchange-client.operation.exchange';function R(_0x3e0aa1){const _0x218a98=_0x208bef;return{'id':S,'type':_0x9a0d6f['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x218a98(0x1b0),'hidden$':_0xf39941(_0x3e0aa1,_0x592bd3[_0x218a98(0x1c3)]),'disabled$':_0x2a1439(_0x3e0aa1,{'workbookTypes':[_0xe37f19]})};}function w(){const _0x2efa8f=_0x208bef;return{'id':p['id'],'type':_0x9a0d6f[_0x2efa8f(0x1b1)],'title':'exchange.upload','icon':_0x2efa8f(0x1c8)};}function D(){const _0x1f4e4f=_0x208bef;return{'id':u['id'],'type':_0x9a0d6f[_0x1f4e4f(0x1b1)],'title':'exchange.download','icon':_0x1f4e4f(0x1c5)};}const F={[_0x73c08d[_0x208bef(0x1a3)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x208bef(0x1b2)],A=(_0x1d3c9e,_0x3f3bdd,_0x456d1f,_0x5552b0)=>{const _0x12f715=_0x208bef;for(var _0x4b72b0=_0x5552b0>0x1?void 0x0:_0x5552b0?G(_0x3f3bdd,_0x456d1f):_0x3f3bdd,_0x1e0366=_0x1d3c9e[_0x12f715(0x1c9)]-0x1,_0x24d503;_0x1e0366>=0x0;_0x1e0366--)(_0x24d503=_0x1d3c9e[_0x1e0366])&&(_0x4b72b0=_0x24d503(_0x4b72b0)||_0x4b72b0);return _0x4b72b0;},d=(_0x4bb419,_0x2a7e1d)=>(_0x3f3500,_0x11410f)=>_0x2a7e1d(_0x3f3500,_0x11410f,_0x4bb419);let c=class extends _0x5e7265{constructor(_0x46269d,_0x4df925){const _0x3a2081=_0x208bef;super(),this[_0x3a2081(0x1bc)]=_0x46269d,this[_0x3a2081(0x1a7)]=_0x4df925,this[_0x3a2081(0x1af)](),this[_0x3a2081(0x1ca)]();}['_initCommands'](){[p,u]['forEach'](_0x253627=>{const _0x46afed=_0x1c3f;this[_0x46afed(0x1c1)](this[_0x46afed(0x1bc)]['registerCommand'](_0x253627));});}[_0x208bef(0x1ca)](){const _0x56c1fa=_0x208bef;this['_menuManagerService'][_0x56c1fa(0x1aa)](F);}};function _0x113b(){const _0x5cd294=['OPERATION','unit','add','11LtONnY','_config','1924970HxMGxq','sheets-exchange-client.config','get','defineProperty','menu','OTHERS','setConfig','importXLSXToUnitId','52006dMCNJK','_menuManagerService','exportXLSXByUnitId','68470VwwyKT','mergeMenu','symbol','_configService','8UoIVGj','_injector','_initCommands','exchange.file','BUTTON','getOwnPropertyDescriptor','search','78sqRVYQ','pluginName','exportXLSXBySnapshot','676196pQhizO','forEach','type','SHEET_EXCHANGE_CLIENT_PLUGIN','672867syMnml','_commandService','1517789fEFfgt','exchange-client.operation.export-xlsx','36fTcSKL','1015762FezHNv','disposeWithMe','9Xjzkmp','UNIVER_SHEET','importXLSXToSnapshot','ExportIcon','exchange-client.operation.import-xlsx','onStarting','FolderIcon','length','_initMenus'];_0x113b=function(){return _0x5cd294;};return _0x113b();}c=A([d(0x0,_0x35a94e),d(0x1,_0x2d023d)],c);var j=Object[_0x208bef(0x1a1)],B=Object[_0x208bef(0x1b2)],$=(_0x29177f,_0x1cdca2,_0x3e3892)=>_0x1cdca2 in _0x29177f?j(_0x29177f,_0x1cdca2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e3892}):_0x29177f[_0x1cdca2]=_0x3e3892,V=(_0xbff38b,_0x32eda4,_0x4d82af,_0x13b43a)=>{const _0x1384e2=_0x208bef;for(var _0x2b60a8=_0x13b43a>0x1?void 0x0:_0x13b43a?B(_0x32eda4,_0x4d82af):_0x32eda4,_0x3b5d34=_0xbff38b[_0x1384e2(0x1c9)]-0x1,_0x593f97;_0x3b5d34>=0x0;_0x3b5d34--)(_0x593f97=_0xbff38b[_0x3b5d34])&&(_0x2b60a8=_0x593f97(_0x2b60a8)||_0x2b60a8);return _0x2b60a8;},_=(_0x2f69ea,_0x251608)=>(_0x6e2205,_0xc8499b)=>_0x251608(_0x6e2205,_0xc8499b,_0x2f69ea),I=(_0x151398,_0x1d205f,_0x8552b3)=>$(_0x151398,typeof _0x1d205f!=_0x208bef(0x1ab)?_0x1d205f+'':_0x1d205f,_0x8552b3);const W=_0x208bef(0x1ba);let s=class extends _0x1b69fc{constructor(_0x41e50c=l,_0x5a5d03,_0x1f4738){const _0x3dc655=_0x208bef;super(),this[_0x3dc655(0x19d)]=_0x41e50c,this['_injector']=_0x5a5d03,this[_0x3dc655(0x1ac)]=_0x1f4738;const {menu:_0x1a7000,..._0x4fdda3}=_0x3a7481({},l,this[_0x3dc655(0x19d)]);_0x1a7000&&this[_0x3dc655(0x1ac)]['setConfig'](_0x3dc655(0x1a2),_0x1a7000,{'merge':!0x0}),this[_0x3dc655(0x1ac)][_0x3dc655(0x1a4)](H,_0x4fdda3);}[_0x208bef(0x1c7)](){const _0x170284=_0x208bef;[[c]][_0x170284(0x1b8)](_0x466fd7=>this[_0x170284(0x1ae)][_0x170284(0x1cd)](_0x466fd7));}['onReady'](){const _0x348d92=_0x208bef;this['_injector'][_0x348d92(0x1a0)](c);}};I(s,_0x208bef(0x1b5),W),I(s,_0x208bef(0x1b9),_0x592bd3[_0x208bef(0x1c3)]),s=V([_0x2d6ef5(_0x3a3e90),_(0x1,_0x37723b(_0xe2c0ff)),_(0x2,_0x1c5293)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2241(_0x2bd08e,_0x566eca){const _0x537529=_0x5375();return _0x2241=function(_0x22419e,_0x4d8754){_0x22419e=_0x22419e-0x71;let _0xcc27f5=_0x537529[_0x22419e];return _0xcc27f5;},_0x2241(_0x2bd08e,_0x566eca);}(function(_0x15ab0c,_0x2c35ee){const _0x4f23a0=_0x2241,_0x125456=_0x15ab0c();while(!![]){try{const _0x5c7bd5=parseInt(_0x4f23a0(0x7c))/0x1+parseInt(_0x4f23a0(0x90))/0x2*(-parseInt(_0x4f23a0(0xa7))/0x3)+-parseInt(_0x4f23a0(0xaf))/0x4+parseInt(_0x4f23a0(0xbd))/0x5+-parseInt(_0x4f23a0(0x99))/0x6*(parseInt(_0x4f23a0(0x7b))/0x7)+-parseInt(_0x4f23a0(0xb8))/0x8+parseInt(_0x4f23a0(0x9a))/0x9;if(_0x5c7bd5===_0x2c35ee)break;else _0x125456['push'](_0x125456['shift']());}catch(_0x3f89e2){_0x125456['push'](_0x125456['shift']());}}}(_0x5375,0x34afd),function(_0x32e727,_0x31939f){const _0x1fb07a=_0x2241;typeof exports==_0x1fb07a(0x7e)&&typeof module<'u'?_0x31939f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1fb07a(0xae)&&define[_0x1fb07a(0x9b)]?define([_0x1fb07a(0xa6),_0x1fb07a(0x87),'@univerjs/core',_0x1fb07a(0xb2),_0x1fb07a(0x8c),_0x1fb07a(0x89)],_0x31939f):(_0x32e727=typeof globalThis<'u'?globalThis:_0x32e727||self,_0x31939f(_0x32e727[_0x1fb07a(0xaa)]={},_0x32e727[_0x1fb07a(0x8b)],_0x32e727[_0x1fb07a(0x8a)],_0x32e727[_0x1fb07a(0x76)],_0x32e727[_0x1fb07a(0xb6)],_0x32e727[_0x1fb07a(0xad)]));}(this,function(_0x109c79,_0x31a45c,_0x5ad558,_0x16e3f3,_0x551939,_0x482a41){'use strict';const _0x3d51af=_0x2241;const _0x5b6783={'id':_0x3d51af(0x72),'type':_0x5ad558[_0x3d51af(0xb1)][_0x3d51af(0xba)],'handler':async _0x131967=>{const _0x2d4f6c=_0x3d51af,_0x2b677c=_0x131967['get'](_0x31a45c[_0x2d4f6c(0xab)]);return new URLSearchParams(location['search'])[_0x2d4f6c(0x8e)](_0x2d4f6c(0x9e))?_0x2b677c[_0x2d4f6c(0x77)]():_0x2b677c[_0x2d4f6c(0xbe)](),!0x0;}},_0x27140d={'id':_0x3d51af(0x83),'type':_0x5ad558[_0x3d51af(0xb1)]['OPERATION'],'handler':async _0x1fed89=>{const _0x39052d=_0x3d51af,_0x2690c5=_0x1fed89['get'](_0x31a45c[_0x39052d(0xab)]);return new URLSearchParams(location[_0x39052d(0xa8)])['get'](_0x39052d(0x9e))?_0x2690c5[_0x39052d(0xb9)]():_0x2690c5[_0x39052d(0x8d)](),!0x0;}},_0x8678d2=_0x3d51af(0x88),_0x64a4f7={},_0x2aeb75=_0x3d51af(0xb3);function _0x21fa53(_0x5da827){const _0x4c4a90=_0x3d51af;return{'id':_0x2aeb75,'type':_0x16e3f3[_0x4c4a90(0x86)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x16e3f3['getMenuHiddenObservable'](_0x5da827,_0x5ad558[_0x4c4a90(0x80)][_0x4c4a90(0xa0)]),'disabled$':_0x482a41[_0x4c4a90(0xb4)](_0x5da827,{'workbookTypes':[_0x551939['WorkbookExportPermission']]})};}function _0x39fd19(){const _0x56e0ca=_0x3d51af;return{'id':_0x5b6783['id'],'type':_0x16e3f3[_0x56e0ca(0x86)][_0x56e0ca(0x9c)],'title':_0x56e0ca(0x8f),'icon':_0x56e0ca(0xa4)};}function _0x5ddf32(){const _0x4be9cb=_0x3d51af;return{'id':_0x27140d['id'],'type':_0x16e3f3['MenuItemType'][_0x4be9cb(0x9c)],'title':'exchange.download','icon':_0x4be9cb(0x82)};}const _0x1a4af9={[_0x16e3f3[_0x3d51af(0x98)]['OTHERS']]:{[_0x2aeb75]:{'order':0.3,'menuItemFactory':_0x21fa53,[_0x5b6783['id']]:{'order':0x0,'menuItemFactory':_0x39fd19},[_0x27140d['id']]:{'order':0x1,'menuItemFactory':_0x5ddf32}}}};var _0x3d609a=Object[_0x3d51af(0x96)],_0x58bfb8=(_0x349491,_0x57047b,_0x388408,_0x285453)=>{const _0x2b5b72=_0x3d51af;for(var _0xd026f0=_0x285453>0x1?void 0x0:_0x285453?_0x3d609a(_0x57047b,_0x388408):_0x57047b,_0x54e067=_0x349491[_0x2b5b72(0x95)]-0x1,_0x4965c0;_0x54e067>=0x0;_0x54e067--)(_0x4965c0=_0x349491[_0x54e067])&&(_0xd026f0=_0x4965c0(_0xd026f0)||_0xd026f0);return _0xd026f0;},_0x40702e=(_0x1f49ba,_0x3ce940)=>(_0x31505f,_0x146953)=>_0x3ce940(_0x31505f,_0x146953,_0x1f49ba);let _0x2d0009=class extends _0x5ad558[_0x3d51af(0x79)]{constructor(_0x5c4345,_0x1c3414){const _0x5e3275=_0x3d51af;super(),this['_commandService']=_0x5c4345,this['_menuManagerService']=_0x1c3414,this[_0x5e3275(0xb5)](),this[_0x5e3275(0x7a)]();}['_initCommands'](){[_0x5b6783,_0x27140d]['forEach'](_0x1610ea=>{const _0x42deca=_0x2241;this[_0x42deca(0x92)](this[_0x42deca(0xa1)][_0x42deca(0xb7)](_0x1610ea));});}[_0x3d51af(0x7a)](){const _0x2c6a21=_0x3d51af;this[_0x2c6a21(0x7f)][_0x2c6a21(0x9d)](_0x1a4af9);}};_0x2d0009=_0x58bfb8([_0x40702e(0x0,_0x5ad558[_0x3d51af(0x71)]),_0x40702e(0x1,_0x16e3f3[_0x3d51af(0x91)])],_0x2d0009);var _0x50faad=Object['defineProperty'],_0x4f313e=Object[_0x3d51af(0x96)],_0x36cfbe=(_0x4d245a,_0x29ab88,_0x1ad1b2)=>_0x29ab88 in _0x4d245a?_0x50faad(_0x4d245a,_0x29ab88,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad1b2}):_0x4d245a[_0x29ab88]=_0x1ad1b2,_0x37530b=(_0x4cbc08,_0x29f92a,_0x1e4afb,_0x28dc55)=>{const _0x32d10f=_0x3d51af;for(var _0x370e2c=_0x28dc55>0x1?void 0x0:_0x28dc55?_0x4f313e(_0x29f92a,_0x1e4afb):_0x29f92a,_0x575ec0=_0x4cbc08[_0x32d10f(0x95)]-0x1,_0x18e967;_0x575ec0>=0x0;_0x575ec0--)(_0x18e967=_0x4cbc08[_0x575ec0])&&(_0x370e2c=_0x18e967(_0x370e2c)||_0x370e2c);return _0x370e2c;},_0x512693=(_0x4ee946,_0xa5b332)=>(_0x597b09,_0x2278cf)=>_0xa5b332(_0x597b09,_0x2278cf,_0x4ee946),_0x1f7c6a=(_0x2957d2,_0x120a2a,_0x1181ec)=>_0x36cfbe(_0x2957d2,typeof _0x120a2a!=_0x3d51af(0x75)?_0x120a2a+'':_0x120a2a,_0x1181ec);const _0x2ca64c=_0x3d51af(0xa5);_0x109c79[_0x3d51af(0xbc)]=class extends _0x5ad558[_0x3d51af(0x97)]{constructor(_0x35cbc4=_0x64a4f7,_0x447ab3,_0x2deb1d){const _0x149a43=_0x3d51af;super(),this[_0x149a43(0x85)]=_0x35cbc4,this[_0x149a43(0x9f)]=_0x447ab3,this['_configService']=_0x2deb1d;const {menu:_0x4c3dc2,..._0x2394fe}=_0x5ad558[_0x149a43(0xbb)]({},_0x64a4f7,this[_0x149a43(0x85)]);_0x4c3dc2&&this[_0x149a43(0x7d)]['setConfig'](_0x149a43(0x81),_0x4c3dc2,{'merge':!0x0}),this[_0x149a43(0x7d)][_0x149a43(0xb0)](_0x8678d2,_0x2394fe);}[_0x3d51af(0x73)](){const _0x507a70=_0x3d51af;[[_0x2d0009]][_0x507a70(0xa2)](_0x5d13fd=>this[_0x507a70(0x9f)]['add'](_0x5d13fd));}[_0x3d51af(0x93)](){const _0x5cf525=_0x3d51af;this[_0x5cf525(0x9f)]['get'](_0x2d0009);}},_0x1f7c6a(_0x109c79[_0x3d51af(0xbc)],_0x3d51af(0x94),_0x2ca64c),_0x1f7c6a(_0x109c79['UniverSheetsExchangeClientPlugin'],_0x3d51af(0xac),_0x5ad558[_0x3d51af(0x80)][_0x3d51af(0xa0)]),_0x109c79[_0x3d51af(0xbc)]=_0x37530b([_0x5ad558[_0x3d51af(0xa9)](_0x31a45c[_0x3d51af(0x84)]),_0x512693(0x1,_0x5ad558['Inject'](_0x5ad558['Injector'])),_0x512693(0x2,_0x5ad558[_0x3d51af(0x74)])],_0x109c79['UniverSheetsExchangeClientPlugin']),_0x109c79['ExportXLSXOperation']=_0x27140d,_0x109c79['ImportXLSXOperation']=_0x5b6783,Object['defineProperty'](_0x109c79,Symbol[_0x3d51af(0x78)],{'value':_0x3d51af(0xa3)});}));function _0x5375(){const _0x49ae03=['UniverSheetsUi','function','264020DwpngL','setConfig','CommandType','@univerjs/ui','sheets-exchange-client.operation.exchange','getCurrentRangeDisable$','_initCommands','UniverSheets','registerCommand','1258408DjQOKg','exportXLSXByUnitId','OPERATION','merge','UniverSheetsExchangeClientPlugin','1275135tEpYtv','importXLSXToSnapshot','ICommandService','exchange-client.operation.import-xlsx','onStarting','IConfigService','symbol','UniverUi','importXLSXToUnitId','toStringTag','Disposable','_initMenus','555884nCmVyP','381651jEIdAu','_configService','object','_menuManagerService','UniverInstanceType','menu','ExportIcon','exchange-client.operation.export-xlsx','UniverExchangeClientPlugin','_config','MenuItemType','@univerjs-pro/exchange-client','sheets-exchange-client.config','@univerjs/sheets-ui','UniverCore','UniverProExchangeClient','@univerjs/sheets','exportXLSXBySnapshot','get','exchange.upload','8OkgITE','IMenuManagerService','disposeWithMe','onReady','pluginName','length','getOwnPropertyDescriptor','Plugin','RibbonStartGroup','30YXGRDA','3565773xBeVfs','amd','BUTTON','mergeMenu','unit','_injector','UNIVER_SHEET','_commandService','forEach','Module','FolderIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','exports','147528ILHZWg','search','DependentOn','UniverProSheetsExchangeClient','IExchangeOperateService','type'];_0x5375=function(){return _0x49ae03;};return _0x5375();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6-experimental.20250903-f52e3bf",
|
|
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.10.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets-ui": "0.10.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.6-experimental.20250903-f52e3bf",
|
|
46
|
+
"@univerjs/sheets": "0.10.6-experimental.20250903-f52e3bf",
|
|
47
|
+
"@univerjs/ui": "0.10.6-experimental.20250903-f52e3bf",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.6-experimental.20250903-f52e3bf",
|
|
49
|
+
"@univerjs/core": "0.10.6-experimental.20250903-f52e3bf"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"typescript": "^5.
|
|
52
|
+
"typescript": "^5.9.2",
|
|
53
53
|
"vite": "^7.1.3",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.6"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|