@univerjs/sheets-formula 0.1.0-alpha.3 → 0.1.0-beta.1
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/cjs/index.js +6 -6
- package/lib/es/index.js +1093 -972
- package/lib/types/controllers/utils.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +8 -20
- package/lib/types/locale/function-list/logical/en-US.d.ts +4 -0
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +4 -0
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +4 -0
- package/lib/types/locale/function-list/math/en-US.d.ts +4 -20
- package/lib/types/locale/function-list/math/ja-JP.d.ts +4 -20
- package/lib/types/locale/function-list/math/zh-CN.d.ts +4 -20
- package/lib/types/locale/zh-CN.d.ts +8 -20
- package/lib/types/services/description.service.d.ts +7 -0
- package/lib/types/services/function-list/array.d.ts +1 -1
- package/lib/umd/index.js +6 -6
- package/package.json +25 -25
|
@@ -23,4 +23,5 @@ interface IFormulaDataGenerics<T> {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function offsetFormula<T>(formulaData: IFormulaDataGenerics<T>, command: ICommandInfo, unitId: string, sheetId: string, selections?: Readonly<Nullable<ISelectionWithStyle[]>>): IFormulaDataGenerics<T>;
|
|
25
25
|
export declare function offsetArrayFormula(arrayFormulaRange: IArrayFormulaRangeType, unitId: string, sheetId: string): IArrayFormulaRangeType;
|
|
26
|
+
export declare function removeFormulaData<T>(formulaData: IFormulaDataGenerics<T>, unitId: string, sheetId: string): void;
|
|
26
27
|
export {};
|
|
@@ -2489,6 +2489,10 @@ declare const _default: {
|
|
|
2489
2489
|
name: string;
|
|
2490
2490
|
detail: string;
|
|
2491
2491
|
};
|
|
2492
|
+
value3: {
|
|
2493
|
+
name: string;
|
|
2494
|
+
detail: string;
|
|
2495
|
+
};
|
|
2492
2496
|
};
|
|
2493
2497
|
};
|
|
2494
2498
|
MAP: {
|
|
@@ -6333,11 +6337,7 @@ declare const _default: {
|
|
|
6333
6337
|
url: string;
|
|
6334
6338
|
}[];
|
|
6335
6339
|
functionParameter: {
|
|
6336
|
-
|
|
6337
|
-
name: string;
|
|
6338
|
-
detail: string;
|
|
6339
|
-
};
|
|
6340
|
-
number2: {
|
|
6340
|
+
number: {
|
|
6341
6341
|
name: string;
|
|
6342
6342
|
detail: string;
|
|
6343
6343
|
};
|
|
@@ -6351,11 +6351,7 @@ declare const _default: {
|
|
|
6351
6351
|
url: string;
|
|
6352
6352
|
}[];
|
|
6353
6353
|
functionParameter: {
|
|
6354
|
-
|
|
6355
|
-
name: string;
|
|
6356
|
-
detail: string;
|
|
6357
|
-
};
|
|
6358
|
-
number2: {
|
|
6354
|
+
number: {
|
|
6359
6355
|
name: string;
|
|
6360
6356
|
detail: string;
|
|
6361
6357
|
};
|
|
@@ -6369,11 +6365,7 @@ declare const _default: {
|
|
|
6369
6365
|
url: string;
|
|
6370
6366
|
}[];
|
|
6371
6367
|
functionParameter: {
|
|
6372
|
-
|
|
6373
|
-
name: string;
|
|
6374
|
-
detail: string;
|
|
6375
|
-
};
|
|
6376
|
-
number2: {
|
|
6368
|
+
number: {
|
|
6377
6369
|
name: string;
|
|
6378
6370
|
detail: string;
|
|
6379
6371
|
};
|
|
@@ -6387,11 +6379,7 @@ declare const _default: {
|
|
|
6387
6379
|
url: string;
|
|
6388
6380
|
}[];
|
|
6389
6381
|
functionParameter: {
|
|
6390
|
-
|
|
6391
|
-
name: string;
|
|
6392
|
-
detail: string;
|
|
6393
|
-
};
|
|
6394
|
-
number2: {
|
|
6382
|
+
number: {
|
|
6395
6383
|
name: string;
|
|
6396
6384
|
detail: string;
|
|
6397
6385
|
};
|
|
@@ -22,11 +22,7 @@ declare const _default: {
|
|
|
22
22
|
url: string;
|
|
23
23
|
}[];
|
|
24
24
|
functionParameter: {
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
detail: string;
|
|
28
|
-
};
|
|
29
|
-
number2: {
|
|
25
|
+
number: {
|
|
30
26
|
name: string;
|
|
31
27
|
detail: string;
|
|
32
28
|
};
|
|
@@ -40,11 +36,7 @@ declare const _default: {
|
|
|
40
36
|
url: string;
|
|
41
37
|
}[];
|
|
42
38
|
functionParameter: {
|
|
43
|
-
|
|
44
|
-
name: string;
|
|
45
|
-
detail: string;
|
|
46
|
-
};
|
|
47
|
-
number2: {
|
|
39
|
+
number: {
|
|
48
40
|
name: string;
|
|
49
41
|
detail: string;
|
|
50
42
|
};
|
|
@@ -58,11 +50,7 @@ declare const _default: {
|
|
|
58
50
|
url: string;
|
|
59
51
|
}[];
|
|
60
52
|
functionParameter: {
|
|
61
|
-
|
|
62
|
-
name: string;
|
|
63
|
-
detail: string;
|
|
64
|
-
};
|
|
65
|
-
number2: {
|
|
53
|
+
number: {
|
|
66
54
|
name: string;
|
|
67
55
|
detail: string;
|
|
68
56
|
};
|
|
@@ -76,11 +64,7 @@ declare const _default: {
|
|
|
76
64
|
url: string;
|
|
77
65
|
}[];
|
|
78
66
|
functionParameter: {
|
|
79
|
-
|
|
80
|
-
name: string;
|
|
81
|
-
detail: string;
|
|
82
|
-
};
|
|
83
|
-
number2: {
|
|
67
|
+
number: {
|
|
84
68
|
name: string;
|
|
85
69
|
detail: string;
|
|
86
70
|
};
|
|
@@ -22,11 +22,7 @@ declare const _default: {
|
|
|
22
22
|
url: string;
|
|
23
23
|
}[];
|
|
24
24
|
functionParameter: {
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
detail: string;
|
|
28
|
-
};
|
|
29
|
-
number2: {
|
|
25
|
+
number: {
|
|
30
26
|
name: string;
|
|
31
27
|
detail: string;
|
|
32
28
|
};
|
|
@@ -40,11 +36,7 @@ declare const _default: {
|
|
|
40
36
|
url: string;
|
|
41
37
|
}[];
|
|
42
38
|
functionParameter: {
|
|
43
|
-
|
|
44
|
-
name: string;
|
|
45
|
-
detail: string;
|
|
46
|
-
};
|
|
47
|
-
number2: {
|
|
39
|
+
number: {
|
|
48
40
|
name: string;
|
|
49
41
|
detail: string;
|
|
50
42
|
};
|
|
@@ -58,11 +50,7 @@ declare const _default: {
|
|
|
58
50
|
url: string;
|
|
59
51
|
}[];
|
|
60
52
|
functionParameter: {
|
|
61
|
-
|
|
62
|
-
name: string;
|
|
63
|
-
detail: string;
|
|
64
|
-
};
|
|
65
|
-
number2: {
|
|
53
|
+
number: {
|
|
66
54
|
name: string;
|
|
67
55
|
detail: string;
|
|
68
56
|
};
|
|
@@ -76,11 +64,7 @@ declare const _default: {
|
|
|
76
64
|
url: string;
|
|
77
65
|
}[];
|
|
78
66
|
functionParameter: {
|
|
79
|
-
|
|
80
|
-
name: string;
|
|
81
|
-
detail: string;
|
|
82
|
-
};
|
|
83
|
-
number2: {
|
|
67
|
+
number: {
|
|
84
68
|
name: string;
|
|
85
69
|
detail: string;
|
|
86
70
|
};
|
|
@@ -22,11 +22,7 @@ declare const _default: {
|
|
|
22
22
|
url: string;
|
|
23
23
|
}[];
|
|
24
24
|
functionParameter: {
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
detail: string;
|
|
28
|
-
};
|
|
29
|
-
number2: {
|
|
25
|
+
number: {
|
|
30
26
|
name: string;
|
|
31
27
|
detail: string;
|
|
32
28
|
};
|
|
@@ -40,11 +36,7 @@ declare const _default: {
|
|
|
40
36
|
url: string;
|
|
41
37
|
}[];
|
|
42
38
|
functionParameter: {
|
|
43
|
-
|
|
44
|
-
name: string;
|
|
45
|
-
detail: string;
|
|
46
|
-
};
|
|
47
|
-
number2: {
|
|
39
|
+
number: {
|
|
48
40
|
name: string;
|
|
49
41
|
detail: string;
|
|
50
42
|
};
|
|
@@ -58,11 +50,7 @@ declare const _default: {
|
|
|
58
50
|
url: string;
|
|
59
51
|
}[];
|
|
60
52
|
functionParameter: {
|
|
61
|
-
|
|
62
|
-
name: string;
|
|
63
|
-
detail: string;
|
|
64
|
-
};
|
|
65
|
-
number2: {
|
|
53
|
+
number: {
|
|
66
54
|
name: string;
|
|
67
55
|
detail: string;
|
|
68
56
|
};
|
|
@@ -76,11 +64,7 @@ declare const _default: {
|
|
|
76
64
|
url: string;
|
|
77
65
|
}[];
|
|
78
66
|
functionParameter: {
|
|
79
|
-
|
|
80
|
-
name: string;
|
|
81
|
-
detail: string;
|
|
82
|
-
};
|
|
83
|
-
number2: {
|
|
67
|
+
number: {
|
|
84
68
|
name: string;
|
|
85
69
|
detail: string;
|
|
86
70
|
};
|
|
@@ -2489,6 +2489,10 @@ declare const _default: {
|
|
|
2489
2489
|
name: string;
|
|
2490
2490
|
detail: string;
|
|
2491
2491
|
};
|
|
2492
|
+
value3: {
|
|
2493
|
+
name: string;
|
|
2494
|
+
detail: string;
|
|
2495
|
+
};
|
|
2492
2496
|
};
|
|
2493
2497
|
};
|
|
2494
2498
|
MAP: {
|
|
@@ -6333,11 +6337,7 @@ declare const _default: {
|
|
|
6333
6337
|
url: string;
|
|
6334
6338
|
}[];
|
|
6335
6339
|
functionParameter: {
|
|
6336
|
-
|
|
6337
|
-
name: string;
|
|
6338
|
-
detail: string;
|
|
6339
|
-
};
|
|
6340
|
-
number2: {
|
|
6340
|
+
number: {
|
|
6341
6341
|
name: string;
|
|
6342
6342
|
detail: string;
|
|
6343
6343
|
};
|
|
@@ -6351,11 +6351,7 @@ declare const _default: {
|
|
|
6351
6351
|
url: string;
|
|
6352
6352
|
}[];
|
|
6353
6353
|
functionParameter: {
|
|
6354
|
-
|
|
6355
|
-
name: string;
|
|
6356
|
-
detail: string;
|
|
6357
|
-
};
|
|
6358
|
-
number2: {
|
|
6354
|
+
number: {
|
|
6359
6355
|
name: string;
|
|
6360
6356
|
detail: string;
|
|
6361
6357
|
};
|
|
@@ -6369,11 +6365,7 @@ declare const _default: {
|
|
|
6369
6365
|
url: string;
|
|
6370
6366
|
}[];
|
|
6371
6367
|
functionParameter: {
|
|
6372
|
-
|
|
6373
|
-
name: string;
|
|
6374
|
-
detail: string;
|
|
6375
|
-
};
|
|
6376
|
-
number2: {
|
|
6368
|
+
number: {
|
|
6377
6369
|
name: string;
|
|
6378
6370
|
detail: string;
|
|
6379
6371
|
};
|
|
@@ -6387,11 +6379,7 @@ declare const _default: {
|
|
|
6387
6379
|
url: string;
|
|
6388
6380
|
}[];
|
|
6389
6381
|
functionParameter: {
|
|
6390
|
-
|
|
6391
|
-
name: string;
|
|
6392
|
-
detail: string;
|
|
6393
|
-
};
|
|
6394
|
-
number2: {
|
|
6382
|
+
number: {
|
|
6395
6383
|
name: string;
|
|
6396
6384
|
detail: string;
|
|
6397
6385
|
};
|
|
@@ -38,6 +38,12 @@ export interface IDescriptionService {
|
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
40
|
getSearchListByName(searchText: string): ISearchItem[];
|
|
41
|
+
/**
|
|
42
|
+
* get search list by name, from first letter
|
|
43
|
+
* @param searchText
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
getSearchListByNameFirstLetter(searchText: string): ISearchItem[];
|
|
41
47
|
/**
|
|
42
48
|
* get search list by type, if type is -1, return all
|
|
43
49
|
* @param type
|
|
@@ -56,6 +62,7 @@ export declare class DescriptionService implements IDescriptionService, IDisposa
|
|
|
56
62
|
hasFunction(searchText: string): boolean;
|
|
57
63
|
getFunctionInfo(searchText: string): IFunctionInfo | undefined;
|
|
58
64
|
getSearchListByName(searchText: string): ISearchItem[];
|
|
65
|
+
getSearchListByNameFirstLetter(searchText: string): ISearchItem[];
|
|
59
66
|
getSearchListByType(type: number): ISearchItem[];
|
|
60
67
|
private _initialize;
|
|
61
68
|
private _registerDescription;
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
16
|
+
import { type IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
17
|
export declare const FUNCTION_LIST_ARRAY: IFunctionInfo[];
|