1 | import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, QueryList, TemplateRef, NgZone, OnInit, OnDestroy } from '@angular/core';
|
2 | import { NgbAccordionConfig } from './accordion-config';
|
3 | import * as i0 from "@angular/core";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export interface NgbPanelHeaderContext {
|
10 | |
11 |
|
12 |
|
13 | opened: boolean;
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare class NgbPanelHeader {
|
25 | templateRef: TemplateRef<any>;
|
26 | constructor(templateRef: TemplateRef<any>);
|
27 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPanelHeader, never>;
|
28 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPanelHeader, "ng-template[ngbPanelHeader]", never, {}, {}, never, never, false>;
|
29 | }
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare class NgbPanelTitle {
|
36 | templateRef: TemplateRef<any>;
|
37 | constructor(templateRef: TemplateRef<any>);
|
38 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPanelTitle, never>;
|
39 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPanelTitle, "ng-template[ngbPanelTitle]", never, {}, {}, never, never, false>;
|
40 | }
|
41 |
|
42 |
|
43 |
|
44 | export declare class NgbPanelContent {
|
45 | templateRef: TemplateRef<any>;
|
46 | constructor(templateRef: TemplateRef<any>);
|
47 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPanelContent, never>;
|
48 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPanelContent, "ng-template[ngbPanelContent]", never, {}, {}, never, never, false>;
|
49 | }
|
50 |
|
51 |
|
52 |
|
53 | export declare class NgbPanel implements AfterContentChecked {
|
54 | |
55 |
|
56 |
|
57 | disabled: boolean;
|
58 | |
59 |
|
60 |
|
61 |
|
62 |
|
63 | id: string;
|
64 | isOpen: boolean;
|
65 | initClassDone: boolean;
|
66 | transitionRunning: boolean;
|
67 | |
68 |
|
69 |
|
70 |
|
71 |
|
72 | title: string;
|
73 | |
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 | type: string;
|
80 | |
81 |
|
82 |
|
83 |
|
84 |
|
85 | cardClass: string;
|
86 | |
87 |
|
88 |
|
89 |
|
90 |
|
91 | shown: EventEmitter<void>;
|
92 | |
93 |
|
94 |
|
95 |
|
96 |
|
97 | hidden: EventEmitter<void>;
|
98 | titleTpl?: NgbPanelTitle;
|
99 | headerTpl?: NgbPanelHeader;
|
100 | contentTpl?: NgbPanelContent;
|
101 | panelDiv: HTMLElement | null;
|
102 | titleTpls: QueryList<NgbPanelTitle>;
|
103 | headerTpls: QueryList<NgbPanelHeader>;
|
104 | contentTpls: QueryList<NgbPanelContent>;
|
105 | ngAfterContentChecked(): void;
|
106 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPanel, never>;
|
107 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPanel, "ngb-panel", never, { "disabled": "disabled"; "id": "id"; "title": "title"; "type": "type"; "cardClass": "cardClass"; }, { "shown": "shown"; "hidden": "hidden"; }, ["titleTpls", "headerTpls", "contentTpls"], never, false>;
|
108 | }
|
109 |
|
110 |
|
111 |
|
112 | export interface NgbPanelChangeEvent {
|
113 | |
114 |
|
115 |
|
116 | panelId: string;
|
117 | |
118 |
|
119 |
|
120 |
|
121 |
|
122 | nextState: boolean;
|
123 | |
124 |
|
125 |
|
126 | preventDefault: () => void;
|
127 | }
|
128 | export declare class NgbRefDirective implements OnInit, OnDestroy {
|
129 | private _El;
|
130 | ngbRef: EventEmitter<HTMLElement | null>;
|
131 | constructor(_El: ElementRef);
|
132 | ngOnInit(): void;
|
133 | ngOnDestroy(): void;
|
134 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbRefDirective, never>;
|
135 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbRefDirective, "[ngbRef]", never, {}, { "ngbRef": "ngbRef"; }, never, never, false>;
|
136 | }
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 | export declare class NgbAccordion implements AfterContentChecked {
|
144 | private _ngZone;
|
145 | private _changeDetector;
|
146 | panels: QueryList<NgbPanel>;
|
147 | |
148 |
|
149 |
|
150 |
|
151 |
|
152 | animation: any;
|
153 | |
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 | activeIds: string | readonly string[];
|
160 | |
161 |
|
162 |
|
163 |
|
164 |
|
165 | closeOtherPanels: boolean;
|
166 | |
167 |
|
168 |
|
169 | destroyOnHide: boolean;
|
170 | |
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 | type: string;
|
177 | |
178 |
|
179 |
|
180 |
|
181 |
|
182 | panelChange: EventEmitter<NgbPanelChangeEvent>;
|
183 | |
184 |
|
185 |
|
186 |
|
187 |
|
188 | shown: EventEmitter<string>;
|
189 | |
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 | hidden: EventEmitter<string>;
|
196 | constructor(config: NgbAccordionConfig, _ngZone: NgZone, _changeDetector: ChangeDetectorRef);
|
197 | /**
|
198 | * Checks if a panel with a given id is expanded.
|
199 | */
|
200 | isExpanded(panelId: string): boolean;
|
201 | /**
|
202 | * Expands a panel with a given id.
|
203 | *
|
204 | * Has no effect if the panel is already expanded or disabled.
|
205 | */
|
206 | expand(panelId: string): void;
|
207 | /**
|
208 | * Expands all panels, if `[closeOthers]` is `false`.
|
209 | *
|
210 | * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened.
|
211 | */
|
212 | expandAll(): void;
|
213 | /**
|
214 | * Collapses a panel with the given id.
|
215 | *
|
216 | * Has no effect if the panel is already collapsed or disabled.
|
217 | */
|
218 | collapse(panelId: string): void;
|
219 | /**
|
220 | * Collapses all opened panels.
|
221 | */
|
222 | collapseAll(): void;
|
223 | /**
|
224 | * Toggles a panel with the given id.
|
225 | *
|
226 | * Has no effect if the panel is disabled.
|
227 | */
|
228 | toggle(panelId: string): void;
|
229 | ngAfterContentChecked(): void;
|
230 | private _changeOpenState;
|
231 | private _closeOthers;
|
232 | private _findPanelById;
|
233 | private _updateActiveIds;
|
234 | private _runTransitions;
|
235 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbAccordion, never>;
|
236 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbAccordion, "ngb-accordion", ["ngbAccordion"], { "animation": "animation"; "activeIds": "activeIds"; "closeOtherPanels": "closeOthers"; "destroyOnHide": "destroyOnHide"; "type": "type"; }, { "panelChange": "panelChange"; "shown": "shown"; "hidden": "hidden"; }, ["panels"], never, false>;
|
237 | }
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 | export declare class NgbPanelToggle {
|
246 | accordion: NgbAccordion;
|
247 | panel: NgbPanel;
|
248 | static ngAcceptInputType_ngbPanelToggle: NgbPanel | '';
|
249 | set ngbPanelToggle(panel: NgbPanel);
|
250 | constructor(accordion: NgbAccordion, panel: NgbPanel);
|
251 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPanelToggle, [null, { optional: true; host: true; }]>;
|
252 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPanelToggle, "button[ngbPanelToggle]", never, { "ngbPanelToggle": "ngbPanelToggle"; }, {}, never, never, false>;
|
253 | }
|