@angular/material
Version:
Angular Material
124 lines (121 loc) • 4.81 kB
JavaScript
export { e as MAT_DIALOG_DATA, f as MAT_DIALOG_DEFAULT_OPTIONS, g as MAT_DIALOG_SCROLL_STRATEGY, i as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, h as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, j as MatDialog, M as MatDialogActions, a as MatDialogClose, k as MatDialogConfig, d as MatDialogContainer, c as MatDialogContent, n as MatDialogModule, m as MatDialogRef, l as MatDialogState, b as MatDialogTitle, _ as _closeDialogVia } from './module-c1a8b4bb.mjs';
import '@angular/cdk/dialog';
import '@angular/cdk/overlay';
import '@angular/cdk/portal';
import '@angular/core';
import '@angular/cdk/coercion';
import 'rxjs';
import 'rxjs/operators';
import '@angular/cdk/keycodes';
import '@angular/cdk/a11y';
import '@angular/cdk/scrolling';
import './common-module-5a9c16bb.mjs';
import '@angular/cdk/bidi';
/**
* Default parameters for the animation for backwards compatibility.
* @docs-private
* @deprecated Will stop being exported.
* @breaking-change 21.0.0
*/
const _defaultParams = {
params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' },
};
/**
* Animations used by MatDialog.
* @docs-private
* @deprecated No longer used, will be removed.
* @breaking-change 21.0.0
*/
const matDialogAnimations = {
// Represents:
// trigger('dialogContainer', [
// // Note: The `enter` animation transitions to `transform: none`, because for some reason
// // specifying the transform explicitly, causes IE both to blur the dialog content and
// // decimate the animation performance. Leaving it as `none` solves both issues.
// state('void, exit', style({opacity: 0, transform: 'scale(0.7)'})),
// state('enter', style({transform: 'none'})),
// transition(
// '* => enter',
// group([
// animate(
// '{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)',
// style({transform: 'none', opacity: 1}),
// ),
// query('@*', animateChild(), {optional: true}),
// ]),
// _defaultParams,
// ),
// transition(
// '* => void, * => exit',
// group([
// animate('{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)', style({opacity: 0})),
// query('@*', animateChild(), {optional: true}),
// ]),
// _defaultParams,
// ),
// ])
/** Animation that is applied on the dialog container by default. */
dialogContainer: {
type: 7,
name: 'dialogContainer',
definitions: [
{
type: 0,
name: 'void, exit',
styles: { type: 6, styles: { opacity: 0, transform: 'scale(0.7)' }, offset: null },
},
{
type: 0,
name: 'enter',
styles: { type: 6, styles: { transform: 'none' }, offset: null },
},
{
type: 1,
expr: '* => enter',
animation: {
type: 3,
steps: [
{
type: 4,
styles: { type: 6, styles: { transform: 'none', opacity: 1 }, offset: null },
timings: '{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)',
},
{
type: 11,
selector: '@*',
animation: { type: 9, options: null },
options: { optional: true },
},
],
options: null,
},
options: { params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' } },
},
{
type: 1,
expr: '* => void, * => exit',
animation: {
type: 3,
steps: [
{
type: 4,
styles: { type: 6, styles: { opacity: 0 }, offset: null },
timings: '{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)',
},
{
type: 11,
selector: '@*',
animation: { type: 9, options: null },
options: { optional: true },
},
],
options: null,
},
options: { params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' } },
},
],
options: {},
},
};
export { _defaultParams, matDialogAnimations };
//# sourceMappingURL=dialog.mjs.map