import { LitElement, type PropertyValues } from 'lit'; import { DragHandle } from '@nvidia-elements/core/drag-handle'; import { Ghost } from '@nvidia-elements/core/ghost'; import { Icon } from '@nvidia-elements/core/icon'; import { IconButton } from '@nvidia-elements/core/icon-button'; import { ResizeHandle } from '@nvidia-elements/core/resize-handle'; import { Tabs, TabsItem, TabsItemGroup } from '@nvidia-elements/core/tabs'; import type { WorkspaceCommandContext } from './utils/interaction/command.utils.js'; import type { WorkspaceLayout } from './utils/model/layout.utils.js'; import type { WorkspaceAnimationOptions } from './workspace.types.js'; /** * @element nve-workspace * @attribute {string} value - JSON serialization of WorkspaceLayout. An absent, empty, or invalid JSON attribute selects automatic layout. * @description Arranges application panels in a configurable, restorable workspace. Use durable panel IDs so saved layouts can reconnect to the same application surfaces. * @documentation https://nvidia.github.io/elements/docs/elements/workspace/ * @since 2.23.0 * @stable false * @entrypoint \@nvidia-elements/core/workspace * @command --enter-fullscreen - Present the invoking panel's group in native fullscreen. * @command --exit-fullscreen - Exit native fullscreen. * @command --toggle-fullscreen - Toggle native fullscreen for the invoking panel's group. * @command --open - Open and activate the targeted supplied panel. Repeated activation is silent. * @command --close - Close the targeted panel when its workspace is closable. * @command --select - Activate an open supplied panel without reopening a closed panel. * @command --place - Apply the invoker's typed placement request when rearrangeable; membership changes also require groupable. * @slot - Workspace panels with durable IDs and application dropdown groups. * @event change - Announces a committed arrangement value after interaction, commands, or reconciliation of newly supplied panels. Read value on the workspace. * @event commandavailabilitychange - Command availability may have changed; query relevant commands again. * @cssprop --gap - Space between groups as one nonnegative CSS length. * @cssprop --border-radius - Corner radius of contained groups. * @cssprop --tab-min-width - Smallest tab width before scrolling. * @cssprop --tab-border - Border between tabs, after the drag handle, and before group controls without an authored suffix. * @cssprop --header-control-size - Size of built-in header buttons and the base drag handle width. * @cssprop --header-control-inset - Horizontal spacing around fullscreen and the drag handle. * @cssprop --close-button-inset - Space after each panel close control. * @cssprop --animation-duration - Duration of coordinated layout and placement transitions. * @cssprop --animation-easing - Easing of coordinated layout and placement transitions. * @cssprop --gutter-background - Idle separator fill. * @cssprop --gutter-hover-background - Separator fill on hover. * @csspart tabs - Tab strips. * @csspart tabs-item - Panel selection controls. * @csspart tab - Alias for panel selection controls. * @csspart tabs-item-group - Tab and accessory layouts. * @csspart icon-button - Built-in header icon controls. * @csspart fullscreen-button - Group fullscreen control. * @csspart close-button - Panel closing controls. * @csspart resize-handle - Separator control. * @csspart ghost - Destination and carried previews. * @csspart destination-ghost - Animated insertion cue. * @csspart carried-ghost - Pointer-following carried panel previews. * @csspart icon - Placement status icons. * @csspart blocked-icon - Unavailable placement indicator. * @csspart drag-handle - Group movement control. */ export declare class Workspace extends LitElement { #private; static styles: import("lit").CSSResult[]; static readonly metadata: { tag: string; version: string; children: string[]; }; static elementDefinitions: { [DragHandle.metadata.tag]: typeof DragHandle; [Ghost.metadata.tag]: typeof Ghost; [Icon.metadata.tag]: typeof Icon; [IconButton.metadata.tag]: typeof IconButton; [ResizeHandle.metadata.tag]: typeof ResizeHandle; [Tabs.metadata.tag]: typeof Tabs; [TabsItem.metadata.tag]: typeof TabsItem; [TabsItemGroup.metadata.tag]: typeof TabsItemGroup; }; /** Overrides localized workspace controls. */ i18n: Partial; /** Enables separator resizing. */ resizable: boolean; /** Enables moving groups and placement commands. Dragging individual tabs also requires groupable. */ rearrangeable: boolean; /** Enables dragging individual tabs, joining panels, and extracting panels when rearrangeable. */ groupable: boolean; /** Enables native fullscreen commands and one persistent control per group. Turning this off preserves an accepted session and its exit control. Fullscreen does not change the saved arrangement. */ fullscreenable: boolean; /** Radial pointer distance in CSS pixels before a carried source detaches. Captured at gesture press. */ detachThreshold: number; /** Enables closing supplied panels. */ closable: boolean; /** Selects separator constraint behavior. */ resizePolicy: 'stop' | 'propagate'; /** Selects panel content framing. */ container?: 'inset' | 'flat' | 'full'; /** * Current layout. Assigning a layout does not emit a `change` event. */ get value(): WorkspaceLayout | undefined; set value(value: WorkspaceLayout | null | undefined); connectedCallback(): void; disconnectedCallback(): void; protected willUpdate(changed: PropertyValues): void; protected updated(): void; /** Restores an arrangement with animated geometry while retaining application content. */ animateTo(value: WorkspaceLayout | null | undefined, options?: WorkspaceAnimationOptions): void; /** Reports whether a command can change the panel identified by `context.value` in the current arrangement. Native fullscreen admission remains subject to browser permission. */ isCommandAvailable(command: string, context?: WorkspaceCommandContext): boolean; render(): import("lit-html").TemplateResult<1>; }