2023-03-01 15:05:23 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Galleria is an advanced content gallery component.
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/galleria/)
|
|
|
|
*
|
|
|
|
* @module galleria
|
|
|
|
*
|
|
|
|
*/
|
2023-08-02 14:07:22 +00:00
|
|
|
import { ButtonHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue';
|
2023-07-06 11:17:08 +00:00
|
|
|
import { ComponentHooks } from '../basecomponent';
|
2023-09-05 08:50:46 +00:00
|
|
|
import { PassThroughOptions } from '../passthrough';
|
2024-05-16 10:50:43 +00:00
|
|
|
import { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
2023-08-02 14:07:22 +00:00
|
|
|
|
2023-07-11 22:42:43 +00:00
|
|
|
export declare type GalleriaPassThroughOptionType = GalleriaPassThroughAttributes | ((options: GalleriaPassThroughMethodOptions) => GalleriaPassThroughAttributes | string) | string | null | undefined;
|
2023-05-04 08:29:52 +00:00
|
|
|
|
2023-08-02 14:07:22 +00:00
|
|
|
export declare type GalleriaPassThroughTransitionType = TransitionProps | ((options: GalleriaPassThroughMethodOptions) => TransitionProps) | undefined;
|
|
|
|
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
|
|
|
export interface GalleriaPassThroughMethodOptions {
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines instance.
|
|
|
|
*/
|
2023-07-06 12:01:33 +00:00
|
|
|
instance: any;
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines valid properties.
|
|
|
|
*/
|
2023-05-04 08:29:52 +00:00
|
|
|
props: GalleriaProps;
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines current inline state.
|
|
|
|
*/
|
2023-05-04 08:29:52 +00:00
|
|
|
state: GalleriaState;
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines current options.
|
|
|
|
*/
|
2023-08-01 07:40:55 +00:00
|
|
|
context: GalleriaContext;
|
2023-12-10 21:41:17 +00:00
|
|
|
/**
|
|
|
|
* Defines valid attributes.
|
|
|
|
*/
|
|
|
|
attrs: any;
|
2023-12-05 11:06:32 +00:00
|
|
|
/**
|
|
|
|
* Defines parent options.
|
|
|
|
*/
|
|
|
|
parent: any;
|
2023-09-05 08:50:46 +00:00
|
|
|
/**
|
|
|
|
* Defines passthrough(pt) options in global config.
|
|
|
|
*/
|
|
|
|
global: object | undefined;
|
2023-05-04 08:29:52 +00:00
|
|
|
}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
export interface GalleriaResponsiveOptions {
|
|
|
|
/**
|
|
|
|
* Breakpoint for responsive mode. Exp; @media screen and (max-width: ${breakpoint}) {...}
|
|
|
|
*/
|
|
|
|
breakpoint: string;
|
|
|
|
/**
|
|
|
|
* The number of visible items on breakpoint.
|
|
|
|
*/
|
|
|
|
numVisible: number;
|
|
|
|
}
|
|
|
|
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link GalleriaProps.pt}
|
|
|
|
*/
|
|
|
|
export interface GalleriaPassThroughOptions {
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the root's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
root?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the close button's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
closeButton?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the close icon's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
closeIcon?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the header's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
header?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the content's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
content?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the footer's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
footer?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the item container's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-04-30 09:39:18 +00:00
|
|
|
itemsContainer?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-04-30 09:39:18 +00:00
|
|
|
* Used to pass attributes to the items' DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-04-30 09:39:18 +00:00
|
|
|
items?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the previous item button's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
previousItemButton?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the previous item icon's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
previousItemIcon?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the item's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
item?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the next item button's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
nextItemButton?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the next item icon's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
nextItemIcon?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the caption's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
caption?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the indicator list's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-04-30 09:39:18 +00:00
|
|
|
indicatorList?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the indicator's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
indicator?: GalleriaPassThroughOptionType;
|
2023-07-20 08:57:56 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the indicator button's DOM element.
|
2023-07-20 08:57:56 +00:00
|
|
|
*/
|
|
|
|
indicatorButton?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-04-30 09:39:18 +00:00
|
|
|
* Used to pass attributes to the thumbnails' DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-04-30 09:39:18 +00:00
|
|
|
thumbnails?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the thumbnail content's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-04-30 09:39:18 +00:00
|
|
|
thumbnailContent?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the previous thumbnail button's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
previousThumbnailButton?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the previous thumbnail icon's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
previousThumbnailIcon?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the thumbnails viewport's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-05-06 13:10:13 +00:00
|
|
|
thumbnailsViewport?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass attributes to the thumbnail items' DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
thumbnailItems?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the thumbnail item's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
thumbnailItem?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the thumbnail's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
2024-04-30 09:39:18 +00:00
|
|
|
thumbnail?: GalleriaPassThroughOptionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the next thumbnail button's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
nextThumbnailButton?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the next thumbnail icon's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
nextThumbnailIcon?: GalleriaPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the mask's DOM element.
|
2023-05-04 08:29:52 +00:00
|
|
|
*/
|
|
|
|
mask?: GalleriaPassThroughOptionType;
|
2023-07-06 11:09:01 +00:00
|
|
|
/**
|
2023-11-07 06:16:39 +00:00
|
|
|
* Used to manage all lifecycle hooks.
|
2023-07-06 11:09:01 +00:00
|
|
|
* @see {@link BaseComponent.ComponentHooks}
|
|
|
|
*/
|
|
|
|
hooks?: ComponentHooks;
|
2023-08-02 12:01:06 +00:00
|
|
|
/**
|
|
|
|
* Used to control Vue Transition API.
|
|
|
|
*/
|
2023-08-02 14:07:22 +00:00
|
|
|
transition?: GalleriaPassThroughTransitionType;
|
2023-05-04 08:29:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough attributes for each DOM elements
|
|
|
|
*/
|
|
|
|
export interface GalleriaPassThroughAttributes {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines current inline state in Galleria component.
|
|
|
|
*/
|
|
|
|
export interface GalleriaState {
|
|
|
|
/**
|
2023-05-04 10:11:48 +00:00
|
|
|
* Current container visible state as a boolean.
|
2023-05-04 08:29:52 +00:00
|
|
|
* @defaultValue false
|
|
|
|
*/
|
2023-05-04 10:11:48 +00:00
|
|
|
containerVisible: boolean;
|
|
|
|
/**
|
|
|
|
* Style id of the component.
|
|
|
|
*/
|
|
|
|
id: string;
|
|
|
|
/**
|
|
|
|
* Index of the first item as a number.
|
|
|
|
* @defaultValue 0
|
|
|
|
*/
|
|
|
|
activeIndex: number;
|
|
|
|
/**
|
|
|
|
* Number of items per page as a number.
|
|
|
|
* @defaultValue 3
|
|
|
|
*/
|
|
|
|
numVisible: number;
|
|
|
|
/**
|
|
|
|
* Current slide active state as a boolean.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
slideShowActive: boolean;
|
|
|
|
/**
|
|
|
|
* Number of items per page as a number.
|
|
|
|
* @defaultValue 3
|
|
|
|
*/
|
|
|
|
d_numVisible: number;
|
|
|
|
/**
|
|
|
|
* Old number of items per page as a number.
|
|
|
|
* @defaultValue 3
|
|
|
|
*/
|
|
|
|
d_oldNumVisible: number;
|
|
|
|
/**
|
|
|
|
* Current active item index as a number.
|
|
|
|
* @defaultValue 0
|
|
|
|
*/
|
|
|
|
d_activeIndex: number;
|
|
|
|
/**
|
|
|
|
* The previous active item index as a number.
|
|
|
|
* @defaultValue 0
|
|
|
|
*/
|
|
|
|
d_oldActiveItemIndex: number;
|
|
|
|
/**
|
|
|
|
* Index of the first item.
|
|
|
|
* @defaultValue 0
|
|
|
|
*/
|
|
|
|
page: number;
|
|
|
|
/**
|
|
|
|
* Total shifted items' count as a number.
|
|
|
|
* @defaultValue 0
|
|
|
|
*/
|
|
|
|
totalShiftedItems: number;
|
2023-05-04 08:29:52 +00:00
|
|
|
}
|
|
|
|
|
2023-08-01 07:40:55 +00:00
|
|
|
/**
|
|
|
|
* Defines current inline options in Galleria component.
|
|
|
|
*/
|
2023-08-01 07:41:22 +00:00
|
|
|
export interface GalleriaContext {
|
2023-08-01 07:40:55 +00:00
|
|
|
/**
|
|
|
|
* Current highlighted state of the indicator as a boolean.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
highlighted: boolean;
|
|
|
|
}
|
|
|
|
|
2023-03-01 15:05:23 +00:00
|
|
|
/**
|
|
|
|
* Defines valid properties in Galleria component.
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface GalleriaProps {
|
|
|
|
/**
|
|
|
|
* Unique identifier of the element.
|
|
|
|
*/
|
|
|
|
id?: string | undefined;
|
|
|
|
/**
|
|
|
|
* An array of objects to display.
|
|
|
|
*/
|
|
|
|
value?: any[];
|
|
|
|
/**
|
|
|
|
* Index of the first item.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue 0
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
activeIndex?: number | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to display the component on fullscreen.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
fullScreen?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Specifies the visibility of the mask on fullscreen mode.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
visible?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Number of items per page.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue 3
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
numVisible?: number | undefined;
|
|
|
|
/**
|
|
|
|
* An array of options for responsive design.
|
|
|
|
* @see GalleriaResponsiveOptions
|
|
|
|
*/
|
|
|
|
responsiveOptions?: GalleriaResponsiveOptions[];
|
|
|
|
/**
|
|
|
|
* Whether to display navigation buttons in item section.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
showItemNavigators?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to display navigation buttons in thumbnail container.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue true
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
showThumbnailNavigators?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to display navigation buttons on item hover.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
showItemNavigatorsOnHover?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* When enabled, item is changed on indicator hover.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
changeItemOnIndicatorHover?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Defines if scrolling would be infinite.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
circular?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Items are displayed with a slideshow in autoPlay mode.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
autoPlay?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Time in milliseconds to scroll items.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue 4000
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
transitionInterval?: number | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to display thumbnail container.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue true
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
showThumbnails?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Position of thumbnails.
|
2023-03-08 10:51:52 +00:00
|
|
|
* @defaultValue bottom
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
thumbnailsPosition?: 'bottom' | 'top' | 'left' | 'right' | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Height of the viewport in vertical thumbnail.
|
2023-03-08 10:51:52 +00:00
|
|
|
* @defaultValue 300px
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
verticalThumbnailViewPortHeight?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to display indicator container.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
showIndicators?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* When enabled, indicator container is displayed on item container.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue false
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
showIndicatorsOnItem?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Position of indicators.
|
2023-03-08 10:51:52 +00:00
|
|
|
* @defaultValue bottom
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
indicatorsPosition?: 'bottom' | 'top' | 'left' | 'right' | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Base zIndex value to use in layering.
|
2023-03-01 15:05:23 +00:00
|
|
|
* @defaultValue 0
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
baseZIndex?: number | undefined;
|
|
|
|
/**
|
|
|
|
* Style class of the mask on fullscreen mode.
|
|
|
|
*/
|
|
|
|
maskClass?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Inline style of the component on fullscreen mode. Otherwise, the 'style' property can be used.
|
|
|
|
*/
|
2022-12-08 11:04:25 +00:00
|
|
|
containerStyle?: any | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used.
|
|
|
|
*/
|
2022-12-08 11:04:25 +00:00
|
|
|
containerClass?: any | undefined;
|
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass all properties of the HTMLDivElement to the container element on fullscreen mode.
|
2022-12-08 11:04:25 +00:00
|
|
|
*/
|
|
|
|
containerProps?: HTMLAttributes | undefined;
|
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass all properties of the HTMLButtonElement to the previous navigation button.
|
2022-12-08 11:04:25 +00:00
|
|
|
*/
|
|
|
|
prevButtonProps?: ButtonHTMLAttributes | undefined;
|
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass all properties of the HTMLButtonElement to the next navigation button.
|
2022-12-08 11:04:25 +00:00
|
|
|
*/
|
|
|
|
nextButtonProps?: ButtonHTMLAttributes | undefined;
|
2023-11-30 20:06:40 +00:00
|
|
|
/**
|
|
|
|
* Defines a string value that labels an interactive element.
|
|
|
|
*/
|
|
|
|
ariaLabel?: string | undefined;
|
|
|
|
/**
|
|
|
|
* Defines a string value that description for the role of the component.
|
|
|
|
*/
|
|
|
|
ariaRoledescription?: string | undefined;
|
2024-04-02 08:24:31 +00:00
|
|
|
/**
|
|
|
|
* It generates scoped CSS variables using design tokens for the component.
|
|
|
|
*/
|
|
|
|
dt?: DesignToken<any>;
|
2023-05-04 08:29:52 +00:00
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass attributes to DOM elements inside the component.
|
2023-05-04 08:29:52 +00:00
|
|
|
* @type {GalleriaPassThroughOptions}
|
|
|
|
*/
|
2023-09-05 11:28:04 +00:00
|
|
|
pt?: PassThrough<GalleriaPassThroughOptions>;
|
2023-09-05 08:50:46 +00:00
|
|
|
/**
|
|
|
|
* Used to configure passthrough(pt) options of the component.
|
|
|
|
* @type {PassThroughOptions}
|
|
|
|
*/
|
|
|
|
ptOptions?: PassThroughOptions;
|
2023-05-31 22:28:41 +00:00
|
|
|
/**
|
|
|
|
* When enabled, it removes component related styles in the core.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
unstyled?: boolean;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
2023-03-01 15:05:23 +00:00
|
|
|
/**
|
|
|
|
* Defines valid slots in Galleria slots.
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface GalleriaSlots {
|
|
|
|
/**
|
|
|
|
* Custom header template.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
header(): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Custom footer template.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
footer(): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Custom item template.
|
|
|
|
* @param {Object} scope - item slot's params.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
item(scope: {
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Item instance
|
|
|
|
*/
|
|
|
|
item: any;
|
2023-03-01 15:05:23 +00:00
|
|
|
}): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Custom caption template.
|
|
|
|
* @param {Object} scope - caption slot's params.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
caption(scope: {
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Item instance
|
|
|
|
*/
|
|
|
|
item: any;
|
2023-03-01 15:05:23 +00:00
|
|
|
}): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Custom indicator template.
|
|
|
|
* @param {Object} scope - indicator slot's params.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
indicator(scope: {
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Index of the indicator item
|
|
|
|
*/
|
|
|
|
index: number;
|
2023-03-01 15:05:23 +00:00
|
|
|
}): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Custom thumbnail template.
|
|
|
|
* @param {Object} scope - thumbnail slot's params.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
thumbnail(scope: {
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Item instance
|
|
|
|
*/
|
|
|
|
item: any;
|
2023-03-01 15:05:23 +00:00
|
|
|
}): VNode[];
|
2023-04-06 08:21:23 +00:00
|
|
|
/**
|
|
|
|
* Custom close icon template.
|
|
|
|
*/
|
|
|
|
closeicon(): VNode[];
|
|
|
|
/**
|
|
|
|
* Custom navigator previous item icon template.
|
|
|
|
*/
|
2023-04-18 09:31:46 +00:00
|
|
|
previousitemicon(): VNode[];
|
2023-04-06 08:21:23 +00:00
|
|
|
/**
|
|
|
|
* Custom navigator next item icon template.
|
|
|
|
*/
|
|
|
|
nextitemicon(): VNode[];
|
|
|
|
/**
|
|
|
|
* Custom thumbnail previous icon template.
|
|
|
|
*/
|
2023-04-18 09:31:46 +00:00
|
|
|
previousthumbnailicon(): VNode[];
|
2023-04-06 08:21:23 +00:00
|
|
|
/**
|
|
|
|
* Custom thumbnail next item template.
|
|
|
|
*/
|
|
|
|
nextthumbnailicon(): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
2023-03-01 15:05:23 +00:00
|
|
|
/**
|
|
|
|
* Defines valid emits in Galleria component.
|
|
|
|
*/
|
2024-05-16 10:50:43 +00:00
|
|
|
interface GalleriaEmitsOptions {
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Emitted when the active index changes.
|
|
|
|
* @param {number} value - Index of new active item.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
'update:activeIndex'(value: number): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Emitted when the visible changes.
|
|
|
|
* @param {boolean} value - New value.
|
|
|
|
*/
|
2023-03-01 15:05:23 +00:00
|
|
|
'update:visible'(value: boolean): void;
|
|
|
|
}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2024-05-16 10:50:43 +00:00
|
|
|
export declare type GalleriaEmits = EmitFn<GalleriaEmitsOptions>;
|
|
|
|
|
2023-03-01 15:05:23 +00:00
|
|
|
/**
|
|
|
|
* **PrimeVue - Galleria**
|
|
|
|
*
|
|
|
|
* _Galleria is an advanced content gallery component._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/galleria/)
|
|
|
|
* --- ---
|
2023-03-03 10:55:20 +00:00
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
2023-03-01 15:05:23 +00:00
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*
|
|
|
|
*/
|
2024-05-16 10:50:43 +00:00
|
|
|
declare const Galleria: DefineComponent<GalleriaProps, GalleriaSlots, GalleriaEmits>;
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2024-05-16 10:50:43 +00:00
|
|
|
Galleria: GlobalComponentConstructor<GalleriaProps, GalleriaSlots, GalleriaEmits>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Galleria;
|