@univerjs-pro/sheets-exchange-client 0.10.12 → 0.10.13-nightly.202510290902
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';
|
|
1
|
+
'use strict';const _0x5a7790=_0x4d6e;(function(_0x127a9f,_0x54d766){const _0x5e87b8=_0x4d6e,_0x1a0bf5=_0x127a9f();while(!![]){try{const _0xe473e9=parseInt(_0x5e87b8(0x122))/0x1+-parseInt(_0x5e87b8(0x13e))/0x2+parseInt(_0x5e87b8(0x120))/0x3+parseInt(_0x5e87b8(0x10d))/0x4+-parseInt(_0x5e87b8(0x117))/0x5+parseInt(_0x5e87b8(0x12e))/0x6+-parseInt(_0x5e87b8(0x141))/0x7;if(_0xe473e9===_0x54d766)break;else _0x1a0bf5['push'](_0x1a0bf5['shift']());}catch(_0x2727f5){_0x1a0bf5['push'](_0x1a0bf5['shift']());}}}(_0x3e57,0x7fafa));function _0x3e57(){const _0x2770e4=['exchange.upload','disposeWithMe','defineProperty','DependentOn','2962300ecTOFz','ExportXLSXOperation','ImportXLSXOperation','length','unit','MenuItemType','search','_initCommands','OPERATION','sheets-exchange-client.config','2361810qCSDZU','getCurrentRangeDisable$','get','onStarting','_commandService','_initMenus','WorkbookExportPermission','toStringTag','UniverSheetsExchangeClientPlugin','2531694UafHuf','IConfigService','812541SauvmO','_injector','FolderIcon','_config','getOwnPropertyDescriptor','Inject','mergeMenu','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','CommandType','UniverInstanceType','menu','1744740oASyVv','symbol','UniverExchangeClientPlugin','type','_menuManagerService','RibbonStartGroup','onReady','forEach','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','ExportIcon','ICommandService','exchange-client.operation.export-xlsx','merge','UNIVER_SHEET','Module','1499126gygcef','_configService','add','6600139OJddAY'];_0x3e57=function(){return _0x2770e4;};return _0x3e57();}Object[_0x5a7790(0x10b)](exports,Symbol[_0x5a7790(0x11e)],{'value':_0x5a7790(0x13d)});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':_0x5a7790(0x137),'type':i[_0x5a7790(0x12b)][_0x5a7790(0x115)],'handler':async _0x4dabe0=>{const _0x59c1a7=_0x5a7790,_0x16950a=_0x4dabe0[_0x59c1a7(0x119)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x59c1a7(0x113)])['get'](_0x59c1a7(0x111))?_0x16950a['importXLSXToUnitId']():_0x16950a['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x5a7790(0x13a),'type':i[_0x5a7790(0x12b)][_0x5a7790(0x115)],'handler':async _0x374f96=>{const _0x4a61eb=_0x5a7790,_0x1844b0=_0x374f96[_0x4a61eb(0x119)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x4a61eb(0x113)])[_0x4a61eb(0x119)](_0x4a61eb(0x111))?_0x1844b0['exportXLSXByUnitId']():_0x1844b0[_0x4a61eb(0x136)](),!0x0;}},v=_0x5a7790(0x116),h={},S='sheets-exchange-client.operation.exchange';function x(_0x2d33ec){const _0x5ea71e=_0x5a7790;return{'id':S,'type':c[_0x5ea71e(0x112)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c['getMenuHiddenObservable'](_0x2d33ec,i[_0x5ea71e(0x12c)]['UNIVER_SHEET']),'disabled$':I[_0x5ea71e(0x118)](_0x2d33ec,{'workbookTypes':[_[_0x5ea71e(0x11d)]]})};}function P(){const _0x29b9e7=_0x5a7790;return{'id':l['id'],'type':c[_0x29b9e7(0x112)][_0x29b9e7(0x129)],'title':_0x29b9e7(0x142),'icon':_0x29b9e7(0x124)};}function C(){const _0x4f19a8=_0x5a7790;return{'id':p['id'],'type':c[_0x4f19a8(0x112)][_0x4f19a8(0x129)],'title':'exchange.download','icon':_0x4f19a8(0x138)};}const f={[c[_0x5a7790(0x133)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x4d6e(_0x11206c,_0x20a82b){const _0x3e5731=_0x3e57();return _0x4d6e=function(_0x4d6e3e,_0x1669d9){_0x4d6e3e=_0x4d6e3e-0x10a;let _0x256894=_0x3e5731[_0x4d6e3e];return _0x256894;},_0x4d6e(_0x11206c,_0x20a82b);}var T=Object[_0x5a7790(0x126)],y=(_0x21e4b2,_0xd8e1d6,_0x103561,_0x236bfe)=>{const _0x22c192=_0x5a7790;for(var _0x266944=_0x236bfe>0x1?void 0x0:_0x236bfe?T(_0xd8e1d6,_0x103561):_0xd8e1d6,_0x44ffd8=_0x21e4b2[_0x22c192(0x110)]-0x1,_0x51312e;_0x44ffd8>=0x0;_0x44ffd8--)(_0x51312e=_0x21e4b2[_0x44ffd8])&&(_0x266944=_0x51312e(_0x266944)||_0x266944);return _0x266944;},m=(_0x29ca82,_0x38366d)=>(_0x65c8d2,_0x295d59)=>_0x38366d(_0x65c8d2,_0x295d59,_0x29ca82);let u=class extends i['Disposable']{constructor(_0x1cd9fd,_0xb49a28){const _0x1ff5e0=_0x5a7790;super(),this['_commandService']=_0x1cd9fd,this['_menuManagerService']=_0xb49a28,this[_0x1ff5e0(0x114)](),this[_0x1ff5e0(0x11c)]();}['_initCommands'](){[l,p]['forEach'](_0x25493c=>{const _0x58b2d4=_0x4d6e;this[_0x58b2d4(0x10a)](this[_0x58b2d4(0x11b)]['registerCommand'](_0x25493c));});}['_initMenus'](){const _0x3fd85a=_0x5a7790;this[_0x3fd85a(0x132)][_0x3fd85a(0x128)](f);}};u=y([m(0x0,i[_0x5a7790(0x139)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x5a7790(0x10b)],U=Object[_0x5a7790(0x126)],X=(_0x3c18cd,_0x10e925,_0x14b344)=>_0x10e925 in _0x3c18cd?O(_0x3c18cd,_0x10e925,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14b344}):_0x3c18cd[_0x10e925]=_0x14b344,N=(_0x51e86a,_0x46831f,_0x5d789a,_0x361746)=>{for(var _0x4e908c=_0x361746>0x1?void 0x0:_0x361746?U(_0x46831f,_0x5d789a):_0x46831f,_0x4a7cf1=_0x51e86a['length']-0x1,_0xa86187;_0x4a7cf1>=0x0;_0x4a7cf1--)(_0xa86187=_0x51e86a[_0x4a7cf1])&&(_0x4e908c=_0xa86187(_0x4e908c)||_0x4e908c);return _0x4e908c;},d=(_0x5abebb,_0x1b9075)=>(_0x3b94f5,_0x1ec25e)=>_0x1b9075(_0x3b94f5,_0x1ec25e,_0x5abebb),E=(_0x399973,_0x311a7c,_0x33ad1e)=>X(_0x399973,typeof _0x311a7c!=_0x5a7790(0x12f)?_0x311a7c+'':_0x311a7c,_0x33ad1e);const L=_0x5a7790(0x12a);exports[_0x5a7790(0x11f)]=class extends i['Plugin']{constructor(_0x4cc70c=h,_0x28bae8,_0x44b462){const _0x129a27=_0x5a7790;super(),this[_0x129a27(0x125)]=_0x4cc70c,this[_0x129a27(0x123)]=_0x28bae8,this[_0x129a27(0x13f)]=_0x44b462;const {menu:_0xda46dd,..._0x223951}=i[_0x129a27(0x13b)]({},h,this['_config']);_0xda46dd&&this['_configService']['setConfig'](_0x129a27(0x12d),_0xda46dd,{'merge':!0x0}),this[_0x129a27(0x13f)]['setConfig'](v,_0x223951);}[_0x5a7790(0x11a)](){const _0x1eeef3=_0x5a7790;[[u]][_0x1eeef3(0x135)](_0x4245e8=>this[_0x1eeef3(0x123)][_0x1eeef3(0x140)](_0x4245e8));}[_0x5a7790(0x134)](){const _0x144dbe=_0x5a7790;this[_0x144dbe(0x123)][_0x144dbe(0x119)](u);}},E(exports[_0x5a7790(0x11f)],'pluginName',L),E(exports[_0x5a7790(0x11f)],_0x5a7790(0x131),i['UniverInstanceType'][_0x5a7790(0x13c)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x5a7790(0x10c)](g[_0x5a7790(0x130)]),d(0x1,i[_0x5a7790(0x127)](i['Injector'])),d(0x2,i[_0x5a7790(0x121)])],exports[_0x5a7790(0x11f)]),exports[_0x5a7790(0x10e)]=p,exports[_0x5a7790(0x10f)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ddf7a=_0x1f11;function _0x1f11(_0x14f855,_0x28e5af){const _0x1979f9=_0x1979();return _0x1f11=function(_0x1f11f4,_0x4bce52){_0x1f11f4=_0x1f11f4-0xda;let _0x4e7c08=_0x1979f9[_0x1f11f4];return _0x4e7c08;},_0x1f11(_0x14f855,_0x28e5af);}(function(_0x4a9ce2,_0x12d9aa){const _0x30e9e1=_0x1f11,_0x2f00cb=_0x4a9ce2();while(!![]){try{const _0xd73c61=parseInt(_0x30e9e1(0xdf))/0x1+-parseInt(_0x30e9e1(0xf4))/0x2+-parseInt(_0x30e9e1(0xfb))/0x3*(-parseInt(_0x30e9e1(0xeb))/0x4)+parseInt(_0x30e9e1(0xfa))/0x5+parseInt(_0x30e9e1(0x108))/0x6+-parseInt(_0x30e9e1(0xf0))/0x7*(parseInt(_0x30e9e1(0xed))/0x8)+parseInt(_0x30e9e1(0xf2))/0x9*(parseInt(_0x30e9e1(0xfc))/0xa);if(_0xd73c61===_0x12d9aa)break;else _0x2f00cb['push'](_0x2f00cb['shift']());}catch(_0x12e010){_0x2f00cb['push'](_0x2f00cb['shift']());}}}(_0x1979,0x970af));import{IExchangeOperateService as _0x3fc310,UniverExchangeClientPlugin as _0x2ad842}from'@univerjs-pro/exchange-client';function _0x1979(){const _0x584ed9=['_menuManagerService','484SQQdfc','unit','296936NEuVrA','search','_initMenus','161beCHIz','symbol','289845fsyulc','BUTTON','1157096WdEhjM','exportXLSXBySnapshot','UNIVER_SHEET','registerCommand','exchange-client.operation.export-xlsx','pluginName','354800hXYiJG','723VkZpBQ','310YhIovs','setConfig','ExportIcon','length','_injector','FolderIcon','defineProperty','disposeWithMe','exchange-client.operation.import-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','onReady','1150614dkJHns','importXLSXToUnitId','get','_initCommands','DirectExportIcon','exchange.upload','mergeMenu','760665vLcjBC','menu','sheets-exchange-client.config','OPERATION','_configService','type','exchange.file','add','exchange.download','SUBITEMS','getOwnPropertyDescriptor'];_0x1979=function(){return _0x584ed9;};return _0x1979();}import{CommandType as _0x10cb8b,UniverInstanceType as _0x195d14,Disposable as _0x143458,ICommandService as _0x552882,DependentOn as _0x33cf84,Inject as _0x1b8eda,Injector as _0x5b89f7,IConfigService as _0x368a7b,Plugin as _0x36b843,merge as _0x53d355}from'@univerjs/core';import{MenuItemType as _0x3a227c,getMenuHiddenObservable as _0x4fc5cf,RibbonStartGroup as _0x5db307,IMenuManagerService as _0x398648}from'@univerjs/ui';import{WorkbookExportPermission as _0x2507d3}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x24eea6}from'@univerjs/sheets-ui';const p={'id':_0x4ddf7a(0x104),'type':_0x10cb8b['OPERATION'],'handler':async _0x34eaf8=>{const _0x308e84=_0x4ddf7a,_0x282f06=_0x34eaf8[_0x308e84(0xda)](_0x3fc310);return new URLSearchParams(location[_0x308e84(0xee)])[_0x308e84(0xda)](_0x308e84(0xec))?_0x282f06[_0x308e84(0x109)]():_0x282f06['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4ddf7a(0xf8),'type':_0x10cb8b[_0x4ddf7a(0xe2)],'handler':async _0xe1d0f3=>{const _0x59daeb=_0x4ddf7a,_0x2dd4dc=_0xe1d0f3[_0x59daeb(0xda)](_0x3fc310);return new URLSearchParams(location['search'])[_0x59daeb(0xda)](_0x59daeb(0xec))?_0x2dd4dc['exportXLSXByUnitId']():_0x2dd4dc[_0x59daeb(0xf5)](),!0x0;}},H=_0x4ddf7a(0xe1),l={},S='sheets-exchange-client.operation.exchange';function R(_0x42cf3c){const _0x52555d=_0x4ddf7a;return{'id':S,'type':_0x3a227c[_0x52555d(0xe8)],'icon':_0x52555d(0xdc),'tooltip':_0x52555d(0xe5),'hidden$':_0x4fc5cf(_0x42cf3c,_0x195d14[_0x52555d(0xf6)]),'disabled$':_0x24eea6(_0x42cf3c,{'workbookTypes':[_0x2507d3]})};}function w(){const _0x4bf263=_0x4ddf7a;return{'id':p['id'],'type':_0x3a227c[_0x4bf263(0xf3)],'title':_0x4bf263(0xdd),'icon':_0x4bf263(0x101)};}function D(){const _0x1db190=_0x4ddf7a;return{'id':u['id'],'type':_0x3a227c[_0x1db190(0xf3)],'title':_0x1db190(0xe7),'icon':_0x1db190(0xfe)};}const F={[_0x5db307['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ddf7a(0xe9)],A=(_0x1136a0,_0x282fc0,_0x2a5c88,_0x23e7f6)=>{const _0x158aee=_0x4ddf7a;for(var _0x3babed=_0x23e7f6>0x1?void 0x0:_0x23e7f6?G(_0x282fc0,_0x2a5c88):_0x282fc0,_0x43a3e6=_0x1136a0[_0x158aee(0xff)]-0x1,_0x2d25aa;_0x43a3e6>=0x0;_0x43a3e6--)(_0x2d25aa=_0x1136a0[_0x43a3e6])&&(_0x3babed=_0x2d25aa(_0x3babed)||_0x3babed);return _0x3babed;},d=(_0x573a05,_0x25fd15)=>(_0x5bdf4c,_0x504fa4)=>_0x25fd15(_0x5bdf4c,_0x504fa4,_0x573a05);let c=class extends _0x143458{constructor(_0x2c8e05,_0x1302be){const _0x1703f4=_0x4ddf7a;super(),this['_commandService']=_0x2c8e05,this[_0x1703f4(0xea)]=_0x1302be,this[_0x1703f4(0xdb)](),this[_0x1703f4(0xef)]();}[_0x4ddf7a(0xdb)](){[p,u]['forEach'](_0x45b67d=>{const _0x323031=_0x1f11;this[_0x323031(0x103)](this['_commandService'][_0x323031(0xf7)](_0x45b67d));});}[_0x4ddf7a(0xef)](){const _0xd6bf09=_0x4ddf7a;this['_menuManagerService'][_0xd6bf09(0xde)](F);}};c=A([d(0x0,_0x552882),d(0x1,_0x398648)],c);var j=Object[_0x4ddf7a(0x102)],B=Object[_0x4ddf7a(0xe9)],$=(_0x4de3ea,_0x2a94dd,_0x37cac1)=>_0x2a94dd in _0x4de3ea?j(_0x4de3ea,_0x2a94dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cac1}):_0x4de3ea[_0x2a94dd]=_0x37cac1,V=(_0x51f49f,_0x55fb43,_0x506dce,_0x3bcaf3)=>{const _0x3b20bb=_0x4ddf7a;for(var _0x2bb25b=_0x3bcaf3>0x1?void 0x0:_0x3bcaf3?B(_0x55fb43,_0x506dce):_0x55fb43,_0x3af281=_0x51f49f[_0x3b20bb(0xff)]-0x1,_0x38b960;_0x3af281>=0x0;_0x3af281--)(_0x38b960=_0x51f49f[_0x3af281])&&(_0x2bb25b=_0x38b960(_0x2bb25b)||_0x2bb25b);return _0x2bb25b;},_=(_0x3ca91a,_0x444458)=>(_0x5d554e,_0x29479f)=>_0x444458(_0x5d554e,_0x29479f,_0x3ca91a),I=(_0x341c84,_0x4ca1e9,_0x123146)=>$(_0x341c84,typeof _0x4ca1e9!=_0x4ddf7a(0xf1)?_0x4ca1e9+'':_0x4ca1e9,_0x123146);const W=_0x4ddf7a(0x105);let s=class extends _0x36b843{constructor(_0x4ea442=l,_0x3c1418,_0x5eabe7){const _0x55beea=_0x4ddf7a;super(),this[_0x55beea(0x106)]=_0x4ea442,this['_injector']=_0x3c1418,this[_0x55beea(0xe3)]=_0x5eabe7;const {menu:_0x4c31b6,..._0x20138d}=_0x53d355({},l,this['_config']);_0x4c31b6&&this['_configService']['setConfig'](_0x55beea(0xe0),_0x4c31b6,{'merge':!0x0}),this['_configService'][_0x55beea(0xfd)](H,_0x20138d);}['onStarting'](){const _0x3fd0c4=_0x4ddf7a;[[c]]['forEach'](_0x5ec1b2=>this['_injector'][_0x3fd0c4(0xe6)](_0x5ec1b2));}[_0x4ddf7a(0x107)](){const _0x12e4e3=_0x4ddf7a;this[_0x12e4e3(0x100)][_0x12e4e3(0xda)](c);}};I(s,_0x4ddf7a(0xf9),W),I(s,_0x4ddf7a(0xe4),_0x195d14[_0x4ddf7a(0xf6)]),s=V([_0x33cf84(_0x2ad842),_(0x1,_0x1b8eda(_0x5b89f7)),_(0x2,_0x368a7b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ddf7a=_0x1f11;function _0x1f11(_0x14f855,_0x28e5af){const _0x1979f9=_0x1979();return _0x1f11=function(_0x1f11f4,_0x4bce52){_0x1f11f4=_0x1f11f4-0xda;let _0x4e7c08=_0x1979f9[_0x1f11f4];return _0x4e7c08;},_0x1f11(_0x14f855,_0x28e5af);}(function(_0x4a9ce2,_0x12d9aa){const _0x30e9e1=_0x1f11,_0x2f00cb=_0x4a9ce2();while(!![]){try{const _0xd73c61=parseInt(_0x30e9e1(0xdf))/0x1+-parseInt(_0x30e9e1(0xf4))/0x2+-parseInt(_0x30e9e1(0xfb))/0x3*(-parseInt(_0x30e9e1(0xeb))/0x4)+parseInt(_0x30e9e1(0xfa))/0x5+parseInt(_0x30e9e1(0x108))/0x6+-parseInt(_0x30e9e1(0xf0))/0x7*(parseInt(_0x30e9e1(0xed))/0x8)+parseInt(_0x30e9e1(0xf2))/0x9*(parseInt(_0x30e9e1(0xfc))/0xa);if(_0xd73c61===_0x12d9aa)break;else _0x2f00cb['push'](_0x2f00cb['shift']());}catch(_0x12e010){_0x2f00cb['push'](_0x2f00cb['shift']());}}}(_0x1979,0x970af));import{IExchangeOperateService as _0x3fc310,UniverExchangeClientPlugin as _0x2ad842}from'@univerjs-pro/exchange-client';function _0x1979(){const _0x584ed9=['_menuManagerService','484SQQdfc','unit','296936NEuVrA','search','_initMenus','161beCHIz','symbol','289845fsyulc','BUTTON','1157096WdEhjM','exportXLSXBySnapshot','UNIVER_SHEET','registerCommand','exchange-client.operation.export-xlsx','pluginName','354800hXYiJG','723VkZpBQ','310YhIovs','setConfig','ExportIcon','length','_injector','FolderIcon','defineProperty','disposeWithMe','exchange-client.operation.import-xlsx','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','onReady','1150614dkJHns','importXLSXToUnitId','get','_initCommands','DirectExportIcon','exchange.upload','mergeMenu','760665vLcjBC','menu','sheets-exchange-client.config','OPERATION','_configService','type','exchange.file','add','exchange.download','SUBITEMS','getOwnPropertyDescriptor'];_0x1979=function(){return _0x584ed9;};return _0x1979();}import{CommandType as _0x10cb8b,UniverInstanceType as _0x195d14,Disposable as _0x143458,ICommandService as _0x552882,DependentOn as _0x33cf84,Inject as _0x1b8eda,Injector as _0x5b89f7,IConfigService as _0x368a7b,Plugin as _0x36b843,merge as _0x53d355}from'@univerjs/core';import{MenuItemType as _0x3a227c,getMenuHiddenObservable as _0x4fc5cf,RibbonStartGroup as _0x5db307,IMenuManagerService as _0x398648}from'@univerjs/ui';import{WorkbookExportPermission as _0x2507d3}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x24eea6}from'@univerjs/sheets-ui';const p={'id':_0x4ddf7a(0x104),'type':_0x10cb8b['OPERATION'],'handler':async _0x34eaf8=>{const _0x308e84=_0x4ddf7a,_0x282f06=_0x34eaf8[_0x308e84(0xda)](_0x3fc310);return new URLSearchParams(location[_0x308e84(0xee)])[_0x308e84(0xda)](_0x308e84(0xec))?_0x282f06[_0x308e84(0x109)]():_0x282f06['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x4ddf7a(0xf8),'type':_0x10cb8b[_0x4ddf7a(0xe2)],'handler':async _0xe1d0f3=>{const _0x59daeb=_0x4ddf7a,_0x2dd4dc=_0xe1d0f3[_0x59daeb(0xda)](_0x3fc310);return new URLSearchParams(location['search'])[_0x59daeb(0xda)](_0x59daeb(0xec))?_0x2dd4dc['exportXLSXByUnitId']():_0x2dd4dc[_0x59daeb(0xf5)](),!0x0;}},H=_0x4ddf7a(0xe1),l={},S='sheets-exchange-client.operation.exchange';function R(_0x42cf3c){const _0x52555d=_0x4ddf7a;return{'id':S,'type':_0x3a227c[_0x52555d(0xe8)],'icon':_0x52555d(0xdc),'tooltip':_0x52555d(0xe5),'hidden$':_0x4fc5cf(_0x42cf3c,_0x195d14[_0x52555d(0xf6)]),'disabled$':_0x24eea6(_0x42cf3c,{'workbookTypes':[_0x2507d3]})};}function w(){const _0x4bf263=_0x4ddf7a;return{'id':p['id'],'type':_0x3a227c[_0x4bf263(0xf3)],'title':_0x4bf263(0xdd),'icon':_0x4bf263(0x101)};}function D(){const _0x1db190=_0x4ddf7a;return{'id':u['id'],'type':_0x3a227c[_0x1db190(0xf3)],'title':_0x1db190(0xe7),'icon':_0x1db190(0xfe)};}const F={[_0x5db307['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4ddf7a(0xe9)],A=(_0x1136a0,_0x282fc0,_0x2a5c88,_0x23e7f6)=>{const _0x158aee=_0x4ddf7a;for(var _0x3babed=_0x23e7f6>0x1?void 0x0:_0x23e7f6?G(_0x282fc0,_0x2a5c88):_0x282fc0,_0x43a3e6=_0x1136a0[_0x158aee(0xff)]-0x1,_0x2d25aa;_0x43a3e6>=0x0;_0x43a3e6--)(_0x2d25aa=_0x1136a0[_0x43a3e6])&&(_0x3babed=_0x2d25aa(_0x3babed)||_0x3babed);return _0x3babed;},d=(_0x573a05,_0x25fd15)=>(_0x5bdf4c,_0x504fa4)=>_0x25fd15(_0x5bdf4c,_0x504fa4,_0x573a05);let c=class extends _0x143458{constructor(_0x2c8e05,_0x1302be){const _0x1703f4=_0x4ddf7a;super(),this['_commandService']=_0x2c8e05,this[_0x1703f4(0xea)]=_0x1302be,this[_0x1703f4(0xdb)](),this[_0x1703f4(0xef)]();}[_0x4ddf7a(0xdb)](){[p,u]['forEach'](_0x45b67d=>{const _0x323031=_0x1f11;this[_0x323031(0x103)](this['_commandService'][_0x323031(0xf7)](_0x45b67d));});}[_0x4ddf7a(0xef)](){const _0xd6bf09=_0x4ddf7a;this['_menuManagerService'][_0xd6bf09(0xde)](F);}};c=A([d(0x0,_0x552882),d(0x1,_0x398648)],c);var j=Object[_0x4ddf7a(0x102)],B=Object[_0x4ddf7a(0xe9)],$=(_0x4de3ea,_0x2a94dd,_0x37cac1)=>_0x2a94dd in _0x4de3ea?j(_0x4de3ea,_0x2a94dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cac1}):_0x4de3ea[_0x2a94dd]=_0x37cac1,V=(_0x51f49f,_0x55fb43,_0x506dce,_0x3bcaf3)=>{const _0x3b20bb=_0x4ddf7a;for(var _0x2bb25b=_0x3bcaf3>0x1?void 0x0:_0x3bcaf3?B(_0x55fb43,_0x506dce):_0x55fb43,_0x3af281=_0x51f49f[_0x3b20bb(0xff)]-0x1,_0x38b960;_0x3af281>=0x0;_0x3af281--)(_0x38b960=_0x51f49f[_0x3af281])&&(_0x2bb25b=_0x38b960(_0x2bb25b)||_0x2bb25b);return _0x2bb25b;},_=(_0x3ca91a,_0x444458)=>(_0x5d554e,_0x29479f)=>_0x444458(_0x5d554e,_0x29479f,_0x3ca91a),I=(_0x341c84,_0x4ca1e9,_0x123146)=>$(_0x341c84,typeof _0x4ca1e9!=_0x4ddf7a(0xf1)?_0x4ca1e9+'':_0x4ca1e9,_0x123146);const W=_0x4ddf7a(0x105);let s=class extends _0x36b843{constructor(_0x4ea442=l,_0x3c1418,_0x5eabe7){const _0x55beea=_0x4ddf7a;super(),this[_0x55beea(0x106)]=_0x4ea442,this['_injector']=_0x3c1418,this[_0x55beea(0xe3)]=_0x5eabe7;const {menu:_0x4c31b6,..._0x20138d}=_0x53d355({},l,this['_config']);_0x4c31b6&&this['_configService']['setConfig'](_0x55beea(0xe0),_0x4c31b6,{'merge':!0x0}),this['_configService'][_0x55beea(0xfd)](H,_0x20138d);}['onStarting'](){const _0x3fd0c4=_0x4ddf7a;[[c]]['forEach'](_0x5ec1b2=>this['_injector'][_0x3fd0c4(0xe6)](_0x5ec1b2));}[_0x4ddf7a(0x107)](){const _0x12e4e3=_0x4ddf7a;this[_0x12e4e3(0x100)][_0x12e4e3(0xda)](c);}};I(s,_0x4ddf7a(0xf9),W),I(s,_0x4ddf7a(0xe4),_0x195d14[_0x4ddf7a(0xf6)]),s=V([_0x33cf84(_0x2ad842),_(0x1,_0x1b8eda(_0x5b89f7)),_(0x2,_0x368a7b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3afe(){const _0x298d26=['@univerjs/core','UniverCore','SUBITEMS','Plugin','14kBSRfq','importXLSXToSnapshot','OPERATION','exchange.file','DirectExportIcon','@univerjs/ui','exchange.upload','pluginName','ExportIcon','function','BUTTON','UniverInstanceType','207xbrdbP','MenuItemType','merge','349072TcjGcv','type','get','UniverSheetsExchangeClientPlugin','amd','setConfig','_configService','getMenuHiddenObservable','UniverExchangeClientPlugin','Disposable','RibbonStartGroup','@univerjs/sheets-ui','IConfigService','ExportXLSXOperation','defineProperty','ICommandService','getCurrentRangeDisable$','menu','_initMenus','_config','SHEET_EXCHANGE_CLIENT_PLUGIN','58221vXhGUi','UNIVER_SHEET','DependentOn','add','IExchangeOperateService','_initCommands','length','CommandType','exports','5434340tDCPuX','917328jquiin','_injector','_commandService','Inject','4333215vRhjyM','1998eslHbf','4464378sEHbTr','sheets-exchange-client.config','UniverSheets','object','OTHERS','search','forEach','ImportXLSXOperation','@univerjs/sheets','UniverUi','getOwnPropertyDescriptor','_menuManagerService','25291wQtGwt','onReady','mergeMenu','Module','IMenuManagerService'];_0x3afe=function(){return _0x298d26;};return _0x3afe();}function _0x3205(_0xb431f1,_0x5c131e){const _0x3afedf=_0x3afe();return _0x3205=function(_0x32051d,_0x1d77c0){_0x32051d=_0x32051d-0x1af;let _0xde9bfb=_0x3afedf[_0x32051d];return _0xde9bfb;},_0x3205(_0xb431f1,_0x5c131e);}(function(_0x2b0f9b,_0x468041){const _0x2cf4c1=_0x3205,_0x4b1338=_0x2b0f9b();while(!![]){try{const _0x2f1896=parseInt(_0x2cf4c1(0x1d8))/0x1*(-parseInt(_0x2cf4c1(0x1b4))/0x2)+-parseInt(_0x2cf4c1(0x1e8))/0x3+parseInt(_0x2cf4c1(0x1e2))/0x4+parseInt(_0x2cf4c1(0x1e6))/0x5+parseInt(_0x2cf4c1(0x1e7))/0x6*(parseInt(_0x2cf4c1(0x1f4))/0x7)+-parseInt(_0x2cf4c1(0x1c3))/0x8*(-parseInt(_0x2cf4c1(0x1c0))/0x9)+-parseInt(_0x2cf4c1(0x1e1))/0xa;if(_0x2f1896===_0x468041)break;else _0x4b1338['push'](_0x4b1338['shift']());}catch(_0x53dc24){_0x4b1338['push'](_0x4b1338['shift']());}}}(_0x3afe,0xd2d5b),function(_0x1679f5,_0x4e94dc){const _0x5dd531=_0x3205;typeof exports==_0x5dd531(0x1eb)&&typeof module<'u'?_0x4e94dc(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5dd531(0x1bd)&&define[_0x5dd531(0x1c7)]?define([_0x5dd531(0x1e0),'@univerjs-pro/exchange-client',_0x5dd531(0x1b0),_0x5dd531(0x1b9),_0x5dd531(0x1f0),_0x5dd531(0x1ce)],_0x4e94dc):(_0x1679f5=typeof globalThis<'u'?globalThis:_0x1679f5||self,_0x4e94dc(_0x1679f5['UniverProSheetsExchangeClient']={},_0x1679f5['UniverProExchangeClient'],_0x1679f5[_0x5dd531(0x1b1)],_0x1679f5[_0x5dd531(0x1f1)],_0x1679f5[_0x5dd531(0x1ea)],_0x1679f5['UniverSheetsUi']));}(this,function(_0x4d0d12,_0x31433e,_0x1b24ff,_0x33a391,_0x5b6a76,_0x58c93c){'use strict';const _0x50c0c0=_0x3205;const _0x2c1fc7={'id':'exchange-client.operation.import-xlsx','type':_0x1b24ff[_0x50c0c0(0x1df)][_0x50c0c0(0x1b6)],'handler':async _0x43d481=>{const _0x5d30c7=_0x50c0c0,_0xce8467=_0x43d481['get'](_0x31433e[_0x5d30c7(0x1dc)]);return new URLSearchParams(location[_0x5d30c7(0x1ed)])[_0x5d30c7(0x1c5)]('unit')?_0xce8467['importXLSXToUnitId']():_0xce8467[_0x5d30c7(0x1b5)](),!0x0;}},_0x6d310f={'id':'exchange-client.operation.export-xlsx','type':_0x1b24ff[_0x50c0c0(0x1df)][_0x50c0c0(0x1b6)],'handler':async _0x8bfc66=>{const _0x20b315=_0x50c0c0,_0x35518d=_0x8bfc66[_0x20b315(0x1c5)](_0x31433e['IExchangeOperateService']);return new URLSearchParams(location[_0x20b315(0x1ed)])[_0x20b315(0x1c5)]('unit')?_0x35518d['exportXLSXByUnitId']():_0x35518d['exportXLSXBySnapshot'](),!0x0;}},_0x1bc695=_0x50c0c0(0x1e9),_0x46c011={},_0x48afad='sheets-exchange-client.operation.exchange';function _0x2c95f9(_0x16424e){const _0x41d0ec=_0x50c0c0;return{'id':_0x48afad,'type':_0x33a391[_0x41d0ec(0x1c1)][_0x41d0ec(0x1b2)],'icon':_0x41d0ec(0x1b8),'tooltip':_0x41d0ec(0x1b7),'hidden$':_0x33a391[_0x41d0ec(0x1ca)](_0x16424e,_0x1b24ff[_0x41d0ec(0x1bf)][_0x41d0ec(0x1d9)]),'disabled$':_0x58c93c[_0x41d0ec(0x1d3)](_0x16424e,{'workbookTypes':[_0x5b6a76['WorkbookExportPermission']]})};}function _0x282abe(){const _0x5452b2=_0x50c0c0;return{'id':_0x2c1fc7['id'],'type':_0x33a391['MenuItemType'][_0x5452b2(0x1be)],'title':_0x5452b2(0x1ba),'icon':'FolderIcon'};}function _0x3731a5(){const _0x396cc6=_0x50c0c0;return{'id':_0x6d310f['id'],'type':_0x33a391[_0x396cc6(0x1c1)]['BUTTON'],'title':'exchange.download','icon':_0x396cc6(0x1bc)};}const _0x1bddc3={[_0x33a391[_0x50c0c0(0x1cd)][_0x50c0c0(0x1ec)]]:{[_0x48afad]:{'order':0.3,'menuItemFactory':_0x2c95f9,[_0x2c1fc7['id']]:{'order':0x0,'menuItemFactory':_0x282abe},[_0x6d310f['id']]:{'order':0x1,'menuItemFactory':_0x3731a5}}}};var _0x3c63dc=Object[_0x50c0c0(0x1f2)],_0x5f5260=(_0x540b21,_0x52179b,_0x3a198e,_0x32afcb)=>{const _0x1616ab=_0x50c0c0;for(var _0x3b28b9=_0x32afcb>0x1?void 0x0:_0x32afcb?_0x3c63dc(_0x52179b,_0x3a198e):_0x52179b,_0x1940e2=_0x540b21[_0x1616ab(0x1de)]-0x1,_0x16cd55;_0x1940e2>=0x0;_0x1940e2--)(_0x16cd55=_0x540b21[_0x1940e2])&&(_0x3b28b9=_0x16cd55(_0x3b28b9)||_0x3b28b9);return _0x3b28b9;},_0x2930df=(_0x2c2be8,_0x4d3af2)=>(_0x2ef632,_0x4394ee)=>_0x4d3af2(_0x2ef632,_0x4394ee,_0x2c2be8);let _0x4d5d2b=class extends _0x1b24ff[_0x50c0c0(0x1cc)]{constructor(_0x4f8881,_0x253d67){const _0x524c6c=_0x50c0c0;super(),this[_0x524c6c(0x1e4)]=_0x4f8881,this[_0x524c6c(0x1f3)]=_0x253d67,this[_0x524c6c(0x1dd)](),this['_initMenus']();}[_0x50c0c0(0x1dd)](){const _0x31df09=_0x50c0c0;[_0x2c1fc7,_0x6d310f][_0x31df09(0x1ee)](_0x274c20=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x274c20));});}[_0x50c0c0(0x1d5)](){const _0x4a2557=_0x50c0c0;this['_menuManagerService'][_0x4a2557(0x1f6)](_0x1bddc3);}};_0x4d5d2b=_0x5f5260([_0x2930df(0x0,_0x1b24ff[_0x50c0c0(0x1d2)]),_0x2930df(0x1,_0x33a391[_0x50c0c0(0x1af)])],_0x4d5d2b);var _0x102738=Object[_0x50c0c0(0x1d1)],_0xd284da=Object[_0x50c0c0(0x1f2)],_0xece728=(_0x5eb241,_0x3fba94,_0x2cbe9c)=>_0x3fba94 in _0x5eb241?_0x102738(_0x5eb241,_0x3fba94,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cbe9c}):_0x5eb241[_0x3fba94]=_0x2cbe9c,_0x1cddda=(_0x5b7a78,_0x3bce30,_0x4553d9,_0x156b31)=>{const _0x1a3cfa=_0x50c0c0;for(var _0x25c721=_0x156b31>0x1?void 0x0:_0x156b31?_0xd284da(_0x3bce30,_0x4553d9):_0x3bce30,_0x56f133=_0x5b7a78[_0x1a3cfa(0x1de)]-0x1,_0xe6a85e;_0x56f133>=0x0;_0x56f133--)(_0xe6a85e=_0x5b7a78[_0x56f133])&&(_0x25c721=_0xe6a85e(_0x25c721)||_0x25c721);return _0x25c721;},_0xfcf9d4=(_0x53d5af,_0x2c904d)=>(_0x26c130,_0x1a36fd)=>_0x2c904d(_0x26c130,_0x1a36fd,_0x53d5af),_0xf9fa8=(_0xfcdaeb,_0x535afa,_0x7eccb8)=>_0xece728(_0xfcdaeb,typeof _0x535afa!='symbol'?_0x535afa+'':_0x535afa,_0x7eccb8);const _0x131d36=_0x50c0c0(0x1d7);_0x4d0d12['UniverSheetsExchangeClientPlugin']=class extends _0x1b24ff[_0x50c0c0(0x1b3)]{constructor(_0x25b240=_0x46c011,_0x47573d,_0x179c34){const _0x29afec=_0x50c0c0;super(),this[_0x29afec(0x1d6)]=_0x25b240,this[_0x29afec(0x1e3)]=_0x47573d,this['_configService']=_0x179c34;const {menu:_0x3eada9,..._0x5703c5}=_0x1b24ff[_0x29afec(0x1c2)]({},_0x46c011,this['_config']);_0x3eada9&&this[_0x29afec(0x1c9)][_0x29afec(0x1c8)](_0x29afec(0x1d4),_0x3eada9,{'merge':!0x0}),this[_0x29afec(0x1c9)]['setConfig'](_0x1bc695,_0x5703c5);}['onStarting'](){const _0x4cd729=_0x50c0c0;[[_0x4d5d2b]][_0x4cd729(0x1ee)](_0x5b56a1=>this[_0x4cd729(0x1e3)][_0x4cd729(0x1db)](_0x5b56a1));}[_0x50c0c0(0x1f5)](){const _0x163929=_0x50c0c0;this[_0x163929(0x1e3)][_0x163929(0x1c5)](_0x4d5d2b);}},_0xf9fa8(_0x4d0d12[_0x50c0c0(0x1c6)],_0x50c0c0(0x1bb),_0x131d36),_0xf9fa8(_0x4d0d12[_0x50c0c0(0x1c6)],_0x50c0c0(0x1c4),_0x1b24ff[_0x50c0c0(0x1bf)]['UNIVER_SHEET']),_0x4d0d12[_0x50c0c0(0x1c6)]=_0x1cddda([_0x1b24ff[_0x50c0c0(0x1da)](_0x31433e[_0x50c0c0(0x1cb)]),_0xfcf9d4(0x1,_0x1b24ff[_0x50c0c0(0x1e5)](_0x1b24ff['Injector'])),_0xfcf9d4(0x2,_0x1b24ff[_0x50c0c0(0x1cf)])],_0x4d0d12['UniverSheetsExchangeClientPlugin']),_0x4d0d12[_0x50c0c0(0x1d0)]=_0x6d310f,_0x4d0d12[_0x50c0c0(0x1ef)]=_0x2c1fc7,Object[_0x50c0c0(0x1d1)](_0x4d0d12,Symbol['toStringTag'],{'value':_0x50c0c0(0x1f7)});}));
|
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.13-nightly.202510290902",
|
|
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/ui": "0.10.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.13-nightly.202510290902",
|
|
46
|
+
"@univerjs/sheets": "0.10.13-nightly.202510290902",
|
|
47
|
+
"@univerjs/core": "0.10.13-nightly.202510290902",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.13-nightly.202510290902",
|
|
49
|
+
"@univerjs/ui": "0.10.13-nightly.202510290902"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vite": "^7.1.
|
|
53
|
+
"vite": "^7.1.12",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.13"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|