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