2023-05-31 22:28:41 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import GalleriaStyle from 'primevue/galleria/style';
|
2023-05-31 22:28:41 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseGalleria',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
2023-06-07 10:46:13 +00:00
|
|
|
id: {
|
2023-05-31 22:28:41 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
2023-06-07 10:46:13 +00:00
|
|
|
value: {
|
|
|
|
type: Array,
|
2023-05-31 22:28:41 +00:00
|
|
|
default: null
|
|
|
|
},
|
2023-06-07 10:46:13 +00:00
|
|
|
activeIndex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
fullScreen: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
visible: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
numVisible: {
|
|
|
|
type: Number,
|
|
|
|
default: 3
|
|
|
|
},
|
|
|
|
responsiveOptions: {
|
|
|
|
type: Array,
|
2023-05-31 22:28:41 +00:00
|
|
|
default: null
|
|
|
|
},
|
2023-06-07 10:46:13 +00:00
|
|
|
showItemNavigators: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
showThumbnailNavigators: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
showItemNavigatorsOnHover: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
changeItemOnIndicatorHover: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
circular: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
autoPlay: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
transitionInterval: {
|
|
|
|
type: Number,
|
|
|
|
default: 4000
|
|
|
|
},
|
|
|
|
showThumbnails: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
thumbnailsPosition: {
|
2023-05-31 22:28:41 +00:00
|
|
|
type: String,
|
2023-06-07 10:46:13 +00:00
|
|
|
default: 'bottom'
|
2023-05-31 22:28:41 +00:00
|
|
|
},
|
2023-06-07 10:46:13 +00:00
|
|
|
verticalThumbnailViewPortHeight: {
|
2023-05-31 22:28:41 +00:00
|
|
|
type: String,
|
2023-06-07 10:46:13 +00:00
|
|
|
default: '300px'
|
2023-05-31 22:28:41 +00:00
|
|
|
},
|
2023-06-07 10:46:13 +00:00
|
|
|
showIndicators: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
showIndicatorsOnItem: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
indicatorsPosition: {
|
2023-05-31 22:28:41 +00:00
|
|
|
type: String,
|
2023-06-07 10:46:13 +00:00
|
|
|
default: 'bottom'
|
|
|
|
},
|
|
|
|
baseZIndex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
2023-05-31 22:28:41 +00:00
|
|
|
},
|
2023-06-07 10:46:13 +00:00
|
|
|
maskClass: {
|
2023-05-31 22:28:41 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
2023-06-07 10:46:13 +00:00
|
|
|
},
|
|
|
|
containerStyle: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
containerClass: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
containerProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
prevButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
nextButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
2023-11-30 20:06:40 +00:00
|
|
|
},
|
|
|
|
ariaLabel: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
ariaRoledescription: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
2023-05-31 22:28:41 +00:00
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: GalleriaStyle,
|
2023-05-31 22:28:41 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcGalleria: this,
|
2023-05-31 22:28:41 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|