/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * What a row IS under the canvas's state — its role under a row focus, and * what its caret toggles. The renderer (`root/rows.tsx`, `rows/BodyRow.tsx`) * and the keyboard map (`root/keyboard.ts`, #819) read the same answers, so a * key can never do something a click would not. * * @packageDocumentation */ import { type PlanFocusCtx, type VisibleRow } from "../model.js"; import type { PlanEvent } from "../plan-state.js"; /** * A row's presentation under the canvas's row focus: `pinned` (R1 — a pinned * row the links focus does not gather: above the body, it cannot fold away, so * it strips to 16px, its name, value and dot kept in their cells; #1680's * review), `ctx` (R2 — a context strip beside the expanded row, 16px), `focal` * (the R2 expanded row, when it has a render), or `none` — every row a links * focus gathers or folds into its others' band among them. Group bands are * wayfinding and never compress. * * @param v - The visible row * @param focusCtx - The canvas's row focus, if any * @param hasRender - Whether the expand render resolved to a body * @returns The row's role */ export declare function planRowRole(v: VisibleRow, focusCtx: PlanFocusCtx | undefined, hasRender: boolean): "pinned" | "ctx" | "focal" | "none"; /** What a row's caret toggles, and whether that is open now. */ export interface PlanRowToggle { /** The interaction a caret click — Space, ← / → — dispatches. */ event: PlanEvent; /** Whether the section (or chart) is open. */ open: boolean; } /** * A row's caret — a group band's section, a nesting parent's subtree (span, * heat, buckets and table parents), an expandable chart's spark ↔ expanded. * Cards and events rows, and charts that do not declare `expandable`, have * none. * * @param v - The visible row * @param hasChildren - Whether the row nests rows * @param chartExpanded - Whether the user expanded this chart row * @returns The toggle, or `undefined` for a row with no caret */ export declare function rowToggle(v: VisibleRow, hasChildren: boolean, chartExpanded: boolean): PlanRowToggle | undefined; //# sourceMappingURL=row-facts.d.ts.map