@univerjs/sheets-formula 0.1.4 → 0.1.6
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 +1940 -1758
- package/lib/index.css +1 -1
- 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 +5 -18
- package/lib/types/controllers/array-formula-display.controller.d.ts +3 -17
- package/lib/types/controllers/defined-name.controller.d.ts +27 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +3 -17
- package/lib/types/controllers/formula-clipboard.controller.d.ts +5 -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/index.d.ts +2 -0
- package/lib/types/services/description.service.d.ts +22 -19
- package/lib/types/services/formula-custom-function.service.d.ts +3 -17
- package/lib/types/services/formula-ref-range.service.d.ts +17 -0
- 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 +24 -24
- package/lib/types/services/active-dirty-manager.service.d.ts +0 -48
|
@@ -1,20 +1,5 @@
|
|
|
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 { IShortcutItem } from '@univerjs/ui';
|
|
17
|
-
import { KeyCode } from '@univerjs/ui';
|
|
1
|
+
import { IShortcutItem, KeyCode } from '@univerjs/ui';
|
|
2
|
+
|
|
18
3
|
export declare const PROMPT_SELECTION_KEYCODE_ARROW_LIST: KeyCode[];
|
|
19
4
|
export declare const PROMPT_SELECTION_KEYCODE_LIST: KeyCode[];
|
|
20
5
|
export declare function promptSelectionShortcutItem(): IShortcutItem<object>[];
|
|
@@ -1,22 +1,7 @@
|
|
|
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 { Disposable, ICommandService } from '@univerjs/core';
|
|
17
|
-
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
18
1
|
import { INumfmtService } from '@univerjs/sheets';
|
|
19
|
-
import { IActiveDirtyManagerService } from '
|
|
2
|
+
import { FormulaDataModel, IActiveDirtyManagerService } from '@univerjs/engine-formula';
|
|
3
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export declare class TriggerCalculationController extends Disposable {
|
|
21
6
|
private readonly _commandService;
|
|
22
7
|
private readonly _activeDirtyManagerService;
|
|
@@ -31,7 +16,7 @@ export declare class TriggerCalculationController extends Disposable {
|
|
|
31
16
|
private _commandExecutedListener;
|
|
32
17
|
private _generateDirty;
|
|
33
18
|
private _mergeDirtyNameMap;
|
|
34
|
-
private
|
|
19
|
+
private _mergeDirtyUnitFeatureOrOtherFormulaMap;
|
|
35
20
|
private _initialExecuteFormulaProcessListener;
|
|
36
21
|
private _initialExecuteFormula;
|
|
37
22
|
}
|
|
@@ -1,22 +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 { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
18
|
-
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
+
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
4
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
/**
|
|
21
7
|
* Update formula process
|
|
22
8
|
*
|
|
@@ -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
|
*/
|
package/lib/types/index.d.ts
CHANGED
|
@@ -21,3 +21,5 @@ export { FormulaCustomFunctionService, IFormulaCustomFunctionService, } from './
|
|
|
21
21
|
export type { IRegisterFunctionParams, IUnregisterFunctionParams } from './services/register-function.service';
|
|
22
22
|
export { RegisterFunctionService } from './services/register-function.service';
|
|
23
23
|
export { IRegisterFunctionService } from './services/register-function.service';
|
|
24
|
+
export { FormulaRefRangeService } from './services/formula-ref-range.service';
|
|
25
|
+
export { SPECIAL_PASTE_FORMULA } from './commands/commands/formula-clipboard.command';
|
|
@@ -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;
|
|
@@ -60,8 +45,23 @@ export interface IDescriptionService {
|
|
|
60
45
|
* @param functionList
|
|
61
46
|
*/
|
|
62
47
|
unregisterDescriptions(functionNames: string[]): void;
|
|
48
|
+
/**
|
|
49
|
+
* check if has description
|
|
50
|
+
* @param name
|
|
51
|
+
*/
|
|
52
|
+
hasDescription(name: string): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* check if has defined name description
|
|
55
|
+
* @param name
|
|
56
|
+
*/
|
|
57
|
+
hasDefinedNameDescription(name: string): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* check if is formula defined name
|
|
60
|
+
* @param name
|
|
61
|
+
*/
|
|
62
|
+
isFormulaDefinedName(name: string): boolean;
|
|
63
63
|
}
|
|
64
|
-
export declare const IDescriptionService: import(
|
|
64
|
+
export declare const IDescriptionService: import('@wendellhu/redi').IdentifierDecorator<IDescriptionService>;
|
|
65
65
|
export declare class DescriptionService implements IDescriptionService, IDisposable {
|
|
66
66
|
private _description;
|
|
67
67
|
private readonly _functionService;
|
|
@@ -77,6 +77,9 @@ export declare class DescriptionService implements IDescriptionService, IDisposa
|
|
|
77
77
|
getSearchListByType(type: number): ISearchItem[];
|
|
78
78
|
registerDescriptions(description: IFunctionInfo[]): void;
|
|
79
79
|
unregisterDescriptions(functionNames: string[]): void;
|
|
80
|
+
hasDescription(name: string): boolean;
|
|
81
|
+
hasDefinedNameDescription(name: string): boolean;
|
|
82
|
+
isFormulaDefinedName(name: string): boolean;
|
|
80
83
|
private _initialize;
|
|
81
84
|
private _initDescription;
|
|
82
85
|
private _registerDescriptions;
|
|
@@ -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);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { RefRangeService } from '@univerjs/sheets';
|
|
3
|
+
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
4
|
+
import { IMutationInfo, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
6
|
+
export type FormulaChangeMap = Record<string, Record<string, Record<string, string>>>;
|
|
7
|
+
export type FormulaChangeCallback = (formulaString: string) => {
|
|
8
|
+
redos: IMutationInfo[];
|
|
9
|
+
undos: IMutationInfo[];
|
|
10
|
+
};
|
|
11
|
+
export declare class FormulaRefRangeService extends Disposable {
|
|
12
|
+
private readonly _refRangeService;
|
|
13
|
+
private readonly _lexerTreeBuilder;
|
|
14
|
+
private readonly _univerInstanceService;
|
|
15
|
+
constructor(_refRangeService: RefRangeService, _lexerTreeBuilder: LexerTreeBuilder, _univerInstanceService: IUniverInstanceService);
|
|
16
|
+
registerFormula(formula: string, callback: FormulaChangeCallback): IDisposable;
|
|
17
|
+
}
|
|
@@ -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[];
|