import * as _angular_core from '@angular/core'; import { MTIcon } from '@masterteam/icons'; type TabSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'warning' | 'danger' | 'error' | 'help' | 'contrast'; interface OptionItem { label?: string; value?: any; icon?: MTIcon | null; badge?: number | string | null; severity?: TabSeverity | null; disabled?: boolean; /** * The host is still resolving this tab's title — typically it names a record * that is being fetched. The label slot renders a placeholder instead of the * text, so the tab never flashes a stand-in name before the real one lands. * Keep supplying the fallback `label`: it stays the accessible name and is * still what the "more" search matches against. */ loading?: boolean; [key: string]: unknown; } type NormalizedTabSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast'; declare class Tabs { private readonly transloco; options: _angular_core.InputSignal; optionLabel: _angular_core.InputSignal; optionValue: _angular_core.InputSignal; active: _angular_core.ModelSignal; readonly mode: _angular_core.InputSignal<"horizontal" | "vertical" | "underline">; readonly moreLabel: _angular_core.InputSignal; readonly defaultIcon: _angular_core.InputSignal; onChange: _angular_core.OutputEmitterRef; readonly size: _angular_core.InputSignal<"small" | "large" | undefined>; readonly fluid: _angular_core.InputSignalWithTransform; disabled: _angular_core.InputSignalWithTransform; private readonly destroyRef; private readonly tabsContainer; private readonly measureRow; private readonly morePopover; private readonly moreBlock; private resizeObserver?; private measureHandle; private alignHandle; /** Last real width of the more block; 0 until it has been rendered once. */ private moreWidth; readonly visibleCount: _angular_core.WritableSignal; /** Natural width of every option, in order, from the measurement ghost row. */ private readonly tabWidths; /** Room the visible row actually has, once the more button is accounted for. */ private readonly availableWidth; private readonly activeIndex; /** * The tabs the strip shows — the widest prefix that fits, plus the active tab * if that prefix would have hidden it. * * Without the second half, selecting a tab from the more menu left the strip * with nothing selected at all: no underline, and no `aria-selected` on any * tab, so neither a sighted user nor a screen reader could tell where they * were. A project exposes twenty-three tabs and ten of them sit in the menu, * so this is the normal case for a third of the product, not an edge. * * The active tab is appended rather than swapped in, which keeps the row in * the options' own order: everything in the prefix precedes it already. * Trailing tabs are dropped until it genuinely fits, using the same measured * widths the prefix was chosen with, so pinning never pushes the row wider * than the space it was measured against. */ readonly visibleOptions: _angular_core.Signal; readonly overflowOptions: _angular_core.Signal; readonly hasOverflow: _angular_core.Signal; readonly searchThreshold: _angular_core.InputSignal; readonly searchTerm: _angular_core.WritableSignal; readonly showOverflowSearch: _angular_core.Signal; readonly filteredOverflowOptions: _angular_core.Signal; constructor(); private setupResizeObserver; private scheduleMeasure; private measureAndUpdate; onTabChange(value: any): void; onOverflowSearch(value: string): void; private scheduleOverflowAlign; onOverflowPopoverHide(): void; onOptionSelect(option: OptionItem): void; resolveLabel(option: OptionItem): string; resolveValue(option: OptionItem): unknown; resolveIcon(option: OptionItem): MTIcon | null; resolveIconOrDefault(option: OptionItem): MTIcon; resolveBadge(option: OptionItem): number | string | null; isOptionLoading(option: OptionItem): boolean; hasBadge(option: OptionItem): boolean; hasCountBadge(option: OptionItem): boolean; severity(option: OptionItem): NormalizedTabSeverity; isSeverity(option: OptionItem, severity: NormalizedTabSeverity): boolean; hasNonPrimarySeverity(option: OptionItem): boolean; isActiveOption(option: OptionItem): boolean; isOptionDisabled(option: OptionItem): boolean; trackOption(option: OptionItem, index: number): unknown; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { Tabs }; export type { OptionItem, TabSeverity };