@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/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c34da=_0x1045;(function(_0x4a6035,_0x22451a){const _0x1c9df6=_0x1045,_0x4a69cc=_0x4a6035();while(!![]){try{const _0xabc838=parseInt(_0x1c9df6(0x14e))/0x1+parseInt(_0x1c9df6(0x14d))/0x2*(parseInt(_0x1c9df6(0x15a))/0x3)+-parseInt(_0x1c9df6(0x157))/0x4+parseInt(_0x1c9df6(0x152))/0x5*(parseInt(_0x1c9df6(0x161))/0x6)+parseInt(_0x1c9df6(0x15d))/0x7+parseInt(_0x1c9df6(0x147))/0x8+-parseInt(_0x1c9df6(0x163))/0x9;if(_0xabc838===_0x22451a)break;else _0x4a69cc['push'](_0x4a69cc['shift']());}catch(_0x593dbb){_0x4a69cc['push'](_0x4a69cc['shift']());}}}(_0x4ac9,0xa6c9e));import{FUniver as _0x339c92}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x1045(_0x5bc19e,_0x52e655){_0x5bc19e=_0x5bc19e-0x146;const _0x4ac915=_0x4ac9();let _0x10458b=_0x4ac915[_0x5bc19e];return _0x10458b;}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0xe09b46,FWorksheet as _0x1494f8,FRange as _0x111bce}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x3b6c87,toA1 as _0x42f5ab}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x24b435}from'@univerjs/core';class p extends _0x339c92{async[_0x1c34da(0x14c)](){const _0x2f958d=_0x1c34da;return this['getActiveWorkbook']()[_0x2f958d(0x14c)]();}}_0x339c92[_0x1c34da(0x162)](p);class O extends _0xe09b46{async[_0x1c34da(0x14c)](){const _0xe8de2=_0x1c34da,_0x3a5dbd=this['getAllFormulaError'](),_0xb9cff6=await this[_0xe8de2(0x15b)]();return{'formulaErrors':_0x3a5dbd,'dataValidationErrors':_0xb9cff6};}}_0xe09b46[_0x1c34da(0x162)](O);class U extends _0x1494f8{async[_0x1c34da(0x14b)](){const _0x1dd209=_0x1c34da,_0x32f622=this[_0x1dd209(0x155)]['get'](_0x3b6c87),_0x21dfec=this['getRange'](0x0,0x0,this['getMaxRows']()+0x1,this[_0x1dd209(0x14f)]()+0x1)['getCellDataGrid']();return await _0x32f622[_0x1dd209(0x146)](_0x21dfec);}async['getFormulaUsagesAsA1'](){const _0xf6cff4=_0x1c34da;return(await this[_0xf6cff4(0x14b)]())['map'](_0x42f5ab);}}_0x1494f8[_0x1c34da(0x162)](U);class k extends _0x111bce{async[_0x1c34da(0x14b)](){const _0x254e28=_0x1c34da,_0x5e17cf=this['_injector']['get'](_0x3b6c87),_0x16fe19=(({startRow:_0x564354,endRow:_0xb16f02,startColumn:_0x395879,endColumn:_0x51626f})=>{const _0x4b6b2a=_0x1045,_0x2a0094=[];for(let _0x143ece=_0x564354;_0x143ece<=_0xb16f02;_0x143ece++){const _0x38425d=[];for(let _0x2681d1=_0x395879;_0x2681d1<=_0x51626f;_0x2681d1++)_0x38425d[_0x4b6b2a(0x153)](this[_0x4b6b2a(0x148)][_0x4b6b2a(0x15c)](_0x143ece,_0x2681d1));_0x2a0094[_0x4b6b2a(0x153)](_0x38425d);}return _0x2a0094;})({'startRow':0x0,'endRow':this[_0x254e28(0x148)][_0x254e28(0x150)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x254e28(0x14f)]()}),_0x1864cb=await _0x5e17cf[_0x254e28(0x146)](_0x16fe19),_0x293ceb=this[_0x254e28(0x151)](),_0x1e7ed4=[];for(let _0xe3e611=0x0;_0xe3e611<_0x1864cb[_0x254e28(0x15f)];_0xe3e611++){const _0x5c4026=_0x1864cb[_0xe3e611],_0xff3c5d=_0x5c4026['filledRanges'],_0x47911e=[];for(let _0x1fd9fb=0x0;_0x1fd9fb<_0xff3c5d['length'];_0x1fd9fb++){const _0x44fb6c=_0xff3c5d[_0x1fd9fb],_0x59e129=_0x24b435(_0x44fb6c,_0x293ceb);_0x59e129&&_0x47911e[_0x254e28(0x153)](_0x59e129);}if(_0x47911e['length']>0x0){if(_0x5c4026['filledRanges']=_0x47911e,!(_0x5c4026['firstOccurrence'][_0x254e28(0x154)]>=_0x293ceb[_0x254e28(0x154)]&&_0x5c4026[_0x254e28(0x158)][_0x254e28(0x154)]<=_0x293ceb[_0x254e28(0x156)]&&_0x5c4026[_0x254e28(0x158)][_0x254e28(0x160)]>=_0x293ceb[_0x254e28(0x160)]&&_0x5c4026[_0x254e28(0x158)][_0x254e28(0x160)]<=_0x293ceb[_0x254e28(0x14a)])){const _0x330065=_0x47911e[0x0],_0x4d3420=_0x330065[_0x254e28(0x154)]-_0x5c4026['firstOccurrence'][_0x254e28(0x154)],_0x46d594=_0x330065[_0x254e28(0x160)]-_0x5c4026['firstOccurrence']['startColumn'];_0x5c4026[_0x254e28(0x149)]=await _0x5e17cf[_0x254e28(0x15e)](_0x5c4026[_0x254e28(0x149)],_0x46d594,_0x4d3420),_0x5c4026['firstOccurrence']={'startRow':_0x330065[_0x254e28(0x154)],'endRow':_0x330065[_0x254e28(0x154)],'startColumn':_0x330065[_0x254e28(0x160)],'endColumn':_0x330065[_0x254e28(0x160)]};}_0x1e7ed4[_0x254e28(0x153)](_0x5c4026);}}return _0x1e7ed4;}async['getFormulaUsagesAsA1'](){const _0x5a3281=_0x1c34da;return(await this['getFormulaUsages']())[_0x5a3281(0x159)](_0x42f5ab);}}_0x111bce[_0x1c34da(0x162)](k);function _0x4ac9(){const _0x13e898=['endRow','5066672zIZJFG','firstOccurrence','map','970689EOZIcC','getAllDataValidationErrorAsync','getCellRaw','1291633kbgKeC','moveFormulaRefOffset','length','startColumn','1956nmFMme','extend','9909711VnEnWo','getAllFormulaUsages','9482424pwBRqI','_worksheet','formula','endColumn','getFormulaUsages','getLintErrors','2kQMJQP','1212132ggCKvk','getMaxColumns','getMaxRows','getRange','2230JyDdcQ','push','startRow','_injector'];_0x4ac9=function(){return _0x13e898;};return _0x4ac9();}
|