@univerjs/sheets-formula 0.2.5 → 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 (44) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +4695 -4511
  3. package/lib/locale/en-US.json +246 -172
  4. package/lib/locale/ru-RU.json +172 -146
  5. package/lib/locale/vi-VN.json +1986 -1481
  6. package/lib/locale/zh-CN.json +287 -213
  7. package/lib/locale/zh-TW.json +371 -329
  8. package/lib/types/controllers/prompt.controller.d.ts +3 -5
  9. package/lib/types/formula-ui-plugin.d.ts +1 -1
  10. package/lib/types/index.d.ts +1 -0
  11. package/lib/types/locale/en-US.d.ts +143 -69
  12. package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
  13. package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
  14. package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
  15. package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
  16. package/lib/types/locale/function-list/logical/en-US.d.ts +31 -33
  17. package/lib/types/locale/function-list/logical/ja-JP.d.ts +31 -33
  18. package/lib/types/locale/function-list/logical/vi-VN.d.ts +31 -33
  19. package/lib/types/locale/function-list/logical/zh-CN.d.ts +31 -33
  20. package/lib/types/locale/function-list/logical/zh-TW.d.ts +31 -33
  21. package/lib/types/locale/function-list/lookup/en-US.d.ts +54 -26
  22. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +54 -26
  23. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
  24. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +54 -26
  25. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +54 -26
  26. package/lib/types/locale/function-list/math/en-US.d.ts +2 -2
  27. package/lib/types/locale/function-list/math/ja-JP.d.ts +2 -2
  28. package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
  29. package/lib/types/locale/function-list/math/zh-CN.d.ts +2 -2
  30. package/lib/types/locale/function-list/math/zh-TW.d.ts +23 -79
  31. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
  32. package/lib/types/locale/function-list/text/en-US.d.ts +56 -8
  33. package/lib/types/locale/function-list/text/ja-JP.d.ts +56 -8
  34. package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
  35. package/lib/types/locale/function-list/text/zh-CN.d.ts +56 -8
  36. package/lib/types/locale/function-list/text/zh-TW.d.ts +56 -8
  37. package/lib/types/locale/ru-RU.d.ts +87 -61
  38. package/lib/types/locale/vi-VN.d.ts +953 -482
  39. package/lib/types/locale/zh-CN.d.ts +143 -69
  40. package/lib/types/locale/zh-TW.d.ts +196 -154
  41. package/lib/types/services/prompt.service.d.ts +5 -1
  42. package/lib/types/services/render-services/ref-selections.render-service.d.ts +4 -2
  43. package/lib/umd/index.js +4 -4
  44. package/package.json +25 -25
@@ -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
  }
@@ -8,7 +8,7 @@ export declare class UniverRemoteSheetsFormulaPlugin extends Plugin {
8
8
  static pluginName: string;
9
9
  static type: UniverInstanceType;
10
10
  constructor(_config: {}, _injector: Injector);
11
- onStarting(injector: Injector): void;
11
+ onStarting(): void;
12
12
  }
13
13
  /**
14
14
  * The configuration of the formula UI plugin.
@@ -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
  };
@@ -3001,11 +2999,11 @@ declare const _default: {
3001
2999
  url: string;
3002
3000
  }[];
3003
3001
  functionParameter: {
3004
- number1: {
3002
+ text: {
3005
3003
  name: string;
3006
3004
  detail: string;
3007
3005
  };
3008
- number2: {
3006
+ numberTimes: {
3009
3007
  name: string;
3010
3008
  detail: string;
3011
3009
  };
@@ -3145,11 +3143,27 @@ declare const _default: {
3145
3143
  url: string;
3146
3144
  }[];
3147
3145
  functionParameter: {
3148
- number1: {
3146
+ text: {
3149
3147
  name: string;
3150
3148
  detail: string;
3151
3149
  };
3152
- number2: {
3150
+ delimiter: {
3151
+ name: string;
3152
+ detail: string;
3153
+ };
3154
+ instanceNum: {
3155
+ name: string;
3156
+ detail: string;
3157
+ };
3158
+ matchMode: {
3159
+ name: string;
3160
+ detail: string;
3161
+ };
3162
+ matchEnd: {
3163
+ name: string;
3164
+ detail: string;
3165
+ };
3166
+ ifNotFound: {
3153
3167
  name: string;
3154
3168
  detail: string;
3155
3169
  };
@@ -3163,11 +3177,27 @@ declare const _default: {
3163
3177
  url: string;
3164
3178
  }[];
3165
3179
  functionParameter: {
3166
- number1: {
3180
+ text: {
3167
3181
  name: string;
3168
3182
  detail: string;
3169
3183
  };
3170
- number2: {
3184
+ delimiter: {
3185
+ name: string;
3186
+ detail: string;
3187
+ };
3188
+ instanceNum: {
3189
+ name: string;
3190
+ detail: string;
3191
+ };
3192
+ matchMode: {
3193
+ name: string;
3194
+ detail: string;
3195
+ };
3196
+ matchEnd: {
3197
+ name: string;
3198
+ detail: string;
3199
+ };
3200
+ ifNotFound: {
3171
3201
  name: string;
3172
3202
  detail: string;
3173
3203
  };
@@ -3199,11 +3229,27 @@ declare const _default: {
3199
3229
  url: string;
3200
3230
  }[];
3201
3231
  functionParameter: {
3202
- number1: {
3232
+ text: {
3203
3233
  name: string;
3204
3234
  detail: string;
3205
3235
  };
3206
- number2: {
3236
+ colDelimiter: {
3237
+ name: string;
3238
+ detail: string;
3239
+ };
3240
+ rowDelimiter: {
3241
+ name: string;
3242
+ detail: string;
3243
+ };
3244
+ ignoreEmpty: {
3245
+ name: string;
3246
+ detail: string;
3247
+ };
3248
+ matchMode: {
3249
+ name: string;
3250
+ detail: string;
3251
+ };
3252
+ padWith: {
3207
3253
  name: string;
3208
3254
  detail: string;
3209
3255
  };
@@ -3625,11 +3671,7 @@ declare const _default: {
3625
3671
  url: string;
3626
3672
  }[];
3627
3673
  functionParameter: {
3628
- number1: {
3629
- name: string;
3630
- detail: string;
3631
- };
3632
- number2: {
3674
+ reference: {
3633
3675
  name: string;
3634
3676
  detail: string;
3635
3677
  };
@@ -3665,11 +3707,15 @@ declare const _default: {
3665
3707
  url: string;
3666
3708
  }[];
3667
3709
  functionParameter: {
3668
- number1: {
3710
+ array: {
3669
3711
  name: string;
3670
3712
  detail: string;
3671
3713
  };
3672
- number2: {
3714
+ colNum1: {
3715
+ name: string;
3716
+ detail: string;
3717
+ };
3718
+ colNum2: {
3673
3719
  name: string;
3674
3720
  detail: string;
3675
3721
  };
@@ -3683,11 +3729,15 @@ declare const _default: {
3683
3729
  url: string;
3684
3730
  }[];
3685
3731
  functionParameter: {
3686
- number1: {
3732
+ array: {
3687
3733
  name: string;
3688
3734
  detail: string;
3689
3735
  };
3690
- number2: {
3736
+ rowNum1: {
3737
+ name: string;
3738
+ detail: string;
3739
+ };
3740
+ rowNum2: {
3691
3741
  name: string;
3692
3742
  detail: string;
3693
3743
  };
@@ -3765,11 +3815,15 @@ declare const _default: {
3765
3815
  url: string;
3766
3816
  }[];
3767
3817
  functionParameter: {
3768
- number1: {
3818
+ array: {
3769
3819
  name: string;
3770
3820
  detail: string;
3771
3821
  };
3772
- number2: {
3822
+ include: {
3823
+ name: string;
3824
+ detail: string;
3825
+ };
3826
+ ifEmpty: {
3773
3827
  name: string;
3774
3828
  detail: string;
3775
3829
  };
@@ -3845,11 +3899,11 @@ declare const _default: {
3845
3899
  url: string;
3846
3900
  }[];
3847
3901
  functionParameter: {
3848
- number1: {
3902
+ array1: {
3849
3903
  name: string;
3850
3904
  detail: string;
3851
3905
  };
3852
- number2: {
3906
+ array2: {
3853
3907
  name: string;
3854
3908
  detail: string;
3855
3909
  };
@@ -4063,11 +4117,19 @@ declare const _default: {
4063
4117
  url: string;
4064
4118
  }[];
4065
4119
  functionParameter: {
4066
- number1: {
4120
+ array: {
4067
4121
  name: string;
4068
4122
  detail: string;
4069
4123
  };
4070
- number2: {
4124
+ sortIndex: {
4125
+ name: string;
4126
+ detail: string;
4127
+ };
4128
+ sortOrder: {
4129
+ name: string;
4130
+ detail: string;
4131
+ };
4132
+ byCol: {
4071
4133
  name: string;
4072
4134
  detail: string;
4073
4135
  };
@@ -4081,11 +4143,23 @@ declare const _default: {
4081
4143
  url: string;
4082
4144
  }[];
4083
4145
  functionParameter: {
4084
- number1: {
4146
+ array: {
4085
4147
  name: string;
4086
4148
  detail: string;
4087
4149
  };
4088
- number2: {
4150
+ byArray1: {
4151
+ name: string;
4152
+ detail: string;
4153
+ };
4154
+ sortOrder1: {
4155
+ name: string;
4156
+ detail: string;
4157
+ };
4158
+ byArray2: {
4159
+ name: string;
4160
+ detail: string;
4161
+ };
4162
+ sortOrder2: {
4089
4163
  name: string;
4090
4164
  detail: string;
4091
4165
  };
@@ -4153,11 +4227,7 @@ declare const _default: {
4153
4227
  url: string;
4154
4228
  }[];
4155
4229
  functionParameter: {
4156
- number1: {
4157
- name: string;
4158
- detail: string;
4159
- };
4160
- number2: {
4230
+ array: {
4161
4231
  name: string;
4162
4232
  detail: string;
4163
4233
  };
@@ -4171,11 +4241,15 @@ declare const _default: {
4171
4241
  url: string;
4172
4242
  }[];
4173
4243
  functionParameter: {
4174
- number1: {
4244
+ array: {
4175
4245
  name: string;
4176
4246
  detail: string;
4177
4247
  };
4178
- number2: {
4248
+ byCol: {
4249
+ name: string;
4250
+ detail: string;
4251
+ };
4252
+ exactlyOnce: {
4179
4253
  name: string;
4180
4254
  detail: string;
4181
4255
  };
@@ -4215,11 +4289,11 @@ declare const _default: {
4215
4289
  url: string;
4216
4290
  }[];
4217
4291
  functionParameter: {
4218
- number1: {
4292
+ array1: {
4219
4293
  name: string;
4220
4294
  detail: string;
4221
4295
  };
4222
- number2: {
4296
+ array2: {
4223
4297
  name: string;
4224
4298
  detail: string;
4225
4299
  };
@@ -7717,11 +7791,11 @@ declare const _default: {
7717
7791
  url: string;
7718
7792
  }[];
7719
7793
  functionParameter: {
7720
- number1: {
7794
+ number: {
7721
7795
  name: string;
7722
7796
  detail: string;
7723
7797
  };
7724
- number2: {
7798
+ numDigits: {
7725
7799
  name: string;
7726
7800
  detail: string;
7727
7801
  };
@@ -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;