Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/components/menu-item/submenu-controller.d.ts
2024-09-05 00:39:25 -04:00

36 lines
1.3 KiB
TypeScript
Executable file

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>;
}