1 | import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, QueryList, TemplateRef, AfterViewInit } from '@angular/core';
|
2 | import { NgbCarouselConfig } from './carousel-config';
|
3 | import { NgbSlideEventDirection } from './carousel-transition';
|
4 | import * as i0 from "@angular/core";
|
5 |
|
6 |
|
7 |
|
8 | export declare class NgbSlide {
|
9 | tplRef: TemplateRef<any>;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | id: string;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 | slid: EventEmitter<NgbSingleSlideEvent>;
|
22 | constructor(tplRef: TemplateRef<any>);
|
23 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbSlide, never>;
|
24 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbSlide, "ng-template[ngbSlide]", never, { "id": "id"; }, { "slid": "slid"; }, never, never, false>;
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare class NgbCarousel implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
32 | private _platformId;
|
33 | private _ngZone;
|
34 | private _cd;
|
35 | private _container;
|
36 | slides: QueryList<NgbSlide>;
|
37 | NgbSlideEventSource: typeof NgbSlideEventSource;
|
38 | private _destroy$;
|
39 | private _interval$;
|
40 | private _mouseHover$;
|
41 | private _focused$;
|
42 | private _pauseOnHover$;
|
43 | private _pauseOnFocus$;
|
44 | private _pause$;
|
45 | private _wrap$;
|
46 | |
47 |
|
48 |
|
49 |
|
50 |
|
51 | animation: boolean;
|
52 | |
53 |
|
54 |
|
55 |
|
56 |
|
57 | activeId: string;
|
58 | |
59 |
|
60 |
|
61 | set interval(value: number);
|
62 | get interval(): number;
|
63 | |
64 |
|
65 |
|
66 | set wrap(value: boolean);
|
67 | get wrap(): boolean;
|
68 | |
69 |
|
70 |
|
71 | keyboard: boolean;
|
72 | |
73 |
|
74 |
|
75 |
|
76 |
|
77 | set pauseOnHover(value: boolean);
|
78 | get pauseOnHover(): boolean;
|
79 | |
80 |
|
81 |
|
82 | set pauseOnFocus(value: boolean);
|
83 | get pauseOnFocus(): boolean;
|
84 | |
85 |
|
86 |
|
87 |
|
88 |
|
89 | showNavigationArrows: boolean;
|
90 | |
91 |
|
92 |
|
93 |
|
94 |
|
95 | showNavigationIndicators: boolean;
|
96 | |
97 |
|
98 |
|
99 |
|
100 |
|
101 | slide: EventEmitter<NgbSlideEvent>;
|
102 | |
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 | slid: EventEmitter<NgbSlideEvent>;
|
110 | private _transitionIds;
|
111 | set mouseHover(value: boolean);
|
112 | get mouseHover(): boolean;
|
113 | set focused(value: boolean);
|
114 | get focused(): boolean;
|
115 | constructor(config: NgbCarouselConfig, _platformId: any, _ngZone: NgZone, _cd: ChangeDetectorRef, _container: ElementRef);
|
116 | arrowLeft(): void;
|
117 | arrowRight(): void;
|
118 | ngAfterContentInit(): void;
|
119 | ngAfterContentChecked(): void;
|
120 | ngAfterViewInit(): void;
|
121 | ngOnDestroy(): void;
|
122 | /**
|
123 | * Navigates to a slide with the specified identifier.
|
124 | */
|
125 | select(slideId: string, source?: NgbSlideEventSource): void;
|
126 | /**
|
127 | * Navigates to the previous slide.
|
128 | */
|
129 | prev(source?: NgbSlideEventSource): void;
|
130 | /**
|
131 | * Navigates to the next slide.
|
132 | */
|
133 | next(source?: NgbSlideEventSource): void;
|
134 | /**
|
135 | * Pauses cycling through the slides.
|
136 | */
|
137 | pause(): void;
|
138 | /**
|
139 | * Restarts cycling through the slides from start to end.
|
140 | */
|
141 | cycle(): void;
|
142 | /**
|
143 | * Set the focus on the carousel.
|
144 | */
|
145 | focus(): void;
|
146 | private _cycleToSelected;
|
147 | private _getSlideEventDirection;
|
148 | private _getSlideById;
|
149 | private _getSlideIdxById;
|
150 | private _getNextSlide;
|
151 | private _getPrevSlide;
|
152 | private _getSlideElement;
|
153 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbCarousel, never>;
|
154 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbCarousel, "ngb-carousel", ["ngbCarousel"], { "animation": "animation"; "activeId": "activeId"; "interval": "interval"; "wrap": "wrap"; "keyboard": "keyboard"; "pauseOnHover": "pauseOnHover"; "pauseOnFocus": "pauseOnFocus"; "showNavigationArrows": "showNavigationArrows"; "showNavigationIndicators": "showNavigationIndicators"; }, { "slide": "slide"; "slid": "slid"; }, ["slides"], never, false>;
|
155 | }
|
156 |
|
157 |
|
158 |
|
159 | export interface NgbSlideEvent {
|
160 | |
161 |
|
162 |
|
163 | prev: string;
|
164 | |
165 |
|
166 |
|
167 | current: string;
|
168 | |
169 |
|
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 | direction: NgbSlideEventDirection;
|
176 | |
177 |
|
178 |
|
179 |
|
180 |
|
181 | paused: boolean;
|
182 | |
183 |
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 | source?: NgbSlideEventSource;
|
190 | }
|
191 |
|
192 |
|
193 |
|
194 |
|
195 |
|
196 | export interface NgbSingleSlideEvent {
|
197 | |
198 |
|
199 |
|
200 | isShown: boolean;
|
201 | |
202 |
|
203 |
|
204 |
|
205 |
|
206 |
|
207 |
|
208 | direction: NgbSlideEventDirection;
|
209 | |
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 | source?: NgbSlideEventSource;
|
216 | }
|
217 | export declare enum NgbSlideEventSource {
|
218 | TIMER = "timer",
|
219 | ARROW_LEFT = "arrowLeft",
|
220 | ARROW_RIGHT = "arrowRight",
|
221 | INDICATOR = "indicator"
|
222 | }
|
223 | export declare const NGB_CAROUSEL_DIRECTIVES: (typeof NgbSlide | typeof NgbCarousel)[];
|