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

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

initial commit

  • Property mode set to 100644
File size: 1.7 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 { AnimationTriggerMetadata } from '@angular/animations';
9/** Time and timing curve for expansion panel animations. */
10export declare const EXPANSION_PANEL_ANIMATION_TIMING = "225ms cubic-bezier(0.4,0.0,0.2,1)";
11/**
12 * Animations used by the Material expansion panel.
13 *
14 * A bug in angular animation's `state` when ViewContainers are moved using ViewContainerRef.move()
15 * causes the animation state of moved components to become `void` upon exit, and not update again
16 * upon reentry into the DOM. This can lead a to situation for the expansion panel where the state
17 * of the panel is `expanded` or `collapsed` but the animation state is `void`.
18 *
19 * To correctly handle animating to the next state, we animate between `void` and `collapsed` which
20 * are defined to have the same styles. Since angular animates from the current styles to the
21 * destination state's style definition, in situations where we are moving from `void`'s styles to
22 * `collapsed` this acts a noop since no style values change.
23 *
24 * In the case where angular's animation state is out of sync with the expansion panel's state, the
25 * expansion panel being `expanded` and angular animations being `void`, the animation from the
26 * `expanded`'s effective styles (though in a `void` animation state) to the collapsed state will
27 * occur as expected.
28 *
29 * Angular Bug: https://github.com/angular/angular/issues/18847
30 *
31 * @docs-private
32 */
33export declare const matExpansionAnimations: {
34 readonly indicatorRotate: AnimationTriggerMetadata;
35 readonly bodyExpansion: AnimationTriggerMetadata;
36};
Note: See TracBrowser for help on using the repository browser.