import * as _angular_core from '@angular/core'; import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core'; import { DefaultValueAccessor, ControlValueAccessor } from '@angular/forms'; import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate'; import { BackgroundColorVariant } from '@siemens/element-ng/common'; /** * Input used by {@link SiSearchBarComponent} instead of its default input. */ declare class SiSearchBarInputDirective extends DefaultValueAccessor implements OnInit { private input; private readonly value; private readonly formDisabled; /** @defaultValue false */ readonly readonly: _angular_core.InputSignalWithTransform; /** @defaultValue false */ readonly disabled: _angular_core.InputSignalWithTransform; /** @internal */ readonly isDisabled: _angular_core.Signal; /** @internal */ readonly hasValue: _angular_core.Signal; ngOnInit(): void; /** @internal */ writeValue(value: unknown): void; /** @internal */ setDisabledState(disabled: boolean): void; protected updateValue(): void; onReset(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class SiSearchBarComponent implements OnInit, OnDestroy, ControlValueAccessor, OnChanges { private readonly inputRef; protected readonly projectedInput: _angular_core.Signal; private debouncer; private readonly disabledNgControl; /** * Time unit change of search input takes effect. * * @deprecated Use a content-projected input and debounce its form value changes in * application code, for example with RxJS `debounceTime` on `FormControl.valueChanges`: * ```html * * * * ``` * ```typescript * searchControl.valueChanges.pipe(debounceTime(400)); * ``` * * @defaultValue 400 */ readonly debounceTime: _angular_core.InputSignalWithTransform; /** * Prohibited characters restricting search. * * @deprecated Use a reactive `FormControl` or Signal Forms on a content-projected input * to validate prohibited characters: * ```html * * * * ``` * Or with Signal Forms: * ```html * * * * ``` */ readonly prohibitedCharacters: _angular_core.InputSignal; /** * Define search input placeholder. * * @deprecated Use a content-projected input with `placeholder` applied directly to it: * ```html * * * * ``` * * @defaultValue '' */ readonly placeholder: _angular_core.InputSignal; /** * Display search icon before search input. * * @defaultValue false */ readonly showIcon: _angular_core.InputSignalWithTransform; /** * Define search input content. * * @deprecated Use a content-projected input with `value` applied directly to it: * ```html * * * * ``` */ readonly value: _angular_core.InputSignal; /** * Whether the input can be focused but not edited. * * @deprecated Use a content-projected input with `readonly` applied directly to it: * ```html * * * * ``` * * @defaultValue false */ readonly readonly: _angular_core.InputSignalWithTransform; /** * Color to use for component background * * @defaultValue 'base-1' */ readonly colorVariant: _angular_core.InputSignal; /** * Whether the input is disabled. * * @deprecated Use a content-projected input with `disabled` applied directly to it: * ```html * * * * ``` * * @defaultValue false */ readonly disabledInput: _angular_core.InputSignalWithTransform; /** * Defines the maximum length of the search input. * * @deprecated Use a content-projected input with `maxlength` applied directly to it: * ```html * * * * ``` * * @defaultValue undefined */ readonly maxlength: _angular_core.InputSignalWithTransform; /** * Aria label for the clear button. * * @defaultValue * ``` * t(() => $localize`:@@SI_SEARCH_BAR.CLEAR_BUTTON:Clear`) * ``` */ readonly clearButtonAriaLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Output callback event will provide you with search term if search input changes. * * @deprecated Use a content-projected input and observe `FormControl.valueChanges` * or the field value signal with Signal Forms: * ```html * * * * ``` * Or with Signal Forms: * ```html * * * * ``` */ readonly searchChange: _angular_core.OutputEmitterRef; protected isInvalid: boolean; protected onChange: (val: any) => void; protected onTouch: () => void; protected readonly disabled: _angular_core.Signal; protected readonly inputDisabled: _angular_core.Signal; protected readonly inputReadonly: _angular_core.Signal; protected readonly searchValue: _angular_core.WritableSignal; protected readonly icons: Record<"elementCancel" | "elementSearch", string>; /** @internal */ writeValue(value: string): void; /** @internal */ registerOnChange(fn: any): void; /** @internal */ registerOnTouched(fn: () => void): void; /** @internal */ setDisabledState(disabled: boolean): void; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; private setSearch; private isProhibitedCharactersUsed; /** @internal */ focus(): void; protected onCancelFocus(event: Event): void; /** @internal */ protected input(event: Event): void; protected onBlur(): void; protected resetForm(): void; protected writeSearchValue(value: string): void; private getInput; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiSearchBarModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SiSearchBarComponent, SiSearchBarInputDirective, SiSearchBarModule };