1 | import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, AfterContentInit, OnDestroy, QueryList, Renderer2, SimpleChanges, OnChanges } from '@angular/core';
|
2 | import { Placement, PlacementArray } from '../util/positioning';
|
3 | import { Options } from '@popperjs/core';
|
4 | import { NgbRTL } from '../util/rtl';
|
5 | import { NgbDropdownConfig } from './dropdown-config';
|
6 | import * as i0 from "@angular/core";
|
7 | export declare class NgbNavbar {
|
8 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavbar, never>;
|
9 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavbar, ".navbar", never, {}, {}, never, never, false>;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare class NgbDropdownItem {
|
18 | elementRef: ElementRef<HTMLElement>;
|
19 | private _renderer;
|
20 | static ngAcceptInputType_disabled: boolean | '';
|
21 | private _disabled;
|
22 | set disabled(value: boolean);
|
23 | get disabled(): boolean;
|
24 | constructor(elementRef: ElementRef<HTMLElement>, _renderer: Renderer2);
|
25 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDropdownItem, never>;
|
26 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbDropdownItem, "[ngbDropdownItem]", never, { "disabled": "disabled"; }, {}, never, never, false>;
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 | export declare class NgbDropdownMenu {
|
32 | dropdown: NgbDropdown;
|
33 | nativeElement: HTMLElement;
|
34 | placement: Placement | null;
|
35 | isOpen: boolean;
|
36 | menuItems: QueryList<NgbDropdownItem>;
|
37 | constructor(dropdown: NgbDropdown, _elementRef: ElementRef<HTMLElement>);
|
38 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDropdownMenu, never>;
|
39 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbDropdownMenu, "[ngbDropdownMenu]", never, {}, {}, ["menuItems"], never, false>;
|
40 | }
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare class NgbDropdownAnchor {
|
51 | dropdown: NgbDropdown;
|
52 | nativeElement: HTMLElement;
|
53 | constructor(dropdown: NgbDropdown, _elementRef: ElementRef<HTMLElement>);
|
54 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDropdownAnchor, never>;
|
55 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbDropdownAnchor, "[ngbDropdownAnchor]", never, {}, {}, never, never, false>;
|
56 | }
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | export declare class NgbDropdownToggle extends NgbDropdownAnchor {
|
63 | constructor(dropdown: NgbDropdown, elementRef: ElementRef<HTMLElement>);
|
64 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDropdownToggle, never>;
|
65 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbDropdownToggle, "[ngbDropdownToggle]", never, {}, {}, never, never, false>;
|
66 | }
|
67 |
|
68 |
|
69 |
|
70 | export declare class NgbDropdown implements AfterContentInit, OnChanges, OnDestroy {
|
71 | private _changeDetector;
|
72 | private _document;
|
73 | private _ngZone;
|
74 | private _elementRef;
|
75 | private _renderer;
|
76 | static ngAcceptInputType_autoClose: boolean | string;
|
77 | static ngAcceptInputType_display: string;
|
78 | private _destroyCloseHandlers$;
|
79 | private _zoneSubscription;
|
80 | private _bodyContainer;
|
81 | private _positioning;
|
82 | private _menu;
|
83 | private _anchor;
|
84 | |
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | autoClose: boolean | 'outside' | 'inside';
|
93 | |
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 | dropdownClass: string;
|
104 | |
105 |
|
106 |
|
107 | _open: boolean;
|
108 | |
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 | placement: PlacementArray;
|
116 | |
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 | popperOptions: (options: Partial<Options>) => Partial<Options>;
|
123 | |
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 | container: null | 'body';
|
130 | |
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 | display: 'dynamic' | 'static';
|
139 | |
140 |
|
141 |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 | openChange: EventEmitter<boolean>;
|
147 | constructor(_changeDetector: ChangeDetectorRef, rtl: NgbRTL, config: NgbDropdownConfig, _document: any, _ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _renderer: Renderer2, ngbNavbar: NgbNavbar);
|
148 | ngAfterContentInit(): void;
|
149 | ngOnChanges(changes: SimpleChanges): void;
|
150 | /**
|
151 | * Checks if the dropdown menu is open.
|
152 | */
|
153 | isOpen(): boolean;
|
154 | /**
|
155 | * Opens the dropdown menu.
|
156 | */
|
157 | open(): void;
|
158 | private _setCloseHandlers;
|
159 | /**
|
160 | * Closes the dropdown menu.
|
161 | */
|
162 | close(): void;
|
163 | /**
|
164 | * Toggles the dropdown menu.
|
165 | */
|
166 | toggle(): void;
|
167 | ngOnDestroy(): void;
|
168 | onKeyDown(event: KeyboardEvent): void;
|
169 | private _isDropup;
|
170 | private _isEventFromToggle;
|
171 | private _getMenuElements;
|
172 | private _positionMenu;
|
173 | private _getFirstPlacement;
|
174 | private _resetContainer;
|
175 | private _applyContainer;
|
176 | private _applyCustomDropdownClass;
|
177 | private _applyPlacementClasses;
|
178 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDropdown, [null, null, null, null, null, null, null, { optional: true; }]>;
|
179 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbDropdown, "[ngbDropdown]", ["ngbDropdown"], { "autoClose": "autoClose"; "dropdownClass": "dropdownClass"; "_open": "open"; "placement": "placement"; "popperOptions": "popperOptions"; "container": "container"; "display": "display"; }, { "openChange": "openChange"; }, ["_menu", "_anchor"], never, false>;
|
180 | }
|