1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { FocusableOption, FocusMonitor } from '@angular/cdk/a11y';
|
---|
9 | import { Directionality } from '@angular/cdk/bidi';
|
---|
10 | import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
---|
11 | import { Platform } from '@angular/cdk/platform';
|
---|
12 | import { ViewportRuler } from '@angular/cdk/scrolling';
|
---|
13 | import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, QueryList } from '@angular/core';
|
---|
14 | import { CanDisable, CanDisableRipple, HasTabIndex, RippleConfig, RippleGlobalOptions, RippleTarget, ThemePalette } from '@angular/material/core';
|
---|
15 | import { MatInkBar } from '../ink-bar';
|
---|
16 | import { MatPaginatedTabHeader, MatPaginatedTabHeaderItem } from '../paginated-tab-header';
|
---|
17 | /**
|
---|
18 | * Base class with all of the `MatTabNav` functionality.
|
---|
19 | * @docs-private
|
---|
20 | */
|
---|
21 | export declare abstract class _MatTabNavBase extends MatPaginatedTabHeader implements AfterContentChecked, AfterContentInit, OnDestroy {
|
---|
22 | /** Query list of all tab links of the tab navigation. */
|
---|
23 | abstract _items: QueryList<MatPaginatedTabHeaderItem & {
|
---|
24 | active: boolean;
|
---|
25 | }>;
|
---|
26 | /** Background color of the tab nav. */
|
---|
27 | get backgroundColor(): ThemePalette;
|
---|
28 | set backgroundColor(value: ThemePalette);
|
---|
29 | private _backgroundColor;
|
---|
30 | /** Whether the ripple effect is disabled or not. */
|
---|
31 | get disableRipple(): any;
|
---|
32 | set disableRipple(value: any);
|
---|
33 | private _disableRipple;
|
---|
34 | /** Theme color of the nav bar. */
|
---|
35 | color: ThemePalette;
|
---|
36 | constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, platform: Platform, animationMode?: string);
|
---|
37 | protected _itemSelected(): void;
|
---|
38 | ngAfterContentInit(): void;
|
---|
39 | /** Notifies the component that the active link has been changed. */
|
---|
40 | updateActiveLink(): void;
|
---|
41 | }
|
---|
42 | /**
|
---|
43 | * Navigation component matching the styles of the tab group header.
|
---|
44 | * Provides anchored navigation with animated ink bar.
|
---|
45 | */
|
---|
46 | export declare class MatTabNav extends _MatTabNavBase {
|
---|
47 | _items: QueryList<MatTabLink>;
|
---|
48 | _inkBar: MatInkBar;
|
---|
49 | _tabListContainer: ElementRef;
|
---|
50 | _tabList: ElementRef;
|
---|
51 | _nextPaginator: ElementRef<HTMLElement>;
|
---|
52 | _previousPaginator: ElementRef<HTMLElement>;
|
---|
53 | constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, platform: Platform, animationMode?: string);
|
---|
54 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
55 | }
|
---|
56 | declare const _MatTabLinkMixinBase: import("@angular/material/core/common-behaviors/constructor").Constructor<HasTabIndex> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<HasTabIndex> & import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisableRipple> & import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & {
|
---|
57 | new (): {};
|
---|
58 | };
|
---|
59 | /** Base class with all of the `MatTabLink` functionality. */
|
---|
60 | export declare class _MatTabLinkBase extends _MatTabLinkMixinBase implements AfterViewInit, OnDestroy, CanDisable, CanDisableRipple, HasTabIndex, RippleTarget, FocusableOption {
|
---|
61 | private _tabNavBar;
|
---|
62 | /** @docs-private */ elementRef: ElementRef;
|
---|
63 | private _focusMonitor;
|
---|
64 | /** Whether the tab link is active or not. */
|
---|
65 | protected _isActive: boolean;
|
---|
66 | /** Whether the link is active. */
|
---|
67 | get active(): boolean;
|
---|
68 | set active(value: boolean);
|
---|
69 | /**
|
---|
70 | * Ripple configuration for ripples that are launched on pointer down. The ripple config
|
---|
71 | * is set to the global ripple options since we don't have any configurable options for
|
---|
72 | * the tab link ripples.
|
---|
73 | * @docs-private
|
---|
74 | */
|
---|
75 | rippleConfig: RippleConfig & RippleGlobalOptions;
|
---|
76 | /**
|
---|
77 | * Whether ripples are disabled on interaction.
|
---|
78 | * @docs-private
|
---|
79 | */
|
---|
80 | get rippleDisabled(): boolean;
|
---|
81 | constructor(_tabNavBar: _MatTabNavBase,
|
---|
82 | /** @docs-private */ elementRef: ElementRef, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, _focusMonitor: FocusMonitor, animationMode?: string);
|
---|
83 | /** Focuses the tab link. */
|
---|
84 | focus(): void;
|
---|
85 | ngAfterViewInit(): void;
|
---|
86 | ngOnDestroy(): void;
|
---|
87 | _handleFocus(): void;
|
---|
88 | static ngAcceptInputType_active: BooleanInput;
|
---|
89 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
90 | static ngAcceptInputType_disableRipple: BooleanInput;
|
---|
91 | static ngAcceptInputType_tabIndex: NumberInput;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * Link inside of a `mat-tab-nav-bar`.
|
---|
95 | */
|
---|
96 | export declare class MatTabLink extends _MatTabLinkBase implements OnDestroy {
|
---|
97 | /** Reference to the RippleRenderer for the tab-link. */
|
---|
98 | private _tabLinkRipple;
|
---|
99 | constructor(tabNavBar: MatTabNav, elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, focusMonitor: FocusMonitor, animationMode?: string);
|
---|
100 | ngOnDestroy(): void;
|
---|
101 | }
|
---|
102 | export {};
|
---|