import { TemplateRef } from "@angular/core"; import { PassThrough, PassThroughOption } from "primeng/api"; import { ButtonPassThroughOptions } from "primeng/types/button"; /** * Defines the orientation of the carousel. * @group Types */ export type CarouselOrientation = 'horizontal' | 'vertical'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Carousel.pt} * @group Interface */ export interface CarouselPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the header's DOM element. */ header?: PassThroughOption; /** * Used to pass attributes to the content container's DOM element. */ contentContainer?: PassThroughOption; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption; /** * Used to pass attributes to the previous button's DOM element. */ pcPrevButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the viewport's DOM element. */ viewport?: PassThroughOption; /** * Used to pass attributes to the item list's DOM element. */ itemList?: PassThroughOption; /** * Used to pass attributes to the item's DOM element. */ item?: PassThroughOption; /** * Used to pass attributes to the item clone's DOM element. */ itemClone?: PassThroughOption; /** * Used to pass attributes to the next button's DOM element. */ pcNextButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the indicator list's DOM element. */ indicatorList?: PassThroughOption; /** * Used to pass attributes to the indicator's DOM element. */ indicator?: PassThroughOption; /** * Used to pass attributes to the indicator button's DOM element. */ indicatorButton?: PassThroughOption; /** * Used to pass attributes to the footer's DOM element. */ footer?: PassThroughOption; } /** * Defines valid pass-through options in Carousel. * @see {@link CarouselPassThroughOptions} * * @template I Type of instance. */ export type CarouselPassThrough = PassThrough>; /** * Responsive options of the component. * @group Interface */ export interface CarouselResponsiveOptions { /** * Breakpoint for responsive mode. Exp; @media screen and (max-width: ${breakpoint}) {...} */ breakpoint: string; /** * The number of visible items on breakpoint. */ numVisible: number; /** * The number of scrolled items on breakpoint. */ numScroll: number; } /** * Custom page event. * @group Events */ export interface CarouselPageEvent { /** * Current page. */ page?: number; } /** * Custom item template context. * @group Interface */ export interface CarouselItemTemplateContext { /** * Data of the item. */ $implicit: T; } /** * Defines valid templates in Carousel. * @group Templates */ export interface CarouselTemplates { /** * Custom header template. */ header(): TemplateRef; /** * Custom item template. * @param {Object} context - item data. */ item(context: CarouselItemTemplateContext): TemplateRef>; /** * Custom previous icon template. */ previousicon(): TemplateRef; /** * Custom next icon template. */ nexticon(): TemplateRef; /** * Custom footer template. */ footer(): TemplateRef; } /** * Defines valid pass-through options in CarouselContent component. * @template I Type of instance. * @group Interface */ export interface CarouselContentPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link CarouselContentPassThroughOptions} * @template I Type of instance. */ export type CarouselContentPassThrough = PassThrough>; /** * Defines valid pass-through options in CarouselItem component. * @template I Type of instance. * @group Interface */ export interface CarouselItemPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link CarouselItemPassThroughOptions} * @template I Type of instance. */ export type CarouselItemPassThrough = PassThrough>; /** * Defines valid pass-through options in CarouselIndicators component. * @template I Type of instance. * @group Interface */ export interface CarouselIndicatorsPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link CarouselIndicatorsPassThroughOptions} * @template I Type of instance. */ export type CarouselIndicatorsPassThrough = PassThrough>; /** * Defines valid pass-through options in CarouselNext directive. * @template I Type of instance. * @group Interface */ export interface CarouselNextPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link CarouselNextPassThroughOptions} * @template I Type of instance. */ export type CarouselNextPassThrough = PassThrough>; /** * Defines valid pass-through options in CarouselPrev directive. * @template I Type of instance. * @group Interface */ export interface CarouselPrevPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link CarouselPrevPassThroughOptions} * @template I Type of instance. */ export type CarouselPrevPassThrough = PassThrough>; /** * Defines valid pass-through options in CarouselIndicator directive. * @template I Type of instance. * @group Interface */ export interface CarouselIndicatorPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link CarouselIndicatorPassThroughOptions} * @template I Type of instance. */ export type CarouselIndicatorPassThrough = PassThrough>;