@univerjs-pro/sheets-exchange-client 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-8d33c6e
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 _0x3e0fe4=_0x1143;(function(_0xca9a0,_0xa19180){const _0x3aac56=_0x1143,_0x22041d=_0xca9a0();while(!![]){try{const _0x2998b2=-parseInt(_0x3aac56(0xdc))/0x1+parseInt(_0x3aac56(0x103))/0x2+-parseInt(_0x3aac56(0xe9))/0x3+parseInt(_0x3aac56(0xd3))/0x4*(parseInt(_0x3aac56(0xed))/0x5)+-parseInt(_0x3aac56(0x102))/0x6+-parseInt(_0x3aac56(0xf9))/0x7*(-parseInt(_0x3aac56(0x113))/0x8)+parseInt(_0x3aac56(0xf5))/0x9*(parseInt(_0x3aac56(0xe8))/0xa);if(_0x2998b2===_0xa19180)break;else _0x22041d['push'](_0x22041d['shift']());}catch(_0x474e1d){_0x22041d['push'](_0x22041d['shift']());}}}(_0x4c44,0x4301e));function _0x4c44(){const _0x157ef1=['2365830PfPDtS','188930UJNgad','get','_injector','Injector','setConfig','IExchangeOperateService','exchange.download','importXLSXToUnitId','length','BUTTON','type','ImportXLSXOperation','getOwnPropertyDescriptor','_initMenus','FolderIcon','UNIVER_SHEET','40NtxVIY','RibbonStartGroup','CommandType','DirectExportIcon','8BSfOxd','importXLSXToSnapshot','_initCommands','Module','DependentOn','_menuManagerService','onStarting','ICommandService','OPERATION','257123ZriGij','exchange.file','getMenuHiddenObservable','mergeMenu','menu','UniverSheetsExchangeClientPlugin','add','exportXLSXBySnapshot','ExportXLSXOperation','merge','search','IMenuManagerService','53860fhcWMU','533025UFEdkd','WorkbookExportPermission','forEach','exchange.upload','1341520rtCoXb','Inject','exchange-client.operation.export-xlsx','unit','exportXLSXByUnitId','sheets-exchange-client.config','defineProperty','Disposable','738nDZJTm','disposeWithMe','MenuItemType','Plugin','43176UIEQzX','_commandService','getCurrentRangeDisable$','UniverInstanceType','sheets-exchange-client.operation.exchange','_configService','toStringTag','symbol','ExportIcon'];_0x4c44=function(){return _0x157ef1;};return _0x4c44();}Object['defineProperty'](exports,Symbol[_0x3e0fe4(0xff)],{'value':_0x3e0fe4(0xd6)});const g=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),c=require('@univerjs/ui'),_=require('@univerjs/sheets'),I=require('@univerjs/sheets-ui'),l={'id':'exchange-client.operation.import-xlsx','type':i[_0x3e0fe4(0x115)]['OPERATION'],'handler':async _0x574631=>{const _0x5793c8=_0x3e0fe4,_0x5be0bd=_0x574631[_0x5793c8(0x104)](g[_0x5793c8(0x108)]);return new URLSearchParams(location[_0x5793c8(0xe6)])[_0x5793c8(0x104)](_0x5793c8(0xf0))?_0x5be0bd[_0x5793c8(0x10a)]():_0x5be0bd[_0x5793c8(0xd4)](),!0x0;}},p={'id':_0x3e0fe4(0xef),'type':i[_0x3e0fe4(0x115)][_0x3e0fe4(0xdb)],'handler':async _0xb217f6=>{const _0x3271d8=_0x3e0fe4,_0x1170b7=_0xb217f6[_0x3271d8(0x104)](g[_0x3271d8(0x108)]);return new URLSearchParams(location[_0x3271d8(0xe6)])['get'](_0x3271d8(0xf0))?_0x1170b7[_0x3271d8(0xf1)]():_0x1170b7[_0x3271d8(0xe3)](),!0x0;}},v=_0x3e0fe4(0xf2),h={},S=_0x3e0fe4(0xfd);function x(_0x5388c1){const _0x454feb=_0x3e0fe4;return{'id':S,'type':c['MenuItemType']['SUBITEMS'],'icon':_0x454feb(0x116),'tooltip':_0x454feb(0xdd),'hidden$':c[_0x454feb(0xde)](_0x5388c1,i['UniverInstanceType'][_0x454feb(0x112)]),'disabled$':I[_0x454feb(0xfb)](_0x5388c1,{'workbookTypes':[_[_0x454feb(0xea)]]})};}function P(){const _0x58cce3=_0x3e0fe4;return{'id':l['id'],'type':c[_0x58cce3(0xf7)]['BUTTON'],'title':_0x58cce3(0xec),'icon':_0x58cce3(0x111)};}function C(){const _0x545cc9=_0x3e0fe4;return{'id':p['id'],'type':c[_0x545cc9(0xf7)][_0x545cc9(0x10c)],'title':_0x545cc9(0x109),'icon':_0x545cc9(0x101)};}const f={[c[_0x3e0fe4(0x114)]['OTHERS']]:{[S]:{'order':0.3,'menuItemFactory':x,[l['id']]:{'order':0x0,'menuItemFactory':P},[p['id']]:{'order':0x1,'menuItemFactory':C}}}};function _0x1143(_0x243297,_0x4e29ad){_0x243297=_0x243297-0xd3;const _0x4c4441=_0x4c44();let _0x114392=_0x4c4441[_0x243297];return _0x114392;}var T=Object['getOwnPropertyDescriptor'],y=(_0x1474e4,_0x40e281,_0x3d3697,_0x416e80)=>{const _0x2a74d8=_0x3e0fe4;for(var _0xa70e0=_0x416e80>0x1?void 0x0:_0x416e80?T(_0x40e281,_0x3d3697):_0x40e281,_0xfc8966=_0x1474e4[_0x2a74d8(0x10b)]-0x1,_0x208ed7;_0xfc8966>=0x0;_0xfc8966--)(_0x208ed7=_0x1474e4[_0xfc8966])&&(_0xa70e0=_0x208ed7(_0xa70e0)||_0xa70e0);return _0xa70e0;},m=(_0x39208f,_0x572ed6)=>(_0x45a396,_0x294f62)=>_0x572ed6(_0x45a396,_0x294f62,_0x39208f);let u=class extends i[_0x3e0fe4(0xf4)]{constructor(_0x266ee0,_0x5bda81){const _0x4f0b46=_0x3e0fe4;super(),this[_0x4f0b46(0xfa)]=_0x266ee0,this[_0x4f0b46(0xd8)]=_0x5bda81,this['_initCommands'](),this[_0x4f0b46(0x110)]();}[_0x3e0fe4(0xd5)](){const _0x5c3ab4=_0x3e0fe4;[l,p][_0x5c3ab4(0xeb)](_0x2844ab=>{const _0x5b6236=_0x5c3ab4;this[_0x5b6236(0xf6)](this[_0x5b6236(0xfa)]['registerCommand'](_0x2844ab));});}['_initMenus'](){const _0x17444c=_0x3e0fe4;this[_0x17444c(0xd8)][_0x17444c(0xdf)](f);}};u=y([m(0x0,i[_0x3e0fe4(0xda)]),m(0x1,c[_0x3e0fe4(0xe7)])],u);var O=Object[_0x3e0fe4(0xf3)],U=Object[_0x3e0fe4(0x10f)],X=(_0x2df998,_0x4cb950,_0x57d3f9)=>_0x4cb950 in _0x2df998?O(_0x2df998,_0x4cb950,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d3f9}):_0x2df998[_0x4cb950]=_0x57d3f9,N=(_0x1bb533,_0xed3570,_0x3408af,_0x1c0a8f)=>{for(var _0x31c839=_0x1c0a8f>0x1?void 0x0:_0x1c0a8f?U(_0xed3570,_0x3408af):_0xed3570,_0x2997bc=_0x1bb533['length']-0x1,_0x2d7fe3;_0x2997bc>=0x0;_0x2997bc--)(_0x2d7fe3=_0x1bb533[_0x2997bc])&&(_0x31c839=_0x2d7fe3(_0x31c839)||_0x31c839);return _0x31c839;},d=(_0x55f9a9,_0x1f3c66)=>(_0x2061d9,_0x2f0a6c)=>_0x1f3c66(_0x2061d9,_0x2f0a6c,_0x55f9a9),E=(_0x7e6b75,_0x22d7cc,_0x4cc16c)=>X(_0x7e6b75,typeof _0x22d7cc!=_0x3e0fe4(0x100)?_0x22d7cc+'':_0x22d7cc,_0x4cc16c);const L='SHEET_EXCHANGE_CLIENT_PLUGIN';exports[_0x3e0fe4(0xe1)]=class extends i[_0x3e0fe4(0xf8)]{constructor(_0x2794f8=h,_0x12f21f,_0x39f498){const _0x29f4de=_0x3e0fe4;super(),this['_config']=_0x2794f8,this[_0x29f4de(0x105)]=_0x12f21f,this[_0x29f4de(0xfe)]=_0x39f498;const {menu:_0x20e87b,..._0x3dcd9e}=i[_0x29f4de(0xe5)]({},h,this['_config']);_0x20e87b&&this['_configService'][_0x29f4de(0x107)](_0x29f4de(0xe0),_0x20e87b,{'merge':!0x0}),this[_0x29f4de(0xfe)][_0x29f4de(0x107)](v,_0x3dcd9e);}[_0x3e0fe4(0xd9)](){const _0x5754f4=_0x3e0fe4;[[u]]['forEach'](_0xcac5c=>this['_injector'][_0x5754f4(0xe2)](_0xcac5c));}['onReady'](){const _0x4b109a=_0x3e0fe4;this[_0x4b109a(0x105)][_0x4b109a(0x104)](u);}},E(exports[_0x3e0fe4(0xe1)],'pluginName',L),E(exports['UniverSheetsExchangeClientPlugin'],_0x3e0fe4(0x10d),i[_0x3e0fe4(0xfc)]['UNIVER_SHEET']),exports[_0x3e0fe4(0xe1)]=N([i[_0x3e0fe4(0xd7)](g['UniverExchangeClientPlugin']),d(0x1,i[_0x3e0fe4(0xee)](i[_0x3e0fe4(0x106)])),d(0x2,i['IConfigService'])],exports[_0x3e0fe4(0xe1)]),exports[_0x3e0fe4(0xe4)]=p,exports[_0x3e0fe4(0x10e)]=l;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2fc5da=_0x25ec;(function(_0x15ab17,_0x28c3f3){const _0x1e1776=_0x25ec,_0x1878e2=_0x15ab17();while(!![]){try{const _0x4a2bef=-parseInt(_0x1e1776(0x11b))/0x1*(-parseInt(_0x1e1776(0x123))/0x2)+parseInt(_0x1e1776(0x129))/0x3+-parseInt(_0x1e1776(0x12d))/0x4*(parseInt(_0x1e1776(0x13c))/0x5)+-parseInt(_0x1e1776(0x13e))/0x6*(-parseInt(_0x1e1776(0x11c))/0x7)+parseInt(_0x1e1776(0x137))/0x8*(parseInt(_0x1e1776(0x130))/0x9)+-parseInt(_0x1e1776(0x133))/0xa*(-parseInt(_0x1e1776(0x11f))/0xb)+-parseInt(_0x1e1776(0x116))/0xc*(parseInt(_0x1e1776(0x12a))/0xd);if(_0x4a2bef===_0x28c3f3)break;else _0x1878e2['push'](_0x1878e2['shift']());}catch(_0x2eb027){_0x1878e2['push'](_0x1878e2['shift']());}}}(_0x6e46,0x696f5));import{IExchangeOperateService as _0x1c5f7f,UniverExchangeClientPlugin as _0x3e666b}from'@univerjs-pro/exchange-client';import{CommandType as _0x83e548,UniverInstanceType as _0x4559c5,Disposable as _0x28da18,ICommandService as _0x577c40,DependentOn as _0x4efda7,Inject as _0x26a766,Injector as _0x1e0703,IConfigService as _0x401237,Plugin as _0x9e1126,merge as _0x57a561}from'@univerjs/core';import{MenuItemType as _0x5090df,getMenuHiddenObservable as _0x19b962,RibbonStartGroup as _0x19a84a,IMenuManagerService as _0x177982}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e9901}from'@univerjs/sheets';function _0x25ec(_0x497aae,_0x48e55e){_0x497aae=_0x497aae-0x10d;const _0x6e466d=_0x6e46();let _0x25ec41=_0x6e466d[_0x497aae];return _0x25ec41;}import{getCurrentRangeDisable$ as _0x3da68e}from'@univerjs/sheets-ui';const p={'id':_0x2fc5da(0x112),'type':_0x83e548[_0x2fc5da(0x119)],'handler':async _0x21d0b7=>{const _0x59b927=_0x2fc5da,_0xce471d=_0x21d0b7['get'](_0x1c5f7f);return new URLSearchParams(location[_0x59b927(0x13d)])[_0x59b927(0x120)](_0x59b927(0x10f))?_0xce471d[_0x59b927(0x114)]():_0xce471d['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x83e548[_0x2fc5da(0x119)],'handler':async _0x2b1eb9=>{const _0x3ceb61=_0x2fc5da,_0x2fd502=_0x2b1eb9[_0x3ceb61(0x120)](_0x1c5f7f);return new URLSearchParams(location[_0x3ceb61(0x13d)])['get'](_0x3ceb61(0x10f))?_0x2fd502['exportXLSXByUnitId']():_0x2fd502[_0x3ceb61(0x118)](),!0x0;}},H=_0x2fc5da(0x113),l={},S=_0x2fc5da(0x10d);function _0x6e46(){const _0x59af79=['disposeWithMe','exchange-client.operation.import-xlsx','sheets-exchange-client.config','importXLSXToUnitId','getOwnPropertyDescriptor','12IimkpX','onReady','exportXLSXBySnapshot','OPERATION','symbol','3lHouXA','81935bhDZjJ','exchange.upload','_injector','327558newgin','get','_configService','type','73766ItgtDE','registerCommand','_menuManagerService','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','96978FRtADC','105833NjWDcb','setConfig','forEach','3295148qfFnTk','add','_config','19881VyMwuR','DirectExportIcon','pluginName','210HGAplH','_initMenus','menu','length','1752WdNSzC','_initCommands','_commandService','UNIVER_SHEET','exchange.download','5AviCuc','search','6cSNeCp','sheets-exchange-client.operation.exchange','FolderIcon','unit','BUTTON'];_0x6e46=function(){return _0x59af79;};return _0x6e46();}function R(_0x209edb){const _0x3e3995=_0x2fc5da;return{'id':S,'type':_0x5090df[_0x3e3995(0x128)],'icon':_0x3e3995(0x131),'tooltip':'exchange.file','hidden$':_0x19b962(_0x209edb,_0x4559c5['UNIVER_SHEET']),'disabled$':_0x3da68e(_0x209edb,{'workbookTypes':[_0x4e9901]})};}function w(){const _0x4def10=_0x2fc5da;return{'id':p['id'],'type':_0x5090df[_0x4def10(0x110)],'title':_0x4def10(0x11d),'icon':_0x4def10(0x10e)};}function D(){const _0x2f987f=_0x2fc5da;return{'id':u['id'],'type':_0x5090df[_0x2f987f(0x110)],'title':_0x2f987f(0x13b),'icon':'ExportIcon'};}const F={[_0x19a84a[_0x2fc5da(0x126)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2fc5da(0x115)],A=(_0x4452b3,_0x1db788,_0x29cac8,_0x4ada2c)=>{const _0x37a7a9=_0x2fc5da;for(var _0x5f14c5=_0x4ada2c>0x1?void 0x0:_0x4ada2c?G(_0x1db788,_0x29cac8):_0x1db788,_0x384254=_0x4452b3[_0x37a7a9(0x136)]-0x1,_0x2d3a7c;_0x384254>=0x0;_0x384254--)(_0x2d3a7c=_0x4452b3[_0x384254])&&(_0x5f14c5=_0x2d3a7c(_0x5f14c5)||_0x5f14c5);return _0x5f14c5;},d=(_0x2d1d4e,_0x3ffd99)=>(_0x5d3d91,_0x58ad7e)=>_0x3ffd99(_0x5d3d91,_0x58ad7e,_0x2d1d4e);let c=class extends _0x28da18{constructor(_0x1e8029,_0x231f60){const _0xa648cb=_0x2fc5da;super(),this[_0xa648cb(0x139)]=_0x1e8029,this[_0xa648cb(0x125)]=_0x231f60,this['_initCommands'](),this[_0xa648cb(0x134)]();}[_0x2fc5da(0x138)](){const _0x3542c1=_0x2fc5da;[p,u][_0x3542c1(0x12c)](_0x548bbb=>{const _0x45f212=_0x3542c1;this[_0x45f212(0x111)](this[_0x45f212(0x139)][_0x45f212(0x124)](_0x548bbb));});}[_0x2fc5da(0x134)](){const _0x982b09=_0x2fc5da;this[_0x982b09(0x125)]['mergeMenu'](F);}};c=A([d(0x0,_0x577c40),d(0x1,_0x177982)],c);var j=Object['defineProperty'],B=Object[_0x2fc5da(0x115)],$=(_0x6333b4,_0x59f135,_0x35104a)=>_0x59f135 in _0x6333b4?j(_0x6333b4,_0x59f135,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35104a}):_0x6333b4[_0x59f135]=_0x35104a,V=(_0x16f576,_0x18d729,_0x130dfa,_0x5a7c5a)=>{for(var _0xdb8811=_0x5a7c5a>0x1?void 0x0:_0x5a7c5a?B(_0x18d729,_0x130dfa):_0x18d729,_0x583ff0=_0x16f576['length']-0x1,_0x45b7dc;_0x583ff0>=0x0;_0x583ff0--)(_0x45b7dc=_0x16f576[_0x583ff0])&&(_0xdb8811=_0x45b7dc(_0xdb8811)||_0xdb8811);return _0xdb8811;},_=(_0x2d331d,_0x402e80)=>(_0x419cd8,_0x48d8f0)=>_0x402e80(_0x419cd8,_0x48d8f0,_0x2d331d),I=(_0x271c73,_0x1760bc,_0x4fb24c)=>$(_0x271c73,typeof _0x1760bc!=_0x2fc5da(0x11a)?_0x1760bc+'':_0x1760bc,_0x4fb24c);const W=_0x2fc5da(0x127);let s=class extends _0x9e1126{constructor(_0x89d122=l,_0x38bcf0,_0x1b0801){const _0x535383=_0x2fc5da;super(),this[_0x535383(0x12f)]=_0x89d122,this[_0x535383(0x11e)]=_0x38bcf0,this['_configService']=_0x1b0801;const {menu:_0x3d2f7a,..._0x1d1dfb}=_0x57a561({},l,this[_0x535383(0x12f)]);_0x3d2f7a&&this[_0x535383(0x121)][_0x535383(0x12b)](_0x535383(0x135),_0x3d2f7a,{'merge':!0x0}),this[_0x535383(0x121)][_0x535383(0x12b)](H,_0x1d1dfb);}['onStarting'](){const _0x3e783a=_0x2fc5da;[[c]][_0x3e783a(0x12c)](_0x5199d4=>this[_0x3e783a(0x11e)][_0x3e783a(0x12e)](_0x5199d4));}[_0x2fc5da(0x117)](){const _0x46dfd1=_0x2fc5da;this[_0x46dfd1(0x11e)][_0x46dfd1(0x120)](c);}};I(s,_0x2fc5da(0x132),W),I(s,_0x2fc5da(0x122),_0x4559c5[_0x2fc5da(0x13a)]),s=V([_0x4efda7(_0x3e666b),_(0x1,_0x26a766(_0x1e0703)),_(0x2,_0x401237)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2fc5da=_0x25ec;(function(_0x15ab17,_0x28c3f3){const _0x1e1776=_0x25ec,_0x1878e2=_0x15ab17();while(!![]){try{const _0x4a2bef=-parseInt(_0x1e1776(0x11b))/0x1*(-parseInt(_0x1e1776(0x123))/0x2)+parseInt(_0x1e1776(0x129))/0x3+-parseInt(_0x1e1776(0x12d))/0x4*(parseInt(_0x1e1776(0x13c))/0x5)+-parseInt(_0x1e1776(0x13e))/0x6*(-parseInt(_0x1e1776(0x11c))/0x7)+parseInt(_0x1e1776(0x137))/0x8*(parseInt(_0x1e1776(0x130))/0x9)+-parseInt(_0x1e1776(0x133))/0xa*(-parseInt(_0x1e1776(0x11f))/0xb)+-parseInt(_0x1e1776(0x116))/0xc*(parseInt(_0x1e1776(0x12a))/0xd);if(_0x4a2bef===_0x28c3f3)break;else _0x1878e2['push'](_0x1878e2['shift']());}catch(_0x2eb027){_0x1878e2['push'](_0x1878e2['shift']());}}}(_0x6e46,0x696f5));import{IExchangeOperateService as _0x1c5f7f,UniverExchangeClientPlugin as _0x3e666b}from'@univerjs-pro/exchange-client';import{CommandType as _0x83e548,UniverInstanceType as _0x4559c5,Disposable as _0x28da18,ICommandService as _0x577c40,DependentOn as _0x4efda7,Inject as _0x26a766,Injector as _0x1e0703,IConfigService as _0x401237,Plugin as _0x9e1126,merge as _0x57a561}from'@univerjs/core';import{MenuItemType as _0x5090df,getMenuHiddenObservable as _0x19b962,RibbonStartGroup as _0x19a84a,IMenuManagerService as _0x177982}from'@univerjs/ui';import{WorkbookExportPermission as _0x4e9901}from'@univerjs/sheets';function _0x25ec(_0x497aae,_0x48e55e){_0x497aae=_0x497aae-0x10d;const _0x6e466d=_0x6e46();let _0x25ec41=_0x6e466d[_0x497aae];return _0x25ec41;}import{getCurrentRangeDisable$ as _0x3da68e}from'@univerjs/sheets-ui';const p={'id':_0x2fc5da(0x112),'type':_0x83e548[_0x2fc5da(0x119)],'handler':async _0x21d0b7=>{const _0x59b927=_0x2fc5da,_0xce471d=_0x21d0b7['get'](_0x1c5f7f);return new URLSearchParams(location[_0x59b927(0x13d)])[_0x59b927(0x120)](_0x59b927(0x10f))?_0xce471d[_0x59b927(0x114)]():_0xce471d['importXLSXToSnapshot'](),!0x0;}},u={'id':'exchange-client.operation.export-xlsx','type':_0x83e548[_0x2fc5da(0x119)],'handler':async _0x2b1eb9=>{const _0x3ceb61=_0x2fc5da,_0x2fd502=_0x2b1eb9[_0x3ceb61(0x120)](_0x1c5f7f);return new URLSearchParams(location[_0x3ceb61(0x13d)])['get'](_0x3ceb61(0x10f))?_0x2fd502['exportXLSXByUnitId']():_0x2fd502[_0x3ceb61(0x118)](),!0x0;}},H=_0x2fc5da(0x113),l={},S=_0x2fc5da(0x10d);function _0x6e46(){const _0x59af79=['disposeWithMe','exchange-client.operation.import-xlsx','sheets-exchange-client.config','importXLSXToUnitId','getOwnPropertyDescriptor','12IimkpX','onReady','exportXLSXBySnapshot','OPERATION','symbol','3lHouXA','81935bhDZjJ','exchange.upload','_injector','327558newgin','get','_configService','type','73766ItgtDE','registerCommand','_menuManagerService','OTHERS','SHEET_EXCHANGE_CLIENT_PLUGIN','SUBITEMS','96978FRtADC','105833NjWDcb','setConfig','forEach','3295148qfFnTk','add','_config','19881VyMwuR','DirectExportIcon','pluginName','210HGAplH','_initMenus','menu','length','1752WdNSzC','_initCommands','_commandService','UNIVER_SHEET','exchange.download','5AviCuc','search','6cSNeCp','sheets-exchange-client.operation.exchange','FolderIcon','unit','BUTTON'];_0x6e46=function(){return _0x59af79;};return _0x6e46();}function R(_0x209edb){const _0x3e3995=_0x2fc5da;return{'id':S,'type':_0x5090df[_0x3e3995(0x128)],'icon':_0x3e3995(0x131),'tooltip':'exchange.file','hidden$':_0x19b962(_0x209edb,_0x4559c5['UNIVER_SHEET']),'disabled$':_0x3da68e(_0x209edb,{'workbookTypes':[_0x4e9901]})};}function w(){const _0x4def10=_0x2fc5da;return{'id':p['id'],'type':_0x5090df[_0x4def10(0x110)],'title':_0x4def10(0x11d),'icon':_0x4def10(0x10e)};}function D(){const _0x2f987f=_0x2fc5da;return{'id':u['id'],'type':_0x5090df[_0x2f987f(0x110)],'title':_0x2f987f(0x13b),'icon':'ExportIcon'};}const F={[_0x19a84a[_0x2fc5da(0x126)]]:{[S]:{'order':0.3,'menuItemFactory':R,[p['id']]:{'order':0x0,'menuItemFactory':w},[u['id']]:{'order':0x1,'menuItemFactory':D}}}};var G=Object[_0x2fc5da(0x115)],A=(_0x4452b3,_0x1db788,_0x29cac8,_0x4ada2c)=>{const _0x37a7a9=_0x2fc5da;for(var _0x5f14c5=_0x4ada2c>0x1?void 0x0:_0x4ada2c?G(_0x1db788,_0x29cac8):_0x1db788,_0x384254=_0x4452b3[_0x37a7a9(0x136)]-0x1,_0x2d3a7c;_0x384254>=0x0;_0x384254--)(_0x2d3a7c=_0x4452b3[_0x384254])&&(_0x5f14c5=_0x2d3a7c(_0x5f14c5)||_0x5f14c5);return _0x5f14c5;},d=(_0x2d1d4e,_0x3ffd99)=>(_0x5d3d91,_0x58ad7e)=>_0x3ffd99(_0x5d3d91,_0x58ad7e,_0x2d1d4e);let c=class extends _0x28da18{constructor(_0x1e8029,_0x231f60){const _0xa648cb=_0x2fc5da;super(),this[_0xa648cb(0x139)]=_0x1e8029,this[_0xa648cb(0x125)]=_0x231f60,this['_initCommands'](),this[_0xa648cb(0x134)]();}[_0x2fc5da(0x138)](){const _0x3542c1=_0x2fc5da;[p,u][_0x3542c1(0x12c)](_0x548bbb=>{const _0x45f212=_0x3542c1;this[_0x45f212(0x111)](this[_0x45f212(0x139)][_0x45f212(0x124)](_0x548bbb));});}[_0x2fc5da(0x134)](){const _0x982b09=_0x2fc5da;this[_0x982b09(0x125)]['mergeMenu'](F);}};c=A([d(0x0,_0x577c40),d(0x1,_0x177982)],c);var j=Object['defineProperty'],B=Object[_0x2fc5da(0x115)],$=(_0x6333b4,_0x59f135,_0x35104a)=>_0x59f135 in _0x6333b4?j(_0x6333b4,_0x59f135,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35104a}):_0x6333b4[_0x59f135]=_0x35104a,V=(_0x16f576,_0x18d729,_0x130dfa,_0x5a7c5a)=>{for(var _0xdb8811=_0x5a7c5a>0x1?void 0x0:_0x5a7c5a?B(_0x18d729,_0x130dfa):_0x18d729,_0x583ff0=_0x16f576['length']-0x1,_0x45b7dc;_0x583ff0>=0x0;_0x583ff0--)(_0x45b7dc=_0x16f576[_0x583ff0])&&(_0xdb8811=_0x45b7dc(_0xdb8811)||_0xdb8811);return _0xdb8811;},_=(_0x2d331d,_0x402e80)=>(_0x419cd8,_0x48d8f0)=>_0x402e80(_0x419cd8,_0x48d8f0,_0x2d331d),I=(_0x271c73,_0x1760bc,_0x4fb24c)=>$(_0x271c73,typeof _0x1760bc!=_0x2fc5da(0x11a)?_0x1760bc+'':_0x1760bc,_0x4fb24c);const W=_0x2fc5da(0x127);let s=class extends _0x9e1126{constructor(_0x89d122=l,_0x38bcf0,_0x1b0801){const _0x535383=_0x2fc5da;super(),this[_0x535383(0x12f)]=_0x89d122,this[_0x535383(0x11e)]=_0x38bcf0,this['_configService']=_0x1b0801;const {menu:_0x3d2f7a,..._0x1d1dfb}=_0x57a561({},l,this[_0x535383(0x12f)]);_0x3d2f7a&&this[_0x535383(0x121)][_0x535383(0x12b)](_0x535383(0x135),_0x3d2f7a,{'merge':!0x0}),this[_0x535383(0x121)][_0x535383(0x12b)](H,_0x1d1dfb);}['onStarting'](){const _0x3e783a=_0x2fc5da;[[c]][_0x3e783a(0x12c)](_0x5199d4=>this[_0x3e783a(0x11e)][_0x3e783a(0x12e)](_0x5199d4));}[_0x2fc5da(0x117)](){const _0x46dfd1=_0x2fc5da;this[_0x46dfd1(0x11e)][_0x46dfd1(0x120)](c);}};I(s,_0x2fc5da(0x132),W),I(s,_0x2fc5da(0x122),_0x4559c5[_0x2fc5da(0x13a)]),s=V([_0x4efda7(_0x3e666b),_(0x1,_0x26a766(_0x1e0703)),_(0x2,_0x401237)],s);export{u as ExportXLSXOperation,p as ImportXLSXOperation,s as UniverSheetsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2ec3(_0x533165,_0x4e139c){_0x533165=_0x533165-0x169;const _0x570414=_0x5704();let _0x2ec3fe=_0x570414[_0x533165];return _0x2ec3fe;}(function(_0x4a1e96,_0xdd920){const _0x1dcc56=_0x2ec3,_0x3c08dd=_0x4a1e96();while(!![]){try{const _0x34010d=parseInt(_0x1dcc56(0x175))/0x1+parseInt(_0x1dcc56(0x186))/0x2+-parseInt(_0x1dcc56(0x1ac))/0x3+-parseInt(_0x1dcc56(0x1a8))/0x4*(parseInt(_0x1dcc56(0x1a9))/0x5)+parseInt(_0x1dcc56(0x1a1))/0x6*(-parseInt(_0x1dcc56(0x1b0))/0x7)+-parseInt(_0x1dcc56(0x16a))/0x8+-parseInt(_0x1dcc56(0x188))/0x9*(-parseInt(_0x1dcc56(0x184))/0xa);if(_0x34010d===_0xdd920)break;else _0x3c08dd['push'](_0x3c08dd['shift']());}catch(_0x53780e){_0x3c08dd['push'](_0x3c08dd['shift']());}}}(_0x5704,0x863f3),function(_0x1381e3,_0x522bc1){const _0xc081a6=_0x2ec3;typeof exports=='object'&&typeof module<'u'?_0x522bc1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/sheets'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0xc081a6(0x185)]?define(['exports',_0xc081a6(0x182),_0xc081a6(0x1a0),_0xc081a6(0x197),_0xc081a6(0x169),_0xc081a6(0x199)],_0x522bc1):(_0x1381e3=typeof globalThis<'u'?globalThis:_0x1381e3||self,_0x522bc1(_0x1381e3[_0xc081a6(0x180)]={},_0x1381e3[_0xc081a6(0x1a2)],_0x1381e3[_0xc081a6(0x17d)],_0x1381e3[_0xc081a6(0x183)],_0x1381e3['UniverSheets'],_0x1381e3[_0xc081a6(0x174)]));}(this,function(_0x46a5ee,_0x255323,_0x16b598,_0x1ef65c,_0x26021b,_0x479885){'use strict';const _0x2d95ad=_0x2ec3;const _0x49e711={'id':_0x2d95ad(0x1b3),'type':_0x16b598[_0x2d95ad(0x19d)][_0x2d95ad(0x190)],'handler':async _0x180b7a=>{const _0x334835=_0x2d95ad,_0x4b2bd5=_0x180b7a['get'](_0x255323[_0x334835(0x1af)]);return new URLSearchParams(location[_0x334835(0x18c)])[_0x334835(0x171)](_0x334835(0x16c))?_0x4b2bd5[_0x334835(0x1b7)]():_0x4b2bd5['importXLSXToSnapshot'](),!0x0;}},_0x370cc4={'id':_0x2d95ad(0x16b),'type':_0x16b598[_0x2d95ad(0x19d)][_0x2d95ad(0x190)],'handler':async _0x47a85b=>{const _0x30924e=_0x2d95ad,_0x1bde31=_0x47a85b[_0x30924e(0x171)](_0x255323['IExchangeOperateService']);return new URLSearchParams(location['search'])[_0x30924e(0x171)](_0x30924e(0x16c))?_0x1bde31[_0x30924e(0x173)]():_0x1bde31[_0x30924e(0x18e)](),!0x0;}},_0x2ac261='sheets-exchange-client.config',_0x316539={},_0x5707ac=_0x2d95ad(0x17b);function _0x22426f(_0xa12ac9){const _0x318d6a=_0x2d95ad;return{'id':_0x5707ac,'type':_0x1ef65c[_0x318d6a(0x172)][_0x318d6a(0x198)],'icon':_0x318d6a(0x18a),'tooltip':_0x318d6a(0x187),'hidden$':_0x1ef65c[_0x318d6a(0x1a7)](_0xa12ac9,_0x16b598[_0x318d6a(0x17a)]['UNIVER_SHEET']),'disabled$':_0x479885['getCurrentRangeDisable$'](_0xa12ac9,{'workbookTypes':[_0x26021b[_0x318d6a(0x189)]]})};}function _0x26533a(){const _0x779e68=_0x2d95ad;return{'id':_0x49e711['id'],'type':_0x1ef65c[_0x779e68(0x172)][_0x779e68(0x191)],'title':_0x779e68(0x192),'icon':_0x779e68(0x1b1)};}function _0x3c9a29(){const _0x3b53f5=_0x2d95ad;return{'id':_0x370cc4['id'],'type':_0x1ef65c[_0x3b53f5(0x172)][_0x3b53f5(0x191)],'title':_0x3b53f5(0x19e),'icon':_0x3b53f5(0x1b2)};}const _0xb566ec={[_0x1ef65c[_0x2d95ad(0x17e)][_0x2d95ad(0x178)]]:{[_0x5707ac]:{'order':0.3,'menuItemFactory':_0x22426f,[_0x49e711['id']]:{'order':0x0,'menuItemFactory':_0x26533a},[_0x370cc4['id']]:{'order':0x1,'menuItemFactory':_0x3c9a29}}}};var _0x1053d7=Object[_0x2d95ad(0x1ad)],_0x28d9a7=(_0xfae975,_0x2f8b5c,_0x433386,_0x533760)=>{const _0x3559ef=_0x2d95ad;for(var _0x5d1333=_0x533760>0x1?void 0x0:_0x533760?_0x1053d7(_0x2f8b5c,_0x433386):_0x2f8b5c,_0x189444=_0xfae975[_0x3559ef(0x19f)]-0x1,_0x62aaa5;_0x189444>=0x0;_0x189444--)(_0x62aaa5=_0xfae975[_0x189444])&&(_0x5d1333=_0x62aaa5(_0x5d1333)||_0x5d1333);return _0x5d1333;},_0x30b60b=(_0x575cbe,_0x115150)=>(_0x464ede,_0x24c82c)=>_0x115150(_0x464ede,_0x24c82c,_0x575cbe);let _0x560433=class extends _0x16b598[_0x2d95ad(0x181)]{constructor(_0x265db0,_0x461f0e){const _0x1c88f9=_0x2d95ad;super(),this['_commandService']=_0x265db0,this[_0x1c88f9(0x179)]=_0x461f0e,this[_0x1c88f9(0x196)](),this['_initMenus']();}['_initCommands'](){const _0x295983=_0x2d95ad;[_0x49e711,_0x370cc4][_0x295983(0x176)](_0x1493cd=>{const _0xc2665c=_0x295983;this['disposeWithMe'](this['_commandService'][_0xc2665c(0x1b4)](_0x1493cd));});}[_0x2d95ad(0x1b5)](){const _0x3a10aa=_0x2d95ad;this[_0x3a10aa(0x179)][_0x3a10aa(0x16e)](_0xb566ec);}};_0x560433=_0x28d9a7([_0x30b60b(0x0,_0x16b598[_0x2d95ad(0x1a5)]),_0x30b60b(0x1,_0x1ef65c['IMenuManagerService'])],_0x560433);var _0x2dc12d=Object[_0x2d95ad(0x1ae)],_0x23b238=Object[_0x2d95ad(0x1ad)],_0x415225=(_0x1ba661,_0x28cf05,_0x3e2340)=>_0x28cf05 in _0x1ba661?_0x2dc12d(_0x1ba661,_0x28cf05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e2340}):_0x1ba661[_0x28cf05]=_0x3e2340,_0x275eca=(_0x57a380,_0x500e60,_0x1975ed,_0x2b1814)=>{const _0x6f0f82=_0x2d95ad;for(var _0x4fc511=_0x2b1814>0x1?void 0x0:_0x2b1814?_0x23b238(_0x500e60,_0x1975ed):_0x500e60,_0x27dbcc=_0x57a380[_0x6f0f82(0x19f)]-0x1,_0x4fa1fd;_0x27dbcc>=0x0;_0x27dbcc--)(_0x4fa1fd=_0x57a380[_0x27dbcc])&&(_0x4fc511=_0x4fa1fd(_0x4fc511)||_0x4fc511);return _0x4fc511;},_0x3f393a=(_0x5b92bc,_0x135162)=>(_0xf79651,_0x20c5b2)=>_0x135162(_0xf79651,_0x20c5b2,_0x5b92bc),_0x49e754=(_0x349b1e,_0x1d518e,_0x410272)=>_0x415225(_0x349b1e,typeof _0x1d518e!=_0x2d95ad(0x193)?_0x1d518e+'':_0x1d518e,_0x410272);const _0x29e554=_0x2d95ad(0x1aa);_0x46a5ee[_0x2d95ad(0x17c)]=class extends _0x16b598[_0x2d95ad(0x18d)]{constructor(_0x3a124b=_0x316539,_0x2607e9,_0xc66899){const _0x4b6dda=_0x2d95ad;super(),this[_0x4b6dda(0x1ab)]=_0x3a124b,this[_0x4b6dda(0x19b)]=_0x2607e9,this['_configService']=_0xc66899;const {menu:_0x102e1c,..._0x3c003c}=_0x16b598[_0x4b6dda(0x18f)]({},_0x316539,this[_0x4b6dda(0x1ab)]);_0x102e1c&&this[_0x4b6dda(0x19a)][_0x4b6dda(0x17f)](_0x4b6dda(0x1a4),_0x102e1c,{'merge':!0x0}),this['_configService'][_0x4b6dda(0x17f)](_0x2ac261,_0x3c003c);}[_0x2d95ad(0x1a3)](){const _0x4f9c12=_0x2d95ad;[[_0x560433]][_0x4f9c12(0x176)](_0x309a00=>this[_0x4f9c12(0x19b)][_0x4f9c12(0x16f)](_0x309a00));}['onReady'](){const _0x2391b9=_0x2d95ad;this['_injector'][_0x2391b9(0x171)](_0x560433);}},_0x49e754(_0x46a5ee[_0x2d95ad(0x17c)],_0x2d95ad(0x16d),_0x29e554),_0x49e754(_0x46a5ee['UniverSheetsExchangeClientPlugin'],_0x2d95ad(0x177),_0x16b598[_0x2d95ad(0x17a)][_0x2d95ad(0x1a6)]),_0x46a5ee['UniverSheetsExchangeClientPlugin']=_0x275eca([_0x16b598[_0x2d95ad(0x19c)](_0x255323[_0x2d95ad(0x1b6)]),_0x3f393a(0x1,_0x16b598['Inject'](_0x16b598['Injector'])),_0x3f393a(0x2,_0x16b598[_0x2d95ad(0x195)])],_0x46a5ee[_0x2d95ad(0x17c)]),_0x46a5ee[_0x2d95ad(0x194)]=_0x370cc4,_0x46a5ee[_0x2d95ad(0x170)]=_0x49e711,Object[_0x2d95ad(0x1ae)](_0x46a5ee,Symbol[_0x2d95ad(0x18b)],{'value':'Module'});}));function _0x5704(){const _0x44a1cb=['menu','ICommandService','UNIVER_SHEET','getMenuHiddenObservable','12clbgQd','1782545YbOIwC','SHEET_EXCHANGE_CLIENT_PLUGIN','_config','1968855FsneiC','getOwnPropertyDescriptor','defineProperty','IExchangeOperateService','2153620XnYOan','FolderIcon','ExportIcon','exchange-client.operation.import-xlsx','registerCommand','_initMenus','UniverExchangeClientPlugin','importXLSXToUnitId','@univerjs/sheets','1051248eqFsMc','exchange-client.operation.export-xlsx','unit','pluginName','mergeMenu','add','ImportXLSXOperation','get','MenuItemType','exportXLSXByUnitId','UniverSheetsUi','721036BZYjOK','forEach','type','OTHERS','_menuManagerService','UniverInstanceType','sheets-exchange-client.operation.exchange','UniverSheetsExchangeClientPlugin','UniverCore','RibbonStartGroup','setConfig','UniverProSheetsExchangeClient','Disposable','@univerjs-pro/exchange-client','UniverUi','22340Nxrywc','amd','925590Yuekrz','exchange.file','7407itGlbI','WorkbookExportPermission','DirectExportIcon','toStringTag','search','Plugin','exportXLSXBySnapshot','merge','OPERATION','BUTTON','exchange.upload','symbol','ExportXLSXOperation','IConfigService','_initCommands','@univerjs/ui','SUBITEMS','@univerjs/sheets-ui','_configService','_injector','DependentOn','CommandType','exchange.download','length','@univerjs/core','12FExFwP','UniverProExchangeClient','onStarting'];_0x5704=function(){return _0x44a1cb;};return _0x5704();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-exchange-client",
|
|
3
|
-
"version": "0.12.4-experimental.
|
|
3
|
+
"version": "0.12.4-experimental.20251210-8d33c6e",
|
|
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/
|
|
49
|
-
"@univerjs/
|
|
45
|
+
"@univerjs/core": "0.12.4-experimental.20251210-8d33c6e",
|
|
46
|
+
"@univerjs/sheets-ui": "0.12.4-experimental.20251210-8d33c6e",
|
|
47
|
+
"@univerjs/ui": "0.12.4-experimental.20251210-8d33c6e",
|
|
48
|
+
"@univerjs-pro/exchange-client": "0.12.4-experimental.20251210-8d33c6e",
|
|
49
|
+
"@univerjs/sheets": "0.12.4-experimental.20251210-8d33c6e"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^5.9.3",
|