source: trip-planner-front/node_modules/primeng/esm2020/carousel/carousel.mjs@ 1ad8e64

Last change on this file since 1ad8e64 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 80.5 KB
RevLine 
[59329aa]1import { Component, Input, ViewChild, ContentChildren, NgModule, EventEmitter, Output, ContentChild, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2import { PrimeTemplate, SharedModule, Header, Footer } from 'primeng/api';
3import { RippleModule } from 'primeng/ripple';
4import { CommonModule } from '@angular/common';
5import { UniqueComponentId } from 'primeng/utils';
6import * as i0 from "@angular/core";
7import * as i1 from "@angular/common";
8import * as i2 from "primeng/ripple";
9export class Carousel {
10 constructor(el, zone, cd) {
11 this.el = el;
12 this.zone = zone;
13 this.cd = cd;
14 this.orientation = "horizontal";
15 this.verticalViewPortHeight = "300px";
16 this.contentClass = "";
17 this.indicatorsContentClass = "";
18 this.indicatorStyleClass = "";
19 this.circular = false;
20 this.showIndicators = true;
21 this.showNavigators = true;
22 this.autoplayInterval = 0;
23 this.onPage = new EventEmitter();
24 this._numVisible = 1;
25 this._numScroll = 1;
26 this._oldNumScroll = 0;
27 this.prevState = {
28 numScroll: 0,
29 numVisible: 0,
30 value: []
31 };
32 this.defaultNumScroll = 1;
33 this.defaultNumVisible = 1;
34 this._page = 0;
35 this.isRemainingItemsAdded = false;
36 this.remainingItems = 0;
37 this.swipeThreshold = 20;
38 this.totalShiftedItems = this.page * this.numScroll * -1;
39 }
40 get page() {
41 return this._page;
42 }
43 set page(val) {
44 if (this.isCreated && val !== this._page) {
45 if (this.autoplayInterval) {
46 this.stopAutoplay();
47 this.allowAutoplay = false;
48 }
49 if (val > this._page && val <= (this.totalDots() - 1)) {
50 this.step(-1, val);
51 }
52 else if (val < this._page) {
53 this.step(1, val);
54 }
55 }
56 this._page = val;
57 }
58 get numVisible() {
59 return this._numVisible;
60 }
61 set numVisible(val) {
62 this._numVisible = val;
63 }
64 get numScroll() {
65 return this._numVisible;
66 }
67 set numScroll(val) {
68 this._numScroll = val;
69 }
70 get value() {
71 return this._value;
72 }
73 ;
74 set value(val) {
75 this._value = val;
76 }
77 ngOnChanges(simpleChange) {
78 if (simpleChange.value) {
79 if (this.circular && this._value) {
80 this.setCloneItems();
81 }
82 }
83 if (this.isCreated) {
84 if (simpleChange.numVisible) {
85 if (this.responsiveOptions) {
86 this.defaultNumVisible = this.numVisible;
87 }
88 if (this.isCircular()) {
89 this.setCloneItems();
90 }
91 this.createStyle();
92 this.calculatePosition();
93 }
94 if (simpleChange.numScroll) {
95 if (this.responsiveOptions) {
96 this.defaultNumScroll = this.numScroll;
97 }
98 }
99 }
100 }
101 ngAfterContentInit() {
102 this.id = UniqueComponentId();
103 this.allowAutoplay = !!this.autoplayInterval;
104 if (this.circular) {
105 this.setCloneItems();
106 }
107 if (this.responsiveOptions) {
108 this.defaultNumScroll = this._numScroll;
109 this.defaultNumVisible = this._numVisible;
110 }
111 this.createStyle();
112 this.calculatePosition();
113 if (this.responsiveOptions) {
114 this.bindDocumentListeners();
115 }
116 this.templates.forEach((item) => {
117 switch (item.getType()) {
118 case 'item':
119 this.itemTemplate = item.template;
120 break;
121 case 'header':
122 this.headerTemplate = item.template;
123 break;
124 case 'footer':
125 this.footerTemplate = item.template;
126 break;
127 default:
128 this.itemTemplate = item.template;
129 break;
130 }
131 });
132 }
133 ngAfterContentChecked() {
134 const isCircular = this.isCircular();
135 let totalShiftedItems = this.totalShiftedItems;
136 if (this.value && this.itemsContainer && (this.prevState.numScroll !== this._numScroll || this.prevState.numVisible !== this._numVisible || this.prevState.value.length !== this.value.length)) {
137 if (this.autoplayInterval) {
138 this.stopAutoplay();
139 }
140 this.remainingItems = (this.value.length - this._numVisible) % this._numScroll;
141 let page = this._page;
142 if (this.totalDots() !== 0 && page >= this.totalDots()) {
143 page = this.totalDots() - 1;
144 this._page = page;
145 this.onPage.emit({
146 page: this.page
147 });
148 }
149 totalShiftedItems = (page * this._numScroll) * -1;
150 if (isCircular) {
151 totalShiftedItems -= this._numVisible;
152 }
153 if (page === (this.totalDots() - 1) && this.remainingItems > 0) {
154 totalShiftedItems += (-1 * this.remainingItems) + this._numScroll;
155 this.isRemainingItemsAdded = true;
156 }
157 else {
158 this.isRemainingItemsAdded = false;
159 }
160 if (totalShiftedItems !== this.totalShiftedItems) {
161 this.totalShiftedItems = totalShiftedItems;
162 }
163 this._oldNumScroll = this._numScroll;
164 this.prevState.numScroll = this._numScroll;
165 this.prevState.numVisible = this._numVisible;
166 this.prevState.value = [...this._value];
167 if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {
168 this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
169 }
170 this.isCreated = true;
171 if (this.autoplayInterval && this.isAutoplay()) {
172 this.startAutoplay();
173 }
174 }
175 if (isCircular) {
176 if (this.page === 0) {
177 totalShiftedItems = -1 * this._numVisible;
178 }
179 else if (totalShiftedItems === 0) {
180 totalShiftedItems = -1 * this.value.length;
181 if (this.remainingItems > 0) {
182 this.isRemainingItemsAdded = true;
183 }
184 }
185 if (totalShiftedItems !== this.totalShiftedItems) {
186 this.totalShiftedItems = totalShiftedItems;
187 }
188 }
189 }
190 createStyle() {
191 if (!this.carouselStyle) {
192 this.carouselStyle = document.createElement('style');
193 this.carouselStyle.type = 'text/css';
194 document.body.appendChild(this.carouselStyle);
195 }
196 let innerHTML = `
197 #${this.id} .p-carousel-item {
198 flex: 1 0 ${(100 / this.numVisible)}%
199 }
200 `;
201 if (this.responsiveOptions) {
202 this.responsiveOptions.sort((data1, data2) => {
203 const value1 = data1.breakpoint;
204 const value2 = data2.breakpoint;
205 let result = null;
206 if (value1 == null && value2 != null)
207 result = -1;
208 else if (value1 != null && value2 == null)
209 result = 1;
210 else if (value1 == null && value2 == null)
211 result = 0;
212 else if (typeof value1 === 'string' && typeof value2 === 'string')
213 result = value1.localeCompare(value2, undefined, { numeric: true });
214 else
215 result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
216 return -1 * result;
217 });
218 for (let i = 0; i < this.responsiveOptions.length; i++) {
219 let res = this.responsiveOptions[i];
220 innerHTML += `
221 @media screen and (max-width: ${res.breakpoint}) {
222 #${this.id} .p-carousel-item {
223 flex: 1 0 ${(100 / res.numVisible)}%
224 }
225 }
226 `;
227 }
228 }
229 this.carouselStyle.innerHTML = innerHTML;
230 }
231 calculatePosition() {
232 if (this.responsiveOptions) {
233 let windowWidth = window.innerWidth;
234 let matchedResponsiveData = {
235 numVisible: this.defaultNumVisible,
236 numScroll: this.defaultNumScroll
237 };
238 for (let i = 0; i < this.responsiveOptions.length; i++) {
239 let res = this.responsiveOptions[i];
240 if (parseInt(res.breakpoint, 10) >= windowWidth) {
241 matchedResponsiveData = res;
242 }
243 }
244 if (this._numScroll !== matchedResponsiveData.numScroll) {
245 let page = this._page;
246 page = Math.floor((page * this._numScroll) / matchedResponsiveData.numScroll);
247 let totalShiftedItems = (matchedResponsiveData.numScroll * this.page) * -1;
248 if (this.isCircular()) {
249 totalShiftedItems -= matchedResponsiveData.numVisible;
250 }
251 this.totalShiftedItems = totalShiftedItems;
252 this._numScroll = matchedResponsiveData.numScroll;
253 this._page = page;
254 this.onPage.emit({
255 page: this.page
256 });
257 }
258 if (this._numVisible !== matchedResponsiveData.numVisible) {
259 this._numVisible = matchedResponsiveData.numVisible;
260 this.setCloneItems();
261 }
262 this.cd.markForCheck();
263 }
264 }
265 setCloneItems() {
266 this.clonedItemsForStarting = [];
267 this.clonedItemsForFinishing = [];
268 if (this.isCircular()) {
269 this.clonedItemsForStarting.push(...this.value.slice(-1 * this._numVisible));
270 this.clonedItemsForFinishing.push(...this.value.slice(0, this._numVisible));
271 }
272 }
273 firstIndex() {
274 return this.isCircular() ? (-1 * (this.totalShiftedItems + this.numVisible)) : (this.totalShiftedItems * -1);
275 }
276 lastIndex() {
277 return this.firstIndex() + this.numVisible - 1;
278 }
279 totalDots() {
280 return this.value ? Math.ceil((this.value.length - this._numVisible) / this._numScroll) + 1 : 0;
281 }
282 totalDotsArray() {
283 const totalDots = this.totalDots();
284 return totalDots <= 0 ? [] : Array(totalDots).fill(0);
285 }
286 isVertical() {
287 return this.orientation === 'vertical';
288 }
289 isCircular() {
290 return this.circular && this.value && this.value.length >= this.numVisible;
291 }
292 isAutoplay() {
293 return this.autoplayInterval && this.allowAutoplay;
294 }
295 isForwardNavDisabled() {
296 return this.isEmpty() || (this._page >= (this.totalDots() - 1) && !this.isCircular());
297 }
298 isBackwardNavDisabled() {
299 return this.isEmpty() || (this._page <= 0 && !this.isCircular());
300 }
301 isEmpty() {
302 return !this.value || this.value.length === 0;
303 }
304 navForward(e, index) {
305 if (this.isCircular() || this._page < (this.totalDots() - 1)) {
306 this.step(-1, index);
307 }
308 if (this.autoplayInterval) {
309 this.stopAutoplay();
310 this.allowAutoplay = false;
311 }
312 if (e && e.cancelable) {
313 e.preventDefault();
314 }
315 }
316 navBackward(e, index) {
317 if (this.isCircular() || this._page !== 0) {
318 this.step(1, index);
319 }
320 if (this.autoplayInterval) {
321 this.stopAutoplay();
322 this.allowAutoplay = false;
323 }
324 if (e && e.cancelable) {
325 e.preventDefault();
326 }
327 }
328 onDotClick(e, index) {
329 let page = this._page;
330 if (this.autoplayInterval) {
331 this.stopAutoplay();
332 this.allowAutoplay = false;
333 }
334 if (index > page) {
335 this.navForward(e, index);
336 }
337 else if (index < page) {
338 this.navBackward(e, index);
339 }
340 }
341 step(dir, page) {
342 let totalShiftedItems = this.totalShiftedItems;
343 const isCircular = this.isCircular();
344 if (page != null) {
345 totalShiftedItems = (this._numScroll * page) * -1;
346 if (isCircular) {
347 totalShiftedItems -= this._numVisible;
348 }
349 this.isRemainingItemsAdded = false;
350 }
351 else {
352 totalShiftedItems += (this._numScroll * dir);
353 if (this.isRemainingItemsAdded) {
354 totalShiftedItems += this.remainingItems - (this._numScroll * dir);
355 this.isRemainingItemsAdded = false;
356 }
357 let originalShiftedItems = isCircular ? (totalShiftedItems + this._numVisible) : totalShiftedItems;
358 page = Math.abs(Math.floor((originalShiftedItems / this._numScroll)));
359 }
360 if (isCircular && this.page === (this.totalDots() - 1) && dir === -1) {
361 totalShiftedItems = -1 * (this.value.length + this._numVisible);
362 page = 0;
363 }
364 else if (isCircular && this.page === 0 && dir === 1) {
365 totalShiftedItems = 0;
366 page = (this.totalDots() - 1);
367 }
368 else if (page === (this.totalDots() - 1) && this.remainingItems > 0) {
369 totalShiftedItems += ((this.remainingItems * -1) - (this._numScroll * dir));
370 this.isRemainingItemsAdded = true;
371 }
372 if (this.itemsContainer) {
373 this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
374 this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
375 }
376 this.totalShiftedItems = totalShiftedItems;
377 this._page = page;
378 this.onPage.emit({
379 page: this.page
380 });
381 }
382 startAutoplay() {
383 this.interval = setInterval(() => {
384 if (this.totalDots() > 0) {
385 if (this.page === (this.totalDots() - 1)) {
386 this.step(-1, 0);
387 }
388 else {
389 this.step(-1, this.page + 1);
390 }
391 }
392 }, this.autoplayInterval);
393 }
394 stopAutoplay() {
395 if (this.interval) {
396 clearInterval(this.interval);
397 }
398 }
399 onTransitionEnd() {
400 if (this.itemsContainer) {
401 this.itemsContainer.nativeElement.style.transition = '';
402 if ((this.page === 0 || this.page === (this.totalDots() - 1)) && this.isCircular()) {
403 this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${this.totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${this.totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
404 }
405 }
406 }
407 onTouchStart(e) {
408 let touchobj = e.changedTouches[0];
409 this.startPos = {
410 x: touchobj.pageX,
411 y: touchobj.pageY
412 };
413 }
414 onTouchMove(e) {
415 if (e.cancelable) {
416 e.preventDefault();
417 }
418 }
419 onTouchEnd(e) {
420 let touchobj = e.changedTouches[0];
421 if (this.isVertical()) {
422 this.changePageOnTouch(e, (touchobj.pageY - this.startPos.y));
423 }
424 else {
425 this.changePageOnTouch(e, (touchobj.pageX - this.startPos.x));
426 }
427 }
428 changePageOnTouch(e, diff) {
429 if (Math.abs(diff) > this.swipeThreshold) {
430 if (diff < 0) {
431 this.navForward(e);
432 }
433 else {
434 this.navBackward(e);
435 }
436 }
437 }
438 bindDocumentListeners() {
439 if (!this.documentResizeListener) {
440 this.documentResizeListener = (e) => {
441 this.calculatePosition();
442 };
443 window.addEventListener('resize', this.documentResizeListener);
444 }
445 }
446 unbindDocumentListeners() {
447 if (this.documentResizeListener) {
448 window.removeEventListener('resize', this.documentResizeListener);
449 this.documentResizeListener = null;
450 }
451 }
452 ngOnDestroy() {
453 if (this.responsiveOptions) {
454 this.unbindDocumentListeners();
455 }
456 if (this.autoplayInterval) {
457 this.stopAutoplay();
458 }
459 }
460}
461Carousel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Carousel, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
462Carousel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Carousel, selector: "p-carousel", inputs: { page: "page", numVisible: "numVisible", numScroll: "numScroll", responsiveOptions: "responsiveOptions", orientation: "orientation", verticalViewPortHeight: "verticalViewPortHeight", contentClass: "contentClass", indicatorsContentClass: "indicatorsContentClass", indicatorsContentStyle: "indicatorsContentStyle", indicatorStyleClass: "indicatorStyleClass", indicatorStyle: "indicatorStyle", value: "value", circular: "circular", showIndicators: "showIndicators", showNavigators: "showNavigators", autoplayInterval: "autoplayInterval", style: "style", styleClass: "styleClass" }, outputs: { onPage: "onPage" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
463 <div [attr.id]="id" [ngClass]="{'p-carousel p-component':true, 'p-carousel-vertical': isVertical(), 'p-carousel-horizontal': !isVertical()}" [ngStyle]="style" [class]="styleClass">
464 <div class="p-carousel-header" *ngIf="headerFacet || headerTemplate">
465 <ng-content select="p-header"></ng-content>
466 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
467 </div>
468 <div [class]="contentClass" [ngClass]="'p-carousel-content'">
469 <div class="p-carousel-container">
470 <button type="button" *ngIf="showNavigators" [ngClass]="{'p-carousel-prev p-link':true, 'p-disabled': isBackwardNavDisabled()}" [disabled]="isBackwardNavDisabled()" (click)="navBackward($event)" pRipple>
471 <span [ngClass]="{'p-carousel-prev-icon pi': true, 'pi-chevron-left': !isVertical(), 'pi-chevron-up': isVertical()}"></span>
472 </button>
473 <div class="p-carousel-items-content" [ngStyle]="{'height': isVertical() ? verticalViewPortHeight : 'auto'}">
474 <div #itemsContainer class="p-carousel-items-container" (transitionend)="onTransitionEnd()" (touchend)="onTouchEnd($event)" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)">
475 <div *ngFor="let item of clonedItemsForStarting; let index = index" [ngClass]= "{'p-carousel-item p-carousel-item-cloned': true,
476 'p-carousel-item-active': (totalShiftedItems * -1) === (value.length),
477 'p-carousel-item-start': 0 === index,
478 'p-carousel-item-end': (clonedItemsForStarting.length - 1) === index}">
479 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: item}"></ng-container>
480 </div>
481 <div *ngFor="let item of value; let index = index" [ngClass]= "{'p-carousel-item': true,
482 'p-carousel-item-active': (firstIndex() <= index && lastIndex() >= index),
483 'p-carousel-item-start': firstIndex() === index,
484 'p-carousel-item-end': lastIndex() === index}">
485 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: item}"></ng-container>
486 </div>
487 <div *ngFor="let item of clonedItemsForFinishing; let index = index" [ngClass]= "{'p-carousel-item p-carousel-item-cloned': true,
488 'p-carousel-item-active': ((totalShiftedItems *-1) === numVisible),
489 'p-carousel-item-start': 0 === index,
490 'p-carousel-item-end': (clonedItemsForFinishing.length - 1) === index}">
491 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: item}"></ng-container>
492 </div>
493 </div>
494 </div>
495 <button type="button" *ngIf="showNavigators" [ngClass]="{'p-carousel-next p-link': true, 'p-disabled': isForwardNavDisabled()}" [disabled]="isForwardNavDisabled()" (click)="navForward($event)" pRipple>
496 <span [ngClass]="{'p-carousel-prev-icon pi': true, 'pi-chevron-right': !isVertical(), 'pi-chevron-down': isVertical()}"></span>
497 </button>
498 </div>
499 <ul [ngClass]="'p-carousel-indicators p-reset'" [class]="indicatorsContentClass" [ngStyle]="indicatorsContentStyle" *ngIf="showIndicators">
500 <li *ngFor="let totalDot of totalDotsArray(); let i = index" [ngClass]="{'p-carousel-indicator':true,'p-highlight': _page === i}">
501 <button type="button" [ngClass]="'p-link'" (click)="onDotClick($event, i)" [class]="indicatorStyleClass" [ngStyle]="indicatorStyle"></button>
502 </li>
503 </ul>
504 </div>
505 <div class="p-carousel-footer" *ngIf="footerFacet || footerTemplate">
506 <ng-content select="p-footer"></ng-content>
507 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
508 </div>
509 </div>
510 `, isInline: true, styles: [".p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.Ripple, selector: "[pRipple]" }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
511i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Carousel, decorators: [{
512 type: Component,
513 args: [{ selector: 'p-carousel', template: `
514 <div [attr.id]="id" [ngClass]="{'p-carousel p-component':true, 'p-carousel-vertical': isVertical(), 'p-carousel-horizontal': !isVertical()}" [ngStyle]="style" [class]="styleClass">
515 <div class="p-carousel-header" *ngIf="headerFacet || headerTemplate">
516 <ng-content select="p-header"></ng-content>
517 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
518 </div>
519 <div [class]="contentClass" [ngClass]="'p-carousel-content'">
520 <div class="p-carousel-container">
521 <button type="button" *ngIf="showNavigators" [ngClass]="{'p-carousel-prev p-link':true, 'p-disabled': isBackwardNavDisabled()}" [disabled]="isBackwardNavDisabled()" (click)="navBackward($event)" pRipple>
522 <span [ngClass]="{'p-carousel-prev-icon pi': true, 'pi-chevron-left': !isVertical(), 'pi-chevron-up': isVertical()}"></span>
523 </button>
524 <div class="p-carousel-items-content" [ngStyle]="{'height': isVertical() ? verticalViewPortHeight : 'auto'}">
525 <div #itemsContainer class="p-carousel-items-container" (transitionend)="onTransitionEnd()" (touchend)="onTouchEnd($event)" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)">
526 <div *ngFor="let item of clonedItemsForStarting; let index = index" [ngClass]= "{'p-carousel-item p-carousel-item-cloned': true,
527 'p-carousel-item-active': (totalShiftedItems * -1) === (value.length),
528 'p-carousel-item-start': 0 === index,
529 'p-carousel-item-end': (clonedItemsForStarting.length - 1) === index}">
530 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: item}"></ng-container>
531 </div>
532 <div *ngFor="let item of value; let index = index" [ngClass]= "{'p-carousel-item': true,
533 'p-carousel-item-active': (firstIndex() <= index && lastIndex() >= index),
534 'p-carousel-item-start': firstIndex() === index,
535 'p-carousel-item-end': lastIndex() === index}">
536 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: item}"></ng-container>
537 </div>
538 <div *ngFor="let item of clonedItemsForFinishing; let index = index" [ngClass]= "{'p-carousel-item p-carousel-item-cloned': true,
539 'p-carousel-item-active': ((totalShiftedItems *-1) === numVisible),
540 'p-carousel-item-start': 0 === index,
541 'p-carousel-item-end': (clonedItemsForFinishing.length - 1) === index}">
542 <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: item}"></ng-container>
543 </div>
544 </div>
545 </div>
546 <button type="button" *ngIf="showNavigators" [ngClass]="{'p-carousel-next p-link': true, 'p-disabled': isForwardNavDisabled()}" [disabled]="isForwardNavDisabled()" (click)="navForward($event)" pRipple>
547 <span [ngClass]="{'p-carousel-prev-icon pi': true, 'pi-chevron-right': !isVertical(), 'pi-chevron-down': isVertical()}"></span>
548 </button>
549 </div>
550 <ul [ngClass]="'p-carousel-indicators p-reset'" [class]="indicatorsContentClass" [ngStyle]="indicatorsContentStyle" *ngIf="showIndicators">
551 <li *ngFor="let totalDot of totalDotsArray(); let i = index" [ngClass]="{'p-carousel-indicator':true,'p-highlight': _page === i}">
552 <button type="button" [ngClass]="'p-link'" (click)="onDotClick($event, i)" [class]="indicatorStyleClass" [ngStyle]="indicatorStyle"></button>
553 </li>
554 </ul>
555 </div>
556 <div class="p-carousel-footer" *ngIf="footerFacet || footerTemplate">
557 <ng-content select="p-footer"></ng-content>
558 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
559 </div>
560 </div>
561 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
562 'class': 'p-element'
563 }, styles: [".p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}\n"] }]
564 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { page: [{
565 type: Input
566 }], numVisible: [{
567 type: Input
568 }], numScroll: [{
569 type: Input
570 }], responsiveOptions: [{
571 type: Input
572 }], orientation: [{
573 type: Input
574 }], verticalViewPortHeight: [{
575 type: Input
576 }], contentClass: [{
577 type: Input
578 }], indicatorsContentClass: [{
579 type: Input
580 }], indicatorsContentStyle: [{
581 type: Input
582 }], indicatorStyleClass: [{
583 type: Input
584 }], indicatorStyle: [{
585 type: Input
586 }], value: [{
587 type: Input
588 }], circular: [{
589 type: Input
590 }], showIndicators: [{
591 type: Input
592 }], showNavigators: [{
593 type: Input
594 }], autoplayInterval: [{
595 type: Input
596 }], style: [{
597 type: Input
598 }], styleClass: [{
599 type: Input
600 }], onPage: [{
601 type: Output
602 }], itemsContainer: [{
603 type: ViewChild,
604 args: ['itemsContainer']
605 }], headerFacet: [{
606 type: ContentChild,
607 args: [Header]
608 }], footerFacet: [{
609 type: ContentChild,
610 args: [Footer]
611 }], templates: [{
612 type: ContentChildren,
613 args: [PrimeTemplate]
614 }] } });
615export class CarouselModule {
616}
617CarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
618CarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CarouselModule, declarations: [Carousel], imports: [CommonModule, SharedModule, RippleModule], exports: [CommonModule, Carousel, SharedModule] });
619CarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CarouselModule, imports: [[CommonModule, SharedModule, RippleModule], CommonModule, SharedModule] });
620i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CarouselModule, decorators: [{
621 type: NgModule,
622 args: [{
623 imports: [CommonModule, SharedModule, RippleModule],
624 exports: [CommonModule, Carousel, SharedModule],
625 declarations: [Carousel]
626 }]
627 }] });
628//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fyb3VzZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvY2Fyb3VzZWwvY2Fyb3VzZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQWMsU0FBUyxFQUFpQyxlQUFlLEVBQWEsUUFBUSxFQUFVLFl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