@univerjs/engine-formula 0.1.0-beta.3 → 0.1.0-beta.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.
Files changed (78) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +3071 -2033
  3. package/lib/types/basics/__tests__/date.spec.d.ts +16 -0
  4. package/lib/types/basics/common.d.ts +7 -1
  5. package/lib/types/basics/date.d.ts +30 -0
  6. package/lib/types/basics/error-type.d.ts +1 -1
  7. package/lib/types/basics/object-class-type.d.ts +3 -0
  8. package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +2 -1
  9. package/lib/types/commands/mutations/set-numfmt-formula-data.mutation.d.ts +21 -0
  10. package/lib/types/engine/ast-node/function-node.d.ts +12 -0
  11. package/lib/types/engine/ast-node/reference-node.d.ts +2 -1
  12. package/lib/types/engine/reference-object/base-reference-object.d.ts +4 -1
  13. package/lib/types/engine/utils/__tests__/cell.spec.d.ts +16 -0
  14. package/lib/types/engine/utils/array-object.d.ts +19 -0
  15. package/lib/types/engine/utils/cell.d.ts +17 -0
  16. package/lib/types/engine/utils/compare.d.ts +5 -0
  17. package/lib/types/engine/utils/object-compare.d.ts +7 -0
  18. package/lib/types/engine/value-object/array-value-object.d.ts +45 -3
  19. package/lib/types/engine/value-object/base-value-object.d.ts +1 -0
  20. package/lib/types/functions/__tests__/{create-command-test-bed.d.ts → create-function-test-bed.d.ts} +1 -1
  21. package/lib/types/functions/__tests__/nested-functions.spec.d.ts +16 -0
  22. package/lib/types/functions/base-function.d.ts +23 -1
  23. package/lib/types/functions/date/date/__tests__/index.spec.d.ts +16 -0
  24. package/lib/types/functions/date/date/index.d.ts +20 -0
  25. package/lib/types/functions/date/day/__tests__/index.spec.d.ts +16 -0
  26. package/lib/types/functions/date/day/index.d.ts +20 -0
  27. package/lib/types/functions/date/edate/__tests__/index.spec.d.ts +16 -0
  28. package/lib/types/functions/date/edate/index.d.ts +23 -0
  29. package/lib/types/functions/date/function-map.d.ts +3 -1
  30. package/lib/types/functions/date/month/__tests__/index.spec.d.ts +16 -0
  31. package/lib/types/functions/date/month/index.d.ts +20 -0
  32. package/lib/types/functions/date/today/__tests__/index.spec.d.ts +16 -0
  33. package/lib/types/functions/date/today/index.d.ts +22 -0
  34. package/lib/types/functions/date/year/__tests__/index.spec.d.ts +16 -0
  35. package/lib/types/functions/date/year/index.d.ts +20 -0
  36. package/lib/types/functions/information/function-map.d.ts +3 -1
  37. package/lib/types/functions/information/isblank/__tests__/index.spec.d.ts +16 -0
  38. package/lib/types/functions/information/isblank/index.d.ts +20 -0
  39. package/lib/types/functions/logical/and/__tests__/index.spec.d.ts +16 -0
  40. package/lib/types/functions/logical/and/index.d.ts +20 -0
  41. package/lib/types/functions/logical/function-map.d.ts +2 -1
  42. package/lib/types/functions/logical/if/__tests__/index.spec.d.ts +16 -0
  43. package/lib/types/functions/logical/if/index.d.ts +22 -0
  44. package/lib/types/functions/logical/iferror/__tests__/index.spec.d.ts +16 -0
  45. package/lib/types/functions/logical/iferror/index.d.ts +20 -0
  46. package/lib/types/functions/lookup/address/index.d.ts +2 -3
  47. package/lib/types/functions/lookup/function-map.d.ts +2 -2
  48. package/lib/types/functions/lookup/hlookup/__tests__/index.spec.d.ts +16 -0
  49. package/lib/types/functions/lookup/hlookup/index.d.ts +21 -0
  50. package/lib/types/functions/lookup/lookup/__tests__/index.spec.d.ts +16 -0
  51. package/lib/types/functions/lookup/lookup/index.d.ts +23 -0
  52. package/lib/types/functions/lookup/match/__tests__/index.spec.d.ts +16 -0
  53. package/lib/types/functions/lookup/match/index.d.ts +23 -0
  54. package/lib/types/functions/lookup/offset/__tests__/index.spec.d.ts +16 -0
  55. package/lib/types/functions/lookup/offset/index.d.ts +4 -3
  56. package/lib/types/functions/lookup/xlookup/__tests__/index.spec.d.ts +16 -0
  57. package/lib/types/functions/lookup/xlookup/index.d.ts +24 -0
  58. package/lib/types/functions/lookup/xmatch/__tests__/index.spec.d.ts +16 -0
  59. package/lib/types/functions/lookup/xmatch/index.d.ts +23 -0
  60. package/lib/types/functions/math/abs/index.d.ts +1 -2
  61. package/lib/types/functions/math/acos/index.d.ts +1 -2
  62. package/lib/types/functions/math/acosh/index.d.ts +1 -2
  63. package/lib/types/functions/math/acot/index.d.ts +1 -2
  64. package/lib/types/functions/math/sumifs/index.d.ts +3 -2
  65. package/lib/types/functions/meta/compare/index.d.ts +1 -1
  66. package/lib/types/functions/meta/multiply/index.d.ts +1 -1
  67. package/lib/types/functions/statistical/average/index.d.ts +1 -1
  68. package/lib/types/functions/statistical/count/index.d.ts +1 -1
  69. package/lib/types/functions/statistical/counta/index.d.ts +1 -1
  70. package/lib/types/functions/statistical/max/index.d.ts +1 -1
  71. package/lib/types/functions/text/concatenate/__tests__/index.spec.d.ts +16 -0
  72. package/lib/types/functions/text/concatenate/index.d.ts +2 -3
  73. package/lib/types/index.d.ts +3 -1
  74. package/lib/types/models/formula-data.model.d.ts +9 -3
  75. package/lib/types/services/current-data.service.d.ts +4 -1
  76. package/lib/types/services/runtime.service.d.ts +5 -2
  77. package/lib/umd/index.js +1 -1
  78. package/package.json +22 -9
@@ -0,0 +1,22 @@
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
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
18
+ import { NumberValueObject } from '../../../engine/value-object/primitive-object';
19
+ import { BaseFunction } from '../../base-function';
20
+ export declare class Today extends BaseFunction {
21
+ calculate(value?: BaseValueObject): ErrorValueObject | NumberValueObject;
22
+ }
@@ -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,20 @@
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
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class Year extends BaseFunction {
19
+ calculate(serialNumber: BaseValueObject): BaseValueObject;
20
+ }
@@ -13,4 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const functionInformation: never[];
16
+ import { FUNCTION_NAMES_INFORMATION } from './function-names';
17
+ import { Isblank } from './isblank';
18
+ export declare const functionInformation: (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,20 @@
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
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class Isblank extends BaseFunction {
19
+ calculate(value: BaseValueObject): BaseValueObject;
20
+ }
@@ -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,20 @@
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
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class And extends BaseFunction {
19
+ calculate(...logicalValues: BaseValueObject[]): BaseValueObject;
20
+ }
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { And } from './and';
16
17
  import { FUNCTION_NAMES_LOGICAL } from './function-names';
17
18
  import { Makearray } from './makearray';
18
- export declare const functionLogical: (FUNCTION_NAMES_LOGICAL | typeof Makearray)[][];
19
+ export declare const functionLogical: ((FUNCTION_NAMES_LOGICAL | typeof And)[] | (FUNCTION_NAMES_LOGICAL | typeof Makearray)[])[];
@@ -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,22 @@
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
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class If extends BaseFunction {
19
+ calculate(logicalTest: BaseValueObject, valueIfTrue: BaseValueObject, valueIfFalse?: BaseValueObject): BaseValueObject;
20
+ private _getSingleValueObject;
21
+ private _calculateSingleCell;
22
+ }
@@ -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,20 @@
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
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class Iferror extends BaseFunction {
19
+ calculate(value: BaseValueObject, valueIfError: BaseValueObject): BaseValueObject;
20
+ }
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
17
- import { StringValueObject } from '../../../engine/value-object/primitive-object';
16
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
18
17
  import { BaseFunction } from '../../base-function';
19
18
  export declare class Address extends BaseFunction {
20
- calculate(rowNumber: BaseValueObject, columnNumber: BaseValueObject, absNumber?: BaseValueObject, a1?: BaseValueObject, sheetText?: BaseValueObject): ErrorValueObject | StringValueObject;
19
+ calculate(rowNumber: BaseValueObject, columnNumber: BaseValueObject, absNumber?: BaseValueObject, a1?: BaseValueObject, sheetText?: BaseValueObject): BaseValueObject;
21
20
  }
@@ -17,5 +17,5 @@ import { Address } from './address';
17
17
  import { FUNCTION_NAMES_LOOKUP } from './function-names';
18
18
  import { Indirect } from './indirect';
19
19
  import { Offset } from './offset';
20
- import { Vlookup } from './vlookup';
21
- export declare const functionLookup: ((FUNCTION_NAMES_LOOKUP | typeof Address)[] | (FUNCTION_NAMES_LOOKUP | typeof Indirect)[] | (FUNCTION_NAMES_LOOKUP | typeof Offset)[] | (FUNCTION_NAMES_LOOKUP | typeof Vlookup)[])[];
20
+ import { Xlookup } from './xlookup';
21
+ export declare const functionLookup: ((FUNCTION_NAMES_LOOKUP | typeof Address)[] | (FUNCTION_NAMES_LOOKUP | typeof Indirect)[] | (FUNCTION_NAMES_LOOKUP | typeof Offset)[] | (FUNCTION_NAMES_LOOKUP | typeof Xlookup)[])[];
@@ -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,21 @@
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
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class Hlookup extends BaseFunction {
19
+ calculate(lookupValue: BaseValueObject, tableArray: BaseValueObject, rowIndexNum: BaseValueObject, rangeLookup?: BaseValueObject): BaseValueObject;
20
+ private _handleSingleObject;
21
+ }
@@ -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,23 @@
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
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
19
+ export declare class Lookup extends BaseFunction {
20
+ calculate(lookupValue: BaseValueObject, lookupVectorOrArray: ArrayValueObject, resultVector?: BaseValueObject): BaseValueObject;
21
+ private _handleVector;
22
+ private _handleArray;
23
+ }
@@ -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,23 @@
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
+ import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
17
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
+ import { BaseFunction } from '../../base-function';
19
+ export declare class Match extends BaseFunction {
20
+ calculate(lookupValue: BaseValueObject, lookupArray: ArrayValueObject, matchType?: BaseValueObject): BaseValueObject;
21
+ private _handleSingleObject;
22
+ private _getSearchModeValue;
23
+ }
@@ -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 {};
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
- import { CellReferenceObject } from '../../../engine/reference-object/cell-reference-object';
16
+ import type { BaseReferenceObject } from '../../../engine/reference-object/base-reference-object';
17
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
18
  import { BaseFunction } from '../../base-function';
19
19
  export declare class Offset extends BaseFunction {
20
- calculate(reference: FunctionVariantType, rows: FunctionVariantType, columns: FunctionVariantType, height?: FunctionVariantType, width?: FunctionVariantType): CellReferenceObject;
20
+ calculate(reference: BaseValueObject, rows: BaseValueObject, columns: BaseValueObject, height?: BaseValueObject, width?: BaseValueObject): BaseValueObject | BaseReferenceObject;
21
+ private _setDefault;
21
22
  }
@@ -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,24 @@
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
+ import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
17
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
+ import { BaseFunction } from '../../base-function';
19
+ export declare class Xlookup extends BaseFunction {
20
+ calculate(lookupValue: BaseValueObject, lookupArray: ArrayValueObject, returnArray: ArrayValueObject, ifNotFound?: BaseValueObject, matchMode?: BaseValueObject, searchMode?: BaseValueObject): BaseValueObject;
21
+ private _handleExpandObject;
22
+ private _handleSingleObject;
23
+ private _getSearchModeValue;
24
+ }
@@ -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,23 @@
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
+ import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
17
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
+ import { BaseFunction } from '../../base-function';
19
+ export declare class Xmatch extends BaseFunction {
20
+ calculate(lookupValue: BaseValueObject, lookupArray: ArrayValueObject, matchMode?: BaseValueObject, searchMode?: BaseValueObject): BaseValueObject;
21
+ private _handleSingleObject;
22
+ private _getSearchModeValue;
23
+ }
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
16
  import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
17
  import { BaseFunction } from '../../base-function';
19
18
  export declare class Abs extends BaseFunction {
20
- calculate(variant: FunctionVariantType): BaseValueObject;
19
+ calculate(variant: BaseValueObject): BaseValueObject;
21
20
  }
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
16
  import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
17
  import { BaseFunction } from '../../base-function';
19
18
  export declare class Acos extends BaseFunction {
20
- calculate(variant: FunctionVariantType): BaseValueObject;
19
+ calculate(variant: BaseValueObject): BaseValueObject;
21
20
  }
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
16
  import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
17
  import { BaseFunction } from '../../base-function';
19
18
  export declare class Acosh extends BaseFunction {
20
- calculate(variant: FunctionVariantType): BaseValueObject;
19
+ calculate(variant: BaseValueObject): BaseValueObject;
21
20
  }
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
16
  import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
17
  import { BaseFunction } from '../../base-function';
19
18
  export declare class Acot extends BaseFunction {
20
- calculate(variant: FunctionVariantType): BaseValueObject;
19
+ calculate(variant: BaseValueObject): BaseValueObject;
21
20
  }
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
16
+ import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
17
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
17
18
  import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
18
19
  import { BaseFunction } from '../../base-function';
19
20
  export declare class Sumifs extends BaseFunction {
20
- calculate(...variants: FunctionVariantType[]): ErrorValueObject;
21
+ calculate(sumRange: BaseValueObject, ...variants: BaseValueObject[]): ErrorValueObject | ArrayValueObject;
21
22
  }
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { compareToken } from '../../../basics/token';
17
- import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
18
  import { BaseFunction } from '../../base-function';
19
19
  export declare class Compare extends BaseFunction {
20
20
  private _compareType;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
16
+ import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
17
17
  import { BaseFunction } from '../../base-function';
18
18
  export declare class Multiply extends BaseFunction {
19
19
  calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
16
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
17
  import { BaseFunction } from '../../base-function';
18
18
  export declare class Average extends BaseFunction {
19
19
  calculate(...variants: BaseValueObject[]): BaseValueObject;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
16
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
17
  import { BaseFunction } from '../../base-function';
18
18
  export declare class Count extends BaseFunction {
19
19
  calculate(...variants: BaseValueObject[]): BaseValueObject;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
16
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
17
  import { BaseFunction } from '../../base-function';
18
18
  export declare class CountA extends BaseFunction {
19
19
  calculate(...variants: BaseValueObject[]): BaseValueObject;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
16
+ import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
17
  import { BaseFunction } from '../../base-function';
18
18
  export declare class Max extends BaseFunction {
19
19
  calculate(...variants: BaseValueObject[]): BaseValueObject;