@univerjs/engine-formula 0.2.11 → 0.2.13

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 (94) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +2101 -501
  3. package/lib/types/basics/__tests__/math.spec.d.ts +16 -0
  4. package/lib/types/basics/math.d.ts +21 -0
  5. package/lib/types/controller/config.schema.d.ts +10 -0
  6. package/lib/types/controller/formula.controller.d.ts +3 -5
  7. package/lib/types/controller/set-dependency.controller.d.ts +1 -1
  8. package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +6 -6
  9. package/lib/types/engine/dependency/dependency-tree.d.ts +22 -2
  10. package/lib/types/engine/dependency/range-block-util.d.ts +15 -0
  11. package/lib/types/engine/reference-object/base-reference-object.d.ts +6 -6
  12. package/lib/types/engine/value-object/array-value-object.d.ts +1 -1
  13. package/lib/types/engine/value-object/lambda-value-object.d.ts +3 -2
  14. package/lib/types/functions/__tests__/create-function-test-bed.d.ts +6 -6
  15. package/lib/types/functions/base-function.d.ts +1 -1
  16. package/lib/types/functions/information/isformula/__tests__/index.spec.d.ts +16 -0
  17. package/lib/types/functions/information/isformula/index.d.ts +9 -0
  18. package/lib/types/functions/information/n/__tests__/index.spec.d.ts +16 -0
  19. package/lib/types/functions/information/n/index.d.ts +7 -0
  20. package/lib/types/functions/information/na/__tests__/index.spec.d.ts +16 -0
  21. package/lib/types/functions/information/na/index.d.ts +7 -0
  22. package/lib/types/functions/logical/bycol/__test__/index.spec.d.ts +16 -0
  23. package/lib/types/functions/logical/bycol/index.d.ts +7 -0
  24. package/lib/types/functions/logical/byrow/__test__/index.spec.d.ts +16 -0
  25. package/lib/types/functions/logical/byrow/index.d.ts +7 -0
  26. package/lib/types/functions/logical/function-map.d.ts +1 -1
  27. package/lib/types/functions/logical/map/__test__/index.spec.d.ts +16 -0
  28. package/lib/types/functions/logical/map/index.d.ts +8 -0
  29. package/lib/types/functions/logical/reduce/__test__/index.spec.d.ts +16 -0
  30. package/lib/types/functions/logical/reduce/index.d.ts +8 -0
  31. package/lib/types/functions/logical/scan/__test__/index.spec.d.ts +16 -0
  32. package/lib/types/functions/logical/scan/index.d.ts +8 -0
  33. package/lib/types/functions/lookup/drop/__tests__/index.spec.d.ts +16 -0
  34. package/lib/types/functions/lookup/drop/index.d.ts +9 -0
  35. package/lib/types/functions/lookup/expand/__tests__/index.spec.d.ts +16 -0
  36. package/lib/types/functions/lookup/expand/index.d.ts +9 -0
  37. package/lib/types/functions/lookup/function-map.d.ts +1 -1
  38. package/lib/types/functions/lookup/take/__tests__/index.spec.d.ts +16 -0
  39. package/lib/types/functions/lookup/take/index.d.ts +9 -0
  40. package/lib/types/functions/lookup/tocol/__tests__/index.spec.d.ts +16 -0
  41. package/lib/types/functions/lookup/tocol/index.d.ts +10 -0
  42. package/lib/types/functions/lookup/torow/__tests__/index.spec.d.ts +16 -0
  43. package/lib/types/functions/lookup/torow/index.d.ts +10 -0
  44. package/lib/types/functions/lookup/wrapcols/__tests__/index.spec.d.ts +16 -0
  45. package/lib/types/functions/lookup/wrapcols/index.d.ts +8 -0
  46. package/lib/types/functions/lookup/wraprows/__tests__/index.spec.d.ts +16 -0
  47. package/lib/types/functions/lookup/wraprows/index.d.ts +8 -0
  48. package/lib/types/functions/math/combin/__tests__/index.spec.d.ts +16 -0
  49. package/lib/types/functions/math/combin/index.d.ts +7 -0
  50. package/lib/types/functions/math/combina/__tests__/index.spec.d.ts +16 -0
  51. package/lib/types/functions/math/combina/index.d.ts +7 -0
  52. package/lib/types/functions/math/fact/__tests__/index.spec.d.ts +16 -0
  53. package/lib/types/functions/math/fact/index.d.ts +8 -0
  54. package/lib/types/functions/math/factdouble/__tests__/index.spec.d.ts +16 -0
  55. package/lib/types/functions/math/factdouble/index.d.ts +8 -0
  56. package/lib/types/functions/math/gcd/__tests__/index.spec.d.ts +16 -0
  57. package/lib/types/functions/math/gcd/index.d.ts +8 -0
  58. package/lib/types/functions/math/int/__tests__/index.spec.d.ts +16 -0
  59. package/lib/types/functions/math/int/index.d.ts +8 -0
  60. package/lib/types/functions/math/lcm/__tests__/index.spec.d.ts +16 -0
  61. package/lib/types/functions/math/lcm/index.d.ts +8 -0
  62. package/lib/types/functions/math/mdeterm/__tests__/index.spec.d.ts +16 -0
  63. package/lib/types/functions/math/mdeterm/index.d.ts +7 -0
  64. package/lib/types/functions/math/minverse/__tests__/index.spec.d.ts +16 -0
  65. package/lib/types/functions/math/minverse/index.d.ts +7 -0
  66. package/lib/types/functions/math/mmult/__tests__/index.spec.d.ts +16 -0
  67. package/lib/types/functions/math/mmult/index.d.ts +9 -0
  68. package/lib/types/functions/math/mod/index.d.ts +1 -1
  69. package/lib/types/functions/math/multinomial/__tests__/index.spec.d.ts +16 -0
  70. package/lib/types/functions/math/multinomial/index.d.ts +8 -0
  71. package/lib/types/functions/math/munit/__tests__/index.spec.d.ts +16 -0
  72. package/lib/types/functions/math/munit/index.d.ts +8 -0
  73. package/lib/types/functions/math/quotient/__tests__/index.spec.d.ts +16 -0
  74. package/lib/types/functions/math/quotient/index.d.ts +7 -0
  75. package/lib/types/functions/math/sequence/__tests__/index.spec.d.ts +16 -0
  76. package/lib/types/functions/math/sequence/index.d.ts +8 -0
  77. package/lib/types/functions/math/seriessum/__tests__/index.spec.d.ts +16 -0
  78. package/lib/types/functions/math/seriessum/index.d.ts +8 -0
  79. package/lib/types/functions/math/sign/__tests__/index.spec.d.ts +16 -0
  80. package/lib/types/functions/math/sign/index.d.ts +8 -0
  81. package/lib/types/models/__tests__/create-command-test-bed.d.ts +6 -6
  82. package/lib/types/models/formula-data.model.d.ts +3 -2
  83. package/lib/types/plugin.d.ts +5 -10
  84. package/lib/types/services/active-dirty-manager.service.d.ts +1 -1
  85. package/lib/types/services/current-data.service.d.ts +1 -1
  86. package/lib/types/services/defined-names.service.d.ts +1 -1
  87. package/lib/types/services/dependency-manager.service.d.ts +5 -10
  88. package/lib/types/services/feature-calculation-manager.service.d.ts +1 -1
  89. package/lib/types/services/function.service.d.ts +1 -1
  90. package/lib/types/services/other-formula-manager.service.d.ts +1 -1
  91. package/lib/types/services/runtime.service.d.ts +1 -1
  92. package/lib/types/services/super-table.service.d.ts +1 -1
  93. package/lib/umd/index.js +2 -2
  94. package/package.json +9 -9
@@ -0,0 +1,10 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Tocol extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(array: BaseValueObject, ignore?: BaseValueObject, scanByColumn?: BaseValueObject): BaseValueObject;
7
+ private _getArrayValueByColumn;
8
+ private _getArrayValueByRow;
9
+ private _isIgnore;
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,10 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Torow extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(array: BaseValueObject, ignore?: BaseValueObject, scanByColumn?: BaseValueObject): BaseValueObject;
7
+ private _getArrayValueByColumn;
8
+ private _getArrayValueByRow;
9
+ private _isIgnore;
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
+ export declare class Wrapcols extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(vector: BaseValueObject, wrapCount: BaseValueObject, padWith?: BaseValueObject): BaseValueObject;
7
+ private _getWrapArray;
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
+ export declare class Wraprows extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(vector: BaseValueObject, wrapCount: BaseValueObject, padWith?: BaseValueObject): BaseValueObject;
7
+ private _getWrapArray;
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,7 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Combin extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject, numberChosen: BaseValueObject): BaseValueObject;
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,7 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Combina extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject, numberChosen: BaseValueObject): BaseValueObject;
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,8 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Fact extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
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
+ export declare class Factdouble extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
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
+ export declare class Gcd extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(...variants: BaseValueObject[]): BaseValueObject;
7
+ private _handleSingleObject;
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 { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class Int extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
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
+ export declare class Lcm extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(...variants: BaseValueObject[]): BaseValueObject;
7
+ private _handleSingleObject;
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,7 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Mdeterm extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(array: BaseValueObject): BaseValueObject;
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,7 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Minverse extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(array: BaseValueObject): BaseValueObject;
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,9 @@
1
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
+ import { BaseFunction } from '../../base-function';
3
+ export declare class Mmult extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(array1: BaseValueObject, array2: BaseValueObject): BaseValueObject;
7
+ private _getMatrix;
8
+ private _getResult;
9
+ }
@@ -1,5 +1,5 @@
1
- import { BaseValueObject } from '../../../engine/value-object/base-value-object';
2
1
  import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
3
  export declare class Mod extends BaseFunction {
4
4
  minParams: number;
5
5
  maxParams: number;
@@ -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
+ export declare class Multinomial extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(...variants: BaseValueObject[]): BaseValueObject;
7
+ private _handleSingleObject;
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
+ export declare class Munit extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(dimension: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
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,7 @@
1
+ import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class Quotient extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(numerator: BaseValueObject, denominator: BaseValueObject): BaseValueObject;
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,8 @@
1
+ import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class Sequence extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(rows: BaseValueObject, columns?: BaseValueObject, start?: BaseValueObject, step?: BaseValueObject): BaseValueObject;
7
+ private _getResult;
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 { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class Seriessum extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(x: BaseValueObject, n: BaseValueObject, m: BaseValueObject, coefficients: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
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 { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+ export declare class Sign extends BaseFunction {
4
+ minParams: number;
5
+ maxParams: number;
6
+ calculate(number: BaseValueObject): BaseValueObject;
7
+ private _handleSingleObject;
8
+ }
@@ -2,12 +2,12 @@ import { Dependency, IWorkbookData, Univer } from '@univerjs/core';
2
2
  export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
3
3
  univer: Univer;
4
4
  get: {
5
- <T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
6
- <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
7
- <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
8
- <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
9
- <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
10
- <T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
5
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
6
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
7
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
8
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
9
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
10
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
11
11
  };
12
12
  sheet: import('@univerjs/core').Workbook;
13
13
  };
@@ -1,6 +1,6 @@
1
- import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
2
- import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData, IFormulaDataItem, IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap } from '../basics/common';
1
+ import { Disposable, IUniverInstanceService, ObjectMatrix, ICellData, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
3
2
  import { LexerTreeBuilder } from '../engine/analysis/lexer-tree-builder';
3
+ import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData, IFormulaDataItem, IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap } from '../basics/common';
4
4
  import { IFormulaIdMap } from './utils/formula-data-util';
5
5
  export interface IRangeChange {
6
6
  oldCell: IRange;
@@ -13,6 +13,7 @@ export declare class FormulaDataModel extends Disposable {
13
13
  private _arrayFormulaRange;
14
14
  private _arrayFormulaCellData;
15
15
  constructor(_univerInstanceService: IUniverInstanceService, _lexerTreeBuilder: LexerTreeBuilder);
16
+ dispose(): void;
16
17
  clearPreviousArrayFormulaCellData(clearArrayFormulaCellData: IRuntimeUnitDataType): void;
17
18
  mergeArrayFormulaCellData(unitData: IRuntimeUnitDataType): void;
18
19
  getFormulaData(): IFormulaData;
@@ -1,16 +1,11 @@
1
- import { Injector, Plugin, Ctor } from '@univerjs/core';
2
- import { IFunctionNames } from './basics/function';
3
- import { BaseFunction } from './functions/base-function';
4
- interface IUniverFormulaEngine {
5
- notExecuteFormula?: boolean;
6
- function?: Array<[Ctor<BaseFunction>, IFunctionNames]>;
7
- }
1
+ import { IConfigService, Injector, Plugin } from '@univerjs/core';
2
+ import { IUniverEngineFormulaConfig } from './controller/config.schema';
8
3
  export declare class UniverFormulaEnginePlugin extends Plugin {
9
- private _config;
4
+ private readonly _config;
10
5
  protected _injector: Injector;
6
+ private readonly _configService;
11
7
  static pluginName: string;
12
- constructor(_config: IUniverFormulaEngine, _injector: Injector);
8
+ constructor(_config: Partial<IUniverEngineFormulaConfig> | undefined, _injector: Injector, _configService: IConfigService);
13
9
  onStarting(): void;
14
10
  private _initialize;
15
11
  }
16
- export {};
@@ -31,4 +31,4 @@ export declare class ActiveDirtyManagerService extends Disposable implements IAc
31
31
  register(commandId: string, dirtyConversion: IDirtyConversionManagerParams): void;
32
32
  getDirtyConversionMap(): Map<string, IDirtyConversionManagerParams>;
33
33
  }
34
- export declare const IActiveDirtyManagerService: import('@univerjs/core').IdentifierDecorator<ActiveDirtyManagerService>;
34
+ export declare const IActiveDirtyManagerService: import('@wendellhu/redi').IdentifierDecorator<ActiveDirtyManagerService>;
@@ -81,4 +81,4 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
81
81
  private _mergeNameMap;
82
82
  private _loadSheetData;
83
83
  }
84
- export declare const IFormulaCurrentConfigService: import('@univerjs/core').IdentifierDecorator<FormulaCurrentConfigService>;
84
+ export declare const IFormulaCurrentConfigService: import('@wendellhu/redi').IdentifierDecorator<FormulaCurrentConfigService>;
@@ -59,4 +59,4 @@ export declare class DefinedNamesService extends Disposable implements IDefinedN
59
59
  hasDefinedName(unitId: string): boolean;
60
60
  private _update;
61
61
  }
62
- export declare const IDefinedNamesService: import('@univerjs/core').IdentifierDecorator<DefinedNamesService>;
62
+ export declare const IDefinedNamesService: import('@wendellhu/redi').IdentifierDecorator<DefinedNamesService>;