@@ -23,19 +23,18 @@ export class LinearProgressBase extends BaseElement {
23
23
24
24
protected readonly mdcFoundationClass = MDCLinearProgressFoundation ;
25
25
26
- @query ( '.mdc-linear-progress' )
27
- protected mdcRoot ! : HTMLElement
26
+ @query ( '.mdc-linear-progress' ) protected mdcRoot ! : HTMLElement ;
28
27
29
- @query ( '.mdc-linear-progress__primary-bar' ) protected primaryBar
30
- ! : HTMLElement
28
+ @query ( '.mdc-linear-progress__primary-bar' )
29
+ protected primaryBar ! : HTMLElement ;
31
30
32
- @query ( '.mdc-linear-progress__buffer' ) protected bufferElement
33
- ! : HTMLElement
31
+ @query ( '.mdc-linear-progress__buffer' ) protected bufferElement ! : HTMLElement ;
34
32
35
- @property ( { type : Boolean , reflect : true } )
36
- @observer ( function ( this : LinearProgressBase , value : boolean ) {
37
- this . mdcFoundation . setDeterminate ( value ) ;
38
- } ) determinate = false ;
33
+ @property ( { type : Boolean , reflect : true } )
34
+ @observer ( function ( this : LinearProgressBase , value : boolean ) {
35
+ this . mdcFoundation . setDeterminate ( value ) ;
36
+ } )
37
+ determinate = false ;
39
38
40
39
@property ( { type : Number } )
41
40
@observer ( function ( this : LinearProgressBase , value : number ) {
@@ -84,16 +83,15 @@ export class LinearProgressBase extends BaseElement {
84
83
...addHasRemoveClass ( this . mdcRoot ) ,
85
84
getPrimaryBar : ( ) => this . primaryBar ,
86
85
getBuffer : ( ) => this . bufferElement ,
87
- setStyle : ( el : HTMLElement , property : string , value : string ) =>
88
- // TODO(aomarks) Consider moving this type to the
89
- // MDCLinearProgressAdapter parameter type, but note that the
90
- // "-webkit" prefixed CSS properties are not declared in
91
- // CSSStyleDeclaration.
92
- //
93
- // Exclude read-only properties.
94
- el . style
95
- [ property as
96
- Exclude < keyof CSSStyleDeclaration , 'length' | 'parentRule' > ] = value ,
86
+ setStyle : ( el : HTMLElement , property : string , value : string ) => {
87
+ // TODO(aomarks) Consider moving this type to the
88
+ // MDCLinearProgressAdapter parameter type, but note that the "-webkit"
89
+ // prefixed CSS properties are not declared in CSSStyleDeclaration.
90
+ //
91
+ // Exclude read-only properties.
92
+ el . style [ property as Exclude < keyof CSSStyleDeclaration , 'length' | 'parentRule' > ] =
93
+ value ;
94
+ } ,
97
95
} ;
98
96
}
99
97
0 commit comments