710 lines
34 KiB
TypeScript
710 lines
34 KiB
TypeScript
import { IconValue } from "../../composables/icons.js";
|
|
import type { PropType } from 'vue';
|
|
declare const allowedTypes: readonly ["success", "info", "warning", "error"];
|
|
type ContextualType = typeof allowedTypes[number];
|
|
export declare const makeVAlertProps: <Defaults extends {
|
|
color?: unknown;
|
|
variant?: unknown;
|
|
theme?: unknown;
|
|
tag?: unknown;
|
|
rounded?: unknown;
|
|
tile?: unknown;
|
|
position?: unknown;
|
|
location?: unknown;
|
|
iconSize?: unknown;
|
|
iconSizes?: unknown;
|
|
elevation?: unknown;
|
|
height?: unknown;
|
|
maxHeight?: unknown;
|
|
maxWidth?: unknown;
|
|
minHeight?: unknown;
|
|
minWidth?: unknown;
|
|
width?: unknown;
|
|
density?: unknown;
|
|
class?: unknown;
|
|
style?: unknown;
|
|
border?: unknown;
|
|
borderColor?: unknown;
|
|
closable?: unknown;
|
|
closeIcon?: unknown;
|
|
closeLabel?: unknown;
|
|
icon?: unknown;
|
|
modelValue?: unknown;
|
|
prominent?: unknown;
|
|
title?: unknown;
|
|
text?: unknown;
|
|
type?: unknown;
|
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
color: unknown extends Defaults["color"] ? StringConstructor : {
|
|
type: PropType<unknown extends Defaults["color"] ? string : string | Defaults["color"]>;
|
|
default: unknown extends Defaults["color"] ? string : string | Defaults["color"];
|
|
};
|
|
variant: unknown extends Defaults["variant"] ? Omit<{
|
|
type: PropType<import("../../composables/variant.js").Variant>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
} : Omit<Omit<{
|
|
type: PropType<import("../../composables/variant.js").Variant>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["variant"] ? "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" : "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | Defaults["variant"]>;
|
|
default: unknown extends Defaults["variant"] ? "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" : NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain"> | Defaults["variant"];
|
|
};
|
|
theme: unknown extends Defaults["theme"] ? StringConstructor : {
|
|
type: PropType<unknown extends Defaults["theme"] ? string : string | Defaults["theme"]>;
|
|
default: unknown extends Defaults["theme"] ? string : string | Defaults["theme"];
|
|
};
|
|
tag: unknown extends Defaults["tag"] ? {
|
|
type: PropType<string | import("../../util/index.js").JSXComponent>;
|
|
default: string;
|
|
} : Omit<{
|
|
type: PropType<string | import("../../util/index.js").JSXComponent>;
|
|
default: string;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : string | import("../../util/index.js").JSXComponent | Defaults["tag"]>;
|
|
default: unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : NonNullable<string | import("../../util/index.js").JSXComponent> | Defaults["tag"];
|
|
};
|
|
rounded: unknown extends Defaults["rounded"] ? {
|
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
default: undefined;
|
|
} : Omit<{
|
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
default: undefined;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["rounded"] ? string | number | boolean : string | number | boolean | Defaults["rounded"]>;
|
|
default: unknown extends Defaults["rounded"] ? string | number | boolean : NonNullable<string | number | boolean> | Defaults["rounded"];
|
|
};
|
|
tile: unknown extends Defaults["tile"] ? BooleanConstructor : {
|
|
type: PropType<unknown extends Defaults["tile"] ? boolean : boolean | Defaults["tile"]>;
|
|
default: unknown extends Defaults["tile"] ? boolean : boolean | Defaults["tile"];
|
|
};
|
|
position: unknown extends Defaults["position"] ? {
|
|
type: PropType<"fixed" | "absolute" | "relative" | "static" | "sticky">;
|
|
validator: (v: any) => boolean;
|
|
} : Omit<{
|
|
type: PropType<"fixed" | "absolute" | "relative" | "static" | "sticky">;
|
|
validator: (v: any) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["position"] ? "fixed" | "absolute" | "relative" | "static" | "sticky" : "fixed" | "absolute" | "relative" | "static" | "sticky" | Defaults["position"]>;
|
|
default: unknown extends Defaults["position"] ? "fixed" | "absolute" | "relative" | "static" | "sticky" : NonNullable<"fixed" | "absolute" | "relative" | "static" | "sticky"> | Defaults["position"];
|
|
};
|
|
location: unknown extends Defaults["location"] ? PropType<import("../../util/index.js").Anchor | null> : {
|
|
type: PropType<unknown extends Defaults["location"] ? import("../../util/index.js").Anchor | null : import("../../util/index.js").Anchor | Defaults["location"] | null>;
|
|
default: unknown extends Defaults["location"] ? import("../../util/index.js").Anchor | null : NonNullable<import("../../util/index.js").Anchor | null> | Defaults["location"];
|
|
};
|
|
iconSize: unknown extends Defaults["iconSize"] ? PropType<string | number> : {
|
|
type: PropType<unknown extends Defaults["iconSize"] ? string | number : string | number | Defaults["iconSize"]>;
|
|
default: unknown extends Defaults["iconSize"] ? string | number : NonNullable<string | number> | Defaults["iconSize"];
|
|
};
|
|
iconSizes: unknown extends Defaults["iconSizes"] ? {
|
|
type: PropType<[import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][]>;
|
|
default: () => (string | number)[][];
|
|
} : Omit<{
|
|
type: PropType<[import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][]>;
|
|
default: () => (string | number)[][];
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["iconSizes"] ? [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][] : [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][] | Defaults["iconSizes"]>;
|
|
default: unknown extends Defaults["iconSizes"] ? [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][] : [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][] | Defaults["iconSizes"];
|
|
};
|
|
elevation: unknown extends Defaults["elevation"] ? {
|
|
type: (StringConstructor | NumberConstructor)[];
|
|
validator(v: any): boolean;
|
|
} : Omit<{
|
|
type: (StringConstructor | NumberConstructor)[];
|
|
validator(v: any): boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["elevation"] ? string | number : string | number | Defaults["elevation"]>;
|
|
default: unknown extends Defaults["elevation"] ? string | number : NonNullable<string | number> | Defaults["elevation"];
|
|
};
|
|
height: unknown extends Defaults["height"] ? (StringConstructor | NumberConstructor)[] : {
|
|
type: PropType<unknown extends Defaults["height"] ? string | number : string | number | Defaults["height"]>;
|
|
default: unknown extends Defaults["height"] ? string | number : NonNullable<string | number> | Defaults["height"];
|
|
};
|
|
maxHeight: unknown extends Defaults["maxHeight"] ? (StringConstructor | NumberConstructor)[] : {
|
|
type: PropType<unknown extends Defaults["maxHeight"] ? string | number : string | number | Defaults["maxHeight"]>;
|
|
default: unknown extends Defaults["maxHeight"] ? string | number : NonNullable<string | number> | Defaults["maxHeight"];
|
|
};
|
|
maxWidth: unknown extends Defaults["maxWidth"] ? (StringConstructor | NumberConstructor)[] : {
|
|
type: PropType<unknown extends Defaults["maxWidth"] ? string | number : string | number | Defaults["maxWidth"]>;
|
|
default: unknown extends Defaults["maxWidth"] ? string | number : NonNullable<string | number> | Defaults["maxWidth"];
|
|
};
|
|
minHeight: unknown extends Defaults["minHeight"] ? (StringConstructor | NumberConstructor)[] : {
|
|
type: PropType<unknown extends Defaults["minHeight"] ? string | number : string | number | Defaults["minHeight"]>;
|
|
default: unknown extends Defaults["minHeight"] ? string | number : NonNullable<string | number> | Defaults["minHeight"];
|
|
};
|
|
minWidth: unknown extends Defaults["minWidth"] ? (StringConstructor | NumberConstructor)[] : {
|
|
type: PropType<unknown extends Defaults["minWidth"] ? string | number : string | number | Defaults["minWidth"]>;
|
|
default: unknown extends Defaults["minWidth"] ? string | number : NonNullable<string | number> | Defaults["minWidth"];
|
|
};
|
|
width: unknown extends Defaults["width"] ? (StringConstructor | NumberConstructor)[] : {
|
|
type: PropType<unknown extends Defaults["width"] ? string | number : string | number | Defaults["width"]>;
|
|
default: unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"];
|
|
};
|
|
density: unknown extends Defaults["density"] ? {
|
|
type: PropType<import("../../composables/density.js").Density>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
} : Omit<{
|
|
type: PropType<import("../../composables/density.js").Density>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["density"] ? import("../../composables/density.js").Density : import("../../composables/density.js").Density | Defaults["density"]>;
|
|
default: unknown extends Defaults["density"] ? import("../../composables/density.js").Density : NonNullable<import("../../composables/density.js").Density> | Defaults["density"];
|
|
};
|
|
class: unknown extends Defaults["class"] ? PropType<any> : {
|
|
type: PropType<unknown extends Defaults["class"] ? any : any>;
|
|
default: unknown extends Defaults["class"] ? any : any;
|
|
};
|
|
style: unknown extends Defaults["style"] ? {
|
|
type: PropType<import("vue").StyleValue>;
|
|
default: null;
|
|
} : Omit<{
|
|
type: PropType<import("vue").StyleValue>;
|
|
default: null;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["style"] ? import("vue").StyleValue : import("vue").StyleValue | Defaults["style"]>;
|
|
default: unknown extends Defaults["style"] ? import("vue").StyleValue : NonNullable<import("vue").StyleValue> | Defaults["style"];
|
|
};
|
|
border: unknown extends Defaults["border"] ? {
|
|
type: PropType<boolean | "top" | "end" | "bottom" | "start">;
|
|
validator: (val: boolean | string) => boolean;
|
|
} : Omit<{
|
|
type: PropType<boolean | "top" | "end" | "bottom" | "start">;
|
|
validator: (val: boolean | string) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["border"] ? boolean | "end" | "start" | "top" | "bottom" : boolean | "end" | "start" | "top" | "bottom" | Defaults["border"]>;
|
|
default: unknown extends Defaults["border"] ? boolean | "end" | "start" | "top" | "bottom" : Defaults["border"] | NonNullable<boolean | "end" | "start" | "top" | "bottom">;
|
|
};
|
|
borderColor: unknown extends Defaults["borderColor"] ? StringConstructor : {
|
|
type: PropType<unknown extends Defaults["borderColor"] ? string : string | Defaults["borderColor"]>;
|
|
default: unknown extends Defaults["borderColor"] ? string : string | Defaults["borderColor"];
|
|
};
|
|
closable: unknown extends Defaults["closable"] ? BooleanConstructor : {
|
|
type: PropType<unknown extends Defaults["closable"] ? boolean : boolean | Defaults["closable"]>;
|
|
default: unknown extends Defaults["closable"] ? boolean : boolean | Defaults["closable"];
|
|
};
|
|
closeIcon: unknown extends Defaults["closeIcon"] ? {
|
|
type: PropType<IconValue>;
|
|
default: string;
|
|
} : Omit<{
|
|
type: PropType<IconValue>;
|
|
default: string;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["closeIcon"] ? IconValue : IconValue | Defaults["closeIcon"]>;
|
|
default: unknown extends Defaults["closeIcon"] ? IconValue : NonNullable<IconValue> | Defaults["closeIcon"];
|
|
};
|
|
closeLabel: unknown extends Defaults["closeLabel"] ? {
|
|
type: StringConstructor;
|
|
default: string;
|
|
} : Omit<{
|
|
type: StringConstructor;
|
|
default: string;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["closeLabel"] ? string : string | Defaults["closeLabel"]>;
|
|
default: unknown extends Defaults["closeLabel"] ? string : string | Defaults["closeLabel"];
|
|
};
|
|
icon: unknown extends Defaults["icon"] ? {
|
|
type: PropType<false | IconValue>;
|
|
default: null;
|
|
} : Omit<{
|
|
type: PropType<false | IconValue>;
|
|
default: null;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["icon"] ? false | IconValue : false | IconValue | Defaults["icon"]>;
|
|
default: unknown extends Defaults["icon"] ? false | IconValue : Defaults["icon"] | NonNullable<false | IconValue>;
|
|
};
|
|
modelValue: unknown extends Defaults["modelValue"] ? {
|
|
type: BooleanConstructor;
|
|
default: boolean;
|
|
} : Omit<{
|
|
type: BooleanConstructor;
|
|
default: boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["modelValue"] ? boolean : boolean | Defaults["modelValue"]>;
|
|
default: unknown extends Defaults["modelValue"] ? boolean : boolean | Defaults["modelValue"];
|
|
};
|
|
prominent: unknown extends Defaults["prominent"] ? BooleanConstructor : {
|
|
type: PropType<unknown extends Defaults["prominent"] ? boolean : boolean | Defaults["prominent"]>;
|
|
default: unknown extends Defaults["prominent"] ? boolean : boolean | Defaults["prominent"];
|
|
};
|
|
title: unknown extends Defaults["title"] ? StringConstructor : {
|
|
type: PropType<unknown extends Defaults["title"] ? string : string | Defaults["title"]>;
|
|
default: unknown extends Defaults["title"] ? string : string | Defaults["title"];
|
|
};
|
|
text: unknown extends Defaults["text"] ? StringConstructor : {
|
|
type: PropType<unknown extends Defaults["text"] ? string : string | Defaults["text"]>;
|
|
default: unknown extends Defaults["text"] ? string : string | Defaults["text"];
|
|
};
|
|
type: unknown extends Defaults["type"] ? {
|
|
type: PropType<ContextualType>;
|
|
validator: (val: ContextualType) => boolean;
|
|
} : Omit<{
|
|
type: PropType<ContextualType>;
|
|
validator: (val: ContextualType) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<unknown extends Defaults["type"] ? "error" | "success" | "warning" | "info" : "error" | "success" | "warning" | "info" | Defaults["type"]>;
|
|
default: unknown extends Defaults["type"] ? "error" | "success" | "warning" | "info" : Defaults["type"] | NonNullable<"error" | "success" | "warning" | "info">;
|
|
};
|
|
};
|
|
export type VAlertSlots = {
|
|
default: never;
|
|
prepend: never;
|
|
title: never;
|
|
text: never;
|
|
append: never;
|
|
close: {
|
|
props: Record<string, any>;
|
|
};
|
|
};
|
|
export declare const VAlert: {
|
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
|
|
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
style: import("vue").StyleValue;
|
|
tag: string | import("../../util/index.js").JSXComponent;
|
|
icon: false | IconValue;
|
|
modelValue: boolean;
|
|
density: import("../../composables/density.js").Density;
|
|
tile: boolean;
|
|
closable: boolean;
|
|
prominent: boolean;
|
|
iconSizes: [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][];
|
|
closeIcon: IconValue;
|
|
closeLabel: string;
|
|
} & {
|
|
type?: "error" | "success" | "warning" | "info" | undefined;
|
|
location?: import("../../util/index.js").Anchor | null | undefined;
|
|
height?: string | number | undefined;
|
|
width?: string | number | undefined;
|
|
border?: boolean | "end" | "start" | "top" | "bottom" | undefined;
|
|
borderColor?: string | undefined;
|
|
color?: string | undefined;
|
|
maxHeight?: string | number | undefined;
|
|
maxWidth?: string | number | undefined;
|
|
minHeight?: string | number | undefined;
|
|
minWidth?: string | number | undefined;
|
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
title?: string | undefined;
|
|
text?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
elevation?: string | number | undefined;
|
|
rounded?: string | number | boolean | undefined;
|
|
iconSize?: string | number | undefined;
|
|
} & {
|
|
$children?: import("vue").VNodeChild | {
|
|
$stable?: boolean;
|
|
} | (() => import("vue").VNodeChild) | {
|
|
default?: (() => import("vue").VNodeChild) | undefined;
|
|
prepend?: (() => import("vue").VNodeChild) | undefined;
|
|
title?: (() => import("vue").VNodeChild) | undefined;
|
|
text?: (() => import("vue").VNodeChild) | undefined;
|
|
append?: (() => import("vue").VNodeChild) | undefined;
|
|
close?: ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => import("vue").VNodeChild) | undefined;
|
|
prepend?: false | (() => import("vue").VNodeChild) | undefined;
|
|
title?: false | (() => import("vue").VNodeChild) | undefined;
|
|
text?: false | (() => import("vue").VNodeChild) | undefined;
|
|
append?: false | (() => import("vue").VNodeChild) | undefined;
|
|
close?: false | ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:prepend"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:title"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:text"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:append"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:close"?: false | ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
} & {
|
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
"onClick:close"?: ((e: MouseEvent) => any) | undefined;
|
|
}, () => false | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
'click:close': (e: MouseEvent) => true;
|
|
'update:modelValue': (value: boolean) => true;
|
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
style: import("vue").StyleValue;
|
|
tag: string | import("../../util/index.js").JSXComponent;
|
|
icon: false | IconValue;
|
|
modelValue: boolean;
|
|
density: import("../../composables/density.js").Density;
|
|
rounded: string | number | boolean;
|
|
tile: boolean;
|
|
closable: boolean;
|
|
prominent: boolean;
|
|
iconSizes: [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][];
|
|
closeIcon: IconValue;
|
|
closeLabel: string;
|
|
}, true, {}, import("vue").SlotsType<Partial<{
|
|
default: () => import("vue").VNode[];
|
|
prepend: () => import("vue").VNode[];
|
|
title: () => import("vue").VNode[];
|
|
text: () => import("vue").VNode[];
|
|
append: () => import("vue").VNode[];
|
|
close: (arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNode[];
|
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
P: {};
|
|
B: {};
|
|
D: {};
|
|
C: {};
|
|
M: {};
|
|
Defaults: {};
|
|
}, {
|
|
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
style: import("vue").StyleValue;
|
|
tag: string | import("../../util/index.js").JSXComponent;
|
|
icon: false | IconValue;
|
|
modelValue: boolean;
|
|
density: import("../../composables/density.js").Density;
|
|
tile: boolean;
|
|
closable: boolean;
|
|
prominent: boolean;
|
|
iconSizes: [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][];
|
|
closeIcon: IconValue;
|
|
closeLabel: string;
|
|
} & {
|
|
type?: "error" | "success" | "warning" | "info" | undefined;
|
|
location?: import("../../util/index.js").Anchor | null | undefined;
|
|
height?: string | number | undefined;
|
|
width?: string | number | undefined;
|
|
border?: boolean | "end" | "start" | "top" | "bottom" | undefined;
|
|
borderColor?: string | undefined;
|
|
color?: string | undefined;
|
|
maxHeight?: string | number | undefined;
|
|
maxWidth?: string | number | undefined;
|
|
minHeight?: string | number | undefined;
|
|
minWidth?: string | number | undefined;
|
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
title?: string | undefined;
|
|
text?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
elevation?: string | number | undefined;
|
|
rounded?: string | number | boolean | undefined;
|
|
iconSize?: string | number | undefined;
|
|
} & {
|
|
$children?: import("vue").VNodeChild | {
|
|
$stable?: boolean;
|
|
} | (() => import("vue").VNodeChild) | {
|
|
default?: (() => import("vue").VNodeChild) | undefined;
|
|
prepend?: (() => import("vue").VNodeChild) | undefined;
|
|
title?: (() => import("vue").VNodeChild) | undefined;
|
|
text?: (() => import("vue").VNodeChild) | undefined;
|
|
append?: (() => import("vue").VNodeChild) | undefined;
|
|
close?: ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => import("vue").VNodeChild) | undefined;
|
|
prepend?: false | (() => import("vue").VNodeChild) | undefined;
|
|
title?: false | (() => import("vue").VNodeChild) | undefined;
|
|
text?: false | (() => import("vue").VNodeChild) | undefined;
|
|
append?: false | (() => import("vue").VNodeChild) | undefined;
|
|
close?: false | ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:prepend"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:title"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:text"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:append"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:close"?: false | ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
} & {
|
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
"onClick:close"?: ((e: MouseEvent) => any) | undefined;
|
|
}, () => false | JSX.Element, {}, {}, {}, {
|
|
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
style: import("vue").StyleValue;
|
|
tag: string | import("../../util/index.js").JSXComponent;
|
|
icon: false | IconValue;
|
|
modelValue: boolean;
|
|
density: import("../../composables/density.js").Density;
|
|
rounded: string | number | boolean;
|
|
tile: boolean;
|
|
closable: boolean;
|
|
prominent: boolean;
|
|
iconSizes: [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][];
|
|
closeIcon: IconValue;
|
|
closeLabel: string;
|
|
}>;
|
|
__isFragment?: never;
|
|
__isTeleport?: never;
|
|
__isSuspense?: never;
|
|
} & import("vue").ComponentOptionsBase<{
|
|
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
style: import("vue").StyleValue;
|
|
tag: string | import("../../util/index.js").JSXComponent;
|
|
icon: false | IconValue;
|
|
modelValue: boolean;
|
|
density: import("../../composables/density.js").Density;
|
|
tile: boolean;
|
|
closable: boolean;
|
|
prominent: boolean;
|
|
iconSizes: [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][];
|
|
closeIcon: IconValue;
|
|
closeLabel: string;
|
|
} & {
|
|
type?: "error" | "success" | "warning" | "info" | undefined;
|
|
location?: import("../../util/index.js").Anchor | null | undefined;
|
|
height?: string | number | undefined;
|
|
width?: string | number | undefined;
|
|
border?: boolean | "end" | "start" | "top" | "bottom" | undefined;
|
|
borderColor?: string | undefined;
|
|
color?: string | undefined;
|
|
maxHeight?: string | number | undefined;
|
|
maxWidth?: string | number | undefined;
|
|
minHeight?: string | number | undefined;
|
|
minWidth?: string | number | undefined;
|
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
title?: string | undefined;
|
|
text?: string | undefined;
|
|
class?: any;
|
|
theme?: string | undefined;
|
|
elevation?: string | number | undefined;
|
|
rounded?: string | number | boolean | undefined;
|
|
iconSize?: string | number | undefined;
|
|
} & {
|
|
$children?: import("vue").VNodeChild | {
|
|
$stable?: boolean;
|
|
} | (() => import("vue").VNodeChild) | {
|
|
default?: (() => import("vue").VNodeChild) | undefined;
|
|
prepend?: (() => import("vue").VNodeChild) | undefined;
|
|
title?: (() => import("vue").VNodeChild) | undefined;
|
|
text?: (() => import("vue").VNodeChild) | undefined;
|
|
append?: (() => import("vue").VNodeChild) | undefined;
|
|
close?: ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
};
|
|
'v-slots'?: {
|
|
default?: false | (() => import("vue").VNodeChild) | undefined;
|
|
prepend?: false | (() => import("vue").VNodeChild) | undefined;
|
|
title?: false | (() => import("vue").VNodeChild) | undefined;
|
|
text?: false | (() => import("vue").VNodeChild) | undefined;
|
|
append?: false | (() => import("vue").VNodeChild) | undefined;
|
|
close?: false | ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
} | undefined;
|
|
} & {
|
|
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:prepend"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:title"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:text"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:append"?: false | (() => import("vue").VNodeChild) | undefined;
|
|
"v-slot:close"?: false | ((arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNodeChild) | undefined;
|
|
} & {
|
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
"onClick:close"?: ((e: MouseEvent) => any) | undefined;
|
|
}, () => false | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
'click:close': (e: MouseEvent) => true;
|
|
'update:modelValue': (value: boolean) => true;
|
|
}, string, {
|
|
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
style: import("vue").StyleValue;
|
|
tag: string | import("../../util/index.js").JSXComponent;
|
|
icon: false | IconValue;
|
|
modelValue: boolean;
|
|
density: import("../../composables/density.js").Density;
|
|
rounded: string | number | boolean;
|
|
tile: boolean;
|
|
closable: boolean;
|
|
prominent: boolean;
|
|
iconSizes: [import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][];
|
|
closeIcon: IconValue;
|
|
closeLabel: string;
|
|
}, {}, string, import("vue").SlotsType<Partial<{
|
|
default: () => import("vue").VNode[];
|
|
prepend: () => import("vue").VNode[];
|
|
title: () => import("vue").VNode[];
|
|
text: () => import("vue").VNode[];
|
|
append: () => import("vue").VNode[];
|
|
close: (arg: {
|
|
props: Record<string, any>;
|
|
}) => import("vue").VNode[];
|
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
|
|
color: StringConstructor;
|
|
variant: Omit<{
|
|
type: PropType<import("../../composables/variant.js").Variant>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
};
|
|
theme: StringConstructor;
|
|
tag: {
|
|
type: PropType<string | import("../../util/index.js").JSXComponent>;
|
|
default: string;
|
|
};
|
|
rounded: {
|
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
default: undefined;
|
|
};
|
|
tile: BooleanConstructor;
|
|
position: {
|
|
type: PropType<"fixed" | "absolute" | "relative" | "static" | "sticky">;
|
|
validator: (v: any) => boolean;
|
|
};
|
|
location: PropType<import("../../util/index.js").Anchor | null>;
|
|
iconSize: PropType<import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes | number | string>;
|
|
iconSizes: {
|
|
type: PropType<[import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][]>;
|
|
default: () => (string | number)[][];
|
|
};
|
|
elevation: {
|
|
type: (StringConstructor | NumberConstructor)[];
|
|
validator(v: any): boolean;
|
|
};
|
|
height: (StringConstructor | NumberConstructor)[];
|
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
maxWidth: (StringConstructor | NumberConstructor)[];
|
|
minHeight: (StringConstructor | NumberConstructor)[];
|
|
minWidth: (StringConstructor | NumberConstructor)[];
|
|
width: (StringConstructor | NumberConstructor)[];
|
|
density: {
|
|
type: PropType<import("../../composables/density.js").Density>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
};
|
|
class: PropType<import("../../composables/component.js").ClassValue>;
|
|
style: {
|
|
type: PropType<import("vue").StyleValue>;
|
|
default: null;
|
|
};
|
|
border: {
|
|
type: PropType<boolean | "top" | "end" | "bottom" | "start">;
|
|
validator: (val: boolean | string) => boolean;
|
|
};
|
|
borderColor: StringConstructor;
|
|
closable: BooleanConstructor;
|
|
closeIcon: {
|
|
type: PropType<IconValue>;
|
|
default: string;
|
|
};
|
|
closeLabel: {
|
|
type: StringConstructor;
|
|
default: string;
|
|
};
|
|
icon: {
|
|
type: PropType<false | IconValue>;
|
|
default: null;
|
|
};
|
|
modelValue: {
|
|
type: BooleanConstructor;
|
|
default: boolean;
|
|
};
|
|
prominent: BooleanConstructor;
|
|
title: StringConstructor;
|
|
text: StringConstructor;
|
|
type: {
|
|
type: PropType<ContextualType>;
|
|
validator: (val: ContextualType) => boolean;
|
|
};
|
|
}, import("vue").ExtractPropTypes<{
|
|
color: StringConstructor;
|
|
variant: Omit<{
|
|
type: PropType<import("../../composables/variant.js").Variant>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
}, "type" | "default"> & {
|
|
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
default: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
};
|
|
theme: StringConstructor;
|
|
tag: {
|
|
type: PropType<string | import("../../util/index.js").JSXComponent>;
|
|
default: string;
|
|
};
|
|
rounded: {
|
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
default: undefined;
|
|
};
|
|
tile: BooleanConstructor;
|
|
position: {
|
|
type: PropType<"fixed" | "absolute" | "relative" | "static" | "sticky">;
|
|
validator: (v: any) => boolean;
|
|
};
|
|
location: PropType<import("../../util/index.js").Anchor | null>;
|
|
iconSize: PropType<import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes | number | string>;
|
|
iconSizes: {
|
|
type: PropType<[import("../../labs/VIconBtn/VIconBtn.js").VIconBtnSizes, number][]>;
|
|
default: () => (string | number)[][];
|
|
};
|
|
elevation: {
|
|
type: (StringConstructor | NumberConstructor)[];
|
|
validator(v: any): boolean;
|
|
};
|
|
height: (StringConstructor | NumberConstructor)[];
|
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
maxWidth: (StringConstructor | NumberConstructor)[];
|
|
minHeight: (StringConstructor | NumberConstructor)[];
|
|
minWidth: (StringConstructor | NumberConstructor)[];
|
|
width: (StringConstructor | NumberConstructor)[];
|
|
density: {
|
|
type: PropType<import("../../composables/density.js").Density>;
|
|
default: string;
|
|
validator: (v: any) => boolean;
|
|
};
|
|
class: PropType<import("../../composables/component.js").ClassValue>;
|
|
style: {
|
|
type: PropType<import("vue").StyleValue>;
|
|
default: null;
|
|
};
|
|
border: {
|
|
type: PropType<boolean | "top" | "end" | "bottom" | "start">;
|
|
validator: (val: boolean | string) => boolean;
|
|
};
|
|
borderColor: StringConstructor;
|
|
closable: BooleanConstructor;
|
|
closeIcon: {
|
|
type: PropType<IconValue>;
|
|
default: string;
|
|
};
|
|
closeLabel: {
|
|
type: StringConstructor;
|
|
default: string;
|
|
};
|
|
icon: {
|
|
type: PropType<false | IconValue>;
|
|
default: null;
|
|
};
|
|
modelValue: {
|
|
type: BooleanConstructor;
|
|
default: boolean;
|
|
};
|
|
prominent: BooleanConstructor;
|
|
title: StringConstructor;
|
|
text: StringConstructor;
|
|
type: {
|
|
type: PropType<ContextualType>;
|
|
validator: (val: ContextualType) => boolean;
|
|
};
|
|
}>>;
|
|
export type VAlert = InstanceType<typeof VAlert>;
|
|
|