import { Directionality } from '@angular/cdk/bidi'; import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, QueryList } from '@angular/core'; import { VdlError } from './error'; import { VdlFormFieldControl } from './form-field-control'; import { VdlHint } from './hint'; import { VdlLabel } from './label'; import { VdlPlaceholder } from './placeholder'; import { VdlPrefix } from './prefix'; import { VdlSuffix } from './suffix'; /** Container for form controls that applies Material Design styling and behavior. */ export declare class VdlFormField implements AfterViewInit, AfterContentInit, AfterContentChecked { _elementRef: ElementRef; private _changeDetectorRef; private _dir; /** Whether the required marker should be hidden. */ hideRequiredMarker: boolean; private _hideRequiredMarker; /** Whether the floating label should always float or not. */ readonly _shouldAlwaysFloat: boolean; /** Whether the label can float or not. */ readonly _canLabelFloat: boolean; /** State of the vdl-hint and vdl-error animations. */ _subscriptAnimationState: string; /** * Specify whether to show the number of remaining input characters. */ charCount: boolean; /** * Specify the text string to associate with the character count. */ charCountTextFn: Function; /** * Specify whether to style the component as enabled or disabled. */ disabled: boolean; /** Text for the form field hint. */ hintLabel: string; private _hintLabel; _hintLabelId: string; /** @docs-private */ _hasLabel: boolean; label: string; /** Whether the Angular animations are enabled. */ _animationsEnabled: boolean; /** Reference to the form field's underline element. */ /** * @deprecated * @deletion-target 7.0.0 */ underlineRef: ElementRef; _connectionContainerRef: ElementRef; _inputContainerRef: ElementRef; _control: VdlFormFieldControl; _placeholderChild: VdlPlaceholder; _labelChild: VdlLabel; _suffix: VdlSuffix; _errorChildren: QueryList; _hintChildren: QueryList; _prefixChildren: QueryList; _suffixChildren: QueryList; constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _dir: Directionality); /** * Gets an ElementRef for the element that a overlay attached to the form-field should be * positioned relative to. */ getConnectedOverlayOrigin(): ElementRef; ngAfterContentInit(): void; ngAfterContentChecked(): void; ngAfterViewInit(): void; /** Determines whether a class from the NgControl should be forwarded to the host element. */ _shouldForward(prop: string): boolean; /** * Check if there is a label defined for the form field */ private _validateLabel(); /** Determines whether to display hints or errors. */ _getDisplayedMessages(): 'error' | 'hint'; /** * Ensure that there is only one placeholder (either `placeholder` attribute on the child control * or child element with the `vdl-placeholder` directive). */ private _validatePlaceholders(); /** Does any extra processing that is required when handling the hints. */ private _processHints(); /** * Ensure that there is a maximum of one of each `` alignment specified, with the * attribute being considered as `align="start"`. */ private _validateHints(); /** * Sets the list of element IDs that describe the child control. This allows the control to update * its `aria-describedby` attribute accordingly. */ private _syncDescribedByIds(); /** Throws an error if the form field's control is missing. */ protected _validateControlChild(): void; }