@univerjs-pro/sheets-exchange-client 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0
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 _0x1b9acf=_0x2efc;(function(_0x34c85e,_0x2655cd){const _0x1f78ba=_0x2efc,_0x2e2d5f=_0x34c85e();while(!![]){try{const _0x75e0c5=parseInt(_0x1f78ba(0xf5))/0x1+-parseInt(_0x1f78ba(0xd7))/0x2+-parseInt(_0x1f78ba(0xe4))/0x3*(-parseInt(_0x1f78ba(0xc3))/0x4)+parseInt(_0x1f78ba(0xf6))/0x5*(parseInt(_0x1f78ba(0xf8))/0x6)+-parseInt(_0x1f78ba(0xcd))/0x7+parseInt(_0x1f78ba(0xc1))/0x8*(parseInt(_0x1f78ba(0xf1))/0x9)+-parseInt(_0x1f78ba(0xc8))/0xa*(parseInt(_0x1f78ba(0xe6))/0xb);if(_0x75e0c5===_0x2655cd)break;else _0x2e2d5f['push'](_0x2e2d5f['shift']());}catch(_0x189193){_0x2e2d5f['push'](_0x2e2d5f['shift']());}}}(_0x1ce0,0xa52e6));Object[_0x1b9acf(0xf3)](exports,Symbol[_0x1b9acf(0xd5)],{'value':_0x1b9acf(0xbe)});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':'exchange-client.operation.import-xlsx','type':i[_0x1b9acf(0xff)]['OPERATION'],'handler':async _0x29503b=>{const _0x1bd819=_0x1b9acf,_0x261d9d=_0x29503b[_0x1bd819(0xc4)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x1bd819(0xc4)](_0x1bd819(0xed))?_0x261d9d[_0x1bd819(0xcf)]():_0x261d9d[_0x1bd819(0xbd)](),!0x0;}},p={'id':_0x1b9acf(0xda),'type':i['CommandType']['OPERATION'],'handler':async _0x336cf1=>{const _0x3d2cc3=_0x1b9acf,_0x5b2a1a=_0x336cf1[_0x3d2cc3(0xc4)](g[_0x3d2cc3(0xfd)]);return new URLSearchParams(location[_0x3d2cc3(0xee)])['get'](_0x3d2cc3(0xed))?_0x5b2a1a[_0x3d2cc3(0xd4)]():_0x5b2a1a[_0x3d2cc3(0xe2)](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x390fc0){const _0x2f83f1=_0x1b9acf;return{'id':S,'type':c[_0x2f83f1(0xcb)][_0x2f83f1(0xd3)],'icon':_0x2f83f1(0xc0),'tooltip':_0x2f83f1(0xe5),'hidden$':c[_0x2f83f1(0xe9)](_0x390fc0,i['UniverInstanceType'][_0x2f83f1(0xe7)]),'disabled$':I['getCurrentRangeDisable$'](_0x390fc0,{'workbookTypes':[_[_0x2f83f1(0xec)]]})};}function P(){const _0x1a7887=_0x1b9acf;return{'id':l['id'],'type':c[_0x1a7887(0xcb)][_0x1a7887(0xf2)],'title':_0x1a7887(0xe3),'icon':_0x1a7887(0xd9)};}function C(){const _0x20c746=_0x1b9acf;return{'id':p['id'],'type':c['MenuItemType'][_0x20c746(0xf2)],'title':_0x20c746(0xea),'icon':_0x20c746(0xdd)};}const f={[c['RibbonStartGroup'][_0x1b9acf(0xd0)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x548614,_0x350609,_0x3f7d23,_0x10013a)=>{for(var _0x58f34a=_0x10013a>0x1?void 0x0:_0x10013a?T(_0x350609,_0x3f7d23):_0x350609,_0x25e364=_0x548614['length']-0x1,_0x2a0d93;_0x25e364>=0x0;_0x25e364--)(_0x2a0d93=_0x548614[_0x25e364])&&(_0x58f34a=_0x2a0d93(_0x58f34a)||_0x58f34a);return _0x58f34a;},m=(_0x376449,_0x152283)=>(_0x1e99bd,_0xc3ca2f)=>_0x152283(_0x1e99bd,_0xc3ca2f,_0x376449);let u=class extends i[_0x1b9acf(0xfa)]{constructor(_0x49d50a,_0x2b485f){const _0x58ed4a=_0x1b9acf;super(),this[_0x58ed4a(0xe1)]=_0x49d50a,this[_0x58ed4a(0xd2)]=_0x2b485f,this[_0x58ed4a(0xfc)](),this[_0x58ed4a(0xc9)]();}[_0x1b9acf(0xfc)](){const _0x58f12d=_0x1b9acf;[l,p][_0x58f12d(0xca)](_0x579a11=>{const _0x5bb92b=_0x58f12d;this[_0x5bb92b(0xeb)](this['_commandService'][_0x5bb92b(0xd6)](_0x579a11));});}[_0x1b9acf(0xc9)](){const _0x4c3021=_0x1b9acf;this[_0x4c3021(0xd2)][_0x4c3021(0xbf)](f);}};u=y([m(0x0,i[_0x1b9acf(0xc7)]),m(0x1,c[_0x1b9acf(0xc2)])],u);var O=Object[_0x1b9acf(0xf3)],U=Object[_0x1b9acf(0xf0)],X=(_0x541394,_0x1f80b4,_0x1829e7)=>_0x1f80b4 in _0x541394?O(_0x541394,_0x1f80b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1829e7}):_0x541394[_0x1f80b4]=_0x1829e7,N=(_0x4141c0,_0x4724b8,_0x3b9eba,_0x53c316)=>{const _0x3c14bf=_0x1b9acf;for(var _0x266757=_0x53c316>0x1?void 0x0:_0x53c316?U(_0x4724b8,_0x3b9eba):_0x4724b8,_0x4d442c=_0x4141c0[_0x3c14bf(0xd8)]-0x1,_0x2afa54;_0x4d442c>=0x0;_0x4d442c--)(_0x2afa54=_0x4141c0[_0x4d442c])&&(_0x266757=_0x2afa54(_0x266757)||_0x266757);return _0x266757;},d=(_0x21efb9,_0xc50369)=>(_0xb97843,_0x6a541a)=>_0xc50369(_0xb97843,_0x6a541a,_0x21efb9),E=(_0x99e95a,_0x3fc22f,_0x1a80f8)=>X(_0x99e95a,typeof _0x3fc22f!=_0x1b9acf(0xcc)?_0x3fc22f+'':_0x3fc22f,_0x1a80f8);const L=_0x1b9acf(0xf9);function _0x1ce0(){const _0x27664d=['10iQxDeI','_initMenus','forEach','MenuItemType','symbol','1287097ChQfEZ','ImportXLSXOperation','importXLSXToUnitId','OTHERS','UniverSheetsExchangeClientPlugin','_menuManagerService','SUBITEMS','exportXLSXByUnitId','toStringTag','registerCommand','2539042gOaLLU','length','FolderIcon','exchange-client.operation.export-xlsx','onStarting','menu','ExportIcon','Inject','_injector','onReady','_commandService','exportXLSXBySnapshot','exchange.upload','948reMrzf','exchange.file','4732783ANCHQl','UNIVER_SHEET','UniverExchangeClientPlugin','getMenuHiddenObservable','exchange.download','disposeWithMe','WorkbookExportPermission','unit','search','IConfigService','getOwnPropertyDescriptor','154323jsCUyF','BUTTON','defineProperty','pluginName','541901LPfdWo','223105tiShRU','_configService','24TfktSf','SHEET_EXCHANGE_CLIENT_PLUGIN','Disposable','merge','_initCommands','IExchangeOperateService','Plugin','CommandType','importXLSXToSnapshot','Module','mergeMenu','DirectExportIcon','496TgOJWB','IMenuManagerService','9832dPxrSq','get','_config','UniverInstanceType','ICommandService'];_0x1ce0=function(){return _0x27664d;};return _0x1ce0();}function _0x2efc(_0x4fca99,_0x248ca0){_0x4fca99=_0x4fca99-0xbd;const _0x1ce0af=_0x1ce0();let _0x2efcbb=_0x1ce0af[_0x4fca99];return _0x2efcbb;}exports[_0x1b9acf(0xd1)]=class extends i[_0x1b9acf(0xfe)]{constructor(_0x24a55e=h,_0x4ddb2e,_0x491582){const _0x58eb7b=_0x1b9acf;super(),this[_0x58eb7b(0xc5)]=_0x24a55e,this[_0x58eb7b(0xdf)]=_0x4ddb2e,this[_0x58eb7b(0xf7)]=_0x491582;const {menu:_0x560f0e,..._0x3a6ca5}=i[_0x58eb7b(0xfb)]({},h,this[_0x58eb7b(0xc5)]);_0x560f0e&&this[_0x58eb7b(0xf7)]['setConfig'](_0x58eb7b(0xdc),_0x560f0e,{'merge':!0x0}),this['_configService']['setConfig'](v,_0x3a6ca5);}[_0x1b9acf(0xdb)](){const _0x53ec38=_0x1b9acf;[[u]]['forEach'](_0x1dc839=>this[_0x53ec38(0xdf)]['add'](_0x1dc839));}[_0x1b9acf(0xe0)](){const _0x5d17ab=_0x1b9acf;this[_0x5d17ab(0xdf)]['get'](u);}},E(exports[_0x1b9acf(0xd1)],_0x1b9acf(0xf4),L),E(exports[_0x1b9acf(0xd1)],'type',i[_0x1b9acf(0xc6)][_0x1b9acf(0xe7)]),exports[_0x1b9acf(0xd1)]=N([i['DependentOn'](g[_0x1b9acf(0xe8)]),d(0x1,i[_0x1b9acf(0xde)](i['Injector'])),d(0x2,i[_0x1b9acf(0xef)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x1b9acf(0xce)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x41e3ba=_0x1dad;(function(_0x1106e4,_0x3fd1a8){const _0x227909=_0x1dad,_0x59019d=_0x1106e4();while(!![]){try{const _0x42e845=parseInt(_0x227909(0x1e2))/0x1*(parseInt(_0x227909(0x1e6))/0x2)+-parseInt(_0x227909(0x1ee))/0x3+-parseInt(_0x227909(0x1eb))/0x4+parseInt(_0x227909(0x1f0))/0x5+-parseInt(_0x227909(0x1fb))/0x6*(-parseInt(_0x227909(0x1f4))/0x7)+parseInt(_0x227909(0x1d6))/0x8*(-parseInt(_0x227909(0x1e3))/0x9)+parseInt(_0x227909(0x1dc))/0xa;if(_0x42e845===_0x3fd1a8)break;else _0x59019d['push'](_0x59019d['shift']());}catch(_0x631d22){_0x59019d['push'](_0x59019d['shift']());}}}(_0xfe48,0x8e54e));import{IExchangeOperateService as _0x1c34e8,UniverExchangeClientPlugin as _0x265792}from'@univerjs-pro/exchange-client';import{CommandType as _0x41eb2e,UniverInstanceType as _0x1f527e,Disposable as _0x2d971c,ICommandService as _0x1728d1,DependentOn as _0x22647f,Inject as _0x53b43c,Injector as _0x52b5e7,IConfigService as _0x3e3500,Plugin as _0x1ebffd,merge as _0x6bc6c9}from'@univerjs/core';function _0x1dad(_0x3617be,_0x269040){_0x3617be=_0x3617be-0x1d6;const _0xfe4808=_0xfe48();let _0x1dadda=_0xfe4808[_0x3617be];return _0x1dadda;}import{MenuItemType as _0x291293,getMenuHiddenObservable as _0x4a3cf1,RibbonStartGroup as _0x202143,IMenuManagerService as _0x4cd612}from'@univerjs/ui';import{WorkbookExportPermission as _0x579be6}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4842cd}from'@univerjs/sheets-ui';const p={'id':_0x41e3ba(0x1fa),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x3f3729=>{const _0x540663=_0x41e3ba,_0x3300a2=_0x3f3729[_0x540663(0x1ef)](_0x1c34e8);return new URLSearchParams(location[_0x540663(0x1f2)])[_0x540663(0x1ef)](_0x540663(0x1dd))?_0x3300a2['importXLSXToUnitId']():_0x3300a2[_0x540663(0x1d8)](),!0x0;}},u={'id':_0x41e3ba(0x1e0),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x83f8f9=>{const _0x4c6138=_0x41e3ba,_0x23846c=_0x83f8f9['get'](_0x1c34e8);return new URLSearchParams(location[_0x4c6138(0x1f2)])[_0x4c6138(0x1ef)](_0x4c6138(0x1dd))?_0x23846c['exportXLSXByUnitId']():_0x23846c[_0x4c6138(0x1f8)](),!0x0;}},H=_0x41e3ba(0x1fe),l={},S=_0x41e3ba(0x1d9);function R(_0x48a2b1){const _0x838a47=_0x41e3ba;return{'id':S,'type':_0x291293[_0x838a47(0x1e5)],'icon':_0x838a47(0x200),'tooltip':'exchange.file','hidden$':_0x4a3cf1(_0x48a2b1,_0x1f527e['UNIVER_SHEET']),'disabled$':_0x4842cd(_0x48a2b1,{'workbookTypes':[_0x579be6]})};}function w(){const _0x123223=_0x41e3ba;return{'id':p['id'],'type':_0x291293[_0x123223(0x1e4)],'title':_0x123223(0x1da),'icon':'FolderIcon'};}function D(){const _0x394ae6=_0x41e3ba;return{'id':u['id'],'type':_0x291293[_0x394ae6(0x1e4)],'title':_0x394ae6(0x1f5),'icon':_0x394ae6(0x1fc)};}const F={[_0x202143['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x41e3ba(0x201)],A=(_0x277769,_0x3f6a1e,_0x355e52,_0x5935c7)=>{const _0x16115d=_0x41e3ba;for(var _0x46267a=_0x5935c7>0x1?void 0x0:_0x5935c7?G(_0x3f6a1e,_0x355e52):_0x3f6a1e,_0x8ad94=_0x277769[_0x16115d(0x1e8)]-0x1,_0x4196dd;_0x8ad94>=0x0;_0x8ad94--)(_0x4196dd=_0x277769[_0x8ad94])&&(_0x46267a=_0x4196dd(_0x46267a)||_0x46267a);return _0x46267a;},d=(_0x35f6cb,_0x5cdafb)=>(_0x148ced,_0x4f1111)=>_0x5cdafb(_0x148ced,_0x4f1111,_0x35f6cb);let c=class extends _0x2d971c{constructor(_0x34df6e,_0x29ba58){const _0x27bcab=_0x41e3ba;super(),this['_commandService']=_0x34df6e,this['_menuManagerService']=_0x29ba58,this['_initCommands'](),this[_0x27bcab(0x202)]();}[_0x41e3ba(0x1de)](){const _0x507f18=_0x41e3ba;[p,u][_0x507f18(0x1e9)](_0x49491f=>{const _0x448118=_0x507f18;this[_0x448118(0x1d7)](this['_commandService'][_0x448118(0x1e1)](_0x49491f));});}[_0x41e3ba(0x202)](){const _0xdd139c=_0x41e3ba;this[_0xdd139c(0x203)]['mergeMenu'](F);}};c=A([d(0x0,_0x1728d1),d(0x1,_0x4cd612)],c);var j=Object['defineProperty'],B=Object[_0x41e3ba(0x201)],$=(_0x2e1735,_0x66ba31,_0x17f1aa)=>_0x66ba31 in _0x2e1735?j(_0x2e1735,_0x66ba31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f1aa}):_0x2e1735[_0x66ba31]=_0x17f1aa,V=(_0x51f2a2,_0x1b66af,_0x133404,_0x1227f0)=>{const _0x4c2801=_0x41e3ba;for(var _0x5ca710=_0x1227f0>0x1?void 0x0:_0x1227f0?B(_0x1b66af,_0x133404):_0x1b66af,_0x59eccf=_0x51f2a2[_0x4c2801(0x1e8)]-0x1,_0x12dd72;_0x59eccf>=0x0;_0x59eccf--)(_0x12dd72=_0x51f2a2[_0x59eccf])&&(_0x5ca710=_0x12dd72(_0x5ca710)||_0x5ca710);return _0x5ca710;},_=(_0x2750a8,_0x1b718d)=>(_0x22680e,_0x11e6ac)=>_0x1b718d(_0x22680e,_0x11e6ac,_0x2750a8),I=(_0x1cd5b4,_0x92cc8,_0x8e6018)=>$(_0x1cd5b4,typeof _0x92cc8!=_0x41e3ba(0x1df)?_0x92cc8+'':_0x92cc8,_0x8e6018);const W=_0x41e3ba(0x1f1);let s=class extends _0x1ebffd{constructor(_0x390495=l,_0xadc7ba,_0x5935d6){const _0x279e28=_0x41e3ba;super(),this[_0x279e28(0x1f3)]=_0x390495,this[_0x279e28(0x1ea)]=_0xadc7ba,this[_0x279e28(0x1ec)]=_0x5935d6;const {menu:_0x27d884,..._0xc4ced6}=_0x6bc6c9({},l,this[_0x279e28(0x1f3)]);_0x27d884&&this[_0x279e28(0x1ec)][_0x279e28(0x1f6)](_0x279e28(0x1e7),_0x27d884,{'merge':!0x0}),this['_configService'][_0x279e28(0x1f6)](H,_0xc4ced6);}[_0x41e3ba(0x1f9)](){const _0x5bada9=_0x41e3ba;[[c]][_0x5bada9(0x1e9)](_0x270905=>this[_0x5bada9(0x1ea)]['add'](_0x270905));}[_0x41e3ba(0x1f7)](){const _0x3e630e=_0x41e3ba;this['_injector'][_0x3e630e(0x1ef)](c);}};function _0xfe48(){const _0x323ff9=['exchange-client.operation.import-xlsx','1528932qNASgj','ExportIcon','UNIVER_SHEET','sheets-exchange-client.config','type','DirectExportIcon','getOwnPropertyDescriptor','_initMenus','_menuManagerService','10088hrfFee','disposeWithMe','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','exchange.upload','OPERATION','10084510hYaSoJ','unit','_initCommands','symbol','exchange-client.operation.export-xlsx','registerCommand','2Rhftck','2484JnWIkk','BUTTON','SUBITEMS','706506MwoUBS','menu','length','forEach','_injector','3962436hIZonV','_configService','pluginName','2004747MsIWcT','get','3100525KjFLwj','SHEET_EXCHANGE_CLIENT_PLUGIN','search','_config','7UPXNjI','exchange.download','setConfig','onReady','exportXLSXBySnapshot','onStarting'];_0xfe48=function(){return _0x323ff9;};return _0xfe48();}I(s,_0x41e3ba(0x1ed),W),I(s,_0x41e3ba(0x1ff),_0x1f527e[_0x41e3ba(0x1fd)]),s=V([_0x22647f(_0x265792),_(0x1,_0x53b43c(_0x52b5e7)),_(0x2,_0x3e3500)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x41e3ba=_0x1dad;(function(_0x1106e4,_0x3fd1a8){const _0x227909=_0x1dad,_0x59019d=_0x1106e4();while(!![]){try{const _0x42e845=parseInt(_0x227909(0x1e2))/0x1*(parseInt(_0x227909(0x1e6))/0x2)+-parseInt(_0x227909(0x1ee))/0x3+-parseInt(_0x227909(0x1eb))/0x4+parseInt(_0x227909(0x1f0))/0x5+-parseInt(_0x227909(0x1fb))/0x6*(-parseInt(_0x227909(0x1f4))/0x7)+parseInt(_0x227909(0x1d6))/0x8*(-parseInt(_0x227909(0x1e3))/0x9)+parseInt(_0x227909(0x1dc))/0xa;if(_0x42e845===_0x3fd1a8)break;else _0x59019d['push'](_0x59019d['shift']());}catch(_0x631d22){_0x59019d['push'](_0x59019d['shift']());}}}(_0xfe48,0x8e54e));import{IExchangeOperateService as _0x1c34e8,UniverExchangeClientPlugin as _0x265792}from'@univerjs-pro/exchange-client';import{CommandType as _0x41eb2e,UniverInstanceType as _0x1f527e,Disposable as _0x2d971c,ICommandService as _0x1728d1,DependentOn as _0x22647f,Inject as _0x53b43c,Injector as _0x52b5e7,IConfigService as _0x3e3500,Plugin as _0x1ebffd,merge as _0x6bc6c9}from'@univerjs/core';function _0x1dad(_0x3617be,_0x269040){_0x3617be=_0x3617be-0x1d6;const _0xfe4808=_0xfe48();let _0x1dadda=_0xfe4808[_0x3617be];return _0x1dadda;}import{MenuItemType as _0x291293,getMenuHiddenObservable as _0x4a3cf1,RibbonStartGroup as _0x202143,IMenuManagerService as _0x4cd612}from'@univerjs/ui';import{WorkbookExportPermission as _0x579be6}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4842cd}from'@univerjs/sheets-ui';const p={'id':_0x41e3ba(0x1fa),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x3f3729=>{const _0x540663=_0x41e3ba,_0x3300a2=_0x3f3729[_0x540663(0x1ef)](_0x1c34e8);return new URLSearchParams(location[_0x540663(0x1f2)])[_0x540663(0x1ef)](_0x540663(0x1dd))?_0x3300a2['importXLSXToUnitId']():_0x3300a2[_0x540663(0x1d8)](),!0x0;}},u={'id':_0x41e3ba(0x1e0),'type':_0x41eb2e[_0x41e3ba(0x1db)],'handler':async _0x83f8f9=>{const _0x4c6138=_0x41e3ba,_0x23846c=_0x83f8f9['get'](_0x1c34e8);return new URLSearchParams(location[_0x4c6138(0x1f2)])[_0x4c6138(0x1ef)](_0x4c6138(0x1dd))?_0x23846c['exportXLSXByUnitId']():_0x23846c[_0x4c6138(0x1f8)](),!0x0;}},H=_0x41e3ba(0x1fe),l={},S=_0x41e3ba(0x1d9);function R(_0x48a2b1){const _0x838a47=_0x41e3ba;return{'id':S,'type':_0x291293[_0x838a47(0x1e5)],'icon':_0x838a47(0x200),'tooltip':'exchange.file','hidden$':_0x4a3cf1(_0x48a2b1,_0x1f527e['UNIVER_SHEET']),'disabled$':_0x4842cd(_0x48a2b1,{'workbookTypes':[_0x579be6]})};}function w(){const _0x123223=_0x41e3ba;return{'id':p['id'],'type':_0x291293[_0x123223(0x1e4)],'title':_0x123223(0x1da),'icon':'FolderIcon'};}function D(){const _0x394ae6=_0x41e3ba;return{'id':u['id'],'type':_0x291293[_0x394ae6(0x1e4)],'title':_0x394ae6(0x1f5),'icon':_0x394ae6(0x1fc)};}const F={[_0x202143['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x41e3ba(0x201)],A=(_0x277769,_0x3f6a1e,_0x355e52,_0x5935c7)=>{const _0x16115d=_0x41e3ba;for(var _0x46267a=_0x5935c7>0x1?void 0x0:_0x5935c7?G(_0x3f6a1e,_0x355e52):_0x3f6a1e,_0x8ad94=_0x277769[_0x16115d(0x1e8)]-0x1,_0x4196dd;_0x8ad94>=0x0;_0x8ad94--)(_0x4196dd=_0x277769[_0x8ad94])&&(_0x46267a=_0x4196dd(_0x46267a)||_0x46267a);return _0x46267a;},d=(_0x35f6cb,_0x5cdafb)=>(_0x148ced,_0x4f1111)=>_0x5cdafb(_0x148ced,_0x4f1111,_0x35f6cb);let c=class extends _0x2d971c{constructor(_0x34df6e,_0x29ba58){const _0x27bcab=_0x41e3ba;super(),this['_commandService']=_0x34df6e,this['_menuManagerService']=_0x29ba58,this['_initCommands'](),this[_0x27bcab(0x202)]();}[_0x41e3ba(0x1de)](){const _0x507f18=_0x41e3ba;[p,u][_0x507f18(0x1e9)](_0x49491f=>{const _0x448118=_0x507f18;this[_0x448118(0x1d7)](this['_commandService'][_0x448118(0x1e1)](_0x49491f));});}[_0x41e3ba(0x202)](){const _0xdd139c=_0x41e3ba;this[_0xdd139c(0x203)]['mergeMenu'](F);}};c=A([d(0x0,_0x1728d1),d(0x1,_0x4cd612)],c);var j=Object['defineProperty'],B=Object[_0x41e3ba(0x201)],$=(_0x2e1735,_0x66ba31,_0x17f1aa)=>_0x66ba31 in _0x2e1735?j(_0x2e1735,_0x66ba31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f1aa}):_0x2e1735[_0x66ba31]=_0x17f1aa,V=(_0x51f2a2,_0x1b66af,_0x133404,_0x1227f0)=>{const _0x4c2801=_0x41e3ba;for(var _0x5ca710=_0x1227f0>0x1?void 0x0:_0x1227f0?B(_0x1b66af,_0x133404):_0x1b66af,_0x59eccf=_0x51f2a2[_0x4c2801(0x1e8)]-0x1,_0x12dd72;_0x59eccf>=0x0;_0x59eccf--)(_0x12dd72=_0x51f2a2[_0x59eccf])&&(_0x5ca710=_0x12dd72(_0x5ca710)||_0x5ca710);return _0x5ca710;},_=(_0x2750a8,_0x1b718d)=>(_0x22680e,_0x11e6ac)=>_0x1b718d(_0x22680e,_0x11e6ac,_0x2750a8),I=(_0x1cd5b4,_0x92cc8,_0x8e6018)=>$(_0x1cd5b4,typeof _0x92cc8!=_0x41e3ba(0x1df)?_0x92cc8+'':_0x92cc8,_0x8e6018);const W=_0x41e3ba(0x1f1);let s=class extends _0x1ebffd{constructor(_0x390495=l,_0xadc7ba,_0x5935d6){const _0x279e28=_0x41e3ba;super(),this[_0x279e28(0x1f3)]=_0x390495,this[_0x279e28(0x1ea)]=_0xadc7ba,this[_0x279e28(0x1ec)]=_0x5935d6;const {menu:_0x27d884,..._0xc4ced6}=_0x6bc6c9({},l,this[_0x279e28(0x1f3)]);_0x27d884&&this[_0x279e28(0x1ec)][_0x279e28(0x1f6)](_0x279e28(0x1e7),_0x27d884,{'merge':!0x0}),this['_configService'][_0x279e28(0x1f6)](H,_0xc4ced6);}[_0x41e3ba(0x1f9)](){const _0x5bada9=_0x41e3ba;[[c]][_0x5bada9(0x1e9)](_0x270905=>this[_0x5bada9(0x1ea)]['add'](_0x270905));}[_0x41e3ba(0x1f7)](){const _0x3e630e=_0x41e3ba;this['_injector'][_0x3e630e(0x1ef)](c);}};function _0xfe48(){const _0x323ff9=['exchange-client.operation.import-xlsx','1528932qNASgj','ExportIcon','UNIVER_SHEET','sheets-exchange-client.config','type','DirectExportIcon','getOwnPropertyDescriptor','_initMenus','_menuManagerService','10088hrfFee','disposeWithMe','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','exchange.upload','OPERATION','10084510hYaSoJ','unit','_initCommands','symbol','exchange-client.operation.export-xlsx','registerCommand','2Rhftck','2484JnWIkk','BUTTON','SUBITEMS','706506MwoUBS','menu','length','forEach','_injector','3962436hIZonV','_configService','pluginName','2004747MsIWcT','get','3100525KjFLwj','SHEET_EXCHANGE_CLIENT_PLUGIN','search','_config','7UPXNjI','exchange.download','setConfig','onReady','exportXLSXBySnapshot','onStarting'];_0xfe48=function(){return _0x323ff9;};return _0xfe48();}I(s,_0x41e3ba(0x1ed),W),I(s,_0x41e3ba(0x1ff),_0x1f527e[_0x41e3ba(0x1fd)]),s=V([_0x22647f(_0x265792),_(0x1,_0x53b43c(_0x52b5e7)),_(0x2,_0x3e3500)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2c78(_0x354c02,_0x224d00){_0x354c02=_0x354c02-0x13d;const _0x3b97b5=_0x3b97();let _0x2c7825=_0x3b97b5[_0x354c02];return _0x2c7825;}function _0x3b97(){const _0x3bad07=['UniverUi','@univerjs/sheets','getOwnPropertyDescriptor','amd','875708yQXXQJ','UniverProSheetsExchangeClient','DependentOn','unit','get','29721xqqsJm','UniverSheetsExchangeClientPlugin','@univerjs-pro/exchange-client','_injector','UniverExchangeClientPlugin','FolderIcon','Plugin','Inject','4023153jiFdLw','153080CoPspw','_config','sheets-exchange-client.operation.exchange','defineProperty','exchange.upload','505099FdTDAz','SUBITEMS','ImportXLSXOperation','@univerjs/sheets-ui','type','sheets-exchange-client.config','exchange.file','_initCommands','_initMenus','CommandType','IExchangeOperateService','1139560jDGlVj','exports','RibbonStartGroup','_menuManagerService','merge','UNIVER_SHEET','onReady','mergeMenu','onStarting','WorkbookExportPermission','IConfigService','registerCommand','setConfig','OTHERS','UniverInstanceType','MenuItemType','Disposable','UniverSheets','BUTTON','413712eQDcEi','_configService','forEach','Module','object','exchange.download','length','function','@univerjs/ui','IMenuManagerService','symbol','search','6oTpzJV','exportXLSXByUnitId','ExportXLSXOperation','2SSRRRt','UniverProExchangeClient'];_0x3b97=function(){return _0x3bad07;};return _0x3b97();}(function(_0x2f1beb,_0x5b249a){const _0x7b7973=_0x2c78,_0x5b75b5=_0x2f1beb();while(!![]){try{const _0x154c9f=parseInt(_0x7b7973(0x16d))/0x1+-parseInt(_0x7b7973(0x159))/0x2*(parseInt(_0x7b7973(0x164))/0x3)+-parseInt(_0x7b7973(0x15f))/0x4+-parseInt(_0x7b7973(0x17d))/0x5*(parseInt(_0x7b7973(0x156))/0x6)+-parseInt(_0x7b7973(0x172))/0x7+parseInt(_0x7b7973(0x14a))/0x8+parseInt(_0x7b7973(0x16c))/0x9;if(_0x154c9f===_0x5b249a)break;else _0x5b75b5['push'](_0x5b75b5['shift']());}catch(_0x5d3b67){_0x5b75b5['push'](_0x5b75b5['shift']());}}}(_0x3b97,0x1e01c),function(_0x471ea9,_0xcca2c1){const _0x62e449=_0x2c78;typeof exports==_0x62e449(0x14e)&&typeof module<'u'?_0xcca2c1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x62e449(0x151)&&define[_0x62e449(0x15e)]?define([_0x62e449(0x17e),_0x62e449(0x166),'@univerjs/core',_0x62e449(0x152),_0x62e449(0x15c),_0x62e449(0x175)],_0xcca2c1):(_0x471ea9=typeof globalThis<'u'?globalThis:_0x471ea9||self,_0xcca2c1(_0x471ea9[_0x62e449(0x160)]={},_0x471ea9[_0x62e449(0x15a)],_0x471ea9['UniverCore'],_0x471ea9[_0x62e449(0x15b)],_0x471ea9[_0x62e449(0x148)],_0x471ea9['UniverSheetsUi']));}(this,function(_0x10a323,_0x27d58a,_0xc474be,_0x41e92f,_0x39137f,_0x2ccd0b){'use strict';const _0xf9c41e=_0x2c78;const _0x344ad3={'id':'exchange-client.operation.import-xlsx','type':_0xc474be[_0xf9c41e(0x17b)]['OPERATION'],'handler':async _0x2e43e0=>{const _0x76fbaa=_0xf9c41e,_0x237682=_0x2e43e0[_0x76fbaa(0x163)](_0x27d58a[_0x76fbaa(0x17c)]);return new URLSearchParams(location['search'])[_0x76fbaa(0x163)](_0x76fbaa(0x162))?_0x237682['importXLSXToUnitId']():_0x237682['importXLSXToSnapshot'](),!0x0;}},_0x1243fb={'id':'exchange-client.operation.export-xlsx','type':_0xc474be[_0xf9c41e(0x17b)]['OPERATION'],'handler':async _0x2f91b7=>{const _0x178c0f=_0xf9c41e,_0x334b41=_0x2f91b7[_0x178c0f(0x163)](_0x27d58a[_0x178c0f(0x17c)]);return new URLSearchParams(location[_0x178c0f(0x155)])['get'](_0x178c0f(0x162))?_0x334b41[_0x178c0f(0x157)]():_0x334b41['exportXLSXBySnapshot'](),!0x0;}},_0x217f44=_0xf9c41e(0x177),_0x5c09b3={},_0xb1f7d0=_0xf9c41e(0x16f);function _0x739c55(_0x33d7c3){const _0x36ce84=_0xf9c41e;return{'id':_0xb1f7d0,'type':_0x41e92f['MenuItemType'][_0x36ce84(0x173)],'icon':'DirectExportIcon','tooltip':_0x36ce84(0x178),'hidden$':_0x41e92f['getMenuHiddenObservable'](_0x33d7c3,_0xc474be['UniverInstanceType'][_0x36ce84(0x182)]),'disabled$':_0x2ccd0b['getCurrentRangeDisable$'](_0x33d7c3,{'workbookTypes':[_0x39137f[_0x36ce84(0x140)]]})};}function _0x795919(){const _0x57a779=_0xf9c41e;return{'id':_0x344ad3['id'],'type':_0x41e92f['MenuItemType'][_0x57a779(0x149)],'title':_0x57a779(0x171),'icon':_0x57a779(0x169)};}function _0x3e6c71(){const _0x2849a8=_0xf9c41e;return{'id':_0x1243fb['id'],'type':_0x41e92f[_0x2849a8(0x146)][_0x2849a8(0x149)],'title':_0x2849a8(0x14f),'icon':'ExportIcon'};}const _0x440608={[_0x41e92f[_0xf9c41e(0x17f)][_0xf9c41e(0x144)]]:{[_0xb1f7d0]:{'order':0.3,'menuItemFactory':_0x739c55,[_0x344ad3['id']]:{'order':0x0,'menuItemFactory':_0x795919},[_0x1243fb['id']]:{'order':0x1,'menuItemFactory':_0x3e6c71}}}};var _0x1aaf95=Object[_0xf9c41e(0x15d)],_0x5a96a8=(_0x7894aa,_0x4f25be,_0x253934,_0x36a93a)=>{const _0x4a9fd3=_0xf9c41e;for(var _0x133abf=_0x36a93a>0x1?void 0x0:_0x36a93a?_0x1aaf95(_0x4f25be,_0x253934):_0x4f25be,_0x41d121=_0x7894aa[_0x4a9fd3(0x150)]-0x1,_0x453b06;_0x41d121>=0x0;_0x41d121--)(_0x453b06=_0x7894aa[_0x41d121])&&(_0x133abf=_0x453b06(_0x133abf)||_0x133abf);return _0x133abf;},_0x5b0b3b=(_0x1fad64,_0x441b61)=>(_0x336ae7,_0x433c7e)=>_0x441b61(_0x336ae7,_0x433c7e,_0x1fad64);let _0x313f6d=class extends _0xc474be[_0xf9c41e(0x147)]{constructor(_0xb2856d,_0x369b35){const _0x24ea0a=_0xf9c41e;super(),this['_commandService']=_0xb2856d,this[_0x24ea0a(0x180)]=_0x369b35,this[_0x24ea0a(0x179)](),this[_0x24ea0a(0x17a)]();}[_0xf9c41e(0x179)](){const _0xf15c99=_0xf9c41e;[_0x344ad3,_0x1243fb][_0xf15c99(0x14c)](_0x2b2a37=>{const _0x2c3b02=_0xf15c99;this['disposeWithMe'](this['_commandService'][_0x2c3b02(0x142)](_0x2b2a37));});}[_0xf9c41e(0x17a)](){const _0x2704d3=_0xf9c41e;this['_menuManagerService'][_0x2704d3(0x13e)](_0x440608);}};_0x313f6d=_0x5a96a8([_0x5b0b3b(0x0,_0xc474be['ICommandService']),_0x5b0b3b(0x1,_0x41e92f[_0xf9c41e(0x153)])],_0x313f6d);var _0x3e9651=Object[_0xf9c41e(0x170)],_0x367d26=Object[_0xf9c41e(0x15d)],_0x1016c9=(_0x287ace,_0x17ed37,_0x363f0d)=>_0x17ed37 in _0x287ace?_0x3e9651(_0x287ace,_0x17ed37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x363f0d}):_0x287ace[_0x17ed37]=_0x363f0d,_0x1811ed=(_0x129177,_0x4217f9,_0x35b044,_0x1dffd6)=>{const _0x26576a=_0xf9c41e;for(var _0x11f9a3=_0x1dffd6>0x1?void 0x0:_0x1dffd6?_0x367d26(_0x4217f9,_0x35b044):_0x4217f9,_0x311019=_0x129177[_0x26576a(0x150)]-0x1,_0xbd69fa;_0x311019>=0x0;_0x311019--)(_0xbd69fa=_0x129177[_0x311019])&&(_0x11f9a3=_0xbd69fa(_0x11f9a3)||_0x11f9a3);return _0x11f9a3;},_0x5c6e16=(_0x220a14,_0x57c1f8)=>(_0x3efbba,_0x287cc5)=>_0x57c1f8(_0x3efbba,_0x287cc5,_0x220a14),_0x2e0f65=(_0x2a2f4e,_0x25b01,_0xeb5c49)=>_0x1016c9(_0x2a2f4e,typeof _0x25b01!=_0xf9c41e(0x154)?_0x25b01+'':_0x25b01,_0xeb5c49);const _0x1ace24='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x10a323[_0xf9c41e(0x165)]=class extends _0xc474be[_0xf9c41e(0x16a)]{constructor(_0x12b6b0=_0x5c09b3,_0xf549bb,_0x2f0400){const _0xd21df5=_0xf9c41e;super(),this[_0xd21df5(0x16e)]=_0x12b6b0,this['_injector']=_0xf549bb,this[_0xd21df5(0x14b)]=_0x2f0400;const {menu:_0x52934e,..._0x2c6ddd}=_0xc474be[_0xd21df5(0x181)]({},_0x5c09b3,this['_config']);_0x52934e&&this['_configService']['setConfig']('menu',_0x52934e,{'merge':!0x0}),this[_0xd21df5(0x14b)][_0xd21df5(0x143)](_0x217f44,_0x2c6ddd);}[_0xf9c41e(0x13f)](){const _0x4ad040=_0xf9c41e;[[_0x313f6d]][_0x4ad040(0x14c)](_0x6b9463=>this[_0x4ad040(0x167)]['add'](_0x6b9463));}[_0xf9c41e(0x13d)](){const _0x237985=_0xf9c41e;this['_injector'][_0x237985(0x163)](_0x313f6d);}},_0x2e0f65(_0x10a323[_0xf9c41e(0x165)],'pluginName',_0x1ace24),_0x2e0f65(_0x10a323['UniverSheetsExchangeClientPlugin'],_0xf9c41e(0x176),_0xc474be[_0xf9c41e(0x145)]['UNIVER_SHEET']),_0x10a323[_0xf9c41e(0x165)]=_0x1811ed([_0xc474be[_0xf9c41e(0x161)](_0x27d58a[_0xf9c41e(0x168)]),_0x5c6e16(0x1,_0xc474be[_0xf9c41e(0x16b)](_0xc474be['Injector'])),_0x5c6e16(0x2,_0xc474be[_0xf9c41e(0x141)])],_0x10a323['UniverSheetsExchangeClientPlugin']),_0x10a323[_0xf9c41e(0x158)]=_0x1243fb,_0x10a323[_0xf9c41e(0x174)]=_0x344ad3,Object['defineProperty'](_0x10a323,Symbol['toStringTag'],{'value':_0xf9c41e(0x14d)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.15.2-insiders.
|
|
3
|
+
"version": "0.15.2-insiders.20260124-12fc7f0",
|
|
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.15.2-insiders.
|
|
46
|
-
"@univerjs/core": "0.15.2-insiders.
|
|
47
|
-
"@univerjs/sheets
|
|
48
|
-
"@univerjs/sheets": "0.15.2-insiders.
|
|
49
|
-
"@univerjs/ui": "0.15.2-insiders.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.2-insiders.20260124-12fc7f0",
|
|
46
|
+
"@univerjs/core": "0.15.2-insiders.20260124-12fc7f0",
|
|
47
|
+
"@univerjs/sheets": "0.15.2-insiders.20260124-12fc7f0",
|
|
48
|
+
"@univerjs/sheets-ui": "0.15.2-insiders.20260124-12fc7f0",
|
|
49
|
+
"@univerjs/ui": "0.15.2-insiders.20260124-12fc7f0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|