@@ -12,28 +12,28 @@ import {
1212 QueryList ,
1313 OnChanges ,
1414} from 'angular2/core' ;
15- import { CONST_EXPR , noop } from 'angular2/src/facade/lang' ;
1615import {
1716 NG_VALUE_ACCESSOR ,
1817 ControlValueAccessor
1918} from 'angular2/src/common/forms/directives/control_value_accessor' ;
2019import { BaseException } from 'angular2/src/facade/exceptions' ;
2120import { BooleanFieldValue } from '../../core/annotations/field-value' ;
22- import { OneOf } from '../../core/annotations/one-of' ;
2321
2422
25- const MD_INPUT_CONTROL_VALUE_ACCESSOR = CONST_EXPR ( new Provider (
23+ const noop = ( ) => { } ;
24+
25+ const MD_INPUT_CONTROL_VALUE_ACCESSOR = new Provider (
2626 NG_VALUE_ACCESSOR , {
2727 useExisting : forwardRef ( ( ) => MdInput ) ,
2828 multi : true
29- } ) ) ;
29+ } ) ;
3030
3131// Invalid input type. Using one of these will throw an MdInputUnsupportedTypeException.
32- const MD_INPUT_INVALID_INPUT_TYPE = CONST_EXPR ( [
32+ const MD_INPUT_INVALID_INPUT_TYPE = [
3333 'file' ,
3434 'radio' ,
3535 'checkbox' ,
36- ] ) ;
36+ ] ;
3737
3838
3939let nextUniqueId = 0 ;
@@ -81,7 +81,7 @@ export class MdPlaceholder {}
8181} )
8282export class MdHint {
8383 // Whether to align the hint label at the start or end of the line.
84- @Input ( ) @ OneOf ( [ 'start' , 'end' ] ) align : string ;
84+ @Input ( ) align : 'start' | 'end' = 'start' ;
8585}
8686
8787
@@ -129,9 +129,9 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
129129 /**
130130 * Bindings.
131131 */
132- @Input ( ) @OneOf ( [ 'start' , 'end' ] ) align : string = 'start' ;
132+ @Input ( ) align : 'start' | 'end' = 'start' ;
133+ @Input ( ) dividerColor : 'primary' | 'accent' | 'warn' = 'primary' ;
133134 @Input ( ) @BooleanFieldValue ( ) disabled : boolean = false ;
134- @Input ( ) @OneOf ( [ 'primary' , 'accent' , 'warn' ] ) dividerColor : string = 'primary' ;
135135 @Input ( ) @BooleanFieldValue ( ) floatingPlaceholder : boolean = true ;
136136 @Input ( ) hintLabel : string = '' ;
137137 @Input ( ) id : string = `md-input-${ nextUniqueId ++ } ` ;
@@ -234,8 +234,8 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
234234 }
235235}
236236
237- export const MD_INPUT_DIRECTIVES : any [ ] = CONST_EXPR ( [
237+ export const MD_INPUT_DIRECTIVES : any [ ] = [
238238 MdPlaceholder ,
239239 MdInput ,
240240 MdHint ,
241- ] ) ;
241+ ] ;
0 commit comments