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 { InjectionToken } from '@angular/core';
|
---|
9 | import { CdkAccordion } from '@angular/cdk/accordion';
|
---|
10 | /** MatAccordion's display modes. */
|
---|
11 | export declare type MatAccordionDisplayMode = 'default' | 'flat';
|
---|
12 | /** MatAccordion's toggle positions. */
|
---|
13 | export declare type MatAccordionTogglePosition = 'before' | 'after';
|
---|
14 | /**
|
---|
15 | * Base interface for a `MatAccordion`.
|
---|
16 | * @docs-private
|
---|
17 | */
|
---|
18 | export interface MatAccordionBase extends CdkAccordion {
|
---|
19 | /** Whether the expansion indicator should be hidden. */
|
---|
20 | hideToggle: boolean;
|
---|
21 | /** Display mode used for all expansion panels in the accordion. */
|
---|
22 | displayMode: MatAccordionDisplayMode;
|
---|
23 | /** The position of the expansion indicator. */
|
---|
24 | togglePosition: MatAccordionTogglePosition;
|
---|
25 | /** Handles keyboard events coming in from the panel headers. */
|
---|
26 | _handleHeaderKeydown: (event: KeyboardEvent) => void;
|
---|
27 | /** Handles focus events on the panel headers. */
|
---|
28 | _handleHeaderFocus: (header: any) => void;
|
---|
29 | }
|
---|
30 | /**
|
---|
31 | * Token used to provide a `MatAccordion` to `MatExpansionPanel`.
|
---|
32 | * Used primarily to avoid circular imports between `MatAccordion` and `MatExpansionPanel`.
|
---|
33 | */
|
---|
34 | export declare const MAT_ACCORDION: InjectionToken<MatAccordionBase>;
|
---|