UNPKG

@angular/material

Version:
11 lines (10 loc) 37.3 kB
/** * @license * Copyright Google Inc. 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,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/platform-browser"),require("@angular/cdk/coercion"),require("rxjs/Subject"),require("@angular/cdk/keycodes"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform"),require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/cdk/rxjs")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/cdk/a11y","@angular/cdk/bidi","@angular/platform-browser","@angular/cdk/coercion","rxjs/Subject","@angular/cdk/keycodes","@angular/common","@angular/cdk/scrolling","@angular/cdk/platform","@angular/cdk/overlay","@angular/cdk/portal","@angular/cdk/rxjs"],e):e((t.ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.card=t.ng.material.card||{}),t.ng.core,t.ng.cdk.a11y,t.ng.cdk.bidi,t.ng.platformBrowser,t.ng.cdk.coercion,t.Rx,t.ng.cdk.keycodes,t.ng.common,t.ng.cdk.scrolling,t.ng.cdk.platform,t.ng.cdk.overlay,t.ng.cdk.portal,t.ng.cdk.rxjs)}(this,function(t,e,r,n,a,o,i,c,s,d,p,l,u,m){"use strict";function g(t,e){function r(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function h(t,e){return Error('The "'+t+'-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "'+e.toLowerCase()+'" element.')}function f(t){return t||new P}function y(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var n=0,a=e;n<a.length;n++){var o=a[n];if(null!=o)for(var i in o)o.hasOwnProperty(i)&&(t[i]=o[i])}return t}function b(t,e){for(var r=Array(t),n=0;n<t;n++)r[n]=e(n);return r}function v(t){window.getComputedStyle(t).getPropertyValue("opacity")}function _(t,e,r){var n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),a=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+a*a)}var D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},C=function(){function t(){}return t}();C.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",C.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",C.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",C.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var x=function(){function t(){}return t}();x.COMPLEX="375ms",x.ENTERING="225ms",x.EXITING="195ms";var I=new e.InjectionToken("md-compatibility-mode"),w=function(){function t(t,e){if(!t)throw h("mat",e.nativeElement.nodeName)}return t}();w.decorators=[{type:e.Directive,args:[{selector:"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matCellDef],\n [matColumnDef],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matHeaderCellDef],\n [matHeaderRowDef],\n [matLine],\n [matRowDef],\n [matStepLabel],\n [matStepperNext],\n [matStepperPrevious],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n [matInput],\n [matPrefix],\n [matSuffix],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-cell,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-header-cell,\n mat-header-row,\n mat-hint,\n mat-horizontal-stepper,\n mat-icon,\n mat-input-container,\n mat-form-field,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-row,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-step,\n mat-tab,\n mat-table,\n mat-tab-group,\n mat-toolbar,\n mat-vertical-stepper"}]}],w.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]},{type:e.ElementRef}]};var M=function(){function t(t,e){if(t)throw h("md",e.nativeElement.nodeName)}return t}();M.decorators=[{type:e.Directive,args:[{selector:"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdCellDef],\n [mdColumnDef],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdHeaderCellDef],\n [mdHeaderRowDef],\n [mdLine],\n [mdRowDef],\n [mdStepLabel],\n [mdStepperNext],\n [mdStepperPrevious],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n [mdInput],\n [mdPrefix],\n [mdSuffix],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-cell,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-header-cell,\n md-header-row,\n md-hint,\n md-horizontal-stepper,\n md-icon,\n md-input-container,\n md-form-field,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-row,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-step,\n md-tab,\n md-table,\n md-tab-group,\n md-toolbar,\n md-vertical-stepper"}]}],M.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]},{type:e.ElementRef}]};var k=function(){function t(){}return t}();k.decorators=[{type:e.NgModule,args:[{declarations:[w,M],exports:[w,M]}]}],k.ctorParameters=function(){return[]};var R=function(){function t(){}return t}();R.decorators=[{type:e.NgModule,args:[{providers:[{provide:I,useValue:!0}]}]}],R.ctorParameters=function(){return[]};var E=new e.InjectionToken("md-sanity-checks"),O=function(){function t(t,r){this._document=t,this._hasDoneGlobalChecks=!1,r&&!this._hasDoneGlobalChecks&&t&&e.isDevMode()&&(this._checkDoctype(),this._checkTheme(),this._hasDoneGlobalChecks=!0)}return t.prototype._checkDoctype=function(){this._document.doctype||console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkTheme=function(){if("function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t),"none"!==getComputedStyle(t).display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t}();O.decorators=[{type:e.NgModule,args:[{imports:[k,n.BidiModule],exports:[k,n.BidiModule],providers:[{provide:E,useValue:!0}]}]}],O.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[a.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[E]}]}]};var P=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var r=0,n=this._listeners;r<n.length;r++){(0,n[r])(t,e)}},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter(function(e){return t!==e})}},t}();P.decorators=[{type:e.Injectable}],P.ctorParameters=function(){return[]};var T=(new e.Optional,new e.SkipSelf,new e.InjectionToken("MAT_DATE_LOCALE")),S={provide:T,useExisting:e.LOCALE_ID},N=function(){function t(){this._localeChanges=new i.Subject}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.getYear=function(t){},t.prototype.getMonth=function(t){},t.prototype.getDate=function(t){},t.prototype.getDayOfWeek=function(t){},t.prototype.getMonthNames=function(t){},t.prototype.getDateNames=function(){},t.prototype.getDayOfWeekNames=function(t){},t.prototype.getYearName=function(t){},t.prototype.getFirstDayOfWeek=function(){},t.prototype.getNumDaysInMonth=function(t){},t.prototype.clone=function(t){},t.prototype.createDate=function(t,e,r){},t.prototype.today=function(){},t.prototype.parse=function(t,e){},t.prototype.format=function(t,e){},t.prototype.addCalendarYears=function(t,e){},t.prototype.addCalendarMonths=function(t,e){},t.prototype.addCalendarDays=function(t,e){},t.prototype.toIso8601=function(t){},t.prototype.fromIso8601=function(t){},t.prototype.isDateInstance=function(t){},t.prototype.isValid=function(t){},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){return t&&e?!this.compareDate(t,e):t==e},t.prototype.clampDate=function(t,e,r){return e&&this.compareDate(t,e)<0?e:r&&this.compareDate(t,r)>0?r:t},t}(),A="undefined"!=typeof Intl,j={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},F=b(31,function(t){return String(t+1)}),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},V=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,W=function(t){function e(e){var r=t.call(this)||this;return r.useUtcForDisplay=!0,t.prototype.setLocale.call(r,e),r}return g(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getDayOfWeek=function(t){return t.getDay()},e.prototype.getMonthNames=function(t){var e=this;if(A){var r=new Intl.DateTimeFormat(this.locale,{month:t});return b(12,function(t){return e._stripDirectionalityCharacters(r.format(new Date(2017,t,1)))})}return j[t]},e.prototype.getDateNames=function(){var t=this;if(A){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return b(31,function(r){return t._stripDirectionalityCharacters(e.format(new Date(2017,0,r+1)))})}return F},e.prototype.getDayOfWeekNames=function(t){var e=this;if(A){var r=new Intl.DateTimeFormat(this.locale,{weekday:t});return b(7,function(t){return e._stripDirectionalityCharacters(r.format(new Date(2017,0,t+1)))})}return L[t]},e.prototype.getYearName=function(t){if(A){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(e.format(t))}return String(this.getYear(t))},e.prototype.getFirstDayOfWeek=function(){return 0},e.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},e.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},e.prototype.createDate=function(t,e,r){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(r<1)throw Error('Invalid date "'+r+'". Date has to be greater than 0.');var n=this._createDateWithOverflow(t,e,r);if(n.getMonth()!=e)throw Error('Invalid date "'+r+'" for month with index "'+e+'".');return n},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(A){this.useUtcForDisplay&&(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),e=y({},e,{timeZone:"utc"}));var r=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(r.format(t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var r=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(r)!=((this.getMonth(t)+e)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.fromIso8601=function(t){if(V.test(t)){var e=new Date(t);if(this.isValid(e))return e}return null},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype._createDateWithOverflow=function(t,e,r){var n=new Date(t,e,r);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e}(N);W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[T]}]}]};var Y=new e.InjectionToken("md-date-formats"),H={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},U=function(){function t(){}return t}();U.decorators=[{type:e.NgModule,args:[{providers:[{provide:N,useClass:W},S]}]}],U.ctorParameters=function(){return[]};var z=function(){function t(){}return t}();z.decorators=[{type:e.NgModule,args:[{imports:[U],providers:[{provide:Y,useValue:H}]}]}],z.ctorParameters=function(){return[]};var G=(new e.InjectionToken("md-error-global-options"),function(t){function r(){var r=t.call(this)||this;return r._hammer="undefined"!=typeof window?window.Hammer:null,r.events=r._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!r._hammer&&e.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),r}return g(r,t),r.prototype.buildHammer=function(t){var e=new this._hammer(t),r=new this._hammer.Pan,n=new this._hammer.Swipe,a=new this._hammer.Press,o=this._createRecognizer(r,{event:"slide",threshold:0},n),i=this._createRecognizer(a,{event:"longpress",time:500});return r.recognizeWith(n),e.add([n,a,r,o,i]),e},r.prototype._createRecognizer=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=new t.constructor(e);return r.push(t),r.forEach(function(t){return a.recognizeWith(t)}),a},r}(a.HammerGestureConfig));G.decorators=[{type:e.Injectable}],G.ctorParameters=function(){return[]};var q=function(){function t(){}return t}();q.decorators=[{type:e.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],q.ctorParameters=function(){return[]};var B=function(){function t(){}return t}();B.decorators=[{type:e.NgModule,args:[{imports:[O],exports:[q,O],declarations:[q]}]}],B.ctorParameters=function(){return[]};var J={};J.FADING_IN=0,J.VISIBLE=1,J.FADING_OUT=2,J.HIDDEN=3,J[J.FADING_IN]="FADING_IN",J[J.VISIBLE]="VISIBLE",J[J.FADING_OUT]="FADING_OUT",J[J.HIDDEN]="HIDDEN";var Z=function(){function t(t,e,r){this._renderer=t,this.element=e,this.config=r,this.state=J.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),X=function(){function t(t,e,r,n){this._ngZone=e,this._ruler=r,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,n.isBrowser&&(this._containerElement=t.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown.bind(this)),this._triggerEvents.set("mouseup",this.onMouseup.bind(this)),this._triggerEvents.set("mouseleave",this.onMouseLeave.bind(this)),this.setTriggerElement(this._containerElement))}return t.prototype.fadeInRipple=function(t,e,r){var n=this;void 0===r&&(r={});var a=this._containerElement.getBoundingClientRect();if(r.centered)t=a.left+a.width/2,e=a.top+a.height/2;else{var o=this._ruler.getViewportScrollPosition();t-=o.left,e-=o.top}var i=r.radius||_(t,e,a),c=1/(r.speedFactor||1)*450,s=t-a.left,d=e-a.top,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-i+"px",p.style.top=d-i+"px",p.style.height=2*i+"px",p.style.width=2*i+"px",p.style.backgroundColor=r.color||null,p.style.transitionDuration=c+"ms",this._containerElement.appendChild(p),v(p),p.style.transform="scale(1)";var l=new Z(this,p,r);return l.state=J.FADING_IN,this._activeRipples.add(l),this.runTimeoutOutsideZone(function(){l.state=J.VISIBLE,r.persistent||n._isMousedown||l.fadeOut()},c),l},t.prototype.fadeOutRipple=function(t){if(this._activeRipples.delete(t)){var e=t.element;e.style.transitionDuration="400ms",e.style.opacity="0",t.state=J.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=J.HIDDEN,e.parentNode.removeChild(e)},400)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setTriggerElement=function(t){var e=this;this._triggerElement&&this._triggerEvents.forEach(function(t,r){e._triggerElement.removeEventListener(r,t)}),t&&this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(e,r){return t.addEventListener(r,e)})}),this._triggerElement=t},t.prototype.onMousedown=function(t){this.rippleDisabled||(this._isMousedown=!0,this.fadeInRipple(t.pageX,t.pageY,this.rippleConfig))},t.prototype.onMouseup=function(){this._isMousedown=!1,this._activeRipples.forEach(function(t){t.config.persistent||t.state!==J.VISIBLE||t.fadeOut()})},t.prototype.onMouseLeave=function(){this._isMousedown&&this.onMouseup()},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t}(),K=new e.InjectionToken("md-ripple-global-options"),$=function(){function t(t,e,r,n,a){this.radius=0,this.speedFactor=1,this._rippleRenderer=new X(t,e,r,n),this._globalOptions=a||{},this._updateRippleRenderer()}return Object.defineProperty(t.prototype,"_matRippleTrigger",{get:function(){return this.trigger},set:function(t){this.trigger=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleCentered",{get:function(){return this.centered},set:function(t){this.centered=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleDisabled",{get:function(){return this.disabled},set:function(t){this.disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleRadius",{get:function(){return this.radius},set:function(t){this.radius=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleSpeedFactor",{get:function(){return this.speedFactor},set:function(t){this.speedFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matRippleUnbounded",{get:function(){return this.unbounded},set:function(t){this.unbounded=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){(t.trigger||t._matRippleTrigger)&&this.trigger&&this._rippleRenderer.setTriggerElement(this.trigger),this._updateRippleRenderer()},t.prototype.ngOnDestroy=function(){this._rippleRenderer.setTriggerElement(null)},t.prototype.launch=function(t,e,r){return void 0===r&&(r=this.rippleConfig),this._rippleRenderer.fadeInRipple(t,e,r)},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1),radius:this.radius,color:this.color}},enumerable:!0,configurable:!0}),t.prototype._updateRippleRenderer=function(){this._rippleRenderer.rippleDisabled=this._globalOptions.disabled||this.disabled,this._rippleRenderer.rippleConfig=this.rippleConfig},t}();$.decorators=[{type:e.Directive,args:[{selector:"[md-ripple], [mat-ripple], [mdRipple], [matRipple]",exportAs:"mdRipple, matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],$.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:d.ViewportRuler},{type:p.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]},$.propDecorators={trigger:[{type:e.Input,args:["mdRippleTrigger"]}],centered:[{type:e.Input,args:["mdRippleCentered"]}],disabled:[{type:e.Input,args:["mdRippleDisabled"]}],radius:[{type:e.Input,args:["mdRippleRadius"]}],speedFactor:[{type:e.Input,args:["mdRippleSpeedFactor"]}],color:[{type:e.Input,args:["mdRippleColor"]}],unbounded:[{type:e.Input,args:["mdRippleUnbounded"]}],_matRippleTrigger:[{type:e.Input,args:["matRippleTrigger"]}],_matRippleCentered:[{type:e.Input,args:["matRippleCentered"]}],_matRippleDisabled:[{type:e.Input,args:["matRippleDisabled"]}],_matRippleRadius:[{type:e.Input,args:["matRippleRadius"]}],_matRippleSpeedFactor:[{type:e.Input,args:["matRippleSpeedFactor"]}],_matRippleColor:[{type:e.Input,args:["matRippleColor"]}],_matRippleUnbounded:[{type:e.Input,args:["matRippleUnbounded"]}]};var Q=function(){function t(){}return t}();Q.decorators=[{type:e.NgModule,args:[{imports:[O,p.PlatformModule,d.ScrollDispatchModule],exports:[$,O],declarations:[$],providers:[d.VIEWPORT_RULER_PROVIDER]}]}],Q.ctorParameters=function(){return[]};var tt=function(){function t(){this.state="unchecked",this.disabled=!1}return t}();tt.decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"md-pseudo-checkbox, mat-pseudo-checkbox",styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled"}}]}],tt.ctorParameters=function(){return[]},tt.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]};var et=function(){function t(){}return t}();et.decorators=[{type:e.NgModule,args:[{exports:[tt],declarations:[tt]}]}],et.ctorParameters=function(){return[]};var rt=function(){function t(){}return t}(),nt=function(t){return function(t){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return n._disabled=!1,n}return g(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}(rt),at=0,ot=function(t){function e(){var e=t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+at++,e}return g(e,t),e}(nt);ot.decorators=[{type:e.Component,args:[{selector:"md-optgroup, mat-optgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="md-option, mat-option"></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],ot.ctorParameters=function(){return[]},ot.propDecorators={label:[{type:e.Input}]};var it=0,ct=function(){function t(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}return t}(),st=function(){function t(t,r,n){this._element=t,this._changeDetectorRef=r,this.group=n,this._selected=!1,this._active=!1,this._multiple=!1,this._disableRipple=!1,this._disabled=!1,this._id="md-option-"+it++,this.onSelectionChange=new e.EventEmitter}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(t){t!==this._multiple&&(this._multiple=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=t,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},t.prototype.focus=function(){var t=this._getHostElement();"function"==typeof t.focus&&t.focus()},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==c.ENTER&&t.keyCode!==c.SPACE||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new ct(this,t))},t.countGroupLabelsBeforeOption=function(t,e,r){if(r.length){for(var n=e.toArray(),a=r.toArray(),o=0,i=0;i<t+1;i++)n[i].group&&n[i].group===a[o]&&o++;return o}return 0},t}();st.decorators=[{type:e.Component,args:[{selector:"md-option, mat-option",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option"},template:'<span *ngIf="multiple"><mat-pseudo-checkbox class="mat-option-pseudo-checkbox" [state]="selected ? \'checked\' : \'\'" [disabled]="disabled"></mat-pseudo-checkbox></span><ng-content></ng-content><div class="mat-option-ripple" mat-ripple [matRippleTrigger]="_getHostElement()" [matRippleDisabled]="disabled || disableRipple"></div>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,viewProviders:[{provide:I,useValue:!0}]}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:ot,decorators:[{type:e.Optional}]}]},st.propDecorators={value:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]};var dt=function(){function t(){}return t}();dt.decorators=[{type:e.NgModule,args:[{imports:[Q,s.CommonModule,et],exports:[st,ot],declarations:[st,ot]}]}],dt.ctorParameters=function(){return[]};var pt=(new e.InjectionToken("md-placeholder-global-options"),function(){function t(){}return t}());pt.decorators=[{type:e.NgModule,args:[{imports:[r.A11yModule],exports:[r.A11yModule]}]}],pt.ctorParameters=function(){return[]};var lt=function(){function t(){}return t}();lt.decorators=[{type:e.Directive,args:[{selector:"md-card-content, mat-card-content",host:{class:"mat-card-content"}}]}],lt.ctorParameters=function(){return[]};var ut=function(){function t(){}return t}();ut.decorators=[{type:e.Directive,args:[{selector:"md-card-title, mat-card-title, [md-card-title], [mat-card-title],\n [mdCardTitle], [matCardTitle]",host:{class:"mat-card-title"}}]}],ut.ctorParameters=function(){return[]};var mt=function(){function t(){}return t}();mt.decorators=[{type:e.Directive,args:[{selector:"md-card-subtitle, mat-card-subtitle, [md-card-subtitle], [mat-card-subtitle],\n [mdCardSubtitle], [matCardSubtitle]",host:{class:"mat-card-subtitle"}}]}],mt.ctorParameters=function(){return[]};var gt=function(){function t(){this.align="start"}return t}();gt.decorators=[{type:e.Directive,args:[{selector:"md-card-actions, mat-card-actions",host:{class:"mat-card-actions","[class.mat-card-actions-align-end]":'align === "end"'}}]}],gt.ctorParameters=function(){return[]},gt.propDecorators={align:[{type:e.Input}]};var ht=function(){function t(){}return t}();ht.decorators=[{type:e.Directive,args:[{selector:"md-card-footer, mat-card-footer",host:{class:"mat-card-footer"}}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t}();ft.decorators=[{type:e.Directive,args:[{selector:"[md-card-image], [mat-card-image], [mdCardImage], [matCardImage]",host:{class:"mat-card-image"}}]}],ft.ctorParameters=function(){return[]};var yt=function(){function t(){}return t}();yt.decorators=[{type:e.Directive,args:[{selector:"[md-card-sm-image], [mat-card-sm-image], [mdCardImageSmall], [matCardImageSmall]",host:{class:"mat-card-sm-image"}}]}],yt.ctorParameters=function(){return[]};var bt=function(){function t(){}return t}();bt.decorators=[{type:e.Directive,args:[{selector:"[md-card-md-image], [mat-card-md-image], [mdCardImageMedium], [matCardImageMedium]",host:{class:"mat-card-md-image"}}]}],bt.ctorParameters=function(){return[]};var vt=function(){function t(){}return t}();vt.decorators=[{type:e.Directive,args:[{selector:"[md-card-lg-image], [mat-card-lg-image], [mdCardImageLarge], [matCardImageLarge]",host:{class:"mat-card-lg-image"}}]}],vt.ctorParameters=function(){return[]};var _t=function(){function t(){}return t}();_t.decorators=[{type:e.Directive,args:[{selector:"[md-card-xl-image], [mat-card-xl-image], [mdCardImageXLarge], [matCardImageXLarge]",host:{class:"mat-card-xl-image"}}]}],_t.ctorParameters=function(){return[]};var Dt=function(){function t(){}return t}() ;Dt.decorators=[{type:e.Directive,args:[{selector:"[md-card-avatar], [mat-card-avatar], [mdCardAvatar], [matCardAvatar]",host:{class:"mat-card-avatar"}}]}],Dt.ctorParameters=function(){return[]};var Ct=function(){function t(){}return t}();Ct.decorators=[{type:e.Component,args:[{selector:"md-card, mat-card",template:'<ng-content></ng-content><ng-content select="md-card-footer, mat-card-footer"></ng-content>',styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-flat{box-shadow:none}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:600px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.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:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;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:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card"}}]}],Ct.ctorParameters=function(){return[]};var xt=function(){function t(){}return t}();xt.decorators=[{type:e.Component,args:[{selector:"md-card-header, mat-card-header",template:'<ng-content select="[md-card-avatar], [mat-card-avatar], [mdCardAvatar], [matCardAvatar]"></ng-content><div class="mat-card-header-text"><ng-content select="md-card-title, mat-card-title, md-card-subtitle, mat-card-subtitle, [md-card-title], [mat-card-title], [md-card-subtitle], [mat-card-subtitle]"></ng-content></div><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-header"}}]}],xt.ctorParameters=function(){return[]};var It=function(){function t(){}return t}();It.decorators=[{type:e.Component,args:[{selector:"md-card-title-group, mat-card-title-group",template:'<div><ng-content select="md-card-title, mat-card-title, md-card-subtitle, mat-card-subtitle, [md-card-title], [mat-card-title], [md-card-subtitle], [mat-card-subtitle]"></ng-content></div><ng-content select="img"></ng-content><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-title-group"}}]}],It.ctorParameters=function(){return[]};var wt=function(){function t(){}return t}();wt.decorators=[{type:e.NgModule,args:[{imports:[O],exports:[Ct,xt,It,lt,ut,mt,gt,ht,yt,bt,vt,ft,_t,Dt,O],declarations:[Ct,xt,It,lt,ut,mt,gt,ht,yt,bt,vt,ft,_t,Dt]}]}],wt.ctorParameters=function(){return[]},t.MdCardContent=lt,t.MdCardTitle=ut,t.MdCardSubtitle=mt,t.MdCardActions=gt,t.MdCardFooter=ht,t.MdCardImage=ft,t.MdCardSmImage=yt,t.MdCardMdImage=bt,t.MdCardLgImage=vt,t.MdCardXlImage=_t,t.MdCardAvatar=Dt,t.MdCard=Ct,t.MdCardHeader=xt,t.MdCardTitleGroup=It,t.MdCardModule=wt,t.MatCard=Ct,t.MatCardActions=gt,t.MatCardAvatar=Dt,t.MatCardContent=lt,t.MatCardFooter=ht,t.MatCardHeader=xt,t.MatCardImage=ft,t.MatCardLgImage=vt,t.MatCardMatImage=bt,t.MatCardModule=wt,t.MatCardSmImage=yt,t.MatCardSubtitle=mt,t.MatCardTitle=ut,t.MatCardTitleGroup=It,t.MatCardXlImage=_t,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=material-card.umd.min.js.map