source: trip-planner-front/node_modules/@angular/material/esm2015/select/select-animations.js@ 84d0fbb

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

initial commit

  • Property mode set to 100644
File size: 6.5 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 { animate, animateChild, query, state, style, transition, trigger, } from '@angular/animations';
9/**
10 * The following are all the animations for the mat-select component, with each
11 * const containing the metadata for one animation.
12 *
13 * The values below match the implementation of the AngularJS Material mat-select animation.
14 * @docs-private
15 */
16export const matSelectAnimations = {
17 /**
18 * This animation ensures the select's overlay panel animation (transformPanel) is called when
19 * closing the select.
20 * This is needed due to https://github.com/angular/angular/issues/23302
21 */
22 transformPanelWrap: trigger('transformPanelWrap', [
23 transition('* => void', query('@transformPanel', [animateChild()], { optional: true }))
24 ]),
25 /**
26 * This animation transforms the select's overlay panel on and off the page.
27 *
28 * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it
29 * up to 100% on the Y axis, fades in its border, and translates slightly up and to the
30 * side to ensure the option text correctly overlaps the trigger text.
31 *
32 * When the panel is removed from the DOM, it simply fades out linearly.
33 */
34 transformPanel: trigger('transformPanel', [
35 state('void', style({
36 transform: 'scaleY(0.8)',
37 minWidth: '100%',
38 opacity: 0
39 })),
40 state('showing', style({
41 opacity: 1,
42 minWidth: 'calc(100% + 32px)',
43 transform: 'scaleY(1)'
44 })),
45 state('showing-multiple', style({
46 opacity: 1,
47 minWidth: 'calc(100% + 64px)',
48 transform: 'scaleY(1)'
49 })),
50 transition('void => *', animate('120ms cubic-bezier(0, 0, 0.2, 1)')),
51 transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 })))
52 ])
53};
54//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWFuaW1hdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291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