@univerjs/sheets-formula 0.1.3 → 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 +10 -8
- package/lib/cjs/index.js +6 -6
- package/lib/es/index.js +1794 -1815
- 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 +12 -15
- 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 +38 -0
- package/lib/types/controllers/utils/utils.d.ts +2 -16
- package/lib/types/formula-ui-plugin.d.ts +3 -18
- package/lib/types/locale/en-US.d.ts +6 -14
- package/lib/types/locale/function-list/logical/en-US.d.ts +2 -2
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +2 -2
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +2 -2
- package/lib/types/locale/function-list/text/en-US.d.ts +4 -12
- package/lib/types/locale/function-list/text/ja-JP.d.ts +4 -12
- package/lib/types/locale/function-list/text/zh-CN.d.ts +4 -12
- package/lib/types/locale/zh-CN.d.ts +6 -14
- 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 +25 -25
- package/lib/types/services/active-dirty-manager.service.d.ts +0 -48
|
@@ -1,18 +1,4 @@
|
|
|
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 { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const SPECIAL_PASTE_FORMULA = "special-paste-formula";
|
|
18
4
|
export declare const SheetOnlyPasteFormulaCommand: ICommand;
|
|
@@ -1,19 +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 { ICommand, IRange } from '@univerjs/core';
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IInsertFunction {
|
|
18
4
|
/**
|
|
19
5
|
* The range into which the function is to be inserted
|
|
@@ -1,30 +1,15 @@
|
|
|
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 { IWorkbookData } from '@univerjs/core';
|
|
17
|
-
import { Univer } from '@univerjs/core';
|
|
18
|
-
import type { Dependency } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency } from '@wendellhu/redi';
|
|
2
|
+
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
3
|
+
|
|
19
4
|
export declare function createCommandTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
|
|
20
5
|
univer: Univer;
|
|
21
6
|
get: {
|
|
22
|
-
<T>(id: import(
|
|
23
|
-
<T_1>(id: import(
|
|
24
|
-
<T_2>(id: import(
|
|
25
|
-
<T_3>(id: import(
|
|
26
|
-
<T_4>(id: import(
|
|
27
|
-
<T_5>(id: import(
|
|
7
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
|
|
8
|
+
<T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
|
|
9
|
+
<T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
|
|
10
|
+
<T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
|
|
11
|
+
<T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
|
|
12
|
+
<T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
|
|
28
13
|
};
|
|
29
|
-
sheet: import(
|
|
14
|
+
sheet: import('@univerjs/core').Workbook;
|
|
30
15
|
};
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { DeviceInputEventType } from '@univerjs/engine-render';
|
|
18
|
-
import type { KeyCode, MetaKeys } from '@univerjs/ui';
|
|
19
|
-
import type { META_KEY_CTRL_AND_SHIFT } from '../../common/prompt';
|
|
1
|
+
import { META_KEY_CTRL_AND_SHIFT } from '../../common/prompt';
|
|
2
|
+
import { KeyCode, MetaKeys } from '@univerjs/ui';
|
|
3
|
+
import { DeviceInputEventType } from '@univerjs/engine-render';
|
|
4
|
+
import { IOperation } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface ISelectEditorFormulaOperationParam {
|
|
21
7
|
eventType: DeviceInputEventType;
|
|
22
8
|
keycode?: KeyCode;
|
|
@@ -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 { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const HelpFunctionOperation: ICommand;
|
|
@@ -1,19 +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 { ICellData, ICommand, IRange, Nullable } from '@univerjs/core';
|
|
1
|
+
import { ICellData, ICommand, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IInsertFunctionOperationParams {
|
|
18
4
|
/**
|
|
19
5
|
* function name
|
|
@@ -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 { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const MoreFunctionsOperation: ICommand;
|
|
@@ -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 { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const ReferenceAbsoluteOperation: ICommand;
|
|
@@ -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 { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const SearchFunctionOperation: ICommand;
|
|
@@ -1,19 +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 ThemeService } from '@univerjs/core';
|
|
17
|
-
import type { ISelectionStyle } from '@univerjs/sheets';
|
|
1
|
+
import { ISelectionStyle } from '@univerjs/sheets';
|
|
2
|
+
import { ThemeService } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare const FORMULA_REF_SELECTION_PLUGIN_NAME = "formula_reference_selection_plugin_name";
|
|
19
5
|
export declare function getFormulaRefSelectionStyle(themeService: ThemeService, refColor: string, id: string): ISelectionStyle;
|
|
@@ -1,22 +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 { IWorkbookData, Workbook } from '@univerjs/core';
|
|
17
|
-
import { Univer } from '@univerjs/core';
|
|
18
|
-
import type { Dependency } from '@wendellhu/redi';
|
|
19
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
3
|
+
|
|
20
4
|
export interface ITestBed {
|
|
21
5
|
univer: Univer;
|
|
22
6
|
get: Injector['get'];
|
|
@@ -1,21 +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 { FormulaDataModel, IActiveDirtyManagerService } from '@univerjs/engine-formula';
|
|
16
2
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
|
|
18
|
-
import { IActiveDirtyManagerService } from '../services/active-dirty-manager.service';
|
|
3
|
+
|
|
19
4
|
export declare class ActiveDirtyController extends Disposable {
|
|
20
5
|
private readonly _activeDirtyManagerService;
|
|
21
6
|
private readonly _currentUniverService;
|
|
@@ -1,21 +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, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
18
1
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
2
|
+
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
3
|
+
import { Disposable, ICommandService, ThemeService } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class ArrayFormulaDisplayController extends Disposable {
|
|
20
6
|
private readonly _commandService;
|
|
21
7
|
private _sheetInterceptorService;
|
|
@@ -1,21 +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 } from '@univerjs/core';
|
|
1
|
+
import { AutoFillService } from '@univerjs/sheets-ui';
|
|
17
2
|
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
18
|
-
import
|
|
3
|
+
import { Disposable } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class FormulaAutoFillController extends Disposable {
|
|
20
6
|
private readonly _autoFillService;
|
|
21
7
|
private readonly _lexerTreeBuilder;
|
|
@@ -1,25 +1,8 @@
|
|
|
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 { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, Injector } from '@wendellhu/redi';
|
|
2
|
+
import { ICellDataWithSpanInfo, COPY_TYPE, ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
18
3
|
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
22
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
|
+
import { IMutationInfo, IRange, Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
5
|
+
|
|
23
6
|
export declare const DEFAULT_PASTE_FORMULA = "default-paste-formula";
|
|
24
7
|
export declare class FormulaClipboardController extends Disposable {
|
|
25
8
|
private readonly _currentUniverSheet;
|
|
@@ -1,23 +1,9 @@
|
|
|
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, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
18
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
19
|
-
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
20
1
|
import { IEditorBridgeService, ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
2
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
import { FormulaDataModel, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
5
|
+
import { Disposable, ICommandService, ThemeService } from '@univerjs/core';
|
|
6
|
+
|
|
21
7
|
export declare class FormulaEditorShowController extends Disposable {
|
|
22
8
|
private _editorBridgeService;
|
|
23
9
|
private readonly _formulaDataModel;
|
|
@@ -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 type { IDesktopUIController } from '@univerjs/ui';
|
|
18
|
-
import { ComponentManager, IMenuService, IShortcutService } from '@univerjs/ui';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IDesktopUIController, ComponentManager, IMenuService, IShortcutService } from '@univerjs/ui';
|
|
3
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export declare class FormulaUIController extends Disposable {
|
|
21
6
|
private readonly _injector;
|
|
22
7
|
private readonly _menuService;
|
|
@@ -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 { IMenuItem } from '@univerjs/ui';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IMenuItem } from '@univerjs/ui';
|
|
3
|
+
|
|
18
4
|
export declare function InsertFunctionMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
19
5
|
export declare function MoreFunctionsMenuItemFactory(): IMenuItem;
|
|
20
6
|
export declare function PasteFormulaMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
@@ -1,21 +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, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
18
1
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
2
|
+
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
3
|
+
import { Disposable, ICommandService, ThemeService } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class NumfmtFormulaDisplayController extends Disposable {
|
|
20
6
|
private readonly _commandService;
|
|
21
7
|
private _sheetInterceptorService;
|
|
@@ -1,28 +1,13 @@
|
|
|
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, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { DocViewModelManagerService, TextSelectionManagerService } from '@univerjs/docs';
|
|
18
|
-
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
19
|
-
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
20
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
21
|
-
import type { EditorBridgeService } from '@univerjs/sheets-ui';
|
|
22
|
-
import { ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
23
|
-
import { IContextMenuService, IEditorService } from '@univerjs/ui';
|
|
24
|
-
import { IDescriptionService } from '../services/description.service';
|
|
25
1
|
import { IFormulaPromptService } from '../services/prompt.service';
|
|
2
|
+
import { IDescriptionService } from '../services/description.service';
|
|
3
|
+
import { IContextMenuService, IEditorService } from '@univerjs/ui';
|
|
4
|
+
import { EditorBridgeService, ISelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
5
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
6
|
+
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
7
|
+
import { LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
8
|
+
import { DocViewModelManagerService, TextSelectionManagerService } from '@univerjs/docs';
|
|
9
|
+
import { Disposable, ICommandService, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
10
|
+
|
|
26
11
|
export declare class PromptController extends Disposable {
|
|
27
12
|
private readonly _commandService;
|
|
28
13
|
private readonly _contextService;
|
|
@@ -54,7 +39,7 @@ export declare class PromptController extends Disposable {
|
|
|
54
39
|
private _inputPanelState;
|
|
55
40
|
private _userCursorMove;
|
|
56
41
|
private _previousEditorUnitId;
|
|
57
|
-
private
|
|
42
|
+
private _existsSequenceNode;
|
|
58
43
|
constructor(_commandService: ICommandService, _contextService: IContextService, _textSelectionRenderManager: ITextSelectionRenderManager, _editorBridgeService: EditorBridgeService, _formulaPromptService: IFormulaPromptService, _lexerTreeBuilder: LexerTreeBuilder, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _selectionManagerService: SelectionManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _currentUniverService: IUniverInstanceService, _selectionRenderService: ISelectionRenderService, _descriptionService: IDescriptionService, _textSelectionManagerService: TextSelectionManagerService, _docViewModelManagerService: DocViewModelManagerService, _contextMenuService: IContextMenuService, _editorService: IEditorService);
|
|
59
44
|
dispose(): void;
|
|
60
45
|
private _resetTemp;
|
|
@@ -142,6 +127,16 @@ export declare class PromptController extends Disposable {
|
|
|
142
127
|
*/
|
|
143
128
|
private _updateEditorModel;
|
|
144
129
|
private _inertControlSelectionReplace;
|
|
130
|
+
/**
|
|
131
|
+
* pro/issues/450
|
|
132
|
+
* In range selection mode, certain measures are implemented to ensure that the selection behavior is processed correctly.
|
|
133
|
+
*/
|
|
134
|
+
private _focusIsOnlyRange;
|
|
135
|
+
/**
|
|
136
|
+
* pro/issues/450
|
|
137
|
+
* In range selection mode, certain measures are implemented to ensure that the selection behavior is processed correctly.
|
|
138
|
+
*/
|
|
139
|
+
private _resetSequenceNodes;
|
|
145
140
|
private _inertControlSelection;
|
|
146
141
|
private _updateRefSelectionStyle;
|
|
147
142
|
private _changeControlSelection;
|
|
@@ -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
|
}
|