@univerjs-pro/sheets-mcp 0.15.0 → 0.15.1-insiders.20260117-8ce4a01
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/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x27780f=_0x1b04;(function(_0x1ef2bb,_0x4d2f70){const _0x3e83b9=_0x1b04,_0xf65619=_0x1ef2bb();while(!![]){try{const _0x56f660=parseInt(_0x3e83b9(0x1c0))/0x1+parseInt(_0x3e83b9(0x1bb))/0x2+-parseInt(_0x3e83b9(0x1b6))/0x3+parseInt(_0x3e83b9(0x1be))/0x4*(-parseInt(_0x3e83b9(0x1aa))/0x5)+parseInt(_0x3e83b9(0x1d2))/0x6*(parseInt(_0x3e83b9(0x1a6))/0x7)+-parseInt(_0x3e83b9(0x1a9))/0x8*(parseInt(_0x3e83b9(0x1ab))/0x9)+parseInt(_0x3e83b9(0x1ba))/0xa*(parseInt(_0x3e83b9(0x1bd))/0xb);if(_0x56f660===_0x4d2f70)break;else _0xf65619['push'](_0xf65619['shift']());}catch(_0x5a7230){_0xf65619['push'](_0xf65619['shift']());}}}(_0x2c2c,0x1a366));const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');class y extends U[_0x27780f(0x1c6)]{async['getLintErrors'](){const _0x4ce404=_0x27780f;return this[_0x4ce404(0x1c2)]()['getLintErrors']();}}function _0x1b04(_0x5c7236,_0x78a9e6){_0x5c7236=_0x5c7236-0x1a2;const _0x2c2cc4=_0x2c2c();let _0x1b04ca=_0x2c2cc4[_0x5c7236];return _0x1b04ca;}U['FUniver'][_0x27780f(0x1b9)](y);class C extends f[_0x27780f(0x1da)]{async[_0x27780f(0x1ae)](){const _0x4d5086=_0x27780f,_0x2fc77a=this[_0x4d5086(0x1cc)](),_0x16d7a5=await this[_0x4d5086(0x1cf)]();return{'formulaErrors':_0x2fc77a,'dataValidationErrors':_0x16d7a5};}}f[_0x27780f(0x1da)][_0x27780f(0x1b9)](C);class z extends f[_0x27780f(0x1d9)]{async[_0x27780f(0x1d0)](){const _0x3f37bf=_0x27780f,_0x23fe59=this['_injector'][_0x3f37bf(0x1bc)](g['IFormulaUsageAnalyzer']),_0x4591db=this[_0x3f37bf(0x1a3)](0x0,0x0,this[_0x3f37bf(0x1ca)](),this[_0x3f37bf(0x1b1)]())[_0x3f37bf(0x1b0)]();return await _0x23fe59[_0x3f37bf(0x1b3)](_0x4591db);}async[_0x27780f(0x1af)](){const _0x245f33=_0x27780f;return(await this[_0x245f33(0x1d0)]())[_0x245f33(0x1d4)](g[_0x245f33(0x1c8)]);}[_0x27780f(0x1cd)](_0x1cb67b){const _0x4ce57a=_0x27780f,_0x3199ea=this[_0x4ce57a(0x1a7)][_0x4ce57a(0x1bc)](g[_0x4ce57a(0x1a4)]),_0x360ef7=this['getRange'](0x0,0x0,this[_0x4ce57a(0x1ca)](),this[_0x4ce57a(0x1b1)]())[_0x4ce57a(0x1b0)]();return _0x3199ea[_0x4ce57a(0x1c7)](_0x1cb67b),_0x3199ea['getAllStyleUsages'](_0x360ef7,this['_workbook'],this['_worksheet']);}[_0x27780f(0x1a8)](_0x16d6e0){const _0x57c17b=_0x27780f;return this['getStyleUsages'](_0x16d6e0)[_0x57c17b(0x1d4)](g[_0x57c17b(0x1b4)]);}['getSizeUsages'](_0x3451f8){const _0x2720b9=_0x27780f,_0x578e8d=this[_0x2720b9(0x1a7)][_0x2720b9(0x1bc)](g['ISizeUsageAnalyzer']);return _0x578e8d[_0x2720b9(0x1c7)](_0x3451f8),_0x578e8d[_0x2720b9(0x1d5)](this[_0x2720b9(0x1b5)]);}[_0x27780f(0x1a5)](_0x4f9c9d){const _0x1fec7e=_0x27780f,_0x38190a=this['_injector'][_0x1fec7e(0x1bc)](g[_0x1fec7e(0x1c5)]);_0x38190a[_0x1fec7e(0x1c7)](_0x4f9c9d);const _0x10397f=_0x38190a[_0x1fec7e(0x1d5)](this[_0x1fec7e(0x1b5)]);return _0x38190a[_0x1fec7e(0x1c3)](_0x10397f);}}f[_0x27780f(0x1d9)][_0x27780f(0x1b9)](z);function _0x2c2c(){const _0x43f441=['getMaxColumns','filledRanges','getAllFormulaUsages','styleToA1','_worksheet','595947HcsAeP','firstOccurrence','IFormulaUsageAnalyzer','extend','92090DojeYN','107004UxnVGZ','get','363YxPBRh','4osjRUH','getCellRaw','79181WCWlUi','getIntersectRange','getActiveWorkbook','toA1','endColumn','ISizeUsageAnalyzer','FUniver','updateConfig','formulaToA1','startColumn','getMaxRows','getAllStyleUsages','getAllFormulaError','getStyleUsages','length','getAllDataValidationErrorAsync','getFormulaUsages','getSizeUsages','6ZYmAmW','FRange','map','getAllSizeUsages','moveFormulaRefOffset','formula','endRow','FWorksheet','FWorkbook','_workbook','getRange','IStyleUsageAnalyzer','getSizeUsagesAsA1','519267yZscza','_injector','getStyleUsagesAsA1','31672TlftlK','14185tUCFRf','459EbhrTo','push','startRow','getLintErrors','getFormulaUsagesAsA1','getCellDataGrid'];_0x2c2c=function(){return _0x43f441;};return _0x2c2c();}class S extends f[_0x27780f(0x1d3)]{async[_0x27780f(0x1d0)](){const _0x3086e1=_0x27780f,_0x108997=this[_0x3086e1(0x1a7)][_0x3086e1(0x1bc)](g[_0x3086e1(0x1b8)]),_0x5bbabd=(({startRow:_0x2d3f05,endRow:_0xf0b2bd,startColumn:_0x47cfeb,endColumn:_0x57486a})=>{const _0x443f63=_0x3086e1,_0x2c7d6c=[];for(let _0x50fcd1=_0x2d3f05;_0x50fcd1<=_0xf0b2bd;_0x50fcd1++){const _0x4ab0db=[];for(let _0x162bff=_0x47cfeb;_0x162bff<=_0x57486a;_0x162bff++)_0x4ab0db['push'](this[_0x443f63(0x1b5)][_0x443f63(0x1bf)](_0x50fcd1,_0x162bff));_0x2c7d6c[_0x443f63(0x1ac)](_0x4ab0db);}return _0x2c7d6c;})({'startRow':0x0,'endRow':this[_0x3086e1(0x1b5)][_0x3086e1(0x1ca)](),'startColumn':0x0,'endColumn':this[_0x3086e1(0x1b5)]['getMaxColumns']()}),_0x444d6d=await _0x108997[_0x3086e1(0x1b3)](_0x5bbabd),_0x9f7e6e=this[_0x3086e1(0x1a3)](),_0x21d788=[];for(let _0x49f9e2=0x0;_0x49f9e2<_0x444d6d['length'];_0x49f9e2++){const _0x1ab66e=_0x444d6d[_0x49f9e2],_0x38b060=_0x1ab66e[_0x3086e1(0x1b2)],_0x19562d=[];for(let _0x53166e=0x0;_0x53166e<_0x38b060[_0x3086e1(0x1ce)];_0x53166e++){const _0x167596=_0x38b060[_0x53166e],_0xb1d65b=m['getIntersectRange'](_0x167596,_0x9f7e6e);_0xb1d65b&&_0x19562d[_0x3086e1(0x1ac)](_0xb1d65b);}if(_0x19562d['length']>0x0){if(_0x1ab66e[_0x3086e1(0x1b2)]=_0x19562d,!(_0x1ab66e[_0x3086e1(0x1b7)][_0x3086e1(0x1ad)]>=_0x9f7e6e[_0x3086e1(0x1ad)]&&_0x1ab66e[_0x3086e1(0x1b7)][_0x3086e1(0x1ad)]<=_0x9f7e6e[_0x3086e1(0x1d8)]&&_0x1ab66e[_0x3086e1(0x1b7)]['startColumn']>=_0x9f7e6e[_0x3086e1(0x1c9)]&&_0x1ab66e[_0x3086e1(0x1b7)][_0x3086e1(0x1c9)]<=_0x9f7e6e[_0x3086e1(0x1c4)])){const _0x2c464b=_0x19562d[0x0],_0x4c9f7f=_0x2c464b[_0x3086e1(0x1ad)]-_0x1ab66e['firstOccurrence'][_0x3086e1(0x1ad)],_0x43934d=_0x2c464b['startColumn']-_0x1ab66e['firstOccurrence'][_0x3086e1(0x1c9)];_0x1ab66e[_0x3086e1(0x1d7)]=await _0x108997[_0x3086e1(0x1d6)](_0x1ab66e[_0x3086e1(0x1d7)],_0x43934d,_0x4c9f7f),_0x1ab66e[_0x3086e1(0x1b7)]={'startRow':_0x2c464b[_0x3086e1(0x1ad)],'endRow':_0x2c464b[_0x3086e1(0x1ad)],'startColumn':_0x2c464b['startColumn'],'endColumn':_0x2c464b['startColumn']};}_0x21d788[_0x3086e1(0x1ac)](_0x1ab66e);}}return _0x21d788;}async[_0x27780f(0x1af)](){const _0x4302b3=_0x27780f;return(await this[_0x4302b3(0x1d0)]())[_0x4302b3(0x1d4)](g[_0x4302b3(0x1c8)]);}[_0x27780f(0x1cd)](_0x1cde78){const _0xb6e26e=_0x27780f,_0x369216=this[_0xb6e26e(0x1a7)][_0xb6e26e(0x1bc)](g[_0xb6e26e(0x1a4)]),_0x232594=(({startRow:_0x49adbc,endRow:_0x29b11b,startColumn:_0x37daf0,endColumn:_0x460b31})=>{const _0x40f479=_0xb6e26e,_0x3759df=[];for(let _0x368036=_0x49adbc;_0x368036<=_0x29b11b;_0x368036++){const _0x56ea3e=[];for(let _0x1774e2=_0x37daf0;_0x1774e2<=_0x460b31;_0x1774e2++)_0x56ea3e['push'](this[_0x40f479(0x1b5)][_0x40f479(0x1bf)](_0x368036,_0x1774e2));_0x3759df[_0x40f479(0x1ac)](_0x56ea3e);}return _0x3759df;})({'startRow':0x0,'endRow':this[_0xb6e26e(0x1b5)][_0xb6e26e(0x1ca)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0xb6e26e(0x1b1)]()});_0x369216[_0xb6e26e(0x1c7)](_0x1cde78);const _0x425b38=_0x369216[_0xb6e26e(0x1cb)](_0x232594,this[_0xb6e26e(0x1a2)],this['_worksheet']),_0x44623e=this[_0xb6e26e(0x1a3)](),_0x3ccc37=[];for(let _0x1d7091=0x0;_0x1d7091<_0x425b38[_0xb6e26e(0x1ce)];_0x1d7091++){const _0x551ee7=_0x425b38[_0x1d7091],_0x101058=_0x551ee7[_0xb6e26e(0x1b2)],_0x317a3e=[];for(let _0x1276ea=0x0;_0x1276ea<_0x101058['length'];_0x1276ea++){const _0x575421=_0x101058[_0x1276ea],_0x3b2479=m[_0xb6e26e(0x1c1)](_0x575421,_0x44623e);_0x3b2479&&_0x317a3e[_0xb6e26e(0x1ac)](_0x3b2479);}_0x317a3e[_0xb6e26e(0x1ce)]>0x0&&(_0x551ee7[_0xb6e26e(0x1b2)]=_0x317a3e,_0x3ccc37[_0xb6e26e(0x1ac)](_0x551ee7));}return _0x3ccc37;}[_0x27780f(0x1a8)](_0x48e21f){const _0x2f506c=_0x27780f;return this[_0x2f506c(0x1cd)](_0x48e21f)['map'](g[_0x2f506c(0x1b4)]);}[_0x27780f(0x1d1)](_0x4e0bc7){const _0x1bdabb=_0x27780f,_0x129da7=this[_0x1bdabb(0x1a7)]['get'](g[_0x1bdabb(0x1c5)]),_0x10e7ad=this[_0x1bdabb(0x1a3)]();return _0x129da7[_0x1bdabb(0x1c7)](_0x4e0bc7),_0x129da7[_0x1bdabb(0x1d5)](this[_0x1bdabb(0x1b5)],_0x10e7ad[_0x1bdabb(0x1ad)],_0x10e7ad[_0x1bdabb(0x1d8)],_0x10e7ad[_0x1bdabb(0x1c9)],_0x10e7ad['endColumn']);}[_0x27780f(0x1a5)](_0x1c387b){const _0x825bda=_0x27780f,_0x49b499=this[_0x825bda(0x1d1)](_0x1c387b);return this[_0x825bda(0x1a7)]['get'](g[_0x825bda(0x1c5)])['toA1'](_0x49b499);}}f[_0x27780f(0x1d3)][_0x27780f(0x1b9)](S);
|