@univerjs-pro/sheets-exchange-client 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251218-2062647
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';function _0x3c12(_0x21b531,_0x10f08c){_0x21b531=_0x21b531-0xa2;const _0x790939=_0x7909();let _0x3c128d=_0x790939[_0x21b531];return _0x3c128d;}const _0x563e1c=_0x3c12;(function(_0x43e1e8,_0x41787f){const _0x3c79bf=_0x3c12,_0x20f200=_0x43e1e8();while(!![]){try{const _0x5aaba4=-parseInt(_0x3c79bf(0xa7))/0x1+-parseInt(_0x3c79bf(0xb1))/0x2*(parseInt(_0x3c79bf(0xa6))/0x3)+parseInt(_0x3c79bf(0xb2))/0x4*(parseInt(_0x3c79bf(0xa9))/0x5)+-parseInt(_0x3c79bf(0xe6))/0x6+parseInt(_0x3c79bf(0xce))/0x7+parseInt(_0x3c79bf(0xaf))/0x8*(-parseInt(_0x3c79bf(0xcc))/0x9)+parseInt(_0x3c79bf(0xc1))/0xa;if(_0x5aaba4===_0x41787f)break;else _0x20f200['push'](_0x20f200['shift']());}catch(_0xbe9d3b){_0x20f200['push'](_0x20f200['shift']());}}}(_0x7909,0x4d151));function _0x7909(){const _0x3d8c62=['Plugin','28641TIPHOx','542464kKRZUz','UNIVER_SHEET','7850lqzSAe','exchange.file','menu','_injector','SHEET_EXCHANGE_CLIENT_PLUGIN','unit','8usInmZ','ExportXLSXOperation','106wMcIRz','872UpNBVe','get','defineProperty','_initMenus','sheets-exchange-client.config','importXLSXToUnitId','exportXLSXByUnitId','exchange.download','CommandType','IConfigService','disposeWithMe','add','search','forEach','symbol','11631530jAGVlz','getMenuHiddenObservable','ICommandService','IMenuManagerService','WorkbookExportPermission','registerCommand','merge','exchange-client.operation.export-xlsx','ImportXLSXOperation','pluginName','BUTTON','2202651HbEPtD','_menuManagerService','1265691tpiKzA','toStringTag','DependentOn','length','SUBITEMS','OPERATION','mergeMenu','exchange.upload','FolderIcon','getOwnPropertyDescriptor','RibbonStartGroup','DirectExportIcon','setConfig','OTHERS','_initCommands','importXLSXToSnapshot','_configService','onStarting','exportXLSXBySnapshot','_config','Module','_commandService','IExchangeOperateService','onReady','463818oQsNwl','UniverSheetsExchangeClientPlugin','MenuItemType','Injector'];_0x7909=function(){return _0x3d8c62;};return _0x7909();}Object[_0x563e1c(0xb4)](exports,Symbol[_0x563e1c(0xcf)],{'value':_0x563e1c(0xe2)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0x563e1c(0xba)][_0x563e1c(0xd3)],'handler':async _0x220a6b=>{const _0xec6fad=_0x563e1c,_0x189495=_0x220a6b[_0xec6fad(0xb3)](g[_0xec6fad(0xe4)]);return new URLSearchParams(location[_0xec6fad(0xbe)])[_0xec6fad(0xb3)](_0xec6fad(0xae))?_0x189495[_0xec6fad(0xb7)]():_0x189495[_0xec6fad(0xdd)](),!0x0;}},p={'id':_0x563e1c(0xc8),'type':i[_0x563e1c(0xba)][_0x563e1c(0xd3)],'handler':async _0x4c6712=>{const _0x2add47=_0x563e1c,_0x399af8=_0x4c6712[_0x2add47(0xb3)](g[_0x2add47(0xe4)]);return new URLSearchParams(location['search'])[_0x2add47(0xb3)](_0x2add47(0xae))?_0x399af8[_0x2add47(0xb8)]():_0x399af8[_0x2add47(0xe0)](),!0x0;}},v=_0x563e1c(0xb6),h={},S='sheets-exchange-client.operation.exchange';function x(_0x443398){const _0x551b86=_0x563e1c;return{'id':S,'type':c[_0x551b86(0xa3)][_0x551b86(0xd2)],'icon':_0x551b86(0xd9),'tooltip':_0x551b86(0xaa),'hidden$':c[_0x551b86(0xc2)](_0x443398,i['UniverInstanceType']['UNIVER_SHEET']),'disabled$':I['getCurrentRangeDisable$'](_0x443398,{'workbookTypes':[_[_0x551b86(0xc5)]]})};}function P(){const _0x4b1513=_0x563e1c;return{'id':l['id'],'type':c['MenuItemType'][_0x4b1513(0xcb)],'title':_0x4b1513(0xd5),'icon':_0x4b1513(0xd6)};}function C(){const _0x15aeea=_0x563e1c;return{'id':p['id'],'type':c['MenuItemType'][_0x15aeea(0xcb)],'title':_0x15aeea(0xb9),'icon':'ExportIcon'};}const f={[c[_0x563e1c(0xd8)][_0x563e1c(0xdb)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x563e1c(0xd7)],y=(_0x2b6c06,_0x47d453,_0x3ad1b4,_0x15d8dd)=>{const _0x5976b9=_0x563e1c;for(var _0x4761ee=_0x15d8dd>0x1?void 0x0:_0x15d8dd?T(_0x47d453,_0x3ad1b4):_0x47d453,_0x17552e=_0x2b6c06[_0x5976b9(0xd1)]-0x1,_0x12469d;_0x17552e>=0x0;_0x17552e--)(_0x12469d=_0x2b6c06[_0x17552e])&&(_0x4761ee=_0x12469d(_0x4761ee)||_0x4761ee);return _0x4761ee;},m=(_0x5c1370,_0x567b51)=>(_0x43dcc6,_0x533110)=>_0x567b51(_0x43dcc6,_0x533110,_0x5c1370);let u=class extends i['Disposable']{constructor(_0x2e618e,_0x3504b7){const _0x115797=_0x563e1c;super(),this[_0x115797(0xe3)]=_0x2e618e,this['_menuManagerService']=_0x3504b7,this[_0x115797(0xdc)](),this[_0x115797(0xb5)]();}['_initCommands'](){const _0xf60b88=_0x563e1c;[l,p][_0xf60b88(0xbf)](_0x4ad9d4=>{const _0x41fbf6=_0xf60b88;this[_0x41fbf6(0xbc)](this[_0x41fbf6(0xe3)][_0x41fbf6(0xc6)](_0x4ad9d4));});}[_0x563e1c(0xb5)](){const _0xd6385a=_0x563e1c;this[_0xd6385a(0xcd)][_0xd6385a(0xd4)](f);}};u=y([m(0x0,i[_0x563e1c(0xc3)]),m(0x1,c[_0x563e1c(0xc4)])],u);var O=Object[_0x563e1c(0xb4)],U=Object[_0x563e1c(0xd7)],X=(_0x4d485d,_0xe2e823,_0x292d3d)=>_0xe2e823 in _0x4d485d?O(_0x4d485d,_0xe2e823,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x292d3d}):_0x4d485d[_0xe2e823]=_0x292d3d,N=(_0x5ea11b,_0x91c109,_0x281455,_0x3c38d7)=>{const _0x2c8e83=_0x563e1c;for(var _0x1d50cd=_0x3c38d7>0x1?void 0x0:_0x3c38d7?U(_0x91c109,_0x281455):_0x91c109,_0x194fce=_0x5ea11b[_0x2c8e83(0xd1)]-0x1,_0x23bf1d;_0x194fce>=0x0;_0x194fce--)(_0x23bf1d=_0x5ea11b[_0x194fce])&&(_0x1d50cd=_0x23bf1d(_0x1d50cd)||_0x1d50cd);return _0x1d50cd;},d=(_0x32ab70,_0x4bee22)=>(_0x488ab8,_0x35c92c)=>_0x4bee22(_0x488ab8,_0x35c92c,_0x32ab70),E=(_0xc6582a,_0x1212c3,_0x5b7293)=>X(_0xc6582a,typeof _0x1212c3!=_0x563e1c(0xc0)?_0x1212c3+'':_0x1212c3,_0x5b7293);const L=_0x563e1c(0xad);exports[_0x563e1c(0xa2)]=class extends i[_0x563e1c(0xa5)]{constructor(_0x24557a=h,_0x1ef205,_0x499b4d){const _0xba34f1=_0x563e1c;super(),this[_0xba34f1(0xe1)]=_0x24557a,this[_0xba34f1(0xac)]=_0x1ef205,this['_configService']=_0x499b4d;const {menu:_0x21985d,..._0xe1f68b}=i[_0xba34f1(0xc7)]({},h,this[_0xba34f1(0xe1)]);_0x21985d&&this[_0xba34f1(0xde)][_0xba34f1(0xda)](_0xba34f1(0xab),_0x21985d,{'merge':!0x0}),this[_0xba34f1(0xde)][_0xba34f1(0xda)](v,_0xe1f68b);}[_0x563e1c(0xdf)](){const _0x448843=_0x563e1c;[[u]][_0x448843(0xbf)](_0x1d4885=>this[_0x448843(0xac)][_0x448843(0xbd)](_0x1d4885));}[_0x563e1c(0xe5)](){const _0x2a033e=_0x563e1c;this['_injector'][_0x2a033e(0xb3)](u);}},E(exports[_0x563e1c(0xa2)],_0x563e1c(0xca),L),E(exports['UniverSheetsExchangeClientPlugin'],'type',i['UniverInstanceType'][_0x563e1c(0xa8)]),exports[_0x563e1c(0xa2)]=N([i[_0x563e1c(0xd0)](g['UniverExchangeClientPlugin']),d(0x1,i['Inject'](i[_0x563e1c(0xa4)])),d(0x2,i[_0x563e1c(0xbb)])],exports[_0x563e1c(0xa2)]),exports[_0x563e1c(0xb0)]=p,exports[_0x563e1c(0xc9)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x388ab9=_0xcdb7;(function(_0x4cf25b,_0x4039cc){const _0x58cafd=_0xcdb7,_0x56c49a=_0x4cf25b();while(!![]){try{const _0x14b5f7=-parseInt(_0x58cafd(0x178))/0x1+parseInt(_0x58cafd(0x17a))/0x2+parseInt(_0x58cafd(0x16c))/0x3+parseInt(_0x58cafd(0x175))/0x4*(-parseInt(_0x58cafd(0x17c))/0x5)+parseInt(_0x58cafd(0x194))/0x6+-parseInt(_0x58cafd(0x17d))/0x7+parseInt(_0x58cafd(0x18a))/0x8;if(_0x14b5f7===_0x4039cc)break;else _0x56c49a['push'](_0x56c49a['shift']());}catch(_0x595409){_0x56c49a['push'](_0x56c49a['shift']());}}}(_0x15c1,0x825a2));import{IExchangeOperateService as _0x308c34,UniverExchangeClientPlugin as _0x3db9ff}from'@univerjs-pro/exchange-client';function _0xcdb7(_0xbb1abb,_0x5b3d91){_0xbb1abb=_0xbb1abb-0x168;const _0x15c1b7=_0x15c1();let _0xcdb7b9=_0x15c1b7[_0xbb1abb];return _0xcdb7b9;}import{CommandType as _0x1f7664,UniverInstanceType as _0x3ca017,Disposable as _0x371407,ICommandService as _0xf35aee,DependentOn as _0xba9894,Inject as _0x999155,Injector as _0x285a90,IConfigService as _0x10247c,Plugin as _0x57006b,merge as _0x17b7d0}from'@univerjs/core';import{MenuItemType as _0x4ab82d,getMenuHiddenObservable as _0x18cfe0,RibbonStartGroup as _0x290b14,IMenuManagerService as _0x34abbb}from'@univerjs/ui';import{WorkbookExportPermission as _0x1d1dce}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x429e33}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1f7664[_0x388ab9(0x16a)],'handler':async _0x53cd52=>{const _0x3164cd=_0x388ab9,_0x3d2078=_0x53cd52[_0x3164cd(0x189)](_0x308c34);return new URLSearchParams(location[_0x3164cd(0x195)])[_0x3164cd(0x189)]('unit')?_0x3d2078['importXLSXToUnitId']():_0x3d2078['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1f7664['OPERATION'],'handler':async _0x51965c=>{const _0x1502bd=_0x388ab9,_0x4b8214=_0x51965c[_0x1502bd(0x189)](_0x308c34);return new URLSearchParams(location['search'])[_0x1502bd(0x189)](_0x1502bd(0x196))?_0x4b8214[_0x1502bd(0x16e)]():_0x4b8214[_0x1502bd(0x177)](),!0x0;}},H=_0x388ab9(0x18c),l={},S=_0x388ab9(0x17e);function R(_0xa035eb){const _0x426235=_0x388ab9;return{'id':S,'type':_0x4ab82d[_0x426235(0x174)],'icon':_0x426235(0x168),'tooltip':_0x426235(0x16f),'hidden$':_0x18cfe0(_0xa035eb,_0x3ca017[_0x426235(0x18d)]),'disabled$':_0x429e33(_0xa035eb,{'workbookTypes':[_0x1d1dce]})};}function w(){const _0x5b13de=_0x388ab9;return{'id':p['id'],'type':_0x4ab82d[_0x5b13de(0x193)],'title':_0x5b13de(0x16d),'icon':_0x5b13de(0x183)};}function D(){const _0x12e1d3=_0x388ab9;return{'id':u['id'],'type':_0x4ab82d[_0x12e1d3(0x193)],'title':'exchange.download','icon':_0x12e1d3(0x181)};}const F={[_0x290b14[_0x388ab9(0x169)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x15c1(){const _0x12cb81=['625cNFNct','3463040keAXJJ','sheets-exchange-client.operation.exchange','length','pluginName','ExportIcon','menu','FolderIcon','getOwnPropertyDescriptor','symbol','_config','registerCommand','type','get','5685952qimzJi','_initMenus','sheets-exchange-client.config','UNIVER_SHEET','disposeWithMe','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','forEach','_initCommands','BUTTON','851688QuPICg','search','unit','DirectExportIcon','OTHERS','OPERATION','_menuManagerService','744093QQSIKN','exchange.upload','exportXLSXByUnitId','exchange.file','_commandService','setConfig','add','defineProperty','SUBITEMS','14520LLrgkw','onReady','exportXLSXBySnapshot','676354PIXdTF','_injector','2116046eUyPHL','_configService'];_0x15c1=function(){return _0x12cb81;};return _0x15c1();}var G=Object[_0x388ab9(0x184)],A=(_0xf8d000,_0x22ca4e,_0x20e7b1,_0x2a99a9)=>{const _0x64f788=_0x388ab9;for(var _0xc396ee=_0x2a99a9>0x1?void 0x0:_0x2a99a9?G(_0x22ca4e,_0x20e7b1):_0x22ca4e,_0x204b66=_0xf8d000[_0x64f788(0x17f)]-0x1,_0x3ab3f9;_0x204b66>=0x0;_0x204b66--)(_0x3ab3f9=_0xf8d000[_0x204b66])&&(_0xc396ee=_0x3ab3f9(_0xc396ee)||_0xc396ee);return _0xc396ee;},d=(_0x113d8f,_0x542aba)=>(_0x1c5f8f,_0x3c395b)=>_0x542aba(_0x1c5f8f,_0x3c395b,_0x113d8f);let c=class extends _0x371407{constructor(_0x426447,_0x2f9be7){const _0x4350c3=_0x388ab9;super(),this[_0x4350c3(0x170)]=_0x426447,this['_menuManagerService']=_0x2f9be7,this[_0x4350c3(0x192)](),this[_0x4350c3(0x18b)]();}[_0x388ab9(0x192)](){const _0x2498d4=_0x388ab9;[p,u][_0x2498d4(0x191)](_0x25a722=>{const _0x2c83bc=_0x2498d4;this[_0x2c83bc(0x18e)](this[_0x2c83bc(0x170)][_0x2c83bc(0x187)](_0x25a722));});}[_0x388ab9(0x18b)](){const _0x25587f=_0x388ab9;this[_0x25587f(0x16b)][_0x25587f(0x190)](F);}};c=A([d(0x0,_0xf35aee),d(0x1,_0x34abbb)],c);var j=Object[_0x388ab9(0x173)],B=Object[_0x388ab9(0x184)],$=(_0x3a294c,_0x4c0b20,_0xe7c592)=>_0x4c0b20 in _0x3a294c?j(_0x3a294c,_0x4c0b20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7c592}):_0x3a294c[_0x4c0b20]=_0xe7c592,V=(_0x47cd79,_0xff9b0,_0x1889cd,_0x5d4c40)=>{const _0x3c4323=_0x388ab9;for(var _0x3cd93a=_0x5d4c40>0x1?void 0x0:_0x5d4c40?B(_0xff9b0,_0x1889cd):_0xff9b0,_0x25fe52=_0x47cd79[_0x3c4323(0x17f)]-0x1,_0x56782d;_0x25fe52>=0x0;_0x25fe52--)(_0x56782d=_0x47cd79[_0x25fe52])&&(_0x3cd93a=_0x56782d(_0x3cd93a)||_0x3cd93a);return _0x3cd93a;},_=(_0x479fad,_0x20e5fe)=>(_0x2c9713,_0x58d5a0)=>_0x20e5fe(_0x2c9713,_0x58d5a0,_0x479fad),I=(_0x4067f0,_0x4c434f,_0x1dde21)=>$(_0x4067f0,typeof _0x4c434f!=_0x388ab9(0x185)?_0x4c434f+'':_0x4c434f,_0x1dde21);const W=_0x388ab9(0x18f);let s=class extends _0x57006b{constructor(_0x4b6bbb=l,_0x403517,_0x5b3904){const _0x51ea96=_0x388ab9;super(),this['_config']=_0x4b6bbb,this[_0x51ea96(0x179)]=_0x403517,this['_configService']=_0x5b3904;const {menu:_0x14d743,..._0x44f737}=_0x17b7d0({},l,this[_0x51ea96(0x186)]);_0x14d743&&this[_0x51ea96(0x17b)][_0x51ea96(0x171)](_0x51ea96(0x182),_0x14d743,{'merge':!0x0}),this[_0x51ea96(0x17b)][_0x51ea96(0x171)](H,_0x44f737);}['onStarting'](){const _0x4b3537=_0x388ab9;[[c]]['forEach'](_0x5ac4ef=>this['_injector'][_0x4b3537(0x172)](_0x5ac4ef));}[_0x388ab9(0x176)](){const _0x126996=_0x388ab9;this['_injector'][_0x126996(0x189)](c);}};I(s,_0x388ab9(0x180),W),I(s,_0x388ab9(0x188),_0x3ca017[_0x388ab9(0x18d)]),s=V([_0xba9894(_0x3db9ff),_(0x1,_0x999155(_0x285a90)),_(0x2,_0x10247c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x388ab9=_0xcdb7;(function(_0x4cf25b,_0x4039cc){const _0x58cafd=_0xcdb7,_0x56c49a=_0x4cf25b();while(!![]){try{const _0x14b5f7=-parseInt(_0x58cafd(0x178))/0x1+parseInt(_0x58cafd(0x17a))/0x2+parseInt(_0x58cafd(0x16c))/0x3+parseInt(_0x58cafd(0x175))/0x4*(-parseInt(_0x58cafd(0x17c))/0x5)+parseInt(_0x58cafd(0x194))/0x6+-parseInt(_0x58cafd(0x17d))/0x7+parseInt(_0x58cafd(0x18a))/0x8;if(_0x14b5f7===_0x4039cc)break;else _0x56c49a['push'](_0x56c49a['shift']());}catch(_0x595409){_0x56c49a['push'](_0x56c49a['shift']());}}}(_0x15c1,0x825a2));import{IExchangeOperateService as _0x308c34,UniverExchangeClientPlugin as _0x3db9ff}from'@univerjs-pro/exchange-client';function _0xcdb7(_0xbb1abb,_0x5b3d91){_0xbb1abb=_0xbb1abb-0x168;const _0x15c1b7=_0x15c1();let _0xcdb7b9=_0x15c1b7[_0xbb1abb];return _0xcdb7b9;}import{CommandType as _0x1f7664,UniverInstanceType as _0x3ca017,Disposable as _0x371407,ICommandService as _0xf35aee,DependentOn as _0xba9894,Inject as _0x999155,Injector as _0x285a90,IConfigService as _0x10247c,Plugin as _0x57006b,merge as _0x17b7d0}from'@univerjs/core';import{MenuItemType as _0x4ab82d,getMenuHiddenObservable as _0x18cfe0,RibbonStartGroup as _0x290b14,IMenuManagerService as _0x34abbb}from'@univerjs/ui';import{WorkbookExportPermission as _0x1d1dce}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x429e33}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x1f7664[_0x388ab9(0x16a)],'handler':async _0x53cd52=>{const _0x3164cd=_0x388ab9,_0x3d2078=_0x53cd52[_0x3164cd(0x189)](_0x308c34);return new URLSearchParams(location[_0x3164cd(0x195)])[_0x3164cd(0x189)]('unit')?_0x3d2078['importXLSXToUnitId']():_0x3d2078['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x1f7664['OPERATION'],'handler':async _0x51965c=>{const _0x1502bd=_0x388ab9,_0x4b8214=_0x51965c[_0x1502bd(0x189)](_0x308c34);return new URLSearchParams(location['search'])[_0x1502bd(0x189)](_0x1502bd(0x196))?_0x4b8214[_0x1502bd(0x16e)]():_0x4b8214[_0x1502bd(0x177)](),!0x0;}},H=_0x388ab9(0x18c),l={},S=_0x388ab9(0x17e);function R(_0xa035eb){const _0x426235=_0x388ab9;return{'id':S,'type':_0x4ab82d[_0x426235(0x174)],'icon':_0x426235(0x168),'tooltip':_0x426235(0x16f),'hidden$':_0x18cfe0(_0xa035eb,_0x3ca017[_0x426235(0x18d)]),'disabled$':_0x429e33(_0xa035eb,{'workbookTypes':[_0x1d1dce]})};}function w(){const _0x5b13de=_0x388ab9;return{'id':p['id'],'type':_0x4ab82d[_0x5b13de(0x193)],'title':_0x5b13de(0x16d),'icon':_0x5b13de(0x183)};}function D(){const _0x12e1d3=_0x388ab9;return{'id':u['id'],'type':_0x4ab82d[_0x12e1d3(0x193)],'title':'exchange.download','icon':_0x12e1d3(0x181)};}const F={[_0x290b14[_0x388ab9(0x169)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x15c1(){const _0x12cb81=['625cNFNct','3463040keAXJJ','sheets-exchange-client.operation.exchange','length','pluginName','ExportIcon','menu','FolderIcon','getOwnPropertyDescriptor','symbol','_config','registerCommand','type','get','5685952qimzJi','_initMenus','sheets-exchange-client.config','UNIVER_SHEET','disposeWithMe','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','forEach','_initCommands','BUTTON','851688QuPICg','search','unit','DirectExportIcon','OTHERS','OPERATION','_menuManagerService','744093QQSIKN','exchange.upload','exportXLSXByUnitId','exchange.file','_commandService','setConfig','add','defineProperty','SUBITEMS','14520LLrgkw','onReady','exportXLSXBySnapshot','676354PIXdTF','_injector','2116046eUyPHL','_configService'];_0x15c1=function(){return _0x12cb81;};return _0x15c1();}var G=Object[_0x388ab9(0x184)],A=(_0xf8d000,_0x22ca4e,_0x20e7b1,_0x2a99a9)=>{const _0x64f788=_0x388ab9;for(var _0xc396ee=_0x2a99a9>0x1?void 0x0:_0x2a99a9?G(_0x22ca4e,_0x20e7b1):_0x22ca4e,_0x204b66=_0xf8d000[_0x64f788(0x17f)]-0x1,_0x3ab3f9;_0x204b66>=0x0;_0x204b66--)(_0x3ab3f9=_0xf8d000[_0x204b66])&&(_0xc396ee=_0x3ab3f9(_0xc396ee)||_0xc396ee);return _0xc396ee;},d=(_0x113d8f,_0x542aba)=>(_0x1c5f8f,_0x3c395b)=>_0x542aba(_0x1c5f8f,_0x3c395b,_0x113d8f);let c=class extends _0x371407{constructor(_0x426447,_0x2f9be7){const _0x4350c3=_0x388ab9;super(),this[_0x4350c3(0x170)]=_0x426447,this['_menuManagerService']=_0x2f9be7,this[_0x4350c3(0x192)](),this[_0x4350c3(0x18b)]();}[_0x388ab9(0x192)](){const _0x2498d4=_0x388ab9;[p,u][_0x2498d4(0x191)](_0x25a722=>{const _0x2c83bc=_0x2498d4;this[_0x2c83bc(0x18e)](this[_0x2c83bc(0x170)][_0x2c83bc(0x187)](_0x25a722));});}[_0x388ab9(0x18b)](){const _0x25587f=_0x388ab9;this[_0x25587f(0x16b)][_0x25587f(0x190)](F);}};c=A([d(0x0,_0xf35aee),d(0x1,_0x34abbb)],c);var j=Object[_0x388ab9(0x173)],B=Object[_0x388ab9(0x184)],$=(_0x3a294c,_0x4c0b20,_0xe7c592)=>_0x4c0b20 in _0x3a294c?j(_0x3a294c,_0x4c0b20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7c592}):_0x3a294c[_0x4c0b20]=_0xe7c592,V=(_0x47cd79,_0xff9b0,_0x1889cd,_0x5d4c40)=>{const _0x3c4323=_0x388ab9;for(var _0x3cd93a=_0x5d4c40>0x1?void 0x0:_0x5d4c40?B(_0xff9b0,_0x1889cd):_0xff9b0,_0x25fe52=_0x47cd79[_0x3c4323(0x17f)]-0x1,_0x56782d;_0x25fe52>=0x0;_0x25fe52--)(_0x56782d=_0x47cd79[_0x25fe52])&&(_0x3cd93a=_0x56782d(_0x3cd93a)||_0x3cd93a);return _0x3cd93a;},_=(_0x479fad,_0x20e5fe)=>(_0x2c9713,_0x58d5a0)=>_0x20e5fe(_0x2c9713,_0x58d5a0,_0x479fad),I=(_0x4067f0,_0x4c434f,_0x1dde21)=>$(_0x4067f0,typeof _0x4c434f!=_0x388ab9(0x185)?_0x4c434f+'':_0x4c434f,_0x1dde21);const W=_0x388ab9(0x18f);let s=class extends _0x57006b{constructor(_0x4b6bbb=l,_0x403517,_0x5b3904){const _0x51ea96=_0x388ab9;super(),this['_config']=_0x4b6bbb,this[_0x51ea96(0x179)]=_0x403517,this['_configService']=_0x5b3904;const {menu:_0x14d743,..._0x44f737}=_0x17b7d0({},l,this[_0x51ea96(0x186)]);_0x14d743&&this[_0x51ea96(0x17b)][_0x51ea96(0x171)](_0x51ea96(0x182),_0x14d743,{'merge':!0x0}),this[_0x51ea96(0x17b)][_0x51ea96(0x171)](H,_0x44f737);}['onStarting'](){const _0x4b3537=_0x388ab9;[[c]]['forEach'](_0x5ac4ef=>this['_injector'][_0x4b3537(0x172)](_0x5ac4ef));}[_0x388ab9(0x176)](){const _0x126996=_0x388ab9;this['_injector'][_0x126996(0x189)](c);}};I(s,_0x388ab9(0x180),W),I(s,_0x388ab9(0x188),_0x3ca017[_0x388ab9(0x18d)]),s=V([_0xba9894(_0x3db9ff),_(0x1,_0x999155(_0x285a90)),_(0x2,_0x10247c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c462e,_0x5d1966){const _0x1ed9a3=_0x33ea,_0x518f21=_0x1c462e();while(!![]){try{const _0x2be807=parseInt(_0x1ed9a3(0xc2))/0x1+parseInt(_0x1ed9a3(0xc9))/0x2+parseInt(_0x1ed9a3(0xb6))/0x3+parseInt(_0x1ed9a3(0x9e))/0x4*(parseInt(_0x1ed9a3(0x93))/0x5)+parseInt(_0x1ed9a3(0xc8))/0x6+parseInt(_0x1ed9a3(0xbc))/0x7*(-parseInt(_0x1ed9a3(0xb9))/0x8)+-parseInt(_0x1ed9a3(0xa1))/0x9*(parseInt(_0x1ed9a3(0x99))/0xa);if(_0x2be807===_0x5d1966)break;else _0x518f21['push'](_0x518f21['shift']());}catch(_0xedfe93){_0x518f21['push'](_0x518f21['shift']());}}}(_0x10d9,0xa573f),function(_0x5b1ccb,_0x2d0047){const _0x3925a7=_0x33ea;typeof exports=='object'&&typeof module<'u'?_0x2d0047(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3925a7(0xbf)&&define[_0x3925a7(0xa5)]?define([_0x3925a7(0xb3),'@univerjs-pro/exchange-client',_0x3925a7(0xc4),_0x3925a7(0xb7),'@univerjs/sheets',_0x3925a7(0xab)],_0x2d0047):(_0x5b1ccb=typeof globalThis<'u'?globalThis:_0x5b1ccb||self,_0x2d0047(_0x5b1ccb[_0x3925a7(0xbd)]={},_0x5b1ccb[_0x3925a7(0x80)],_0x5b1ccb[_0x3925a7(0x7f)],_0x5b1ccb[_0x3925a7(0x84)],_0x5b1ccb['UniverSheets'],_0x5b1ccb['UniverSheetsUi']));}(this,function(_0x1b13db,_0x2ea75f,_0x1f4a7e,_0x5a8adc,_0x41a864,_0x32fd5a){'use strict';const _0x3e9570=_0x33ea;const _0x18ba58={'id':_0x3e9570(0x89),'type':_0x1f4a7e['CommandType'][_0x3e9570(0x88)],'handler':async _0xdae644=>{const _0x45ce1c=_0x3e9570,_0xbef784=_0xdae644[_0x45ce1c(0xa4)](_0x2ea75f['IExchangeOperateService']);return new URLSearchParams(location['search'])['get'](_0x45ce1c(0x9f))?_0xbef784['importXLSXToUnitId']():_0xbef784[_0x45ce1c(0xa3)](),!0x0;}},_0x199b28={'id':_0x3e9570(0xaa),'type':_0x1f4a7e[_0x3e9570(0x8e)]['OPERATION'],'handler':async _0x4e1250=>{const _0x2941da=_0x3e9570,_0x24b557=_0x4e1250[_0x2941da(0xa4)](_0x2ea75f[_0x2941da(0x94)]);return new URLSearchParams(location[_0x2941da(0x86)])[_0x2941da(0xa4)](_0x2941da(0x9f))?_0x24b557[_0x2941da(0x91)]():_0x24b557['exportXLSXBySnapshot'](),!0x0;}},_0x2cbfc8=_0x3e9570(0xbb),_0xb55b37={},_0x3ad69e=_0x3e9570(0xa6);function _0x44c5b1(_0x4612f5){const _0x155c16=_0x3e9570;return{'id':_0x3ad69e,'type':_0x5a8adc[_0x155c16(0x9d)][_0x155c16(0x90)],'icon':_0x155c16(0x96),'tooltip':_0x155c16(0x8f),'hidden$':_0x5a8adc['getMenuHiddenObservable'](_0x4612f5,_0x1f4a7e[_0x155c16(0xa9)][_0x155c16(0xad)]),'disabled$':_0x32fd5a[_0x155c16(0xac)](_0x4612f5,{'workbookTypes':[_0x41a864['WorkbookExportPermission']]})};}function _0x5b309f(){const _0x2ac5ca=_0x3e9570;return{'id':_0x18ba58['id'],'type':_0x5a8adc[_0x2ac5ca(0x9d)][_0x2ac5ca(0x97)],'title':_0x2ac5ca(0x98),'icon':_0x2ac5ca(0xb5)};}function _0x366038(){const _0x13c21b=_0x3e9570;return{'id':_0x199b28['id'],'type':_0x5a8adc[_0x13c21b(0x9d)][_0x13c21b(0x97)],'title':_0x13c21b(0xa7),'icon':_0x13c21b(0xa8)};}const _0x3aee03={[_0x5a8adc[_0x3e9570(0x81)][_0x3e9570(0xa2)]]:{[_0x3ad69e]:{'order':0.3,'menuItemFactory':_0x44c5b1,[_0x18ba58['id']]:{'order':0x0,'menuItemFactory':_0x5b309f},[_0x199b28['id']]:{'order':0x1,'menuItemFactory':_0x366038}}}};var _0x51dbd4=Object[_0x3e9570(0xb8)],_0x3c71d3=(_0x3c9518,_0x566c33,_0x1fc55d,_0x1be149)=>{const _0x3a0a5e=_0x3e9570;for(var _0x4f5754=_0x1be149>0x1?void 0x0:_0x1be149?_0x51dbd4(_0x566c33,_0x1fc55d):_0x566c33,_0x381264=_0x3c9518[_0x3a0a5e(0xc0)]-0x1,_0x30ffc8;_0x381264>=0x0;_0x381264--)(_0x30ffc8=_0x3c9518[_0x381264])&&(_0x4f5754=_0x30ffc8(_0x4f5754)||_0x4f5754);return _0x4f5754;},_0x39c2c3=(_0x48514f,_0x142d85)=>(_0x267095,_0x548c52)=>_0x142d85(_0x267095,_0x548c52,_0x48514f);let _0x2e50d2=class extends _0x1f4a7e[_0x3e9570(0x9b)]{constructor(_0x16eec3,_0x3343de){const _0x4cb27a=_0x3e9570;super(),this['_commandService']=_0x16eec3,this['_menuManagerService']=_0x3343de,this[_0x4cb27a(0xba)](),this[_0x4cb27a(0xa0)]();}['_initCommands'](){const _0x8bcefd=_0x3e9570;[_0x18ba58,_0x199b28][_0x8bcefd(0x85)](_0x46fa5a=>{const _0x5244f2=_0x8bcefd;this[_0x5244f2(0xaf)](this[_0x5244f2(0x7d)][_0x5244f2(0x7c)](_0x46fa5a));});}[_0x3e9570(0xa0)](){this['_menuManagerService']['mergeMenu'](_0x3aee03);}};_0x2e50d2=_0x3c71d3([_0x39c2c3(0x0,_0x1f4a7e[_0x3e9570(0x87)]),_0x39c2c3(0x1,_0x5a8adc[_0x3e9570(0xb1)])],_0x2e50d2);var _0x3b8bd8=Object[_0x3e9570(0xae)],_0x4646fb=Object[_0x3e9570(0xb8)],_0x1ee6ce=(_0x7dbe3,_0x59b0bb,_0x3a0a0f)=>_0x59b0bb in _0x7dbe3?_0x3b8bd8(_0x7dbe3,_0x59b0bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a0a0f}):_0x7dbe3[_0x59b0bb]=_0x3a0a0f,_0x2423de=(_0x153a52,_0x3ec096,_0x1fa59c,_0x295b24)=>{const _0x205d27=_0x3e9570;for(var _0x2ad356=_0x295b24>0x1?void 0x0:_0x295b24?_0x4646fb(_0x3ec096,_0x1fa59c):_0x3ec096,_0x3353ea=_0x153a52[_0x205d27(0xc0)]-0x1,_0x5794be;_0x3353ea>=0x0;_0x3353ea--)(_0x5794be=_0x153a52[_0x3353ea])&&(_0x2ad356=_0x5794be(_0x2ad356)||_0x2ad356);return _0x2ad356;},_0x35f17d=(_0x401052,_0x4c30c3)=>(_0x1657bb,_0x521757)=>_0x4c30c3(_0x1657bb,_0x521757,_0x401052),_0x23cf16=(_0x4974ca,_0x28f104,_0x46f860)=>_0x1ee6ce(_0x4974ca,typeof _0x28f104!='symbol'?_0x28f104+'':_0x28f104,_0x46f860);const _0x4f4d41=_0x3e9570(0xb4);_0x1b13db[_0x3e9570(0x8b)]=class extends _0x1f4a7e[_0x3e9570(0x82)]{constructor(_0x82d263=_0xb55b37,_0x187906,_0xb2ed9){const _0x35806e=_0x3e9570;super(),this[_0x35806e(0x92)]=_0x82d263,this[_0x35806e(0xc1)]=_0x187906,this['_configService']=_0xb2ed9;const {menu:_0x13672e,..._0x21dab0}=_0x1f4a7e[_0x35806e(0xbe)]({},_0xb55b37,this['_config']);_0x13672e&&this['_configService'][_0x35806e(0x9a)]('menu',_0x13672e,{'merge':!0x0}),this[_0x35806e(0x83)][_0x35806e(0x9a)](_0x2cbfc8,_0x21dab0);}[_0x3e9570(0xc7)](){const _0x298ac4=_0x3e9570;[[_0x2e50d2]][_0x298ac4(0x85)](_0x103556=>this[_0x298ac4(0xc1)][_0x298ac4(0xc3)](_0x103556));}[_0x3e9570(0x9c)](){const _0x5254e4=_0x3e9570;this['_injector'][_0x5254e4(0xa4)](_0x2e50d2);}},_0x23cf16(_0x1b13db[_0x3e9570(0x8b)],_0x3e9570(0x8a),_0x4f4d41),_0x23cf16(_0x1b13db[_0x3e9570(0x8b)],_0x3e9570(0x95),_0x1f4a7e[_0x3e9570(0xa9)]['UNIVER_SHEET']),_0x1b13db[_0x3e9570(0x8b)]=_0x2423de([_0x1f4a7e[_0x3e9570(0x8d)](_0x2ea75f['UniverExchangeClientPlugin']),_0x35f17d(0x1,_0x1f4a7e[_0x3e9570(0xc5)](_0x1f4a7e[_0x3e9570(0xc6)])),_0x35f17d(0x2,_0x1f4a7e[_0x3e9570(0x7e)])],_0x1b13db[_0x3e9570(0x8b)]),_0x1b13db[_0x3e9570(0xb0)]=_0x199b28,_0x1b13db['ImportXLSXOperation']=_0x18ba58,Object['defineProperty'](_0x1b13db,Symbol[_0x3e9570(0xb2)],{'value':_0x3e9570(0x8c)});}));function _0x33ea(_0x348b73,_0x2b00b2){_0x348b73=_0x348b73-0x7c;const _0x10d910=_0x10d9();let _0x33eaef=_0x10d910[_0x348b73];return _0x33eaef;}function _0x10d9(){const _0xfbed85=['function','length','_injector','1023292GjvwEl','add','@univerjs/core','Inject','Injector','onStarting','1597704omnjrY','506798sfxrVq','registerCommand','_commandService','IConfigService','UniverCore','UniverProExchangeClient','RibbonStartGroup','Plugin','_configService','UniverUi','forEach','search','ICommandService','OPERATION','exchange-client.operation.import-xlsx','pluginName','UniverSheetsExchangeClientPlugin','Module','DependentOn','CommandType','exchange.file','SUBITEMS','exportXLSXByUnitId','_config','199625MDnzzu','IExchangeOperateService','type','DirectExportIcon','BUTTON','exchange.upload','47480YbikgS','setConfig','Disposable','onReady','MenuItemType','48YkOqoJ','unit','_initMenus','2754CBkjPK','OTHERS','importXLSXToSnapshot','get','amd','sheets-exchange-client.operation.exchange','exchange.download','ExportIcon','UniverInstanceType','exchange-client.operation.export-xlsx','@univerjs/sheets-ui','getCurrentRangeDisable$','UNIVER_SHEET','defineProperty','disposeWithMe','ExportXLSXOperation','IMenuManagerService','toStringTag','exports','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','2846304ujaZEF','@univerjs/ui','getOwnPropertyDescriptor','40YRNRLQ','_initCommands','sheets-exchange-client.config','1176364UFqouA','UniverProSheetsExchangeClient','merge'];_0x10d9=function(){return _0xfbed85;};return _0x10d9();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251218-2062647",
|
|
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-pro/exchange-client": "0.13.0-insiders.
|
|
46
|
-
"@univerjs/core": "0.13.0-insiders.
|
|
47
|
-
"@univerjs/sheets": "0.13.0-insiders.
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.13.0-insiders.20251218-2062647",
|
|
46
|
+
"@univerjs/core": "0.13.0-insiders.20251218-2062647",
|
|
47
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251218-2062647",
|
|
48
|
+
"@univerjs/ui": "0.13.0-insiders.20251218-2062647",
|
|
49
|
+
"@univerjs/sheets": "0.13.0-insiders.20251218-2062647"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|