2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: 'p-panelmenu p-component',
|
|
|
|
panel: 'p-panelmenu-panel',
|
|
|
|
header: ({ instance, item }) => [
|
|
|
|
'p-panelmenu-header',
|
|
|
|
{
|
2023-11-19 13:47:19 +00:00
|
|
|
'p-highlight': instance.isItemActive(item) && !!item.items,
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-disabled': instance.isItemDisabled(item)
|
|
|
|
}
|
|
|
|
],
|
|
|
|
headerContent: 'p-panelmenu-header-content',
|
2023-11-08 12:49:16 +00:00
|
|
|
headerAction: 'p-panelmenu-header-action',
|
2023-10-02 10:46:09 +00:00
|
|
|
headerIcon: 'p-menuitem-icon',
|
|
|
|
headerLabel: 'p-menuitem-text',
|
|
|
|
toggleableContent: 'p-toggleable-content',
|
|
|
|
menuContent: 'p-panelmenu-content',
|
|
|
|
menu: 'p-panelmenu-root-list',
|
|
|
|
menuitem: ({ instance, processedItem }) => [
|
|
|
|
'p-menuitem',
|
|
|
|
{
|
|
|
|
'p-focus': instance.isItemFocused(processedItem),
|
|
|
|
'p-disabled': instance.isItemDisabled(processedItem)
|
|
|
|
}
|
|
|
|
],
|
|
|
|
content: 'p-menuitem-content',
|
2023-11-08 12:49:16 +00:00
|
|
|
action: 'p-menuitem-link',
|
2023-10-02 10:46:09 +00:00
|
|
|
icon: 'p-menuitem-icon',
|
|
|
|
label: 'p-menuitem-text',
|
|
|
|
submenuIcon: 'p-submenu-icon',
|
|
|
|
submenu: 'p-submenu-list',
|
|
|
|
separator: 'p-menuitem-separator'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'panelmenu',
|
|
|
|
classes
|
|
|
|
});
|