@univerjs-pro/sheets-exchange-client 0.10.10-nightly.202510180256 → 0.10.10-nightly.202510180327
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 +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x545542=_0x45ce;(function(_0x42c354,_0x2512a0){const _0x3ca51e=_0x45ce,_0x572d0c=_0x42c354();while(!![]){try{const _0x2802ce=parseInt(_0x3ca51e(0x117))/0x1+-parseInt(_0x3ca51e(0x111))/0x2+-parseInt(_0x3ca51e(0x113))/0x3+parseInt(_0x3ca51e(0x110))/0x4*(-parseInt(_0x3ca51e(0xe4))/0x5)+-parseInt(_0x3ca51e(0xf9))/0x6+parseInt(_0x3ca51e(0xfe))/0x7+parseInt(_0x3ca51e(0x102))/0x8;if(_0x2802ce===_0x2512a0)break;else _0x572d0c['push'](_0x572d0c['shift']());}catch(_0x4439f1){_0x572d0c['push'](_0x572d0c['shift']());}}}(_0x2b44,0x38812));Object[_0x545542(0xfd)](exports,Symbol['toStringTag'],{'value':_0x545542(0xe8)});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':_0x545542(0xdc),'type':i[_0x545542(0xf2)][_0x545542(0xd8)],'handler':async _0x4ddcc5=>{const _0x44417c=_0x545542,_0xfbc713=_0x4ddcc5[_0x44417c(0x109)](g[_0x44417c(0xe1)]);return new URLSearchParams(location[_0x44417c(0xe2)])[_0x44417c(0x109)]('unit')?_0xfbc713['importXLSXToUnitId']():_0xfbc713['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType']['OPERATION'],'handler':async _0x992b43=>{const _0x52fc01=_0x545542,_0x43eef7=_0x992b43[_0x52fc01(0x109)](g[_0x52fc01(0xe1)]);return new URLSearchParams(location[_0x52fc01(0xe2)])[_0x52fc01(0x109)](_0x52fc01(0x10e))?_0x43eef7[_0x52fc01(0x10d)]():_0x43eef7[_0x52fc01(0xe6)](),!0x0;}},v=_0x545542(0x100),h={},S=_0x545542(0x108);function x(_0x1c3057){const _0x2ec1fe=_0x545542;return{'id':S,'type':c['MenuItemType'][_0x2ec1fe(0xf4)],'icon':'DirectExportIcon','tooltip':_0x2ec1fe(0x10b),'hidden$':c[_0x2ec1fe(0x10a)](_0x1c3057,i[_0x2ec1fe(0xf8)]['UNIVER_SHEET']),'disabled$':I[_0x2ec1fe(0xe5)](_0x1c3057,{'workbookTypes':[_[_0x2ec1fe(0xfc)]]})};}function _0x45ce(_0x1349ca,_0xb37ca){const _0x2b44a8=_0x2b44();return _0x45ce=function(_0x45ce4c,_0x264a65){_0x45ce4c=_0x45ce4c-0xd8;let _0x17a28a=_0x2b44a8[_0x45ce4c];return _0x17a28a;},_0x45ce(_0x1349ca,_0xb37ca);}function P(){const _0x530f9a=_0x545542;return{'id':l['id'],'type':c[_0x530f9a(0x115)]['BUTTON'],'title':'exchange.upload','icon':_0x530f9a(0xdb)};}function C(){const _0x33932a=_0x545542;return{'id':p['id'],'type':c[_0x33932a(0x115)][_0x33932a(0xf3)],'title':'exchange.download','icon':'ExportIcon'};}const f={[c[_0x545542(0xdf)][_0x545542(0x101)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x545542(0xd9)],y=(_0x1360d3,_0x354a67,_0x4dc85e,_0x10dd5c)=>{for(var _0x93be80=_0x10dd5c>0x1?void 0x0:_0x10dd5c?T(_0x354a67,_0x4dc85e):_0x354a67,_0x489b69=_0x1360d3['length']-0x1,_0x5d3bfc;_0x489b69>=0x0;_0x489b69--)(_0x5d3bfc=_0x1360d3[_0x489b69])&&(_0x93be80=_0x5d3bfc(_0x93be80)||_0x93be80);return _0x93be80;},m=(_0x26459b,_0x4a2dce)=>(_0x36a426,_0x4e43d8)=>_0x4a2dce(_0x36a426,_0x4e43d8,_0x26459b);let u=class extends i[_0x545542(0xfa)]{constructor(_0x5d26af,_0x509740){const _0x2d28fb=_0x545542;super(),this['_commandService']=_0x5d26af,this[_0x2d28fb(0xee)]=_0x509740,this[_0x2d28fb(0xda)](),this[_0x2d28fb(0xde)]();}['_initCommands'](){const _0x24a40a=_0x545542;[l,p][_0x24a40a(0xea)](_0x4bfd2f=>{const _0x102323=_0x24a40a;this[_0x102323(0x116)](this[_0x102323(0x105)][_0x102323(0x114)](_0x4bfd2f));});}['_initMenus'](){const _0x592c3f=_0x545542;this[_0x592c3f(0xee)][_0x592c3f(0xf6)](f);}};u=y([m(0x0,i[_0x545542(0xdd)]),m(0x1,c[_0x545542(0x107)])],u);var O=Object[_0x545542(0xfd)],U=Object[_0x545542(0xd9)],X=(_0x759cc8,_0x1fc0bf,_0xfb1f2c)=>_0x1fc0bf in _0x759cc8?O(_0x759cc8,_0x1fc0bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfb1f2c}):_0x759cc8[_0x1fc0bf]=_0xfb1f2c,N=(_0x244b35,_0x34e61f,_0x2fefe1,_0x52ad98)=>{const _0x2b615e=_0x545542;for(var _0x30e78c=_0x52ad98>0x1?void 0x0:_0x52ad98?U(_0x34e61f,_0x2fefe1):_0x34e61f,_0x237277=_0x244b35[_0x2b615e(0xef)]-0x1,_0x3ef0e2;_0x237277>=0x0;_0x237277--)(_0x3ef0e2=_0x244b35[_0x237277])&&(_0x30e78c=_0x3ef0e2(_0x30e78c)||_0x30e78c);return _0x30e78c;},d=(_0x4253c6,_0x27a78c)=>(_0x1ca6d0,_0x1b578e)=>_0x27a78c(_0x1ca6d0,_0x1b578e,_0x4253c6),E=(_0x5c27f2,_0x2027bb,_0x6a9eae)=>X(_0x5c27f2,typeof _0x2027bb!=_0x545542(0xf7)?_0x2027bb+'':_0x2027bb,_0x6a9eae);function _0x2b44(){const _0x4f132a=['UNIVER_SHEET','_menuManagerService','length','onReady','DependentOn','CommandType','BUTTON','SUBITEMS','ImportXLSXOperation','mergeMenu','symbol','UniverInstanceType','2550270EkvECW','Disposable','type','WorkbookExportPermission','defineProperty','1870904nhFBFt','pluginName','sheets-exchange-client.config','OTHERS','7765432fLzovV','IConfigService','setConfig','_commandService','_config','IMenuManagerService','sheets-exchange-client.operation.exchange','get','getMenuHiddenObservable','exchange.file','onStarting','exportXLSXByUnitId','unit','Injector','35940apdUuP','698186FfsQNY','add','157791XJvDoa','registerCommand','MenuItemType','disposeWithMe','80791qbIuLg','OPERATION','getOwnPropertyDescriptor','_initCommands','FolderIcon','exchange-client.operation.import-xlsx','ICommandService','_initMenus','RibbonStartGroup','_injector','IExchangeOperateService','search','UniverSheetsExchangeClientPlugin','145ghKvYI','getCurrentRangeDisable$','exportXLSXBySnapshot','merge','Module','SHEET_EXCHANGE_CLIENT_PLUGIN','forEach','_configService','Plugin'];_0x2b44=function(){return _0x4f132a;};return _0x2b44();}const L=_0x545542(0xe9);exports[_0x545542(0xe3)]=class extends i[_0x545542(0xec)]{constructor(_0x367d7a=h,_0xbf72f1,_0x16e5eb){const _0x246b58=_0x545542;super(),this[_0x246b58(0x106)]=_0x367d7a,this[_0x246b58(0xe0)]=_0xbf72f1,this[_0x246b58(0xeb)]=_0x16e5eb;const {menu:_0x530034,..._0x2d47e1}=i[_0x246b58(0xe7)]({},h,this[_0x246b58(0x106)]);_0x530034&&this['_configService']['setConfig']('menu',_0x530034,{'merge':!0x0}),this[_0x246b58(0xeb)][_0x246b58(0x104)](v,_0x2d47e1);}[_0x545542(0x10c)](){const _0x430243=_0x545542;[[u]][_0x430243(0xea)](_0x1a5bb8=>this[_0x430243(0xe0)][_0x430243(0x112)](_0x1a5bb8));}[_0x545542(0xf0)](){const _0xa52ce=_0x545542;this[_0xa52ce(0xe0)][_0xa52ce(0x109)](u);}},E(exports[_0x545542(0xe3)],_0x545542(0xff),L),E(exports[_0x545542(0xe3)],_0x545542(0xfb),i[_0x545542(0xf8)][_0x545542(0xed)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x545542(0xf1)](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i[_0x545542(0x10f)])),d(0x2,i[_0x545542(0x103)])],exports['UniverSheetsExchangeClientPlugin']),exports['ExportXLSXOperation']=p,exports[_0x545542(0xf5)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x132c4b=_0xdf5e;(function(_0x330050,_0x317b88){const _0x559575=_0xdf5e,_0x2ad429=_0x330050();while(!![]){try{const _0x3eeaed=parseInt(_0x559575(0xa6))/0x1*(parseInt(_0x559575(0xab))/0x2)+parseInt(_0x559575(0xb7))/0x3*(parseInt(_0x559575(0xae))/0x4)+parseInt(_0x559575(0x97))/0x5*(parseInt(_0x559575(0xb6))/0x6)+-parseInt(_0x559575(0xa3))/0x7+parseInt(_0x559575(0xb9))/0x8*(-parseInt(_0x559575(0xa9))/0x9)+-parseInt(_0x559575(0x92))/0xa+-parseInt(_0x559575(0x98))/0xb;if(_0x3eeaed===_0x317b88)break;else _0x2ad429['push'](_0x2ad429['shift']());}catch(_0x1d18aa){_0x2ad429['push'](_0x2ad429['shift']());}}}(_0x418a,0xd34d9));import{IExchangeOperateService as _0x4e9673,UniverExchangeClientPlugin as _0x228b7b}from'@univerjs-pro/exchange-client';import{CommandType as _0x275e48,UniverInstanceType as _0x4361f4,Disposable as _0x515bcc,ICommandService as _0x2375fa,DependentOn as _0x34b170,Inject as _0x34ec46,Injector as _0x53f4db,IConfigService as _0x5a966d,Plugin as _0x281b22,merge as _0x16ae1a}from'@univerjs/core';import{MenuItemType as _0x3d36a2,getMenuHiddenObservable as _0x147702,RibbonStartGroup as _0x1e9fce,IMenuManagerService as _0x360c85}from'@univerjs/ui';import{WorkbookExportPermission as _0x13270f}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a8208}from'@univerjs/sheets-ui';function _0x418a(){const _0x2882cc=['importXLSXToSnapshot','exchange.download','SUBITEMS','forEach','exchange-client.operation.import-xlsx','disposeWithMe','12xSkBeR','111klKmqT','onStarting','179880AraTsG','sheets-exchange-client.operation.exchange','exchange.upload','pluginName','_commandService','setConfig','4029610LDmgDf','search','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','_initCommands','3331545rWwaxm','1224146Ytguwo','_configService','get','defineProperty','_config','BUTTON','getOwnPropertyDescriptor','exchange.file','OTHERS','exportXLSXBySnapshot','UNIVER_SHEET','2525572bCndRq','registerCommand','unit','1lTMdPd','importXLSXToUnitId','exchange-client.operation.export-xlsx','585acUEXB','_initMenus','576948majFDl','length','_injector','170916wyWnJm','ExportIcon'];_0x418a=function(){return _0x2882cc;};return _0x418a();}const p={'id':_0x132c4b(0xb4),'type':_0x275e48[_0x132c4b(0x95)],'handler':async _0x4d75ce=>{const _0x1d974c=_0x132c4b,_0x1421dd=_0x4d75ce[_0x1d974c(0x9a)](_0x4e9673);return new URLSearchParams(location[_0x1d974c(0x93)])[_0x1d974c(0x9a)](_0x1d974c(0xa5))?_0x1421dd[_0x1d974c(0xa7)]():_0x1421dd[_0x1d974c(0xb0)](),!0x0;}},u={'id':_0x132c4b(0xa8),'type':_0x275e48['OPERATION'],'handler':async _0x58e92d=>{const _0xd758ed=_0x132c4b,_0x142f0f=_0x58e92d[_0xd758ed(0x9a)](_0x4e9673);return new URLSearchParams(location[_0xd758ed(0x93)])[_0xd758ed(0x9a)]('unit')?_0x142f0f['exportXLSXByUnitId']():_0x142f0f[_0xd758ed(0xa1)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x132c4b(0xba);function R(_0x35f543){const _0x5d48d3=_0x132c4b;return{'id':S,'type':_0x3d36a2[_0x5d48d3(0xb2)],'icon':'DirectExportIcon','tooltip':_0x5d48d3(0x9f),'hidden$':_0x147702(_0x35f543,_0x4361f4['UNIVER_SHEET']),'disabled$':_0x1a8208(_0x35f543,{'workbookTypes':[_0x13270f]})};}function w(){const _0xe2fe17=_0x132c4b;return{'id':p['id'],'type':_0x3d36a2['BUTTON'],'title':_0xe2fe17(0xbb),'icon':'FolderIcon'};}function D(){const _0x2154ca=_0x132c4b;return{'id':u['id'],'type':_0x3d36a2[_0x2154ca(0x9d)],'title':_0x2154ca(0xb1),'icon':_0x2154ca(0xaf)};}const F={[_0x1e9fce[_0x132c4b(0xa0)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x132c4b(0x9e)],A=(_0x345492,_0x3a2b97,_0xb598b0,_0x1c42d9)=>{const _0x93e21c=_0x132c4b;for(var _0x5b1765=_0x1c42d9>0x1?void 0x0:_0x1c42d9?G(_0x3a2b97,_0xb598b0):_0x3a2b97,_0x673b6=_0x345492[_0x93e21c(0xac)]-0x1,_0xde71bf;_0x673b6>=0x0;_0x673b6--)(_0xde71bf=_0x345492[_0x673b6])&&(_0x5b1765=_0xde71bf(_0x5b1765)||_0x5b1765);return _0x5b1765;},d=(_0x454131,_0x1b8505)=>(_0x22c334,_0x71ef19)=>_0x1b8505(_0x22c334,_0x71ef19,_0x454131);let c=class extends _0x515bcc{constructor(_0x44baab,_0x2b9398){const _0x204ad5=_0x132c4b;super(),this[_0x204ad5(0x90)]=_0x44baab,this['_menuManagerService']=_0x2b9398,this[_0x204ad5(0x96)](),this[_0x204ad5(0xaa)]();}[_0x132c4b(0x96)](){[p,u]['forEach'](_0x83cc43=>{const _0x59695a=_0xdf5e;this[_0x59695a(0xb5)](this[_0x59695a(0x90)][_0x59695a(0xa4)](_0x83cc43));});}[_0x132c4b(0xaa)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x2375fa),d(0x1,_0x360c85)],c);function _0xdf5e(_0x526a3e,_0x59ee74){const _0x418a16=_0x418a();return _0xdf5e=function(_0xdf5e82,_0x2cf936){_0xdf5e82=_0xdf5e82-0x90;let _0x3a91f8=_0x418a16[_0xdf5e82];return _0x3a91f8;},_0xdf5e(_0x526a3e,_0x59ee74);}var j=Object[_0x132c4b(0x9b)],B=Object[_0x132c4b(0x9e)],$=(_0xfd310d,_0x3d0240,_0x18e4cb)=>_0x3d0240 in _0xfd310d?j(_0xfd310d,_0x3d0240,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18e4cb}):_0xfd310d[_0x3d0240]=_0x18e4cb,V=(_0x1dd4db,_0x5a3119,_0x22cf2e,_0x37ee93)=>{const _0x218fc0=_0x132c4b;for(var _0x3819ad=_0x37ee93>0x1?void 0x0:_0x37ee93?B(_0x5a3119,_0x22cf2e):_0x5a3119,_0x59c8be=_0x1dd4db[_0x218fc0(0xac)]-0x1,_0x5a2669;_0x59c8be>=0x0;_0x59c8be--)(_0x5a2669=_0x1dd4db[_0x59c8be])&&(_0x3819ad=_0x5a2669(_0x3819ad)||_0x3819ad);return _0x3819ad;},_=(_0x4d831f,_0x20e290)=>(_0x4dc78e,_0x1653cc)=>_0x20e290(_0x4dc78e,_0x1653cc,_0x4d831f),I=(_0x3b1151,_0x62b19a,_0x27e357)=>$(_0x3b1151,typeof _0x62b19a!='symbol'?_0x62b19a+'':_0x62b19a,_0x27e357);const W=_0x132c4b(0x94);let s=class extends _0x281b22{constructor(_0x1a831a=l,_0x2403d9,_0x2de6db){const _0x328f74=_0x132c4b;super(),this[_0x328f74(0x9c)]=_0x1a831a,this[_0x328f74(0xad)]=_0x2403d9,this[_0x328f74(0x99)]=_0x2de6db;const {menu:_0x23b09c,..._0x3232f6}=_0x16ae1a({},l,this['_config']);_0x23b09c&&this[_0x328f74(0x99)][_0x328f74(0x91)]('menu',_0x23b09c,{'merge':!0x0}),this[_0x328f74(0x99)]['setConfig'](H,_0x3232f6);}[_0x132c4b(0xb8)](){const _0x3b6f25=_0x132c4b;[[c]][_0x3b6f25(0xb3)](_0xe79e9=>this[_0x3b6f25(0xad)]['add'](_0xe79e9));}['onReady'](){const _0x4a07bc=_0x132c4b;this['_injector'][_0x4a07bc(0x9a)](c);}};I(s,_0x132c4b(0xbc),W),I(s,'type',_0x4361f4[_0x132c4b(0xa2)]),s=V([_0x34b170(_0x228b7b),_(0x1,_0x34ec46(_0x53f4db)),_(0x2,_0x5a966d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x132c4b=_0xdf5e;(function(_0x330050,_0x317b88){const _0x559575=_0xdf5e,_0x2ad429=_0x330050();while(!![]){try{const _0x3eeaed=parseInt(_0x559575(0xa6))/0x1*(parseInt(_0x559575(0xab))/0x2)+parseInt(_0x559575(0xb7))/0x3*(parseInt(_0x559575(0xae))/0x4)+parseInt(_0x559575(0x97))/0x5*(parseInt(_0x559575(0xb6))/0x6)+-parseInt(_0x559575(0xa3))/0x7+parseInt(_0x559575(0xb9))/0x8*(-parseInt(_0x559575(0xa9))/0x9)+-parseInt(_0x559575(0x92))/0xa+-parseInt(_0x559575(0x98))/0xb;if(_0x3eeaed===_0x317b88)break;else _0x2ad429['push'](_0x2ad429['shift']());}catch(_0x1d18aa){_0x2ad429['push'](_0x2ad429['shift']());}}}(_0x418a,0xd34d9));import{IExchangeOperateService as _0x4e9673,UniverExchangeClientPlugin as _0x228b7b}from'@univerjs-pro/exchange-client';import{CommandType as _0x275e48,UniverInstanceType as _0x4361f4,Disposable as _0x515bcc,ICommandService as _0x2375fa,DependentOn as _0x34b170,Inject as _0x34ec46,Injector as _0x53f4db,IConfigService as _0x5a966d,Plugin as _0x281b22,merge as _0x16ae1a}from'@univerjs/core';import{MenuItemType as _0x3d36a2,getMenuHiddenObservable as _0x147702,RibbonStartGroup as _0x1e9fce,IMenuManagerService as _0x360c85}from'@univerjs/ui';import{WorkbookExportPermission as _0x13270f}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x1a8208}from'@univerjs/sheets-ui';function _0x418a(){const _0x2882cc=['importXLSXToSnapshot','exchange.download','SUBITEMS','forEach','exchange-client.operation.import-xlsx','disposeWithMe','12xSkBeR','111klKmqT','onStarting','179880AraTsG','sheets-exchange-client.operation.exchange','exchange.upload','pluginName','_commandService','setConfig','4029610LDmgDf','search','SHEET_EXCHANGE_CLIENT_PLUGIN','OPERATION','_initCommands','3331545rWwaxm','1224146Ytguwo','_configService','get','defineProperty','_config','BUTTON','getOwnPropertyDescriptor','exchange.file','OTHERS','exportXLSXBySnapshot','UNIVER_SHEET','2525572bCndRq','registerCommand','unit','1lTMdPd','importXLSXToUnitId','exchange-client.operation.export-xlsx','585acUEXB','_initMenus','576948majFDl','length','_injector','170916wyWnJm','ExportIcon'];_0x418a=function(){return _0x2882cc;};return _0x418a();}const p={'id':_0x132c4b(0xb4),'type':_0x275e48[_0x132c4b(0x95)],'handler':async _0x4d75ce=>{const _0x1d974c=_0x132c4b,_0x1421dd=_0x4d75ce[_0x1d974c(0x9a)](_0x4e9673);return new URLSearchParams(location[_0x1d974c(0x93)])[_0x1d974c(0x9a)](_0x1d974c(0xa5))?_0x1421dd[_0x1d974c(0xa7)]():_0x1421dd[_0x1d974c(0xb0)](),!0x0;}},u={'id':_0x132c4b(0xa8),'type':_0x275e48['OPERATION'],'handler':async _0x58e92d=>{const _0xd758ed=_0x132c4b,_0x142f0f=_0x58e92d[_0xd758ed(0x9a)](_0x4e9673);return new URLSearchParams(location[_0xd758ed(0x93)])[_0xd758ed(0x9a)]('unit')?_0x142f0f['exportXLSXByUnitId']():_0x142f0f[_0xd758ed(0xa1)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0x132c4b(0xba);function R(_0x35f543){const _0x5d48d3=_0x132c4b;return{'id':S,'type':_0x3d36a2[_0x5d48d3(0xb2)],'icon':'DirectExportIcon','tooltip':_0x5d48d3(0x9f),'hidden$':_0x147702(_0x35f543,_0x4361f4['UNIVER_SHEET']),'disabled$':_0x1a8208(_0x35f543,{'workbookTypes':[_0x13270f]})};}function w(){const _0xe2fe17=_0x132c4b;return{'id':p['id'],'type':_0x3d36a2['BUTTON'],'title':_0xe2fe17(0xbb),'icon':'FolderIcon'};}function D(){const _0x2154ca=_0x132c4b;return{'id':u['id'],'type':_0x3d36a2[_0x2154ca(0x9d)],'title':_0x2154ca(0xb1),'icon':_0x2154ca(0xaf)};}const F={[_0x1e9fce[_0x132c4b(0xa0)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x132c4b(0x9e)],A=(_0x345492,_0x3a2b97,_0xb598b0,_0x1c42d9)=>{const _0x93e21c=_0x132c4b;for(var _0x5b1765=_0x1c42d9>0x1?void 0x0:_0x1c42d9?G(_0x3a2b97,_0xb598b0):_0x3a2b97,_0x673b6=_0x345492[_0x93e21c(0xac)]-0x1,_0xde71bf;_0x673b6>=0x0;_0x673b6--)(_0xde71bf=_0x345492[_0x673b6])&&(_0x5b1765=_0xde71bf(_0x5b1765)||_0x5b1765);return _0x5b1765;},d=(_0x454131,_0x1b8505)=>(_0x22c334,_0x71ef19)=>_0x1b8505(_0x22c334,_0x71ef19,_0x454131);let c=class extends _0x515bcc{constructor(_0x44baab,_0x2b9398){const _0x204ad5=_0x132c4b;super(),this[_0x204ad5(0x90)]=_0x44baab,this['_menuManagerService']=_0x2b9398,this[_0x204ad5(0x96)](),this[_0x204ad5(0xaa)]();}[_0x132c4b(0x96)](){[p,u]['forEach'](_0x83cc43=>{const _0x59695a=_0xdf5e;this[_0x59695a(0xb5)](this[_0x59695a(0x90)][_0x59695a(0xa4)](_0x83cc43));});}[_0x132c4b(0xaa)](){this['_menuManagerService']['mergeMenu'](F);}};c=A([d(0x0,_0x2375fa),d(0x1,_0x360c85)],c);function _0xdf5e(_0x526a3e,_0x59ee74){const _0x418a16=_0x418a();return _0xdf5e=function(_0xdf5e82,_0x2cf936){_0xdf5e82=_0xdf5e82-0x90;let _0x3a91f8=_0x418a16[_0xdf5e82];return _0x3a91f8;},_0xdf5e(_0x526a3e,_0x59ee74);}var j=Object[_0x132c4b(0x9b)],B=Object[_0x132c4b(0x9e)],$=(_0xfd310d,_0x3d0240,_0x18e4cb)=>_0x3d0240 in _0xfd310d?j(_0xfd310d,_0x3d0240,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18e4cb}):_0xfd310d[_0x3d0240]=_0x18e4cb,V=(_0x1dd4db,_0x5a3119,_0x22cf2e,_0x37ee93)=>{const _0x218fc0=_0x132c4b;for(var _0x3819ad=_0x37ee93>0x1?void 0x0:_0x37ee93?B(_0x5a3119,_0x22cf2e):_0x5a3119,_0x59c8be=_0x1dd4db[_0x218fc0(0xac)]-0x1,_0x5a2669;_0x59c8be>=0x0;_0x59c8be--)(_0x5a2669=_0x1dd4db[_0x59c8be])&&(_0x3819ad=_0x5a2669(_0x3819ad)||_0x3819ad);return _0x3819ad;},_=(_0x4d831f,_0x20e290)=>(_0x4dc78e,_0x1653cc)=>_0x20e290(_0x4dc78e,_0x1653cc,_0x4d831f),I=(_0x3b1151,_0x62b19a,_0x27e357)=>$(_0x3b1151,typeof _0x62b19a!='symbol'?_0x62b19a+'':_0x62b19a,_0x27e357);const W=_0x132c4b(0x94);let s=class extends _0x281b22{constructor(_0x1a831a=l,_0x2403d9,_0x2de6db){const _0x328f74=_0x132c4b;super(),this[_0x328f74(0x9c)]=_0x1a831a,this[_0x328f74(0xad)]=_0x2403d9,this[_0x328f74(0x99)]=_0x2de6db;const {menu:_0x23b09c,..._0x3232f6}=_0x16ae1a({},l,this['_config']);_0x23b09c&&this[_0x328f74(0x99)][_0x328f74(0x91)]('menu',_0x23b09c,{'merge':!0x0}),this[_0x328f74(0x99)]['setConfig'](H,_0x3232f6);}[_0x132c4b(0xb8)](){const _0x3b6f25=_0x132c4b;[[c]][_0x3b6f25(0xb3)](_0xe79e9=>this[_0x3b6f25(0xad)]['add'](_0xe79e9));}['onReady'](){const _0x4a07bc=_0x132c4b;this['_injector'][_0x4a07bc(0x9a)](c);}};I(s,_0x132c4b(0xbc),W),I(s,'type',_0x4361f4[_0x132c4b(0xa2)]),s=V([_0x34b170(_0x228b7b),_(0x1,_0x34ec46(_0x53f4db)),_(0x2,_0x5a966d)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3842(_0x5b2d4a,_0x260661){const _0x3554e3=_0x3554();return _0x3842=function(_0x384266,_0x50631f){_0x384266=_0x384266-0x127;let _0x449eb1=_0x3554e3[_0x384266];return _0x449eb1;},_0x3842(_0x5b2d4a,_0x260661);}function _0x3554(){const _0x41bfe6=['@univerjs/ui','registerCommand','getCurrentRangeDisable$','exchange.file','pluginName','WorkbookExportPermission','UniverProExchangeClient','DirectExportIcon','UniverSheets','@univerjs-pro/exchange-client','Plugin','Inject','IConfigService','length','6301970PHlxpX','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','_initMenus','ICommandService','amd','disposeWithMe','UniverExchangeClientPlugin','@univerjs/sheets-ui','forEach','getOwnPropertyDescriptor','function','exportXLSXByUnitId','_commandService','OPERATION','UniverSheetsUi','25803sjbAqb','mergeMenu','get','UNIVER_SHEET','defineProperty','UniverUi','_configService','exchange.upload','3202300ukMwsp','onReady','CommandType','search','_injector','unit','RibbonStartGroup','DependentOn','Injector','MenuItemType','_config','IExchangeOperateService','add','7739WKKceP','importXLSXToSnapshot','object','BUTTON','merge','808524cZPOyZ','4QTpRvP','_initCommands','IMenuManagerService','182pCqFDq','UniverInstanceType','exchange-client.operation.export-xlsx','ExportXLSXOperation','importXLSXToUnitId','5301786QHIzMB','616LtiSXb','setConfig','Module','exchange.download','UniverCore','3853653qqNkVh','Disposable','sheets-exchange-client.config','UniverSheetsExchangeClientPlugin','sheets-exchange-client.operation.exchange','ExportIcon','exportXLSXBySnapshot'];_0x3554=function(){return _0x41bfe6;};return _0x3554();}(function(_0x567bc5,_0x3836e5){const _0x49d787=_0x3842,_0x4574f=_0x567bc5();while(!![]){try{const _0x425ebb=-parseInt(_0x49d787(0x16f))/0x1*(parseInt(_0x49d787(0x12a))/0x2)+parseInt(_0x49d787(0x135))/0x3*(parseInt(_0x49d787(0x127))/0x4)+parseInt(_0x49d787(0x14a))/0x5+-parseInt(_0x49d787(0x174))/0x6+-parseInt(_0x49d787(0x12f))/0x7+parseInt(_0x49d787(0x130))/0x8*(parseInt(_0x49d787(0x15a))/0x9)+-parseInt(_0x49d787(0x162))/0xa;if(_0x425ebb===_0x3836e5)break;else _0x4574f['push'](_0x4574f['shift']());}catch(_0x4a7554){_0x4574f['push'](_0x4574f['shift']());}}}(_0x3554,0xcf4b1),function(_0x4cb50c,_0xf188ad){const _0x2fa204=_0x3842;typeof exports==_0x2fa204(0x171)&&typeof module<'u'?_0xf188ad(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x2fa204(0x155)&&define[_0x2fa204(0x14f)]?define(['exports',_0x2fa204(0x145),'@univerjs/core',_0x2fa204(0x13c),'@univerjs/sheets',_0x2fa204(0x152)],_0xf188ad):(_0x4cb50c=typeof globalThis<'u'?globalThis:_0x4cb50c||self,_0xf188ad(_0x4cb50c['UniverProSheetsExchangeClient']={},_0x4cb50c[_0x2fa204(0x142)],_0x4cb50c[_0x2fa204(0x134)],_0x4cb50c[_0x2fa204(0x15f)],_0x4cb50c[_0x2fa204(0x144)],_0x4cb50c[_0x2fa204(0x159)]));}(this,function(_0x494d7c,_0xa411d9,_0x530b6c,_0x465fac,_0x255dd3,_0x36c0fc){'use strict';const _0xd3371=_0x3842;const _0x85173a={'id':'exchange-client.operation.import-xlsx','type':_0x530b6c[_0xd3371(0x164)][_0xd3371(0x158)],'handler':async _0x34e1dd=>{const _0x2b19b4=_0xd3371,_0x1862cb=_0x34e1dd[_0x2b19b4(0x15c)](_0xa411d9[_0x2b19b4(0x16d)]);return new URLSearchParams(location[_0x2b19b4(0x165)])[_0x2b19b4(0x15c)](_0x2b19b4(0x167))?_0x1862cb[_0x2b19b4(0x12e)]():_0x1862cb[_0x2b19b4(0x170)](),!0x0;}},_0x575c4a={'id':_0xd3371(0x12c),'type':_0x530b6c[_0xd3371(0x164)][_0xd3371(0x158)],'handler':async _0x441c88=>{const _0x36f6f0=_0xd3371,_0x4d4ad2=_0x441c88[_0x36f6f0(0x15c)](_0xa411d9['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x36f6f0(0x167))?_0x4d4ad2[_0x36f6f0(0x156)]():_0x4d4ad2[_0x36f6f0(0x13b)](),!0x0;}},_0x431ca7=_0xd3371(0x137),_0x325225={},_0x245668=_0xd3371(0x139);function _0xf2239(_0x193835){const _0x30fa1a=_0xd3371;return{'id':_0x245668,'type':_0x465fac[_0x30fa1a(0x16b)]['SUBITEMS'],'icon':_0x30fa1a(0x143),'tooltip':_0x30fa1a(0x13f),'hidden$':_0x465fac['getMenuHiddenObservable'](_0x193835,_0x530b6c[_0x30fa1a(0x12b)][_0x30fa1a(0x15d)]),'disabled$':_0x36c0fc[_0x30fa1a(0x13e)](_0x193835,{'workbookTypes':[_0x255dd3[_0x30fa1a(0x141)]]})};}function _0x16f670(){const _0x495cc4=_0xd3371;return{'id':_0x85173a['id'],'type':_0x465fac[_0x495cc4(0x16b)][_0x495cc4(0x172)],'title':_0x495cc4(0x161),'icon':_0x495cc4(0x14c)};}function _0x4b6e9a(){const _0x437468=_0xd3371;return{'id':_0x575c4a['id'],'type':_0x465fac[_0x437468(0x16b)][_0x437468(0x172)],'title':_0x437468(0x133),'icon':_0x437468(0x13a)};}const _0x257c7f={[_0x465fac[_0xd3371(0x168)]['OTHERS']]:{[_0x245668]:{'order':0.3,'menuItemFactory':_0xf2239,[_0x85173a['id']]:{'order':0x0,'menuItemFactory':_0x16f670},[_0x575c4a['id']]:{'order':0x1,'menuItemFactory':_0x4b6e9a}}}};var _0x25b720=Object[_0xd3371(0x154)],_0x190cfa=(_0x45091e,_0xdd4ebe,_0x5e4739,_0x3c2291)=>{const _0x2f0a9d=_0xd3371;for(var _0x1d6653=_0x3c2291>0x1?void 0x0:_0x3c2291?_0x25b720(_0xdd4ebe,_0x5e4739):_0xdd4ebe,_0x31c673=_0x45091e[_0x2f0a9d(0x149)]-0x1,_0xef53f8;_0x31c673>=0x0;_0x31c673--)(_0xef53f8=_0x45091e[_0x31c673])&&(_0x1d6653=_0xef53f8(_0x1d6653)||_0x1d6653);return _0x1d6653;},_0x3dfb4b=(_0x4c2ee2,_0x164cfb)=>(_0x184f12,_0x32db33)=>_0x164cfb(_0x184f12,_0x32db33,_0x4c2ee2);let _0x34989e=class extends _0x530b6c[_0xd3371(0x136)]{constructor(_0x2c6b84,_0x1377b0){const _0x3e031d=_0xd3371;super(),this[_0x3e031d(0x157)]=_0x2c6b84,this['_menuManagerService']=_0x1377b0,this[_0x3e031d(0x128)](),this[_0x3e031d(0x14d)]();}['_initCommands'](){const _0x17cef0=_0xd3371;[_0x85173a,_0x575c4a][_0x17cef0(0x153)](_0x26fe85=>{const _0x27a30e=_0x17cef0;this[_0x27a30e(0x150)](this[_0x27a30e(0x157)][_0x27a30e(0x13d)](_0x26fe85));});}[_0xd3371(0x14d)](){const _0x382153=_0xd3371;this['_menuManagerService'][_0x382153(0x15b)](_0x257c7f);}};_0x34989e=_0x190cfa([_0x3dfb4b(0x0,_0x530b6c[_0xd3371(0x14e)]),_0x3dfb4b(0x1,_0x465fac[_0xd3371(0x129)])],_0x34989e);var _0x1b831d=Object['defineProperty'],_0x14a779=Object['getOwnPropertyDescriptor'],_0x5d149d=(_0x423cf5,_0x20d0ca,_0x40e4f8)=>_0x20d0ca in _0x423cf5?_0x1b831d(_0x423cf5,_0x20d0ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40e4f8}):_0x423cf5[_0x20d0ca]=_0x40e4f8,_0xb897b8=(_0xe0ede8,_0x17c17e,_0x370e8c,_0x4b861e)=>{const _0x5a120b=_0xd3371;for(var _0x171548=_0x4b861e>0x1?void 0x0:_0x4b861e?_0x14a779(_0x17c17e,_0x370e8c):_0x17c17e,_0xbb0710=_0xe0ede8[_0x5a120b(0x149)]-0x1,_0x311c0a;_0xbb0710>=0x0;_0xbb0710--)(_0x311c0a=_0xe0ede8[_0xbb0710])&&(_0x171548=_0x311c0a(_0x171548)||_0x171548);return _0x171548;},_0x405e5c=(_0x1618cd,_0x240833)=>(_0x32dc06,_0x5b7b62)=>_0x240833(_0x32dc06,_0x5b7b62,_0x1618cd),_0x4793c2=(_0x1dd66d,_0x3bcf8a,_0x4ccc7c)=>_0x5d149d(_0x1dd66d,typeof _0x3bcf8a!='symbol'?_0x3bcf8a+'':_0x3bcf8a,_0x4ccc7c);const _0x1e33c2=_0xd3371(0x14b);_0x494d7c[_0xd3371(0x138)]=class extends _0x530b6c[_0xd3371(0x146)]{constructor(_0x253ded=_0x325225,_0x1a3000,_0x520277){const _0x4ec434=_0xd3371;super(),this[_0x4ec434(0x16c)]=_0x253ded,this[_0x4ec434(0x166)]=_0x1a3000,this['_configService']=_0x520277;const {menu:_0xa3be75,..._0x362dd1}=_0x530b6c[_0x4ec434(0x173)]({},_0x325225,this[_0x4ec434(0x16c)]);_0xa3be75&&this[_0x4ec434(0x160)][_0x4ec434(0x131)]('menu',_0xa3be75,{'merge':!0x0}),this[_0x4ec434(0x160)]['setConfig'](_0x431ca7,_0x362dd1);}['onStarting'](){const _0x464e04=_0xd3371;[[_0x34989e]][_0x464e04(0x153)](_0x11a661=>this[_0x464e04(0x166)][_0x464e04(0x16e)](_0x11a661));}[_0xd3371(0x163)](){const _0xeecf9a=_0xd3371;this[_0xeecf9a(0x166)]['get'](_0x34989e);}},_0x4793c2(_0x494d7c[_0xd3371(0x138)],_0xd3371(0x140),_0x1e33c2),_0x4793c2(_0x494d7c[_0xd3371(0x138)],'type',_0x530b6c[_0xd3371(0x12b)][_0xd3371(0x15d)]),_0x494d7c[_0xd3371(0x138)]=_0xb897b8([_0x530b6c[_0xd3371(0x169)](_0xa411d9[_0xd3371(0x151)]),_0x405e5c(0x1,_0x530b6c[_0xd3371(0x147)](_0x530b6c[_0xd3371(0x16a)])),_0x405e5c(0x2,_0x530b6c[_0xd3371(0x148)])],_0x494d7c['UniverSheetsExchangeClientPlugin']),_0x494d7c[_0xd3371(0x12d)]=_0x575c4a,_0x494d7c['ImportXLSXOperation']=_0x85173a,Object[_0xd3371(0x15e)](_0x494d7c,Symbol['toStringTag'],{'value':_0xd3371(0x132)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.10-nightly.
|
|
3
|
+
"version": "0.10.10-nightly.202510180327",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.10.10-nightly.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/ui": "0.10.10-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.10-nightly.202510180327",
|
|
46
|
+
"@univerjs/sheets": "0.10.10-nightly.202510180327",
|
|
47
|
+
"@univerjs/core": "0.10.10-nightly.202510180327",
|
|
48
|
+
"@univerjs/ui": "0.10.10-nightly.202510180327",
|
|
49
|
+
"@univerjs/sheets-ui": "0.10.10-nightly.202510180327"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|