import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChange } from '@angular/core'; import { BooleanChange, StringChange } from "../../base.component"; import { ControlValueAccessor } from "@angular/forms"; import { FormElementComponent, FormElementComponentChanges } from "../form-element.component"; import { NgInailCommonConfig } from "../../../../ng-inail-common.config"; import * as i0 from "@angular/core"; export interface RadioOption { /** * */ id?: string; /** * Label dell'opzione nella select */ label: string; /** * Valore dell'opzione nella select */ value: string; /** * */ title?: string; /** * */ class?: string; popover?: boolean; popoverButtonIcon?: string; popoverButtonTitle?: string; popoverHeader?: string; popoverContent?: string; } interface RadioSelectOptionsChange extends SimpleChange { currentValue: RadioOption[]; previousValue: RadioOption[]; } interface RadioSelectChanges extends FormElementComponentChanges { value: StringChange; sort: StringChange; options: RadioSelectOptionsChange; inline: BooleanChange; } export declare class RadioSelectComponent extends FormElementComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy, ControlValueAccessor { private cdr; private libConfig; formControlElement: ElementRef; inputRadio: QueryList>; selectedValue: string; options: RadioOption[]; name: string; sort: 'asc' | 'desc'; inline: boolean; select: EventEmitter; valueChange: EventEmitter; firstSetValue: boolean; getName: () => string; constructor(cdr: ChangeDetectorRef, libConfig: NgInailCommonConfig); ngOnChanges(changes: RadioSelectChanges): void; ngOnInit(): void; set value(value: string); get value(): string; writeValue(value: string): void; setValue(value: string): void; ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * * @param opzioniValide * @param opzioneScelta * @return true se il valore di opzioneScelta e' uguale ad uno dei valori delle opzioniValide, false altrimenti. */ export declare const isValidRadioValue: (opzioniValide: RadioOption[], opzioneScelta: string) => boolean; export {};