vuetning
Version:
<p align="center"> <img width="160"src="https://s3.amazonaws.com/arcthos.com/vuetning/logo.svg"> </p>
150 lines (149 loc) • 3.67 kB
TypeScript
import { type PropType } from "vue";
import type { ValidationError } from "../slds-form-element/validation-error";
declare const _default: import("vue").DefineComponent<{
/**
* Indicates whether the input is disabled.
*/
disabled: BooleanConstructor;
/**
* Array of error objects from vuelidate.
*/
errors: {
type: PropType<ValidationError[]>;
default: () => ValidationError[];
};
/**
* Inline help text.
* When using the help slot this prop is ignored.
*/
help: StringConstructor;
/**
* Input label.
*/
label: StringConstructor;
/**
* Input max length.
*/
maxlength: (StringConstructor | NumberConstructor)[];
/**
* Input value.
*/
modelValue: any;
/**
* Input placeholder.
*/
placeholder: StringConstructor;
/**
* Indicates whether this label's input is required.
*/
required: BooleanConstructor;
/**
* Indicates whether the input is showing its spinner.
*/
showSpinner: BooleanConstructor;
/**
* Indicates whether the input is stacked among other inputs.
*/
stacked: BooleanConstructor;
/**
* Tooltip text.
* When using the tooltip slot this prop is ignored.
*/
tooltip: StringConstructor;
}, unknown, {
rightGroupStyle: {
right: string;
};
}, {
/**
* Bindable form element attributes.
*/
formElementAttributes(): Record<string, unknown>;
/**
* Bindable input attributes.
*/
inputAttributes(): Record<string, unknown>;
/**
* Indicates whether the input is showing its clear button.
*/
showClearButton(): boolean;
/**
* Spinner style.
*/
spinnerStyle(): {
right: string;
};
}, {
/**
* Handles the click event from the clear button.
*/
handleClickClear(): void;
/**
* Handles the input event on the input.
* @param event The fired event.
*/
handleInput(event: Event): void;
/**
* Handles the keyup event on the input.
* @param event The fired event.
*/
handleKeyUp(event: Event): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Indicates whether the input is disabled.
*/
disabled: BooleanConstructor;
/**
* Array of error objects from vuelidate.
*/
errors: {
type: PropType<ValidationError[]>;
default: () => ValidationError[];
};
/**
* Inline help text.
* When using the help slot this prop is ignored.
*/
help: StringConstructor;
/**
* Input label.
*/
label: StringConstructor;
/**
* Input max length.
*/
maxlength: (StringConstructor | NumberConstructor)[];
/**
* Input value.
*/
modelValue: any;
/**
* Input placeholder.
*/
placeholder: StringConstructor;
/**
* Indicates whether this label's input is required.
*/
required: BooleanConstructor;
/**
* Indicates whether the input is showing its spinner.
*/
showSpinner: BooleanConstructor;
/**
* Indicates whether the input is stacked among other inputs.
*/
stacked: BooleanConstructor;
/**
* Tooltip text.
* When using the tooltip slot this prop is ignored.
*/
tooltip: StringConstructor;
}>>, {
required: boolean;
disabled: boolean;
errors: ValidationError[];
stacked: boolean;
modelValue: any;
showSpinner: boolean;
}, {}>;
export default _default;