@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,27 +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 { Disposable, ICommandService, ILogService, IUndoRedoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
17
|
-
import { SelectionManagerService } from '@univerjs/sheets';
|
|
18
|
-
import { IClipboardInterfaceService, INotificationService, IPlatformService } from '@univerjs/ui';
|
|
19
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
20
|
-
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
21
|
-
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
1
|
+
import { ISheetClipboardHook, COPY_TYPE } from './type';
|
|
22
2
|
import { CopyContentCache } from './copy-content-cache';
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
3
|
+
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
4
|
+
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
5
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
6
|
+
import { IClipboardInterfaceService, INotificationService, IPlatformService } from '@univerjs/ui';
|
|
7
|
+
import { SelectionManagerService } from '@univerjs/sheets';
|
|
8
|
+
import { Disposable, ICommandService, ILogService, IUndoRedoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
9
|
+
|
|
25
10
|
export declare const PREDEFINED_HOOK_NAME: {
|
|
26
11
|
DEFAULT_COPY: string;
|
|
27
12
|
DEFAULT_PASTE: string;
|
|
@@ -39,7 +24,7 @@ export interface ISheetClipboardService {
|
|
|
39
24
|
addClipboardHook(hook: ISheetClipboardHook): IDisposable;
|
|
40
25
|
getClipboardHooks(): ISheetClipboardHook[];
|
|
41
26
|
}
|
|
42
|
-
export declare const ISheetClipboardService: import(
|
|
27
|
+
export declare const ISheetClipboardService: import('@wendellhu/redi').IdentifierDecorator<ISheetClipboardService>;
|
|
43
28
|
export declare class SheetClipboardService extends Disposable implements ISheetClipboardService {
|
|
44
29
|
private readonly _logService;
|
|
45
30
|
private readonly _currentUniverService;
|
|
@@ -54,7 +39,7 @@ export declare class SheetClipboardService extends Disposable implements ISheetC
|
|
|
54
39
|
private readonly _localeService;
|
|
55
40
|
private _clipboardHooks;
|
|
56
41
|
private readonly _clipboardHooks$;
|
|
57
|
-
readonly clipboardHooks$: import(
|
|
42
|
+
readonly clipboardHooks$: import('rxjs').Observable<ISheetClipboardHook[]>;
|
|
58
43
|
private _htmlToUSM;
|
|
59
44
|
private _usmToHtml;
|
|
60
45
|
private _copyContentCache;
|
|
@@ -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 { IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
17
|
-
import type { COPY_TYPE, ICellDataWithSpanInfo } from './type';
|
|
1
|
+
import { COPY_TYPE, ICellDataWithSpanInfo } from './type';
|
|
2
|
+
import { IRange, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ICopyContentCacheData {
|
|
19
5
|
subUnitId: string;
|
|
20
6
|
unitId: 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 { ITextStyle, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { ISheetSkeletonManagerParam } from '../../sheet-skeleton-manager.service';
|
|
18
|
-
import type { IUniverSheetCopyDataModel } from '../type';
|
|
19
|
-
import type { IAfterProcessRule } from './paste-plugins/type';
|
|
1
|
+
import { IAfterProcessRule } from './paste-plugins/type';
|
|
2
|
+
import { IUniverSheetCopyDataModel } from '../type';
|
|
3
|
+
import { ISheetSkeletonManagerParam } from '../../sheet-skeleton-manager.service';
|
|
4
|
+
import { ITextStyle, Nullable } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface IStyleRule {
|
|
21
7
|
filter: string | string[] | ((node: HTMLElement) => boolean);
|
|
22
8
|
getStyle(node: HTMLElement): ITextStyle;
|
|
@@ -46,5 +32,6 @@ export declare class HtmlToUSMService {
|
|
|
46
32
|
private _parseTable;
|
|
47
33
|
private _generateDocumentDataModelSnapshot;
|
|
48
34
|
private process;
|
|
35
|
+
dispose(): void;
|
|
49
36
|
}
|
|
50
37
|
export {};
|
|
@@ -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 { ITextStyle } from '@univerjs/core';
|
|
1
|
+
import { ITextStyle } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function extractNodeStyle(node: HTMLElement): ITextStyle;
|
|
@@ -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 { IPastePlugin } from './type';
|
|
1
|
+
import { IPastePlugin } from './type';
|
|
2
|
+
|
|
17
3
|
declare const wordPastePlugin: IPastePlugin;
|
|
18
4
|
export default wordPastePlugin;
|
|
@@ -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 { IPastePlugin } from './type';
|
|
1
|
+
import { IPastePlugin } from './type';
|
|
2
|
+
|
|
17
3
|
declare const wordPastePlugin: IPastePlugin;
|
|
18
4
|
export default wordPastePlugin;
|
|
@@ -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 { IDocumentBody, ITextStyle } from '@univerjs/core';
|
|
1
|
+
import { IDocumentBody, ITextStyle } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IStyleRule {
|
|
18
4
|
filter: string | string[] | ((node: HTMLElement) => boolean);
|
|
19
5
|
getStyle(node: HTMLElement): ITextStyle;
|
|
@@ -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 { IParagraph, IParagraphStyle, Nullable } from '@univerjs/core';
|
|
1
|
+
import { IParagraph, IParagraphStyle, Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export default function parseToDom(rawHtml: string): Element | null;
|
|
18
4
|
export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
|
|
19
5
|
export declare function generateParagraphs(dataStream: string, prevParagraph?: IParagraph): IParagraph[];
|
|
@@ -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, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
|
|
1
|
+
import { ICellData, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare enum COPY_TYPE {
|
|
18
4
|
COPY = "COPY",
|
|
19
5
|
CUT = "CUT"
|
|
@@ -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 { ICellData, IRange, ObjectMatrix } from '@univerjs/core';
|
|
17
|
-
import type { ISheetClipboardHook } from '../type';
|
|
1
|
+
import { ISheetClipboardHook } from '../type';
|
|
2
|
+
import { ICellData, IRange, ObjectMatrix } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare class USMToHtmlService {
|
|
19
5
|
convert(matrix: ObjectMatrix<ICellData & {
|
|
20
6
|
rowSpan?: number | undefined;
|
|
@@ -1,19 +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 { IRange } from '@univerjs/core';
|
|
1
|
+
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
2
|
+
import { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
17
4
|
/**
|
|
18
5
|
*
|
|
19
6
|
*
|
|
@@ -27,3 +14,6 @@ export declare const getRepeatRange: (sourceRange: IRange, targetRang: IRange, i
|
|
|
27
14
|
repeatRelativeRange: IRange;
|
|
28
15
|
}[];
|
|
29
16
|
export declare function clipboardItemIsFromExcel(html: string): Promise<boolean>;
|
|
17
|
+
export declare function mergeCellValues(...cellValues: IObjectMatrixPrimitiveType<Nullable<ICellData>>[]): IObjectMatrixPrimitiveType<Nullable<ICellData>> | IObjectMatrixPrimitiveType<IObjectMatrixPrimitiveType<Nullable<ICellData>>>;
|
|
18
|
+
export declare function getRangeValuesMergeable(m1: IMutationInfo<ISetRangeValuesMutationParams>, m2: IMutationInfo<ISetRangeValuesMutationParams>): boolean;
|
|
19
|
+
export declare function mergeSetRangeValues(mutations: IMutationInfo[]): IMutationInfo<object>[];
|
|
@@ -1,21 +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 { IPosition, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
18
|
-
import type { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { IPosition, Nullable } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export interface ICellEditorManagerParam extends Partial<IPosition> {
|
|
20
6
|
show: boolean;
|
|
21
7
|
}
|
|
@@ -54,4 +40,4 @@ export declare class CellEditorManagerService implements ICellEditorManagerServi
|
|
|
54
40
|
setFocus(param?: boolean): void;
|
|
55
41
|
private _refresh;
|
|
56
42
|
}
|
|
57
|
-
export declare const ICellEditorManagerService: import(
|
|
43
|
+
export declare const ICellEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<CellEditorManagerService>;
|
|
@@ -1,21 +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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
18
|
-
import type { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { Nullable } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export interface IFormulaEditorManagerService {
|
|
20
6
|
position$: Observable<Nullable<DOMRect>>;
|
|
21
7
|
focus$: Observable<boolean>;
|
|
@@ -45,4 +31,4 @@ export declare class FormulaEditorManagerService implements IDisposable {
|
|
|
45
31
|
handleFoldBtnClick(params: boolean): void;
|
|
46
32
|
private _refresh;
|
|
47
33
|
}
|
|
48
|
-
export declare const IFormulaEditorManagerService: import(
|
|
34
|
+
export declare const IFormulaEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<FormulaEditorManagerService>;
|
|
@@ -1,29 +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 { ICellDataForSheetInterceptor, IPosition, ISelectionCell, Nullable } from '@univerjs/core';
|
|
17
|
-
import { Disposable, InterceptorManager, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
18
|
-
import type { Engine, IDocumentLayoutObject, Scene } from '@univerjs/engine-render';
|
|
19
|
-
import { DeviceInputEventType } from '@univerjs/engine-render';
|
|
20
|
-
import type { ISheetLocation } from '@univerjs/sheets';
|
|
21
|
-
import { IEditorService } from '@univerjs/ui';
|
|
22
|
-
import type { KeyCode } from '@univerjs/ui';
|
|
23
|
-
import type { IDisposable } from '@wendellhu/redi';
|
|
24
|
-
import type { Observable } from 'rxjs';
|
|
25
|
-
import { ISelectionRenderService } from './selection/selection-render.service';
|
|
26
1
|
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
2
|
+
import { ISelectionRenderService } from './selection/selection-render.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
5
|
+
import { IEditorService, KeyCode } from '@univerjs/ui';
|
|
6
|
+
import { ISheetLocation } from '@univerjs/sheets';
|
|
7
|
+
import { Engine, IDocumentLayoutObject, Scene, DeviceInputEventType } from '@univerjs/engine-render';
|
|
8
|
+
import { ICellDataForSheetInterceptor, IPosition, ISelectionCell, Nullable, Disposable, InterceptorManager, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
9
|
+
|
|
27
10
|
export interface IEditorBridgeServiceVisibleParam {
|
|
28
11
|
visible: boolean;
|
|
29
12
|
eventType: DeviceInputEventType;
|
|
@@ -52,8 +35,8 @@ export interface IEditorBridgeServiceParam {
|
|
|
52
35
|
editorUnitId: string;
|
|
53
36
|
isInArrayFormulaRange?: Nullable<boolean>;
|
|
54
37
|
}
|
|
55
|
-
declare const BEFORE_CELL_EDIT: import(
|
|
56
|
-
declare const AFTER_CELL_EDIT: import(
|
|
38
|
+
declare const BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
39
|
+
declare const AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
57
40
|
export interface IEditorBridgeService {
|
|
58
41
|
currentEditCellState$: Observable<Nullable<IEditorBridgeServiceParam>>;
|
|
59
42
|
visible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
@@ -94,8 +77,8 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
94
77
|
private readonly _afterVisible$;
|
|
95
78
|
readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
96
79
|
interceptor: InterceptorManager<{
|
|
97
|
-
BEFORE_CELL_EDIT: import(
|
|
98
|
-
AFTER_CELL_EDIT: import(
|
|
80
|
+
BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
81
|
+
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
99
82
|
}>;
|
|
100
83
|
constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionRenderService: ISelectionRenderService, _themeService: ThemeService, _currentUniverService: IUniverInstanceService, _editorService: IEditorService);
|
|
101
84
|
refreshEditCellState(): void;
|
|
@@ -131,5 +114,5 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
131
114
|
changeEditorDirty(dirtyStatus: boolean): void;
|
|
132
115
|
getEditorDirty(): boolean;
|
|
133
116
|
}
|
|
134
|
-
export declare const IEditorBridgeService: import(
|
|
117
|
+
export declare const IEditorBridgeService: import('@wendellhu/redi').IdentifierDecorator<EditorBridgeService>;
|
|
135
118
|
export {};
|
|
@@ -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;
|
|
@@ -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>;
|