{"version":3,"file":"igniteui-angular-simple-combo.mjs","names":[],"sources":["../../../projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.component.ts","../../../projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.component.html","../../../projects/igniteui-angular/simple-combo/src/simple-combo/public_api.ts","../../../projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.module.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { AfterViewInit, Component, DoCheck, EventEmitter, Output, ViewChild, ViewEncapsulation, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { ControlValueAccessor, FormGroupDirective, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { CancelableEventArgs, IBaseCancelableBrowserEventArgs, IBaseEventArgs, PlatformUtil } from 'igniteui-angular/core';\nimport { IgxButtonDirective } from 'igniteui-angular/directives';\nimport { IgxVirtualItemDirective, IgxVirtualScrollComponent } from 'igniteui-angular/virtual-scroll';\nimport { IgxRippleDirective } from 'igniteui-angular/directives';\nimport { IgxTextSelectionDirective } from 'igniteui-angular/directives';\nimport { IgxInputGroupComponent, IgxInputDirective, IgxSuffixDirective } from 'igniteui-angular/input-group';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\nimport { IGX_COMBO_COMPONENT, IgxComboAddItemComponent, IgxComboAPIService, IgxComboBaseDirective, IgxComboDataWindowPipe, IgxComboDropDownComponent, IgxComboFilteringPipe, IgxComboGroupingPipe, IgxComboItemComponent, IgxComboRecordWindowPipe } from 'igniteui-angular/combo';\nimport { IgxDropDownItemNavigationDirective } from 'igniteui-angular/drop-down';\n\n/** Emitted when the Combo's selection has changed. */\nexport interface ISimpleComboSelectionChangedEventArgs extends IBaseEventArgs {\n    /** The old selection value */\n    oldValue: any;\n    /** The new selection value */\n    newValue: any;\n    /** The old selection item */\n    oldSelection: any;\n    /** The new selection item */\n    newSelection: any;\n    /** The display text of the combo text box */\n    displayText: string;\n}\n\n/** Emitted when the Combo's selection is changing. */\nexport interface ISimpleComboSelectionChangingEventArgs extends ISimpleComboSelectionChangedEventArgs, CancelableEventArgs {}\n\n/**\n * Represents a drop-down list that provides filtering functionality, allowing users to choose a single option from a predefined list.\n *\n * @igxModule IgxSimpleComboModule\n * @igxTheme igx-combo-theme\n * @igxKeywords combobox, single combo selection\n * @igxGroup Grids & Lists\n *\n * @remarks\n * It provides the ability to filter items as well as perform single selection on the provided data.\n * Additionally, it exposes keyboard navigation and custom styling capabilities.\n * @example\n * ```html\n * <igx-simple-combo [itemsMaxHeight]=\"250\" [data]=\"locationData\"\n *  [displayKey]=\"'field'\" [valueKey]=\"'field'\"\n *  placeholder=\"Location\" searchPlaceholder=\"Search...\">\n * </igx-simple-combo>\n * ```\n */\n@Component({\n    selector: 'igx-simple-combo',\n    templateUrl: 'simple-combo.component.html',\n    styleUrls: ['../../../combo/src/combo/combo.component.css'],\n    providers: [\n        IgxComboAPIService,\n        { provide: IGX_COMBO_COMPONENT, useExisting: IgxSimpleComboComponent },\n        { provide: NG_VALUE_ACCESSOR, useExisting: IgxSimpleComboComponent, multi: true }\n    ],\n    encapsulation: ViewEncapsulation.None,\n    changeDetection: ChangeDetectionStrategy.Eager,\n    host: {\n        '(keydown.ArrowDown)': 'onArrowDown($any($event))',\n        '(keydown.Alt.ArrowDown)': 'onArrowDown($any($event))'\n    },\n    imports: [IgxInputGroupComponent, IgxInputDirective, IgxTextSelectionDirective, IgxSuffixDirective, NgTemplateOutlet, IgxIconComponent, IgxComboDropDownComponent, IgxDropDownItemNavigationDirective, IgxVirtualScrollComponent, IgxVirtualItemDirective, IgxComboItemComponent, IgxComboAddItemComponent, IgxButtonDirective, IgxRippleDirective, IgxComboFilteringPipe, IgxComboGroupingPipe, IgxComboDataWindowPipe, IgxComboRecordWindowPipe]\n})\nexport class IgxSimpleComboComponent extends IgxComboBaseDirective implements ControlValueAccessor, AfterViewInit, DoCheck {\n    private platformUtil = inject(PlatformUtil);\n    private formGroupDirective = inject(FormGroupDirective, { optional: true });\n\n    /** @hidden @internal */\n    @ViewChild(IgxComboDropDownComponent, { static: true })\n    public dropdown!: IgxComboDropDownComponent;\n\n    /** @hidden @internal */\n    @ViewChild(IgxComboAddItemComponent)\n    public addItem!: IgxComboAddItemComponent;\n\n    /**\n     * Emitted when item selection is changing, before the selection completes\n     *\n     * ```html\n     * <igx-simple-combo (selectionChanging)='handleSelection()'></igx-simple-combo>\n     * ```\n     */\n    @Output()\n    public selectionChanging = new EventEmitter<ISimpleComboSelectionChangingEventArgs>();\n\n    /**\n     * Emitted when item selection is changed, after the selection completes\n     *\n     * ```html\n     * <igx-simple-combo (selectionChanged)='handleSelection()'></igx-simple-combo>\n     * ```\n     */\n    @Output()\n    public selectionChanged = new EventEmitter<ISimpleComboSelectionChangedEventArgs>();\n\n    @ViewChild(IgxTextSelectionDirective, { static: true })\n    private textSelection!: IgxTextSelectionDirective;\n\n    public override get value(): any {\n        return this._value[0];\n    }\n\n    /**\n     * Get current selection state\n     *\n     * @returns The selected item, if any\n     * ```typescript\n     * let mySelection = this.combo.selection;\n     * ```\n     */\n    public override get selection(): any {\n        return super.selection[0];\n    }\n\n    /** @hidden @internal */\n    public composing = false;\n\n    private _updateInput = true;\n\n    private _collapsing = false;\n\n    /** The rendered collection the selection was last brought into focus against. */\n    private _refocusedItems: readonly any[] | null = null;\n\n    /** @hidden @internal */\n    public get filteredData(): any[] | null {\n        return 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    /** @hidden @internal */\n    public override get searchValue(): string {\n        return this._searchValue;\n    }\n    public override set searchValue(val: string) {\n        this._searchValue = val;\n    }\n\n    /** The display text of the registered remote selection. */\n    private get remoteDisplayText(): string {\n        return Object.values(this._remoteSelection)[0] as string || '';\n    }\n\n    private get selectedItem(): any {\n        return this.selectionService.get(this.selectionKey).values().next().value;\n    }\n\n    protected get hasSelectedItem(): boolean {\n        return !!this.selectionService.get(this.selectionKey).size;\n    }\n\n    constructor() {\n        super();\n        this.comboAPI.register(this);\n    }\n\n    /** @hidden @internal */\n    public onArrowDown(event: KeyboardEvent): void {\n        if (this.collapsed) {\n            event.preventDefault();\n            event.stopPropagation();\n            this.open();\n        } else {\n            if (this.filteredData!.length > 0 && !this.hasSelectedItem) {\n                this.dropdown.navigateNext();\n                this.dropdownContainer.nativeElement.focus();\n            } else if (this.allowCustomValues) {\n                this.addItem?.element.nativeElement.focus();\n            }\n        }\n    }\n\n    /**\n     * Select a defined item\n     *\n     * @param item the item to be selected\n     * ```typescript\n     * this.combo.select(\"New York\");\n     * ```\n     */\n    public select(item: any): void {\n        if (item !== undefined) {\n            const newSelection = this.selectionService.add_items(this.selectionKey, item instanceof Array ? item : [item], true);\n            this.setSelection(newSelection);\n        }\n    }\n\n    /**\n     * Deselect the currently selected item\n     *\n     * @param item the items to be deselected\n     * ```typescript\n     * this.combo.deselect(\"New York\");\n     * ```\n     */\n    public deselect(): void {\n        this.clearSelection();\n    }\n\n    /** @hidden @internal */\n    public writeValue(value: any): void {\n        const oldSelection = super.selection;\n        this.selectionService.select_items(this.selectionKey, this.isValid(value) ? [value] : [], true);\n        this.cdr.markForCheck();\n        this._displayValue = this.createDisplayText(super.selection, oldSelection);\n        this._value = this.valueKey ? super.selection.map(item => item[this.valueKey]) : super.selection;\n        this.searchValue = this.filterValue = this._displayValue?.toString() || '';\n    }\n\n    /** @hidden @internal */\n    public override ngAfterViewInit(): void {\n        this.dropdown.opening.pipe(takeUntil(this.destroy$)).subscribe((args) => {\n            if (args.cancel) {\n                return;\n            }\n            this._collapsing = false;\n            const filtered = this.filteredData!.find(this.findAllMatches);\n            if (filtered === undefined || filtered === null) {\n                this.filterValue = this.searchValue = this.comboInput.value;\n                return;\n            }\n        });\n        this.dropdown.opened.pipe(takeUntil(this.destroy$)).subscribe(() => {\n            if (this.composing) {\n                this.comboInput.focus();\n            }\n        });\n        this.dropdown.closing.pipe(takeUntil(this.destroy$)).subscribe((args) => {\n            if (args.cancel) {\n                return;\n            }\n            if (this.getEditElement() && !args.event) {\n                this._collapsing = true;\n                // Only focus back when programmatically closing (no user event)\n                // to avoid focus loops when user clicks on another combo\n                this.comboInput.focus();\n            } else {\n                this.clearOnBlur();\n                this._onTouchedCallback();\n            }\n        });\n\n        // in reactive form the control is not present initially\n        // and sets the selection to an invalid value in writeValue method\n        if (!this.isValid(this.selectedItem)) {\n            this.selectionService.clear(this.selectionKey);\n            this._displayValue = '';\n        }\n\n        super.ngAfterViewInit();\n    }\n\n    /** @hidden @internal */\n    public ngDoCheck(): void {\n        const selection = this.data?.length ? super.selection : [];\n        if (selection.length && !this._displayValue) {\n            this._displayValue = this.createDisplayText(selection, []);\n            this._value = this.valueKey ? selection.map(item => item[this.valueKey]) : selection;\n        }\n        this.refocusSelection(selection);\n    }\n\n    /**\n     * Keeps the selected record focused once the rendered collection has been rebuilt.\n     * `navigateItem` addresses that collection, whose indices are not the bound array's.\n     */\n    private refocusSelection(selection: any[]): void {\n        const items = this.virtualScrollContainer?.dataWindow()?.items;\n        if (!items || items === this._refocusedItems) {\n            return;\n        }\n        this._refocusedItems = items;\n\n        // A page arriving for a remote list would otherwise move the scroll and ask for the\n        // next one in the middle of the consumer supplying it.\n        if (this.isRemote) {\n            return;\n        }\n\n        if (selection.length === 0) {\n            return;\n        }\n\n        const index = items.indexOf(selection[0]);\n        if (index >= 0) {\n            this.dropdown?.navigateItem(index);\n        }\n    }\n\n    /** @hidden @internal */\n    public override handleInputChange(event?: any): void {\n        if (this.collapsed && this.comboInput.focused) {\n            this.open();\n        }\n        if (event !== undefined) {\n            this.filterValue = this.searchValue = typeof event === 'string' ? event : event.target.value;\n        }\n        if (!this.comboInput.value.trim() && super.selection.length) {\n            // handle clearing of input by space\n            this.clearSelection();\n            this._onChangeCallback(null);\n            this.filterValue = '';\n        }\n        if (super.selection.length) {\n            const args: ISimpleComboSelectionChangingEventArgs = {\n                newValue: undefined,\n                oldValue: this.selectedItem,\n                newSelection: undefined,\n                oldSelection: this.selection,\n                displayText: typeof event === 'string' ? event : event?.target?.value,\n                owner: this,\n                cancel: false\n            };\n            this.selectionChanging.emit(args);\n            if (!args.cancel) {\n                this.selectionService.select_items(this.selectionKey, [], true);\n                const changedArgs: ISimpleComboSelectionChangedEventArgs = {\n                    newValue: undefined,\n                    oldValue: this.selectedItem,\n                    newSelection: undefined,\n                    oldSelection: this.selection,\n                    displayText: typeof event === 'string' ? event : event?.target?.value,\n                    owner: this\n                };\n                this.selectionChanged.emit(changedArgs);\n            }\n        }\n        // when filtering the focused item should be the first item or the currently selected item\n        if (!this.dropdown.focusedItem || this.dropdown.focusedItem.id !== this.dropdown.items[0].id) {\n            this.dropdown.navigateFirst();\n        }\n        super.handleInputChange(event);\n        this.composing = true;\n    }\n\n    /** @hidden @internal */\n    public handleInputClick(): void {\n        if (this.collapsed) {\n            this.open();\n            this.comboInput.focus();\n        }\n    }\n\n    /** @hidden @internal */\n    public override handleKeyDown(event: KeyboardEvent): void {\n        if (event.key === this.platformUtil.KEYMAP.ENTER) {\n            const filtered = this.filteredData!.find(this.findAllMatches);\n            if (filtered === null || filtered === undefined) {\n                return;\n            }\n            if (!this.dropdown.collapsed) {\n                const focusedItem = this.dropdown.focusedItem;\n                if (focusedItem && !focusedItem.isHeader) {\n                    this.select(focusedItem.itemID);\n                    event.preventDefault();\n                    event.stopPropagation();\n                    this.close();\n                } else {\n                    event.preventDefault();\n                    event.stopPropagation();\n                    this.comboInput.focus();\n                }\n            }\n            // manually trigger text selection as it will not be triggered during editing\n            this.textSelection.trigger();\n            return;\n        }\n        if (event.key === this.platformUtil.KEYMAP.BACKSPACE\n            || event.key === this.platformUtil.KEYMAP.DELETE) {\n            this._updateInput = false;\n            this.clearSelection(true);\n        }\n        if (!this.collapsed && event.key === this.platformUtil.KEYMAP.TAB) {\n            const filtered = this.filteredData!.find(this.findAllMatches);\n            if (filtered === null || filtered === undefined) {\n                this.clearOnBlur();\n                this.close();\n                return;\n            }\n            const focusedItem = this.dropdown.focusedItem;\n            if (focusedItem && !focusedItem.isHeader) {\n                this.select(focusedItem.itemID);\n                this.close();\n                this.textSelection.trigger();\n            } else {\n                this.clearOnBlur();\n                this.close();\n            }\n        }\n        if (event.key === this.platformUtil.KEYMAP.ESCAPE) {\n            event.stopPropagation();\n            if (this.collapsed) {\n                // Compare the raw selected key: `selection` creates a new object on\n                // every read for a key that is missing from the current data.\n                const oldSelectedItem = this.selectedItem;\n                this.clearSelection(true);\n                if (this.selectedItem !== oldSelectedItem) {\n                    this.comboInput.value = this.filterValue = this.searchValue = '';\n                }\n                this.dropdown.focusedItem = null;\n                this.comboInput.focus();\n            } else {\n                this.close();\n            }\n        }\n        this.composing = false;\n        super.handleKeyDown(event);\n    }\n\n    /** @hidden @internal */\n    public handleKeyUp(event: KeyboardEvent): void {\n        if (event.key === this.platformUtil.KEYMAP.ARROW_DOWN) {\n            this.dropdown.focusedItem = this.hasSelectedItem && this.filteredData!.length > 0\n                ? this.dropdown.items.find(i => i.itemID === this.selectedItem)!\n                : this.dropdown.items[0]!;\n            this.dropdownContainer.nativeElement.focus();\n        }\n    }\n\n    /** @hidden @internal */\n    public handleItemKeyDown(event: KeyboardEvent): void {\n        if (event.key === this.platformUtil.KEYMAP.ARROW_UP && event.altKey) {\n            this.close();\n            this.comboInput.focus();\n            return;\n        }\n        if (event.key === this.platformUtil.KEYMAP.ENTER) {\n            this.comboInput.focus();\n        }\n    }\n\n    /** @hidden @internal */\n    public handleItemClick(): void {\n        this.close();\n        this.comboInput.focus();\n    }\n\n    /** @hidden @internal */\n    public override onBlur(): void {\n        // when clicking the toggle button to close the combo and immediately clicking outside of it\n        // the collapsed state is not modified as the dropdown is still not closed\n        if (this.collapsed || this._collapsing) {\n            this.clearOnBlur();\n        }\n        super.onBlur();\n    }\n\n    /** @hidden @internal */\n    public getEditElement(): HTMLElement {\n        return this.comboInput.nativeElement;\n    }\n\n    /** @hidden @internal */\n    public handleClear(event: Event): void {\n        if (this.disabled) {\n            return;\n        }\n\n        const oldSelectedItem = this.selectedItem;\n        this.clearSelection(true);\n\n        if (!this.collapsed) {\n            this.focusSearchInput(true);\n        }\n        event.stopPropagation();\n\n        if (this.selectedItem !== oldSelectedItem) {\n            this.comboInput.value = this.filterValue = this.searchValue = '';\n        }\n\n        this.dropdown.focusedItem = null;\n        this.composing = false;\n        this.comboInput.focus();\n    }\n\n    /** @hidden @internal */\n    public handleOpened(): void {\n        this.triggerCheck();\n        if (!this.comboInput.focused) {\n            this.dropdownContainer.nativeElement.focus();\n        }\n        this.opened.emit({ owner: this });\n    }\n\n    /** @hidden @internal */\n    public override handleClosing(e: IBaseCancelableBrowserEventArgs): void {\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\n        this.composing = false;\n        // explicitly update selection so that we don't have to force CD\n        const isTab = (e.event as KeyboardEvent)?.key === this.platformUtil.KEYMAP.TAB;\n        this.textSelection.selected = !isTab;\n    }\n\n    /** @hidden @internal */\n    public focusSearchInput(opening?: boolean): void {\n        if (opening) {\n            this.dropdownContainer.nativeElement.focus();\n        } else {\n            this.comboInput.nativeElement.focus();\n        }\n    }\n\n    /** @hidden @internal */\n    public override onClick(event: MouseEvent): void {\n        super.onClick(event);\n        if (this.comboInput.value.length === 0) {\n            void this.virtualScrollContainer?.scrollToIndex(0);\n        }\n    }\n\n    protected findAllMatches = (element: any): boolean => {\n        const value = this.displayKey ? element[this.displayKey] : element;\n        if (value === null || value === undefined || value === '') {\n            // we can accept null, undefined and empty strings as empty display values\n            return true;\n        }\n        const searchValue = this.searchValue || this.comboInput.value;\n        return !!searchValue && value.toString().toLowerCase().includes(searchValue.toLowerCase());\n    };\n\n    protected setSelection(newSelection: any): void {\n        const newValueAsArray = newSelection ? Array.from(newSelection) as IgxComboItemComponent[] : [];\n        const oldValueAsArray = Array.from(this.selectionService.get(this.selectionKey) || []);\n        // Creating the display text below registers the new remote entries, so keep\n        // the current ones to restore them if the change is canceled.\n        const oldRemoteSelection = { ...this._remoteSelection };\n        const newItems = this.convertKeysToItems(newValueAsArray);\n        const oldItems = this.convertKeysToItems(oldValueAsArray);\n        const displayText = this.createDisplayText(this.convertKeysToItems(newValueAsArray), oldValueAsArray);\n        const args: ISimpleComboSelectionChangingEventArgs = {\n            newValue: newValueAsArray[0],\n            oldValue: oldValueAsArray[0],\n            newSelection: newItems[0],\n            oldSelection: oldItems[0],\n            displayText,\n            owner: this,\n            cancel: false\n        };\n        const shouldEmitSelectionEvents = args.newSelection !== args.oldSelection;\n        if (shouldEmitSelectionEvents) {\n            this.selectionChanging.emit(args);\n        }\n        // TODO: refactor below code as it sets the selection and the display text\n        if (!args.cancel) {\n            let argsSelection = this.isValid(args.newValue)\n                ? args.newValue\n                : [];\n            argsSelection = Array.isArray(argsSelection) ? argsSelection : [argsSelection];\n            this.selectionService.select_items(this.selectionKey, argsSelection, true);\n            this._value = argsSelection;\n            if (this._updateInput) {\n                this.comboInput.value = this._displayValue = this.searchValue = displayText !== args.displayText\n                    ? args.displayText\n                    : this.createDisplayText(super.selection, [args.oldValue]);\n            }\n            this._onChangeCallback(this.value);\n            if (shouldEmitSelectionEvents) {\n                const changedArgs: ISimpleComboSelectionChangedEventArgs = {\n                    newValue: this.value,\n                    oldValue: oldValueAsArray[0],\n                    newSelection: this.selection,\n                    oldSelection: oldItems[0],\n                    displayText: this._displayValue,\n                    owner: this\n                };\n                this.selectionChanged.emit(changedArgs);\n            }\n            this._updateInput = true;\n        } else {\n            if (this.isRemote) {\n                this._remoteSelection = oldRemoteSelection;\n            }\n            this.comboInput.value = this._displayValue = this.searchValue = this.isRemote\n                ? this.remoteDisplayText\n                : this.createDisplayText(oldItems, []);\n        }\n    }\n\n    protected createDisplayText(newSelection: any[], oldSelection: any[]): string {\n        if (this.isRemote) {\n            const selection = this.valueKey ? newSelection.map(item => item[this.valueKey]) : newSelection;\n            return this.getRemoteSelection(selection, oldSelection);\n        }\n\n        if (this.displayKey !== null\n            && this.displayKey !== undefined\n            && newSelection.length > 0) {\n            return newSelection.filter(e => e).map(e => e[this.displayKey])[0]?.toString() || '';\n        }\n\n        return newSelection[0]?.toString() || '';\n    }\n\n    protected override getRemoteSelection(newSelection: any[], oldSelection: any[]): string {\n        if (!newSelection.length) {\n            this.registerRemoteEntries(oldSelection, false);\n            return '';\n        }\n\n        this.registerRemoteEntries(oldSelection, false);\n        this.registerRemoteEntries(newSelection);\n        return this.remoteDisplayText;\n    }\n\n    /** Contains key-value pairs of the selected valueKeys and their resp. displayKeys */\n    protected override registerRemoteEntries(ids: any[], add = true) {\n        const selection = this.getValueDisplayPairs(ids)[0];\n\n        if (add && selection) {\n            (this._remoteSelection as any)[selection[this.valueKey]] = selection[this.displayKey].toString();\n        } else {\n            this._remoteSelection = {};\n        }\n    }\n\n    private clearSelection(ignoreFilter?: boolean): 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        if (this.selectionService.get(this.selectionKey).size > 0 || this.comboInput.value.trim()) {\n            this.setSelection(newSelection);\n        }\n    }\n\n    private clearOnBlur(): void {\n        if (this.isRemote) {\n            const searchValue = this.searchValue || this.comboInput.value;\n            if (searchValue !== this.remoteDisplayText) {\n                this.clearSelection(true);\n            }\n            return;\n        }\n\n        const filtered = this.filteredData!.find(this.findMatch);\n        // selecting null in primitive data returns undefined as the search text is '', but the item is null\n        if (filtered === undefined && this.selectedItem !== null || !super.selection.length) {\n            this.clearSelection(true);\n        }\n    }\n\n    private isValid(value: any): boolean {\n        if (this.formGroupDirective && value === null) {\n            return false;\n        }\n\n        if (this.required) {\n            return value !== null && value !== '' && value !== undefined\n        }\n\n        return value !== undefined;\n    }\n}\n","<igx-input-group #inputGroup [type]=\"type\">\n\n    <ng-container ngProjectAs=\"[igxLabel]\">\n        <ng-content select=\"[igxLabel]\"></ng-content>\n    </ng-container>\n\n    <ng-container ngProjectAs=\"igx-prefix\">\n        <ng-content select=\"igx-prefix,[igxPrefix]\"></ng-content>\n    </ng-container>\n\n    <ng-container ngProjectAs=\"igx-hint, [igxHint]\">\n        <ng-content select=\"igx-hint, [igxHint]\"></ng-content>\n    </ng-container>\n\n    <input #comboInput igxInput [value]=\"displayValue\" role=\"combobox\"\n        aria-haspopup=\"listbox\" aria-autocomplete=\"list\" aria-readonly=\"false\"\n        [attr.aria-expanded]=\"!this.dropdown.collapsed\" [attr.aria-controls]=\"this.dropdown.listId\"\n        [attr.aria-labelledby]=\"this.ariaLabelledBy || this.label?.id || this.placeholder\"\n        [attr.placeholder]=\"placeholder\" [disabled]=\"disabled\" [igxTextSelection]=\"!composing\"\n        [attr.aria-label]=\"getAriaLabel()\"\n        (input)=\"handleInputChange($event)\" (click)=\"handleInputClick()\"\n        (keyup)=\"handleKeyUp($event)\" (keydown)=\"handleKeyDown($event)\" (blur)=\"onBlur()\" (paste)=\"handleInputChange($event)\"/>\n\n    <ng-container ngProjectAs=\"igx-suffix\">\n        <ng-content select=\"igx-suffix,[igxSuffix]\"></ng-content>\n    </ng-container>\n\n    @if (hasSelectedItem && !disableClear) {\n        <igx-suffix [attr.aria-label]=\"resourceStrings.igx_combo_clearItems_placeholder\" class=\"igx-combo__clear-button igx-input-group__clear-button\"\n            (click)=\"handleClear($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\n    @if (showSearchCaseIcon) {\n        <igx-suffix>\n            <igx-icon family=\"default\" name=\"case_sensitive\" [active]=\"filteringOptions.caseSensitive\"\n                (click)=\"toggleCaseSensitive()\">\n            </igx-icon>\n        </igx-suffix>\n    }\n\n    <igx-suffix class=\"igx-input-group__toggle-button igx-combo__toggle-button\" (click)=\"onClick($event)\">\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\n</igx-input-group>\n\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\n<igx-combo-drop-down #igxComboDropDown class=\"igx-combo__drop-down\"\n    [labelledBy]=\"this.ariaLabelledBy || this.label?.id || this.placeholder || ''\"\n    [width]=\"itemsWidth || '100%'\" (opening)=\"handleOpening($event)\" (closing)=\"handleClosing($event)\"\n    (opened)=\"handleOpened()\" (closed)=\"handleClosed()\" [singleMode]=\"true\">\n        <!-- The igx-combo class is needed here in order to scope the css variables -->\n        <div class=\"igx-combo\">\n            <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n\n            <div #dropdownItemContainer class=\"igx-combo__content\" [style.overflow]=\"'hidden'\"\n                [style.maxHeight.rem]=\"itemsMaxHeightInRem\" [igxDropDownItemNavigation]=\"dropdown\"\n                [tabindex]=\"dropdown.collapsed ? -1 : 0\" [attr.id]=\"dropdown.id\"\n                [attr.aria-activedescendant]=\"this.activeDescendant\"\n                (focus)=\"dropdown.onFocus()\" (keydown)=\"handleItemKeyDown($event)\">\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 [role]=\"item?.isHeader? 'group' : 'option'\" [singleMode]=\"true\"\n                            [itemHeight]=\"itemHeight\" (click)=\"handleItemClick()\"\n                            [value]=\"item\" [isHeader]=\"item?.isHeader\" [index]=\"rowIndex\">\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 #addItem [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\"></ng-container>\n        </div>\n</igx-combo-drop-down>\n\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 { IgxSimpleComboComponent } from './simple-combo.component';\nimport { IgxComboAddItemDirective, IgxComboClearIconDirective, IgxComboEmptyDirective, IgxComboFooterDirective, IgxComboHeaderDirective, IgxComboHeaderItemDirective, IgxComboItemDirective, IgxComboToggleIconDirective } from 'igniteui-angular/combo';\n\nexport * from './simple-combo.component';\n\n/* NOTE: Simple combo directives collection for ease-of-use import in standalone components scenario */\nexport const IGX_SIMPLE_COMBO_DIRECTIVES = [\n    IgxSimpleComboComponent,\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_SIMPLE_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_SIMPLE_COMBO_DIRECTIVES\n    ],\n    exports: [\n        ...IGX_SIMPLE_COMBO_DIRECTIVES\n    ]\n})\nexport class IgxSimpleComboModule { }\n"],"mappings":";;;;;;;;;;;;;;AAoEA,IAAa,0BAAb,MAAa,gCAAgC,sBAAqB;CAmC9D,IAAoB,QAAK;EACrB,OAAO,KAAK,OAAO;CACvB;CAUA,I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