@univerjs/engine-formula 0.25.1 → 1.0.0-alpha.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 +2 -2
- package/lib/cjs/index.js +254 -45
- package/lib/es/facade.js +2 -2
- package/lib/es/index.js +255 -46
- package/lib/facade.js +2 -2
- package/lib/index.js +255 -46
- package/lib/types/functions/base-function.d.ts +1 -1
- package/lib/types/index.d.ts +40 -25
- package/lib/umd/index.js +2 -2
- package/package.json +5 -5
package/lib/types/index.d.ts
CHANGED
|
@@ -21,28 +21,36 @@ export { excelDateSerial } from './basics/date';
|
|
|
21
21
|
export { isInDirtyRange } from './basics/dirty';
|
|
22
22
|
export { ERROR_TYPE_SET, ErrorType } from './basics/error-type';
|
|
23
23
|
export { type ISheetFormulaError } from './basics/error-type';
|
|
24
|
-
export { FunctionType
|
|
24
|
+
export { FunctionType } from './basics/function';
|
|
25
|
+
export type { IFunctionInfo, IFunctionParam } from './basics/function';
|
|
25
26
|
export { type IFunctionNames } from './basics/function';
|
|
26
27
|
export { CELL_INVERTED_INDEX_CACHE } from './basics/inverted-index-cache';
|
|
27
28
|
export { includeFormulaLexerToken, isFormulaLexerToken, normalizeSheetName } from './basics/match-token';
|
|
28
29
|
export { matchRefDrawToken } from './basics/match-token';
|
|
29
30
|
export { isReferenceString } from './basics/regex';
|
|
30
31
|
export { convertUnitDataToRuntime } from './basics/runtime';
|
|
31
|
-
export { compareToken, matchToken, OPERATOR_TOKEN_SET, operatorToken, prefixToken, SUFFIX_TOKEN_SET } from './basics/token';
|
|
32
|
-
export { DEFAULT_TOKEN_LAMBDA_FUNCTION_NAME, DEFAULT_TOKEN_LET_FUNCTION_NAME, DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER, DEFAULT_TOKEN_TYPE_PARAMETER, DEFAULT_TOKEN_TYPE_ROOT } from './basics/token-type';
|
|
32
|
+
export { compareToken, matchToken, OPERATOR_TOKEN_SET, operatorToken, prefixToken, SUFFIX_TOKEN_SET, } from './basics/token';
|
|
33
|
+
export { DEFAULT_TOKEN_LAMBDA_FUNCTION_NAME, DEFAULT_TOKEN_LET_FUNCTION_NAME, DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER, DEFAULT_TOKEN_TYPE_PARAMETER, DEFAULT_TOKEN_TYPE_ROOT, } from './basics/token-type';
|
|
33
34
|
export { OtherFormulaMarkDirty } from './commands/mutations/formula.mutation';
|
|
34
35
|
export { RegisterFunctionMutation } from './commands/mutations/register-function.mutation';
|
|
35
|
-
export {
|
|
36
|
-
export
|
|
36
|
+
export { SetArrayFormulaDataMutation } from './commands/mutations/set-array-formula-data.mutation';
|
|
37
|
+
export type { ISetArrayFormulaDataMutationParams } from './commands/mutations/set-array-formula-data.mutation';
|
|
38
|
+
export { RemoveDefinedNameMutation, SetDefinedNameMutation } from './commands/mutations/set-defined-name.mutation';
|
|
39
|
+
export type { ISetDefinedNameMutationParam, ISetDefinedNameMutationSearchParam, } from './commands/mutations/set-defined-name.mutation';
|
|
37
40
|
export { SetDefinedNameMutationFactory } from './commands/mutations/set-defined-name.mutation';
|
|
38
|
-
export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from './commands/mutations/set-feature-calculation.mutation';
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export
|
|
43
|
-
export {
|
|
44
|
-
export type {
|
|
45
|
-
export {
|
|
41
|
+
export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation, } from './commands/mutations/set-feature-calculation.mutation';
|
|
42
|
+
export { SetCellFormulaDependencyCalculationMutation, SetCellFormulaDependencyCalculationResultMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationResultMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, SetFormulaDependencyCalculationMutation, SetFormulaDependencyCalculationResultMutation, SetFormulaStringBatchCalculationMutation, SetFormulaStringBatchCalculationResultMutation, SetQueryFormulaDependencyAllMutation, SetQueryFormulaDependencyAllResultMutation, SetQueryFormulaDependencyMutation, SetQueryFormulaDependencyResultMutation, SetTriggerFormulaCalculationStartMutation, } from './commands/mutations/set-formula-calculation.mutation';
|
|
43
|
+
export type { ISetCellFormulaDependencyCalculationResultMutation, ISetFormulaCalculationNotificationMutation, ISetFormulaCalculationResultMutation, ISetFormulaCalculationStartMutation, ISetFormulaDependencyCalculationMutation, ISetFormulaDependencyCalculationResultMutation, ISetFormulaStringBatchCalculationResultMutation, ISetQueryFormulaDependencyAllResultMutation, ISetQueryFormulaDependencyResultMutation, } from './commands/mutations/set-formula-calculation.mutation';
|
|
44
|
+
export { SetFormulaDataMutation } from './commands/mutations/set-formula-data.mutation';
|
|
45
|
+
export type { ISetFormulaDataMutationParams } from './commands/mutations/set-formula-data.mutation';
|
|
46
|
+
export { SetImageFormulaDataMutation } from './commands/mutations/set-image-formula-data.mutation';
|
|
47
|
+
export type { ISetImageFormulaDataMutationParams } from './commands/mutations/set-image-formula-data.mutation';
|
|
48
|
+
export { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from './commands/mutations/set-other-formula.mutation';
|
|
49
|
+
export type { IRemoveOtherFormulaMutationParams, ISetOtherFormulaMutationParams, } from './commands/mutations/set-other-formula.mutation';
|
|
50
|
+
export { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation, } from './commands/mutations/set-super-table.mutation';
|
|
51
|
+
export type { ISetSuperTableMutationParam, ISetSuperTableMutationSearchParam, } from './commands/mutations/set-super-table.mutation';
|
|
52
|
+
export { DEFAULT_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_PLUGIN_CONFIG_KEY, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE, } from './config/config';
|
|
53
|
+
export type { IUniverEngineFormulaConfig } from './config/config';
|
|
46
54
|
export { CalculateController } from './controllers/calculate.controller';
|
|
47
55
|
export { Lexer } from './engine/analysis/lexer';
|
|
48
56
|
export { LexerNode } from './engine/analysis/lexer-node';
|
|
@@ -59,14 +67,16 @@ export { ReferenceNodeFactory } from './engine/ast-node/reference-node';
|
|
|
59
67
|
export { SuffixNodeFactory } from './engine/ast-node/suffix-node';
|
|
60
68
|
export { UnionNodeFactory } from './engine/ast-node/union-node';
|
|
61
69
|
export { ValueNodeFactory } from './engine/ast-node/value-node';
|
|
62
|
-
export { FormulaDependencyTree, FormulaDependencyTreeModel
|
|
70
|
+
export { FormulaDependencyTree, FormulaDependencyTreeModel } from './engine/dependency/dependency-tree';
|
|
71
|
+
export type { IFormulaDependencyTree, IFormulaDependencyTreeFullJson, IFormulaDependencyTreeJson, IFormulaDependentsAndInRangeResults, } from './engine/dependency/dependency-tree';
|
|
63
72
|
export { FormulaDependencyTreeType } from './engine/dependency/dependency-tree';
|
|
64
73
|
export { FormulaDependencyTreeVirtual } from './engine/dependency/dependency-tree';
|
|
65
74
|
export { FormulaDependencyGenerator, IFormulaDependencyGenerator } from './engine/dependency/formula-dependency';
|
|
66
75
|
export { generateRandomDependencyTreeId } from './engine/dependency/formula-dependency';
|
|
67
76
|
export { Interpreter } from './engine/interpreter/interpreter';
|
|
68
|
-
export { BaseReferenceObject
|
|
69
|
-
export {
|
|
77
|
+
export { BaseReferenceObject } from './engine/reference-object/base-reference-object';
|
|
78
|
+
export type { FunctionVariantType } from './engine/reference-object/base-reference-object';
|
|
79
|
+
export { AsyncArrayObject, AsyncObject, FORMULA_REF_TO_ARRAY_CACHE, } from './engine/reference-object/base-reference-object';
|
|
70
80
|
export { RangeReferenceObject } from './engine/reference-object/range-reference-object';
|
|
71
81
|
export { generateExecuteAstNodeData } from './engine/utils/ast-node-tool';
|
|
72
82
|
export { extractFormulaError } from './engine/utils/cell';
|
|
@@ -74,15 +84,17 @@ export { generateAstNode } from './engine/utils/generate-ast-node';
|
|
|
74
84
|
export { strip, stripErrorMargin } from './engine/utils/math-kit';
|
|
75
85
|
export { handleNumfmtInCell } from './engine/utils/numfmt-kit';
|
|
76
86
|
export { deserializeRangeForR1C1 } from './engine/utils/r1c1-reference';
|
|
77
|
-
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, getRangeWithRefsString,
|
|
87
|
+
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, getRangeWithRefsString, isReferenceStrings, isReferenceStringWithEffectiveColumn, needsQuoting, quoteSheetName, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, singleReferenceToGrid, splitTableStructuredRef, unquoteSheetName, } from './engine/utils/reference';
|
|
88
|
+
export type { IAbsoluteRefTypeForRange } from './engine/utils/reference';
|
|
78
89
|
export { handleRefStringInfo } from './engine/utils/reference';
|
|
79
90
|
export { deserializeRangeWithSheetWithCache } from './engine/utils/reference-cache';
|
|
80
|
-
export { generateStringWithSequence,
|
|
91
|
+
export { generateStringWithSequence, sequenceNodeType } from './engine/utils/sequence';
|
|
92
|
+
export type { ISequenceNode } from './engine/utils/sequence';
|
|
81
93
|
export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
|
|
82
94
|
export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
|
|
83
95
|
export { LambdaValueObjectObject } from './engine/value-object/lambda-value-object';
|
|
84
|
-
export type { FormulaFunctionResultValueType, FormulaFunctionValueType, IImageFormulaInfo, PrimitiveValueType } from './engine/value-object/primitive-object';
|
|
85
|
-
export { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject } from './engine/value-object/primitive-object';
|
|
96
|
+
export type { FormulaFunctionResultValueType, FormulaFunctionValueType, IImageFormulaInfo, PrimitiveValueType, } from './engine/value-object/primitive-object';
|
|
97
|
+
export { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject, } from './engine/value-object/primitive-object';
|
|
86
98
|
export { functionArray } from './functions/array/function-map';
|
|
87
99
|
export { FUNCTION_NAMES_ARRAY } from './functions/array/function-names';
|
|
88
100
|
export { BaseFunction } from './functions/base-function';
|
|
@@ -126,22 +138,25 @@ export { UniverFormulaEnginePlugin } from './plugin';
|
|
|
126
138
|
export { ActiveDirtyManagerService, IActiveDirtyManagerService } from './services/active-dirty-manager.service';
|
|
127
139
|
export { CalculateFormulaService, ICalculateFormulaService } from './services/calculate-formula.service';
|
|
128
140
|
export { DEFAULT_INTERVAL_COUNT } from './services/calculate-formula.service';
|
|
129
|
-
export { FormulaCurrentConfigService, IFormulaCurrentConfigService
|
|
130
|
-
export
|
|
141
|
+
export { FormulaCurrentConfigService, IFormulaCurrentConfigService } from './services/current-data.service';
|
|
142
|
+
export type { IFormulaDirtyData } from './services/current-data.service';
|
|
143
|
+
export { DefinedNamesService, IDefinedNamesService } from './services/defined-names.service';
|
|
144
|
+
export type { IDefinedNameMapItem, IDefinedNamesServiceParam, IDefinedNamesUpdateEvent, } from './services/defined-names.service';
|
|
131
145
|
export { IDependencyManagerService } from './services/dependency-manager.service';
|
|
132
146
|
export { DependencyManagerService } from './services/dependency-manager.service';
|
|
133
147
|
export { DependencyManagerBaseService } from './services/dependency-manager.service';
|
|
134
|
-
export { FeatureCalculationManagerService, IFeatureCalculationManagerService } from './services/feature-calculation-manager.service';
|
|
148
|
+
export { FeatureCalculationManagerService, IFeatureCalculationManagerService, } from './services/feature-calculation-manager.service';
|
|
135
149
|
export type { IFeatureCalculationManagerParam } from './services/feature-calculation-manager.service';
|
|
136
150
|
export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';
|
|
137
151
|
export { FormulaResultStatus } from './services/formula-common';
|
|
138
152
|
export { FunctionService } from './services/function.service';
|
|
139
153
|
export { IFunctionService } from './services/function.service';
|
|
140
154
|
export { GlobalComputingStatusService } from './services/global-computing-status.service';
|
|
141
|
-
export { HyperlinkEngineFormulaService, IHyperlinkEngineFormulaService } from './services/hyperlink-engine-formula.service';
|
|
155
|
+
export { HyperlinkEngineFormulaService, IHyperlinkEngineFormulaService, } from './services/hyperlink-engine-formula.service';
|
|
142
156
|
export { IOtherFormulaManagerService, OtherFormulaManagerService } from './services/other-formula-manager.service';
|
|
143
157
|
export { OtherFormulaBizType, RegisterOtherFormulaService } from './services/register-other-formula.service';
|
|
144
|
-
export { FormulaExecutedStateType, FormulaExecuteStageType, FormulaRuntimeService,
|
|
158
|
+
export { FormulaExecutedStateType, FormulaExecuteStageType, FormulaRuntimeService, IFormulaRuntimeService, } from './services/runtime.service';
|
|
159
|
+
export type { IAllRuntimeData, IExecutionInProgressParams } from './services/runtime.service';
|
|
145
160
|
export { ISheetRowFilteredService, SheetRowFilteredService } from './services/sheet-row-filtered.service';
|
|
146
161
|
export { ISuperTableService } from './services/super-table.service';
|
|
147
162
|
export { SuperTableService } from './services/super-table.service';
|