@univerjs/engine-formula 0.1.4 → 0.1.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 (167) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +2662 -2498
  3. package/lib/types/basics/calculate.d.ts +1 -15
  4. package/lib/types/basics/common.d.ts +11 -17
  5. package/lib/types/basics/dirty.d.ts +2 -16
  6. package/lib/types/basics/function.d.ts +18 -32
  7. package/lib/types/basics/match-token.d.ts +1 -15
  8. package/lib/types/basics/object-class-type.d.ts +2 -15
  9. package/lib/types/basics/runtime.d.ts +2 -16
  10. package/lib/types/commands/mutations/register-function.mutation.d.ts +2 -16
  11. package/lib/types/commands/mutations/set-array-formula-data.mutation.d.ts +4 -18
  12. package/lib/types/commands/mutations/set-defined-name.mutation.d.ts +2 -16
  13. package/lib/types/commands/mutations/set-feature-calculation.mutation.d.ts +3 -17
  14. package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +5 -18
  15. package/lib/types/commands/mutations/set-formula-data.mutation.d.ts +3 -17
  16. package/lib/types/commands/mutations/set-numfmt-formula-data.mutation.d.ts +3 -17
  17. package/lib/types/commands/mutations/set-other-formula.mutation.d.ts +15 -19
  18. package/lib/types/commands/mutations/set-super-table.mutation.d.ts +4 -18
  19. package/lib/types/commands/mutations/unregister-function.mutation.d.ts +2 -16
  20. package/lib/types/controller/calculate.controller.d.ts +3 -17
  21. package/lib/types/controller/formula.controller.d.ts +5 -20
  22. package/lib/types/controller/register-function.controller.d.ts +3 -17
  23. package/lib/types/controller/set-defined-name.controller.d.ts +2 -16
  24. package/lib/types/controller/set-feature-calculation.controller.d.ts +2 -16
  25. package/lib/types/controller/set-other-formula.controller.d.ts +2 -16
  26. package/lib/types/controller/set-super-table.controller.d.ts +2 -16
  27. package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +11 -26
  28. package/lib/types/engine/analysis/lexer-node.d.ts +3 -17
  29. package/lib/types/engine/analysis/lexer-tree-builder.d.ts +5 -19
  30. package/lib/types/engine/analysis/lexer.d.ts +5 -19
  31. package/lib/types/engine/analysis/parser.d.ts +14 -29
  32. package/lib/types/engine/ast-node/ast-root-node.d.ts +4 -18
  33. package/lib/types/engine/ast-node/base-ast-node-factory.d.ts +3 -18
  34. package/lib/types/engine/ast-node/base-ast-node.d.ts +6 -21
  35. package/lib/types/engine/ast-node/function-node.d.ts +10 -24
  36. package/lib/types/engine/ast-node/lambda-node.d.ts +6 -20
  37. package/lib/types/engine/ast-node/lambda-parameter-node.d.ts +4 -19
  38. package/lib/types/engine/ast-node/null-node.d.ts +2 -16
  39. package/lib/types/engine/ast-node/operator-node.d.ts +6 -20
  40. package/lib/types/engine/ast-node/prefix-node.d.ts +8 -23
  41. package/lib/types/engine/ast-node/reference-node.d.ts +10 -25
  42. package/lib/types/engine/ast-node/suffix-node.d.ts +7 -22
  43. package/lib/types/engine/ast-node/union-node.d.ts +5 -19
  44. package/lib/types/engine/ast-node/value-node.d.ts +4 -18
  45. package/lib/types/engine/dependency/dependency-tree.d.ts +4 -19
  46. package/lib/types/engine/dependency/formula-dependency.d.ts +11 -25
  47. package/lib/types/engine/interpreter/interpreter.d.ts +6 -20
  48. package/lib/types/engine/reference-object/base-reference-object.d.ts +20 -32
  49. package/lib/types/engine/reference-object/cell-reference-object.d.ts +4 -18
  50. package/lib/types/engine/reference-object/column-reference-object.d.ts +2 -16
  51. package/lib/types/engine/reference-object/range-reference-object.d.ts +2 -16
  52. package/lib/types/engine/reference-object/row-reference-object.d.ts +2 -16
  53. package/lib/types/engine/reference-object/table-reference-object.d.ts +2 -17
  54. package/lib/types/engine/utils/array-object.d.ts +3 -17
  55. package/lib/types/engine/utils/ast-node-tool.d.ts +3 -17
  56. package/lib/types/engine/utils/cell.d.ts +2 -16
  57. package/lib/types/engine/utils/compare.d.ts +1 -15
  58. package/lib/types/engine/utils/function-definition.d.ts +1 -15
  59. package/lib/types/engine/utils/node-type.d.ts +5 -19
  60. package/lib/types/engine/utils/object-compare.d.ts +2 -16
  61. package/lib/types/engine/utils/prefixHandler.d.ts +4 -18
  62. package/lib/types/engine/utils/r1c1-reference.d.ts +2 -16
  63. package/lib/types/engine/utils/reference.d.ts +2 -17
  64. package/lib/types/engine/utils/sequence.d.ts +2 -16
  65. package/lib/types/engine/utils/value-object.d.ts +6 -0
  66. package/lib/types/engine/value-object/array-value-object.d.ts +5 -20
  67. package/lib/types/engine/value-object/base-value-object.d.ts +6 -21
  68. package/lib/types/engine/value-object/cube-value-object.d.ts +3 -17
  69. package/lib/types/engine/value-object/lambda-value-object.d.ts +4 -18
  70. package/lib/types/engine/value-object/primitive-object.d.ts +3 -17
  71. package/lib/types/functions/__tests__/create-function-test-bed.d.ts +13 -26
  72. package/lib/types/functions/base-function.d.ts +8 -24
  73. package/lib/types/functions/compatibility/function-map.d.ts +2 -16
  74. package/lib/types/functions/date/date/index.d.ts +2 -16
  75. package/lib/types/functions/date/day/index.d.ts +2 -16
  76. package/lib/types/functions/date/edate/index.d.ts +2 -16
  77. package/lib/types/functions/date/function-map.d.ts +2 -16
  78. package/lib/types/functions/date/month/index.d.ts +2 -16
  79. package/lib/types/functions/date/today/index.d.ts +3 -18
  80. package/lib/types/functions/date/year/index.d.ts +2 -16
  81. package/lib/types/functions/information/function-map.d.ts +2 -16
  82. package/lib/types/functions/information/isblank/index.d.ts +2 -16
  83. package/lib/types/functions/information/iserr/index.d.ts +2 -16
  84. package/lib/types/functions/information/iserror/index.d.ts +2 -16
  85. package/lib/types/functions/information/islogical/index.d.ts +2 -16
  86. package/lib/types/functions/information/isna/index.d.ts +2 -16
  87. package/lib/types/functions/information/isnontext/index.d.ts +2 -16
  88. package/lib/types/functions/information/isnumber/index.d.ts +2 -16
  89. package/lib/types/functions/information/isref/index.d.ts +3 -17
  90. package/lib/types/functions/information/istext/index.d.ts +2 -16
  91. package/lib/types/functions/logical/and/index.d.ts +2 -16
  92. package/lib/types/functions/logical/function-map.d.ts +4 -18
  93. package/lib/types/functions/logical/if/index.d.ts +2 -16
  94. package/lib/types/functions/logical/iferror/index.d.ts +3 -17
  95. package/lib/types/functions/logical/lambda/index.d.ts +2 -16
  96. package/lib/types/functions/logical/makearray/index.d.ts +3 -17
  97. package/lib/types/functions/logical/or/index.d.ts +2 -16
  98. package/lib/types/functions/lookup/address/index.d.ts +2 -16
  99. package/lib/types/functions/lookup/column/index.d.ts +3 -17
  100. package/lib/types/functions/lookup/columns/index.d.ts +2 -16
  101. package/lib/types/functions/lookup/function-map.d.ts +12 -22
  102. package/lib/types/functions/lookup/hlookup/index.d.ts +2 -16
  103. package/lib/types/functions/lookup/index/index.d.ts +3 -19
  104. package/lib/types/functions/lookup/indirect/index.d.ts +3 -17
  105. package/lib/types/functions/lookup/lookup/index.d.ts +3 -17
  106. package/lib/types/functions/lookup/match/index.d.ts +3 -17
  107. package/lib/types/functions/lookup/offset/index.d.ts +4 -18
  108. package/lib/types/functions/lookup/row/index.d.ts +3 -17
  109. package/lib/types/functions/lookup/rows/index.d.ts +2 -16
  110. package/lib/types/functions/lookup/vlookup/index.d.ts +5 -17
  111. package/lib/types/functions/lookup/xlookup/index.d.ts +3 -17
  112. package/lib/types/functions/lookup/xmatch/index.d.ts +3 -17
  113. package/lib/types/functions/math/abs/index.d.ts +2 -16
  114. package/lib/types/functions/math/acos/index.d.ts +2 -16
  115. package/lib/types/functions/math/acosh/index.d.ts +2 -16
  116. package/lib/types/functions/math/acot/index.d.ts +2 -16
  117. package/lib/types/functions/math/function-map.d.ts +4 -18
  118. package/lib/types/functions/math/mod/index.d.ts +2 -16
  119. package/lib/types/functions/math/power/index.d.ts +2 -16
  120. package/lib/types/functions/math/product/index.d.ts +2 -16
  121. package/lib/types/functions/math/subtotal/index.d.ts +3 -17
  122. package/lib/types/functions/math/sum/index.d.ts +2 -16
  123. package/lib/types/functions/math/sumif/index.d.ts +2 -16
  124. package/lib/types/functions/math/sumifs/index.d.ts +3 -18
  125. package/lib/types/functions/meta/compare/index.d.ts +3 -17
  126. package/lib/types/functions/meta/cube/index.d.ts +2 -16
  127. package/lib/types/functions/meta/divided/index.d.ts +2 -16
  128. package/lib/types/functions/meta/function-map.d.ts +2 -16
  129. package/lib/types/functions/meta/minus/index.d.ts +2 -16
  130. package/lib/types/functions/meta/multiply/index.d.ts +2 -16
  131. package/lib/types/functions/meta/plus/index.d.ts +2 -16
  132. package/lib/types/functions/statistical/average/index.d.ts +2 -16
  133. package/lib/types/functions/statistical/count/index.d.ts +2 -16
  134. package/lib/types/functions/statistical/counta/index.d.ts +2 -16
  135. package/lib/types/functions/statistical/function-map.d.ts +2 -16
  136. package/lib/types/functions/statistical/max/index.d.ts +2 -16
  137. package/lib/types/functions/statistical/min/index.d.ts +2 -16
  138. package/lib/types/functions/statistical/stdev-p/index.d.ts +3 -17
  139. package/lib/types/functions/statistical/stdev-s/index.d.ts +3 -17
  140. package/lib/types/functions/statistical/stdeva/index.d.ts +3 -17
  141. package/lib/types/functions/statistical/stdevpa/index.d.ts +3 -17
  142. package/lib/types/functions/statistical/var-p/index.d.ts +3 -17
  143. package/lib/types/functions/statistical/var-s/index.d.ts +3 -17
  144. package/lib/types/functions/statistical/vara/index.d.ts +3 -17
  145. package/lib/types/functions/statistical/varpa/index.d.ts +3 -17
  146. package/lib/types/functions/text/concatenate/index.d.ts +2 -16
  147. package/lib/types/functions/text/function-map.d.ts +2 -16
  148. package/lib/types/functions/text/len/index.d.ts +2 -16
  149. package/lib/types/functions/text/lenb/index.d.ts +2 -16
  150. package/lib/types/functions/text/text/index.d.ts +2 -16
  151. package/lib/types/index.d.ts +5 -3
  152. package/lib/types/models/__tests__/create-command-test-bed.d.ts +10 -25
  153. package/lib/types/models/formula-data.model.d.ts +3 -18
  154. package/lib/types/plugin.d.ts +4 -19
  155. package/lib/types/services/active-dirty-manager.service.d.ts +34 -0
  156. package/lib/types/services/calculate-formula.service.d.ts +12 -27
  157. package/lib/types/services/current-data.service.d.ts +7 -19
  158. package/lib/types/services/defined-names.service.d.ts +3 -18
  159. package/lib/types/services/feature-calculation-manager.service.d.ts +5 -20
  160. package/lib/types/services/function.service.d.ts +5 -20
  161. package/lib/types/services/other-formula-manager.service.d.ts +8 -19
  162. package/lib/types/services/runtime.service.d.ts +6 -21
  163. package/lib/types/services/super-table.service.d.ts +4 -19
  164. package/lib/umd/index.js +1 -1
  165. package/package.json +6 -6
  166. package/lib/types/engine/utils/object-covert.d.ts +0 -18
  167. /package/lib/types/engine/utils/__tests__/{object-covert.spec.d.ts → value-object.spec.d.ts} +0 -0
@@ -1,20 +1,6 @@
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
1
  import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+
18
4
  export declare class Varpa extends BaseFunction {
19
- calculate(...variants: BaseValueObject[]): BaseValueObject | import("../../..").ArrayValueObject;
5
+ calculate(...variants: BaseValueObject[]): BaseValueObject | import('../../..').ArrayValueObject;
20
6
  }
@@ -1,20 +1,6 @@
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
1
  import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+
18
4
  export declare class Concatenate extends BaseFunction {
19
5
  calculate(...textValues: BaseValueObject[]): BaseValueObject;
20
6
  }
@@ -1,18 +1,4 @@
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 { Concatenate } from './concatenate';
17
1
  import { FUNCTION_NAMES_TEXT } from './function-names';
2
+ import { Concatenate } from './concatenate';
3
+
18
4
  export declare const functionText: (FUNCTION_NAMES_TEXT | typeof Concatenate)[][];
@@ -1,20 +1,6 @@
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
1
  import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+
18
4
  export declare class Len extends BaseFunction {
19
5
  calculate(text: BaseValueObject): BaseValueObject;
20
6
  private _handleSingleText;
@@ -1,20 +1,6 @@
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
1
  import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+
18
4
  export declare class Lenb extends BaseFunction {
19
5
  calculate(text: BaseValueObject): BaseValueObject;
20
6
  private _handleSingleText;
@@ -1,20 +1,6 @@
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
1
  import { BaseFunction } from '../../base-function';
2
+ import { BaseValueObject } from '../../../engine/value-object/base-value-object';
3
+
18
4
  export declare class Text extends BaseFunction {
19
5
  calculate(text: BaseValueObject, formatText: BaseValueObject): BaseValueObject;
20
6
  }
@@ -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
- export type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap, INumfmtItemMap, } from './basics/common';
16
+ export type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap, INumfmtItemMap, IDirtyUnitOtherFormulaMap, } from './basics/common';
17
17
  export { isInDirtyRange } from './basics/dirty';
18
18
  export { ErrorType } from './basics/error-type';
19
19
  export { FunctionType, type IFunctionInfo, type IFunctionParam } from './basics/function';
@@ -27,7 +27,7 @@ export { RemoveDefinedNameMutation, SetDefinedNameMutation } from './commands/mu
27
27
  export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation, } from './commands/mutations/set-feature-calculation.mutation';
28
28
  export { type ISetFormulaCalculationNotificationMutation, type ISetFormulaCalculationResultMutation, type ISetFormulaCalculationStartMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationResultMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, } from './commands/mutations/set-formula-calculation.mutation';
29
29
  export { type ISetFormulaDataMutationParams, SetFormulaDataMutation, } from './commands/mutations/set-formula-data.mutation';
30
- export { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from './commands/mutations/set-other-formula.mutation';
30
+ export { RemoveOtherFormulaMutation, SetOtherFormulaMutation, type ISetOtherFormulaMutationParams, type IRemoveOtherFormulaMutationParams } from './commands/mutations/set-other-formula.mutation';
31
31
  export { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation, } from './commands/mutations/set-super-table.mutation';
32
32
  export { UnregisterFunctionMutation } from './commands/mutations/unregister-function.mutation';
33
33
  export { LexerNode } from './engine/analysis/lexer-node';
@@ -39,6 +39,7 @@ export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsol
39
39
  export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from './engine/utils/sequence';
40
40
  export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
41
41
  export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
42
+ export { BooleanValue } from './basics/common';
42
43
  export type { PrimitiveValueType } from './engine/value-object/primitive-object';
43
44
  export { NumberValueObject } from './engine/value-object/primitive-object';
44
45
  export { BooleanValueObject } from './engine/value-object/primitive-object';
@@ -82,7 +83,7 @@ export { CalculateFormulaService } from './services/calculate-formula.service';
82
83
  export { FeatureCalculationManagerService, IFeatureCalculationManagerService, } from './services/feature-calculation-manager.service';
83
84
  export { FunctionService } from './services/function.service';
84
85
  export { IFunctionService } from './services/function.service';
85
- export { type IOtherFormulaManagerService, OtherFormulaManagerService } from './services/other-formula-manager.service';
86
+ export { IOtherFormulaManagerService, OtherFormulaManagerService } from './services/other-formula-manager.service';
86
87
  export { FormulaExecuteStageType, type IExecutionInProgressParams } from './services/runtime.service';
87
88
  export { FormulaExecutedStateType, type IAllRuntimeData } from './services/runtime.service';
88
89
  export { SetNumfmtFormulaDataMutation } from './commands/mutations/set-numfmt-formula-data.mutation';
@@ -92,3 +93,4 @@ export { matchRefDrawToken } from './basics/match-token';
92
93
  export { IDefinedNamesService, DefinedNamesService } from './services/defined-names.service';
93
94
  export { IFormulaRuntimeService, FormulaRuntimeService } from './services/runtime.service';
94
95
  export { IFormulaCurrentConfigService, FormulaCurrentConfigService } from './services/current-data.service';
96
+ export { IActiveDirtyManagerService } from './services/active-dirty-manager.service';
@@ -1,30 +1,15 @@
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 { IWorkbookData } from '@univerjs/core';
17
- import { Univer } from '@univerjs/core';
18
- import type { Dependency } from '@wendellhu/redi';
1
+ import { Dependency } from '@wendellhu/redi';
2
+ import { IWorkbookData, Univer } from '@univerjs/core';
3
+
19
4
  export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
20
5
  univer: Univer;
21
6
  get: {
22
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
23
- <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
24
- <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
25
- <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
26
- <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
27
- <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
7
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
8
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
9
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
10
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
11
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
12
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
28
13
  };
29
- sheet: import("@univerjs/core").Workbook;
14
+ sheet: import('@univerjs/core').Workbook;
30
15
  };
@@ -1,22 +1,7 @@
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 { ICellData, IObjectMatrixPrimitiveType, Nullable } from '@univerjs/core';
17
- import { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
18
- import type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData, IFormulaDataItem, INumfmtItemMap, IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap } from '../basics/common';
19
1
  import { LexerTreeBuilder } from '../engine/analysis/lexer-tree-builder';
2
+ import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData, IFormulaDataItem, INumfmtItemMap, IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap } from '../basics/common';
3
+ import { ICellData, IObjectMatrixPrimitiveType, Nullable, Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
4
+
20
5
  export interface IFormulaIdMap {
21
6
  f: string;
22
7
  r: number;
@@ -1,23 +1,8 @@
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
- */
1
+ import { BaseFunction } from './functions/base-function';
2
+ import { IFunctionNames } from './basics/function';
3
+ import { Ctor, Injector } from '@wendellhu/redi';
16
4
  import { Plugin } from '@univerjs/core';
17
- import type { Ctor } from '@wendellhu/redi';
18
- import { Injector } from '@wendellhu/redi';
19
- import type { IFunctionNames } from './basics/function';
20
- import type { BaseFunction } from './functions/base-function';
5
+
21
6
  interface IUniverFormulaEngine {
22
7
  notExecuteFormula?: boolean;
23
8
  function?: Array<[Ctor<BaseFunction>, IFunctionNames]>;
@@ -0,0 +1,34 @@
1
+ import { IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetNameMap } from '@univerjs/engine-formula';
2
+ import { ICommandInfo, IUnitRange, Nullable, Disposable } from '@univerjs/core';
3
+
4
+ export interface IDirtyConversionManagerParams {
5
+ commandId: string;
6
+ getDirtyData: (command: ICommandInfo) => {
7
+ dirtyRanges?: IUnitRange[];
8
+ dirtyNameMap?: IDirtyUnitSheetNameMap;
9
+ dirtyUnitFeatureMap?: IDirtyUnitFeatureMap;
10
+ dirtyUnitOtherFormulaMap?: IDirtyUnitOtherFormulaMap;
11
+ };
12
+ }
13
+ export interface IActiveDirtyManagerService {
14
+ dispose(): void;
15
+ remove(commandId: string): void;
16
+ get(commandId: string): Nullable<IDirtyConversionManagerParams>;
17
+ has(featureId: string): boolean;
18
+ register(featureId: string, dirtyConversion: IDirtyConversionManagerParams): void;
19
+ getDirtyConversionMap(): Map<string, IDirtyConversionManagerParams>;
20
+ }
21
+ /**
22
+ * Actively mark as dirty, calculate the dirty area based on the command,
23
+ * and plugins can register the ref range they affect into the formula engine.
24
+ */
25
+ export declare class ActiveDirtyManagerService extends Disposable implements IActiveDirtyManagerService {
26
+ private _dirtyConversionMap;
27
+ dispose(): void;
28
+ remove(commandId: string): void;
29
+ get(commandId: string): IDirtyConversionManagerParams | undefined;
30
+ has(commandId: string): boolean;
31
+ register(commandId: string, dirtyConversion: IDirtyConversionManagerParams): void;
32
+ getDirtyConversionMap(): Map<string, IDirtyConversionManagerParams>;
33
+ }
34
+ export declare const IActiveDirtyManagerService: import('@wendellhu/redi').IdentifierDecorator<ActiveDirtyManagerService>;
@@ -1,28 +1,13 @@
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 { Disposable, IConfigService } from '@univerjs/core';
17
- import type { IFeatureDirtyRangeType, IFormulaDatasetConfig, IRuntimeUnitDataType } from '../basics/common';
18
- import { Lexer } from '../engine/analysis/lexer';
19
- import { AstTreeBuilder } from '../engine/analysis/parser';
20
- import { ErrorNode } from '../engine/ast-node/base-ast-node';
21
- import { FormulaDependencyGenerator } from '../engine/dependency/formula-dependency';
22
- import { Interpreter } from '../engine/interpreter/interpreter';
1
+ import { IAllRuntimeData, IExecutionInProgressParams, IFormulaRuntimeService } from './runtime.service';
23
2
  import { IFormulaCurrentConfigService } from './current-data.service';
24
- import type { IAllRuntimeData, IExecutionInProgressParams } from './runtime.service';
25
- import { IFormulaRuntimeService } from './runtime.service';
3
+ import { Interpreter } from '../engine/interpreter/interpreter';
4
+ import { FormulaDependencyGenerator } from '../engine/dependency/formula-dependency';
5
+ import { ErrorNode } from '../engine/ast-node/base-ast-node';
6
+ import { AstTreeBuilder } from '../engine/analysis/parser';
7
+ import { Lexer } from '../engine/analysis/lexer';
8
+ import { IFeatureDirtyRangeType, IFormulaDatasetConfig, IRuntimeUnitDataType } from '../basics/common';
9
+ import { Disposable, IConfigService } from '@univerjs/core';
10
+
26
11
  export declare const DEFAULT_CYCLE_REFERENCE_COUNT = 1;
27
12
  export declare const CYCLE_REFERENCE_COUNT = "cycleReferenceCount";
28
13
  export declare const EVERY_N_FUNCTION_EXECUTION_PAUSE = 100;
@@ -35,11 +20,11 @@ export declare class CalculateFormulaService extends Disposable {
35
20
  private readonly _interpreter;
36
21
  private readonly _astTreeBuilder;
37
22
  private readonly _executionStartListener$;
38
- readonly executionStartListener$: import("rxjs").Observable<boolean>;
23
+ readonly executionStartListener$: import('rxjs').Observable<boolean>;
39
24
  private readonly _executionCompleteListener$;
40
- readonly executionCompleteListener$: import("rxjs").Observable<IAllRuntimeData>;
25
+ readonly executionCompleteListener$: import('rxjs').Observable<IAllRuntimeData>;
41
26
  private readonly _executionInProgressListener$;
42
- readonly executionInProgressListener$: import("rxjs").Observable<IExecutionInProgressParams>;
27
+ readonly executionInProgressListener$: import('rxjs').Observable<IExecutionInProgressParams>;
43
28
  constructor(_configService: IConfigService, _lexer: Lexer, _currentConfigService: IFormulaCurrentConfigService, _runtimeService: IFormulaRuntimeService, _formulaDependencyGenerator: FormulaDependencyGenerator, _interpreter: Interpreter, _astTreeBuilder: AstTreeBuilder);
44
29
  dispose(): void;
45
30
  /**
@@ -1,21 +1,6 @@
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 { IUnitRange, Nullable } from '@univerjs/core';
17
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
18
- import type { IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDatasetConfig, INumfmtItemMap, IRuntimeUnitDataType, IUnitData, IUnitExcludedCell, IUnitSheetNameMap } from '../basics/common';
1
+ import { IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDatasetConfig, INumfmtItemMap, IRuntimeUnitDataType, IUnitData, IUnitExcludedCell, IUnitSheetNameMap } from '../basics/common';
2
+ import { IUnitRange, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
3
+
19
4
  export declare const DEFAULT_DOCUMENT_SUB_COMPONENT_ID = "__default_document_sub_component_id20231101__";
20
5
  export interface IFormulaCurrentConfigService {
21
6
  load(config: IFormulaDatasetConfig): void;
@@ -33,6 +18,7 @@ export interface IFormulaCurrentConfigService {
33
18
  loadDirtyRangesAndExcludedCell(dirtyRanges: IUnitRange[], excludedCell?: IUnitExcludedCell): void;
34
19
  getArrayFormulaCellData(): IRuntimeUnitDataType;
35
20
  getSheetName(unitId: string, sheetId: string): string;
21
+ getDirtyUnitOtherFormulaMap(): IDirtyUnitOtherFormulaMap;
36
22
  }
37
23
  export declare class FormulaCurrentConfigService extends Disposable implements IFormulaCurrentConfigService {
38
24
  private readonly _currentUniverService;
@@ -45,6 +31,7 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
45
31
  private _dirtyNameMap;
46
32
  private _numfmtItemMap;
47
33
  private _dirtyUnitFeatureMap;
34
+ private _dirtyUnitOtherFormulaMap;
48
35
  private _excludedCell;
49
36
  private _sheetIdToNameMap;
50
37
  constructor(_currentUniverService: IUniverInstanceService);
@@ -60,6 +47,7 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
60
47
  getNumfmtItemMap(): INumfmtItemMap;
61
48
  getDirtyUnitFeatureMap(): IDirtyUnitFeatureMap;
62
49
  getSheetName(unitId: string, sheetId: string): string;
50
+ getDirtyUnitOtherFormulaMap(): IDirtyUnitOtherFormulaMap;
63
51
  load(config: IFormulaDatasetConfig): void;
64
52
  loadDirtyRangesAndExcludedCell(dirtyRanges: IUnitRange[], excludedCell?: IUnitExcludedCell): void;
65
53
  registerUnitData(unitData: IUnitData): void;
@@ -68,4 +56,4 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
68
56
  private _mergeNameMap;
69
57
  private _loadSheetData;
70
58
  }
71
- export declare const IFormulaCurrentConfigService: import("@wendellhu/redi").IdentifierDecorator<FormulaCurrentConfigService>;
59
+ export declare const IFormulaCurrentConfigService: import('@wendellhu/redi').IdentifierDecorator<FormulaCurrentConfigService>;
@@ -1,20 +1,5 @@
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 { Nullable } from '@univerjs/core';
17
- import { Disposable } from '@univerjs/core';
1
+ import { Nullable, Disposable } from '@univerjs/core';
2
+
18
3
  export interface IDefinedNamesService {
19
4
  registerDefinedName(unitId: string, name: string, formulaOrRefString: string): void;
20
5
  getDefinedNameMap(unitId: string): Nullable<Map<string, string>>;
@@ -31,4 +16,4 @@ export declare class DefinedNamesService extends Disposable implements IDefinedN
31
16
  getValue(unitId: string, name: string): string | undefined;
32
17
  hasDefinedName(unitId: string): boolean;
33
18
  }
34
- export declare const IDefinedNamesService: import("@wendellhu/redi").IdentifierDecorator<DefinedNamesService>;
19
+ export declare const IDefinedNamesService: import('@wendellhu/redi').IdentifierDecorator<DefinedNamesService>;
@@ -1,22 +1,7 @@
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 { IUnitRange, Nullable } from '@univerjs/core';
17
- import { Disposable } from '@univerjs/core';
18
- import type { IFeatureDirtyRangeType, IRuntimeUnitDataType } from '../basics/common';
19
- import type { FormulaDependencyTree } from '../engine/dependency/dependency-tree';
1
+ import { FormulaDependencyTree } from '../engine/dependency/dependency-tree';
2
+ import { IFeatureDirtyRangeType, IRuntimeUnitDataType } from '../basics/common';
3
+ import { IUnitRange, Nullable, Disposable } from '@univerjs/core';
4
+
20
5
  export interface IFeatureCalculationManagerParam {
21
6
  unitId: string;
22
7
  subUnitId: string;
@@ -49,4 +34,4 @@ export declare class FeatureCalculationManagerService extends Disposable impleme
49
34
  register(featureId: string, referenceExecutor: IFeatureCalculationManagerParam): void;
50
35
  getReferenceExecutorMap(): Map<string, IFeatureCalculationManagerParam>;
51
36
  }
52
- export declare const IFeatureCalculationManagerService: import("@wendellhu/redi").IdentifierDecorator<FeatureCalculationManagerService>;
37
+ export declare const IFeatureCalculationManagerService: import('@wendellhu/redi').IdentifierDecorator<FeatureCalculationManagerService>;
@@ -1,22 +1,7 @@
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 { Nullable } from '@univerjs/core';
17
- import { Disposable } from '@univerjs/core';
18
- import type { IFunctionInfo, IFunctionNames } from '../basics/function';
19
- import type { BaseFunction } from '../functions/base-function';
1
+ import { BaseFunction } from '../functions/base-function';
2
+ import { IFunctionInfo, IFunctionNames } from '../basics/function';
3
+ import { Nullable, Disposable } from '@univerjs/core';
4
+
20
5
  export interface IFunctionService {
21
6
  /**
22
7
  * Use register to register a function, new CustomFunction(inject, name)
@@ -57,4 +42,4 @@ export declare class FunctionService extends Disposable implements IFunctionServ
57
42
  hasDescription(functionToken: IFunctionNames): boolean;
58
43
  unregisterDescriptions(...functionTokens: IFunctionNames[]): void;
59
44
  }
60
- export declare const IFunctionService: import("@wendellhu/redi").IdentifierDecorator<FunctionService>;
45
+ export declare const IFunctionService: import('@wendellhu/redi').IdentifierDecorator<FunctionService>;
@@ -1,21 +1,6 @@
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 { Nullable } from '@univerjs/core';
17
- import { Disposable } from '@univerjs/core';
18
- import type { IFormulaDataItem, IOtherFormulaData } from '../basics/common';
1
+ import { IDirtyUnitOtherFormulaMap, IFormulaDataItem, IOtherFormulaData } from '../basics/common';
2
+ import { Nullable, Disposable } from '@univerjs/core';
3
+
19
4
  export interface IOtherFormulaManagerSearchParam {
20
5
  unitId: string;
21
6
  subUnitId: string;
@@ -31,6 +16,8 @@ export interface IOtherFormulaManagerService {
31
16
  has(searchParam: IOtherFormulaManagerSearchParam): boolean;
32
17
  register(insertParam: IOtherFormulaManagerInsertParam): void;
33
18
  getOtherFormulaData(): IOtherFormulaData;
19
+ batchRegister(formulaData: IOtherFormulaData): void;
20
+ batchRemove(formulaData: IDirtyUnitOtherFormulaMap): void;
34
21
  }
35
22
  /**
36
23
  * Passively marked as dirty, register the reference and execution actions of the feature plugin.
@@ -45,6 +32,8 @@ export declare class OtherFormulaManagerService extends Disposable implements IO
45
32
  get(searchParam: IOtherFormulaManagerSearchParam): IFormulaDataItem | undefined;
46
33
  has(searchParam: IOtherFormulaManagerSearchParam): boolean;
47
34
  register(insertParam: IOtherFormulaManagerInsertParam): void;
35
+ batchRegister(formulaData: IOtherFormulaData): void;
36
+ batchRemove(formulaData: IDirtyUnitOtherFormulaMap): void;
48
37
  getOtherFormulaData(): IOtherFormulaData;
49
38
  }
50
- export declare const IOtherFormulaManagerService: import("@wendellhu/redi").IdentifierDecorator<OtherFormulaManagerService>;
39
+ export declare const IOtherFormulaManagerService: import('@wendellhu/redi').IdentifierDecorator<OtherFormulaManagerService>;
@@ -1,24 +1,9 @@
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 { Nullable } from '@univerjs/core';
17
- import { Disposable } from '@univerjs/core';
18
- import type { IArrayFormulaRangeType, IFeatureDirtyRangeType, INumfmtItemMap, IRuntimeOtherUnitDataType, IRuntimeUnitDataType } from '../basics/common';
19
- import type { BaseAstNode } from '../engine/ast-node/base-ast-node';
20
- import type { FunctionVariantType } from '../engine/reference-object/base-reference-object';
21
1
  import { IFormulaCurrentConfigService } from './current-data.service';
2
+ import { FunctionVariantType } from '../engine/reference-object/base-reference-object';
3
+ import { BaseAstNode } from '../engine/ast-node/base-ast-node';
4
+ import { IArrayFormulaRangeType, IFeatureDirtyRangeType, INumfmtItemMap, IRuntimeOtherUnitDataType, IRuntimeUnitDataType } from '../basics/common';
5
+ import { Nullable, Disposable } from '@univerjs/core';
6
+
22
7
  /**
23
8
  * IDLE: Idle phase of the formula engine.
24
9
  *
@@ -193,4 +178,4 @@ export declare class FormulaRuntimeService extends Disposable implements IFormul
193
178
  private _checkIfArrayFormulaExceeded;
194
179
  private _isInDirtyRange;
195
180
  }
196
- export declare const IFormulaRuntimeService: import("@wendellhu/redi").IdentifierDecorator<FormulaRuntimeService>;
181
+ export declare const IFormulaRuntimeService: import('@wendellhu/redi').IdentifierDecorator<FormulaRuntimeService>;
@@ -1,21 +1,6 @@
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 { Nullable } from '@univerjs/core';
17
- import { Disposable } from '@univerjs/core';
18
- import type { ISuperTable, TableOptionType } from '../basics/common';
1
+ import { ISuperTable, TableOptionType } from '../basics/common';
2
+ import { Nullable, Disposable } from '@univerjs/core';
3
+
19
4
  export interface ISuperTableOptionParam {
20
5
  tableOption: string;
21
6
  tableOptionType: TableOptionType;
@@ -37,4 +22,4 @@ export declare class SuperTableService extends Disposable implements ISuperTable
37
22
  registerTable(unitId: string, tableName: string, reference: ISuperTable): void;
38
23
  registerTableOptionMap(tableOption: string, tableOptionType: TableOptionType): void;
39
24
  }
40
- export declare const ISuperTableService: import("@wendellhu/redi").IdentifierDecorator<ISuperTableService>;
25
+ export declare const ISuperTableService: import('@wendellhu/redi').IdentifierDecorator<ISuperTableService>;