2023-06-02 09:10:49 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import OrderListStyle from 'primevue/orderlist/style';
|
2023-06-02 09:10:49 +00:00
|
|
|
|
|
|
|
export default {
|
2023-06-02 15:43:30 +00:00
|
|
|
name: 'BaseOrderList',
|
2023-06-02 09:10:49 +00:00
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
modelValue: {
|
|
|
|
type: Array,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
selection: {
|
|
|
|
type: Array,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
dataKey: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
listStyle: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
metaKeySelection: {
|
|
|
|
type: Boolean,
|
2023-12-20 10:28:13 +00:00
|
|
|
default: false
|
2023-06-02 09:10:49 +00:00
|
|
|
},
|
2024-01-17 14:09:34 +00:00
|
|
|
autoOptionFocus: {
|
|
|
|
type: Boolean,
|
2024-01-24 07:02:00 +00:00
|
|
|
default: true
|
|
|
|
},
|
|
|
|
focusOnHover: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
2024-01-17 14:09:34 +00:00
|
|
|
},
|
2023-06-02 09:10:49 +00:00
|
|
|
responsive: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
breakpoint: {
|
|
|
|
type: String,
|
|
|
|
default: '960px'
|
|
|
|
},
|
|
|
|
stripedRows: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
tabindex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
listProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
moveUpButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
moveTopButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
moveDownButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
moveBottomButtonProps: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabelledby: {
|
2023-06-02 09:10:49 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabel: {
|
2023-06-02 09:10:49 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: OrderListStyle,
|
2023-06-02 09:10:49 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|