@univerjs/sheets-formula 0.2.6 → 0.2.7

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 (35) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +324 -377
  3. package/lib/locale/en-US.json +82 -88
  4. package/lib/locale/ru-RU.json +79 -85
  5. package/lib/locale/vi-VN.json +1988 -1483
  6. package/lib/locale/zh-CN.json +122 -128
  7. package/lib/locale/zh-TW.json +206 -244
  8. package/lib/types/controllers/prompt.controller.d.ts +3 -5
  9. package/lib/types/index.d.ts +1 -0
  10. package/lib/types/locale/en-US.d.ts +32 -38
  11. package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
  12. package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
  13. package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
  14. package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
  15. package/lib/types/locale/function-list/logical/en-US.d.ts +31 -33
  16. package/lib/types/locale/function-list/logical/ja-JP.d.ts +31 -33
  17. package/lib/types/locale/function-list/logical/vi-VN.d.ts +31 -33
  18. package/lib/types/locale/function-list/logical/zh-CN.d.ts +31 -33
  19. package/lib/types/locale/function-list/logical/zh-TW.d.ts +31 -33
  20. package/lib/types/locale/function-list/lookup/en-US.d.ts +1 -5
  21. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +1 -5
  22. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
  23. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +1 -5
  24. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +1 -5
  25. package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
  26. package/lib/types/locale/function-list/math/zh-TW.d.ts +21 -77
  27. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
  28. package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
  29. package/lib/types/locale/ru-RU.d.ts +32 -38
  30. package/lib/types/locale/vi-VN.d.ts +917 -446
  31. package/lib/types/locale/zh-CN.d.ts +32 -38
  32. package/lib/types/locale/zh-TW.d.ts +85 -123
  33. package/lib/types/services/prompt.service.d.ts +5 -1
  34. package/lib/umd/index.js +4 -4
  35. package/package.json +23 -23
@@ -50,7 +50,7 @@ export declare class PromptController extends Disposable {
50
50
  private _initialFormulaTheme;
51
51
  private _initialCursorSync;
52
52
  private _initialEditorInputChange;
53
- private _initialExitEditor;
53
+ private _closeRangePromptWhenEditorInvisible;
54
54
  private _initialChangeEditor;
55
55
  private _closeRangePrompt;
56
56
  private _initSelectionsEndListener;
@@ -151,12 +151,10 @@ export declare class PromptController extends Disposable {
151
151
  private _commandExecutedListener;
152
152
  private _moveInEditor;
153
153
  private _userMouseListener;
154
- private _inputFormulaListener;
155
- /**
156
- * Absolute range, triggered by F4
157
- */
158
154
  private _changeRefString;
159
155
  private _changeRangeRef;
160
156
  private _changeSingleRef;
161
157
  private _getEditorObject;
158
+ private _isFormulaEditorActivated;
159
+ private _isSheetOrFormulaEditor;
162
160
  }
@@ -21,6 +21,7 @@ export { RegisterFunctionService } from './services/register-function.service';
21
21
  export { IRegisterFunctionService } from './services/register-function.service';
22
22
  export { IRemoteRegisterFunctionService, RemoteRegisterFunctionService } from './services/remote/remote-register-function.service';
23
23
  export { FormulaRefRangeService } from './services/formula-ref-range.service';
24
+ export { FORMULA_PROMPT_ACTIVATED } from './services/prompt.service';
24
25
  export { RegisterOtherFormulaService } from './services/register-other-formula.service';
25
26
  export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';
26
27
  export { SheetOnlyPasteFormulaCommand } from './commands/commands/formula-clipboard.command';
@@ -2248,16 +2248,7 @@ declare const _default: {
2248
2248
  title: string;
2249
2249
  url: string;
2250
2250
  }[];
2251
- functionParameter: {
2252
- number1: {
2253
- name: string;
2254
- detail: string;
2255
- };
2256
- number2: {
2257
- name: string;
2258
- detail: string;
2259
- };
2260
- };
2251
+ functionParameter: {};
2261
2252
  };
2262
2253
  IF: {
2263
2254
  description: string;
@@ -2307,11 +2298,11 @@ declare const _default: {
2307
2298
  url: string;
2308
2299
  }[];
2309
2300
  functionParameter: {
2310
- number1: {
2301
+ value: {
2311
2302
  name: string;
2312
2303
  detail: string;
2313
2304
  };
2314
- number2: {
2305
+ valueIfNa: {
2315
2306
  name: string;
2316
2307
  detail: string;
2317
2308
  };
@@ -2325,11 +2316,19 @@ declare const _default: {
2325
2316
  url: string;
2326
2317
  }[];
2327
2318
  functionParameter: {
2328
- number1: {
2319
+ logicalTest1: {
2329
2320
  name: string;
2330
2321
  detail: string;
2331
2322
  };
2332
- number2: {
2323
+ valueIfTrue1: {
2324
+ name: string;
2325
+ detail: string;
2326
+ };
2327
+ logicalTest2: {
2328
+ name: string;
2329
+ detail: string;
2330
+ };
2331
+ valueIfTrue2: {
2333
2332
  name: string;
2334
2333
  detail: string;
2335
2334
  };
@@ -2419,11 +2418,7 @@ declare const _default: {
2419
2418
  url: string;
2420
2419
  }[];
2421
2420
  functionParameter: {
2422
- number1: {
2423
- name: string;
2424
- detail: string;
2425
- };
2426
- number2: {
2421
+ logical: {
2427
2422
  name: string;
2428
2423
  detail: string;
2429
2424
  };
@@ -2491,11 +2486,23 @@ declare const _default: {
2491
2486
  url: string;
2492
2487
  }[];
2493
2488
  functionParameter: {
2494
- number1: {
2489
+ expression: {
2495
2490
  name: string;
2496
2491
  detail: string;
2497
2492
  };
2498
- number2: {
2493
+ value1: {
2494
+ name: string;
2495
+ detail: string;
2496
+ };
2497
+ result1: {
2498
+ name: string;
2499
+ detail: string;
2500
+ };
2501
+ defaultOrValue2: {
2502
+ name: string;
2503
+ detail: string;
2504
+ };
2505
+ result2: {
2499
2506
  name: string;
2500
2507
  detail: string;
2501
2508
  };
@@ -2508,16 +2515,7 @@ declare const _default: {
2508
2515
  title: string;
2509
2516
  url: string;
2510
2517
  }[];
2511
- functionParameter: {
2512
- number1: {
2513
- name: string;
2514
- detail: string;
2515
- };
2516
- number2: {
2517
- name: string;
2518
- detail: string;
2519
- };
2520
- };
2518
+ functionParameter: {};
2521
2519
  };
2522
2520
  XOR: {
2523
2521
  description: string;
@@ -2527,11 +2525,11 @@ declare const _default: {
2527
2525
  url: string;
2528
2526
  }[];
2529
2527
  functionParameter: {
2530
- number1: {
2528
+ logical1: {
2531
2529
  name: string;
2532
2530
  detail: string;
2533
2531
  };
2534
- number2: {
2532
+ logical2: {
2535
2533
  name: string;
2536
2534
  detail: string;
2537
2535
  };
@@ -3673,11 +3671,7 @@ declare const _default: {
3673
3671
  url: string;
3674
3672
  }[];
3675
3673
  functionParameter: {
3676
- number1: {
3677
- name: string;
3678
- detail: string;
3679
- };
3680
- number2: {
3674
+ reference: {
3681
3675
  name: string;
3682
3676
  detail: string;
3683
3677
  };
@@ -44,11 +44,15 @@ declare const _default: {
44
44
  url: string;
45
45
  }[];
46
46
  functionParameter: {
47
- number1: {
47
+ startDate: {
48
+ name: string;
49
+ detail: string;
50
+ };
51
+ endDate: {
48
52
  name: string;
49
53
  detail: string;
50
54
  };
51
- number2: {
55
+ method: {
52
56
  name: string;
53
57
  detail: string;
54
58
  };
@@ -90,11 +94,11 @@ declare const _default: {
90
94
  url: string;
91
95
  }[];
92
96
  functionParameter: {
93
- number1: {
97
+ endDate: {
94
98
  name: string;
95
99
  detail: string;
96
100
  };
97
- number2: {
101
+ startDate: {
98
102
  name: string;
99
103
  detail: string;
100
104
  };
@@ -108,11 +112,15 @@ declare const _default: {
108
112
  url: string;
109
113
  }[];
110
114
  functionParameter: {
111
- number1: {
115
+ startDate: {
116
+ name: string;
117
+ detail: string;
118
+ };
119
+ endDate: {
112
120
  name: string;
113
121
  detail: string;
114
122
  };
115
- number2: {
123
+ method: {
116
124
  name: string;
117
125
  detail: string;
118
126
  };
@@ -144,11 +152,11 @@ declare const _default: {
144
152
  url: string;
145
153
  }[];
146
154
  functionParameter: {
147
- number1: {
155
+ startDate: {
148
156
  name: string;
149
157
  detail: string;
150
158
  };
151
- number2: {
159
+ months: {
152
160
  name: string;
153
161
  detail: string;
154
162
  };
@@ -162,11 +170,21 @@ declare const _default: {
162
170
  url: string;
163
171
  }[];
164
172
  functionParameter: {
165
- number1: {
173
+ serialNumber: {
166
174
  name: string;
167
175
  detail: string;
168
176
  };
169
- number2: {
177
+ };
178
+ };
179
+ ISOWEEKNUM: {
180
+ description: string;
181
+ abstract: string;
182
+ links: {
183
+ title: string;
184
+ url: string;
185
+ }[];
186
+ functionParameter: {
187
+ date: {
170
188
  name: string;
171
189
  detail: string;
172
190
  };
@@ -180,11 +198,7 @@ declare const _default: {
180
198
  url: string;
181
199
  }[];
182
200
  functionParameter: {
183
- number1: {
184
- name: string;
185
- detail: string;
186
- };
187
- number2: {
201
+ serialNumber: {
188
202
  name: string;
189
203
  detail: string;
190
204
  };
@@ -212,17 +226,21 @@ declare const _default: {
212
226
  url: string;
213
227
  }[];
214
228
  functionParameter: {
215
- number1: {
229
+ startDate: {
230
+ name: string;
231
+ detail: string;
232
+ };
233
+ endDate: {
216
234
  name: string;
217
235
  detail: string;
218
236
  };
219
- number2: {
237
+ holidays: {
220
238
  name: string;
221
239
  detail: string;
222
240
  };
223
241
  };
224
242
  };
225
- SECOND: {
243
+ NETWORKDAYS_INTL: {
226
244
  description: string;
227
245
  abstract: string;
228
246
  links: {
@@ -230,11 +248,42 @@ declare const _default: {
230
248
  url: string;
231
249
  }[];
232
250
  functionParameter: {
233
- number1: {
251
+ startDate: {
234
252
  name: string;
235
253
  detail: string;
236
254
  };
237
- number2: {
255
+ endDate: {
256
+ name: string;
257
+ detail: string;
258
+ };
259
+ weekend: {
260
+ name: string;
261
+ detail: string;
262
+ };
263
+ holidays: {
264
+ name: string;
265
+ detail: string;
266
+ };
267
+ };
268
+ };
269
+ NOW: {
270
+ description: string;
271
+ abstract: string;
272
+ links: {
273
+ title: string;
274
+ url: string;
275
+ }[];
276
+ functionParameter: {};
277
+ };
278
+ SECOND: {
279
+ description: string;
280
+ abstract: string;
281
+ links: {
282
+ title: string;
283
+ url: string;
284
+ }[];
285
+ functionParameter: {
286
+ serialNumber: {
238
287
  name: string;
239
288
  detail: string;
240
289
  };
@@ -248,11 +297,15 @@ declare const _default: {
248
297
  url: string;
249
298
  }[];
250
299
  functionParameter: {
251
- number1: {
300
+ hour: {
252
301
  name: string;
253
302
  detail: string;
254
303
  };
255
- number2: {
304
+ minute: {
305
+ name: string;
306
+ detail: string;
307
+ };
308
+ second: {
256
309
  name: string;
257
310
  detail: string;
258
311
  };
@@ -289,11 +342,11 @@ declare const _default: {
289
342
  url: string;
290
343
  }[];
291
344
  functionParameter: {
292
- number1: {
345
+ serialNumber: {
293
346
  name: string;
294
347
  detail: string;
295
348
  };
296
- number2: {
349
+ returnType: {
297
350
  name: string;
298
351
  detail: string;
299
352
  };
@@ -307,11 +360,11 @@ declare const _default: {
307
360
  url: string;
308
361
  }[];
309
362
  functionParameter: {
310
- number1: {
363
+ serialNumber: {
311
364
  name: string;
312
365
  detail: string;
313
366
  };
314
- number2: {
367
+ returnType: {
315
368
  name: string;
316
369
  detail: string;
317
370
  };
@@ -339,6 +392,32 @@ declare const _default: {
339
392
  };
340
393
  };
341
394
  };
395
+ WORKDAY_INTL: {
396
+ description: string;
397
+ abstract: string;
398
+ links: {
399
+ title: string;
400
+ url: string;
401
+ }[];
402
+ functionParameter: {
403
+ startDate: {
404
+ name: string;
405
+ detail: string;
406
+ };
407
+ days: {
408
+ name: string;
409
+ detail: string;
410
+ };
411
+ weekend: {
412
+ name: string;
413
+ detail: string;
414
+ };
415
+ holidays: {
416
+ name: string;
417
+ detail: string;
418
+ };
419
+ };
420
+ };
342
421
  YEAR: {
343
422
  description: string;
344
423
  abstract: string;
@@ -226,11 +226,15 @@ declare const _default: {
226
226
  url: string;
227
227
  }[];
228
228
  functionParameter: {
229
- number1: {
229
+ startDate: {
230
+ name: string;
231
+ detail: string;
232
+ };
233
+ endDate: {
230
234
  name: string;
231
235
  detail: string;
232
236
  };
233
- number2: {
237
+ holidays: {
234
238
  name: string;
235
239
  detail: string;
236
240
  };
@@ -244,11 +248,19 @@ declare const _default: {
244
248
  url: string;
245
249
  }[];
246
250
  functionParameter: {
247
- number1: {
251
+ startDate: {
252
+ name: string;
253
+ detail: string;
254
+ };
255
+ endDate: {
256
+ name: string;
257
+ detail: string;
258
+ };
259
+ weekend: {
248
260
  name: string;
249
261
  detail: string;
250
262
  };
251
- number2: {
263
+ holidays: {
252
264
  name: string;
253
265
  detail: string;
254
266
  };
@@ -366,11 +378,15 @@ declare const _default: {
366
378
  url: string;
367
379
  }[];
368
380
  functionParameter: {
369
- number1: {
381
+ startDate: {
382
+ name: string;
383
+ detail: string;
384
+ };
385
+ days: {
370
386
  name: string;
371
387
  detail: string;
372
388
  };
373
- number2: {
389
+ holidays: {
374
390
  name: string;
375
391
  detail: string;
376
392
  };
@@ -384,11 +400,19 @@ declare const _default: {
384
400
  url: string;
385
401
  }[];
386
402
  functionParameter: {
387
- number1: {
403
+ startDate: {
404
+ name: string;
405
+ detail: string;
406
+ };
407
+ days: {
408
+ name: string;
409
+ detail: string;
410
+ };
411
+ weekend: {
388
412
  name: string;
389
413
  detail: string;
390
414
  };
391
- number2: {
415
+ holidays: {
392
416
  name: string;
393
417
  detail: string;
394
418
  };
@@ -86,11 +86,7 @@ declare const _default: {
86
86
  url: string;
87
87
  }[];
88
88
  functionParameter: {
89
- number1: {
90
- name: string;
91
- detail: string;
92
- };
93
- number2: {
89
+ value: {
94
90
  name: string;
95
91
  detail: string;
96
92
  };
@@ -104,11 +100,7 @@ declare const _default: {
104
100
  url: string;
105
101
  }[];
106
102
  functionParameter: {
107
- number1: {
108
- name: string;
109
- detail: string;
110
- };
111
- number2: {
103
+ value: {
112
104
  name: string;
113
105
  detail: string;
114
106
  };
@@ -154,11 +146,7 @@ declare const _default: {
154
146
  url: string;
155
147
  }[];
156
148
  functionParameter: {
157
- number1: {
158
- name: string;
159
- detail: string;
160
- };
161
- number2: {
149
+ value: {
162
150
  name: string;
163
151
  detail: string;
164
152
  };
@@ -172,11 +160,7 @@ declare const _default: {
172
160
  url: string;
173
161
  }[];
174
162
  functionParameter: {
175
- number1: {
176
- name: string;
177
- detail: string;
178
- };
179
- number2: {
163
+ value: {
180
164
  name: string;
181
165
  detail: string;
182
166
  };
@@ -190,11 +174,7 @@ declare const _default: {
190
174
  url: string;
191
175
  }[];
192
176
  functionParameter: {
193
- number1: {
194
- name: string;
195
- detail: string;
196
- };
197
- number2: {
177
+ value: {
198
178
  name: string;
199
179
  detail: string;
200
180
  };
@@ -208,11 +188,7 @@ declare const _default: {
208
188
  url: string;
209
189
  }[];
210
190
  functionParameter: {
211
- number1: {
212
- name: string;
213
- detail: string;
214
- };
215
- number2: {
191
+ value: {
216
192
  name: string;
217
193
  detail: string;
218
194
  };
@@ -258,11 +234,7 @@ declare const _default: {
258
234
  url: string;
259
235
  }[];
260
236
  functionParameter: {
261
- number1: {
262
- name: string;
263
- detail: string;
264
- };
265
- number2: {
237
+ value: {
266
238
  name: string;
267
239
  detail: string;
268
240
  };
@@ -276,11 +248,7 @@ declare const _default: {
276
248
  url: string;
277
249
  }[];
278
250
  functionParameter: {
279
- number1: {
280
- name: string;
281
- detail: string;
282
- };
283
- number2: {
251
+ value: {
284
252
  name: string;
285
253
  detail: string;
286
254
  };