@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,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;
|
|
@@ -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
|
};
|