import { PassThrough, PassThroughOption } from "primeng/api"; import { CarouselContentPassThrough, CarouselItemPassThrough, CarouselPassThrough } from "primeng/types/carousel"; /** * Represents a pending action dispatched from toolbar to the active gallery item. * @group Interface */ export interface GalleryPendingAction { /** * The type of the action. */ type: 'zoom-in' | 'zoom-out' | 'rotate-left' | 'rotate-right' | 'flip-x' | 'flip-y' | 'download'; /** * Timestamp to ensure repeated identical actions trigger new effects. */ timestamp: number; } /** * Event fired when the gallery's active index changes. * @group Events */ export interface GalleryActiveIndexChangeEvent { /** * The original event that triggered the change. */ originalEvent?: Event; /** * The new active index value. */ value: number; } /** * Defines the state of a gallery item. * @group Interface */ export interface GalleryItemState { /** * The index of the item in the gallery. */ index: number; /** * Whether the item is the active (visible) item. */ isActive: boolean; /** * The current pan position. */ position: { x: number; y: number; }; /** * The current zoom scale. */ scale: number; /** * The current rotation in degrees. */ rotation: number; /** * The current flip state. */ flip: { x: number; y: number; }; } /** * Defines valid pass-through options in Gallery component. * @template I Type of instance. * @group Interface */ export interface GalleryPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * Defines valid pass-through options in Gallery component. * @see {@link GalleryPassThroughOptions} * @template I Type of instance. */ export type GalleryPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryBackdrop component. * @template I Type of instance. * @group Interface */ export interface GalleryBackdropPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryBackdropPassThroughOptions} * @template I Type of instance. */ export type GalleryBackdropPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryHeader component. * @template I Type of instance. * @group Interface */ export interface GalleryHeaderPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryHeaderPassThroughOptions} * @template I Type of instance. */ export type GalleryHeaderPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryContent component. * @template I Type of instance. * @group Interface */ export interface GalleryContentPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryContentPassThroughOptions} * @template I Type of instance. */ export type GalleryContentPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryFooter component. * @template I Type of instance. * @group Interface */ export interface GalleryFooterPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryFooterPassThroughOptions} * @template I Type of instance. */ export type GalleryFooterPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryItem component. * @template I Type of instance. * @group Interface */ export interface GalleryItemPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryItemPassThroughOptions} * @template I Type of instance. */ export type GalleryItemPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryPrev component. * @template I Type of instance. * @group Interface */ export interface GalleryPrevPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryPrevPassThroughOptions} * @template I Type of instance. */ export type GalleryPrevPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryNext component. * @template I Type of instance. * @group Interface */ export interface GalleryNextPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryNextPassThroughOptions} * @template I Type of instance. */ export type GalleryNextPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryToolbar component. * @template I Type of instance. * @group Interface */ export interface GalleryToolbarPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryToolbarPassThroughOptions} * @template I Type of instance. */ export type GalleryToolbarPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryToolbarItem component. * @template I Type of instance. * @group Interface */ export interface GalleryToolbarItemPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryToolbarItemPassThroughOptions} * @template I Type of instance. */ export type GalleryToolbarItemPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryZoomIn component. * @template I Type of instance. * @group Interface */ export interface GalleryZoomInPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryZoomInPassThroughOptions} * @template I Type of instance. */ export type GalleryZoomInPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryZoomOut component. * @template I Type of instance. * @group Interface */ export interface GalleryZoomOutPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryZoomOutPassThroughOptions} * @template I Type of instance. */ export type GalleryZoomOutPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryZoomToggle component. * @template I Type of instance. * @group Interface */ export interface GalleryZoomTogglePassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryZoomTogglePassThroughOptions} * @template I Type of instance. */ export type GalleryZoomTogglePassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryRotateLeft component. * @template I Type of instance. * @group Interface */ export interface GalleryRotateLeftPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryRotateLeftPassThroughOptions} * @template I Type of instance. */ export type GalleryRotateLeftPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryRotateRight component. * @template I Type of instance. * @group Interface */ export interface GalleryRotateRightPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryRotateRightPassThroughOptions} * @template I Type of instance. */ export type GalleryRotateRightPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryFlipX component. * @template I Type of instance. * @group Interface */ export interface GalleryFlipXPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryFlipXPassThroughOptions} * @template I Type of instance. */ export type GalleryFlipXPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryFlipY component. * @template I Type of instance. * @group Interface */ export interface GalleryFlipYPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryFlipYPassThroughOptions} * @template I Type of instance. */ export type GalleryFlipYPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryDownload component. * @template I Type of instance. * @group Interface */ export interface GalleryDownloadPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryDownloadPassThroughOptions} * @template I Type of instance. */ export type GalleryDownloadPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryFullScreen component. * @template I Type of instance. * @group Interface */ export interface GalleryFullScreenPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryFullScreenPassThroughOptions} * @template I Type of instance. */ export type GalleryFullScreenPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryThumbnail component. * @template I Type of instance. * @group Interface */ export interface GalleryThumbnailPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the internal Carousel component. */ pcCarousel?: CarouselPassThrough; /** * Used to pass attributes to the internal CarouselContent component. */ pcCarouselContent?: CarouselContentPassThrough; /** * Used to pass attributes to the internal CarouselItem components. */ pcCarouselItem?: CarouselItemPassThrough; } /** * @see {@link GalleryThumbnailPassThroughOptions} * @template I Type of instance. */ export type GalleryThumbnailPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryThumbnailContent component. * @template I Type of instance. * @group Interface */ export interface GalleryThumbnailContentPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryThumbnailContentPassThroughOptions} * @template I Type of instance. */ export type GalleryThumbnailContentPassThrough = PassThrough>; /** * Defines valid pass-through options in GalleryThumbnailItem component. * @template I Type of instance. * @group Interface */ export interface GalleryThumbnailItemPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * @see {@link GalleryThumbnailItemPassThroughOptions} * @template I Type of instance. */ export type GalleryThumbnailItemPassThrough = PassThrough>;