12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import { LitElement } from 'lit';
- import { EventEmitter } from '../../internal/decorators';
- import type SlTab from '../tab/tab';
- import type SlTabPanel from '../tab-panel/tab-panel';
- export default class SlTabGroup extends LitElement {
- static styles: import("lit").CSSResult;
- tabGroup: HTMLElement;
- body: HTMLElement;
- nav: HTMLElement;
- indicator: HTMLElement;
- private activeTab;
- private mutationObserver;
- private resizeObserver;
- private tabs;
- private panels;
- private hasScrollControls;
- placement: 'top' | 'bottom' | 'start' | 'end';
- activation: 'auto' | 'manual';
- noScrollControls: boolean;
- slTabShow: EventEmitter<{
- tab: string;
- }>;
- slTabHide: EventEmitter<{
- tab: string;
- }>;
- connectedCallback(): void;
- disconnectedCallback(): void;
- show(panel: string): void;
- getAllTabs(includeDisabled?: boolean): SlTab[];
- getAllPanels(): [SlTabPanel];
- getActiveTab(): SlTab | undefined;
- handleClick(event: MouseEvent): void;
- handleKeyDown(event: KeyboardEvent): void;
- handleScrollToStart(): void;
- handleScrollToEnd(): void;
- updateScrollControls(): void;
- setActiveTab(tab: SlTab, options?: {
- emitEvents?: boolean;
- scrollBehavior?: 'auto' | 'smooth';
- }): void;
- setAriaLabels(): void;
- syncIndicator(): void;
- repositionIndicator(): void;
- preventIndicatorTransition(): void;
- syncTabsAndPanels(): void;
- render(): import("lit-html").TemplateResult<1>;
- }
- declare global {
- interface HTMLElementTagNameMap {
- 'sl-tab-group': SlTabGroup;
- }
- }
|