{"version":3,"file":"igniteui-angular-drop-down.mjs","names":[],"sources":["../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down-group.component.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down.common.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.html","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down-navigation.directive.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down-virtualization.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.html","../../../projects/igniteui-angular/drop-down/src/drop-down/autocomplete/autocomplete.directive.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/autocomplete/autocomplete.module.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/public_api.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down.module.ts"],"sourcesContent":["import { Component, Input, HostBinding, booleanAttribute, ChangeDetectionStrategy } from '@angular/core';\n\nlet NEXT_ID = 0;\n/**\n * The `<igx-drop-down-item>` is a container intended for row items in\n * a `<igx-drop-down>` container.\n */\n@Component({\n    selector: 'igx-drop-down-item-group',\n    template: `\n        <label id=\"{{labelId}}\">{{ label }}</label>\n        <ng-content select=\"igx-drop-down-item\"></ng-content>\n    `,\n    changeDetection: ChangeDetectionStrategy.Eager,\n    standalone: true\n})\nexport class IgxDropDownGroupComponent {\n    /**\n     * @hidden @internal\n     */\n    public get labelId(): string {\n        return `igx-item-group-label-${this._id}`;\n    }\n\n    @HostBinding(`attr.aria-labelledby`)\n    public get labelledBy(): string {\n        return this.labelId;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    @HostBinding('attr.role')\n    public role = 'group';\n\n    /** @hidden @internal */\n    @HostBinding('class.igx-drop-down__group')\n    public groupClass = true;\n    /**\n     * Sets/gets if the item group is disabled\n     *\n     * ```typescript\n     * const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup;\n     * // get\n     * ...\n     * const groupState: boolean = myDropDownGroup.disabled;\n     * ...\n     * //set\n     * ...\n     * myDropDownGroup,disabled = false;\n     * ...\n     * ```\n     *\n     * ```html\n     * <igx-drop-down-item-group [label]=\"'My Items'\" [disabled]=\"true\">\n     *     <igx-drop-down-item *ngFor=\"let item of items[index]\" [value]=\"item.value\">\n     *         {{ item.text }}\n     *     </igx-drop-down-item>\n     * </igx-drop-down-item-group>\n     * ```\n     *\n     * **NOTE:** All items inside of a disabled drop down group will be treated as disabled\n     */\n    @Input({ transform: booleanAttribute })\n    @HostBinding(`attr.aria-disabled`)\n    @HostBinding('class.igx-drop-down__group--disabled')\n    public disabled = false;\n\n    /**\n     * Sets/gets the label of the item group\n     *\n     * ```typescript\n     * const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup;\n     * // get\n     * ...\n     * const myLabel: string = myDropDownGroup.label;\n     * ...\n     * // set\n     * ...\n     * myDropDownGroup.label = 'My New Label';\n     * ...\n     * ```\n     *\n     * ```html\n     * <igx-drop-down-item-group [label]=\"'My new Label'\">\n     *      ...\n     * </igx-drop-down-item-group>\n     * ```\n     */\n    @Input()\n    public label!: string;\n\n    private _id = NEXT_ID++;\n}\n","import { CancelableEventArgs, CancelableBrowserEventArgs, IBaseEventArgs } from 'igniteui-angular/core';\nimport { IgxDropDownItemBaseDirective } from './drop-down-item.base';\nimport { IToggleView } from 'igniteui-angular/core';\nimport { EventEmitter, InjectionToken } from '@angular/core';\n\n/** @hidden */\nexport enum Navigate {\n    Up = -1,\n    Down = 1\n}\n\n/** Key actions that have designated handlers in drop down */\nexport const DropDownActionKey = {\n    ESCAPE: 'escape',\n    ENTER: 'enter',\n    SPACE: 'space',\n    TAB: 'tab'\n} as const;\nexport type DropDownActionKey = (typeof DropDownActionKey)[keyof typeof DropDownActionKey];\n\n/**\n * Interface that encapsulates selectionChanging event arguments - old selection, new selection and cancel selection.\n *\n * @export\n */\nexport interface ISelectionEventArgs extends CancelableEventArgs, IBaseEventArgs {\n    oldSelection: IgxDropDownItemBaseDirective;\n    newSelection: IgxDropDownItemBaseDirective;\n}\n\n/**\n * Interface for an instance of drop down navigation\n *\n * @export\n */\nexport interface IDropDownNavigationDirective {\n    target: any;\n    handleKeyDown(event: KeyboardEvent): void;\n    onArrowDownKeyDown(event?: KeyboardEvent): void;\n    onArrowUpKeyDown(event?: KeyboardEvent): void;\n    onEndKeyDown(event?: KeyboardEvent): void;\n    onHomeKeyDown(event?: KeyboardEvent): void;\n}\n\nexport const IGX_DROPDOWN_BASE = /*@__PURE__*/new InjectionToken<IDropDownBase>('IgxDropDownBaseToken');\n\n/**\n * @hidden\n */\nexport interface IDropDownList {\n    selectionChanging: EventEmitter<ISelectionEventArgs>;\n    width: string;\n    height: string;\n    id: string;\n    maxHeight: string;\n    collapsed: boolean;\n    items: IgxDropDownItemBaseDirective[];\n    headers: IgxDropDownItemBaseDirective[];\n    focusedItem: IgxDropDownItemBaseDirective | null;\n    navigateFirst(): void;\n    navigateLast(): void;\n    navigateNext(): void;\n    navigatePrev(): void;\n    navigateItem(newIndex: number, direction?: Navigate): void;\n    onItemActionKey(key: DropDownActionKey, event?: Event): void;\n}\n\n/**\n * @hidden\n */\nexport interface IDropDownBase extends IDropDownList, IToggleView {\n    selectedItem: any;\n    opening: EventEmitter<CancelableBrowserEventArgs>;\n    opened: EventEmitter<IBaseEventArgs>;\n    closing: EventEmitter<CancelableBrowserEventArgs>;\n    closed: EventEmitter<IBaseEventArgs>;\n    allowItemsFocus?: boolean;\n    setSelectedItem(index: number): void;\n    selectItem(item: IgxDropDownItemBaseDirective, event?: Event, emit?: boolean): void;\n}\n\n","import { IDropDownBase, IGX_DROPDOWN_BASE } from './drop-down.common';\nimport { Directive, Input, HostBinding, HostListener, ElementRef, Output, EventEmitter, booleanAttribute, DoCheck, inject } from '@angular/core';\nimport { IgxSelectionAPIService } from 'igniteui-angular/core';\nimport { IgxDropDownGroupComponent } from './drop-down-group.component';\n\nlet NEXT_ID = 0;\n\n/**\n * An abstract class defining a drop-down item:\n * With properties / styles for selection, highlight, height\n * Bindable property for passing data (`value: any`)\n * Parent component (has to be used under a parent with type `IDropDownBase`)\n * Method for handling click on Host()\n */\n@Directive({\n    selector: '[igxDropDownItemBase]',\n    standalone: true\n})\nexport class IgxDropDownItemBaseDirective implements DoCheck {\n    protected dropDown = inject<IDropDownBase>(IGX_DROPDOWN_BASE);\n    protected elementRef = inject(ElementRef);\n    protected group = inject(IgxDropDownGroupComponent, { optional: true });\n    protected selection? = inject<IgxSelectionAPIService>(IgxSelectionAPIService, { optional: true });\n\n    /**\n     * Sets/gets the `id` of the item.\n     * ```html\n     * <igx-drop-down-item [id] = 'igx-drop-down-item-0'></igx-drop-down-item>\n     * ```\n     * ```typescript\n     * let itemId =  this.item.id;\n     * ```\n     *\n     * @memberof IgxSelectItemComponent\n     */\n    @HostBinding('attr.id')\n    @Input()\n    public id = `igx-drop-down-item-${NEXT_ID++}`;\n\n    @HostBinding('attr.aria-label')\n    @Input()\n    public get ariaLabel(): string | null{\n        return this._label ? this._label : this.value ? this.value : null;\n    }\n\n    public set ariaLabel(value: string | null) {\n        this._label = value;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public get itemID() {\n        return this;\n    }\n\n    /**\n     * The data index of the dropdown item.\n     *\n     * ```typescript\n     * // get the data index of the selected dropdown item\n     * let selectedItemIndex = this.dropdown.selectedItem.index\n     * ```\n     */\n    @Input()\n    public get index(): number {\n        if (this._index === null) {\n            return this.itemIndex;\n        }\n        return this._index;\n    }\n\n    public set index(value) {\n        this._index = value;\n    }\n\n    /**\n     * Gets/sets the value of the item if the item is databound\n     *\n     * ```typescript\n     * // usage in IgxDropDownItemComponent\n     * // get\n     * let mySelectedItemValue = this.dropdown.selectedItem.value;\n     *\n     * // set\n     * let mySelectedItem = this.dropdown.selectedItem;\n     * mySelectedItem.value = { id: 123, name: 'Example Name' }\n     *\n     * // usage in IgxComboItemComponent\n     * // get\n     * let myComboItemValue = this.combo.items[0].value;\n     * ```\n     */\n    @Input()\n    public value: any;\n\n    /**\n     * @hidden @internal\n     */\n    @HostBinding('class.igx-drop-down__item')\n    public get itemStyle(): boolean {\n        return !this.isHeader;\n    }\n\n    /**\n     * Sets/Gets if the item is the currently selected one in the dropdown\n     *\n     * ```typescript\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let isMyItemSelected = mySelectedItem.selected; // true\n     * ```\n     *\n     * Two-way data binding\n     * ```html\n     * <igx-drop-down-item [(selected)]='model.isSelected'></igx-drop-down-item>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    @HostBinding('attr.aria-selected')\n    @HostBinding('class.igx-drop-down__item--selected')\n    public get selected(): boolean {\n        return this._selected;\n    }\n\n    public set selected(value: boolean) {\n        if (this.isHeader) {\n            return;\n        }\n        this._selected = value;\n        this.selectedChange.emit(this._selected);\n    }\n\n    /**\n     * @hidden\n     */\n    @Output()\n    public selectedChange = new EventEmitter<boolean>();\n\n    /**\n     * Sets/gets if the given item is focused\n     * ```typescript\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let isMyItemFocused = mySelectedItem.focused;\n     * ```\n     */\n    @HostBinding('class.igx-drop-down__item--focused')\n    public get focused(): boolean {\n        return this.isSelectable && this._focused;\n    }\n\n    /**\n     * ```html\n     *  <igx-drop-down-item *ngFor=\"let item of items\" focused={{!item.focused}}>\n     *      <div>\n     *          {{item.field}}\n     *      </div>\n     *  </igx-drop-down-item>\n     * ```\n     */\n    public set focused(value: boolean) {\n        this._focused = value;\n    }\n\n    /**\n     * Sets/gets if the given item is header\n     * ```typescript\n     *  // get\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let isMyItemHeader = mySelectedItem.isHeader;\n     * ```\n     *\n     * ```html\n     *  <!--set-->\n     *  <igx-drop-down-item *ngFor=\"let item of items\">\n     *      <div *ngIf=\"items.indexOf(item) === 5; then item.isHeader = true\">\n     *          {{item.field}}\n     *      </div>\n     *  </igx-drop-down-item>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    @HostBinding('class.igx-drop-down__header')\n    public isHeader!: boolean;\n\n    /**\n     * Sets/gets if the given item is disabled\n     *\n     * ```typescript\n     *  // get\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let myItemIsDisabled = mySelectedItem.disabled;\n     * ```\n     *\n     * ```html\n     *  <igx-drop-down-item *ngFor=\"let item of items\" disabled={{!item.disabled}}>\n     *      <div>\n     *          {{item.field}}\n     *      </div>\n     *  </igx-drop-down-item>\n     * ```\n     * **NOTE:** Drop-down items inside of a disabled drop down group will always count as disabled\n     */\n    @Input({ transform: booleanAttribute })\n    @HostBinding('attr.aria-disabled')\n    @HostBinding('class.igx-drop-down__item--disabled')\n    public get disabled(): boolean {\n        return this.group ? this.group.disabled || this._disabled : this._disabled;\n    }\n\n    public set disabled(value: boolean) {\n        this._disabled = value;\n    }\n\n    /**\n     * Gets/sets the `role` attribute of the item. Default is 'option'.\n     *\n     * ```html\n     *  <igx-drop-down-item [role]=\"customRole\"></igx-drop-down-item>\n     * ```\n     */\n    @Input()\n    @HostBinding('attr.role')\n    public role = 'option';\n\n    /**\n     * Gets item index\n     *\n     * @hidden @internal\n     */\n    public get itemIndex(): number {\n        return this.dropDown.items.indexOf(this);\n    }\n\n    /**\n     * Gets item element height\n     *\n     * @hidden @internal\n     */\n    public get elementHeight(): number {\n        return this.elementRef.nativeElement.clientHeight;\n    }\n\n    /**\n     * Get item html element\n     *\n     * @hidden @internal\n     */\n    public get element(): ElementRef {\n        return this.elementRef;\n    }\n\n    protected get hasIndex(): boolean {\n        return this._index !== null && this._index !== undefined;\n    }\n\n    /**\n     * @hidden\n     */\n    protected _focused = false;\n    protected _selected = false;\n    protected _index: number | null = null;\n    protected _disabled = false;\n    protected _label: string | null = null;\n\n    /**\n     * @hidden\n     * @internal\n     */\n    @HostListener('click', ['$event'])\n    public clicked(_event: MouseEvent): void { }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    @HostListener('mousedown', ['$event'])\n    public handleMousedown(event: MouseEvent): void {\n        if (!this.dropDown.allowItemsFocus) {\n            event.preventDefault();\n        }\n    }\n\n    public ngDoCheck(): void {\n        if (this._selected) {\n            const dropDownSelectedItem = this.dropDown.selectedItem;\n            if (!dropDownSelectedItem) {\n                this.dropDown.selectItem(this, undefined, false);\n            } else if (this.hasIndex\n                ? this._index !== dropDownSelectedItem.index || this.value !== dropDownSelectedItem.value :\n                this !== dropDownSelectedItem) {\n                this.dropDown.selectItem(this, undefined, false);\n            }\n        }\n    }\n\n    /** Returns true if the items is not a header or disabled  */\n    protected get isSelectable(): boolean {\n        return !(this.disabled || this.isHeader);\n    }\n\n    /** If `allowItemsFocus` is enabled, keep the browser focus on the active item */\n    protected ensureItemFocus() {\n        if (this.dropDown.allowItemsFocus) {\n            const focusedItem = this.dropDown.items.find((item) => item.focused);\n            if (!focusedItem) {\n                return;\n            }\n            focusedItem.element.nativeElement.focus({ preventScroll: true });\n        }\n    }\n}\n","import {\n  Component,\n  HostBinding,\n  ChangeDetectionStrategy\n} from '@angular/core';\nimport { IgxDropDownItemBaseDirective } from './drop-down-item.base';\n\n/**\n * The `<igx-drop-down-item>` is a container intended for row items in\n * a `<igx-drop-down>` container.\n */\n@Component({\n    selector: 'igx-drop-down-item',\n    templateUrl: 'drop-down-item.component.html',\n    changeDetection: ChangeDetectionStrategy.Eager,\n    standalone: true\n})\nexport class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective {\n    /**\n     * Sets/gets if the given item is focused\n     * ```typescript\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let isMyItemFocused = mySelectedItem.focused;\n     * ```\n     */\n    public override get focused(): boolean {\n        let focusedState = this._focused;\n        if (this.hasIndex) {\n            const focusedItem = this.selection!.first_item(`${this.dropDown.id}-active`);\n            const focusedIndex = focusedItem ? focusedItem.index : -1;\n            focusedState = this._index === focusedIndex;\n        }\n        return this.isSelectable && focusedState;\n    }\n\n    /**\n     * Sets/gets if the given item is focused\n     * ```typescript\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let isMyItemFocused = mySelectedItem.focused;\n     * ```\n     */\n    public override set focused(value: boolean) {\n        this._focused = value;\n    }\n    /**\n     * Sets/Gets if the item is the currently selected one in the dropdown\n     *\n     * ```typescript\n     *  let mySelectedItem = this.dropdown.selectedItem;\n     *  let isMyItemSelected = mySelectedItem.selected; // true\n     * ```\n     *\n     * Two-way data binding\n     * ```html\n     * <igx-drop-down-item [(selected)]='model.isSelected'></igx-drop-down-item>\n     * ```\n     */\n    public override get selected(): boolean {\n        if (this.hasIndex) {\n            const item = this.selection!.first_item(`${this.dropDown.id}`);\n            return item ? item.index === this._index && item.value === this.value : false;\n        }\n        return this._selected;\n    }\n\n    /**\n     * Sets/Gets if the item is the currently selected one in the dropdown\n     *\n     */\n    public override set selected(value: boolean) {\n        if (this.isHeader) {\n            return;\n        }\n        this._selected = value;\n        this.selectedChange.emit(this._selected);\n    }\n    /**\n     * @hidden @internal\n     */\n    @HostBinding('attr.tabindex')\n    public get setTabIndex() {\n        const shouldSetTabIndex = this.dropDown.allowItemsFocus && this.isSelectable;\n        if (shouldSetTabIndex) {\n            return 0;\n        } else {\n            return null;\n        }\n    }\n\n    public override clicked(event: MouseEvent): void {\n        if (!this.isSelectable) {\n            this.ensureItemFocus();\n            return;\n        }\n        if (this.selection) {\n            this.dropDown.selectItem(this, event);\n        }\n    }\n}\n","<span class=\"igx-drop-down__content\">\n    <ng-content select=\"igx-prefix, [igxPrefix]\"></ng-content>\n    <span class=\"igx-drop-down__inner\">\n        <ng-content></ng-content>\n    </span>\n    <ng-content select=\"igx-suffix, [igxSuffix]\"></ng-content>\n    <ng-content select=\"igx-divider\"></ng-content>\n</span>\n","import { Directive, Input, HostListener, inject, HostBinding } from '@angular/core';\nimport { IGX_DROPDOWN_BASE } from './drop-down.common';\nimport { IDropDownNavigationDirective } from './drop-down.common';\nimport { IgxDropDownBaseDirective } from './drop-down.base';\nimport { DropDownActionKey } from './drop-down.common';\n\n/**\n * Navigation Directive that handles keyboard events on its host and controls a targeted drop down base component\n */\n@Directive({\n    selector: '[igxDropDownItemNavigation]',\n    standalone: true\n})\nexport class IgxDropDownItemNavigationDirective implements IDropDownNavigationDirective {\n    public dropdown = inject<IgxDropDownBaseDirective>(IGX_DROPDOWN_BASE, { self: true, optional: true });\n\n\n    protected _target: IgxDropDownBaseDirective = null!;\n\n    /**\n     * Gets the target of the navigation directive;\n     *\n     * ```typescript\n     * // Get\n     * export class MyComponent {\n     *  ...\n     *  @ContentChild(IgxDropDownNavigationDirective)\n     *  navDirective: IgxDropDownNavigationDirective = null\n     *  ...\n     *  const navTarget: IgxDropDownBaseDirective = navDirective.navTarget\n     * }\n     * ```\n     */\n     public get target(): IgxDropDownBaseDirective {\n        return this._target;\n    }\n\n    /**\n     * Sets the target of the navigation directive;\n     * If no valid target is passed, it falls back to the drop down context\n     *\n     * ```html\n     * <!-- Set -->\n     * <input [igxDropDownItemNavigation]=\"dropdown\" />\n     * ...\n     * <igx-drop-down #dropdown>\n     * ...\n     * </igx-drop-down>\n     * ```\n     */\n    @Input('igxDropDownItemNavigation')\n    public set target(target: IgxDropDownBaseDirective) {\n        this._target = target ? target : this.dropdown!;\n    }\n\n    @HostBinding('attr.aria-activedescendant')\n    public get activeDescendant(): string {\n        return this._target?.activeDescendant!;\n    }\n\n    /**\n     * Captures keydown events and calls the appropriate handlers on the target component\n     */\n    @HostListener('keydown', ['$event'])\n    public handleKeyDown(event: KeyboardEvent) {\n        if (event) {\n            const key = event.key.toLowerCase();\n            if (!this.target.collapsed) { // If dropdown is opened\n                const navKeys = ['esc', 'escape', 'enter', 'space', 'spacebar', ' ',\n            'arrowup', 'up', 'arrowdown', 'down', 'home', 'end', 'tab'];\n                if (navKeys.indexOf(key) === -1) { // If key has appropriate function in DD\n                    return;\n                }\n                if (key !== 'tab') { // Prevent default behavior for all keys except Tab\n                    event.preventDefault();\n                    event.stopPropagation();\n                }\n            } else { // If dropdown is closed, do nothing\n                return;\n            }\n            switch (key) {\n                case 'esc':\n                case 'escape':\n                    this.target.onItemActionKey(DropDownActionKey.ESCAPE, event);\n                    break;\n                case 'enter':\n                    this.target.onItemActionKey(DropDownActionKey.ENTER, event);\n                    break;\n                case 'space':\n                case 'spacebar':\n                case ' ':\n                    this.target.onItemActionKey(DropDownActionKey.SPACE, event);\n                    break;\n                case 'arrowup':\n                case 'up':\n                    this.onArrowUpKeyDown();\n                    break;\n                case 'arrowdown':\n                case 'down':\n                    this.onArrowDownKeyDown();\n                    break;\n                case 'home':\n                    this.onHomeKeyDown();\n                    break;\n                case 'end':\n                    this.onEndKeyDown();\n                    break;\n                case 'tab':\n                    this.target.onItemActionKey(DropDownActionKey.TAB, event);\n                    break;\n                default:\n                    return;\n            }\n        }\n    }\n\n    /**\n     * Navigates to previous item\n     */\n     public onArrowDownKeyDown() {\n        this.target.navigateNext();\n    }\n\n    /**\n     * Navigates to previous item\n     */\n     public onArrowUpKeyDown() {\n        this.target.navigatePrev();\n    }\n\n    /**\n     * Navigates to target's last item\n     */\n     public onEndKeyDown() {\n        this.target.navigateLast();\n    }\n\n    /**\n     * Navigates to target's first item\n     */\n     public onHomeKeyDown() {\n        this.target.navigateFirst();\n    }\n}\n","import {\n    Input, HostBinding, ElementRef, QueryList, Output, EventEmitter, ChangeDetectorRef, Directive,\n    OnInit,\n    DOCUMENT,\n    inject\n} from '@angular/core';\n\nimport { Navigate, ISelectionEventArgs } from './drop-down.common';\nimport { IDropDownList } from './drop-down.common';\nimport { DropDownActionKey } from './drop-down.common';\nimport { IgxDropDownItemBaseDirective } from './drop-down-item.base';\n\nlet NEXT_ID = 0;\n\n/**\n * An abstract class, defining a drop-down component, with:\n * Properties for display styles and classes\n * A collection items of type drop down item base\n * Properties and methods for navigating (highlighting/focusing) items from the collection\n * Properties and methods for selecting items from the collection\n */\n@Directive()\nexport abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit {\n    protected elementRef = inject(ElementRef);\n    protected cdr = inject(ChangeDetectorRef);\n    public document = inject(DOCUMENT);\n    \n    /**\n     * Emitted when item selection is changing, before the selection completes\n     *\n     * ```html\n     * <igx-drop-down (selectionChanging)='handleSelection()'></igx-drop-down>\n     * ```\n     */\n    @Output()\n    public selectionChanging = new EventEmitter<ISelectionEventArgs>();\n\n    /**\n     *  Gets/Sets the width of the drop down\n     *\n     * ```typescript\n     * // get\n     * let myDropDownCurrentWidth = this.dropdown.width;\n     * ```\n     * ```html\n     * <!--set-->\n     * <igx-drop-down [width]='160px'></igx-drop-down>\n     * ```\n     */\n    @Input()\n    public width!: string;\n\n    /**\n     * Gets/Sets the height of the drop down\n     *\n     * ```typescript\n     * // get\n     * let myDropDownCurrentHeight = this.dropdown.height;\n     * ```\n     * ```html\n     * <!--set-->\n     * <igx-drop-down [height]='400px'></igx-drop-down>\n     * ```\n     */\n    @Input()\n    public height!: string;\n\n    /**\n     * Gets/Sets the drop down's id\n     *\n     * ```typescript\n     * // get\n     * let myDropDownCurrentId = this.dropdown.id;\n     * ```\n     * ```html\n     * <!--set-->\n     * <igx-drop-down [id]='newDropDownId'></igx-drop-down>\n     * ```\n     */\n    @HostBinding('attr.id')\n    @Input()\n    public get id(): string {\n        return this._id;\n    }\n    public set id(value: string) {\n        this._id = value;\n    }\n\n    /**\n     * Gets/Sets the drop down's container max height.\n     *\n     * ```typescript\n     * // get\n     * let maxHeight = this.dropdown.maxHeight;\n     * ```\n     * ```html\n     * <!--set-->\n     * <igx-drop-down [maxHeight]='200px'></igx-drop-down>\n     * ```\n     */\n    @Input()\n    @HostBinding('style.maxHeight')\n    public maxHeight: string = null!;\n\n    /**\n     * Get all non-header items\n     *\n     * ```typescript\n     * let myDropDownItems = this.dropdown.items;\n     * ```\n     */\n    public get items(): IgxDropDownItemBaseDirective[] {\n        const items: IgxDropDownItemBaseDirective[] = [];\n        if (this.children !== undefined) {\n            for (const child of this.children.toArray()) {\n                if (!child.isHeader) {\n                    items.push(child);\n                }\n            }\n        }\n\n        return items;\n    }\n\n    /**\n     * Get all header items\n     *\n     * ```typescript\n     * let myDropDownHeaderItems = this.dropdown.headers;\n     * ```\n     */\n    public get headers(): IgxDropDownItemBaseDirective[] {\n        const headers: IgxDropDownItemBaseDirective[] = [];\n        if (this.children !== undefined) {\n            for (const child of this.children.toArray()) {\n                if (child.isHeader) {\n                    headers.push(child);\n                }\n            }\n        }\n\n        return headers;\n    }\n\n    /**\n     * Get dropdown html element\n     *\n     * ```typescript\n     * let myDropDownElement = this.dropdown.element;\n     * ```\n     */\n    public get element() {\n        return this.elementRef.nativeElement;\n    }\n    /**\n     * @hidden @internal\n     * Get dropdown's html element of its scroll container\n     */\n    public get scrollContainer(): HTMLElement {\n        return this.element;\n    }\n\n    /**\n     * @hidden @internal\n     * Gets the id of the focused item during dropdown navigation.\n     * This is used to update the `aria-activedescendant` attribute of\n     * the drop down navigation host element.\n     */\n    public get activeDescendant (): string | null {\n        return this.focusedItem?.id ?? null;\n    }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public children!: QueryList<IgxDropDownItemBaseDirective>;\n\n    protected _width: any;\n    protected _height: any;\n    protected _focusedItem: any = null;\n    protected _id = `igx-drop-down-${NEXT_ID++}`;\n    protected computedStyles: any;\n\n    /**\n     * Gets if the dropdown is collapsed\n     */\n    public abstract readonly collapsed: boolean;\n\n    public ngOnInit(): void {\n        this.computedStyles = this.document.defaultView!.getComputedStyle(this.elementRef.nativeElement);\n    }\n\n    /** Keydown Handler */\n    public onItemActionKey(key: DropDownActionKey, event?: Event) {\n        switch (key) {\n            case DropDownActionKey.ENTER:\n            case DropDownActionKey.SPACE:\n                this.selectItem(this.focusedItem!, event);\n                break;\n            case DropDownActionKey.ESCAPE:\n            case DropDownActionKey.TAB:\n        }\n    }\n\n    /**\n     * Emits selectionChanging with the target item & event\n     *\n     * @hidden @internal\n     * @param newSelection the item selected\n     * @param event the event that triggered the call\n     */\n    public selectItem(newSelection?: IgxDropDownItemBaseDirective, event?: Event, emit = true) {  // eslint-disable-line\n        this.selectionChanging.emit({\n            newSelection: newSelection!,\n            oldSelection: null!,\n            cancel: false\n        });\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public get focusedItem(): IgxDropDownItemBaseDirective | null {\n        return this._focusedItem;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public set focusedItem(item: IgxDropDownItemBaseDirective | null) {\n        this._focusedItem = item;\n    }\n\n    /**\n     * Navigates to the item on the specified index\n     *\n     * @param newIndex number - the index of the item in the `items` collection\n     */\n    public navigateItem(newIndex: number) {\n        if (newIndex !== -1) {\n            const oldItem = this._focusedItem;\n            const newItem = this.items[newIndex];\n            if (oldItem) {\n                oldItem.focused = false;\n            }\n            this.focusedItem = newItem;\n            this.scrollToHiddenItem(newItem);\n            this.focusedItem.focused = true;\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public navigateFirst() {\n        this.navigate(Navigate.Down, -1);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public navigateLast() {\n        this.navigate(Navigate.Up, this.items.length);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public navigateNext() {\n        this.navigate(Navigate.Down);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public navigatePrev() {\n        this.navigate(Navigate.Up);\n    }\n\n    protected scrollToHiddenItem(newItem: IgxDropDownItemBaseDirective) {\n        const elementRect = newItem.element.nativeElement.getBoundingClientRect();\n        const parentRect = this.scrollContainer.getBoundingClientRect();\n        if (parentRect.top > elementRect.top) {\n            this.scrollContainer.scrollTop -= (parentRect.top - elementRect.top);\n        }\n\n        if (parentRect.bottom < elementRect.bottom) {\n            this.scrollContainer.scrollTop += (elementRect.bottom - parentRect.bottom);\n        }\n    }\n\n    protected navigate(direction: Navigate, currentIndex?: number) {\n        let index = -1;\n        if (this._focusedItem) {\n            index = currentIndex ? currentIndex : this.focusedItem!.itemIndex;\n        }\n        const newIndex = this.getNearestSiblingFocusableItemIndex(index, direction);\n        this.navigateItem(newIndex);\n    }\n\n    protected getNearestSiblingFocusableItemIndex(startIndex: number, direction: Navigate): number {\n        let index = startIndex;\n        const items = this.items;\n        while (items[index + direction] && items[index + direction].disabled) {\n            index += direction;\n        }\n\n        index += direction;\n        if (index >= 0 && index < items.length) {\n            return index;\n        } else {\n            return -1;\n        }\n    }\n}\n","import { ElementRef } from '@angular/core';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\nimport { Subject } from 'rxjs';\nimport { take, takeUntil } from 'rxjs/operators';\nimport { IgxForOfToken } from 'igniteui-angular/directives';\nimport { IgxVirtualScrollComponent } from 'igniteui-angular/virtual-scroll';\nimport { Navigate } from './drop-down.common';\n\n/**\n * @hidden @internal\n *\n * What differs between a projected `*igxFor` and a projected `igx-virtual-scroll`, so the\n * drop-down keeps one path for navigation, scrolling and active-descendant tracking.\n * Items are addressed by their index in the whole collection, not in the loaded subset.\n */\nexport interface IgxDropDownVirtualization {\n    /** How many items the collection has, including any a remote service has not sent. */\n    readonly length: number;\n\n    /** The collection index the loaded items begin at; 0 unless the collection is paged. */\n    readonly startIndex: number;\n\n    /** The element that scrolls, for listeners and for restoring the offset on reopen. */\n    readonly scrollElement: HTMLElement;\n\n    /** Scroll offset of the virtualized viewport. */\n    scrollPosition: number;\n\n    /** The item at a collection index, or `undefined` when it is not loaded. */\n    itemAt(index: number): any;\n\n    /** The collection index of the first loaded item that matches, or -1. */\n    findIndex(predicate: (item: any) => boolean): number;\n\n    /** Whether an index currently has an element in the DOM. */\n    isIndexRendered(index: number): boolean;\n\n    /** Whether a record has been loaded for an index, rendered or not. */\n    isIndexLoaded(index: number): boolean;\n\n    /**\n     * Brings `index` into view, then runs `onRendered` once the scroll settled. The element\n     * can still be missing then, when the page holding it has not arrived.\n     */\n    scrollToIndex(index: number, direction: Navigate, onRendered: () => void): void;\n\n    /** Puts `index` in the middle of the viewport, for revealing the selection on open. */\n    alignToIndex(index: number): void;\n\n    /** Runs `callback` whenever the rendered window changes. */\n    onWindowChange(callback: () => void): void;\n\n    /** Drops the subscriptions, for when the projected content is replaced. */\n    disconnect(): void;\n}\n\n/** The virtualization a drop-down was given, or `null` when its items are all rendered. */\nexport function createDropDownVirtualization(\n    forOf: IgxForOfToken<any> | undefined,\n    virtualScroll: IgxVirtualScrollComponent<any> | undefined,\n    virtualScrollRef: ElementRef<HTMLElement> | undefined\n): IgxDropDownVirtualization | null {\n    if (virtualScroll && virtualScrollRef) {\n        return new VirtualScrollVirtualization(virtualScroll, virtualScrollRef);\n    }\n    return forOf ? new ForOfVirtualization(forOf) : null;\n}\n\n/** Items virtualized by a projected `igx-virtual-scroll`, which is itself the scrolling element. */\nclass VirtualScrollVirtualization implements IgxDropDownVirtualization {\n    private readonly _disconnect = new Subject<void>();\n\n    constructor(\n        private _scroll: IgxVirtualScrollComponent<any>,\n        private _ref: ElementRef<HTMLElement>\n    ) { }\n\n    public get length(): number {\n        const window = this._scroll.dataWindow();\n        return window\n            ? Math.max(window.totalCount, this.startIndex + (window.items?.length ?? 0))\n            : (this._scroll.data() ?? []).length;\n    }\n\n    public get startIndex(): number {\n        return this._scroll.dataWindow()?.startIndex ?? 0;\n    }\n\n    public get scrollElement(): HTMLElement {\n        return this._ref.nativeElement;\n    }\n\n    public get scrollPosition(): number {\n        return this.scrollElement.scrollTop;\n    }\n\n    public set scrollPosition(value: number) {\n        this.scrollElement.scrollTop = value ?? 0;\n    }\n\n    public itemAt(index: number): any {\n        const window = this._scroll.dataWindow();\n        return window\n            ? window.items?.[index - this.startIndex]\n            : (this._scroll.data() ?? [])[index];\n    }\n\n    public findIndex(predicate: (item: any) => boolean): number {\n        const window = this._scroll.dataWindow();\n        const items = (window ? window.items : this._scroll.data()) ?? [];\n        const found = items.findIndex(predicate);\n        return found < 0 ? -1 : found + this.startIndex;\n    }\n\n    /** `stateChange` reports the range wanted, which reaches past the rows that arrived. */\n    public isIndexRendered(index: number): boolean {\n        return !!this._ref.nativeElement.querySelector(`[data-index=\"${index}\"]`);\n    }\n\n    public isIndexLoaded(index: number): boolean {\n        const window = this._scroll.dataWindow();\n        const count = window ? (window.items?.length ?? 0) : (this._scroll.data() ?? []).length;\n        return Number.isInteger(index)\n            && index >= this.startIndex\n            && index < this.startIndex + count;\n    }\n\n    /** `'nearest'` leaves the offset alone when the item is already fully in view. */\n    public scrollToIndex(index: number, _direction: Navigate, onRendered: () => void): void {\n        const wasRendered = this.isIndexRendered(index);\n        const scrolled = this._scroll.scrollToIndex(index, { block: 'nearest' });\n\n        if (wasRendered) {\n            onRendered();\n            return;\n        }\n        void scrolled.then(onRendered);\n    }\n\n    public alignToIndex(index: number): void {\n        void this._scroll.scrollToIndex(index, { block: 'center' });\n    }\n\n    public onWindowChange(callback: () => void): void {\n        outputToObservable(this._scroll.stateChange)\n            .pipe(takeUntil(this._disconnect))\n            .subscribe(() => callback());\n    }\n\n    public disconnect(): void {\n        this._disconnect.next();\n        this._disconnect.complete();\n    }\n}\n\n/** Items virtualized by a projected `*igxFor`, which keeps a scrollbar of its own. */\nclass ForOfVirtualization implements IgxDropDownVirtualization {\n    private readonly _disconnect = new Subject<void>();\n\n    /** `*igxFor` is bound to the whole collection, so it always starts at its beginning. */\n    public readonly startIndex = 0;\n\n    constructor(private _forOf: IgxForOfToken<any>) { }\n\n    public get length(): number {\n        return this._forOf.totalItemCount || this._items.length;\n    }\n\n    public get scrollElement(): HTMLElement {\n        return this._forOf.getScroll()!;\n    }\n\n    public get scrollPosition(): number {\n        return this._forOf.scrollPosition;\n    }\n\n    public set scrollPosition(value: number) {\n        this._forOf.scrollPosition = value;\n    }\n\n    public itemAt(index: number): any {\n        return this._items[index];\n    }\n\n    public findIndex(predicate: (item: any) => boolean): number {\n        return this._items.findIndex(predicate);\n    }\n\n    public isIndexRendered(index: number): boolean {\n        const { startIndex, chunkSize } = this._forOf.state;\n        return index >= startIndex! && index < startIndex! + chunkSize!;\n    }\n\n    public isIndexLoaded(index: number): boolean {\n        return Number.isInteger(index) && index >= 0 && index < this._items.length;\n    }\n\n    public scrollToIndex(index: number, direction: Navigate, onRendered: () => void): void {\n        if (!this._needsScroll(index, direction)) {\n            onRendered();\n            return;\n        }\n\n        this._forOf.scrollTo(index);\n        this._forOf.chunkLoad.pipe(take(1)).subscribe(() => onRendered());\n    }\n\n    public alignToIndex(index: number): void {\n        const itemSize = this._forOf.igxForItemSize as number;\n        const itemsInView = (this._forOf.igxForContainerSize as number) / itemSize;\n\n        this._forOf.getScroll()!.scrollTop =\n            this._forOf.getScrollForIndex(index) - (itemsInView / 2 - 1) * itemSize;\n    }\n\n    public onWindowChange(callback: () => void): void {\n        this._forOf.chunkLoad.pipe(takeUntil(this._disconnect)).subscribe(() => callback());\n    }\n\n    public disconnect(): void {\n        this._disconnect.next();\n        this._disconnect.complete();\n    }\n\n    /** `*igxFor` is bound to the whole collection, so its indices are already global. */\n    private get _items(): any[] {\n        return this._forOf.igxForOf ?? [];\n    }\n\n    /** Whether `index` is outside the loaded chunk, or inside it but off screen. */\n    private _needsScroll(index: number, direction: Navigate): boolean {\n        const currentPosition = this._forOf.getScroll()!.scrollTop;\n        const itemPosition = this._forOf.getScrollForIndex(index, direction === Navigate.Down);\n\n        const offScreen = direction === Navigate.Down\n            ? currentPosition < itemPosition\n            : currentPosition > itemPosition;\n\n        return !this.isIndexRendered(index) || offScreen;\n    }\n}\n","import {\n  Component,\n  afterNextRender,\n  ContentChildren,\n  effect,\n  EffectRef,\n  ElementRef,\n  forwardRef,\n  Injector,\n  QueryList,\n  OnChanges,\n  Input,\n  OnDestroy,\n  ViewChild,\n  AfterViewInit,\n  Output,\n  EventEmitter,\n  SimpleChanges,\n  booleanAttribute,\n  inject,\n  ChangeDetectionStrategy,\n  ViewEncapsulation\n} from '@angular/core';\nimport { IgxToggleDirective, ToggleViewEventArgs } from 'igniteui-angular/directives';\nimport { IgxDropDownItemComponent } from './drop-down-item.component';\nimport { IgxDropDownBaseDirective } from './drop-down.base';\nimport { DropDownActionKey, Navigate } from './drop-down.common';\nimport { IGX_DROPDOWN_BASE, IDropDownBase } from './drop-down.common';\nimport { ISelectionEventArgs } from './drop-down.common';\nimport { IBaseCancelableBrowserEventArgs, IBaseEventArgs } from 'igniteui-angular/core';\nimport { IgxSelectionAPIService } from 'igniteui-angular/core';\nimport { merge, Subject } from 'rxjs';\nimport { IgxDropDownItemBaseDirective } from './drop-down-item.base';\nimport { IgxForOfToken } from 'igniteui-angular/directives';\nimport { IgxVirtualScrollComponent } from 'igniteui-angular/virtual-scroll';\nimport { createDropDownVirtualization, IgxDropDownVirtualization } from './drop-down-virtualization';\nimport { takeUntil } from 'rxjs/operators';\nimport { OverlaySettings } from 'igniteui-angular/core';\nimport { ConnectedPositioningStrategy } from 'igniteui-angular/core';\n\n/**\n * **Ignite UI for Angular DropDown** -\n * [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/drop-down)\n *\n * The Ignite UI for Angular Drop Down displays a scrollable list of items which may be visually grouped and\n * supports selection of a single item. Clicking or tapping an item selects it and closes the Drop Down\n *\n * Example:\n * ```html\n * <igx-drop-down>\n *   <igx-drop-down-item *ngFor=\"let item of items\" disabled={{item.disabled}} isHeader={{item.header}}>\n *     {{ item.value }}\n *   </igx-drop-down-item>\n * </igx-drop-down>\n * ```\n */\n\n@Component({\n    selector: 'igx-drop-down',\n    templateUrl: './drop-down.component.html',\n    styleUrl: 'drop-down.component.css',\n    encapsulation: ViewEncapsulation.None,\n    providers: [{ provide: IGX_DROPDOWN_BASE, useExisting: IgxDropDownComponent }],\n    changeDetection: ChangeDetectionStrategy.Eager,\n    imports: [IgxToggleDirective]\n})\nexport class IgxDropDownComponent extends IgxDropDownBaseDirective implements IDropDownBase, OnChanges, AfterViewInit, OnDestroy {\n    protected selection = inject(IgxSelectionAPIService);\n    private _reconcileInjector = inject(Injector);\n    protected _activeDescendantId: string | null = null;\n\n    /**\n     * The direction of a navigation whose header skip waits for its row to render.\n     * Focusing an item by any other means drops it.\n     */\n    private _pendingSkip: Navigate | null = null;\n\n    /** Watches the data the projected virtual scroll renders from. */\n    private _renderedItems: EffectRef | null = null;\n\n    /**\n     * @hidden\n     * @internal\n     */\n    @ContentChildren(forwardRef(() => IgxDropDownItemComponent), { descendants: true })\n    public override children!: QueryList<IgxDropDownItemBaseDirective>;\n\n    /**\n     * Emitted before the dropdown is opened\n     *\n     * ```html\n     * <igx-drop-down (opening)='handleOpening($event)'></igx-drop-down>\n     * ```\n     */\n    @Output()\n    public opening = new EventEmitter<IBaseCancelableBrowserEventArgs>();\n\n    /**\n     * Emitted after the dropdown is opened\n     *\n     * ```html\n     * <igx-drop-down (opened)='handleOpened($event)'></igx-drop-down>\n     * ```\n     */\n    @Output()\n    public opened = new EventEmitter<IBaseEventArgs>();\n\n    /**\n     * Emitted before the dropdown is closed\n     *\n     * ```html\n     * <igx-drop-down (closing)='handleClosing($event)'></igx-drop-down>\n     * ```\n     */\n    @Output()\n    public closing = new EventEmitter<IBaseCancelableBrowserEventArgs>();\n\n    /**\n     * Emitted after the dropdown is closed\n     *\n     * ```html\n     * <igx-drop-down (closed)='handleClosed($event)'></igx-drop-down>\n     * ```\n     */\n    @Output()\n    public closed = new EventEmitter<IBaseEventArgs>();\n\n    /**\n     * Gets/sets whether items take focus. Disabled by default.\n     * When enabled, drop down items gain tab index and are focused when active -\n     * this includes activating the selected item when opening the drop down and moving with keyboard navigation.\n     *\n     * Note: Keep that focus shift in mind when using the igxDropDownItemNavigation directive\n     * and ensure it's placed either on each focusable item or a common ancestor to allow it to handle keyboard events.\n     *\n     * ```typescript\n     * // get\n     * let dropDownAllowsItemFocus = this.dropdown.allowItemsFocus;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-drop-down [allowItemsFocus]='true'></igx-drop-down>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    public allowItemsFocus = false;\n\n    /**\n     * Sets aria-labelledby attribute value.\n     * ```html\n     * <igx-drop-down [labelledby]=\"labelId\"></igx-drop-down>\n     * ```\n     */\n    @Input()\n    public labelledBy!: string;\n\n    /**\n     * Gets/sets the `role` attribute of the drop down. Default is 'listbox'.\n     *\n     * ```html\n     *  <igx-drop-down [role]=\"customRole\"></igx-drop-down-item>\n     * ```\n     */\n    @Input()\n    public role = 'listbox';\n\n    @ContentChildren(IgxForOfToken, { descendants: true })\n    private _forOfQuery!: QueryList<IgxForOfToken<any>>;\n\n    @ContentChildren(IgxVirtualScrollComponent, { descendants: true })\n    private _virtualScrollQuery!: QueryList<IgxVirtualScrollComponent<any>>;\n\n    @ContentChildren(IgxVirtualScrollComponent, { read: ElementRef, descendants: true })\n    private _virtualScrollRefQuery!: QueryList<ElementRef<HTMLElement>>;\n\n    /** Set from the projected content in `ngAfterViewInit`, and again if that content changes. */\n    protected virtualization: IgxDropDownVirtualization | null = null;\n\n    @ViewChild(IgxToggleDirective, { static: true })\n    protected toggleDirective!: IgxToggleDirective;\n\n    @ViewChild('scrollContainer', { static: true })\n    protected scrollContainerRef!: ElementRef;\n\n    /**\n     * @hidden @internal\n     */\n    public override get focusedItem(): IgxDropDownItemBaseDirective | null {\n        if (this.virtualization) {\n            return this._focusedItem && this._focusedItem.index !== -1 ?\n                (this.children.find(e => e.index === this._focusedItem.index) || null) :\n                null;\n        }\n        return this._focusedItem;\n    }\n\n    public override set focusedItem(value: IgxDropDownItemBaseDirective | null) {\n        this._pendingSkip = null;\n        if (!value) {\n            this.selection.clear(`${this.id}-active`);\n            this._focusedItem = null;\n            this._activeDescendantId = null;\n            return;\n        }\n        this._focusedItem = value;\n        if (this.virtualization) {\n            this._focusedItem = {\n                value: value.value,\n                index: value.index\n            } as IgxDropDownItemBaseDirective;\n        }\n        this.selection.set(`${this.id}-active`, new Set([this._focusedItem]));\n    }\n\n    public override get activeDescendant(): string | null {\n        if (this.virtualization) {\n            return this._activeDescendantId;\n        }\n        return super.activeDescendant;\n    }\n\n    public override get id(): string {\n        return this._id;\n    }\n    public override set id(value: string) {\n        this.selection.set(value, this.selection.get(this.id));\n        this.selection.clear(this.id);\n        this.selection.set(value, this.selection.get(`${this.id}-active`));\n        this.selection.clear(`${this.id}-active`);\n        this._id = value;\n    }\n\n    /** Id of the internal listbox of the drop down */\n    public get listId() {\n        return this.id + '-list';\n    }\n\n    /**\n     * Get currently selected item\n     *\n     * ```typescript\n     * let currentItem = this.dropdown.selectedItem;\n     * ```\n     */\n    public get selectedItem(): IgxDropDownItemBaseDirective {\n        const selectedItem = this.selection.first_item(this.id);\n        if (selectedItem) {\n            return selectedItem;\n        }\n        return null!;\n    }\n\n    /**\n     * Gets if the dropdown is collapsed\n     *\n     * ```typescript\n     * let isCollapsed = this.dropdown.collapsed;\n     * ```\n     */\n    public get collapsed(): boolean {\n        return this.toggleDirective.collapsed;\n    }\n\n    /** @hidden @internal */\n    public override get scrollContainer(): HTMLElement {\n        return this.scrollContainerRef.nativeElement;\n    }\n\n    protected get collectionLength() {\n        if (this.virtualization) {\n            return this.virtualization.length;\n        }\n    }\n\n    protected destroy$ = new Subject<boolean>();\n    protected _scrollPosition!: number;\n\n    /** The projected content the adapter was built for, to leave it alone while it stands. */\n    private _connectedForOf?: IgxForOfToken<any>;\n    private _connectedScroll?: IgxVirtualScrollComponent<any>;\n    private _connectedElement?: ElementRef<HTMLElement>;\n\n    /**\n     * Opens the dropdown\n     *\n     * ```typescript\n     * this.dropdown.open();\n     * ```\n     */\n    public open(overlaySettings?: OverlaySettings) {\n        const settings = { ... {}, ...this.getDefaultOverlaySettings(), ...overlaySettings };\n        this.toggleDirective.open(settings);\n        this.updateScrollPosition();\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public getDefaultOverlaySettings(): OverlaySettings {\n        return {\n            closeOnOutsideClick: true,\n            modal: false,\n            positionStrategy: new ConnectedPositioningStrategy()\n        };\n    }\n\n    /**\n     * Closes the dropdown\n     *\n     * ```typescript\n     * this.dropdown.close();\n     * ```\n     */\n    public close(event?: Event) {\n        this.toggleDirective.close(event);\n    }\n\n    /**\n     * Toggles the dropdown\n     *\n     * ```typescript\n     * this.dropdown.toggle();\n     * ```\n     */\n    public toggle(overlaySettings?: OverlaySettings) {\n        if (this.collapsed || this.toggleDirective.isClosing) {\n            this.open(overlaySettings);\n        } else {\n            this.close();\n        }\n    }\n\n    /**\n     * Select an item by index\n     *\n     * @param index of the item to select; If the drop down uses *igxFor, pass the index in data\n     */\n    public setSelectedItem(index: number) {\n        if (this.virtualization) {\n            // A virtualized index addresses the whole collection. Any record loaded for it\n            // can be selected, which is more than the rows that happen to be rendered.\n            if (!this.virtualization.isIndexLoaded(index)) {\n                return;\n            }\n\n            this.selectItem({\n                value: this.virtualization.itemAt(index),\n                index\n            } as IgxDropDownItemBaseDirective);\n            return;\n        }\n\n        if (index < 0 || index >= this.items.length) {\n            return;\n        }\n        this.selectItem(this.items[index]);\n    }\n\n    /**\n     * Navigates to the item on the specified index\n     * If the data in the drop-down is virtualized, pass the index of the item in the virtualized data.\n     *\n     * @param newIndex number\n     */\n    public override navigateItem(index: number) {\n        if (this.virtualization) {\n            if (index === -1 || index >= this.collectionLength!) {\n                return;\n            }\n            const direction = index > (this.focusedItem ? this.focusedItem.index : -1) ? Navigate.Down : Navigate.Up;\n            this.focusedItem = {\n                value: this.virtualization.itemAt(index),\n                index\n            } as IgxDropDownItemBaseDirective;\n\n            // Naming a row that has not rendered would point assistive technology at nothing.\n            this.refreshActiveDescendant();\n\n            this._pendingSkip = direction;\n            this.virtualization.scrollToIndex(index, direction, () => this.settleFocus());\n        } else {\n            super.navigateItem(index);\n        }\n        if (this.allowItemsFocus && this.focusedItem) {\n            this.focusedItem.element.nativeElement.focus();\n            this.cdr.markForCheck();\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public updateScrollPosition() {\n        if (!this.virtualization) {\n            return;\n        }\n        if (!this.selectedItem) {\n            this.virtualization.scrollPosition = 0;\n            return;\n        }\n        this.virtualization.alignToIndex(this.selectedItem.index);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onToggleOpening(e: IBaseCancelableBrowserEventArgs) {\n        const args: IBaseCancelableBrowserEventArgs = { owner: this, event: e.event, cancel: false };\n        this.opening.emit(args);\n        e.cancel = args.cancel;\n        if (e.cancel) {\n            return;\n        }\n\n        if (this.virtualization) {\n            this.virtualization.scrollPosition = this._scrollPosition;\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onToggleContentAppended(_event: ToggleViewEventArgs) {\n        if (!this.virtualization && this.selectedItem) {\n            this.scrollToItem(this.selectedItem);\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onToggleOpened() {\n        this.updateItemFocus();\n        this.opened.emit({ owner: this });\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onToggleClosing(e: IBaseCancelableBrowserEventArgs) {\n        const args: IBaseCancelableBrowserEventArgs = { owner: this, event: e.event, cancel: false };\n        this.closing.emit(args);\n        e.cancel = args.cancel;\n        if (e.cancel) {\n            return;\n        }\n        if (this.virtualization) {\n            this._scrollPosition = this.virtualization.scrollPosition;\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onToggleClosed() {\n        this.focusItem(false);\n        this.closed.emit({ owner: this });\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public ngOnDestroy() {\n        this._renderedItems?.destroy();\n        this.virtualization?.disconnect();\n        this.destroy$.next(true);\n        this.destroy$.complete();\n        this.selection.delete(this.id);\n        this.selection.delete(`${this.id}-active`);\n    }\n\n    /** @hidden @internal */\n    public calculateScrollPosition(item: IgxDropDownItemBaseDirective): number {\n        if (!item) {\n            return 0;\n        }\n\n        const elementRect = item.element.nativeElement.getBoundingClientRect();\n        const parentRect = this.scrollContainer.getBoundingClientRect();\n        const scrollDelta = parentRect.top - elementRect.top;\n        let scrollPosition = this.scrollContainer.scrollTop - scrollDelta;\n\n        const dropDownHeight = this.scrollContainer.clientHeight;\n        scrollPosition -= dropDownHeight / 2;\n        scrollPosition += item.elementHeight / 2;\n\n        return Math.floor(scrollPosition);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public ngOnChanges(changes: SimpleChanges) {\n        if (changes.id) {\n            // temp workaround until fix --> https://github.com/angular/angular/issues/34992\n            this.toggleDirective.id = changes.id.currentValue;\n        }\n    }\n\n    public ngAfterViewInit() {\n        this.connectVirtualization();\n\n        merge(\n            this._forOfQuery.changes,\n            this._virtualScrollQuery.changes,\n            this._virtualScrollRefQuery.changes\n        )\n            .pipe(takeUntil(this.destroy$))\n            .subscribe(() => this.connectVirtualization());\n\n        // A sliding window reuses its items, so only the adapter reports it; a page\n        // arriving or the list emptying builds or drops them, which reaches this query.\n        // The query settles inside the pass that rendered them, and the element it names\n        // was already checked in it, so the write waits for the render to finish.\n        this.children.changes\n            .pipe(takeUntil(this.destroy$))\n            .subscribe(() => afterNextRender(\n                () => this.settleFocus(),\n                { injector: this._reconcileInjector }\n            ));\n    }\n\n    /**\n     * Rebuilds the adapter for the projected content, dropping the previous one first.\n     * The component and element queries can refresh separately, so the pair is taken as one.\n     */\n    private connectVirtualization(): void {\n        const forOf = this._forOfQuery.first;\n        const scroll = this._virtualScrollQuery.first;\n        const element = this._virtualScrollRefQuery.first;\n\n        // Re-applied whenever the projection reports, not only when the adapter is built:\n        // the directive recomputes its sizes as chunks load.\n        if (forOf) {\n            forOf.igxForItemSize = 28;\n        }\n\n        if (scroll && !element) {\n            return;\n        }\n\n        if (this._connectedForOf === forOf\n            && this._connectedScroll === scroll\n            && this._connectedElement === element) {\n            return;\n        }\n\n        this.virtualization?.disconnect();\n        this._connectedForOf = forOf;\n        this._connectedScroll = scroll;\n        this._connectedElement = element;\n        this.virtualization = createDropDownVirtualization(forOf, scroll, element);\n        // Rows a window renders reach the item query only once this view is checked.\n        this.virtualization?.onWindowChange(() => {\n            this.cdr.markForCheck();\n            this.refreshActiveDescendant();\n        });\n        this.watchRenderedItems(scroll);\n    }\n\n    /**\n     * Keeps the item query in step with the rows a projected `igx-virtual-scroll` renders.\n     * The query collects them only while the view that declares them is checked, and a\n     * page arriving dirties the scroll rather than that view. Asking for the check is all\n     * it takes; `children.changes` reports the rest.\n     */\n    private watchRenderedItems(scroll: IgxVirtualScrollComponent<any> | undefined): void {\n        this._renderedItems?.destroy();\n        this._renderedItems = null;\n\n        if (!scroll) {\n            return;\n        }\n\n        this._renderedItems = effect(() => {\n            scroll.data();\n            scroll.dataWindow();\n            this.cdr.markForCheck();\n        }, { injector: this._reconcileInjector });\n    }\n\n    /** Points `aria-activedescendant` at the item the focused index renders as, if any. */\n    protected refreshActiveDescendant(): void {\n        const index = this._focusedItem?.index;\n        const item = index !== undefined && index !== -1\n            ? this.children?.find(e => e.index === index)\n            : null;\n        const id = item?.id ?? null;\n\n        if (id === this._activeDescendantId) {\n            return;\n        }\n        this._activeDescendantId = id;\n        this.cdr.markForCheck();\n    }\n\n    /**\n     * Names the row the focused index renders as and, once that row exists, moves off a\n     * header or a disabled item. The row can be missing when the scroll settles, because\n     * its page has not arrived; the item query reports it when it does.\n     */\n    private settleFocus(): void {\n        this.refreshActiveDescendant();\n\n        const direction = this._pendingSkip;\n        if (direction === null || !this.focusedItem) {\n            return;\n        }\n        this._pendingSkip = null;\n        this.skipHeader(direction);\n    }\n\n    /** Keydown Handler */\n    public override onItemActionKey(key: DropDownActionKey, event?: Event) {\n        super.onItemActionKey(key, event);\n        this.close(event);\n    }\n\n    /**\n     * Virtual scroll implementation\n     *\n     * @hidden @internal\n     */\n    public override navigateFirst() {\n        if (this.virtualization) {\n            this.navigateItem(0);\n        } else {\n            super.navigateFirst();\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override navigateLast() {\n        if (this.virtualization) {\n            this.navigateItem(this.virtualization.length - 1);\n        } else {\n            super.navigateLast();\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override navigateNext() {\n        if (this.virtualization) {\n            this.navigateItem(this._focusedItem ? this._focusedItem.index + 1 : 0);\n        } else {\n            super.navigateNext();\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override navigatePrev() {\n        if (this.virtualization) {\n            this.navigateItem(this._focusedItem ? this._focusedItem.index - 1 : 0);\n        } else {\n            super.navigatePrev();\n        }\n    }\n\n    /**\n     * Handles the `selectionChanging` emit and the drop down toggle when selection changes\n     *\n     * @hidden\n     * @internal\n     * @param newSelection\n     * @param emit\n     * @param event\n     */\n    public override selectItem(newSelection?: IgxDropDownItemBaseDirective, event?: Event, emit = true) {\n        const oldSelection = this.selectedItem;\n        if (!newSelection) {\n            newSelection! = this.focusedItem!;\n        }\n        if (newSelection === null) {\n            return;\n        }\n        if (newSelection instanceof IgxDropDownItemBaseDirective && newSelection.isHeader) {\n            return;\n        }\n        if (this.virtualization) {\n            newSelection = {\n                value: newSelection!.value,\n                index: newSelection!.index\n            } as IgxDropDownItemBaseDirective;\n        }\n        const args: ISelectionEventArgs = { oldSelection, newSelection, cancel: false, owner: this }!;\n\n        if (emit) {\n            this.selectionChanging.emit(args);\n        }\n\n        if (!args.cancel) {\n            if (this.isSelectionValid(args.newSelection)) {\n                this.selection.set(this.id, new Set([args.newSelection]));\n                if (!this.virtualization) {\n                    if (oldSelection) {\n                        oldSelection.selected = false;\n                    }\n                    if (args.newSelection) {\n                        args.newSelection.selected = true;\n                    }\n                }\n                if (event) {\n                    this.toggleDirective.close(event);\n                }\n            } else {\n                throw new Error('Please provide a valid drop-down item for the selection!');\n            }\n        }\n    }\n\n    /**\n     * Clears the selection of the dropdown\n     * ```typescript\n     * this.dropdown.clearSelection();\n     * ```\n     */\n    public clearSelection() {\n        const oldSelection = this.selectedItem;\n        const newSelection: IgxDropDownItemBaseDirective = null!;\n        const args: ISelectionEventArgs = { oldSelection, newSelection, cancel: false, owner: this };\n        this.selectionChanging.emit(args);\n        if (this.selectedItem && !args.cancel) {\n            this.selectedItem.selected = false;\n            this.selection.clear(this.id);\n        }\n    }\n\n    /**\n     * Checks whether the selection is valid\n     * `null` - the selection should be emptied\n     * Virtual? - the selection should at least have and `index` and `value` property\n     * Non-virtual? - the selection should be a valid drop-down item and **not** be a header\n     */\n    protected isSelectionValid(selection: any): boolean {\n        return selection === null\n            || (!!this.virtualization && selection.hasOwnProperty('value') && selection.hasOwnProperty('index'))\n            || (selection instanceof IgxDropDownItemComponent && !selection.isHeader);\n    }\n\n    protected scrollToItem(item: IgxDropDownItemBaseDirective) {\n        this.scrollContainer.scrollTop = this.calculateScrollPosition(item);\n    }\n\n    protected focusItem(value: boolean) {\n        if (value || this._focusedItem) {\n            this._focusedItem.focused = value;\n        }\n    }\n\n    protected updateItemFocus() {\n        if (this.selectedItem) {\n            this.focusedItem = this.selectedItem;\n            this._activeDescendantId = this.focusedItem?.id ?? null;\n            this.focusItem(true);\n        } else if (this.allowItemsFocus) {\n            this.navigateFirst();\n        }\n    }\n\n    protected skipHeader(direction: Navigate) {\n        if (!this.focusedItem) {\n            return;\n        }\n        if (this.focusedItem.isHeader || this.focusedItem.disabled) {\n            if (direction === Navigate.Up) {\n                this.navigatePrev();\n            } else {\n                this.navigateNext();\n            }\n        }\n    }\n\n\n}\n\n","<div class=\"igx-drop-down\" [style.width]=\"width\"\n    igxToggle\n    (appended)=\"onToggleContentAppended($event)\"\n    (opening)=\"onToggleOpening($event)\" (opened)=\"onToggleOpened()\"\n    (closing)=\"onToggleClosing($event)\" (closed)=\"onToggleClosed()\">\n    <div class=\"igx-drop-down__list-scroll\" #scrollContainer [attr.id]=\"listId\" [attr.role]=\"role\" [attr.aria-labelledby]=\"labelledBy\"\n        [style.height]=\"height\"\n        [style.maxHeight]=\"maxHeight\">\n        @if (!collapsed) {\n            <ng-content></ng-content>\n        }\n    </div>\n</div>\n","import { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, Output, AfterViewInit, OnInit, booleanAttribute, inject } from '@angular/core';\nimport { NgModel, FormControlName } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { CancelableEventArgs, IBaseEventArgs, IgxOverlayOutletDirective } from 'igniteui-angular/core';\nimport {\n    AbsoluteScrollStrategy,\n    AutoPositionStrategy,\n    IPositionStrategy,\n    IScrollStrategy,\n    OverlaySettings\n} from 'igniteui-angular/core';\nimport { IgxDropDownComponent } from '../drop-down.component';\nimport { IgxDropDownItemNavigationDirective } from '../drop-down-navigation.directive';\nimport { ISelectionEventArgs } from '../drop-down.common';\nimport { IgxInputGroupComponent } from 'igniteui-angular/input-group';\n\n/**\n * Interface that encapsulates onItemSelection event arguments - new value and cancel selection.\n *\n * @export\n */\nexport interface AutocompleteSelectionChangingEventArgs extends CancelableEventArgs, IBaseEventArgs {\n    /**\n     * New value selected from the drop down\n     */\n    value: string;\n}\n\nexport interface AutocompleteOverlaySettings {\n    /** Position strategy to use with this settings */\n    positionStrategy?: IPositionStrategy;\n    /** Scroll strategy to use with this settings */\n    scrollStrategy?: IScrollStrategy;\n    /**\n     * Set the outlet container to attach the overlay to\n     *\n     * @deprecated in version 21.2.0. Overlays now use the HTML Popover API and no longer move to the document\n     * body by default, so using outlet is also no longer needed - just define the overlay in the intended\n     * DOM tree position instead or use `container` property instead.\n     */\n    outlet?: IgxOverlayOutletDirective | ElementRef;\n}\n\n/**\n * **Ignite UI for Angular Autocomplete** -\n * [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/autocomplete.html)\n *\n * The igxAutocomplete directive provides a way to enhance a text input\n * by showing a drop down of suggested options, provided by the developer.\n *\n * Example:\n * ```html\n * <input type=\"text\" [igxAutocomplete]=\"townsPanel\" #autocompleteRef=\"igxAutocomplete\"/>\n * <igx-drop-down #townsPanel>\n *     <igx-drop-down-item *ngFor=\"let town of towns | startsWith:townSelected\" [value]=\"town\">\n *         {{town}}\n *     </igx-drop-down-item>\n * </igx-drop-down>\n * ```\n */\n@Directive({\n    selector: '[igxAutocomplete]',\n    exportAs: 'igxAutocomplete',\n    standalone: true\n})\nexport class IgxAutocompleteDirective extends IgxDropDownItemNavigationDirective implements OnDestroy, AfterViewInit, OnInit {\n    protected ngModel = inject<NgModel>(NgModel, { self: true, optional: true });\n    protected formControl = inject<FormControlName>(FormControlName, { self: true, optional: true });\n    protected group = inject(IgxInputGroupComponent, { optional: true });\n    protected elementRef = inject(ElementRef);\n    protected cdr = inject(ChangeDetectorRef);\n\n    /**\n     * Sets the target of the autocomplete directive\n     *\n     * ```html\n     * <!-- Set -->\n     * <input [igxAutocomplete]=\"dropdown\" />\n     * ...\n     * <igx-drop-down #dropdown>\n     * ...\n     * </igx-drop-down>\n     * ```\n     */\n    @Input('igxAutocomplete')\n    public override get target(): IgxDropDownComponent {\n        return this._target as IgxDropDownComponent;\n    }\n    public override set target(v: IgxDropDownComponent) {\n        this._target = v;\n    }\n\n    /**\n     * Provide overlay settings for the autocomplete drop down\n     *\n     * ```typescript\n     * // get\n     * let settings = this.autocomplete.autocompleteSettings;\n     * ```\n     * ```html\n     * <!--set-->\n     * <input type=\"text\" [igxAutocomplete]=\"townsPanel\" [igxAutocompleteSettings]=\"settings\"/>\n     * ```\n     * ```typescript\n     * // set\n     * this.settings = {\n     *  positionStrategy: new ConnectedPositioningStrategy({\n     *      closeAnimation: null,\n     *      openAnimation: null\n     *  })\n     * };\n     * ```\n     */\n    @Input('igxAutocompleteSettings')\n    public autocompleteSettings!: AutocompleteOverlaySettings;\n\n    /** @hidden @internal */\n    @HostBinding('attr.autocomplete')\n    public autofill = 'off';\n\n    /** @hidden  @internal */\n    @HostBinding('attr.role')\n    public role = 'combobox';\n\n    /**\n     * Enables/disables autocomplete component\n     *\n     * ```typescript\n     * // get\n     * let disabled = this.autocomplete.disabled;\n     * ```\n     * ```html\n     * <!--set-->\n     * <input type=\"text\" [igxAutocomplete]=\"townsPanel\" [igxAutocompleteDisabled]=\"disabled\"/>\n     * ```\n     * ```typescript\n     * // set\n     * public disabled = true;\n     * ```\n     */\n    @Input({ alias: 'igxAutocompleteDisabled', transform: booleanAttribute })\n    public disabled = false;\n\n    /**\n     * Emitted after item from the drop down is selected\n     *\n     * ```html\n     * <input igxInput [igxAutocomplete]=\"townsPanel\" (selectionChanging)='selectionChanging($event)' />\n     * ```\n     */\n    @Output()\n    public selectionChanging = new EventEmitter<AutocompleteSelectionChangingEventArgs>();\n\n    /** @hidden @internal */\n    public get nativeElement(): HTMLInputElement {\n        return this.elementRef.nativeElement;\n    }\n\n    /** @hidden @internal */\n    public get parentElement(): HTMLElement {\n        return this.group ? this.group.element.nativeElement : this.nativeElement;\n    }\n\n    private get settings(): OverlaySettings {\n        const settings = Object.assign({}, this.defaultSettings, this.autocompleteSettings);\n        if (!settings.target) {\n            const positionStrategyClone: IPositionStrategy = settings.positionStrategy!.clone();\n            settings.target = this.parentElement;\n            settings.positionStrategy = positionStrategyClone;\n        }\n        return settings;\n    }\n\n    /** @hidden  @internal */\n    @HostBinding('attr.aria-expanded')\n    public get ariaExpanded() {\n        return !this.collapsed;\n    }\n\n    /** @hidden  @internal */\n    @HostBinding('attr.aria-haspopup')\n    public get hasPopUp() {\n        return 'listbox';\n    }\n\n    /** @hidden  @internal */\n    @HostBinding('attr.aria-owns')\n    public get ariaOwns() {\n        return this.target.listId;\n    }\n\n    /** @hidden  @internal */\n    @HostBinding('attr.aria-activedescendant')\n    public get ariaActiveDescendant() {\n        return !this.target.collapsed && this.target.focusedItem ? this.target.focusedItem.id : null;\n    }\n\n    /** @hidden  @internal */\n    @HostBinding('attr.aria-autocomplete')\n    public get ariaAutocomplete() {\n        return 'list';\n    }\n\n    protected _composing!: boolean;\n    protected id!: string;\n    protected get model() {\n        return this.ngModel || this.formControl;\n    }\n\n    private _shouldBeOpen = false;\n    private destroy$ = new Subject<void>();\n    private defaultSettings!: OverlaySettings;\n\n    /** @hidden  @internal */\n    @HostListener('input')\n    public onInput() {\n        this.open();\n    }\n\n    /** @hidden @internal */\n    @HostListener('compositionstart')\n    public onCompositionStart(): void {\n        if (!this._composing) {\n            this._composing = true;\n        }\n    }\n\n    /** @hidden @internal */\n    @HostListener('compositionend')\n    public onCompositionEnd(): void {\n        this._composing = false;\n    }\n\n    /** @hidden  @internal */\n    @HostListener('keydown.ArrowDown', ['$event'])\n    @HostListener('keydown.Alt.ArrowDown', ['$event'])\n    @HostListener('keydown.ArrowUp', ['$event'])\n    @HostListener('keydown.Alt.ArrowUp', ['$event'])\n    public onArrowDown(event: Event) {\n        event.preventDefault();\n        this.open();\n    }\n\n    /** @hidden  @internal */\n    @HostListener('keydown.Tab')\n    @HostListener('keydown.Shift.Tab')\n    public onTab() {\n        this.close();\n    }\n\n    /** @hidden  @internal */\n    public override handleKeyDown(event: KeyboardEvent) {\n        if (!this.collapsed && !this._composing) {\n            switch (event.key.toLowerCase()) {\n                case 'space':\n                case 'spacebar':\n                case ' ':\n                case 'home':\n                case 'end':\n                case 'tab':\n                    return;\n                default:\n                    super.handleKeyDown(event);\n            }\n        }\n    }\n\n    /** @hidden  @internal */\n    public override onArrowDownKeyDown() {\n        super.onArrowDownKeyDown();\n    }\n\n    /** @hidden  @internal */\n    public override onArrowUpKeyDown() {\n        super.onArrowUpKeyDown();\n    }\n\n    /** @hidden  @internal */\n    public override onEndKeyDown() {\n        super.onEndKeyDown();\n    }\n\n    /** @hidden  @internal */\n    public override onHomeKeyDown() {\n        super.onHomeKeyDown();\n    }\n\n    /**\n     * Closes autocomplete drop down\n     */\n    public close() {\n        this._shouldBeOpen = false;\n        if (this.collapsed) {\n            return;\n        }\n        this.target.close();\n    }\n\n    /**\n     * Opens autocomplete drop down\n     */\n    public open() {\n        this._shouldBeOpen = true;\n        if (this.disabled || !this.collapsed || this.target.children.length === 0) {\n            return;\n        }\n        // if no drop-down width is set, the drop-down will be as wide as the autocomplete input;\n        this.target.width = this.target.width || (this.parentElement.clientWidth + 'px');\n        this.target.open(this.settings);\n        this.highlightFirstItem();\n    }\n\n    /** @hidden @internal */\n    public ngOnInit() {\n        const targetElement = this.parentElement;\n        this.defaultSettings = {\n            target: targetElement,\n            modal: false,\n            scrollStrategy: new AbsoluteScrollStrategy(),\n            positionStrategy: new AutoPositionStrategy(),\n            excludeFromOutsideClick: [targetElement]\n        };\n    }\n\n    /** @hidden */\n    public ngOnDestroy() {\n        this.destroy$.next();\n        this.destroy$.complete();\n    }\n\n    public ngAfterViewInit() {\n        this.target.children.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {\n            if (this.target.children.length) {\n                if (!this.collapsed) {\n                    this.highlightFirstItem();\n                } else if (this._shouldBeOpen) {\n                    this.open();\n                }\n            } else {\n                // _shouldBeOpen flag should remain unchanged since this state change doesn't come from outside of the component\n                // (like in the case of public API or user interaction).\n                this.target.close();\n            }\n        });\n        this.target.selectionChanging.pipe(takeUntil(this.destroy$)).subscribe(this.select.bind(this));\n    }\n\n    private get collapsed(): boolean {\n        return this.target ? this.target.collapsed : true;\n    }\n\n    private select(value: ISelectionEventArgs) {\n        if (!value.newSelection) {\n            return;\n        }\n        value.cancel = true; // Disable selection in the drop down, because in autocomplete we do not save selection.\n        const newValue = value.newSelection.value;\n        const args: AutocompleteSelectionChangingEventArgs = { value: newValue, cancel: false };\n        this.selectionChanging.emit(args);\n        if (args.cancel) {\n            return;\n        }\n        this.close();\n\n        // Update model after the input is re-focused, in order to have proper valid styling.\n        // Otherwise when item is selected using mouse (and input is blurred), then valid style will be removed.\n        if (this.model) {\n            this.model.control.setValue(newValue);\n        } else {\n            this.nativeElement.value = newValue;\n        }\n    }\n\n    private highlightFirstItem() {\n        if (this.target.focusedItem) {\n            this.target.focusedItem.focused = false;\n            this.target.focusedItem = null;\n        }\n        this.target.navigateFirst();\n        this.cdr.detectChanges();\n    }\n}\n","import { NgModule } from '@angular/core';\nimport { IgxAutocompleteDirective } from './autocomplete.directive';\n\n/**\n * @hidden\n * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components\n */\n@NgModule({\n    imports: [IgxAutocompleteDirective],\n    exports: [IgxAutocompleteDirective]\n})\nexport class IgxAutocompleteModule { }\n","import { IgxDropDownGroupComponent } from './drop-down-group.component';\nimport { IgxDropDownItemComponent } from './drop-down-item.component';\nimport { IgxDropDownItemNavigationDirective } from './drop-down-navigation.directive';\nimport { IgxDropDownComponent } from './drop-down.component';\n\nexport * from './drop-down.component';\nexport * from './drop-down.base';\nexport * from './drop-down-item.base';\nexport * from './drop-down.common'\nexport * from './drop-down-item.component';\nexport { ISelectionEventArgs, IDropDownNavigationDirective } from './drop-down.common';\nexport * from './drop-down-navigation.directive';\nexport * from './drop-down-group.component';\nexport * from './autocomplete/autocomplete.directive';\nexport * from './autocomplete/autocomplete.module';\n\n/* NOTE: Drop down directives collection for ease-of-use import in standalone components scenario */\nexport const IGX_DROP_DOWN_DIRECTIVES = [\n    IgxDropDownComponent,\n    IgxDropDownItemComponent,\n    IgxDropDownGroupComponent,\n    IgxDropDownItemNavigationDirective\n] as const;\n","import { NgModule } from '@angular/core';\nimport { IGX_DROP_DOWN_DIRECTIVES } from './public_api';\n\n/**\n * @hidden\n * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components\n */\n@NgModule({\n    imports: [\n        ...IGX_DROP_DOWN_DIRECTIVES\n    ],\n    exports: [\n        ...IGX_DROP_DOWN_DIRECTIVES\n    ]\n})\nexport class IgxDropDownModule { }\n"],"mappings":";;;;;;;;;;AAEA,IAAI,YAAU;AAcd,IAAa,4BAAb,MAAa,0BAAyB;CATtC,cAAA;EA0BW,KAAA,OAAO;EAIP,KAAA,aAAa;EA6Bb,KAAA,WAAW;EA0BV,KAAA,MAAM;CACjB;CAzEG,IAAW,UAAO;EACd,OAAO,wBAAwB,KAAK;CACxC;CAEA,IACW,aAAU;EACjB,OAAO,KAAK;CAChB;CAXS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAzB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAyB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,UAAA;KAAA;KAAA;KA+Cd;IAAgB;IAAA,OAAA;GAAA;GAAA,MAAA,EAAA,YAAA;I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