import { RuleExpression } from 'vee-validate'; import { PropType } from 'vue'; import { Optional } from '../../../../shared/dist/esm/index'; import { LabelPosition } from '../../composables/form/input'; /** * Troubleshooting: * - If clicking on the checkbox doesn't do anything, check if any of its ancestor elements * have a @click.prevent on them anywhere. * - If you're not using the checkbox in a group, it's suggested that you set :value="true", * so that a v-model attached to the checkbox will be either 'true' or 'undefined' depending on the * checked state */ type ValueType = Optional | string[]; declare const _default: import('vue').DefineComponent>; default: undefined; }; /** * Set label classes */ labelClasses: { type: PropType>; default: undefined; }; /** * Help text */ description: { type: PropType>; default: undefined; }; /** * Whether to inline the help description */ inlineDescription: { type: BooleanConstructor; default: boolean; }; /** * vee-validate validation rules */ rules: { type: PropType>; default: undefined; }; /** * vee-validate validation() on component mount */ validateOnMount: { type: BooleanConstructor; default: boolean; }; /** * Whether to show the red "required" asterisk */ showRequired: { type: BooleanConstructor; default: boolean; }; /** * Checkbox group's value */ modelValue: { type: PropType; default: undefined; }; /** * Checkbox's own value. If it is checked, modelValue will include this value (amongst any other checked values from the same group). * If not set will default to 'name' value. */ value: { type: PropType>; default: boolean; }; /** * HTML ID to use, must be globally unique. If not specified, a random ID will be generated. One is necessary to properly associate the label and checkbox. */ id: { type: PropType>; default: undefined; }; hideLabel: { type: BooleanConstructor; default: boolean; }; labelPosition: { type: PropType; default: string; }; indeterminate: { type: BooleanConstructor; default: boolean; }; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { "update:modelValue": (val: ValueType) => any; }, string, import('vue').PublicProps, Readonly>; default: undefined; }; /** * Set label classes */ labelClasses: { type: PropType>; default: undefined; }; /** * Help text */ description: { type: PropType>; default: undefined; }; /** * Whether to inline the help description */ inlineDescription: { type: BooleanConstructor; default: boolean; }; /** * vee-validate validation rules */ rules: { type: PropType>; default: undefined; }; /** * vee-validate validation() on component mount */ validateOnMount: { type: BooleanConstructor; default: boolean; }; /** * Whether to show the red "required" asterisk */ showRequired: { type: BooleanConstructor; default: boolean; }; /** * Checkbox group's value */ modelValue: { type: PropType; default: undefined; }; /** * Checkbox's own value. If it is checked, modelValue will include this value (amongst any other checked values from the same group). * If not set will default to 'name' value. */ value: { type: PropType>; default: boolean; }; /** * HTML ID to use, must be globally unique. If not specified, a random ID will be generated. One is necessary to properly associate the label and checkbox. */ id: { type: PropType>; default: undefined; }; hideLabel: { type: BooleanConstructor; default: boolean; }; labelPosition: { type: PropType; default: string; }; indeterminate: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ "onUpdate:modelValue"?: ((val: ValueType) => any) | undefined; }>, { disabled: boolean; label: Optional; description: Optional; id: Optional; modelValue: false | ValueType; value: Optional; labelClasses: Optional; inlineDescription: boolean; rules: RuleExpression; validateOnMount: boolean; showRequired: boolean; hideLabel: boolean; labelPosition: LabelPosition; indeterminate: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; export default _default;