@gip-recia/eyebrow-user-info-lit
Version:
Web component to display into eyebrow menu a user information menu with profile picture and more.
51 lines • 1.72 kB
TypeScript
import 'regenerator-runtime';
import { LitElement, TemplateResult, PropertyValues } from 'lit';
import { UnsafeHTMLDirective } from 'lit-html/directives/unsafe-html.js';
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
import { DirectiveResult } from 'lit-html/directive';
declare enum ItemType {
Notification = "notification",
Settings = "settings",
InfoEtab = "info-etab",
ChangeEtab = "change-etab",
Starter = "starter",
Logout = "logout"
}
export declare class Eyebrow extends LitElement {
messages: never[];
portalBaseUrl: string;
displayName: string;
function: string;
picture: string;
menuIsDark: string;
avatarSize: string;
config: string;
notification: number;
forceNewUi: boolean;
isExpanded: boolean;
localConfig: Record<ItemType, false | {
icon?: IconDefinition;
link?: string | null;
}>;
static styles: import("lit").CSSResult;
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
protected shouldUpdate(_changedProperties: PropertyValues<this>): boolean;
mergeConfig(): void;
toggleDropdown(e: Event): void;
closeDropdown(e: Event, resetFocus?: boolean): void;
handleKeyPress(e: KeyboardEvent): void;
handleOutsideEvents(e: KeyboardEvent | MouseEvent): void;
emitEvent(e: Event, type: string): void;
getIcon(svg: IconDefinition): DirectiveResult<typeof UnsafeHTMLDirective>;
static i18n(): Record<ItemType, string>;
itemTemplate(item: {
id: ItemType;
icon?: IconDefinition;
link?: string | null;
}): TemplateResult;
render(): TemplateResult;
}
export {};
//# sourceMappingURL=eyebrow.d.ts.map