import { DefineComponent } from 'vue'; /** * InputIntervalArray component props */ export interface InputIntervalArrayProps { /** * Number array modelValue of the input. */ modelValue?: number[]; /** * The minimum allowed value for each number in the interval. * Show a validation error when any value is lower than this. */ min?: number; /** * The maximum allowed value for each number in the interval. * Show a validation error when any value is higher than this. */ max?: number; /** * Sets the initial value of the field. * This will only available with option 'useValidator'. * * In usecase like edit form, you need to display the previous inputted value. */ value?: number[]; /** * The input label. Tell the user what input is this. */ label?: string; /** * Specify classes for label. */ labelClass?: string; /** * Wether the input should be validated with vee-validator or not. * If you use this component within form input, you need to set this props as true. */ useValidator?: boolean; /** * This prop is required if you use this component in a form input. * Specify the unique field name, match with your needs for API request. * * @default 'intervalArray' */ fieldName?: string; /** * Wether this input field is required or not. */ mandatory?: boolean; /** * Invalid input state. */ invalid?: boolean; /** * Set manual invalid input container state. */ manualInvalidContainer?: boolean; /** * Set custom validator message. * Will be show if invalid="true" */ validatorMessage?: string; /** * Classes for validator message in input field. */ validatorMessageClass?: string; /** * Wether to format the message * * @default true */ formatValidatorMessage?: boolean; /** * Validate the input on blur event. * The field value and error message will only be updated when the input is blurred. * * @default true - on blur event */ validateOnBlur?: boolean; /** * Specify the input placeholder. * * @default 'Enter {label}' or 'Enter interval' */ placeholder?: string; /** * Disabled the input. */ disabled?: boolean; /** * Show information to user about the field. */ fieldInfo?: string; /** * Specify classes for input. */ inputClass?: string; /** * Specify classes for input container. */ inputContainerClass?: string; } /** * InputIntervalArray component emits */ export type InputIntervalArrayEmits = { 'blur': [payload?: string]; 'input': [payload?: number[]]; 'update:modelValue': [payload?: number[]]; }; /** * **TSVue - InputIntervalArray** * * _Handle interval input that converts a string like "1-15, 18, 20-25" into a number array._ * * --- --- * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png) * * @group form */ declare const InputIntervalArray: DefineComponent< InputIntervalArrayProps, InputIntervalArrayEmits >; export default InputIntervalArray;