@univerjs-pro/sheets-exchange-client 0.2.13 → 0.2.15
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/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x502a62=_0x5220;(function(_0x18d592,_0x1fd70f){const _0x9ca8eb=_0x5220,_0xec4f5=_0x18d592();while(!![]){try{const _0x2976f4=parseInt(_0x9ca8eb(0x1b1))/0x1+-parseInt(_0x9ca8eb(0x1a7))/0x2*(-parseInt(_0x9ca8eb(0x1d8))/0x3)+-parseInt(_0x9ca8eb(0x1d5))/0x4*(-parseInt(_0x9ca8eb(0x1d1))/0x5)+-parseInt(_0x9ca8eb(0x19a))/0x6+-parseInt(_0x9ca8eb(0x1cc))/0x7+-parseInt(_0x9ca8eb(0x1c7))/0x8+parseInt(_0x9ca8eb(0x1a3))/0x9;if(_0x2976f4===_0x1fd70f)break;else _0xec4f5['push'](_0xec4f5['shift']());}catch(_0x55519b){_0xec4f5['push'](_0xec4f5['shift']());}}}(_0x4aa3,0xaffbb));function _0x4aa3(){const _0x3f6d1f=['mergeMenu','ICommandService','sheets-exchange-client.operation.exchange','2069554hTxxLs','onReady','_configService','exchange.file','registerCommand','FolderSingle','forEach','@univerjs/sheets','symbol','_initMenus','1260772boAgBs','Inject','@univerjs/sheets-ui','IConfigService','_menuManagerService','_initCommands','exchange.download','getOwnPropertyDescriptor','IMenuManagerService','exportXLSXByUnitId','type','IExchangeOperateService','get','@univerjs-pro/exchange-client','initialize','OPERATION','Plugin','UniverExchangeClientPlugin','setConfig','CommandType','defineProperty','_injector','7387208SsCHLM','LifecycleStages','Module','pluginName','_commandService','9970569yQOLuO','toStringTag','exchange-client.operation.export-xlsx','ExportSingle','BUTTON','2479025auLkvA','getCurrentRangeDisable$','UNIVER_SHEET','length','8bzbfyT','Injector','add','3MXYpDO','DirectExportSingle','Disposable','MenuItemType','4969842WrtTtb','_config','OnLifecycle','UniverSheetsExchangeClientPlugin','Ready','ImportXLSXOperation','importXLSXToUnitId','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','5487687JjLTkt'];_0x4aa3=function(){return _0x3f6d1f;};return _0x4aa3();}Object[_0x502a62(0x1c5)](exports,Symbol[_0x502a62(0x1cd)],{'value':_0x502a62(0x1c9)});const o=require('@univerjs/core'),g=require(_0x502a62(0x1be)),s=require('@univerjs/ui'),E=require(_0x502a62(0x1b3)),v=require(_0x502a62(0x1ae)),u={'id':'exchange-client.operation.import-xlsx','type':o['CommandType'][_0x502a62(0x1c0)],'handler':async _0x3ce999=>(_0x3ce999[_0x502a62(0x1bd)](g[_0x502a62(0x1bc)])[_0x502a62(0x1a0)](),!0x0)},p={'id':_0x502a62(0x1ce),'type':o[_0x502a62(0x1c4)]['OPERATION'],'handler':async _0x1ede56=>(_0x1ede56['get'](g['IExchangeOperateService'])[_0x502a62(0x1ba)](),!0x0)},m=_0x502a62(0x1a6);function I(_0x7dd309){const _0x16d783=_0x502a62;return{'id':m,'type':s[_0x16d783(0x199)]['SUBITEMS'],'icon':_0x16d783(0x197),'tooltip':_0x16d783(0x1aa),'hidden$':s['getMenuHiddenObservable'](_0x7dd309,o['UniverInstanceType'][_0x16d783(0x1d3)]),'disabled$':E[_0x16d783(0x1d2)](_0x7dd309,{'workbookTypes':[v['WorkbookExportPermission']]})};}function f(){const _0x1e1915=_0x502a62;return{'id':u['id'],'type':s[_0x1e1915(0x199)][_0x1e1915(0x1d0)],'title':_0x1e1915(0x1a1),'icon':_0x1e1915(0x1ac)};}function x(){const _0x265570=_0x502a62;return{'id':p['id'],'type':s[_0x265570(0x199)]['BUTTON'],'title':_0x265570(0x1b7),'icon':_0x265570(0x1cf)};}const C={[s['RibbonStartGroup']['FILE']]:{[m]:{'order':0x4,'menuItemFactory':I,[u['id']]:{'order':0x0,'menuItemFactory':f},[p['id']]:{'order':0x1,'menuItemFactory':x}}}};var y=Object[_0x502a62(0x1c5)],P=Object['getOwnPropertyDescriptor'],O=(_0x10559b,_0x3f285d,_0x438900,_0x439c32)=>{const _0x3f6b57=_0x502a62;for(var _0x43b18d=_0x439c32>0x1?void 0x0:_0x439c32?P(_0x3f285d,_0x438900):_0x3f285d,_0x41f7f3=_0x10559b[_0x3f6b57(0x1d4)]-0x1,_0xe8e6fc;_0x41f7f3>=0x0;_0x41f7f3--)(_0xe8e6fc=_0x10559b[_0x41f7f3])&&(_0x43b18d=(_0x439c32?_0xe8e6fc(_0x3f285d,_0x438900,_0x43b18d):_0xe8e6fc(_0x43b18d))||_0x43b18d);return _0x439c32&&_0x43b18d&&y(_0x3f285d,_0x438900,_0x43b18d),_0x43b18d;},h=(_0x5e17a2,_0x27e868)=>(_0x5866bd,_0x47ca93)=>_0x27e868(_0x5866bd,_0x47ca93,_0x5e17a2);let l=class extends o[_0x502a62(0x198)]{constructor(_0x140766,_0x4c61c6){const _0x57ab3e=_0x502a62;super(),this[_0x57ab3e(0x1cb)]=_0x140766,this[_0x57ab3e(0x1b5)]=_0x4c61c6,this[_0x57ab3e(0x1b6)](),this[_0x57ab3e(0x1b0)]();}[_0x502a62(0x1b6)](){const _0x39a48f=_0x502a62;[u,p][_0x39a48f(0x1ad)](_0x1b2c70=>{const _0x262aa8=_0x39a48f;this['disposeWithMe'](this[_0x262aa8(0x1cb)][_0x262aa8(0x1ab)](_0x1b2c70));});}[_0x502a62(0x1b0)](){const _0x38ad21=_0x502a62;this[_0x38ad21(0x1b5)][_0x38ad21(0x1a4)](C);}};l=O([o[_0x502a62(0x19c)](o[_0x502a62(0x1c8)][_0x502a62(0x19e)],l),h(0x0,o[_0x502a62(0x1a5)]),h(0x1,s[_0x502a62(0x1b9)])],l);const T='sheets-exchange-client.config',U={};var S=Object[_0x502a62(0x1c5)],X=Object[_0x502a62(0x1b8)],b=(_0x415dbf,_0x61e8cc,_0x4b6f16)=>_0x61e8cc in _0x415dbf?S(_0x415dbf,_0x61e8cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b6f16}):_0x415dbf[_0x61e8cc]=_0x4b6f16,N=(_0x356e45,_0x3937c9,_0x16d755,_0x5d9fe3)=>{const _0x588293=_0x502a62;for(var _0x2b69e4=_0x5d9fe3>0x1?void 0x0:_0x5d9fe3?X(_0x3937c9,_0x16d755):_0x3937c9,_0x4b1508=_0x356e45[_0x588293(0x1d4)]-0x1,_0x38a4fe;_0x4b1508>=0x0;_0x4b1508--)(_0x38a4fe=_0x356e45[_0x4b1508])&&(_0x2b69e4=(_0x5d9fe3?_0x38a4fe(_0x3937c9,_0x16d755,_0x2b69e4):_0x38a4fe(_0x2b69e4))||_0x2b69e4);return _0x5d9fe3&&_0x2b69e4&&S(_0x3937c9,_0x16d755,_0x2b69e4),_0x2b69e4;},d=(_0x187f41,_0x4ae028)=>(_0x358c60,_0x3fca52)=>_0x4ae028(_0x358c60,_0x3fca52,_0x187f41),_=(_0x4a3caf,_0x9f7a94,_0x58af28)=>b(_0x4a3caf,typeof _0x9f7a94!=_0x502a62(0x1af)?_0x9f7a94+'':_0x9f7a94,_0x58af28);const M=_0x502a62(0x1a2);function _0x5220(_0x458de3,_0x53c9f2){const _0x4aa35f=_0x4aa3();return _0x5220=function(_0x522009,_0x2847f5){_0x522009=_0x522009-0x197;let _0x55c829=_0x4aa35f[_0x522009];return _0x55c829;},_0x5220(_0x458de3,_0x53c9f2);}exports[_0x502a62(0x19d)]=class extends o[_0x502a62(0x1c1)]{constructor(_0x3ee3d4=U,_0x14b573,_0x56a5c7){const _0x562364=_0x502a62;super(),this[_0x562364(0x19b)]=_0x3ee3d4,this[_0x562364(0x1c6)]=_0x14b573,this[_0x562364(0x1a9)]=_0x56a5c7;const {menu:_0x534e16,..._0x2ec7c3}=this[_0x562364(0x19b)];_0x534e16&&this['_configService'][_0x562364(0x1c3)]('menu',_0x534e16,{'merge':!0x0}),this[_0x562364(0x1a9)][_0x562364(0x1c3)](T,_0x2ec7c3);}[_0x502a62(0x1bf)](){const _0x33577b=_0x502a62;[[l]][_0x33577b(0x1ad)](_0x317357=>this[_0x33577b(0x1c6)][_0x33577b(0x1d7)](_0x317357));}[_0x502a62(0x1a8)](){const _0x5e6693=_0x502a62;this[_0x5e6693(0x1bf)]();}},_(exports['UniverSheetsExchangeClientPlugin'],_0x502a62(0x1ca),M),_(exports[_0x502a62(0x19d)],_0x502a62(0x1bb),o['UniverInstanceType']['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([o['DependentOn'](g[_0x502a62(0x1c2)]),d(0x1,o[_0x502a62(0x1b2)](o[_0x502a62(0x1d6)])),d(0x2,o[_0x502a62(0x1b4)])],exports[_0x502a62(0x19d)]),exports['ExportXLSXOperation']=p,exports[_0x502a62(0x19f)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xc5fc00=_0x2724;(function(_0x31cb03,_0x2bf5ef){const _0x207b7f=_0x2724,_0x3322b3=_0x31cb03();while(!![]){try{const _0x39d19c=parseInt(_0x207b7f(0x11e))/0x1*(parseInt(_0x207b7f(0x138))/0x2)+parseInt(_0x207b7f(0x13a))/0x3+parseInt(_0x207b7f(0x11c))/0x4+parseInt(_0x207b7f(0x13b))/0x5+parseInt(_0x207b7f(0x120))/0x6+parseInt(_0x207b7f(0x143))/0x7+-parseInt(_0x207b7f(0x145))/0x8;if(_0x39d19c===_0x2bf5ef)break;else _0x3322b3['push'](_0x3322b3['shift']());}catch(_0x28f03d){_0x3322b3['push'](_0x3322b3['shift']());}}}(_0x562f,0xe199c));import{CommandType as _0x38f16d,UniverInstanceType as _0x284881,OnLifecycle as _0x259f05,LifecycleStages as _0x922626,Disposable as _0x2e8fb1,ICommandService as _0x5b5d96,DependentOn as _0x3fd03b,Inject as _0x2fd33f,Injector as _0x57c391,Plugin as _0x1ca315,IConfigService as _0x3b0f5e}from'@univerjs/core';function _0x562f(){const _0x2d40bd=['disposeWithMe','FolderSingle','get','OPERATION','length','Ready','forEach','initialize','defineProperty','exchange.download','setConfig','SUBITEMS','SHEET_EXCHANGE_CLIENT_PLUGIN','menu','_commandService','type','sheets-exchange-client.operation.exchange','BUTTON','_menuManagerService','_injector','UNIVER_SHEET','pluginName','importXLSXToUnitId','2cCbGeM','_configService','901464fvryqx','3962850GPCBpf','_initCommands','symbol','exportXLSXByUnitId','_initMenus','add','registerCommand','exchange.file','10312827xyPmuw','_config','29809088WFzHvL','DirectExportSingle','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','mergeMenu','FILE','ExportSingle','1545376DgrBoB','exchange.upload','255973UGLQPw','sheets-exchange-client.config','8649360vHkSkD'];_0x562f=function(){return _0x2d40bd;};return _0x562f();}import{IExchangeOperateService as _0x469b91,UniverExchangeClientPlugin as _0x12401b}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x4e625c,getMenuHiddenObservable as _0x220baf,RibbonStartGroup as _0x75fce7,IMenuManagerService as _0x4a5c54}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x54e419}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x49df24}from'@univerjs/sheets';const l={'id':'exchange-client.operation.import-xlsx','type':_0x38f16d[_0xc5fc00(0x124)],'handler':async _0x2a3c41=>(_0x2a3c41[_0xc5fc00(0x123)](_0x469b91)[_0xc5fc00(0x137)](),!0x0)},m={'id':_0xc5fc00(0x117),'type':_0x38f16d[_0xc5fc00(0x124)],'handler':async _0x2633cb=>(_0x2633cb[_0xc5fc00(0x123)](_0x469b91)[_0xc5fc00(0x13e)](),!0x0)},f=_0xc5fc00(0x131);function D(_0x168b3b){const _0x564a1d=_0xc5fc00;return{'id':f,'type':_0x4e625c[_0x564a1d(0x12c)],'icon':_0x564a1d(0x146),'tooltip':_0x564a1d(0x142),'hidden$':_0x220baf(_0x168b3b,_0x284881[_0x564a1d(0x135)]),'disabled$':_0x54e419(_0x168b3b,{'workbookTypes':[_0x49df24]})};}function H(){const _0x1cb85a=_0xc5fc00;return{'id':l['id'],'type':_0x4e625c[_0x1cb85a(0x132)],'title':_0x1cb85a(0x11d),'icon':_0x1cb85a(0x122)};}function R(){const _0x1a0e68=_0xc5fc00;return{'id':m['id'],'type':_0x4e625c[_0x1a0e68(0x132)],'title':_0x1a0e68(0x12a),'icon':_0x1a0e68(0x11b)};}const G={[_0x75fce7[_0xc5fc00(0x11a)]]:{[f]:{'order':0x4,'menuItemFactory':D,[l['id']]:{'order':0x0,'menuItemFactory':H},[m['id']]:{'order':0x1,'menuItemFactory':R}}}};var w=Object[_0xc5fc00(0x129)],$=Object[_0xc5fc00(0x118)],j=(_0x250331,_0x467d93,_0x1fd72d,_0x53a8bc)=>{for(var _0x2e7029=_0x53a8bc>0x1?void 0x0:_0x53a8bc?$(_0x467d93,_0x1fd72d):_0x467d93,_0x1ec09a=_0x250331['length']-0x1,_0x44ab5c;_0x1ec09a>=0x0;_0x1ec09a--)(_0x44ab5c=_0x250331[_0x1ec09a])&&(_0x2e7029=(_0x53a8bc?_0x44ab5c(_0x467d93,_0x1fd72d,_0x2e7029):_0x44ab5c(_0x2e7029))||_0x2e7029);return _0x53a8bc&&_0x2e7029&&w(_0x467d93,_0x1fd72d,_0x2e7029),_0x2e7029;},u=(_0x58b3b7,_0x399a04)=>(_0x12037e,_0x58642f)=>_0x399a04(_0x12037e,_0x58642f,_0x58b3b7);let a=class extends _0x2e8fb1{constructor(_0x34ee01,_0x2520b7){const _0x4b12fd=_0xc5fc00;super(),this[_0x4b12fd(0x12f)]=_0x34ee01,this[_0x4b12fd(0x133)]=_0x2520b7,this[_0x4b12fd(0x13c)](),this[_0x4b12fd(0x13f)]();}[_0xc5fc00(0x13c)](){const _0x1247a0=_0xc5fc00;[l,m][_0x1247a0(0x127)](_0x62f48a=>{const _0x1f3b2c=_0x1247a0;this[_0x1f3b2c(0x121)](this[_0x1f3b2c(0x12f)][_0x1f3b2c(0x141)](_0x62f48a));});}[_0xc5fc00(0x13f)](){const _0x19e3c7=_0xc5fc00;this[_0x19e3c7(0x133)][_0x19e3c7(0x119)](G);}};a=j([_0x259f05(_0x922626[_0xc5fc00(0x126)],a),u(0x0,_0x5b5d96),u(0x1,_0x4a5c54)],a);const A=_0xc5fc00(0x11f),B={};function _0x2724(_0x39b1cb,_0x2cc1e0){const _0x562f33=_0x562f();return _0x2724=function(_0x27248e,_0x397df5){_0x27248e=_0x27248e-0x117;let _0x1ecf51=_0x562f33[_0x27248e];return _0x1ecf51;},_0x2724(_0x39b1cb,_0x2cc1e0);}var E=Object[_0xc5fc00(0x129)],z=Object[_0xc5fc00(0x118)],V=(_0x3a40b8,_0x10a32f,_0x4e1643)=>_0x10a32f in _0x3a40b8?E(_0x3a40b8,_0x10a32f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e1643}):_0x3a40b8[_0x10a32f]=_0x4e1643,W=(_0x338737,_0x5a4238,_0x5877b5,_0x524059)=>{const _0xa046d6=_0xc5fc00;for(var _0x14efbb=_0x524059>0x1?void 0x0:_0x524059?z(_0x5a4238,_0x5877b5):_0x5a4238,_0x363182=_0x338737[_0xa046d6(0x125)]-0x1,_0x51ed22;_0x363182>=0x0;_0x363182--)(_0x51ed22=_0x338737[_0x363182])&&(_0x14efbb=(_0x524059?_0x51ed22(_0x5a4238,_0x5877b5,_0x14efbb):_0x51ed22(_0x14efbb))||_0x14efbb);return _0x524059&&_0x14efbb&&E(_0x5a4238,_0x5877b5,_0x14efbb),_0x14efbb;},d=(_0x379d39,_0x392da8)=>(_0x4755e0,_0x2a8a6d)=>_0x392da8(_0x4755e0,_0x2a8a6d,_0x379d39),S=(_0x27e7fd,_0x13b55b,_0x5d0daa)=>V(_0x27e7fd,typeof _0x13b55b!=_0xc5fc00(0x13d)?_0x13b55b+'':_0x13b55b,_0x5d0daa);const K=_0xc5fc00(0x12d);let s=class extends _0x1ca315{constructor(_0x1a4c1a=B,_0x165089,_0x58cf01){const _0x2df5b3=_0xc5fc00;super(),this[_0x2df5b3(0x144)]=_0x1a4c1a,this['_injector']=_0x165089,this[_0x2df5b3(0x139)]=_0x58cf01;const {menu:_0x1c80ee,..._0x9a9e16}=this[_0x2df5b3(0x144)];_0x1c80ee&&this['_configService'][_0x2df5b3(0x12b)](_0x2df5b3(0x12e),_0x1c80ee,{'merge':!0x0}),this[_0x2df5b3(0x139)]['setConfig'](A,_0x9a9e16);}[_0xc5fc00(0x128)](){const _0x3950a5=_0xc5fc00;[[a]][_0x3950a5(0x127)](_0x21cc80=>this[_0x3950a5(0x134)][_0x3950a5(0x140)](_0x21cc80));}['onReady'](){const _0x4b3427=_0xc5fc00;this[_0x4b3427(0x128)]();}};S(s,_0xc5fc00(0x136),K),S(s,_0xc5fc00(0x130),_0x284881[_0xc5fc00(0x135)]),s=W([_0x3fd03b(_0x12401b),d(0x1,_0x2fd33f(_0x57c391)),d(0x2,_0x3b0f5e)],s);export{m as ExportXLSXOperation,l as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x580c(_0x36e388,_0x490bb3){const _0x5c5ee9=_0x5c5e();return _0x580c=function(_0x580c98,_0x800b0b){_0x580c98=_0x580c98-0x1c0;let _0x340980=_0x5c5ee9[_0x580c98];return _0x340980;},_0x580c(_0x36e388,_0x490bb3);}(function(_0x5ab7a5,_0x2cd95c){const _0x5be4c2=_0x580c,_0x31c35a=_0x5ab7a5();while(!![]){try{const _0x3b34f2=-parseInt(_0x5be4c2(0x1e5))/0x1*(-parseInt(_0x5be4c2(0x20b))/0x2)+parseInt(_0x5be4c2(0x1f0))/0x3*(-parseInt(_0x5be4c2(0x1c3))/0x4)+parseInt(_0x5be4c2(0x1c1))/0x5*(-parseInt(_0x5be4c2(0x1cf))/0x6)+-parseInt(_0x5be4c2(0x1d1))/0x7+parseInt(_0x5be4c2(0x1f2))/0x8*(-parseInt(_0x5be4c2(0x1fb))/0x9)+-parseInt(_0x5be4c2(0x20c))/0xa*(parseInt(_0x5be4c2(0x202))/0xb)+parseInt(_0x5be4c2(0x1d4))/0xc*(parseInt(_0x5be4c2(0x1f1))/0xd);if(_0x3b34f2===_0x2cd95c)break;else _0x31c35a['push'](_0x31c35a['shift']());}catch(_0x3f811f){_0x31c35a['push'](_0x31c35a['shift']());}}}(_0x5c5e,0xf2d5b),function(_0x4a87d0,_0x5d16d3){const _0x4ee21d=_0x580c;typeof exports=='object'&&typeof module<'u'?_0x5d16d3(exports,require(_0x4ee21d(0x204)),require(_0x4ee21d(0x1fe)),require(_0x4ee21d(0x1db)),require(_0x4ee21d(0x1de)),require(_0x4ee21d(0x1c6))):typeof define==_0x4ee21d(0x1d6)&&define['amd']?define([_0x4ee21d(0x1d0),'@univerjs/core',_0x4ee21d(0x1fe),_0x4ee21d(0x1db),_0x4ee21d(0x1de),'@univerjs/sheets'],_0x5d16d3):(_0x4a87d0=typeof globalThis<'u'?globalThis:_0x4a87d0||self,_0x5d16d3(_0x4a87d0[_0x4ee21d(0x1c8)]={},_0x4a87d0[_0x4ee21d(0x1ea)],_0x4a87d0[_0x4ee21d(0x1d5)],_0x4a87d0['UniverUi'],_0x4a87d0['UniverSheetsUi'],_0x4a87d0[_0x4ee21d(0x209)]));}(this,function(_0x13a726,_0x2bddd4,_0x3b33bf,_0x4be4c0,_0x2b08b7,_0x299d48){'use strict';const _0x376b45=_0x580c;const _0x1b4719={'id':_0x376b45(0x1c9),'type':_0x2bddd4['CommandType'][_0x376b45(0x206)],'handler':async _0x58180c=>(_0x58180c['get'](_0x3b33bf[_0x376b45(0x1f4)])[_0x376b45(0x1f8)](),!0x0)},_0x1e342f={'id':'exchange-client.operation.export-xlsx','type':_0x2bddd4[_0x376b45(0x1e1)][_0x376b45(0x206)],'handler':async _0x51e330=>(_0x51e330[_0x376b45(0x1ee)](_0x3b33bf['IExchangeOperateService'])[_0x376b45(0x1f7)](),!0x0)},_0x2a4cab=_0x376b45(0x1d8);function _0x2b68b8(_0x142891){const _0x416ce7=_0x376b45;return{'id':_0x2a4cab,'type':_0x4be4c0['MenuItemType'][_0x416ce7(0x1fc)],'icon':_0x416ce7(0x208),'tooltip':_0x416ce7(0x1e4),'hidden$':_0x4be4c0[_0x416ce7(0x1d2)](_0x142891,_0x2bddd4[_0x416ce7(0x1e0)]['UNIVER_SHEET']),'disabled$':_0x2b08b7[_0x416ce7(0x1c4)](_0x142891,{'workbookTypes':[_0x299d48['WorkbookExportPermission']]})};}function _0x266734(){const _0x48ff58=_0x376b45;return{'id':_0x1b4719['id'],'type':_0x4be4c0[_0x48ff58(0x1d3)][_0x48ff58(0x1f5)],'title':_0x48ff58(0x1e6),'icon':'FolderSingle'};}function _0x1d5827(){const _0x81bfcc=_0x376b45;return{'id':_0x1e342f['id'],'type':_0x4be4c0[_0x81bfcc(0x1d3)][_0x81bfcc(0x1f5)],'title':_0x81bfcc(0x1ff),'icon':'ExportSingle'};}const _0x28597b={[_0x4be4c0['RibbonStartGroup'][_0x376b45(0x1ca)]]:{[_0x2a4cab]:{'order':0x4,'menuItemFactory':_0x2b68b8,[_0x1b4719['id']]:{'order':0x0,'menuItemFactory':_0x266734},[_0x1e342f['id']]:{'order':0x1,'menuItemFactory':_0x1d5827}}}};var _0x829e7f=Object['defineProperty'],_0x21b00d=Object[_0x376b45(0x201)],_0x5b04a0=(_0xbe6d47,_0x1e2e32,_0x4ab2d1,_0x46fdce)=>{const _0x157ea0=_0x376b45;for(var _0x383431=_0x46fdce>0x1?void 0x0:_0x46fdce?_0x21b00d(_0x1e2e32,_0x4ab2d1):_0x1e2e32,_0x28e215=_0xbe6d47[_0x157ea0(0x200)]-0x1,_0x53e7aa;_0x28e215>=0x0;_0x28e215--)(_0x53e7aa=_0xbe6d47[_0x28e215])&&(_0x383431=(_0x46fdce?_0x53e7aa(_0x1e2e32,_0x4ab2d1,_0x383431):_0x53e7aa(_0x383431))||_0x383431);return _0x46fdce&&_0x383431&&_0x829e7f(_0x1e2e32,_0x4ab2d1,_0x383431),_0x383431;},_0x30daa9=(_0x149064,_0x1f7f03)=>(_0x43aefb,_0x372ea5)=>_0x1f7f03(_0x43aefb,_0x372ea5,_0x149064);let _0x3c18ef=class extends _0x2bddd4[_0x376b45(0x1c0)]{constructor(_0x4a0941,_0x2d27fc){const _0x18e563=_0x376b45;super(),this[_0x18e563(0x1dc)]=_0x4a0941,this[_0x18e563(0x1eb)]=_0x2d27fc,this[_0x18e563(0x1cb)](),this[_0x18e563(0x1e7)]();}['_initCommands'](){const _0x2fb565=_0x376b45;[_0x1b4719,_0x1e342f][_0x2fb565(0x1f6)](_0x44515f=>{const _0x38b2c6=_0x2fb565;this[_0x38b2c6(0x1ce)](this[_0x38b2c6(0x1dc)][_0x38b2c6(0x1e3)](_0x44515f));});}[_0x376b45(0x1e7)](){const _0x4d03f1=_0x376b45;this[_0x4d03f1(0x1eb)]['mergeMenu'](_0x28597b);}};_0x3c18ef=_0x5b04a0([_0x2bddd4[_0x376b45(0x1e2)](_0x2bddd4[_0x376b45(0x1d7)][_0x376b45(0x1dd)],_0x3c18ef),_0x30daa9(0x0,_0x2bddd4['ICommandService']),_0x30daa9(0x1,_0x4be4c0[_0x376b45(0x1e8)])],_0x3c18ef);const _0x19b625='sheets-exchange-client.config',_0x2c8cdc={};var _0x38117e=Object[_0x376b45(0x1ec)],_0x1693a2=Object[_0x376b45(0x201)],_0x4b9f10=(_0x1d8b58,_0x1001f4,_0x5cf564)=>_0x1001f4 in _0x1d8b58?_0x38117e(_0x1d8b58,_0x1001f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cf564}):_0x1d8b58[_0x1001f4]=_0x5cf564,_0x455eff=(_0x351806,_0x1f8f33,_0x3e8cb1,_0x15c497)=>{for(var _0x17a26c=_0x15c497>0x1?void 0x0:_0x15c497?_0x1693a2(_0x1f8f33,_0x3e8cb1):_0x1f8f33,_0x450380=_0x351806['length']-0x1,_0x411a65;_0x450380>=0x0;_0x450380--)(_0x411a65=_0x351806[_0x450380])&&(_0x17a26c=(_0x15c497?_0x411a65(_0x1f8f33,_0x3e8cb1,_0x17a26c):_0x411a65(_0x17a26c))||_0x17a26c);return _0x15c497&&_0x17a26c&&_0x38117e(_0x1f8f33,_0x3e8cb1,_0x17a26c),_0x17a26c;},_0x2db2a8=(_0x47be8e,_0x5bcd9a)=>(_0x37e7d3,_0x376123)=>_0x5bcd9a(_0x37e7d3,_0x376123,_0x47be8e),_0x4d1449=(_0x20ce77,_0x247804,_0x47ee3c)=>_0x4b9f10(_0x20ce77,typeof _0x247804!='symbol'?_0x247804+'':_0x247804,_0x47ee3c);const _0x49ce33=_0x376b45(0x205);_0x13a726[_0x376b45(0x1df)]=class extends _0x2bddd4[_0x376b45(0x20d)]{constructor(_0x4e9e7d=_0x2c8cdc,_0x471122,_0x432d60){const _0x35663a=_0x376b45;super(),this['_config']=_0x4e9e7d,this['_injector']=_0x471122,this[_0x35663a(0x1c5)]=_0x432d60;const {menu:_0x352c12,..._0x23d511}=this['_config'];_0x352c12&&this[_0x35663a(0x1c5)][_0x35663a(0x1e9)](_0x35663a(0x1d9),_0x352c12,{'merge':!0x0}),this[_0x35663a(0x1c5)][_0x35663a(0x1e9)](_0x19b625,_0x23d511);}['initialize'](){const _0x23e349=_0x376b45;[[_0x3c18ef]][_0x23e349(0x1f6)](_0x2c9fe0=>this[_0x23e349(0x207)][_0x23e349(0x1f9)](_0x2c9fe0));}[_0x376b45(0x1c2)](){const _0x338cce=_0x376b45;this[_0x338cce(0x1ef)]();}},_0x4d1449(_0x13a726[_0x376b45(0x1df)],'pluginName',_0x49ce33),_0x4d1449(_0x13a726[_0x376b45(0x1df)],_0x376b45(0x1c7),_0x2bddd4[_0x376b45(0x1e0)][_0x376b45(0x203)]),_0x13a726['UniverSheetsExchangeClientPlugin']=_0x455eff([_0x2bddd4[_0x376b45(0x1fa)](_0x3b33bf[_0x376b45(0x1da)]),_0x2db2a8(0x1,_0x2bddd4[_0x376b45(0x1ed)](_0x2bddd4[_0x376b45(0x1f3)])),_0x2db2a8(0x2,_0x2bddd4[_0x376b45(0x1cd)])],_0x13a726[_0x376b45(0x1df)]),_0x13a726['ExportXLSXOperation']=_0x1e342f,_0x13a726[_0x376b45(0x1fd)]=_0x1b4719,Object['defineProperty'](_0x13a726,Symbol[_0x376b45(0x1cc)],{'value':_0x376b45(0x20a)});}));function _0x5c5e(){const _0x3a503c=['16783bXDlSY','88CGbmyK','Injector','IExchangeOperateService','BUTTON','forEach','exportXLSXByUnitId','importXLSXToUnitId','add','DependentOn','19143aiNFQP','SUBITEMS','ImportXLSXOperation','@univerjs-pro/exchange-client','exchange.download','length','getOwnPropertyDescriptor','1517527bcSliM','UNIVER_SHEET','@univerjs/core','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','_injector','DirectExportSingle','UniverSheets','Module','2063876ekkfCa','30YrgmFl','Plugin','Disposable','5GKlmXv','onReady','12gexdVN','getCurrentRangeDisable$','_configService','@univerjs/sheets','type','UniverSheetsExchangeClient','exchange-client.operation.import-xlsx','FILE','_initCommands','toStringTag','IConfigService','disposeWithMe','1729182mraYvv','exports','4117554prkAfo','getMenuHiddenObservable','MenuItemType','19932QlmPjw','UniverExchangeClient','function','LifecycleStages','sheets-exchange-client.operation.exchange','menu','UniverExchangeClientPlugin','@univerjs/ui','_commandService','Ready','@univerjs/sheets-ui','UniverSheetsExchangeClientPlugin','UniverInstanceType','CommandType','OnLifecycle','registerCommand','exchange.file','1ggruCp','exchange.upload','_initMenus','IMenuManagerService','setConfig','UniverCore','_menuManagerService','defineProperty','Inject','get','initialize','867951ioBVJD'];_0x5c5e=function(){return _0x3a503c;};return _0x5c5e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/core": "0.2.
|
|
49
|
-
"@univerjs/sheets-ui": "0.2.
|
|
50
|
-
"@univerjs/ui": "0.2.
|
|
46
|
+
"@univerjs/sheets": "0.2.15",
|
|
47
|
+
"@univerjs-pro/exchange-client": "0.2.15",
|
|
48
|
+
"@univerjs/core": "0.2.15",
|
|
49
|
+
"@univerjs/sheets-ui": "0.2.15",
|
|
50
|
+
"@univerjs/ui": "0.2.15"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@univerjs/icons": "^0.1.78",
|
|
54
|
+
"@univerjs/core": "0.2.15",
|
|
54
55
|
"@univerjs/protocol": "0.1.39-alpha.15",
|
|
55
|
-
"@univerjs/sheets": "0.2.
|
|
56
|
-
"@univerjs
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/core": "0.2.13"
|
|
56
|
+
"@univerjs/sheets": "0.2.15",
|
|
57
|
+
"@univerjs/sheets-ui": "0.2.15",
|
|
58
|
+
"@univerjs-pro/exchange-client": "0.2.15"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"typescript": "^5.6.2",
|
|
62
|
-
"vite": "^5.4.
|
|
63
|
-
"vitest": "^2.0
|
|
64
|
-
"@univerjs-infra/shared": "0.2.
|
|
62
|
+
"vite": "^5.4.5",
|
|
63
|
+
"vitest": "^2.1.0",
|
|
64
|
+
"@univerjs-infra/shared": "0.2.15"
|
|
65
65
|
},
|
|
66
66
|
"univerSpace": {
|
|
67
67
|
".": {
|