2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance }) => [
|
|
|
|
'p-contextmenu p-component',
|
|
|
|
{
|
|
|
|
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 11:51:44 +00:00
|
|
|
rootList: 'p-contextmenu-root-list',
|
|
|
|
item: ({ instance, processedItem }) => [
|
2024-04-09 13:21:05 +00:00
|
|
|
'p-contextmenu-item',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
2024-04-09 13:21:05 +00:00
|
|
|
'p-contextmenu-item-active': instance.isItemActive(processedItem),
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-focus': instance.isItemFocused(processedItem),
|
|
|
|
'p-disabled': instance.isItemDisabled(processedItem)
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 11:51:44 +00:00
|
|
|
itemContent: 'p-contextmenu-item-content',
|
|
|
|
itemLink: 'p-contextmenu-item-link',
|
|
|
|
itemIcon: 'p-contextmenu-item-icon',
|
|
|
|
itemLabel: 'p-contextmenu-item-label',
|
2024-04-09 13:21:05 +00:00
|
|
|
submenuIcon: 'p-contextmenu-submenu-icon',
|
2024-04-09 13:43:12 +00:00
|
|
|
submenu: 'p-contextmenu-submenu',
|
2024-04-09 13:21:05 +00:00
|
|
|
separator: 'p-contextmenu-separator'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'contextmenu',
|
|
|
|
classes
|
|
|
|
});
|