import * as i0 from '@angular/core'; import { Renderer2, ElementRef, OnDestroy, AfterContentInit, DoCheck, Signal, QueryList, ChangeDetectorRef, AfterViewInit } from '@angular/core'; import { BooleanInput } from '@angular/cdk/coercion'; import * as i2 from '@angular/forms'; import { ControlValueAccessor, NgControl, NgForm, FormGroupDirective } from '@angular/forms'; import { NxErrorComponent } from '@aposin/ng-aquila/base'; import { ErrorStateMatcher } from '@aposin/ng-aquila/utils'; import { Subject } from 'rxjs'; import * as i1 from '@angular/common'; import * as i3 from '@aposin/ng-aquila/icon'; import { FocusMonitor } from '@angular/cdk/a11y'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; /** @docs-private */ declare class NxRadioToggleButtonBaseComponent { protected readonly renderer: Renderer2; /** @docs-private */ toggleButtonId: string; /** @docs-private */ value: any; /** @docs-private */ labelContainer: ElementRef; /** @docs-private */ toggleInput: ElementRef; constructor(/** @docs-private */ renderer: Renderer2); /** @docs-private */ triggerInputClick(event: MouseEvent): void; /** @docs-private */ setFirstButton(): void; /** @docs-private */ setLastButton(): void; /** @docs-private */ resetClasses(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare const RESET_VALUES: (string | null | undefined)[]; declare class NxRadioToggleComponent implements ControlValueAccessor, OnDestroy, AfterContentInit, DoCheck { private readonly _cdr; /** @docs-private */ readonly ngControl: NgControl | null; private readonly _errorStateMatcher; private readonly _parentForm; private readonly _parentFormGroup; private readonly _toggleId; errorChild?: NxErrorComponent; /** Whether the component should switch to vertical buttons on mobile viewports. */ disableMobile: boolean; private _selection; /** @docs-private */ errorState: i0.WritableSignal; readonly _disableChange: Subject; /** @docs-private */ additionalClasses: string; /** Sets the component to the disabled state.*/ set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; /** Sets the component to the readonly state.*/ set readonly(value: boolean); get readonly(): boolean; private _readonly; /** * @deprecated use ariaLabel or ariaLabelledby instead * Sets the name used for accessibility. */ set name(value: string); get name(): string; set ariaLabel(value: string | null); get ariaLabel(): string | null; private _ariaLabel; set ariaLabelledBy(value: string | null); get ariaLabelledBy(): string | null; private _ariaLabelledBy; errorMessageId: Signal; /** @docs-private */ toggleButtons: QueryList; /** @docs-private */ get id(): string; /** Sets the modifiers for the component. */ set style(value: string); /** @docs-private */ get selection(): any; private readonly _destroyed; private onTouchedCallback; private onChangeCallback; constructor(_cdr: ChangeDetectorRef, /** @docs-private */ ngControl: NgControl | null, _errorStateMatcher: ErrorStateMatcher, _parentForm: NgForm | null, _parentFormGroup: FormGroupDirective | null); ngAfterContentInit(): void; ngOnDestroy(): void; ngDoCheck(): void; registerOnChange(onChangeCallback: any): void; registerOnTouched(onTouchedCallback: any): void; /** Preselects the respective options. */ writeValue(value: any): void; setDisabledState(isDisabled: boolean): void; /** @docs-private */ change(value: any): void; /** @docs-private */ updateErrorState(): void; setReadonly(value: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_disableMobile: unknown; static ngAcceptInputType_readonly: unknown; } /** @docs-private */ declare class NxRadioToggleButtonChange { readonly source: NxRadioToggleButtonComponent; readonly value: any; constructor(source: NxRadioToggleButtonComponent, value: any); } declare class NxRadioToggleButtonComponent extends NxRadioToggleButtonBaseComponent implements AfterViewInit, OnDestroy { private readonly radioToggle; private readonly _cdr; private readonly _toggleDispatcher; private readonly _focusMonitor; /** @docs-private */ readonly onChecked: Subject; disableMobile: boolean; /** @docs-private */ set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; set readonly(value: boolean); get readonly(): boolean; private _readonly; /** Aria label for screen reader users */ set ariaLabel(value: string | null); get ariaLabel(): string | null; private _ariaLabel; /** @docs-private */ controlInvalid: i0.Signal; /** Sets the checked state and notify siblings and the parent group about the change */ set selected(value: boolean); get selected(): boolean; private _selected; private readonly _destroyed; /** Unregister function for _expansionDispatcher. */ private _removeUniqueSelectionListener; errorMessageId: i0.Signal; constructor(radioToggle: NxRadioToggleComponent, /** @docs-private */ renderer: Renderer2, _cdr: ChangeDetectorRef, _toggleDispatcher: UniqueSelectionDispatcher, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; setReadonly(value: boolean): void; /** @docs-private */ get toggleId(): string; /** @docs-private */ get id(): string; private _notifySiblings; private _emitCheckedEvent; /** @docs-private */ select(): void; /** @docs-private */ deselect(): void; /** @docs-private */ onKeyupSpace(): void; /** Forward focus from host to hidden input field */ _forwardFocusToInput(): void; _onInputClick(event: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_disableMobile: unknown; static ngAcceptInputType_readonly: unknown; } declare class NxRadioToggleModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxRadioToggleButtonBaseComponent, NxRadioToggleButtonChange, NxRadioToggleButtonComponent, NxRadioToggleComponent, NxRadioToggleModule, RESET_VALUES };