@univerjs-pro/sheets-exchange-client 0.3.0-alpha.0 → 0.3.0-nightly.202410101606
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/plugin.d.ts +2 -2
- package/lib/umd/index.js +1 -1
- package/package.json +14 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x55b5d6=_0x2f6e;(function(_0x30370e,_0x2c00e6){var _0xc54e17=_0x2f6e,_0x349913=_0x30370e();while(!![]){try{var _0x2c8794=-parseInt(_0xc54e17(0x210))/0x1*(-parseInt(_0xc54e17(0x1ff))/0x2)+parseInt(_0xc54e17(0x1f7))/0x3*(parseInt(_0xc54e17(0x220))/0x4)+-parseInt(_0xc54e17(0x211))/0x5*(parseInt(_0xc54e17(0x209))/0x6)+parseInt(_0xc54e17(0x217))/0x7+parseInt(_0xc54e17(0x22c))/0x8+-parseInt(_0xc54e17(0x218))/0x9*(-parseInt(_0xc54e17(0x21f))/0xa)+-parseInt(_0xc54e17(0x1fe))/0xb;if(_0x2c8794===_0x2c00e6)break;else _0x349913['push'](_0x349913['shift']());}catch(_0x1103f4){_0x349913['push'](_0x349913['shift']());}}}(_0x3c1b,0xa43ea));function _0x2f6e(_0x36a558,_0x307a84){var _0x3c1bc1=_0x3c1b();return _0x2f6e=function(_0x2f6e61,_0x4c24be){_0x2f6e61=_0x2f6e61-0x1e8;var _0x3319b5=_0x3c1bc1[_0x2f6e61];return _0x3319b5;},_0x2f6e(_0x36a558,_0x307a84);}Object[_0x55b5d6(0x216)](exports,Symbol[_0x55b5d6(0x1fd)],{'value':'Module'});const o=require(_0x55b5d6(0x22b)),g=require('@univerjs-pro/exchange-client'),s=require('@univerjs/ui'),E=require(_0x55b5d6(0x20e)),v=require(_0x55b5d6(0x1fc)),I=_0x55b5d6(0x1f0),x={},p={'id':_0x55b5d6(0x21b),'type':o[_0x55b5d6(0x1f1)][_0x55b5d6(0x1ea)],'handler':async _0x399b6e=>(_0x399b6e[_0x55b5d6(0x1ee)](g[_0x55b5d6(0x1f2)])[_0x55b5d6(0x224)](),!0x0)},l={'id':_0x55b5d6(0x1f5),'type':o['CommandType'][_0x55b5d6(0x1ea)],'handler':async _0x3db22e=>(_0x3db22e[_0x55b5d6(0x1ee)](g[_0x55b5d6(0x1f2)])[_0x55b5d6(0x200)](),!0x0)},m=_0x55b5d6(0x228);function f(_0x14a4aa){var _0x5a2b37=_0x55b5d6;return{'id':m,'type':s['MenuItemType'][_0x5a2b37(0x222)],'icon':_0x5a2b37(0x207),'tooltip':_0x5a2b37(0x21e),'hidden$':s[_0x5a2b37(0x201)](_0x14a4aa,o[_0x5a2b37(0x206)][_0x5a2b37(0x213)]),'disabled$':E[_0x5a2b37(0x1f4)](_0x14a4aa,{'workbookTypes':[v[_0x5a2b37(0x20f)]]})};}function C(){var _0x483cd2=_0x55b5d6;return{'id':p['id'],'type':s[_0x483cd2(0x208)][_0x483cd2(0x1fa)],'title':_0x483cd2(0x1f3),'icon':_0x483cd2(0x229)};}function P(){var _0x48ad3d=_0x55b5d6;return{'id':l['id'],'type':s[_0x48ad3d(0x208)][_0x48ad3d(0x1fa)],'title':'exchange.download','icon':_0x48ad3d(0x203)};}const O={[s['RibbonStartGroup'][_0x55b5d6(0x202)]]:{[m]:{'order':0x4,'menuItemFactory':f,[p['id']]:{'order':0x0,'menuItemFactory':C},[l['id']]:{'order':0x1,'menuItemFactory':P}}}};function _0x3c1b(){var _0x18337d=['FolderSingle','ICommandService','@univerjs/core','10461936SFDjjH','IConfigService','UniverSheetsExchangeClientPlugin','OPERATION','length','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverExchangeClientPlugin','get','onReady','sheets-exchange-client.config','CommandType','IExchangeOperateService','exchange.upload','getCurrentRangeDisable$','exchange-client.operation.export-xlsx','type','6933ezxCoW','Plugin','_commandService','BUTTON','add','@univerjs/sheets','toStringTag','29590374gnxnin','2XGOhnz','exportXLSXByUnitId','getMenuHiddenObservable','FILE','ExportSingle','ExportXLSXOperation','ImportXLSXOperation','UniverInstanceType','DirectExportSingle','MenuItemType','6SIORcU','menu','DependentOn','disposeWithMe','pluginName','@univerjs/sheets-ui','WorkbookExportPermission','403360azbYBD','4939115eNQSFy','_menuManagerService','UNIVER_SHEET','Injector','onStarting','defineProperty','6060712weCBbw','21771ZKKGNf','_initMenus','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','_configService','Inject','exchange.file','3530hTCirE','1592nbcDLJ','forEach','SUBITEMS','_initCommands','importXLSXToUnitId','_injector','IMenuManagerService','_config','sheets-exchange-client.operation.exchange'];_0x3c1b=function(){return _0x18337d;};return _0x3c1b();}var T=Object[_0x55b5d6(0x216)],y=Object[_0x55b5d6(0x21a)],U=(_0x5db161,_0x4a87e5,_0x230f3a,_0x3b1678)=>{var _0x50b06a=_0x55b5d6;for(var _0x4e41f2=_0x3b1678>0x1?void 0x0:_0x3b1678?y(_0x4a87e5,_0x230f3a):_0x4a87e5,_0x19cffe=_0x5db161[_0x50b06a(0x1eb)]-0x1,_0x50509d;_0x19cffe>=0x0;_0x19cffe--)(_0x50509d=_0x5db161[_0x19cffe])&&(_0x4e41f2=(_0x3b1678?_0x50509d(_0x4a87e5,_0x230f3a,_0x4e41f2):_0x50509d(_0x4e41f2))||_0x4e41f2);return _0x3b1678&&_0x4e41f2&&T(_0x4a87e5,_0x230f3a,_0x4e41f2),_0x4e41f2;},h=(_0x4f215b,_0x4775ba)=>(_0xae4eef,_0x3ce231)=>_0x4775ba(_0xae4eef,_0x3ce231,_0x4f215b);let u=class extends o['Disposable']{constructor(_0x578707,_0xb2a4eb){var _0x48cbbc=_0x55b5d6;super(),this[_0x48cbbc(0x1f9)]=_0x578707,this[_0x48cbbc(0x212)]=_0xb2a4eb,this[_0x48cbbc(0x223)](),this[_0x48cbbc(0x219)]();}['_initCommands'](){[p,l]['forEach'](_0x1bde69=>{var _0x382e32=_0x2f6e;this[_0x382e32(0x20c)](this[_0x382e32(0x1f9)]['registerCommand'](_0x1bde69));});}[_0x55b5d6(0x219)](){this['_menuManagerService']['mergeMenu'](O);}};u=U([h(0x0,o[_0x55b5d6(0x22a)]),h(0x1,s[_0x55b5d6(0x226)])],u);var _=Object['defineProperty'],X=Object[_0x55b5d6(0x21a)],b=(_0x2529c3,_0x3d999d,_0x459db2)=>_0x3d999d in _0x2529c3?_(_0x2529c3,_0x3d999d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x459db2}):_0x2529c3[_0x3d999d]=_0x459db2,N=(_0x4328d7,_0x262fa9,_0x347f2b,_0x2abea7)=>{var _0x3c405a=_0x55b5d6;for(var _0xd89436=_0x2abea7>0x1?void 0x0:_0x2abea7?X(_0x262fa9,_0x347f2b):_0x262fa9,_0x26a8d3=_0x4328d7[_0x3c405a(0x1eb)]-0x1,_0x4f4321;_0x26a8d3>=0x0;_0x26a8d3--)(_0x4f4321=_0x4328d7[_0x26a8d3])&&(_0xd89436=(_0x2abea7?_0x4f4321(_0x262fa9,_0x347f2b,_0xd89436):_0x4f4321(_0xd89436))||_0xd89436);return _0x2abea7&&_0xd89436&&_(_0x262fa9,_0x347f2b,_0xd89436),_0xd89436;},d=(_0x2d2ae1,_0x20ba4a)=>(_0x3b6709,_0xb46b24)=>_0x20ba4a(_0x3b6709,_0xb46b24,_0x2d2ae1),S=(_0x370714,_0x2a16c0,_0x37fc98)=>b(_0x370714,typeof _0x2a16c0!='symbol'?_0x2a16c0+'':_0x2a16c0,_0x37fc98);const M=_0x55b5d6(0x1ec);exports['UniverSheetsExchangeClientPlugin']=class extends o[_0x55b5d6(0x1f8)]{constructor(_0x58f503=x,_0x4e421c,_0x6284d8){var _0x564e6b=_0x55b5d6;super(),this[_0x564e6b(0x227)]=_0x58f503,this[_0x564e6b(0x225)]=_0x4e421c,this[_0x564e6b(0x21c)]=_0x6284d8;const {menu:_0x724b35,..._0x501a3f}=this[_0x564e6b(0x227)];_0x724b35&&this[_0x564e6b(0x21c)]['setConfig'](_0x564e6b(0x20a),_0x724b35,{'merge':!0x0}),this[_0x564e6b(0x21c)]['setConfig'](I,_0x501a3f);}[_0x55b5d6(0x215)](){var _0x5b6244=_0x55b5d6;[[u]][_0x5b6244(0x221)](_0x292c43=>this[_0x5b6244(0x225)][_0x5b6244(0x1fb)](_0x292c43));}[_0x55b5d6(0x1ef)](){var _0x5dcd02=_0x55b5d6;this['_injector'][_0x5dcd02(0x1ee)](u);}},S(exports[_0x55b5d6(0x1e9)],_0x55b5d6(0x20d),M),S(exports[_0x55b5d6(0x1e9)],_0x55b5d6(0x1f6),o[_0x55b5d6(0x206)][_0x55b5d6(0x213)]),exports[_0x55b5d6(0x1e9)]=N([o[_0x55b5d6(0x20b)](g[_0x55b5d6(0x1ed)]),d(0x1,o[_0x55b5d6(0x21d)](o[_0x55b5d6(0x214)])),d(0x2,o[_0x55b5d6(0x1e8)])],exports[_0x55b5d6(0x1e9)]),exports[_0x55b5d6(0x204)]=l,exports[_0x55b5d6(0x205)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x4883c3=_0x46bd;(function(_0x3815a3,_0x6868c6){var _0xbc76d0=_0x46bd,_0x1e1658=_0x3815a3();while(!![]){try{var _0x190801=-parseInt(_0xbc76d0(0x1e6))/0x1*(parseInt(_0xbc76d0(0x1d7))/0x2)+-parseInt(_0xbc76d0(0x1f9))/0x3*(parseInt(_0xbc76d0(0x1e0))/0x4)+parseInt(_0xbc76d0(0x1e3))/0x5+-parseInt(_0xbc76d0(0x1eb))/0x6+parseInt(_0xbc76d0(0x1d6))/0x7*(-parseInt(_0xbc76d0(0x1ed))/0x8)+-parseInt(_0xbc76d0(0x1d5))/0x9+parseInt(_0xbc76d0(0x1e8))/0xa;if(_0x190801===_0x6868c6)break;else _0x1e1658['push'](_0x1e1658['shift']());}catch(_0x32964d){_0x1e1658['push'](_0x1e1658['shift']());}}}(_0x3cc5,0xf26fc));import{CommandType as _0x197b21,UniverInstanceType as _0x544423,Disposable as _0x433b36,ICommandService as _0xc6ebf8,DependentOn as _0x39cf57,Inject as _0x2ebe16,Injector as _0xa1c821,Plugin as _0x380975,IConfigService as _0x46fe6c}from'@univerjs/core';import{IExchangeOperateService as _0x55dd94,UniverExchangeClientPlugin as _0x379b93}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x5c7429,getMenuHiddenObservable as _0xe4c4f2,RibbonStartGroup as _0x1e4e4f,IMenuManagerService as _0x13acef}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x398a06}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x5c4346}from'@univerjs/sheets';const L=_0x4883c3(0x1d8),F={},m={'id':_0x4883c3(0x1ec),'type':_0x197b21[_0x4883c3(0x1ef)],'handler':async _0x864f3c=>(_0x864f3c['get'](_0x55dd94)[_0x4883c3(0x1f6)](),!0x0)},u={'id':_0x4883c3(0x1dd),'type':_0x197b21[_0x4883c3(0x1ef)],'handler':async _0x5e3a5c=>(_0x5e3a5c['get'](_0x55dd94)[_0x4883c3(0x1fd)](),!0x0)},E=_0x4883c3(0x1f8);function D(_0x4b9a4f){var _0x6425f7=_0x4883c3;return{'id':E,'type':_0x5c7429[_0x6425f7(0x1ea)],'icon':_0x6425f7(0x1e1),'tooltip':'exchange.file','hidden$':_0xe4c4f2(_0x4b9a4f,_0x544423[_0x6425f7(0x1f7)]),'disabled$':_0x398a06(_0x4b9a4f,{'workbookTypes':[_0x5c4346]})};}function H(){var _0x4bd663=_0x4883c3;return{'id':m['id'],'type':_0x5c7429[_0x4bd663(0x1fb)],'title':'exchange.upload','icon':_0x4bd663(0x1e7)};}function G(){var _0xf9614d=_0x4883c3;return{'id':u['id'],'type':_0x5c7429['BUTTON'],'title':_0xf9614d(0x1d9),'icon':_0xf9614d(0x1d4)};}function _0x46bd(_0x113e6e,_0x2c3eae){var _0x3cc512=_0x3cc5();return _0x46bd=function(_0x46bd4b,_0x416f41){_0x46bd4b=_0x46bd4b-0x1d3;var _0x173437=_0x3cc512[_0x46bd4b];return _0x173437;},_0x46bd(_0x113e6e,_0x2c3eae);}const R={[_0x1e4e4f[_0x4883c3(0x1f3)]]:{[E]:{'order':0x4,'menuItemFactory':D,[m['id']]:{'order':0x0,'menuItemFactory':H},[u['id']]:{'order':0x1,'menuItemFactory':G}}}};var j=Object[_0x4883c3(0x1f5)],w=Object[_0x4883c3(0x1f4)],$=(_0x3e1903,_0xb9bab8,_0xae2354,_0xb3249c)=>{var _0x193896=_0x4883c3;for(var _0x5098ae=_0xb3249c>0x1?void 0x0:_0xb3249c?w(_0xb9bab8,_0xae2354):_0xb9bab8,_0x2458b2=_0x3e1903[_0x193896(0x1f0)]-0x1,_0x80aad1;_0x2458b2>=0x0;_0x2458b2--)(_0x80aad1=_0x3e1903[_0x2458b2])&&(_0x5098ae=(_0xb3249c?_0x80aad1(_0xb9bab8,_0xae2354,_0x5098ae):_0x80aad1(_0x5098ae))||_0x5098ae);return _0xb3249c&&_0x5098ae&&j(_0xb9bab8,_0xae2354,_0x5098ae),_0x5098ae;},l=(_0x48c689,_0xee3f50)=>(_0x2033e2,_0x332ab2)=>_0xee3f50(_0x2033e2,_0x332ab2,_0x48c689);let a=class extends _0x433b36{constructor(_0xf6f59e,_0x188e67){var _0x2b0557=_0x4883c3;super(),this[_0x2b0557(0x1df)]=_0xf6f59e,this[_0x2b0557(0x1e4)]=_0x188e67,this['_initCommands'](),this[_0x2b0557(0x1fc)]();}['_initCommands'](){var _0x17a1e9=_0x4883c3;[m,u][_0x17a1e9(0x1fa)](_0x237f03=>{var _0x44ec62=_0x17a1e9;this['disposeWithMe'](this[_0x44ec62(0x1df)]['registerCommand'](_0x237f03));});}['_initMenus'](){var _0x5cfea9=_0x4883c3;this[_0x5cfea9(0x1e4)]['mergeMenu'](R);}};a=$([l(0x0,_0xc6ebf8),l(0x1,_0x13acef)],a);function _0x3cc5(){var _0x30c605=['21eQHyJy','forEach','BUTTON','_initMenus','exportXLSXByUnitId','_configService','ExportSingle','15157665iKDBQN','20671WRkKqO','1758046lbivLy','sheets-exchange-client.config','exchange.download','type','setConfig','symbol','exchange-client.operation.export-xlsx','onReady','_commandService','192292ByuZLB','DirectExportSingle','menu','9755985iQKjlR','_menuManagerService','_config','2mjuGDG','FolderSingle','42477630VuHZya','onStarting','SUBITEMS','4966434MMYYIO','exchange-client.operation.import-xlsx','1624HJGSGF','get','OPERATION','length','_injector','add','FILE','getOwnPropertyDescriptor','defineProperty','importXLSXToUnitId','UNIVER_SHEET','sheets-exchange-client.operation.exchange'];_0x3cc5=function(){return _0x30c605;};return _0x3cc5();}var S=Object['defineProperty'],A=Object[_0x4883c3(0x1f4)],B=(_0x34d601,_0x4323e2,_0x11a60a)=>_0x4323e2 in _0x34d601?S(_0x34d601,_0x4323e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11a60a}):_0x34d601[_0x4323e2]=_0x11a60a,V=(_0x1907b9,_0x3b1ebb,_0x37ac87,_0x17e041)=>{var _0x3d70bb=_0x4883c3;for(var _0xe34179=_0x17e041>0x1?void 0x0:_0x17e041?A(_0x3b1ebb,_0x37ac87):_0x3b1ebb,_0x41579d=_0x1907b9[_0x3d70bb(0x1f0)]-0x1,_0x11b35a;_0x41579d>=0x0;_0x41579d--)(_0x11b35a=_0x1907b9[_0x41579d])&&(_0xe34179=(_0x17e041?_0x11b35a(_0x3b1ebb,_0x37ac87,_0xe34179):_0x11b35a(_0xe34179))||_0xe34179);return _0x17e041&&_0xe34179&&S(_0x3b1ebb,_0x37ac87,_0xe34179),_0xe34179;},_=(_0x3654e3,_0x4f49d4)=>(_0x44d609,_0x2bc1ae)=>_0x4f49d4(_0x44d609,_0x2bc1ae,_0x3654e3),f=(_0x9af182,_0xa8f91f,_0x191386)=>B(_0x9af182,typeof _0xa8f91f!=_0x4883c3(0x1dc)?_0xa8f91f+'':_0xa8f91f,_0x191386);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x380975{constructor(_0x3b75bf=F,_0x6847ab,_0x43b29e){var _0x114935=_0x4883c3;super(),this[_0x114935(0x1e5)]=_0x3b75bf,this[_0x114935(0x1f1)]=_0x6847ab,this[_0x114935(0x1d3)]=_0x43b29e;const {menu:_0x5ea277,..._0x24edc1}=this['_config'];_0x5ea277&&this['_configService']['setConfig'](_0x114935(0x1e2),_0x5ea277,{'merge':!0x0}),this[_0x114935(0x1d3)][_0x114935(0x1db)](L,_0x24edc1);}[_0x4883c3(0x1e9)](){var _0x2578f2=_0x4883c3;[[a]][_0x2578f2(0x1fa)](_0x37d1ce=>this[_0x2578f2(0x1f1)][_0x2578f2(0x1f2)](_0x37d1ce));}[_0x4883c3(0x1de)](){var _0x2f2782=_0x4883c3;this[_0x2f2782(0x1f1)][_0x2f2782(0x1ee)](a);}};f(s,'pluginName',W),f(s,_0x4883c3(0x1da),_0x544423[_0x4883c3(0x1f7)]),s=V([_0x39cf57(_0x379b93),_(0x1,_0x2ebe16(_0xa1c821)),_(0x2,_0x46fe6c)],s);export{u as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
1
|
import { IUniverSheetsExchangeClientConfig } from './controllers/config.schema';
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetsExchangeClientPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
readonly _injector: Injector;
|
|
@@ -7,6 +7,6 @@ export declare class UniverSheetsExchangeClientPlugin extends Plugin {
|
|
|
7
7
|
static pluginName: string;
|
|
8
8
|
static type: UniverInstanceType;
|
|
9
9
|
constructor(_config: Partial<IUniverSheetsExchangeClientConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
|
-
|
|
10
|
+
onStarting(): void;
|
|
11
11
|
onReady(): void;
|
|
12
12
|
}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x10bf(_0x32497e,_0x22acfc){var _0x167c07=_0x167c();return _0x10bf=function(_0x10bfeb,_0x35af78){_0x10bfeb=_0x10bfeb-0x7c;var _0x8cfa61=_0x167c07[_0x10bfeb];return _0x8cfa61;},_0x10bf(_0x32497e,_0x22acfc);}(function(_0x24fcb2,_0x13bad8){var _0x374360=_0x10bf,_0x54504b=_0x24fcb2();while(!![]){try{var _0x1261b8=-parseInt(_0x374360(0x86))/0x1*(parseInt(_0x374360(0x80))/0x2)+parseInt(_0x374360(0xa3))/0x3+parseInt(_0x374360(0x7c))/0x4*(parseInt(_0x374360(0xa4))/0x5)+parseInt(_0x374360(0xa8))/0x6+-parseInt(_0x374360(0xaa))/0x7+parseInt(_0x374360(0x9d))/0x8*(parseInt(_0x374360(0xaf))/0x9)+-parseInt(_0x374360(0xad))/0xa*(-parseInt(_0x374360(0xac))/0xb);if(_0x1261b8===_0x13bad8)break;else _0x54504b['push'](_0x54504b['shift']());}catch(_0xd9d344){_0x54504b['push'](_0x54504b['shift']());}}}(_0x167c,0xc21b2),function(_0xc0feac,_0x4d868e){var _0x3fe0ab=_0x10bf;typeof exports==_0x3fe0ab(0xb9)&&typeof module<'u'?_0x4d868e(exports,require(_0x3fe0ab(0x9b)),require(_0x3fe0ab(0x93)),require(_0x3fe0ab(0xbf)),require(_0x3fe0ab(0x89)),require(_0x3fe0ab(0x9f))):typeof define==_0x3fe0ab(0xc6)&&define[_0x3fe0ab(0xba)]?define(['exports','@univerjs/core',_0x3fe0ab(0x93),'@univerjs/ui',_0x3fe0ab(0x89),'@univerjs/sheets'],_0x4d868e):(_0xc0feac=typeof globalThis<'u'?globalThis:_0xc0feac||self,_0x4d868e(_0xc0feac[_0x3fe0ab(0x9e)]={},_0xc0feac['UniverCore'],_0xc0feac[_0x3fe0ab(0xb1)],_0xc0feac[_0x3fe0ab(0xbc)],_0xc0feac[_0x3fe0ab(0xb7)],_0xc0feac[_0x3fe0ab(0x95)]));}(this,function(_0xca5422,_0x5d65fb,_0x2b756d,_0x3cc696,_0x11d391,_0x93a4ac){'use strict';var _0x166ec5=_0x10bf;const _0x1f38d1=_0x166ec5(0x7f),_0x38dc45={},_0x4d7619={'id':_0x166ec5(0x84),'type':_0x5d65fb[_0x166ec5(0x8b)][_0x166ec5(0x82)],'handler':async _0x4f2df9=>(_0x4f2df9[_0x166ec5(0xbe)](_0x2b756d[_0x166ec5(0xc5)])['importXLSXToUnitId'](),!0x0)},_0x1aa754={'id':_0x166ec5(0x7d),'type':_0x5d65fb['CommandType'][_0x166ec5(0x82)],'handler':async _0x108169=>(_0x108169['get'](_0x2b756d[_0x166ec5(0xc5)])[_0x166ec5(0x9c)](),!0x0)},_0x1de175=_0x166ec5(0x8d);function _0x5389ea(_0x22efca){var _0x5b6c8d=_0x166ec5;return{'id':_0x1de175,'type':_0x3cc696[_0x5b6c8d(0xb5)]['SUBITEMS'],'icon':'DirectExportSingle','tooltip':'exchange.file','hidden$':_0x3cc696[_0x5b6c8d(0x88)](_0x22efca,_0x5d65fb[_0x5b6c8d(0xa6)][_0x5b6c8d(0xa9)]),'disabled$':_0x11d391['getCurrentRangeDisable$'](_0x22efca,{'workbookTypes':[_0x93a4ac[_0x5b6c8d(0xbb)]]})};}function _0x45daab(){var _0x2d324c=_0x166ec5;return{'id':_0x4d7619['id'],'type':_0x3cc696[_0x2d324c(0xb5)][_0x2d324c(0x87)],'title':_0x2d324c(0xa2),'icon':_0x2d324c(0x92)};}function _0x47b3e0(){var _0xbbcde3=_0x166ec5;return{'id':_0x1aa754['id'],'type':_0x3cc696[_0xbbcde3(0xb5)]['BUTTON'],'title':_0xbbcde3(0x96),'icon':'ExportSingle'};}const _0x4fe98a={[_0x3cc696[_0x166ec5(0xa7)][_0x166ec5(0xa1)]]:{[_0x1de175]:{'order':0x4,'menuItemFactory':_0x5389ea,[_0x4d7619['id']]:{'order':0x0,'menuItemFactory':_0x45daab},[_0x1aa754['id']]:{'order':0x1,'menuItemFactory':_0x47b3e0}}}};var _0x7ddb2f=Object['defineProperty'],_0x175e63=Object['getOwnPropertyDescriptor'],_0x5ab4b6=(_0x561c37,_0x147de4,_0x509fd3,_0x164726)=>{for(var _0x474812=_0x164726>0x1?void 0x0:_0x164726?_0x175e63(_0x147de4,_0x509fd3):_0x147de4,_0x974d3f=_0x561c37['length']-0x1,_0xb87cb5;_0x974d3f>=0x0;_0x974d3f--)(_0xb87cb5=_0x561c37[_0x974d3f])&&(_0x474812=(_0x164726?_0xb87cb5(_0x147de4,_0x509fd3,_0x474812):_0xb87cb5(_0x474812))||_0x474812);return _0x164726&&_0x474812&&_0x7ddb2f(_0x147de4,_0x509fd3,_0x474812),_0x474812;},_0xa86cbc=(_0x46b511,_0x22be66)=>(_0x2e0ed1,_0x295fbb)=>_0x22be66(_0x2e0ed1,_0x295fbb,_0x46b511);let _0x577186=class extends _0x5d65fb[_0x166ec5(0x99)]{constructor(_0x18816f,_0x4b97d3){var _0x39ca2b=_0x166ec5;super(),this[_0x39ca2b(0x8c)]=_0x18816f,this[_0x39ca2b(0x97)]=_0x4b97d3,this[_0x39ca2b(0x98)](),this[_0x39ca2b(0xb2)]();}[_0x166ec5(0x98)](){var _0x28324b=_0x166ec5;[_0x4d7619,_0x1aa754][_0x28324b(0xa0)](_0x3d7ef8=>{var _0x1fe588=_0x28324b;this[_0x1fe588(0xc3)](this['_commandService'][_0x1fe588(0xc4)](_0x3d7ef8));});}[_0x166ec5(0xb2)](){var _0x28576c=_0x166ec5;this[_0x28576c(0x97)]['mergeMenu'](_0x4fe98a);}};_0x577186=_0x5ab4b6([_0xa86cbc(0x0,_0x5d65fb['ICommandService']),_0xa86cbc(0x1,_0x3cc696[_0x166ec5(0x8e)])],_0x577186);var _0x58219f=Object['defineProperty'],_0x41b329=Object[_0x166ec5(0x94)],_0xec53bd=(_0x1701cd,_0x253ed2,_0x56d72e)=>_0x253ed2 in _0x1701cd?_0x58219f(_0x1701cd,_0x253ed2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56d72e}):_0x1701cd[_0x253ed2]=_0x56d72e,_0x224549=(_0x5d0d34,_0x1c6426,_0x4082d8,_0x46d035)=>{var _0x20fed0=_0x166ec5;for(var _0x5ee6fc=_0x46d035>0x1?void 0x0:_0x46d035?_0x41b329(_0x1c6426,_0x4082d8):_0x1c6426,_0x2f97df=_0x5d0d34[_0x20fed0(0x90)]-0x1,_0x82f0d4;_0x2f97df>=0x0;_0x2f97df--)(_0x82f0d4=_0x5d0d34[_0x2f97df])&&(_0x5ee6fc=(_0x46d035?_0x82f0d4(_0x1c6426,_0x4082d8,_0x5ee6fc):_0x82f0d4(_0x5ee6fc))||_0x5ee6fc);return _0x46d035&&_0x5ee6fc&&_0x58219f(_0x1c6426,_0x4082d8,_0x5ee6fc),_0x5ee6fc;},_0x4bbd63=(_0x2d245c,_0xd3878d)=>(_0x201853,_0x3d0493)=>_0xd3878d(_0x201853,_0x3d0493,_0x2d245c),_0x292cc0=(_0x12417a,_0x2e9ef9,_0x2e3c74)=>_0xec53bd(_0x12417a,typeof _0x2e9ef9!=_0x166ec5(0xc2)?_0x2e9ef9+'':_0x2e9ef9,_0x2e3c74);const _0x196938=_0x166ec5(0xab);_0xca5422[_0x166ec5(0xb4)]=class extends _0x5d65fb[_0x166ec5(0xbd)]{constructor(_0x2bed74=_0x38dc45,_0x5020e0,_0x3dd738){var _0x44eb79=_0x166ec5;super(),this[_0x44eb79(0x9a)]=_0x2bed74,this[_0x44eb79(0x7e)]=_0x5020e0,this['_configService']=_0x3dd738;const {menu:_0x27b386,..._0x3706a2}=this['_config'];_0x27b386&&this[_0x44eb79(0x83)][_0x44eb79(0x81)]('menu',_0x27b386,{'merge':!0x0}),this['_configService'][_0x44eb79(0x81)](_0x1f38d1,_0x3706a2);}[_0x166ec5(0x91)](){var _0x28c311=_0x166ec5;[[_0x577186]]['forEach'](_0x5d19bb=>this[_0x28c311(0x7e)][_0x28c311(0xc1)](_0x5d19bb));}['onReady'](){var _0x57ba20=_0x166ec5;this['_injector'][_0x57ba20(0xbe)](_0x577186);}},_0x292cc0(_0xca5422[_0x166ec5(0xb4)],_0x166ec5(0x8a),_0x196938),_0x292cc0(_0xca5422[_0x166ec5(0xb4)],_0x166ec5(0x85),_0x5d65fb[_0x166ec5(0xa6)]['UNIVER_SHEET']),_0xca5422['UniverSheetsExchangeClientPlugin']=_0x224549([_0x5d65fb[_0x166ec5(0xae)](_0x2b756d['UniverExchangeClientPlugin']),_0x4bbd63(0x1,_0x5d65fb[_0x166ec5(0x8f)](_0x5d65fb['Injector'])),_0x4bbd63(0x2,_0x5d65fb[_0x166ec5(0xb3)])],_0xca5422['UniverSheetsExchangeClientPlugin']),_0xca5422[_0x166ec5(0xc0)]=_0x1aa754,_0xca5422[_0x166ec5(0xb6)]=_0x4d7619,Object[_0x166ec5(0xa5)](_0xca5422,Symbol[_0x166ec5(0xb0)],{'value':_0x166ec5(0xb8)});}));function _0x167c(){var _0x5ea0f2=['9063740GLxpom','SHEET_EXCHANGE_CLIENT_PLUGIN','1947pOaYzV','46040cVHrtY','DependentOn','5858505rNQYJL','toStringTag','UniverExchangeClient','_initMenus','IConfigService','UniverSheetsExchangeClientPlugin','MenuItemType','ImportXLSXOperation','UniverSheetsUi','Module','object','amd','WorkbookExportPermission','UniverUi','Plugin','get','@univerjs/ui','ExportXLSXOperation','add','symbol','disposeWithMe','registerCommand','IExchangeOperateService','function','5925952QotYap','exchange-client.operation.export-xlsx','_injector','sheets-exchange-client.config','62EHygkC','setConfig','OPERATION','_configService','exchange-client.operation.import-xlsx','type','43539LViyZM','BUTTON','getMenuHiddenObservable','@univerjs/sheets-ui','pluginName','CommandType','_commandService','sheets-exchange-client.operation.exchange','IMenuManagerService','Inject','length','onStarting','FolderSingle','@univerjs-pro/exchange-client','getOwnPropertyDescriptor','UniverSheets','exchange.download','_menuManagerService','_initCommands','Disposable','_config','@univerjs/core','exportXLSXByUnitId','8bcmRTk','UniverSheetsExchangeClient','@univerjs/sheets','forEach','FILE','exchange.upload','316815wBzQfy','5bvLqof','defineProperty','UniverInstanceType','RibbonStartGroup','2319846rqHkCR','UNIVER_SHEET'];_0x167c=function(){return _0x5ea0f2;};return _0x167c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.3.0-
|
|
3
|
+
"version": "0.3.0-nightly.202410101606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,26 +43,26 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/core": "0.3.0-
|
|
48
|
-
"@univerjs/sheets
|
|
49
|
-
"@univerjs/ui": "0.3.0-
|
|
50
|
-
"@univerjs
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.3.0-nightly.202410101606",
|
|
47
|
+
"@univerjs/core": "0.3.0-nightly.202410101606",
|
|
48
|
+
"@univerjs/sheets": "0.3.0-nightly.202410101606",
|
|
49
|
+
"@univerjs/sheets-ui": "0.3.0-nightly.202410101606",
|
|
50
|
+
"@univerjs/ui": "0.3.0-nightly.202410101606"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@univerjs/icons": "^0.1.78",
|
|
54
|
-
"@univerjs-pro/exchange-client": "0.3.0-
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/ui": "0.3.0-
|
|
59
|
-
"@univerjs/sheets-ui": "0.3.0-
|
|
54
|
+
"@univerjs-pro/exchange-client": "0.3.0-nightly.202410101606",
|
|
55
|
+
"@univerjs/sheets": "0.3.0-nightly.202410101606",
|
|
56
|
+
"@univerjs/core": "0.3.0-nightly.202410101606",
|
|
57
|
+
"@univerjs/protocol": "0.1.39-alpha.24",
|
|
58
|
+
"@univerjs/ui": "0.3.0-nightly.202410101606",
|
|
59
|
+
"@univerjs/sheets-ui": "0.3.0-nightly.202410101606"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"typescript": "^5.6.2",
|
|
63
63
|
"vite": "^5.4.8",
|
|
64
64
|
"vitest": "^2.1.1",
|
|
65
|
-
"@univerjs-infra/shared": "0.3.0
|
|
65
|
+
"@univerjs-infra/shared": "0.3.0"
|
|
66
66
|
},
|
|
67
67
|
"univerSpace": {
|
|
68
68
|
".": {
|
|
@@ -82,7 +82,6 @@
|
|
|
82
82
|
"test:watch": "vitest",
|
|
83
83
|
"coverage": "vitest run --coverage",
|
|
84
84
|
"lint:types": "tsc --noEmit",
|
|
85
|
-
"build": "tsc && vite build"
|
|
86
|
-
"sync:pro:cnpm": "cnpm sync"
|
|
85
|
+
"build": "tsc && vite build"
|
|
87
86
|
}
|
|
88
87
|
}
|