@univerjs-pro/sheets-exchange-client 0.15.0-insiders.20260110-48b77c8 → 0.15.1-insiders.20260117-8ce4a01
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 _0x52a2af=_0x33b5;(function(_0x54f9bd,_0x1cdc17){const _0x4e4d1d=_0x33b5,_0x43b7a5=_0x54f9bd();while(!![]){try{const _0xc79958=parseInt(_0x4e4d1d(0x91))/0x1*(parseInt(_0x4e4d1d(0x88))/0x2)+parseInt(_0x4e4d1d(0xa0))/0x3*(parseInt(_0x4e4d1d(0xbc))/0x4)+-parseInt(_0x4e4d1d(0x8e))/0x5*(parseInt(_0x4e4d1d(0x9e))/0x6)+parseInt(_0x4e4d1d(0xa8))/0x7*(-parseInt(_0x4e4d1d(0xa9))/0x8)+parseInt(_0x4e4d1d(0xbd))/0x9+-parseInt(_0x4e4d1d(0x9f))/0xa+parseInt(_0x4e4d1d(0xb8))/0xb;if(_0xc79958===_0x1cdc17)break;else _0x43b7a5['push'](_0x43b7a5['shift']());}catch(_0x3604a0){_0x43b7a5['push'](_0x43b7a5['shift']());}}}(_0x3e9e,0xd466a));Object[_0x52a2af(0x96)](exports,Symbol[_0x52a2af(0xa5)],{'value':_0x52a2af(0xb2)});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':_0x52a2af(0xa1),'type':i[_0x52a2af(0x99)][_0x52a2af(0xb9)],'handler':async _0x27829a=>{const _0x2d2d38=_0x52a2af,_0x97e96f=_0x27829a[_0x2d2d38(0x98)](g[_0x2d2d38(0x7c)]);return new URLSearchParams(location[_0x2d2d38(0x85)])['get'](_0x2d2d38(0xaf))?_0x97e96f['importXLSXToUnitId']():_0x97e96f[_0x2d2d38(0xc0)](),!0x0;}},p={'id':_0x52a2af(0x82),'type':i[_0x52a2af(0x99)][_0x52a2af(0xb9)],'handler':async _0x381ff6=>{const _0x56902c=_0x52a2af,_0x27d327=_0x381ff6[_0x56902c(0x98)](g[_0x56902c(0x7c)]);return new URLSearchParams(location[_0x56902c(0x85)])[_0x56902c(0x98)]('unit')?_0x27d327[_0x56902c(0x8c)]():_0x27d327['exportXLSXBySnapshot'](),!0x0;}},v='sheets-exchange-client.config',h={},S=_0x52a2af(0xab);function _0x3e9e(){const _0x87b438=['Plugin','search','UniverInstanceType','registerCommand','8MTkbGe','WorkbookExportPermission','forEach','MenuItemType','exportXLSXByUnitId','onReady','695ICGZZs','add','disposeWithMe','121053TXfoyD','getCurrentRangeDisable$','UniverSheetsExchangeClientPlugin','UniverExchangeClientPlugin','ExportIcon','defineProperty','UNIVER_SHEET','get','CommandType','mergeMenu','_commandService','IMenuManagerService','setConfig','11166fczLUE','17347550QUBPSy','6kQmSZN','exchange-client.operation.import-xlsx','SUBITEMS','_injector','_config','toStringTag','BUTTON','ImportXLSXOperation','7322IvyRNL','2496JhELzp','ExportXLSXOperation','sheets-exchange-client.operation.exchange','_initCommands','_menuManagerService','length','unit','menu','SHEET_EXCHANGE_CLIENT_PLUGIN','Module','ICommandService','FolderIcon','exchange.file','Disposable','exchange.download','3485735wNvbBN','OPERATION','DependentOn','getOwnPropertyDescriptor','1356624YFRDuT','15393339MJMPAH','exchange.upload','Inject','importXLSXToSnapshot','merge','Injector','IExchangeOperateService','_configService','RibbonStartGroup','IConfigService','pluginName','_initMenus','exchange-client.operation.export-xlsx','onStarting'];_0x3e9e=function(){return _0x87b438;};return _0x3e9e();}function x(_0x50ca20){const _0x16f782=_0x52a2af;return{'id':S,'type':c['MenuItemType'][_0x16f782(0xa2)],'icon':'DirectExportIcon','tooltip':_0x16f782(0xb5),'hidden$':c['getMenuHiddenObservable'](_0x50ca20,i['UniverInstanceType'][_0x16f782(0x97)]),'disabled$':I[_0x16f782(0x92)](_0x50ca20,{'workbookTypes':[_[_0x16f782(0x89)]]})};}function P(){const _0x4a55d4=_0x52a2af;return{'id':l['id'],'type':c['MenuItemType']['BUTTON'],'title':_0x4a55d4(0xbe),'icon':_0x4a55d4(0xb4)};}function C(){const _0x49c971=_0x52a2af;return{'id':p['id'],'type':c[_0x49c971(0x8b)][_0x49c971(0xa6)],'title':_0x49c971(0xb7),'icon':_0x49c971(0x95)};}const f={[c[_0x52a2af(0x7e)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x52a2af(0xbb)],y=(_0x21ce83,_0x3e990d,_0x557d3b,_0xf912f3)=>{const _0x2c0b16=_0x52a2af;for(var _0x7f87b4=_0xf912f3>0x1?void 0x0:_0xf912f3?T(_0x3e990d,_0x557d3b):_0x3e990d,_0x5110a5=_0x21ce83[_0x2c0b16(0xae)]-0x1,_0x1927d0;_0x5110a5>=0x0;_0x5110a5--)(_0x1927d0=_0x21ce83[_0x5110a5])&&(_0x7f87b4=_0x1927d0(_0x7f87b4)||_0x7f87b4);return _0x7f87b4;},m=(_0x483e60,_0x2d82b6)=>(_0x4d2147,_0x5b866d)=>_0x2d82b6(_0x4d2147,_0x5b866d,_0x483e60);let u=class extends i[_0x52a2af(0xb6)]{constructor(_0x5aef7c,_0x11a4ff){const _0x5a4454=_0x52a2af;super(),this[_0x5a4454(0x9b)]=_0x5aef7c,this[_0x5a4454(0xad)]=_0x11a4ff,this[_0x5a4454(0xac)](),this[_0x5a4454(0x81)]();}['_initCommands'](){const _0x1fbe1c=_0x52a2af;[l,p][_0x1fbe1c(0x8a)](_0x408c4c=>{const _0xf9d40=_0x1fbe1c;this[_0xf9d40(0x90)](this[_0xf9d40(0x9b)][_0xf9d40(0x87)](_0x408c4c));});}[_0x52a2af(0x81)](){const _0x53ddf2=_0x52a2af;this[_0x53ddf2(0xad)][_0x53ddf2(0x9a)](f);}};u=y([m(0x0,i[_0x52a2af(0xb3)]),m(0x1,c[_0x52a2af(0x9c)])],u);function _0x33b5(_0x1f43be,_0x1e6356){_0x1f43be=_0x1f43be-0x7a;const _0x3e9e74=_0x3e9e();let _0x33b503=_0x3e9e74[_0x1f43be];return _0x33b503;}var O=Object[_0x52a2af(0x96)],U=Object[_0x52a2af(0xbb)],X=(_0x41336d,_0x474a11,_0x442bb2)=>_0x474a11 in _0x41336d?O(_0x41336d,_0x474a11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x442bb2}):_0x41336d[_0x474a11]=_0x442bb2,N=(_0x468785,_0x27247b,_0x1fde4f,_0xd98ab4)=>{const _0x66e088=_0x52a2af;for(var _0x36f20a=_0xd98ab4>0x1?void 0x0:_0xd98ab4?U(_0x27247b,_0x1fde4f):_0x27247b,_0x487858=_0x468785[_0x66e088(0xae)]-0x1,_0x1a2d59;_0x487858>=0x0;_0x487858--)(_0x1a2d59=_0x468785[_0x487858])&&(_0x36f20a=_0x1a2d59(_0x36f20a)||_0x36f20a);return _0x36f20a;},d=(_0x542905,_0x3d1f63)=>(_0x1ace6e,_0x2d02f1)=>_0x3d1f63(_0x1ace6e,_0x2d02f1,_0x542905),E=(_0x47c87c,_0x36deb7,_0x446b4d)=>X(_0x47c87c,typeof _0x36deb7!='symbol'?_0x36deb7+'':_0x36deb7,_0x446b4d);const L=_0x52a2af(0xb1);exports[_0x52a2af(0x93)]=class extends i[_0x52a2af(0x84)]{constructor(_0x102e36=h,_0x33bc1d,_0x121431){const _0x290c97=_0x52a2af;super(),this[_0x290c97(0xa4)]=_0x102e36,this[_0x290c97(0xa3)]=_0x33bc1d,this[_0x290c97(0x7d)]=_0x121431;const {menu:_0x248c36,..._0x8abb17}=i[_0x290c97(0x7a)]({},h,this[_0x290c97(0xa4)]);_0x248c36&&this[_0x290c97(0x7d)]['setConfig'](_0x290c97(0xb0),_0x248c36,{'merge':!0x0}),this[_0x290c97(0x7d)][_0x290c97(0x9d)](v,_0x8abb17);}[_0x52a2af(0x83)](){const _0x17efb4=_0x52a2af;[[u]][_0x17efb4(0x8a)](_0x1560af=>this['_injector'][_0x17efb4(0x8f)](_0x1560af));}[_0x52a2af(0x8d)](){const _0x3511e3=_0x52a2af;this[_0x3511e3(0xa3)][_0x3511e3(0x98)](u);}},E(exports[_0x52a2af(0x93)],_0x52a2af(0x80),L),E(exports[_0x52a2af(0x93)],'type',i[_0x52a2af(0x86)]['UNIVER_SHEET']),exports['UniverSheetsExchangeClientPlugin']=N([i[_0x52a2af(0xba)](g[_0x52a2af(0x94)]),d(0x1,i[_0x52a2af(0xbf)](i[_0x52a2af(0x7b)])),d(0x2,i[_0x52a2af(0x7f)])],exports['UniverSheetsExchangeClientPlugin']),exports[_0x52a2af(0xaa)]=p,exports[_0x52a2af(0xa7)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x518970=_0x4d33;(function(_0x3de565,_0x2c5e91){const _0x5bfc5c=_0x4d33,_0x4b392b=_0x3de565();while(!![]){try{const _0xaa8156=-parseInt(_0x5bfc5c(0x73))/0x1+-parseInt(_0x5bfc5c(0x74))/0x2*(parseInt(_0x5bfc5c(0x7e))/0x3)+parseInt(_0x5bfc5c(0x75))/0x4*(parseInt(_0x5bfc5c(0x6e))/0x5)+parseInt(_0x5bfc5c(0x86))/0x6+parseInt(_0x5bfc5c(0x82))/0x7+-parseInt(_0x5bfc5c(0x7f))/0x8+-parseInt(_0x5bfc5c(0x87))/0x9*(-parseInt(_0x5bfc5c(0x77))/0xa);if(_0xaa8156===_0x2c5e91)break;else _0x4b392b['push'](_0x4b392b['shift']());}catch(_0x4de99d){_0x4b392b['push'](_0x4b392b['shift']());}}}(_0x50e2,0x7e4c7));import{IExchangeOperateService as _0x58d738,UniverExchangeClientPlugin as _0x410397}from'@univerjs-pro/exchange-client';import{CommandType as _0x3c6b4c,UniverInstanceType as _0x2019ef,Disposable as _0x32f236,ICommandService as _0xc0c600,DependentOn as _0x668626,Inject as _0x257cc1,Injector as _0x1ee548,IConfigService as _0x997492,Plugin as _0x59c782,merge as _0xfbefbb}from'@univerjs/core';import{MenuItemType as _0x3fc2f6,getMenuHiddenObservable as _0x21672,RibbonStartGroup as _0x45576c,IMenuManagerService as _0x123320}from'@univerjs/ui';import{WorkbookExportPermission as _0x3e6b56}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x724550}from'@univerjs/sheets-ui';function _0x4d33(_0x2df0b3,_0xb6cdea){_0x2df0b3=_0x2df0b3-0x6e;const _0x50e29e=_0x50e2();let _0x4d337c=_0x50e29e[_0x2df0b3];return _0x4d337c;}const p={'id':'exchange-client.operation.import-xlsx','type':_0x3c6b4c[_0x518970(0x6f)],'handler':async _0x3d99c6=>{const _0x14a96d=_0x518970,_0x52d824=_0x3d99c6[_0x14a96d(0x8f)](_0x58d738);return new URLSearchParams(location[_0x14a96d(0x8a)])[_0x14a96d(0x8f)]('unit')?_0x52d824[_0x14a96d(0x84)]():_0x52d824[_0x14a96d(0x96)](),!0x0;}},u={'id':_0x518970(0x8d),'type':_0x3c6b4c[_0x518970(0x6f)],'handler':async _0x294fd1=>{const _0x2ebc19=_0x518970,_0x30212b=_0x294fd1[_0x2ebc19(0x8f)](_0x58d738);return new URLSearchParams(location[_0x2ebc19(0x8a)])['get']('unit')?_0x30212b[_0x2ebc19(0x72)]():_0x30212b[_0x2ebc19(0x8b)](),!0x0;}},H=_0x518970(0x7d),l={},S=_0x518970(0x90);function R(_0x4d6cff){const _0x1fab0d=_0x518970;return{'id':S,'type':_0x3fc2f6['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x1fab0d(0x93),'hidden$':_0x21672(_0x4d6cff,_0x2019ef['UNIVER_SHEET']),'disabled$':_0x724550(_0x4d6cff,{'workbookTypes':[_0x3e6b56]})};}function w(){const _0x1629cf=_0x518970;return{'id':p['id'],'type':_0x3fc2f6[_0x1629cf(0x8e)],'title':'exchange.upload','icon':_0x1629cf(0x70)};}function D(){const _0x19d511=_0x518970;return{'id':u['id'],'type':_0x3fc2f6['BUTTON'],'title':_0x19d511(0x78),'icon':_0x19d511(0x89)};}const F={[_0x45576c['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x5ee131,_0x20bb01,_0x4a288d,_0x420c2e)=>{for(var _0x58e51a=_0x420c2e>0x1?void 0x0:_0x420c2e?G(_0x20bb01,_0x4a288d):_0x20bb01,_0x2a1480=_0x5ee131['length']-0x1,_0x196410;_0x2a1480>=0x0;_0x2a1480--)(_0x196410=_0x5ee131[_0x2a1480])&&(_0x58e51a=_0x196410(_0x58e51a)||_0x58e51a);return _0x58e51a;},d=(_0x45dbc1,_0x38d512)=>(_0x2c5d69,_0x48f3e8)=>_0x38d512(_0x2c5d69,_0x48f3e8,_0x45dbc1);let c=class extends _0x32f236{constructor(_0x16a65d,_0x2c2b55){const _0x3bb642=_0x518970;super(),this['_commandService']=_0x16a65d,this[_0x3bb642(0x76)]=_0x2c2b55,this[_0x3bb642(0x81)](),this[_0x3bb642(0x8c)]();}['_initCommands'](){const _0xf6fef3=_0x518970;[p,u][_0xf6fef3(0x95)](_0x3e944=>{const _0x44e6f7=_0xf6fef3;this[_0x44e6f7(0x7b)](this['_commandService']['registerCommand'](_0x3e944));});}[_0x518970(0x8c)](){const _0x30bd90=_0x518970;this[_0x30bd90(0x76)][_0x30bd90(0x79)](F);}};c=A([d(0x0,_0xc0c600),d(0x1,_0x123320)],c);var j=Object['defineProperty'],B=Object[_0x518970(0x97)],$=(_0x475d68,_0x4ffbb0,_0x5c02ed)=>_0x4ffbb0 in _0x475d68?j(_0x475d68,_0x4ffbb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c02ed}):_0x475d68[_0x4ffbb0]=_0x5c02ed,V=(_0x5e9b92,_0x26a551,_0x404030,_0x211d63)=>{for(var _0x3205ba=_0x211d63>0x1?void 0x0:_0x211d63?B(_0x26a551,_0x404030):_0x26a551,_0x3ecd04=_0x5e9b92['length']-0x1,_0x3a8f2b;_0x3ecd04>=0x0;_0x3ecd04--)(_0x3a8f2b=_0x5e9b92[_0x3ecd04])&&(_0x3205ba=_0x3a8f2b(_0x3205ba)||_0x3205ba);return _0x3205ba;},_=(_0x5c8d51,_0x3e7b9a)=>(_0x2804c8,_0x711866)=>_0x3e7b9a(_0x2804c8,_0x711866,_0x5c8d51),I=(_0x1c7a61,_0x231bb7,_0x33c256)=>$(_0x1c7a61,typeof _0x231bb7!=_0x518970(0x71)?_0x231bb7+'':_0x231bb7,_0x33c256);const W=_0x518970(0x91);let s=class extends _0x59c782{constructor(_0x4ca7c9=l,_0x2d6287,_0x4e9db2){const _0x2bfb54=_0x518970;super(),this['_config']=_0x4ca7c9,this[_0x2bfb54(0x7c)]=_0x2d6287,this[_0x2bfb54(0x88)]=_0x4e9db2;const {menu:_0x77cb8,..._0x46d834}=_0xfbefbb({},l,this[_0x2bfb54(0x92)]);_0x77cb8&&this[_0x2bfb54(0x88)][_0x2bfb54(0x85)](_0x2bfb54(0x7a),_0x77cb8,{'merge':!0x0}),this[_0x2bfb54(0x88)][_0x2bfb54(0x85)](H,_0x46d834);}[_0x518970(0x83)](){const _0x569131=_0x518970;[[c]][_0x569131(0x95)](_0x23dc95=>this['_injector']['add'](_0x23dc95));}['onReady'](){const _0x33f8eb=_0x518970;this[_0x33f8eb(0x7c)][_0x33f8eb(0x8f)](c);}};function _0x50e2(){const _0x16ec47=['pluginName','forEach','importXLSXToSnapshot','getOwnPropertyDescriptor','10PIfMdk','OPERATION','FolderIcon','symbol','exportXLSXByUnitId','324661fCneWx','650778cZkniV','527068VzQjbp','_menuManagerService','1570ZXclUm','exchange.download','mergeMenu','menu','disposeWithMe','_injector','sheets-exchange-client.config','3qGbmMI','4975264eiAhSn','UNIVER_SHEET','_initCommands','4691050kLrfxM','onStarting','importXLSXToUnitId','setConfig','1087668TjEtvu','38655ZCYQaM','_configService','ExportIcon','search','exportXLSXBySnapshot','_initMenus','exchange-client.operation.export-xlsx','BUTTON','get','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','exchange.file'];_0x50e2=function(){return _0x16ec47;};return _0x50e2();}I(s,_0x518970(0x94),W),I(s,'type',_0x2019ef[_0x518970(0x80)]),s=V([_0x668626(_0x410397),_(0x1,_0x257cc1(_0x1ee548)),_(0x2,_0x997492)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x518970=_0x4d33;(function(_0x3de565,_0x2c5e91){const _0x5bfc5c=_0x4d33,_0x4b392b=_0x3de565();while(!![]){try{const _0xaa8156=-parseInt(_0x5bfc5c(0x73))/0x1+-parseInt(_0x5bfc5c(0x74))/0x2*(parseInt(_0x5bfc5c(0x7e))/0x3)+parseInt(_0x5bfc5c(0x75))/0x4*(parseInt(_0x5bfc5c(0x6e))/0x5)+parseInt(_0x5bfc5c(0x86))/0x6+parseInt(_0x5bfc5c(0x82))/0x7+-parseInt(_0x5bfc5c(0x7f))/0x8+-parseInt(_0x5bfc5c(0x87))/0x9*(-parseInt(_0x5bfc5c(0x77))/0xa);if(_0xaa8156===_0x2c5e91)break;else _0x4b392b['push'](_0x4b392b['shift']());}catch(_0x4de99d){_0x4b392b['push'](_0x4b392b['shift']());}}}(_0x50e2,0x7e4c7));import{IExchangeOperateService as _0x58d738,UniverExchangeClientPlugin as _0x410397}from'@univerjs-pro/exchange-client';import{CommandType as _0x3c6b4c,UniverInstanceType as _0x2019ef,Disposable as _0x32f236,ICommandService as _0xc0c600,DependentOn as _0x668626,Inject as _0x257cc1,Injector as _0x1ee548,IConfigService as _0x997492,Plugin as _0x59c782,merge as _0xfbefbb}from'@univerjs/core';import{MenuItemType as _0x3fc2f6,getMenuHiddenObservable as _0x21672,RibbonStartGroup as _0x45576c,IMenuManagerService as _0x123320}from'@univerjs/ui';import{WorkbookExportPermission as _0x3e6b56}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x724550}from'@univerjs/sheets-ui';function _0x4d33(_0x2df0b3,_0xb6cdea){_0x2df0b3=_0x2df0b3-0x6e;const _0x50e29e=_0x50e2();let _0x4d337c=_0x50e29e[_0x2df0b3];return _0x4d337c;}const p={'id':'exchange-client.operation.import-xlsx','type':_0x3c6b4c[_0x518970(0x6f)],'handler':async _0x3d99c6=>{const _0x14a96d=_0x518970,_0x52d824=_0x3d99c6[_0x14a96d(0x8f)](_0x58d738);return new URLSearchParams(location[_0x14a96d(0x8a)])[_0x14a96d(0x8f)]('unit')?_0x52d824[_0x14a96d(0x84)]():_0x52d824[_0x14a96d(0x96)](),!0x0;}},u={'id':_0x518970(0x8d),'type':_0x3c6b4c[_0x518970(0x6f)],'handler':async _0x294fd1=>{const _0x2ebc19=_0x518970,_0x30212b=_0x294fd1[_0x2ebc19(0x8f)](_0x58d738);return new URLSearchParams(location[_0x2ebc19(0x8a)])['get']('unit')?_0x30212b[_0x2ebc19(0x72)]():_0x30212b[_0x2ebc19(0x8b)](),!0x0;}},H=_0x518970(0x7d),l={},S=_0x518970(0x90);function R(_0x4d6cff){const _0x1fab0d=_0x518970;return{'id':S,'type':_0x3fc2f6['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x1fab0d(0x93),'hidden$':_0x21672(_0x4d6cff,_0x2019ef['UNIVER_SHEET']),'disabled$':_0x724550(_0x4d6cff,{'workbookTypes':[_0x3e6b56]})};}function w(){const _0x1629cf=_0x518970;return{'id':p['id'],'type':_0x3fc2f6[_0x1629cf(0x8e)],'title':'exchange.upload','icon':_0x1629cf(0x70)};}function D(){const _0x19d511=_0x518970;return{'id':u['id'],'type':_0x3fc2f6['BUTTON'],'title':_0x19d511(0x78),'icon':_0x19d511(0x89)};}const F={[_0x45576c['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object['getOwnPropertyDescriptor'],A=(_0x5ee131,_0x20bb01,_0x4a288d,_0x420c2e)=>{for(var _0x58e51a=_0x420c2e>0x1?void 0x0:_0x420c2e?G(_0x20bb01,_0x4a288d):_0x20bb01,_0x2a1480=_0x5ee131['length']-0x1,_0x196410;_0x2a1480>=0x0;_0x2a1480--)(_0x196410=_0x5ee131[_0x2a1480])&&(_0x58e51a=_0x196410(_0x58e51a)||_0x58e51a);return _0x58e51a;},d=(_0x45dbc1,_0x38d512)=>(_0x2c5d69,_0x48f3e8)=>_0x38d512(_0x2c5d69,_0x48f3e8,_0x45dbc1);let c=class extends _0x32f236{constructor(_0x16a65d,_0x2c2b55){const _0x3bb642=_0x518970;super(),this['_commandService']=_0x16a65d,this[_0x3bb642(0x76)]=_0x2c2b55,this[_0x3bb642(0x81)](),this[_0x3bb642(0x8c)]();}['_initCommands'](){const _0xf6fef3=_0x518970;[p,u][_0xf6fef3(0x95)](_0x3e944=>{const _0x44e6f7=_0xf6fef3;this[_0x44e6f7(0x7b)](this['_commandService']['registerCommand'](_0x3e944));});}[_0x518970(0x8c)](){const _0x30bd90=_0x518970;this[_0x30bd90(0x76)][_0x30bd90(0x79)](F);}};c=A([d(0x0,_0xc0c600),d(0x1,_0x123320)],c);var j=Object['defineProperty'],B=Object[_0x518970(0x97)],$=(_0x475d68,_0x4ffbb0,_0x5c02ed)=>_0x4ffbb0 in _0x475d68?j(_0x475d68,_0x4ffbb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c02ed}):_0x475d68[_0x4ffbb0]=_0x5c02ed,V=(_0x5e9b92,_0x26a551,_0x404030,_0x211d63)=>{for(var _0x3205ba=_0x211d63>0x1?void 0x0:_0x211d63?B(_0x26a551,_0x404030):_0x26a551,_0x3ecd04=_0x5e9b92['length']-0x1,_0x3a8f2b;_0x3ecd04>=0x0;_0x3ecd04--)(_0x3a8f2b=_0x5e9b92[_0x3ecd04])&&(_0x3205ba=_0x3a8f2b(_0x3205ba)||_0x3205ba);return _0x3205ba;},_=(_0x5c8d51,_0x3e7b9a)=>(_0x2804c8,_0x711866)=>_0x3e7b9a(_0x2804c8,_0x711866,_0x5c8d51),I=(_0x1c7a61,_0x231bb7,_0x33c256)=>$(_0x1c7a61,typeof _0x231bb7!=_0x518970(0x71)?_0x231bb7+'':_0x231bb7,_0x33c256);const W=_0x518970(0x91);let s=class extends _0x59c782{constructor(_0x4ca7c9=l,_0x2d6287,_0x4e9db2){const _0x2bfb54=_0x518970;super(),this['_config']=_0x4ca7c9,this[_0x2bfb54(0x7c)]=_0x2d6287,this[_0x2bfb54(0x88)]=_0x4e9db2;const {menu:_0x77cb8,..._0x46d834}=_0xfbefbb({},l,this[_0x2bfb54(0x92)]);_0x77cb8&&this[_0x2bfb54(0x88)][_0x2bfb54(0x85)](_0x2bfb54(0x7a),_0x77cb8,{'merge':!0x0}),this[_0x2bfb54(0x88)][_0x2bfb54(0x85)](H,_0x46d834);}[_0x518970(0x83)](){const _0x569131=_0x518970;[[c]][_0x569131(0x95)](_0x23dc95=>this['_injector']['add'](_0x23dc95));}['onReady'](){const _0x33f8eb=_0x518970;this[_0x33f8eb(0x7c)][_0x33f8eb(0x8f)](c);}};function _0x50e2(){const _0x16ec47=['pluginName','forEach','importXLSXToSnapshot','getOwnPropertyDescriptor','10PIfMdk','OPERATION','FolderIcon','symbol','exportXLSXByUnitId','324661fCneWx','650778cZkniV','527068VzQjbp','_menuManagerService','1570ZXclUm','exchange.download','mergeMenu','menu','disposeWithMe','_injector','sheets-exchange-client.config','3qGbmMI','4975264eiAhSn','UNIVER_SHEET','_initCommands','4691050kLrfxM','onStarting','importXLSXToUnitId','setConfig','1087668TjEtvu','38655ZCYQaM','_configService','ExportIcon','search','exportXLSXBySnapshot','_initMenus','exchange-client.operation.export-xlsx','BUTTON','get','sheets-exchange-client.operation.exchange','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','exchange.file'];_0x50e2=function(){return _0x16ec47;};return _0x50e2();}I(s,_0x518970(0x94),W),I(s,'type',_0x2019ef[_0x518970(0x80)]),s=V([_0x668626(_0x410397),_(0x1,_0x257cc1(_0x1ee548)),_(0x2,_0x997492)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1fa5(_0x1fb948,_0x39e90f){_0x1fb948=_0x1fb948-0x121;const _0xd03f7=_0xd03f();let _0x1fa5a2=_0xd03f7[_0x1fb948];return _0x1fa5a2;}function _0xd03f(){const _0x438505=['RibbonStartGroup','234ZjMsuh','Injector','UniverProSheetsExchangeClient','mergeMenu','exchange-client.operation.import-xlsx','99108jbbyRX','_menuManagerService','defineProperty','WorkbookExportPermission','UniverCore','1626916Ieobek','114515iSTDeO','length','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','_commandService','IExchangeOperateService','UniverInstanceType','SUBITEMS','_initCommands','3000156SXcyIz','2180736YrsKFH','@univerjs/core','UniverSheetsExchangeClientPlugin','exports','CommandType','UniverUi','OTHERS','OPERATION','UNIVER_SHEET','3288392vnLlJe','disposeWithMe','exchange.file','DependentOn','exportXLSXByUnitId','sheets-exchange-client.operation.exchange','UniverExchangeClientPlugin','IMenuManagerService','DirectExportIcon','@univerjs/sheets-ui','_injector','type','unit','UniverProExchangeClient','exportXLSXBySnapshot','BUTTON','amd','Inject','110JlgYvp','Disposable','@univerjs/ui','symbol','get','menu','ICommandService','IConfigService','1KBgGgb','getOwnPropertyDescriptor','_initMenus','10xcBlyP','ExportXLSXOperation','_configService','onReady','Plugin','MenuItemType','object','merge','Module','search','exchange-client.operation.export-xlsx','462180eUYedY','7vmjWwU','setConfig','importXLSXToUnitId','onStarting','@univerjs-pro/exchange-client'];_0xd03f=function(){return _0x438505;};return _0xd03f();}(function(_0x3dba0e,_0x23ace5){const _0x5c77ec=_0x1fa5,_0x3267d0=_0x3dba0e();while(!![]){try{const _0x5dc7db=-parseInt(_0x5c77ec(0x13b))/0x1*(parseInt(_0x5c77ec(0x15a))/0x2)+parseInt(_0x5c77ec(0x149))/0x3+-parseInt(_0x5c77ec(0x165))/0x4+-parseInt(_0x5c77ec(0x15b))/0x5*(parseInt(_0x5c77ec(0x150))/0x6)+parseInt(_0x5c77ec(0x14a))/0x7*(parseInt(_0x5c77ec(0x121))/0x8)+-parseInt(_0x5c77ec(0x155))/0x9*(-parseInt(_0x5c77ec(0x13e))/0xa)+-parseInt(_0x5c77ec(0x133))/0xb*(-parseInt(_0x5c77ec(0x164))/0xc);if(_0x5dc7db===_0x23ace5)break;else _0x3267d0['push'](_0x3267d0['shift']());}catch(_0x36e3cb){_0x3267d0['push'](_0x3267d0['shift']());}}}(_0xd03f,0xc9448),function(_0x183e3e,_0x542ea8){const _0x4e32f8=_0x1fa5;typeof exports==_0x4e32f8(0x144)&&typeof module<'u'?_0x542ea8(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x4e32f8(0x131)]?define([_0x4e32f8(0x168),_0x4e32f8(0x14e),_0x4e32f8(0x166),_0x4e32f8(0x135),'@univerjs/sheets',_0x4e32f8(0x12a)],_0x542ea8):(_0x183e3e=typeof globalThis<'u'?globalThis:_0x183e3e||self,_0x542ea8(_0x183e3e[_0x4e32f8(0x152)]={},_0x183e3e[_0x4e32f8(0x12e)],_0x183e3e[_0x4e32f8(0x159)],_0x183e3e[_0x4e32f8(0x16a)],_0x183e3e['UniverSheets'],_0x183e3e['UniverSheetsUi']));}(this,function(_0x22b1ff,_0x11d006,_0x5356e8,_0x2867e5,_0xc885a5,_0x4c9eaf){'use strict';const _0x582458=_0x1fa5;const _0x39fa0b={'id':_0x582458(0x154),'type':_0x5356e8[_0x582458(0x169)][_0x582458(0x16c)],'handler':async _0x48ef23=>{const _0x2cb4af=_0x582458,_0x1ac872=_0x48ef23[_0x2cb4af(0x137)](_0x11d006['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x2cb4af(0x12d))?_0x1ac872[_0x2cb4af(0x14c)]():_0x1ac872['importXLSXToSnapshot'](),!0x0;}},_0x2b4974={'id':_0x582458(0x148),'type':_0x5356e8['CommandType']['OPERATION'],'handler':async _0x355b0b=>{const _0x2abdfd=_0x582458,_0x3643e4=_0x355b0b['get'](_0x11d006[_0x2abdfd(0x160)]);return new URLSearchParams(location[_0x2abdfd(0x147)])[_0x2abdfd(0x137)](_0x2abdfd(0x12d))?_0x3643e4[_0x2abdfd(0x125)]():_0x3643e4[_0x2abdfd(0x12f)](),!0x0;}},_0x21444a='sheets-exchange-client.config',_0x4bc219={},_0xd40f0a=_0x582458(0x126);function _0xc4b445(_0x3aeee8){const _0x4d4d82=_0x582458;return{'id':_0xd40f0a,'type':_0x2867e5[_0x4d4d82(0x143)][_0x4d4d82(0x162)],'icon':_0x4d4d82(0x129),'tooltip':_0x4d4d82(0x123),'hidden$':_0x2867e5['getMenuHiddenObservable'](_0x3aeee8,_0x5356e8[_0x4d4d82(0x161)][_0x4d4d82(0x16d)]),'disabled$':_0x4c9eaf['getCurrentRangeDisable$'](_0x3aeee8,{'workbookTypes':[_0xc885a5[_0x4d4d82(0x158)]]})};}function _0xc2e977(){const _0x39535b=_0x582458;return{'id':_0x39fa0b['id'],'type':_0x2867e5['MenuItemType'][_0x39535b(0x130)],'title':'exchange.upload','icon':_0x39535b(0x15e)};}function _0x2f8138(){const _0x4a3a7e=_0x582458;return{'id':_0x2b4974['id'],'type':_0x2867e5[_0x4a3a7e(0x143)]['BUTTON'],'title':'exchange.download','icon':'ExportIcon'};}const _0x3f267d={[_0x2867e5[_0x582458(0x14f)][_0x582458(0x16b)]]:{[_0xd40f0a]:{'order':0.3,'menuItemFactory':_0xc4b445,[_0x39fa0b['id']]:{'order':0x0,'menuItemFactory':_0xc2e977},[_0x2b4974['id']]:{'order':0x1,'menuItemFactory':_0x2f8138}}}};var _0x2d69a0=Object['getOwnPropertyDescriptor'],_0x19c805=(_0x596001,_0x55bacf,_0x5b4f5d,_0x20f316)=>{const _0x3ad454=_0x582458;for(var _0x8ea1dc=_0x20f316>0x1?void 0x0:_0x20f316?_0x2d69a0(_0x55bacf,_0x5b4f5d):_0x55bacf,_0x2fdb5a=_0x596001[_0x3ad454(0x15c)]-0x1,_0x376865;_0x2fdb5a>=0x0;_0x2fdb5a--)(_0x376865=_0x596001[_0x2fdb5a])&&(_0x8ea1dc=_0x376865(_0x8ea1dc)||_0x8ea1dc);return _0x8ea1dc;},_0x23c06c=(_0xe097cc,_0x49e5cc)=>(_0x565659,_0xe67380)=>_0x49e5cc(_0x565659,_0xe67380,_0xe097cc);let _0x33d07f=class extends _0x5356e8[_0x582458(0x134)]{constructor(_0x7711b2,_0x532a8d){const _0x3374c0=_0x582458;super(),this[_0x3374c0(0x15f)]=_0x7711b2,this[_0x3374c0(0x156)]=_0x532a8d,this[_0x3374c0(0x163)](),this[_0x3374c0(0x13d)]();}['_initCommands'](){[_0x39fa0b,_0x2b4974]['forEach'](_0x1f716f=>{const _0x5b0a4e=_0x1fa5;this[_0x5b0a4e(0x122)](this[_0x5b0a4e(0x15f)]['registerCommand'](_0x1f716f));});}[_0x582458(0x13d)](){const _0x411c83=_0x582458;this[_0x411c83(0x156)][_0x411c83(0x153)](_0x3f267d);}};_0x33d07f=_0x19c805([_0x23c06c(0x0,_0x5356e8[_0x582458(0x139)]),_0x23c06c(0x1,_0x2867e5[_0x582458(0x128)])],_0x33d07f);var _0x176be2=Object['defineProperty'],_0x5841a0=Object[_0x582458(0x13c)],_0x1c6a2a=(_0x4a43bb,_0xbf2e19,_0x2d2138)=>_0xbf2e19 in _0x4a43bb?_0x176be2(_0x4a43bb,_0xbf2e19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d2138}):_0x4a43bb[_0xbf2e19]=_0x2d2138,_0x103521=(_0x204f03,_0x32de60,_0x29061c,_0x3a62b9)=>{for(var _0x5d8d00=_0x3a62b9>0x1?void 0x0:_0x3a62b9?_0x5841a0(_0x32de60,_0x29061c):_0x32de60,_0x3e1cc0=_0x204f03['length']-0x1,_0x18335c;_0x3e1cc0>=0x0;_0x3e1cc0--)(_0x18335c=_0x204f03[_0x3e1cc0])&&(_0x5d8d00=_0x18335c(_0x5d8d00)||_0x5d8d00);return _0x5d8d00;},_0x35042c=(_0x20b37c,_0x18b8aa)=>(_0x225e35,_0x554126)=>_0x18b8aa(_0x225e35,_0x554126,_0x20b37c),_0x153b33=(_0x487b29,_0x27f0a9,_0x112030)=>_0x1c6a2a(_0x487b29,typeof _0x27f0a9!=_0x582458(0x136)?_0x27f0a9+'':_0x27f0a9,_0x112030);const _0x42193a=_0x582458(0x15d);_0x22b1ff[_0x582458(0x167)]=class extends _0x5356e8[_0x582458(0x142)]{constructor(_0x5d77fe=_0x4bc219,_0x2c77b6,_0x596e21){const _0x155536=_0x582458;super(),this['_config']=_0x5d77fe,this[_0x155536(0x12b)]=_0x2c77b6,this[_0x155536(0x140)]=_0x596e21;const {menu:_0x2cef8f,..._0x194345}=_0x5356e8[_0x155536(0x145)]({},_0x4bc219,this['_config']);_0x2cef8f&&this[_0x155536(0x140)][_0x155536(0x14b)](_0x155536(0x138),_0x2cef8f,{'merge':!0x0}),this[_0x155536(0x140)][_0x155536(0x14b)](_0x21444a,_0x194345);}[_0x582458(0x14d)](){const _0x5651c1=_0x582458;[[_0x33d07f]]['forEach'](_0x2673a0=>this[_0x5651c1(0x12b)]['add'](_0x2673a0));}[_0x582458(0x141)](){const _0x174531=_0x582458;this[_0x174531(0x12b)][_0x174531(0x137)](_0x33d07f);}},_0x153b33(_0x22b1ff[_0x582458(0x167)],'pluginName',_0x42193a),_0x153b33(_0x22b1ff[_0x582458(0x167)],_0x582458(0x12c),_0x5356e8[_0x582458(0x161)][_0x582458(0x16d)]),_0x22b1ff[_0x582458(0x167)]=_0x103521([_0x5356e8[_0x582458(0x124)](_0x11d006[_0x582458(0x127)]),_0x35042c(0x1,_0x5356e8[_0x582458(0x132)](_0x5356e8[_0x582458(0x151)])),_0x35042c(0x2,_0x5356e8[_0x582458(0x13a)])],_0x22b1ff[_0x582458(0x167)]),_0x22b1ff[_0x582458(0x13f)]=_0x2b4974,_0x22b1ff['ImportXLSXOperation']=_0x39fa0b,Object[_0x582458(0x157)](_0x22b1ff,Symbol['toStringTag'],{'value':_0x582458(0x146)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1-insiders.20260117-8ce4a01",
|
|
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.15.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.1-insiders.20260117-8ce4a01",
|
|
46
|
+
"@univerjs/core": "0.15.1-insiders.20260117-8ce4a01",
|
|
47
|
+
"@univerjs/sheets-ui": "0.15.1-insiders.20260117-8ce4a01",
|
|
48
|
+
"@univerjs/ui": "0.15.1-insiders.20260117-8ce4a01",
|
|
49
|
+
"@univerjs/sheets": "0.15.1-insiders.20260117-8ce4a01"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.3.1",
|
|
54
54
|
"vitest": "^4.0.16",
|
|
55
|
-
"@univerjs-infra/shared": "0.15.
|
|
55
|
+
"@univerjs-infra/shared": "0.15.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|