@univerjs-pro/sheets-mcp 0.15.0 → 0.15.1
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/facade/f-range.d.ts +73 -1
- package/lib/types/facade/f-worksheet.d.ts +69 -1
- package/lib/types/index.d.ts +4 -1
- package/lib/types/services/cell-usage-analyzer.service.d.ts +68 -0
- package/lib/types/services/size-analysis.service.d.ts +118 -0
- package/lib/types/services/style-analysis.service.d.ts +93 -0
- package/lib/types/tools/common.d.ts +1 -1
- package/lib/types/tools/conditional-format-tools.d.ts +1 -2
- package/lib/types/tools/data-validation-tools.d.ts +1 -2
- package/lib/types/tools/range-operations.d.ts +1 -2
- package/lib/types/tools/row-column-operations.d.ts +1 -2
- package/lib/types/tools/sheet-management.d.ts +1 -2
- package/lib/types/tools/utility-tools.d.ts +1 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -14
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x11d93d=_0x1c18;(function(_0x52982a,_0x5a5756){const _0x3a3ff3=_0x1c18,_0x1011dd=_0x52982a();while(!![]){try{const _0x366582=parseInt(_0x3a3ff3(0x1e9))/0x1+parseInt(_0x3a3ff3(0x1de))/0x2*(-parseInt(_0x3a3ff3(0x1cf))/0x3)+parseInt(_0x3a3ff3(0x1d9))/0x4+parseInt(_0x3a3ff3(0x1eb))/0x5+-parseInt(_0x3a3ff3(0x1cb))/0x6*(-parseInt(_0x3a3ff3(0x1d6))/0x7)+-parseInt(_0x3a3ff3(0x1d1))/0x8+-parseInt(_0x3a3ff3(0x1e5))/0x9;if(_0x366582===_0x5a5756)break;else _0x1011dd['push'](_0x1011dd['shift']());}catch(_0x3deeaa){_0x1011dd['push'](_0x1011dd['shift']());}}}(_0x3ae5,0x4c26a));import{FUniver as _0x523eee}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x1c18(_0x4fee9c,_0x19cc3d){_0x4fee9c=_0x4fee9c-0x1c5;const _0x3ae57b=_0x3ae5();let _0x1c18cc=_0x3ae57b[_0x4fee9c];return _0x1c18cc;}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x2fce2d,FWorksheet as _0xb35c0b,FRange as _0x15ddc9}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x4fdb85,formulaToA1 as _0x347dac,IStyleUsageAnalyzer as _0x989087,styleToA1 as _0x37db2e,ISizeUsageAnalyzer as _0x39cd43}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x5a5b62}from'@univerjs/core';class z extends _0x523eee{async['getLintErrors'](){const _0x3e83a5=_0x1c18;return this[_0x3e83a5(0x1d2)]()[_0x3e83a5(0x1ce)]();}}_0x523eee[_0x11d93d(0x1c9)](z);class _ extends _0x2fce2d{async[_0x11d93d(0x1ce)](){const _0x37a796=_0x11d93d,_0x1d5569=this[_0x37a796(0x1df)](),_0x2c2c92=await this[_0x37a796(0x1d3)]();return{'formulaErrors':_0x1d5569,'dataValidationErrors':_0x2c2c92};}}_0x2fce2d['extend'](_);class x extends _0xb35c0b{async['getFormulaUsages'](){const _0x42fbc6=_0x11d93d,_0x95c4ba=this[_0x42fbc6(0x1e2)][_0x42fbc6(0x1db)](_0x4fdb85),_0x39e5b9=this[_0x42fbc6(0x1cc)](0x0,0x0,this[_0x42fbc6(0x1dd)](),this[_0x42fbc6(0x1c8)]())[_0x42fbc6(0x1da)]();return await _0x95c4ba[_0x42fbc6(0x1e3)](_0x39e5b9);}async['getFormulaUsagesAsA1'](){const _0x128d69=_0x11d93d;return(await this[_0x128d69(0x1e8)]())[_0x128d69(0x1e4)](_0x347dac);}[_0x11d93d(0x1e0)](_0x49ed99){const _0x4c0f93=_0x11d93d,_0x3abdaf=this[_0x4c0f93(0x1e2)][_0x4c0f93(0x1db)](_0x989087),_0x120a70=this[_0x4c0f93(0x1cc)](0x0,0x0,this['getMaxRows'](),this[_0x4c0f93(0x1c8)]())[_0x4c0f93(0x1da)]();return _0x3abdaf['updateConfig'](_0x49ed99),_0x3abdaf['getAllStyleUsages'](_0x120a70,this[_0x4c0f93(0x1d0)],this[_0x4c0f93(0x1ca)]);}['getStyleUsagesAsA1'](_0x5250ea){const _0xd5a2a1=_0x11d93d;return this[_0xd5a2a1(0x1e0)](_0x5250ea)[_0xd5a2a1(0x1e4)](_0x37db2e);}['getSizeUsages'](_0x392d58){const _0x3ed152=_0x11d93d,_0x61c1c2=this['_injector'][_0x3ed152(0x1db)](_0x39cd43);return _0x61c1c2['updateConfig'](_0x392d58),_0x61c1c2[_0x3ed152(0x1d5)](this[_0x3ed152(0x1ca)]);}['getSizeUsagesAsA1'](_0x81389d){const _0x53d85b=_0x11d93d,_0x312cde=this[_0x53d85b(0x1e2)][_0x53d85b(0x1db)](_0x39cd43);_0x312cde[_0x53d85b(0x1ee)](_0x81389d);const _0x14528f=_0x312cde[_0x53d85b(0x1d5)](this['_worksheet']);return _0x312cde[_0x53d85b(0x1d8)](_0x14528f);}}_0xb35c0b[_0x11d93d(0x1c9)](x);class M extends _0x15ddc9{async['getFormulaUsages'](){const _0x33d75f=_0x11d93d,_0x208230=this['_injector'][_0x33d75f(0x1db)](_0x4fdb85),_0xb13a9=(({startRow:_0x334e7e,endRow:_0xc1bfb9,startColumn:_0x5e48d8,endColumn:_0x5b6d76})=>{const _0xcfafd4=_0x33d75f,_0x5b1d73=[];for(let _0x42b754=_0x334e7e;_0x42b754<=_0xc1bfb9;_0x42b754++){const _0x364a7d=[];for(let _0x3dc3d8=_0x5e48d8;_0x3dc3d8<=_0x5b6d76;_0x3dc3d8++)_0x364a7d['push'](this[_0xcfafd4(0x1ca)][_0xcfafd4(0x1c6)](_0x42b754,_0x3dc3d8));_0x5b1d73[_0xcfafd4(0x1cd)](_0x364a7d);}return _0x5b1d73;})({'startRow':0x0,'endRow':this['_worksheet'][_0x33d75f(0x1dd)](),'startColumn':0x0,'endColumn':this[_0x33d75f(0x1ca)][_0x33d75f(0x1c8)]()}),_0x568e13=await _0x208230[_0x33d75f(0x1e3)](_0xb13a9),_0x444838=this[_0x33d75f(0x1cc)](),_0x82a288=[];for(let _0x12fa3e=0x0;_0x12fa3e<_0x568e13[_0x33d75f(0x1c5)];_0x12fa3e++){const _0x6ac78=_0x568e13[_0x12fa3e],_0x4b2a02=_0x6ac78[_0x33d75f(0x1e6)],_0x4bd241=[];for(let _0x44c047=0x0;_0x44c047<_0x4b2a02['length'];_0x44c047++){const _0x270f8c=_0x4b2a02[_0x44c047],_0x69158a=_0x5a5b62(_0x270f8c,_0x444838);_0x69158a&&_0x4bd241[_0x33d75f(0x1cd)](_0x69158a);}if(_0x4bd241[_0x33d75f(0x1c5)]>0x0){if(_0x6ac78['filledRanges']=_0x4bd241,!(_0x6ac78[_0x33d75f(0x1dc)][_0x33d75f(0x1e7)]>=_0x444838[_0x33d75f(0x1e7)]&&_0x6ac78[_0x33d75f(0x1dc)][_0x33d75f(0x1e7)]<=_0x444838[_0x33d75f(0x1ec)]&&_0x6ac78[_0x33d75f(0x1dc)][_0x33d75f(0x1c7)]>=_0x444838['startColumn']&&_0x6ac78['firstOccurrence'][_0x33d75f(0x1c7)]<=_0x444838['endColumn'])){const _0x5794b0=_0x4bd241[0x0],_0x27e53d=_0x5794b0[_0x33d75f(0x1e7)]-_0x6ac78['firstOccurrence'][_0x33d75f(0x1e7)],_0x39c2ea=_0x5794b0[_0x33d75f(0x1c7)]-_0x6ac78[_0x33d75f(0x1dc)][_0x33d75f(0x1c7)];_0x6ac78['formula']=await _0x208230['moveFormulaRefOffset'](_0x6ac78[_0x33d75f(0x1d4)],_0x39c2ea,_0x27e53d),_0x6ac78[_0x33d75f(0x1dc)]={'startRow':_0x5794b0[_0x33d75f(0x1e7)],'endRow':_0x5794b0[_0x33d75f(0x1e7)],'startColumn':_0x5794b0[_0x33d75f(0x1c7)],'endColumn':_0x5794b0[_0x33d75f(0x1c7)]};}_0x82a288[_0x33d75f(0x1cd)](_0x6ac78);}}return _0x82a288;}async[_0x11d93d(0x1ea)](){return(await this['getFormulaUsages']())['map'](_0x347dac);}[_0x11d93d(0x1e0)](_0x5da94c){const _0x58b1c9=_0x11d93d,_0x2aef03=this[_0x58b1c9(0x1e2)][_0x58b1c9(0x1db)](_0x989087),_0x2b0361=(({startRow:_0x597acd,endRow:_0x5ebcd9,startColumn:_0x3ca624,endColumn:_0x22b02f})=>{const _0x44a584=_0x58b1c9,_0x14bf5d=[];for(let _0x501605=_0x597acd;_0x501605<=_0x5ebcd9;_0x501605++){const _0x229fe5=[];for(let _0x4887d7=_0x3ca624;_0x4887d7<=_0x22b02f;_0x4887d7++)_0x229fe5[_0x44a584(0x1cd)](this[_0x44a584(0x1ca)][_0x44a584(0x1c6)](_0x501605,_0x4887d7));_0x14bf5d['push'](_0x229fe5);}return _0x14bf5d;})({'startRow':0x0,'endRow':this[_0x58b1c9(0x1ca)][_0x58b1c9(0x1dd)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x58b1c9(0x1c8)]()});_0x2aef03[_0x58b1c9(0x1ee)](_0x5da94c);const _0x4acb4e=_0x2aef03['getAllStyleUsages'](_0x2b0361,this[_0x58b1c9(0x1d0)],this['_worksheet']),_0x2d8b2e=this['getRange'](),_0x304c80=[];for(let _0x5bfb61=0x0;_0x5bfb61<_0x4acb4e[_0x58b1c9(0x1c5)];_0x5bfb61++){const _0x26d426=_0x4acb4e[_0x5bfb61],_0x181992=_0x26d426[_0x58b1c9(0x1e6)],_0x404941=[];for(let _0x8df052=0x0;_0x8df052<_0x181992[_0x58b1c9(0x1c5)];_0x8df052++){const _0x18e5d5=_0x181992[_0x8df052],_0xe97d51=_0x5a5b62(_0x18e5d5,_0x2d8b2e);_0xe97d51&&_0x404941['push'](_0xe97d51);}_0x404941[_0x58b1c9(0x1c5)]>0x0&&(_0x26d426[_0x58b1c9(0x1e6)]=_0x404941,_0x304c80[_0x58b1c9(0x1cd)](_0x26d426));}return _0x304c80;}[_0x11d93d(0x1ed)](_0xe9bf5a){const _0xcbb66c=_0x11d93d;return this['getStyleUsages'](_0xe9bf5a)[_0xcbb66c(0x1e4)](_0x37db2e);}['getSizeUsages'](_0x488d70){const _0x397bf7=_0x11d93d,_0x5f1096=this[_0x397bf7(0x1e2)]['get'](_0x39cd43),_0x58801f=this[_0x397bf7(0x1cc)]();return _0x5f1096[_0x397bf7(0x1ee)](_0x488d70),_0x5f1096['getAllSizeUsages'](this[_0x397bf7(0x1ca)],_0x58801f[_0x397bf7(0x1e7)],_0x58801f[_0x397bf7(0x1ec)],_0x58801f[_0x397bf7(0x1c7)],_0x58801f[_0x397bf7(0x1e1)]);}['getSizeUsagesAsA1'](_0x23ab81){const _0x52cde8=_0x11d93d,_0x55d852=this[_0x52cde8(0x1d7)](_0x23ab81);return this['_injector'][_0x52cde8(0x1db)](_0x39cd43)[_0x52cde8(0x1d8)](_0x55d852);}}_0x15ddc9[_0x11d93d(0x1c9)](M);function _0x3ae5(){const _0x5c7c57=['getStyleUsagesAsA1','updateConfig','length','getCellRaw','startColumn','getMaxColumns','extend','_worksheet','300WpuyJA','getRange','push','getLintErrors','3cMHjaF','_workbook','1746256DoKtsp','getActiveWorkbook','getAllDataValidationErrorAsync','formula','getAllSizeUsages','77798OsaPcf','getSizeUsages','toA1','1000760GpEFNF','getCellDataGrid','get','firstOccurrence','getMaxRows','969506hugfbH','getAllFormulaError','getStyleUsages','endColumn','_injector','getAllFormulaUsages','map','5751270RYWhPc','filledRanges','startRow','getFormulaUsages','352544ecrgBA','getFormulaUsagesAsA1','2477725odtfxj','endRow'];_0x3ae5=function(){return _0x5c7c57;};return _0x3ae5();}
|