@univerjs/sheets-ui 0.2.12 → 0.2.14
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 +13 -12
- package/lib/es/index.js +6727 -6399
- package/lib/index.css +1 -1
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +12 -12
- package/lib/types/common/utils.d.ts +12 -3
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +2 -3
- package/lib/types/controllers/editor/__tests__/mock-function.service.d.ts +1 -1
- package/lib/types/controllers/editor/editing.render-controller.d.ts +7 -8
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +4 -4
- package/lib/types/controllers/hover-render.controller.d.ts +2 -0
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +6 -6
- package/lib/types/controllers/permission/sheet-permission-interceptor-base.controller.d.ts +2 -2
- package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +2 -2
- package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +2 -2
- package/lib/types/controllers/render-controllers/sheet.render-controller.d.ts +2 -2
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +1 -1
- package/lib/types/index.d.ts +23 -22
- package/lib/types/mobile-sheets-ui-plugin.d.ts +1 -1
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +1 -1
- package/lib/types/services/canvas-pop-manager.service.d.ts +20 -12
- package/lib/types/services/cell-alert-manager.service.d.ts +2 -2
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +6 -6
- package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts +2 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +5 -5
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +2 -0
- package/lib/types/services/clipboard/utils.d.ts +2 -2
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor-bridge.service.d.ts +13 -10
- package/lib/types/services/format-painter/format-painter.service.d.ts +1 -1
- package/lib/types/services/hover-manager.service.d.ts +34 -5
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +1 -1
- package/lib/types/services/scroll-manager.service.d.ts +2 -2
- package/lib/types/services/selection/base-selection-render.service.d.ts +1 -1
- package/lib/types/services/selection/mobile-selection-shape.d.ts +3 -11
- package/lib/types/services/selection/selection-shape.d.ts +9 -9
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +1 -1
- package/lib/types/services/status-bar.service.d.ts +1 -1
- package/lib/types/services/utils/doc-skeleton-util.d.ts +44 -0
- package/lib/types/sheets-ui-plugin.d.ts +1 -1
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +1 -1
- package/lib/types/views/permission/extensions/range-protection.render.d.ts +1 -1
- package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +1 -1
- package/lib/umd/index.js +13 -12
- package/package.json +25 -23
|
@@ -17,12 +17,12 @@ export declare class testPlatformService {
|
|
|
17
17
|
export declare function clipboardTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
18
18
|
univer: Univer;
|
|
19
19
|
get: {
|
|
20
|
-
<T>(id: import('@
|
|
21
|
-
<T>(id: import('@
|
|
22
|
-
<T>(id: import('@
|
|
23
|
-
<T>(id: import('@
|
|
24
|
-
<T>(id: import('@
|
|
25
|
-
<T>(id: import('@
|
|
20
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
21
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
22
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
23
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
24
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
25
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
26
26
|
};
|
|
27
27
|
sheet: import('@univerjs/core').Workbook;
|
|
28
28
|
};
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export interface IClipboardItem {
|
|
17
|
+
presentationStyle: PresentationStyle;
|
|
17
18
|
readonly types: readonly string[];
|
|
18
19
|
getType(type: string): Promise<Blob>;
|
|
19
20
|
}
|
|
20
21
|
export declare class MockClipboardItem implements IClipboardItem {
|
|
21
22
|
private props;
|
|
23
|
+
presentationStyle: PresentationStyle;
|
|
22
24
|
private readonly itemTypes;
|
|
23
25
|
constructor(props: IMockClipboardProps);
|
|
24
26
|
get types(): readonly string[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Disposable, ErrorService, ICommandService, ILogService, Injector, IUndoRedoService, IUniverInstanceService, LocaleService, ObjectMatrix, ThemeService, IDisposable, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
4
|
import { IClipboardInterfaceService, INotificationService, IPlatformService } from '@univerjs/ui';
|
|
4
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
5
|
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
6
|
-
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
7
6
|
import { CopyContentCache } from './copy-content-cache';
|
|
8
|
-
import { ICellDataWithSpanInfo, ISheetClipboardHook
|
|
7
|
+
import { COPY_TYPE, ICellDataWithSpanInfo, ISheetClipboardHook } from './type';
|
|
8
|
+
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
9
9
|
export declare const PREDEFINED_HOOK_NAME: {
|
|
10
10
|
DEFAULT_COPY: string;
|
|
11
11
|
DEFAULT_PASTE: string;
|
|
@@ -32,7 +32,7 @@ export interface ISheetClipboardService {
|
|
|
32
32
|
addClipboardHook(hook: ISheetClipboardHook): IDisposable;
|
|
33
33
|
getClipboardHooks(): ISheetClipboardHook[];
|
|
34
34
|
}
|
|
35
|
-
export declare const ISheetClipboardService: import('@
|
|
35
|
+
export declare const ISheetClipboardService: import('@wendellhu/redi').IdentifierDecorator<ISheetClipboardService>;
|
|
36
36
|
export declare class SheetClipboardService extends Disposable implements ISheetClipboardService {
|
|
37
37
|
private readonly _logService;
|
|
38
38
|
private readonly _univerInstanceService;
|
|
@@ -5,11 +5,11 @@ import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* @param {IRange} sourceRange
|
|
8
|
-
* @param {IRange}
|
|
8
|
+
* @param {IRange} targetRange
|
|
9
9
|
* @param {boolean} [isStrictMode] if is true,the remainder of the row and column must all be 0 to be repeated
|
|
10
10
|
* @return {*}
|
|
11
11
|
*/
|
|
12
|
-
export declare const getRepeatRange: (sourceRange: IRange,
|
|
12
|
+
export declare const getRepeatRange: (sourceRange: IRange, targetRange: IRange, isStrictMode?: boolean) => {
|
|
13
13
|
startRange: IRange;
|
|
14
14
|
repeatRelativeRange: IRange;
|
|
15
15
|
}[];
|
|
@@ -38,4 +38,4 @@ export declare class CellEditorManagerService implements ICellEditorManagerServi
|
|
|
38
38
|
setFocus(param?: boolean): void;
|
|
39
39
|
private _refresh;
|
|
40
40
|
}
|
|
41
|
-
export declare const ICellEditorManagerService: import('@
|
|
41
|
+
export declare const ICellEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<CellEditorManagerService>;
|
|
@@ -29,4 +29,4 @@ export declare class FormulaEditorManagerService implements IDisposable {
|
|
|
29
29
|
handleFoldBtnClick(params: boolean): void;
|
|
30
30
|
private _refresh;
|
|
31
31
|
}
|
|
32
|
-
export declare const IFormulaEditorManagerService: import('@
|
|
32
|
+
export declare const IFormulaEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<FormulaEditorManagerService>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
|
|
1
|
+
import { Disposable, IContextService, InterceptorManager, IUniverInstanceService, ThemeService, ICellData, ICellDataForSheetInterceptor, IDisposable, IPosition, ISelectionCell, Nullable } from '@univerjs/core';
|
|
2
|
+
import { DeviceInputEventType, IRenderManagerService, Engine, IDocumentLayoutObject, Scene } from '@univerjs/engine-render';
|
|
4
3
|
import { IEditorService, KeyCode } from '@univerjs/ui';
|
|
4
|
+
import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
export interface IEditorBridgeServiceVisibleParam {
|
|
7
7
|
visible: boolean;
|
|
@@ -32,9 +32,12 @@ export interface IEditorBridgeServiceParam {
|
|
|
32
32
|
editorUnitId: string;
|
|
33
33
|
isInArrayFormulaRange?: Nullable<boolean>;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
interface ISheetLocationForEditor extends ISheetLocation {
|
|
36
|
+
origin: Nullable<ICellData>;
|
|
37
|
+
}
|
|
38
|
+
declare const BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
39
|
+
declare const AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
40
|
+
declare const AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>;
|
|
38
41
|
export interface IEditorBridgeService {
|
|
39
42
|
currentEditCellState$: Observable<Nullable<IEditorBridgeServiceParam>>;
|
|
40
43
|
visible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
@@ -77,9 +80,9 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
77
80
|
private readonly _afterVisible$;
|
|
78
81
|
readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
79
82
|
readonly interceptor: InterceptorManager<{
|
|
80
|
-
BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor,
|
|
81
|
-
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor,
|
|
82
|
-
AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>,
|
|
83
|
+
BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
84
|
+
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
85
|
+
AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>;
|
|
83
86
|
}>;
|
|
84
87
|
constructor(_renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _refSelectionsService: SheetsSelectionsService, _contextService: IContextService);
|
|
85
88
|
refreshEditCellState(): void;
|
|
@@ -116,5 +119,5 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
116
119
|
changeEditorDirty(dirtyStatus: boolean): void;
|
|
117
120
|
getEditorDirty(): boolean;
|
|
118
121
|
}
|
|
119
|
-
export declare const IEditorBridgeService: import('@
|
|
122
|
+
export declare const IEditorBridgeService: import('@wendellhu/redi').IdentifierDecorator<EditorBridgeService>;
|
|
120
123
|
export {};
|
|
@@ -40,7 +40,7 @@ export interface IFormatPainterBeforeApplyHookParams {
|
|
|
40
40
|
undoMutationsInfo: IMutationInfo[];
|
|
41
41
|
format: ISelectionFormatInfo;
|
|
42
42
|
}
|
|
43
|
-
export declare const IFormatPainterService: import('@
|
|
43
|
+
export declare const IFormatPainterService: import('@wendellhu/redi').IdentifierDecorator<IFormatPainterService>;
|
|
44
44
|
export declare class FormatPainterService extends Disposable implements IFormatPainterService {
|
|
45
45
|
private readonly _selectionManagerService;
|
|
46
46
|
private readonly _themeService;
|
|
@@ -1,21 +1,50 @@
|
|
|
1
|
-
import { IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { ICustomRange, IParagraph, IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoundRectNoAngle, IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
export interface IHoverCellPosition {
|
|
5
5
|
position: IPosition;
|
|
6
|
+
/**
|
|
7
|
+
* location of cell
|
|
8
|
+
*/
|
|
6
9
|
location: ISheetLocation;
|
|
7
10
|
}
|
|
11
|
+
export interface IHoverRichTextPosition extends IHoverCellPosition {
|
|
12
|
+
/**
|
|
13
|
+
* active custom range in cell, if cell is rich-text
|
|
14
|
+
*/
|
|
15
|
+
customRange?: Nullable<ICustomRange>;
|
|
16
|
+
/**
|
|
17
|
+
* active bullet in cell, if cell is rich-text
|
|
18
|
+
*/
|
|
19
|
+
bullet?: Nullable<IParagraph>;
|
|
20
|
+
/**
|
|
21
|
+
* rect of custom-range or bullet
|
|
22
|
+
*/
|
|
23
|
+
rect?: Nullable<IBoundRectNoAngle>;
|
|
24
|
+
}
|
|
8
25
|
export declare class HoverManagerService extends Disposable {
|
|
9
26
|
private readonly _univerInstanceService;
|
|
10
27
|
private readonly _renderManagerService;
|
|
11
28
|
private _currentCell$;
|
|
29
|
+
private _currentRichText$;
|
|
30
|
+
private _currentClickedCell$;
|
|
12
31
|
currentCell$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
32
|
+
currentRichText$: import('rxjs').Observable<void | {
|
|
33
|
+
unitId: string;
|
|
34
|
+
subUnitId: string;
|
|
35
|
+
row: number;
|
|
36
|
+
col: number;
|
|
37
|
+
customRange: Nullable<ICustomRange<Record<string, any>>>;
|
|
38
|
+
bullet: Nullable<IParagraph>;
|
|
39
|
+
rect: Nullable<IBoundRectNoAngle>;
|
|
40
|
+
} | null | undefined>;
|
|
13
41
|
currentPosition$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
14
|
-
|
|
42
|
+
currentClickedCell$: import('rxjs').Observable<IHoverCellPosition>;
|
|
15
43
|
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
16
44
|
dispose(): void;
|
|
17
45
|
private _initCellDisposableListener;
|
|
18
46
|
private _calcActiveCell;
|
|
19
|
-
|
|
20
|
-
|
|
47
|
+
triggerMouseMove(unitId: string, offsetX: number, offsetY: number): void;
|
|
48
|
+
triggerClick(unitId: string, offsetX: number, offsetY: number): void;
|
|
49
|
+
triggerScroll(): void;
|
|
21
50
|
}
|
|
@@ -17,7 +17,7 @@ interface IMarkSelectionInfo {
|
|
|
17
17
|
control: SelectionControl | null;
|
|
18
18
|
exits: string[];
|
|
19
19
|
}
|
|
20
|
-
export declare const IMarkSelectionService: import('@
|
|
20
|
+
export declare const IMarkSelectionService: import('@wendellhu/redi').IdentifierDecorator<IMarkSelectionService>;
|
|
21
21
|
/**
|
|
22
22
|
* For condition format selection.
|
|
23
23
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Nullable, Workbook } from '@univerjs/core';
|
|
2
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { Nullable, Workbook } from '@univerjs/core';
|
|
3
3
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
4
4
|
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
5
5
|
export interface IScrollState {
|
|
@@ -73,7 +73,7 @@ export declare class SheetScrollManagerService implements IRenderModule {
|
|
|
73
73
|
getScrollStateByParam(param: IScrollStateSearchParam): Readonly<Nullable<IScrollState>>;
|
|
74
74
|
getCurrentScrollState(): Readonly<Nullable<IScrollState>>;
|
|
75
75
|
/**
|
|
76
|
-
* set scrollInfo by
|
|
76
|
+
* set scrollInfo by SetScrollOperation, call by scroll operation
|
|
77
77
|
* @param param
|
|
78
78
|
*/
|
|
79
79
|
setScrollInfoAndEmitEvent(param: IScrollStateWithSearchParam): void;
|
|
@@ -35,7 +35,7 @@ export interface ISheetSelectionRenderService {
|
|
|
35
35
|
getSelectionCellByPosition(x: number, y: number): Nullable<ISelectionCellWithMergeInfo>;
|
|
36
36
|
setSingleSelectionEnabled(enabled: boolean): void;
|
|
37
37
|
}
|
|
38
|
-
export declare const ISheetSelectionRenderService: import('@
|
|
38
|
+
export declare const ISheetSelectionRenderService: import('@wendellhu/redi').IdentifierDecorator<ISheetSelectionRenderService>;
|
|
39
39
|
/**
|
|
40
40
|
* The basic implementation of selection rendering logics. It is designed to be reused for different purposes.
|
|
41
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IRectProps, Scene
|
|
1
|
+
import { RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
2
|
+
import { Rect, IRectProps, Scene } from '@univerjs/engine-render';
|
|
3
3
|
import { ISelectionStyle } from '@univerjs/sheets';
|
|
4
4
|
import { SelectionControl } from './selection-shape';
|
|
5
5
|
export declare class MobileSelectionControl extends SelectionControl {
|
|
@@ -16,15 +16,7 @@ export declare class MobileSelectionControl extends SelectionControl {
|
|
|
16
16
|
* bottomRight controlPointer, it is not visible, just transparent, for handling event.
|
|
17
17
|
*/
|
|
18
18
|
private _fillControlBottomRight;
|
|
19
|
-
|
|
20
|
-
* a very small visible point, placed in control pointer
|
|
21
|
-
*/
|
|
22
|
-
private _fillControlTopLeftInner;
|
|
23
|
-
/**
|
|
24
|
-
* a very small visible point, placed in control pointer
|
|
25
|
-
*/
|
|
26
|
-
private _fillControlBottomRightInner;
|
|
27
|
-
constructor(_scene: Scene, _zIndex: number, _highlightHeader: boolean, _themeService: ThemeService, _rangeType?: RANGE_TYPE);
|
|
19
|
+
constructor(_scene: Scene, _zIndex: number, _highlightHeader: boolean | undefined, _themeService: ThemeService, _rangeType?: RANGE_TYPE);
|
|
28
20
|
initControlPoints(): void;
|
|
29
21
|
get fillControlTopLeft(): Rect<IRectProps> | null;
|
|
30
22
|
set fillControlTopLeft(value: Rect);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IRangeWithCoord, ISelectionCellWithMergeInfo, Nullable, ThemeService
|
|
2
|
-
import {
|
|
3
|
-
import { ISelectionStyle, ISelectionWidgetConfig, ISelectionWithCoordAndStyle } from '@univerjs/sheets';
|
|
1
|
+
import { Disposable, IRangeWithCoord, ISelectionCellWithMergeInfo, Nullable, ThemeService } from '@univerjs/core';
|
|
2
|
+
import { Group, Rect, Scene } from '@univerjs/engine-render';
|
|
4
3
|
import { Subject } from 'rxjs';
|
|
4
|
+
import { ISelectionStyle, ISelectionWidgetConfig, ISelectionWithCoordAndStyle } from '@univerjs/sheets';
|
|
5
5
|
import { SelectionRenderModel } from './selection-render-model';
|
|
6
6
|
export declare enum SELECTION_MANAGER_KEY {
|
|
7
7
|
Selection = "__SpreadsheetSelectionShape__",
|
|
@@ -45,10 +45,10 @@ export declare class SelectionControl extends Disposable {
|
|
|
45
45
|
protected _zIndex: number;
|
|
46
46
|
protected readonly _themeService: ThemeService;
|
|
47
47
|
protected _highlightHeader: boolean;
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
private
|
|
48
|
+
private _leftBorder;
|
|
49
|
+
private _rightBorder;
|
|
50
|
+
private _topBorder;
|
|
51
|
+
private _bottomBorder;
|
|
52
52
|
private _backgroundControlTop;
|
|
53
53
|
private _backgroundControlBottom;
|
|
54
54
|
private _backgroundControlMiddleLeft;
|
|
@@ -69,7 +69,7 @@ export declare class SelectionControl extends Disposable {
|
|
|
69
69
|
private _bottomLeftWidget;
|
|
70
70
|
private _bottomCenterWidget;
|
|
71
71
|
private _bottomRightWidget;
|
|
72
|
-
private
|
|
72
|
+
private _dashedRect;
|
|
73
73
|
protected _selectionModel: SelectionRenderModel;
|
|
74
74
|
private _defaultStyle;
|
|
75
75
|
private _currentStyle;
|
|
@@ -122,7 +122,7 @@ export declare class SelectionControl extends Disposable {
|
|
|
122
122
|
set selectionModel(model: SelectionRenderModel);
|
|
123
123
|
get defaultStyle(): ISelectionStyle;
|
|
124
124
|
set defaultStyle(style: ISelectionStyle);
|
|
125
|
-
get
|
|
125
|
+
get dashedRect(): Rect;
|
|
126
126
|
get currentStyle(): Nullable<ISelectionStyle>;
|
|
127
127
|
set currentStyle(style: Nullable<ISelectionStyle>);
|
|
128
128
|
get isHelperSelection(): boolean;
|
|
@@ -18,7 +18,7 @@ export interface ISheetBarService {
|
|
|
18
18
|
triggerSheetBarMenu(): void;
|
|
19
19
|
registerSheetBarMenuHandler(handler: ISheetBarMenuHandler): IDisposable;
|
|
20
20
|
}
|
|
21
|
-
export declare const ISheetBarService: import('@
|
|
21
|
+
export declare const ISheetBarService: import('@wendellhu/redi').IdentifierDecorator<ISheetBarService>;
|
|
22
22
|
export declare class SheetBarService extends Disposable implements ISheetBarService {
|
|
23
23
|
readonly renameId$: Observable<string>;
|
|
24
24
|
readonly removeId$: Observable<string>;
|
|
@@ -29,4 +29,4 @@ export declare class StatusBarService implements IStatusBarService, IDisposable
|
|
|
29
29
|
getFunctions(): Readonly<IStatusBarFunction[]>;
|
|
30
30
|
addFunctions(functions: IStatusBarFunction[]): void;
|
|
31
31
|
}
|
|
32
|
-
export declare const IStatusBarService: import('@
|
|
32
|
+
export declare const IStatusBarService: import('@wendellhu/redi').IdentifierDecorator<StatusBarService>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ICustomRange, Injector, IParagraph } from '@univerjs/core';
|
|
2
|
+
import { DocumentSkeleton } from '@univerjs/engine-render';
|
|
3
|
+
export declare const calculateDocSkeletonRects: (docSkeleton: DocumentSkeleton, paddingLeft?: number, paddingTop?: number) => {
|
|
4
|
+
links: {
|
|
5
|
+
rects: {
|
|
6
|
+
top: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
}[];
|
|
11
|
+
range: ICustomRange<Record<string, any>>;
|
|
12
|
+
}[];
|
|
13
|
+
checkLists: {
|
|
14
|
+
rect: {
|
|
15
|
+
top: number;
|
|
16
|
+
bottom: number;
|
|
17
|
+
left: number;
|
|
18
|
+
right: number;
|
|
19
|
+
};
|
|
20
|
+
segmentId: undefined;
|
|
21
|
+
segmentPageIndex: number;
|
|
22
|
+
paragraph: IParagraph;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
export declare const getCustomRangePosition: (injector: Injector, unitId: string, subUnitId: string, row: number, col: number, rangeId: string) => {
|
|
26
|
+
rects: {
|
|
27
|
+
top: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
left: number;
|
|
30
|
+
right: number;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
customRange: ICustomRange<Record<string, any>>;
|
|
33
|
+
label: string;
|
|
34
|
+
} | null | undefined;
|
|
35
|
+
export declare const getEditingCustomRangePosition: (injector: Injector, unitId: string, subUnitId: string, row: number, col: number, rangeId: string) => {
|
|
36
|
+
rects: {
|
|
37
|
+
top: number;
|
|
38
|
+
bottom: number;
|
|
39
|
+
left: number;
|
|
40
|
+
right: number;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
customRange: ICustomRange<Record<string, any>>;
|
|
43
|
+
label: string;
|
|
44
|
+
} | null;
|
|
@@ -10,7 +10,7 @@ export declare class UniverSheetsUIPlugin extends Plugin {
|
|
|
10
10
|
static pluginName: string;
|
|
11
11
|
static type: UniverInstanceType;
|
|
12
12
|
/** @ignore */
|
|
13
|
-
constructor(_config: Partial<IUniverSheetsUIConfig
|
|
13
|
+
constructor(_config: Partial<IUniverSheetsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
14
14
|
onStarting(): void;
|
|
15
15
|
onReady(): void;
|
|
16
16
|
onRendered(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IDefinedNamesServiceParam } from '@univerjs/engine-formula';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
3
|
export interface IDefinedNameInputProps extends Omit<IDefinedNamesServiceParam, 'id'> {
|
|
4
4
|
inputId: string;
|
|
5
5
|
type?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { SheetExtension, SpreadsheetSkeleton, UniverRenderingContext } from '@univerjs/engine-render';
|
|
1
2
|
import { ICellDataForSheetInterceptor, IScale } from '@univerjs/core';
|
|
2
|
-
import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
|
|
3
3
|
import { ICellPermission } from '@univerjs/sheets';
|
|
4
4
|
export declare const RANGE_PROTECTION_CAN_VIEW_RENDER_EXTENSION_KEY = "RANGE_PROTECTION_CAN_VIEW_RENDER_EXTENSION_KEY";
|
|
5
5
|
export declare const RANGE_PROTECTION_CAN_NOT_VIEW_RENDER_EXTENSION_KEY = "RANGE_PROTECTION_CAN_NOT_VIEW_RENDER_EXTENSION_KEY";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { SheetExtension, SpreadsheetSkeleton, UniverRenderingContext } from '@univerjs/engine-render';
|
|
1
2
|
import { IScale } from '@univerjs/core';
|
|
2
|
-
import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
|
|
3
3
|
export declare const worksheetProtectionKey = "worksheet-protection";
|
|
4
4
|
export declare class WorksheetProtectionRenderExtension extends SheetExtension {
|
|
5
5
|
uKey: string;
|