import { EventEmitter } from '../../stencil-public-runtime'; /** * @slot default - The `nv-tabitem` tabs, shown in document order. */ export declare class NvTabs { el: HTMLNvTabsElement; /** * The tabs and the selected tab at the last update. When the selected tab is * removed or disabled, its replacement is found in this old order, because a * batch of changes makes an old position meaningless in the new list. */ private previousItems; private selectedItem?; /** * Whether the group has ever had a selection. Only the very first selection * is silent; one that comes back after every tab was disabled is a change. */ private hasHadSelection; /** The tab that holds focus, so focus can move on when it is removed. */ private focusedItem?; /** True while the component writes `value` itself, so the watcher skips it. */ private writingValue; private hasLoaded; private childObserver?; /** True while a reconciliation of a consumer's `value` write is pending. */ private valueResyncQueued; /****************************************************************************/ /** * The `value` of the selected tab. When it matches no available tab, the * first available tab is selected and this property takes its value. */ value?: string; /** * Shows a line under the whole tab list. It does not change the underline * of the selected tab, which is always visible. */ readonly showSeparator: boolean; /****************************************************************************/ /** * Emitted when `value` changes and you did not write it: when a user * selects a tab, when the selected tab is removed or disabled and another * one takes its place, and when another tab is selected after every tab * was disabled. It is not emitted when the value stays the same, when you * set `value` to an available tab yourself, or for the first selection the * group ever has. * @bind value */ valueChanged: EventEmitter; /****************************************************************************/ /** * Returns the tab that an event came from, when it is one of this group's. * @param {EventTarget | null} target - The event target. * @returns {HTMLNvTabitemElement | undefined} The tab, if any. */ private tabFrom; /** * Writes `value` without the watcher treating it as the consumer's write. * @param {string | undefined} value - The new value. */ private writeValue; /** * Gives one tab the single tab stop of the group, and takes it from the * others. * @param {HTMLNvTabitemElement[]} items - The tabs. * @param {HTMLNvTabitemElement | undefined} stop - The tab that takes the * stop. None when no tab is available. */ private setTabStop; /** * Marks the selected tab and places the one tab stop of the group. * * `aria-selected` and `tabindex` are set on the tab elements from here. The * scoping document gives the selection to the container alone, so a tab has * no public property for it. * * The tab stop goes with focus while focus is in the group, so Tab * leaves the group from any tab. Otherwise it is on the selected tab, which * is where the group is entered. * @param {number} [preferredIndex] - The tab that takes over from a lost * selection. * @returns {string | undefined} The new value when the selection moved to * another value, otherwise undefined. */ private syncSelection; /** * Updates the selection for a change the user did not make, and tells the * consumer when the selected value moved. * * Every such path comes through here, so the rule holds on all of them: only * the very first selection the group ever has is silent. Tabs that arrive * after the container loaded, as Blazor streams them, or a value written in * the same step, give it that first selection, which is no more news than it * is at load. A selection that comes back after every tab was disabled is. * @param {number} [preferredIndex] - The tab that takes over from a lost * selection. */ private resync; /** * Selects a tab because the user activated it. * @param {HTMLNvTabitemElement} item - The tab. */ private activate; /** * Updates the selection after tabs were added, removed, reordered, * disabled or given another value. * @param {MutationRecord[]} [mutations] - What the watch saw. Empty when * called directly, as on a reconnect. */ private handleChildrenChange; /****************************************************************************/ handleValueChange(): void; /****************************************************************************/ private handleClick; private handleKeydown; private handleFocusin; private handleFocusout; /****************************************************************************/ connectedCallback(): void; disconnectedCallback(): void; componentWillLoad(): void; /****************************************************************************/ render(): any; }