@univerjs/sheets-formula 0.2.2 → 0.2.3

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 (62) hide show
  1. package/README.md +13 -7
  2. package/lib/cjs/index.js +4 -4
  3. package/lib/es/index.js +3908 -3854
  4. package/lib/locale/en-US.json +34 -62
  5. package/lib/locale/ru-RU.json +34 -62
  6. package/lib/locale/vi-VN.json +7425 -0
  7. package/lib/locale/zh-CN.json +38 -66
  8. package/lib/locale/zh-TW.json +10304 -0
  9. package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
  10. package/lib/types/controllers/formula-ui.controller.d.ts +1 -0
  11. package/lib/types/controllers/prompt.controller.d.ts +18 -22
  12. package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -0
  13. package/lib/types/controllers/update-formula.controller.d.ts +2 -2
  14. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -17
  15. package/lib/types/formula-ui-plugin.d.ts +8 -2
  16. package/lib/types/index.d.ts +2 -2
  17. package/lib/types/locale/en-US.d.ts +14 -42
  18. package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
  19. package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
  20. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +702 -0
  21. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +702 -0
  22. package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
  23. package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
  24. package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
  25. package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
  26. package/lib/types/locale/function-list/date/vi-VN.d.ts +379 -0
  27. package/lib/types/locale/function-list/date/zh-TW.d.ts +438 -0
  28. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +990 -0
  29. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +990 -0
  30. package/lib/types/locale/function-list/financial/vi-VN.d.ts +954 -0
  31. package/lib/types/locale/function-list/financial/zh-TW.d.ts +1008 -0
  32. package/lib/types/locale/function-list/information/vi-VN.d.ts +3 -0
  33. package/lib/types/locale/function-list/information/zh-TW.d.ts +352 -0
  34. package/lib/types/locale/function-list/logical/vi-VN.d.ts +368 -0
  35. package/lib/types/locale/function-list/logical/zh-TW.d.ts +368 -0
  36. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +188 -0
  37. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +752 -0
  38. package/lib/types/locale/function-list/math/en-US.d.ts +14 -42
  39. package/lib/types/locale/function-list/math/ja-JP.d.ts +14 -42
  40. package/lib/types/locale/function-list/math/vi-VN.d.ts +3 -0
  41. package/lib/types/locale/function-list/math/zh-CN.d.ts +14 -42
  42. package/lib/types/locale/function-list/math/zh-TW.d.ts +1498 -0
  43. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +394 -0
  44. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2060 -0
  45. package/lib/types/locale/function-list/text/vi-VN.d.ts +650 -0
  46. package/lib/types/locale/function-list/text/zh-TW.d.ts +852 -0
  47. package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
  48. package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
  49. package/lib/types/locale/function-list/web/vi-VN.d.ts +3 -0
  50. package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
  51. package/lib/types/locale/ru-RU.d.ts +14 -42
  52. package/lib/types/locale/vi-VN.d.ts +6699 -0
  53. package/lib/types/locale/zh-CN.d.ts +14 -42
  54. package/lib/types/locale/zh-TW.d.ts +9300 -0
  55. package/lib/types/services/prompt.service.d.ts +0 -6
  56. package/lib/types/services/register-function.service.d.ts +19 -5
  57. package/lib/types/services/register-other-formula.service.d.ts +1 -0
  58. package/lib/types/services/remote/remote-register-function.service.d.ts +17 -0
  59. package/lib/types/services/render-services/ref-selections.render-service.d.ts +35 -0
  60. package/lib/umd/index.js +4 -4
  61. package/package.json +21 -19
  62. package/lib/types/services/formula-custom-function.service.d.ts +0 -19
@@ -0,0 +1,234 @@
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
+ DAVERAGE: {
18
+ description: string;
19
+ abstract: string;
20
+ links: {
21
+ title: string;
22
+ url: string;
23
+ }[];
24
+ functionParameter: {
25
+ number1: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ number2: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ };
34
+ };
35
+ DCOUNT: {
36
+ description: string;
37
+ abstract: string;
38
+ links: {
39
+ title: string;
40
+ url: string;
41
+ }[];
42
+ functionParameter: {
43
+ number1: {
44
+ name: string;
45
+ detail: string;
46
+ };
47
+ number2: {
48
+ name: string;
49
+ detail: string;
50
+ };
51
+ };
52
+ };
53
+ DCOUNTA: {
54
+ description: string;
55
+ abstract: string;
56
+ links: {
57
+ title: string;
58
+ url: string;
59
+ }[];
60
+ functionParameter: {
61
+ number1: {
62
+ name: string;
63
+ detail: string;
64
+ };
65
+ number2: {
66
+ name: string;
67
+ detail: string;
68
+ };
69
+ };
70
+ };
71
+ DGET: {
72
+ description: string;
73
+ abstract: string;
74
+ links: {
75
+ title: string;
76
+ url: string;
77
+ }[];
78
+ functionParameter: {
79
+ number1: {
80
+ name: string;
81
+ detail: string;
82
+ };
83
+ number2: {
84
+ name: string;
85
+ detail: string;
86
+ };
87
+ };
88
+ };
89
+ DMAX: {
90
+ description: string;
91
+ abstract: string;
92
+ links: {
93
+ title: string;
94
+ url: string;
95
+ }[];
96
+ functionParameter: {
97
+ number1: {
98
+ name: string;
99
+ detail: string;
100
+ };
101
+ number2: {
102
+ name: string;
103
+ detail: string;
104
+ };
105
+ };
106
+ };
107
+ DMIN: {
108
+ description: string;
109
+ abstract: string;
110
+ links: {
111
+ title: string;
112
+ url: string;
113
+ }[];
114
+ functionParameter: {
115
+ number1: {
116
+ name: string;
117
+ detail: string;
118
+ };
119
+ number2: {
120
+ name: string;
121
+ detail: string;
122
+ };
123
+ };
124
+ };
125
+ DPRODUCT: {
126
+ description: string;
127
+ abstract: string;
128
+ links: {
129
+ title: string;
130
+ url: string;
131
+ }[];
132
+ functionParameter: {
133
+ number1: {
134
+ name: string;
135
+ detail: string;
136
+ };
137
+ number2: {
138
+ name: string;
139
+ detail: string;
140
+ };
141
+ };
142
+ };
143
+ DSTDEV: {
144
+ description: string;
145
+ abstract: string;
146
+ links: {
147
+ title: string;
148
+ url: string;
149
+ }[];
150
+ functionParameter: {
151
+ number1: {
152
+ name: string;
153
+ detail: string;
154
+ };
155
+ number2: {
156
+ name: string;
157
+ detail: string;
158
+ };
159
+ };
160
+ };
161
+ DSTDEVP: {
162
+ description: string;
163
+ abstract: string;
164
+ links: {
165
+ title: string;
166
+ url: string;
167
+ }[];
168
+ functionParameter: {
169
+ number1: {
170
+ name: string;
171
+ detail: string;
172
+ };
173
+ number2: {
174
+ name: string;
175
+ detail: string;
176
+ };
177
+ };
178
+ };
179
+ DSUM: {
180
+ description: string;
181
+ abstract: string;
182
+ links: {
183
+ title: string;
184
+ url: string;
185
+ }[];
186
+ functionParameter: {
187
+ number1: {
188
+ name: string;
189
+ detail: string;
190
+ };
191
+ number2: {
192
+ name: string;
193
+ detail: string;
194
+ };
195
+ };
196
+ };
197
+ DVAR: {
198
+ description: string;
199
+ abstract: string;
200
+ links: {
201
+ title: string;
202
+ url: string;
203
+ }[];
204
+ functionParameter: {
205
+ number1: {
206
+ name: string;
207
+ detail: string;
208
+ };
209
+ number2: {
210
+ name: string;
211
+ detail: string;
212
+ };
213
+ };
214
+ };
215
+ DVARP: {
216
+ description: string;
217
+ abstract: string;
218
+ links: {
219
+ title: string;
220
+ url: string;
221
+ }[];
222
+ functionParameter: {
223
+ number1: {
224
+ name: string;
225
+ detail: string;
226
+ };
227
+ number2: {
228
+ name: string;
229
+ detail: string;
230
+ };
231
+ };
232
+ };
233
+ };
234
+ export default _default;
@@ -0,0 +1,379 @@
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
+ DATE: {
18
+ description: string;
19
+ abstract: string;
20
+ links: {
21
+ title: string;
22
+ url: string;
23
+ }[];
24
+ functionParameter: {
25
+ year: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ month: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ day: {
34
+ name: string;
35
+ detail: string;
36
+ };
37
+ };
38
+ };
39
+ DATEDIF: {
40
+ description: string;
41
+ abstract: string;
42
+ links: {
43
+ title: string;
44
+ url: string;
45
+ }[];
46
+ functionParameter: {
47
+ number1: {
48
+ name: string;
49
+ detail: string;
50
+ };
51
+ number2: {
52
+ name: string;
53
+ detail: string;
54
+ };
55
+ };
56
+ };
57
+ DATEVALUE: {
58
+ description: string;
59
+ abstract: string;
60
+ links: {
61
+ title: string;
62
+ url: string;
63
+ }[];
64
+ functionParameter: {
65
+ dateText: {
66
+ name: string;
67
+ detail: string;
68
+ };
69
+ };
70
+ };
71
+ DAY: {
72
+ description: string;
73
+ abstract: string;
74
+ links: {
75
+ title: string;
76
+ url: string;
77
+ }[];
78
+ functionParameter: {
79
+ serialNumber: {
80
+ name: string;
81
+ detail: string;
82
+ };
83
+ };
84
+ };
85
+ DAYS: {
86
+ description: string;
87
+ abstract: string;
88
+ links: {
89
+ title: string;
90
+ url: string;
91
+ }[];
92
+ functionParameter: {
93
+ number1: {
94
+ name: string;
95
+ detail: string;
96
+ };
97
+ number2: {
98
+ name: string;
99
+ detail: string;
100
+ };
101
+ };
102
+ };
103
+ DAYS360: {
104
+ description: string;
105
+ abstract: string;
106
+ links: {
107
+ title: string;
108
+ url: string;
109
+ }[];
110
+ functionParameter: {
111
+ number1: {
112
+ name: string;
113
+ detail: string;
114
+ };
115
+ number2: {
116
+ name: string;
117
+ detail: string;
118
+ };
119
+ };
120
+ };
121
+ EDATE: {
122
+ description: string;
123
+ abstract: string;
124
+ links: {
125
+ title: string;
126
+ url: string;
127
+ }[];
128
+ functionParameter: {
129
+ startDate: {
130
+ name: string;
131
+ detail: string;
132
+ };
133
+ months: {
134
+ name: string;
135
+ detail: string;
136
+ };
137
+ };
138
+ };
139
+ EOMONTH: {
140
+ description: string;
141
+ abstract: string;
142
+ links: {
143
+ title: string;
144
+ url: string;
145
+ }[];
146
+ functionParameter: {
147
+ number1: {
148
+ name: string;
149
+ detail: string;
150
+ };
151
+ number2: {
152
+ name: string;
153
+ detail: string;
154
+ };
155
+ };
156
+ };
157
+ HOUR: {
158
+ description: string;
159
+ abstract: string;
160
+ links: {
161
+ title: string;
162
+ url: string;
163
+ }[];
164
+ functionParameter: {
165
+ number1: {
166
+ name: string;
167
+ detail: string;
168
+ };
169
+ number2: {
170
+ name: string;
171
+ detail: string;
172
+ };
173
+ };
174
+ };
175
+ MINUTE: {
176
+ description: string;
177
+ abstract: string;
178
+ links: {
179
+ title: string;
180
+ url: string;
181
+ }[];
182
+ functionParameter: {
183
+ number1: {
184
+ name: string;
185
+ detail: string;
186
+ };
187
+ number2: {
188
+ name: string;
189
+ detail: string;
190
+ };
191
+ };
192
+ };
193
+ MONTH: {
194
+ description: string;
195
+ abstract: string;
196
+ links: {
197
+ title: string;
198
+ url: string;
199
+ }[];
200
+ functionParameter: {
201
+ serialNumber: {
202
+ name: string;
203
+ detail: string;
204
+ };
205
+ };
206
+ };
207
+ NETWORKDAYS: {
208
+ description: string;
209
+ abstract: string;
210
+ links: {
211
+ title: string;
212
+ url: string;
213
+ }[];
214
+ functionParameter: {
215
+ number1: {
216
+ name: string;
217
+ detail: string;
218
+ };
219
+ number2: {
220
+ name: string;
221
+ detail: string;
222
+ };
223
+ };
224
+ };
225
+ SECOND: {
226
+ description: string;
227
+ abstract: string;
228
+ links: {
229
+ title: string;
230
+ url: string;
231
+ }[];
232
+ functionParameter: {
233
+ number1: {
234
+ name: string;
235
+ detail: string;
236
+ };
237
+ number2: {
238
+ name: string;
239
+ detail: string;
240
+ };
241
+ };
242
+ };
243
+ TIME: {
244
+ description: string;
245
+ abstract: string;
246
+ links: {
247
+ title: string;
248
+ url: string;
249
+ }[];
250
+ functionParameter: {
251
+ number1: {
252
+ name: string;
253
+ detail: string;
254
+ };
255
+ number2: {
256
+ name: string;
257
+ detail: string;
258
+ };
259
+ };
260
+ };
261
+ TIMEVALUE: {
262
+ description: string;
263
+ abstract: string;
264
+ links: {
265
+ title: string;
266
+ url: string;
267
+ }[];
268
+ functionParameter: {
269
+ timeText: {
270
+ name: string;
271
+ detail: string;
272
+ };
273
+ };
274
+ };
275
+ TODAY: {
276
+ description: string;
277
+ abstract: string;
278
+ links: {
279
+ title: string;
280
+ url: string;
281
+ }[];
282
+ functionParameter: {};
283
+ };
284
+ WEEKDAY: {
285
+ description: string;
286
+ abstract: string;
287
+ links: {
288
+ title: string;
289
+ url: string;
290
+ }[];
291
+ functionParameter: {
292
+ number1: {
293
+ name: string;
294
+ detail: string;
295
+ };
296
+ number2: {
297
+ name: string;
298
+ detail: string;
299
+ };
300
+ };
301
+ };
302
+ WEEKNUM: {
303
+ description: string;
304
+ abstract: string;
305
+ links: {
306
+ title: string;
307
+ url: string;
308
+ }[];
309
+ functionParameter: {
310
+ number1: {
311
+ name: string;
312
+ detail: string;
313
+ };
314
+ number2: {
315
+ name: string;
316
+ detail: string;
317
+ };
318
+ };
319
+ };
320
+ WORKDAY: {
321
+ description: string;
322
+ abstract: string;
323
+ links: {
324
+ title: string;
325
+ url: string;
326
+ }[];
327
+ functionParameter: {
328
+ startDate: {
329
+ name: string;
330
+ detail: string;
331
+ };
332
+ days: {
333
+ name: string;
334
+ detail: string;
335
+ };
336
+ holidays: {
337
+ name: string;
338
+ detail: string;
339
+ };
340
+ };
341
+ };
342
+ YEAR: {
343
+ description: string;
344
+ abstract: string;
345
+ links: {
346
+ title: string;
347
+ url: string;
348
+ }[];
349
+ functionParameter: {
350
+ serialNumber: {
351
+ name: string;
352
+ detail: string;
353
+ };
354
+ };
355
+ };
356
+ YEARFRAC: {
357
+ description: string;
358
+ abstract: string;
359
+ links: {
360
+ title: string;
361
+ url: string;
362
+ }[];
363
+ functionParameter: {
364
+ startDate: {
365
+ name: string;
366
+ detail: string;
367
+ };
368
+ endDate: {
369
+ name: string;
370
+ detail: string;
371
+ };
372
+ basis: {
373
+ name: string;
374
+ detail: string;
375
+ };
376
+ };
377
+ };
378
+ };
379
+ export default _default;