vuestic-ui
Version:
Vue 3 UI Framework
647 lines (646 loc) • 19.2 kB
TypeScript
export declare const VaSwitch: {
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
id: {
type: StringConstructor;
default: string;
};
name: {
type: StringConstructor;
default: string;
};
modelValue: {
type: import("vue").PropType<string | number | boolean | unknown[] | Record<string, unknown> | null>;
default: boolean;
};
trueLabel: {
type: StringConstructor;
default: null;
};
falseLabel: {
type: StringConstructor;
default: null;
};
trueInnerLabel: {
type: StringConstructor;
default: null;
};
falseInnerLabel: {
type: StringConstructor;
default: null;
};
ariaLabel: {
type: import("vue").PropType<import("../../composables").TranslationProp>;
default: import("../../composables").TranslationProp;
};
color: {
type: StringConstructor;
default: string;
};
offColor: {
type: StringConstructor;
default: string;
};
size: {
type: import("vue").PropType<"small" | "medium" | "large">;
default: string;
validator: (value: string) => boolean;
};
preset: {
type: import("vue").PropType<import("../../composables").PresetPropValue>;
default: undefined;
};
arrayValue: {
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
default: null;
};
label: {
type: StringConstructor;
default: string;
};
leftLabel: {
type: BooleanConstructor;
default: boolean;
};
trueValue: {
type: import("vue").PropType<any>;
default: boolean;
};
falseValue: {
type: import("vue").PropType<any>;
default: boolean;
};
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
indeterminateValue: {
type: import("vue").PropType<any>;
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
rules: {
type: import("vue").PropType<import("../../composables").ValidationRule<any>[]>;
default: () => any;
};
dirty: {
type: BooleanConstructor;
default: boolean;
};
error: {
type: BooleanConstructor;
default: undefined;
};
errorMessages: {
type: import("vue").PropType<string | string[]>;
default: undefined;
};
errorCount: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
success: {
type: BooleanConstructor;
default: boolean;
};
messages: {
type: import("vue").PropType<string | string[]>;
default: () => never[];
};
immediateValidation: {
type: BooleanConstructor;
default: boolean;
};
loading: {
type: BooleanConstructor;
default: boolean;
};
stateful: {
type: import("vue").PropType<boolean>;
default: boolean;
};
}>>, {
focus: () => void;
reset: () => void;
isDirty: import("vue").Ref<boolean>;
isTouched: import("vue").Ref<boolean>;
isLoading: import("vue").WritableComputedRef<boolean>;
isError: import("vue").WritableComputedRef<boolean>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
[x: string]: (...args: any[]) => void;
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
id: {
type: StringConstructor;
default: string;
};
name: {
type: StringConstructor;
default: string;
};
modelValue: {
type: import("vue").PropType<string | number | boolean | unknown[] | Record<string, unknown> | null>;
default: boolean;
};
trueLabel: {
type: StringConstructor;
default: null;
};
falseLabel: {
type: StringConstructor;
default: null;
};
trueInnerLabel: {
type: StringConstructor;
default: null;
};
falseInnerLabel: {
type: StringConstructor;
default: null;
};
ariaLabel: {
type: import("vue").PropType<import("../../composables").TranslationProp>;
default: import("../../composables").TranslationProp;
};
color: {
type: StringConstructor;
default: string;
};
offColor: {
type: StringConstructor;
default: string;
};
size: {
type: import("vue").PropType<"small" | "medium" | "large">;
default: string;
validator: (value: string) => boolean;
};
preset: {
type: import("vue").PropType<import("../../composables").PresetPropValue>;
default: undefined;
};
arrayValue: {
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
default: null;
};
label: {
type: StringConstructor;
default: string;
};
leftLabel: {
type: BooleanConstructor;
default: boolean;
};
trueValue: {
type: import("vue").PropType<any>;
default: boolean;
};
falseValue: {
type: import("vue").PropType<any>;
default: boolean;
};
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
indeterminateValue: {
type: import("vue").PropType<any>;
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
rules: {
type: import("vue").PropType<import("../../composables").ValidationRule<any>[]>;
default: () => any;
};
dirty: {
type: BooleanConstructor;
default: boolean;
};
error: {
type: BooleanConstructor;
default: undefined;
};
errorMessages: {
type: import("vue").PropType<string | string[]>;
default: undefined;
};
errorCount: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
success: {
type: BooleanConstructor;
default: boolean;
};
messages: {
type: import("vue").PropType<string | string[]>;
default: () => never[];
};
immediateValidation: {
type: BooleanConstructor;
default: boolean;
};
loading: {
type: BooleanConstructor;
default: boolean;
};
stateful: {
type: import("vue").PropType<boolean>;
default: boolean;
};
}>>, {
label: string;
error: boolean;
size: "small" | "medium" | "large";
modelValue: string | number | boolean | unknown[] | Record<string, unknown> | null;
stateful: boolean;
preset: import("../../composables").PresetPropValue;
color: string;
name: string;
loading: boolean;
success: boolean;
disabled: boolean;
ariaLabel: import("../../composables").TranslationProp;
readonly: boolean;
indeterminate: boolean;
indeterminateValue: any;
id: string;
arrayValue: string | number | boolean | Record<string, any>;
leftLabel: boolean;
trueValue: any;
falseValue: any;
rules: import("../../composables").ValidationRule<any>[];
dirty: boolean;
errorMessages: string | string[];
errorCount: string | number;
messages: string | string[];
immediateValidation: boolean;
trueLabel: string;
falseLabel: string;
trueInnerLabel: string;
falseInnerLabel: string;
offColor: string;
}, true, {}, {}, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
id: {
type: StringConstructor;
default: string;
};
name: {
type: StringConstructor;
default: string;
};
modelValue: {
type: import("vue").PropType<string | number | boolean | unknown[] | Record<string, unknown> | null>;
default: boolean;
};
trueLabel: {
type: StringConstructor;
default: null;
};
falseLabel: {
type: StringConstructor;
default: null;
};
trueInnerLabel: {
type: StringConstructor;
default: null;
};
falseInnerLabel: {
type: StringConstructor;
default: null;
};
ariaLabel: {
type: import("vue").PropType<import("../../composables").TranslationProp>;
default: import("../../composables").TranslationProp;
};
color: {
type: StringConstructor;
default: string;
};
offColor: {
type: StringConstructor;
default: string;
};
size: {
type: import("vue").PropType<"small" | "medium" | "large">;
default: string;
validator: (value: string) => boolean;
};
preset: {
type: import("vue").PropType<import("../../composables").PresetPropValue>;
default: undefined;
};
arrayValue: {
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
default: null;
};
label: {
type: StringConstructor;
default: string;
};
leftLabel: {
type: BooleanConstructor;
default: boolean;
};
trueValue: {
type: import("vue").PropType<any>;
default: boolean;
};
falseValue: {
type: import("vue").PropType<any>;
default: boolean;
};
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
indeterminateValue: {
type: import("vue").PropType<any>;
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
rules: {
type: import("vue").PropType<import("../../composables").ValidationRule<any>[]>;
default: () => any;
};
dirty: {
type: BooleanConstructor;
default: boolean;
};
error: {
type: BooleanConstructor;
default: undefined;
};
errorMessages: {
type: import("vue").PropType<string | string[]>;
default: undefined;
};
errorCount: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
success: {
type: BooleanConstructor;
default: boolean;
};
messages: {
type: import("vue").PropType<string | string[]>;
default: () => never[];
};
immediateValidation: {
type: BooleanConstructor;
default: boolean;
};
loading: {
type: BooleanConstructor;
default: boolean;
};
stateful: {
type: import("vue").PropType<boolean>;
default: boolean;
};
}>>, {
focus: () => void;
reset: () => void;
isDirty: import("vue").Ref<boolean>;
isTouched: import("vue").Ref<boolean>;
isLoading: import("vue").WritableComputedRef<boolean>;
isError: import("vue").WritableComputedRef<boolean>;
}, {}, {}, {}, {
label: string;
error: boolean;
size: "small" | "medium" | "large";
modelValue: string | number | boolean | unknown[] | Record<string, unknown> | null;
stateful: boolean;
preset: import("../../composables").PresetPropValue;
color: string;
name: string;
loading: boolean;
success: boolean;
disabled: boolean;
ariaLabel: import("../../composables").TranslationProp;
readonly: boolean;
indeterminate: boolean;
indeterminateValue: any;
id: string;
arrayValue: string | number | boolean | Record<string, any>;
leftLabel: boolean;
trueValue: any;
falseValue: any;
rules: import("../../composables").ValidationRule<any>[];
dirty: boolean;
errorMessages: string | string[];
errorCount: string | number;
messages: string | string[];
immediateValidation: boolean;
trueLabel: string;
falseLabel: string;
trueInnerLabel: string;
falseInnerLabel: string;
offColor: string;
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
id: {
type: StringConstructor;
default: string;
};
name: {
type: StringConstructor;
default: string;
};
modelValue: {
type: import("vue").PropType<string | number | boolean | unknown[] | Record<string, unknown> | null>;
default: boolean;
};
trueLabel: {
type: StringConstructor;
default: null;
};
falseLabel: {
type: StringConstructor;
default: null;
};
trueInnerLabel: {
type: StringConstructor;
default: null;
};
falseInnerLabel: {
type: StringConstructor;
default: null;
};
ariaLabel: {
type: import("vue").PropType<import("../../composables").TranslationProp>;
default: import("../../composables").TranslationProp;
};
color: {
type: StringConstructor;
default: string;
};
offColor: {
type: StringConstructor;
default: string;
};
size: {
type: import("vue").PropType<"small" | "medium" | "large">;
default: string;
validator: (value: string) => boolean;
};
preset: {
type: import("vue").PropType<import("../../composables").PresetPropValue>;
default: undefined;
};
arrayValue: {
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
default: null;
};
label: {
type: StringConstructor;
default: string;
};
leftLabel: {
type: BooleanConstructor;
default: boolean;
};
trueValue: {
type: import("vue").PropType<any>;
default: boolean;
};
falseValue: {
type: import("vue").PropType<any>;
default: boolean;
};
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
indeterminateValue: {
type: import("vue").PropType<any>;
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
rules: {
type: import("vue").PropType<import("../../composables").ValidationRule<any>[]>;
default: () => any;
};
dirty: {
type: BooleanConstructor;
default: boolean;
};
error: {
type: BooleanConstructor;
default: undefined;
};
errorMessages: {
type: import("vue").PropType<string | string[]>;
default: undefined;
};
errorCount: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
success: {
type: BooleanConstructor;
default: boolean;
};
messages: {
type: import("vue").PropType<string | string[]>;
default: () => never[];
};
immediateValidation: {
type: BooleanConstructor;
default: boolean;
};
loading: {
type: BooleanConstructor;
default: boolean;
};
stateful: {
type: import("vue").PropType<boolean>;
default: boolean;
};
}>>, {
focus: () => void;
reset: () => void;
isDirty: import("vue").Ref<boolean>;
isTouched: import("vue").Ref<boolean>;
isLoading: import("vue").WritableComputedRef<boolean>;
isError: import("vue").WritableComputedRef<boolean>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
[x: string]: (...args: any[]) => void;
}, string, {
label: string;
error: boolean;
size: "small" | "medium" | "large";
modelValue: string | number | boolean | unknown[] | Record<string, unknown> | null;
stateful: boolean;
preset: import("../../composables").PresetPropValue;
color: string;
name: string;
loading: boolean;
success: boolean;
disabled: boolean;
ariaLabel: import("../../composables").TranslationProp;
readonly: boolean;
indeterminate: boolean;
indeterminateValue: any;
id: string;
arrayValue: string | number | boolean | Record<string, any>;
leftLabel: boolean;
trueValue: any;
falseValue: any;
rules: import("../../composables").ValidationRule<any>[];
dirty: boolean;
errorMessages: string | string[];
errorCount: string | number;
messages: string | string[];
immediateValidation: boolean;
trueLabel: string;
falseLabel: string;
trueInnerLabel: string;
falseInnerLabel: string;
offColor: string;
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
$slots: {
innerLabel?(_: {}): any;
checker?(_: {
value: boolean;
}): any;
default?(_: {}): any;
};
});