UNPKG

3.52 kBTypeScriptView Raw
1import { ModuleWithProviders, TemplateRef, ViewContainerRef } from '@angular/core';
2import { CdkPortal, CdkPortalOutlet, ComponentPortal, Portal, PortalInjector, TemplatePortal } from '@angular/cdk/portal';
3import { ComponentType, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayPositionBuilder, OverlayRef, PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
4import { NbScrollStrategyOptions } from '../adapter/block-scroll-strategy-adapter';
5import * as i0 from "@angular/core";
6import * as i1 from "@angular/cdk/overlay";
7import * as i2 from "@angular/cdk/portal";
8export declare class NbPortalDirective extends CdkPortal {
9 static ɵfac: i0.ɵɵFactoryDeclaration<NbPortalDirective, never>;
10 static ɵdir: i0.ɵɵDirectiveDeclaration<NbPortalDirective, "[nbPortal]", never, {}, {}, never, never, false, never>;
11}
12export declare class NbPortalOutletDirective extends CdkPortalOutlet {
13 static ɵfac: i0.ɵɵFactoryDeclaration<NbPortalOutletDirective, never>;
14 static ɵdir: i0.ɵɵDirectiveDeclaration<NbPortalOutletDirective, "[nbPortalOutlet]", never, {}, {}, never, never, false, never>;
15}
16export declare class NbComponentPortal<T = any> extends ComponentPortal<T> {
17}
18export declare class NbOverlay extends Overlay {
19 scrollStrategies: NbScrollStrategyOptions;
20 static ɵfac: i0.ɵɵFactoryDeclaration<NbOverlay, never>;
21 static ɵprov: i0.ɵɵInjectableDeclaration<NbOverlay>;
22}
23export declare class NbOverlayPositionBuilder extends OverlayPositionBuilder {
24 static ɵfac: i0.ɵɵFactoryDeclaration<NbOverlayPositionBuilder, never>;
25 static ɵprov: i0.ɵɵInjectableDeclaration<NbOverlayPositionBuilder>;
26}
27export declare class NbTemplatePortal<T = any> extends TemplatePortal<T> {
28 constructor(template: TemplateRef<T>, viewContainerRef?: ViewContainerRef, context?: T);
29}
30export declare class NbOverlayContainer extends OverlayContainer {
31 static ɵfac: i0.ɵɵFactoryDeclaration<NbOverlayContainer, never>;
32 static ɵprov: i0.ɵɵInjectableDeclaration<NbOverlayContainer>;
33}
34export declare class NbFlexibleConnectedPositionStrategy extends FlexibleConnectedPositionStrategy {
35}
36export declare class NbPortalInjector extends PortalInjector {
37}
38export type NbPortal<T = any> = Portal<T>;
39export type NbOverlayRef = OverlayRef;
40export type NbComponentType<T = any> = ComponentType<T>;
41export type NbPositionStrategy = PositionStrategy;
42export type NbConnectedPosition = ConnectedPosition;
43export type NbConnectedOverlayPositionChange = ConnectedOverlayPositionChange;
44export type NbConnectionPositionPair = ConnectionPositionPair;
45export type NbOverlayConfig = OverlayConfig;
46export type NbScrollStrategy = ScrollStrategy;
47/**
48 * This module helps us to keep all angular/cdk deps inside our cdk module via providing aliases.
49 * Approach will help us move cdk in separate npm package and refactor nebular/theme code.
50 * */
51export declare class NbCdkMappingModule {
52 static forRoot(): ModuleWithProviders<NbCdkMappingModule>;
53 static ɵfac: i0.ɵɵFactoryDeclaration<NbCdkMappingModule, never>;
54 static ɵmod: i0.ɵɵNgModuleDeclaration<NbCdkMappingModule, [typeof NbPortalDirective, typeof NbPortalOutletDirective], [typeof i1.OverlayModule, typeof i2.PortalModule], [typeof i1.OverlayModule, typeof i2.PortalModule, typeof NbPortalDirective, typeof NbPortalOutletDirective]>;
55 static ɵinj: i0.ɵɵInjectorDeclaration<NbCdkMappingModule>;
56}