@univerjs-pro/sheets-mcp 0.15.1 → 0.15.2-insiders.20260122-b1556b1
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x566bd9=_0xbdcf;(function(_0x3965c9,_0x100a6e){const _0x2671bd=_0xbdcf,_0x5c9215=_0x3965c9();while(!![]){try{const _0x40277c=-parseInt(_0x2671bd(0x124))/0x1+parseInt(_0x2671bd(0x10b))/0x2*(-parseInt(_0x2671bd(0x10c))/0x3)+-parseInt(_0x2671bd(0x111))/0x4*(parseInt(_0x2671bd(0x135))/0x5)+-parseInt(_0x2671bd(0x116))/0x6+-parseInt(_0x2671bd(0x128))/0x7*(-parseInt(_0x2671bd(0x13c))/0x8)+parseInt(_0x2671bd(0x129))/0x9*(-parseInt(_0x2671bd(0x11d))/0xa)+parseInt(_0x2671bd(0x139))/0xb;if(_0x40277c===_0x100a6e)break;else _0x5c9215['push'](_0x5c9215['shift']());}catch(_0x156419){_0x5c9215['push'](_0x5c9215['shift']());}}}(_0x2d81,0x22cdc));const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');class y extends U['FUniver']{async[_0x566bd9(0x13d)](){return this['getActiveWorkbook']()['getLintErrors']();}}U[_0x566bd9(0x12a)][_0x566bd9(0x12c)](y);class C extends f[_0x566bd9(0x137)]{async[_0x566bd9(0x13d)](){const _0x173201=_0x566bd9,_0x42026a=this[_0x173201(0x10f)](),_0x4df226=await this[_0x173201(0x12e)]();return{'formulaErrors':_0x42026a,'dataValidationErrors':_0x4df226};}}function _0x2d81(){const _0x1ad707=['793770xZThBF','FRange','getFormulaUsagesAsA1','getStyleUsagesAsA1','getAllFormulaUsages','_worksheet','filledRanges','183446kSMXjx','_injector','moveFormulaRefOffset','get','287SZHHkX','18quewNF','FUniver','updateConfig','extend','IFormulaUsageAnalyzer','getAllDataValidationErrorAsync','getRange','toA1','getAllSizeUsages','getIntersectRange','startRow','getMaxRows','391975uXmkZH','length','FWorkbook','map','7317332EsXRxN','getCellRaw','getMaxColumns','42248vZUUFr','getLintErrors','_workbook','getAllStyleUsages','formulaToA1','getSizeUsagesAsA1','8SkMSeu','5508VjFKLw','push','endColumn','getAllFormulaError','IStyleUsageAnalyzer','12QfaLFw','getStyleUsages','firstOccurrence','ISizeUsageAnalyzer','getCellDataGrid','926688PFBQKE','styleToA1','getFormulaUsages','formula','startColumn','getSizeUsages','endRow'];_0x2d81=function(){return _0x1ad707;};return _0x2d81();}f[_0x566bd9(0x137)][_0x566bd9(0x12c)](C);class z extends f['FWorksheet']{async[_0x566bd9(0x118)](){const _0x1c37e4=_0x566bd9,_0x21d938=this[_0x1c37e4(0x125)][_0x1c37e4(0x127)](g[_0x1c37e4(0x12d)]),_0x4b3caa=this[_0x1c37e4(0x12f)](0x0,0x0,this['getMaxRows'](),this['getMaxColumns']())[_0x1c37e4(0x115)]();return await _0x21d938[_0x1c37e4(0x121)](_0x4b3caa);}async[_0x566bd9(0x11f)](){const _0x3c792e=_0x566bd9;return(await this[_0x3c792e(0x118)]())[_0x3c792e(0x138)](g[_0x3c792e(0x109)]);}[_0x566bd9(0x112)](_0x2fa8c8){const _0x2c1732=_0x566bd9,_0xc95f43=this[_0x2c1732(0x125)]['get'](g[_0x2c1732(0x110)]),_0x3617fb=this['getRange'](0x0,0x0,this[_0x2c1732(0x134)](),this[_0x2c1732(0x13b)]())[_0x2c1732(0x115)]();return _0xc95f43[_0x2c1732(0x12b)](_0x2fa8c8),_0xc95f43[_0x2c1732(0x108)](_0x3617fb,this[_0x2c1732(0x107)],this['_worksheet']);}[_0x566bd9(0x120)](_0x4befd9){const _0x4b8ce8=_0x566bd9;return this['getStyleUsages'](_0x4befd9)['map'](g[_0x4b8ce8(0x117)]);}[_0x566bd9(0x11b)](_0x4ec9d6){const _0x575156=_0x566bd9,_0x2d2088=this[_0x575156(0x125)][_0x575156(0x127)](g[_0x575156(0x114)]);return _0x2d2088['updateConfig'](_0x4ec9d6),_0x2d2088[_0x575156(0x131)](this[_0x575156(0x122)]);}[_0x566bd9(0x10a)](_0x18f1c1){const _0x58609d=_0x566bd9,_0x140636=this[_0x58609d(0x125)][_0x58609d(0x127)](g[_0x58609d(0x114)]);_0x140636[_0x58609d(0x12b)](_0x18f1c1);const _0x4ed98a=_0x140636['getAllSizeUsages'](this[_0x58609d(0x122)]);return _0x140636[_0x58609d(0x130)](_0x4ed98a);}}f['FWorksheet']['extend'](z);function _0xbdcf(_0x4cebb2,_0x53ba77){_0x4cebb2=_0x4cebb2-0x107;const _0x2d819e=_0x2d81();let _0xbdcfbb=_0x2d819e[_0x4cebb2];return _0xbdcfbb;}class S extends f['FRange']{async['getFormulaUsages'](){const _0x488375=_0x566bd9,_0x389341=this[_0x488375(0x125)]['get'](g[_0x488375(0x12d)]),_0x1f39ca=(({startRow:_0x3891bd,endRow:_0x30760f,startColumn:_0x596e60,endColumn:_0x4dad67})=>{const _0x14c68f=_0x488375,_0x5d0b22=[];for(let _0x223d9e=_0x3891bd;_0x223d9e<=_0x30760f;_0x223d9e++){const _0x1b3ee3=[];for(let _0x59f1a2=_0x596e60;_0x59f1a2<=_0x4dad67;_0x59f1a2++)_0x1b3ee3[_0x14c68f(0x10d)](this[_0x14c68f(0x122)]['getCellRaw'](_0x223d9e,_0x59f1a2));_0x5d0b22[_0x14c68f(0x10d)](_0x1b3ee3);}return _0x5d0b22;})({'startRow':0x0,'endRow':this['_worksheet']['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x488375(0x122)][_0x488375(0x13b)]()}),_0x32aba7=await _0x389341[_0x488375(0x121)](_0x1f39ca),_0x42f6bd=this['getRange'](),_0x26b910=[];for(let _0x58d524=0x0;_0x58d524<_0x32aba7[_0x488375(0x136)];_0x58d524++){const _0x2bc8f3=_0x32aba7[_0x58d524],_0x3d070c=_0x2bc8f3[_0x488375(0x123)],_0x2d8a52=[];for(let _0x493c51=0x0;_0x493c51<_0x3d070c[_0x488375(0x136)];_0x493c51++){const _0x7ba49=_0x3d070c[_0x493c51],_0x37ba30=m[_0x488375(0x132)](_0x7ba49,_0x42f6bd);_0x37ba30&&_0x2d8a52[_0x488375(0x10d)](_0x37ba30);}if(_0x2d8a52[_0x488375(0x136)]>0x0){if(_0x2bc8f3[_0x488375(0x123)]=_0x2d8a52,!(_0x2bc8f3[_0x488375(0x113)]['startRow']>=_0x42f6bd['startRow']&&_0x2bc8f3['firstOccurrence']['startRow']<=_0x42f6bd[_0x488375(0x11c)]&&_0x2bc8f3[_0x488375(0x113)][_0x488375(0x11a)]>=_0x42f6bd[_0x488375(0x11a)]&&_0x2bc8f3[_0x488375(0x113)][_0x488375(0x11a)]<=_0x42f6bd[_0x488375(0x10e)])){const _0xa0d55f=_0x2d8a52[0x0],_0x428be3=_0xa0d55f[_0x488375(0x133)]-_0x2bc8f3[_0x488375(0x113)][_0x488375(0x133)],_0x8335ec=_0xa0d55f['startColumn']-_0x2bc8f3['firstOccurrence'][_0x488375(0x11a)];_0x2bc8f3[_0x488375(0x119)]=await _0x389341[_0x488375(0x126)](_0x2bc8f3[_0x488375(0x119)],_0x8335ec,_0x428be3),_0x2bc8f3[_0x488375(0x113)]={'startRow':_0xa0d55f['startRow'],'endRow':_0xa0d55f[_0x488375(0x133)],'startColumn':_0xa0d55f[_0x488375(0x11a)],'endColumn':_0xa0d55f[_0x488375(0x11a)]};}_0x26b910['push'](_0x2bc8f3);}}return _0x26b910;}async[_0x566bd9(0x11f)](){const _0x44cd64=_0x566bd9;return(await this[_0x44cd64(0x118)]())[_0x44cd64(0x138)](g[_0x44cd64(0x109)]);}['getStyleUsages'](_0x53721d){const _0x10cf5f=_0x566bd9,_0x430aeb=this[_0x10cf5f(0x125)][_0x10cf5f(0x127)](g[_0x10cf5f(0x110)]),_0x4e003d=(({startRow:_0xbfce75,endRow:_0x7eff43,startColumn:_0x3c7a4c,endColumn:_0x1bc2d9})=>{const _0x1bb616=_0x10cf5f,_0x23dfb3=[];for(let _0x2568e7=_0xbfce75;_0x2568e7<=_0x7eff43;_0x2568e7++){const _0x231e7d=[];for(let _0x5d582c=_0x3c7a4c;_0x5d582c<=_0x1bc2d9;_0x5d582c++)_0x231e7d[_0x1bb616(0x10d)](this['_worksheet'][_0x1bb616(0x13a)](_0x2568e7,_0x5d582c));_0x23dfb3[_0x1bb616(0x10d)](_0x231e7d);}return _0x23dfb3;})({'startRow':0x0,'endRow':this[_0x10cf5f(0x122)][_0x10cf5f(0x134)](),'startColumn':0x0,'endColumn':this[_0x10cf5f(0x122)][_0x10cf5f(0x13b)]()});_0x430aeb['updateConfig'](_0x53721d);const _0x1104b6=_0x430aeb[_0x10cf5f(0x108)](_0x4e003d,this[_0x10cf5f(0x107)],this[_0x10cf5f(0x122)]),_0x4d6d5b=this['getRange'](),_0x31d708=[];for(let _0x5da64c=0x0;_0x5da64c<_0x1104b6[_0x10cf5f(0x136)];_0x5da64c++){const _0x5453a3=_0x1104b6[_0x5da64c],_0x595d33=_0x5453a3['filledRanges'],_0x5ba247=[];for(let _0x1e30fb=0x0;_0x1e30fb<_0x595d33[_0x10cf5f(0x136)];_0x1e30fb++){const _0x3ab77c=_0x595d33[_0x1e30fb],_0x2cc00c=m[_0x10cf5f(0x132)](_0x3ab77c,_0x4d6d5b);_0x2cc00c&&_0x5ba247[_0x10cf5f(0x10d)](_0x2cc00c);}_0x5ba247[_0x10cf5f(0x136)]>0x0&&(_0x5453a3[_0x10cf5f(0x123)]=_0x5ba247,_0x31d708[_0x10cf5f(0x10d)](_0x5453a3));}return _0x31d708;}[_0x566bd9(0x120)](_0x4d6e0a){const _0x354eff=_0x566bd9;return this['getStyleUsages'](_0x4d6e0a)['map'](g[_0x354eff(0x117)]);}['getSizeUsages'](_0x1422ba){const _0x7daead=_0x566bd9,_0x583f8c=this[_0x7daead(0x125)][_0x7daead(0x127)](g['ISizeUsageAnalyzer']),_0x1203b0=this[_0x7daead(0x12f)]();return _0x583f8c[_0x7daead(0x12b)](_0x1422ba),_0x583f8c[_0x7daead(0x131)](this[_0x7daead(0x122)],_0x1203b0['startRow'],_0x1203b0[_0x7daead(0x11c)],_0x1203b0[_0x7daead(0x11a)],_0x1203b0['endColumn']);}[_0x566bd9(0x10a)](_0xd73a0e){const _0x1f7d24=_0x566bd9,_0x2a6c24=this['getSizeUsages'](_0xd73a0e);return this[_0x1f7d24(0x125)][_0x1f7d24(0x127)](g[_0x1f7d24(0x114)])['toA1'](_0x2a6c24);}}f[_0x566bd9(0x11e)]['extend'](S);
|