@univerjs/sheets-formula 0.1.4 → 0.1.5
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/README.md +1 -1
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +1205 -1215
- package/lib/types/commands/commands/formula-clipboard.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-function.command.d.ts +2 -16
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +10 -25
- package/lib/types/commands/operations/editor-formula.operation.d.ts +5 -19
- package/lib/types/commands/operations/help-function.operation.d.ts +2 -16
- package/lib/types/commands/operations/insert-function.operation.d.ts +2 -16
- package/lib/types/commands/operations/more-functions.operation.d.ts +2 -16
- package/lib/types/commands/operations/reference-absolute.operation.d.ts +2 -16
- package/lib/types/commands/operations/search-function.operation.d.ts +2 -16
- package/lib/types/common/selection.d.ts +3 -17
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +3 -19
- package/lib/types/controllers/active-dirty.controller.d.ts +2 -17
- package/lib/types/controllers/array-formula-display.controller.d.ts +3 -17
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +3 -17
- package/lib/types/controllers/formula-clipboard.controller.d.ts +4 -21
- package/lib/types/controllers/formula-editor-show.controller.d.ts +5 -19
- package/lib/types/controllers/formula-ui.controller.d.ts +3 -18
- package/lib/types/controllers/menu.d.ts +3 -17
- package/lib/types/controllers/numfmt-formula-display.controller.d.ts +3 -17
- package/lib/types/controllers/prompt.controller.d.ts +20 -25
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +2 -17
- package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -19
- package/lib/types/controllers/update-formula.controller.d.ts +4 -18
- package/lib/types/controllers/utils/offset-formula-data.d.ts +4 -19
- package/lib/types/controllers/utils/redo-undo-formula-data.d.ts +4 -18
- package/lib/types/controllers/utils/ref-range-formula.d.ts +3 -17
- package/lib/types/controllers/utils/utils.d.ts +2 -16
- package/lib/types/formula-ui-plugin.d.ts +3 -18
- package/lib/types/services/description.service.d.ts +4 -19
- package/lib/types/services/formula-custom-function.service.d.ts +3 -17
- package/lib/types/services/function-list/array.d.ts +2 -16
- package/lib/types/services/function-list/compatibility.d.ts +2 -16
- package/lib/types/services/function-list/cube.d.ts +2 -16
- package/lib/types/services/function-list/database.d.ts +2 -16
- package/lib/types/services/function-list/date.d.ts +2 -16
- package/lib/types/services/function-list/engineering.d.ts +2 -16
- package/lib/types/services/function-list/financial.d.ts +2 -16
- package/lib/types/services/function-list/function-list.d.ts +2 -16
- package/lib/types/services/function-list/information.d.ts +2 -16
- package/lib/types/services/function-list/logical.d.ts +2 -16
- package/lib/types/services/function-list/lookup.d.ts +2 -16
- package/lib/types/services/function-list/math.d.ts +2 -16
- package/lib/types/services/function-list/statistical.d.ts +2 -16
- package/lib/types/services/function-list/text.d.ts +2 -16
- package/lib/types/services/function-list/univer.d.ts +2 -16
- package/lib/types/services/function-list/web.d.ts +2 -16
- package/lib/types/services/prompt.service.d.ts +7 -21
- package/lib/types/services/register-function.service.d.ts +5 -22
- package/lib/types/services/utils.d.ts +3 -17
- package/lib/types/views/FormulaPromptContainer.d.ts +2 -16
- package/lib/types/views/more-functions/MoreFunctions.d.ts +2 -16
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +3 -17
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +2 -16
- package/lib/types/views/more-functions/input-params/InputParams.d.ts +3 -17
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +3 -17
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts +2 -16
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts +3 -17
- package/lib/umd/index.js +6 -6
- package/package.json +23 -23
- package/lib/types/services/active-dirty-manager.service.d.ts +0 -48
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { ICommandInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import { ObjectMatrix } from '@univerjs/core';
|
|
18
|
-
import type { IArrayFormulaRangeType } from '@univerjs/engine-formula';
|
|
19
|
-
import type { ISelectionWithStyle } from '@univerjs/sheets';
|
|
1
|
+
import { ISelectionWithStyle } from '@univerjs/sheets';
|
|
2
|
+
import { IArrayFormulaRangeType } from '@univerjs/engine-formula';
|
|
3
|
+
import { ICommandInfo, IObjectMatrixPrimitiveType, IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
interface IFormulaDataGenerics<T> {
|
|
21
6
|
[unitId: string]: Nullable<{
|
|
22
7
|
[sheetId: string]: IObjectMatrixPrimitiveType<T>;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { ICommandInfo } from '@univerjs/core';
|
|
17
|
-
import type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData } from '@univerjs/engine-formula';
|
|
18
|
-
import type { IMoveRangeMutationParams } from '@univerjs/sheets';
|
|
1
|
+
import { IMoveRangeMutationParams } from '@univerjs/sheets';
|
|
2
|
+
import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData } from '@univerjs/engine-formula';
|
|
3
|
+
import { ICommandInfo } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare function handleRedoUndoMoveRange(command: ICommandInfo<IMoveRangeMutationParams>, formulaData: IFormulaData, arrayFormulaRange: IArrayFormulaRangeType, arrayFormulaCellData: IArrayFormulaUnitCellType): void;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IMutationInfo, IRange } from '@univerjs/core';
|
|
17
|
-
import type { IFormulaData } from '@univerjs/engine-formula';
|
|
1
|
+
import { IFormulaData } from '@univerjs/engine-formula';
|
|
2
|
+
import { IMutationInfo, IRange } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare enum FormulaReferenceMoveType {
|
|
19
5
|
MoveRange = 0,// range
|
|
20
6
|
MoveRows = 1,// move rows
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IContextService } from '@univerjs/core';
|
|
1
|
+
import { IContextService } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function whenEditorStandalone(contextService: IContextService): boolean;
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
*/
|
|
1
|
+
import { Ctor, Injector } from '@wendellhu/redi';
|
|
2
|
+
import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
|
|
16
3
|
import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
17
|
-
|
|
18
|
-
import type { Ctor } from '@wendellhu/redi';
|
|
19
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
|
+
|
|
20
5
|
/**
|
|
21
6
|
* The configuration of the formula UI plugin.
|
|
22
7
|
*/
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
*/
|
|
1
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { IFunctionInfo, IFunctionNames, IFunctionService } from '@univerjs/engine-formula';
|
|
16
3
|
import { LocaleService } from '@univerjs/core';
|
|
17
|
-
|
|
18
|
-
import { IFunctionService } from '@univerjs/engine-formula';
|
|
19
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
4
|
+
|
|
20
5
|
export interface ISearchItem {
|
|
21
6
|
name: string;
|
|
22
7
|
desc: string;
|
|
@@ -61,7 +46,7 @@ export interface IDescriptionService {
|
|
|
61
46
|
*/
|
|
62
47
|
unregisterDescriptions(functionNames: string[]): void;
|
|
63
48
|
}
|
|
64
|
-
export declare const IDescriptionService: import(
|
|
49
|
+
export declare const IDescriptionService: import('@wendellhu/redi').IdentifierDecorator<IDescriptionService>;
|
|
65
50
|
export declare class DescriptionService implements IDescriptionService, IDisposable {
|
|
66
51
|
private _description;
|
|
67
52
|
private readonly _functionService;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
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
|
-
*/
|
|
1
|
+
import { PrimitiveValueType } from '@univerjs/engine-formula';
|
|
16
2
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
17
|
-
|
|
3
|
+
|
|
18
4
|
export type IRegisterFunction = (...arg: Array<PrimitiveValueType | PrimitiveValueType[][]>) => PrimitiveValueType | PrimitiveValueType[][];
|
|
19
5
|
export type IRegisterFunctionList = [[IRegisterFunction, string, string?]];
|
|
20
6
|
export interface IFormulaCustomFunctionService {
|
|
@@ -25,7 +11,7 @@ export interface IFormulaCustomFunctionService {
|
|
|
25
11
|
registerFunctions(functionList: IRegisterFunctionList): void;
|
|
26
12
|
unregisterFunctions(functionList: string[]): void;
|
|
27
13
|
}
|
|
28
|
-
export declare const IFormulaCustomFunctionService: import(
|
|
14
|
+
export declare const IFormulaCustomFunctionService: import('@wendellhu/redi').IdentifierDecorator<IFormulaCustomFunctionService>;
|
|
29
15
|
export declare class FormulaCustomFunctionService extends Disposable implements IFormulaCustomFunctionService {
|
|
30
16
|
private readonly _commandService;
|
|
31
17
|
constructor(_commandService: ICommandService);
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_ARRAY: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_COMPATIBILITY: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_CUBE: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_DATABASE: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_DATE: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_ENGINEERING: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_FINANCIAL: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_INFORMATION: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_LOGICAL: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_LOOKUP: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_MATH: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_STATISTICAL: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_TEXT: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_UNIVER: IFunctionInfo[];
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
|
|
17
3
|
export declare const FUNCTION_LIST_WEB: IFunctionInfo[];
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 { Direction } from '@univerjs/core';
|
|
17
|
-
import { type IFunctionInfo, type ISequenceNode } from '@univerjs/engine-formula';
|
|
18
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
19
|
-
import type { Observable } from 'rxjs';
|
|
20
|
-
import type { ISearchItem } from './description.service';
|
|
1
|
+
import { ISearchItem } from './description.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
4
|
+
import { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
|
|
5
|
+
import { Direction } from '@univerjs/core';
|
|
6
|
+
|
|
21
7
|
export interface ISearchFunctionOperationParams {
|
|
22
8
|
/**
|
|
23
9
|
* show SearchFunction Component or not
|
|
@@ -112,7 +98,7 @@ export interface IFormulaPromptService {
|
|
|
112
98
|
disableLockedSelectionInsert(): void;
|
|
113
99
|
isLockedSelectionInsert(): boolean;
|
|
114
100
|
}
|
|
115
|
-
export declare const IFormulaPromptService: import(
|
|
101
|
+
export declare const IFormulaPromptService: import('@wendellhu/redi').IdentifierDecorator<FormulaPromptService>;
|
|
116
102
|
export declare class FormulaPromptService implements IFormulaPromptService, IDisposable {
|
|
117
103
|
private readonly _search$;
|
|
118
104
|
private readonly _help$;
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
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 { ILocales } from '@univerjs/core';
|
|
17
|
-
import { Disposable, LocaleService } from '@univerjs/core';
|
|
18
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
19
|
-
import { IFunctionService } from '@univerjs/engine-formula';
|
|
1
|
+
import { IRegisterFunctionList, IFormulaCustomFunctionService } from './formula-custom-function.service';
|
|
20
2
|
import { IDescriptionService } from './description.service';
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
3
|
+
import { IFunctionInfo, IFunctionService } from '@univerjs/engine-formula';
|
|
4
|
+
import { ILocales, Disposable, LocaleService } from '@univerjs/core';
|
|
5
|
+
|
|
23
6
|
/**
|
|
24
7
|
* Register function operation params
|
|
25
8
|
*/
|
|
@@ -58,7 +41,7 @@ export interface IRegisterFunctionService {
|
|
|
58
41
|
registerFunctions(params: IRegisterFunctionParams): void;
|
|
59
42
|
unregisterFunctions(params: IUnregisterFunctionParams): void;
|
|
60
43
|
}
|
|
61
|
-
export declare const IRegisterFunctionService: import(
|
|
44
|
+
export declare const IRegisterFunctionService: import('@wendellhu/redi').IdentifierDecorator<IRegisterFunctionService>;
|
|
62
45
|
export declare class RegisterFunctionService extends Disposable implements IRegisterFunctionService {
|
|
63
46
|
private readonly _localeService;
|
|
64
47
|
private readonly _descriptionService;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { LocaleService } from '@univerjs/core';
|
|
17
|
-
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
1
|
+
import { IFunctionInfo } from '@univerjs/engine-formula';
|
|
2
|
+
import { LocaleService } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare function getFunctionTypeValues(enumObj: any, localeService: LocaleService): Array<{
|
|
19
5
|
label: string;
|
|
20
6
|
value: string;
|