UNPKG

2.4 kBTypeScriptView Raw
1import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, EmbeddedViewRef, Injector, ViewContainerRef } from '@angular/core';
2import { NbPosition } from './overlay-position';
3import { NbComponentPortal, NbPortalInjector, NbPortalOutletDirective, NbTemplatePortal } from './mapping';
4import * as i0 from "@angular/core";
5export interface NbRenderableContainer {
6 /**
7 * A renderContent method renders content with provided context.
8 * Naturally, this job has to be done by ngOnChanges lifecycle hook, but
9 * ngOnChanges hook will be triggered only if we update content or context properties
10 * through template property binding syntax. But in our case we're updating these properties programmatically.
11 * */
12 renderContent(): any;
13}
14export declare class NbPositionedContainerComponent {
15 position: NbPosition;
16 get top(): boolean;
17 get topStart(): boolean;
18 get topEnd(): boolean;
19 get right(): boolean;
20 get endTop(): boolean;
21 get endBottom(): boolean;
22 get bottom(): boolean;
23 get bottomStart(): boolean;
24 get bottomEnd(): boolean;
25 get left(): boolean;
26 get startTop(): boolean;
27 get startBottom(): boolean;
28 static ɵfac: i0.ɵɵFactoryDeclaration<NbPositionedContainerComponent, never>;
29 static ɵcmp: i0.ɵɵComponentDeclaration<NbPositionedContainerComponent, "ng-component", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, false, never>;
30}
31export declare class NbOverlayContainerComponent {
32 protected vcr: ViewContainerRef;
33 protected injector: Injector;
34 private changeDetectorRef;
35 portalOutlet: NbPortalOutletDirective;
36 isAttached: boolean;
37 content: string;
38 constructor(vcr: ViewContainerRef, injector: Injector, changeDetectorRef: ChangeDetectorRef);
39 get isStringContent(): boolean;
40 attachComponentPortal<T>(portal: NbComponentPortal<T>, context?: Object): ComponentRef<T>;
41 attachTemplatePortal<C>(portal: NbTemplatePortal<C>): EmbeddedViewRef<C>;
42 attachStringContent(content: string): void;
43 detach(): void;
44 protected createChildInjector(cfr: ComponentFactoryResolver): NbPortalInjector;
45 static ɵfac: i0.ɵɵFactoryDeclaration<NbOverlayContainerComponent, never>;
46 static ɵcmp: i0.ɵɵComponentDeclaration<NbOverlayContainerComponent, "nb-overlay-container", never, {}, {}, never, never, false, never>;
47}