import { IEventDetail, IEventEmitter } from '@breadstone/mosaik-elements'; import { IClearable } from '../../../Behaviors/Clearable'; import { type IInvalidable } from '../../../Behaviors/Invalidable'; import { ISlottable } from '../../../Behaviors/Slottable'; import { SearchTriggerMode } from '../../../Types/SearchTriggerMode'; import { TextAlignment } from '../../../Types/TextAlignment'; import { InputBaseElement } from '../Abstracts/InputBase'; import type { ISearchBoxElementProps } from './ISearchBoxElementProps'; declare const SearchBoxElement_base: (abstract new (...args: Array) => import("../../../../Controls/Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Slottable").ISlottableProps & ISlottable) & (abstract new (...args: Array) => import("../../../Behaviors/Clearable").IClearableProps & import("../../../Behaviors/Clearable").IClearableEvents & IClearable) & (abstract new (...args: Array) => import("../../../Behaviors/Disableable").IDisableableProps) & (abstract new (...args: Array) => IInvalidable & import("../../../Behaviors/Invalidable").IInvalidableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Valueable").IValueableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Busyable").IBusyableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Appearanceable").IAppearanceableProps) & typeof InputBaseElement & import("../../../../Controls/Behaviors/Themeable").IThemeableCtor; /** * Search Box - A specialized input control for search queries with integrated search functionality. * * @description * The Search Box component provides a dedicated interface for entering and executing search queries with * built-in search functionality and visual indicators. It features a search icon, clear functionality, * configurable search trigger modes (on enter, on input, manual), debounced search execution to prevent * excessive queries, progress indication for ongoing searches, and comprehensive keyboard support. * The component handles search execution timing, provides search and clear events, supports both * immediate and delayed search triggers, and integrates with loading states and validation systems. * Perfect for search forms, filter interfaces, content discovery, and any application requiring * search input with optimized query handling. * * @name Search Box * @element mosaik-searchbox * @category Inputs * * @slot prefix - Content placed before the search input. * @slot suffix - Content placed after the search input. * * @csspart prefix - The prefix content container. * @csspart search - The search icon element. * @csspart inner - The inner container wrapper. * @csspart input - The search input field. * @csspart suffix - The suffix content container. * @csspart clear - The clear button element. * @csspart focusRing - The focus ring indicator. * @csspart progressRing - The progress ring for loading state. * * @cssprop {Color} --search-box-background-color - The background color. * @cssprop {Color} --search-box-border-color - The border color. * @cssprop {String} --search-box-border-radius - The border radius. * @cssprop {String} --search-box-border-style - The border style. * @cssprop {String} --search-box-border-width - The border width. * @cssprop {String} --search-box-font-family - The font family. * @cssprop {String} --search-box-font-size - The font size. * @cssprop {String} --search-box-font-weight - The font weight. * @cssprop {Color} --search-box-foreground-color - The foreground color. * @cssprop {String} --search-box-gap - The gap between elements. * @cssprop {String} --search-box-height - The height. * @cssprop {String} --search-box-padding-bottom - The padding bottom. * @cssprop {String} --search-box-padding-left - The padding left. * @cssprop {String} --search-box-padding-right - The padding right. * @cssprop {String} --search-box-padding-top - The padding top. * @cssprop {String} --search-box-shadow - The shadow. * @cssprop {String} --search-box-transition-duration - The transition duration. * * @dependency mosaik-focus-ring - Used for focus indication. * @dependency mosaik-icon - Used for search and clear icons. * @dependency mosaik-button - Used for action buttons. * @dependency mosaik-progress-ring - Used for loading indication. * * @fires cleared {ClearedEvent} - Fired when the value is cleared. * @fires searched {SearchedEvent} - Fired when the element is searched. * * @keyhandle Backspace - Clears the value. * @keyhandle Escape - Clears the value. * @keyhandle Enter - Searches the value. * * @example * ```html * * * ``` * * @example * ```html * * * ``` * * @public */ export declare class SearchBoxElement extends SearchBoxElement_base implements ISearchBoxElementProps, IInvalidable, IClearable, ISlottable { private readonly _keyboardController; private readonly _searched; private _inputElement; private _value; private _readonly; private _required; private _autofocus; private _name; private _pattern; private _placeholder; private _autocomplete; private _mode; private _delay; private _delayTimeoutId; private _textAlign; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `value` property. * * @public * @override */ get value(): string; set value(value: string); /** * Gets or sets the `readonly` property. * * @public * @attr */ get readonly(): boolean; set readonly(value: boolean); /** * Gets or sets the `required` property. * * @public * @attr */ get required(): boolean; set required(value: boolean); /** * Gets or sets the `autofocus` property. * * @public * @override */ get autofocus(): boolean; set autofocus(value: boolean); /** * Gets or sets the `name` property. * * @public * @attr */ get name(): string; set name(value: string); /** * Gets or sets the `pattern` property. * * @public * @attr */ get pattern(): string; set pattern(value: string); /** * Gets or sets the `placeholder` property. * * @public * @attr */ get placeholder(): string; set placeholder(value: string); /** * Gets or sets the `autocomplete` property. * * @public * @attr */ get autocomplete(): boolean; set autocomplete(value: boolean); /** * Gets or sets the `mode` property. * * @public * @attr */ get mode(): SearchTriggerMode; set mode(value: SearchTriggerMode); /** * Gets or sets the `delay` property. * * @public * @attr */ get delay(): number; set delay(value: number); /** * Determines the text alignment of the component. * * @public * @attr */ get textAlign(): TextAlignment; set textAlign(value: TextAlignment); /** * Determines whether the element has a prefix or not. * The Prefix is a slot that is displayed before the input. * * @private * @readonly * @attr */ get hasPrefix(): boolean; /** * Determines whether the element has a suffix or not. * The Suffix is a slot that is displayed after the input. * * @private * @readonly * @attr */ get hasSuffix(): boolean; /** * Called when the search is triggered. * Provides reference to `IEventDetail` as event detail. * * @public * @readonly * @eventProperty */ get searched(): IEventEmitter; /** * @public * @override */ connectedCallback(): void; /** * @public * @override */ focus(): void; /** * @public * @override */ blur(): void; /** * Resets the value, all kinds of validation and errors. * * @public * @override */ reset(): void; /** * @public */ search(): void; /** * Clears the value of the element but not the validation. * * @public * @override */ clear(force?: boolean): boolean; /** * Checks the validity of the element and returns `true` if it is valid; otherwise, `false`. * * @public * @override */ checkValidity(): boolean; /** * @template * @protected */ onChange(event: Event): void; /** * @template * @protected * @override */ onInput(event: InputEvent): void; /** * @template * @protected * @override */ onFocus(event: FocusEvent): void; /** * @template * @protected * @override */ onBlur(event: FocusEvent): void; /** * @template * @protected */ onKeyUp(event: KeyboardEvent): void; /** * @protected * @override */ protected onApplyTemplate(): void; /** * Emits the `searched` event. * * @protected */ protected onSearched(args: IEventDetail): void; } /** * @public */ export declare namespace SearchBoxElement { type Props = ISearchBoxElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-searchbox': SearchBoxElement; } } export {}; //# sourceMappingURL=SearchBoxElement.d.ts.map