2022-09-12 07:13:52 +00:00
|
|
|
const GalleriaProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'id',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Unique identifier of the element.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'value',
|
|
|
|
type: 'array',
|
|
|
|
default: 'null',
|
|
|
|
description: 'An array of objects to display.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'activeIndex',
|
|
|
|
type: 'number',
|
|
|
|
default: '0',
|
|
|
|
description: 'Index of the first item.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'fullscreen',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Whether to display the component on fullscreen.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'visible',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Specifies the visibility of the mask on fullscreen mode.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'numVisible',
|
|
|
|
type: 'number',
|
|
|
|
default: '3',
|
|
|
|
description: 'Number of items per page.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'responsiveOptions',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'An array of options for responsive design.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showItemNavigators',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Whether to display navigation buttons in item section.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showThumbnailNavigators',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'true',
|
|
|
|
description: 'Whether to display navigation buttons in thumbnail container.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showItemNavigatorsOnHover',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Whether to display navigation buttons on item hover.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'changeItemOnIndicatorHover',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When enabled, item is changed on indicator hover.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'circular',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Defines if scrolling would be infinite.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'autoPlay',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Items are displayed with a slideshow in autoPlay mode.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'transitionInterval',
|
|
|
|
type: 'number',
|
|
|
|
default: '4000',
|
|
|
|
description: 'Time in milliseconds to scroll items.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showThumbnails',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'true',
|
|
|
|
description: 'Whether to display thumbnail container.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'thumbnailsPosition',
|
|
|
|
type: 'string',
|
|
|
|
default: 'bottom',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: 'Position of thumbnails. Valid values are "bottom", "top", "left" and "right".'
|
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'verticalThumbnailViewPortHeight',
|
|
|
|
type: 'string',
|
|
|
|
default: '300px',
|
|
|
|
description: 'Height of the viewport in vertical thumbnail.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showIndicators',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Whether to display indicator container.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showIndicatorsOnItem',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When enabled, indicator container is displayed on item container.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'indicatorsPosition',
|
|
|
|
type: 'string',
|
|
|
|
default: 'bottom',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: 'Position of indicators. Valid values are "bottom", "top", "left" and "right".'
|
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'baseZIndex',
|
|
|
|
type: 'number',
|
|
|
|
default: '0',
|
|
|
|
description: 'ase zIndex value to use in layering.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'maskClass',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Style class of the mask on fullscreen mode.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'containerStyle',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: "Inline style of the component on fullscreen mode. Otherwise, the 'style' property can be used."
|
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'containerClass',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: "Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used."
|
2023-05-04 08:29:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const GalleriaSlots = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'header',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: "Custom content for the component's header."
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'footer',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: "Custom content for the component's footer."
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'item',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: 'Custom content for the item.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'caption',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: 'Custom caption content.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'thumbnail',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: 'Custom thumbnail content.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'indicator',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: 'Custom indicator content.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'closeicon',
|
|
|
|
description: 'Custom close icon template.'
|
|
|
|
},
|
|
|
|
{
|
2023-04-18 13:42:36 +00:00
|
|
|
name: 'previousitemicon',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: 'Custom navigator previous item icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'nextitemicon',
|
|
|
|
description: 'Custom navigator next item icon template.'
|
|
|
|
},
|
|
|
|
{
|
2023-04-18 13:42:36 +00:00
|
|
|
name: 'previousthumbnailicon',
|
2023-04-06 08:21:23 +00:00
|
|
|
description: 'Custom thumbnail previous icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'nextthumbnailicon',
|
|
|
|
description: 'Custom thumbnail next icon template.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
galleria: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'Galleria',
|
|
|
|
description: 'Galleria is an advanced content gallery component.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: GalleriaProps,
|
|
|
|
slots: GalleriaSlots
|
|
|
|
}
|
|
|
|
};
|