UNPKG

9.84 kBTypeScriptView Raw
1import * as i0 from '@angular/core';
2import * as i2 from '@angular/material/core';
3import * as i3 from '@angular/common';
4import { InjectionToken } from '@angular/core';
5
6declare namespace i1 {
7 export {
8 MatCardAppearance,
9 MatCardConfig,
10 MAT_CARD_CONFIG,
11 MatCard,
12 MatCardTitle,
13 MatCardTitleGroup,
14 MatCardContent,
15 MatCardSubtitle,
16 MatCardActions,
17 MatCardHeader,
18 MatCardFooter,
19 MatCardImage,
20 MatCardSmImage,
21 MatCardMdImage,
22 MatCardLgImage,
23 MatCardXlImage,
24 MatCardAvatar
25 }
26}
27
28/** Injection token that can be used to provide the default options the card module. */
29export declare const MAT_CARD_CONFIG: InjectionToken<MatCardConfig>;
30
31/**
32 * Material Design card component. Cards contain content and actions about a single subject.
33 * See https://material.io/design/components/cards.html
34 *
35 * MatCard provides no behaviors, instead serving as a purely visual treatment.
36 */
37export declare class MatCard {
38 appearance: MatCardAppearance;
39 constructor(config?: MatCardConfig);
40 static ɵfac: i0.ɵɵFactoryDeclaration<MatCard, [{ optional: true; }]>;
41 static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": "appearance"; }, {}, never, ["*"], false, never>;
42}
43
44/**
45 * Bottom area of a card that contains action buttons, intended for use within `<mat-card>`.
46 * This component is an optional convenience for use with other convenience elements, such as
47 * `<mat-card-content>`; any custom action block element may be used in its place.
48 *
49 * MatCardActions provides no behaviors, instead serving as a purely visual treatment.
50 */
51export declare class MatCardActions {
52 /** Position of the actions inside the card. */
53 align: 'start' | 'end';
54 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardActions, never>;
55 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": "align"; }, {}, never, never, false, never>;
56}
57
58export declare type MatCardAppearance = 'outlined' | 'raised';
59
60/**
61 * Avatar image content for a card, intended for use within `<mat-card>`. Can be applied to
62 * any media element, such as `<img>` or `<picture>`.
63 *
64 * This component is an optional convenience for use with other convenience elements, such as
65 * `<mat-card-title>`; any custom media element may be used in its place.
66 *
67 * MatCardAvatar provides no behaviors, instead serving as a purely visual treatment.
68 */
69export declare class MatCardAvatar {
70 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardAvatar, never>;
71 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never, false, never>;
72}
73
74/** Object that can be used to configure the default options for the card module. */
75export declare interface MatCardConfig {
76 /** Default appearance for cards. */
77 appearance?: MatCardAppearance;
78}
79
80/**
81 * Content of a card, intended for use within `<mat-card>`. This component is an optional
82 * convenience for use with other convenience elements, such as `<mat-card-title>`; any custom
83 * content block element may be used in its place.
84 *
85 * MatCardContent provides no behaviors, instead serving as a purely visual treatment.
86 */
87export declare class MatCardContent {
88 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardContent, never>;
89 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never, false, never>;
90}
91
92/**
93 * Footer area a card, intended for use within `<mat-card>`.
94 * This component is an optional convenience for use with other convenience elements, such as
95 * `<mat-card-content>`; any custom footer block element may be used in its place.
96 *
97 * MatCardFooter provides no behaviors, instead serving as a purely visual treatment.
98 */
99export declare class MatCardFooter {
100 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardFooter, never>;
101 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never, false, never>;
102}
103
104/**
105 * Header region of a card, intended for use within `<mat-card>`. This header captures
106 * a card title, subtitle, and avatar. This component is an optional convenience for use with
107 * other convenience elements, such as `<mat-card-footer>`; any custom header block element may be
108 * used in its place.
109 *
110 * MatCardHeader provides no behaviors, instead serving as a purely visual treatment.
111 */
112export declare class MatCardHeader {
113 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardHeader, never>;
114 static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"], false, never>;
115}
116
117/**
118 * Primary image content for a card, intended for use within `<mat-card>`. Can be applied to
119 * any media element, such as `<img>` or `<picture>`.
120 *
121 * This component is an optional convenience for use with other convenience elements, such as
122 * `<mat-card-content>`; any custom media element may be used in its place.
123 *
124 * MatCardImage provides no behaviors, instead serving as a purely visual treatment.
125 */
126export declare class MatCardImage {
127 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardImage, never>;
128 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never, false, never>;
129}
130
131/** Same as `MatCardImage`, but large. */
132export declare class MatCardLgImage {
133 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardLgImage, never>;
134 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, false, never>;
135}
136
137/** Same as `MatCardImage`, but medium. */
138export declare class MatCardMdImage {
139 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardMdImage, never>;
140 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never, false, never>;
141}
142
143export declare class MatCardModule {
144 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardModule, never>;
145 static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, [typeof i1.MatCard, typeof i1.MatCardActions, typeof i1.MatCardAvatar, typeof i1.MatCardContent, typeof i1.MatCardFooter, typeof i1.MatCardHeader, typeof i1.MatCardImage, typeof i1.MatCardLgImage, typeof i1.MatCardMdImage, typeof i1.MatCardSmImage, typeof i1.MatCardSubtitle, typeof i1.MatCardTitle, typeof i1.MatCardTitleGroup, typeof i1.MatCardXlImage], [typeof i2.MatCommonModule, typeof i3.CommonModule], [typeof i1.MatCard, typeof i1.MatCardActions, typeof i1.MatCardAvatar, typeof i1.MatCardContent, typeof i1.MatCardFooter, typeof i1.MatCardHeader, typeof i1.MatCardImage, typeof i1.MatCardLgImage, typeof i1.MatCardMdImage, typeof i1.MatCardSmImage, typeof i1.MatCardSubtitle, typeof i1.MatCardTitle, typeof i1.MatCardTitleGroup, typeof i1.MatCardXlImage, typeof i2.MatCommonModule]>;
146 static ɵinj: i0.ɵɵInjectorDeclaration<MatCardModule>;
147}
148
149/** Same as `MatCardImage`, but small. */
150export declare class MatCardSmImage {
151 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSmImage, never>;
152 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, false, never>;
153}
154
155/**
156 * Sub-title of a card, intended for use within `<mat-card>` beneath a `<mat-card-title>`. This
157 * component is an optional convenience for use with other convenience elements, such as
158 * `<mat-card-title>`.
159 *
160 * MatCardSubtitle provides no behaviors, instead serving as a purely visual treatment.
161 */
162export declare class MatCardSubtitle {
163 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSubtitle, never>;
164 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, false, never>;
165}
166
167/**
168 * Title of a card, intended for use within `<mat-card>`. This component is an optional
169 * convenience for one variety of card title; any custom title element may be used in its place.
170 *
171 * MatCardTitle provides no behaviors, instead serving as a purely visual treatment.
172 */
173export declare class MatCardTitle {
174 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitle, never>;
175 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, false, never>;
176}
177
178/**
179 * Container intended to be used within the `<mat-card>` component. Can contain exactly one
180 * `<mat-card-title>`, one `<mat-card-subtitle>` and one content image of any size
181 * (e.g. `<img matCardLgImage>`).
182 */
183export declare class MatCardTitleGroup {
184 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitleGroup, never>;
185 static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"], false, never>;
186}
187
188/** Same as `MatCardImage`, but extra-large. */
189export declare class MatCardXlImage {
190 static ɵfac: i0.ɵɵFactoryDeclaration<MatCardXlImage, never>;
191 static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never, false, never>;
192}
193
194export { }