@univerjs-pro/boards-ui 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/types/commands/operations/board-chart-dialog.operation.d.ts +6 -0
- package/lib/types/commands/operations/board-container-contextmenu.operation.d.ts +1 -0
- package/lib/types/controllers/board-connector-floating-toolbar.render-controller.d.ts +3 -1
- package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +2 -0
- package/lib/types/controllers/board-element-selection.controller.d.ts +1 -0
- package/lib/types/controllers/board-history-shortcut.controller.d.ts +2 -6
- package/lib/types/controllers/board-pending-insert.render-controller.d.ts +5 -1
- package/lib/types/controllers/board-render.controller.d.ts +3 -1
- package/lib/types/controllers/board-shape-floating-toolbar.render-controller.d.ts +3 -1
- package/lib/types/index.d.ts +6 -0
- package/lib/types/menu/board-container-child-contextmenu.menu.d.ts +3 -1
- package/lib/types/menu/board-container-contextmenu.menu.d.ts +3 -1
- package/lib/types/menu/board-contextmenu.d.ts +4 -0
- package/lib/types/menu/board-element-contextmenu.menu.d.ts +41 -0
- package/lib/types/menu/board-element-contextmenu.schema.d.ts +2 -0
- package/lib/types/render-adapters/board-element-render-adapter.d.ts +8 -1
- package/lib/types/render-objects/board-document-text-render.util.d.ts +1 -0
- package/lib/types/render-objects/board-shape-object.d.ts +9 -0
- package/lib/types/services/board-clipboard.service.d.ts +3 -1
- package/lib/types/services/board-container-rename.service.d.ts +4 -1
- package/lib/types/services/board-element-edit.service.d.ts +10 -5
- package/lib/types/services/board-element-insert.service.d.ts +1 -0
- package/lib/types/services/board-embed-integration.service.d.ts +10 -0
- package/lib/types/services/board-interaction-surface.service.d.ts +16 -0
- package/lib/types/services/board-swimlane-lane-rename.service.d.ts +4 -1
- package/lib/types/utils/board-clipboard.util.d.ts +2 -2
- package/lib/types/utils/board-container-membership-update.util.d.ts +3 -3
- package/lib/types/utils/board-floating-toolbar-selection.util.d.ts +28 -0
- package/lib/types/utils/board-insert.util.d.ts +1 -0
- package/lib/types/utils/board-shape-editor.util.d.ts +1 -0
- package/lib/types/utils/board-shortcut-preconditions.util.d.ts +3 -2
- package/lib/types/views/BoardCanvasView.d.ts +2 -0
- package/lib/types/views/BoardShapeFloatingToolbar.d.ts +1 -0
- package/lib/types/views/BoardShapeTextEditorContainer.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- 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 -1
- package/lib/umd/locale/it-IT.js +1 -1
- 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 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- 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 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -18
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BoardConnectorRouting, IBoardConnectorStyle, IBoardElementData } from '@univerjs-pro/boards';
|
|
2
|
+
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
3
|
+
export type BoardFloatingToolbarOwner = 'common' | 'connector' | 'mind-map' | 'none' | 'shape' | 'table';
|
|
4
|
+
export interface IBoardFloatingToolbarSelection {
|
|
5
|
+
elements: IBoardElementData[];
|
|
6
|
+
owner: BoardFloatingToolbarOwner;
|
|
7
|
+
}
|
|
8
|
+
export interface IResolveBoardFloatingToolbarSelectionOptions {
|
|
9
|
+
context: {
|
|
10
|
+
unitId: string;
|
|
11
|
+
subUnitId: string;
|
|
12
|
+
} | null;
|
|
13
|
+
selectedIds: readonly string[];
|
|
14
|
+
getElementById: (unitId: string, subUnitId: string, elementId: string) => IBoardElementData | null | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Resolves one owner for the selection-level floating toolbar.
|
|
18
|
+
*
|
|
19
|
+
* Shape and connector toolbars support field-level batch updates. Other
|
|
20
|
+
* homogeneous multi-selections use the common toolbar until their commands are
|
|
21
|
+
* batch-safe, which prevents a type toolbar from silently editing only one item.
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveBoardFloatingToolbarSelection(options: IResolveBoardFloatingToolbarSelectionOptions): IBoardFloatingToolbarSelection;
|
|
24
|
+
export declare function resolveCommonBoardShapeData(elements: readonly IBoardElementData[]): IShapeData | undefined;
|
|
25
|
+
export declare function resolveChangedBoardShapeDataPatch(previous: IShapeData | undefined, next: IShapeData | undefined): IShapeData | undefined;
|
|
26
|
+
export declare function mergeBoardShapeDataPatch(current: IShapeData, patch: IShapeData): IShapeData;
|
|
27
|
+
export declare function resolveCommonBoardConnectorStyle(elements: readonly IBoardElementData[]): Partial<IBoardConnectorStyle>;
|
|
28
|
+
export declare function resolveCommonBoardConnectorRouting(elements: readonly IBoardElementData[]): BoardConnectorRouting | undefined;
|
|
@@ -11,6 +11,7 @@ export interface IBoardInsertRect {
|
|
|
11
11
|
height: number;
|
|
12
12
|
}
|
|
13
13
|
export declare function resolveBoardContainerDragInsertRect(start: IBoardInsertPoint, end: IBoardInsertPoint): IBoardInsertRect;
|
|
14
|
+
export declare function resolveBoardPendingInsertDragRect(pendingInsert: IBoardPendingInsert, start: IBoardInsertPoint, end: IBoardInsertPoint): IBoardInsertRect | null;
|
|
14
15
|
export declare function createBoardElementFromPendingInsert(options: {
|
|
15
16
|
pendingInsert: IBoardPendingInsert | null;
|
|
16
17
|
point: IBoardInsertPoint;
|
|
@@ -2,6 +2,7 @@ import type { IBoardElementData, IBoardPageElement, IBoardTextElement } from '@u
|
|
|
2
2
|
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
3
3
|
import type { IDocumentData } from '@univerjs/core';
|
|
4
4
|
export declare function isBoardShapeEditableElement(element: IBoardPageElement): boolean;
|
|
5
|
+
export declare function isBoardShapeTextEditableElement(element: IBoardPageElement): boolean;
|
|
5
6
|
export declare function isManagedBoardMindMapNode(elementData: IBoardElementData | undefined): boolean;
|
|
6
7
|
export declare function getBoardElementShapeData(element: IBoardPageElement): IShapeData | null;
|
|
7
8
|
export declare function createBoardTextShapeData(element: IBoardTextElement): IShapeData;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { IContextService } from '@univerjs/core';
|
|
1
|
+
import type { IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import type { IBoardElementStateService } from '../services/board-element-state.service';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function isBoardKeyboardOwner(instanceService: IUniverInstanceService, boardUnitId: string): boolean;
|
|
4
|
+
export declare function isBoardShortcutAvailable(contextService: IContextService, elementStateService: IBoardElementStateService, instanceService: IUniverInstanceService): boolean;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
+
import { IBoardEmbedRuntimeFocusCoordinator } from '../services/board-embed-integration.service';
|
|
1
2
|
export declare function BoardCanvasView(): import("react").JSX.Element;
|
|
3
|
+
export declare function shouldFocusBoardForPointerEvent(boardUnitId: string | undefined, target: EventTarget | null, event: Event, embedRuntimeFocusCoordinator?: IBoardEmbedRuntimeFocusCoordinator): boolean;
|
|
@@ -2,9 +2,12 @@ import type { IBoardElementData } from '@univerjs-pro/boards';
|
|
|
2
2
|
import type { ICustomShapeTextData, IShapeRect } from '@univerjs-pro/engine-shape';
|
|
3
3
|
import type { ITransformState, Nullable } from '@univerjs/core';
|
|
4
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
|
+
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
5
6
|
export declare const BoardShapeTextEditorContainer: import("react").MemoExoticComponent<(props?: {
|
|
6
7
|
positionRoot?: HTMLElement;
|
|
7
8
|
}) => import("react").JSX.Element>;
|
|
9
|
+
export declare function createBoardShapeTextEditingService(editingService: BoardTextEditingService, restoreCanvasFocus: (unitId: string) => void): Pick<BoardTextEditingService, 'editingParams$' | 'onSavingEditorData$' | 'setEditing' | 'completeEditing' | 'cancelEditing'>;
|
|
10
|
+
export declare function focusBoardCanvasAfterShapeTextEditing(renderManagerService: IRenderManagerService, unitId: string): void;
|
|
8
11
|
export declare function resolveBoardShapeTextEditorPositionOffset(canvasElement: Element | null | undefined, positionRoot?: Element): {
|
|
9
12
|
left: number;
|
|
10
13
|
top: number;
|