import * as _qualcomm_ui_qds_core_text_area from '@qualcomm-ui/qds-core/text-area'; import { QdsTextAreaApi, QdsTextAreaApiProps, QdsTextAreaSize } from '@qualcomm-ui/qds-core/text-area'; import { CoreTextAreaLabelDirective, CoreTextAreaCounterDirective, CoreTextAreaInputDirective, CoreTextAreaHintDirective, CoreTextAreaErrorTextDirective, CoreTextAreaRootDirective } from '@qualcomm-ui/angular-core/text-area'; import * as i0 from '@angular/core'; import { OnInit } from '@angular/core'; import * as _qualcomm_ui_angular_core_machine from '@qualcomm-ui/angular-core/machine'; import { BaseApiContextService } from '@qualcomm-ui/angular-core/machine'; import { SignalifyInput } from '@qualcomm-ui/angular-core/signals'; import { Booleanish } from '@qualcomm-ui/utils/coercion'; import * as i9 from '@qualcomm-ui/angular/icon'; /** * An accessible label that is automatically associated with the input. */ declare class TextAreaLabelDirective extends CoreTextAreaLabelDirective { protected readonly qdsTextAreaContext: () => _qualcomm_ui_qds_core_text_area.QdsTextAreaApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Character counter displayed opposite the textarea label. Renders a `
` * element by default. */ declare class TextAreaCounterDirective extends CoreTextAreaCounterDirective { /** * Customize how the counter is displayed. Receives the current character * count and optional max length, and returns a string. */ readonly display: i0.InputSignal<(count: number, maxLength?: number) => string>; readonly counterText: i0.Signal; protected readonly qdsTextAreaContext: () => _qualcomm_ui_qds_core_text_area.QdsTextAreaApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * The text area element. Note: do not apply form control bindings like `ngModel` * or `formControl` to this element. Apply them to the root element instead. */ declare class TextAreaInputDirective extends CoreTextAreaInputDirective { protected readonly qdsTextAreaContext: () => _qualcomm_ui_qds_core_text_area.QdsTextAreaApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Helper text displayed below the textarea. */ declare class TextAreaHintDirective extends CoreTextAreaHintDirective { protected readonly qdsTextAreaContext: () => _qualcomm_ui_qds_core_text_area.QdsTextAreaApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Error message displayed when the textarea is invalid. */ declare class TextAreaErrorTextDirective extends CoreTextAreaErrorTextDirective { protected readonly qdsTextAreaContext: () => _qualcomm_ui_qds_core_text_area.QdsTextAreaApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class QdsTextAreaContextService extends BaseApiContextService { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const QDS_TEXT_AREA_CONTEXT: i0.InjectionToken<() => QdsTextAreaApi>; declare const useQdsTextAreaContext: (opts?: _qualcomm_ui_angular_core_machine.UseContextOpts | undefined) => Optional extends true ? (() => QdsTextAreaApi) | null : () => QdsTextAreaApi; declare const provideQdsTextAreaContext: () => i0.Provider[]; /** * Groups all parts of the text-area. */ declare class TextAreaRootDirective extends CoreTextAreaRootDirective implements SignalifyInput, OnInit { /** * The size of the textarea and its elements. Governs properties like font size, * and item padding. * * @default 'md' */ readonly size: i0.InputSignal; protected readonly qdsTextAreaService: QdsTextAreaContextService; protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & { extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void; setDisabled: (disabled: boolean) => void; }; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TextAreaComponent extends TextAreaRootDirective { /** * Controls whether to display the counter element. * * - `true`: always show the counter * - `false`: never show the counter * - `undefined` (default): only show the counter if `maxLength` is set */ readonly counter: i0.InputSignalWithTransform; /** * Optional error that describes the element when {@link invalid} is true. * * @remarks * To customize the element, provide it using the directive instead: * * ```angular-html *
...
* ``` */ readonly errorText: i0.InputSignal; /** * Optional hint describing the element. This element is automatically * associated with the component's input element for accessibility. * * @remarks * To customize the element, provide it using the directive instead: * * ```angular-html *
...
* ``` */ readonly hint: i0.InputSignal; /** * Optional label describing the element. Recommended. This element is * automatically associated with the component's input element for * accessibility. * * @remarks * To customize the element, provide it using the directive instead: * * ```angular-html * * ``` */ readonly label: i0.InputSignal; /** * HTML {@link https://www.w3schools.com/tags/att_input_placeholder.asp placeholder} attribute, * passed to the internal input element. */ readonly placeholder: i0.InputSignal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TextAreaModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { QDS_TEXT_AREA_CONTEXT, QdsTextAreaContextService, TextAreaComponent, TextAreaCounterDirective, TextAreaErrorTextDirective, TextAreaHintDirective, TextAreaInputDirective, TextAreaLabelDirective, TextAreaModule, TextAreaRootDirective, provideQdsTextAreaContext, useQdsTextAreaContext }; //# sourceMappingURL=qualcomm-ui-angular-text-area.d.ts.map