@univerjs/sheets-ui 0.6.10 → 0.7.0-beta.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 +260 -41
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/es/index.js +9434 -8900
- package/lib/es/locale/en-US.js +4 -4
- package/lib/index.css +1 -1
- package/lib/index.js +9434 -8900
- package/lib/locale/en-US.js +4 -4
- package/lib/types/controllers/config.schema.d.ts +49 -1
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +0 -1
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +1 -0
- package/lib/types/controllers/shortcuts/value.shortcut.d.ts +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/plugin.d.ts +3 -1
- package/lib/types/services/cell-alert-manager.service.d.ts +3 -1
- package/lib/types/services/cell-popup-manager.service.d.ts +29 -0
- package/lib/types/services/editor-bridge.service.d.ts +2 -3
- package/lib/types/services/print-interceptor.service.d.ts +3 -0
- package/lib/types/services/selection/base-selection-render.service.d.ts +3 -2
- package/lib/types/services/sheets-render.service.d.ts +4 -2
- package/lib/types/views/cell-popup/config.d.ts +16 -0
- package/lib/types/views/cell-popup/index.d.ts +7 -0
- package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +1 -3
- package/lib/types/views/dropdown/list-dropdown/index.d.ts +1 -0
- package/lib/types/views/editor-container/index.d.ts +1 -0
- package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +1 -2
- package/lib/types/views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar.d.ts +6 -8
- package/lib/types/views/{count-bar → sheet-slider}/CountBar.d.ts +1 -6
- package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +4 -4
- package/lib/umd/index.js +264 -45
- package/lib/umd/locale/en-US.js +1 -1
- package/package.json +16 -16
- /package/lib/types/views/{count-bar → sheet-slider}/ZoomSlider.d.ts +0 -0
- /package/lib/types/views/{count-bar → sheet-slider}/index.d.ts +0 -0
package/lib/locale/en-US.js
CHANGED
|
@@ -192,16 +192,16 @@ const e = {
|
|
|
192
192
|
toBottomAdd: "Towards Bottom Add",
|
|
193
193
|
toLeftAdd: "Towards Left Add",
|
|
194
194
|
toRightAdd: "Towards Right Add",
|
|
195
|
-
deleteSelectedRow: "Delete Selected
|
|
196
|
-
deleteSelectedColumn: "Delete Selected
|
|
195
|
+
deleteSelectedRow: "Delete Selected Row",
|
|
196
|
+
deleteSelectedColumn: "Delete Selected Column",
|
|
197
197
|
hideSelectedRow: "Hide Selected Row",
|
|
198
|
-
showHideRow: "Show
|
|
198
|
+
showHideRow: "Show Hide Row",
|
|
199
199
|
rowHeight: "Row Height",
|
|
200
200
|
hideSelectedColumn: "Hide Selected Column",
|
|
201
201
|
showHideColumn: "Show Hide Column",
|
|
202
202
|
columnWidth: "Column Width",
|
|
203
203
|
moveLeft: "Move Left",
|
|
204
|
-
moveUp: "Move
|
|
204
|
+
moveUp: "Move Up",
|
|
205
205
|
moveRight: "Move Right",
|
|
206
206
|
moveDown: "Move Down",
|
|
207
207
|
add: "Add",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DependencyOverride } from '@univerjs/core';
|
|
2
2
|
import { IScrollBarProps } from '@univerjs/engine-render';
|
|
3
|
-
import { MenuConfig } from '@univerjs/ui';
|
|
3
|
+
import { ComponentType, MenuConfig } from '@univerjs/ui';
|
|
4
|
+
import { IPermissionDetailUserPartProps } from '../views/permission/panel-detail/PermissionDetailUserPart';
|
|
4
5
|
export declare const SHEETS_UI_PLUGIN_CONFIG_KEY = "sheets-ui.config";
|
|
5
6
|
export declare const configSymbol: unique symbol;
|
|
6
7
|
export interface IUniverSheetsUIConfig {
|
|
@@ -17,10 +18,57 @@ export interface IUniverSheetsUIConfig {
|
|
|
17
18
|
* Whether to show the formula bar.
|
|
18
19
|
*/
|
|
19
20
|
formulaBar?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The config of the footer.
|
|
23
|
+
* @default {}
|
|
24
|
+
*/
|
|
25
|
+
footer?: false | {
|
|
26
|
+
/**
|
|
27
|
+
* Sheet bar is the manager of sub sheets, including add/switch/delete sub sheets.
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
sheetBar?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* statistic bar including statistic info current selections, such as count, sum, average, etc.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
statisticBar?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Including the menus in the footer. such as highlight, gridlines, etc.
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
menus?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Zoom slider is the zoom slider in the footer.
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
zoomSlider?: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use `footer.statisticBar` instead.
|
|
49
|
+
*/
|
|
20
50
|
statusBarStatistic?: boolean;
|
|
21
51
|
clipboardConfig?: {
|
|
22
52
|
hidePasteOptions?: boolean;
|
|
23
53
|
};
|
|
24
54
|
scrollConfig?: IScrollBarProps;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to show the protected range shadow.
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
protectedRangeShadow?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The custom component of the protected range user selector.
|
|
62
|
+
*/
|
|
63
|
+
protectedRangeUserSelector?: {
|
|
64
|
+
/**
|
|
65
|
+
* custom component, should implement the `IPermissionDetailUserPartProps` interface.
|
|
66
|
+
*/
|
|
67
|
+
component: ComponentType<IPermissionDetailUserPartProps>;
|
|
68
|
+
/**
|
|
69
|
+
* The framework of the component. Must be passed correctly.
|
|
70
|
+
*/
|
|
71
|
+
framework: 'react' | 'vue3';
|
|
72
|
+
};
|
|
25
73
|
}
|
|
26
74
|
export declare const defaultPluginConfig: IUniverSheetsUIConfig;
|
|
@@ -9,5 +9,6 @@ export declare const EditorCursorEscShortcut: IShortcutItem;
|
|
|
9
9
|
export declare const EditorCursorCtrlEnterShortcut: IShortcutItem;
|
|
10
10
|
export declare const EditorBreakLineShortcut: IShortcutItem;
|
|
11
11
|
export declare const EditorDeleteLeftShortcut: IShortcutItem;
|
|
12
|
+
export declare const EditorDeleteRightShortcut: IShortcutItem;
|
|
12
13
|
export declare const ShiftEditorDeleteLeftShortcut: IShortcutItem;
|
|
13
14
|
export declare const EditorDeleteLeftShortcutInActive: IShortcutItem;
|
|
@@ -2,3 +2,4 @@ import { IShortcutItem } from '@univerjs/ui';
|
|
|
2
2
|
export declare const ClearSelectionValueShortcutItem: IShortcutItem;
|
|
3
3
|
export declare const ClearSelectionValueShortcutItemMac: IShortcutItem;
|
|
4
4
|
export declare const ShiftClearSelectionValueShortcutItem: IShortcutItem;
|
|
5
|
+
export declare const ShiftDeleteSelectionValueShortcutItem: IShortcutItem;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -92,8 +92,11 @@ export { FormatPainterStatus, IFormatPainterService } from './services/format-pa
|
|
|
92
92
|
export type { IFormatPainterBeforeApplyHookParams, IFormatPainterHook } from './services/format-painter/format-painter.service';
|
|
93
93
|
export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
|
|
94
94
|
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
|
|
95
|
+
export { useKeyEventConfig } from './views/editor-container';
|
|
95
96
|
export { type IDropdownParam, ISheetCellDropdownManagerService, SheetCellDropdownManagerService } from './services/cell-dropdown-manager.service';
|
|
96
97
|
export { FormulaBar } from './views/formula-bar/FormulaBar';
|
|
98
|
+
export { type IPermissionDetailUserPartProps } from './views/permission/panel-detail/PermissionDetailUserPart';
|
|
99
|
+
export { CellPopupManagerService } from './services/cell-popup-manager.service';
|
|
97
100
|
export { SetWorksheetColAutoWidthCommand } from './commands/commands/set-worksheet-auto-col-width.command';
|
|
98
101
|
export { AutoClearContentCommand, AutoFillCommand } from './commands/commands/auto-fill.command';
|
|
99
102
|
export { type ISheetPasteByShortKeyParams, type ISheetPasteParams, SheetCopyCommand, SheetCutCommand, SheetPasteBesidesBorderCommand, SheetPasteColWidthCommand, SheetPasteCommand, SheetPasteFormatCommand, SheetPasteShortKeyCommand, SheetPasteValueCommand, } from './commands/commands/clipboard.command';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { IUniverSheetsUIConfig } from './controllers/config.schema';
|
|
2
2
|
import { IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
4
5
|
export declare class UniverSheetsUIPlugin extends Plugin {
|
|
5
6
|
private readonly _config;
|
|
6
7
|
readonly _injector: Injector;
|
|
7
8
|
private readonly _renderManagerService;
|
|
8
9
|
private readonly _configService;
|
|
9
10
|
private readonly _univerInstanceService;
|
|
11
|
+
private readonly _componentManager;
|
|
10
12
|
static pluginName: string;
|
|
11
13
|
static type: UniverInstanceType;
|
|
12
14
|
/** @ignore */
|
|
13
|
-
constructor(_config: Partial<IUniverSheetsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
15
|
+
constructor(_config: Partial<IUniverSheetsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService, _componentManager: ComponentManager);
|
|
14
16
|
onStarting(): void;
|
|
15
17
|
onReady(): void;
|
|
16
18
|
onRendered(): void;
|
|
@@ -2,6 +2,7 @@ import { IDisposable, Disposable } from '@univerjs/core';
|
|
|
2
2
|
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
import { SheetCanvasPopManagerService } from './canvas-pop-manager.service';
|
|
5
|
+
import { CellPopupManagerService } from './cell-popup-manager.service';
|
|
5
6
|
export declare enum CellAlertType {
|
|
6
7
|
INFO = 0,
|
|
7
8
|
WARNING = 1,
|
|
@@ -19,6 +20,7 @@ export interface ICellAlert {
|
|
|
19
20
|
export declare class CellAlertManagerService extends Disposable {
|
|
20
21
|
private readonly _renderManagerService;
|
|
21
22
|
private readonly _canvasPopManagerService;
|
|
23
|
+
private readonly _cellPopupManagerService;
|
|
22
24
|
private _currentAlert$;
|
|
23
25
|
private _currentAlert;
|
|
24
26
|
get currentAlert(): Map<string, {
|
|
@@ -29,7 +31,7 @@ export declare class CellAlertManagerService extends Disposable {
|
|
|
29
31
|
alert: ICellAlert;
|
|
30
32
|
dispose: IDisposable;
|
|
31
33
|
}][]>;
|
|
32
|
-
constructor(_renderManagerService: IRenderManagerService, _canvasPopManagerService: SheetCanvasPopManagerService);
|
|
34
|
+
constructor(_renderManagerService: IRenderManagerService, _canvasPopManagerService: SheetCanvasPopManagerService, _cellPopupManagerService: CellPopupManagerService);
|
|
33
35
|
showAlert(alert: ICellAlert): void;
|
|
34
36
|
removeAlert(key: string): void;
|
|
35
37
|
clearAlert(): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IDisposable, Disposable } from '@univerjs/core';
|
|
2
|
+
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
3
|
+
import { ICanvasPopup, SheetCanvasPopManagerService } from './canvas-pop-manager.service';
|
|
4
|
+
export interface ICellPopup extends Omit<ICanvasPopup, 'direction' | 'offset' | 'mask'> {
|
|
5
|
+
direction?: 'horizontal' | 'vertical';
|
|
6
|
+
id?: string;
|
|
7
|
+
priority: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ICellPopupDirectionCache {
|
|
10
|
+
popups: ICellPopup[];
|
|
11
|
+
disposable: IDisposable;
|
|
12
|
+
}
|
|
13
|
+
export interface ICellPopupCache {
|
|
14
|
+
horizontal?: ICellPopupDirectionCache;
|
|
15
|
+
vertical?: ICellPopupDirectionCache;
|
|
16
|
+
}
|
|
17
|
+
export interface ICellPopupChange extends ISheetLocationBase {
|
|
18
|
+
direction: 'horizontal' | 'vertical';
|
|
19
|
+
}
|
|
20
|
+
export declare class CellPopupManagerService extends Disposable {
|
|
21
|
+
private readonly _sheetCanvasPopManagerService;
|
|
22
|
+
private readonly _cellPopupMap;
|
|
23
|
+
private readonly _change$;
|
|
24
|
+
readonly change$: import('rxjs').Observable<ICellPopupChange>;
|
|
25
|
+
constructor(_sheetCanvasPopManagerService: SheetCanvasPopManagerService);
|
|
26
|
+
private _ensureCellPopupMap;
|
|
27
|
+
showPopup(location: ISheetLocationBase, popup: ICellPopup): IDisposable;
|
|
28
|
+
getPopups(unitId: string, subUnitId: string, row: number, col: number, direction: 'horizontal' | 'vertical'): ICellPopup[];
|
|
29
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IDisposable, IPosition, ISelectionCell, Nullable, Disposable, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { Engine, IDocumentLayoutObject, Scene, DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { SheetsSelectionsService, SheetInterceptorService } from '@univerjs/sheets';
|
|
4
3
|
import { KeyCode } from '@univerjs/ui';
|
|
5
4
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
6
5
|
import { IEditorService } from '@univerjs/docs-ui';
|
|
6
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
7
7
|
export interface IEditorBridgeServiceVisibleParam {
|
|
8
8
|
visible: boolean;
|
|
9
9
|
eventType: DeviceInputEventType;
|
|
@@ -71,7 +71,6 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
71
71
|
private readonly _themeService;
|
|
72
72
|
private readonly _univerInstanceService;
|
|
73
73
|
private readonly _editorService;
|
|
74
|
-
private readonly _refSelectionsService;
|
|
75
74
|
private readonly _contextService;
|
|
76
75
|
private _editorUnitId;
|
|
77
76
|
private _editorIsDirty;
|
|
@@ -106,7 +105,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
106
105
|
readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
107
106
|
private readonly _forceKeepVisible$;
|
|
108
107
|
readonly forceKeepVisible$: Observable<boolean>;
|
|
109
|
-
constructor(_sheetInterceptorService: SheetInterceptorService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService,
|
|
108
|
+
constructor(_sheetInterceptorService: SheetInterceptorService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _contextService: IContextService);
|
|
110
109
|
refreshEditCellState(): void;
|
|
111
110
|
refreshEditCellPosition(resetSizeOnly?: boolean): void;
|
|
112
111
|
setEditCell(param: ICurrentEditCellParam): void;
|
|
@@ -17,6 +17,7 @@ interface ISheetPrintComponentContext extends ISheetPrintContext {
|
|
|
17
17
|
spreadsheet: Spreadsheet;
|
|
18
18
|
}
|
|
19
19
|
export declare class SheetPrintInterceptorService extends Disposable {
|
|
20
|
+
private _printComponentMap;
|
|
20
21
|
readonly interceptor: InterceptorManager<{
|
|
21
22
|
PRINTING_RANGE: import('@univerjs/core').IInterceptor<IRange, {
|
|
22
23
|
unitId: string;
|
|
@@ -26,5 +27,7 @@ export declare class SheetPrintInterceptorService extends Disposable {
|
|
|
26
27
|
PRINTING_DOM_COLLECT: import('@univerjs/core').IInterceptor<DisposableCollection, ISheetPrintContext>;
|
|
27
28
|
}>;
|
|
28
29
|
constructor();
|
|
30
|
+
registerPrintComponent(componentKey: string, printingComponentKey: string): void;
|
|
31
|
+
getPrintComponent(componentKey: string): string | undefined;
|
|
29
32
|
}
|
|
30
33
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ICellInfo, ICellWithCoord, IContextService, IDisposable, IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord,
|
|
1
|
+
import { ICellInfo, ICellWithCoord, IContextService, IDisposable, IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord, Nullable, Disposable, InterceptorManager, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IMouseEvent, IPointerEvent, IRenderModule, Scene, SpreadsheetSkeleton, Viewport, ScrollTimer, ScrollTimerType } from '@univerjs/engine-render';
|
|
3
3
|
import { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
|
|
4
|
+
import { Theme } from '@univerjs/themes';
|
|
4
5
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
6
|
import { Observable, Subscription, BehaviorSubject, Subject } from 'rxjs';
|
|
6
7
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
@@ -136,7 +137,7 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
|
|
|
136
137
|
refreshSelectionMoveStart(): void;
|
|
137
138
|
refreshSelectionMoveEnd(): void;
|
|
138
139
|
_initSelectionThemeFromThemeService(): void;
|
|
139
|
-
setSelectionTheme(
|
|
140
|
+
setSelectionTheme(theme: Theme): void;
|
|
140
141
|
protected _changeRuntime(skeleton: SpreadsheetSkeleton, scene: Scene, viewport?: Viewport): void;
|
|
141
142
|
getSkeleton(): SpreadsheetSkeleton;
|
|
142
143
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDisposable, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, IContextService, IUniverInstanceService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
/**
|
|
4
4
|
* This controller is responsible for managing units of a specific kind (UniverSheet) to be rendered on the canvas.
|
|
@@ -7,8 +7,9 @@ export declare class SheetsRenderService extends RxDisposable {
|
|
|
7
7
|
private readonly _contextService;
|
|
8
8
|
private readonly _instanceSrv;
|
|
9
9
|
private readonly _renderManagerService;
|
|
10
|
+
private readonly _themeService;
|
|
10
11
|
private _skeletonChangeMutations;
|
|
11
|
-
constructor(_contextService: IContextService, _instanceSrv: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
12
|
+
constructor(_contextService: IContextService, _instanceSrv: IUniverInstanceService, _renderManagerService: IRenderManagerService, _themeService: ThemeService);
|
|
12
13
|
/**
|
|
13
14
|
* Register a mutation id that will trigger the skeleton change.
|
|
14
15
|
*
|
|
@@ -21,6 +22,7 @@ export declare class SheetsRenderService extends RxDisposable {
|
|
|
21
22
|
*/
|
|
22
23
|
checkMutationShouldTriggerRerender(id: string): boolean;
|
|
23
24
|
private _init;
|
|
25
|
+
private _initDarkModeListener;
|
|
24
26
|
private _initWorkbookListener;
|
|
25
27
|
private _createRenderer;
|
|
26
28
|
private _disposeRenderer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
export declare const CELL_POPUP_COMPONENT_KEY = "sheets.component.cell-popup";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
2
|
+
import { IPopup } from '@univerjs/ui';
|
|
3
|
+
export declare const CellPopup: (props: {
|
|
4
|
+
popup: IPopup<ISheetLocationBase & {
|
|
5
|
+
direction: "horizontal" | "vertical";
|
|
6
|
+
}>;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
}
|
|
18
|
-
export declare function DefinedNameOverlay(props: IDefinedNameOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function DefinedNameOverlay(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditStateEnum, ViewStateEnum } from '@univerjs/sheets';
|
|
2
|
-
interface IPermissionDetailUserPartProps {
|
|
2
|
+
export interface IPermissionDetailUserPartProps {
|
|
3
3
|
editState: EditStateEnum;
|
|
4
4
|
onEditStateChange: (v: EditStateEnum) => void;
|
|
5
5
|
viewState: ViewStateEnum;
|
|
@@ -7,4 +7,3 @@ interface IPermissionDetailUserPartProps {
|
|
|
7
7
|
permissionId: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const PermissionDetailUserPart: (props: IPermissionDetailUserPartProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -3,11 +3,9 @@ export interface IScrollState {
|
|
|
3
3
|
leftEnd: boolean;
|
|
4
4
|
rightEnd: boolean;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
slideTabBarItemClassName: string;
|
|
10
|
-
slideTabBarSpanEditClassName: string;
|
|
6
|
+
export interface ISlideTabBarConfig {
|
|
7
|
+
slideTabBarSelector: string;
|
|
8
|
+
slideTabBarItemSelector: string;
|
|
11
9
|
slideTabBarContainer: HTMLDivElement | null;
|
|
12
10
|
slideTabBarItemAutoSort: boolean;
|
|
13
11
|
currentIndex: number;
|
|
@@ -76,7 +74,7 @@ export declare class SlideTabBar {
|
|
|
76
74
|
protected _activeTabItemIndex: number;
|
|
77
75
|
protected _slideTabBar: HTMLElement;
|
|
78
76
|
protected _slideTabItems: SlideTabItem[];
|
|
79
|
-
protected _config:
|
|
77
|
+
protected _config: ISlideTabBarConfig;
|
|
80
78
|
protected _downActionX: number;
|
|
81
79
|
protected _moveActionX: number;
|
|
82
80
|
protected _compareIndex: number;
|
|
@@ -106,7 +104,7 @@ export declare class SlideTabBar {
|
|
|
106
104
|
* The distance required to move to the right border
|
|
107
105
|
*/
|
|
108
106
|
protected _rightMoveX: number;
|
|
109
|
-
constructor(config: Partial<
|
|
107
|
+
constructor(config: Partial<ISlideTabBarConfig>);
|
|
110
108
|
static checkedSkipSlide(event: MouseEvent): boolean;
|
|
111
109
|
static keepLastIndex(inputHtml: HTMLElement): void;
|
|
112
110
|
static keepSelectAll(inputHtml: HTMLElement): void;
|
|
@@ -118,7 +116,7 @@ export declare class SlideTabBar {
|
|
|
118
116
|
primeval(): HTMLElement;
|
|
119
117
|
updateItems(): void;
|
|
120
118
|
getScrollbar(): SlideScrollbar;
|
|
121
|
-
getConfig():
|
|
119
|
+
getConfig(): ISlideTabBarConfig;
|
|
122
120
|
getBoundingRect(): DOMRect;
|
|
123
121
|
getSlideTabItems(): SlideTabItem[];
|
|
124
122
|
getActiveItem(): SlideTabItem | null;
|
|
@@ -13,9 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
changeRatio?: (ratio: string) => void;
|
|
18
|
-
onChange?: (value: string) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare function CountBar(props: ICountBarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
16
|
+
export declare function SheetZoomSlider(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFunctionNames } from '@univerjs/engine-formula';
|
|
2
|
-
import {
|
|
2
|
+
import { FC } from 'react';
|
|
3
3
|
export interface IStatisticItem {
|
|
4
4
|
name: IFunctionNames;
|
|
5
5
|
value: number;
|
|
@@ -7,10 +7,10 @@ export interface IStatisticItem {
|
|
|
7
7
|
disable: boolean;
|
|
8
8
|
pattern: string | null;
|
|
9
9
|
}
|
|
10
|
-
export declare const functionDisplayNames:
|
|
11
|
-
interface
|
|
10
|
+
export declare const functionDisplayNames: IFunctionNameMap;
|
|
11
|
+
interface IFunctionNameMap {
|
|
12
12
|
[key: string]: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const CopyableStatisticItem:
|
|
14
|
+
export declare const CopyableStatisticItem: FC<IStatisticItem>;
|
|
15
15
|
export declare function formatNumber(item: IStatisticItem): string | 0;
|
|
16
16
|
export {};
|