@univerjs-pro/sheets-mcp 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-453e4ff
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';function _0x3520(){const _0x5aca64=['endRow','18699210MwHBsF','FUniver','getMaxRows','609582OpdxJO','formula','push','getActiveWorkbook','13982652YUIDCA','getFormulaUsagesAsA1','getAllFormulaUsages','5MJsHsU','getFormulaUsages','filledRanges','_injector','map','getLintErrors','getAllFormulaError','_worksheet','startColumn','getRange','308355frDsgn','length','3485784WIePCd','IFormulaUsageAnalyzer','8740207KlJFnN','getMaxColumns','startRow','getCellRaw','861834nClreO','get','endColumn','90wbrcBg','firstOccurrence','extend','FWorksheet','getIntersectRange','8EZcuvM','toA1','FWorkbook'];_0x3520=function(){return _0x5aca64;};return _0x3520();}const _0x230b81=_0x3b39;(function(_0x419ce3,_0x1a3367){const _0x24c457=_0x3b39,_0x3e4084=_0x419ce3();while(!![]){try{const _0x1449b5=-parseInt(_0x24c457(0x17a))/0x1*(-parseInt(_0x24c457(0x173))/0x2)+parseInt(_0x24c457(0x164))/0x3+parseInt(_0x24c457(0x186))/0x4+parseInt(_0x24c457(0x184))/0x5*(-parseInt(_0x24c457(0x167))/0x6)+-parseInt(_0x24c457(0x160))/0x7*(parseInt(_0x24c457(0x16c))/0x8)+-parseInt(_0x24c457(0x177))/0x9+parseInt(_0x24c457(0x170))/0xa;if(_0x1449b5===_0x1a3367)break;else _0x3e4084['push'](_0x3e4084['shift']());}catch(_0x56d6a0){_0x3e4084['push'](_0x3e4084['shift']());}}}(_0x3520,0xc97da));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),m=require('@univerjs-pro/sheets-mcp'),F=require('@univerjs/core');class C extends d[_0x230b81(0x171)]{async[_0x230b81(0x17f)](){const _0x19132a=_0x230b81;return this[_0x19132a(0x176)]()[_0x19132a(0x17f)]();}}d[_0x230b81(0x171)][_0x230b81(0x169)](C);function _0x3b39(_0x53984d,_0xef96c3){_0x53984d=_0x53984d-0x160;const _0x35206a=_0x3520();let _0x3b3929=_0x35206a[_0x53984d];return _0x3b3929;}class A extends o[_0x230b81(0x16e)]{async[_0x230b81(0x17f)](){const _0x4e5b1d=_0x230b81,_0x45fa2f=this[_0x4e5b1d(0x180)](),_0x5eee11=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x45fa2f,'dataValidationErrors':_0x5eee11};}}o[_0x230b81(0x16e)][_0x230b81(0x169)](A);class k extends o[_0x230b81(0x16a)]{async[_0x230b81(0x17b)](){const _0x536659=_0x230b81,_0x19d8af=this[_0x536659(0x17d)][_0x536659(0x165)](m[_0x536659(0x187)]),_0x5e7ca6=this['getRange'](0x0,0x0,this[_0x536659(0x172)](),this[_0x536659(0x161)]())['getCellDataGrid']();return await _0x19d8af[_0x536659(0x179)](_0x5e7ca6);}async['getFormulaUsagesAsA1'](){const _0x4e24d9=_0x230b81;return(await this[_0x4e24d9(0x17b)]())[_0x4e24d9(0x17e)](m[_0x4e24d9(0x16d)]);}}o[_0x230b81(0x16a)][_0x230b81(0x169)](k);class x extends o['FRange']{async[_0x230b81(0x17b)](){const _0x4ad967=_0x230b81,_0x30c07d=this[_0x4ad967(0x17d)][_0x4ad967(0x165)](m[_0x4ad967(0x187)]),_0x4b40e0=(({startRow:_0x165ccc,endRow:_0x12183b,startColumn:_0x3ca7af,endColumn:_0x444992})=>{const _0x1ef77f=_0x4ad967,_0x4365d3=[];for(let _0x59d576=_0x165ccc;_0x59d576<=_0x12183b;_0x59d576++){const _0x568f51=[];for(let _0x361e8c=_0x3ca7af;_0x361e8c<=_0x444992;_0x361e8c++)_0x568f51[_0x1ef77f(0x175)](this['_worksheet'][_0x1ef77f(0x163)](_0x59d576,_0x361e8c));_0x4365d3[_0x1ef77f(0x175)](_0x568f51);}return _0x4365d3;})({'startRow':0x0,'endRow':this[_0x4ad967(0x181)][_0x4ad967(0x172)](),'startColumn':0x0,'endColumn':this[_0x4ad967(0x181)][_0x4ad967(0x161)]()}),_0x17b372=await _0x30c07d[_0x4ad967(0x179)](_0x4b40e0),_0x25bc99=this[_0x4ad967(0x183)](),_0x191740=[];for(let _0x536bd7=0x0;_0x536bd7<_0x17b372[_0x4ad967(0x185)];_0x536bd7++){const _0x1dec4b=_0x17b372[_0x536bd7],_0x483940=_0x1dec4b[_0x4ad967(0x17c)],_0x6cd60e=[];for(let _0x3ecb08=0x0;_0x3ecb08<_0x483940[_0x4ad967(0x185)];_0x3ecb08++){const _0x4bb749=_0x483940[_0x3ecb08],_0x6c5ca5=F[_0x4ad967(0x16b)](_0x4bb749,_0x25bc99);_0x6c5ca5&&_0x6cd60e[_0x4ad967(0x175)](_0x6c5ca5);}if(_0x6cd60e[_0x4ad967(0x185)]>0x0){if(_0x1dec4b[_0x4ad967(0x17c)]=_0x6cd60e,!(_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x162)]>=_0x25bc99[_0x4ad967(0x162)]&&_0x1dec4b['firstOccurrence'][_0x4ad967(0x162)]<=_0x25bc99[_0x4ad967(0x16f)]&&_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x182)]>=_0x25bc99[_0x4ad967(0x182)]&&_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x182)]<=_0x25bc99[_0x4ad967(0x166)])){const _0x4b0261=_0x6cd60e[0x0],_0x14336b=_0x4b0261['startRow']-_0x1dec4b[_0x4ad967(0x168)][_0x4ad967(0x162)],_0x4ce3a2=_0x4b0261['startColumn']-_0x1dec4b['firstOccurrence']['startColumn'];_0x1dec4b['formula']=await _0x30c07d['moveFormulaRefOffset'](_0x1dec4b[_0x4ad967(0x174)],_0x4ce3a2,_0x14336b),_0x1dec4b[_0x4ad967(0x168)]={'startRow':_0x4b0261['startRow'],'endRow':_0x4b0261['startRow'],'startColumn':_0x4b0261[_0x4ad967(0x182)],'endColumn':_0x4b0261['startColumn']};}_0x191740[_0x4ad967(0x175)](_0x1dec4b);}}return _0x191740;}async[_0x230b81(0x178)](){const _0x5c4dce=_0x230b81;return(await this[_0x5c4dce(0x17b)]())['map'](m[_0x5c4dce(0x16d)]);}}o['FRange'][_0x230b81(0x169)](x);
|