@univerjs-pro/sheets-exchange-client 0.12.4 → 0.13.0-insiders.20251215-64041bb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5c4ff9=_0x486b;(function(_0x51d103,_0xa1e713){const _0x2f25be=_0x486b,_0x98fc0a=_0x51d103();while(!![]){try{const _0x44c882=-parseInt(_0x2f25be(0x1e4))/0x1+-parseInt(_0x2f25be(0x1b8))/0x2+-parseInt(_0x2f25be(0x1d2))/0x3+-parseInt(_0x2f25be(0x1d6))/0x4+parseInt(_0x2f25be(0x1d9))/0x5*(-parseInt(_0x2f25be(0x1cb))/0x6)+-parseInt(_0x2f25be(0x1d8))/0x7+parseInt(_0x2f25be(0x1d7))/0x8;if(_0x44c882===_0xa1e713)break;else _0x98fc0a['push'](_0x98fc0a['shift']());}catch(_0x47b839){_0x98fc0a['push'](_0x98fc0a['shift']());}}}(_0xc5b5,0x86411));Object[_0x5c4ff9(0x1d0)](exports,Symbol['toStringTag'],{'value':_0x5c4ff9(0x1b5)});function _0xc5b5(){const _0x3854af=['_injector','UniverSheetsExchangeClientPlugin','_configService','OPERATION','unit','Inject','_commandService','getOwnPropertyDescriptor','ICommandService','menu','CommandType','IExchangeOperateService','onReady','search','exportXLSXByUnitId','add','_menuManagerService','268404odVqjZ','length','disposeWithMe','DirectExportIcon','exchange-client.operation.export-xlsx','defineProperty','getMenuHiddenObservable','2714166TTvrWt','IConfigService','ExportXLSXOperation','_config','4123564uVPemP','42125544UudoQx','3201359ETlfHR','90jiJyvS','exchange.upload','type','exchange-client.operation.import-xlsx','exchange.download','ExportIcon','get','registerCommand','_initCommands','FolderIcon','exchange.file','481139sKweLZ','OTHERS','UNIVER_SHEET','forEach','BUTTON','onStarting','sheets-exchange-client.config','Injector','Disposable','UniverInstanceType','SHEET_EXCHANGE_CLIENT_PLUGIN','MenuItemType','WorkbookExportPermission','IMenuManagerService','getCurrentRangeDisable$','sheets-exchange-client.operation.exchange','merge','_initMenus','ImportXLSXOperation','UniverExchangeClientPlugin','importXLSXToUnitId','Module','RibbonStartGroup','setConfig','2072974WXJTNK','exportXLSXBySnapshot'];_0xc5b5=function(){return _0x3854af;};return _0xc5b5();}function _0x486b(_0x48116a,_0x3f0fe9){_0x48116a=_0x48116a-0x1a6;const _0xc5b534=_0xc5b5();let _0x486b32=_0xc5b534[_0x48116a];return _0x486b32;}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':_0x5c4ff9(0x1dc),'type':i['CommandType'][_0x5c4ff9(0x1bd)],'handler':async _0x5bcebb=>{const _0x57dbc8=_0x5c4ff9,_0x55f522=_0x5bcebb[_0x57dbc8(0x1df)](g[_0x57dbc8(0x1c5)]);return new URLSearchParams(location[_0x57dbc8(0x1c7)])['get'](_0x57dbc8(0x1be))?_0x55f522[_0x57dbc8(0x1b4)]():_0x55f522['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x5c4ff9(0x1cf),'type':i[_0x5c4ff9(0x1c4)][_0x5c4ff9(0x1bd)],'handler':async _0x32c9d4=>{const _0x420a2e=_0x5c4ff9,_0x46e450=_0x32c9d4[_0x420a2e(0x1df)](g['IExchangeOperateService']);return new URLSearchParams(location['search'])['get']('unit')?_0x46e450[_0x420a2e(0x1c8)]():_0x46e450[_0x420a2e(0x1b9)](),!0x0;}},v=_0x5c4ff9(0x1a6),h={},S=_0x5c4ff9(0x1af);function x(_0x247679){const _0x36b567=_0x5c4ff9;return{'id':S,'type':c[_0x36b567(0x1ab)]['SUBITEMS'],'icon':_0x36b567(0x1ce),'tooltip':_0x36b567(0x1e3),'hidden$':c[_0x36b567(0x1d1)](_0x247679,i[_0x36b567(0x1a9)][_0x36b567(0x1e6)]),'disabled$':I[_0x36b567(0x1ae)](_0x247679,{'workbookTypes':[_[_0x36b567(0x1ac)]]})};}function P(){const _0x4ece19=_0x5c4ff9;return{'id':l['id'],'type':c[_0x4ece19(0x1ab)][_0x4ece19(0x1e8)],'title':_0x4ece19(0x1da),'icon':_0x4ece19(0x1e2)};}function C(){const _0x2b97c1=_0x5c4ff9;return{'id':p['id'],'type':c[_0x2b97c1(0x1ab)][_0x2b97c1(0x1e8)],'title':_0x2b97c1(0x1dd),'icon':_0x2b97c1(0x1de)};}const f={[c[_0x5c4ff9(0x1b6)][_0x5c4ff9(0x1e5)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x5c4ff9(0x1c1)],y=(_0x428c92,_0x5543d5,_0x5e7827,_0x1b227f)=>{const _0x3543e1=_0x5c4ff9;for(var _0x459381=_0x1b227f>0x1?void 0x0:_0x1b227f?T(_0x5543d5,_0x5e7827):_0x5543d5,_0x44d54f=_0x428c92[_0x3543e1(0x1cc)]-0x1,_0x4ffcc9;_0x44d54f>=0x0;_0x44d54f--)(_0x4ffcc9=_0x428c92[_0x44d54f])&&(_0x459381=_0x4ffcc9(_0x459381)||_0x459381);return _0x459381;},m=(_0x272dda,_0x6ccd83)=>(_0x37760c,_0x1f0958)=>_0x6ccd83(_0x37760c,_0x1f0958,_0x272dda);let u=class extends i[_0x5c4ff9(0x1a8)]{constructor(_0x24f9dd,_0x393735){const _0x4961c7=_0x5c4ff9;super(),this[_0x4961c7(0x1c0)]=_0x24f9dd,this[_0x4961c7(0x1ca)]=_0x393735,this[_0x4961c7(0x1e1)](),this[_0x4961c7(0x1b1)]();}[_0x5c4ff9(0x1e1)](){const _0x1816e9=_0x5c4ff9;[l,p][_0x1816e9(0x1e7)](_0x2be7db=>{const _0x2e8b61=_0x1816e9;this[_0x2e8b61(0x1cd)](this['_commandService'][_0x2e8b61(0x1e0)](_0x2be7db));});}[_0x5c4ff9(0x1b1)](){const _0x49d25a=_0x5c4ff9;this[_0x49d25a(0x1ca)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x5c4ff9(0x1c2)]),m(0x1,c[_0x5c4ff9(0x1ad)])],u);var O=Object[_0x5c4ff9(0x1d0)],U=Object[_0x5c4ff9(0x1c1)],X=(_0x5a2458,_0x4e9042,_0x467846)=>_0x4e9042 in _0x5a2458?O(_0x5a2458,_0x4e9042,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467846}):_0x5a2458[_0x4e9042]=_0x467846,N=(_0x4bd359,_0x30c0ee,_0x57a6c0,_0x557fc7)=>{const _0x3d4d92=_0x5c4ff9;for(var _0x1399b6=_0x557fc7>0x1?void 0x0:_0x557fc7?U(_0x30c0ee,_0x57a6c0):_0x30c0ee,_0x462afc=_0x4bd359[_0x3d4d92(0x1cc)]-0x1,_0x3d2506;_0x462afc>=0x0;_0x462afc--)(_0x3d2506=_0x4bd359[_0x462afc])&&(_0x1399b6=_0x3d2506(_0x1399b6)||_0x1399b6);return _0x1399b6;},d=(_0xaedfce,_0x936c22)=>(_0x2de257,_0x282398)=>_0x936c22(_0x2de257,_0x282398,_0xaedfce),E=(_0x1f074f,_0x773f2b,_0x4e59f4)=>X(_0x1f074f,typeof _0x773f2b!='symbol'?_0x773f2b+'':_0x773f2b,_0x4e59f4);const L=_0x5c4ff9(0x1aa);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x5d3b5e=h,_0x1d47f8,_0x16ba96){const _0x5b511b=_0x5c4ff9;super(),this[_0x5b511b(0x1d5)]=_0x5d3b5e,this['_injector']=_0x1d47f8,this[_0x5b511b(0x1bc)]=_0x16ba96;const {menu:_0x3199e4,..._0x4c4163}=i[_0x5b511b(0x1b0)]({},h,this['_config']);_0x3199e4&&this[_0x5b511b(0x1bc)][_0x5b511b(0x1b7)](_0x5b511b(0x1c3),_0x3199e4,{'merge':!0x0}),this[_0x5b511b(0x1bc)][_0x5b511b(0x1b7)](v,_0x4c4163);}[_0x5c4ff9(0x1e9)](){const _0x3e2972=_0x5c4ff9;[[u]]['forEach'](_0x4ce74e=>this['_injector'][_0x3e2972(0x1c9)](_0x4ce74e));}[_0x5c4ff9(0x1c6)](){const _0x3ad685=_0x5c4ff9;this[_0x3ad685(0x1ba)][_0x3ad685(0x1df)](u);}},E(exports[_0x5c4ff9(0x1bb)],'pluginName',L),E(exports[_0x5c4ff9(0x1bb)],_0x5c4ff9(0x1db),i[_0x5c4ff9(0x1a9)][_0x5c4ff9(0x1e6)]),exports[_0x5c4ff9(0x1bb)]=N([i['DependentOn'](g[_0x5c4ff9(0x1b3)]),d(0x1,i[_0x5c4ff9(0x1bf)](i[_0x5c4ff9(0x1a7)])),d(0x2,i[_0x5c4ff9(0x1d3)])],exports[_0x5c4ff9(0x1bb)]),exports[_0x5c4ff9(0x1d4)]=p,exports[_0x5c4ff9(0x1b2)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3688(_0x5cb660,_0x18a495){_0x5cb660=_0x5cb660-0x1d7;const _0x4a43eb=_0x4a43();let _0x368816=_0x4a43eb[_0x5cb660];return _0x368816;}const _0x39378d=_0x3688;(function(_0x555ed5,_0x3dd17d){const _0x1ca090=_0x3688,_0x21e2ed=_0x555ed5();while(!![]){try{const _0x424a26=parseInt(_0x1ca090(0x1ec))/0x1*(-parseInt(_0x1ca090(0x203))/0x2)+parseInt(_0x1ca090(0x208))/0x3+-parseInt(_0x1ca090(0x1e9))/0x4*(-parseInt(_0x1ca090(0x1e7))/0x5)+parseInt(_0x1ca090(0x1da))/0x6*(parseInt(_0x1ca090(0x1f1))/0x7)+-parseInt(_0x1ca090(0x1e3))/0x8*(-parseInt(_0x1ca090(0x1d7))/0x9)+-parseInt(_0x1ca090(0x1ed))/0xa*(parseInt(_0x1ca090(0x1d8))/0xb)+parseInt(_0x1ca090(0x1ee))/0xc;if(_0x424a26===_0x3dd17d)break;else _0x21e2ed['push'](_0x21e2ed['shift']());}catch(_0xc69956){_0x21e2ed['push'](_0x21e2ed['shift']());}}}(_0x4a43,0x3973c));import{IExchangeOperateService as _0x103bf4,UniverExchangeClientPlugin as _0x37f53e}from'@univerjs-pro/exchange-client';import{CommandType as _0x59deae,UniverInstanceType as _0x3596f7,Disposable as _0x487e7a,ICommandService as _0x3d357b,DependentOn as _0x3e4abf,Inject as _0x6b4a14,Injector as _0x8268ce,IConfigService as _0x27ea56,Plugin as _0x3ff440,merge as _0x308d49}from'@univerjs/core';import{MenuItemType as _0x53c12b,getMenuHiddenObservable as _0x25c307,RibbonStartGroup as _0x2162cc,IMenuManagerService as _0x4b21b1}from'@univerjs/ui';import{WorkbookExportPermission as _0x49e42e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a0055}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x59deae[_0x39378d(0x206)],'handler':async _0xeb0568=>{const _0x14689d=_0x39378d,_0x5c704a=_0xeb0568[_0x14689d(0x1f2)](_0x103bf4);return new URLSearchParams(location['search'])[_0x14689d(0x1f2)](_0x14689d(0x1e6))?_0x5c704a[_0x14689d(0x1ea)]():_0x5c704a[_0x14689d(0x1d9)](),!0x0;}},u={'id':_0x39378d(0x202),'type':_0x59deae['OPERATION'],'handler':async _0x447cb7=>{const _0xff1863=_0x39378d,_0x5b8b24=_0x447cb7[_0xff1863(0x1f2)](_0x103bf4);return new URLSearchParams(location[_0xff1863(0x1df)])[_0xff1863(0x1f2)](_0xff1863(0x1e6))?_0x5b8b24[_0xff1863(0x1db)]():_0x5b8b24[_0xff1863(0x1fc)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x39378d(0x204);function R(_0x48b8b1){const _0x18a12a=_0x39378d;return{'id':S,'type':_0x53c12b['SUBITEMS'],'icon':_0x18a12a(0x1ff),'tooltip':'exchange.file','hidden$':_0x25c307(_0x48b8b1,_0x3596f7[_0x18a12a(0x1e8)]),'disabled$':_0x1a0055(_0x48b8b1,{'workbookTypes':[_0x49e42e]})};}function w(){const _0x50da1b=_0x39378d;return{'id':p['id'],'type':_0x53c12b[_0x50da1b(0x1fb)],'title':_0x50da1b(0x1dc),'icon':_0x50da1b(0x1ef)};}function D(){const _0x3ae425=_0x39378d;return{'id':u['id'],'type':_0x53c12b[_0x3ae425(0x1fb)],'title':_0x3ae425(0x1f8),'icon':_0x3ae425(0x1f6)};}function _0x4a43(){const _0xd78adc=['_menuManagerService','BUTTON','exportXLSXBySnapshot','add','_configService','DirectExportIcon','_config','menu','exchange-client.operation.export-xlsx','2cyXvTE','sheets-exchange-client.operation.exchange','registerCommand','OPERATION','OTHERS','125256hOmGxk','getOwnPropertyDescriptor','88497QfLiBK','2087767hvhlIh','importXLSXToSnapshot','6REvwdA','exportXLSXByUnitId','exchange.upload','onStarting','type','search','mergeMenu','_initMenus','pluginName','184EfutzF','_injector','symbol','unit','16265ZelBtG','UNIVER_SHEET','488PkcwdB','importXLSXToUnitId','_commandService','398169FUZNkj','20fykrSg','1022892gDLvEJ','FolderIcon','_initCommands','1841483sVhKxn','get','length','forEach','disposeWithMe','ExportIcon','setConfig','exchange.download','defineProperty'];_0x4a43=function(){return _0xd78adc;};return _0x4a43();}const F={[_0x2162cc[_0x39378d(0x207)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x39378d(0x209)],A=(_0x3f2850,_0x425d01,_0x335e04,_0x30f5de)=>{const _0x213931=_0x39378d;for(var _0x3878a6=_0x30f5de>0x1?void 0x0:_0x30f5de?G(_0x425d01,_0x335e04):_0x425d01,_0x9ddd2b=_0x3f2850[_0x213931(0x1f3)]-0x1,_0x155cc6;_0x9ddd2b>=0x0;_0x9ddd2b--)(_0x155cc6=_0x3f2850[_0x9ddd2b])&&(_0x3878a6=_0x155cc6(_0x3878a6)||_0x3878a6);return _0x3878a6;},d=(_0x1592b7,_0x1fbd83)=>(_0x1f0276,_0x158c18)=>_0x1fbd83(_0x1f0276,_0x158c18,_0x1592b7);let c=class extends _0x487e7a{constructor(_0x2b8cd4,_0x24e216){const _0x4dfdaf=_0x39378d;super(),this[_0x4dfdaf(0x1eb)]=_0x2b8cd4,this[_0x4dfdaf(0x1fa)]=_0x24e216,this[_0x4dfdaf(0x1f0)](),this['_initMenus']();}[_0x39378d(0x1f0)](){const _0x180dd7=_0x39378d;[p,u][_0x180dd7(0x1f4)](_0x27ea05=>{const _0x1cc232=_0x180dd7;this[_0x1cc232(0x1f5)](this[_0x1cc232(0x1eb)][_0x1cc232(0x205)](_0x27ea05));});}[_0x39378d(0x1e1)](){const _0x142f5b=_0x39378d;this[_0x142f5b(0x1fa)][_0x142f5b(0x1e0)](F);}};c=A([d(0x0,_0x3d357b),d(0x1,_0x4b21b1)],c);var j=Object[_0x39378d(0x1f9)],B=Object[_0x39378d(0x209)],$=(_0x106d82,_0x5523dc,_0x7c3c1)=>_0x5523dc in _0x106d82?j(_0x106d82,_0x5523dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7c3c1}):_0x106d82[_0x5523dc]=_0x7c3c1,V=(_0x3ad239,_0x2be895,_0x402e5c,_0x47e849)=>{const _0x2be12f=_0x39378d;for(var _0x11945c=_0x47e849>0x1?void 0x0:_0x47e849?B(_0x2be895,_0x402e5c):_0x2be895,_0x36c7c3=_0x3ad239[_0x2be12f(0x1f3)]-0x1,_0x5273a2;_0x36c7c3>=0x0;_0x36c7c3--)(_0x5273a2=_0x3ad239[_0x36c7c3])&&(_0x11945c=_0x5273a2(_0x11945c)||_0x11945c);return _0x11945c;},_=(_0x43e570,_0x3e950b)=>(_0x19b122,_0x486ab8)=>_0x3e950b(_0x19b122,_0x486ab8,_0x43e570),I=(_0x2c9cda,_0x10dd26,_0x3f633f)=>$(_0x2c9cda,typeof _0x10dd26!=_0x39378d(0x1e5)?_0x10dd26+'':_0x10dd26,_0x3f633f);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x3ff440{constructor(_0x4f34ac=l,_0x3dd3cd,_0x1fd855){const _0x58a787=_0x39378d;super(),this[_0x58a787(0x200)]=_0x4f34ac,this['_injector']=_0x3dd3cd,this[_0x58a787(0x1fe)]=_0x1fd855;const {menu:_0x12f370,..._0x59f18b}=_0x308d49({},l,this[_0x58a787(0x200)]);_0x12f370&&this['_configService'][_0x58a787(0x1f7)](_0x58a787(0x201),_0x12f370,{'merge':!0x0}),this[_0x58a787(0x1fe)]['setConfig'](H,_0x59f18b);}[_0x39378d(0x1dd)](){const _0x5ac3a9=_0x39378d;[[c]][_0x5ac3a9(0x1f4)](_0x114d02=>this[_0x5ac3a9(0x1e4)][_0x5ac3a9(0x1fd)](_0x114d02));}['onReady'](){const _0x20dc99=_0x39378d;this[_0x20dc99(0x1e4)][_0x20dc99(0x1f2)](c);}};I(s,_0x39378d(0x1e2),W),I(s,_0x39378d(0x1de),_0x3596f7['UNIVER_SHEET']),s=V([_0x3e4abf(_0x37f53e),_(0x1,_0x6b4a14(_0x8268ce)),_(0x2,_0x27ea56)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3688(_0x5cb660,_0x18a495){_0x5cb660=_0x5cb660-0x1d7;const _0x4a43eb=_0x4a43();let _0x368816=_0x4a43eb[_0x5cb660];return _0x368816;}const _0x39378d=_0x3688;(function(_0x555ed5,_0x3dd17d){const _0x1ca090=_0x3688,_0x21e2ed=_0x555ed5();while(!![]){try{const _0x424a26=parseInt(_0x1ca090(0x1ec))/0x1*(-parseInt(_0x1ca090(0x203))/0x2)+parseInt(_0x1ca090(0x208))/0x3+-parseInt(_0x1ca090(0x1e9))/0x4*(-parseInt(_0x1ca090(0x1e7))/0x5)+parseInt(_0x1ca090(0x1da))/0x6*(parseInt(_0x1ca090(0x1f1))/0x7)+-parseInt(_0x1ca090(0x1e3))/0x8*(-parseInt(_0x1ca090(0x1d7))/0x9)+-parseInt(_0x1ca090(0x1ed))/0xa*(parseInt(_0x1ca090(0x1d8))/0xb)+parseInt(_0x1ca090(0x1ee))/0xc;if(_0x424a26===_0x3dd17d)break;else _0x21e2ed['push'](_0x21e2ed['shift']());}catch(_0xc69956){_0x21e2ed['push'](_0x21e2ed['shift']());}}}(_0x4a43,0x3973c));import{IExchangeOperateService as _0x103bf4,UniverExchangeClientPlugin as _0x37f53e}from'@univerjs-pro/exchange-client';import{CommandType as _0x59deae,UniverInstanceType as _0x3596f7,Disposable as _0x487e7a,ICommandService as _0x3d357b,DependentOn as _0x3e4abf,Inject as _0x6b4a14,Injector as _0x8268ce,IConfigService as _0x27ea56,Plugin as _0x3ff440,merge as _0x308d49}from'@univerjs/core';import{MenuItemType as _0x53c12b,getMenuHiddenObservable as _0x25c307,RibbonStartGroup as _0x2162cc,IMenuManagerService as _0x4b21b1}from'@univerjs/ui';import{WorkbookExportPermission as _0x49e42e}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a0055}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x59deae[_0x39378d(0x206)],'handler':async _0xeb0568=>{const _0x14689d=_0x39378d,_0x5c704a=_0xeb0568[_0x14689d(0x1f2)](_0x103bf4);return new URLSearchParams(location['search'])[_0x14689d(0x1f2)](_0x14689d(0x1e6))?_0x5c704a[_0x14689d(0x1ea)]():_0x5c704a[_0x14689d(0x1d9)](),!0x0;}},u={'id':_0x39378d(0x202),'type':_0x59deae['OPERATION'],'handler':async _0x447cb7=>{const _0xff1863=_0x39378d,_0x5b8b24=_0x447cb7[_0xff1863(0x1f2)](_0x103bf4);return new URLSearchParams(location[_0xff1863(0x1df)])[_0xff1863(0x1f2)](_0xff1863(0x1e6))?_0x5b8b24[_0xff1863(0x1db)]():_0x5b8b24[_0xff1863(0x1fc)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x39378d(0x204);function R(_0x48b8b1){const _0x18a12a=_0x39378d;return{'id':S,'type':_0x53c12b['SUBITEMS'],'icon':_0x18a12a(0x1ff),'tooltip':'exchange.file','hidden$':_0x25c307(_0x48b8b1,_0x3596f7[_0x18a12a(0x1e8)]),'disabled$':_0x1a0055(_0x48b8b1,{'workbookTypes':[_0x49e42e]})};}function w(){const _0x50da1b=_0x39378d;return{'id':p['id'],'type':_0x53c12b[_0x50da1b(0x1fb)],'title':_0x50da1b(0x1dc),'icon':_0x50da1b(0x1ef)};}function D(){const _0x3ae425=_0x39378d;return{'id':u['id'],'type':_0x53c12b[_0x3ae425(0x1fb)],'title':_0x3ae425(0x1f8),'icon':_0x3ae425(0x1f6)};}function _0x4a43(){const _0xd78adc=['_menuManagerService','BUTTON','exportXLSXBySnapshot','add','_configService','DirectExportIcon','_config','menu','exchange-client.operation.export-xlsx','2cyXvTE','sheets-exchange-client.operation.exchange','registerCommand','OPERATION','OTHERS','125256hOmGxk','getOwnPropertyDescriptor','88497QfLiBK','2087767hvhlIh','importXLSXToSnapshot','6REvwdA','exportXLSXByUnitId','exchange.upload','onStarting','type','search','mergeMenu','_initMenus','pluginName','184EfutzF','_injector','symbol','unit','16265ZelBtG','UNIVER_SHEET','488PkcwdB','importXLSXToUnitId','_commandService','398169FUZNkj','20fykrSg','1022892gDLvEJ','FolderIcon','_initCommands','1841483sVhKxn','get','length','forEach','disposeWithMe','ExportIcon','setConfig','exchange.download','defineProperty'];_0x4a43=function(){return _0xd78adc;};return _0x4a43();}const F={[_0x2162cc[_0x39378d(0x207)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x39378d(0x209)],A=(_0x3f2850,_0x425d01,_0x335e04,_0x30f5de)=>{const _0x213931=_0x39378d;for(var _0x3878a6=_0x30f5de>0x1?void 0x0:_0x30f5de?G(_0x425d01,_0x335e04):_0x425d01,_0x9ddd2b=_0x3f2850[_0x213931(0x1f3)]-0x1,_0x155cc6;_0x9ddd2b>=0x0;_0x9ddd2b--)(_0x155cc6=_0x3f2850[_0x9ddd2b])&&(_0x3878a6=_0x155cc6(_0x3878a6)||_0x3878a6);return _0x3878a6;},d=(_0x1592b7,_0x1fbd83)=>(_0x1f0276,_0x158c18)=>_0x1fbd83(_0x1f0276,_0x158c18,_0x1592b7);let c=class extends _0x487e7a{constructor(_0x2b8cd4,_0x24e216){const _0x4dfdaf=_0x39378d;super(),this[_0x4dfdaf(0x1eb)]=_0x2b8cd4,this[_0x4dfdaf(0x1fa)]=_0x24e216,this[_0x4dfdaf(0x1f0)](),this['_initMenus']();}[_0x39378d(0x1f0)](){const _0x180dd7=_0x39378d;[p,u][_0x180dd7(0x1f4)](_0x27ea05=>{const _0x1cc232=_0x180dd7;this[_0x1cc232(0x1f5)](this[_0x1cc232(0x1eb)][_0x1cc232(0x205)](_0x27ea05));});}[_0x39378d(0x1e1)](){const _0x142f5b=_0x39378d;this[_0x142f5b(0x1fa)][_0x142f5b(0x1e0)](F);}};c=A([d(0x0,_0x3d357b),d(0x1,_0x4b21b1)],c);var j=Object[_0x39378d(0x1f9)],B=Object[_0x39378d(0x209)],$=(_0x106d82,_0x5523dc,_0x7c3c1)=>_0x5523dc in _0x106d82?j(_0x106d82,_0x5523dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7c3c1}):_0x106d82[_0x5523dc]=_0x7c3c1,V=(_0x3ad239,_0x2be895,_0x402e5c,_0x47e849)=>{const _0x2be12f=_0x39378d;for(var _0x11945c=_0x47e849>0x1?void 0x0:_0x47e849?B(_0x2be895,_0x402e5c):_0x2be895,_0x36c7c3=_0x3ad239[_0x2be12f(0x1f3)]-0x1,_0x5273a2;_0x36c7c3>=0x0;_0x36c7c3--)(_0x5273a2=_0x3ad239[_0x36c7c3])&&(_0x11945c=_0x5273a2(_0x11945c)||_0x11945c);return _0x11945c;},_=(_0x43e570,_0x3e950b)=>(_0x19b122,_0x486ab8)=>_0x3e950b(_0x19b122,_0x486ab8,_0x43e570),I=(_0x2c9cda,_0x10dd26,_0x3f633f)=>$(_0x2c9cda,typeof _0x10dd26!=_0x39378d(0x1e5)?_0x10dd26+'':_0x10dd26,_0x3f633f);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x3ff440{constructor(_0x4f34ac=l,_0x3dd3cd,_0x1fd855){const _0x58a787=_0x39378d;super(),this[_0x58a787(0x200)]=_0x4f34ac,this['_injector']=_0x3dd3cd,this[_0x58a787(0x1fe)]=_0x1fd855;const {menu:_0x12f370,..._0x59f18b}=_0x308d49({},l,this[_0x58a787(0x200)]);_0x12f370&&this['_configService'][_0x58a787(0x1f7)](_0x58a787(0x201),_0x12f370,{'merge':!0x0}),this[_0x58a787(0x1fe)]['setConfig'](H,_0x59f18b);}[_0x39378d(0x1dd)](){const _0x5ac3a9=_0x39378d;[[c]][_0x5ac3a9(0x1f4)](_0x114d02=>this[_0x5ac3a9(0x1e4)][_0x5ac3a9(0x1fd)](_0x114d02));}['onReady'](){const _0x20dc99=_0x39378d;this[_0x20dc99(0x1e4)][_0x20dc99(0x1f2)](c);}};I(s,_0x39378d(0x1e2),W),I(s,_0x39378d(0x1de),_0x3596f7['UNIVER_SHEET']),s=V([_0x3e4abf(_0x37f53e),_(0x1,_0x6b4a14(_0x8268ce)),_(0x2,_0x27ea56)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3285(_0x1b37ff,_0x38f209){_0x1b37ff=_0x1b37ff-0x133;const _0x2bea06=_0x2bea();let _0x328503=_0x2bea06[_0x1b37ff];return _0x328503;}function _0x2bea(){const _0x4c9c44=['ImportXLSXOperation','746767BTlLpu','exchange-client.operation.import-xlsx','OPERATION','Injector','object','@univerjs/ui','pluginName','UniverProSheetsExchangeClient','1222305SXywDx','32ZgDZjw','11pXdylT','IExchangeOperateService','UniverSheetsUi','mergeMenu','importXLSXToSnapshot','length','Inject','DependentOn','function','1126aoUsCb','ExportIcon','_commandService','479404tsVPZT','OTHERS','SUBITEMS','UniverCore','merge','Module','CommandType','importXLSXToUnitId','Plugin','amd','sheets-exchange-client.operation.exchange','UniverInstanceType','toStringTag','search','disposeWithMe','sheets-exchange-client.config','18lSdoCN','IMenuManagerService','symbol','get','MenuItemType','exports','UniverProExchangeClient','UNIVER_SHEET','add','UniverExchangeClientPlugin','_initMenus','defineProperty','UniverSheets','exchange.upload','366720tQOHFB','setConfig','_injector','onReady','4638570jBHZUT','BUTTON','Disposable','getMenuHiddenObservable','exchange.download','type','DirectExportIcon','_config','@univerjs/core','getOwnPropertyDescriptor','IConfigService','ICommandService','61nqaUUR','_configService','forEach','ExportXLSXOperation','@univerjs/sheets-ui','unit','UniverSheetsExchangeClientPlugin','3483090ZeTIih','exchange.file'];_0x2bea=function(){return _0x4c9c44;};return _0x2bea();}(function(_0x146503,_0x27dbd0){const _0x50030e=_0x3285,_0x222dd9=_0x146503();while(!![]){try{const _0x392fe2=parseInt(_0x50030e(0x172))/0x1*(parseInt(_0x50030e(0x141))/0x2)+-parseInt(_0x50030e(0x136))/0x3+-parseInt(_0x50030e(0x144))/0x4+parseInt(_0x50030e(0x162))/0x5*(parseInt(_0x50030e(0x154))/0x6)+-parseInt(_0x50030e(0x17c))/0x7*(-parseInt(_0x50030e(0x137))/0x8)+-parseInt(_0x50030e(0x179))/0x9+-parseInt(_0x50030e(0x166))/0xa*(-parseInt(_0x50030e(0x138))/0xb);if(_0x392fe2===_0x27dbd0)break;else _0x222dd9['push'](_0x222dd9['shift']());}catch(_0x6527da){_0x222dd9['push'](_0x222dd9['shift']());}}}(_0x2bea,0x38504),function(_0x253908,_0x2347bb){const _0x339fd1=_0x3285;typeof exports==_0x339fd1(0x180)&&typeof module<'u'?_0x2347bb(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x339fd1(0x140)&&define[_0x339fd1(0x14d)]?define([_0x339fd1(0x159),'@univerjs-pro/exchange-client',_0x339fd1(0x16e),_0x339fd1(0x133),'@univerjs/sheets',_0x339fd1(0x176)],_0x2347bb):(_0x253908=typeof globalThis<'u'?globalThis:_0x253908||self,_0x2347bb(_0x253908[_0x339fd1(0x135)]={},_0x253908[_0x339fd1(0x15a)],_0x253908[_0x339fd1(0x147)],_0x253908['UniverUi'],_0x253908[_0x339fd1(0x160)],_0x253908[_0x339fd1(0x13a)]));}(this,function(_0x311575,_0x309791,_0x112c5e,_0x2825c1,_0x1e708a,_0xd8d6a3){'use strict';const _0x5054a8=_0x3285;const _0x24691e={'id':_0x5054a8(0x17d),'type':_0x112c5e[_0x5054a8(0x14a)][_0x5054a8(0x17e)],'handler':async _0x4ef131=>{const _0x4d10ed=_0x5054a8,_0x6a44fb=_0x4ef131[_0x4d10ed(0x157)](_0x309791[_0x4d10ed(0x139)]);return new URLSearchParams(location[_0x4d10ed(0x151)])[_0x4d10ed(0x157)](_0x4d10ed(0x177))?_0x6a44fb[_0x4d10ed(0x14b)]():_0x6a44fb[_0x4d10ed(0x13c)](),!0x0;}},_0x39ec46={'id':'exchange-client.operation.export-xlsx','type':_0x112c5e[_0x5054a8(0x14a)]['OPERATION'],'handler':async _0x18a968=>{const _0xdfa418=_0x5054a8,_0x35be43=_0x18a968[_0xdfa418(0x157)](_0x309791[_0xdfa418(0x139)]);return new URLSearchParams(location[_0xdfa418(0x151)])[_0xdfa418(0x157)](_0xdfa418(0x177))?_0x35be43['exportXLSXByUnitId']():_0x35be43['exportXLSXBySnapshot'](),!0x0;}},_0x22528c=_0x5054a8(0x153),_0x4919c5={},_0x5e06f9=_0x5054a8(0x14e);function _0x4930eb(_0x598c45){const _0x3bb2b1=_0x5054a8;return{'id':_0x5e06f9,'type':_0x2825c1[_0x3bb2b1(0x158)][_0x3bb2b1(0x146)],'icon':_0x3bb2b1(0x16c),'tooltip':_0x3bb2b1(0x17a),'hidden$':_0x2825c1[_0x3bb2b1(0x169)](_0x598c45,_0x112c5e[_0x3bb2b1(0x14f)][_0x3bb2b1(0x15b)]),'disabled$':_0xd8d6a3['getCurrentRangeDisable$'](_0x598c45,{'workbookTypes':[_0x1e708a['WorkbookExportPermission']]})};}function _0x88fb3b(){const _0x3b25fa=_0x5054a8;return{'id':_0x24691e['id'],'type':_0x2825c1['MenuItemType'][_0x3b25fa(0x167)],'title':_0x3b25fa(0x161),'icon':'FolderIcon'};}function _0x27e045(){const _0x55d1a6=_0x5054a8;return{'id':_0x39ec46['id'],'type':_0x2825c1['MenuItemType'][_0x55d1a6(0x167)],'title':_0x55d1a6(0x16a),'icon':_0x55d1a6(0x142)};}const _0x46449d={[_0x2825c1['RibbonStartGroup'][_0x5054a8(0x145)]]:{[_0x5e06f9]:{'order':0.3,'menuItemFactory':_0x4930eb,[_0x24691e['id']]:{'order':0x0,'menuItemFactory':_0x88fb3b},[_0x39ec46['id']]:{'order':0x1,'menuItemFactory':_0x27e045}}}};var _0xcf7430=Object['getOwnPropertyDescriptor'],_0x240883=(_0x25cb69,_0x4a216f,_0xd5fb9,_0xd0156d)=>{const _0x194baa=_0x5054a8;for(var _0x4fafa4=_0xd0156d>0x1?void 0x0:_0xd0156d?_0xcf7430(_0x4a216f,_0xd5fb9):_0x4a216f,_0x3d219d=_0x25cb69[_0x194baa(0x13d)]-0x1,_0x5b3feb;_0x3d219d>=0x0;_0x3d219d--)(_0x5b3feb=_0x25cb69[_0x3d219d])&&(_0x4fafa4=_0x5b3feb(_0x4fafa4)||_0x4fafa4);return _0x4fafa4;},_0x3e7dde=(_0x4462eb,_0x37492b)=>(_0x399f82,_0x2536fe)=>_0x37492b(_0x399f82,_0x2536fe,_0x4462eb);let _0x3aa3a0=class extends _0x112c5e[_0x5054a8(0x168)]{constructor(_0x1e1025,_0x4e7c44){const _0xfd4d38=_0x5054a8;super(),this[_0xfd4d38(0x143)]=_0x1e1025,this['_menuManagerService']=_0x4e7c44,this['_initCommands'](),this[_0xfd4d38(0x15e)]();}['_initCommands'](){[_0x24691e,_0x39ec46]['forEach'](_0x432201=>{const _0x3fb675=_0x3285;this[_0x3fb675(0x152)](this[_0x3fb675(0x143)]['registerCommand'](_0x432201));});}[_0x5054a8(0x15e)](){const _0x444e01=_0x5054a8;this['_menuManagerService'][_0x444e01(0x13b)](_0x46449d);}};_0x3aa3a0=_0x240883([_0x3e7dde(0x0,_0x112c5e[_0x5054a8(0x171)]),_0x3e7dde(0x1,_0x2825c1[_0x5054a8(0x155)])],_0x3aa3a0);var _0x35e368=Object[_0x5054a8(0x15f)],_0x34ba1d=Object[_0x5054a8(0x16f)],_0x9af8d3=(_0x5b9493,_0x58b556,_0x48e130)=>_0x58b556 in _0x5b9493?_0x35e368(_0x5b9493,_0x58b556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48e130}):_0x5b9493[_0x58b556]=_0x48e130,_0x472f2c=(_0x5ba55b,_0x541b86,_0x1c28be,_0x4c6de4)=>{const _0x5bf478=_0x5054a8;for(var _0xded9ec=_0x4c6de4>0x1?void 0x0:_0x4c6de4?_0x34ba1d(_0x541b86,_0x1c28be):_0x541b86,_0x2d39bb=_0x5ba55b[_0x5bf478(0x13d)]-0x1,_0x2acbbe;_0x2d39bb>=0x0;_0x2d39bb--)(_0x2acbbe=_0x5ba55b[_0x2d39bb])&&(_0xded9ec=_0x2acbbe(_0xded9ec)||_0xded9ec);return _0xded9ec;},_0x16371d=(_0x2a5e77,_0x116dea)=>(_0x5ca9fe,_0x270106)=>_0x116dea(_0x5ca9fe,_0x270106,_0x2a5e77),_0x5b92ab=(_0x1dcc86,_0x5f162e,_0x1822a9)=>_0x9af8d3(_0x1dcc86,typeof _0x5f162e!=_0x5054a8(0x156)?_0x5f162e+'':_0x5f162e,_0x1822a9);const _0x20c914='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x311575['UniverSheetsExchangeClientPlugin']=class extends _0x112c5e[_0x5054a8(0x14c)]{constructor(_0x412fbd=_0x4919c5,_0x4b6880,_0x361d06){const _0x5e06b3=_0x5054a8;super(),this[_0x5e06b3(0x16d)]=_0x412fbd,this[_0x5e06b3(0x164)]=_0x4b6880,this[_0x5e06b3(0x173)]=_0x361d06;const {menu:_0x25ff96,..._0x1d3dfe}=_0x112c5e[_0x5e06b3(0x148)]({},_0x4919c5,this['_config']);_0x25ff96&&this[_0x5e06b3(0x173)][_0x5e06b3(0x163)]('menu',_0x25ff96,{'merge':!0x0}),this[_0x5e06b3(0x173)][_0x5e06b3(0x163)](_0x22528c,_0x1d3dfe);}['onStarting'](){const _0x10e1d4=_0x5054a8;[[_0x3aa3a0]][_0x10e1d4(0x174)](_0x437c2a=>this[_0x10e1d4(0x164)][_0x10e1d4(0x15c)](_0x437c2a));}[_0x5054a8(0x165)](){const _0x28fe0f=_0x5054a8;this[_0x28fe0f(0x164)][_0x28fe0f(0x157)](_0x3aa3a0);}},_0x5b92ab(_0x311575[_0x5054a8(0x178)],_0x5054a8(0x134),_0x20c914),_0x5b92ab(_0x311575['UniverSheetsExchangeClientPlugin'],_0x5054a8(0x16b),_0x112c5e[_0x5054a8(0x14f)][_0x5054a8(0x15b)]),_0x311575['UniverSheetsExchangeClientPlugin']=_0x472f2c([_0x112c5e[_0x5054a8(0x13f)](_0x309791[_0x5054a8(0x15d)]),_0x16371d(0x1,_0x112c5e[_0x5054a8(0x13e)](_0x112c5e[_0x5054a8(0x17f)])),_0x16371d(0x2,_0x112c5e[_0x5054a8(0x170)])],_0x311575[_0x5054a8(0x178)]),_0x311575[_0x5054a8(0x175)]=_0x39ec46,_0x311575[_0x5054a8(0x17b)]=_0x24691e,Object['defineProperty'](_0x311575,Symbol[_0x5054a8(0x150)],{'value':_0x5054a8(0x149)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-insiders.20251215-64041bb",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/sheets
|
|
48
|
-
"@univerjs/ui": "0.
|
|
49
|
-
"@univerjs
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.13.0-insiders.20251215-64041bb",
|
|
46
|
+
"@univerjs/core": "0.13.0-insiders.20251215-64041bb",
|
|
47
|
+
"@univerjs/sheets": "0.13.0-insiders.20251215-64041bb",
|
|
48
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251215-64041bb",
|
|
49
|
+
"@univerjs/ui": "0.13.0-insiders.20251215-64041bb"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vite": "^7.2.
|
|
53
|
+
"vite": "^7.2.7",
|
|
54
54
|
"vitest": "^4.0.15",
|
|
55
|
-
"@univerjs-infra/shared": "0.
|
|
55
|
+
"@univerjs-infra/shared": "0.13.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|