\n {this.loggedOut ? loggedOut : {label}}
\n \n );\n }\n}\n",":host {\n display: contents;\n}\n\n.flyoutmenu-container {\n & .flyoutmenu-wrapper {\n min-width: 200px;\n }\n\n .flyoutmenu-user-container {\n @apply grid;\n grid-template-columns: 80px 1fr;\n padding: 12px 6px 0 6px;\n\n .flyoutmenu-avatar-container {\n @apply flex items-center justify-center w-[80px] h-[80px];\n }\n\n .flyoutmenu-user-name {\n @apply font-button text-copy;\n }\n\n .flyoutmenu-user-info {\n @apply font-text text-copy-small;\n }\n\n span {\n @apply overflow-hidden;\n text-overflow: ellipsis;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';\n\nimport { PatternlibService } from '../../global/runtime';\nimport { ClassNames, LhClose } from '../../utils/interfaces';\n\n@Component({\n tag: 'patternlib-flyoutmenu',\n styleUrl: 'patternlib-flyoutmenu.scss',\n shadow: true,\n})\nexport class PatternlibFlyoutmenu {\n @Element() hostElement: HTMLPatternlibFlyoutmenuElement;\n\n /**\n * Show the Flyoutmenu\n */\n @Prop() show?: boolean = false;\n\n /**\n * Set the width of the Flyoutmenu in px\n */\n @Prop() width = '280px';\n\n /**\n * Set the height of the Flyoutmenu\n */\n @Prop() height = 'auto';\n\n /**\n * Set the user name inside the Flyoutmenu\n */\n @Prop() userName?: string;\n\n /**\n * Set the user info inside the Flyoutmenu\n */\n @Prop() userInfo?: string;\n\n /**\n * Set the user initials inside the Flyoutmenu\n */\n @Prop() userInitials?: string;\n\n /**\n * Set the position of the Flyoutmenu\n */\n @Prop() flyoutPosition: 'top' | 'bottom' | 'auto' = 'auto';\n\n /**\n * Define the Flyoutmenu z-index as a number\n */\n @Prop() zIndex = 100;\n\n /**\n * Set the default alignment of the Flyoutmenu\n */\n @Prop() defaultAlign: 'left' | 'center' | 'right' | 'auto' = 'auto';\n\n /**\n * Wether the component is registered at the FlyoutGroups handler or not.\n */\n @Prop() useFlyoutGroups = true;\n\n /**\n * Flyout group name. Only works if useFlyoutGroups is true.\n */\n @Prop() groupName?: string;\n\n /**\n * Hide Arrow\n */\n @Prop() hideArrow = false;\n\n /**\n * Set offset (needed to set if the Flyoutmenu is used inisde of a scrollable container, to reposition based on the scrollTop value)\n */\n @Prop() offset = 0;\n\n /**\n * Define the gap betwwen the Flyoutmenu button and container\n */\n @Prop() gap = 16;\n\n @Watch('groupName')\n async onGroupNameChange() {\n if (this.useFlyoutGroups) {\n PatternlibService.unregisterFlyout(this, this.groupName);\n\n PatternlibService.registerFlyout(this, this.groupName);\n }\n }\n\n /**\n * Internal state if Flyoutmenu is open\n */\n @State() isOpen: boolean;\n\n /**\n * Emits when closeFlyoutmenu() was invoked.\n */\n @Event({ eventName: 'lhFlyoutClosed' }) flyoutClosed: EventEmitter