import "./icon-YIyJDwM9.js"; import { LitElement, PropertyValues } from "lit"; import { CommandRegistry } from "@clinth/ui-commands"; /** * CSS vars (can be overridden per-instance): * --selected-colour: text colour when selected * --selected-border-width: border width * --ixfx-tab-padding: vertical padding for the tab content (default: var(--space-m)) * --ixfx-tab-padding-horizontal: horizontal padding (default: same as --ixfx-tab-padding) */ declare class TabListItemElement extends LitElement { closeable: boolean; hideLabels: boolean; /** * Label does not stretch to fill the tab (`flex: 0 0 auto` instead of * `1 1 auto`), so status content sits next to the label instead of being * pushed to the far edge. Set on the item, or on `ixfx-tab-list` which * mirrors it onto every item. */ labelNogrow: boolean; iconName: string | undefined; description: string | undefined; commandActive: string | undefined; registry: CommandRegistry | undefined; private _compact; private _hasToolbarContent; private _hasStatusContent; private _commandCleanup?; private _onLabelMutation; connectedCallback(): void; disconnectedCallback(): void; updated(changed: PropertyValues): void; private _syncTooltipAttrs; private _syncCommandListener; private _onToolbarSlotChange; private _onStatusSlotChange; private _onLabelSlotChange; /** * Attach slotchange listeners. The shadow root is empty during the first * connectedCallback (the template only exists once rendered), so this is * called again from firstUpdated. addEventListener dedupes identical * listener registrations, so double-wiring is harmless. */ private _wireSlotListeners; private _unwireSlotListeners; /** * Mirror the default-slot text into `.label[data-label]` for the `::after` * width sizer. Slotted toolbar content is excluded. */ private _syncLabelSizer; private _updateToolbarContent; /** * Named slots only render once content has been detected, so reading * assignedElements() cannot bootstrap detection. Direct light-DOM children * are exactly what a slot assigns, so scan those instead. */ private _updateStatusContent; firstUpdated(): void; render(): import("lit").TemplateResult<1>; private _onCloseClick; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { "ixfx-tab-list-item": TabListItemElement; } } /** * Events * 'change' - new tab selected { previous:string, selected:string, for:string } * 'reorder' - tab moved within the list { id:string, fromIndex:number, toIndex:number } */ type TabListChangeDetail = { readonly previous: string | undefined; readonly selected: string; readonly for: string; }; type TabListChangeEvent = CustomEvent; type TabListReorderDetail = { readonly id: string; readonly fromIndex: number; readonly toIndex: number; }; type TabListReorderEvent = CustomEvent; type TabListDragMode = `off` | `reorder`; declare class TabListElement extends LitElement { #private; orientation: `horizontal` | `vertical-stack` | `vertical-side`; flip: boolean; scrollable: boolean; hideLabels: boolean; /** * Labels of the child items do not stretch to fill each tab * (`flex: 0 0 auto`), so status content sits next to the label text. * Mirrored onto every item as a `label-nogrow` attribute. */ labelNogrow: boolean; shrink: boolean; dragMode: TabListDragMode; render(): import("lit").TemplateResult<1>; firstUpdated(): void; updated(changedProperties: PropertyValues): void; connectedCallback(): void; getSelectedElement(): TabListItemElement | undefined; selectElement(el: HTMLElement): void; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { "ixfx-tab-list": TabListElement; } } export { TabListReorderDetail as a, TabListElement as i, TabListChangeEvent as n, TabListReorderEvent as o, TabListDragMode as r, TabListItemElement as s, TabListChangeDetail as t };