@univerjs/engine-formula 0.1.1 → 0.1.3

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 (104) hide show
  1. package/README.md +6 -2
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/index.js +4431 -3502
  4. package/lib/types/basics/__tests__/regex.spec.d.ts +16 -0
  5. package/lib/types/basics/common.d.ts +9 -5
  6. package/lib/types/basics/date.d.ts +8 -0
  7. package/lib/types/basics/match-token.d.ts +5 -0
  8. package/lib/types/basics/regex.d.ts +8 -6
  9. package/lib/types/basics/runtime.d.ts +2 -1
  10. package/lib/types/basics/token-type.d.ts +1 -0
  11. package/lib/types/basics/token.d.ts +1 -0
  12. package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +2 -2
  13. package/lib/types/engine/analysis/lexer-tree-builder.d.ts +5 -1
  14. package/lib/types/engine/analysis/parser.d.ts +0 -1
  15. package/lib/types/engine/ast-node/reference-node.d.ts +3 -3
  16. package/lib/types/engine/reference-object/base-reference-object.d.ts +2 -0
  17. package/lib/types/engine/utils/__tests__/math-kit.spec.d.ts +16 -0
  18. package/lib/types/engine/utils/__tests__/object-covert.spec.d.ts +16 -0
  19. package/lib/types/engine/utils/ast-node-tool.d.ts +18 -0
  20. package/lib/types/engine/utils/compare.d.ts +1 -0
  21. package/lib/types/engine/utils/math-kit.d.ts +7 -0
  22. package/lib/types/engine/utils/object-covert.d.ts +18 -0
  23. package/lib/types/engine/utils/prefixHandler.d.ts +24 -0
  24. package/lib/types/engine/utils/r1c1-reference.d.ts +2 -3
  25. package/lib/types/engine/utils/reference.d.ts +3 -11
  26. package/lib/types/engine/value-object/array-value-object.d.ts +26 -5
  27. package/lib/types/engine/value-object/base-value-object.d.ts +13 -0
  28. package/lib/types/engine/value-object/cube-value-object.d.ts +29 -0
  29. package/lib/types/engine/value-object/primitive-object.d.ts +3 -0
  30. package/lib/types/functions/base-function.d.ts +11 -1
  31. package/lib/types/functions/compatibility/function-map.d.ts +3 -1
  32. package/lib/types/functions/date/day/index.d.ts +1 -0
  33. package/lib/types/functions/date/month/index.d.ts +1 -0
  34. package/lib/types/functions/date/year/index.d.ts +1 -0
  35. package/lib/types/functions/information/iserr/__tests__/index.spec.d.ts +16 -0
  36. package/lib/types/functions/information/iserr/index.d.ts +20 -0
  37. package/lib/types/functions/information/iserror/__tests__/index.spec.d.ts +16 -0
  38. package/lib/types/functions/information/iserror/index.d.ts +20 -0
  39. package/lib/types/functions/information/islogical/__tests__/index.spec.d.ts +16 -0
  40. package/lib/types/functions/information/islogical/index.d.ts +20 -0
  41. package/lib/types/functions/information/isna/__tests__/index.spec.d.ts +16 -0
  42. package/lib/types/functions/information/isna/index.d.ts +20 -0
  43. package/lib/types/functions/information/isnontext/__tests__/index.spec.d.ts +16 -0
  44. package/lib/types/functions/information/isnontext/index.d.ts +20 -0
  45. package/lib/types/functions/information/isnumber/__tests__/index.spec.d.ts +16 -0
  46. package/lib/types/functions/information/isnumber/index.d.ts +20 -0
  47. package/lib/types/functions/information/isref/__tests__/index.spec.d.ts +16 -0
  48. package/lib/types/functions/information/isref/index.d.ts +22 -0
  49. package/lib/types/functions/information/istext/__tests__/index.spec.d.ts +16 -0
  50. package/lib/types/functions/information/istext/index.d.ts +20 -0
  51. package/lib/types/functions/logical/function-map.d.ts +2 -1
  52. package/lib/types/functions/logical/iferror/index.d.ts +2 -1
  53. package/lib/types/functions/lookup/column/__tests__/index.spec.d.ts +16 -0
  54. package/lib/types/functions/lookup/column/index.d.ts +21 -0
  55. package/lib/types/functions/lookup/columns/__tests__/index.spec.d.ts +16 -0
  56. package/lib/types/functions/lookup/columns/index.d.ts +20 -0
  57. package/lib/types/functions/lookup/function-map.d.ts +6 -1
  58. package/lib/types/functions/lookup/index/__test__/index.spec.d.ts +16 -0
  59. package/lib/types/functions/lookup/index/index.d.ts +24 -0
  60. package/lib/types/functions/lookup/lookup/index.d.ts +1 -0
  61. package/lib/types/functions/lookup/row/__tests__/index.spec.d.ts +16 -0
  62. package/lib/types/functions/lookup/row/index.d.ts +21 -0
  63. package/lib/types/functions/lookup/rows/__tests__/index.spec.d.ts +16 -0
  64. package/lib/types/functions/lookup/rows/index.d.ts +20 -0
  65. package/lib/types/functions/lookup/xlookup/index.d.ts +1 -1
  66. package/lib/types/functions/math/function-map.d.ts +3 -1
  67. package/lib/types/functions/math/mod/__tests__/index.spec.d.ts +16 -0
  68. package/lib/types/functions/math/mod/index.d.ts +20 -0
  69. package/lib/types/functions/math/power/__tests__/index.spec.d.ts +16 -0
  70. package/lib/types/functions/math/power/index.d.ts +2 -3
  71. package/lib/types/functions/math/product/__tests__/index.spec.d.ts +16 -0
  72. package/lib/types/functions/math/product/index.d.ts +21 -0
  73. package/lib/types/functions/math/subtotal/__tests__/index.spec.d.ts +16 -0
  74. package/lib/types/functions/math/subtotal/index.d.ts +38 -0
  75. package/lib/types/functions/math/sum/__tests__/index.spec.d.ts +16 -0
  76. package/lib/types/functions/meta/cube/index.d.ts +20 -0
  77. package/lib/types/functions/meta/function-map.d.ts +2 -2
  78. package/lib/types/functions/meta/function-names.d.ts +2 -1
  79. package/lib/types/functions/statistical/average/__tests__/index.spec.d.ts +16 -0
  80. package/lib/types/functions/statistical/count/__tests__/index.spec.d.ts +16 -0
  81. package/lib/types/functions/statistical/counta/__tests__/index.spec.d.ts +16 -0
  82. package/lib/types/functions/statistical/counta/index.d.ts +1 -1
  83. package/lib/types/functions/statistical/function-map.d.ts +2 -2
  84. package/lib/types/functions/statistical/max/__tests__/index.spec.d.ts +16 -0
  85. package/lib/types/functions/statistical/min/__tests__/index.spec.d.ts +16 -0
  86. package/lib/types/functions/statistical/stdev-p/__tests__/index.spec.d.ts +16 -0
  87. package/lib/types/functions/statistical/stdev-p/index.d.ts +20 -0
  88. package/lib/types/functions/statistical/stdev-s/__tests__/index.spec.d.ts +16 -0
  89. package/lib/types/functions/statistical/stdev-s/index.d.ts +20 -0
  90. package/lib/types/functions/statistical/stdeva/__tests__/index.spec.d.ts +16 -0
  91. package/lib/types/functions/statistical/stdeva/index.d.ts +20 -0
  92. package/lib/types/functions/statistical/stdevpa/__tests__/index.spec.d.ts +16 -0
  93. package/lib/types/functions/statistical/stdevpa/index.d.ts +20 -0
  94. package/lib/types/functions/statistical/var-p/__tests__/index.spec.d.ts +16 -0
  95. package/lib/types/functions/statistical/var-p/index.d.ts +20 -0
  96. package/lib/types/functions/statistical/var-s/__tests__/index.spec.d.ts +16 -0
  97. package/lib/types/functions/statistical/var-s/index.d.ts +20 -0
  98. package/lib/types/functions/statistical/vara/__tests__/index.spec.d.ts +16 -0
  99. package/lib/types/functions/statistical/vara/index.d.ts +20 -0
  100. package/lib/types/functions/statistical/varpa/__tests__/index.spec.d.ts +16 -0
  101. package/lib/types/functions/statistical/varpa/index.d.ts +20 -0
  102. package/lib/types/index.d.ts +4 -3
  103. package/lib/umd/index.js +1 -1
  104. package/package.json +7 -7
@@ -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 Product extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject;
20
+ private _multiplyArray;
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,38 @@
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 { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ import type { ArrayValueObject } from '../../..';
19
+ export declare class Subtotal extends BaseFunction {
20
+ needsReferenceObject: boolean;
21
+ calculate(functionNum: FunctionVariantType, ...refs: FunctionVariantType[]): ArrayValueObject | FunctionVariantType;
22
+ private _handleSingleObject;
23
+ private _getIndexNumValue;
24
+ private _average;
25
+ private _count;
26
+ private _counta;
27
+ private _max;
28
+ private _min;
29
+ private _product;
30
+ private _stdev;
31
+ private _stdevp;
32
+ private _sum;
33
+ private _var;
34
+ private _varp;
35
+ private _flattenRefArray;
36
+ private _isRowHidden;
37
+ private _isBlankArrayObject;
38
+ }
@@ -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 Cube extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject;
20
+ }
@@ -13,6 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Divided } from './divided';
16
+ import { Cube } from './cube';
17
17
  import { FUNCTION_NAMES_META } from './function-names';
18
- export declare const functionMeta: (FUNCTION_NAMES_META | typeof Divided)[][];
18
+ export declare const functionMeta: (FUNCTION_NAMES_META | typeof Cube)[][];
@@ -19,5 +19,6 @@ export declare enum FUNCTION_NAMES_META {
19
19
  MINUS = "MINUS",
20
20
  MULTIPLY = "MULTIPLY",
21
21
  PLUS = "PLUS",
22
- UNION = "UNION"
22
+ UNION = "UNION",
23
+ CUBE = "CUBE"
23
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,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,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 {};
@@ -15,6 +15,6 @@
15
15
  */
16
16
  import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
17
17
  import { BaseFunction } from '../../base-function';
18
- export declare class CountA extends BaseFunction {
18
+ export declare class Counta extends BaseFunction {
19
19
  calculate(...variants: BaseValueObject[]): BaseValueObject;
20
20
  }
@@ -13,6 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Average } from './average';
17
16
  import { FUNCTION_NAMES_STATISTICAL } from './function-names';
18
- export declare const functionStatistical: (FUNCTION_NAMES_STATISTICAL | typeof Average)[][];
17
+ import { StdevP } from './stdev-p';
18
+ export declare const functionStatistical: (FUNCTION_NAMES_STATISTICAL | typeof StdevP)[][];
@@ -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,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,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 StdevP extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 StdevS extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 Stdeva extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 Stdevpa extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 VarP extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 VarS extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 Vara extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
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 Varpa extends BaseFunction {
19
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
20
+ }
@@ -20,8 +20,7 @@ export { FunctionType, type IFunctionInfo, type IFunctionParam } from './basics/
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 { matchToken } from './basics/token';
24
- export { compareToken } from './basics/token';
23
+ export { matchToken, compareToken, operatorToken } from './basics/token';
25
24
  export { RegisterFunctionMutation } from './commands/mutations/register-function.mutation';
26
25
  export { type ISetArrayFormulaDataMutationParams, SetArrayFormulaDataMutation, SetArrayFormulaDataUndoMutationFactory, } from './commands/mutations/set-array-formula-data.mutation';
27
26
  export { RemoveDefinedNameMutation, SetDefinedNameMutation } from './commands/mutations/set-defined-name.mutation';
@@ -36,7 +35,7 @@ export { LexerTreeBuilder } from './engine/analysis/lexer-tree-builder';
36
35
  export { BaseReferenceObject, type FunctionVariantType } from './engine/reference-object/base-reference-object';
37
36
  export { RangeReferenceObject } from './engine/reference-object/range-reference-object';
38
37
  export { deserializeRangeForR1C1 } from './engine/utils/r1c1-reference';
39
- export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, type IAbsoluteRefTypeForRange, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, UNIT_NAME_REGEX, } from './engine/utils/reference';
38
+ export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, type IAbsoluteRefTypeForRange, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, } from './engine/utils/reference';
40
39
  export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from './engine/utils/sequence';
41
40
  export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
42
41
  export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
@@ -88,3 +87,5 @@ export { FormulaExecuteStageType, type IExecutionInProgressParams } from './serv
88
87
  export { FormulaExecutedStateType, type IAllRuntimeData } from './services/runtime.service';
89
88
  export { SetNumfmtFormulaDataMutation } from './commands/mutations/set-numfmt-formula-data.mutation';
90
89
  export type { ISetNumfmtFormulaDataMutationParams } from './commands/mutations/set-numfmt-formula-data.mutation';
90
+ export { isReferenceString } from './basics/regex';
91
+ export { matchRefDrawToken } from './basics/match-token';