@univerjs-pro/sheets-exchange-client 0.13.0-insiders.20251220-0a5ea4d → 0.13.0-insiders.20251223-857805c
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';const
|
|
1
|
+
'use strict';const _0x1fdca1=_0x2f41;(function(_0x50c6e9,_0x3c8043){const _0x53915b=_0x2f41,_0x3f9e6e=_0x50c6e9();while(!![]){try{const _0x33ddd8=parseInt(_0x53915b(0x19e))/0x1*(-parseInt(_0x53915b(0x1b3))/0x2)+-parseInt(_0x53915b(0x17d))/0x3+parseInt(_0x53915b(0x19f))/0x4*(-parseInt(_0x53915b(0x175))/0x5)+parseInt(_0x53915b(0x187))/0x6+parseInt(_0x53915b(0x189))/0x7*(parseInt(_0x53915b(0x188))/0x8)+-parseInt(_0x53915b(0x176))/0x9+-parseInt(_0x53915b(0x17b))/0xa*(parseInt(_0x53915b(0x1a6))/0xb);if(_0x33ddd8===_0x3c8043)break;else _0x3f9e6e['push'](_0x3f9e6e['shift']());}catch(_0x2d6e92){_0x3f9e6e['push'](_0x3f9e6e['shift']());}}}(_0x1955,0x9b9d9));Object[_0x1fdca1(0x1af)](exports,Symbol[_0x1fdca1(0x1ae)],{'value':_0x1fdca1(0x170)});function _0x2f41(_0x50d3b1,_0x4426b7){_0x50d3b1=_0x50d3b1-0x170;const _0x195595=_0x1955();let _0x2f4187=_0x195595[_0x50d3b1];return _0x2f4187;}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':_0x1fdca1(0x18f),'type':i[_0x1fdca1(0x1a9)][_0x1fdca1(0x17c)],'handler':async _0x8683b=>{const _0x139118=_0x1fdca1,_0x27f898=_0x8683b[_0x139118(0x195)](g[_0x139118(0x185)]);return new URLSearchParams(location[_0x139118(0x190)])[_0x139118(0x195)](_0x139118(0x178))?_0x27f898[_0x139118(0x1a4)]():_0x27f898[_0x139118(0x19c)](),!0x0;}},p={'id':_0x1fdca1(0x192),'type':i['CommandType'][_0x1fdca1(0x17c)],'handler':async _0x5c1e65=>{const _0x136a11=_0x1fdca1,_0xb72dd=_0x5c1e65[_0x136a11(0x195)](g[_0x136a11(0x185)]);return new URLSearchParams(location[_0x136a11(0x190)])[_0x136a11(0x195)](_0x136a11(0x178))?_0xb72dd[_0x136a11(0x1b4)]():_0xb72dd[_0x136a11(0x18d)](),!0x0;}},v=_0x1fdca1(0x18e),h={},S=_0x1fdca1(0x1a0);function x(_0xc0c2e0){const _0x2f7fd4=_0x1fdca1;return{'id':S,'type':c[_0x2f7fd4(0x173)][_0x2f7fd4(0x1a5)],'icon':_0x2f7fd4(0x19b),'tooltip':_0x2f7fd4(0x1a1),'hidden$':c[_0x2f7fd4(0x1a8)](_0xc0c2e0,i[_0x2f7fd4(0x18a)][_0x2f7fd4(0x174)]),'disabled$':I[_0x2f7fd4(0x199)](_0xc0c2e0,{'workbookTypes':[_[_0x2f7fd4(0x17e)]]})};}function P(){const _0x22d9d8=_0x1fdca1;return{'id':l['id'],'type':c[_0x22d9d8(0x173)][_0x22d9d8(0x1b2)],'title':_0x22d9d8(0x1ad),'icon':'FolderIcon'};}function C(){const _0x3875e4=_0x1fdca1;return{'id':p['id'],'type':c['MenuItemType'][_0x3875e4(0x1b2)],'title':_0x3875e4(0x19a),'icon':_0x3875e4(0x18b)};}const f={[c[_0x1fdca1(0x1b0)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1fdca1(0x184)],y=(_0x78d288,_0x4eacf4,_0x3a7a11,_0x5c86c7)=>{const _0x5bfcfd=_0x1fdca1;for(var _0x4b5d48=_0x5c86c7>0x1?void 0x0:_0x5c86c7?T(_0x4eacf4,_0x3a7a11):_0x4eacf4,_0x137a8c=_0x78d288[_0x5bfcfd(0x179)]-0x1,_0x52cef3;_0x137a8c>=0x0;_0x137a8c--)(_0x52cef3=_0x78d288[_0x137a8c])&&(_0x4b5d48=_0x52cef3(_0x4b5d48)||_0x4b5d48);return _0x4b5d48;},m=(_0x45564d,_0x3a3907)=>(_0x4b9911,_0x5f1754)=>_0x3a3907(_0x4b9911,_0x5f1754,_0x45564d);let u=class extends i[_0x1fdca1(0x197)]{constructor(_0x1ad0e7,_0x26fe10){const _0x3a6ef6=_0x1fdca1;super(),this[_0x3a6ef6(0x1b1)]=_0x1ad0e7,this[_0x3a6ef6(0x186)]=_0x26fe10,this[_0x3a6ef6(0x180)](),this[_0x3a6ef6(0x19d)]();}['_initCommands'](){const _0x363900=_0x1fdca1;[l,p][_0x363900(0x1b5)](_0x4ad984=>{const _0x44fe7b=_0x363900;this['disposeWithMe'](this[_0x44fe7b(0x1b1)][_0x44fe7b(0x198)](_0x4ad984));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x1fdca1(0x193)]),m(0x1,c[_0x1fdca1(0x181)])],u);function _0x1955(){const _0x547e2a=['UniverSheetsExchangeClientPlugin','MenuItemType','UNIVER_SHEET','44765tbtuMH','1497141QHKzPl','ImportXLSXOperation','unit','length','_configService','1250260wcERuH','OPERATION','50334uVGdkL','WorkbookExportPermission','Inject','_initCommands','IMenuManagerService','_config','merge','getOwnPropertyDescriptor','IExchangeOperateService','_menuManagerService','4969182ammXfL','472xuocSj','130333YuETpz','UniverInstanceType','ExportIcon','onStarting','exportXLSXBySnapshot','sheets-exchange-client.config','exchange-client.operation.import-xlsx','search','onReady','exchange-client.operation.export-xlsx','ICommandService','symbol','get','UniverExchangeClientPlugin','Disposable','registerCommand','getCurrentRangeDisable$','exchange.download','DirectExportIcon','importXLSXToSnapshot','_initMenus','927446IfiEDT','24uzalyL','sheets-exchange-client.operation.exchange','exchange.file','ExportXLSXOperation','Plugin','importXLSXToUnitId','SUBITEMS','11KNrPvh','menu','getMenuHiddenObservable','CommandType','DependentOn','_injector','setConfig','exchange.upload','toStringTag','defineProperty','RibbonStartGroup','_commandService','BUTTON','2HMlGTz','exportXLSXByUnitId','forEach','Module','pluginName'];_0x1955=function(){return _0x547e2a;};return _0x1955();}var O=Object[_0x1fdca1(0x1af)],U=Object['getOwnPropertyDescriptor'],X=(_0x25f54e,_0x4515c9,_0x4ed0e4)=>_0x4515c9 in _0x25f54e?O(_0x25f54e,_0x4515c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ed0e4}):_0x25f54e[_0x4515c9]=_0x4ed0e4,N=(_0x39e5c4,_0x55c1ca,_0x3ff7b2,_0x3f02be)=>{const _0x1aad53=_0x1fdca1;for(var _0x3da35e=_0x3f02be>0x1?void 0x0:_0x3f02be?U(_0x55c1ca,_0x3ff7b2):_0x55c1ca,_0x450b69=_0x39e5c4[_0x1aad53(0x179)]-0x1,_0x1bb9e7;_0x450b69>=0x0;_0x450b69--)(_0x1bb9e7=_0x39e5c4[_0x450b69])&&(_0x3da35e=_0x1bb9e7(_0x3da35e)||_0x3da35e);return _0x3da35e;},d=(_0x4fddc3,_0x2bca43)=>(_0x55860b,_0x2ef552)=>_0x2bca43(_0x55860b,_0x2ef552,_0x4fddc3),E=(_0x2f6426,_0x527ffb,_0x64fe8)=>X(_0x2f6426,typeof _0x527ffb!=_0x1fdca1(0x194)?_0x527ffb+'':_0x527ffb,_0x64fe8);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1fdca1(0x172)]=class extends i[_0x1fdca1(0x1a3)]{constructor(_0x385215=h,_0x49dea0,_0x3b2022){const _0x1fa2e4=_0x1fdca1;super(),this['_config']=_0x385215,this[_0x1fa2e4(0x1ab)]=_0x49dea0,this[_0x1fa2e4(0x17a)]=_0x3b2022;const {menu:_0x2c11e1,..._0xf743cf}=i[_0x1fa2e4(0x183)]({},h,this[_0x1fa2e4(0x182)]);_0x2c11e1&&this[_0x1fa2e4(0x17a)][_0x1fa2e4(0x1ac)](_0x1fa2e4(0x1a7),_0x2c11e1,{'merge':!0x0}),this[_0x1fa2e4(0x17a)]['setConfig'](v,_0xf743cf);}[_0x1fdca1(0x18c)](){const _0x5b5ece=_0x1fdca1;[[u]][_0x5b5ece(0x1b5)](_0x4ec73f=>this['_injector']['add'](_0x4ec73f));}[_0x1fdca1(0x191)](){const _0x3444b9=_0x1fdca1;this[_0x3444b9(0x1ab)][_0x3444b9(0x195)](u);}},E(exports[_0x1fdca1(0x172)],_0x1fdca1(0x171),L),E(exports[_0x1fdca1(0x172)],'type',i[_0x1fdca1(0x18a)][_0x1fdca1(0x174)]),exports[_0x1fdca1(0x172)]=N([i[_0x1fdca1(0x1aa)](g[_0x1fdca1(0x196)]),d(0x1,i[_0x1fdca1(0x17f)](i['Injector'])),d(0x2,i['IConfigService'])],exports[_0x1fdca1(0x172)]),exports[_0x1fdca1(0x1a2)]=p,exports[_0x1fdca1(0x177)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x372cec=_0x4105;(function(_0x59333f,_0x1fd11c){const _0x5e73d6=_0x4105,_0x473d81=_0x59333f();while(!![]){try{const _0x3aaba9=parseInt(_0x5e73d6(0x1ac))/0x1*(parseInt(_0x5e73d6(0x1d8))/0x2)+-parseInt(_0x5e73d6(0x1b4))/0x3*(-parseInt(_0x5e73d6(0x1c8))/0x4)+parseInt(_0x5e73d6(0x1c0))/0x5+-parseInt(_0x5e73d6(0x1c4))/0x6+parseInt(_0x5e73d6(0x1d9))/0x7*(-parseInt(_0x5e73d6(0x1c5))/0x8)+parseInt(_0x5e73d6(0x1cb))/0x9+-parseInt(_0x5e73d6(0x1b2))/0xa*(parseInt(_0x5e73d6(0x1d7))/0xb);if(_0x3aaba9===_0x1fd11c)break;else _0x473d81['push'](_0x473d81['shift']());}catch(_0x24a7e7){_0x473d81['push'](_0x473d81['shift']());}}}(_0x3b35,0xbb6aa));import{IExchangeOperateService as _0x197611,UniverExchangeClientPlugin as _0x2dc2cc}from'@univerjs-pro/exchange-client';import{CommandType as _0x5aad29,UniverInstanceType as _0x4f7f7c,Disposable as _0x58bd06,ICommandService as _0x457e28,DependentOn as _0x4504a4,Inject as _0x12e82b,Injector as _0x68146e,IConfigService as _0x716a0e,Plugin as _0x30c9c9,merge as _0x46894d}from'@univerjs/core';import{MenuItemType as _0x12e2c2,getMenuHiddenObservable as _0x300090,RibbonStartGroup as _0x97aeaa,IMenuManagerService as _0x3106b7}from'@univerjs/ui';function _0x3b35(){const _0x4d95b8=['1572294aeoiWZ','888538kkNkZL','pluginName','onStarting','1eESWHX','defineProperty','BUTTON','_config','disposeWithMe','SUBITEMS','1888690gZOskC','sheets-exchange-client.operation.exchange','2166240CiLAYT','UNIVER_SHEET','FolderIcon','OPERATION','_configService','_initCommands','_commandService','OTHERS','importXLSXToUnitId','sheets-exchange-client.config','menu','add','1848380ZBAGyi','unit','onReady','exportXLSXByUnitId','8868342kxZjTE','64aPOcWv','setConfig','get','8LUVLWo','exchange.file','search','9350478CGFExX','registerCommand','exchange.download','length','_initMenus','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','DirectExportIcon','symbol','getOwnPropertyDescriptor','forEach','22qZsGBw'];_0x3b35=function(){return _0x4d95b8;};return _0x3b35();}import{WorkbookExportPermission as _0x5809b4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2c4f24}from'@univerjs/sheets-ui';const p={'id':_0x372cec(0x1d2),'type':_0x5aad29[_0x372cec(0x1b7)],'handler':async _0x3a23e1=>{const _0x14a1a0=_0x372cec,_0x2a75e5=_0x3a23e1[_0x14a1a0(0x1c7)](_0x197611);return new URLSearchParams(location[_0x14a1a0(0x1ca)])['get'](_0x14a1a0(0x1c1))?_0x2a75e5[_0x14a1a0(0x1bc)]():_0x2a75e5['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x372cec(0x1d1),'type':_0x5aad29['OPERATION'],'handler':async _0xefbbee=>{const _0x3b7e9f=_0x372cec,_0x12b486=_0xefbbee[_0x3b7e9f(0x1c7)](_0x197611);return new URLSearchParams(location['search'])[_0x3b7e9f(0x1c7)]('unit')?_0x12b486[_0x3b7e9f(0x1c3)]():_0x12b486[_0x3b7e9f(0x1d0)](),!0x0;}},H=_0x372cec(0x1bd),l={},S=_0x372cec(0x1b3);function R(_0x1f9289){const _0x216e92=_0x372cec;return{'id':S,'type':_0x12e2c2[_0x216e92(0x1b1)],'icon':_0x216e92(0x1d3),'tooltip':_0x216e92(0x1c9),'hidden$':_0x300090(_0x1f9289,_0x4f7f7c[_0x216e92(0x1b5)]),'disabled$':_0x2c4f24(_0x1f9289,{'workbookTypes':[_0x5809b4]})};}function w(){const _0x405066=_0x372cec;return{'id':p['id'],'type':_0x12e2c2['BUTTON'],'title':'exchange.upload','icon':_0x405066(0x1b6)};}function D(){const _0x2a71ca=_0x372cec;return{'id':u['id'],'type':_0x12e2c2[_0x2a71ca(0x1ae)],'title':_0x2a71ca(0x1cd),'icon':'ExportIcon'};}const F={[_0x97aeaa[_0x372cec(0x1bb)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x372cec(0x1d5)],A=(_0x5145bb,_0x2dc2d4,_0x92fbd7,_0x99730)=>{const _0x4deac4=_0x372cec;for(var _0x3ea1f7=_0x99730>0x1?void 0x0:_0x99730?G(_0x2dc2d4,_0x92fbd7):_0x2dc2d4,_0x4f78f2=_0x5145bb[_0x4deac4(0x1ce)]-0x1,_0x53d508;_0x4f78f2>=0x0;_0x4f78f2--)(_0x53d508=_0x5145bb[_0x4f78f2])&&(_0x3ea1f7=_0x53d508(_0x3ea1f7)||_0x3ea1f7);return _0x3ea1f7;},d=(_0x170964,_0x306af2)=>(_0x1b8306,_0x5a3002)=>_0x306af2(_0x1b8306,_0x5a3002,_0x170964);let c=class extends _0x58bd06{constructor(_0x5ba9e6,_0x72ebfb){const _0x5a831e=_0x372cec;super(),this['_commandService']=_0x5ba9e6,this['_menuManagerService']=_0x72ebfb,this[_0x5a831e(0x1b9)](),this['_initMenus']();}['_initCommands'](){const _0x2b5393=_0x372cec;[p,u][_0x2b5393(0x1d6)](_0x1c6d21=>{const _0x2c9e55=_0x2b5393;this[_0x2c9e55(0x1b0)](this[_0x2c9e55(0x1ba)][_0x2c9e55(0x1cc)](_0x1c6d21));});}[_0x372cec(0x1cf)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x457e28),d(0x1,_0x3106b7)],c);var j=Object[_0x372cec(0x1ad)],B=Object['getOwnPropertyDescriptor'],$=(_0x57e5d0,_0x3ab451,_0xba7201)=>_0x3ab451 in _0x57e5d0?j(_0x57e5d0,_0x3ab451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7201}):_0x57e5d0[_0x3ab451]=_0xba7201,V=(_0x49a3ee,_0x5add10,_0x4c6a20,_0x3179ce)=>{const _0x492f0d=_0x372cec;for(var _0x2d79cd=_0x3179ce>0x1?void 0x0:_0x3179ce?B(_0x5add10,_0x4c6a20):_0x5add10,_0x16074a=_0x49a3ee[_0x492f0d(0x1ce)]-0x1,_0x51afb8;_0x16074a>=0x0;_0x16074a--)(_0x51afb8=_0x49a3ee[_0x16074a])&&(_0x2d79cd=_0x51afb8(_0x2d79cd)||_0x2d79cd);return _0x2d79cd;},_=(_0x52f09d,_0x5d0d38)=>(_0x5c79b6,_0x351c59)=>_0x5d0d38(_0x5c79b6,_0x351c59,_0x52f09d),I=(_0x146f96,_0x211160,_0x41492d)=>$(_0x146f96,typeof _0x211160!=_0x372cec(0x1d4)?_0x211160+'':_0x211160,_0x41492d);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x4105(_0x5c974a,_0x5d5018){_0x5c974a=_0x5c974a-0x1ac;const _0x3b3598=_0x3b35();let _0x4105d8=_0x3b3598[_0x5c974a];return _0x4105d8;}let s=class extends _0x30c9c9{constructor(_0xd80499=l,_0x4dc67a,_0x55755a){const _0x1a852b=_0x372cec;super(),this[_0x1a852b(0x1af)]=_0xd80499,this['_injector']=_0x4dc67a,this[_0x1a852b(0x1b8)]=_0x55755a;const {menu:_0x44dd4e,..._0xa4e2fb}=_0x46894d({},l,this[_0x1a852b(0x1af)]);_0x44dd4e&&this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](_0x1a852b(0x1be),_0x44dd4e,{'merge':!0x0}),this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](H,_0xa4e2fb);}[_0x372cec(0x1db)](){const _0x988bec=_0x372cec;[[c]][_0x988bec(0x1d6)](_0x7fe6c2=>this['_injector'][_0x988bec(0x1bf)](_0x7fe6c2));}[_0x372cec(0x1c2)](){const _0x7bed9d=_0x372cec;this['_injector'][_0x7bed9d(0x1c7)](c);}};I(s,_0x372cec(0x1da),W),I(s,'type',_0x4f7f7c['UNIVER_SHEET']),s=V([_0x4504a4(_0x2dc2cc),_(0x1,_0x12e82b(_0x68146e)),_(0x2,_0x716a0e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x372cec=_0x4105;(function(_0x59333f,_0x1fd11c){const _0x5e73d6=_0x4105,_0x473d81=_0x59333f();while(!![]){try{const _0x3aaba9=parseInt(_0x5e73d6(0x1ac))/0x1*(parseInt(_0x5e73d6(0x1d8))/0x2)+-parseInt(_0x5e73d6(0x1b4))/0x3*(-parseInt(_0x5e73d6(0x1c8))/0x4)+parseInt(_0x5e73d6(0x1c0))/0x5+-parseInt(_0x5e73d6(0x1c4))/0x6+parseInt(_0x5e73d6(0x1d9))/0x7*(-parseInt(_0x5e73d6(0x1c5))/0x8)+parseInt(_0x5e73d6(0x1cb))/0x9+-parseInt(_0x5e73d6(0x1b2))/0xa*(parseInt(_0x5e73d6(0x1d7))/0xb);if(_0x3aaba9===_0x1fd11c)break;else _0x473d81['push'](_0x473d81['shift']());}catch(_0x24a7e7){_0x473d81['push'](_0x473d81['shift']());}}}(_0x3b35,0xbb6aa));import{IExchangeOperateService as _0x197611,UniverExchangeClientPlugin as _0x2dc2cc}from'@univerjs-pro/exchange-client';import{CommandType as _0x5aad29,UniverInstanceType as _0x4f7f7c,Disposable as _0x58bd06,ICommandService as _0x457e28,DependentOn as _0x4504a4,Inject as _0x12e82b,Injector as _0x68146e,IConfigService as _0x716a0e,Plugin as _0x30c9c9,merge as _0x46894d}from'@univerjs/core';import{MenuItemType as _0x12e2c2,getMenuHiddenObservable as _0x300090,RibbonStartGroup as _0x97aeaa,IMenuManagerService as _0x3106b7}from'@univerjs/ui';function _0x3b35(){const _0x4d95b8=['1572294aeoiWZ','888538kkNkZL','pluginName','onStarting','1eESWHX','defineProperty','BUTTON','_config','disposeWithMe','SUBITEMS','1888690gZOskC','sheets-exchange-client.operation.exchange','2166240CiLAYT','UNIVER_SHEET','FolderIcon','OPERATION','_configService','_initCommands','_commandService','OTHERS','importXLSXToUnitId','sheets-exchange-client.config','menu','add','1848380ZBAGyi','unit','onReady','exportXLSXByUnitId','8868342kxZjTE','64aPOcWv','setConfig','get','8LUVLWo','exchange.file','search','9350478CGFExX','registerCommand','exchange.download','length','_initMenus','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','DirectExportIcon','symbol','getOwnPropertyDescriptor','forEach','22qZsGBw'];_0x3b35=function(){return _0x4d95b8;};return _0x3b35();}import{WorkbookExportPermission as _0x5809b4}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2c4f24}from'@univerjs/sheets-ui';const p={'id':_0x372cec(0x1d2),'type':_0x5aad29[_0x372cec(0x1b7)],'handler':async _0x3a23e1=>{const _0x14a1a0=_0x372cec,_0x2a75e5=_0x3a23e1[_0x14a1a0(0x1c7)](_0x197611);return new URLSearchParams(location[_0x14a1a0(0x1ca)])['get'](_0x14a1a0(0x1c1))?_0x2a75e5[_0x14a1a0(0x1bc)]():_0x2a75e5['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x372cec(0x1d1),'type':_0x5aad29['OPERATION'],'handler':async _0xefbbee=>{const _0x3b7e9f=_0x372cec,_0x12b486=_0xefbbee[_0x3b7e9f(0x1c7)](_0x197611);return new URLSearchParams(location['search'])[_0x3b7e9f(0x1c7)]('unit')?_0x12b486[_0x3b7e9f(0x1c3)]():_0x12b486[_0x3b7e9f(0x1d0)](),!0x0;}},H=_0x372cec(0x1bd),l={},S=_0x372cec(0x1b3);function R(_0x1f9289){const _0x216e92=_0x372cec;return{'id':S,'type':_0x12e2c2[_0x216e92(0x1b1)],'icon':_0x216e92(0x1d3),'tooltip':_0x216e92(0x1c9),'hidden$':_0x300090(_0x1f9289,_0x4f7f7c[_0x216e92(0x1b5)]),'disabled$':_0x2c4f24(_0x1f9289,{'workbookTypes':[_0x5809b4]})};}function w(){const _0x405066=_0x372cec;return{'id':p['id'],'type':_0x12e2c2['BUTTON'],'title':'exchange.upload','icon':_0x405066(0x1b6)};}function D(){const _0x2a71ca=_0x372cec;return{'id':u['id'],'type':_0x12e2c2[_0x2a71ca(0x1ae)],'title':_0x2a71ca(0x1cd),'icon':'ExportIcon'};}const F={[_0x97aeaa[_0x372cec(0x1bb)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x372cec(0x1d5)],A=(_0x5145bb,_0x2dc2d4,_0x92fbd7,_0x99730)=>{const _0x4deac4=_0x372cec;for(var _0x3ea1f7=_0x99730>0x1?void 0x0:_0x99730?G(_0x2dc2d4,_0x92fbd7):_0x2dc2d4,_0x4f78f2=_0x5145bb[_0x4deac4(0x1ce)]-0x1,_0x53d508;_0x4f78f2>=0x0;_0x4f78f2--)(_0x53d508=_0x5145bb[_0x4f78f2])&&(_0x3ea1f7=_0x53d508(_0x3ea1f7)||_0x3ea1f7);return _0x3ea1f7;},d=(_0x170964,_0x306af2)=>(_0x1b8306,_0x5a3002)=>_0x306af2(_0x1b8306,_0x5a3002,_0x170964);let c=class extends _0x58bd06{constructor(_0x5ba9e6,_0x72ebfb){const _0x5a831e=_0x372cec;super(),this['_commandService']=_0x5ba9e6,this['_menuManagerService']=_0x72ebfb,this[_0x5a831e(0x1b9)](),this['_initMenus']();}['_initCommands'](){const _0x2b5393=_0x372cec;[p,u][_0x2b5393(0x1d6)](_0x1c6d21=>{const _0x2c9e55=_0x2b5393;this[_0x2c9e55(0x1b0)](this[_0x2c9e55(0x1ba)][_0x2c9e55(0x1cc)](_0x1c6d21));});}[_0x372cec(0x1cf)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x457e28),d(0x1,_0x3106b7)],c);var j=Object[_0x372cec(0x1ad)],B=Object['getOwnPropertyDescriptor'],$=(_0x57e5d0,_0x3ab451,_0xba7201)=>_0x3ab451 in _0x57e5d0?j(_0x57e5d0,_0x3ab451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7201}):_0x57e5d0[_0x3ab451]=_0xba7201,V=(_0x49a3ee,_0x5add10,_0x4c6a20,_0x3179ce)=>{const _0x492f0d=_0x372cec;for(var _0x2d79cd=_0x3179ce>0x1?void 0x0:_0x3179ce?B(_0x5add10,_0x4c6a20):_0x5add10,_0x16074a=_0x49a3ee[_0x492f0d(0x1ce)]-0x1,_0x51afb8;_0x16074a>=0x0;_0x16074a--)(_0x51afb8=_0x49a3ee[_0x16074a])&&(_0x2d79cd=_0x51afb8(_0x2d79cd)||_0x2d79cd);return _0x2d79cd;},_=(_0x52f09d,_0x5d0d38)=>(_0x5c79b6,_0x351c59)=>_0x5d0d38(_0x5c79b6,_0x351c59,_0x52f09d),I=(_0x146f96,_0x211160,_0x41492d)=>$(_0x146f96,typeof _0x211160!=_0x372cec(0x1d4)?_0x211160+'':_0x211160,_0x41492d);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';function _0x4105(_0x5c974a,_0x5d5018){_0x5c974a=_0x5c974a-0x1ac;const _0x3b3598=_0x3b35();let _0x4105d8=_0x3b3598[_0x5c974a];return _0x4105d8;}let s=class extends _0x30c9c9{constructor(_0xd80499=l,_0x4dc67a,_0x55755a){const _0x1a852b=_0x372cec;super(),this[_0x1a852b(0x1af)]=_0xd80499,this['_injector']=_0x4dc67a,this[_0x1a852b(0x1b8)]=_0x55755a;const {menu:_0x44dd4e,..._0xa4e2fb}=_0x46894d({},l,this[_0x1a852b(0x1af)]);_0x44dd4e&&this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](_0x1a852b(0x1be),_0x44dd4e,{'merge':!0x0}),this[_0x1a852b(0x1b8)][_0x1a852b(0x1c6)](H,_0xa4e2fb);}[_0x372cec(0x1db)](){const _0x988bec=_0x372cec;[[c]][_0x988bec(0x1d6)](_0x7fe6c2=>this['_injector'][_0x988bec(0x1bf)](_0x7fe6c2));}[_0x372cec(0x1c2)](){const _0x7bed9d=_0x372cec;this['_injector'][_0x7bed9d(0x1c7)](c);}};I(s,_0x372cec(0x1da),W),I(s,'type',_0x4f7f7c['UNIVER_SHEET']),s=V([_0x4504a4(_0x2dc2cc),_(0x1,_0x12e82b(_0x68146e)),_(0x2,_0x716a0e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48880d,_0x179fb2){const _0x4f3863=_0xd723,_0x1412a9=_0x48880d();while(!![]){try{const _0x30c6b9=parseInt(_0x4f3863(0x1c8))/0x1+-parseInt(_0x4f3863(0x1d3))/0x2+parseInt(_0x4f3863(0x1fc))/0x3*(-parseInt(_0x4f3863(0x1fd))/0x4)+parseInt(_0x4f3863(0x200))/0x5*(parseInt(_0x4f3863(0x1e5))/0x6)+parseInt(_0x4f3863(0x1ce))/0x7+parseInt(_0x4f3863(0x209))/0x8*(parseInt(_0x4f3863(0x1de))/0x9)+-parseInt(_0x4f3863(0x207))/0xa;if(_0x30c6b9===_0x179fb2)break;else _0x1412a9['push'](_0x1412a9['shift']());}catch(_0x299089){_0x1412a9['push'](_0x1412a9['shift']());}}}(_0x5d1b,0x8b9a5),function(_0x1e1c24,_0x5df32f){const _0x4ff20d=_0xd723;typeof exports==_0x4ff20d(0x1e8)&&typeof module<'u'?_0x5df32f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4ff20d(0x1e1)&&define[_0x4ff20d(0x208)]?define(['exports','@univerjs-pro/exchange-client',_0x4ff20d(0x1d2),_0x4ff20d(0x1e3),_0x4ff20d(0x1fa),'@univerjs/sheets-ui'],_0x5df32f):(_0x1e1c24=typeof globalThis<'u'?globalThis:_0x1e1c24||self,_0x5df32f(_0x1e1c24['UniverProSheetsExchangeClient']={},_0x1e1c24[_0x4ff20d(0x1c6)],_0x1e1c24['UniverCore'],_0x1e1c24[_0x4ff20d(0x1ec)],_0x1e1c24[_0x4ff20d(0x1d8)],_0x1e1c24[_0x4ff20d(0x1ff)]));}(this,function(_0x2e0c38,_0x151fcb,_0x45366e,_0x5f0a57,_0x3feae2,_0x358c05){'use strict';const _0x374788=_0xd723;const _0x512b5a={'id':'exchange-client.operation.import-xlsx','type':_0x45366e[_0x374788(0x1d1)][_0x374788(0x1f6)],'handler':async _0x599437=>{const _0x430e2c=_0x374788,_0x2f9d2f=_0x599437[_0x430e2c(0x1f4)](_0x151fcb[_0x430e2c(0x1e9)]);return new URLSearchParams(location['search'])[_0x430e2c(0x1f4)](_0x430e2c(0x1c5))?_0x2f9d2f[_0x430e2c(0x1d6)]():_0x2f9d2f[_0x430e2c(0x1da)](),!0x0;}},_0x53d88f={'id':_0x374788(0x1f1),'type':_0x45366e['CommandType']['OPERATION'],'handler':async _0xa027c9=>{const _0x2d5334=_0x374788,_0x907124=_0xa027c9[_0x2d5334(0x1f4)](_0x151fcb[_0x2d5334(0x1e9)]);return new URLSearchParams(location[_0x2d5334(0x1d0)])[_0x2d5334(0x1f4)](_0x2d5334(0x1c5))?_0x907124[_0x2d5334(0x1e2)]():_0x907124['exportXLSXBySnapshot'](),!0x0;}},_0x4bccb1=_0x374788(0x1cb),_0x1f9d09={},_0x280abd=_0x374788(0x1d9);function _0x5e8c75(_0x20e57b){const _0x177fe0=_0x374788;return{'id':_0x280abd,'type':_0x5f0a57['MenuItemType']['SUBITEMS'],'icon':_0x177fe0(0x1e6),'tooltip':_0x177fe0(0x1ca),'hidden$':_0x5f0a57[_0x177fe0(0x1f5)](_0x20e57b,_0x45366e['UniverInstanceType'][_0x177fe0(0x1c9)]),'disabled$':_0x358c05[_0x177fe0(0x1d4)](_0x20e57b,{'workbookTypes':[_0x3feae2['WorkbookExportPermission']]})};}function _0x1746dc(){const _0x255277=_0x374788;return{'id':_0x512b5a['id'],'type':_0x5f0a57[_0x255277(0x1d7)][_0x255277(0x1f0)],'title':_0x255277(0x1dd),'icon':_0x255277(0x202)};}function _0xc6d318(){const _0x38f5c5=_0x374788;return{'id':_0x53d88f['id'],'type':_0x5f0a57['MenuItemType']['BUTTON'],'title':'exchange.download','icon':_0x38f5c5(0x1cc)};}const _0x3c8ce3={[_0x5f0a57[_0x374788(0x203)][_0x374788(0x201)]]:{[_0x280abd]:{'order':0.3,'menuItemFactory':_0x5e8c75,[_0x512b5a['id']]:{'order':0x0,'menuItemFactory':_0x1746dc},[_0x53d88f['id']]:{'order':0x1,'menuItemFactory':_0xc6d318}}}};var _0x24b212=Object[_0x374788(0x1ee)],_0x57cac2=(_0x407e8c,_0x37022b,_0x3dc08e,_0xb79653)=>{for(var _0x5143b6=_0xb79653>0x1?void 0x0:_0xb79653?_0x24b212(_0x37022b,_0x3dc08e):_0x37022b,_0x48238b=_0x407e8c['length']-0x1,_0x5328fd;_0x48238b>=0x0;_0x48238b--)(_0x5328fd=_0x407e8c[_0x48238b])&&(_0x5143b6=_0x5328fd(_0x5143b6)||_0x5143b6);return _0x5143b6;},_0x3fa447=(_0x1f5525,_0x393480)=>(_0x7acf58,_0x828d6)=>_0x393480(_0x7acf58,_0x828d6,_0x1f5525);let _0x47860c=class extends _0x45366e[_0x374788(0x1db)]{constructor(_0x2a1e6a,_0x3511de){const _0x25a992=_0x374788;super(),this[_0x25a992(0x1e7)]=_0x2a1e6a,this[_0x25a992(0x1c4)]=_0x3511de,this['_initCommands'](),this['_initMenus']();}[_0x374788(0x1eb)](){[_0x512b5a,_0x53d88f]['forEach'](_0x4d97bb=>{const _0x880c52=_0xd723;this[_0x880c52(0x1fb)](this[_0x880c52(0x1e7)]['registerCommand'](_0x4d97bb));});}['_initMenus'](){const _0x106da9=_0x374788;this['_menuManagerService'][_0x106da9(0x1e0)](_0x3c8ce3);}};_0x47860c=_0x57cac2([_0x3fa447(0x0,_0x45366e[_0x374788(0x1f9)]),_0x3fa447(0x1,_0x5f0a57[_0x374788(0x204)])],_0x47860c);var _0x375d19=Object[_0x374788(0x1c2)],_0x1cba19=Object[_0x374788(0x1ee)],_0x572c28=(_0x4bb0f2,_0x415e9f,_0x15e1a8)=>_0x415e9f in _0x4bb0f2?_0x375d19(_0x4bb0f2,_0x415e9f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15e1a8}):_0x4bb0f2[_0x415e9f]=_0x15e1a8,_0xe121b4=(_0x177f44,_0x49d2ba,_0x3fc104,_0x499fcb)=>{const _0x21c633=_0x374788;for(var _0x3a5545=_0x499fcb>0x1?void 0x0:_0x499fcb?_0x1cba19(_0x49d2ba,_0x3fc104):_0x49d2ba,_0x4730db=_0x177f44[_0x21c633(0x1ef)]-0x1,_0x261bca;_0x4730db>=0x0;_0x4730db--)(_0x261bca=_0x177f44[_0x4730db])&&(_0x3a5545=_0x261bca(_0x3a5545)||_0x3a5545);return _0x3a5545;},_0x1d1dd9=(_0x3d6afa,_0x58e736)=>(_0x202160,_0x550134)=>_0x58e736(_0x202160,_0x550134,_0x3d6afa),_0x22b271=(_0x147c10,_0x3cc77a,_0x13b3d1)=>_0x572c28(_0x147c10,typeof _0x3cc77a!='symbol'?_0x3cc77a+'':_0x3cc77a,_0x13b3d1);const _0x3d0e9b='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x2e0c38[_0x374788(0x1df)]=class extends _0x45366e[_0x374788(0x1e4)]{constructor(_0xa967eb=_0x1f9d09,_0x32c003,_0x2f9133){const _0x37bb7f=_0x374788;super(),this[_0x37bb7f(0x205)]=_0xa967eb,this[_0x37bb7f(0x1dc)]=_0x32c003,this[_0x37bb7f(0x1f7)]=_0x2f9133;const {menu:_0x1a9d9c,..._0x2f03e0}=_0x45366e['merge']({},_0x1f9d09,this[_0x37bb7f(0x205)]);_0x1a9d9c&&this[_0x37bb7f(0x1f7)][_0x37bb7f(0x1c3)](_0x37bb7f(0x1ed),_0x1a9d9c,{'merge':!0x0}),this[_0x37bb7f(0x1f7)][_0x37bb7f(0x1c3)](_0x4bccb1,_0x2f03e0);}[_0x374788(0x1f3)](){const _0x233c00=_0x374788;[[_0x47860c]][_0x233c00(0x1c7)](_0x1974f0=>this[_0x233c00(0x1dc)]['add'](_0x1974f0));}[_0x374788(0x1f8)](){const _0x51c8ed=_0x374788;this['_injector'][_0x51c8ed(0x1f4)](_0x47860c);}},_0x22b271(_0x2e0c38[_0x374788(0x1df)],'pluginName',_0x3d0e9b),_0x22b271(_0x2e0c38['UniverSheetsExchangeClientPlugin'],'type',_0x45366e[_0x374788(0x1ea)][_0x374788(0x1c9)]),_0x2e0c38['UniverSheetsExchangeClientPlugin']=_0xe121b4([_0x45366e[_0x374788(0x1d5)](_0x151fcb[_0x374788(0x1fe)]),_0x1d1dd9(0x1,_0x45366e[_0x374788(0x1cf)](_0x45366e[_0x374788(0x1cd)])),_0x1d1dd9(0x2,_0x45366e[_0x374788(0x206)])],_0x2e0c38[_0x374788(0x1df)]),_0x2e0c38['ExportXLSXOperation']=_0x53d88f,_0x2e0c38['ImportXLSXOperation']=_0x512b5a,Object[_0x374788(0x1c2)](_0x2e0c38,Symbol[_0x374788(0x1f2)],{'value':'Module'});}));function _0xd723(_0x4d117e,_0x2a8ad1){_0x4d117e=_0x4d117e-0x1c2;const _0x5d1bf6=_0x5d1b();let _0xd723ae=_0x5d1bf6[_0x4d117e];return _0xd723ae;}function _0x5d1b(){const _0x18cae8=['amd','24kBASnH','defineProperty','setConfig','_menuManagerService','unit','UniverProExchangeClient','forEach','13687QISqVw','UNIVER_SHEET','exchange.file','sheets-exchange-client.config','ExportIcon','Injector','739200CzOqaf','Inject','search','CommandType','@univerjs/core','1251862dFgMIi','getCurrentRangeDisable$','DependentOn','importXLSXToUnitId','MenuItemType','UniverSheets','sheets-exchange-client.operation.exchange','importXLSXToSnapshot','Disposable','_injector','exchange.upload','1295352AXbuBT','UniverSheetsExchangeClientPlugin','mergeMenu','function','exportXLSXByUnitId','@univerjs/ui','Plugin','318wtKAkl','DirectExportIcon','_commandService','object','IExchangeOperateService','UniverInstanceType','_initCommands','UniverUi','menu','getOwnPropertyDescriptor','length','BUTTON','exchange-client.operation.export-xlsx','toStringTag','onStarting','get','getMenuHiddenObservable','OPERATION','_configService','onReady','ICommandService','@univerjs/sheets','disposeWithMe','563067rTehib','4vLEGXz','UniverExchangeClientPlugin','UniverSheetsUi','101755Rluchy','OTHERS','FolderIcon','RibbonStartGroup','IMenuManagerService','_config','IConfigService','2442410fSsCWt'];_0x5d1b=function(){return _0x18cae8;};return _0x5d1b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251223-857805c",
|
|
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-pro/exchange-client": "0.13.0-insiders.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/ui": "0.13.0-insiders.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.13.0-insiders.20251223-857805c",
|
|
46
|
+
"@univerjs/sheets": "0.13.0-insiders.20251223-857805c",
|
|
47
|
+
"@univerjs/core": "0.13.0-insiders.20251223-857805c",
|
|
48
|
+
"@univerjs/ui": "0.13.0-insiders.20251223-857805c",
|
|
49
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251223-857805c"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|