@univerjs-pro/sheets-exchange-client 0.10.8 → 0.10.9-experimental.20250925-61b61a0
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 _0x54e4f3=_0x4b6d;(function(_0x57e20f,_0x1728f8){const _0x1ef110=_0x4b6d,_0x43df99=_0x57e20f();while(!![]){try{const _0x3f3640=parseInt(_0x1ef110(0x11f))/0x1*(-parseInt(_0x1ef110(0x132))/0x2)+parseInt(_0x1ef110(0x115))/0x3*(-parseInt(_0x1ef110(0x139))/0x4)+-parseInt(_0x1ef110(0x12f))/0x5*(-parseInt(_0x1ef110(0x123))/0x6)+-parseInt(_0x1ef110(0x104))/0x7*(parseInt(_0x1ef110(0x13c))/0x8)+parseInt(_0x1ef110(0x10a))/0x9*(parseInt(_0x1ef110(0x10e))/0xa)+parseInt(_0x1ef110(0x106))/0xb*(-parseInt(_0x1ef110(0x116))/0xc)+-parseInt(_0x1ef110(0x12e))/0xd*(-parseInt(_0x1ef110(0x135))/0xe);if(_0x3f3640===_0x1728f8)break;else _0x43df99['push'](_0x43df99['shift']());}catch(_0x1d6b54){_0x43df99['push'](_0x43df99['shift']());}}}(_0x19ca,0x1cb1a));Object[_0x54e4f3(0x108)](exports,Symbol[_0x54e4f3(0x137)],{'value':'Module'});function _0x4b6d(_0x3a03eb,_0x5e33a3){const _0x19caf6=_0x19ca();return _0x4b6d=function(_0x4b6d7b,_0x3dac52){_0x4b6d7b=_0x4b6d7b-0x100;let _0x5bc047=_0x19caf6[_0x4b6d7b];return _0x5bc047;},_0x4b6d(_0x3a03eb,_0x5e33a3);}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':_0x54e4f3(0x105),'type':i[_0x54e4f3(0x113)]['OPERATION'],'handler':async _0x33cf5c=>{const _0x52f05d=_0x54e4f3,_0x5c5527=_0x33cf5c['get'](g[_0x52f05d(0x10c)]);return new URLSearchParams(location[_0x52f05d(0x101)])['get'](_0x52f05d(0x111))?_0x5c5527['importXLSXToUnitId']():_0x5c5527['importXLSXToSnapshot'](),!0x0;}},p={'id':_0x54e4f3(0x128),'type':i[_0x54e4f3(0x113)][_0x54e4f3(0x120)],'handler':async _0x1a02c0=>{const _0x2776f7=_0x54e4f3,_0x5b3e03=_0x1a02c0[_0x2776f7(0x102)](g[_0x2776f7(0x10c)]);return new URLSearchParams(location[_0x2776f7(0x101)])['get'](_0x2776f7(0x111))?_0x5b3e03['exportXLSXByUnitId']():_0x5b3e03[_0x2776f7(0x127)](),!0x0;}},v=_0x54e4f3(0x129),h={},S='sheets-exchange-client.operation.exchange';function x(_0x1689fe){const _0x324170=_0x54e4f3;return{'id':S,'type':c[_0x324170(0x124)][_0x324170(0x122)],'icon':_0x324170(0x110),'tooltip':'exchange.file','hidden$':c[_0x324170(0x10f)](_0x1689fe,i[_0x324170(0x130)]['UNIVER_SHEET']),'disabled$':I['getCurrentRangeDisable$'](_0x1689fe,{'workbookTypes':[_[_0x324170(0x11b)]]})};}function P(){const _0x1af9f8=_0x54e4f3;return{'id':l['id'],'type':c[_0x1af9f8(0x124)]['BUTTON'],'title':_0x1af9f8(0x12d),'icon':_0x1af9f8(0x12b)};}function C(){const _0x38b72e=_0x54e4f3;return{'id':p['id'],'type':c[_0x38b72e(0x124)][_0x38b72e(0x107)],'title':'exchange.download','icon':_0x38b72e(0x134)};}const f={[c[_0x54e4f3(0x11e)][_0x54e4f3(0x109)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object['getOwnPropertyDescriptor'],y=(_0xe6022a,_0x22283b,_0x32a638,_0x1735c7)=>{const _0x42dec8=_0x54e4f3;for(var _0x1d5812=_0x1735c7>0x1?void 0x0:_0x1735c7?T(_0x22283b,_0x32a638):_0x22283b,_0x322375=_0xe6022a[_0x42dec8(0x126)]-0x1,_0x1fd02c;_0x322375>=0x0;_0x322375--)(_0x1fd02c=_0xe6022a[_0x322375])&&(_0x1d5812=_0x1fd02c(_0x1d5812)||_0x1d5812);return _0x1d5812;},m=(_0x93d62b,_0x3409aa)=>(_0xfbe09b,_0x13e7db)=>_0x3409aa(_0xfbe09b,_0x13e7db,_0x93d62b);let u=class extends i['Disposable']{constructor(_0x29e0f2,_0x555c35){const _0x496439=_0x54e4f3;super(),this[_0x496439(0x12a)]=_0x29e0f2,this[_0x496439(0x13d)]=_0x555c35,this[_0x496439(0x13a)](),this['_initMenus']();}[_0x54e4f3(0x13a)](){const _0x1c5a28=_0x54e4f3;[l,p][_0x1c5a28(0x119)](_0x4e5987=>{const _0x3eb977=_0x1c5a28;this[_0x3eb977(0x13e)](this[_0x3eb977(0x12a)]['registerCommand'](_0x4e5987));});}[_0x54e4f3(0x117)](){const _0x4b10f3=_0x54e4f3;this[_0x4b10f3(0x13d)]['mergeMenu'](f);}};function _0x19ca(){const _0x4efc6f=['609018orbQtH','2073396PVtDVg','_initMenus','onStarting','forEach','Inject','WorkbookExportPermission','type','getOwnPropertyDescriptor','RibbonStartGroup','22lmFDPv','OPERATION','add','SUBITEMS','7422xDCtAV','MenuItemType','_configService','length','exportXLSXBySnapshot','exchange-client.operation.export-xlsx','sheets-exchange-client.config','_commandService','FolderIcon','setConfig','exchange.upload','13QaMQIN','690SJHTgX','UniverInstanceType','Plugin','3656XNkyvZ','UNIVER_SHEET','ExportIcon','4138218Etceih','Injector','toStringTag','symbol','4NLnUJK','_initCommands','SHEET_EXCHANGE_CLIENT_PLUGIN','1106296BhseJf','_menuManagerService','disposeWithMe','_injector','search','get','ICommandService','7BhOBLX','exchange-client.operation.import-xlsx','11xHTGcW','BUTTON','defineProperty','OTHERS','9ktcHNg','UniverExchangeClientPlugin','IExchangeOperateService','UniverSheetsExchangeClientPlugin','2055290ZBeyEw','getMenuHiddenObservable','DirectExportIcon','unit','pluginName','CommandType','DependentOn'];_0x19ca=function(){return _0x4efc6f;};return _0x19ca();}u=y([m(0x0,i[_0x54e4f3(0x103)]),m(0x1,c['IMenuManagerService'])],u);var O=Object[_0x54e4f3(0x108)],U=Object[_0x54e4f3(0x11d)],X=(_0xce234e,_0x1d76bc,_0x37645d)=>_0x1d76bc in _0xce234e?O(_0xce234e,_0x1d76bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37645d}):_0xce234e[_0x1d76bc]=_0x37645d,N=(_0x352d39,_0x3e9b56,_0x5c8289,_0x2c1289)=>{const _0xc78088=_0x54e4f3;for(var _0x5eb9d1=_0x2c1289>0x1?void 0x0:_0x2c1289?U(_0x3e9b56,_0x5c8289):_0x3e9b56,_0x46037f=_0x352d39[_0xc78088(0x126)]-0x1,_0xea3fbc;_0x46037f>=0x0;_0x46037f--)(_0xea3fbc=_0x352d39[_0x46037f])&&(_0x5eb9d1=_0xea3fbc(_0x5eb9d1)||_0x5eb9d1);return _0x5eb9d1;},d=(_0x4539e7,_0x3d39fd)=>(_0x1e92d7,_0x1cb159)=>_0x3d39fd(_0x1e92d7,_0x1cb159,_0x4539e7),E=(_0x3964c8,_0x34aa8d,_0x11d4f3)=>X(_0x3964c8,typeof _0x34aa8d!=_0x54e4f3(0x138)?_0x34aa8d+'':_0x34aa8d,_0x11d4f3);const L=_0x54e4f3(0x13b);exports[_0x54e4f3(0x10d)]=class extends i[_0x54e4f3(0x131)]{constructor(_0x1dad27=h,_0x158708,_0x5ea9ee){const _0x215f6d=_0x54e4f3;super(),this['_config']=_0x1dad27,this[_0x215f6d(0x100)]=_0x158708,this['_configService']=_0x5ea9ee;const {menu:_0x400f81,..._0x5ada7d}=i['merge']({},h,this['_config']);_0x400f81&&this[_0x215f6d(0x125)][_0x215f6d(0x12c)]('menu',_0x400f81,{'merge':!0x0}),this[_0x215f6d(0x125)][_0x215f6d(0x12c)](v,_0x5ada7d);}[_0x54e4f3(0x118)](){const _0x189bf4=_0x54e4f3;[[u]][_0x189bf4(0x119)](_0x2dd0a6=>this[_0x189bf4(0x100)][_0x189bf4(0x121)](_0x2dd0a6));}['onReady'](){const _0x4d3d4e=_0x54e4f3;this['_injector'][_0x4d3d4e(0x102)](u);}},E(exports[_0x54e4f3(0x10d)],_0x54e4f3(0x112),L),E(exports[_0x54e4f3(0x10d)],_0x54e4f3(0x11c),i[_0x54e4f3(0x130)][_0x54e4f3(0x133)]),exports[_0x54e4f3(0x10d)]=N([i[_0x54e4f3(0x114)](g[_0x54e4f3(0x10b)]),d(0x1,i[_0x54e4f3(0x11a)](i[_0x54e4f3(0x136)])),d(0x2,i['IConfigService'])],exports[_0x54e4f3(0x10d)]),exports['ExportXLSXOperation']=p,exports['ImportXLSXOperation']=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x55b9bb=_0x455f;(function(_0x5b14db,_0x258c26){const _0x2e7f3e=_0x455f,_0x48088b=_0x5b14db();while(!![]){try{const _0x160614=parseInt(_0x2e7f3e(0x6e))/0x1*(-parseInt(_0x2e7f3e(0x76))/0x2)+-parseInt(_0x2e7f3e(0x99))/0x3+-parseInt(_0x2e7f3e(0x70))/0x4*(-parseInt(_0x2e7f3e(0x9d))/0x5)+parseInt(_0x2e7f3e(0x95))/0x6+parseInt(_0x2e7f3e(0x94))/0x7+parseInt(_0x2e7f3e(0x91))/0x8*(parseInt(_0x2e7f3e(0x7a))/0x9)+-parseInt(_0x2e7f3e(0x6d))/0xa;if(_0x160614===_0x258c26)break;else _0x48088b['push'](_0x48088b['shift']());}catch(_0x372f5f){_0x48088b['push'](_0x48088b['shift']());}}}(_0x5914,0x4e8cf));import{IExchangeOperateService as _0x566914,UniverExchangeClientPlugin as _0x59374c}from'@univerjs-pro/exchange-client';import{CommandType as _0xc3fa01,UniverInstanceType as _0x591a5d,Disposable as _0xcb133,ICommandService as _0x4f718e,DependentOn as _0x504a23,Inject as _0x58d8f9,Injector as _0x465d76,IConfigService as _0x1907e9,Plugin as _0x192a55,merge as _0x42f4c3}from'@univerjs/core';import{MenuItemType as _0x36969d,getMenuHiddenObservable as _0x2ce9e2,RibbonStartGroup as _0x44318e,IMenuManagerService as _0x4d8544}from'@univerjs/ui';import{WorkbookExportPermission as _0x2e7fe2}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x574dad}from'@univerjs/sheets-ui';function _0x455f(_0x354f13,_0x5945dc){const _0x5914e5=_0x5914();return _0x455f=function(_0x455f20,_0x56f604){_0x455f20=_0x455f20-0x6d;let _0x433cbb=_0x5914e5[_0x455f20];return _0x433cbb;},_0x455f(_0x354f13,_0x5945dc);}const p={'id':_0x55b9bb(0x7d),'type':_0xc3fa01[_0x55b9bb(0x98)],'handler':async _0x57f3d4=>{const _0x50ef35=_0x55b9bb,_0x35d4e9=_0x57f3d4[_0x50ef35(0x90)](_0x566914);return new URLSearchParams(location[_0x50ef35(0x93)])[_0x50ef35(0x90)](_0x50ef35(0x73))?_0x35d4e9[_0x50ef35(0x88)]():_0x35d4e9[_0x50ef35(0x86)](),!0x0;}},u={'id':_0x55b9bb(0x7b),'type':_0xc3fa01[_0x55b9bb(0x98)],'handler':async _0x44c107=>{const _0x389889=_0x55b9bb,_0x4e8c7f=_0x44c107[_0x389889(0x90)](_0x566914);return new URLSearchParams(location[_0x389889(0x93)])[_0x389889(0x90)](_0x389889(0x73))?_0x4e8c7f[_0x389889(0x77)]():_0x4e8c7f['exportXLSXBySnapshot'](),!0x0;}},H=_0x55b9bb(0x89),l={},S=_0x55b9bb(0x7f);function R(_0x28ba4e){const _0x15f035=_0x55b9bb;return{'id':S,'type':_0x36969d[_0x15f035(0x8c)],'icon':'DirectExportIcon','tooltip':_0x15f035(0x71),'hidden$':_0x2ce9e2(_0x28ba4e,_0x591a5d[_0x15f035(0x92)]),'disabled$':_0x574dad(_0x28ba4e,{'workbookTypes':[_0x2e7fe2]})};}function w(){const _0x7d93a6=_0x55b9bb;return{'id':p['id'],'type':_0x36969d[_0x7d93a6(0x74)],'title':_0x7d93a6(0x7e),'icon':_0x7d93a6(0x8e)};}function D(){const _0x4760bc=_0x55b9bb;return{'id':u['id'],'type':_0x36969d['BUTTON'],'title':_0x4760bc(0x87),'icon':_0x4760bc(0x82)};}const F={[_0x44318e[_0x55b9bb(0x85)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x55b9bb(0x97)],A=(_0x19c6df,_0x3d92cd,_0x1eb13f,_0x4ed514)=>{for(var _0x4a206c=_0x4ed514>0x1?void 0x0:_0x4ed514?G(_0x3d92cd,_0x1eb13f):_0x3d92cd,_0x544c84=_0x19c6df['length']-0x1,_0x3fd4a2;_0x544c84>=0x0;_0x544c84--)(_0x3fd4a2=_0x19c6df[_0x544c84])&&(_0x4a206c=_0x3fd4a2(_0x4a206c)||_0x4a206c);return _0x4a206c;},d=(_0x4ecf27,_0x21b3be)=>(_0x27bcdd,_0x408464)=>_0x21b3be(_0x27bcdd,_0x408464,_0x4ecf27);function _0x5914(){const _0x5687e4=['4KVhhKo','exchange.file','mergeMenu','unit','BUTTON','_initMenus','21214DgxJOo','exportXLSXByUnitId','menu','_initCommands','1476HOjeVt','exchange-client.operation.export-xlsx','_commandService','exchange-client.operation.import-xlsx','exchange.upload','sheets-exchange-client.operation.exchange','registerCommand','onReady','ExportIcon','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','OTHERS','importXLSXToSnapshot','exchange.download','importXLSXToUnitId','sheets-exchange-client.config','_configService','length','SUBITEMS','add','FolderIcon','_injector','get','28312SqFHpI','UNIVER_SHEET','search','2903089UtVEgR','3417450JgAlwY','onStarting','getOwnPropertyDescriptor','OPERATION','1193388mMhJVt','_config','disposeWithMe','setConfig','1254935dRMKzW','_menuManagerService','forEach','8309710ZHjulx','25ctllBv','pluginName'];_0x5914=function(){return _0x5687e4;};return _0x5914();}let c=class extends _0xcb133{constructor(_0x27d42a,_0xc0815d){const _0x2d5a21=_0x55b9bb;super(),this[_0x2d5a21(0x7c)]=_0x27d42a,this[_0x2d5a21(0x9e)]=_0xc0815d,this[_0x2d5a21(0x79)](),this[_0x2d5a21(0x75)]();}[_0x55b9bb(0x79)](){const _0x5e244b=_0x55b9bb;[p,u][_0x5e244b(0x9f)](_0x2a9f15=>{const _0x4e5fb7=_0x5e244b;this[_0x4e5fb7(0x9b)](this['_commandService'][_0x4e5fb7(0x80)](_0x2a9f15));});}[_0x55b9bb(0x75)](){const _0xcc91f1=_0x55b9bb;this[_0xcc91f1(0x9e)][_0xcc91f1(0x72)](F);}};c=A([d(0x0,_0x4f718e),d(0x1,_0x4d8544)],c);var j=Object[_0x55b9bb(0x83)],B=Object[_0x55b9bb(0x97)],$=(_0x372fed,_0x5216e9,_0x4594cd)=>_0x5216e9 in _0x372fed?j(_0x372fed,_0x5216e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4594cd}):_0x372fed[_0x5216e9]=_0x4594cd,V=(_0x449dc2,_0x2bb310,_0x4f1fbc,_0x215fe0)=>{const _0x3e1c6d=_0x55b9bb;for(var _0x8dbdda=_0x215fe0>0x1?void 0x0:_0x215fe0?B(_0x2bb310,_0x4f1fbc):_0x2bb310,_0x324609=_0x449dc2[_0x3e1c6d(0x8b)]-0x1,_0x1e164b;_0x324609>=0x0;_0x324609--)(_0x1e164b=_0x449dc2[_0x324609])&&(_0x8dbdda=_0x1e164b(_0x8dbdda)||_0x8dbdda);return _0x8dbdda;},_=(_0x5d4008,_0x300fa3)=>(_0x4465e7,_0x582ad7)=>_0x300fa3(_0x4465e7,_0x582ad7,_0x5d4008),I=(_0x165cc7,_0x3dbe4f,_0x1ecce4)=>$(_0x165cc7,typeof _0x3dbe4f!='symbol'?_0x3dbe4f+'':_0x3dbe4f,_0x1ecce4);const W=_0x55b9bb(0x84);let s=class extends _0x192a55{constructor(_0x9b0563=l,_0x35f40a,_0x2248b6){const _0x4d3fee=_0x55b9bb;super(),this[_0x4d3fee(0x9a)]=_0x9b0563,this[_0x4d3fee(0x8f)]=_0x35f40a,this[_0x4d3fee(0x8a)]=_0x2248b6;const {menu:_0x5131df,..._0x5dbaf6}=_0x42f4c3({},l,this[_0x4d3fee(0x9a)]);_0x5131df&&this[_0x4d3fee(0x8a)][_0x4d3fee(0x9c)](_0x4d3fee(0x78),_0x5131df,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x5dbaf6);}[_0x55b9bb(0x96)](){const _0x757142=_0x55b9bb;[[c]]['forEach'](_0x5afe98=>this[_0x757142(0x8f)][_0x757142(0x8d)](_0x5afe98));}[_0x55b9bb(0x81)](){const _0xf1e480=_0x55b9bb;this[_0xf1e480(0x8f)][_0xf1e480(0x90)](c);}};I(s,_0x55b9bb(0x6f),W),I(s,'type',_0x591a5d[_0x55b9bb(0x92)]),s=V([_0x504a23(_0x59374c),_(0x1,_0x58d8f9(_0x465d76)),_(0x2,_0x1907e9)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x55b9bb=_0x455f;(function(_0x5b14db,_0x258c26){const _0x2e7f3e=_0x455f,_0x48088b=_0x5b14db();while(!![]){try{const _0x160614=parseInt(_0x2e7f3e(0x6e))/0x1*(-parseInt(_0x2e7f3e(0x76))/0x2)+-parseInt(_0x2e7f3e(0x99))/0x3+-parseInt(_0x2e7f3e(0x70))/0x4*(-parseInt(_0x2e7f3e(0x9d))/0x5)+parseInt(_0x2e7f3e(0x95))/0x6+parseInt(_0x2e7f3e(0x94))/0x7+parseInt(_0x2e7f3e(0x91))/0x8*(parseInt(_0x2e7f3e(0x7a))/0x9)+-parseInt(_0x2e7f3e(0x6d))/0xa;if(_0x160614===_0x258c26)break;else _0x48088b['push'](_0x48088b['shift']());}catch(_0x372f5f){_0x48088b['push'](_0x48088b['shift']());}}}(_0x5914,0x4e8cf));import{IExchangeOperateService as _0x566914,UniverExchangeClientPlugin as _0x59374c}from'@univerjs-pro/exchange-client';import{CommandType as _0xc3fa01,UniverInstanceType as _0x591a5d,Disposable as _0xcb133,ICommandService as _0x4f718e,DependentOn as _0x504a23,Inject as _0x58d8f9,Injector as _0x465d76,IConfigService as _0x1907e9,Plugin as _0x192a55,merge as _0x42f4c3}from'@univerjs/core';import{MenuItemType as _0x36969d,getMenuHiddenObservable as _0x2ce9e2,RibbonStartGroup as _0x44318e,IMenuManagerService as _0x4d8544}from'@univerjs/ui';import{WorkbookExportPermission as _0x2e7fe2}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x574dad}from'@univerjs/sheets-ui';function _0x455f(_0x354f13,_0x5945dc){const _0x5914e5=_0x5914();return _0x455f=function(_0x455f20,_0x56f604){_0x455f20=_0x455f20-0x6d;let _0x433cbb=_0x5914e5[_0x455f20];return _0x433cbb;},_0x455f(_0x354f13,_0x5945dc);}const p={'id':_0x55b9bb(0x7d),'type':_0xc3fa01[_0x55b9bb(0x98)],'handler':async _0x57f3d4=>{const _0x50ef35=_0x55b9bb,_0x35d4e9=_0x57f3d4[_0x50ef35(0x90)](_0x566914);return new URLSearchParams(location[_0x50ef35(0x93)])[_0x50ef35(0x90)](_0x50ef35(0x73))?_0x35d4e9[_0x50ef35(0x88)]():_0x35d4e9[_0x50ef35(0x86)](),!0x0;}},u={'id':_0x55b9bb(0x7b),'type':_0xc3fa01[_0x55b9bb(0x98)],'handler':async _0x44c107=>{const _0x389889=_0x55b9bb,_0x4e8c7f=_0x44c107[_0x389889(0x90)](_0x566914);return new URLSearchParams(location[_0x389889(0x93)])[_0x389889(0x90)](_0x389889(0x73))?_0x4e8c7f[_0x389889(0x77)]():_0x4e8c7f['exportXLSXBySnapshot'](),!0x0;}},H=_0x55b9bb(0x89),l={},S=_0x55b9bb(0x7f);function R(_0x28ba4e){const _0x15f035=_0x55b9bb;return{'id':S,'type':_0x36969d[_0x15f035(0x8c)],'icon':'DirectExportIcon','tooltip':_0x15f035(0x71),'hidden$':_0x2ce9e2(_0x28ba4e,_0x591a5d[_0x15f035(0x92)]),'disabled$':_0x574dad(_0x28ba4e,{'workbookTypes':[_0x2e7fe2]})};}function w(){const _0x7d93a6=_0x55b9bb;return{'id':p['id'],'type':_0x36969d[_0x7d93a6(0x74)],'title':_0x7d93a6(0x7e),'icon':_0x7d93a6(0x8e)};}function D(){const _0x4760bc=_0x55b9bb;return{'id':u['id'],'type':_0x36969d['BUTTON'],'title':_0x4760bc(0x87),'icon':_0x4760bc(0x82)};}const F={[_0x44318e[_0x55b9bb(0x85)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x55b9bb(0x97)],A=(_0x19c6df,_0x3d92cd,_0x1eb13f,_0x4ed514)=>{for(var _0x4a206c=_0x4ed514>0x1?void 0x0:_0x4ed514?G(_0x3d92cd,_0x1eb13f):_0x3d92cd,_0x544c84=_0x19c6df['length']-0x1,_0x3fd4a2;_0x544c84>=0x0;_0x544c84--)(_0x3fd4a2=_0x19c6df[_0x544c84])&&(_0x4a206c=_0x3fd4a2(_0x4a206c)||_0x4a206c);return _0x4a206c;},d=(_0x4ecf27,_0x21b3be)=>(_0x27bcdd,_0x408464)=>_0x21b3be(_0x27bcdd,_0x408464,_0x4ecf27);function _0x5914(){const _0x5687e4=['4KVhhKo','exchange.file','mergeMenu','unit','BUTTON','_initMenus','21214DgxJOo','exportXLSXByUnitId','menu','_initCommands','1476HOjeVt','exchange-client.operation.export-xlsx','_commandService','exchange-client.operation.import-xlsx','exchange.upload','sheets-exchange-client.operation.exchange','registerCommand','onReady','ExportIcon','defineProperty','SHEET_EXCHANGE_CLIENT_PLUGIN','OTHERS','importXLSXToSnapshot','exchange.download','importXLSXToUnitId','sheets-exchange-client.config','_configService','length','SUBITEMS','add','FolderIcon','_injector','get','28312SqFHpI','UNIVER_SHEET','search','2903089UtVEgR','3417450JgAlwY','onStarting','getOwnPropertyDescriptor','OPERATION','1193388mMhJVt','_config','disposeWithMe','setConfig','1254935dRMKzW','_menuManagerService','forEach','8309710ZHjulx','25ctllBv','pluginName'];_0x5914=function(){return _0x5687e4;};return _0x5914();}let c=class extends _0xcb133{constructor(_0x27d42a,_0xc0815d){const _0x2d5a21=_0x55b9bb;super(),this[_0x2d5a21(0x7c)]=_0x27d42a,this[_0x2d5a21(0x9e)]=_0xc0815d,this[_0x2d5a21(0x79)](),this[_0x2d5a21(0x75)]();}[_0x55b9bb(0x79)](){const _0x5e244b=_0x55b9bb;[p,u][_0x5e244b(0x9f)](_0x2a9f15=>{const _0x4e5fb7=_0x5e244b;this[_0x4e5fb7(0x9b)](this['_commandService'][_0x4e5fb7(0x80)](_0x2a9f15));});}[_0x55b9bb(0x75)](){const _0xcc91f1=_0x55b9bb;this[_0xcc91f1(0x9e)][_0xcc91f1(0x72)](F);}};c=A([d(0x0,_0x4f718e),d(0x1,_0x4d8544)],c);var j=Object[_0x55b9bb(0x83)],B=Object[_0x55b9bb(0x97)],$=(_0x372fed,_0x5216e9,_0x4594cd)=>_0x5216e9 in _0x372fed?j(_0x372fed,_0x5216e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4594cd}):_0x372fed[_0x5216e9]=_0x4594cd,V=(_0x449dc2,_0x2bb310,_0x4f1fbc,_0x215fe0)=>{const _0x3e1c6d=_0x55b9bb;for(var _0x8dbdda=_0x215fe0>0x1?void 0x0:_0x215fe0?B(_0x2bb310,_0x4f1fbc):_0x2bb310,_0x324609=_0x449dc2[_0x3e1c6d(0x8b)]-0x1,_0x1e164b;_0x324609>=0x0;_0x324609--)(_0x1e164b=_0x449dc2[_0x324609])&&(_0x8dbdda=_0x1e164b(_0x8dbdda)||_0x8dbdda);return _0x8dbdda;},_=(_0x5d4008,_0x300fa3)=>(_0x4465e7,_0x582ad7)=>_0x300fa3(_0x4465e7,_0x582ad7,_0x5d4008),I=(_0x165cc7,_0x3dbe4f,_0x1ecce4)=>$(_0x165cc7,typeof _0x3dbe4f!='symbol'?_0x3dbe4f+'':_0x3dbe4f,_0x1ecce4);const W=_0x55b9bb(0x84);let s=class extends _0x192a55{constructor(_0x9b0563=l,_0x35f40a,_0x2248b6){const _0x4d3fee=_0x55b9bb;super(),this[_0x4d3fee(0x9a)]=_0x9b0563,this[_0x4d3fee(0x8f)]=_0x35f40a,this[_0x4d3fee(0x8a)]=_0x2248b6;const {menu:_0x5131df,..._0x5dbaf6}=_0x42f4c3({},l,this[_0x4d3fee(0x9a)]);_0x5131df&&this[_0x4d3fee(0x8a)][_0x4d3fee(0x9c)](_0x4d3fee(0x78),_0x5131df,{'merge':!0x0}),this['_configService']['setConfig'](H,_0x5dbaf6);}[_0x55b9bb(0x96)](){const _0x757142=_0x55b9bb;[[c]]['forEach'](_0x5afe98=>this[_0x757142(0x8f)][_0x757142(0x8d)](_0x5afe98));}[_0x55b9bb(0x81)](){const _0xf1e480=_0x55b9bb;this[_0xf1e480(0x8f)][_0xf1e480(0x90)](c);}};I(s,_0x55b9bb(0x6f),W),I(s,'type',_0x591a5d[_0x55b9bb(0x92)]),s=V([_0x504a23(_0x59374c),_(0x1,_0x58d8f9(_0x465d76)),_(0x2,_0x1907e9)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b50d7,_0x1b6c80){const _0x97009e=_0x2f8e,_0xf8fa40=_0x3b50d7();while(!![]){try{const _0x138c96=-parseInt(_0x97009e(0x1ba))/0x1*(parseInt(_0x97009e(0x1b4))/0x2)+-parseInt(_0x97009e(0x1df))/0x3+parseInt(_0x97009e(0x1e2))/0x4+-parseInt(_0x97009e(0x1b5))/0x5*(parseInt(_0x97009e(0x1e1))/0x6)+-parseInt(_0x97009e(0x1f1))/0x7*(parseInt(_0x97009e(0x205))/0x8)+parseInt(_0x97009e(0x1c4))/0x9*(-parseInt(_0x97009e(0x1c6))/0xa)+-parseInt(_0x97009e(0x1e9))/0xb*(-parseInt(_0x97009e(0x1d6))/0xc);if(_0x138c96===_0x1b6c80)break;else _0xf8fa40['push'](_0xf8fa40['shift']());}catch(_0x19f7e0){_0xf8fa40['push'](_0xf8fa40['shift']());}}}(_0x34ff,0x5b45d),function(_0x48f8ac,_0x5014d6){const _0x1b0622=_0x2f8e;typeof exports=='object'&&typeof module<'u'?_0x5014d6(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1b0622(0x1c8)&&define[_0x1b0622(0x1db)]?define([_0x1b0622(0x1c1),'@univerjs-pro/exchange-client','@univerjs/core',_0x1b0622(0x1fd),'@univerjs/sheets',_0x1b0622(0x1b3)],_0x5014d6):(_0x48f8ac=typeof globalThis<'u'?globalThis:_0x48f8ac||self,_0x5014d6(_0x48f8ac[_0x1b0622(0x1e0)]={},_0x48f8ac[_0x1b0622(0x1c2)],_0x48f8ac['UniverCore'],_0x48f8ac[_0x1b0622(0x1dd)],_0x48f8ac[_0x1b0622(0x1bb)],_0x48f8ac[_0x1b0622(0x1e4)]));}(this,function(_0x2d9c48,_0x50d072,_0x2fce5c,_0x1a5a0a,_0xca4321,_0x265ec8){'use strict';const _0x205a6c=_0x2f8e;const _0xd8f0b7={'id':_0x205a6c(0x1fc),'type':_0x2fce5c[_0x205a6c(0x1b7)][_0x205a6c(0x1d9)],'handler':async _0x128679=>{const _0x55ecca=_0x205a6c,_0x426698=_0x128679[_0x55ecca(0x1ea)](_0x50d072[_0x55ecca(0x1d8)]);return new URLSearchParams(location[_0x55ecca(0x1d5)])[_0x55ecca(0x1ea)](_0x55ecca(0x200))?_0x426698[_0x55ecca(0x202)]():_0x426698[_0x55ecca(0x1d3)](),!0x0;}},_0x2a83e1={'id':_0x205a6c(0x1b9),'type':_0x2fce5c['CommandType'][_0x205a6c(0x1d9)],'handler':async _0x9d6092=>{const _0x4216b1=_0x205a6c,_0x15f70d=_0x9d6092[_0x4216b1(0x1ea)](_0x50d072[_0x4216b1(0x1d8)]);return new URLSearchParams(location['search'])['get'](_0x4216b1(0x200))?_0x15f70d[_0x4216b1(0x1c0)]():_0x15f70d[_0x4216b1(0x1ff)](),!0x0;}},_0x5e7a00=_0x205a6c(0x1d2),_0x357185={},_0x4f317a=_0x205a6c(0x1c7);function _0x2be634(_0x4c2cb1){const _0x22b944=_0x205a6c;return{'id':_0x4f317a,'type':_0x1a5a0a['MenuItemType'][_0x22b944(0x204)],'icon':_0x22b944(0x1c3),'tooltip':_0x22b944(0x1ef),'hidden$':_0x1a5a0a[_0x22b944(0x1fa)](_0x4c2cb1,_0x2fce5c[_0x22b944(0x1ed)][_0x22b944(0x1f5)]),'disabled$':_0x265ec8[_0x22b944(0x1ec)](_0x4c2cb1,{'workbookTypes':[_0xca4321[_0x22b944(0x1eb)]]})};}function _0x5bb512(){const _0x4bb105=_0x205a6c;return{'id':_0xd8f0b7['id'],'type':_0x1a5a0a['MenuItemType'][_0x4bb105(0x1e8)],'title':_0x4bb105(0x1e6),'icon':_0x4bb105(0x1b2)};}function _0x120894(){const _0x3354ff=_0x205a6c;return{'id':_0x2a83e1['id'],'type':_0x1a5a0a[_0x3354ff(0x1c9)][_0x3354ff(0x1e8)],'title':_0x3354ff(0x1fe),'icon':_0x3354ff(0x1cf)};}const _0xc0416b={[_0x1a5a0a['RibbonStartGroup'][_0x205a6c(0x1ee)]]:{[_0x4f317a]:{'order':0.3,'menuItemFactory':_0x2be634,[_0xd8f0b7['id']]:{'order':0x0,'menuItemFactory':_0x5bb512},[_0x2a83e1['id']]:{'order':0x1,'menuItemFactory':_0x120894}}}};var _0x2a987d=Object['getOwnPropertyDescriptor'],_0x41aefb=(_0x2e3bb7,_0x1a0659,_0x433681,_0x2ef1b0)=>{const _0x1c1df3=_0x205a6c;for(var _0x500c96=_0x2ef1b0>0x1?void 0x0:_0x2ef1b0?_0x2a987d(_0x1a0659,_0x433681):_0x1a0659,_0x425719=_0x2e3bb7[_0x1c1df3(0x1ca)]-0x1,_0x3a084a;_0x425719>=0x0;_0x425719--)(_0x3a084a=_0x2e3bb7[_0x425719])&&(_0x500c96=_0x3a084a(_0x500c96)||_0x500c96);return _0x500c96;},_0x3575ba=(_0x31445e,_0xf82a3c)=>(_0x1cac06,_0x3cb391)=>_0xf82a3c(_0x1cac06,_0x3cb391,_0x31445e);let _0x118087=class extends _0x2fce5c[_0x205a6c(0x1de)]{constructor(_0x51d707,_0x11c071){const _0x550f5a=_0x205a6c;super(),this[_0x550f5a(0x1f3)]=_0x51d707,this['_menuManagerService']=_0x11c071,this[_0x550f5a(0x1be)](),this[_0x550f5a(0x1fb)]();}[_0x205a6c(0x1be)](){const _0x4f9204=_0x205a6c;[_0xd8f0b7,_0x2a83e1][_0x4f9204(0x1d4)](_0x4561b5=>{const _0x769b0c=_0x4f9204;this[_0x769b0c(0x1f8)](this[_0x769b0c(0x1f3)][_0x769b0c(0x1d0)](_0x4561b5));});}[_0x205a6c(0x1fb)](){const _0x2f9e91=_0x205a6c;this[_0x2f9e91(0x1f6)][_0x2f9e91(0x1cc)](_0xc0416b);}};_0x118087=_0x41aefb([_0x3575ba(0x0,_0x2fce5c[_0x205a6c(0x1e7)]),_0x3575ba(0x1,_0x1a5a0a[_0x205a6c(0x1d7)])],_0x118087);var _0x5a5b36=Object[_0x205a6c(0x1bf)],_0x3679c6=Object['getOwnPropertyDescriptor'],_0x557120=(_0xa96e57,_0x400f3a,_0x1f0a42)=>_0x400f3a in _0xa96e57?_0x5a5b36(_0xa96e57,_0x400f3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0a42}):_0xa96e57[_0x400f3a]=_0x1f0a42,_0x25c1a4=(_0x32aaef,_0x422ce6,_0x372832,_0xe13047)=>{const _0xb9df33=_0x205a6c;for(var _0x553038=_0xe13047>0x1?void 0x0:_0xe13047?_0x3679c6(_0x422ce6,_0x372832):_0x422ce6,_0x1e69b3=_0x32aaef[_0xb9df33(0x1ca)]-0x1,_0x19685f;_0x1e69b3>=0x0;_0x1e69b3--)(_0x19685f=_0x32aaef[_0x1e69b3])&&(_0x553038=_0x19685f(_0x553038)||_0x553038);return _0x553038;},_0x327a7b=(_0x1f2ec6,_0x436a61)=>(_0x20df0c,_0x56db68)=>_0x436a61(_0x20df0c,_0x56db68,_0x1f2ec6),_0x2675d6=(_0x528533,_0x281300,_0x874cce)=>_0x557120(_0x528533,typeof _0x281300!=_0x205a6c(0x1d1)?_0x281300+'':_0x281300,_0x874cce);const _0x150e71=_0x205a6c(0x1c5);_0x2d9c48['UniverSheetsExchangeClientPlugin']=class extends _0x2fce5c[_0x205a6c(0x1e3)]{constructor(_0x1d9a2d=_0x357185,_0xbee5dd,_0x1f1e8f){const _0x35472c=_0x205a6c;super(),this[_0x35472c(0x1bc)]=_0x1d9a2d,this[_0x35472c(0x1f7)]=_0xbee5dd,this[_0x35472c(0x1f9)]=_0x1f1e8f;const {menu:_0x1342f0,..._0x2f7143}=_0x2fce5c[_0x35472c(0x1cd)]({},_0x357185,this[_0x35472c(0x1bc)]);_0x1342f0&&this[_0x35472c(0x1f9)][_0x35472c(0x1b6)](_0x35472c(0x1bd),_0x1342f0,{'merge':!0x0}),this[_0x35472c(0x1f9)][_0x35472c(0x1b6)](_0x5e7a00,_0x2f7143);}['onStarting'](){const _0x9329d3=_0x205a6c;[[_0x118087]][_0x9329d3(0x1d4)](_0x230792=>this[_0x9329d3(0x1f7)][_0x9329d3(0x201)](_0x230792));}[_0x205a6c(0x1f0)](){const _0x5a2be5=_0x205a6c;this[_0x5a2be5(0x1f7)][_0x5a2be5(0x1ea)](_0x118087);}},_0x2675d6(_0x2d9c48[_0x205a6c(0x1e5)],_0x205a6c(0x1f2),_0x150e71),_0x2675d6(_0x2d9c48[_0x205a6c(0x1e5)],'type',_0x2fce5c[_0x205a6c(0x1ed)][_0x205a6c(0x1f5)]),_0x2d9c48[_0x205a6c(0x1e5)]=_0x25c1a4([_0x2fce5c[_0x205a6c(0x1b8)](_0x50d072[_0x205a6c(0x203)]),_0x327a7b(0x1,_0x2fce5c[_0x205a6c(0x1ce)](_0x2fce5c['Injector'])),_0x327a7b(0x2,_0x2fce5c[_0x205a6c(0x1cb)])],_0x2d9c48[_0x205a6c(0x1e5)]),_0x2d9c48['ExportXLSXOperation']=_0x2a83e1,_0x2d9c48[_0x205a6c(0x1da)]=_0xd8f0b7,Object[_0x205a6c(0x1bf)](_0x2d9c48,Symbol[_0x205a6c(0x1f4)],{'value':_0x205a6c(0x1dc)});}));function _0x2f8e(_0x20ddd5,_0x4e2535){const _0x34ffc4=_0x34ff();return _0x2f8e=function(_0x2f8e5d,_0x57361d){_0x2f8e5d=_0x2f8e5d-0x1b2;let _0x9384=_0x34ffc4[_0x2f8e5d];return _0x9384;},_0x2f8e(_0x20ddd5,_0x4e2535);}function _0x34ff(){const _0x84217b=['Inject','ExportIcon','registerCommand','symbol','sheets-exchange-client.config','importXLSXToSnapshot','forEach','search','12EMiFZF','IMenuManagerService','IExchangeOperateService','OPERATION','ImportXLSXOperation','amd','Module','UniverUi','Disposable','1085307ibIynG','UniverProSheetsExchangeClient','36Yvzlrf','1917028nPKhmI','Plugin','UniverSheetsUi','UniverSheetsExchangeClientPlugin','exchange.upload','ICommandService','BUTTON','15160354MnPYpi','get','WorkbookExportPermission','getCurrentRangeDisable$','UniverInstanceType','OTHERS','exchange.file','onReady','1018430BraWZc','pluginName','_commandService','toStringTag','UNIVER_SHEET','_menuManagerService','_injector','disposeWithMe','_configService','getMenuHiddenObservable','_initMenus','exchange-client.operation.import-xlsx','@univerjs/ui','exchange.download','exportXLSXBySnapshot','unit','add','importXLSXToUnitId','UniverExchangeClientPlugin','SUBITEMS','8rrTagQ','FolderIcon','@univerjs/sheets-ui','170294XBtncb','431355EDAOMZ','setConfig','CommandType','DependentOn','exchange-client.operation.export-xlsx','5nefcII','UniverSheets','_config','menu','_initCommands','defineProperty','exportXLSXByUnitId','exports','UniverProExchangeClient','DirectExportIcon','18Hrrrxf','SHEET_EXCHANGE_CLIENT_PLUGIN','164990UJBNgx','sheets-exchange-client.operation.exchange','function','MenuItemType','length','IConfigService','mergeMenu','merge'];_0x34ff=function(){return _0x84217b;};return _0x34ff();}
|
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.9-experimental.20250925-61b61a0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.10.
|
|
46
|
-
"@univerjs/core": "0.10.
|
|
47
|
-
"@univerjs/sheets": "0.10.
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.9-experimental.20250925-61b61a0",
|
|
46
|
+
"@univerjs/core": "0.10.9-experimental.20250925-61b61a0",
|
|
47
|
+
"@univerjs/sheets": "0.10.9-experimental.20250925-61b61a0",
|
|
48
|
+
"@univerjs/ui": "0.10.9-experimental.20250925-61b61a0",
|
|
49
|
+
"@univerjs/sheets-ui": "0.10.9-experimental.20250925-61b61a0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.2",
|
|
53
53
|
"vite": "^7.1.3",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.9"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|