UNPKG

@angular/material

Version:
53 lines (52 loc) 2.46 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { AnimationEvent } from '@angular/animations'; import { ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef, AfterContentInit } from '@angular/core'; import { CdkAccordionItem } from '@angular/cdk/accordion'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; import { TemplatePortal } from '@angular/cdk/portal'; import { Subject } from 'rxjs/Subject'; import { MatAccordion } from './accordion'; import { MatExpansionPanelContent } from './expansion-panel-content'; /** MatExpansionPanel's states. */ export declare type MatExpansionPanelState = 'expanded' | 'collapsed'; /** * `<mat-expansion-panel>` * * This component can be used as a single element to show expandable content, or as one of * multiple children of an element with the MdAccordion directive attached. */ export declare class MatExpansionPanel extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy { private _viewContainerRef; /** Whether the toggle indicator should be hidden. */ hideToggle: boolean; private _hideToggle; /** Stream that emits for changes in `@Input` properties. */ readonly _inputChanges: Subject<SimpleChanges>; /** Optionally defined accordion the expansion panel belongs to. */ accordion: MatAccordion; /** Content that will be rendered lazily. */ _lazyContent: MatExpansionPanelContent; /** Portal holding the user's content. */ _portal: TemplatePortal; /** ID for the associated header element. Used for a11y labelling. */ _headerId: string; constructor(accordion: MatAccordion, _changeDetectorRef: ChangeDetectorRef, _uniqueSelectionDispatcher: UniqueSelectionDispatcher, _viewContainerRef: ViewContainerRef); /** Whether the expansion indicator should be hidden. */ _getHideToggle(): boolean; /** Determines whether the expansion panel should have spacing between it and its siblings. */ _hasSpacing(): boolean; /** Gets the expanded state string. */ _getExpandedState(): MatExpansionPanelState; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; _bodyAnimation(event: AnimationEvent): void; } export declare class MatExpansionPanelActionRow { }