@ipi-soft/ng-components
Version:
Custom Angular Components
29 lines (28 loc) • 1.09 kB
TypeScript
import { ElementRef } from '@angular/core';
import { Subject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class IpiCarouselComponent {
constructor();
carousel: ElementRef<HTMLDivElement>;
prevButton: ElementRef;
nextButton: ElementRef;
scrollProgress: number;
scrollAnimationDuration: number;
scrollSubject: Subject<"next" | "prev">;
private currentCenteredElemIndex;
private isProgrammaticScroll;
private scrollSubscription;
private platformId;
ngAfterViewInit(): void;
ngOnDestroy(): void;
scroll(direction: 'prev' | 'next'): void;
onResize(): void;
onNavigationKeydown(event: KeyboardEvent, direction: 'prev' | 'next'): void;
onScroll(event: Event): void;
private updateProgressBar;
private updateCurrentCenterdElemIndex;
private applyScrollSnapAlign;
private adjustCarouselSpacing;
static ɵfac: i0.ɵɵFactoryDeclaration<IpiCarouselComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<IpiCarouselComponent, "ipi-carousel", never, {}, {}, never, ["*"], true, never>;
}