/** Autogenerated by public2business schematic. DO NOT CHANGE! */ import { BooleanInput } from '@angular/cdk/coercion'; import { Platform } from '@angular/cdk/platform'; import { AutofillMonitor } from '@angular/cdk/text-field'; import { DoCheck, ElementRef, OnChanges, OnDestroy, OnInit } from '@angular/core'; import { FormGroupDirective, NgControl, NgForm } from '@angular/forms'; import { CanUpdateErrorStateCtor } from '@sbb-esta/angular-core/common-behaviors'; import { SbbErrorStateMatcher } from '@sbb-esta/angular-core/error'; import { SbbFormFieldControl } from '@sbb-esta/angular-core/forms'; /** @docs-private */ export declare class SbbInputBase { _defaultErrorStateMatcher: SbbErrorStateMatcher; _parentForm: NgForm; _parentFormGroup: FormGroupDirective; /** @docs-private */ ngControl: NgControl; constructor(_defaultErrorStateMatcher: SbbErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, /** @docs-private */ ngControl: NgControl); } export declare const SbbNativeInputBase: CanUpdateErrorStateCtor & typeof SbbInputBase; export declare class SbbInput extends SbbNativeInputBase implements SbbFormFieldControl, OnInit, OnChanges, DoCheck, OnDestroy { private _elementRef; private _platform; /** @docs-private */ ngControl: NgControl; private _autofillMonitor; private _previousNativeValue; private _inputValueAccessor; /** Whether the component is a native html select. */ readonly _isNativeSelect: boolean; /** Whether the component is a textarea. */ readonly _isTextarea: boolean; /** Whether the component is in an error state. */ errorState: boolean; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ focused: boolean; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ controlType: string; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ autofilled: boolean; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ get disabled(): boolean; set disabled(value: boolean); private _disabled; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ id: string; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ placeholder: string; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ get required(): boolean; set required(value: boolean); private _required; /** Input type of the element. */ get type(): string; set type(value: string); private _type; /** An object used to control when error messages are shown. */ errorStateMatcher: SbbErrorStateMatcher; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ userAriaDescribedBy: string; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ get value(): string; set value(value: string); /** Whether the element is readonly. */ get readonly(): boolean; set readonly(value: boolean); private _readonly; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ get empty(): boolean; private _neverEmptyInputTypes; constructor(_elementRef: ElementRef, _platform: Platform, /** @docs-private */ ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: SbbErrorStateMatcher, inputValueAccessor: any, _autofillMonitor: AutofillMonitor); ngOnInit(): void; ngOnChanges(): void; ngOnDestroy(): void; ngDoCheck(): void; /** Focuses the input. */ focus(options?: FocusOptions): void; _focusChanged(isFocused: boolean): void; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ setDescribedByIds(ids: string[]): void; /** Does some manual dirty checking on the native input `value` property. */ private _dirtyCheckNativeValue; /** Make sure the input is a supported type. */ private _validateType; /** Checks whether the input type is one of the types that are never empty. */ private _isNeverEmpty; /** Checks whether the input is invalid based on the native validation. */ private _isBadInput; /** * Implemented as part of SbbFormFieldControl. * @docs-private */ onContainerClick(): void; static ngAcceptInputType_disabled: BooleanInput; static ngAcceptInputType_required: BooleanInput; static ngAcceptInputType_readonly: BooleanInput; static ngAcceptInputType_value: any; }