UNPKG

@angular/material

Version:
10 lines (9 loc) 24.3 kB
/** * @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/animations"),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("@angular/core"),require("@angular/forms"),require("@angular/material/core"),require("@angular/material/form-field"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/material/select",["exports","@angular/animations","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/collections","@angular/cdk/keycodes","@angular/cdk/overlay","@angular/core","@angular/forms","@angular/material/core","@angular/material/form-field","rxjs","rxjs/operators","@angular/common"],t):t((e.ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.select={}),e.ng.animations,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.ng.core,e.ng.forms,e.ng.material.core,e.ng.material.formField,e.Rx,e.Rx.operators,e.ng.common)}(this,function(e,t,n,i,o,r,a,s,l,c,p,h,u,d,g){"use strict";function _(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(){return Error("Cannot change `multiple` mode of select after initialization.")}function m(){return Error("Value must be an array in multiple-selection mode.")}function y(){return Error("`compareWith` must be a function.")}function v(e){return function(){return e.scrollStrategies.reposition()}}var b=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])},O={transformPanel:t.trigger("transformPanel",[t.state("void",t.style({transform:"scaleY(0)",minWidth:"100%",opacity:0})),t.state("showing",t.style({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),t.state("showing-multiple",t.style({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),t.transition("void => *",t.group([t.query("@fadeInContent",t.animateChild()),t.animate("150ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),t.transition("* => void",[t.animate("250ms 100ms linear",t.style({opacity:0}))])]),fadeInContent:t.trigger("fadeInContent",[t.state("showing",t.style({opacity:1})),t.transition("void => showing",[t.style({opacity:0}),t.animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},C=O.transformPanel,w=O.fadeInContent,k=0,M=new l.InjectionToken("mat-select-scroll-strategy"),I={provide:M,deps:[s.Overlay],useFactory:v},S=function(){function e(e,t){this.source=e,this.value=t}return e}(),x=function(){function e(e,t,n,i,o){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=o}return e}(),E=p.mixinDisableRipple(p.mixinTabIndex(p.mixinDisabled(p.mixinErrorState(x)))),R=function(){function e(){}return e.decorators=[{type:l.Directive,args:[{selector:"mat-select-trigger"}]}],e}(),D=function(e){function t(t,n,i,o,r,a,s,c,p,h,g,_){var f=e.call(this,r,o,s,c,h)||this;return f._viewportRuler=t,f._changeDetectorRef=n,f._ngZone=i,f._dir=a,f._parentFormField=p,f.ngControl=h,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-"+k++,f._destroy=new u.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._disableOptionCentering=!1,f.focused=!1,f.controlType="mat-select",f.ariaLabel="",f.optionSelectionChanges=u.defer(function(){return f.options?u.merge.apply(void 0,f.options.map(function(e){return e.onSelectionChange})):f._ngZone.onStable.asObservable().pipe(d.take(1),d.switchMap(function(){return f.optionSelectionChanges}))}),f.openedChange=new l.EventEmitter,f._openedStream=f.openedChange.pipe(d.filter(function(e){return e}),d.map(function(){})),f._closedStream=f.openedChange.pipe(d.filter(function(e){return!e}),d.map(function(){})),f.selectionChange=new l.EventEmitter,f.valueChange=new l.EventEmitter,f.ngControl&&(f.ngControl.valueAccessor=f),f.tabIndex=parseInt(g)||0,f.id=f.id,f}return _(t,e),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=o.coerceBooleanProperty(e),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw f();this._multiple=o.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=o.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw y();this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.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(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._selectionModel=new r.SelectionModel(this.multiple,void 0,!1),this.stateChanges.next()},t.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this.options.changes.pipe(d.startWith(null),d.takeUntil(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},t.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},t.prototype.toggle=function(){this.panelOpen?this.close():this.open()},t.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(d.take(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))},t.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},t.prototype.writeValue=function(e){this.options&&this._setSelectionByValue(e)},t.prototype.registerOnChange=function(e){this._onChange=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.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}),t.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},t.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},t.prototype._handleClosedKeydown=function(e){var t=e.keyCode,n=t===a.DOWN_ARROW||t===a.UP_ARROW||t===a.LEFT_ARROW||t===a.RIGHT_ARROW;t===a.ENTER||t===a.SPACE||(this.multiple||e.altKey)&&n?(e.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(e)},t.prototype._handleOpenKeydown=function(e){var t=e.keyCode,n=t===a.DOWN_ARROW||t===a.UP_ARROW,i=this._keyManager;if(t===a.HOME||t===a.END)e.preventDefault(),t===a.HOME?i.setFirstItemActive():i.setLastItemActive();else if(n&&e.altKey)e.preventDefault(),this.close();else if(t!==a.ENTER&&t!==a.SPACE||!i.activeItem){var o=i.activeItemIndex;i.onKeydown(e),this._multiple&&n&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==o&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()},t.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())},t.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},t.prototype._onFocus=function(){this.disabled||(this.focused=!0,this.stateChanges.next())},t.prototype._onBlur=function(){this.focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},t.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(d.take(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop})},t.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(t.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),t.prototype._initializeSelection=function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value)})},t.prototype._setSelectionByValue=function(e,t){var n=this;if(void 0===t&&(t=!1),this.multiple&&e){if(!Array.isArray(e))throw m();this._clearSelection(),e.forEach(function(e){return n._selectValue(e,t)}),this._sortValues()}else{this._clearSelection();var i=this._selectValue(e,t);i&&this._keyManager.setActiveItem(i)}this._changeDetectorRef.markForCheck()},t.prototype._selectValue=function(e,t){var n=this;void 0===t&&(t=!1);var i=this.options.find(function(t){try{return null!=t.value&&n._compareWith(t.value,e)}catch(e){return l.isDevMode()&&console.warn(e),!1}});return i&&(t?i._selectViaInteraction():i.select(),this._selectionModel.select(i),this.stateChanges.next()),i},t.prototype._clearSelection=function(e){this._selectionModel.clear(),this.options.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()},t.prototype._initKeyManager=function(){var e=this;this._keyManager=new n.ActiveDescendantKeyManager(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._keyManager.tabOut.pipe(d.takeUntil(this._destroy)).subscribe(function(){return e.close()}),this._keyManager.change.pipe(d.takeUntil(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})},t.prototype._resetOptions=function(){var e=this,t=u.merge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(d.takeUntil(t),d.filter(function(e){return e.isUserInput})).subscribe(function(t){e._onSelect(t.source),!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),u.merge.apply(void 0,this.options.map(function(e){return e._stateChanges})).pipe(d.takeUntil(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}),this._setOptionIds()},t.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(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()},t.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())},t.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 S(this,t)),this._changeDetectorRef.markForCheck()},t.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(e){return e.id}).join(" ")},t.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},t.prototype._scrollActiveOptionIntoView=function(){var e=this._keyManager.activeItemIndex||0,t=p._countGroupLabelsBeforeOption(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=p._getOptionScrollPosition(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._getOptionIndex=function(e){return this.options.reduce(function(t,n,i){return void 0===t?e===n?i:void 0:t},void 0)},t.prototype._calculateOverlayPosition=function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e,o=i-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=p._countGroupLabelsBeforeOption(r,this.options,this.optionGroups);var a=n/2;this._scrollTop=this._calculateOverlayScroll(r,a,o),this._offsetY=this._calculateOverlayOffsetY(r,a,o),this._checkOverlayWithinViewport(o)},t.prototype._calculateOverlayScroll=function(e,t,n){var i=this._getItemHeight(),o=i*e,r=i/2,a=o-t+r;return Math.min(Math.max(0,a),n)},Object.defineProperty(t.prototype,"_ariaLabel",{get:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},enumerable:!0,configurable:!0}),t.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},t.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=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}i||(e*=-1);var a=0-(t.left+e-(i?o:0)),s=t.right+e-n.width+(i?0:o);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=e,this.overlayDir.overlayRef.updatePosition()},t.prototype._calculateOverlayOffsetY=function(e,t,n){var i,o=this._getItemHeight(),r=(o-this._triggerRect.height)/2,a=Math.floor(256/o);if(this._disableOptionCentering)return 0;if(0===this._scrollTop)i=e*o;else if(this._scrollTop===n){var s=this._getItemCount()-a,l=e-s,c=o-(this._getItemCount()*o-256)%o;i=l*o+c}else i=t-o/2;return-1*i-r},t.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,o=n.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>i?this._adjustPanelDown(r,i,e):this._transformOrigin=this._getOriginBasedOnOption()},t.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},t.prototype._adjustPanelDown=function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},t.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},t.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},t.prototype._getItemHeight=function(){return 3*this._triggerFontSize},t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),t.decorators=[{type:l.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 cdkConnectedOverlayLockPosition cdkConnectedOverlayHasBackdrop cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop" [cdkConnectedOverlayScrollStrategy]="_scrollStrategy" [cdkConnectedOverlayOrigin]="origin" [cdkConnectedOverlayOpen]="panelOpen" [cdkConnectedOverlayPositions]="_positions" [cdkConnectedOverlayMinWidth]="_triggerRect?.width" [cdkConnectedOverlayOffsetY]="_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-form-field-appearance-fill .mat-select-arrow-wrapper,.mat-form-field-appearance-standard .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.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{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;display:block}"],inputs:["disabled","disableRipple","tabIndex"],encapsulation:l.ViewEncapsulation.None,changeDetection:l.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:[O.transformPanel,O.fadeInContent],providers:[{provide:h.MatFormFieldControl,useExisting:t},{provide:p.MAT_OPTION_PARENT_COMPONENT,useExisting:t}]}]}],t.ctorParameters=function(){return[{type:s.ViewportRuler},{type:l.ChangeDetectorRef},{type:l.NgZone},{type:p.ErrorStateMatcher},{type:l.ElementRef},{type:i.Directionality,decorators:[{type:l.Optional}]},{type:c.NgForm,decorators:[{type:l.Optional}]},{type:c.FormGroupDirective,decorators:[{type:l.Optional}]},{type:h.MatFormField,decorators:[{type:l.Optional}]},{type:c.NgControl,decorators:[{type:l.Self},{type:l.Optional}]},{type:void 0,decorators:[{type:l.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:l.Inject,args:[M]}]}]},t.propDecorators={trigger:[{type:l.ViewChild,args:["trigger"]}],panel:[{type:l.ViewChild,args:["panel"]}],overlayDir:[{type:l.ViewChild,args:[s.CdkConnectedOverlay]}],options:[{type:l.ContentChildren,args:[p.MatOption,{descendants:!0}]}],optionGroups:[{type:l.ContentChildren,args:[p.MatOptgroup]}],panelClass:[{type:l.Input}],customTrigger:[{type:l.ContentChild,args:[R]}],placeholder:[{type:l.Input}],required:[{type:l.Input}],multiple:[{type:l.Input}],disableOptionCentering:[{type:l.Input}],compareWith:[{type:l.Input}],value:[{type:l.Input}],ariaLabel:[{type:l.Input,args:["aria-label"]}],ariaLabelledby:[{type:l.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:l.Input}],id:[{type:l.Input}],openedChange:[{type:l.Output}],_openedStream:[{type:l.Output,args:["opened"]}],_closedStream:[{type:l.Output,args:["closed"]}],selectionChange:[{type:l.Output}],valueChange:[{type:l.Output}]},t}(E),P=function(){function e(){}return e.decorators=[{type:l.NgModule,args:[{imports:[g.CommonModule,s.OverlayModule,p.MatOptionModule,p.MatCommonModule],exports:[h.MatFormFieldModule,D,R,p.MatOptionModule,p.MatCommonModule],declarations:[D,R],providers:[I]}]}],e}();e.MatSelectModule=P,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=M,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY=v,e.MAT_SELECT_SCROLL_STRATEGY_PROVIDER=I,e.MatSelectChange=S,e.MatSelectBase=x,e._MatSelectMixinBase=E,e.MatSelectTrigger=R,e.MatSelect=D,e.matSelectAnimations=O,e.transformPanel=C,e.fadeInContent=w,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=material-select.umd.min.js.map