@univerjs/sheets-formula 0.2.11 → 0.2.12

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.
@@ -8578,13 +8578,9 @@
8578
8578
  }
8579
8579
  ],
8580
8580
  "functionParameter": {
8581
- "number1": {
8582
- "name": "number1",
8583
- "detail": "first"
8584
- },
8585
- "number2": {
8586
- "name": "number2",
8587
- "detail": "second"
8581
+ "reference": {
8582
+ "name": "reference",
8583
+ "detail": "Reference is a reference to the cell you want to test."
8588
8584
  }
8589
8585
  }
8590
8586
  },
@@ -8730,13 +8726,9 @@
8730
8726
  }
8731
8727
  ],
8732
8728
  "functionParameter": {
8733
- "number1": {
8734
- "name": "number1",
8735
- "detail": "first"
8736
- },
8737
- "number2": {
8738
- "name": "number2",
8739
- "detail": "second"
8729
+ "value": {
8730
+ "name": "value",
8731
+ "detail": "The value you want converted."
8740
8732
  }
8741
8733
  }
8742
8734
  },
@@ -8749,16 +8741,7 @@
8749
8741
  "url": "https://support.microsoft.com/en-us/office/na-function-5469c2d1-a90c-4fb5-9bbc-64bd9bb6b47c"
8750
8742
  }
8751
8743
  ],
8752
- "functionParameter": {
8753
- "number1": {
8754
- "name": "number1",
8755
- "detail": "first"
8756
- },
8757
- "number2": {
8758
- "name": "number2",
8759
- "detail": "second"
8760
- }
8761
- }
8744
+ "functionParameter": {}
8762
8745
  },
8763
8746
  "SHEET": {
8764
8747
  "description": "Returns the sheet number of the referenced sheet",
@@ -8530,13 +8530,9 @@
8530
8530
  }
8531
8531
  ],
8532
8532
  "functionParameter": {
8533
- "number1": {
8534
- "name": "number1",
8535
- "detail": "first"
8536
- },
8537
- "number2": {
8538
- "name": "number2",
8539
- "detail": "second"
8533
+ "reference": {
8534
+ "name": "reference",
8535
+ "detail": "Reference is a reference to the cell you want to test."
8540
8536
  }
8541
8537
  }
8542
8538
  },
@@ -8682,13 +8678,9 @@
8682
8678
  }
8683
8679
  ],
8684
8680
  "functionParameter": {
8685
- "number1": {
8686
- "name": "number1",
8687
- "detail": "first"
8688
- },
8689
- "number2": {
8690
- "name": "number2",
8691
- "detail": "second"
8681
+ "value": {
8682
+ "name": "value",
8683
+ "detail": "The value you want converted."
8692
8684
  }
8693
8685
  }
8694
8686
  },
@@ -8701,16 +8693,7 @@
8701
8693
  "url": "https://support.microsoft.com/en-us/office/na-function-5469c2d1-a90c-4fb5-9bbc-64bd9bb6b47c"
8702
8694
  }
8703
8695
  ],
8704
- "functionParameter": {
8705
- "number1": {
8706
- "name": "number1",
8707
- "detail": "first"
8708
- },
8709
- "number2": {
8710
- "name": "number2",
8711
- "detail": "second"
8712
- }
8713
- }
8696
+ "functionParameter": {}
8714
8697
  },
8715
8698
  "SHEET": {
8716
8699
  "description": "Returns the sheet number of the referenced sheet",
@@ -6376,6 +6376,22 @@
6376
6376
  }
6377
6377
  }
6378
6378
  },
6379
+ "ISFORMULA": {
6380
+ "description": "Kiểm tra xem liệu có tham chiếu đến ô chứa công thức hay không và trả về kết quả TRUE hoặc FALSE.",
6381
+ "abstract": "Kiểm tra xem liệu có tham chiếu đến ô chứa công thức hay không và trả về kết quả TRUE hoặc FALSE.",
6382
+ "links": [
6383
+ {
6384
+ "title": "Hướng dẫn",
6385
+ "url": "https://support.microsoft.com/vi-vn/office/isformula-%E5%87%BD%E6%95%B0-e4d1355f-7121-4ef2-801e-3839bfd6b1e5"
6386
+ }
6387
+ ],
6388
+ "functionParameter": {
6389
+ "reference": {
6390
+ "name": "tham chiếu",
6391
+ "detail": "Tham chiếu là tham chiếu đến ô mà bạn muốn kiểm tra."
6392
+ }
6393
+ }
6394
+ },
6379
6395
  "ISLOGICAL": {
6380
6396
  "description": "Trả về TRUE nếu giá trị là giá trị logic",
6381
6397
  "abstract": "Trả về TRUE nếu giá trị là giá trị logic",
@@ -6488,6 +6504,33 @@
6488
6504
  }
6489
6505
  }
6490
6506
  },
6507
+ "N": {
6508
+ "description": "Trả về một giá trị được chuyển đổi thành số.",
6509
+ "abstract": "Trả về một giá trị được chuyển đổi thành số.",
6510
+ "links": [
6511
+ {
6512
+ "title": "Hướng dẫn",
6513
+ "url": "https://support.microsoft.com/vi-vn/office/n-%E5%87%BD%E6%95%B0-a624cad1-3635-4208-b54a-29733d1278c9"
6514
+ }
6515
+ ],
6516
+ "functionParameter": {
6517
+ "value": {
6518
+ "name": "giá trị",
6519
+ "detail": "Giá trị mà bạn muốn chuyển đổi."
6520
+ }
6521
+ }
6522
+ },
6523
+ "NA": {
6524
+ "description": "Trả về giá trị lỗi #N/A.",
6525
+ "abstract": "Trả về giá trị lỗi #N/A.",
6526
+ "links": [
6527
+ {
6528
+ "title": "Hướng dẫn",
6529
+ "url": "https://support.microsoft.com/vi-vn/office/na-%E5%87%BD%E6%95%B0-5469c2d1-a90c-4fb5-9bbc-64bd9bb6b47c"
6530
+ }
6531
+ ],
6532
+ "functionParameter": {}
6533
+ },
6491
6534
  "TYPE": {
6492
6535
  "description": "Trả về một số đại diện cho kiểu dữ liệu của giá trị",
6493
6536
  "abstract": "Trả về một số đại diện cho kiểu dữ liệu của giá trị",
@@ -8578,13 +8578,9 @@
8578
8578
  }
8579
8579
  ],
8580
8580
  "functionParameter": {
8581
- "number1": {
8582
- "name": "number1",
8583
- "detail": "first"
8584
- },
8585
- "number2": {
8586
- "name": "number2",
8587
- "detail": "second"
8581
+ "reference": {
8582
+ "name": "引用",
8583
+ "detail": "是对要测试的单元格的引用。"
8588
8584
  }
8589
8585
  }
8590
8586
  },
@@ -8730,13 +8726,9 @@
8730
8726
  }
8731
8727
  ],
8732
8728
  "functionParameter": {
8733
- "number1": {
8734
- "name": "number1",
8735
- "detail": "first"
8736
- },
8737
- "number2": {
8738
- "name": "number2",
8739
- "detail": "second"
8729
+ "value": {
8730
+ "name": "",
8731
+ "detail": "要转换的值。"
8740
8732
  }
8741
8733
  }
8742
8734
  },
@@ -8749,16 +8741,7 @@
8749
8741
  "url": "https://support.microsoft.com/zh-cn/office/na-%E5%87%BD%E6%95%B0-5469c2d1-a90c-4fb5-9bbc-64bd9bb6b47c"
8750
8742
  }
8751
8743
  ],
8752
- "functionParameter": {
8753
- "number1": {
8754
- "name": "number1",
8755
- "detail": "first"
8756
- },
8757
- "number2": {
8758
- "name": "number2",
8759
- "detail": "second"
8760
- }
8761
- }
8744
+ "functionParameter": {}
8762
8745
  },
8763
8746
  "SHEET": {
8764
8747
  "description": "返回引用工作表的工作表编号",
@@ -8569,8 +8569,8 @@
8569
8569
  }
8570
8570
  },
8571
8571
  "ISFORMULA": {
8572
- "description": "如果有包含公式的單元格的引用,則傳回 TRUE",
8573
- "abstract": "如果有包含公式的單元格的引用,則傳回 TRUE",
8572
+ "description": "檢查是否有參照包含公式的儲存格,並傳回 TRUE 或 FALSE。",
8573
+ "abstract": "檢查是否有參照包含公式的儲存格,並傳回 TRUE 或 FALSE。",
8574
8574
  "links": [
8575
8575
  {
8576
8576
  "title": "教導",
@@ -8578,13 +8578,9 @@
8578
8578
  }
8579
8579
  ],
8580
8580
  "functionParameter": {
8581
- "number1": {
8582
- "name": "number1",
8583
- "detail": "first"
8584
- },
8585
- "number2": {
8586
- "name": "number2",
8587
- "detail": "second"
8581
+ "reference": {
8582
+ "name": "參照",
8583
+ "detail": "是您要測試之儲存格的參照。"
8588
8584
  }
8589
8585
  }
8590
8586
  },
@@ -8730,13 +8726,9 @@
8730
8726
  }
8731
8727
  ],
8732
8728
  "functionParameter": {
8733
- "number1": {
8734
- "name": "number1",
8735
- "detail": "first"
8736
- },
8737
- "number2": {
8738
- "name": "number2",
8739
- "detail": "second"
8729
+ "value": {
8730
+ "name": "",
8731
+ "detail": "這是要轉換的值。"
8740
8732
  }
8741
8733
  }
8742
8734
  },
@@ -8749,16 +8741,7 @@
8749
8741
  "url": "https://support.microsoft.com/zh-tw/office/na-%E5%87%BD%E6%95%B0-5469c2d1-a90c-4fb5-9bbc-64bd9bb6b47c"
8750
8742
  }
8751
8743
  ],
8752
- "functionParameter": {
8753
- "number1": {
8754
- "name": "number1",
8755
- "detail": "first"
8756
- },
8757
- "number2": {
8758
- "name": "number2",
8759
- "detail": "second"
8760
- }
8761
- }
8744
+ "functionParameter": {}
8762
8745
  },
8763
8746
  "SHEET": {
8764
8747
  "description": "傳回引用工作表的工作表編號",
@@ -0,0 +1,32 @@
1
+ import { MenuConfig } from '@univerjs/ui';
2
+ import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
3
+ import { Ctor } from '@univerjs/core';
4
+ /**
5
+ * Base configuration for the plugin.
6
+ */
7
+ export declare const PLUGIN_CONFIG_KEY_BASE = "sheets-formula.base.config";
8
+ export declare const configSymbolBase: unique symbol;
9
+ export interface IUniverSheetsFormulaBaseConfig {
10
+ menu?: MenuConfig;
11
+ notExecuteFormula?: boolean;
12
+ description?: IFunctionInfo[];
13
+ function?: Array<[Ctor<BaseFunction>, IFunctionNames]>;
14
+ }
15
+ export declare const defaultPluginBaseConfig: IUniverSheetsFormulaBaseConfig;
16
+ /**
17
+ * Remote configuration for the plugin.
18
+ */
19
+ export declare const PLUGIN_CONFIG_KEY_REMOTE = "sheets-formula.remote.config";
20
+ export declare const configSymbolRemote: unique symbol;
21
+ export interface IUniverSheetsFormulaRemoteConfig {
22
+ }
23
+ export declare const defaultPluginRemoteConfig: IUniverSheetsFormulaRemoteConfig;
24
+ /**
25
+ * Mobile configuration for the plugin.
26
+ */
27
+ export declare const PLUGIN_CONFIG_KEY_MOBILE = "sheets-formula.mobile.config";
28
+ export declare const configSymbolMobile: unique symbol;
29
+ export interface IUniverSheetsFormulaMobileConfig {
30
+ menu?: MenuConfig;
31
+ }
32
+ export declare const defaultPluginMobileConfig: IUniverSheetsFormulaMobileConfig;
@@ -1,24 +1,15 @@
1
- import { Disposable, ICommandService, Injector, Ctor } from '@univerjs/core';
2
- import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
1
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
2
+ import { ComponentManager, IMenuManagerService, IShortcutService, IUIPartsService } from '@univerjs/ui';
3
3
  import { IRenderManagerService } from '@univerjs/engine-render';
4
- import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
5
- export interface IUniverSheetsFormulaConfig {
6
- menu: MenuConfig;
7
- notExecuteFormula?: boolean;
8
- description: IFunctionInfo[];
9
- function: Array<[Ctor<BaseFunction>, IFunctionNames]>;
10
- }
11
- export declare const DefaultSheetFormulaConfig: {};
12
4
  export declare class FormulaUIController extends Disposable {
13
- private readonly _config;
14
5
  private readonly _injector;
15
- private readonly _menuService;
6
+ private readonly _menuManagerService;
16
7
  private readonly _commandService;
17
8
  private readonly _shortcutService;
18
9
  private readonly _uiPartsService;
19
10
  private readonly _renderManagerService;
20
11
  private readonly _componentManager;
21
- constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _menuService: IMenuService, _commandService: ICommandService, _shortcutService: IShortcutService, _uiPartsService: IUIPartsService, _renderManagerService: IRenderManagerService, _componentManager: ComponentManager);
12
+ constructor(_injector: Injector, _menuManagerService: IMenuManagerService, _commandService: ICommandService, _shortcutService: IShortcutService, _uiPartsService: IUIPartsService, _renderManagerService: IRenderManagerService, _componentManager: ComponentManager);
22
13
  private _initialize;
23
14
  private _registerMenus;
24
15
  private _registerCommands;
@@ -0,0 +1,2 @@
1
+ import { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const menuSchema: MenuSchemaType;
@@ -1,12 +1,13 @@
1
- import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
1
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { IUniverSheetsFormulaConfig } from './controllers/formula-ui.controller';
3
+ import { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaMobileConfig, IUniverSheetsFormulaRemoteConfig } from './controllers/config.schema';
4
4
  export declare class UniverRemoteSheetsFormulaPlugin extends Plugin {
5
5
  private readonly _config;
6
6
  readonly _injector: Injector;
7
+ private readonly _configService;
7
8
  static pluginName: string;
8
9
  static type: UniverInstanceType;
9
- constructor(_config: {}, _injector: Injector);
10
+ constructor(_config: Partial<IUniverSheetsFormulaRemoteConfig>, _injector: Injector, _configService: IConfigService);
10
11
  onStarting(): void;
11
12
  }
12
13
  /**
@@ -16,18 +17,20 @@ export declare class UniverSheetsFormulaPlugin extends Plugin {
16
17
  private readonly _config;
17
18
  readonly _injector: Injector;
18
19
  private readonly _renderManagerService;
20
+ private readonly _configService;
19
21
  static pluginName: string;
20
22
  static type: UniverInstanceType;
21
- constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _renderManagerService: IRenderManagerService);
23
+ constructor(_config: Partial<IUniverSheetsFormulaBaseConfig>, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService);
22
24
  onStarting(): void;
23
25
  onRendered(): void;
24
26
  }
25
27
  export declare class UniverSheetsFormulaMobilePlugin extends Plugin {
26
28
  private readonly _config;
27
29
  readonly _injector: Injector;
30
+ private readonly _configService;
28
31
  static pluginName: string;
29
32
  static type: UniverInstanceType;
30
- constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector);
33
+ constructor(_config: Partial<IUniverSheetsFormulaMobileConfig>, _injector: Injector, _configService: IConfigService);
31
34
  onStarting(): void;
32
35
  _init(): void;
33
36
  }
@@ -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;
@@ -128,11 +128,7 @@ declare const _default: {
128
128
  url: string;
129
129
  }[];
130
130
  functionParameter: {
131
- number1: {
132
- name: string;
133
- detail: string;
134
- };
135
- number2: {
131
+ reference: {
136
132
  name: string;
137
133
  detail: string;
138
134
  };
@@ -262,11 +258,7 @@ declare const _default: {
262
258
  url: string;
263
259
  }[];
264
260
  functionParameter: {
265
- number1: {
266
- name: string;
267
- detail: string;
268
- };
269
- number2: {
261
+ value: {
270
262
  name: string;
271
263
  detail: string;
272
264
  };
@@ -279,16 +271,7 @@ declare const _default: {
279
271
  title: string;
280
272
  url: string;
281
273
  }[];
282
- functionParameter: {
283
- number1: {
284
- name: string;
285
- detail: string;
286
- };
287
- number2: {
288
- name: string;
289
- detail: string;
290
- };
291
- };
274
+ functionParameter: {};
292
275
  };
293
276
  SHEET: {
294
277
  description: string;
@@ -128,11 +128,7 @@ declare const _default: {
128
128
  url: string;
129
129
  }[];
130
130
  functionParameter: {
131
- number1: {
132
- name: string;
133
- detail: string;
134
- };
135
- number2: {
131
+ reference: {
136
132
  name: string;
137
133
  detail: string;
138
134
  };
@@ -262,11 +258,7 @@ declare const _default: {
262
258
  url: string;
263
259
  }[];
264
260
  functionParameter: {
265
- number1: {
266
- name: string;
267
- detail: string;
268
- };
269
- number2: {
261
+ value: {
270
262
  name: string;
271
263
  detail: string;
272
264
  };
@@ -279,16 +271,7 @@ declare const _default: {
279
271
  title: string;
280
272
  url: string;
281
273
  }[];
282
- functionParameter: {
283
- number1: {
284
- name: string;
285
- detail: string;
286
- };
287
- number2: {
288
- name: string;
289
- detail: string;
290
- };
291
- };
274
+ functionParameter: {};
292
275
  };
293
276
  SHEET: {
294
277
  description: string;
@@ -102,6 +102,20 @@ declare const _default: {
102
102
  };
103
103
  };
104
104
  };
105
+ ISFORMULA: {
106
+ description: string;
107
+ abstract: string;
108
+ links: {
109
+ title: string;
110
+ url: string;
111
+ }[];
112
+ functionParameter: {
113
+ reference: {
114
+ name: string;
115
+ detail: string;
116
+ };
117
+ };
118
+ };
105
119
  ISLOGICAL: {
106
120
  description: string;
107
121
  abstract: string;
@@ -200,6 +214,29 @@ declare const _default: {
200
214
  };
201
215
  };
202
216
  };
217
+ N: {
218
+ description: string;
219
+ abstract: string;
220
+ links: {
221
+ title: string;
222
+ url: string;
223
+ }[];
224
+ functionParameter: {
225
+ value: {
226
+ name: string;
227
+ detail: string;
228
+ };
229
+ };
230
+ };
231
+ NA: {
232
+ description: string;
233
+ abstract: string;
234
+ links: {
235
+ title: string;
236
+ url: string;
237
+ }[];
238
+ functionParameter: {};
239
+ };
203
240
  TYPE: {
204
241
  description: string;
205
242
  abstract: string;
@@ -128,11 +128,7 @@ declare const _default: {
128
128
  url: string;
129
129
  }[];
130
130
  functionParameter: {
131
- number1: {
132
- name: string;
133
- detail: string;
134
- };
135
- number2: {
131
+ reference: {
136
132
  name: string;
137
133
  detail: string;
138
134
  };
@@ -262,11 +258,7 @@ declare const _default: {
262
258
  url: string;
263
259
  }[];
264
260
  functionParameter: {
265
- number1: {
266
- name: string;
267
- detail: string;
268
- };
269
- number2: {
261
+ value: {
270
262
  name: string;
271
263
  detail: string;
272
264
  };
@@ -279,16 +271,7 @@ declare const _default: {
279
271
  title: string;
280
272
  url: string;
281
273
  }[];
282
- functionParameter: {
283
- number1: {
284
- name: string;
285
- detail: string;
286
- };
287
- number2: {
288
- name: string;
289
- detail: string;
290
- };
291
- };
274
+ functionParameter: {};
292
275
  };
293
276
  SHEET: {
294
277
  description: string;
@@ -128,11 +128,7 @@ declare const _default: {
128
128
  url: string;
129
129
  }[];
130
130
  functionParameter: {
131
- number1: {
132
- name: string;
133
- detail: string;
134
- };
135
- number2: {
131
+ reference: {
136
132
  name: string;
137
133
  detail: string;
138
134
  };
@@ -262,11 +258,7 @@ declare const _default: {
262
258
  url: string;
263
259
  }[];
264
260
  functionParameter: {
265
- number1: {
266
- name: string;
267
- detail: string;
268
- };
269
- number2: {
261
+ value: {
270
262
  name: string;
271
263
  detail: string;
272
264
  };
@@ -279,16 +271,7 @@ declare const _default: {
279
271
  title: string;
280
272
  url: string;
281
273
  }[];
282
- functionParameter: {
283
- number1: {
284
- name: string;
285
- detail: string;
286
- };
287
- number2: {
288
- name: string;
289
- detail: string;
290
- };
291
- };
274
+ functionParameter: {};
292
275
  };
293
276
  SHEET: {
294
277
  description: string;