1 | import { AfterContentInit, DestroyRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
2 | import { Subject } from 'rxjs';
|
3 | import * as i0 from "@angular/core";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export interface NgbNavContentContext {
|
12 | |
13 |
|
14 |
|
15 | $implicit: boolean;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare class NgbNavContent {
|
23 | templateRef: TemplateRef<any>;
|
24 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavContent, never>;
|
25 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavContent, "ng-template[ngbNavContent]", never, {}, {}, never, never, true, never>;
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare class NgbNavItemRole {
|
33 | role: string;
|
34 | nav: NgbNav;
|
35 | constructor(role: string);
|
36 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavItemRole, [{ attribute: "role"; }]>;
|
37 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavItemRole, "[ngbNavItem]:not(ng-container)", never, {}, {}, never, never, true, never>;
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export declare class NgbNavItem implements OnInit {
|
45 | private _nav;
|
46 | private _nativeElement;
|
47 | |
48 |
|
49 |
|
50 |
|
51 | destroyOnHide: any;
|
52 | |
53 |
|
54 |
|
55 |
|
56 |
|
57 | disabled: boolean;
|
58 | |
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 | domId: string;
|
65 | |
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | _id: any;
|
73 | |
74 |
|
75 |
|
76 |
|
77 |
|
78 | shown: EventEmitter<void>;
|
79 | |
80 |
|
81 |
|
82 |
|
83 |
|
84 | hidden: EventEmitter<void>;
|
85 | contentTpl?: NgbNavContent;
|
86 | ngOnInit(): void;
|
87 | get active(): boolean;
|
88 | get id(): any;
|
89 | get panelDomId(): string;
|
90 | isPanelInDom(): boolean;
|
91 | |
92 |
|
93 |
|
94 | isNgContainer(): boolean;
|
95 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavItem, never>;
|
96 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavItem, "[ngbNavItem]", ["ngbNavItem"], { "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "domId": { "alias": "domId"; "required": false; }; "_id": { "alias": "ngbNavItem"; "required": false; }; }, { "shown": "shown"; "hidden": "hidden"; }, ["contentTpl"], never, true, never>;
|
97 | }
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 | export declare class NgbNav implements AfterContentInit, OnChanges {
|
104 | role: string;
|
105 | static ngAcceptInputType_orientation: string;
|
106 | static ngAcceptInputType_roles: boolean | string;
|
107 | private _config;
|
108 | private _cd;
|
109 | private _document;
|
110 | private _nativeElement;
|
111 | destroyRef: DestroyRef;
|
112 | _navigatingWithKeyboard: boolean;
|
113 | |
114 |
|
115 |
|
116 |
|
117 |
|
118 | activeId: any;
|
119 | |
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 | activeIdChange: EventEmitter<any>;
|
126 | |
127 |
|
128 |
|
129 |
|
130 |
|
131 | animation: boolean;
|
132 | |
133 |
|
134 |
|
135 |
|
136 | destroyOnHide: boolean;
|
137 | |
138 |
|
139 |
|
140 |
|
141 |
|
142 | orientation: "horizontal" | "vertical";
|
143 | |
144 |
|
145 |
|
146 |
|
147 |
|
148 | roles: false | "tablist";
|
149 | |
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 |
|
160 | keyboard: boolean | "changeWithArrows";
|
161 | |
162 |
|
163 |
|
164 |
|
165 |
|
166 |
|
167 |
|
168 | shown: EventEmitter<any>;
|
169 | |
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 | hidden: EventEmitter<any>;
|
177 | items: QueryList<NgbNavItem>;
|
178 | links: QueryList<NgbNavLinkBase>;
|
179 | navItemChange$: Subject<NgbNavItem | null>;
|
180 | constructor(role: string);
|
181 | /**
|
182 | * The nav change event emitted right before the nav change happens on user click.
|
183 | *
|
184 | * This event won't be emitted if nav is changed programmatically via `[activeId]` or `.select()`.
|
185 | *
|
186 | * See [`NgbNavChangeEvent`](#/components/nav/api#NgbNavChangeEvent) for payload details.
|
187 | */
|
188 | navChange: EventEmitter<NgbNavChangeEvent<any>>;
|
189 | click(item: NgbNavItem): void;
|
190 | onFocusout({ relatedTarget }: FocusEvent): void;
|
191 | onKeyDown(event: KeyboardEvent): void;
|
192 | /**
|
193 | * Selects the nav with the given id and shows its associated pane.
|
194 | * Any other nav that was previously selected becomes unselected and its associated pane is hidden.
|
195 | */
|
196 | select(id: any): void;
|
197 | ngAfterContentInit(): void;
|
198 | ngOnChanges({ activeId }: SimpleChanges): void;
|
199 | private _updateActiveId;
|
200 | private _notifyItemChanged;
|
201 | private _getItemById;
|
202 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNav, [{ attribute: "role"; }]>;
|
203 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNav, "[ngbNav]", ["ngbNav"], { "activeId": { "alias": "activeId"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "roles": { "alias": "roles"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; }, { "activeIdChange": "activeIdChange"; "shown": "shown"; "hidden": "hidden"; "navChange": "navChange"; }, ["items", "links"], never, true, never>;
|
204 | }
|
205 | export declare class NgbNavLinkBase {
|
206 | role: string;
|
207 | navItem: NgbNavItem;
|
208 | nav: NgbNav;
|
209 | nativeElement: HTMLElement;
|
210 | constructor(role: string);
|
211 | get tabindex(): -1 | undefined;
|
212 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavLinkBase, [{ attribute: "role"; }]>;
|
213 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavLinkBase, "[ngbNavLink]", never, {}, {}, never, never, true, never>;
|
214 | }
|
215 |
|
216 |
|
217 |
|
218 | export declare class NgbNavLinkButton extends NgbNavLinkBase {
|
219 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavLinkButton, never>;
|
220 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavLinkButton, "button[ngbNavLink]", never, {}, {}, never, never, true, never>;
|
221 | }
|
222 |
|
223 |
|
224 |
|
225 |
|
226 |
|
227 | export declare class NgbNavLink extends NgbNavLinkBase {
|
228 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbNavLink, never>;
|
229 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbNavLink, "a[ngbNavLink]", never, {}, {}, never, never, true, never>;
|
230 | }
|
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 | export interface NgbNavChangeEvent<T = any> {
|
239 | |
240 |
|
241 |
|
242 | activeId: T;
|
243 | |
244 |
|
245 |
|
246 | nextId: T;
|
247 | |
248 |
|
249 |
|
250 | preventDefault: () => void;
|
251 | }
|