import type { CommentAction, CommentAuthor, CommentThread } from 'dou-ui' import type { Component } from 'vue' import type { SheetCellTarget, SheetRange } from './core/address' import type { SheetClip } from './core/clipboard' import type { SheetCSVWriteOptions } from './core/csv' import type { SheetCommands } from './core/commands' import type { SheetCommentAnchor } from './core/comments' import type { SheetSearchQuery, SheetMatch } from './core/find' import type { SheetExtension } from './core/extension' import type { SheetLinkTarget } from './core/link' import type { SheetCSVExportOptions, SheetExporter, SheetExporterInfo, SheetExportScope, SheetImportResult, SheetImportWarning, } from './core/file' import type { SheetValidation, SheetWorkbook } from './core/model' import type { SheetSelection } from './core/selection' import type { SheetRef, SheetTransaction, SheetTransactionMeta } from './core/transaction' import type { SheetMessagesOverride } from './locale' export interface SheetProps { /** The workbook. Changes come back through `update:modelValue`. */ modelValue: SheetWorkbook /** What is selected; bind with `v-model:selection`. */ selection?: SheetSelection /** The index of the sheet shown; bind with `v-model:activeSheet`. Defaults to 0. */ activeSheet?: number /** * Show the cells without letting people change them in the grid; * selecting still works. Changes made with `transact` still apply. */ readonly?: boolean /** The default row height, in px. */ rowHeight?: number /** The default column width, in px. */ colWidth?: number /** Show the column letters and row numbers. */ headers?: boolean /** * Show the outline of the groups beside the headers. Without it, groups * stay folded or shown as they are, and fold from the menu and the keys. */ outline?: boolean /** Draw lines between cells. */ gridlines?: boolean /** * The hairline frame and rounded corners around the grid and its header * and footer slots. Off, the sheet takes no border at all, for a panel * or page region that already has an edge. On by default. */ bordered?: boolean /** How many changes undo can go back. */ historyDepth?: number /** The grid's accessible name. */ ariaLabel?: string /** Texts to change. */ messages?: SheetMessagesOverride /** * Changes the right-click menu: gets the items the grid would show and * where the menu opened, and returns the items to show. Items can be * removed, reordered, or added with a `run` of their own. */ menu?: (items: SheetMenuItem[], context: SheetMenuContext) => SheetMenuItem[] /** * Extensions: cell types, keys, menu items, overlays and hooks. Create * the list once, in `