@univerjs-pro/sheets-exchange-client 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251202-45172c6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x47546d=_0x3a6d;function _0x58e7(){const _0x424ab9=['SUBITEMS','BUTTON','_injector','915340TnNrDN','31828BMwwef','exchange.upload','type','_initMenus','merge','_initCommands','add','ImportXLSXOperation','MenuItemType','UniverInstanceType','get','2055160gJIFpr','UniverExchangeClientPlugin','316344HdeNVv','unit','setConfig','_commandService','Plugin','WorkbookExportPermission','toStringTag','Module','_configService','8ZhDhDJ','getOwnPropertyDescriptor','pluginName','Injector','symbol','exchange-client.operation.export-xlsx','UniverSheetsExchangeClientPlugin','registerCommand','IMenuManagerService','4108936qFnqxT','exportXLSXByUnitId','582kajpIB','exportXLSXBySnapshot','UNIVER_SHEET','exchange.download','importXLSXToUnitId','mergeMenu','OTHERS','CommandType','ICommandService','DependentOn','_menuManagerService','OPERATION','getCurrentRangeDisable$','onStarting','sheets-exchange-client.operation.exchange','1057WNEPWr','1248355iuRtLJ','forEach','Inject','length','exchange.file','defineProperty','getMenuHiddenObservable','ExportXLSXOperation','menu','9mhnump','IExchangeOperateService','FolderIcon'];_0x58e7=function(){return _0x424ab9;};return _0x58e7();}(function(_0x57a12e,_0x3aedc1){const _0xeb2fb=_0x3a6d,_0x94003a=_0x57a12e();while(!![]){try{const _0x3f96b5=parseInt(_0xeb2fb(0xae))/0x1*(parseInt(_0xeb2fb(0xc4))/0x2)+parseInt(_0xeb2fb(0xbb))/0x3+-parseInt(_0xeb2fb(0xb9))/0x4+parseInt(_0xeb2fb(0x9e))/0x5+-parseInt(_0xeb2fb(0x8e))/0x6*(parseInt(_0xeb2fb(0x9d))/0x7)+parseInt(_0xeb2fb(0x8c))/0x8+parseInt(_0xeb2fb(0xa7))/0x9*(-parseInt(_0xeb2fb(0xad))/0xa);if(_0x3f96b5===_0x3aedc1)break;else _0x94003a['push'](_0x94003a['shift']());}catch(_0x341ca8){_0x94003a['push'](_0x94003a['shift']());}}}(_0x58e7,0x5bd0d));function _0x3a6d(_0x1b43c7,_0x4a389e){const _0x58e7d2=_0x58e7();return _0x3a6d=function(_0x3a6d38,_0x50a84b){_0x3a6d38=_0x3a6d38-0x85;let _0x2a60ea=_0x58e7d2[_0x3a6d38];return _0x2a60ea;},_0x3a6d(_0x1b43c7,_0x4a389e);}Object[_0x47546d(0xa3)](exports,Symbol[_0x47546d(0xc1)],{'value':_0x47546d(0xc2)});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':'exchange-client.operation.import-xlsx','type':i[_0x47546d(0x95)][_0x47546d(0x99)],'handler':async _0x4e7655=>{const _0x316291=_0x47546d,_0x4b18e4=_0x4e7655['get'](g[_0x316291(0xa8)]);return new URLSearchParams(location['search'])['get'](_0x316291(0xbc))?_0x4b18e4[_0x316291(0x92)]():_0x4b18e4['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x47546d(0x88),'type':i[_0x47546d(0x95)][_0x47546d(0x99)],'handler':async _0x1b042e=>{const _0x54e7c4=_0x47546d,_0x36db11=_0x1b042e[_0x54e7c4(0xb8)](g[_0x54e7c4(0xa8)]);return new URLSearchParams(location['search'])[_0x54e7c4(0xb8)](_0x54e7c4(0xbc))?_0x36db11[_0x54e7c4(0x8d)]():_0x36db11[_0x54e7c4(0x8f)](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x47546d(0x9c);function x(_0xbdb69d){const _0x2b8363=_0x47546d;return{'id':S,'type':c[_0x2b8363(0xb6)][_0x2b8363(0xaa)],'icon':'DirectExportIcon','tooltip':_0x2b8363(0xa2),'hidden$':c[_0x2b8363(0xa4)](_0xbdb69d,i[_0x2b8363(0xb7)][_0x2b8363(0x90)]),'disabled$':I[_0x2b8363(0x9a)](_0xbdb69d,{'workbookTypes':[_[_0x2b8363(0xc0)]]})};}function P(){const _0x49e1c3=_0x47546d;return{'id':l['id'],'type':c['MenuItemType'][_0x49e1c3(0xab)],'title':_0x49e1c3(0xaf),'icon':_0x49e1c3(0xa9)};}function C(){const _0x544219=_0x47546d;return{'id':p['id'],'type':c['MenuItemType'][_0x544219(0xab)],'title':_0x544219(0x91),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup'][_0x47546d(0x94)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0x3f4aac,_0x2a0462,_0x1ac5d4,_0x44b341)=>{for(var _0x15c8c6=_0x44b341>0x1?void 0x0:_0x44b341?T(_0x2a0462,_0x1ac5d4):_0x2a0462,_0x953c90=_0x3f4aac['length']-0x1,_0x2edba1;_0x953c90>=0x0;_0x953c90--)(_0x2edba1=_0x3f4aac[_0x953c90])&&(_0x15c8c6=_0x2edba1(_0x15c8c6)||_0x15c8c6);return _0x15c8c6;},m=(_0x9390fc,_0x415ef1)=>(_0x369e5a,_0x51b338)=>_0x415ef1(_0x369e5a,_0x51b338,_0x9390fc);let u=class extends i['Disposable']{constructor(_0x2c5889,_0x1ec23d){const _0x2e76be=_0x47546d;super(),this['_commandService']=_0x2c5889,this[_0x2e76be(0x98)]=_0x1ec23d,this[_0x2e76be(0xb3)](),this[_0x2e76be(0xb1)]();}[_0x47546d(0xb3)](){const _0x513524=_0x47546d;[l,p][_0x513524(0x9f)](_0x420a41=>{const _0x301178=_0x513524;this['disposeWithMe'](this[_0x301178(0xbe)][_0x301178(0x8a)](_0x420a41));});}[_0x47546d(0xb1)](){const _0x1bb0ff=_0x47546d;this[_0x1bb0ff(0x98)][_0x1bb0ff(0x93)](f);}};u=y([m(0x0,i[_0x47546d(0x96)]),m(0x1,c[_0x47546d(0x8b)])],u);var O=Object['defineProperty'],U=Object[_0x47546d(0xc5)],X=(_0x1c9548,_0x164b9a,_0x43ef33)=>_0x164b9a in _0x1c9548?O(_0x1c9548,_0x164b9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43ef33}):_0x1c9548[_0x164b9a]=_0x43ef33,N=(_0x24614c,_0x4740b6,_0x25500a,_0x4ea307)=>{const _0x1beab1=_0x47546d;for(var _0x2358c4=_0x4ea307>0x1?void 0x0:_0x4ea307?U(_0x4740b6,_0x25500a):_0x4740b6,_0x2987d0=_0x24614c[_0x1beab1(0xa1)]-0x1,_0xbabba4;_0x2987d0>=0x0;_0x2987d0--)(_0xbabba4=_0x24614c[_0x2987d0])&&(_0x2358c4=_0xbabba4(_0x2358c4)||_0x2358c4);return _0x2358c4;},d=(_0x4700d0,_0x574726)=>(_0x572286,_0x2da16b)=>_0x574726(_0x572286,_0x2da16b,_0x4700d0),E=(_0x183285,_0x1e33ce,_0x4d91d2)=>X(_0x183285,typeof _0x1e33ce!=_0x47546d(0x87)?_0x1e33ce+'':_0x1e33ce,_0x4d91d2);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x47546d(0x89)]=class extends i[_0x47546d(0xbf)]{constructor(_0x2d6d5e=h,_0x408481,_0x1a2942){const _0x5c7fd4=_0x47546d;super(),this['_config']=_0x2d6d5e,this[_0x5c7fd4(0xac)]=_0x408481,this[_0x5c7fd4(0xc3)]=_0x1a2942;const {menu:_0x7042c6,..._0x1afdb3}=i[_0x5c7fd4(0xb2)]({},h,this['_config']);_0x7042c6&&this[_0x5c7fd4(0xc3)][_0x5c7fd4(0xbd)](_0x5c7fd4(0xa6),_0x7042c6,{'merge':!0x0}),this[_0x5c7fd4(0xc3)][_0x5c7fd4(0xbd)](v,_0x1afdb3);}[_0x47546d(0x9b)](){const _0x2f396a=_0x47546d;[[u]]['forEach'](_0xa5c292=>this[_0x2f396a(0xac)][_0x2f396a(0xb4)](_0xa5c292));}['onReady'](){const _0x6dc19e=_0x47546d;this[_0x6dc19e(0xac)][_0x6dc19e(0xb8)](u);}},E(exports[_0x47546d(0x89)],_0x47546d(0x85),L),E(exports[_0x47546d(0x89)],_0x47546d(0xb0),i[_0x47546d(0xb7)][_0x47546d(0x90)]),exports[_0x47546d(0x89)]=N([i[_0x47546d(0x97)](g[_0x47546d(0xba)]),d(0x1,i[_0x47546d(0xa0)](i[_0x47546d(0x86)])),d(0x2,i['IConfigService'])],exports[_0x47546d(0x89)]),exports[_0x47546d(0xa5)]=p,exports[_0x47546d(0xb5)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x42844a=_0x13d6;(function(_0x177aa7,_0x5a242e){const _0x55bcfb=_0x13d6,_0x5c4852=_0x177aa7();while(!![]){try{const _0x37bf25=parseInt(_0x55bcfb(0x122))/0x1*(-parseInt(_0x55bcfb(0x10d))/0x2)+-parseInt(_0x55bcfb(0x128))/0x3+-parseInt(_0x55bcfb(0x111))/0x4*(-parseInt(_0x55bcfb(0x138))/0x5)+parseInt(_0x55bcfb(0x11f))/0x6+-parseInt(_0x55bcfb(0x10a))/0x7+-parseInt(_0x55bcfb(0x12a))/0x8+-parseInt(_0x55bcfb(0x10c))/0x9*(-parseInt(_0x55bcfb(0x12d))/0xa);if(_0x37bf25===_0x5a242e)break;else _0x5c4852['push'](_0x5c4852['shift']());}catch(_0x492b12){_0x5c4852['push'](_0x5c4852['shift']());}}}(_0xc024,0xb7a85));import{IExchangeOperateService as _0x211354,UniverExchangeClientPlugin as _0x258a62}from'@univerjs-pro/exchange-client';import{CommandType as _0x4e00e3,UniverInstanceType as _0x276017,Disposable as _0xb69218,ICommandService as _0x5655b8,DependentOn as _0x2be2e1,Inject as _0x1f4761,Injector as _0x546e5f,IConfigService as _0x35b37b,Plugin as _0x1ec136,merge as _0x2044dd}from'@univerjs/core';import{MenuItemType as _0x536ed1,getMenuHiddenObservable as _0xa1199f,RibbonStartGroup as _0x12c1f3,IMenuManagerService as _0x34d264}from'@univerjs/ui';import{WorkbookExportPermission as _0x3f7494}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x590d25}from'@univerjs/sheets-ui';const p={'id':_0x42844a(0x12c),'type':_0x4e00e3[_0x42844a(0x119)],'handler':async _0x40f041=>{const _0x116226=_0x42844a,_0x2fb80b=_0x40f041['get'](_0x211354);return new URLSearchParams(location[_0x116226(0x133)])['get'](_0x116226(0x135))?_0x2fb80b[_0x116226(0x109)]():_0x2fb80b[_0x116226(0x113)](),!0x0;}},u={'id':_0x42844a(0x115),'type':_0x4e00e3['OPERATION'],'handler':async _0x2aea1b=>{const _0x3cd407=_0x42844a,_0x53dd2c=_0x2aea1b[_0x3cd407(0x118)](_0x211354);return new URLSearchParams(location[_0x3cd407(0x133)])[_0x3cd407(0x118)](_0x3cd407(0x135))?_0x53dd2c[_0x3cd407(0x114)]():_0x53dd2c[_0x3cd407(0x124)](),!0x0;}},H=_0x42844a(0x112),l={},S='sheets-exchange-client.operation.exchange';function R(_0x25c586){const _0x32ff12=_0x42844a;return{'id':S,'type':_0x536ed1[_0x32ff12(0x131)],'icon':_0x32ff12(0x110),'tooltip':'exchange.file','hidden$':_0xa1199f(_0x25c586,_0x276017[_0x32ff12(0x136)]),'disabled$':_0x590d25(_0x25c586,{'workbookTypes':[_0x3f7494]})};}function w(){const _0x19f264=_0x42844a;return{'id':p['id'],'type':_0x536ed1[_0x19f264(0x10b)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x2af0a0=_0x42844a;return{'id':u['id'],'type':_0x536ed1[_0x2af0a0(0x10b)],'title':_0x2af0a0(0x121),'icon':_0x2af0a0(0x11a)};}const F={[_0x12c1f3[_0x42844a(0x10e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x42844a(0x11d)],A=(_0x4e5dbb,_0x3164f8,_0x471972,_0x22c8fd)=>{const _0x4b9e10=_0x42844a;for(var _0x52bec9=_0x22c8fd>0x1?void 0x0:_0x22c8fd?G(_0x3164f8,_0x471972):_0x3164f8,_0x2e8e0f=_0x4e5dbb[_0x4b9e10(0x10f)]-0x1,_0x4c140f;_0x2e8e0f>=0x0;_0x2e8e0f--)(_0x4c140f=_0x4e5dbb[_0x2e8e0f])&&(_0x52bec9=_0x4c140f(_0x52bec9)||_0x52bec9);return _0x52bec9;},d=(_0x1a6806,_0x365aaf)=>(_0x196e40,_0x1c4d72)=>_0x365aaf(_0x196e40,_0x1c4d72,_0x1a6806);function _0x13d6(_0x21b94a,_0x307e48){const _0xc0244e=_0xc024();return _0x13d6=function(_0x13d68c,_0x34e298){_0x13d68c=_0x13d68c-0x109;let _0x2a253a=_0xc0244e[_0x13d68c];return _0x2a253a;},_0x13d6(_0x21b94a,_0x307e48);}let c=class extends _0xb69218{constructor(_0x1c7b11,_0x62ef){const _0x54044e=_0x42844a;super(),this[_0x54044e(0x117)]=_0x1c7b11,this[_0x54044e(0x123)]=_0x62ef,this[_0x54044e(0x132)](),this[_0x54044e(0x116)]();}[_0x42844a(0x132)](){[p,u]['forEach'](_0x2d50d0=>{const _0x17408c=_0x13d6;this[_0x17408c(0x129)](this[_0x17408c(0x117)][_0x17408c(0x125)](_0x2d50d0));});}[_0x42844a(0x116)](){const _0x25ccee=_0x42844a;this['_menuManagerService'][_0x25ccee(0x11b)](F);}};c=A([d(0x0,_0x5655b8),d(0x1,_0x34d264)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0xf83f17,_0x1dde92,_0xc577ea)=>_0x1dde92 in _0xf83f17?j(_0xf83f17,_0x1dde92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc577ea}):_0xf83f17[_0x1dde92]=_0xc577ea,V=(_0x399baf,_0xeee2c0,_0x195ad3,_0x501fab)=>{const _0x30e838=_0x42844a;for(var _0x47001c=_0x501fab>0x1?void 0x0:_0x501fab?B(_0xeee2c0,_0x195ad3):_0xeee2c0,_0xf75a99=_0x399baf[_0x30e838(0x10f)]-0x1,_0x44b0c7;_0xf75a99>=0x0;_0xf75a99--)(_0x44b0c7=_0x399baf[_0xf75a99])&&(_0x47001c=_0x44b0c7(_0x47001c)||_0x47001c);return _0x47001c;},_=(_0x3ef819,_0x10e9dd)=>(_0xc1d30e,_0x48c1c0)=>_0x10e9dd(_0xc1d30e,_0x48c1c0,_0x3ef819),I=(_0x21a556,_0x2fe2eb,_0x402317)=>$(_0x21a556,typeof _0x2fe2eb!=_0x42844a(0x127)?_0x2fe2eb+'':_0x2fe2eb,_0x402317);const W=_0x42844a(0x12f);let s=class extends _0x1ec136{constructor(_0x1de6df=l,_0x345d0d,_0x33e474){const _0x4dfe60=_0x42844a;super(),this[_0x4dfe60(0x137)]=_0x1de6df,this[_0x4dfe60(0x126)]=_0x345d0d,this[_0x4dfe60(0x12b)]=_0x33e474;const {menu:_0x1344cb,..._0x1c5ee6}=_0x2044dd({},l,this[_0x4dfe60(0x137)]);_0x1344cb&&this['_configService'][_0x4dfe60(0x134)](_0x4dfe60(0x130),_0x1344cb,{'merge':!0x0}),this[_0x4dfe60(0x12b)][_0x4dfe60(0x134)](H,_0x1c5ee6);}['onStarting'](){const _0x322693=_0x42844a;[[c]][_0x322693(0x11c)](_0x2533c8=>this[_0x322693(0x126)][_0x322693(0x120)](_0x2533c8));}[_0x42844a(0x11e)](){const _0x34eb64=_0x42844a;this['_injector'][_0x34eb64(0x118)](c);}};function _0xc024(){const _0x628e91=['SHEET_EXCHANGE_CLIENT_PLUGIN','menu','SUBITEMS','_initCommands','search','setConfig','unit','UNIVER_SHEET','_config','35PUwsBp','importXLSXToUnitId','9073603LNXdsz','BUTTON','207zSnRsP','4172IurXqO','OTHERS','length','DirectExportIcon','300644dDgeSE','sheets-exchange-client.config','importXLSXToSnapshot','exportXLSXByUnitId','exchange-client.operation.export-xlsx','_initMenus','_commandService','get','OPERATION','ExportIcon','mergeMenu','forEach','getOwnPropertyDescriptor','onReady','811260sQnepA','add','exchange.download','407mVxyFL','_menuManagerService','exportXLSXBySnapshot','registerCommand','_injector','symbol','74019aHbTWw','disposeWithMe','9457992oputLN','_configService','exchange-client.operation.import-xlsx','1496990dsGDhu','type'];_0xc024=function(){return _0x628e91;};return _0xc024();}I(s,'pluginName',W),I(s,_0x42844a(0x12e),_0x276017[_0x42844a(0x136)]),s=V([_0x2be2e1(_0x258a62),_(0x1,_0x1f4761(_0x546e5f)),_(0x2,_0x35b37b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x42844a=_0x13d6;(function(_0x177aa7,_0x5a242e){const _0x55bcfb=_0x13d6,_0x5c4852=_0x177aa7();while(!![]){try{const _0x37bf25=parseInt(_0x55bcfb(0x122))/0x1*(-parseInt(_0x55bcfb(0x10d))/0x2)+-parseInt(_0x55bcfb(0x128))/0x3+-parseInt(_0x55bcfb(0x111))/0x4*(-parseInt(_0x55bcfb(0x138))/0x5)+parseInt(_0x55bcfb(0x11f))/0x6+-parseInt(_0x55bcfb(0x10a))/0x7+-parseInt(_0x55bcfb(0x12a))/0x8+-parseInt(_0x55bcfb(0x10c))/0x9*(-parseInt(_0x55bcfb(0x12d))/0xa);if(_0x37bf25===_0x5a242e)break;else _0x5c4852['push'](_0x5c4852['shift']());}catch(_0x492b12){_0x5c4852['push'](_0x5c4852['shift']());}}}(_0xc024,0xb7a85));import{IExchangeOperateService as _0x211354,UniverExchangeClientPlugin as _0x258a62}from'@univerjs-pro/exchange-client';import{CommandType as _0x4e00e3,UniverInstanceType as _0x276017,Disposable as _0xb69218,ICommandService as _0x5655b8,DependentOn as _0x2be2e1,Inject as _0x1f4761,Injector as _0x546e5f,IConfigService as _0x35b37b,Plugin as _0x1ec136,merge as _0x2044dd}from'@univerjs/core';import{MenuItemType as _0x536ed1,getMenuHiddenObservable as _0xa1199f,RibbonStartGroup as _0x12c1f3,IMenuManagerService as _0x34d264}from'@univerjs/ui';import{WorkbookExportPermission as _0x3f7494}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x590d25}from'@univerjs/sheets-ui';const p={'id':_0x42844a(0x12c),'type':_0x4e00e3[_0x42844a(0x119)],'handler':async _0x40f041=>{const _0x116226=_0x42844a,_0x2fb80b=_0x40f041['get'](_0x211354);return new URLSearchParams(location[_0x116226(0x133)])['get'](_0x116226(0x135))?_0x2fb80b[_0x116226(0x109)]():_0x2fb80b[_0x116226(0x113)](),!0x0;}},u={'id':_0x42844a(0x115),'type':_0x4e00e3['OPERATION'],'handler':async _0x2aea1b=>{const _0x3cd407=_0x42844a,_0x53dd2c=_0x2aea1b[_0x3cd407(0x118)](_0x211354);return new URLSearchParams(location[_0x3cd407(0x133)])[_0x3cd407(0x118)](_0x3cd407(0x135))?_0x53dd2c[_0x3cd407(0x114)]():_0x53dd2c[_0x3cd407(0x124)](),!0x0;}},H=_0x42844a(0x112),l={},S='sheets-exchange-client.operation.exchange';function R(_0x25c586){const _0x32ff12=_0x42844a;return{'id':S,'type':_0x536ed1[_0x32ff12(0x131)],'icon':_0x32ff12(0x110),'tooltip':'exchange.file','hidden$':_0xa1199f(_0x25c586,_0x276017[_0x32ff12(0x136)]),'disabled$':_0x590d25(_0x25c586,{'workbookTypes':[_0x3f7494]})};}function w(){const _0x19f264=_0x42844a;return{'id':p['id'],'type':_0x536ed1[_0x19f264(0x10b)],'title':'exchange.upload','icon':'FolderIcon'};}function D(){const _0x2af0a0=_0x42844a;return{'id':u['id'],'type':_0x536ed1[_0x2af0a0(0x10b)],'title':_0x2af0a0(0x121),'icon':_0x2af0a0(0x11a)};}const F={[_0x12c1f3[_0x42844a(0x10e)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x42844a(0x11d)],A=(_0x4e5dbb,_0x3164f8,_0x471972,_0x22c8fd)=>{const _0x4b9e10=_0x42844a;for(var _0x52bec9=_0x22c8fd>0x1?void 0x0:_0x22c8fd?G(_0x3164f8,_0x471972):_0x3164f8,_0x2e8e0f=_0x4e5dbb[_0x4b9e10(0x10f)]-0x1,_0x4c140f;_0x2e8e0f>=0x0;_0x2e8e0f--)(_0x4c140f=_0x4e5dbb[_0x2e8e0f])&&(_0x52bec9=_0x4c140f(_0x52bec9)||_0x52bec9);return _0x52bec9;},d=(_0x1a6806,_0x365aaf)=>(_0x196e40,_0x1c4d72)=>_0x365aaf(_0x196e40,_0x1c4d72,_0x1a6806);function _0x13d6(_0x21b94a,_0x307e48){const _0xc0244e=_0xc024();return _0x13d6=function(_0x13d68c,_0x34e298){_0x13d68c=_0x13d68c-0x109;let _0x2a253a=_0xc0244e[_0x13d68c];return _0x2a253a;},_0x13d6(_0x21b94a,_0x307e48);}let c=class extends _0xb69218{constructor(_0x1c7b11,_0x62ef){const _0x54044e=_0x42844a;super(),this[_0x54044e(0x117)]=_0x1c7b11,this[_0x54044e(0x123)]=_0x62ef,this[_0x54044e(0x132)](),this[_0x54044e(0x116)]();}[_0x42844a(0x132)](){[p,u]['forEach'](_0x2d50d0=>{const _0x17408c=_0x13d6;this[_0x17408c(0x129)](this[_0x17408c(0x117)][_0x17408c(0x125)](_0x2d50d0));});}[_0x42844a(0x116)](){const _0x25ccee=_0x42844a;this['_menuManagerService'][_0x25ccee(0x11b)](F);}};c=A([d(0x0,_0x5655b8),d(0x1,_0x34d264)],c);var j=Object['defineProperty'],B=Object['getOwnPropertyDescriptor'],$=(_0xf83f17,_0x1dde92,_0xc577ea)=>_0x1dde92 in _0xf83f17?j(_0xf83f17,_0x1dde92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc577ea}):_0xf83f17[_0x1dde92]=_0xc577ea,V=(_0x399baf,_0xeee2c0,_0x195ad3,_0x501fab)=>{const _0x30e838=_0x42844a;for(var _0x47001c=_0x501fab>0x1?void 0x0:_0x501fab?B(_0xeee2c0,_0x195ad3):_0xeee2c0,_0xf75a99=_0x399baf[_0x30e838(0x10f)]-0x1,_0x44b0c7;_0xf75a99>=0x0;_0xf75a99--)(_0x44b0c7=_0x399baf[_0xf75a99])&&(_0x47001c=_0x44b0c7(_0x47001c)||_0x47001c);return _0x47001c;},_=(_0x3ef819,_0x10e9dd)=>(_0xc1d30e,_0x48c1c0)=>_0x10e9dd(_0xc1d30e,_0x48c1c0,_0x3ef819),I=(_0x21a556,_0x2fe2eb,_0x402317)=>$(_0x21a556,typeof _0x2fe2eb!=_0x42844a(0x127)?_0x2fe2eb+'':_0x2fe2eb,_0x402317);const W=_0x42844a(0x12f);let s=class extends _0x1ec136{constructor(_0x1de6df=l,_0x345d0d,_0x33e474){const _0x4dfe60=_0x42844a;super(),this[_0x4dfe60(0x137)]=_0x1de6df,this[_0x4dfe60(0x126)]=_0x345d0d,this[_0x4dfe60(0x12b)]=_0x33e474;const {menu:_0x1344cb,..._0x1c5ee6}=_0x2044dd({},l,this[_0x4dfe60(0x137)]);_0x1344cb&&this['_configService'][_0x4dfe60(0x134)](_0x4dfe60(0x130),_0x1344cb,{'merge':!0x0}),this[_0x4dfe60(0x12b)][_0x4dfe60(0x134)](H,_0x1c5ee6);}['onStarting'](){const _0x322693=_0x42844a;[[c]][_0x322693(0x11c)](_0x2533c8=>this[_0x322693(0x126)][_0x322693(0x120)](_0x2533c8));}[_0x42844a(0x11e)](){const _0x34eb64=_0x42844a;this['_injector'][_0x34eb64(0x118)](c);}};function _0xc024(){const _0x628e91=['SHEET_EXCHANGE_CLIENT_PLUGIN','menu','SUBITEMS','_initCommands','search','setConfig','unit','UNIVER_SHEET','_config','35PUwsBp','importXLSXToUnitId','9073603LNXdsz','BUTTON','207zSnRsP','4172IurXqO','OTHERS','length','DirectExportIcon','300644dDgeSE','sheets-exchange-client.config','importXLSXToSnapshot','exportXLSXByUnitId','exchange-client.operation.export-xlsx','_initMenus','_commandService','get','OPERATION','ExportIcon','mergeMenu','forEach','getOwnPropertyDescriptor','onReady','811260sQnepA','add','exchange.download','407mVxyFL','_menuManagerService','exportXLSXBySnapshot','registerCommand','_injector','symbol','74019aHbTWw','disposeWithMe','9457992oputLN','_configService','exchange-client.operation.import-xlsx','1496990dsGDhu','type'];_0xc024=function(){return _0x628e91;};return _0xc024();}I(s,'pluginName',W),I(s,_0x42844a(0x12e),_0x276017[_0x42844a(0x136)]),s=V([_0x2be2e1(_0x258a62),_(0x1,_0x1f4761(_0x546e5f)),_(0x2,_0x35b37b)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1a00(_0x35f861,_0x50db1c){const _0x1e6fdb=_0x1e6f();return _0x1a00=function(_0x1a00cb,_0x1ea19f){_0x1a00cb=_0x1a00cb-0x1a8;let _0xfd7019=_0x1e6fdb[_0x1a00cb];return _0xfd7019;},_0x1a00(_0x35f861,_0x50db1c);}(function(_0x400648,_0x521fe3){const _0x5e0037=_0x1a00,_0x916ece=_0x400648();while(!![]){try{const _0x1b3127=parseInt(_0x5e0037(0x1df))/0x1+-parseInt(_0x5e0037(0x1e7))/0x2*(parseInt(_0x5e0037(0x1db))/0x3)+-parseInt(_0x5e0037(0x1f1))/0x4*(parseInt(_0x5e0037(0x1af))/0x5)+parseInt(_0x5e0037(0x1d3))/0x6+-parseInt(_0x5e0037(0x1b2))/0x7+-parseInt(_0x5e0037(0x1c7))/0x8*(parseInt(_0x5e0037(0x1b1))/0x9)+parseInt(_0x5e0037(0x1d6))/0xa*(parseInt(_0x5e0037(0x1c6))/0xb);if(_0x1b3127===_0x521fe3)break;else _0x916ece['push'](_0x916ece['shift']());}catch(_0x27178e){_0x916ece['push'](_0x916ece['shift']());}}}(_0x1e6f,0x6ce84),function(_0x5cb195,_0x2b55e5){const _0x15845a=_0x1a00;typeof exports==_0x15845a(0x1ec)&&typeof module<'u'?_0x2b55e5(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x15845a(0x1e3)&&define[_0x15845a(0x1aa)]?define([_0x15845a(0x1ef),'@univerjs-pro/exchange-client','@univerjs/core','@univerjs/ui',_0x15845a(0x1c2),_0x15845a(0x1c3)],_0x2b55e5):(_0x5cb195=typeof globalThis<'u'?globalThis:_0x5cb195||self,_0x2b55e5(_0x5cb195[_0x15845a(0x1ad)]={},_0x5cb195[_0x15845a(0x1f5)],_0x5cb195['UniverCore'],_0x5cb195[_0x15845a(0x1e0)],_0x5cb195[_0x15845a(0x1b0)],_0x5cb195[_0x15845a(0x1d1)]));}(this,function(_0x29c301,_0x5d7f11,_0x476d6b,_0x235da8,_0xbcd8d9,_0x5a073b){'use strict';const _0xec36ab=_0x1a00;const _0x43ac41={'id':_0xec36ab(0x1c5),'type':_0x476d6b[_0xec36ab(0x1d2)]['OPERATION'],'handler':async _0x2e4fd9=>{const _0x2c0a0b=_0xec36ab,_0x5f5e0b=_0x2e4fd9[_0x2c0a0b(0x1d5)](_0x5d7f11[_0x2c0a0b(0x1ba)]);return new URLSearchParams(location[_0x2c0a0b(0x1f6)])[_0x2c0a0b(0x1d5)](_0x2c0a0b(0x1b8))?_0x5f5e0b[_0x2c0a0b(0x1e6)]():_0x5f5e0b['importXLSXToSnapshot'](),!0x0;}},_0x553d44={'id':_0xec36ab(0x1cb),'type':_0x476d6b['CommandType'][_0xec36ab(0x1be)],'handler':async _0x2c302b=>{const _0xeff2d=_0xec36ab,_0xdac9e4=_0x2c302b[_0xeff2d(0x1d5)](_0x5d7f11[_0xeff2d(0x1ba)]);return new URLSearchParams(location[_0xeff2d(0x1f6)])[_0xeff2d(0x1d5)](_0xeff2d(0x1b8))?_0xdac9e4[_0xeff2d(0x1bb)]():_0xdac9e4[_0xeff2d(0x1ac)](),!0x0;}},_0x3c3bde=_0xec36ab(0x1ca),_0x53b716={},_0x22b455=_0xec36ab(0x1e2);function _0x4863b1(_0x18b3fd){const _0xae99c3=_0xec36ab;return{'id':_0x22b455,'type':_0x235da8[_0xae99c3(0x1da)][_0xae99c3(0x1d0)],'icon':_0xae99c3(0x1a9),'tooltip':'exchange.file','hidden$':_0x235da8[_0xae99c3(0x1cf)](_0x18b3fd,_0x476d6b[_0xae99c3(0x1ed)][_0xae99c3(0x1eb)]),'disabled$':_0x5a073b['getCurrentRangeDisable$'](_0x18b3fd,{'workbookTypes':[_0xbcd8d9[_0xae99c3(0x1b6)]]})};}function _0x3e4e56(){const _0x3e2625=_0xec36ab;return{'id':_0x43ac41['id'],'type':_0x235da8['MenuItemType'][_0x3e2625(0x1b7)],'title':'exchange.upload','icon':'FolderIcon'};}function _0x2b531b(){const _0x4af0f7=_0xec36ab;return{'id':_0x553d44['id'],'type':_0x235da8[_0x4af0f7(0x1da)][_0x4af0f7(0x1b7)],'title':_0x4af0f7(0x1c1),'icon':_0x4af0f7(0x1b9)};}const _0x1be456={[_0x235da8[_0xec36ab(0x1e9)]['OTHERS']]:{[_0x22b455]:{'order':0.3,'menuItemFactory':_0x4863b1,[_0x43ac41['id']]:{'order':0x0,'menuItemFactory':_0x3e4e56},[_0x553d44['id']]:{'order':0x1,'menuItemFactory':_0x2b531b}}}};var _0x1fd5b4=Object[_0xec36ab(0x1f0)],_0x2730f0=(_0x1daf45,_0x17b680,_0x189298,_0x3f4c48)=>{const _0xae2e4a=_0xec36ab;for(var _0x34053e=_0x3f4c48>0x1?void 0x0:_0x3f4c48?_0x1fd5b4(_0x17b680,_0x189298):_0x17b680,_0x21db45=_0x1daf45[_0xae2e4a(0x1ab)]-0x1,_0x1f9abf;_0x21db45>=0x0;_0x21db45--)(_0x1f9abf=_0x1daf45[_0x21db45])&&(_0x34053e=_0x1f9abf(_0x34053e)||_0x34053e);return _0x34053e;},_0x3cf4f6=(_0x260761,_0x19c26e)=>(_0x299c2d,_0x50566f)=>_0x19c26e(_0x299c2d,_0x50566f,_0x260761);let _0x39d126=class extends _0x476d6b[_0xec36ab(0x1cd)]{constructor(_0x3a5368,_0x41622a){const _0x15b0f9=_0xec36ab;super(),this['_commandService']=_0x3a5368,this[_0x15b0f9(0x1ea)]=_0x41622a,this[_0x15b0f9(0x1e1)](),this[_0x15b0f9(0x1d9)]();}[_0xec36ab(0x1e1)](){[_0x43ac41,_0x553d44]['forEach'](_0x1c59b5=>{const _0x25d1fb=_0x1a00;this[_0x25d1fb(0x1c8)](this[_0x25d1fb(0x1b3)][_0x25d1fb(0x1d7)](_0x1c59b5));});}['_initMenus'](){const _0x5b7c40=_0xec36ab;this[_0x5b7c40(0x1ea)][_0x5b7c40(0x1c0)](_0x1be456);}};_0x39d126=_0x2730f0([_0x3cf4f6(0x0,_0x476d6b[_0xec36ab(0x1ee)]),_0x3cf4f6(0x1,_0x235da8[_0xec36ab(0x1a8)])],_0x39d126);var _0x35c134=Object['defineProperty'],_0x485346=Object[_0xec36ab(0x1f0)],_0x398cd0=(_0x11d88c,_0x4c20b7,_0x20f8b3)=>_0x4c20b7 in _0x11d88c?_0x35c134(_0x11d88c,_0x4c20b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f8b3}):_0x11d88c[_0x4c20b7]=_0x20f8b3,_0x3cfbc8=(_0x2328a7,_0x25a2ac,_0x4d6637,_0x4a5db7)=>{for(var _0x4a7b3f=_0x4a5db7>0x1?void 0x0:_0x4a5db7?_0x485346(_0x25a2ac,_0x4d6637):_0x25a2ac,_0x401b52=_0x2328a7['length']-0x1,_0x2e45d2;_0x401b52>=0x0;_0x401b52--)(_0x2e45d2=_0x2328a7[_0x401b52])&&(_0x4a7b3f=_0x2e45d2(_0x4a7b3f)||_0x4a7b3f);return _0x4a7b3f;},_0x151ac4=(_0x3e6fdb,_0x2e17ff)=>(_0x3f7bd0,_0x274890)=>_0x2e17ff(_0x3f7bd0,_0x274890,_0x3e6fdb),_0x35a78c=(_0x21fea6,_0xe36639,_0x363c66)=>_0x398cd0(_0x21fea6,typeof _0xe36639!=_0xec36ab(0x1e4)?_0xe36639+'':_0xe36639,_0x363c66);const _0x5ee714='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x29c301['UniverSheetsExchangeClientPlugin']=class extends _0x476d6b[_0xec36ab(0x1c9)]{constructor(_0x4006e3=_0x53b716,_0x5b2d70,_0x444db3){const _0x5470e9=_0xec36ab;super(),this['_config']=_0x4006e3,this[_0x5470e9(0x1bf)]=_0x5b2d70,this[_0x5470e9(0x1ce)]=_0x444db3;const {menu:_0x4ac744,..._0x3310a9}=_0x476d6b['merge']({},_0x53b716,this[_0x5470e9(0x1d8)]);_0x4ac744&&this[_0x5470e9(0x1ce)][_0x5470e9(0x1d4)](_0x5470e9(0x1ae),_0x4ac744,{'merge':!0x0}),this[_0x5470e9(0x1ce)]['setConfig'](_0x3c3bde,_0x3310a9);}[_0xec36ab(0x1f3)](){const _0x555e13=_0xec36ab;[[_0x39d126]][_0x555e13(0x1b5)](_0x1758a2=>this['_injector'][_0x555e13(0x1f2)](_0x1758a2));}[_0xec36ab(0x1cc)](){const _0x5831ec=_0xec36ab;this['_injector'][_0x5831ec(0x1d5)](_0x39d126);}},_0x35a78c(_0x29c301[_0xec36ab(0x1b4)],'pluginName',_0x5ee714),_0x35a78c(_0x29c301['UniverSheetsExchangeClientPlugin'],_0xec36ab(0x1bc),_0x476d6b['UniverInstanceType']['UNIVER_SHEET']),_0x29c301[_0xec36ab(0x1b4)]=_0x3cfbc8([_0x476d6b['DependentOn'](_0x5d7f11[_0xec36ab(0x1dc)]),_0x151ac4(0x1,_0x476d6b[_0xec36ab(0x1e8)](_0x476d6b[_0xec36ab(0x1e5)])),_0x151ac4(0x2,_0x476d6b['IConfigService'])],_0x29c301[_0xec36ab(0x1b4)]),_0x29c301[_0xec36ab(0x1c4)]=_0x553d44,_0x29c301[_0xec36ab(0x1bd)]=_0x43ac41,Object[_0xec36ab(0x1de)](_0x29c301,Symbol[_0xec36ab(0x1dd)],{'value':_0xec36ab(0x1f4)});}));function _0x1e6f(){const _0x3f503d=['exportXLSXByUnitId','type','ImportXLSXOperation','OPERATION','_injector','mergeMenu','exchange.download','@univerjs/sheets','@univerjs/sheets-ui','ExportXLSXOperation','exchange-client.operation.import-xlsx','3168gohLke','2027504Hkcnsp','disposeWithMe','Plugin','sheets-exchange-client.config','exchange-client.operation.export-xlsx','onReady','Disposable','_configService','getMenuHiddenObservable','SUBITEMS','UniverSheetsUi','CommandType','5009916cHiNvY','setConfig','get','67030CJxnOn','registerCommand','_config','_initMenus','MenuItemType','24IrYAUc','UniverExchangeClientPlugin','toStringTag','defineProperty','117652wfYynP','UniverUi','_initCommands','sheets-exchange-client.operation.exchange','function','symbol','Injector','importXLSXToUnitId','163862jfnqza','Inject','RibbonStartGroup','_menuManagerService','UNIVER_SHEET','object','UniverInstanceType','ICommandService','exports','getOwnPropertyDescriptor','2930524ROpdLp','add','onStarting','Module','UniverProExchangeClient','search','IMenuManagerService','DirectExportIcon','amd','length','exportXLSXBySnapshot','UniverProSheetsExchangeClient','menu','5yUqMPe','UniverSheets','18JQGYjf','3794441nXOSSy','_commandService','UniverSheetsExchangeClientPlugin','forEach','WorkbookExportPermission','BUTTON','unit','ExportIcon','IExchangeOperateService'];_0x1e6f=function(){return _0x3f503d;};return _0x1e6f();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.12.2-experimental.
|
|
3
|
+
"version": "0.12.2-experimental.20251202-45172c6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/sheets": "0.12.2-experimental.
|
|
48
|
-
"@univerjs/ui": "0.12.2-experimental.
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs/core": "0.12.2-experimental.20251202-45172c6",
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.12.2-experimental.20251202-45172c6",
|
|
47
|
+
"@univerjs/sheets": "0.12.2-experimental.20251202-45172c6",
|
|
48
|
+
"@univerjs/sheets-ui": "0.12.2-experimental.20251202-45172c6",
|
|
49
|
+
"@univerjs/ui": "0.12.2-experimental.20251202-45172c6"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|