import * as i0 from '@angular/core'; import { OnInit, TemplateRef, Type, OnDestroy, EventEmitter, ElementRef, AfterViewInit, QueryList } from '@angular/core'; import { ALuPopoverPanel, LuPopoverAlignment, ILuPopoverPanel } from '@lucca-front/ng/popover'; import * as i1 from '@lucca-front/ng/popover2'; import { PopoverDirective } from '@lucca-front/ng/popover2'; import { Observable } from 'rxjs'; declare class DropdownActionComponent { #private; readonly disabled: i0.InputSignalWithTransform; readonly critical: i0.InputSignalWithTransform; closePanel(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownDividerComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownGroupComponent { readonly label: i0.InputSignal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownItemComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownMenuComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuDropdownTriggerDirective<_T> implements OnInit { #private; protected popover2: PopoverDirective; /** References the popover instance that the trigger is associated with. */ set inputPanel(p: TemplateRef | Type | ALuPopoverPanel); constructor(); /** how the panel will be aligned with the target, allowed values: top, bottom, left, right * @deprecated prefer using customPositions instead * */ luDropdownAlignment: LuPopoverAlignment; ngOnInit(): void; /********************** * * LEGACY STUFF TO HANDLE EXISTING POSITIONS * ***********************/ private legacyPositionBuilder; private invertVerticalPos; private invertHorizontalPos; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "[luDropdown]", ["LuDropdownTrigger"], { "inputPanel": { "alias": "luDropdown"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.PopoverDirective; inputs: { "luPopoverPosition": "luDropdownPosition"; "luPopoverDisabled": "luDropdownDisabled"; "customPositions": "customPositions"; }; outputs: { "luPopoverOpened": "luDropdownOnOpen"; "luPopoverClosed": "luDropdownOnClose"; }; }]>; } /** * @deprecated use `LuDropdownTriggerDirective` instead */ declare class LuDropdownTriggerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface ILuDropdownItem { onSelect: Observable; focus(): void; } declare abstract class ALuDropdownItem implements ILuDropdownItem { abstract onSelect: Observable; abstract focus(): void; } declare class LuDropdownItemDirective extends ALuDropdownItem implements OnDestroy { private _eltRef; onSelect: EventEmitter; constructor(_eltRef: ElementRef); onClick(_event: Event): void; onEnter(_event: Event): void; focus(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * @deprecated use `LuDropdownItemDirective` instead */ declare class LuDropdownItemModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @deprecated prefer the new menu approach: https://prisme.lucca.io/94310e217/p/557682-dropdown */ declare class LuDropdownPanelComponent extends ALuPopoverPanel implements ILuPopoverPanel, OnDestroy, AfterViewInit { #private; /** * This method takes classes set on the host lu-popover element and applies them on the * popover template that displays in the overlay container. Otherwise, it's difficult * to style the containing popover from outside the component. * @param classes list of class names */ set inputPanelClasses(classes: string); /** * This method takes classes set on the host lu-popover element and applies them on the * popover template that displays in the overlay container. Otherwise, it's difficult * to style the containing popover from outside the component. * @param classes list of class names */ set inputContentClasses(classes: string); /** Event emitted when the popover is closed. */ close: EventEmitter; open: EventEmitter; hovered: EventEmitter; set vcTemplateRef(tr: TemplateRef); protected _items: ILuDropdownItem[]; protected _itemsQL: QueryList; set optionsQL(ql: QueryList); private _subs; constructor(); protected initItems(): void; ngAfterViewInit(): void; ngOnDestroy(): void; _emitCloseEvent(): void; _emitOpenEvent(): void; _emitHoveredEvent(hovered: boolean): void; onOpen(): void; private focusFirstItem; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated use `LuDropdownPanelComponent` instead */ declare class LuDropdownPanelModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @deprecated use `LuDropdownTriggerDirective, LuDropdownPanelComponent, LuDropdownItemDirective` instead */ declare class LuDropdownModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } type ILuDropdownPanel = ILuPopoverPanel; export { ALuDropdownItem, DropdownActionComponent, DropdownDividerComponent, DropdownGroupComponent, DropdownItemComponent, DropdownMenuComponent, LuDropdownItemDirective, LuDropdownItemModule, LuDropdownModule, LuDropdownPanelComponent, LuDropdownPanelModule, LuDropdownTriggerDirective, LuDropdownTriggerModule }; export type { ILuDropdownItem, ILuDropdownPanel };