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-30 13:03:20 +00:00
|
|
|
headerLink: 'p-panelmenu-header-link',
|
2024-04-09 14:27:13 +00:00
|
|
|
headerIcon: 'p-panelmenu-header-icon',
|
|
|
|
headerLabel: 'p-panelmenu-header-label',
|
2024-04-30 13:03:20 +00:00
|
|
|
contentContainer: 'p-panelmenu-content-container',
|
|
|
|
content: 'p-panelmenu-content',
|
|
|
|
rootList: 'p-panelmenu-root-list',
|
|
|
|
item: ({ 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-30 13:03:20 +00:00
|
|
|
itemContent: 'p-panelmenu-item-content',
|
|
|
|
itemLink: 'p-panelmenu-item-link',
|
|
|
|
itemIcon: 'p-panelmenu-item-icon',
|
2024-04-09 14:27:13 +00:00
|
|
|
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
|
|
|
|
});
|