Skip to content

Commit 8fb62e5

Browse files
committed
fix(material/legacy-tabs): deprecate all ts symbols
1 parent 30f88b0 commit 8fb62e5

19 files changed

+214
-36
lines changed

src/material/legacy-tabs/ink-bar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import {_MAT_INK_BAR_POSITIONER, _MatInkBarPositioner} from '@angular/material/t
1414
/**
1515
* The ink-bar is used to display and animate the line underneath the current active tab label.
1616
* @docs-private
17+
* @deprecated Use `MatInkBar` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
18+
* @breaking-change 17.0.0
1719
*/
1820
@Directive({
1921
selector: 'mat-ink-bar',

src/material/legacy-tabs/public-api.ts

Lines changed: 104 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {_MatTabBase} from '@angular/material/tabs';
10-
119
export {MatLegacyTabsModule} from './tabs-module';
1210
export {MatLegacyTabGroup} from './tab-group';
1311
export {MatLegacyInkBar} from './ink-bar';
@@ -19,25 +17,129 @@ export {MatLegacyTabLabel} from './tab-label';
1917
export {MatLegacyTabLabelWrapper} from './tab-label-wrapper';
2018
export {MatLegacyTabContent} from './tab-content';
2119
export {
20+
/**
21+
* @deprecated Use `_MatTabNavBase` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
22+
* @breaking-change 17.0.0
23+
*/
2224
_MatTabNavBase as _MatLegacyTabNavBase,
25+
26+
/**
27+
* @deprecated Use `_MatTabLinkBase` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
28+
* @breaking-change 17.0.0
29+
*/
2330
_MatTabLinkBase as _MatLegacyTabLinkBase,
31+
32+
/**
33+
* @deprecated Use `MatTabsConfig` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
34+
* @breaking-change 17.0.0
35+
*/
2436
MatTabsConfig as MatLegacyTabsConfig,
37+
38+
/**
39+
* @deprecated Use `MAT_TABS_CONFIG` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
40+
* @breaking-change 17.0.0
41+
*/
2542
MAT_TABS_CONFIG as MAT_LEGACY_TABS_CONFIG,
43+
44+
/**
45+
* @deprecated Use `_MatTabBase` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
46+
* @breaking-change 17.0.0
47+
*/
2648
_MatTabBase as _MatLegacyTabBase,
49+
50+
/**
51+
* @deprecated Use `MAT_TAB` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
52+
* @breaking-change 17.0.0
53+
*/
2754
MAT_TAB as MAT_LEGACY_TAB,
55+
56+
/**
57+
* @deprecated Use `ScrollDirection` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
58+
* @breaking-change 17.0.0
59+
*/
2860
ScrollDirection as LegacyScrollDirection,
61+
62+
/**
63+
* @deprecated Use `MAT_TAB_GROUP` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
64+
* @breaking-change 17.0.0
65+
*/
2966
MAT_TAB_GROUP as MAT_LEGACY_TAB_GROUP,
67+
68+
/**
69+
* @deprecated Use `_MatTabBodyBase` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
70+
* @breaking-change 17.0.0
71+
*/
3072
_MatTabBodyBase as _MatLegacyTabBodyBase,
73+
74+
/**
75+
* @deprecated Use `MatTabBodyPositionState` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
76+
* @breaking-change 17.0.0
77+
*/
3178
MatTabBodyPositionState as MatLegacyTabBodyPositionState,
79+
80+
/**
81+
* @deprecated Use `matTabsAnimations` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
82+
* @breaking-change 17.0.0
83+
*/
3284
matTabsAnimations as matLegacyTabsAnimations,
85+
86+
/**
87+
* @deprecated Use `MAT_TAB_CONTENT` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
88+
* @breaking-change 17.0.0
89+
*/
3390
MAT_TAB_CONTENT as MAT_LEGACY_TAB_CONTENT,
91+
92+
/**
93+
* @deprecated Use `MatTabBodyOriginState` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
94+
* @breaking-change 17.0.0
95+
*/
3496
MatTabBodyOriginState as MatLegacyTabBodyOriginState,
97+
98+
/**
99+
* @deprecated Use `_MatInkBarPositioner` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
100+
* @breaking-change 17.0.0
101+
*/
35102
_MatInkBarPositioner as _MatLegacyInkBarPositioner,
103+
104+
/**
105+
* @deprecated Use `_MAT_INK_BAR_POSITIONER` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
106+
* @breaking-change 17.0.0
107+
*/
36108
_MAT_INK_BAR_POSITIONER as _MAT_LEGACY_INK_BAR_POSITIONER,
109+
110+
/**
111+
* @deprecated Use `_MAT_INK_BAR_POSITIONER_FACTORY` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
112+
* @breaking-change 17.0.0
113+
*/
37114
_MAT_INK_BAR_POSITIONER_FACTORY as _MAT_LEGACY_INK_BAR_POSITIONER_FACTORY,
115+
116+
/**
117+
* @deprecated Use `MatTabChangeEvent` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
118+
* @breaking-change 17.0.0
119+
*/
38120
MatTabChangeEvent as MatLegacyTabChangeEvent,
121+
122+
/**
123+
* @deprecated Use `_MatTabGroupBase` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
124+
* @breaking-change 17.0.0
125+
*/
39126
_MatTabGroupBase as _MatLegacyTabGroupBase,
127+
128+
/**
129+
* @deprecated Use `MatTabHeaderPosition` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
130+
* @breaking-change 17.0.0
131+
*/
40132
MatTabHeaderPosition as MatLegacyTabHeaderPosition,
133+
134+
/**
135+
* @deprecated Use `_MatTabHeaderBase` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
136+
* @breaking-change 17.0.0
137+
*/
41138
_MatTabHeaderBase as _MatLegacyTabHeaderBase,
139+
140+
/**
141+
* @deprecated Use `MatPaginatedTabHeader` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
142+
* @breaking-change 17.0.0
143+
*/
42144
MatPaginatedTabHeader as MatLegacyPaginatedTabHeader,
43145
} from '@angular/material/tabs';

src/material/legacy-tabs/tab-body.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import {
3232
/**
3333
* The portal host directive for the contents of the tab.
3434
* @docs-private
35+
* @deprecated Use `MatTabBodyPortal` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
36+
* @breaking-change 17.0.0
3537
*/
3638
@Directive({
3739
selector: '[matTabBodyHost]',
@@ -50,6 +52,8 @@ export class MatLegacyTabBodyPortal extends MatNonLegacyTabBodyPortal {
5052
/**
5153
* Wrapper for the contents of a tab.
5254
* @docs-private
55+
* @deprecated Use `MatTabBody` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
56+
* @breaking-change 17.0.0
5357
*/
5458
@Component({
5559
selector: 'mat-tab-body',

src/material/legacy-tabs/tab-content.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
import {Directive} from '@angular/core';
1010
import {MAT_TAB_CONTENT, MatTabContent as MatNonLegacyTabContent} from '@angular/material/tabs';
1111

12-
/** Decorates the `ng-template` tags and reads out the template from it. */
12+
/**
13+
* Decorates the `ng-template` tags and reads out the template from it.
14+
* @deprecated Use `MatTabContent` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
15+
* @breaking-change 17.0.0
16+
*/
1317
@Directive({
1418
selector: '[matTabContent]',
1519
providers: [{provide: MAT_TAB_CONTENT, useExisting: MatLegacyTabContent}],

src/material/legacy-tabs/tab-group.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import {
3232
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
3333
* animated ink-bar, keyboard navigation, and screen reader.
3434
* See: https://material.io/design/components/tabs.html
35+
* @deprecated Use `MatTabGroup` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
36+
* @breaking-change 17.0.0
3537
*/
3638
@Component({
3739
selector: 'mat-tab-group',

src/material/legacy-tabs/tab-header.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import {MatLegacyTabLabelWrapper} from './tab-label-wrapper';
3333
* width of the header container, then arrows will be displayed to allow the user to scroll
3434
* left and right across the header.
3535
* @docs-private
36+
* @deprecated Use `MatTabHeader` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
37+
* @breaking-change 17.0.0
3638
*/
3739
@Component({
3840
selector: 'mat-tab-header',

src/material/legacy-tabs/tab-label-wrapper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
import {_MatTabLabelWrapperBase} from '@angular/material/tabs';
1010
import {Directive} from '@angular/core';
1111

12+
/**
13+
* @deprecated Use `MatTabLabelWrapper` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
14+
* @breaking-change 17.0.0
15+
*/
1216
@Directive({
1317
selector: '[matTabLabelWrapper]',
1418
inputs: ['disabled'],

src/material/legacy-tabs/tab-label.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
import {Directive} from '@angular/core';
1010
import {MAT_TAB_LABEL, MatTabLabel as MatNonLegacyTabLabel} from '@angular/material/tabs';
1111

12-
/** Used to flag tab labels for use with the portal directive */
12+
/**
13+
* Used to flag tab labels for use with the portal directive
14+
* @deprecated Use `MatTabLabel` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
15+
* @breaking-change 17.0.0
16+
*/
1317
@Directive({
1418
selector: '[mat-tab-label], [matTabLabel]',
1519
providers: [{provide: MAT_TAB_LABEL, useExisting: MatLegacyTabLabel}],

src/material/legacy-tabs/tab-nav-bar/tab-nav-bar.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ let nextUniqueId = 0;
4242
/**
4343
* Navigation component matching the styles of the tab group header.
4444
* Provides anchored navigation with animated ink bar.
45+
* @deprecated Use `MatTabNav` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
46+
* @breaking-change 17.0.0
4547
*/
4648
@Component({
4749
selector: '[mat-tab-nav-bar]',
@@ -87,6 +89,8 @@ export class MatLegacyTabNav extends _MatTabNavBase {
8789

8890
/**
8991
* Link inside of a `mat-tab-nav-bar`.
92+
* @deprecated Use `MatTabLink` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
93+
* @breaking-change 17.0.0
9094
*/
9195
@Directive({
9296
selector: '[mat-tab-link], [matTabLink]',
@@ -134,6 +138,8 @@ export class MatLegacyTabLink extends _MatTabLinkBase implements OnDestroy {
134138

135139
/**
136140
* Tab panel component associated with MatTabNav.
141+
* @deprecated Use `MatTabNavPanel` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
142+
* @breaking-change 17.0.0
137143
*/
138144
@Component({
139145
selector: 'mat-tab-nav-panel',

src/material/legacy-tabs/tab.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import {
2121
MAT_TAB_CONTENT,
2222
} from '@angular/material/tabs';
2323

24+
/**
25+
* @deprecated Use `MatTab` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
26+
* @breaking-change 17.0.0
27+
*/
2428
@Component({
2529
selector: 'mat-tab',
2630
templateUrl: 'tab.html',

0 commit comments

Comments
 (0)