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',
|
|
|
|
{
|
2024-04-09 14:27:13 +00:00
|
|
|
'p-panelmenu-header-active': instance.isItemActive(item) && !!item.items,
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-disabled': instance.isItemDisabled(item)
|
|
|
|
}
|
|
|
|
],
|
|
|
|
headerContent: 'p-panelmenu-header-content',
|
2024-04-09 14:27:13 +00:00
|
|
|
headerAction: 'p-panelmenu-header-link',
|
|
|
|
headerIcon: 'p-panelmenu-header-icon',
|
|
|
|
headerLabel: 'p-panelmenu-header-label',
|
|
|
|
toggleableContent: 'p-panelmenu-content-container',
|
2023-10-02 10:46:09 +00:00
|
|
|
menuContent: 'p-panelmenu-content',
|
|
|
|
menu: 'p-panelmenu-root-list',
|
|
|
|
menuitem: ({ instance, processedItem }) => [
|
2024-04-09 14:27:13 +00:00
|
|
|
'p-panelmenu-item',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
|
|
|
'p-focus': instance.isItemFocused(processedItem),
|
|
|
|
'p-disabled': instance.isItemDisabled(processedItem)
|
|
|
|
}
|
|
|
|
],
|
2024-04-09 14:27:13 +00:00
|
|
|
content: 'p-panelmenu-item-content',
|
|
|
|
action: 'p-panelmenu-item-link',
|
|
|
|
icon: 'p-panelmenu-item-icon',
|
|
|
|
label: 'p-panelmenu-item-label',
|
|
|
|
submenuIcon: 'p-panelmenu-submenu-icon',
|
|
|
|
submenu: 'p-panelmenu-submenu',
|
2023-10-02 10:46:09 +00:00
|
|
|
separator: 'p-menuitem-separator'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'panelmenu',
|
|
|
|
classes
|
|
|
|
});
|