1 | import { ApplicationRef, ComponentFactoryResolver } from '@angular/core';
|
2 | import { ToastContainerDirective } from '../toastr/toast.directive';
|
3 | import { OverlayContainer } from './overlay-container';
|
4 | import { OverlayRef } from './overlay-ref';
|
5 | import * as i0 from "@angular/core";
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare class Overlay {
|
15 | private _overlayContainer;
|
16 | private _componentFactoryResolver;
|
17 | private _appRef;
|
18 | private _document;
|
19 | private _paneElements;
|
20 | constructor(_overlayContainer: OverlayContainer, _componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _document: any);
|
21 | /**
|
22 | * Creates an overlay.
|
23 | * @returns A reference to the created overlay.
|
24 | */
|
25 | create(positionClass?: string, overlayContainer?: ToastContainerDirective): OverlayRef;
|
26 | getPaneElement(positionClass?: string, overlayContainer?: ToastContainerDirective): HTMLElement;
|
27 | /**
|
28 | * Creates the DOM element for an overlay and appends it to the overlay container.
|
29 | * @returns Newly-created pane element
|
30 | */
|
31 | private _createPaneElement;
|
32 | /**
|
33 | * Create a DomPortalHost into which the overlay content can be loaded.
|
34 | * @param pane The DOM element to turn into a portal host.
|
35 | * @returns A portal host for the given DOM element.
|
36 | */
|
37 | private _createPortalHost;
|
38 | /**
|
39 | * Creates an OverlayRef for an overlay in the given DOM element.
|
40 | * @param pane DOM element for the overlay
|
41 | */
|
42 | private _createOverlayRef;
|
43 | static ɵfac: i0.ɵɵFactoryDeclaration<Overlay, never>;
|
44 | static ɵprov: i0.ɵɵInjectableDeclaration<Overlay>;
|
45 | }
|