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 { QueryList, AfterContentInit, OnDestroy } from '@angular/core';
|
---|
9 | import { BooleanInput } from '@angular/cdk/coercion';
|
---|
10 | import { CdkAccordion } from '@angular/cdk/accordion';
|
---|
11 | import { MatAccordionBase, MatAccordionDisplayMode, MatAccordionTogglePosition } from './accordion-base';
|
---|
12 | import { MatExpansionPanelHeader } from './expansion-panel-header';
|
---|
13 | /**
|
---|
14 | * Directive for a Material Design Accordion.
|
---|
15 | */
|
---|
16 | export declare class MatAccordion extends CdkAccordion implements MatAccordionBase, AfterContentInit, OnDestroy {
|
---|
17 | private _keyManager;
|
---|
18 | /** Headers belonging to this accordion. */
|
---|
19 | private _ownHeaders;
|
---|
20 | /** All headers inside the accordion. Includes headers inside nested accordions. */
|
---|
21 | _headers: QueryList<MatExpansionPanelHeader>;
|
---|
22 | /** Whether the expansion indicator should be hidden. */
|
---|
23 | get hideToggle(): boolean;
|
---|
24 | set hideToggle(show: boolean);
|
---|
25 | private _hideToggle;
|
---|
26 | /**
|
---|
27 | * Display mode used for all expansion panels in the accordion. Currently two display
|
---|
28 | * modes exist:
|
---|
29 | * default - a gutter-like spacing is placed around any expanded panel, placing the expanded
|
---|
30 | * panel at a different elevation from the rest of the accordion.
|
---|
31 | * flat - no spacing is placed around expanded panels, showing all panels at the same
|
---|
32 | * elevation.
|
---|
33 | */
|
---|
34 | displayMode: MatAccordionDisplayMode;
|
---|
35 | /** The position of the expansion indicator. */
|
---|
36 | togglePosition: MatAccordionTogglePosition;
|
---|
37 | ngAfterContentInit(): void;
|
---|
38 | /** Handles keyboard events coming in from the panel headers. */
|
---|
39 | _handleHeaderKeydown(event: KeyboardEvent): void;
|
---|
40 | _handleHeaderFocus(header: MatExpansionPanelHeader): void;
|
---|
41 | ngOnDestroy(): void;
|
---|
42 | static ngAcceptInputType_hideToggle: BooleanInput;
|
---|
43 | }
|
---|