@univerjs-pro/sheets-exchange-client 0.2.14 → 0.3.0-alpha.0
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/types/index.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +15 -14
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4683a1=_0x1a04;(function(_0x8f1a8e,_0x1795eb){const _0x2c2f0=_0x1a04,_0x51856a=_0x8f1a8e();while(!![]){try{const _0x5b4430=-parseInt(_0x2c2f0(0x1c0))/0x1*(-parseInt(_0x2c2f0(0x1e0))/0x2)+-parseInt(_0x2c2f0(0x1cb))/0x3+-parseInt(_0x2c2f0(0x1ef))/0x4*(parseInt(_0x2c2f0(0x1ff))/0x5)+-parseInt(_0x2c2f0(0x1d1))/0x6*(-parseInt(_0x2c2f0(0x1d4))/0x7)+-parseInt(_0x2c2f0(0x1e6))/0x8+-parseInt(_0x2c2f0(0x1f2))/0x9*(-parseInt(_0x2c2f0(0x1cd))/0xa)+parseInt(_0x2c2f0(0x1f3))/0xb*(parseInt(_0x2c2f0(0x1c6))/0xc);if(_0x5b4430===_0x1795eb)break;else _0x51856a['push'](_0x51856a['shift']());}catch(_0x502fbf){_0x51856a['push'](_0x51856a['shift']());}}}(_0x6642,0x7e765));function _0x1a04(_0x2ed15e,_0x507bc4){const _0x66423b=_0x6642();return _0x1a04=function(_0x1a041a,_0x526152){_0x1a041a=_0x1a041a-0x1b8;let _0x422a4d=_0x66423b[_0x1a041a];return _0x422a4d;},_0x1a04(_0x2ed15e,_0x507bc4);}Object[_0x4683a1(0x1bd)](exports,Symbol['toStringTag'],{'value':_0x4683a1(0x1fd)});const o=require(_0x4683a1(0x1f0)),g=require(_0x4683a1(0x1f1)),s=require(_0x4683a1(0x1e7)),E=require(_0x4683a1(0x1d2)),v=require(_0x4683a1(0x203)),u={'id':_0x4683a1(0x1df),'type':o[_0x4683a1(0x1dc)]['OPERATION'],'handler':async _0x49ba24=>(_0x49ba24[_0x4683a1(0x1ec)](g[_0x4683a1(0x1c9)])[_0x4683a1(0x1e9)](),!0x0)},p={'id':_0x4683a1(0x1f4),'type':o[_0x4683a1(0x1dc)][_0x4683a1(0x1da)],'handler':async _0x1ff6bf=>(_0x1ff6bf['get'](g['IExchangeOperateService'])[_0x4683a1(0x204)](),!0x0)},m=_0x4683a1(0x1ed);function I(_0x180bb1){const _0x3edeb8=_0x4683a1;return{'id':m,'type':s['MenuItemType']['SUBITEMS'],'icon':_0x3edeb8(0x1e5),'tooltip':_0x3edeb8(0x1c3),'hidden$':s[_0x3edeb8(0x1d9)](_0x180bb1,o[_0x3edeb8(0x1fa)][_0x3edeb8(0x1c7)]),'disabled$':E[_0x3edeb8(0x1d5)](_0x180bb1,{'workbookTypes':[v[_0x3edeb8(0x1c5)]]})};}function f(){const _0x59b530=_0x4683a1;return{'id':u['id'],'type':s[_0x59b530(0x1d8)][_0x59b530(0x1bb)],'title':_0x59b530(0x1fc),'icon':_0x59b530(0x1f5)};}function x(){const _0x1d06fb=_0x4683a1;return{'id':p['id'],'type':s['MenuItemType'][_0x1d06fb(0x1bb)],'title':'exchange.download','icon':_0x1d06fb(0x1d3)};}const C={[s[_0x4683a1(0x1b8)][_0x4683a1(0x1d7)]]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x4683a1(0x1bd)],P=Object[_0x4683a1(0x1db)],O=(_0x5d9a45,_0x512174,_0x9f1915,_0x5e12c7)=>{const _0x21df81=_0x4683a1;for(var _0x23f271=_0x5e12c7>0x1?void 0x0:_0x5e12c7?P(_0x512174,_0x9f1915):_0x512174,_0x26b080=_0x5d9a45[_0x21df81(0x1c4)]-0x1,_0x4f0ff;_0x26b080>=0x0;_0x26b080--)(_0x4f0ff=_0x5d9a45[_0x26b080])&&(_0x23f271=(_0x5e12c7?_0x4f0ff(_0x512174,_0x9f1915,_0x23f271):_0x4f0ff(_0x23f271))||_0x23f271);return _0x5e12c7&&_0x23f271&&y(_0x512174,_0x9f1915,_0x23f271),_0x23f271;},h=(_0x45d359,_0x3debf6)=>(_0x17379e,_0x6d5f7b)=>_0x3debf6(_0x17379e,_0x6d5f7b,_0x45d359);let l=class extends o[_0x4683a1(0x1e4)]{constructor(_0x11f2ad,_0x12a13d){const _0x8f83c7=_0x4683a1;super(),this[_0x8f83c7(0x202)]=_0x11f2ad,this[_0x8f83c7(0x1e3)]=_0x12a13d,this['_initCommands'](),this[_0x8f83c7(0x1c8)]();}[_0x4683a1(0x1ea)](){const _0x2314ac=_0x4683a1;[u,p][_0x2314ac(0x1ce)](_0x12eee0=>{const _0xde114f=_0x2314ac;this[_0xde114f(0x1fe)](this[_0xde114f(0x202)][_0xde114f(0x1e1)](_0x12eee0));});}['_initMenus'](){const _0x2dca54=_0x4683a1;this['_menuManagerService'][_0x2dca54(0x201)](C);}};l=O([o[_0x4683a1(0x1d6)](o[_0x4683a1(0x1f6)][_0x4683a1(0x1fb)],l),h(0x0,o[_0x4683a1(0x1bf)]),h(0x1,s['IMenuManagerService'])],l);const T=_0x4683a1(0x1cf),U={};var S=Object[_0x4683a1(0x1bd)],X=Object[_0x4683a1(0x1db)],b=(_0x5527b0,_0x3d0d80,_0x1d0fd5)=>_0x3d0d80 in _0x5527b0?S(_0x5527b0,_0x3d0d80,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d0fd5}):_0x5527b0[_0x3d0d80]=_0x1d0fd5,N=(_0x2c0f86,_0x3924ad,_0x871a7,_0x1bf4fd)=>{const _0x2111b3=_0x4683a1;for(var _0x12d0f5=_0x1bf4fd>0x1?void 0x0:_0x1bf4fd?X(_0x3924ad,_0x871a7):_0x3924ad,_0x592859=_0x2c0f86[_0x2111b3(0x1c4)]-0x1,_0x2d6de0;_0x592859>=0x0;_0x592859--)(_0x2d6de0=_0x2c0f86[_0x592859])&&(_0x12d0f5=(_0x1bf4fd?_0x2d6de0(_0x3924ad,_0x871a7,_0x12d0f5):_0x2d6de0(_0x12d0f5))||_0x12d0f5);return _0x1bf4fd&&_0x12d0f5&&S(_0x3924ad,_0x871a7,_0x12d0f5),_0x12d0f5;},d=(_0x1d051e,_0x2b51f9)=>(_0x38d4eb,_0x442037)=>_0x2b51f9(_0x38d4eb,_0x442037,_0x1d051e),_=(_0x4df8b1,_0x4e6ee2,_0x23d0c1)=>b(_0x4df8b1,typeof _0x4e6ee2!=_0x4683a1(0x1f9)?_0x4e6ee2+'':_0x4e6ee2,_0x23d0c1);const M=_0x4683a1(0x1ee);exports['UniverSheetsExchangeClientPlugin']=class extends o[_0x4683a1(0x1d0)]{constructor(_0x443066=U,_0x38be35,_0x112f5e){const _0x4c8499=_0x4683a1;super(),this['_config']=_0x443066,this[_0x4c8499(0x1e8)]=_0x38be35,this[_0x4c8499(0x1f8)]=_0x112f5e;const {menu:_0x5e028c,..._0x5563f9}=this[_0x4c8499(0x1f7)];_0x5e028c&&this[_0x4c8499(0x1f8)][_0x4c8499(0x1e2)](_0x4c8499(0x1b9),_0x5e028c,{'merge':!0x0}),this['_configService'][_0x4c8499(0x1e2)](T,_0x5563f9);}[_0x4683a1(0x1c2)](){const _0x3e9933=_0x4683a1;[[l]][_0x3e9933(0x1ce)](_0x97cc68=>this['_injector'][_0x3e9933(0x1be)](_0x97cc68));}[_0x4683a1(0x200)](){const _0x53927e=_0x4683a1;this[_0x53927e(0x1c2)]();}},_(exports['UniverSheetsExchangeClientPlugin'],_0x4683a1(0x1bc),M),_(exports[_0x4683a1(0x1ba)],_0x4683a1(0x1c1),o['UniverInstanceType'][_0x4683a1(0x1c7)]),exports[_0x4683a1(0x1ba)]=N([o[_0x4683a1(0x1de)](g[_0x4683a1(0x1eb)]),d(0x1,o['Inject'](o[_0x4683a1(0x1cc)])),d(0x2,o[_0x4683a1(0x1ca)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x4683a1(0x1dd)]=p,exports['ImportXLSXOperation']=u;function _0x6642(){const _0x549a21=['exchange-client.operation.export-xlsx','FolderSingle','LifecycleStages','_config','_configService','symbol','UniverInstanceType','Ready','exchange.upload','Module','disposeWithMe','125tLNXSB','onReady','mergeMenu','_commandService','@univerjs/sheets','exportXLSXByUnitId','RibbonStartGroup','menu','UniverSheetsExchangeClientPlugin','BUTTON','pluginName','defineProperty','add','ICommandService','1FUnWAB','type','initialize','exchange.file','length','WorkbookExportPermission','8665680PSfLeu','UNIVER_SHEET','_initMenus','IExchangeOperateService','IConfigService','2384739JdutAV','Injector','8283140fMEXnr','forEach','sheets-exchange-client.config','Plugin','6RGDNMy','@univerjs/sheets-ui','ExportSingle','981967vjopiD','getCurrentRangeDisable$','OnLifecycle','FILE','MenuItemType','getMenuHiddenObservable','OPERATION','getOwnPropertyDescriptor','CommandType','ExportXLSXOperation','DependentOn','exchange-client.operation.import-xlsx','647666XFtWoI','registerCommand','setConfig','_menuManagerService','Disposable','DirectExportSingle','4507128jQiXjZ','@univerjs/ui','_injector','importXLSXToUnitId','_initCommands','UniverExchangeClientPlugin','get','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','22124eePcqT','@univerjs/core','@univerjs-pro/exchange-client','9sWFDxf','11oDRVsL'];_0x6642=function(){return _0x549a21;};return _0x6642();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3035b9=_0x14e4;(function(_0x6b2a65,_0x268189){const _0xdd1cb7=_0x14e4,_0x11230d=_0x6b2a65();while(!![]){try{const _0x56be82=-parseInt(_0xdd1cb7(0xc6))/0x1+parseInt(_0xdd1cb7(0xa2))/0x2*(-parseInt(_0xdd1cb7(0x9d))/0x3)+parseInt(_0xdd1cb7(0xba))/0x4+-parseInt(_0xdd1cb7(0xbc))/0x5+-parseInt(_0xdd1cb7(0xa8))/0x6*(-parseInt(_0xdd1cb7(0xc5))/0x7)+-parseInt(_0xdd1cb7(0xbb))/0x8*(parseInt(_0xdd1cb7(0xa3))/0x9)+parseInt(_0xdd1cb7(0xa4))/0xa*(parseInt(_0xdd1cb7(0xa5))/0xb);if(_0x56be82===_0x268189)break;else _0x11230d['push'](_0x11230d['shift']());}catch(_0x46ab0a){_0x11230d['push'](_0x11230d['shift']());}}}(_0xbd79,0x5fa7d));import{CommandType as _0xd2f234,UniverInstanceType as _0x10f094,OnLifecycle as _0x543003,LifecycleStages as _0x4f3ebd,Disposable as _0x4584e1,ICommandService as _0x15a568,DependentOn as _0x5ecd38,Inject as _0x360c07,Injector as _0x3cf6e4,Plugin as _0x2ab64d,IConfigService as _0x11fd4b}from'@univerjs/core';function _0x14e4(_0x4240c2,_0x2f086a){const _0xbd79b4=_0xbd79();return _0x14e4=function(_0x14e433,_0x13c0f0){_0x14e433=_0x14e433-0x9c;let _0x55efe2=_0xbd79b4[_0x14e433];return _0x55efe2;},_0x14e4(_0x4240c2,_0x2f086a);}import{IExchangeOperateService as _0x53a566,UniverExchangeClientPlugin as _0x128534}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x4667c3,getMenuHiddenObservable as _0x41a3fa,RibbonStartGroup as _0x3ef4ff,IMenuManagerService as _0x256cbe}from'@univerjs/ui';function _0xbd79(){const _0x75c57a=['_initCommands','_injector','length','SUBITEMS','3119128dTvjdT','32PQrKCq','509085KdMvjs','importXLSXToUnitId','setConfig','_menuManagerService','Ready','_configService','disposeWithMe','defineProperty','registerCommand','14vcjpwV','492519hamqgQ','getOwnPropertyDescriptor','FILE','exportXLSXByUnitId','OPERATION','DirectExportSingle','27879QhvHDe','ExportSingle','pluginName','UNIVER_SHEET','sheets-exchange-client.config','26ybLyGJ','676494qBaOWb','2073740awlbxM','11wGNkTN','_initMenus','SHEET_EXCHANGE_CLIENT_PLUGIN','1261374qYtrIY','exchange.download','initialize','exchange.upload','_config','_commandService','exchange-client.operation.import-xlsx','exchange.file','FolderSingle','get','BUTTON','symbol','forEach','sheets-exchange-client.operation.exchange'];_0xbd79=function(){return _0x75c57a;};return _0xbd79();}import{getCurrentRangeDisable$ as _0x5bb94b}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x31bdd6}from'@univerjs/sheets';const l={'id':_0x3035b9(0xae),'type':_0xd2f234[_0x3035b9(0xca)],'handler':async _0x6c1949=>(_0x6c1949[_0x3035b9(0xb1)](_0x53a566)[_0x3035b9(0xbd)](),!0x0)},m={'id':'exchange-client.operation.export-xlsx','type':_0xd2f234[_0x3035b9(0xca)],'handler':async _0x23d4fc=>(_0x23d4fc[_0x3035b9(0xb1)](_0x53a566)[_0x3035b9(0xc9)](),!0x0)},f=_0x3035b9(0xb5);function D(_0x5762c4){const _0x23efc6=_0x3035b9;return{'id':f,'type':_0x4667c3[_0x23efc6(0xb9)],'icon':_0x23efc6(0x9c),'tooltip':_0x23efc6(0xaf),'hidden$':_0x41a3fa(_0x5762c4,_0x10f094[_0x23efc6(0xa0)]),'disabled$':_0x5bb94b(_0x5762c4,{'workbookTypes':[_0x31bdd6]})};}function H(){const _0x513b81=_0x3035b9;return{'id':l['id'],'type':_0x4667c3[_0x513b81(0xb2)],'title':_0x513b81(0xab),'icon':_0x513b81(0xb0)};}function R(){const _0x31afa0=_0x3035b9;return{'id':m['id'],'type':_0x4667c3[_0x31afa0(0xb2)],'title':_0x31afa0(0xa9),'icon':_0x31afa0(0x9e)};}const G={[_0x3ef4ff[_0x3035b9(0xc8)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object[_0x3035b9(0xc3)],$=Object['getOwnPropertyDescriptor'],j=(_0x1e1c2e,_0x554c5e,_0x184bd1,_0x148ee0)=>{const _0x5efff0=_0x3035b9;for(var _0x5d315d=_0x148ee0>0x1?void 0x0:_0x148ee0?$(_0x554c5e,_0x184bd1):_0x554c5e,_0x18f619=_0x1e1c2e[_0x5efff0(0xb8)]-0x1,_0x3423ca;_0x18f619>=0x0;_0x18f619--)(_0x3423ca=_0x1e1c2e[_0x18f619])&&(_0x5d315d=(_0x148ee0?_0x3423ca(_0x554c5e,_0x184bd1,_0x5d315d):_0x3423ca(_0x5d315d))||_0x5d315d);return _0x148ee0&&_0x5d315d&&w(_0x554c5e,_0x184bd1,_0x5d315d),_0x5d315d;},u=(_0x461ea8,_0x11d3ad)=>(_0x5f2a90,_0x35a765)=>_0x11d3ad(_0x5f2a90,_0x35a765,_0x461ea8);let a=class extends _0x4584e1{constructor(_0x4f1a36,_0x5a3cd2){const _0x901339=_0x3035b9;super(),this['_commandService']=_0x4f1a36,this[_0x901339(0xbf)]=_0x5a3cd2,this[_0x901339(0xb6)](),this[_0x901339(0xa6)]();}['_initCommands'](){const _0x118ea7=_0x3035b9;[l,m][_0x118ea7(0xb4)](_0x36c0a5=>{const _0x38f6a4=_0x118ea7;this[_0x38f6a4(0xc2)](this[_0x38f6a4(0xad)][_0x38f6a4(0xc4)](_0x36c0a5));});}[_0x3035b9(0xa6)](){this['_menuManagerService']['mergeMenu'](G);}};a=j([_0x543003(_0x4f3ebd[_0x3035b9(0xc0)],a),u(0x0,_0x15a568),u(0x1,_0x256cbe)],a);const A=_0x3035b9(0xa1),B={};var E=Object[_0x3035b9(0xc3)],z=Object[_0x3035b9(0xc7)],V=(_0x219583,_0x165d29,_0x5a4c17)=>_0x165d29 in _0x219583?E(_0x219583,_0x165d29,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a4c17}):_0x219583[_0x165d29]=_0x5a4c17,W=(_0x59b016,_0x31ea59,_0x508ccd,_0x25a6c1)=>{const _0x42b539=_0x3035b9;for(var _0x28b327=_0x25a6c1>0x1?void 0x0:_0x25a6c1?z(_0x31ea59,_0x508ccd):_0x31ea59,_0x6c0c44=_0x59b016[_0x42b539(0xb8)]-0x1,_0x44a79b;_0x6c0c44>=0x0;_0x6c0c44--)(_0x44a79b=_0x59b016[_0x6c0c44])&&(_0x28b327=(_0x25a6c1?_0x44a79b(_0x31ea59,_0x508ccd,_0x28b327):_0x44a79b(_0x28b327))||_0x28b327);return _0x25a6c1&&_0x28b327&&E(_0x31ea59,_0x508ccd,_0x28b327),_0x28b327;},d=(_0x47f4c2,_0x26c81c)=>(_0x1532e8,_0xdec3e8)=>_0x26c81c(_0x1532e8,_0xdec3e8,_0x47f4c2),S=(_0x465681,_0x6cd63d,_0x18ba4b)=>V(_0x465681,typeof _0x6cd63d!=_0x3035b9(0xb3)?_0x6cd63d+'':_0x6cd63d,_0x18ba4b);const K=_0x3035b9(0xa7);let s=class extends _0x2ab64d{constructor(_0x42b114=B,_0x2ad913,_0x42e9d9){const _0xea95a9=_0x3035b9;super(),this['_config']=_0x42b114,this[_0xea95a9(0xb7)]=_0x2ad913,this[_0xea95a9(0xc1)]=_0x42e9d9;const {menu:_0x257abc,..._0x41c0db}=this[_0xea95a9(0xac)];_0x257abc&&this[_0xea95a9(0xc1)][_0xea95a9(0xbe)]('menu',_0x257abc,{'merge':!0x0}),this['_configService'][_0xea95a9(0xbe)](A,_0x41c0db);}[_0x3035b9(0xaa)](){const _0x461036=_0x3035b9;[[a]]['forEach'](_0x5672bf=>this[_0x461036(0xb7)]['add'](_0x5672bf));}['onReady'](){const _0x70706c=_0x3035b9;this[_0x70706c(0xaa)]();}};S(s,_0x3035b9(0x9f),K),S(s,'type',_0x10f094['UNIVER_SHEET']),s=W([_0x5ecd38(_0x128534),d(0x1,_0x360c07(_0x3cf6e4)),d(0x2,_0x11fd4b)],s);export{m as ExportXLSXOperation,l as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { UniverSheetsExchangeClientPlugin } from './plugin';
|
|
2
|
-
export {
|
|
2
|
+
export { ExportXLSXOperation, ImportXLSXOperation, } from './commands/operations/exchange.operation';
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x282244,_0x5afd37){const _0x230d1a=_0x570d,_0x59e1b1=_0x282244();while(!![]){try{const _0x8afcd5=-parseInt(_0x230d1a(0x1a2))/0x1+parseInt(_0x230d1a(0x1ce))/0x2*(parseInt(_0x230d1a(0x19e))/0x3)+-parseInt(_0x230d1a(0x1cb))/0x4+-parseInt(_0x230d1a(0x1ba))/0x5+-parseInt(_0x230d1a(0x1ca))/0x6+parseInt(_0x230d1a(0x1b9))/0x7+-parseInt(_0x230d1a(0x1b4))/0x8*(-parseInt(_0x230d1a(0x1a9))/0x9);if(_0x8afcd5===_0x5afd37)break;else _0x59e1b1['push'](_0x59e1b1['shift']());}catch(_0x219188){_0x59e1b1['push'](_0x59e1b1['shift']());}}}(_0x1782,0xc93aa),function(_0x2d5da7,_0x88288e){const _0x2631f6=_0x570d;typeof exports=='object'&&typeof module<'u'?_0x88288e(exports,require('@univerjs/core'),require(_0x2631f6(0x192)),require(_0x2631f6(0x1a3)),require(_0x2631f6(0x193)),require(_0x2631f6(0x1cf))):typeof define==_0x2631f6(0x1d7)&&define[_0x2631f6(0x1a1)]?define([_0x2631f6(0x1b3),_0x2631f6(0x1a5),_0x2631f6(0x192),_0x2631f6(0x1a3),'@univerjs/sheets-ui',_0x2631f6(0x1cf)],_0x88288e):(_0x2d5da7=typeof globalThis<'u'?globalThis:_0x2d5da7||self,_0x88288e(_0x2d5da7['UniverSheetsExchangeClient']={},_0x2d5da7[_0x2631f6(0x1b8)],_0x2d5da7[_0x2631f6(0x1c8)],_0x2d5da7[_0x2631f6(0x1c9)],_0x2d5da7[_0x2631f6(0x1a8)],_0x2d5da7[_0x2631f6(0x1c5)]));}(this,function(_0x17cc71,_0x3b3ab6,_0x4cc694,_0x12879b,_0x26d361,_0x313ee4){'use strict';const _0x53c9a2=_0x570d;const _0x55e3ec={'id':'exchange-client.operation.import-xlsx','type':_0x3b3ab6['CommandType']['OPERATION'],'handler':async _0x6f4805=>(_0x6f4805[_0x53c9a2(0x1ab)](_0x4cc694[_0x53c9a2(0x199)])['importXLSXToUnitId'](),!0x0)},_0x262f93={'id':'exchange-client.operation.export-xlsx','type':_0x3b3ab6['CommandType'][_0x53c9a2(0x1d4)],'handler':async _0x477206=>(_0x477206[_0x53c9a2(0x1ab)](_0x4cc694[_0x53c9a2(0x199)])['exportXLSXByUnitId'](),!0x0)},_0x3f9721=_0x53c9a2(0x1c1);function _0x170bbb(_0xdc5665){const _0x128292=_0x53c9a2;return{'id':_0x3f9721,'type':_0x12879b['MenuItemType'][_0x128292(0x1d1)],'icon':_0x128292(0x1d2),'tooltip':_0x128292(0x198),'hidden$':_0x12879b[_0x128292(0x19a)](_0xdc5665,_0x3b3ab6[_0x128292(0x1b0)][_0x128292(0x1b6)]),'disabled$':_0x26d361[_0x128292(0x1c2)](_0xdc5665,{'workbookTypes':[_0x313ee4[_0x128292(0x1c7)]]})};}function _0x44cbb9(){const _0x2607fb=_0x53c9a2;return{'id':_0x55e3ec['id'],'type':_0x12879b['MenuItemType'][_0x2607fb(0x1b2)],'title':_0x2607fb(0x1ae),'icon':_0x2607fb(0x1b7)};}function _0x312d07(){const _0x1388ce=_0x53c9a2;return{'id':_0x262f93['id'],'type':_0x12879b['MenuItemType'][_0x1388ce(0x1b2)],'title':_0x1388ce(0x1d6),'icon':_0x1388ce(0x1c4)};}const _0x1069f2={[_0x12879b[_0x53c9a2(0x1a6)]['FILE']]:{[_0x3f9721]:{'order':0x4,'menuItemFactory':_0x170bbb,[_0x55e3ec['id']]:{'order':0x0,'menuItemFactory':_0x44cbb9},[_0x262f93['id']]:{'order':0x1,'menuItemFactory':_0x312d07}}}};var _0x1082c4=Object[_0x53c9a2(0x1ad)],_0xd0e870=Object['getOwnPropertyDescriptor'],_0x3a9880=(_0x5f0d0a,_0x106d23,_0x5a1fee,_0x121206)=>{const _0x190b34=_0x53c9a2;for(var _0x38f479=_0x121206>0x1?void 0x0:_0x121206?_0xd0e870(_0x106d23,_0x5a1fee):_0x106d23,_0x50d3b4=_0x5f0d0a[_0x190b34(0x1aa)]-0x1,_0x84caa3;_0x50d3b4>=0x0;_0x50d3b4--)(_0x84caa3=_0x5f0d0a[_0x50d3b4])&&(_0x38f479=(_0x121206?_0x84caa3(_0x106d23,_0x5a1fee,_0x38f479):_0x84caa3(_0x38f479))||_0x38f479);return _0x121206&&_0x38f479&&_0x1082c4(_0x106d23,_0x5a1fee,_0x38f479),_0x38f479;},_0x2a6f4b=(_0x2318e6,_0x2bc46a)=>(_0x19d4f8,_0x3f3a88)=>_0x2bc46a(_0x19d4f8,_0x3f3a88,_0x2318e6);let _0x10b34b=class extends _0x3b3ab6[_0x53c9a2(0x1cc)]{constructor(_0x272f77,_0x3f48b2){const _0x4ff1fa=_0x53c9a2;super(),this[_0x4ff1fa(0x195)]=_0x272f77,this[_0x4ff1fa(0x190)]=_0x3f48b2,this[_0x4ff1fa(0x1a7)](),this[_0x4ff1fa(0x1b5)]();}[_0x53c9a2(0x1a7)](){const _0x345b91=_0x53c9a2;[_0x55e3ec,_0x262f93][_0x345b91(0x194)](_0x445e40=>{const _0x4bafbe=_0x345b91;this[_0x4bafbe(0x1b1)](this['_commandService'][_0x4bafbe(0x1be)](_0x445e40));});}[_0x53c9a2(0x1b5)](){const _0x3475a5=_0x53c9a2;this['_menuManagerService'][_0x3475a5(0x19b)](_0x1069f2);}};_0x10b34b=_0x3a9880([_0x3b3ab6[_0x53c9a2(0x1c3)](_0x3b3ab6[_0x53c9a2(0x1a4)][_0x53c9a2(0x1d0)],_0x10b34b),_0x2a6f4b(0x0,_0x3b3ab6[_0x53c9a2(0x1d5)]),_0x2a6f4b(0x1,_0x12879b['IMenuManagerService'])],_0x10b34b);const _0x5ef175=_0x53c9a2(0x197),_0x44b6da={};var _0x113b45=Object[_0x53c9a2(0x1ad)],_0x491c31=Object[_0x53c9a2(0x1af)],_0x3c40dd=(_0x28a379,_0x237c5d,_0x6f63b)=>_0x237c5d in _0x28a379?_0x113b45(_0x28a379,_0x237c5d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6f63b}):_0x28a379[_0x237c5d]=_0x6f63b,_0x19aa02=(_0x327591,_0x33036e,_0x2e2438,_0x42c169)=>{const _0x2f3b57=_0x53c9a2;for(var _0x1bab53=_0x42c169>0x1?void 0x0:_0x42c169?_0x491c31(_0x33036e,_0x2e2438):_0x33036e,_0x26252e=_0x327591[_0x2f3b57(0x1aa)]-0x1,_0x110726;_0x26252e>=0x0;_0x26252e--)(_0x110726=_0x327591[_0x26252e])&&(_0x1bab53=(_0x42c169?_0x110726(_0x33036e,_0x2e2438,_0x1bab53):_0x110726(_0x1bab53))||_0x1bab53);return _0x42c169&&_0x1bab53&&_0x113b45(_0x33036e,_0x2e2438,_0x1bab53),_0x1bab53;},_0x2a3e27=(_0x50ec17,_0x3baa7c)=>(_0x1a9909,_0x582376)=>_0x3baa7c(_0x1a9909,_0x582376,_0x50ec17),_0x29e612=(_0x1a92fd,_0x5b7347,_0x3aaef5)=>_0x3c40dd(_0x1a92fd,typeof _0x5b7347!=_0x53c9a2(0x1bd)?_0x5b7347+'':_0x5b7347,_0x3aaef5);const _0x358e49=_0x53c9a2(0x1cd);_0x17cc71[_0x53c9a2(0x1c6)]=class extends _0x3b3ab6['Plugin']{constructor(_0x22c049=_0x44b6da,_0x2a4ece,_0x4e18c1){const _0x389303=_0x53c9a2;super(),this[_0x389303(0x196)]=_0x22c049,this['_injector']=_0x2a4ece,this[_0x389303(0x1c0)]=_0x4e18c1;const {menu:_0x47c60e,..._0x40a10c}=this[_0x389303(0x196)];_0x47c60e&&this['_configService']['setConfig'](_0x389303(0x1ac),_0x47c60e,{'merge':!0x0}),this[_0x389303(0x1c0)]['setConfig'](_0x5ef175,_0x40a10c);}[_0x53c9a2(0x19f)](){const _0x149d4c=_0x53c9a2;[[_0x10b34b]]['forEach'](_0x4f0ea4=>this['_injector'][_0x149d4c(0x191)](_0x4f0ea4));}['onReady'](){const _0x23f316=_0x53c9a2;this[_0x23f316(0x19f)]();}},_0x29e612(_0x17cc71['UniverSheetsExchangeClientPlugin'],_0x53c9a2(0x1d3),_0x358e49),_0x29e612(_0x17cc71['UniverSheetsExchangeClientPlugin'],_0x53c9a2(0x1bc),_0x3b3ab6['UniverInstanceType']['UNIVER_SHEET']),_0x17cc71[_0x53c9a2(0x1c6)]=_0x19aa02([_0x3b3ab6[_0x53c9a2(0x1bb)](_0x4cc694[_0x53c9a2(0x19d)]),_0x2a3e27(0x1,_0x3b3ab6['Inject'](_0x3b3ab6['Injector'])),_0x2a3e27(0x2,_0x3b3ab6[_0x53c9a2(0x1bf)])],_0x17cc71[_0x53c9a2(0x1c6)]),_0x17cc71[_0x53c9a2(0x1a0)]=_0x262f93,_0x17cc71['ImportXLSXOperation']=_0x55e3ec,Object[_0x53c9a2(0x1ad)](_0x17cc71,Symbol[_0x53c9a2(0x19c)],{'value':'Module'});}));function _0x570d(_0x45cd7e,_0xa61ad5){const _0x1782cb=_0x1782();return _0x570d=function(_0x570dda,_0x7cc3f4){_0x570dda=_0x570dda-0x190;let _0x5a9e32=_0x1782cb[_0x570dda];return _0x5a9e32;},_0x570d(_0x45cd7e,_0xa61ad5);}function _0x1782(){const _0x59cb12=['SUBITEMS','DirectExportSingle','pluginName','OPERATION','ICommandService','exchange.download','function','_menuManagerService','add','@univerjs-pro/exchange-client','@univerjs/sheets-ui','forEach','_commandService','_config','sheets-exchange-client.config','exchange.file','IExchangeOperateService','getMenuHiddenObservable','mergeMenu','toStringTag','UniverExchangeClientPlugin','53775gDYcsQ','initialize','ExportXLSXOperation','amd','1342751lkWZkP','@univerjs/ui','LifecycleStages','@univerjs/core','RibbonStartGroup','_initCommands','UniverSheetsUi','22021452LIQIvx','length','get','menu','defineProperty','exchange.upload','getOwnPropertyDescriptor','UniverInstanceType','disposeWithMe','BUTTON','exports','16ZUTwOc','_initMenus','UNIVER_SHEET','FolderSingle','UniverCore','7816774PDeZwM','7312065zUidYP','DependentOn','type','symbol','registerCommand','IConfigService','_configService','sheets-exchange-client.operation.exchange','getCurrentRangeDisable$','OnLifecycle','ExportSingle','UniverSheets','UniverSheetsExchangeClientPlugin','WorkbookExportPermission','UniverExchangeClient','UniverUi','7265478MAXxta','5540508xMWmUV','Disposable','SHEET_EXCHANGE_CLIENT_PLUGIN','24ixriTW','@univerjs/sheets','Ready'];_0x1782=function(){return _0x59cb12;};return _0x1782();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,25 +43,26 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
50
|
-
"@univerjs/
|
|
46
|
+
"@univerjs/sheets": "0.3.0-alpha.0",
|
|
47
|
+
"@univerjs/core": "0.3.0-alpha.0",
|
|
48
|
+
"@univerjs/sheets-ui": "0.3.0-alpha.0",
|
|
49
|
+
"@univerjs/ui": "0.3.0-alpha.0",
|
|
50
|
+
"@univerjs-pro/exchange-client": "0.3.0-alpha.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@univerjs/icons": "^0.1.78",
|
|
54
|
-
"@univerjs-pro/exchange-client": "0.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/sheets": "0.
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
54
|
+
"@univerjs-pro/exchange-client": "0.3.0-alpha.0",
|
|
55
|
+
"@univerjs/protocol": "0.1.39-alpha.22",
|
|
56
|
+
"@univerjs/sheets": "0.3.0-alpha.0",
|
|
57
|
+
"@univerjs/core": "0.3.0-alpha.0",
|
|
58
|
+
"@univerjs/ui": "0.3.0-alpha.0",
|
|
59
|
+
"@univerjs/sheets-ui": "0.3.0-alpha.0"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"typescript": "^5.6.2",
|
|
62
|
-
"vite": "^5.4.
|
|
63
|
-
"vitest": "^2.
|
|
64
|
-
"@univerjs-infra/shared": "0.
|
|
63
|
+
"vite": "^5.4.8",
|
|
64
|
+
"vitest": "^2.1.1",
|
|
65
|
+
"@univerjs-infra/shared": "0.3.0-alpha.0"
|
|
65
66
|
},
|
|
66
67
|
"univerSpace": {
|
|
67
68
|
".": {
|