@@ -12,9 +12,7 @@ import {
12
12
*/
13
13
@Directive ( {
14
14
selector : 'md-card-content, mat-card-content' ,
15
- host : {
16
- '[class.mat-card-content]' : 'true'
17
- }
15
+ host : { 'class' : 'mat-card-content' }
18
16
} )
19
17
export class MdCardContent { }
20
18
@@ -23,10 +21,9 @@ export class MdCardContent {}
23
21
* @docs -private
24
22
*/
25
23
@Directive ( {
26
- selector : 'md-card-title, mat-card-title, [md-card-title], [mat-card-title]' ,
27
- host : {
28
- '[class.mat-card-title]' : 'true'
29
- }
24
+ selector : 'md-card-title, mat-card-title, [md-card-title], [mat-card-title],' +
25
+ '[mdCardTitle], [matCardTitle]' ,
26
+ host : { 'class' : 'mat-card-title' }
30
27
} )
31
28
export class MdCardTitle { }
32
29
@@ -35,10 +32,9 @@ export class MdCardTitle {}
35
32
* @docs -private
36
33
*/
37
34
@Directive ( {
38
- selector : 'md-card-subtitle, mat-card-subtitle, [md-card-subtitle], [mat-card-subtitle]' ,
39
- host : {
40
- '[class.mat-card-subtitle]' : 'true'
41
- }
35
+ selector : 'md-card-subtitle, mat-card-subtitle, [md-card-subtitle], [mat-card-subtitle],' +
36
+ '[mdCardSubtitle], [matCardSubtitle]' ,
37
+ host : { 'class' : 'mat-card-subtitle' }
42
38
} )
43
39
export class MdCardSubtitle { }
44
40
@@ -48,9 +44,7 @@ export class MdCardSubtitle {}
48
44
*/
49
45
@Directive ( {
50
46
selector : 'md-card-actions, mat-card-actions' ,
51
- host : {
52
- '[class.mat-card-actions]' : 'true'
53
- }
47
+ host : { 'class' : 'mat-card-actions' }
54
48
} )
55
49
export class MdCardActions { }
56
50
@@ -60,9 +54,7 @@ export class MdCardActions {}
60
54
*/
61
55
@Directive ( {
62
56
selector : 'md-card-footer, mat-card-footer' ,
63
- host : {
64
- '[class.mat-card-footer]' : 'true'
65
- }
57
+ host : { 'class' : 'mat-card-footer' }
66
58
} )
67
59
export class MdCardFooter { }
68
60
@@ -71,58 +63,48 @@ export class MdCardFooter {}
71
63
* @docs -private
72
64
*/
73
65
@Directive ( {
74
- selector : '[md-card-sm-image], [mat-card-sm-image]' ,
75
- host : {
76
- '[class.mat-card-sm-image]' : 'true'
77
- }
66
+ selector : '[md-card-image], [mat-card-image], [mdCardImage], [matCardImage]' ,
67
+ host : { 'class' : 'mat-card-image' }
78
68
} )
79
- export class MdCardSmImage { }
69
+ export class MdCardImage { }
80
70
81
71
/**
82
72
* Image used in a card, needed to add the mat- CSS styling.
83
73
* @docs -private
84
74
*/
85
75
@Directive ( {
86
- selector : '[md-card-md-image], [mat-card-md-image]' ,
87
- host : {
88
- '[class.mat-card-md-image]' : 'true'
89
- }
76
+ selector : '[md-card-sm-image], [mat-card-sm-image], [mdCardImageSmall], [matCardImageSmall]' ,
77
+ host : { 'class' : 'mat-card-sm-image' }
90
78
} )
91
- export class MdCardMdImage { }
79
+ export class MdCardSmImage { }
92
80
93
81
/**
94
82
* Image used in a card, needed to add the mat- CSS styling.
95
83
* @docs -private
96
84
*/
97
85
@Directive ( {
98
- selector : '[md-card-lg-image], [mat-card-lg-image]' ,
99
- host : {
100
- 'class.mat-card-lg-image' : 'true'
101
- }
86
+ selector : '[md-card-md-image], [mat-card-md-image], [mdCardImageMedium], [matCardImageMedium]' ,
87
+ host : { 'class' : 'mat-card-md-image' }
102
88
} )
103
- export class MdCardLgImage { }
89
+ export class MdCardMdImage { }
104
90
105
91
/**
106
92
* Image used in a card, needed to add the mat- CSS styling.
107
93
* @docs -private
108
94
*/
109
95
@Directive ( {
110
- selector : '[md-card-image], [mat-card-image]' ,
111
- host : {
112
- '[class.mat-card-image]' : 'true'
113
- }
96
+ selector : '[md-card-lg-image], [mat-card-lg-image], [mdCardImageLarge], [matCardImageLarge]' ,
97
+ host : { 'class' : 'mat-card-lg-image' }
114
98
} )
115
- export class MdCardImage { }
99
+ export class MdCardLgImage { }
116
100
117
101
/**
118
102
* Large image used in a card, needed to add the mat- CSS styling.
119
103
* @docs -private
120
104
*/
121
105
@Directive ( {
122
- selector : '[md-card-xl-image], [mat-card-xl-image]' ,
123
- host : {
124
- '[class.mat-card-xl-image]' : 'true'
125
- }
106
+ selector : '[md-card-xl-image], [mat-card-xl-image], [mdCardImageXLarge], [matCardImageXLarge]' ,
107
+ host : { 'class' : 'mat-card-xl-image' }
126
108
} )
127
109
export class MdCardXlImage { }
128
110
@@ -131,10 +113,8 @@ export class MdCardXlImage {}
131
113
* @docs -private
132
114
*/
133
115
@Directive ( {
134
- selector : '[md-card-avatar], [mat-card-avatar]' ,
135
- host : {
136
- '[class.mat-card-avatar]' : 'true'
137
- }
116
+ selector : '[md-card-avatar], [mat-card-avatar], [mdCardAvatar], [matCardAvatar]' ,
117
+ host : { 'class' : 'mat-card-avatar' }
138
118
} )
139
119
export class MdCardAvatar { }
140
120
@@ -157,9 +137,7 @@ export class MdCardAvatar {}
157
137
styleUrls : [ 'card.css' ] ,
158
138
encapsulation : ViewEncapsulation . None ,
159
139
changeDetection : ChangeDetectionStrategy . OnPush ,
160
- host : {
161
- '[class.mat-card]' : 'true'
162
- }
140
+ host : { 'class' : 'mat-card' }
163
141
} )
164
142
export class MdCard { }
165
143
@@ -175,9 +153,7 @@ export class MdCard {}
175
153
templateUrl : 'card-header.html' ,
176
154
encapsulation : ViewEncapsulation . None ,
177
155
changeDetection : ChangeDetectionStrategy . OnPush ,
178
- host : {
179
- '[class.mat-card-header]' : 'true'
180
- }
156
+ host : { 'class' : 'mat-card-header' }
181
157
} )
182
158
export class MdCardHeader { }
183
159
@@ -193,8 +169,6 @@ export class MdCardHeader {}
193
169
templateUrl : 'card-title-group.html' ,
194
170
encapsulation : ViewEncapsulation . None ,
195
171
changeDetection : ChangeDetectionStrategy . OnPush ,
196
- host : {
197
- '[class.mat-card-title-group]' : 'true'
198
- }
172
+ host : { 'class' : 'mat-card-title-group' }
199
173
} )
200
174
export class MdCardTitleGroup { }
0 commit comments