import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js'; import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { NgControl } from '@angular/forms'; import { TranslocoScope } from '@jsverse/transloco'; import { NggvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor'; import * as i0 from "@angular/core"; /** @internal Internal class used to uncheck radio buttons with the matching name. */ export declare class NggvRadioControlRegistry { private _radios; add(control: NgControl, radio: NggvRadioComponent): void; remove(radio: NggvRadioComponent): void; select(radio: NggvRadioComponent): void; private _isSameGroup; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Use radio buttons when users must select one option in a list with exclusive options out of a set of two or more options. * https://designlibrary.sebgroup.com/components/component-radiobutton */ export declare class NggvRadioComponent extends NggvBaseControlValueAccessorComponent implements OnInit, OnDestroy { ngControl: NgControl; protected translocoScope: TranslocoScope; protected registry: NggvRadioControlRegistry; protected cdr: ChangeDetectorRef; /** * Special property used for selecting DOM elements during automated UI testing. */ thook: string | null | undefined; /** * Sets class on host element based on size input for styling */ size: 'small' | 'large'; /** * Syncs a FormControl in an existing FormGroup to a form control element by name. */ formControlName?: string; /** * Decides if error should be connected to each individual radio button. * If true, errors will be shown in nggv-radio-group component. * If false, errors will be show below each radio button */ isGroup: boolean; /** * Creates a new RadioComponent * @param ngControl optional FormControl provided when component is used in a form, through dependency injection. * @param registry internal registry used to uncheck radio buttons with the matching name, through dependency injection. * @param cdr change detection reference for rendering purposes. */ constructor(ngControl: NgControl, translocoScope: TranslocoScope, registry: NggvRadioControlRegistry, cdr: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; /** @internal */ onInputChange(event: Event): void; /** Writes a new value of true or false based on if argument matches this components value property. */ writeValue(value: any): void; /** Registers a callback function that is called when the child input element's value changes. */ registerOnChange(fn: (value: any) => any): void; /** Checks that the name properties match and updates name property if only formControlName is given. */ private _checkName; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }