index.d.ts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import { M as MatDialogRef, a as MatDialogContainer } from '../dialog.d-B5HZULyo.js';
  2. export { A as AutoFocusTarget, h as DialogPosition, D as DialogRole, b as MAT_DIALOG_DATA, c as MAT_DIALOG_DEFAULT_OPTIONS, d as MAT_DIALOG_SCROLL_STRATEGY, f as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, e as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, g as MatDialog, i as MatDialogConfig, j as MatDialogState, _ as _closeDialogVia } from '../dialog.d-B5HZULyo.js';
  3. import * as i0 from '@angular/core';
  4. import { OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
  5. import * as i5 from '@angular/cdk/scrolling';
  6. import * as i1 from '@angular/cdk/dialog';
  7. import * as i2 from '@angular/cdk/overlay';
  8. import * as i3 from '@angular/cdk/portal';
  9. import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js';
  10. import '@angular/cdk/bidi';
  11. import '@angular/cdk/a11y';
  12. import 'rxjs';
  13. /**
  14. * Button that will close the current dialog.
  15. */
  16. declare class MatDialogClose implements OnInit, OnChanges {
  17. dialogRef: MatDialogRef<any, any>;
  18. private _elementRef;
  19. private _dialog;
  20. /** Screen-reader label for the button. */
  21. ariaLabel: string;
  22. /** Default to "button" to prevents accidental form submits. */
  23. type: 'submit' | 'button' | 'reset';
  24. /** Dialog close input. */
  25. dialogResult: any;
  26. _matDialogClose: any;
  27. constructor(...args: unknown[]);
  28. ngOnInit(): void;
  29. ngOnChanges(changes: SimpleChanges): void;
  30. _onButtonClick(event: MouseEvent): void;
  31. static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogClose, never>;
  32. static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogClose, "[mat-dialog-close], [matDialogClose]", ["matDialogClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "mat-dialog-close"; "required": false; }; "_matDialogClose": { "alias": "matDialogClose"; "required": false; }; }, {}, never, never, true, never>;
  33. }
  34. declare abstract class MatDialogLayoutSection implements OnInit, OnDestroy {
  35. protected _dialogRef: MatDialogRef<any, any>;
  36. private _elementRef;
  37. private _dialog;
  38. constructor(...args: unknown[]);
  39. protected abstract _onAdd(): void;
  40. protected abstract _onRemove(): void;
  41. ngOnInit(): void;
  42. ngOnDestroy(): void;
  43. static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogLayoutSection, never>;
  44. static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogLayoutSection, never, never, {}, {}, never, never, true, never>;
  45. }
  46. /**
  47. * Title of a dialog element. Stays fixed to the top of the dialog when scrolling.
  48. */
  49. declare class MatDialogTitle extends MatDialogLayoutSection {
  50. id: string;
  51. protected _onAdd(): void;
  52. protected _onRemove(): void;
  53. static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogTitle, never>;
  54. static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogTitle, "[mat-dialog-title], [matDialogTitle]", ["matDialogTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
  55. }
  56. /**
  57. * Scrollable content container of a dialog.
  58. */
  59. declare class MatDialogContent {
  60. static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContent, never>;
  61. static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i5.CdkScrollable; inputs: {}; outputs: {}; }]>;
  62. }
  63. /**
  64. * Container for the bottom action buttons in a dialog.
  65. * Stays fixed to the bottom when scrolling.
  66. */
  67. declare class MatDialogActions extends MatDialogLayoutSection {
  68. /**
  69. * Horizontal alignment of action buttons.
  70. */
  71. align?: 'start' | 'center' | 'end';
  72. protected _onAdd(): void;
  73. protected _onRemove(): void;
  74. static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogActions, never>;
  75. static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
  76. }
  77. declare class MatDialogModule {
  78. static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogModule, never>;
  79. static ɵmod: i0.ɵɵNgModuleDeclaration<MatDialogModule, never, [typeof i1.DialogModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof MatCommonModule, typeof MatDialogContainer, typeof MatDialogClose, typeof MatDialogTitle, typeof MatDialogActions, typeof MatDialogContent], [typeof MatCommonModule, typeof MatDialogContainer, typeof MatDialogClose, typeof MatDialogTitle, typeof MatDialogActions, typeof MatDialogContent]>;
  80. static ɵinj: i0.ɵɵInjectorDeclaration<MatDialogModule>;
  81. }
  82. /**
  83. * Default parameters for the animation for backwards compatibility.
  84. * @docs-private
  85. * @deprecated Will stop being exported.
  86. * @breaking-change 21.0.0
  87. */
  88. declare const _defaultParams: {
  89. params: {
  90. enterAnimationDuration: string;
  91. exitAnimationDuration: string;
  92. };
  93. };
  94. /**
  95. * Animations used by MatDialog.
  96. * @docs-private
  97. * @deprecated No longer used, will be removed.
  98. * @breaking-change 21.0.0
  99. */
  100. declare const matDialogAnimations: {
  101. readonly dialogContainer: any;
  102. };
  103. export { MatDialogActions, MatDialogClose, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle, _defaultParams, matDialogAnimations };