@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
55 lines (54 loc) • 1.83 kB
TypeScript
import { EventEmitter, VNode } from "../../stencil-public-runtime";
import { Scale, Theme } from "../interfaces";
export declare class CalciteCheckbox {
el: HTMLCalciteCheckboxElement;
/** The checked state of the checkbox. */
checked?: boolean;
checkedWatcher(newChecked: boolean): void;
/** True if the checkbox is disabled */
disabled?: boolean;
disabledChanged(disabled: boolean): void;
/** The focused state of the checkbox. */
focused: boolean;
focusedChanged(focused: boolean): void;
/** The id attribute of the checkbox. When omitted, a globally unique identifier is used. */
guid: string;
/** The hovered state of the checkbox. */
hovered: boolean;
/**
* True if the checkbox is initially indeterminate,
* which is independent from its checked state
* https://css-tricks.com/indeterminate-checkboxes/
* */
indeterminate?: boolean;
/** The name of the checkbox input */
name?: string;
nameChanged(newName: string): void;
/** specify the scale of the checkbox, defaults to m */
scale: Scale;
/** Determines what theme to use */
theme: Theme;
/** The value of the checkbox input */
value?: string;
private readonly checkedPath;
private readonly indeterminatePath;
private initialChecked;
private input;
private getPath;
private toggle;
/** Emitted when the checkbox checked status changes */
calciteCheckboxChange: EventEmitter;
/** Emitted when the checkbox focused state changes */
calciteCheckboxFocusedChange: EventEmitter;
onClick(event: MouseEvent): void;
mouseenter(): void;
mouseleave(): void;
private formResetHandler;
private nativeLabelClickHandler;
private onInputBlur;
private onInputFocus;
connectedCallback(): void;
disconnectedCallback(): void;
private renderHiddenCheckboxInput;
render(): VNode;
}