@univerjs-pro/sheets-exchange-client 0.10.11 → 0.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xb878(_0xe1818d,_0x2f821b){const _0x497c54=_0x497c();return _0xb878=function(_0xb87823,_0x10bcdc){_0xb87823=_0xb87823-0x1ac;let _0x52f413=_0x497c54[_0xb87823];return _0x52f413;},_0xb878(_0xe1818d,_0x2f821b);}const _0x5af834=_0xb878;(function(_0x5dd26e,_0x365dfa){const _0xd9254e=_0xb878,_0xca0310=_0x5dd26e();while(!![]){try{const _0x2d96cf=-parseInt(_0xd9254e(0x1b4))/0x1*(-parseInt(_0xd9254e(0x1ea))/0x2)+-parseInt(_0xd9254e(0x1c4))/0x3+-parseInt(_0xd9254e(0x1c0))/0x4+-parseInt(_0xd9254e(0x1d8))/0x5*(-parseInt(_0xd9254e(0x1c7))/0x6)+parseInt(_0xd9254e(0x1bf))/0x7*(parseInt(_0xd9254e(0x1c6))/0x8)+-parseInt(_0xd9254e(0x1c8))/0x9+-parseInt(_0xd9254e(0x1ec))/0xa*(-parseInt(_0xd9254e(0x1de))/0xb);if(_0x2d96cf===_0x365dfa)break;else _0xca0310['push'](_0xca0310['shift']());}catch(_0x4d70b3){_0xca0310['push'](_0xca0310['shift']());}}}(_0x497c,0x769c8));Object[_0x5af834(0x1d6)](exports,Symbol[_0x5af834(0x1cc)],{'value':_0x5af834(0x1af)});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':_0x5af834(0x1d2),'type':i[_0x5af834(0x1dc)][_0x5af834(0x1c5)],'handler':async _0x542f8b=>{const _0x3ec3b5=_0x5af834,_0x3a8f6e=_0x542f8b[_0x3ec3b5(0x1e2)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x3ec3b5(0x1e3)])[_0x3ec3b5(0x1e2)](_0x3ec3b5(0x1c2))?_0x3a8f6e['importXLSXToUnitId']():_0x3a8f6e[_0x3ec3b5(0x1e8)](),!0x0;}},p={'id':_0x5af834(0x1da),'type':i[_0x5af834(0x1dc)][_0x5af834(0x1c5)],'handler':async _0x335f7d=>{const _0x543f0a=_0x5af834,_0x17f8e4=_0x335f7d[_0x543f0a(0x1e2)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x543f0a(0x1e3)])[_0x543f0a(0x1e2)](_0x543f0a(0x1c2))?_0x17f8e4[_0x543f0a(0x1ca)]():_0x17f8e4['exportXLSXBySnapshot'](),!0x0;}},v=_0x5af834(0x1ac),h={},S='sheets-exchange-client.operation.exchange';function x(_0x464b96){const _0x59591a=_0x5af834;return{'id':S,'type':c[_0x59591a(0x1c1)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x59591a(0x1b7),'hidden$':c[_0x59591a(0x1e7)](_0x464b96,i[_0x59591a(0x1d0)]['UNIVER_SHEET']),'disabled$':I[_0x59591a(0x1b0)](_0x464b96,{'workbookTypes':[_[_0x59591a(0x1e4)]]})};}function P(){const _0x1133cb=_0x5af834;return{'id':l['id'],'type':c[_0x1133cb(0x1c1)][_0x1133cb(0x1cf)],'title':'exchange.upload','icon':_0x1133cb(0x1bd)};}function _0x497c(){const _0x15fd4e=['onReady','_config','ExportXLSXOperation','_configService','ExportIcon','FolderIcon','RibbonStartGroup','5943emUhRk','1091628JeiImk','MenuItemType','unit','ImportXLSXOperation','1261503bJqCsa','OPERATION','8040migryV','59004WJHKTi','6071796EPerci','Inject','exportXLSXByUnitId','Injector','toStringTag','symbol','exchange.download','BUTTON','UniverInstanceType','menu','exchange-client.operation.import-xlsx','IConfigService','_initCommands','UniverExchangeClientPlugin','defineProperty','_menuManagerService','25SLbdPl','ICommandService','exchange-client.operation.export-xlsx','disposeWithMe','CommandType','merge','11FBlvvN','UniverSheetsExchangeClientPlugin','setConfig','_initMenus','get','search','WorkbookExportPermission','registerCommand','Plugin','getMenuHiddenObservable','importXLSXToSnapshot','getOwnPropertyDescriptor','14yIwyjE','forEach','1246220LlRmko','sheets-exchange-client.config','add','_injector','Module','getCurrentRangeDisable$','length','SHEET_EXCHANGE_CLIENT_PLUGIN','UNIVER_SHEET','118121SESsTp','IMenuManagerService','onStarting','exchange.file'];_0x497c=function(){return _0x15fd4e;};return _0x497c();}function C(){const _0x179b27=_0x5af834;return{'id':p['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x179b27(0x1ce),'icon':_0x179b27(0x1bc)};}const f={[c[_0x5af834(0x1be)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x49eec0,_0x2b61d0,_0x19b48b,_0x26a759)=>{const _0xe87a18=_0x5af834;for(var _0x2b1e6b=_0x26a759>0x1?void 0x0:_0x26a759?T(_0x2b61d0,_0x19b48b):_0x2b61d0,_0x32ab5b=_0x49eec0[_0xe87a18(0x1b1)]-0x1,_0x57ba27;_0x32ab5b>=0x0;_0x32ab5b--)(_0x57ba27=_0x49eec0[_0x32ab5b])&&(_0x2b1e6b=_0x57ba27(_0x2b1e6b)||_0x2b1e6b);return _0x2b1e6b;},m=(_0x452b50,_0x27ec0d)=>(_0x20d8ca,_0x130f0c)=>_0x27ec0d(_0x20d8ca,_0x130f0c,_0x452b50);let u=class extends i['Disposable']{constructor(_0x57f06f,_0x33a108){const _0x5539dd=_0x5af834;super(),this['_commandService']=_0x57f06f,this[_0x5539dd(0x1d7)]=_0x33a108,this[_0x5539dd(0x1d4)](),this[_0x5539dd(0x1e1)]();}[_0x5af834(0x1d4)](){const _0x58bb45=_0x5af834;[l,p][_0x58bb45(0x1eb)](_0x5146e8=>{const _0xf6f219=_0x58bb45;this[_0xf6f219(0x1db)](this['_commandService'][_0xf6f219(0x1e5)](_0x5146e8));});}[_0x5af834(0x1e1)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x5af834(0x1d9)]),m(0x1,c[_0x5af834(0x1b5)])],u);var O=Object[_0x5af834(0x1d6)],U=Object[_0x5af834(0x1e9)],X=(_0x103694,_0x56f7da,_0x248e52)=>_0x56f7da in _0x103694?O(_0x103694,_0x56f7da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x248e52}):_0x103694[_0x56f7da]=_0x248e52,N=(_0x2207cb,_0x4ff206,_0x3e86c4,_0x34724e)=>{for(var _0x34e9fc=_0x34724e>0x1?void 0x0:_0x34724e?U(_0x4ff206,_0x3e86c4):_0x4ff206,_0x87da03=_0x2207cb['length']-0x1,_0x56386e;_0x87da03>=0x0;_0x87da03--)(_0x56386e=_0x2207cb[_0x87da03])&&(_0x34e9fc=_0x56386e(_0x34e9fc)||_0x34e9fc);return _0x34e9fc;},d=(_0x4576fa,_0x4e6c87)=>(_0x30e357,_0x498a2e)=>_0x4e6c87(_0x30e357,_0x498a2e,_0x4576fa),E=(_0x51e14a,_0x2b0d22,_0x1f181c)=>X(_0x51e14a,typeof _0x2b0d22!=_0x5af834(0x1cd)?_0x2b0d22+'':_0x2b0d22,_0x1f181c);const L=_0x5af834(0x1b2);exports[_0x5af834(0x1df)]=class extends i[_0x5af834(0x1e6)]{constructor(_0x57b7a3=h,_0x37a336,_0x17fcf1){const _0x238ed0=_0x5af834;super(),this[_0x238ed0(0x1b9)]=_0x57b7a3,this[_0x238ed0(0x1ae)]=_0x37a336,this['_configService']=_0x17fcf1;const {menu:_0x4cdff3,..._0x5933b4}=i[_0x238ed0(0x1dd)]({},h,this[_0x238ed0(0x1b9)]);_0x4cdff3&&this['_configService'][_0x238ed0(0x1e0)](_0x238ed0(0x1d1),_0x4cdff3,{'merge':!0x0}),this[_0x238ed0(0x1bb)][_0x238ed0(0x1e0)](v,_0x5933b4);}[_0x5af834(0x1b6)](){const _0x4433c0=_0x5af834;[[u]][_0x4433c0(0x1eb)](_0x3cd160=>this[_0x4433c0(0x1ae)][_0x4433c0(0x1ad)](_0x3cd160));}[_0x5af834(0x1b8)](){const _0x672ea7=_0x5af834;this[_0x672ea7(0x1ae)][_0x672ea7(0x1e2)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0x5af834(0x1df)],'type',i[_0x5af834(0x1d0)][_0x5af834(0x1b3)]),exports[_0x5af834(0x1df)]=N([i['DependentOn'](g[_0x5af834(0x1d5)]),d(0x1,i[_0x5af834(0x1c9)](i[_0x5af834(0x1cb)])),d(0x2,i[_0x5af834(0x1d3)])],exports[_0x5af834(0x1df)]),exports[_0x5af834(0x1ba)]=p,exports[_0x5af834(0x1c3)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56d477=_0x45de;(function(_0x1ebd16,_0x3a62ea){const _0x31c970=_0x45de,_0x2f5b88=_0x1ebd16();while(!![]){try{const _0x5daab=parseInt(_0x31c970(0x172))/0x1*(-parseInt(_0x31c970(0x174))/0x2)+-parseInt(_0x31c970(0x16b))/0x3*(parseInt(_0x31c970(0x171))/0x4)+parseInt(_0x31c970(0x173))/0x5+parseInt(_0x31c970(0x187))/0x6+-parseInt(_0x31c970(0x166))/0x7+parseInt(_0x31c970(0x16e))/0x8+parseInt(_0x31c970(0x185))/0x9*(parseInt(_0x31c970(0x184))/0xa);if(_0x5daab===_0x3a62ea)break;else _0x2f5b88['push'](_0x2f5b88['shift']());}catch(_0x2ce227){_0x2f5b88['push'](_0x2f5b88['shift']());}}}(_0x55a8,0x89592));import{IExchangeOperateService as _0x57595b,UniverExchangeClientPlugin as _0x44d42a}from'@univerjs-pro/exchange-client';import{CommandType as _0x4b6cbe,UniverInstanceType as _0x139884,Disposable as _0xb34bba,ICommandService as _0x5707d1,DependentOn as _0xbcda0c,Inject as _0x64d62c,Injector as _0x1a652c,IConfigService as _0x3f998e,Plugin as _0x5d8690,merge as _0x3a56c3}from'@univerjs/core';import{MenuItemType as _0x414897,getMenuHiddenObservable as _0x2a284d,RibbonStartGroup as _0x4557db,IMenuManagerService as _0x579015}from'@univerjs/ui';import{WorkbookExportPermission as _0x2b1102}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x45fb51}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x4b6cbe[_0x56d477(0x189)],'handler':async _0x2a9dfb=>{const _0x17008=_0x56d477,_0x4d7852=_0x2a9dfb['get'](_0x57595b);return new URLSearchParams(location['search'])[_0x17008(0x17a)](_0x17008(0x17f))?_0x4d7852['importXLSXToUnitId']():_0x4d7852[_0x17008(0x17d)](),!0x0;}},u={'id':_0x56d477(0x160),'type':_0x4b6cbe['OPERATION'],'handler':async _0x4b256c=>{const _0x2aabe6=_0x56d477,_0x1c35d5=_0x4b256c[_0x2aabe6(0x17a)](_0x57595b);return new URLSearchParams(location[_0x2aabe6(0x177)])[_0x2aabe6(0x17a)]('unit')?_0x1c35d5['exportXLSXByUnitId']():_0x1c35d5[_0x2aabe6(0x168)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x3d2213){const _0x3cba27=_0x56d477;return{'id':S,'type':_0x414897[_0x3cba27(0x181)],'icon':_0x3cba27(0x15c),'tooltip':_0x3cba27(0x17c),'hidden$':_0x2a284d(_0x3d2213,_0x139884[_0x3cba27(0x164)]),'disabled$':_0x45fb51(_0x3d2213,{'workbookTypes':[_0x2b1102]})};}function w(){const _0x236c0f=_0x56d477;return{'id':p['id'],'type':_0x414897[_0x236c0f(0x15d)],'title':_0x236c0f(0x16c),'icon':'FolderIcon'};}function D(){const _0x1d6a97=_0x56d477;return{'id':u['id'],'type':_0x414897[_0x1d6a97(0x15d)],'title':_0x1d6a97(0x161),'icon':_0x1d6a97(0x183)};}const F={[_0x4557db[_0x56d477(0x18a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x56d477(0x16f)],A=(_0x5272b7,_0x4445e4,_0x1857ba,_0x2fd5fc)=>{const _0x5d404a=_0x56d477;for(var _0x48ffac=_0x2fd5fc>0x1?void 0x0:_0x2fd5fc?G(_0x4445e4,_0x1857ba):_0x4445e4,_0x483e26=_0x5272b7[_0x5d404a(0x188)]-0x1,_0x3d0270;_0x483e26>=0x0;_0x483e26--)(_0x3d0270=_0x5272b7[_0x483e26])&&(_0x48ffac=_0x3d0270(_0x48ffac)||_0x48ffac);return _0x48ffac;},d=(_0x3e886f,_0x2ae4c7)=>(_0x45b3d2,_0x356c22)=>_0x2ae4c7(_0x45b3d2,_0x356c22,_0x3e886f);function _0x55a8(){const _0x36df4a=['registerCommand','type','69AgDJpP','exchange.upload','_initMenus','2064096YbULQO','getOwnPropertyDescriptor','_injector','131576laFdyq','2wCIEkY','3573185lURVbk','1060520qzLTgH','symbol','disposeWithMe','search','onReady','menu','get','defineProperty','exchange.file','importXLSXToSnapshot','_config','unit','_menuManagerService','SUBITEMS','mergeMenu','ExportIcon','198230uLirOo','738LqITFJ','_configService','298284cUmmvD','length','OPERATION','OTHERS','DirectExportIcon','BUTTON','add','_commandService','exchange-client.operation.export-xlsx','exchange.download','_initCommands','setConfig','UNIVER_SHEET','forEach','1877323ygJcxt','pluginName','exportXLSXBySnapshot'];_0x55a8=function(){return _0x36df4a;};return _0x55a8();}let c=class extends _0xb34bba{constructor(_0x3aa26a,_0xa5af5a){const _0x59960d=_0x56d477;super(),this['_commandService']=_0x3aa26a,this[_0x59960d(0x180)]=_0xa5af5a,this[_0x59960d(0x162)](),this['_initMenus']();}[_0x56d477(0x162)](){[p,u]['forEach'](_0x46848e=>{const _0x3e8c64=_0x45de;this[_0x3e8c64(0x176)](this[_0x3e8c64(0x15f)][_0x3e8c64(0x169)](_0x46848e));});}[_0x56d477(0x16d)](){const _0x5528d6=_0x56d477;this['_menuManagerService'][_0x5528d6(0x182)](F);}};c=A([d(0x0,_0x5707d1),d(0x1,_0x579015)],c);function _0x45de(_0x5d5a16,_0x5cd4ed){const _0x55a88c=_0x55a8();return _0x45de=function(_0x45de8f,_0x47eced){_0x45de8f=_0x45de8f-0x15c;let _0x4d906f=_0x55a88c[_0x45de8f];return _0x4d906f;},_0x45de(_0x5d5a16,_0x5cd4ed);}var j=Object[_0x56d477(0x17b)],B=Object['getOwnPropertyDescriptor'],$=(_0x17221c,_0xde09b0,_0x1fd707)=>_0xde09b0 in _0x17221c?j(_0x17221c,_0xde09b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fd707}):_0x17221c[_0xde09b0]=_0x1fd707,V=(_0x440a26,_0x540a5c,_0x55bf57,_0x18277a)=>{for(var _0x595a4c=_0x18277a>0x1?void 0x0:_0x18277a?B(_0x540a5c,_0x55bf57):_0x540a5c,_0x4a7f74=_0x440a26['length']-0x1,_0x16c325;_0x4a7f74>=0x0;_0x4a7f74--)(_0x16c325=_0x440a26[_0x4a7f74])&&(_0x595a4c=_0x16c325(_0x595a4c)||_0x595a4c);return _0x595a4c;},_=(_0x849ee0,_0x1640f9)=>(_0x30f502,_0x2113ba)=>_0x1640f9(_0x30f502,_0x2113ba,_0x849ee0),I=(_0x53916e,_0x5ef6f5,_0x451c48)=>$(_0x53916e,typeof _0x5ef6f5!=_0x56d477(0x175)?_0x5ef6f5+'':_0x5ef6f5,_0x451c48);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x5d8690{constructor(_0x2586c9=l,_0x497734,_0x2f2730){const _0x10f4b2=_0x56d477;super(),this['_config']=_0x2586c9,this[_0x10f4b2(0x170)]=_0x497734,this[_0x10f4b2(0x186)]=_0x2f2730;const {menu:_0x30458b,..._0x10980e}=_0x3a56c3({},l,this[_0x10f4b2(0x17e)]);_0x30458b&&this[_0x10f4b2(0x186)]['setConfig'](_0x10f4b2(0x179),_0x30458b,{'merge':!0x0}),this[_0x10f4b2(0x186)][_0x10f4b2(0x163)](H,_0x10980e);}['onStarting'](){const _0x6da5d6=_0x56d477;[[c]][_0x6da5d6(0x165)](_0x356c41=>this[_0x6da5d6(0x170)][_0x6da5d6(0x15e)](_0x356c41));}[_0x56d477(0x178)](){const _0x183cd1=_0x56d477;this['_injector'][_0x183cd1(0x17a)](c);}};I(s,_0x56d477(0x167),W),I(s,_0x56d477(0x16a),_0x139884[_0x56d477(0x164)]),s=V([_0xbcda0c(_0x44d42a),_(0x1,_0x64d62c(_0x1a652c)),_(0x2,_0x3f998e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56d477=_0x45de;(function(_0x1ebd16,_0x3a62ea){const _0x31c970=_0x45de,_0x2f5b88=_0x1ebd16();while(!![]){try{const _0x5daab=parseInt(_0x31c970(0x172))/0x1*(-parseInt(_0x31c970(0x174))/0x2)+-parseInt(_0x31c970(0x16b))/0x3*(parseInt(_0x31c970(0x171))/0x4)+parseInt(_0x31c970(0x173))/0x5+parseInt(_0x31c970(0x187))/0x6+-parseInt(_0x31c970(0x166))/0x7+parseInt(_0x31c970(0x16e))/0x8+parseInt(_0x31c970(0x185))/0x9*(parseInt(_0x31c970(0x184))/0xa);if(_0x5daab===_0x3a62ea)break;else _0x2f5b88['push'](_0x2f5b88['shift']());}catch(_0x2ce227){_0x2f5b88['push'](_0x2f5b88['shift']());}}}(_0x55a8,0x89592));import{IExchangeOperateService as _0x57595b,UniverExchangeClientPlugin as _0x44d42a}from'@univerjs-pro/exchange-client';import{CommandType as _0x4b6cbe,UniverInstanceType as _0x139884,Disposable as _0xb34bba,ICommandService as _0x5707d1,DependentOn as _0xbcda0c,Inject as _0x64d62c,Injector as _0x1a652c,IConfigService as _0x3f998e,Plugin as _0x5d8690,merge as _0x3a56c3}from'@univerjs/core';import{MenuItemType as _0x414897,getMenuHiddenObservable as _0x2a284d,RibbonStartGroup as _0x4557db,IMenuManagerService as _0x579015}from'@univerjs/ui';import{WorkbookExportPermission as _0x2b1102}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x45fb51}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x4b6cbe[_0x56d477(0x189)],'handler':async _0x2a9dfb=>{const _0x17008=_0x56d477,_0x4d7852=_0x2a9dfb['get'](_0x57595b);return new URLSearchParams(location['search'])[_0x17008(0x17a)](_0x17008(0x17f))?_0x4d7852['importXLSXToUnitId']():_0x4d7852[_0x17008(0x17d)](),!0x0;}},u={'id':_0x56d477(0x160),'type':_0x4b6cbe['OPERATION'],'handler':async _0x4b256c=>{const _0x2aabe6=_0x56d477,_0x1c35d5=_0x4b256c[_0x2aabe6(0x17a)](_0x57595b);return new URLSearchParams(location[_0x2aabe6(0x177)])[_0x2aabe6(0x17a)]('unit')?_0x1c35d5['exportXLSXByUnitId']():_0x1c35d5[_0x2aabe6(0x168)](),!0x0;}},H='sheets-exchange-client.config',l={},S='sheets-exchange-client.operation.exchange';function R(_0x3d2213){const _0x3cba27=_0x56d477;return{'id':S,'type':_0x414897[_0x3cba27(0x181)],'icon':_0x3cba27(0x15c),'tooltip':_0x3cba27(0x17c),'hidden$':_0x2a284d(_0x3d2213,_0x139884[_0x3cba27(0x164)]),'disabled$':_0x45fb51(_0x3d2213,{'workbookTypes':[_0x2b1102]})};}function w(){const _0x236c0f=_0x56d477;return{'id':p['id'],'type':_0x414897[_0x236c0f(0x15d)],'title':_0x236c0f(0x16c),'icon':'FolderIcon'};}function D(){const _0x1d6a97=_0x56d477;return{'id':u['id'],'type':_0x414897[_0x1d6a97(0x15d)],'title':_0x1d6a97(0x161),'icon':_0x1d6a97(0x183)};}const F={[_0x4557db[_0x56d477(0x18a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x56d477(0x16f)],A=(_0x5272b7,_0x4445e4,_0x1857ba,_0x2fd5fc)=>{const _0x5d404a=_0x56d477;for(var _0x48ffac=_0x2fd5fc>0x1?void 0x0:_0x2fd5fc?G(_0x4445e4,_0x1857ba):_0x4445e4,_0x483e26=_0x5272b7[_0x5d404a(0x188)]-0x1,_0x3d0270;_0x483e26>=0x0;_0x483e26--)(_0x3d0270=_0x5272b7[_0x483e26])&&(_0x48ffac=_0x3d0270(_0x48ffac)||_0x48ffac);return _0x48ffac;},d=(_0x3e886f,_0x2ae4c7)=>(_0x45b3d2,_0x356c22)=>_0x2ae4c7(_0x45b3d2,_0x356c22,_0x3e886f);function _0x55a8(){const _0x36df4a=['registerCommand','type','69AgDJpP','exchange.upload','_initMenus','2064096YbULQO','getOwnPropertyDescriptor','_injector','131576laFdyq','2wCIEkY','3573185lURVbk','1060520qzLTgH','symbol','disposeWithMe','search','onReady','menu','get','defineProperty','exchange.file','importXLSXToSnapshot','_config','unit','_menuManagerService','SUBITEMS','mergeMenu','ExportIcon','198230uLirOo','738LqITFJ','_configService','298284cUmmvD','length','OPERATION','OTHERS','DirectExportIcon','BUTTON','add','_commandService','exchange-client.operation.export-xlsx','exchange.download','_initCommands','setConfig','UNIVER_SHEET','forEach','1877323ygJcxt','pluginName','exportXLSXBySnapshot'];_0x55a8=function(){return _0x36df4a;};return _0x55a8();}let c=class extends _0xb34bba{constructor(_0x3aa26a,_0xa5af5a){const _0x59960d=_0x56d477;super(),this['_commandService']=_0x3aa26a,this[_0x59960d(0x180)]=_0xa5af5a,this[_0x59960d(0x162)](),this['_initMenus']();}[_0x56d477(0x162)](){[p,u]['forEach'](_0x46848e=>{const _0x3e8c64=_0x45de;this[_0x3e8c64(0x176)](this[_0x3e8c64(0x15f)][_0x3e8c64(0x169)](_0x46848e));});}[_0x56d477(0x16d)](){const _0x5528d6=_0x56d477;this['_menuManagerService'][_0x5528d6(0x182)](F);}};c=A([d(0x0,_0x5707d1),d(0x1,_0x579015)],c);function _0x45de(_0x5d5a16,_0x5cd4ed){const _0x55a88c=_0x55a8();return _0x45de=function(_0x45de8f,_0x47eced){_0x45de8f=_0x45de8f-0x15c;let _0x4d906f=_0x55a88c[_0x45de8f];return _0x4d906f;},_0x45de(_0x5d5a16,_0x5cd4ed);}var j=Object[_0x56d477(0x17b)],B=Object['getOwnPropertyDescriptor'],$=(_0x17221c,_0xde09b0,_0x1fd707)=>_0xde09b0 in _0x17221c?j(_0x17221c,_0xde09b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fd707}):_0x17221c[_0xde09b0]=_0x1fd707,V=(_0x440a26,_0x540a5c,_0x55bf57,_0x18277a)=>{for(var _0x595a4c=_0x18277a>0x1?void 0x0:_0x18277a?B(_0x540a5c,_0x55bf57):_0x540a5c,_0x4a7f74=_0x440a26['length']-0x1,_0x16c325;_0x4a7f74>=0x0;_0x4a7f74--)(_0x16c325=_0x440a26[_0x4a7f74])&&(_0x595a4c=_0x16c325(_0x595a4c)||_0x595a4c);return _0x595a4c;},_=(_0x849ee0,_0x1640f9)=>(_0x30f502,_0x2113ba)=>_0x1640f9(_0x30f502,_0x2113ba,_0x849ee0),I=(_0x53916e,_0x5ef6f5,_0x451c48)=>$(_0x53916e,typeof _0x5ef6f5!=_0x56d477(0x175)?_0x5ef6f5+'':_0x5ef6f5,_0x451c48);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x5d8690{constructor(_0x2586c9=l,_0x497734,_0x2f2730){const _0x10f4b2=_0x56d477;super(),this['_config']=_0x2586c9,this[_0x10f4b2(0x170)]=_0x497734,this[_0x10f4b2(0x186)]=_0x2f2730;const {menu:_0x30458b,..._0x10980e}=_0x3a56c3({},l,this[_0x10f4b2(0x17e)]);_0x30458b&&this[_0x10f4b2(0x186)]['setConfig'](_0x10f4b2(0x179),_0x30458b,{'merge':!0x0}),this[_0x10f4b2(0x186)][_0x10f4b2(0x163)](H,_0x10980e);}['onStarting'](){const _0x6da5d6=_0x56d477;[[c]][_0x6da5d6(0x165)](_0x356c41=>this[_0x6da5d6(0x170)][_0x6da5d6(0x15e)](_0x356c41));}[_0x56d477(0x178)](){const _0x183cd1=_0x56d477;this['_injector'][_0x183cd1(0x17a)](c);}};I(s,_0x56d477(0x167),W),I(s,_0x56d477(0x16a),_0x139884[_0x56d477(0x164)]),s=V([_0xbcda0c(_0x44d42a),_(0x1,_0x64d62c(_0x1a652c)),_(0x2,_0x3f998e)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x123e03,_0x1b72ac){const _0x2653d2=_0x4dd4,_0x94110f=_0x123e03();while(!![]){try{const _0x30b704=parseInt(_0x2653d2(0x158))/0x1*(-parseInt(_0x2653d2(0x15a))/0x2)+parseInt(_0x2653d2(0x12e))/0x3+-parseInt(_0x2653d2(0x155))/0x4*(-parseInt(_0x2653d2(0x157))/0x5)+-parseInt(_0x2653d2(0x125))/0x6+-parseInt(_0x2653d2(0x13e))/0x7*(parseInt(_0x2653d2(0x14f))/0x8)+parseInt(_0x2653d2(0x13d))/0x9+-parseInt(_0x2653d2(0x14c))/0xa*(parseInt(_0x2653d2(0x128))/0xb);if(_0x30b704===_0x1b72ac)break;else _0x94110f['push'](_0x94110f['shift']());}catch(_0x131ce4){_0x94110f['push'](_0x94110f['shift']());}}}(_0x29c9,0x33bcc),function(_0x122255,_0x4986be){const _0x5cbebc=_0x4dd4;typeof exports=='object'&&typeof module<'u'?_0x4986be(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x5cbebc(0x15b)]?define([_0x5cbebc(0x12b),_0x5cbebc(0x135),_0x5cbebc(0x140),_0x5cbebc(0x14b),_0x5cbebc(0x12d),_0x5cbebc(0x15f)],_0x4986be):(_0x122255=typeof globalThis<'u'?globalThis:_0x122255||self,_0x4986be(_0x122255[_0x5cbebc(0x143)]={},_0x122255[_0x5cbebc(0x14d)],_0x122255['UniverCore'],_0x122255[_0x5cbebc(0x153)],_0x122255['UniverSheets'],_0x122255['UniverSheetsUi']));}(this,function(_0x50bd1f,_0x376966,_0x2e4ca1,_0x1ea52c,_0x40e073,_0x2e027d){'use strict';const _0x1ef1dd=_0x4dd4;const _0x291cc1={'id':'exchange-client.operation.import-xlsx','type':_0x2e4ca1[_0x1ef1dd(0x160)][_0x1ef1dd(0x11f)],'handler':async _0x47e5b7=>{const _0x3ecb6b=_0x1ef1dd,_0x273fda=_0x47e5b7[_0x3ecb6b(0x122)](_0x376966[_0x3ecb6b(0x13b)]);return new URLSearchParams(location[_0x3ecb6b(0x15d)])[_0x3ecb6b(0x122)](_0x3ecb6b(0x148))?_0x273fda[_0x3ecb6b(0x11c)]():_0x273fda[_0x3ecb6b(0x127)](),!0x0;}},_0x662f4d={'id':_0x1ef1dd(0x144),'type':_0x2e4ca1[_0x1ef1dd(0x160)][_0x1ef1dd(0x11f)],'handler':async _0x32cc5f=>{const _0x43b3ed=_0x1ef1dd,_0x4e54ca=_0x32cc5f[_0x43b3ed(0x122)](_0x376966[_0x43b3ed(0x13b)]);return new URLSearchParams(location[_0x43b3ed(0x15d)])[_0x43b3ed(0x122)]('unit')?_0x4e54ca[_0x43b3ed(0x145)]():_0x4e54ca[_0x43b3ed(0x146)](),!0x0;}},_0x35e1ba=_0x1ef1dd(0x134),_0x6cad2f={},_0x247c43=_0x1ef1dd(0x137);function _0x18e445(_0x1b914c){const _0x54907d=_0x1ef1dd;return{'id':_0x247c43,'type':_0x1ea52c[_0x54907d(0x167)][_0x54907d(0x151)],'icon':_0x54907d(0x152),'tooltip':_0x54907d(0x141),'hidden$':_0x1ea52c['getMenuHiddenObservable'](_0x1b914c,_0x2e4ca1[_0x54907d(0x12a)][_0x54907d(0x12c)]),'disabled$':_0x2e027d['getCurrentRangeDisable$'](_0x1b914c,{'workbookTypes':[_0x40e073['WorkbookExportPermission']]})};}function _0x216e6e(){const _0x2a85dc=_0x1ef1dd;return{'id':_0x291cc1['id'],'type':_0x1ea52c[_0x2a85dc(0x167)]['BUTTON'],'title':_0x2a85dc(0x161),'icon':_0x2a85dc(0x149)};}function _0x1b648c(){const _0x27337c=_0x1ef1dd;return{'id':_0x662f4d['id'],'type':_0x1ea52c[_0x27337c(0x167)][_0x27337c(0x11e)],'title':_0x27337c(0x12f),'icon':_0x27337c(0x139)};}const _0x4a42fd={[_0x1ea52c[_0x1ef1dd(0x129)]['OTHERS']]:{[_0x247c43]:{'order':0.3,'menuItemFactory':_0x18e445,[_0x291cc1['id']]:{'order':0x0,'menuItemFactory':_0x216e6e},[_0x662f4d['id']]:{'order':0x1,'menuItemFactory':_0x1b648c}}}};var _0x2fc090=Object[_0x1ef1dd(0x162)],_0x3d5a81=(_0x58ada9,_0x241d3a,_0x52260b,_0x3aea65)=>{const _0x1acd5d=_0x1ef1dd;for(var _0x482bd7=_0x3aea65>0x1?void 0x0:_0x3aea65?_0x2fc090(_0x241d3a,_0x52260b):_0x241d3a,_0x35b089=_0x58ada9[_0x1acd5d(0x124)]-0x1,_0x555e02;_0x35b089>=0x0;_0x35b089--)(_0x555e02=_0x58ada9[_0x35b089])&&(_0x482bd7=_0x555e02(_0x482bd7)||_0x482bd7);return _0x482bd7;},_0xbb5539=(_0x56d52f,_0x48eb35)=>(_0x34058e,_0x305fda)=>_0x48eb35(_0x34058e,_0x305fda,_0x56d52f);let _0x4f2be5=class extends _0x2e4ca1[_0x1ef1dd(0x14a)]{constructor(_0x2d9272,_0x192cdd){const _0x2ebd76=_0x1ef1dd;super(),this[_0x2ebd76(0x13c)]=_0x2d9272,this[_0x2ebd76(0x13f)]=_0x192cdd,this[_0x2ebd76(0x154)](),this[_0x2ebd76(0x120)]();}[_0x1ef1dd(0x154)](){[_0x291cc1,_0x662f4d]['forEach'](_0x4f7d8a=>{const _0x4a9f61=_0x4dd4;this[_0x4a9f61(0x15c)](this[_0x4a9f61(0x13c)][_0x4a9f61(0x147)](_0x4f7d8a));});}[_0x1ef1dd(0x120)](){const _0x57aa2e=_0x1ef1dd;this[_0x57aa2e(0x13f)][_0x57aa2e(0x121)](_0x4a42fd);}};_0x4f2be5=_0x3d5a81([_0xbb5539(0x0,_0x2e4ca1['ICommandService']),_0xbb5539(0x1,_0x1ea52c[_0x1ef1dd(0x150)])],_0x4f2be5);var _0x156a15=Object[_0x1ef1dd(0x164)],_0x2a7f30=Object[_0x1ef1dd(0x162)],_0x2857b0=(_0x4c665e,_0x1efb97,_0x2c5a9a)=>_0x1efb97 in _0x4c665e?_0x156a15(_0x4c665e,_0x1efb97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5a9a}):_0x4c665e[_0x1efb97]=_0x2c5a9a,_0xfb6176=(_0x593e4d,_0x2e5c11,_0x4575e1,_0x8e3ce8)=>{const _0x417afd=_0x1ef1dd;for(var _0xba4bbf=_0x8e3ce8>0x1?void 0x0:_0x8e3ce8?_0x2a7f30(_0x2e5c11,_0x4575e1):_0x2e5c11,_0x31c4e3=_0x593e4d[_0x417afd(0x124)]-0x1,_0x18ee97;_0x31c4e3>=0x0;_0x31c4e3--)(_0x18ee97=_0x593e4d[_0x31c4e3])&&(_0xba4bbf=_0x18ee97(_0xba4bbf)||_0xba4bbf);return _0xba4bbf;},_0x1be192=(_0x3a9f0a,_0x2d6268)=>(_0x1ecab6,_0x350136)=>_0x2d6268(_0x1ecab6,_0x350136,_0x3a9f0a),_0x95db1e=(_0x578066,_0x391825,_0x24ca80)=>_0x2857b0(_0x578066,typeof _0x391825!='symbol'?_0x391825+'':_0x391825,_0x24ca80);const _0xf7de78=_0x1ef1dd(0x15e);_0x50bd1f['UniverSheetsExchangeClientPlugin']=class extends _0x2e4ca1['Plugin']{constructor(_0x6c08e6=_0x6cad2f,_0x4645b2,_0x54c840){const _0x1a94be=_0x1ef1dd;super(),this[_0x1a94be(0x138)]=_0x6c08e6,this[_0x1a94be(0x136)]=_0x4645b2,this[_0x1a94be(0x168)]=_0x54c840;const {menu:_0xd29c44,..._0x37105f}=_0x2e4ca1[_0x1a94be(0x142)]({},_0x6cad2f,this[_0x1a94be(0x138)]);_0xd29c44&&this[_0x1a94be(0x168)][_0x1a94be(0x156)](_0x1a94be(0x169),_0xd29c44,{'merge':!0x0}),this['_configService'][_0x1a94be(0x156)](_0x35e1ba,_0x37105f);}[_0x1ef1dd(0x131)](){const _0x5c6b95=_0x1ef1dd;[[_0x4f2be5]][_0x5c6b95(0x133)](_0x17d590=>this[_0x5c6b95(0x136)][_0x5c6b95(0x166)](_0x17d590));}[_0x1ef1dd(0x130)](){const _0x51e41a=_0x1ef1dd;this[_0x51e41a(0x136)][_0x51e41a(0x122)](_0x4f2be5);}},_0x95db1e(_0x50bd1f[_0x1ef1dd(0x13a)],_0x1ef1dd(0x123),_0xf7de78),_0x95db1e(_0x50bd1f[_0x1ef1dd(0x13a)],_0x1ef1dd(0x11d),_0x2e4ca1[_0x1ef1dd(0x12a)][_0x1ef1dd(0x12c)]),_0x50bd1f['UniverSheetsExchangeClientPlugin']=_0xfb6176([_0x2e4ca1[_0x1ef1dd(0x14e)](_0x376966[_0x1ef1dd(0x132)]),_0x1be192(0x1,_0x2e4ca1['Inject'](_0x2e4ca1[_0x1ef1dd(0x163)])),_0x1be192(0x2,_0x2e4ca1[_0x1ef1dd(0x159)])],_0x50bd1f['UniverSheetsExchangeClientPlugin']),_0x50bd1f[_0x1ef1dd(0x126)]=_0x662f4d,_0x50bd1f[_0x1ef1dd(0x165)]=_0x291cc1,Object[_0x1ef1dd(0x164)](_0x50bd1f,Symbol['toStringTag'],{'value':'Module'});}));function _0x4dd4(_0x13ec95,_0x59b886){const _0x29c96e=_0x29c9();return _0x4dd4=function(_0x4dd478,_0x428c55){_0x4dd478=_0x4dd478-0x11c;let _0x21bad9=_0x29c96e[_0x4dd478];return _0x21bad9;},_0x4dd4(_0x13ec95,_0x59b886);}function _0x29c9(){const _0x5c05aa=['UniverInstanceType','exports','UNIVER_SHEET','@univerjs/sheets','826848NyxOIV','exchange.download','onReady','onStarting','UniverExchangeClientPlugin','forEach','sheets-exchange-client.config','@univerjs-pro/exchange-client','_injector','sheets-exchange-client.operation.exchange','_config','ExportIcon','UniverSheetsExchangeClientPlugin','IExchangeOperateService','_commandService','2238651jlanAq','7QzHPfv','_menuManagerService','@univerjs/core','exchange.file','merge','UniverProSheetsExchangeClient','exchange-client.operation.export-xlsx','exportXLSXByUnitId','exportXLSXBySnapshot','registerCommand','unit','FolderIcon','Disposable','@univerjs/ui','578810FTyRrc','UniverProExchangeClient','DependentOn','2779888ghXRUa','IMenuManagerService','SUBITEMS','DirectExportIcon','UniverUi','_initCommands','8516gdFRSu','setConfig','870VzbVfI','26266WvHHvX','IConfigService','14fdbAld','amd','disposeWithMe','search','SHEET_EXCHANGE_CLIENT_PLUGIN','@univerjs/sheets-ui','CommandType','exchange.upload','getOwnPropertyDescriptor','Injector','defineProperty','ImportXLSXOperation','add','MenuItemType','_configService','menu','importXLSXToUnitId','type','BUTTON','OPERATION','_initMenus','mergeMenu','get','pluginName','length','214650nLsqha','ExportXLSXOperation','importXLSXToSnapshot','22ONGsbM','RibbonStartGroup'];_0x29c9=function(){return _0x5c05aa;};return _0x29c9();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.10.
|
|
46
|
-
"@univerjs/core": "0.10.
|
|
47
|
-
"@univerjs/sheets": "0.10.
|
|
48
|
-
"@univerjs/ui": "0.10.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.12",
|
|
46
|
+
"@univerjs/core": "0.10.12",
|
|
47
|
+
"@univerjs/sheets": "0.10.12",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.12",
|
|
49
|
+
"@univerjs/ui": "0.10.12"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.1.10",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.12"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|