@univerjs-pro/sheets-exchange-client 0.7.0-nightly.202505061607 → 0.7.0-nightly.202505091607
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';var
|
|
1
|
+
'use strict';function _0x1d30(){var _0x19ef8d=['UniverInstanceType','getOwnPropertyDescriptor','setConfig','get','WorkbookExportPermission','UNIVER_SHEET','UniverSheetsExchangeClientPlugin','1976222kvwhYw','toStringTag','8244066FqyFjp','220LIdYSx','@univerjs-pro/exchange-client','FolderSingle','IConfigService','1043628UVmeKP','DependentOn','pluginName','merge','CommandType','importXLSXToUnitId','_injector','IExchangeOperateService','UniverExchangeClientPlugin','@univerjs/core','SHEET_EXCHANGE_CLIENT_PLUGIN','exchange-client.operation.export-xlsx','exchange-client.operation.import-xlsx','@univerjs/sheets-ui','defineProperty','_initMenus','_menuManagerService','_config','sheets-exchange-client.config','SUBITEMS','1908hiQzUN','forEach','FILE','_commandService','getCurrentRangeDisable$','560tVEmWW','onReady','exportXLSXByUnitId','MenuItemType','menu','DirectExportSingle','BUTTON','registerCommand','@univerjs/sheets','Inject','_initCommands','getMenuHiddenObservable','ICommandService','1vcGppP','IMenuManagerService','OPERATION','exchange.download','mergeMenu','118208dFWgON','RibbonStartGroup','exchange.upload','143qEpDBc','disposeWithMe','558ailSTE','Injector','816728OMqIZz','ExportSingle','exchange.file','5yIjXyY','sheets-exchange-client.operation.exchange','1297314wxNKFG','_configService'];_0x1d30=function(){return _0x19ef8d;};return _0x1d30();}var _0x491ab9=_0x26da;(function(_0xffcc10,_0x2ec814){var _0x39111c=_0x26da,_0x1b075b=_0xffcc10();while(!![]){try{var _0x27473b=-parseInt(_0x39111c(0x183))/0x1*(parseInt(_0x39111c(0x19d))/0x2)+-parseInt(_0x39111c(0x18d))/0x3*(-parseInt(_0x39111c(0x171))/0x4)+-parseInt(_0x39111c(0x192))/0x5*(-parseInt(_0x39111c(0x19f))/0x6)+-parseInt(_0x39111c(0x176))/0x7*(-parseInt(_0x39111c(0x188))/0x8)+-parseInt(_0x39111c(0x194))/0x9+-parseInt(_0x39111c(0x1a0))/0xa*(parseInt(_0x39111c(0x18f))/0xb)+parseInt(_0x39111c(0x1a4))/0xc*(parseInt(_0x39111c(0x18b))/0xd);if(_0x27473b===_0x2ec814)break;else _0x1b075b['push'](_0x1b075b['shift']());}catch(_0x59b612){_0x1b075b['push'](_0x1b075b['shift']());}}}(_0x1d30,0xcc0af));Object[_0x491ab9(0x1b2)](exports,Symbol[_0x491ab9(0x19e)],{'value':'Module'});const l=require(_0x491ab9(0x1a1)),i=require(_0x491ab9(0x1ad)),a=require('@univerjs/ui'),_=require(_0x491ab9(0x1b1)),v=require(_0x491ab9(0x17e)),I=_0x491ab9(0x1b6),h={},g={'id':_0x491ab9(0x1b0),'type':i[_0x491ab9(0x1a8)]['OPERATION'],'handler':async _0x454f14=>(_0x454f14['get'](l[_0x491ab9(0x1ab)])[_0x491ab9(0x1a9)](),!0x0)},p={'id':_0x491ab9(0x1af),'type':i[_0x491ab9(0x1a8)][_0x491ab9(0x185)],'handler':async _0x1070ea=>(_0x1070ea[_0x491ab9(0x199)](l[_0x491ab9(0x1ab)])[_0x491ab9(0x178)](),!0x0)},E=_0x491ab9(0x193);function x(_0x56385b){var _0x4b32d8=_0x491ab9;return{'id':E,'type':a[_0x4b32d8(0x179)][_0x4b32d8(0x170)],'icon':_0x4b32d8(0x17b),'tooltip':_0x4b32d8(0x191),'hidden$':a[_0x4b32d8(0x181)](_0x56385b,i['UniverInstanceType'][_0x4b32d8(0x19b)]),'disabled$':_[_0x4b32d8(0x175)](_0x56385b,{'workbookTypes':[v[_0x4b32d8(0x19a)]]})};}function C(){var _0x297fd8=_0x491ab9;return{'id':g['id'],'type':a[_0x297fd8(0x179)][_0x297fd8(0x17c)],'title':_0x297fd8(0x18a),'icon':_0x297fd8(0x1a2)};}function f(){var _0x41fa69=_0x491ab9;return{'id':p['id'],'type':a['MenuItemType'][_0x41fa69(0x17c)],'title':_0x41fa69(0x186),'icon':_0x41fa69(0x190)};}const y={[a[_0x491ab9(0x189)][_0x491ab9(0x173)]]:{[E]:{'order':0x4,'menuItemFactory':x,[g['id']]:{'order':0x0,'menuItemFactory':C},[p['id']]:{'order':0x1,'menuItemFactory':f}}}};var T=Object[_0x491ab9(0x197)],P=(_0x25e890,_0x239334,_0x24f736,_0x185eba)=>{for(var _0x3bba4a=_0x185eba>0x1?void 0x0:_0x185eba?T(_0x239334,_0x24f736):_0x239334,_0x513489=_0x25e890['length']-0x1,_0x2dbeb3;_0x513489>=0x0;_0x513489--)(_0x2dbeb3=_0x25e890[_0x513489])&&(_0x3bba4a=_0x2dbeb3(_0x3bba4a)||_0x3bba4a);return _0x3bba4a;},d=(_0xc8df83,_0x21c214)=>(_0x483146,_0x2d6132)=>_0x21c214(_0x483146,_0x2d6132,_0xc8df83);let u=class extends i['Disposable']{constructor(_0x2ff200,_0x491a86){var _0x3fee6c=_0x491ab9;super(),this['_commandService']=_0x2ff200,this[_0x3fee6c(0x1b4)]=_0x491a86,this[_0x3fee6c(0x180)](),this[_0x3fee6c(0x1b3)]();}['_initCommands'](){[g,p]['forEach'](_0x437504=>{var _0x223a22=_0x26da;this[_0x223a22(0x18c)](this[_0x223a22(0x174)][_0x223a22(0x17d)](_0x437504));});}[_0x491ab9(0x1b3)](){var _0x318bb3=_0x491ab9;this['_menuManagerService'][_0x318bb3(0x187)](y);}};u=P([d(0x0,i[_0x491ab9(0x182)]),d(0x1,a[_0x491ab9(0x184)])],u);var O=Object['defineProperty'],U=Object[_0x491ab9(0x197)],N=(_0x16a8db,_0x292cce,_0x34bc6e)=>_0x292cce in _0x16a8db?O(_0x16a8db,_0x292cce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34bc6e}):_0x16a8db[_0x292cce]=_0x34bc6e,X=(_0x1aac6d,_0x19042b,_0x36103,_0x3e78cf)=>{for(var _0x3eaa77=_0x3e78cf>0x1?void 0x0:_0x3e78cf?U(_0x19042b,_0x36103):_0x19042b,_0x127eef=_0x1aac6d['length']-0x1,_0x4929a6;_0x127eef>=0x0;_0x127eef--)(_0x4929a6=_0x1aac6d[_0x127eef])&&(_0x3eaa77=_0x4929a6(_0x3eaa77)||_0x3eaa77);return _0x3eaa77;},m=(_0x46e09c,_0x3855ef)=>(_0x546194,_0x12e8d9)=>_0x3855ef(_0x546194,_0x12e8d9,_0x46e09c),S=(_0x373b76,_0x531db7,_0x178093)=>N(_0x373b76,typeof _0x531db7!='symbol'?_0x531db7+'':_0x531db7,_0x178093);function _0x26da(_0x21da99,_0x595ce5){var _0x1d30c1=_0x1d30();return _0x26da=function(_0x26da65,_0x1a01ab){_0x26da65=_0x26da65-0x170;var _0x94a1f6=_0x1d30c1[_0x26da65];return _0x94a1f6;},_0x26da(_0x21da99,_0x595ce5);}const b=_0x491ab9(0x1ae);exports[_0x491ab9(0x19c)]=class extends i['Plugin']{constructor(_0x11a656=h,_0x595d43,_0x3f747b){var _0x128276=_0x491ab9;super(),this[_0x128276(0x1b5)]=_0x11a656,this[_0x128276(0x1aa)]=_0x595d43,this[_0x128276(0x195)]=_0x3f747b;const {menu:_0x21706e,..._0x5599e2}=i[_0x128276(0x1a7)]({},h,this[_0x128276(0x1b5)]);_0x21706e&&this[_0x128276(0x195)][_0x128276(0x198)](_0x128276(0x17a),_0x21706e,{'merge':!0x0}),this['_configService'][_0x128276(0x198)](I,_0x5599e2);}['onStarting'](){var _0x358151=_0x491ab9;[[u]][_0x358151(0x172)](_0x33d457=>this[_0x358151(0x1aa)]['add'](_0x33d457));}[_0x491ab9(0x177)](){var _0xd5edde=_0x491ab9;this[_0xd5edde(0x1aa)][_0xd5edde(0x199)](u);}},S(exports['UniverSheetsExchangeClientPlugin'],_0x491ab9(0x1a6),b),S(exports[_0x491ab9(0x19c)],'type',i[_0x491ab9(0x196)][_0x491ab9(0x19b)]),exports['UniverSheetsExchangeClientPlugin']=X([i[_0x491ab9(0x1a5)](l[_0x491ab9(0x1ac)]),m(0x1,i[_0x491ab9(0x17f)](i[_0x491ab9(0x18e)])),m(0x2,i[_0x491ab9(0x1a3)])],exports[_0x491ab9(0x19c)]),exports['ExportXLSXOperation']=p,exports['ImportXLSXOperation']=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x3f47(){var _0x23daac=['get','defineProperty','exchange-client.operation.export-xlsx','_menuManagerService','FolderSingle','exchange-client.operation.import-xlsx','_configService','2451AvTIMo','250YBLiGD','1283535ZSTKfV','180296XZePNs','ExportSingle','396uZjsFN','165486RGngrX','length','1263394dFuIkp','disposeWithMe','_initMenus','_config','registerCommand','symbol','DirectExportSingle','onStarting','exchange.file','setConfig','getOwnPropertyDescriptor','OPERATION','BUTTON','type','UNIVER_SHEET','exchange.upload','sheets-exchange-client.config','SHEET_EXCHANGE_CLIENT_PLUGIN','_commandService','forEach','menu','17wDfDpu','2424wXXlDo','importXLSXToUnitId','exportXLSXByUnitId','pluginName','_initCommands','exchange.download','10pXAJXj','11606245rbnBEv','mergeMenu','FILE','_injector','13104704LrvhLC'];_0x3f47=function(){return _0x23daac;};return _0x3f47();}var _0xef1396=_0x3634;(function(_0x2ac9,_0x23fc11){var _0x5bcd09=_0x3634,_0x29c3a4=_0x2ac9();while(!![]){try{var _0x2d092f=parseInt(_0x5bcd09(0x170))/0x1*(-parseInt(_0x5bcd09(0x187))/0x2)+parseInt(_0x5bcd09(0x184))/0x3*(parseInt(_0x5bcd09(0x171))/0x4)+-parseInt(_0x5bcd09(0x185))/0x5*(-parseInt(_0x5bcd09(0x18a))/0x6)+-parseInt(_0x5bcd09(0x178))/0x7+-parseInt(_0x5bcd09(0x17c))/0x8+parseInt(_0x5bcd09(0x186))/0x9*(parseInt(_0x5bcd09(0x177))/0xa)+parseInt(_0x5bcd09(0x18c))/0xb*(parseInt(_0x5bcd09(0x189))/0xc);if(_0x2d092f===_0x23fc11)break;else _0x29c3a4['push'](_0x29c3a4['shift']());}catch(_0x3c63ec){_0x29c3a4['push'](_0x29c3a4['shift']());}}}(_0x3f47,0xeed86));import{IExchangeOperateService as _0x5247c7,UniverExchangeClientPlugin as _0x4c2b96}from'@univerjs-pro/exchange-client';import{CommandType as _0x155000,UniverInstanceType as _0x12c1e0,Disposable as _0x4fa9d8,ICommandService as _0x52734b,DependentOn as _0x24b299,Inject as _0x19bf5c,Injector as _0x58969d,IConfigService as _0x1a8741,Plugin as _0x2dbf48,merge as _0x20248c}from'@univerjs/core';import{MenuItemType as _0x477382,getMenuHiddenObservable as _0x55a0ee,RibbonStartGroup as _0x448561,IMenuManagerService as _0xb64cd7}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x340505}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x8c1126}from'@univerjs/sheets';const H=_0xef1396(0x19c),g={},m={'id':_0xef1396(0x182),'type':_0x155000[_0xef1396(0x197)],'handler':async _0x328382=>(_0x328382[_0xef1396(0x17d)](_0x5247c7)[_0xef1396(0x172)](),!0x0)},d={'id':_0xef1396(0x17f),'type':_0x155000[_0xef1396(0x197)],'handler':async _0x594bab=>(_0x594bab[_0xef1396(0x17d)](_0x5247c7)[_0xef1396(0x173)](),!0x0)},S='sheets-exchange-client.operation.exchange';function F(_0xaeb46f){var _0x51ca56=_0xef1396;return{'id':S,'type':_0x477382['SUBITEMS'],'icon':_0x51ca56(0x192),'tooltip':_0x51ca56(0x194),'hidden$':_0x55a0ee(_0xaeb46f,_0x12c1e0[_0x51ca56(0x19a)]),'disabled$':_0x340505(_0xaeb46f,{'workbookTypes':[_0x8c1126]})};}function D(){var _0xea6ce2=_0xef1396;return{'id':m['id'],'type':_0x477382[_0xea6ce2(0x198)],'title':_0xea6ce2(0x19b),'icon':_0xea6ce2(0x181)};}function G(){var _0xac6599=_0xef1396;return{'id':d['id'],'type':_0x477382[_0xac6599(0x198)],'title':_0xac6599(0x176),'icon':_0xac6599(0x188)};}const R={[_0x448561[_0xef1396(0x17a)]]:{[S]:{'order':0x4,'menuItemFactory':F,[m['id']]:{'order':0x0,'menuItemFactory':D},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0xef1396(0x196)],A=(_0x412c3d,_0x10ccdc,_0xfbb27e,_0x3cf12d)=>{for(var _0x1839e6=_0x3cf12d>0x1?void 0x0:_0x3cf12d?w(_0x10ccdc,_0xfbb27e):_0x10ccdc,_0x37c97a=_0x412c3d['length']-0x1,_0x43af38;_0x37c97a>=0x0;_0x37c97a--)(_0x43af38=_0x412c3d[_0x37c97a])&&(_0x1839e6=_0x43af38(_0x1839e6)||_0x1839e6);return _0x1839e6;},u=(_0x485c3e,_0xf44a3c)=>(_0x295315,_0x1e52f3)=>_0xf44a3c(_0x295315,_0x1e52f3,_0x485c3e);let a=class extends _0x4fa9d8{constructor(_0x16e6a7,_0x34b257){var _0x2669aa=_0xef1396;super(),this[_0x2669aa(0x16d)]=_0x16e6a7,this[_0x2669aa(0x180)]=_0x34b257,this[_0x2669aa(0x175)](),this[_0x2669aa(0x18e)]();}[_0xef1396(0x175)](){[m,d]['forEach'](_0x100391=>{var _0x5919fd=_0x3634;this[_0x5919fd(0x18d)](this[_0x5919fd(0x16d)][_0x5919fd(0x190)](_0x100391));});}[_0xef1396(0x18e)](){var _0x546d78=_0xef1396;this[_0x546d78(0x180)][_0x546d78(0x179)](R);}};function _0x3634(_0x4566a2,_0x98de97){var _0x3f4766=_0x3f47();return _0x3634=function(_0x363490,_0x3647cc){_0x363490=_0x363490-0x16d;var _0x33176b=_0x3f4766[_0x363490];return _0x33176b;},_0x3634(_0x4566a2,_0x98de97);}a=A([u(0x0,_0x52734b),u(0x1,_0xb64cd7)],a);var j=Object[_0xef1396(0x17e)],$=Object[_0xef1396(0x196)],B=(_0x1abe26,_0x4cb248,_0x2a5502)=>_0x4cb248 in _0x1abe26?j(_0x1abe26,_0x4cb248,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a5502}):_0x1abe26[_0x4cb248]=_0x2a5502,V=(_0x74060b,_0x1da9cf,_0x227309,_0x43a029)=>{var _0xe3407b=_0xef1396;for(var _0xfdf539=_0x43a029>0x1?void 0x0:_0x43a029?$(_0x1da9cf,_0x227309):_0x1da9cf,_0x49d37f=_0x74060b[_0xe3407b(0x18b)]-0x1,_0xcb6d9e;_0x49d37f>=0x0;_0x49d37f--)(_0xcb6d9e=_0x74060b[_0x49d37f])&&(_0xfdf539=_0xcb6d9e(_0xfdf539)||_0xfdf539);return _0xfdf539;},_=(_0x54b9f5,_0x8cba2c)=>(_0x489d3a,_0x43aaca)=>_0x8cba2c(_0x489d3a,_0x43aaca,_0x54b9f5),I=(_0x2a13c8,_0xf4f940,_0x5d16c4)=>B(_0x2a13c8,typeof _0xf4f940!=_0xef1396(0x191)?_0xf4f940+'':_0xf4f940,_0x5d16c4);const W=_0xef1396(0x19d);let s=class extends _0x2dbf48{constructor(_0x1441d6=g,_0x395211,_0x33eb42){var _0xdfb04f=_0xef1396;super(),this[_0xdfb04f(0x18f)]=_0x1441d6,this['_injector']=_0x395211,this[_0xdfb04f(0x183)]=_0x33eb42;const {menu:_0x5610ef,..._0x70900e}=_0x20248c({},g,this['_config']);_0x5610ef&&this[_0xdfb04f(0x183)][_0xdfb04f(0x195)](_0xdfb04f(0x16f),_0x5610ef,{'merge':!0x0}),this[_0xdfb04f(0x183)][_0xdfb04f(0x195)](H,_0x70900e);}[_0xef1396(0x193)](){var _0x253213=_0xef1396;[[a]][_0x253213(0x16e)](_0x2c56b5=>this[_0x253213(0x17b)]['add'](_0x2c56b5));}['onReady'](){var _0x56e453=_0xef1396;this[_0x56e453(0x17b)][_0x56e453(0x17d)](a);}};I(s,_0xef1396(0x174),W),I(s,_0xef1396(0x199),_0x12c1e0[_0xef1396(0x19a)]),s=V([_0x24b299(_0x4c2b96),_(0x1,_0x19bf5c(_0x58969d)),_(0x2,_0x1a8741)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x3f47(){var _0x23daac=['get','defineProperty','exchange-client.operation.export-xlsx','_menuManagerService','FolderSingle','exchange-client.operation.import-xlsx','_configService','2451AvTIMo','250YBLiGD','1283535ZSTKfV','180296XZePNs','ExportSingle','396uZjsFN','165486RGngrX','length','1263394dFuIkp','disposeWithMe','_initMenus','_config','registerCommand','symbol','DirectExportSingle','onStarting','exchange.file','setConfig','getOwnPropertyDescriptor','OPERATION','BUTTON','type','UNIVER_SHEET','exchange.upload','sheets-exchange-client.config','SHEET_EXCHANGE_CLIENT_PLUGIN','_commandService','forEach','menu','17wDfDpu','2424wXXlDo','importXLSXToUnitId','exportXLSXByUnitId','pluginName','_initCommands','exchange.download','10pXAJXj','11606245rbnBEv','mergeMenu','FILE','_injector','13104704LrvhLC'];_0x3f47=function(){return _0x23daac;};return _0x3f47();}var _0xef1396=_0x3634;(function(_0x2ac9,_0x23fc11){var _0x5bcd09=_0x3634,_0x29c3a4=_0x2ac9();while(!![]){try{var _0x2d092f=parseInt(_0x5bcd09(0x170))/0x1*(-parseInt(_0x5bcd09(0x187))/0x2)+parseInt(_0x5bcd09(0x184))/0x3*(parseInt(_0x5bcd09(0x171))/0x4)+-parseInt(_0x5bcd09(0x185))/0x5*(-parseInt(_0x5bcd09(0x18a))/0x6)+-parseInt(_0x5bcd09(0x178))/0x7+-parseInt(_0x5bcd09(0x17c))/0x8+parseInt(_0x5bcd09(0x186))/0x9*(parseInt(_0x5bcd09(0x177))/0xa)+parseInt(_0x5bcd09(0x18c))/0xb*(parseInt(_0x5bcd09(0x189))/0xc);if(_0x2d092f===_0x23fc11)break;else _0x29c3a4['push'](_0x29c3a4['shift']());}catch(_0x3c63ec){_0x29c3a4['push'](_0x29c3a4['shift']());}}}(_0x3f47,0xeed86));import{IExchangeOperateService as _0x5247c7,UniverExchangeClientPlugin as _0x4c2b96}from'@univerjs-pro/exchange-client';import{CommandType as _0x155000,UniverInstanceType as _0x12c1e0,Disposable as _0x4fa9d8,ICommandService as _0x52734b,DependentOn as _0x24b299,Inject as _0x19bf5c,Injector as _0x58969d,IConfigService as _0x1a8741,Plugin as _0x2dbf48,merge as _0x20248c}from'@univerjs/core';import{MenuItemType as _0x477382,getMenuHiddenObservable as _0x55a0ee,RibbonStartGroup as _0x448561,IMenuManagerService as _0xb64cd7}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x340505}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0x8c1126}from'@univerjs/sheets';const H=_0xef1396(0x19c),g={},m={'id':_0xef1396(0x182),'type':_0x155000[_0xef1396(0x197)],'handler':async _0x328382=>(_0x328382[_0xef1396(0x17d)](_0x5247c7)[_0xef1396(0x172)](),!0x0)},d={'id':_0xef1396(0x17f),'type':_0x155000[_0xef1396(0x197)],'handler':async _0x594bab=>(_0x594bab[_0xef1396(0x17d)](_0x5247c7)[_0xef1396(0x173)](),!0x0)},S='sheets-exchange-client.operation.exchange';function F(_0xaeb46f){var _0x51ca56=_0xef1396;return{'id':S,'type':_0x477382['SUBITEMS'],'icon':_0x51ca56(0x192),'tooltip':_0x51ca56(0x194),'hidden$':_0x55a0ee(_0xaeb46f,_0x12c1e0[_0x51ca56(0x19a)]),'disabled$':_0x340505(_0xaeb46f,{'workbookTypes':[_0x8c1126]})};}function D(){var _0xea6ce2=_0xef1396;return{'id':m['id'],'type':_0x477382[_0xea6ce2(0x198)],'title':_0xea6ce2(0x19b),'icon':_0xea6ce2(0x181)};}function G(){var _0xac6599=_0xef1396;return{'id':d['id'],'type':_0x477382[_0xac6599(0x198)],'title':_0xac6599(0x176),'icon':_0xac6599(0x188)};}const R={[_0x448561[_0xef1396(0x17a)]]:{[S]:{'order':0x4,'menuItemFactory':F,[m['id']]:{'order':0x0,'menuItemFactory':D},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0xef1396(0x196)],A=(_0x412c3d,_0x10ccdc,_0xfbb27e,_0x3cf12d)=>{for(var _0x1839e6=_0x3cf12d>0x1?void 0x0:_0x3cf12d?w(_0x10ccdc,_0xfbb27e):_0x10ccdc,_0x37c97a=_0x412c3d['length']-0x1,_0x43af38;_0x37c97a>=0x0;_0x37c97a--)(_0x43af38=_0x412c3d[_0x37c97a])&&(_0x1839e6=_0x43af38(_0x1839e6)||_0x1839e6);return _0x1839e6;},u=(_0x485c3e,_0xf44a3c)=>(_0x295315,_0x1e52f3)=>_0xf44a3c(_0x295315,_0x1e52f3,_0x485c3e);let a=class extends _0x4fa9d8{constructor(_0x16e6a7,_0x34b257){var _0x2669aa=_0xef1396;super(),this[_0x2669aa(0x16d)]=_0x16e6a7,this[_0x2669aa(0x180)]=_0x34b257,this[_0x2669aa(0x175)](),this[_0x2669aa(0x18e)]();}[_0xef1396(0x175)](){[m,d]['forEach'](_0x100391=>{var _0x5919fd=_0x3634;this[_0x5919fd(0x18d)](this[_0x5919fd(0x16d)][_0x5919fd(0x190)](_0x100391));});}[_0xef1396(0x18e)](){var _0x546d78=_0xef1396;this[_0x546d78(0x180)][_0x546d78(0x179)](R);}};function _0x3634(_0x4566a2,_0x98de97){var _0x3f4766=_0x3f47();return _0x3634=function(_0x363490,_0x3647cc){_0x363490=_0x363490-0x16d;var _0x33176b=_0x3f4766[_0x363490];return _0x33176b;},_0x3634(_0x4566a2,_0x98de97);}a=A([u(0x0,_0x52734b),u(0x1,_0xb64cd7)],a);var j=Object[_0xef1396(0x17e)],$=Object[_0xef1396(0x196)],B=(_0x1abe26,_0x4cb248,_0x2a5502)=>_0x4cb248 in _0x1abe26?j(_0x1abe26,_0x4cb248,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a5502}):_0x1abe26[_0x4cb248]=_0x2a5502,V=(_0x74060b,_0x1da9cf,_0x227309,_0x43a029)=>{var _0xe3407b=_0xef1396;for(var _0xfdf539=_0x43a029>0x1?void 0x0:_0x43a029?$(_0x1da9cf,_0x227309):_0x1da9cf,_0x49d37f=_0x74060b[_0xe3407b(0x18b)]-0x1,_0xcb6d9e;_0x49d37f>=0x0;_0x49d37f--)(_0xcb6d9e=_0x74060b[_0x49d37f])&&(_0xfdf539=_0xcb6d9e(_0xfdf539)||_0xfdf539);return _0xfdf539;},_=(_0x54b9f5,_0x8cba2c)=>(_0x489d3a,_0x43aaca)=>_0x8cba2c(_0x489d3a,_0x43aaca,_0x54b9f5),I=(_0x2a13c8,_0xf4f940,_0x5d16c4)=>B(_0x2a13c8,typeof _0xf4f940!=_0xef1396(0x191)?_0xf4f940+'':_0xf4f940,_0x5d16c4);const W=_0xef1396(0x19d);let s=class extends _0x2dbf48{constructor(_0x1441d6=g,_0x395211,_0x33eb42){var _0xdfb04f=_0xef1396;super(),this[_0xdfb04f(0x18f)]=_0x1441d6,this['_injector']=_0x395211,this[_0xdfb04f(0x183)]=_0x33eb42;const {menu:_0x5610ef,..._0x70900e}=_0x20248c({},g,this['_config']);_0x5610ef&&this[_0xdfb04f(0x183)][_0xdfb04f(0x195)](_0xdfb04f(0x16f),_0x5610ef,{'merge':!0x0}),this[_0xdfb04f(0x183)][_0xdfb04f(0x195)](H,_0x70900e);}[_0xef1396(0x193)](){var _0x253213=_0xef1396;[[a]][_0x253213(0x16e)](_0x2c56b5=>this[_0x253213(0x17b)]['add'](_0x2c56b5));}['onReady'](){var _0x56e453=_0xef1396;this[_0x56e453(0x17b)][_0x56e453(0x17d)](a);}};I(s,_0xef1396(0x174),W),I(s,_0xef1396(0x199),_0x12c1e0[_0xef1396(0x19a)]),s=V([_0x24b299(_0x4c2b96),_(0x1,_0x19bf5c(_0x58969d)),_(0x2,_0x1a8741)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3fdf(_0x296d96,_0x3e2922){var _0x8bb422=_0x8bb4();return _0x3fdf=function(_0x3fdf09,_0x4ec50c){_0x3fdf09=_0x3fdf09-0x11e;var _0x46c834=_0x8bb422[_0x3fdf09];return _0x46c834;},_0x3fdf(_0x296d96,_0x3e2922);}(function(_0x5137b0,_0x44d912){var _0x56b8dd=_0x3fdf,_0x124c6e=_0x5137b0();while(!![]){try{var _0x5a8242=-parseInt(_0x56b8dd(0x160))/0x1+parseInt(_0x56b8dd(0x11f))/0x2+-parseInt(_0x56b8dd(0x138))/0x3+parseInt(_0x56b8dd(0x129))/0x4*(parseInt(_0x56b8dd(0x12f))/0x5)+-parseInt(_0x56b8dd(0x15b))/0x6+-parseInt(_0x56b8dd(0x148))/0x7+parseInt(_0x56b8dd(0x137))/0x8;if(_0x5a8242===_0x44d912)break;else _0x124c6e['push'](_0x124c6e['shift']());}catch(_0x1df64c){_0x124c6e['push'](_0x124c6e['shift']());}}}(_0x8bb4,0xaf99c),function(_0x3df46d,_0x51da1d){var _0x261eed=_0x3fdf;typeof exports==_0x261eed(0x135)&&typeof module<'u'?_0x51da1d(exports,require(_0x261eed(0x15e)),require(_0x261eed(0x122)),require(_0x261eed(0x141)),require(_0x261eed(0x130)),require(_0x261eed(0x13e))):typeof define==_0x261eed(0x136)&&define[_0x261eed(0x149)]?define(['exports',_0x261eed(0x15e),_0x261eed(0x122),_0x261eed(0x141),'@univerjs/sheets-ui',_0x261eed(0x13e)],_0x51da1d):(_0x3df46d=typeof globalThis<'u'?globalThis:_0x3df46d||self,_0x51da1d(_0x3df46d[_0x261eed(0x14c)]={},_0x3df46d['UniverProExchangeClient'],_0x3df46d['UniverCore'],_0x3df46d[_0x261eed(0x123)],_0x3df46d[_0x261eed(0x154)],_0x3df46d['UniverSheets']));}(this,function(_0x39035c,_0x337cca,_0x5ce1b7,_0x472cd0,_0x4433a6,_0x2a8c52){'use strict';var _0x3a3806=_0x3fdf;const _0x286ad4='sheets-exchange-client.config',_0x4e27fc={},_0x2c0384={'id':'exchange-client.operation.import-xlsx','type':_0x5ce1b7[_0x3a3806(0x162)]['OPERATION'],'handler':async _0x19c152=>(_0x19c152[_0x3a3806(0x14b)](_0x337cca[_0x3a3806(0x163)])[_0x3a3806(0x134)](),!0x0)},_0x4ca7ee={'id':_0x3a3806(0x12d),'type':_0x5ce1b7[_0x3a3806(0x162)]['OPERATION'],'handler':async _0x17284a=>(_0x17284a[_0x3a3806(0x14b)](_0x337cca[_0x3a3806(0x163)])[_0x3a3806(0x13f)](),!0x0)},_0x3f3682=_0x3a3806(0x159);function _0x4b0766(_0x1eef0f){var _0x51cc9e=_0x3a3806;return{'id':_0x3f3682,'type':_0x472cd0['MenuItemType'][_0x51cc9e(0x151)],'icon':_0x51cc9e(0x128),'tooltip':_0x51cc9e(0x140),'hidden$':_0x472cd0[_0x51cc9e(0x125)](_0x1eef0f,_0x5ce1b7[_0x51cc9e(0x155)][_0x51cc9e(0x164)]),'disabled$':_0x4433a6[_0x51cc9e(0x13b)](_0x1eef0f,{'workbookTypes':[_0x2a8c52['WorkbookExportPermission']]})};}function _0x24d529(){var _0x4b4f21=_0x3a3806;return{'id':_0x2c0384['id'],'type':_0x472cd0['MenuItemType'][_0x4b4f21(0x121)],'title':_0x4b4f21(0x127),'icon':_0x4b4f21(0x131)};}function _0x20cb6c(){var _0x3f8c30=_0x3a3806;return{'id':_0x4ca7ee['id'],'type':_0x472cd0[_0x3f8c30(0x158)][_0x3f8c30(0x121)],'title':_0x3f8c30(0x156),'icon':'ExportSingle'};}const _0x5ad103={[_0x472cd0[_0x3a3806(0x143)]['FILE']]:{[_0x3f3682]:{'order':0x4,'menuItemFactory':_0x4b0766,[_0x2c0384['id']]:{'order':0x0,'menuItemFactory':_0x24d529},[_0x4ca7ee['id']]:{'order':0x1,'menuItemFactory':_0x20cb6c}}}};var _0xe1ca5f=Object['getOwnPropertyDescriptor'],_0x1d4dec=(_0x5d6622,_0x1b5a5e,_0x5adcfd,_0x42a8f2)=>{var _0x1b4e8b=_0x3a3806;for(var _0x19e98f=_0x42a8f2>0x1?void 0x0:_0x42a8f2?_0xe1ca5f(_0x1b5a5e,_0x5adcfd):_0x1b5a5e,_0x35114a=_0x5d6622[_0x1b4e8b(0x152)]-0x1,_0x190a0c;_0x35114a>=0x0;_0x35114a--)(_0x190a0c=_0x5d6622[_0x35114a])&&(_0x19e98f=_0x190a0c(_0x19e98f)||_0x19e98f);return _0x19e98f;},_0x2d278e=(_0x2d27d9,_0x3d04df)=>(_0x4eacd8,_0x32b1d8)=>_0x3d04df(_0x4eacd8,_0x32b1d8,_0x2d27d9);let _0x54830d=class extends _0x5ce1b7[_0x3a3806(0x150)]{constructor(_0x33295e,_0x382acc){var _0x37d264=_0x3a3806;super(),this[_0x37d264(0x13d)]=_0x33295e,this[_0x37d264(0x132)]=_0x382acc,this[_0x37d264(0x13c)](),this['_initMenus']();}['_initCommands'](){[_0x2c0384,_0x4ca7ee]['forEach'](_0x4ebcd8=>{var _0x5700f2=_0x3fdf;this['disposeWithMe'](this[_0x5700f2(0x13d)][_0x5700f2(0x13a)](_0x4ebcd8));});}[_0x3a3806(0x12b)](){var _0x5bc70a=_0x3a3806;this['_menuManagerService'][_0x5bc70a(0x15f)](_0x5ad103);}};_0x54830d=_0x1d4dec([_0x2d278e(0x0,_0x5ce1b7[_0x3a3806(0x15d)]),_0x2d278e(0x1,_0x472cd0[_0x3a3806(0x126)])],_0x54830d);var _0x36efcb=Object[_0x3a3806(0x153)],_0x2edb06=Object['getOwnPropertyDescriptor'],_0x9fceb1=(_0x67b8f8,_0x407a8f,_0x54b5eb)=>_0x407a8f in _0x67b8f8?_0x36efcb(_0x67b8f8,_0x407a8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54b5eb}):_0x67b8f8[_0x407a8f]=_0x54b5eb,_0x2f356a=(_0x46ed4f,_0x2968db,_0x524fe0,_0x13387e)=>{for(var _0x393237=_0x13387e>0x1?void 0x0:_0x13387e?_0x2edb06(_0x2968db,_0x524fe0):_0x2968db,_0x2a587c=_0x46ed4f['length']-0x1,_0x2abf68;_0x2a587c>=0x0;_0x2a587c--)(_0x2abf68=_0x46ed4f[_0x2a587c])&&(_0x393237=_0x2abf68(_0x393237)||_0x393237);return _0x393237;},_0x44dc4a=(_0x3811a1,_0x555949)=>(_0x132b0d,_0x3de5c6)=>_0x555949(_0x132b0d,_0x3de5c6,_0x3811a1),_0x5bd9d6=(_0x9b3f84,_0x243087,_0x5a7fd6)=>_0x9fceb1(_0x9b3f84,typeof _0x243087!=_0x3a3806(0x14f)?_0x243087+'':_0x243087,_0x5a7fd6);const _0x3fc4bc=_0x3a3806(0x147);_0x39035c[_0x3a3806(0x15c)]=class extends _0x5ce1b7[_0x3a3806(0x12e)]{constructor(_0x2ecf25=_0x4e27fc,_0x5d0ccb,_0xc40c1a){var _0x3f0434=_0x3a3806;super(),this[_0x3f0434(0x165)]=_0x2ecf25,this[_0x3f0434(0x15a)]=_0x5d0ccb,this[_0x3f0434(0x142)]=_0xc40c1a;const {menu:_0x3f71e6,..._0x12a55a}=_0x5ce1b7[_0x3f0434(0x161)]({},_0x4e27fc,this[_0x3f0434(0x165)]);_0x3f71e6&&this[_0x3f0434(0x142)][_0x3f0434(0x120)]('menu',_0x3f71e6,{'merge':!0x0}),this[_0x3f0434(0x142)][_0x3f0434(0x120)](_0x286ad4,_0x12a55a);}[_0x3a3806(0x144)](){var _0x57cbfa=_0x3a3806;[[_0x54830d]]['forEach'](_0x40061d=>this[_0x57cbfa(0x15a)]['add'](_0x40061d));}[_0x3a3806(0x133)](){var _0x2085b4=_0x3a3806;this[_0x2085b4(0x15a)]['get'](_0x54830d);}},_0x5bd9d6(_0x39035c['UniverSheetsExchangeClientPlugin'],_0x3a3806(0x12a),_0x3fc4bc),_0x5bd9d6(_0x39035c[_0x3a3806(0x15c)],_0x3a3806(0x12c),_0x5ce1b7[_0x3a3806(0x155)][_0x3a3806(0x164)]),_0x39035c[_0x3a3806(0x15c)]=_0x2f356a([_0x5ce1b7[_0x3a3806(0x124)](_0x337cca[_0x3a3806(0x14a)]),_0x44dc4a(0x1,_0x5ce1b7[_0x3a3806(0x11e)](_0x5ce1b7[_0x3a3806(0x139)])),_0x44dc4a(0x2,_0x5ce1b7[_0x3a3806(0x157)])],_0x39035c['UniverSheetsExchangeClientPlugin']),_0x39035c[_0x3a3806(0x146)]=_0x4ca7ee,_0x39035c[_0x3a3806(0x145)]=_0x2c0384,Object['defineProperty'](_0x39035c,Symbol[_0x3a3806(0x14e)],{'value':_0x3a3806(0x14d)});}));function _0x8bb4(){var _0x269c7c=['type','exchange-client.operation.export-xlsx','Plugin','15NLiBZO','@univerjs/sheets-ui','FolderSingle','_menuManagerService','onReady','importXLSXToUnitId','object','function','6977224koUIvN','692397mcONWJ','Injector','registerCommand','getCurrentRangeDisable$','_initCommands','_commandService','@univerjs/sheets','exportXLSXByUnitId','exchange.file','@univerjs/ui','_configService','RibbonStartGroup','onStarting','ImportXLSXOperation','ExportXLSXOperation','SHEET_EXCHANGE_CLIENT_PLUGIN','1494535GdWJCG','amd','UniverExchangeClientPlugin','get','UniverProSheetsExchangeClient','Module','toStringTag','symbol','Disposable','SUBITEMS','length','defineProperty','UniverSheetsUi','UniverInstanceType','exchange.download','IConfigService','MenuItemType','sheets-exchange-client.operation.exchange','_injector','4020144peXHnn','UniverSheetsExchangeClientPlugin','ICommandService','@univerjs-pro/exchange-client','mergeMenu','654617DWRqjv','merge','CommandType','IExchangeOperateService','UNIVER_SHEET','_config','Inject','1107354ioVgGb','setConfig','BUTTON','@univerjs/core','UniverUi','DependentOn','getMenuHiddenObservable','IMenuManagerService','exchange.upload','DirectExportSingle','1416500EXcLmQ','pluginName','_initMenus'];_0x8bb4=function(){return _0x269c7c;};return _0x8bb4();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505091607",
|
|
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.7.0-nightly.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.7.0-nightly.202505091607",
|
|
46
|
+
"@univerjs/core": "0.7.0-nightly.202505091607",
|
|
47
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505091607",
|
|
48
|
+
"@univerjs/ui": "0.7.0-nightly.202505091607",
|
|
49
|
+
"@univerjs/sheets": "0.7.0-nightly.202505091607"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
53
|
"vite": "^6.3.5",
|
|
54
54
|
"vitest": "^3.1.3",
|
|
55
|
-
"@univerjs-infra/shared": "0.7.0-beta.
|
|
55
|
+
"@univerjs-infra/shared": "0.7.0-beta.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|