1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { BooleanInput } from '@angular/cdk/coercion';
|
---|
9 | import { InjectionToken, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
---|
10 | import { Subject } from 'rxjs';
|
---|
11 | /**
|
---|
12 | * Injection token that can be used to reference instances of `CdkAccordion`. It serves
|
---|
13 | * as alternative token to the actual `CdkAccordion` class which could cause unnecessary
|
---|
14 | * retention of the class and its directive metadata.
|
---|
15 | */
|
---|
16 | export declare const CDK_ACCORDION: InjectionToken<CdkAccordion>;
|
---|
17 | /**
|
---|
18 | * Directive whose purpose is to manage the expanded state of CdkAccordionItem children.
|
---|
19 | */
|
---|
20 | export declare class CdkAccordion implements OnDestroy, OnChanges {
|
---|
21 | /** Emits when the state of the accordion changes */
|
---|
22 | readonly _stateChanges: Subject<SimpleChanges>;
|
---|
23 | /** Stream that emits true/false when openAll/closeAll is triggered. */
|
---|
24 | readonly _openCloseAllActions: Subject<boolean>;
|
---|
25 | /** A readonly id value to use for unique selection coordination. */
|
---|
26 | readonly id: string;
|
---|
27 | /** Whether the accordion should allow multiple expanded accordion items simultaneously. */
|
---|
28 | get multi(): boolean;
|
---|
29 | set multi(multi: boolean);
|
---|
30 | private _multi;
|
---|
31 | /** Opens all enabled accordion items in an accordion where multi is enabled. */
|
---|
32 | openAll(): void;
|
---|
33 | /** Closes all enabled accordion items in an accordion where multi is enabled. */
|
---|
34 | closeAll(): void;
|
---|
35 | ngOnChanges(changes: SimpleChanges): void;
|
---|
36 | ngOnDestroy(): void;
|
---|
37 | static ngAcceptInputType_multi: BooleanInput;
|
---|
38 | }
|
---|