@univerjs-pro/sheets-exchange-client 0.15.2 → 0.15.3-insiders.20260131-b9b8805
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 _0x2177e2=_0x4788;(function(_0x55ec3e,_0x55d8bf){const _0xeeecb2=_0x4788,_0x291298=_0x55ec3e();while(!![]){try{const _0x27c352=parseInt(_0xeeecb2(0xcf))/0x1*(-parseInt(_0xeeecb2(0xb1))/0x2)+-parseInt(_0xeeecb2(0xc3))/0x3*(-parseInt(_0xeeecb2(0xa1))/0x4)+-parseInt(_0xeeecb2(0xbc))/0x5+parseInt(_0xeeecb2(0xba))/0x6+parseInt(_0xeeecb2(0xc1))/0x7+-parseInt(_0xeeecb2(0xc8))/0x8*(-parseInt(_0xeeecb2(0xdb))/0x9)+-parseInt(_0xeeecb2(0xb3))/0xa*(parseInt(_0xeeecb2(0xc6))/0xb);if(_0x27c352===_0x55d8bf)break;else _0x291298['push'](_0x291298['shift']());}catch(_0x29122f){_0x291298['push'](_0x291298['shift']());}}}(_0x4af5,0x3aff2));Object[_0x2177e2(0xbb)](exports,Symbol[_0x2177e2(0xb8)],{'value':_0x2177e2(0xd6)});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':'exchange-client.operation.import-xlsx','type':i[_0x2177e2(0xc2)]['OPERATION'],'handler':async _0x4f42da=>{const _0x49da97=_0x2177e2,_0xe7ed12=_0x4f42da[_0x49da97(0xd5)](g[_0x49da97(0xd8)]);return new URLSearchParams(location[_0x49da97(0xda)])[_0x49da97(0xd5)](_0x49da97(0xd2))?_0xe7ed12[_0x49da97(0xb9)]():_0xe7ed12['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x2177e2(0xce),'type':i[_0x2177e2(0xc2)][_0x2177e2(0xcd)],'handler':async _0x3ebe47=>{const _0x48846d=_0x2177e2,_0xe33e05=_0x3ebe47['get'](g[_0x48846d(0xd8)]);return new URLSearchParams(location['search'])[_0x48846d(0xd5)](_0x48846d(0xd2))?_0xe33e05[_0x48846d(0xa8)]():_0xe33e05['exportXLSXBySnapshot'](),!0x0;}},v=_0x2177e2(0xc4),h={},S=_0x2177e2(0xa0);function x(_0x1fcc0a){const _0x394d2b=_0x2177e2;return{'id':S,'type':c[_0x394d2b(0xdc)]['SUBITEMS'],'icon':_0x394d2b(0xa7),'tooltip':_0x394d2b(0xa4),'hidden$':c[_0x394d2b(0xb4)](_0x1fcc0a,i[_0x394d2b(0x9f)][_0x394d2b(0xaa)]),'disabled$':I[_0x394d2b(0xcb)](_0x1fcc0a,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3fa774=_0x2177e2;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':_0x3fa774(0xc5)};}function C(){const _0x3efbf1=_0x2177e2;return{'id':p['id'],'type':c[_0x3efbf1(0xdc)]['BUTTON'],'title':'exchange.download','icon':_0x3efbf1(0xb2)};}const f={[c[_0x2177e2(0xd0)][_0x2177e2(0xa2)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x4dcf50,_0x34b571,_0xd1fe72,_0xb49dd3)=>{const _0x3ed683=_0x2177e2;for(var _0x2683f2=_0xb49dd3>0x1?void 0x0:_0xb49dd3?T(_0x34b571,_0xd1fe72):_0x34b571,_0x57b449=_0x4dcf50[_0x3ed683(0xb0)]-0x1,_0x5c52e6;_0x57b449>=0x0;_0x57b449--)(_0x5c52e6=_0x4dcf50[_0x57b449])&&(_0x2683f2=_0x5c52e6(_0x2683f2)||_0x2683f2);return _0x2683f2;},m=(_0x15e967,_0xfe18a5)=>(_0x2ffe67,_0x186b9e)=>_0xfe18a5(_0x2ffe67,_0x186b9e,_0x15e967);let u=class extends i['Disposable']{constructor(_0x4c2490,_0xc1af45){const _0x11cfdd=_0x2177e2;super(),this['_commandService']=_0x4c2490,this[_0x11cfdd(0xa3)]=_0xc1af45,this['_initCommands'](),this['_initMenus']();}[_0x2177e2(0xca)](){const _0x239224=_0x2177e2;[l,p][_0x239224(0xb7)](_0x48e0d9=>{const _0x690e3a=_0x239224;this[_0x690e3a(0xdf)](this[_0x690e3a(0xab)][_0x690e3a(0xd1)](_0x48e0d9));});}[_0x2177e2(0x9e)](){const _0x1fdf62=_0x2177e2;this[_0x1fdf62(0xa3)][_0x1fdf62(0xd7)](f);}};function _0x4af5(){const _0x3a4c0a=['4728NIVxmB','_injector','_initCommands','getCurrentRangeDisable$','getOwnPropertyDescriptor','OPERATION','exchange-client.operation.export-xlsx','4283hCqDFb','RibbonStartGroup','registerCommand','unit','_configService','type','get','Module','mergeMenu','IExchangeOperateService','menu','search','6624fdIxgM','MenuItemType','ImportXLSXOperation','DependentOn','disposeWithMe','IMenuManagerService','pluginName','_initMenus','UniverInstanceType','sheets-exchange-client.operation.exchange','196956ooRCGx','OTHERS','_menuManagerService','exchange.file','UniverExchangeClientPlugin','setConfig','DirectExportIcon','exportXLSXByUnitId','onReady','UNIVER_SHEET','_commandService','onStarting','IConfigService','symbol','Inject','length','194vdQckM','ExportIcon','48670ICosyY','getMenuHiddenObservable','UniverSheetsExchangeClientPlugin','add','forEach','toStringTag','importXLSXToUnitId','2849922lxfJtR','defineProperty','1543970UkdAcM','ExportXLSXOperation','SHEET_EXCHANGE_CLIENT_PLUGIN','Plugin','ICommandService','966714onEPiy','CommandType','3gvBubM','sheets-exchange-client.config','FolderIcon','297fPolRx','_config'];_0x4af5=function(){return _0x3a4c0a;};return _0x4af5();}u=y([m(0x0,i[_0x2177e2(0xc0)]),m(0x1,c[_0x2177e2(0xe0)])],u);function _0x4788(_0x783f08,_0x567a85){_0x783f08=_0x783f08-0x9e;const _0x4af5a7=_0x4af5();let _0x4788f7=_0x4af5a7[_0x783f08];return _0x4788f7;}var O=Object[_0x2177e2(0xbb)],U=Object[_0x2177e2(0xcc)],X=(_0x11a88c,_0xc85544,_0x4417f)=>_0xc85544 in _0x11a88c?O(_0x11a88c,_0xc85544,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4417f}):_0x11a88c[_0xc85544]=_0x4417f,N=(_0x368659,_0x59abf0,_0x2a34de,_0x27bed1)=>{for(var _0x1a02c6=_0x27bed1>0x1?void 0x0:_0x27bed1?U(_0x59abf0,_0x2a34de):_0x59abf0,_0x33b843=_0x368659['length']-0x1,_0x593e12;_0x33b843>=0x0;_0x33b843--)(_0x593e12=_0x368659[_0x33b843])&&(_0x1a02c6=_0x593e12(_0x1a02c6)||_0x1a02c6);return _0x1a02c6;},d=(_0x51d473,_0x38637c)=>(_0x19b2b5,_0x528729)=>_0x38637c(_0x19b2b5,_0x528729,_0x51d473),E=(_0x2d407f,_0x3a9b5f,_0xd6861e)=>X(_0x2d407f,typeof _0x3a9b5f!=_0x2177e2(0xae)?_0x3a9b5f+'':_0x3a9b5f,_0xd6861e);const L=_0x2177e2(0xbe);exports[_0x2177e2(0xb5)]=class extends i[_0x2177e2(0xbf)]{constructor(_0x35ea47=h,_0x379a80,_0x5e4f99){const _0x474d64=_0x2177e2;super(),this[_0x474d64(0xc7)]=_0x35ea47,this['_injector']=_0x379a80,this[_0x474d64(0xd3)]=_0x5e4f99;const {menu:_0x5a52bf,..._0x529661}=i['merge']({},h,this[_0x474d64(0xc7)]);_0x5a52bf&&this[_0x474d64(0xd3)]['setConfig'](_0x474d64(0xd9),_0x5a52bf,{'merge':!0x0}),this[_0x474d64(0xd3)][_0x474d64(0xa6)](v,_0x529661);}[_0x2177e2(0xac)](){const _0x48bd80=_0x2177e2;[[u]][_0x48bd80(0xb7)](_0x58e8a0=>this[_0x48bd80(0xc9)][_0x48bd80(0xb6)](_0x58e8a0));}[_0x2177e2(0xa9)](){const _0x4f5ab4=_0x2177e2;this[_0x4f5ab4(0xc9)][_0x4f5ab4(0xd5)](u);}},E(exports[_0x2177e2(0xb5)],_0x2177e2(0xe1),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x2177e2(0xd4),i[_0x2177e2(0x9f)][_0x2177e2(0xaa)]),exports[_0x2177e2(0xb5)]=N([i[_0x2177e2(0xde)](g[_0x2177e2(0xa5)]),d(0x1,i[_0x2177e2(0xaf)](i['Injector'])),d(0x2,i[_0x2177e2(0xad)])],exports[_0x2177e2(0xb5)]),exports[_0x2177e2(0xbd)]=p,exports[_0x2177e2(0xdd)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51e65d=_0x1cbf;(function(_0x44e1e7,_0x554870){const _0x4c5812=_0x1cbf,_0x23dfdf=_0x44e1e7();while(!![]){try{const _0x5256d5=-parseInt(_0x4c5812(0x1c3))/0x1+parseInt(_0x4c5812(0x1ca))/0x2+parseInt(_0x4c5812(0x1a6))/0x3*(parseInt(_0x4c5812(0x1c6))/0x4)+parseInt(_0x4c5812(0x1bf))/0x5*(parseInt(_0x4c5812(0x1c5))/0x6)+-parseInt(_0x4c5812(0x1c7))/0x7*(parseInt(_0x4c5812(0x1ab))/0x8)+parseInt(_0x4c5812(0x1cd))/0x9+-parseInt(_0x4c5812(0x1c8))/0xa;if(_0x5256d5===_0x554870)break;else _0x23dfdf['push'](_0x23dfdf['shift']());}catch(_0xb7da06){_0x23dfdf['push'](_0x23dfdf['shift']());}}}(_0x3c6c,0x54a79));import{IExchangeOperateService as _0x2bf989,UniverExchangeClientPlugin as _0x2ad91b}from'@univerjs-pro/exchange-client';function _0x3c6c(){const _0x79e90e=['pluginName','exchange.upload','_initCommands','unit','exportXLSXBySnapshot','defineProperty','search','OTHERS','2355455nggsxg','DirectExportIcon','exchange.file','length','289140ZPfbGX','sheets-exchange-client.config','6druWKY','148MyzeQU','992271gOngsT','5512100IsgpRL','exchange.download','538152fCuvaS','_config','symbol','3675861VtxrrI','_injector','BUTTON','getOwnPropertyDescriptor','OPERATION','onReady','setConfig','_menuManagerService','importXLSXToSnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','SUBITEMS','menu','add','37602xLuGKg','_initMenus','get','exportXLSXByUnitId','mergeMenu','24wOxYjg','ExportIcon','onStarting','FolderIcon','type','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','forEach','UNIVER_SHEET','_commandService','_configService'];_0x3c6c=function(){return _0x79e90e;};return _0x3c6c();}import{CommandType as _0x4b8fb8,UniverInstanceType as _0x5b58a3,Disposable as _0x16b32a,ICommandService as _0x4fcda2,DependentOn as _0x5c8fbb,Inject as _0x5649d6,Injector as _0x36d2bf,Plugin as _0x2d76a3,merge as _0x3f60dd,IConfigService as _0x2690f8}from'@univerjs/core';import{MenuItemType as _0x4a1abc,getMenuHiddenObservable as _0x242d33,RibbonStartGroup as _0x3e951a,IMenuManagerService as _0x278dfd}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e4491}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x359648}from'@univerjs/sheets-ui';const p={'id':_0x51e65d(0x1d7),'type':_0x4b8fb8['OPERATION'],'handler':async _0x224910=>{const _0x16859e=_0x51e65d,_0x54cca5=_0x224910['get'](_0x2bf989);return new URLSearchParams(location['search'])[_0x16859e(0x1a8)](_0x16859e(0x1ba))?_0x54cca5['importXLSXToUnitId']():_0x54cca5[_0x16859e(0x1d5)](),!0x0;}},u={'id':_0x51e65d(0x1d6),'type':_0x4b8fb8[_0x51e65d(0x1d1)],'handler':async _0x54c711=>{const _0x58f39d=_0x51e65d,_0x511338=_0x54c711['get'](_0x2bf989);return new URLSearchParams(location[_0x58f39d(0x1bd)])['get'](_0x58f39d(0x1ba))?_0x511338[_0x58f39d(0x1a9)]():_0x511338[_0x58f39d(0x1bb)](),!0x0;}},H=_0x51e65d(0x1c4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x9b5b84){const _0x2fe05c=_0x51e65d;return{'id':S,'type':_0x4a1abc[_0x2fe05c(0x1d8)],'icon':_0x2fe05c(0x1c0),'tooltip':_0x2fe05c(0x1c1),'hidden$':_0x242d33(_0x9b5b84,_0x5b58a3[_0x2fe05c(0x1b4)]),'disabled$':_0x359648(_0x9b5b84,{'workbookTypes':[_0x4e4491]})};}function w(){const _0x68835c=_0x51e65d;return{'id':p['id'],'type':_0x4a1abc[_0x68835c(0x1cf)],'title':_0x68835c(0x1b8),'icon':_0x68835c(0x1ae)};}function _0x1cbf(_0x159ce9,_0x10dfb0){_0x159ce9=_0x159ce9-0x1a5;const _0x3c6c13=_0x3c6c();let _0x1cbf82=_0x3c6c13[_0x159ce9];return _0x1cbf82;}function D(){const _0x251a45=_0x51e65d;return{'id':u['id'],'type':_0x4a1abc[_0x251a45(0x1cf)],'title':_0x251a45(0x1c9),'icon':_0x251a45(0x1ac)};}const F={[_0x3e951a[_0x51e65d(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x51e65d(0x1d0)],A=(_0x498064,_0x50ad20,_0x428da1,_0x3898a5)=>{const _0x3a0fdd=_0x51e65d;for(var _0x4a4d72=_0x3898a5>0x1?void 0x0:_0x3898a5?G(_0x50ad20,_0x428da1):_0x50ad20,_0x575578=_0x498064[_0x3a0fdd(0x1c2)]-0x1,_0x3ace9c;_0x575578>=0x0;_0x575578--)(_0x3ace9c=_0x498064[_0x575578])&&(_0x4a4d72=_0x3ace9c(_0x4a4d72)||_0x4a4d72);return _0x4a4d72;},d=(_0x21533d,_0x1d0e9f)=>(_0x5b9f82,_0xeb9192)=>_0x1d0e9f(_0x5b9f82,_0xeb9192,_0x21533d);let c=class extends _0x16b32a{constructor(_0x28b193,_0x3ae9be){const _0x55bfd9=_0x51e65d;super(),this[_0x55bfd9(0x1b5)]=_0x28b193,this[_0x55bfd9(0x1d4)]=_0x3ae9be,this[_0x55bfd9(0x1b9)](),this[_0x55bfd9(0x1a7)]();}[_0x51e65d(0x1b9)](){[p,u]['forEach'](_0x203865=>{const _0x1d33c=_0x1cbf;this[_0x1d33c(0x1b2)](this[_0x1d33c(0x1b5)][_0x1d33c(0x1b0)](_0x203865));});}[_0x51e65d(0x1a7)](){const _0x392214=_0x51e65d;this[_0x392214(0x1d4)][_0x392214(0x1aa)](F);}};c=A([d(0x0,_0x4fcda2),d(0x1,_0x278dfd)],c);var j=Object[_0x51e65d(0x1bc)],B=Object[_0x51e65d(0x1d0)],$=(_0x42383a,_0x1f477b,_0x2739a7)=>_0x1f477b in _0x42383a?j(_0x42383a,_0x1f477b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2739a7}):_0x42383a[_0x1f477b]=_0x2739a7,V=(_0x245fa0,_0x31c857,_0x1047ed,_0x58941b)=>{const _0x464d70=_0x51e65d;for(var _0x590192=_0x58941b>0x1?void 0x0:_0x58941b?B(_0x31c857,_0x1047ed):_0x31c857,_0x427a4b=_0x245fa0[_0x464d70(0x1c2)]-0x1,_0x2b14ff;_0x427a4b>=0x0;_0x427a4b--)(_0x2b14ff=_0x245fa0[_0x427a4b])&&(_0x590192=_0x2b14ff(_0x590192)||_0x590192);return _0x590192;},_=(_0x33f3e4,_0x18ea02)=>(_0x294473,_0x480e36)=>_0x18ea02(_0x294473,_0x480e36,_0x33f3e4),I=(_0x34db02,_0x257423,_0x519110)=>$(_0x34db02,typeof _0x257423!=_0x51e65d(0x1cc)?_0x257423+'':_0x257423,_0x519110);const W=_0x51e65d(0x1b1);let s=class extends _0x2d76a3{constructor(_0x48c69a=l,_0x223e81,_0x21fdc7){const _0x1c7612=_0x51e65d;super(),this[_0x1c7612(0x1cb)]=_0x48c69a,this[_0x1c7612(0x1ce)]=_0x223e81,this[_0x1c7612(0x1b6)]=_0x21fdc7;const {menu:_0x266a03,..._0x58cfb1}=_0x3f60dd({},l,this[_0x1c7612(0x1cb)]);_0x266a03&&this[_0x1c7612(0x1b6)][_0x1c7612(0x1d3)](_0x1c7612(0x1d9),_0x266a03,{'merge':!0x0}),this[_0x1c7612(0x1b6)]['setConfig'](H,_0x58cfb1);}[_0x51e65d(0x1ad)](){const _0x522350=_0x51e65d;[[c]][_0x522350(0x1b3)](_0x4eb077=>this[_0x522350(0x1ce)][_0x522350(0x1a5)](_0x4eb077));}[_0x51e65d(0x1d2)](){const _0x14109b=_0x51e65d;this[_0x14109b(0x1ce)][_0x14109b(0x1a8)](c);}};I(s,_0x51e65d(0x1b7),W),I(s,_0x51e65d(0x1af),_0x5b58a3[_0x51e65d(0x1b4)]),s=V([_0x5c8fbb(_0x2ad91b),_(0x1,_0x5649d6(_0x36d2bf)),_(0x2,_0x2690f8)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51e65d=_0x1cbf;(function(_0x44e1e7,_0x554870){const _0x4c5812=_0x1cbf,_0x23dfdf=_0x44e1e7();while(!![]){try{const _0x5256d5=-parseInt(_0x4c5812(0x1c3))/0x1+parseInt(_0x4c5812(0x1ca))/0x2+parseInt(_0x4c5812(0x1a6))/0x3*(parseInt(_0x4c5812(0x1c6))/0x4)+parseInt(_0x4c5812(0x1bf))/0x5*(parseInt(_0x4c5812(0x1c5))/0x6)+-parseInt(_0x4c5812(0x1c7))/0x7*(parseInt(_0x4c5812(0x1ab))/0x8)+parseInt(_0x4c5812(0x1cd))/0x9+-parseInt(_0x4c5812(0x1c8))/0xa;if(_0x5256d5===_0x554870)break;else _0x23dfdf['push'](_0x23dfdf['shift']());}catch(_0xb7da06){_0x23dfdf['push'](_0x23dfdf['shift']());}}}(_0x3c6c,0x54a79));import{IExchangeOperateService as _0x2bf989,UniverExchangeClientPlugin as _0x2ad91b}from'@univerjs-pro/exchange-client';function _0x3c6c(){const _0x79e90e=['pluginName','exchange.upload','_initCommands','unit','exportXLSXBySnapshot','defineProperty','search','OTHERS','2355455nggsxg','DirectExportIcon','exchange.file','length','289140ZPfbGX','sheets-exchange-client.config','6druWKY','148MyzeQU','992271gOngsT','5512100IsgpRL','exchange.download','538152fCuvaS','_config','symbol','3675861VtxrrI','_injector','BUTTON','getOwnPropertyDescriptor','OPERATION','onReady','setConfig','_menuManagerService','importXLSXToSnapshot','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','SUBITEMS','menu','add','37602xLuGKg','_initMenus','get','exportXLSXByUnitId','mergeMenu','24wOxYjg','ExportIcon','onStarting','FolderIcon','type','registerCommand','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','forEach','UNIVER_SHEET','_commandService','_configService'];_0x3c6c=function(){return _0x79e90e;};return _0x3c6c();}import{CommandType as _0x4b8fb8,UniverInstanceType as _0x5b58a3,Disposable as _0x16b32a,ICommandService as _0x4fcda2,DependentOn as _0x5c8fbb,Inject as _0x5649d6,Injector as _0x36d2bf,Plugin as _0x2d76a3,merge as _0x3f60dd,IConfigService as _0x2690f8}from'@univerjs/core';import{MenuItemType as _0x4a1abc,getMenuHiddenObservable as _0x242d33,RibbonStartGroup as _0x3e951a,IMenuManagerService as _0x278dfd}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e4491}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x359648}from'@univerjs/sheets-ui';const p={'id':_0x51e65d(0x1d7),'type':_0x4b8fb8['OPERATION'],'handler':async _0x224910=>{const _0x16859e=_0x51e65d,_0x54cca5=_0x224910['get'](_0x2bf989);return new URLSearchParams(location['search'])[_0x16859e(0x1a8)](_0x16859e(0x1ba))?_0x54cca5['importXLSXToUnitId']():_0x54cca5[_0x16859e(0x1d5)](),!0x0;}},u={'id':_0x51e65d(0x1d6),'type':_0x4b8fb8[_0x51e65d(0x1d1)],'handler':async _0x54c711=>{const _0x58f39d=_0x51e65d,_0x511338=_0x54c711['get'](_0x2bf989);return new URLSearchParams(location[_0x58f39d(0x1bd)])['get'](_0x58f39d(0x1ba))?_0x511338[_0x58f39d(0x1a9)]():_0x511338[_0x58f39d(0x1bb)](),!0x0;}},H=_0x51e65d(0x1c4),l={},S='sheets-exchange-client.operation.exchange';function R(_0x9b5b84){const _0x2fe05c=_0x51e65d;return{'id':S,'type':_0x4a1abc[_0x2fe05c(0x1d8)],'icon':_0x2fe05c(0x1c0),'tooltip':_0x2fe05c(0x1c1),'hidden$':_0x242d33(_0x9b5b84,_0x5b58a3[_0x2fe05c(0x1b4)]),'disabled$':_0x359648(_0x9b5b84,{'workbookTypes':[_0x4e4491]})};}function w(){const _0x68835c=_0x51e65d;return{'id':p['id'],'type':_0x4a1abc[_0x68835c(0x1cf)],'title':_0x68835c(0x1b8),'icon':_0x68835c(0x1ae)};}function _0x1cbf(_0x159ce9,_0x10dfb0){_0x159ce9=_0x159ce9-0x1a5;const _0x3c6c13=_0x3c6c();let _0x1cbf82=_0x3c6c13[_0x159ce9];return _0x1cbf82;}function D(){const _0x251a45=_0x51e65d;return{'id':u['id'],'type':_0x4a1abc[_0x251a45(0x1cf)],'title':_0x251a45(0x1c9),'icon':_0x251a45(0x1ac)};}const F={[_0x3e951a[_0x51e65d(0x1be)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x51e65d(0x1d0)],A=(_0x498064,_0x50ad20,_0x428da1,_0x3898a5)=>{const _0x3a0fdd=_0x51e65d;for(var _0x4a4d72=_0x3898a5>0x1?void 0x0:_0x3898a5?G(_0x50ad20,_0x428da1):_0x50ad20,_0x575578=_0x498064[_0x3a0fdd(0x1c2)]-0x1,_0x3ace9c;_0x575578>=0x0;_0x575578--)(_0x3ace9c=_0x498064[_0x575578])&&(_0x4a4d72=_0x3ace9c(_0x4a4d72)||_0x4a4d72);return _0x4a4d72;},d=(_0x21533d,_0x1d0e9f)=>(_0x5b9f82,_0xeb9192)=>_0x1d0e9f(_0x5b9f82,_0xeb9192,_0x21533d);let c=class extends _0x16b32a{constructor(_0x28b193,_0x3ae9be){const _0x55bfd9=_0x51e65d;super(),this[_0x55bfd9(0x1b5)]=_0x28b193,this[_0x55bfd9(0x1d4)]=_0x3ae9be,this[_0x55bfd9(0x1b9)](),this[_0x55bfd9(0x1a7)]();}[_0x51e65d(0x1b9)](){[p,u]['forEach'](_0x203865=>{const _0x1d33c=_0x1cbf;this[_0x1d33c(0x1b2)](this[_0x1d33c(0x1b5)][_0x1d33c(0x1b0)](_0x203865));});}[_0x51e65d(0x1a7)](){const _0x392214=_0x51e65d;this[_0x392214(0x1d4)][_0x392214(0x1aa)](F);}};c=A([d(0x0,_0x4fcda2),d(0x1,_0x278dfd)],c);var j=Object[_0x51e65d(0x1bc)],B=Object[_0x51e65d(0x1d0)],$=(_0x42383a,_0x1f477b,_0x2739a7)=>_0x1f477b in _0x42383a?j(_0x42383a,_0x1f477b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2739a7}):_0x42383a[_0x1f477b]=_0x2739a7,V=(_0x245fa0,_0x31c857,_0x1047ed,_0x58941b)=>{const _0x464d70=_0x51e65d;for(var _0x590192=_0x58941b>0x1?void 0x0:_0x58941b?B(_0x31c857,_0x1047ed):_0x31c857,_0x427a4b=_0x245fa0[_0x464d70(0x1c2)]-0x1,_0x2b14ff;_0x427a4b>=0x0;_0x427a4b--)(_0x2b14ff=_0x245fa0[_0x427a4b])&&(_0x590192=_0x2b14ff(_0x590192)||_0x590192);return _0x590192;},_=(_0x33f3e4,_0x18ea02)=>(_0x294473,_0x480e36)=>_0x18ea02(_0x294473,_0x480e36,_0x33f3e4),I=(_0x34db02,_0x257423,_0x519110)=>$(_0x34db02,typeof _0x257423!=_0x51e65d(0x1cc)?_0x257423+'':_0x257423,_0x519110);const W=_0x51e65d(0x1b1);let s=class extends _0x2d76a3{constructor(_0x48c69a=l,_0x223e81,_0x21fdc7){const _0x1c7612=_0x51e65d;super(),this[_0x1c7612(0x1cb)]=_0x48c69a,this[_0x1c7612(0x1ce)]=_0x223e81,this[_0x1c7612(0x1b6)]=_0x21fdc7;const {menu:_0x266a03,..._0x58cfb1}=_0x3f60dd({},l,this[_0x1c7612(0x1cb)]);_0x266a03&&this[_0x1c7612(0x1b6)][_0x1c7612(0x1d3)](_0x1c7612(0x1d9),_0x266a03,{'merge':!0x0}),this[_0x1c7612(0x1b6)]['setConfig'](H,_0x58cfb1);}[_0x51e65d(0x1ad)](){const _0x522350=_0x51e65d;[[c]][_0x522350(0x1b3)](_0x4eb077=>this[_0x522350(0x1ce)][_0x522350(0x1a5)](_0x4eb077));}[_0x51e65d(0x1d2)](){const _0x14109b=_0x51e65d;this[_0x14109b(0x1ce)][_0x14109b(0x1a8)](c);}};I(s,_0x51e65d(0x1b7),W),I(s,_0x51e65d(0x1af),_0x5b58a3[_0x51e65d(0x1b4)]),s=V([_0x5c8fbb(_0x2ad91b),_(0x1,_0x5649d6(_0x36d2bf)),_(0x2,_0x2690f8)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3e38(_0xf6acaa,_0x5d225b){_0xf6acaa=_0xf6acaa-0xb7;const _0x38fe4a=_0x38fe();let _0x3e38da=_0x38fe4a[_0xf6acaa];return _0x3e38da;}function _0x38fe(){const _0x25eeb4=['UniverInstanceType','Inject','ExportIcon','_initMenus','UniverSheetsExchangeClientPlugin','menu','pluginName','_initCommands','mergeMenu','sheets-exchange-client.operation.exchange','MenuItemType','amd','10mONSEA','exchange-client.operation.import-xlsx','exchange.file','toStringTag','forEach','IExchangeOperateService','35hbVnwS','setConfig','_menuManagerService','symbol','_configService','get','ExportXLSXOperation','@univerjs/sheets-ui','exportXLSXBySnapshot','FolderIcon','registerCommand','BUTTON','unit','UniverUi','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','onStarting','getMenuHiddenObservable','exportXLSXByUnitId','ICommandService','3464124FtTBef','325980nGSttn','12993318jXKudE','length','@univerjs/ui','UniverProExchangeClient','Plugin','exchange.upload','OTHERS','UniverSheetsUi','importXLSXToSnapshot','627522khXGUg','UniverProSheetsExchangeClient','4546952SNgdDq','type','sheets-exchange-client.config','add','161769AnqXNr','defineProperty','2167193ruePaM','CommandType','Injector','WorkbookExportPermission','IConfigService','_config','OPERATION','@univerjs-pro/exchange-client','importXLSXToUnitId','_commandService','UniverCore','DirectExportIcon','merge','UniverExchangeClientPlugin','getCurrentRangeDisable$','@univerjs/sheets','IMenuManagerService','search','disposeWithMe'];_0x38fe=function(){return _0x25eeb4;};return _0x38fe();}(function(_0x49e6c3,_0x509623){const _0x47cf7c=_0x3e38,_0xfd1d21=_0x49e6c3();while(!![]){try{const _0xb4a53c=parseInt(_0x47cf7c(0xe7))/0x1+parseInt(_0x47cf7c(0xc1))/0x2*(-parseInt(_0x47cf7c(0xed))/0x3)+parseInt(_0x47cf7c(0xdd))/0x4*(-parseInt(_0x47cf7c(0xc7))/0x5)+-parseInt(_0x47cf7c(0xdc))/0x6+parseInt(_0x47cf7c(0xef))/0x7+-parseInt(_0x47cf7c(0xe9))/0x8+parseInt(_0x47cf7c(0xde))/0x9;if(_0xb4a53c===_0x509623)break;else _0xfd1d21['push'](_0xfd1d21['shift']());}catch(_0x578edd){_0xfd1d21['push'](_0xfd1d21['shift']());}}}(_0x38fe,0x6070c),function(_0x5781c5,_0x49b07c){const _0x2b110b=_0x3e38;typeof exports=='object'&&typeof module<'u'?_0x49b07c(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2b110b(0xc0)]?define(['exports',_0x2b110b(0xf6),'@univerjs/core',_0x2b110b(0xe0),_0x2b110b(0xfe),_0x2b110b(0xce)],_0x49b07c):(_0x5781c5=typeof globalThis<'u'?globalThis:_0x5781c5||self,_0x49b07c(_0x5781c5[_0x2b110b(0xe8)]={},_0x5781c5[_0x2b110b(0xe1)],_0x5781c5[_0x2b110b(0xf9)],_0x5781c5[_0x2b110b(0xd4)],_0x5781c5['UniverSheets'],_0x5781c5[_0x2b110b(0xe5)]));}(this,function(_0x141f0d,_0x52a735,_0x51c9b0,_0x1db30f,_0x386c2b,_0x40b5aa){'use strict';const _0x1cd62c=_0x3e38;const _0x56a8ea={'id':_0x1cd62c(0xc2),'type':_0x51c9b0['CommandType'][_0x1cd62c(0xf5)],'handler':async _0x5fc510=>{const _0x1fe6aa=_0x1cd62c,_0x35fb81=_0x5fc510['get'](_0x52a735['IExchangeOperateService']);return new URLSearchParams(location[_0x1fe6aa(0x100)])[_0x1fe6aa(0xcc)](_0x1fe6aa(0xd3))?_0x35fb81[_0x1fe6aa(0xf7)]():_0x35fb81[_0x1fe6aa(0xe6)](),!0x0;}},_0x5a8621={'id':'exchange-client.operation.export-xlsx','type':_0x51c9b0[_0x1cd62c(0xf0)]['OPERATION'],'handler':async _0x5178eb=>{const _0x1b63cf=_0x1cd62c,_0x31665e=_0x5178eb[_0x1b63cf(0xcc)](_0x52a735[_0x1b63cf(0xc6)]);return new URLSearchParams(location['search'])['get'](_0x1b63cf(0xd3))?_0x31665e[_0x1b63cf(0xda)]():_0x31665e[_0x1b63cf(0xcf)](),!0x0;}},_0x545b96=_0x1cd62c(0xeb),_0x53a325={},_0xc87d34=_0x1cd62c(0xbe);function _0x241fa6(_0x2f4fad){const _0x1b6e55=_0x1cd62c;return{'id':_0xc87d34,'type':_0x1db30f['MenuItemType'][_0x1b6e55(0xd7)],'icon':_0x1b6e55(0xfa),'tooltip':_0x1b6e55(0xc3),'hidden$':_0x1db30f[_0x1b6e55(0xd9)](_0x2f4fad,_0x51c9b0[_0x1b6e55(0x102)]['UNIVER_SHEET']),'disabled$':_0x40b5aa[_0x1b6e55(0xfd)](_0x2f4fad,{'workbookTypes':[_0x386c2b[_0x1b6e55(0xf2)]]})};}function _0x434ae(){const _0x2fe079=_0x1cd62c;return{'id':_0x56a8ea['id'],'type':_0x1db30f[_0x2fe079(0xbf)]['BUTTON'],'title':_0x2fe079(0xe3),'icon':_0x2fe079(0xd0)};}function _0x867b0b(){const _0x4d5453=_0x1cd62c;return{'id':_0x5a8621['id'],'type':_0x1db30f['MenuItemType'][_0x4d5453(0xd2)],'title':'exchange.download','icon':_0x4d5453(0xb7)};}const _0x1104fb={[_0x1db30f['RibbonStartGroup'][_0x1cd62c(0xe4)]]:{[_0xc87d34]:{'order':0.3,'menuItemFactory':_0x241fa6,[_0x56a8ea['id']]:{'order':0x0,'menuItemFactory':_0x434ae},[_0x5a8621['id']]:{'order':0x1,'menuItemFactory':_0x867b0b}}}};var _0xf0d253=Object['getOwnPropertyDescriptor'],_0x51a5e2=(_0x56bcf3,_0xddc034,_0x576d74,_0x46ffa3)=>{const _0xb9f7fd=_0x1cd62c;for(var _0x340d6f=_0x46ffa3>0x1?void 0x0:_0x46ffa3?_0xf0d253(_0xddc034,_0x576d74):_0xddc034,_0x7c4a51=_0x56bcf3[_0xb9f7fd(0xdf)]-0x1,_0x2c6e3f;_0x7c4a51>=0x0;_0x7c4a51--)(_0x2c6e3f=_0x56bcf3[_0x7c4a51])&&(_0x340d6f=_0x2c6e3f(_0x340d6f)||_0x340d6f);return _0x340d6f;},_0x514f58=(_0x3e783d,_0x282798)=>(_0x2d30ca,_0x2ec761)=>_0x282798(_0x2d30ca,_0x2ec761,_0x3e783d);let _0x4aa93c=class extends _0x51c9b0['Disposable']{constructor(_0x345024,_0x261e14){const _0x5d8691=_0x1cd62c;super(),this[_0x5d8691(0xf8)]=_0x345024,this[_0x5d8691(0xc9)]=_0x261e14,this[_0x5d8691(0xbc)](),this['_initMenus']();}[_0x1cd62c(0xbc)](){const _0x262fd2=_0x1cd62c;[_0x56a8ea,_0x5a8621][_0x262fd2(0xc5)](_0x570370=>{const _0x4e29bd=_0x262fd2;this[_0x4e29bd(0x101)](this['_commandService'][_0x4e29bd(0xd1)](_0x570370));});}[_0x1cd62c(0xb8)](){const _0x57b9c3=_0x1cd62c;this['_menuManagerService'][_0x57b9c3(0xbd)](_0x1104fb);}};_0x4aa93c=_0x51a5e2([_0x514f58(0x0,_0x51c9b0[_0x1cd62c(0xdb)]),_0x514f58(0x1,_0x1db30f[_0x1cd62c(0xff)])],_0x4aa93c);var _0x122b96=Object[_0x1cd62c(0xee)],_0x25eef3=Object['getOwnPropertyDescriptor'],_0x314313=(_0x50a9f8,_0x13d973,_0x8ebdf7)=>_0x13d973 in _0x50a9f8?_0x122b96(_0x50a9f8,_0x13d973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8ebdf7}):_0x50a9f8[_0x13d973]=_0x8ebdf7,_0x3dfd87=(_0x377307,_0x4eef6e,_0x55fbd7,_0x683727)=>{const _0x4ac44e=_0x1cd62c;for(var _0x23f486=_0x683727>0x1?void 0x0:_0x683727?_0x25eef3(_0x4eef6e,_0x55fbd7):_0x4eef6e,_0x94887=_0x377307[_0x4ac44e(0xdf)]-0x1,_0x52abb3;_0x94887>=0x0;_0x94887--)(_0x52abb3=_0x377307[_0x94887])&&(_0x23f486=_0x52abb3(_0x23f486)||_0x23f486);return _0x23f486;},_0x3caa13=(_0x2ec65c,_0x2695b6)=>(_0x155257,_0x92d45e)=>_0x2695b6(_0x155257,_0x92d45e,_0x2ec65c),_0x58cb3e=(_0x532c19,_0x48b460,_0x558d46)=>_0x314313(_0x532c19,typeof _0x48b460!=_0x1cd62c(0xca)?_0x48b460+'':_0x48b460,_0x558d46);const _0x31a033=_0x1cd62c(0xd6);_0x141f0d['UniverSheetsExchangeClientPlugin']=class extends _0x51c9b0[_0x1cd62c(0xe2)]{constructor(_0x552dd7=_0x53a325,_0xbb7d69,_0x2417d2){const _0x53181a=_0x1cd62c;super(),this[_0x53181a(0xf4)]=_0x552dd7,this[_0x53181a(0xd5)]=_0xbb7d69,this['_configService']=_0x2417d2;const {menu:_0x14bb5,..._0xd80639}=_0x51c9b0[_0x53181a(0xfb)]({},_0x53a325,this[_0x53181a(0xf4)]);_0x14bb5&&this[_0x53181a(0xcb)][_0x53181a(0xc8)](_0x53181a(0xba),_0x14bb5,{'merge':!0x0}),this['_configService'][_0x53181a(0xc8)](_0x545b96,_0xd80639);}[_0x1cd62c(0xd8)](){const _0x3f17b5=_0x1cd62c;[[_0x4aa93c]][_0x3f17b5(0xc5)](_0xdc96d9=>this[_0x3f17b5(0xd5)][_0x3f17b5(0xec)](_0xdc96d9));}['onReady'](){this['_injector']['get'](_0x4aa93c);}},_0x58cb3e(_0x141f0d[_0x1cd62c(0xb9)],_0x1cd62c(0xbb),_0x31a033),_0x58cb3e(_0x141f0d[_0x1cd62c(0xb9)],_0x1cd62c(0xea),_0x51c9b0[_0x1cd62c(0x102)]['UNIVER_SHEET']),_0x141f0d[_0x1cd62c(0xb9)]=_0x3dfd87([_0x51c9b0['DependentOn'](_0x52a735[_0x1cd62c(0xfc)]),_0x3caa13(0x1,_0x51c9b0[_0x1cd62c(0x103)](_0x51c9b0[_0x1cd62c(0xf1)])),_0x3caa13(0x2,_0x51c9b0[_0x1cd62c(0xf3)])],_0x141f0d[_0x1cd62c(0xb9)]),_0x141f0d[_0x1cd62c(0xcd)]=_0x5a8621,_0x141f0d['ImportXLSXOperation']=_0x56a8ea,Object[_0x1cd62c(0xee)](_0x141f0d,Symbol[_0x1cd62c(0xc4)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3-insiders.20260131-b9b8805",
|
|
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.15.
|
|
46
|
-
"@univerjs/core": "0.15.
|
|
47
|
-
"@univerjs/sheets
|
|
48
|
-
"@univerjs/sheets": "0.15.
|
|
49
|
-
"@univerjs/ui": "0.15.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.3-insiders.20260131-b9b8805",
|
|
46
|
+
"@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
|
|
47
|
+
"@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805",
|
|
48
|
+
"@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805",
|
|
49
|
+
"@univerjs/ui": "0.15.3-insiders.20260131-b9b8805"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.3.1",
|
|
54
|
-
"vitest": "^4.0.
|
|
55
|
-
"@univerjs-infra/shared": "0.15.
|
|
54
|
+
"vitest": "^4.0.18",
|
|
55
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|