/** * Copyright Aquera Inc 2023 * * This source code is licensed under the BSD-3-Clause license found in the * LICENSE file in the root directory of this source tree. */ import { CSSResultArray, TemplateResult, PropertyValues } from 'lit'; import NileElement from '../internal/nile-element'; export declare class NileChip extends NileElement { static get styles(): CSSResultArray; private readonly hasSlotController; tags: string[]; inputValue: string; isDropdownOpen: boolean; tooltips: (string | null)[]; private chipFocusIndex; autoComplete: any; /** Sets the input to a warning state, changing its visual appearance. */ warning: boolean; noAutoComplete: boolean; /** Sets the input to an error state, changing its visual appearance. */ error: boolean; /** Sets the input to a success state, changing its visual appearance. */ success: boolean; /** Disables the duplicate entries. */ noDuplicates: boolean; /** The input's label. If you need to display HTML, use the `label` slot instead. */ label: string; tagVariant: string; /** Adds a clear button when the input is not empty. */ acceptUserInput: boolean; /** When true, adds a chip when the input loses focus or when clicking outside the component. Only works when acceptUserInput is true. */ addOnBlur: boolean; /** Adds a clear button when the input is not empty. */ clearable: boolean; /** Placeholder text to show as a hint when the input is empty. */ placeholder: string; /** Makes the input readonly. */ readonly: boolean; /** Disables the input. */ disabled: boolean; /** * When true, the dropdown menu will be appended to the document body instead of the parent container. * This is useful when the parent has overflow: hidden, clip-path, or transform applied. */ portal: boolean; /** Virtual scroll in dropdown options. */ enableVirtualScroll: boolean; autoCompleteOptions: any[]; filteredAutoCompleteOptions: any[]; value: any[]; noWrap: boolean; loading: boolean; errorIndexes: number[]; helpText: string; errorMessage: string; filterFunction: (item: string, searchedValue: string) => boolean; renderItemFunction: (item: any) => string; private visibilityManager?; enableVisibilityEffect: boolean; enableTabClose: boolean; showTooltip: boolean; enableTagDelete: boolean; required: boolean; openDropdownOnFocus: boolean; noDropdownClose: boolean; private isSelectingFromDropdown; private resetDropdownState; protected updated(changedProperties: PropertyValues): void; protected firstUpdated(_changed: PropertyValues): Promise; private handleDocumentClick; connectedCallback(): void; disconnectedCallback(): void; private markDropdownSelectStart; render(): TemplateResult<1>; private handleSelect; private handleRemove; private handleInputChange; private addChipFromInputValue; private handleInputKeydown; private handleFocus; private handleBlur; onTagsChanged(): void; private resetInput; } export default NileChip; declare global { interface HTMLElementTagNameMap { 'nile-chip': NileChip; } }