UNPKG

1.47 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6import { ComponentRef, ElementRef, EmbeddedViewRef, OnDestroy, OnInit } from '@angular/core';
7import { NbComponentPortal, NbPortalOutletDirective, NbTemplatePortal } from '../cdk/overlay/mapping';
8import { NbFocusTrap, NbFocusTrapFactoryService } from '../cdk/a11y/focus-trap';
9import { NbDialogConfig } from './dialog-config';
10import * as i0 from "@angular/core";
11/**
12 * Container component for each dialog.
13 * All the dialogs will be attached to it.
14 * // TODO add animations
15 * */
16export declare class NbDialogContainerComponent implements OnInit, OnDestroy {
17 protected config: NbDialogConfig;
18 protected elementRef: ElementRef;
19 protected focusTrapFactory: NbFocusTrapFactoryService;
20 portalOutlet: NbPortalOutletDirective;
21 protected focusTrap: NbFocusTrap;
22 constructor(config: NbDialogConfig, elementRef: ElementRef, focusTrapFactory: NbFocusTrapFactoryService);
23 ngOnInit(): void;
24 ngOnDestroy(): void;
25 attachComponentPortal<T>(portal: NbComponentPortal<T>): ComponentRef<T>;
26 attachTemplatePortal<C>(portal: NbTemplatePortal<C>): EmbeddedViewRef<C>;
27 static ɵfac: i0.ɵɵFactoryDeclaration<NbDialogContainerComponent, never>;
28 static ɵcmp: i0.ɵɵComponentDeclaration<NbDialogContainerComponent, "nb-dialog-container", never, {}, {}, never, never, false, never>;
29}