@univerjs/sheets-formula 0.10.6-experimental.20250904-9591d16 → 0.10.6-nightly.202509060724

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.
package/lib/es/index.js CHANGED
@@ -15599,8 +15599,8 @@ let Mt = class {
15599
15599
  getSearchListByNameFirstLetter(a) {
15600
15600
  const e = [], n = this._functionService.getDescriptions(), i = a.toLocaleUpperCase().trim();
15601
15601
  return n.forEach((r) => {
15602
- const { functionName: o, abstract: u } = r;
15603
- o.toLocaleUpperCase().indexOf(i) === 0 && e.push({ name: o, desc: u });
15602
+ const { functionName: o, abstract: u, functionType: f } = r;
15603
+ o.toLocaleUpperCase().indexOf(i) === 0 && e.push({ name: o, desc: u, functionType: f });
15604
15604
  }), e;
15605
15605
  }
15606
15606
  getSearchListByType(a) {
package/lib/index.js CHANGED
@@ -15599,8 +15599,8 @@ let Mt = class {
15599
15599
  getSearchListByNameFirstLetter(a) {
15600
15600
  const e = [], n = this._functionService.getDescriptions(), i = a.toLocaleUpperCase().trim();
15601
15601
  return n.forEach((r) => {
15602
- const { functionName: o, abstract: u } = r;
15603
- o.toLocaleUpperCase().indexOf(i) === 0 && e.push({ name: o, desc: u });
15602
+ const { functionName: o, abstract: u, functionType: f } = r;
15603
+ o.toLocaleUpperCase().indexOf(i) === 0 && e.push({ name: o, desc: u, functionType: f });
15604
15604
  }), e;
15605
15605
  }
15606
15606
  getSearchListByType(a) {
@@ -22,7 +22,8 @@ export { TriggerCalculationController } from './controllers/trigger-calculation.
22
22
  export { UpdateDefinedNameController } from './controllers/update-defined-name.controller';
23
23
  export { UpdateFormulaController } from './controllers/update-formula.controller';
24
24
  export { UniverRemoteSheetsFormulaPlugin, UniverSheetsFormulaPlugin } from './plugin';
25
- export { DescriptionService, IDescriptionService, type ISearchItem } from './services/description.service';
25
+ export { DescriptionService, IDescriptionService } from './services/description.service';
26
+ export type { ISearchItem, ISearchItemWithType } from './services/description.service';
26
27
  export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';
27
28
  export { FormulaRefRangeService } from './services/formula-ref-range.service';
28
29
  export type { IRegisterAsyncFunction, IRegisterFunction, ISingleFunctionRegisterParams } from './services/register-function.service';
@@ -1,9 +1,12 @@
1
1
  import { IDisposable, IConfigService, LocaleService } from '@univerjs/core';
2
- import { IFunctionInfo, IFunctionNames, IFunctionService } from '@univerjs/engine-formula';
2
+ import { IFunctionInfo, IFunctionNames, FunctionType, IFunctionService } from '@univerjs/engine-formula';
3
3
  export interface ISearchItem {
4
4
  name: string;
5
5
  desc: string;
6
6
  }
7
+ export interface ISearchItemWithType extends ISearchItem {
8
+ functionType: FunctionType;
9
+ }
7
10
  export interface IDescriptionService {
8
11
  /**
9
12
  * get all descriptions
@@ -26,7 +29,7 @@ export interface IDescriptionService {
26
29
  * @param searchText
27
30
  * @returns
28
31
  */
29
- getSearchListByNameFirstLetter(searchText: string): ISearchItem[];
32
+ getSearchListByNameFirstLetter(searchText: string): ISearchItemWithType[];
30
33
  /**
31
34
  * get search list by type, if type is -1, return all
32
35
  * @param type
@@ -71,7 +74,7 @@ export declare class DescriptionService implements IDescriptionService, IDisposa
71
74
  hasFunction(searchText: string): boolean;
72
75
  getFunctionInfo(searchText: string): IFunctionInfo | undefined;
73
76
  getSearchListByName(searchText: string): ISearchItem[];
74
- getSearchListByNameFirstLetter(searchText: string): ISearchItem[];
77
+ getSearchListByNameFirstLetter(searchText: string): ISearchItemWithType[];
75
78
  getSearchListByType(type: number): ISearchItem[];
76
79
  registerDescriptions(description: IFunctionInfo[]): IDisposable;
77
80
  unregisterDescriptions(functionNames: string[]): void;