@univerjs-pro/sheets-exchange-client 0.10.7-nightly.202509130618 → 0.10.7-nightly.202509130640
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 _0x4af754=_0x3407;function _0x3407(_0x5a21cd,_0x489943){const _0x3743f0=_0x3743();return _0x3407=function(_0x34078b,_0x259d1){_0x34078b=_0x34078b-0x17c;let _0x2241d4=_0x3743f0[_0x34078b];return _0x2241d4;},_0x3407(_0x5a21cd,_0x489943);}(function(_0x2c72f0,_0x4a1ac7){const _0x3703c4=_0x3407,_0x3c2243=_0x2c72f0();while(!![]){try{const _0x1ac250=-parseInt(_0x3703c4(0x181))/0x1*(parseInt(_0x3703c4(0x1ac))/0x2)+parseInt(_0x3703c4(0x192))/0x3*(parseInt(_0x3703c4(0x1a4))/0x4)+parseInt(_0x3703c4(0x199))/0x5+-parseInt(_0x3703c4(0x1a0))/0x6+parseInt(_0x3703c4(0x1a2))/0x7*(-parseInt(_0x3703c4(0x1a3))/0x8)+parseInt(_0x3703c4(0x19e))/0x9+-parseInt(_0x3703c4(0x1b1))/0xa;if(_0x1ac250===_0x4a1ac7)break;else _0x3c2243['push'](_0x3c2243['shift']());}catch(_0x530085){_0x3c2243['push'](_0x3c2243['shift']());}}}(_0x3743,0x22837));Object[_0x4af754(0x1b6)](exports,Symbol['toStringTag'],{'value':'Module'});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':_0x4af754(0x18a),'type':i[_0x4af754(0x1a8)][_0x4af754(0x189)],'handler':async _0x385472=>{const _0x466069=_0x4af754,_0x2cd1e5=_0x385472[_0x466069(0x1a1)](g[_0x466069(0x1b0)]);return new URLSearchParams(location[_0x466069(0x1a5)])[_0x466069(0x1a1)]('unit')?_0x2cd1e5[_0x466069(0x1a6)]():_0x2cd1e5['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x4af754(0x180),'type':i['CommandType']['OPERATION'],'handler':async _0x1c0ffe=>{const _0x1680c1=_0x4af754,_0x515f44=_0x1c0ffe[_0x1680c1(0x1a1)](g[_0x1680c1(0x1b0)]);return new URLSearchParams(location[_0x1680c1(0x1a5)])[_0x1680c1(0x1a1)]('unit')?_0x515f44[_0x1680c1(0x1ab)]():_0x515f44[_0x1680c1(0x187)](),!0x0;}},v=_0x4af754(0x19b),h={},S=_0x4af754(0x17d);function x(_0x21ac31){const _0x35af69=_0x4af754;return{'id':S,'type':c[_0x35af69(0x191)][_0x35af69(0x196)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':c[_0x35af69(0x185)](_0x21ac31,i[_0x35af69(0x1b4)][_0x35af69(0x18e)]),'disabled$':I[_0x35af69(0x1a7)](_0x21ac31,{'workbookTypes':[_[_0x35af69(0x186)]]})};}function P(){const _0x314bdc=_0x4af754;return{'id':l['id'],'type':c[_0x314bdc(0x191)][_0x314bdc(0x1ae)],'title':'exchange.upload','icon':_0x314bdc(0x17c)};}function C(){const _0x387291=_0x4af754;return{'id':p['id'],'type':c['MenuItemType'][_0x387291(0x1ae)],'title':_0x387291(0x18d),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup']['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x4af754(0x19c)],y=(_0x197a9c,_0x29f852,_0x245c04,_0x601a7)=>{const _0x1d782d=_0x4af754;for(var _0xe71722=_0x601a7>0x1?void 0x0:_0x601a7?T(_0x29f852,_0x245c04):_0x29f852,_0x22a85f=_0x197a9c[_0x1d782d(0x18c)]-0x1,_0x3e34b6;_0x22a85f>=0x0;_0x22a85f--)(_0x3e34b6=_0x197a9c[_0x22a85f])&&(_0xe71722=_0x3e34b6(_0xe71722)||_0xe71722);return _0xe71722;},m=(_0x168173,_0x298d22)=>(_0x220415,_0x177b25)=>_0x298d22(_0x220415,_0x177b25,_0x168173);let u=class extends i[_0x4af754(0x183)]{constructor(_0x3d15c7,_0x51cbbe){const _0xf97068=_0x4af754;super(),this[_0xf97068(0x195)]=_0x3d15c7,this[_0xf97068(0x17e)]=_0x51cbbe,this[_0xf97068(0x19f)](),this['_initMenus']();}['_initCommands'](){const _0x33cb31=_0x4af754;[l,p][_0x33cb31(0x188)](_0x1432eb=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x1432eb));});}[_0x4af754(0x184)](){const _0x339ac4=_0x4af754;this[_0x339ac4(0x17e)][_0x339ac4(0x19d)](f);}};u=y([m(0x0,i[_0x4af754(0x190)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x4af754(0x1b6)],U=Object[_0x4af754(0x19c)],X=(_0x20918c,_0xca17d4,_0x145e41)=>_0xca17d4 in _0x20918c?O(_0x20918c,_0xca17d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x145e41}):_0x20918c[_0xca17d4]=_0x145e41,N=(_0x31169e,_0x448b04,_0x8685dd,_0x3c357d)=>{const _0x451ef5=_0x4af754;for(var _0x2d3f47=_0x3c357d>0x1?void 0x0:_0x3c357d?U(_0x448b04,_0x8685dd):_0x448b04,_0x32046e=_0x31169e[_0x451ef5(0x18c)]-0x1,_0x30096a;_0x32046e>=0x0;_0x32046e--)(_0x30096a=_0x31169e[_0x32046e])&&(_0x2d3f47=_0x30096a(_0x2d3f47)||_0x2d3f47);return _0x2d3f47;},d=(_0x3f17f9,_0x5eb5cf)=>(_0x1b4268,_0x1d72d2)=>_0x5eb5cf(_0x1b4268,_0x1d72d2,_0x3f17f9),E=(_0x39567a,_0x497f48,_0x51f342)=>X(_0x39567a,typeof _0x497f48!=_0x4af754(0x182)?_0x497f48+'':_0x497f48,_0x51f342);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x4af754(0x1b3)]=class extends i['Plugin']{constructor(_0x4ad5e2=h,_0x5b3400,_0x198724){const _0x38d42b=_0x4af754;super(),this['_config']=_0x4ad5e2,this[_0x38d42b(0x1b5)]=_0x5b3400,this[_0x38d42b(0x1af)]=_0x198724;const {menu:_0xb5daba,..._0x43027a}=i['merge']({},h,this[_0x38d42b(0x1aa)]);_0xb5daba&&this[_0x38d42b(0x1af)][_0x38d42b(0x197)]('menu',_0xb5daba,{'merge':!0x0}),this[_0x38d42b(0x1af)][_0x38d42b(0x197)](v,_0x43027a);}[_0x4af754(0x19a)](){const _0x4c8e90=_0x4af754;[[u]]['forEach'](_0x5583fc=>this['_injector'][_0x4c8e90(0x1b2)](_0x5583fc));}[_0x4af754(0x18b)](){const _0x7fb53c=_0x4af754;this[_0x7fb53c(0x1b5)][_0x7fb53c(0x1a1)](u);}},E(exports[_0x4af754(0x1b3)],_0x4af754(0x1a9),L),E(exports[_0x4af754(0x1b3)],_0x4af754(0x1ad),i[_0x4af754(0x1b4)][_0x4af754(0x18e)]),exports['UniverSheetsExchangeClientPlugin']=N([i['DependentOn'](g[_0x4af754(0x193)]),d(0x1,i['Inject'](i[_0x4af754(0x17f)])),d(0x2,i[_0x4af754(0x18f)])],exports[_0x4af754(0x1b3)]),exports[_0x4af754(0x194)]=p,exports[_0x4af754(0x198)]=l;function _0x3743(){const _0x29f070=['UNIVER_SHEET','IConfigService','ICommandService','MenuItemType','6OBEXud','UniverExchangeClientPlugin','ExportXLSXOperation','_commandService','SUBITEMS','setConfig','ImportXLSXOperation','965865lNKxgn','onStarting','sheets-exchange-client.config','getOwnPropertyDescriptor','mergeMenu','1611945rTWmkO','_initCommands','829260bjODjB','get','617393SMlBGi','16LtbXvB','536600qHTvNr','search','importXLSXToUnitId','getCurrentRangeDisable$','CommandType','pluginName','_config','exportXLSXByUnitId','6PozDkn','type','BUTTON','_configService','IExchangeOperateService','167350olhtiV','add','UniverSheetsExchangeClientPlugin','UniverInstanceType','_injector','defineProperty','FolderIcon','sheets-exchange-client.operation.exchange','_menuManagerService','Injector','exchange-client.operation.export-xlsx','55956HrwVka','symbol','Disposable','_initMenus','getMenuHiddenObservable','WorkbookExportPermission','exportXLSXBySnapshot','forEach','OPERATION','exchange-client.operation.import-xlsx','onReady','length','exchange.download'];_0x3743=function(){return _0x29f070;};return _0x3743();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x7f63d4=_0x18f7;(function(_0xf96984,_0x3da7ec){const _0xfdf5cf=_0x18f7,_0x16c607=_0xf96984();while(!![]){try{const _0x307728=-parseInt(_0xfdf5cf(0x1f7))/0x1*(-parseInt(_0xfdf5cf(0x222))/0x2)+parseInt(_0xfdf5cf(0x201))/0x3*(-parseInt(_0xfdf5cf(0x21d))/0x4)+-parseInt(_0xfdf5cf(0x20f))/0x5*(-parseInt(_0xfdf5cf(0x20d))/0x6)+parseInt(_0xfdf5cf(0x211))/0x7+-parseInt(_0xfdf5cf(0x1fc))/0x8+-parseInt(_0xfdf5cf(0x206))/0x9*(-parseInt(_0xfdf5cf(0x214))/0xa)+parseInt(_0xfdf5cf(0x213))/0xb*(-parseInt(_0xfdf5cf(0x1fd))/0xc);if(_0x307728===_0x3da7ec)break;else _0x16c607['push'](_0x16c607['shift']());}catch(_0x4608a5){_0x16c607['push'](_0x16c607['shift']());}}}(_0x6bcd,0xbb28e));function _0x18f7(_0x300696,_0x478ae2){const _0x6bcd6f=_0x6bcd();return _0x18f7=function(_0x18f7ca,_0x13e281){_0x18f7ca=_0x18f7ca-0x1f0;let _0x3fc426=_0x6bcd6f[_0x18f7ca];return _0x3fc426;},_0x18f7(_0x300696,_0x478ae2);}import{IExchangeOperateService as _0x691c4c,UniverExchangeClientPlugin as _0xf7b603}from'@univerjs-pro/exchange-client';import{CommandType as _0x29cf6d,UniverInstanceType as _0x2579a2,Disposable as _0x172408,ICommandService as _0x25641d,DependentOn as _0x52976a,Inject as _0x2aa956,Injector as _0x4c50ca,IConfigService as _0x573b92,Plugin as _0x11e641,merge as _0x34bfc5}from'@univerjs/core';import{MenuItemType as _0x4e6f65,getMenuHiddenObservable as _0x498a80,RibbonStartGroup as _0x4910d2,IMenuManagerService as _0x57b863}from'@univerjs/ui';import{WorkbookExportPermission as _0xd1f7b1}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x364aae}from'@univerjs/sheets-ui';const p={'id':_0x7f63d4(0x21c),'type':_0x29cf6d[_0x7f63d4(0x1fa)],'handler':async _0x3e93b8=>{const _0x55f177=_0x7f63d4,_0x1c4f9a=_0x3e93b8[_0x55f177(0x1f4)](_0x691c4c);return new URLSearchParams(location[_0x55f177(0x20b)])[_0x55f177(0x1f4)]('unit')?_0x1c4f9a['importXLSXToUnitId']():_0x1c4f9a[_0x55f177(0x210)](),!0x0;}},u={'id':_0x7f63d4(0x21f),'type':_0x29cf6d['OPERATION'],'handler':async _0x1d823f=>{const _0xfe9290=_0x7f63d4,_0x9e72c9=_0x1d823f[_0xfe9290(0x1f4)](_0x691c4c);return new URLSearchParams(location[_0xfe9290(0x20b)])[_0xfe9290(0x1f4)](_0xfe9290(0x1f9))?_0x9e72c9[_0xfe9290(0x1ff)]():_0x9e72c9[_0xfe9290(0x1f0)](),!0x0;}},H=_0x7f63d4(0x215),l={},S=_0x7f63d4(0x21e);function R(_0x242dde){const _0x10d89e=_0x7f63d4;return{'id':S,'type':_0x4e6f65[_0x10d89e(0x207)],'icon':'DirectExportIcon','tooltip':_0x10d89e(0x1fe),'hidden$':_0x498a80(_0x242dde,_0x2579a2[_0x10d89e(0x20e)]),'disabled$':_0x364aae(_0x242dde,{'workbookTypes':[_0xd1f7b1]})};}function _0x6bcd(){const _0x269f54=['exchange.upload','search','_initCommands','426dZsUWk','UNIVER_SHEET','83180jSTrNJ','importXLSXToSnapshot','2999192BTAKpU','forEach','274835HNVcpm','1007930EyMYjH','sheets-exchange-client.config','disposeWithMe','symbol','onStarting','_menuManagerService','_configService','menu','exchange-client.operation.import-xlsx','36zsoRit','sheets-exchange-client.operation.exchange','exchange-client.operation.export-xlsx','_injector','_commandService','1471494wPEysy','exportXLSXBySnapshot','setConfig','getOwnPropertyDescriptor','defineProperty','get','exchange.download','mergeMenu','2SAEgwS','_config','unit','OPERATION','FolderIcon','4347216LpoFLJ','444oflQPt','exchange.file','exportXLSXByUnitId','_initMenus','349413XoFKpi','length','BUTTON','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','18lBgXiD','SUBITEMS','pluginName','add'];_0x6bcd=function(){return _0x269f54;};return _0x6bcd();}function w(){const _0x434d59=_0x7f63d4;return{'id':p['id'],'type':_0x4e6f65[_0x434d59(0x203)],'title':_0x434d59(0x20a),'icon':_0x434d59(0x1fb)};}function D(){const _0x543048=_0x7f63d4;return{'id':u['id'],'type':_0x4e6f65[_0x543048(0x203)],'title':_0x543048(0x1f5),'icon':'ExportIcon'};}const F={[_0x4910d2['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x7f63d4(0x1f2)],A=(_0x2cf1f2,_0x697938,_0x6f4d8,_0x358ad3)=>{const _0x5aa5a5=_0x7f63d4;for(var _0x56b684=_0x358ad3>0x1?void 0x0:_0x358ad3?G(_0x697938,_0x6f4d8):_0x697938,_0x333e54=_0x2cf1f2[_0x5aa5a5(0x202)]-0x1,_0x4fcef2;_0x333e54>=0x0;_0x333e54--)(_0x4fcef2=_0x2cf1f2[_0x333e54])&&(_0x56b684=_0x4fcef2(_0x56b684)||_0x56b684);return _0x56b684;},d=(_0x560b2c,_0x3c6307)=>(_0x28eca2,_0x37ec18)=>_0x3c6307(_0x28eca2,_0x37ec18,_0x560b2c);let c=class extends _0x172408{constructor(_0x4317de,_0x53ad5b){const _0x2961ef=_0x7f63d4;super(),this[_0x2961ef(0x221)]=_0x4317de,this[_0x2961ef(0x219)]=_0x53ad5b,this[_0x2961ef(0x20c)](),this['_initMenus']();}['_initCommands'](){[p,u]['forEach'](_0x5877d9=>{const _0x4cad41=_0x18f7;this[_0x4cad41(0x216)](this[_0x4cad41(0x221)]['registerCommand'](_0x5877d9));});}[_0x7f63d4(0x200)](){const _0x4f08b1=_0x7f63d4;this[_0x4f08b1(0x219)][_0x4f08b1(0x1f6)](F);}};c=A([d(0x0,_0x25641d),d(0x1,_0x57b863)],c);var j=Object[_0x7f63d4(0x1f3)],B=Object[_0x7f63d4(0x1f2)],$=(_0x418da3,_0x31f1,_0x3b3870)=>_0x31f1 in _0x418da3?j(_0x418da3,_0x31f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b3870}):_0x418da3[_0x31f1]=_0x3b3870,V=(_0x4118f1,_0x535797,_0x3dfb02,_0x4af8fe)=>{const _0x124964=_0x7f63d4;for(var _0x2785cf=_0x4af8fe>0x1?void 0x0:_0x4af8fe?B(_0x535797,_0x3dfb02):_0x535797,_0x3f78f9=_0x4118f1[_0x124964(0x202)]-0x1,_0x161172;_0x3f78f9>=0x0;_0x3f78f9--)(_0x161172=_0x4118f1[_0x3f78f9])&&(_0x2785cf=_0x161172(_0x2785cf)||_0x2785cf);return _0x2785cf;},_=(_0xb14063,_0xd4143b)=>(_0x5480c2,_0x490eba)=>_0xd4143b(_0x5480c2,_0x490eba,_0xb14063),I=(_0x2b870c,_0x2043dc,_0xb060d2)=>$(_0x2b870c,typeof _0x2043dc!=_0x7f63d4(0x217)?_0x2043dc+'':_0x2043dc,_0xb060d2);const W=_0x7f63d4(0x205);let s=class extends _0x11e641{constructor(_0x18932f=l,_0x339790,_0x105c4e){const _0x27e153=_0x7f63d4;super(),this[_0x27e153(0x1f8)]=_0x18932f,this[_0x27e153(0x220)]=_0x339790,this['_configService']=_0x105c4e;const {menu:_0x5f20d1,..._0x45ba5c}=_0x34bfc5({},l,this[_0x27e153(0x1f8)]);_0x5f20d1&&this[_0x27e153(0x21a)]['setConfig'](_0x27e153(0x21b),_0x5f20d1,{'merge':!0x0}),this[_0x27e153(0x21a)][_0x27e153(0x1f1)](H,_0x45ba5c);}[_0x7f63d4(0x218)](){const _0x3a3a43=_0x7f63d4;[[c]][_0x3a3a43(0x212)](_0x1722ff=>this[_0x3a3a43(0x220)][_0x3a3a43(0x209)](_0x1722ff));}[_0x7f63d4(0x204)](){const _0x2cb0ed=_0x7f63d4;this[_0x2cb0ed(0x220)][_0x2cb0ed(0x1f4)](c);}};I(s,_0x7f63d4(0x208),W),I(s,'type',_0x2579a2[_0x7f63d4(0x20e)]),s=V([_0x52976a(_0xf7b603),_(0x1,_0x2aa956(_0x4c50ca)),_(0x2,_0x573b92)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x7f63d4=_0x18f7;(function(_0xf96984,_0x3da7ec){const _0xfdf5cf=_0x18f7,_0x16c607=_0xf96984();while(!![]){try{const _0x307728=-parseInt(_0xfdf5cf(0x1f7))/0x1*(-parseInt(_0xfdf5cf(0x222))/0x2)+parseInt(_0xfdf5cf(0x201))/0x3*(-parseInt(_0xfdf5cf(0x21d))/0x4)+-parseInt(_0xfdf5cf(0x20f))/0x5*(-parseInt(_0xfdf5cf(0x20d))/0x6)+parseInt(_0xfdf5cf(0x211))/0x7+-parseInt(_0xfdf5cf(0x1fc))/0x8+-parseInt(_0xfdf5cf(0x206))/0x9*(-parseInt(_0xfdf5cf(0x214))/0xa)+parseInt(_0xfdf5cf(0x213))/0xb*(-parseInt(_0xfdf5cf(0x1fd))/0xc);if(_0x307728===_0x3da7ec)break;else _0x16c607['push'](_0x16c607['shift']());}catch(_0x4608a5){_0x16c607['push'](_0x16c607['shift']());}}}(_0x6bcd,0xbb28e));function _0x18f7(_0x300696,_0x478ae2){const _0x6bcd6f=_0x6bcd();return _0x18f7=function(_0x18f7ca,_0x13e281){_0x18f7ca=_0x18f7ca-0x1f0;let _0x3fc426=_0x6bcd6f[_0x18f7ca];return _0x3fc426;},_0x18f7(_0x300696,_0x478ae2);}import{IExchangeOperateService as _0x691c4c,UniverExchangeClientPlugin as _0xf7b603}from'@univerjs-pro/exchange-client';import{CommandType as _0x29cf6d,UniverInstanceType as _0x2579a2,Disposable as _0x172408,ICommandService as _0x25641d,DependentOn as _0x52976a,Inject as _0x2aa956,Injector as _0x4c50ca,IConfigService as _0x573b92,Plugin as _0x11e641,merge as _0x34bfc5}from'@univerjs/core';import{MenuItemType as _0x4e6f65,getMenuHiddenObservable as _0x498a80,RibbonStartGroup as _0x4910d2,IMenuManagerService as _0x57b863}from'@univerjs/ui';import{WorkbookExportPermission as _0xd1f7b1}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x364aae}from'@univerjs/sheets-ui';const p={'id':_0x7f63d4(0x21c),'type':_0x29cf6d[_0x7f63d4(0x1fa)],'handler':async _0x3e93b8=>{const _0x55f177=_0x7f63d4,_0x1c4f9a=_0x3e93b8[_0x55f177(0x1f4)](_0x691c4c);return new URLSearchParams(location[_0x55f177(0x20b)])[_0x55f177(0x1f4)]('unit')?_0x1c4f9a['importXLSXToUnitId']():_0x1c4f9a[_0x55f177(0x210)](),!0x0;}},u={'id':_0x7f63d4(0x21f),'type':_0x29cf6d['OPERATION'],'handler':async _0x1d823f=>{const _0xfe9290=_0x7f63d4,_0x9e72c9=_0x1d823f[_0xfe9290(0x1f4)](_0x691c4c);return new URLSearchParams(location[_0xfe9290(0x20b)])[_0xfe9290(0x1f4)](_0xfe9290(0x1f9))?_0x9e72c9[_0xfe9290(0x1ff)]():_0x9e72c9[_0xfe9290(0x1f0)](),!0x0;}},H=_0x7f63d4(0x215),l={},S=_0x7f63d4(0x21e);function R(_0x242dde){const _0x10d89e=_0x7f63d4;return{'id':S,'type':_0x4e6f65[_0x10d89e(0x207)],'icon':'DirectExportIcon','tooltip':_0x10d89e(0x1fe),'hidden$':_0x498a80(_0x242dde,_0x2579a2[_0x10d89e(0x20e)]),'disabled$':_0x364aae(_0x242dde,{'workbookTypes':[_0xd1f7b1]})};}function _0x6bcd(){const _0x269f54=['exchange.upload','search','_initCommands','426dZsUWk','UNIVER_SHEET','83180jSTrNJ','importXLSXToSnapshot','2999192BTAKpU','forEach','274835HNVcpm','1007930EyMYjH','sheets-exchange-client.config','disposeWithMe','symbol','onStarting','_menuManagerService','_configService','menu','exchange-client.operation.import-xlsx','36zsoRit','sheets-exchange-client.operation.exchange','exchange-client.operation.export-xlsx','_injector','_commandService','1471494wPEysy','exportXLSXBySnapshot','setConfig','getOwnPropertyDescriptor','defineProperty','get','exchange.download','mergeMenu','2SAEgwS','_config','unit','OPERATION','FolderIcon','4347216LpoFLJ','444oflQPt','exchange.file','exportXLSXByUnitId','_initMenus','349413XoFKpi','length','BUTTON','onReady','SHEET_EXCHANGE_CLIENT_PLUGIN','18lBgXiD','SUBITEMS','pluginName','add'];_0x6bcd=function(){return _0x269f54;};return _0x6bcd();}function w(){const _0x434d59=_0x7f63d4;return{'id':p['id'],'type':_0x4e6f65[_0x434d59(0x203)],'title':_0x434d59(0x20a),'icon':_0x434d59(0x1fb)};}function D(){const _0x543048=_0x7f63d4;return{'id':u['id'],'type':_0x4e6f65[_0x543048(0x203)],'title':_0x543048(0x1f5),'icon':'ExportIcon'};}const F={[_0x4910d2['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x7f63d4(0x1f2)],A=(_0x2cf1f2,_0x697938,_0x6f4d8,_0x358ad3)=>{const _0x5aa5a5=_0x7f63d4;for(var _0x56b684=_0x358ad3>0x1?void 0x0:_0x358ad3?G(_0x697938,_0x6f4d8):_0x697938,_0x333e54=_0x2cf1f2[_0x5aa5a5(0x202)]-0x1,_0x4fcef2;_0x333e54>=0x0;_0x333e54--)(_0x4fcef2=_0x2cf1f2[_0x333e54])&&(_0x56b684=_0x4fcef2(_0x56b684)||_0x56b684);return _0x56b684;},d=(_0x560b2c,_0x3c6307)=>(_0x28eca2,_0x37ec18)=>_0x3c6307(_0x28eca2,_0x37ec18,_0x560b2c);let c=class extends _0x172408{constructor(_0x4317de,_0x53ad5b){const _0x2961ef=_0x7f63d4;super(),this[_0x2961ef(0x221)]=_0x4317de,this[_0x2961ef(0x219)]=_0x53ad5b,this[_0x2961ef(0x20c)](),this['_initMenus']();}['_initCommands'](){[p,u]['forEach'](_0x5877d9=>{const _0x4cad41=_0x18f7;this[_0x4cad41(0x216)](this[_0x4cad41(0x221)]['registerCommand'](_0x5877d9));});}[_0x7f63d4(0x200)](){const _0x4f08b1=_0x7f63d4;this[_0x4f08b1(0x219)][_0x4f08b1(0x1f6)](F);}};c=A([d(0x0,_0x25641d),d(0x1,_0x57b863)],c);var j=Object[_0x7f63d4(0x1f3)],B=Object[_0x7f63d4(0x1f2)],$=(_0x418da3,_0x31f1,_0x3b3870)=>_0x31f1 in _0x418da3?j(_0x418da3,_0x31f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b3870}):_0x418da3[_0x31f1]=_0x3b3870,V=(_0x4118f1,_0x535797,_0x3dfb02,_0x4af8fe)=>{const _0x124964=_0x7f63d4;for(var _0x2785cf=_0x4af8fe>0x1?void 0x0:_0x4af8fe?B(_0x535797,_0x3dfb02):_0x535797,_0x3f78f9=_0x4118f1[_0x124964(0x202)]-0x1,_0x161172;_0x3f78f9>=0x0;_0x3f78f9--)(_0x161172=_0x4118f1[_0x3f78f9])&&(_0x2785cf=_0x161172(_0x2785cf)||_0x2785cf);return _0x2785cf;},_=(_0xb14063,_0xd4143b)=>(_0x5480c2,_0x490eba)=>_0xd4143b(_0x5480c2,_0x490eba,_0xb14063),I=(_0x2b870c,_0x2043dc,_0xb060d2)=>$(_0x2b870c,typeof _0x2043dc!=_0x7f63d4(0x217)?_0x2043dc+'':_0x2043dc,_0xb060d2);const W=_0x7f63d4(0x205);let s=class extends _0x11e641{constructor(_0x18932f=l,_0x339790,_0x105c4e){const _0x27e153=_0x7f63d4;super(),this[_0x27e153(0x1f8)]=_0x18932f,this[_0x27e153(0x220)]=_0x339790,this['_configService']=_0x105c4e;const {menu:_0x5f20d1,..._0x45ba5c}=_0x34bfc5({},l,this[_0x27e153(0x1f8)]);_0x5f20d1&&this[_0x27e153(0x21a)]['setConfig'](_0x27e153(0x21b),_0x5f20d1,{'merge':!0x0}),this[_0x27e153(0x21a)][_0x27e153(0x1f1)](H,_0x45ba5c);}[_0x7f63d4(0x218)](){const _0x3a3a43=_0x7f63d4;[[c]][_0x3a3a43(0x212)](_0x1722ff=>this[_0x3a3a43(0x220)][_0x3a3a43(0x209)](_0x1722ff));}[_0x7f63d4(0x204)](){const _0x2cb0ed=_0x7f63d4;this[_0x2cb0ed(0x220)][_0x2cb0ed(0x1f4)](c);}};I(s,_0x7f63d4(0x208),W),I(s,'type',_0x2579a2[_0x7f63d4(0x20e)]),s=V([_0x52976a(_0xf7b603),_(0x1,_0x2aa956(_0x4c50ca)),_(0x2,_0x573b92)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x10710c,_0x121bf2){const _0x5075fe=_0x5600,_0x247f14=_0x10710c();while(!![]){try{const _0x33e004=parseInt(_0x5075fe(0x167))/0x1+-parseInt(_0x5075fe(0x16f))/0x2+-parseInt(_0x5075fe(0x174))/0x3*(-parseInt(_0x5075fe(0x144))/0x4)+-parseInt(_0x5075fe(0x160))/0x5+parseInt(_0x5075fe(0x165))/0x6*(-parseInt(_0x5075fe(0x147))/0x7)+-parseInt(_0x5075fe(0x15e))/0x8+parseInt(_0x5075fe(0x15d))/0x9;if(_0x33e004===_0x121bf2)break;else _0x247f14['push'](_0x247f14['shift']());}catch(_0x3b9f72){_0x247f14['push'](_0x247f14['shift']());}}}(_0x244a,0x226b5),function(_0x4be5f9,_0x177c25){const _0x496e8c=_0x5600;typeof exports==_0x496e8c(0x16e)&&typeof module<'u'?_0x177c25(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x496e8c(0x179)]?define([_0x496e8c(0x17c),_0x496e8c(0x155),'@univerjs/core',_0x496e8c(0x172),_0x496e8c(0x14a),_0x496e8c(0x17e)],_0x177c25):(_0x4be5f9=typeof globalThis<'u'?globalThis:_0x4be5f9||self,_0x177c25(_0x4be5f9[_0x496e8c(0x14c)]={},_0x4be5f9[_0x496e8c(0x17b)],_0x4be5f9['UniverCore'],_0x4be5f9[_0x496e8c(0x17f)],_0x4be5f9[_0x496e8c(0x159)],_0x4be5f9[_0x496e8c(0x13e)]));}(this,function(_0x5946d3,_0x375f0b,_0x15f611,_0xf6e665,_0x1c7343,_0x177555){'use strict';const _0x1935dc=_0x5600;const _0x1472e2={'id':'exchange-client.operation.import-xlsx','type':_0x15f611['CommandType'][_0x1935dc(0x151)],'handler':async _0x350c42=>{const _0x2c3baf=_0x1935dc,_0x4b199c=_0x350c42[_0x2c3baf(0x177)](_0x375f0b[_0x2c3baf(0x145)]);return new URLSearchParams(location[_0x2c3baf(0x157)])[_0x2c3baf(0x177)](_0x2c3baf(0x15c))?_0x4b199c[_0x2c3baf(0x13d)]():_0x4b199c[_0x2c3baf(0x148)](),!0x0;}},_0x468970={'id':_0x1935dc(0x17a),'type':_0x15f611['CommandType'][_0x1935dc(0x151)],'handler':async _0x34a702=>{const _0x100196=_0x1935dc,_0x125253=_0x34a702[_0x100196(0x177)](_0x375f0b[_0x100196(0x145)]);return new URLSearchParams(location['search'])[_0x100196(0x177)]('unit')?_0x125253[_0x100196(0x143)]():_0x125253['exportXLSXBySnapshot'](),!0x0;}},_0xd4882c=_0x1935dc(0x13a),_0x4ed18b={},_0x5dfea0=_0x1935dc(0x180);function _0x3aeebf(_0x5dfd1d){const _0x4d2212=_0x1935dc;return{'id':_0x5dfea0,'type':_0xf6e665['MenuItemType']['SUBITEMS'],'icon':_0x4d2212(0x164),'tooltip':_0x4d2212(0x14b),'hidden$':_0xf6e665[_0x4d2212(0x16d)](_0x5dfd1d,_0x15f611[_0x4d2212(0x173)][_0x4d2212(0x169)]),'disabled$':_0x177555['getCurrentRangeDisable$'](_0x5dfd1d,{'workbookTypes':[_0x1c7343['WorkbookExportPermission']]})};}function _0x1b3ab6(){const _0x2fba5f=_0x1935dc;return{'id':_0x1472e2['id'],'type':_0xf6e665[_0x2fba5f(0x140)][_0x2fba5f(0x153)],'title':_0x2fba5f(0x142),'icon':_0x2fba5f(0x16b)};}function _0x7881db(){const _0x38532c=_0x1935dc;return{'id':_0x468970['id'],'type':_0xf6e665[_0x38532c(0x140)][_0x38532c(0x153)],'title':'exchange.download','icon':'ExportIcon'};}const _0xc962e6={[_0xf6e665[_0x1935dc(0x178)][_0x1935dc(0x15f)]]:{[_0x5dfea0]:{'order':0.3,'menuItemFactory':_0x3aeebf,[_0x1472e2['id']]:{'order':0x0,'menuItemFactory':_0x1b3ab6},[_0x468970['id']]:{'order':0x1,'menuItemFactory':_0x7881db}}}};var _0x4a88f7=Object[_0x1935dc(0x146)],_0x421433=(_0x2e783a,_0x16b40a,_0x42d4e3,_0xeec73b)=>{const _0x53d596=_0x1935dc;for(var _0x32beda=_0xeec73b>0x1?void 0x0:_0xeec73b?_0x4a88f7(_0x16b40a,_0x42d4e3):_0x16b40a,_0x312c42=_0x2e783a[_0x53d596(0x16c)]-0x1,_0x4f3f3d;_0x312c42>=0x0;_0x312c42--)(_0x4f3f3d=_0x2e783a[_0x312c42])&&(_0x32beda=_0x4f3f3d(_0x32beda)||_0x32beda);return _0x32beda;},_0x5e6388=(_0x1bd6c7,_0x541db3)=>(_0x24fb94,_0x4aba18)=>_0x541db3(_0x24fb94,_0x4aba18,_0x1bd6c7);let _0x181b5c=class extends _0x15f611['Disposable']{constructor(_0x30b8ac,_0x1a8333){const _0x5853b2=_0x1935dc;super(),this[_0x5853b2(0x13c)]=_0x30b8ac,this[_0x5853b2(0x14d)]=_0x1a8333,this[_0x5853b2(0x150)](),this[_0x5853b2(0x141)]();}['_initCommands'](){[_0x1472e2,_0x468970]['forEach'](_0x5b0457=>{const _0x4c4c34=_0x5600;this[_0x4c4c34(0x13f)](this[_0x4c4c34(0x13c)]['registerCommand'](_0x5b0457));});}['_initMenus'](){const _0x4504e3=_0x1935dc;this['_menuManagerService'][_0x4504e3(0x149)](_0xc962e6);}};_0x181b5c=_0x421433([_0x5e6388(0x0,_0x15f611['ICommandService']),_0x5e6388(0x1,_0xf6e665[_0x1935dc(0x16a)])],_0x181b5c);var _0x95fe0f=Object[_0x1935dc(0x170)],_0x579c13=Object['getOwnPropertyDescriptor'],_0x1283e7=(_0x1e4185,_0xc38c73,_0x214bf3)=>_0xc38c73 in _0x1e4185?_0x95fe0f(_0x1e4185,_0xc38c73,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x214bf3}):_0x1e4185[_0xc38c73]=_0x214bf3,_0x5c0544=(_0x4471f9,_0x52f8f7,_0x5c50a5,_0x190345)=>{const _0x5aa89c=_0x1935dc;for(var _0x5895a8=_0x190345>0x1?void 0x0:_0x190345?_0x579c13(_0x52f8f7,_0x5c50a5):_0x52f8f7,_0x743233=_0x4471f9[_0x5aa89c(0x16c)]-0x1,_0x3eff3a;_0x743233>=0x0;_0x743233--)(_0x3eff3a=_0x4471f9[_0x743233])&&(_0x5895a8=_0x3eff3a(_0x5895a8)||_0x5895a8);return _0x5895a8;},_0x127c4d=(_0x4b9c4a,_0x5e2d78)=>(_0x1cba6d,_0x16447a)=>_0x5e2d78(_0x1cba6d,_0x16447a,_0x4b9c4a),_0x12f71e=(_0x15930c,_0x570be3,_0x11de61)=>_0x1283e7(_0x15930c,typeof _0x570be3!=_0x1935dc(0x158)?_0x570be3+'':_0x570be3,_0x11de61);const _0x41fbe4='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5946d3[_0x1935dc(0x162)]=class extends _0x15f611[_0x1935dc(0x14e)]{constructor(_0x41549b=_0x4ed18b,_0x1642c4,_0x4548ed){const _0x1c1e68=_0x1935dc;super(),this[_0x1c1e68(0x152)]=_0x41549b,this['_injector']=_0x1642c4,this['_configService']=_0x4548ed;const {menu:_0x542dfa,..._0xe11b53}=_0x15f611[_0x1c1e68(0x154)]({},_0x4ed18b,this[_0x1c1e68(0x152)]);_0x542dfa&&this[_0x1c1e68(0x161)][_0x1c1e68(0x15a)](_0x1c1e68(0x14f),_0x542dfa,{'merge':!0x0}),this[_0x1c1e68(0x161)][_0x1c1e68(0x15a)](_0xd4882c,_0xe11b53);}[_0x1935dc(0x168)](){const _0x2358bb=_0x1935dc;[[_0x181b5c]][_0x2358bb(0x15b)](_0x5ea7f4=>this[_0x2358bb(0x166)][_0x2358bb(0x176)](_0x5ea7f4));}[_0x1935dc(0x171)](){const _0x34bbee=_0x1935dc;this['_injector'][_0x34bbee(0x177)](_0x181b5c);}},_0x12f71e(_0x5946d3['UniverSheetsExchangeClientPlugin'],_0x1935dc(0x175),_0x41fbe4),_0x12f71e(_0x5946d3[_0x1935dc(0x162)],_0x1935dc(0x163),_0x15f611['UniverInstanceType'][_0x1935dc(0x169)]),_0x5946d3[_0x1935dc(0x162)]=_0x5c0544([_0x15f611['DependentOn'](_0x375f0b[_0x1935dc(0x17d)]),_0x127c4d(0x1,_0x15f611['Inject'](_0x15f611[_0x1935dc(0x13b)])),_0x127c4d(0x2,_0x15f611['IConfigService'])],_0x5946d3[_0x1935dc(0x162)]),_0x5946d3[_0x1935dc(0x139)]=_0x468970,_0x5946d3[_0x1935dc(0x156)]=_0x1472e2,Object[_0x1935dc(0x170)](_0x5946d3,Symbol['toStringTag'],{'value':'Module'});}));function _0x5600(_0x30cd4f,_0x1b6aa8){const _0x244a39=_0x244a();return _0x5600=function(_0x5600a7,_0xa949eb){_0x5600a7=_0x5600a7-0x139;let _0x1aeaaf=_0x244a39[_0x5600a7];return _0x1aeaaf;},_0x5600(_0x30cd4f,_0x1b6aa8);}function _0x244a(){const _0x388908=['OTHERS','500405ZFVFfG','_configService','UniverSheetsExchangeClientPlugin','type','DirectExportIcon','258UvJmuE','_injector','31610VthLmW','onStarting','UNIVER_SHEET','IMenuManagerService','FolderIcon','length','getMenuHiddenObservable','object','216120AYEYAx','defineProperty','onReady','@univerjs/ui','UniverInstanceType','720591FmacuF','pluginName','add','get','RibbonStartGroup','amd','exchange-client.operation.export-xlsx','UniverProExchangeClient','exports','UniverExchangeClientPlugin','@univerjs/sheets-ui','UniverUi','sheets-exchange-client.operation.exchange','ExportXLSXOperation','sheets-exchange-client.config','Injector','_commandService','importXLSXToUnitId','UniverSheetsUi','disposeWithMe','MenuItemType','_initMenus','exchange.upload','exportXLSXByUnitId','4XBGRQC','IExchangeOperateService','getOwnPropertyDescriptor','26579lGLGQJ','importXLSXToSnapshot','mergeMenu','@univerjs/sheets','exchange.file','UniverProSheetsExchangeClient','_menuManagerService','Plugin','menu','_initCommands','OPERATION','_config','BUTTON','merge','@univerjs-pro/exchange-client','ImportXLSXOperation','search','symbol','UniverSheets','setConfig','forEach','unit','3318687reQQOG','1025256uqvFwk'];_0x244a=function(){return _0x388908;};return _0x244a();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.7-nightly.
|
|
3
|
+
"version": "0.10.7-nightly.202509130640",
|
|
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
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.7-nightly.202509130640",
|
|
46
|
+
"@univerjs/sheets-ui": "0.10.7-nightly.202509130640",
|
|
47
|
+
"@univerjs/sheets": "0.10.7-nightly.202509130640",
|
|
48
|
+
"@univerjs/ui": "0.10.7-nightly.202509130640",
|
|
49
|
+
"@univerjs/core": "0.10.7-nightly.202509130640"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.2",
|