UNPKG

1.19 kBTypeScriptView Raw
1import { ComponentFactoryResolver, ComponentRef, TemplateRef, Type } from '@angular/core';
2import { NbComponentType, NbOverlay, NbOverlayConfig, NbOverlayRef } from './mapping';
3import { NbScrollStrategyOptions } from '../adapter/block-scroll-strategy-adapter';
4import { NbLayoutDirectionService } from '../../../services/direction.service';
5import * as i0 from "@angular/core";
6export type NbOverlayContent = Type<any> | TemplateRef<any> | string;
7export declare function patch<T>(container: ComponentRef<T>, containerContext: Object): ComponentRef<T>;
8export declare function createContainer<T>(ref: NbOverlayRef, container: NbComponentType<T>, context: Object, componentFactoryResolver?: ComponentFactoryResolver): ComponentRef<T>;
9export declare class NbOverlayService {
10 protected overlay: NbOverlay;
11 protected layoutDirection: NbLayoutDirectionService;
12 constructor(overlay: NbOverlay, layoutDirection: NbLayoutDirectionService);
13 get scrollStrategies(): NbScrollStrategyOptions;
14 create(config?: NbOverlayConfig): NbOverlayRef;
15 static ɵfac: i0.ɵɵFactoryDeclaration<NbOverlayService, never>;
16 static ɵprov: i0.ɵɵInjectableDeclaration<NbOverlayService>;
17}