@univerjs/sheets-formula 1.0.0 → 1.0.1

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 (207) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/index.js +1 -1
  4. package/lib/umd/index.js +1 -1
  5. package/package.json +8 -8
  6. package/lib/types/commands/commands/quick-sum.command.d.ts +0 -20
  7. package/lib/types/controllers/formula-calculation-session.controller.d.ts +0 -24
  8. package/lib/types/facade/f-univer.d.ts +0 -49
  9. package/lib/types/locale/function-list/array/ca-ES.d.ts +0 -18
  10. package/lib/types/locale/function-list/array/en-US.d.ts +0 -58
  11. package/lib/types/locale/function-list/array/es-ES.d.ts +0 -18
  12. package/lib/types/locale/function-list/array/fa-IR.d.ts +0 -18
  13. package/lib/types/locale/function-list/array/fr-FR.d.ts +0 -18
  14. package/lib/types/locale/function-list/array/ja-JP.d.ts +0 -18
  15. package/lib/types/locale/function-list/array/ko-KR.d.ts +0 -18
  16. package/lib/types/locale/function-list/array/ru-RU.d.ts +0 -18
  17. package/lib/types/locale/function-list/array/sk-SK.d.ts +0 -18
  18. package/lib/types/locale/function-list/array/vi-VN.d.ts +0 -18
  19. package/lib/types/locale/function-list/array/zh-CN.d.ts +0 -18
  20. package/lib/types/locale/function-list/array/zh-TW.d.ts +0 -18
  21. package/lib/types/locale/function-list/compatibility/ca-ES.d.ts +0 -18
  22. package/lib/types/locale/function-list/compatibility/en-US.d.ts +0 -838
  23. package/lib/types/locale/function-list/compatibility/es-ES.d.ts +0 -18
  24. package/lib/types/locale/function-list/compatibility/fa-IR.d.ts +0 -18
  25. package/lib/types/locale/function-list/compatibility/fr-FR.d.ts +0 -18
  26. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +0 -18
  27. package/lib/types/locale/function-list/compatibility/ko-KR.d.ts +0 -18
  28. package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -18
  29. package/lib/types/locale/function-list/compatibility/sk-SK.d.ts +0 -18
  30. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +0 -18
  31. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +0 -18
  32. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +0 -18
  33. package/lib/types/locale/function-list/cube/ca-ES.d.ts +0 -18
  34. package/lib/types/locale/function-list/cube/en-US.d.ts +0 -144
  35. package/lib/types/locale/function-list/cube/es-ES.d.ts +0 -18
  36. package/lib/types/locale/function-list/cube/fa-IR.d.ts +0 -18
  37. package/lib/types/locale/function-list/cube/fr-FR.d.ts +0 -18
  38. package/lib/types/locale/function-list/cube/ja-JP.d.ts +0 -18
  39. package/lib/types/locale/function-list/cube/ko-KR.d.ts +0 -18
  40. package/lib/types/locale/function-list/cube/ru-RU.d.ts +0 -18
  41. package/lib/types/locale/function-list/cube/sk-SK.d.ts +0 -18
  42. package/lib/types/locale/function-list/cube/vi-VN.d.ts +0 -18
  43. package/lib/types/locale/function-list/cube/zh-CN.d.ts +0 -18
  44. package/lib/types/locale/function-list/cube/zh-TW.d.ts +0 -18
  45. package/lib/types/locale/function-list/database/ca-ES.d.ts +0 -18
  46. package/lib/types/locale/function-list/database/en-US.d.ts +0 -282
  47. package/lib/types/locale/function-list/database/es-ES.d.ts +0 -18
  48. package/lib/types/locale/function-list/database/fa-IR.d.ts +0 -18
  49. package/lib/types/locale/function-list/database/fr-FR.d.ts +0 -18
  50. package/lib/types/locale/function-list/database/ja-JP.d.ts +0 -18
  51. package/lib/types/locale/function-list/database/ko-KR.d.ts +0 -18
  52. package/lib/types/locale/function-list/database/ru-RU.d.ts +0 -18
  53. package/lib/types/locale/function-list/database/sk-SK.d.ts +0 -18
  54. package/lib/types/locale/function-list/database/vi-VN.d.ts +0 -18
  55. package/lib/types/locale/function-list/database/zh-CN.d.ts +0 -18
  56. package/lib/types/locale/function-list/database/zh-TW.d.ts +0 -18
  57. package/lib/types/locale/function-list/date/ca-ES.d.ts +0 -18
  58. package/lib/types/locale/function-list/date/en-US.d.ts +0 -490
  59. package/lib/types/locale/function-list/date/es-ES.d.ts +0 -18
  60. package/lib/types/locale/function-list/date/fa-IR.d.ts +0 -18
  61. package/lib/types/locale/function-list/date/fr-FR.d.ts +0 -18
  62. package/lib/types/locale/function-list/date/ja-JP.d.ts +0 -18
  63. package/lib/types/locale/function-list/date/ko-KR.d.ts +0 -18
  64. package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -18
  65. package/lib/types/locale/function-list/date/sk-SK.d.ts +0 -18
  66. package/lib/types/locale/function-list/date/vi-VN.d.ts +0 -18
  67. package/lib/types/locale/function-list/date/zh-CN.d.ts +0 -18
  68. package/lib/types/locale/function-list/date/zh-TW.d.ts +0 -18
  69. package/lib/types/locale/function-list/engineering/ca-ES.d.ts +0 -18
  70. package/lib/types/locale/function-list/engineering/en-US.d.ts +0 -940
  71. package/lib/types/locale/function-list/engineering/es-ES.d.ts +0 -18
  72. package/lib/types/locale/function-list/engineering/fa-IR.d.ts +0 -18
  73. package/lib/types/locale/function-list/engineering/fr-FR.d.ts +0 -18
  74. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +0 -18
  75. package/lib/types/locale/function-list/engineering/ko-KR.d.ts +0 -18
  76. package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -18
  77. package/lib/types/locale/function-list/engineering/sk-SK.d.ts +0 -18
  78. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +0 -18
  79. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +0 -18
  80. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +0 -18
  81. package/lib/types/locale/function-list/financial/ca-ES.d.ts +0 -18
  82. package/lib/types/locale/function-list/financial/en-US.d.ts +0 -1608
  83. package/lib/types/locale/function-list/financial/es-ES.d.ts +0 -18
  84. package/lib/types/locale/function-list/financial/fa-IR.d.ts +0 -18
  85. package/lib/types/locale/function-list/financial/fr-FR.d.ts +0 -18
  86. package/lib/types/locale/function-list/financial/ja-JP.d.ts +0 -18
  87. package/lib/types/locale/function-list/financial/ko-KR.d.ts +0 -18
  88. package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -18
  89. package/lib/types/locale/function-list/financial/sk-SK.d.ts +0 -18
  90. package/lib/types/locale/function-list/financial/vi-VN.d.ts +0 -18
  91. package/lib/types/locale/function-list/financial/zh-CN.d.ts +0 -18
  92. package/lib/types/locale/function-list/financial/zh-TW.d.ts +0 -18
  93. package/lib/types/locale/function-list/information/ca-ES.d.ts +0 -18
  94. package/lib/types/locale/function-list/information/en-US.d.ts +0 -386
  95. package/lib/types/locale/function-list/information/es-ES.d.ts +0 -18
  96. package/lib/types/locale/function-list/information/fa-IR.d.ts +0 -18
  97. package/lib/types/locale/function-list/information/fr-FR.d.ts +0 -18
  98. package/lib/types/locale/function-list/information/ja-JP.d.ts +0 -18
  99. package/lib/types/locale/function-list/information/ko-KR.d.ts +0 -18
  100. package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -18
  101. package/lib/types/locale/function-list/information/sk-SK.d.ts +0 -18
  102. package/lib/types/locale/function-list/information/vi-VN.d.ts +0 -18
  103. package/lib/types/locale/function-list/information/zh-CN.d.ts +0 -18
  104. package/lib/types/locale/function-list/information/zh-TW.d.ts +0 -18
  105. package/lib/types/locale/function-list/logical/ca-ES.d.ts +0 -18
  106. package/lib/types/locale/function-list/logical/en-US.d.ts +0 -390
  107. package/lib/types/locale/function-list/logical/es-ES.d.ts +0 -18
  108. package/lib/types/locale/function-list/logical/fa-IR.d.ts +0 -18
  109. package/lib/types/locale/function-list/logical/fr-FR.d.ts +0 -18
  110. package/lib/types/locale/function-list/logical/ja-JP.d.ts +0 -18
  111. package/lib/types/locale/function-list/logical/ko-KR.d.ts +0 -18
  112. package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -18
  113. package/lib/types/locale/function-list/logical/sk-SK.d.ts +0 -18
  114. package/lib/types/locale/function-list/logical/vi-VN.d.ts +0 -18
  115. package/lib/types/locale/function-list/logical/zh-CN.d.ts +0 -18
  116. package/lib/types/locale/function-list/logical/zh-TW.d.ts +0 -18
  117. package/lib/types/locale/function-list/lookup/ca-ES.d.ts +0 -18
  118. package/lib/types/locale/function-list/lookup/en-US.d.ts +0 -820
  119. package/lib/types/locale/function-list/lookup/es-ES.d.ts +0 -18
  120. package/lib/types/locale/function-list/lookup/fa-IR.d.ts +0 -18
  121. package/lib/types/locale/function-list/lookup/fr-FR.d.ts +0 -18
  122. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +0 -18
  123. package/lib/types/locale/function-list/lookup/ko-KR.d.ts +0 -18
  124. package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -18
  125. package/lib/types/locale/function-list/lookup/sk-SK.d.ts +0 -18
  126. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +0 -18
  127. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +0 -18
  128. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +0 -18
  129. package/lib/types/locale/function-list/math/ca-ES.d.ts +0 -18
  130. package/lib/types/locale/function-list/math/en-US.d.ts +0 -1410
  131. package/lib/types/locale/function-list/math/es-ES.d.ts +0 -18
  132. package/lib/types/locale/function-list/math/fa-IR.d.ts +0 -18
  133. package/lib/types/locale/function-list/math/fr-FR.d.ts +0 -18
  134. package/lib/types/locale/function-list/math/ja-JP.d.ts +0 -18
  135. package/lib/types/locale/function-list/math/ko-KR.d.ts +0 -18
  136. package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -18
  137. package/lib/types/locale/function-list/math/sk-SK.d.ts +0 -18
  138. package/lib/types/locale/function-list/math/vi-VN.d.ts +0 -18
  139. package/lib/types/locale/function-list/math/zh-CN.d.ts +0 -18
  140. package/lib/types/locale/function-list/math/zh-TW.d.ts +0 -18
  141. package/lib/types/locale/function-list/statistical/ca-ES.d.ts +0 -18
  142. package/lib/types/locale/function-list/statistical/en-US.d.ts +0 -2308
  143. package/lib/types/locale/function-list/statistical/es-ES.d.ts +0 -18
  144. package/lib/types/locale/function-list/statistical/fa-IR.d.ts +0 -18
  145. package/lib/types/locale/function-list/statistical/fr-FR.d.ts +0 -18
  146. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +0 -18
  147. package/lib/types/locale/function-list/statistical/ko-KR.d.ts +0 -18
  148. package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -18
  149. package/lib/types/locale/function-list/statistical/sk-SK.d.ts +0 -18
  150. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +0 -18
  151. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +0 -18
  152. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +0 -18
  153. package/lib/types/locale/function-list/text/ca-ES.d.ts +0 -18
  154. package/lib/types/locale/function-list/text/en-US.d.ts +0 -988
  155. package/lib/types/locale/function-list/text/es-ES.d.ts +0 -18
  156. package/lib/types/locale/function-list/text/fa-IR.d.ts +0 -18
  157. package/lib/types/locale/function-list/text/fr-FR.d.ts +0 -18
  158. package/lib/types/locale/function-list/text/ja-JP.d.ts +0 -18
  159. package/lib/types/locale/function-list/text/ko-KR.d.ts +0 -18
  160. package/lib/types/locale/function-list/text/ru-RU.d.ts +0 -18
  161. package/lib/types/locale/function-list/text/sk-SK.d.ts +0 -18
  162. package/lib/types/locale/function-list/text/vi-VN.d.ts +0 -18
  163. package/lib/types/locale/function-list/text/zh-CN.d.ts +0 -18
  164. package/lib/types/locale/function-list/text/zh-TW.d.ts +0 -18
  165. package/lib/types/locale/function-list/univer/ca-ES.d.ts +0 -18
  166. package/lib/types/locale/function-list/univer/en-US.d.ts +0 -17
  167. package/lib/types/locale/function-list/univer/es-ES.d.ts +0 -18
  168. package/lib/types/locale/function-list/univer/fa-IR.d.ts +0 -18
  169. package/lib/types/locale/function-list/univer/fr-FR.d.ts +0 -18
  170. package/lib/types/locale/function-list/univer/ja-JP.d.ts +0 -18
  171. package/lib/types/locale/function-list/univer/ko-KR.d.ts +0 -18
  172. package/lib/types/locale/function-list/univer/ru-RU.d.ts +0 -17
  173. package/lib/types/locale/function-list/univer/sk-SK.d.ts +0 -18
  174. package/lib/types/locale/function-list/univer/vi-VN.d.ts +0 -18
  175. package/lib/types/locale/function-list/univer/zh-CN.d.ts +0 -18
  176. package/lib/types/locale/function-list/univer/zh-TW.d.ts +0 -18
  177. package/lib/types/locale/function-list/web/ca-ES.d.ts +0 -18
  178. package/lib/types/locale/function-list/web/en-US.d.ts +0 -68
  179. package/lib/types/locale/function-list/web/es-ES.d.ts +0 -18
  180. package/lib/types/locale/function-list/web/fa-IR.d.ts +0 -18
  181. package/lib/types/locale/function-list/web/fr-FR.d.ts +0 -18
  182. package/lib/types/locale/function-list/web/ja-JP.d.ts +0 -18
  183. package/lib/types/locale/function-list/web/ko-KR.d.ts +0 -18
  184. package/lib/types/locale/function-list/web/ru-RU.d.ts +0 -18
  185. package/lib/types/locale/function-list/web/sk-SK.d.ts +0 -18
  186. package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -18
  187. package/lib/types/locale/function-list/web/zh-CN.d.ts +0 -18
  188. package/lib/types/locale/function-list/web/zh-TW.d.ts +0 -18
  189. package/lib/types/services/description.service.d.ts +0 -93
  190. package/lib/types/services/formula-calculation-session.service.d.ts +0 -48
  191. package/lib/types/services/function-list/array.d.ts +0 -17
  192. package/lib/types/services/function-list/compatibility.d.ts +0 -17
  193. package/lib/types/services/function-list/cube.d.ts +0 -17
  194. package/lib/types/services/function-list/database.d.ts +0 -17
  195. package/lib/types/services/function-list/date.d.ts +0 -17
  196. package/lib/types/services/function-list/engineering.d.ts +0 -17
  197. package/lib/types/services/function-list/financial.d.ts +0 -17
  198. package/lib/types/services/function-list/function-list.d.ts +0 -17
  199. package/lib/types/services/function-list/information.d.ts +0 -17
  200. package/lib/types/services/function-list/logical.d.ts +0 -17
  201. package/lib/types/services/function-list/lookup.d.ts +0 -17
  202. package/lib/types/services/function-list/math.d.ts +0 -17
  203. package/lib/types/services/function-list/statistical.d.ts +0 -17
  204. package/lib/types/services/function-list/text.d.ts +0 -17
  205. package/lib/types/services/function-list/univer.d.ts +0 -17
  206. package/lib/types/services/function-list/web.d.ts +0 -17
  207. package/lib/types/services/register-function.service.d.ts +0 -117
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 enUS from './en-US';
17
- declare const locale: typeof enUS;
18
- export default locale;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 enUS from './en-US';
17
- declare const locale: typeof enUS;
18
- export default locale;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 enUS from './en-US';
17
- declare const locale: typeof enUS;
18
- export default locale;
@@ -1,93 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IDisposable } from '@univerjs/core';
17
- import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
18
- import { Disposable, IConfigService, LocaleService } from '@univerjs/core';
19
- import { FunctionType, IFunctionService } from '@univerjs/engine-formula';
20
- export interface ISearchItem {
21
- name: string;
22
- desc: string;
23
- }
24
- export interface ISearchItemWithType extends ISearchItem {
25
- functionType: FunctionType;
26
- }
27
- export interface IDescriptionService {
28
- /**
29
- * get all descriptions
30
- */
31
- getDescriptions(): Map<IFunctionNames, IFunctionInfo>;
32
- hasFunction(searchText: string): boolean;
33
- /**
34
- * get function info by name
35
- */
36
- getFunctionInfo(searchText: string): IFunctionInfo | undefined;
37
- /**
38
- * get search list by name
39
- */
40
- getSearchListByName(searchText: string): ISearchItem[];
41
- /**
42
- * get search list by name, from first letter
43
- */
44
- getSearchListByNameFirstLetter(searchText: string): ISearchItemWithType[];
45
- /**
46
- * get search list by type, if type is -1, return all
47
- */
48
- getSearchListByType(type: number): ISearchItem[];
49
- /**
50
- * register descriptions
51
- */
52
- registerDescriptions(functionList: IFunctionInfo[]): IDisposable;
53
- /**
54
- * unregister descriptions
55
- */
56
- unregisterDescriptions(functionNames: string[]): void;
57
- /**
58
- * check if has description
59
- */
60
- hasDescription(name: string): boolean;
61
- /**
62
- * check if has defined name description
63
- */
64
- hasDefinedNameDescription(name: string): boolean;
65
- /**
66
- * check if is formula defined name
67
- */
68
- isFormulaDefinedName(name: string): boolean;
69
- }
70
- export declare const IDescriptionService: import("@wendellhu/redi").IdentifierDecorator<IDescriptionService>;
71
- export declare class DescriptionService extends Disposable implements IDescriptionService {
72
- private readonly _functionService;
73
- private readonly _localeService;
74
- private readonly _configService;
75
- private _descriptions;
76
- constructor(_functionService: IFunctionService, _localeService: LocaleService, _configService: IConfigService);
77
- private _initialize;
78
- private _initDescriptions;
79
- private _initRegisterDescriptions;
80
- private _registerDescriptions;
81
- dispose(): void;
82
- getDescriptions(): Map<IFunctionNames, IFunctionInfo>;
83
- hasFunction(searchText: string): boolean;
84
- getFunctionInfo(searchText: string): IFunctionInfo | undefined;
85
- getSearchListByName(searchText: string): ISearchItem[];
86
- getSearchListByNameFirstLetter(searchText: string): ISearchItemWithType[];
87
- getSearchListByType(type: number): ISearchItem[];
88
- registerDescriptions(descriptions: IFunctionInfo[]): IDisposable;
89
- unregisterDescriptions(functionNames: string[]): void;
90
- hasDescription(name: string): boolean;
91
- hasDefinedNameDescription(name: string): boolean;
92
- isFormulaDefinedName(name: string): boolean;
93
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { FormulaExecutedStateType, IExecutionInProgressParams, ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';
17
- import { Disposable } from '@univerjs/core';
18
- export interface IFormulaCalculationSessionState {
19
- id: number;
20
- initialized: boolean;
21
- started: boolean;
22
- progress: IExecutionInProgressParams | null;
23
- stopped: boolean;
24
- completed: boolean;
25
- resultEmitted: boolean;
26
- resultApplied: boolean;
27
- }
28
- export declare class FormulaCalculationSessionService extends Disposable {
29
- private readonly _state$;
30
- private readonly _resultApplied$;
31
- private _currentResult;
32
- private _hasEmittedCurrentResultApplied;
33
- readonly state$: import("rxjs").Observable<IFormulaCalculationSessionState>;
34
- readonly resultApplied$: import("rxjs").Observable<ISetFormulaCalculationResultMutation>;
35
- get state(): IFormulaCalculationSessionState;
36
- dispose(): void;
37
- initialize(): void;
38
- start(): void;
39
- updateProgress(progress: IExecutionInProgressParams): void;
40
- markStopped(): void;
41
- markCompleted(state: FormulaExecutedStateType): void;
42
- markResultEmitted(result: ISetFormulaCalculationResultMutation, hasResultToApply: boolean): void;
43
- markResultApplied(): void;
44
- waitForLatestApplied(timeout?: number, startWatchdog?: number): Promise<void>;
45
- private _emit;
46
- private _emitResultApplied;
47
- private _isAppliedTerminalState;
48
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_ARRAY: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_CUBE: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_DATABASE: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_DATE: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_ENGINEERING: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_FINANCIAL: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_INFORMATION: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_LOGICAL: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_LOOKUP: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_MATH: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_STATISTICAL: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_TEXT: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_UNIVER: IFunctionInfo[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IFunctionInfo } from '@univerjs/engine-formula';
17
- export declare const FUNCTION_LIST_WEB: IFunctionInfo[];
@@ -1,117 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Co., Ltd.
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 { IDisposable, ILocales } from '@univerjs/core';
17
- import type { FormulaFunctionResultValueType, FormulaFunctionValueType, IFunctionInfo } from '@univerjs/engine-formula';
18
- import { Disposable, LocaleService } from '@univerjs/core';
19
- import { IFunctionService } from '@univerjs/engine-formula';
20
- import { IDescriptionService } from './description.service';
21
- import { IRemoteRegisterFunctionService } from './remote/remote-register-function.service';
22
- export type IRegisterFunction = (...arg: Array<FormulaFunctionValueType>) => FormulaFunctionResultValueType;
23
- export type IRegisterAsyncFunction = (...arg: Array<FormulaFunctionValueType>) => Promise<FormulaFunctionResultValueType>;
24
- export type IRegisterFunctionList = [[IRegisterFunction, string, string?]];
25
- export interface IFormulaCustomFunctionService {
26
- /**
27
- * register descriptions
28
- * @param functionList
29
- */
30
- registerFunctions(functionList: IRegisterFunctionList): IDisposable;
31
- }
32
- /**
33
- * Register function operation params
34
- */
35
- export interface IRegisterFunctionParams {
36
- /**
37
- * i18n
38
- */
39
- locales?: ILocales;
40
- /**
41
- * function description
42
- */
43
- description?: IFunctionInfo[];
44
- /**
45
- * function calculation
46
- */
47
- calculate: IRegisterFunctionList;
48
- }
49
- /**
50
- * Unregister function operation params
51
- */
52
- export interface IUnregisterFunctionParams {
53
- /**
54
- * Remove i18n
55
- */
56
- localeKeys?: string[];
57
- /**
58
- * Function name
59
- */
60
- functionNames: string[];
61
- }
62
- /**
63
- * This
64
- */
65
- export interface IRegisterFunctionService {
66
- /**
67
- * register descriptions
68
- * @param params
69
- */
70
- registerFunctions(params: IRegisterFunctionParams): IDisposable;
71
- /**
72
- * register a single function
73
- * @param params
74
- */
75
- registerFunction(params: ISingleFunctionRegisterParams): IDisposable;
76
- /**
77
- * register a single async function
78
- * @param params
79
- */
80
- registerAsyncFunction(params: ISingleFunctionRegisterParams): IDisposable;
81
- }
82
- export declare const IRegisterFunctionService: import("@wendellhu/redi").IdentifierDecorator<IRegisterFunctionService>;
83
- export interface ISingleFunctionRegisterParams {
84
- /**
85
- * function name
86
- */
87
- name: string;
88
- /**
89
- * function calculation
90
- */
91
- func: IRegisterFunction | IRegisterAsyncFunction;
92
- /**
93
- * function description
94
- */
95
- description: string | IFunctionInfo;
96
- /**
97
- * function locales
98
- */
99
- locales?: ILocales;
100
- /**
101
- * function async
102
- */
103
- async?: boolean;
104
- }
105
- export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
106
- private readonly _localeService;
107
- private readonly _descriptionService;
108
- private readonly _functionService;
109
- private readonly _remoteRegisterFunctionService?;
110
- constructor(_localeService: LocaleService, _descriptionService: IDescriptionService, _functionService: IFunctionService, _remoteRegisterFunctionService?: IRemoteRegisterFunctionService | undefined);
111
- registerFunction(params: ISingleFunctionRegisterParams): IDisposable;
112
- registerAsyncFunction(params: ISingleFunctionRegisterParams): IDisposable;
113
- registerFunctions(params: IRegisterFunctionParams): IDisposable;
114
- private _registerSingleFunction;
115
- private _registerLocalExecutors;
116
- private _registerRemoteExecutors;
117
- }