@univerjs/engine-formula 0.10.14-nightly.202511031023 → 0.10.14-nightly.202511070628
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/index.js +2 -2
- package/lib/es/index.js +198 -192
- package/lib/index.js +198 -192
- package/lib/types/engine/ast-node/base-ast-node.d.ts +1 -2
- package/lib/types/engine/utils/reference.d.ts +12 -0
- package/lib/types/index.d.ts +2 -2
- package/lib/umd/index.js +2 -2
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
|
4
4
|
import { AstNodePromiseType } from '../../basics/common';
|
|
5
5
|
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
6
6
|
import { NodeType } from './node-type';
|
|
7
|
-
interface IAstNodeNodeJson {
|
|
7
|
+
export interface IAstNodeNodeJson {
|
|
8
8
|
token: string;
|
|
9
9
|
children?: IAstNodeNodeJson[];
|
|
10
10
|
nodeType: number;
|
|
@@ -53,4 +53,3 @@ export declare class ErrorNode extends BaseAstNode {
|
|
|
53
53
|
static create(errorType: ErrorType): ErrorNode;
|
|
54
54
|
getValue(): ErrorValueObject;
|
|
55
55
|
}
|
|
56
|
-
export {};
|
|
@@ -73,3 +73,15 @@ export declare function needsQuoting(name: string): boolean;
|
|
|
73
73
|
* Add quotes to the sheet name
|
|
74
74
|
*/
|
|
75
75
|
export declare function addQuotesBothSides(name: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* Add a single quote before the single quote
|
|
78
|
+
* @param name
|
|
79
|
+
* @returns Quoted name
|
|
80
|
+
*/
|
|
81
|
+
export declare function quoteSheetName(name: string): string;
|
|
82
|
+
/**
|
|
83
|
+
* Replace double single quotes with single quotes
|
|
84
|
+
* @param name
|
|
85
|
+
* @returns Unquoted name
|
|
86
|
+
*/
|
|
87
|
+
export declare function unquoteSheetName(name: string): string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export { LexerNode } from './engine/analysis/lexer-node';
|
|
|
43
43
|
export { LexerTreeBuilder } from './engine/analysis/lexer-tree-builder';
|
|
44
44
|
export { AstTreeBuilder } from './engine/analysis/parser';
|
|
45
45
|
export { AstRootNodeFactory } from './engine/ast-node/ast-root-node';
|
|
46
|
-
export type { BaseAstNode } from './engine/ast-node/base-ast-node
|
|
46
|
+
export type { BaseAstNode, IAstNodeNodeJson } from './engine/ast-node/base-ast-node';
|
|
47
47
|
export { FunctionNodeFactory } from './engine/ast-node/function-node';
|
|
48
48
|
export { LambdaNodeFactory } from './engine/ast-node/lambda-node';
|
|
49
49
|
export { LambdaParameterNodeFactory } from './engine/ast-node/lambda-parameter-node';
|
|
@@ -68,7 +68,7 @@ export { generateAstNode } from './engine/utils/generate-ast-node';
|
|
|
68
68
|
export { strip, stripErrorMargin } from './engine/utils/math-kit';
|
|
69
69
|
export { handleNumfmtInCell } from './engine/utils/numfmt-kit';
|
|
70
70
|
export { deserializeRangeForR1C1 } from './engine/utils/r1c1-reference';
|
|
71
|
-
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, getRangeWithRefsString, type IAbsoluteRefTypeForRange, isReferenceStrings, isReferenceStringWithEffectiveColumn, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, singleReferenceToGrid, } from './engine/utils/reference';
|
|
71
|
+
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, getRangeWithRefsString, type IAbsoluteRefTypeForRange, isReferenceStrings, isReferenceStringWithEffectiveColumn, needsQuoting, quoteSheetName, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, singleReferenceToGrid, unquoteSheetName, } from './engine/utils/reference';
|
|
72
72
|
export { handleRefStringInfo } from './engine/utils/reference';
|
|
73
73
|
export { deserializeRangeWithSheetWithCache } from './engine/utils/reference-cache';
|
|
74
74
|
export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from './engine/utils/sequence';
|