@@ -56,19 +56,6 @@ export const MAT_SELECTION_LIST_VALUE_ACCESSOR: any = {
56
56
multi : true
57
57
} ;
58
58
59
- /**
60
- * Change event object emitted by MatListOption whenever the selected state changes.
61
- * @deprecated Use the `MatSelectionListChange` event on the selection list instead.
62
- * @deletion -target 6.0.0
63
- */
64
- export class MatListOptionChange {
65
- constructor (
66
- /** Reference to the list option that changed. */
67
- public source : MatListOption ,
68
- /** The new selected state of the option. */
69
- public selected : boolean ) { }
70
- }
71
-
72
59
/** Change event that is being fired whenever the selected state of an option changes. */
73
60
export class MatSelectionListChange {
74
61
constructor (
@@ -148,14 +135,6 @@ export class MatListOption extends _MatListOptionMixinBase
148
135
}
149
136
}
150
137
151
- /**
152
- * Emits a change event whenever the selected state of an option changes.
153
- * @deprecated Use the `selectionChange` event on the `<mat-selection-list>` instead.
154
- * @deletion -target 6.0.0
155
- */
156
- @Output ( ) readonly selectionChange : EventEmitter < MatListOptionChange > =
157
- new EventEmitter < MatListOptionChange > ( ) ;
158
-
159
138
constructor ( private _element : ElementRef ,
160
139
private _changeDetector : ChangeDetectorRef ,
161
140
/** @docs -private */
@@ -224,9 +203,6 @@ export class MatListOption extends _MatListOptionMixinBase
224
203
225
204
// Emit a change event if the selected state of the option changed through user interaction.
226
205
this . selectionList . _emitChangeEvent ( this ) ;
227
-
228
- // TODO: the `selectionChange` event on the option is deprecated. Remove that in the future.
229
- this . _emitDeprecatedChangeEvent ( ) ;
230
206
}
231
207
}
232
208
@@ -261,12 +237,6 @@ export class MatListOption extends _MatListOptionMixinBase
261
237
262
238
this . _changeDetector . markForCheck ( ) ;
263
239
}
264
-
265
- /** Emits a selectionChange event for this option. */
266
- _emitDeprecatedChangeEvent ( ) {
267
- // TODO: the `selectionChange` event on the option is deprecated. Remove that in the future.
268
- this . selectionChange . emit ( new MatListOptionChange ( this , this . selected ) ) ;
269
- }
270
240
}
271
241
272
242
@@ -492,9 +462,6 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
492
462
// Emit a change event because the focused option changed its state through user
493
463
// interaction.
494
464
this . _emitChangeEvent ( focusedOption ) ;
495
-
496
- // TODO: the `selectionChange` event on the option is deprecated. Remove that in the future.
497
- focusedOption . _emitDeprecatedChangeEvent ( ) ;
498
465
}
499
466
}
500
467
}
0 commit comments