@@ -47,9 +47,6 @@ export interface MatSliderDragEvent {
47
47
48
48
/** The current value of the slider. */
49
49
value : number ;
50
-
51
- /** The thumb that was interacted with. */
52
- thumb : Thumb ;
53
50
}
54
51
55
52
/**
@@ -88,7 +85,7 @@ export class MatSliderThumb implements AfterViewInit {
88
85
// If the foundation has already been initialized, we need to
89
86
// relay any value updates to it so that it can update the UI.
90
87
if ( this . _slider . _initialized ) {
91
- this . _slider . _setValue ( value , this . thumb ) ;
88
+ this . _slider . _setValue ( value , this . _thumb ) ;
92
89
} else {
93
90
// Setup for the MDC foundation.
94
91
this . _elementRef . nativeElement . setAttribute ( 'value' , `${ value } ` ) ;
@@ -110,7 +107,7 @@ export class MatSliderThumb implements AfterViewInit {
110
107
@Output ( ) readonly _focus : EventEmitter < void > = new EventEmitter < void > ( ) ;
111
108
112
109
/** Indicates which slider thumb this input corresponds to. */
113
- thumb : Thumb ;
110
+ private _thumb : Thumb ;
114
111
115
112
private _document : Document ;
116
113
@@ -120,7 +117,7 @@ export class MatSliderThumb implements AfterViewInit {
120
117
readonly _elementRef : ElementRef < HTMLInputElement > ,
121
118
) {
122
119
this . _document = document ;
123
- this . thumb = _elementRef . nativeElement . hasAttribute ( 'matSliderStartThumb' )
120
+ this . _thumb = _elementRef . nativeElement . hasAttribute ( 'matSliderStartThumb' )
124
121
? Thumb . START
125
122
: Thumb . END ;
126
123
@@ -179,7 +176,6 @@ export class MatSliderThumb implements AfterViewInit {
179
176
exportAs : 'matSlider' ,
180
177
changeDetection : ChangeDetectionStrategy . OnPush ,
181
178
encapsulation : ViewEncapsulation . None ,
182
- providers : [ ] ,
183
179
} )
184
180
export class MatSlider implements AfterViewInit , OnDestroy {
185
181
/** The slider thumb(s). */
@@ -471,11 +467,11 @@ class SliderAdapter implements MDCSliderAdapter {
471
467
emitInputEvent = ( value : number , thumb : Thumb ) : void => { } ;
472
468
emitDragStartEvent = ( value : number , thumb : Thumb ) : void => {
473
469
const input = this . _delegate . _getInput ( thumb ) ;
474
- input . dragStart . emit ( { source : input , parent : this . _delegate , value, thumb } ) ;
470
+ input . dragStart . emit ( { source : input , parent : this . _delegate , value } ) ;
475
471
}
476
472
emitDragEndEvent = ( value : number , thumb : Thumb ) : void => {
477
473
const input = this . _delegate . _getInput ( thumb ) ;
478
- input . dragEnd . emit ( { source : input , parent : this . _delegate , value, thumb } ) ;
474
+ input . dragEnd . emit ( { source : input , parent : this . _delegate , value } ) ;
479
475
}
480
476
registerEventHandler =
481
477
< K extends EventType > ( evtType : K , handler : SpecificEventListener < K > ) : void => {
0 commit comments