468 lines
16 KiB
TypeScript
468 lines
16 KiB
TypeScript
import * as vue from 'vue';
|
|
import { ComponentPropsOptions, ExtractPropTypes, JSXComponent, PropType, WritableComputedRef, Ref, CSSProperties, VNode } from 'vue';
|
|
|
|
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
}
|
|
|
|
declare function deepEqual(a: any, b: any): boolean;
|
|
|
|
type Density = null | 'default' | 'comfortable' | 'compact';
|
|
|
|
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
declare const IconValue: PropType<IconValue>;
|
|
|
|
type SelectionControlSlot = {
|
|
model: WritableComputedRef<boolean>;
|
|
textColorClasses: Ref<string[]>;
|
|
textColorStyles: Ref<CSSProperties>;
|
|
backgroundColorClasses: Ref<string[]>;
|
|
backgroundColorStyles: Ref<CSSProperties>;
|
|
inputNode: VNode;
|
|
icon: IconValue | undefined;
|
|
props: {
|
|
onBlur: (e: Event) => void;
|
|
onFocus: (e: FocusEvent) => void;
|
|
id: string;
|
|
};
|
|
};
|
|
|
|
declare const VRadio: {
|
|
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
} & {
|
|
type?: string | undefined;
|
|
id?: string | undefined;
|
|
name?: string | undefined;
|
|
color?: string | undefined;
|
|
value?: any;
|
|
label?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
modelValue?: any;
|
|
defaultsTarget?: string | undefined;
|
|
baseColor?: string | undefined;
|
|
trueValue?: any;
|
|
falseValue?: any;
|
|
} & {
|
|
$children?: vue.VNodeChild | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | {
|
|
default?: ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:label"?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
} & {
|
|
type?: string | undefined;
|
|
id?: string | undefined;
|
|
name?: string | undefined;
|
|
color?: string | undefined;
|
|
value?: any;
|
|
label?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
modelValue?: any;
|
|
defaultsTarget?: string | undefined;
|
|
baseColor?: string | undefined;
|
|
trueValue?: any;
|
|
falseValue?: any;
|
|
} & {
|
|
$children?: vue.VNodeChild | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | {
|
|
default?: ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:label"?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
}, {
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
}, true, {}, vue.SlotsType<Partial<{
|
|
default: (arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
label: (arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
input: (arg: SelectionControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
}>>, {
|
|
P: {};
|
|
B: {};
|
|
D: {};
|
|
C: {};
|
|
M: {};
|
|
Defaults: {};
|
|
}, {
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
} & {
|
|
type?: string | undefined;
|
|
id?: string | undefined;
|
|
name?: string | undefined;
|
|
color?: string | undefined;
|
|
value?: any;
|
|
label?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
modelValue?: any;
|
|
defaultsTarget?: string | undefined;
|
|
baseColor?: string | undefined;
|
|
trueValue?: any;
|
|
falseValue?: any;
|
|
} & {
|
|
$children?: vue.VNodeChild | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | {
|
|
default?: ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:label"?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
}, {}, {}, {}, {}, {
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
}>;
|
|
__isFragment?: undefined;
|
|
__isTeleport?: undefined;
|
|
__isSuspense?: undefined;
|
|
} & vue.ComponentOptionsBase<{
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
} & {
|
|
type?: string | undefined;
|
|
id?: string | undefined;
|
|
name?: string | undefined;
|
|
color?: string | undefined;
|
|
value?: any;
|
|
label?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
modelValue?: any;
|
|
defaultsTarget?: string | undefined;
|
|
baseColor?: string | undefined;
|
|
trueValue?: any;
|
|
falseValue?: any;
|
|
} & {
|
|
$children?: vue.VNodeChild | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | {
|
|
default?: ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
label?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | ((arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:label"?: false | ((arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNodeChild) | undefined;
|
|
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
inline: boolean;
|
|
error: boolean;
|
|
style: vue.StyleValue;
|
|
disabled: boolean | null;
|
|
multiple: boolean | null;
|
|
readonly: boolean | null;
|
|
density: Density;
|
|
ripple: boolean;
|
|
falseIcon: NonNullable<IconValue>;
|
|
trueIcon: NonNullable<IconValue>;
|
|
valueComparator: typeof deepEqual;
|
|
}, {}, string, vue.SlotsType<Partial<{
|
|
default: (arg: {
|
|
backgroundColorClasses: vue.Ref<string[]>;
|
|
backgroundColorStyles: vue.Ref<vue.CSSProperties>;
|
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
label: (arg: {
|
|
label: string | undefined;
|
|
props: Record<string, unknown>;
|
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
input: (arg: SelectionControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
[key: string]: any;
|
|
}>[];
|
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
theme: StringConstructor;
|
|
density: {
|
|
type: vue.PropType<Density>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
};
|
|
class: vue.PropType<any>;
|
|
style: {
|
|
type: vue.PropType<vue.StyleValue>;
|
|
default: null;
|
|
};
|
|
color: StringConstructor;
|
|
disabled: {
|
|
type: vue.PropType<boolean | null>;
|
|
default: null;
|
|
};
|
|
defaultsTarget: StringConstructor;
|
|
error: BooleanConstructor;
|
|
id: StringConstructor;
|
|
inline: BooleanConstructor;
|
|
falseIcon: {
|
|
type: vue.PropType<NonNullable<IconValue>>;
|
|
default: NonNullable<IconValue>;
|
|
};
|
|
trueIcon: {
|
|
type: vue.PropType<NonNullable<IconValue>>;
|
|
default: NonNullable<IconValue>;
|
|
};
|
|
ripple: {
|
|
type: BooleanConstructor;
|
|
default: boolean;
|
|
};
|
|
multiple: {
|
|
type: vue.PropType<boolean | null>;
|
|
default: null;
|
|
};
|
|
name: StringConstructor;
|
|
readonly: {
|
|
type: vue.PropType<boolean | null>;
|
|
default: null;
|
|
};
|
|
modelValue: null;
|
|
type: StringConstructor;
|
|
valueComparator: {
|
|
type: vue.PropType<typeof deepEqual>;
|
|
default: typeof deepEqual;
|
|
};
|
|
label: StringConstructor;
|
|
baseColor: StringConstructor;
|
|
trueValue: null;
|
|
falseValue: null;
|
|
value: null;
|
|
}, vue.ExtractPropTypes<{
|
|
theme: StringConstructor;
|
|
density: {
|
|
type: vue.PropType<Density>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
};
|
|
class: vue.PropType<any>;
|
|
style: {
|
|
type: vue.PropType<vue.StyleValue>;
|
|
default: null;
|
|
};
|
|
color: StringConstructor;
|
|
disabled: {
|
|
type: vue.PropType<boolean | null>;
|
|
default: null;
|
|
};
|
|
defaultsTarget: StringConstructor;
|
|
error: BooleanConstructor;
|
|
id: StringConstructor;
|
|
inline: BooleanConstructor;
|
|
falseIcon: {
|
|
type: vue.PropType<NonNullable<IconValue>>;
|
|
default: NonNullable<IconValue>;
|
|
};
|
|
trueIcon: {
|
|
type: vue.PropType<NonNullable<IconValue>>;
|
|
default: NonNullable<IconValue>;
|
|
};
|
|
ripple: {
|
|
type: BooleanConstructor;
|
|
default: boolean;
|
|
};
|
|
multiple: {
|
|
type: vue.PropType<boolean | null>;
|
|
default: null;
|
|
};
|
|
name: StringConstructor;
|
|
readonly: {
|
|
type: vue.PropType<boolean | null>;
|
|
default: null;
|
|
};
|
|
modelValue: null;
|
|
type: StringConstructor;
|
|
valueComparator: {
|
|
type: vue.PropType<typeof deepEqual>;
|
|
default: typeof deepEqual;
|
|
};
|
|
label: StringConstructor;
|
|
baseColor: StringConstructor;
|
|
trueValue: null;
|
|
falseValue: null;
|
|
value: null;
|
|
}>>;
|
|
type VRadio = InstanceType<typeof VRadio>;
|
|
|
|
export { VRadio };
|