import { ID } from "../../types/index.mjs"; import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { Ref } from "vue"; //#region src/components/DataGrid/DataGridRow.vue.d.ts interface DataGridRowContext { id: Readonly>; resizable: Readonly>; /** Record a Column id in child mount (Splitter panel) order. */ registerColumn: (id: string) => void; /** Drop a Column id when it unmounts. */ unregisterColumn: (id: string) => void; } declare const useDataGridRow: (key: string, defaultValue?: DataGridRowContext | null | undefined) => DataGridRowContext | null, provideDataGridRow: (key: string, context: DataGridRowContext | null, app?: import("vue").App) => DataGridRowContext | null; interface DataGridRowProps extends AtomProps { /** Namespace for dependency injection. @default 'v0:data-grid' */ namespace?: string; /** Row identifier. Registers a data ticket when set with `value`. */ id?: ID; /** Row value to register. Omit on header rows. */ value?: object; /** 1-based aria-rowindex. Defaults to the row's position in orderedItems. */ index?: number; /** Emit aria-selected. @default false */ selectable?: boolean; /** * Enable column resizing via Splitter composition. * When true, the row renders as Splitter.Root and child columns * register as Splitter.Panel. Place DataGrid.Handle inside Column * (not as a sibling of Column) so the row's owned children stay * columnheaders. Requires the `as="div"` chain — native table tags * cannot host Splitter. */ resizable?: boolean; } interface DataGridRowSlotProps { /** Registered row id */ id: ID | undefined; /** Registered row record. Undefined on header rows. */ value: object | undefined; /** Whether this row has resizable columns */ isResizable: boolean; /** Whether this row is selected */ isSelected: boolean; /** Whether this row is selectable */ isSelectable: boolean; /** Whether this row is expanded */ isExpanded: boolean; /** Whether this data row is on the current page. Header rows are always visible. */ isVisible: boolean; /** Toggle row selection */ toggleSelection: () => void; /** Toggle row expansion */ toggleExpansion: () => void; attrs: { 'role': 'row'; 'aria-selected': boolean | undefined; 'aria-rowindex': number | undefined; 'data-selected': true | undefined; 'data-expanded': true | undefined; 'onClick': (() => void) | undefined; }; } declare const _default: typeof __VLS_export; declare const __VLS_export: __VLS_WithSlots & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { default: (props: DataGridRowSlotProps) => unknown; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion export { DataGridRowContext, DataGridRowProps, DataGridRowSlotProps, _default as default, provideDataGridRow, useDataGridRow };