dialog.mjs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. 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-BnDTus5c.mjs';
  2. import '@angular/cdk/dialog';
  3. import '@angular/cdk/overlay';
  4. import '@angular/cdk/portal';
  5. import '@angular/core';
  6. import '@angular/cdk/coercion';
  7. import 'rxjs';
  8. import 'rxjs/operators';
  9. import '@angular/cdk/keycodes';
  10. import '@angular/cdk/a11y';
  11. import '@angular/cdk/scrolling';
  12. import './common-module-WayjW0Pb.mjs';
  13. import '@angular/cdk/bidi';
  14. /**
  15. * Default parameters for the animation for backwards compatibility.
  16. * @docs-private
  17. * @deprecated Will stop being exported.
  18. * @breaking-change 21.0.0
  19. */
  20. const _defaultParams = {
  21. params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' },
  22. };
  23. /**
  24. * Animations used by MatDialog.
  25. * @docs-private
  26. * @deprecated No longer used, will be removed.
  27. * @breaking-change 21.0.0
  28. */
  29. const matDialogAnimations = {
  30. // Represents:
  31. // trigger('dialogContainer', [
  32. // // Note: The `enter` animation transitions to `transform: none`, because for some reason
  33. // // specifying the transform explicitly, causes IE both to blur the dialog content and
  34. // // decimate the animation performance. Leaving it as `none` solves both issues.
  35. // state('void, exit', style({opacity: 0, transform: 'scale(0.7)'})),
  36. // state('enter', style({transform: 'none'})),
  37. // transition(
  38. // '* => enter',
  39. // group([
  40. // animate(
  41. // '{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)',
  42. // style({transform: 'none', opacity: 1}),
  43. // ),
  44. // query('@*', animateChild(), {optional: true}),
  45. // ]),
  46. // _defaultParams,
  47. // ),
  48. // transition(
  49. // '* => void, * => exit',
  50. // group([
  51. // animate('{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)', style({opacity: 0})),
  52. // query('@*', animateChild(), {optional: true}),
  53. // ]),
  54. // _defaultParams,
  55. // ),
  56. // ])
  57. /** Animation that is applied on the dialog container by default. */
  58. dialogContainer: {
  59. type: 7,
  60. name: 'dialogContainer',
  61. definitions: [
  62. {
  63. type: 0,
  64. name: 'void, exit',
  65. styles: { type: 6, styles: { opacity: 0, transform: 'scale(0.7)' }, offset: null },
  66. },
  67. {
  68. type: 0,
  69. name: 'enter',
  70. styles: { type: 6, styles: { transform: 'none' }, offset: null },
  71. },
  72. {
  73. type: 1,
  74. expr: '* => enter',
  75. animation: {
  76. type: 3,
  77. steps: [
  78. {
  79. type: 4,
  80. styles: { type: 6, styles: { transform: 'none', opacity: 1 }, offset: null },
  81. timings: '{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)',
  82. },
  83. {
  84. type: 11,
  85. selector: '@*',
  86. animation: { type: 9, options: null },
  87. options: { optional: true },
  88. },
  89. ],
  90. options: null,
  91. },
  92. options: { params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' } },
  93. },
  94. {
  95. type: 1,
  96. expr: '* => void, * => exit',
  97. animation: {
  98. type: 3,
  99. steps: [
  100. {
  101. type: 4,
  102. styles: { type: 6, styles: { opacity: 0 }, offset: null },
  103. timings: '{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)',
  104. },
  105. {
  106. type: 11,
  107. selector: '@*',
  108. animation: { type: 9, options: null },
  109. options: { optional: true },
  110. },
  111. ],
  112. options: null,
  113. },
  114. options: { params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' } },
  115. },
  116. ],
  117. options: {},
  118. },
  119. };
  120. export { _defaultParams, matDialogAnimations };
  121. //# sourceMappingURL=dialog.mjs.map