@univerjs/sheets-formula-ui 0.4.2 → 0.5.0-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.
Files changed (88) hide show
  1. package/lib/cjs/index.js +9 -7
  2. package/lib/cjs/locale/en-US.js +40 -0
  3. package/lib/cjs/locale/fa-IR.js +40 -0
  4. package/lib/cjs/locale/ru-RU.js +40 -0
  5. package/lib/cjs/locale/vi-VN.js +37 -0
  6. package/lib/cjs/locale/zh-CN.js +38 -0
  7. package/lib/cjs/locale/zh-TW.js +38 -0
  8. package/lib/es/index.js +3317 -2424
  9. package/lib/es/locale/en-US.js +7684 -0
  10. package/lib/es/locale/fa-IR.js +7684 -0
  11. package/lib/es/locale/ru-RU.js +7683 -0
  12. package/lib/es/locale/vi-VN.js +7467 -0
  13. package/lib/es/locale/zh-CN.js +7661 -0
  14. package/lib/es/locale/zh-TW.js +7661 -0
  15. package/lib/index.css +1 -1
  16. package/lib/types/controllers/config.schema.d.ts +1 -1
  17. package/lib/types/controllers/formula-editor-show.controller.d.ts +4 -3
  18. package/lib/types/index.d.ts +1 -0
  19. package/lib/types/locale/en-US.d.ts +344 -156
  20. package/lib/types/locale/fa-IR.d.ts +344 -156
  21. package/lib/types/locale/function-list/compatibility/en-US.d.ts +106 -30
  22. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +106 -30
  23. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +106 -30
  24. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +106 -30
  25. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +106 -30
  26. package/lib/types/locale/function-list/lookup/en-US.d.ts +1 -5
  27. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +1 -5
  28. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +14 -0
  29. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +1 -5
  30. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +1 -5
  31. package/lib/types/locale/function-list/statistical/en-US.d.ts +173 -93
  32. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +173 -93
  33. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +983 -57
  34. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +173 -93
  35. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +173 -93
  36. package/lib/types/locale/function-list/text/en-US.d.ts +64 -28
  37. package/lib/types/locale/function-list/text/ja-JP.d.ts +64 -28
  38. package/lib/types/locale/function-list/text/ru-RU.d.ts +220 -106
  39. package/lib/types/locale/function-list/text/vi-VN.d.ts +124 -14
  40. package/lib/types/locale/function-list/text/zh-CN.d.ts +64 -28
  41. package/lib/types/locale/function-list/text/zh-TW.d.ts +64 -28
  42. package/lib/types/locale/ru-RU.d.ts +500 -234
  43. package/lib/types/locale/vi-VN.d.ts +1231 -105
  44. package/lib/types/locale/zh-CN.d.ts +344 -156
  45. package/lib/types/locale/zh-TW.d.ts +344 -156
  46. package/lib/types/sheets-formula-ui.plugin.d.ts +0 -1
  47. package/lib/types/views/formula-editor/help-function/HelpFunction.d.ts +11 -0
  48. package/lib/types/views/formula-editor/hooks/useFormulaDescribe.d.ts +7 -0
  49. package/lib/types/views/formula-editor/hooks/useFormulaSearch.d.ts +12 -0
  50. package/lib/types/views/formula-editor/hooks/useResizeScrollObserver.d.ts +18 -0
  51. package/lib/types/views/formula-editor/hooks/useSelectionAdd.d.ts +19 -0
  52. package/lib/types/views/formula-editor/hooks/useSheetSelectionChange.d.ts +3 -0
  53. package/lib/types/views/formula-editor/hooks/useStateRef.d.ts +18 -0
  54. package/lib/types/views/formula-editor/hooks/useVerify.d.ts +2 -0
  55. package/lib/types/views/formula-editor/index.d.ts +17 -0
  56. package/lib/types/views/formula-editor/search-function/SearchFunction.d.ts +12 -0
  57. package/lib/types/{controllers/utils/__tests__/ref-range-formula.spec.d.ts → views/formula-editor/utils/getFormulaText.d.ts} +1 -1
  58. package/lib/types/views/range-selector/hooks/useEmitChange.d.ts +3 -0
  59. package/lib/types/views/range-selector/hooks/useFirstHighlightDoc.d.ts +3 -0
  60. package/lib/types/views/range-selector/hooks/useFocus.d.ts +2 -0
  61. package/lib/types/views/range-selector/hooks/useFormulaToken.d.ts +2 -4
  62. package/lib/types/views/range-selector/hooks/useHighlight.d.ts +4 -2
  63. package/lib/types/views/range-selector/hooks/useLeftAndRightArrow.d.ts +2 -0
  64. package/lib/types/views/range-selector/hooks/useOnlyOneRange.d.ts +16 -0
  65. package/lib/types/views/range-selector/hooks/useRefactorEffect.d.ts +1 -1
  66. package/lib/types/{controllers/utils/__tests__/offset-formula-data.spec.d.ts → views/range-selector/hooks/useRefocus.d.ts} +1 -1
  67. package/lib/types/views/range-selector/hooks/useResetSelection.d.ts +16 -0
  68. package/lib/types/views/range-selector/hooks/useSheetSelectionChange.d.ts +1 -1
  69. package/lib/types/views/range-selector/hooks/useSwitchSheet.d.ts +16 -0
  70. package/lib/types/views/range-selector/hooks/useVerify.d.ts +2 -2
  71. package/lib/types/views/range-selector/index.d.ts +1 -5
  72. package/lib/types/views/range-selector/utils/unitRangesToText.d.ts +1 -1
  73. package/lib/umd/index.js +9 -7
  74. package/lib/umd/locale/en-US.js +40 -0
  75. package/lib/umd/locale/fa-IR.js +40 -0
  76. package/lib/umd/locale/ru-RU.js +40 -0
  77. package/lib/umd/locale/vi-VN.js +37 -0
  78. package/lib/umd/locale/zh-CN.js +38 -0
  79. package/lib/umd/locale/zh-TW.js +38 -0
  80. package/package.json +35 -27
  81. package/lib/locale/en-US.json +0 -11054
  82. package/lib/locale/fa-IR.json +0 -11054
  83. package/lib/locale/ru-RU.json +0 -10969
  84. package/lib/locale/vi-VN.json +0 -9678
  85. package/lib/locale/zh-CN.json +0 -11054
  86. package/lib/locale/zh-TW.json +0 -11054
  87. package/lib/types/controllers/utils/offset-formula-data.d.ts +0 -15
  88. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -71
@@ -196,15 +196,37 @@ declare const _default: {
196
196
  url: string;
197
197
  }[];
198
198
  functionParameter: {
199
- find_text: {
199
+ findText: {
200
200
  name: string;
201
201
  detail: string;
202
202
  };
203
- within_text: {
203
+ withinText: {
204
204
  name: string;
205
205
  detail: string;
206
206
  };
207
- start_num: {
207
+ startNum: {
208
+ name: string;
209
+ detail: string;
210
+ };
211
+ };
212
+ };
213
+ FINDB: {
214
+ description: string;
215
+ abstract: string;
216
+ links: {
217
+ title: string;
218
+ url: string;
219
+ }[];
220
+ functionParameter: {
221
+ findText: {
222
+ name: string;
223
+ detail: string;
224
+ };
225
+ withinText: {
226
+ name: string;
227
+ detail: string;
228
+ };
229
+ startNum: {
208
230
  name: string;
209
231
  detail: string;
210
232
  };
@@ -244,7 +266,25 @@ declare const _default: {
244
266
  name: string;
245
267
  detail: string;
246
268
  };
247
- num_chars: {
269
+ numChars: {
270
+ name: string;
271
+ detail: string;
272
+ };
273
+ };
274
+ };
275
+ LEFTB: {
276
+ description: string;
277
+ abstract: string;
278
+ links: {
279
+ title: string;
280
+ url: string;
281
+ }[];
282
+ functionParameter: {
283
+ text: {
284
+ name: string;
285
+ detail: string;
286
+ };
287
+ numBytes: {
248
288
  name: string;
249
289
  detail: string;
250
290
  };
@@ -304,11 +344,33 @@ declare const _default: {
304
344
  name: string;
305
345
  detail: string;
306
346
  };
307
- start_num: {
347
+ startNum: {
308
348
  name: string;
309
349
  detail: string;
310
350
  };
311
- num_chars: {
351
+ numChars: {
352
+ name: string;
353
+ detail: string;
354
+ };
355
+ };
356
+ };
357
+ MIDB: {
358
+ description: string;
359
+ abstract: string;
360
+ links: {
361
+ title: string;
362
+ url: string;
363
+ }[];
364
+ functionParameter: {
365
+ text: {
366
+ name: string;
367
+ detail: string;
368
+ };
369
+ startNum: {
370
+ name: string;
371
+ detail: string;
372
+ };
373
+ numBytes: {
312
374
  name: string;
313
375
  detail: string;
314
376
  };
@@ -434,19 +496,45 @@ declare const _default: {
434
496
  url: string;
435
497
  }[];
436
498
  functionParameter: {
437
- old_text: {
499
+ oldText: {
438
500
  name: string;
439
501
  detail: string;
440
502
  };
441
- start_num: {
503
+ startNum: {
442
504
  name: string;
443
505
  detail: string;
444
506
  };
445
- num_chars: {
507
+ numChars: {
446
508
  name: string;
447
509
  detail: string;
448
510
  };
449
- new_text: {
511
+ newText: {
512
+ name: string;
513
+ detail: string;
514
+ };
515
+ };
516
+ };
517
+ REPLACEB: {
518
+ description: string;
519
+ abstract: string;
520
+ links: {
521
+ title: string;
522
+ url: string;
523
+ }[];
524
+ functionParameter: {
525
+ oldText: {
526
+ name: string;
527
+ detail: string;
528
+ };
529
+ startNum: {
530
+ name: string;
531
+ detail: string;
532
+ };
533
+ numBytes: {
534
+ name: string;
535
+ detail: string;
536
+ };
537
+ newText: {
450
538
  name: string;
451
539
  detail: string;
452
540
  };
@@ -514,15 +602,37 @@ declare const _default: {
514
602
  url: string;
515
603
  }[];
516
604
  functionParameter: {
517
- find_text: {
605
+ findText: {
518
606
  name: string;
519
607
  detail: string;
520
608
  };
521
- within_text: {
609
+ withinText: {
522
610
  name: string;
523
611
  detail: string;
524
612
  };
525
- start_num: {
613
+ startNum: {
614
+ name: string;
615
+ detail: string;
616
+ };
617
+ };
618
+ };
619
+ SEARCHB: {
620
+ description: string;
621
+ abstract: string;
622
+ links: {
623
+ title: string;
624
+ url: string;
625
+ }[];
626
+ functionParameter: {
627
+ findText: {
628
+ name: string;
629
+ detail: string;
630
+ };
631
+ withinText: {
632
+ name: string;
633
+ detail: string;
634
+ };
635
+ startNum: {
526
636
  name: string;
527
637
  detail: string;
528
638
  };
@@ -692,7 +802,7 @@ declare const _default: {
692
802
  name: string;
693
803
  detail: string;
694
804
  };
695
- ignore_empty: {
805
+ ignoreEmpty: {
696
806
  name: string;
697
807
  detail: string;
698
808
  };
@@ -196,11 +196,15 @@ declare const _default: {
196
196
  url: string;
197
197
  }[];
198
198
  functionParameter: {
199
- number1: {
199
+ findText: {
200
200
  name: string;
201
201
  detail: string;
202
202
  };
203
- number2: {
203
+ withinText: {
204
+ name: string;
205
+ detail: string;
206
+ };
207
+ startNum: {
204
208
  name: string;
205
209
  detail: string;
206
210
  };
@@ -214,11 +218,15 @@ declare const _default: {
214
218
  url: string;
215
219
  }[];
216
220
  functionParameter: {
217
- number1: {
221
+ findText: {
218
222
  name: string;
219
223
  detail: string;
220
224
  };
221
- number2: {
225
+ withinText: {
226
+ name: string;
227
+ detail: string;
228
+ };
229
+ startNum: {
222
230
  name: string;
223
231
  detail: string;
224
232
  };
@@ -254,11 +262,11 @@ declare const _default: {
254
262
  url: string;
255
263
  }[];
256
264
  functionParameter: {
257
- number1: {
265
+ text: {
258
266
  name: string;
259
267
  detail: string;
260
268
  };
261
- number2: {
269
+ numChars: {
262
270
  name: string;
263
271
  detail: string;
264
272
  };
@@ -354,11 +362,15 @@ declare const _default: {
354
362
  url: string;
355
363
  }[];
356
364
  functionParameter: {
357
- number1: {
365
+ text: {
358
366
  name: string;
359
367
  detail: string;
360
368
  };
361
- number2: {
369
+ startNum: {
370
+ name: string;
371
+ detail: string;
372
+ };
373
+ numBytes: {
362
374
  name: string;
363
375
  detail: string;
364
376
  };
@@ -484,11 +496,19 @@ declare const _default: {
484
496
  url: string;
485
497
  }[];
486
498
  functionParameter: {
487
- number1: {
499
+ oldText: {
488
500
  name: string;
489
501
  detail: string;
490
502
  };
491
- number2: {
503
+ startNum: {
504
+ name: string;
505
+ detail: string;
506
+ };
507
+ numChars: {
508
+ name: string;
509
+ detail: string;
510
+ };
511
+ newText: {
492
512
  name: string;
493
513
  detail: string;
494
514
  };
@@ -502,11 +522,19 @@ declare const _default: {
502
522
  url: string;
503
523
  }[];
504
524
  functionParameter: {
505
- number1: {
525
+ oldText: {
506
526
  name: string;
507
527
  detail: string;
508
528
  };
509
- number2: {
529
+ startNum: {
530
+ name: string;
531
+ detail: string;
532
+ };
533
+ numBytes: {
534
+ name: string;
535
+ detail: string;
536
+ };
537
+ newText: {
510
538
  name: string;
511
539
  detail: string;
512
540
  };
@@ -574,11 +602,15 @@ declare const _default: {
574
602
  url: string;
575
603
  }[];
576
604
  functionParameter: {
577
- number1: {
605
+ findText: {
578
606
  name: string;
579
607
  detail: string;
580
608
  };
581
- number2: {
609
+ withinText: {
610
+ name: string;
611
+ detail: string;
612
+ };
613
+ startNum: {
582
614
  name: string;
583
615
  detail: string;
584
616
  };
@@ -592,11 +624,15 @@ declare const _default: {
592
624
  url: string;
593
625
  }[];
594
626
  functionParameter: {
595
- number1: {
627
+ findText: {
596
628
  name: string;
597
629
  detail: string;
598
630
  };
599
- number2: {
631
+ withinText: {
632
+ name: string;
633
+ detail: string;
634
+ };
635
+ startNum: {
600
636
  name: string;
601
637
  detail: string;
602
638
  };
@@ -736,11 +772,19 @@ declare const _default: {
736
772
  url: string;
737
773
  }[];
738
774
  functionParameter: {
739
- number1: {
775
+ delimiter: {
740
776
  name: string;
741
777
  detail: string;
742
778
  };
743
- number2: {
779
+ ignoreEmpty: {
780
+ name: string;
781
+ detail: string;
782
+ };
783
+ text1: {
784
+ name: string;
785
+ detail: string;
786
+ };
787
+ text2: {
744
788
  name: string;
745
789
  detail: string;
746
790
  };
@@ -788,11 +832,7 @@ declare const _default: {
788
832
  url: string;
789
833
  }[];
790
834
  functionParameter: {
791
- number1: {
792
- name: string;
793
- detail: string;
794
- };
795
- number2: {
835
+ text: {
796
836
  name: string;
797
837
  detail: string;
798
838
  };
@@ -834,11 +874,7 @@ declare const _default: {
834
874
  url: string;
835
875
  }[];
836
876
  functionParameter: {
837
- number1: {
838
- name: string;
839
- detail: string;
840
- };
841
- number2: {
877
+ text: {
842
878
  name: string;
843
879
  detail: string;
844
880
  };
@@ -196,11 +196,15 @@ declare const _default: {
196
196
  url: string;
197
197
  }[];
198
198
  functionParameter: {
199
- number1: {
199
+ findText: {
200
200
  name: string;
201
201
  detail: string;
202
202
  };
203
- number2: {
203
+ withinText: {
204
+ name: string;
205
+ detail: string;
206
+ };
207
+ startNum: {
204
208
  name: string;
205
209
  detail: string;
206
210
  };
@@ -214,11 +218,15 @@ declare const _default: {
214
218
  url: string;
215
219
  }[];
216
220
  functionParameter: {
217
- number1: {
221
+ findText: {
218
222
  name: string;
219
223
  detail: string;
220
224
  };
221
- number2: {
225
+ withinText: {
226
+ name: string;
227
+ detail: string;
228
+ };
229
+ startNum: {
222
230
  name: string;
223
231
  detail: string;
224
232
  };
@@ -254,11 +262,11 @@ declare const _default: {
254
262
  url: string;
255
263
  }[];
256
264
  functionParameter: {
257
- number1: {
265
+ text: {
258
266
  name: string;
259
267
  detail: string;
260
268
  };
261
- number2: {
269
+ numChars: {
262
270
  name: string;
263
271
  detail: string;
264
272
  };
@@ -354,11 +362,15 @@ declare const _default: {
354
362
  url: string;
355
363
  }[];
356
364
  functionParameter: {
357
- number1: {
365
+ text: {
358
366
  name: string;
359
367
  detail: string;
360
368
  };
361
- number2: {
369
+ startNum: {
370
+ name: string;
371
+ detail: string;
372
+ };
373
+ numBytes: {
362
374
  name: string;
363
375
  detail: string;
364
376
  };
@@ -484,11 +496,19 @@ declare const _default: {
484
496
  url: string;
485
497
  }[];
486
498
  functionParameter: {
487
- number1: {
499
+ oldText: {
488
500
  name: string;
489
501
  detail: string;
490
502
  };
491
- number2: {
503
+ startNum: {
504
+ name: string;
505
+ detail: string;
506
+ };
507
+ numChars: {
508
+ name: string;
509
+ detail: string;
510
+ };
511
+ newText: {
492
512
  name: string;
493
513
  detail: string;
494
514
  };
@@ -502,11 +522,19 @@ declare const _default: {
502
522
  url: string;
503
523
  }[];
504
524
  functionParameter: {
505
- number1: {
525
+ oldText: {
506
526
  name: string;
507
527
  detail: string;
508
528
  };
509
- number2: {
529
+ startNum: {
530
+ name: string;
531
+ detail: string;
532
+ };
533
+ numBytes: {
534
+ name: string;
535
+ detail: string;
536
+ };
537
+ newText: {
510
538
  name: string;
511
539
  detail: string;
512
540
  };
@@ -574,11 +602,15 @@ declare const _default: {
574
602
  url: string;
575
603
  }[];
576
604
  functionParameter: {
577
- number1: {
605
+ findText: {
578
606
  name: string;
579
607
  detail: string;
580
608
  };
581
- number2: {
609
+ withinText: {
610
+ name: string;
611
+ detail: string;
612
+ };
613
+ startNum: {
582
614
  name: string;
583
615
  detail: string;
584
616
  };
@@ -592,11 +624,15 @@ declare const _default: {
592
624
  url: string;
593
625
  }[];
594
626
  functionParameter: {
595
- number1: {
627
+ findText: {
596
628
  name: string;
597
629
  detail: string;
598
630
  };
599
- number2: {
631
+ withinText: {
632
+ name: string;
633
+ detail: string;
634
+ };
635
+ startNum: {
600
636
  name: string;
601
637
  detail: string;
602
638
  };
@@ -736,11 +772,19 @@ declare const _default: {
736
772
  url: string;
737
773
  }[];
738
774
  functionParameter: {
739
- number1: {
775
+ delimiter: {
740
776
  name: string;
741
777
  detail: string;
742
778
  };
743
- number2: {
779
+ ignoreEmpty: {
780
+ name: string;
781
+ detail: string;
782
+ };
783
+ text1: {
784
+ name: string;
785
+ detail: string;
786
+ };
787
+ text2: {
744
788
  name: string;
745
789
  detail: string;
746
790
  };
@@ -788,11 +832,7 @@ declare const _default: {
788
832
  url: string;
789
833
  }[];
790
834
  functionParameter: {
791
- number1: {
792
- name: string;
793
- detail: string;
794
- };
795
- number2: {
835
+ text: {
796
836
  name: string;
797
837
  detail: string;
798
838
  };
@@ -834,11 +874,7 @@ declare const _default: {
834
874
  url: string;
835
875
  }[];
836
876
  functionParameter: {
837
- number1: {
838
- name: string;
839
- detail: string;
840
- };
841
- number2: {
877
+ text: {
842
878
  name: string;
843
879
  detail: string;
844
880
  };