import { ExtractPropTypes, ComputedRef } from 'vue'; import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from '../../../shared.type'; import { addToStore, removeFromStore, computedStore, computedFormItemSize, computedIsChecked, computedIsLimitDisabled, computedIsDisabled, computedIsDisplayOnly, computedIsGroupDisplayOnly, computedGetModelGet, computedIsGroup, computedCheckboxSize, computedGetModelSet, mounted, handleChange, computedDisplayLabel, computedIsShowText, computedShowText } from './renderless'; export type { ISharedRenderlessParamHooks } from '../../../shared.type'; export type IconPosition = 'center' | 'top'; export declare const $constants: { FORM_ITEM: string; FORM_CHANGE: string; CHECKBOX: string; CHECKBOX_GROUP: string; }; export declare const checkboxProps: { _constants: { type: ObjectConstructor; default: () => { FORM_ITEM: string; FORM_CHANGE: string; CHECKBOX: string; CHECKBOX_GROUP: string; }; }; modelValue: { type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; }; label: { type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; default: string; }; indeterminate: BooleanConstructor; disabled: BooleanConstructor; checked: BooleanConstructor; name: StringConstructor; trueLabel: (NumberConstructor | StringConstructor)[]; falseLabel: (NumberConstructor | StringConstructor)[]; id: StringConstructor; controls: { type: StringConstructor; default: string; }; border: BooleanConstructor; size: StringConstructor; text: StringConstructor; customClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[]; validateEvent: { type: BooleanConstructor; default: boolean; }; events: { type: ObjectConstructor; default: () => {}; }; displayOnly: { type: BooleanConstructor; default: boolean; }; iconPosition: PropType; shape: { type: StringConstructor; default: string; }; }; export type ICheckboxSizeEnum = 'medium' | 'small' | 'mini'; export type ICheckboxModalValue = string | number | boolean; export interface ICheckboxChangeEvent extends Event { target: HTMLInputElement; } export interface ICheckboxState { size: ICheckboxSizeEnum; vertical: boolean; focus: boolean; selfModel: ICheckboxModalValue; showLabel: boolean; isLimitExceeded: boolean; checkboxGroup: ISharedRenderlessFunctionParams['parent']; store: ICheckboxModalValue | ICheckboxModalValue[]; isGroup: boolean; isChecked: boolean; isDisabled: boolean; checkboxSize: boolean; isLimitDisabled: boolean; formDisabled: boolean; formDisplayOnly: boolean; isDisplayOnly: boolean; isGroupDisplayOnly: boolean; displayLabel: string; inputDisabled: boolean; model: ICheckboxModalValue | ICheckboxModalValue[]; showText: boolean; isShowText: boolean; tooltipVisible: boolean; displayedValue: string; } export type ICheckboxProps = ExtractPropTypes; export type ICheckboxConstants = typeof $constants; export type ICheckboxRenderlessParams = ISharedRenderlessFunctionParams & { state: ICheckboxState; props: ICheckboxProps; formItemSize: ComputedRef; type: string; api: ICheckboxApi; }; export interface ICheckboxApi { state: ICheckboxState; dispatch: ISharedRenderlessParamUtils['dispatch']; addToStore: ReturnType; removeFromStore: ReturnType; computedStore: ReturnType; computedFormItemSize: ReturnType; computedIsChecked: ReturnType; computedIsLimitDisabled: ReturnType; computedIsDisabled: ReturnType; computedIsDisplayOnly: ReturnType; computedIsGroupDisplayOnly: ReturnType; computedGetModelGet: ReturnType; computedIsGroup: ReturnType; computedCheckboxSize: ReturnType; computedGetModelSet: ReturnType; mounted: ReturnType; handleChange: ReturnType; computedDisplayLabel: ReturnType; computedIsShowText: ReturnType; computedShowText: ReturnType; } export type ICheckboxRenderlessParamUtils = ISharedRenderlessParamUtils;