You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/material/legacy-card/card-module.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ import {
25
25
MatLegacyCardXlImage,
26
26
}from'./card';
27
27
28
+
/**
29
+
* @deprecated Use `MatCardModule` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
Copy file name to clipboardExpand all lines: src/material/legacy-card/card.ts
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';
20
20
/**
21
21
* Content of a card, needed as it's used as a selector in the API.
22
22
* @docs-private
23
+
* @deprecated Use `MatCardContent` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -30,6 +32,8 @@ export class MatLegacyCardContent {}
30
32
/**
31
33
* Title of a card, needed as it's used as a selector in the API.
32
34
* @docs-private
35
+
* @deprecated Use `MatCardTitle` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -42,6 +46,8 @@ export class MatLegacyCardTitle {}
42
46
/**
43
47
* Sub-title of a card, needed as it's used as a selector in the API.
44
48
* @docs-private
49
+
* @deprecated Use `MatCardSubtitle` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -54,6 +60,8 @@ export class MatLegacyCardSubtitle {}
54
60
/**
55
61
* Action section of a card, needed as it's used as a selector in the API.
56
62
* @docs-private
63
+
* @deprecated Use `MatCardActions` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
64
+
* @breaking-change 17.0.0
57
65
*/
58
66
@Directive({
59
67
selector: 'mat-card-actions',
@@ -71,6 +79,8 @@ export class MatLegacyCardActions {
71
79
/**
72
80
* Footer of a card, needed as it's used as a selector in the API.
73
81
* @docs-private
82
+
* @deprecated Use `MatCardFooter` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
83
+
* @breaking-change 17.0.0
74
84
*/
75
85
@Directive({
76
86
selector: 'mat-card-footer',
@@ -81,6 +91,8 @@ export class MatLegacyCardFooter {}
81
91
/**
82
92
* Image used in a card, needed to add the mat- CSS styling.
83
93
* @docs-private
94
+
* @deprecated Use `MatCardImage` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
95
+
* @breaking-change 17.0.0
84
96
*/
85
97
@Directive({
86
98
selector: '[mat-card-image], [matCardImage]',
@@ -91,6 +103,8 @@ export class MatLegacyCardImage {}
91
103
/**
92
104
* Image used in a card, needed to add the mat- CSS styling.
93
105
* @docs-private
106
+
* @deprecated Use `MatCardSmImage` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -101,6 +115,8 @@ export class MatLegacyCardSmImage {}
101
115
/**
102
116
* Image used in a card, needed to add the mat- CSS styling.
103
117
* @docs-private
118
+
* @deprecated Use `MatCardMdImage` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -111,6 +127,8 @@ export class MatLegacyCardMdImage {}
111
127
/**
112
128
* Image used in a card, needed to add the mat- CSS styling.
113
129
* @docs-private
130
+
* @deprecated Use `MatCardLgImage` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -121,6 +139,8 @@ export class MatLegacyCardLgImage {}
121
139
/**
122
140
* Large image used in a card, needed to add the mat- CSS styling.
123
141
* @docs-private
142
+
* @deprecated Use `MatCardXlImage` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
@@ -131,6 +151,8 @@ export class MatLegacyCardXlImage {}
131
151
/**
132
152
* Avatar image used in a card, needed to add the mat- CSS styling.
133
153
* @docs-private
154
+
* @deprecated Use `MatCardAvatar` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
155
+
* @breaking-change 17.0.0
134
156
*/
135
157
@Directive({
136
158
selector: '[mat-card-avatar], [matCardAvatar]',
@@ -148,6 +170,9 @@ export class MatLegacyCardAvatar {}
148
170
* - mat-card-content
149
171
* - mat-card-actions
150
172
* - mat-card-footer
173
+
*
174
+
* @deprecated Use `MatCard` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
175
+
* @breaking-change 17.0.0
151
176
*/
152
177
@Component({
153
178
selector: 'mat-card',
@@ -170,6 +195,8 @@ export class MatLegacyCard {
170
195
* Component intended to be used within the `<mat-card>` component. It adds styles for a
171
196
* preset header section (i.e. a title, subtitle, and avatar layout).
172
197
* @docs-private
198
+
* @deprecated Use `MatCardHeader` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
199
+
* @breaking-change 17.0.0
173
200
*/
174
201
@Component({
175
202
selector: 'mat-card-header',
@@ -184,6 +211,8 @@ export class MatLegacyCardHeader {}
184
211
* Component intended to be used within the `<mat-card>` component. It adds styles for a preset
185
212
* layout that groups an image with a title section.
186
213
* @docs-private
214
+
* @deprecated Use `MatCardTitleGroup` from `@angular/material/card` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
/** A set of criteria that can be used to filter a list of `MatCardHarness` instances. */
11
+
/**
12
+
* A set of criteria that can be used to filter a list of `MatCardHarness` instances.
13
+
* @deprecated Use `CardHarnessFilters` from `@angular/material/card/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
/** Selectors for different sections of the mat-card that can container user content. */
12
+
/**
13
+
* Selectors for different sections of the mat-card that can container user content.
14
+
* @deprecated Use `MatCardSection` from `@angular/material/card/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
15
+
* @breaking-change 17.0.0
16
+
*/
13
17
exportconstenumMatLegacyCardSection{
14
18
HEADER='.mat-card-header',
15
19
CONTENT='.mat-card-content',
16
20
ACTIONS='.mat-card-actions',
17
21
FOOTER='.mat-card-footer',
18
22
}
19
23
20
-
/** Harness for interacting with a standard mat-card in tests. */
24
+
/**
25
+
* Harness for interacting with a standard mat-card in tests.
26
+
* @deprecated Use `MatCardHarness` from `@angular/material/card/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
0 commit comments