import { AfterViewInit, ChangeDetectorRef, ElementRef, TemplateRef, Type } from '@angular/core'; import { DropDownItem } from '../../models/drop-down-item.interface'; import { DropDownEventMessagesService } from '../../services/drop-down-event-messages/drop-down-event-messages.service'; import { DropDownOptions } from '../../models/drop-down-options.interface'; import { MatLegacyMenuTrigger as MatMenuTrigger } from '@angular/material/legacy-menu'; import { NestedMenuStateService } from '../../services/nested-menu-state.service'; import { SelectedItemsState } from '../../utils/selected-items-state.utils'; import { DropDownChildOptions } from '../../models/drop-down-child-options.interface'; import { ServerSideOptions } from '../../models/drop-down-server-options.interface'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class DefaultDropDownItemComponent implements AfterViewInit { private cdr; dropDownEventMessagesService: DropDownEventMessagesService; private nestedMenuStateService; private _item; itemOption: string; set item(item: DropDownItem); get item(): DropDownItem; private _showSelectedMarker; set showSelectedMarker(showSelectedMarker: boolean); get showSelectedMarker(): boolean; private _capitalize; set capitalize(capitalize: boolean); get capitalize(): boolean; get isLink(): boolean; private _dropDownOptions; set dropDownOptions(dropDownOptions: DropDownOptions); get dropDownOptions(): DropDownOptions; _searchValue: string; set searchValue(searchValue: string); get searchValue(): string; private _selectedItemsState; set selectedItemsState(selectedItemsState: SelectedItemsState); get selectedItemsState(): SelectedItemsState; get childServerSideMenuOptions(): DropDownChildOptions; get childServerSideOptions(): ServerSideOptions; get childServerSideItemComponent(): Type; menuIndexNumber: number; itemIndex: number; itemTemplateRef: TemplateRef; trigger: MatMenuTrigger; triggerElementRef: ElementRef; itemTitle: ElementRef; itemTitleLink: ElementRef; itemTemplate: any; isTriggerItemShouldHighlighted$: Observable; lookHighlight: boolean; /** * ref to regular item element */ get itemTitleElm(): HTMLElement | undefined; /** * ref to link item element */ get itemTitleLinkElm(): HTMLElement | undefined; /** * ref to template item element */ get itemTitleTemplateElm(): HTMLElement | undefined; get itemTriggerElement(): HTMLElement | undefined; /** * get item element. * there are couple of item element: * 1. trigger element - an item with children * 2. title template element - when we get template item * 3. link title element * 4. item title */ get itemElement(): HTMLElement | undefined; constructor(cdr: ChangeDetectorRef, dropDownEventMessagesService: DropDownEventMessagesService, nestedMenuStateService: NestedMenuStateService); /** * set the item option in order to display the correct element. * for example, if we need to display the item as a link */ setItemOption(): void; /** * handle open/close of sub menu. * on hover item with children -> open its sub menu and close other sub menus if needed * @param item */ openSubMenu(item: DropDownItem): void; /** * highlight searched value */ highlightSearchedValue(): void; ngAfterViewInit(): void; /** * check if need to show for item ellipsis tooltip. * we override the default functionality of the singEllipsis directive. * * in the drop down the ellipsis is set on the button which contain padding from right side * of the text so we need to extract the text length from the button and calculate it * to check if we need to show the tooltip. */ showItemEllipsisTooltip(): (itemButton: HTMLElement) => boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=default-drop-down-item.component.d.ts.map