@univerjs-pro/sheets-exchange-client 0.14.0 → 0.15.0
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x28607e=_0x4fe9;(function(_0x3ed2ed,_0x1641fc){const _0x416234=_0x4fe9,_0x85989b=_0x3ed2ed();while(!![]){try{const _0x4adb10=-parseInt(_0x416234(0x1b6))/0x1*(parseInt(_0x416234(0x1b5))/0x2)+-parseInt(_0x416234(0x1e5))/0x3+parseInt(_0x416234(0x1e6))/0x4+-parseInt(_0x416234(0x1bc))/0x5+parseInt(_0x416234(0x1b4))/0x6+-parseInt(_0x416234(0x1b3))/0x7*(parseInt(_0x416234(0x1d5))/0x8)+parseInt(_0x416234(0x1ce))/0x9;if(_0x4adb10===_0x1641fc)break;else _0x85989b['push'](_0x85989b['shift']());}catch(_0x3342fd){_0x85989b['push'](_0x85989b['shift']());}}}(_0x34b1,0xeaaf9));function _0x4fe9(_0x5481ee,_0x3b3ee2){_0x5481ee=_0x5481ee-0x1aa;const _0x34b188=_0x34b1();let _0x4fe901=_0x34b188[_0x5481ee];return _0x4fe901;}Object[_0x28607e(0x1b1)](exports,Symbol['toStringTag'],{'value':'Module'});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['CommandType']['OPERATION'],'handler':async _0x167fa9=>{const _0x34b8fe=_0x28607e,_0x5becf7=_0x167fa9['get'](g[_0x34b8fe(0x1b0)]);return new URLSearchParams(location[_0x34b8fe(0x1be)])[_0x34b8fe(0x1cc)](_0x34b8fe(0x1c5))?_0x5becf7[_0x34b8fe(0x1db)]():_0x5becf7[_0x34b8fe(0x1d7)](),!0x0;}},p={'id':_0x28607e(0x1ac),'type':i[_0x28607e(0x1c6)][_0x28607e(0x1bf)],'handler':async _0x365e18=>{const _0x5ec2f8=_0x28607e,_0x4c4929=_0x365e18[_0x5ec2f8(0x1cc)](g[_0x5ec2f8(0x1b0)]);return new URLSearchParams(location['search'])[_0x5ec2f8(0x1cc)](_0x5ec2f8(0x1c5))?_0x4c4929[_0x5ec2f8(0x1b9)]():_0x4c4929[_0x5ec2f8(0x1de)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x28607e(0x1ca);function _0x34b1(){const _0x575485=['UniverSheetsExchangeClientPlugin','UniverExchangeClientPlugin','_injector','unit','CommandType','exchange.download','setConfig','exchange.file','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','get','ImportXLSXOperation','20707839WPtQXd','getCurrentRangeDisable$','UNIVER_SHEET','_configService','DependentOn','length','_commandService','32NWNfpl','Plugin','importXLSXToSnapshot','getOwnPropertyDescriptor','disposeWithMe','Inject','importXLSXToUnitId','_initMenus','Disposable','exportXLSXBySnapshot','registerCommand','Injector','_initCommands','RibbonStartGroup','menu','SUBITEMS','1671726GVwGHp','2608308YcEYSN','BUTTON','IMenuManagerService','exchange-client.operation.export-xlsx','UniverInstanceType','IConfigService','_config','IExchangeOperateService','defineProperty','DirectExportIcon','459263FhoSIm','5648898fTuclu','2tpXIJP','426514rkTCTE','mergeMenu','MenuItemType','exportXLSXByUnitId','exchange.upload','forEach','8434830BRIOSh','onStarting','search','OPERATION','_menuManagerService','type'];_0x34b1=function(){return _0x575485;};return _0x34b1();}function x(_0x18154e){const _0x56a97c=_0x28607e;return{'id':S,'type':c['MenuItemType'][_0x56a97c(0x1e4)],'icon':_0x56a97c(0x1b2),'tooltip':_0x56a97c(0x1c9),'hidden$':c['getMenuHiddenObservable'](_0x18154e,i['UniverInstanceType'][_0x56a97c(0x1d0)]),'disabled$':I[_0x56a97c(0x1cf)](_0x18154e,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x3f5a6a=_0x28607e;return{'id':l['id'],'type':c[_0x3f5a6a(0x1b8)][_0x3f5a6a(0x1aa)],'title':_0x3f5a6a(0x1ba),'icon':'FolderIcon'};}function C(){const _0x357437=_0x28607e;return{'id':p['id'],'type':c[_0x357437(0x1b8)][_0x357437(0x1aa)],'title':_0x357437(0x1c7),'icon':'ExportIcon'};}const f={[c[_0x28607e(0x1e2)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x28607e(0x1d8)],y=(_0x58b14a,_0x4a3a00,_0xc15ec2,_0x229d99)=>{const _0x5d60e9=_0x28607e;for(var _0x4470a2=_0x229d99>0x1?void 0x0:_0x229d99?T(_0x4a3a00,_0xc15ec2):_0x4a3a00,_0x172c2f=_0x58b14a[_0x5d60e9(0x1d3)]-0x1,_0x419d87;_0x172c2f>=0x0;_0x172c2f--)(_0x419d87=_0x58b14a[_0x172c2f])&&(_0x4470a2=_0x419d87(_0x4470a2)||_0x4470a2);return _0x4470a2;},m=(_0x16faf4,_0x3ef1e9)=>(_0x4da4b0,_0x2c4f2f)=>_0x3ef1e9(_0x4da4b0,_0x2c4f2f,_0x16faf4);let u=class extends i[_0x28607e(0x1dd)]{constructor(_0x5a33ee,_0x569167){const _0x2b94bf=_0x28607e;super(),this[_0x2b94bf(0x1d4)]=_0x5a33ee,this[_0x2b94bf(0x1c0)]=_0x569167,this[_0x2b94bf(0x1e1)](),this[_0x2b94bf(0x1dc)]();}[_0x28607e(0x1e1)](){const _0x45d0cd=_0x28607e;[l,p][_0x45d0cd(0x1bb)](_0x2d60fe=>{const _0x290cfa=_0x45d0cd;this[_0x290cfa(0x1d9)](this['_commandService'][_0x290cfa(0x1df)](_0x2d60fe));});}[_0x28607e(0x1dc)](){const _0x185a05=_0x28607e;this[_0x185a05(0x1c0)][_0x185a05(0x1b7)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x28607e(0x1ab)])],u);var O=Object[_0x28607e(0x1b1)],U=Object[_0x28607e(0x1d8)],X=(_0x2a8875,_0x3a6165,_0x301b91)=>_0x3a6165 in _0x2a8875?O(_0x2a8875,_0x3a6165,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301b91}):_0x2a8875[_0x3a6165]=_0x301b91,N=(_0x594b00,_0x4b3224,_0x180db6,_0x463ef0)=>{for(var _0x54a157=_0x463ef0>0x1?void 0x0:_0x463ef0?U(_0x4b3224,_0x180db6):_0x4b3224,_0xbd06b6=_0x594b00['length']-0x1,_0x55ca71;_0xbd06b6>=0x0;_0xbd06b6--)(_0x55ca71=_0x594b00[_0xbd06b6])&&(_0x54a157=_0x55ca71(_0x54a157)||_0x54a157);return _0x54a157;},d=(_0x1a0a0a,_0x5cdbf8)=>(_0x3d5034,_0x4ad64e)=>_0x5cdbf8(_0x3d5034,_0x4ad64e,_0x1a0a0a),E=(_0x3d4c5d,_0x375ea9,_0x144996)=>X(_0x3d4c5d,typeof _0x375ea9!='symbol'?_0x375ea9+'':_0x375ea9,_0x144996);const L=_0x28607e(0x1cb);exports[_0x28607e(0x1c2)]=class extends i[_0x28607e(0x1d6)]{constructor(_0x37b00a=h,_0x5cd1c1,_0x36225f){const _0x20a88d=_0x28607e;super(),this[_0x20a88d(0x1af)]=_0x37b00a,this[_0x20a88d(0x1c4)]=_0x5cd1c1,this[_0x20a88d(0x1d1)]=_0x36225f;const {menu:_0x54401e,..._0x3516bc}=i['merge']({},h,this[_0x20a88d(0x1af)]);_0x54401e&&this['_configService']['setConfig'](_0x20a88d(0x1e3),_0x54401e,{'merge':!0x0}),this[_0x20a88d(0x1d1)][_0x20a88d(0x1c8)](v,_0x3516bc);}[_0x28607e(0x1bd)](){const _0x417b72=_0x28607e;[[u]][_0x417b72(0x1bb)](_0x291150=>this['_injector']['add'](_0x291150));}['onReady'](){const _0x2b2b45=_0x28607e;this['_injector'][_0x2b2b45(0x1cc)](u);}},E(exports[_0x28607e(0x1c2)],'pluginName',L),E(exports[_0x28607e(0x1c2)],_0x28607e(0x1c1),i[_0x28607e(0x1ad)][_0x28607e(0x1d0)]),exports[_0x28607e(0x1c2)]=N([i[_0x28607e(0x1d2)](g[_0x28607e(0x1c3)]),d(0x1,i[_0x28607e(0x1da)](i[_0x28607e(0x1e0)])),d(0x2,i[_0x28607e(0x1ae)])],exports[_0x28607e(0x1c2)]),exports['ExportXLSXOperation']=p,exports[_0x28607e(0x1cd)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x552f05=_0x4470;(function(_0x4c72c2,_0x28ef06){const _0x49d707=_0x4470,_0x5a95f5=_0x4c72c2();while(!![]){try{const _0x51fd25=parseInt(_0x49d707(0x123))/0x1*(parseInt(_0x49d707(0x125))/0x2)+-parseInt(_0x49d707(0x108))/0x3+-parseInt(_0x49d707(0x112))/0x4*(parseInt(_0x49d707(0x115))/0x5)+-parseInt(_0x49d707(0xff))/0x6*(parseInt(_0x49d707(0x10c))/0x7)+-parseInt(_0x49d707(0x110))/0x8+parseInt(_0x49d707(0x11c))/0x9*(parseInt(_0x49d707(0x105))/0xa)+parseInt(_0x49d707(0x127))/0xb;if(_0x51fd25===_0x28ef06)break;else _0x5a95f5['push'](_0x5a95f5['shift']());}catch(_0x2214c9){_0x5a95f5['push'](_0x5a95f5['shift']());}}}(_0x5242,0xd9484));import{IExchangeOperateService as _0x4b29b1,UniverExchangeClientPlugin as _0x3388d5}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ee1cc,UniverInstanceType as _0x50522d,Disposable as _0xcd3333,ICommandService as _0x24d2df,DependentOn as _0x471c06,Inject as _0x40037d,Injector as _0x7257c1,IConfigService as _0x20c626,Plugin as _0xa7b2bc,merge as _0xbf23a}from'@univerjs/core';import{MenuItemType as _0x2b020d,getMenuHiddenObservable as _0x3b9bc3,RibbonStartGroup as _0x13776f,IMenuManagerService as _0x389c05}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e0d1b}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40ea56}from'@univerjs/sheets-ui';const p={'id':_0x552f05(0x101),'type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x425f94=>{const _0x29e04d=_0x552f05,_0x4a8908=_0x425f94[_0x29e04d(0x104)](_0x4b29b1);return new URLSearchParams(location[_0x29e04d(0x10d)])[_0x29e04d(0x104)](_0x29e04d(0x103))?_0x4a8908[_0x29e04d(0x113)]():_0x4a8908['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x30d399=>{const _0x12238e=_0x552f05,_0x105df3=_0x30d399['get'](_0x4b29b1);return new URLSearchParams(location[_0x12238e(0x10d)])['get']('unit')?_0x105df3[_0x12238e(0x11d)]():_0x105df3[_0x12238e(0x126)](),!0x0;}},H=_0x552f05(0xf8),l={},S=_0x552f05(0x119);function R(_0x50d755){const _0x2f06a5=_0x552f05;return{'id':S,'type':_0x2b020d[_0x2f06a5(0x11a)],'icon':_0x2f06a5(0x10b),'tooltip':'exchange.file','hidden$':_0x3b9bc3(_0x50d755,_0x50522d['UNIVER_SHEET']),'disabled$':_0x40ea56(_0x50d755,{'workbookTypes':[_0x4e0d1b]})};}function w(){const _0x119684=_0x552f05;return{'id':p['id'],'type':_0x2b020d[_0x119684(0x106)],'title':_0x119684(0x120),'icon':'FolderIcon'};}function D(){const _0x5d09ee=_0x552f05;return{'id':u['id'],'type':_0x2b020d[_0x5d09ee(0x106)],'title':_0x5d09ee(0xfc),'icon':'ExportIcon'};}const F={[_0x13776f[_0x552f05(0x121)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x552f05(0x100)],A=(_0x4887ea,_0x1f2768,_0x4db6ab,_0x3d245e)=>{for(var _0x483b3b=_0x3d245e>0x1?void 0x0:_0x3d245e?G(_0x1f2768,_0x4db6ab):_0x1f2768,_0x772485=_0x4887ea['length']-0x1,_0x176b91;_0x772485>=0x0;_0x772485--)(_0x176b91=_0x4887ea[_0x772485])&&(_0x483b3b=_0x176b91(_0x483b3b)||_0x483b3b);return _0x483b3b;},d=(_0x44d7bd,_0x52d5a6)=>(_0xe4f275,_0x475981)=>_0x52d5a6(_0xe4f275,_0x475981,_0x44d7bd);let c=class extends _0xcd3333{constructor(_0x45eb28,_0xcacbbf){const _0x566a08=_0x552f05;super(),this[_0x566a08(0xfd)]=_0x45eb28,this[_0x566a08(0x11f)]=_0xcacbbf,this[_0x566a08(0xfa)](),this[_0x566a08(0x10f)]();}['_initCommands'](){const _0x515479=_0x552f05;[p,u][_0x515479(0x117)](_0x1237c3=>{const _0x17cedb=_0x515479;this[_0x17cedb(0xf9)](this[_0x17cedb(0xfd)][_0x17cedb(0x118)](_0x1237c3));});}[_0x552f05(0x10f)](){const _0x37303f=_0x552f05;this['_menuManagerService'][_0x37303f(0x111)](F);}};c=A([d(0x0,_0x24d2df),d(0x1,_0x389c05)],c);var j=Object[_0x552f05(0xfe)],B=Object[_0x552f05(0x100)],$=(_0x436b5d,_0x4a6a11,_0xe30c91)=>_0x4a6a11 in _0x436b5d?j(_0x436b5d,_0x4a6a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe30c91}):_0x436b5d[_0x4a6a11]=_0xe30c91,V=(_0x272cb8,_0x45ded1,_0x5bb18d,_0x300529)=>{const _0x1cf1f7=_0x552f05;for(var _0x2d8459=_0x300529>0x1?void 0x0:_0x300529?B(_0x45ded1,_0x5bb18d):_0x45ded1,_0x1b38e1=_0x272cb8[_0x1cf1f7(0x124)]-0x1,_0x38b6f9;_0x1b38e1>=0x0;_0x1b38e1--)(_0x38b6f9=_0x272cb8[_0x1b38e1])&&(_0x2d8459=_0x38b6f9(_0x2d8459)||_0x2d8459);return _0x2d8459;},_=(_0x24bc1e,_0x57998e)=>(_0x17c4ca,_0x22f6ff)=>_0x57998e(_0x17c4ca,_0x22f6ff,_0x24bc1e),I=(_0x46a476,_0x28fcc3,_0x2df416)=>$(_0x46a476,typeof _0x28fcc3!='symbol'?_0x28fcc3+'':_0x28fcc3,_0x2df416);function _0x5242(){const _0x383c65=['830601ppBnhd','exportXLSXByUnitId','type','_menuManagerService','exchange.upload','OTHERS','_configService','1uuZgjH','length','1480532rKqPRT','exportXLSXBySnapshot','26307116vxkHFV','sheets-exchange-client.config','disposeWithMe','_initCommands','menu','exchange.download','_commandService','defineProperty','2762844uYTqTB','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','get','110hMYPQq','BUTTON','setConfig','435111cvhvaZ','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','7CSHFwq','search','OPERATION','_initMenus','7312744FaTWhp','mergeMenu','187828gdZpOg','importXLSXToUnitId','pluginName','185JipeCd','_injector','forEach','registerCommand','sheets-exchange-client.operation.exchange','SUBITEMS','_config'];_0x5242=function(){return _0x383c65;};return _0x5242();}const W=_0x552f05(0x10a);function _0x4470(_0x417d52,_0x1ec540){_0x417d52=_0x417d52-0xf8;const _0x524245=_0x5242();let _0x4470c4=_0x524245[_0x417d52];return _0x4470c4;}let s=class extends _0xa7b2bc{constructor(_0x135fee=l,_0x242bdb,_0x779958){const _0x1868b1=_0x552f05;super(),this[_0x1868b1(0x11b)]=_0x135fee,this[_0x1868b1(0x116)]=_0x242bdb,this[_0x1868b1(0x122)]=_0x779958;const {menu:_0x1a7b24,..._0xc344d5}=_0xbf23a({},l,this[_0x1868b1(0x11b)]);_0x1a7b24&&this[_0x1868b1(0x122)][_0x1868b1(0x107)](_0x1868b1(0xfb),_0x1a7b24,{'merge':!0x0}),this[_0x1868b1(0x122)]['setConfig'](H,_0xc344d5);}['onStarting'](){const _0x32bd49=_0x552f05;[[c]]['forEach'](_0x2400fd=>this[_0x32bd49(0x116)]['add'](_0x2400fd));}[_0x552f05(0x109)](){const _0x2d582e=_0x552f05;this[_0x2d582e(0x116)][_0x2d582e(0x104)](c);}};I(s,_0x552f05(0x114),W),I(s,_0x552f05(0x11e),_0x50522d[_0x552f05(0x102)]),s=V([_0x471c06(_0x3388d5),_(0x1,_0x40037d(_0x7257c1)),_(0x2,_0x20c626)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x552f05=_0x4470;(function(_0x4c72c2,_0x28ef06){const _0x49d707=_0x4470,_0x5a95f5=_0x4c72c2();while(!![]){try{const _0x51fd25=parseInt(_0x49d707(0x123))/0x1*(parseInt(_0x49d707(0x125))/0x2)+-parseInt(_0x49d707(0x108))/0x3+-parseInt(_0x49d707(0x112))/0x4*(parseInt(_0x49d707(0x115))/0x5)+-parseInt(_0x49d707(0xff))/0x6*(parseInt(_0x49d707(0x10c))/0x7)+-parseInt(_0x49d707(0x110))/0x8+parseInt(_0x49d707(0x11c))/0x9*(parseInt(_0x49d707(0x105))/0xa)+parseInt(_0x49d707(0x127))/0xb;if(_0x51fd25===_0x28ef06)break;else _0x5a95f5['push'](_0x5a95f5['shift']());}catch(_0x2214c9){_0x5a95f5['push'](_0x5a95f5['shift']());}}}(_0x5242,0xd9484));import{IExchangeOperateService as _0x4b29b1,UniverExchangeClientPlugin as _0x3388d5}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ee1cc,UniverInstanceType as _0x50522d,Disposable as _0xcd3333,ICommandService as _0x24d2df,DependentOn as _0x471c06,Inject as _0x40037d,Injector as _0x7257c1,IConfigService as _0x20c626,Plugin as _0xa7b2bc,merge as _0xbf23a}from'@univerjs/core';import{MenuItemType as _0x2b020d,getMenuHiddenObservable as _0x3b9bc3,RibbonStartGroup as _0x13776f,IMenuManagerService as _0x389c05}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e0d1b}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x40ea56}from'@univerjs/sheets-ui';const p={'id':_0x552f05(0x101),'type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x425f94=>{const _0x29e04d=_0x552f05,_0x4a8908=_0x425f94[_0x29e04d(0x104)](_0x4b29b1);return new URLSearchParams(location[_0x29e04d(0x10d)])[_0x29e04d(0x104)](_0x29e04d(0x103))?_0x4a8908[_0x29e04d(0x113)]():_0x4a8908['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1ee1cc[_0x552f05(0x10e)],'handler':async _0x30d399=>{const _0x12238e=_0x552f05,_0x105df3=_0x30d399['get'](_0x4b29b1);return new URLSearchParams(location[_0x12238e(0x10d)])['get']('unit')?_0x105df3[_0x12238e(0x11d)]():_0x105df3[_0x12238e(0x126)](),!0x0;}},H=_0x552f05(0xf8),l={},S=_0x552f05(0x119);function R(_0x50d755){const _0x2f06a5=_0x552f05;return{'id':S,'type':_0x2b020d[_0x2f06a5(0x11a)],'icon':_0x2f06a5(0x10b),'tooltip':'exchange.file','hidden$':_0x3b9bc3(_0x50d755,_0x50522d['UNIVER_SHEET']),'disabled$':_0x40ea56(_0x50d755,{'workbookTypes':[_0x4e0d1b]})};}function w(){const _0x119684=_0x552f05;return{'id':p['id'],'type':_0x2b020d[_0x119684(0x106)],'title':_0x119684(0x120),'icon':'FolderIcon'};}function D(){const _0x5d09ee=_0x552f05;return{'id':u['id'],'type':_0x2b020d[_0x5d09ee(0x106)],'title':_0x5d09ee(0xfc),'icon':'ExportIcon'};}const F={[_0x13776f[_0x552f05(0x121)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x552f05(0x100)],A=(_0x4887ea,_0x1f2768,_0x4db6ab,_0x3d245e)=>{for(var _0x483b3b=_0x3d245e>0x1?void 0x0:_0x3d245e?G(_0x1f2768,_0x4db6ab):_0x1f2768,_0x772485=_0x4887ea['length']-0x1,_0x176b91;_0x772485>=0x0;_0x772485--)(_0x176b91=_0x4887ea[_0x772485])&&(_0x483b3b=_0x176b91(_0x483b3b)||_0x483b3b);return _0x483b3b;},d=(_0x44d7bd,_0x52d5a6)=>(_0xe4f275,_0x475981)=>_0x52d5a6(_0xe4f275,_0x475981,_0x44d7bd);let c=class extends _0xcd3333{constructor(_0x45eb28,_0xcacbbf){const _0x566a08=_0x552f05;super(),this[_0x566a08(0xfd)]=_0x45eb28,this[_0x566a08(0x11f)]=_0xcacbbf,this[_0x566a08(0xfa)](),this[_0x566a08(0x10f)]();}['_initCommands'](){const _0x515479=_0x552f05;[p,u][_0x515479(0x117)](_0x1237c3=>{const _0x17cedb=_0x515479;this[_0x17cedb(0xf9)](this[_0x17cedb(0xfd)][_0x17cedb(0x118)](_0x1237c3));});}[_0x552f05(0x10f)](){const _0x37303f=_0x552f05;this['_menuManagerService'][_0x37303f(0x111)](F);}};c=A([d(0x0,_0x24d2df),d(0x1,_0x389c05)],c);var j=Object[_0x552f05(0xfe)],B=Object[_0x552f05(0x100)],$=(_0x436b5d,_0x4a6a11,_0xe30c91)=>_0x4a6a11 in _0x436b5d?j(_0x436b5d,_0x4a6a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe30c91}):_0x436b5d[_0x4a6a11]=_0xe30c91,V=(_0x272cb8,_0x45ded1,_0x5bb18d,_0x300529)=>{const _0x1cf1f7=_0x552f05;for(var _0x2d8459=_0x300529>0x1?void 0x0:_0x300529?B(_0x45ded1,_0x5bb18d):_0x45ded1,_0x1b38e1=_0x272cb8[_0x1cf1f7(0x124)]-0x1,_0x38b6f9;_0x1b38e1>=0x0;_0x1b38e1--)(_0x38b6f9=_0x272cb8[_0x1b38e1])&&(_0x2d8459=_0x38b6f9(_0x2d8459)||_0x2d8459);return _0x2d8459;},_=(_0x24bc1e,_0x57998e)=>(_0x17c4ca,_0x22f6ff)=>_0x57998e(_0x17c4ca,_0x22f6ff,_0x24bc1e),I=(_0x46a476,_0x28fcc3,_0x2df416)=>$(_0x46a476,typeof _0x28fcc3!='symbol'?_0x28fcc3+'':_0x28fcc3,_0x2df416);function _0x5242(){const _0x383c65=['830601ppBnhd','exportXLSXByUnitId','type','_menuManagerService','exchange.upload','OTHERS','_configService','1uuZgjH','length','1480532rKqPRT','exportXLSXBySnapshot','26307116vxkHFV','sheets-exchange-client.config','disposeWithMe','_initCommands','menu','exchange.download','_commandService','defineProperty','2762844uYTqTB','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','UNIVER_SHEET','unit','get','110hMYPQq','BUTTON','setConfig','435111cvhvaZ','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','DirectExportIcon','7CSHFwq','search','OPERATION','_initMenus','7312744FaTWhp','mergeMenu','187828gdZpOg','importXLSXToUnitId','pluginName','185JipeCd','_injector','forEach','registerCommand','sheets-exchange-client.operation.exchange','SUBITEMS','_config'];_0x5242=function(){return _0x383c65;};return _0x5242();}const W=_0x552f05(0x10a);function _0x4470(_0x417d52,_0x1ec540){_0x417d52=_0x417d52-0xf8;const _0x524245=_0x5242();let _0x4470c4=_0x524245[_0x417d52];return _0x4470c4;}let s=class extends _0xa7b2bc{constructor(_0x135fee=l,_0x242bdb,_0x779958){const _0x1868b1=_0x552f05;super(),this[_0x1868b1(0x11b)]=_0x135fee,this[_0x1868b1(0x116)]=_0x242bdb,this[_0x1868b1(0x122)]=_0x779958;const {menu:_0x1a7b24,..._0xc344d5}=_0xbf23a({},l,this[_0x1868b1(0x11b)]);_0x1a7b24&&this[_0x1868b1(0x122)][_0x1868b1(0x107)](_0x1868b1(0xfb),_0x1a7b24,{'merge':!0x0}),this[_0x1868b1(0x122)]['setConfig'](H,_0xc344d5);}['onStarting'](){const _0x32bd49=_0x552f05;[[c]]['forEach'](_0x2400fd=>this[_0x32bd49(0x116)]['add'](_0x2400fd));}[_0x552f05(0x109)](){const _0x2d582e=_0x552f05;this[_0x2d582e(0x116)][_0x2d582e(0x104)](c);}};I(s,_0x552f05(0x114),W),I(s,_0x552f05(0x11e),_0x50522d[_0x552f05(0x102)]),s=V([_0x471c06(_0x3388d5),_(0x1,_0x40037d(_0x7257c1)),_(0x2,_0x20c626)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x377b50,_0x53c1a2){const _0x4370ad=_0x16be,_0x33a5a9=_0x377b50();while(!![]){try{const _0x4f840c=parseInt(_0x4370ad(0x1ea))/0x1+parseInt(_0x4370ad(0x1f2))/0x2+parseInt(_0x4370ad(0x1e6))/0x3*(-parseInt(_0x4370ad(0x1b2))/0x4)+parseInt(_0x4370ad(0x1c1))/0x5+parseInt(_0x4370ad(0x1e7))/0x6+parseInt(_0x4370ad(0x1c6))/0x7*(parseInt(_0x4370ad(0x1ef))/0x8)+parseInt(_0x4370ad(0x1ae))/0x9*(-parseInt(_0x4370ad(0x1d5))/0xa);if(_0x4f840c===_0x53c1a2)break;else _0x33a5a9['push'](_0x33a5a9['shift']());}catch(_0x5024a4){_0x33a5a9['push'](_0x33a5a9['shift']());}}}(_0x19a3,0xcd2bb),function(_0x5b06fc,_0x45273e){const _0x130c54=_0x16be;typeof exports=='object'&&typeof module<'u'?_0x45273e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x130c54(0x1b5)&&define[_0x130c54(0x1ba)]?define([_0x130c54(0x1c0),'@univerjs-pro/exchange-client',_0x130c54(0x1ac),_0x130c54(0x1e0),_0x130c54(0x1ab),'@univerjs/sheets-ui'],_0x45273e):(_0x5b06fc=typeof globalThis<'u'?globalThis:_0x5b06fc||self,_0x45273e(_0x5b06fc[_0x130c54(0x1bb)]={},_0x5b06fc[_0x130c54(0x1b4)],_0x5b06fc[_0x130c54(0x1dd)],_0x5b06fc[_0x130c54(0x1cd)],_0x5b06fc[_0x130c54(0x1be)],_0x5b06fc[_0x130c54(0x1da)]));}(this,function(_0x1952d6,_0x13f51b,_0x31651e,_0x29973e,_0x3d7e81,_0x13d3fa){'use strict';const _0x2fca61=_0x16be;const _0x3a3684={'id':'exchange-client.operation.import-xlsx','type':_0x31651e[_0x2fca61(0x1b6)][_0x2fca61(0x1db)],'handler':async _0x3cfc38=>{const _0x207124=_0x2fca61,_0x3f314f=_0x3cfc38[_0x207124(0x1d1)](_0x13f51b['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x207124(0x1d1)]('unit')?_0x3f314f['importXLSXToUnitId']():_0x3f314f[_0x207124(0x1e9)](),!0x0;}},_0x4131e2={'id':_0x2fca61(0x1ad),'type':_0x31651e[_0x2fca61(0x1b6)][_0x2fca61(0x1db)],'handler':async _0xe67edd=>{const _0x6d41e4=_0x2fca61,_0x2d1517=_0xe67edd[_0x6d41e4(0x1d1)](_0x13f51b[_0x6d41e4(0x1d4)]);return new URLSearchParams(location[_0x6d41e4(0x1e8)])[_0x6d41e4(0x1d1)](_0x6d41e4(0x1cc))?_0x2d1517['exportXLSXByUnitId']():_0x2d1517[_0x6d41e4(0x1e2)](),!0x0;}},_0x147d72=_0x2fca61(0x1b0),_0x54e1b5={},_0x48c0bd='sheets-exchange-client.operation.exchange';function _0xa9025(_0x38ab8b){const _0x54b7c1=_0x2fca61;return{'id':_0x48c0bd,'type':_0x29973e['MenuItemType'][_0x54b7c1(0x1e5)],'icon':_0x54b7c1(0x1de),'tooltip':_0x54b7c1(0x1ec),'hidden$':_0x29973e[_0x54b7c1(0x1d6)](_0x38ab8b,_0x31651e[_0x54b7c1(0x1cf)][_0x54b7c1(0x1cb)]),'disabled$':_0x13d3fa[_0x54b7c1(0x1d2)](_0x38ab8b,{'workbookTypes':[_0x3d7e81['WorkbookExportPermission']]})};}function _0x4b1376(){const _0x201698=_0x2fca61;return{'id':_0x3a3684['id'],'type':_0x29973e[_0x201698(0x1bd)]['BUTTON'],'title':_0x201698(0x1f1),'icon':_0x201698(0x1df)};}function _0x1a6f15(){const _0x10dade=_0x2fca61;return{'id':_0x4131e2['id'],'type':_0x29973e[_0x10dade(0x1bd)][_0x10dade(0x1eb)],'title':_0x10dade(0x1c7),'icon':_0x10dade(0x1d9)};}const _0x4d836f={[_0x29973e[_0x2fca61(0x1d3)][_0x2fca61(0x1c5)]]:{[_0x48c0bd]:{'order':0.3,'menuItemFactory':_0xa9025,[_0x3a3684['id']]:{'order':0x0,'menuItemFactory':_0x4b1376},[_0x4131e2['id']]:{'order':0x1,'menuItemFactory':_0x1a6f15}}}};var _0x475b91=Object[_0x2fca61(0x1e4)],_0x2a5ef8=(_0x5b694e,_0x545a8f,_0x3aa57a,_0x8229f)=>{const _0x5b3f9b=_0x2fca61;for(var _0x1b62a4=_0x8229f>0x1?void 0x0:_0x8229f?_0x475b91(_0x545a8f,_0x3aa57a):_0x545a8f,_0x470821=_0x5b694e[_0x5b3f9b(0x1d0)]-0x1,_0x412ce6;_0x470821>=0x0;_0x470821--)(_0x412ce6=_0x5b694e[_0x470821])&&(_0x1b62a4=_0x412ce6(_0x1b62a4)||_0x1b62a4);return _0x1b62a4;},_0x511912=(_0x4bad3a,_0x4afd26)=>(_0x1429bf,_0x1941aa)=>_0x4afd26(_0x1429bf,_0x1941aa,_0x4bad3a);let _0x493685=class extends _0x31651e[_0x2fca61(0x1c8)]{constructor(_0x4d26e8,_0xd9ea9a){const _0x366b0f=_0x2fca61;super(),this[_0x366b0f(0x1bc)]=_0x4d26e8,this[_0x366b0f(0x1d8)]=_0xd9ea9a,this[_0x366b0f(0x1e3)](),this[_0x366b0f(0x1b7)]();}['_initCommands'](){[_0x3a3684,_0x4131e2]['forEach'](_0x16f59b=>{const _0xd38aaa=_0x16be;this['disposeWithMe'](this[_0xd38aaa(0x1bc)]['registerCommand'](_0x16f59b));});}[_0x2fca61(0x1b7)](){const _0x222f60=_0x2fca61;this[_0x222f60(0x1d8)]['mergeMenu'](_0x4d836f);}};_0x493685=_0x2a5ef8([_0x511912(0x0,_0x31651e[_0x2fca61(0x1a9)]),_0x511912(0x1,_0x29973e[_0x2fca61(0x1f0)])],_0x493685);var _0x2ccb6a=Object[_0x2fca61(0x1ce)],_0x1576e2=Object[_0x2fca61(0x1e4)],_0x10671f=(_0x198f3,_0x3d78d0,_0x3a2529)=>_0x3d78d0 in _0x198f3?_0x2ccb6a(_0x198f3,_0x3d78d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2529}):_0x198f3[_0x3d78d0]=_0x3a2529,_0x279918=(_0x9f028c,_0x35a084,_0x2c67fe,_0x5441f4)=>{const _0x1cbc13=_0x2fca61;for(var _0x2c60d6=_0x5441f4>0x1?void 0x0:_0x5441f4?_0x1576e2(_0x35a084,_0x2c67fe):_0x35a084,_0x310f=_0x9f028c[_0x1cbc13(0x1d0)]-0x1,_0x20342d;_0x310f>=0x0;_0x310f--)(_0x20342d=_0x9f028c[_0x310f])&&(_0x2c60d6=_0x20342d(_0x2c60d6)||_0x2c60d6);return _0x2c60d6;},_0x4340ef=(_0x1f5f76,_0x4a2b8a)=>(_0x317a06,_0x3c3900)=>_0x4a2b8a(_0x317a06,_0x3c3900,_0x1f5f76),_0x14fe1a=(_0x321c24,_0x33cc23,_0x1d07a2)=>_0x10671f(_0x321c24,typeof _0x33cc23!='symbol'?_0x33cc23+'':_0x33cc23,_0x1d07a2);const _0x323be1='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x1952d6['UniverSheetsExchangeClientPlugin']=class extends _0x31651e[_0x2fca61(0x1e1)]{constructor(_0x219e30=_0x54e1b5,_0x5a815e,_0x3184ff){const _0x4f4e88=_0x2fca61;super(),this[_0x4f4e88(0x1c4)]=_0x219e30,this[_0x4f4e88(0x1c3)]=_0x5a815e,this[_0x4f4e88(0x1d7)]=_0x3184ff;const {menu:_0x833b23,..._0x4c9608}=_0x31651e[_0x4f4e88(0x1bf)]({},_0x54e1b5,this[_0x4f4e88(0x1c4)]);_0x833b23&&this[_0x4f4e88(0x1d7)]['setConfig']('menu',_0x833b23,{'merge':!0x0}),this['_configService']['setConfig'](_0x147d72,_0x4c9608);}[_0x2fca61(0x1f3)](){const _0x308e78=_0x2fca61;[[_0x493685]][_0x308e78(0x1ee)](_0x26a479=>this[_0x308e78(0x1c3)]['add'](_0x26a479));}[_0x2fca61(0x1af)](){const _0x360599=_0x2fca61;this[_0x360599(0x1c3)][_0x360599(0x1d1)](_0x493685);}},_0x14fe1a(_0x1952d6['UniverSheetsExchangeClientPlugin'],'pluginName',_0x323be1),_0x14fe1a(_0x1952d6[_0x2fca61(0x1b3)],_0x2fca61(0x1ca),_0x31651e['UniverInstanceType'][_0x2fca61(0x1cb)]),_0x1952d6[_0x2fca61(0x1b3)]=_0x279918([_0x31651e[_0x2fca61(0x1b8)](_0x13f51b[_0x2fca61(0x1b9)]),_0x4340ef(0x1,_0x31651e[_0x2fca61(0x1aa)](_0x31651e[_0x2fca61(0x1dc)])),_0x4340ef(0x2,_0x31651e['IConfigService'])],_0x1952d6[_0x2fca61(0x1b3)]),_0x1952d6[_0x2fca61(0x1b1)]=_0x4131e2,_0x1952d6[_0x2fca61(0x1c9)]=_0x3a3684,Object[_0x2fca61(0x1ce)](_0x1952d6,Symbol[_0x2fca61(0x1ed)],{'value':_0x2fca61(0x1c2)});}));function _0x16be(_0x14250b,_0x15f5e1){_0x14250b=_0x14250b-0x1a9;const _0x19a38f=_0x19a3();let _0x16bef0=_0x19a38f[_0x14250b];return _0x16bef0;}function _0x19a3(){const _0x5cd9b5=['ExportXLSXOperation','24440PKkOWP','UniverSheetsExchangeClientPlugin','UniverProExchangeClient','function','CommandType','_initMenus','DependentOn','UniverExchangeClientPlugin','amd','UniverProSheetsExchangeClient','_commandService','MenuItemType','UniverSheets','merge','exports','3305770AoHIjn','Module','_injector','_config','OTHERS','7zSjQMX','exchange.download','Disposable','ImportXLSXOperation','type','UNIVER_SHEET','unit','UniverUi','defineProperty','UniverInstanceType','length','get','getCurrentRangeDisable$','RibbonStartGroup','IExchangeOperateService','5090GIgZQa','getMenuHiddenObservable','_configService','_menuManagerService','ExportIcon','UniverSheetsUi','OPERATION','Injector','UniverCore','DirectExportIcon','FolderIcon','@univerjs/ui','Plugin','exportXLSXBySnapshot','_initCommands','getOwnPropertyDescriptor','SUBITEMS','81aaRtPB','3931008nHaIUS','search','importXLSXToSnapshot','1200552eDHIJS','BUTTON','exchange.file','toStringTag','forEach','12661144FtBeKl','IMenuManagerService','exchange.upload','502978Qusmmn','onStarting','ICommandService','Inject','@univerjs/sheets','@univerjs/core','exchange-client.operation.export-xlsx','59157vVIxXa','onReady','sheets-exchange-client.config'];_0x19a3=function(){return _0x5cd9b5;};return _0x19a3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/sheets
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/ui": "0.
|
|
45
|
+
"@univerjs/core": "0.15.0",
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.15.0",
|
|
47
|
+
"@univerjs/sheets": "0.15.0",
|
|
48
|
+
"@univerjs/ui": "0.15.0",
|
|
49
|
+
"@univerjs/sheets-ui": "0.15.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vite": "^7.
|
|
54
|
-
"vitest": "^4.0.
|
|
55
|
-
"@univerjs-infra/shared": "0.
|
|
53
|
+
"vite": "^7.3.0",
|
|
54
|
+
"vitest": "^4.0.16",
|
|
55
|
+
"@univerjs-infra/shared": "0.15.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|