@univerjs-pro/sheets-exchange-client 0.10.7-nightly.202509130618 → 0.10.7-nightly.202509130703
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';const _0x2c5b75=_0x40ab;(function(_0x1ccb4a,_0x5dd2e9){const _0xffc250=_0x40ab,_0x3d70e9=_0x1ccb4a();while(!![]){try{const _0x15a83c=-parseInt(_0xffc250(0x1a7))/0x1+-parseInt(_0xffc250(0x1ad))/0x2*(-parseInt(_0xffc250(0x1a3))/0x3)+parseInt(_0xffc250(0x19d))/0x4*(parseInt(_0xffc250(0x1a2))/0x5)+-parseInt(_0xffc250(0x1d0))/0x6+parseInt(_0xffc250(0x1b3))/0x7*(parseInt(_0xffc250(0x1b0))/0x8)+parseInt(_0xffc250(0x1ce))/0x9*(-parseInt(_0xffc250(0x1a4))/0xa)+parseInt(_0xffc250(0x1ca))/0xb;if(_0x15a83c===_0x5dd2e9)break;else _0x3d70e9['push'](_0x3d70e9['shift']());}catch(_0x344ea4){_0x3d70e9['push'](_0x3d70e9['shift']());}}}(_0x1eaf,0x1d5ad));function _0x40ab(_0x4f0e40,_0xeff8bc){const _0x1eaf25=_0x1eaf();return _0x40ab=function(_0x40ab85,_0x257c23){_0x40ab85=_0x40ab85-0x19d;let _0x571d70=_0x1eaf25[_0x40ab85];return _0x571d70;},_0x40ab(_0x4f0e40,_0xeff8bc);}Object[_0x2c5b75(0x1a5)](exports,Symbol['toStringTag'],{'value':_0x2c5b75(0x1b7)});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':_0x2c5b75(0x1b2),'type':i[_0x2c5b75(0x1a9)]['OPERATION'],'handler':async _0x311e01=>{const _0x5b19d3=_0x2c5b75,_0x43e985=_0x311e01[_0x5b19d3(0x1bf)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x5b19d3(0x1c8)])['get'](_0x5b19d3(0x1bd))?_0x43e985['importXLSXToUnitId']():_0x43e985['importXLSXToSnapshot'](),!0x0;}},p={'id':'exchange-client.operation.export-xlsx','type':i[_0x2c5b75(0x1a9)][_0x2c5b75(0x1ae)],'handler':async _0x327db1=>{const _0x1fee52=_0x2c5b75,_0x308549=_0x327db1[_0x1fee52(0x1bf)](g['IExchangeOperateService']);return new URLSearchParams(location[_0x1fee52(0x1c8)])[_0x1fee52(0x1bf)](_0x1fee52(0x1bd))?_0x308549['exportXLSXByUnitId']():_0x308549[_0x1fee52(0x1a6)](),!0x0;}},v=_0x2c5b75(0x1cb),h={},S=_0x2c5b75(0x1b8);function _0x1eaf(){const _0x1b9fc5=['220608xGjEJG','UniverSheetsExchangeClientPlugin','CommandType','_configService','getMenuHiddenObservable','UNIVER_SHEET','198BsdSJK','OPERATION','ExportIcon','6176ltVjIA','symbol','exchange-client.operation.import-xlsx','231NrfLes','_initMenus','setConfig','_menuManagerService','Module','sheets-exchange-client.operation.exchange','Inject','ICommandService','ExportXLSXOperation','_injector','unit','BUTTON','get','IMenuManagerService','RibbonStartGroup','DirectExportIcon','ImportXLSXOperation','_config','UniverInstanceType','_initCommands','FolderIcon','search','length','1880769wruUUt','sheets-exchange-client.config','getOwnPropertyDescriptor','exchange.file','317601VChGLs','disposeWithMe','1227990eWKPIw','SHEET_EXCHANGE_CLIENT_PLUGIN','mergeMenu','Disposable','WorkbookExportPermission','forEach','onReady','exchange.upload','type','MenuItemType','merge','4Mqejnm','_commandService','registerCommand','menu','onStarting','982705MdGpQd','5691IhzewK','10VmXLGy','defineProperty','exportXLSXBySnapshot'];_0x1eaf=function(){return _0x1b9fc5;};return _0x1eaf();}function x(_0x58bbe0){const _0x33c645=_0x2c5b75;return{'id':S,'type':c[_0x33c645(0x1d9)]['SUBITEMS'],'icon':_0x33c645(0x1c2),'tooltip':_0x33c645(0x1cd),'hidden$':c[_0x33c645(0x1ab)](_0x58bbe0,i['UniverInstanceType'][_0x33c645(0x1ac)]),'disabled$':I['getCurrentRangeDisable$'](_0x58bbe0,{'workbookTypes':[_[_0x33c645(0x1d4)]]})};}function P(){const _0x44abed=_0x2c5b75;return{'id':l['id'],'type':c[_0x44abed(0x1d9)][_0x44abed(0x1be)],'title':_0x44abed(0x1d7),'icon':_0x44abed(0x1c7)};}function C(){const _0x2b64d9=_0x2c5b75;return{'id':p['id'],'type':c[_0x2b64d9(0x1d9)][_0x2b64d9(0x1be)],'title':'exchange.download','icon':_0x2b64d9(0x1af)};}const f={[c[_0x2c5b75(0x1c1)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};var T=Object[_0x2c5b75(0x1cc)],y=(_0x175fdc,_0x1c69b2,_0x249d49,_0x1254a4)=>{const _0x1cbcc3=_0x2c5b75;for(var _0x1e420e=_0x1254a4>0x1?void 0x0:_0x1254a4?T(_0x1c69b2,_0x249d49):_0x1c69b2,_0x33232e=_0x175fdc[_0x1cbcc3(0x1c9)]-0x1,_0x4457c6;_0x33232e>=0x0;_0x33232e--)(_0x4457c6=_0x175fdc[_0x33232e])&&(_0x1e420e=_0x4457c6(_0x1e420e)||_0x1e420e);return _0x1e420e;},m=(_0x5038fc,_0x5d6a2c)=>(_0x21ddf4,_0x12db0b)=>_0x5d6a2c(_0x21ddf4,_0x12db0b,_0x5038fc);let u=class extends i[_0x2c5b75(0x1d3)]{constructor(_0x4c4bf0,_0x20e7d7){const _0x430988=_0x2c5b75;super(),this[_0x430988(0x19e)]=_0x4c4bf0,this[_0x430988(0x1b6)]=_0x20e7d7,this[_0x430988(0x1c6)](),this['_initMenus']();}[_0x2c5b75(0x1c6)](){[l,p]['forEach'](_0x33bb84=>{const _0x3e3b56=_0x40ab;this[_0x3e3b56(0x1cf)](this[_0x3e3b56(0x19e)][_0x3e3b56(0x19f)](_0x33bb84));});}[_0x2c5b75(0x1b4)](){const _0x3b696e=_0x2c5b75;this[_0x3b696e(0x1b6)][_0x3b696e(0x1d2)](f);}};u=y([m(0x0,i[_0x2c5b75(0x1ba)]),m(0x1,c[_0x2c5b75(0x1c0)])],u);var O=Object['defineProperty'],U=Object[_0x2c5b75(0x1cc)],X=(_0xd2d19e,_0x500ab0,_0x102173)=>_0x500ab0 in _0xd2d19e?O(_0xd2d19e,_0x500ab0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102173}):_0xd2d19e[_0x500ab0]=_0x102173,N=(_0x50a4bb,_0x58b98d,_0x59ffd8,_0x144bea)=>{const _0x167936=_0x2c5b75;for(var _0x1dd6ce=_0x144bea>0x1?void 0x0:_0x144bea?U(_0x58b98d,_0x59ffd8):_0x58b98d,_0x3978fb=_0x50a4bb[_0x167936(0x1c9)]-0x1,_0x224a0e;_0x3978fb>=0x0;_0x3978fb--)(_0x224a0e=_0x50a4bb[_0x3978fb])&&(_0x1dd6ce=_0x224a0e(_0x1dd6ce)||_0x1dd6ce);return _0x1dd6ce;},d=(_0x524e34,_0x4fcad6)=>(_0x52947b,_0x49bb63)=>_0x4fcad6(_0x52947b,_0x49bb63,_0x524e34),E=(_0x59b41a,_0x45e9a2,_0x247b7a)=>X(_0x59b41a,typeof _0x45e9a2!=_0x2c5b75(0x1b1)?_0x45e9a2+'':_0x45e9a2,_0x247b7a);const L=_0x2c5b75(0x1d1);exports['UniverSheetsExchangeClientPlugin']=class extends i['Plugin']{constructor(_0xe148d9=h,_0x56117e,_0x2c822){const _0x51909a=_0x2c5b75;super(),this[_0x51909a(0x1c4)]=_0xe148d9,this['_injector']=_0x56117e,this[_0x51909a(0x1aa)]=_0x2c822;const {menu:_0x323a56,..._0x819e04}=i[_0x51909a(0x1da)]({},h,this[_0x51909a(0x1c4)]);_0x323a56&&this[_0x51909a(0x1aa)][_0x51909a(0x1b5)](_0x51909a(0x1a0),_0x323a56,{'merge':!0x0}),this['_configService'][_0x51909a(0x1b5)](v,_0x819e04);}[_0x2c5b75(0x1a1)](){const _0x203794=_0x2c5b75;[[u]][_0x203794(0x1d5)](_0x4a33e8=>this[_0x203794(0x1bc)]['add'](_0x4a33e8));}[_0x2c5b75(0x1d6)](){const _0x15cb9f=_0x2c5b75;this[_0x15cb9f(0x1bc)][_0x15cb9f(0x1bf)](u);}},E(exports['UniverSheetsExchangeClientPlugin'],'pluginName',L),E(exports[_0x2c5b75(0x1a8)],_0x2c5b75(0x1d8),i[_0x2c5b75(0x1c5)][_0x2c5b75(0x1ac)]),exports[_0x2c5b75(0x1a8)]=N([i['DependentOn'](g['UniverExchangeClientPlugin']),d(0x1,i[_0x2c5b75(0x1b9)](i['Injector'])),d(0x2,i['IConfigService'])],exports[_0x2c5b75(0x1a8)]),exports[_0x2c5b75(0x1bb)]=p,exports[_0x2c5b75(0x1c3)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xa818f9=_0x2035;(function(_0x13ce23,_0x3a41f3){const _0x5a1bfa=_0x2035,_0x4f2feb=_0x13ce23();while(!![]){try{const _0x3a2125=parseInt(_0x5a1bfa(0x7d))/0x1*(parseInt(_0x5a1bfa(0x84))/0x2)+-parseInt(_0x5a1bfa(0x97))/0x3*(parseInt(_0x5a1bfa(0xa0))/0x4)+-parseInt(_0x5a1bfa(0x92))/0x5*(parseInt(_0x5a1bfa(0x85))/0x6)+parseInt(_0x5a1bfa(0x89))/0x7*(-parseInt(_0x5a1bfa(0x8f))/0x8)+-parseInt(_0x5a1bfa(0x79))/0x9*(parseInt(_0x5a1bfa(0x9d))/0xa)+parseInt(_0x5a1bfa(0x8e))/0xb*(-parseInt(_0x5a1bfa(0x8a))/0xc)+-parseInt(_0x5a1bfa(0x77))/0xd*(-parseInt(_0x5a1bfa(0x94))/0xe);if(_0x3a2125===_0x3a41f3)break;else _0x4f2feb['push'](_0x4f2feb['shift']());}catch(_0x5ebf06){_0x4f2feb['push'](_0x4f2feb['shift']());}}}(_0x2d87,0xa5937));import{IExchangeOperateService as _0x574ee8,UniverExchangeClientPlugin as _0x116b2b}from'@univerjs-pro/exchange-client';import{CommandType as _0x318ff8,UniverInstanceType as _0x53c5bb,Disposable as _0x291e9a,ICommandService as _0x38edd4,DependentOn as _0x19b2cc,Inject as _0x459d50,Injector as _0x26d430,IConfigService as _0x188f1c,Plugin as _0x62f7ed,merge as _0x5938cf}from'@univerjs/core';import{MenuItemType as _0x527087,getMenuHiddenObservable as _0xc0ff05,RibbonStartGroup as _0x360237,IMenuManagerService as _0x5e0622}from'@univerjs/ui';import{WorkbookExportPermission as _0x202ed9}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x6fc588}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x318ff8[_0xa818f9(0x87)],'handler':async _0x485393=>{const _0x5765b4=_0xa818f9,_0x803453=_0x485393[_0x5765b4(0xa3)](_0x574ee8);return new URLSearchParams(location['search'])[_0x5765b4(0xa3)]('unit')?_0x803453[_0x5765b4(0x7f)]():_0x803453[_0x5765b4(0xa4)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x318ff8['OPERATION'],'handler':async _0x15f21f=>{const _0x219687=_0xa818f9,_0x4aa691=_0x15f21f[_0x219687(0xa3)](_0x574ee8);return new URLSearchParams(location[_0x219687(0x7e)])[_0x219687(0xa3)](_0x219687(0x93))?_0x4aa691['exportXLSXByUnitId']():_0x4aa691[_0x219687(0x81)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0xa818f9(0x9b);function R(_0xe30942){const _0x5d8286=_0xa818f9;return{'id':S,'type':_0x527087[_0x5d8286(0xa5)],'icon':_0x5d8286(0x7c),'tooltip':_0x5d8286(0x88),'hidden$':_0xc0ff05(_0xe30942,_0x53c5bb[_0x5d8286(0xa1)]),'disabled$':_0x6fc588(_0xe30942,{'workbookTypes':[_0x202ed9]})};}function w(){const _0x1f26bd=_0xa818f9;return{'id':p['id'],'type':_0x527087['BUTTON'],'title':_0x1f26bd(0x75),'icon':_0x1f26bd(0x99)};}function D(){const _0x221d81=_0xa818f9;return{'id':u['id'],'type':_0x527087[_0x221d81(0x98)],'title':_0x221d81(0x91),'icon':_0x221d81(0x78)};}function _0x2035(_0x19eba6,_0x2a4704){const _0x2d87f9=_0x2d87();return _0x2035=function(_0x20357a,_0x173aeb){_0x20357a=_0x20357a-0x73;let _0xeeb1df=_0x2d87f9[_0x20357a];return _0xeeb1df;},_0x2035(_0x19eba6,_0x2a4704);}const F={[_0x360237[_0xa818f9(0x9f)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x2d87(){const _0x24437e=['sheets-exchange-client.operation.exchange','_configService','30680ZMiatS','mergeMenu','OTHERS','84SXLqlC','UNIVER_SHEET','defineProperty','get','importXLSXToSnapshot','SUBITEMS','symbol','type','setConfig','_config','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','91NilqgA','ExportIcon','3555aSOgeb','_injector','length','DirectExportIcon','80987PNLBYw','search','importXLSXToUnitId','_initCommands','exportXLSXBySnapshot','getOwnPropertyDescriptor','pluginName','6PApSKN','4098ntrZFK','_initMenus','OPERATION','exchange.file','5544bJDFGK','6857964MDaiIe','onStarting','_menuManagerService','registerCommand','11vVlBJF','13264EEarXW','add','exchange.download','8330VaHAaD','unit','9827006bDFQLq','forEach','menu','34842JUKMIP','BUTTON','FolderIcon','_commandService'];_0x2d87=function(){return _0x24437e;};return _0x2d87();}var G=Object[_0xa818f9(0x82)],A=(_0x5c3e97,_0x2d4f8d,_0x361cd4,_0x12305a)=>{const _0x5df9d8=_0xa818f9;for(var _0x421f4a=_0x12305a>0x1?void 0x0:_0x12305a?G(_0x2d4f8d,_0x361cd4):_0x2d4f8d,_0x182052=_0x5c3e97[_0x5df9d8(0x7b)]-0x1,_0x50b77a;_0x182052>=0x0;_0x182052--)(_0x50b77a=_0x5c3e97[_0x182052])&&(_0x421f4a=_0x50b77a(_0x421f4a)||_0x421f4a);return _0x421f4a;},d=(_0x1a0480,_0x101e55)=>(_0x3589e9,_0x1315ce)=>_0x101e55(_0x3589e9,_0x1315ce,_0x1a0480);let c=class extends _0x291e9a{constructor(_0x8ffc3d,_0x4412cf){const _0x5e29d7=_0xa818f9;super(),this[_0x5e29d7(0x9a)]=_0x8ffc3d,this[_0x5e29d7(0x8c)]=_0x4412cf,this['_initCommands'](),this[_0x5e29d7(0x86)]();}[_0xa818f9(0x80)](){const _0x1e3075=_0xa818f9;[p,u][_0x1e3075(0x95)](_0x1ab3f2=>{const _0x3f7500=_0x1e3075;this['disposeWithMe'](this['_commandService'][_0x3f7500(0x8d)](_0x1ab3f2));});}['_initMenus'](){const _0x2e1e24=_0xa818f9;this[_0x2e1e24(0x8c)][_0x2e1e24(0x9e)](F);}};c=A([d(0x0,_0x38edd4),d(0x1,_0x5e0622)],c);var j=Object[_0xa818f9(0xa2)],B=Object['getOwnPropertyDescriptor'],$=(_0x283e1c,_0x41edbb,_0x3afdfc)=>_0x41edbb in _0x283e1c?j(_0x283e1c,_0x41edbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afdfc}):_0x283e1c[_0x41edbb]=_0x3afdfc,V=(_0x2cca84,_0x2ee1ae,_0x145f0d,_0x1da8eb)=>{const _0x45f59b=_0xa818f9;for(var _0x4e18bb=_0x1da8eb>0x1?void 0x0:_0x1da8eb?B(_0x2ee1ae,_0x145f0d):_0x2ee1ae,_0x59e8f3=_0x2cca84[_0x45f59b(0x7b)]-0x1,_0xb28031;_0x59e8f3>=0x0;_0x59e8f3--)(_0xb28031=_0x2cca84[_0x59e8f3])&&(_0x4e18bb=_0xb28031(_0x4e18bb)||_0x4e18bb);return _0x4e18bb;},_=(_0xc54d67,_0x6f26a2)=>(_0x91b196,_0x1ca199)=>_0x6f26a2(_0x91b196,_0x1ca199,_0xc54d67),I=(_0x24cbe1,_0x1e6775,_0x4b034c)=>$(_0x24cbe1,typeof _0x1e6775!=_0xa818f9(0xa6)?_0x1e6775+'':_0x1e6775,_0x4b034c);const W=_0xa818f9(0x76);let s=class extends _0x62f7ed{constructor(_0x3ae1af=l,_0x487d90,_0x464f22){const _0x4938a9=_0xa818f9;super(),this[_0x4938a9(0x74)]=_0x3ae1af,this['_injector']=_0x487d90,this[_0x4938a9(0x9c)]=_0x464f22;const {menu:_0x12e36e,..._0x23c24d}=_0x5938cf({},l,this[_0x4938a9(0x74)]);_0x12e36e&&this[_0x4938a9(0x9c)][_0x4938a9(0x73)](_0x4938a9(0x96),_0x12e36e,{'merge':!0x0}),this[_0x4938a9(0x9c)][_0x4938a9(0x73)](H,_0x23c24d);}[_0xa818f9(0x8b)](){const _0x49a97f=_0xa818f9;[[c]][_0x49a97f(0x95)](_0x496ece=>this['_injector'][_0x49a97f(0x90)](_0x496ece));}['onReady'](){const _0x50f581=_0xa818f9;this[_0x50f581(0x7a)]['get'](c);}};I(s,_0xa818f9(0x83),W),I(s,_0xa818f9(0xa7),_0x53c5bb[_0xa818f9(0xa1)]),s=V([_0x19b2cc(_0x116b2b),_(0x1,_0x459d50(_0x26d430)),_(0x2,_0x188f1c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xa818f9=_0x2035;(function(_0x13ce23,_0x3a41f3){const _0x5a1bfa=_0x2035,_0x4f2feb=_0x13ce23();while(!![]){try{const _0x3a2125=parseInt(_0x5a1bfa(0x7d))/0x1*(parseInt(_0x5a1bfa(0x84))/0x2)+-parseInt(_0x5a1bfa(0x97))/0x3*(parseInt(_0x5a1bfa(0xa0))/0x4)+-parseInt(_0x5a1bfa(0x92))/0x5*(parseInt(_0x5a1bfa(0x85))/0x6)+parseInt(_0x5a1bfa(0x89))/0x7*(-parseInt(_0x5a1bfa(0x8f))/0x8)+-parseInt(_0x5a1bfa(0x79))/0x9*(parseInt(_0x5a1bfa(0x9d))/0xa)+parseInt(_0x5a1bfa(0x8e))/0xb*(-parseInt(_0x5a1bfa(0x8a))/0xc)+-parseInt(_0x5a1bfa(0x77))/0xd*(-parseInt(_0x5a1bfa(0x94))/0xe);if(_0x3a2125===_0x3a41f3)break;else _0x4f2feb['push'](_0x4f2feb['shift']());}catch(_0x5ebf06){_0x4f2feb['push'](_0x4f2feb['shift']());}}}(_0x2d87,0xa5937));import{IExchangeOperateService as _0x574ee8,UniverExchangeClientPlugin as _0x116b2b}from'@univerjs-pro/exchange-client';import{CommandType as _0x318ff8,UniverInstanceType as _0x53c5bb,Disposable as _0x291e9a,ICommandService as _0x38edd4,DependentOn as _0x19b2cc,Inject as _0x459d50,Injector as _0x26d430,IConfigService as _0x188f1c,Plugin as _0x62f7ed,merge as _0x5938cf}from'@univerjs/core';import{MenuItemType as _0x527087,getMenuHiddenObservable as _0xc0ff05,RibbonStartGroup as _0x360237,IMenuManagerService as _0x5e0622}from'@univerjs/ui';import{WorkbookExportPermission as _0x202ed9}from'@univerjs/sheets';import{getCurrentRangeDisable$ as _0x6fc588}from'@univerjs/sheets-ui';const p={'id':'exchange-client.operation.import-xlsx','type':_0x318ff8[_0xa818f9(0x87)],'handler':async _0x485393=>{const _0x5765b4=_0xa818f9,_0x803453=_0x485393[_0x5765b4(0xa3)](_0x574ee8);return new URLSearchParams(location['search'])[_0x5765b4(0xa3)]('unit')?_0x803453[_0x5765b4(0x7f)]():_0x803453[_0x5765b4(0xa4)](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x318ff8['OPERATION'],'handler':async _0x15f21f=>{const _0x219687=_0xa818f9,_0x4aa691=_0x15f21f[_0x219687(0xa3)](_0x574ee8);return new URLSearchParams(location[_0x219687(0x7e)])[_0x219687(0xa3)](_0x219687(0x93))?_0x4aa691['exportXLSXByUnitId']():_0x4aa691[_0x219687(0x81)](),!0x0;}},H='sheets-exchange-client.config',l={},S=_0xa818f9(0x9b);function R(_0xe30942){const _0x5d8286=_0xa818f9;return{'id':S,'type':_0x527087[_0x5d8286(0xa5)],'icon':_0x5d8286(0x7c),'tooltip':_0x5d8286(0x88),'hidden$':_0xc0ff05(_0xe30942,_0x53c5bb[_0x5d8286(0xa1)]),'disabled$':_0x6fc588(_0xe30942,{'workbookTypes':[_0x202ed9]})};}function w(){const _0x1f26bd=_0xa818f9;return{'id':p['id'],'type':_0x527087['BUTTON'],'title':_0x1f26bd(0x75),'icon':_0x1f26bd(0x99)};}function D(){const _0x221d81=_0xa818f9;return{'id':u['id'],'type':_0x527087[_0x221d81(0x98)],'title':_0x221d81(0x91),'icon':_0x221d81(0x78)};}function _0x2035(_0x19eba6,_0x2a4704){const _0x2d87f9=_0x2d87();return _0x2035=function(_0x20357a,_0x173aeb){_0x20357a=_0x20357a-0x73;let _0xeeb1df=_0x2d87f9[_0x20357a];return _0xeeb1df;},_0x2035(_0x19eba6,_0x2a4704);}const F={[_0x360237[_0xa818f9(0x9f)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};function _0x2d87(){const _0x24437e=['sheets-exchange-client.operation.exchange','_configService','30680ZMiatS','mergeMenu','OTHERS','84SXLqlC','UNIVER_SHEET','defineProperty','get','importXLSXToSnapshot','SUBITEMS','symbol','type','setConfig','_config','exchange.upload','SHEET_EXCHANGE_CLIENT_PLUGIN','91NilqgA','ExportIcon','3555aSOgeb','_injector','length','DirectExportIcon','80987PNLBYw','search','importXLSXToUnitId','_initCommands','exportXLSXBySnapshot','getOwnPropertyDescriptor','pluginName','6PApSKN','4098ntrZFK','_initMenus','OPERATION','exchange.file','5544bJDFGK','6857964MDaiIe','onStarting','_menuManagerService','registerCommand','11vVlBJF','13264EEarXW','add','exchange.download','8330VaHAaD','unit','9827006bDFQLq','forEach','menu','34842JUKMIP','BUTTON','FolderIcon','_commandService'];_0x2d87=function(){return _0x24437e;};return _0x2d87();}var G=Object[_0xa818f9(0x82)],A=(_0x5c3e97,_0x2d4f8d,_0x361cd4,_0x12305a)=>{const _0x5df9d8=_0xa818f9;for(var _0x421f4a=_0x12305a>0x1?void 0x0:_0x12305a?G(_0x2d4f8d,_0x361cd4):_0x2d4f8d,_0x182052=_0x5c3e97[_0x5df9d8(0x7b)]-0x1,_0x50b77a;_0x182052>=0x0;_0x182052--)(_0x50b77a=_0x5c3e97[_0x182052])&&(_0x421f4a=_0x50b77a(_0x421f4a)||_0x421f4a);return _0x421f4a;},d=(_0x1a0480,_0x101e55)=>(_0x3589e9,_0x1315ce)=>_0x101e55(_0x3589e9,_0x1315ce,_0x1a0480);let c=class extends _0x291e9a{constructor(_0x8ffc3d,_0x4412cf){const _0x5e29d7=_0xa818f9;super(),this[_0x5e29d7(0x9a)]=_0x8ffc3d,this[_0x5e29d7(0x8c)]=_0x4412cf,this['_initCommands'](),this[_0x5e29d7(0x86)]();}[_0xa818f9(0x80)](){const _0x1e3075=_0xa818f9;[p,u][_0x1e3075(0x95)](_0x1ab3f2=>{const _0x3f7500=_0x1e3075;this['disposeWithMe'](this['_commandService'][_0x3f7500(0x8d)](_0x1ab3f2));});}['_initMenus'](){const _0x2e1e24=_0xa818f9;this[_0x2e1e24(0x8c)][_0x2e1e24(0x9e)](F);}};c=A([d(0x0,_0x38edd4),d(0x1,_0x5e0622)],c);var j=Object[_0xa818f9(0xa2)],B=Object['getOwnPropertyDescriptor'],$=(_0x283e1c,_0x41edbb,_0x3afdfc)=>_0x41edbb in _0x283e1c?j(_0x283e1c,_0x41edbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afdfc}):_0x283e1c[_0x41edbb]=_0x3afdfc,V=(_0x2cca84,_0x2ee1ae,_0x145f0d,_0x1da8eb)=>{const _0x45f59b=_0xa818f9;for(var _0x4e18bb=_0x1da8eb>0x1?void 0x0:_0x1da8eb?B(_0x2ee1ae,_0x145f0d):_0x2ee1ae,_0x59e8f3=_0x2cca84[_0x45f59b(0x7b)]-0x1,_0xb28031;_0x59e8f3>=0x0;_0x59e8f3--)(_0xb28031=_0x2cca84[_0x59e8f3])&&(_0x4e18bb=_0xb28031(_0x4e18bb)||_0x4e18bb);return _0x4e18bb;},_=(_0xc54d67,_0x6f26a2)=>(_0x91b196,_0x1ca199)=>_0x6f26a2(_0x91b196,_0x1ca199,_0xc54d67),I=(_0x24cbe1,_0x1e6775,_0x4b034c)=>$(_0x24cbe1,typeof _0x1e6775!=_0xa818f9(0xa6)?_0x1e6775+'':_0x1e6775,_0x4b034c);const W=_0xa818f9(0x76);let s=class extends _0x62f7ed{constructor(_0x3ae1af=l,_0x487d90,_0x464f22){const _0x4938a9=_0xa818f9;super(),this[_0x4938a9(0x74)]=_0x3ae1af,this['_injector']=_0x487d90,this[_0x4938a9(0x9c)]=_0x464f22;const {menu:_0x12e36e,..._0x23c24d}=_0x5938cf({},l,this[_0x4938a9(0x74)]);_0x12e36e&&this[_0x4938a9(0x9c)][_0x4938a9(0x73)](_0x4938a9(0x96),_0x12e36e,{'merge':!0x0}),this[_0x4938a9(0x9c)][_0x4938a9(0x73)](H,_0x23c24d);}[_0xa818f9(0x8b)](){const _0x49a97f=_0xa818f9;[[c]][_0x49a97f(0x95)](_0x496ece=>this['_injector'][_0x49a97f(0x90)](_0x496ece));}['onReady'](){const _0x50f581=_0xa818f9;this[_0x50f581(0x7a)]['get'](c);}};I(s,_0xa818f9(0x83),W),I(s,_0xa818f9(0xa7),_0x53c5bb[_0xa818f9(0xa1)]),s=V([_0x19b2cc(_0x116b2b),_(0x1,_0x459d50(_0x26d430)),_(0x2,_0x188f1c)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3854(){const _0x365a78=['_menuManagerService','exchange.upload','exchange-client.operation.import-xlsx','_initMenus','Inject','1940ioTPoA','UniverSheetsExchangeClientPlugin','object','search','exportXLSXByUnitId','registerCommand','setConfig','UniverInstanceType','UniverSheets','DependentOn','getOwnPropertyDescriptor','OTHERS','@univerjs/sheets','63OkEmCp','DirectExportIcon','@univerjs/sheets-ui','mergeMenu','MenuItemType','4505488yXRqfg','exportXLSXBySnapshot','disposeWithMe','IConfigService','unit','ImportXLSXOperation','importXLSXToSnapshot','_configService','@univerjs/ui','toStringTag','defineProperty','Plugin','IExchangeOperateService','getMenuHiddenObservable','exchange-client.operation.export-xlsx','UniverUi','exports','FolderIcon','UNIVER_SHEET','add','onStarting','42rPExdm','_config','OPERATION','44470cNZBYs','get','_commandService','function','length','ExportIcon','symbol','sheets-exchange-client.operation.exchange','75708OpvODV','1037685mellHe','CommandType','forEach','importXLSXToUnitId','Injector','408208huNkwQ','UniverSheetsUi','_initCommands','_injector','3083376aMQFXL','exchange.file','ICommandService','UniverProExchangeClient','4679898POQpcq','Module','amd','menu','WorkbookExportPermission','BUTTON','onReady'];_0x3854=function(){return _0x365a78;};return _0x3854();}function _0x5062(_0x26363f,_0x315ef8){const _0x385412=_0x3854();return _0x5062=function(_0x506296,_0x21f130){_0x506296=_0x506296-0xbb;let _0x220e4f=_0x385412[_0x506296];return _0x220e4f;},_0x5062(_0x26363f,_0x315ef8);}(function(_0x35d726,_0xd03453){const _0x47c3a2=_0x5062,_0x1099aa=_0x35d726();while(!![]){try{const _0x4c3b5b=-parseInt(_0x47c3a2(0xc0))/0x1*(-parseInt(_0x47c3a2(0xbd))/0x2)+parseInt(_0x47c3a2(0xd2))/0x3+-parseInt(_0x47c3a2(0xf4))/0x4+parseInt(_0x47c3a2(0xc9))/0x5+parseInt(_0x47c3a2(0xd6))/0x6+-parseInt(_0x47c3a2(0xef))/0x7*(-parseInt(_0x47c3a2(0xce))/0x8)+-parseInt(_0x47c3a2(0xc8))/0x9*(parseInt(_0x47c3a2(0xe2))/0xa);if(_0x4c3b5b===_0xd03453)break;else _0x1099aa['push'](_0x1099aa['shift']());}catch(_0x115617){_0x1099aa['push'](_0x1099aa['shift']());}}}(_0x3854,0x9eb84),function(_0x2b59f5,_0x29a54e){const _0x4e8730=_0x5062;typeof exports==_0x4e8730(0xe4)&&typeof module<'u'?_0x29a54e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define==_0x4e8730(0xc3)&&define[_0x4e8730(0xd8)]?define([_0x4e8730(0x104),'@univerjs-pro/exchange-client','@univerjs/core',_0x4e8730(0xfc),_0x4e8730(0xee),_0x4e8730(0xf1)],_0x29a54e):(_0x2b59f5=typeof globalThis<'u'?globalThis:_0x2b59f5||self,_0x29a54e(_0x2b59f5['UniverProSheetsExchangeClient']={},_0x2b59f5[_0x4e8730(0xd5)],_0x2b59f5['UniverCore'],_0x2b59f5[_0x4e8730(0x103)],_0x2b59f5[_0x4e8730(0xea)],_0x2b59f5[_0x4e8730(0xcf)]));}(this,function(_0x5aae64,_0x563ba2,_0x13a1d5,_0x303aca,_0x37fdc2,_0x9641b1){'use strict';const _0x4952db=_0x5062;const _0x37831c={'id':_0x4952db(0xdf),'type':_0x13a1d5[_0x4952db(0xca)][_0x4952db(0xbf)],'handler':async _0x16cfeb=>{const _0x5f25c5=_0x4952db,_0x1b2425=_0x16cfeb[_0x5f25c5(0xc1)](_0x563ba2['IExchangeOperateService']);return new URLSearchParams(location[_0x5f25c5(0xe5)])[_0x5f25c5(0xc1)]('unit')?_0x1b2425[_0x5f25c5(0xcc)]():_0x1b2425[_0x5f25c5(0xfa)](),!0x0;}},_0x3b6fbc={'id':_0x4952db(0x102),'type':_0x13a1d5[_0x4952db(0xca)][_0x4952db(0xbf)],'handler':async _0x228a02=>{const _0x484097=_0x4952db,_0x1f6cd8=_0x228a02[_0x484097(0xc1)](_0x563ba2[_0x484097(0x100)]);return new URLSearchParams(location[_0x484097(0xe5)])[_0x484097(0xc1)](_0x484097(0xf8))?_0x1f6cd8[_0x484097(0xe6)]():_0x1f6cd8[_0x484097(0xf5)](),!0x0;}},_0x31a4af='sheets-exchange-client.config',_0x1c4149={},_0x5a846e=_0x4952db(0xc7);function _0x1a2c4e(_0x46f360){const _0x475abd=_0x4952db;return{'id':_0x5a846e,'type':_0x303aca[_0x475abd(0xf3)]['SUBITEMS'],'icon':_0x475abd(0xf0),'tooltip':_0x475abd(0xd3),'hidden$':_0x303aca[_0x475abd(0x101)](_0x46f360,_0x13a1d5['UniverInstanceType'][_0x475abd(0x106)]),'disabled$':_0x9641b1['getCurrentRangeDisable$'](_0x46f360,{'workbookTypes':[_0x37fdc2[_0x475abd(0xda)]]})};}function _0x28c0eb(){const _0x12c8d2=_0x4952db;return{'id':_0x37831c['id'],'type':_0x303aca['MenuItemType'][_0x12c8d2(0xdb)],'title':_0x12c8d2(0xde),'icon':_0x12c8d2(0x105)};}function _0x25dca9(){const _0x478ed3=_0x4952db;return{'id':_0x3b6fbc['id'],'type':_0x303aca[_0x478ed3(0xf3)][_0x478ed3(0xdb)],'title':'exchange.download','icon':_0x478ed3(0xc5)};}const _0x4f8137={[_0x303aca['RibbonStartGroup'][_0x4952db(0xed)]]:{[_0x5a846e]:{'order':0.3,'menuItemFactory':_0x1a2c4e,[_0x37831c['id']]:{'order':0x0,'menuItemFactory':_0x28c0eb},[_0x3b6fbc['id']]:{'order':0x1,'menuItemFactory':_0x25dca9}}}};var _0x33e85e=Object['getOwnPropertyDescriptor'],_0x18de7b=(_0x51fd0f,_0x35d35c,_0x491c84,_0x217bc9)=>{for(var _0x3bbc00=_0x217bc9>0x1?void 0x0:_0x217bc9?_0x33e85e(_0x35d35c,_0x491c84):_0x35d35c,_0x206cbb=_0x51fd0f['length']-0x1,_0x381506;_0x206cbb>=0x0;_0x206cbb--)(_0x381506=_0x51fd0f[_0x206cbb])&&(_0x3bbc00=_0x381506(_0x3bbc00)||_0x3bbc00);return _0x3bbc00;},_0x2b58a2=(_0x14e90e,_0x168265)=>(_0x37e042,_0x1f82b5)=>_0x168265(_0x37e042,_0x1f82b5,_0x14e90e);let _0x57fbc7=class extends _0x13a1d5['Disposable']{constructor(_0x444ad8,_0x54ee93){const _0x285059=_0x4952db;super(),this['_commandService']=_0x444ad8,this['_menuManagerService']=_0x54ee93,this[_0x285059(0xd0)](),this[_0x285059(0xe0)]();}[_0x4952db(0xd0)](){const _0x1e8040=_0x4952db;[_0x37831c,_0x3b6fbc][_0x1e8040(0xcb)](_0x20b87d=>{const _0x489170=_0x1e8040;this[_0x489170(0xf6)](this[_0x489170(0xc2)][_0x489170(0xe7)](_0x20b87d));});}[_0x4952db(0xe0)](){const _0xfb673b=_0x4952db;this[_0xfb673b(0xdd)][_0xfb673b(0xf2)](_0x4f8137);}};_0x57fbc7=_0x18de7b([_0x2b58a2(0x0,_0x13a1d5[_0x4952db(0xd4)]),_0x2b58a2(0x1,_0x303aca['IMenuManagerService'])],_0x57fbc7);var _0x487363=Object[_0x4952db(0xfe)],_0x31e745=Object[_0x4952db(0xec)],_0xb08c48=(_0x8007b0,_0x4855ca,_0x38d62b)=>_0x4855ca in _0x8007b0?_0x487363(_0x8007b0,_0x4855ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38d62b}):_0x8007b0[_0x4855ca]=_0x38d62b,_0x20899a=(_0x11591d,_0x24f95e,_0x33ad11,_0x37ea8c)=>{const _0x344c80=_0x4952db;for(var _0x147d2e=_0x37ea8c>0x1?void 0x0:_0x37ea8c?_0x31e745(_0x24f95e,_0x33ad11):_0x24f95e,_0x3c2710=_0x11591d[_0x344c80(0xc4)]-0x1,_0x119318;_0x3c2710>=0x0;_0x3c2710--)(_0x119318=_0x11591d[_0x3c2710])&&(_0x147d2e=_0x119318(_0x147d2e)||_0x147d2e);return _0x147d2e;},_0x6af3d7=(_0x146187,_0x3d9a93)=>(_0x4bbda0,_0x20f742)=>_0x3d9a93(_0x4bbda0,_0x20f742,_0x146187),_0x4f9350=(_0x28d5f4,_0x5ca6d3,_0x4ca445)=>_0xb08c48(_0x28d5f4,typeof _0x5ca6d3!=_0x4952db(0xc6)?_0x5ca6d3+'':_0x5ca6d3,_0x4ca445);const _0x236250='SHEET_EXCHANGE_CLIENT_PLUGIN';_0x5aae64[_0x4952db(0xe3)]=class extends _0x13a1d5[_0x4952db(0xff)]{constructor(_0x7a1497=_0x1c4149,_0x337ed7,_0x4780c7){const _0x3340f0=_0x4952db;super(),this[_0x3340f0(0xbe)]=_0x7a1497,this[_0x3340f0(0xd1)]=_0x337ed7,this[_0x3340f0(0xfb)]=_0x4780c7;const {menu:_0x4e7e58,..._0x40d4f1}=_0x13a1d5['merge']({},_0x1c4149,this[_0x3340f0(0xbe)]);_0x4e7e58&&this[_0x3340f0(0xfb)][_0x3340f0(0xe8)](_0x3340f0(0xd9),_0x4e7e58,{'merge':!0x0}),this[_0x3340f0(0xfb)][_0x3340f0(0xe8)](_0x31a4af,_0x40d4f1);}[_0x4952db(0xbc)](){const _0x4c41cf=_0x4952db;[[_0x57fbc7]]['forEach'](_0x56c70d=>this['_injector'][_0x4c41cf(0xbb)](_0x56c70d));}[_0x4952db(0xdc)](){const _0x74907e=_0x4952db;this['_injector'][_0x74907e(0xc1)](_0x57fbc7);}},_0x4f9350(_0x5aae64['UniverSheetsExchangeClientPlugin'],'pluginName',_0x236250),_0x4f9350(_0x5aae64[_0x4952db(0xe3)],'type',_0x13a1d5[_0x4952db(0xe9)][_0x4952db(0x106)]),_0x5aae64[_0x4952db(0xe3)]=_0x20899a([_0x13a1d5[_0x4952db(0xeb)](_0x563ba2['UniverExchangeClientPlugin']),_0x6af3d7(0x1,_0x13a1d5[_0x4952db(0xe1)](_0x13a1d5[_0x4952db(0xcd)])),_0x6af3d7(0x2,_0x13a1d5[_0x4952db(0xf7)])],_0x5aae64['UniverSheetsExchangeClientPlugin']),_0x5aae64['ExportXLSXOperation']=_0x3b6fbc,_0x5aae64[_0x4952db(0xf9)]=_0x37831c,Object[_0x4952db(0xfe)](_0x5aae64,Symbol[_0x4952db(0xfd)],{'value':_0x4952db(0xd7)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.10.7-nightly.
|
|
3
|
+
"version": "0.10.7-nightly.202509130703",
|
|
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/
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/sheets": "0.10.7-nightly.
|
|
49
|
-
"@univerjs/ui": "0.10.7-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.7-nightly.202509130703",
|
|
46
|
+
"@univerjs/sheets": "0.10.7-nightly.202509130703",
|
|
47
|
+
"@univerjs/core": "0.10.7-nightly.202509130703",
|
|
48
|
+
"@univerjs/sheets-ui": "0.10.7-nightly.202509130703",
|
|
49
|
+
"@univerjs/ui": "0.10.7-nightly.202509130703"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.2",
|