@@ -17,32 +17,26 @@ import {
17
17
} from '@angular/core' ;
18
18
import { UniqueSelectionDispatcher } from '../core' ;
19
19
import { CdkAccordion } from './accordion' ;
20
- import { mixinDisabled , CanDisable } from '../core/common-behaviors/disabled' ;
21
20
22
21
/** Used to generate unique ID for each expansion panel. */
23
22
let nextId = 0 ;
24
23
25
- // Boilerplate for applying mixins to MdSlider.
26
- /** @docs -private */
27
- export class AccordionItemBase { }
28
- export const _AccordionItemMixinBase = mixinDisabled ( AccordionItemBase ) ;
29
-
30
24
/**
31
25
* An abstract class to be extended and decorated as a component. Sets up all
32
26
* events and attributes needed to be managed by a CdkAccordion parent.
33
27
*/
34
28
@Injectable ( )
35
- export class AccordionItem extends _AccordionItemMixinBase implements OnDestroy , CanDisable {
36
- /** Event emitted every time the MdAccordionChild is closed. */
29
+ export class AccordionItem implements OnDestroy {
30
+ /** Event emitted every time the AccordionItem is closed. */
37
31
@Output ( ) closed = new EventEmitter < void > ( ) ;
38
- /** Event emitted every time the MdAccordionChild is opened. */
32
+ /** Event emitted every time the AccordionItem is opened. */
39
33
@Output ( ) opened = new EventEmitter < void > ( ) ;
40
- /** Event emitted when the MdAccordionChild is destroyed. */
34
+ /** Event emitted when the AccordionItem is destroyed. */
41
35
@Output ( ) destroyed = new EventEmitter < void > ( ) ;
42
- /** The unique MdAccordionChild id. */
36
+ /** The unique AccordionItem id. */
43
37
readonly id = `cdk-accordion-child-${ nextId ++ } ` ;
44
38
45
- /** Whether the MdAccordionChild is expanded. */
39
+ /** Whether the AccordionItem is expanded. */
46
40
@Input ( )
47
41
get expanded ( ) : boolean { return this . _expanded ; }
48
42
set expanded ( expanded : boolean ) {
@@ -74,9 +68,6 @@ export class AccordionItem extends _AccordionItemMixinBase implements OnDestroy,
74
68
constructor ( @Optional ( ) public accordion : CdkAccordion ,
75
69
private _changeDetectorRef : ChangeDetectorRef ,
76
70
protected _expansionDispatcher : UniqueSelectionDispatcher ) {
77
-
78
- super ( ) ;
79
-
80
71
this . _removeUniqueSelectionListener =
81
72
_expansionDispatcher . listen ( ( id : string , accordionId : string ) => {
82
73
if ( this . accordion && ! this . accordion . multi &&
0 commit comments