import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core"; import { RealsoftCheckboxChange } from "./checkbox-configuration"; import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms"; import { FocusableOption } from "@angular/cdk/a11y"; import * as i0 from "@angular/core"; export declare const REALSOFT_CHECKBOX_CONTROL_VALUE_ACCESSOR: any; export declare const REALSOFT_CHECKBOX_VALIDATOR_ACCESSOR: any; export declare class RealsoftCheckbox implements ControlValueAccessor, Validator, OnChanges, FocusableOption, AfterViewInit { private _changeDetectorRef; element: ElementRef; _animation?: "NoopAnimations" | "BrowserAnimations"; private _options; _tabIndex: string; private _ngZone; _input: ElementRef; _label: ElementRef; private _checked; private _disabled; private _idUnique; private _indeterminate; private _animationClass; private _transitionState; ariaDescribedby: string; color: 'primary' | 'secondary'; ariaLabel: string; ariaLabelledby: string | null; disableRipple: boolean; disabledInteractive: boolean; id: string; labelPosition: 'after' | 'before'; name: string | null; required: boolean; value: string; get checked(): boolean; set checked(value: boolean); get disabled(): boolean; set disabled(value: boolean); get indeterminate(): boolean; set indeterminate(value: boolean); tabIndex: number; change: EventEmitter; indeterminateChange: EventEmitter; constructor(); ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; get inputId(): string; get _disabledInteractive(): boolean; focus(): void; private _changeEvent; /** * The following map resembles the transition state of the checkbox and the corresponding animation class to be applied when triggered */ private _animationClasses; private _getAnimationClasses; private _checkboxTransitionState; _onTouched: () => any; private _controlValueAccessorChangeFn; private _validatorChangeFn; writeValue(value: any): void; registerOnChange(fn: (value: any) => void): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; validate(control: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; private _emiteChangeEvent; _onBlur(): void; protected _inputClick(): void; private _inputSync; _touchTargetClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_disableRipple: unknown; static ngAcceptInputType_disabledInteractive: unknown; static ngAcceptInputType_required: unknown; static ngAcceptInputType_checked: unknown; static ngAcceptInputType_disabled: unknown; static ngAcceptInputType_indeterminate: unknown; }