@univerjs/sheets-ui 1.0.0-beta.1 → 1.0.0-beta.2
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 +151 -74
- package/lib/cjs/locale/ca-ES.js +2 -2
- package/lib/cjs/locale/sk-SK.js +2 -2
- package/lib/es/index.js +155 -78
- package/lib/es/locale/ca-ES.js +2 -2
- package/lib/es/locale/sk-SK.js +2 -2
- package/lib/index.js +155 -78
- package/lib/locale/ca-ES.js +2 -2
- package/lib/locale/sk-SK.js +2 -2
- package/lib/types/controllers/editor/editing.render-controller.d.ts +5 -2
- package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +4 -0
- package/lib/types/controllers/render-controllers/header-menu.render-controller.d.ts +4 -4
- package/lib/types/services/editor-bridge.service.d.ts +3 -0
- package/lib/types/services/sheet-embed-integration.service.d.ts +5 -0
- package/lib/umd/index.js +9 -9
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/package.json +14 -14
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Workbook } from '@univerjs/core';
|
|
17
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
18
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
18
|
+
import { Disposable, ICommandService, ThemeService } from '@univerjs/core';
|
|
19
19
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
20
20
|
import { IContextMenuService } from '@univerjs/ui';
|
|
21
21
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
@@ -29,12 +29,12 @@ export declare class HeaderMenuRenderController extends Disposable implements IR
|
|
|
29
29
|
private readonly _contextMenuService;
|
|
30
30
|
private readonly _commandService;
|
|
31
31
|
private readonly _selectionManagerService;
|
|
32
|
+
private readonly _themeService;
|
|
32
33
|
private _hoverRect;
|
|
33
34
|
private _hoverMenu;
|
|
34
35
|
private _currentColumn;
|
|
35
|
-
private _headerPointerSubs;
|
|
36
|
-
|
|
37
|
-
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _contextMenuService: IContextMenuService, _commandService: ICommandService, _selectionManagerService: SheetsSelectionsService);
|
|
36
|
+
private readonly _headerPointerSubs;
|
|
37
|
+
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _contextMenuService: IContextMenuService, _commandService: ICommandService, _selectionManagerService: SheetsSelectionsService, _themeService: ThemeService);
|
|
38
38
|
dispose(): void;
|
|
39
39
|
private _initialize;
|
|
40
40
|
private _initialHover;
|
|
@@ -44,6 +44,7 @@ export interface ICellEditorState {
|
|
|
44
44
|
documentLayoutObject: IDocumentLayoutObject;
|
|
45
45
|
editorUnitId: string;
|
|
46
46
|
isInArrayFormulaRange?: Nullable<boolean>;
|
|
47
|
+
isPercentFormat?: boolean;
|
|
47
48
|
}
|
|
48
49
|
export interface ICellEditorLayout {
|
|
49
50
|
position: IPosition;
|
|
@@ -118,6 +119,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
118
119
|
documentLayoutObject: IDocumentLayoutObject;
|
|
119
120
|
editorUnitId: string;
|
|
120
121
|
isInArrayFormulaRange?: Nullable<boolean>;
|
|
122
|
+
isPercentFormat?: boolean;
|
|
121
123
|
} | null>;
|
|
122
124
|
private readonly _visibleParams$;
|
|
123
125
|
readonly visible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
@@ -154,6 +156,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
154
156
|
documentLayoutObject: IDocumentLayoutObject;
|
|
155
157
|
editorUnitId: string;
|
|
156
158
|
isInArrayFormulaRange: Nullable<boolean>;
|
|
159
|
+
isPercentFormat: boolean | undefined;
|
|
157
160
|
} | undefined;
|
|
158
161
|
private _getWorkbookForEditUnit;
|
|
159
162
|
getCurrentEditorId(): string;
|
|
@@ -25,11 +25,13 @@ export declare const SHEET_EMBED_ID_ATTRIBUTE = "data-embed-id";
|
|
|
25
25
|
export declare const SHEET_EMBED_HOST_UNIT_ID_ATTRIBUTE = "data-embed-host-unit-id";
|
|
26
26
|
export declare const SHEET_EMBED_CHILD_UNIT_ID_ATTRIBUTE = "data-embed-child-unit-id";
|
|
27
27
|
export declare const SHEET_EMBED_CHILD_TYPE_ATTRIBUTE = "data-embed-child-type";
|
|
28
|
+
export type SheetEmbedRuntimeSessionMode = 'host-passive' | 'child-keyboard' | 'child-fullscreen' | 'child-tab';
|
|
28
29
|
export interface ISheetEmbedRuntimeDomScope {
|
|
29
30
|
embedId: string;
|
|
30
31
|
hostUnitId?: string;
|
|
31
32
|
childUnitId?: string;
|
|
32
33
|
childType?: UniverInstanceType;
|
|
34
|
+
sessionMode?: SheetEmbedRuntimeSessionMode;
|
|
33
35
|
}
|
|
34
36
|
export interface ISheetEmbedInteractionBoundaryService {
|
|
35
37
|
registerOwnedElement(embedId: string, element: HTMLElement): IDisposable;
|
|
@@ -45,6 +47,7 @@ export interface ISheetEmbedRuntimeFocusCoordinator {
|
|
|
45
47
|
childUnitId?: string;
|
|
46
48
|
childType?: UniverInstanceType;
|
|
47
49
|
associatedChildUnitIds?: string[];
|
|
50
|
+
sessionMode?: SheetEmbedRuntimeSessionMode;
|
|
48
51
|
}): IDisposable;
|
|
49
52
|
registerElement(options: {
|
|
50
53
|
embedId: string;
|
|
@@ -84,6 +87,7 @@ export declare class EmbedRuntimeFocusCoordinator implements ISheetEmbedRuntimeF
|
|
|
84
87
|
hostUnitId?: string;
|
|
85
88
|
childType?: UniverInstanceType;
|
|
86
89
|
associatedChildUnitIds?: string[];
|
|
90
|
+
sessionMode?: SheetEmbedRuntimeSessionMode;
|
|
87
91
|
}): IDisposable;
|
|
88
92
|
registerElement(options: {
|
|
89
93
|
embedId: string;
|
|
@@ -96,6 +100,7 @@ export declare class EmbedRuntimeFocusCoordinator implements ISheetEmbedRuntimeF
|
|
|
96
100
|
hostUnitId?: string;
|
|
97
101
|
childUnitId?: string;
|
|
98
102
|
childType?: UniverInstanceType;
|
|
103
|
+
sessionMode?: SheetEmbedRuntimeSessionMode;
|
|
99
104
|
}): IDisposable;
|
|
100
105
|
hasChildInteractionLease(embedId: string | undefined): boolean;
|
|
101
106
|
hasHostPreservingChildFocusLeaseForHost(hostUnitId: string | undefined): boolean;
|