@univerjs-pro/sheets-exchange-client 0.9.1-nightly.202507041607 → 0.9.1-nightly.202507061606
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';var
|
|
1
|
+
'use strict';var _0x5f1740=_0x4b6e;(function(_0x196fc7,_0x27f292){var _0x530b23=_0x4b6e,_0x302f65=_0x196fc7();while(!![]){try{var _0x1ea14d=-parseInt(_0x530b23(0x7b))/0x1*(-parseInt(_0x530b23(0xa5))/0x2)+-parseInt(_0x530b23(0xa3))/0x3+-parseInt(_0x530b23(0x7c))/0x4+-parseInt(_0x530b23(0x95))/0x5*(parseInt(_0x530b23(0x92))/0x6)+-parseInt(_0x530b23(0x8b))/0x7+-parseInt(_0x530b23(0x79))/0x8+parseInt(_0x530b23(0x8d))/0x9;if(_0x1ea14d===_0x27f292)break;else _0x302f65['push'](_0x302f65['shift']());}catch(_0x56f198){_0x302f65['push'](_0x302f65['shift']());}}}(_0x4d58,0xf4140));Object['defineProperty'](exports,Symbol[_0x5f1740(0x72)],{'value':_0x5f1740(0x9b)});const l=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),S=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),v=_0x5f1740(0x96),h={},p={'id':_0x5f1740(0x8c),'type':i[_0x5f1740(0x86)]['OPERATION'],'handler':async _0x16f09d=>(_0x16f09d[_0x5f1740(0x99)](l[_0x5f1740(0x8e)])[_0x5f1740(0x81)](),!0x0)},g={'id':'exchange-client.operation.export-xlsx','type':i[_0x5f1740(0x86)]['OPERATION'],'handler':async _0x4b9329=>(_0x4b9329['get'](l['IExchangeOperateService'])[_0x5f1740(0x82)](),!0x0)},E=_0x5f1740(0x71);function x(_0x469994){var _0x2e3b93=_0x5f1740;return{'id':E,'type':a[_0x2e3b93(0xa0)]['SUBITEMS'],'icon':_0x2e3b93(0x90),'tooltip':_0x2e3b93(0x6a),'hidden$':a[_0x2e3b93(0x9f)](_0x469994,i[_0x2e3b93(0x85)][_0x2e3b93(0x77)]),'disabled$':I[_0x2e3b93(0x70)](_0x469994,{'workbookTypes':[S[_0x2e3b93(0x6e)]]})};}function C(){var _0x2726cf=_0x5f1740;return{'id':p['id'],'type':a[_0x2726cf(0xa0)][_0x2726cf(0x83)],'title':'exchange.upload','icon':_0x2726cf(0x74)};}function _0x4b6e(_0x4b53a0,_0x27e9f2){var _0x4d5863=_0x4d58();return _0x4b6e=function(_0x4b6eb6,_0x576a15){_0x4b6eb6=_0x4b6eb6-0x69;var _0x55f1bb=_0x4d5863[_0x4b6eb6];return _0x55f1bb;},_0x4b6e(_0x4b53a0,_0x27e9f2);}function T(){var _0x196904=_0x5f1740;return{'id':g['id'],'type':a[_0x196904(0xa0)][_0x196904(0x83)],'title':_0x196904(0x84),'icon':_0x196904(0x80)};}function _0x4d58(){var _0x4469ed=['_initCommands','2386548aumpwH','menu','131154ZAJjEq','onStarting','exchange.file','disposeWithMe','_configService','type','WorkbookExportPermission','registerCommand','getCurrentRangeDisable$','sheets-exchange-client.operation.exchange','toStringTag','setConfig','FolderIcon','_menuManagerService','symbol','UNIVER_SHEET','DependentOn','6983648tXbqUt','SHEET_EXCHANGE_CLIENT_PLUGIN','23eFVrFW','6071016InapMe','merge','pluginName','Plugin','ExportIcon','importXLSXToUnitId','exportXLSXByUnitId','BUTTON','exchange.download','UniverInstanceType','CommandType','onReady','OTHERS','_commandService','getOwnPropertyDescriptor','6212479REwAOt','exchange-client.operation.import-xlsx','42413013BjQRNk','IExchangeOperateService','defineProperty','DirectExportIcon','forEach','642Fkqtvn','length','UniverSheetsExchangeClientPlugin','53615QiGzUo','sheets-exchange-client.config','ImportXLSXOperation','_initMenus','get','UniverExchangeClientPlugin','Module','mergeMenu','Inject','_injector','getMenuHiddenObservable','MenuItemType','IMenuManagerService'];_0x4d58=function(){return _0x4469ed;};return _0x4d58();}const f={[a['RibbonStartGroup'][_0x5f1740(0x88)]]:{[E]:{'order':0.3,'menuItemFactory':x,[p['id']]:{'order':0x0,'menuItemFactory':C},[g['id']]:{'order':0x1,'menuItemFactory':T}}}};var y=Object['getOwnPropertyDescriptor'],O=(_0x3496cf,_0x5ba632,_0x2657df,_0x563b6f)=>{var _0x5b173b=_0x5f1740;for(var _0x53ed4f=_0x563b6f>0x1?void 0x0:_0x563b6f?y(_0x5ba632,_0x2657df):_0x5ba632,_0x9fce2f=_0x3496cf[_0x5b173b(0x93)]-0x1,_0x4c4e4f;_0x9fce2f>=0x0;_0x9fce2f--)(_0x4c4e4f=_0x3496cf[_0x9fce2f])&&(_0x53ed4f=_0x4c4e4f(_0x53ed4f)||_0x53ed4f);return _0x53ed4f;},d=(_0x43b904,_0x22190d)=>(_0x317291,_0x2a0251)=>_0x22190d(_0x317291,_0x2a0251,_0x43b904);let u=class extends i['Disposable']{constructor(_0x2e800c,_0x259f09){var _0x366728=_0x5f1740;super(),this[_0x366728(0x89)]=_0x2e800c,this[_0x366728(0x75)]=_0x259f09,this[_0x366728(0xa2)](),this[_0x366728(0x98)]();}[_0x5f1740(0xa2)](){[p,g]['forEach'](_0x5ed7c9=>{var _0x4f2c0f=_0x4b6e;this[_0x4f2c0f(0x6b)](this[_0x4f2c0f(0x89)][_0x4f2c0f(0x6f)](_0x5ed7c9));});}[_0x5f1740(0x98)](){var _0x257a4a=_0x5f1740;this[_0x257a4a(0x75)][_0x257a4a(0x9c)](f);}};u=O([d(0x0,i['ICommandService']),d(0x1,a[_0x5f1740(0xa1)])],u);var P=Object[_0x5f1740(0x8f)],U=Object[_0x5f1740(0x8a)],N=(_0x3c20e2,_0x14faac,_0x1ad727)=>_0x14faac in _0x3c20e2?P(_0x3c20e2,_0x14faac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad727}):_0x3c20e2[_0x14faac]=_0x1ad727,X=(_0x880735,_0x56a9f9,_0x2420df,_0x13b0ed)=>{for(var _0x3ab8c4=_0x13b0ed>0x1?void 0x0:_0x13b0ed?U(_0x56a9f9,_0x2420df):_0x56a9f9,_0x27be2b=_0x880735['length']-0x1,_0x1c548;_0x27be2b>=0x0;_0x27be2b--)(_0x1c548=_0x880735[_0x27be2b])&&(_0x3ab8c4=_0x1c548(_0x3ab8c4)||_0x3ab8c4);return _0x3ab8c4;},m=(_0x18681a,_0x22009)=>(_0x332d16,_0x56c34e)=>_0x22009(_0x332d16,_0x56c34e,_0x18681a),_=(_0x2865e2,_0x5bee1a,_0x4492c6)=>N(_0x2865e2,typeof _0x5bee1a!=_0x5f1740(0x76)?_0x5bee1a+'':_0x5bee1a,_0x4492c6);const b=_0x5f1740(0x7a);exports['UniverSheetsExchangeClientPlugin']=class extends i[_0x5f1740(0x7f)]{constructor(_0x4dfdb6=h,_0x379d7f,_0x5c3b9a){var _0x35ef1b=_0x5f1740;super(),this['_config']=_0x4dfdb6,this[_0x35ef1b(0x9e)]=_0x379d7f,this['_configService']=_0x5c3b9a;const {menu:_0xb7e135,..._0x34bab4}=i[_0x35ef1b(0x7d)]({},h,this['_config']);_0xb7e135&&this[_0x35ef1b(0x6c)][_0x35ef1b(0x73)](_0x35ef1b(0xa4),_0xb7e135,{'merge':!0x0}),this[_0x35ef1b(0x6c)][_0x35ef1b(0x73)](v,_0x34bab4);}[_0x5f1740(0x69)](){var _0x599feb=_0x5f1740;[[u]][_0x599feb(0x91)](_0x2071f8=>this[_0x599feb(0x9e)]['add'](_0x2071f8));}[_0x5f1740(0x87)](){var _0x5f4612=_0x5f1740;this[_0x5f4612(0x9e)][_0x5f4612(0x99)](u);}},_(exports['UniverSheetsExchangeClientPlugin'],_0x5f1740(0x7e),b),_(exports[_0x5f1740(0x94)],_0x5f1740(0x6d),i['UniverInstanceType'][_0x5f1740(0x77)]),exports[_0x5f1740(0x94)]=X([i[_0x5f1740(0x78)](l[_0x5f1740(0x9a)]),m(0x1,i[_0x5f1740(0x9d)](i['Injector'])),m(0x2,i['IConfigService'])],exports[_0x5f1740(0x94)]),exports['ExportXLSXOperation']=g,exports[_0x5f1740(0x97)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2d4625=_0xdafc;(function(_0x14bf27,_0x4a693d){var _0x53def1=_0xdafc,_0x834b95=_0x14bf27();while(!![]){try{var _0x45de06=-parseInt(_0x53def1(0x1f5))/0x1+parseInt(_0x53def1(0x1e7))/0x2*(parseInt(_0x53def1(0x1e2))/0x3)+-parseInt(_0x53def1(0x1fb))/0x4*(parseInt(_0x53def1(0x200))/0x5)+-parseInt(_0x53def1(0x1ee))/0x6*(parseInt(_0x53def1(0x1f6))/0x7)+parseInt(_0x53def1(0x1f4))/0x8*(parseInt(_0x53def1(0x1f7))/0x9)+parseInt(_0x53def1(0x1fd))/0xa+parseInt(_0x53def1(0x1db))/0xb*(parseInt(_0x53def1(0x1f1))/0xc);if(_0x45de06===_0x4a693d)break;else _0x834b95['push'](_0x834b95['shift']());}catch(_0x75d89c){_0x834b95['push'](_0x834b95['shift']());}}}(_0x3474,0xbb588));import{IExchangeOperateService as _0x4a3dc1,UniverExchangeClientPlugin as _0xf8b3a1}from'@univerjs-pro/exchange-client';import{CommandType as _0x55af12,UniverInstanceType as _0x2eb853,Disposable as _0x184ef8,ICommandService as _0x6bdd17,DependentOn as _0x4dda93,Inject as _0x6002e4,Injector as _0x2c80bb,IConfigService as _0x7dfce2,Plugin as _0x2be2d1,merge as _0x2c568a}from'@univerjs/core';import{MenuItemType as _0x260726,getMenuHiddenObservable as _0x25c696,RibbonStartGroup as _0x2797bd,IMenuManagerService as _0x50980e}from'@univerjs/ui';import{WorkbookExportPermission as _0x9b307d}from'@univerjs/sheets';function _0x3474(){var _0x5963ae=['7ChuHJq','283167vMiioj','add','_config','sheets-exchange-client.config','113252MrdOcb','exchange-client.operation.import-xlsx','7658070xxPQWt','forEach','mergeMenu','175TnAwPz','menu','setConfig','_injector','getOwnPropertyDescriptor','SHEET_EXCHANGE_CLIENT_PLUGIN','11ghzEmW','onStarting','disposeWithMe','sheets-exchange-client.operation.exchange','BUTTON','get','type','457287QXJraC','_commandService','importXLSXToUnitId','registerCommand','length','8lMRQBH','_initMenus','ExportIcon','SUBITEMS','UNIVER_SHEET','_menuManagerService','symbol','798462CMEPZk','pluginName','OPERATION','15503592ksFsRd','exchange.download','_initCommands','32hcnqVh','901941DrSRvr'];_0x3474=function(){return _0x5963ae;};return _0x3474();}import{getCurrentRangeDisable$ as _0x50d6e9}from'@univerjs/sheets-ui';const L=_0x2d4625(0x1fa),u={},m={'id':_0x2d4625(0x1fc),'type':_0x55af12['OPERATION'],'handler':async _0x5fa29f=>(_0x5fa29f[_0x2d4625(0x1e0)](_0x4a3dc1)[_0x2d4625(0x1e4)](),!0x0)},d={'id':'exchange-client.operation.export-xlsx','type':_0x55af12[_0x2d4625(0x1f0)],'handler':async _0x25b79d=>(_0x25b79d[_0x2d4625(0x1e0)](_0x4a3dc1)['exportXLSXByUnitId'](),!0x0)},S=_0x2d4625(0x1de);function D(_0x275b2e){var _0x34a0f3=_0x2d4625;return{'id':S,'type':_0x260726[_0x34a0f3(0x1ea)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x25c696(_0x275b2e,_0x2eb853['UNIVER_SHEET']),'disabled$':_0x50d6e9(_0x275b2e,{'workbookTypes':[_0x9b307d]})};}function F(){var _0x1e73e6=_0x2d4625;return{'id':m['id'],'type':_0x260726[_0x1e73e6(0x1df)],'title':'exchange.upload','icon':'FolderIcon'};}function G(){var _0x2ca0fe=_0x2d4625;return{'id':d['id'],'type':_0x260726[_0x2ca0fe(0x1df)],'title':_0x2ca0fe(0x1f2),'icon':_0x2ca0fe(0x1e9)};}const R={[_0x2797bd['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':D,[m['id']]:{'order':0x0,'menuItemFactory':F},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0x2d4625(0x204)],A=(_0x4be431,_0x5722c8,_0xb4ba0f,_0x6a9569)=>{var _0x2d4a85=_0x2d4625;for(var _0x4c4f72=_0x6a9569>0x1?void 0x0:_0x6a9569?w(_0x5722c8,_0xb4ba0f):_0x5722c8,_0x24bf8c=_0x4be431[_0x2d4a85(0x1e6)]-0x1,_0x30ab55;_0x24bf8c>=0x0;_0x24bf8c--)(_0x30ab55=_0x4be431[_0x24bf8c])&&(_0x4c4f72=_0x30ab55(_0x4c4f72)||_0x4c4f72);return _0x4c4f72;},_=(_0x2b941a,_0x56e8a0)=>(_0x372b22,_0x3b4cb5)=>_0x56e8a0(_0x372b22,_0x3b4cb5,_0x2b941a);let a=class extends _0x184ef8{constructor(_0x15fef5,_0x20aacb){var _0x2ff4bf=_0x2d4625;super(),this[_0x2ff4bf(0x1e3)]=_0x15fef5,this[_0x2ff4bf(0x1ec)]=_0x20aacb,this[_0x2ff4bf(0x1f3)](),this['_initMenus']();}[_0x2d4625(0x1f3)](){var _0x27f53f=_0x2d4625;[m,d][_0x27f53f(0x1fe)](_0x24f14c=>{var _0x47169e=_0x27f53f;this[_0x47169e(0x1dd)](this[_0x47169e(0x1e3)][_0x47169e(0x1e5)](_0x24f14c));});}[_0x2d4625(0x1e8)](){var _0x89c96c=_0x2d4625;this[_0x89c96c(0x1ec)][_0x89c96c(0x1ff)](R);}};function _0xdafc(_0x57dcb4,_0x540449){var _0x3474ab=_0x3474();return _0xdafc=function(_0xdafc35,_0x22f500){_0xdafc35=_0xdafc35-0x1da;var _0x3f690a=_0x3474ab[_0xdafc35];return _0x3f690a;},_0xdafc(_0x57dcb4,_0x540449);}a=A([_(0x0,_0x6bdd17),_(0x1,_0x50980e)],a);var j=Object['defineProperty'],$=Object[_0x2d4625(0x204)],B=(_0x3c0c8b,_0x1783b2,_0x294c19)=>_0x1783b2 in _0x3c0c8b?j(_0x3c0c8b,_0x1783b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294c19}):_0x3c0c8b[_0x1783b2]=_0x294c19,V=(_0x18098e,_0x50b9bd,_0x224520,_0x581ce1)=>{for(var _0x2096a6=_0x581ce1>0x1?void 0x0:_0x581ce1?$(_0x50b9bd,_0x224520):_0x50b9bd,_0x89d106=_0x18098e['length']-0x1,_0x2e623c;_0x89d106>=0x0;_0x89d106--)(_0x2e623c=_0x18098e[_0x89d106])&&(_0x2096a6=_0x2e623c(_0x2096a6)||_0x2096a6);return _0x2096a6;},g=(_0x845a11,_0x57a5ba)=>(_0x55680f,_0x148976)=>_0x57a5ba(_0x55680f,_0x148976,_0x845a11),I=(_0x40b2e7,_0x18f21b,_0x206656)=>B(_0x40b2e7,typeof _0x18f21b!=_0x2d4625(0x1ed)?_0x18f21b+'':_0x18f21b,_0x206656);const W=_0x2d4625(0x1da);let s=class extends _0x2be2d1{constructor(_0x127fbf=u,_0x5b6e03,_0x44f697){var _0x54c416=_0x2d4625;super(),this[_0x54c416(0x1f9)]=_0x127fbf,this[_0x54c416(0x203)]=_0x5b6e03,this['_configService']=_0x44f697;const {menu:_0x19327d,..._0xac9e01}=_0x2c568a({},u,this[_0x54c416(0x1f9)]);_0x19327d&&this['_configService'][_0x54c416(0x202)](_0x54c416(0x201),_0x19327d,{'merge':!0x0}),this['_configService']['setConfig'](L,_0xac9e01);}[_0x2d4625(0x1dc)](){var _0x142bcd=_0x2d4625;[[a]]['forEach'](_0x80c86f=>this['_injector'][_0x142bcd(0x1f8)](_0x80c86f));}['onReady'](){var _0x3b7526=_0x2d4625;this[_0x3b7526(0x203)]['get'](a);}};I(s,_0x2d4625(0x1ef),W),I(s,_0x2d4625(0x1e1),_0x2eb853[_0x2d4625(0x1eb)]),s=V([_0x4dda93(_0xf8b3a1),g(0x1,_0x6002e4(_0x2c80bb)),g(0x2,_0x7dfce2)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2d4625=_0xdafc;(function(_0x14bf27,_0x4a693d){var _0x53def1=_0xdafc,_0x834b95=_0x14bf27();while(!![]){try{var _0x45de06=-parseInt(_0x53def1(0x1f5))/0x1+parseInt(_0x53def1(0x1e7))/0x2*(parseInt(_0x53def1(0x1e2))/0x3)+-parseInt(_0x53def1(0x1fb))/0x4*(parseInt(_0x53def1(0x200))/0x5)+-parseInt(_0x53def1(0x1ee))/0x6*(parseInt(_0x53def1(0x1f6))/0x7)+parseInt(_0x53def1(0x1f4))/0x8*(parseInt(_0x53def1(0x1f7))/0x9)+parseInt(_0x53def1(0x1fd))/0xa+parseInt(_0x53def1(0x1db))/0xb*(parseInt(_0x53def1(0x1f1))/0xc);if(_0x45de06===_0x4a693d)break;else _0x834b95['push'](_0x834b95['shift']());}catch(_0x75d89c){_0x834b95['push'](_0x834b95['shift']());}}}(_0x3474,0xbb588));import{IExchangeOperateService as _0x4a3dc1,UniverExchangeClientPlugin as _0xf8b3a1}from'@univerjs-pro/exchange-client';import{CommandType as _0x55af12,UniverInstanceType as _0x2eb853,Disposable as _0x184ef8,ICommandService as _0x6bdd17,DependentOn as _0x4dda93,Inject as _0x6002e4,Injector as _0x2c80bb,IConfigService as _0x7dfce2,Plugin as _0x2be2d1,merge as _0x2c568a}from'@univerjs/core';import{MenuItemType as _0x260726,getMenuHiddenObservable as _0x25c696,RibbonStartGroup as _0x2797bd,IMenuManagerService as _0x50980e}from'@univerjs/ui';import{WorkbookExportPermission as _0x9b307d}from'@univerjs/sheets';function _0x3474(){var _0x5963ae=['7ChuHJq','283167vMiioj','add','_config','sheets-exchange-client.config','113252MrdOcb','exchange-client.operation.import-xlsx','7658070xxPQWt','forEach','mergeMenu','175TnAwPz','menu','setConfig','_injector','getOwnPropertyDescriptor','SHEET_EXCHANGE_CLIENT_PLUGIN','11ghzEmW','onStarting','disposeWithMe','sheets-exchange-client.operation.exchange','BUTTON','get','type','457287QXJraC','_commandService','importXLSXToUnitId','registerCommand','length','8lMRQBH','_initMenus','ExportIcon','SUBITEMS','UNIVER_SHEET','_menuManagerService','symbol','798462CMEPZk','pluginName','OPERATION','15503592ksFsRd','exchange.download','_initCommands','32hcnqVh','901941DrSRvr'];_0x3474=function(){return _0x5963ae;};return _0x3474();}import{getCurrentRangeDisable$ as _0x50d6e9}from'@univerjs/sheets-ui';const L=_0x2d4625(0x1fa),u={},m={'id':_0x2d4625(0x1fc),'type':_0x55af12['OPERATION'],'handler':async _0x5fa29f=>(_0x5fa29f[_0x2d4625(0x1e0)](_0x4a3dc1)[_0x2d4625(0x1e4)](),!0x0)},d={'id':'exchange-client.operation.export-xlsx','type':_0x55af12[_0x2d4625(0x1f0)],'handler':async _0x25b79d=>(_0x25b79d[_0x2d4625(0x1e0)](_0x4a3dc1)['exportXLSXByUnitId'](),!0x0)},S=_0x2d4625(0x1de);function D(_0x275b2e){var _0x34a0f3=_0x2d4625;return{'id':S,'type':_0x260726[_0x34a0f3(0x1ea)],'icon':'DirectExportIcon','tooltip':'exchange.file','hidden$':_0x25c696(_0x275b2e,_0x2eb853['UNIVER_SHEET']),'disabled$':_0x50d6e9(_0x275b2e,{'workbookTypes':[_0x9b307d]})};}function F(){var _0x1e73e6=_0x2d4625;return{'id':m['id'],'type':_0x260726[_0x1e73e6(0x1df)],'title':'exchange.upload','icon':'FolderIcon'};}function G(){var _0x2ca0fe=_0x2d4625;return{'id':d['id'],'type':_0x260726[_0x2ca0fe(0x1df)],'title':_0x2ca0fe(0x1f2),'icon':_0x2ca0fe(0x1e9)};}const R={[_0x2797bd['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':D,[m['id']]:{'order':0x0,'menuItemFactory':F},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var w=Object[_0x2d4625(0x204)],A=(_0x4be431,_0x5722c8,_0xb4ba0f,_0x6a9569)=>{var _0x2d4a85=_0x2d4625;for(var _0x4c4f72=_0x6a9569>0x1?void 0x0:_0x6a9569?w(_0x5722c8,_0xb4ba0f):_0x5722c8,_0x24bf8c=_0x4be431[_0x2d4a85(0x1e6)]-0x1,_0x30ab55;_0x24bf8c>=0x0;_0x24bf8c--)(_0x30ab55=_0x4be431[_0x24bf8c])&&(_0x4c4f72=_0x30ab55(_0x4c4f72)||_0x4c4f72);return _0x4c4f72;},_=(_0x2b941a,_0x56e8a0)=>(_0x372b22,_0x3b4cb5)=>_0x56e8a0(_0x372b22,_0x3b4cb5,_0x2b941a);let a=class extends _0x184ef8{constructor(_0x15fef5,_0x20aacb){var _0x2ff4bf=_0x2d4625;super(),this[_0x2ff4bf(0x1e3)]=_0x15fef5,this[_0x2ff4bf(0x1ec)]=_0x20aacb,this[_0x2ff4bf(0x1f3)](),this['_initMenus']();}[_0x2d4625(0x1f3)](){var _0x27f53f=_0x2d4625;[m,d][_0x27f53f(0x1fe)](_0x24f14c=>{var _0x47169e=_0x27f53f;this[_0x47169e(0x1dd)](this[_0x47169e(0x1e3)][_0x47169e(0x1e5)](_0x24f14c));});}[_0x2d4625(0x1e8)](){var _0x89c96c=_0x2d4625;this[_0x89c96c(0x1ec)][_0x89c96c(0x1ff)](R);}};function _0xdafc(_0x57dcb4,_0x540449){var _0x3474ab=_0x3474();return _0xdafc=function(_0xdafc35,_0x22f500){_0xdafc35=_0xdafc35-0x1da;var _0x3f690a=_0x3474ab[_0xdafc35];return _0x3f690a;},_0xdafc(_0x57dcb4,_0x540449);}a=A([_(0x0,_0x6bdd17),_(0x1,_0x50980e)],a);var j=Object['defineProperty'],$=Object[_0x2d4625(0x204)],B=(_0x3c0c8b,_0x1783b2,_0x294c19)=>_0x1783b2 in _0x3c0c8b?j(_0x3c0c8b,_0x1783b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294c19}):_0x3c0c8b[_0x1783b2]=_0x294c19,V=(_0x18098e,_0x50b9bd,_0x224520,_0x581ce1)=>{for(var _0x2096a6=_0x581ce1>0x1?void 0x0:_0x581ce1?$(_0x50b9bd,_0x224520):_0x50b9bd,_0x89d106=_0x18098e['length']-0x1,_0x2e623c;_0x89d106>=0x0;_0x89d106--)(_0x2e623c=_0x18098e[_0x89d106])&&(_0x2096a6=_0x2e623c(_0x2096a6)||_0x2096a6);return _0x2096a6;},g=(_0x845a11,_0x57a5ba)=>(_0x55680f,_0x148976)=>_0x57a5ba(_0x55680f,_0x148976,_0x845a11),I=(_0x40b2e7,_0x18f21b,_0x206656)=>B(_0x40b2e7,typeof _0x18f21b!=_0x2d4625(0x1ed)?_0x18f21b+'':_0x18f21b,_0x206656);const W=_0x2d4625(0x1da);let s=class extends _0x2be2d1{constructor(_0x127fbf=u,_0x5b6e03,_0x44f697){var _0x54c416=_0x2d4625;super(),this[_0x54c416(0x1f9)]=_0x127fbf,this[_0x54c416(0x203)]=_0x5b6e03,this['_configService']=_0x44f697;const {menu:_0x19327d,..._0xac9e01}=_0x2c568a({},u,this[_0x54c416(0x1f9)]);_0x19327d&&this['_configService'][_0x54c416(0x202)](_0x54c416(0x201),_0x19327d,{'merge':!0x0}),this['_configService']['setConfig'](L,_0xac9e01);}[_0x2d4625(0x1dc)](){var _0x142bcd=_0x2d4625;[[a]]['forEach'](_0x80c86f=>this['_injector'][_0x142bcd(0x1f8)](_0x80c86f));}['onReady'](){var _0x3b7526=_0x2d4625;this[_0x3b7526(0x203)]['get'](a);}};I(s,_0x2d4625(0x1ef),W),I(s,_0x2d4625(0x1e1),_0x2eb853[_0x2d4625(0x1eb)]),s=V([_0x4dda93(_0xf8b3a1),g(0x1,_0x6002e4(_0x2c80bb)),g(0x2,_0x7dfce2)],s);export{d as ExportXLSXOperation,m as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x130a(){var _0x4e0aaa=['exportXLSXByUnitId','_commandService','@univerjs-pro/exchange-client','ExportIcon','merge','5819934xTfKJZ','FolderIcon','UniverSheetsUi','Module','Injector','getOwnPropertyDescriptor','UniverInstanceType','OTHERS','2127969KqtPbs','SHEET_EXCHANGE_CLIENT_PLUGIN','type','MenuItemType','DirectExportIcon','UniverUi','OPERATION','428kelfvW','_menuManagerService','UniverProSheetsExchangeClient','15430UgZgRt','UniverSheetsExchangeClientPlugin','ExportXLSXOperation','_configService','BUTTON','4326025JJpcvT','exchange.upload','toStringTag','exchange.download','forEach','@univerjs/sheets','ImportXLSXOperation','get','amd','onStarting','pluginName','UniverSheets','@univerjs/core','10140PZufyD','RibbonStartGroup','menu','UNIVER_SHEET','defineProperty','length','2IbpmEE','add','515854mBIbmX','sheets-exchange-client.operation.exchange','IExchangeOperateService','@univerjs/ui','_initMenus','IMenuManagerService','importXLSXToUnitId','setConfig','onReady','_initCommands','UniverProExchangeClient','CommandType','IConfigService','_injector','8vgkDgy','mergeMenu','Inject','6926689QfHYPq','SUBITEMS','10824zyQLff','ICommandService','UniverCore','symbol','exchange.file','@univerjs/sheets-ui'];_0x130a=function(){return _0x4e0aaa;};return _0x130a();}function _0x59bd(_0x21184f,_0x5e3f31){var _0x130aa8=_0x130a();return _0x59bd=function(_0x59bda6,_0x41aba8){_0x59bda6=_0x59bda6-0x12f;var _0x51e967=_0x130aa8[_0x59bda6];return _0x51e967;},_0x59bd(_0x21184f,_0x5e3f31);}(function(_0x1aaad9,_0x3e5e3e){var _0x2d5a74=_0x59bd,_0x168746=_0x1aaad9();while(!![]){try{var _0x3fe284=-parseInt(_0x2d5a74(0x163))/0x1*(-parseInt(_0x2d5a74(0x161))/0x2)+parseInt(_0x2d5a74(0x15b))/0x3*(-parseInt(_0x2d5a74(0x146))/0x4)+-parseInt(_0x2d5a74(0x14e))/0x5+-parseInt(_0x2d5a74(0x137))/0x6+parseInt(_0x2d5a74(0x174))/0x7+parseInt(_0x2d5a74(0x171))/0x8*(-parseInt(_0x2d5a74(0x13f))/0x9)+-parseInt(_0x2d5a74(0x149))/0xa*(-parseInt(_0x2d5a74(0x176))/0xb);if(_0x3fe284===_0x3e5e3e)break;else _0x168746['push'](_0x168746['shift']());}catch(_0x464496){_0x168746['push'](_0x168746['shift']());}}}(_0x130a,0x9023e),function(_0x5e9792,_0x358a21){var _0x3dde68=_0x59bd;typeof exports=='object'&&typeof module<'u'?_0x358a21(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x3dde68(0x156)]?define(['exports',_0x3dde68(0x134),_0x3dde68(0x15a),_0x3dde68(0x166),_0x3dde68(0x153),_0x3dde68(0x131)],_0x358a21):(_0x5e9792=typeof globalThis<'u'?globalThis:_0x5e9792||self,_0x358a21(_0x5e9792[_0x3dde68(0x148)]={},_0x5e9792[_0x3dde68(0x16d)],_0x5e9792[_0x3dde68(0x178)],_0x5e9792[_0x3dde68(0x144)],_0x5e9792[_0x3dde68(0x159)],_0x5e9792[_0x3dde68(0x139)]));}(this,function(_0x38c611,_0x26c908,_0x3b2560,_0x284628,_0x28c393,_0x351873){'use strict';var _0x4f5322=_0x59bd;const _0x4a4f91='sheets-exchange-client.config',_0x4a2c80={},_0x1ead5d={'id':'exchange-client.operation.import-xlsx','type':_0x3b2560[_0x4f5322(0x16e)]['OPERATION'],'handler':async _0x3ffc54=>(_0x3ffc54[_0x4f5322(0x155)](_0x26c908[_0x4f5322(0x165)])[_0x4f5322(0x169)](),!0x0)},_0x1ba165={'id':'exchange-client.operation.export-xlsx','type':_0x3b2560[_0x4f5322(0x16e)][_0x4f5322(0x145)],'handler':async _0x1da5cb=>(_0x1da5cb[_0x4f5322(0x155)](_0x26c908[_0x4f5322(0x165)])[_0x4f5322(0x132)](),!0x0)},_0x58dad3=_0x4f5322(0x164);function _0x175da2(_0x4e0b07){var _0x5d424b=_0x4f5322;return{'id':_0x58dad3,'type':_0x284628[_0x5d424b(0x142)][_0x5d424b(0x175)],'icon':_0x5d424b(0x143),'tooltip':_0x5d424b(0x130),'hidden$':_0x284628['getMenuHiddenObservable'](_0x4e0b07,_0x3b2560[_0x5d424b(0x13d)][_0x5d424b(0x15e)]),'disabled$':_0x351873['getCurrentRangeDisable$'](_0x4e0b07,{'workbookTypes':[_0x28c393['WorkbookExportPermission']]})};}function _0x575932(){var _0x15bf4e=_0x4f5322;return{'id':_0x1ead5d['id'],'type':_0x284628[_0x15bf4e(0x142)][_0x15bf4e(0x14d)],'title':_0x15bf4e(0x14f),'icon':_0x15bf4e(0x138)};}function _0x103291(){var _0x20d517=_0x4f5322;return{'id':_0x1ba165['id'],'type':_0x284628[_0x20d517(0x142)][_0x20d517(0x14d)],'title':_0x20d517(0x151),'icon':_0x20d517(0x135)};}const _0x237233={[_0x284628[_0x4f5322(0x15c)][_0x4f5322(0x13e)]]:{[_0x58dad3]:{'order':0.3,'menuItemFactory':_0x175da2,[_0x1ead5d['id']]:{'order':0x0,'menuItemFactory':_0x575932},[_0x1ba165['id']]:{'order':0x1,'menuItemFactory':_0x103291}}}};var _0x2e328f=Object['getOwnPropertyDescriptor'],_0x5cf0f1=(_0x4024d4,_0xdc01fa,_0x4ef68d,_0x1138e3)=>{var _0x2c580d=_0x4f5322;for(var _0x595143=_0x1138e3>0x1?void 0x0:_0x1138e3?_0x2e328f(_0xdc01fa,_0x4ef68d):_0xdc01fa,_0x841082=_0x4024d4[_0x2c580d(0x160)]-0x1,_0x320523;_0x841082>=0x0;_0x841082--)(_0x320523=_0x4024d4[_0x841082])&&(_0x595143=_0x320523(_0x595143)||_0x595143);return _0x595143;},_0x21b1c5=(_0x2b7a01,_0x5a007d)=>(_0x41083d,_0x49fb37)=>_0x5a007d(_0x41083d,_0x49fb37,_0x2b7a01);let _0xb002d3=class extends _0x3b2560['Disposable']{constructor(_0xfd8d1b,_0x28253a){var _0x3a5bf7=_0x4f5322;super(),this[_0x3a5bf7(0x133)]=_0xfd8d1b,this[_0x3a5bf7(0x147)]=_0x28253a,this[_0x3a5bf7(0x16c)](),this['_initMenus']();}[_0x4f5322(0x16c)](){var _0x3c9cef=_0x4f5322;[_0x1ead5d,_0x1ba165][_0x3c9cef(0x152)](_0x562744=>{var _0x48371f=_0x3c9cef;this['disposeWithMe'](this[_0x48371f(0x133)]['registerCommand'](_0x562744));});}[_0x4f5322(0x167)](){var _0x2dc7b4=_0x4f5322;this[_0x2dc7b4(0x147)][_0x2dc7b4(0x172)](_0x237233);}};_0xb002d3=_0x5cf0f1([_0x21b1c5(0x0,_0x3b2560[_0x4f5322(0x177)]),_0x21b1c5(0x1,_0x284628[_0x4f5322(0x168)])],_0xb002d3);var _0xf85cb8=Object[_0x4f5322(0x15f)],_0x2f395a=Object[_0x4f5322(0x13c)],_0x267c95=(_0x3aa16f,_0x220987,_0x4e545e)=>_0x220987 in _0x3aa16f?_0xf85cb8(_0x3aa16f,_0x220987,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e545e}):_0x3aa16f[_0x220987]=_0x4e545e,_0x59c4bb=(_0x1c9794,_0x53756d,_0x2ea8ae,_0x5f9627)=>{for(var _0x2ca24b=_0x5f9627>0x1?void 0x0:_0x5f9627?_0x2f395a(_0x53756d,_0x2ea8ae):_0x53756d,_0x2e6593=_0x1c9794['length']-0x1,_0x4abf86;_0x2e6593>=0x0;_0x2e6593--)(_0x4abf86=_0x1c9794[_0x2e6593])&&(_0x2ca24b=_0x4abf86(_0x2ca24b)||_0x2ca24b);return _0x2ca24b;},_0x326493=(_0x5007b7,_0x4f66ab)=>(_0x32b1d3,_0x56416b)=>_0x4f66ab(_0x32b1d3,_0x56416b,_0x5007b7),_0x2f7d67=(_0x3edac2,_0x4c7289,_0x57bada)=>_0x267c95(_0x3edac2,typeof _0x4c7289!=_0x4f5322(0x12f)?_0x4c7289+'':_0x4c7289,_0x57bada);const _0x3a80b9=_0x4f5322(0x140);_0x38c611['UniverSheetsExchangeClientPlugin']=class extends _0x3b2560['Plugin']{constructor(_0x4277cc=_0x4a2c80,_0xc74e88,_0x1665c0){var _0x2f6bfa=_0x4f5322;super(),this['_config']=_0x4277cc,this['_injector']=_0xc74e88,this['_configService']=_0x1665c0;const {menu:_0x2c3564,..._0x56438c}=_0x3b2560[_0x2f6bfa(0x136)]({},_0x4a2c80,this['_config']);_0x2c3564&&this['_configService'][_0x2f6bfa(0x16a)](_0x2f6bfa(0x15d),_0x2c3564,{'merge':!0x0}),this[_0x2f6bfa(0x14c)]['setConfig'](_0x4a4f91,_0x56438c);}[_0x4f5322(0x157)](){var _0x5ecfb1=_0x4f5322;[[_0xb002d3]]['forEach'](_0x389074=>this[_0x5ecfb1(0x170)][_0x5ecfb1(0x162)](_0x389074));}[_0x4f5322(0x16b)](){var _0x494c22=_0x4f5322;this['_injector'][_0x494c22(0x155)](_0xb002d3);}},_0x2f7d67(_0x38c611[_0x4f5322(0x14a)],_0x4f5322(0x158),_0x3a80b9),_0x2f7d67(_0x38c611[_0x4f5322(0x14a)],_0x4f5322(0x141),_0x3b2560[_0x4f5322(0x13d)][_0x4f5322(0x15e)]),_0x38c611['UniverSheetsExchangeClientPlugin']=_0x59c4bb([_0x3b2560['DependentOn'](_0x26c908['UniverExchangeClientPlugin']),_0x326493(0x1,_0x3b2560[_0x4f5322(0x173)](_0x3b2560[_0x4f5322(0x13b)])),_0x326493(0x2,_0x3b2560[_0x4f5322(0x16f)])],_0x38c611[_0x4f5322(0x14a)]),_0x38c611[_0x4f5322(0x14b)]=_0x1ba165,_0x38c611[_0x4f5322(0x154)]=_0x1ead5d,Object['defineProperty'](_0x38c611,Symbol[_0x4f5322(0x150)],{'value':_0x4f5322(0x13a)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.9.1-nightly.
|
|
3
|
+
"version": "0.9.1-nightly.202507061606",
|
|
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.9.1-nightly.
|
|
46
|
-
"@univerjs/core": "0.9.1-nightly.
|
|
47
|
-
"@univerjs/sheets": "0.9.1-nightly.
|
|
48
|
-
"@univerjs/sheets-ui": "0.9.1-nightly.
|
|
49
|
-
"@univerjs/ui": "0.9.1-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.9.1-nightly.202507061606",
|
|
46
|
+
"@univerjs/core": "0.9.1-nightly.202507061606",
|
|
47
|
+
"@univerjs/sheets": "0.9.1-nightly.202507061606",
|
|
48
|
+
"@univerjs/sheets-ui": "0.9.1-nightly.202507061606",
|
|
49
|
+
"@univerjs/ui": "0.9.1-nightly.202507061606"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.8.3",
|