@univerjs/engine-formula 0.2.14 → 0.3.0-alpha.0
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 +2744 -886
- package/lib/types/basics/engineering.d.ts +2 -0
- package/lib/types/basics/statistical.d.ts +32 -0
- package/lib/types/engine/reference-object/base-reference-object.d.ts +1 -1
- package/lib/types/engine/utils/compare.d.ts +11 -3
- package/lib/types/engine/value-object/array-value-object.d.ts +12 -1
- package/lib/types/engine/value-object/lambda-value-object.d.ts +2 -2
- package/lib/types/functions/base-function.d.ts +6 -6
- package/lib/types/functions/compatibility/betadist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/betadist/index.d.ts +8 -0
- package/lib/types/functions/compatibility/normsdist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/normsdist/index.d.ts +8 -0
- package/lib/types/functions/logical/bycol/index.d.ts +3 -1
- package/lib/types/functions/logical/byrow/index.d.ts +3 -1
- package/lib/types/functions/logical/map/index.d.ts +3 -1
- package/lib/types/functions/logical/reduce/index.d.ts +3 -1
- package/lib/types/functions/logical/scan/index.d.ts +3 -1
- package/lib/types/functions/lookup/offset/index.d.ts +1 -1
- package/lib/types/functions/lookup/xlookup/index.d.ts +8 -2
- package/lib/types/functions/lookup/xmatch/index.d.ts +1 -2
- package/lib/types/functions/math/function-map.d.ts +1 -1
- package/lib/types/functions/statistical/beta-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/beta-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/beta-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/beta-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/binom-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/binom-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/binom-dist-range/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/binom-dist-range/index.d.ts +8 -0
- package/lib/types/functions/statistical/binom-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/binom-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-dist-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-dist-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-inv-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-inv-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-test/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-test/index.d.ts +8 -0
- package/lib/types/functions/statistical/confidence-norm/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/confidence-norm/index.d.ts +7 -0
- package/lib/types/functions/statistical/confidence-t/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/confidence-t/index.d.ts +7 -0
- package/lib/types/functions/statistical/correl/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/correl/index.d.ts +8 -0
- package/lib/types/functions/statistical/covariance-p/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/covariance-p/index.d.ts +8 -0
- package/lib/types/functions/statistical/covariance-s/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/covariance-s/index.d.ts +8 -0
- package/lib/types/functions/statistical/devsq/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/devsq/index.d.ts +8 -0
- package/lib/types/functions/statistical/expon-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/expon-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-dist-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-dist-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-inv-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-inv-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-test/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-test/index.d.ts +8 -0
- package/lib/types/functions/statistical/fisher/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/fisher/index.d.ts +8 -0
- package/lib/types/functions/statistical/fisherinv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/fisherinv/index.d.ts +8 -0
- package/lib/types/functions/statistical/forecast/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/forecast/index.d.ts +8 -0
- package/lib/types/functions/statistical/function-map.d.ts +1 -1
- package/lib/types/functions/statistical/intercept/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/intercept/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-s-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-s-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-s-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-s-inv/index.d.ts +8 -0
- package/lib/types/functions/text/function-map.d.ts +1 -1
- package/lib/types/functions/text/leftb/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/leftb/index.d.ts +9 -0
- package/lib/types/functions/text/mid/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/mid/index.d.ts +8 -0
- package/lib/types/functions/text/textafter/index.d.ts +2 -1
- package/lib/types/functions/text/textbefore/index.d.ts +2 -1
- package/lib/types/index.d.ts +13 -13
- package/lib/umd/index.js +2 -2
- package/package.json +8 -8
package/lib/types/index.d.ts
CHANGED
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap,
|
|
16
|
+
export type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFeatureDirtyRangeType, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap, } from './basics/common';
|
|
17
17
|
export { isInDirtyRange } from './basics/dirty';
|
|
18
|
-
export {
|
|
18
|
+
export { ERROR_TYPE_SET, ErrorType } from './basics/error-type';
|
|
19
19
|
export { FunctionType, type IFunctionInfo, type IFunctionParam } from './basics/function';
|
|
20
20
|
export { type IFunctionNames } from './basics/function';
|
|
21
21
|
export { includeFormulaLexerToken, isFormulaLexerToken, normalizeSheetName } from './basics/match-token';
|
|
22
22
|
export { convertUnitDataToRuntime } from './basics/runtime';
|
|
23
|
-
export {
|
|
23
|
+
export { compareToken, matchToken, operatorToken } from './basics/token';
|
|
24
24
|
export { LexerNode } from './engine/analysis/lexer-node';
|
|
25
25
|
export { LexerTreeBuilder } from './engine/analysis/lexer-tree-builder';
|
|
26
26
|
export { BaseReferenceObject, type FunctionVariantType } from './engine/reference-object/base-reference-object';
|
|
27
27
|
export { RangeReferenceObject } from './engine/reference-object/range-reference-object';
|
|
28
28
|
export { deserializeRangeForR1C1 } from './engine/utils/r1c1-reference';
|
|
29
|
-
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, type IAbsoluteRefTypeForRange, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet,
|
|
29
|
+
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, getRangeWithRefsString, type IAbsoluteRefTypeForRange, isReferenceStrings, isReferenceStringWithEffectiveColumn, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, singleReferenceToGrid, } from './engine/utils/reference';
|
|
30
30
|
export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from './engine/utils/sequence';
|
|
31
31
|
export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
|
|
32
32
|
export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
|
|
@@ -34,7 +34,7 @@ export { BooleanValue } from './basics/common';
|
|
|
34
34
|
export type { PrimitiveValueType } from './engine/value-object/primitive-object';
|
|
35
35
|
export { NumberValueObject } from './engine/value-object/primitive-object';
|
|
36
36
|
export { BooleanValueObject } from './engine/value-object/primitive-object';
|
|
37
|
-
export {
|
|
37
|
+
export { NullValueObject, StringValueObject } from './engine/value-object/primitive-object';
|
|
38
38
|
export { functionArray } from './functions/array/function-map';
|
|
39
39
|
export { FUNCTION_NAMES_ARRAY } from './functions/array/function-names';
|
|
40
40
|
export { BaseFunction } from './functions/base-function';
|
|
@@ -80,9 +80,9 @@ export { FormulaExecuteStageType, type IExecutionInProgressParams } from './serv
|
|
|
80
80
|
export { FormulaExecutedStateType, type IAllRuntimeData } from './services/runtime.service';
|
|
81
81
|
export { isReferenceString } from './basics/regex';
|
|
82
82
|
export { matchRefDrawToken } from './basics/match-token';
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
83
|
+
export { DefinedNamesService, type IDefinedNameMapItem, IDefinedNamesService, type IDefinedNamesServiceParam } from './services/defined-names.service';
|
|
84
|
+
export { FormulaRuntimeService, IFormulaRuntimeService } from './services/runtime.service';
|
|
85
|
+
export { FormulaCurrentConfigService, IFormulaCurrentConfigService, type IFormulaDirtyData } from './services/current-data.service';
|
|
86
86
|
export { IActiveDirtyManagerService } from './services/active-dirty-manager.service';
|
|
87
87
|
export { ActiveDirtyManagerService } from './services/active-dirty-manager.service';
|
|
88
88
|
export type { IRangeChange } from './models/formula-data.model';
|
|
@@ -111,9 +111,9 @@ export { DependencyManagerService } from './services/dependency-manager.service'
|
|
|
111
111
|
export { CalculateController } from './controller/calculate.controller';
|
|
112
112
|
export { RegisterFunctionMutation } from './commands/mutations/register-function.mutation';
|
|
113
113
|
export { type ISetArrayFormulaDataMutationParams, SetArrayFormulaDataMutation } from './commands/mutations/set-array-formula-data.mutation';
|
|
114
|
-
export {
|
|
114
|
+
export { type ISetDefinedNameMutationParam, type ISetDefinedNameMutationSearchParam, RemoveDefinedNameMutation, SetDefinedNameMutation, } from './commands/mutations/set-defined-name.mutation';
|
|
115
115
|
export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from './commands/mutations/set-feature-calculation.mutation';
|
|
116
|
-
export {
|
|
117
|
-
export {
|
|
118
|
-
export {
|
|
119
|
-
export {
|
|
116
|
+
export { type ISetFormulaCalculationNotificationMutation, type ISetFormulaCalculationResultMutation, type ISetFormulaCalculationStartMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationResultMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, } from './commands/mutations/set-formula-calculation.mutation';
|
|
117
|
+
export { type ISetFormulaDataMutationParams, SetFormulaDataMutation } from './commands/mutations/set-formula-data.mutation';
|
|
118
|
+
export { type IRemoveOtherFormulaMutationParams, type ISetOtherFormulaMutationParams, RemoveOtherFormulaMutation, SetOtherFormulaMutation, } from './commands/mutations/set-other-formula.mutation';
|
|
119
|
+
export { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation, } from './commands/mutations/set-super-table.mutation';
|