index.d.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
  2. import { ChangeDetectorRef } from '@angular/core';
  3. import { _closeDialogVia as _closeLegacyDialogVia } from '@angular/material/dialog';
  4. import { ElementRef } from '@angular/core';
  5. import { FocusMonitor } from '@angular/cdk/a11y';
  6. import { FocusTrapFactory } from '@angular/cdk/a11y';
  7. import * as i0 from '@angular/core';
  8. import * as i3 from '@angular/cdk/dialog';
  9. import * as i4 from '@angular/cdk/overlay';
  10. import * as i5 from '@angular/cdk/portal';
  11. import * as i6 from '@angular/material/core';
  12. import { InjectionToken } from '@angular/core';
  13. import { Injector } from '@angular/core';
  14. import { InteractivityChecker } from '@angular/cdk/a11y';
  15. import { AutoFocusTarget as LegacyAutoFocusTarget } from '@angular/material/dialog';
  16. import { DialogPosition as LegacyDialogPosition } from '@angular/material/dialog';
  17. import { DialogRole as LegacyDialogRole } from '@angular/material/dialog';
  18. import { Location as Location_2 } from '@angular/common';
  19. import { MAT_DIALOG_SCROLL_STRATEGY_FACTORY as MAT_LEGACY_DIALOG_SCROLL_STRATEGY_FACTORY } from '@angular/material/dialog';
  20. import { MatDialogConfig } from '@angular/material/dialog';
  21. import { MatDialogRef } from '@angular/material/dialog';
  22. import { matDialogAnimations as matLegacyDialogAnimations } from '@angular/material/dialog';
  23. import { _MatDialogBase as _MatLegacyDialogBase } from '@angular/material/dialog';
  24. import { _MatDialogContainerBase as _MatLegacyDialogContainerBase } from '@angular/material/dialog';
  25. import { MatDialogState as MatLegacyDialogState } from '@angular/material/dialog';
  26. import { NgZone } from '@angular/core';
  27. import { OnChanges } from '@angular/core';
  28. import { OnInit } from '@angular/core';
  29. import { Overlay } from '@angular/cdk/overlay';
  30. import { OverlayContainer } from '@angular/cdk/overlay';
  31. import { OverlayRef } from '@angular/cdk/overlay';
  32. import { ScrollStrategy } from '@angular/cdk/overlay';
  33. import { SimpleChanges } from '@angular/core';
  34. export { _closeLegacyDialogVia }
  35. declare namespace i1 {
  36. export {
  37. MatLegacyDialogContainer
  38. }
  39. }
  40. declare namespace i2 {
  41. export {
  42. MatLegacyDialogClose,
  43. MatLegacyDialogTitle,
  44. MatLegacyDialogContent,
  45. MatLegacyDialogActions
  46. }
  47. }
  48. export { LegacyAutoFocusTarget }
  49. export { LegacyDialogPosition }
  50. export { LegacyDialogRole }
  51. /**
  52. * Injection token that can be used to access the data that was passed in to a dialog.
  53. * @deprecated Use `MAT_DIALOG_DATA` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  54. * @breaking-change 17.0.0
  55. */
  56. export declare const MAT_LEGACY_DIALOG_DATA: InjectionToken<any>;
  57. /**
  58. * Injection token that can be used to specify default dialog options.
  59. * @deprecated Use `MAT_DIALOG_DEFAULT_OPTIONS` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  60. * @breaking-change 17.0.0
  61. */
  62. export declare const MAT_LEGACY_DIALOG_DEFAULT_OPTIONS: InjectionToken<MatLegacyDialogConfig<any>>;
  63. /**
  64. * Injection token that determines the scroll handling while the dialog is open.
  65. * @deprecated Use `MAT_DIALOG_SCROLL_STRATEGY` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  66. * @breaking-change 17.0.0
  67. */
  68. export declare const MAT_LEGACY_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
  69. export { MAT_LEGACY_DIALOG_SCROLL_STRATEGY_FACTORY }
  70. /**
  71. * @docs-private
  72. * @deprecated Use `MAT_DIALOG_SCROLL_STRATEGY_PROVIDER` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  73. * @breaking-change 17.0.0
  74. */
  75. export declare const MAT_LEGACY_DIALOG_SCROLL_STRATEGY_PROVIDER: {
  76. provide: InjectionToken<() => ScrollStrategy>;
  77. deps: (typeof Overlay)[];
  78. useFactory: typeof MAT_LEGACY_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
  79. };
  80. /**
  81. * @docs-private
  82. * @deprecated Use `MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  83. * @breaking-change 17.0.0
  84. */
  85. export declare function MAT_LEGACY_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
  86. /**
  87. * Service to open Material Design modal dialogs.
  88. * @deprecated Use `MatDialog` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  89. * @breaking-change 17.0.0
  90. */
  91. export declare class MatLegacyDialog extends _MatLegacyDialogBase<MatLegacyDialogContainer> {
  92. protected dialogConfigClass: typeof MatLegacyDialogConfig;
  93. constructor(overlay: Overlay, injector: Injector,
  94. /**
  95. * @deprecated `_location` parameter to be removed.
  96. * @breaking-change 10.0.0
  97. */
  98. _location: Location_2, defaultOptions: MatLegacyDialogConfig, scrollStrategy: any, parentDialog: MatLegacyDialog,
  99. /**
  100. * @deprecated No longer used. To be removed.
  101. * @breaking-change 15.0.0
  102. */
  103. overlayContainer: OverlayContainer,
  104. /**
  105. * @deprecated No longer used. To be removed.
  106. * @breaking-change 14.0.0
  107. */
  108. animationMode?: 'NoopAnimations' | 'BrowserAnimations');
  109. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialog, [null, null, { optional: true; }, { optional: true; }, null, { optional: true; skipSelf: true; }, null, { optional: true; }]>;
  110. static ɵprov: i0.ɵɵInjectableDeclaration<MatLegacyDialog>;
  111. }
  112. /**
  113. * Container for the bottom action buttons in a dialog.
  114. * Stays fixed to the bottom when scrolling.
  115. * @deprecated Use `MatDialogActions` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  116. * @breaking-change 17.0.0
  117. */
  118. export declare class MatLegacyDialogActions {
  119. /**
  120. * Horizontal alignment of action buttons.
  121. */
  122. align?: 'start' | 'center' | 'end';
  123. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialogActions, never>;
  124. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, { "align": { "alias": "align"; "required": false; }; }, {}, never, never, false, never>;
  125. }
  126. export { matLegacyDialogAnimations }
  127. export { _MatLegacyDialogBase }
  128. /**
  129. * Button that will close the current dialog.
  130. * @deprecated Use `MatDialogClose` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  131. * @breaking-change 17.0.0
  132. */
  133. export declare class MatLegacyDialogClose implements OnInit, OnChanges {
  134. /**
  135. * Reference to the containing dialog.
  136. * @deprecated `dialogRef` property to become private.
  137. * @breaking-change 13.0.0
  138. */
  139. dialogRef: MatLegacyDialogRef<any>;
  140. private _elementRef;
  141. private _dialog;
  142. /** Screen reader label for the button. */
  143. ariaLabel: string;
  144. /** Default to "button" to prevents accidental form submits. */
  145. type: 'submit' | 'button' | 'reset';
  146. /** Dialog close input. */
  147. dialogResult: any;
  148. _matDialogClose: any;
  149. constructor(
  150. /**
  151. * Reference to the containing dialog.
  152. * @deprecated `dialogRef` property to become private.
  153. * @breaking-change 13.0.0
  154. */
  155. dialogRef: MatLegacyDialogRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: MatLegacyDialog);
  156. ngOnInit(): void;
  157. ngOnChanges(changes: SimpleChanges): void;
  158. _onButtonClick(event: MouseEvent): void;
  159. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialogClose, [{ optional: true; }, null, null]>;
  160. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyDialogClose, "[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, false, never>;
  161. }
  162. /**
  163. * @deprecated Use `MatDialogConfig` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  164. * @breaking-change 17.0.0
  165. */
  166. export declare class MatLegacyDialogConfig<D = any> extends MatDialogConfig<D> {
  167. /** Duration of the enter animation. Has to be a valid CSS value (e.g. 100ms). */
  168. enterAnimationDuration?: string;
  169. /** Duration of the exit animation. Has to be a valid CSS value (e.g. 50ms). */
  170. exitAnimationDuration?: string;
  171. }
  172. /**
  173. * Internal component that wraps user-provided dialog content.
  174. * Animation is based on https://material.io/guidelines/motion/choreography.html.
  175. * @docs-private
  176. * @deprecated Use `MatDialogContainer` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  177. * @breaking-change 17.0.0
  178. */
  179. export declare class MatLegacyDialogContainer extends _MatLegacyDialogContainerBase {
  180. private _changeDetectorRef;
  181. /** State of the dialog animation. */
  182. _state: 'void' | 'enter' | 'exit';
  183. /** Callback, invoked whenever an animation on the host completes. */
  184. _onAnimationDone({ toState, totalTime }: AnimationEvent_2): void;
  185. /** Callback, invoked when an animation on the host starts. */
  186. _onAnimationStart({ toState, totalTime }: AnimationEvent_2): void;
  187. /** Starts the dialog exit animation. */
  188. _startExitAnimation(): void;
  189. constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, document: any, dialogConfig: MatLegacyDialogConfig, checker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, _changeDetectorRef: ChangeDetectorRef, focusMonitor?: FocusMonitor);
  190. _getAnimationState(): {
  191. value: "void" | "enter" | "exit";
  192. params: {
  193. enterAnimationDuration: string | number;
  194. exitAnimationDuration: string | number;
  195. };
  196. };
  197. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialogContainer, [null, null, { optional: true; }, null, null, null, null, null, null]>;
  198. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyDialogContainer, "mat-dialog-container", never, {}, {}, never, never, false, never>;
  199. }
  200. export { _MatLegacyDialogContainerBase }
  201. /**
  202. * Scrollable content container of a dialog.
  203. * @deprecated Use `MatDialogContent` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  204. * @breaking-change 17.0.0
  205. */
  206. export declare class MatLegacyDialogContent {
  207. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialogContent, never>;
  208. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, false, never>;
  209. }
  210. /**
  211. * @deprecated Use `MatDialogModule` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  212. * @breaking-change 17.0.0
  213. */
  214. export declare class MatLegacyDialogModule {
  215. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialogModule, never>;
  216. static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyDialogModule, [typeof i1.MatLegacyDialogContainer, typeof i2.MatLegacyDialogClose, typeof i2.MatLegacyDialogTitle, typeof i2.MatLegacyDialogActions, typeof i2.MatLegacyDialogContent], [typeof i3.DialogModule, typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.MatCommonModule], [typeof i1.MatLegacyDialogContainer, typeof i2.MatLegacyDialogClose, typeof i2.MatLegacyDialogTitle, typeof i2.MatLegacyDialogContent, typeof i2.MatLegacyDialogActions, typeof i6.MatCommonModule]>;
  217. static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyDialogModule>;
  218. }
  219. /**
  220. * Reference to a dialog opened via the MatDialog service.
  221. * @deprecated Use `MatDialogRef` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  222. * @breaking-change 17.0.0
  223. */
  224. export declare class MatLegacyDialogRef<T, R = any> extends MatDialogRef<T, R> {
  225. }
  226. export { MatLegacyDialogState }
  227. /**
  228. * Title of a dialog element. Stays fixed to the top of the dialog when scrolling.
  229. * @deprecated Use `MatDialogTitle` from `@angular/material/dialog` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  230. * @breaking-change 17.0.0
  231. */
  232. export declare class MatLegacyDialogTitle implements OnInit {
  233. private _dialogRef;
  234. private _elementRef;
  235. private _dialog;
  236. /** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
  237. id: string;
  238. constructor(_dialogRef: MatLegacyDialogRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: MatLegacyDialog);
  239. ngOnInit(): void;
  240. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyDialogTitle, [{ optional: true; }, null, null]>;
  241. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyDialogTitle, "[mat-dialog-title], [matDialogTitle]", ["matDialogTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
  242. }
  243. export { }