source: trip-planner-front/node_modules/@angular/material/expansion/expansion-panel.d.ts@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.3 KB
Line 
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 */
8import { AnimationEvent } from '@angular/animations';
9import { CdkAccordionItem } from '@angular/cdk/accordion';
10import { BooleanInput } from '@angular/cdk/coercion';
11import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
12import { TemplatePortal } from '@angular/cdk/portal';
13import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
14import { Subject } from 'rxjs';
15import { MatAccordionBase, MatAccordionTogglePosition } from './accordion-base';
16import { MatExpansionPanelContent } from './expansion-panel-content';
17/** MatExpansionPanel's states. */
18export declare type MatExpansionPanelState = 'expanded' | 'collapsed';
19/**
20 * Object that can be used to override the default options
21 * for all of the expansion panels in a module.
22 */
23export interface MatExpansionPanelDefaultOptions {
24 /** Height of the header while the panel is expanded. */
25 expandedHeight: string;
26 /** Height of the header while the panel is collapsed. */
27 collapsedHeight: string;
28 /** Whether the toggle indicator should be hidden. */
29 hideToggle: boolean;
30}
31/**
32 * Injection token that can be used to configure the default
33 * options for the expansion panel component.
34 */
35export declare const MAT_EXPANSION_PANEL_DEFAULT_OPTIONS: InjectionToken<MatExpansionPanelDefaultOptions>;
36/**
37 * This component can be used as a single element to show expandable content, or as one of
38 * multiple children of an element with the MatAccordion directive attached.
39 */
40export declare class MatExpansionPanel extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy {
41 private _viewContainerRef;
42 _animationMode: string;
43 private _document;
44 private _hideToggle;
45 private _togglePosition;
46 /** Whether the toggle indicator should be hidden. */
47 get hideToggle(): boolean;
48 set hideToggle(value: boolean);
49 /** The position of the expansion indicator. */
50 get togglePosition(): MatAccordionTogglePosition;
51 set togglePosition(value: MatAccordionTogglePosition);
52 /** An event emitted after the body's expansion animation happens. */
53 readonly afterExpand: EventEmitter<void>;
54 /** An event emitted after the body's collapse animation happens. */
55 readonly afterCollapse: EventEmitter<void>;
56 /** Stream that emits for changes in `@Input` properties. */
57 readonly _inputChanges: Subject<SimpleChanges>;
58 /** Optionally defined accordion the expansion panel belongs to. */
59 accordion: MatAccordionBase;
60 /** Content that will be rendered lazily. */
61 _lazyContent: MatExpansionPanelContent;
62 /** Element containing the panel's user-provided content. */
63 _body: ElementRef<HTMLElement>;
64 /** Portal holding the user's content. */
65 _portal: TemplatePortal;
66 /** ID for the associated header element. Used for a11y labelling. */
67 _headerId: string;
68 /** Stream of body animation done events. */
69 readonly _bodyAnimationDone: Subject<AnimationEvent>;
70 constructor(accordion: MatAccordionBase, _changeDetectorRef: ChangeDetectorRef, _uniqueSelectionDispatcher: UniqueSelectionDispatcher, _viewContainerRef: ViewContainerRef, _document: any, _animationMode: string, defaultOptions?: MatExpansionPanelDefaultOptions);
71 /** Determines whether the expansion panel should have spacing between it and its siblings. */
72 _hasSpacing(): boolean;
73 /** Gets the expanded state string. */
74 _getExpandedState(): MatExpansionPanelState;
75 /** Toggles the expanded state of the expansion panel. */
76 toggle(): void;
77 /** Sets the expanded state of the expansion panel to false. */
78 close(): void;
79 /** Sets the expanded state of the expansion panel to true. */
80 open(): void;
81 ngAfterContentInit(): void;
82 ngOnChanges(changes: SimpleChanges): void;
83 ngOnDestroy(): void;
84 /** Checks whether the expansion panel's content contains the currently-focused element. */
85 _containsFocus(): boolean;
86 static ngAcceptInputType_hideToggle: BooleanInput;
87}
88/**
89 * Actions of a `<mat-expansion-panel>`.
90 */
91export declare class MatExpansionPanelActionRow {
92}
Note: See TracBrowser for help on using the repository browser.