@angular-mdc/web
Version:
22 lines (20 loc) • 21.8 kB
JavaScript
/**
* @license
* Copyright (c) Dominic Carretto
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/trimox/angular-mdc-web/blob/master/LICENSE
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular-mdc/web/floating-label"),require("@angular-mdc/web/line-ripple"),require("@angular-mdc/web/notched-outline"),require("@angular-mdc/web/form-field"),require("@angular-mdc/web/menu"),require("@angular-mdc/web/list"),require("@angular/forms"),require("@angular/cdk/coercion"),require("@angular/cdk/platform"),require("rxjs"),require("rxjs/operators"),require("@angular-mdc/web/base"),require("@angular-mdc/web/ripple"),require("@material/ripple"),require("@material/select")):"function"==typeof define&&define.amd?define("@angular-mdc/web/select",["exports","@angular/core","@angular/common","@angular-mdc/web/floating-label","@angular-mdc/web/line-ripple","@angular-mdc/web/notched-outline","@angular-mdc/web/form-field","@angular-mdc/web/menu","@angular-mdc/web/list","@angular/forms","@angular/cdk/coercion","@angular/cdk/platform","rxjs","rxjs/operators","@angular-mdc/web/base","@angular-mdc/web/ripple","@material/ripple","@material/select"],t):t(((e=e||self).ng=e.ng||{},e.ng.web=e.ng.web||{},e.ng.web.select={}),e.ng.core,e.ng.common,e.ng.web.floatingLabel,e.ng.web.lineRipple,e.ng.web.notchedOutline,e.ng.web.formField,e.ng.web.menu,e.ng.web.list,e.ng.forms,e.ng.cdk.coercion,e.ng.cdk.platform,e.rxjs,e.rxjs.operators,e.ng.web.base,e.ng.web.ripple,e.mdc.ripple,e.mdc.select)}(this,(function(e,t,n,o,i,r,l,u,a,c,s,d,p,f,h,m,_,g){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var y=function(e,t){return(y=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])})(e,t)};function b(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function C(e,t,n,o){return new(n||(n=Promise))((function(i,r){function l(e){try{a(o.next(e))}catch(e){r(e)}}function u(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,u)}a((o=o.apply(e,t||[])).next())}))}function M(e,t){var n,o,i,r,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){l.label=r[1];break}if(6===r[0]&&l.label<i[1]){l.label=i[1],i=r;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(r);break}i[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}}var x=function(){function e(){}return e.decorators=[{type:t.Directive,args:[{selector:"[mdcSelectIcon]",exportAs:"mdcSelectIcon",host:{class:"mdc-select__icon"}}]}],e}(),w=function(){function e(e){this.elementRef=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Directive,args:[{selector:"[mdcSelectAnchor]",exportAs:"mdcSelectAnchor",host:{class:"mdc-select__anchor"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e}(),S=function(){function e(e){this.elementRef=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Directive,args:[{selector:"[mdcSelectedText]",exportAs:"mdcSelectedText",host:{class:"mdc-select__selected-text",role:"button","aria-haspopup":"listbox","[attr.aria-labelledby]":"ariaLabelledby","[attr.aria-required]":"ariaRequired"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e.propDecorators={ariaLabelledby:[{type:t.Input}],ariaRequired:[{type:t.Input}]},e}(),I=new t.InjectionToken("MDC_SELECT_DEFAULT_OPTIONS"),E=function(e){function t(t,n,o,i,r){var l=e.call(this,t)||this;return l._elementRef=t,l._defaultErrorStateMatcher=n,l._parentForm=o,l._parentFormGroup=i,l.ngControl=r,l}return b(t,e),t}(h.MDCComponent),A=l.mixinErrorState(E),O=function(e,t,n){this.source=e,this.index=t,this.value=n},L=0,R=function(e){function n(n,o,i,r,l,u,a,c,s,d){var f=e.call(this,i,r,c,s,a)||this;return f._platform=n,f._changeDetectorRef=o,f.elementRef=i,f._defaultErrorStateMatcher=r,f._parentFormField=l,f._ripple=u,f.ngControl=a,f._defaults=d,f._destroyed=new p.Subject,f._uniqueId="mdc-select-"+ ++L,f._initialized=!1,f.id=f._uniqueId,f._disabled=!1,f._floatLabel=!0,f._outlined=!1,f._required=!1,f.compareWith=function(e,t){return e===t},f.selectionChange=new t.EventEmitter,f.valueChange=new t.EventEmitter,f.blur=new t.EventEmitter,f._onFocus=new t.EventEmitter,f._onChange=function(){},f._onTouched=function(){},f._root=f.elementRef.nativeElement,f.ngControl&&(f.ngControl.valueAccessor=f),f._parentFormField&&l.elementRef.nativeElement.classList.add("ngx-form-field-select"),f.id=f.id,f._setDefaultGlobalOptions(),f}return b(n,e),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this.setDisabledState(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"floatLabel",{get:function(){return this._floatLabel},set:function(e){var t=s.coerceBooleanProperty(e);t!==this._floatLabel&&(this._floatLabel=t,this.layout())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"outlined",{get:function(){return this._outlined},set:function(e){var t=s.coerceBooleanProperty(e);this._outlined=t,this.layout()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(e){var t=s.coerceBooleanProperty(e);t!==this._required&&(this._required=t,this._initialized&&!this._required&&(this.valid=!0,this._changeDetectorRef.markForCheck()))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valid",{get:function(){return this._valid},set:function(e){var t,n=s.coerceBooleanProperty(e);this._valid=n,null===(t=this._foundation)||void 0===t||t.setValid(this._valid)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&this.setSelectionByValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"helperText",{get:function(){return this._helperText},set:function(e){var t;this._helperText=e,null===(t=this.helperText)||void 0===t||t.init()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_hasPlaceholder",{get:function(){return!!this.placeholder&&this.placeholder.length>0},enumerable:!0,configurable:!0}),n.prototype.getDefaultFoundation=function(){if(this._initialized){var e=v(v(v(v({},this._getSelectAdapterMethods()),this._getCommonAdapterMethods()),this._getOutlineAdapterMethods()),this._getLabelAdapterMethods());return new g.MDCSelectFoundation(e,this._getFoundationMap())}},n.prototype._getSelectAdapterMethods=function(){var e=this;return{getSelectedMenuItem:function(){return e._menu.elementRef.nativeElement.querySelector(g.strings.SELECTED_ITEM_SELECTOR)},getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){return e._selectedText.root.textContent=t},isSelectedTextFocused:function(){return!!e._platform.isBrowser&&document.activeElement===e._selectedText.root},getSelectedTextAttr:function(t){return e._selectedText.root.getAttribute(t)},setSelectedTextAttr:function(t,n){return e._selectedText.root.setAttribute(t,n)},openMenu:function(){return e._menu.open=!0},closeMenu:function(){return e._menu.open=!1},getAnchorElement:function(){return e._selectAnchor.root},setMenuAnchorElement:function(t){return e._menu.anchorElement=t},setMenuAnchorCorner:function(t){return e._menu.anchorCorner=t},setMenuWrapFocus:function(t){return e._menu.wrapFocus=t},setAttributeAtIndex:function(t,n,o){return e._menu._list.items.toArray()[t].getListItemElement().setAttribute(n,o)},removeAttributeAtIndex:function(t,n){return e._menu._list.items.toArray()[t].getListItemElement().removeAttribute(n)},focusMenuItemAtIndex:function(t){return e._menu._list.items.toArray()[t].focus()},getMenuItemCount:function(){return e._menu._list.items.length},getMenuItemValues:function(){var t;return null!=(t=e._menu._list.items.map((function(e){return e.getListItemElement().getAttribute(g.strings.VALUE_ATTR)||""})))?t:[]},getMenuItemTextAtIndex:function(t){var n;return null!=(n=e._menu._list.items.toArray()[t].getListItemElement().textContent)?n:""},addClassAtIndex:function(t,n){return e._menu._list.items.toArray()[t].getListItemElement().classList.add(n)},removeClassAtIndex:function(t,n){return e._menu._list.items.toArray()[t].getListItemElement().classList.remove(n)}}},n.prototype._getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){return e._root.classList.add(t)},removeClass:function(t){return e._root.classList.remove(t)},hasClass:function(t){return e._root.classList.contains(t)},setRippleCenter:function(t){var n;return null===(n=e._lineRipple)||void 0===n?void 0:n.setRippleCenter(t)},activateBottomLine:function(){var t;return null===(t=e._lineRipple)||void 0===t?void 0:t.activate()},deactivateBottomLine:function(){var t;return null===(t=e._lineRipple)||void 0===t?void 0:t.deactivate()},notifyChange:function(){}}},n.prototype._getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return!!e._notchedOutline},notchOutline:function(t){var n;return null===(n=e._notchedOutline)||void 0===n?void 0:n.notch(t)},closeOutline:function(){var t;return null===(t=e._notchedOutline)||void 0===t?void 0:t.closeNotch()}}},n.prototype._getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return e._hasPlaceholder},floatLabel:function(t){return e._getFloatingLabel().float(t)},getLabelWidth:function(){var t;return null===(t=e._getFloatingLabel())||void 0===t?void 0:t.getWidth()}}},n.prototype._getFoundationMap=function(){var e;return{helperText:null===(e=this._helperText)||void 0===e?void 0:e.foundation}},n.prototype.ngAfterViewInit=function(){var e=this;this._initialized=!0,this._asyncBuildFoundation().then((function(){e._selectBuilder()})),this._initializeSelection(),this._subscribeToMenuEvents()},n.prototype.ngOnDestroy=function(){this.destroy()},n.prototype.destroy=function(){var e;this._destroyed.next(),this._destroyed.complete(),null===(e=this._lineRipple)||void 0===e||e.destroy(),this._ripple.destroy(),this._foundation.destroy()},n.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},n.prototype.writeValue=function(e){this._initialized&&this.setSelectionByValue(e,!1)},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.onFocus=function(){this.disabled||(this._foundation.handleFocus(),this._onFocus.emit(!0))},n.prototype.onBlur=function(){this._foundation.handleBlur()},n.prototype.onClick=function(e){this._foundation.handleClick(this._getNormalizedXCoordinate(e))},n.prototype.onKeydown=function(e){this._foundation.handleKeydown(e)},n.prototype.getSelectedIndex=function(){var e,t;return null!=(t=null===(e=this._foundation)||void 0===e?void 0:e.getSelectedIndex())?t:-1},n.prototype.focus=function(){this._selectedText.root.focus()},n.prototype.setSelectedIndex=function(e){var t,n;this.setSelectionByValue(null===(n=null===(t=this._menu._list)||void 0===t?void 0:t.getListItemByIndex(e))||void 0===n?void 0:n.value,!0,e)},n.prototype.setSelectionByValue=function(e,t,n){var o;void 0===t&&(t=!0),(this._value||e)&&(n||(n=null===(o=this._menu._list)||void 0===o?void 0:o.getListItemIndexByValue(e)),this._value=e,this._foundation.setSelectedIndex(null!=n?n:-1,this._menu.closeSurfaceOnSelection),t&&(this._onChange(this._value),this.selectionChange.emit(new O(this,this.getSelectedIndex(),e))),this.valueChange.emit({index:this.getSelectedIndex(),value:this._value}),this._foundation.handleChange(),this._changeDetectorRef.markForCheck())},n.prototype.setDisabledState=function(e){var t;this._disabled=s.coerceBooleanProperty(e),null===(t=this._foundation)||void 0===t||t.setDisabled(this._disabled),this._changeDetectorRef.markForCheck()},Object.defineProperty(n.prototype,"_hasValue",{get:function(){var e;return(null===(e=this._value)||void 0===e?void 0:e.length)>0},enumerable:!0,configurable:!0}),n.prototype.layout=function(){var e=this;this._initialized&&this._asyncBuildFoundation().then((function(){e._selectBuilder(),e._foundation.layout()}))},n.prototype._initializeSelection=function(){var e=this;Promise.resolve().then((function(){var t,n,o=null!=(n=null===(t=e.ngControl)||void 0===t?void 0:t.value)?n:e._value;o&&e.setSelectionByValue(o,!1)}))},n.prototype._setDefaultGlobalOptions=function(){this._defaults&&null!=this._defaults.outlined&&(this.outlined=this._defaults.outlined)},n.prototype._asyncBuildFoundation=function(){return C(this,void 0,void 0,(function(){return M(this,(function(e){return this._foundation=this.getDefaultFoundation(),[2]}))}))},n.prototype._asyncInitFoundation=function(){return C(this,void 0,void 0,(function(){return M(this,(function(e){return this._foundation.init(),[2]}))}))},n.prototype._selectBuilder=function(){var e=this;this._changeDetectorRef.detectChanges(),this._asyncInitFoundation().then((function(){e.outlined||(e._ripple=e._createRipple(),e._ripple.init()),e._menu.wrapFocus=!1,e._menu.elementRef.nativeElement.setAttribute("role","listbox"),e._menu.elementRef.nativeElement.classList.add("mdc-select__menu"),e._menu._list&&(e._menu._list.useSelectedClass=!0,e._menu._list.singleSelection=!0)}))},n.prototype._subscribeToMenuEvents=function(){var e=this;this._menu._list.items.changes.pipe(f.takeUntil(this._destroyed)).subscribe((function(){return e._initializeSelection()})),this._menu.opened.pipe(f.takeUntil(this._destroyed)).subscribe((function(){return e._foundation.handleMenuOpened()})),this._menu.closed.pipe(f.takeUntil(this._destroyed)).subscribe((function(){e._foundation.handleMenuClosed(),e._blur()})),this._menu.selected.pipe(f.takeUntil(this._destroyed)).subscribe((function(t){return e.setSelectedIndex(t.index)}))},n.prototype._blur=function(){this._onTouched(),this.blur.emit(this.value),this._onFocus.emit(!1)},n.prototype._getFloatingLabel=function(){var e;return null!=(e=this._floatingLabel)?e:this._notchedOutline.floatingLabel},n.prototype._getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return e instanceof MouseEvent?e.clientX-t.left:(e.touches[0]&&e.touches[0].clientX)-t.left},n.prototype._createRipple=function(){var e=this,t=v(v({},m.MdcRipple.createAdapter({_root:this._selectAnchor.root})),{registerInteractionHandler:function(t,n){return e._selectedText.root.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){return e._selectedText.root.removeEventListener(t,n)}});return new m.MdcRipple(this._selectAnchor.elementRef,new _.MDCRippleFoundation(t))},n.decorators=[{type:t.Component,args:[{selector:"mdc-select",exportAs:"mdcSelect",host:{"[id]":"id",class:"mdc-select","[class.mdc-select--disabled]":"disabled","[class.mdc-select--outlined]":"outlined","[class.mdc-select--required]":"required","[class.mdc-select--no-label]":"!_hasPlaceholder","[class.mdc-select--with-leading-icon]":"leadingIcon","[class.mdc-select--invalid]":"errorState"},template:'\n <div mdcSelectAnchor>\n <ng-content select="mdc-icon"></ng-content>\n <i class="mdc-select__dropdown-icon"></i>\n <div mdcSelectedText\n [tabindex]="disabled ? \'-1\' : \'0\'"\n (focus)="onFocus()"\n (blur)="onBlur()"\n (keydown)="onKeydown($event)"\n (click)="onClick($event)"\n [ariaRequired]="required"\n [ariaLabelledby]="id"></div>\n <label mdcFloatingLabel *ngIf="!outlined" [for]="id">{{placeholder}}</label>\n <mdc-line-ripple *ngIf="!outlined"></mdc-line-ripple>\n <mdc-notched-outline *ngIf="outlined" [label]="placeholder" [for]="id"></mdc-notched-outline>\n </div>\n <ng-content select="mdc-menu"></ng-content>\n ',providers:[m.MdcRipple,{provide:l.MdcFormFieldControl,useExisting:n}],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}]}],n.ctorParameters=function(){return[{type:d.Platform},{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:l.ErrorStateMatcher},{type:l.MdcFormField,decorators:[{type:t.Optional}]},{type:m.MdcRipple,decorators:[{type:t.Optional}]},{type:c.NgControl,decorators:[{type:t.Self},{type:t.Optional}]},{type:c.NgForm,decorators:[{type:t.Optional}]},{type:c.FormGroupDirective,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[I]}]}]},n.propDecorators={id:[{type:t.Input}],name:[{type:t.Input}],placeholder:[{type:t.Input}],disabled:[{type:t.Input}],floatLabel:[{type:t.Input}],outlined:[{type:t.Input}],required:[{type:t.Input}],valid:[{type:t.Input}],compareWith:[{type:t.Input}],value:[{type:t.Input}],helperText:[{type:t.Input}],errorStateMatcher:[{type:t.Input}],selectionChange:[{type:t.Output}],valueChange:[{type:t.Output}],blur:[{type:t.Output}],_onFocus:[{type:t.Output,args:["focus"]}],_floatingLabel:[{type:t.ViewChild,args:[o.MdcFloatingLabel,{static:!1}]}],_lineRipple:[{type:t.ViewChild,args:[i.MdcLineRipple,{static:!1}]}],_notchedOutline:[{type:t.ViewChild,args:[r.MdcNotchedOutline,{static:!1}]}],_selectAnchor:[{type:t.ViewChild,args:[w,{static:!1}]}],_selectedText:[{type:t.ViewChild,args:[S,{static:!1}]}],_menu:[{type:t.ContentChild,args:[u.MdcMenu,{static:!1}]}],leadingIcon:[{type:t.ContentChild,args:[x,{static:!1}]}]},n}(A),F=function(e){function n(t){var n=e.call(this,t)||this;return n.elementRef=t,n._persistent=!1,n._validation=!1,n}return b(n,e),Object.defineProperty(n.prototype,"persistent",{get:function(){return this._persistent},set:function(e){this._persistent=s.coerceBooleanProperty(e),this._foundation.setPersistent(this._persistent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validation",{get:function(){return this._validation},set:function(e){this._validation=s.coerceBooleanProperty(e),this._foundation.setValidation(this._validation)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"foundation",{get:function(){return this._foundation},enumerable:!0,configurable:!0}),n.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.elementRef.nativeElement.classList.add(t)},removeClass:function(t){return e.elementRef.nativeElement.classList.remove(t)},hasClass:function(t){return e.elementRef.nativeElement.classList.contains(t)},setAttr:function(t,n){return e.elementRef.nativeElement.setAttribute(t,n)},removeAttr:function(t){return e.elementRef.nativeElement.removeAttribute(t)},setContent:function(){}};return new g.MDCSelectHelperTextFoundation(t)},n.prototype.setValidity=function(e){this._foundation.setValidity(e)},n.prototype.showToScreenReader=function(){this._foundation.showToScreenReader()},n.prototype.init=function(){this._foundation.setPersistent(this.persistent),this._foundation.setValidation(this.validation)},n.decorators=[{type:t.Component,args:[{selector:"mdc-select-helper-text, [mdcSelectHelperText]",exportAs:"mdcSelectHelperText",host:{class:"mdc-select-helper-text"},template:"<ng-content></ng-content>",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}]}],n.ctorParameters=function(){return[{type:t.ElementRef}]},n.propDecorators={id:[{type:t.Input}],persistent:[{type:t.Input}],validation:[{type:t.Input}]},n}(h.MDCComponent),T=[R,w,F,x,S],P=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,u.MdcMenuModule,a.MdcListModule,l.MdcFormFieldModule,o.MdcFloatingLabelModule,r.MdcNotchedOutlineModule,i.MdcLineRippleModule],exports:[u.MdcMenuModule,a.MdcListModule,l.MdcFormFieldModule,T],declarations:T}]}],e}();e.MDCSelectHelperText=F,e.MDC_SELECT_DEFAULT_OPTIONS=I,e.MdcSelect=R,e.MdcSelectAnchor=w,e.MdcSelectChange=O,e.MdcSelectIcon=x,e.MdcSelectModule=P,e.MdcSelectedText=S,Object.defineProperty(e,"__esModule",{value:!0})}));