import { LitElement, type PropertyValues } from 'lit'; import { Ghost } from '@nvidia-elements/core/ghost'; import type { DashboardCommandContext, DashboardGridPlacement, DashboardLayout } from './dashboard.types.js'; /** * @element nve-dashboard * @attribute {string} value - JSON serialization of DashboardLayout. An absent, empty, or invalid JSON attribute selects automatic layout. * @description Arranges application panels on a resizable grid with a restorable layout. Give panels durable IDs to preserve their identities across layout changes. * @documentation https://nvidia.github.io/elements/docs/elements/dashboard/ * @since 2.24.0 * @stable false * @entrypoint \@nvidia-elements/core/dashboard * @command --enter-fullscreen - Present the invoking panel in native fullscreen. * @command --exit-fullscreen - Exit native fullscreen. * @command --toggle-fullscreen - Toggle native fullscreen for the invoking panel. * @command --place - Apply the invoking control's integer grid placement without pointer target snapping. Target a panel directly or identify it with value when targeting the dashboard. Anchored span changes require resizing; other position changes require movement. * @command --move-left - Move left through the same contact-aware movement step as a movement-handle arrow key. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --move-right - Move right through the same contact-aware movement step as a movement-handle arrow key. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --move-up - Move up through the same contact-aware movement step as a movement-handle arrow key. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --move-down - Move down through the same contact-aware movement step as a movement-handle arrow key. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --move-to-start - Place at the growth-axis start, using available space before making room. Keep the bounded-axis coordinate unless placement supplies another. Uses the same operation as Home on the movement grip. * @command --increase-width - Increase width by one cell, subject to panel constraints. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --decrease-width - Decrease width by one cell, subject to panel constraints. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --increase-height - Increase height by one cell, subject to panel constraints. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @command --decrease-height - Decrease height by one cell, subject to panel constraints. Target a panel directly or identify it with value on an invoker targeting the dashboard. * @slot - Direct dashboard panels with unique durable IDs, required headers, and application dropdown groups. DOM order remains application authored. Native reading order follows committed placement where supported; previews preserve that order. * @event change - Announces one committed arrangement after interaction, commands, or panel membership and span-constraint reconciliation. Read value on the dashboard; authored content events still bubble normally. * @event {Event} commandavailabilitychange - Arrangement or fullscreen command availability may have changed. * @cssprop --column-size - Single-cell outer column length in fixed sizing or horizontal flow. Defaults to 160px. * @cssprop --row-size - Single-cell outer row length in fixed sizing or vertical flow. Defaults to 120px. * @cssprop --gap - Nonnegative CSS length between cells. Include units, including 0px for no gap. At zero, uniform used border widths overlap; unequal widths keep independent geometry. Shared seams assume square panels with solid opaque borders. * @cssprop --guide-color - Color of the circular cell-center guides. Defaults to the muted border color. * @cssprop --guide-size - Nonnegative CSS length for the guide circle diameter. Defaults to 8px. Include units, including 0px to hide the circles. * @cssprop --height - Default viewport height. Defaults to 400px; horizontal fit needs a definite height. * @cssprop --animation-duration - Duration of panel geometry, destination ghost geometry, and arrangement control transitions. Defaults to 150ms; reduced motion uses 0ms. Panel geometry follows external container resizing immediately; interactive arrangement, animateTo(), and sizing changes use transitions. Animation never delays logical placement commits. * @cssprop --animation-easing - Easing of panel and destination ghost geometry transitions. * @csspart ghost - Inert placement preview shown during pointer arrangement. */ export declare class Dashboard extends LitElement { #private; static styles: import("lit").CSSResult[]; static readonly metadata: { tag: string; version: string; children: string[]; }; static elementDefinitions: { [Ghost.metadata.tag]: typeof Ghost; }; /** Localized labels and placement announcements. Grid placement placeholders are column, row, columnSpan, and rowSpan. */ i18n: Partial; /** Enables moving and resizing panels through controls and placement commands. */ rearrangeable: boolean; /** Enables native fullscreen commands and a header control for each panel. Turning this off preserves an accepted session and its exit control. Fullscreen does not change the saved arrangement. */ fullscreenable: boolean; /** Selects panel content framing. */ container?: 'inset' | 'flat' | 'full'; /** Cell sizing, defaulting to fit. Fit sizing fits bounded tracks to the viewport and scrolls along the growth axis. Fixed sizing uses the configured --column-size and --row-size dimensions and may scroll on both axes. Does not change value. */ sizing: 'fit' | 'fixed'; /** Guide visibility: auto shows circular cell-center guides during pointer arrangement, visible always shows them, and hidden hides them while keeping the destination preview. Attribute keywords ignore case; missing, empty, or unrecognized values use auto. Does not change value or interaction permissions. */ guides: 'auto' | 'visible' | 'hidden'; /** Closes growth-axis gaps toward top in vertical flow or inline start in horizontal flow, preserving bounded-axis positions and spans. Defaults to false. Enabling silently canonicalizes the current arrangement; disabling keeps current coordinates. This policy is independent of value. */ get autoSettle(): boolean; set autoSettle(value: boolean); /** * Current layout. Assigning a layout applies it immediately without emitting a `change` event. */ get value(): DashboardLayout | undefined; set value(value: DashboardLayout | null | undefined); /** Growth direction, defaulting to vertical with bounded columns. Horizontal flow bounds rows. Changing flow does not transpose panel coordinates or spans. Assignment updates the arrangement silently; changes that conflict with panel constraints throw before changing the arrangement. */ get flow(): 'vertical' | 'horizontal'; set flow(value: 'vertical' | 'horizontal'); /** Bounded-axis track count, defaulting to 12. Valid integers range from 1 through 1000000. Assignment updates the arrangement silently and rejects changes that conflict with panel constraints. */ get tracks(): number; set tracks(value: number); private announcement; protected firstUpdated(): void; protected willUpdate(changed: PropertyValues): void; protected updated(): void; /** Restores an arrangement with animated geometry while retaining application content. */ animateTo(value: DashboardLayout | null | undefined): void; /** Requests an integer placement without gesture target snapping. Anchored span changes use resizing permission, including left and top edges that change the origin; other position changes require movement. Directional collisions and optional growth-axis settling determine the final arrangement. Returns false for unavailable, invalid, or unchanged normalized placement. Successful placement emits one change. */ place(id: string, placement: DashboardGridPlacement): boolean; /** Queries arrangement and fullscreen commands using a panel ID. A placement supplies the full grid placement for --place, or the desired bounded-axis coordinate for --move-to-start. Availability compares the complete normalized proposal with the current arrangement. Directional movement derives from grid placement and panel permissions without requiring rendered controls. Native fullscreen admission remains subject to browser permission. */ isCommandAvailable(command: string, context?: DashboardCommandContext): boolean; render(): import("lit-html").TemplateResult<1>; }