@univerjs/sheets-ui 0.6.6 → 0.6.7-experimental.20250326-6499c07

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.
@@ -1,6 +1,6 @@
1
1
  import { IRange, Disposable, IConfigService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { RenderManagerService } from '@univerjs/engine-render';
3
- import { ISetWorksheetRowAutoHeightMutationParams, SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
3
+ import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
4
4
  export declare const AFFECT_LAYOUT_STYLES: string[];
5
5
  export declare class AutoHeightController extends Disposable {
6
6
  private readonly _renderManagerService;
@@ -10,15 +10,9 @@ export declare class AutoHeightController extends Disposable {
10
10
  private readonly _configService;
11
11
  constructor(_renderManagerService: RenderManagerService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService);
12
12
  private _getRangesScope;
13
- getUndoRedoParamsOfAutoHeight(ranges: IRange[]): {
14
- undos: {
15
- id: string;
16
- params: ISetWorksheetRowAutoHeightMutationParams;
17
- }[];
18
- redos: {
19
- id: string;
20
- params: ISetWorksheetRowAutoHeightMutationParams;
21
- }[];
13
+ getUndoRedoParamsOfAutoHeight(ranges: IRange[], subUnitIdParam?: string): {
14
+ redos: any[];
15
+ undos: any[];
22
16
  };
23
17
  private _initialize;
24
18
  }
@@ -1,4 +1,5 @@
1
1
  import { DependencyOverride } from '@univerjs/core';
2
+ import { IScrollBarProps } from '@univerjs/engine-render';
2
3
  import { MenuConfig } from '@univerjs/ui';
3
4
  export declare const SHEETS_UI_PLUGIN_CONFIG_KEY = "sheets-ui.config";
4
5
  export declare const configSymbol: unique symbol;
@@ -20,5 +21,6 @@ export interface IUniverSheetsUIConfig {
20
21
  clipboardConfig?: {
21
22
  hidePasteOptions?: boolean;
22
23
  };
24
+ scrollConfig?: IScrollBarProps;
23
25
  }
24
26
  export declare const defaultPluginConfig: IUniverSheetsUIConfig;
@@ -52,6 +52,7 @@ export declare class EditingRenderController extends Disposable implements IRend
52
52
  private _handleEditorVisible;
53
53
  private _handleEditorInvisible;
54
54
  private _getEditorObject;
55
+ private _isCellImageData;
55
56
  submitCellData(documentDataModel: DocumentDataModel): Promise<boolean>;
56
57
  private _submitCellData;
57
58
  private _exitInput;
@@ -1,4 +1,4 @@
1
- import { Workbook, ICommandService, RxDisposable } from '@univerjs/core';
1
+ import { Workbook, ICommandService, IConfigService, RxDisposable } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule, ISummaryMetric } from '@univerjs/engine-render';
3
3
  import { ITelemetryService } from '@univerjs/telemetry';
4
4
  import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
@@ -12,13 +12,14 @@ export interface ITelemetryData {
12
12
  }
13
13
  export declare class SheetRenderController extends RxDisposable implements IRenderModule {
14
14
  private readonly _context;
15
+ private readonly _configService;
15
16
  private readonly _sheetSkeletonManagerService;
16
17
  private readonly _sheetRenderService;
17
18
  private readonly _commandService;
18
19
  private readonly _telemetryService?;
19
20
  private _renderMetric$;
20
21
  renderMetric$: import('rxjs').Observable<ITelemetryData>;
21
- constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetRenderService: SheetsRenderService, _commandService: ICommandService, _telemetryService?: ITelemetryService | undefined);
22
+ constructor(_context: IRenderContext<Workbook>, _configService: IConfigService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetRenderService: SheetsRenderService, _commandService: ICommandService, _telemetryService?: ITelemetryService | undefined);
22
23
  private _addNewRender;
23
24
  private _renderFrameTimeMetric;
24
25
  private _renderFrameTags;
@@ -60,7 +60,7 @@ export interface IRuleConfirmedData {
60
60
  cellData: Nullable<ICellData>;
61
61
  }
62
62
  export type APPLY_FUNCTIONS = {
63
- [key in APPLY_TYPE]?: (dataWithIndex: ICopyDataInType, len: number, direction: Direction, copyDataPiece: ICopyDataPiece) => Array<Nullable<ICellData>>;
63
+ [key in APPLY_TYPE]?: (dataWithIndex: ICopyDataInType, len: number, direction: Direction, copyDataPiece: ICopyDataPiece, location?: IAutoFillLocation) => Array<Nullable<ICellData>>;
64
64
  };
65
65
  export declare enum APPLY_TYPE {
66
66
  COPY = "COPY",
@@ -1,5 +1,5 @@
1
1
  import { ICustomRange, IParagraph, IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { IBoundRectNoAngle, IMouseEvent, IPointerEvent, IRenderManagerService } from '@univerjs/engine-render';
2
+ import { IBoundRectNoAngle, IDocumentSkeletonDrawing, IMouseEvent, IPointerEvent, IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { ISheetLocation, ISheetLocationBase } from '@univerjs/sheets';
4
4
  export interface IHoverCellPosition {
5
5
  position: IPosition;
@@ -27,7 +27,11 @@ export interface IHoverRichTextInfo extends IHoverCellPosition {
27
27
  * rect of custom-range or bullet
28
28
  */
29
29
  rect?: Nullable<IBoundRectNoAngle>;
30
- drawing?: Nullable<string>;
30
+ drawing?: Nullable<{
31
+ drawingId: string;
32
+ rect: IBoundRectNoAngle;
33
+ drawing: IDocumentSkeletonDrawing;
34
+ }>;
31
35
  }
32
36
  export interface IHoverRichTextPosition extends ISheetLocationBase {
33
37
  /**
@@ -42,7 +46,11 @@ export interface IHoverRichTextPosition extends ISheetLocationBase {
42
46
  * rect of custom-range or bullet
43
47
  */
44
48
  rect?: Nullable<IBoundRectNoAngle>;
45
- drawing?: Nullable<string>;
49
+ drawing?: Nullable<{
50
+ drawingId: string;
51
+ rect: IBoundRectNoAngle;
52
+ drawing: IDocumentSkeletonDrawing;
53
+ }>;
46
54
  event?: IMouseEvent | IPointerEvent;
47
55
  }
48
56
  export interface IHoverHeaderPosition {
@@ -77,6 +85,7 @@ export declare class HoverManagerService extends Disposable {
77
85
  private _currentRowHeaderPointerUp$;
78
86
  private _currentColHeaderPointerUp$;
79
87
  currentCell$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
88
+ currentRichTextNoDistinct$: import('rxjs').Observable<void | IHoverRichTextPosition | null | undefined>;
80
89
  currentRichText$: import('rxjs').Observable<void | IHoverRichTextPosition | null | undefined>;
81
90
  /**
82
91
  * Nearly same as currentRichText$, but with event
@@ -29,6 +29,7 @@ export declare const calculateDocSkeletonRects: (docSkeleton: DocumentSkeleton,
29
29
  left: number;
30
30
  right: number;
31
31
  };
32
+ drawing: import('@univerjs/engine-render').IDocumentSkeletonDrawing;
32
33
  }[];
33
34
  };
34
35
  export declare function calcPadding(cell: ICellWithCoord, font: IFontCacheItem, isNum: boolean): {
@@ -15,6 +15,7 @@
15
15
  */
16
16
  interface IProps {
17
17
  className?: string;
18
+ disableDefinedName?: boolean;
18
19
  }
19
20
  export declare function FormulaBar(props: IProps): import("react/jsx-runtime").JSX.Element;
20
21
  export {};