@univerjs/sheets-formula 0.1.0-alpha.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 (180) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/lib/cjs/index.js +4215 -0
  4. package/lib/cjs/locale/en-US.js +223 -0
  5. package/lib/cjs/locale/zh-CN.js +223 -0
  6. package/lib/esm/index.js +4205 -0
  7. package/lib/esm/locale/en-US.js +200 -0
  8. package/lib/esm/locale/zh-CN.js +200 -0
  9. package/lib/index.css +214 -0
  10. package/lib/types/commands/commands/insert-function.command.d.ts +23 -0
  11. package/lib/types/commands/commands/insert-function.command.d.ts.map +1 -0
  12. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +16 -0
  13. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts.map +1 -0
  14. package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts +2 -0
  15. package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts.map +1 -0
  16. package/lib/types/commands/operations/editor-formula.operation.d.ts +11 -0
  17. package/lib/types/commands/operations/editor-formula.operation.d.ts.map +1 -0
  18. package/lib/types/commands/operations/help-function.operation.d.ts +3 -0
  19. package/lib/types/commands/operations/help-function.operation.d.ts.map +1 -0
  20. package/lib/types/commands/operations/insert-function.operation.d.ts +9 -0
  21. package/lib/types/commands/operations/insert-function.operation.d.ts.map +1 -0
  22. package/lib/types/commands/operations/more-functions.operation.d.ts +3 -0
  23. package/lib/types/commands/operations/more-functions.operation.d.ts.map +1 -0
  24. package/lib/types/commands/operations/reference-absolute.operation.d.ts +3 -0
  25. package/lib/types/commands/operations/reference-absolute.operation.d.ts.map +1 -0
  26. package/lib/types/commands/operations/search-function.operation.d.ts +3 -0
  27. package/lib/types/commands/operations/search-function.operation.d.ts.map +1 -0
  28. package/lib/types/common/plugin-name.d.ts +2 -0
  29. package/lib/types/common/plugin-name.d.ts.map +1 -0
  30. package/lib/types/common/prompt.d.ts +2 -0
  31. package/lib/types/common/prompt.d.ts.map +1 -0
  32. package/lib/types/common/selection.d.ts +5 -0
  33. package/lib/types/common/selection.d.ts.map +1 -0
  34. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +11 -0
  35. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts.map +1 -0
  36. package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +2 -0
  37. package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts.map +1 -0
  38. package/lib/types/controllers/formula-auto-fill.controller.d.ts +12 -0
  39. package/lib/types/controllers/formula-auto-fill.controller.d.ts.map +1 -0
  40. package/lib/types/controllers/formula-input.controller.d.ts +25 -0
  41. package/lib/types/controllers/formula-input.controller.d.ts.map +1 -0
  42. package/lib/types/controllers/formula-ui.controller.d.ts +19 -0
  43. package/lib/types/controllers/formula-ui.controller.d.ts.map +1 -0
  44. package/lib/types/controllers/menu.d.ts +5 -0
  45. package/lib/types/controllers/menu.d.ts.map +1 -0
  46. package/lib/types/controllers/prompt.controller.d.ts +146 -0
  47. package/lib/types/controllers/prompt.controller.d.ts.map +1 -0
  48. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +10 -0
  49. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts.map +1 -0
  50. package/lib/types/formula-ui-plugin.d.ts +18 -0
  51. package/lib/types/formula-ui-plugin.d.ts.map +1 -0
  52. package/lib/types/index.d.ts +2 -0
  53. package/lib/types/index.d.ts.map +1 -0
  54. package/lib/types/locale/en-US.d.ts +136 -0
  55. package/lib/types/locale/en-US.d.ts.map +1 -0
  56. package/lib/types/locale/function-list/array/en-US.d.ts +3 -0
  57. package/lib/types/locale/function-list/array/en-US.d.ts.map +1 -0
  58. package/lib/types/locale/function-list/array/zh-CN.d.ts +3 -0
  59. package/lib/types/locale/function-list/array/zh-CN.d.ts.map +1 -0
  60. package/lib/types/locale/function-list/compatibility/en-US.d.ts +3 -0
  61. package/lib/types/locale/function-list/compatibility/en-US.d.ts.map +1 -0
  62. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +3 -0
  63. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts.map +1 -0
  64. package/lib/types/locale/function-list/cube/en-US.d.ts +3 -0
  65. package/lib/types/locale/function-list/cube/en-US.d.ts.map +1 -0
  66. package/lib/types/locale/function-list/cube/zh-CN.d.ts +3 -0
  67. package/lib/types/locale/function-list/cube/zh-CN.d.ts.map +1 -0
  68. package/lib/types/locale/function-list/database/en-US.d.ts +3 -0
  69. package/lib/types/locale/function-list/database/en-US.d.ts.map +1 -0
  70. package/lib/types/locale/function-list/database/zh-CN.d.ts +3 -0
  71. package/lib/types/locale/function-list/database/zh-CN.d.ts.map +1 -0
  72. package/lib/types/locale/function-list/date/en-US.d.ts +3 -0
  73. package/lib/types/locale/function-list/date/en-US.d.ts.map +1 -0
  74. package/lib/types/locale/function-list/date/zh-CN.d.ts +3 -0
  75. package/lib/types/locale/function-list/date/zh-CN.d.ts.map +1 -0
  76. package/lib/types/locale/function-list/engineering/en-US.d.ts +3 -0
  77. package/lib/types/locale/function-list/engineering/en-US.d.ts.map +1 -0
  78. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +3 -0
  79. package/lib/types/locale/function-list/engineering/zh-CN.d.ts.map +1 -0
  80. package/lib/types/locale/function-list/financial/en-US.d.ts +3 -0
  81. package/lib/types/locale/function-list/financial/en-US.d.ts.map +1 -0
  82. package/lib/types/locale/function-list/financial/zh-CN.d.ts +3 -0
  83. package/lib/types/locale/function-list/financial/zh-CN.d.ts.map +1 -0
  84. package/lib/types/locale/function-list/information/en-US.d.ts +3 -0
  85. package/lib/types/locale/function-list/information/en-US.d.ts.map +1 -0
  86. package/lib/types/locale/function-list/information/zh-CN.d.ts +3 -0
  87. package/lib/types/locale/function-list/information/zh-CN.d.ts.map +1 -0
  88. package/lib/types/locale/function-list/logical/en-US.d.ts +3 -0
  89. package/lib/types/locale/function-list/logical/en-US.d.ts.map +1 -0
  90. package/lib/types/locale/function-list/logical/zh-CN.d.ts +3 -0
  91. package/lib/types/locale/function-list/logical/zh-CN.d.ts.map +1 -0
  92. package/lib/types/locale/function-list/lookup/en-US.d.ts +3 -0
  93. package/lib/types/locale/function-list/lookup/en-US.d.ts.map +1 -0
  94. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +3 -0
  95. package/lib/types/locale/function-list/lookup/zh-CN.d.ts.map +1 -0
  96. package/lib/types/locale/function-list/math/en-US.d.ts +36 -0
  97. package/lib/types/locale/function-list/math/en-US.d.ts.map +1 -0
  98. package/lib/types/locale/function-list/math/zh-CN.d.ts +36 -0
  99. package/lib/types/locale/function-list/math/zh-CN.d.ts.map +1 -0
  100. package/lib/types/locale/function-list/statistical/en-US.d.ts +60 -0
  101. package/lib/types/locale/function-list/statistical/en-US.d.ts.map +1 -0
  102. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +60 -0
  103. package/lib/types/locale/function-list/statistical/zh-CN.d.ts.map +1 -0
  104. package/lib/types/locale/function-list/text/en-US.d.ts +3 -0
  105. package/lib/types/locale/function-list/text/en-US.d.ts.map +1 -0
  106. package/lib/types/locale/function-list/text/zh-CN.d.ts +3 -0
  107. package/lib/types/locale/function-list/text/zh-CN.d.ts.map +1 -0
  108. package/lib/types/locale/function-list/univer/en-US.d.ts +3 -0
  109. package/lib/types/locale/function-list/univer/en-US.d.ts.map +1 -0
  110. package/lib/types/locale/function-list/univer/zh-CN.d.ts +3 -0
  111. package/lib/types/locale/function-list/univer/zh-CN.d.ts.map +1 -0
  112. package/lib/types/locale/function-list/web/en-US.d.ts +3 -0
  113. package/lib/types/locale/function-list/web/en-US.d.ts.map +1 -0
  114. package/lib/types/locale/function-list/web/zh-CN.d.ts +3 -0
  115. package/lib/types/locale/function-list/web/zh-CN.d.ts.map +1 -0
  116. package/lib/types/locale/index.d.ts +3 -0
  117. package/lib/types/locale/index.d.ts.map +1 -0
  118. package/lib/types/locale/zh-CN.d.ts +136 -0
  119. package/lib/types/locale/zh-CN.d.ts.map +1 -0
  120. package/lib/types/services/description.service.d.ts +48 -0
  121. package/lib/types/services/description.service.d.ts.map +1 -0
  122. package/lib/types/services/formula-input.service.d.ts +95 -0
  123. package/lib/types/services/formula-input.service.d.ts.map +1 -0
  124. package/lib/types/services/function-list/array.d.ts +3 -0
  125. package/lib/types/services/function-list/array.d.ts.map +1 -0
  126. package/lib/types/services/function-list/compatibility.d.ts +3 -0
  127. package/lib/types/services/function-list/compatibility.d.ts.map +1 -0
  128. package/lib/types/services/function-list/cube.d.ts +3 -0
  129. package/lib/types/services/function-list/cube.d.ts.map +1 -0
  130. package/lib/types/services/function-list/database.d.ts +3 -0
  131. package/lib/types/services/function-list/database.d.ts.map +1 -0
  132. package/lib/types/services/function-list/date.d.ts +3 -0
  133. package/lib/types/services/function-list/date.d.ts.map +1 -0
  134. package/lib/types/services/function-list/engineering.d.ts +3 -0
  135. package/lib/types/services/function-list/engineering.d.ts.map +1 -0
  136. package/lib/types/services/function-list/financial.d.ts +3 -0
  137. package/lib/types/services/function-list/financial.d.ts.map +1 -0
  138. package/lib/types/services/function-list/function-list.d.ts +3 -0
  139. package/lib/types/services/function-list/function-list.d.ts.map +1 -0
  140. package/lib/types/services/function-list/information.d.ts +3 -0
  141. package/lib/types/services/function-list/information.d.ts.map +1 -0
  142. package/lib/types/services/function-list/logical.d.ts +3 -0
  143. package/lib/types/services/function-list/logical.d.ts.map +1 -0
  144. package/lib/types/services/function-list/lookup.d.ts +3 -0
  145. package/lib/types/services/function-list/lookup.d.ts.map +1 -0
  146. package/lib/types/services/function-list/math.d.ts +3 -0
  147. package/lib/types/services/function-list/math.d.ts.map +1 -0
  148. package/lib/types/services/function-list/statistical.d.ts +3 -0
  149. package/lib/types/services/function-list/statistical.d.ts.map +1 -0
  150. package/lib/types/services/function-list/text.d.ts +3 -0
  151. package/lib/types/services/function-list/text.d.ts.map +1 -0
  152. package/lib/types/services/function-list/univer.d.ts +3 -0
  153. package/lib/types/services/function-list/univer.d.ts.map +1 -0
  154. package/lib/types/services/function-list/web.d.ts +3 -0
  155. package/lib/types/services/function-list/web.d.ts.map +1 -0
  156. package/lib/types/services/prompt.service.d.ts +106 -0
  157. package/lib/types/services/prompt.service.d.ts.map +1 -0
  158. package/lib/types/services/utils.d.ts +8 -0
  159. package/lib/types/services/utils.d.ts.map +1 -0
  160. package/lib/types/views/FormulaPromptContainer.d.ts +3 -0
  161. package/lib/types/views/FormulaPromptContainer.d.ts.map +1 -0
  162. package/lib/types/views/more-functions/MoreFunctions.d.ts +3 -0
  163. package/lib/types/views/more-functions/MoreFunctions.d.ts.map +1 -0
  164. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +9 -0
  165. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts.map +1 -0
  166. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +9 -0
  167. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts.map +1 -0
  168. package/lib/types/views/more-functions/input-params/InputParams.d.ts +8 -0
  169. package/lib/types/views/more-functions/input-params/InputParams.d.ts.map +1 -0
  170. package/lib/types/views/more-functions/interface.d.ts +2 -0
  171. package/lib/types/views/more-functions/interface.d.ts.map +1 -0
  172. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +7 -0
  173. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts.map +1 -0
  174. package/lib/types/views/prompt/error-function/error-function.d.ts +3 -0
  175. package/lib/types/views/prompt/error-function/error-function.d.ts.map +1 -0
  176. package/lib/types/views/prompt/help-function/HelpFunction.d.ts +3 -0
  177. package/lib/types/views/prompt/help-function/HelpFunction.d.ts.map +1 -0
  178. package/lib/types/views/prompt/search-function/SearchFunction.d.ts +3 -0
  179. package/lib/types/views/prompt/search-function/SearchFunction.d.ts.map +1 -0
  180. package/package.json +68 -0
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/engineering/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/financial/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/financial/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/information/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/information/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/logical/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/logical/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/lookup/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/lookup/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,36 @@
1
+ declare const _default: {
2
+ SUM: {
3
+ description: string;
4
+ abstract: string;
5
+ functionParameter: {
6
+ number1: {
7
+ name: string;
8
+ detail: string;
9
+ };
10
+ number2: {
11
+ name: string;
12
+ detail: string;
13
+ };
14
+ };
15
+ };
16
+ SUMIF: {
17
+ description: string;
18
+ abstract: string;
19
+ functionParameter: {
20
+ range: {
21
+ name: string;
22
+ detail: string;
23
+ };
24
+ criteria: {
25
+ name: string;
26
+ detail: string;
27
+ };
28
+ sum_range: {
29
+ name: string;
30
+ detail: string;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ export default _default;
36
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/math/en-US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAiCE"}
@@ -0,0 +1,36 @@
1
+ declare const _default: {
2
+ SUM: {
3
+ description: string;
4
+ abstract: string;
5
+ functionParameter: {
6
+ number1: {
7
+ name: string;
8
+ detail: string;
9
+ };
10
+ number2: {
11
+ name: string;
12
+ detail: string;
13
+ };
14
+ };
15
+ };
16
+ SUMIF: {
17
+ description: string;
18
+ abstract: string;
19
+ functionParameter: {
20
+ range: {
21
+ name: string;
22
+ detail: string;
23
+ };
24
+ criteria: {
25
+ name: string;
26
+ detail: string;
27
+ };
28
+ sum_range: {
29
+ name: string;
30
+ detail: string;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ export default _default;
36
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/math/zh-CN.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAiCE"}
@@ -0,0 +1,60 @@
1
+ declare const _default: {
2
+ AVERAGE: {
3
+ description: string;
4
+ abstract: string;
5
+ functionParameter: {
6
+ number1: {
7
+ name: string;
8
+ detail: string;
9
+ };
10
+ number2: {
11
+ name: string;
12
+ detail: string;
13
+ };
14
+ };
15
+ };
16
+ COUNT: {
17
+ description: string;
18
+ abstract: string;
19
+ functionParameter: {
20
+ value1: {
21
+ name: string;
22
+ detail: string;
23
+ };
24
+ value2: {
25
+ name: string;
26
+ detail: string;
27
+ };
28
+ };
29
+ };
30
+ MAX: {
31
+ description: string;
32
+ abstract: string;
33
+ functionParameter: {
34
+ number1: {
35
+ name: string;
36
+ detail: string;
37
+ };
38
+ number2: {
39
+ name: string;
40
+ detail: string;
41
+ };
42
+ };
43
+ };
44
+ MIN: {
45
+ description: string;
46
+ abstract: string;
47
+ functionParameter: {
48
+ number1: {
49
+ name: string;
50
+ detail: string;
51
+ };
52
+ number2: {
53
+ name: string;
54
+ detail: string;
55
+ };
56
+ };
57
+ };
58
+ };
59
+ export default _default;
60
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/statistical/en-US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA0DE"}
@@ -0,0 +1,60 @@
1
+ declare const _default: {
2
+ AVERAGE: {
3
+ description: string;
4
+ abstract: string;
5
+ functionParameter: {
6
+ number1: {
7
+ name: string;
8
+ detail: string;
9
+ };
10
+ number2: {
11
+ name: string;
12
+ detail: string;
13
+ };
14
+ };
15
+ };
16
+ COUNT: {
17
+ description: string;
18
+ abstract: string;
19
+ functionParameter: {
20
+ value1: {
21
+ name: string;
22
+ detail: string;
23
+ };
24
+ value2: {
25
+ name: string;
26
+ detail: string;
27
+ };
28
+ };
29
+ };
30
+ MAX: {
31
+ description: string;
32
+ abstract: string;
33
+ functionParameter: {
34
+ number1: {
35
+ name: string;
36
+ detail: string;
37
+ };
38
+ number2: {
39
+ name: string;
40
+ detail: string;
41
+ };
42
+ };
43
+ };
44
+ MIN: {
45
+ description: string;
46
+ abstract: string;
47
+ functionParameter: {
48
+ number1: {
49
+ name: string;
50
+ detail: string;
51
+ };
52
+ number2: {
53
+ name: string;
54
+ detail: string;
55
+ };
56
+ };
57
+ };
58
+ };
59
+ export default _default;
60
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/statistical/zh-CN.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAyDE"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/text/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/text/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/univer/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/univer/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=en-US.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/web/en-US.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../../../src/locale/function-list/web/zh-CN.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,3 @@
1
+ export { default as enUS } from './en-US';
2
+ export { default as zhCN } from './zh-CN';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,136 @@
1
+ declare const _default: {
2
+ formula: {
3
+ insert: {
4
+ tooltip: string;
5
+ sum: string;
6
+ average: string;
7
+ count: string;
8
+ max: string;
9
+ min: string;
10
+ more: string;
11
+ };
12
+ functionList: {
13
+ AVERAGE: {
14
+ description: string;
15
+ abstract: string;
16
+ functionParameter: {
17
+ number1: {
18
+ name: string;
19
+ detail: string;
20
+ };
21
+ number2: {
22
+ name: string;
23
+ detail: string;
24
+ };
25
+ };
26
+ };
27
+ COUNT: {
28
+ description: string;
29
+ abstract: string;
30
+ functionParameter: {
31
+ value1: {
32
+ name: string;
33
+ detail: string;
34
+ };
35
+ value2: {
36
+ name: string;
37
+ detail: string;
38
+ };
39
+ };
40
+ };
41
+ MAX: {
42
+ description: string;
43
+ abstract: string;
44
+ functionParameter: {
45
+ number1: {
46
+ name: string;
47
+ detail: string;
48
+ };
49
+ number2: {
50
+ name: string;
51
+ detail: string;
52
+ };
53
+ };
54
+ };
55
+ MIN: {
56
+ description: string;
57
+ abstract: string;
58
+ functionParameter: {
59
+ number1: {
60
+ name: string;
61
+ detail: string;
62
+ };
63
+ number2: {
64
+ name: string;
65
+ detail: string;
66
+ };
67
+ };
68
+ };
69
+ SUM: {
70
+ description: string;
71
+ abstract: string;
72
+ functionParameter: {
73
+ number1: {
74
+ name: string;
75
+ detail: string;
76
+ };
77
+ number2: {
78
+ name: string;
79
+ detail: string;
80
+ };
81
+ };
82
+ };
83
+ SUMIF: {
84
+ description: string;
85
+ abstract: string;
86
+ functionParameter: {
87
+ range: {
88
+ name: string;
89
+ detail: string;
90
+ };
91
+ criteria: {
92
+ name: string;
93
+ detail: string;
94
+ };
95
+ sum_range: {
96
+ name: string;
97
+ detail: string;
98
+ };
99
+ };
100
+ };
101
+ };
102
+ prompt: {
103
+ helpExample: string;
104
+ helpAbstract: string;
105
+ required: string;
106
+ optional: string;
107
+ };
108
+ functionType: {
109
+ financial: string;
110
+ date: string;
111
+ math: string;
112
+ statistical: string;
113
+ lookup: string;
114
+ database: string;
115
+ text: string;
116
+ logical: string;
117
+ information: string;
118
+ engineering: string;
119
+ cube: string;
120
+ compatibility: string;
121
+ web: string;
122
+ array: string;
123
+ univer: string;
124
+ };
125
+ moreFunctions: {
126
+ confirm: string;
127
+ prev: string;
128
+ next: string;
129
+ searchFunctionPlaceholder: string;
130
+ allFunctions: string;
131
+ syntax: string;
132
+ };
133
+ };
134
+ };
135
+ export default _default;
136
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,wBA+DE"}
@@ -0,0 +1,48 @@
1
+ import { LocaleService } from '@univerjs/core';
2
+ import type { IFunctionInfo } from '@univerjs/engine-formula';
3
+ import { FormulaEngineService } from '@univerjs/engine-formula';
4
+ import type { IDisposable } from '@wendellhu/redi';
5
+ export interface ISearchItem {
6
+ name: string;
7
+ desc: string;
8
+ }
9
+ export interface IDescriptionService {
10
+ /**
11
+ * get all descriptions
12
+ */
13
+ getDescriptions(): Map<string, IFunctionInfo>;
14
+ hasFunction(searchText: string): boolean;
15
+ /**
16
+ * get function info by name
17
+ * @param searchText
18
+ */
19
+ getFunctionInfo(searchText: string): IFunctionInfo | undefined;
20
+ /**
21
+ * get search list by name
22
+ * @param searchText
23
+ * @returns
24
+ */
25
+ getSearchListByName(searchText: string): ISearchItem[];
26
+ /**
27
+ * get search list by type, if type is -1, return all
28
+ * @param type
29
+ * @returns
30
+ */
31
+ getSearchListByType(type: number): ISearchItem[];
32
+ }
33
+ export declare const IDescriptionService: import("@wendellhu/redi").IdentifierDecorator<IDescriptionService>;
34
+ export declare class DescriptionService implements IDescriptionService, IDisposable {
35
+ private _description;
36
+ private readonly _formulaEngineService;
37
+ private readonly _localeService;
38
+ constructor(_description: IFunctionInfo[], _formulaEngineService: FormulaEngineService, _localeService: LocaleService);
39
+ dispose(): void;
40
+ getDescriptions(): Map<string, IFunctionInfo>;
41
+ hasFunction(searchText: string): boolean;
42
+ getFunctionInfo(searchText: string): IFunctionInfo | undefined;
43
+ getSearchListByName(searchText: string): ISearchItem[];
44
+ getSearchListByType(type: number): ISearchItem[];
45
+ private _initialize;
46
+ private _registerDescription;
47
+ }
48
+ //# sourceMappingURL=description.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.service.d.ts","sourceRoot":"","sources":["../../../src/services/description.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMnD,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,eAAe,IAAI,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE9C,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC;;;OAGG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;IAE/D;;;;OAIG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;IAEvD;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;CACpD;AAED,eAAO,MAAM,mBAAmB,oEAA0E,CAAC;AAE3G,qBAAa,kBAAmB,YAAW,mBAAmB,EAAE,WAAW;IAEnE,OAAO,CAAC,YAAY;IACU,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAF9C,YAAY,EAAE,aAAa,EAAE,EACU,qBAAqB,EAAE,oBAAoB,EAClD,cAAc,EAAE,aAAa;IAMzE,OAAO,IAAI,IAAI;IAIf,eAAe;IAIf,WAAW,CAAC,UAAU,EAAE,MAAM;IAK9B,eAAe,CAAC,UAAU,EAAE,MAAM;IAKlC,mBAAmB,CAAC,UAAU,EAAE,MAAM;IActC,mBAAmB,CAAC,IAAI,EAAE,MAAM;IAahC,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,oBAAoB;CAkB/B"}
@@ -0,0 +1,95 @@
1
+ import type { ISequenceNode } from '@univerjs/engine-formula';
2
+ import { FormulaEngineService } from '@univerjs/engine-formula';
3
+ import type { IDisposable } from '@wendellhu/redi';
4
+ import type { Observable } from 'rxjs';
5
+ export interface ISyncToEditorParam {
6
+ textSelectionOffset: number;
7
+ sequences: Array<string | ISequenceNode>;
8
+ }
9
+ export interface IFormulaInputService {
10
+ syncToEditor$: Observable<ISyncToEditorParam>;
11
+ inputFormula$: Observable<string>;
12
+ changeRef$: Observable<boolean>;
13
+ syncToEditor(textSelectionOffset: number): void;
14
+ dispose(): void;
15
+ getSequenceNodes(): Array<string | ISequenceNode>;
16
+ setSequenceNodes(nodes: Array<string | ISequenceNode>): void;
17
+ clearSequenceNodes(): void;
18
+ getCurrentSequenceNodeIndex(strIndex: number): number;
19
+ getCurrentSequenceNodeByIndex(nodeIndex: number): string | ISequenceNode;
20
+ getCurrentSequenceNode(strIndex: number): string | ISequenceNode;
21
+ updateSequenceRef(nodeIndex: number, refString: string): void;
22
+ insertSequenceRef(index: number, refString: string): void;
23
+ insertSequenceString(index: number, content: string): void;
24
+ enableSelectionMoving(): void;
25
+ disableSelectionMoving(): void;
26
+ isSelectionMoving(): boolean;
27
+ enableLockedSelectionChange(): void;
28
+ disableLockedSelectionChange(): void;
29
+ isLockedSelectionChange(): boolean;
30
+ enableLockedSelectionInsert(): void;
31
+ disableLockedSelectionInsert(): void;
32
+ isLockedSelectionInsert(): boolean;
33
+ inputFormula(formulaString: string): void;
34
+ }
35
+ export declare class FormulaInputService implements IFormulaInputService, IDisposable {
36
+ private readonly _formulaEngineService;
37
+ private _sequenceNodes;
38
+ private _isSelectionMoving;
39
+ private _isLockedOnSelectionChangeRefString;
40
+ private _isLockedOnSelectionInsertRefString;
41
+ private readonly _syncToEditor$;
42
+ readonly syncToEditor$: Observable<ISyncToEditorParam>;
43
+ private _changeRef$;
44
+ readonly changeRef$: Observable<boolean>;
45
+ private readonly _inputFormula$;
46
+ readonly inputFormula$: Observable<string>;
47
+ constructor(_formulaEngineService: FormulaEngineService);
48
+ dispose(): void;
49
+ inputFormula(formulaString: string): void;
50
+ syncToEditor(textSelectionOffset: number): void;
51
+ getSequenceNodes(): (string | ISequenceNode)[];
52
+ setSequenceNodes(nodes: Array<string | ISequenceNode>): void;
53
+ clearSequenceNodes(): void;
54
+ getCurrentSequenceNode(strIndex: number): string | ISequenceNode;
55
+ getCurrentSequenceNodeByIndex(nodeIndex: number): string | ISequenceNode;
56
+ /**
57
+ * Query the text coordinates in the sequenceNodes and determine the actual insertion index.
58
+ * @param sequenceNodes
59
+ * @param strIndex
60
+ * @returns
61
+ */
62
+ getCurrentSequenceNodeIndex(strIndex: number): number;
63
+ /**
64
+ * Synchronize the reference text based on the changes of the selection.
65
+ * @param refIndex
66
+ * @param rangeWithCoord
67
+ * @returns
68
+ */
69
+ updateSequenceRef(nodeIndex: number, refString: string): void;
70
+ /**
71
+ * When the cursor is on the right side of a formula token,
72
+ * you can add reference text to the formula by drawing a selection.
73
+ * @param index
74
+ * @param range
75
+ */
76
+ insertSequenceRef(index: number, refString: string): void;
77
+ /**
78
+ * Insert a string at the cursor position in the text corresponding to the sequenceNodes.
79
+ * @param sequenceNodes
80
+ * @param index
81
+ * @param content
82
+ */
83
+ insertSequenceString(index: number, content: string): void;
84
+ enableSelectionMoving(): void;
85
+ disableSelectionMoving(): void;
86
+ isSelectionMoving(): boolean;
87
+ enableLockedSelectionChange(): void;
88
+ disableLockedSelectionChange(): void;
89
+ isLockedSelectionChange(): boolean;
90
+ enableLockedSelectionInsert(): void;
91
+ disableLockedSelectionInsert(): void;
92
+ isLockedSelectionInsert(): boolean;
93
+ }
94
+ export declare const IFormulaInputService: import("@wendellhu/redi").IdentifierDecorator<FormulaInputService>;
95
+ //# sourceMappingURL=formula-input.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formula-input.service.d.ts","sourceRoot":"","sources":["../../../src/services/formula-input.service.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import type { IFunctionInfo } from '@univerjs/engine-formula';
2
+ export declare const FUNCTION_LIST_ARRAY: IFunctionInfo[];
3
+ //# sourceMappingURL=array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../../src/services/function-list/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAAO,CAAC"}