2023-05-30 14:55:13 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import SpeedDialStyle from 'primevue/speeddial/style';
|
2023-05-30 14:55:13 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseSpeedDial',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
model: null,
|
|
|
|
visible: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
direction: {
|
|
|
|
type: String,
|
|
|
|
default: 'up'
|
|
|
|
},
|
|
|
|
transitionDelay: {
|
|
|
|
type: Number,
|
|
|
|
default: 30
|
|
|
|
},
|
|
|
|
type: {
|
|
|
|
type: String,
|
|
|
|
default: 'linear'
|
|
|
|
},
|
|
|
|
radius: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
mask: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
disabled: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
hideOnClickOutside: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
buttonClass: null,
|
|
|
|
maskStyle: null,
|
|
|
|
maskClass: null,
|
|
|
|
showIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
hideIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
rotateAnimation: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
tooltipOptions: null,
|
|
|
|
style: null,
|
|
|
|
class: null,
|
2024-04-09 11:24:04 +00:00
|
|
|
buttonProps: {
|
|
|
|
type: Object,
|
|
|
|
default() {
|
|
|
|
return { rounded: true };
|
|
|
|
}
|
|
|
|
},
|
|
|
|
actionButtonProps: {
|
|
|
|
type: Object,
|
|
|
|
default() {
|
|
|
|
return { severity: 'secondary', text: true, rounded: true, size: 'small' };
|
|
|
|
}
|
|
|
|
},
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabelledby: {
|
2023-05-30 14:55:13 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabel: {
|
2023-05-30 14:55:13 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: SpeedDialStyle,
|
2023-05-30 14:55:13 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|