UNPKG

@angular/material

Version:
11 lines (10 loc) 36.6 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(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/core"),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/cdk/a11y","@angular/cdk/bidi","@angular/core","@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"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.core=e.ng.material.core||{}),e.ng.cdk.a11y,e.ng.cdk.bidi,e.ng.core,e.ng.platformBrowser,e.ng.cdk.coercion,e.Rx,e.ng.cdk.keycodes,e.ng.common,e.ng.cdk.scrolling,e.ng.cdk.platform,e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.cdk.rxjs)}(this,function(e,t,n,r,o,i,a,s,l,c,p,u,d,m){"use strict";function h(e,t){function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e,t){return Error('The "'+e+'-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "'+t.toLowerCase()+'" element.')}function g(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disabled=!1,r}return h(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=i.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),t}(e)}function y(e,t){return function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return o.color=t,o}return h(n,e),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(e){var n=e||t;n!==this._color&&(this._color&&this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),n&&this._renderer.addClass(this._elementRef.nativeElement,"mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(e)}function b(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disableRipple=!1,r}return h(t,e),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){this._disableRipple=i.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),t}(e)}function _(e,t){return void 0===t&&(t=0),function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return o._tabIndex=t,o}return h(n,e),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?e:t},enumerable:!0,configurable:!0}),n}(e)}function v(e){return e||new V}function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=0,o=t;r<o.length;r++){var i=o[r];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}return e}function R(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t(r);return n}function O(e,t){var n=t&&t.submitted;return!(!e.invalid||!e.touched&&!n)}function C(e,t){var n=t&&t.submitted;return!(!e.invalid||!e.dirty&&!n)}function E(e){window.getComputedStyle(e).getPropertyValue("opacity")}function M(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),o=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+o*o)}function I(e,t){var n=t.trim();e.style.transform=n,e.style.webkitTransform=n}var T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},P=function(){function e(){}return e}();P.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",P.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",P.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",P.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var S=function(){function e(){}return e}();S.COMPLEX="375ms",S.ENTERING="225ms",S.EXITING="195ms";var A=new r.InjectionToken("md-compatibility-mode"),k="\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="\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",N=function(){function e(e,t){if(!e)throw f("mat",t.nativeElement.nodeName)}return e}();N.decorators=[{type:r.Directive,args:[{selector:k}]}],N.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[A]}]},{type:r.ElementRef}]};var x=function(){function e(e,t){if(e)throw f("md",t.nativeElement.nodeName)}return e}();x.decorators=[{type:r.Directive,args:[{selector:w}]}],x.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[A]}]},{type:r.ElementRef}]};var L=function(){function e(){}return e}();L.decorators=[{type:r.NgModule,args:[{declarations:[N,x],exports:[N,x]}]}],L.ctorParameters=function(){return[]};var F=function(){function e(){}return e}();F.decorators=[{type:r.NgModule,args:[{providers:[{provide:A,useValue:!0}]}]}],F.ctorParameters=function(){return[]};var B=new r.InjectionToken("md-sanity-checks"),j=function(){function e(e,t){this._document=e,this._hasDoneGlobalChecks=!1,t&&!this._hasDoneGlobalChecks&&e&&r.isDevMode()&&(this._checkDoctype(),this._checkTheme(),this._hasDoneGlobalChecks=!0)}return e.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.")},e.prototype._checkTheme=function(){if("function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e),"none"!==getComputedStyle(e).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(e)}},e}();j.decorators=[{type:r.NgModule,args:[{imports:[L,n.BidiModule],exports:[L,n.BidiModule],providers:[{provide:B,useValue:!0}]}]}],j.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[o.DOCUMENT]}]},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[B]}]}]};var V=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,r=this._listeners;n<r.length;n++){(0,r[n])(e,t)}},e.prototype.listen=function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}},e}();V.decorators=[{type:r.Injectable}],V.ctorParameters=function(){return[]};var U={provide:V,deps:[[new r.Optional,new r.SkipSelf,V]],useFactory:v},W=new r.InjectionToken("MAT_DATE_LOCALE"),H={provide:W,useExisting:r.LOCALE_ID},G=function(){function e(){this._localeChanges=new a.Subject}return Object.defineProperty(e.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),e.prototype.getYear=function(e){},e.prototype.getMonth=function(e){},e.prototype.getDate=function(e){},e.prototype.getDayOfWeek=function(e){},e.prototype.getMonthNames=function(e){},e.prototype.getDateNames=function(){},e.prototype.getDayOfWeekNames=function(e){},e.prototype.getYearName=function(e){},e.prototype.getFirstDayOfWeek=function(){},e.prototype.getNumDaysInMonth=function(e){},e.prototype.clone=function(e){},e.prototype.createDate=function(e,t,n){},e.prototype.today=function(){},e.prototype.parse=function(e,t){},e.prototype.format=function(e,t){},e.prototype.addCalendarYears=function(e,t){},e.prototype.addCalendarMonths=function(e,t){},e.prototype.addCalendarDays=function(e,t){},e.prototype.toIso8601=function(e){},e.prototype.fromIso8601=function(e){},e.prototype.isDateInstance=function(e){},e.prototype.isValid=function(e){},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next()},e.prototype.compareDate=function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)},e.prototype.sameDate=function(e,t){return e&&t?!this.compareDate(e,t):e==t},e.prototype.clampDate=function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e},e}(),Y="undefined"!=typeof Intl,q={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"]},z=R(31,function(e){return String(e+1)}),J={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Z=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,K=function(e){function t(t){var n=e.call(this)||this;return n.useUtcForDisplay=!0,e.prototype.setLocale.call(n,t),n}return h(t,e),t.prototype.getYear=function(e){return e.getFullYear()},t.prototype.getMonth=function(e){return e.getMonth()},t.prototype.getDate=function(e){return e.getDate()},t.prototype.getDayOfWeek=function(e){return e.getDay()},t.prototype.getMonthNames=function(e){var t=this;if(Y){var n=new Intl.DateTimeFormat(this.locale,{month:e});return R(12,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,e,1)))})}return q[e]},t.prototype.getDateNames=function(){var e=this;if(Y){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return R(31,function(n){return e._stripDirectionalityCharacters(t.format(new Date(2017,0,n+1)))})}return z},t.prototype.getDayOfWeekNames=function(e){var t=this;if(Y){var n=new Intl.DateTimeFormat(this.locale,{weekday:e});return R(7,function(e){return t._stripDirectionalityCharacters(n.format(new Date(2017,0,e+1)))})}return J[e]},t.prototype.getYearName=function(e){if(Y){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(t.format(e))}return String(this.getYear(e))},t.prototype.getFirstDayOfWeek=function(){return 0},t.prototype.getNumDaysInMonth=function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))},t.prototype.clone=function(e){return this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e))},t.prototype.createDate=function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var r=this._createDateWithOverflow(e,t,n);if(r.getMonth()!=t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return r},t.prototype.today=function(){return new Date},t.prototype.parse=function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null},t.prototype.format=function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Y){this.useUtcForDisplay&&(e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),t=D({},t,{timeZone:"utc"}));var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(n.format(e))}return this._stripDirectionalityCharacters(e.toDateString())},t.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},t.prototype.addCalendarMonths=function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},t.prototype.addCalendarDays=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)},t.prototype.toIso8601=function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")},t.prototype.fromIso8601=function(e){if(Z.test(e)){var t=new Date(e);if(this.isValid(t))return t}return null},t.prototype.isDateInstance=function(e){return e instanceof Date},t.prototype.isValid=function(e){return!isNaN(e.getTime())},t.prototype._createDateWithOverflow=function(e,t,n){var r=new Date(e,t,n);return e>=0&&e<100&&r.setFullYear(this.getYear(r)-1900),r},t.prototype._2digit=function(e){return("00"+e).slice(-2)},t.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},t}(G);K.decorators=[{type:r.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[W]}]}]};var X=new r.InjectionToken("md-date-formats"),Q={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"}}},$=function(){function e(){}return e}();$.decorators=[{type:r.NgModule,args:[{providers:[{provide:G,useClass:K},H]}]}],$.ctorParameters=function(){return[]};var ee=function(){function e(){}return e}();ee.decorators=[{type:r.NgModule,args:[{imports:[$],providers:[{provide:X,useValue:Q}]}]}],ee.ctorParameters=function(){return[]};var te=new r.InjectionToken("md-error-global-options"),ne=function(e){function t(){var t=e.call(this)||this;return t._hammer="undefined"!=typeof window?window.Hammer:null,t.events=t._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!t._hammer&&r.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),t}return h(t,e),t.prototype.buildHammer=function(e){var t=new this._hammer(e),n=new this._hammer.Pan,r=new this._hammer.Swipe,o=new this._hammer.Press,i=this._createRecognizer(n,{event:"slide",threshold:0},r),a=this._createRecognizer(o,{event:"longpress",time:500});return n.recognizeWith(r),t.add([r,o,n,i,a]),t},t.prototype._createRecognizer=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=new e.constructor(t);return n.push(e),n.forEach(function(e){return o.recognizeWith(e)}),o},t}(o.HammerGestureConfig);ne.decorators=[{type:r.Injectable}],ne.ctorParameters=function(){return[]};var re=function(){function e(){}return e}();re.decorators=[{type:r.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],re.ctorParameters=function(){return[]};var oe=function(){function e(e,t,n){var r=this;this._lines=e,this._renderer=t,this._element=n,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){r._setLineClass(r._lines.length)})}return e.prototype._setLineClass=function(e){this._resetClasses(),2===e||3===e?this._setClass("mat-"+e+"-line",!0):e>3&&this._setClass("mat-multi-line",!0)},e.prototype._resetClasses=function(){this._setClass("mat-2-line",!1),this._setClass("mat-3-line",!1),this._setClass("mat-multi-line",!1)},e.prototype._setClass=function(e,t){t?this._renderer.addClass(this._element.nativeElement,e):this._renderer.removeClass(this._element.nativeElement,e)},e}(),ie=function(){function e(){}return e}();ie.decorators=[{type:r.NgModule,args:[{imports:[j],exports:[re,j],declarations:[re]}]}],ie.ctorParameters=function(){return[]};var ae={};ae.FADING_IN=0,ae.VISIBLE=1,ae.FADING_OUT=2,ae.HIDDEN=3,ae[ae.FADING_IN]="FADING_IN",ae[ae.VISIBLE]="VISIBLE",ae[ae.FADING_OUT]="FADING_OUT",ae[ae.HIDDEN]="HIDDEN";var se=function(){function e(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=ae.HIDDEN}return e.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},e}(),le=function(){function e(e,t,n,r){this._ngZone=t,this._ruler=n,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,r.isBrowser&&(this._containerElement=e.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 e.prototype.fadeInRipple=function(e,t,n){var r=this;void 0===n&&(n={});var o=this._containerElement.getBoundingClientRect();if(n.centered)e=o.left+o.width/2,t=o.top+o.height/2;else{var i=this._ruler.getViewportScrollPosition();e-=i.left,t-=i.top}var a=n.radius||M(e,t,o),s=1/(n.speedFactor||1)*450,l=e-o.left,c=t-o.top,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=l-a+"px",p.style.top=c-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",p.style.backgroundColor=n.color||null,p.style.transitionDuration=s+"ms",this._containerElement.appendChild(p),E(p),p.style.transform="scale(1)";var u=new se(this,p,n);return u.state=ae.FADING_IN,this._activeRipples.add(u),this.runTimeoutOutsideZone(function(){u.state=ae.VISIBLE,n.persistent||r._isMousedown||u.fadeOut()},s),u},e.prototype.fadeOutRipple=function(e){if(this._activeRipples.delete(e)){var t=e.element;t.style.transitionDuration="400ms",t.style.opacity="0",e.state=ae.FADING_OUT,this.runTimeoutOutsideZone(function(){e.state=ae.HIDDEN,t.parentNode.removeChild(t)},400)}},e.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(e){return e.fadeOut()})},e.prototype.setTriggerElement=function(e){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e)}),e&&this._ngZone.runOutsideAngular(function(){t._triggerEvents.forEach(function(t,n){return e.addEventListener(n,t)})}),this._triggerElement=e},e.prototype.onMousedown=function(e){this.rippleDisabled||(this._isMousedown=!0,this.fadeInRipple(e.pageX,e.pageY,this.rippleConfig))},e.prototype.onMouseup=function(){this._isMousedown=!1,this._activeRipples.forEach(function(e){e.config.persistent||e.state!==ae.VISIBLE||e.fadeOut()})},e.prototype.onMouseLeave=function(){this._isMousedown&&this.onMouseup()},e.prototype.runTimeoutOutsideZone=function(e,t){void 0===t&&(t=0),this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},e}(),ce=new r.InjectionToken("md-ripple-global-options"),pe=function(){function e(e,t,n,r,o){this.radius=0,this.speedFactor=1,this._rippleRenderer=new le(e,t,n,r),this._globalOptions=o||{},this._updateRippleRenderer()}return Object.defineProperty(e.prototype,"_matRippleTrigger",{get:function(){return this.trigger},set:function(e){this.trigger=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleCentered",{get:function(){return this.centered},set:function(e){this.centered=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleDisabled",{get:function(){return this.disabled},set:function(e){this.disabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleRadius",{get:function(){return this.radius},set:function(e){this.radius=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleSpeedFactor",{get:function(){return this.speedFactor},set:function(e){this.speedFactor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleColor",{get:function(){return this.color},set:function(e){this.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_matRippleUnbounded",{get:function(){return this.unbounded},set:function(e){this.unbounded=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.trigger||e._matRippleTrigger)&&this.trigger&&this._rippleRenderer.setTriggerElement(this.trigger),this._updateRippleRenderer()},e.prototype.ngOnDestroy=function(){this._rippleRenderer.setTriggerElement(null)},e.prototype.launch=function(e,t,n){return void 0===n&&(n=this.rippleConfig),this._rippleRenderer.fadeInRipple(e,t,n)},e.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(e.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}),e.prototype._updateRippleRenderer=function(){this._rippleRenderer.rippleDisabled=this._globalOptions.disabled||this.disabled,this._rippleRenderer.rippleConfig=this.rippleConfig},e}();pe.decorators=[{type:r.Directive,args:[{selector:"[md-ripple], [mat-ripple], [mdRipple], [matRipple]",exportAs:"mdRipple, matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],pe.ctorParameters=function(){return[{type:r.ElementRef},{type:r.NgZone},{type:c.ViewportRuler},{type:p.Platform},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[ce]}]}]},pe.propDecorators={trigger:[{type:r.Input,args:["mdRippleTrigger"]}],centered:[{type:r.Input,args:["mdRippleCentered"]}],disabled:[{type:r.Input,args:["mdRippleDisabled"]}],radius:[{type:r.Input,args:["mdRippleRadius"]}],speedFactor:[{type:r.Input,args:["mdRippleSpeedFactor"]}],color:[{type:r.Input,args:["mdRippleColor"]}],unbounded:[{type:r.Input,args:["mdRippleUnbounded"]}],_matRippleTrigger:[{type:r.Input,args:["matRippleTrigger"]}],_matRippleCentered:[{type:r.Input,args:["matRippleCentered"]}],_matRippleDisabled:[{type:r.Input,args:["matRippleDisabled"]}],_matRippleRadius:[{type:r.Input,args:["matRippleRadius"]}],_matRippleSpeedFactor:[{type:r.Input,args:["matRippleSpeedFactor"]}],_matRippleColor:[{type:r.Input,args:["matRippleColor"]}],_matRippleUnbounded:[{type:r.Input,args:["matRippleUnbounded"]}]};var ue=function(){function e(){}return e}();ue.decorators=[{type:r.NgModule,args:[{imports:[j,p.PlatformModule,c.ScrollDispatchModule],exports:[pe,j],declarations:[pe],providers:[c.VIEWPORT_RULER_PROVIDER]}]}],ue.ctorParameters=function(){return[]};var de=function(){function e(){this.state="unchecked",this.disabled=!1}return e}();de.decorators=[{type:r.Component,args:[{encapsulation:r.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:r.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"}}]}],de.ctorParameters=function(){return[]},de.propDecorators={state:[{type:r.Input}],disabled:[{type:r.Input}]};var me=function(){function e(){}return e}();me.decorators=[{type:r.NgModule,args:[{exports:[de],declarations:[de]}]}],me.ctorParameters=function(){return[]};var he=function(){function e(){}return e}(),fe=g(he),ge=0,ye=function(e){function t(){var t=e.apply(this,arguments)||this;return t._labelId="mat-optgroup-label-"+ge++,t}return h(t,e),t}(fe);ye.decorators=[{type:r.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:r.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:r.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],ye.ctorParameters=function(){return[]},ye.propDecorators={label:[{type:r.Input}]};var be=0,_e=function(){function e(e,t){void 0===t&&(t=!1),this.source=e,this.isUserInput=t}return e}(),ve=function(){function e(e,t,n){this._element=e,this._changeDetectorRef=t,this.group=n,this._selected=!1,this._active=!1,this._multiple=!1,this._disableRipple=!1,this._disabled=!1,this._id="md-option-"+be++,this.onSelectionChange=new r.EventEmitter}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){e!==this._multiple&&(this._multiple=e,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=i.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){this._disableRipple=e,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),e.prototype.select=function(){this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},e.prototype.deselect=function(){this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent()},e.prototype.focus=function(){var e=this._getHostElement();"function"==typeof e.focus&&e.focus()},e.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},e.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},e.prototype.getLabel=function(){return this.viewValue},e.prototype._handleKeydown=function(e){e.keyCode!==s.ENTER&&e.keyCode!==s.SPACE||(this._selectViaInteraction(),e.preventDefault())},e.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._element.nativeElement},e.prototype._emitSelectionChangeEvent=function(e){void 0===e&&(e=!1),this.onSelectionChange.emit(new _e(this,e))},e.countGroupLabelsBeforeOption=function(e,t,n){if(n.length){for(var r=t.toArray(),o=n.toArray(),i=0,a=0;a<e+1;a++)r[a].group&&r[a].group===o[i]&&i++;return i}return 0},e}();ve.decorators=[{type:r.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:r.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:r.ChangeDetectionStrategy.OnPush,viewProviders:[{provide:A,useValue:!0}]}]}],ve.ctorParameters=function(){return[{type:r.ElementRef},{type:r.ChangeDetectorRef},{type:ye,decorators:[{type:r.Optional}]}]},ve.propDecorators={value:[{type:r.Input}],disabled:[{type:r.Input}],onSelectionChange:[{type:r.Output}]};var De=function(){function e(){}return e}();De.decorators=[{type:r.NgModule,args:[{imports:[ue,l.CommonModule,me],exports:[ve,ye],declarations:[ve,ye]}]}],De.ctorParameters=function(){return[]};var Re=new r.InjectionToken("md-placeholder-global-options"),Oe=function(){function e(e,t){this._parentInjector=e,this._customTokens=t}return e.prototype.get=function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)},e}(),Ce=function(){function e(){}return e}();Ce.decorators=[{type:r.NgModule,args:[{imports:[t.A11yModule],exports:[t.A11yModule]}]}],Ce.ctorParameters=function(){return[]};e.A11yModule=t.A11yModule,e.AnimationCurves=P,e.AnimationDurations=S,e.Directionality=n.Directionality,e.DIRECTIONALITY_PROVIDER=n.DIRECTIONALITY_PROVIDER, e.DIR_DOCUMENT=n.DIR_DOCUMENT,e.Dir=n.Dir,e.BidiModule=n.BidiModule,e.MdCommonModule=j,e.MATERIAL_SANITY_CHECKS=B,e.mixinDisabled=g,e.mixinColor=y,e.mixinDisableRipple=b,e.mixinTabIndex=_,e.MATERIAL_COMPATIBILITY_MODE=A,e.getMdCompatibilityInvalidPrefixError=f,e.MAT_ELEMENTS_SELECTOR=k,e.MD_ELEMENTS_SELECTOR=w,e.MatPrefixRejector=N,e.MdPrefixRejector=x,e.CompatibilityModule=L,e.NoConflictStyleCompatibilityMode=F,e.UniqueSelectionDispatcher=V,e.UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY=v,e.UNIQUE_SELECTION_DISPATCHER_PROVIDER=U,e.NativeDateModule=$,e.MdNativeDateModule=ee,e.MAT_DATE_LOCALE=W,e.MAT_DATE_LOCALE_PROVIDER=H,e.DateAdapter=G,e.MD_DATE_FORMATS=X,e.NativeDateAdapter=K,e.MD_NATIVE_DATE_FORMATS=Q,e.MD_ERROR_GLOBAL_OPTIONS=te,e.defaultErrorStateMatcher=O,e.showOnDirtyErrorStateMatcher=C,e.GestureConfig=ne,e.UP_ARROW=s.UP_ARROW,e.DOWN_ARROW=s.DOWN_ARROW,e.RIGHT_ARROW=s.RIGHT_ARROW,e.LEFT_ARROW=s.LEFT_ARROW,e.PAGE_UP=s.PAGE_UP,e.PAGE_DOWN=s.PAGE_DOWN,e.HOME=s.HOME,e.END=s.END,e.ENTER=s.ENTER,e.SPACE=s.SPACE,e.TAB=s.TAB,e.ESCAPE=s.ESCAPE,e.BACKSPACE=s.BACKSPACE,e.DELETE=s.DELETE,e.A=s.A,e.Z=s.Z,e.MdLine=re,e.MdLineSetter=oe,e.MdLineModule=ie,e.MdOptionModule=De,e.MdOptionSelectionChange=_e,e.MdOption=ve,e.MdOptgroupBase=he,e._MdOptgroupMixinBase=fe,e.MdOptgroup=ye,e.OVERLAY_PROVIDERS=u.OVERLAY_PROVIDERS,e.OverlayModule=u.OverlayModule,e.Overlay=u.Overlay,e.OverlayContainer=u.OverlayContainer,e.FullscreenOverlayContainer=u.FullscreenOverlayContainer,e.OverlayRef=u.OverlayRef,e.ConnectedOverlayDirective=u.ConnectedOverlayDirective,e.OverlayOrigin=u.OverlayOrigin,e.ViewportRuler=u.ViewportRuler,e.GlobalPositionStrategy=u.GlobalPositionStrategy,e.ConnectedPositionStrategy=u.ConnectedPositionStrategy,e.VIEWPORT_RULER_PROVIDER=u.VIEWPORT_RULER_PROVIDER,e.OverlayConfig=u.OverlayConfig,e.ConnectionPositionPair=u.ConnectionPositionPair,e.ScrollingVisibility=u.ScrollingVisibility,e.ConnectedOverlayPositionChange=u.ConnectedOverlayPositionChange,e.Scrollable=u.Scrollable,e.ScrollDispatcher=u.ScrollDispatcher,e.ScrollStrategyOptions=u.ScrollStrategyOptions,e.RepositionScrollStrategy=u.RepositionScrollStrategy,e.CloseScrollStrategy=u.CloseScrollStrategy,e.NoopScrollStrategy=u.NoopScrollStrategy,e.BlockScrollStrategy=u.BlockScrollStrategy,e.MD_PLACEHOLDER_GLOBAL_OPTIONS=Re,e.PlatformModule=p.PlatformModule,e.Platform=p.Platform,e.getSupportedInputTypes=p.getSupportedInputTypes,e.Portal=d.Portal,e.BasePortalHost=d.BasePortalHost,e.ComponentPortal=d.ComponentPortal,e.TemplatePortal=d.TemplatePortal,e.DomPortalHost=d.DomPortalHost,e.TemplatePortalDirective=d.TemplatePortalDirective,e.PortalHostDirective=d.PortalHostDirective,e.PortalModule=d.PortalModule,e.PortalInjector=Oe,e.MdRipple=pe,e.MD_RIPPLE_GLOBAL_OPTIONS=ce,e.RippleRef=se,e.RippleState=ae,e.RIPPLE_FADE_IN_DURATION=450,e.RIPPLE_FADE_OUT_DURATION=400,e.MdRippleModule=ue,e.RxChain=m.RxChain,e.FinallyBrand=m.FinallyBrand,e.CatchBrand=m.CatchBrand,e.DoBrand=m.DoBrand,e.MapBrand=m.MapBrand,e.FilterBrand=m.FilterBrand,e.ShareBrand=m.ShareBrand,e.FirstBrand=m.FirstBrand,e.SwitchMapBrand=m.SwitchMapBrand,e.StartWithBrand=m.StartWithBrand,e.DebounceTimeBrand=m.DebounceTimeBrand,e.AuditTimeBrand=m.AuditTimeBrand,e.TakeUntilBrand=m.TakeUntilBrand,e.finallyOperator=m.finallyOperator,e.catchOperator=m.catchOperator,e.doOperator=m.doOperator,e.map=m.map,e.filter=m.filter,e.share=m.share,e.first=m.first,e.switchMap=m.switchMap,e.startWith=m.startWith,e.debounceTime=m.debounceTime,e.auditTime=m.auditTime,e.takeUntil=m.takeUntil,e.MdPseudoCheckboxModule=me,e.MdPseudoCheckbox=de,e.StyleModule=Ce,e.CdkMonitorFocus=t.CdkMonitorFocus,e.FocusMonitor=t.FocusMonitor,e.FOCUS_MONITOR_PROVIDER=t.FOCUS_MONITOR_PROVIDER,e.applyCssTransform=I,e.extendObject=D,e.MAT_DATE_FORMATS=X,e.MAT_RIPPLE_GLOBAL_OPTIONS=ce,e.MAT_NATIVE_DATE_FORMATS=Q,e.MAT_PLACEHOLDER_GLOBAL_OPTIONS=Re,e.MAT_ERROR_GLOBAL_OPTIONS=te,e.MatCommonModule=j,e.MatLine=re,e.MatLineModule=ie,e.MatLineSetter=oe,e.MatOptgroup=ye,e.MatOptgroupBase=he,e.MatOption=ve,e.MatOptionModule=De,e.MatOptionSelectionChange=_e,e.MatNativeDateModule=ee,e.MatPseudoCheckbox=de,e.MatPseudoCheckboxModule=me,e.MatRipple=pe,e.MatRippleModule=ue,e.JAN=0,e.FEB=1,e.MAR=2,e.APR=3,e.MAY=4,e.JUN=5,e.JUL=6,e.AUG=7,e.SEP=8,e.OCT=9,e.NOV=10,e.DEC=11,e.ɵa0=le,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=material-core.umd.min.js.map