[59329aa] | 1 | import { EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core';
|
---|
| 2 | import { ControlValueAccessor, FormControl } from '@angular/forms';
|
---|
| 3 | import * as i0 from "@angular/core";
|
---|
| 4 | import * as i1 from "@angular/common";
|
---|
| 5 | export declare const CHECKBOX_VALUE_ACCESSOR: any;
|
---|
| 6 | export declare class Checkbox implements ControlValueAccessor {
|
---|
| 7 | private cd;
|
---|
| 8 | value: any;
|
---|
| 9 | name: string;
|
---|
| 10 | disabled: boolean;
|
---|
| 11 | binary: boolean;
|
---|
| 12 | label: string;
|
---|
| 13 | ariaLabelledBy: string;
|
---|
| 14 | ariaLabel: string;
|
---|
| 15 | tabindex: number;
|
---|
| 16 | inputId: string;
|
---|
| 17 | style: any;
|
---|
| 18 | styleClass: string;
|
---|
| 19 | labelStyleClass: string;
|
---|
| 20 | formControl: FormControl;
|
---|
| 21 | checkboxIcon: string;
|
---|
| 22 | readonly: boolean;
|
---|
| 23 | required: boolean;
|
---|
| 24 | trueValue: any;
|
---|
| 25 | falseValue: any;
|
---|
| 26 | inputViewChild: ElementRef;
|
---|
| 27 | onChange: EventEmitter<any>;
|
---|
| 28 | model: any;
|
---|
| 29 | onModelChange: Function;
|
---|
| 30 | onModelTouched: Function;
|
---|
| 31 | focused: boolean;
|
---|
| 32 | constructor(cd: ChangeDetectorRef);
|
---|
| 33 | onClick(event: any, checkbox: any, focus: boolean): void;
|
---|
| 34 | updateModel(event: any): void;
|
---|
| 35 | handleChange(event: any): void;
|
---|
| 36 | onFocus(): void;
|
---|
| 37 | onBlur(): void;
|
---|
| 38 | focus(): void;
|
---|
| 39 | writeValue(model: any): void;
|
---|
| 40 | registerOnChange(fn: Function): void;
|
---|
| 41 | registerOnTouched(fn: Function): void;
|
---|
| 42 | setDisabledState(val: boolean): void;
|
---|
| 43 | checked(): boolean;
|
---|
| 44 | static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
---|
| 45 | static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "p-checkbox", never, { "value": "value"; "name": "name"; "disabled": "disabled"; "binary": "binary"; "label": "label"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "tabindex": "tabindex"; "inputId": "inputId"; "style": "style"; "styleClass": "styleClass"; "labelStyleClass": "labelStyleClass"; "formControl": "formControl"; "checkboxIcon": "checkboxIcon"; "readonly": "readonly"; "required": "required"; "trueValue": "trueValue"; "falseValue": "falseValue"; }, { "onChange": "onChange"; }, never, never>;
|
---|
| 46 | }
|
---|
| 47 | export declare class CheckboxModule {
|
---|
| 48 | static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
|
---|
| 49 | static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof Checkbox], [typeof i1.CommonModule], [typeof Checkbox]>;
|
---|
| 50 | static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
|
---|
| 51 | }
|
---|