UNPKG

ngx-mat-lib

Version:

A bunch of utilities and components to use in your Angular 7+ apps!

90 lines (89 loc) 4.52 kB
import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, AfterContentChecked, QueryList, AfterContentInit } from "@angular/core"; import { Directionality } from "@angular/cdk/bidi"; import { ViewportRuler } from "@angular/cdk/overlay"; import { FocusMonitor, FocusableOption } from "@angular/cdk/a11y"; import { Platform } from "@angular/cdk/platform"; import { ThemePalette, CanColor, CanDisableRipple, CanDisableRippleCtor, RippleTarget, CanDisable, HasTabIndex, RippleGlobalOptions, RippleConfig, CanDisableCtor, HasTabIndexCtor } from "@angular/material/core"; import { XmatInkBarDirective } from "./xmat-ink-bar.directive"; import { XmatPaginatedTabHeaderDirective, XmatPaginatedTabHeaderItem } from "./xmat-paginated-tab-header"; /** * Base class with all of the `MatTabNav` functionality. * @docs-private */ export declare abstract class _XmatTabNavBase extends XmatPaginatedTabHeaderDirective implements AfterContentChecked, AfterContentInit, OnDestroy { /** Query list of all tab links of the tab navigation. */ abstract _items: QueryList<XmatPaginatedTabHeaderItem & { active: boolean; }>; /** Background color of the tab nav. */ backgroundColor: ThemePalette; private _backgroundColor; /** Whether the ripple effect is disabled or not. */ disableRipple: any; private _disableRipple; /** Theme color of the nav bar. */ color: ThemePalette; constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, /** * @deprecated @breaking-change 9.0.0 `platform` parameter to become required. */ platform?: Platform, animationMode?: string); protected _itemSelected(): void; ngAfterContentInit(): void; /** * Notifies the component that the active link has been changed. * @breaking-change 8.0.0 `element` parameter to be removed. */ updateActiveLink(_element?: ElementRef): void; } export declare class XmatTabNavComponent extends _XmatTabNavBase implements AfterContentChecked, AfterContentInit, CanColor, CanDisableRipple, OnDestroy { _items: QueryList<XmatTabLinkDirective>; _inkBar: XmatInkBarDirective; _tabListContainer: ElementRef; _tabList: ElementRef; _nextPaginator: ElementRef<HTMLElement>; _previousPaginator: ElementRef<HTMLElement>; constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, /** * @deprecated @breaking-change 9.0.0 `platform` parameter to become required. */ platform?: Platform, animationMode?: string); } declare class XmatTabLinkMixinBase { } declare const _XmatTabLinkMixinBase: HasTabIndexCtor & CanDisableRippleCtor & CanDisableCtor & typeof XmatTabLinkMixinBase; /** Base class with all of the `MatTabLink` functionality. */ export declare class _XmatTabLinkBase extends _XmatTabLinkMixinBase implements OnDestroy, CanDisable, CanDisableRipple, HasTabIndex, RippleTarget, FocusableOption { private _tabNavBar; elementRef: ElementRef; private _focusMonitor; /** Whether the tab link is active or not. */ protected _isActive: boolean; /** Whether the link is active. */ active: boolean; /** * Ripple configuration for ripples that are launched on pointer down. The ripple config * is set to the global ripple options since we don't have any configurable options for * the tab link ripples. * @docs-private */ rippleConfig: RippleConfig & RippleGlobalOptions; /** * Whether ripples are disabled on interaction. * @docs-private */ readonly rippleDisabled: boolean; constructor(_tabNavBar: _XmatTabNavBase, elementRef: ElementRef, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, _focusMonitor: FocusMonitor, animationMode?: string); focus(): void; ngOnDestroy(): void; } /** * Link inside of a `mat-tab-nav-bar`. */ export declare class XmatTabLinkDirective extends _XmatTabLinkBase implements OnDestroy { /** Reference to the RippleRenderer for the tab-link. */ private _tabLinkRipple; constructor(tabNavBar: XmatTabNavComponent, elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, focusMonitor: FocusMonitor, animationMode?: string); ngOnDestroy(): void; } export {};