import * as i4 from '@angular/cdk/a11y';
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
import * as i0 from '@angular/core';
import { OnInit, ElementRef, EventEmitter, ChangeDetectorRef } from '@angular/core';
import * as i5 from '@angular/forms';
import { ControlValueAccessor } from '@angular/forms';
import * as i3 from '@angular/common';
/** Change event object emitted by NovoCheckbox. */
declare class NovoCheckboxChange {
/** The source NovoCheckbox of the event. */
source: NovoCheckboxElement;
/** The new `checked` value of the checkbox. */
checked: boolean;
}
declare class NovoCheckboxElement implements ControlValueAccessor, OnInit {
private _cdr;
private _focusMonitor;
/**
* Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will
* take precedence so this may be omitted.
*/
ariaLabel: string;
/**
* Users can specify the `aria-labelledby` attribute which will be forwarded to the input element
*/
ariaLabelledby: string | null;
/** The 'aria-describedby' attribute is read after the element's label and field type. */
ariaDescribedby: string;
private _uniqueId;
boxIcon: boolean;
id: string;
name: string;
label: string;
disabled: boolean;
layoutOptions: {
iconStyle?: string;
};
color: string;
/** The value attribute of the native input element */
value: string;
tabIndex: number;
/** Whether the checkbox is required. */
get required(): boolean;
set required(value: boolean);
_required: boolean;
/** Whether the checkbox is checked. */
get checked(): boolean;
set checked(value: boolean);
_checked: boolean;
get indeterminate(): boolean;
set indeterminate(value: boolean);
_indeterminate: boolean;
/** The native `` element */
_inputElement: ElementRef;
/** Event emitted when the checkbox's `checked` value changes. */
readonly change: EventEmitter;
/** Event emitted when the checkbox's `indeterminate` value changes. */
readonly indeterminateChange: EventEmitter;
onSelect: EventEmitter;
onModelChange: Function;
onModelTouched: Function;
constructor(_cdr: ChangeDetectorRef, _focusMonitor: FocusMonitor, tabIndex: string);
ngOnInit(): void;
select(event: Event): void;
writeValue(value: any): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
setDisabledState(disabled: boolean): void;
_getAriaChecked(): 'true' | 'false' | 'mixed';
private _emitChangeEvent;
/** Toggles the `checked` state of the checkbox. */
toggle(): void;
/**
* Event handler for checkbox input element.
* Toggles checked state if element is not disabled.
* Do not toggle on (change) event since IE doesn't fire change event when
* indeterminate checkbox is clicked.
* @param event
*/
_onInputClick(event: Event): void;
/** Focuses the checkbox. */
focus(origin?: FocusOrigin, options?: FocusOptions): void;
_onInteractionEvent(event: Event): void;
private _syncIndeterminate;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
declare class NovoCheckListElement implements ControlValueAccessor, OnInit {
name: string;
options: Array;
disabled: boolean;
onSelect: EventEmitter;
_options: Array;
model: any;
onModelChange: Function;
onModelTouched: Function;
ngOnInit(): void;
select(event: any, item: any): void;
setupOptions(): void;
setModel(): void;
writeValue(model: any): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
setDisabledState(disabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
declare class NovoCheckboxModule {
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵmod: i0.ɵɵNgModuleDeclaration;
static ɵinj: i0.ɵɵInjectorDeclaration;
}
export { NovoCheckListElement, NovoCheckboxChange, NovoCheckboxElement, NovoCheckboxModule };