@univerjs-pro/sheets-exchange-client 0.7.0-nightly.202505061607 → 0.7.0-nightly.202505071607
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';var
|
|
1
|
+
'use strict';var _0x5b3b04=_0x2b45;(function(_0x2e7ed3,_0xc699f8){var _0x52edc0=_0x2b45,_0x247d30=_0x2e7ed3();while(!![]){try{var _0x24d6c6=parseInt(_0x52edc0(0x16e))/0x1+parseInt(_0x52edc0(0x17d))/0x2*(parseInt(_0x52edc0(0x198))/0x3)+-parseInt(_0x52edc0(0x185))/0x4*(parseInt(_0x52edc0(0x170))/0x5)+-parseInt(_0x52edc0(0x18b))/0x6*(parseInt(_0x52edc0(0x18c))/0x7)+-parseInt(_0x52edc0(0x163))/0x8*(-parseInt(_0x52edc0(0x184))/0x9)+-parseInt(_0x52edc0(0x164))/0xa*(parseInt(_0x52edc0(0x178))/0xb)+parseInt(_0x52edc0(0x192))/0xc;if(_0x24d6c6===_0xc699f8)break;else _0x247d30['push'](_0x247d30['shift']());}catch(_0x26510d){_0x247d30['push'](_0x247d30['shift']());}}}(_0x4f8d,0xde3c9));function _0x2b45(_0x44ce62,_0x17e062){var _0x4f8d87=_0x4f8d();return _0x2b45=function(_0x2b4592,_0x350537){_0x2b4592=_0x2b4592-0x15a;var _0x4aee03=_0x4f8d87[_0x2b4592];return _0x4aee03;},_0x2b45(_0x44ce62,_0x17e062);}Object[_0x5b3b04(0x17c)](exports,Symbol['toStringTag'],{'value':'Module'});const l=require(_0x5b3b04(0x16d)),i=require('@univerjs/core'),a=require(_0x5b3b04(0x16b)),_=require(_0x5b3b04(0x15e)),v=require(_0x5b3b04(0x197)),I=_0x5b3b04(0x169),h={},g={'id':'exchange-client.operation.import-xlsx','type':i[_0x5b3b04(0x183)][_0x5b3b04(0x16f)],'handler':async _0x45ac15=>(_0x45ac15[_0x5b3b04(0x176)](l[_0x5b3b04(0x188)])['importXLSXToUnitId'](),!0x0)},p={'id':_0x5b3b04(0x18f),'type':i[_0x5b3b04(0x183)]['OPERATION'],'handler':async _0x5ea18a=>(_0x5ea18a[_0x5b3b04(0x176)](l[_0x5b3b04(0x188)])['exportXLSXByUnitId'](),!0x0)},E=_0x5b3b04(0x171);function x(_0x33d854){var _0x55d754=_0x5b3b04;return{'id':E,'type':a[_0x55d754(0x17a)]['SUBITEMS'],'icon':_0x55d754(0x175),'tooltip':_0x55d754(0x187),'hidden$':a[_0x55d754(0x15c)](_0x33d854,i[_0x55d754(0x161)][_0x55d754(0x16a)]),'disabled$':_['getCurrentRangeDisable$'](_0x33d854,{'workbookTypes':[v[_0x55d754(0x15b)]]})};}function C(){var _0x4606da=_0x5b3b04;return{'id':g['id'],'type':a[_0x4606da(0x17a)][_0x4606da(0x18a)],'title':'exchange.upload','icon':_0x4606da(0x165)};}function f(){var _0x4d6282=_0x5b3b04;return{'id':p['id'],'type':a[_0x4d6282(0x17a)][_0x4d6282(0x18a)],'title':_0x4d6282(0x17f),'icon':_0x4d6282(0x15d)};}function _0x4f8d(){var _0x4f1e3f=['114SfCsqM','merge','_initCommands','WorkbookExportPermission','getMenuHiddenObservable','ExportSingle','@univerjs/sheets-ui','_menuManagerService','forEach','UniverInstanceType','RibbonStartGroup','72JSbyPt','290zDhudH','FolderSingle','_commandService','menu','mergeMenu','sheets-exchange-client.config','UNIVER_SHEET','@univerjs/ui','Disposable','@univerjs-pro/exchange-client','512514ygpgPh','OPERATION','713795HeSdWz','sheets-exchange-client.operation.exchange','IConfigService','_injector','_config','DirectExportSingle','get','UniverSheetsExchangeClientPlugin','398068EWTArm','length','MenuItemType','registerCommand','defineProperty','16466kYBtVP','ExportXLSXOperation','exchange.download','DependentOn','Injector','type','CommandType','638667gkWFMS','44NDfUCq','IMenuManagerService','exchange.file','IExchangeOperateService','Plugin','BUTTON','6993438QyvkUA','7ZgqBXA','Inject','getOwnPropertyDescriptor','exchange-client.operation.export-xlsx','_configService','UniverExchangeClientPlugin','38779440cdvVIR','FILE','setConfig','ImportXLSXOperation','onReady','@univerjs/sheets'];_0x4f8d=function(){return _0x4f1e3f;};return _0x4f8d();}const y={[a[_0x5b3b04(0x162)][_0x5b3b04(0x193)]]:{[E]:{'order':0x4,'menuItemFactory':x,[g['id']]:{'order':0x0,'menuItemFactory':C},[p['id']]:{'order':0x1,'menuItemFactory':f}}}};var T=Object[_0x5b3b04(0x18e)],P=(_0x1ee0a3,_0x476e3b,_0x5c0729,_0x3a011c)=>{for(var _0x3e514a=_0x3a011c>0x1?void 0x0:_0x3a011c?T(_0x476e3b,_0x5c0729):_0x476e3b,_0x5aeee1=_0x1ee0a3['length']-0x1,_0x1ac7a0;_0x5aeee1>=0x0;_0x5aeee1--)(_0x1ac7a0=_0x1ee0a3[_0x5aeee1])&&(_0x3e514a=_0x1ac7a0(_0x3e514a)||_0x3e514a);return _0x3e514a;},d=(_0x4373fb,_0x5132d5)=>(_0x1a607f,_0x2c93d6)=>_0x5132d5(_0x1a607f,_0x2c93d6,_0x4373fb);let u=class extends i[_0x5b3b04(0x16c)]{constructor(_0x150ddc,_0x2be228){var _0x977772=_0x5b3b04;super(),this[_0x977772(0x166)]=_0x150ddc,this[_0x977772(0x15f)]=_0x2be228,this[_0x977772(0x15a)](),this['_initMenus']();}[_0x5b3b04(0x15a)](){[g,p]['forEach'](_0x271e69=>{var _0x514f60=_0x2b45;this['disposeWithMe'](this[_0x514f60(0x166)][_0x514f60(0x17b)](_0x271e69));});}['_initMenus'](){var _0x163332=_0x5b3b04;this[_0x163332(0x15f)][_0x163332(0x168)](y);}};u=P([d(0x0,i['ICommandService']),d(0x1,a[_0x5b3b04(0x186)])],u);var O=Object[_0x5b3b04(0x17c)],U=Object[_0x5b3b04(0x18e)],N=(_0x1b0335,_0x329bf7,_0x351933)=>_0x329bf7 in _0x1b0335?O(_0x1b0335,_0x329bf7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x351933}):_0x1b0335[_0x329bf7]=_0x351933,X=(_0x3d445c,_0x3d2d7e,_0x556583,_0x5ac5d7)=>{var _0x11b9bb=_0x5b3b04;for(var _0x3153c4=_0x5ac5d7>0x1?void 0x0:_0x5ac5d7?U(_0x3d2d7e,_0x556583):_0x3d2d7e,_0x4f1dfd=_0x3d445c[_0x11b9bb(0x179)]-0x1,_0x23c844;_0x4f1dfd>=0x0;_0x4f1dfd--)(_0x23c844=_0x3d445c[_0x4f1dfd])&&(_0x3153c4=_0x23c844(_0x3153c4)||_0x3153c4);return _0x3153c4;},m=(_0x427f89,_0x45e7cf)=>(_0x13a80b,_0x7e8a1b)=>_0x45e7cf(_0x13a80b,_0x7e8a1b,_0x427f89),S=(_0x483999,_0x3456e5,_0x34f02f)=>N(_0x483999,typeof _0x3456e5!='symbol'?_0x3456e5+'':_0x3456e5,_0x34f02f);const b='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x5b3b04(0x177)]=class extends i[_0x5b3b04(0x189)]{constructor(_0x23edd5=h,_0x417939,_0x34f84c){var _0x409911=_0x5b3b04;super(),this[_0x409911(0x174)]=_0x23edd5,this[_0x409911(0x173)]=_0x417939,this[_0x409911(0x190)]=_0x34f84c;const {menu:_0x410c1e,..._0x2aafa1}=i[_0x409911(0x199)]({},h,this[_0x409911(0x174)]);_0x410c1e&&this[_0x409911(0x190)]['setConfig'](_0x409911(0x167),_0x410c1e,{'merge':!0x0}),this[_0x409911(0x190)][_0x409911(0x194)](I,_0x2aafa1);}['onStarting'](){var _0x112018=_0x5b3b04;[[u]][_0x112018(0x160)](_0x49b153=>this[_0x112018(0x173)]['add'](_0x49b153));}[_0x5b3b04(0x196)](){var _0x589163=_0x5b3b04;this[_0x589163(0x173)][_0x589163(0x176)](u);}},S(exports[_0x5b3b04(0x177)],'pluginName',b),S(exports['UniverSheetsExchangeClientPlugin'],_0x5b3b04(0x182),i[_0x5b3b04(0x161)]['UNIVER_SHEET']),exports[_0x5b3b04(0x177)]=X([i[_0x5b3b04(0x180)](l[_0x5b3b04(0x191)]),m(0x1,i[_0x5b3b04(0x18d)](i[_0x5b3b04(0x181)])),m(0x2,i[_0x5b3b04(0x172)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x5b3b04(0x17e)]=p,exports[_0x5b3b04(0x195)]=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4bbfe1=_0x4689;(function(_0x1ec109,_0x486761){var _0x39cca3=_0x4689,_0x4f13ee=_0x1ec109();while(!![]){try{var _0x5b34b6=-parseInt(_0x39cca3(0x1f7))/0x1+parseInt(_0x39cca3(0x1ff))/0x2+parseInt(_0x39cca3(0x1f2))/0x3*(-parseInt(_0x39cca3(0x1ef))/0x4)+parseInt(_0x39cca3(0x1f9))/0x5*(parseInt(_0x39cca3(0x1fc))/0x6)+parseInt(_0x39cca3(0x1eb))/0x7*(-parseInt(_0x39cca3(0x1e5))/0x8)+-parseInt(_0x39cca3(0x1fd))/0x9*(-parseInt(_0x39cca3(0x1ec))/0xa)+-parseInt(_0x39cca3(0x20e))/0xb*(-parseInt(_0x39cca3(0x207))/0xc);if(_0x5b34b6===_0x486761)break;else _0x4f13ee['push'](_0x4f13ee['shift']());}catch(_0x523f51){_0x4f13ee['push'](_0x4f13ee['shift']());}}}(_0x16fb,0xe760b));import{IExchangeOperateService as _0x60935d,UniverExchangeClientPlugin as _0x53db0e}from'@univerjs-pro/exchange-client';import{CommandType as _0x23725c,UniverInstanceType as _0x1c5ef3,Disposable as _0x578906,ICommandService as _0x593e3d,DependentOn as _0x12cd53,Inject as _0x23c57e,Injector as _0x18ee01,IConfigService as _0x115688,Plugin as _0x4ac4f6,merge as _0x1caf45}from'@univerjs/core';import{MenuItemType as _0x199026,getMenuHiddenObservable as _0x4ea051,RibbonStartGroup as _0x51a27f,IMenuManagerService as _0x1a399f}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x19bba2}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0xaa9da3}from'@univerjs/sheets';const H='sheets-exchange-client.config',g={},m={'id':_0x4bbfe1(0x200),'type':_0x23725c[_0x4bbfe1(0x202)],'handler':async _0x4a6f1c=>(_0x4a6f1c['get'](_0x60935d)[_0x4bbfe1(0x206)](),!0x0)},d={'id':_0x4bbfe1(0x1e4),'type':_0x23725c[_0x4bbfe1(0x202)],'handler':async _0x541c23=>(_0x541c23[_0x4bbfe1(0x1e7)](_0x60935d)['exportXLSXByUnitId'](),!0x0)},S=_0x4bbfe1(0x1f1);function F(_0x3f792d){var _0x562042=_0x4bbfe1;return{'id':S,'type':_0x199026['SUBITEMS'],'icon':_0x562042(0x1fa),'tooltip':_0x562042(0x1f0),'hidden$':_0x4ea051(_0x3f792d,_0x1c5ef3[_0x562042(0x20c)]),'disabled$':_0x19bba2(_0x3f792d,{'workbookTypes':[_0xaa9da3]})};}function D(){var _0x29be58=_0x4bbfe1;return{'id':m['id'],'type':_0x199026[_0x29be58(0x1fe)],'title':'exchange.upload','icon':_0x29be58(0x20d)};}function _0x4689(_0x1b0afb,_0x1f5065){var _0x16fb8c=_0x16fb();return _0x4689=function(_0x468932,_0x508c82){_0x468932=_0x468932-0x1e2;var _0x3a503b=_0x16fb8c[_0x468932];return _0x3a503b;},_0x4689(_0x1b0afb,_0x1f5065);}function G(){var _0xa87d07=_0x4bbfe1;return{'id':d['id'],'type':_0x199026[_0xa87d07(0x1fe)],'title':_0xa87d07(0x208),'icon':'ExportSingle'};}const R={[_0x51a27f['FILE']]:{[S]:{'order':0x4,'menuItemFactory':F,[m['id']]:{'order':0x0,'menuItemFactory':D},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0x4bbfe1(0x1e9)],A=(_0x3cbacd,_0x10e070,_0x3b6ca0,_0x19782c)=>{var _0x5ce420=_0x4bbfe1;for(var _0x5620bb=_0x19782c>0x1?void 0x0:_0x19782c?w(_0x10e070,_0x3b6ca0):_0x10e070,_0x4d0fc2=_0x3cbacd[_0x5ce420(0x1fb)]-0x1,_0x5ca212;_0x4d0fc2>=0x0;_0x4d0fc2--)(_0x5ca212=_0x3cbacd[_0x4d0fc2])&&(_0x5620bb=_0x5ca212(_0x5620bb)||_0x5620bb);return _0x5620bb;},u=(_0x9c1a71,_0x36c81f)=>(_0x57a1e1,_0x4ec3d8)=>_0x36c81f(_0x57a1e1,_0x4ec3d8,_0x9c1a71);let a=class extends _0x578906{constructor(_0x2f9811,_0x545964){var _0x2aa5d0=_0x4bbfe1;super(),this[_0x2aa5d0(0x204)]=_0x2f9811,this[_0x2aa5d0(0x1e2)]=_0x545964,this['_initCommands'](),this['_initMenus']();}[_0x4bbfe1(0x1ea)](){[m,d]['forEach'](_0x2e7361=>{var _0x4af0c5=_0x4689;this[_0x4af0c5(0x1ee)](this[_0x4af0c5(0x204)][_0x4af0c5(0x1f8)](_0x2e7361));});}[_0x4bbfe1(0x1f4)](){var _0x27942f=_0x4bbfe1;this['_menuManagerService'][_0x27942f(0x209)](R);}};a=A([u(0x0,_0x593e3d),u(0x1,_0x1a399f)],a);var j=Object[_0x4bbfe1(0x1f5)],$=Object['getOwnPropertyDescriptor'],B=(_0x17f3e9,_0x539965,_0x4246b6)=>_0x539965 in _0x17f3e9?j(_0x17f3e9,_0x539965,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4246b6}):_0x17f3e9[_0x539965]=_0x4246b6,V=(_0x14a91b,_0x46828d,_0xe0b299,_0x3a5f29)=>{for(var _0x27874e=_0x3a5f29>0x1?void 0x0:_0x3a5f29?$(_0x46828d,_0xe0b299):_0x46828d,_0x4badc7=_0x14a91b['length']-0x1,_0x1ef722;_0x4badc7>=0x0;_0x4badc7--)(_0x1ef722=_0x14a91b[_0x4badc7])&&(_0x27874e=_0x1ef722(_0x27874e)||_0x27874e);return _0x27874e;},_=(_0x2178a8,_0x5e0827)=>(_0x107204,_0x2b6328)=>_0x5e0827(_0x107204,_0x2b6328,_0x2178a8),I=(_0x5360d8,_0xbb91d0,_0x4b8a17)=>B(_0x5360d8,typeof _0xbb91d0!=_0x4bbfe1(0x20b)?_0xbb91d0+'':_0xbb91d0,_0x4b8a17);const W=_0x4bbfe1(0x20a);function _0x16fb(){var _0x58aa47=['_config','947606QHdxkB','registerCommand','5JPBvVd','DirectExportSingle','length','4363194jyiBoX','423INSSrE','BUTTON','78520UBWYKm','exchange-client.operation.import-xlsx','type','OPERATION','setConfig','_commandService','onStarting','importXLSXToUnitId','1231608afcoBI','exchange.download','mergeMenu','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','UNIVER_SHEET','FolderSingle','209WgIsLz','_menuManagerService','_injector','exchange-client.operation.export-xlsx','322120MYDzqx','pluginName','get','menu','getOwnPropertyDescriptor','_initCommands','7tKaGjd','43370cTWYmW','onReady','disposeWithMe','8vFqNQj','exchange.file','sheets-exchange-client.operation.exchange','1477125ccCEJn','_configService','_initMenus','defineProperty'];_0x16fb=function(){return _0x58aa47;};return _0x16fb();}let s=class extends _0x4ac4f6{constructor(_0xf09d61=g,_0x4fa722,_0xe87597){var _0x5f02c3=_0x4bbfe1;super(),this[_0x5f02c3(0x1f6)]=_0xf09d61,this[_0x5f02c3(0x1e3)]=_0x4fa722,this[_0x5f02c3(0x1f3)]=_0xe87597;const {menu:_0x159638,..._0x3d89e5}=_0x1caf45({},g,this[_0x5f02c3(0x1f6)]);_0x159638&&this[_0x5f02c3(0x1f3)]['setConfig'](_0x5f02c3(0x1e8),_0x159638,{'merge':!0x0}),this[_0x5f02c3(0x1f3)][_0x5f02c3(0x203)](H,_0x3d89e5);}[_0x4bbfe1(0x205)](){var _0x2e69c2=_0x4bbfe1;[[a]]['forEach'](_0x129314=>this[_0x2e69c2(0x1e3)]['add'](_0x129314));}[_0x4bbfe1(0x1ed)](){var _0x5cd1b2=_0x4bbfe1;this[_0x5cd1b2(0x1e3)][_0x5cd1b2(0x1e7)](a);}};I(s,_0x4bbfe1(0x1e6),W),I(s,_0x4bbfe1(0x201),_0x1c5ef3['UNIVER_SHEET']),s=V([_0x12cd53(_0x53db0e),_(0x1,_0x23c57e(_0x18ee01)),_(0x2,_0x115688)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4bbfe1=_0x4689;(function(_0x1ec109,_0x486761){var _0x39cca3=_0x4689,_0x4f13ee=_0x1ec109();while(!![]){try{var _0x5b34b6=-parseInt(_0x39cca3(0x1f7))/0x1+parseInt(_0x39cca3(0x1ff))/0x2+parseInt(_0x39cca3(0x1f2))/0x3*(-parseInt(_0x39cca3(0x1ef))/0x4)+parseInt(_0x39cca3(0x1f9))/0x5*(parseInt(_0x39cca3(0x1fc))/0x6)+parseInt(_0x39cca3(0x1eb))/0x7*(-parseInt(_0x39cca3(0x1e5))/0x8)+-parseInt(_0x39cca3(0x1fd))/0x9*(-parseInt(_0x39cca3(0x1ec))/0xa)+-parseInt(_0x39cca3(0x20e))/0xb*(-parseInt(_0x39cca3(0x207))/0xc);if(_0x5b34b6===_0x486761)break;else _0x4f13ee['push'](_0x4f13ee['shift']());}catch(_0x523f51){_0x4f13ee['push'](_0x4f13ee['shift']());}}}(_0x16fb,0xe760b));import{IExchangeOperateService as _0x60935d,UniverExchangeClientPlugin as _0x53db0e}from'@univerjs-pro/exchange-client';import{CommandType as _0x23725c,UniverInstanceType as _0x1c5ef3,Disposable as _0x578906,ICommandService as _0x593e3d,DependentOn as _0x12cd53,Inject as _0x23c57e,Injector as _0x18ee01,IConfigService as _0x115688,Plugin as _0x4ac4f6,merge as _0x1caf45}from'@univerjs/core';import{MenuItemType as _0x199026,getMenuHiddenObservable as _0x4ea051,RibbonStartGroup as _0x51a27f,IMenuManagerService as _0x1a399f}from'@univerjs/ui';import{getCurrentRangeDisable$ as _0x19bba2}from'@univerjs/sheets-ui';import{WorkbookExportPermission as _0xaa9da3}from'@univerjs/sheets';const H='sheets-exchange-client.config',g={},m={'id':_0x4bbfe1(0x200),'type':_0x23725c[_0x4bbfe1(0x202)],'handler':async _0x4a6f1c=>(_0x4a6f1c['get'](_0x60935d)[_0x4bbfe1(0x206)](),!0x0)},d={'id':_0x4bbfe1(0x1e4),'type':_0x23725c[_0x4bbfe1(0x202)],'handler':async _0x541c23=>(_0x541c23[_0x4bbfe1(0x1e7)](_0x60935d)['exportXLSXByUnitId'](),!0x0)},S=_0x4bbfe1(0x1f1);function F(_0x3f792d){var _0x562042=_0x4bbfe1;return{'id':S,'type':_0x199026['SUBITEMS'],'icon':_0x562042(0x1fa),'tooltip':_0x562042(0x1f0),'hidden$':_0x4ea051(_0x3f792d,_0x1c5ef3[_0x562042(0x20c)]),'disabled$':_0x19bba2(_0x3f792d,{'workbookTypes':[_0xaa9da3]})};}function D(){var _0x29be58=_0x4bbfe1;return{'id':m['id'],'type':_0x199026[_0x29be58(0x1fe)],'title':'exchange.upload','icon':_0x29be58(0x20d)};}function _0x4689(_0x1b0afb,_0x1f5065){var _0x16fb8c=_0x16fb();return _0x4689=function(_0x468932,_0x508c82){_0x468932=_0x468932-0x1e2;var _0x3a503b=_0x16fb8c[_0x468932];return _0x3a503b;},_0x4689(_0x1b0afb,_0x1f5065);}function G(){var _0xa87d07=_0x4bbfe1;return{'id':d['id'],'type':_0x199026[_0xa87d07(0x1fe)],'title':_0xa87d07(0x208),'icon':'ExportSingle'};}const R={[_0x51a27f['FILE']]:{[S]:{'order':0x4,'menuItemFactory':F,[m['id']]:{'order':0x0,'menuItemFactory':D},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0x4bbfe1(0x1e9)],A=(_0x3cbacd,_0x10e070,_0x3b6ca0,_0x19782c)=>{var _0x5ce420=_0x4bbfe1;for(var _0x5620bb=_0x19782c>0x1?void 0x0:_0x19782c?w(_0x10e070,_0x3b6ca0):_0x10e070,_0x4d0fc2=_0x3cbacd[_0x5ce420(0x1fb)]-0x1,_0x5ca212;_0x4d0fc2>=0x0;_0x4d0fc2--)(_0x5ca212=_0x3cbacd[_0x4d0fc2])&&(_0x5620bb=_0x5ca212(_0x5620bb)||_0x5620bb);return _0x5620bb;},u=(_0x9c1a71,_0x36c81f)=>(_0x57a1e1,_0x4ec3d8)=>_0x36c81f(_0x57a1e1,_0x4ec3d8,_0x9c1a71);let a=class extends _0x578906{constructor(_0x2f9811,_0x545964){var _0x2aa5d0=_0x4bbfe1;super(),this[_0x2aa5d0(0x204)]=_0x2f9811,this[_0x2aa5d0(0x1e2)]=_0x545964,this['_initCommands'](),this['_initMenus']();}[_0x4bbfe1(0x1ea)](){[m,d]['forEach'](_0x2e7361=>{var _0x4af0c5=_0x4689;this[_0x4af0c5(0x1ee)](this[_0x4af0c5(0x204)][_0x4af0c5(0x1f8)](_0x2e7361));});}[_0x4bbfe1(0x1f4)](){var _0x27942f=_0x4bbfe1;this['_menuManagerService'][_0x27942f(0x209)](R);}};a=A([u(0x0,_0x593e3d),u(0x1,_0x1a399f)],a);var j=Object[_0x4bbfe1(0x1f5)],$=Object['getOwnPropertyDescriptor'],B=(_0x17f3e9,_0x539965,_0x4246b6)=>_0x539965 in _0x17f3e9?j(_0x17f3e9,_0x539965,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4246b6}):_0x17f3e9[_0x539965]=_0x4246b6,V=(_0x14a91b,_0x46828d,_0xe0b299,_0x3a5f29)=>{for(var _0x27874e=_0x3a5f29>0x1?void 0x0:_0x3a5f29?$(_0x46828d,_0xe0b299):_0x46828d,_0x4badc7=_0x14a91b['length']-0x1,_0x1ef722;_0x4badc7>=0x0;_0x4badc7--)(_0x1ef722=_0x14a91b[_0x4badc7])&&(_0x27874e=_0x1ef722(_0x27874e)||_0x27874e);return _0x27874e;},_=(_0x2178a8,_0x5e0827)=>(_0x107204,_0x2b6328)=>_0x5e0827(_0x107204,_0x2b6328,_0x2178a8),I=(_0x5360d8,_0xbb91d0,_0x4b8a17)=>B(_0x5360d8,typeof _0xbb91d0!=_0x4bbfe1(0x20b)?_0xbb91d0+'':_0xbb91d0,_0x4b8a17);const W=_0x4bbfe1(0x20a);function _0x16fb(){var _0x58aa47=['_config','947606QHdxkB','registerCommand','5JPBvVd','DirectExportSingle','length','4363194jyiBoX','423INSSrE','BUTTON','78520UBWYKm','exchange-client.operation.import-xlsx','type','OPERATION','setConfig','_commandService','onStarting','importXLSXToUnitId','1231608afcoBI','exchange.download','mergeMenu','SHEET_EXCHANGE_CLIENT_PLUGIN','symbol','UNIVER_SHEET','FolderSingle','209WgIsLz','_menuManagerService','_injector','exchange-client.operation.export-xlsx','322120MYDzqx','pluginName','get','menu','getOwnPropertyDescriptor','_initCommands','7tKaGjd','43370cTWYmW','onReady','disposeWithMe','8vFqNQj','exchange.file','sheets-exchange-client.operation.exchange','1477125ccCEJn','_configService','_initMenus','defineProperty'];_0x16fb=function(){return _0x58aa47;};return _0x16fb();}let s=class extends _0x4ac4f6{constructor(_0xf09d61=g,_0x4fa722,_0xe87597){var _0x5f02c3=_0x4bbfe1;super(),this[_0x5f02c3(0x1f6)]=_0xf09d61,this[_0x5f02c3(0x1e3)]=_0x4fa722,this[_0x5f02c3(0x1f3)]=_0xe87597;const {menu:_0x159638,..._0x3d89e5}=_0x1caf45({},g,this[_0x5f02c3(0x1f6)]);_0x159638&&this[_0x5f02c3(0x1f3)]['setConfig'](_0x5f02c3(0x1e8),_0x159638,{'merge':!0x0}),this[_0x5f02c3(0x1f3)][_0x5f02c3(0x203)](H,_0x3d89e5);}[_0x4bbfe1(0x205)](){var _0x2e69c2=_0x4bbfe1;[[a]]['forEach'](_0x129314=>this[_0x2e69c2(0x1e3)]['add'](_0x129314));}[_0x4bbfe1(0x1ed)](){var _0x5cd1b2=_0x4bbfe1;this[_0x5cd1b2(0x1e3)][_0x5cd1b2(0x1e7)](a);}};I(s,_0x4bbfe1(0x1e6),W),I(s,_0x4bbfe1(0x201),_0x1c5ef3['UNIVER_SHEET']),s=V([_0x12cd53(_0x53db0e),_(0x1,_0x23c57e(_0x18ee01)),_(0x2,_0x115688)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3877(_0x1d2ee2,_0x41660c){var _0x4a80f5=_0x4a80();return _0x3877=function(_0x387783,_0x5daeae){_0x387783=_0x387783-0x70;var _0x33abcc=_0x4a80f5[_0x387783];return _0x33abcc;},_0x3877(_0x1d2ee2,_0x41660c);}function _0x4a80(){var _0x23f79a=['@univerjs-pro/exchange-client','sheets-exchange-client.config','getOwnPropertyDescriptor','@univerjs/sheets-ui','UniverExchangeClientPlugin','IConfigService','MenuItemType','3822snirWx','getCurrentRangeDisable$','onReady','UniverSheetsUi','type','onStarting','UniverProExchangeClient','ExportXLSXOperation','exchange-client.operation.import-xlsx','merge','UniverProSheetsExchangeClient','368572wqwhpk','object','exchange.file','WorkbookExportPermission','_menuManagerService','exchange.download','menu','UNIVER_SHEET','@univerjs/sheets','Injector','UniverUi','FolderSingle','add','UniverSheetsExchangeClientPlugin','IMenuManagerService','_commandService','exports','_injector','DirectExportSingle','SUBITEMS','forEach','3627239XyzStS','ImportXLSXOperation','registerCommand','importXLSXToUnitId','_config','exchange.upload','length','defineProperty','20KsMxWS','OPERATION','3ZWDoYD','Module','get','BUTTON','ExportSingle','2322YZVwrm','_initCommands','amd','UniverInstanceType','2177UIDOyP','UniverSheets','_initMenus','sheets-exchange-client.operation.exchange','setConfig','exportXLSXByUnitId','IExchangeOperateService','ICommandService','16632NxkRDI','RibbonStartGroup','mergeMenu','pluginName','@univerjs/ui','327189aRivWn','FILE','@univerjs/core','_configService','214482jwEJkj','DependentOn','828910eyYWZt','symbol','Disposable'];_0x4a80=function(){return _0x23f79a;};return _0x4a80();}(function(_0x151fe1,_0xbbce8){var _0x3dcb20=_0x3877,_0x191251=_0x151fe1();while(!![]){try{var _0x1de914=parseInt(_0x3dcb20(0x74))/0x1+-parseInt(_0x3dcb20(0x78))/0x2*(parseInt(_0x3dcb20(0xae))/0x3)+-parseInt(_0x3dcb20(0x8f))/0x4*(parseInt(_0x3dcb20(0xac))/0x5)+parseInt(_0x3dcb20(0x84))/0x6*(parseInt(_0x3dcb20(0xb7))/0x7)+parseInt(_0x3dcb20(0xbf))/0x8*(parseInt(_0x3dcb20(0xb3))/0x9)+parseInt(_0x3dcb20(0x7a))/0xa+-parseInt(_0x3dcb20(0xa4))/0xb;if(_0x1de914===_0xbbce8)break;else _0x191251['push'](_0x191251['shift']());}catch(_0x36ae6a){_0x191251['push'](_0x191251['shift']());}}}(_0x4a80,0x52c3f),function(_0x273aad,_0x296c81){var _0x308f8c=_0x3877;typeof exports==_0x308f8c(0x90)&&typeof module<'u'?_0x296c81(exports,require(_0x308f8c(0x7d)),require(_0x308f8c(0x76)),require(_0x308f8c(0x73)),require('@univerjs/sheets-ui'),require('@univerjs/sheets')):typeof define=='function'&&define[_0x308f8c(0xb5)]?define([_0x308f8c(0x9f),_0x308f8c(0x7d),_0x308f8c(0x76),'@univerjs/ui',_0x308f8c(0x80),_0x308f8c(0x97)],_0x296c81):(_0x273aad=typeof globalThis<'u'?globalThis:_0x273aad||self,_0x296c81(_0x273aad[_0x308f8c(0x8e)]={},_0x273aad[_0x308f8c(0x8a)],_0x273aad['UniverCore'],_0x273aad[_0x308f8c(0x99)],_0x273aad[_0x308f8c(0x87)],_0x273aad[_0x308f8c(0xb8)]));}(this,function(_0x59002f,_0x33bf54,_0x508fed,_0x353cbb,_0x4b5c2e,_0x1b3075){'use strict';var _0xae6b6=_0x3877;const _0x3ac275=_0xae6b6(0x7e),_0x3b2745={},_0x3274c9={'id':_0xae6b6(0x8c),'type':_0x508fed['CommandType'][_0xae6b6(0xad)],'handler':async _0x2747e3=>(_0x2747e3['get'](_0x33bf54[_0xae6b6(0xbd)])[_0xae6b6(0xa7)](),!0x0)},_0x709286={'id':'exchange-client.operation.export-xlsx','type':_0x508fed['CommandType'][_0xae6b6(0xad)],'handler':async _0x56c1e6=>(_0x56c1e6[_0xae6b6(0xb0)](_0x33bf54[_0xae6b6(0xbd)])[_0xae6b6(0xbc)](),!0x0)},_0x2994ed=_0xae6b6(0xba);function _0x505f8f(_0x3b38d6){var _0x1177a2=_0xae6b6;return{'id':_0x2994ed,'type':_0x353cbb[_0x1177a2(0x83)][_0x1177a2(0xa2)],'icon':_0x1177a2(0xa1),'tooltip':_0x1177a2(0x91),'hidden$':_0x353cbb['getMenuHiddenObservable'](_0x3b38d6,_0x508fed[_0x1177a2(0xb6)][_0x1177a2(0x96)]),'disabled$':_0x4b5c2e[_0x1177a2(0x85)](_0x3b38d6,{'workbookTypes':[_0x1b3075[_0x1177a2(0x92)]]})};}function _0x14a119(){var _0x6bb013=_0xae6b6;return{'id':_0x3274c9['id'],'type':_0x353cbb['MenuItemType'][_0x6bb013(0xb1)],'title':_0x6bb013(0xa9),'icon':_0x6bb013(0x9a)};}function _0x7a11a7(){var _0x62dc3e=_0xae6b6;return{'id':_0x709286['id'],'type':_0x353cbb[_0x62dc3e(0x83)][_0x62dc3e(0xb1)],'title':_0x62dc3e(0x94),'icon':_0x62dc3e(0xb2)};}const _0x265530={[_0x353cbb[_0xae6b6(0x70)][_0xae6b6(0x75)]]:{[_0x2994ed]:{'order':0x4,'menuItemFactory':_0x505f8f,[_0x3274c9['id']]:{'order':0x0,'menuItemFactory':_0x14a119},[_0x709286['id']]:{'order':0x1,'menuItemFactory':_0x7a11a7}}}};var _0x2b076f=Object[_0xae6b6(0x7f)],_0x4022f2=(_0xd68918,_0x380f5c,_0x2b74d6,_0x4363f8)=>{var _0x3b7f2a=_0xae6b6;for(var _0x1515f6=_0x4363f8>0x1?void 0x0:_0x4363f8?_0x2b076f(_0x380f5c,_0x2b74d6):_0x380f5c,_0x18b64a=_0xd68918[_0x3b7f2a(0xaa)]-0x1,_0x297417;_0x18b64a>=0x0;_0x18b64a--)(_0x297417=_0xd68918[_0x18b64a])&&(_0x1515f6=_0x297417(_0x1515f6)||_0x1515f6);return _0x1515f6;},_0x377373=(_0x3c102d,_0xe6e9b1)=>(_0x5589a6,_0x35043f)=>_0xe6e9b1(_0x5589a6,_0x35043f,_0x3c102d);let _0x31f639=class extends _0x508fed[_0xae6b6(0x7c)]{constructor(_0x5b3bea,_0x35e364){var _0x308aa9=_0xae6b6;super(),this['_commandService']=_0x5b3bea,this[_0x308aa9(0x93)]=_0x35e364,this[_0x308aa9(0xb4)](),this[_0x308aa9(0xb9)]();}[_0xae6b6(0xb4)](){var _0x5b9edd=_0xae6b6;[_0x3274c9,_0x709286][_0x5b9edd(0xa3)](_0x5db5fa=>{var _0x3395f5=_0x5b9edd;this['disposeWithMe'](this[_0x3395f5(0x9e)][_0x3395f5(0xa6)](_0x5db5fa));});}['_initMenus'](){var _0x948702=_0xae6b6;this[_0x948702(0x93)][_0x948702(0x71)](_0x265530);}};_0x31f639=_0x4022f2([_0x377373(0x0,_0x508fed[_0xae6b6(0xbe)]),_0x377373(0x1,_0x353cbb[_0xae6b6(0x9d)])],_0x31f639);var _0x31201b=Object[_0xae6b6(0xab)],_0x182598=Object['getOwnPropertyDescriptor'],_0xb685aa=(_0x6af212,_0x4d3b7e,_0xb7fe50)=>_0x4d3b7e in _0x6af212?_0x31201b(_0x6af212,_0x4d3b7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb7fe50}):_0x6af212[_0x4d3b7e]=_0xb7fe50,_0x2e862c=(_0x114bd7,_0x332f24,_0x110252,_0x7ee1e0)=>{for(var _0x1b7c94=_0x7ee1e0>0x1?void 0x0:_0x7ee1e0?_0x182598(_0x332f24,_0x110252):_0x332f24,_0x1c7360=_0x114bd7['length']-0x1,_0x338b84;_0x1c7360>=0x0;_0x1c7360--)(_0x338b84=_0x114bd7[_0x1c7360])&&(_0x1b7c94=_0x338b84(_0x1b7c94)||_0x1b7c94);return _0x1b7c94;},_0x2a692c=(_0x1522ca,_0x3422d7)=>(_0x2f1029,_0x3df850)=>_0x3422d7(_0x2f1029,_0x3df850,_0x1522ca),_0x450666=(_0x54c975,_0x60533,_0x514b99)=>_0xb685aa(_0x54c975,typeof _0x60533!=_0xae6b6(0x7b)?_0x60533+'':_0x60533,_0x514b99);const _0x4ae24a='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x59002f[_0xae6b6(0x9c)]=class extends _0x508fed['Plugin']{constructor(_0x39fba0=_0x3b2745,_0x381b90,_0x100eb5){var _0x2537de=_0xae6b6;super(),this[_0x2537de(0xa8)]=_0x39fba0,this[_0x2537de(0xa0)]=_0x381b90,this['_configService']=_0x100eb5;const {menu:_0x4af993,..._0x30e535}=_0x508fed[_0x2537de(0x8d)]({},_0x3b2745,this[_0x2537de(0xa8)]);_0x4af993&&this[_0x2537de(0x77)][_0x2537de(0xbb)](_0x2537de(0x95),_0x4af993,{'merge':!0x0}),this[_0x2537de(0x77)][_0x2537de(0xbb)](_0x3ac275,_0x30e535);}[_0xae6b6(0x89)](){var _0x1d8bf7=_0xae6b6;[[_0x31f639]][_0x1d8bf7(0xa3)](_0x22aa63=>this[_0x1d8bf7(0xa0)][_0x1d8bf7(0x9b)](_0x22aa63));}[_0xae6b6(0x86)](){var _0x1f61c6=_0xae6b6;this['_injector'][_0x1f61c6(0xb0)](_0x31f639);}},_0x450666(_0x59002f[_0xae6b6(0x9c)],_0xae6b6(0x72),_0x4ae24a),_0x450666(_0x59002f[_0xae6b6(0x9c)],_0xae6b6(0x88),_0x508fed['UniverInstanceType'][_0xae6b6(0x96)]),_0x59002f[_0xae6b6(0x9c)]=_0x2e862c([_0x508fed[_0xae6b6(0x79)](_0x33bf54[_0xae6b6(0x81)]),_0x2a692c(0x1,_0x508fed['Inject'](_0x508fed[_0xae6b6(0x98)])),_0x2a692c(0x2,_0x508fed[_0xae6b6(0x82)])],_0x59002f[_0xae6b6(0x9c)]),_0x59002f[_0xae6b6(0x8b)]=_0x709286,_0x59002f[_0xae6b6(0xa5)]=_0x3274c9,Object[_0xae6b6(0xab)](_0x59002f,Symbol['toStringTag'],{'value':_0xae6b6(0xaf)});}));
|
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.202505071607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.7.0-nightly.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets-ui": "0.7.0-nightly.
|
|
49
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.7.0-nightly.202505071607",
|
|
46
|
+
"@univerjs/core": "0.7.0-nightly.202505071607",
|
|
47
|
+
"@univerjs/sheets": "0.7.0-nightly.202505071607",
|
|
48
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505071607",
|
|
49
|
+
"@univerjs/ui": "0.7.0-nightly.202505071607"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.8.3",
|