2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
|
|
|
'p-orderlist p-component',
|
|
|
|
{
|
|
|
|
'p-orderlist-striped': props.stripedRows
|
|
|
|
}
|
|
|
|
],
|
|
|
|
controls: 'p-orderlist-controls',
|
2024-01-24 07:02:00 +00:00
|
|
|
container: 'p-orderlist-list-container',
|
2023-10-02 10:46:09 +00:00
|
|
|
header: 'p-orderlist-header',
|
|
|
|
list: 'p-orderlist-list',
|
|
|
|
item: ({ instance, item, id }) => [
|
|
|
|
'p-orderlist-item',
|
|
|
|
{
|
|
|
|
'p-highlight': instance.isSelected(item),
|
|
|
|
'p-focus': id === instance.focusedOptionId
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'orderlist',
|
|
|
|
classes
|
|
|
|
});
|