@univerjs-pro/sheets-exchange-client 0.2.15 → 0.3.0-alpha.1
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 _0x5bdbad=_0x1a0d;(function(_0xd287f8,_0x5c823d){const _0x4d50cd=_0x1a0d,_0x1ee77a=_0xd287f8();while(!![]){try{const _0x56b7a3=-parseInt(_0x4d50cd(0xd8))/0x1+-parseInt(_0x4d50cd(0xd3))/0x2+parseInt(_0x4d50cd(0xd9))/0x3+parseInt(_0x4d50cd(0xba))/0x4*(-parseInt(_0x4d50cd(0xf5))/0x5)+parseInt(_0x4d50cd(0xe2))/0x6+parseInt(_0x4d50cd(0xca))/0x7*(-parseInt(_0x4d50cd(0xf3))/0x8)+parseInt(_0x4d50cd(0xb6))/0x9*(parseInt(_0x4d50cd(0xe8))/0xa);if(_0x56b7a3===_0x5c823d)break;else _0x1ee77a['push'](_0x1ee77a['shift']());}catch(_0x27f7f2){_0x1ee77a['push'](_0x1ee77a['shift']());}}}(_0x4ac0,0x4466b));Object[_0x5bdbad(0xbb)](exports,Symbol['toStringTag'],{'value':_0x5bdbad(0xd0)});const o=require(_0x5bdbad(0xe0)),g=require('@univerjs-pro/exchange-client'),s=require(_0x5bdbad(0xea)),E=require(_0x5bdbad(0xcf)),v=require(_0x5bdbad(0xc9)),u={'id':_0x5bdbad(0xc5),'type':o[_0x5bdbad(0xeb)][_0x5bdbad(0xf2)],'handler':async _0x4abb96=>(_0x4abb96[_0x5bdbad(0xbd)](g[_0x5bdbad(0xcb)])['importXLSXToUnitId'](),!0x0)},p={'id':'exchange-client.operation.export-xlsx','type':o[_0x5bdbad(0xeb)][_0x5bdbad(0xf2)],'handler':async _0x3beee2=>(_0x3beee2[_0x5bdbad(0xbd)](g[_0x5bdbad(0xcb)])['exportXLSXByUnitId'](),!0x0)},m=_0x5bdbad(0xed);function I(_0x14d200){const _0x18d037=_0x5bdbad;return{'id':m,'type':s[_0x18d037(0xd4)][_0x18d037(0xd1)],'icon':_0x18d037(0xb7),'tooltip':_0x18d037(0xc3),'hidden$':s[_0x18d037(0xb8)](_0x14d200,o[_0x18d037(0xdc)]['UNIVER_SHEET']),'disabled$':E[_0x18d037(0xda)](_0x14d200,{'workbookTypes':[v[_0x18d037(0xe6)]]})};}function _0x1a0d(_0x3fb7aa,_0x2726c3){const _0x4ac075=_0x4ac0();return _0x1a0d=function(_0x1a0d4b,_0x480447){_0x1a0d4b=_0x1a0d4b-0xb3;let _0x1985c1=_0x4ac075[_0x1a0d4b];return _0x1985c1;},_0x1a0d(_0x3fb7aa,_0x2726c3);}function f(){const _0x5164ac=_0x5bdbad;return{'id':u['id'],'type':s[_0x5164ac(0xd4)][_0x5164ac(0xb4)],'title':_0x5164ac(0xc1),'icon':_0x5164ac(0xef)};}function x(){const _0x1f46ac=_0x5bdbad;return{'id':p['id'],'type':s[_0x1f46ac(0xd4)][_0x1f46ac(0xb4)],'title':_0x1f46ac(0xee),'icon':_0x1f46ac(0xcc)};}function _0x4ac0(){const _0x1bb2ee=['@univerjs/sheets','7AYWhca','IExchangeOperateService','ExportSingle','ImportXLSXOperation','forEach','@univerjs/sheets-ui','Module','SUBITEMS','_configService','254620SeMJMs','MenuItemType','_injector','Injector','ExportXLSXOperation','151508aQjpLO','1370493UyJRWF','getCurrentRangeDisable$','UNIVER_SHEET','UniverInstanceType','FILE','setConfig','Disposable','@univerjs/core','ICommandService','1622688AWhMXn','SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.config','disposeWithMe','WorkbookExportPermission','IConfigService','10cwhhKA','symbol','@univerjs/ui','CommandType','_menuManagerService','sheets-exchange-client.operation.exchange','exchange.download','FolderSingle','RibbonStartGroup','UniverSheetsExchangeClientPlugin','OPERATION','1473616ZTudJs','OnLifecycle','2556635cTXKzc','length','BUTTON','type','4745151dGNTDX','DirectExportSingle','getMenuHiddenObservable','_initMenus','4qCvMvj','defineProperty','initialize','get','_commandService','IMenuManagerService','_config','exchange.upload','Inject','exchange.file','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','_initCommands','LifecycleStages','DependentOn'];_0x4ac0=function(){return _0x1bb2ee;};return _0x4ac0();}const C={[s[_0x5bdbad(0xf0)][_0x5bdbad(0xdd)]]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x5bdbad(0xbb)],P=Object['getOwnPropertyDescriptor'],O=(_0x17c768,_0x3b60c1,_0x4b7e3c,_0x2d0b6f)=>{const _0x27fc03=_0x5bdbad;for(var _0x5a543e=_0x2d0b6f>0x1?void 0x0:_0x2d0b6f?P(_0x3b60c1,_0x4b7e3c):_0x3b60c1,_0x363ce6=_0x17c768[_0x27fc03(0xb3)]-0x1,_0x18b267;_0x363ce6>=0x0;_0x363ce6--)(_0x18b267=_0x17c768[_0x363ce6])&&(_0x5a543e=(_0x2d0b6f?_0x18b267(_0x3b60c1,_0x4b7e3c,_0x5a543e):_0x18b267(_0x5a543e))||_0x5a543e);return _0x2d0b6f&&_0x5a543e&&y(_0x3b60c1,_0x4b7e3c,_0x5a543e),_0x5a543e;},h=(_0x4b129b,_0x339a01)=>(_0x2381c0,_0x319367)=>_0x339a01(_0x2381c0,_0x319367,_0x4b129b);let l=class extends o[_0x5bdbad(0xdf)]{constructor(_0x58525f,_0x3597cc){const _0xa3052c=_0x5bdbad;super(),this[_0xa3052c(0xbe)]=_0x58525f,this[_0xa3052c(0xec)]=_0x3597cc,this[_0xa3052c(0xc6)](),this['_initMenus']();}['_initCommands'](){const _0x381ffe=_0x5bdbad;[u,p][_0x381ffe(0xce)](_0x14d304=>{const _0x4aa337=_0x381ffe;this[_0x4aa337(0xe5)](this['_commandService']['registerCommand'](_0x14d304));});}[_0x5bdbad(0xb9)](){this['_menuManagerService']['mergeMenu'](C);}};l=O([o[_0x5bdbad(0xf4)](o[_0x5bdbad(0xc7)]['Ready'],l),h(0x0,o[_0x5bdbad(0xe1)]),h(0x1,s[_0x5bdbad(0xbf)])],l);const T=_0x5bdbad(0xe4),U={};var S=Object[_0x5bdbad(0xbb)],X=Object[_0x5bdbad(0xc4)],b=(_0x56899e,_0x38a1b8,_0x6ee9de)=>_0x38a1b8 in _0x56899e?S(_0x56899e,_0x38a1b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6ee9de}):_0x56899e[_0x38a1b8]=_0x6ee9de,N=(_0x134f77,_0x34ce48,_0x5d4ed8,_0x1b4d85)=>{const _0x299356=_0x5bdbad;for(var _0x1efa03=_0x1b4d85>0x1?void 0x0:_0x1b4d85?X(_0x34ce48,_0x5d4ed8):_0x34ce48,_0x497fb6=_0x134f77[_0x299356(0xb3)]-0x1,_0x55eac9;_0x497fb6>=0x0;_0x497fb6--)(_0x55eac9=_0x134f77[_0x497fb6])&&(_0x1efa03=(_0x1b4d85?_0x55eac9(_0x34ce48,_0x5d4ed8,_0x1efa03):_0x55eac9(_0x1efa03))||_0x1efa03);return _0x1b4d85&&_0x1efa03&&S(_0x34ce48,_0x5d4ed8,_0x1efa03),_0x1efa03;},d=(_0x48b947,_0x379274)=>(_0x53a59f,_0x481d2a)=>_0x379274(_0x53a59f,_0x481d2a,_0x48b947),_=(_0x343bcb,_0x33bfbe,_0x22d433)=>b(_0x343bcb,typeof _0x33bfbe!=_0x5bdbad(0xe9)?_0x33bfbe+'':_0x33bfbe,_0x22d433);const M=_0x5bdbad(0xe3);exports[_0x5bdbad(0xf1)]=class extends o['Plugin']{constructor(_0x34143d=U,_0x22cd66,_0x3b16e5){const _0x220d66=_0x5bdbad;super(),this[_0x220d66(0xc0)]=_0x34143d,this[_0x220d66(0xd5)]=_0x22cd66,this[_0x220d66(0xd2)]=_0x3b16e5;const {menu:_0x510aef,..._0x473b0a}=this['_config'];_0x510aef&&this[_0x220d66(0xd2)][_0x220d66(0xde)]('menu',_0x510aef,{'merge':!0x0}),this['_configService'][_0x220d66(0xde)](T,_0x473b0a);}[_0x5bdbad(0xbc)](){const _0x528d83=_0x5bdbad;[[l]][_0x528d83(0xce)](_0x11173f=>this[_0x528d83(0xd5)]['add'](_0x11173f));}['onReady'](){const _0x288e9c=_0x5bdbad;this[_0x288e9c(0xbc)]();}},_(exports['UniverSheetsExchangeClientPlugin'],'pluginName',M),_(exports[_0x5bdbad(0xf1)],_0x5bdbad(0xb5),o['UniverInstanceType'][_0x5bdbad(0xdb)]),exports[_0x5bdbad(0xf1)]=N([o[_0x5bdbad(0xc8)](g['UniverExchangeClientPlugin']),d(0x1,o[_0x5bdbad(0xc2)](o[_0x5bdbad(0xd6)])),d(0x2,o[_0x5bdbad(0xe7)])],exports[_0x5bdbad(0xf1)]),exports[_0x5bdbad(0xd7)]=p,exports[_0x5bdbad(0xcd)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xd3b09=_0x60c7;(function(_0x98c702,_0x5242ce){const _0x19edad=_0x60c7,_0x1f5866=_0x98c702();while(!![]){try{const _0x4919d9=parseInt(_0x19edad(0xd2))/0x1*(-parseInt(_0x19edad(0xd3))/0x2)+-parseInt(_0x19edad(0xc8))/0x3+parseInt(_0x19edad(0xb6))/0x4*(parseInt(_0x19edad(0xb5))/0x5)+-parseInt(_0x19edad(0xc7))/0x6+parseInt(_0x19edad(0xd9))/0x7+-parseInt(_0x19edad(0xb8))/0x8+parseInt(_0x19edad(0xc9))/0x9*(parseInt(_0x19edad(0xc2))/0xa);if(_0x4919d9===_0x5242ce)break;else _0x1f5866['push'](_0x1f5866['shift']());}catch(_0x788521){_0x1f5866['push'](_0x1f5866['shift']());}}}(_0x5c58,0x1e41f));function _0x5c58(){const _0x2fd207=['exportXLSXByUnitId','40Dqpklb','sheets-exchange-client.operation.exchange','_commandService','sheets-exchange-client.config','pluginName','1250610QtbBAt','264369eMxYzP','403371VSTJfh','FILE','onReady','length','importXLSXToUnitId','defineProperty','registerCommand','Ready','SHEET_EXCHANGE_CLIENT_PLUGIN','661eVnMlz','362gxZvjt','symbol','getOwnPropertyDescriptor','add','_menuManagerService','_initMenus','1003905tcMwkY','initialize','setConfig','FolderSingle','_injector','_initCommands','_config','UNIVER_SHEET','exchange-client.operation.export-xlsx','1113790RpvKWJ','4CYLtqs','OPERATION','42520rflMRP','DirectExportSingle','get','SUBITEMS','BUTTON','mergeMenu','forEach','_configService','exchange.upload'];_0x5c58=function(){return _0x2fd207;};return _0x5c58();}import{CommandType as _0x50a336,UniverInstanceType as _0x3e601f,OnLifecycle as _0x5ae621,LifecycleStages as _0x51a863,Disposable as _0x111362,ICommandService as _0x39e2bd,DependentOn as _0x5532b1,Inject as _0x3c59f1,Injector as _0x26c4ee,Plugin as _0x35590f,IConfigService as _0x4fe64d}from'@univerjs/core';import{IExchangeOperateService as _0x41e717,UniverExchangeClientPlugin as _0x16f9d8}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x1b10ef,getMenuHiddenObservable as _0x741eba,RibbonStartGroup as _0x585cd1,IMenuManagerService as _0x3cd96e}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x1172ec}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x16aec5}from'@univerjs/sheets';const l={'id':'exchange-client.operation.import-xlsx','type':_0x50a336['OPERATION'],'handler':async _0x5afee9=>(_0x5afee9[_0xd3b09(0xba)](_0x41e717)[_0xd3b09(0xcd)](),!0x0)},m={'id':_0xd3b09(0xb4),'type':_0x50a336[_0xd3b09(0xb7)],'handler':async _0x4696ba=>(_0x4696ba[_0xd3b09(0xba)](_0x41e717)[_0xd3b09(0xc1)](),!0x0)},f=_0xd3b09(0xc3);function D(_0x18b575){const _0x52022d=_0xd3b09;return{'id':f,'type':_0x1b10ef[_0x52022d(0xbb)],'icon':_0x52022d(0xb9),'tooltip':'exchange.file','hidden$':_0x741eba(_0x18b575,_0x3e601f[_0x52022d(0xb3)]),'disabled$':_0x1172ec(_0x18b575,{'workbookTypes':[_0x16aec5]})};}function H(){const _0x54a39b=_0xd3b09;return{'id':l['id'],'type':_0x1b10ef[_0x54a39b(0xbc)],'title':_0x54a39b(0xc0),'icon':_0x54a39b(0xaf)};}function _0x60c7(_0x30394e,_0x991b98){const _0x5c58d4=_0x5c58();return _0x60c7=function(_0x60c702,_0x1cba91){_0x60c702=_0x60c702-0xad;let _0x1b4131=_0x5c58d4[_0x60c702];return _0x1b4131;},_0x60c7(_0x30394e,_0x991b98);}function R(){const _0x4d0a47=_0xd3b09;return{'id':m['id'],'type':_0x1b10ef[_0x4d0a47(0xbc)],'title':'exchange.download','icon':'ExportSingle'};}const G={[_0x585cd1[_0xd3b09(0xca)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object[_0xd3b09(0xce)],$=Object[_0xd3b09(0xd5)],j=(_0x5954a6,_0x527226,_0x173a71,_0x528703)=>{const _0x311e0e=_0xd3b09;for(var _0x202f82=_0x528703>0x1?void 0x0:_0x528703?$(_0x527226,_0x173a71):_0x527226,_0x309cf3=_0x5954a6[_0x311e0e(0xcc)]-0x1,_0x1f6c69;_0x309cf3>=0x0;_0x309cf3--)(_0x1f6c69=_0x5954a6[_0x309cf3])&&(_0x202f82=(_0x528703?_0x1f6c69(_0x527226,_0x173a71,_0x202f82):_0x1f6c69(_0x202f82))||_0x202f82);return _0x528703&&_0x202f82&&w(_0x527226,_0x173a71,_0x202f82),_0x202f82;},u=(_0x500297,_0x2e34c5)=>(_0xa9de77,_0x190a8c)=>_0x2e34c5(_0xa9de77,_0x190a8c,_0x500297);let a=class extends _0x111362{constructor(_0x120f40,_0x21feef){const _0x4838b4=_0xd3b09;super(),this[_0x4838b4(0xc4)]=_0x120f40,this[_0x4838b4(0xd7)]=_0x21feef,this[_0x4838b4(0xb1)](),this[_0x4838b4(0xd8)]();}[_0xd3b09(0xb1)](){const _0x3c5878=_0xd3b09;[l,m][_0x3c5878(0xbe)](_0x525048=>{const _0x34ea82=_0x3c5878;this['disposeWithMe'](this[_0x34ea82(0xc4)][_0x34ea82(0xcf)](_0x525048));});}['_initMenus'](){const _0x30bfd7=_0xd3b09;this[_0x30bfd7(0xd7)][_0x30bfd7(0xbd)](G);}};a=j([_0x5ae621(_0x51a863[_0xd3b09(0xd0)],a),u(0x0,_0x39e2bd),u(0x1,_0x3cd96e)],a);const A=_0xd3b09(0xc5),B={};var E=Object[_0xd3b09(0xce)],z=Object['getOwnPropertyDescriptor'],V=(_0x4495b4,_0x3259d9,_0x287df1)=>_0x3259d9 in _0x4495b4?E(_0x4495b4,_0x3259d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287df1}):_0x4495b4[_0x3259d9]=_0x287df1,W=(_0x448943,_0x339ceb,_0xffe7da,_0x4c7292)=>{const _0x39ab49=_0xd3b09;for(var _0x166523=_0x4c7292>0x1?void 0x0:_0x4c7292?z(_0x339ceb,_0xffe7da):_0x339ceb,_0xca647=_0x448943[_0x39ab49(0xcc)]-0x1,_0x4681fd;_0xca647>=0x0;_0xca647--)(_0x4681fd=_0x448943[_0xca647])&&(_0x166523=(_0x4c7292?_0x4681fd(_0x339ceb,_0xffe7da,_0x166523):_0x4681fd(_0x166523))||_0x166523);return _0x4c7292&&_0x166523&&E(_0x339ceb,_0xffe7da,_0x166523),_0x166523;},d=(_0x2588ef,_0x2d3ffb)=>(_0x2e551f,_0x5ac545)=>_0x2d3ffb(_0x2e551f,_0x5ac545,_0x2588ef),S=(_0x4e9641,_0x2fc32d,_0x950065)=>V(_0x4e9641,typeof _0x2fc32d!=_0xd3b09(0xd4)?_0x2fc32d+'':_0x2fc32d,_0x950065);const K=_0xd3b09(0xd1);let s=class extends _0x35590f{constructor(_0x23df29=B,_0x32ad3,_0x4dc6aa){const _0x51b77f=_0xd3b09;super(),this[_0x51b77f(0xb2)]=_0x23df29,this['_injector']=_0x32ad3,this['_configService']=_0x4dc6aa;const {menu:_0x58731d,..._0x4eb202}=this[_0x51b77f(0xb2)];_0x58731d&&this[_0x51b77f(0xbf)][_0x51b77f(0xae)]('menu',_0x58731d,{'merge':!0x0}),this[_0x51b77f(0xbf)][_0x51b77f(0xae)](A,_0x4eb202);}[_0xd3b09(0xad)](){const _0x94b66a=_0xd3b09;[[a]][_0x94b66a(0xbe)](_0x37c513=>this[_0x94b66a(0xb0)][_0x94b66a(0xd6)](_0x37c513));}[_0xd3b09(0xcb)](){const _0x1624d6=_0xd3b09;this[_0x1624d6(0xad)]();}};S(s,_0xd3b09(0xc6),K),S(s,'type',_0x3e601f['UNIVER_SHEET']),s=W([_0x5532b1(_0x16f9d8),d(0x1,_0x3c59f1(_0x26c4ee)),d(0x2,_0x4fe64d)],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
|
-
function
|
|
1
|
+
function _0x4b97(){const _0x16dfb7=['32dbPFbG','84FCJzBy','UniverSheetsExchangeClientPlugin','Ready','getCurrentRangeDisable$','WorkbookExportPermission','CommandType','477840sSPLOp','IConfigService','281699biQhlW','Module','OPERATION','IMenuManagerService','_injector','registerCommand','154JaNswN','function','get','exportXLSXByUnitId','UniverSheets','defineProperty','exchange-client.operation.import-xlsx','IExchangeOperateService','ICommandService','sheets-exchange-client.operation.exchange','@univerjs/core','6274ZRHmjr','UniverInstanceType','UniverSheetsExchangeClient','UniverCore','BUTTON','exchange.upload','sheets-exchange-client.config','144858AolWUf','UniverExchangeClient','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange.download','Inject','Injector','_config','DirectExportSingle','FILE','@univerjs-pro/exchange-client','@univerjs/ui','_commandService','add','forEach','pluginName','_initMenus','onReady','exchange-client.operation.export-xlsx','110hvSKyg','initialize','exchange.file','OnLifecycle','_initCommands','Plugin','disposeWithMe','setConfig','UNIVER_SHEET','FolderSingle','_configService','_menuManagerService','getOwnPropertyDescriptor','RibbonStartGroup','MenuItemType','@univerjs/sheets','object','type','DependentOn','LifecycleStages','29952xSJhxE','Disposable','23391GEDrXG','74232mxnnxy','@univerjs/sheets-ui','ExportSingle'];_0x4b97=function(){return _0x16dfb7;};return _0x4b97();}function _0x3a37(_0x37ae3f,_0x2fc3e0){const _0x4b9753=_0x4b97();return _0x3a37=function(_0x3a3766,_0x1d334e){_0x3a3766=_0x3a3766-0x160;let _0x2cba2a=_0x4b9753[_0x3a3766];return _0x2cba2a;},_0x3a37(_0x37ae3f,_0x2fc3e0);}(function(_0x4bd6b1,_0x1fc2a8){const _0xa97a2a=_0x3a37,_0x2ce1c6=_0x4bd6b1();while(!![]){try{const _0x4a3d49=-parseInt(_0xa97a2a(0x19b))/0x1*(-parseInt(_0xa97a2a(0x167))/0x2)+-parseInt(_0xa97a2a(0x194))/0x3*(-parseInt(_0xa97a2a(0x19a))/0x4)+parseInt(_0xa97a2a(0x1a1))/0x5+parseInt(_0xa97a2a(0x16e))/0x6+parseInt(_0xa97a2a(0x1a9))/0x7*(-parseInt(_0xa97a2a(0x197))/0x8)+parseInt(_0xa97a2a(0x196))/0x9*(-parseInt(_0xa97a2a(0x180))/0xa)+-parseInt(_0xa97a2a(0x1a3))/0xb;if(_0x4a3d49===_0x1fc2a8)break;else _0x2ce1c6['push'](_0x2ce1c6['shift']());}catch(_0x16a1df){_0x2ce1c6['push'](_0x2ce1c6['shift']());}}}(_0x4b97,0x31fd3),function(_0x53c01d,_0x40a82e){const _0x42323e=_0x3a37;typeof exports==_0x42323e(0x190)&&typeof module<'u'?_0x40a82e(exports,require('@univerjs/core'),require(_0x42323e(0x177)),require('@univerjs/ui'),require('@univerjs/sheets-ui'),require(_0x42323e(0x18f))):typeof define==_0x42323e(0x1aa)&&define['amd']?define(['exports',_0x42323e(0x166),_0x42323e(0x177),_0x42323e(0x178),_0x42323e(0x198),_0x42323e(0x18f)],_0x40a82e):(_0x53c01d=typeof globalThis<'u'?globalThis:_0x53c01d||self,_0x40a82e(_0x53c01d[_0x42323e(0x169)]={},_0x53c01d[_0x42323e(0x16a)],_0x53c01d[_0x42323e(0x16f)],_0x53c01d['UniverUi'],_0x53c01d['UniverSheetsUi'],_0x53c01d[_0x42323e(0x160)]));}(this,function(_0x31a99c,_0x182659,_0x58d6cd,_0xf1b520,_0x4b9879,_0x54b683){'use strict';const _0x59cf2c=_0x3a37;const _0x1badbe={'id':_0x59cf2c(0x162),'type':_0x182659[_0x59cf2c(0x1a0)][_0x59cf2c(0x1a5)],'handler':async _0x2dd8b8=>(_0x2dd8b8['get'](_0x58d6cd[_0x59cf2c(0x163)])['importXLSXToUnitId'](),!0x0)},_0x5df98a={'id':_0x59cf2c(0x17f),'type':_0x182659[_0x59cf2c(0x1a0)]['OPERATION'],'handler':async _0x13e9f7=>(_0x13e9f7[_0x59cf2c(0x1ab)](_0x58d6cd[_0x59cf2c(0x163)])[_0x59cf2c(0x1ac)](),!0x0)},_0x38ada7=_0x59cf2c(0x165);function _0x8c7b6c(_0x26cdc2){const _0x3aeadb=_0x59cf2c;return{'id':_0x38ada7,'type':_0xf1b520[_0x3aeadb(0x18e)]['SUBITEMS'],'icon':_0x3aeadb(0x175),'tooltip':_0x3aeadb(0x182),'hidden$':_0xf1b520['getMenuHiddenObservable'](_0x26cdc2,_0x182659[_0x3aeadb(0x168)]['UNIVER_SHEET']),'disabled$':_0x4b9879[_0x3aeadb(0x19e)](_0x26cdc2,{'workbookTypes':[_0x54b683[_0x3aeadb(0x19f)]]})};}function _0x20b022(){const _0x174c91=_0x59cf2c;return{'id':_0x1badbe['id'],'type':_0xf1b520[_0x174c91(0x18e)][_0x174c91(0x16b)],'title':_0x174c91(0x16c),'icon':_0x174c91(0x189)};}function _0x2a609b(){const _0x450351=_0x59cf2c;return{'id':_0x5df98a['id'],'type':_0xf1b520['MenuItemType'][_0x450351(0x16b)],'title':_0x450351(0x171),'icon':_0x450351(0x199)};}const _0x5373d7={[_0xf1b520[_0x59cf2c(0x18d)][_0x59cf2c(0x176)]]:{[_0x38ada7]:{'order':0x4,'menuItemFactory':_0x8c7b6c,[_0x1badbe['id']]:{'order':0x0,'menuItemFactory':_0x20b022},[_0x5df98a['id']]:{'order':0x1,'menuItemFactory':_0x2a609b}}}};var _0x2b425a=Object['defineProperty'],_0x47bfb9=Object[_0x59cf2c(0x18c)],_0x3768e2=(_0x5b0f78,_0x3c9fd2,_0x1e71b2,_0x297842)=>{for(var _0x31a326=_0x297842>0x1?void 0x0:_0x297842?_0x47bfb9(_0x3c9fd2,_0x1e71b2):_0x3c9fd2,_0x3a4090=_0x5b0f78['length']-0x1,_0x4bc42c;_0x3a4090>=0x0;_0x3a4090--)(_0x4bc42c=_0x5b0f78[_0x3a4090])&&(_0x31a326=(_0x297842?_0x4bc42c(_0x3c9fd2,_0x1e71b2,_0x31a326):_0x4bc42c(_0x31a326))||_0x31a326);return _0x297842&&_0x31a326&&_0x2b425a(_0x3c9fd2,_0x1e71b2,_0x31a326),_0x31a326;},_0x4f4c1d=(_0x28a173,_0x15aba9)=>(_0x24d180,_0x649b2f)=>_0x15aba9(_0x24d180,_0x649b2f,_0x28a173);let _0x5a6ad0=class extends _0x182659[_0x59cf2c(0x195)]{constructor(_0x550254,_0x2c9746){const _0x1289e6=_0x59cf2c;super(),this['_commandService']=_0x550254,this[_0x1289e6(0x18b)]=_0x2c9746,this[_0x1289e6(0x184)](),this[_0x1289e6(0x17d)]();}[_0x59cf2c(0x184)](){const _0x4b278d=_0x59cf2c;[_0x1badbe,_0x5df98a][_0x4b278d(0x17b)](_0x4fafd3=>{const _0x2e3903=_0x4b278d;this[_0x2e3903(0x186)](this[_0x2e3903(0x179)][_0x2e3903(0x1a8)](_0x4fafd3));});}[_0x59cf2c(0x17d)](){const _0x425db3=_0x59cf2c;this[_0x425db3(0x18b)]['mergeMenu'](_0x5373d7);}};_0x5a6ad0=_0x3768e2([_0x182659[_0x59cf2c(0x183)](_0x182659[_0x59cf2c(0x193)][_0x59cf2c(0x19d)],_0x5a6ad0),_0x4f4c1d(0x0,_0x182659[_0x59cf2c(0x164)]),_0x4f4c1d(0x1,_0xf1b520[_0x59cf2c(0x1a6)])],_0x5a6ad0);const _0x50e1d1=_0x59cf2c(0x16d),_0x276e90={};var _0x3bd675=Object[_0x59cf2c(0x161)],_0xc5d19e=Object[_0x59cf2c(0x18c)],_0x40b393=(_0x273035,_0x5b5458,_0x5e5383)=>_0x5b5458 in _0x273035?_0x3bd675(_0x273035,_0x5b5458,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e5383}):_0x273035[_0x5b5458]=_0x5e5383,_0x418ea5=(_0x459e58,_0x130876,_0x5b7763,_0x4c1c78)=>{for(var _0x5f2c69=_0x4c1c78>0x1?void 0x0:_0x4c1c78?_0xc5d19e(_0x130876,_0x5b7763):_0x130876,_0x4db968=_0x459e58['length']-0x1,_0x15078f;_0x4db968>=0x0;_0x4db968--)(_0x15078f=_0x459e58[_0x4db968])&&(_0x5f2c69=(_0x4c1c78?_0x15078f(_0x130876,_0x5b7763,_0x5f2c69):_0x15078f(_0x5f2c69))||_0x5f2c69);return _0x4c1c78&&_0x5f2c69&&_0x3bd675(_0x130876,_0x5b7763,_0x5f2c69),_0x5f2c69;},_0x28cf68=(_0x1763cc,_0x57cc96)=>(_0x434092,_0x403232)=>_0x57cc96(_0x434092,_0x403232,_0x1763cc),_0x562f11=(_0x26e7e9,_0x5bbfab,_0x5ae32b)=>_0x40b393(_0x26e7e9,typeof _0x5bbfab!='symbol'?_0x5bbfab+'':_0x5bbfab,_0x5ae32b);const _0x56ad27=_0x59cf2c(0x170);_0x31a99c[_0x59cf2c(0x19c)]=class extends _0x182659[_0x59cf2c(0x185)]{constructor(_0x3e62de=_0x276e90,_0x61729d,_0x54c1dd){const _0xc6305=_0x59cf2c;super(),this['_config']=_0x3e62de,this[_0xc6305(0x1a7)]=_0x61729d,this[_0xc6305(0x18a)]=_0x54c1dd;const {menu:_0x2044a2,..._0x4c0243}=this[_0xc6305(0x174)];_0x2044a2&&this[_0xc6305(0x18a)][_0xc6305(0x187)]('menu',_0x2044a2,{'merge':!0x0}),this[_0xc6305(0x18a)][_0xc6305(0x187)](_0x50e1d1,_0x4c0243);}[_0x59cf2c(0x181)](){const _0x538971=_0x59cf2c;[[_0x5a6ad0]][_0x538971(0x17b)](_0xbc533a=>this[_0x538971(0x1a7)][_0x538971(0x17a)](_0xbc533a));}[_0x59cf2c(0x17e)](){this['initialize']();}},_0x562f11(_0x31a99c['UniverSheetsExchangeClientPlugin'],_0x59cf2c(0x17c),_0x56ad27),_0x562f11(_0x31a99c['UniverSheetsExchangeClientPlugin'],_0x59cf2c(0x191),_0x182659['UniverInstanceType'][_0x59cf2c(0x188)]),_0x31a99c[_0x59cf2c(0x19c)]=_0x418ea5([_0x182659[_0x59cf2c(0x192)](_0x58d6cd['UniverExchangeClientPlugin']),_0x28cf68(0x1,_0x182659[_0x59cf2c(0x172)](_0x182659[_0x59cf2c(0x173)])),_0x28cf68(0x2,_0x182659[_0x59cf2c(0x1a2)])],_0x31a99c['UniverSheetsExchangeClientPlugin']),_0x31a99c['ExportXLSXOperation']=_0x5df98a,_0x31a99c['ImportXLSXOperation']=_0x1badbe,Object[_0x59cf2c(0x161)](_0x31a99c,Symbol['toStringTag'],{'value':_0x59cf2c(0x1a4)});}));
|
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.1",
|
|
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/sheets-ui": "0.
|
|
50
|
-
"@univerjs/ui": "0.
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.3.0-alpha.1",
|
|
47
|
+
"@univerjs/core": "0.3.0-alpha.1",
|
|
48
|
+
"@univerjs/sheets": "0.3.0-alpha.1",
|
|
49
|
+
"@univerjs/sheets-ui": "0.3.0-alpha.1",
|
|
50
|
+
"@univerjs/ui": "0.3.0-alpha.1"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@univerjs/icons": "^0.1.78",
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs
|
|
54
|
+
"@univerjs-pro/exchange-client": "0.3.0-alpha.1",
|
|
55
|
+
"@univerjs/core": "0.3.0-alpha.1",
|
|
56
|
+
"@univerjs/protocol": "0.1.39-alpha.22",
|
|
57
|
+
"@univerjs/ui": "0.3.0-alpha.1",
|
|
58
|
+
"@univerjs/sheets": "0.3.0-alpha.1",
|
|
59
|
+
"@univerjs/sheets-ui": "0.3.0-alpha.1"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"typescript": "^5.6.2",
|
|
62
|
-
"vite": "^5.4.
|
|
63
|
-
"vitest": "^2.1.
|
|
64
|
-
"@univerjs-infra/shared": "0.
|
|
63
|
+
"vite": "^5.4.8",
|
|
64
|
+
"vitest": "^2.1.1",
|
|
65
|
+
"@univerjs-infra/shared": "0.3.0-alpha.1"
|
|
65
66
|
},
|
|
66
67
|
"univerSpace": {
|
|
67
68
|
".": {
|