@univerjs-pro/sheets-exchange-client 0.10.4 → 0.10.5-nightly.202508290716
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3073c1=_0x101a;(function(_0x5b2f63,_0x15d857){const _0xcf430=_0x101a,_0x221978=_0x5b2f63();while(!![]){try{const _0x175f55=parseInt(_0xcf430(0xda))/0x1+-parseInt(_0xcf430(0xdb))/0x2+-parseInt(_0xcf430(0xea))/0x3*(-parseInt(_0xcf430(0xb9))/0x4)+-parseInt(_0xcf430(0xcd))/0x5*(-parseInt(_0xcf430(0xe1))/0x6)+parseInt(_0xcf430(0xbb))/0x7+-parseInt(_0xcf430(0xcc))/0x8*(-parseInt(_0xcf430(0xd1))/0x9)+parseInt(_0xcf430(0xb8))/0xa*(-parseInt(_0xcf430(0xc3))/0xb);if(_0x175f55===_0x15d857)break;else _0x221978['push'](_0x221978['shift']());}catch(_0x565c6c){_0x221978['push'](_0x221978['shift']());}}}(_0x3e88,0x83c6e));function _0x101a(_0x218c6f,_0x57f6da){const _0x3e8896=_0x3e88();return _0x101a=function(_0x101a41,_0x55ae3d){_0x101a41=_0x101a41-0xb4;let _0x231d96=_0x3e8896[_0x101a41];return _0x231d96;},_0x101a(_0x218c6f,_0x57f6da);}Object[_0x3073c1(0xe3)](exports,Symbol[_0x3073c1(0xee)],{'value':_0x3073c1(0xdf)});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':_0x3073c1(0xe4),'type':i[_0x3073c1(0xb5)][_0x3073c1(0xbe)],'handler':async _0x360050=>{const _0x3a6e48=_0x3073c1,_0x56b6fb=_0x360050[_0x3a6e48(0xcb)](g[_0x3a6e48(0xdd)]);return new URLSearchParams(location[_0x3a6e48(0xc7)])[_0x3a6e48(0xcb)]('unit')?_0x56b6fb['importXLSXToUnitId']():_0x56b6fb[_0x3a6e48(0xba)](),!0x0;}},p={'id':_0x3073c1(0xec),'type':i[_0x3073c1(0xb5)]['OPERATION'],'handler':async _0x377631=>{const _0x46d639=_0x3073c1,_0x2d6c40=_0x377631[_0x46d639(0xcb)](g[_0x46d639(0xdd)]);return new URLSearchParams(location[_0x46d639(0xc7)])['get']('unit')?_0x2d6c40['exportXLSXByUnitId']():_0x2d6c40[_0x46d639(0xc4)](),!0x0;}},v=_0x3073c1(0xcf),h={},S=_0x3073c1(0xf0);function x(_0x6fc78d){const _0x59d7b9=_0x3073c1;return{'id':S,'type':c['MenuItemType'][_0x59d7b9(0xc8)],'icon':'DirectExportIcon','tooltip':_0x59d7b9(0xce),'hidden$':c[_0x59d7b9(0xc5)](_0x6fc78d,i[_0x59d7b9(0xef)][_0x59d7b9(0xd5)]),'disabled$':I['getCurrentRangeDisable$'](_0x6fc78d,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x2eb3ef=_0x3073c1;return{'id':l['id'],'type':c[_0x2eb3ef(0xbc)][_0x2eb3ef(0xc0)],'title':_0x2eb3ef(0xe9),'icon':_0x2eb3ef(0xe0)};}function C(){const _0x5bf3cc=_0x3073c1;return{'id':p['id'],'type':c[_0x5bf3cc(0xbc)][_0x5bf3cc(0xc0)],'title':_0x5bf3cc(0xbd),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup'][_0x3073c1(0xeb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x3073c1(0xd0)],y=(_0x433396,_0x577d93,_0x1afc6c,_0xac075b)=>{const _0x43709e=_0x3073c1;for(var _0x275939=_0xac075b>0x1?void 0x0:_0xac075b?T(_0x577d93,_0x1afc6c):_0x577d93,_0x196917=_0x433396[_0x43709e(0xd3)]-0x1,_0x34ed37;_0x196917>=0x0;_0x196917--)(_0x34ed37=_0x433396[_0x196917])&&(_0x275939=_0x34ed37(_0x275939)||_0x275939);return _0x275939;},m=(_0x12dae6,_0x207a5d)=>(_0xd76252,_0x338654)=>_0x207a5d(_0xd76252,_0x338654,_0x12dae6);let u=class extends i[_0x3073c1(0xc6)]{constructor(_0x18a1c2,_0x5c1e19){const _0x3f829c=_0x3073c1;super(),this['_commandService']=_0x18a1c2,this['_menuManagerService']=_0x5c1e19,this[_0x3f829c(0xf2)](),this[_0x3f829c(0xc2)]();}['_initCommands'](){const _0x187a9a=_0x3073c1;[l,p][_0x187a9a(0xbf)](_0x50c648=>{const _0x3eb970=_0x187a9a;this[_0x3eb970(0xb7)](this['_commandService'][_0x3eb970(0xca)](_0x50c648));});}[_0x3073c1(0xc2)](){const _0x597bb4=_0x3073c1;this[_0x597bb4(0xb6)][_0x597bb4(0xc9)](f);}};u=y([m(0x0,i['ICommandService']),m(0x1,c[_0x3073c1(0xe8)])],u);var O=Object[_0x3073c1(0xe3)],U=Object[_0x3073c1(0xd0)],X=(_0x135182,_0xf45c75,_0x20657f)=>_0xf45c75 in _0x135182?O(_0x135182,_0xf45c75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20657f}):_0x135182[_0xf45c75]=_0x20657f,N=(_0x3d3bcc,_0x554cbc,_0x1d62dd,_0x2cf008)=>{const _0x5219e8=_0x3073c1;for(var _0x5c1346=_0x2cf008>0x1?void 0x0:_0x2cf008?U(_0x554cbc,_0x1d62dd):_0x554cbc,_0x427d27=_0x3d3bcc[_0x5219e8(0xd3)]-0x1,_0x1174b4;_0x427d27>=0x0;_0x427d27--)(_0x1174b4=_0x3d3bcc[_0x427d27])&&(_0x5c1346=_0x1174b4(_0x5c1346)||_0x5c1346);return _0x5c1346;},d=(_0xbd8218,_0x416b11)=>(_0x1e333f,_0x320df2)=>_0x416b11(_0x1e333f,_0x320df2,_0xbd8218),E=(_0x4851b4,_0x31cc65,_0x1c0d02)=>X(_0x4851b4,typeof _0x31cc65!=_0x3073c1(0xd7)?_0x31cc65+'':_0x31cc65,_0x1c0d02);function _0x3e88(){const _0x2effd2=['disposeWithMe','26352570jjlGyR','4CnHVFO','importXLSXToSnapshot','5469947JXVIys','MenuItemType','exchange.download','OPERATION','forEach','BUTTON','Injector','_initMenus','11VgRZOa','exportXLSXBySnapshot','getMenuHiddenObservable','Disposable','search','SUBITEMS','mergeMenu','registerCommand','get','8jOwwGf','5kwauHB','exchange.file','sheets-exchange-client.config','getOwnPropertyDescriptor','7931997yQYYFS','IConfigService','length','setConfig','UNIVER_SHEET','pluginName','symbol','_injector','onReady','209285GPYcZX','193076kSwkYx','merge','IExchangeOperateService','_configService','Module','FolderIcon','6269208vHKzDX','UniverSheetsExchangeClientPlugin','defineProperty','exchange-client.operation.import-xlsx','type','UniverExchangeClientPlugin','ExportXLSXOperation','IMenuManagerService','exchange.upload','1063938KgVFcV','OTHERS','exchange-client.operation.export-xlsx','DependentOn','toStringTag','UniverInstanceType','sheets-exchange-client.operation.exchange','ImportXLSXOperation','_initCommands','_config','CommandType','_menuManagerService'];_0x3e88=function(){return _0x2effd2;};return _0x3e88();}const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x3073c1(0xe2)]=class extends i['Plugin']{constructor(_0x15c939=h,_0x23370e,_0x38935d){const _0x4ab088=_0x3073c1;super(),this['_config']=_0x15c939,this['_injector']=_0x23370e,this[_0x4ab088(0xde)]=_0x38935d;const {menu:_0x1dd318,..._0x4e3161}=i[_0x4ab088(0xdc)]({},h,this[_0x4ab088(0xb4)]);_0x1dd318&&this['_configService'][_0x4ab088(0xd4)]('menu',_0x1dd318,{'merge':!0x0}),this[_0x4ab088(0xde)][_0x4ab088(0xd4)](v,_0x4e3161);}['onStarting'](){const _0x337ec1=_0x3073c1;[[u]]['forEach'](_0x2b2230=>this[_0x337ec1(0xd8)]['add'](_0x2b2230));}[_0x3073c1(0xd9)](){const _0x29fa52=_0x3073c1;this[_0x29fa52(0xd8)][_0x29fa52(0xcb)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x3073c1(0xd6),L),E(exports['UniverSheetsExchangeClientPlugin'],_0x3073c1(0xe5),i[_0x3073c1(0xef)]['UNIVER_SHEET']),exports[_0x3073c1(0xe2)]=N([i[_0x3073c1(0xed)](g[_0x3073c1(0xe6)]),d(0x1,i['Inject'](i[_0x3073c1(0xc1)])),d(0x2,i[_0x3073c1(0xd2)])],exports[_0x3073c1(0xe2)]),exports[_0x3073c1(0xe7)]=p,exports[_0x3073c1(0xf1)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5e1a18=_0x1491;(function(_0x2b6e06,_0x5de536){const _0xa75af4=_0x1491,_0x82832d=_0x2b6e06();while(!![]){try{const _0x36c28c=parseInt(_0xa75af4(0x1a9))/0x1+-parseInt(_0xa75af4(0x18a))/0x2+parseInt(_0xa75af4(0x197))/0x3+-parseInt(_0xa75af4(0x194))/0x4+parseInt(_0xa75af4(0x19c))/0x5+-parseInt(_0xa75af4(0x193))/0x6+parseInt(_0xa75af4(0x195))/0x7*(parseInt(_0xa75af4(0x1a2))/0x8);if(_0x36c28c===_0x5de536)break;else _0x82832d['push'](_0x82832d['shift']());}catch(_0x14d4be){_0x82832d['push'](_0x82832d['shift']());}}}(_0x49a1,0xb2591));import{IExchangeOperateService as _0x5aeca0,UniverExchangeClientPlugin as _0x34a9d6}from'@univerjs-pro/exchange-client';import{CommandType as _0x5c3d7b,UniverInstanceType as _0x59b55b,Disposable as _0x58f696,ICommandService as _0x2b926c,DependentOn as _0x4a2fd7,Inject as _0x760c0d,Injector as _0x4a3a8b,IConfigService as _0x38a2fe,Plugin as _0x16dfd6,merge as _0x15e7eb}from'@univerjs/core';function _0x49a1(){const _0x267d41=['exchange.file','menu','disposeWithMe','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','_injector','onReady','_commandService','length','defineProperty','41494FVTXHj','search','OPERATION','sheets-exchange-client.config','BUTTON','exchange-client.operation.import-xlsx','setConfig','_initMenus','SUBITEMS','5015550SnKdbK','5028620VamVMN','21OmhkwA','_config','2203404KAoUZb','importXLSXToUnitId','mergeMenu','exchange.upload','exchange.download','3509885cROjec','forEach','importXLSXToSnapshot','type','getOwnPropertyDescriptor','pluginName','3208976KaZiWJ','_configService','add','get','_initCommands','unit','DirectExportIcon','204529AIEhpp','exchange-client.operation.export-xlsx','UNIVER_SHEET','_menuManagerService'];_0x49a1=function(){return _0x267d41;};return _0x49a1();}import{MenuItemType as _0x1cae2c,getMenuHiddenObservable as _0x1ccd4f,RibbonStartGroup as _0x351666,IMenuManagerService as _0x4e624e}from'@univerjs/ui';import{WorkbookExportPermission as _0x4ec5cd}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4a7c52}from'@univerjs/sheets-ui';const p={'id':_0x5e1a18(0x18f),'type':_0x5c3d7b['OPERATION'],'handler':async _0x13dfa1=>{const _0x5a333a=_0x5e1a18,_0x53ab9a=_0x13dfa1[_0x5a333a(0x1a5)](_0x5aeca0);return new URLSearchParams(location[_0x5a333a(0x18b)])[_0x5a333a(0x1a5)](_0x5a333a(0x1a7))?_0x53ab9a[_0x5a333a(0x198)]():_0x53ab9a[_0x5a333a(0x19e)](),!0x0;}},u={'id':_0x5e1a18(0x1aa),'type':_0x5c3d7b[_0x5e1a18(0x18c)],'handler':async _0x10dc62=>{const _0x28584c=_0x5e1a18,_0x19fc90=_0x10dc62[_0x28584c(0x1a5)](_0x5aeca0);return new URLSearchParams(location[_0x28584c(0x18b)])['get'](_0x28584c(0x1a7))?_0x19fc90['exportXLSXByUnitId']():_0x19fc90[_0x28584c(0x184)](),!0x0;}},H=_0x5e1a18(0x18d),l={},S=_0x5e1a18(0x183);function R(_0x35b6a9){const _0x4105fe=_0x5e1a18;return{'id':S,'type':_0x1cae2c[_0x4105fe(0x192)],'icon':_0x4105fe(0x1a8),'tooltip':_0x4105fe(0x180),'hidden$':_0x1ccd4f(_0x35b6a9,_0x59b55b[_0x4105fe(0x1ab)]),'disabled$':_0x4a7c52(_0x35b6a9,{'workbookTypes':[_0x4ec5cd]})};}function w(){const _0x18b4ff=_0x5e1a18;return{'id':p['id'],'type':_0x1cae2c[_0x18b4ff(0x18e)],'title':_0x18b4ff(0x19a),'icon':'FolderIcon'};}function D(){const _0x41bbcb=_0x5e1a18;return{'id':u['id'],'type':_0x1cae2c[_0x41bbcb(0x18e)],'title':_0x41bbcb(0x19b),'icon':'ExportIcon'};}const F={[_0x351666['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5e1a18(0x1a0)],A=(_0x2de7bb,_0x24a02b,_0x3b5070,_0x3368eb)=>{const _0x46622d=_0x5e1a18;for(var _0x2cf7f0=_0x3368eb>0x1?void 0x0:_0x3368eb?G(_0x24a02b,_0x3b5070):_0x24a02b,_0x45c1c9=_0x2de7bb[_0x46622d(0x188)]-0x1,_0x3b47f8;_0x45c1c9>=0x0;_0x45c1c9--)(_0x3b47f8=_0x2de7bb[_0x45c1c9])&&(_0x2cf7f0=_0x3b47f8(_0x2cf7f0)||_0x2cf7f0);return _0x2cf7f0;},d=(_0x34b1b4,_0x4ef272)=>(_0x3dbd1a,_0x5da57c)=>_0x4ef272(_0x3dbd1a,_0x5da57c,_0x34b1b4);let c=class extends _0x58f696{constructor(_0x286a90,_0x4e0b61){const _0x4aef42=_0x5e1a18;super(),this['_commandService']=_0x286a90,this[_0x4aef42(0x17f)]=_0x4e0b61,this[_0x4aef42(0x1a6)](),this['_initMenus']();}['_initCommands'](){const _0x3d50dd=_0x5e1a18;[p,u][_0x3d50dd(0x19d)](_0xcf3109=>{const _0x54cf38=_0x3d50dd;this[_0x54cf38(0x182)](this[_0x54cf38(0x187)]['registerCommand'](_0xcf3109));});}[_0x5e1a18(0x191)](){const _0x5bc4fe=_0x5e1a18;this[_0x5bc4fe(0x17f)][_0x5bc4fe(0x199)](F);}};c=A([d(0x0,_0x2b926c),d(0x1,_0x4e624e)],c);var j=Object[_0x5e1a18(0x189)],B=Object['getOwnPropertyDescriptor'],$=(_0x21a3d7,_0x3a6f43,_0x205c03)=>_0x3a6f43 in _0x21a3d7?j(_0x21a3d7,_0x3a6f43,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x205c03}):_0x21a3d7[_0x3a6f43]=_0x205c03,V=(_0x551a2e,_0x36c1b8,_0x279796,_0x221e1f)=>{const _0x253732=_0x5e1a18;for(var _0x33bc41=_0x221e1f>0x1?void 0x0:_0x221e1f?B(_0x36c1b8,_0x279796):_0x36c1b8,_0x5775d5=_0x551a2e[_0x253732(0x188)]-0x1,_0x94fb9;_0x5775d5>=0x0;_0x5775d5--)(_0x94fb9=_0x551a2e[_0x5775d5])&&(_0x33bc41=_0x94fb9(_0x33bc41)||_0x33bc41);return _0x33bc41;},_=(_0x4067cb,_0x20e04c)=>(_0x1590ef,_0xff473)=>_0x20e04c(_0x1590ef,_0xff473,_0x4067cb),I=(_0x8d6fb9,_0x3aa833,_0x419439)=>$(_0x8d6fb9,typeof _0x3aa833!='symbol'?_0x3aa833+'':_0x3aa833,_0x419439);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x16dfd6{constructor(_0x496608=l,_0x16a525,_0xfe4571){const _0x51179e=_0x5e1a18;super(),this[_0x51179e(0x196)]=_0x496608,this['_injector']=_0x16a525,this[_0x51179e(0x1a3)]=_0xfe4571;const {menu:_0x135a6f,..._0x2b8338}=_0x15e7eb({},l,this[_0x51179e(0x196)]);_0x135a6f&&this[_0x51179e(0x1a3)][_0x51179e(0x190)](_0x51179e(0x181),_0x135a6f,{'merge':!0x0}),this[_0x51179e(0x1a3)][_0x51179e(0x190)](H,_0x2b8338);}['onStarting'](){const _0x23ba92=_0x5e1a18;[[c]][_0x23ba92(0x19d)](_0x38f234=>this[_0x23ba92(0x185)][_0x23ba92(0x1a4)](_0x38f234));}[_0x5e1a18(0x186)](){const _0x1bbbe0=_0x5e1a18;this['_injector'][_0x1bbbe0(0x1a5)](c);}};function _0x1491(_0x18dc1d,_0x44c6ab){const _0x49a113=_0x49a1();return _0x1491=function(_0x14913d,_0x383fa2){_0x14913d=_0x14913d-0x17f;let _0x4b0c05=_0x49a113[_0x14913d];return _0x4b0c05;},_0x1491(_0x18dc1d,_0x44c6ab);}I(s,_0x5e1a18(0x1a1),W),I(s,_0x5e1a18(0x19f),_0x59b55b[_0x5e1a18(0x1ab)]),s=V([_0x4a2fd7(_0x34a9d6),_(0x1,_0x760c0d(_0x4a3a8b)),_(0x2,_0x38a2fe)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5e1a18=_0x1491;(function(_0x2b6e06,_0x5de536){const _0xa75af4=_0x1491,_0x82832d=_0x2b6e06();while(!![]){try{const _0x36c28c=parseInt(_0xa75af4(0x1a9))/0x1+-parseInt(_0xa75af4(0x18a))/0x2+parseInt(_0xa75af4(0x197))/0x3+-parseInt(_0xa75af4(0x194))/0x4+parseInt(_0xa75af4(0x19c))/0x5+-parseInt(_0xa75af4(0x193))/0x6+parseInt(_0xa75af4(0x195))/0x7*(parseInt(_0xa75af4(0x1a2))/0x8);if(_0x36c28c===_0x5de536)break;else _0x82832d['push'](_0x82832d['shift']());}catch(_0x14d4be){_0x82832d['push'](_0x82832d['shift']());}}}(_0x49a1,0xb2591));import{IExchangeOperateService as _0x5aeca0,UniverExchangeClientPlugin as _0x34a9d6}from'@univerjs-pro/exchange-client';import{CommandType as _0x5c3d7b,UniverInstanceType as _0x59b55b,Disposable as _0x58f696,ICommandService as _0x2b926c,DependentOn as _0x4a2fd7,Inject as _0x760c0d,Injector as _0x4a3a8b,IConfigService as _0x38a2fe,Plugin as _0x16dfd6,merge as _0x15e7eb}from'@univerjs/core';function _0x49a1(){const _0x267d41=['exchange.file','menu','disposeWithMe','sheets-exchange-client.operation.exchange','exportXLSXBySnapshot','_injector','onReady','_commandService','length','defineProperty','41494FVTXHj','search','OPERATION','sheets-exchange-client.config','BUTTON','exchange-client.operation.import-xlsx','setConfig','_initMenus','SUBITEMS','5015550SnKdbK','5028620VamVMN','21OmhkwA','_config','2203404KAoUZb','importXLSXToUnitId','mergeMenu','exchange.upload','exchange.download','3509885cROjec','forEach','importXLSXToSnapshot','type','getOwnPropertyDescriptor','pluginName','3208976KaZiWJ','_configService','add','get','_initCommands','unit','DirectExportIcon','204529AIEhpp','exchange-client.operation.export-xlsx','UNIVER_SHEET','_menuManagerService'];_0x49a1=function(){return _0x267d41;};return _0x49a1();}import{MenuItemType as _0x1cae2c,getMenuHiddenObservable as _0x1ccd4f,RibbonStartGroup as _0x351666,IMenuManagerService as _0x4e624e}from'@univerjs/ui';import{WorkbookExportPermission as _0x4ec5cd}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x4a7c52}from'@univerjs/sheets-ui';const p={'id':_0x5e1a18(0x18f),'type':_0x5c3d7b['OPERATION'],'handler':async _0x13dfa1=>{const _0x5a333a=_0x5e1a18,_0x53ab9a=_0x13dfa1[_0x5a333a(0x1a5)](_0x5aeca0);return new URLSearchParams(location[_0x5a333a(0x18b)])[_0x5a333a(0x1a5)](_0x5a333a(0x1a7))?_0x53ab9a[_0x5a333a(0x198)]():_0x53ab9a[_0x5a333a(0x19e)](),!0x0;}},u={'id':_0x5e1a18(0x1aa),'type':_0x5c3d7b[_0x5e1a18(0x18c)],'handler':async _0x10dc62=>{const _0x28584c=_0x5e1a18,_0x19fc90=_0x10dc62[_0x28584c(0x1a5)](_0x5aeca0);return new URLSearchParams(location[_0x28584c(0x18b)])['get'](_0x28584c(0x1a7))?_0x19fc90['exportXLSXByUnitId']():_0x19fc90[_0x28584c(0x184)](),!0x0;}},H=_0x5e1a18(0x18d),l={},S=_0x5e1a18(0x183);function R(_0x35b6a9){const _0x4105fe=_0x5e1a18;return{'id':S,'type':_0x1cae2c[_0x4105fe(0x192)],'icon':_0x4105fe(0x1a8),'tooltip':_0x4105fe(0x180),'hidden$':_0x1ccd4f(_0x35b6a9,_0x59b55b[_0x4105fe(0x1ab)]),'disabled$':_0x4a7c52(_0x35b6a9,{'workbookTypes':[_0x4ec5cd]})};}function w(){const _0x18b4ff=_0x5e1a18;return{'id':p['id'],'type':_0x1cae2c[_0x18b4ff(0x18e)],'title':_0x18b4ff(0x19a),'icon':'FolderIcon'};}function D(){const _0x41bbcb=_0x5e1a18;return{'id':u['id'],'type':_0x1cae2c[_0x41bbcb(0x18e)],'title':_0x41bbcb(0x19b),'icon':'ExportIcon'};}const F={[_0x351666['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x5e1a18(0x1a0)],A=(_0x2de7bb,_0x24a02b,_0x3b5070,_0x3368eb)=>{const _0x46622d=_0x5e1a18;for(var _0x2cf7f0=_0x3368eb>0x1?void 0x0:_0x3368eb?G(_0x24a02b,_0x3b5070):_0x24a02b,_0x45c1c9=_0x2de7bb[_0x46622d(0x188)]-0x1,_0x3b47f8;_0x45c1c9>=0x0;_0x45c1c9--)(_0x3b47f8=_0x2de7bb[_0x45c1c9])&&(_0x2cf7f0=_0x3b47f8(_0x2cf7f0)||_0x2cf7f0);return _0x2cf7f0;},d=(_0x34b1b4,_0x4ef272)=>(_0x3dbd1a,_0x5da57c)=>_0x4ef272(_0x3dbd1a,_0x5da57c,_0x34b1b4);let c=class extends _0x58f696{constructor(_0x286a90,_0x4e0b61){const _0x4aef42=_0x5e1a18;super(),this['_commandService']=_0x286a90,this[_0x4aef42(0x17f)]=_0x4e0b61,this[_0x4aef42(0x1a6)](),this['_initMenus']();}['_initCommands'](){const _0x3d50dd=_0x5e1a18;[p,u][_0x3d50dd(0x19d)](_0xcf3109=>{const _0x54cf38=_0x3d50dd;this[_0x54cf38(0x182)](this[_0x54cf38(0x187)]['registerCommand'](_0xcf3109));});}[_0x5e1a18(0x191)](){const _0x5bc4fe=_0x5e1a18;this[_0x5bc4fe(0x17f)][_0x5bc4fe(0x199)](F);}};c=A([d(0x0,_0x2b926c),d(0x1,_0x4e624e)],c);var j=Object[_0x5e1a18(0x189)],B=Object['getOwnPropertyDescriptor'],$=(_0x21a3d7,_0x3a6f43,_0x205c03)=>_0x3a6f43 in _0x21a3d7?j(_0x21a3d7,_0x3a6f43,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x205c03}):_0x21a3d7[_0x3a6f43]=_0x205c03,V=(_0x551a2e,_0x36c1b8,_0x279796,_0x221e1f)=>{const _0x253732=_0x5e1a18;for(var _0x33bc41=_0x221e1f>0x1?void 0x0:_0x221e1f?B(_0x36c1b8,_0x279796):_0x36c1b8,_0x5775d5=_0x551a2e[_0x253732(0x188)]-0x1,_0x94fb9;_0x5775d5>=0x0;_0x5775d5--)(_0x94fb9=_0x551a2e[_0x5775d5])&&(_0x33bc41=_0x94fb9(_0x33bc41)||_0x33bc41);return _0x33bc41;},_=(_0x4067cb,_0x20e04c)=>(_0x1590ef,_0xff473)=>_0x20e04c(_0x1590ef,_0xff473,_0x4067cb),I=(_0x8d6fb9,_0x3aa833,_0x419439)=>$(_0x8d6fb9,typeof _0x3aa833!='symbol'?_0x3aa833+'':_0x3aa833,_0x419439);const W='SHEET_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x16dfd6{constructor(_0x496608=l,_0x16a525,_0xfe4571){const _0x51179e=_0x5e1a18;super(),this[_0x51179e(0x196)]=_0x496608,this['_injector']=_0x16a525,this[_0x51179e(0x1a3)]=_0xfe4571;const {menu:_0x135a6f,..._0x2b8338}=_0x15e7eb({},l,this[_0x51179e(0x196)]);_0x135a6f&&this[_0x51179e(0x1a3)][_0x51179e(0x190)](_0x51179e(0x181),_0x135a6f,{'merge':!0x0}),this[_0x51179e(0x1a3)][_0x51179e(0x190)](H,_0x2b8338);}['onStarting'](){const _0x23ba92=_0x5e1a18;[[c]][_0x23ba92(0x19d)](_0x38f234=>this[_0x23ba92(0x185)][_0x23ba92(0x1a4)](_0x38f234));}[_0x5e1a18(0x186)](){const _0x1bbbe0=_0x5e1a18;this['_injector'][_0x1bbbe0(0x1a5)](c);}};function _0x1491(_0x18dc1d,_0x44c6ab){const _0x49a113=_0x49a1();return _0x1491=function(_0x14913d,_0x383fa2){_0x14913d=_0x14913d-0x17f;let _0x4b0c05=_0x49a113[_0x14913d];return _0x4b0c05;},_0x1491(_0x18dc1d,_0x44c6ab);}I(s,_0x5e1a18(0x1a1),W),I(s,_0x5e1a18(0x19f),_0x59b55b[_0x5e1a18(0x1ab)]),s=V([_0x4a2fd7(_0x34a9d6),_(0x1,_0x760c0d(_0x4a3a8b)),_(0x2,_0x38a2fe)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xa806(){const _0x5aa6ca=['onReady','FolderIcon','UniverProExchangeClient','3zIeGNZ','UniverSheetsExchangeClientPlugin','7656CgHhsX','UNIVER_SHEET','_config','IConfigService','menu','length','OTHERS','@univerjs/core','MenuItemType','Inject','exchange.file','46962UDCnto','504oyActp','SUBITEMS','importXLSXToUnitId','object','DirectExportIcon','10921330gNRQbs','ExportIcon','get','Disposable','mergeMenu','5312069dBiVxj','getCurrentRangeDisable$','@univerjs/sheets','unit','_menuManagerService','importXLSXToSnapshot','toStringTag','_injector','add','BUTTON','sheets-exchange-client.operation.exchange','40fpHIof','pluginName','function','Plugin','exchange.download','1806652SXKpMn','IExchangeOperateService','ICommandService','type','UniverInstanceType','@univerjs/ui','454056lUSKUA','@univerjs/sheets-ui','UniverCore','amd','_initCommands','exportXLSXByUnitId','_initMenus','UniverProSheetsExchangeClient','symbol','sheets-exchange-client.config','@univerjs-pro/exchange-client','ExportXLSXOperation','getMenuHiddenObservable','UniverUi','ImportXLSXOperation','CommandType','defineProperty','getOwnPropertyDescriptor','setConfig','RibbonStartGroup','IMenuManagerService','10SFaaFl','11981332VOKBAE','_configService','exchange.upload','onStarting','forEach','OPERATION','SHEET_EXCHANGE_CLIENT_PLUGIN','merge','_commandService'];_0xa806=function(){return _0x5aa6ca;};return _0xa806();}function _0x51aa(_0x2ba53f,_0x1361d7){const _0xa806ab=_0xa806();return _0x51aa=function(_0x51aae8,_0x2a3ead){_0x51aae8=_0x51aae8-0xde;let _0x2bd3bb=_0xa806ab[_0x51aae8];return _0x2bd3bb;},_0x51aa(_0x2ba53f,_0x1361d7);}(function(_0x5eceee,_0x3e3e45){const _0x3579ae=_0x51aa,_0x5579e8=_0x5eceee();while(!![]){try{const _0x46506f=-parseInt(_0x3579ae(0x118))/0x1*(parseInt(_0x3579ae(0x127))/0x2)+-parseInt(_0x3579ae(0x125))/0x3*(-parseInt(_0x3579ae(0xfd))/0x4)+parseInt(_0x3579ae(0xf8))/0x5*(parseInt(_0x3579ae(0x103))/0x6)+-parseInt(_0x3579ae(0xed))/0x7+parseInt(_0x3579ae(0xe3))/0x8*(parseInt(_0x3579ae(0xe2))/0x9)+-parseInt(_0x3579ae(0xe8))/0xa+parseInt(_0x3579ae(0x119))/0xb;if(_0x46506f===_0x3e3e45)break;else _0x5579e8['push'](_0x5579e8['shift']());}catch(_0x1a0edf){_0x5579e8['push'](_0x5579e8['shift']());}}}(_0xa806,0x8f009),function(_0x551196,_0x38997f){const _0x46b766=_0x51aa;typeof exports==_0x46b766(0xe6)&&typeof module<'u'?_0x38997f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x46b766(0xfa)&&define[_0x46b766(0x106)]?define(['exports',_0x46b766(0x10d),_0x46b766(0xde),_0x46b766(0x102),_0x46b766(0xef),_0x46b766(0x104)],_0x38997f):(_0x551196=typeof globalThis<'u'?globalThis:_0x551196||self,_0x38997f(_0x551196[_0x46b766(0x10a)]={},_0x551196[_0x46b766(0x124)],_0x551196[_0x46b766(0x105)],_0x551196[_0x46b766(0x110)],_0x551196['UniverSheets'],_0x551196['UniverSheetsUi']));}(this,function(_0x172363,_0x3f6be3,_0x27c4c3,_0x164435,_0x32a09d,_0x181838){'use strict';const _0x5744a4=_0x51aa;const _0x3e29cb={'id':'exchange-client.operation.import-xlsx','type':_0x27c4c3[_0x5744a4(0x112)][_0x5744a4(0x11e)],'handler':async _0x478be4=>{const _0x542325=_0x5744a4,_0x5f3639=_0x478be4[_0x542325(0xea)](_0x3f6be3['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x542325(0xea)](_0x542325(0xf0))?_0x5f3639[_0x542325(0xe5)]():_0x5f3639[_0x542325(0xf2)](),!0x0;}},_0x2fdf09={'id':'exchange-client.operation.export-xlsx','type':_0x27c4c3[_0x5744a4(0x112)][_0x5744a4(0x11e)],'handler':async _0x456c62=>{const _0x359b3a=_0x5744a4,_0x45f3c7=_0x456c62[_0x359b3a(0xea)](_0x3f6be3[_0x359b3a(0xfe)]);return new URLSearchParams(location['search'])[_0x359b3a(0xea)](_0x359b3a(0xf0))?_0x45f3c7[_0x359b3a(0x108)]():_0x45f3c7['exportXLSXBySnapshot'](),!0x0;}},_0xa19558=_0x5744a4(0x10c),_0x29b738={},_0x2e8036=_0x5744a4(0xf7);function _0xe45ffa(_0x2b2fa6){const _0x53ee16=_0x5744a4;return{'id':_0x2e8036,'type':_0x164435[_0x53ee16(0xdf)][_0x53ee16(0xe4)],'icon':_0x53ee16(0xe7),'tooltip':_0x53ee16(0xe1),'hidden$':_0x164435[_0x53ee16(0x10f)](_0x2b2fa6,_0x27c4c3[_0x53ee16(0x101)]['UNIVER_SHEET']),'disabled$':_0x181838[_0x53ee16(0xee)](_0x2b2fa6,{'workbookTypes':[_0x32a09d['WorkbookExportPermission']]})};}function _0x11ad70(){const _0xc2dd12=_0x5744a4;return{'id':_0x3e29cb['id'],'type':_0x164435[_0xc2dd12(0xdf)][_0xc2dd12(0xf6)],'title':_0xc2dd12(0x11b),'icon':_0xc2dd12(0x123)};}function _0x22ec3e(){const _0x4e719c=_0x5744a4;return{'id':_0x2fdf09['id'],'type':_0x164435['MenuItemType'][_0x4e719c(0xf6)],'title':_0x4e719c(0xfc),'icon':_0x4e719c(0xe9)};}const _0x4223f9={[_0x164435[_0x5744a4(0x116)][_0x5744a4(0x12d)]]:{[_0x2e8036]:{'order':0.3,'menuItemFactory':_0xe45ffa,[_0x3e29cb['id']]:{'order':0x0,'menuItemFactory':_0x11ad70},[_0x2fdf09['id']]:{'order':0x1,'menuItemFactory':_0x22ec3e}}}};var _0x57724f=Object['getOwnPropertyDescriptor'],_0x48d0fa=(_0x366be5,_0x2ca4e4,_0x13203d,_0x33042c)=>{const _0x534eb6=_0x5744a4;for(var _0xa10b51=_0x33042c>0x1?void 0x0:_0x33042c?_0x57724f(_0x2ca4e4,_0x13203d):_0x2ca4e4,_0x49efcf=_0x366be5[_0x534eb6(0x12c)]-0x1,_0x18082b;_0x49efcf>=0x0;_0x49efcf--)(_0x18082b=_0x366be5[_0x49efcf])&&(_0xa10b51=_0x18082b(_0xa10b51)||_0xa10b51);return _0xa10b51;},_0x2ff136=(_0x172bea,_0x26202c)=>(_0x9b867,_0x2b88c5)=>_0x26202c(_0x9b867,_0x2b88c5,_0x172bea);let _0x476b5d=class extends _0x27c4c3[_0x5744a4(0xeb)]{constructor(_0x5745ea,_0x319e5f){const _0x5bdf1b=_0x5744a4;super(),this[_0x5bdf1b(0x121)]=_0x5745ea,this[_0x5bdf1b(0xf1)]=_0x319e5f,this[_0x5bdf1b(0x107)](),this[_0x5bdf1b(0x109)]();}[_0x5744a4(0x107)](){const _0x3b0ea4=_0x5744a4;[_0x3e29cb,_0x2fdf09][_0x3b0ea4(0x11d)](_0x25103e=>{const _0x32c5f0=_0x3b0ea4;this['disposeWithMe'](this[_0x32c5f0(0x121)]['registerCommand'](_0x25103e));});}[_0x5744a4(0x109)](){const _0x3404b3=_0x5744a4;this[_0x3404b3(0xf1)][_0x3404b3(0xec)](_0x4223f9);}};_0x476b5d=_0x48d0fa([_0x2ff136(0x0,_0x27c4c3[_0x5744a4(0xff)]),_0x2ff136(0x1,_0x164435[_0x5744a4(0x117)])],_0x476b5d);var _0x246b3e=Object[_0x5744a4(0x113)],_0x2844f1=Object[_0x5744a4(0x114)],_0x4dc81d=(_0x22d372,_0x2fb52a,_0x4fe0b5)=>_0x2fb52a in _0x22d372?_0x246b3e(_0x22d372,_0x2fb52a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fe0b5}):_0x22d372[_0x2fb52a]=_0x4fe0b5,_0x1c8f3e=(_0xeb9d99,_0x3b6169,_0x48dcda,_0x3b1d29)=>{const _0x15f233=_0x5744a4;for(var _0x3a49a0=_0x3b1d29>0x1?void 0x0:_0x3b1d29?_0x2844f1(_0x3b6169,_0x48dcda):_0x3b6169,_0x1d7008=_0xeb9d99[_0x15f233(0x12c)]-0x1,_0x41a8e8;_0x1d7008>=0x0;_0x1d7008--)(_0x41a8e8=_0xeb9d99[_0x1d7008])&&(_0x3a49a0=_0x41a8e8(_0x3a49a0)||_0x3a49a0);return _0x3a49a0;},_0x36b84d=(_0x555fda,_0x4cd2d2)=>(_0x42d2a7,_0x47de96)=>_0x4cd2d2(_0x42d2a7,_0x47de96,_0x555fda),_0x3a5bc3=(_0x185610,_0x466239,_0x41207f)=>_0x4dc81d(_0x185610,typeof _0x466239!=_0x5744a4(0x10b)?_0x466239+'':_0x466239,_0x41207f);const _0xcff236=_0x5744a4(0x11f);_0x172363[_0x5744a4(0x126)]=class extends _0x27c4c3[_0x5744a4(0xfb)]{constructor(_0x5de8f7=_0x29b738,_0x4be800,_0x5e9718){const _0x1e22ab=_0x5744a4;super(),this[_0x1e22ab(0x129)]=_0x5de8f7,this[_0x1e22ab(0xf4)]=_0x4be800,this[_0x1e22ab(0x11a)]=_0x5e9718;const {menu:_0x53832c,..._0x4649b8}=_0x27c4c3[_0x1e22ab(0x120)]({},_0x29b738,this['_config']);_0x53832c&&this[_0x1e22ab(0x11a)][_0x1e22ab(0x115)](_0x1e22ab(0x12b),_0x53832c,{'merge':!0x0}),this[_0x1e22ab(0x11a)][_0x1e22ab(0x115)](_0xa19558,_0x4649b8);}[_0x5744a4(0x11c)](){const _0x58b2b8=_0x5744a4;[[_0x476b5d]][_0x58b2b8(0x11d)](_0x5918ae=>this['_injector'][_0x58b2b8(0xf5)](_0x5918ae));}[_0x5744a4(0x122)](){const _0x5a84c6=_0x5744a4;this[_0x5a84c6(0xf4)][_0x5a84c6(0xea)](_0x476b5d);}},_0x3a5bc3(_0x172363[_0x5744a4(0x126)],_0x5744a4(0xf9),_0xcff236),_0x3a5bc3(_0x172363[_0x5744a4(0x126)],_0x5744a4(0x100),_0x27c4c3['UniverInstanceType'][_0x5744a4(0x128)]),_0x172363[_0x5744a4(0x126)]=_0x1c8f3e([_0x27c4c3['DependentOn'](_0x3f6be3['UniverExchangeClientPlugin']),_0x36b84d(0x1,_0x27c4c3[_0x5744a4(0xe0)](_0x27c4c3['Injector'])),_0x36b84d(0x2,_0x27c4c3[_0x5744a4(0x12a)])],_0x172363[_0x5744a4(0x126)]),_0x172363[_0x5744a4(0x10e)]=_0x2fdf09,_0x172363[_0x5744a4(0x111)]=_0x3e29cb,Object[_0x5744a4(0x113)](_0x172363,Symbol[_0x5744a4(0xf3)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5-nightly.202508290716",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/core": "0.10.
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets-ui": "0.10.
|
|
49
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs/core": "0.10.5-nightly.202508290716",
|
|
46
|
+
"@univerjs/sheets": "0.10.5-nightly.202508290716",
|
|
47
|
+
"@univerjs-pro/exchange-client": "0.10.5-nightly.202508290716",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.5-nightly.202508290716",
|
|
49
|
+
"@univerjs/ui": "0.10.5-nightly.202508290716"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
|
-
"vite": "^7.
|
|
53
|
+
"vite": "^7.1.3",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.5"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|
|
59
59
|
"test:watch": "vitest",
|
|
60
60
|
"coverage": "vitest run --coverage",
|
|
61
|
-
"
|
|
61
|
+
"typecheck": "tsc --noEmit",
|
|
62
62
|
"build": "univer-cli build"
|
|
63
63
|
},
|
|
64
64
|
"module": "./lib/es/index.js"
|