@univerjs-pro/sheets-exchange-client 0.10.9 → 0.10.10-experimental.20251010-3f807c5
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 +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x598eef=_0x2cd4;(function(_0x12e27c,_0x5645dc){const _0x33e0f3=_0x2cd4,_0xe1709a=_0x12e27c();while(!![]){try{const _0x2dfe69=parseInt(_0x33e0f3(0x206))/0x1*(parseInt(_0x33e0f3(0x21f))/0x2)+parseInt(_0x33e0f3(0x1ff))/0x3+parseInt(_0x33e0f3(0x1f6))/0x4*(-parseInt(_0x33e0f3(0x1e8))/0x5)+-parseInt(_0x33e0f3(0x21e))/0x6+-parseInt(_0x33e0f3(0x1e6))/0x7*(-parseInt(_0x33e0f3(0x201))/0x8)+parseInt(_0x33e0f3(0x203))/0x9+-parseInt(_0x33e0f3(0x21c))/0xa*(parseInt(_0x33e0f3(0x1ef))/0xb);if(_0x2dfe69===_0x5645dc)break;else _0xe1709a['push'](_0xe1709a['shift']());}catch(_0x290445){_0xe1709a['push'](_0xe1709a['shift']());}}}(_0x2d9a,0xf0447));Object['defineProperty'](exports,Symbol[_0x598eef(0x1fa)],{'value':_0x598eef(0x21d)});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':_0x598eef(0x1de),'type':i['CommandType']['OPERATION'],'handler':async _0x3ce477=>{const _0x2af570=_0x598eef,_0x2f83fb=_0x3ce477[_0x2af570(0x215)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x2af570(0x20a)])[_0x2af570(0x215)](_0x2af570(0x1eb))?_0x2f83fb[_0x2af570(0x1f9)]():_0x2f83fb['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x598eef(0x21a),'type':i[_0x598eef(0x1ea)][_0x598eef(0x211)],'handler':async _0x331b70=>{const _0x272b9f=_0x598eef,_0xa5da5a=_0x331b70['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x272b9f(0x20a)])[_0x272b9f(0x215)](_0x272b9f(0x1eb))?_0xa5da5a[_0x272b9f(0x20c)]():_0xa5da5a[_0x272b9f(0x220)](),!0x0;}},v=_0x598eef(0x216),h={},S=_0x598eef(0x214);function x(_0x47ea3b){const _0x4a6eb9=_0x598eef;return{'id':S,'type':c[_0x4a6eb9(0x1ee)][_0x4a6eb9(0x1fb)],'icon':_0x4a6eb9(0x1ed),'tooltip':_0x4a6eb9(0x208),'hidden$':c[_0x4a6eb9(0x1ec)](_0x47ea3b,i[_0x4a6eb9(0x20d)][_0x4a6eb9(0x1e1)]),'disabled$':I[_0x4a6eb9(0x1e5)](_0x47ea3b,{'workbookTypes':[_[_0x4a6eb9(0x212)]]})};}function _0x2d9a(){const _0xd70915=['registerCommand','search','_initCommands','exportXLSXByUnitId','UniverInstanceType','ExportIcon','OTHERS','Plugin','OPERATION','WorkbookExportPermission','_initMenus','sheets-exchange-client.operation.exchange','get','sheets-exchange-client.config','onReady','_config','_configService','exchange-client.operation.export-xlsx','pluginName','20wZZAuE','Module','1219746oxCJbB','8338HtDjYP','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','_menuManagerService','_commandService','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','menu','mergeMenu','UNIVER_SHEET','IConfigService','type','BUTTON','getCurrentRangeDisable$','14VKKkBf','add','10XgITya','_injector','CommandType','unit','getMenuHiddenObservable','DirectExportIcon','MenuItemType','16585459WSHKyd','disposeWithMe','DependentOn','exchange.upload','setConfig','UniverSheetsExchangeClientPlugin','length','1023988ArtYBz','forEach','Injector','importXLSXToUnitId','toStringTag','SUBITEMS','IMenuManagerService','ImportXLSXOperation','onStarting','4034922CdAQnS','Disposable','3374896pIEHVA','Inject','15832476MRExey','FolderIcon','symbol','184qeMDZw','defineProperty','exchange.file'];_0x2d9a=function(){return _0xd70915;};return _0x2d9a();}function P(){const _0x1472cc=_0x598eef;return{'id':l['id'],'type':c[_0x1472cc(0x1ee)][_0x1472cc(0x1e4)],'title':_0x1472cc(0x1f2),'icon':_0x1472cc(0x204)};}function C(){const _0x158c36=_0x598eef;return{'id':p['id'],'type':c['MenuItemType'][_0x158c36(0x1e4)],'title':'exchange.download','icon':_0x158c36(0x20e)};}const f={[c['RibbonStartGroup'][_0x598eef(0x20f)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x2ca0c3,_0x33aa06,_0xf5010a,_0x785cee)=>{for(var _0x2e2399=_0x785cee>0x1?void 0x0:_0x785cee?T(_0x33aa06,_0xf5010a):_0x33aa06,_0x3a3fed=_0x2ca0c3['length']-0x1,_0x2f9657;_0x3a3fed>=0x0;_0x3a3fed--)(_0x2f9657=_0x2ca0c3[_0x3a3fed])&&(_0x2e2399=_0x2f9657(_0x2e2399)||_0x2e2399);return _0x2e2399;},m=(_0x3bc223,_0xa94eb)=>(_0x500693,_0x44db8a)=>_0xa94eb(_0x500693,_0x44db8a,_0x3bc223);let u=class extends i[_0x598eef(0x200)]{constructor(_0x592446,_0x9501e0){const _0x3a0203=_0x598eef;super(),this[_0x3a0203(0x223)]=_0x592446,this[_0x3a0203(0x222)]=_0x9501e0,this[_0x3a0203(0x20b)](),this[_0x3a0203(0x213)]();}[_0x598eef(0x20b)](){const _0x1e311e=_0x598eef;[l,p][_0x1e311e(0x1f7)](_0x5f3e17=>{const _0x280fa5=_0x1e311e;this[_0x280fa5(0x1f0)](this[_0x280fa5(0x223)][_0x280fa5(0x209)](_0x5f3e17));});}[_0x598eef(0x213)](){const _0x7a06ae=_0x598eef;this['_menuManagerService'][_0x7a06ae(0x1e0)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x598eef(0x1fc)])],u);var O=Object[_0x598eef(0x207)],U=Object[_0x598eef(0x1dd)],X=(_0x3ec4ff,_0x553624,_0x4b31df)=>_0x553624 in _0x3ec4ff?O(_0x3ec4ff,_0x553624,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b31df}):_0x3ec4ff[_0x553624]=_0x4b31df,N=(_0x5b67b9,_0x2162ec,_0x434f67,_0x540625)=>{const _0x52e67c=_0x598eef;for(var _0x20fb5b=_0x540625>0x1?void 0x0:_0x540625?U(_0x2162ec,_0x434f67):_0x2162ec,_0x458986=_0x5b67b9[_0x52e67c(0x1f5)]-0x1,_0x2015ca;_0x458986>=0x0;_0x458986--)(_0x2015ca=_0x5b67b9[_0x458986])&&(_0x20fb5b=_0x2015ca(_0x20fb5b)||_0x20fb5b);return _0x20fb5b;},d=(_0x12d6e9,_0x56a5df)=>(_0x498a41,_0xaa61b1)=>_0x56a5df(_0x498a41,_0xaa61b1,_0x12d6e9),E=(_0x5b0fc2,_0x5c8692,_0x189e62)=>X(_0x5b0fc2,typeof _0x5c8692!=_0x598eef(0x205)?_0x5c8692+'':_0x5c8692,_0x189e62);const L=_0x598eef(0x221);function _0x2cd4(_0x51515a,_0x566d2a){const _0x2d9af1=_0x2d9a();return _0x2cd4=function(_0x2cd4ba,_0x10cfb0){_0x2cd4ba=_0x2cd4ba-0x1dd;let _0x2542ab=_0x2d9af1[_0x2cd4ba];return _0x2542ab;},_0x2cd4(_0x51515a,_0x566d2a);}exports[_0x598eef(0x1f4)]=class extends i[_0x598eef(0x210)]{constructor(_0x2c86a3=h,_0x5b9664,_0x6aa84){const _0x1aaf52=_0x598eef;super(),this[_0x1aaf52(0x218)]=_0x2c86a3,this[_0x1aaf52(0x1e9)]=_0x5b9664,this[_0x1aaf52(0x219)]=_0x6aa84;const {menu:_0x580462,..._0x6f7e30}=i['merge']({},h,this[_0x1aaf52(0x218)]);_0x580462&&this[_0x1aaf52(0x219)][_0x1aaf52(0x1f3)](_0x1aaf52(0x1df),_0x580462,{'merge':!0x0}),this['_configService'][_0x1aaf52(0x1f3)](v,_0x6f7e30);}[_0x598eef(0x1fe)](){const _0x51ef05=_0x598eef;[[u]][_0x51ef05(0x1f7)](_0x45c9bb=>this[_0x51ef05(0x1e9)][_0x51ef05(0x1e7)](_0x45c9bb));}[_0x598eef(0x217)](){const _0x2dd71b=_0x598eef;this[_0x2dd71b(0x1e9)][_0x2dd71b(0x215)](u);}},E(exports[_0x598eef(0x1f4)],_0x598eef(0x21b),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x598eef(0x1e3),i[_0x598eef(0x20d)][_0x598eef(0x1e1)]),exports[_0x598eef(0x1f4)]=N([i[_0x598eef(0x1f1)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x598eef(0x202)](i[_0x598eef(0x1f8)])),d(0x2,i[_0x598eef(0x1e2)])],exports[_0x598eef(0x1f4)]),exports['ExportXLSXOperation']=p,exports[_0x598eef(0x1fd)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16d765=_0x3381;(function(_0x66baae,_0x50414e){const _0x1a04c5=_0x3381,_0x3dd849=_0x66baae();while(!![]){try{const _0x6a041a=-parseInt(_0x1a04c5(0x113))/0x1*(parseInt(_0x1a04c5(0x12f))/0x2)+parseInt(_0x1a04c5(0x105))/0x3+-parseInt(_0x1a04c5(0x125))/0x4*(parseInt(_0x1a04c5(0x114))/0x5)+parseInt(_0x1a04c5(0x108))/0x6+-parseInt(_0x1a04c5(0x131))/0x7*(-parseInt(_0x1a04c5(0x12b))/0x8)+-parseInt(_0x1a04c5(0x11e))/0x9+-parseInt(_0x1a04c5(0x115))/0xa*(parseInt(_0x1a04c5(0x11b))/0xb);if(_0x6a041a===_0x50414e)break;else _0x3dd849['push'](_0x3dd849['shift']());}catch(_0x25edb0){_0x3dd849['push'](_0x3dd849['shift']());}}}(_0x68d3,0x69a6c));import{IExchangeOperateService as _0x9bd66c,UniverExchangeClientPlugin as _0x5301f1}from'@univerjs-pro/exchange-client';function _0x68d3(){const _0x577d89=['get','64GwgbQQ','disposeWithMe','ExportIcon','_configService','_menuManagerService','sheets-exchange-client.config','299704ZmDhwx','mergeMenu','exchange.file','unit','113078huDSUn','forEach','147Kjijem','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','2519685olsdfz','onReady','exchange.upload','1869960PMGgHf','pluginName','OTHERS','setConfig','_injector','add','sheets-exchange-client.operation.exchange','OPERATION','BUTTON','FolderIcon','importXLSXToUnitId','1WkUEFH','44710auCjVh','496730NlSCxT','menu','onStarting','exportXLSXByUnitId','_commandService','length','121GhJwfO','search','_config','6835644dvyGPm','UNIVER_SHEET','_initMenus','exportXLSXBySnapshot','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0x68d3=function(){return _0x577d89;};return _0x68d3();}import{CommandType as _0x42b47c,UniverInstanceType as _0x3ac87b,Disposable as _0x306f76,ICommandService as _0x474783,DependentOn as _0x118a67,Inject as _0x225aeb,Injector as _0x3a6fec,IConfigService as _0x3a63bd,Plugin as _0x2872a9,merge as _0x269904}from'@univerjs/core';import{MenuItemType as _0x4e846a,getMenuHiddenObservable as _0x1ee987,RibbonStartGroup as _0x4e87c8,IMenuManagerService as _0x362a4c}from'@univerjs/ui';import{WorkbookExportPermission as _0x23dc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40d8e3}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x42b47c[_0x16d765(0x10f)],'handler':async _0x45f8ec=>{const _0x5275a3=_0x16d765,_0x1eeb8e=_0x45f8ec['get'](_0x9bd66c);return new URLSearchParams(location[_0x5275a3(0x11c)])[_0x5275a3(0x124)](_0x5275a3(0x12e))?_0x1eeb8e[_0x5275a3(0x112)]():_0x1eeb8e['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x16d765(0x132),'type':_0x42b47c['OPERATION'],'handler':async _0x2b39a6=>{const _0x23c61a=_0x16d765,_0x25c5c1=_0x2b39a6['get'](_0x9bd66c);return new URLSearchParams(location[_0x23c61a(0x11c)])[_0x23c61a(0x124)](_0x23c61a(0x12e))?_0x25c5c1[_0x23c61a(0x118)]():_0x25c5c1[_0x23c61a(0x121)](),!0x0;}},H=_0x16d765(0x12a),l={},S=_0x16d765(0x10e);function _0x3381(_0x32bb6f,_0x5ad281){const _0x68d3b3=_0x68d3();return _0x3381=function(_0x33811c,_0x299eca){_0x33811c=_0x33811c-0x105;let _0x2e6794=_0x68d3b3[_0x33811c];return _0x2e6794;},_0x3381(_0x32bb6f,_0x5ad281);}function R(_0x3d8d81){const _0x6e2115=_0x16d765;return{'id':S,'type':_0x4e846a['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x6e2115(0x12d),'hidden$':_0x1ee987(_0x3d8d81,_0x3ac87b[_0x6e2115(0x11f)]),'disabled$':_0x40d8e3(_0x3d8d81,{'workbookTypes':[_0x23dc30]})};}function w(){const _0x1294d4=_0x16d765;return{'id':p['id'],'type':_0x4e846a[_0x1294d4(0x110)],'title':_0x1294d4(0x107),'icon':_0x1294d4(0x111)};}function D(){const _0x47ef93=_0x16d765;return{'id':u['id'],'type':_0x4e846a[_0x47ef93(0x110)],'title':'exchange.download','icon':_0x47ef93(0x127)};}const F={[_0x4e87c8[_0x16d765(0x10a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x260c3b,_0x56a5a5,_0x585089,_0x49640c)=>{for(var _0x4ddbcd=_0x49640c>0x1?void 0x0:_0x49640c?G(_0x56a5a5,_0x585089):_0x56a5a5,_0x1df538=_0x260c3b['length']-0x1,_0x2eca0b;_0x1df538>=0x0;_0x1df538--)(_0x2eca0b=_0x260c3b[_0x1df538])&&(_0x4ddbcd=_0x2eca0b(_0x4ddbcd)||_0x4ddbcd);return _0x4ddbcd;},d=(_0x85589d,_0x1ea7e8)=>(_0x14ce48,_0x5d59a1)=>_0x1ea7e8(_0x14ce48,_0x5d59a1,_0x85589d);let c=class extends _0x306f76{constructor(_0x452aaa,_0x38d2b2){const _0x448b30=_0x16d765;super(),this[_0x448b30(0x119)]=_0x452aaa,this[_0x448b30(0x129)]=_0x38d2b2,this['_initCommands'](),this[_0x448b30(0x120)]();}['_initCommands'](){const _0x1ff22d=_0x16d765;[p,u][_0x1ff22d(0x130)](_0x1ef0a5=>{const _0x131a4e=_0x1ff22d;this[_0x131a4e(0x126)](this[_0x131a4e(0x119)][_0x131a4e(0x122)](_0x1ef0a5));});}[_0x16d765(0x120)](){const _0x9c49b4=_0x16d765;this[_0x9c49b4(0x129)][_0x9c49b4(0x12c)](F);}};c=A([d(0x0,_0x474783),d(0x1,_0x362a4c)],c);var j=Object['defineProperty'],B=Object[_0x16d765(0x133)],$=(_0x54b4d6,_0x491acd,_0x883411)=>_0x491acd in _0x54b4d6?j(_0x54b4d6,_0x491acd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x883411}):_0x54b4d6[_0x491acd]=_0x883411,V=(_0x1cbb1c,_0x4ef96d,_0x4e0123,_0xfa5ccc)=>{const _0x2dcc5f=_0x16d765;for(var _0x40cc13=_0xfa5ccc>0x1?void 0x0:_0xfa5ccc?B(_0x4ef96d,_0x4e0123):_0x4ef96d,_0x7a1529=_0x1cbb1c[_0x2dcc5f(0x11a)]-0x1,_0xd344be;_0x7a1529>=0x0;_0x7a1529--)(_0xd344be=_0x1cbb1c[_0x7a1529])&&(_0x40cc13=_0xd344be(_0x40cc13)||_0x40cc13);return _0x40cc13;},_=(_0x1ed62a,_0x4aa9d1)=>(_0x50494c,_0x38800a)=>_0x4aa9d1(_0x50494c,_0x38800a,_0x1ed62a),I=(_0x1a7fab,_0x24adca,_0x22e7db)=>$(_0x1a7fab,typeof _0x24adca!='symbol'?_0x24adca+'':_0x24adca,_0x22e7db);const W=_0x16d765(0x123);let s=class extends _0x2872a9{constructor(_0x39dd06=l,_0x3321fd,_0x1fd31f){const _0x45da84=_0x16d765;super(),this[_0x45da84(0x11d)]=_0x39dd06,this['_injector']=_0x3321fd,this[_0x45da84(0x128)]=_0x1fd31f;const {menu:_0x5f1a95,..._0x1596ee}=_0x269904({},l,this[_0x45da84(0x11d)]);_0x5f1a95&&this['_configService'][_0x45da84(0x10b)](_0x45da84(0x116),_0x5f1a95,{'merge':!0x0}),this[_0x45da84(0x128)]['setConfig'](H,_0x1596ee);}[_0x16d765(0x117)](){const _0x2eac50=_0x16d765;[[c]][_0x2eac50(0x130)](_0x9f9392=>this['_injector'][_0x2eac50(0x10d)](_0x9f9392));}[_0x16d765(0x106)](){const _0xad1157=_0x16d765;this[_0xad1157(0x10c)][_0xad1157(0x124)](c);}};I(s,_0x16d765(0x109),W),I(s,'type',_0x3ac87b[_0x16d765(0x11f)]),s=V([_0x118a67(_0x5301f1),_(0x1,_0x225aeb(_0x3a6fec)),_(0x2,_0x3a63bd)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16d765=_0x3381;(function(_0x66baae,_0x50414e){const _0x1a04c5=_0x3381,_0x3dd849=_0x66baae();while(!![]){try{const _0x6a041a=-parseInt(_0x1a04c5(0x113))/0x1*(parseInt(_0x1a04c5(0x12f))/0x2)+parseInt(_0x1a04c5(0x105))/0x3+-parseInt(_0x1a04c5(0x125))/0x4*(parseInt(_0x1a04c5(0x114))/0x5)+parseInt(_0x1a04c5(0x108))/0x6+-parseInt(_0x1a04c5(0x131))/0x7*(-parseInt(_0x1a04c5(0x12b))/0x8)+-parseInt(_0x1a04c5(0x11e))/0x9+-parseInt(_0x1a04c5(0x115))/0xa*(parseInt(_0x1a04c5(0x11b))/0xb);if(_0x6a041a===_0x50414e)break;else _0x3dd849['push'](_0x3dd849['shift']());}catch(_0x25edb0){_0x3dd849['push'](_0x3dd849['shift']());}}}(_0x68d3,0x69a6c));import{IExchangeOperateService as _0x9bd66c,UniverExchangeClientPlugin as _0x5301f1}from'@univerjs-pro/exchange-client';function _0x68d3(){const _0x577d89=['get','64GwgbQQ','disposeWithMe','ExportIcon','_configService','_menuManagerService','sheets-exchange-client.config','299704ZmDhwx','mergeMenu','exchange.file','unit','113078huDSUn','forEach','147Kjijem','exchange-client.operation.export-xlsx','getOwnPropertyDescriptor','2519685olsdfz','onReady','exchange.upload','1869960PMGgHf','pluginName','OTHERS','setConfig','_injector','add','sheets-exchange-client.operation.exchange','OPERATION','BUTTON','FolderIcon','importXLSXToUnitId','1WkUEFH','44710auCjVh','496730NlSCxT','menu','onStarting','exportXLSXByUnitId','_commandService','length','121GhJwfO','search','_config','6835644dvyGPm','UNIVER_SHEET','_initMenus','exportXLSXBySnapshot','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN'];_0x68d3=function(){return _0x577d89;};return _0x68d3();}import{CommandType as _0x42b47c,UniverInstanceType as _0x3ac87b,Disposable as _0x306f76,ICommandService as _0x474783,DependentOn as _0x118a67,Inject as _0x225aeb,Injector as _0x3a6fec,IConfigService as _0x3a63bd,Plugin as _0x2872a9,merge as _0x269904}from'@univerjs/core';import{MenuItemType as _0x4e846a,getMenuHiddenObservable as _0x1ee987,RibbonStartGroup as _0x4e87c8,IMenuManagerService as _0x362a4c}from'@univerjs/ui';import{WorkbookExportPermission as _0x23dc30}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40d8e3}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x42b47c[_0x16d765(0x10f)],'handler':async _0x45f8ec=>{const _0x5275a3=_0x16d765,_0x1eeb8e=_0x45f8ec['get'](_0x9bd66c);return new URLSearchParams(location[_0x5275a3(0x11c)])[_0x5275a3(0x124)](_0x5275a3(0x12e))?_0x1eeb8e[_0x5275a3(0x112)]():_0x1eeb8e['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x16d765(0x132),'type':_0x42b47c['OPERATION'],'handler':async _0x2b39a6=>{const _0x23c61a=_0x16d765,_0x25c5c1=_0x2b39a6['get'](_0x9bd66c);return new URLSearchParams(location[_0x23c61a(0x11c)])[_0x23c61a(0x124)](_0x23c61a(0x12e))?_0x25c5c1[_0x23c61a(0x118)]():_0x25c5c1[_0x23c61a(0x121)](),!0x0;}},H=_0x16d765(0x12a),l={},S=_0x16d765(0x10e);function _0x3381(_0x32bb6f,_0x5ad281){const _0x68d3b3=_0x68d3();return _0x3381=function(_0x33811c,_0x299eca){_0x33811c=_0x33811c-0x105;let _0x2e6794=_0x68d3b3[_0x33811c];return _0x2e6794;},_0x3381(_0x32bb6f,_0x5ad281);}function R(_0x3d8d81){const _0x6e2115=_0x16d765;return{'id':S,'type':_0x4e846a['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x6e2115(0x12d),'hidden$':_0x1ee987(_0x3d8d81,_0x3ac87b[_0x6e2115(0x11f)]),'disabled$':_0x40d8e3(_0x3d8d81,{'workbookTypes':[_0x23dc30]})};}function w(){const _0x1294d4=_0x16d765;return{'id':p['id'],'type':_0x4e846a[_0x1294d4(0x110)],'title':_0x1294d4(0x107),'icon':_0x1294d4(0x111)};}function D(){const _0x47ef93=_0x16d765;return{'id':u['id'],'type':_0x4e846a[_0x47ef93(0x110)],'title':'exchange.download','icon':_0x47ef93(0x127)};}const F={[_0x4e87c8[_0x16d765(0x10a)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x260c3b,_0x56a5a5,_0x585089,_0x49640c)=>{for(var _0x4ddbcd=_0x49640c>0x1?void 0x0:_0x49640c?G(_0x56a5a5,_0x585089):_0x56a5a5,_0x1df538=_0x260c3b['length']-0x1,_0x2eca0b;_0x1df538>=0x0;_0x1df538--)(_0x2eca0b=_0x260c3b[_0x1df538])&&(_0x4ddbcd=_0x2eca0b(_0x4ddbcd)||_0x4ddbcd);return _0x4ddbcd;},d=(_0x85589d,_0x1ea7e8)=>(_0x14ce48,_0x5d59a1)=>_0x1ea7e8(_0x14ce48,_0x5d59a1,_0x85589d);let c=class extends _0x306f76{constructor(_0x452aaa,_0x38d2b2){const _0x448b30=_0x16d765;super(),this[_0x448b30(0x119)]=_0x452aaa,this[_0x448b30(0x129)]=_0x38d2b2,this['_initCommands'](),this[_0x448b30(0x120)]();}['_initCommands'](){const _0x1ff22d=_0x16d765;[p,u][_0x1ff22d(0x130)](_0x1ef0a5=>{const _0x131a4e=_0x1ff22d;this[_0x131a4e(0x126)](this[_0x131a4e(0x119)][_0x131a4e(0x122)](_0x1ef0a5));});}[_0x16d765(0x120)](){const _0x9c49b4=_0x16d765;this[_0x9c49b4(0x129)][_0x9c49b4(0x12c)](F);}};c=A([d(0x0,_0x474783),d(0x1,_0x362a4c)],c);var j=Object['defineProperty'],B=Object[_0x16d765(0x133)],$=(_0x54b4d6,_0x491acd,_0x883411)=>_0x491acd in _0x54b4d6?j(_0x54b4d6,_0x491acd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x883411}):_0x54b4d6[_0x491acd]=_0x883411,V=(_0x1cbb1c,_0x4ef96d,_0x4e0123,_0xfa5ccc)=>{const _0x2dcc5f=_0x16d765;for(var _0x40cc13=_0xfa5ccc>0x1?void 0x0:_0xfa5ccc?B(_0x4ef96d,_0x4e0123):_0x4ef96d,_0x7a1529=_0x1cbb1c[_0x2dcc5f(0x11a)]-0x1,_0xd344be;_0x7a1529>=0x0;_0x7a1529--)(_0xd344be=_0x1cbb1c[_0x7a1529])&&(_0x40cc13=_0xd344be(_0x40cc13)||_0x40cc13);return _0x40cc13;},_=(_0x1ed62a,_0x4aa9d1)=>(_0x50494c,_0x38800a)=>_0x4aa9d1(_0x50494c,_0x38800a,_0x1ed62a),I=(_0x1a7fab,_0x24adca,_0x22e7db)=>$(_0x1a7fab,typeof _0x24adca!='symbol'?_0x24adca+'':_0x24adca,_0x22e7db);const W=_0x16d765(0x123);let s=class extends _0x2872a9{constructor(_0x39dd06=l,_0x3321fd,_0x1fd31f){const _0x45da84=_0x16d765;super(),this[_0x45da84(0x11d)]=_0x39dd06,this['_injector']=_0x3321fd,this[_0x45da84(0x128)]=_0x1fd31f;const {menu:_0x5f1a95,..._0x1596ee}=_0x269904({},l,this[_0x45da84(0x11d)]);_0x5f1a95&&this['_configService'][_0x45da84(0x10b)](_0x45da84(0x116),_0x5f1a95,{'merge':!0x0}),this[_0x45da84(0x128)]['setConfig'](H,_0x1596ee);}[_0x16d765(0x117)](){const _0x2eac50=_0x16d765;[[c]][_0x2eac50(0x130)](_0x9f9392=>this['_injector'][_0x2eac50(0x10d)](_0x9f9392));}[_0x16d765(0x106)](){const _0xad1157=_0x16d765;this[_0xad1157(0x10c)][_0xad1157(0x124)](c);}};I(s,_0x16d765(0x109),W),I(s,'type',_0x3ac87b[_0x16d765(0x11f)]),s=V([_0x118a67(_0x5301f1),_(0x1,_0x225aeb(_0x3a6fec)),_(0x2,_0x3a63bd)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x46e3(_0x4c76c0,_0x20b44e){const _0x4bedaf=_0x4bed();return _0x46e3=function(_0x46e383,_0x5cd52c){_0x46e383=_0x46e383-0x1f4;let _0x4e9824=_0x4bedaf[_0x46e383];return _0x4e9824;},_0x46e3(_0x4c76c0,_0x20b44e);}function _0x4bed(){const _0x46fd08=['198003kojOyt','_commandService','SUBITEMS','sheets-exchange-client.operation.exchange','setConfig','_initMenus','ImportXLSXOperation','81hyfmqA','exchange-client.operation.export-xlsx','function','MenuItemType','DependentOn','pluginName','symbol','merge','exports','exchange.file','385144qAOhUQ','UniverProExchangeClient','UNIVER_SHEET','registerCommand','UniverSheetsExchangeClientPlugin','amd','DirectExportIcon','IMenuManagerService','length','12TzoKqR','WorkbookExportPermission','IConfigService','170454vkymzz','_injector','get','unit','UniverProSheetsExchangeClient','mergeMenu','CommandType','OTHERS','@univerjs/sheets','exchange-client.operation.import-xlsx','exportXLSXByUnitId','Module','2rxbtrx','sheets-exchange-client.config','exchange.download','UniverSheets','568810WIGqpc','@univerjs/sheets-ui','48AWoPMI','_config','forEach','Inject','RibbonStartGroup','IExchangeOperateService','add','629125EywnbS','UniverExchangeClientPlugin','importXLSXToSnapshot','disposeWithMe','UniverInstanceType','22WIGKGp','ExportIcon','object','getOwnPropertyDescriptor','defineProperty','Plugin','FolderIcon','importXLSXToUnitId','164187uNIWjM','160251wnqJeq','onStarting','UniverCore','exchange.upload','@univerjs/ui','ICommandService','type','_configService','UniverSheetsUi','OPERATION','search','@univerjs-pro/exchange-client','getCurrentRangeDisable$','77wlgsZN','onReady'];_0x4bed=function(){return _0x46fd08;};return _0x4bed();}(function(_0x42b623,_0x1d5e3f){const _0x1a9252=_0x46e3,_0x1fca62=_0x42b623();while(!![]){try{const _0xab317f=parseInt(_0x1a9252(0x200))/0x1*(parseInt(_0x1a9252(0x239))/0x2)+-parseInt(_0x1a9252(0x210))/0x3+parseInt(_0x1a9252(0x22a))/0x4*(parseInt(_0x1a9252(0x246))/0x5)+-parseInt(_0x1a9252(0x22d))/0x6*(-parseInt(_0x1a9252(0x20e))/0x7)+-parseInt(_0x1a9252(0x221))/0x8*(parseInt(_0x1a9252(0x217))/0x9)+parseInt(_0x1a9252(0x23d))/0xa*(-parseInt(_0x1a9252(0x1f8))/0xb)+parseInt(_0x1a9252(0x23f))/0xc*(parseInt(_0x1a9252(0x201))/0xd);if(_0xab317f===_0x1d5e3f)break;else _0x1fca62['push'](_0x1fca62['shift']());}catch(_0x325a04){_0x1fca62['push'](_0x1fca62['shift']());}}}(_0x4bed,0x46e73),function(_0x3f794e,_0x4fbfb4){const _0x375c11=_0x46e3;typeof exports==_0x375c11(0x1fa)&&typeof module<'u'?_0x4fbfb4(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x375c11(0x219)&&define[_0x375c11(0x226)]?define([_0x375c11(0x21f),_0x375c11(0x20c),'@univerjs/core',_0x375c11(0x205),_0x375c11(0x235),_0x375c11(0x23e)],_0x4fbfb4):(_0x3f794e=typeof globalThis<'u'?globalThis:_0x3f794e||self,_0x4fbfb4(_0x3f794e[_0x375c11(0x231)]={},_0x3f794e[_0x375c11(0x222)],_0x3f794e[_0x375c11(0x203)],_0x3f794e['UniverUi'],_0x3f794e[_0x375c11(0x23c)],_0x3f794e[_0x375c11(0x209)]));}(this,function(_0x1eb668,_0x376047,_0xc06ca2,_0x456ca1,_0x55541e,_0x180a4e){'use strict';const _0x994481=_0x46e3;const _0x252128={'id':_0x994481(0x236),'type':_0xc06ca2[_0x994481(0x233)][_0x994481(0x20a)],'handler':async _0x49365d=>{const _0x5f31fb=_0x994481,_0x520820=_0x49365d[_0x5f31fb(0x22f)](_0x376047[_0x5f31fb(0x244)]);return new URLSearchParams(location[_0x5f31fb(0x20b)])[_0x5f31fb(0x22f)](_0x5f31fb(0x230))?_0x520820[_0x5f31fb(0x1ff)]():_0x520820[_0x5f31fb(0x1f5)](),!0x0;}},_0x3ff418={'id':_0x994481(0x218),'type':_0xc06ca2['CommandType'][_0x994481(0x20a)],'handler':async _0x5ba358=>{const _0xc69036=_0x994481,_0x1fdb7c=_0x5ba358[_0xc69036(0x22f)](_0x376047['IExchangeOperateService']);return new URLSearchParams(location[_0xc69036(0x20b)])[_0xc69036(0x22f)]('unit')?_0x1fdb7c[_0xc69036(0x237)]():_0x1fdb7c['exportXLSXBySnapshot'](),!0x0;}},_0x59ba5f=_0x994481(0x23a),_0x3f06dc={},_0x33283e=_0x994481(0x213);function _0x29e265(_0x4fae30){const _0x4a3fee=_0x994481;return{'id':_0x33283e,'type':_0x456ca1[_0x4a3fee(0x21a)][_0x4a3fee(0x212)],'icon':_0x4a3fee(0x227),'tooltip':_0x4a3fee(0x220),'hidden$':_0x456ca1['getMenuHiddenObservable'](_0x4fae30,_0xc06ca2[_0x4a3fee(0x1f7)][_0x4a3fee(0x223)]),'disabled$':_0x180a4e[_0x4a3fee(0x20d)](_0x4fae30,{'workbookTypes':[_0x55541e[_0x4a3fee(0x22b)]]})};}function _0x2885e0(){const _0x112d4d=_0x994481;return{'id':_0x252128['id'],'type':_0x456ca1[_0x112d4d(0x21a)]['BUTTON'],'title':_0x112d4d(0x204),'icon':_0x112d4d(0x1fe)};}function _0x3c0104(){const _0x29c4eb=_0x994481;return{'id':_0x3ff418['id'],'type':_0x456ca1['MenuItemType']['BUTTON'],'title':_0x29c4eb(0x23b),'icon':_0x29c4eb(0x1f9)};}const _0x51c2e0={[_0x456ca1[_0x994481(0x243)][_0x994481(0x234)]]:{[_0x33283e]:{'order':0.3,'menuItemFactory':_0x29e265,[_0x252128['id']]:{'order':0x0,'menuItemFactory':_0x2885e0},[_0x3ff418['id']]:{'order':0x1,'menuItemFactory':_0x3c0104}}}};var _0x375b5a=Object[_0x994481(0x1fb)],_0x19e559=(_0xfcc437,_0x40adca,_0x49bfb9,_0x1d016c)=>{for(var _0x1d35f6=_0x1d016c>0x1?void 0x0:_0x1d016c?_0x375b5a(_0x40adca,_0x49bfb9):_0x40adca,_0xb58fe6=_0xfcc437['length']-0x1,_0x18c0a6;_0xb58fe6>=0x0;_0xb58fe6--)(_0x18c0a6=_0xfcc437[_0xb58fe6])&&(_0x1d35f6=_0x18c0a6(_0x1d35f6)||_0x1d35f6);return _0x1d35f6;},_0x7b81aa=(_0x835316,_0xa13692)=>(_0x13d25e,_0x1c1775)=>_0xa13692(_0x13d25e,_0x1c1775,_0x835316);let _0x9fe742=class extends _0xc06ca2['Disposable']{constructor(_0x191d5d,_0x385a76){const _0x1bac25=_0x994481;super(),this[_0x1bac25(0x211)]=_0x191d5d,this['_menuManagerService']=_0x385a76,this['_initCommands'](),this[_0x1bac25(0x215)]();}['_initCommands'](){const _0x33283d=_0x994481;[_0x252128,_0x3ff418][_0x33283d(0x241)](_0x224c77=>{const _0x58a311=_0x33283d;this[_0x58a311(0x1f6)](this[_0x58a311(0x211)][_0x58a311(0x224)](_0x224c77));});}[_0x994481(0x215)](){const _0x469d25=_0x994481;this['_menuManagerService'][_0x469d25(0x232)](_0x51c2e0);}};_0x9fe742=_0x19e559([_0x7b81aa(0x0,_0xc06ca2[_0x994481(0x206)]),_0x7b81aa(0x1,_0x456ca1[_0x994481(0x228)])],_0x9fe742);var _0x4a64c9=Object['defineProperty'],_0x23e971=Object[_0x994481(0x1fb)],_0x1d705f=(_0x45e52c,_0x1f6646,_0x12c6f0)=>_0x1f6646 in _0x45e52c?_0x4a64c9(_0x45e52c,_0x1f6646,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12c6f0}):_0x45e52c[_0x1f6646]=_0x12c6f0,_0x73c9b3=(_0x469063,_0x605c7a,_0x3debf7,_0x235348)=>{const _0x1a27c2=_0x994481;for(var _0x40bf1a=_0x235348>0x1?void 0x0:_0x235348?_0x23e971(_0x605c7a,_0x3debf7):_0x605c7a,_0x16b83d=_0x469063[_0x1a27c2(0x229)]-0x1,_0x50374e;_0x16b83d>=0x0;_0x16b83d--)(_0x50374e=_0x469063[_0x16b83d])&&(_0x40bf1a=_0x50374e(_0x40bf1a)||_0x40bf1a);return _0x40bf1a;},_0x5176c9=(_0x456d50,_0x86d51f)=>(_0x5b2fce,_0x568fee)=>_0x86d51f(_0x5b2fce,_0x568fee,_0x456d50),_0x54077f=(_0x7d4c6c,_0x54a2e1,_0x220733)=>_0x1d705f(_0x7d4c6c,typeof _0x54a2e1!=_0x994481(0x21d)?_0x54a2e1+'':_0x54a2e1,_0x220733);const _0x58f3a7='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x1eb668[_0x994481(0x225)]=class extends _0xc06ca2[_0x994481(0x1fd)]{constructor(_0x59d861=_0x3f06dc,_0x4ecb43,_0x15a283){const _0x5024e3=_0x994481;super(),this[_0x5024e3(0x240)]=_0x59d861,this[_0x5024e3(0x22e)]=_0x4ecb43,this['_configService']=_0x15a283;const {menu:_0x1c0700,..._0x4d6864}=_0xc06ca2[_0x5024e3(0x21e)]({},_0x3f06dc,this[_0x5024e3(0x240)]);_0x1c0700&&this[_0x5024e3(0x208)][_0x5024e3(0x214)]('menu',_0x1c0700,{'merge':!0x0}),this[_0x5024e3(0x208)][_0x5024e3(0x214)](_0x59ba5f,_0x4d6864);}[_0x994481(0x202)](){const _0x77c53e=_0x994481;[[_0x9fe742]][_0x77c53e(0x241)](_0x153adb=>this['_injector'][_0x77c53e(0x245)](_0x153adb));}[_0x994481(0x20f)](){const _0x7070de=_0x994481;this['_injector'][_0x7070de(0x22f)](_0x9fe742);}},_0x54077f(_0x1eb668[_0x994481(0x225)],_0x994481(0x21c),_0x58f3a7),_0x54077f(_0x1eb668['UniverSheetsExchangeClientPlugin'],_0x994481(0x207),_0xc06ca2[_0x994481(0x1f7)][_0x994481(0x223)]),_0x1eb668['UniverSheetsExchangeClientPlugin']=_0x73c9b3([_0xc06ca2[_0x994481(0x21b)](_0x376047[_0x994481(0x1f4)]),_0x5176c9(0x1,_0xc06ca2[_0x994481(0x242)](_0xc06ca2['Injector'])),_0x5176c9(0x2,_0xc06ca2[_0x994481(0x22c)])],_0x1eb668[_0x994481(0x225)]),_0x1eb668['ExportXLSXOperation']=_0x3ff418,_0x1eb668[_0x994481(0x216)]=_0x252128,Object[_0x994481(0x1fc)](_0x1eb668,Symbol['toStringTag'],{'value':_0x994481(0x238)});}));
|
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.10-experimental.20251010-3f807c5",
|
|
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/sheets-ui": "0.10.
|
|
49
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.10-experimental.20251010-3f807c5",
|
|
46
|
+
"@univerjs/core": "0.10.10-experimental.20251010-3f807c5",
|
|
47
|
+
"@univerjs/sheets": "0.10.10-experimental.20251010-3f807c5",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.10-experimental.20251010-3f807c5",
|
|
49
|
+
"@univerjs/ui": "0.10.10-experimental.20251010-3f807c5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.2",
|
|
53
|
-
"vite": "^7.1.
|
|
53
|
+
"vite": "^7.1.7",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.10"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|