@univerjs-pro/sheets-exchange-client 0.9.1 → 0.9.2
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';var
|
|
1
|
+
'use strict';var _0x204d0a=_0xffec;(function(_0x3dbdb9,_0x26f140){var _0xe338c1=_0xffec,_0x358a62=_0x3dbdb9();while(!![]){try{var _0x593970=parseInt(_0xe338c1(0x222))/0x1+-parseInt(_0xe338c1(0x219))/0x2+-parseInt(_0xe338c1(0x228))/0x3*(parseInt(_0xe338c1(0x1f8))/0x4)+-parseInt(_0xe338c1(0x1fb))/0x5+-parseInt(_0xe338c1(0x209))/0x6+-parseInt(_0xe338c1(0x1f4))/0x7*(parseInt(_0xe338c1(0x1f7))/0x8)+parseInt(_0xe338c1(0x21e))/0x9*(parseInt(_0xe338c1(0x22c))/0xa);if(_0x593970===_0x26f140)break;else _0x358a62['push'](_0x358a62['shift']());}catch(_0xe9ca97){_0x358a62['push'](_0x358a62['shift']());}}}(_0x4de0,0x6226a));Object[_0x204d0a(0x1ff)](exports,Symbol[_0x204d0a(0x21d)],{'value':_0x204d0a(0x21f)});const l=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),S=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),v='sheets-exchange-client.config',h={},p={'id':_0x204d0a(0x20c),'type':i[_0x204d0a(0x233)][_0x204d0a(0x20e)],'handler':async _0x24080c=>(_0x24080c[_0x204d0a(0x22b)](l[_0x204d0a(0x207)])[_0x204d0a(0x221)](),!0x0)},g={'id':_0x204d0a(0x202),'type':i[_0x204d0a(0x233)][_0x204d0a(0x20e)],'handler':async _0x2e25fb=>(_0x2e25fb[_0x204d0a(0x22b)](l[_0x204d0a(0x207)])[_0x204d0a(0x21b)](),!0x0)},E=_0x204d0a(0x225);function x(_0x11b2e7){var _0x1ad236=_0x204d0a;return{'id':E,'type':a[_0x1ad236(0x203)][_0x1ad236(0x22e)],'icon':_0x1ad236(0x211),'tooltip':'exchange.file','hidden$':a[_0x1ad236(0x200)](_0x11b2e7,i[_0x1ad236(0x201)][_0x1ad236(0x214)]),'disabled$':I['getCurrentRangeDisable$'](_0x11b2e7,{'workbookTypes':[S[_0x1ad236(0x232)]]})};}function C(){var _0x1326c9=_0x204d0a;return{'id':p['id'],'type':a['MenuItemType'][_0x1326c9(0x229)],'title':_0x1326c9(0x20f),'icon':_0x1326c9(0x217)};}function T(){var _0x4a1c44=_0x204d0a;return{'id':g['id'],'type':a[_0x4a1c44(0x203)][_0x4a1c44(0x229)],'title':'exchange.download','icon':_0x4a1c44(0x1f9)};}function _0xffec(_0x512398,_0x6423df){var _0x4de0ee=_0x4de0();return _0xffec=function(_0xffecc1,_0x31dc2a){_0xffecc1=_0xffecc1-0x1f4;var _0x451e1b=_0x4de0ee[_0xffecc1];return _0x451e1b;},_0xffec(_0x512398,_0x6423df);}const f={[a[_0x204d0a(0x1fa)][_0x204d0a(0x1f6)]]:{[E]:{'order':0.3,'menuItemFactory':x,[p['id']]:{'order':0x0,'menuItemFactory':C},[g['id']]:{'order':0x1,'menuItemFactory':T}}}};function _0x4de0(){var _0x2eebc4=['897640yRFGzr','getOwnPropertyDescriptor','SHEET_EXCHANGE_CLIENT_PLUGIN','_commandService','defineProperty','getMenuHiddenObservable','UniverInstanceType','exchange-client.operation.export-xlsx','MenuItemType','mergeMenu','registerCommand','pluginName','IExchangeOperateService','Plugin','3120828tYPHBn','_config','Injector','exchange-client.operation.import-xlsx','_injector','OPERATION','exchange.upload','length','DirectExportIcon','IConfigService','Inject','UNIVER_SHEET','forEach','_menuManagerService','FolderIcon','disposeWithMe','960524xuxVUT','Disposable','exportXLSXByUnitId','_configService','toStringTag','18pMYVSN','Module','IMenuManagerService','importXLSXToUnitId','485399VnJAak','_initMenus','symbol','sheets-exchange-client.operation.exchange','onStarting','_initCommands','279GiLoda','BUTTON','merge','get','9186080DrdhhP','setConfig','SUBITEMS','UniverSheetsExchangeClientPlugin','UniverExchangeClientPlugin','DependentOn','WorkbookExportPermission','CommandType','24255lNlZmx','type','OTHERS','1336yLBCNx','6968tQFwfl','ExportIcon','RibbonStartGroup'];_0x4de0=function(){return _0x2eebc4;};return _0x4de0();}var y=Object[_0x204d0a(0x1fc)],O=(_0x5e40ac,_0x4a50c6,_0x277dc5,_0x57960f)=>{for(var _0x51ea0c=_0x57960f>0x1?void 0x0:_0x57960f?y(_0x4a50c6,_0x277dc5):_0x4a50c6,_0x559efa=_0x5e40ac['length']-0x1,_0x3cdcf8;_0x559efa>=0x0;_0x559efa--)(_0x3cdcf8=_0x5e40ac[_0x559efa])&&(_0x51ea0c=_0x3cdcf8(_0x51ea0c)||_0x51ea0c);return _0x51ea0c;},d=(_0x44917a,_0x12d6d0)=>(_0x283d4a,_0x19fdf9)=>_0x12d6d0(_0x283d4a,_0x19fdf9,_0x44917a);let u=class extends i[_0x204d0a(0x21a)]{constructor(_0x39513f,_0x5b2ce5){var _0x3410d=_0x204d0a;super(),this['_commandService']=_0x39513f,this[_0x3410d(0x216)]=_0x5b2ce5,this['_initCommands'](),this[_0x3410d(0x223)]();}[_0x204d0a(0x227)](){var _0x2b0cd5=_0x204d0a;[p,g][_0x2b0cd5(0x215)](_0x30a80b=>{var _0x5ab9bb=_0x2b0cd5;this[_0x5ab9bb(0x218)](this[_0x5ab9bb(0x1fe)][_0x5ab9bb(0x205)](_0x30a80b));});}[_0x204d0a(0x223)](){var _0x159ad9=_0x204d0a;this[_0x159ad9(0x216)][_0x159ad9(0x204)](f);}};u=O([d(0x0,i['ICommandService']),d(0x1,a[_0x204d0a(0x220)])],u);var P=Object[_0x204d0a(0x1ff)],U=Object['getOwnPropertyDescriptor'],N=(_0x10f215,_0x24c6bf,_0x18c823)=>_0x24c6bf in _0x10f215?P(_0x10f215,_0x24c6bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c823}):_0x10f215[_0x24c6bf]=_0x18c823,X=(_0x687cdb,_0x356b88,_0x55c7cc,_0x52c994)=>{var _0x985789=_0x204d0a;for(var _0x392aef=_0x52c994>0x1?void 0x0:_0x52c994?U(_0x356b88,_0x55c7cc):_0x356b88,_0x51351c=_0x687cdb[_0x985789(0x210)]-0x1,_0x14a304;_0x51351c>=0x0;_0x51351c--)(_0x14a304=_0x687cdb[_0x51351c])&&(_0x392aef=_0x14a304(_0x392aef)||_0x392aef);return _0x392aef;},m=(_0x4b5bea,_0x4c580b)=>(_0x576e08,_0x1d1a8b)=>_0x4c580b(_0x576e08,_0x1d1a8b,_0x4b5bea),_=(_0x4e4688,_0x3cf1fe,_0x4e9b2e)=>N(_0x4e4688,typeof _0x3cf1fe!=_0x204d0a(0x224)?_0x3cf1fe+'':_0x3cf1fe,_0x4e9b2e);const b=_0x204d0a(0x1fd);exports[_0x204d0a(0x22f)]=class extends i[_0x204d0a(0x208)]{constructor(_0x151b2a=h,_0x256285,_0x10a1c7){var _0x1fa5a2=_0x204d0a;super(),this['_config']=_0x151b2a,this[_0x1fa5a2(0x20d)]=_0x256285,this['_configService']=_0x10a1c7;const {menu:_0x4718f8,..._0x95c4b9}=i[_0x1fa5a2(0x22a)]({},h,this[_0x1fa5a2(0x20a)]);_0x4718f8&&this[_0x1fa5a2(0x21c)][_0x1fa5a2(0x22d)]('menu',_0x4718f8,{'merge':!0x0}),this[_0x1fa5a2(0x21c)][_0x1fa5a2(0x22d)](v,_0x95c4b9);}[_0x204d0a(0x226)](){var _0x3b1ee2=_0x204d0a;[[u]]['forEach'](_0x3cb1a5=>this[_0x3b1ee2(0x20d)]['add'](_0x3cb1a5));}['onReady'](){var _0xb7ea37=_0x204d0a;this[_0xb7ea37(0x20d)]['get'](u);}},_(exports[_0x204d0a(0x22f)],_0x204d0a(0x206),b),_(exports[_0x204d0a(0x22f)],_0x204d0a(0x1f5),i[_0x204d0a(0x201)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=X([i[_0x204d0a(0x231)](l[_0x204d0a(0x230)]),m(0x1,i[_0x204d0a(0x213)](i[_0x204d0a(0x20b)])),m(0x2,i[_0x204d0a(0x212)])],exports[_0x204d0a(0x22f)]),exports['ExportXLSXOperation']=g,exports['ImportXLSXOperation']=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2c4188=_0x17ef;(function(_0x51a390,_0x3ef8a4){var _0x232af9=_0x17ef,_0x437ebe=_0x51a390();while(!![]){try{var _0x323b2f=-parseInt(_0x232af9(0x20d))/0x1*(-parseInt(_0x232af9(0x1f8))/0x2)+parseInt(_0x232af9(0x20a))/0x3+parseInt(_0x232af9(0x1e1))/0x4+parseInt(_0x232af9(0x20c))/0x5*(-parseInt(_0x232af9(0x1fa))/0x6)+-parseInt(_0x232af9(0x1fc))/0x7*(-parseInt(_0x232af9(0x208))/0x8)+-parseInt(_0x232af9(0x1fd))/0x9*(-parseInt(_0x232af9(0x1e3))/0xa)+parseInt(_0x232af9(0x1ff))/0xb*(-parseInt(_0x232af9(0x1e5))/0xc);if(_0x323b2f===_0x3ef8a4)break;else _0x437ebe['push'](_0x437ebe['shift']());}catch(_0x56d6b9){_0x437ebe['push'](_0x437ebe['shift']());}}}(_0x5488,0xd0625));import{IExchangeOperateService as _0x2a0b50,UniverExchangeClientPlugin as _0x34e1df}from'@univerjs-pro/exchange-client';import{CommandType as _0x193ff8,UniverInstanceType as _0x39eeeb,Disposable as _0x368966,ICommandService as _0x2bdb23,DependentOn as _0x1b52f3,Inject as _0x16d797,Injector as _0x2c162e,IConfigService as _0x3ba836,Plugin as _0x44a1c8,merge as _0x4e058d}from'@univerjs/core';import{MenuItemType as _0x35b696,getMenuHiddenObservable as _0x41f58f,RibbonStartGroup as _0x179f9f,IMenuManagerService as _0x3a137c}from'@univerjs/ui';import{WorkbookExportPermission as _0x59c042}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5831a2}from'@univerjs/sheets-ui';const L=_0x2c4188(0x209),u={},m={'id':'exchange-client.operation.import-xlsx','type':_0x193ff8[_0x2c4188(0x1f1)],'handler':async _0x31ed3d=>(_0x31ed3d[_0x2c4188(0x1e2)](_0x2a0b50)[_0x2c4188(0x1f9)](),!0x0)},d={'id':_0x2c4188(0x200),'type':_0x193ff8['OPERATION'],'handler':async _0x146a74=>(_0x146a74[_0x2c4188(0x1e2)](_0x2a0b50)[_0x2c4188(0x1e9)](),!0x0)},S=_0x2c4188(0x1f3);function D(_0x5d9349){var _0x188628=_0x2c4188;return{'id':S,'type':_0x35b696[_0x188628(0x1ea)],'icon':_0x188628(0x204),'tooltip':_0x188628(0x1fb),'hidden$':_0x41f58f(_0x5d9349,_0x39eeeb[_0x188628(0x201)]),'disabled$':_0x5831a2(_0x5d9349,{'workbookTypes':[_0x59c042]})};}function F(){var _0x15b342=_0x2c4188;return{'id':m['id'],'type':_0x35b696[_0x15b342(0x1f5)],'title':'exchange.upload','icon':_0x15b342(0x1ed)};}function G(){var _0x11c9de=_0x2c4188;return{'id':d['id'],'type':_0x35b696[_0x11c9de(0x1f5)],'title':_0x11c9de(0x1e4),'icon':_0x11c9de(0x1ef)};}const R={[_0x179f9f[_0x2c4188(0x203)]]:{[S]:{'order':0.3,'menuItemFactory':D,[m['id']]:{'order':0x0,'menuItemFactory':F},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0x2c4188(0x1f6)],A=(_0x52e1c9,_0x521328,_0x536945,_0x52fe02)=>{var _0x33be3a=_0x2c4188;for(var _0x3dd542=_0x52fe02>0x1?void 0x0:_0x52fe02?w(_0x521328,_0x536945):_0x521328,_0x2ba00a=_0x52e1c9[_0x33be3a(0x1eb)]-0x1,_0xf12931;_0x2ba00a>=0x0;_0x2ba00a--)(_0xf12931=_0x52e1c9[_0x2ba00a])&&(_0x3dd542=_0xf12931(_0x3dd542)||_0x3dd542);return _0x3dd542;},_=(_0x4f71d4,_0x5e5b3b)=>(_0x3e6d8b,_0x377b53)=>_0x5e5b3b(_0x3e6d8b,_0x377b53,_0x4f71d4);function _0x17ef(_0x229782,_0x4886a4){var _0x54882a=_0x5488();return _0x17ef=function(_0x17ef3d,_0x4acd5d){_0x17ef3d=_0x17ef3d-0x1df;var _0x48cb94=_0x54882a[_0x17ef3d];return _0x48cb94;},_0x17ef(_0x229782,_0x4886a4);}let a=class extends _0x368966{constructor(_0x16e1e6,_0x5da39d){var _0x55098c=_0x2c4188;super(),this['_commandService']=_0x16e1e6,this[_0x55098c(0x206)]=_0x5da39d,this[_0x55098c(0x207)](),this['_initMenus']();}[_0x2c4188(0x207)](){[m,d]['forEach'](_0x22d907=>{var _0x48eb4a=_0x17ef;this['disposeWithMe'](this[_0x48eb4a(0x205)]['registerCommand'](_0x22d907));});}[_0x2c4188(0x1ee)](){var _0x5b7fc9=_0x2c4188;this[_0x5b7fc9(0x206)][_0x5b7fc9(0x1e8)](R);}};a=A([_(0x0,_0x2bdb23),_(0x1,_0x3a137c)],a);var j=Object[_0x2c4188(0x1f2)],$=Object[_0x2c4188(0x1f6)],B=(_0x3eebd5,_0x2604e7,_0x4bcfec)=>_0x2604e7 in _0x3eebd5?j(_0x3eebd5,_0x2604e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bcfec}):_0x3eebd5[_0x2604e7]=_0x4bcfec,V=(_0x519234,_0x39ea19,_0x54e1db,_0x1ac1fc)=>{var _0x110ec7=_0x2c4188;for(var _0x2b6421=_0x1ac1fc>0x1?void 0x0:_0x1ac1fc?$(_0x39ea19,_0x54e1db):_0x39ea19,_0x4218d7=_0x519234[_0x110ec7(0x1eb)]-0x1,_0x3db88d;_0x4218d7>=0x0;_0x4218d7--)(_0x3db88d=_0x519234[_0x4218d7])&&(_0x2b6421=_0x3db88d(_0x2b6421)||_0x2b6421);return _0x2b6421;},g=(_0x525b54,_0x7f83e4)=>(_0x1abf12,_0x574ac7)=>_0x7f83e4(_0x1abf12,_0x574ac7,_0x525b54),I=(_0x5b41ff,_0x56fc61,_0x225b80)=>B(_0x5b41ff,typeof _0x56fc61!=_0x2c4188(0x20b)?_0x56fc61+'':_0x56fc61,_0x225b80);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x44a1c8{constructor(_0x5be1bc=u,_0x328bf0,_0x1a84cf){var _0x47ecb7=_0x2c4188;super(),this[_0x47ecb7(0x20e)]=_0x5be1bc,this[_0x47ecb7(0x1df)]=_0x328bf0,this[_0x47ecb7(0x1e7)]=_0x1a84cf;const {menu:_0x52d56d,..._0x33414e}=_0x4e058d({},u,this[_0x47ecb7(0x20e)]);_0x52d56d&&this[_0x47ecb7(0x1e7)][_0x47ecb7(0x1ec)](_0x47ecb7(0x1f7),_0x52d56d,{'merge':!0x0}),this['_configService'][_0x47ecb7(0x1ec)](L,_0x33414e);}[_0x2c4188(0x1e6)](){var _0x482afc=_0x2c4188;[[a]][_0x482afc(0x1fe)](_0x36ab08=>this['_injector'][_0x482afc(0x202)](_0x36ab08));}[_0x2c4188(0x1f0)](){this['_injector']['get'](a);}};function _0x5488(){var _0x5c5591=['onStarting','_configService','mergeMenu','exportXLSXByUnitId','SUBITEMS','length','setConfig','FolderIcon','_initMenus','ExportIcon','onReady','OPERATION','defineProperty','sheets-exchange-client.operation.exchange','type','BUTTON','getOwnPropertyDescriptor','menu','1108bnqQzg','importXLSXToUnitId','432xTZuoe','exchange.file','83825lnWTeF','8651250kIKdZV','forEach','11jiuUQB','exchange-client.operation.export-xlsx','UNIVER_SHEET','add','OTHERS','DirectExportIcon','_commandService','_menuManagerService','_initCommands','328AByEcl','sheets-exchange-client.config','3634428wQZyZy','symbol','82610kOgBAF','1389WYsLpx','_config','_injector','pluginName','438864jZQMWR','get','10PZzqiw','exchange.download','17997576ejNEWG'];_0x5488=function(){return _0x5c5591;};return _0x5488();}I(s,_0x2c4188(0x1e0),W),I(s,_0x2c4188(0x1f4),_0x39eeeb['UNIVER_SHEET']),s=V([_0x1b52f3(_0x34e1df),g(0x1,_0x16d797(_0x2c162e)),g(0x2,_0x3ba836)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2c4188=_0x17ef;(function(_0x51a390,_0x3ef8a4){var _0x232af9=_0x17ef,_0x437ebe=_0x51a390();while(!![]){try{var _0x323b2f=-parseInt(_0x232af9(0x20d))/0x1*(-parseInt(_0x232af9(0x1f8))/0x2)+parseInt(_0x232af9(0x20a))/0x3+parseInt(_0x232af9(0x1e1))/0x4+parseInt(_0x232af9(0x20c))/0x5*(-parseInt(_0x232af9(0x1fa))/0x6)+-parseInt(_0x232af9(0x1fc))/0x7*(-parseInt(_0x232af9(0x208))/0x8)+-parseInt(_0x232af9(0x1fd))/0x9*(-parseInt(_0x232af9(0x1e3))/0xa)+parseInt(_0x232af9(0x1ff))/0xb*(-parseInt(_0x232af9(0x1e5))/0xc);if(_0x323b2f===_0x3ef8a4)break;else _0x437ebe['push'](_0x437ebe['shift']());}catch(_0x56d6b9){_0x437ebe['push'](_0x437ebe['shift']());}}}(_0x5488,0xd0625));import{IExchangeOperateService as _0x2a0b50,UniverExchangeClientPlugin as _0x34e1df}from'@univerjs-pro/exchange-client';import{CommandType as _0x193ff8,UniverInstanceType as _0x39eeeb,Disposable as _0x368966,ICommandService as _0x2bdb23,DependentOn as _0x1b52f3,Inject as _0x16d797,Injector as _0x2c162e,IConfigService as _0x3ba836,Plugin as _0x44a1c8,merge as _0x4e058d}from'@univerjs/core';import{MenuItemType as _0x35b696,getMenuHiddenObservable as _0x41f58f,RibbonStartGroup as _0x179f9f,IMenuManagerService as _0x3a137c}from'@univerjs/ui';import{WorkbookExportPermission as _0x59c042}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x5831a2}from'@univerjs/sheets-ui';const L=_0x2c4188(0x209),u={},m={'id':'exchange-client.operation.import-xlsx','type':_0x193ff8[_0x2c4188(0x1f1)],'handler':async _0x31ed3d=>(_0x31ed3d[_0x2c4188(0x1e2)](_0x2a0b50)[_0x2c4188(0x1f9)](),!0x0)},d={'id':_0x2c4188(0x200),'type':_0x193ff8['OPERATION'],'handler':async _0x146a74=>(_0x146a74[_0x2c4188(0x1e2)](_0x2a0b50)[_0x2c4188(0x1e9)](),!0x0)},S=_0x2c4188(0x1f3);function D(_0x5d9349){var _0x188628=_0x2c4188;return{'id':S,'type':_0x35b696[_0x188628(0x1ea)],'icon':_0x188628(0x204),'tooltip':_0x188628(0x1fb),'hidden$':_0x41f58f(_0x5d9349,_0x39eeeb[_0x188628(0x201)]),'disabled$':_0x5831a2(_0x5d9349,{'workbookTypes':[_0x59c042]})};}function F(){var _0x15b342=_0x2c4188;return{'id':m['id'],'type':_0x35b696[_0x15b342(0x1f5)],'title':'exchange.upload','icon':_0x15b342(0x1ed)};}function G(){var _0x11c9de=_0x2c4188;return{'id':d['id'],'type':_0x35b696[_0x11c9de(0x1f5)],'title':_0x11c9de(0x1e4),'icon':_0x11c9de(0x1ef)};}const R={[_0x179f9f[_0x2c4188(0x203)]]:{[S]:{'order':0.3,'menuItemFactory':D,[m['id']]:{'order':0x0,'menuItemFactory':F},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0x2c4188(0x1f6)],A=(_0x52e1c9,_0x521328,_0x536945,_0x52fe02)=>{var _0x33be3a=_0x2c4188;for(var _0x3dd542=_0x52fe02>0x1?void 0x0:_0x52fe02?w(_0x521328,_0x536945):_0x521328,_0x2ba00a=_0x52e1c9[_0x33be3a(0x1eb)]-0x1,_0xf12931;_0x2ba00a>=0x0;_0x2ba00a--)(_0xf12931=_0x52e1c9[_0x2ba00a])&&(_0x3dd542=_0xf12931(_0x3dd542)||_0x3dd542);return _0x3dd542;},_=(_0x4f71d4,_0x5e5b3b)=>(_0x3e6d8b,_0x377b53)=>_0x5e5b3b(_0x3e6d8b,_0x377b53,_0x4f71d4);function _0x17ef(_0x229782,_0x4886a4){var _0x54882a=_0x5488();return _0x17ef=function(_0x17ef3d,_0x4acd5d){_0x17ef3d=_0x17ef3d-0x1df;var _0x48cb94=_0x54882a[_0x17ef3d];return _0x48cb94;},_0x17ef(_0x229782,_0x4886a4);}let a=class extends _0x368966{constructor(_0x16e1e6,_0x5da39d){var _0x55098c=_0x2c4188;super(),this['_commandService']=_0x16e1e6,this[_0x55098c(0x206)]=_0x5da39d,this[_0x55098c(0x207)](),this['_initMenus']();}[_0x2c4188(0x207)](){[m,d]['forEach'](_0x22d907=>{var _0x48eb4a=_0x17ef;this['disposeWithMe'](this[_0x48eb4a(0x205)]['registerCommand'](_0x22d907));});}[_0x2c4188(0x1ee)](){var _0x5b7fc9=_0x2c4188;this[_0x5b7fc9(0x206)][_0x5b7fc9(0x1e8)](R);}};a=A([_(0x0,_0x2bdb23),_(0x1,_0x3a137c)],a);var j=Object[_0x2c4188(0x1f2)],$=Object[_0x2c4188(0x1f6)],B=(_0x3eebd5,_0x2604e7,_0x4bcfec)=>_0x2604e7 in _0x3eebd5?j(_0x3eebd5,_0x2604e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bcfec}):_0x3eebd5[_0x2604e7]=_0x4bcfec,V=(_0x519234,_0x39ea19,_0x54e1db,_0x1ac1fc)=>{var _0x110ec7=_0x2c4188;for(var _0x2b6421=_0x1ac1fc>0x1?void 0x0:_0x1ac1fc?$(_0x39ea19,_0x54e1db):_0x39ea19,_0x4218d7=_0x519234[_0x110ec7(0x1eb)]-0x1,_0x3db88d;_0x4218d7>=0x0;_0x4218d7--)(_0x3db88d=_0x519234[_0x4218d7])&&(_0x2b6421=_0x3db88d(_0x2b6421)||_0x2b6421);return _0x2b6421;},g=(_0x525b54,_0x7f83e4)=>(_0x1abf12,_0x574ac7)=>_0x7f83e4(_0x1abf12,_0x574ac7,_0x525b54),I=(_0x5b41ff,_0x56fc61,_0x225b80)=>B(_0x5b41ff,typeof _0x56fc61!=_0x2c4188(0x20b)?_0x56fc61+'':_0x56fc61,_0x225b80);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x44a1c8{constructor(_0x5be1bc=u,_0x328bf0,_0x1a84cf){var _0x47ecb7=_0x2c4188;super(),this[_0x47ecb7(0x20e)]=_0x5be1bc,this[_0x47ecb7(0x1df)]=_0x328bf0,this[_0x47ecb7(0x1e7)]=_0x1a84cf;const {menu:_0x52d56d,..._0x33414e}=_0x4e058d({},u,this[_0x47ecb7(0x20e)]);_0x52d56d&&this[_0x47ecb7(0x1e7)][_0x47ecb7(0x1ec)](_0x47ecb7(0x1f7),_0x52d56d,{'merge':!0x0}),this['_configService'][_0x47ecb7(0x1ec)](L,_0x33414e);}[_0x2c4188(0x1e6)](){var _0x482afc=_0x2c4188;[[a]][_0x482afc(0x1fe)](_0x36ab08=>this['_injector'][_0x482afc(0x202)](_0x36ab08));}[_0x2c4188(0x1f0)](){this['_injector']['get'](a);}};function _0x5488(){var _0x5c5591=['onStarting','_configService','mergeMenu','exportXLSXByUnitId','SUBITEMS','length','setConfig','FolderIcon','_initMenus','ExportIcon','onReady','OPERATION','defineProperty','sheets-exchange-client.operation.exchange','type','BUTTON','getOwnPropertyDescriptor','menu','1108bnqQzg','importXLSXToUnitId','432xTZuoe','exchange.file','83825lnWTeF','8651250kIKdZV','forEach','11jiuUQB','exchange-client.operation.export-xlsx','UNIVER_SHEET','add','OTHERS','DirectExportIcon','_commandService','_menuManagerService','_initCommands','328AByEcl','sheets-exchange-client.config','3634428wQZyZy','symbol','82610kOgBAF','1389WYsLpx','_config','_injector','pluginName','438864jZQMWR','get','10PZzqiw','exchange.download','17997576ejNEWG'];_0x5488=function(){return _0x5c5591;};return _0x5488();}I(s,_0x2c4188(0x1e0),W),I(s,_0x2c4188(0x1f4),_0x39eeeb['UNIVER_SHEET']),s=V([_0x1b52f3(_0x34e1df),g(0x1,_0x16d797(_0x2c162e)),g(0x2,_0x3ba836)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1c89(){var _0x1df617=['63XNuVab','pluginName','7442376IyihyH','merge','UniverCore','Injector','sheets-exchange-client.operation.exchange','@univerjs/sheets-ui','add','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','_injector','exchange-client.operation.import-xlsx','_commandService','RibbonStartGroup','Plugin','UniverUi','3ClTRkV','2984SxrUsC','264OkUPFw','getOwnPropertyDescriptor','symbol','23485Szlscr','exports','_menuManagerService','12bMjVvA','exchange.file','@univerjs-pro/exchange-client','exchange.upload','_config','501224PvwyYF','834450sgYRKs','@univerjs/ui','type','get','CommandType','IConfigService','_configService','onReady','_initMenus','WorkbookExportPermission','_initCommands','UniverExchangeClientPlugin','setConfig','DirectExportIcon','FolderIcon','IExchangeOperateService','getCurrentRangeDisable$','onStarting','@univerjs/sheets','IMenuManagerService','UniverInstanceType','BUTTON','1455930XrScXq','getMenuHiddenObservable','function','forEach','UniverProSheetsExchangeClient','registerCommand','object','amd','MenuItemType','ExportXLSXOperation','UniverSheetsExchangeClientPlugin','mergeMenu','306290kYKadN','disposeWithMe','35srxamp','defineProperty','OPERATION','ImportXLSXOperation'];_0x1c89=function(){return _0x1df617;};return _0x1c89();}function _0x599d(_0x2ef8db,_0x5ef248){var _0x1c896a=_0x1c89();return _0x599d=function(_0x599dfd,_0x4448f2){_0x599dfd=_0x599dfd-0x1be;var _0x31af40=_0x1c896a[_0x599dfd];return _0x31af40;},_0x599d(_0x2ef8db,_0x5ef248);}(function(_0x4d1d88,_0x5367d0){var _0x834923=_0x599d,_0x4086d4=_0x4d1d88();while(!![]){try{var _0x2d967e=-parseInt(_0x834923(0x1cb))/0x1+-parseInt(_0x834923(0x1f0))/0x2*(-parseInt(_0x834923(0x1e3))/0x3)+parseInt(_0x834923(0x1e4))/0x4*(-parseInt(_0x834923(0x1cd))/0x5)+parseInt(_0x834923(0x1eb))/0x6*(parseInt(_0x834923(0x1bf))/0x7)+parseInt(_0x834923(0x1d3))/0x8+-parseInt(_0x834923(0x1d1))/0x9*(parseInt(_0x834923(0x1f1))/0xa)+-parseInt(_0x834923(0x1e8))/0xb*(parseInt(_0x834923(0x1e5))/0xc);if(_0x2d967e===_0x5367d0)break;else _0x4086d4['push'](_0x4086d4['shift']());}catch(_0x111c57){_0x4086d4['push'](_0x4086d4['shift']());}}}(_0x1c89,0x9fbd4),function(_0x3f9df0,_0x39b691){var _0x591b1e=_0x599d;typeof exports==_0x591b1e(0x1c5)&&typeof module<'u'?_0x39b691(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x591b1e(0x1c1)&&define[_0x591b1e(0x1c6)]?define([_0x591b1e(0x1e9),_0x591b1e(0x1ed),'@univerjs/core',_0x591b1e(0x1f2),_0x591b1e(0x203),_0x591b1e(0x1d8)],_0x39b691):(_0x3f9df0=typeof globalThis<'u'?globalThis:_0x3f9df0||self,_0x39b691(_0x3f9df0[_0x591b1e(0x1c3)]={},_0x3f9df0['UniverProExchangeClient'],_0x3f9df0[_0x591b1e(0x1d5)],_0x3f9df0[_0x591b1e(0x1e2)],_0x3f9df0['UniverSheets'],_0x3f9df0['UniverSheetsUi']));}(this,function(_0x1e5bea,_0x1c66c3,_0x2998a1,_0x1cd255,_0x8020a3,_0x5b158b){'use strict';var _0x5b4977=_0x599d;const _0x3fb909='sheets-exchange-client.config',_0x44a0cd={},_0x36c113={'id':_0x5b4977(0x1de),'type':_0x2998a1[_0x5b4977(0x1f5)][_0x5b4977(0x1cf)],'handler':async _0x233037=>(_0x233037[_0x5b4977(0x1f4)](_0x1c66c3[_0x5b4977(0x200)])['importXLSXToUnitId'](),!0x0)},_0x317b96={'id':_0x5b4977(0x1dc),'type':_0x2998a1['CommandType'][_0x5b4977(0x1cf)],'handler':async _0x590af2=>(_0x590af2[_0x5b4977(0x1f4)](_0x1c66c3[_0x5b4977(0x200)])['exportXLSXByUnitId'](),!0x0)},_0x51457a=_0x5b4977(0x1d7);function _0x391fb7(_0x28accb){var _0x4ea833=_0x5b4977;return{'id':_0x51457a,'type':_0x1cd255[_0x4ea833(0x1c7)]['SUBITEMS'],'icon':_0x4ea833(0x1fe),'tooltip':_0x4ea833(0x1ec),'hidden$':_0x1cd255[_0x4ea833(0x1c0)](_0x28accb,_0x2998a1[_0x4ea833(0x205)]['UNIVER_SHEET']),'disabled$':_0x5b158b[_0x4ea833(0x201)](_0x28accb,{'workbookTypes':[_0x8020a3[_0x4ea833(0x1fa)]]})};}function _0x58abaf(){var _0x165486=_0x5b4977;return{'id':_0x36c113['id'],'type':_0x1cd255[_0x165486(0x1c7)][_0x165486(0x1be)],'title':_0x165486(0x1ee),'icon':_0x165486(0x1ff)};}function _0xce03a1(){var _0x3dc584=_0x5b4977;return{'id':_0x317b96['id'],'type':_0x1cd255[_0x3dc584(0x1c7)][_0x3dc584(0x1be)],'title':'exchange.download','icon':'ExportIcon'};}const _0x3958a3={[_0x1cd255[_0x5b4977(0x1e0)][_0x5b4977(0x1da)]]:{[_0x51457a]:{'order':0.3,'menuItemFactory':_0x391fb7,[_0x36c113['id']]:{'order':0x0,'menuItemFactory':_0x58abaf},[_0x317b96['id']]:{'order':0x1,'menuItemFactory':_0xce03a1}}}};var _0x30da26=Object[_0x5b4977(0x1e6)],_0x81e56e=(_0x1c9204,_0x28557e,_0xb73dfb,_0x26b0f8)=>{for(var _0x59eb13=_0x26b0f8>0x1?void 0x0:_0x26b0f8?_0x30da26(_0x28557e,_0xb73dfb):_0x28557e,_0x2d5075=_0x1c9204['length']-0x1,_0x35ff45;_0x2d5075>=0x0;_0x2d5075--)(_0x35ff45=_0x1c9204[_0x2d5075])&&(_0x59eb13=_0x35ff45(_0x59eb13)||_0x59eb13);return _0x59eb13;},_0xb51c56=(_0x52a79d,_0x40c2ca)=>(_0x213879,_0x528e7d)=>_0x40c2ca(_0x213879,_0x528e7d,_0x52a79d);let _0x56c8fe=class extends _0x2998a1['Disposable']{constructor(_0x3bb464,_0xe47ab6){var _0xe8fb1b=_0x5b4977;super(),this['_commandService']=_0x3bb464,this[_0xe8fb1b(0x1ea)]=_0xe47ab6,this[_0xe8fb1b(0x1fb)](),this[_0xe8fb1b(0x1f9)]();}[_0x5b4977(0x1fb)](){var _0x301fa0=_0x5b4977;[_0x36c113,_0x317b96][_0x301fa0(0x1c2)](_0x5cb55e=>{var _0x33375d=_0x301fa0;this[_0x33375d(0x1cc)](this[_0x33375d(0x1df)][_0x33375d(0x1c4)](_0x5cb55e));});}['_initMenus'](){var _0x52731b=_0x5b4977;this[_0x52731b(0x1ea)][_0x52731b(0x1ca)](_0x3958a3);}};_0x56c8fe=_0x81e56e([_0xb51c56(0x0,_0x2998a1['ICommandService']),_0xb51c56(0x1,_0x1cd255[_0x5b4977(0x204)])],_0x56c8fe);var _0x1b66bd=Object['defineProperty'],_0x41ae4f=Object[_0x5b4977(0x1e6)],_0x2ad9e9=(_0x127f9f,_0x4dc6a3,_0xb7eaa8)=>_0x4dc6a3 in _0x127f9f?_0x1b66bd(_0x127f9f,_0x4dc6a3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb7eaa8}):_0x127f9f[_0x4dc6a3]=_0xb7eaa8,_0x33d5d1=(_0x2befeb,_0xf5404a,_0x4c2d8d,_0x3f35c7)=>{for(var _0x5d9c9a=_0x3f35c7>0x1?void 0x0:_0x3f35c7?_0x41ae4f(_0xf5404a,_0x4c2d8d):_0xf5404a,_0x4da042=_0x2befeb['length']-0x1,_0x347a08;_0x4da042>=0x0;_0x4da042--)(_0x347a08=_0x2befeb[_0x4da042])&&(_0x5d9c9a=_0x347a08(_0x5d9c9a)||_0x5d9c9a);return _0x5d9c9a;},_0x5d113a=(_0x2371cd,_0x41684c)=>(_0x2a63b2,_0x143e20)=>_0x41684c(_0x2a63b2,_0x143e20,_0x2371cd),_0x306d24=(_0x403888,_0x86e80c,_0x32253f)=>_0x2ad9e9(_0x403888,typeof _0x86e80c!=_0x5b4977(0x1e7)?_0x86e80c+'':_0x86e80c,_0x32253f);const _0x20c7a6=_0x5b4977(0x1db);_0x1e5bea[_0x5b4977(0x1c9)]=class extends _0x2998a1[_0x5b4977(0x1e1)]{constructor(_0x5469f5=_0x44a0cd,_0x2bacbb,_0x55592b){var _0x5c720a=_0x5b4977;super(),this[_0x5c720a(0x1ef)]=_0x5469f5,this[_0x5c720a(0x1dd)]=_0x2bacbb,this[_0x5c720a(0x1f7)]=_0x55592b;const {menu:_0x4b6e5c,..._0x1f499c}=_0x2998a1[_0x5c720a(0x1d4)]({},_0x44a0cd,this[_0x5c720a(0x1ef)]);_0x4b6e5c&&this[_0x5c720a(0x1f7)][_0x5c720a(0x1fd)]('menu',_0x4b6e5c,{'merge':!0x0}),this[_0x5c720a(0x1f7)][_0x5c720a(0x1fd)](_0x3fb909,_0x1f499c);}[_0x5b4977(0x202)](){var _0xc4184c=_0x5b4977;[[_0x56c8fe]][_0xc4184c(0x1c2)](_0x10e7e4=>this['_injector'][_0xc4184c(0x1d9)](_0x10e7e4));}[_0x5b4977(0x1f8)](){var _0x194175=_0x5b4977;this[_0x194175(0x1dd)][_0x194175(0x1f4)](_0x56c8fe);}},_0x306d24(_0x1e5bea[_0x5b4977(0x1c9)],_0x5b4977(0x1d2),_0x20c7a6),_0x306d24(_0x1e5bea[_0x5b4977(0x1c9)],_0x5b4977(0x1f3),_0x2998a1[_0x5b4977(0x205)]['UNIVER_SHEET']),_0x1e5bea[_0x5b4977(0x1c9)]=_0x33d5d1([_0x2998a1['DependentOn'](_0x1c66c3[_0x5b4977(0x1fc)]),_0x5d113a(0x1,_0x2998a1['Inject'](_0x2998a1[_0x5b4977(0x1d6)])),_0x5d113a(0x2,_0x2998a1[_0x5b4977(0x1f6)])],_0x1e5bea['UniverSheetsExchangeClientPlugin']),_0x1e5bea[_0x5b4977(0x1c8)]=_0x317b96,_0x1e5bea[_0x5b4977(0x1d0)]=_0x36c113,Object[_0x5b4977(0x1ce)](_0x1e5bea,Symbol['toStringTag'],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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-ui": "0.9.
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.9.2",
|
|
46
|
+
"@univerjs/core": "0.9.2",
|
|
47
|
+
"@univerjs/sheets-ui": "0.9.2",
|
|
48
|
+
"@univerjs/sheets": "0.9.2",
|
|
49
|
+
"@univerjs/ui": "0.9.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
53
|
"vite": "^6.3.5",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.9.
|
|
55
|
+
"@univerjs-infra/shared": "0.9.2"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|