@univerjs-pro/sheets-exchange-client 0.4.1 → 0.4.2-nightly.202410301606
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/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +19 -23
- package/lib/cjs/index.js +0 -1
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x19c776=_0xcd17;(function(_0x49930b,_0x4e89fa){var _0x14b362=_0xcd17,_0x1bbc5b=_0x49930b();while(!![]){try{var _0x17027c=parseInt(_0x14b362(0x197))/0x1*(parseInt(_0x14b362(0x192))/0x2)+parseInt(_0x14b362(0x1ad))/0x3+parseInt(_0x14b362(0x1aa))/0x4*(-parseInt(_0x14b362(0x1a2))/0x5)+parseInt(_0x14b362(0x18d))/0x6*(parseInt(_0x14b362(0x19f))/0x7)+-parseInt(_0x14b362(0x18b))/0x8*(parseInt(_0x14b362(0x19d))/0x9)+-parseInt(_0x14b362(0x1b1))/0xa*(-parseInt(_0x14b362(0x1b0))/0xb)+-parseInt(_0x14b362(0x190))/0xc;if(_0x17027c===_0x4e89fa)break;else _0x1bbc5b['push'](_0x1bbc5b['shift']());}catch(_0x5a5572){_0x1bbc5b['push'](_0x1bbc5b['shift']());}}}(_0x2ad9,0xac865));import{CommandType as _0x442b73,UniverInstanceType as _0x484d1e,Disposable as _0x56347c,ICommandService as _0x244f5e,DependentOn as _0x48523a,Inject as _0x41f840,Injector as _0x8d2fed,Plugin as _0x1514e7,IConfigService as _0x1fcc65}from'@univerjs/core';import{IExchangeOperateService as _0x23f597,UniverExchangeClientPlugin as _0x26ab63}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x36e3ca,getMenuHiddenObservable as _0x46ae33,RibbonStartGroup as _0x4643d0,IMenuManagerService as _0x32de48}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x1e9ded}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x13062b}from'@univerjs/sheets';const L=_0x19c776(0x194),F={},m={'id':_0x19c776(0x1af),'type':_0x442b73[_0x19c776(0x1a0)],'handler':async _0x1feb31=>(_0x1feb31[_0x19c776(0x19b)](_0x23f597)[_0x19c776(0x1b5)](),!0x0)},u={'id':_0x19c776(0x1a3),'type':_0x442b73[_0x19c776(0x1a0)],'handler':async _0x46eaee=>(_0x46eaee[_0x19c776(0x19b)](_0x23f597)[_0x19c776(0x198)](),!0x0)},E=_0x19c776(0x18a);function D(_0x3c0002){var _0x1d8716=_0x19c776;return{'id':E,'type':_0x36e3ca['SUBITEMS'],'icon':_0x1d8716(0x196),'tooltip':_0x1d8716(0x1b6),'hidden$':_0x46ae33(_0x3c0002,_0x484d1e[_0x1d8716(0x191)]),'disabled$':_0x1e9ded(_0x3c0002,{'workbookTypes':[_0x13062b]})};}function H(){var _0x44f0ac=_0x19c776;return{'id':m['id'],'type':_0x36e3ca[_0x44f0ac(0x1b4)],'title':_0x44f0ac(0x199),'icon':_0x44f0ac(0x193)};}function G(){var _0x308fd1=_0x19c776;return{'id':u['id'],'type':_0x36e3ca[_0x308fd1(0x1b4)],'title':_0x308fd1(0x1a4),'icon':_0x308fd1(0x1b3)};}const R={[_0x4643d0['FILE']]:{[E]:{'order':0x4,'menuItemFactory':D,[m['id']]:{'order':0x0,'menuItemFactory':H},[u['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0xcd17(_0x174339,_0x531569){var _0x2ad975=_0x2ad9();return _0xcd17=function(_0xcd1752,_0x58262a){_0xcd1752=_0xcd1752-0x18a;var _0x19dc01=_0x2ad975[_0xcd1752];return _0x19dc01;},_0xcd17(_0x174339,_0x531569);}var j=Object[_0x19c776(0x1b2)],w=Object[_0x19c776(0x1a8)],$=(_0x28ead4,_0x4385ee,_0x98ca64,_0x116cab)=>{var _0x363c01=_0x19c776;for(var _0x5b2483=_0x116cab>0x1?void 0x0:_0x116cab?w(_0x4385ee,_0x98ca64):_0x4385ee,_0x4a6ef3=_0x28ead4[_0x363c01(0x19a)]-0x1,_0x4c0625;_0x4a6ef3>=0x0;_0x4a6ef3--)(_0x4c0625=_0x28ead4[_0x4a6ef3])&&(_0x5b2483=(_0x116cab?_0x4c0625(_0x4385ee,_0x98ca64,_0x5b2483):_0x4c0625(_0x5b2483))||_0x5b2483);return _0x116cab&&_0x5b2483&&j(_0x4385ee,_0x98ca64,_0x5b2483),_0x5b2483;},l=(_0x5aa589,_0x5df10b)=>(_0x3e87ef,_0x24150d)=>_0x5df10b(_0x3e87ef,_0x24150d,_0x5aa589);let a=class extends _0x56347c{constructor(_0x66804c,_0x37d9b3){var _0x58af88=_0x19c776;super(),this[_0x58af88(0x1a5)]=_0x66804c,this[_0x58af88(0x1a9)]=_0x37d9b3,this['_initCommands'](),this[_0x58af88(0x1ae)]();}[_0x19c776(0x195)](){[m,u]['forEach'](_0x1d8e32=>{var _0x345065=_0xcd17;this[_0x345065(0x1a7)](this[_0x345065(0x1a5)][_0x345065(0x18e)](_0x1d8e32));});}[_0x19c776(0x1ae)](){var _0x3c945e=_0x19c776;this[_0x3c945e(0x1a9)][_0x3c945e(0x1a6)](R);}};a=$([l(0x0,_0x244f5e),l(0x1,_0x32de48)],a);function _0x2ad9(){var _0x29d9d1=['24756bahTqE','exportXLSXByUnitId','exchange.upload','length','get','menu','56061LSJUjJ','_configService','86422cMXKwW','OPERATION','_injector','1800645xpccTJ','exchange-client.operation.export-xlsx','exchange.download','_commandService','mergeMenu','disposeWithMe','getOwnPropertyDescriptor','_menuManagerService','4sMyLJz','pluginName','setConfig','3670656aXcNOc','_initMenus','exchange-client.operation.import-xlsx','957OFsFzW','52710NJEEqt','defineProperty','ExportSingle','BUTTON','importXLSXToUnitId','exchange.file','sheets-exchange-client.operation.exchange','320gUzJet','type','498tFyUUf','registerCommand','_config','31247292YoKFIG','UNIVER_SHEET','98gWfRye','FolderSingle','sheets-exchange-client.config','_initCommands','DirectExportSingle'];_0x2ad9=function(){return _0x29d9d1;};return _0x2ad9();}var S=Object[_0x19c776(0x1b2)],A=Object[_0x19c776(0x1a8)],B=(_0x2d497c,_0x203fa5,_0x32cbd1)=>_0x203fa5 in _0x2d497c?S(_0x2d497c,_0x203fa5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32cbd1}):_0x2d497c[_0x203fa5]=_0x32cbd1,V=(_0x5be908,_0x370bb4,_0x4f69e7,_0xa772ba)=>{for(var _0xd9e881=_0xa772ba>0x1?void 0x0:_0xa772ba?A(_0x370bb4,_0x4f69e7):_0x370bb4,_0x198964=_0x5be908['length']-0x1,_0x21fe68;_0x198964>=0x0;_0x198964--)(_0x21fe68=_0x5be908[_0x198964])&&(_0xd9e881=(_0xa772ba?_0x21fe68(_0x370bb4,_0x4f69e7,_0xd9e881):_0x21fe68(_0xd9e881))||_0xd9e881);return _0xa772ba&&_0xd9e881&&S(_0x370bb4,_0x4f69e7,_0xd9e881),_0xd9e881;},_=(_0x146963,_0x521e26)=>(_0x57add8,_0x5d551d)=>_0x521e26(_0x57add8,_0x5d551d,_0x146963),f=(_0xf6cb33,_0x51fab7,_0x70c889)=>B(_0xf6cb33,typeof _0x51fab7!='symbol'?_0x51fab7+'':_0x51fab7,_0x70c889);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x1514e7{constructor(_0x5f5182=F,_0xd12480,_0x2b05a4){var _0xd17221=_0x19c776;super(),this[_0xd17221(0x18f)]=_0x5f5182,this[_0xd17221(0x1a1)]=_0xd12480,this['_configService']=_0x2b05a4;const {menu:_0x4c1100,..._0x15c374}=this[_0xd17221(0x18f)];_0x4c1100&&this['_configService']['setConfig'](_0xd17221(0x19c),_0x4c1100,{'merge':!0x0}),this[_0xd17221(0x19e)][_0xd17221(0x1ac)](L,_0x15c374);}['onStarting'](){var _0x196fdb=_0x19c776;[[a]]['forEach'](_0x4703ce=>this[_0x196fdb(0x1a1)]['add'](_0x4703ce));}['onReady'](){var _0x3ab060=_0x19c776;this['_injector'][_0x3ab060(0x19b)](a);}};f(s,_0x19c776(0x1ab),W),f(s,_0x19c776(0x18c),_0x484d1e[_0x19c776(0x191)]),s=V([_0x48523a(_0x26ab63),_(0x1,_0x41f840(_0x8d2fed)),_(0x2,_0x1fcc65)],s);export{u as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x562c7c,_0xd7c604){var _0x9226d4=_0x206c,_0x4ae31b=_0x562c7c();while(!![]){try{var _0x39678e=-parseInt(_0x9226d4(0x15e))/0x1+-parseInt(_0x9226d4(0x13a))/0x2+parseInt(_0x9226d4(0x12a))/0x3*(parseInt(_0x9226d4(0x149))/0x4)+-parseInt(_0x9226d4(0x13d))/0x5*(parseInt(_0x9226d4(0x166))/0x6)+parseInt(_0x9226d4(0x177))/0x7+-parseInt(_0x9226d4(0x168))/0x8*(parseInt(_0x9226d4(0x151))/0x9)+-parseInt(_0x9226d4(0x133))/0xa*(-parseInt(_0x9226d4(0x137))/0xb);if(_0x39678e===_0xd7c604)break;else _0x4ae31b['push'](_0x4ae31b['shift']());}catch(_0x24f589){_0x4ae31b['push'](_0x4ae31b['shift']());}}}(_0x4889,0xd538d),function(_0x347fd2,_0x4cf558){var _0x4be0e6=_0x206c;typeof exports==_0x4be0e6(0x176)&&typeof module<'u'?_0x4cf558(exports,require(_0x4be0e6(0x164)),require(_0x4be0e6(0x12b)),require(_0x4be0e6(0x155)),require(_0x4be0e6(0x175)),require(_0x4be0e6(0x12f))):typeof define=='function'&&define[_0x4be0e6(0x173)]?define([_0x4be0e6(0x178),_0x4be0e6(0x164),_0x4be0e6(0x12b),_0x4be0e6(0x155),_0x4be0e6(0x175),_0x4be0e6(0x12f)],_0x4cf558):(_0x347fd2=typeof globalThis<'u'?globalThis:_0x347fd2||self,_0x4cf558(_0x347fd2[_0x4be0e6(0x13e)]={},_0x347fd2[_0x4be0e6(0x12c)],_0x347fd2[_0x4be0e6(0x13f)],_0x347fd2[_0x4be0e6(0x131)],_0x347fd2[_0x4be0e6(0x12e)],_0x347fd2['UniverSheets']));}(this,function(_0x708135,_0x3b72cb,_0x243af6,_0x3dec8d,_0x2e2c05,_0x41ff67){'use strict';var _0x20ea71=_0x206c;const _0x3cf483=_0x20ea71(0x162),_0x547cc6={},_0x3884c4={'id':_0x20ea71(0x135),'type':_0x3b72cb[_0x20ea71(0x15d)][_0x20ea71(0x169)],'handler':async _0x2077ec=>(_0x2077ec[_0x20ea71(0x16c)](_0x243af6[_0x20ea71(0x14f)])[_0x20ea71(0x154)](),!0x0)},_0xa31b9b={'id':_0x20ea71(0x14e),'type':_0x3b72cb[_0x20ea71(0x15d)][_0x20ea71(0x169)],'handler':async _0x536793=>(_0x536793[_0x20ea71(0x16c)](_0x243af6[_0x20ea71(0x14f)])[_0x20ea71(0x138)](),!0x0)},_0x2c0e58=_0x20ea71(0x16f);function _0x543f03(_0x437a5f){var _0x5b9db1=_0x20ea71;return{'id':_0x2c0e58,'type':_0x3dec8d['MenuItemType'][_0x5b9db1(0x132)],'icon':_0x5b9db1(0x156),'tooltip':_0x5b9db1(0x160),'hidden$':_0x3dec8d[_0x5b9db1(0x174)](_0x437a5f,_0x3b72cb[_0x5b9db1(0x15c)]['UNIVER_SHEET']),'disabled$':_0x2e2c05[_0x5b9db1(0x14b)](_0x437a5f,{'workbookTypes':[_0x41ff67[_0x5b9db1(0x172)]]})};}function _0x3cef82(){var _0x1e7659=_0x20ea71;return{'id':_0x3884c4['id'],'type':_0x3dec8d[_0x1e7659(0x16a)][_0x1e7659(0x146)],'title':_0x1e7659(0x12d),'icon':_0x1e7659(0x147)};}function _0x387048(){var _0x65c101=_0x20ea71;return{'id':_0xa31b9b['id'],'type':_0x3dec8d[_0x65c101(0x16a)]['BUTTON'],'title':'exchange.download','icon':_0x65c101(0x134)};}const _0x2e58d9={[_0x3dec8d[_0x20ea71(0x158)][_0x20ea71(0x136)]]:{[_0x2c0e58]:{'order':0x4,'menuItemFactory':_0x543f03,[_0x3884c4['id']]:{'order':0x0,'menuItemFactory':_0x3cef82},[_0xa31b9b['id']]:{'order':0x1,'menuItemFactory':_0x387048}}}};var _0x177504=Object[_0x20ea71(0x159)],_0x13bf11=Object[_0x20ea71(0x152)],_0x5082c1=(_0x513ae1,_0x1379c0,_0x1d251c,_0x1fe746)=>{var _0x271f7b=_0x20ea71;for(var _0x2dd408=_0x1fe746>0x1?void 0x0:_0x1fe746?_0x13bf11(_0x1379c0,_0x1d251c):_0x1379c0,_0xbe7391=_0x513ae1[_0x271f7b(0x143)]-0x1,_0x1e14d9;_0xbe7391>=0x0;_0xbe7391--)(_0x1e14d9=_0x513ae1[_0xbe7391])&&(_0x2dd408=(_0x1fe746?_0x1e14d9(_0x1379c0,_0x1d251c,_0x2dd408):_0x1e14d9(_0x2dd408))||_0x2dd408);return _0x1fe746&&_0x2dd408&&_0x177504(_0x1379c0,_0x1d251c,_0x2dd408),_0x2dd408;},_0x2477bd=(_0x285121,_0x2ba349)=>(_0x3ac5df,_0x440c5a)=>_0x2ba349(_0x3ac5df,_0x440c5a,_0x285121);let _0x216cde=class extends _0x3b72cb[_0x20ea71(0x167)]{constructor(_0x23745b,_0x599d63){var _0x53d64a=_0x20ea71;super(),this['_commandService']=_0x23745b,this[_0x53d64a(0x148)]=_0x599d63,this[_0x53d64a(0x142)](),this[_0x53d64a(0x130)]();}[_0x20ea71(0x142)](){[_0x3884c4,_0xa31b9b]['forEach'](_0x48fe56=>{var _0x534a7c=_0x206c;this['disposeWithMe'](this[_0x534a7c(0x157)][_0x534a7c(0x14d)](_0x48fe56));});}[_0x20ea71(0x130)](){var _0x4064cf=_0x20ea71;this[_0x4064cf(0x148)][_0x4064cf(0x170)](_0x2e58d9);}};_0x216cde=_0x5082c1([_0x2477bd(0x0,_0x3b72cb[_0x20ea71(0x14a)]),_0x2477bd(0x1,_0x3dec8d[_0x20ea71(0x13c)])],_0x216cde);var _0x55a88b=Object['defineProperty'],_0x1df7a8=Object[_0x20ea71(0x152)],_0x4908b8=(_0xd6230c,_0xc0649b,_0x4a4025)=>_0xc0649b in _0xd6230c?_0x55a88b(_0xd6230c,_0xc0649b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a4025}):_0xd6230c[_0xc0649b]=_0x4a4025,_0x26aa96=(_0x41c052,_0x117b80,_0x1dd633,_0x217587)=>{var _0x350992=_0x20ea71;for(var _0x495c2d=_0x217587>0x1?void 0x0:_0x217587?_0x1df7a8(_0x117b80,_0x1dd633):_0x117b80,_0x37a298=_0x41c052[_0x350992(0x143)]-0x1,_0x4101ca;_0x37a298>=0x0;_0x37a298--)(_0x4101ca=_0x41c052[_0x37a298])&&(_0x495c2d=(_0x217587?_0x4101ca(_0x117b80,_0x1dd633,_0x495c2d):_0x4101ca(_0x495c2d))||_0x495c2d);return _0x217587&&_0x495c2d&&_0x55a88b(_0x117b80,_0x1dd633,_0x495c2d),_0x495c2d;},_0x43f0ec=(_0xe4bab3,_0x34c9f7)=>(_0x860fa6,_0x39d661)=>_0x34c9f7(_0x860fa6,_0x39d661,_0xe4bab3),_0xced342=(_0x3bd6e2,_0x1f3c89,_0x3593ba)=>_0x4908b8(_0x3bd6e2,typeof _0x1f3c89!=_0x20ea71(0x140)?_0x1f3c89+'':_0x1f3c89,_0x3593ba);const _0x47c29b=_0x20ea71(0x165);_0x708135['UniverSheetsExchangeClientPlugin']=class extends _0x3b72cb[_0x20ea71(0x15a)]{constructor(_0x25078a=_0x547cc6,_0xc5569f,_0x5ad4a9){var _0x7163d6=_0x20ea71;super(),this[_0x7163d6(0x129)]=_0x25078a,this[_0x7163d6(0x15f)]=_0xc5569f,this[_0x7163d6(0x150)]=_0x5ad4a9;const {menu:_0x1b83b3,..._0x4e5404}=this['_config'];_0x1b83b3&&this[_0x7163d6(0x150)]['setConfig'](_0x7163d6(0x145),_0x1b83b3,{'merge':!0x0}),this[_0x7163d6(0x150)][_0x7163d6(0x13b)](_0x3cf483,_0x4e5404);}['onStarting'](){var _0x3306f0=_0x20ea71;[[_0x216cde]][_0x3306f0(0x144)](_0x42b1aa=>this['_injector']['add'](_0x42b1aa));}[_0x20ea71(0x16d)](){var _0x255bb6=_0x20ea71;this[_0x255bb6(0x15f)][_0x255bb6(0x16c)](_0x216cde);}},_0xced342(_0x708135[_0x20ea71(0x14c)],'pluginName',_0x47c29b),_0xced342(_0x708135['UniverSheetsExchangeClientPlugin'],_0x20ea71(0x171),_0x3b72cb['UniverInstanceType'][_0x20ea71(0x139)]),_0x708135[_0x20ea71(0x14c)]=_0x26aa96([_0x3b72cb[_0x20ea71(0x161)](_0x243af6[_0x20ea71(0x153)]),_0x43f0ec(0x1,_0x3b72cb[_0x20ea71(0x16b)](_0x3b72cb[_0x20ea71(0x141)])),_0x43f0ec(0x2,_0x3b72cb[_0x20ea71(0x16e)])],_0x708135[_0x20ea71(0x14c)]),_0x708135[_0x20ea71(0x163)]=_0xa31b9b,_0x708135['ImportXLSXOperation']=_0x3884c4,Object[_0x20ea71(0x159)](_0x708135,Symbol[_0x20ea71(0x15b)],{'value':'Module'});}));function _0x206c(_0x20ae7a,_0x57afe5){var _0x488927=_0x4889();return _0x206c=function(_0x206cb0,_0x39c503){_0x206cb0=_0x206cb0-0x129;var _0x48bc76=_0x488927[_0x206cb0];return _0x48bc76;},_0x206c(_0x20ae7a,_0x57afe5);}function _0x4889(){var _0x3c20a8=['IMenuManagerService','5HflOgp','UniverSheetsExchangeClient','UniverExchangeClient','symbol','Injector','_initCommands','length','forEach','menu','BUTTON','FolderSingle','_menuManagerService','190748oRGhcU','ICommandService','getCurrentRangeDisable$','UniverSheetsExchangeClientPlugin','registerCommand','exchange-client.operation.export-xlsx','IExchangeOperateService','_configService','87651tUichQ','getOwnPropertyDescriptor','UniverExchangeClientPlugin','importXLSXToUnitId','@univerjs/ui','DirectExportSingle','_commandService','RibbonStartGroup','defineProperty','Plugin','toStringTag','UniverInstanceType','CommandType','263306VamGRH','_injector','exchange.file','DependentOn','sheets-exchange-client.config','ExportXLSXOperation','@univerjs/core','SHEET_EXCHANGE_CLIENT_PLUGIN','2164548beDPQt','Disposable','152EUxJQv','OPERATION','MenuItemType','Inject','get','onReady','IConfigService','sheets-exchange-client.operation.exchange','mergeMenu','type','WorkbookExportPermission','amd','getMenuHiddenObservable','@univerjs/sheets-ui','object','11231199uViPKr','exports','_config','9KIyaiv','@univerjs-pro/exchange-client','UniverCore','exchange.upload','UniverSheetsUi','@univerjs/sheets','_initMenus','UniverUi','SUBITEMS','10YQAsAf','ExportSingle','exchange-client.operation.import-xlsx','FILE','17170307WjTAfr','exportXLSXByUnitId','UNIVER_SHEET','3251986pEOUFG','setConfig'];_0x4889=function(){return _0x3c20a8;};return _0x4889();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2-nightly.202410301606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -20,18 +20,15 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"import": "./lib/es/index.js",
|
|
23
|
-
"require": "./lib/cjs/index.js",
|
|
24
23
|
"types": "./lib/types/index.d.ts"
|
|
25
24
|
},
|
|
26
25
|
"./*": {
|
|
27
26
|
"import": "./lib/es/*",
|
|
28
|
-
"require": "./lib/cjs/*",
|
|
29
27
|
"types": "./lib/types/index.d.ts"
|
|
30
28
|
},
|
|
31
29
|
"./lib/*": "./lib/*"
|
|
32
30
|
},
|
|
33
|
-
"main": "./lib/
|
|
34
|
-
"module": "./lib/es/index.js",
|
|
31
|
+
"main": "./lib/es/index.js",
|
|
35
32
|
"types": "./lib/types/index.d.ts",
|
|
36
33
|
"publishConfig": {
|
|
37
34
|
"access": "public"
|
|
@@ -43,36 +40,34 @@
|
|
|
43
40
|
"lib"
|
|
44
41
|
],
|
|
45
42
|
"peerDependencies": {
|
|
46
|
-
"@univerjs-pro/exchange-client": "0.4.
|
|
47
|
-
"@univerjs/core": "0.4.
|
|
48
|
-
"@univerjs/sheets": "0.4.
|
|
49
|
-
"@univerjs/ui": "0.4.
|
|
50
|
-
"@univerjs/
|
|
43
|
+
"@univerjs-pro/exchange-client": "0.4.2-nightly.202410301606",
|
|
44
|
+
"@univerjs/core": "0.4.2-nightly.202410301606",
|
|
45
|
+
"@univerjs/sheets": "0.4.2-nightly.202410301606",
|
|
46
|
+
"@univerjs/sheets-ui": "0.4.2-nightly.202410301606",
|
|
47
|
+
"@univerjs/ui": "0.4.2-nightly.202410301606"
|
|
51
48
|
},
|
|
52
49
|
"dependencies": {
|
|
53
|
-
"@univerjs/icons": "^0.
|
|
54
|
-
"@univerjs-pro/exchange-client": "0.4.
|
|
55
|
-
"@univerjs/protocol": "0.1.39-alpha.
|
|
56
|
-
"@univerjs/sheets": "0.4.
|
|
57
|
-
"@univerjs/core": "0.4.
|
|
58
|
-
"@univerjs/ui": "0.4.
|
|
59
|
-
"@univerjs/
|
|
50
|
+
"@univerjs/icons": "^0.2.2",
|
|
51
|
+
"@univerjs-pro/exchange-client": "0.4.2-nightly.202410301606",
|
|
52
|
+
"@univerjs/protocol": "0.1.39-alpha.38",
|
|
53
|
+
"@univerjs/sheets": "0.4.2-nightly.202410301606",
|
|
54
|
+
"@univerjs/core": "0.4.2-nightly.202410301606",
|
|
55
|
+
"@univerjs/sheets-ui": "0.4.2-nightly.202410301606",
|
|
56
|
+
"@univerjs/ui": "0.4.2-nightly.202410301606"
|
|
60
57
|
},
|
|
61
58
|
"devDependencies": {
|
|
62
59
|
"typescript": "5.6.3",
|
|
63
|
-
"vite": "^5.4.
|
|
64
|
-
"vitest": "^2.1.
|
|
65
|
-
"@univerjs-infra/shared": "0.4.
|
|
60
|
+
"vite": "^5.4.10",
|
|
61
|
+
"vitest": "^2.1.4",
|
|
62
|
+
"@univerjs-infra/shared": "0.4.2"
|
|
66
63
|
},
|
|
67
64
|
"univerSpace": {
|
|
68
65
|
".": {
|
|
69
66
|
"import": "./lib/es/index.js",
|
|
70
|
-
"require": "./lib/cjs/index.js",
|
|
71
67
|
"types": "./lib/types/index.d.ts"
|
|
72
68
|
},
|
|
73
69
|
"./*": {
|
|
74
70
|
"import": "./lib/es/*",
|
|
75
|
-
"require": "./lib/cjs/*",
|
|
76
71
|
"types": "./lib/types/index.d.ts"
|
|
77
72
|
},
|
|
78
73
|
"./lib/*": "./lib/*"
|
|
@@ -83,5 +78,6 @@
|
|
|
83
78
|
"coverage": "vitest run --coverage",
|
|
84
79
|
"lint:types": "tsc --noEmit",
|
|
85
80
|
"build": "tsc && vite build"
|
|
86
|
-
}
|
|
81
|
+
},
|
|
82
|
+
"module": "./lib/es/index.js"
|
|
87
83
|
}
|
package/lib/cjs/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var _0x328a14=_0x388b;function _0x52a7(){var _0x413569=['setConfig','exchange.download','exportXLSXByUnitId','Injector','DependentOn','disposeWithMe','Module','110583XyrFDd','WorkbookExportPermission','_injector','menu','5006380SjvLPR','importXLSXToUnitId','ExportSingle','ICommandService','getOwnPropertyDescriptor','CommandType','symbol','@univerjs-pro/exchange-client','48WhKjSV','_config','336yvqkYR','MenuItemType','registerCommand','UNIVER_SHEET','Plugin','5056350EAbuiX','106617NwDpcq','BUTTON','get','exchange.upload','IExchangeOperateService','70333BzJbso','sheets-exchange-client.config','ImportXLSXOperation','onStarting','DirectExportSingle','4477000mAitJS','46972854kueFqJ','exchange.file','Disposable','toStringTag','_initMenus','UniverSheetsExchangeClientPlugin','defineProperty','@univerjs/sheets-ui','add','SHEET_EXCHANGE_CLIENT_PLUGIN','sheets-exchange-client.operation.exchange','exchange-client.operation.export-xlsx','Inject','UniverInstanceType','IConfigService','forEach','_initCommands','_configService','@univerjs/ui','getCurrentRangeDisable$','_commandService','UniverExchangeClientPlugin'];_0x52a7=function(){return _0x413569;};return _0x52a7();}(function(_0x58f495,_0x3a3404){var _0x361dc6=_0x388b,_0x59f257=_0x58f495();while(!![]){try{var _0x25609d=parseInt(_0x361dc6(0xda))/0x1+-parseInt(_0x361dc6(0x109))/0x2*(parseInt(_0x361dc6(0xfd))/0x3)+-parseInt(_0x361dc6(0x101))/0x4+-parseInt(_0x361dc6(0xd4))/0x5+parseInt(_0x361dc6(0x10b))/0x6*(-parseInt(_0x361dc6(0xd5))/0x7)+-parseInt(_0x361dc6(0xdf))/0x8+parseInt(_0x361dc6(0xe0))/0x9;if(_0x25609d===_0x3a3404)break;else _0x59f257['push'](_0x59f257['shift']());}catch(_0x4ae956){_0x59f257['push'](_0x59f257['shift']());}}}(_0x52a7,0xb2169));Object[_0x328a14(0xe6)](exports,Symbol[_0x328a14(0xe3)],{'value':_0x328a14(0xfc)});const o=require('@univerjs/core'),g=require(_0x328a14(0x108)),s=require(_0x328a14(0xf2)),E=require(_0x328a14(0xe7)),v=require('@univerjs/sheets'),I=_0x328a14(0xdb),x={},p={'id':'exchange-client.operation.import-xlsx','type':o[_0x328a14(0x106)]['OPERATION'],'handler':async _0x1b5c1a=>(_0x1b5c1a['get'](g[_0x328a14(0xd9)])[_0x328a14(0x102)](),!0x0)},l={'id':_0x328a14(0xeb),'type':o[_0x328a14(0x106)]['OPERATION'],'handler':async _0xd3899d=>(_0xd3899d[_0x328a14(0xd7)](g[_0x328a14(0xd9)])[_0x328a14(0xf8)](),!0x0)},m=_0x328a14(0xea);function f(_0x58dfa9){var _0x457b70=_0x328a14;return{'id':m,'type':s[_0x457b70(0x10c)]['SUBITEMS'],'icon':_0x457b70(0xde),'tooltip':_0x457b70(0xe1),'hidden$':s['getMenuHiddenObservable'](_0x58dfa9,o[_0x457b70(0xed)][_0x457b70(0x10e)]),'disabled$':E[_0x457b70(0xf3)](_0x58dfa9,{'workbookTypes':[v[_0x457b70(0xfe)]]})};}function C(){var _0x31b648=_0x328a14;return{'id':p['id'],'type':s['MenuItemType']['BUTTON'],'title':_0x31b648(0xd8),'icon':'FolderSingle'};}function P(){var _0x2d7859=_0x328a14;return{'id':l['id'],'type':s[_0x2d7859(0x10c)][_0x2d7859(0xd6)],'title':_0x2d7859(0xf7),'icon':_0x2d7859(0x103)};}const O={[s['RibbonStartGroup']['FILE']]:{[m]:{'order':0x4,'menuItemFactory':f,[p['id']]:{'order':0x0,'menuItemFactory':C},[l['id']]:{'order':0x1,'menuItemFactory':P}}}};var T=Object['defineProperty'],y=Object['getOwnPropertyDescriptor'],U=(_0x3115dc,_0x15808f,_0x37b46f,_0x3e2cd5)=>{for(var _0x319137=_0x3e2cd5>0x1?void 0x0:_0x3e2cd5?y(_0x15808f,_0x37b46f):_0x15808f,_0x171fbd=_0x3115dc['length']-0x1,_0x281514;_0x171fbd>=0x0;_0x171fbd--)(_0x281514=_0x3115dc[_0x171fbd])&&(_0x319137=(_0x3e2cd5?_0x281514(_0x15808f,_0x37b46f,_0x319137):_0x281514(_0x319137))||_0x319137);return _0x3e2cd5&&_0x319137&&T(_0x15808f,_0x37b46f,_0x319137),_0x319137;},h=(_0x3d581c,_0x18cb7f)=>(_0xc14018,_0x19b430)=>_0x18cb7f(_0xc14018,_0x19b430,_0x3d581c);let u=class extends o[_0x328a14(0xe2)]{constructor(_0x59716b,_0x426169){var _0x1082f0=_0x328a14;super(),this[_0x1082f0(0xf4)]=_0x59716b,this['_menuManagerService']=_0x426169,this[_0x1082f0(0xf0)](),this[_0x1082f0(0xe4)]();}['_initCommands'](){var _0x44c863=_0x328a14;[p,l][_0x44c863(0xef)](_0x124d52=>{var _0x1d1778=_0x44c863;this[_0x1d1778(0xfb)](this[_0x1d1778(0xf4)][_0x1d1778(0x10d)](_0x124d52));});}['_initMenus'](){this['_menuManagerService']['mergeMenu'](O);}};u=U([h(0x0,o[_0x328a14(0x104)]),h(0x1,s['IMenuManagerService'])],u);function _0x388b(_0x20ff1b,_0x575419){var _0x52a79b=_0x52a7();return _0x388b=function(_0x388b7f,_0x73d9d){_0x388b7f=_0x388b7f-0xd4;var _0x922fba=_0x52a79b[_0x388b7f];return _0x922fba;},_0x388b(_0x20ff1b,_0x575419);}var _=Object[_0x328a14(0xe6)],X=Object[_0x328a14(0x105)],b=(_0x4c9934,_0x10ff8e,_0x3a5a95)=>_0x10ff8e in _0x4c9934?_(_0x4c9934,_0x10ff8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a5a95}):_0x4c9934[_0x10ff8e]=_0x3a5a95,N=(_0x5b29b4,_0x2ac002,_0x5e3a01,_0x48b8a3)=>{for(var _0xe8bff7=_0x48b8a3>0x1?void 0x0:_0x48b8a3?X(_0x2ac002,_0x5e3a01):_0x2ac002,_0x4bd64f=_0x5b29b4['length']-0x1,_0x291205;_0x4bd64f>=0x0;_0x4bd64f--)(_0x291205=_0x5b29b4[_0x4bd64f])&&(_0xe8bff7=(_0x48b8a3?_0x291205(_0x2ac002,_0x5e3a01,_0xe8bff7):_0x291205(_0xe8bff7))||_0xe8bff7);return _0x48b8a3&&_0xe8bff7&&_(_0x2ac002,_0x5e3a01,_0xe8bff7),_0xe8bff7;},d=(_0x226c24,_0x14c8b6)=>(_0x262ba5,_0x59cb1e)=>_0x14c8b6(_0x262ba5,_0x59cb1e,_0x226c24),S=(_0x6e6717,_0x31b35f,_0x2ec814)=>b(_0x6e6717,typeof _0x31b35f!=_0x328a14(0x107)?_0x31b35f+'':_0x31b35f,_0x2ec814);const M=_0x328a14(0xe9);exports[_0x328a14(0xe5)]=class extends o[_0x328a14(0x10f)]{constructor(_0x71bee9=x,_0x4b23a0,_0x54def0){var _0xb8ff90=_0x328a14;super(),this[_0xb8ff90(0x10a)]=_0x71bee9,this[_0xb8ff90(0xff)]=_0x4b23a0,this['_configService']=_0x54def0;const {menu:_0x5afcf8,..._0x519d33}=this[_0xb8ff90(0x10a)];_0x5afcf8&&this[_0xb8ff90(0xf1)][_0xb8ff90(0xf6)](_0xb8ff90(0x100),_0x5afcf8,{'merge':!0x0}),this['_configService'][_0xb8ff90(0xf6)](I,_0x519d33);}[_0x328a14(0xdd)](){var _0x4890f6=_0x328a14;[[u]][_0x4890f6(0xef)](_0x32bf84=>this[_0x4890f6(0xff)][_0x4890f6(0xe8)](_0x32bf84));}['onReady'](){var _0x460f11=_0x328a14;this[_0x460f11(0xff)][_0x460f11(0xd7)](u);}},S(exports[_0x328a14(0xe5)],'pluginName',M),S(exports[_0x328a14(0xe5)],'type',o[_0x328a14(0xed)][_0x328a14(0x10e)]),exports[_0x328a14(0xe5)]=N([o[_0x328a14(0xfa)](g[_0x328a14(0xf5)]),d(0x1,o[_0x328a14(0xec)](o[_0x328a14(0xf9)])),d(0x2,o[_0x328a14(0xee)])],exports[_0x328a14(0xe5)]),exports['ExportXLSXOperation']=l,exports[_0x328a14(0xdc)]=p;
|