@univerjs/sheets-ui 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/lib/cjs/index.js +10 -10
- package/lib/es/index.js +6396 -5578
- package/lib/index.css +1 -1
- package/lib/types/basics/editor/get-editor-object.d.ts +3 -17
- 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/commands/operations/sidebar-defined-name.operation.d.ts +6 -0
- package/lib/types/common/utils.d.ts +12 -20
- 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/cell-alert.controller.d.ts +8 -0
- package/lib/types/controllers/cell-custom-render.controller.d.ts +12 -0
- 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/hover.controller.d.ts +12 -0
- 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 +8 -20
- package/lib/types/controllers/selection.controller.d.ts +10 -22
- 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 +7 -2
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/locale/zh-CN.d.ts +27 -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 +8 -22
- package/lib/types/services/cell-alert-manager.service.d.ts +30 -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 -26
- 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 +3 -17
- 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 +16 -30
- package/lib/types/services/format-painter/format-painter.service.d.ts +5 -20
- package/lib/types/services/hover-manager.service.d.ts +26 -0
- 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/cell-alert/CellAlertPopup.d.ts +3 -0
- package/lib/types/views/cell-alert/index.d.ts +18 -0
- 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/defined-name/DefinedName.d.ts +3 -0
- package/lib/types/views/defined-name/DefinedNameContainer.d.ts +3 -0
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +12 -0
- package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +5 -0
- package/lib/types/views/defined-name/component-name.d.ts +17 -0
- 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 -16
- 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 +11 -11
- package/package.json +23 -22
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IRange, IStyleData } from '@univerjs/core';
|
|
17
|
-
import { Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
18
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
19
|
-
import type { Observable } from 'rxjs';
|
|
20
1
|
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
4
|
+
import { IRange, IStyleData, Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
5
|
+
|
|
21
6
|
export interface IFormatPainterService {
|
|
22
7
|
status$: Observable<FormatPainterStatus>;
|
|
23
8
|
setStatus(status: FormatPainterStatus): void;
|
|
@@ -33,7 +18,7 @@ export declare enum FormatPainterStatus {
|
|
|
33
18
|
ONCE = 1,
|
|
34
19
|
INFINITE = 2
|
|
35
20
|
}
|
|
36
|
-
export declare const IFormatPainterService: import(
|
|
21
|
+
export declare const IFormatPainterService: import('@wendellhu/redi').IdentifierDecorator<IFormatPainterService>;
|
|
37
22
|
export declare class FormatPainterService extends Disposable implements IFormatPainterService {
|
|
38
23
|
private readonly _selectionManagerService;
|
|
39
24
|
private readonly _univerInstanceService;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
2
|
+
import { ScrollManagerService } from './scroll-manager.service';
|
|
3
|
+
import { ISelectionRenderService } from '..';
|
|
4
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
|
+
import { ISheetLocation } from '@univerjs/sheets';
|
|
6
|
+
import { IPosition, Nullable, IUniverInstanceService } from '@univerjs/core';
|
|
7
|
+
|
|
8
|
+
export interface IHoverCellPosition {
|
|
9
|
+
position: IPosition;
|
|
10
|
+
location: ISheetLocation;
|
|
11
|
+
}
|
|
12
|
+
export declare class HoverManagerService {
|
|
13
|
+
private readonly _univerInstanceService;
|
|
14
|
+
private readonly _scrollManagerService;
|
|
15
|
+
private readonly _sheetSkeletonManagerService;
|
|
16
|
+
private readonly _renderManagerService;
|
|
17
|
+
private readonly _selectionRenderService;
|
|
18
|
+
private _currentCell$;
|
|
19
|
+
currentCell$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
20
|
+
private _lastPosition;
|
|
21
|
+
constructor(_univerInstanceService: IUniverInstanceService, _scrollManagerService: ScrollManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService);
|
|
22
|
+
private _calcActiveCell;
|
|
23
|
+
onMouseMove(offsetX: number, offsetY: number): void;
|
|
24
|
+
onScrollStart(): void;
|
|
25
|
+
onScrollEnd(): void;
|
|
26
|
+
}
|
|
@@ -1,25 +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 type { ISelectionWithStyle } from '@univerjs/sheets';
|
|
19
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
20
|
-
import { ISelectionRenderService } from '../selection/selection-render.service';
|
|
21
|
-
import { SelectionShape } from '../selection/selection-shape';
|
|
22
1
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
2
|
+
import { SelectionShape } from '../selection/selection-shape';
|
|
3
|
+
import { ISelectionRenderService } from '../selection/selection-render.service';
|
|
4
|
+
import { ISelectionWithStyle, SelectionManagerService } from '@univerjs/sheets';
|
|
5
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
+
import { Disposable, ICommandService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
7
|
+
|
|
23
8
|
export interface IMarkSelectionService {
|
|
24
9
|
addShape(selection: ISelectionWithStyle, exits?: string[], zIndex?: number): string | null;
|
|
25
10
|
removeShape(id: string): void;
|
|
@@ -35,7 +20,7 @@ interface IMarkSelectionInfo {
|
|
|
35
20
|
control: SelectionShape | null;
|
|
36
21
|
exits: string[];
|
|
37
22
|
}
|
|
38
|
-
export declare const IMarkSelectionService: import(
|
|
23
|
+
export declare const IMarkSelectionService: import('@wendellhu/redi').IdentifierDecorator<IMarkSelectionService>;
|
|
39
24
|
export declare class MarkSelectionService extends Disposable implements IMarkSelectionService {
|
|
40
25
|
private readonly _currentService;
|
|
41
26
|
private readonly _renderManagerService;
|
|
@@ -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 { Nullable } from '@univerjs/core';
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IScrollManagerParam {
|
|
18
4
|
offsetX: number;
|
|
19
5
|
offsetY: number;
|
|
@@ -36,7 +22,7 @@ export type IScrollInfo = Map<string, Map<string, IScrollManagerParam>>;
|
|
|
36
22
|
export declare class ScrollManagerService {
|
|
37
23
|
private readonly _scrollInfo;
|
|
38
24
|
private readonly _scrollInfo$;
|
|
39
|
-
readonly scrollInfo$: import(
|
|
25
|
+
readonly scrollInfo$: import('rxjs').Observable<Nullable<IScrollManagerParam>>;
|
|
40
26
|
private _currentScroll;
|
|
41
27
|
dispose(): void;
|
|
42
28
|
setCurrentScroll(param: IScrollManagerSearchParam): void;
|
|
@@ -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,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 { IRangeWithCoord, ISelectionCellWithCoord, ISelectionWithCoord, Nullable } from '@univerjs/core';
|
|
17
|
-
import { RANGE_TYPE } from '@univerjs/core';
|
|
1
|
+
import { IRangeWithCoord, ISelectionCellWithCoord, ISelectionWithCoord, Nullable, RANGE_TYPE } from '@univerjs/core';
|
|
2
|
+
|
|
18
3
|
export declare class SelectionRenderModel implements IRangeWithCoord {
|
|
19
4
|
private _startColumn;
|
|
20
5
|
private _startRow;
|
|
@@ -1,28 +1,12 @@
|
|
|
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, IRangeWithCoord, ISelection, ISelectionCell, ISelectionCellWithCoord, Nullable } from '@univerjs/core';
|
|
17
|
-
import { RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
18
|
-
import type { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
|
|
19
|
-
import { ScrollTimerType } from '@univerjs/engine-render';
|
|
20
|
-
import type { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
|
|
21
|
-
import { IShortcutService } from '@univerjs/ui';
|
|
22
|
-
import { Injector } from '@wendellhu/redi';
|
|
23
|
-
import type { Observable } from 'rxjs';
|
|
24
|
-
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
25
1
|
import { SelectionShape } from './selection-shape';
|
|
2
|
+
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
6
|
+
import { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
|
|
7
|
+
import { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton, Viewport, ScrollTimerType } from '@univerjs/engine-render';
|
|
8
|
+
import { IRange, IRangeWithCoord, ISelection, ISelectionCell, ISelectionCellWithCoord, Nullable, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
9
|
+
|
|
26
10
|
export interface IControlFillConfig {
|
|
27
11
|
oldRange: IRange;
|
|
28
12
|
newRange: IRange;
|
|
@@ -195,4 +179,4 @@ export declare class SelectionRenderService implements ISelectionRenderService {
|
|
|
195
179
|
private _addCancelObserver;
|
|
196
180
|
private _getSelectedRangeWithMerge;
|
|
197
181
|
}
|
|
198
|
-
export declare const ISelectionRenderService: import(
|
|
182
|
+
export declare const ISelectionRenderService: import('@wendellhu/redi').IdentifierDecorator<SelectionRenderService>;
|
|
@@ -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 { IRangeWithCoord, ThemeService } from '@univerjs/core';
|
|
17
|
-
import type { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
18
|
-
import type { Injector } from '@wendellhu/redi';
|
|
19
|
-
import type { SelectionShape } from './selection-shape';
|
|
1
|
+
import { SelectionShape } from './selection-shape';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
4
|
+
import { IRangeWithCoord, ThemeService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface ISelectionShapeTargetSelection {
|
|
21
7
|
originControl: SelectionShape;
|
|
22
8
|
targetSelection: IRangeWithCoord;
|
|
@@ -1,25 +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 { IRangeWithCoord, ISelectionCellWithCoord, Nullable, ThemeService } from '@univerjs/core';
|
|
17
|
-
import { Disposable } from '@univerjs/core';
|
|
18
|
-
import type { Scene } from '@univerjs/engine-render';
|
|
19
|
-
import { Group, Rect } from '@univerjs/engine-render';
|
|
20
|
-
import type { ISelectionStyle, ISelectionWithCoordAndStyle } from '@univerjs/sheets';
|
|
21
|
-
import { Subject } from 'rxjs';
|
|
22
1
|
import { SelectionRenderModel } from './selection-render-model';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { ISelectionStyle, ISelectionWithCoordAndStyle } from '@univerjs/sheets';
|
|
4
|
+
import { Scene, Group, Rect } from '@univerjs/engine-render';
|
|
5
|
+
import { IRangeWithCoord, ISelectionCellWithCoord, Nullable, ThemeService, Disposable } from '@univerjs/core';
|
|
6
|
+
|
|
23
7
|
/**
|
|
24
8
|
* The main selection canvas component
|
|
25
9
|
*/
|
|
@@ -61,40 +45,40 @@ export declare class SelectionShape extends Disposable {
|
|
|
61
45
|
private _columnHeaderHeight;
|
|
62
46
|
private _widgetRects;
|
|
63
47
|
private _dispose$;
|
|
64
|
-
readonly dispose$: import(
|
|
48
|
+
readonly dispose$: import('rxjs').Observable<SelectionShape>;
|
|
65
49
|
readonly selectionMoving$: Subject<Nullable<IRangeWithCoord>>;
|
|
66
50
|
readonly selectionMoved$: Subject<Nullable<IRangeWithCoord>>;
|
|
67
51
|
readonly selectionScaling$: Subject<Nullable<IRangeWithCoord>>;
|
|
68
52
|
readonly selectionScaled$: Subject<Nullable<IRangeWithCoord>>;
|
|
69
53
|
readonly selectionFilling$: Subject<Nullable<IRangeWithCoord>>;
|
|
70
54
|
private readonly _selectionFilled$;
|
|
71
|
-
readonly selectionFilled$: import(
|
|
55
|
+
readonly selectionFilled$: import('rxjs').Observable<Nullable<IRangeWithCoord>>;
|
|
72
56
|
private _defaultStyle;
|
|
73
57
|
private _currentStyle;
|
|
74
58
|
private _isHelperSelection;
|
|
75
59
|
constructor(_scene: Scene, _zIndex: number, _isHeaderHighlight: boolean, _themeService: ThemeService);
|
|
76
60
|
get zIndex(): number;
|
|
77
|
-
get leftControl(): Rect<import(
|
|
78
|
-
get rightControl(): Rect<import(
|
|
79
|
-
get topControl(): Rect<import(
|
|
80
|
-
get bottomControl(): Rect<import(
|
|
81
|
-
get fillControl(): Rect<import(
|
|
82
|
-
get backgroundControlTop(): Rect<import(
|
|
83
|
-
get backgroundControlBottom(): Rect<import(
|
|
84
|
-
get backgroundControlMiddleLeft(): Rect<import(
|
|
85
|
-
get backgroundControlMiddleRight(): Rect<import(
|
|
61
|
+
get leftControl(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
62
|
+
get rightControl(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
63
|
+
get topControl(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
64
|
+
get bottomControl(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
65
|
+
get fillControl(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
66
|
+
get backgroundControlTop(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
67
|
+
get backgroundControlBottom(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
68
|
+
get backgroundControlMiddleLeft(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
69
|
+
get backgroundControlMiddleRight(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
86
70
|
get selectionShape(): Group;
|
|
87
71
|
get model(): SelectionRenderModel;
|
|
88
|
-
get topLeftWidget(): Rect<import(
|
|
89
|
-
get topCenterWidget(): Rect<import(
|
|
90
|
-
get topRightWidget(): Rect<import(
|
|
91
|
-
get middleLeftWidget(): Rect<import(
|
|
92
|
-
get middleRightWidget(): Rect<import(
|
|
93
|
-
get bottomLeftWidget(): Rect<import(
|
|
94
|
-
get bottomCenterWidget(): Rect<import(
|
|
95
|
-
get bottomRightWidget(): Rect<import(
|
|
72
|
+
get topLeftWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
73
|
+
get topCenterWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
74
|
+
get topRightWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
75
|
+
get middleLeftWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
76
|
+
get middleRightWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
77
|
+
get bottomLeftWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
78
|
+
get bottomCenterWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
79
|
+
get bottomRightWidget(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
96
80
|
get selectionStyle(): Nullable<ISelectionStyle>;
|
|
97
|
-
get dashRect(): Rect<import(
|
|
81
|
+
get dashRect(): Rect<import('@univerjs/engine-render').IRectProps>;
|
|
98
82
|
get isHelperSelection(): boolean;
|
|
99
83
|
setEvent(state: boolean): void;
|
|
100
84
|
enableHeaderHighlight(): void;
|
|
@@ -1,22 +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
|
-
*/
|
|
1
|
+
import { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
16
4
|
import { Disposable } from '@univerjs/core';
|
|
17
|
-
|
|
18
|
-
import type { Observable } from 'rxjs';
|
|
19
|
-
import type { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';
|
|
5
|
+
|
|
20
6
|
export interface ISheetBarMenuHandler {
|
|
21
7
|
handleSheetBarMenu(): void;
|
|
22
8
|
}
|
|
@@ -34,7 +20,7 @@ export interface ISheetBarService {
|
|
|
34
20
|
triggerSheetBarMenu(): void;
|
|
35
21
|
registerSheetBarMenuHandler(handler: ISheetBarMenuHandler): IDisposable;
|
|
36
22
|
}
|
|
37
|
-
export declare const ISheetBarService: import(
|
|
23
|
+
export declare const ISheetBarService: import('@wendellhu/redi').IdentifierDecorator<ISheetBarService>;
|
|
38
24
|
export declare class SheetBarService extends Disposable implements ISheetBarService {
|
|
39
25
|
readonly renameId$: Observable<string>;
|
|
40
26
|
readonly removeId$: Observable<string>;
|
|
@@ -1,23 +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 type { Nullable } from '@univerjs/core';
|
|
17
|
-
import { IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, Injector } from '@wendellhu/redi';
|
|
18
2
|
import { SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
19
|
-
import
|
|
20
|
-
|
|
3
|
+
import { Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
4
|
+
|
|
21
5
|
export interface ISheetSkeletonManagerParam {
|
|
22
6
|
unitId: string;
|
|
23
7
|
sheetId: string;
|
|
@@ -44,12 +28,12 @@ export declare class SheetSkeletonManagerService implements IDisposable {
|
|
|
44
28
|
private _currentSkeleton;
|
|
45
29
|
private _sheetSkeletonParam;
|
|
46
30
|
private readonly _currentSkeleton$;
|
|
47
|
-
readonly currentSkeleton$: import(
|
|
31
|
+
readonly currentSkeleton$: import('rxjs').Observable<Nullable<ISheetSkeletonManagerParam>>;
|
|
48
32
|
/**
|
|
49
33
|
* CurrentSkeletonBefore for pre-triggered logic during registration
|
|
50
34
|
*/
|
|
51
35
|
private readonly _currentSkeletonBefore$;
|
|
52
|
-
readonly currentSkeletonBefore$: import(
|
|
36
|
+
readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<ISheetSkeletonManagerParam>>;
|
|
53
37
|
constructor(_currentUniverService: IUniverInstanceService, _injector: Injector, _localeService: LocaleService);
|
|
54
38
|
dispose(): void;
|
|
55
39
|
getCurrent(): Nullable<ISheetSkeletonManagerParam>;
|
|
@@ -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 { ISelection, ITextRangeParam, Nullable } from '@univerjs/core';
|
|
17
|
-
import { IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
18
|
-
import type { KeyCode } from '@univerjs/ui';
|
|
19
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { KeyCode } from '@univerjs/ui';
|
|
3
|
+
import { ISelection, ITextRangeParam, Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export interface IShortcutExperienceSearch {
|
|
21
6
|
unitId: string;
|
|
22
7
|
sheetId: string;
|
|
@@ -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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IFunctionNames } from '@univerjs/engine-formula';
|
|
18
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
19
|
-
import type { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { IFunctionNames } from '@univerjs/engine-formula';
|
|
4
|
+
import { Nullable } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface IStatusBarService {
|
|
21
7
|
state$: Observable<Nullable<IStatusBarServiceStatus>>;
|
|
22
8
|
dispose(): void;
|
|
@@ -45,4 +31,4 @@ export declare class StatusBarService implements IStatusBarService, IDisposable
|
|
|
45
31
|
getFunctions(): Readonly<IStatusBarFunction[]>;
|
|
46
32
|
addFunctions(functions: IStatusBarFunction[]): void;
|
|
47
33
|
}
|
|
48
|
-
export declare const IStatusBarService: import(
|
|
34
|
+
export declare const IStatusBarService: import('@wendellhu/redi').IdentifierDecorator<StatusBarService>;
|
|
@@ -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
|
-
*/
|
|
16
|
-
import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
17
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare class UniverSheetsUIPlugin extends Plugin {
|
|
19
5
|
readonly _injector: Injector;
|
|
20
6
|
private readonly _localeService;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export { CellAlert } from './CellAlertPopup';
|
|
17
|
+
declare const CELL_ALERT_KEY = "univer.sheet.cell-alert";
|
|
18
|
+
export { CELL_ALERT_KEY, };
|
|
@@ -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 React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
interface ICountBarProps {
|
|
18
4
|
changeRatio?: (ratio: string) => void;
|
|
19
5
|
onChange?: (value: string) => void;
|
|
@@ -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 React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare function ZoomSlider(): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDefinedNamesServiceParam } from '@univerjs/engine-formula';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface IDefinedNameInputProps extends Omit<IDefinedNamesServiceParam, 'id'> {
|
|
5
|
+
inputId: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
state: boolean;
|
|
8
|
+
confirm?: (param: IDefinedNamesServiceParam) => void;
|
|
9
|
+
cancel?: () => void;
|
|
10
|
+
id?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DefinedNameInput: (props: IDefinedNameInputProps) => React.JSX.Element | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export declare const DEFINED_NAME_CONTAINER = "DefinedNameContainer";
|
|
17
|
+
export declare const SCOPE_WORKBOOK_VALUE = "AllDefaultWorkbook";
|