overlay-container.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. */
  8. import { InjectionToken, OnDestroy, Optional } from '@angular/core';
  9. /** Container inside which all overlays will render. */
  10. export declare class OverlayContainer implements OnDestroy {
  11. protected _containerElement: HTMLElement;
  12. protected _document: Document;
  13. constructor(document: any);
  14. ngOnDestroy(): void;
  15. /**
  16. * This method returns the overlay container element. It will lazily
  17. * create the element the first time it is called to facilitate using
  18. * the container in non-browser environments.
  19. * @returns the container element
  20. */
  21. getContainerElement(): HTMLElement;
  22. /**
  23. * Create the overlay container element, which is simply a div
  24. * with the 'cdk-overlay-container' class on the document body.
  25. */
  26. protected _createContainer(): void;
  27. }
  28. /** @docs-private @deprecated @breaking-change 8.0.0 */
  29. export declare function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer: OverlayContainer, _document: any): OverlayContainer;
  30. /** @docs-private @deprecated @breaking-change 8.0.0 */
  31. export declare const OVERLAY_CONTAINER_PROVIDER: {
  32. provide: typeof OverlayContainer;
  33. deps: (Optional[] | InjectionToken<any>)[];
  34. useFactory: typeof OVERLAY_CONTAINER_PROVIDER_FACTORY;
  35. };