@univerjs/sheets-formula 0.2.2 → 0.2.4-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.
- package/README.md +13 -7
- package/lib/cjs/index.js +4 -4
- package/lib/es/index.js +4321 -4196
- package/lib/locale/en-US.json +103 -119
- package/lib/locale/ru-RU.json +103 -119
- package/lib/locale/vi-VN.json +7425 -0
- package/lib/locale/zh-CN.json +107 -123
- package/lib/locale/zh-TW.json +10292 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +7 -8
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -2
- package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -2
- package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
- package/lib/types/controllers/formula-ui.controller.d.ts +2 -2
- package/lib/types/controllers/menu.d.ts +1 -1
- package/lib/types/controllers/prompt.controller.d.ts +27 -25
- package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -0
- package/lib/types/controllers/update-formula.controller.d.ts +3 -4
- package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -17
- package/lib/types/formula-ui-plugin.d.ts +9 -4
- package/lib/types/index.d.ts +2 -2
- package/lib/types/locale/en-US.d.ts +53 -69
- package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
- package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
- package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +702 -0
- package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +702 -0
- package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
- package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
- package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
- package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
- package/lib/types/locale/function-list/date/en-US.d.ts +37 -25
- package/lib/types/locale/function-list/date/ja-JP.d.ts +37 -25
- package/lib/types/locale/function-list/date/vi-VN.d.ts +379 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts +37 -25
- package/lib/types/locale/function-list/date/zh-TW.d.ts +426 -0
- package/lib/types/locale/function-list/engineering/vi-VN.d.ts +990 -0
- package/lib/types/locale/function-list/engineering/zh-TW.d.ts +990 -0
- package/lib/types/locale/function-list/financial/vi-VN.d.ts +954 -0
- package/lib/types/locale/function-list/financial/zh-TW.d.ts +1008 -0
- package/lib/types/locale/function-list/information/vi-VN.d.ts +3 -0
- package/lib/types/locale/function-list/information/zh-TW.d.ts +352 -0
- package/lib/types/locale/function-list/logical/vi-VN.d.ts +368 -0
- package/lib/types/locale/function-list/logical/zh-TW.d.ts +368 -0
- package/lib/types/locale/function-list/lookup/vi-VN.d.ts +188 -0
- package/lib/types/locale/function-list/lookup/zh-TW.d.ts +752 -0
- package/lib/types/locale/function-list/math/en-US.d.ts +16 -44
- package/lib/types/locale/function-list/math/ja-JP.d.ts +16 -44
- package/lib/types/locale/function-list/math/vi-VN.d.ts +3 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts +16 -44
- package/lib/types/locale/function-list/math/zh-TW.d.ts +1498 -0
- package/lib/types/locale/function-list/statistical/vi-VN.d.ts +394 -0
- package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2060 -0
- package/lib/types/locale/function-list/text/vi-VN.d.ts +650 -0
- package/lib/types/locale/function-list/text/zh-TW.d.ts +852 -0
- package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
- package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
- package/lib/types/locale/function-list/web/vi-VN.d.ts +3 -0
- package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
- package/lib/types/locale/ru-RU.d.ts +53 -69
- package/lib/types/locale/vi-VN.d.ts +6699 -0
- package/lib/types/locale/zh-CN.d.ts +53 -69
- package/lib/types/locale/zh-TW.d.ts +9288 -0
- package/lib/types/services/description.service.d.ts +2 -3
- package/lib/types/services/formula-ref-range.service.d.ts +1 -2
- package/lib/types/services/prompt.service.d.ts +2 -11
- package/lib/types/services/register-function.service.d.ts +21 -8
- package/lib/types/services/register-other-formula.service.d.ts +1 -0
- package/lib/types/services/remote/remote-register-function.service.d.ts +17 -0
- package/lib/types/services/render-services/ref-selections.render-service.d.ts +36 -0
- package/lib/types/views/prompt/resize-scroll-observer.d.ts +18 -0
- package/lib/umd/index.js +4 -4
- package/package.json +24 -24
- 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;
|
|
@@ -162,11 +162,7 @@ declare const _default: {
|
|
|
162
162
|
url: string;
|
|
163
163
|
}[];
|
|
164
164
|
functionParameter: {
|
|
165
|
-
|
|
166
|
-
name: string;
|
|
167
|
-
detail: string;
|
|
168
|
-
};
|
|
169
|
-
number2: {
|
|
165
|
+
serialNumber: {
|
|
170
166
|
name: string;
|
|
171
167
|
detail: string;
|
|
172
168
|
};
|
|
@@ -198,11 +194,7 @@ declare const _default: {
|
|
|
198
194
|
url: string;
|
|
199
195
|
}[];
|
|
200
196
|
functionParameter: {
|
|
201
|
-
|
|
202
|
-
name: string;
|
|
203
|
-
detail: string;
|
|
204
|
-
};
|
|
205
|
-
number2: {
|
|
197
|
+
serialNumber: {
|
|
206
198
|
name: string;
|
|
207
199
|
detail: string;
|
|
208
200
|
};
|
|
@@ -230,11 +222,15 @@ declare const _default: {
|
|
|
230
222
|
url: string;
|
|
231
223
|
}[];
|
|
232
224
|
functionParameter: {
|
|
233
|
-
|
|
225
|
+
startDate: {
|
|
234
226
|
name: string;
|
|
235
227
|
detail: string;
|
|
236
228
|
};
|
|
237
|
-
|
|
229
|
+
endDate: {
|
|
230
|
+
name: string;
|
|
231
|
+
detail: string;
|
|
232
|
+
};
|
|
233
|
+
holidays: {
|
|
238
234
|
name: string;
|
|
239
235
|
detail: string;
|
|
240
236
|
};
|
|
@@ -248,11 +244,19 @@ declare const _default: {
|
|
|
248
244
|
url: string;
|
|
249
245
|
}[];
|
|
250
246
|
functionParameter: {
|
|
251
|
-
|
|
247
|
+
startDate: {
|
|
252
248
|
name: string;
|
|
253
249
|
detail: string;
|
|
254
250
|
};
|
|
255
|
-
|
|
251
|
+
endDate: {
|
|
252
|
+
name: string;
|
|
253
|
+
detail: string;
|
|
254
|
+
};
|
|
255
|
+
weekend: {
|
|
256
|
+
name: string;
|
|
257
|
+
detail: string;
|
|
258
|
+
};
|
|
259
|
+
holidays: {
|
|
256
260
|
name: string;
|
|
257
261
|
detail: string;
|
|
258
262
|
};
|
|
@@ -275,11 +279,7 @@ declare const _default: {
|
|
|
275
279
|
url: string;
|
|
276
280
|
}[];
|
|
277
281
|
functionParameter: {
|
|
278
|
-
|
|
279
|
-
name: string;
|
|
280
|
-
detail: string;
|
|
281
|
-
};
|
|
282
|
-
number2: {
|
|
282
|
+
serialNumber: {
|
|
283
283
|
name: string;
|
|
284
284
|
detail: string;
|
|
285
285
|
};
|
|
@@ -338,11 +338,11 @@ declare const _default: {
|
|
|
338
338
|
url: string;
|
|
339
339
|
}[];
|
|
340
340
|
functionParameter: {
|
|
341
|
-
|
|
341
|
+
serialNumber: {
|
|
342
342
|
name: string;
|
|
343
343
|
detail: string;
|
|
344
344
|
};
|
|
345
|
-
|
|
345
|
+
returnType: {
|
|
346
346
|
name: string;
|
|
347
347
|
detail: string;
|
|
348
348
|
};
|
|
@@ -374,11 +374,15 @@ declare const _default: {
|
|
|
374
374
|
url: string;
|
|
375
375
|
}[];
|
|
376
376
|
functionParameter: {
|
|
377
|
-
|
|
377
|
+
startDate: {
|
|
378
378
|
name: string;
|
|
379
379
|
detail: string;
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
days: {
|
|
382
|
+
name: string;
|
|
383
|
+
detail: string;
|
|
384
|
+
};
|
|
385
|
+
holidays: {
|
|
382
386
|
name: string;
|
|
383
387
|
detail: string;
|
|
384
388
|
};
|
|
@@ -392,11 +396,19 @@ declare const _default: {
|
|
|
392
396
|
url: string;
|
|
393
397
|
}[];
|
|
394
398
|
functionParameter: {
|
|
395
|
-
|
|
399
|
+
startDate: {
|
|
396
400
|
name: string;
|
|
397
401
|
detail: string;
|
|
398
402
|
};
|
|
399
|
-
|
|
403
|
+
days: {
|
|
404
|
+
name: string;
|
|
405
|
+
detail: string;
|
|
406
|
+
};
|
|
407
|
+
weekend: {
|
|
408
|
+
name: string;
|
|
409
|
+
detail: string;
|
|
410
|
+
};
|
|
411
|
+
holidays: {
|
|
400
412
|
name: string;
|
|
401
413
|
detail: string;
|
|
402
414
|
};
|
|
@@ -162,11 +162,7 @@ declare const _default: {
|
|
|
162
162
|
url: string;
|
|
163
163
|
}[];
|
|
164
164
|
functionParameter: {
|
|
165
|
-
|
|
166
|
-
name: string;
|
|
167
|
-
detail: string;
|
|
168
|
-
};
|
|
169
|
-
number2: {
|
|
165
|
+
serialNumber: {
|
|
170
166
|
name: string;
|
|
171
167
|
detail: string;
|
|
172
168
|
};
|
|
@@ -198,11 +194,7 @@ declare const _default: {
|
|
|
198
194
|
url: string;
|
|
199
195
|
}[];
|
|
200
196
|
functionParameter: {
|
|
201
|
-
|
|
202
|
-
name: string;
|
|
203
|
-
detail: string;
|
|
204
|
-
};
|
|
205
|
-
number2: {
|
|
197
|
+
serialNumber: {
|
|
206
198
|
name: string;
|
|
207
199
|
detail: string;
|
|
208
200
|
};
|
|
@@ -230,11 +222,15 @@ declare const _default: {
|
|
|
230
222
|
url: string;
|
|
231
223
|
}[];
|
|
232
224
|
functionParameter: {
|
|
233
|
-
|
|
225
|
+
startDate: {
|
|
234
226
|
name: string;
|
|
235
227
|
detail: string;
|
|
236
228
|
};
|
|
237
|
-
|
|
229
|
+
endDate: {
|
|
230
|
+
name: string;
|
|
231
|
+
detail: string;
|
|
232
|
+
};
|
|
233
|
+
holidays: {
|
|
238
234
|
name: string;
|
|
239
235
|
detail: string;
|
|
240
236
|
};
|
|
@@ -248,11 +244,19 @@ declare const _default: {
|
|
|
248
244
|
url: string;
|
|
249
245
|
}[];
|
|
250
246
|
functionParameter: {
|
|
251
|
-
|
|
247
|
+
startDate: {
|
|
252
248
|
name: string;
|
|
253
249
|
detail: string;
|
|
254
250
|
};
|
|
255
|
-
|
|
251
|
+
endDate: {
|
|
252
|
+
name: string;
|
|
253
|
+
detail: string;
|
|
254
|
+
};
|
|
255
|
+
weekend: {
|
|
256
|
+
name: string;
|
|
257
|
+
detail: string;
|
|
258
|
+
};
|
|
259
|
+
holidays: {
|
|
256
260
|
name: string;
|
|
257
261
|
detail: string;
|
|
258
262
|
};
|
|
@@ -275,11 +279,7 @@ declare const _default: {
|
|
|
275
279
|
url: string;
|
|
276
280
|
}[];
|
|
277
281
|
functionParameter: {
|
|
278
|
-
|
|
279
|
-
name: string;
|
|
280
|
-
detail: string;
|
|
281
|
-
};
|
|
282
|
-
number2: {
|
|
282
|
+
serialNumber: {
|
|
283
283
|
name: string;
|
|
284
284
|
detail: string;
|
|
285
285
|
};
|
|
@@ -338,11 +338,11 @@ declare const _default: {
|
|
|
338
338
|
url: string;
|
|
339
339
|
}[];
|
|
340
340
|
functionParameter: {
|
|
341
|
-
|
|
341
|
+
serialNumber: {
|
|
342
342
|
name: string;
|
|
343
343
|
detail: string;
|
|
344
344
|
};
|
|
345
|
-
|
|
345
|
+
returnType: {
|
|
346
346
|
name: string;
|
|
347
347
|
detail: string;
|
|
348
348
|
};
|
|
@@ -374,11 +374,15 @@ declare const _default: {
|
|
|
374
374
|
url: string;
|
|
375
375
|
}[];
|
|
376
376
|
functionParameter: {
|
|
377
|
-
|
|
377
|
+
startDate: {
|
|
378
378
|
name: string;
|
|
379
379
|
detail: string;
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
days: {
|
|
382
|
+
name: string;
|
|
383
|
+
detail: string;
|
|
384
|
+
};
|
|
385
|
+
holidays: {
|
|
382
386
|
name: string;
|
|
383
387
|
detail: string;
|
|
384
388
|
};
|
|
@@ -392,11 +396,19 @@ declare const _default: {
|
|
|
392
396
|
url: string;
|
|
393
397
|
}[];
|
|
394
398
|
functionParameter: {
|
|
395
|
-
|
|
399
|
+
startDate: {
|
|
396
400
|
name: string;
|
|
397
401
|
detail: string;
|
|
398
402
|
};
|
|
399
|
-
|
|
403
|
+
days: {
|
|
404
|
+
name: string;
|
|
405
|
+
detail: string;
|
|
406
|
+
};
|
|
407
|
+
weekend: {
|
|
408
|
+
name: string;
|
|
409
|
+
detail: string;
|
|
410
|
+
};
|
|
411
|
+
holidays: {
|
|
400
412
|
name: string;
|
|
401
413
|
detail: string;
|
|
402
414
|
};
|