import { EventEmitter } from '../../stencil-public-runtime'; import type { IconName } from '../icon/exports'; /** * @part content - Wrap for the group of checkboxes * @part label - Label element for the group */ export declare class CheckboxGroup { host: HTMLRCheckboxGroupElement; /** * Specifies the `id` of the `
` to which the element belongs. * */ form?: string; /** * Specifies `name` property of the 'select-all' checkbox, representing the group as a whole. * */ name?: string; /** * Specifies `value` property of the 'select-all', representing the group as a whole. * */ value: string; /** * Specifies whether the `value` is required. */ required?: boolean; /** Set custom message for `valueMissing` property * of a ValidityState object (set by `required`) * within Constrain Validation API * */ valueMissingMessage?: string; /** Apply validation success visual style */ valid?: boolean; /** Apply validation error visual style */ invalid?: boolean; /** Custom validation error message */ error?: string; /** Set custom message for `customError` property of a ValidityState object * indicating whether the element's custom validity message has been set to a non-empty * string by calling the element's setCustomValidity() method. */ customErrorMessage?: string; /** * The label for the checkbox group. */ label: string; /** * An optional field indicator for the label. */ fieldIndicator?: string; /** * Help text for the checkbox group. */ help?: string; /** * An optional icon to display in the help text. */ helpIcon?: IconName; /** * The color of the help icon. */ helpIconColor?: string; /** * A hint providing additional information for the checkbox group. */ hint?: string; /** * Whether to show a "Select All" checkbox. */ showSelectAll?: boolean; /** Specifies if element must be ignored during validation of the form elements */ novalidate?: boolean; /** Specifies if select-all checkbox is initially in checked state */ checked?: boolean; /** * @deprecated – use `indeterminate` instead; will be removed during next major release. * * Specifies if select-all checkbox is initially in indetermitate state */ indetermitate?: boolean; /** Specifies if select-all checkbox is initially in indeterminate state */ indeterminate?: boolean; /** Emits event after each validation */ rValidate: EventEmitter<{ state: string; message: string; }>; isIndeterminate: boolean; allChecked: boolean; noChecked: boolean; validityState: string; validityMessage: string; private uniqueId; private initial; /** Validates the checkbox group, displays provided message in case value is invalid. */ setCustomValidity(message: string): Promise; /** * Validates the checkbox group without triggering UI and returns a boolean indicating its validity. * @returns A boolean indicating whether the checkbox is valid. */ checkValidity(): Promise; /** * Resets the validity state and message of the radio group. * This method clears the validity message and state, and sets the invalid * property to its initial value. */ resetValidity(): Promise; /** * @returns {HTMLRCheckboxElement[]} - Returns all checkboxes in the slot. */ private get checkboxes(); private get hasMessage(); /** * Checks all checkboxes in the slot. */ checkAll(): Promise; /** * Unchecks all checkboxes in the slot. */ uncheckAll(): Promise; handleCheckboxChange(event: CustomEvent): void; private updateCheckAllState; private updateCheckboxesState; private get message(); private renderMessage; private getValidityStateData; private validateGroup; private get parentFormEl(); private get isNoValidate(); private onSubmitForm; private onResetForm; private resetToInitial; connectedCallback(): void; disconnectedCallback(): void; private get groupDescribedby(); render(): any; }