import { EventEmitter } from '../../stencil-public-runtime'; import { MdsTabEventDetail } from './meta/event-detail'; import { MdsTabItemEventDetail } from "../mds-tab-item/meta/event-detail"; import { HorizontalActionsAnimationType } from "../../type/animation"; import { TabSizeType } from "../../type/button"; import { DirectionType } from './meta/type'; /** * @part contents - Selects the container of the tabbed contents elements. * @part slider - Selects the slider element which is visible when attribute `animation` is set to `slide`. * @part tabs - Selects the container of `mds-tab-item` list elements. * @slot content - Add `HTML elements` or `components`, one per mds-tab-item added; or none, when the * items are links (`href`) to other pages or places and the page, not the component, shows the * content. * @slot - Add `mds-tab-item` element/s. * @category navigation */ export declare class MdsTab { private element; private currentItemIndex; private currentItemEl; private tabs; private tabsContainer; private observer?; private tabItems; private contentItems; private cssSlideDelayDuration; sliderWidth: number; sliderHeight: number; sliderOffsetX: number; sliderOffsetY: number; /** the slider slides only to follow a selection, any other move draws it in place */ sliderSlides: boolean; overflowLeft: boolean; overflowRight: boolean; /** every item is a link: the strip is a navigation, not a tablist */ navigation: boolean; hasContent: boolean; /** * Sets if the component distributes item vertically or horzontally */ direction?: DirectionType; /** * Shows the horizontal scrollbar to maximize accessibility */ scrollbar?: boolean; /** * Sets the animation type of the selection transition between `mds-tab-item` elements */ readonly animation?: HorizontalActionsAnimationType; /** * Sets if the tab area should fill the entire width */ fill?: boolean; /** * Sets if the tab area should show an inset shadow when the tabs overflows it's container */ overflow?: boolean; /** * Sets the size of the component items nested inside it */ size?: TabSizeType; /** * Emits when a children is changed */ changedEvent: EventEmitter; private queryContentItems; componentWillLoad(): void; connectedCallback(): void; disconnectedCallback(): void; componentDidLoad(): void; private updateContentItems; private setTabsItems; private updateTabItems; private unsetOverflowCheck; private initOverflowCheck; private updateOverflowState; /** * Moves the slider under the selected item. It slides there only to follow a selection * (`slide`): on load, after a change of the layout, or when the strip is shown again after * being hidden, it is drawn in place, so the strip appears with the selected tab already * marked (#924). */ private updateSliderPosition; private scrollTabs; private selectContentItem; private readonly updateCSSCustomProps; changeEventHandler(event: CustomEvent): void; focusEventHandler(event: CustomEvent): void; handleAnimationChange(newValue?: HorizontalActionsAnimationType): void; handleDirectionChange(newValue?: DirectionType): void; handleScrollbarChange(newValue?: boolean): void; handleFillChange(newValue?: boolean): void; handleOverflowChange(newValue?: boolean): void; handleSizeChange(newValue?: TabSizeType): void; render(): any; }