UNPKG

@controladad/ng-base

Version:
20 lines (19 loc) 1.18 kB
import { AfterContentInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core'; import { Subscription } from 'rxjs'; import { MatRadioButton, MatRadioGroup } from '@angular/material/radio'; import { UntypedFormControl } from '@angular/forms'; import * as i0 from "@angular/core"; export type UiRadioCompareWithFn<T> = (itemA: T, itemB: T) => boolean; export declare class UiRadioCompareWithDirective<T> implements AfterContentInit, OnDestroy { private cdr; host: MatRadioGroup; compareWith: UiRadioCompareWithFn<T> | undefined; formControl: UntypedFormControl; radioButtons: QueryList<MatRadioButton>; formControlSub: Subscription; constructor(cdr: ChangeDetectorRef, host: MatRadioGroup); ngAfterContentInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<UiRadioCompareWithDirective<any>, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<UiRadioCompareWithDirective<any>, "mat-radio-group[UiRadioCompareWith]", ["uiRadio"], { "compareWith": { "alias": "compareWith"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; }, {}, ["radioButtons"], never, true, never>; }