sudovanilla-website/public/@shoelace-style/shoelace/cdn/components/menu-item/submenu-controller.d.ts

37 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-05-13 22:34:06 -05:00
import { type HasSlotController } from '../../internal/slot.js';
import { type LocalizeController } from '../../utilities/localize.js';
import type { ReactiveController, ReactiveControllerHost } from 'lit';
import type SlMenuItem from './menu-item.js';
/** A reactive controller to manage the registration of event listeners for submenus. */
export declare class SubmenuController implements ReactiveController {
private host;
private popupRef;
private enableSubmenuTimer;
private isConnected;
private isPopupConnected;
private skidding;
private readonly hasSlotController;
private readonly localize;
private readonly submenuOpenDelay;
constructor(host: ReactiveControllerHost & SlMenuItem, hasSlotController: HasSlotController, localize: LocalizeController);
hostConnected(): void;
hostDisconnected(): void;
hostUpdated(): void;
private addListeners;
private removeListeners;
private handleMouseMove;
private handleMouseOver;
private handleSubmenuEntry;
private handleKeyDown;
private handleClick;
private handleFocusOut;
private handlePopupMouseover;
private handlePopupReposition;
private setSubmenuState;
private enableSubmenu;
private disableSubmenu;
private updateSkidding;
isExpanded(): boolean;
renderSubmenu(): import("lit-html").TemplateResult<1>;
}