@univerjs-pro/sheets-mcp 0.13.0 → 0.14.0-insiders.20251222-4efcfbb
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/types/tools/conditional-format-tools.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1b7316=_0x288e;(function(_0x5c72d5,_0xa84819){const _0x461d4b=_0x288e,_0x284a05=_0x5c72d5();while(!![]){try{const _0x5943d4=-parseInt(_0x461d4b(0xac))/0x1+parseInt(_0x461d4b(0x97))/0x2*(parseInt(_0x461d4b(0xa1))/0x3)+parseInt(_0x461d4b(0x9a))/0x4+-parseInt(_0x461d4b(0xa0))/0x5*(-parseInt(_0x461d4b(0x99))/0x6)+-parseInt(_0x461d4b(0xa5))/0x7*(-parseInt(_0x461d4b(0xa4))/0x8)+-parseInt(_0x461d4b(0x95))/0x9+-parseInt(_0x461d4b(0xaa))/0xa;if(_0x5943d4===_0xa84819)break;else _0x284a05['push'](_0x284a05['shift']());}catch(_0x32e2ea){_0x284a05['push'](_0x284a05['shift']());}}}(_0x3a35,0x77ce3));import{FUniver as _0x8166f4}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x4a1557,FWorksheet as _0x227184,FRange as _0x463fd3}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x415056,toA1 as _0x441edd}from'@univerjs-pro/sheets-mcp';function _0x3a35(){const _0x2c2236=['29196MOZBcb','startColumn','60itjhHY','3643108oEQDfa','getActiveWorkbook','extend','getMaxRows','length','getAllFormulaUsages','406270ZyZHgb','66GjDozT','getMaxColumns','map','16iEgpRC','1786743rAVgBr','push','getFormulaUsages','startRow','firstOccurrence','8212720NjEHiX','moveFormulaRefOffset','733720EnxGga','formula','_injector','getRange','endColumn','get','getFormulaUsagesAsA1','filledRanges','getCellRaw','_worksheet','endRow','getLintErrors','4583304plMAil','getCellDataGrid'];_0x3a35=function(){return _0x2c2236;};return _0x3a35();}import{getIntersectRange as _0x3a589f}from'@univerjs/core';class p extends _0x8166f4{async['getLintErrors'](){const _0x49c6ca=_0x288e;return this[_0x49c6ca(0x9b)]()[_0x49c6ca(0x94)]();}}_0x8166f4[_0x1b7316(0x9c)](p);class O extends _0x4a1557{async['getLintErrors'](){const _0x57dce9=this['getAllFormulaError'](),_0x301776=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x57dce9,'dataValidationErrors':_0x301776};}}_0x4a1557[_0x1b7316(0x9c)](O);class U extends _0x227184{async['getFormulaUsages'](){const _0x4a209f=_0x1b7316,_0x1196a8=this[_0x4a209f(0xae)][_0x4a209f(0xb1)](_0x415056),_0x33605b=this[_0x4a209f(0xaf)](0x0,0x0,this[_0x4a209f(0x9d)](),this[_0x4a209f(0xa2)]())[_0x4a209f(0x96)]();return await _0x1196a8[_0x4a209f(0x9f)](_0x33605b);}async[_0x1b7316(0xb2)](){const _0x400574=_0x1b7316;return(await this['getFormulaUsages']())[_0x400574(0xa3)](_0x441edd);}}_0x227184['extend'](U);function _0x288e(_0x5bc720,_0x4cf7ec){_0x5bc720=_0x5bc720-0x90;const _0x3a35cd=_0x3a35();let _0x288e06=_0x3a35cd[_0x5bc720];return _0x288e06;}class k extends _0x463fd3{async[_0x1b7316(0xa7)](){const _0x193bbe=_0x1b7316,_0xc15704=this[_0x193bbe(0xae)][_0x193bbe(0xb1)](_0x415056),_0x14896c=(({startRow:_0x27152a,endRow:_0x2475dc,startColumn:_0x3fbd41,endColumn:_0x1e078e})=>{const _0x1ebf71=_0x193bbe,_0x59719d=[];for(let _0x21158d=_0x27152a;_0x21158d<=_0x2475dc;_0x21158d++){const _0x4b3579=[];for(let _0x463bc5=_0x3fbd41;_0x463bc5<=_0x1e078e;_0x463bc5++)_0x4b3579[_0x1ebf71(0xa6)](this[_0x1ebf71(0x92)][_0x1ebf71(0x91)](_0x21158d,_0x463bc5));_0x59719d[_0x1ebf71(0xa6)](_0x4b3579);}return _0x59719d;})({'startRow':0x0,'endRow':this['_worksheet']['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x193bbe(0x92)][_0x193bbe(0xa2)]()}),_0x32e039=await _0xc15704[_0x193bbe(0x9f)](_0x14896c),_0x3b6fc2=this[_0x193bbe(0xaf)](),_0x413f19=[];for(let _0x2fd39e=0x0;_0x2fd39e<_0x32e039[_0x193bbe(0x9e)];_0x2fd39e++){const _0x199b18=_0x32e039[_0x2fd39e],_0xd26c43=_0x199b18[_0x193bbe(0x90)],_0xbd7ad5=[];for(let _0x399965=0x0;_0x399965<_0xd26c43[_0x193bbe(0x9e)];_0x399965++){const _0x4de616=_0xd26c43[_0x399965],_0x1fa2a2=_0x3a589f(_0x4de616,_0x3b6fc2);_0x1fa2a2&&_0xbd7ad5[_0x193bbe(0xa6)](_0x1fa2a2);}if(_0xbd7ad5[_0x193bbe(0x9e)]>0x0){if(_0x199b18['filledRanges']=_0xbd7ad5,!(_0x199b18[_0x193bbe(0xa9)]['startRow']>=_0x3b6fc2[_0x193bbe(0xa8)]&&_0x199b18['firstOccurrence'][_0x193bbe(0xa8)]<=_0x3b6fc2[_0x193bbe(0x93)]&&_0x199b18[_0x193bbe(0xa9)][_0x193bbe(0x98)]>=_0x3b6fc2[_0x193bbe(0x98)]&&_0x199b18[_0x193bbe(0xa9)][_0x193bbe(0x98)]<=_0x3b6fc2[_0x193bbe(0xb0)])){const _0x472200=_0xbd7ad5[0x0],_0x192899=_0x472200[_0x193bbe(0xa8)]-_0x199b18[_0x193bbe(0xa9)][_0x193bbe(0xa8)],_0x11f8af=_0x472200[_0x193bbe(0x98)]-_0x199b18[_0x193bbe(0xa9)][_0x193bbe(0x98)];_0x199b18['formula']=await _0xc15704[_0x193bbe(0xab)](_0x199b18[_0x193bbe(0xad)],_0x11f8af,_0x192899),_0x199b18['firstOccurrence']={'startRow':_0x472200[_0x193bbe(0xa8)],'endRow':_0x472200[_0x193bbe(0xa8)],'startColumn':_0x472200[_0x193bbe(0x98)],'endColumn':_0x472200[_0x193bbe(0x98)]};}_0x413f19[_0x193bbe(0xa6)](_0x199b18);}}return _0x413f19;}async['getFormulaUsagesAsA1'](){const _0x440545=_0x1b7316;return(await this[_0x440545(0xa7)]())[_0x440545(0xa3)](_0x441edd);}}_0x463fd3[_0x1b7316(0x9c)](k);
|