@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-7b9120d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x527e82=_0x3f89;(function(_0x4624cd,_0x7680cf){const _0x52855f=_0x3f89,_0x3bd990=_0x4624cd();while(!![]){try{const _0x30cfd2=parseInt(_0x52855f(0x134))/0x1*(parseInt(_0x52855f(0x131))/0x2)+-parseInt(_0x52855f(0x10e))/0x3*(parseInt(_0x52855f(0x141))/0x4)+parseInt(_0x52855f(0x130))/0x5*(-parseInt(_0x52855f(0x108))/0x6)+-parseInt(_0x52855f(0x14a))/0x7*(-parseInt(_0x52855f(0x11e))/0x8)+-parseInt(_0x52855f(0x124))/0x9+-parseInt(_0x52855f(0x13d))/0xa+-parseInt(_0x52855f(0x140))/0xb*(-parseInt(_0x52855f(0x115))/0xc);if(_0x30cfd2===_0x7680cf)break;else _0x3bd990['push'](_0x3bd990['shift']());}catch(_0x4121ee){_0x3bd990['push'](_0x3bd990['shift']());}}}(_0x3089,0x2636e));Object[_0x527e82(0x14b)](exports,Symbol[_0x527e82(0x128)],{'value':'Module'});function _0x3f89(_0x385052,_0x4ff4d5){_0x385052=_0x385052-0x108;const _0x308929=_0x3089();let _0x3f892a=_0x308929[_0x385052];return _0x3f892a;}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':_0x527e82(0x111),'type':i[_0x527e82(0x136)][_0x527e82(0x13a)],'handler':async _0x43d052=>{const _0x14dc1d=_0x527e82,_0x49e957=_0x43d052[_0x14dc1d(0x149)](g[_0x14dc1d(0x11f)]);return new URLSearchParams(location['search'])[_0x14dc1d(0x149)]('unit')?_0x49e957[_0x14dc1d(0x10a)]():_0x49e957[_0x14dc1d(0x133)](),!0x0;}},p={'id':_0x527e82(0x148),'type':i[_0x527e82(0x136)][_0x527e82(0x13a)],'handler':async _0x1ea022=>{const _0x1a1dc7=_0x527e82,_0x4a6eff=_0x1ea022[_0x1a1dc7(0x149)](g[_0x1a1dc7(0x11f)]);return new URLSearchParams(location[_0x1a1dc7(0x10b)])[_0x1a1dc7(0x149)](_0x1a1dc7(0x145))?_0x4a6eff[_0x1a1dc7(0x13c)]():_0x4a6eff[_0x1a1dc7(0x110)](),!0x0;}},v=_0x527e82(0x14e),h={},S=_0x527e82(0x138);function x(_0x4cf327){const _0x2695ea=_0x527e82;return{'id':S,'type':c['MenuItemType'][_0x2695ea(0x125)],'icon':_0x2695ea(0x120),'tooltip':_0x2695ea(0x13f),'hidden$':c[_0x2695ea(0x132)](_0x4cf327,i[_0x2695ea(0x11b)][_0x2695ea(0x118)]),'disabled$':I['getCurrentRangeDisable$'](_0x4cf327,{'workbookTypes':[_['WorkbookExportPermission']]})};}function P(){const _0x1b1d63=_0x527e82;return{'id':l['id'],'type':c['MenuItemType'][_0x1b1d63(0x109)],'title':_0x1b1d63(0x11d),'icon':_0x1b1d63(0x10c)};}function C(){const _0x1b7553=_0x527e82;return{'id':p['id'],'type':c[_0x1b7553(0x117)][_0x1b7553(0x109)],'title':_0x1b7553(0x14d),'icon':'ExportIcon'};}const f={[c['RibbonStartGroup'][_0x527e82(0x12e)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x527e82(0x12b)],y=(_0x2f6a41,_0x388cbc,_0x5d0fef,_0x183f8e)=>{for(var _0x1a62ae=_0x183f8e>0x1?void 0x0:_0x183f8e?T(_0x388cbc,_0x5d0fef):_0x388cbc,_0x3406e7=_0x2f6a41['length']-0x1,_0x210683;_0x3406e7>=0x0;_0x3406e7--)(_0x210683=_0x2f6a41[_0x3406e7])&&(_0x1a62ae=_0x210683(_0x1a62ae)||_0x1a62ae);return _0x1a62ae;},m=(_0x5c5077,_0x2fd5a9)=>(_0x156e97,_0x1f2ea1)=>_0x2fd5a9(_0x156e97,_0x1f2ea1,_0x5c5077);let u=class extends i['Disposable']{constructor(_0x460012,_0x3c551e){const _0x1d9f47=_0x527e82;super(),this[_0x1d9f47(0x146)]=_0x460012,this[_0x1d9f47(0x119)]=_0x3c551e,this[_0x1d9f47(0x11c)](),this[_0x1d9f47(0x137)]();}[_0x527e82(0x11c)](){const _0x2a1ddc=_0x527e82;[l,p][_0x2a1ddc(0x122)](_0x4bf4ac=>{const _0x316062=_0x2a1ddc;this[_0x316062(0x12f)](this['_commandService'][_0x316062(0x129)](_0x4bf4ac));});}[_0x527e82(0x137)](){const _0xee6363=_0x527e82;this[_0xee6363(0x119)][_0xee6363(0x143)](f);}};u=y([m(0x0,i[_0x527e82(0x126)]),m(0x1,c[_0x527e82(0x10d)])],u);var O=Object[_0x527e82(0x14b)],U=Object[_0x527e82(0x12b)],X=(_0x33f1d4,_0x30731e,_0x5128bd)=>_0x30731e in _0x33f1d4?O(_0x33f1d4,_0x30731e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5128bd}):_0x33f1d4[_0x30731e]=_0x5128bd,N=(_0x529cf3,_0x47b92e,_0x4430e9,_0xe3e5ea)=>{for(var _0x294500=_0xe3e5ea>0x1?void 0x0:_0xe3e5ea?U(_0x47b92e,_0x4430e9):_0x47b92e,_0x148aeb=_0x529cf3['length']-0x1,_0x5552cf;_0x148aeb>=0x0;_0x148aeb--)(_0x5552cf=_0x529cf3[_0x148aeb])&&(_0x294500=_0x5552cf(_0x294500)||_0x294500);return _0x294500;},d=(_0x197b2c,_0x1461be)=>(_0x39e1c7,_0x1208d2)=>_0x1461be(_0x39e1c7,_0x1208d2,_0x197b2c),E=(_0x5e963b,_0x4bb007,_0x146953)=>X(_0x5e963b,typeof _0x4bb007!=_0x527e82(0x14c)?_0x4bb007+'':_0x4bb007,_0x146953);function _0x3089(){const _0x523dd5=['exchange.download','sheets-exchange-client.config','66msLjIy','BUTTON','importXLSXToUnitId','search','FolderIcon','IMenuManagerService','3bxFwdG','Plugin','exportXLSXBySnapshot','exchange-client.operation.import-xlsx','IConfigService','pluginName','setConfig','12PNmcny','_config','MenuItemType','UNIVER_SHEET','_menuManagerService','merge','UniverInstanceType','_initCommands','exchange.upload','1241264gabXzK','IExchangeOperateService','DirectExportIcon','_injector','forEach','Inject','275553OOPmbX','SUBITEMS','ICommandService','UniverExchangeClientPlugin','toStringTag','registerCommand','onStarting','getOwnPropertyDescriptor','DependentOn','Injector','OTHERS','disposeWithMe','131245skbTJp','250KCczGN','getMenuHiddenObservable','importXLSXToSnapshot','1553ECHQSb','menu','CommandType','_initMenus','sheets-exchange-client.operation.exchange','UniverSheetsExchangeClientPlugin','OPERATION','_configService','exportXLSXByUnitId','2861280YJvOjq','add','exchange.file','5597009ntSuSZ','384368egupJo','type','mergeMenu','ExportXLSXOperation','unit','_commandService','ImportXLSXOperation','exchange-client.operation.export-xlsx','get','7uoTfgr','defineProperty','symbol'];_0x3089=function(){return _0x523dd5;};return _0x3089();}const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x527e82(0x139)]=class extends i[_0x527e82(0x10f)]{constructor(_0x290503=h,_0x216abb,_0x26752b){const _0x125225=_0x527e82;super(),this[_0x125225(0x116)]=_0x290503,this[_0x125225(0x121)]=_0x216abb,this[_0x125225(0x13b)]=_0x26752b;const {menu:_0x11fedd,..._0x4ce1e0}=i[_0x125225(0x11a)]({},h,this['_config']);_0x11fedd&&this[_0x125225(0x13b)][_0x125225(0x114)](_0x125225(0x135),_0x11fedd,{'merge':!0x0}),this[_0x125225(0x13b)][_0x125225(0x114)](v,_0x4ce1e0);}[_0x527e82(0x12a)](){const _0x4606ad=_0x527e82;[[u]][_0x4606ad(0x122)](_0x776313=>this[_0x4606ad(0x121)][_0x4606ad(0x13e)](_0x776313));}['onReady'](){const _0x3054f9=_0x527e82;this[_0x3054f9(0x121)][_0x3054f9(0x149)](u);}},E(exports[_0x527e82(0x139)],_0x527e82(0x113),L),E(exports[_0x527e82(0x139)],_0x527e82(0x142),i['UniverInstanceType'][_0x527e82(0x118)]),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x527e82(0x12c)](g[_0x527e82(0x127)]),d(0x1,i[_0x527e82(0x123)](i[_0x527e82(0x12d)])),d(0x2,i[_0x527e82(0x112)])],exports[_0x527e82(0x139)]),exports[_0x527e82(0x144)]=p,exports[_0x527e82(0x147)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1241b5=_0x45b4;(function(_0x19560b,_0xe734b9){const _0x304b82=_0x45b4,_0x2befc1=_0x19560b();while(!![]){try{const _0x31013c=-parseInt(_0x304b82(0x187))/0x1+-parseInt(_0x304b82(0x185))/0x2*(-parseInt(_0x304b82(0x180))/0x3)+-parseInt(_0x304b82(0x178))/0x4+parseInt(_0x304b82(0x18a))/0x5*(-parseInt(_0x304b82(0x192))/0x6)+-parseInt(_0x304b82(0x17c))/0x7*(-parseInt(_0x304b82(0x17f))/0x8)+parseInt(_0x304b82(0x17d))/0x9*(parseInt(_0x304b82(0x181))/0xa)+parseInt(_0x304b82(0x18b))/0xb;if(_0x31013c===_0xe734b9)break;else _0x2befc1['push'](_0x2befc1['shift']());}catch(_0x9af4a4){_0x2befc1['push'](_0x2befc1['shift']());}}}(_0x55c2,0xc660e));import{IExchangeOperateService as _0x44e9b0,UniverExchangeClientPlugin as _0x5d134d}from'@univerjs-pro/exchange-client';import{CommandType as _0x3e69b2,UniverInstanceType as _0x5c840e,Disposable as _0x585ca5,ICommandService as _0x215978,DependentOn as _0x23510b,Inject as _0x29d6ff,Injector as _0x509c62,IConfigService as _0x4f9237,Plugin as _0x434e67,merge as _0x46540a}from'@univerjs/core';import{MenuItemType as _0x792cdb,getMenuHiddenObservable as _0x962288,RibbonStartGroup as _0x54649d,IMenuManagerService as _0x2a2b07}from'@univerjs/ui';import{WorkbookExportPermission as _0x302d1f}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2d8c05}from'@univerjs/sheets-ui';function _0x55c2(){const _0x3f3e41=['6yeNJTC','pluginName','length','setConfig','unit','exchange-client.operation.export-xlsx','FolderIcon','_initCommands','registerCommand','_initMenus','sheets-exchange-client.operation.exchange','BUTTON','exchange.upload','OPERATION','forEach','symbol','importXLSXToUnitId','_commandService','_configService','exchange.file','exchange-client.operation.import-xlsx','get','type','UNIVER_SHEET','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','284392COPDRJ','menu','onReady','defineProperty','4543252GjjzbB','1053sVSdHi','getOwnPropertyDescriptor','16OxKWzi','3048QuMemX','41910WNGqyD','_config','importXLSXToSnapshot','mergeMenu','866bGxUrn','add','947470tqYwnH','_menuManagerService','SUBITEMS','4080495QKQneO','4607658ExuDZc','exportXLSXBySnapshot','_injector','sheets-exchange-client.config','exportXLSXByUnitId','DirectExportIcon','search'];_0x55c2=function(){return _0x3f3e41;};return _0x55c2();}const p={'id':_0x1241b5(0x172),'type':_0x3e69b2[_0x1241b5(0x19f)],'handler':async _0x336fe8=>{const _0x2649c4=_0x1241b5,_0x33da33=_0x336fe8['get'](_0x44e9b0);return new URLSearchParams(location['search'])[_0x2649c4(0x173)](_0x2649c4(0x196))?_0x33da33[_0x2649c4(0x16e)]():_0x33da33[_0x2649c4(0x183)](),!0x0;}},u={'id':_0x1241b5(0x197),'type':_0x3e69b2[_0x1241b5(0x19f)],'handler':async _0x4d76e1=>{const _0x42fcae=_0x1241b5,_0x338535=_0x4d76e1[_0x42fcae(0x173)](_0x44e9b0);return new URLSearchParams(location[_0x42fcae(0x191)])[_0x42fcae(0x173)](_0x42fcae(0x196))?_0x338535[_0x42fcae(0x18f)]():_0x338535[_0x42fcae(0x18c)](),!0x0;}},H=_0x1241b5(0x18e),l={},S=_0x1241b5(0x19c);function R(_0x4d210a){const _0x3e8cf4=_0x1241b5;return{'id':S,'type':_0x792cdb[_0x3e8cf4(0x189)],'icon':_0x3e8cf4(0x190),'tooltip':_0x3e8cf4(0x171),'hidden$':_0x962288(_0x4d210a,_0x5c840e[_0x3e8cf4(0x175)]),'disabled$':_0x2d8c05(_0x4d210a,{'workbookTypes':[_0x302d1f]})};}function w(){const _0x3fa064=_0x1241b5;return{'id':p['id'],'type':_0x792cdb[_0x3fa064(0x19d)],'title':_0x3fa064(0x19e),'icon':_0x3fa064(0x198)};}function D(){const _0x139a20=_0x1241b5;return{'id':u['id'],'type':_0x792cdb[_0x139a20(0x19d)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x54649d['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x1241b5(0x17e)],A=(_0x4b5869,_0x5e9089,_0x9e68fe,_0x1c21e5)=>{const _0x4e883a=_0x1241b5;for(var _0x28c5be=_0x1c21e5>0x1?void 0x0:_0x1c21e5?G(_0x5e9089,_0x9e68fe):_0x5e9089,_0x515d22=_0x4b5869[_0x4e883a(0x194)]-0x1,_0x2b8027;_0x515d22>=0x0;_0x515d22--)(_0x2b8027=_0x4b5869[_0x515d22])&&(_0x28c5be=_0x2b8027(_0x28c5be)||_0x28c5be);return _0x28c5be;},d=(_0x4f4749,_0x3d835a)=>(_0x2331f4,_0x2fe6b1)=>_0x3d835a(_0x2331f4,_0x2fe6b1,_0x4f4749);let c=class extends _0x585ca5{constructor(_0x29d7fb,_0x4ab32b){const _0x1fbb55=_0x1241b5;super(),this[_0x1fbb55(0x16f)]=_0x29d7fb,this[_0x1fbb55(0x188)]=_0x4ab32b,this['_initCommands'](),this['_initMenus']();}[_0x1241b5(0x199)](){[p,u]['forEach'](_0x12b71e=>{const _0x61d730=_0x45b4;this[_0x61d730(0x177)](this[_0x61d730(0x16f)][_0x61d730(0x19a)](_0x12b71e));});}[_0x1241b5(0x19b)](){const _0x25dfe1=_0x1241b5;this[_0x25dfe1(0x188)][_0x25dfe1(0x184)](F);}};c=A([d(0x0,_0x215978),d(0x1,_0x2a2b07)],c);var j=Object[_0x1241b5(0x17b)],B=Object['getOwnPropertyDescriptor'],$=(_0xf3014b,_0x561c5c,_0x424ce7)=>_0x561c5c in _0xf3014b?j(_0xf3014b,_0x561c5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x424ce7}):_0xf3014b[_0x561c5c]=_0x424ce7,V=(_0x2fb9f5,_0x68c11f,_0xdcf058,_0x24d069)=>{const _0x18de80=_0x1241b5;for(var _0x517e04=_0x24d069>0x1?void 0x0:_0x24d069?B(_0x68c11f,_0xdcf058):_0x68c11f,_0x10e04b=_0x2fb9f5[_0x18de80(0x194)]-0x1,_0x39f4fd;_0x10e04b>=0x0;_0x10e04b--)(_0x39f4fd=_0x2fb9f5[_0x10e04b])&&(_0x517e04=_0x39f4fd(_0x517e04)||_0x517e04);return _0x517e04;},_=(_0x34bff5,_0x340661)=>(_0x4ba93e,_0x4e53cd)=>_0x340661(_0x4ba93e,_0x4e53cd,_0x34bff5),I=(_0x539789,_0x589b27,_0x1c13d7)=>$(_0x539789,typeof _0x589b27!=_0x1241b5(0x16d)?_0x589b27+'':_0x589b27,_0x1c13d7);const W=_0x1241b5(0x176);let s=class extends _0x434e67{constructor(_0x570e65=l,_0x4eb8ab,_0x45a592){const _0x2f98a8=_0x1241b5;super(),this['_config']=_0x570e65,this[_0x2f98a8(0x18d)]=_0x4eb8ab,this['_configService']=_0x45a592;const {menu:_0x43d2fa,..._0x2fff4e}=_0x46540a({},l,this[_0x2f98a8(0x182)]);_0x43d2fa&&this[_0x2f98a8(0x170)][_0x2f98a8(0x195)](_0x2f98a8(0x179),_0x43d2fa,{'merge':!0x0}),this[_0x2f98a8(0x170)][_0x2f98a8(0x195)](H,_0x2fff4e);}['onStarting'](){const _0x2c9e9b=_0x1241b5;[[c]][_0x2c9e9b(0x16c)](_0x2ac2e8=>this[_0x2c9e9b(0x18d)][_0x2c9e9b(0x186)](_0x2ac2e8));}[_0x1241b5(0x17a)](){const _0x3f15d8=_0x1241b5;this[_0x3f15d8(0x18d)][_0x3f15d8(0x173)](c);}};I(s,_0x1241b5(0x193),W),I(s,_0x1241b5(0x174),_0x5c840e[_0x1241b5(0x175)]),s=V([_0x23510b(_0x5d134d),_(0x1,_0x29d6ff(_0x509c62)),_(0x2,_0x4f9237)],s);function _0x45b4(_0x2df283,_0x2a448f){_0x2df283=_0x2df283-0x16c;const _0x55c2aa=_0x55c2();let _0x45b490=_0x55c2aa[_0x2df283];return _0x45b490;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1241b5=_0x45b4;(function(_0x19560b,_0xe734b9){const _0x304b82=_0x45b4,_0x2befc1=_0x19560b();while(!![]){try{const _0x31013c=-parseInt(_0x304b82(0x187))/0x1+-parseInt(_0x304b82(0x185))/0x2*(-parseInt(_0x304b82(0x180))/0x3)+-parseInt(_0x304b82(0x178))/0x4+parseInt(_0x304b82(0x18a))/0x5*(-parseInt(_0x304b82(0x192))/0x6)+-parseInt(_0x304b82(0x17c))/0x7*(-parseInt(_0x304b82(0x17f))/0x8)+parseInt(_0x304b82(0x17d))/0x9*(parseInt(_0x304b82(0x181))/0xa)+parseInt(_0x304b82(0x18b))/0xb;if(_0x31013c===_0xe734b9)break;else _0x2befc1['push'](_0x2befc1['shift']());}catch(_0x9af4a4){_0x2befc1['push'](_0x2befc1['shift']());}}}(_0x55c2,0xc660e));import{IExchangeOperateService as _0x44e9b0,UniverExchangeClientPlugin as _0x5d134d}from'@univerjs-pro/exchange-client';import{CommandType as _0x3e69b2,UniverInstanceType as _0x5c840e,Disposable as _0x585ca5,ICommandService as _0x215978,DependentOn as _0x23510b,Inject as _0x29d6ff,Injector as _0x509c62,IConfigService as _0x4f9237,Plugin as _0x434e67,merge as _0x46540a}from'@univerjs/core';import{MenuItemType as _0x792cdb,getMenuHiddenObservable as _0x962288,RibbonStartGroup as _0x54649d,IMenuManagerService as _0x2a2b07}from'@univerjs/ui';import{WorkbookExportPermission as _0x302d1f}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x2d8c05}from'@univerjs/sheets-ui';function _0x55c2(){const _0x3f3e41=['6yeNJTC','pluginName','length','setConfig','unit','exchange-client.operation.export-xlsx','FolderIcon','_initCommands','registerCommand','_initMenus','sheets-exchange-client.operation.exchange','BUTTON','exchange.upload','OPERATION','forEach','symbol','importXLSXToUnitId','_commandService','_configService','exchange.file','exchange-client.operation.import-xlsx','get','type','UNIVER_SHEET','SHEET_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','284392COPDRJ','menu','onReady','defineProperty','4543252GjjzbB','1053sVSdHi','getOwnPropertyDescriptor','16OxKWzi','3048QuMemX','41910WNGqyD','_config','importXLSXToSnapshot','mergeMenu','866bGxUrn','add','947470tqYwnH','_menuManagerService','SUBITEMS','4080495QKQneO','4607658ExuDZc','exportXLSXBySnapshot','_injector','sheets-exchange-client.config','exportXLSXByUnitId','DirectExportIcon','search'];_0x55c2=function(){return _0x3f3e41;};return _0x55c2();}const p={'id':_0x1241b5(0x172),'type':_0x3e69b2[_0x1241b5(0x19f)],'handler':async _0x336fe8=>{const _0x2649c4=_0x1241b5,_0x33da33=_0x336fe8['get'](_0x44e9b0);return new URLSearchParams(location['search'])[_0x2649c4(0x173)](_0x2649c4(0x196))?_0x33da33[_0x2649c4(0x16e)]():_0x33da33[_0x2649c4(0x183)](),!0x0;}},u={'id':_0x1241b5(0x197),'type':_0x3e69b2[_0x1241b5(0x19f)],'handler':async _0x4d76e1=>{const _0x42fcae=_0x1241b5,_0x338535=_0x4d76e1[_0x42fcae(0x173)](_0x44e9b0);return new URLSearchParams(location[_0x42fcae(0x191)])[_0x42fcae(0x173)](_0x42fcae(0x196))?_0x338535[_0x42fcae(0x18f)]():_0x338535[_0x42fcae(0x18c)](),!0x0;}},H=_0x1241b5(0x18e),l={},S=_0x1241b5(0x19c);function R(_0x4d210a){const _0x3e8cf4=_0x1241b5;return{'id':S,'type':_0x792cdb[_0x3e8cf4(0x189)],'icon':_0x3e8cf4(0x190),'tooltip':_0x3e8cf4(0x171),'hidden$':_0x962288(_0x4d210a,_0x5c840e[_0x3e8cf4(0x175)]),'disabled$':_0x2d8c05(_0x4d210a,{'workbookTypes':[_0x302d1f]})};}function w(){const _0x3fa064=_0x1241b5;return{'id':p['id'],'type':_0x792cdb[_0x3fa064(0x19d)],'title':_0x3fa064(0x19e),'icon':_0x3fa064(0x198)};}function D(){const _0x139a20=_0x1241b5;return{'id':u['id'],'type':_0x792cdb[_0x139a20(0x19d)],'title':'exchange.download','icon':'ExportIcon'};}const F={[_0x54649d['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x1241b5(0x17e)],A=(_0x4b5869,_0x5e9089,_0x9e68fe,_0x1c21e5)=>{const _0x4e883a=_0x1241b5;for(var _0x28c5be=_0x1c21e5>0x1?void 0x0:_0x1c21e5?G(_0x5e9089,_0x9e68fe):_0x5e9089,_0x515d22=_0x4b5869[_0x4e883a(0x194)]-0x1,_0x2b8027;_0x515d22>=0x0;_0x515d22--)(_0x2b8027=_0x4b5869[_0x515d22])&&(_0x28c5be=_0x2b8027(_0x28c5be)||_0x28c5be);return _0x28c5be;},d=(_0x4f4749,_0x3d835a)=>(_0x2331f4,_0x2fe6b1)=>_0x3d835a(_0x2331f4,_0x2fe6b1,_0x4f4749);let c=class extends _0x585ca5{constructor(_0x29d7fb,_0x4ab32b){const _0x1fbb55=_0x1241b5;super(),this[_0x1fbb55(0x16f)]=_0x29d7fb,this[_0x1fbb55(0x188)]=_0x4ab32b,this['_initCommands'](),this['_initMenus']();}[_0x1241b5(0x199)](){[p,u]['forEach'](_0x12b71e=>{const _0x61d730=_0x45b4;this[_0x61d730(0x177)](this[_0x61d730(0x16f)][_0x61d730(0x19a)](_0x12b71e));});}[_0x1241b5(0x19b)](){const _0x25dfe1=_0x1241b5;this[_0x25dfe1(0x188)][_0x25dfe1(0x184)](F);}};c=A([d(0x0,_0x215978),d(0x1,_0x2a2b07)],c);var j=Object[_0x1241b5(0x17b)],B=Object['getOwnPropertyDescriptor'],$=(_0xf3014b,_0x561c5c,_0x424ce7)=>_0x561c5c in _0xf3014b?j(_0xf3014b,_0x561c5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x424ce7}):_0xf3014b[_0x561c5c]=_0x424ce7,V=(_0x2fb9f5,_0x68c11f,_0xdcf058,_0x24d069)=>{const _0x18de80=_0x1241b5;for(var _0x517e04=_0x24d069>0x1?void 0x0:_0x24d069?B(_0x68c11f,_0xdcf058):_0x68c11f,_0x10e04b=_0x2fb9f5[_0x18de80(0x194)]-0x1,_0x39f4fd;_0x10e04b>=0x0;_0x10e04b--)(_0x39f4fd=_0x2fb9f5[_0x10e04b])&&(_0x517e04=_0x39f4fd(_0x517e04)||_0x517e04);return _0x517e04;},_=(_0x34bff5,_0x340661)=>(_0x4ba93e,_0x4e53cd)=>_0x340661(_0x4ba93e,_0x4e53cd,_0x34bff5),I=(_0x539789,_0x589b27,_0x1c13d7)=>$(_0x539789,typeof _0x589b27!=_0x1241b5(0x16d)?_0x589b27+'':_0x589b27,_0x1c13d7);const W=_0x1241b5(0x176);let s=class extends _0x434e67{constructor(_0x570e65=l,_0x4eb8ab,_0x45a592){const _0x2f98a8=_0x1241b5;super(),this['_config']=_0x570e65,this[_0x2f98a8(0x18d)]=_0x4eb8ab,this['_configService']=_0x45a592;const {menu:_0x43d2fa,..._0x2fff4e}=_0x46540a({},l,this[_0x2f98a8(0x182)]);_0x43d2fa&&this[_0x2f98a8(0x170)][_0x2f98a8(0x195)](_0x2f98a8(0x179),_0x43d2fa,{'merge':!0x0}),this[_0x2f98a8(0x170)][_0x2f98a8(0x195)](H,_0x2fff4e);}['onStarting'](){const _0x2c9e9b=_0x1241b5;[[c]][_0x2c9e9b(0x16c)](_0x2ac2e8=>this[_0x2c9e9b(0x18d)][_0x2c9e9b(0x186)](_0x2ac2e8));}[_0x1241b5(0x17a)](){const _0x3f15d8=_0x1241b5;this[_0x3f15d8(0x18d)][_0x3f15d8(0x173)](c);}};I(s,_0x1241b5(0x193),W),I(s,_0x1241b5(0x174),_0x5c840e[_0x1241b5(0x175)]),s=V([_0x23510b(_0x5d134d),_(0x1,_0x29d6ff(_0x509c62)),_(0x2,_0x4f9237)],s);function _0x45b4(_0x2df283,_0x2a448f){_0x2df283=_0x2df283-0x16c;const _0x55c2aa=_0x55c2();let _0x45b490=_0x55c2aa[_0x2df283];return _0x45b490;}export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x215614,_0x11c1fb){const _0x11287e=_0x4a8d,_0xe065e7=_0x215614();while(!![]){try{const _0x566756=parseInt(_0x11287e(0x150))/0x1+-parseInt(_0x11287e(0x15c))/0x2*(parseInt(_0x11287e(0x125))/0x3)+parseInt(_0x11287e(0x13c))/0x4*(parseInt(_0x11287e(0x137))/0x5)+-parseInt(_0x11287e(0x14d))/0x6+parseInt(_0x11287e(0x16f))/0x7*(parseInt(_0x11287e(0x14a))/0x8)+-parseInt(_0x11287e(0x126))/0x9+parseInt(_0x11287e(0x14e))/0xa;if(_0x566756===_0x11c1fb)break;else _0xe065e7['push'](_0xe065e7['shift']());}catch(_0x5ba58b){_0xe065e7['push'](_0xe065e7['shift']());}}}(_0x4944,0x71771),function(_0x3977e1,_0x2b135){const _0x118246=_0x4a8d;typeof exports==_0x118246(0x12a)&&typeof module<'u'?_0x2b135(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x118246(0x130)&&define['amd']?define([_0x118246(0x156),_0x118246(0x165),_0x118246(0x15d),_0x118246(0x151),_0x118246(0x124),_0x118246(0x12d)],_0x2b135):(_0x3977e1=typeof globalThis<'u'?globalThis:_0x3977e1||self,_0x2b135(_0x3977e1[_0x118246(0x142)]={},_0x3977e1[_0x118246(0x169)],_0x3977e1[_0x118246(0x139)],_0x3977e1[_0x118246(0x16d)],_0x3977e1[_0x118246(0x15e)],_0x3977e1[_0x118246(0x160)]));}(this,function(_0x214d31,_0x1445a6,_0xe7bf71,_0x4b3d3b,_0x2444bd,_0x9e102b){'use strict';const _0xcd9bf7=_0x4a8d;const _0x16b756={'id':_0xcd9bf7(0x14b),'type':_0xe7bf71[_0xcd9bf7(0x133)]['OPERATION'],'handler':async _0x4dfa2e=>{const _0x470e4d=_0xcd9bf7,_0x2eedbc=_0x4dfa2e['get'](_0x1445a6[_0x470e4d(0x138)]);return new URLSearchParams(location[_0x470e4d(0x128)])['get'](_0x470e4d(0x157))?_0x2eedbc[_0x470e4d(0x147)]():_0x2eedbc[_0x470e4d(0x15f)](),!0x0;}},_0x49cbca={'id':_0xcd9bf7(0x16c),'type':_0xe7bf71[_0xcd9bf7(0x133)][_0xcd9bf7(0x13f)],'handler':async _0xb28c9d=>{const _0x50875f=_0xcd9bf7,_0xc537b6=_0xb28c9d[_0x50875f(0x146)](_0x1445a6[_0x50875f(0x138)]);return new URLSearchParams(location[_0x50875f(0x128)])['get']('unit')?_0xc537b6[_0x50875f(0x149)]():_0xc537b6[_0x50875f(0x141)](),!0x0;}},_0x5b4d0f=_0xcd9bf7(0x132),_0x1d2935={},_0x2d8960=_0xcd9bf7(0x13e);function _0x5c1431(_0x80ba72){const _0x3bce7b=_0xcd9bf7;return{'id':_0x2d8960,'type':_0x4b3d3b['MenuItemType'][_0x3bce7b(0x129)],'icon':_0x3bce7b(0x159),'tooltip':_0x3bce7b(0x162),'hidden$':_0x4b3d3b[_0x3bce7b(0x143)](_0x80ba72,_0xe7bf71[_0x3bce7b(0x12c)][_0x3bce7b(0x166)]),'disabled$':_0x9e102b[_0x3bce7b(0x134)](_0x80ba72,{'workbookTypes':[_0x2444bd[_0x3bce7b(0x12e)]]})};}function _0x36d749(){const _0x19d234=_0xcd9bf7;return{'id':_0x16b756['id'],'type':_0x4b3d3b[_0x19d234(0x15b)][_0x19d234(0x131)],'title':'exchange.upload','icon':_0x19d234(0x155)};}function _0x23f9f5(){const _0x52fc60=_0xcd9bf7;return{'id':_0x49cbca['id'],'type':_0x4b3d3b[_0x52fc60(0x15b)]['BUTTON'],'title':'exchange.download','icon':_0x52fc60(0x14f)};}const _0x4f486a={[_0x4b3d3b['RibbonStartGroup']['OTHERS']]:{[_0x2d8960]:{'order':0.3,'menuItemFactory':_0x5c1431,[_0x16b756['id']]:{'order':0x0,'menuItemFactory':_0x36d749},[_0x49cbca['id']]:{'order':0x1,'menuItemFactory':_0x23f9f5}}}};var _0x294801=Object['getOwnPropertyDescriptor'],_0x4f3590=(_0x2baf63,_0x5f4832,_0x2e3380,_0x33289a)=>{const _0x3058cd=_0xcd9bf7;for(var _0x5be157=_0x33289a>0x1?void 0x0:_0x33289a?_0x294801(_0x5f4832,_0x2e3380):_0x5f4832,_0x23fe7f=_0x2baf63[_0x3058cd(0x163)]-0x1,_0x2cbcc3;_0x23fe7f>=0x0;_0x23fe7f--)(_0x2cbcc3=_0x2baf63[_0x23fe7f])&&(_0x5be157=_0x2cbcc3(_0x5be157)||_0x5be157);return _0x5be157;},_0x2dc8d9=(_0x9fa19b,_0x3b8c6f)=>(_0x576db6,_0x5a8265)=>_0x3b8c6f(_0x576db6,_0x5a8265,_0x9fa19b);let _0x529f58=class extends _0xe7bf71[_0xcd9bf7(0x158)]{constructor(_0x17047c,_0x5bbe68){const _0x125447=_0xcd9bf7;super(),this['_commandService']=_0x17047c,this[_0x125447(0x148)]=_0x5bbe68,this[_0x125447(0x171)](),this[_0x125447(0x170)]();}['_initCommands'](){const _0x4b2317=_0xcd9bf7;[_0x16b756,_0x49cbca][_0x4b2317(0x12f)](_0x2014f2=>{const _0x5e01ce=_0x4b2317;this[_0x5e01ce(0x164)](this['_commandService'][_0x5e01ce(0x16e)](_0x2014f2));});}[_0xcd9bf7(0x170)](){const _0x4a8189=_0xcd9bf7;this[_0x4a8189(0x148)][_0x4a8189(0x172)](_0x4f486a);}};_0x529f58=_0x4f3590([_0x2dc8d9(0x0,_0xe7bf71[_0xcd9bf7(0x168)]),_0x2dc8d9(0x1,_0x4b3d3b[_0xcd9bf7(0x154)])],_0x529f58);var _0x4641ba=Object[_0xcd9bf7(0x127)],_0x4653e4=Object[_0xcd9bf7(0x153)],_0x40d98c=(_0x3ba801,_0x366d5a,_0x55f001)=>_0x366d5a in _0x3ba801?_0x4641ba(_0x3ba801,_0x366d5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55f001}):_0x3ba801[_0x366d5a]=_0x55f001,_0x29d6f7=(_0x2fa85b,_0x61d5a8,_0x4e3e5f,_0x2a1045)=>{const _0x3e4872=_0xcd9bf7;for(var _0x17520d=_0x2a1045>0x1?void 0x0:_0x2a1045?_0x4653e4(_0x61d5a8,_0x4e3e5f):_0x61d5a8,_0x45f416=_0x2fa85b[_0x3e4872(0x163)]-0x1,_0x429e8a;_0x45f416>=0x0;_0x45f416--)(_0x429e8a=_0x2fa85b[_0x45f416])&&(_0x17520d=_0x429e8a(_0x17520d)||_0x17520d);return _0x17520d;},_0x395c75=(_0x3fb7df,_0x49cce0)=>(_0x1a5f0e,_0x3f6a36)=>_0x49cce0(_0x1a5f0e,_0x3f6a36,_0x3fb7df),_0x1dba84=(_0x5c226c,_0x107cd9,_0x56aa74)=>_0x40d98c(_0x5c226c,typeof _0x107cd9!=_0xcd9bf7(0x152)?_0x107cd9+'':_0x107cd9,_0x56aa74);const _0x4a092a=_0xcd9bf7(0x136);_0x214d31[_0xcd9bf7(0x16b)]=class extends _0xe7bf71['Plugin']{constructor(_0x49751c=_0x1d2935,_0x22ba34,_0x20f3b5){const _0x421964=_0xcd9bf7;super(),this[_0x421964(0x167)]=_0x49751c,this['_injector']=_0x22ba34,this['_configService']=_0x20f3b5;const {menu:_0x5c0a74,..._0x3d7db1}=_0xe7bf71[_0x421964(0x14c)]({},_0x1d2935,this[_0x421964(0x167)]);_0x5c0a74&&this[_0x421964(0x140)][_0x421964(0x12b)](_0x421964(0x161),_0x5c0a74,{'merge':!0x0}),this['_configService'][_0x421964(0x12b)](_0x5b4d0f,_0x3d7db1);}['onStarting'](){const _0x11281e=_0xcd9bf7;[[_0x529f58]]['forEach'](_0x4abe89=>this[_0x11281e(0x13d)]['add'](_0x4abe89));}[_0xcd9bf7(0x13a)](){this['_injector']['get'](_0x529f58);}},_0x1dba84(_0x214d31[_0xcd9bf7(0x16b)],'pluginName',_0x4a092a),_0x1dba84(_0x214d31[_0xcd9bf7(0x16b)],_0xcd9bf7(0x135),_0xe7bf71[_0xcd9bf7(0x12c)][_0xcd9bf7(0x166)]),_0x214d31[_0xcd9bf7(0x16b)]=_0x29d6f7([_0xe7bf71[_0xcd9bf7(0x16a)](_0x1445a6[_0xcd9bf7(0x145)]),_0x395c75(0x1,_0xe7bf71[_0xcd9bf7(0x123)](_0xe7bf71[_0xcd9bf7(0x13b)])),_0x395c75(0x2,_0xe7bf71['IConfigService'])],_0x214d31[_0xcd9bf7(0x16b)]),_0x214d31[_0xcd9bf7(0x174)]=_0x49cbca,_0x214d31[_0xcd9bf7(0x15a)]=_0x16b756,Object[_0xcd9bf7(0x127)](_0x214d31,Symbol[_0xcd9bf7(0x173)],{'value':_0xcd9bf7(0x144)});}));function _0x4a8d(_0x3a3560,_0xd511eb){_0x3a3560=_0x3a3560-0x123;const _0x49443c=_0x4944();let _0x4a8da7=_0x49443c[_0x3a3560];return _0x4a8da7;}function _0x4944(){const _0x55b6d7=['ExportIcon','50873rgUhLv','@univerjs/ui','symbol','getOwnPropertyDescriptor','IMenuManagerService','FolderIcon','exports','unit','Disposable','DirectExportIcon','ImportXLSXOperation','MenuItemType','62rzRLwo','@univerjs/core','UniverSheets','importXLSXToSnapshot','UniverSheetsUi','menu','exchange.file','length','disposeWithMe','@univerjs-pro/exchange-client','UNIVER_SHEET','_config','ICommandService','UniverProExchangeClient','DependentOn','UniverSheetsExchangeClientPlugin','exchange-client.operation.export-xlsx','UniverUi','registerCommand','1027887VtBxmr','_initMenus','_initCommands','mergeMenu','toStringTag','ExportXLSXOperation','Inject','@univerjs/sheets','37455lehVoF','7978104nhEsND','defineProperty','search','SUBITEMS','object','setConfig','UniverInstanceType','@univerjs/sheets-ui','WorkbookExportPermission','forEach','function','BUTTON','sheets-exchange-client.config','CommandType','getCurrentRangeDisable$','type','SHEET_EXCHANGE_CLIENT_PLUGIN','45YUZfLa','IExchangeOperateService','UniverCore','onReady','Injector','16772soidhQ','_injector','sheets-exchange-client.operation.exchange','OPERATION','_configService','exportXLSXBySnapshot','UniverProSheetsExchangeClient','getMenuHiddenObservable','Module','UniverExchangeClientPlugin','get','importXLSXToUnitId','_menuManagerService','exportXLSXByUnitId','24cilDDv','exchange-client.operation.import-xlsx','merge','3521238rkIjwT','17959840NTwGiC'];_0x4944=function(){return _0x55b6d7;};return _0x4944();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.15.0-insiders.
|
|
3
|
+
"version": "0.15.0-insiders.20260108-7b9120d",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.15.0-insiders.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/sheets": "0.15.0-insiders.
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.0-insiders.20260108-7b9120d",
|
|
46
|
+
"@univerjs/sheets": "0.15.0-insiders.20260108-7b9120d",
|
|
47
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20260108-7b9120d",
|
|
48
|
+
"@univerjs/ui": "0.15.0-insiders.20260108-7b9120d",
|
|
49
|
+
"@univerjs/core": "0.15.0-insiders.20260108-7b9120d"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vite": "^7.3.
|
|
53
|
+
"vite": "^7.3.1",
|
|
54
54
|
"vitest": "^4.0.16",
|
|
55
55
|
"@univerjs-infra/shared": "0.15.0"
|
|
56
56
|
},
|