@univerjs/sheets-formula 1.0.0 → 1.0.2
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
- package/lib/types/commands/commands/quick-sum.command.d.ts +0 -20
- package/lib/types/controllers/formula-calculation-session.controller.d.ts +0 -24
- package/lib/types/facade/f-univer.d.ts +0 -49
- package/lib/types/locale/function-list/array/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/array/en-US.d.ts +0 -58
- package/lib/types/locale/function-list/array/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/array/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/array/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/array/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/array/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/array/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/array/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/array/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/array/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/array/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/en-US.d.ts +0 -838
- package/lib/types/locale/function-list/compatibility/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/cube/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/cube/en-US.d.ts +0 -144
- package/lib/types/locale/function-list/cube/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/cube/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/cube/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/cube/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/cube/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/cube/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/cube/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/cube/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/cube/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/cube/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/database/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/database/en-US.d.ts +0 -282
- package/lib/types/locale/function-list/database/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/database/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/database/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/database/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/database/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/database/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/database/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/database/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/database/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/database/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/date/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/date/en-US.d.ts +0 -490
- package/lib/types/locale/function-list/date/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/date/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/date/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/date/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/date/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/date/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/date/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/date/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/date/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/en-US.d.ts +0 -940
- package/lib/types/locale/function-list/engineering/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/engineering/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/financial/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/financial/en-US.d.ts +0 -1608
- package/lib/types/locale/function-list/financial/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/financial/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/financial/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/financial/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/financial/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/financial/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/financial/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/financial/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/financial/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/information/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/information/en-US.d.ts +0 -386
- package/lib/types/locale/function-list/information/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/information/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/information/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/information/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/information/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/information/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/information/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/information/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/information/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/logical/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/logical/en-US.d.ts +0 -390
- package/lib/types/locale/function-list/logical/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/logical/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/logical/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/logical/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/logical/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/logical/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/logical/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/en-US.d.ts +0 -820
- package/lib/types/locale/function-list/lookup/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/lookup/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/math/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/math/en-US.d.ts +0 -1410
- package/lib/types/locale/function-list/math/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/math/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/math/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/math/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/math/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/math/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/math/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/math/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/math/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/en-US.d.ts +0 -2308
- package/lib/types/locale/function-list/statistical/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/statistical/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/text/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/text/en-US.d.ts +0 -988
- package/lib/types/locale/function-list/text/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/text/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/text/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/text/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/text/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/text/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/text/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/text/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/text/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/text/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/univer/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/univer/en-US.d.ts +0 -17
- package/lib/types/locale/function-list/univer/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/univer/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/univer/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/univer/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/univer/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/univer/ru-RU.d.ts +0 -17
- package/lib/types/locale/function-list/univer/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/univer/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/univer/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/univer/zh-TW.d.ts +0 -18
- package/lib/types/locale/function-list/web/ca-ES.d.ts +0 -18
- package/lib/types/locale/function-list/web/en-US.d.ts +0 -68
- package/lib/types/locale/function-list/web/es-ES.d.ts +0 -18
- package/lib/types/locale/function-list/web/fa-IR.d.ts +0 -18
- package/lib/types/locale/function-list/web/fr-FR.d.ts +0 -18
- package/lib/types/locale/function-list/web/ja-JP.d.ts +0 -18
- package/lib/types/locale/function-list/web/ko-KR.d.ts +0 -18
- package/lib/types/locale/function-list/web/ru-RU.d.ts +0 -18
- package/lib/types/locale/function-list/web/sk-SK.d.ts +0 -18
- package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -18
- package/lib/types/locale/function-list/web/zh-CN.d.ts +0 -18
- package/lib/types/locale/function-list/web/zh-TW.d.ts +0 -18
- package/lib/types/services/description.service.d.ts +0 -93
- package/lib/types/services/formula-calculation-session.service.d.ts +0 -48
- package/lib/types/services/function-list/array.d.ts +0 -17
- package/lib/types/services/function-list/compatibility.d.ts +0 -17
- package/lib/types/services/function-list/cube.d.ts +0 -17
- package/lib/types/services/function-list/database.d.ts +0 -17
- package/lib/types/services/function-list/date.d.ts +0 -17
- package/lib/types/services/function-list/engineering.d.ts +0 -17
- package/lib/types/services/function-list/financial.d.ts +0 -17
- package/lib/types/services/function-list/function-list.d.ts +0 -17
- package/lib/types/services/function-list/information.d.ts +0 -17
- package/lib/types/services/function-list/logical.d.ts +0 -17
- package/lib/types/services/function-list/lookup.d.ts +0 -17
- package/lib/types/services/function-list/math.d.ts +0 -17
- package/lib/types/services/function-list/statistical.d.ts +0 -17
- package/lib/types/services/function-list/text.d.ts +0 -17
- package/lib/types/services/function-list/univer.d.ts +0 -17
- package/lib/types/services/function-list/web.d.ts +0 -17
- package/lib/types/services/register-function.service.d.ts +0 -117
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type enUS from './en-US';
|
|
17
|
-
declare const locale: typeof enUS;
|
|
18
|
-
export default locale;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type enUS from './en-US';
|
|
17
|
-
declare const locale: typeof enUS;
|
|
18
|
-
export default locale;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type enUS from './en-US';
|
|
17
|
-
declare const locale: typeof enUS;
|
|
18
|
-
export default locale;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IDisposable } from '@univerjs/core';
|
|
17
|
-
import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
|
|
18
|
-
import { Disposable, IConfigService, LocaleService } from '@univerjs/core';
|
|
19
|
-
import { FunctionType, IFunctionService } from '@univerjs/engine-formula';
|
|
20
|
-
export interface ISearchItem {
|
|
21
|
-
name: string;
|
|
22
|
-
desc: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ISearchItemWithType extends ISearchItem {
|
|
25
|
-
functionType: FunctionType;
|
|
26
|
-
}
|
|
27
|
-
export interface IDescriptionService {
|
|
28
|
-
/**
|
|
29
|
-
* get all descriptions
|
|
30
|
-
*/
|
|
31
|
-
getDescriptions(): Map<IFunctionNames, IFunctionInfo>;
|
|
32
|
-
hasFunction(searchText: string): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* get function info by name
|
|
35
|
-
*/
|
|
36
|
-
getFunctionInfo(searchText: string): IFunctionInfo | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* get search list by name
|
|
39
|
-
*/
|
|
40
|
-
getSearchListByName(searchText: string): ISearchItem[];
|
|
41
|
-
/**
|
|
42
|
-
* get search list by name, from first letter
|
|
43
|
-
*/
|
|
44
|
-
getSearchListByNameFirstLetter(searchText: string): ISearchItemWithType[];
|
|
45
|
-
/**
|
|
46
|
-
* get search list by type, if type is -1, return all
|
|
47
|
-
*/
|
|
48
|
-
getSearchListByType(type: number): ISearchItem[];
|
|
49
|
-
/**
|
|
50
|
-
* register descriptions
|
|
51
|
-
*/
|
|
52
|
-
registerDescriptions(functionList: IFunctionInfo[]): IDisposable;
|
|
53
|
-
/**
|
|
54
|
-
* unregister descriptions
|
|
55
|
-
*/
|
|
56
|
-
unregisterDescriptions(functionNames: string[]): void;
|
|
57
|
-
/**
|
|
58
|
-
* check if has description
|
|
59
|
-
*/
|
|
60
|
-
hasDescription(name: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* check if has defined name description
|
|
63
|
-
*/
|
|
64
|
-
hasDefinedNameDescription(name: string): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* check if is formula defined name
|
|
67
|
-
*/
|
|
68
|
-
isFormulaDefinedName(name: string): boolean;
|
|
69
|
-
}
|
|
70
|
-
export declare const IDescriptionService: import("@wendellhu/redi").IdentifierDecorator<IDescriptionService>;
|
|
71
|
-
export declare class DescriptionService extends Disposable implements IDescriptionService {
|
|
72
|
-
private readonly _functionService;
|
|
73
|
-
private readonly _localeService;
|
|
74
|
-
private readonly _configService;
|
|
75
|
-
private _descriptions;
|
|
76
|
-
constructor(_functionService: IFunctionService, _localeService: LocaleService, _configService: IConfigService);
|
|
77
|
-
private _initialize;
|
|
78
|
-
private _initDescriptions;
|
|
79
|
-
private _initRegisterDescriptions;
|
|
80
|
-
private _registerDescriptions;
|
|
81
|
-
dispose(): void;
|
|
82
|
-
getDescriptions(): Map<IFunctionNames, IFunctionInfo>;
|
|
83
|
-
hasFunction(searchText: string): boolean;
|
|
84
|
-
getFunctionInfo(searchText: string): IFunctionInfo | undefined;
|
|
85
|
-
getSearchListByName(searchText: string): ISearchItem[];
|
|
86
|
-
getSearchListByNameFirstLetter(searchText: string): ISearchItemWithType[];
|
|
87
|
-
getSearchListByType(type: number): ISearchItem[];
|
|
88
|
-
registerDescriptions(descriptions: IFunctionInfo[]): IDisposable;
|
|
89
|
-
unregisterDescriptions(functionNames: string[]): void;
|
|
90
|
-
hasDescription(name: string): boolean;
|
|
91
|
-
hasDefinedNameDescription(name: string): boolean;
|
|
92
|
-
isFormulaDefinedName(name: string): boolean;
|
|
93
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { FormulaExecutedStateType, IExecutionInProgressParams, ISetFormulaCalculationResultMutation } from '@univerjs/engine-formula';
|
|
17
|
-
import { Disposable } from '@univerjs/core';
|
|
18
|
-
export interface IFormulaCalculationSessionState {
|
|
19
|
-
id: number;
|
|
20
|
-
initialized: boolean;
|
|
21
|
-
started: boolean;
|
|
22
|
-
progress: IExecutionInProgressParams | null;
|
|
23
|
-
stopped: boolean;
|
|
24
|
-
completed: boolean;
|
|
25
|
-
resultEmitted: boolean;
|
|
26
|
-
resultApplied: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare class FormulaCalculationSessionService extends Disposable {
|
|
29
|
-
private readonly _state$;
|
|
30
|
-
private readonly _resultApplied$;
|
|
31
|
-
private _currentResult;
|
|
32
|
-
private _hasEmittedCurrentResultApplied;
|
|
33
|
-
readonly state$: import("rxjs").Observable<IFormulaCalculationSessionState>;
|
|
34
|
-
readonly resultApplied$: import("rxjs").Observable<ISetFormulaCalculationResultMutation>;
|
|
35
|
-
get state(): IFormulaCalculationSessionState;
|
|
36
|
-
dispose(): void;
|
|
37
|
-
initialize(): void;
|
|
38
|
-
start(): void;
|
|
39
|
-
updateProgress(progress: IExecutionInProgressParams): void;
|
|
40
|
-
markStopped(): void;
|
|
41
|
-
markCompleted(state: FormulaExecutedStateType): void;
|
|
42
|
-
markResultEmitted(result: ISetFormulaCalculationResultMutation, hasResultToApply: boolean): void;
|
|
43
|
-
markResultApplied(): void;
|
|
44
|
-
waitForLatestApplied(timeout?: number, startWatchdog?: number): Promise<void>;
|
|
45
|
-
private _emit;
|
|
46
|
-
private _emitResultApplied;
|
|
47
|
-
private _isAppliedTerminalState;
|
|
48
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_ARRAY: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_CUBE: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_DATABASE: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_DATE: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_ENGINEERING: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_FINANCIAL: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_INFORMATION: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_LOGICAL: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_LOOKUP: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_MATH: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_STATISTICAL: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_TEXT: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_UNIVER: IFunctionInfo[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
|
-
export declare const FUNCTION_LIST_WEB: IFunctionInfo[];
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IDisposable, ILocales } from '@univerjs/core';
|
|
17
|
-
import type { FormulaFunctionResultValueType, FormulaFunctionValueType, IFunctionInfo } from '@univerjs/engine-formula';
|
|
18
|
-
import { Disposable, LocaleService } from '@univerjs/core';
|
|
19
|
-
import { IFunctionService } from '@univerjs/engine-formula';
|
|
20
|
-
import { IDescriptionService } from './description.service';
|
|
21
|
-
import { IRemoteRegisterFunctionService } from './remote/remote-register-function.service';
|
|
22
|
-
export type IRegisterFunction = (...arg: Array<FormulaFunctionValueType>) => FormulaFunctionResultValueType;
|
|
23
|
-
export type IRegisterAsyncFunction = (...arg: Array<FormulaFunctionValueType>) => Promise<FormulaFunctionResultValueType>;
|
|
24
|
-
export type IRegisterFunctionList = [[IRegisterFunction, string, string?]];
|
|
25
|
-
export interface IFormulaCustomFunctionService {
|
|
26
|
-
/**
|
|
27
|
-
* register descriptions
|
|
28
|
-
* @param functionList
|
|
29
|
-
*/
|
|
30
|
-
registerFunctions(functionList: IRegisterFunctionList): IDisposable;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Register function operation params
|
|
34
|
-
*/
|
|
35
|
-
export interface IRegisterFunctionParams {
|
|
36
|
-
/**
|
|
37
|
-
* i18n
|
|
38
|
-
*/
|
|
39
|
-
locales?: ILocales;
|
|
40
|
-
/**
|
|
41
|
-
* function description
|
|
42
|
-
*/
|
|
43
|
-
description?: IFunctionInfo[];
|
|
44
|
-
/**
|
|
45
|
-
* function calculation
|
|
46
|
-
*/
|
|
47
|
-
calculate: IRegisterFunctionList;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Unregister function operation params
|
|
51
|
-
*/
|
|
52
|
-
export interface IUnregisterFunctionParams {
|
|
53
|
-
/**
|
|
54
|
-
* Remove i18n
|
|
55
|
-
*/
|
|
56
|
-
localeKeys?: string[];
|
|
57
|
-
/**
|
|
58
|
-
* Function name
|
|
59
|
-
*/
|
|
60
|
-
functionNames: string[];
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* This
|
|
64
|
-
*/
|
|
65
|
-
export interface IRegisterFunctionService {
|
|
66
|
-
/**
|
|
67
|
-
* register descriptions
|
|
68
|
-
* @param params
|
|
69
|
-
*/
|
|
70
|
-
registerFunctions(params: IRegisterFunctionParams): IDisposable;
|
|
71
|
-
/**
|
|
72
|
-
* register a single function
|
|
73
|
-
* @param params
|
|
74
|
-
*/
|
|
75
|
-
registerFunction(params: ISingleFunctionRegisterParams): IDisposable;
|
|
76
|
-
/**
|
|
77
|
-
* register a single async function
|
|
78
|
-
* @param params
|
|
79
|
-
*/
|
|
80
|
-
registerAsyncFunction(params: ISingleFunctionRegisterParams): IDisposable;
|
|
81
|
-
}
|
|
82
|
-
export declare const IRegisterFunctionService: import("@wendellhu/redi").IdentifierDecorator<IRegisterFunctionService>;
|
|
83
|
-
export interface ISingleFunctionRegisterParams {
|
|
84
|
-
/**
|
|
85
|
-
* function name
|
|
86
|
-
*/
|
|
87
|
-
name: string;
|
|
88
|
-
/**
|
|
89
|
-
* function calculation
|
|
90
|
-
*/
|
|
91
|
-
func: IRegisterFunction | IRegisterAsyncFunction;
|
|
92
|
-
/**
|
|
93
|
-
* function description
|
|
94
|
-
*/
|
|
95
|
-
description: string | IFunctionInfo;
|
|
96
|
-
/**
|
|
97
|
-
* function locales
|
|
98
|
-
*/
|
|
99
|
-
locales?: ILocales;
|
|
100
|
-
/**
|
|
101
|
-
* function async
|
|
102
|
-
*/
|
|
103
|
-
async?: boolean;
|
|
104
|
-
}
|
|
105
|
-
export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
|
|
106
|
-
private readonly _localeService;
|
|
107
|
-
private readonly _descriptionService;
|
|
108
|
-
private readonly _functionService;
|
|
109
|
-
private readonly _remoteRegisterFunctionService?;
|
|
110
|
-
constructor(_localeService: LocaleService, _descriptionService: IDescriptionService, _functionService: IFunctionService, _remoteRegisterFunctionService?: IRemoteRegisterFunctionService | undefined);
|
|
111
|
-
registerFunction(params: ISingleFunctionRegisterParams): IDisposable;
|
|
112
|
-
registerAsyncFunction(params: ISingleFunctionRegisterParams): IDisposable;
|
|
113
|
-
registerFunctions(params: IRegisterFunctionParams): IDisposable;
|
|
114
|
-
private _registerSingleFunction;
|
|
115
|
-
private _registerLocalExecutors;
|
|
116
|
-
private _registerRemoteExecutors;
|
|
117
|
-
}
|