@univerjs-pro/sheets-exchange-client 0.16.0 → 0.16.1-insiders.20260311-074e8ca
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/types/plugin.d.ts +2 -0
- 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 _0xb1d557=_0x74ac;(function(_0x3812be,_0xb0d3f0){const _0x3da9bf=_0x74ac,_0x4006b9=_0x3812be();while(!![]){try{const _0x5d37d8=parseInt(_0x3da9bf(0x10d))/0x1+-parseInt(_0x3da9bf(0x120))/0x2+parseInt(_0x3da9bf(0xeb))/0x3+-parseInt(_0x3da9bf(0x105))/0x4*(parseInt(_0x3da9bf(0x114))/0x5)+parseInt(_0x3da9bf(0x119))/0x6+-parseInt(_0x3da9bf(0xfc))/0x7*(-parseInt(_0x3da9bf(0x104))/0x8)+-parseInt(_0x3da9bf(0xe6))/0x9*(parseInt(_0x3da9bf(0x109))/0xa);if(_0x5d37d8===_0xb0d3f0)break;else _0x4006b9['push'](_0x4006b9['shift']());}catch(_0x4b02fd){_0x4006b9['push'](_0x4006b9['shift']());}}}(_0xc345,0x5b9db));Object[_0xb1d557(0x121)](exports,Symbol[_0xb1d557(0xf4)],{'value':'Module'});const p=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),v=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0xb1d557(0xdf)][_0xb1d557(0x11a)],'handler':async _0x5d0db3=>{const _0x1ea5b4=_0xb1d557,_0x5985a9=_0x5d0db3['get'](p[_0x1ea5b4(0xe7)]);return new URLSearchParams(location[_0x1ea5b4(0xe4)])[_0x1ea5b4(0x102)](_0x1ea5b4(0xef))?_0x5985a9[_0x1ea5b4(0xec)]():_0x5985a9[_0x1ea5b4(0x117)](),!0x0;}},g={'id':_0xb1d557(0xf5),'type':i[_0xb1d557(0xdf)]['OPERATION'],'handler':async _0x2d1617=>{const _0x2958f0=_0xb1d557,_0x900e2b=_0x2d1617[_0x2958f0(0x102)](p[_0x2958f0(0xe7)]);return new URLSearchParams(location[_0x2958f0(0xe4)])[_0x2958f0(0x102)](_0x2958f0(0xef))?_0x900e2b['exportXLSXByUnitId']():_0x900e2b['exportXLSXBySnapshot'](),!0x0;}},x=_0xb1d557(0xf2),P='0.16.1-insiders.20260311-074e8ca',E={'name':x,'version':P},C=_0xb1d557(0xe8),m={},_=_0xb1d557(0xfd);function f(_0x52bbb1){const _0x2266cd=_0xb1d557;return{'id':_,'type':c[_0x2266cd(0xf0)][_0x2266cd(0xfb)],'icon':_0x2266cd(0xf7),'tooltip':_0x2266cd(0x116),'hidden$':c['getMenuHiddenObservable'](_0x52bbb1,i[_0x2266cd(0xee)][_0x2266cd(0xf8)]),'disabled$':I['getCurrentRangeDisable$'](_0x52bbb1,{'workbookTypes':[v[_0x2266cd(0x11c)]]})};}function y(){const _0x44b76c=_0xb1d557;return{'id':l['id'],'type':c[_0x44b76c(0xf0)][_0x44b76c(0x113)],'title':'exchange.upload','icon':_0x44b76c(0x11b)};}function _0x74ac(_0xa3f628,_0x5c94d5){_0xa3f628=_0xa3f628-0xdd;const _0xc3450=_0xc345();let _0x74ac82=_0xc3450[_0xa3f628];return _0x74ac82;}function T(){const _0xbc51ed=_0xb1d557;return{'id':g['id'],'type':c['MenuItemType']['BUTTON'],'title':_0xbc51ed(0x124),'icon':_0xbc51ed(0x115)};}function _0xc345(){const _0x424afd=['toStringTag','exchange-client.operation.export-xlsx','registerCommand','DirectExportIcon','UNIVER_SHEET','UniverSheetsExchangeClientPlugin','_menuManagerService','SUBITEMS','7KuGjJi','sheets-exchange-client.operation.exchange','onStarting','_config','disposeWithMe','forEach','get','DependentOn','4918152jHqtEA','2932dAGROF','IConfigService','SHEET_EXCHANGE_CLIENT_PLUGIN','ExportXLSXOperation','50990zyekZP','symbol','pluginName','Disposable','633110HvWktY','_configService','ImportXLSXOperation','version','merge','_initMenus','BUTTON','240iiMiQm','ExportIcon','exchange.file','importXLSXToSnapshot','add','1427868TgnMvy','OPERATION','FolderIcon','WorkbookExportPermission','ICommandService','RibbonStartGroup','_commandService','410524zinFEK','defineProperty','OTHERS','setConfig','exchange.download','type','_injector','menu','CommandType','Injector','name','_initCommands','mergeMenu','search','packageName','1971tXSyCU','IExchangeOperateService','sheets-exchange-client.config','onReady','IMenuManagerService','739587TrIodB','importXLSXToUnitId','getOwnPropertyDescriptor','UniverInstanceType','unit','MenuItemType','length','@univerjs-pro/sheets-exchange-client','Plugin'];_0xc345=function(){return _0x424afd;};return _0xc345();}const O={[c[_0xb1d557(0x11e)][_0xb1d557(0x122)]]:{[_]:{'order':0.3,'menuItemFactory':f,[l['id']]:{'order':0x0,'menuItemFactory':y},[g['id']]:{'order':0x1,'menuItemFactory':T}}}};var U=Object[_0xb1d557(0xed)],X=(_0x5327cd,_0x5aeaf2,_0x31a0c3,_0x31b370)=>{const _0x1e016a=_0xb1d557;for(var _0x5f25ea=_0x31b370>0x1?void 0x0:_0x31b370?U(_0x5aeaf2,_0x31a0c3):_0x5aeaf2,_0x2bfebe=_0x5327cd[_0x1e016a(0xf1)]-0x1,_0x349667;_0x2bfebe>=0x0;_0x2bfebe--)(_0x349667=_0x5327cd[_0x2bfebe])&&(_0x5f25ea=_0x349667(_0x5f25ea)||_0x5f25ea);return _0x5f25ea;},d=(_0x4d68d8,_0xb3a6ab)=>(_0x21fdc6,_0x46e697)=>_0xb3a6ab(_0x21fdc6,_0x46e697,_0x4d68d8);let u=class extends i[_0xb1d557(0x10c)]{constructor(_0x50b496,_0x4c8c5c){const _0x4e4a54=_0xb1d557;super(),this[_0x4e4a54(0x11f)]=_0x50b496,this[_0x4e4a54(0xfa)]=_0x4c8c5c,this[_0x4e4a54(0xe2)](),this[_0x4e4a54(0x112)]();}[_0xb1d557(0xe2)](){const _0x43ba25=_0xb1d557;[l,g][_0x43ba25(0x101)](_0x333032=>{const _0x18ea82=_0x43ba25;this[_0x18ea82(0x100)](this[_0x18ea82(0x11f)][_0x18ea82(0xf6)](_0x333032));});}[_0xb1d557(0x112)](){const _0x38d1a2=_0xb1d557;this[_0x38d1a2(0xfa)][_0x38d1a2(0xe3)](O);}};u=X([d(0x0,i[_0xb1d557(0x11d)]),d(0x1,c[_0xb1d557(0xea)])],u);var N=Object[_0xb1d557(0x121)],b=Object['getOwnPropertyDescriptor'],M=(_0x4503f2,_0x47b6fa,_0x4ffaba)=>_0x47b6fa in _0x4503f2?N(_0x4503f2,_0x47b6fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ffaba}):_0x4503f2[_0x47b6fa]=_0x4ffaba,L=(_0x3b6110,_0x33f446,_0x8a19ef,_0x24ca19)=>{const _0x1523d8=_0xb1d557;for(var _0x20d0b5=_0x24ca19>0x1?void 0x0:_0x24ca19?b(_0x33f446,_0x8a19ef):_0x33f446,_0x55e118=_0x3b6110[_0x1523d8(0xf1)]-0x1,_0x5052db;_0x55e118>=0x0;_0x55e118--)(_0x5052db=_0x3b6110[_0x55e118])&&(_0x20d0b5=_0x5052db(_0x20d0b5)||_0x20d0b5);return _0x20d0b5;},S=(_0x1462c6,_0x90fa72)=>(_0x10d96d,_0x5435d9)=>_0x90fa72(_0x10d96d,_0x5435d9,_0x1462c6),h=(_0x273ed9,_0x2ad4b8,_0x2223c1)=>M(_0x273ed9,typeof _0x2ad4b8!=_0xb1d557(0x10a)?_0x2ad4b8+'':_0x2ad4b8,_0x2223c1);exports[_0xb1d557(0xf9)]=class extends i[_0xb1d557(0xf3)]{constructor(_0x540f7c=m,_0x49d7d2,_0x328893){const _0x54859d=_0xb1d557;super(),this[_0x54859d(0xff)]=_0x540f7c,this[_0x54859d(0xdd)]=_0x49d7d2,this[_0x54859d(0x10e)]=_0x328893;const {menu:_0x2ca987,..._0x12d20b}=i[_0x54859d(0x111)]({},m,this[_0x54859d(0xff)]);_0x2ca987&&this[_0x54859d(0x10e)]['setConfig'](_0x54859d(0xde),_0x2ca987,{'merge':!0x0}),this['_configService'][_0x54859d(0x123)](C,_0x12d20b);}[_0xb1d557(0xfe)](){const _0x20abdd=_0xb1d557;[[u]][_0x20abdd(0x101)](_0x3dbb58=>this[_0x20abdd(0xdd)][_0x20abdd(0x118)](_0x3dbb58));}[_0xb1d557(0xe9)](){const _0x329fef=_0xb1d557;this[_0x329fef(0xdd)][_0x329fef(0x102)](u);}},h(exports['UniverSheetsExchangeClientPlugin'],_0xb1d557(0x10b),_0xb1d557(0x107)),h(exports[_0xb1d557(0xf9)],_0xb1d557(0xe5),E[_0xb1d557(0xe1)]),h(exports[_0xb1d557(0xf9)],'version',E[_0xb1d557(0x110)]),h(exports[_0xb1d557(0xf9)],_0xb1d557(0x125),i[_0xb1d557(0xee)][_0xb1d557(0xf8)]),exports['UniverSheetsExchangeClientPlugin']=L([i[_0xb1d557(0x103)](p['UniverExchangeClientPlugin']),S(0x1,i['Inject'](i[_0xb1d557(0xe0)])),S(0x2,i[_0xb1d557(0x106)])],exports[_0xb1d557(0xf9)]),exports[_0xb1d557(0x108)]=g,exports[_0xb1d557(0x10f)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x45e85f=_0x16a2;(function(_0x195024,_0x26aae4){const _0x473e4c=_0x16a2,_0x2de2ad=_0x195024();while(!![]){try{const _0x203391=parseInt(_0x473e4c(0x138))/0x1+-parseInt(_0x473e4c(0x145))/0x2+-parseInt(_0x473e4c(0x134))/0x3+parseInt(_0x473e4c(0x118))/0x4*(-parseInt(_0x473e4c(0x122))/0x5)+parseInt(_0x473e4c(0x125))/0x6+parseInt(_0x473e4c(0x148))/0x7*(-parseInt(_0x473e4c(0x127))/0x8)+parseInt(_0x473e4c(0x137))/0x9*(parseInt(_0x473e4c(0x128))/0xa);if(_0x203391===_0x26aae4)break;else _0x2de2ad['push'](_0x2de2ad['shift']());}catch(_0x527330){_0x2de2ad['push'](_0x2de2ad['shift']());}}}(_0x48dd,0xea5a5));import{IExchangeOperateService as _0x28b166,UniverExchangeClientPlugin as _0x49a298}from'@univerjs-pro/exchange-client';import{CommandType as _0x129444,UniverInstanceType as _0x1df46f,Disposable as _0x4336c4,ICommandService as _0x33e9f7,DependentOn as _0x4bf1c9,Inject as _0x3ba88b,Injector as _0x30b157,Plugin as _0xede220,merge as _0xc93ffa,IConfigService as _0x209a56}from'@univerjs/core';import{MenuItemType as _0x113e38,getMenuHiddenObservable as _0x2a71f9,RibbonStartGroup as _0x2e5caf,IMenuManagerService as _0x421b36}from'@univerjs/ui';import{WorkbookExportPermission as _0x3c0bbb}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x514c93}from'@univerjs/sheets-ui';const u={'id':_0x45e85f(0x13b),'type':_0x129444[_0x45e85f(0x139)],'handler':async _0x39f604=>{const _0x46502f=_0x45e85f,_0x33d8da=_0x39f604[_0x46502f(0x121)](_0x28b166);return new URLSearchParams(location['search'])['get'](_0x46502f(0x124))?_0x33d8da[_0x46502f(0x143)]():_0x33d8da[_0x46502f(0x126)](),!0x0;}},l={'id':_0x45e85f(0x119),'type':_0x129444['OPERATION'],'handler':async _0xa6348d=>{const _0x237a79=_0x45e85f,_0x1fd981=_0xa6348d[_0x237a79(0x121)](_0x28b166);return new URLSearchParams(location[_0x237a79(0x132)])[_0x237a79(0x121)]('unit')?_0x1fd981[_0x237a79(0x13c)]():_0x1fd981[_0x237a79(0x149)](),!0x0;}},H=_0x45e85f(0x142),w=_0x45e85f(0x133),v={'name':H,'version':w},D=_0x45e85f(0x11c),d={},I=_0x45e85f(0x131);function F(_0x2c971d){const _0x4f210f=_0x45e85f;return{'id':I,'type':_0x113e38[_0x4f210f(0x11a)],'icon':_0x4f210f(0x12c),'tooltip':_0x4f210f(0x12b),'hidden$':_0x2a71f9(_0x2c971d,_0x1df46f[_0x4f210f(0x11d)]),'disabled$':_0x514c93(_0x2c971d,{'workbookTypes':[_0x3c0bbb]})};}function j(){const _0x4071a9=_0x45e85f;return{'id':u['id'],'type':_0x113e38[_0x4071a9(0x11b)],'title':_0x4071a9(0x13f),'icon':_0x4071a9(0x12a)};}function _0x16a2(_0x54d5d0,_0x5c75da){_0x54d5d0=_0x54d5d0-0x117;const _0x48dde9=_0x48dd();let _0x16a231=_0x48dde9[_0x54d5d0];return _0x16a231;}function G(){const _0x3ef173=_0x45e85f;return{'id':l['id'],'type':_0x113e38['BUTTON'],'title':'exchange.download','icon':_0x3ef173(0x13e)};}const A={[_0x2e5caf[_0x45e85f(0x13d)]]:{[I]:{'order':0.3,'menuItemFactory':F,[u['id']]:{'order':0x0,'menuItemFactory':j},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x48dd(){const _0x2aafdc=['importXLSXToUnitId','_injector','181190sUtuJX','_initMenus','mergeMenu','119cRFlFG','exportXLSXBySnapshot','menu','defineProperty','4288408hZOIWI','exchange-client.operation.export-xlsx','SUBITEMS','BUTTON','sheets-exchange-client.config','UNIVER_SHEET','setConfig','version','_configService','get','5NQtGCR','_commandService','unit','6682434PNNMQM','importXLSXToSnapshot','749928iVbePF','22971230HRyQxF','_menuManagerService','FolderIcon','exchange.file','DirectExportIcon','add','getOwnPropertyDescriptor','_initCommands','forEach','sheets-exchange-client.operation.exchange','search','0.16.1-insiders.20260311-074e8ca','2082093mSgBKU','onStarting','symbol','9cYAuoF','999372AyatzU','OPERATION','length','exchange-client.operation.import-xlsx','exportXLSXByUnitId','OTHERS','ExportIcon','exchange.upload','packageName','_config','@univerjs-pro/sheets-exchange-client'];_0x48dd=function(){return _0x2aafdc;};return _0x48dd();}var B=Object[_0x45e85f(0x12e)],$=(_0x36ff72,_0x503ded,_0x938e94,_0x216522)=>{for(var _0x42fc69=_0x216522>0x1?void 0x0:_0x216522?B(_0x503ded,_0x938e94):_0x503ded,_0x3b7c4f=_0x36ff72['length']-0x1,_0x4d17d9;_0x3b7c4f>=0x0;_0x3b7c4f--)(_0x4d17d9=_0x36ff72[_0x3b7c4f])&&(_0x42fc69=_0x4d17d9(_0x42fc69)||_0x42fc69);return _0x42fc69;},g=(_0x2eda0d,_0x428a43)=>(_0x29c255,_0x3a965a)=>_0x428a43(_0x29c255,_0x3a965a,_0x2eda0d);let s=class extends _0x4336c4{constructor(_0xfcdafe,_0x38b08c){const _0x56a699=_0x45e85f;super(),this['_commandService']=_0xfcdafe,this[_0x56a699(0x129)]=_0x38b08c,this[_0x56a699(0x12f)](),this[_0x56a699(0x146)]();}[_0x45e85f(0x12f)](){const _0x1cd24a=_0x45e85f;[u,l][_0x1cd24a(0x130)](_0x462e37=>{const _0x14be12=_0x1cd24a;this['disposeWithMe'](this[_0x14be12(0x123)]['registerCommand'](_0x462e37));});}['_initMenus'](){const _0x3d7a3b=_0x45e85f;this[_0x3d7a3b(0x129)][_0x3d7a3b(0x147)](A);}};s=$([g(0x0,_0x33e9f7),g(0x1,_0x421b36)],s);var V=Object[_0x45e85f(0x117)],W=Object[_0x45e85f(0x12e)],K=(_0x202ffd,_0x1c1f4b,_0x5540a2)=>_0x1c1f4b in _0x202ffd?V(_0x202ffd,_0x1c1f4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5540a2}):_0x202ffd[_0x1c1f4b]=_0x5540a2,Y=(_0x524c27,_0x30c368,_0x206b9,_0x268bf6)=>{const _0x59827a=_0x45e85f;for(var _0x3216f2=_0x268bf6>0x1?void 0x0:_0x268bf6?W(_0x30c368,_0x206b9):_0x30c368,_0x420e5b=_0x524c27[_0x59827a(0x13a)]-0x1,_0x5bfb0d;_0x420e5b>=0x0;_0x420e5b--)(_0x5bfb0d=_0x524c27[_0x420e5b])&&(_0x3216f2=_0x5bfb0d(_0x3216f2)||_0x3216f2);return _0x3216f2;},h=(_0x2d9ae1,_0x5bbb23)=>(_0x43339a,_0x57104b)=>_0x5bbb23(_0x43339a,_0x57104b,_0x2d9ae1),m=(_0x47129e,_0xc28c09,_0x3731d7)=>K(_0x47129e,typeof _0xc28c09!=_0x45e85f(0x136)?_0xc28c09+'':_0xc28c09,_0x3731d7);let a=class extends _0xede220{constructor(_0x557480=d,_0x156b1e,_0x15ba7f){const _0x436171=_0x45e85f;super(),this[_0x436171(0x141)]=_0x557480,this[_0x436171(0x144)]=_0x156b1e,this[_0x436171(0x120)]=_0x15ba7f;const {menu:_0x21610c,..._0x907bd9}=_0xc93ffa({},d,this['_config']);_0x21610c&&this[_0x436171(0x120)][_0x436171(0x11e)](_0x436171(0x14a),_0x21610c,{'merge':!0x0}),this[_0x436171(0x120)][_0x436171(0x11e)](D,_0x907bd9);}[_0x45e85f(0x135)](){const _0x356938=_0x45e85f;[[s]][_0x356938(0x130)](_0x6fe66=>this[_0x356938(0x144)][_0x356938(0x12d)](_0x6fe66));}['onReady'](){const _0xead069=_0x45e85f;this['_injector'][_0xead069(0x121)](s);}};m(a,'pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN'),m(a,_0x45e85f(0x140),v['name']),m(a,_0x45e85f(0x11f),v[_0x45e85f(0x11f)]),m(a,'type',_0x1df46f[_0x45e85f(0x11d)]),a=Y([_0x4bf1c9(_0x49a298),h(0x1,_0x3ba88b(_0x30b157)),h(0x2,_0x209a56)],a);export{l as ExportXLSXOperation,u as ImportXLSXOperation,a as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x45e85f=_0x16a2;(function(_0x195024,_0x26aae4){const _0x473e4c=_0x16a2,_0x2de2ad=_0x195024();while(!![]){try{const _0x203391=parseInt(_0x473e4c(0x138))/0x1+-parseInt(_0x473e4c(0x145))/0x2+-parseInt(_0x473e4c(0x134))/0x3+parseInt(_0x473e4c(0x118))/0x4*(-parseInt(_0x473e4c(0x122))/0x5)+parseInt(_0x473e4c(0x125))/0x6+parseInt(_0x473e4c(0x148))/0x7*(-parseInt(_0x473e4c(0x127))/0x8)+parseInt(_0x473e4c(0x137))/0x9*(parseInt(_0x473e4c(0x128))/0xa);if(_0x203391===_0x26aae4)break;else _0x2de2ad['push'](_0x2de2ad['shift']());}catch(_0x527330){_0x2de2ad['push'](_0x2de2ad['shift']());}}}(_0x48dd,0xea5a5));import{IExchangeOperateService as _0x28b166,UniverExchangeClientPlugin as _0x49a298}from'@univerjs-pro/exchange-client';import{CommandType as _0x129444,UniverInstanceType as _0x1df46f,Disposable as _0x4336c4,ICommandService as _0x33e9f7,DependentOn as _0x4bf1c9,Inject as _0x3ba88b,Injector as _0x30b157,Plugin as _0xede220,merge as _0xc93ffa,IConfigService as _0x209a56}from'@univerjs/core';import{MenuItemType as _0x113e38,getMenuHiddenObservable as _0x2a71f9,RibbonStartGroup as _0x2e5caf,IMenuManagerService as _0x421b36}from'@univerjs/ui';import{WorkbookExportPermission as _0x3c0bbb}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x514c93}from'@univerjs/sheets-ui';const u={'id':_0x45e85f(0x13b),'type':_0x129444[_0x45e85f(0x139)],'handler':async _0x39f604=>{const _0x46502f=_0x45e85f,_0x33d8da=_0x39f604[_0x46502f(0x121)](_0x28b166);return new URLSearchParams(location['search'])['get'](_0x46502f(0x124))?_0x33d8da[_0x46502f(0x143)]():_0x33d8da[_0x46502f(0x126)](),!0x0;}},l={'id':_0x45e85f(0x119),'type':_0x129444['OPERATION'],'handler':async _0xa6348d=>{const _0x237a79=_0x45e85f,_0x1fd981=_0xa6348d[_0x237a79(0x121)](_0x28b166);return new URLSearchParams(location[_0x237a79(0x132)])[_0x237a79(0x121)]('unit')?_0x1fd981[_0x237a79(0x13c)]():_0x1fd981[_0x237a79(0x149)](),!0x0;}},H=_0x45e85f(0x142),w=_0x45e85f(0x133),v={'name':H,'version':w},D=_0x45e85f(0x11c),d={},I=_0x45e85f(0x131);function F(_0x2c971d){const _0x4f210f=_0x45e85f;return{'id':I,'type':_0x113e38[_0x4f210f(0x11a)],'icon':_0x4f210f(0x12c),'tooltip':_0x4f210f(0x12b),'hidden$':_0x2a71f9(_0x2c971d,_0x1df46f[_0x4f210f(0x11d)]),'disabled$':_0x514c93(_0x2c971d,{'workbookTypes':[_0x3c0bbb]})};}function j(){const _0x4071a9=_0x45e85f;return{'id':u['id'],'type':_0x113e38[_0x4071a9(0x11b)],'title':_0x4071a9(0x13f),'icon':_0x4071a9(0x12a)};}function _0x16a2(_0x54d5d0,_0x5c75da){_0x54d5d0=_0x54d5d0-0x117;const _0x48dde9=_0x48dd();let _0x16a231=_0x48dde9[_0x54d5d0];return _0x16a231;}function G(){const _0x3ef173=_0x45e85f;return{'id':l['id'],'type':_0x113e38['BUTTON'],'title':'exchange.download','icon':_0x3ef173(0x13e)};}const A={[_0x2e5caf[_0x45e85f(0x13d)]]:{[I]:{'order':0.3,'menuItemFactory':F,[u['id']]:{'order':0x0,'menuItemFactory':j},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x48dd(){const _0x2aafdc=['importXLSXToUnitId','_injector','181190sUtuJX','_initMenus','mergeMenu','119cRFlFG','exportXLSXBySnapshot','menu','defineProperty','4288408hZOIWI','exchange-client.operation.export-xlsx','SUBITEMS','BUTTON','sheets-exchange-client.config','UNIVER_SHEET','setConfig','version','_configService','get','5NQtGCR','_commandService','unit','6682434PNNMQM','importXLSXToSnapshot','749928iVbePF','22971230HRyQxF','_menuManagerService','FolderIcon','exchange.file','DirectExportIcon','add','getOwnPropertyDescriptor','_initCommands','forEach','sheets-exchange-client.operation.exchange','search','0.16.1-insiders.20260311-074e8ca','2082093mSgBKU','onStarting','symbol','9cYAuoF','999372AyatzU','OPERATION','length','exchange-client.operation.import-xlsx','exportXLSXByUnitId','OTHERS','ExportIcon','exchange.upload','packageName','_config','@univerjs-pro/sheets-exchange-client'];_0x48dd=function(){return _0x2aafdc;};return _0x48dd();}var B=Object[_0x45e85f(0x12e)],$=(_0x36ff72,_0x503ded,_0x938e94,_0x216522)=>{for(var _0x42fc69=_0x216522>0x1?void 0x0:_0x216522?B(_0x503ded,_0x938e94):_0x503ded,_0x3b7c4f=_0x36ff72['length']-0x1,_0x4d17d9;_0x3b7c4f>=0x0;_0x3b7c4f--)(_0x4d17d9=_0x36ff72[_0x3b7c4f])&&(_0x42fc69=_0x4d17d9(_0x42fc69)||_0x42fc69);return _0x42fc69;},g=(_0x2eda0d,_0x428a43)=>(_0x29c255,_0x3a965a)=>_0x428a43(_0x29c255,_0x3a965a,_0x2eda0d);let s=class extends _0x4336c4{constructor(_0xfcdafe,_0x38b08c){const _0x56a699=_0x45e85f;super(),this['_commandService']=_0xfcdafe,this[_0x56a699(0x129)]=_0x38b08c,this[_0x56a699(0x12f)](),this[_0x56a699(0x146)]();}[_0x45e85f(0x12f)](){const _0x1cd24a=_0x45e85f;[u,l][_0x1cd24a(0x130)](_0x462e37=>{const _0x14be12=_0x1cd24a;this['disposeWithMe'](this[_0x14be12(0x123)]['registerCommand'](_0x462e37));});}['_initMenus'](){const _0x3d7a3b=_0x45e85f;this[_0x3d7a3b(0x129)][_0x3d7a3b(0x147)](A);}};s=$([g(0x0,_0x33e9f7),g(0x1,_0x421b36)],s);var V=Object[_0x45e85f(0x117)],W=Object[_0x45e85f(0x12e)],K=(_0x202ffd,_0x1c1f4b,_0x5540a2)=>_0x1c1f4b in _0x202ffd?V(_0x202ffd,_0x1c1f4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5540a2}):_0x202ffd[_0x1c1f4b]=_0x5540a2,Y=(_0x524c27,_0x30c368,_0x206b9,_0x268bf6)=>{const _0x59827a=_0x45e85f;for(var _0x3216f2=_0x268bf6>0x1?void 0x0:_0x268bf6?W(_0x30c368,_0x206b9):_0x30c368,_0x420e5b=_0x524c27[_0x59827a(0x13a)]-0x1,_0x5bfb0d;_0x420e5b>=0x0;_0x420e5b--)(_0x5bfb0d=_0x524c27[_0x420e5b])&&(_0x3216f2=_0x5bfb0d(_0x3216f2)||_0x3216f2);return _0x3216f2;},h=(_0x2d9ae1,_0x5bbb23)=>(_0x43339a,_0x57104b)=>_0x5bbb23(_0x43339a,_0x57104b,_0x2d9ae1),m=(_0x47129e,_0xc28c09,_0x3731d7)=>K(_0x47129e,typeof _0xc28c09!=_0x45e85f(0x136)?_0xc28c09+'':_0xc28c09,_0x3731d7);let a=class extends _0xede220{constructor(_0x557480=d,_0x156b1e,_0x15ba7f){const _0x436171=_0x45e85f;super(),this[_0x436171(0x141)]=_0x557480,this[_0x436171(0x144)]=_0x156b1e,this[_0x436171(0x120)]=_0x15ba7f;const {menu:_0x21610c,..._0x907bd9}=_0xc93ffa({},d,this['_config']);_0x21610c&&this[_0x436171(0x120)][_0x436171(0x11e)](_0x436171(0x14a),_0x21610c,{'merge':!0x0}),this[_0x436171(0x120)][_0x436171(0x11e)](D,_0x907bd9);}[_0x45e85f(0x135)](){const _0x356938=_0x45e85f;[[s]][_0x356938(0x130)](_0x6fe66=>this[_0x356938(0x144)][_0x356938(0x12d)](_0x6fe66));}['onReady'](){const _0xead069=_0x45e85f;this['_injector'][_0xead069(0x121)](s);}};m(a,'pluginName','SHEET_EXCHANGE_CLIENT_PLUGIN'),m(a,_0x45e85f(0x140),v['name']),m(a,_0x45e85f(0x11f),v[_0x45e85f(0x11f)]),m(a,'type',_0x1df46f[_0x45e85f(0x11d)]),a=Y([_0x4bf1c9(_0x49a298),h(0x1,_0x3ba88b(_0x30b157)),h(0x2,_0x209a56)],a);export{l as ExportXLSXOperation,u as ImportXLSXOperation,a as UniverSheetsExchangeClientPlugin};
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare class UniverSheetsExchangeClientPlugin extends Plugin {
|
|
|
5
5
|
readonly _injector: Injector;
|
|
6
6
|
private readonly _configService;
|
|
7
7
|
static pluginName: string;
|
|
8
|
+
static packageName: string;
|
|
9
|
+
static version: string;
|
|
8
10
|
static type: UniverInstanceType;
|
|
9
11
|
constructor(_config: Partial<IUniverSheetsExchangeClientConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
12
|
onStarting(): void;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1954(_0x282880,_0x305b93){_0x282880=_0x282880-0x1c3;const _0x1f7914=_0x1f79();let _0x195401=_0x1f7914[_0x282880];return _0x195401;}(function(_0x5412a6,_0x39f8b4){const _0x5f25a1=_0x1954,_0x129ec0=_0x5412a6();while(!![]){try{const _0xc3bc57=-parseInt(_0x5f25a1(0x1f1))/0x1+parseInt(_0x5f25a1(0x1e4))/0x2+-parseInt(_0x5f25a1(0x1fd))/0x3*(parseInt(_0x5f25a1(0x1e8))/0x4)+parseInt(_0x5f25a1(0x20c))/0x5+parseInt(_0x5f25a1(0x1eb))/0x6+-parseInt(_0x5f25a1(0x1df))/0x7+parseInt(_0x5f25a1(0x1de))/0x8;if(_0xc3bc57===_0x39f8b4)break;else _0x129ec0['push'](_0x129ec0['shift']());}catch(_0x54bcd9){_0x129ec0['push'](_0x129ec0['shift']());}}}(_0x1f79,0xecb96),function(_0x4dbf02,_0x3405f5){const _0x3c7427=_0x1954;typeof exports==_0x3c7427(0x1d2)&&typeof module<'u'?_0x3405f5(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x3c7427(0x1c6)&&define['amd']?define([_0x3c7427(0x1d4),'@univerjs-pro/exchange-client',_0x3c7427(0x1f9),_0x3c7427(0x208),_0x3c7427(0x1d5),_0x3c7427(0x1c5)],_0x3405f5):(_0x4dbf02=typeof globalThis<'u'?globalThis:_0x4dbf02||self,_0x3405f5(_0x4dbf02[_0x3c7427(0x1d6)]={},_0x4dbf02[_0x3c7427(0x207)],_0x4dbf02[_0x3c7427(0x20a)],_0x4dbf02[_0x3c7427(0x1c9)],_0x4dbf02[_0x3c7427(0x1fa)],_0x4dbf02[_0x3c7427(0x214)]));}(this,function(_0x1cd23f,_0x339f4e,_0x507e11,_0x20370c,_0x3819d4,_0x2edc0b){'use strict';const _0x366c2a=_0x1954;const _0x133c70={'id':_0x366c2a(0x1cd),'type':_0x507e11[_0x366c2a(0x212)][_0x366c2a(0x1db)],'handler':async _0x9607be=>{const _0x494683=_0x366c2a,_0x5dc891=_0x9607be[_0x494683(0x1ea)](_0x339f4e['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x494683(0x1ea)](_0x494683(0x1ed))?_0x5dc891[_0x494683(0x1d0)]():_0x5dc891['importXLSXToSnapshot'](),!0x0;}},_0x224251={'id':_0x366c2a(0x1d9),'type':_0x507e11[_0x366c2a(0x212)][_0x366c2a(0x1db)],'handler':async _0xa0a2cb=>{const _0x3cd8f0=_0x366c2a,_0x202a3f=_0xa0a2cb[_0x3cd8f0(0x1ea)](_0x339f4e[_0x3cd8f0(0x1fe)]);return new URLSearchParams(location[_0x3cd8f0(0x206)])['get'](_0x3cd8f0(0x1ed))?_0x202a3f[_0x3cd8f0(0x1d8)]():_0x202a3f[_0x3cd8f0(0x210)](),!0x0;}},_0x2044a9={'name':_0x366c2a(0x1c8),'version':_0x366c2a(0x1e5)},_0x4d5eee='sheets-exchange-client.config',_0x4fa8a7={},_0x5b243d=_0x366c2a(0x204);function _0x16c00c(_0xa8fca8){const _0x4e41b6=_0x366c2a;return{'id':_0x5b243d,'type':_0x20370c[_0x4e41b6(0x1e3)][_0x4e41b6(0x1fc)],'icon':'DirectExportIcon','tooltip':_0x4e41b6(0x20b),'hidden$':_0x20370c[_0x4e41b6(0x1ce)](_0xa8fca8,_0x507e11['UniverInstanceType'][_0x4e41b6(0x205)]),'disabled$':_0x2edc0b[_0x4e41b6(0x1f2)](_0xa8fca8,{'workbookTypes':[_0x3819d4[_0x4e41b6(0x1da)]]})};}function _0x1e03d2(){const _0x885f4a=_0x366c2a;return{'id':_0x133c70['id'],'type':_0x20370c[_0x885f4a(0x1e3)][_0x885f4a(0x1e1)],'title':_0x885f4a(0x1f0),'icon':_0x885f4a(0x1ee)};}function _0x141911(){const _0x451267=_0x366c2a;return{'id':_0x224251['id'],'type':_0x20370c['MenuItemType'][_0x451267(0x1e1)],'title':'exchange.download','icon':_0x451267(0x211)};}const _0x59ca18={[_0x20370c['RibbonStartGroup'][_0x366c2a(0x200)]]:{[_0x5b243d]:{'order':0.3,'menuItemFactory':_0x16c00c,[_0x133c70['id']]:{'order':0x0,'menuItemFactory':_0x1e03d2},[_0x224251['id']]:{'order':0x1,'menuItemFactory':_0x141911}}}};var _0x8d3b7b=Object[_0x366c2a(0x20e)],_0x26daf7=(_0x495061,_0x252e56,_0x4b49ce,_0x31eeba)=>{const _0x2151b2=_0x366c2a;for(var _0x3497e4=_0x31eeba>0x1?void 0x0:_0x31eeba?_0x8d3b7b(_0x252e56,_0x4b49ce):_0x252e56,_0x3cfba3=_0x495061[_0x2151b2(0x1f8)]-0x1,_0x530cda;_0x3cfba3>=0x0;_0x3cfba3--)(_0x530cda=_0x495061[_0x3cfba3])&&(_0x3497e4=_0x530cda(_0x3497e4)||_0x3497e4);return _0x3497e4;},_0x42e3d9=(_0x302a0e,_0xf36a10)=>(_0x4dd123,_0x2157e7)=>_0xf36a10(_0x4dd123,_0x2157e7,_0x302a0e);let _0x1e822e=class extends _0x507e11[_0x366c2a(0x1cf)]{constructor(_0x4774da,_0x4fcdfa){const _0x5058bc=_0x366c2a;super(),this['_commandService']=_0x4774da,this['_menuManagerService']=_0x4fcdfa,this[_0x5058bc(0x1c7)](),this[_0x5058bc(0x1ff)]();}[_0x366c2a(0x1c7)](){const _0x55d102=_0x366c2a;[_0x133c70,_0x224251][_0x55d102(0x20d)](_0x34aac=>{const _0x3dfbd9=_0x55d102;this[_0x3dfbd9(0x209)](this[_0x3dfbd9(0x1d7)]['registerCommand'](_0x34aac));});}[_0x366c2a(0x1ff)](){const _0x40e8ae=_0x366c2a;this[_0x40e8ae(0x1dc)]['mergeMenu'](_0x59ca18);}};_0x1e822e=_0x26daf7([_0x42e3d9(0x0,_0x507e11['ICommandService']),_0x42e3d9(0x1,_0x20370c[_0x366c2a(0x1dd)])],_0x1e822e);var _0x5e2121=Object[_0x366c2a(0x20f)],_0x54272c=Object[_0x366c2a(0x20e)],_0x14ca54=(_0x3dfc34,_0x82de5a,_0x21e7d4)=>_0x82de5a in _0x3dfc34?_0x5e2121(_0x3dfc34,_0x82de5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21e7d4}):_0x3dfc34[_0x82de5a]=_0x21e7d4,_0x1d3114=(_0x1d4732,_0x21c790,_0x2d38cf,_0x345d02)=>{const _0xb8000a=_0x366c2a;for(var _0x46553a=_0x345d02>0x1?void 0x0:_0x345d02?_0x54272c(_0x21c790,_0x2d38cf):_0x21c790,_0x478c2b=_0x1d4732[_0xb8000a(0x1f8)]-0x1,_0x5a1635;_0x478c2b>=0x0;_0x478c2b--)(_0x5a1635=_0x1d4732[_0x478c2b])&&(_0x46553a=_0x5a1635(_0x46553a)||_0x46553a);return _0x46553a;},_0x2bce04=(_0x2f6051,_0x93da3a)=>(_0xd1d18a,_0x2f0d3c)=>_0x93da3a(_0xd1d18a,_0x2f0d3c,_0x2f6051),_0x5a2415=(_0x2e61c9,_0x10c12c,_0x4f9942)=>_0x14ca54(_0x2e61c9,typeof _0x10c12c!=_0x366c2a(0x1ec)?_0x10c12c+'':_0x10c12c,_0x4f9942);_0x1cd23f[_0x366c2a(0x1e7)]=class extends _0x507e11[_0x366c2a(0x1e9)]{constructor(_0x3c6d40=_0x4fa8a7,_0x17ec30,_0x278593){const _0x1b446f=_0x366c2a;super(),this[_0x1b446f(0x1d3)]=_0x3c6d40,this['_injector']=_0x17ec30,this[_0x1b446f(0x1c3)]=_0x278593;const {menu:_0x329736,..._0x3312d4}=_0x507e11[_0x1b446f(0x1ca)]({},_0x4fa8a7,this[_0x1b446f(0x1d3)]);_0x329736&&this['_configService'][_0x1b446f(0x1f7)](_0x1b446f(0x1cc),_0x329736,{'merge':!0x0}),this[_0x1b446f(0x1c3)][_0x1b446f(0x1f7)](_0x4d5eee,_0x3312d4);}[_0x366c2a(0x201)](){const _0x270660=_0x366c2a;[[_0x1e822e]]['forEach'](_0x3b853c=>this[_0x270660(0x1c4)][_0x270660(0x1cb)](_0x3b853c));}[_0x366c2a(0x1f4)](){const _0x5cd991=_0x366c2a;this[_0x5cd991(0x1c4)][_0x5cd991(0x1ea)](_0x1e822e);}},_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],_0x366c2a(0x203),_0x366c2a(0x1e6)),_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],_0x366c2a(0x202),_0x2044a9['name']),_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],'version',_0x2044a9[_0x366c2a(0x1f6)]),_0x5a2415(_0x1cd23f[_0x366c2a(0x1e7)],'type',_0x507e11[_0x366c2a(0x213)][_0x366c2a(0x205)]),_0x1cd23f['UniverSheetsExchangeClientPlugin']=_0x1d3114([_0x507e11[_0x366c2a(0x1fb)](_0x339f4e[_0x366c2a(0x1f5)]),_0x2bce04(0x1,_0x507e11['Inject'](_0x507e11[_0x366c2a(0x1f3)])),_0x2bce04(0x2,_0x507e11['IConfigService'])],_0x1cd23f[_0x366c2a(0x1e7)]),_0x1cd23f[_0x366c2a(0x1ef)]=_0x224251,_0x1cd23f[_0x366c2a(0x1e0)]=_0x133c70,Object[_0x366c2a(0x20f)](_0x1cd23f,Symbol[_0x366c2a(0x1d1)],{'value':_0x366c2a(0x1e2)});}));function _0x1f79(){const _0x4b0c87=['9418647UaIFDy','ImportXLSXOperation','BUTTON','Module','MenuItemType','1657330oUpZfN','0.16.1-insiders.20260311-074e8ca','SHEET_EXCHANGE_CLIENT_PLUGIN','UniverSheetsExchangeClientPlugin','3795508yJDXQL','Plugin','get','3477252kDlHyB','symbol','unit','FolderIcon','ExportXLSXOperation','exchange.upload','1840332YWqsWM','getCurrentRangeDisable$','Injector','onReady','UniverExchangeClientPlugin','version','setConfig','length','@univerjs/core','UniverSheets','DependentOn','SUBITEMS','6Cmtwjx','IExchangeOperateService','_initMenus','OTHERS','onStarting','packageName','pluginName','sheets-exchange-client.operation.exchange','UNIVER_SHEET','search','UniverProExchangeClient','@univerjs/ui','disposeWithMe','UniverCore','exchange.file','1259685yiTXqY','forEach','getOwnPropertyDescriptor','defineProperty','exportXLSXBySnapshot','ExportIcon','CommandType','UniverInstanceType','UniverSheetsUi','_configService','_injector','@univerjs/sheets-ui','function','_initCommands','@univerjs-pro/sheets-exchange-client','UniverUi','merge','add','menu','exchange-client.operation.import-xlsx','getMenuHiddenObservable','Disposable','importXLSXToUnitId','toStringTag','object','_config','exports','@univerjs/sheets','UniverProSheetsExchangeClient','_commandService','exportXLSXByUnitId','exchange-client.operation.export-xlsx','WorkbookExportPermission','OPERATION','_menuManagerService','IMenuManagerService','35144680sDhRNV'];_0x1f79=function(){return _0x4b0c87;};return _0x1f79();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1-insiders.20260311-074e8ca",
|
|
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.16.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets
|
|
49
|
-
"@univerjs/sheets": "0.16.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.16.1-insiders.20260311-074e8ca",
|
|
46
|
+
"@univerjs/core": "0.16.1-insiders.20260311-074e8ca",
|
|
47
|
+
"@univerjs/ui": "0.16.1-insiders.20260311-074e8ca",
|
|
48
|
+
"@univerjs/sheets": "0.16.1-insiders.20260311-074e8ca",
|
|
49
|
+
"@univerjs/sheets-ui": "0.16.1-insiders.20260311-074e8ca"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vite": "^7.3.1",
|
|
54
54
|
"vitest": "^4.0.18",
|
|
55
|
-
"@univerjs-infra/shared": "0.16.
|
|
55
|
+
"@univerjs-infra/shared": "0.16.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"test": "vitest run",
|