@univerjs-pro/sheets-mcp 0.12.4 → 0.13.0
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 +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e9252=_0x170f;(function(_0x584aaf,_0x5da2fa){const _0x307baf=_0x170f,_0x17e6fd=_0x584aaf();while(!![]){try{const _0x3c73f5=-parseInt(_0x307baf(0x169))/0x1*(-parseInt(_0x307baf(0x171))/0x2)+-parseInt(_0x307baf(0x188))/0x3+parseInt(_0x307baf(0x186))/0x4*(-parseInt(_0x307baf(0x181))/0x5)+parseInt(_0x307baf(0x176))/0x6*(-parseInt(_0x307baf(0x17d))/0x7)+-parseInt(_0x307baf(0x18a))/0x8+-parseInt(_0x307baf(0x184))/0x9*(parseInt(_0x307baf(0x17f))/0xa)+-parseInt(_0x307baf(0x168))/0xb*(-parseInt(_0x307baf(0x166))/0xc);if(_0x3c73f5===_0x5da2fa)break;else _0x17e6fd['push'](_0x17e6fd['shift']());}catch(_0x1f0039){_0x17e6fd['push'](_0x17e6fd['shift']());}}}(_0xff29,0x36a14));function _0xff29(){const _0x347338=['map','374DixhDj','2155JHQUaa','FUniver','getRange','getMaxRows','FWorksheet','startColumn','FWorkbook','endColumn','270GqeplG','getFormulaUsagesAsA1','formula','getMaxColumns','push','24Lqsozl','getAllFormulaUsages','getCellRaw','IFormulaUsageAnalyzer','length','filledRanges','firstOccurrence','202979eaPexb','extend','10GRtDcw','FRange','8255ZgMIlD','getFormulaUsages','getLintErrors','314613ynnbAG','get','592oKEKxm','_injector','643788hzhxZc','_worksheet','55056KetoDv','startRow','toA1','endRow','193980zNUpej'];_0xff29=function(){return _0x347338;};return _0xff29();}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[_0x2e9252(0x16a)]{async[_0x2e9252(0x183)](){return this['getActiveWorkbook']()['getLintErrors']();}}d[_0x2e9252(0x16a)]['extend'](C);class A extends o['FWorkbook']{async[_0x2e9252(0x183)](){const _0x424811=this['getAllFormulaError'](),_0xbb4a88=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x424811,'dataValidationErrors':_0xbb4a88};}}o[_0x2e9252(0x16f)]['extend'](A);class k extends o[_0x2e9252(0x16d)]{async['getFormulaUsages'](){const _0x420014=_0x2e9252,_0x568ff0=this[_0x420014(0x187)][_0x420014(0x185)](m[_0x420014(0x179)]),_0x1ccaf8=this[_0x420014(0x16b)](0x0,0x0,this[_0x420014(0x16c)]()+0x1,this[_0x420014(0x174)]()+0x1)['getCellDataGrid']();return await _0x568ff0[_0x420014(0x177)](_0x1ccaf8);}async[_0x2e9252(0x172)](){const _0x1304f9=_0x2e9252;return(await this[_0x1304f9(0x182)]())[_0x1304f9(0x167)](m['toA1']);}}o[_0x2e9252(0x16d)][_0x2e9252(0x17e)](k);class x extends o[_0x2e9252(0x180)]{async[_0x2e9252(0x182)](){const _0x49627b=_0x2e9252,_0x1b4096=this[_0x49627b(0x187)][_0x49627b(0x185)](m[_0x49627b(0x179)]),_0x1ccbb3=(({startRow:_0x53031c,endRow:_0x281e00,startColumn:_0x32fd6d,endColumn:_0x4ce0f2})=>{const _0x56a809=_0x49627b,_0x1903d7=[];for(let _0x217c79=_0x53031c;_0x217c79<=_0x281e00;_0x217c79++){const _0x8dd6b2=[];for(let _0x5c7349=_0x32fd6d;_0x5c7349<=_0x4ce0f2;_0x5c7349++)_0x8dd6b2['push'](this[_0x56a809(0x189)][_0x56a809(0x178)](_0x217c79,_0x5c7349));_0x1903d7[_0x56a809(0x175)](_0x8dd6b2);}return _0x1903d7;})({'startRow':0x0,'endRow':this[_0x49627b(0x189)][_0x49627b(0x16c)](),'startColumn':0x0,'endColumn':this[_0x49627b(0x189)][_0x49627b(0x174)]()}),_0x32b61a=await _0x1b4096['getAllFormulaUsages'](_0x1ccbb3),_0x5de339=this[_0x49627b(0x16b)](),_0x53df68=[];for(let _0x32a8c9=0x0;_0x32a8c9<_0x32b61a['length'];_0x32a8c9++){const _0xe16eed=_0x32b61a[_0x32a8c9],_0x4edcab=_0xe16eed[_0x49627b(0x17b)],_0x2612b3=[];for(let _0x17ca1b=0x0;_0x17ca1b<_0x4edcab[_0x49627b(0x17a)];_0x17ca1b++){const _0x5746a3=_0x4edcab[_0x17ca1b],_0x327075=F['getIntersectRange'](_0x5746a3,_0x5de339);_0x327075&&_0x2612b3[_0x49627b(0x175)](_0x327075);}if(_0x2612b3['length']>0x0){if(_0xe16eed[_0x49627b(0x17b)]=_0x2612b3,!(_0xe16eed[_0x49627b(0x17c)][_0x49627b(0x18b)]>=_0x5de339['startRow']&&_0xe16eed[_0x49627b(0x17c)][_0x49627b(0x18b)]<=_0x5de339[_0x49627b(0x165)]&&_0xe16eed[_0x49627b(0x17c)][_0x49627b(0x16e)]>=_0x5de339[_0x49627b(0x16e)]&&_0xe16eed[_0x49627b(0x17c)][_0x49627b(0x16e)]<=_0x5de339[_0x49627b(0x170)])){const _0x589641=_0x2612b3[0x0],_0x6238cc=_0x589641[_0x49627b(0x18b)]-_0xe16eed[_0x49627b(0x17c)][_0x49627b(0x18b)],_0x2c1a97=_0x589641[_0x49627b(0x16e)]-_0xe16eed['firstOccurrence'][_0x49627b(0x16e)];_0xe16eed[_0x49627b(0x173)]=await _0x1b4096['moveFormulaRefOffset'](_0xe16eed[_0x49627b(0x173)],_0x2c1a97,_0x6238cc),_0xe16eed[_0x49627b(0x17c)]={'startRow':_0x589641['startRow'],'endRow':_0x589641['startRow'],'startColumn':_0x589641['startColumn'],'endColumn':_0x589641[_0x49627b(0x16e)]};}_0x53df68[_0x49627b(0x175)](_0xe16eed);}}return _0x53df68;}async[_0x2e9252(0x172)](){const _0x283643=_0x2e9252;return(await this[_0x283643(0x182)]())[_0x283643(0x167)](m[_0x283643(0x18c)]);}}function _0x170f(_0x819185,_0x4f7e48){_0x819185=_0x819185-0x165;const _0xff2903=_0xff29();let _0x170fa7=_0xff2903[_0x819185];return _0x170fa7;}o['FRange'][_0x2e9252(0x17e)](x);
|