1 | import { ElementRef, EventEmitter, ChangeDetectorRef, Injector, OnInit, OnDestroy } from '@angular/core';
|
---|
2 | import { ControlValueAccessor, NgControl } from '@angular/forms';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | export declare const RADIO_VALUE_ACCESSOR: any;
|
---|
6 | export declare class RadioControlRegistry {
|
---|
7 | private accessors;
|
---|
8 | add(control: NgControl, accessor: RadioButton): void;
|
---|
9 | remove(accessor: RadioButton): void;
|
---|
10 | select(accessor: RadioButton): void;
|
---|
11 | private isSameGroup;
|
---|
12 | static ɵfac: i0.ɵɵFactoryDeclaration<RadioControlRegistry, never>;
|
---|
13 | static ɵprov: i0.ɵɵInjectableDeclaration<RadioControlRegistry>;
|
---|
14 | }
|
---|
15 | export declare class RadioButton implements ControlValueAccessor, OnInit, OnDestroy {
|
---|
16 | cd: ChangeDetectorRef;
|
---|
17 | private injector;
|
---|
18 | private registry;
|
---|
19 | value: any;
|
---|
20 | formControlName: string;
|
---|
21 | name: string;
|
---|
22 | disabled: boolean;
|
---|
23 | label: string;
|
---|
24 | tabindex: number;
|
---|
25 | inputId: string;
|
---|
26 | ariaLabelledBy: string;
|
---|
27 | ariaLabel: string;
|
---|
28 | style: any;
|
---|
29 | styleClass: string;
|
---|
30 | labelStyleClass: string;
|
---|
31 | onClick: EventEmitter<any>;
|
---|
32 | onFocus: EventEmitter<any>;
|
---|
33 | onBlur: EventEmitter<any>;
|
---|
34 | inputViewChild: ElementRef;
|
---|
35 | onModelChange: Function;
|
---|
36 | onModelTouched: Function;
|
---|
37 | checked: boolean;
|
---|
38 | focused: boolean;
|
---|
39 | control: NgControl;
|
---|
40 | constructor(cd: ChangeDetectorRef, injector: Injector, registry: RadioControlRegistry);
|
---|
41 | ngOnInit(): void;
|
---|
42 | handleClick(event: any, radioButton: any, focus: any): void;
|
---|
43 | select(event: any): void;
|
---|
44 | writeValue(value: any): void;
|
---|
45 | registerOnChange(fn: Function): void;
|
---|
46 | registerOnTouched(fn: Function): void;
|
---|
47 | setDisabledState(val: boolean): void;
|
---|
48 | onInputFocus(event: any): void;
|
---|
49 | onInputBlur(event: any): void;
|
---|
50 | onChange(event: any): void;
|
---|
51 | focus(): void;
|
---|
52 | ngOnDestroy(): void;
|
---|
53 | private checkName;
|
---|
54 | private throwNameError;
|
---|
55 | static ɵfac: i0.ɵɵFactoryDeclaration<RadioButton, never>;
|
---|
56 | static ɵcmp: i0.ɵɵComponentDeclaration<RadioButton, "p-radioButton", never, { "value": "value"; "formControlName": "formControlName"; "name": "name"; "disabled": "disabled"; "label": "label"; "tabindex": "tabindex"; "inputId": "inputId"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "style": "style"; "styleClass": "styleClass"; "labelStyleClass": "labelStyleClass"; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never>;
|
---|
57 | }
|
---|
58 | export declare class RadioButtonModule {
|
---|
59 | static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonModule, never>;
|
---|
60 | static ɵmod: i0.ɵɵNgModuleDeclaration<RadioButtonModule, [typeof RadioButton], [typeof i1.CommonModule], [typeof RadioButton]>;
|
---|
61 | static ɵinj: i0.ɵɵInjectorDeclaration<RadioButtonModule>;
|
---|
62 | }
|
---|