@nuxt/ui 3.3.2 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue.d.ts +1 -1
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +1 -1
- package/dist/runtime/components/Calendar.vue.d.ts +3 -2
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +1 -1
- package/dist/runtime/components/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +4 -4
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +4 -4
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue.d.ts +1 -1
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.vue +1 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.vue +1 -1
- package/dist/runtime/components/FileUpload.vue.d.ts +5 -6
- package/dist/runtime/components/Form.vue +2 -2
- package/dist/runtime/components/Form.vue.d.ts +7 -7
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue.d.ts +4 -4
- package/dist/runtime/components/InputMenu.vue +1 -1
- package/dist/runtime/components/InputMenu.vue.d.ts +9 -9
- package/dist/runtime/components/InputNumber.vue.d.ts +6 -6
- package/dist/runtime/components/InputTags.vue.d.ts +1 -1
- package/dist/runtime/components/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/Link.vue.d.ts +1 -1
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +1 -1
- package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +6 -6
- package/dist/runtime/components/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/Select.vue.d.ts +9 -9
- package/dist/runtime/components/SelectMenu.vue.d.ts +9 -9
- package/dist/runtime/components/Separator.vue.d.ts +1 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +1 -1
- package/dist/runtime/components/Slider.vue +1 -1
- package/dist/runtime/components/Slider.vue.d.ts +6 -7
- package/dist/runtime/components/Stepper.vue.d.ts +6 -6
- package/dist/runtime/components/Switch.vue.d.ts +4 -4
- package/dist/runtime/components/Table.vue +2 -2
- package/dist/runtime/components/Table.vue.d.ts +1 -1
- package/dist/runtime/components/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/Textarea.vue.d.ts +4 -4
- package/dist/runtime/components/Timeline.vue.d.ts +1 -1
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +1 -1
- package/dist/runtime/components/Tree.vue.d.ts +3 -3
- package/dist/runtime/composables/useFormField.d.ts +2 -1
- package/dist/runtime/composables/useFormField.js +1 -0
- package/dist/runtime/inertia/components/Link.vue +3 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/types/form.d.ts +3 -3
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/utils/index.d.ts +2 -1
- package/dist/runtime/utils/index.js +30 -1
- package/dist/runtime/utils/tv.d.ts +1 -1
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/package.json +17 -19
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -63,7 +63,7 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
|
|
|
63
63
|
declare const _default: <T extends AccordionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
64
64
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
65
65
|
readonly "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
66
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> &
|
|
66
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & {}> & import("vue").PublicProps;
|
|
67
67
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
68
68
|
attrs: any;
|
|
69
69
|
slots: AccordionSlots<T>;
|
|
@@ -66,7 +66,7 @@ export interface AlertSlots {
|
|
|
66
66
|
};
|
|
67
67
|
}): any;
|
|
68
68
|
}
|
|
69
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps,
|
|
69
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
70
|
"update:open": (value: boolean) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
72
72
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -15,7 +15,7 @@ import UOverlayProvider from "./OverlayProvider.vue";
|
|
|
15
15
|
const props = defineProps({
|
|
16
16
|
tooltip: { type: Object, required: false },
|
|
17
17
|
toaster: { type: [Object, null], required: false },
|
|
18
|
-
locale: { type:
|
|
18
|
+
locale: { type: Object, required: false },
|
|
19
19
|
portal: { type: null, required: false, default: "body" },
|
|
20
20
|
scrollBody: { type: [Boolean, Object], required: false },
|
|
21
21
|
nonce: { type: String, required: false }
|
|
@@ -10,7 +10,7 @@ export interface AppSlots {
|
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: <T extends Messages>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> &
|
|
13
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & {}> & import("vue").PublicProps;
|
|
14
14
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: AppSlots;
|
|
@@ -28,7 +28,7 @@ export interface AvatarProps {
|
|
|
28
28
|
export interface AvatarSlots {
|
|
29
29
|
default(props?: {}): any;
|
|
30
30
|
}
|
|
31
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps,
|
|
31
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
32
32
|
as: any;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
34
|
default?: (props: {}) => any;
|
|
@@ -22,7 +22,7 @@ export interface AvatarGroupProps {
|
|
|
22
22
|
export interface AvatarGroupSlots {
|
|
23
23
|
default(props?: {}): any;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps,
|
|
25
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
|
|
26
26
|
export default _default;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
28
|
new (): {
|
|
@@ -32,7 +32,7 @@ export interface BadgeSlots {
|
|
|
32
32
|
default(props?: {}): any;
|
|
33
33
|
trailing(props?: {}): any;
|
|
34
34
|
}
|
|
35
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps,
|
|
35
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
36
36
|
as: any;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
|
|
38
38
|
export default _default;
|
|
@@ -52,7 +52,7 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
|
|
|
52
52
|
active?: boolean;
|
|
53
53
|
}>;
|
|
54
54
|
declare const _default: <T extends BreadcrumbItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
55
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> &
|
|
55
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & {}> & import("vue").PublicProps;
|
|
56
56
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
57
57
|
attrs: any;
|
|
58
58
|
slots: BreadcrumbSlots<T>;
|
|
@@ -35,7 +35,7 @@ export interface ButtonSlots {
|
|
|
35
35
|
default(props?: {}): any;
|
|
36
36
|
trailing(props?: {}): any;
|
|
37
37
|
}
|
|
38
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps,
|
|
38
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
|
|
39
39
|
export default _default;
|
|
40
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
41
|
new (): {
|
|
@@ -23,7 +23,7 @@ export interface ButtonGroupProps {
|
|
|
23
23
|
export interface ButtonGroupSlots {
|
|
24
24
|
default(props?: {}): any;
|
|
25
25
|
}
|
|
26
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps,
|
|
26
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
27
27
|
orientation: ButtonGroup["variants"]["orientation"];
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
|
|
29
29
|
export default _default;
|
|
@@ -54,7 +54,7 @@ const props = defineProps({
|
|
|
54
54
|
disableDaysOutsideCurrentView: { type: Boolean, required: false },
|
|
55
55
|
fixedDate: { type: String, required: false }
|
|
56
56
|
});
|
|
57
|
-
const emits = defineEmits(["update:modelValue", "update:placeholder", "update:startValue"]);
|
|
57
|
+
const emits = defineEmits(["update:modelValue", "update:placeholder", "update:validModelValue", "update:startValue"]);
|
|
58
58
|
defineSlots();
|
|
59
59
|
const { code: locale, dir, t } = useLocale();
|
|
60
60
|
const appConfig = useAppConfig();
|
|
@@ -96,12 +96,13 @@ declare const _default: <R extends boolean, M extends boolean>(__VLS_props: NonN
|
|
|
96
96
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
97
97
|
readonly "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
|
|
98
98
|
readonly "onUpdate:placeholder"?: ((...args: unknown[]) => any) | undefined;
|
|
99
|
+
readonly "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
|
|
99
100
|
readonly "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
100
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:startValue"> & CalendarProps<R, M> &
|
|
101
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:validModelValue" | "onUpdate:startValue"> & CalendarProps<R, M> & {}> & import("vue").PublicProps;
|
|
101
102
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
102
103
|
attrs: any;
|
|
103
104
|
slots: CalendarSlots;
|
|
104
|
-
emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
|
|
105
|
+
emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
|
|
105
106
|
}>) => import("vue").VNode & {
|
|
106
107
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
107
108
|
};
|
|
@@ -20,7 +20,7 @@ export interface CardSlots {
|
|
|
20
20
|
default(props?: {}): any;
|
|
21
21
|
footer(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps,
|
|
23
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
26
|
new (): {
|
|
@@ -26,7 +26,7 @@ const props = defineProps({
|
|
|
26
26
|
autoHeight: { type: [Boolean, Object], required: false, default: false },
|
|
27
27
|
classNames: { type: [Boolean, Object], required: false, default: false },
|
|
28
28
|
fade: { type: [Boolean, Object], required: false, default: false },
|
|
29
|
-
wheelGestures: { type: Boolean, required: false,
|
|
29
|
+
wheelGestures: { type: [Boolean, Object], required: false, default: false },
|
|
30
30
|
class: { type: null, required: false },
|
|
31
31
|
ui: { type: null, required: false },
|
|
32
32
|
align: { type: [String, Function], required: false, default: "center" },
|
|
@@ -110,7 +110,7 @@ export interface CarouselEmits {
|
|
|
110
110
|
declare const _default: <T extends CarouselItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
111
111
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
112
112
|
readonly onSelect?: ((selectedIndex: number) => any) | undefined;
|
|
113
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> &
|
|
113
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> & {}> & import("vue").PublicProps;
|
|
114
114
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
115
115
|
emblaRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
116
116
|
emblaApi: import("vue").Ref<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
|
|
@@ -44,7 +44,7 @@ export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'req
|
|
|
44
44
|
ui?: Checkbox['slots'];
|
|
45
45
|
}
|
|
46
46
|
export type CheckboxEmits = {
|
|
47
|
-
change: [
|
|
47
|
+
change: [event: Event];
|
|
48
48
|
};
|
|
49
49
|
export interface CheckboxSlots {
|
|
50
50
|
label(props: {
|
|
@@ -56,13 +56,13 @@ export interface CheckboxSlots {
|
|
|
56
56
|
}
|
|
57
57
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
58
|
modelValue?: boolean | "indeterminate";
|
|
59
|
-
},
|
|
60
|
-
change: (
|
|
59
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
change: (event: Event) => any;
|
|
61
61
|
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
62
62
|
}, string, import("vue").PublicProps, Readonly<CheckboxProps & {
|
|
63
63
|
modelValue?: boolean | "indeterminate";
|
|
64
64
|
}> & Readonly<{
|
|
65
|
-
onChange?: ((
|
|
65
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
66
66
|
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
67
67
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CheckboxSlots>;
|
|
68
68
|
export default _default;
|
|
@@ -54,7 +54,7 @@ export interface CheckboxGroupProps<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
54
54
|
ui?: CheckboxGroup['slots'] & CheckboxProps['ui'];
|
|
55
55
|
}
|
|
56
56
|
export type CheckboxGroupEmits = CheckboxGroupRootEmits & {
|
|
57
|
-
change: [
|
|
57
|
+
change: [event: Event];
|
|
58
58
|
};
|
|
59
59
|
type SlotProps<T extends CheckboxGroupItem> = (props: {
|
|
60
60
|
item: T & {
|
|
@@ -68,13 +68,13 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
68
68
|
}
|
|
69
69
|
declare const _default: <T extends CheckboxGroupItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
70
70
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
71
|
-
readonly onChange?: ((
|
|
71
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
72
72
|
readonly "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
73
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps<T> &
|
|
73
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps<T> & {}> & import("vue").PublicProps;
|
|
74
74
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
75
75
|
attrs: any;
|
|
76
76
|
slots: CheckboxGroupSlots<T>;
|
|
77
|
-
emit: ((evt: "change",
|
|
77
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void);
|
|
78
78
|
}>) => import("vue").VNode & {
|
|
79
79
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
80
80
|
};
|
|
@@ -31,7 +31,7 @@ export interface ChipProps {
|
|
|
31
31
|
ui?: Chip['slots'];
|
|
32
32
|
}
|
|
33
33
|
export interface ChipEmits {
|
|
34
|
-
'update:show': [
|
|
34
|
+
'update:show': [value: boolean];
|
|
35
35
|
}
|
|
36
36
|
export interface ChipSlots {
|
|
37
37
|
default(props?: {}): any;
|
|
@@ -39,7 +39,7 @@ export interface ChipSlots {
|
|
|
39
39
|
}
|
|
40
40
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
|
|
41
41
|
show?: boolean;
|
|
42
|
-
},
|
|
42
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
43
|
"update:show": (value: boolean) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<ChipProps & {
|
|
45
45
|
show?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface CollapsibleSlots {
|
|
|
20
20
|
}): any;
|
|
21
21
|
content(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps,
|
|
23
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
"update:open": (value: boolean) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
26
26
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -34,7 +34,7 @@ export type ColorPickerProps = {
|
|
|
34
34
|
};
|
|
35
35
|
declare const _default: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
36
|
modelValue?: string;
|
|
37
|
-
},
|
|
37
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
"update:modelValue": (value: string | undefined) => any;
|
|
39
39
|
}, string, import("vue").PublicProps, Readonly<ColorPickerProps & {
|
|
40
40
|
modelValue?: string;
|
|
@@ -175,7 +175,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
|
|
|
175
175
|
readonly onLeave?: ((event: Event) => any) | undefined;
|
|
176
176
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onEntryFocus" | "onLeave"> & (CommandPaletteProps<G, T> & {
|
|
177
177
|
searchTerm?: string;
|
|
178
|
-
}) &
|
|
178
|
+
}) & {}> & import("vue").PublicProps;
|
|
179
179
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
180
180
|
attrs: any;
|
|
181
181
|
slots: CommandPaletteSlots<G, T>;
|
|
@@ -9,7 +9,7 @@ export interface ContainerProps {
|
|
|
9
9
|
export interface ContainerSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
15
|
new (): {
|
|
@@ -22,6 +22,7 @@ const props = defineProps({
|
|
|
22
22
|
disabled: { type: Boolean, required: false },
|
|
23
23
|
class: { type: null, required: false },
|
|
24
24
|
ui: { type: null, required: false },
|
|
25
|
+
pressOpenDelay: { type: Number, required: false },
|
|
25
26
|
modal: { type: Boolean, required: false, default: true }
|
|
26
27
|
});
|
|
27
28
|
const emits = defineEmits(["update:open"]);
|
|
@@ -95,7 +95,7 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
|
|
|
95
95
|
declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
96
96
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
97
97
|
readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
98
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> &
|
|
98
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> & {}> & import("vue").PublicProps;
|
|
99
99
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
100
100
|
attrs: any;
|
|
101
101
|
slots: ContextMenuSlots<T, NestedItem<T>>;
|
|
@@ -35,7 +35,7 @@ declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props:
|
|
|
35
35
|
readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
36
36
|
readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
37
37
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
38
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & ContextMenuContentProps<T> &
|
|
38
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & ContextMenuContentProps<T> & {}> & import("vue").PublicProps;
|
|
39
39
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
40
40
|
attrs: any;
|
|
41
41
|
slots: ContextMenuSlots<T>;
|
|
@@ -53,7 +53,7 @@ export interface DrawerSlots {
|
|
|
53
53
|
body(props?: {}): any;
|
|
54
54
|
footer(props?: {}): any;
|
|
55
55
|
}
|
|
56
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps,
|
|
56
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
57
|
close: () => any;
|
|
58
58
|
drag: (percentageDragged: number) => any;
|
|
59
59
|
"update:open": (open: boolean) => any;
|
|
@@ -105,7 +105,7 @@ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayO
|
|
|
105
105
|
declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
106
106
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
107
107
|
readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
108
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> &
|
|
108
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & {}> & import("vue").PublicProps;
|
|
109
109
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
110
110
|
attrs: any;
|
|
111
111
|
slots: DropdownMenuSlots<T, NestedItem<T>>;
|
|
@@ -41,7 +41,7 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
|
|
|
41
41
|
readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
42
42
|
readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
43
43
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
44
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> &
|
|
44
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & {}> & import("vue").PublicProps;
|
|
45
45
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
46
46
|
attrs: any;
|
|
47
47
|
slots: DropdownMenuContentSlots<T, NestedItem<T>>;
|
|
@@ -40,7 +40,7 @@ const props = defineProps({
|
|
|
40
40
|
class: { type: null, required: false },
|
|
41
41
|
ui: { type: null, required: false }
|
|
42
42
|
});
|
|
43
|
-
const emits = defineEmits(["
|
|
43
|
+
const emits = defineEmits(["change"]);
|
|
44
44
|
const slots = defineSlots();
|
|
45
45
|
const modelValue = defineModel({ type: null });
|
|
46
46
|
const appConfig = useAppConfig();
|
|
@@ -92,9 +92,8 @@ export interface FileUploadProps<M extends boolean = false> {
|
|
|
92
92
|
class?: any;
|
|
93
93
|
ui?: FileUpload['slots'];
|
|
94
94
|
}
|
|
95
|
-
export interface FileUploadEmits
|
|
96
|
-
|
|
97
|
-
'change': [event: Event];
|
|
95
|
+
export interface FileUploadEmits {
|
|
96
|
+
change: [event: Event];
|
|
98
97
|
}
|
|
99
98
|
type FileUploadFiles<M> = (M extends true ? File[] : File) | null;
|
|
100
99
|
export interface FileUploadSlots<M extends boolean = false> {
|
|
@@ -147,17 +146,17 @@ export interface FileUploadSlots<M extends boolean = false> {
|
|
|
147
146
|
declare const _default: <M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
148
147
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
149
148
|
readonly onChange?: ((event: Event) => any) | undefined;
|
|
150
|
-
readonly "onUpdate:modelValue"?: ((
|
|
149
|
+
readonly "onUpdate:modelValue"?: ((value: (M extends true ? File[] : File) | null | undefined) => any) | undefined;
|
|
151
150
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & (FileUploadProps<M> & {
|
|
152
151
|
modelValue?: (M extends true ? File[] : File) | null;
|
|
153
|
-
}) &
|
|
152
|
+
}) & {}> & import("vue").PublicProps;
|
|
154
153
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
155
154
|
inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
156
155
|
dropzoneRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
157
156
|
}>): void;
|
|
158
157
|
attrs: any;
|
|
159
158
|
slots: FileUploadSlots<M>;
|
|
160
|
-
emit: ((
|
|
159
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: (M extends true ? File[] : File) | null | undefined) => void);
|
|
161
160
|
}>) => import("vue").VNode & {
|
|
162
161
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
163
162
|
};
|
|
@@ -6,7 +6,7 @@ import theme from "#build/ui/form";
|
|
|
6
6
|
import { provide, inject, nextTick, ref, onUnmounted, onMounted, computed, useId, readonly, reactive } from "vue";
|
|
7
7
|
import { useEventBus } from "@vueuse/core";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey, formLoadingInjectionKey } from "../composables/useFormField";
|
|
9
|
+
import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey, formLoadingInjectionKey, formErrorsInjectionKey } from "../composables/useFormField";
|
|
10
10
|
import { tv } from "../utils/tv";
|
|
11
11
|
import { validateSchema } from "../utils/form";
|
|
12
12
|
import { FormValidationException } from "../types/form";
|
|
@@ -77,7 +77,7 @@ onUnmounted(() => {
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
const errors = ref([]);
|
|
80
|
-
provide(
|
|
80
|
+
provide(formErrorsInjectionKey, errors);
|
|
81
81
|
const inputs = ref({});
|
|
82
82
|
provide(formInputsInjectionKey, inputs);
|
|
83
83
|
const dirtyFields = reactive(/* @__PURE__ */ new Set());
|
|
@@ -44,24 +44,24 @@ export interface FormProps<S extends FormSchema, T extends boolean = true> {
|
|
|
44
44
|
onSubmit?: ((event: FormSubmitEvent<FormData<S, T>>) => void | Promise<void>) | (() => void | Promise<void>);
|
|
45
45
|
}
|
|
46
46
|
export interface FormEmits<S extends FormSchema, T extends boolean = true> {
|
|
47
|
-
submit: [
|
|
48
|
-
error: [
|
|
47
|
+
submit: [event: FormSubmitEvent<FormData<S, T>>];
|
|
48
|
+
error: [event: FormErrorEvent];
|
|
49
49
|
}
|
|
50
50
|
export interface FormSlots {
|
|
51
|
-
default(props
|
|
51
|
+
default(props: {
|
|
52
52
|
errors: FormError[];
|
|
53
53
|
loading: boolean;
|
|
54
54
|
}): any;
|
|
55
55
|
}
|
|
56
56
|
declare const _default: <S extends FormSchema, T extends boolean = true>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
57
57
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
58
|
-
readonly onError?: ((
|
|
59
|
-
readonly onSubmit?: ((
|
|
60
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onError"> & FormProps<S, T> &
|
|
58
|
+
readonly onError?: ((event: FormErrorEvent) => any) | undefined;
|
|
59
|
+
readonly onSubmit?: ((event: FormSubmitEvent<FormData<S, T>>) => any) | undefined;
|
|
60
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onError"> & FormProps<S, T> & {}> & import("vue").PublicProps;
|
|
61
61
|
expose(exposed: import("vue").ShallowUnwrapRef<Form<S>>): void;
|
|
62
62
|
attrs: any;
|
|
63
63
|
slots: FormSlots;
|
|
64
|
-
emit: ((evt: "error",
|
|
64
|
+
emit: ((evt: "error", event: FormErrorEvent) => void) & ((evt: "submit", event: FormSubmitEvent<FormData<S, T>>) => void);
|
|
65
65
|
}>) => import("vue").VNode & {
|
|
66
66
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
67
67
|
};
|
|
@@ -6,7 +6,7 @@ import theme from "#build/ui/form-field";
|
|
|
6
6
|
import { computed, ref, inject, provide, useId } from "vue";
|
|
7
7
|
import { Primitive, Label } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import { formFieldInjectionKey, inputIdInjectionKey } from "../composables/useFormField";
|
|
9
|
+
import { formFieldInjectionKey, inputIdInjectionKey, formErrorsInjectionKey } from "../composables/useFormField";
|
|
10
10
|
import { tv } from "../utils/tv";
|
|
11
11
|
const props = defineProps({
|
|
12
12
|
as: { type: null, required: false },
|
|
@@ -30,7 +30,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.formField ||
|
|
|
30
30
|
size: props.size,
|
|
31
31
|
required: props.required
|
|
32
32
|
}));
|
|
33
|
-
const formErrors = inject(
|
|
33
|
+
const formErrors = inject(formErrorsInjectionKey, null);
|
|
34
34
|
const error = computed(() => props.error || formErrors?.value?.find((error2) => error2.name && (error2.name === props.name || props.errorPattern && error2.name.match(props.errorPattern)))?.message);
|
|
35
35
|
const id = ref(useId());
|
|
36
36
|
const ariaId = id.value;
|
|
@@ -52,7 +52,7 @@ export interface FormFieldSlots {
|
|
|
52
52
|
error?: boolean | string;
|
|
53
53
|
}): any;
|
|
54
54
|
}
|
|
55
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps,
|
|
55
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FormFieldSlots>;
|
|
56
56
|
export default _default;
|
|
57
57
|
type __VLS_WithSlots<T, S> = T & {
|
|
58
58
|
new (): {
|
|
@@ -4,5 +4,5 @@ export interface IconProps {
|
|
|
4
4
|
size?: string | number;
|
|
5
5
|
customize?: (content: string, name?: string, prefix?: string, provider?: string) => string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<IconProps,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -47,7 +47,7 @@ export interface InputProps<T extends AcceptableValue = AcceptableValue> extends
|
|
|
47
47
|
ui?: Input['slots'];
|
|
48
48
|
}
|
|
49
49
|
export interface InputEmits<T extends AcceptableValue = AcceptableValue> {
|
|
50
|
-
'update:modelValue': [
|
|
50
|
+
'update:modelValue': [value: T];
|
|
51
51
|
'blur': [event: FocusEvent];
|
|
52
52
|
'change': [event: Event];
|
|
53
53
|
}
|
|
@@ -60,14 +60,14 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
60
60
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
61
61
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
62
62
|
readonly onChange?: ((event: Event) => any) | undefined;
|
|
63
|
-
readonly "onUpdate:modelValue"?: ((
|
|
64
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & InputProps<T> &
|
|
63
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
64
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & InputProps<T> & {}> & import("vue").PublicProps;
|
|
65
65
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
66
66
|
inputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
67
67
|
}>): void;
|
|
68
68
|
attrs: any;
|
|
69
69
|
slots: InputSlots;
|
|
70
|
-
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue",
|
|
70
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
71
71
|
}>) => import("vue").VNode & {
|
|
72
72
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
73
73
|
};
|
|
@@ -314,7 +314,7 @@ defineExpose({
|
|
|
314
314
|
</ComboboxAnchor>
|
|
315
315
|
|
|
316
316
|
<ComboboxPortal v-bind="portalProps">
|
|
317
|
-
<ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
|
|
317
|
+
<ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps" @focus-outside.prevent>
|
|
318
318
|
<slot name="content-top" />
|
|
319
319
|
|
|
320
320
|
<ComboboxEmpty :class="ui.empty({ class: props.ui?.empty })">
|
|
@@ -127,9 +127,9 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
|
|
|
127
127
|
ui?: InputMenu['slots'];
|
|
128
128
|
}
|
|
129
129
|
export type InputMenuEmits<A extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
|
|
130
|
-
'change': [
|
|
131
|
-
'blur': [
|
|
132
|
-
'focus': [
|
|
130
|
+
'change': [event: Event];
|
|
131
|
+
'blur': [event: FocusEvent];
|
|
132
|
+
'focus': [event: FocusEvent];
|
|
133
133
|
'create': [item: string];
|
|
134
134
|
/** Event handler when highlighted element changes. */
|
|
135
135
|
'highlight': [
|
|
@@ -176,12 +176,12 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
|
|
|
176
176
|
}
|
|
177
177
|
declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
178
178
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
179
|
-
readonly onBlur?: ((
|
|
180
|
-
readonly onChange?: ((
|
|
181
|
-
readonly onFocus?: ((
|
|
179
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
180
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
181
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
182
182
|
readonly onCreate?: ((item: string) => any) | undefined;
|
|
183
183
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
184
|
-
readonly "onUpdate:modelValue"?: ((
|
|
184
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
185
185
|
readonly onHighlight?: ((payload: {
|
|
186
186
|
ref: HTMLElement;
|
|
187
187
|
value: GetModelValue<T, VK, M>;
|
|
@@ -190,7 +190,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
|
|
|
190
190
|
readonly "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
|
|
191
191
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onCreate" | "onRemove-tag"> & (InputMenuProps<T, VK, M> & {
|
|
192
192
|
searchTerm?: string;
|
|
193
|
-
}) &
|
|
193
|
+
}) & {}> & import("vue").PublicProps;
|
|
194
194
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
195
195
|
inputRef: import("vue").Ref<({
|
|
196
196
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -316,7 +316,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
|
|
|
316
316
|
}>): void;
|
|
317
317
|
attrs: any;
|
|
318
318
|
slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
|
|
319
|
-
emit: (((evt: "blur",
|
|
319
|
+
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
|
|
320
320
|
ref: HTMLElement;
|
|
321
321
|
value: GetModelValue<T, VK, M>;
|
|
322
322
|
} | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);
|