UNPKG

carbon-components-angular

Version:
86 lines (82 loc) 3.4 kB
/** * * carbon-angular v0.0.0 | tab-header-group.component.d.ts * * Copyright 2014, 2026 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { QueryList, EventEmitter, AfterContentInit, ElementRef, OnChanges, SimpleChanges, ChangeDetectorRef, OnInit, OnDestroy, Renderer2 } from "@angular/core"; import { Subscription } from "rxjs"; import { EventService } from "carbon-components-angular/utils"; import { I18n } from "carbon-components-angular/i18n"; import { TabHeaderBase } from "./tab-header.directive"; import { BaseTabHeader } from "./base-tab-header.component"; import * as i0 from "@angular/core"; export declare class TabHeaderGroup extends BaseTabHeader implements AfterContentInit, OnChanges, OnInit, OnDestroy { protected elementRef: ElementRef; protected changeDetectorRef: ChangeDetectorRef; protected eventService: EventService; protected renderer: Renderer2; protected i18n: I18n; get fullWidthClass(): boolean; /** * We use taller rows when any header has a secondary label. */ get tallClass(): boolean; get hasSecondaryLabelTabs(): boolean; /** * True when `fullWidth` applies (contained, fewer than 9 headers). */ get distributeWidth(): boolean; /** * i18n strings for overflow controls and the tab list `aria-label` fallback. */ translations: any; /** * When `true`, sets each tab panel `tabindex` to `-1` for navigation-style usage. */ isNavigation: boolean; /** * Emits when a tab close control is used (with `dismissable`). * The emitted value is the tab index. */ tabClose: EventEmitter<number>; /** * Projected tab headers (`TabHeaderBase`: directive or `cds-tab-header`). */ tabHeaderQuery: QueryList<TabHeaderBase>; headerContainer: any; selectedSubscriptionTracker: Subscription; closeSubscriptionTracker: Subscription; /** * Index of the selected tab for keyboard logic. */ currentSelectedTab: number; /** * Focused tab index when `followFocus` is false (manual activation). */ activeIndex: number | null; constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, eventService: EventService, renderer: Renderer2, i18n: I18n); keyboardInput(event: any): void; ngOnInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; getSelectedTab(): any; /** * Determines which `Tab` is initially selected. */ protected setFirstTab(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderGroup, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TabHeaderGroup, "cds-tab-header-group, ibm-tab-header-group", never, { "translations": "translations"; "isNavigation": "isNavigation"; }, { "tabClose": "tabClose"; }, ["tabHeaderQuery"], ["*"], false>; }