@univerjs/sheets-formula 0.3.0 → 0.4.0-alpha.0

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 (155) hide show
  1. package/lib/cjs/index.js +1 -11
  2. package/lib/es/index.js +2698 -5285
  3. package/lib/types/common/plugin-name.d.ts +1 -1
  4. package/lib/types/controllers/active-dirty.controller.d.ts +2 -3
  5. package/lib/types/controllers/{array-formula-display.controller.d.ts → array-formula-cell-interceptor.controller.d.ts} +3 -4
  6. package/lib/types/controllers/config.schema.d.ts +1 -7
  7. package/lib/types/controllers/formula.controller.d.ts +5 -0
  8. package/lib/types/controllers/trigger-calculation.controller.d.ts +13 -8
  9. package/lib/types/controllers/update-defined-name.controller.d.ts +14 -0
  10. package/lib/types/controllers/update-formula.controller.d.ts +11 -52
  11. package/lib/types/controllers/utils/ref-range-formula.d.ts +8 -2
  12. package/lib/types/controllers/utils/ref-range-move.d.ts +22 -0
  13. package/lib/types/controllers/utils/ref-range-param.d.ts +3 -0
  14. package/lib/types/index.d.ts +9 -16
  15. package/lib/types/services/description.service.d.ts +1 -1
  16. package/lib/types/sheets-formula.plugin.d.ts +22 -0
  17. package/lib/umd/index.js +1 -11
  18. package/package.json +20 -35
  19. package/lib/index.css +0 -1
  20. package/lib/locale/en-US.json +0 -10987
  21. package/lib/locale/ru-RU.json +0 -10938
  22. package/lib/locale/vi-VN.json +0 -9511
  23. package/lib/locale/zh-CN.json +0 -10987
  24. package/lib/locale/zh-TW.json +0 -10987
  25. package/lib/types/commands/commands/formula-clipboard.command.d.ts +0 -2
  26. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +0 -13
  27. package/lib/types/commands/operations/editor-formula.operation.d.ts +0 -11
  28. package/lib/types/commands/operations/help-function.operation.d.ts +0 -2
  29. package/lib/types/commands/operations/insert-function.operation.d.ts +0 -19
  30. package/lib/types/commands/operations/more-functions.operation.d.ts +0 -2
  31. package/lib/types/commands/operations/reference-absolute.operation.d.ts +0 -2
  32. package/lib/types/commands/operations/search-function.operation.d.ts +0 -2
  33. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +0 -7
  34. package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +0 -16
  35. package/lib/types/controllers/__tests__/formula-clipboard.controller.spec.d.ts +0 -16
  36. package/lib/types/controllers/__tests__/update-formula.controller.spec.d.ts +0 -16
  37. package/lib/types/controllers/formula-alert-render.controller.d.ts +0 -15
  38. package/lib/types/controllers/formula-auto-fill.controller.d.ts +0 -11
  39. package/lib/types/controllers/formula-clipboard.controller.d.ts +0 -25
  40. package/lib/types/controllers/formula-editor-show.controller.d.ts +0 -28
  41. package/lib/types/controllers/formula-render.controller.d.ts +0 -7
  42. package/lib/types/controllers/formula-ui.controller.d.ts +0 -19
  43. package/lib/types/controllers/menu.d.ts +0 -5
  44. package/lib/types/controllers/menu.schema.d.ts +0 -2
  45. package/lib/types/controllers/prompt.controller.d.ts +0 -170
  46. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +0 -9
  47. package/lib/types/formula-ui-plugin.d.ts +0 -36
  48. package/lib/types/locale/en-US.d.ts +0 -9983
  49. package/lib/types/locale/function-list/array/en-US.d.ts +0 -17
  50. package/lib/types/locale/function-list/array/ja-JP.d.ts +0 -17
  51. package/lib/types/locale/function-list/array/ru-RU.d.ts +0 -2
  52. package/lib/types/locale/function-list/array/vi-VN.d.ts +0 -17
  53. package/lib/types/locale/function-list/array/zh-CN.d.ts +0 -17
  54. package/lib/types/locale/function-list/array/zh-TW.d.ts +0 -17
  55. package/lib/types/locale/function-list/compatibility/en-US.d.ts +0 -762
  56. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +0 -762
  57. package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -2
  58. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +0 -762
  59. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +0 -762
  60. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +0 -762
  61. package/lib/types/locale/function-list/cube/en-US.d.ts +0 -144
  62. package/lib/types/locale/function-list/cube/ja-JP.d.ts +0 -144
  63. package/lib/types/locale/function-list/cube/ru-RU.d.ts +0 -144
  64. package/lib/types/locale/function-list/cube/vi-VN.d.ts +0 -144
  65. package/lib/types/locale/function-list/cube/zh-CN.d.ts +0 -144
  66. package/lib/types/locale/function-list/cube/zh-TW.d.ts +0 -144
  67. package/lib/types/locale/function-list/database/en-US.d.ts +0 -234
  68. package/lib/types/locale/function-list/database/ja-JP.d.ts +0 -234
  69. package/lib/types/locale/function-list/database/ru-RU.d.ts +0 -234
  70. package/lib/types/locale/function-list/database/vi-VN.d.ts +0 -234
  71. package/lib/types/locale/function-list/database/zh-CN.d.ts +0 -234
  72. package/lib/types/locale/function-list/database/zh-TW.d.ts +0 -234
  73. package/lib/types/locale/function-list/date/en-US.d.ts +0 -458
  74. package/lib/types/locale/function-list/date/ja-JP.d.ts +0 -458
  75. package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -2
  76. package/lib/types/locale/function-list/date/vi-VN.d.ts +0 -458
  77. package/lib/types/locale/function-list/date/zh-CN.d.ts +0 -458
  78. package/lib/types/locale/function-list/date/zh-TW.d.ts +0 -458
  79. package/lib/types/locale/function-list/engineering/en-US.d.ts +0 -894
  80. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +0 -894
  81. package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -2
  82. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +0 -894
  83. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +0 -894
  84. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +0 -894
  85. package/lib/types/locale/function-list/financial/en-US.d.ts +0 -1608
  86. package/lib/types/locale/function-list/financial/ja-JP.d.ts +0 -1608
  87. package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -2
  88. package/lib/types/locale/function-list/financial/vi-VN.d.ts +0 -1608
  89. package/lib/types/locale/function-list/financial/zh-CN.d.ts +0 -1608
  90. package/lib/types/locale/function-list/financial/zh-TW.d.ts +0 -1608
  91. package/lib/types/locale/function-list/information/en-US.d.ts +0 -327
  92. package/lib/types/locale/function-list/information/ja-JP.d.ts +0 -327
  93. package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -2
  94. package/lib/types/locale/function-list/information/vi-VN.d.ts +0 -255
  95. package/lib/types/locale/function-list/information/zh-CN.d.ts +0 -327
  96. package/lib/types/locale/function-list/information/zh-TW.d.ts +0 -327
  97. package/lib/types/locale/function-list/logical/en-US.d.ts +0 -390
  98. package/lib/types/locale/function-list/logical/ja-JP.d.ts +0 -390
  99. package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -2
  100. package/lib/types/locale/function-list/logical/vi-VN.d.ts +0 -390
  101. package/lib/types/locale/function-list/logical/zh-CN.d.ts +0 -390
  102. package/lib/types/locale/function-list/logical/zh-TW.d.ts +0 -390
  103. package/lib/types/locale/function-list/lookup/en-US.d.ts +0 -812
  104. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +0 -812
  105. package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -2
  106. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +0 -722
  107. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +0 -812
  108. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +0 -812
  109. package/lib/types/locale/function-list/math/en-US.d.ts +0 -1388
  110. package/lib/types/locale/function-list/math/ja-JP.d.ts +0 -1388
  111. package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -2
  112. package/lib/types/locale/function-list/math/vi-VN.d.ts +0 -1298
  113. package/lib/types/locale/function-list/math/zh-CN.d.ts +0 -1388
  114. package/lib/types/locale/function-list/math/zh-TW.d.ts +0 -1388
  115. package/lib/types/locale/function-list/statistical/en-US.d.ts +0 -2160
  116. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +0 -2160
  117. package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -2
  118. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +0 -1188
  119. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +0 -2160
  120. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +0 -2160
  121. package/lib/types/locale/function-list/text/en-US.d.ts +0 -904
  122. package/lib/types/locale/function-list/text/ja-JP.d.ts +0 -905
  123. package/lib/types/locale/function-list/text/ru-RU.d.ts +0 -856
  124. package/lib/types/locale/function-list/text/vi-VN.d.ts +0 -784
  125. package/lib/types/locale/function-list/text/zh-CN.d.ts +0 -904
  126. package/lib/types/locale/function-list/text/zh-TW.d.ts +0 -904
  127. package/lib/types/locale/function-list/univer/en-US.d.ts +0 -17
  128. package/lib/types/locale/function-list/univer/ja-JP.d.ts +0 -17
  129. package/lib/types/locale/function-list/univer/ru-RU.d.ts +0 -17
  130. package/lib/types/locale/function-list/univer/vi-VN.d.ts +0 -17
  131. package/lib/types/locale/function-list/univer/zh-CN.d.ts +0 -17
  132. package/lib/types/locale/function-list/univer/zh-TW.d.ts +0 -17
  133. package/lib/types/locale/function-list/web/en-US.d.ts +0 -72
  134. package/lib/types/locale/function-list/web/ja-JP.d.ts +0 -72
  135. package/lib/types/locale/function-list/web/ru-RU.d.ts +0 -72
  136. package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -2
  137. package/lib/types/locale/function-list/web/zh-CN.d.ts +0 -72
  138. package/lib/types/locale/function-list/web/zh-TW.d.ts +0 -72
  139. package/lib/types/locale/ru-RU.d.ts +0 -9934
  140. package/lib/types/locale/vi-VN.d.ts +0 -8657
  141. package/lib/types/locale/zh-CN.d.ts +0 -9983
  142. package/lib/types/locale/zh-TW.d.ts +0 -9983
  143. package/lib/types/services/prompt.service.d.ts +0 -160
  144. package/lib/types/services/render-services/ref-selections.render-service.d.ts +0 -42
  145. package/lib/types/views/FormulaPromptContainer.d.ts +0 -2
  146. package/lib/types/views/more-functions/MoreFunctions.d.ts +0 -2
  147. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +0 -22
  148. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +0 -8
  149. package/lib/types/views/more-functions/input-params/InputParams.d.ts +0 -7
  150. package/lib/types/views/more-functions/interface.d.ts +0 -16
  151. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +0 -6
  152. package/lib/types/views/prompt/help-function/HelpFunction.d.ts +0 -2
  153. package/lib/types/views/prompt/resize-scroll-observer.d.ts +0 -18
  154. package/lib/types/views/prompt/search-function/SearchFunction.d.ts +0 -2
  155. /package/lib/types/{commands/operations/__tests__/insert-function.operation.spec.d.ts → controllers/utils/__tests__/ref-range-move.spec.d.ts} +0 -0
@@ -1,390 +0,0 @@
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
- declare const _default: {
17
- AND: {
18
- description: string;
19
- abstract: string;
20
- links: {
21
- title: string;
22
- url: string;
23
- }[];
24
- functionParameter: {
25
- logical1: {
26
- name: string;
27
- detail: string;
28
- };
29
- logical2: {
30
- name: string;
31
- detail: string;
32
- };
33
- };
34
- };
35
- BYCOL: {
36
- description: string;
37
- abstract: string;
38
- links: {
39
- title: string;
40
- url: string;
41
- }[];
42
- functionParameter: {
43
- array: {
44
- name: string;
45
- detail: string;
46
- };
47
- lambda: {
48
- name: string;
49
- detail: string;
50
- };
51
- };
52
- };
53
- BYROW: {
54
- description: string;
55
- abstract: string;
56
- links: {
57
- title: string;
58
- url: string;
59
- }[];
60
- functionParameter: {
61
- array: {
62
- name: string;
63
- detail: string;
64
- };
65
- lambda: {
66
- name: string;
67
- detail: string;
68
- };
69
- };
70
- };
71
- FALSE: {
72
- description: string;
73
- abstract: string;
74
- links: {
75
- title: string;
76
- url: string;
77
- }[];
78
- functionParameter: {};
79
- };
80
- IF: {
81
- description: string;
82
- abstract: string;
83
- links: {
84
- title: string;
85
- url: string;
86
- }[];
87
- functionParameter: {
88
- logicalTest: {
89
- name: string;
90
- detail: string;
91
- };
92
- valueIfTrue: {
93
- name: string;
94
- detail: string;
95
- };
96
- valueIfFalse: {
97
- name: string;
98
- detail: string;
99
- };
100
- };
101
- };
102
- IFERROR: {
103
- description: string;
104
- abstract: string;
105
- links: {
106
- title: string;
107
- url: string;
108
- }[];
109
- functionParameter: {
110
- value: {
111
- name: string;
112
- detail: string;
113
- };
114
- valueIfError: {
115
- name: string;
116
- detail: string;
117
- };
118
- };
119
- };
120
- IFNA: {
121
- description: string;
122
- abstract: string;
123
- links: {
124
- title: string;
125
- url: string;
126
- }[];
127
- functionParameter: {
128
- value: {
129
- name: string;
130
- detail: string;
131
- };
132
- valueIfNa: {
133
- name: string;
134
- detail: string;
135
- };
136
- };
137
- };
138
- IFS: {
139
- description: string;
140
- abstract: string;
141
- links: {
142
- title: string;
143
- url: string;
144
- }[];
145
- functionParameter: {
146
- logicalTest1: {
147
- name: string;
148
- detail: string;
149
- };
150
- valueIfTrue1: {
151
- name: string;
152
- detail: string;
153
- };
154
- logicalTest2: {
155
- name: string;
156
- detail: string;
157
- };
158
- valueIfTrue2: {
159
- name: string;
160
- detail: string;
161
- };
162
- };
163
- };
164
- LAMBDA: {
165
- description: string;
166
- abstract: string;
167
- links: {
168
- title: string;
169
- url: string;
170
- }[];
171
- functionParameter: {
172
- parameter: {
173
- name: string;
174
- detail: string;
175
- };
176
- calculation: {
177
- name: string;
178
- detail: string;
179
- };
180
- };
181
- };
182
- LET: {
183
- description: string;
184
- abstract: string;
185
- links: {
186
- title: string;
187
- url: string;
188
- }[];
189
- functionParameter: {
190
- name1: {
191
- name: string;
192
- detail: string;
193
- };
194
- nameValue1: {
195
- name: string;
196
- detail: string;
197
- };
198
- calculationOrName2: {
199
- name: string;
200
- detail: string;
201
- };
202
- nameValue2: {
203
- name: string;
204
- detail: string;
205
- };
206
- calculationOrName3: {
207
- name: string;
208
- detail: string;
209
- };
210
- };
211
- };
212
- MAKEARRAY: {
213
- description: string;
214
- abstract: string;
215
- links: {
216
- title: string;
217
- url: string;
218
- }[];
219
- functionParameter: {
220
- number1: {
221
- name: string;
222
- detail: string;
223
- };
224
- number2: {
225
- name: string;
226
- detail: string;
227
- };
228
- value3: {
229
- name: string;
230
- detail: string;
231
- };
232
- };
233
- };
234
- MAP: {
235
- description: string;
236
- abstract: string;
237
- links: {
238
- title: string;
239
- url: string;
240
- }[];
241
- functionParameter: {
242
- array1: {
243
- name: string;
244
- detail: string;
245
- };
246
- array2: {
247
- name: string;
248
- detail: string;
249
- };
250
- lambda: {
251
- name: string;
252
- detail: string;
253
- };
254
- };
255
- };
256
- NOT: {
257
- description: string;
258
- abstract: string;
259
- links: {
260
- title: string;
261
- url: string;
262
- }[];
263
- functionParameter: {
264
- logical: {
265
- name: string;
266
- detail: string;
267
- };
268
- };
269
- };
270
- OR: {
271
- description: string;
272
- abstract: string;
273
- links: {
274
- title: string;
275
- url: string;
276
- }[];
277
- functionParameter: {
278
- logical1: {
279
- name: string;
280
- detail: string;
281
- };
282
- logical2: {
283
- name: string;
284
- detail: string;
285
- };
286
- };
287
- };
288
- REDUCE: {
289
- description: string;
290
- abstract: string;
291
- links: {
292
- title: string;
293
- url: string;
294
- }[];
295
- functionParameter: {
296
- initialValue: {
297
- name: string;
298
- detail: string;
299
- };
300
- array: {
301
- name: string;
302
- detail: string;
303
- };
304
- lambda: {
305
- name: string;
306
- detail: string;
307
- };
308
- };
309
- };
310
- SCAN: {
311
- description: string;
312
- abstract: string;
313
- links: {
314
- title: string;
315
- url: string;
316
- }[];
317
- functionParameter: {
318
- initialValue: {
319
- name: string;
320
- detail: string;
321
- };
322
- array: {
323
- name: string;
324
- detail: string;
325
- };
326
- lambda: {
327
- name: string;
328
- detail: string;
329
- };
330
- };
331
- };
332
- SWITCH: {
333
- description: string;
334
- abstract: string;
335
- links: {
336
- title: string;
337
- url: string;
338
- }[];
339
- functionParameter: {
340
- expression: {
341
- name: string;
342
- detail: string;
343
- };
344
- value1: {
345
- name: string;
346
- detail: string;
347
- };
348
- result1: {
349
- name: string;
350
- detail: string;
351
- };
352
- defaultOrValue2: {
353
- name: string;
354
- detail: string;
355
- };
356
- result2: {
357
- name: string;
358
- detail: string;
359
- };
360
- };
361
- };
362
- TRUE: {
363
- description: string;
364
- abstract: string;
365
- links: {
366
- title: string;
367
- url: string;
368
- }[];
369
- functionParameter: {};
370
- };
371
- XOR: {
372
- description: string;
373
- abstract: string;
374
- links: {
375
- title: string;
376
- url: string;
377
- }[];
378
- functionParameter: {
379
- logical1: {
380
- name: string;
381
- detail: string;
382
- };
383
- logical2: {
384
- name: string;
385
- detail: string;
386
- };
387
- };
388
- };
389
- };
390
- export default _default;