UNPKG

16.1 kBTypeScriptView Raw
1import { CdkPortalOutlet } from '@angular/cdk/portal';
2import { ChangeDetectorRef } from '@angular/core';
3import { ComponentFactoryResolver } from '@angular/core';
4import { Directionality } from '@angular/cdk/bidi';
5import { ElementRef } from '@angular/core';
6import { FocusMonitor } from '@angular/cdk/a11y';
7import * as i0 from '@angular/core';
8import * as i10 from '@angular/common';
9import * as i11 from '@angular/material/core';
10import * as i12 from '@angular/cdk/portal';
11import * as i13 from '@angular/cdk/observers';
12import * as i14 from '@angular/cdk/a11y';
13import { ScrollDirection as LegacyScrollDirection } from '@angular/material/tabs';
14import { _MAT_INK_BAR_POSITIONER as _MAT_LEGACY_INK_BAR_POSITIONER } from '@angular/material/tabs';
15import { _MAT_INK_BAR_POSITIONER_FACTORY as _MAT_LEGACY_INK_BAR_POSITIONER_FACTORY } from '@angular/material/tabs';
16import { MAT_TAB as MAT_LEGACY_TAB } from '@angular/material/tabs';
17import { MAT_TAB_CONTENT as MAT_LEGACY_TAB_CONTENT } from '@angular/material/tabs';
18import { MAT_TAB_GROUP as MAT_LEGACY_TAB_GROUP } from '@angular/material/tabs';
19import { MAT_TABS_CONFIG as MAT_LEGACY_TABS_CONFIG } from '@angular/material/tabs';
20import { _MatInkBarPositioner as _MatLegacyInkBarPositioner } from '@angular/material/tabs';
21import { MatPaginatedTabHeader as MatLegacyPaginatedTabHeader } from '@angular/material/tabs';
22import { _MatTabBase as _MatLegacyTabBase } from '@angular/material/tabs';
23import { _MatTabBodyBase as _MatLegacyTabBodyBase } from '@angular/material/tabs';
24import { MatTabBodyOriginState as MatLegacyTabBodyOriginState } from '@angular/material/tabs';
25import { MatTabBodyPositionState as MatLegacyTabBodyPositionState } from '@angular/material/tabs';
26import { MatTabChangeEvent as MatLegacyTabChangeEvent } from '@angular/material/tabs';
27import { _MatTabGroupBase as _MatLegacyTabGroupBase } from '@angular/material/tabs';
28import { _MatTabHeaderBase as _MatLegacyTabHeaderBase } from '@angular/material/tabs';
29import { MatTabHeaderPosition as MatLegacyTabHeaderPosition } from '@angular/material/tabs';
30import { _MatTabLinkBase as _MatLegacyTabLinkBase } from '@angular/material/tabs';
31import { _MatTabNavBase as _MatLegacyTabNavBase } from '@angular/material/tabs';
32import { matTabsAnimations as matLegacyTabsAnimations } from '@angular/material/tabs';
33import { MatTabsConfig as MatLegacyTabsConfig } from '@angular/material/tabs';
34import { MatTabBodyPortal } from '@angular/material/tabs';
35import { MatTabContent } from '@angular/material/tabs';
36import { MatTabGroupBaseHeader } from '@angular/material/tabs';
37import { MatTabLabel } from '@angular/material/tabs';
38import { _MatTabLabelWrapperBase } from '@angular/material/tabs';
39import { NgZone } from '@angular/core';
40import { OnDestroy } from '@angular/core';
41import { Platform } from '@angular/cdk/platform';
42import { QueryList } from '@angular/core';
43import { RippleGlobalOptions } from '@angular/material/core';
44import { TemplateRef } from '@angular/core';
45import { ViewContainerRef } from '@angular/core';
46import { ViewportRuler } from '@angular/cdk/scrolling';
47
48declare namespace i1 {
49 export {
50 MatLegacyTabGroup
51 }
52}
53
54declare namespace i2 {
55 export {
56 MatLegacyTabLabel
57 }
58}
59
60declare namespace i3 {
61 export {
62 MatLegacyTab
63 }
64}
65
66declare namespace i4 {
67 export {
68 MatLegacyInkBar
69 }
70}
71
72declare namespace i5 {
73 export {
74 MatLegacyTabLabelWrapper
75 }
76}
77
78declare namespace i6 {
79 export {
80 MatLegacyTabNav,
81 MatLegacyTabLink,
82 MatLegacyTabNavPanel
83 }
84}
85
86declare namespace i7 {
87 export {
88 MatLegacyTabBodyPortal,
89 MatLegacyTabBody
90 }
91}
92
93declare namespace i8 {
94 export {
95 MatLegacyTabHeader
96 }
97}
98
99declare namespace i9 {
100 export {
101 MatLegacyTabContent
102 }
103}
104
105export { LegacyScrollDirection }
106
107export { _MAT_LEGACY_INK_BAR_POSITIONER }
108
109export { _MAT_LEGACY_INK_BAR_POSITIONER_FACTORY }
110
111export { MAT_LEGACY_TAB }
112
113export { MAT_LEGACY_TAB_CONTENT }
114
115export { MAT_LEGACY_TAB_GROUP }
116
117export { MAT_LEGACY_TABS_CONFIG }
118
119/**
120 * The ink-bar is used to display and animate the line underneath the current active tab label.
121 * @docs-private
122 * @deprecated Use `MatInkBar` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
123 * @breaking-change 17.0.0
124 */
125export declare class MatLegacyInkBar {
126 private _elementRef;
127 private _ngZone;
128 private _inkBarPositioner;
129 _animationMode?: string | undefined;
130 constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _inkBarPositioner: _MatLegacyInkBarPositioner, _animationMode?: string | undefined);
131 /**
132 * Calculates the styles from the provided element in order to align the ink-bar to that element.
133 * Shows the ink bar if previously set as hidden.
134 * @param element
135 */
136 alignToElement(element: HTMLElement): void;
137 /** Shows the ink bar. */
138 show(): void;
139 /** Hides the ink bar. */
140 hide(): void;
141 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyInkBar, [null, null, null, { optional: true; }]>;
142 static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyInkBar, "mat-ink-bar", never, {}, {}, never, never, false, never>;
143}
144
145export { _MatLegacyInkBarPositioner }
146
147export { MatLegacyPaginatedTabHeader }
148
149/**
150 * @deprecated Use `MatTab` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
151 * @breaking-change 17.0.0
152 */
153export declare class MatLegacyTab extends _MatLegacyTabBase {
154 /** Content for the tab label given by `<ng-template mat-tab-label>`. */
155 get templateLabel(): MatTabLabel;
156 set templateLabel(value: MatTabLabel);
157 /**
158 * Template provided in the tab content that will be used if present, used to enable lazy-loading
159 */
160 _explicitContent: TemplateRef<any>;
161 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTab, never>;
162 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTab, "mat-tab", ["matTab"], { "disabled": "disabled"; }, {}, ["templateLabel", "_explicitContent"], ["*"], false, never>;
163}
164
165export { _MatLegacyTabBase }
166
167/**
168 * Wrapper for the contents of a tab.
169 * @docs-private
170 * @deprecated Use `MatTabBody` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
171 * @breaking-change 17.0.0
172 */
173export declare class MatLegacyTabBody extends _MatLegacyTabBodyBase {
174 _portalHost: CdkPortalOutlet;
175 constructor(elementRef: ElementRef<HTMLElement>, dir: Directionality, changeDetectorRef: ChangeDetectorRef);
176 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabBody, [null, { optional: true; }, null]>;
177 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabBody, "mat-tab-body", never, {}, {}, never, never, false, never>;
178}
179
180export { _MatLegacyTabBodyBase }
181
182export { MatLegacyTabBodyOriginState }
183
184/**
185 * The portal host directive for the contents of the tab.
186 * @docs-private
187 * @deprecated Use `MatTabBodyPortal` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
188 * @breaking-change 17.0.0
189 */
190export declare class MatLegacyTabBodyPortal extends MatTabBodyPortal {
191 constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, host: MatLegacyTabBody, _document: any);
192 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabBodyPortal, never>;
193 static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabBodyPortal, "[matTabBodyHost]", never, {}, {}, never, never, false, never>;
194}
195
196export { MatLegacyTabBodyPositionState }
197
198export { MatLegacyTabChangeEvent }
199
200/**
201 * Decorates the `ng-template` tags and reads out the template from it.
202 * @deprecated Use `MatTabContent` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
203 * @breaking-change 17.0.0
204 */
205export declare class MatLegacyTabContent extends MatTabContent {
206 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabContent, never>;
207 static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabContent, "[matTabContent]", never, {}, {}, never, never, false, never>;
208}
209
210/**
211 * Material design tab-group component. Supports basic tab pairs (label + content) and includes
212 * animated ink-bar, keyboard navigation, and screen reader.
213 * See: https://material.io/design/components/tabs.html
214 * @deprecated Use `MatTabGroup` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
215 * @breaking-change 17.0.0
216 */
217export declare class MatLegacyTabGroup extends _MatLegacyTabGroupBase {
218 _allTabs: QueryList<MatLegacyTab>;
219 _tabBodyWrapper: ElementRef;
220 _tabHeader: MatTabGroupBaseHeader;
221 constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, defaultConfig?: MatLegacyTabsConfig, animationMode?: string);
222 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabGroup, [null, null, { optional: true; }, { optional: true; }]>;
223 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabGroup, "mat-tab-group", ["matTabGroup"], { "color": "color"; "disableRipple": "disableRipple"; }, {}, ["_allTabs"], never, false, never>;
224}
225
226export { _MatLegacyTabGroupBase }
227
228/**
229 * The header of the tab group which displays a list of all the tabs in the tab group. Includes
230 * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
231 * width of the header container, then arrows will be displayed to allow the user to scroll
232 * left and right across the header.
233 * @docs-private
234 * @deprecated Use `MatTabHeader` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
235 * @breaking-change 17.0.0
236 */
237export declare class MatLegacyTabHeader extends _MatLegacyTabHeaderBase {
238 _items: QueryList<MatLegacyTabLabelWrapper>;
239 _inkBar: MatLegacyInkBar;
240 _tabListContainer: ElementRef;
241 _tabList: ElementRef;
242 _tabListInner: ElementRef;
243 _nextPaginator: ElementRef<HTMLElement>;
244 _previousPaginator: ElementRef<HTMLElement>;
245 constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, dir: Directionality, ngZone: NgZone, platform: Platform, animationMode?: string);
246 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabHeader, [null, null, null, { optional: true; }, null, null, { optional: true; }]>;
247 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabHeader, "mat-tab-header", never, { "selectedIndex": "selectedIndex"; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, ["_items"], ["*"], false, never>;
248}
249
250export { _MatLegacyTabHeaderBase }
251
252export { MatLegacyTabHeaderPosition }
253
254/**
255 * Used to flag tab labels for use with the portal directive
256 * @deprecated Use `MatTabLabel` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
257 * @breaking-change 17.0.0
258 */
259export declare class MatLegacyTabLabel extends MatTabLabel {
260 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabLabel, never>;
261 static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabLabel, "[mat-tab-label], [matTabLabel]", never, {}, {}, never, never, false, never>;
262}
263
264/**
265 * @deprecated Use `MatTabLabelWrapper` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
266 * @breaking-change 17.0.0
267 */
268export declare class MatLegacyTabLabelWrapper extends _MatTabLabelWrapperBase {
269 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabLabelWrapper, never>;
270 static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabLabelWrapper, "[matTabLabelWrapper]", never, { "disabled": "disabled"; }, {}, never, never, false, never>;
271}
272
273/**
274 * Link inside of a `mat-tab-nav-bar`.
275 * @deprecated Use `MatTabLink` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
276 * @breaking-change 17.0.0
277 */
278export declare class MatLegacyTabLink extends _MatLegacyTabLinkBase implements OnDestroy {
279 /** Reference to the RippleRenderer for the tab-link. */
280 private _tabLinkRipple;
281 constructor(tabNavBar: MatLegacyTabNav, elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, focusMonitor: FocusMonitor, animationMode?: string);
282 ngOnDestroy(): void;
283 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabLink, [null, null, null, null, { optional: true; }, { attribute: "tabindex"; }, null, { optional: true; }]>;
284 static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabLink, "[mat-tab-link], [matTabLink]", ["matTabLink"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never, never, false, never>;
285}
286
287export { _MatLegacyTabLinkBase }
288
289/**
290 * Navigation component matching the styles of the tab group header.
291 * Provides anchored navigation with animated ink bar.
292 * @deprecated Use `MatTabNav` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
293 * @breaking-change 17.0.0
294 */
295export declare class MatLegacyTabNav extends _MatLegacyTabNavBase {
296 _items: QueryList<MatLegacyTabLink>;
297 _inkBar: MatLegacyInkBar;
298 _tabListContainer: ElementRef;
299 _tabList: ElementRef;
300 _tabListInner: ElementRef;
301 _nextPaginator: ElementRef<HTMLElement>;
302 _previousPaginator: ElementRef<HTMLElement>;
303 constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, platform: Platform, animationMode?: string);
304 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabNav, [null, { optional: true; }, null, null, null, null, { optional: true; }]>;
305 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabNav, "[mat-tab-nav-bar]", ["matTabNavBar", "matTabNav"], { "color": "color"; }, {}, ["_items"], ["*"], false, never>;
306}
307
308export { _MatLegacyTabNavBase }
309
310/**
311 * Tab panel component associated with MatTabNav.
312 * @deprecated Use `MatTabNavPanel` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
313 * @breaking-change 17.0.0
314 */
315export declare class MatLegacyTabNavPanel {
316 /** Unique id for the tab panel. */
317 id: string;
318 /** Id of the active tab in the nav bar. */
319 _activeTabId?: string;
320 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabNavPanel, never>;
321 static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabNavPanel, "mat-tab-nav-panel", ["matTabNavPanel"], { "id": "id"; }, {}, never, ["*"], false, never>;
322}
323
324export { matLegacyTabsAnimations }
325
326export { MatLegacyTabsConfig }
327
328/**
329 * @deprecated Use `MatTabsModule` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
330 * @breaking-change 17.0.0
331 */
332export declare class MatLegacyTabsModule {
333 static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabsModule, never>;
334 static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyTabsModule, [typeof i1.MatLegacyTabGroup, typeof i2.MatLegacyTabLabel, typeof i3.MatLegacyTab, typeof i4.MatLegacyInkBar, typeof i5.MatLegacyTabLabelWrapper, typeof i6.MatLegacyTabNav, typeof i6.MatLegacyTabNavPanel, typeof i6.MatLegacyTabLink, typeof i7.MatLegacyTabBody, typeof i7.MatLegacyTabBodyPortal, typeof i8.MatLegacyTabHeader, typeof i9.MatLegacyTabContent], [typeof i10.CommonModule, typeof i11.MatCommonModule, typeof i12.PortalModule, typeof i11.MatRippleModule, typeof i13.ObserversModule, typeof i14.A11yModule], [typeof i11.MatCommonModule, typeof i1.MatLegacyTabGroup, typeof i2.MatLegacyTabLabel, typeof i3.MatLegacyTab, typeof i6.MatLegacyTabNav, typeof i6.MatLegacyTabNavPanel, typeof i6.MatLegacyTabLink, typeof i9.MatLegacyTabContent]>;
335 static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyTabsModule>;
336}
337
338export { }