1 | import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
---|
2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | export declare const INPUTSWITCH_VALUE_ACCESSOR: any;
|
---|
6 | export declare class InputSwitch implements ControlValueAccessor {
|
---|
7 | private cd;
|
---|
8 | style: any;
|
---|
9 | styleClass: string;
|
---|
10 | tabindex: number;
|
---|
11 | inputId: string;
|
---|
12 | name: string;
|
---|
13 | disabled: boolean;
|
---|
14 | readonly: boolean;
|
---|
15 | trueValue: any;
|
---|
16 | falseValue: any;
|
---|
17 | ariaLabelledBy: string;
|
---|
18 | onChange: EventEmitter<any>;
|
---|
19 | modelValue: any;
|
---|
20 | focused: boolean;
|
---|
21 | onModelChange: Function;
|
---|
22 | onModelTouched: Function;
|
---|
23 | constructor(cd: ChangeDetectorRef);
|
---|
24 | onClick(event: Event, cb: HTMLInputElement): void;
|
---|
25 | onInputChange(event: Event): void;
|
---|
26 | toggle(event: Event): void;
|
---|
27 | updateModel(event: Event, value: boolean): void;
|
---|
28 | onFocus(event: Event): void;
|
---|
29 | onBlur(event: Event): void;
|
---|
30 | writeValue(value: any): void;
|
---|
31 | registerOnChange(fn: Function): void;
|
---|
32 | registerOnTouched(fn: Function): void;
|
---|
33 | setDisabledState(val: boolean): void;
|
---|
34 | checked(): boolean;
|
---|
35 | static ɵfac: i0.ɵɵFactoryDeclaration<InputSwitch, never>;
|
---|
36 | static ɵcmp: i0.ɵɵComponentDeclaration<InputSwitch, "p-inputSwitch", never, { "style": "style"; "styleClass": "styleClass"; "tabindex": "tabindex"; "inputId": "inputId"; "name": "name"; "disabled": "disabled"; "readonly": "readonly"; "trueValue": "trueValue"; "falseValue": "falseValue"; "ariaLabelledBy": "ariaLabelledBy"; }, { "onChange": "onChange"; }, never, never>;
|
---|
37 | }
|
---|
38 | export declare class InputSwitchModule {
|
---|
39 | static ɵfac: i0.ɵɵFactoryDeclaration<InputSwitchModule, never>;
|
---|
40 | static ɵmod: i0.ɵɵNgModuleDeclaration<InputSwitchModule, [typeof InputSwitch], [typeof i1.CommonModule], [typeof InputSwitch]>;
|
---|
41 | static ɵinj: i0.ɵɵInjectorDeclaration<InputSwitchModule>;
|
---|
42 | }
|
---|