@univerjs-pro/sheets-mcp 0.12.1 → 0.12.2-experimental.20251201-5b27b55
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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1b2f68=_0x1b6b;(function(_0x571124,_0x1276fb){const _0x4a83de=_0x1b6b,_0x2e23ba=_0x571124();while(!![]){try{const _0x2497ea=-parseInt(_0x4a83de(0x17b))/0x1*(-parseInt(_0x4a83de(0x171))/0x2)+parseInt(_0x4a83de(0x180))/0x3+parseInt(_0x4a83de(0x189))/0x4*(-parseInt(_0x4a83de(0x16e))/0x5)+-parseInt(_0x4a83de(0x175))/0x6*(-parseInt(_0x4a83de(0x183))/0x7)+parseInt(_0x4a83de(0x187))/0x8+-parseInt(_0x4a83de(0x18f))/0x9*(-parseInt(_0x4a83de(0x179))/0xa)+-parseInt(_0x4a83de(0x173))/0xb;if(_0x2497ea===_0x1276fb)break;else _0x2e23ba['push'](_0x2e23ba['shift']());}catch(_0x1b3da4){_0x2e23ba['push'](_0x2e23ba['shift']());}}}(_0x23d1,0x57b4f));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),c=require('@univerjs-pro/sheets-mcp'),w=require('@univerjs/core');class A extends d[_0x1b2f68(0x193)]{async['getLintErrors'](){const _0x14baad=_0x1b2f68;return this['getActiveWorkbook']()[_0x14baad(0x17a)]();}}function _0x1b6b(_0x494d1e,_0x1c5024){const _0x23d138=_0x23d1();return _0x1b6b=function(_0x1b6b38,_0x3c720d){_0x1b6b38=_0x1b6b38-0x16e;let _0x36d5ce=_0x23d138[_0x1b6b38];return _0x36d5ce;},_0x1b6b(_0x494d1e,_0x1c5024);}function _0x23d1(){const _0x5c039b=['FWorkbook','IFormulaUsageAnalyzer','getMaxRows','filledRanges','getFormulaUsagesAsA1','477itWylx','FWorksheet','getMaxColumns','_worksheet','FUniver','5rOnMlh','startColumn','getAllFormulaError','766828eGFYNR','toA1','5770204XDlTmn','getIntersectRange','648IrhNTd','push','FRange','length','6190lEvabB','getLintErrors','1lVZUUC','getRange','getFormulaUsages','getCellDataGrid','get','1339887fakkdG','formula','extend','3122PzTxRE','moveFormulaRefOffset','getAllFormulaUsages','_injector','4195792rIpEdv','startRow','2206724ILJPHN'];_0x23d1=function(){return _0x5c039b;};return _0x23d1();}d[_0x1b2f68(0x193)][_0x1b2f68(0x182)](A);class x extends o['FWorkbook']{async[_0x1b2f68(0x17a)](){const _0x535b64=_0x1b2f68,_0x1a74d1=this[_0x535b64(0x170)](),_0x2c7d08=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x1a74d1,'dataValidationErrors':_0x2c7d08};}}o[_0x1b2f68(0x18a)][_0x1b2f68(0x182)](x);class k extends o[_0x1b2f68(0x190)]{async[_0x1b2f68(0x17d)](){const _0x4f1cf9=_0x1b2f68,_0x2d8084=this[_0x4f1cf9(0x186)][_0x4f1cf9(0x17f)](c[_0x4f1cf9(0x18b)]),_0x4245ee=this[_0x4f1cf9(0x17c)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x4f1cf9(0x17e)]();return await _0x2d8084[_0x4f1cf9(0x185)](_0x4245ee);}async[_0x1b2f68(0x18e)](){const _0x88a43b=_0x1b2f68;return(await this[_0x88a43b(0x17d)]())['map'](c[_0x88a43b(0x172)]);}}o[_0x1b2f68(0x190)][_0x1b2f68(0x182)](k);class U extends o['FRange']{async['getFormulaUsages'](){const _0x3eb111=_0x1b2f68,_0xd7ceb6=this[_0x3eb111(0x186)][_0x3eb111(0x17f)](c['IFormulaUsageAnalyzer']),_0x59bc60=(({startRow:_0x52c469,endRow:_0x7df01d,startColumn:_0x49bd8f,endColumn:_0x461e0b})=>{const _0x533531=_0x3eb111,_0x5d6f0c=[];for(let _0x5e68be=_0x52c469;_0x5e68be<=_0x7df01d;_0x5e68be++){const _0x200e3c=[];for(let _0x21cc37=_0x49bd8f;_0x21cc37<=_0x461e0b;_0x21cc37++)_0x200e3c['push'](this[_0x533531(0x192)]['getCellRaw'](_0x5e68be,_0x21cc37));_0x5d6f0c['push'](_0x200e3c);}return _0x5d6f0c;})({'startRow':0x0,'endRow':this['_worksheet'][_0x3eb111(0x18c)](),'startColumn':0x0,'endColumn':this[_0x3eb111(0x192)][_0x3eb111(0x191)]()}),_0x445113=await _0xd7ceb6[_0x3eb111(0x185)](_0x59bc60),_0x19fac2=this['getRange'](),_0x54aa0f=[];for(let _0x5c25d8=0x0;_0x5c25d8<_0x445113['length'];_0x5c25d8++){const _0x13fcfd=_0x445113[_0x5c25d8],_0x509769=_0x13fcfd[_0x3eb111(0x18d)],_0x5327ef=[];for(let _0x46e4fd=0x0;_0x46e4fd<_0x509769[_0x3eb111(0x178)];_0x46e4fd++){const _0x50a4e7=_0x509769[_0x46e4fd],_0x44c344=w[_0x3eb111(0x174)](_0x50a4e7,_0x19fac2);_0x44c344&&_0x5327ef[_0x3eb111(0x176)](_0x44c344);}if(_0x5327ef['length']>0x0){_0x13fcfd['filledRanges']=_0x5327ef;const _0x4cd050=_0x5327ef[0x0],_0x540ce4=_0x4cd050['startRow']-_0x19fac2[_0x3eb111(0x188)],_0x2ffd93=_0x4cd050[_0x3eb111(0x16f)]-_0x19fac2[_0x3eb111(0x16f)];_0x13fcfd[_0x3eb111(0x181)]=await _0xd7ceb6[_0x3eb111(0x184)](_0x13fcfd['formula'],_0x540ce4,_0x2ffd93),_0x54aa0f['push'](_0x13fcfd);}}return _0x54aa0f;}async['getFormulaUsagesAsA1'](){const _0x48544a=_0x1b2f68;return(await this[_0x48544a(0x17d)]())['map'](c[_0x48544a(0x172)]);}}o[_0x1b2f68(0x177)][_0x1b2f68(0x182)](U);
|