@univerjs/sheets-formula 0.2.11 → 0.2.13

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 (48) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +576 -436
  3. package/lib/locale/en-US.json +208 -193
  4. package/lib/locale/ru-RU.json +208 -193
  5. package/lib/locale/vi-VN.json +539 -44
  6. package/lib/locale/zh-CN.json +216 -201
  7. package/lib/locale/zh-TW.json +222 -207
  8. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +6 -6
  9. package/lib/types/common/plugin-name.d.ts +1 -1
  10. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -1
  11. package/lib/types/controllers/config.schema.d.ts +32 -0
  12. package/lib/types/controllers/formula-ui.controller.d.ts +4 -13
  13. package/lib/types/controllers/menu.schema.d.ts +2 -0
  14. package/lib/types/controllers/prompt.controller.d.ts +7 -6
  15. package/lib/types/controllers/utils/ref-range-formula.d.ts +6 -0
  16. package/lib/types/formula-ui-plugin.d.ts +8 -5
  17. package/lib/types/locale/en-US.d.ts +106 -91
  18. package/lib/types/locale/function-list/information/en-US.d.ts +3 -20
  19. package/lib/types/locale/function-list/information/ja-JP.d.ts +3 -20
  20. package/lib/types/locale/function-list/information/vi-VN.d.ts +37 -0
  21. package/lib/types/locale/function-list/information/zh-CN.d.ts +3 -20
  22. package/lib/types/locale/function-list/information/zh-TW.d.ts +3 -20
  23. package/lib/types/locale/function-list/logical/en-US.d.ts +22 -10
  24. package/lib/types/locale/function-list/logical/ja-JP.d.ts +22 -10
  25. package/lib/types/locale/function-list/logical/vi-VN.d.ts +22 -10
  26. package/lib/types/locale/function-list/logical/zh-CN.d.ts +22 -10
  27. package/lib/types/locale/function-list/logical/zh-TW.d.ts +22 -10
  28. package/lib/types/locale/function-list/lookup/en-US.d.ts +46 -14
  29. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +46 -14
  30. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +126 -4
  31. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +46 -14
  32. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +46 -14
  33. package/lib/types/locale/function-list/math/en-US.d.ts +35 -47
  34. package/lib/types/locale/function-list/math/ja-JP.d.ts +35 -47
  35. package/lib/types/locale/function-list/math/vi-VN.d.ts +276 -0
  36. package/lib/types/locale/function-list/math/zh-CN.d.ts +35 -47
  37. package/lib/types/locale/function-list/math/zh-TW.d.ts +35 -47
  38. package/lib/types/locale/ru-RU.d.ts +106 -91
  39. package/lib/types/locale/vi-VN.d.ts +461 -14
  40. package/lib/types/locale/zh-CN.d.ts +106 -91
  41. package/lib/types/locale/zh-TW.d.ts +106 -91
  42. package/lib/types/services/description.service.d.ts +4 -4
  43. package/lib/types/services/prompt.service.d.ts +1 -1
  44. package/lib/types/services/register-function.service.d.ts +1 -1
  45. package/lib/types/services/remote/remote-register-function.service.d.ts +1 -1
  46. package/lib/types/views/more-functions/interface.d.ts +1 -1
  47. package/lib/umd/index.js +4 -4
  48. package/package.json +27 -25
@@ -1883,11 +1883,7 @@ declare const _default: {
1883
1883
  url: string;
1884
1884
  }[];
1885
1885
  functionParameter: {
1886
- number1: {
1887
- name: string;
1888
- detail: string;
1889
- };
1890
- number2: {
1886
+ reference: {
1891
1887
  name: string;
1892
1888
  detail: string;
1893
1889
  };
@@ -2017,11 +2013,7 @@ declare const _default: {
2017
2013
  url: string;
2018
2014
  }[];
2019
2015
  functionParameter: {
2020
- number1: {
2021
- name: string;
2022
- detail: string;
2023
- };
2024
- number2: {
2016
+ value: {
2025
2017
  name: string;
2026
2018
  detail: string;
2027
2019
  };
@@ -2034,16 +2026,7 @@ declare const _default: {
2034
2026
  title: string;
2035
2027
  url: string;
2036
2028
  }[];
2037
- functionParameter: {
2038
- number1: {
2039
- name: string;
2040
- detail: string;
2041
- };
2042
- number2: {
2043
- name: string;
2044
- detail: string;
2045
- };
2046
- };
2029
+ functionParameter: {};
2047
2030
  };
2048
2031
  SHEET: {
2049
2032
  description: string;
@@ -2121,11 +2104,11 @@ declare const _default: {
2121
2104
  url: string;
2122
2105
  }[];
2123
2106
  functionParameter: {
2124
- number1: {
2107
+ array: {
2125
2108
  name: string;
2126
2109
  detail: string;
2127
2110
  };
2128
- number2: {
2111
+ lambda: {
2129
2112
  name: string;
2130
2113
  detail: string;
2131
2114
  };
@@ -2139,11 +2122,11 @@ declare const _default: {
2139
2122
  url: string;
2140
2123
  }[];
2141
2124
  functionParameter: {
2142
- number1: {
2125
+ array: {
2143
2126
  name: string;
2144
2127
  detail: string;
2145
2128
  };
2146
- number2: {
2129
+ lambda: {
2147
2130
  name: string;
2148
2131
  detail: string;
2149
2132
  };
@@ -2320,11 +2303,15 @@ declare const _default: {
2320
2303
  url: string;
2321
2304
  }[];
2322
2305
  functionParameter: {
2323
- number1: {
2306
+ array1: {
2324
2307
  name: string;
2325
2308
  detail: string;
2326
2309
  };
2327
- number2: {
2310
+ array2: {
2311
+ name: string;
2312
+ detail: string;
2313
+ };
2314
+ lambda: {
2328
2315
  name: string;
2329
2316
  detail: string;
2330
2317
  };
@@ -2370,11 +2357,15 @@ declare const _default: {
2370
2357
  url: string;
2371
2358
  }[];
2372
2359
  functionParameter: {
2373
- number1: {
2360
+ initialValue: {
2374
2361
  name: string;
2375
2362
  detail: string;
2376
2363
  };
2377
- number2: {
2364
+ array: {
2365
+ name: string;
2366
+ detail: string;
2367
+ };
2368
+ lambda: {
2378
2369
  name: string;
2379
2370
  detail: string;
2380
2371
  };
@@ -2388,11 +2379,15 @@ declare const _default: {
2388
2379
  url: string;
2389
2380
  }[];
2390
2381
  functionParameter: {
2391
- number1: {
2382
+ initialValue: {
2392
2383
  name: string;
2393
2384
  detail: string;
2394
2385
  };
2395
- number2: {
2386
+ array: {
2387
+ name: string;
2388
+ detail: string;
2389
+ };
2390
+ lambda: {
2396
2391
  name: string;
2397
2392
  detail: string;
2398
2393
  };
@@ -3699,11 +3694,15 @@ declare const _default: {
3699
3694
  url: string;
3700
3695
  }[];
3701
3696
  functionParameter: {
3702
- number1: {
3697
+ array: {
3703
3698
  name: string;
3704
3699
  detail: string;
3705
3700
  };
3706
- number2: {
3701
+ rows: {
3702
+ name: string;
3703
+ detail: string;
3704
+ };
3705
+ columns: {
3707
3706
  name: string;
3708
3707
  detail: string;
3709
3708
  };
@@ -3717,11 +3716,19 @@ declare const _default: {
3717
3716
  url: string;
3718
3717
  }[];
3719
3718
  functionParameter: {
3720
- number1: {
3719
+ array: {
3721
3720
  name: string;
3722
3721
  detail: string;
3723
3722
  };
3724
- number2: {
3723
+ rows: {
3724
+ name: string;
3725
+ detail: string;
3726
+ };
3727
+ columns: {
3728
+ name: string;
3729
+ detail: string;
3730
+ };
3731
+ padWith: {
3725
3732
  name: string;
3726
3733
  detail: string;
3727
3734
  };
@@ -4093,11 +4100,15 @@ declare const _default: {
4093
4100
  url: string;
4094
4101
  }[];
4095
4102
  functionParameter: {
4096
- number1: {
4103
+ array: {
4097
4104
  name: string;
4098
4105
  detail: string;
4099
4106
  };
4100
- number2: {
4107
+ rows: {
4108
+ name: string;
4109
+ detail: string;
4110
+ };
4111
+ columns: {
4101
4112
  name: string;
4102
4113
  detail: string;
4103
4114
  };
@@ -4111,11 +4122,15 @@ declare const _default: {
4111
4122
  url: string;
4112
4123
  }[];
4113
4124
  functionParameter: {
4114
- number1: {
4125
+ array: {
4115
4126
  name: string;
4116
4127
  detail: string;
4117
4128
  };
4118
- number2: {
4129
+ ignore: {
4130
+ name: string;
4131
+ detail: string;
4132
+ };
4133
+ scanByColumn: {
4119
4134
  name: string;
4120
4135
  detail: string;
4121
4136
  };
@@ -4129,11 +4144,15 @@ declare const _default: {
4129
4144
  url: string;
4130
4145
  }[];
4131
4146
  functionParameter: {
4132
- number1: {
4147
+ array: {
4133
4148
  name: string;
4134
4149
  detail: string;
4135
4150
  };
4136
- number2: {
4151
+ ignore: {
4152
+ name: string;
4153
+ detail: string;
4154
+ };
4155
+ scanByColumn: {
4137
4156
  name: string;
4138
4157
  detail: string;
4139
4158
  };
@@ -4227,11 +4246,15 @@ declare const _default: {
4227
4246
  url: string;
4228
4247
  }[];
4229
4248
  functionParameter: {
4230
- number1: {
4249
+ vector: {
4231
4250
  name: string;
4232
4251
  detail: string;
4233
4252
  };
4234
- number2: {
4253
+ wrapCount: {
4254
+ name: string;
4255
+ detail: string;
4256
+ };
4257
+ padWith: {
4235
4258
  name: string;
4236
4259
  detail: string;
4237
4260
  };
@@ -4245,11 +4268,15 @@ declare const _default: {
4245
4268
  url: string;
4246
4269
  }[];
4247
4270
  functionParameter: {
4248
- number1: {
4271
+ vector: {
4249
4272
  name: string;
4250
4273
  detail: string;
4251
4274
  };
4252
- number2: {
4275
+ wrapCount: {
4276
+ name: string;
4277
+ detail: string;
4278
+ };
4279
+ padWith: {
4253
4280
  name: string;
4254
4281
  detail: string;
4255
4282
  };
@@ -6633,11 +6660,11 @@ declare const _default: {
6633
6660
  url: string;
6634
6661
  }[];
6635
6662
  functionParameter: {
6636
- number1: {
6663
+ number: {
6637
6664
  name: string;
6638
6665
  detail: string;
6639
6666
  };
6640
- number2: {
6667
+ numberChosen: {
6641
6668
  name: string;
6642
6669
  detail: string;
6643
6670
  };
@@ -6651,11 +6678,11 @@ declare const _default: {
6651
6678
  url: string;
6652
6679
  }[];
6653
6680
  functionParameter: {
6654
- number1: {
6681
+ number: {
6655
6682
  name: string;
6656
6683
  detail: string;
6657
6684
  };
6658
- number2: {
6685
+ numberChosen: {
6659
6686
  name: string;
6660
6687
  detail: string;
6661
6688
  };
@@ -6813,11 +6840,7 @@ declare const _default: {
6813
6840
  url: string;
6814
6841
  }[];
6815
6842
  functionParameter: {
6816
- number1: {
6817
- name: string;
6818
- detail: string;
6819
- };
6820
- number2: {
6843
+ number: {
6821
6844
  name: string;
6822
6845
  detail: string;
6823
6846
  };
@@ -6831,11 +6854,7 @@ declare const _default: {
6831
6854
  url: string;
6832
6855
  }[];
6833
6856
  functionParameter: {
6834
- number1: {
6835
- name: string;
6836
- detail: string;
6837
- };
6838
- number2: {
6857
+ number: {
6839
6858
  name: string;
6840
6859
  detail: string;
6841
6860
  };
@@ -6925,11 +6944,7 @@ declare const _default: {
6925
6944
  url: string;
6926
6945
  }[];
6927
6946
  functionParameter: {
6928
- number1: {
6929
- name: string;
6930
- detail: string;
6931
- };
6932
- number2: {
6947
+ number: {
6933
6948
  name: string;
6934
6949
  detail: string;
6935
6950
  };
@@ -7025,11 +7040,7 @@ declare const _default: {
7025
7040
  url: string;
7026
7041
  }[];
7027
7042
  functionParameter: {
7028
- number1: {
7029
- name: string;
7030
- detail: string;
7031
- };
7032
- number2: {
7043
+ array: {
7033
7044
  name: string;
7034
7045
  detail: string;
7035
7046
  };
@@ -7043,11 +7054,7 @@ declare const _default: {
7043
7054
  url: string;
7044
7055
  }[];
7045
7056
  functionParameter: {
7046
- number1: {
7047
- name: string;
7048
- detail: string;
7049
- };
7050
- number2: {
7057
+ array: {
7051
7058
  name: string;
7052
7059
  detail: string;
7053
7060
  };
@@ -7061,11 +7068,11 @@ declare const _default: {
7061
7068
  url: string;
7062
7069
  }[];
7063
7070
  functionParameter: {
7064
- number1: {
7071
+ array1: {
7065
7072
  name: string;
7066
7073
  detail: string;
7067
7074
  };
7068
- number2: {
7075
+ array2: {
7069
7076
  name: string;
7070
7077
  detail: string;
7071
7078
  };
@@ -7133,11 +7140,7 @@ declare const _default: {
7133
7140
  url: string;
7134
7141
  }[];
7135
7142
  functionParameter: {
7136
- number1: {
7137
- name: string;
7138
- detail: string;
7139
- };
7140
- number2: {
7143
+ dimension: {
7141
7144
  name: string;
7142
7145
  detail: string;
7143
7146
  };
@@ -7210,11 +7213,11 @@ declare const _default: {
7210
7213
  url: string;
7211
7214
  }[];
7212
7215
  functionParameter: {
7213
- number1: {
7216
+ numerator: {
7214
7217
  name: string;
7215
7218
  detail: string;
7216
7219
  };
7217
- number2: {
7220
+ denominator: {
7218
7221
  name: string;
7219
7222
  detail: string;
7220
7223
  };
@@ -7399,11 +7402,19 @@ declare const _default: {
7399
7402
  url: string;
7400
7403
  }[];
7401
7404
  functionParameter: {
7402
- number1: {
7405
+ x: {
7403
7406
  name: string;
7404
7407
  detail: string;
7405
7408
  };
7406
- number2: {
7409
+ n: {
7410
+ name: string;
7411
+ detail: string;
7412
+ };
7413
+ m: {
7414
+ name: string;
7415
+ detail: string;
7416
+ };
7417
+ coefficients: {
7407
7418
  name: string;
7408
7419
  detail: string;
7409
7420
  };
@@ -7417,11 +7428,19 @@ declare const _default: {
7417
7428
  url: string;
7418
7429
  }[];
7419
7430
  functionParameter: {
7420
- number1: {
7431
+ rows: {
7421
7432
  name: string;
7422
7433
  detail: string;
7423
7434
  };
7424
- number2: {
7435
+ columns: {
7436
+ name: string;
7437
+ detail: string;
7438
+ };
7439
+ start: {
7440
+ name: string;
7441
+ detail: string;
7442
+ };
7443
+ step: {
7425
7444
  name: string;
7426
7445
  detail: string;
7427
7446
  };
@@ -7435,11 +7454,7 @@ declare const _default: {
7435
7454
  url: string;
7436
7455
  }[];
7437
7456
  functionParameter: {
7438
- number1: {
7439
- name: string;
7440
- detail: string;
7441
- };
7442
- number2: {
7457
+ number: {
7443
7458
  name: string;
7444
7459
  detail: string;
7445
7460
  };
@@ -1,4 +1,4 @@
1
- import { LocaleService, IDisposable } from '@univerjs/core';
1
+ import { IConfigService, LocaleService, IDisposable } from '@univerjs/core';
2
2
  import { IFunctionInfo, IFunctionNames, IFunctionService } from '@univerjs/engine-formula';
3
3
  export interface ISearchItem {
4
4
  name: string;
@@ -59,13 +59,13 @@ export interface IDescriptionService {
59
59
  */
60
60
  isFormulaDefinedName(name: string): boolean;
61
61
  }
62
- export declare const IDescriptionService: import('@univerjs/core').IdentifierDecorator<IDescriptionService>;
62
+ export declare const IDescriptionService: import('@wendellhu/redi').IdentifierDecorator<IDescriptionService>;
63
63
  export declare class DescriptionService implements IDescriptionService, IDisposable {
64
- private _description;
65
64
  private readonly _functionService;
66
65
  private readonly _localeService;
66
+ private readonly _configService;
67
67
  private _descriptions;
68
- constructor(_description: IFunctionInfo[], _functionService: IFunctionService, _localeService: LocaleService);
68
+ constructor(_functionService: IFunctionService, _localeService: LocaleService, _configService: IConfigService);
69
69
  dispose(): void;
70
70
  getDescriptions(): Map<IFunctionNames, IFunctionInfo>;
71
71
  hasFunction(searchText: string): boolean;
@@ -95,7 +95,7 @@ export interface IFormulaPromptService {
95
95
  disableLockedSelectionInsert(): void;
96
96
  isLockedSelectionInsert(): boolean;
97
97
  }
98
- export declare const IFormulaPromptService: import('@univerjs/core').IdentifierDecorator<FormulaPromptService>;
98
+ export declare const IFormulaPromptService: import('@wendellhu/redi').IdentifierDecorator<FormulaPromptService>;
99
99
  export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
100
100
  private readonly _contextService;
101
101
  private readonly _search$;
@@ -51,7 +51,7 @@ export interface IRegisterFunctionService {
51
51
  */
52
52
  registerFunctions(params: IRegisterFunctionParams): IDisposable;
53
53
  }
54
- export declare const IRegisterFunctionService: import('@univerjs/core').IdentifierDecorator<IRegisterFunctionService>;
54
+ export declare const IRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRegisterFunctionService>;
55
55
  export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
56
56
  private readonly _localeService;
57
57
  private readonly _descriptionService;
@@ -4,7 +4,7 @@ export interface IRemoteRegisterFunctionService {
4
4
  unregisterFunctions(names: string[]): Promise<void>;
5
5
  }
6
6
  export declare const RemoteRegisterFunctionServiceName = "sheets-formula.remote-register-function.service";
7
- export declare const IRemoteRegisterFunctionService: import('@univerjs/core').IdentifierDecorator<IRemoteRegisterFunctionService>;
7
+ export declare const IRemoteRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRemoteRegisterFunctionService>;
8
8
  /**
9
9
  * This class should resident in the remote process.
10
10
  */
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const MORE_FUNCTIONS_COMPONENT = "formula-ui_MORE_FUNCTIONS_COMPONENT";
16
+ export declare const MORE_FUNCTIONS_COMPONENT = "SHEET_FORMULA_UI_PLUGIN_MORE_FUNCTIONS_COMPONENT";