import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef } 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 { ServerSideOptions } from '../../models/drop-down-server-options.interface'; import { DropDownOptions } from '../../models/drop-down-options.interface'; import { SelectedItemsState } from '../../utils/selected-items-state.utils'; import { DropDownSearchComponent } from '../drop-down-search/drop-down-search.component'; import { Subject } from 'rxjs'; import * as i0 from "@angular/core"; /** * NOTE: dont remove the below dynamic. it is used for the injection of * @Inject(DOCUMENT) private document: Document, * read more here https://github.com/angular/angular/issues/20351 */ /** @dynamic */ export declare class DefaultDropDownMenuContainerComponent implements OnInit, AfterViewInit, OnDestroy { protected renderer: Renderer2; protected cdr: ChangeDetectorRef; dropDownEventMessagesService: DropDownEventMessagesService; protected document: Document; viewContainerRef: ViewContainerRef; protected _items: DropDownItem[]; set items(items: DropDownItem[]); get items(): DropDownItem[]; private _dropDownOptions; set dropDownOptions(dropDownOptions: DropDownOptions); get dropDownOptions(): DropDownOptions; protected _serverSideOptions: any; set serverSideOptions(serverSideOptions: ServerSideOptions); get serverSideOptions(): ServerSideOptions; private _isServerSide; set isServerSide(isServerSide: boolean); get isServerSide(): boolean; private _selectedItemsState; set selectedItemsState(selectedItemsState: SelectedItemsState); get selectedItemsState(): SelectedItemsState; menuIndexNumber: number; nextCursor: any; isSelectionChangedSubscribedOnHost: boolean; isUsedAsReactiveForm: boolean; itemTemplateRef: TemplateRef; footerTemplateRef: TemplateRef; get viewContainerRefElement(): HTMLElement; /** * property indicator in order to show or hide the selection actions container. */ get showSelectionActionContainer(): boolean; /** * property indicator in order to show or hide the select all action. * The select all will NOT display in case * - single select dropdown * - showSelectAll is false * - server side and reactive form dropdown * - server side dropdown and @Output() selectionChanged is subscribed by host */ get showSelectAll(): boolean; searchValue: string; isAllItemsUnSelected: boolean; isAllItemsSelected: boolean; showSearch: boolean; isGivenItemsNil: boolean; protected ngUnSubscribe: Subject; resizable: boolean; hostAutomationId: string; searchComponentRef: DropDownSearchComponent; constructor(renderer: Renderer2, cdr: ChangeDetectorRef, dropDownEventMessagesService: DropDownEventMessagesService, document: Document, viewContainerRef: ViewContainerRef); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** * we listen to click on the host which is our mat menu in order to prevent * closing the menu on click * @param $event */ onMouseDown($event: any): void; /** * listen to mouseup and mousedown events * when dropdown supports resizable options. * - on mousedown we update the isResizing to true * - on mouseup we update the isResizing to false * * we do this since we want to prevent closing of the menu on the end of resizing */ listenToMouseUpOrDownEvents(): void; /** * on search change we update the searchValue property * so we can pass it to the empty search component */ searched(value: string): void; /** * set max width for resizeable dropdown. * in case we get max-width on resizableStyle and it is smaller than the maxWidth we set * the given max-width */ setMaxWidthForResizeable(): void; /** * set given dropdown style in case of resizable dropdown */ setResizableStyle(): void; /** * listen to escape and send message to close the dropdown */ listenToEscape(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=default-drop-down-menu-container.component.d.ts.map