@angular/material
Version:
Angular Material
10 lines (9 loc) • 24.7 kB
JavaScript
/**
* @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(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/collections"),require("@angular/cdk/keycodes"),require("@angular/cdk/overlay"),require("rxjs/operators/filter"),require("rxjs/operators/take"),require("rxjs/operators/map"),require("rxjs/operators/switchMap"),require("rxjs/operators/startWith"),require("rxjs/operators/takeUntil"),require("@angular/forms"),require("@angular/material/core"),require("@angular/material/form-field"),require("rxjs/Observable"),require("rxjs/observable/merge"),require("rxjs/Subject"),require("rxjs/observable/defer"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/collections","@angular/cdk/keycodes","@angular/cdk/overlay","rxjs/operators/filter","rxjs/operators/take","rxjs/operators/map","rxjs/operators/switchMap","rxjs/operators/startWith","rxjs/operators/takeUntil","@angular/forms","@angular/material/core","@angular/material/form-field","rxjs/Observable","rxjs/observable/merge","rxjs/Subject","rxjs/observable/defer","@angular/animations"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.select=e.ng.material.select||{}),e.ng.core,e.ng.common,e.ng.cdk.a11y,e.ng.cdk.bidi,e.ng.cdk.coercion,e.ng.cdk.collections,e.ng.cdk.keycodes,e.ng.cdk.overlay,e.Rx.operators,e.Rx.operators,e.Rx.operators,e.Rx.operators,e.Rx.operators,e.Rx.operators,e.ng.forms,e.ng.material.core,e.ng.material.formField,e.Rx,e.Rx.Observable,e.Rx,e.Rx.Observable,e.ng.animations)}(this,function(e,t,i,n,o,r,a,s,l,c,p,h,u,d,g,_,f,m,y,v,b,O,C){"use strict";function x(e,t){function i(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function k(){return Error("Cannot change `multiple` mode of select after initialization.")}function w(){return Error("Value must be an array in multiple-selection mode.")}function M(){return Error("`compareWith` must be a function.")}function S(e){return function(){return e.scrollStrategies.reposition()}}var I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},E={transformPanel:C.trigger("transformPanel",[C.state("showing",C.style({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),C.state("showing-multiple",C.style({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),C.transition("void => *",[C.style({opacity:0,minWidth:"100%",transform:"scaleY(0)"}),C.animate("150ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),C.transition("* => void",[C.animate("250ms 100ms linear",C.style({opacity:0}))])]),fadeInContent:C.trigger("fadeInContent",[C.state("showing",C.style({opacity:1})),C.transition("void => showing",[C.style({opacity:0}),C.animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},R=E.transformPanel,D=E.fadeInContent,P=0,T=new t.InjectionToken("mat-select-scroll-strategy"),A={provide:T,deps:[l.Overlay],useFactory:S},j=function(){function e(e,t){this.source=e,this.value=t}return e}(),F=function(){function e(e,t,i,n,o){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=o}return e}(),L=f.mixinDisableRipple(f.mixinTabIndex(f.mixinDisabled(f.mixinErrorState(F)))),V=function(){function e(){}return e.decorators=[{type:t.Directive,args:[{selector:"mat-select-trigger"}]}],e.ctorParameters=function(){return[]},e}(),q=function(e){function i(i,n,o,r,a,s,l,c,h,d,g,_){var f=e.call(this,a,r,l,c,d)||this;return f._viewportRuler=i,f._changeDetectorRef=n,f._ngZone=o,f._dir=s,f._parentFormField=h,f.ngControl=d,f._scrollStrategyFactory=_,f._panelOpen=!1,f._required=!1,f._scrollTop=0,f._multiple=!1,f._compareWith=function(e,t){return e===t},f._uid="mat-select-"+P++,f._destroy=new b.Subject,f._triggerFontSize=0,f._onChange=function(){},f._onTouched=function(){},f._optionIds="",f._transformOrigin="top",f._panelDoneAnimating=!1,f._scrollStrategy=f._scrollStrategyFactory(),f._offsetY=0,f._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],f.focused=!1,f.controlType="mat-select",f.ariaLabel="",f.optionSelectionChanges=O.defer(function(){return f.options?v.merge.apply(void 0,f.options.map(function(e){return e.onSelectionChange})):f._ngZone.onStable.asObservable().pipe(p.take(1),u.switchMap(function(){return f.optionSelectionChanges}))}),f.openedChange=new t.EventEmitter,f.onOpen=f._openedStream,f.onClose=f._closedStream,f.selectionChange=new t.EventEmitter,f.change=f.selectionChange,f.valueChange=new t.EventEmitter,f.ngControl&&(f.ngControl.valueAccessor=f),f.tabIndex=parseInt(g)||0,f.id=f.id,f}return x(i,e),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"required",{get:function(){return this._required},set:function(e){this._required=r.coerceBooleanProperty(e),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"multiple",{get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw k();this._multiple=r.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw M();this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(c.filter(function(e){return e}),h.map(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(c.filter(function(e){return!e}),h.map(function(){}))},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this._selectionModel=new a.SelectionModel(this.multiple,void 0,!1),this.stateChanges.next()},i.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this.options.changes.pipe(d.startWith(null),g.takeUntil(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})},i.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},i.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next()},i.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},i.prototype.toggle=function(){this.panelOpen?this.close():this.open()},i.prototype.open=function(){var e=this;!this.disabled&&this.options&&this.options.length&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(p.take(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))},i.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},i.prototype.writeValue=function(e){this.options&&this._setSelectionByValue(e)},i.prototype.registerOnChange=function(e){this._onChange=e},i.prototype.registerOnTouched=function(e){this._onTouched=e},i.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(i.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),i.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},i.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},i.prototype._handleClosedKeydown=function(e){var t=e.keyCode,i=t===s.DOWN_ARROW||t===s.UP_ARROW||t===s.LEFT_ARROW||t===s.RIGHT_ARROW;t===s.ENTER||t===s.SPACE||(this.multiple||e.altKey)&&i?(e.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(e)},i.prototype._handleOpenKeydown=function(e){var t=e.keyCode,i=t===s.DOWN_ARROW||t===s.UP_ARROW,n=this._keyManager;if(t===s.HOME||t===s.END)e.preventDefault(),t===s.HOME?n.setFirstItemActive():n.setLastItemActive();else if(i&&e.altKey)e.preventDefault(),this.close();else if(t!==s.ENTER&&t!==s.SPACE||!n.activeItem){var o=n.activeItemIndex;n.onKeydown(e),this._multiple&&i&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==o&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()},i.prototype._onPanelDone=function(){this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this._panelDoneAnimating=!1,this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())},i.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},i.prototype._onFocus=function(){this.disabled||(this.focused=!0,this.stateChanges.next())},i.prototype._onBlur=function(){this.focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},i.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(p.take(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop})},i.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(i.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),i.prototype._initializeSelection=function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value)})},i.prototype._setSelectionByValue=function(e,t){var i=this;if(void 0===t&&(t=!1),this.multiple&&e){if(!Array.isArray(e))throw w();this._clearSelection(),e.forEach(function(e){return i._selectValue(e,t)}),this._sortValues()}else{this._clearSelection();var n=this._selectValue(e,t);n&&this._keyManager.setActiveItem(this.options.toArray().indexOf(n))}this._changeDetectorRef.markForCheck()},i.prototype._selectValue=function(e,i){var n=this;void 0===i&&(i=!1);var o=this.options.find(function(i){try{return null!=i.value&&n._compareWith(i.value,e)}catch(e){return t.isDevMode()&&console.warn(e),!1}});return o&&(i?o._selectViaInteraction():o.select(),this._selectionModel.select(o),this.stateChanges.next()),o},i.prototype._clearSelection=function(e){this._selectionModel.clear(),this.options.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()},i.prototype._initKeyManager=function(){var e=this;this._keyManager=new n.ActiveDescendantKeyManager(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._keyManager.tabOut.pipe(g.takeUntil(this._destroy)).subscribe(function(){return e.close()}),this._keyManager.change.pipe(g.takeUntil(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})},i.prototype._resetOptions=function(){var e=this,t=v.merge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g.takeUntil(t),c.filter(function(e){return e.isUserInput})).subscribe(function(t){e._onSelect(t.source),!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.merge.apply(void 0,this.options.map(function(e){return e._stateChanges})).pipe(g.takeUntil(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}),this._setOptionIds()},i.prototype._onSelect=function(e){var t=this._selectionModel.isSelected(e);this.multiple?(this._selectionModel.toggle(e),this.stateChanges.next(),t?e.deselect():e.select(),this._keyManager.setActiveItem(this._getOptionIndex(e)),this._sortValues()):(this._clearSelection(null==e.value?void 0:e),null==e.value?this._propagateChanges(e.value):(this._selectionModel.select(e),this.stateChanges.next())),t!==this._selectionModel.isSelected(e)&&this._propagateChanges()},i.prototype._sortValues=function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.options.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())},i.prototype._propagateChanges=function(e){var t=null;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new j(this,t)),this._changeDetectorRef.markForCheck()},i.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(e){return e.id}).join(" ")},i.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._getOptionIndex(this._selectionModel.selected[0])))},i.prototype._scrollActiveOptionIntoView=function(){var e=this._keyManager.activeItemIndex||0,t=f._countGroupLabelsBeforeOption(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=f._getOptionScrollPosition(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},i.prototype.focus=function(){this._elementRef.nativeElement.focus()},i.prototype._getOptionIndex=function(e){return this.options.reduce(function(t,i,n){return void 0===t?e===i?n:void 0:t},void 0)},i.prototype._calculateOverlayPosition=function(){var e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e,o=n-i,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=f._countGroupLabelsBeforeOption(r,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(r,a,o),this._offsetY=this._calculateOverlayOffsetY(r,a,o),this._checkOverlayWithinViewport(o)},i.prototype._calculateOverlayScroll=function(e,t,i){var n=this._getItemHeight(),o=n*e,r=n/2,a=o-t+r;return Math.min(Math.max(0,a),i)},Object.defineProperty(i.prototype,"_ariaLabel",{get:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},enumerable:!0,configurable:!0}),i.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},i.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),o=this.multiple?60:32;if(this.multiple)e=44;else{var r=this._selectionModel.selected[0]||this.options.first;e=r&&r.group?32:16}n||(e*=-1);var a=0-(t.left+e-(n?o:0)),s=t.right+e-i.width+(n?0:o);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=e,this.overlayDir.overlayRef.updatePosition()},i.prototype._calculateOverlayOffsetY=function(e,t,i){var n,o=this._getItemHeight(),r=(o-this._triggerRect.height)/2,a=Math.floor(256/o);if(0===this._scrollTop)n=e*o;else if(this._scrollTop===i){var s=this._getItemCount()-a,l=e-s,c=o-(this._getItemCount()*o-256)%o;n=l*o+c}else n=t-o/2;return-1*n-r},i.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,o=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256),s=a-r-this._triggerRect.height;s>o?this._adjustPanelUp(s,o):r>n?this._adjustPanelDown(r,n,e):this._transformOrigin=this._getOriginBasedOnOption()},i.prototype._adjustPanelUp=function(e,t){var i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},i.prototype._adjustPanelDown=function(e,t,i){var n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")},i.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},i.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},i.prototype._getItemHeight=function(){return 3*this._triggerFontSize},i.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},i.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(i.prototype,"shouldPlaceholderFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),i.decorators=[{type:t.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'<div cdk-overlay-origin class="mat-select-trigger" aria-hidden="true" (click)="toggle()" #origin="cdkOverlayOrigin" #trigger><div class="mat-select-value" [ngSwitch]="empty"><span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \' \'}}</span> <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger"><span *ngSwitchDefault>{{triggerValue}}</span><ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content></span></div><div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div></div><ng-template cdk-connected-overlay hasBackdrop cdkConnectedOverlayLockPosition backdropClass="cdk-overlay-transparent-backdrop" [scrollStrategy]="_scrollStrategy" [origin]="origin" [open]="panelOpen" [positions]="_positions" [minWidth]="_triggerRect?.width" [offsetY]="_offsetY" (backdropClick)="close()" (attach)="_onAttached()" (detach)="close()"><div #panel class="mat-select-panel {{ _getPanelTheme() }}" [ngClass]="panelClass" [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'" (@transformPanel.done)="_onPanelDone()" [style.transformOrigin]="_transformOrigin" [class.mat-select-panel-done-animating]="_panelDoneAnimating" [style.font-size.px]="_triggerFontSize" (keydown)="_handleKeydown($event)"><div class="mat-select-content" [@fadeInContent]="\'showing\'" (@fadeInContent.done)="_onFadeInDone()"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{-webkit-backface-visibility:hidden;backface-visibility:hidden;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;transition:none}"],inputs:["disabled","disableRipple","tabIndex"],encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{role:"listbox","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-label]":"_ariaLabel","[attr.aria-labelledby]":"ariaLabelledby","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-owns]":"panelOpen ? _optionIds : null","[attr.aria-multiselectable]":"multiple","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required",class:"mat-select","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[E.transformPanel,E.fadeInContent],providers:[{provide:m.MatFormFieldControl,useExisting:i},{provide:f.MAT_OPTION_PARENT_COMPONENT,useExisting:i}]}]}],i.ctorParameters=function(){return[{type:l.ViewportRuler},{type:t.ChangeDetectorRef},{type:t.NgZone},{type:f.ErrorStateMatcher},{type:t.ElementRef},{type:o.Directionality,decorators:[{type:t.Optional}]},{type:_.NgForm,decorators:[{type:t.Optional}]},{type:_.FormGroupDirective,decorators:[{type:t.Optional}]},{type:m.MatFormField,decorators:[{type:t.Optional}]},{type:_.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:void 0,decorators:[{type:t.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:t.Inject,args:[T]}]}]},i.propDecorators={trigger:[{type:t.ViewChild,args:["trigger"]}],panel:[{type:t.ViewChild,args:["panel"]}],overlayDir:[{type:t.ViewChild,args:[l.CdkConnectedOverlay]}],options:[{type:t.ContentChildren,args:[f.MatOption,{descendants:!0}]}],optionGroups:[{type:t.ContentChildren,args:[f.MatOptgroup]}],panelClass:[{type:t.Input}],customTrigger:[{type:t.ContentChild,args:[V]}],placeholder:[{type:t.Input}],required:[{type:t.Input}],multiple:[{type:t.Input}],compareWith:[{type:t.Input}],value:[{type:t.Input}],ariaLabel:[{type:t.Input,args:["aria-label"]}],ariaLabelledby:[{type:t.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:t.Input}],id:[{type:t.Input}],openedChange:[{type:t.Output}],_openedStream:[{type:t.Output,args:["opened"]}],_closedStream:[{type:t.Output,args:["closed"]}],onOpen:[{type:t.Output}],onClose:[{type:t.Output}],selectionChange:[{type:t.Output}],change:[{type:t.Output}],valueChange:[{type:t.Output}]},i}(L),W=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule,l.OverlayModule,f.MatOptionModule,f.MatCommonModule],exports:[m.MatFormFieldModule,q,V,f.MatOptionModule,f.MatCommonModule],declarations:[q,V],providers:[A,f.ErrorStateMatcher]}]}],e.ctorParameters=function(){return[]},e}();e.MatSelectModule=W,e.SELECT_PANEL_MAX_HEIGHT=256,e.SELECT_PANEL_PADDING_X=16,e.SELECT_PANEL_INDENT_PADDING_X=32,e.SELECT_ITEM_HEIGHT_EM=3,e.SELECT_MULTIPLE_PANEL_PADDING_X=44,e.SELECT_PANEL_VIEWPORT_PADDING=8,e.MAT_SELECT_SCROLL_STRATEGY=T,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY=S,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER=A,e.MatSelectChange=j,e.MatSelectBase=F,e._MatSelectMixinBase=L,e.MatSelectTrigger=V,e.MatSelect=q,e.matSelectAnimations=E,e.transformPanel=R,e.fadeInContent=D,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=material-select.umd.min.js.map