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 _ngZone;
|
73 | private _nativeElement;
|
74 | private _destroyCloseHandlers$;
|
75 | private _zoneSubscription;
|
76 | private _bodyContainer;
|
77 | private _positioning;
|
78 | private _menu;
|
79 | private _anchor;
|
80 | |
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 | autoClose: boolean | "inside" | "outside";
|
89 | |
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 | dropdownClass: string;
|
100 | |
101 |
|
102 |
|
103 | _open: boolean;
|
104 | |
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 | placement: PlacementArray;
|
112 | |
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 | popperOptions: (options: Partial<import("@popperjs/core").Options>) => Partial<import("@popperjs/core").Options>;
|
119 | |
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 | container: null | 'body';
|
126 | |
127 |
|
128 |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 | display: 'dynamic' | 'static';
|
135 | |
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 | openChange: EventEmitter<boolean>;
|
143 | ngOnInit(): void;
|
144 | ngAfterContentInit(): void;
|
145 | ngOnChanges(changes: SimpleChanges): void;
|
146 | |
147 |
|
148 |
|
149 | isOpen(): boolean;
|
150 | |
151 |
|
152 |
|
153 | open(): void;
|
154 | private _setCloseHandlers;
|
155 | |
156 |
|
157 |
|
158 | close(): void;
|
159 | |
160 |
|
161 |
|
162 | toggle(): void;
|
163 | ngOnDestroy(): void;
|
164 | onKeyDown(event: KeyboardEvent): void;
|
165 | private _isDropup;
|
166 | private _isEventFromToggle;
|
167 | private _getMenuElements;
|
168 | private _positionMenu;
|
169 | private _getFirstPlacement;
|
170 | private _resetContainer;
|
171 | private _applyContainer;
|
172 | private _applyCustomDropdownClass;
|
173 | private _applyPlacementClasses;
|
174 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDropdown, never>;
|
175 | 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>;
|
176 | }
|