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() {
|
2024-05-03 08:04:11 +00:00
|
|
|
return { severity: 'secondary', rounded: true, size: 'small' };
|
2024-04-09 11:24:04 +00:00
|
|
|
}
|
|
|
|
},
|
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 {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcSpeedDial: this,
|
2023-05-30 14:55:13 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|