@univerjs-pro/sheets-exchange-client 0.15.4 → 0.15.5
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x21a1fe=_0x359c;(function(_0x420fdd,_0x49c82b){const _0x1146a6=_0x359c,_0x29143a=_0x420fdd();while(!![]){try{const _0x4036b8=-parseInt(_0x1146a6(0x14c))/0x1*(parseInt(_0x1146a6(0x145))/0x2)+parseInt(_0x1146a6(0x148))/0x3*(-parseInt(_0x1146a6(0x156))/0x4)+-parseInt(_0x1146a6(0x138))/0x5*(parseInt(_0x1146a6(0x12d))/0x6)+-parseInt(_0x1146a6(0x13e))/0x7*(-parseInt(_0x1146a6(0x159))/0x8)+-parseInt(_0x1146a6(0x12e))/0x9+parseInt(_0x1146a6(0x15f))/0xa*(parseInt(_0x1146a6(0x139))/0xb)+-parseInt(_0x1146a6(0x12b))/0xc*(-parseInt(_0x1146a6(0x15a))/0xd);if(_0x4036b8===_0x49c82b)break;else _0x29143a['push'](_0x29143a['shift']());}catch(_0x4aa535){_0x29143a['push'](_0x29143a['shift']());}}}(_0x3f67,0xc2c5e));Object[_0x21a1fe(0x13f)](exports,Symbol[_0x21a1fe(0x15e)],{'value':_0x21a1fe(0x130)});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':_0x21a1fe(0x141),'type':i['CommandType']['OPERATION'],'handler':async _0x31b3b4=>{const _0x3dfbec=_0x21a1fe,_0x566788=_0x31b3b4['get'](g[_0x3dfbec(0x137)]);return new URLSearchParams(location[_0x3dfbec(0x143)])[_0x3dfbec(0x161)]('unit')?_0x566788[_0x3dfbec(0x151)]():_0x566788['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x21a1fe(0x123),'type':i[_0x21a1fe(0x13b)][_0x21a1fe(0x162)],'handler':async _0xf32e99=>{const _0xde136a=_0x21a1fe,_0x5ed2b2=_0xf32e99[_0xde136a(0x161)](g[_0xde136a(0x137)]);return new URLSearchParams(location[_0xde136a(0x143)])[_0xde136a(0x161)]('unit')?_0x5ed2b2[_0xde136a(0x133)]():_0x5ed2b2[_0xde136a(0x150)](),!0x0;}},v=_0x21a1fe(0x155),h={},S=_0x21a1fe(0x158);function x(_0x34436b){const _0x20ff4f=_0x21a1fe;return{'id':S,'type':c[_0x20ff4f(0x14a)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0x20ff4f(0x131)](_0x34436b,i[_0x20ff4f(0x154)][_0x20ff4f(0x12c)]),'disabled$':I[_0x20ff4f(0x146)](_0x34436b,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x475ec1=_0x21a1fe;return{'id':l['id'],'type':c[_0x475ec1(0x14a)][_0x475ec1(0x132)],'title':_0x475ec1(0x12a),'icon':_0x475ec1(0x15c)};}function C(){const _0x214541=_0x21a1fe;return{'id':p['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x214541(0x152),'icon':'ExportIcon'};}const f={[c[_0x21a1fe(0x14f)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x21a1fe(0x142)],y=(_0x557891,_0x282a27,_0x3f8666,_0x3fdf9b)=>{const _0x5c6709=_0x21a1fe;for(var _0x3025c0=_0x3fdf9b>0x1?void 0x0:_0x3fdf9b?T(_0x282a27,_0x3f8666):_0x282a27,_0x50b7b3=_0x557891[_0x5c6709(0x147)]-0x1,_0x2aa2e7;_0x50b7b3>=0x0;_0x50b7b3--)(_0x2aa2e7=_0x557891[_0x50b7b3])&&(_0x3025c0=_0x2aa2e7(_0x3025c0)||_0x3025c0);return _0x3025c0;},m=(_0x1ca5d3,_0x3d0890)=>(_0x372233,_0x478921)=>_0x3d0890(_0x372233,_0x478921,_0x1ca5d3);let u=class extends i[_0x21a1fe(0x14d)]{constructor(_0x1389d0,_0x515446){const _0x11eca2=_0x21a1fe;super(),this[_0x11eca2(0x12f)]=_0x1389d0,this['_menuManagerService']=_0x515446,this[_0x11eca2(0x15d)](),this['_initMenus']();}[_0x21a1fe(0x15d)](){const _0x45ad16=_0x21a1fe;[l,p][_0x45ad16(0x135)](_0x42cb15=>{const _0x18a0e3=_0x45ad16;this[_0x18a0e3(0x140)](this['_commandService']['registerCommand'](_0x42cb15));});}[_0x21a1fe(0x129)](){const _0x50ba1d=_0x21a1fe;this[_0x50ba1d(0x160)][_0x50ba1d(0x127)](f);}};u=y([m(0x0,i[_0x21a1fe(0x15b)]),m(0x1,c[_0x21a1fe(0x13a)])],u);var O=Object[_0x21a1fe(0x13f)],U=Object[_0x21a1fe(0x142)],X=(_0x55f8b7,_0xe7a010,_0x33d4e9)=>_0xe7a010 in _0x55f8b7?O(_0x55f8b7,_0xe7a010,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33d4e9}):_0x55f8b7[_0xe7a010]=_0x33d4e9,N=(_0x59e149,_0x1e3dbe,_0x5d7278,_0x373de7)=>{const _0x10c741=_0x21a1fe;for(var _0x54f408=_0x373de7>0x1?void 0x0:_0x373de7?U(_0x1e3dbe,_0x5d7278):_0x1e3dbe,_0x33700f=_0x59e149[_0x10c741(0x147)]-0x1,_0x8bc127;_0x33700f>=0x0;_0x33700f--)(_0x8bc127=_0x59e149[_0x33700f])&&(_0x54f408=_0x8bc127(_0x54f408)||_0x54f408);return _0x54f408;},d=(_0x2bb5ef,_0x2fd853)=>(_0x540593,_0x392f23)=>_0x2fd853(_0x540593,_0x392f23,_0x2bb5ef),E=(_0x48431c,_0x59cf07,_0x101a44)=>X(_0x48431c,typeof _0x59cf07!=_0x21a1fe(0x14b)?_0x59cf07+'':_0x59cf07,_0x101a44);function _0x359c(_0x27e81f,_0x573166){_0x27e81f=_0x27e81f-0x123;const _0x3f6737=_0x3f67();let _0x359c92=_0x3f6737[_0x27e81f];return _0x359c92;}function _0x3f67(){const _0x1740e4=['28790LQgyIa','_menuManagerService','get','OPERATION','exchange-client.operation.export-xlsx','UniverSheetsExchangeClientPlugin','ImportXLSXOperation','setConfig','mergeMenu','Injector','_initMenus','exchange.upload','6963192jCveMy','UNIVER_SHEET','30HIdOfO','7817814liUwKO','_commandService','Module','getMenuHiddenObservable','BUTTON','exportXLSXByUnitId','_config','forEach','type','IExchangeOperateService','1428770tIixQj','5599HtxwNK','IMenuManagerService','CommandType','Inject','_injector','49GxkWxo','defineProperty','disposeWithMe','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','search','UniverExchangeClientPlugin','1855606fhtlJv','getCurrentRangeDisable$','length','6570LclRXT','_configService','MenuItemType','symbol','1mlJYGr','Disposable','onReady','RibbonStartGroup','exportXLSXBySnapshot','importXLSXToUnitId','exchange.download','DependentOn','UniverInstanceType','sheets-exchange-client.config','2836aJJIYf','pluginName','sheets-exchange-client.operation.exchange','718528ADaeaR','78bMidpz','ICommandService','FolderIcon','_initCommands','toStringTag'];_0x3f67=function(){return _0x1740e4;};return _0x3f67();}const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x21a1fe(0x124)]=class extends i['Plugin']{constructor(_0x26e2b1=h,_0x1748e9,_0x4ebdc1){const _0x5b79bf=_0x21a1fe;super(),this[_0x5b79bf(0x134)]=_0x26e2b1,this[_0x5b79bf(0x13d)]=_0x1748e9,this[_0x5b79bf(0x149)]=_0x4ebdc1;const {menu:_0x6b8613,..._0x207e99}=i['merge']({},h,this[_0x5b79bf(0x134)]);_0x6b8613&&this[_0x5b79bf(0x149)]['setConfig']('menu',_0x6b8613,{'merge':!0x0}),this[_0x5b79bf(0x149)][_0x5b79bf(0x126)](v,_0x207e99);}['onStarting'](){const _0x3d680a=_0x21a1fe;[[u]][_0x3d680a(0x135)](_0x195c89=>this[_0x3d680a(0x13d)]['add'](_0x195c89));}[_0x21a1fe(0x14e)](){const _0x34b661=_0x21a1fe;this[_0x34b661(0x13d)][_0x34b661(0x161)](u);}},E(exports[_0x21a1fe(0x124)],_0x21a1fe(0x157),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x21a1fe(0x136),i[_0x21a1fe(0x154)][_0x21a1fe(0x12c)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x21a1fe(0x153)](g[_0x21a1fe(0x144)]),d(0x1,i[_0x21a1fe(0x13c)](i[_0x21a1fe(0x128)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x21a1fe(0x125)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3a5445=_0x2382;(function(_0x3d2ada,_0x32e1a2){const _0x2696f0=_0x2382,_0x2ce9e1=_0x3d2ada();while(!![]){try{const _0x4eeb74=parseInt(_0x2696f0(0x111))/0x1+-parseInt(_0x2696f0(0x116))/0x2+-parseInt(_0x2696f0(0x12f))/0x3*(-parseInt(_0x2696f0(0x12d))/0x4)+-parseInt(_0x2696f0(0x110))/0x5+-parseInt(_0x2696f0(0x10c))/0x6*(-parseInt(_0x2696f0(0x126))/0x7)+parseInt(_0x2696f0(0x12b))/0x8*(parseInt(_0x2696f0(0x11f))/0x9)+parseInt(_0x2696f0(0x120))/0xa*(-parseInt(_0x2696f0(0x12e))/0xb);if(_0x4eeb74===_0x32e1a2)break;else _0x2ce9e1['push'](_0x2ce9e1['shift']());}catch(_0x452247){_0x2ce9e1['push'](_0x2ce9e1['shift']());}}}(_0x3209,0x9e7b0));import{IExchangeOperateService as _0x472df0,UniverExchangeClientPlugin as _0x3a2933}from'@univerjs-pro/exchange-client';function _0x3209(){const _0x48195e=['search','_injector','exchange-client.operation.import-xlsx','SUBITEMS','2056720nAEZIf','_initCommands','type','_configService','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','_config','exchange.download','_menuManagerService','106695nqABIc','20gvPfYj','unit','getOwnPropertyDescriptor','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','UNIVER_SHEET','63bnoywA','FolderIcon','pluginName','defineProperty','setConfig','840fIbGSx','forEach','503124ILuhfX','4751560qQoSUX','9ZeDdrT','onStarting','get','sheets-exchange-client.config','_commandService','onReady','exchange.upload','mergeMenu','BUTTON','OPERATION','importXLSXToSnapshot','128532xCHCdW','_initMenus','importXLSXToUnitId','exportXLSXByUnitId','416460XeQOti','809792gWPIOE'];_0x3209=function(){return _0x48195e;};return _0x3209();}import{CommandType as _0x3c7cc0,UniverInstanceType as _0x36a8ce,Disposable as _0x41da8b,ICommandService as _0x6113ed,DependentOn as _0x36693f,Inject as _0x5554b0,Injector as _0x1f9a24,Plugin as _0x5bec80,merge as _0x4faf89,IConfigService as _0x58f675}from'@univerjs/core';import{MenuItemType as _0x94bdc1,getMenuHiddenObservable as _0x236196,RibbonStartGroup as _0x56a078,IMenuManagerService as _0x54340d}from'@univerjs/ui';import{WorkbookExportPermission as _0x576331}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x28166d}from'@univerjs/sheets-ui';function _0x2382(_0x5e7678,_0x56d8ae){_0x5e7678=_0x5e7678-0x10c;const _0x32090d=_0x3209();let _0x238224=_0x32090d[_0x5e7678];return _0x238224;}const p={'id':_0x3a5445(0x114),'type':_0x3c7cc0['OPERATION'],'handler':async _0x5e854c=>{const _0x3f4cbd=_0x3a5445,_0x1df30f=_0x5e854c[_0x3f4cbd(0x131)](_0x472df0);return new URLSearchParams(location[_0x3f4cbd(0x112)])[_0x3f4cbd(0x131)](_0x3f4cbd(0x121))?_0x1df30f[_0x3f4cbd(0x10e)]():_0x1df30f[_0x3f4cbd(0x139)](),!0x0;}},u={'id':_0x3a5445(0x11b),'type':_0x3c7cc0[_0x3a5445(0x138)],'handler':async _0x26bb72=>{const _0x13f38e=_0x3a5445,_0x42108c=_0x26bb72[_0x13f38e(0x131)](_0x472df0);return new URLSearchParams(location[_0x13f38e(0x112)])[_0x13f38e(0x131)](_0x13f38e(0x121))?_0x42108c[_0x13f38e(0x10f)]():_0x42108c[_0x13f38e(0x11a)](),!0x0;}},H=_0x3a5445(0x132),l={},S='sheets-exchange-client.operation.exchange';function R(_0x3e0666){const _0x27e762=_0x3a5445;return{'id':S,'type':_0x94bdc1[_0x27e762(0x115)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x236196(_0x3e0666,_0x36a8ce['UNIVER_SHEET']),'disabled$':_0x28166d(_0x3e0666,{'workbookTypes':[_0x576331]})};}function w(){const _0x3dadc6=_0x3a5445;return{'id':p['id'],'type':_0x94bdc1[_0x3dadc6(0x137)],'title':_0x3dadc6(0x135),'icon':_0x3dadc6(0x127)};}function D(){const _0x2dc8ae=_0x3a5445;return{'id':u['id'],'type':_0x94bdc1[_0x2dc8ae(0x137)],'title':_0x2dc8ae(0x11d),'icon':'ExportIcon'};}const F={[_0x56a078['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3a5445(0x122)],A=(_0x2c1fee,_0x27c2ef,_0x3549c7,_0x2c6bc3)=>{for(var _0xc6ad2=_0x2c6bc3>0x1?void 0x0:_0x2c6bc3?G(_0x27c2ef,_0x3549c7):_0x27c2ef,_0x23e9c0=_0x2c1fee['length']-0x1,_0x29131a;_0x23e9c0>=0x0;_0x23e9c0--)(_0x29131a=_0x2c1fee[_0x23e9c0])&&(_0xc6ad2=_0x29131a(_0xc6ad2)||_0xc6ad2);return _0xc6ad2;},d=(_0x45c41d,_0x26c689)=>(_0x546ca3,_0x1aa3e0)=>_0x26c689(_0x546ca3,_0x1aa3e0,_0x45c41d);let c=class extends _0x41da8b{constructor(_0x45e82c,_0x1d9ab0){const _0x3f1468=_0x3a5445;super(),this[_0x3f1468(0x133)]=_0x45e82c,this[_0x3f1468(0x11e)]=_0x1d9ab0,this[_0x3f1468(0x117)](),this[_0x3f1468(0x10d)]();}[_0x3a5445(0x117)](){const _0x320aa8=_0x3a5445;[p,u][_0x320aa8(0x12c)](_0x56084c=>{const _0x22c052=_0x320aa8;this[_0x22c052(0x124)](this[_0x22c052(0x133)]['registerCommand'](_0x56084c));});}[_0x3a5445(0x10d)](){const _0x23cbf3=_0x3a5445;this[_0x23cbf3(0x11e)][_0x23cbf3(0x136)](F);}};c=A([d(0x0,_0x6113ed),d(0x1,_0x54340d)],c);var j=Object[_0x3a5445(0x129)],B=Object[_0x3a5445(0x122)],$=(_0x9c8766,_0x4183e9,_0x173dee)=>_0x4183e9 in _0x9c8766?j(_0x9c8766,_0x4183e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173dee}):_0x9c8766[_0x4183e9]=_0x173dee,V=(_0x27b573,_0x3b4ee5,_0x3056ad,_0x4e7902)=>{for(var _0x344cc4=_0x4e7902>0x1?void 0x0:_0x4e7902?B(_0x3b4ee5,_0x3056ad):_0x3b4ee5,_0x4dd96a=_0x27b573['length']-0x1,_0x8fc82b;_0x4dd96a>=0x0;_0x4dd96a--)(_0x8fc82b=_0x27b573[_0x4dd96a])&&(_0x344cc4=_0x8fc82b(_0x344cc4)||_0x344cc4);return _0x344cc4;},_=(_0x5e2dc6,_0x4a9a04)=>(_0x43b212,_0x5b2d30)=>_0x4a9a04(_0x43b212,_0x5b2d30,_0x5e2dc6),I=(_0x11bc9f,_0x47ee1b,_0x53170e)=>$(_0x11bc9f,typeof _0x47ee1b!='symbol'?_0x47ee1b+'':_0x47ee1b,_0x53170e);const W=_0x3a5445(0x123);let s=class extends _0x5bec80{constructor(_0x14bf9e=l,_0x5d7560,_0x1455e0){const _0x3d2a06=_0x3a5445;super(),this[_0x3d2a06(0x11c)]=_0x14bf9e,this[_0x3d2a06(0x113)]=_0x5d7560,this[_0x3d2a06(0x119)]=_0x1455e0;const {menu:_0x17e5b4,..._0x5c29bb}=_0x4faf89({},l,this[_0x3d2a06(0x11c)]);_0x17e5b4&&this['_configService'][_0x3d2a06(0x12a)]('menu',_0x17e5b4,{'merge':!0x0}),this[_0x3d2a06(0x119)][_0x3d2a06(0x12a)](H,_0x5c29bb);}[_0x3a5445(0x130)](){[[c]]['forEach'](_0x53a567=>this['_injector']['add'](_0x53a567));}[_0x3a5445(0x134)](){const _0x3230c9=_0x3a5445;this[_0x3230c9(0x113)]['get'](c);}};I(s,_0x3a5445(0x128),W),I(s,_0x3a5445(0x118),_0x36a8ce[_0x3a5445(0x125)]),s=V([_0x36693f(_0x3a2933),_(0x1,_0x5554b0(_0x1f9a24)),_(0x2,_0x58f675)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3a5445=_0x2382;(function(_0x3d2ada,_0x32e1a2){const _0x2696f0=_0x2382,_0x2ce9e1=_0x3d2ada();while(!![]){try{const _0x4eeb74=parseInt(_0x2696f0(0x111))/0x1+-parseInt(_0x2696f0(0x116))/0x2+-parseInt(_0x2696f0(0x12f))/0x3*(-parseInt(_0x2696f0(0x12d))/0x4)+-parseInt(_0x2696f0(0x110))/0x5+-parseInt(_0x2696f0(0x10c))/0x6*(-parseInt(_0x2696f0(0x126))/0x7)+parseInt(_0x2696f0(0x12b))/0x8*(parseInt(_0x2696f0(0x11f))/0x9)+parseInt(_0x2696f0(0x120))/0xa*(-parseInt(_0x2696f0(0x12e))/0xb);if(_0x4eeb74===_0x32e1a2)break;else _0x2ce9e1['push'](_0x2ce9e1['shift']());}catch(_0x452247){_0x2ce9e1['push'](_0x2ce9e1['shift']());}}}(_0x3209,0x9e7b0));import{IExchangeOperateService as _0x472df0,UniverExchangeClientPlugin as _0x3a2933}from'@univerjs-pro/exchange-client';function _0x3209(){const _0x48195e=['search','_injector','exchange-client.operation.import-xlsx','SUBITEMS','2056720nAEZIf','_initCommands','type','_configService','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','_config','exchange.download','_menuManagerService','106695nqABIc','20gvPfYj','unit','getOwnPropertyDescriptor','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','UNIVER_SHEET','63bnoywA','FolderIcon','pluginName','defineProperty','setConfig','840fIbGSx','forEach','503124ILuhfX','4751560qQoSUX','9ZeDdrT','onStarting','get','sheets-exchange-client.config','_commandService','onReady','exchange.upload','mergeMenu','BUTTON','OPERATION','importXLSXToSnapshot','128532xCHCdW','_initMenus','importXLSXToUnitId','exportXLSXByUnitId','416460XeQOti','809792gWPIOE'];_0x3209=function(){return _0x48195e;};return _0x3209();}import{CommandType as _0x3c7cc0,UniverInstanceType as _0x36a8ce,Disposable as _0x41da8b,ICommandService as _0x6113ed,DependentOn as _0x36693f,Inject as _0x5554b0,Injector as _0x1f9a24,Plugin as _0x5bec80,merge as _0x4faf89,IConfigService as _0x58f675}from'@univerjs/core';import{MenuItemType as _0x94bdc1,getMenuHiddenObservable as _0x236196,RibbonStartGroup as _0x56a078,IMenuManagerService as _0x54340d}from'@univerjs/ui';import{WorkbookExportPermission as _0x576331}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x28166d}from'@univerjs/sheets-ui';function _0x2382(_0x5e7678,_0x56d8ae){_0x5e7678=_0x5e7678-0x10c;const _0x32090d=_0x3209();let _0x238224=_0x32090d[_0x5e7678];return _0x238224;}const p={'id':_0x3a5445(0x114),'type':_0x3c7cc0['OPERATION'],'handler':async _0x5e854c=>{const _0x3f4cbd=_0x3a5445,_0x1df30f=_0x5e854c[_0x3f4cbd(0x131)](_0x472df0);return new URLSearchParams(location[_0x3f4cbd(0x112)])[_0x3f4cbd(0x131)](_0x3f4cbd(0x121))?_0x1df30f[_0x3f4cbd(0x10e)]():_0x1df30f[_0x3f4cbd(0x139)](),!0x0;}},u={'id':_0x3a5445(0x11b),'type':_0x3c7cc0[_0x3a5445(0x138)],'handler':async _0x26bb72=>{const _0x13f38e=_0x3a5445,_0x42108c=_0x26bb72[_0x13f38e(0x131)](_0x472df0);return new URLSearchParams(location[_0x13f38e(0x112)])[_0x13f38e(0x131)](_0x13f38e(0x121))?_0x42108c[_0x13f38e(0x10f)]():_0x42108c[_0x13f38e(0x11a)](),!0x0;}},H=_0x3a5445(0x132),l={},S='sheets-exchange-client.operation.exchange';function R(_0x3e0666){const _0x27e762=_0x3a5445;return{'id':S,'type':_0x94bdc1[_0x27e762(0x115)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x236196(_0x3e0666,_0x36a8ce['UNIVER_SHEET']),'disabled$':_0x28166d(_0x3e0666,{'workbookTypes':[_0x576331]})};}function w(){const _0x3dadc6=_0x3a5445;return{'id':p['id'],'type':_0x94bdc1[_0x3dadc6(0x137)],'title':_0x3dadc6(0x135),'icon':_0x3dadc6(0x127)};}function D(){const _0x2dc8ae=_0x3a5445;return{'id':u['id'],'type':_0x94bdc1[_0x2dc8ae(0x137)],'title':_0x2dc8ae(0x11d),'icon':'ExportIcon'};}const F={[_0x56a078['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x3a5445(0x122)],A=(_0x2c1fee,_0x27c2ef,_0x3549c7,_0x2c6bc3)=>{for(var _0xc6ad2=_0x2c6bc3>0x1?void 0x0:_0x2c6bc3?G(_0x27c2ef,_0x3549c7):_0x27c2ef,_0x23e9c0=_0x2c1fee['length']-0x1,_0x29131a;_0x23e9c0>=0x0;_0x23e9c0--)(_0x29131a=_0x2c1fee[_0x23e9c0])&&(_0xc6ad2=_0x29131a(_0xc6ad2)||_0xc6ad2);return _0xc6ad2;},d=(_0x45c41d,_0x26c689)=>(_0x546ca3,_0x1aa3e0)=>_0x26c689(_0x546ca3,_0x1aa3e0,_0x45c41d);let c=class extends _0x41da8b{constructor(_0x45e82c,_0x1d9ab0){const _0x3f1468=_0x3a5445;super(),this[_0x3f1468(0x133)]=_0x45e82c,this[_0x3f1468(0x11e)]=_0x1d9ab0,this[_0x3f1468(0x117)](),this[_0x3f1468(0x10d)]();}[_0x3a5445(0x117)](){const _0x320aa8=_0x3a5445;[p,u][_0x320aa8(0x12c)](_0x56084c=>{const _0x22c052=_0x320aa8;this[_0x22c052(0x124)](this[_0x22c052(0x133)]['registerCommand'](_0x56084c));});}[_0x3a5445(0x10d)](){const _0x23cbf3=_0x3a5445;this[_0x23cbf3(0x11e)][_0x23cbf3(0x136)](F);}};c=A([d(0x0,_0x6113ed),d(0x1,_0x54340d)],c);var j=Object[_0x3a5445(0x129)],B=Object[_0x3a5445(0x122)],$=(_0x9c8766,_0x4183e9,_0x173dee)=>_0x4183e9 in _0x9c8766?j(_0x9c8766,_0x4183e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173dee}):_0x9c8766[_0x4183e9]=_0x173dee,V=(_0x27b573,_0x3b4ee5,_0x3056ad,_0x4e7902)=>{for(var _0x344cc4=_0x4e7902>0x1?void 0x0:_0x4e7902?B(_0x3b4ee5,_0x3056ad):_0x3b4ee5,_0x4dd96a=_0x27b573['length']-0x1,_0x8fc82b;_0x4dd96a>=0x0;_0x4dd96a--)(_0x8fc82b=_0x27b573[_0x4dd96a])&&(_0x344cc4=_0x8fc82b(_0x344cc4)||_0x344cc4);return _0x344cc4;},_=(_0x5e2dc6,_0x4a9a04)=>(_0x43b212,_0x5b2d30)=>_0x4a9a04(_0x43b212,_0x5b2d30,_0x5e2dc6),I=(_0x11bc9f,_0x47ee1b,_0x53170e)=>$(_0x11bc9f,typeof _0x47ee1b!='symbol'?_0x47ee1b+'':_0x47ee1b,_0x53170e);const W=_0x3a5445(0x123);let s=class extends _0x5bec80{constructor(_0x14bf9e=l,_0x5d7560,_0x1455e0){const _0x3d2a06=_0x3a5445;super(),this[_0x3d2a06(0x11c)]=_0x14bf9e,this[_0x3d2a06(0x113)]=_0x5d7560,this[_0x3d2a06(0x119)]=_0x1455e0;const {menu:_0x17e5b4,..._0x5c29bb}=_0x4faf89({},l,this[_0x3d2a06(0x11c)]);_0x17e5b4&&this['_configService'][_0x3d2a06(0x12a)]('menu',_0x17e5b4,{'merge':!0x0}),this[_0x3d2a06(0x119)][_0x3d2a06(0x12a)](H,_0x5c29bb);}[_0x3a5445(0x130)](){[[c]]['forEach'](_0x53a567=>this['_injector']['add'](_0x53a567));}[_0x3a5445(0x134)](){const _0x3230c9=_0x3a5445;this[_0x3230c9(0x113)]['get'](c);}};I(s,_0x3a5445(0x128),W),I(s,_0x3a5445(0x118),_0x36a8ce[_0x3a5445(0x125)]),s=V([_0x36693f(_0x3a2933),_(0x1,_0x5554b0(_0x1f9a24)),_(0x2,_0x58f675)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x33d667,_0x9e5112){const _0x5ba987=_0x3453,_0x51ac2c=_0x33d667();while(!![]){try{const _0x4f25ad=-parseInt(_0x5ba987(0x1bf))/0x1+-parseInt(_0x5ba987(0x1b6))/0x2+parseInt(_0x5ba987(0x1c2))/0x3*(-parseInt(_0x5ba987(0x1ee))/0x4)+-parseInt(_0x5ba987(0x1b0))/0x5*(-parseInt(_0x5ba987(0x1a9))/0x6)+parseInt(_0x5ba987(0x1e8))/0x7*(-parseInt(_0x5ba987(0x1d2))/0x8)+-parseInt(_0x5ba987(0x1cf))/0x9+parseInt(_0x5ba987(0x1c5))/0xa*(parseInt(_0x5ba987(0x1bb))/0xb);if(_0x4f25ad===_0x9e5112)break;else _0x51ac2c['push'](_0x51ac2c['shift']());}catch(_0x471472){_0x51ac2c['push'](_0x51ac2c['shift']());}}}(_0x30f3,0xc64a1),function(_0x4234cc,_0x36d1df){const _0x3c75e4=_0x3453;typeof exports==_0x3c75e4(0x1d0)&&typeof module<'u'?_0x36d1df(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3c75e4(0x1b7)&&define['amd']?define([_0x3c75e4(0x1bc),_0x3c75e4(0x1ed),_0x3c75e4(0x1a7),_0x3c75e4(0x1cc),_0x3c75e4(0x1b3),_0x3c75e4(0x1f1)],_0x36d1df):(_0x4234cc=typeof globalThis<'u'?globalThis:_0x4234cc||self,_0x36d1df(_0x4234cc[_0x3c75e4(0x1be)]={},_0x4234cc[_0x3c75e4(0x1d7)],_0x4234cc[_0x3c75e4(0x1d3)],_0x4234cc[_0x3c75e4(0x1ec)],_0x4234cc[_0x3c75e4(0x1c1)],_0x4234cc[_0x3c75e4(0x1ac)]));}(this,function(_0x406b62,_0x42a766,_0x80c2c,_0x190308,_0x36254d,_0xc65635){'use strict';const _0x5d12fe=_0x3453;const _0x107663={'id':_0x5d12fe(0x1aa),'type':_0x80c2c['CommandType'][_0x5d12fe(0x1ea)],'handler':async _0x3e3270=>{const _0x35b118=_0x5d12fe,_0x4751b5=_0x3e3270[_0x35b118(0x1de)](_0x42a766['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x35b118(0x1de)]('unit')?_0x4751b5['importXLSXToUnitId']():_0x4751b5[_0x35b118(0x1ad)](),!0x0;}},_0x312dc2={'id':_0x5d12fe(0x1cd),'type':_0x80c2c['CommandType']['OPERATION'],'handler':async _0x379546=>{const _0x5aa2bd=_0x5d12fe,_0x2cc95c=_0x379546[_0x5aa2bd(0x1de)](_0x42a766[_0x5aa2bd(0x1df)]);return new URLSearchParams(location[_0x5aa2bd(0x1b9)])[_0x5aa2bd(0x1de)]('unit')?_0x2cc95c[_0x5aa2bd(0x1f2)]():_0x2cc95c['exportXLSXBySnapshot'](),!0x0;}},_0x25281a=_0x5d12fe(0x1e5),_0xd8c2ec={},_0x15379d=_0x5d12fe(0x1f0);function _0x278471(_0x299ed4){const _0x52c502=_0x5d12fe;return{'id':_0x15379d,'type':_0x190308[_0x52c502(0x1d4)][_0x52c502(0x1dc)],'icon':'DirectExportIcon','tooltip':_0x52c502(0x1e6),'hidden$':_0x190308[_0x52c502(0x1b1)](_0x299ed4,_0x80c2c[_0x52c502(0x1ba)][_0x52c502(0x1a8)]),'disabled$':_0xc65635[_0x52c502(0x1d5)](_0x299ed4,{'workbookTypes':[_0x36254d[_0x52c502(0x1af)]]})};}function _0x22d38c(){const _0x5a467a=_0x5d12fe;return{'id':_0x107663['id'],'type':_0x190308[_0x5a467a(0x1d4)]['BUTTON'],'title':_0x5a467a(0x1da),'icon':_0x5a467a(0x1c8)};}function _0x5a9dc5(){const _0x3cc405=_0x5d12fe;return{'id':_0x312dc2['id'],'type':_0x190308['MenuItemType'][_0x3cc405(0x1d1)],'title':_0x3cc405(0x1e0),'icon':_0x3cc405(0x1c6)};}const _0x2425b6={[_0x190308[_0x5d12fe(0x1d8)][_0x5d12fe(0x1f3)]]:{[_0x15379d]:{'order':0.3,'menuItemFactory':_0x278471,[_0x107663['id']]:{'order':0x0,'menuItemFactory':_0x22d38c},[_0x312dc2['id']]:{'order':0x1,'menuItemFactory':_0x5a9dc5}}}};var _0x1fb331=Object[_0x5d12fe(0x1ab)],_0x466914=(_0x54d387,_0x180150,_0xc5bc85,_0x2b2e25)=>{const _0x526958=_0x5d12fe;for(var _0x5a08bd=_0x2b2e25>0x1?void 0x0:_0x2b2e25?_0x1fb331(_0x180150,_0xc5bc85):_0x180150,_0x2c74cb=_0x54d387[_0x526958(0x1f4)]-0x1,_0x3a04df;_0x2c74cb>=0x0;_0x2c74cb--)(_0x3a04df=_0x54d387[_0x2c74cb])&&(_0x5a08bd=_0x3a04df(_0x5a08bd)||_0x5a08bd);return _0x5a08bd;},_0x1d9742=(_0x42ed6c,_0x2cfe9c)=>(_0x9fb367,_0x4928b2)=>_0x2cfe9c(_0x9fb367,_0x4928b2,_0x42ed6c);let _0x185c3c=class extends _0x80c2c[_0x5d12fe(0x1ce)]{constructor(_0xd15fb6,_0x368602){const _0x11d091=_0x5d12fe;super(),this[_0x11d091(0x1a6)]=_0xd15fb6,this['_menuManagerService']=_0x368602,this[_0x11d091(0x1b4)](),this[_0x11d091(0x1d6)]();}['_initCommands'](){[_0x107663,_0x312dc2]['forEach'](_0x1b4f3b=>{const _0x4ce461=_0x3453;this['disposeWithMe'](this[_0x4ce461(0x1a6)][_0x4ce461(0x1e9)](_0x1b4f3b));});}[_0x5d12fe(0x1d6)](){const _0x25325b=_0x5d12fe;this[_0x25325b(0x1eb)][_0x25325b(0x1c3)](_0x2425b6);}};_0x185c3c=_0x466914([_0x1d9742(0x0,_0x80c2c[_0x5d12fe(0x1db)]),_0x1d9742(0x1,_0x190308['IMenuManagerService'])],_0x185c3c);var _0x652d26=Object['defineProperty'],_0x3ca46c=Object['getOwnPropertyDescriptor'],_0x4b7702=(_0x256135,_0x43184b,_0x404806)=>_0x43184b in _0x256135?_0x652d26(_0x256135,_0x43184b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404806}):_0x256135[_0x43184b]=_0x404806,_0x445521=(_0x501391,_0x2af960,_0x164f59,_0x157fb8)=>{const _0x304b71=_0x5d12fe;for(var _0x3112e5=_0x157fb8>0x1?void 0x0:_0x157fb8?_0x3ca46c(_0x2af960,_0x164f59):_0x2af960,_0x3cc477=_0x501391[_0x304b71(0x1f4)]-0x1,_0x48dd89;_0x3cc477>=0x0;_0x3cc477--)(_0x48dd89=_0x501391[_0x3cc477])&&(_0x3112e5=_0x48dd89(_0x3112e5)||_0x3112e5);return _0x3112e5;},_0x1d4387=(_0x42dccc,_0x5dc08e)=>(_0x4c9f36,_0x1216a2)=>_0x5dc08e(_0x4c9f36,_0x1216a2,_0x42dccc),_0x3fcd4f=(_0x30b0d2,_0x3a49c9,_0x3810d0)=>_0x4b7702(_0x30b0d2,typeof _0x3a49c9!='symbol'?_0x3a49c9+'':_0x3a49c9,_0x3810d0);const _0x2e6a76=_0x5d12fe(0x1e7);_0x406b62['UniverSheetsExchangeClientPlugin']=class extends _0x80c2c['Plugin']{constructor(_0xf0325b=_0xd8c2ec,_0x1fbf09,_0x1bd7e8){const _0x21e742=_0x5d12fe;super(),this[_0x21e742(0x1c9)]=_0xf0325b,this[_0x21e742(0x1e3)]=_0x1fbf09,this[_0x21e742(0x1ae)]=_0x1bd7e8;const {menu:_0x45f5ad,..._0x18f902}=_0x80c2c[_0x21e742(0x1c7)]({},_0xd8c2ec,this['_config']);_0x45f5ad&&this[_0x21e742(0x1ae)][_0x21e742(0x1c0)](_0x21e742(0x1bd),_0x45f5ad,{'merge':!0x0}),this[_0x21e742(0x1ae)][_0x21e742(0x1c0)](_0x25281a,_0x18f902);}[_0x5d12fe(0x1e2)](){const _0x18baea=_0x5d12fe;[[_0x185c3c]]['forEach'](_0x2610fb=>this['_injector'][_0x18baea(0x1b8)](_0x2610fb));}[_0x5d12fe(0x1b5)](){const _0x2b4f0c=_0x5d12fe;this[_0x2b4f0c(0x1e3)]['get'](_0x185c3c);}},_0x3fcd4f(_0x406b62[_0x5d12fe(0x1c4)],'pluginName',_0x2e6a76),_0x3fcd4f(_0x406b62['UniverSheetsExchangeClientPlugin'],_0x5d12fe(0x1e4),_0x80c2c[_0x5d12fe(0x1ba)]['UNIVER_SHEET']),_0x406b62[_0x5d12fe(0x1c4)]=_0x445521([_0x80c2c['DependentOn'](_0x42a766[_0x5d12fe(0x1cb)]),_0x1d4387(0x1,_0x80c2c['Inject'](_0x80c2c[_0x5d12fe(0x1d9)])),_0x1d4387(0x2,_0x80c2c[_0x5d12fe(0x1dd)])],_0x406b62[_0x5d12fe(0x1c4)]),_0x406b62[_0x5d12fe(0x1ca)]=_0x312dc2,_0x406b62[_0x5d12fe(0x1ef)]=_0x107663,Object['defineProperty'](_0x406b62,Symbol[_0x5d12fe(0x1b2)],{'value':_0x5d12fe(0x1e1)});}));function _0x3453(_0x25cc0c,_0x21ac9e){_0x25cc0c=_0x25cc0c-0x1a6;const _0x30f36d=_0x30f3();let _0x345387=_0x30f36d[_0x25cc0c];return _0x345387;}function _0x30f3(){const _0x2efecd=['30ZSYrHm','ExportIcon','merge','FolderIcon','_config','ExportXLSXOperation','UniverExchangeClientPlugin','@univerjs/ui','exchange-client.operation.export-xlsx','Disposable','11013237drCfYV','object','BUTTON','8HcRKqI','UniverCore','MenuItemType','getCurrentRangeDisable$','_initMenus','UniverProExchangeClient','RibbonStartGroup','Injector','exchange.upload','ICommandService','SUBITEMS','IConfigService','get','IExchangeOperateService','exchange.download','Module','onStarting','_injector','type','sheets-exchange-client.config','exchange.file','SHEET_EXCHANGE_CLIENT_PLUGIN','5933725XKFNlP','registerCommand','OPERATION','_menuManagerService','UniverUi','@univerjs-pro/exchange-client','1503056gIbnGF','ImportXLSXOperation','sheets-exchange-client.operation.exchange','@univerjs/sheets-ui','exportXLSXByUnitId','OTHERS','length','_commandService','@univerjs/core','UNIVER_SHEET','6320982nIqMDn','exchange-client.operation.import-xlsx','getOwnPropertyDescriptor','UniverSheetsUi','importXLSXToSnapshot','_configService','WorkbookExportPermission','5IkYaXA','getMenuHiddenObservable','toStringTag','@univerjs/sheets','_initCommands','onReady','1190838Omqgrp','function','add','search','UniverInstanceType','11135949UBjJAY','exports','menu','UniverProSheetsExchangeClient','235830KhaGMW','setConfig','UniverSheets','3IOkwUA','mergeMenu','UniverSheetsExchangeClientPlugin'];_0x30f3=function(){return _0x2efecd;};return _0x30f3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
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.15.
|
|
46
|
-
"@univerjs/sheets": "0.15.
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/ui": "0.15.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.5",
|
|
46
|
+
"@univerjs/sheets": "0.15.5",
|
|
47
|
+
"@univerjs/core": "0.15.5",
|
|
48
|
+
"@univerjs/ui": "0.15.5",
|
|
49
|
+
"@univerjs/sheets-ui": "0.15.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.3.1",
|
|
54
54
|
"vitest": "^4.0.18",
|
|
55
|
-
"@univerjs-infra/shared": "0.15.
|
|
55
|
+
"@univerjs-infra/shared": "0.15.5"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|