{"version":3,"file":"igniteui-angular-combo.mjs","names":[],"sources":["../../../projects/igniteui-angular/combo/src/combo/combo.api.ts","../../../projects/igniteui-angular/combo/src/combo/combo-item.component.ts","../../../projects/igniteui-angular/combo/src/combo/combo-item.component.html","../../../projects/igniteui-angular/combo/src/combo/combo.directives.ts","../../../projects/igniteui-angular/combo/src/combo/combo.common.ts","../../../projects/igniteui-angular/combo/src/combo/combo-add-item.component.ts","../../../projects/igniteui-angular/combo/src/combo/combo-dropdown.component.ts","../../../projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.html","../../../projects/igniteui-angular/combo/src/combo/combo.pipes.ts","../../../projects/igniteui-angular/combo/src/combo/combo.component.ts","../../../projects/igniteui-angular/combo/src/combo/combo.component.html","../../../projects/igniteui-angular/combo/src/combo/public_api.ts","../../../projects/igniteui-angular/combo/src/combo/combo.module.ts"],"sourcesContent":["import { IgxComboBase } from './combo.common';\nimport { Injectable } from '@angular/core';\n\n/**\n * @hidden\n */\n@Injectable()\nexport class IgxComboAPIService {\n    public disableTransitions = false;\n    protected combo!: IgxComboBase;\n\n    public get valueKey() {\n        return this.combo.valueKey !== null && this.combo.valueKey !== undefined ? this.combo.valueKey : null;\n    }\n\n    public get item_focusable(): boolean {\n        return false;\n    }\n    public get isRemote(): boolean {\n        return this.combo.isRemote;\n    }\n\n    public get comboID(): string {\n        return this.combo.id;\n    }\n\n    public register(combo: IgxComboBase) {\n        this.combo = combo;\n    }\n\n    public clear(): void {\n        this.combo = null!;\n    }\n\n    public add_custom_item(): void {\n        if (!this.combo) {\n            return;\n        }\n        this.combo.addItemToCollection();\n    }\n\n    public set_selected_item(itemID: any, event?: Event): void {\n        const selected = this.combo.isItemSelected(itemID);\n        if (itemID === undefined) {\n            return;\n        }\n        if (!selected) {\n            this.combo.select([itemID], false, event);\n        } else {\n            this.combo.deselect([itemID], event);\n        }\n    }\n\n    public is_item_selected(itemID: any): boolean {\n        return this.combo.isItemSelected(itemID);\n    }\n}\n","import {\n  Component,\n  HostBinding,\n  Input,\n  booleanAttribute,\n  inject,\n  ChangeDetectionStrategy\n} from '@angular/core';\nimport { IgxComboAPIService } from './combo.api';\nimport { rem } from 'igniteui-angular/core';\nimport { IgxCheckboxComponent } from 'igniteui-angular/checkbox';\nimport { IgxDropDownItemComponent } from 'igniteui-angular/drop-down';\n\n/** @hidden */\n@Component({\n    selector: 'igx-combo-item',\n    templateUrl: 'combo-item.component.html',\n    changeDetection: ChangeDetectionStrategy.Eager,\n    imports: [IgxCheckboxComponent]\n})\nexport class IgxComboItemComponent extends IgxDropDownItemComponent {\n    protected comboAPI = inject(IgxComboAPIService);\n\n\n    /**\n     * Gets the height of a list item\n     *\n     * @hidden\n     */\n    @Input()\n    public itemHeight: string | number = '';\n\n    /** @hidden @internal */\n    @HostBinding('style.height.rem')\n    public get _itemHeightToRem() {\n        if (this.itemHeight) {\n            return rem(this.itemHeight);\n        }\n    }\n\n    @HostBinding('attr.aria-label')\n    @Input()\n    public override get ariaLabel(): string {\n        const valueKey = this.comboAPI.valueKey;\n        return (valueKey !== null && this.value != null) ? this.value[valueKey] : this.value;\n    }\n\n    /** @hidden @internal */\n    @Input({ transform: booleanAttribute })\n    public singleMode!: boolean;\n\n    /**\n     * @hidden\n     */\n    public override get itemID() {\n        const valueKey = this.comboAPI.valueKey;\n        return valueKey !== null ? this.value[valueKey] : this.value;\n    }\n\n    /**\n     * @hidden\n     */\n    public get comboID() {\n        return this.comboAPI.comboID;\n    }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public override ngDoCheck(): void {\n        // Sync state from services once per CD cycle so template bindings return stable field values\n        this._selected = !this.isHeader && this.value != null && this.comboAPI.is_item_selected(this.itemID);\n        this._disableTransitions = this.comboAPI.disableTransitions;\n    }\n\n    /**\n     * @hidden\n     */\n    public override get selected(): boolean {\n        return this._selected;\n    }\n\n    public override set selected(value: boolean) {\n        if (this.isHeader) {\n            return;\n        }\n        this._selected = value;\n    }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public get disableTransitions() {\n        return this._disableTransitions;\n    }\n\n    private _disableTransitions = false;\n\n    public override clicked(event: MouseEvent): void {\n        this.comboAPI.disableTransitions = false;\n        if (!this.isSelectable) {\n            return;\n        }\n        this.dropDown.navigateItem(this.index);\n        this.comboAPI.set_selected_item(this.itemID, event);\n    }\n\n    /**\n     * @hidden\n     * @internal\n     * The event that is prevented is the click on the checkbox label element.\n     * That is the only visible element that a user can interact with.\n     * The click propagates to the host and the preventDefault is to stop it from\n     * switching focus to the input it's base on.\n     * The toggle happens in an internal handler in the drop-down on the next task queue cycle.\n     */\n    public disableCheck(event: MouseEvent) {\n        event.preventDefault();\n    }\n}\n","@if (!isHeader && !singleMode) {\n    <!-- checkbox should not allow changing its state from UI click (that's why it should be readonly=true), becasue when cancelling the selectionChange event in the combo, then checkbox will still change state.-->\n    <igx-checkbox [checked]=\"selected\" [readonly]=\"true\" [disableRipple]=\"true\" [disableTransitions]=\"disableTransitions\" [tabindex]=\"-1\" (click)=\"disableCheck($event)\" class=\"igx-combo__checkbox\"></igx-checkbox>\n}\n<span class=\"igx-drop-down__inner\"><ng-content></ng-content></span>\n","import { Directive } from '@angular/core';\n\n/**\n * Allows a custom element to be added at the beginning of the combo list.\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n * <igx-combo>\n *   <ng-template igxComboHeader>\n *      <div class=\"header-class\">Custom header</div>\n *      <img src=\"\"/>\n *   </ng-template>\n * </igx-combo>\n */\n@Directive({\n    selector: '[igxComboHeader]',\n    standalone: true\n})\nexport class IgxComboHeaderDirective { }\n\n/**\n * Allows a custom element to be added at the end of the combo list.\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n * <igx-combo>\n *   <ng-template igxComboFooter>\n *      <div class=\"footer-class\">Custom footer</div>\n *      <img src=\"\"/>\n *   </ng-template>\n * </igx-combo>\n */\n@Directive({\n    selector: '[igxComboFooter]',\n    standalone: true\n})\nexport class IgxComboFooterDirective { }\n\n/**\n * Allows the combo's items to be modified with a custom template\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n * <igx-combo>\n *\t<ng-template igxComboItem let-display let-key=\"valueKey\">\n *\t\t<div class=\"item\">\n *\t\t\t<span class=\"state\">State: {{ display[key] }}</span>\n *\t \t\t<span class=\"region\">Region: {{ display.region }}</span>\n *\t \t</div>\n *\t </ng-template>\n  * </igx-combo>\n */\n@Directive({\n    selector: '[igxComboItem]',\n    standalone: true\n})\nexport class IgxComboItemDirective { }\n\n/**\n * Defines the custom template that will be displayed when the combo's list is empty\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n *  <igx-combo>\n *      <ng-template igxComboEmpty>\n *          <div class=\"combo--empty\">\n *              There are no items to display\n *          </div>\n *      </ng-template>\n *  </igx-combo>\n */\n@Directive({\n    selector: '[igxComboEmpty]',\n    standalone: true\n})\nexport class IgxComboEmptyDirective { }\n\n/**\n * Defines the custom template that will be used when rendering header items for groups in the combo's list\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n *  <igx-combo>\n *      <ng-template igxComboHeaderItem let-item let-key=\"groupKey\">\n *          <div class=\"custom-item--group\">Group header for {{ item[key] }}</div>\n *      </ng-template>\n *  </igx-combo>\n */\n@Directive({\n    selector: '[igxComboHeaderItem]',\n    standalone: true\n})\nexport class IgxComboHeaderItemDirective { }\n\n/**\n * Defines the custom template that will be used to display the `ADD` button\n *\n * @remarks To show the `ADD` button, the `allowCustomValues` option must be enabled\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n * <igx-combo #combo>\n *      <ng-template igxComboAddItem>\n *          <button type=\"button\" class=\"combo__add-button\">\n *              Click to add item\n *          </button>\n *      </ng-template>\n *  </igx-combo>\n */\n@Directive({\n    selector: '[igxComboAddItem]',\n    standalone: true\n})\nexport class IgxComboAddItemDirective { }\n\n/**\n * The custom template that will be used when rendering the combo's toggle button\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n *  <igx-combo #combo>\n *      <ng-template igxComboToggleIcon let-collapsed>\n *          <igx-icon>{{ collapsed ? 'remove_circle' : 'remove_circle_outline'}}</igx-icon>\n *      </ng-template>\n *  </igx-combo>\n */\n@Directive({\n    selector: '[igxComboToggleIcon]',\n    standalone: true\n})\nexport class IgxComboToggleIconDirective { }\n\n/**\n * Defines the custom template that will be used when rendering the combo's clear icon\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @example\n *  <igx-combo #combo>\n *      <ng-template igxComboClearIcon>\n *          <igx-icon>clear</igx-icon>\n *      </ng-template>\n *  </igx-combo>\n */\n@Directive({\n    selector: '[igxComboClearIcon]',\n    standalone: true\n})\nexport class IgxComboClearIconDirective { }\n","import {\n    AfterContentChecked,\n    AfterViewChecked,\n    AfterViewInit,\n    booleanAttribute,\n    ChangeDetectorRef,\n    ContentChild,\n    ContentChildren,\n    Directive,\n    ElementRef,\n    EventEmitter,\n    forwardRef,\n    HostBinding,\n    InjectionToken,\n    Injector,\n    Input,\n    OnDestroy,\n    OnInit,\n    Output,\n    QueryList,\n    TemplateRef,\n    ViewChild,\n    DOCUMENT,\n    ViewChildren,\n    inject\n} from '@angular/core';\nimport { ControlValueAccessor, NgControl } from '@angular/forms';\nimport { caseSensitive } from '@igniteui/material-icons-extended';\nimport { noop, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport {\n    IgxSelectionAPIService,\n    SortingDirection,\n    CancelableBrowserEventArgs,\n    cloneArray,\n    IBaseCancelableBrowserEventArgs,\n    IBaseEventArgs,\n    rem,\n    AbsoluteScrollStrategy,\n    AutoPositionStrategy,\n    OverlaySettings,\n    ComboResourceStringsEN,\n    IComboResourceStrings,\n    getCurrentResourceStrings,\n    onResourceChangeHandle,\n    NgControlAdapter\n} from 'igniteui-angular/core';\nimport { IForOfState } from 'igniteui-angular/directives';\nimport { IgxVirtualScrollComponent, VirtualScrollState } from 'igniteui-angular/virtual-scroll';\nimport { IgxIconService } from 'igniteui-angular/icon';\nimport { IGX_INPUT_GROUP_TYPE, IgxInputDirective, IgxInputGroupComponent, IgxInputGroupType, IgxInputState, toInputState, IgxHintDirective, IgxLabelDirective, IgxPrefixDirective, IgxSuffixDirective } from 'igniteui-angular/input-group';\nimport { IgxComboDropDownComponent } from './combo-dropdown.component';\nimport { IgxComboAPIService } from './combo.api';\nimport {\n    IgxComboAddItemDirective, IgxComboClearIconDirective, IgxComboEmptyDirective,\n    IgxComboFooterDirective, IgxComboHeaderDirective, IgxComboHeaderItemDirective, IgxComboItemDirective, IgxComboToggleIconDirective\n} from './combo.directives';\nimport { isEqual, isObject } from 'lodash-es';\nimport { IComboItemAdditionEvent, IComboSearchInputEventArgs } from './combo.component';\n\nexport const IGX_COMBO_COMPONENT = /*@__PURE__*/new InjectionToken<IgxComboBase>('IgxComboComponentToken');\n\n/** @hidden @internal TODO: Evaluate */\nexport interface IgxComboBase {\n    id: string;\n    data: any[] | null;\n    valueKey: string;\n    groupKey: string;\n    isRemote: boolean;\n    filteredData: any[] | null;\n    totalItemCount: number;\n    itemsMaxHeight: number;\n    itemHeight: number;\n    searchValue: string;\n    searchInput: ElementRef<HTMLInputElement>;\n    comboInput: ElementRef<HTMLInputElement>;\n    opened: EventEmitter<IBaseEventArgs>;\n    opening: EventEmitter<CancelableBrowserEventArgs>;\n    closing: EventEmitter<CancelableBrowserEventArgs>;\n    closed: EventEmitter<IBaseEventArgs>;\n    focusSearchInput(opening?: boolean): void;\n    triggerCheck(): void;\n    addItemToCollection(): void;\n    isAddButtonVisible(): boolean;\n    handleInputChange(event?: string): void;\n    isItemSelected(itemID: any): boolean;\n    select(item: any): void;\n    select(itemIDs: any[], clearSelection?: boolean, event?: Event): void;\n    deselect(...args: [] | [itemIDs: any[], event?: Event]): void;\n    setActiveDescendant(): void;\n}\n\nlet NEXT_ID = 0;\n\n/** Row height assumed before a real row has been measured, in pixels. */\nconst DEFAULT_ITEM_SIZE = 40;\n\n\n/** @hidden @internal */\nexport const enum DataTypes {\n    EMPTY = 'empty',\n    PRIMITIVE = 'primitive',\n    COMPLEX = 'complex',\n    PRIMARYKEY = 'valueKey'\n}\n\n/** The filtering criteria to be applied on data search */\nexport interface IComboFilteringOptions {\n    /** Defines filtering case-sensitivity */\n    caseSensitive?: boolean;\n    /** Defines optional key to filter against complex list items. Default to displayKey if provided.*/\n    filteringKey?: string;\n}\n\n@Directive()\nexport abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewChecked, OnInit,\n    AfterViewInit, AfterContentChecked, OnDestroy, ControlValueAccessor {\n    protected elementRef = inject(ElementRef);\n    protected cdr = inject(ChangeDetectorRef);\n    protected selectionService = inject(IgxSelectionAPIService);\n    protected comboAPI = inject(IgxComboAPIService);\n    public document = inject<Document>(DOCUMENT);\n    protected _inputGroupType = inject<IgxInputGroupType>(IGX_INPUT_GROUP_TYPE, { optional: true });\n    protected _injector = inject(Injector, { optional: true });\n    protected _iconService = inject(IgxIconService, { optional: true });\n\n    /**\n     * Defines whether the caseSensitive icon should be shown in the search input\n     *\n     * ```typescript\n     * // get\n     * let myComboShowSearchCaseIcon = this.combo.showSearchCaseIcon;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [showSearchCaseIcon]='true'></igx-combo>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    public showSearchCaseIcon = false;\n\n     /**\n     * Enables/disables filtering in the list. The default is `false`.\n     */\n    @Input({ transform: booleanAttribute })\n    public get disableFiltering(): boolean {\n        return this._disableFiltering;\n    }\n    public set disableFiltering(value: boolean) {\n        this._disableFiltering = value;\n    }\n\n    /**\n     * Set custom overlay settings that control how the combo's list of items is displayed.\n     * Set:\n     * ```html\n     * <igx-combo [overlaySettings]=\"customOverlaySettings\"></igx-combo>\n     * ```\n     *\n     * ```typescript\n     *  const customSettings = { positionStrategy: { settings: { target: myTarget } } };\n     *  combo.overlaySettings = customSettings;\n     * ```\n     * Get any custom overlay settings used by the combo:\n     * ```typescript\n     *  const comboOverlaySettings: OverlaySettings = myCombo.overlaySettings;\n     * ```\n     */\n    @Input()\n    public overlaySettings: OverlaySettings = null!;\n\n    /**\n     * Gets/gets combo id.\n     *\n     * ```typescript\n     * // get\n     * let id = this.combo.id;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [id]='combo1'></igx-combo>\n     * ```\n     */\n    @HostBinding('attr.id')\n    @Input()\n    public get id(): string {\n        return this._id;\n    }\n\n    public set id(value: string) {\n        if (!value) {\n            return;\n        }\n        this._id = value;\n    }\n\n    /**\n     * Sets the style width of the element\n     *\n     * ```typescript\n     * // get\n     * let myComboWidth = this.combo.width;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [width]='250px'></igx-combo>\n     * ```\n     */\n    @HostBinding('style.width')\n    @Input()\n    public width!: string;\n\n    /**\n     * Controls whether custom values can be added to the collection\n     *\n     * ```typescript\n     * // get\n     * let comboAllowsCustomValues = this.combo.allowCustomValues;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [allowCustomValues]='true'></igx-combo>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    public allowCustomValues = false;\n\n    /**\n     * Configures the drop down list height\n     *\n     * ```typescript\n     * // get\n     * let myComboItemsMaxHeight = this.combo.itemsMaxHeight;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [itemsMaxHeight]='320'></igx-combo>\n     * ```\n     */\n    @Input()\n    public get itemsMaxHeight(): number {\n        if (this.itemHeight && !this._itemsMaxHeight) {\n            return this.itemHeight * this.itemsInContainer;\n        }\n        return this._itemsMaxHeight!;\n    }\n\n    public set itemsMaxHeight(val: number) {\n        this._itemsMaxHeight = val;\n    }\n\n    /** @hidden */\n    public get itemsMaxHeightInRem() {\n        if (this.itemsMaxHeight) {\n            return rem(this.itemsMaxHeight);\n        }\n    }\n\n    /**\n     * Configures the drop down list item height\n     *\n     * ```typescript\n     * // get\n     * let myComboItemHeight = this.combo.itemHeight;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [itemHeight]='32'></igx-combo>\n     * ```\n     */\n    @Input()\n    public get itemHeight(): number {\n        return this._itemHeight!;\n    }\n\n    public set itemHeight(val: number) {\n        this._itemHeight = val;\n    }\n\n    /**\n     * Configures the drop down list width\n     *\n     * ```typescript\n     * // get\n     * let myComboItemsWidth = this.combo.itemsWidth;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [itemsWidth] = '\"180px\"'></igx-combo>\n     * ```\n     */\n    @Input()\n    public itemsWidth!: string;\n\n    /**\n     * Defines the placeholder value for the combo value field\n     *\n     * ```typescript\n     * // get\n     * let myComboPlaceholder = this.combo.placeholder;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [placeholder]='newPlaceHolder'></igx-combo>\n     * ```\n     */\n    @Input()\n    public placeholder!: string;\n\n    /**\n     * Combo data source.\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [data]='items'></igx-combo>\n     * ```\n     */\n    @Input()\n    public get data(): any[] | null {\n        return this._data;\n    }\n    public set data(val: any[] | null) {\n        // igxFor directive ignores undefined values\n        // if the combo uses simple data and filtering is applied\n        // an error will occur due to the mismatch of the length of the data\n        // this can occur during filtering for the igx-combo and\n        // during filtering & selection for the igx-simple-combo\n        // since the simple combo's input is both a container for the selection and a filter\n        this._data = (val) ? val.filter(x => x !== undefined) : [];\n        this._loadedStartIndex = this._requestedStartIndex;\n    }\n\n    /**\n     * Determines which column in the data source is used to determine the value.\n     *\n     * ```typescript\n     * // get\n     * let myComboValueKey = this.combo.valueKey;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [valueKey]='myKey'></igx-combo>\n     * ```\n     */\n    @Input()\n    public valueKey: string = null!;\n\n    @Input()\n    public set displayKey(val: string) {\n        this._displayKey = val;\n    }\n\n    /**\n     * Determines which column in the data source is used to determine the display value.\n     *\n     * ```typescript\n     * // get\n     * let myComboDisplayKey = this.combo.displayKey;\n     *\n     * // set\n     * this.combo.displayKey = 'val';\n     *\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [displayKey]='myDisplayKey'></igx-combo>\n     * ```\n     */\n    public get displayKey() {\n        return this._displayKey ? this._displayKey : this.valueKey;\n    }\n\n    /**\n     * The item property by which items should be grouped inside the items list. Not usable if data is not of type Object[].\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [groupKey]='newGroupKey'></igx-combo>\n     * ```\n     */\n    @Input()\n    public set groupKey(val: string) {\n        this._groupKey = val;\n    }\n\n    /**\n     * The item property by which items should be grouped inside the items list. Not usable if data is not of type Object[].\n     *\n     * ```typescript\n     * // get\n     * let currentGroupKey = this.combo.groupKey;\n     * ```\n     */\n    public get groupKey(): string {\n        return this._groupKey;\n    }\n\n    /**\n     * Sets groups sorting order.\n     *\n     * @example\n     * ```html\n     * <igx-combo [groupSortingDirection]=\"groupSortingDirection\"></igx-combo>\n     * ```\n     * ```typescript\n     * public groupSortingDirection = SortingDirection.Asc;\n     * ```\n     */\n    @Input()\n    public get groupSortingDirection(): SortingDirection {\n        return this._groupSortingDirection;\n    }\n    public set groupSortingDirection(val: SortingDirection) {\n        this._groupSortingDirection = val;\n    }\n\n    /**\n     * Gets/Sets the custom filtering function of the combo.\n     *\n     * @example\n     * ```html\n     *  <igx-comb #combo [data]=\"localData\" [filterFunction]=\"filterFunction\"></igx-combo>\n     * ```\n     */\n    @Input()\n    public filterFunction!: (collection: any[], searchValue: any, filteringOptions: IComboFilteringOptions) => any[];\n\n    /**\n     * Sets aria-labelledby attribute value.\n     * ```html\n     * <igx-combo [ariaLabelledBy]=\"'label1'\">\n     * ```\n     */\n    @Input()\n    public ariaLabelledBy!: string;\n\n    /** @hidden @internal */\n    @HostBinding('class.igx-combo')\n    public cssClass = 'igx-combo'; // Independent of display density for the time being\n\n    /**\n     * Disables the combo. The default is `false`.\n     * ```html\n     * <igx-combo [disabled]=\"'true'\">\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    public disabled = false;\n\n    /**\n     * Disables the clear button. The default is `false`.\n     *\n     * ```typescript\n     * // get\n     * let myComboDisableClear = this.combo.disableClear;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [disableClear]=\"true\"></igx-combo>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    public disableClear = false;\n\n    /**\n     * Sets the visual combo type.\n     * The allowed values are `line`, `box`, `border` and `search`. The default is `box`.\n     * ```html\n     * <igx-combo [type]=\"'line'\">\n     * ```\n     */\n    @Input()\n    public get type(): IgxInputGroupType {\n        return this._type || this._inputGroupType || 'box';\n    }\n\n    public set type(val: IgxInputGroupType) {\n        this._type = val;\n    }\n\n    /**\n     * Gets/Sets the resource strings.\n     *\n     * @remarks\n     * By default it uses EN resources.\n     */\n    @Input()\n    public get resourceStrings(): IComboResourceStrings {\n        return this._resourceStrings ? this._customResourceStrings : this._defaultResourceStrings;\n    }\n    public set resourceStrings(value: IComboResourceStrings) {\n        this._resourceStrings = value;\n        this._customResourceStrings = Object.assign({}, this._defaultResourceStrings, this._resourceStrings);\n    }\n\n    /**\n     * Emitted before the dropdown is opened\n     *\n     * ```html\n     * <igx-combo opening='handleOpening($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public opening = new EventEmitter<IBaseCancelableBrowserEventArgs>();\n\n    /**\n     * Emitted after the dropdown is opened\n     *\n     * ```html\n     * <igx-combo (opened)='handleOpened($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public opened = new EventEmitter<IBaseEventArgs>();\n\n    /**\n     * Emitted before the dropdown is closed\n     *\n     * ```html\n     * <igx-combo (closing)='handleClosing($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public closing = new EventEmitter<IBaseCancelableBrowserEventArgs>();\n\n    /**\n     * Emitted after the dropdown is closed\n     *\n     * ```html\n     * <igx-combo (closed)='handleClosed($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public closed = new EventEmitter<IBaseEventArgs>();\n\n    /**\n     * Emitted when an item is being added to the data collection\n     *\n     * ```html\n     * <igx-combo (addition)='handleAdditionEvent($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public addition = new EventEmitter<IComboItemAdditionEvent>();\n\n    /**\n     * Emitted when the value of the search input changes (e.g. typing, pasting, clear, etc.)\n     *\n     * ```html\n     * <igx-combo (searchInputUpdate)='handleSearchInputEvent($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public searchInputUpdate = new EventEmitter<IComboSearchInputEventArgs>();\n\n    /**\n     * Emitted when new chunk of data is loaded from the virtualization\n     *\n     * ```html\n     * <igx-combo (dataPreLoad)='handleDataPreloadEvent($event)'></igx-combo>\n     * ```\n     */\n    @Output()\n    public dataPreLoad = new EventEmitter<IForOfState>();\n\n    /**\n     * The custom template, if any, that should be used when rendering ITEMS in the combo list\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.itemTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboItem let-item let-key=\"valueKey\">\n     *          <div class=\"custom-item\">\n     *              <div class=\"custom-item__name\">{{ item[key] }}</div>\n     *              <div class=\"custom-item__cost\">{{ item.cost }}</div>\n     *          </div>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboItemDirective, { read: TemplateRef })\n    public itemTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering the HEADER for the combo items list\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.headerTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboHeader>\n     *          <div class=\"combo__header\">\n     *              This is a custom header\n     *          </div>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboHeaderDirective, { read: TemplateRef })\n    public headerTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering the FOOTER for the combo items list\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.footerTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboFooter>\n     *          <div class=\"combo__footer\">\n     *              This is a custom footer\n     *          </div>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboFooterDirective, { read: TemplateRef })\n    public footerTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering HEADER ITEMS for groups in the combo list\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.headerItemTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboHeaderItem let-item let-key=\"groupKey\">\n     *          <div class=\"custom-item--group\">Group header for {{ item[key] }}</div>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboHeaderItemDirective, { read: TemplateRef })\n    public headerItemTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering the ADD BUTTON in the combo drop down\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.addItemTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboAddItem>\n     *          <button type=\"button\" igxButton=\"contained\" class=\"combo__add-button\">\n     *              Click to add item\n     *          </button>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboAddItemDirective, { read: TemplateRef })\n    public addItemTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering the ADD BUTTON in the combo drop down\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.emptyTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboEmpty>\n     *          <div class=\"combo--empty\">\n     *              There are no items to display\n     *          </div>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboEmptyDirective, { read: TemplateRef })\n    public emptyTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering the combo TOGGLE(open/close) button\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.toggleIconTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboToggleIcon let-collapsed>\n     *          <igx-icon>{{ collapsed ? 'remove_circle' : 'remove_circle_outline'}}</igx-icon>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboToggleIconDirective, { read: TemplateRef })\n    public toggleIconTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering the combo CLEAR button\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.combo.clearIconTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-combo #combo>\n     *      ...\n     *      <ng-template igxComboClearIcon>\n     *          <igx-icon>clear</igx-icon>\n     *      </ng-template>\n     *  </igx-combo>\n     * ```\n     */\n    @ContentChild(IgxComboClearIconDirective, { read: TemplateRef })\n    public clearIconTemplate: TemplateRef<any> = null!;\n\n    /** @hidden @internal */\n    @ContentChild(forwardRef(() => IgxLabelDirective), { static: true }) public label?: IgxLabelDirective;\n\n    /** @hidden @internal */\n    @ViewChild('inputGroup', { read: IgxInputGroupComponent, static: true })\n    public inputGroup!: IgxInputGroupComponent;\n\n    /** @hidden @internal */\n    @ViewChild('comboInput', { read: IgxInputDirective, static: true })\n    public comboInput!: IgxInputDirective;\n\n    /** @hidden @internal */\n    @ViewChild('searchInput')\n    public searchInput: ElementRef<HTMLInputElement> = null!;\n\n    /** @hidden @internal */\n    @ViewChild('virtualScroll', { static: true })\n    public virtualScrollContainer!: IgxVirtualScrollComponent<any>;\n\n    @ViewChild('dropdownItemContainer', { static: true })\n    protected dropdownContainer: ElementRef = null!;\n\n    @ViewChild('primitive', { read: TemplateRef, static: true })\n    protected primitiveTemplate!: TemplateRef<any>;\n\n    @ViewChild('complex', { read: TemplateRef, static: true })\n    protected complexTemplate!: TemplateRef<any>;\n\n    @ContentChildren(IgxPrefixDirective, { descendants: true })\n    protected prefixes!: QueryList<IgxPrefixDirective>;\n\n    @ContentChildren(IgxSuffixDirective, { descendants: true })\n    protected suffixes!: QueryList<IgxSuffixDirective>;\n\n    @ContentChildren(IgxHintDirective, { descendants: true })\n    protected contentHints!: QueryList<IgxHintDirective>;\n\n    @ViewChildren(IgxSuffixDirective)\n    protected internalSuffixes!: QueryList<IgxSuffixDirective>;\n\n    /** @hidden @internal */\n    public get searchValue(): string {\n        return this._searchValue;\n    }\n    public set searchValue(val: string) {\n        this.filterValue = val;\n        this._searchValue = val;\n    }\n\n    /** @hidden @internal */\n    public get isRemote() {\n        return !!(this.totalItemCount > 0 &&\n            this.valueKey &&\n            this.dataType === DataTypes.COMPLEX);\n    }\n\n    /** @hidden @internal */\n    public get dataType(): string {\n        if (this.displayKey) {\n            return DataTypes.COMPLEX;\n        }\n        return DataTypes.PRIMITIVE;\n    }\n\n    /**\n     * Gets if control is valid, when used in a form\n     *\n     * ```typescript\n     * // get\n     * let valid = this.combo.valid;\n     * ```\n     */\n    public get valid(): IgxInputState {\n        return this._valid;\n    }\n\n    /**\n     * Sets if control is valid, when used in a form\n     *\n     * ```typescript\n     * // set\n     * this.combo.valid = IgxInputState.INVALID;\n     * ```\n     */\n    public set valid(valid: IgxInputState) {\n        this._valid = valid;\n        this.comboInput.valid = valid;\n    }\n\n    /**\n     * The value of the combo\n     *\n     * ```typescript\n     * // get\n     * let comboValue = this.combo.value;\n     * ```\n     */\n    public get value(): any[] {\n        return this._value;\n    }\n\n    /**\n     * The text displayed in the combo input\n     *\n     * ```typescript\n     * // get\n     * let comboDisplayValue = this.combo.displayValue;\n     * ```\n     */\n    public get displayValue(): string {\n        return this._displayValue;\n    }\n\n    /**\n     * Defines the current state of the virtualized data. It contains `startIndex` and `chunkSize`\n     *\n     * ```typescript\n     * // get\n     * let state = this.combo.virtualizationState;\n     * ```\n     */\n    public get virtualizationState(): IForOfState {\n        return this._virtualizationState;\n    }\n    /**\n     * Sets the current state of the virtualized data.\n     *\n     * ```typescript\n     * // set\n     * this.combo.virtualizationState(state);\n     * ```\n     */\n    public set virtualizationState(state: IForOfState) {\n        this._virtualizationState = { ...state };\n        this._requestedStartIndex = state.startIndex ?? 0;\n        void this.virtualScrollContainer?.scrollToIndex(state.startIndex ?? 0);\n    }\n\n    /**\n     * Gets drop down state.\n     *\n     * ```typescript\n     * let state = this.combo.collapsed;\n     * ```\n     */\n    public get collapsed(): boolean {\n        return this.dropdown.collapsed;\n    }\n\n    /**\n     * Gets total count of the virtual data items, when using remote service.\n     *\n     * ```typescript\n     * // get\n     * let count = this.combo.totalItemCount;\n     * ```\n     */\n    public get totalItemCount(): number {\n        return this._totalItemCount;\n    }\n    /**\n     * Sets total count of the virtual data items, when using remote service.\n     *\n     * ```typescript\n     * // set\n     * this.combo.totalItemCount = remoteService.count;\n     * ```\n     */\n    public set totalItemCount(count: number) {\n        if (this._totalItemCount === count) {\n            return;\n        }\n        this._totalItemCount = count;\n        this.cdr.markForCheck();\n\n        // Move an out-of-range viewport without relocating its loaded records.\n        // The record-window pipe excludes records past the new total.\n        const lastStart = Math.max(0, count - (this._virtualizationState.chunkSize ?? 0));\n        if ((this._virtualizationState.startIndex ?? 0) > lastStart) {\n            this._virtualizationState = { ...this._virtualizationState, startIndex: lastStart };\n            void this.virtualScrollContainer?.scrollToIndex(lastStart);\n        }\n    }\n\n    /** @hidden @internal */\n    public get template(): TemplateRef<any> {\n        this._dataType = this.dataType;\n        if (this.itemTemplate) {\n            return this.itemTemplate;\n        }\n        if (this._dataType === DataTypes.COMPLEX) {\n            return this.complexTemplate;\n        }\n        return this.primitiveTemplate;\n    }\n\n    /** @hidden @internal */\n    public customValueFlag = true;\n    /** @hidden @internal */\n    public filterValue = '';\n    /** @hidden @internal */\n    public defaultFallbackGroup = 'Other';\n    /** @hidden @internal */\n    public activeDescendant = '';\n\n    /**\n     * Configures the way combo items will be filtered.\n     *\n     * ```typescript\n     * // get\n     * let myFilteringOptions = this.combo.filteringOptions;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [filteringOptions]='myFilteringOptions'></igx-combo>\n     * ```\n     */\n\n    @Input()\n    public get filteringOptions(): IComboFilteringOptions {\n        return this._filteringOptions || this._defaultFilteringOptions;\n    }\n    public set filteringOptions(value: IComboFilteringOptions) {\n        this._filteringOptions = value;\n    }\n\n    protected itemSize: number | undefined = undefined;\n\n    /**\n     * @hidden @internal\n     * No over-scan, so `stateChange` starts at the first visible row, as `igxFor` did.\n     * Otherwise a page fetched for row 20 binds at row 18.\n     */\n    protected readonly overScan = 0;\n\n    /** The wanted window, in the shape `virtualizationState` and `dataPreLoad` use. */\n    private _virtualizationState: IForOfState = { startIndex: 0, chunkSize: 0 };\n    /** Where the records currently bound sit, which a pending request has not moved yet. */\n    private _loadedStartIndex = 0;\n    /** The index the last asked-for range began at, which arriving records belong to. */\n    private _requestedStartIndex = 0;\n    private _recordsByKey = new Map<any, { item: any; index: number }>();\n    private _recordsByKeySource: any[] | null = null;\n    private _recordsByKeyLength = -1;\n    private _recordsByKeyValueKey: string | null = null;\n    private _totalItemCount = 0;\n    protected _data: any[] = [];\n    protected _value: any[] = [];\n    protected _displayValue = '';\n    protected _groupKey = '';\n    protected _searchValue = '';\n    protected _filteredData: any[] = [];\n    protected _displayKey!: string;\n    protected _remoteSelection = {};\n    protected _resourceStrings: IComboResourceStrings = null!;\n    protected _customResourceStrings: IComboResourceStrings = getCurrentResourceStrings(ComboResourceStringsEN);\n    protected _defaultResourceStrings = getCurrentResourceStrings(ComboResourceStringsEN);\n    protected _valid = IgxInputState.INITIAL;\n    protected ngControl: NgControl = null!;\n    private control: NgControlAdapter | null = null;\n    protected destroy$ = new Subject<void>();\n    protected _onTouchedCallback: () => void = noop;\n    protected _onChangeCallback: (_: any) => void = noop;\n    protected compareCollator = new Intl.Collator();\n    protected computedStyles: any;\n\n    private _id: string = `igx-combo-${NEXT_ID++}`;\n    /**\n     * The key this instance's selection is stored under in the shared `IgxSelectionAPIService`.\n     * It is fixed for the lifetime of the combo and does not follow `id`: when `id` changes\n     * (e.g. a cell template reused by grid virtualization is bound to another record) two\n     * live combos can briefly hold each other's ids, and an id-keyed selection would be\n     * handed from one combo to the other.\n     *\n     * @hidden @internal\n     */\n    protected readonly selectionKey: string = this._id;\n    private _disableFiltering = false;\n    private _type: IgxInputGroupType | null = null;\n    private _dataType = '';\n    private _itemHeight: number | undefined = undefined;\n    private _itemsMaxHeight: number | null = null;\n    private _overlaySettings!: OverlaySettings;\n    private _groupSortingDirection: SortingDirection = SortingDirection.Asc;\n    private _filteringOptions!: IComboFilteringOptions;\n    private _defaultFilteringOptions: IComboFilteringOptions = { caseSensitive: false };\n    private itemsInContainer = 10;\n\n    public abstract dropdown: IgxComboDropDownComponent;\n    public abstract selectionChanging: EventEmitter<any>;\n    public abstract selectionChanged: EventEmitter<any>;\n\n    constructor() {\n        onResourceChangeHandle(this.destroy$, () => {\n            this._defaultResourceStrings = getCurrentResourceStrings(ComboResourceStringsEN, false);\n            this._customResourceStrings = this._resourceStrings ? Object.assign({}, this._defaultResourceStrings, this._resourceStrings) : null!;\n        }, this);\n    }\n\n    public ngAfterViewChecked() {\n        const targetElement = this.inputGroup.element.nativeElement.querySelector('.igx-input-group__bundle') as HTMLElement;\n\n        this._overlaySettings = {\n            target: targetElement,\n            scrollStrategy: new AbsoluteScrollStrategy(),\n            positionStrategy: new AutoPositionStrategy(),\n            modal: false,\n            closeOnOutsideClick: true,\n            excludeFromOutsideClick: [targetElement]\n        };\n    }\n\n    /** @hidden @internal */\n    public ngAfterContentChecked(): void {\n        if (this.inputGroup && this.prefixes?.length > 0) {\n            this.inputGroup.prefixes = this.prefixes;\n        }\n\n        if (this.inputGroup) {\n            const suffixesArray = this.suffixes?.toArray() ?? [];\n            const internalSuffixesArray = this.internalSuffixes?.toArray() ?? [];\n            const mergedSuffixes = new QueryList<IgxSuffixDirective>();\n            mergedSuffixes.reset([\n                ...suffixesArray,\n                ...internalSuffixesArray\n            ]);\n            this.inputGroup.suffixes = mergedSuffixes;\n        }\n\n        if (this.inputGroup) {\n            this.inputGroup.hints = this.contentHints;\n        }\n    }\n\n    /** @hidden @internal */\n    public ngOnInit() {\n        this.ngControl = this._injector!.get<NgControl>(NgControl, null);\n        this.control = NgControlAdapter.from(this.ngControl, this._injector!);\n        this.selectionService.set(this.selectionKey, new Set());\n        this._iconService?.addSvgIconFromText(caseSensitive.name, caseSensitive.value, 'imx-icons');\n        this.computedStyles = this.document.defaultView!.getComputedStyle(this.elementRef.nativeElement);\n    }\n\n    /** @hidden @internal */\n    public ngAfterViewInit(): void {\n        this.filteredData = [...this.data!];\n        if (this.control) {\n            this.control.statusChanges.pipe(takeUntil(this.destroy$)).subscribe(this.onStatusChanged);\n            this.manageRequiredAsterisk();\n            this.cdr.detectChanges();\n        }\n        this.dropdown?.opening.subscribe((_args: IBaseCancelableBrowserEventArgs) => {\n            // Take the row height from a real item, for the combos that do not set itemHeight.\n            if (this.dropdown.children?.first) {\n                this.itemSize = this.dropdown.children.first.element.nativeElement.getBoundingClientRect().height;\n            }\n        });\n    }\n\n    /** @hidden @internal The height the list gets, for the pass that opens the drop-down. */\n    protected get viewportSize(): number {\n        return this.itemsMaxHeight || this.estimatedItemSize * this.itemsInContainer;\n    }\n\n    /** @hidden @internal The size rows are assumed to be until they are measured. */\n    protected get estimatedItemSize(): number {\n        return this.itemHeight || this.itemSize || DEFAULT_ITEM_SIZE;\n    }\n\n    /** @hidden @internal Where the loaded items sit in the collection they came from. */\n    protected get virtualStartIndex(): number {\n        return this._loadedStartIndex;\n    }\n\n    /**\n     * @hidden @internal\n     * Reports the wanted window as `virtualizationState` and asks for the data behind it.\n     */\n    public handleVirtualStateChange(state: VirtualScrollState): void {\n        const chunkSize = state.endIndex - state.startIndex + 1;\n        if (this._virtualizationState.startIndex === state.startIndex &&\n            this._virtualizationState.chunkSize === chunkSize) {\n            return;\n        }\n\n        const initial = !this._virtualizationState.chunkSize;\n        const startIndex = state.startIndex;\n        this._virtualizationState = { startIndex, chunkSize };\n        this._requestedStartIndex = startIndex;\n\n        // The first window a list reports can already be covered by the page it was given,\n        // and then there is nothing to fetch. Later windows are always reported, so a reply\n        // to a range the list has left is superseded rather than left in flight.\n        if (initial && startIndex >= this._loadedStartIndex &&\n            state.endIndex <= this._loadedStartIndex + this._data.length - 1) {\n            return;\n        }\n\n        this.dataPreLoad.emit({ ...this._virtualizationState, owner: this });\n    }\n\n    /** @hidden @internal */\n    public ngOnDestroy(): void {\n        this.destroy$.next();\n        this.destroy$.complete();\n        this.comboAPI.clear();\n        this.selectionService.delete(this.selectionKey);\n    }\n\n    /**\n     * A method that opens/closes the combo.\n     *\n     * ```html\n     * <button type=\"button\" (click)=\"combo.toggle()\">Toggle Combo</button>\n     * <igx-combo #combo></igx-combo>\n     * ```\n     */\n    public toggle(): void {\n        if (this.collapsed && this._displayValue.length !== 0) {\n            this.filterValue = '';\n            this.cdr.detectChanges();\n        }\n        const overlaySettings = Object.assign({}, this._overlaySettings, this.overlaySettings);\n        this.dropdown.toggle(overlaySettings);\n        if (!this.collapsed) {\n            this.setActiveDescendant();\n        }\n    }\n\n    /**\n     * A method that opens the combo.\n     *\n     * ```html\n     * <button type=\"button\" (click)=\"combo.open()\">Open Combo</button>\n     * <igx-combo #combo></igx-combo>\n     * ```\n     */\n    public open(): void {\n        if (this.collapsed && this._displayValue.length !== 0) {\n            this.filterValue = '';\n            this.cdr.detectChanges();\n        }\n        const overlaySettings = Object.assign({}, this._overlaySettings, this.overlaySettings);\n        this.dropdown.open(overlaySettings);\n        this.setActiveDescendant();\n    }\n\n    /**\n     * A method that closes the combo.\n     *\n     * ```html\n     * <button type=\"button\" (click)=\"combo.close()\">Close Combo</button>\n     * <igx-combo #combo></igx-combo>\n     * ```\n     */\n    public close(): void {\n        this.dropdown.close();\n    }\n\n    /**\n     * Triggers change detection on the combo view\n     */\n    public triggerCheck() {\n        this.cdr.detectChanges();\n    }\n\n    /**\n     * Get current selection state\n     *\n     * @returns Array of selected items\n     * ```typescript\n     * let mySelection = this.combo.selection;\n     * ```\n     */\n    public get selection(): any[] {\n        const serviceRef = this.selectionService.get(this.selectionKey);\n        return serviceRef ? this.convertKeysToItems(Array.from(serviceRef)) : [];\n    }\n\n    /**\n     * Returns if the specified itemID is selected\n     *\n     * @hidden\n     * @internal\n     */\n    public isItemSelected(item: any): boolean {\n        return this.selectionService.is_item_selected(this.selectionKey, item);\n    }\n\n    /** @hidden @internal */\n    public get toggleIcon(): string {\n        return this.dropdown.collapsed ? 'input_expand' : 'input_collapse';\n    }\n\n    /** @hidden @internal */\n    public addItemToCollection() {\n        if (!this.searchValue) {\n            return;\n        }\n        const addedItem = this.displayKey ? {\n            [this.valueKey]: this.searchValue,\n            [this.displayKey]: this.searchValue\n        } : this.searchValue;\n        if (this.groupKey) {\n            Object.assign(addedItem, { [this.groupKey]: this.defaultFallbackGroup });\n        }\n        // expose shallow copy instead of this.data in event args so this.data can't be mutated\n        const oldCollection = [...this.data!];\n        const newCollection = [...this.data!, addedItem];\n        const args: IComboItemAdditionEvent = {\n            oldCollection, addedItem, newCollection, owner: this, cancel: false\n        };\n        this.addition.emit(args);\n        if (args.cancel) {\n            return;\n        }\n        this.data!.push(args.addedItem);\n        // trigger re-render\n        this.data = cloneArray(this.data!);\n        this.select(this.valueKey !== null && this.valueKey !== undefined ?\n            [args.addedItem[this.valueKey]] : [args.addedItem], false);\n        this.customValueFlag = false;\n        this.searchInput?.nativeElement.focus();\n        this.dropdown.focusedItem = null;\n        void this.virtualScrollContainer?.scrollToIndex(0);\n    }\n\n    /** @hidden @internal */\n    public isAddButtonVisible(): boolean {\n        // This should always return a boolean value. If this.searchValue was '', it returns '' instead of false;\n        return this.searchValue !== '' && this.customValueFlag;\n    }\n\n    /** @hidden @internal */\n    public handleInputChange(event?: any) {\n        if (event !== undefined) {\n            const args: IComboSearchInputEventArgs = {\n                searchText: typeof event === 'string' ? event : event.target.value,\n                owner: this,\n                cancel: false\n            };\n            const restore = this.resetVirtualizationState();\n            this.searchInputUpdate.emit(args);\n\n            if (args.cancel) {\n                this.filterValue = null!;\n                restore();\n            } else {\n                void this.virtualScrollContainer?.scrollToIndex(0);\n            }\n        }\n        this.checkMatch();\n    }\n\n    /**\n     * @hidden @internal\n     * Reports the start of the list without moving it. Returns a callback that puts it back.\n     */\n    private resetVirtualizationState(): () => void {\n        const previous = this._virtualizationState;\n        const previousRequested = this._requestedStartIndex;\n        if (previous.startIndex === 0 && previousRequested === 0) {\n            return () => { };\n        }\n\n        this._virtualizationState = { startIndex: 0, chunkSize: previous.chunkSize };\n        this._requestedStartIndex = 0;\n        return () => {\n            this._virtualizationState = previous;\n            this._requestedStartIndex = previousRequested;\n        };\n    }\n\n    /**\n     * Event handlers\n     *\n     * @hidden\n     * @internal\n     */\n    public handleOpening(e: IBaseCancelableBrowserEventArgs) {\n        const args: IBaseCancelableBrowserEventArgs = { owner: this, event: e.event, cancel: e.cancel };\n        this.opening.emit(args);\n        e.cancel = args.cancel;\n    }\n\n    /** @hidden @internal */\n    public handleClosing(e: IBaseCancelableBrowserEventArgs) {\n        const args: IBaseCancelableBrowserEventArgs = { owner: this, event: e.event, cancel: e.cancel };\n        this.closing.emit(args);\n        e.cancel = args.cancel;\n        if (e.cancel) {\n            return;\n        }\n        this.searchValue = '';\n        const isTab = (e.event as KeyboardEvent)?.key === 'Tab';\n        if (!e.event || isTab) {\n            this.comboInput?.nativeElement.focus();\n        } else {\n            this._onTouchedCallback();\n            this.updateValidity();\n        }\n    }\n\n    /** @hidden @internal */\n    public handleClosed() {\n        this.closed.emit({ owner: this });\n    }\n\n    /** @hidden @internal */\n    public handleKeyDown(event: KeyboardEvent) {\n        if (event.key === 'ArrowUp' || event.key === 'Up') {\n            event.preventDefault();\n            event.stopPropagation();\n            this.close();\n        }\n        if (event.key === 'Tab') {\n            this.close();\n        }\n    }\n\n    /** @hidden @internal */\n    public getAriaLabel(): string {\n        return (this.displayValue ? this.resourceStrings.igx_combo_aria_label_options : this.resourceStrings.igx_combo_aria_label_no_options)!;\n    }\n\n\n    /** @hidden @internal */\n    public registerOnChange(fn: any): void {\n        this._onChangeCallback = fn;\n    }\n\n    /** @hidden @internal */\n    public registerOnTouched(fn: any): void {\n        this._onTouchedCallback = fn;\n    }\n\n    /** @hidden @internal */\n    public setDisabledState(isDisabled: boolean): void {\n        this.disabled = isDisabled;\n    }\n\n    /** @hidden @internal */\n    public onClick(event: MouseEvent) {\n        event.stopPropagation();\n        event.preventDefault();\n\n        if (!this.disabled) {\n            this.toggle();\n        }\n    }\n\n    /** @hidden @internal */\n    public onBlur() {\n        if (this.collapsed) {\n            this._onTouchedCallback();\n            this.updateValidity();\n        }\n    }\n\n    /** @hidden @internal */\n    public setActiveDescendant(): void {\n        this.activeDescendant = this.dropdown.focusedItem?.id || '';\n    }\n\n    /** @hidden @internal */\n    public toggleCaseSensitive() {\n        this.filteringOptions = Object.assign({}, this.filteringOptions, { caseSensitive: !this.filteringOptions.caseSensitive });\n    }\n\n    protected onStatusChanged = () => {\n        if (this.control && this.control.touchedOrDirty && !this.control.disabled) {\n            const showSuccess = this.control.hasValidators && (!this.collapsed || this.inputGroup.isFocused);\n            this.valid = toInputState(this.control.status, showSuccess ? 'allowed' : 'suppressed');\n        } else {\n            // B.P. 18 May 2021: IgxDatePicker does not reset its state upon resetForm #9526\n            this.valid = IgxInputState.INITIAL;\n        }\n\n        this.manageRequiredAsterisk();\n    };\n\n    private updateValidity() {\n        if (this.ngControl && this.ngControl.invalid) {\n            this.valid = IgxInputState.INVALID;\n        } else {\n            this.valid = IgxInputState.INITIAL;\n        }\n    }\n\n    /** if there is a valueKey - map the keys to data items, else - just return the keys */\n    protected convertKeysToItems(keys: any[]) {\n        if (!keys.length || this.valueKey === null || this.valueKey === undefined) {\n            return keys;\n        }\n\n        if (keys.some(isObject)) {\n            return keys.map(key => this.data!.find(entry => isEqual(entry[this.valueKey], key)) ?? { [this.valueKey]: key });\n        }\n\n        const data = this.data!;\n        if (this._recordsByKeySource !== data || this._recordsByKeyLength !== data.length ||\n            this._recordsByKeyValueKey !== this.valueKey) {\n            this._recordsByKey.clear();\n            this._recordsByKeySource = data;\n            this._recordsByKeyLength = data.length;\n            this._recordsByKeyValueKey = this.valueKey;\n        }\n\n        // A cached hit must still occupy its original index and carry the requested key.\n        // Missing or replaced records are resolved together, without caching misses.\n        const remaining = new Set<any>();\n        for (const key of keys) {\n            const cached = this._recordsByKey.get(key);\n            if (!cached || data[cached.index] !== cached.item || !isEqual(cached.item[this.valueKey], key)) {\n                this._recordsByKey.delete(key);\n                remaining.add(key);\n            }\n        }\n\n        for (let index = 0; remaining.size && index < data.length; index++) {\n            const item = data[index];\n            const itemKey = item[this.valueKey];\n            if (isObject(itemKey)) {\n                // A boxed key can be deeply equal to a requested primitive key.\n                for (const key of remaining) {\n                    if (isEqual(itemKey, key)) {\n                        this._recordsByKey.set(key, { item, index });\n                        remaining.delete(key);\n                    }\n                }\n            } else if (remaining.delete(itemKey)) {\n                this._recordsByKey.set(itemKey, { item, index });\n            }\n        }\n\n        return keys.map(key => this._recordsByKey.get(key)?.item ?? { [this.valueKey]: key });\n    }\n\n    protected checkMatch(): void {\n        const itemMatch = this.filteredData!.some(this.findMatch);\n        this.customValueFlag = this.allowCustomValues && !itemMatch;\n    }\n\n    protected findMatch = (element: any): boolean => {\n        const value = this.displayKey ? element[this.displayKey] : element;\n        const searchValue = this.searchValue || this.comboInput?.value;\n        return value?.toString().trim().toLowerCase() === searchValue.trim().toLowerCase();\n    };\n\n    protected manageRequiredAsterisk(): void {\n        if (this.ngControl) {\n            this.inputGroup.isRequired = this.required;\n        }\n    }\n\n    /** Contains key-value pairs of the selected valueKeys and their resp. displayKeys */\n    protected registerRemoteEntries(ids: any[], add = true) {\n        if (add) {\n            const selection = this.getValueDisplayPairs(ids);\n            for (const entry of selection) {\n                (this._remoteSelection as any)[entry[this.valueKey]] = entry[this.displayKey];\n            }\n        } else {\n            for (const entry of ids) {\n                delete (this._remoteSelection as any)[entry];\n            }\n        }\n    }\n\n    /**\n     * For `id: any[]` returns a mapped `{ [combo.valueKey]: any, [combo.displayKey]: any }[]`\n     */\n    protected getValueDisplayPairs(ids: any[]) {\n        return this.data!.filter(entry => ids.indexOf(entry[this.valueKey]) > -1).map(e => ({\n            [this.valueKey]: e[this.valueKey],\n            [this.displayKey]: e[this.displayKey]\n        }));\n    }\n\n    protected getRemoteSelection(newSelection: any[], oldSelection: any[]): string {\n        if (!newSelection.length) {\n            // If new selection is empty, clear all items\n            this.registerRemoteEntries(oldSelection, false);\n            return '';\n        }\n        const removedItems = oldSelection.filter(e => newSelection.indexOf(e) < 0);\n        const addedItems = newSelection.filter(e => oldSelection.indexOf(e) < 0);\n        this.registerRemoteEntries(addedItems);\n        this.registerRemoteEntries(removedItems, false);\n        return Object.keys(this._remoteSelection).map(e => (this._remoteSelection as any)[e]).join(', ');\n    }\n\n    protected get required(): boolean {\n        return this.control?.required ?? false;\n    }\n\n    public abstract get filteredData(): any[] | null;\n    public abstract set filteredData(val: any[] | null);\n\n    public abstract handleOpened(): any;\n    public abstract onArrowDown(event: Event): any;\n    public abstract focusSearchInput(opening?: boolean): any;\n\n    public abstract select(newItem: any): void;\n    public abstract select(newItems: Array<any> | any, clearCurrentSelection?: boolean, event?: Event): void;\n\n    public abstract deselect(...args: [] | [items: Array<any>, event?: Event]): void;\n\n    public abstract writeValue(value: any): void;\n\n    protected abstract setSelection(newSelection: Set<any>, event?: Event): void;\n    protected abstract createDisplayText(newSelection: any[], oldSelection: any[]): any;\n}\n","import { IgxComboItemComponent } from './combo-item.component';\nimport { Component, HostBinding, ChangeDetectionStrategy } from '@angular/core';\n\n/**\n * @hidden\n */\n@Component({\n    selector: 'igx-combo-add-item',\n    template: '<ng-content></ng-content>',\n    changeDetection: ChangeDetectionStrategy.Eager,\n    providers: [{ provide: IgxComboItemComponent, useExisting: IgxComboAddItemComponent }],\n})\nexport class IgxComboAddItemComponent extends IgxComboItemComponent {\n    @HostBinding('class.igx-drop-down__item')\n    public get isDropDownItem(): boolean {\n        return false;\n    }\n\n    public override get selected(): boolean {\n        return false;\n    }\n    public override set selected(value: boolean) {\n    }\n\n    public override clicked(_event?: MouseEvent) {\n        this.comboAPI.disableTransitions = false;\n        this.comboAPI.add_custom_item();\n    }\n}\n","import { Component, QueryList, OnDestroy, AfterViewInit, ContentChildren, Input, booleanAttribute, inject, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\nimport { IgxComboBase, IGX_COMBO_COMPONENT } from './combo.common';\nimport { IgxComboAddItemComponent } from './combo-add-item.component';\nimport { IgxComboAPIService } from './combo.api';\nimport { IgxComboItemComponent } from './combo-item.component';\nimport { IgxToggleDirective } from 'igniteui-angular/directives';\nimport { DropDownActionKey, IDropDownBase, IGX_DROPDOWN_BASE, IgxDropDownComponent, IgxDropDownItemBaseDirective } from 'igniteui-angular/drop-down';\n\n/** @hidden */\n@Component({\n    selector: 'igx-combo-drop-down',\n    templateUrl: '../../../drop-down/src/drop-down/drop-down.component.html',\n    styleUrl: '../../../drop-down/src/drop-down/drop-down.component.css',\n    encapsulation: ViewEncapsulation.None,\n    providers: [{ provide: IGX_DROPDOWN_BASE, useExisting: IgxComboDropDownComponent }],\n    changeDetection: ChangeDetectionStrategy.Eager,\n    imports: [IgxToggleDirective]\n})\nexport class IgxComboDropDownComponent extends IgxDropDownComponent implements IDropDownBase, OnDestroy, AfterViewInit {\n    public combo = inject<IgxComboBase>(IGX_COMBO_COMPONENT);\n    protected comboAPI = inject(IgxComboAPIService);\n\n    /** @hidden @internal */\n    @Input({ transform: booleanAttribute })\n    public singleMode = false;\n\n    /**\n     * @hidden\n     * @internal\n     */\n    @ContentChildren(IgxComboItemComponent, { descendants: true })\n    public override children: QueryList<IgxDropDownItemBaseDirective> = null!;\n\n    /** @hidden @internal */\n    public override get scrollContainer(): HTMLElement {\n        return this.virtualization!.scrollElement;\n    }\n\n    protected get sortedChildren(): IgxDropDownItemBaseDirective[] {\n        if (this.children !== undefined) {\n            return this.children.toArray()\n                .sort((a: IgxDropDownItemBaseDirective, b: IgxDropDownItemBaseDirective) => a.index - b.index);\n        }\n        return null!;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override get focusedItem(): IgxDropDownItemBaseDirective | null {\n        return super.focusedItem;\n    }\n\n    /**\n     * @hidden @internal\n     * Returns a stable aria-activedescendant id, unaffected by virtual scroll position.\n     * The base class computes this from the live focusedItem getter, which reads from the\n     * children QueryList. During virtual scroll the QueryList is recycled, so the getter\n     * can return null mid-CD-cycle causing NG0100 in zoneless apps. The id is cached instead.\n     */\n    public override get activeDescendant(): string | null {\n        return this._activeDescendantId;\n    }\n\n    /** @hidden @internal */\n    public override set focusedItem(item: IgxDropDownItemBaseDirective | null) {\n        if (!item) {\n            this._activeDescendantId = null;\n        } else if (item.id !== undefined) {\n            this._activeDescendantId = item.id;\n        } else {\n            // Virtual { value, index } object passed by navigateItem() under virtual scrolling.\n            const resolved = this.children?.find(e => e.index === item.index);\n            this._activeDescendantId = resolved?.id ?? null;\n        }\n        super.focusedItem = item;\n    }\n\n    /**\n     * Get all non-header items\n     *\n     * ```typescript\n     * let myDropDownItems = this.dropdown.items;\n     * ```\n     */\n    public override get items(): IgxComboItemComponent[] {\n        const items: IgxComboItemComponent[] = [];\n        if (this.children !== undefined) {\n            const sortedChildren = this.sortedChildren as IgxComboItemComponent[];\n            for (const child of sortedChildren) {\n                if (!child.isHeader) {\n                    items.push(child);\n                }\n            }\n        }\n\n        return items;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onFocus() {\n        this.focusedItem = this._focusedItem || this.items[0];\n        this.combo.setActiveDescendant();\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public onBlur(_evt?: Event) {\n        this.focusedItem = null;\n        this.combo.setActiveDescendant();\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override onToggleOpened() {\n        this.opened.emit();\n    }\n\n    /**\n     * @hidden\n     */\n    public override navigateFirst() {\n        // The first selectable entry can only be looked for in what is loaded. A page that\n        // starts further in does not hold it, so the collection's own start is the target.\n        this.navigateItem(this.virtualization?.startIndex === 0\n            ? this.virtualization.findIndex(e => !e?.isHeader)\n            : 0);\n        this.combo.setActiveDescendant();\n    }\n\n    /**\n     * @hidden\n     */\n    public override navigatePrev() {\n        if (this._focusedItem && this._focusedItem.index === 0) {\n            this.combo.focusSearchInput(false);\n            this.focusedItem = null;\n        } else {\n            super.navigatePrev();\n        }\n        this.combo.setActiveDescendant();\n    }\n\n\n    /**\n     * @hidden\n     */\n    public override navigateNext() {\n        const lastIndex = (this.virtualization?.length ?? 0) - 1;\n        if (this._focusedItem && this._focusedItem.index === lastIndex) {\n            this.focusAddItemButton();\n        } else {\n            super.navigateNext();\n        }\n        this.combo.setActiveDescendant();\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override selectItem(item: IgxDropDownItemBaseDirective) {\n        if (item === null || item === undefined) {\n            return;\n        }\n        this.comboAPI.set_selected_item(item.itemID);\n        this._activeDescendantId = item.id ?? null;\n        this._focusedItem = item;\n        this.combo.setActiveDescendant();\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override updateScrollPosition() {\n        this.virtualization!.scrollPosition = this._scrollPosition;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override onItemActionKey(key: DropDownActionKey, event?: KeyboardEvent) {\n        switch (key) {\n            case DropDownActionKey.ENTER:\n                this.handleEnter();\n                break;\n            case DropDownActionKey.SPACE:\n                this.handleSpace();\n                break;\n            case DropDownActionKey.ESCAPE:\n                this.close();\n                break;\n            case DropDownActionKey.TAB:\n                this.close(event);\n        }\n    }\n\n    public override ngAfterViewInit() {\n        super.ngAfterViewInit();\n        this.scrollContainer.addEventListener('scroll', this.scrollHandler);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public override ngOnDestroy(): void {\n        this.virtualization?.scrollElement.removeEventListener('scroll', this.scrollHandler);\n        super.ngOnDestroy();\n    }\n\n    protected override scrollToHiddenItem(_newItem: any): void { }\n\n    protected scrollHandler = () => {\n        this.comboAPI.disableTransitions = true;\n    };\n\n    private handleEnter() {\n        if (this.isAddItemFocused()) {\n            this.combo.addItemToCollection();\n            return;\n        }\n        if (this.singleMode && this.focusedItem) {\n            this.combo.select(this.focusedItem.itemID);\n        }\n\n        this.close();\n    }\n\n    private handleSpace() {\n        if (this.isAddItemFocused()) {\n            return;\n        } else {\n            this.selectItem(this.focusedItem!);\n        }\n    }\n\n    private isAddItemFocused(): boolean {\n        return this.focusedItem instanceof IgxComboAddItemComponent;\n    }\n\n    private focusAddItemButton() {\n        if (this.combo.isAddButtonVisible()) {\n            this.focusedItem = this.items[this.items.length - 1];\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 { Pipe, PipeTransform, inject } from '@angular/core';\nimport { VirtualDataWindow } from 'igniteui-angular/virtual-scroll';\nimport { IComboFilteringOptions, IgxComboBase, IGX_COMBO_COMPONENT } from './combo.common';\nimport { SortingDirection } from 'igniteui-angular/core';\n\n/**\n * @hidden @internal\n * Keeps the loaded records inside the remote total without changing their indices.\n * Runs before grouping, so headers do not count against the number of remote records.\n */\n@Pipe({\n    name: 'comboRecordWindow'\n})\nexport class IgxComboRecordWindowPipe implements PipeTransform {\n    public transform(collection: any[], totalItemCount: number, startIndex: number): any[] {\n        const remaining = Math.max(0, totalItemCount - startIndex);\n        return totalItemCount > 0 && collection.length > remaining\n            ? collection.slice(0, remaining)\n            : collection;\n    }\n}\n\n/**\n * @hidden @internal\n * The items the drop-down has and where they sit in the collection they came from. Pure, so\n * the window keeps its identity while its inputs do.\n */\n@Pipe({\n    name: 'comboDataWindow',\n    standalone: true\n})\nexport class IgxComboDataWindowPipe implements PipeTransform {\n    public transform(\n        collection: any[], totalItemCount: number, startIndex: number\n    ): VirtualDataWindow<any> {\n        if (!(totalItemCount > 0)) {\n            return { items: collection, startIndex: 0, totalCount: collection.length };\n        }\n\n        // An empty page has no position of its own, and anchoring one would stretch the\n        // collection to reach it.\n        return { items: collection, startIndex: collection.length ? startIndex : 0, totalCount: totalItemCount };\n    }\n}\n\n\n\n@Pipe({\n    name: 'comboFiltering',\n    standalone: true\n})\nexport class IgxComboFilteringPipe implements PipeTransform {\n    public transform(\n        collection: any[],\n        searchValue: any,\n        displayKey: any,\n        filteringOptions: IComboFilteringOptions,\n        filterFunction: (collection: any[], searchValue: any, filteringOptions: IComboFilteringOptions) => any[] = defaultFilterFunction,\n        disableFiltering: boolean = false) {\n        if (!collection) {\n            return [];\n        }\n        if (disableFiltering) {\n            return collection;\n        }\n        filteringOptions.filteringKey = filteringOptions.filteringKey ?? displayKey;\n        return filterFunction(collection, searchValue, filteringOptions);\n    }\n}\n\n/** @hidden */\n@Pipe({\n    name: 'comboGrouping',\n    standalone: true\n})\nexport class IgxComboGroupingPipe implements PipeTransform {\n    public combo = inject<IgxComboBase>(IGX_COMBO_COMPONENT);\n\n\n    public transform(collection: any[], groupKey: any, valueKey: any, sortingDirection: SortingDirection, compareCollator: Intl.Collator) {\n        // TODO: should filteredData be changed here?\n        this.combo.filteredData = collection;\n        if ((!groupKey && groupKey !== 0) || !collection.length) {\n            return collection;\n        }\n        const groups = Object.entries(groupBy(collection, (item) => item[groupKey] ?? 'Other'));\n        if (sortingDirection !== SortingDirection.None) {\n            const reverse = sortingDirection === SortingDirection.Desc ? -1 : 1;\n            groups.sort((a,b) => {\n                return compareCollator.compare(a[0], b[0]) * reverse;\n            });\n        }\n        const result = groups.flatMap(([_, items]) => {\n            items.unshift({\n                isHeader: true,\n                [valueKey]: items[0][groupKey],\n                [groupKey]: items[0][groupKey]\n            })\n            return items;\n        });\n        return result;\n    }\n}\n\nfunction defaultFilterFunction<T>(collection: T[], searchValue: string, filteringOptions: IComboFilteringOptions): T[] {\n    if (!searchValue) {\n        return collection;\n    }\n\n    const { caseSensitive, filteringKey } = filteringOptions;\n    const term = caseSensitive ? searchValue : searchValue.toLowerCase();\n\n    return collection.filter(item => {\n        const str = filteringKey ? `${(item as any)[filteringKey]}` : `${item}`;\n        return (caseSensitive ? str : str.toLowerCase()).includes(term);\n    });\n}\n\nfunction normalizeString(str: string, caseSensitive = false): string {\n    return (caseSensitive ? str : str.toLocaleLowerCase())\n        .normalize('NFKD')\n        .replace(/\\p{M}/gu, '');\n}\n\nfunction groupBy<T>(data: T[], getKey: (item: T) => any) {\n    const result: Record<string, T[]> = {};\n\n    for (const item of data) {\n      const category = getKey(item);\n      const group = result[category];\n\n      Array.isArray(group) ? group.push(item) : (result[category] = [item]);\n    }\n\n    return result;\n}\n\n/**\n * Combo filter function which does not distinguish between accented letters and their base letters.\n * For example, when filtering for \"resume\", this function will match both \"resume\" and \"résumé\".\n *\n * @example\n * ```html\n * <igx-combo [filterFunction]=\"comboIgnoreDiacriticFilterFunction\"></igx-combo>\n * ```\n */\nexport function comboIgnoreDiacriticsFilter<T>(collection: T[], searchValue: string, filteringOptions: IComboFilteringOptions): T[] {\n    if (!searchValue) {\n        return collection;\n    }\n\n    const { caseSensitive, filteringKey } = filteringOptions;\n    const term = normalizeString(searchValue, caseSensitive);\n\n    return collection.filter(item => {\n        const str = filteringKey ? `${(item as any)[filteringKey]}` : `${item}`;\n        return normalizeString(str, caseSensitive).includes(term);\n    });\n}\n","import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n    AfterViewInit,\n    Component,\n    OnInit,\n    OnDestroy,\n    ViewChild,\n    Input,\n    Output,\n    EventEmitter,\n    HostListener,\n    DoCheck,\n    booleanAttribute,\n    ChangeDetectionStrategy,\n    ViewEncapsulation\n} from '@angular/core';\n\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport {\n    IBaseEventArgs,\n    IBaseCancelableEventArgs,\n    CancelableEventArgs,\n    EditorProvider\n} from 'igniteui-angular/core';\nimport { IgxVirtualItemDirective, IgxVirtualScrollComponent } from 'igniteui-angular/virtual-scroll';\nimport { IgxRippleDirective } from 'igniteui-angular/directives';\nimport { IgxButtonDirective } from 'igniteui-angular/directives';\nimport { IgxComboItemComponent } from './combo-item.component';\nimport { IgxComboDropDownComponent } from './combo-dropdown.component';\nimport { IgxComboDataWindowPipe, IgxComboFilteringPipe, IgxComboGroupingPipe, IgxComboRecordWindowPipe } from './combo.pipes';\nimport { IGX_COMBO_COMPONENT, IgxComboBaseDirective } from './combo.common';\nimport { IgxComboAddItemComponent } from './combo-add-item.component';\nimport { IgxComboAPIService } from './combo.api';\nimport { IgxInputGroupComponent, IgxInputDirective, IgxReadOnlyInputDirective, IgxSuffixDirective } from 'igniteui-angular/input-group';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\nimport { IgxDropDownItemNavigationDirective } from 'igniteui-angular/drop-down';\n\n/** Event emitted when the Combo's selection has changed */\nexport interface IComboSelectionChangedEventArgs extends IBaseEventArgs {\n    /** An array containing the old selection values */\n    oldValue: any[];\n    /** An array containing the new selection items */\n    newValue: any[];\n    /** An array containing the old selection items */\n    oldSelection: any[];\n    /** An array containing the new selection items */\n    newSelection: any[];\n    /** An array containing the items added to the selection (if any) */\n    added: any[];\n    /** An array containing the items removed from the selection (if any) */\n    removed: any[];\n    /** The display text of the combo text box */\n    displayText: string;\n    /** The user interaction that triggered the selection change */\n    event?: Event;\n}\n\n/** Event emitted when the Combo's selection is changing */\nexport interface IComboSelectionChangingEventArgs extends IComboSelectionChangedEventArgs, IBaseCancelableEventArgs {}\n\n/** Event emitted when the igx-combo's search input changes */\nexport interface IComboSearchInputEventArgs extends IBaseCancelableEventArgs {\n    /** The text that has been typed into the search input */\n    searchText: string;\n}\n\nexport interface IComboItemAdditionEvent extends IBaseEventArgs, CancelableEventArgs {\n    oldCollection: any[];\n    addedItem: any;\n    newCollection: any[];\n}\n\n/**\n * When called with sets A & B, returns A - B (as array);\n *\n * @hidden\n */\nconst diffInSets = (set1: Set<any>, set2: Set<any>): any[] => {\n    const results: any[] = [];\n    set1.forEach(entry => {\n        if (!set2.has(entry)) {\n            results.push(entry);\n        }\n    });\n    return results;\n};\n\n/**\n *  Represents a drop-down list that provides editable functionalities, allowing users to choose an option from a predefined list.\n *\n * @igxModule IgxComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, combo selection\n * @igxGroup Grids & Lists\n *\n * @remarks\n * It provides the ability to filter items as well as perform selection with the provided data.\n * Additionally, it exposes keyboard navigation and custom styling capabilities.\n * @example\n * ```html\n * <igx-combo [itemsMaxHeight]=\"250\" [data]=\"locationData\"\n *  [displayKey]=\"'field'\" [valueKey]=\"'field'\"\n *  placeholder=\"Location(s)\" searchPlaceholder=\"Search...\">\n * </igx-combo>\n * ```\n */\n@Component({\n    selector: 'igx-combo',\n    templateUrl: 'combo.component.html',\n    styleUrl: 'combo.component.css',\n    encapsulation: ViewEncapsulation.None,\n    providers: [\n        IgxComboAPIService,\n        { provide: IGX_COMBO_COMPONENT, useExisting: IgxComboComponent },\n        { provide: NG_VALUE_ACCESSOR, useExisting: IgxComboComponent, multi: true }\n    ],\n    changeDetection: ChangeDetectionStrategy.Eager,\n    imports: [\n        NgTemplateOutlet,\n        NgClass,\n        FormsModule,\n        IgxInputGroupComponent,\n        IgxInputDirective,\n        IgxSuffixDirective,\n        IgxIconComponent,\n        IgxComboDropDownComponent,\n        IgxDropDownItemNavigationDirective,\n        IgxVirtualScrollComponent,\n        IgxVirtualItemDirective,\n        IgxComboItemComponent,\n        IgxComboAddItemComponent,\n        IgxButtonDirective,\n        IgxRippleDirective,\n        IgxReadOnlyInputDirective,\n        IgxComboFilteringPipe,\n        IgxComboGroupingPipe,\n        IgxComboDataWindowPipe,\n        IgxComboRecordWindowPipe\n    ]\n})\nexport class IgxComboComponent extends IgxComboBaseDirective implements AfterViewInit, ControlValueAccessor, OnInit,\n    OnDestroy, DoCheck, EditorProvider {\n    /**\n     * Whether the combo's search box should be focused after the dropdown is opened.\n     * When `false`, the combo's list item container will be focused instead\n     */\n    @Input({ transform: booleanAttribute })\n    public autoFocusSearch = true;\n\n    /**\n     * Defines the placeholder value for the combo dropdown search field\n     *\n     * @deprecated in version 18.2.0. Replaced with values in the localization resource strings.\n     *\n     * ```typescript\n     * // get\n     * let myComboSearchPlaceholder = this.combo.searchPlaceholder;\n     * ```\n     *\n     * ```html\n     * <!--set-->\n     * <igx-combo [searchPlaceholder]='newPlaceHolder'></igx-combo>\n     * ```\n     */\n    @Input()\n    public searchPlaceholder!: string;\n\n    /**\n     * Emitted when item selection is changing, before the selection completes\n     *\n     * ```html\n     * <igx-combo (selectionChanging)='handleSelection()'></igx-combo>\n     * ```\n     */\n    @Output()\n    public selectionChanging = new EventEmitter<IComboSelectionChangingEventArgs>();\n\n    /**\n     * Emitted when item selection is changed, after the selection completes\n     *\n     * ```html\n     * <igx-combo (selectionChanged)='handleSelection()'></igx-combo>\n     * ```\n     */\n    @Output()\n    public selectionChanged = new EventEmitter<IComboSelectionChangedEventArgs>();\n\n    /** @hidden @internal */\n    @ViewChild(IgxComboDropDownComponent, { static: true })\n    public dropdown!: IgxComboDropDownComponent;\n\n    /** @hidden @internal */\n    public get filteredData(): any[] | null {\n        return this.disableFiltering ? this.data : this._filteredData;\n    }\n    /** @hidden @internal */\n    public set filteredData(val: any[] | null) {\n        this._filteredData = this.groupKey ? (val || []).filter((e) => e.isHeader !== true) : val!;\n        this.checkMatch();\n    }\n\n    protected _prevInputValue = '';\n\n    private _displayText!: string;\n\n    constructor() {\n        super();\n        this.comboAPI.register(this);\n    }\n\n    @HostListener('keydown.ArrowDown', ['$event'])\n    @HostListener('keydown.Alt.ArrowDown', ['$event'])\n    public onArrowDown(event: Event) {\n        event.preventDefault();\n        event.stopPropagation();\n        this.open();\n    }\n\n    @HostListener('keydown.Escape', ['$event'])\n    public onEscape(event: Event) {\n        event.stopPropagation();\n        if (this.collapsed) {\n            this.deselectAllItems(true, event);\n        }\n    }\n\n    /** @hidden @internal */\n    public get displaySearchInput(): boolean {\n        return !this.disableFiltering || this.allowCustomValues;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public handleKeyUp(event: KeyboardEvent): void {\n        // TODO: use PlatformUtil for keyboard navigation\n        if (event.key === 'ArrowDown' || event.key === 'Down') {\n            this.dropdown.focusedItem = this.dropdown.items[0];\n            this.dropdownContainer.nativeElement.focus();\n        } else if (event.key === 'Escape' || event.key === 'Esc') {\n            this.toggle();\n        }\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public writeValue(value: any[]): void {\n        const selection = Array.isArray(value) ? value.filter(x => x !== undefined) : [];\n        const oldSelection = this.selection;\n        this.selectionService.select_items(this.selectionKey, selection, true);\n        this.cdr.markForCheck();\n        this._displayValue = this.createDisplayText(this.selection, oldSelection);\n        this._value = this.valueKey ? this.selection.map(item => item[this.valueKey]) : this.selection;\n    }\n\n    /** @hidden @internal */\n    public ngDoCheck(): void {\n        if (!this.data?.length) {\n            return;\n        }\n        const selection = this.selection;\n        if (selection.length) {\n            this._displayValue = this._displayText || this.createDisplayText(selection, []);\n            this._value = this.valueKey ? selection.map(item => item[this.valueKey]) : selection;\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public getEditElement(): HTMLElement {\n        return this.comboInput.nativeElement;\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public get context(): any {\n        return {\n            $implicit: this\n        };\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public handleClearItems(event: Event): void {\n        if (this.disabled) {\n            return;\n        }\n        this.deselectAllItems(true, event);\n        if (this.collapsed) {\n            this.getEditElement().focus();\n        } else {\n            this.focusSearchInput(true);\n        }\n        event.stopPropagation();\n    }\n\n    /**\n     * Select defined items\n     *\n     * @param newItems new items to be selected\n     * @param clearCurrentSelection if true clear previous selected items\n     * ```typescript\n     * this.combo.select([\"New York\", \"New Jersey\"]);\n     * ```\n     */\n    public select(newItems: Array<any>, clearCurrentSelection?: boolean, event?: Event) {\n        if (newItems) {\n            const newSelection = this.selectionService.add_items(this.selectionKey, newItems, clearCurrentSelection);\n            this.setSelection(newSelection, event);\n        }\n    }\n\n    /**\n     * Deselect defined items\n     *\n     * @param items items to deselected\n     * ```typescript\n     * this.combo.deselect([\"New York\", \"New Jersey\"]);\n     * ```\n     */\n    public deselect(items: Array<any>, event?: Event) {\n        if (items) {\n            const newSelection = this.selectionService.delete_items(this.selectionKey, items);\n            this.setSelection(newSelection, event);\n        }\n    }\n\n    /**\n     * Select all (filtered) items\n     *\n     * @param ignoreFilter if set to true, selects all items, otherwise selects only the filtered ones.\n     * ```typescript\n     * this.combo.selectAllItems();\n     * ```\n     */\n    public selectAllItems(ignoreFilter?: boolean, event?: Event) {\n        const allVisible = this.selectionService.get_all_ids(ignoreFilter ? this.data : this.filteredData, this.valueKey);\n        const newSelection = this.selectionService.add_items(this.selectionKey, allVisible);\n        this.setSelection(newSelection, event);\n    }\n\n    /**\n     * Deselect all (filtered) items\n     *\n     * @param ignoreFilter if set to true, deselects all items, otherwise deselects only the filtered ones.\n     * ```typescript\n     * this.combo.deselectAllItems();\n     * ```\n     */\n    public deselectAllItems(ignoreFilter?: boolean, event?: Event): void {\n        let newSelection = this.selectionService.get_empty();\n        if (this.filteredData!.length !== this.data!.length && !ignoreFilter) {\n            newSelection = this.selectionService.delete_items(this.selectionKey, this.selectionService.get_all_ids(this.filteredData, this.valueKey));\n        }\n        this.setSelection(newSelection, event);\n    }\n\n    /**\n     * Selects/Deselects a single item\n     *\n     * @param itemID the itemID of the specific item\n     * @param select If the item should be selected (true) or deselected (false)\n     *\n     * Without specified valueKey;\n     * ```typescript\n     * this.combo.valueKey = null;\n     * const items: { field: string, region: string}[] = data;\n     * this.combo.setSelectedItem(items[0], true);\n     * ```\n     * With specified valueKey;\n     * ```typescript\n     * this.combo.valueKey = 'field';\n     * const items: { field: string, region: string}[] = data;\n     * this.combo.setSelectedItem('Connecticut', true);\n     * ```\n     */\n    public setSelectedItem(itemID: any, select = true, event?: Event): void {\n        if (itemID === undefined) {\n            return;\n        }\n        if (select) {\n            this.select([itemID], false, event);\n        } else {\n            this.deselect([itemID], event);\n        }\n    }\n\n    /** @hidden @internal */\n    public handleOpened() {\n        this.triggerCheck();\n\n        // Disabling focus of the search input should happen only when drop down opens.\n        // During keyboard navigation input should receive focus, even the autoFocusSearch is disabled.\n        // That is why in such cases focusing of the dropdownContainer happens outside focusSearchInput method.\n        if (this.autoFocusSearch) {\n            this.focusSearchInput(true);\n        } else {\n            this.dropdownContainer.nativeElement.focus();\n        }\n        this.opened.emit({ owner: this });\n    }\n\n    /** @hidden @internal */\n    public focusSearchInput(opening?: boolean): void {\n        if (this.displaySearchInput && this.searchInput) {\n            this.searchInput.nativeElement.focus();\n        } else {\n            if (opening) {\n                this.dropdownContainer.nativeElement.focus();\n            } else {\n                this.comboInput.nativeElement.focus();\n                this.toggle();\n            }\n        }\n    }\n\n    protected setSelection(selection: Set<any>, event?: Event): void {\n        const currentSelection = this.selectionService.get(this.selectionKey);\n        const removed = this.convertKeysToItems(diffInSets(currentSelection, selection));\n        const added = this.convertKeysToItems(diffInSets(selection, currentSelection));\n        const newValue = Array.from(selection);\n        const oldValue = Array.from(currentSelection || []);\n        const newSelection = this.convertKeysToItems(newValue);\n        const oldSelection = this.convertKeysToItems(oldValue);\n        const displayText = this.createDisplayText(this.convertKeysToItems(newValue), oldValue);\n        const args: IComboSelectionChangingEventArgs = {\n            newValue,\n            oldValue,\n            newSelection,\n            oldSelection,\n            added,\n            removed,\n            event,\n            owner: this,\n            displayText,\n            cancel: false\n        };\n        this.selectionChanging.emit(args);\n        if (!args.cancel) {\n            this.selectionService.select_items(this.selectionKey, args.newValue, true);\n            this._value = args.newValue;\n            if (displayText !== args.displayText) {\n                this._displayValue = this._displayText = args.displayText;\n            } else {\n                this._displayValue = this.createDisplayText(this.selection, args.oldSelection);\n            }\n            this._onChangeCallback(this.value);\n            const changedArgs: IComboSelectionChangedEventArgs = {\n                newValue: this.value,\n                oldValue,\n                newSelection: this.selection,\n                oldSelection,\n                added: this.convertKeysToItems(diffInSets(new Set(this.value), new Set(oldValue))),\n                removed: this.convertKeysToItems(diffInSets(new Set(oldValue), new Set(this.value))),\n                event,\n                owner: this,\n                displayText: this._displayValue\n            };\n            this.selectionChanged.emit(changedArgs);\n        } else if (this.isRemote) {\n            this.registerRemoteEntries(diffInSets(selection, currentSelection), false);\n        }\n    }\n\n    protected createDisplayText(newSelection: any[], oldSelection: any[]) {\n        const selection = this.valueKey ? newSelection.map(item => item[this.valueKey]) : newSelection;\n        return this.isRemote\n            ? this.getRemoteSelection(selection, oldSelection)\n            : this.concatDisplayText(newSelection);\n    }\n\n    protected getSearchPlaceholderText(): string {\n        return this.searchPlaceholder ||\n            (this.disableFiltering ? this.resourceStrings.igx_combo_addCustomValues_placeholder : this.resourceStrings.igx_combo_filter_search_placeholder)!;\n    }\n\n    /** Returns a string that should be populated in the combo's text box */\n    private concatDisplayText(selection: any[]): string {\n        const value = this.displayKey !== null && this.displayKey !== undefined ?\n            selection.map(entry => entry[this.displayKey]).join(', ') :\n            selection.join(', ');\n        return value;\n    }\n}\n","<igx-input-group #inputGroup [type]=\"type === 'search' ? 'box' : type\" (click)=\"onClick($event)\">\n    <ng-container ngProjectAs=\"[igxLabel]\">\n        <ng-content select=\"[igxLabel]\"></ng-content>\n    </ng-container>\n    <ng-container ngProjectAs=\"igx-prefix\">\n        <ng-content select=\"igx-prefix,[igxPrefix]\"></ng-content>\n    </ng-container>\n    <ng-container ngProjectAs=\"igx-hint, [igxHint]\">\n        <ng-content select=\"igx-hint, [igxHint]\"></ng-content>\n    </ng-container>\n    <input igxInput #comboInput name=\"comboInput\" type=\"text\" [value]=\"displayValue\" readonly\n        [attr.placeholder]=\"placeholder\" [disabled]=\"disabled\" [igxReadOnlyInput]=\"false\"\n        role=\"combobox\" aria-haspopup=\"listbox\"\n        [attr.aria-expanded]=\"!dropdown.collapsed\" [attr.aria-controls]=\"dropdown.listId\"\n        [attr.aria-labelledby]=\"ariaLabelledBy || label?.id || placeholder\"\n        [attr.aria-label]=\"getAriaLabel()\"\n        (blur)=\"onBlur()\" />\n    <ng-container ngProjectAs=\"igx-suffix\">\n        <ng-content select=\"igx-suffix,[igxSuffix]\"></ng-content>\n    </ng-container>\n    @if (displayValue && !disableClear) {\n        <igx-suffix [attr.aria-label]=\"resourceStrings.igx_combo_clearItems_placeholder\" class=\"igx-combo__clear-button igx-input-group__clear-button\"\n            (click)=\"handleClearItems($event)\">\n            @if (clearIconTemplate) {\n                <ng-container *ngTemplateOutlet=\"clearIconTemplate\"></ng-container>\n            }\n            @if (!clearIconTemplate) {\n                <igx-icon family=\"default\" name=\"input_clear\"></igx-icon>\n            }\n        </igx-suffix>\n    }\n    <igx-suffix class=\"igx-input-group__toggle-button igx-combo__toggle-button\">\n        @if (toggleIconTemplate) {\n            <ng-container *ngTemplateOutlet=\"toggleIconTemplate; context: {$implicit: collapsed}\"></ng-container>\n        }\n        @if (!toggleIconTemplate) {\n            <igx-icon family=\"default\" [name]=\"toggleIcon\"></igx-icon>\n        }\n    </igx-suffix>\n</igx-input-group>\n<!-- Outside the drop-down: its content is detached while closed, and a @let there fails to serialize (NG0502). -->\n@let itemWindow = data!\n    | comboRecordWindow:totalItemCount:virtualStartIndex\n    | comboFiltering:filterValue:displayKey:filteringOptions:filterFunction:disableFiltering\n    | comboGrouping:groupKey:valueKey:groupSortingDirection:compareCollator\n    | comboDataWindow:totalItemCount:virtualStartIndex;\n<igx-combo-drop-down #igxComboDropDown class=\"igx-combo__drop-down\"\n    [labelledBy]=\"ariaLabelledBy || label?.id || placeholder || ''\"\n    [width]=\"itemsWidth || '100%'\" (opening)=\"handleOpening($event)\" (closing)=\"handleClosing($event)\"\n    (opened)=\"handleOpened()\" (closed)=\"handleClosed()\">\n\n    <!-- The igx-combo class is needed here in order to scope the css variables -->\n    <div class=\"igx-combo\">\n        @if (displaySearchInput) {\n            <div class=\"igx-combo__search\">\n                <igx-input-group type=\"line\">\n                    <input igxInput #searchInput name=\"searchInput\" autocomplete=\"off\" type=\"text\"\n                           [(ngModel)]=\"searchValue\" (ngModelChange)=\"handleInputChange($event)\" (keyup)=\"handleKeyUp($event)\"\n                           (keydown)=\"handleKeyDown($event)\" (focus)=\"dropdown.onBlur($event)\" [attr.placeholder]=\"getSearchPlaceholderText()\"\n                           aria-autocomplete=\"list\" role=\"searchbox\" aria-label=\"search\"/>\n                    @if (showSearchCaseIcon) {\n                        <igx-suffix\n                            class=\"igx-input-group__case-icon igx-combo__case-icon\"\n                            [ngClass]=\"{ 'igx-combo__case-icon--active': filteringOptions.caseSensitive }\"\n                            (click)=\"toggleCaseSensitive()\"\n                        >\n                            <igx-icon\n                                    family=\"default\"\n                                    name=\"case_sensitive\"\n                                    [active]=\"filteringOptions.caseSensitive\">\n                            </igx-icon>\n                        </igx-suffix>\n                    }\n                </igx-input-group>\n            </div>\n        }\n        <ng-container *ngTemplateOutlet=\"headerTemplate\">\n        </ng-container>\n        <div #dropdownItemContainer class=\"igx-combo__content\" [style.overflow]=\"'hidden'\"\n             [style.maxHeight.rem]=\"itemsMaxHeightInRem\" [igxDropDownItemNavigation]=\"dropdown\" (focus)=\"dropdown.onFocus()\"\n             [tabindex]=\"dropdown.collapsed ? -1 : 0\" [attr.id]=\"dropdown.id\" aria-multiselectable=\"true\"\n             [attr.aria-activedescendant]=\"activeDescendant\">\n            <igx-virtual-scroll #virtualScroll role=\"presentation\"\n                                [dataWindow]=\"itemWindow\"\n                                [estimatedItemSize]=\"estimatedItemSize\"\n                                [overScan]=\"overScan\"\n                                [initialViewportSize]=\"viewportSize\"\n                                (stateChange)=\"handleVirtualStateChange($event)\">\n                <ng-template igxVirtualItem let-item let-rowIndex=\"index\">\n                    <igx-combo-item [itemHeight]=\"itemHeight\"\n                                    [value]=\"item\" [isHeader]=\"item?.isHeader\" [index]=\"rowIndex\" [role]=\"item?.isHeader? 'group' : 'option'\">\n                        @if (item?.isHeader) {\n                            <ng-container\n                                    *ngTemplateOutlet=\"headerItemTemplate ? headerItemTemplate : headerItemBase;\n                            context: {$implicit: item, data: data, valueKey: valueKey, groupKey: groupKey, displayKey: displayKey}\">\n                            </ng-container>\n                        }\n                        <!-- if item is 'null' it should be displayed and !!(item?.isHeader) would resolve it to 'false' and not display it -->\n                        @if (!item?.isHeader) {\n                            <ng-container #listItem\n                                          *ngTemplateOutlet=\"template; context: {$implicit: item, data: data, valueKey: valueKey, displayKey: displayKey};\">\n                            </ng-container>\n                        }\n                    </igx-combo-item>\n                </ng-template>\n            </igx-virtual-scroll>\n        </div>\n\n        @if (filteredData?.length === 0 || isAddButtonVisible()) {\n            <div class=\"igx-combo__add\">\n                @if (filteredData?.length === 0) {\n                    <div class=\"igx-combo__empty\">\n                        <ng-container *ngTemplateOutlet=\"emptyTemplate ? emptyTemplate : empty\">\n                        </ng-container>\n                    </div>\n                }\n                @if (isAddButtonVisible()) {\n                    <igx-combo-add-item [itemHeight]=\"itemHeight\"\n                                        [tabindex]=\"dropdown.collapsed ? -1 : customValueFlag ? 1 : -1\" class=\"igx-combo__add-item\" role=\"button\"\n                                        [attr.aria-label]=\"resourceStrings.igx_combo_addCustomValues_placeholder\" [index]=\"itemWindow.totalCount\">\n                        <ng-container *ngTemplateOutlet=\"addItemTemplate ? addItemTemplate : addItemDefault\">\n                        </ng-container>\n                    </igx-combo-add-item>\n                }\n            </div>\n        }\n        <ng-container *ngTemplateOutlet=\"footerTemplate\">\n        </ng-container>\n    </div>\n</igx-combo-drop-down>\n<ng-template #complex let-display let-data=\"data\" let-key=\"displayKey\">\n    {{display[key]}}\n</ng-template>\n<ng-template #primitive let-display>\n    {{display}}\n</ng-template>\n<ng-template #empty>\n    <span>{{resourceStrings.igx_combo_empty_message}}</span>\n</ng-template>\n<ng-template #addItemDefault let-control>\n    <button type=\"button\" igxButton=\"flat\" igxRipple>{{ resourceStrings.igx_combo_addCustomValues_placeholder }}</button>\n</ng-template>\n<ng-template #headerItemBase let-item let-key=\"valueKey\" let-groupKey=\"groupKey\">\n    {{ item[key] }}\n</ng-template>\n","import { IgxHintDirective, IgxLabelDirective, IgxPrefixDirective, IgxSuffixDirective } from 'igniteui-angular/input-group';\nimport { IgxComboComponent } from './combo.component';\nimport {\n    IgxComboAddItemDirective,\n    IgxComboClearIconDirective,\n    IgxComboEmptyDirective,\n    IgxComboFooterDirective,\n    IgxComboHeaderDirective,\n    IgxComboHeaderItemDirective,\n    IgxComboItemDirective,\n    IgxComboToggleIconDirective\n} from './combo.directives';\n\nexport * from './combo.api';\nexport * from './combo.common';\nexport * from './combo.component';\nexport * from './combo.directives';\nexport * from './combo.pipes';\nexport * from './combo-add-item.component';\nexport * from './combo-dropdown.component'\nexport * from './combo-item.component';\nexport { comboIgnoreDiacriticsFilter } from './combo.pipes';\n\n/* NOTE: Combo directives collection for ease-of-use import in standalone components scenario */\nexport const IGX_COMBO_DIRECTIVES = [\n    IgxComboComponent,\n    IgxComboAddItemDirective,\n    IgxComboClearIconDirective,\n    IgxComboEmptyDirective,\n    IgxComboFooterDirective,\n    IgxComboHeaderDirective,\n    IgxComboHeaderItemDirective,\n    IgxComboItemDirective,\n    IgxComboToggleIconDirective,\n    IgxLabelDirective,\n    IgxPrefixDirective,\n    IgxSuffixDirective,\n    IgxHintDirective\n] as const;\n","import { NgModule } from '@angular/core';\nimport { IGX_COMBO_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_COMBO_DIRECTIVES\n    ],\n    exports: [\n        ...IGX_COMBO_DIRECTIVES\n    ]\n})\nexport class IgxComboModule { }\n"],"mappings":";;;;;;;;;;;;;;;;;AAOA,IAAa,qBAAb,MAAa,mBAAkB;CAD/B,cAAA;EAEW,KAAA,qBAAqB;CAgD/B;CA7CG,IAAW,WAAQ;EACf,OAAO,KAAK,MAAM,aAAa,QAAQ,KAAK,MAAM,aAAa,SAAY,KAAK,MAAM,WAAW;CACrG;CAEA,IAAW,iBAAc;EACrB,OAAO;CACX;CACA,IAAW,WAAQ;EACf,OAAO,KAAK,MAAM;CACtB;CAEA,IAAW,UAAO;EACd,OAAO,KAAK,MAAM;CACtB;CAEO,SAAS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