UNPKG

vuetify

Version:

Vue Material Component Framework

280 lines (274 loc) 11.9 kB
import * as vue from 'vue'; import { JSXComponent, PropType, ExtractPropTypes, Ref, nextTick, WritableComputedRef, CSSProperties } from 'vue'; type Density = null | 'default' | 'comfortable' | 'compact'; type IconValue = string | JSXComponent; declare const IconValue: PropType<IconValue>; declare function deepEqual(a: any, b: any): boolean; type SelectionControlSlot = { model: WritableComputedRef<any>; textColorClasses: Ref<string[]>; textColorStyles: Ref<CSSProperties>; props: { onBlur: (e: Event) => void; onFocus: (e: FocusEvent) => void; id: string; }; }; declare const VSelectionControl: { new (...args: any[]): { $: vue.ComponentInternalInstance; $data: {}; $props: Partial<{ inline: boolean; error: boolean; disabled: boolean; multiple: boolean | null; readonly: boolean; density: Density; ripple: boolean; valueComparator: typeof deepEqual; }> & Omit<Readonly<ExtractPropTypes<Omit<{ density: { type: vue.PropType<Density>; default: string; validator: (v: any) => boolean; }; theme: StringConstructor; color: StringConstructor; disabled: BooleanConstructor; error: BooleanConstructor; id: StringConstructor; inline: BooleanConstructor; falseIcon: vue.PropType<IconValue>; trueIcon: vue.PropType<IconValue>; ripple: { type: BooleanConstructor; default: boolean; }; multiple: { type: vue.PropType<boolean | null>; default: null; }; name: StringConstructor; readonly: BooleanConstructor; modelValue: null; type: StringConstructor; valueComparator: { type: vue.PropType<typeof deepEqual>; default: typeof deepEqual; }; label: StringConstructor; trueValue: null; falseValue: null; value: null; }, "$children" | "v-slot:default" | "$slots" | "v-slots" | "modelValue" | "onUpdate:modelValue" | "v-slot:label" | "v-slot:input">>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "inline" | "error" | "disabled" | "multiple" | "readonly" | "density" | "ripple" | "valueComparator">; $attrs: { [x: string]: unknown; }; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: vue.Slot | undefined; }>; $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null; $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: vue.ComponentOptionsBase<Readonly<ExtractPropTypes<Omit<{ density: { type: vue.PropType<Density>; default: string; validator: (v: any) => boolean; }; theme: StringConstructor; color: StringConstructor; disabled: BooleanConstructor; error: BooleanConstructor; id: StringConstructor; inline: BooleanConstructor; falseIcon: vue.PropType<IconValue>; trueIcon: vue.PropType<IconValue>; ripple: { type: BooleanConstructor; default: boolean; }; multiple: { type: vue.PropType<boolean | null>; default: null; }; name: StringConstructor; readonly: BooleanConstructor; modelValue: null; type: StringConstructor; valueComparator: { type: vue.PropType<typeof deepEqual>; default: typeof deepEqual; }; label: StringConstructor; trueValue: null; falseValue: null; value: null; }, "$children" | "v-slot:default" | "$slots" | "v-slots" | "modelValue" | "onUpdate:modelValue" | "v-slot:label" | "v-slot:input">>>, { isFocused: Ref<boolean>; input: Ref<HTMLInputElement | undefined>; }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{ 'update:modelValue': (val: any) => boolean; }, "$children" | "v-slot:default" | "$slots" | "v-slots" | "modelValue" | "update:modelValue" | "v-slot:label" | "v-slot:input">, string, { inline: boolean; error: boolean; disabled: boolean; multiple: boolean | null; readonly: boolean; density: Density; ripple: boolean; valueComparator: typeof deepEqual; }, {}, string> & { beforeCreate?: ((() => void) | (() => void)[]) | undefined; created?: ((() => void) | (() => void)[]) | undefined; beforeMount?: ((() => void) | (() => void)[]) | undefined; mounted?: ((() => void) | (() => void)[]) | undefined; beforeUpdate?: ((() => void) | (() => void)[]) | undefined; updated?: ((() => void) | (() => void)[]) | undefined; activated?: ((() => void) | (() => void)[]) | undefined; deactivated?: ((() => void) | (() => void)[]) | undefined; beforeDestroy?: ((() => void) | (() => void)[]) | undefined; beforeUnmount?: ((() => void) | (() => void)[]) | undefined; destroyed?: ((() => void) | (() => void)[]) | undefined; unmounted?: ((() => void) | (() => void)[]) | undefined; renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined; renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined; errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined; }; $forceUpdate: () => void; $nextTick: typeof nextTick; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle; } & Readonly<ExtractPropTypes<Omit<{ density: { type: vue.PropType<Density>; default: string; validator: (v: any) => boolean; }; theme: StringConstructor; color: StringConstructor; disabled: BooleanConstructor; error: BooleanConstructor; id: StringConstructor; inline: BooleanConstructor; falseIcon: vue.PropType<IconValue>; trueIcon: vue.PropType<IconValue>; ripple: { type: BooleanConstructor; default: boolean; }; multiple: { type: vue.PropType<boolean | null>; default: null; }; name: StringConstructor; readonly: BooleanConstructor; modelValue: null; type: StringConstructor; valueComparator: { type: vue.PropType<typeof deepEqual>; default: typeof deepEqual; }; label: StringConstructor; trueValue: null; falseValue: null; value: null; }, "$children" | "v-slot:default" | "$slots" | "v-slots" | "modelValue" | "onUpdate:modelValue" | "v-slot:label" | "v-slot:input">>> & vue.ShallowUnwrapRef<{ isFocused: Ref<boolean>; input: Ref<HTMLInputElement | undefined>; }> & {} & vue.ComponentCustomProperties & {}; __isFragment?: undefined; __isTeleport?: undefined; __isSuspense?: undefined; } & vue.ComponentOptionsBase<Readonly<ExtractPropTypes<Omit<{ density: { type: vue.PropType<Density>; default: string; validator: (v: any) => boolean; }; theme: StringConstructor; color: StringConstructor; disabled: BooleanConstructor; error: BooleanConstructor; id: StringConstructor; inline: BooleanConstructor; falseIcon: vue.PropType<IconValue>; trueIcon: vue.PropType<IconValue>; ripple: { type: BooleanConstructor; default: boolean; }; multiple: { type: vue.PropType<boolean | null>; default: null; }; name: StringConstructor; readonly: BooleanConstructor; modelValue: null; type: StringConstructor; valueComparator: { type: vue.PropType<typeof deepEqual>; default: typeof deepEqual; }; label: StringConstructor; trueValue: null; falseValue: null; value: null; }, "$children" | "v-slot:default" | "$slots" | "v-slots" | "modelValue" | "onUpdate:modelValue" | "v-slot:label" | "v-slot:input">>>, { isFocused: Ref<boolean>; input: Ref<HTMLInputElement | undefined>; }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{ 'update:modelValue': (val: any) => boolean; }, "$children" | "v-slot:default" | "$slots" | "v-slots" | "modelValue" | "update:modelValue" | "v-slot:label" | "v-slot:input">, string, { inline: boolean; error: boolean; disabled: boolean; multiple: boolean | null; readonly: boolean; density: Density; ripple: boolean; valueComparator: typeof deepEqual; }, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T_1>() => { $props: { modelValue?: T_1 | undefined; 'onUpdate:modelValue'?: ((val: T_1) => any) | undefined; } & { $children?: {} | vue.VNodeChild | { default?: (() => vue.VNodeChild) | undefined; label?: ((args_0: { label: string | undefined; props: Record<string, unknown>; }) => vue.VNodeChild) | undefined; input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined; }; $slots?: { default?: (() => vue.VNodeChild) | undefined; label?: ((args_0: { label: string | undefined; props: Record<string, unknown>; }) => vue.VNodeChild) | undefined; input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined; } | undefined; 'v-slots'?: { default?: false | (() => vue.VNodeChild) | undefined; label?: false | ((args_0: { label: string | undefined; props: Record<string, unknown>; }) => vue.VNodeChild) | undefined; input?: false | ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined; } | undefined; } & { "v-slot:default"?: false | (() => vue.VNodeChild) | undefined; "v-slot:label"?: false | ((args_0: { label: string | undefined; props: Record<string, unknown>; }) => vue.VNodeChild) | undefined; "v-slot:input"?: false | ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined; }; }); type VSelectionControl = InstanceType<typeof VSelectionControl>; export { VSelectionControl };