@univerjs-pro/sheets-exchange-client 0.12.3-experimental.20251205-71d07c3 → 0.12.3-experimental.20251205-8c9a6bf
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';
|
|
1
|
+
'use strict';const _0x39ce43=_0x3a70;(function(_0x22211d,_0x1c1f81){const _0x1cfda1=_0x3a70,_0x1e32ff=_0x22211d();while(!![]){try{const _0x5f0c07=-parseInt(_0x1cfda1(0x112))/0x1*(-parseInt(_0x1cfda1(0xfb))/0x2)+parseInt(_0x1cfda1(0x130))/0x3*(parseInt(_0x1cfda1(0xff))/0x4)+-parseInt(_0x1cfda1(0x136))/0x5+-parseInt(_0x1cfda1(0x106))/0x6+parseInt(_0x1cfda1(0x105))/0x7+parseInt(_0x1cfda1(0x126))/0x8*(parseInt(_0x1cfda1(0xf9))/0x9)+parseInt(_0x1cfda1(0x11c))/0xa;if(_0x5f0c07===_0x1c1f81)break;else _0x1e32ff['push'](_0x1e32ff['shift']());}catch(_0x2ef62e){_0x1e32ff['push'](_0x1e32ff['shift']());}}}(_0x229b,0xb93e9));Object[_0x39ce43(0x128)](exports,Symbol[_0x39ce43(0x102)],{'value':'Module'});function _0x3a70(_0x37a1d8,_0x1fd1d6){_0x37a1d8=_0x37a1d8-0xf4;const _0x229be2=_0x229b();let _0x3a705b=_0x229be2[_0x37a1d8];return _0x3a705b;}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':_0x39ce43(0x12f),'type':i[_0x39ce43(0x113)][_0x39ce43(0x11f)],'handler':async _0x1a1aaa=>{const _0x24b3b=_0x39ce43,_0xcf318=_0x1a1aaa['get'](g['IExchangeOperateService']);return new URLSearchParams(location[_0x24b3b(0x12c)])[_0x24b3b(0xfe)]('unit')?_0xcf318[_0x24b3b(0x10a)]():_0xcf318[_0x24b3b(0x121)](),!0x0;}},p={'id':_0x39ce43(0xf8),'type':i[_0x39ce43(0x113)][_0x39ce43(0x11f)],'handler':async _0x15c0a9=>{const _0x2a20aa=_0x39ce43,_0x29d74a=_0x15c0a9[_0x2a20aa(0xfe)](g[_0x2a20aa(0x11a)]);return new URLSearchParams(location[_0x2a20aa(0x12c)])[_0x2a20aa(0xfe)](_0x2a20aa(0x12b))?_0x29d74a[_0x2a20aa(0xf5)]():_0x29d74a[_0x2a20aa(0x11e)](),!0x0;}},v=_0x39ce43(0x11b),h={},S='sheets-exchange-client.operation.exchange';function x(_0x45416c){const _0x164e2c=_0x39ce43;return{'id':S,'type':c['MenuItemType'][_0x164e2c(0x134)],'icon':_0x164e2c(0x10f),'tooltip':_0x164e2c(0x103),'hidden$':c[_0x164e2c(0x114)](_0x45416c,i[_0x164e2c(0x11d)][_0x164e2c(0x125)]),'disabled$':I[_0x164e2c(0x133)](_0x45416c,{'workbookTypes':[_[_0x164e2c(0xfa)]]})};}function P(){const _0x2af372=_0x39ce43;return{'id':l['id'],'type':c['MenuItemType'][_0x2af372(0x116)],'title':_0x2af372(0x129),'icon':_0x2af372(0x120)};}function C(){const _0x22c40c=_0x39ce43;return{'id':p['id'],'type':c['MenuItemType'][_0x22c40c(0x116)],'title':_0x22c40c(0x100),'icon':_0x22c40c(0x122)};}const f={[c[_0x39ce43(0x107)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x229b(){const _0x34bf68=['getCurrentRangeDisable$','SUBITEMS','merge','6784630lZqkMU','forEach','ExportXLSXOperation','exportXLSXByUnitId','_commandService','IConfigService','exchange-client.operation.export-xlsx','1036197kOKoaE','WorkbookExportPermission','118kvCIcm','disposeWithMe','add','get','14180JNlsGz','exchange.download','onReady','toStringTag','exchange.file','_injector','2216711rzVXdv','4301400lreWxE','RibbonStartGroup','ICommandService','mergeMenu','importXLSXToUnitId','setConfig','Injector','ImportXLSXOperation','_menuManagerService','DirectExportIcon','Inject','type','5299POlpwg','CommandType','getMenuHiddenObservable','onStarting','BUTTON','_initCommands','menu','Plugin','IExchangeOperateService','sheets-exchange-client.config','11294560mURIti','UniverInstanceType','exportXLSXBySnapshot','OPERATION','FolderIcon','importXLSXToSnapshot','ExportIcon','UniverSheetsExchangeClientPlugin','Disposable','UNIVER_SHEET','32JfksmD','_configService','defineProperty','exchange.upload','registerCommand','unit','search','_config','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','519MsuQzD','_initMenus','length'];_0x229b=function(){return _0x34bf68;};return _0x229b();}var T=Object['getOwnPropertyDescriptor'],y=(_0x5c2177,_0x45f409,_0x1c8fbb,_0x39df60)=>{const _0x33878a=_0x39ce43;for(var _0x2b2119=_0x39df60>0x1?void 0x0:_0x39df60?T(_0x45f409,_0x1c8fbb):_0x45f409,_0x5d3e8e=_0x5c2177[_0x33878a(0x132)]-0x1,_0x4da481;_0x5d3e8e>=0x0;_0x5d3e8e--)(_0x4da481=_0x5c2177[_0x5d3e8e])&&(_0x2b2119=_0x4da481(_0x2b2119)||_0x2b2119);return _0x2b2119;},m=(_0x5e2bfc,_0x4a06e1)=>(_0x32e5c9,_0xa658c9)=>_0x4a06e1(_0x32e5c9,_0xa658c9,_0x5e2bfc);let u=class extends i[_0x39ce43(0x124)]{constructor(_0x5c84dc,_0x41d648){const _0xde6b69=_0x39ce43;super(),this[_0xde6b69(0xf6)]=_0x5c84dc,this[_0xde6b69(0x10e)]=_0x41d648,this[_0xde6b69(0x117)](),this[_0xde6b69(0x131)]();}[_0x39ce43(0x117)](){const _0x3eb546=_0x39ce43;[l,p][_0x3eb546(0x137)](_0xf7f162=>{const _0x51fcf2=_0x3eb546;this[_0x51fcf2(0xfc)](this['_commandService'][_0x51fcf2(0x12a)](_0xf7f162));});}[_0x39ce43(0x131)](){const _0x5adaef=_0x39ce43;this[_0x5adaef(0x10e)][_0x5adaef(0x109)](f);}};u=y([m(0x0,i[_0x39ce43(0x108)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x39ce43(0x128)],U=Object[_0x39ce43(0x12e)],X=(_0x3b8bd7,_0x534885,_0x1a80d3)=>_0x534885 in _0x3b8bd7?O(_0x3b8bd7,_0x534885,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a80d3}):_0x3b8bd7[_0x534885]=_0x1a80d3,N=(_0x34681b,_0x2f3d3d,_0x2596e0,_0x24cd68)=>{for(var _0x5d27b3=_0x24cd68>0x1?void 0x0:_0x24cd68?U(_0x2f3d3d,_0x2596e0):_0x2f3d3d,_0xb1102b=_0x34681b['length']-0x1,_0x23fd14;_0xb1102b>=0x0;_0xb1102b--)(_0x23fd14=_0x34681b[_0xb1102b])&&(_0x5d27b3=_0x23fd14(_0x5d27b3)||_0x5d27b3);return _0x5d27b3;},d=(_0x332a15,_0x2179eb)=>(_0x11b89b,_0x24e006)=>_0x2179eb(_0x11b89b,_0x24e006,_0x332a15),E=(_0x1d6df0,_0xe212e3,_0x3c5501)=>X(_0x1d6df0,typeof _0xe212e3!='symbol'?_0xe212e3+'':_0xe212e3,_0x3c5501);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x39ce43(0x123)]=class extends i[_0x39ce43(0x119)]{constructor(_0x46b09a=h,_0x54490c,_0x4c7c8e){const _0x54a90a=_0x39ce43;super(),this[_0x54a90a(0x12d)]=_0x46b09a,this[_0x54a90a(0x104)]=_0x54490c,this[_0x54a90a(0x127)]=_0x4c7c8e;const {menu:_0x195fee,..._0x19d203}=i[_0x54a90a(0x135)]({},h,this['_config']);_0x195fee&&this['_configService'][_0x54a90a(0x10b)](_0x54a90a(0x118),_0x195fee,{'merge':!0x0}),this[_0x54a90a(0x127)][_0x54a90a(0x10b)](v,_0x19d203);}[_0x39ce43(0x115)](){const _0x1d67ea=_0x39ce43;[[u]]['forEach'](_0x48e894=>this[_0x1d67ea(0x104)][_0x1d67ea(0xfd)](_0x48e894));}[_0x39ce43(0x101)](){const _0x593f8c=_0x39ce43;this['_injector'][_0x593f8c(0xfe)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0x39ce43(0x123)],_0x39ce43(0x111),i[_0x39ce43(0x11d)][_0x39ce43(0x125)]),exports[_0x39ce43(0x123)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0x39ce43(0x110)](i[_0x39ce43(0x10c)])),d(0x2,i[_0x39ce43(0xf7)])],exports[_0x39ce43(0x123)]),exports[_0x39ce43(0xf4)]=p,exports[_0x39ce43(0x10d)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4c3389=_0x51a7;(function(_0x5d5d5a,_0x348d06){const _0x52a75b=_0x51a7,_0x33b886=_0x5d5d5a();while(!![]){try{const _0x12bacc=parseInt(_0x52a75b(0xdc))/0x1+parseInt(_0x52a75b(0x109))/0x2+parseInt(_0x52a75b(0xfe))/0x3+-parseInt(_0x52a75b(0xd7))/0x4*(-parseInt(_0x52a75b(0x106))/0x5)+parseInt(_0x52a75b(0xe1))/0x6*(-parseInt(_0x52a75b(0xde))/0x7)+parseInt(_0x52a75b(0xfb))/0x8*(parseInt(_0x52a75b(0xf2))/0x9)+parseInt(_0x52a75b(0xff))/0xa*(-parseInt(_0x52a75b(0xf7))/0xb);if(_0x12bacc===_0x348d06)break;else _0x33b886['push'](_0x33b886['shift']());}catch(_0x14b4a1){_0x33b886['push'](_0x33b886['shift']());}}}(_0x58bd,0x66d62));import{IExchangeOperateService as _0x10e91c,UniverExchangeClientPlugin as _0x5a9aa0}from'@univerjs-pro/exchange-client';function _0x58bd(){const _0x448b76=['onStarting','FolderIcon','type','2529Febudt','importXLSXToUnitId','exchange.file','_configService','_config','22xpRoUM','sheets-exchange-client.config','exchange.download','forEach','20392ZudDeg','onReady','exchange.upload','2323209mOkILJ','10958270XVSQKC','sheets-exchange-client.operation.exchange','_injector','OPERATION','exchange-client.operation.export-xlsx','menu','getOwnPropertyDescriptor','1055JvXrvW','SUBITEMS','ExportIcon','1651930SCuzpF','_initCommands','symbol','444NqCEfM','get','_initMenus','search','UNIVER_SHEET','528737ZDLDjJ','_menuManagerService','7DEnZHp','add','unit','1535538MjpNoR','OTHERS','exportXLSXBySnapshot','defineProperty','exportXLSXByUnitId','length','registerCommand','mergeMenu','pluginName','DirectExportIcon','BUTTON','importXLSXToSnapshot','setConfig','_commandService'];_0x58bd=function(){return _0x448b76;};return _0x58bd();}import{CommandType as _0x4b90ed,UniverInstanceType as _0x11d4ab,Disposable as _0x5ac6c5,ICommandService as _0x4bdbf2,DependentOn as _0x3f1582,Inject as _0x1bce74,Injector as _0x58cb66,IConfigService as _0xf5964f,Plugin as _0x5478b5,merge as _0x5bfeeb}from'@univerjs/core';import{MenuItemType as _0x22a8e4,getMenuHiddenObservable as _0x561b49,RibbonStartGroup as _0xde9287,IMenuManagerService as _0x3b13b3}from'@univerjs/ui';import{WorkbookExportPermission as _0x102dff}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xeb8c3a}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x4b90ed[_0x4c3389(0x102)],'handler':async _0x40f737=>{const _0x86a594=_0x4c3389,_0x5dedf1=_0x40f737[_0x86a594(0xd8)](_0x10e91c);return new URLSearchParams(location[_0x86a594(0xda)])[_0x86a594(0xd8)](_0x86a594(0xe0))?_0x5dedf1[_0x86a594(0xf3)]():_0x5dedf1[_0x86a594(0xec)](),!0x0;}},u={'id':_0x4c3389(0x103),'type':_0x4b90ed[_0x4c3389(0x102)],'handler':async _0x29e4cc=>{const _0x4790f1=_0x4c3389,_0x13d10f=_0x29e4cc[_0x4790f1(0xd8)](_0x10e91c);return new URLSearchParams(location[_0x4790f1(0xda)])[_0x4790f1(0xd8)](_0x4790f1(0xe0))?_0x13d10f[_0x4790f1(0xe5)]():_0x13d10f[_0x4790f1(0xe3)](),!0x0;}},H=_0x4c3389(0xf8),l={},S=_0x4c3389(0x100);function R(_0x13fa14){const _0x47284e=_0x4c3389;return{'id':S,'type':_0x22a8e4[_0x47284e(0x107)],'icon':_0x47284e(0xea),'tooltip':_0x47284e(0xf4),'hidden$':_0x561b49(_0x13fa14,_0x11d4ab[_0x47284e(0xdb)]),'disabled$':_0xeb8c3a(_0x13fa14,{'workbookTypes':[_0x102dff]})};}function w(){const _0x1e876a=_0x4c3389;return{'id':p['id'],'type':_0x22a8e4[_0x1e876a(0xeb)],'title':_0x1e876a(0xfd),'icon':_0x1e876a(0xf0)};}function D(){const _0x5abe0d=_0x4c3389;return{'id':u['id'],'type':_0x22a8e4[_0x5abe0d(0xeb)],'title':_0x5abe0d(0xf9),'icon':_0x5abe0d(0x108)};}const F={[_0xde9287[_0x4c3389(0xe2)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x527549,_0x4a47fd,_0x27f197,_0xf73e2)=>{const _0xc80596=_0x4c3389;for(var _0x241fd3=_0xf73e2>0x1?void 0x0:_0xf73e2?G(_0x4a47fd,_0x27f197):_0x4a47fd,_0x4199a9=_0x527549[_0xc80596(0xe6)]-0x1,_0x36c01a;_0x4199a9>=0x0;_0x4199a9--)(_0x36c01a=_0x527549[_0x4199a9])&&(_0x241fd3=_0x36c01a(_0x241fd3)||_0x241fd3);return _0x241fd3;},d=(_0x4684be,_0x252a1a)=>(_0x220854,_0x3c9de8)=>_0x252a1a(_0x220854,_0x3c9de8,_0x4684be);let c=class extends _0x5ac6c5{constructor(_0x524d1f,_0x20f0ac){const _0x5239c9=_0x4c3389;super(),this[_0x5239c9(0xee)]=_0x524d1f,this[_0x5239c9(0xdd)]=_0x20f0ac,this[_0x5239c9(0x10a)](),this[_0x5239c9(0xd9)]();}[_0x4c3389(0x10a)](){[p,u]['forEach'](_0x5b0928=>{const _0x53e0d9=_0x51a7;this['disposeWithMe'](this[_0x53e0d9(0xee)][_0x53e0d9(0xe7)](_0x5b0928));});}[_0x4c3389(0xd9)](){const _0x235bc2=_0x4c3389;this[_0x235bc2(0xdd)][_0x235bc2(0xe8)](F);}};c=A([d(0x0,_0x4bdbf2),d(0x1,_0x3b13b3)],c);var j=Object[_0x4c3389(0xe4)],B=Object[_0x4c3389(0x105)],$=(_0x1c60a0,_0x4e3484,_0x2668cc)=>_0x4e3484 in _0x1c60a0?j(_0x1c60a0,_0x4e3484,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2668cc}):_0x1c60a0[_0x4e3484]=_0x2668cc,V=(_0x52fd12,_0x566042,_0x3a0605,_0x480eb0)=>{const _0x26d6d5=_0x4c3389;for(var _0x434846=_0x480eb0>0x1?void 0x0:_0x480eb0?B(_0x566042,_0x3a0605):_0x566042,_0x5498e2=_0x52fd12[_0x26d6d5(0xe6)]-0x1,_0x440ff2;_0x5498e2>=0x0;_0x5498e2--)(_0x440ff2=_0x52fd12[_0x5498e2])&&(_0x434846=_0x440ff2(_0x434846)||_0x434846);return _0x434846;},_=(_0x4e126a,_0x3ade77)=>(_0x5bfd85,_0x8c89ec)=>_0x3ade77(_0x5bfd85,_0x8c89ec,_0x4e126a),I=(_0x4e1d74,_0x431932,_0x159205)=>$(_0x4e1d74,typeof _0x431932!=_0x4c3389(0x10b)?_0x431932+'':_0x431932,_0x159205);function _0x51a7(_0x2f3dc9,_0x34a5e6){_0x2f3dc9=_0x2f3dc9-0xd7;const _0x58bdea=_0x58bd();let _0x51a701=_0x58bdea[_0x2f3dc9];return _0x51a701;}const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x5478b5{constructor(_0x326f81=l,_0x2f2c5e,_0x41e8c1){const _0xfdec51=_0x4c3389;super(),this[_0xfdec51(0xf6)]=_0x326f81,this[_0xfdec51(0x101)]=_0x2f2c5e,this[_0xfdec51(0xf5)]=_0x41e8c1;const {menu:_0x49156d,..._0x52201a}=_0x5bfeeb({},l,this[_0xfdec51(0xf6)]);_0x49156d&&this[_0xfdec51(0xf5)][_0xfdec51(0xed)](_0xfdec51(0x104),_0x49156d,{'merge':!0x0}),this[_0xfdec51(0xf5)][_0xfdec51(0xed)](H,_0x52201a);}[_0x4c3389(0xef)](){const _0x4acfb9=_0x4c3389;[[c]][_0x4acfb9(0xfa)](_0x5e46ff=>this['_injector'][_0x4acfb9(0xdf)](_0x5e46ff));}[_0x4c3389(0xfc)](){const _0x3566e9=_0x4c3389;this[_0x3566e9(0x101)][_0x3566e9(0xd8)](c);}};I(s,_0x4c3389(0xe9),W),I(s,_0x4c3389(0xf1),_0x11d4ab[_0x4c3389(0xdb)]),s=V([_0x3f1582(_0x5a9aa0),_(0x1,_0x1bce74(_0x58cb66)),_(0x2,_0xf5964f)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4c3389=_0x51a7;(function(_0x5d5d5a,_0x348d06){const _0x52a75b=_0x51a7,_0x33b886=_0x5d5d5a();while(!![]){try{const _0x12bacc=parseInt(_0x52a75b(0xdc))/0x1+parseInt(_0x52a75b(0x109))/0x2+parseInt(_0x52a75b(0xfe))/0x3+-parseInt(_0x52a75b(0xd7))/0x4*(-parseInt(_0x52a75b(0x106))/0x5)+parseInt(_0x52a75b(0xe1))/0x6*(-parseInt(_0x52a75b(0xde))/0x7)+parseInt(_0x52a75b(0xfb))/0x8*(parseInt(_0x52a75b(0xf2))/0x9)+parseInt(_0x52a75b(0xff))/0xa*(-parseInt(_0x52a75b(0xf7))/0xb);if(_0x12bacc===_0x348d06)break;else _0x33b886['push'](_0x33b886['shift']());}catch(_0x14b4a1){_0x33b886['push'](_0x33b886['shift']());}}}(_0x58bd,0x66d62));import{IExchangeOperateService as _0x10e91c,UniverExchangeClientPlugin as _0x5a9aa0}from'@univerjs-pro/exchange-client';function _0x58bd(){const _0x448b76=['onStarting','FolderIcon','type','2529Febudt','importXLSXToUnitId','exchange.file','_configService','_config','22xpRoUM','sheets-exchange-client.config','exchange.download','forEach','20392ZudDeg','onReady','exchange.upload','2323209mOkILJ','10958270XVSQKC','sheets-exchange-client.operation.exchange','_injector','OPERATION','exchange-client.operation.export-xlsx','menu','getOwnPropertyDescriptor','1055JvXrvW','SUBITEMS','ExportIcon','1651930SCuzpF','_initCommands','symbol','444NqCEfM','get','_initMenus','search','UNIVER_SHEET','528737ZDLDjJ','_menuManagerService','7DEnZHp','add','unit','1535538MjpNoR','OTHERS','exportXLSXBySnapshot','defineProperty','exportXLSXByUnitId','length','registerCommand','mergeMenu','pluginName','DirectExportIcon','BUTTON','importXLSXToSnapshot','setConfig','_commandService'];_0x58bd=function(){return _0x448b76;};return _0x58bd();}import{CommandType as _0x4b90ed,UniverInstanceType as _0x11d4ab,Disposable as _0x5ac6c5,ICommandService as _0x4bdbf2,DependentOn as _0x3f1582,Inject as _0x1bce74,Injector as _0x58cb66,IConfigService as _0xf5964f,Plugin as _0x5478b5,merge as _0x5bfeeb}from'@univerjs/core';import{MenuItemType as _0x22a8e4,getMenuHiddenObservable as _0x561b49,RibbonStartGroup as _0xde9287,IMenuManagerService as _0x3b13b3}from'@univerjs/ui';import{WorkbookExportPermission as _0x102dff}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0xeb8c3a}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x4b90ed[_0x4c3389(0x102)],'handler':async _0x40f737=>{const _0x86a594=_0x4c3389,_0x5dedf1=_0x40f737[_0x86a594(0xd8)](_0x10e91c);return new URLSearchParams(location[_0x86a594(0xda)])[_0x86a594(0xd8)](_0x86a594(0xe0))?_0x5dedf1[_0x86a594(0xf3)]():_0x5dedf1[_0x86a594(0xec)](),!0x0;}},u={'id':_0x4c3389(0x103),'type':_0x4b90ed[_0x4c3389(0x102)],'handler':async _0x29e4cc=>{const _0x4790f1=_0x4c3389,_0x13d10f=_0x29e4cc[_0x4790f1(0xd8)](_0x10e91c);return new URLSearchParams(location[_0x4790f1(0xda)])[_0x4790f1(0xd8)](_0x4790f1(0xe0))?_0x13d10f[_0x4790f1(0xe5)]():_0x13d10f[_0x4790f1(0xe3)](),!0x0;}},H=_0x4c3389(0xf8),l={},S=_0x4c3389(0x100);function R(_0x13fa14){const _0x47284e=_0x4c3389;return{'id':S,'type':_0x22a8e4[_0x47284e(0x107)],'icon':_0x47284e(0xea),'tooltip':_0x47284e(0xf4),'hidden$':_0x561b49(_0x13fa14,_0x11d4ab[_0x47284e(0xdb)]),'disabled$':_0xeb8c3a(_0x13fa14,{'workbookTypes':[_0x102dff]})};}function w(){const _0x1e876a=_0x4c3389;return{'id':p['id'],'type':_0x22a8e4[_0x1e876a(0xeb)],'title':_0x1e876a(0xfd),'icon':_0x1e876a(0xf0)};}function D(){const _0x5abe0d=_0x4c3389;return{'id':u['id'],'type':_0x22a8e4[_0x5abe0d(0xeb)],'title':_0x5abe0d(0xf9),'icon':_0x5abe0d(0x108)};}const F={[_0xde9287[_0x4c3389(0xe2)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x527549,_0x4a47fd,_0x27f197,_0xf73e2)=>{const _0xc80596=_0x4c3389;for(var _0x241fd3=_0xf73e2>0x1?void 0x0:_0xf73e2?G(_0x4a47fd,_0x27f197):_0x4a47fd,_0x4199a9=_0x527549[_0xc80596(0xe6)]-0x1,_0x36c01a;_0x4199a9>=0x0;_0x4199a9--)(_0x36c01a=_0x527549[_0x4199a9])&&(_0x241fd3=_0x36c01a(_0x241fd3)||_0x241fd3);return _0x241fd3;},d=(_0x4684be,_0x252a1a)=>(_0x220854,_0x3c9de8)=>_0x252a1a(_0x220854,_0x3c9de8,_0x4684be);let c=class extends _0x5ac6c5{constructor(_0x524d1f,_0x20f0ac){const _0x5239c9=_0x4c3389;super(),this[_0x5239c9(0xee)]=_0x524d1f,this[_0x5239c9(0xdd)]=_0x20f0ac,this[_0x5239c9(0x10a)](),this[_0x5239c9(0xd9)]();}[_0x4c3389(0x10a)](){[p,u]['forEach'](_0x5b0928=>{const _0x53e0d9=_0x51a7;this['disposeWithMe'](this[_0x53e0d9(0xee)][_0x53e0d9(0xe7)](_0x5b0928));});}[_0x4c3389(0xd9)](){const _0x235bc2=_0x4c3389;this[_0x235bc2(0xdd)][_0x235bc2(0xe8)](F);}};c=A([d(0x0,_0x4bdbf2),d(0x1,_0x3b13b3)],c);var j=Object[_0x4c3389(0xe4)],B=Object[_0x4c3389(0x105)],$=(_0x1c60a0,_0x4e3484,_0x2668cc)=>_0x4e3484 in _0x1c60a0?j(_0x1c60a0,_0x4e3484,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2668cc}):_0x1c60a0[_0x4e3484]=_0x2668cc,V=(_0x52fd12,_0x566042,_0x3a0605,_0x480eb0)=>{const _0x26d6d5=_0x4c3389;for(var _0x434846=_0x480eb0>0x1?void 0x0:_0x480eb0?B(_0x566042,_0x3a0605):_0x566042,_0x5498e2=_0x52fd12[_0x26d6d5(0xe6)]-0x1,_0x440ff2;_0x5498e2>=0x0;_0x5498e2--)(_0x440ff2=_0x52fd12[_0x5498e2])&&(_0x434846=_0x440ff2(_0x434846)||_0x434846);return _0x434846;},_=(_0x4e126a,_0x3ade77)=>(_0x5bfd85,_0x8c89ec)=>_0x3ade77(_0x5bfd85,_0x8c89ec,_0x4e126a),I=(_0x4e1d74,_0x431932,_0x159205)=>$(_0x4e1d74,typeof _0x431932!=_0x4c3389(0x10b)?_0x431932+'':_0x431932,_0x159205);function _0x51a7(_0x2f3dc9,_0x34a5e6){_0x2f3dc9=_0x2f3dc9-0xd7;const _0x58bdea=_0x58bd();let _0x51a701=_0x58bdea[_0x2f3dc9];return _0x51a701;}const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x5478b5{constructor(_0x326f81=l,_0x2f2c5e,_0x41e8c1){const _0xfdec51=_0x4c3389;super(),this[_0xfdec51(0xf6)]=_0x326f81,this[_0xfdec51(0x101)]=_0x2f2c5e,this[_0xfdec51(0xf5)]=_0x41e8c1;const {menu:_0x49156d,..._0x52201a}=_0x5bfeeb({},l,this[_0xfdec51(0xf6)]);_0x49156d&&this[_0xfdec51(0xf5)][_0xfdec51(0xed)](_0xfdec51(0x104),_0x49156d,{'merge':!0x0}),this[_0xfdec51(0xf5)][_0xfdec51(0xed)](H,_0x52201a);}[_0x4c3389(0xef)](){const _0x4acfb9=_0x4c3389;[[c]][_0x4acfb9(0xfa)](_0x5e46ff=>this['_injector'][_0x4acfb9(0xdf)](_0x5e46ff));}[_0x4c3389(0xfc)](){const _0x3566e9=_0x4c3389;this[_0x3566e9(0x101)][_0x3566e9(0xd8)](c);}};I(s,_0x4c3389(0xe9),W),I(s,_0x4c3389(0xf1),_0x11d4ab[_0x4c3389(0xdb)]),s=V([_0x3f1582(_0x5a9aa0),_(0x1,_0x1bce74(_0x58cb66)),_(0x2,_0xf5964f)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4f51(_0x4e27f1,_0x1772f6){_0x4e27f1=_0x4e27f1-0x7a;const _0x2796ff=_0x2796();let _0x4f5126=_0x2796ff[_0x4e27f1];return _0x4f5126;}function _0x2796(){const _0x37dd35=['_config','Inject','RibbonStartGroup','_initCommands','OTHERS','sheets-exchange-client.config','789678asiXiU','forEach','UNIVER_SHEET','UniverSheetsExchangeClientPlugin','BUTTON','_commandService','importXLSXToSnapshot','Module','pluginName','UniverExchangeClientPlugin','add','19582pPSuAK','CommandType','WorkbookExportPermission','MenuItemType','_configService','UniverSheets','72qwFXCE','length','onStarting','316735HXYZQl','OPERATION','defineProperty','ICommandService','_initMenus','UniverCore','exportXLSXBySnapshot','mergeMenu','266212lBBkUG','616344jFpqmT','DirectExportIcon','UniverInstanceType','_injector','type','_menuManagerService','IExchangeOperateService','@univerjs/sheets-ui','UniverSheetsUi','toStringTag','sheets-exchange-client.operation.exchange','merge','search','exchange-client.operation.import-xlsx','onReady','ExportXLSXOperation','function','getOwnPropertyDescriptor','registerCommand','UniverProSheetsExchangeClient','symbol','get','unit','53613GZOHqB','exchange-client.operation.export-xlsx','Injector','exchange.upload','@univerjs/sheets','disposeWithMe','4638762FQpKzA','@univerjs/core','object','getCurrentRangeDisable$','7HhIiXN','menu','Disposable','getMenuHiddenObservable','@univerjs-pro/exchange-client'];_0x2796=function(){return _0x37dd35;};return _0x2796();}(function(_0xf7daad,_0x508d90){const _0x406484=_0x4f51,_0x5e3ebb=_0xf7daad();while(!![]){try{const _0x46b8eb=-parseInt(_0x406484(0x8c))/0x1*(-parseInt(_0x406484(0xa2))/0x2)+-parseInt(_0x406484(0x97))/0x3+-parseInt(_0x406484(0xb3))/0x4+parseInt(_0x406484(0xab))/0x5+-parseInt(_0x406484(0xb4))/0x6+parseInt(_0x406484(0x82))/0x7*(-parseInt(_0x406484(0xa8))/0x8)+parseInt(_0x406484(0x88))/0x9;if(_0x46b8eb===_0x508d90)break;else _0x5e3ebb['push'](_0x5e3ebb['shift']());}catch(_0x3656d1){_0x5e3ebb['push'](_0x5e3ebb['shift']());}}}(_0x2796,0x239cc),function(_0x1c3921,_0x465f3a){const _0x5d78fe=_0x4f51;typeof exports==_0x5d78fe(0x8a)&&typeof module<'u'?_0x465f3a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5d78fe(0x7b)&&define['amd']?define(['exports',_0x5d78fe(0x90),_0x5d78fe(0x89),'@univerjs/ui',_0x5d78fe(0x86),_0x5d78fe(0xbb)],_0x465f3a):(_0x1c3921=typeof globalThis<'u'?globalThis:_0x1c3921||self,_0x465f3a(_0x1c3921[_0x5d78fe(0x7e)]={},_0x1c3921['UniverProExchangeClient'],_0x1c3921[_0x5d78fe(0xb0)],_0x1c3921['UniverUi'],_0x1c3921[_0x5d78fe(0xa7)],_0x1c3921[_0x5d78fe(0xbc)]));}(this,function(_0x3792c4,_0xd2a70c,_0xe0b785,_0x32f0c2,_0x3c1527,_0x3ffe99){'use strict';const _0x545e3=_0x4f51;const _0x3b52c3={'id':_0x545e3(0xc1),'type':_0xe0b785[_0x545e3(0xa3)][_0x545e3(0xac)],'handler':async _0x44f479=>{const _0x5bf5ac=_0x545e3,_0x4f48ba=_0x44f479[_0x5bf5ac(0x80)](_0xd2a70c[_0x5bf5ac(0xba)]);return new URLSearchParams(location['search'])[_0x5bf5ac(0x80)](_0x5bf5ac(0x81))?_0x4f48ba['importXLSXToUnitId']():_0x4f48ba[_0x5bf5ac(0x9d)](),!0x0;}},_0x4b0c01={'id':_0x545e3(0x83),'type':_0xe0b785[_0x545e3(0xa3)]['OPERATION'],'handler':async _0x509c9f=>{const _0x15cce3=_0x545e3,_0x36994b=_0x509c9f['get'](_0xd2a70c[_0x15cce3(0xba)]);return new URLSearchParams(location[_0x15cce3(0xc0)])[_0x15cce3(0x80)](_0x15cce3(0x81))?_0x36994b['exportXLSXByUnitId']():_0x36994b[_0x15cce3(0xb1)](),!0x0;}},_0x4a7e3a=_0x545e3(0x96),_0x2023b6={},_0x17a297=_0x545e3(0xbe);function _0x2d5585(_0x5f5262){const _0x2a1b55=_0x545e3;return{'id':_0x17a297,'type':_0x32f0c2['MenuItemType']['SUBITEMS'],'icon':_0x2a1b55(0xb5),'tooltip':'exchange.file','hidden$':_0x32f0c2[_0x2a1b55(0x8f)](_0x5f5262,_0xe0b785[_0x2a1b55(0xb6)][_0x2a1b55(0x99)]),'disabled$':_0x3ffe99[_0x2a1b55(0x8b)](_0x5f5262,{'workbookTypes':[_0x3c1527[_0x2a1b55(0xa4)]]})};}function _0x5ce67d(){const _0x23f437=_0x545e3;return{'id':_0x3b52c3['id'],'type':_0x32f0c2['MenuItemType'][_0x23f437(0x9b)],'title':_0x23f437(0x85),'icon':'FolderIcon'};}function _0x2b7129(){const _0x5758bb=_0x545e3;return{'id':_0x4b0c01['id'],'type':_0x32f0c2[_0x5758bb(0xa5)][_0x5758bb(0x9b)],'title':'exchange.download','icon':'ExportIcon'};}const _0x2c60f6={[_0x32f0c2[_0x545e3(0x93)][_0x545e3(0x95)]]:{[_0x17a297]:{'order':0.3,'menuItemFactory':_0x2d5585,[_0x3b52c3['id']]:{'order':0x0,'menuItemFactory':_0x5ce67d},[_0x4b0c01['id']]:{'order':0x1,'menuItemFactory':_0x2b7129}}}};var _0x2ade36=Object[_0x545e3(0x7c)],_0x3bfd9=(_0x589d3a,_0x4ea7b3,_0x1f7fe7,_0x327114)=>{const _0x4425db=_0x545e3;for(var _0xbaa59c=_0x327114>0x1?void 0x0:_0x327114?_0x2ade36(_0x4ea7b3,_0x1f7fe7):_0x4ea7b3,_0x217f46=_0x589d3a[_0x4425db(0xa9)]-0x1,_0x12cf7d;_0x217f46>=0x0;_0x217f46--)(_0x12cf7d=_0x589d3a[_0x217f46])&&(_0xbaa59c=_0x12cf7d(_0xbaa59c)||_0xbaa59c);return _0xbaa59c;},_0x1ae07f=(_0xab01c4,_0x2dd279)=>(_0x528a69,_0x1bfb4e)=>_0x2dd279(_0x528a69,_0x1bfb4e,_0xab01c4);let _0x1da1c1=class extends _0xe0b785[_0x545e3(0x8e)]{constructor(_0x4740a2,_0x4839ec){const _0x291a8f=_0x545e3;super(),this[_0x291a8f(0x9c)]=_0x4740a2,this[_0x291a8f(0xb9)]=_0x4839ec,this['_initCommands'](),this[_0x291a8f(0xaf)]();}[_0x545e3(0x94)](){const _0xf0741=_0x545e3;[_0x3b52c3,_0x4b0c01][_0xf0741(0x98)](_0x6096e4=>{const _0x23429b=_0xf0741;this[_0x23429b(0x87)](this[_0x23429b(0x9c)][_0x23429b(0x7d)](_0x6096e4));});}[_0x545e3(0xaf)](){const _0x14644c=_0x545e3;this[_0x14644c(0xb9)][_0x14644c(0xb2)](_0x2c60f6);}};_0x1da1c1=_0x3bfd9([_0x1ae07f(0x0,_0xe0b785[_0x545e3(0xae)]),_0x1ae07f(0x1,_0x32f0c2['IMenuManagerService'])],_0x1da1c1);var _0x1e57fa=Object[_0x545e3(0xad)],_0x41d8a8=Object[_0x545e3(0x7c)],_0x2ab6a4=(_0x52cf44,_0x55c94c,_0x20ca53)=>_0x55c94c in _0x52cf44?_0x1e57fa(_0x52cf44,_0x55c94c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20ca53}):_0x52cf44[_0x55c94c]=_0x20ca53,_0x311ad6=(_0x2f768c,_0x404139,_0x3c828e,_0x1f25a3)=>{for(var _0x341ef1=_0x1f25a3>0x1?void 0x0:_0x1f25a3?_0x41d8a8(_0x404139,_0x3c828e):_0x404139,_0x366343=_0x2f768c['length']-0x1,_0x2830e4;_0x366343>=0x0;_0x366343--)(_0x2830e4=_0x2f768c[_0x366343])&&(_0x341ef1=_0x2830e4(_0x341ef1)||_0x341ef1);return _0x341ef1;},_0x2777d3=(_0x343389,_0x44142b)=>(_0x192865,_0xfeb943)=>_0x44142b(_0x192865,_0xfeb943,_0x343389),_0x581ecb=(_0x540633,_0x1baf6c,_0x3f9102)=>_0x2ab6a4(_0x540633,typeof _0x1baf6c!=_0x545e3(0x7f)?_0x1baf6c+'':_0x1baf6c,_0x3f9102);const _0x1f1982='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x3792c4[_0x545e3(0x9a)]=class extends _0xe0b785['Plugin']{constructor(_0x28fa52=_0x2023b6,_0x488f83,_0x4385f8){const _0x23eeb4=_0x545e3;super(),this[_0x23eeb4(0x91)]=_0x28fa52,this[_0x23eeb4(0xb7)]=_0x488f83,this['_configService']=_0x4385f8;const {menu:_0x1a85a3,..._0x2255db}=_0xe0b785[_0x23eeb4(0xbf)]({},_0x2023b6,this[_0x23eeb4(0x91)]);_0x1a85a3&&this[_0x23eeb4(0xa6)]['setConfig'](_0x23eeb4(0x8d),_0x1a85a3,{'merge':!0x0}),this['_configService']['setConfig'](_0x4a7e3a,_0x2255db);}[_0x545e3(0xaa)](){const _0x5aea97=_0x545e3;[[_0x1da1c1]][_0x5aea97(0x98)](_0x5d42de=>this[_0x5aea97(0xb7)][_0x5aea97(0xa1)](_0x5d42de));}[_0x545e3(0xc2)](){const _0xa35e85=_0x545e3;this[_0xa35e85(0xb7)][_0xa35e85(0x80)](_0x1da1c1);}},_0x581ecb(_0x3792c4[_0x545e3(0x9a)],_0x545e3(0x9f),_0x1f1982),_0x581ecb(_0x3792c4[_0x545e3(0x9a)],_0x545e3(0xb8),_0xe0b785[_0x545e3(0xb6)][_0x545e3(0x99)]),_0x3792c4[_0x545e3(0x9a)]=_0x311ad6([_0xe0b785['DependentOn'](_0xd2a70c[_0x545e3(0xa0)]),_0x2777d3(0x1,_0xe0b785[_0x545e3(0x92)](_0xe0b785[_0x545e3(0x84)])),_0x2777d3(0x2,_0xe0b785['IConfigService'])],_0x3792c4['UniverSheetsExchangeClientPlugin']),_0x3792c4[_0x545e3(0x7a)]=_0x4b0c01,_0x3792c4['ImportXLSXOperation']=_0x3b52c3,Object[_0x545e3(0xad)](_0x3792c4,Symbol[_0x545e3(0xbd)],{'value':_0x545e3(0x9e)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.12.3-experimental.20251205-
|
|
3
|
+
"version": "0.12.3-experimental.20251205-8c9a6bf",
|
|
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.12.3-experimental.20251205-
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets": "0.12.3-experimental.20251205-
|
|
49
|
-
"@univerjs/ui": "0.12.3-experimental.20251205-
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.12.3-experimental.20251205-8c9a6bf",
|
|
46
|
+
"@univerjs/core": "0.12.3-experimental.20251205-8c9a6bf",
|
|
47
|
+
"@univerjs/sheets": "0.12.3-experimental.20251205-8c9a6bf",
|
|
48
|
+
"@univerjs/sheets-ui": "0.12.3-experimental.20251205-8c9a6bf",
|
|
49
|
+
"@univerjs/ui": "0.12.3-experimental.20251205-8c9a6bf"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|