@univerjs-pro/sheets-exchange-client 0.10.7 → 0.10.8
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 _0x8a50e4=_0x29f9;(function(_0x32f466,_0x468d7c){const _0x11e8cb=_0x29f9,_0x57d176=_0x32f466();while(!![]){try{const _0x43b76a=-parseInt(_0x11e8cb(0xea))/0x1*(parseInt(_0x11e8cb(0xde))/0x2)+parseInt(_0x11e8cb(0xe9))/0x3*(-parseInt(_0x11e8cb(0xdf))/0x4)+-parseInt(_0x11e8cb(0xba))/0x5*(parseInt(_0x11e8cb(0xbf))/0x6)+-parseInt(_0x11e8cb(0xdb))/0x7*(-parseInt(_0x11e8cb(0xd8))/0x8)+-parseInt(_0x11e8cb(0xcf))/0x9+parseInt(_0x11e8cb(0xd7))/0xa+-parseInt(_0x11e8cb(0xd1))/0xb*(-parseInt(_0x11e8cb(0xe4))/0xc);if(_0x43b76a===_0x468d7c)break;else _0x57d176['push'](_0x57d176['shift']());}catch(_0x56b35f){_0x57d176['push'](_0x57d176['shift']());}}}(_0x5ccb,0xeaa20));Object[_0x8a50e4(0xda)](exports,Symbol[_0x8a50e4(0xf1)],{'value':_0x8a50e4(0xc0)});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':_0x8a50e4(0xf7),'type':i['CommandType'][_0x8a50e4(0xd2)],'handler':async _0xb39e56=>{const _0x424466=_0x8a50e4,_0x296852=_0xb39e56[_0x424466(0xdd)](g[_0x424466(0xe8)]);return new URLSearchParams(location[_0x424466(0xf3)])[_0x424466(0xdd)](_0x424466(0xe3))?_0x296852[_0x424466(0xd6)]():_0x296852['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x8a50e4(0xcc)]['OPERATION'],'handler':async _0x4d7025=>{const _0xb6d3e0=_0x8a50e4,_0x42338d=_0x4d7025['get'](g[_0xb6d3e0(0xe8)]);return new URLSearchParams(location[_0xb6d3e0(0xf3)])[_0xb6d3e0(0xdd)](_0xb6d3e0(0xe3))?_0x42338d[_0xb6d3e0(0xc8)]():_0x42338d[_0xb6d3e0(0xb8)](),!0x0;}},v=_0x8a50e4(0xf0),h={},S=_0x8a50e4(0xcb);function x(_0x2538f2){const _0x1b75ff=_0x8a50e4;return{'id':S,'type':c[_0x1b75ff(0xb9)][_0x1b75ff(0xb7)],'icon':_0x1b75ff(0xcd),'tooltip':_0x1b75ff(0xef),'hidden$':c['getMenuHiddenObservable'](_0x2538f2,i[_0x1b75ff(0xc5)][_0x1b75ff(0xe6)]),'disabled$':I['getCurrentRangeDisable$'](_0x2538f2,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x47196c=_0x8a50e4;return{'id':l['id'],'type':c[_0x47196c(0xb9)][_0x47196c(0xed)],'title':_0x47196c(0xce),'icon':'FolderIcon'};}function _0x5ccb(){const _0x5674e8=['merge','UniverExchangeClientPlugin','setConfig','3574206owuefX','Module','_injector','_configService','ExportIcon','getOwnPropertyDescriptor','UniverInstanceType','onReady','pluginName','exportXLSXByUnitId','_initCommands','SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.operation.exchange','CommandType','DirectExportIcon','exchange.upload','16348599kCWfTB','type','36355Doviyc','OPERATION','ImportXLSXOperation','Injector','registerCommand','importXLSXToUnitId','1608060thQQts','88WkyiLV','forEach','defineProperty','513002wPDXBf','exchange.download','get','1159966QxlJUM','16vJlEHz','_config','IMenuManagerService','add','unit','16296fpZEkh','DependentOn','UNIVER_SHEET','_menuManagerService','IExchangeOperateService','691431POEpmO','2jQAWii','RibbonStartGroup','OTHERS','BUTTON','UniverSheetsExchangeClientPlugin','exchange.file','sheets-exchange-client.config','toStringTag','mergeMenu','search','Plugin','length','onStarting','exchange-client.operation.import-xlsx','SUBITEMS','exportXLSXBySnapshot','MenuItemType','5zRgmnb','symbol'];_0x5ccb=function(){return _0x5674e8;};return _0x5ccb();}function C(){const _0x272e4c=_0x8a50e4;return{'id':p['id'],'type':c['MenuItemType'][_0x272e4c(0xed)],'title':_0x272e4c(0xdc),'icon':_0x272e4c(0xc3)};}const f={[c[_0x8a50e4(0xeb)][_0x8a50e4(0xec)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x302872,_0x43409b,_0x25b446,_0x5830da)=>{const _0x1add96=_0x8a50e4;for(var _0x15b737=_0x5830da>0x1?void 0x0:_0x5830da?T(_0x43409b,_0x25b446):_0x43409b,_0x2a69df=_0x302872[_0x1add96(0xf5)]-0x1,_0x22ee35;_0x2a69df>=0x0;_0x2a69df--)(_0x22ee35=_0x302872[_0x2a69df])&&(_0x15b737=_0x22ee35(_0x15b737)||_0x15b737);return _0x15b737;},m=(_0x161d0c,_0xdf957f)=>(_0x4d3ac7,_0x5212cb)=>_0xdf957f(_0x4d3ac7,_0x5212cb,_0x161d0c);let u=class extends i['Disposable']{constructor(_0x230d9e,_0x5d444a){const _0x4e3e0d=_0x8a50e4;super(),this['_commandService']=_0x230d9e,this[_0x4e3e0d(0xe7)]=_0x5d444a,this[_0x4e3e0d(0xc9)](),this['_initMenus']();}[_0x8a50e4(0xc9)](){[l,p]['forEach'](_0x5ccf6a=>{const _0x2d4ff1=_0x29f9;this['disposeWithMe'](this['_commandService'][_0x2d4ff1(0xd5)](_0x5ccf6a));});}['_initMenus'](){const _0x138623=_0x8a50e4;this[_0x138623(0xe7)][_0x138623(0xf2)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x8a50e4(0xe1)])],u);function _0x29f9(_0x4e5d2b,_0x140741){const _0x5ccba2=_0x5ccb();return _0x29f9=function(_0x29f96d,_0x3bf598){_0x29f96d=_0x29f96d-0xb7;let _0x5f1f94=_0x5ccba2[_0x29f96d];return _0x5f1f94;},_0x29f9(_0x4e5d2b,_0x140741);}var O=Object['defineProperty'],U=Object[_0x8a50e4(0xc4)],X=(_0x970287,_0x2d9b6f,_0x219f16)=>_0x2d9b6f in _0x970287?O(_0x970287,_0x2d9b6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x219f16}):_0x970287[_0x2d9b6f]=_0x219f16,N=(_0x397a7e,_0x4d0eaf,_0x15384c,_0x36ec42)=>{const _0x41b588=_0x8a50e4;for(var _0x4f74aa=_0x36ec42>0x1?void 0x0:_0x36ec42?U(_0x4d0eaf,_0x15384c):_0x4d0eaf,_0x20dd99=_0x397a7e[_0x41b588(0xf5)]-0x1,_0x1222e5;_0x20dd99>=0x0;_0x20dd99--)(_0x1222e5=_0x397a7e[_0x20dd99])&&(_0x4f74aa=_0x1222e5(_0x4f74aa)||_0x4f74aa);return _0x4f74aa;},d=(_0x4cf26e,_0x2858ce)=>(_0xd7a5ca,_0x305ec5)=>_0x2858ce(_0xd7a5ca,_0x305ec5,_0x4cf26e),E=(_0x2fb0bc,_0x1d332f,_0x4fbb95)=>X(_0x2fb0bc,typeof _0x1d332f!=_0x8a50e4(0xbb)?_0x1d332f+'':_0x1d332f,_0x4fbb95);const L=_0x8a50e4(0xca);exports[_0x8a50e4(0xee)]=class extends i[_0x8a50e4(0xf4)]{constructor(_0x2c26c7=h,_0x22f215,_0x131474){const _0x460cbe=_0x8a50e4;super(),this[_0x460cbe(0xe0)]=_0x2c26c7,this[_0x460cbe(0xc1)]=_0x22f215,this['_configService']=_0x131474;const {menu:_0x3b90ce,..._0x4e3c8e}=i[_0x460cbe(0xbc)]({},h,this[_0x460cbe(0xe0)]);_0x3b90ce&&this[_0x460cbe(0xc2)]['setConfig']('menu',_0x3b90ce,{'merge':!0x0}),this['_configService'][_0x460cbe(0xbe)](v,_0x4e3c8e);}[_0x8a50e4(0xf6)](){const _0x553e50=_0x8a50e4;[[u]][_0x553e50(0xd9)](_0x3c5ad3=>this[_0x553e50(0xc1)][_0x553e50(0xe2)](_0x3c5ad3));}[_0x8a50e4(0xc6)](){const _0x4229f2=_0x8a50e4;this[_0x4229f2(0xc1)][_0x4229f2(0xdd)](u);}},E(exports[_0x8a50e4(0xee)],_0x8a50e4(0xc7),L),E(exports[_0x8a50e4(0xee)],_0x8a50e4(0xd0),i[_0x8a50e4(0xc5)][_0x8a50e4(0xe6)]),exports[_0x8a50e4(0xee)]=N([i[_0x8a50e4(0xe5)](g[_0x8a50e4(0xbd)]),d(0x1,i['Inject'](i[_0x8a50e4(0xd4)])),d(0x2,i['IConfigService'])],exports[_0x8a50e4(0xee)]),exports['ExportXLSXOperation']=p,exports[_0x8a50e4(0xd3)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c815c=_0x1289;(function(_0x258457,_0x368c42){const _0x5dfec2=_0x1289,_0x336e17=_0x258457();while(!![]){try{const _0x5bb0c8=parseInt(_0x5dfec2(0x1e3))/0x1*(-parseInt(_0x5dfec2(0x1d0))/0x2)+parseInt(_0x5dfec2(0x1d2))/0x3*(-parseInt(_0x5dfec2(0x1da))/0x4)+parseInt(_0x5dfec2(0x1ca))/0x5+parseInt(_0x5dfec2(0x1e7))/0x6*(parseInt(_0x5dfec2(0x1de))/0x7)+parseInt(_0x5dfec2(0x1cd))/0x8+parseInt(_0x5dfec2(0x1db))/0x9+-parseInt(_0x5dfec2(0x1c4))/0xa;if(_0x5bb0c8===_0x368c42)break;else _0x336e17['push'](_0x336e17['shift']());}catch(_0x59b599){_0x336e17['push'](_0x336e17['shift']());}}}(_0x4d5f,0x72d5e));import{IExchangeOperateService as _0x2adcde,UniverExchangeClientPlugin as _0x1a42ea}from'@univerjs-pro/exchange-client';import{CommandType as _0x1daef0,UniverInstanceType as _0x94569e,Disposable as _0x40de7f,ICommandService as _0x12e013,DependentOn as _0xd8af38,Inject as _0x36af25,Injector as _0x330549,IConfigService as _0x5cdcc2,Plugin as _0xd5e7a4,merge as _0x280d13}from'@univerjs/core';import{MenuItemType as _0x571587,getMenuHiddenObservable as _0x4fb5fb,RibbonStartGroup as _0x3e5a82,IMenuManagerService as _0x1b8bc6}from'@univerjs/ui';import{WorkbookExportPermission as _0x533222}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x24f996}from'@univerjs/sheets-ui';const p={'id':_0x2c815c(0x1e2),'type':_0x1daef0[_0x2c815c(0x1dd)],'handler':async _0x4563d6=>{const _0x19c6e2=_0x2c815c,_0x9732ee=_0x4563d6[_0x19c6e2(0x1d9)](_0x2adcde);return new URLSearchParams(location[_0x19c6e2(0x1d1)])[_0x19c6e2(0x1d9)](_0x19c6e2(0x1d8))?_0x9732ee[_0x19c6e2(0x1c7)]():_0x9732ee[_0x19c6e2(0x1e5)](),!0x0;}},u={'id':_0x2c815c(0x1ee),'type':_0x1daef0[_0x2c815c(0x1dd)],'handler':async _0x3bc523=>{const _0x1e5221=_0x2c815c,_0x48d943=_0x3bc523['get'](_0x2adcde);return new URLSearchParams(location['search'])['get']('unit')?_0x48d943['exportXLSXByUnitId']():_0x48d943[_0x1e5221(0x1ec)](),!0x0;}},H=_0x2c815c(0x1e4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5b0f85){const _0x3760a6=_0x2c815c;return{'id':S,'type':_0x571587['SUBITEMS'],'icon':_0x3760a6(0x1d4),'tooltip':'exchange.file','hidden$':_0x4fb5fb(_0x5b0f85,_0x94569e[_0x3760a6(0x1df)]),'disabled$':_0x24f996(_0x5b0f85,{'workbookTypes':[_0x533222]})};}function w(){return{'id':p['id'],'type':_0x571587['BUTTON'],'title':'exchange.upload','icon':'FolderIcon'};}function _0x4d5f(){const _0x378278=['length','6DOutwl','_menuManagerService','onStarting','exchange.download','_config','exportXLSXBySnapshot','ExportIcon','exchange-client.operation.export-xlsx','_configService','pluginName','7799210fIiDZa','_commandService','onReady','importXLSXToUnitId','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','2860365AzqDft','_initCommands','menu','3714456JOydAD','_injector','defineProperty','12IOBVFn','search','186ruigGR','BUTTON','DirectExportIcon','setConfig','forEach','add','unit','get','4276iUHJQf','5886306odSMLs','disposeWithMe','OPERATION','3911915dhHQYV','UNIVER_SHEET','mergeMenu','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','155449MUvqXf','sheets-exchange-client.config','importXLSXToSnapshot'];_0x4d5f=function(){return _0x378278;};return _0x4d5f();}function D(){const _0x1ec20c=_0x2c815c;return{'id':u['id'],'type':_0x571587[_0x1ec20c(0x1d3)],'title':_0x1ec20c(0x1ea),'icon':_0x1ec20c(0x1ed)};}const F={[_0x3e5a82[_0x2c815c(0x1c8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2c815c(0x1e1)],A=(_0x4c3ba6,_0x871100,_0xde5fb2,_0x3126b2)=>{const _0xaca916=_0x2c815c;for(var _0x275bdd=_0x3126b2>0x1?void 0x0:_0x3126b2?G(_0x871100,_0xde5fb2):_0x871100,_0x3bb325=_0x4c3ba6[_0xaca916(0x1e6)]-0x1,_0x3c8585;_0x3bb325>=0x0;_0x3bb325--)(_0x3c8585=_0x4c3ba6[_0x3bb325])&&(_0x275bdd=_0x3c8585(_0x275bdd)||_0x275bdd);return _0x275bdd;},d=(_0x5d36c9,_0x32e2b0)=>(_0x21cb98,_0x2add54)=>_0x32e2b0(_0x21cb98,_0x2add54,_0x5d36c9);let c=class extends _0x40de7f{constructor(_0xe2c027,_0x5c6180){const _0x1ec036=_0x2c815c;super(),this['_commandService']=_0xe2c027,this[_0x1ec036(0x1e8)]=_0x5c6180,this[_0x1ec036(0x1cb)](),this['_initMenus']();}[_0x2c815c(0x1cb)](){const _0x359d94=_0x2c815c;[p,u][_0x359d94(0x1d6)](_0x2270bf=>{const _0x1bcfdb=_0x359d94;this[_0x1bcfdb(0x1dc)](this[_0x1bcfdb(0x1c5)]['registerCommand'](_0x2270bf));});}['_initMenus'](){const _0x250803=_0x2c815c;this[_0x250803(0x1e8)][_0x250803(0x1e0)](F);}};c=A([d(0x0,_0x12e013),d(0x1,_0x1b8bc6)],c);function _0x1289(_0x389b5f,_0x1b1ee3){const _0x4d5f24=_0x4d5f();return _0x1289=function(_0x1289ba,_0x277c71){_0x1289ba=_0x1289ba-0x1c4;let _0x484aec=_0x4d5f24[_0x1289ba];return _0x484aec;},_0x1289(_0x389b5f,_0x1b1ee3);}var j=Object[_0x2c815c(0x1cf)],B=Object[_0x2c815c(0x1e1)],$=(_0x3958b4,_0x2aca38,_0x3900b1)=>_0x2aca38 in _0x3958b4?j(_0x3958b4,_0x2aca38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3900b1}):_0x3958b4[_0x2aca38]=_0x3900b1,V=(_0x35c2aa,_0x3aed2a,_0x4f5f03,_0x24c1cb)=>{const _0x5b1cd4=_0x2c815c;for(var _0x42425c=_0x24c1cb>0x1?void 0x0:_0x24c1cb?B(_0x3aed2a,_0x4f5f03):_0x3aed2a,_0x423290=_0x35c2aa[_0x5b1cd4(0x1e6)]-0x1,_0x566775;_0x423290>=0x0;_0x423290--)(_0x566775=_0x35c2aa[_0x423290])&&(_0x42425c=_0x566775(_0x42425c)||_0x42425c);return _0x42425c;},_=(_0x3d0a0a,_0x6b1329)=>(_0x5a5780,_0xcb6c91)=>_0x6b1329(_0x5a5780,_0xcb6c91,_0x3d0a0a),I=(_0x262e5a,_0x3aed17,_0x3a0454)=>$(_0x262e5a,typeof _0x3aed17!='symbol'?_0x3aed17+'':_0x3aed17,_0x3a0454);const W=_0x2c815c(0x1c9);let s=class extends _0xd5e7a4{constructor(_0x1e72d0=l,_0x1f6256,_0x4ffa6a){const _0xeb9fbc=_0x2c815c;super(),this[_0xeb9fbc(0x1eb)]=_0x1e72d0,this['_injector']=_0x1f6256,this[_0xeb9fbc(0x1ef)]=_0x4ffa6a;const {menu:_0x141f01,..._0x1c49c9}=_0x280d13({},l,this[_0xeb9fbc(0x1eb)]);_0x141f01&&this[_0xeb9fbc(0x1ef)][_0xeb9fbc(0x1d5)](_0xeb9fbc(0x1cc),_0x141f01,{'merge':!0x0}),this[_0xeb9fbc(0x1ef)][_0xeb9fbc(0x1d5)](H,_0x1c49c9);}[_0x2c815c(0x1e9)](){const _0x4a63b1=_0x2c815c;[[c]][_0x4a63b1(0x1d6)](_0x21b022=>this['_injector'][_0x4a63b1(0x1d7)](_0x21b022));}[_0x2c815c(0x1c6)](){const _0x3d5279=_0x2c815c;this[_0x3d5279(0x1ce)][_0x3d5279(0x1d9)](c);}};I(s,_0x2c815c(0x1f0),W),I(s,'type',_0x94569e[_0x2c815c(0x1df)]),s=V([_0xd8af38(_0x1a42ea),_(0x1,_0x36af25(_0x330549)),_(0x2,_0x5cdcc2)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c815c=_0x1289;(function(_0x258457,_0x368c42){const _0x5dfec2=_0x1289,_0x336e17=_0x258457();while(!![]){try{const _0x5bb0c8=parseInt(_0x5dfec2(0x1e3))/0x1*(-parseInt(_0x5dfec2(0x1d0))/0x2)+parseInt(_0x5dfec2(0x1d2))/0x3*(-parseInt(_0x5dfec2(0x1da))/0x4)+parseInt(_0x5dfec2(0x1ca))/0x5+parseInt(_0x5dfec2(0x1e7))/0x6*(parseInt(_0x5dfec2(0x1de))/0x7)+parseInt(_0x5dfec2(0x1cd))/0x8+parseInt(_0x5dfec2(0x1db))/0x9+-parseInt(_0x5dfec2(0x1c4))/0xa;if(_0x5bb0c8===_0x368c42)break;else _0x336e17['push'](_0x336e17['shift']());}catch(_0x59b599){_0x336e17['push'](_0x336e17['shift']());}}}(_0x4d5f,0x72d5e));import{IExchangeOperateService as _0x2adcde,UniverExchangeClientPlugin as _0x1a42ea}from'@univerjs-pro/exchange-client';import{CommandType as _0x1daef0,UniverInstanceType as _0x94569e,Disposable as _0x40de7f,ICommandService as _0x12e013,DependentOn as _0xd8af38,Inject as _0x36af25,Injector as _0x330549,IConfigService as _0x5cdcc2,Plugin as _0xd5e7a4,merge as _0x280d13}from'@univerjs/core';import{MenuItemType as _0x571587,getMenuHiddenObservable as _0x4fb5fb,RibbonStartGroup as _0x3e5a82,IMenuManagerService as _0x1b8bc6}from'@univerjs/ui';import{WorkbookExportPermission as _0x533222}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x24f996}from'@univerjs/sheets-ui';const p={'id':_0x2c815c(0x1e2),'type':_0x1daef0[_0x2c815c(0x1dd)],'handler':async _0x4563d6=>{const _0x19c6e2=_0x2c815c,_0x9732ee=_0x4563d6[_0x19c6e2(0x1d9)](_0x2adcde);return new URLSearchParams(location[_0x19c6e2(0x1d1)])[_0x19c6e2(0x1d9)](_0x19c6e2(0x1d8))?_0x9732ee[_0x19c6e2(0x1c7)]():_0x9732ee[_0x19c6e2(0x1e5)](),!0x0;}},u={'id':_0x2c815c(0x1ee),'type':_0x1daef0[_0x2c815c(0x1dd)],'handler':async _0x3bc523=>{const _0x1e5221=_0x2c815c,_0x48d943=_0x3bc523['get'](_0x2adcde);return new URLSearchParams(location['search'])['get']('unit')?_0x48d943['exportXLSXByUnitId']():_0x48d943[_0x1e5221(0x1ec)](),!0x0;}},H=_0x2c815c(0x1e4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x5b0f85){const _0x3760a6=_0x2c815c;return{'id':S,'type':_0x571587['SUBITEMS'],'icon':_0x3760a6(0x1d4),'tooltip':'exchange.file','hidden$':_0x4fb5fb(_0x5b0f85,_0x94569e[_0x3760a6(0x1df)]),'disabled$':_0x24f996(_0x5b0f85,{'workbookTypes':[_0x533222]})};}function w(){return{'id':p['id'],'type':_0x571587['BUTTON'],'title':'exchange.upload','icon':'FolderIcon'};}function _0x4d5f(){const _0x378278=['length','6DOutwl','_menuManagerService','onStarting','exchange.download','_config','exportXLSXBySnapshot','ExportIcon','exchange-client.operation.export-xlsx','_configService','pluginName','7799210fIiDZa','_commandService','onReady','importXLSXToUnitId','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','2860365AzqDft','_initCommands','menu','3714456JOydAD','_injector','defineProperty','12IOBVFn','search','186ruigGR','BUTTON','DirectExportIcon','setConfig','forEach','add','unit','get','4276iUHJQf','5886306odSMLs','disposeWithMe','OPERATION','3911915dhHQYV','UNIVER_SHEET','mergeMenu','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','155449MUvqXf','sheets-exchange-client.config','importXLSXToSnapshot'];_0x4d5f=function(){return _0x378278;};return _0x4d5f();}function D(){const _0x1ec20c=_0x2c815c;return{'id':u['id'],'type':_0x571587[_0x1ec20c(0x1d3)],'title':_0x1ec20c(0x1ea),'icon':_0x1ec20c(0x1ed)};}const F={[_0x3e5a82[_0x2c815c(0x1c8)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2c815c(0x1e1)],A=(_0x4c3ba6,_0x871100,_0xde5fb2,_0x3126b2)=>{const _0xaca916=_0x2c815c;for(var _0x275bdd=_0x3126b2>0x1?void 0x0:_0x3126b2?G(_0x871100,_0xde5fb2):_0x871100,_0x3bb325=_0x4c3ba6[_0xaca916(0x1e6)]-0x1,_0x3c8585;_0x3bb325>=0x0;_0x3bb325--)(_0x3c8585=_0x4c3ba6[_0x3bb325])&&(_0x275bdd=_0x3c8585(_0x275bdd)||_0x275bdd);return _0x275bdd;},d=(_0x5d36c9,_0x32e2b0)=>(_0x21cb98,_0x2add54)=>_0x32e2b0(_0x21cb98,_0x2add54,_0x5d36c9);let c=class extends _0x40de7f{constructor(_0xe2c027,_0x5c6180){const _0x1ec036=_0x2c815c;super(),this['_commandService']=_0xe2c027,this[_0x1ec036(0x1e8)]=_0x5c6180,this[_0x1ec036(0x1cb)](),this['_initMenus']();}[_0x2c815c(0x1cb)](){const _0x359d94=_0x2c815c;[p,u][_0x359d94(0x1d6)](_0x2270bf=>{const _0x1bcfdb=_0x359d94;this[_0x1bcfdb(0x1dc)](this[_0x1bcfdb(0x1c5)]['registerCommand'](_0x2270bf));});}['_initMenus'](){const _0x250803=_0x2c815c;this[_0x250803(0x1e8)][_0x250803(0x1e0)](F);}};c=A([d(0x0,_0x12e013),d(0x1,_0x1b8bc6)],c);function _0x1289(_0x389b5f,_0x1b1ee3){const _0x4d5f24=_0x4d5f();return _0x1289=function(_0x1289ba,_0x277c71){_0x1289ba=_0x1289ba-0x1c4;let _0x484aec=_0x4d5f24[_0x1289ba];return _0x484aec;},_0x1289(_0x389b5f,_0x1b1ee3);}var j=Object[_0x2c815c(0x1cf)],B=Object[_0x2c815c(0x1e1)],$=(_0x3958b4,_0x2aca38,_0x3900b1)=>_0x2aca38 in _0x3958b4?j(_0x3958b4,_0x2aca38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3900b1}):_0x3958b4[_0x2aca38]=_0x3900b1,V=(_0x35c2aa,_0x3aed2a,_0x4f5f03,_0x24c1cb)=>{const _0x5b1cd4=_0x2c815c;for(var _0x42425c=_0x24c1cb>0x1?void 0x0:_0x24c1cb?B(_0x3aed2a,_0x4f5f03):_0x3aed2a,_0x423290=_0x35c2aa[_0x5b1cd4(0x1e6)]-0x1,_0x566775;_0x423290>=0x0;_0x423290--)(_0x566775=_0x35c2aa[_0x423290])&&(_0x42425c=_0x566775(_0x42425c)||_0x42425c);return _0x42425c;},_=(_0x3d0a0a,_0x6b1329)=>(_0x5a5780,_0xcb6c91)=>_0x6b1329(_0x5a5780,_0xcb6c91,_0x3d0a0a),I=(_0x262e5a,_0x3aed17,_0x3a0454)=>$(_0x262e5a,typeof _0x3aed17!='symbol'?_0x3aed17+'':_0x3aed17,_0x3a0454);const W=_0x2c815c(0x1c9);let s=class extends _0xd5e7a4{constructor(_0x1e72d0=l,_0x1f6256,_0x4ffa6a){const _0xeb9fbc=_0x2c815c;super(),this[_0xeb9fbc(0x1eb)]=_0x1e72d0,this['_injector']=_0x1f6256,this[_0xeb9fbc(0x1ef)]=_0x4ffa6a;const {menu:_0x141f01,..._0x1c49c9}=_0x280d13({},l,this[_0xeb9fbc(0x1eb)]);_0x141f01&&this[_0xeb9fbc(0x1ef)][_0xeb9fbc(0x1d5)](_0xeb9fbc(0x1cc),_0x141f01,{'merge':!0x0}),this[_0xeb9fbc(0x1ef)][_0xeb9fbc(0x1d5)](H,_0x1c49c9);}[_0x2c815c(0x1e9)](){const _0x4a63b1=_0x2c815c;[[c]][_0x4a63b1(0x1d6)](_0x21b022=>this['_injector'][_0x4a63b1(0x1d7)](_0x21b022));}[_0x2c815c(0x1c6)](){const _0x3d5279=_0x2c815c;this[_0x3d5279(0x1ce)][_0x3d5279(0x1d9)](c);}};I(s,_0x2c815c(0x1f0),W),I(s,'type',_0x94569e[_0x2c815c(0x1df)]),s=V([_0xd8af38(_0x1a42ea),_(0x1,_0x36af25(_0x330549)),_(0x2,_0x5cdcc2)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1aef72,_0x2560ff){const _0x31c5d2=_0x56c6,_0x227982=_0x1aef72();while(!![]){try{const _0x1b73f0=-parseInt(_0x31c5d2(0x123))/0x1+parseInt(_0x31c5d2(0x141))/0x2+parseInt(_0x31c5d2(0x110))/0x3+parseInt(_0x31c5d2(0x103))/0x4*(parseInt(_0x31c5d2(0x127))/0x5)+parseInt(_0x31c5d2(0x121))/0x6+-parseInt(_0x31c5d2(0x10a))/0x7+-parseInt(_0x31c5d2(0x13b))/0x8;if(_0x1b73f0===_0x2560ff)break;else _0x227982['push'](_0x227982['shift']());}catch(_0x41db18){_0x227982['push'](_0x227982['shift']());}}}(_0x429f,0xa2eef),function(_0xe95dbb,_0x29cbf0){const _0x5dc28f=_0x56c6;typeof exports==_0x5dc28f(0x101)&&typeof module<'u'?_0x29cbf0(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5dc28f(0x107)&&define[_0x5dc28f(0x122)]?define([_0x5dc28f(0x11e),_0x5dc28f(0x118),_0x5dc28f(0x114),'@univerjs/ui','@univerjs/sheets',_0x5dc28f(0x129)],_0x29cbf0):(_0xe95dbb=typeof globalThis<'u'?globalThis:_0xe95dbb||self,_0x29cbf0(_0xe95dbb[_0x5dc28f(0x136)]={},_0xe95dbb[_0x5dc28f(0x12a)],_0xe95dbb['UniverCore'],_0xe95dbb[_0x5dc28f(0x145)],_0xe95dbb['UniverSheets'],_0xe95dbb[_0x5dc28f(0x11f)]));}(this,function(_0x16513a,_0x32b48f,_0x5ab6bf,_0x1e7f1c,_0x2725d3,_0x197bba){'use strict';const _0x15971a=_0x56c6;const _0x394989={'id':_0x15971a(0x148),'type':_0x5ab6bf[_0x15971a(0x11b)][_0x15971a(0x109)],'handler':async _0x1b6a4f=>{const _0x6f5e47=_0x15971a,_0x3d1e33=_0x1b6a4f[_0x6f5e47(0x131)](_0x32b48f[_0x6f5e47(0x13e)]);return new URLSearchParams(location['search'])['get'](_0x6f5e47(0x120))?_0x3d1e33[_0x6f5e47(0x106)]():_0x3d1e33[_0x6f5e47(0x124)](),!0x0;}},_0x3db724={'id':_0x15971a(0x128),'type':_0x5ab6bf['CommandType'][_0x15971a(0x109)],'handler':async _0xf77b43=>{const _0x31c389=_0x15971a,_0x52292c=_0xf77b43[_0x31c389(0x131)](_0x32b48f[_0x31c389(0x13e)]);return new URLSearchParams(location['search'])[_0x31c389(0x131)]('unit')?_0x52292c[_0x31c389(0x10f)]():_0x52292c[_0x31c389(0x13d)](),!0x0;}},_0x3bbb1d='sheets-exchange-client.config',_0x3a7676={},_0xc892f3='sheets-exchange-client.operation.exchange';function _0x9ad91b(_0x232842){const _0x1ef590=_0x15971a;return{'id':_0xc892f3,'type':_0x1e7f1c['MenuItemType'][_0x1ef590(0x140)],'icon':_0x1ef590(0x105),'tooltip':_0x1ef590(0x135),'hidden$':_0x1e7f1c[_0x1ef590(0x147)](_0x232842,_0x5ab6bf[_0x1ef590(0x144)][_0x1ef590(0x104)]),'disabled$':_0x197bba[_0x1ef590(0x116)](_0x232842,{'workbookTypes':[_0x2725d3['WorkbookExportPermission']]})};}function _0x3717e5(){const _0x3f558c=_0x15971a;return{'id':_0x394989['id'],'type':_0x1e7f1c[_0x3f558c(0x132)][_0x3f558c(0x100)],'title':_0x3f558c(0x113),'icon':_0x3f558c(0x139)};}function _0x1f40fb(){const _0x2eacd5=_0x15971a;return{'id':_0x3db724['id'],'type':_0x1e7f1c['MenuItemType'][_0x2eacd5(0x100)],'title':_0x2eacd5(0x126),'icon':_0x2eacd5(0x142)};}const _0x211148={[_0x1e7f1c[_0x15971a(0x12b)][_0x15971a(0x112)]]:{[_0xc892f3]:{'order':0.3,'menuItemFactory':_0x9ad91b,[_0x394989['id']]:{'order':0x0,'menuItemFactory':_0x3717e5},[_0x3db724['id']]:{'order':0x1,'menuItemFactory':_0x1f40fb}}}};var _0x43294e=Object[_0x15971a(0x11a)],_0x34e6c4=(_0x518e64,_0xf3d9bd,_0x5d7391,_0x5dddd3)=>{for(var _0x100e6b=_0x5dddd3>0x1?void 0x0:_0x5dddd3?_0x43294e(_0xf3d9bd,_0x5d7391):_0xf3d9bd,_0x4fb23b=_0x518e64['length']-0x1,_0x58d51a;_0x4fb23b>=0x0;_0x4fb23b--)(_0x58d51a=_0x518e64[_0x4fb23b])&&(_0x100e6b=_0x58d51a(_0x100e6b)||_0x100e6b);return _0x100e6b;},_0x5916c2=(_0x28cc2f,_0x567a75)=>(_0x51701e,_0x2ceded)=>_0x567a75(_0x51701e,_0x2ceded,_0x28cc2f);let _0x151063=class extends _0x5ab6bf[_0x15971a(0x146)]{constructor(_0x3bed0c,_0xf87537){const _0x12b4de=_0x15971a;super(),this[_0x12b4de(0x11c)]=_0x3bed0c,this[_0x12b4de(0x10b)]=_0xf87537,this[_0x12b4de(0x143)](),this[_0x12b4de(0x137)]();}[_0x15971a(0x143)](){const _0x5c2b3c=_0x15971a;[_0x394989,_0x3db724][_0x5c2b3c(0x119)](_0x4c0808=>{const _0x46dca2=_0x5c2b3c;this[_0x46dca2(0x115)](this[_0x46dca2(0x11c)][_0x46dca2(0x14b)](_0x4c0808));});}['_initMenus'](){const _0x5d8f27=_0x15971a;this[_0x5d8f27(0x10b)][_0x5d8f27(0x11d)](_0x211148);}};_0x151063=_0x34e6c4([_0x5916c2(0x0,_0x5ab6bf['ICommandService']),_0x5916c2(0x1,_0x1e7f1c[_0x15971a(0x12e)])],_0x151063);var _0x15a6ac=Object[_0x15971a(0x111)],_0x52634d=Object[_0x15971a(0x11a)],_0x3f94b9=(_0x4b8e6f,_0x5b0488,_0x17a9de)=>_0x5b0488 in _0x4b8e6f?_0x15a6ac(_0x4b8e6f,_0x5b0488,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17a9de}):_0x4b8e6f[_0x5b0488]=_0x17a9de,_0x48cf1b=(_0x2ae1fc,_0x41667a,_0x1102d1,_0x2bd6e0)=>{for(var _0x47716f=_0x2bd6e0>0x1?void 0x0:_0x2bd6e0?_0x52634d(_0x41667a,_0x1102d1):_0x41667a,_0x2726e9=_0x2ae1fc['length']-0x1,_0x4ef383;_0x2726e9>=0x0;_0x2726e9--)(_0x4ef383=_0x2ae1fc[_0x2726e9])&&(_0x47716f=_0x4ef383(_0x47716f)||_0x47716f);return _0x47716f;},_0x575193=(_0x3e2467,_0x2b9bfc)=>(_0x27d1aa,_0x5ad9ba)=>_0x2b9bfc(_0x27d1aa,_0x5ad9ba,_0x3e2467),_0x576602=(_0x4ea2bd,_0x5a698b,_0x2e1517)=>_0x3f94b9(_0x4ea2bd,typeof _0x5a698b!=_0x15971a(0x10c)?_0x5a698b+'':_0x5a698b,_0x2e1517);const _0x5e682f='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x16513a[_0x15971a(0x14a)]=class extends _0x5ab6bf[_0x15971a(0x133)]{constructor(_0xe942b5=_0x3a7676,_0x3c526b,_0x959bc9){const _0x463900=_0x15971a;super(),this['_config']=_0xe942b5,this[_0x463900(0x12f)]=_0x3c526b,this['_configService']=_0x959bc9;const {menu:_0x4529ab,..._0x1d27ce}=_0x5ab6bf['merge']({},_0x3a7676,this[_0x463900(0x12d)]);_0x4529ab&&this[_0x463900(0x13c)]['setConfig'](_0x463900(0x13f),_0x4529ab,{'merge':!0x0}),this[_0x463900(0x13c)][_0x463900(0x117)](_0x3bbb1d,_0x1d27ce);}[_0x15971a(0x10d)](){const _0x59b1ac=_0x15971a;[[_0x151063]]['forEach'](_0x204eb5=>this[_0x59b1ac(0x12f)][_0x59b1ac(0x108)](_0x204eb5));}[_0x15971a(0x10e)](){const _0x152a5c=_0x15971a;this[_0x152a5c(0x12f)][_0x152a5c(0x131)](_0x151063);}},_0x576602(_0x16513a[_0x15971a(0x14a)],_0x15971a(0x125),_0x5e682f),_0x576602(_0x16513a[_0x15971a(0x14a)],_0x15971a(0x134),_0x5ab6bf['UniverInstanceType'][_0x15971a(0x104)]),_0x16513a['UniverSheetsExchangeClientPlugin']=_0x48cf1b([_0x5ab6bf['DependentOn'](_0x32b48f[_0x15971a(0x138)]),_0x575193(0x1,_0x5ab6bf[_0x15971a(0x12c)](_0x5ab6bf['Injector'])),_0x575193(0x2,_0x5ab6bf[_0x15971a(0x102)])],_0x16513a[_0x15971a(0x14a)]),_0x16513a['ExportXLSXOperation']=_0x3db724,_0x16513a[_0x15971a(0x13a)]=_0x394989,Object['defineProperty'](_0x16513a,Symbol[_0x15971a(0x130)],{'value':_0x15971a(0x149)});}));function _0x56c6(_0x1e20bd,_0x571d96){const _0x429f3b=_0x429f();return _0x56c6=function(_0x56c651,_0x373e90){_0x56c651=_0x56c651-0x100;let _0x146c9c=_0x429f3b[_0x56c651];return _0x146c9c;},_0x56c6(_0x1e20bd,_0x571d96);}function _0x429f(){const _0x537e92=['getCurrentRangeDisable$','setConfig','@univerjs-pro/exchange-client','forEach','getOwnPropertyDescriptor','CommandType','_commandService','mergeMenu','exports','UniverSheetsUi','unit','3685098wGNkLp','amd','844089opZXnI','importXLSXToSnapshot','pluginName','exchange.download','47170zeWpOk','exchange-client.operation.export-xlsx','@univerjs/sheets-ui','UniverProExchangeClient','RibbonStartGroup','Inject','_config','IMenuManagerService','_injector','toStringTag','get','MenuItemType','Plugin','type','exchange.file','UniverProSheetsExchangeClient','_initMenus','UniverExchangeClientPlugin','FolderIcon','ImportXLSXOperation','7890680Igceow','_configService','exportXLSXBySnapshot','IExchangeOperateService','menu','SUBITEMS','711600qnioZF','ExportIcon','_initCommands','UniverInstanceType','UniverUi','Disposable','getMenuHiddenObservable','exchange-client.operation.import-xlsx','Module','UniverSheetsExchangeClientPlugin','registerCommand','BUTTON','object','IConfigService','508zTCxWc','UNIVER_SHEET','DirectExportIcon','importXLSXToUnitId','function','add','OPERATION','153307xUkmDd','_menuManagerService','symbol','onStarting','onReady','exportXLSXByUnitId','1054797rDhYSO','defineProperty','OTHERS','exchange.upload','@univerjs/core','disposeWithMe'];_0x429f=function(){return _0x537e92;};return _0x429f();}
|
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.8",
|
|
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/core": "0.10.
|
|
47
|
-
"@univerjs/sheets": "0.10.
|
|
48
|
-
"@univerjs/sheets-ui": "0.10.
|
|
49
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.8",
|
|
46
|
+
"@univerjs/core": "0.10.8",
|
|
47
|
+
"@univerjs/sheets": "0.10.8",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.8",
|
|
49
|
+
"@univerjs/ui": "0.10.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.2",
|
|
53
53
|
"vite": "^7.1.3",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.8"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|