1 | import { ElementRef, SimpleChange, Type } from '@angular/core';
|
2 | import { Subject } from 'rxjs';
|
3 | import { NbTrigger, NbTriggerStrategy, NbTriggerStrategyBuilderService } from '../overlay-trigger';
|
4 | import { NbAdjustableConnectedPositionStrategy, NbAdjustment, NbPosition, NbPositionBuilderService } from '../overlay-position';
|
5 | import { NbRenderableContainer } from '../overlay-container';
|
6 | import { NbOverlayContent } from '../overlay-service';
|
7 | import { NbDynamicOverlay } from './dynamic-overlay';
|
8 | import { NbOverlayConfig } from '../mapping';
|
9 | import { NbLayoutDirectionService } from '../../../../services/direction.service';
|
10 | import * as i0 from "@angular/core";
|
11 | export declare class NbDynamicOverlayChange extends SimpleChange {
|
12 | constructor(previousValue: any, currentValue: any, firstChange?: boolean);
|
13 | isChanged(): boolean;
|
14 | }
|
15 | export declare class NbDynamicOverlayHandler {
|
16 | private positionBuilder;
|
17 | private triggerStrategyBuilder;
|
18 | private dynamicOverlayService;
|
19 | private directionService;
|
20 | protected _componentType: Type<NbRenderableContainer>;
|
21 | protected _host: ElementRef;
|
22 | protected _context: Object;
|
23 | protected _content: NbOverlayContent;
|
24 | protected _trigger: NbTrigger;
|
25 | protected _disabled: boolean;
|
26 | protected _position: NbPosition;
|
27 | protected _adjustment: NbAdjustment;
|
28 | protected _offset: number;
|
29 | protected _overlayConfig: NbOverlayConfig;
|
30 | protected dynamicOverlay: NbDynamicOverlay;
|
31 | protected triggerStrategy: NbTriggerStrategy;
|
32 | protected positionStrategy: NbAdjustableConnectedPositionStrategy;
|
33 | protected changes: {
|
34 | [key: string]: NbDynamicOverlayChange;
|
35 | };
|
36 | protected destroy$: Subject<void>;
|
37 | constructor(positionBuilder: NbPositionBuilderService, triggerStrategyBuilder: NbTriggerStrategyBuilderService, dynamicOverlayService: NbDynamicOverlay, directionService: NbLayoutDirectionService);
|
38 | host(host: ElementRef): this;
|
39 | trigger(trigger: NbTrigger): this;
|
40 | disabled(disabled: boolean): this;
|
41 | position(position: NbPosition): this;
|
42 | adjustment(adjustment: NbAdjustment): this;
|
43 | componentType(componentType: Type<NbRenderableContainer>): this;
|
44 | content(content: NbOverlayContent): this;
|
45 | context(context: {}): this;
|
46 | offset(offset: number): this;
|
47 | overlayConfig(overlayConfig: NbOverlayConfig): this;
|
48 | build(): NbDynamicOverlay;
|
49 | rebuild(): NbDynamicOverlay;
|
50 | connect(): void;
|
51 | disconnect(): void;
|
52 | destroy(): void;
|
53 | protected createPositionStrategy(): NbAdjustableConnectedPositionStrategy;
|
54 | protected subscribeOnTriggers(dynamicOverlay: NbDynamicOverlay): void;
|
55 | protected subscribeOnDirectionChange(): void;
|
56 | protected isContainerRerenderRequired(): boolean;
|
57 | protected isPositionStrategyUpdateRequired(): boolean;
|
58 | protected isTriggerStrategyUpdateRequired(): boolean;
|
59 | protected isComponentTypeUpdateRequired(): boolean;
|
60 | private isOverlayConfigUpdateRequired;
|
61 | protected isComponentTypeUpdated(): boolean;
|
62 | protected isContentUpdated(): boolean;
|
63 | protected isContextUpdated(): boolean;
|
64 | protected isAdjustmentUpdated(): boolean;
|
65 | protected isPositionUpdated(): boolean;
|
66 | protected isHostUpdated(): boolean;
|
67 | protected isTriggerUpdated(): boolean;
|
68 | protected isOffsetUpdated(): boolean;
|
69 | protected isOverlayConfigUpdated(): boolean;
|
70 | protected isDisabledUpdated(): boolean;
|
71 | protected clearChanges(): void;
|
72 | static ɵfac: i0.ɵɵFactoryDeclaration<NbDynamicOverlayHandler, never>;
|
73 | static ɵprov: i0.ɵɵInjectableDeclaration<NbDynamicOverlayHandler>;
|
74 | }
|