UNPKG

@odoo/o-spreadsheet

Version:
52 lines (51 loc) 2.22 kB
import { Component } from "../../owl3_compatibility_layer"; import { DOMCoordinates, DOMDimension, Rect } from "../../types/rendering"; import { SpreadsheetChildEnv } from "../../types/spreadsheet_env"; import { Store } from "../../types/store_engine"; import { DelayedHoveredCellStore } from "../grid/delayed_hovered_cell_store"; import { GridOverlay } from "../grid_overlay/grid_overlay"; import { GridPopover } from "../grid_popover/grid_popover"; import { CellPopoverStore } from "../popover/cell_popover_store"; import { Popover } from "../popover/popover"; import { HorizontalScrollBar } from "../scrollbar/scrollbar_horizontal"; import { VerticalScrollBar } from "../scrollbar/scrollbar_vertical"; import { ClickableCell, ClickableCellsStore } from "./clickable_cell_store"; export declare class SpreadsheetDashboard extends Component<SpreadsheetChildEnv> { static template: string; static components: { GridOverlay: typeof GridOverlay; GridPopover: typeof GridPopover; Popover: typeof Popover; VerticalScrollBar: typeof VerticalScrollBar; HorizontalScrollBar: typeof HorizontalScrollBar; }; protected props: import("@odoo/owl").Props<{ getGridSize: () => DOMDimension; }>; protected cellPopovers: Store<CellPopoverStore>; onMouseWheel: (ev: WheelEvent) => void; canvasPosition: DOMCoordinates; hoveredCell: Store<DelayedHoveredCellStore>; clickableCellsStore: Store<ClickableCellsStore>; private gridRef; private canvasRef; setup(): void; get gridContainer(): string; get gridOverlayDimensions(): string; getCellClickableStyle(coordinates: Rect): string; /** * Get all the boxes for the cell in the sheet view that are clickable. * This function is used to render an overlay over each clickable cell in * order to display a pointer cursor. * */ getClickableCells(): ClickableCell[]; selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void; onClosePopover(): void; onGridResized(): void; private moveCanvas; private getGridRect; private getMaxSheetWidth; get dashboardStyle(): string; get backgroundStyle(): string; }