@univerjs-pro/sheets-exchange-client 0.10.6-nightly.202509060614 → 0.10.6-nightly.202509060724
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 _0x5efc5f=_0x45bc;(function(_0x556502,_0x329be1){const _0x4e9d5b=_0x45bc,_0x1193e3=_0x556502();while(!![]){try{const _0x21e83c=-parseInt(_0x4e9d5b(0x189))/0x1*(-parseInt(_0x4e9d5b(0x18d))/0x2)+parseInt(_0x4e9d5b(0x178))/0x3+-parseInt(_0x4e9d5b(0x19b))/0x4+parseInt(_0x4e9d5b(0x18e))/0x5+parseInt(_0x4e9d5b(0x17a))/0x6+-parseInt(_0x4e9d5b(0x186))/0x7+-parseInt(_0x4e9d5b(0x1b2))/0x8*(parseInt(_0x4e9d5b(0x1a4))/0x9);if(_0x21e83c===_0x329be1)break;else _0x1193e3['push'](_0x1193e3['shift']());}catch(_0x461bd5){_0x1193e3['push'](_0x1193e3['shift']());}}}(_0x4e16,0x7051f));Object[_0x5efc5f(0x18c)](exports,Symbol[_0x5efc5f(0x192)],{'value':_0x5efc5f(0x18a)});function _0x4e16(){const _0x3fa400=['type','_menuManagerService','getMenuHiddenObservable','1824088KqTOoz','BUTTON','UNIVER_SHEET','209vpHSDP','Module','menu','defineProperty','2726YUdCXn','4327765TmuUYs','exchange.file','IExchangeOperateService','get','toStringTag','ICommandService','onReady','_commandService','search','SHEET_EXCHANGE_CLIENT_PLUGIN','getCurrentRangeDisable$','UniverSheetsExchangeClientPlugin','SUBITEMS','3182768ZPtaVm','Inject','sheets-exchange-client.config','_initMenus','Plugin','ExportIcon','symbol','_initCommands','_injector','2457999gRCOqK','exchange.upload','MenuItemType','ExportXLSXOperation','exchange-client.operation.export-xlsx','_config','exchange.download','registerCommand','OTHERS','OPERATION','UniverInstanceType','exportXLSXByUnitId','exportXLSXBySnapshot','setConfig','8qHXoDu','unit','Disposable','length','onStarting','add','exchange-client.operation.import-xlsx','importXLSXToSnapshot','1362096nnGopd','DirectExportIcon','1109988WdPsHc','CommandType','getOwnPropertyDescriptor','UniverExchangeClientPlugin','importXLSXToUnitId','Injector','FolderIcon','disposeWithMe','pluginName'];_0x4e16=function(){return _0x3fa400;};return _0x4e16();}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':_0x5efc5f(0x176),'type':i['CommandType']['OPERATION'],'handler':async _0x1209f7=>{const _0x23a776=_0x5efc5f,_0x6b23e8=_0x1209f7[_0x23a776(0x191)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x23a776(0x196)])[_0x23a776(0x191)](_0x23a776(0x1b3))?_0x6b23e8[_0x23a776(0x17e)]():_0x6b23e8[_0x23a776(0x177)](),!0x0;}},p={'id':_0x5efc5f(0x1a8),'type':i[_0x5efc5f(0x17b)][_0x5efc5f(0x1ad)],'handler':async _0x3a652a=>{const _0x3edd2c=_0x5efc5f,_0xa6c437=_0x3a652a[_0x3edd2c(0x191)](g[_0x3edd2c(0x190)]);return new URLSearchParams(location[_0x3edd2c(0x196)])[_0x3edd2c(0x191)]('unit')?_0xa6c437[_0x3edd2c(0x1af)]():_0xa6c437[_0x3edd2c(0x1b0)](),!0x0;}},v=_0x5efc5f(0x19d),h={},S='sheets-exchange-client.operation.exchange';function x(_0x272ff2){const _0x195503=_0x5efc5f;return{'id':S,'type':c[_0x195503(0x1a6)][_0x195503(0x19a)],'icon':_0x195503(0x179),'tooltip':_0x195503(0x18f),'hidden$':c[_0x195503(0x185)](_0x272ff2,i['UniverInstanceType'][_0x195503(0x188)]),'disabled$':I[_0x195503(0x198)](_0x272ff2,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x5c25d4=_0x5efc5f;return{'id':l['id'],'type':c[_0x5c25d4(0x1a6)][_0x5c25d4(0x187)],'title':_0x5c25d4(0x1a5),'icon':_0x5c25d4(0x180)};}function _0x45bc(_0x5141dd,_0x38e87e){const _0x4e1688=_0x4e16();return _0x45bc=function(_0x45bc2e,_0x104960){_0x45bc2e=_0x45bc2e-0x173;let _0x106d4f=_0x4e1688[_0x45bc2e];return _0x106d4f;},_0x45bc(_0x5141dd,_0x38e87e);}function C(){const _0x2abf77=_0x5efc5f;return{'id':p['id'],'type':c[_0x2abf77(0x1a6)][_0x2abf77(0x187)],'title':_0x2abf77(0x1aa),'icon':_0x2abf77(0x1a0)};}const f={[c['RibbonStartGroup'][_0x5efc5f(0x1ac)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x5efc5f(0x17c)],y=(_0x1d3045,_0x4fb190,_0xc3108e,_0x2cf74d)=>{for(var _0x33217a=_0x2cf74d>0x1?void 0x0:_0x2cf74d?T(_0x4fb190,_0xc3108e):_0x4fb190,_0x52e012=_0x1d3045['length']-0x1,_0x125b51;_0x52e012>=0x0;_0x52e012--)(_0x125b51=_0x1d3045[_0x52e012])&&(_0x33217a=_0x125b51(_0x33217a)||_0x33217a);return _0x33217a;},m=(_0x4e209b,_0x56f3d6)=>(_0x395c4d,_0x1bc24c)=>_0x56f3d6(_0x395c4d,_0x1bc24c,_0x4e209b);let u=class extends i[_0x5efc5f(0x1b4)]{constructor(_0x295b89,_0x43cba5){const _0x5af171=_0x5efc5f;super(),this[_0x5af171(0x195)]=_0x295b89,this[_0x5af171(0x184)]=_0x43cba5,this[_0x5af171(0x1a2)](),this[_0x5af171(0x19e)]();}[_0x5efc5f(0x1a2)](){[l,p]['forEach'](_0x2ea90f=>{const _0x51af5e=_0x45bc;this[_0x51af5e(0x181)](this[_0x51af5e(0x195)][_0x51af5e(0x1ab)](_0x2ea90f));});}['_initMenus'](){const _0x2ebdd7=_0x5efc5f;this[_0x2ebdd7(0x184)]['mergeMenu'](f);}};u=y([m(0x0,i[_0x5efc5f(0x193)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x5efc5f(0x18c)],U=Object['getOwnPropertyDescriptor'],X=(_0x58a71c,_0x2c59aa,_0x427e73)=>_0x2c59aa in _0x58a71c?O(_0x58a71c,_0x2c59aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x427e73}):_0x58a71c[_0x2c59aa]=_0x427e73,N=(_0x10e86f,_0x4f0e30,_0x5a9992,_0x37a571)=>{const _0x5953e9=_0x5efc5f;for(var _0x5dcb49=_0x37a571>0x1?void 0x0:_0x37a571?U(_0x4f0e30,_0x5a9992):_0x4f0e30,_0x21016b=_0x10e86f[_0x5953e9(0x173)]-0x1,_0x4dd1d4;_0x21016b>=0x0;_0x21016b--)(_0x4dd1d4=_0x10e86f[_0x21016b])&&(_0x5dcb49=_0x4dd1d4(_0x5dcb49)||_0x5dcb49);return _0x5dcb49;},d=(_0x326798,_0x36ba36)=>(_0x213b84,_0x8e34b6)=>_0x36ba36(_0x213b84,_0x8e34b6,_0x326798),E=(_0x283973,_0xa8ac37,_0x27cbb9)=>X(_0x283973,typeof _0xa8ac37!=_0x5efc5f(0x1a1)?_0xa8ac37+'':_0xa8ac37,_0x27cbb9);const L=_0x5efc5f(0x197);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x5efc5f(0x19f)]{constructor(_0x5c6bc9=h,_0x11b78f,_0x3c391d){const _0x4ef3ba=_0x5efc5f;super(),this[_0x4ef3ba(0x1a9)]=_0x5c6bc9,this[_0x4ef3ba(0x1a3)]=_0x11b78f,this['_configService']=_0x3c391d;const {menu:_0x46c89c,..._0x30a067}=i['merge']({},h,this[_0x4ef3ba(0x1a9)]);_0x46c89c&&this['_configService'][_0x4ef3ba(0x1b1)](_0x4ef3ba(0x18b),_0x46c89c,{'merge':!0x0}),this['_configService'][_0x4ef3ba(0x1b1)](v,_0x30a067);}[_0x5efc5f(0x174)](){const _0x823ed6=_0x5efc5f;[[u]]['forEach'](_0x1cd2e5=>this[_0x823ed6(0x1a3)][_0x823ed6(0x175)](_0x1cd2e5));}[_0x5efc5f(0x194)](){const _0x1b2cfb=_0x5efc5f;this['_injector'][_0x1b2cfb(0x191)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x5efc5f(0x182),L),E(exports[_0x5efc5f(0x199)],_0x5efc5f(0x183),i[_0x5efc5f(0x1ae)]['UNIVER_SHEET']),exports[_0x5efc5f(0x199)]=N([i['DependentOn'](g[_0x5efc5f(0x17d)]),d(0x1,i[_0x5efc5f(0x19c)](i[_0x5efc5f(0x17f)])),d(0x2,i['IConfigService'])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x5efc5f(0x1a7)]=p,exports['ImportXLSXOperation']=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c16f6=_0x21e2;(function(_0x45445f,_0x297869){const _0xa5bde2=_0x21e2,_0x3c40d3=_0x45445f();while(!![]){try{const _0x1e79df=parseInt(_0xa5bde2(0x86))/0x1+parseInt(_0xa5bde2(0x94))/0x2*(parseInt(_0xa5bde2(0x97))/0x3)+-parseInt(_0xa5bde2(0xa5))/0x4+parseInt(_0xa5bde2(0x8b))/0x5+parseInt(_0xa5bde2(0x90))/0x6+-parseInt(_0xa5bde2(0xa1))/0x7+parseInt(_0xa5bde2(0x8e))/0x8*(-parseInt(_0xa5bde2(0x9c))/0x9);if(_0x1e79df===_0x297869)break;else _0x3c40d3['push'](_0x3c40d3['shift']());}catch(_0x2d10de){_0x3c40d3['push'](_0x3c40d3['shift']());}}}(_0x53e5,0x4ff85));import{IExchangeOperateService as _0x4f7bd2,UniverExchangeClientPlugin as _0x1c13dd}from'@univerjs-pro/exchange-client';import{CommandType as _0x37e001,UniverInstanceType as _0x376f10,Disposable as _0x125b80,ICommandService as _0x1f8c84,DependentOn as _0x95691b,Inject as _0x2628b0,Injector as _0x2f15bd,IConfigService as _0x5c4240,Plugin as _0x542218,merge as _0x3e4945}from'@univerjs/core';import{MenuItemType as _0x208a7d,getMenuHiddenObservable as _0x5a8f67,RibbonStartGroup as _0x148c6e,IMenuManagerService as _0x1d3829}from'@univerjs/ui';import{WorkbookExportPermission as _0x228e56}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x326ee0}from'@univerjs/sheets-ui';const p={'id':_0x2c16f6(0x7f),'type':_0x37e001[_0x2c16f6(0xa6)],'handler':async _0x1168b1=>{const _0x188ce8=_0x2c16f6,_0x298def=_0x1168b1['get'](_0x4f7bd2);return new URLSearchParams(location['search'])[_0x188ce8(0x99)]('unit')?_0x298def['importXLSXToUnitId']():_0x298def['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x2c16f6(0x81),'type':_0x37e001['OPERATION'],'handler':async _0x94bd16=>{const _0xec3566=_0x2c16f6,_0x223e6a=_0x94bd16['get'](_0x4f7bd2);return new URLSearchParams(location[_0xec3566(0x9b)])[_0xec3566(0x99)]('unit')?_0x223e6a[_0xec3566(0x92)]():_0x223e6a[_0xec3566(0x9e)](),!0x0;}},H=_0x2c16f6(0x7a),l={},S=_0x2c16f6(0x85);function R(_0x52cdda){const _0x24029a=_0x2c16f6;return{'id':S,'type':_0x208a7d[_0x24029a(0x7c)],'icon':_0x24029a(0x89),'tooltip':_0x24029a(0x80),'hidden$':_0x5a8f67(_0x52cdda,_0x376f10[_0x24029a(0x9d)]),'disabled$':_0x326ee0(_0x52cdda,{'workbookTypes':[_0x228e56]})};}function w(){const _0x59adc9=_0x2c16f6;return{'id':p['id'],'type':_0x208a7d[_0x59adc9(0x7b)],'title':'exchange.upload','icon':_0x59adc9(0x8d)};}function D(){const _0x276b2b=_0x2c16f6;return{'id':u['id'],'type':_0x208a7d[_0x276b2b(0x7b)],'title':_0x276b2b(0x87),'icon':_0x276b2b(0x82)};}const F={[_0x148c6e[_0x2c16f6(0x9f)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x53e5(){const _0x422a64=['search','74097VGVZnQ','UNIVER_SHEET','exportXLSXBySnapshot','OTHERS','_configService','2485938zxGrzT','_menuManagerService','pluginName','defineProperty','2453452HrCZqp','OPERATION','sheets-exchange-client.config','BUTTON','SUBITEMS','_config','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','exchange.file','exchange-client.operation.export-xlsx','ExportIcon','add','setConfig','sheets-exchange-client.operation.exchange','132817IPeqDo','exchange.download','_initCommands','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','2603325OFTpmr','symbol','FolderIcon','8oLnyLw','_injector','3187890UfRTGf','disposeWithMe','exportXLSXByUnitId','_commandService','1138CeTWov','type','forEach','630kcUyAB','length','get','registerCommand'];_0x53e5=function(){return _0x422a64;};return _0x53e5();}var G=Object['getOwnPropertyDescriptor'],A=(_0x106b13,_0x254323,_0x568824,_0x562b27)=>{const _0xe4cf79=_0x2c16f6;for(var _0x29af61=_0x562b27>0x1?void 0x0:_0x562b27?G(_0x254323,_0x568824):_0x254323,_0x5a58b6=_0x106b13[_0xe4cf79(0x98)]-0x1,_0x500f09;_0x5a58b6>=0x0;_0x5a58b6--)(_0x500f09=_0x106b13[_0x5a58b6])&&(_0x29af61=_0x500f09(_0x29af61)||_0x29af61);return _0x29af61;},d=(_0xa749fa,_0x55e110)=>(_0x21d05b,_0x3d786d)=>_0x55e110(_0x21d05b,_0x3d786d,_0xa749fa);let c=class extends _0x125b80{constructor(_0x1ddcd6,_0x20ffd1){const _0x1ca824=_0x2c16f6;super(),this[_0x1ca824(0x93)]=_0x1ddcd6,this['_menuManagerService']=_0x20ffd1,this['_initCommands'](),this['_initMenus']();}[_0x2c16f6(0x88)](){[p,u]['forEach'](_0x368e76=>{const _0x331b33=_0x21e2;this[_0x331b33(0x91)](this['_commandService'][_0x331b33(0x9a)](_0x368e76));});}['_initMenus'](){const _0x365b68=_0x2c16f6;this[_0x365b68(0xa2)]['mergeMenu'](F);}};c=A([d(0x0,_0x1f8c84),d(0x1,_0x1d3829)],c);var j=Object[_0x2c16f6(0xa4)],B=Object[_0x2c16f6(0x7e)],$=(_0x1b22fe,_0xf06fe1,_0x2cccff)=>_0xf06fe1 in _0x1b22fe?j(_0x1b22fe,_0xf06fe1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cccff}):_0x1b22fe[_0xf06fe1]=_0x2cccff,V=(_0x5b107a,_0x3cc188,_0x24a9ba,_0x565583)=>{for(var _0x4e00ed=_0x565583>0x1?void 0x0:_0x565583?B(_0x3cc188,_0x24a9ba):_0x3cc188,_0x45c199=_0x5b107a['length']-0x1,_0x33d329;_0x45c199>=0x0;_0x45c199--)(_0x33d329=_0x5b107a[_0x45c199])&&(_0x4e00ed=_0x33d329(_0x4e00ed)||_0x4e00ed);return _0x4e00ed;},_=(_0x201ac6,_0x14e63c)=>(_0x51ce42,_0x474a54)=>_0x14e63c(_0x51ce42,_0x474a54,_0x201ac6),I=(_0x2b77e,_0x698238,_0x5e3370)=>$(_0x2b77e,typeof _0x698238!=_0x2c16f6(0x8c)?_0x698238+'':_0x698238,_0x5e3370);const W=_0x2c16f6(0x8a);function _0x21e2(_0x21eb04,_0x66f009){const _0x53e525=_0x53e5();return _0x21e2=function(_0x21e278,_0x2c6198){_0x21e278=_0x21e278-0x7a;let _0x14221f=_0x53e525[_0x21e278];return _0x14221f;},_0x21e2(_0x21eb04,_0x66f009);}let s=class extends _0x542218{constructor(_0x12fc2e=l,_0x74d356,_0x162d1f){const _0x4a1002=_0x2c16f6;super(),this[_0x4a1002(0x7d)]=_0x12fc2e,this['_injector']=_0x74d356,this[_0x4a1002(0xa0)]=_0x162d1f;const {menu:_0x17bf46,..._0x30c53f}=_0x3e4945({},l,this[_0x4a1002(0x7d)]);_0x17bf46&&this[_0x4a1002(0xa0)]['setConfig']('menu',_0x17bf46,{'merge':!0x0}),this[_0x4a1002(0xa0)][_0x4a1002(0x84)](H,_0x30c53f);}['onStarting'](){const _0x5ee6a8=_0x2c16f6;[[c]][_0x5ee6a8(0x96)](_0x212bc9=>this['_injector'][_0x5ee6a8(0x83)](_0x212bc9));}['onReady'](){const _0x16942a=_0x2c16f6;this[_0x16942a(0x8f)][_0x16942a(0x99)](c);}};I(s,_0x2c16f6(0xa3),W),I(s,_0x2c16f6(0x95),_0x376f10[_0x2c16f6(0x9d)]),s=V([_0x95691b(_0x1c13dd),_(0x1,_0x2628b0(_0x2f15bd)),_(0x2,_0x5c4240)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c16f6=_0x21e2;(function(_0x45445f,_0x297869){const _0xa5bde2=_0x21e2,_0x3c40d3=_0x45445f();while(!![]){try{const _0x1e79df=parseInt(_0xa5bde2(0x86))/0x1+parseInt(_0xa5bde2(0x94))/0x2*(parseInt(_0xa5bde2(0x97))/0x3)+-parseInt(_0xa5bde2(0xa5))/0x4+parseInt(_0xa5bde2(0x8b))/0x5+parseInt(_0xa5bde2(0x90))/0x6+-parseInt(_0xa5bde2(0xa1))/0x7+parseInt(_0xa5bde2(0x8e))/0x8*(-parseInt(_0xa5bde2(0x9c))/0x9);if(_0x1e79df===_0x297869)break;else _0x3c40d3['push'](_0x3c40d3['shift']());}catch(_0x2d10de){_0x3c40d3['push'](_0x3c40d3['shift']());}}}(_0x53e5,0x4ff85));import{IExchangeOperateService as _0x4f7bd2,UniverExchangeClientPlugin as _0x1c13dd}from'@univerjs-pro/exchange-client';import{CommandType as _0x37e001,UniverInstanceType as _0x376f10,Disposable as _0x125b80,ICommandService as _0x1f8c84,DependentOn as _0x95691b,Inject as _0x2628b0,Injector as _0x2f15bd,IConfigService as _0x5c4240,Plugin as _0x542218,merge as _0x3e4945}from'@univerjs/core';import{MenuItemType as _0x208a7d,getMenuHiddenObservable as _0x5a8f67,RibbonStartGroup as _0x148c6e,IMenuManagerService as _0x1d3829}from'@univerjs/ui';import{WorkbookExportPermission as _0x228e56}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x326ee0}from'@univerjs/sheets-ui';const p={'id':_0x2c16f6(0x7f),'type':_0x37e001[_0x2c16f6(0xa6)],'handler':async _0x1168b1=>{const _0x188ce8=_0x2c16f6,_0x298def=_0x1168b1['get'](_0x4f7bd2);return new URLSearchParams(location['search'])[_0x188ce8(0x99)]('unit')?_0x298def['importXLSXToUnitId']():_0x298def['importXLSXToSnapshot'](),!0x0;}},u={'id':_0x2c16f6(0x81),'type':_0x37e001['OPERATION'],'handler':async _0x94bd16=>{const _0xec3566=_0x2c16f6,_0x223e6a=_0x94bd16['get'](_0x4f7bd2);return new URLSearchParams(location[_0xec3566(0x9b)])[_0xec3566(0x99)]('unit')?_0x223e6a[_0xec3566(0x92)]():_0x223e6a[_0xec3566(0x9e)](),!0x0;}},H=_0x2c16f6(0x7a),l={},S=_0x2c16f6(0x85);function R(_0x52cdda){const _0x24029a=_0x2c16f6;return{'id':S,'type':_0x208a7d[_0x24029a(0x7c)],'icon':_0x24029a(0x89),'tooltip':_0x24029a(0x80),'hidden$':_0x5a8f67(_0x52cdda,_0x376f10[_0x24029a(0x9d)]),'disabled$':_0x326ee0(_0x52cdda,{'workbookTypes':[_0x228e56]})};}function w(){const _0x59adc9=_0x2c16f6;return{'id':p['id'],'type':_0x208a7d[_0x59adc9(0x7b)],'title':'exchange.upload','icon':_0x59adc9(0x8d)};}function D(){const _0x276b2b=_0x2c16f6;return{'id':u['id'],'type':_0x208a7d[_0x276b2b(0x7b)],'title':_0x276b2b(0x87),'icon':_0x276b2b(0x82)};}const F={[_0x148c6e[_0x2c16f6(0x9f)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x53e5(){const _0x422a64=['search','74097VGVZnQ','UNIVER_SHEET','exportXLSXBySnapshot','OTHERS','_configService','2485938zxGrzT','_menuManagerService','pluginName','defineProperty','2453452HrCZqp','OPERATION','sheets-exchange-client.config','BUTTON','SUBITEMS','_config','getOwnPropertyDescriptor','exchange-client.operation.import-xlsx','exchange.file','exchange-client.operation.export-xlsx','ExportIcon','add','setConfig','sheets-exchange-client.operation.exchange','132817IPeqDo','exchange.download','_initCommands','DirectExportIcon','SHEET_EXCHANGE_CLIENT_PLUGIN','2603325OFTpmr','symbol','FolderIcon','8oLnyLw','_injector','3187890UfRTGf','disposeWithMe','exportXLSXByUnitId','_commandService','1138CeTWov','type','forEach','630kcUyAB','length','get','registerCommand'];_0x53e5=function(){return _0x422a64;};return _0x53e5();}var G=Object['getOwnPropertyDescriptor'],A=(_0x106b13,_0x254323,_0x568824,_0x562b27)=>{const _0xe4cf79=_0x2c16f6;for(var _0x29af61=_0x562b27>0x1?void 0x0:_0x562b27?G(_0x254323,_0x568824):_0x254323,_0x5a58b6=_0x106b13[_0xe4cf79(0x98)]-0x1,_0x500f09;_0x5a58b6>=0x0;_0x5a58b6--)(_0x500f09=_0x106b13[_0x5a58b6])&&(_0x29af61=_0x500f09(_0x29af61)||_0x29af61);return _0x29af61;},d=(_0xa749fa,_0x55e110)=>(_0x21d05b,_0x3d786d)=>_0x55e110(_0x21d05b,_0x3d786d,_0xa749fa);let c=class extends _0x125b80{constructor(_0x1ddcd6,_0x20ffd1){const _0x1ca824=_0x2c16f6;super(),this[_0x1ca824(0x93)]=_0x1ddcd6,this['_menuManagerService']=_0x20ffd1,this['_initCommands'](),this['_initMenus']();}[_0x2c16f6(0x88)](){[p,u]['forEach'](_0x368e76=>{const _0x331b33=_0x21e2;this[_0x331b33(0x91)](this['_commandService'][_0x331b33(0x9a)](_0x368e76));});}['_initMenus'](){const _0x365b68=_0x2c16f6;this[_0x365b68(0xa2)]['mergeMenu'](F);}};c=A([d(0x0,_0x1f8c84),d(0x1,_0x1d3829)],c);var j=Object[_0x2c16f6(0xa4)],B=Object[_0x2c16f6(0x7e)],$=(_0x1b22fe,_0xf06fe1,_0x2cccff)=>_0xf06fe1 in _0x1b22fe?j(_0x1b22fe,_0xf06fe1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cccff}):_0x1b22fe[_0xf06fe1]=_0x2cccff,V=(_0x5b107a,_0x3cc188,_0x24a9ba,_0x565583)=>{for(var _0x4e00ed=_0x565583>0x1?void 0x0:_0x565583?B(_0x3cc188,_0x24a9ba):_0x3cc188,_0x45c199=_0x5b107a['length']-0x1,_0x33d329;_0x45c199>=0x0;_0x45c199--)(_0x33d329=_0x5b107a[_0x45c199])&&(_0x4e00ed=_0x33d329(_0x4e00ed)||_0x4e00ed);return _0x4e00ed;},_=(_0x201ac6,_0x14e63c)=>(_0x51ce42,_0x474a54)=>_0x14e63c(_0x51ce42,_0x474a54,_0x201ac6),I=(_0x2b77e,_0x698238,_0x5e3370)=>$(_0x2b77e,typeof _0x698238!=_0x2c16f6(0x8c)?_0x698238+'':_0x698238,_0x5e3370);const W=_0x2c16f6(0x8a);function _0x21e2(_0x21eb04,_0x66f009){const _0x53e525=_0x53e5();return _0x21e2=function(_0x21e278,_0x2c6198){_0x21e278=_0x21e278-0x7a;let _0x14221f=_0x53e525[_0x21e278];return _0x14221f;},_0x21e2(_0x21eb04,_0x66f009);}let s=class extends _0x542218{constructor(_0x12fc2e=l,_0x74d356,_0x162d1f){const _0x4a1002=_0x2c16f6;super(),this[_0x4a1002(0x7d)]=_0x12fc2e,this['_injector']=_0x74d356,this[_0x4a1002(0xa0)]=_0x162d1f;const {menu:_0x17bf46,..._0x30c53f}=_0x3e4945({},l,this[_0x4a1002(0x7d)]);_0x17bf46&&this[_0x4a1002(0xa0)]['setConfig']('menu',_0x17bf46,{'merge':!0x0}),this[_0x4a1002(0xa0)][_0x4a1002(0x84)](H,_0x30c53f);}['onStarting'](){const _0x5ee6a8=_0x2c16f6;[[c]][_0x5ee6a8(0x96)](_0x212bc9=>this['_injector'][_0x5ee6a8(0x83)](_0x212bc9));}['onReady'](){const _0x16942a=_0x2c16f6;this[_0x16942a(0x8f)][_0x16942a(0x99)](c);}};I(s,_0x2c16f6(0xa3),W),I(s,_0x2c16f6(0x95),_0x376f10[_0x2c16f6(0x9d)]),s=V([_0x95691b(_0x1c13dd),_(0x1,_0x2628b0(_0x2f15bd)),_(0x2,_0x5c4240)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x39bf(){const _0x2650a8=['setConfig','_initMenus','32icVyNZ','mergeMenu','Injector','Disposable','_config','WorkbookExportPermission','add','toStringTag','object','UniverSheetsExchangeClientPlugin','UniverCore','exchange.file','importXLSXToSnapshot','symbol','11XdBmTP','pluginName','UNIVER_SHEET','UniverExchangeClientPlugin','_menuManagerService','exchange.upload','type','_commandService','@univerjs/core','@univerjs/sheets','UniverSheetsUi','registerCommand','OPERATION','1154964QNewxQ','RibbonStartGroup','_injector','exportXLSXBySnapshot','exports','menu','DirectExportIcon','SUBITEMS','FolderIcon','ExportXLSXOperation','CommandType','@univerjs-pro/exchange-client','IMenuManagerService','UniverProSheetsExchangeClient','sheets-exchange-client.config','ExportIcon','9966210aHqrDZ','disposeWithMe','getOwnPropertyDescriptor','718xkdciO','977345FfyDJv','get','@univerjs/sheets-ui','_initCommands','unit','defineProperty','1771629tTNuXB','6WdZNay','IConfigService','MenuItemType','amd','BUTTON','function','exportXLSXByUnitId','UniverInstanceType','ImportXLSXOperation','UniverProExchangeClient','search','DependentOn','_configService','Plugin','getCurrentRangeDisable$','626634HvjShO','ICommandService','652GVSzhw','sheets-exchange-client.operation.exchange','forEach','length','Inject','IExchangeOperateService','getMenuHiddenObservable','3485034fCZBig'];_0x39bf=function(){return _0x2650a8;};return _0x39bf();}function _0x8630(_0x506db,_0x5987ed){const _0x39bff9=_0x39bf();return _0x8630=function(_0x863029,_0x12e9bc){_0x863029=_0x863029-0x17b;let _0x5ac7f7=_0x39bff9[_0x863029];return _0x5ac7f7;},_0x8630(_0x506db,_0x5987ed);}(function(_0x2466f3,_0x58e450){const _0x2b0e70=_0x8630,_0x1a08de=_0x2466f3();while(!![]){try{const _0x91c2c4=-parseInt(_0x2b0e70(0x18f))/0x1*(parseInt(_0x2b0e70(0x1a8))/0x2)+-parseInt(_0x2b0e70(0x196))/0x3+-parseInt(_0x2b0e70(0x17c))/0x4+parseInt(_0x2b0e70(0x190))/0x5*(-parseInt(_0x2b0e70(0x197))/0x6)+parseInt(_0x2b0e70(0x1af))/0x7+parseInt(_0x2b0e70(0x1b2))/0x8*(parseInt(_0x2b0e70(0x1a6))/0x9)+-parseInt(_0x2b0e70(0x18c))/0xa*(-parseInt(_0x2b0e70(0x1c0))/0xb);if(_0x91c2c4===_0x58e450)break;else _0x1a08de['push'](_0x1a08de['shift']());}catch(_0x78ee14){_0x1a08de['push'](_0x1a08de['shift']());}}}(_0x39bf,0x71526),function(_0x4195d9,_0x6144bc){const _0x5057ba=_0x8630;typeof exports==_0x5057ba(0x1ba)&&typeof module<'u'?_0x6144bc(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x5057ba(0x19c)&&define[_0x5057ba(0x19a)]?define([_0x5057ba(0x180),_0x5057ba(0x187),_0x5057ba(0x1c8),'@univerjs/ui',_0x5057ba(0x1c9),_0x5057ba(0x192)],_0x6144bc):(_0x4195d9=typeof globalThis<'u'?globalThis:_0x4195d9||self,_0x6144bc(_0x4195d9[_0x5057ba(0x189)]={},_0x4195d9[_0x5057ba(0x1a0)],_0x4195d9[_0x5057ba(0x1bc)],_0x4195d9['UniverUi'],_0x4195d9['UniverSheets'],_0x4195d9[_0x5057ba(0x1ca)]));}(this,function(_0x34eb52,_0x283047,_0x3557d6,_0x28ad22,_0x2ccfd3,_0x4eff3f){'use strict';const _0x44c000=_0x8630;const _0x4f05b6={'id':'exchange-client.operation.import-xlsx','type':_0x3557d6[_0x44c000(0x186)][_0x44c000(0x17b)],'handler':async _0x549b90=>{const _0x34f377=_0x44c000,_0x2c7963=_0x549b90[_0x34f377(0x191)](_0x283047[_0x34f377(0x1ad)]);return new URLSearchParams(location['search'])[_0x34f377(0x191)](_0x34f377(0x194))?_0x2c7963['importXLSXToUnitId']():_0x2c7963[_0x34f377(0x1be)](),!0x0;}},_0x4e1cf0={'id':'exchange-client.operation.export-xlsx','type':_0x3557d6[_0x44c000(0x186)][_0x44c000(0x17b)],'handler':async _0x15c16e=>{const _0x135932=_0x44c000,_0x32281b=_0x15c16e[_0x135932(0x191)](_0x283047[_0x135932(0x1ad)]);return new URLSearchParams(location[_0x135932(0x1a1)])[_0x135932(0x191)](_0x135932(0x194))?_0x32281b[_0x135932(0x19d)]():_0x32281b[_0x135932(0x17f)](),!0x0;}},_0x24cb8e=_0x44c000(0x18a),_0x410369={},_0x10d300=_0x44c000(0x1a9);function _0x14f3d1(_0x4429af){const _0x13514c=_0x44c000;return{'id':_0x10d300,'type':_0x28ad22[_0x13514c(0x199)][_0x13514c(0x183)],'icon':_0x13514c(0x182),'tooltip':_0x13514c(0x1bd),'hidden$':_0x28ad22[_0x13514c(0x1ae)](_0x4429af,_0x3557d6[_0x13514c(0x19e)][_0x13514c(0x1c2)]),'disabled$':_0x4eff3f[_0x13514c(0x1a5)](_0x4429af,{'workbookTypes':[_0x2ccfd3[_0x13514c(0x1b7)]]})};}function _0x37892f(){const _0x1dde5d=_0x44c000;return{'id':_0x4f05b6['id'],'type':_0x28ad22[_0x1dde5d(0x199)][_0x1dde5d(0x19b)],'title':_0x1dde5d(0x1c5),'icon':_0x1dde5d(0x184)};}function _0x53d0da(){const _0x5f5480=_0x44c000;return{'id':_0x4e1cf0['id'],'type':_0x28ad22[_0x5f5480(0x199)][_0x5f5480(0x19b)],'title':'exchange.download','icon':_0x5f5480(0x18b)};}const _0x4b7acf={[_0x28ad22[_0x44c000(0x17d)]['OTHERS']]:{[_0x10d300]:{'order':0.3,'menuItemFactory':_0x14f3d1,[_0x4f05b6['id']]:{'order':0x0,'menuItemFactory':_0x37892f},[_0x4e1cf0['id']]:{'order':0x1,'menuItemFactory':_0x53d0da}}}};var _0x45db66=Object[_0x44c000(0x18e)],_0x38f1d1=(_0x5992b5,_0x279782,_0x415827,_0x2394dc)=>{const _0x237ac5=_0x44c000;for(var _0x1022cd=_0x2394dc>0x1?void 0x0:_0x2394dc?_0x45db66(_0x279782,_0x415827):_0x279782,_0x3f8abf=_0x5992b5[_0x237ac5(0x1ab)]-0x1,_0x53028;_0x3f8abf>=0x0;_0x3f8abf--)(_0x53028=_0x5992b5[_0x3f8abf])&&(_0x1022cd=_0x53028(_0x1022cd)||_0x1022cd);return _0x1022cd;},_0x37b120=(_0x52ee07,_0x1d149b)=>(_0x1d336f,_0x2be9fe)=>_0x1d149b(_0x1d336f,_0x2be9fe,_0x52ee07);let _0x333fa9=class extends _0x3557d6[_0x44c000(0x1b5)]{constructor(_0x374bd0,_0x2c761f){const _0x43a0e1=_0x44c000;super(),this[_0x43a0e1(0x1c7)]=_0x374bd0,this[_0x43a0e1(0x1c4)]=_0x2c761f,this[_0x43a0e1(0x193)](),this[_0x43a0e1(0x1b1)]();}[_0x44c000(0x193)](){const _0x4de678=_0x44c000;[_0x4f05b6,_0x4e1cf0][_0x4de678(0x1aa)](_0x453785=>{const _0x20ffe4=_0x4de678;this[_0x20ffe4(0x18d)](this[_0x20ffe4(0x1c7)][_0x20ffe4(0x1cb)](_0x453785));});}['_initMenus'](){const _0x4ee353=_0x44c000;this[_0x4ee353(0x1c4)][_0x4ee353(0x1b3)](_0x4b7acf);}};_0x333fa9=_0x38f1d1([_0x37b120(0x0,_0x3557d6[_0x44c000(0x1a7)]),_0x37b120(0x1,_0x28ad22[_0x44c000(0x188)])],_0x333fa9);var _0x17a6de=Object[_0x44c000(0x195)],_0x52cb32=Object[_0x44c000(0x18e)],_0x3feabd=(_0x5ec1ed,_0x1b0278,_0x4f232f)=>_0x1b0278 in _0x5ec1ed?_0x17a6de(_0x5ec1ed,_0x1b0278,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f232f}):_0x5ec1ed[_0x1b0278]=_0x4f232f,_0x131d2f=(_0x41bb99,_0xa71a2b,_0x538b7e,_0x462953)=>{for(var _0x274bc8=_0x462953>0x1?void 0x0:_0x462953?_0x52cb32(_0xa71a2b,_0x538b7e):_0xa71a2b,_0x15fa10=_0x41bb99['length']-0x1,_0x24eab5;_0x15fa10>=0x0;_0x15fa10--)(_0x24eab5=_0x41bb99[_0x15fa10])&&(_0x274bc8=_0x24eab5(_0x274bc8)||_0x274bc8);return _0x274bc8;},_0x5bd6fd=(_0x5d46e4,_0x3a5ee3)=>(_0x3fdb3c,_0x35817a)=>_0x3a5ee3(_0x3fdb3c,_0x35817a,_0x5d46e4),_0x1073bf=(_0x384676,_0x2ac773,_0x3a7c6d)=>_0x3feabd(_0x384676,typeof _0x2ac773!=_0x44c000(0x1bf)?_0x2ac773+'':_0x2ac773,_0x3a7c6d);const _0x5e6777='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x34eb52[_0x44c000(0x1bb)]=class extends _0x3557d6[_0x44c000(0x1a4)]{constructor(_0x3ab1fb=_0x410369,_0x23cb25,_0x4c641d){const _0x26478e=_0x44c000;super(),this[_0x26478e(0x1b6)]=_0x3ab1fb,this[_0x26478e(0x17e)]=_0x23cb25,this[_0x26478e(0x1a3)]=_0x4c641d;const {menu:_0x4a5462,..._0x303dc2}=_0x3557d6['merge']({},_0x410369,this['_config']);_0x4a5462&&this['_configService'][_0x26478e(0x1b0)](_0x26478e(0x181),_0x4a5462,{'merge':!0x0}),this[_0x26478e(0x1a3)][_0x26478e(0x1b0)](_0x24cb8e,_0x303dc2);}['onStarting'](){const _0x52ddf9=_0x44c000;[[_0x333fa9]]['forEach'](_0x382de5=>this[_0x52ddf9(0x17e)][_0x52ddf9(0x1b8)](_0x382de5));}['onReady'](){const _0x3d9bf9=_0x44c000;this[_0x3d9bf9(0x17e)][_0x3d9bf9(0x191)](_0x333fa9);}},_0x1073bf(_0x34eb52[_0x44c000(0x1bb)],_0x44c000(0x1c1),_0x5e6777),_0x1073bf(_0x34eb52[_0x44c000(0x1bb)],_0x44c000(0x1c6),_0x3557d6[_0x44c000(0x19e)][_0x44c000(0x1c2)]),_0x34eb52[_0x44c000(0x1bb)]=_0x131d2f([_0x3557d6[_0x44c000(0x1a2)](_0x283047[_0x44c000(0x1c3)]),_0x5bd6fd(0x1,_0x3557d6[_0x44c000(0x1ac)](_0x3557d6[_0x44c000(0x1b4)])),_0x5bd6fd(0x2,_0x3557d6[_0x44c000(0x198)])],_0x34eb52['UniverSheetsExchangeClientPlugin']),_0x34eb52[_0x44c000(0x185)]=_0x4e1cf0,_0x34eb52[_0x44c000(0x19f)]=_0x4f05b6,Object[_0x44c000(0x195)](_0x34eb52,Symbol[_0x44c000(0x1b9)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.6-nightly.
|
|
3
|
+
"version": "0.10.6-nightly.202509060724",
|
|
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/
|
|
46
|
-
"@univerjs/sheets": "0.10.6-nightly.
|
|
47
|
-
"@univerjs/ui": "0.10.6-nightly.
|
|
48
|
-
"@univerjs
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.6-nightly.202509060724",
|
|
46
|
+
"@univerjs/sheets": "0.10.6-nightly.202509060724",
|
|
47
|
+
"@univerjs/sheets-ui": "0.10.6-nightly.202509060724",
|
|
48
|
+
"@univerjs/ui": "0.10.6-nightly.202509060724",
|
|
49
|
+
"@univerjs/core": "0.10.6-nightly.202509060724"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.2",
|