@univerjs-pro/boards-table-ui 1.0.0-rc.0 → 1.0.1
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/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/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/types/controllers/board-table-floating-toolbar.render-controller.d.ts +2 -1
- package/lib/types/controllers/board-table-selection-render.controller.d.ts +76 -16
- package/lib/types/controllers/components.controller.d.ts +2 -2
- package/lib/types/controllers/mobile/board-table-selection-render.controller.d.ts +36 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +22 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +11 -0
- package/lib/types/menu/board-table-contextmenu.menu.d.ts +10 -10
- package/lib/types/mobile-plugin.d.ts +29 -0
- package/lib/types/plugin.d.ts +5 -2
- package/lib/types/render-adapters/board-table-render-adapter.const.d.ts +1 -0
- package/lib/types/render-adapters/board-table-render-adapter.d.ts +2 -3
- package/lib/types/render-adapters/mobile-board-table-render-adapter.d.ts +4 -0
- package/lib/types/render-objects/mobile/mobile-board-table-object.d.ts +8 -0
- package/lib/types/views/BoardTableFloatingToolbar.d.ts +22 -1
- package/lib/types/views/MobileBoardTableFloatingToolbar.d.ts +2 -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 +23 -21
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dependency } from '@univerjs/core';
|
|
2
2
|
import type { IUniverBoardsTableUIConfig } from './config/config';
|
|
3
|
-
import { ICommandService, IConfigService, Injector, LocaleService, Plugin, ThemeService, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
import { ICommandService, IConfigService, IImageIoService, Injector, LocaleService, Plugin, ThemeService, UniverInstanceType } from '@univerjs/core';
|
|
4
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
5
|
import { IMenuManagerService, IShortcutService } from '@univerjs/ui';
|
|
6
6
|
export declare const BOARDS_TABLE_UI_PLUGIN_NAME = "UNIVER_BOARDS_TABLE_UI_PLUGIN";
|
|
@@ -11,6 +11,7 @@ export declare class UniverBoardsTableUIPlugin extends Plugin {
|
|
|
11
11
|
private readonly _renderManagerService;
|
|
12
12
|
private readonly _localeService;
|
|
13
13
|
private readonly _themeService;
|
|
14
|
+
private readonly _imageIoService;
|
|
14
15
|
private readonly _commandService;
|
|
15
16
|
private readonly _menuManagerService;
|
|
16
17
|
private readonly _shortcutService;
|
|
@@ -20,9 +21,11 @@ export declare class UniverBoardsTableUIPlugin extends Plugin {
|
|
|
20
21
|
static type: UniverInstanceType;
|
|
21
22
|
static readonly scopedDependencies: readonly Dependency[];
|
|
22
23
|
private _adapter;
|
|
23
|
-
constructor(_config: Partial<IUniverBoardsTableUIConfig> | undefined, _injector: Injector, _configService: IConfigService, _renderManagerService: IRenderManagerService, _localeService: LocaleService, _themeService: ThemeService, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _shortcutService: IShortcutService);
|
|
24
|
+
constructor(_config: Partial<IUniverBoardsTableUIConfig> | undefined, _injector: Injector, _configService: IConfigService, _renderManagerService: IRenderManagerService, _localeService: LocaleService, _themeService: ThemeService, _imageIoService: IImageIoService, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _shortcutService: IShortcutService);
|
|
24
25
|
onStarting(): void;
|
|
25
26
|
onReady(): void;
|
|
27
|
+
protected _getComponentDependencies(): Dependency[];
|
|
28
|
+
protected _getSelectionController(): Dependency;
|
|
26
29
|
private _appendRenderAdapter;
|
|
27
30
|
private _removeRenderAdapter;
|
|
28
31
|
private _getBoardsUIConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BOARD_TABLE_ELEMENT_RENDER_ADAPTER_NAME = "table";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IBoardElementRenderAdapter } from '@univerjs-pro/boards-ui';
|
|
2
2
|
import type { ISlideTableThemePalette, SlideTableResourceService } from '@univerjs-pro/slides-table';
|
|
3
|
-
import type { LocaleService, ThemeService } from '@univerjs/core';
|
|
4
|
-
export declare
|
|
5
|
-
export declare function createBoardTableElementRenderAdapter(slideTableResourceService: SlideTableResourceService, localeService?: LocaleService, tableThemePalette?: ISlideTableThemePalette, themeService?: ThemeService): IBoardElementRenderAdapter;
|
|
3
|
+
import type { IImageIoService, LocaleService, ThemeService } from '@univerjs/core';
|
|
4
|
+
export declare function createBoardTableElementRenderAdapter(slideTableResourceService: SlideTableResourceService, imageIoService: IImageIoService, localeService?: LocaleService, tableThemePalette?: ISlideTableThemePalette, themeService?: ThemeService): IBoardElementRenderAdapter;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IBoardElementRenderAdapter } from '@univerjs-pro/boards-ui';
|
|
2
|
+
import type { ISlideTableThemePalette, SlideTableResourceService } from '@univerjs-pro/slides-table';
|
|
3
|
+
import type { IImageIoService, LocaleService, ThemeService } from '@univerjs/core';
|
|
4
|
+
export declare function createMobileBoardTableElementRenderAdapter(slideTableResourceService: SlideTableResourceService, imageIoService: IImageIoService, localeService?: LocaleService, tableThemePalette?: ISlideTableThemePalette, themeService?: ThemeService): IBoardElementRenderAdapter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
|
|
2
|
+
import { SlideTableMobileSelection } from '@univerjs-pro/slides-table-ui';
|
|
3
|
+
import { BoardTableObject } from '../board-table-object';
|
|
4
|
+
export declare class MobileBoardTableObject extends BoardTableObject {
|
|
5
|
+
readonly mobileSelection: SlideTableMobileSelection;
|
|
6
|
+
isHit(coord: Vector2): boolean;
|
|
7
|
+
_draw(ctx: UniverRenderingContext, bounds?: IViewportInfo, renderWidth?: number, renderHeight?: number): void;
|
|
8
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { ISlideTableSnapshot } from '@univerjs-pro/slides-table';
|
|
1
|
+
import type { ISlideTableCellRange, ISlideTableSnapshot, ISlideTableStyleOptions } from '@univerjs-pro/slides-table';
|
|
2
2
|
import type { ISlideTableSelection } from '@univerjs-pro/slides-table-ui';
|
|
3
|
+
import { SlideTableSelectionService } from '@univerjs-pro/slides-table-ui';
|
|
4
|
+
import { ICommandService, LocaleService } from '@univerjs/core';
|
|
3
5
|
export declare const BOARD_TABLE_FLOATING_TOOLBAR_KEY = "board.table.floating-toolbar";
|
|
6
|
+
type ToolbarDropdownKey = 'background' | 'border' | 'textFormat' | 'textColor' | 'textBackground' | 'theme';
|
|
4
7
|
export interface IBoardTableFloatingToolbarExtraProps {
|
|
5
8
|
unitId: string;
|
|
6
9
|
subUnitId: string;
|
|
@@ -13,4 +16,22 @@ export interface IBoardTableFloatingToolbarProps extends Partial<IBoardTableFloa
|
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
export declare function resolveBoardTableFloatingToolbarSelection(props: Partial<IBoardTableFloatingToolbarExtraProps> | null | undefined, selection: ISlideTableSelection | null, table: ISlideTableSnapshot | null | undefined): ISlideTableSelection | null;
|
|
19
|
+
export declare function useBoardTableFloatingToolbar(props: IBoardTableFloatingToolbarProps): {
|
|
20
|
+
commandService: ICommandService;
|
|
21
|
+
localeService: LocaleService;
|
|
22
|
+
direction: "ltr" | "rtl";
|
|
23
|
+
selectionService: SlideTableSelectionService;
|
|
24
|
+
selection: ISlideTableSelection | null;
|
|
25
|
+
visibleSelection: ISlideTableSelection | null;
|
|
26
|
+
table: ISlideTableSnapshot | null | undefined;
|
|
27
|
+
toolbarState: import("../utils/board-table-toolbar-model").IBoardTableToolbarState;
|
|
28
|
+
firstCellValues: import("@univerjs-pro/slides-table-ui").ISlideTableToolbarCellValues;
|
|
29
|
+
tableThemePalette: import("@univerjs-pro/slides-table").ISlideTableThemePalette;
|
|
30
|
+
applyPatch: (buildPatch: (latestTable: ISlideTableSnapshot, range: ISlideTableCellRange) => Partial<ISlideTableSnapshot>) => void;
|
|
31
|
+
applyTableTheme: (styleId: string) => void;
|
|
32
|
+
applyTableLook: (options: ISlideTableStyleOptions) => void;
|
|
33
|
+
handleDropdownOpenChange: (key: ToolbarDropdownKey, open: boolean) => void;
|
|
34
|
+
openDropdown: ToolbarDropdownKey | null;
|
|
35
|
+
};
|
|
16
36
|
export declare function BoardTableFloatingToolbar(props: IBoardTableFloatingToolbarProps): import("react").JSX.Element | null;
|
|
37
|
+
export {};
|