@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
@@ -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
  };
@@ -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
  };
@@ -6507,11 +6501,7 @@ declare const _default: {
6507
6501
  url: string;
6508
6502
  }[];
6509
6503
  functionParameter: {
6510
- number1: {
6511
- name: string;
6512
- detail: string;
6513
- };
6514
- number2: {
6504
+ number: {
6515
6505
  name: string;
6516
6506
  detail: string;
6517
6507
  };
@@ -6561,11 +6551,7 @@ declare const _default: {
6561
6551
  url: string;
6562
6552
  }[];
6563
6553
  functionParameter: {
6564
- number1: {
6565
- name: string;
6566
- detail: string;
6567
- };
6568
- number2: {
6554
+ number: {
6569
6555
  name: string;
6570
6556
  detail: string;
6571
6557
  };
@@ -6579,11 +6565,7 @@ declare const _default: {
6579
6565
  url: string;
6580
6566
  }[];
6581
6567
  functionParameter: {
6582
- number1: {
6583
- name: string;
6584
- detail: string;
6585
- };
6586
- number2: {
6568
+ number: {
6587
6569
  name: string;
6588
6570
  detail: string;
6589
6571
  };
@@ -6597,11 +6579,7 @@ declare const _default: {
6597
6579
  url: string;
6598
6580
  }[];
6599
6581
  functionParameter: {
6600
- number1: {
6601
- name: string;
6602
- detail: string;
6603
- };
6604
- number2: {
6582
+ number: {
6605
6583
  name: string;
6606
6584
  detail: string;
6607
6585
  };
@@ -6615,11 +6593,11 @@ declare const _default: {
6615
6593
  url: string;
6616
6594
  }[];
6617
6595
  functionParameter: {
6618
- number1: {
6596
+ xNum: {
6619
6597
  name: string;
6620
6598
  detail: string;
6621
6599
  };
6622
- number2: {
6600
+ yNum: {
6623
6601
  name: string;
6624
6602
  detail: string;
6625
6603
  };
@@ -6633,11 +6611,7 @@ declare const _default: {
6633
6611
  url: string;
6634
6612
  }[];
6635
6613
  functionParameter: {
6636
- number1: {
6637
- name: string;
6638
- detail: string;
6639
- };
6640
- number2: {
6614
+ number: {
6641
6615
  name: string;
6642
6616
  detail: string;
6643
6617
  };
@@ -6659,6 +6633,10 @@ declare const _default: {
6659
6633
  name: string;
6660
6634
  detail: string;
6661
6635
  };
6636
+ minLength: {
6637
+ name: string;
6638
+ detail: string;
6639
+ };
6662
6640
  };
6663
6641
  };
6664
6642
  CEILING: {
@@ -6763,11 +6741,7 @@ declare const _default: {
6763
6741
  url: string;
6764
6742
  }[];
6765
6743
  functionParameter: {
6766
- number1: {
6767
- name: string;
6768
- detail: string;
6769
- };
6770
- number2: {
6744
+ number: {
6771
6745
  name: string;
6772
6746
  detail: string;
6773
6747
  };
@@ -6781,11 +6755,7 @@ declare const _default: {
6781
6755
  url: string;
6782
6756
  }[];
6783
6757
  functionParameter: {
6784
- number1: {
6785
- name: string;
6786
- detail: string;
6787
- };
6788
- number2: {
6758
+ number: {
6789
6759
  name: string;
6790
6760
  detail: string;
6791
6761
  };
@@ -6799,11 +6769,7 @@ declare const _default: {
6799
6769
  url: string;
6800
6770
  }[];
6801
6771
  functionParameter: {
6802
- number1: {
6803
- name: string;
6804
- detail: string;
6805
- };
6806
- number2: {
6772
+ number: {
6807
6773
  name: string;
6808
6774
  detail: string;
6809
6775
  };
@@ -6817,11 +6783,7 @@ declare const _default: {
6817
6783
  url: string;
6818
6784
  }[];
6819
6785
  functionParameter: {
6820
- number1: {
6821
- name: string;
6822
- detail: string;
6823
- };
6824
- number2: {
6786
+ number: {
6825
6787
  name: string;
6826
6788
  detail: string;
6827
6789
  };
@@ -6835,11 +6797,7 @@ declare const _default: {
6835
6797
  url: string;
6836
6798
  }[];
6837
6799
  functionParameter: {
6838
- number1: {
6839
- name: string;
6840
- detail: string;
6841
- };
6842
- number2: {
6800
+ number: {
6843
6801
  name: string;
6844
6802
  detail: string;
6845
6803
  };
@@ -6853,11 +6811,7 @@ declare const _default: {
6853
6811
  url: string;
6854
6812
  }[];
6855
6813
  functionParameter: {
6856
- number1: {
6857
- name: string;
6858
- detail: string;
6859
- };
6860
- number2: {
6814
+ number: {
6861
6815
  name: string;
6862
6816
  detail: string;
6863
6817
  };
@@ -7571,11 +7525,7 @@ declare const _default: {
7571
7525
  url: string;
7572
7526
  }[];
7573
7527
  functionParameter: {
7574
- number1: {
7575
- name: string;
7576
- detail: string;
7577
- };
7578
- number2: {
7528
+ number: {
7579
7529
  name: string;
7580
7530
  detail: string;
7581
7531
  };
@@ -7589,11 +7539,7 @@ declare const _default: {
7589
7539
  url: string;
7590
7540
  }[];
7591
7541
  functionParameter: {
7592
- number1: {
7593
- name: string;
7594
- detail: string;
7595
- };
7596
- number2: {
7542
+ number: {
7597
7543
  name: string;
7598
7544
  detail: string;
7599
7545
  };
@@ -7817,11 +7763,7 @@ declare const _default: {
7817
7763
  url: string;
7818
7764
  }[];
7819
7765
  functionParameter: {
7820
- number1: {
7821
- name: string;
7822
- detail: string;
7823
- };
7824
- number2: {
7766
+ number: {
7825
7767
  name: string;
7826
7768
  detail: string;
7827
7769
  };
@@ -7835,11 +7777,7 @@ declare const _default: {
7835
7777
  url: string;
7836
7778
  }[];
7837
7779
  functionParameter: {
7838
- number1: {
7839
- name: string;
7840
- detail: string;
7841
- };
7842
- number2: {
7780
+ number: {
7843
7781
  name: string;
7844
7782
  detail: string;
7845
7783
  };
@@ -8075,11 +8013,15 @@ declare const _default: {
8075
8013
  url: string;
8076
8014
  }[];
8077
8015
  functionParameter: {
8078
- number1: {
8016
+ startDate: {
8079
8017
  name: string;
8080
8018
  detail: string;
8081
8019
  };
8082
- number2: {
8020
+ endDate: {
8021
+ name: string;
8022
+ detail: string;
8023
+ };
8024
+ holidays: {
8083
8025
  name: string;
8084
8026
  detail: string;
8085
8027
  };
@@ -8093,11 +8035,19 @@ declare const _default: {
8093
8035
  url: string;
8094
8036
  }[];
8095
8037
  functionParameter: {
8096
- number1: {
8038
+ startDate: {
8097
8039
  name: string;
8098
8040
  detail: string;
8099
8041
  };
8100
- number2: {
8042
+ endDate: {
8043
+ name: string;
8044
+ detail: string;
8045
+ };
8046
+ weekend: {
8047
+ name: string;
8048
+ detail: string;
8049
+ };
8050
+ holidays: {
8101
8051
  name: string;
8102
8052
  detail: string;
8103
8053
  };
@@ -8215,11 +8165,15 @@ declare const _default: {
8215
8165
  url: string;
8216
8166
  }[];
8217
8167
  functionParameter: {
8218
- number1: {
8168
+ startDate: {
8219
8169
  name: string;
8220
8170
  detail: string;
8221
8171
  };
8222
- number2: {
8172
+ days: {
8173
+ name: string;
8174
+ detail: string;
8175
+ };
8176
+ holidays: {
8223
8177
  name: string;
8224
8178
  detail: string;
8225
8179
  };
@@ -8233,11 +8187,19 @@ declare const _default: {
8233
8187
  url: string;
8234
8188
  }[];
8235
8189
  functionParameter: {
8236
- number1: {
8190
+ startDate: {
8237
8191
  name: string;
8238
8192
  detail: string;
8239
8193
  };
8240
- number2: {
8194
+ days: {
8195
+ name: string;
8196
+ detail: string;
8197
+ };
8198
+ weekend: {
8199
+ name: string;
8200
+ detail: string;
8201
+ };
8202
+ holidays: {
8241
8203
  name: string;
8242
8204
  detail: string;
8243
8205
  };
@@ -1,8 +1,10 @@
1
- import { Direction, IDisposable } from '@univerjs/core';
1
+ import { Direction, IDisposable, IContextService } from '@univerjs/core';
2
2
  import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
3
3
  import { Observable } from 'rxjs';
4
4
  import { ISearchItem } from './description.service';
5
5
 
6
+ /** If the formula prompt is visible. */
7
+ export declare const FORMULA_PROMPT_ACTIVATED = "FORMULA_PROMPT_ACTIVATED";
6
8
  export interface ISearchFunctionOperationParams {
7
9
  /**
8
10
  * show SearchFunction Component or not
@@ -96,6 +98,7 @@ export interface IFormulaPromptService {
96
98
  }
97
99
  export declare const IFormulaPromptService: import('@univerjs/core').IdentifierDecorator<FormulaPromptService>;
98
100
  export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
101
+ private readonly _contextService;
99
102
  private readonly _search$;
100
103
  private readonly _help$;
101
104
  private readonly _navigate$;
@@ -111,6 +114,7 @@ export declare class FormulaPromptService implements IFormulaPromptService, IDis
111
114
  private _sequenceNodes;
112
115
  private _isLockedOnSelectionChangeRefString;
113
116
  private _isLockedOnSelectionInsertRefString;
117
+ constructor(_contextService: IContextService);
114
118
  dispose(): void;
115
119
  search(param: ISearchFunctionOperationParams): void;
116
120
  isSearching(): boolean;