1 | import { Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, NgModule } from '@angular/core';
|
---|
2 | import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
---|
3 | import { MatCommonModule } from '@angular/material/core';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * @license
|
---|
7 | * Copyright Google LLC All Rights Reserved.
|
---|
8 | *
|
---|
9 | * Use of this source code is governed by an MIT-style license that can be
|
---|
10 | * found in the LICENSE file at https://angular.io/license
|
---|
11 | */
|
---|
12 | /**
|
---|
13 | * Content of a card, needed as it's used as a selector in the API.
|
---|
14 | * @docs-private
|
---|
15 | */
|
---|
16 | import * as ɵngcc0 from '@angular/core';
|
---|
17 |
|
---|
18 | const _c0 = ["*", [["mat-card-footer"]]];
|
---|
19 | const _c1 = ["*", "mat-card-footer"];
|
---|
20 | const _c2 = [[["", "mat-card-avatar", ""], ["", "matCardAvatar", ""]], [["mat-card-title"], ["mat-card-subtitle"], ["", "mat-card-title", ""], ["", "mat-card-subtitle", ""], ["", "matCardTitle", ""], ["", "matCardSubtitle", ""]], "*"];
|
---|
21 | const _c3 = ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"];
|
---|
22 | const _c4 = [[["mat-card-title"], ["mat-card-subtitle"], ["", "mat-card-title", ""], ["", "mat-card-subtitle", ""], ["", "matCardTitle", ""], ["", "matCardSubtitle", ""]], [["img"]], "*"];
|
---|
23 | const _c5 = ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "img", "*"];
|
---|
24 | class MatCardContent {
|
---|
25 | }
|
---|
26 | MatCardContent.ɵfac = function MatCardContent_Factory(t) { return new (t || MatCardContent)(); };
|
---|
27 | MatCardContent.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardContent, selectors: [["mat-card-content"], ["", "mat-card-content", ""], ["", "matCardContent", ""]], hostAttrs: [1, "mat-card-content"] });
|
---|
28 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardContent, [{
|
---|
29 | type: Directive,
|
---|
30 | args: [{
|
---|
31 | selector: 'mat-card-content, [mat-card-content], [matCardContent]',
|
---|
32 | host: { 'class': 'mat-card-content' }
|
---|
33 | }]
|
---|
34 | }], null, null); })();
|
---|
35 | /**
|
---|
36 | * Title of a card, needed as it's used as a selector in the API.
|
---|
37 | * @docs-private
|
---|
38 | */
|
---|
39 | class MatCardTitle {
|
---|
40 | }
|
---|
41 | MatCardTitle.ɵfac = function MatCardTitle_Factory(t) { return new (t || MatCardTitle)(); };
|
---|
42 | MatCardTitle.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardTitle, selectors: [["mat-card-title"], ["", "mat-card-title", ""], ["", "matCardTitle", ""]], hostAttrs: [1, "mat-card-title"] });
|
---|
43 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardTitle, [{
|
---|
44 | type: Directive,
|
---|
45 | args: [{
|
---|
46 | selector: `mat-card-title, [mat-card-title], [matCardTitle]`,
|
---|
47 | host: {
|
---|
48 | 'class': 'mat-card-title'
|
---|
49 | }
|
---|
50 | }]
|
---|
51 | }], null, null); })();
|
---|
52 | /**
|
---|
53 | * Sub-title of a card, needed as it's used as a selector in the API.
|
---|
54 | * @docs-private
|
---|
55 | */
|
---|
56 | class MatCardSubtitle {
|
---|
57 | }
|
---|
58 | MatCardSubtitle.ɵfac = function MatCardSubtitle_Factory(t) { return new (t || MatCardSubtitle)(); };
|
---|
59 | MatCardSubtitle.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardSubtitle, selectors: [["mat-card-subtitle"], ["", "mat-card-subtitle", ""], ["", "matCardSubtitle", ""]], hostAttrs: [1, "mat-card-subtitle"] });
|
---|
60 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardSubtitle, [{
|
---|
61 | type: Directive,
|
---|
62 | args: [{
|
---|
63 | selector: `mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]`,
|
---|
64 | host: {
|
---|
65 | 'class': 'mat-card-subtitle'
|
---|
66 | }
|
---|
67 | }]
|
---|
68 | }], null, null); })();
|
---|
69 | /**
|
---|
70 | * Action section of a card, needed as it's used as a selector in the API.
|
---|
71 | * @docs-private
|
---|
72 | */
|
---|
73 | class MatCardActions {
|
---|
74 | constructor() {
|
---|
75 | /** Position of the actions inside the card. */
|
---|
76 | this.align = 'start';
|
---|
77 | }
|
---|
78 | }
|
---|
79 | MatCardActions.ɵfac = function MatCardActions_Factory(t) { return new (t || MatCardActions)(); };
|
---|
80 | MatCardActions.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardActions, selectors: [["mat-card-actions"]], hostAttrs: [1, "mat-card-actions"], hostVars: 2, hostBindings: function MatCardActions_HostBindings(rf, ctx) { if (rf & 2) {
|
---|
81 | ɵngcc0.ɵɵclassProp("mat-card-actions-align-end", ctx.align === "end");
|
---|
82 | } }, inputs: { align: "align" }, exportAs: ["matCardActions"] });
|
---|
83 | MatCardActions.propDecorators = {
|
---|
84 | align: [{ type: Input }]
|
---|
85 | };
|
---|
86 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardActions, [{
|
---|
87 | type: Directive,
|
---|
88 | args: [{
|
---|
89 | selector: 'mat-card-actions',
|
---|
90 | exportAs: 'matCardActions',
|
---|
91 | host: {
|
---|
92 | 'class': 'mat-card-actions',
|
---|
93 | '[class.mat-card-actions-align-end]': 'align === "end"'
|
---|
94 | }
|
---|
95 | }]
|
---|
96 | }], function () { return []; }, { align: [{
|
---|
97 | type: Input
|
---|
98 | }] }); })();
|
---|
99 | /**
|
---|
100 | * Footer of a card, needed as it's used as a selector in the API.
|
---|
101 | * @docs-private
|
---|
102 | */
|
---|
103 | class MatCardFooter {
|
---|
104 | }
|
---|
105 | MatCardFooter.ɵfac = function MatCardFooter_Factory(t) { return new (t || MatCardFooter)(); };
|
---|
106 | MatCardFooter.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardFooter, selectors: [["mat-card-footer"]], hostAttrs: [1, "mat-card-footer"] });
|
---|
107 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardFooter, [{
|
---|
108 | type: Directive,
|
---|
109 | args: [{
|
---|
110 | selector: 'mat-card-footer',
|
---|
111 | host: { 'class': 'mat-card-footer' }
|
---|
112 | }]
|
---|
113 | }], null, null); })();
|
---|
114 | /**
|
---|
115 | * Image used in a card, needed to add the mat- CSS styling.
|
---|
116 | * @docs-private
|
---|
117 | */
|
---|
118 | class MatCardImage {
|
---|
119 | }
|
---|
120 | MatCardImage.ɵfac = function MatCardImage_Factory(t) { return new (t || MatCardImage)(); };
|
---|
121 | MatCardImage.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardImage, selectors: [["", "mat-card-image", ""], ["", "matCardImage", ""]], hostAttrs: [1, "mat-card-image"] });
|
---|
122 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardImage, [{
|
---|
123 | type: Directive,
|
---|
124 | args: [{
|
---|
125 | selector: '[mat-card-image], [matCardImage]',
|
---|
126 | host: { 'class': 'mat-card-image' }
|
---|
127 | }]
|
---|
128 | }], null, null); })();
|
---|
129 | /**
|
---|
130 | * Image used in a card, needed to add the mat- CSS styling.
|
---|
131 | * @docs-private
|
---|
132 | */
|
---|
133 | class MatCardSmImage {
|
---|
134 | }
|
---|
135 | MatCardSmImage.ɵfac = function MatCardSmImage_Factory(t) { return new (t || MatCardSmImage)(); };
|
---|
136 | MatCardSmImage.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardSmImage, selectors: [["", "mat-card-sm-image", ""], ["", "matCardImageSmall", ""]], hostAttrs: [1, "mat-card-sm-image"] });
|
---|
137 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardSmImage, [{
|
---|
138 | type: Directive,
|
---|
139 | args: [{
|
---|
140 | selector: '[mat-card-sm-image], [matCardImageSmall]',
|
---|
141 | host: { 'class': 'mat-card-sm-image' }
|
---|
142 | }]
|
---|
143 | }], null, null); })();
|
---|
144 | /**
|
---|
145 | * Image used in a card, needed to add the mat- CSS styling.
|
---|
146 | * @docs-private
|
---|
147 | */
|
---|
148 | class MatCardMdImage {
|
---|
149 | }
|
---|
150 | MatCardMdImage.ɵfac = function MatCardMdImage_Factory(t) { return new (t || MatCardMdImage)(); };
|
---|
151 | MatCardMdImage.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardMdImage, selectors: [["", "mat-card-md-image", ""], ["", "matCardImageMedium", ""]], hostAttrs: [1, "mat-card-md-image"] });
|
---|
152 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardMdImage, [{
|
---|
153 | type: Directive,
|
---|
154 | args: [{
|
---|
155 | selector: '[mat-card-md-image], [matCardImageMedium]',
|
---|
156 | host: { 'class': 'mat-card-md-image' }
|
---|
157 | }]
|
---|
158 | }], null, null); })();
|
---|
159 | /**
|
---|
160 | * Image used in a card, needed to add the mat- CSS styling.
|
---|
161 | * @docs-private
|
---|
162 | */
|
---|
163 | class MatCardLgImage {
|
---|
164 | }
|
---|
165 | MatCardLgImage.ɵfac = function MatCardLgImage_Factory(t) { return new (t || MatCardLgImage)(); };
|
---|
166 | MatCardLgImage.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardLgImage, selectors: [["", "mat-card-lg-image", ""], ["", "matCardImageLarge", ""]], hostAttrs: [1, "mat-card-lg-image"] });
|
---|
167 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardLgImage, [{
|
---|
168 | type: Directive,
|
---|
169 | args: [{
|
---|
170 | selector: '[mat-card-lg-image], [matCardImageLarge]',
|
---|
171 | host: { 'class': 'mat-card-lg-image' }
|
---|
172 | }]
|
---|
173 | }], null, null); })();
|
---|
174 | /**
|
---|
175 | * Large image used in a card, needed to add the mat- CSS styling.
|
---|
176 | * @docs-private
|
---|
177 | */
|
---|
178 | class MatCardXlImage {
|
---|
179 | }
|
---|
180 | MatCardXlImage.ɵfac = function MatCardXlImage_Factory(t) { return new (t || MatCardXlImage)(); };
|
---|
181 | MatCardXlImage.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardXlImage, selectors: [["", "mat-card-xl-image", ""], ["", "matCardImageXLarge", ""]], hostAttrs: [1, "mat-card-xl-image"] });
|
---|
182 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardXlImage, [{
|
---|
183 | type: Directive,
|
---|
184 | args: [{
|
---|
185 | selector: '[mat-card-xl-image], [matCardImageXLarge]',
|
---|
186 | host: { 'class': 'mat-card-xl-image' }
|
---|
187 | }]
|
---|
188 | }], null, null); })();
|
---|
189 | /**
|
---|
190 | * Avatar image used in a card, needed to add the mat- CSS styling.
|
---|
191 | * @docs-private
|
---|
192 | */
|
---|
193 | class MatCardAvatar {
|
---|
194 | }
|
---|
195 | MatCardAvatar.ɵfac = function MatCardAvatar_Factory(t) { return new (t || MatCardAvatar)(); };
|
---|
196 | MatCardAvatar.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatCardAvatar, selectors: [["", "mat-card-avatar", ""], ["", "matCardAvatar", ""]], hostAttrs: [1, "mat-card-avatar"] });
|
---|
197 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardAvatar, [{
|
---|
198 | type: Directive,
|
---|
199 | args: [{
|
---|
200 | selector: '[mat-card-avatar], [matCardAvatar]',
|
---|
201 | host: { 'class': 'mat-card-avatar' }
|
---|
202 | }]
|
---|
203 | }], null, null); })();
|
---|
204 | /**
|
---|
205 | * A basic content container component that adds the styles of a Material design card.
|
---|
206 | *
|
---|
207 | * While this component can be used alone, it also provides a number
|
---|
208 | * of preset styles for common card sections, including:
|
---|
209 | * - mat-card-title
|
---|
210 | * - mat-card-subtitle
|
---|
211 | * - mat-card-content
|
---|
212 | * - mat-card-actions
|
---|
213 | * - mat-card-footer
|
---|
214 | */
|
---|
215 | class MatCard {
|
---|
216 | // @breaking-change 9.0.0 `_animationMode` parameter to be made required.
|
---|
217 | constructor(_animationMode) {
|
---|
218 | this._animationMode = _animationMode;
|
---|
219 | }
|
---|
220 | }
|
---|
221 | MatCard.ɵfac = function MatCard_Factory(t) { return new (t || MatCard)(ɵngcc0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8)); };
|
---|
222 | MatCard.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatCard, selectors: [["mat-card"]], hostAttrs: [1, "mat-card", "mat-focus-indicator"], hostVars: 2, hostBindings: function MatCard_HostBindings(rf, ctx) { if (rf & 2) {
|
---|
223 | ɵngcc0.ɵɵclassProp("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
|
---|
224 | } }, exportAs: ["matCard"], ngContentSelectors: _c1, decls: 2, vars: 0, template: function MatCard_Template(rf, ctx) { if (rf & 1) {
|
---|
225 | ɵngcc0.ɵɵprojectionDef(_c0);
|
---|
226 | ɵngcc0.ɵɵprojection(0);
|
---|
227 | ɵngcc0.ɵɵprojection(1, 1);
|
---|
228 | } }, styles: [".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"], encapsulation: 2, changeDetection: 0 });
|
---|
229 | MatCard.ctorParameters = () => [
|
---|
230 | { type: String, decorators: [{ type: Optional }, { type: Inject, args: [ANIMATION_MODULE_TYPE,] }] }
|
---|
231 | ];
|
---|
232 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCard, [{
|
---|
233 | type: Component,
|
---|
234 | args: [{
|
---|
235 | selector: 'mat-card',
|
---|
236 | exportAs: 'matCard',
|
---|
237 | template: "<ng-content></ng-content>\n<ng-content select=\"mat-card-footer\"></ng-content>\n",
|
---|
238 | encapsulation: ViewEncapsulation.None,
|
---|
239 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
240 | host: {
|
---|
241 | 'class': 'mat-card mat-focus-indicator',
|
---|
242 | '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"'
|
---|
243 | },
|
---|
244 | styles: [".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"]
|
---|
245 | }]
|
---|
246 | }], function () { return [{ type: String, decorators: [{
|
---|
247 | type: Optional
|
---|
248 | }, {
|
---|
249 | type: Inject,
|
---|
250 | args: [ANIMATION_MODULE_TYPE]
|
---|
251 | }] }]; }, null); })();
|
---|
252 | /**
|
---|
253 | * Component intended to be used within the `<mat-card>` component. It adds styles for a
|
---|
254 | * preset header section (i.e. a title, subtitle, and avatar layout).
|
---|
255 | * @docs-private
|
---|
256 | */
|
---|
257 | class MatCardHeader {
|
---|
258 | }
|
---|
259 | MatCardHeader.ɵfac = function MatCardHeader_Factory(t) { return new (t || MatCardHeader)(); };
|
---|
260 | MatCardHeader.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatCardHeader, selectors: [["mat-card-header"]], hostAttrs: [1, "mat-card-header"], ngContentSelectors: _c3, decls: 4, vars: 0, consts: [[1, "mat-card-header-text"]], template: function MatCardHeader_Template(rf, ctx) { if (rf & 1) {
|
---|
261 | ɵngcc0.ɵɵprojectionDef(_c2);
|
---|
262 | ɵngcc0.ɵɵprojection(0);
|
---|
263 | ɵngcc0.ɵɵelementStart(1, "div", 0);
|
---|
264 | ɵngcc0.ɵɵprojection(2, 1);
|
---|
265 | ɵngcc0.ɵɵelementEnd();
|
---|
266 | ɵngcc0.ɵɵprojection(3, 2);
|
---|
267 | } }, encapsulation: 2, changeDetection: 0 });
|
---|
268 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardHeader, [{
|
---|
269 | type: Component,
|
---|
270 | args: [{
|
---|
271 | selector: 'mat-card-header',
|
---|
272 | template: "<ng-content select=\"[mat-card-avatar], [matCardAvatar]\"></ng-content>\n<div class=\"mat-card-header-text\">\n <ng-content\n select=\"mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]\"></ng-content>\n</div>\n<ng-content></ng-content>\n",
|
---|
273 | encapsulation: ViewEncapsulation.None,
|
---|
274 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
275 | host: { 'class': 'mat-card-header' }
|
---|
276 | }]
|
---|
277 | }], null, null); })();
|
---|
278 | /**
|
---|
279 | * Component intended to be used within the `<mat-card>` component. It adds styles for a preset
|
---|
280 | * layout that groups an image with a title section.
|
---|
281 | * @docs-private
|
---|
282 | */
|
---|
283 | class MatCardTitleGroup {
|
---|
284 | }
|
---|
285 | MatCardTitleGroup.ɵfac = function MatCardTitleGroup_Factory(t) { return new (t || MatCardTitleGroup)(); };
|
---|
286 | MatCardTitleGroup.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatCardTitleGroup, selectors: [["mat-card-title-group"]], hostAttrs: [1, "mat-card-title-group"], ngContentSelectors: _c5, decls: 4, vars: 0, template: function MatCardTitleGroup_Template(rf, ctx) { if (rf & 1) {
|
---|
287 | ɵngcc0.ɵɵprojectionDef(_c4);
|
---|
288 | ɵngcc0.ɵɵelementStart(0, "div");
|
---|
289 | ɵngcc0.ɵɵprojection(1);
|
---|
290 | ɵngcc0.ɵɵelementEnd();
|
---|
291 | ɵngcc0.ɵɵprojection(2, 1);
|
---|
292 | ɵngcc0.ɵɵprojection(3, 2);
|
---|
293 | } }, encapsulation: 2, changeDetection: 0 });
|
---|
294 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardTitleGroup, [{
|
---|
295 | type: Component,
|
---|
296 | args: [{
|
---|
297 | selector: 'mat-card-title-group',
|
---|
298 | template: "<div>\n <ng-content\n select=\"mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]\"></ng-content>\n</div>\n<ng-content select=\"img\"></ng-content>\n<ng-content></ng-content>\n",
|
---|
299 | encapsulation: ViewEncapsulation.None,
|
---|
300 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
301 | host: { 'class': 'mat-card-title-group' }
|
---|
302 | }]
|
---|
303 | }], null, null); })();
|
---|
304 |
|
---|
305 | /**
|
---|
306 | * @license
|
---|
307 | * Copyright Google LLC All Rights Reserved.
|
---|
308 | *
|
---|
309 | * Use of this source code is governed by an MIT-style license that can be
|
---|
310 | * found in the LICENSE file at https://angular.io/license
|
---|
311 | */
|
---|
312 | class MatCardModule {
|
---|
313 | }
|
---|
314 | MatCardModule.ɵfac = function MatCardModule_Factory(t) { return new (t || MatCardModule)(); };
|
---|
315 | MatCardModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: MatCardModule });
|
---|
316 | MatCardModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[MatCommonModule], MatCommonModule] });
|
---|
317 | (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatCardModule, [{
|
---|
318 | type: NgModule,
|
---|
319 | args: [{
|
---|
320 | imports: [MatCommonModule],
|
---|
321 | exports: [
|
---|
322 | MatCard,
|
---|
323 | MatCardHeader,
|
---|
324 | MatCardTitleGroup,
|
---|
325 | MatCardContent,
|
---|
326 | MatCardTitle,
|
---|
327 | MatCardSubtitle,
|
---|
328 | MatCardActions,
|
---|
329 | MatCardFooter,
|
---|
330 | MatCardSmImage,
|
---|
331 | MatCardMdImage,
|
---|
332 | MatCardLgImage,
|
---|
333 | MatCardImage,
|
---|
334 | MatCardXlImage,
|
---|
335 | MatCardAvatar,
|
---|
336 | MatCommonModule,
|
---|
337 | ],
|
---|
338 | declarations: [
|
---|
339 | MatCard, MatCardHeader, MatCardTitleGroup, MatCardContent, MatCardTitle, MatCardSubtitle,
|
---|
340 | MatCardActions, MatCardFooter, MatCardSmImage, MatCardMdImage, MatCardLgImage, MatCardImage,
|
---|
341 | MatCardXlImage, MatCardAvatar,
|
---|
342 | ]
|
---|
343 | }]
|
---|
344 | }], null, null); })();
|
---|
345 | (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(MatCardModule, { declarations: function () { return [MatCard, MatCardHeader, MatCardTitleGroup, MatCardContent, MatCardTitle, MatCardSubtitle, MatCardActions, MatCardFooter, MatCardSmImage, MatCardMdImage, MatCardLgImage, MatCardImage, MatCardXlImage, MatCardAvatar]; }, imports: function () { return [MatCommonModule]; }, exports: function () { return [MatCard, MatCardHeader, MatCardTitleGroup, MatCardContent, MatCardTitle, MatCardSubtitle, MatCardActions, MatCardFooter, MatCardSmImage, MatCardMdImage, MatCardLgImage, MatCardImage, MatCardXlImage, MatCardAvatar, MatCommonModule]; } }); })();
|
---|
346 |
|
---|
347 | /**
|
---|
348 | * @license
|
---|
349 | * Copyright Google LLC All Rights Reserved.
|
---|
350 | *
|
---|
351 | * Use of this source code is governed by an MIT-style license that can be
|
---|
352 | * found in the LICENSE file at https://angular.io/license
|
---|
353 | */
|
---|
354 |
|
---|
355 | /**
|
---|
356 | * Generated bundle index. Do not edit.
|
---|
357 | */
|
---|
358 |
|
---|
359 | export { MatCard, MatCardActions, MatCardAvatar, MatCardContent, MatCardFooter, MatCardHeader, MatCardImage, MatCardLgImage, MatCardMdImage, MatCardModule, MatCardSmImage, MatCardSubtitle, MatCardTitle, MatCardTitleGroup, MatCardXlImage };
|
---|
360 |
|
---|
361 | //# sourceMappingURL=card.js.map |
---|