blob: 4b6feeccf64756d3ae2ec307e036b840a007231e [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(t,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@angular/core"),require("@angular/platform-browser/animations"),require("@angular/material/core")):"function"==typeof define&&define.amd?define("@angular/material/card",["exports","@angular/core","@angular/platform-browser/animations","@angular/material/core"],a):a((t.ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.card={}),t.ng.core,t.ng.platformBrowser.animations,t.ng.material.core)}(this,function(t,a,r,e){"use strict";var i=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"mat-card-content",host:{class:"mat-card-content"}}]}],t}(),n=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"mat-card-title, [mat-card-title], [matCardTitle]",host:{class:"mat-card-title"}}]}],t}(),o=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]",host:{class:"mat-card-subtitle"}}]}],t}(),c=function(){function t(){this.align="start"}return t.decorators=[{type:a.Directive,args:[{selector:"mat-card-actions",exportAs:"matCardActions",host:{class:"mat-card-actions","[class.mat-card-actions-align-end]":'align === "end"'}}]}],t.propDecorators={align:[{type:a.Input}]},t}(),d=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"mat-card-footer",host:{class:"mat-card-footer"}}]}],t}(),m=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"[mat-card-image], [matCardImage]",host:{class:"mat-card-image"}}]}],t}(),s=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"[mat-card-sm-image], [matCardImageSmall]",host:{class:"mat-card-sm-image"}}]}],t}(),l=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"[mat-card-md-image], [matCardImageMedium]",host:{class:"mat-card-md-image"}}]}],t}(),g=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"[mat-card-lg-image], [matCardImageLarge]",host:{class:"mat-card-lg-image"}}]}],t}(),p=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"[mat-card-xl-image], [matCardImageXLarge]",host:{class:"mat-card-xl-image"}}]}],t}(),u=function(){function t(){}return t.decorators=[{type:a.Directive,args:[{selector:"[mat-card-avatar], [matCardAvatar]",host:{class:"mat-card-avatar"}}]}],t}(),h=function(){function t(t){this._animationMode=t}return t.decorators=[{type:a.Component,args:[{selector:"mat-card",exportAs:"matCard",template:'<ng-content></ng-content><ng-content select="mat-card-footer"></ng-content>',styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,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}@media (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-actions,.mat-card-content,.mat-card-subtitle{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{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-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>: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 .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title: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}"],encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.OnPush,host:{class:"mat-card","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"'}}]}],t.ctorParameters=function(){return[{type:String,decorators:[{type:a.Optional},{type:a.Inject,args:[r.ANIMATION_MODULE_TYPE]}]}]},t}(),f=function(){function t(){}return t.decorators=[{type:a.Component,args:[{selector:"mat-card-header",template:'<ng-content select="[mat-card-avatar], [matCardAvatar]"></ng-content><div class="mat-card-header-text"><ng-content select="mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]"></ng-content></div><ng-content></ng-content>',encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-header"}}]}],t}(),x=function(){function t(){}return t.decorators=[{type:a.Component,args:[{selector:"mat-card-title-group",template:'<div><ng-content select="mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]"></ng-content></div><ng-content select="img"></ng-content><ng-content></ng-content>',encapsulation:a.ViewEncapsulation.None,changeDetection:a.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-title-group"}}]}],t}(),b=function(){function t(){}return t.decorators=[{type:a.NgModule,args:[{imports:[e.MatCommonModule],exports:[h,f,x,i,n,o,c,d,s,l,g,m,p,u,e.MatCommonModule],declarations:[h,f,x,i,n,o,c,d,s,l,g,m,p,u]}]}],t}();t.MatCardContent=i,t.MatCardTitle=n,t.MatCardSubtitle=o,t.MatCardActions=c,t.MatCardFooter=d,t.MatCardImage=m,t.MatCardSmImage=s,t.MatCardMdImage=l,t.MatCardLgImage=g,t.MatCardXlImage=p,t.MatCardAvatar=u,t.MatCard=h,t.MatCardHeader=f,t.MatCardTitleGroup=x,t.MatCardModule=b,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=material-card.umd.min.js.map