@rowsncolumns/fast-formula-parser 6.2.36 → 6.2.37
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/dist/cjs/index.js +540 -93
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +540 -94
- package/dist/esm/index.js.map +1 -1
- package/index.d.ts +12 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ declare module "@rowsncolumns/fast-formula-parser" {
|
|
|
4
4
|
|
|
5
5
|
/** Set of all implemented function names for O(1) lookup */
|
|
6
6
|
export const implementedFunctionNames: Set<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Is `formula` a SUBTOTAL / AGGREGATE call (the cells SUBTOTAL and
|
|
9
|
+
* AGGREGATE skip inside their ranges)? Hosts use it to decide which cell
|
|
10
|
+
* formulas to hand to `onCellFormula`.
|
|
11
|
+
*/
|
|
12
|
+
export function isNestedAggregateFormula(formula: unknown): boolean;
|
|
7
13
|
export type CellCoords = {
|
|
8
14
|
sheet?: string;
|
|
9
15
|
row: number;
|
|
@@ -177,6 +183,12 @@ declare module "@rowsncolumns/fast-formula-parser" {
|
|
|
177
183
|
export default class FormulaParser<T extends unknown = any> {
|
|
178
184
|
constructor(config: FormulaParserConfig);
|
|
179
185
|
locale?: string;
|
|
186
|
+
/**
|
|
187
|
+
* When true, `checkFormulaResult` hands back an un-invoked LAMBDA value
|
|
188
|
+
* instead of Excel's #CALC! — used while evaluating a defined name's
|
|
189
|
+
* formula so `=name(args)` can apply it later.
|
|
190
|
+
*/
|
|
191
|
+
keepLambdaResult: boolean;
|
|
180
192
|
parseAsync: (
|
|
181
193
|
text: string,
|
|
182
194
|
position: CellCoords,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowsncolumns/fast-formula-parser",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.37",
|
|
4
4
|
"description": "fast excel formula parser",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"author": "Lester(Dishu) Lyu",
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@rowsncolumns/utils": ">=9.2.
|
|
47
|
+
"@rowsncolumns/utils": ">=9.2.41",
|
|
48
48
|
"bahttext": "^2.3.0",
|
|
49
49
|
"bessel": "^1.0.2",
|
|
50
50
|
"chevrotain": "^10.5.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@babel/preset-typescript": "^7.29.7",
|
|
58
58
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
59
59
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
60
|
-
"@rowsncolumns/common-types": ">=5.2.
|
|
60
|
+
"@rowsncolumns/common-types": ">=5.2.32",
|
|
61
61
|
"rollup": "^4.41.1"
|
|
62
62
|
}
|
|
63
63
|
}
|