@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-453e4ff
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4e300b=_0x3a82;function _0x3a82(_0x5adb78,_0x39386f){_0x5adb78=_0x5adb78-0x101;const _0x39c28a=_0x39c2();let _0x3a829a=_0x39c28a[_0x5adb78];return _0x3a829a;}(function(_0x3618a9,_0x425728){const _0x4c00b5=_0x3a82,_0xd79d64=_0x3618a9();while(!![]){try{const _0x1e97f1=-parseInt(_0x4c00b5(0x11c))/0x1+-parseInt(_0x4c00b5(0x12f))/0x2*(-parseInt(_0x4c00b5(0x12b))/0x3)+parseInt(_0x4c00b5(0x132))/0x4+parseInt(_0x4c00b5(0x119))/0x5+parseInt(_0x4c00b5(0x102))/0x6+parseInt(_0x4c00b5(0x13c))/0x7*(-parseInt(_0x4c00b5(0x10d))/0x8)+-parseInt(_0x4c00b5(0x131))/0x9;if(_0x1e97f1===_0x425728)break;else _0xd79d64['push'](_0xd79d64['shift']());}catch(_0x556c30){_0xd79d64['push'](_0xd79d64['shift']());}}}(_0x39c2,0xc431e));Object[_0x4e300b(0x139)](exports,Symbol[_0x4e300b(0x11d)],{'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':_0x4e300b(0x121),'type':i['CommandType'][_0x4e300b(0x124)],'handler':async _0x4b4e25=>{const _0x4057b0=_0x4e300b,_0x21a3cb=_0x4b4e25['get'](g[_0x4057b0(0x11f)]);return new URLSearchParams(location['search'])['get'](_0x4057b0(0x101))?_0x21a3cb['importXLSXToUnitId']():_0x21a3cb[_0x4057b0(0x129)](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i['CommandType']['OPERATION'],'handler':async _0x558ba3=>{const _0x363e3f=_0x4e300b,_0x715681=_0x558ba3[_0x363e3f(0x10a)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x363e3f(0x118)])[_0x363e3f(0x10a)](_0x363e3f(0x101))?_0x715681[_0x363e3f(0x12e)]():_0x715681['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S='sheets-exchange-client.operation.exchange';function x(_0x1868e8){const _0x37a1b0=_0x4e300b;return{'id':S,'type':c[_0x37a1b0(0x13a)][_0x37a1b0(0x134)],'icon':_0x37a1b0(0x125),'tooltip':_0x37a1b0(0x10c),'hidden$':c['getMenuHiddenObservable'](_0x1868e8,i[_0x37a1b0(0x136)]['UNIVER_SHEET']),'disabled$':I[_0x37a1b0(0x113)](_0x1868e8,{'workbookTypes':[_[_0x37a1b0(0x126)]]})};}function P(){const _0x264eed=_0x4e300b;return{'id':l['id'],'type':c[_0x264eed(0x13a)][_0x264eed(0x108)],'title':_0x264eed(0x110),'icon':_0x264eed(0x122)};}function C(){const _0x53078b=_0x4e300b;return{'id':p['id'],'type':c[_0x53078b(0x13a)]['BUTTON'],'title':'exchange.download','icon':_0x53078b(0x12d)};}const f={[c[_0x4e300b(0x111)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4e300b(0x13b)],y=(_0x2bf1bc,_0x3b487b,_0x581739,_0x977361)=>{for(var _0x28229f=_0x977361>0x1?void 0x0:_0x977361?T(_0x3b487b,_0x581739):_0x3b487b,_0x10668d=_0x2bf1bc['length']-0x1,_0x5c5d1e;_0x10668d>=0x0;_0x10668d--)(_0x5c5d1e=_0x2bf1bc[_0x10668d])&&(_0x28229f=_0x5c5d1e(_0x28229f)||_0x28229f);return _0x28229f;},m=(_0x5c810f,_0x4b7aef)=>(_0x574249,_0x1a944e)=>_0x4b7aef(_0x574249,_0x1a944e,_0x5c810f);let u=class extends i[_0x4e300b(0x10b)]{constructor(_0xcf7c5d,_0x1397b9){const _0x57c841=_0x4e300b;super(),this['_commandService']=_0xcf7c5d,this[_0x57c841(0x135)]=_0x1397b9,this[_0x57c841(0x115)](),this[_0x57c841(0x13d)]();}[_0x4e300b(0x115)](){[l,p]['forEach'](_0x5de665=>{const _0x3b6211=_0x3a82;this[_0x3b6211(0x11e)](this[_0x3b6211(0x12a)][_0x3b6211(0x12c)](_0x5de665));});}[_0x4e300b(0x13d)](){const _0x2da384=_0x4e300b;this[_0x2da384(0x135)][_0x2da384(0x138)](f);}};u=y([m(0x0,i[_0x4e300b(0x106)]),m(0x1,c[_0x4e300b(0x10e)])],u);function _0x39c2(){const _0x4667cb=['UNIVER_SHEET','importXLSXToSnapshot','_commandService','357IFwUov','registerCommand','ExportIcon','exportXLSXByUnitId','12742qkCzyx','onReady','6722757oLoIaz','5919464TUQEJg','UniverSheetsExchangeClientPlugin','SUBITEMS','_menuManagerService','UniverInstanceType','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','defineProperty','MenuItemType','getOwnPropertyDescriptor','11017594mluote','_initMenus','unit','5495166tzteSy','add','pluginName','_injector','ICommandService','setConfig','BUTTON','menu','get','Disposable','exchange.file','8VDWjbV','IMenuManagerService','UniverExchangeClientPlugin','exchange.upload','RibbonStartGroup','Injector','getCurrentRangeDisable$','merge','_initCommands','onStarting','_configService','search','6445975pkKyoG','_config','Inject','1318542URXHCg','toStringTag','disposeWithMe','IExchangeOperateService','ImportXLSXOperation','exchange-client.operation.import-xlsx','FolderIcon','length','OPERATION','DirectExportIcon','WorkbookExportPermission','DependentOn'];_0x39c2=function(){return _0x4667cb;};return _0x39c2();}var O=Object[_0x4e300b(0x139)],U=Object[_0x4e300b(0x13b)],X=(_0x10748c,_0x31df01,_0x1297d7)=>_0x31df01 in _0x10748c?O(_0x10748c,_0x31df01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1297d7}):_0x10748c[_0x31df01]=_0x1297d7,N=(_0x502c2d,_0x4a4384,_0x32376b,_0x1edbad)=>{const _0x136e7d=_0x4e300b;for(var _0x23198c=_0x1edbad>0x1?void 0x0:_0x1edbad?U(_0x4a4384,_0x32376b):_0x4a4384,_0x1d7eab=_0x502c2d[_0x136e7d(0x123)]-0x1,_0x4e4fe9;_0x1d7eab>=0x0;_0x1d7eab--)(_0x4e4fe9=_0x502c2d[_0x1d7eab])&&(_0x23198c=_0x4e4fe9(_0x23198c)||_0x23198c);return _0x23198c;},d=(_0xa86d3e,_0x6a5588)=>(_0x19df30,_0x4d3dee)=>_0x6a5588(_0x19df30,_0x4d3dee,_0xa86d3e),E=(_0x4eddc7,_0x1e03e3,_0x11956e)=>X(_0x4eddc7,typeof _0x1e03e3!='symbol'?_0x1e03e3+'':_0x1e03e3,_0x11956e);const L=_0x4e300b(0x137);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0x368b02=h,_0x36edb9,_0x1a6a48){const _0x10da2b=_0x4e300b;super(),this[_0x10da2b(0x11a)]=_0x368b02,this['_injector']=_0x36edb9,this[_0x10da2b(0x117)]=_0x1a6a48;const {menu:_0x225cdb,..._0xabc74a}=i[_0x10da2b(0x114)]({},h,this[_0x10da2b(0x11a)]);_0x225cdb&&this[_0x10da2b(0x117)]['setConfig'](_0x10da2b(0x109),_0x225cdb,{'merge':!0x0}),this[_0x10da2b(0x117)][_0x10da2b(0x107)](v,_0xabc74a);}[_0x4e300b(0x116)](){const _0x15232a=_0x4e300b;[[u]]['forEach'](_0x48c600=>this[_0x15232a(0x105)][_0x15232a(0x103)](_0x48c600));}[_0x4e300b(0x130)](){const _0x2c610c=_0x4e300b;this[_0x2c610c(0x105)][_0x2c610c(0x10a)](u);}},E(exports[_0x4e300b(0x133)],_0x4e300b(0x104),L),E(exports[_0x4e300b(0x133)],'type',i['UniverInstanceType'][_0x4e300b(0x128)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x4e300b(0x127)](g[_0x4e300b(0x10f)]),d(0x1,i[_0x4e300b(0x11b)](i[_0x4e300b(0x112)])),d(0x2,i['IConfigService'])],exports[_0x4e300b(0x133)]),exports['ExportXLSXOperation']=p,exports[_0x4e300b(0x120)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3447d5=_0xec03;(function(_0x305c6c,_0x4b9736){const _0x328235=_0xec03,_0x42a242=_0x305c6c();while(!![]){try{const _0x5e6e10=parseInt(_0x328235(0x137))/0x1+parseInt(_0x328235(0x140))/0x2+-parseInt(_0x328235(0x155))/0x3*(-parseInt(_0x328235(0x14b))/0x4)+-parseInt(_0x328235(0x12b))/0x5+-parseInt(_0x328235(0x13c))/0x6+-parseInt(_0x328235(0x14d))/0x7*(parseInt(_0x328235(0x144))/0x8)+parseInt(_0x328235(0x13b))/0x9;if(_0x5e6e10===_0x4b9736)break;else _0x42a242['push'](_0x42a242['shift']());}catch(_0x5d67d7){_0x42a242['push'](_0x42a242['shift']());}}}(_0x277b,0xdbd9f));import{IExchangeOperateService as _0x41124d,UniverExchangeClientPlugin as _0x23dd89}from'@univerjs-pro/exchange-client';import{CommandType as _0x2ea409,UniverInstanceType as _0x526314,Disposable as _0x1e57f6,ICommandService as _0x5ec630,DependentOn as _0x53fe33,Inject as _0x8b96a0,Injector as _0x4073d2,IConfigService as _0x15323f,Plugin as _0x5cd8a2,merge as _0x5e8e75}from'@univerjs/core';import{MenuItemType as _0x18b125,getMenuHiddenObservable as _0x228995,RibbonStartGroup as _0x2da5fd,IMenuManagerService as _0x491c17}from'@univerjs/ui';function _0x277b(){const _0x2ce32e=['2040801ukepnW','DirectExportIcon','add','exchange-client.operation.import-xlsx','ExportIcon','unit','OTHERS','FolderIcon','15HwIGqm','onStarting','sheets-exchange-client.config','type','965330hOYHLe','exchange.download','BUTTON','search','SUBITEMS','get','forEach','exchange.upload','_initCommands','_initMenus','_injector','onReady','172513mzzHdJ','setConfig','defineProperty','_commandService','8472996nqXWpn','806832yufLaO','_config','OPERATION','symbol','1732120QFFqMq','exportXLSXByUnitId','menu','registerCommand','48LuqlCd','disposeWithMe','pluginName','_menuManagerService','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','797832drAfGS','sheets-exchange-client.operation.exchange'];_0x277b=function(){return _0x2ce32e;};return _0x277b();}import{WorkbookExportPermission as _0x3dec36}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x362404}from'@univerjs/sheets-ui';const p={'id':_0x3447d5(0x150),'type':_0x2ea409['OPERATION'],'handler':async _0x469b6e=>{const _0x283189=_0x3447d5,_0x2edabc=_0x469b6e[_0x283189(0x130)](_0x41124d);return new URLSearchParams(location[_0x283189(0x12e)])['get'](_0x283189(0x152))?_0x2edabc['importXLSXToUnitId']():_0x2edabc['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2ea409[_0x3447d5(0x13e)],'handler':async _0x482b35=>{const _0x6f8d2a=_0x3447d5,_0x39012b=_0x482b35[_0x6f8d2a(0x130)](_0x41124d);return new URLSearchParams(location[_0x6f8d2a(0x12e)])['get']('unit')?_0x39012b[_0x6f8d2a(0x141)]():_0x39012b[_0x6f8d2a(0x148)](),!0x0;}},H=_0x3447d5(0x157),l={},S=_0x3447d5(0x14c);function R(_0x4d0a84){const _0x553338=_0x3447d5;return{'id':S,'type':_0x18b125[_0x553338(0x12f)],'icon':_0x553338(0x14e),'tooltip':'exchange.file','hidden$':_0x228995(_0x4d0a84,_0x526314['UNIVER_SHEET']),'disabled$':_0x362404(_0x4d0a84,{'workbookTypes':[_0x3dec36]})};}function w(){const _0x3c06c3=_0x3447d5;return{'id':p['id'],'type':_0x18b125['BUTTON'],'title':_0x3c06c3(0x132),'icon':_0x3c06c3(0x154)};}function D(){const _0x324a6b=_0x3447d5;return{'id':u['id'],'type':_0x18b125[_0x324a6b(0x12d)],'title':_0x324a6b(0x12c),'icon':_0x324a6b(0x151)};}const F={[_0x2da5fd[_0x3447d5(0x153)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x19223e,_0x54b2be,_0x31dcf0,_0x503aea)=>{for(var _0x229681=_0x503aea>0x1?void 0x0:_0x503aea?G(_0x54b2be,_0x31dcf0):_0x54b2be,_0x580f33=_0x19223e['length']-0x1,_0x8ba6be;_0x580f33>=0x0;_0x580f33--)(_0x8ba6be=_0x19223e[_0x580f33])&&(_0x229681=_0x8ba6be(_0x229681)||_0x229681);return _0x229681;},d=(_0xea0e14,_0x175a12)=>(_0x41127d,_0x464ae7)=>_0x175a12(_0x41127d,_0x464ae7,_0xea0e14);let c=class extends _0x1e57f6{constructor(_0x52f76e,_0x39a033){const _0x42b514=_0x3447d5;super(),this[_0x42b514(0x13a)]=_0x52f76e,this[_0x42b514(0x147)]=_0x39a033,this[_0x42b514(0x133)](),this[_0x42b514(0x134)]();}['_initCommands'](){const _0xd945e3=_0x3447d5;[p,u][_0xd945e3(0x131)](_0xf2d821=>{const _0x14f3b8=_0xd945e3;this[_0x14f3b8(0x145)](this[_0x14f3b8(0x13a)][_0x14f3b8(0x143)](_0xf2d821));});}[_0x3447d5(0x134)](){const _0x5c3082=_0x3447d5;this[_0x5c3082(0x147)]['mergeMenu'](F);}};function _0xec03(_0x176f33,_0x584b6d){_0x176f33=_0x176f33-0x12a;const _0x277b05=_0x277b();let _0xec0371=_0x277b05[_0x176f33];return _0xec0371;}c=A([d(0x0,_0x5ec630),d(0x1,_0x491c17)],c);var j=Object[_0x3447d5(0x139)],B=Object[_0x3447d5(0x14a)],$=(_0x5ba12c,_0x4eba8c,_0x37e351)=>_0x4eba8c in _0x5ba12c?j(_0x5ba12c,_0x4eba8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37e351}):_0x5ba12c[_0x4eba8c]=_0x37e351,V=(_0x503f4e,_0x2c5841,_0x1595cc,_0x34af7a)=>{for(var _0x32ce6c=_0x34af7a>0x1?void 0x0:_0x34af7a?B(_0x2c5841,_0x1595cc):_0x2c5841,_0x587f85=_0x503f4e['length']-0x1,_0x4a7272;_0x587f85>=0x0;_0x587f85--)(_0x4a7272=_0x503f4e[_0x587f85])&&(_0x32ce6c=_0x4a7272(_0x32ce6c)||_0x32ce6c);return _0x32ce6c;},_=(_0x3d8503,_0x4f3c3b)=>(_0xf29d40,_0x58e925)=>_0x4f3c3b(_0xf29d40,_0x58e925,_0x3d8503),I=(_0x4a013c,_0xa4cdaa,_0x4144fa)=>$(_0x4a013c,typeof _0xa4cdaa!=_0x3447d5(0x13f)?_0xa4cdaa+'':_0xa4cdaa,_0x4144fa);const W=_0x3447d5(0x149);let s=class extends _0x5cd8a2{constructor(_0x5b39d7=l,_0xde34a3,_0x112af1){const _0x4c5114=_0x3447d5;super(),this[_0x4c5114(0x13d)]=_0x5b39d7,this[_0x4c5114(0x135)]=_0xde34a3,this['_configService']=_0x112af1;const {menu:_0xe087d7,..._0x50188f}=_0x5e8e75({},l,this[_0x4c5114(0x13d)]);_0xe087d7&&this['_configService']['setConfig'](_0x4c5114(0x142),_0xe087d7,{'merge':!0x0}),this['_configService'][_0x4c5114(0x138)](H,_0x50188f);}[_0x3447d5(0x156)](){const _0x4462bd=_0x3447d5;[[c]][_0x4462bd(0x131)](_0x8d69ee=>this[_0x4462bd(0x135)][_0x4462bd(0x14f)](_0x8d69ee));}[_0x3447d5(0x136)](){const _0x1c2eb6=_0x3447d5;this[_0x1c2eb6(0x135)]['get'](c);}};I(s,_0x3447d5(0x146),W),I(s,_0x3447d5(0x12a),_0x526314['UNIVER_SHEET']),s=V([_0x53fe33(_0x23dd89),_(0x1,_0x8b96a0(_0x4073d2)),_(0x2,_0x15323f)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3447d5=_0xec03;(function(_0x305c6c,_0x4b9736){const _0x328235=_0xec03,_0x42a242=_0x305c6c();while(!![]){try{const _0x5e6e10=parseInt(_0x328235(0x137))/0x1+parseInt(_0x328235(0x140))/0x2+-parseInt(_0x328235(0x155))/0x3*(-parseInt(_0x328235(0x14b))/0x4)+-parseInt(_0x328235(0x12b))/0x5+-parseInt(_0x328235(0x13c))/0x6+-parseInt(_0x328235(0x14d))/0x7*(parseInt(_0x328235(0x144))/0x8)+parseInt(_0x328235(0x13b))/0x9;if(_0x5e6e10===_0x4b9736)break;else _0x42a242['push'](_0x42a242['shift']());}catch(_0x5d67d7){_0x42a242['push'](_0x42a242['shift']());}}}(_0x277b,0xdbd9f));import{IExchangeOperateService as _0x41124d,UniverExchangeClientPlugin as _0x23dd89}from'@univerjs-pro/exchange-client';import{CommandType as _0x2ea409,UniverInstanceType as _0x526314,Disposable as _0x1e57f6,ICommandService as _0x5ec630,DependentOn as _0x53fe33,Inject as _0x8b96a0,Injector as _0x4073d2,IConfigService as _0x15323f,Plugin as _0x5cd8a2,merge as _0x5e8e75}from'@univerjs/core';import{MenuItemType as _0x18b125,getMenuHiddenObservable as _0x228995,RibbonStartGroup as _0x2da5fd,IMenuManagerService as _0x491c17}from'@univerjs/ui';function _0x277b(){const _0x2ce32e=['2040801ukepnW','DirectExportIcon','add','exchange-client.operation.import-xlsx','ExportIcon','unit','OTHERS','FolderIcon','15HwIGqm','onStarting','sheets-exchange-client.config','type','965330hOYHLe','exchange.download','BUTTON','search','SUBITEMS','get','forEach','exchange.upload','_initCommands','_initMenus','_injector','onReady','172513mzzHdJ','setConfig','defineProperty','_commandService','8472996nqXWpn','806832yufLaO','_config','OPERATION','symbol','1732120QFFqMq','exportXLSXByUnitId','menu','registerCommand','48LuqlCd','disposeWithMe','pluginName','_menuManagerService','exportXLSXBySnapshot','SHEET_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','797832drAfGS','sheets-exchange-client.operation.exchange'];_0x277b=function(){return _0x2ce32e;};return _0x277b();}import{WorkbookExportPermission as _0x3dec36}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x362404}from'@univerjs/sheets-ui';const p={'id':_0x3447d5(0x150),'type':_0x2ea409['OPERATION'],'handler':async _0x469b6e=>{const _0x283189=_0x3447d5,_0x2edabc=_0x469b6e[_0x283189(0x130)](_0x41124d);return new URLSearchParams(location[_0x283189(0x12e)])['get'](_0x283189(0x152))?_0x2edabc['importXLSXToUnitId']():_0x2edabc['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x2ea409[_0x3447d5(0x13e)],'handler':async _0x482b35=>{const _0x6f8d2a=_0x3447d5,_0x39012b=_0x482b35[_0x6f8d2a(0x130)](_0x41124d);return new URLSearchParams(location[_0x6f8d2a(0x12e)])['get']('unit')?_0x39012b[_0x6f8d2a(0x141)]():_0x39012b[_0x6f8d2a(0x148)](),!0x0;}},H=_0x3447d5(0x157),l={},S=_0x3447d5(0x14c);function R(_0x4d0a84){const _0x553338=_0x3447d5;return{'id':S,'type':_0x18b125[_0x553338(0x12f)],'icon':_0x553338(0x14e),'tooltip':'exchange.file','hidden$':_0x228995(_0x4d0a84,_0x526314['UNIVER_SHEET']),'disabled$':_0x362404(_0x4d0a84,{'workbookTypes':[_0x3dec36]})};}function w(){const _0x3c06c3=_0x3447d5;return{'id':p['id'],'type':_0x18b125['BUTTON'],'title':_0x3c06c3(0x132),'icon':_0x3c06c3(0x154)};}function D(){const _0x324a6b=_0x3447d5;return{'id':u['id'],'type':_0x18b125[_0x324a6b(0x12d)],'title':_0x324a6b(0x12c),'icon':_0x324a6b(0x151)};}const F={[_0x2da5fd[_0x3447d5(0x153)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x19223e,_0x54b2be,_0x31dcf0,_0x503aea)=>{for(var _0x229681=_0x503aea>0x1?void 0x0:_0x503aea?G(_0x54b2be,_0x31dcf0):_0x54b2be,_0x580f33=_0x19223e['length']-0x1,_0x8ba6be;_0x580f33>=0x0;_0x580f33--)(_0x8ba6be=_0x19223e[_0x580f33])&&(_0x229681=_0x8ba6be(_0x229681)||_0x229681);return _0x229681;},d=(_0xea0e14,_0x175a12)=>(_0x41127d,_0x464ae7)=>_0x175a12(_0x41127d,_0x464ae7,_0xea0e14);let c=class extends _0x1e57f6{constructor(_0x52f76e,_0x39a033){const _0x42b514=_0x3447d5;super(),this[_0x42b514(0x13a)]=_0x52f76e,this[_0x42b514(0x147)]=_0x39a033,this[_0x42b514(0x133)](),this[_0x42b514(0x134)]();}['_initCommands'](){const _0xd945e3=_0x3447d5;[p,u][_0xd945e3(0x131)](_0xf2d821=>{const _0x14f3b8=_0xd945e3;this[_0x14f3b8(0x145)](this[_0x14f3b8(0x13a)][_0x14f3b8(0x143)](_0xf2d821));});}[_0x3447d5(0x134)](){const _0x5c3082=_0x3447d5;this[_0x5c3082(0x147)]['mergeMenu'](F);}};function _0xec03(_0x176f33,_0x584b6d){_0x176f33=_0x176f33-0x12a;const _0x277b05=_0x277b();let _0xec0371=_0x277b05[_0x176f33];return _0xec0371;}c=A([d(0x0,_0x5ec630),d(0x1,_0x491c17)],c);var j=Object[_0x3447d5(0x139)],B=Object[_0x3447d5(0x14a)],$=(_0x5ba12c,_0x4eba8c,_0x37e351)=>_0x4eba8c in _0x5ba12c?j(_0x5ba12c,_0x4eba8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37e351}):_0x5ba12c[_0x4eba8c]=_0x37e351,V=(_0x503f4e,_0x2c5841,_0x1595cc,_0x34af7a)=>{for(var _0x32ce6c=_0x34af7a>0x1?void 0x0:_0x34af7a?B(_0x2c5841,_0x1595cc):_0x2c5841,_0x587f85=_0x503f4e['length']-0x1,_0x4a7272;_0x587f85>=0x0;_0x587f85--)(_0x4a7272=_0x503f4e[_0x587f85])&&(_0x32ce6c=_0x4a7272(_0x32ce6c)||_0x32ce6c);return _0x32ce6c;},_=(_0x3d8503,_0x4f3c3b)=>(_0xf29d40,_0x58e925)=>_0x4f3c3b(_0xf29d40,_0x58e925,_0x3d8503),I=(_0x4a013c,_0xa4cdaa,_0x4144fa)=>$(_0x4a013c,typeof _0xa4cdaa!=_0x3447d5(0x13f)?_0xa4cdaa+'':_0xa4cdaa,_0x4144fa);const W=_0x3447d5(0x149);let s=class extends _0x5cd8a2{constructor(_0x5b39d7=l,_0xde34a3,_0x112af1){const _0x4c5114=_0x3447d5;super(),this[_0x4c5114(0x13d)]=_0x5b39d7,this[_0x4c5114(0x135)]=_0xde34a3,this['_configService']=_0x112af1;const {menu:_0xe087d7,..._0x50188f}=_0x5e8e75({},l,this[_0x4c5114(0x13d)]);_0xe087d7&&this['_configService']['setConfig'](_0x4c5114(0x142),_0xe087d7,{'merge':!0x0}),this['_configService'][_0x4c5114(0x138)](H,_0x50188f);}[_0x3447d5(0x156)](){const _0x4462bd=_0x3447d5;[[c]][_0x4462bd(0x131)](_0x8d69ee=>this[_0x4462bd(0x135)][_0x4462bd(0x14f)](_0x8d69ee));}[_0x3447d5(0x136)](){const _0x1c2eb6=_0x3447d5;this[_0x1c2eb6(0x135)]['get'](c);}};I(s,_0x3447d5(0x146),W),I(s,_0x3447d5(0x12a),_0x526314['UNIVER_SHEET']),s=V([_0x53fe33(_0x23dd89),_(0x1,_0x8b96a0(_0x4073d2)),_(0x2,_0x15323f)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x473f(_0x29201c,_0x42462e){_0x29201c=_0x29201c-0x1e1;const _0xcfdb94=_0xcfdb();let _0x473f8b=_0xcfdb94[_0x29201c];return _0x473f8b;}function _0xcfdb(){const _0x428f7d=['20ocVBqy','Injector','get','type','exchange-client.operation.import-xlsx','exchange-client.operation.export-xlsx','OPERATION','CommandType','importXLSXToUnitId','toStringTag','exchange.upload','getMenuHiddenObservable','Disposable','OTHERS','ExportXLSXOperation','unit','pluginName','exportXLSXBySnapshot','SUBITEMS','getCurrentRangeDisable$','BUTTON','_menuManagerService','UniverSheetsUi','@univerjs-pro/exchange-client','UniverExchangeClientPlugin','24SkoWRr','amd','UniverInstanceType','defineProperty','_initMenus','@univerjs/ui','UniverUi','onStarting','MenuItemType','length','96WZxjnd','DirectExportIcon','IExchangeOperateService','_injector','IConfigService','add','RibbonStartGroup','object','UniverSheetsExchangeClientPlugin','search','FolderIcon','symbol','sheets-exchange-client.config','setConfig','UniverProSheetsExchangeClient','exchange.download','2980142pVaMGq','13902YaiNjf','@univerjs/sheets','2dtZlVt','169397HSuXlp','_config','_configService','exports','51285tgXhdk','269927xDNvzH','_commandService','forEach','merge','sheets-exchange-client.operation.exchange','ExportIcon','getOwnPropertyDescriptor','function','2484391PeAxHo','_initCommands','disposeWithMe','exportXLSXByUnitId','696ibJotQ','UniverCore','@univerjs/sheets-ui','108xqCGep','WorkbookExportPermission','22455gvksve'];_0xcfdb=function(){return _0x428f7d;};return _0xcfdb();}(function(_0x5973c4,_0x44d392){const _0x157a6c=_0x473f,_0x31937e=_0x5973c4();while(!![]){try{const _0x564dde=-parseInt(_0x157a6c(0x1fe))/0x1+parseInt(_0x157a6c(0x1fd))/0x2*(parseInt(_0x157a6c(0x1fb))/0x3)+-parseInt(_0x157a6c(0x212))/0x4*(parseInt(_0x157a6c(0x202))/0x5)+-parseInt(_0x157a6c(0x22e))/0x6*(-parseInt(_0x157a6c(0x203))/0x7)+parseInt(_0x157a6c(0x20f))/0x8*(-parseInt(_0x157a6c(0x214))/0x9)+parseInt(_0x157a6c(0x215))/0xa*(-parseInt(_0x157a6c(0x1fa))/0xb)+-parseInt(_0x157a6c(0x1ea))/0xc*(-parseInt(_0x157a6c(0x20b))/0xd);if(_0x564dde===_0x44d392)break;else _0x31937e['push'](_0x31937e['shift']());}catch(_0x58bb40){_0x31937e['push'](_0x31937e['shift']());}}}(_0xcfdb,0x75cb9),function(_0x5203d3,_0x5285d7){const _0xf7f279=_0x473f;typeof exports==_0xf7f279(0x1f1)&&typeof module<'u'?_0x5285d7(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0xf7f279(0x20a)&&define[_0xf7f279(0x1e1)]?define([_0xf7f279(0x201),_0xf7f279(0x22c),'@univerjs/core',_0xf7f279(0x1e5),_0xf7f279(0x1fc),_0xf7f279(0x211)],_0x5285d7):(_0x5203d3=typeof globalThis<'u'?globalThis:_0x5203d3||self,_0x5285d7(_0x5203d3[_0xf7f279(0x1f8)]={},_0x5203d3['UniverProExchangeClient'],_0x5203d3[_0xf7f279(0x210)],_0x5203d3[_0xf7f279(0x1e6)],_0x5203d3['UniverSheets'],_0x5203d3[_0xf7f279(0x22b)]));}(this,function(_0x3627b8,_0x36c109,_0x4ee148,_0x64d095,_0xc5f714,_0x4c1594){'use strict';const _0x4d26ab=_0x473f;const _0x168307={'id':_0x4d26ab(0x219),'type':_0x4ee148[_0x4d26ab(0x21c)][_0x4d26ab(0x21b)],'handler':async _0x13fdeb=>{const _0x374d9d=_0x4d26ab,_0x1a0908=_0x13fdeb[_0x374d9d(0x217)](_0x36c109[_0x374d9d(0x1ec)]);return new URLSearchParams(location[_0x374d9d(0x1f3)])[_0x374d9d(0x217)](_0x374d9d(0x224))?_0x1a0908[_0x374d9d(0x21d)]():_0x1a0908['importXLSXToSnapshot'](),!0x0;}},_0x2d3744={'id':_0x4d26ab(0x21a),'type':_0x4ee148[_0x4d26ab(0x21c)][_0x4d26ab(0x21b)],'handler':async _0x259fb8=>{const _0x530051=_0x4d26ab,_0x132a6b=_0x259fb8[_0x530051(0x217)](_0x36c109[_0x530051(0x1ec)]);return new URLSearchParams(location[_0x530051(0x1f3)])[_0x530051(0x217)](_0x530051(0x224))?_0x132a6b[_0x530051(0x20e)]():_0x132a6b[_0x530051(0x226)](),!0x0;}},_0x306bbb=_0x4d26ab(0x1f6),_0x3c168a={},_0x23f462=_0x4d26ab(0x207);function _0x31b1ff(_0x26df21){const _0x442076=_0x4d26ab;return{'id':_0x23f462,'type':_0x64d095[_0x442076(0x1e8)][_0x442076(0x227)],'icon':_0x442076(0x1eb),'tooltip':'exchange.file','hidden$':_0x64d095[_0x442076(0x220)](_0x26df21,_0x4ee148[_0x442076(0x1e2)]['UNIVER_SHEET']),'disabled$':_0x4c1594[_0x442076(0x228)](_0x26df21,{'workbookTypes':[_0xc5f714[_0x442076(0x213)]]})};}function _0x1574b2(){const _0x474429=_0x4d26ab;return{'id':_0x168307['id'],'type':_0x64d095[_0x474429(0x1e8)]['BUTTON'],'title':_0x474429(0x21f),'icon':_0x474429(0x1f4)};}function _0x498706(){const _0x39d0f8=_0x4d26ab;return{'id':_0x2d3744['id'],'type':_0x64d095['MenuItemType'][_0x39d0f8(0x229)],'title':_0x39d0f8(0x1f9),'icon':_0x39d0f8(0x208)};}const _0xf7e170={[_0x64d095[_0x4d26ab(0x1f0)][_0x4d26ab(0x222)]]:{[_0x23f462]:{'order':0.3,'menuItemFactory':_0x31b1ff,[_0x168307['id']]:{'order':0x0,'menuItemFactory':_0x1574b2},[_0x2d3744['id']]:{'order':0x1,'menuItemFactory':_0x498706}}}};var _0x509029=Object[_0x4d26ab(0x209)],_0x14f5aa=(_0x211670,_0x52beff,_0x57a729,_0x10feba)=>{const _0x22d3c8=_0x4d26ab;for(var _0x5aa407=_0x10feba>0x1?void 0x0:_0x10feba?_0x509029(_0x52beff,_0x57a729):_0x52beff,_0x2229dd=_0x211670[_0x22d3c8(0x1e9)]-0x1,_0x18ac89;_0x2229dd>=0x0;_0x2229dd--)(_0x18ac89=_0x211670[_0x2229dd])&&(_0x5aa407=_0x18ac89(_0x5aa407)||_0x5aa407);return _0x5aa407;},_0x22a4b7=(_0x2cbb21,_0x477b73)=>(_0x31d5a6,_0x2b79a7)=>_0x477b73(_0x31d5a6,_0x2b79a7,_0x2cbb21);let _0x1097cd=class extends _0x4ee148[_0x4d26ab(0x221)]{constructor(_0x128a31,_0x316498){const _0x37ed83=_0x4d26ab;super(),this['_commandService']=_0x128a31,this[_0x37ed83(0x22a)]=_0x316498,this[_0x37ed83(0x20c)](),this[_0x37ed83(0x1e4)]();}['_initCommands'](){[_0x168307,_0x2d3744]['forEach'](_0x565c7d=>{const _0x346032=_0x473f;this[_0x346032(0x20d)](this[_0x346032(0x204)]['registerCommand'](_0x565c7d));});}[_0x4d26ab(0x1e4)](){const _0x5f3bea=_0x4d26ab;this[_0x5f3bea(0x22a)]['mergeMenu'](_0xf7e170);}};_0x1097cd=_0x14f5aa([_0x22a4b7(0x0,_0x4ee148['ICommandService']),_0x22a4b7(0x1,_0x64d095['IMenuManagerService'])],_0x1097cd);var _0x5efd13=Object[_0x4d26ab(0x1e3)],_0x39c300=Object[_0x4d26ab(0x209)],_0x4c070f=(_0x12d374,_0x1dd200,_0x11ddc2)=>_0x1dd200 in _0x12d374?_0x5efd13(_0x12d374,_0x1dd200,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11ddc2}):_0x12d374[_0x1dd200]=_0x11ddc2,_0x5cdb16=(_0x2a0541,_0x3d123c,_0x303f15,_0x1e8105)=>{for(var _0x4e38ce=_0x1e8105>0x1?void 0x0:_0x1e8105?_0x39c300(_0x3d123c,_0x303f15):_0x3d123c,_0xb37ea6=_0x2a0541['length']-0x1,_0x3cf9d1;_0xb37ea6>=0x0;_0xb37ea6--)(_0x3cf9d1=_0x2a0541[_0xb37ea6])&&(_0x4e38ce=_0x3cf9d1(_0x4e38ce)||_0x4e38ce);return _0x4e38ce;},_0x137efb=(_0x44047f,_0x1ea2be)=>(_0x42ee31,_0x3a1a7e)=>_0x1ea2be(_0x42ee31,_0x3a1a7e,_0x44047f),_0x476bb0=(_0x30b2de,_0x3efd20,_0x2e7ac9)=>_0x4c070f(_0x30b2de,typeof _0x3efd20!=_0x4d26ab(0x1f5)?_0x3efd20+'':_0x3efd20,_0x2e7ac9);const _0x169d69='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x3627b8[_0x4d26ab(0x1f2)]=class extends _0x4ee148['Plugin']{constructor(_0xb1c0e0=_0x3c168a,_0x59ad25,_0x1a94d8){const _0x50fac8=_0x4d26ab;super(),this[_0x50fac8(0x1ff)]=_0xb1c0e0,this[_0x50fac8(0x1ed)]=_0x59ad25,this[_0x50fac8(0x200)]=_0x1a94d8;const {menu:_0x38d58f,..._0x126271}=_0x4ee148[_0x50fac8(0x206)]({},_0x3c168a,this[_0x50fac8(0x1ff)]);_0x38d58f&&this[_0x50fac8(0x200)]['setConfig']('menu',_0x38d58f,{'merge':!0x0}),this[_0x50fac8(0x200)][_0x50fac8(0x1f7)](_0x306bbb,_0x126271);}[_0x4d26ab(0x1e7)](){const _0x3a8968=_0x4d26ab;[[_0x1097cd]][_0x3a8968(0x205)](_0x457c6b=>this[_0x3a8968(0x1ed)][_0x3a8968(0x1ef)](_0x457c6b));}['onReady'](){const _0x6a6a3=_0x4d26ab;this[_0x6a6a3(0x1ed)]['get'](_0x1097cd);}},_0x476bb0(_0x3627b8[_0x4d26ab(0x1f2)],_0x4d26ab(0x225),_0x169d69),_0x476bb0(_0x3627b8[_0x4d26ab(0x1f2)],_0x4d26ab(0x218),_0x4ee148[_0x4d26ab(0x1e2)]['UNIVER_SHEET']),_0x3627b8[_0x4d26ab(0x1f2)]=_0x5cdb16([_0x4ee148['DependentOn'](_0x36c109[_0x4d26ab(0x22d)]),_0x137efb(0x1,_0x4ee148['Inject'](_0x4ee148[_0x4d26ab(0x216)])),_0x137efb(0x2,_0x4ee148[_0x4d26ab(0x1ee)])],_0x3627b8[_0x4d26ab(0x1f2)]),_0x3627b8[_0x4d26ab(0x223)]=_0x2d3744,_0x3627b8['ImportXLSXOperation']=_0x168307,Object[_0x4d26ab(0x1e3)](_0x3627b8,Symbol[_0x4d26ab(0x21e)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.15.0-insiders.20251227-
|
|
3
|
+
"version": "0.15.0-insiders.20251227-453e4ff",
|
|
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.0-insiders.20251227-
|
|
46
|
-
"@univerjs/core": "0.15.0-insiders.20251227-
|
|
47
|
-
"@univerjs/sheets-ui": "0.15.0-insiders.20251227-
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.0-insiders.20251227-453e4ff",
|
|
46
|
+
"@univerjs/core": "0.15.0-insiders.20251227-453e4ff",
|
|
47
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20251227-453e4ff",
|
|
48
|
+
"@univerjs/sheets": "0.15.0-insiders.20251227-453e4ff",
|
|
49
|
+
"@univerjs/ui": "0.15.0-insiders.20251227-453e4ff"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.3.0",
|
|
54
54
|
"vitest": "^4.0.16",
|
|
55
|
-
"@univerjs-infra/shared": "0.
|
|
55
|
+
"@univerjs-infra/shared": "0.14.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|