@univerjs/engine-formula 0.2.4 → 0.2.5
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 +1 -1
- package/lib/es/index.js +6825 -5369
- package/lib/types/basics/common.d.ts +2 -0
- package/lib/types/commands/mutations/set-feature-calculation.mutation.d.ts +6 -3
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +4 -10
- package/lib/types/controller/formula.controller.d.ts +1 -2
- package/lib/types/controller/set-dependency.controller.d.ts +4 -1
- package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +7 -8
- package/lib/types/engine/ast-node/function-node.d.ts +1 -1
- package/lib/types/engine/ast-node/prefix-node.d.ts +1 -2
- package/lib/types/engine/ast-node/reference-node.d.ts +1 -1
- package/lib/types/engine/ast-node/suffix-node.d.ts +1 -1
- package/lib/types/engine/dependency/dependency-tree.d.ts +4 -1
- package/lib/types/engine/dependency/formula-dependency.d.ts +1 -0
- package/lib/types/engine/utils/prefixHandler.d.ts +1 -2
- package/lib/types/engine/value-object/array-value-object.d.ts +1 -0
- package/lib/types/engine/value-object/base-value-object.d.ts +1 -0
- package/lib/types/engine/value-object/primitive-object.d.ts +3 -0
- package/lib/types/functions/__tests__/create-function-test-bed.d.ts +7 -8
- package/lib/types/functions/date/datedif/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/datedif/index.d.ts +8 -0
- package/lib/types/functions/date/days/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/days/index.d.ts +8 -0
- package/lib/types/functions/date/days360/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/days360/index.d.ts +8 -0
- package/lib/types/functions/date/eomonth/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/eomonth/index.d.ts +8 -0
- package/lib/types/functions/date/function-map.d.ts +1 -1
- package/lib/types/functions/date/isoweeknum/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/isoweeknum/index.d.ts +9 -0
- package/lib/types/functions/date/weeknum/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/weeknum/index.d.ts +9 -0
- package/lib/types/functions/date/yearfrac/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/date/yearfrac/index.d.ts +8 -0
- package/lib/types/functions/information/cell/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/information/cell/index.d.ts +12 -0
- package/lib/types/functions/information/error-type/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/information/error-type/index.d.ts +10 -0
- package/lib/types/functions/information/function-map.d.ts +2 -1
- package/lib/types/functions/information/type/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/information/type/index.d.ts +10 -0
- package/lib/types/functions/math/ceiling/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/ceiling/index.d.ts +8 -0
- package/lib/types/functions/math/ceiling-math/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/ceiling-math/index.d.ts +8 -0
- package/lib/types/functions/math/ceiling-precise/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/ceiling-precise/index.d.ts +8 -0
- package/lib/types/functions/math/cosh/index.d.ts +1 -1
- package/lib/types/functions/math/decimal/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/decimal/index.d.ts +9 -0
- package/lib/types/functions/math/degrees/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/degrees/index.d.ts +9 -0
- package/lib/types/functions/math/even/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/even/index.d.ts +9 -0
- package/lib/types/functions/math/exp/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/exp/index.d.ts +8 -0
- package/lib/types/functions/math/floor/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/floor/index.d.ts +8 -0
- package/lib/types/functions/math/floor-math/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/floor-math/index.d.ts +8 -0
- package/lib/types/functions/math/floor-precise/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/floor-precise/index.d.ts +8 -0
- package/lib/types/functions/math/function-map.d.ts +3 -2
- package/lib/types/functions/math/ln/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/ln/index.d.ts +8 -0
- package/lib/types/functions/math/log/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/log/index.d.ts +8 -0
- package/lib/types/functions/math/log10/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/log10/index.d.ts +8 -0
- package/lib/types/functions/math/mround/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/mround/index.d.ts +8 -0
- package/lib/types/functions/math/odd/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/odd/index.d.ts +9 -0
- package/lib/types/functions/math/pi/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/pi/index.d.ts +8 -0
- package/lib/types/functions/math/radians/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/radians/index.d.ts +9 -0
- package/lib/types/functions/math/rand/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/rand/index.d.ts +8 -0
- package/lib/types/functions/math/randarray/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/randarray/index.d.ts +11 -0
- package/lib/types/functions/math/randbetween/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/randbetween/index.d.ts +8 -0
- package/lib/types/functions/math/round/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/round/index.d.ts +8 -0
- package/lib/types/functions/math/rounddown/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/rounddown/index.d.ts +8 -0
- package/lib/types/functions/math/roundup/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/roundup/index.d.ts +8 -0
- package/lib/types/functions/math/sec/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sec/index.d.ts +9 -0
- package/lib/types/functions/math/sech/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sech/index.d.ts +9 -0
- package/lib/types/functions/math/sqrt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sqrt/index.d.ts +8 -0
- package/lib/types/functions/math/sqrtpi/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sqrtpi/index.d.ts +8 -0
- package/lib/types/functions/math/sumsq/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sumsq/index.d.ts +8 -0
- package/lib/types/functions/math/sumx2my2/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sumx2my2/index.d.ts +8 -0
- package/lib/types/functions/math/sumx2py2/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sumx2py2/index.d.ts +8 -0
- package/lib/types/functions/math/sumxmy2/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sumxmy2/index.d.ts +8 -0
- package/lib/types/index.d.ts +3 -3
- package/lib/types/models/__tests__/create-command-test-bed.d.ts +7 -8
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/active-dirty-manager.service.d.ts +1 -1
- package/lib/types/services/current-data.service.d.ts +11 -1
- package/lib/types/services/defined-names.service.d.ts +1 -1
- package/lib/types/services/dependency-manager.service.d.ts +16 -6
- package/lib/types/services/feature-calculation-manager.service.d.ts +19 -12
- package/lib/types/services/function.service.d.ts +2 -3
- package/lib/types/services/other-formula-manager.service.d.ts +1 -1
- package/lib/types/services/runtime.service.d.ts +1 -1
- package/lib/types/services/super-table.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -8
|
@@ -18,6 +18,8 @@ export interface ISheetItem {
|
|
|
18
18
|
columnCount: number;
|
|
19
19
|
rowData: IObjectArrayPrimitiveType<Partial<IRowData>>;
|
|
20
20
|
columnData: IObjectArrayPrimitiveType<Partial<IColumnData>>;
|
|
21
|
+
defaultColumnWidth?: number;
|
|
22
|
+
defaultRowHeight?: number;
|
|
21
23
|
}
|
|
22
24
|
export interface ISheetData {
|
|
23
25
|
[sheetId: string]: ISheetItem;
|
|
@@ -10,6 +10,9 @@ export interface ISetFeatureCalculationMutation {
|
|
|
10
10
|
* It requires setting local to true during execution.
|
|
11
11
|
*/
|
|
12
12
|
export declare const SetFeatureCalculationMutation: IMutation<ISetFeatureCalculationMutation>;
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
export interface IRemoveFeatureCalculationMutationParam {
|
|
14
|
+
featureIds: string[];
|
|
15
|
+
unitId: string;
|
|
16
|
+
subUnitId: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const RemoveFeatureCalculationMutation: IMutation<IRemoveFeatureCalculationMutationParam>;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { IExecutionOptions, IMutation,
|
|
2
|
-
import {
|
|
1
|
+
import { IExecutionOptions, IMutation, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IRuntimeOtherUnitDataType, IRuntimeUnitDataPrimitiveType } from '../../basics/common';
|
|
3
3
|
import { FormulaExecutedStateType, IExecutionInProgressParams } from '../../services/runtime.service';
|
|
4
|
+
import { IFormulaDirtyData } from '../../services/current-data.service';
|
|
4
5
|
|
|
5
|
-
export interface IFormulaDirtyData {
|
|
6
|
-
dirtyRanges: IUnitRange[];
|
|
7
|
-
dirtyNameMap: IDirtyUnitSheetNameMap;
|
|
8
|
-
dirtyDefinedNameMap: IDirtyUnitSheetDefinedNameMap;
|
|
9
|
-
dirtyUnitFeatureMap: IDirtyUnitFeatureMap;
|
|
10
|
-
dirtyUnitOtherFormulaMap: IDirtyUnitOtherFormulaMap;
|
|
11
|
-
}
|
|
12
6
|
export interface ISetFormulaCalculationStartMutation extends IFormulaDirtyData {
|
|
13
7
|
options: Nullable<IExecutionOptions>;
|
|
14
|
-
forceCalculation
|
|
8
|
+
forceCalculation: boolean;
|
|
15
9
|
}
|
|
16
10
|
/**
|
|
17
11
|
* TODO: @DR-Univer
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
-
import { Ctor } from '@wendellhu/redi';
|
|
1
|
+
import { Disposable, ICommandService, Ctor } from '@univerjs/core';
|
|
3
2
|
import { DataSyncPrimaryController } from '@univerjs/rpc';
|
|
4
3
|
import { IFunctionNames } from '../basics/function';
|
|
5
4
|
import { BaseFunction } from '../functions/base-function';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
import { IFeatureCalculationManagerService } from '../services/feature-calculation-manager.service';
|
|
2
3
|
import { IDependencyManagerService } from '../services/dependency-manager.service';
|
|
3
4
|
|
|
4
5
|
export declare class SetDependencyController extends Disposable {
|
|
5
6
|
private readonly _commandService;
|
|
6
7
|
private readonly _dependencyManagerService;
|
|
7
|
-
|
|
8
|
+
private readonly _featureCalculationManagerService;
|
|
9
|
+
constructor(_commandService: ICommandService, _dependencyManagerService: IDependencyManagerService, _featureCalculationManagerService: IFeatureCalculationManagerService);
|
|
8
10
|
private _initialize;
|
|
11
|
+
private _featureCalculationManagerServiceListener;
|
|
9
12
|
private _commandExecutedListener;
|
|
10
13
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
2
|
-
import { Dependency } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
3
2
|
import { ISheetData } from '../../../basics/common';
|
|
4
3
|
|
|
5
4
|
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
6
5
|
univer: Univer;
|
|
7
6
|
get: {
|
|
8
|
-
<T>(id: import('@
|
|
9
|
-
<T>(id: import('@
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
12
|
-
<T>(id: import('@
|
|
13
|
-
<T>(id: import('@
|
|
7
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
8
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
9
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
10
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
11
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
12
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
14
13
|
};
|
|
15
14
|
sheet: Workbook;
|
|
16
15
|
unitId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injector } from '@
|
|
1
|
+
import { Injector } from '@univerjs/core';
|
|
2
2
|
import { AstNodePromiseType } from '../../basics/common';
|
|
3
3
|
import { BaseFunction } from '../../functions/base-function';
|
|
4
4
|
import { IFormulaCurrentConfigService } from '../../services/current-data.service';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Nullable } from '@univerjs/core';
|
|
2
|
-
import { IAccessor, Injector } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor, Nullable, Injector } from '@univerjs/core';
|
|
3
2
|
import { BaseFunction } from '../../functions/base-function';
|
|
4
3
|
import { IFunctionService } from '../../services/function.service';
|
|
5
4
|
import { LexerNode } from '../analysis/lexer-node';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAccessor, Injector } from '@
|
|
1
|
+
import { IAccessor, Injector } from '@univerjs/core';
|
|
2
2
|
import { IFormulaRuntimeService } from '../../services/runtime.service';
|
|
3
3
|
import { ISuperTableService } from '../../services/super-table.service';
|
|
4
4
|
import { LexerNode } from '../analysis/lexer-node';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAccessor, Injector } from '@
|
|
1
|
+
import { IAccessor, Injector } from '@univerjs/core';
|
|
2
2
|
import { BaseFunction } from '../../functions/base-function';
|
|
3
3
|
import { IFunctionService } from '../../services/function.service';
|
|
4
4
|
import { LexerNode } from '../analysis/lexer-node';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IRange, IUnitRange, Nullable, Disposable } from '@univerjs/core';
|
|
2
2
|
import { IDirtyUnitSheetNameMap, IFeatureDirtyRangeType, IRuntimeUnitDataType, IUnitExcludedCell } from '../../basics/common';
|
|
3
3
|
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
4
|
+
import { IFormulaDirtyData } from '../../services/current-data.service';
|
|
5
|
+
import { IAllRuntimeData } from '../../services/runtime.service';
|
|
4
6
|
|
|
5
7
|
export declare enum FDtreeStateType {
|
|
6
8
|
DEFAULT = 0,
|
|
@@ -29,7 +31,8 @@ export declare class FormulaDependencyTree extends Disposable {
|
|
|
29
31
|
rangeList: IUnitRangeWithToken[];
|
|
30
32
|
formulaId: Nullable<string>;
|
|
31
33
|
featureId: Nullable<string>;
|
|
32
|
-
|
|
34
|
+
isPassive: boolean;
|
|
35
|
+
getDirtyData: Nullable<(tree: FormulaDependencyTree, dirtyData: IFormulaDirtyData, runtimeData: IAllRuntimeData) => {
|
|
33
36
|
runtimeCellData: IRuntimeUnitDataType;
|
|
34
37
|
dirtyRanges: IFeatureDirtyRangeType;
|
|
35
38
|
}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Injector } from '@
|
|
2
|
-
import { Nullable } from '@univerjs/core';
|
|
1
|
+
import { Injector, Nullable } from '@univerjs/core';
|
|
3
2
|
import { IFunctionService } from '../../services/function.service';
|
|
4
3
|
import { PrefixNode } from '../ast-node/prefix-node';
|
|
5
4
|
|
|
@@ -149,6 +149,7 @@ export declare class ArrayValueObject extends BaseValueObject {
|
|
|
149
149
|
sqrt(): BaseValueObject;
|
|
150
150
|
cbrt(): BaseValueObject;
|
|
151
151
|
cos(): BaseValueObject;
|
|
152
|
+
cosh(): BaseValueObject;
|
|
152
153
|
acos(): BaseValueObject;
|
|
153
154
|
acosh(): BaseValueObject;
|
|
154
155
|
sin(): BaseValueObject;
|
|
@@ -24,6 +24,7 @@ export declare class NullValueObject extends BaseValueObject {
|
|
|
24
24
|
sqrt(): BaseValueObject;
|
|
25
25
|
cbrt(): BaseValueObject;
|
|
26
26
|
cos(): BaseValueObject;
|
|
27
|
+
cosh(): BaseValueObject;
|
|
27
28
|
acos(): BaseValueObject;
|
|
28
29
|
acosh(): BaseValueObject;
|
|
29
30
|
sin(): BaseValueObject;
|
|
@@ -70,6 +71,7 @@ export declare class BooleanValueObject extends BaseValueObject {
|
|
|
70
71
|
sqrt(): BaseValueObject;
|
|
71
72
|
cbrt(): BaseValueObject;
|
|
72
73
|
cos(): BaseValueObject;
|
|
74
|
+
cosh(): BaseValueObject;
|
|
73
75
|
acos(): BaseValueObject;
|
|
74
76
|
acosh(): BaseValueObject;
|
|
75
77
|
sin(): BaseValueObject;
|
|
@@ -123,6 +125,7 @@ export declare class NumberValueObject extends BaseValueObject {
|
|
|
123
125
|
sqrt(): BaseValueObject;
|
|
124
126
|
cbrt(): BaseValueObject;
|
|
125
127
|
cos(): BaseValueObject;
|
|
128
|
+
cosh(): BaseValueObject;
|
|
126
129
|
acos(): BaseValueObject;
|
|
127
130
|
acosh(): BaseValueObject;
|
|
128
131
|
sin(): BaseValueObject;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
2
|
-
import { Dependency } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
3
2
|
import { ISheetData } from '../../basics/common';
|
|
4
3
|
import { FunctionVariantType } from '../../engine/reference-object/base-reference-object';
|
|
5
4
|
|
|
6
5
|
export declare function createFunctionTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
7
6
|
univer: Univer;
|
|
8
7
|
get: {
|
|
9
|
-
<T>(id: import('@
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
12
|
-
<T>(id: import('@
|
|
13
|
-
<T>(id: import('@
|
|
14
|
-
<T>(id: import('@
|
|
8
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
9
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
10
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
11
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
12
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
13
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
15
14
|
};
|
|
16
15
|
sheet: Workbook;
|
|
17
16
|
unitId: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Datedif extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(startDate: BaseValueObject, endDate: BaseValueObject, unit: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Days extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(endDate: BaseValueObject, startDate: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Days360 extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(startDate: BaseValueObject, endDate: BaseValueObject, method?: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Eomonth extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(startDate: BaseValueObject, months: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Isoweeknum extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(date: BaseValueObject): BaseValueObject;
|
|
8
|
+
private _handleSingleObject;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Weeknum extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
private returnTypeMap;
|
|
8
|
+
calculate(serialNumber: BaseValueObject, returnType?: BaseValueObject): BaseValueObject;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Yearfrac extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(startDate: BaseValueObject, endDate: BaseValueObject, basis?: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
3
|
+
import { StringValueObject } from '../../../engine/value-object/primitive-object';
|
|
4
|
+
import { BaseFunction } from '../../base-function';
|
|
5
|
+
|
|
6
|
+
export declare class Cell extends BaseFunction {
|
|
7
|
+
needsReferenceObject: boolean;
|
|
8
|
+
minParams: number;
|
|
9
|
+
maxParams: number;
|
|
10
|
+
calculate(infoType: FunctionVariantType, reference: FunctionVariantType): StringValueObject | ArrayValueObject | FunctionVariantType;
|
|
11
|
+
private _handleSingleObject;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class ErrorType extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(errorVal: BaseValueObject): BaseValueObject;
|
|
8
|
+
private errorTypeValueMap;
|
|
9
|
+
private _handleSingleObject;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FUNCTION_NAMES_INFORMATION } from './function-names';
|
|
2
|
+
import { Cell } from './cell';
|
|
2
3
|
import { Isblank } from './isblank';
|
|
3
4
|
|
|
4
|
-
export declare const functionInformation: (FUNCTION_NAMES_INFORMATION | typeof Isblank)[][];
|
|
5
|
+
export declare const functionInformation: ((FUNCTION_NAMES_INFORMATION | typeof Cell)[] | (FUNCTION_NAMES_INFORMATION | typeof Isblank)[])[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
|
+
|
|
5
|
+
export declare class Type extends BaseFunction {
|
|
6
|
+
needsReferenceObject: boolean;
|
|
7
|
+
minParams: number;
|
|
8
|
+
maxParams: number;
|
|
9
|
+
calculate(value: FunctionVariantType): NumberValueObject;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class Ceiling extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(number: BaseValueObject, significance: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class CeilingMath extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(number: BaseValueObject, significance?: BaseValueObject, mode?: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
|
|
4
|
+
export declare class CeilingPrecise extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(number: BaseValueObject, significance?: BaseValueObject): BaseValueObject;
|
|
8
|
+
}
|