@univerjs/docs-ui 0.24.0 → 0.25.0-insiders.20260608-e4336f7
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/facade.js +23 -152
- package/lib/cjs/index.js +4431 -1743
- package/lib/cjs/locale/ar-SA.js +124 -0
- package/lib/cjs/locale/ca-ES.js +11 -10
- package/lib/cjs/locale/de-DE.js +124 -0
- package/lib/cjs/locale/en-US.js +11 -10
- package/lib/cjs/locale/es-ES.js +11 -10
- package/lib/cjs/locale/fa-IR.js +11 -10
- package/lib/cjs/locale/fr-FR.js +11 -10
- package/lib/cjs/locale/id-ID.js +124 -0
- package/lib/cjs/locale/it-IT.js +124 -0
- package/lib/cjs/locale/ja-JP.js +11 -10
- package/lib/cjs/locale/ko-KR.js +11 -10
- package/lib/cjs/locale/pl-PL.js +124 -0
- package/lib/cjs/locale/pt-BR.js +124 -0
- package/lib/cjs/locale/ru-RU.js +13 -12
- package/lib/cjs/locale/sk-SK.js +11 -10
- package/lib/cjs/locale/vi-VN.js +22 -21
- package/lib/cjs/locale/zh-CN.js +11 -10
- package/lib/cjs/locale/zh-HK.js +124 -0
- package/lib/cjs/locale/zh-TW.js +22 -21
- package/lib/es/facade.js +25 -147
- package/lib/es/index.js +4397 -1716
- package/lib/es/locale/ar-SA.js +123 -0
- package/lib/es/locale/ca-ES.js +11 -10
- package/lib/es/locale/de-DE.js +123 -0
- package/lib/es/locale/en-US.js +11 -10
- package/lib/es/locale/es-ES.js +11 -10
- package/lib/es/locale/fa-IR.js +11 -10
- package/lib/es/locale/fr-FR.js +11 -10
- package/lib/es/locale/id-ID.js +123 -0
- package/lib/es/locale/it-IT.js +123 -0
- package/lib/es/locale/ja-JP.js +11 -10
- package/lib/es/locale/ko-KR.js +11 -10
- package/lib/es/locale/pl-PL.js +123 -0
- package/lib/es/locale/pt-BR.js +123 -0
- package/lib/es/locale/ru-RU.js +13 -12
- package/lib/es/locale/sk-SK.js +11 -10
- package/lib/es/locale/vi-VN.js +22 -21
- package/lib/es/locale/zh-CN.js +11 -10
- package/lib/es/locale/zh-HK.js +123 -0
- package/lib/es/locale/zh-TW.js +22 -21
- package/lib/facade.js +25 -147
- package/lib/index.css +240 -26
- package/lib/index.js +4397 -1716
- package/lib/locale/ar-SA.js +123 -0
- package/lib/locale/ca-ES.js +11 -10
- package/lib/locale/de-DE.js +123 -0
- package/lib/locale/en-US.js +11 -10
- package/lib/locale/es-ES.js +11 -10
- package/lib/locale/fa-IR.js +11 -10
- package/lib/locale/fr-FR.js +11 -10
- package/lib/locale/id-ID.js +123 -0
- package/lib/locale/it-IT.js +123 -0
- package/lib/locale/ja-JP.js +11 -10
- package/lib/locale/ko-KR.js +11 -10
- package/lib/locale/pl-PL.js +123 -0
- package/lib/locale/pt-BR.js +123 -0
- package/lib/locale/ru-RU.js +13 -12
- package/lib/locale/sk-SK.js +11 -10
- package/lib/locale/vi-VN.js +22 -21
- package/lib/locale/zh-CN.js +11 -10
- package/lib/locale/zh-HK.js +123 -0
- package/lib/locale/zh-TW.js +22 -21
- package/lib/types/commands/commands/doc-block-move.command.d.ts +40 -0
- package/lib/types/commands/commands/doc-delete.command.d.ts +3 -2
- package/lib/types/commands/commands/doc-page-setup.command.d.ts +2 -0
- package/lib/types/commands/commands/inline-format.command.d.ts +2 -1
- package/lib/types/commands/commands/list.command.d.ts +1 -0
- package/lib/types/commands/util.d.ts +1 -2
- package/lib/types/components/float-toolbar/FloatToolbar.d.ts +1 -1
- package/lib/types/components/float-toolbar/FloatToolbar.stories.d.ts +1 -1
- package/lib/types/components/list-type-picker/Picker.d.ts +3 -3
- package/lib/types/components/paragraph-menu/index.d.ts +24 -2
- package/lib/types/components/side-menu/SideMenu.stories.d.ts +4 -4
- package/lib/types/controllers/render-controllers/doc-contextmenu.render-controller.d.ts +8 -2
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +8 -2
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -3
- package/lib/types/facade/f-document.d.ts +12 -26
- package/lib/types/facade/index.d.ts +2 -3
- package/lib/types/index.d.ts +7 -5
- package/lib/types/{types/delete-direction.d.ts → locale/ar-SA.d.ts} +3 -4
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +117 -110
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/menu/menu.d.ts +9 -1
- package/lib/types/menu/paragraph-menu.d.ts +21 -2
- package/lib/types/menu/schema.d.ts +1 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +5 -1
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +12 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +1 -0
- package/lib/types/services/clipboard/internal-fragment.d.ts +30 -0
- package/lib/types/services/doc-event-manager.service.d.ts +19 -1
- package/lib/types/services/doc-ime-state-change-interceptor.service.d.ts +23 -0
- package/lib/types/services/doc-paragraph-menu.service.d.ts +51 -3
- package/lib/types/services/doc-popup-manager.service.d.ts +2 -2
- package/lib/types/services/docs-render.service.d.ts +2 -1
- package/lib/types/services/editor/editor.d.ts +1 -0
- package/lib/types/services/selection/convert-text-range.d.ts +1 -0
- package/lib/types/services/selection/doc-selection-render.service.d.ts +4 -0
- package/lib/types/views/count-bar/CountBar.d.ts +1 -1
- package/lib/types/views/count-bar/ZoomSlider.d.ts +1 -1
- package/lib/types/views/doc-footer/DocFooter.d.ts +1 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +1 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +1 -1
- package/lib/types/views/page-settings/index.d.ts +5 -3
- package/lib/types/views/paragraph-setting/Setting.d.ts +1 -1
- package/lib/types/views/paragraph-setting/index.d.ts +1 -1
- package/lib/types/views/rich-text-editor/hooks/use-editor.d.ts +2 -1
- package/lib/types/views/rich-text-editor/index.d.ts +1 -1
- package/lib/types/views/side-menu/index.d.ts +1 -1
- package/lib/types/views/table/create/TableCreate.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +37 -10
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -176
- package/lib/types/commands/commands/core-editing.command.d.ts +0 -58
- package/lib/types/facade/f-univer.d.ts +0 -52
- package/lib/types/services/doc-state-change-manager.service.d.ts +0 -50
|
@@ -13,14 +13,48 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DocumentDataModel,
|
|
16
|
+
import type { DocumentDataModel, ICustomBlock, ICustomTable, IDocumentBlockRange } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import type { IMutiPageParagraphBound } from './doc-event-manager.service';
|
|
18
|
+
import type { IMutiPageParagraphBound, ITableBound } from './doc-event-manager.service';
|
|
19
19
|
import { Disposable } from '@univerjs/core';
|
|
20
20
|
import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs';
|
|
21
21
|
import { DocEventManagerService } from './doc-event-manager.service';
|
|
22
22
|
import { DocCanvasPopManagerService } from './doc-popup-manager.service';
|
|
23
23
|
import { DocFloatMenuService } from './float-menu.service';
|
|
24
|
+
export type DocBlockMenuTargetKind = 'paragraph' | 'blockRange' | 'table' | 'customBlock';
|
|
25
|
+
export interface IDocBlockMenuTarget {
|
|
26
|
+
kind: DocBlockMenuTargetKind;
|
|
27
|
+
key: string;
|
|
28
|
+
paragraph?: IMutiPageParagraphBound;
|
|
29
|
+
blockRange?: IDocumentBlockRange;
|
|
30
|
+
table?: ICustomTable;
|
|
31
|
+
customBlock?: ICustomBlock;
|
|
32
|
+
icon?: string;
|
|
33
|
+
cellRange?: {
|
|
34
|
+
startOffset: number;
|
|
35
|
+
endOffset: number;
|
|
36
|
+
};
|
|
37
|
+
menuRange: {
|
|
38
|
+
startOffset: number;
|
|
39
|
+
endOffset: number;
|
|
40
|
+
collapsed: boolean;
|
|
41
|
+
};
|
|
42
|
+
moveRange: {
|
|
43
|
+
startOffset: number;
|
|
44
|
+
endOffset: number;
|
|
45
|
+
};
|
|
46
|
+
emptyMode: boolean;
|
|
47
|
+
draggable: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface IDocBlockDropTarget {
|
|
50
|
+
targetOffset: number;
|
|
51
|
+
rect: {
|
|
52
|
+
left: number;
|
|
53
|
+
right: number;
|
|
54
|
+
top: number;
|
|
55
|
+
bottom: number;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
24
58
|
export declare class DocParagraphMenuService extends Disposable implements IRenderModule {
|
|
25
59
|
private _context;
|
|
26
60
|
private _docSelectionManagerService;
|
|
@@ -29,11 +63,25 @@ export declare class DocParagraphMenuService extends Disposable implements IRend
|
|
|
29
63
|
private _docSkeletonManagerService;
|
|
30
64
|
private _floatMenuService;
|
|
31
65
|
private _paragrahMenu;
|
|
32
|
-
|
|
66
|
+
private readonly _activeTarget$;
|
|
67
|
+
readonly activeTarget$: import("rxjs").Observable<IDocBlockMenuTarget | null>;
|
|
68
|
+
private _isBlockMenuDragging;
|
|
69
|
+
get activeParagraph(): IMutiPageParagraphBound | undefined;
|
|
70
|
+
get activeTarget(): IDocBlockMenuTarget | null;
|
|
71
|
+
setBlockMenuDragging(isDragging: boolean): void;
|
|
72
|
+
get isBlockMenuDragging(): boolean;
|
|
33
73
|
constructor(_context: IRenderContext<DocumentDataModel>, _docSelectionManagerService: DocSelectionManagerService, _docEventManagerService: DocEventManagerService, _docPopupManagerService: DocCanvasPopManagerService, _docSkeletonManagerService: DocSkeletonManagerService, _floatMenuService: DocFloatMenuService);
|
|
34
74
|
private _isCursorInActiveParagraph;
|
|
35
75
|
setParagraphMenuActive(active: boolean): void;
|
|
36
76
|
private _init;
|
|
37
77
|
showParagraphMenu(paragraph: IMutiPageParagraphBound): void;
|
|
78
|
+
showTableMenu(tableBound: ITableBound): void;
|
|
79
|
+
getDropTargetFromClientPoint(clientX: number, clientY: number, sourceRange: {
|
|
80
|
+
startOffset: number;
|
|
81
|
+
endOffset: number;
|
|
82
|
+
}): IDocBlockDropTarget | null;
|
|
38
83
|
hideParagraphMenu(force?: boolean): void;
|
|
84
|
+
private _buildParagraphMenuTarget;
|
|
85
|
+
private _getBodyBlockTargets;
|
|
86
|
+
private _getCellBlockTargets;
|
|
39
87
|
}
|
|
@@ -30,7 +30,7 @@ export declare function transformOffset2Bound(offsetX: number, offsetY: number,
|
|
|
30
30
|
};
|
|
31
31
|
export interface IDocCanvasPopup extends Omit<IPopup, 'anchorRect$' | 'children' | 'unitId' | 'subUnitId' | 'canvasElement'> {
|
|
32
32
|
mask?: boolean;
|
|
33
|
-
extraProps?: Record<string,
|
|
33
|
+
extraProps?: Record<string, unknown>;
|
|
34
34
|
multipleDirection?: IPopup['direction'];
|
|
35
35
|
}
|
|
36
36
|
export declare const calcDocRangePositions: (range: ITextRangeParam, currentRender: IRender) => IBoundRectNoAngle[] | undefined;
|
|
@@ -43,7 +43,7 @@ export declare class DocCanvasPopManagerService extends Disposable {
|
|
|
43
43
|
private _createRectPositionObserver;
|
|
44
44
|
private _createObjectPositionObserver;
|
|
45
45
|
private _createRangePositionObserver;
|
|
46
|
-
attachPopupToRect(rect: IBoundRectNoAngle, popup: IDocCanvasPopup, unitId: string): INeedCheckDisposable;
|
|
46
|
+
attachPopupToRect(rect: IBoundRectNoAngle | (() => IBoundRectNoAngle), popup: IDocCanvasPopup, unitId: string): INeedCheckDisposable;
|
|
47
47
|
/**
|
|
48
48
|
* attach a popup to canvas object
|
|
49
49
|
* @param targetObject target canvas object
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
16
|
+
import { DocumentFlavor, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
17
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
18
|
+
export declare function getDocsCanvasBackgroundColor(documentFlavor?: DocumentFlavor): "#fff" | "#fafafa";
|
|
18
19
|
export declare class DocsRenderService extends RxDisposable {
|
|
19
20
|
private readonly _instanceSrv;
|
|
20
21
|
private readonly _renderManagerService;
|
|
@@ -58,6 +58,7 @@ export declare class NodePositionConvertToCursor {
|
|
|
58
58
|
private _documentOffsetConfig;
|
|
59
59
|
private _docSkeleton;
|
|
60
60
|
private _liquid;
|
|
61
|
+
private _horizontalClip;
|
|
61
62
|
private _currentStartState;
|
|
62
63
|
private _currentEndState;
|
|
63
64
|
constructor(_documentOffsetConfig: IDocumentOffsetConfig, _docSkeleton: DocumentSkeleton);
|
|
@@ -141,6 +141,10 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
|
|
|
141
141
|
private _getCanvasOffset;
|
|
142
142
|
private _updateInputPosition;
|
|
143
143
|
private _moving;
|
|
144
|
+
private _hasVisibleSelectionRanges;
|
|
145
|
+
private _shouldSnapBackwardFocusToGlyphStart;
|
|
146
|
+
private _isBeforeNodePosition;
|
|
147
|
+
private _isFirstSelectableGlyphInDivide;
|
|
144
148
|
__attachScrollEvent(): void;
|
|
145
149
|
private _initInputEvents;
|
|
146
150
|
private _eventHandle;
|
|
@@ -17,5 +17,5 @@ interface ICountBarProps {
|
|
|
17
17
|
changeRatio?: (ratio: string) => void;
|
|
18
18
|
onChange?: (value: string) => void;
|
|
19
19
|
}
|
|
20
|
-
export declare function CountBar(_props: ICountBarProps): import("react
|
|
20
|
+
export declare function CountBar(_props: ICountBarProps): import("react").JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function DocFooter(): import("react
|
|
16
|
+
export declare function DocFooter(): import("react").JSX.Element | null;
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
export interface IDocHeaderFooterOptionsProps {
|
|
17
17
|
unitId: string;
|
|
18
18
|
}
|
|
19
|
-
export declare const DocHeaderFooterOptions: (props: IDocHeaderFooterOptionsProps) => import("react
|
|
19
|
+
export declare const DocHeaderFooterOptions: (props: IDocHeaderFooterOptionsProps) => import("react").JSX.Element;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare const DocHeaderFooterPanel: () => import("react
|
|
16
|
+
export declare const DocHeaderFooterPanel: () => import("react").JSX.Element;
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IConfirmChildrenProps } from '@univerjs/ui';
|
|
17
|
-
import { PageOrientType } from '@univerjs/core';
|
|
17
|
+
import { DocumentFlavor, ModernDocumentWidthMode, PageOrientType } from '@univerjs/core';
|
|
18
18
|
export interface IPageSettingsProps {
|
|
19
19
|
onClose: () => void;
|
|
20
20
|
onConfirm: (settings: IPageSettings) => void;
|
|
21
21
|
}
|
|
22
22
|
export interface IPageSettings {
|
|
23
|
+
mode: DocumentFlavor.TRADITIONAL | DocumentFlavor.MODERN;
|
|
24
|
+
modernWidth: ModernDocumentWidthMode;
|
|
23
25
|
paperSize: string;
|
|
24
26
|
orientation: PageOrientType;
|
|
25
27
|
margins: {
|
|
@@ -28,10 +30,10 @@ export interface IPageSettings {
|
|
|
28
30
|
left: number;
|
|
29
31
|
right: number;
|
|
30
32
|
};
|
|
31
|
-
|
|
33
|
+
pageSize: {
|
|
32
34
|
width: number;
|
|
33
35
|
height: number;
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
|
-
export declare function PageSettings(props: IConfirmChildrenProps): import("react
|
|
38
|
+
export declare function PageSettings(props: IConfirmChildrenProps): import("react").JSX.Element;
|
|
37
39
|
export declare const PAGE_SETTING_COMPONENT_ID = "docs.component.page-setting";
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function ParagraphSetting(): import("react
|
|
16
|
+
export declare function ParagraphSetting(): import("react").JSX.Element;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function ParagraphSettingIndex(): import("react
|
|
16
|
+
export declare function ParagraphSettingIndex(): import("react").JSX.Element;
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { IDocumentData, Nullable } from '@univerjs/core';
|
|
17
17
|
import type { RefObject } from 'react';
|
|
18
|
-
import type { Editor } from '../../../services/editor/editor';
|
|
18
|
+
import type { Editor, IEditorCanvasStyle } from '../../../services/editor/editor';
|
|
19
19
|
export interface IUseEditorProps {
|
|
20
20
|
editorId: string;
|
|
21
21
|
initialValue: Nullable<IDocumentData | string>;
|
|
22
22
|
container: RefObject<HTMLDivElement>;
|
|
23
23
|
autoFocus?: boolean;
|
|
24
24
|
isSingle?: boolean;
|
|
25
|
+
canvasStyle?: IEditorCanvasStyle;
|
|
25
26
|
}
|
|
26
27
|
export declare function useEditor(opts: IUseEditorProps): Editor | undefined;
|
|
@@ -37,4 +37,4 @@ export interface IRichTextEditorProps {
|
|
|
37
37
|
editorRef?: RefObject<Editor | null> | ((editor: Editor | null) => void);
|
|
38
38
|
noStyle?: boolean;
|
|
39
39
|
}
|
|
40
|
-
export declare const RichTextEditor: (props: IRichTextEditorProps) => import("react
|
|
40
|
+
export declare const RichTextEditor: (props: IRichTextEditorProps) => import("react").JSX.Element;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function DocSideMenu(): import("react
|
|
16
|
+
export declare function DocSideMenu(): import("react").JSX.Element | null;
|
|
@@ -20,5 +20,5 @@ interface IDocCreateTableConfirmProps {
|
|
|
20
20
|
colCount: number;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
export declare const DocCreateTableConfirm: ({ handleRowColChange, tableCreateParams, }: IDocCreateTableConfirmProps) => import("react
|
|
23
|
+
export declare const DocCreateTableConfirm: ({ handleRowColChange, tableCreateParams, }: IDocCreateTableConfirmProps) => import("react").JSX.Element;
|
|
24
24
|
export {};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(require("@univerjs/core"),require("@univerjs/docs-ui"),require("@univerjs/docs/facade"),require("@univerjs/engine-render")):typeof define==`function`&&define.amd?define([`@univerjs/core`,`@univerjs/docs-ui`,`@univerjs/docs/facade`,`@univerjs/engine-render`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverCore,e.UniverDocsUi,e.UniverDocsFacade,e.UniverEngineRender))})(this,function(e,t,n,r){var i=class extends n.FDocument{setSelection(n,i){var a;let o=(a=this._injector.get(r.IRenderManagerService).getRenderUnitById(this.getId()))==null?void 0:a.with(t.DocSelectionRenderService);o==null||o.removeAllRanges(),o==null||o.addDocRanges([{startOffset:n,endOffset:i,rangeType:e.DOC_RANGE_TYPE.TEXT}],!0)}};n.FDocument.extend(i)});
|