@univerjs/sheets-ui 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 +2 -0
- package/lib/cjs/index.js +10 -10
- package/lib/es/index.js +4865 -4706
- package/lib/index.css +1 -1
- package/lib/types/basics/const/index.d.ts +0 -1
- package/lib/types/basics/editor/get-editor-object.d.ts +3 -17
- package/lib/types/basics/index.d.ts +0 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +3 -19
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +18 -32
- package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +2 -17
- package/lib/types/commands/commands/auto-fill.command.d.ts +2 -16
- package/lib/types/commands/commands/clipboard.command.d.ts +2 -16
- package/lib/types/commands/commands/delete-range-move-left-confirm.command .d.ts +2 -16
- package/lib/types/commands/commands/delete-range-move-up-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/hide-row-col-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/inline-format.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-range-move-down-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-range-move-right-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/refill.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-row-col-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/remove-sheet-confirm.command.d.ts +2 -16
- package/lib/types/commands/commands/set-format-painter.command.d.ts +2 -16
- package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
- package/lib/types/commands/commands/set-scroll.command.d.ts +2 -16
- package/lib/types/commands/commands/set-selection.command.d.ts +2 -16
- package/lib/types/commands/commands/set-zoom-ratio.command.d.ts +2 -16
- package/lib/types/commands/commands/unhide.command.d.ts +2 -16
- package/lib/types/commands/commands/utils/selection-utils.d.ts +2 -17
- package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +3 -17
- package/lib/types/commands/operations/cell-edit.operation.d.ts +3 -17
- package/lib/types/commands/operations/rename-sheet.operation.d.ts +2 -16
- package/lib/types/commands/operations/scroll.operation.d.ts +3 -17
- package/lib/types/commands/operations/set-format-painter.operation.d.ts +3 -17
- package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +3 -17
- package/lib/types/common/utils.d.ts +10 -18
- package/lib/types/components/border-panel/BorderPanel.d.ts +3 -17
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +2 -16
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +2 -16
- package/lib/types/components/border-panel/interface.d.ts +3 -17
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +3 -17
- package/lib/types/components/menu-item-input/interface.d.ts +2 -16
- package/lib/types/controllers/active-worksheet/active-worksheet.controller.d.ts +1 -15
- package/lib/types/controllers/auto-fill.controller.d.ts +6 -20
- package/lib/types/controllers/auto-height.controller.d.ts +4 -18
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +6 -20
- package/lib/types/controllers/clipboard/utils.d.ts +4 -19
- package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +5 -19
- package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +3 -19
- package/lib/types/controllers/editor/editing.controller.d.ts +2 -16
- package/lib/types/controllers/editor/end-edit.controller.d.ts +7 -23
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +5 -19
- package/lib/types/controllers/editor/start-edit.controller.d.ts +6 -20
- package/lib/types/controllers/editor-bridge.controller.d.ts +7 -21
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts +4 -18
- package/lib/types/controllers/freeze.controller.d.ts +7 -21
- package/lib/types/controllers/header-menu.controller.d.ts +5 -19
- package/lib/types/controllers/header-move.controller.d.ts +5 -19
- package/lib/types/controllers/header-resize.controller.d.ts +4 -18
- package/lib/types/controllers/header-unhide.controller.d.ts +3 -17
- package/lib/types/controllers/mark-selection.controller.d.ts +3 -17
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +2 -16
- package/lib/types/controllers/menu/border.menu.d.ts +4 -18
- package/lib/types/controllers/menu/clear.menu.d.ts +2 -16
- package/lib/types/controllers/menu/delete.menu.d.ts +2 -16
- package/lib/types/controllers/menu/insert.menu.d.ts +3 -17
- package/lib/types/controllers/menu/menu.d.ts +3 -17
- package/lib/types/controllers/menu/merge.menu.d.ts +3 -17
- package/lib/types/controllers/menu/sheet.menu.d.ts +3 -17
- package/lib/types/controllers/move-range.controller.d.ts +3 -17
- package/lib/types/controllers/scroll.controller.d.ts +5 -20
- package/lib/types/controllers/selection.controller.d.ts +6 -20
- package/lib/types/controllers/sheet-render.controller.d.ts +3 -17
- package/lib/types/controllers/sheet-ui.controller.d.ts +3 -18
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +2 -17
- package/lib/types/controllers/shortcuts/operation.shortcut.d.ts +2 -16
- package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +3 -17
- package/lib/types/controllers/shortcuts/style.shortcut.d.ts +2 -16
- package/lib/types/controllers/shortcuts/utils.d.ts +2 -16
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts +2 -16
- package/lib/types/controllers/shortcuts/view.shortcut.d.ts +2 -16
- package/lib/types/controllers/status-bar.controller.d.ts +4 -18
- package/lib/types/controllers/utils/component-tools.d.ts +3 -17
- package/lib/types/controllers/utils/selections-tools.d.ts +3 -0
- package/lib/types/controllers/zoom.controller.d.ts +6 -20
- package/lib/types/index.d.ts +2 -0
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/locale/zh-CN.d.ts +1 -1
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +6 -22
- package/lib/types/services/auto-fill/rules.d.ts +2 -16
- package/lib/types/services/auto-fill/tools.d.ts +7 -22
- package/lib/types/services/auto-fill/type.d.ts +2 -16
- package/lib/types/services/canvas-pop-manager.service.d.ts +43 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +10 -25
- package/lib/types/services/clipboard/clipboard.service.d.ts +10 -25
- package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -17
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +6 -19
- package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-lark.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/plugin-word.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/paste-plugins/type.d.ts +2 -16
- package/lib/types/services/clipboard/html-to-usm/utils.d.ts +2 -16
- package/lib/types/services/clipboard/type.d.ts +2 -16
- package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +3 -17
- package/lib/types/services/clipboard/utils.d.ts +6 -16
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +5 -19
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +5 -19
- package/lib/types/services/editor-bridge.service.d.ts +13 -30
- package/lib/types/services/format-painter/format-painter.service.d.ts +5 -20
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +7 -22
- package/lib/types/services/scroll-manager.service.d.ts +3 -17
- package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +3 -19
- package/lib/types/services/selection/selection-render-model.d.ts +2 -17
- package/lib/types/services/selection/selection-render.service.d.ts +9 -25
- package/lib/types/services/selection/selection-shape-extension.d.ts +5 -19
- package/lib/types/services/selection/selection-shape.d.ts +25 -41
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +5 -19
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +5 -21
- package/lib/types/services/shortcut-experience.service.d.ts +4 -19
- package/lib/types/services/status-bar.service.d.ts +6 -20
- package/lib/types/sheets-ui-plugin.d.ts +2 -16
- package/lib/types/views/count-bar/CountBar.d.ts +2 -16
- package/lib/types/views/count-bar/ZoomSlider.d.ts +2 -16
- package/lib/types/views/editor-container/EditorContainer.d.ts +2 -16
- package/lib/types/views/formula-bar/FormulaBar.d.ts +2 -16
- package/lib/types/views/header-menu-shape.d.ts +2 -17
- package/lib/types/views/header-resize-shape.d.ts +2 -17
- package/lib/types/views/header-unhide-shape.d.ts +2 -17
- package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts +2 -16
- package/lib/types/views/operate-container/OperateContainer.d.ts +2 -16
- package/lib/types/views/sheet-bar/SheetBar.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +3 -17
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +2 -16
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +1 -16
- package/lib/types/views/sheet-canvas-view.d.ts +5 -19
- package/lib/types/views/sheet-container/SheetContainer.d.ts +2 -22
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +3 -17
- package/lib/types/views/status-bar/StatusBar.d.ts +2 -16
- package/lib/umd/index.js +10 -10
- package/package.json +26 -24
- package/lib/types/basics/const/default-univer-sheet-config.d.ts +0 -141
- package/lib/types/basics/interfaces/cell.d.ts +0 -20
- package/lib/types/basics/interfaces/component-config/i-sheet-ui-plugin-config.d.ts +0 -27
- package/lib/types/basics/interfaces/component-config/index.d.ts +0 -17
- package/lib/types/basics/interfaces/component-config/sheet-container-config.d.ts +0 -34
- package/lib/types/basics/interfaces/component-config/toolbar-config.d.ts +0 -39
- package/lib/types/basics/interfaces/index.d.ts +0 -16
|
@@ -1,24 +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 type { IRange } from '@univerjs/core';
|
|
17
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
18
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
19
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
20
|
-
import { ScrollManagerService } from '../services/scroll-manager.service';
|
|
21
1
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
2
|
+
import { ScrollManagerService } from '../services/scroll-manager.service';
|
|
3
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
4
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
|
+
import { IRange, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
6
|
+
|
|
22
7
|
/**
|
|
23
8
|
* This controller handles scroll logic in sheet interaction.
|
|
24
9
|
*/
|
|
@@ -1,24 +1,10 @@
|
|
|
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, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
19
|
-
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
20
|
-
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
21
1
|
import { ScrollController } from './scroll.controller';
|
|
2
|
+
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
3
|
+
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
4
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
5
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
+
import { Disposable, ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
7
|
+
|
|
22
8
|
export declare class SelectionController extends Disposable {
|
|
23
9
|
private readonly _sheetSkeletonManagerService;
|
|
24
10
|
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, IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
17
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
1
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare class SheetRenderController extends Disposable {
|
|
20
6
|
private readonly _sheetSkeletonManagerService;
|
|
21
7
|
private readonly _contextService;
|
|
@@ -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, ILayoutService, IMenuService, IShortcutService } from '@univerjs/ui';
|
|
19
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IDesktopUIController, ComponentManager, ILayoutService, IMenuService, IShortcutService } from '@univerjs/ui';
|
|
3
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export declare class SheetUIController extends Disposable {
|
|
21
6
|
private readonly _injector;
|
|
22
7
|
private readonly _componentManager;
|
|
@@ -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 ARROW_SELECTION_KEYCODE_LIST: KeyCode[];
|
|
19
4
|
export declare const MOVE_SELECTION_KEYCODE_LIST: KeyCode[];
|
|
20
5
|
export declare function generateArrowSelectionShortCutItem(): IShortcutItem<object>[];
|
|
@@ -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 { IShortcutItem } from '@univerjs/ui';
|
|
1
|
+
import { IShortcutItem } from '@univerjs/ui';
|
|
2
|
+
|
|
17
3
|
export declare const SetRowHiddenShortcutItem: IShortcutItem;
|
|
18
4
|
export declare const SetColHiddenShortcutItem: IShortcutItem;
|
|
@@ -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 { IShortcutItem } from '@univerjs/ui';
|
|
17
|
-
import type { IExpandSelectionCommandParams, IMoveSelectionCommandParams, IMoveSelectionEnterAndTabCommandParams, ISelectAllCommandParams } from '../../commands/commands/set-selection.command';
|
|
1
|
+
import { IExpandSelectionCommandParams, IMoveSelectionCommandParams, IMoveSelectionEnterAndTabCommandParams, ISelectAllCommandParams } from '../../commands/commands/set-selection.command';
|
|
2
|
+
import { IShortcutItem } from '@univerjs/ui';
|
|
3
|
+
|
|
18
4
|
export declare const MoveSelectionDownShortcutItem: IShortcutItem<IMoveSelectionCommandParams>;
|
|
19
5
|
export declare const MoveSelectionUpShortcutItem: IShortcutItem<IMoveSelectionCommandParams>;
|
|
20
6
|
export declare const MoveSelectionLeftShortcutItem: IShortcutItem<IMoveSelectionCommandParams>;
|
|
@@ -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 { IShortcutItem } from '@univerjs/ui';
|
|
1
|
+
import { IShortcutItem } from '@univerjs/ui';
|
|
2
|
+
|
|
17
3
|
export declare const SetBoldShortcutItem: IShortcutItem;
|
|
18
4
|
export declare const SetItalicShortcutItem: IShortcutItem;
|
|
19
5
|
export declare const SetUnderlineShortcutItem: IShortcutItem;
|
|
@@ -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 { IContextService } from '@univerjs/core';
|
|
1
|
+
import { IContextService } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function whenSheetFocused(contextService: IContextService): boolean;
|
|
18
4
|
/**
|
|
19
5
|
* Requires the currently focused unit to be Workbook and the sheet editor is focused but not activated.
|
|
@@ -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 { IShortcutItem } from '@univerjs/ui';
|
|
1
|
+
import { IShortcutItem } from '@univerjs/ui';
|
|
2
|
+
|
|
17
3
|
export declare const ClearSelectionValueShortcutItem: IShortcutItem;
|
|
@@ -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 { IShortcutItem } from '@univerjs/ui';
|
|
1
|
+
import { IShortcutItem } from '@univerjs/ui';
|
|
2
|
+
|
|
17
3
|
export declare const ZoomInShortcutItem: IShortcutItem;
|
|
18
4
|
export declare const PreventDefaultZoomInShortcutItem: IShortcutItem;
|
|
19
5
|
export declare const ZoomOutShortcutItem: IShortcutItem;
|
|
@@ -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, IFunctionService } from '@univerjs/engine-formula';
|
|
18
|
-
import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';
|
|
19
1
|
import { IStatusBarService } from '../services/status-bar.service';
|
|
2
|
+
import { INumfmtService, SelectionManagerService } from '@univerjs/sheets';
|
|
3
|
+
import { FormulaDataModel, IFunctionService } from '@univerjs/engine-formula';
|
|
4
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class StatusBarController extends Disposable {
|
|
21
7
|
private readonly _univerInstanceService;
|
|
22
8
|
private readonly _selectionManagerService;
|
|
@@ -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 { IUniverInstanceService, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { Engine, IRenderManagerService, Rect, Scene, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetHeader, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
|
|
1
|
+
import { Engine, IRenderManagerService, Rect, Scene, Spreadsheet, SpreadsheetColumnHeader, SpreadsheetHeader, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
|
|
2
|
+
import { IUniverInstanceService, Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISheetObjectParam {
|
|
19
5
|
spreadsheet: Spreadsheet;
|
|
20
6
|
spreadsheetRowHeader: SpreadsheetHeader;
|
|
@@ -1,24 +1,10 @@
|
|
|
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 { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
19
|
-
import { ScrollManagerService } from '../services/scroll-manager.service';
|
|
20
|
-
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
21
1
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
2
|
+
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
3
|
+
import { ScrollManagerService } from '../services/scroll-manager.service';
|
|
4
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
5
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
7
|
+
|
|
22
8
|
export declare class ZoomController extends Disposable {
|
|
23
9
|
private readonly _sheetSkeletonManagerService;
|
|
24
10
|
private readonly _currentUniverService;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -54,3 +54,5 @@ export { SheetSkeletonManagerService } from './services/sheet-skeleton-manager.s
|
|
|
54
54
|
export { UniverSheetsUIPlugin } from './sheets-ui-plugin';
|
|
55
55
|
export { SheetCanvasView } from './views/sheet-canvas-view';
|
|
56
56
|
export { SHEET_VIEW_KEY } from './common/keys';
|
|
57
|
+
export { SheetCanvasPopManagerService } from './services/canvas-pop-manager.service';
|
|
58
|
+
export { mergeSetRangeValues } from './services/clipboard/utils';
|
|
@@ -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 zhCN from './zh-CN';
|
|
1
|
+
import { default as zhCN } from './zh-CN';
|
|
2
|
+
|
|
17
3
|
declare const locale: typeof zhCN;
|
|
18
4
|
export default locale;
|
|
@@ -1,25 +1,9 @@
|
|
|
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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import { Direction, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IAutoFillLocation, IAutoFillRule, ISheetAutoFillHook, APPLY_TYPE } from './type';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
18
4
|
import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
import type { IAutoFillLocation, IAutoFillRule, ISheetAutoFillHook } from './type';
|
|
22
|
-
import { APPLY_TYPE } from './type';
|
|
5
|
+
import { Nullable, Direction, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
6
|
+
|
|
23
7
|
export interface IAutoFillService {
|
|
24
8
|
applyType$: Observable<APPLY_TYPE>;
|
|
25
9
|
applyType: APPLY_TYPE;
|
|
@@ -80,4 +64,4 @@ export declare class AutoFillService extends Disposable implements IAutoFillServ
|
|
|
80
64
|
setDisableApplyType(type: APPLY_TYPE, disable: boolean): void;
|
|
81
65
|
setShowMenu(show: boolean): void;
|
|
82
66
|
}
|
|
83
|
-
export declare const IAutoFillService: import(
|
|
67
|
+
export declare const IAutoFillService: import('@wendellhu/redi').IdentifierDecorator<AutoFillService>;
|
|
@@ -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 { IAutoFillRule } from './type';
|
|
1
|
+
import { IAutoFillRule } from './type';
|
|
2
|
+
|
|
17
3
|
export declare const numberRule: IAutoFillRule;
|
|
18
4
|
export declare const otherRule: IAutoFillRule;
|
|
19
5
|
export declare const extendNumberRule: IAutoFillRule;
|
|
@@ -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 { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import { Direction } from '@univerjs/core';
|
|
1
|
+
import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, Direction } from '@univerjs/core';
|
|
2
|
+
|
|
18
3
|
export declare const chnNumChar: {
|
|
19
4
|
零: number;
|
|
20
5
|
一: number;
|
|
@@ -84,15 +69,15 @@ export declare function getLenS(indexArr: any[], rsd: number): number;
|
|
|
84
69
|
export declare function isEqualDiff(arr: number[]): boolean;
|
|
85
70
|
export declare function getDataIndex(csLen: number, asLen: number, indexArr: number[]): ICopyDataInTypeIndexInfo;
|
|
86
71
|
export declare function fillCopy(data: Array<Nullable<ICellData>>, len: number): {
|
|
87
|
-
p: import(
|
|
88
|
-
s: string | import(
|
|
89
|
-
v: import(
|
|
90
|
-
t: import(
|
|
72
|
+
p: import('@univerjs/core').IDocumentData | null;
|
|
73
|
+
s: string | import('@univerjs/core').IStyleData | null;
|
|
74
|
+
v: import('@univerjs/core').CellValue | null;
|
|
75
|
+
t: import('@univerjs/core').CellValueType | null;
|
|
91
76
|
f: string | null;
|
|
92
77
|
si: string | null;
|
|
93
78
|
}[];
|
|
94
79
|
export declare function fillCopyStyles(data: Array<Nullable<ICellData>>, len: number): {
|
|
95
|
-
s: Nullable<string | import(
|
|
80
|
+
s: Nullable<string | import('@univerjs/core').IStyleData>;
|
|
96
81
|
}[];
|
|
97
82
|
export declare function isEqualRatio(arr: number[]): boolean;
|
|
98
83
|
export declare function getXArr(len: number): number[];
|
|
@@ -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 { Direction, ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';
|
|
1
|
+
import { Direction, ICellData, IMutationInfo, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare enum AutoFillHookType {
|
|
18
4
|
Append = "APPEND",
|
|
19
5
|
Default = "DEFAULT",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { ICanvasPopupService } from '@univerjs/ui';
|
|
4
|
+
import { IRenderManagerService, BaseObject, Viewport } from '@univerjs/engine-render';
|
|
5
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
6
|
+
|
|
7
|
+
interface ICanvasPopup {
|
|
8
|
+
componentKey: string;
|
|
9
|
+
mask?: boolean;
|
|
10
|
+
onClickOutside?: (e: MouseEvent) => void;
|
|
11
|
+
direction?: 'vertical' | 'horizontal';
|
|
12
|
+
offset?: [number, number];
|
|
13
|
+
}
|
|
14
|
+
export declare class SheetCanvasPopManagerService extends Disposable {
|
|
15
|
+
private readonly _globalPopupManagerService;
|
|
16
|
+
private readonly _renderManagerService;
|
|
17
|
+
private readonly _univerInstanceService;
|
|
18
|
+
private readonly _sheetSkeletonManagerService;
|
|
19
|
+
private readonly _commandService;
|
|
20
|
+
constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService);
|
|
21
|
+
private _calcCellPosition;
|
|
22
|
+
private _createCellPositionObserver;
|
|
23
|
+
private _createObjectPositionObserver;
|
|
24
|
+
/**
|
|
25
|
+
* attach a popup to canvas object
|
|
26
|
+
* @param targetObject target canvas object
|
|
27
|
+
* @param popup popup item
|
|
28
|
+
* @returns disposable
|
|
29
|
+
*/
|
|
30
|
+
attachPopupToObject(targetObject: BaseObject, popup: ICanvasPopup): IDisposable;
|
|
31
|
+
/**
|
|
32
|
+
* attach a popup to given cell
|
|
33
|
+
* @param row cell row index
|
|
34
|
+
* @param col cell column index
|
|
35
|
+
* @param popup popup item
|
|
36
|
+
* @param viewport target viewport
|
|
37
|
+
* @returns disposable
|
|
38
|
+
*/
|
|
39
|
+
attachPopupToCell(row: number, col: number, popup: ICanvasPopup, viewport?: Viewport): {
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -1,21 +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 } from '@univerjs/core';
|
|
17
|
-
import { Univer } from '@univerjs/core';
|
|
18
|
-
import type { Dependency, IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
3
|
+
|
|
19
4
|
export declare class testMarkSelectionService {
|
|
20
5
|
addShape(): string | null;
|
|
21
6
|
removeShape(id: string): void;
|
|
@@ -34,12 +19,12 @@ export declare class testPlatformService {
|
|
|
34
19
|
export declare function clipboardTestBed(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
|
|
35
20
|
univer: Univer;
|
|
36
21
|
get: {
|
|
37
|
-
<T>(id: import(
|
|
38
|
-
<T_1>(id: import(
|
|
39
|
-
<T_2>(id: import(
|
|
40
|
-
<T_3>(id: import(
|
|
41
|
-
<T_4>(id: import(
|
|
42
|
-
<T_5>(id: import(
|
|
22
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
|
|
23
|
+
<T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
|
|
24
|
+
<T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
|
|
25
|
+
<T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
|
|
26
|
+
<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;
|
|
27
|
+
<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;
|
|
43
28
|
};
|
|
44
|
-
sheet: import(
|
|
29
|
+
sheet: import('@univerjs/core').Workbook;
|
|
45
30
|
};
|