import { EventEmitter } from "../../stencil-public-runtime"; import { StzhDropdowCloseEvent, StzhDropdowInitEvent, StzhDropdownBlurEvent, StzhDropdownChangeEvent, StzhDropdownFocusEvent, StzhDropdownItemAddEvent, StzhDropdownItemRemoveEvent, StzhDropdownOpenEvent, StzhDropdownOption, StzhDropdownOptionAddEvent, StzhDropdownOptionRemoveEvent, StzhDropdownSize } from "../../index"; import { StzhDropdownLocalizedText } from "./stzh-dropdown.localization"; type StzhDropdownSingleValue = string | number; /** * @slot - Slot for any content * @slot label - Slot for label content * @slot description - Slot for description * @slot description-long - Slot for long description (in popover) * @slot icon - Slot for left icon * @slot icon-angle - Slot for angle icon * @slot error - Slot for error */ export declare class StzhDropdown { /** Available options. Do not mix string & number values within the same dropdown. */ options: StzhDropdownOption[] | string; private _options; /** * Option groups that options will be bucketed into. * Make sure each object in the array has a property named whatever `optgroupValueField` is set to. */ optgroups: any[] | string; private _optgroups; /** * Set selected option values. Always set this in usage with stzh-components-angular (see examples in usage docs). * To get the current (user) selected options, use `getItems` method. */ items: string | number | (string | number)[]; private _items; /** * Default items (used by reset) */ defaultItems: (string | number)[]; /** * An array of property names to analyze when filtering options. * Weights can be given to each field to improve search result: * `[{"field":"text","weight":2},{"field":"text2","weight":0.5}]` */ searchField: string[] | string; private _searchField; /** Whether multiple items option can be selected */ multiple: boolean; /** Show inline (auto width) */ inline: boolean; /** Don't wrap words when using inline (auto width) */ noWrap: boolean; /** The max number of options to display in the dropdown. Set to `null` for an unlimited number of options. */ maxOptions: number | null; /** When searching for multiple terms (separated by space), this is the operator used. Can be 'and' or 'or' */ searchConjunction: "and" | "or"; /** Transform applied to input value before e.g. search is executed */ transformLoadQuery: "trim" | "trim-to-single-ws" | "join" | Function; /** If true, any options with a "" value will be treated like a normal option. This defaults to false to accommodate the common