import { ID } from "../../types/index.mjs"; import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { GroupContext, GroupTicket } from "../../composables/createGroup/index.mjs"; import { MaybeRefOrGetter } from "vue"; //#region src/components/Checkbox/CheckboxGroup.vue.d.ts /** Ticket for checkbox items with element reference for focus management */ interface CheckboxTicket extends GroupTicket { /** Element reference for group focus management */ el?: MaybeRefOrGetter; } /** Imperative handle exposed by Checkbox.Group. */ interface CheckboxGroupExpose { /** Focus the selected checkbox, or the first if none is selected. */ focus: (options?: FocusOptions) => void; } interface CheckboxGroupProps extends AtomProps { /** Namespace for dependency injection */ namespace?: string; /** Disables the entire checkbox group */ disabled?: boolean; /** Auto-select non-disabled items on registration */ enroll?: boolean; /** * Controls mandatory checkbox behavior: * - false (default): No mandatory enforcement * - true: Prevents deselecting the last selected item * - `force`: Automatically selects the first non-disabled item on registration */ mandatory?: boolean | 'force'; /** Accessible name for the group */ label?: string; /** ID of element that labels this group */ ariaLabelledby?: string; /** ID of element that describes this group */ ariaDescribedby?: string; } interface CheckboxGroupSlotProps { /** Whether the checkbox group is disabled */ isDisabled: boolean; /** Whether no items are currently selected */ isNoneSelected: boolean; /** Whether all selectable (non-disabled) items are selected */ isAllSelected: boolean; /** Whether some but not all selectable items are selected */ isMixed: boolean; /** Select an item by ID */ select: (id: ID | ID[]) => void; /** Unselect an item by ID */ unselect: (id: ID | ID[]) => void; /** Toggle an item's selection state by ID */ toggle: (id: ID | ID[]) => void; /** Select all selectable (non-disabled) items */ selectAll: () => void; /** Unselect all items (respects mandatory option) */ unselectAll: () => void; /** Toggle between all selected and none selected */ toggleAll: () => void; /** Attributes to bind to the root element */ attrs: { 'role': 'group'; 'aria-label': string | undefined; 'aria-labelledby': string | undefined; 'aria-describedby': string | undefined; }; } declare const useCheckboxGroup: (key: string, defaultValue?: GroupContext> | undefined) => GroupContext>, provideCheckboxGroup: (key: string, context: GroupContext>, app?: import("vue").App) => GroupContext>; declare const _default: typeof __VLS_export; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal<(CheckboxGroupProps & { modelValue?: T | T[]; }) & { "onUpdate:modelValue"?: ((value: T | T[] | undefined) => any) | undefined; "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef) => void; attrs: any; slots: { default: (props: CheckboxGroupSlotProps) => any; }; emit: ((evt: "update:model-value", value: T | T[]) => void) & ((event: "update:modelValue", value: T | T[] | undefined) => void); }>) => import("vue").VNode & { __ctx?: NonNullable>; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; //#endregion export { CheckboxGroupExpose, CheckboxGroupProps, CheckboxGroupSlotProps, CheckboxTicket, _default as default, provideCheckboxGroup, useCheckboxGroup };