@univerjs-pro/sheets-exchange-client 0.10.3 → 0.10.4-nightly.202508220605
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1a6e9e=_0x59d0;function _0x5b5a(){const _0x460aed=['UniverSheetsExchangeClientPlugin','registerCommand','exchange.download','exchange.upload','onStarting','importXLSXToUnitId','Disposable','exchange-client.operation.import-xlsx','sheets-exchange-client.config','3288308ioTUBU','DirectExportIcon','_commandService','menu','onReady','_injector','23749120VouRZT','OTHERS','disposeWithMe','UniverInstanceType','RibbonStartGroup','get','88360hQEwto','UNIVER_SHEET','_config','length','defineProperty','search','IMenuManagerService','10hqIsJJ','ICommandService','type','getMenuHiddenObservable','ImportXLSXOperation','IExchangeOperateService','unit','Module','OPERATION','toStringTag','4060845ruspTm','_initMenus','forEach','Injector','setConfig','MenuItemType','Plugin','exportXLSXBySnapshot','merge','2538153RIGKDS','_menuManagerService','4nsZYVw','441QXlpOr','getOwnPropertyDescriptor','235009RdSwph','_initCommands','_configService','WorkbookExportPermission','FolderIcon','DependentOn','add','CommandType','BUTTON','pluginName','Inject','1421184rxCwfg'];_0x5b5a=function(){return _0x460aed;};return _0x5b5a();}(function(_0x5a580a,_0x5104aa){const _0xd78d09=_0x59d0,_0x4ad814=_0x5a580a();while(!![]){try{const _0x1b4116=-parseInt(_0xd78d09(0x101))/0x1*(parseInt(_0xd78d09(0xfe))/0x2)+parseInt(_0xd78d09(0xfc))/0x3+parseInt(_0xd78d09(0x116))/0x4+parseInt(_0xd78d09(0x129))/0x5*(parseInt(_0xd78d09(0x10c))/0x6)+-parseInt(_0xd78d09(0xff))/0x7*(-parseInt(_0xd78d09(0x122))/0x8)+parseInt(_0xd78d09(0x133))/0x9+-parseInt(_0xd78d09(0x11c))/0xa;if(_0x1b4116===_0x5104aa)break;else _0x4ad814['push'](_0x4ad814['shift']());}catch(_0x2a12e2){_0x4ad814['push'](_0x4ad814['shift']());}}}(_0x5b5a,0x6c63e));Object[_0x1a6e9e(0x126)](exports,Symbol[_0x1a6e9e(0x132)],{'value':_0x1a6e9e(0x130)});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':_0x1a6e9e(0x114),'type':i[_0x1a6e9e(0x108)][_0x1a6e9e(0x131)],'handler':async _0x51d2b0=>{const _0x546ebc=_0x1a6e9e,_0x47f568=_0x51d2b0['get'](g['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x546ebc(0x121)]('unit')?_0x47f568[_0x546ebc(0x112)]():_0x47f568['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x1a6e9e(0x108)]['OPERATION'],'handler':async _0x1de971=>{const _0x44d53a=_0x1a6e9e,_0x167b4f=_0x1de971[_0x44d53a(0x121)](g[_0x44d53a(0x12e)]);return new URLSearchParams(location[_0x44d53a(0x127)])[_0x44d53a(0x121)](_0x44d53a(0x12f))?_0x167b4f['exportXLSXByUnitId']():_0x167b4f[_0x44d53a(0xfa)](),!0x0;}},v=_0x1a6e9e(0x115),h={},S='sheets-exchange-client.operation.exchange';function x(_0x68285a){const _0x270154=_0x1a6e9e;return{'id':S,'type':c[_0x270154(0xf8)]['SUBITEMS'],'icon':_0x270154(0x117),'tooltip':'exchange.file','hidden$':c[_0x270154(0x12c)](_0x68285a,i['UniverInstanceType'][_0x270154(0x123)]),'disabled$':I['getCurrentRangeDisable$'](_0x68285a,{'workbookTypes':[_[_0x270154(0x104)]]})};}function P(){const _0x15706d=_0x1a6e9e;return{'id':l['id'],'type':c[_0x15706d(0xf8)][_0x15706d(0x109)],'title':_0x15706d(0x110),'icon':_0x15706d(0x105)};}function C(){const _0x57df4a=_0x1a6e9e;return{'id':p['id'],'type':c[_0x57df4a(0xf8)][_0x57df4a(0x109)],'title':_0x57df4a(0x10f),'icon':'ExportIcon'};}const f={[c[_0x1a6e9e(0x120)][_0x1a6e9e(0x11d)]]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x1a6e9e(0x100)],y=(_0x109ea8,_0x198d46,_0x6b1af2,_0x3907e3)=>{const _0x5b9cde=_0x1a6e9e;for(var _0x597fc3=_0x3907e3>0x1?void 0x0:_0x3907e3?T(_0x198d46,_0x6b1af2):_0x198d46,_0x57cb17=_0x109ea8[_0x5b9cde(0x125)]-0x1,_0x382d04;_0x57cb17>=0x0;_0x57cb17--)(_0x382d04=_0x109ea8[_0x57cb17])&&(_0x597fc3=_0x382d04(_0x597fc3)||_0x597fc3);return _0x597fc3;},m=(_0x367e53,_0x1babac)=>(_0x50c55b,_0x265cc5)=>_0x1babac(_0x50c55b,_0x265cc5,_0x367e53);let u=class extends i[_0x1a6e9e(0x113)]{constructor(_0x596dba,_0x531e8d){const _0x41a68c=_0x1a6e9e;super(),this[_0x41a68c(0x118)]=_0x596dba,this[_0x41a68c(0xfd)]=_0x531e8d,this['_initCommands'](),this['_initMenus']();}[_0x1a6e9e(0x102)](){[l,p]['forEach'](_0x3ba23d=>{const _0x3a16c3=_0x59d0;this[_0x3a16c3(0x11e)](this[_0x3a16c3(0x118)][_0x3a16c3(0x10e)](_0x3ba23d));});}[_0x1a6e9e(0x134)](){this['_menuManagerService']['mergeMenu'](f);}};u=y([m(0x0,i[_0x1a6e9e(0x12a)]),m(0x1,c[_0x1a6e9e(0x128)])],u);function _0x59d0(_0x1d740a,_0x37a000){const _0x5b5a68=_0x5b5a();return _0x59d0=function(_0x59d02d,_0x1dc596){_0x59d02d=_0x59d02d-0xf8;let _0x5ab55b=_0x5b5a68[_0x59d02d];return _0x5ab55b;},_0x59d0(_0x1d740a,_0x37a000);}var O=Object['defineProperty'],U=Object[_0x1a6e9e(0x100)],X=(_0x55a077,_0x33397d,_0x45ddb4)=>_0x33397d in _0x55a077?O(_0x55a077,_0x33397d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45ddb4}):_0x55a077[_0x33397d]=_0x45ddb4,N=(_0x1a6273,_0x4bbc68,_0x52e41a,_0x1170d6)=>{const _0x28e30e=_0x1a6e9e;for(var _0x58d4c2=_0x1170d6>0x1?void 0x0:_0x1170d6?U(_0x4bbc68,_0x52e41a):_0x4bbc68,_0x1bfe0f=_0x1a6273[_0x28e30e(0x125)]-0x1,_0x34001b;_0x1bfe0f>=0x0;_0x1bfe0f--)(_0x34001b=_0x1a6273[_0x1bfe0f])&&(_0x58d4c2=_0x34001b(_0x58d4c2)||_0x58d4c2);return _0x58d4c2;},d=(_0x1475a3,_0x34bd13)=>(_0x495a9e,_0x384f4f)=>_0x34bd13(_0x495a9e,_0x384f4f,_0x1475a3),E=(_0x457bb1,_0x3e819e,_0x3e0a51)=>X(_0x457bb1,typeof _0x3e819e!='symbol'?_0x3e819e+'':_0x3e819e,_0x3e0a51);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x1a6e9e(0x10d)]=class extends i[_0x1a6e9e(0xf9)]{constructor(_0xe19fa=h,_0x40522e,_0x1473cd){const _0x760bd0=_0x1a6e9e;super(),this[_0x760bd0(0x124)]=_0xe19fa,this['_injector']=_0x40522e,this[_0x760bd0(0x103)]=_0x1473cd;const {menu:_0x3955f6,..._0x2dc231}=i[_0x760bd0(0xfb)]({},h,this[_0x760bd0(0x124)]);_0x3955f6&&this[_0x760bd0(0x103)][_0x760bd0(0x137)](_0x760bd0(0x119),_0x3955f6,{'merge':!0x0}),this[_0x760bd0(0x103)][_0x760bd0(0x137)](v,_0x2dc231);}[_0x1a6e9e(0x111)](){const _0x4f8675=_0x1a6e9e;[[u]][_0x4f8675(0x135)](_0x284f46=>this[_0x4f8675(0x11b)][_0x4f8675(0x107)](_0x284f46));}[_0x1a6e9e(0x11a)](){const _0x60607d=_0x1a6e9e;this[_0x60607d(0x11b)][_0x60607d(0x121)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],_0x1a6e9e(0x10a),L),E(exports[_0x1a6e9e(0x10d)],_0x1a6e9e(0x12b),i[_0x1a6e9e(0x11f)]['UNIVER_SHEET']),exports[_0x1a6e9e(0x10d)]=N([i[_0x1a6e9e(0x106)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x1a6e9e(0x10b)](i[_0x1a6e9e(0x136)])),d(0x2,i['IConfigService'])],exports[_0x1a6e9e(0x10d)]),exports['ExportXLSXOperation']=p,exports[_0x1a6e9e(0x12d)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4eca6e=_0x535b;(function(_0x44d87f,_0x249e11){const _0x4271bc=_0x535b,_0x2a17a9=_0x44d87f();while(!![]){try{const _0x4b3af1=-parseInt(_0x4271bc(0xe9))/0x1+parseInt(_0x4271bc(0x10f))/0x2+-parseInt(_0x4271bc(0xec))/0x3+-parseInt(_0x4271bc(0xf8))/0x4*(parseInt(_0x4271bc(0xf0))/0x5)+-parseInt(_0x4271bc(0xea))/0x6+-parseInt(_0x4271bc(0x108))/0x7+parseInt(_0x4271bc(0x10e))/0x8*(parseInt(_0x4271bc(0x105))/0x9);if(_0x4b3af1===_0x249e11)break;else _0x2a17a9['push'](_0x2a17a9['shift']());}catch(_0xec18e6){_0x2a17a9['push'](_0x2a17a9['shift']());}}}(_0x3cd5,0xe008a));import{IExchangeOperateService as _0x54130f,UniverExchangeClientPlugin as _0x58d560}from'@univerjs-pro/exchange-client';import{CommandType as _0x5d23c3,UniverInstanceType as _0x51ecd2,Disposable as _0xf9af55,ICommandService as _0x4e18d8,DependentOn as _0x512868,Inject as _0x26aec3,Injector as _0x93b22d,IConfigService as _0x151d67,Plugin as _0x448868,merge as _0x508b06}from'@univerjs/core';import{MenuItemType as _0x1ed81f,getMenuHiddenObservable as _0x205b54,RibbonStartGroup as _0xea411a,IMenuManagerService as _0x539d24}from'@univerjs/ui';function _0x3cd5(){const _0x501406=['search','OTHERS','get','importXLSXToUnitId','ExportIcon','disposeWithMe','menu','sheets-exchange-client.config','exportXLSXByUnitId','9mLFbbJ','_menuManagerService','exchange.file','7646345EuwNOw','defineProperty','_initMenus','exchange-client.operation.import-xlsx','onReady','exchange.download','35720296lJNHAb','2754472UgtWSU','setConfig','getOwnPropertyDescriptor','_config','exchange.upload','_configService','add','mergeMenu','length','unit','80370kqNNOM','7032312ZSEuDU','onStarting','2858202MmjUwv','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','_injector','60VmChJa','_initCommands','registerCommand','_commandService','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','UNIVER_SHEET','symbol','542380FGIUdM','type','exchange-client.operation.export-xlsx','BUTTON'];_0x3cd5=function(){return _0x501406;};return _0x3cd5();}import{WorkbookExportPermission as _0x4ecf9d}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23398e}from'@univerjs/sheets-ui';const p={'id':_0x4eca6e(0x10b),'type':_0x5d23c3['OPERATION'],'handler':async _0x72661f=>{const _0x3243fc=_0x4eca6e,_0x4b41f0=_0x72661f[_0x3243fc(0xfe)](_0x54130f);return new URLSearchParams(location['search'])['get'](_0x3243fc(0xe8))?_0x4b41f0[_0x3243fc(0xff)]():_0x4b41f0[_0x3243fc(0xed)](),!0x0;}},u={'id':_0x4eca6e(0xfa),'type':_0x5d23c3['OPERATION'],'handler':async _0x4e06e4=>{const _0x247ada=_0x4eca6e,_0x56d2d0=_0x4e06e4[_0x247ada(0xfe)](_0x54130f);return new URLSearchParams(location[_0x247ada(0xfc)])[_0x247ada(0xfe)]('unit')?_0x56d2d0[_0x247ada(0x104)]():_0x56d2d0['exportXLSXBySnapshot'](),!0x0;}},H=_0x4eca6e(0x103),l={},S=_0x4eca6e(0xee);function _0x535b(_0x4e2fc0,_0x4bb23f){const _0x3cd5eb=_0x3cd5();return _0x535b=function(_0x535b29,_0xf05bfc){_0x535b29=_0x535b29-0xe2;let _0x19a684=_0x3cd5eb[_0x535b29];return _0x19a684;},_0x535b(_0x4e2fc0,_0x4bb23f);}function R(_0x52bd64){const _0x3bbe05=_0x4eca6e;return{'id':S,'type':_0x1ed81f['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x3bbe05(0x107),'hidden$':_0x205b54(_0x52bd64,_0x51ecd2[_0x3bbe05(0xf6)]),'disabled$':_0x23398e(_0x52bd64,{'workbookTypes':[_0x4ecf9d]})};}function w(){const _0x1a4cb4=_0x4eca6e;return{'id':p['id'],'type':_0x1ed81f[_0x1a4cb4(0xfb)],'title':_0x1a4cb4(0xe3),'icon':_0x1a4cb4(0xf5)};}function D(){const _0x5b92a7=_0x4eca6e;return{'id':u['id'],'type':_0x1ed81f[_0x5b92a7(0xfb)],'title':_0x5b92a7(0x10d),'icon':_0x5b92a7(0x100)};}const F={[_0xea411a[_0x4eca6e(0xfd)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4eca6e(0x111)],A=(_0x5bef37,_0x418fb4,_0x36eb36,_0x58c858)=>{for(var _0x5d1845=_0x58c858>0x1?void 0x0:_0x58c858?G(_0x418fb4,_0x36eb36):_0x418fb4,_0x441ed1=_0x5bef37['length']-0x1,_0x56d689;_0x441ed1>=0x0;_0x441ed1--)(_0x56d689=_0x5bef37[_0x441ed1])&&(_0x5d1845=_0x56d689(_0x5d1845)||_0x5d1845);return _0x5d1845;},d=(_0x772956,_0x3b554b)=>(_0x40dd3c,_0xa37e1e)=>_0x3b554b(_0x40dd3c,_0xa37e1e,_0x772956);let c=class extends _0xf9af55{constructor(_0x3785fe,_0xf688b5){const _0x36c54d=_0x4eca6e;super(),this['_commandService']=_0x3785fe,this['_menuManagerService']=_0xf688b5,this['_initCommands'](),this[_0x36c54d(0x10a)]();}[_0x4eca6e(0xf1)](){[p,u]['forEach'](_0x58df79=>{const _0x543223=_0x535b;this[_0x543223(0x101)](this[_0x543223(0xf3)][_0x543223(0xf2)](_0x58df79));});}[_0x4eca6e(0x10a)](){const _0x15ebdb=_0x4eca6e;this[_0x15ebdb(0x106)][_0x15ebdb(0xe6)](F);}};c=A([d(0x0,_0x4e18d8),d(0x1,_0x539d24)],c);var j=Object[_0x4eca6e(0x109)],B=Object[_0x4eca6e(0x111)],$=(_0x213a67,_0x5885c4,_0x4af24c)=>_0x5885c4 in _0x213a67?j(_0x213a67,_0x5885c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4af24c}):_0x213a67[_0x5885c4]=_0x4af24c,V=(_0x2e9208,_0x166f87,_0x3b1414,_0x5e747d)=>{const _0x333133=_0x4eca6e;for(var _0x5c409f=_0x5e747d>0x1?void 0x0:_0x5e747d?B(_0x166f87,_0x3b1414):_0x166f87,_0x430db8=_0x2e9208[_0x333133(0xe7)]-0x1,_0x5b8740;_0x430db8>=0x0;_0x430db8--)(_0x5b8740=_0x2e9208[_0x430db8])&&(_0x5c409f=_0x5b8740(_0x5c409f)||_0x5c409f);return _0x5c409f;},_=(_0x386f07,_0x479d49)=>(_0x3d465c,_0x2a88ce)=>_0x479d49(_0x3d465c,_0x2a88ce,_0x386f07),I=(_0x5b285d,_0x26d7c3,_0x6b4939)=>$(_0x5b285d,typeof _0x26d7c3!=_0x4eca6e(0xf7)?_0x26d7c3+'':_0x26d7c3,_0x6b4939);const W=_0x4eca6e(0xf4);let s=class extends _0x448868{constructor(_0x59e8f6=l,_0xc8ff81,_0x134702){const _0xed39a8=_0x4eca6e;super(),this['_config']=_0x59e8f6,this[_0xed39a8(0xef)]=_0xc8ff81,this[_0xed39a8(0xe4)]=_0x134702;const {menu:_0x2fcfe5,..._0x436ac8}=_0x508b06({},l,this[_0xed39a8(0xe2)]);_0x2fcfe5&&this[_0xed39a8(0xe4)][_0xed39a8(0x110)](_0xed39a8(0x102),_0x2fcfe5,{'merge':!0x0}),this[_0xed39a8(0xe4)][_0xed39a8(0x110)](H,_0x436ac8);}[_0x4eca6e(0xeb)](){const _0x1df7d9=_0x4eca6e;[[c]]['forEach'](_0x585920=>this[_0x1df7d9(0xef)][_0x1df7d9(0xe5)](_0x585920));}[_0x4eca6e(0x10c)](){const _0xa151d5=_0x4eca6e;this[_0xa151d5(0xef)][_0xa151d5(0xfe)](c);}};I(s,'pluginName',W),I(s,_0x4eca6e(0xf9),_0x51ecd2[_0x4eca6e(0xf6)]),s=V([_0x512868(_0x58d560),_(0x1,_0x26aec3(_0x93b22d)),_(0x2,_0x151d67)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4eca6e=_0x535b;(function(_0x44d87f,_0x249e11){const _0x4271bc=_0x535b,_0x2a17a9=_0x44d87f();while(!![]){try{const _0x4b3af1=-parseInt(_0x4271bc(0xe9))/0x1+parseInt(_0x4271bc(0x10f))/0x2+-parseInt(_0x4271bc(0xec))/0x3+-parseInt(_0x4271bc(0xf8))/0x4*(parseInt(_0x4271bc(0xf0))/0x5)+-parseInt(_0x4271bc(0xea))/0x6+-parseInt(_0x4271bc(0x108))/0x7+parseInt(_0x4271bc(0x10e))/0x8*(parseInt(_0x4271bc(0x105))/0x9);if(_0x4b3af1===_0x249e11)break;else _0x2a17a9['push'](_0x2a17a9['shift']());}catch(_0xec18e6){_0x2a17a9['push'](_0x2a17a9['shift']());}}}(_0x3cd5,0xe008a));import{IExchangeOperateService as _0x54130f,UniverExchangeClientPlugin as _0x58d560}from'@univerjs-pro/exchange-client';import{CommandType as _0x5d23c3,UniverInstanceType as _0x51ecd2,Disposable as _0xf9af55,ICommandService as _0x4e18d8,DependentOn as _0x512868,Inject as _0x26aec3,Injector as _0x93b22d,IConfigService as _0x151d67,Plugin as _0x448868,merge as _0x508b06}from'@univerjs/core';import{MenuItemType as _0x1ed81f,getMenuHiddenObservable as _0x205b54,RibbonStartGroup as _0xea411a,IMenuManagerService as _0x539d24}from'@univerjs/ui';function _0x3cd5(){const _0x501406=['search','OTHERS','get','importXLSXToUnitId','ExportIcon','disposeWithMe','menu','sheets-exchange-client.config','exportXLSXByUnitId','9mLFbbJ','_menuManagerService','exchange.file','7646345EuwNOw','defineProperty','_initMenus','exchange-client.operation.import-xlsx','onReady','exchange.download','35720296lJNHAb','2754472UgtWSU','setConfig','getOwnPropertyDescriptor','_config','exchange.upload','_configService','add','mergeMenu','length','unit','80370kqNNOM','7032312ZSEuDU','onStarting','2858202MmjUwv','importXLSXToSnapshot','sheets-exchange-client.operation.exchange','_injector','60VmChJa','_initCommands','registerCommand','_commandService','SHEET_EXCHANGE_CLIENT_PLUGIN','FolderIcon','UNIVER_SHEET','symbol','542380FGIUdM','type','exchange-client.operation.export-xlsx','BUTTON'];_0x3cd5=function(){return _0x501406;};return _0x3cd5();}import{WorkbookExportPermission as _0x4ecf9d}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x23398e}from'@univerjs/sheets-ui';const p={'id':_0x4eca6e(0x10b),'type':_0x5d23c3['OPERATION'],'handler':async _0x72661f=>{const _0x3243fc=_0x4eca6e,_0x4b41f0=_0x72661f[_0x3243fc(0xfe)](_0x54130f);return new URLSearchParams(location['search'])['get'](_0x3243fc(0xe8))?_0x4b41f0[_0x3243fc(0xff)]():_0x4b41f0[_0x3243fc(0xed)](),!0x0;}},u={'id':_0x4eca6e(0xfa),'type':_0x5d23c3['OPERATION'],'handler':async _0x4e06e4=>{const _0x247ada=_0x4eca6e,_0x56d2d0=_0x4e06e4[_0x247ada(0xfe)](_0x54130f);return new URLSearchParams(location[_0x247ada(0xfc)])[_0x247ada(0xfe)]('unit')?_0x56d2d0[_0x247ada(0x104)]():_0x56d2d0['exportXLSXBySnapshot'](),!0x0;}},H=_0x4eca6e(0x103),l={},S=_0x4eca6e(0xee);function _0x535b(_0x4e2fc0,_0x4bb23f){const _0x3cd5eb=_0x3cd5();return _0x535b=function(_0x535b29,_0xf05bfc){_0x535b29=_0x535b29-0xe2;let _0x19a684=_0x3cd5eb[_0x535b29];return _0x19a684;},_0x535b(_0x4e2fc0,_0x4bb23f);}function R(_0x52bd64){const _0x3bbe05=_0x4eca6e;return{'id':S,'type':_0x1ed81f['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x3bbe05(0x107),'hidden$':_0x205b54(_0x52bd64,_0x51ecd2[_0x3bbe05(0xf6)]),'disabled$':_0x23398e(_0x52bd64,{'workbookTypes':[_0x4ecf9d]})};}function w(){const _0x1a4cb4=_0x4eca6e;return{'id':p['id'],'type':_0x1ed81f[_0x1a4cb4(0xfb)],'title':_0x1a4cb4(0xe3),'icon':_0x1a4cb4(0xf5)};}function D(){const _0x5b92a7=_0x4eca6e;return{'id':u['id'],'type':_0x1ed81f[_0x5b92a7(0xfb)],'title':_0x5b92a7(0x10d),'icon':_0x5b92a7(0x100)};}const F={[_0xea411a[_0x4eca6e(0xfd)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x4eca6e(0x111)],A=(_0x5bef37,_0x418fb4,_0x36eb36,_0x58c858)=>{for(var _0x5d1845=_0x58c858>0x1?void 0x0:_0x58c858?G(_0x418fb4,_0x36eb36):_0x418fb4,_0x441ed1=_0x5bef37['length']-0x1,_0x56d689;_0x441ed1>=0x0;_0x441ed1--)(_0x56d689=_0x5bef37[_0x441ed1])&&(_0x5d1845=_0x56d689(_0x5d1845)||_0x5d1845);return _0x5d1845;},d=(_0x772956,_0x3b554b)=>(_0x40dd3c,_0xa37e1e)=>_0x3b554b(_0x40dd3c,_0xa37e1e,_0x772956);let c=class extends _0xf9af55{constructor(_0x3785fe,_0xf688b5){const _0x36c54d=_0x4eca6e;super(),this['_commandService']=_0x3785fe,this['_menuManagerService']=_0xf688b5,this['_initCommands'](),this[_0x36c54d(0x10a)]();}[_0x4eca6e(0xf1)](){[p,u]['forEach'](_0x58df79=>{const _0x543223=_0x535b;this[_0x543223(0x101)](this[_0x543223(0xf3)][_0x543223(0xf2)](_0x58df79));});}[_0x4eca6e(0x10a)](){const _0x15ebdb=_0x4eca6e;this[_0x15ebdb(0x106)][_0x15ebdb(0xe6)](F);}};c=A([d(0x0,_0x4e18d8),d(0x1,_0x539d24)],c);var j=Object[_0x4eca6e(0x109)],B=Object[_0x4eca6e(0x111)],$=(_0x213a67,_0x5885c4,_0x4af24c)=>_0x5885c4 in _0x213a67?j(_0x213a67,_0x5885c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4af24c}):_0x213a67[_0x5885c4]=_0x4af24c,V=(_0x2e9208,_0x166f87,_0x3b1414,_0x5e747d)=>{const _0x333133=_0x4eca6e;for(var _0x5c409f=_0x5e747d>0x1?void 0x0:_0x5e747d?B(_0x166f87,_0x3b1414):_0x166f87,_0x430db8=_0x2e9208[_0x333133(0xe7)]-0x1,_0x5b8740;_0x430db8>=0x0;_0x430db8--)(_0x5b8740=_0x2e9208[_0x430db8])&&(_0x5c409f=_0x5b8740(_0x5c409f)||_0x5c409f);return _0x5c409f;},_=(_0x386f07,_0x479d49)=>(_0x3d465c,_0x2a88ce)=>_0x479d49(_0x3d465c,_0x2a88ce,_0x386f07),I=(_0x5b285d,_0x26d7c3,_0x6b4939)=>$(_0x5b285d,typeof _0x26d7c3!=_0x4eca6e(0xf7)?_0x26d7c3+'':_0x26d7c3,_0x6b4939);const W=_0x4eca6e(0xf4);let s=class extends _0x448868{constructor(_0x59e8f6=l,_0xc8ff81,_0x134702){const _0xed39a8=_0x4eca6e;super(),this['_config']=_0x59e8f6,this[_0xed39a8(0xef)]=_0xc8ff81,this[_0xed39a8(0xe4)]=_0x134702;const {menu:_0x2fcfe5,..._0x436ac8}=_0x508b06({},l,this[_0xed39a8(0xe2)]);_0x2fcfe5&&this[_0xed39a8(0xe4)][_0xed39a8(0x110)](_0xed39a8(0x102),_0x2fcfe5,{'merge':!0x0}),this[_0xed39a8(0xe4)][_0xed39a8(0x110)](H,_0x436ac8);}[_0x4eca6e(0xeb)](){const _0x1df7d9=_0x4eca6e;[[c]]['forEach'](_0x585920=>this[_0x1df7d9(0xef)][_0x1df7d9(0xe5)](_0x585920));}[_0x4eca6e(0x10c)](){const _0xa151d5=_0x4eca6e;this[_0xa151d5(0xef)][_0xa151d5(0xfe)](c);}};I(s,'pluginName',W),I(s,_0x4eca6e(0xf9),_0x51ecd2[_0x4eca6e(0xf6)]),s=V([_0x512868(_0x58d560),_(0x1,_0x26aec3(_0x93b22d)),_(0x2,_0x151d67)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x180433,_0x4aab0e){const _0x428138=_0x192d,_0x48a956=_0x180433();while(!![]){try{const _0x22854f=parseInt(_0x428138(0x197))/0x1+parseInt(_0x428138(0x1a7))/0x2*(parseInt(_0x428138(0x1b2))/0x3)+parseInt(_0x428138(0x189))/0x4*(-parseInt(_0x428138(0x1a5))/0x5)+parseInt(_0x428138(0x1b0))/0x6+-parseInt(_0x428138(0x1bb))/0x7+parseInt(_0x428138(0x1b5))/0x8*(parseInt(_0x428138(0x1ba))/0x9)+-parseInt(_0x428138(0x1b1))/0xa;if(_0x22854f===_0x4aab0e)break;else _0x48a956['push'](_0x48a956['shift']());}catch(_0x1f07c8){_0x48a956['push'](_0x48a956['shift']());}}}(_0x4cbf,0x86428),function(_0x3d2e23,_0x21bd17){const _0x1af08b=_0x192d;typeof exports==_0x1af08b(0x190)&&typeof module<'u'?_0x21bd17(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x1af08b(0x1b8)&&define[_0x1af08b(0x19e)]?define(['exports',_0x1af08b(0x1b4),_0x1af08b(0x1c0),_0x1af08b(0x182),_0x1af08b(0x18d),_0x1af08b(0x1ab)],_0x21bd17):(_0x3d2e23=typeof globalThis<'u'?globalThis:_0x3d2e23||self,_0x21bd17(_0x3d2e23['UniverProSheetsExchangeClient']={},_0x3d2e23[_0x1af08b(0x1a4)],_0x3d2e23[_0x1af08b(0x1cc)],_0x3d2e23[_0x1af08b(0x191)],_0x3d2e23[_0x1af08b(0x1c4)],_0x3d2e23[_0x1af08b(0x183)]));}(this,function(_0xdc89ee,_0x52d7ac,_0x2d4c08,_0xf7702a,_0x587d96,_0xe9dce8){'use strict';const _0x1c8a65=_0x192d;const _0x3faf14={'id':_0x1c8a65(0x1a9),'type':_0x2d4c08[_0x1c8a65(0x1c7)]['OPERATION'],'handler':async _0x13e1a2=>{const _0x5a06a5=_0x1c8a65,_0x16e93d=_0x13e1a2[_0x5a06a5(0x1a1)](_0x52d7ac[_0x5a06a5(0x19f)]);return new URLSearchParams(location[_0x5a06a5(0x199)])[_0x5a06a5(0x1a1)](_0x5a06a5(0x1af))?_0x16e93d[_0x5a06a5(0x1a0)]():_0x16e93d['importXLSXToSnapshot'](),!0x0;}},_0x1aa530={'id':_0x1c8a65(0x1c3),'type':_0x2d4c08[_0x1c8a65(0x1c7)][_0x1c8a65(0x1bf)],'handler':async _0x17f50c=>{const _0x51728c=_0x1c8a65,_0x220fab=_0x17f50c[_0x51728c(0x1a1)](_0x52d7ac[_0x51728c(0x19f)]);return new URLSearchParams(location[_0x51728c(0x199)])[_0x51728c(0x1a1)]('unit')?_0x220fab['exportXLSXByUnitId']():_0x220fab['exportXLSXBySnapshot'](),!0x0;}},_0x1c021e=_0x1c8a65(0x1ce),_0x496cd3={},_0x1580dc='sheets-exchange-client.operation.exchange';function _0x3c553e(_0x45ed4f){const _0x493131=_0x1c8a65;return{'id':_0x1580dc,'type':_0xf7702a[_0x493131(0x1c8)][_0x493131(0x1c2)],'icon':_0x493131(0x1a8),'tooltip':_0x493131(0x184),'hidden$':_0xf7702a[_0x493131(0x188)](_0x45ed4f,_0x2d4c08[_0x493131(0x1be)][_0x493131(0x185)]),'disabled$':_0xe9dce8[_0x493131(0x1b3)](_0x45ed4f,{'workbookTypes':[_0x587d96[_0x493131(0x18a)]]})};}function _0x54e345(){const _0x2e2222=_0x1c8a65;return{'id':_0x3faf14['id'],'type':_0xf7702a['MenuItemType'][_0x2e2222(0x1c5)],'title':_0x2e2222(0x1bd),'icon':'FolderIcon'};}function _0x151af9(){const _0x129cb7=_0x1c8a65;return{'id':_0x1aa530['id'],'type':_0xf7702a[_0x129cb7(0x1c8)][_0x129cb7(0x1c5)],'title':_0x129cb7(0x19c),'icon':'ExportIcon'};}const _0x57184a={[_0xf7702a[_0x1c8a65(0x1ae)][_0x1c8a65(0x181)]]:{[_0x1580dc]:{'order':0.3,'menuItemFactory':_0x3c553e,[_0x3faf14['id']]:{'order':0x0,'menuItemFactory':_0x54e345},[_0x1aa530['id']]:{'order':0x1,'menuItemFactory':_0x151af9}}}};var _0x39aa4d=Object['getOwnPropertyDescriptor'],_0x51588d=(_0x7cfb13,_0x1d1b6c,_0x221e9b,_0x16035b)=>{const _0x2e4b40=_0x1c8a65;for(var _0x43829b=_0x16035b>0x1?void 0x0:_0x16035b?_0x39aa4d(_0x1d1b6c,_0x221e9b):_0x1d1b6c,_0x2585ba=_0x7cfb13[_0x2e4b40(0x186)]-0x1,_0x5aa0fe;_0x2585ba>=0x0;_0x2585ba--)(_0x5aa0fe=_0x7cfb13[_0x2585ba])&&(_0x43829b=_0x5aa0fe(_0x43829b)||_0x43829b);return _0x43829b;},_0x31b7cd=(_0x2e4dd3,_0x244bf6)=>(_0x2f9164,_0x2e3132)=>_0x244bf6(_0x2f9164,_0x2e3132,_0x2e4dd3);let _0x3e41be=class extends _0x2d4c08['Disposable']{constructor(_0x177ed8,_0x58d604){const _0x5615a5=_0x1c8a65;super(),this[_0x5615a5(0x196)]=_0x177ed8,this[_0x5615a5(0x19a)]=_0x58d604,this[_0x5615a5(0x192)](),this[_0x5615a5(0x1b7)]();}[_0x1c8a65(0x192)](){[_0x3faf14,_0x1aa530]['forEach'](_0x47f727=>{const _0x54a339=_0x192d;this[_0x54a339(0x18f)](this[_0x54a339(0x196)][_0x54a339(0x1c1)](_0x47f727));});}['_initMenus'](){const _0x48d18e=_0x1c8a65;this[_0x48d18e(0x19a)]['mergeMenu'](_0x57184a);}};_0x3e41be=_0x51588d([_0x31b7cd(0x0,_0x2d4c08['ICommandService']),_0x31b7cd(0x1,_0xf7702a[_0x1c8a65(0x1ac)])],_0x3e41be);var _0x342b4d=Object[_0x1c8a65(0x194)],_0x10d2e4=Object[_0x1c8a65(0x19d)],_0x2397b3=(_0x4250d2,_0x21595e,_0x439c7d)=>_0x21595e in _0x4250d2?_0x342b4d(_0x4250d2,_0x21595e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x439c7d}):_0x4250d2[_0x21595e]=_0x439c7d,_0x1becbc=(_0x1b2aeb,_0x5e8365,_0x542031,_0x30e6ce)=>{for(var _0x2966dd=_0x30e6ce>0x1?void 0x0:_0x30e6ce?_0x10d2e4(_0x5e8365,_0x542031):_0x5e8365,_0x595d68=_0x1b2aeb['length']-0x1,_0x2ab078;_0x595d68>=0x0;_0x595d68--)(_0x2ab078=_0x1b2aeb[_0x595d68])&&(_0x2966dd=_0x2ab078(_0x2966dd)||_0x2966dd);return _0x2966dd;},_0x2600bb=(_0x19eba7,_0x1c6a32)=>(_0xadb39b,_0x3eb2e8)=>_0x1c6a32(_0xadb39b,_0x3eb2e8,_0x19eba7),_0x41e974=(_0x4f7193,_0x2190b2,_0x5a732b)=>_0x2397b3(_0x4f7193,typeof _0x2190b2!=_0x1c8a65(0x18e)?_0x2190b2+'':_0x2190b2,_0x5a732b);const _0x329aa5=_0x1c8a65(0x1c6);_0xdc89ee[_0x1c8a65(0x1ad)]=class extends _0x2d4c08['Plugin']{constructor(_0xee44c8=_0x496cd3,_0x430a6e,_0x2a22ca){const _0x1a141d=_0x1c8a65;super(),this[_0x1a141d(0x1c9)]=_0xee44c8,this['_injector']=_0x430a6e,this[_0x1a141d(0x19b)]=_0x2a22ca;const {menu:_0x27127b,..._0xf58ee7}=_0x2d4c08['merge']({},_0x496cd3,this[_0x1a141d(0x1c9)]);_0x27127b&&this[_0x1a141d(0x19b)][_0x1a141d(0x193)]('menu',_0x27127b,{'merge':!0x0}),this[_0x1a141d(0x19b)][_0x1a141d(0x193)](_0x1c021e,_0xf58ee7);}[_0x1c8a65(0x1a3)](){const _0x100ac6=_0x1c8a65;[[_0x3e41be]][_0x100ac6(0x18c)](_0x5c1bb5=>this[_0x100ac6(0x1cd)][_0x100ac6(0x1a2)](_0x5c1bb5));}['onReady'](){const _0x21d7e8=_0x1c8a65;this[_0x21d7e8(0x1cd)]['get'](_0x3e41be);}},_0x41e974(_0xdc89ee['UniverSheetsExchangeClientPlugin'],_0x1c8a65(0x1a6),_0x329aa5),_0x41e974(_0xdc89ee['UniverSheetsExchangeClientPlugin'],_0x1c8a65(0x18b),_0x2d4c08[_0x1c8a65(0x1be)][_0x1c8a65(0x185)]),_0xdc89ee[_0x1c8a65(0x1ad)]=_0x1becbc([_0x2d4c08[_0x1c8a65(0x195)](_0x52d7ac[_0x1c8a65(0x1bc)]),_0x2600bb(0x1,_0x2d4c08[_0x1c8a65(0x1b6)](_0x2d4c08[_0x1c8a65(0x1aa)])),_0x2600bb(0x2,_0x2d4c08[_0x1c8a65(0x187)])],_0xdc89ee['UniverSheetsExchangeClientPlugin']),_0xdc89ee[_0x1c8a65(0x198)]=_0x1aa530,_0xdc89ee[_0x1c8a65(0x1b9)]=_0x3faf14,Object['defineProperty'](_0xdc89ee,Symbol[_0x1c8a65(0x1ca)],{'value':_0x1c8a65(0x1cb)});}));function _0x192d(_0x92ba6b,_0x40ad26){const _0x4cbf23=_0x4cbf();return _0x192d=function(_0x192d70,_0x3e252d){_0x192d70=_0x192d70-0x181;let _0x40f820=_0x4cbf23[_0x192d70];return _0x40f820;},_0x192d(_0x92ba6b,_0x40ad26);}function _0x4cbf(){const _0x5c2fb7=['ExportXLSXOperation','search','_menuManagerService','_configService','exchange.download','getOwnPropertyDescriptor','amd','IExchangeOperateService','importXLSXToUnitId','get','add','onStarting','UniverProExchangeClient','2662655DsFYSe','pluginName','13062jzVsiz','DirectExportIcon','exchange-client.operation.import-xlsx','Injector','@univerjs/sheets-ui','IMenuManagerService','UniverSheetsExchangeClientPlugin','RibbonStartGroup','unit','6163818ohxBEU','10731120ETFdzm','231gKXjhX','getCurrentRangeDisable$','@univerjs-pro/exchange-client','2608NBVsFm','Inject','_initMenus','function','ImportXLSXOperation','5058djZqmC','2240efZmuE','UniverExchangeClientPlugin','exchange.upload','UniverInstanceType','OPERATION','@univerjs/core','registerCommand','SUBITEMS','exchange-client.operation.export-xlsx','UniverSheets','BUTTON','SHEET_EXCHANGE_CLIENT_PLUGIN','CommandType','MenuItemType','_config','toStringTag','Module','UniverCore','_injector','sheets-exchange-client.config','OTHERS','@univerjs/ui','UniverSheetsUi','exchange.file','UNIVER_SHEET','length','IConfigService','getMenuHiddenObservable','4xhtvnP','WorkbookExportPermission','type','forEach','@univerjs/sheets','symbol','disposeWithMe','object','UniverUi','_initCommands','setConfig','defineProperty','DependentOn','_commandService','442489scsxCO'];_0x4cbf=function(){return _0x5c2fb7;};return _0x4cbf();}
|
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.4-nightly.202508220605",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,23 +42,23 @@
|
|
|
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.4-nightly.202508220605",
|
|
46
|
+
"@univerjs/core": "0.10.4-nightly.202508220605",
|
|
47
|
+
"@univerjs/sheets": "0.10.4-nightly.202508220605",
|
|
48
|
+
"@univerjs/ui": "0.10.4-nightly.202508220605",
|
|
49
|
+
"@univerjs/sheets-ui": "0.10.4-nightly.202508220605"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
|
-
"vite": "^7.
|
|
53
|
+
"vite": "^7.1.3",
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
|
-
"@univerjs-infra/shared": "0.10.
|
|
55
|
+
"@univerjs-infra/shared": "0.10.4"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|
|
59
59
|
"test:watch": "vitest",
|
|
60
60
|
"coverage": "vitest run --coverage",
|
|
61
|
-
"
|
|
61
|
+
"typecheck": "tsc --noEmit",
|
|
62
62
|
"build": "univer-cli build"
|
|
63
63
|
},
|
|
64
64
|
"module": "./lib/es/index.js"
|