@univerjs-pro/sheets-exchange-client 0.10.13 → 0.10.14-nightly.202511070628
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 _0x2bf065=_0x33a9;(function(_0x4301b9,_0x2241f8){const _0x127af7=_0x33a9,_0x19df0f=_0x4301b9();while(!![]){try{const _0x4c8791=-parseInt(_0x127af7(0x10b))/0x1*(parseInt(_0x127af7(0xe8))/0x2)+parseInt(_0x127af7(0x10c))/0x3*(-parseInt(_0x127af7(0x102))/0x4)+parseInt(_0x127af7(0xef))/0x5+parseInt(_0x127af7(0xfc))/0x6+-parseInt(_0x127af7(0xe7))/0x7+-parseInt(_0x127af7(0xe0))/0x8*(parseInt(_0x127af7(0xd8))/0x9)+parseInt(_0x127af7(0xf7))/0xa;if(_0x4c8791===_0x2241f8)break;else _0x19df0f['push'](_0x19df0f['shift']());}catch(_0x1d605b){_0x19df0f['push'](_0x19df0f['shift']());}}}(_0xd6ec,0x8dc8b));function _0xd6ec(){const _0x5a69e7=['toStringTag','ExportXLSXOperation','getCurrentRangeDisable$','FolderIcon','1AHVfHe','792399RHcXgi','_menuManagerService','exportXLSXByUnitId','MenuItemType','CommandType','BUTTON','exchange-client.operation.import-xlsx','exportXLSXBySnapshot','ImportXLSXOperation','getMenuHiddenObservable','exchange-client.operation.export-xlsx','defineProperty','get','5820147CXsceL','_injector','exchange.file','DirectExportIcon','importXLSXToSnapshot','UniverInstanceType','Module','SHEET_EXCHANGE_CLIENT_PLUGIN','8ORmICD','OPERATION','mergeMenu','importXLSXToUnitId','OTHERS','merge','_initCommands','3742795NfbUsl','450614CwaMiZ','Injector','pluginName','Inject','registerCommand','_initMenus','DependentOn','4236270IQaQYw','search','ICommandService','getOwnPropertyDescriptor','_config','IExchangeOperateService','onStarting','forEach','12870640HudjQD','exchange.download','RibbonStartGroup','_configService','disposeWithMe','2288220sIUboE','unit','_commandService','Disposable','exchange.upload','menu','8hgKEXp','UNIVER_SHEET','ExportIcon','UniverSheetsExchangeClientPlugin','setConfig'];_0xd6ec=function(){return _0x5a69e7;};return _0xd6ec();}Object[_0x2bf065(0xd6)](exports,Symbol[_0x2bf065(0x107)],{'value':_0x2bf065(0xde)});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':_0x2bf065(0x112),'type':i[_0x2bf065(0x110)][_0x2bf065(0xe1)],'handler':async _0x4eb436=>{const _0x41efda=_0x2bf065,_0x332630=_0x4eb436[_0x41efda(0xd7)](g[_0x41efda(0xf4)]);return new URLSearchParams(location[_0x41efda(0xf0)])[_0x41efda(0xd7)](_0x41efda(0xfd))?_0x332630[_0x41efda(0xe3)]():_0x332630[_0x41efda(0xdc)](),!0x0;}},p={'id':_0x2bf065(0xd5),'type':i['CommandType'][_0x2bf065(0xe1)],'handler':async _0x94b6c4=>{const _0x284653=_0x2bf065,_0x316eec=_0x94b6c4[_0x284653(0xd7)](g[_0x284653(0xf4)]);return new URLSearchParams(location[_0x284653(0xf0)])['get']('unit')?_0x316eec[_0x284653(0x10e)]():_0x316eec[_0x284653(0x113)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x23bb35){const _0x1f96f8=_0x2bf065;return{'id':S,'type':c[_0x1f96f8(0x10f)]['SUBITEMS'],'icon':_0x1f96f8(0xdb),'tooltip':_0x1f96f8(0xda),'hidden$':c[_0x1f96f8(0xd4)](_0x23bb35,i[_0x1f96f8(0xdd)]['UNIVER_SHEET']),'disabled$':I[_0x1f96f8(0x109)](_0x23bb35,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3d49ac=_0x2bf065;return{'id':l['id'],'type':c[_0x3d49ac(0x10f)][_0x3d49ac(0x111)],'title':_0x3d49ac(0x100),'icon':_0x3d49ac(0x10a)};}function C(){const _0x42ff59=_0x2bf065;return{'id':p['id'],'type':c['MenuItemType'][_0x42ff59(0x111)],'title':_0x42ff59(0xf8),'icon':_0x42ff59(0x104)};}const f={[c[_0x2bf065(0xf9)][_0x2bf065(0xe4)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x49bae8,_0x37e635,_0xb1328f,_0x446215)=>{for(var _0x2240b3=_0x446215>0x1?void 0x0:_0x446215?T(_0x37e635,_0xb1328f):_0x37e635,_0x3e4145=_0x49bae8['length']-0x1,_0x18a76d;_0x3e4145>=0x0;_0x3e4145--)(_0x18a76d=_0x49bae8[_0x3e4145])&&(_0x2240b3=_0x18a76d(_0x2240b3)||_0x2240b3);return _0x2240b3;},m=(_0x4ce2ed,_0x164888)=>(_0x2d1cf7,_0x1e51a7)=>_0x164888(_0x2d1cf7,_0x1e51a7,_0x4ce2ed);let u=class extends i[_0x2bf065(0xff)]{constructor(_0x34ee92,_0x22e31b){const _0xaffa7f=_0x2bf065;super(),this[_0xaffa7f(0xfe)]=_0x34ee92,this['_menuManagerService']=_0x22e31b,this['_initCommands'](),this['_initMenus']();}[_0x2bf065(0xe6)](){const _0x38470b=_0x2bf065;[l,p][_0x38470b(0xf6)](_0x433b25=>{const _0xc290d2=_0x38470b;this[_0xc290d2(0xfb)](this[_0xc290d2(0xfe)][_0xc290d2(0xec)](_0x433b25));});}[_0x2bf065(0xed)](){const _0x46f5d8=_0x2bf065;this[_0x46f5d8(0x10d)][_0x46f5d8(0xe2)](f);}};function _0x33a9(_0xa1c942,_0x5d56f3){const _0xd6ec90=_0xd6ec();return _0x33a9=function(_0x33a99c,_0x127753){_0x33a99c=_0x33a99c-0xd3;let _0x4e0767=_0xd6ec90[_0x33a99c];return _0x4e0767;},_0x33a9(_0xa1c942,_0x5d56f3);}u=y([m(0x0,i[_0x2bf065(0xf1)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x2bf065(0xd6)],U=Object[_0x2bf065(0xf2)],X=(_0x459979,_0x4d3abf,_0x49af6f)=>_0x4d3abf in _0x459979?O(_0x459979,_0x4d3abf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49af6f}):_0x459979[_0x4d3abf]=_0x49af6f,N=(_0x117635,_0x386a66,_0x55d4e6,_0x42b91d)=>{for(var _0x289c6=_0x42b91d>0x1?void 0x0:_0x42b91d?U(_0x386a66,_0x55d4e6):_0x386a66,_0x52e8e4=_0x117635['length']-0x1,_0x410b82;_0x52e8e4>=0x0;_0x52e8e4--)(_0x410b82=_0x117635[_0x52e8e4])&&(_0x289c6=_0x410b82(_0x289c6)||_0x289c6);return _0x289c6;},d=(_0x37c980,_0x3af458)=>(_0x51a795,_0xd2ba9f)=>_0x3af458(_0x51a795,_0xd2ba9f,_0x37c980),E=(_0x14a5e9,_0x42b746,_0x1e24eb)=>X(_0x14a5e9,typeof _0x42b746!='symbol'?_0x42b746+'':_0x42b746,_0x1e24eb);const L=_0x2bf065(0xdf);exports[_0x2bf065(0x105)]=class extends i['Plugin']{constructor(_0x1f9e52=h,_0x3b83d7,_0x2525da){const _0x354082=_0x2bf065;super(),this[_0x354082(0xf3)]=_0x1f9e52,this[_0x354082(0xd9)]=_0x3b83d7,this[_0x354082(0xfa)]=_0x2525da;const {menu:_0x493a1c,..._0x61b308}=i[_0x354082(0xe5)]({},h,this[_0x354082(0xf3)]);_0x493a1c&&this[_0x354082(0xfa)][_0x354082(0x106)](_0x354082(0x101),_0x493a1c,{'merge':!0x0}),this[_0x354082(0xfa)]['setConfig'](v,_0x61b308);}[_0x2bf065(0xf5)](){const _0x24866a=_0x2bf065;[[u]][_0x24866a(0xf6)](_0xa6a40a=>this[_0x24866a(0xd9)]['add'](_0xa6a40a));}['onReady'](){const _0x2f332d=_0x2bf065;this[_0x2f332d(0xd9)][_0x2f332d(0xd7)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x2bf065(0xea),L),E(exports[_0x2bf065(0x105)],'type',i['UniverInstanceType'][_0x2bf065(0x103)]),exports[_0x2bf065(0x105)]=N([i[_0x2bf065(0xee)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x2bf065(0xeb)](i[_0x2bf065(0xe9)])),d(0x2,i['IConfigService'])],exports[_0x2bf065(0x105)]),exports[_0x2bf065(0x108)]=p,exports[_0x2bf065(0xd3)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xcffa8c=_0x5a26;(function(_0x439b70,_0x45ab15){const _0x30a72b=_0x5a26,_0x344d22=_0x439b70();while(!![]){try{const _0x52b395=-parseInt(_0x30a72b(0xc3))/0x1*(parseInt(_0x30a72b(0xcf))/0x2)+-parseInt(_0x30a72b(0xc0))/0x3*(parseInt(_0x30a72b(0xd3))/0x4)+parseInt(_0x30a72b(0xcd))/0x5+-parseInt(_0x30a72b(0xd9))/0x6*(-parseInt(_0x30a72b(0xe6))/0x7)+-parseInt(_0x30a72b(0xe4))/0x8+parseInt(_0x30a72b(0xde))/0x9+parseInt(_0x30a72b(0xcb))/0xa;if(_0x52b395===_0x45ab15)break;else _0x344d22['push'](_0x344d22['shift']());}catch(_0x1952cb){_0x344d22['push'](_0x344d22['shift']());}}}(_0x474f,0xc063d));import{IExchangeOperateService as _0x226d3a,UniverExchangeClientPlugin as _0x7c72ef}from'@univerjs-pro/exchange-client';import{CommandType as _0x578591,UniverInstanceType as _0xd6b81,Disposable as _0x448c31,ICommandService as _0x23abd4,DependentOn as _0x16a247,Inject as _0x352bf5,Injector as _0x3ad7aa,IConfigService as _0x21e3d3,Plugin as _0x594548,merge as _0x5dbc5c}from'@univerjs/core';import{MenuItemType as _0x3984e0,getMenuHiddenObservable as _0x1e825a,RibbonStartGroup as _0x3af2c0,IMenuManagerService as _0x4e6674}from'@univerjs/ui';import{WorkbookExportPermission as _0x4b637e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x599bbe}from'@univerjs/sheets-ui';const p={'id':_0xcffa8c(0xca),'type':_0x578591['OPERATION'],'handler':async _0x6eb4b0=>{const _0x597849=_0xcffa8c,_0x3f377c=_0x6eb4b0[_0x597849(0xe3)](_0x226d3a);return new URLSearchParams(location['search'])[_0x597849(0xe3)](_0x597849(0xc1))?_0x3f377c[_0x597849(0xdc)]():_0x3f377c[_0x597849(0xd1)](),!0x0;}},u={'id':_0xcffa8c(0xc5),'type':_0x578591['OPERATION'],'handler':async _0x32dc13=>{const _0x519a11=_0xcffa8c,_0x77359b=_0x32dc13[_0x519a11(0xe3)](_0x226d3a);return new URLSearchParams(location['search'])[_0x519a11(0xe3)](_0x519a11(0xc1))?_0x77359b['exportXLSXByUnitId']():_0x77359b['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0xcffa8c(0xc9);function _0x474f(){const _0x30c606=['add','_menuManagerService','SUBITEMS','sheets-exchange-client.operation.exchange','exchange-client.operation.import-xlsx','3359530fznXmd','length','2169705jyZFVW','type','2147074lrPUlR','UNIVER_SHEET','importXLSXToSnapshot','forEach','130196gSIWOC','registerCommand','symbol','_initMenus','menu','_config','5046evXGWw','disposeWithMe','getOwnPropertyDescriptor','importXLSXToUnitId','setConfig','6427719tBwXoN','BUTTON','onReady','_initCommands','defineProperty','get','296504dmPWxF','_configService','11578kaoTal','pluginName','_injector','90UPZJci','unit','ExportIcon','1ooiwks','mergeMenu','exchange-client.operation.export-xlsx'];_0x474f=function(){return _0x30c606;};return _0x474f();}function R(_0x1c8a2e){const _0x3e32aa=_0xcffa8c;return{'id':S,'type':_0x3984e0[_0x3e32aa(0xc8)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x1e825a(_0x1c8a2e,_0xd6b81[_0x3e32aa(0xd0)]),'disabled$':_0x599bbe(_0x1c8a2e,{'workbookTypes':[_0x4b637e]})};}function w(){const _0x40490d=_0xcffa8c;return{'id':p['id'],'type':_0x3984e0[_0x40490d(0xdf)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x1bdd13=_0xcffa8c;return{'id':u['id'],'type':_0x3984e0[_0x1bdd13(0xdf)],'title':'exchange.download','icon':_0x1bdd13(0xc2)};}const F={[_0x3af2c0['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xcffa8c(0xdb)],A=(_0x57bd6e,_0x5a05ab,_0x335563,_0x1a023c)=>{const _0x5757f9=_0xcffa8c;for(var _0x5e2012=_0x1a023c>0x1?void 0x0:_0x1a023c?G(_0x5a05ab,_0x335563):_0x5a05ab,_0xab0db8=_0x57bd6e[_0x5757f9(0xcc)]-0x1,_0x5b62bc;_0xab0db8>=0x0;_0xab0db8--)(_0x5b62bc=_0x57bd6e[_0xab0db8])&&(_0x5e2012=_0x5b62bc(_0x5e2012)||_0x5e2012);return _0x5e2012;},d=(_0x25289a,_0x55a59f)=>(_0x47e7a0,_0x36f22f)=>_0x55a59f(_0x47e7a0,_0x36f22f,_0x25289a);let c=class extends _0x448c31{constructor(_0x38c77a,_0x1cf66d){const _0x4e9ee1=_0xcffa8c;super(),this['_commandService']=_0x38c77a,this[_0x4e9ee1(0xc7)]=_0x1cf66d,this[_0x4e9ee1(0xe1)](),this[_0x4e9ee1(0xd6)]();}['_initCommands'](){[p,u]['forEach'](_0x1b02dd=>{const _0x5d39f3=_0x5a26;this[_0x5d39f3(0xda)](this['_commandService'][_0x5d39f3(0xd4)](_0x1b02dd));});}[_0xcffa8c(0xd6)](){const _0x320c14=_0xcffa8c;this[_0x320c14(0xc7)][_0x320c14(0xc4)](F);}};c=A([d(0x0,_0x23abd4),d(0x1,_0x4e6674)],c);var j=Object[_0xcffa8c(0xe2)],B=Object[_0xcffa8c(0xdb)],$=(_0x26a732,_0x79167f,_0x535748)=>_0x79167f in _0x26a732?j(_0x26a732,_0x79167f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x535748}):_0x26a732[_0x79167f]=_0x535748,V=(_0x243c9c,_0x5f36fe,_0x11ddbc,_0x5dc727)=>{const _0x59b37b=_0xcffa8c;for(var _0x5973d1=_0x5dc727>0x1?void 0x0:_0x5dc727?B(_0x5f36fe,_0x11ddbc):_0x5f36fe,_0x4839b0=_0x243c9c[_0x59b37b(0xcc)]-0x1,_0x39c807;_0x4839b0>=0x0;_0x4839b0--)(_0x39c807=_0x243c9c[_0x4839b0])&&(_0x5973d1=_0x39c807(_0x5973d1)||_0x5973d1);return _0x5973d1;},_=(_0x2b9b9e,_0x446721)=>(_0x507bd9,_0x2b1b74)=>_0x446721(_0x507bd9,_0x2b1b74,_0x2b9b9e),I=(_0x81f5f0,_0x495044,_0x31706e)=>$(_0x81f5f0,typeof _0x495044!=_0xcffa8c(0xd5)?_0x495044+'':_0x495044,_0x31706e);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x5a26(_0x2dcf8e,_0x2eb1c9){const _0x474fcf=_0x474f();return _0x5a26=function(_0x5a261e,_0x5acacc){_0x5a261e=_0x5a261e-0xbf;let _0x3c538e=_0x474fcf[_0x5a261e];return _0x3c538e;},_0x5a26(_0x2dcf8e,_0x2eb1c9);}let s=class extends _0x594548{constructor(_0x2f3c34=l,_0x251c75,_0x289cc0){const _0x1abec1=_0xcffa8c;super(),this[_0x1abec1(0xd8)]=_0x2f3c34,this[_0x1abec1(0xbf)]=_0x251c75,this[_0x1abec1(0xe5)]=_0x289cc0;const {menu:_0x17e946,..._0x2925f7}=_0x5dbc5c({},l,this[_0x1abec1(0xd8)]);_0x17e946&&this[_0x1abec1(0xe5)][_0x1abec1(0xdd)](_0x1abec1(0xd7),_0x17e946,{'merge':!0x0}),this[_0x1abec1(0xe5)]['setConfig'](H,_0x2925f7);}['onStarting'](){const _0x3fb2b4=_0xcffa8c;[[c]][_0x3fb2b4(0xd2)](_0x152e2c=>this[_0x3fb2b4(0xbf)][_0x3fb2b4(0xc6)](_0x152e2c));}[_0xcffa8c(0xe0)](){const _0x4cc0a3=_0xcffa8c;this[_0x4cc0a3(0xbf)]['get'](c);}};I(s,_0xcffa8c(0xe7),W),I(s,_0xcffa8c(0xce),_0xd6b81[_0xcffa8c(0xd0)]),s=V([_0x16a247(_0x7c72ef),_(0x1,_0x352bf5(_0x3ad7aa)),_(0x2,_0x21e3d3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xcffa8c=_0x5a26;(function(_0x439b70,_0x45ab15){const _0x30a72b=_0x5a26,_0x344d22=_0x439b70();while(!![]){try{const _0x52b395=-parseInt(_0x30a72b(0xc3))/0x1*(parseInt(_0x30a72b(0xcf))/0x2)+-parseInt(_0x30a72b(0xc0))/0x3*(parseInt(_0x30a72b(0xd3))/0x4)+parseInt(_0x30a72b(0xcd))/0x5+-parseInt(_0x30a72b(0xd9))/0x6*(-parseInt(_0x30a72b(0xe6))/0x7)+-parseInt(_0x30a72b(0xe4))/0x8+parseInt(_0x30a72b(0xde))/0x9+parseInt(_0x30a72b(0xcb))/0xa;if(_0x52b395===_0x45ab15)break;else _0x344d22['push'](_0x344d22['shift']());}catch(_0x1952cb){_0x344d22['push'](_0x344d22['shift']());}}}(_0x474f,0xc063d));import{IExchangeOperateService as _0x226d3a,UniverExchangeClientPlugin as _0x7c72ef}from'@univerjs-pro/exchange-client';import{CommandType as _0x578591,UniverInstanceType as _0xd6b81,Disposable as _0x448c31,ICommandService as _0x23abd4,DependentOn as _0x16a247,Inject as _0x352bf5,Injector as _0x3ad7aa,IConfigService as _0x21e3d3,Plugin as _0x594548,merge as _0x5dbc5c}from'@univerjs/core';import{MenuItemType as _0x3984e0,getMenuHiddenObservable as _0x1e825a,RibbonStartGroup as _0x3af2c0,IMenuManagerService as _0x4e6674}from'@univerjs/ui';import{WorkbookExportPermission as _0x4b637e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x599bbe}from'@univerjs/sheets-ui';const p={'id':_0xcffa8c(0xca),'type':_0x578591['OPERATION'],'handler':async _0x6eb4b0=>{const _0x597849=_0xcffa8c,_0x3f377c=_0x6eb4b0[_0x597849(0xe3)](_0x226d3a);return new URLSearchParams(location['search'])[_0x597849(0xe3)](_0x597849(0xc1))?_0x3f377c[_0x597849(0xdc)]():_0x3f377c[_0x597849(0xd1)](),!0x0;}},u={'id':_0xcffa8c(0xc5),'type':_0x578591['OPERATION'],'handler':async _0x32dc13=>{const _0x519a11=_0xcffa8c,_0x77359b=_0x32dc13[_0x519a11(0xe3)](_0x226d3a);return new URLSearchParams(location['search'])[_0x519a11(0xe3)](_0x519a11(0xc1))?_0x77359b['exportXLSXByUnitId']():_0x77359b['exportXLSXBySnapshot'](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0xcffa8c(0xc9);function _0x474f(){const _0x30c606=['add','_menuManagerService','SUBITEMS','sheets-exchange-client.operation.exchange','exchange-client.operation.import-xlsx','3359530fznXmd','length','2169705jyZFVW','type','2147074lrPUlR','UNIVER_SHEET','importXLSXToSnapshot','forEach','130196gSIWOC','registerCommand','symbol','_initMenus','menu','_config','5046evXGWw','disposeWithMe','getOwnPropertyDescriptor','importXLSXToUnitId','setConfig','6427719tBwXoN','BUTTON','onReady','_initCommands','defineProperty','get','296504dmPWxF','_configService','11578kaoTal','pluginName','_injector','90UPZJci','unit','ExportIcon','1ooiwks','mergeMenu','exchange-client.operation.export-xlsx'];_0x474f=function(){return _0x30c606;};return _0x474f();}function R(_0x1c8a2e){const _0x3e32aa=_0xcffa8c;return{'id':S,'type':_0x3984e0[_0x3e32aa(0xc8)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x1e825a(_0x1c8a2e,_0xd6b81[_0x3e32aa(0xd0)]),'disabled$':_0x599bbe(_0x1c8a2e,{'workbookTypes':[_0x4b637e]})};}function w(){const _0x40490d=_0xcffa8c;return{'id':p['id'],'type':_0x3984e0[_0x40490d(0xdf)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x1bdd13=_0xcffa8c;return{'id':u['id'],'type':_0x3984e0[_0x1bdd13(0xdf)],'title':'exchange.download','icon':_0x1bdd13(0xc2)};}const F={[_0x3af2c0['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0xcffa8c(0xdb)],A=(_0x57bd6e,_0x5a05ab,_0x335563,_0x1a023c)=>{const _0x5757f9=_0xcffa8c;for(var _0x5e2012=_0x1a023c>0x1?void 0x0:_0x1a023c?G(_0x5a05ab,_0x335563):_0x5a05ab,_0xab0db8=_0x57bd6e[_0x5757f9(0xcc)]-0x1,_0x5b62bc;_0xab0db8>=0x0;_0xab0db8--)(_0x5b62bc=_0x57bd6e[_0xab0db8])&&(_0x5e2012=_0x5b62bc(_0x5e2012)||_0x5e2012);return _0x5e2012;},d=(_0x25289a,_0x55a59f)=>(_0x47e7a0,_0x36f22f)=>_0x55a59f(_0x47e7a0,_0x36f22f,_0x25289a);let c=class extends _0x448c31{constructor(_0x38c77a,_0x1cf66d){const _0x4e9ee1=_0xcffa8c;super(),this['_commandService']=_0x38c77a,this[_0x4e9ee1(0xc7)]=_0x1cf66d,this[_0x4e9ee1(0xe1)](),this[_0x4e9ee1(0xd6)]();}['_initCommands'](){[p,u]['forEach'](_0x1b02dd=>{const _0x5d39f3=_0x5a26;this[_0x5d39f3(0xda)](this['_commandService'][_0x5d39f3(0xd4)](_0x1b02dd));});}[_0xcffa8c(0xd6)](){const _0x320c14=_0xcffa8c;this[_0x320c14(0xc7)][_0x320c14(0xc4)](F);}};c=A([d(0x0,_0x23abd4),d(0x1,_0x4e6674)],c);var j=Object[_0xcffa8c(0xe2)],B=Object[_0xcffa8c(0xdb)],$=(_0x26a732,_0x79167f,_0x535748)=>_0x79167f in _0x26a732?j(_0x26a732,_0x79167f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x535748}):_0x26a732[_0x79167f]=_0x535748,V=(_0x243c9c,_0x5f36fe,_0x11ddbc,_0x5dc727)=>{const _0x59b37b=_0xcffa8c;for(var _0x5973d1=_0x5dc727>0x1?void 0x0:_0x5dc727?B(_0x5f36fe,_0x11ddbc):_0x5f36fe,_0x4839b0=_0x243c9c[_0x59b37b(0xcc)]-0x1,_0x39c807;_0x4839b0>=0x0;_0x4839b0--)(_0x39c807=_0x243c9c[_0x4839b0])&&(_0x5973d1=_0x39c807(_0x5973d1)||_0x5973d1);return _0x5973d1;},_=(_0x2b9b9e,_0x446721)=>(_0x507bd9,_0x2b1b74)=>_0x446721(_0x507bd9,_0x2b1b74,_0x2b9b9e),I=(_0x81f5f0,_0x495044,_0x31706e)=>$(_0x81f5f0,typeof _0x495044!=_0xcffa8c(0xd5)?_0x495044+'':_0x495044,_0x31706e);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x5a26(_0x2dcf8e,_0x2eb1c9){const _0x474fcf=_0x474f();return _0x5a26=function(_0x5a261e,_0x5acacc){_0x5a261e=_0x5a261e-0xbf;let _0x3c538e=_0x474fcf[_0x5a261e];return _0x3c538e;},_0x5a26(_0x2dcf8e,_0x2eb1c9);}let s=class extends _0x594548{constructor(_0x2f3c34=l,_0x251c75,_0x289cc0){const _0x1abec1=_0xcffa8c;super(),this[_0x1abec1(0xd8)]=_0x2f3c34,this[_0x1abec1(0xbf)]=_0x251c75,this[_0x1abec1(0xe5)]=_0x289cc0;const {menu:_0x17e946,..._0x2925f7}=_0x5dbc5c({},l,this[_0x1abec1(0xd8)]);_0x17e946&&this[_0x1abec1(0xe5)][_0x1abec1(0xdd)](_0x1abec1(0xd7),_0x17e946,{'merge':!0x0}),this[_0x1abec1(0xe5)]['setConfig'](H,_0x2925f7);}['onStarting'](){const _0x3fb2b4=_0xcffa8c;[[c]][_0x3fb2b4(0xd2)](_0x152e2c=>this[_0x3fb2b4(0xbf)][_0x3fb2b4(0xc6)](_0x152e2c));}[_0xcffa8c(0xe0)](){const _0x4cc0a3=_0xcffa8c;this[_0x4cc0a3(0xbf)]['get'](c);}};I(s,_0xcffa8c(0xe7),W),I(s,_0xcffa8c(0xce),_0xd6b81[_0xcffa8c(0xd0)]),s=V([_0x16a247(_0x7c72ef),_(0x1,_0x352bf5(_0x3ad7aa)),_(0x2,_0x21e3d3)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc490b1,_0x4a61b7){const _0x1d4f01=_0x17bd,_0x84998f=_0xc490b1();while(!![]){try{const _0x2ef3eb=-parseInt(_0x1d4f01(0x202))/0x1*(parseInt(_0x1d4f01(0x211))/0x2)+parseInt(_0x1d4f01(0x200))/0x3*(parseInt(_0x1d4f01(0x21d))/0x4)+-parseInt(_0x1d4f01(0x1ed))/0x5+-parseInt(_0x1d4f01(0x1dc))/0x6*(parseInt(_0x1d4f01(0x218))/0x7)+-parseInt(_0x1d4f01(0x21c))/0x8*(-parseInt(_0x1d4f01(0x208))/0x9)+-parseInt(_0x1d4f01(0x1d6))/0xa*(-parseInt(_0x1d4f01(0x212))/0xb)+-parseInt(_0x1d4f01(0x1ef))/0xc*(-parseInt(_0x1d4f01(0x217))/0xd);if(_0x2ef3eb===_0x4a61b7)break;else _0x84998f['push'](_0x84998f['shift']());}catch(_0xdb7f0c){_0x84998f['push'](_0x84998f['shift']());}}}(_0x34f8,0xe68d4),function(_0x31b4ea,_0x47b542){const _0x27285e=_0x17bd;typeof exports==_0x27285e(0x1fc)&&typeof module<'u'?_0x47b542(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x27285e(0x1fa)&&define[_0x27285e(0x1fd)]?define([_0x27285e(0x1e1),'@univerjs-pro/exchange-client','@univerjs/core',_0x27285e(0x1f1),_0x27285e(0x20a),'@univerjs/sheets-ui'],_0x47b542):(_0x31b4ea=typeof globalThis<'u'?globalThis:_0x31b4ea||self,_0x47b542(_0x31b4ea[_0x27285e(0x1d3)]={},_0x31b4ea[_0x27285e(0x1ec)],_0x31b4ea[_0x27285e(0x1e4)],_0x31b4ea[_0x27285e(0x21e)],_0x31b4ea[_0x27285e(0x1e7)],_0x31b4ea['UniverSheetsUi']));}(this,function(_0x57df3f,_0xe62937,_0x50bcd9,_0x4cdf3d,_0x17986b,_0x437473){'use strict';const _0x79736e=_0x17bd;const _0x1f98c6={'id':_0x79736e(0x1e0),'type':_0x50bcd9[_0x79736e(0x1d2)]['OPERATION'],'handler':async _0x4898f2=>{const _0x15264b=_0x79736e,_0x3eff6d=_0x4898f2[_0x15264b(0x1df)](_0xe62937[_0x15264b(0x204)]);return new URLSearchParams(location[_0x15264b(0x1d4)])[_0x15264b(0x1df)](_0x15264b(0x1d9))?_0x3eff6d[_0x15264b(0x1e5)]():_0x3eff6d[_0x15264b(0x1f3)](),!0x0;}},_0x1fae6b={'id':_0x79736e(0x1de),'type':_0x50bcd9[_0x79736e(0x1d2)]['OPERATION'],'handler':async _0x2598ca=>{const _0x20aca9=_0x79736e,_0x1fd713=_0x2598ca['get'](_0xe62937[_0x20aca9(0x204)]);return new URLSearchParams(location[_0x20aca9(0x1d4)])[_0x20aca9(0x1df)](_0x20aca9(0x1d9))?_0x1fd713['exportXLSXByUnitId']():_0x1fd713[_0x20aca9(0x207)](),!0x0;}},_0x142120=_0x79736e(0x1f4),_0x32ec5c={},_0x16ea61=_0x79736e(0x206);function _0x27968c(_0x14e3e7){const _0x5ec9e0=_0x79736e;return{'id':_0x16ea61,'type':_0x4cdf3d[_0x5ec9e0(0x1f9)][_0x5ec9e0(0x1e6)],'icon':_0x5ec9e0(0x1f7),'tooltip':_0x5ec9e0(0x1d8),'hidden$':_0x4cdf3d[_0x5ec9e0(0x1db)](_0x14e3e7,_0x50bcd9['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0x437473['getCurrentRangeDisable$'](_0x14e3e7,{'workbookTypes':[_0x17986b['WorkbookExportPermission']]})};}function _0xfe4706(){const _0x4f0008=_0x79736e;return{'id':_0x1f98c6['id'],'type':_0x4cdf3d['MenuItemType'][_0x4f0008(0x20d)],'title':_0x4f0008(0x20c),'icon':'FolderIcon'};}function _0x4d51ce(){const _0x267544=_0x79736e;return{'id':_0x1fae6b['id'],'type':_0x4cdf3d['MenuItemType'][_0x267544(0x20d)],'title':'exchange.download','icon':_0x267544(0x214)};}const _0x262671={[_0x4cdf3d[_0x79736e(0x1ff)]['OTHERS']]:{[_0x16ea61]:{'order':0.3,'menuItemFactory':_0x27968c,[_0x1f98c6['id']]:{'order':0x0,'menuItemFactory':_0xfe4706},[_0x1fae6b['id']]:{'order':0x1,'menuItemFactory':_0x4d51ce}}}};var _0x25d578=Object[_0x79736e(0x1f2)],_0x4894e6=(_0xec2a76,_0x43c231,_0x528759,_0x1bc74)=>{const _0x5fe1f3=_0x79736e;for(var _0x449107=_0x1bc74>0x1?void 0x0:_0x1bc74?_0x25d578(_0x43c231,_0x528759):_0x43c231,_0x10df42=_0xec2a76[_0x5fe1f3(0x205)]-0x1,_0x4cdbb5;_0x10df42>=0x0;_0x10df42--)(_0x4cdbb5=_0xec2a76[_0x10df42])&&(_0x449107=_0x4cdbb5(_0x449107)||_0x449107);return _0x449107;},_0x58f876=(_0x5b2c7d,_0x5db73d)=>(_0xa72af4,_0x9da9a3)=>_0x5db73d(_0xa72af4,_0x9da9a3,_0x5b2c7d);let _0x2e7194=class extends _0x50bcd9['Disposable']{constructor(_0x1b0b04,_0x30ff5f){const _0x3edc0b=_0x79736e;super(),this[_0x3edc0b(0x203)]=_0x1b0b04,this[_0x3edc0b(0x1da)]=_0x30ff5f,this[_0x3edc0b(0x21a)](),this['_initMenus']();}['_initCommands'](){const _0x167c7c=_0x79736e;[_0x1f98c6,_0x1fae6b][_0x167c7c(0x1f8)](_0x2c50dc=>{const _0xfb46ce=_0x167c7c;this[_0xfb46ce(0x20e)](this[_0xfb46ce(0x203)][_0xfb46ce(0x1eb)](_0x2c50dc));});}[_0x79736e(0x1f0)](){const _0x145295=_0x79736e;this[_0x145295(0x1da)][_0x145295(0x201)](_0x262671);}};_0x2e7194=_0x4894e6([_0x58f876(0x0,_0x50bcd9[_0x79736e(0x1f6)]),_0x58f876(0x1,_0x4cdf3d[_0x79736e(0x21b)])],_0x2e7194);var _0x44b914=Object['defineProperty'],_0xcd7c2b=Object['getOwnPropertyDescriptor'],_0x86b5c2=(_0x183cbc,_0x298924,_0x3ec894)=>_0x298924 in _0x183cbc?_0x44b914(_0x183cbc,_0x298924,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ec894}):_0x183cbc[_0x298924]=_0x3ec894,_0x3e14b9=(_0x5a98ef,_0x1217c9,_0x3db52c,_0x5df626)=>{const _0x466cf9=_0x79736e;for(var _0x49e1a1=_0x5df626>0x1?void 0x0:_0x5df626?_0xcd7c2b(_0x1217c9,_0x3db52c):_0x1217c9,_0x118f59=_0x5a98ef[_0x466cf9(0x205)]-0x1,_0x13de2f;_0x118f59>=0x0;_0x118f59--)(_0x13de2f=_0x5a98ef[_0x118f59])&&(_0x49e1a1=_0x13de2f(_0x49e1a1)||_0x49e1a1);return _0x49e1a1;},_0x33b011=(_0x1b7f82,_0x280da9)=>(_0x3ee3c6,_0x489905)=>_0x280da9(_0x3ee3c6,_0x489905,_0x1b7f82),_0x1917cd=(_0x403a02,_0x29fe2f,_0x5b3fb5)=>_0x86b5c2(_0x403a02,typeof _0x29fe2f!='symbol'?_0x29fe2f+'':_0x29fe2f,_0x5b3fb5);const _0x3a801a=_0x79736e(0x210);_0x57df3f[_0x79736e(0x216)]=class extends _0x50bcd9[_0x79736e(0x219)]{constructor(_0x532629=_0x32ec5c,_0x54923c,_0x30556c){const _0xa45905=_0x79736e;super(),this[_0xa45905(0x215)]=_0x532629,this[_0xa45905(0x1fb)]=_0x54923c,this['_configService']=_0x30556c;const {menu:_0x386fb9,..._0x5542dc}=_0x50bcd9[_0xa45905(0x1fe)]({},_0x32ec5c,this[_0xa45905(0x215)]);_0x386fb9&&this[_0xa45905(0x1ea)][_0xa45905(0x1e2)](_0xa45905(0x1e3),_0x386fb9,{'merge':!0x0}),this[_0xa45905(0x1ea)][_0xa45905(0x1e2)](_0x142120,_0x5542dc);}[_0x79736e(0x20f)](){const _0x2808c7=_0x79736e;[[_0x2e7194]][_0x2808c7(0x1f8)](_0x5a3e4c=>this['_injector']['add'](_0x5a3e4c));}[_0x79736e(0x209)](){const _0xfbc284=_0x79736e;this[_0xfbc284(0x1fb)]['get'](_0x2e7194);}},_0x1917cd(_0x57df3f[_0x79736e(0x216)],_0x79736e(0x1d7),_0x3a801a),_0x1917cd(_0x57df3f[_0x79736e(0x216)],_0x79736e(0x1e8),_0x50bcd9['UniverInstanceType']['UNIVER_SHEET']),_0x57df3f[_0x79736e(0x216)]=_0x3e14b9([_0x50bcd9[_0x79736e(0x1d5)](_0xe62937[_0x79736e(0x1dd)]),_0x33b011(0x1,_0x50bcd9[_0x79736e(0x1e9)](_0x50bcd9['Injector'])),_0x33b011(0x2,_0x50bcd9[_0x79736e(0x1f5)])],_0x57df3f[_0x79736e(0x216)]),_0x57df3f['ExportXLSXOperation']=_0x1fae6b,_0x57df3f[_0x79736e(0x1d1)]=_0x1f98c6,Object[_0x79736e(0x20b)](_0x57df3f,Symbol[_0x79736e(0x213)],{'value':_0x79736e(0x1ee)});}));function _0x17bd(_0x1cc442,_0x5b1bde){const _0x34f864=_0x34f8();return _0x17bd=function(_0x17bdb7,_0x202c1c){_0x17bdb7=_0x17bdb7-0x1d1;let _0xc50f9a=_0x34f864[_0x17bdb7];return _0xc50f9a;},_0x17bd(_0x1cc442,_0x5b1bde);}function _0x34f8(){const _0x532948=['277596RpDPGI','_initMenus','@univerjs/ui','getOwnPropertyDescriptor','importXLSXToSnapshot','sheets-exchange-client.config','IConfigService','ICommandService','DirectExportIcon','forEach','MenuItemType','function','_injector','object','amd','merge','RibbonStartGroup','3nrnzDZ','mergeMenu','454cEPuWH','_commandService','IExchangeOperateService','length','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','12080403iusKXN','onReady','@univerjs/sheets','defineProperty','exchange.upload','BUTTON','disposeWithMe','onStarting','SHEET_EXCHANGE_CLIENT_PLUGIN','5266GAzVrA','19568868sfBdyo','toStringTag','ExportIcon','_config','UniverSheetsExchangeClientPlugin','364juTHsV','7ZDZsKR','Plugin','_initCommands','IMenuManagerService','8aSmBNQ','1180076jCtmMC','UniverUi','ImportXLSXOperation','CommandType','UniverProSheetsExchangeClient','search','DependentOn','10IXZTBN','pluginName','exchange.file','unit','_menuManagerService','getMenuHiddenObservable','9913296fCpaFQ','UniverExchangeClientPlugin','exchange-client.operation.export-xlsx','get','exchange-client.operation.import-xlsx','exports','setConfig','menu','UniverCore','importXLSXToUnitId','SUBITEMS','UniverSheets','type','Inject','_configService','registerCommand','UniverProExchangeClient','1360300OGnRCW','Module'];_0x34f8=function(){return _0x532948;};return _0x34f8();}
|
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.14-nightly.202511070628",
|
|
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
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/sheets
|
|
45
|
+
"@univerjs/core": "0.10.14-nightly.202511070628",
|
|
46
|
+
"@univerjs/sheets-ui": "0.10.14-nightly.202511070628",
|
|
47
|
+
"@univerjs/ui": "0.10.14-nightly.202511070628",
|
|
48
|
+
"@univerjs-pro/exchange-client": "0.10.14-nightly.202511070628",
|
|
49
|
+
"@univerjs/sheets": "0.10.14-nightly.202511070628"
|
|
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.14"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|