@nuxt/ui 3.3.1 → 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 +20 -22
|
@@ -59,9 +59,9 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
59
59
|
ui?: InputNumber['slots'];
|
|
60
60
|
}
|
|
61
61
|
export interface InputNumberEmits {
|
|
62
|
-
'update:modelValue': [
|
|
62
|
+
'update:modelValue': [value: number];
|
|
63
63
|
'blur': [event: FocusEvent];
|
|
64
|
-
'change': [
|
|
64
|
+
'change': [event: Event];
|
|
65
65
|
}
|
|
66
66
|
export interface InputNumberSlots {
|
|
67
67
|
increment(props?: {}): any;
|
|
@@ -169,12 +169,12 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
|
|
|
169
169
|
}) | null>;
|
|
170
170
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
171
171
|
blur: (event: FocusEvent) => any;
|
|
172
|
-
change: (
|
|
173
|
-
"update:modelValue": (
|
|
172
|
+
change: (event: Event) => any;
|
|
173
|
+
"update:modelValue": (value: number) => any;
|
|
174
174
|
}, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
|
|
175
175
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
176
|
-
onChange?: ((
|
|
177
|
-
"onUpdate:modelValue"?: ((
|
|
176
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
177
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
178
178
|
}>, {
|
|
179
179
|
orientation: "vertical" | "horizontal";
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
|
|
@@ -65,7 +65,7 @@ declare const _default: <T extends InputTagItem>(__VLS_props: NonNullable<Awaite
|
|
|
65
65
|
readonly "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
|
|
66
66
|
readonly onAddTag?: ((payload: T) => any) | undefined;
|
|
67
67
|
readonly onRemoveTag?: ((payload: T) => any) | undefined;
|
|
68
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInvalid" | "onUpdate:modelValue" | "onRemoveTag" | "onAddTag"> & InputTagsProps<T> &
|
|
68
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInvalid" | "onUpdate:modelValue" | "onRemoveTag" | "onAddTag"> & InputTagsProps<T> & {}> & import("vue").PublicProps;
|
|
69
69
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
70
70
|
inputRef: import("vue").Ref<({
|
|
71
71
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -27,7 +27,7 @@ export interface KbdProps {
|
|
|
27
27
|
export interface KbdSlots {
|
|
28
28
|
default(props?: {}): any;
|
|
29
29
|
}
|
|
30
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps,
|
|
30
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
|
|
31
31
|
as: any;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
|
|
33
33
|
export default _default;
|
|
@@ -77,7 +77,7 @@ export interface LinkSlots {
|
|
|
77
77
|
active: boolean;
|
|
78
78
|
}): any;
|
|
79
79
|
}
|
|
80
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
80
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
81
81
|
type: "reset" | "submit" | "button";
|
|
82
82
|
as: any;
|
|
83
83
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
@@ -11,7 +11,7 @@ export interface LinkBaseProps {
|
|
|
11
11
|
active?: boolean;
|
|
12
12
|
isExternal?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps,
|
|
14
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
15
15
|
type: string;
|
|
16
16
|
as: string;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -80,7 +80,7 @@ export interface ModalSlots {
|
|
|
80
80
|
close: () => void;
|
|
81
81
|
}): any;
|
|
82
82
|
}
|
|
83
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps,
|
|
83
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
84
|
"update:open": (value: boolean) => any;
|
|
85
85
|
"after:leave": () => any;
|
|
86
86
|
"after:enter": () => any;
|
|
@@ -156,7 +156,7 @@ export type NavigationMenuSlots<A extends ArrayOrNested<NavigationMenuItem> = Ar
|
|
|
156
156
|
declare const _default: <T extends ArrayOrNested<NavigationMenuItem>>(__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<{
|
|
157
157
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
158
158
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
159
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NavigationMenuProps<T> &
|
|
159
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NavigationMenuProps<T> & {}> & import("vue").PublicProps;
|
|
160
160
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
161
161
|
attrs: any;
|
|
162
162
|
slots: NavigationMenuSlots<T, NestedItem<T>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -95,7 +95,7 @@ export interface PaginationSlots {
|
|
|
95
95
|
index: number;
|
|
96
96
|
}): any;
|
|
97
97
|
}
|
|
98
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps,
|
|
98
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
99
99
|
"update:page": (value: number) => any;
|
|
100
100
|
}, string, import("vue").PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
101
101
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
@@ -35,22 +35,22 @@ export interface PinInputProps<T extends PinInputType = 'text'> extends Pick<Pin
|
|
|
35
35
|
ui?: PinInput['slots'];
|
|
36
36
|
}
|
|
37
37
|
export type PinInputEmits<T extends PinInputType = 'text'> = PinInputRootEmits<T> & {
|
|
38
|
-
change: [
|
|
39
|
-
blur: [
|
|
38
|
+
change: [event: Event];
|
|
39
|
+
blur: [event: Event];
|
|
40
40
|
};
|
|
41
41
|
declare const _default: <T extends PinInputType>(__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<{
|
|
42
42
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
43
|
-
readonly onBlur?: ((
|
|
43
|
+
readonly onBlur?: ((event: Event) => any) | undefined;
|
|
44
44
|
readonly onComplete?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
|
|
45
|
-
readonly onChange?: ((
|
|
45
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
46
46
|
readonly "onUpdate:modelValue"?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
|
|
47
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue" | "onComplete"> & PinInputProps<T> &
|
|
47
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue" | "onComplete"> & PinInputProps<T> & {}> & import("vue").PublicProps;
|
|
48
48
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
49
49
|
inputsRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
50
50
|
}>): void;
|
|
51
51
|
attrs: any;
|
|
52
52
|
slots: {};
|
|
53
|
-
emit: ((evt: "blur",
|
|
53
|
+
emit: ((evt: "blur", event: Event) => void) & ((evt: "complete", value: [T] extends ["number"] ? number[] : string[]) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: [T] extends ["number"] ? number[] : string[]) => void);
|
|
54
54
|
}>) => import("vue").VNode & {
|
|
55
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
56
|
};
|
|
@@ -49,7 +49,7 @@ export interface PopoverSlots {
|
|
|
49
49
|
content(props?: {}): any;
|
|
50
50
|
anchor(props?: {}): any;
|
|
51
51
|
}
|
|
52
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PopoverProps,
|
|
52
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
53
|
"update:open": (value: boolean) => any;
|
|
54
54
|
"close:prevent": () => any;
|
|
55
55
|
}, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
@@ -47,7 +47,7 @@ export type ProgressSlots = {
|
|
|
47
47
|
step: number;
|
|
48
48
|
}) => any;
|
|
49
49
|
};
|
|
50
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps,
|
|
50
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
51
|
"update:modelValue": (value: string[] | undefined) => any;
|
|
52
52
|
"update:max": (value: number) => any;
|
|
53
53
|
}, string, import("vue").PublicProps, Readonly<ProgressProps> & Readonly<{
|
|
@@ -62,7 +62,7 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
|
|
|
62
62
|
ui?: RadioGroup['slots'];
|
|
63
63
|
}
|
|
64
64
|
export type RadioGroupEmits = RadioGroupRootEmits & {
|
|
65
|
-
change: [
|
|
65
|
+
change: [event: Event];
|
|
66
66
|
};
|
|
67
67
|
type NormalizeItem<T extends RadioGroupItem> = Exclude<T & {
|
|
68
68
|
id: string;
|
|
@@ -78,13 +78,13 @@ export interface RadioGroupSlots<T extends RadioGroupItem = RadioGroupItem> {
|
|
|
78
78
|
}
|
|
79
79
|
declare const _default: <T extends RadioGroupItem>(__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<{
|
|
80
80
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
81
|
-
readonly onChange?: ((
|
|
81
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
82
82
|
readonly "onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
83
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & RadioGroupProps<T> &
|
|
83
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & RadioGroupProps<T> & {}> & import("vue").PublicProps;
|
|
84
84
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
85
85
|
attrs: any;
|
|
86
86
|
slots: RadioGroupSlots<T>;
|
|
87
|
-
emit: ((evt: "change",
|
|
87
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: string) => void);
|
|
88
88
|
}>) => import("vue").VNode & {
|
|
89
89
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
90
90
|
};
|
|
@@ -94,9 +94,9 @@ export interface SelectProps<T extends ArrayOrNested<SelectItem> = ArrayOrNested
|
|
|
94
94
|
ui?: Select['slots'];
|
|
95
95
|
}
|
|
96
96
|
export type SelectEmits<A extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Omit<SelectRootEmits, 'update:modelValue'> & {
|
|
97
|
-
change: [
|
|
98
|
-
blur: [
|
|
99
|
-
focus: [
|
|
97
|
+
change: [event: Event];
|
|
98
|
+
blur: [event: FocusEvent];
|
|
99
|
+
focus: [event: FocusEvent];
|
|
100
100
|
} & GetModelValueEmits<A, VK, M>;
|
|
101
101
|
type SlotProps<T extends SelectItem> = (props: {
|
|
102
102
|
item: T;
|
|
@@ -130,12 +130,12 @@ export interface SelectSlots<A extends ArrayOrNested<SelectItem> = ArrayOrNested
|
|
|
130
130
|
}
|
|
131
131
|
declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItemKeys<T> = "value", 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<{
|
|
132
132
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
133
|
-
readonly onBlur?: ((
|
|
134
|
-
readonly onChange?: ((
|
|
135
|
-
readonly onFocus?: ((
|
|
133
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
134
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
135
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
136
136
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
137
|
-
readonly "onUpdate:modelValue"?: ((
|
|
138
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue"> & SelectProps<T, VK, M> &
|
|
137
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
138
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue"> & SelectProps<T, VK, M> & {}> & import("vue").PublicProps;
|
|
139
139
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
140
140
|
triggerRef: import("vue").Ref<({
|
|
141
141
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -243,7 +243,7 @@ declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItem
|
|
|
243
243
|
}>): void;
|
|
244
244
|
attrs: any;
|
|
245
245
|
slots: SelectSlots<T, VK, M, NestedItem<T>>;
|
|
246
|
-
emit: ((evt: "blur",
|
|
246
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void);
|
|
247
247
|
}>) => import("vue").VNode & {
|
|
248
248
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
249
249
|
};
|
|
@@ -120,9 +120,9 @@ export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = Array
|
|
|
120
120
|
ui?: SelectMenu['slots'];
|
|
121
121
|
}
|
|
122
122
|
export type SelectMenuEmits<A extends ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
|
|
123
|
-
change: [
|
|
124
|
-
blur: [
|
|
125
|
-
focus: [
|
|
123
|
+
change: [event: Event];
|
|
124
|
+
blur: [event: FocusEvent];
|
|
125
|
+
focus: [event: FocusEvent];
|
|
126
126
|
create: [item: string];
|
|
127
127
|
/** Event handler when highlighted element changes. */
|
|
128
128
|
highlight: [
|
|
@@ -170,12 +170,12 @@ export interface SelectMenuSlots<A extends ArrayOrNested<SelectMenuItem> = Array
|
|
|
170
170
|
}
|
|
171
171
|
declare const _default: <T extends ArrayOrNested<SelectMenuItem>, 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<{
|
|
172
172
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
173
|
-
readonly onBlur?: ((
|
|
174
|
-
readonly onChange?: ((
|
|
175
|
-
readonly onFocus?: ((
|
|
173
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
174
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
175
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
176
176
|
readonly onCreate?: ((item: string) => any) | undefined;
|
|
177
177
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
178
|
-
readonly "onUpdate:modelValue"?: ((
|
|
178
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
179
179
|
readonly onHighlight?: ((payload: {
|
|
180
180
|
ref: HTMLElement;
|
|
181
181
|
value: GetModelValue<T, VK, M>;
|
|
@@ -183,7 +183,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
|
|
|
183
183
|
readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
184
184
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onCreate"> & (SelectMenuProps<T, VK, M> & {
|
|
185
185
|
searchTerm?: string;
|
|
186
|
-
}) &
|
|
186
|
+
}) & {}> & import("vue").PublicProps;
|
|
187
187
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
188
188
|
triggerRef: import("vue").Ref<({
|
|
189
189
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -289,7 +289,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
|
|
|
289
289
|
}>): void;
|
|
290
290
|
attrs: any;
|
|
291
291
|
slots: SelectMenuSlots<T, VK, M, NestedItem<T>>;
|
|
292
|
-
emit: (((evt: "blur",
|
|
292
|
+
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: {
|
|
293
293
|
ref: HTMLElement;
|
|
294
294
|
value: GetModelValue<T, VK, M>;
|
|
295
295
|
} | undefined) => void)) & ((evt: "update:searchTerm", value: string) => void);
|
|
@@ -43,7 +43,7 @@ export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
|
|
|
43
43
|
export interface SeparatorSlots {
|
|
44
44
|
default(props?: {}): any;
|
|
45
45
|
}
|
|
46
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps,
|
|
46
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
|
|
47
47
|
orientation: "horizontal" | "vertical";
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
|
|
49
49
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export interface SkeletonProps {
|
|
|
6
6
|
as?: any;
|
|
7
7
|
class?: any;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps,
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
10
|
default?: (props: {}) => any;
|
|
11
11
|
}>;
|
|
12
12
|
export default _default;
|
|
@@ -80,7 +80,7 @@ export interface SlideoverSlots {
|
|
|
80
80
|
close: () => void;
|
|
81
81
|
}): any;
|
|
82
82
|
}
|
|
83
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps,
|
|
83
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
84
|
"update:open": (value: boolean) => any;
|
|
85
85
|
"after:leave": () => any;
|
|
86
86
|
"after:enter": () => any;
|
|
@@ -27,7 +27,7 @@ const props = defineProps({
|
|
|
27
27
|
step: { type: Number, required: false, default: 1 },
|
|
28
28
|
minStepsBetweenThumbs: { type: Number, required: false }
|
|
29
29
|
});
|
|
30
|
-
const emits = defineEmits(["
|
|
30
|
+
const emits = defineEmits(["change"]);
|
|
31
31
|
const modelValue = defineModel({ type: null });
|
|
32
32
|
const appConfig = useAppConfig();
|
|
33
33
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "orientation", "min", "max", "step", "minStepsBetweenThumbs", "inverted"), emits);
|
|
@@ -34,21 +34,20 @@ export interface SliderProps extends Pick<SliderRootProps, 'name' | 'disabled' |
|
|
|
34
34
|
class?: any;
|
|
35
35
|
ui?: Slider['slots'];
|
|
36
36
|
}
|
|
37
|
-
export interface SliderEmits
|
|
38
|
-
|
|
39
|
-
'change': [payload: Event];
|
|
37
|
+
export interface SliderEmits {
|
|
38
|
+
change: [event: Event];
|
|
40
39
|
}
|
|
41
40
|
declare const _default: <T extends number | number[]>(__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<{
|
|
42
41
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
43
|
-
readonly onChange?: ((
|
|
44
|
-
readonly "onUpdate:modelValue"?: ((
|
|
42
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
43
|
+
readonly "onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
|
|
45
44
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & (SliderProps & {
|
|
46
45
|
modelValue?: T;
|
|
47
|
-
}) &
|
|
46
|
+
}) & {}> & import("vue").PublicProps;
|
|
48
47
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
49
48
|
attrs: any;
|
|
50
49
|
slots: {};
|
|
51
|
-
emit: ((
|
|
50
|
+
emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
52
51
|
}>) => import("vue").VNode & {
|
|
53
52
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
54
53
|
};
|
|
@@ -47,8 +47,8 @@ export interface StepperProps<T extends StepperItem = StepperItem> extends Pick<
|
|
|
47
47
|
ui?: Stepper['slots'];
|
|
48
48
|
}
|
|
49
49
|
export type StepperEmits<T extends StepperItem = StepperItem> = Omit<StepperRootEmits, 'update:modelValue'> & {
|
|
50
|
-
next: [
|
|
51
|
-
prev: [
|
|
50
|
+
next: [value: T];
|
|
51
|
+
prev: [value: T];
|
|
52
52
|
};
|
|
53
53
|
type SlotProps<T extends StepperItem> = (props: {
|
|
54
54
|
item: T;
|
|
@@ -61,12 +61,12 @@ export type StepperSlots<T extends StepperItem = StepperItem> = {
|
|
|
61
61
|
} & DynamicSlots<T>;
|
|
62
62
|
declare const _default: <T extends StepperItem>(__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<{
|
|
63
63
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
64
|
-
readonly onPrev?: ((
|
|
65
|
-
readonly onNext?: ((
|
|
64
|
+
readonly onPrev?: ((value: T) => any) | undefined;
|
|
65
|
+
readonly onNext?: ((value: T) => any) | undefined;
|
|
66
66
|
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
67
67
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onPrev" | "onNext"> & (StepperProps<T> & {
|
|
68
68
|
modelValue?: string | number;
|
|
69
|
-
}) &
|
|
69
|
+
}) & {}> & import("vue").PublicProps;
|
|
70
70
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
71
71
|
next(): void;
|
|
72
72
|
prev(): void;
|
|
@@ -75,7 +75,7 @@ declare const _default: <T extends StepperItem>(__VLS_props: NonNullable<Awaited
|
|
|
75
75
|
}>): void;
|
|
76
76
|
attrs: any;
|
|
77
77
|
slots: StepperSlots<T>;
|
|
78
|
-
emit: (((evt: "prev",
|
|
78
|
+
emit: (((evt: "prev", value: T) => void) & ((evt: "next", value: T) => void)) & ((evt: "update:modelValue", value: string | number | undefined) => void);
|
|
79
79
|
}>) => import("vue").VNode & {
|
|
80
80
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
81
81
|
};
|
|
@@ -41,7 +41,7 @@ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | '
|
|
|
41
41
|
ui?: Switch['slots'];
|
|
42
42
|
}
|
|
43
43
|
export type SwitchEmits = {
|
|
44
|
-
change: [
|
|
44
|
+
change: [event: Event];
|
|
45
45
|
};
|
|
46
46
|
export interface SwitchSlots {
|
|
47
47
|
label(props: {
|
|
@@ -53,13 +53,13 @@ export interface SwitchSlots {
|
|
|
53
53
|
}
|
|
54
54
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SwitchProps & {
|
|
55
55
|
modelValue?: boolean;
|
|
56
|
-
},
|
|
57
|
-
change: (
|
|
56
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
change: (event: Event) => any;
|
|
58
58
|
"update:modelValue": (value: boolean) => any;
|
|
59
59
|
}, string, import("vue").PublicProps, Readonly<SwitchProps & {
|
|
60
60
|
modelValue?: boolean;
|
|
61
61
|
}> & Readonly<{
|
|
62
|
-
onChange?: ((
|
|
62
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
63
63
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
64
64
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SwitchSlots>;
|
|
65
65
|
export default _default;
|
|
@@ -315,13 +315,13 @@ defineExpose({
|
|
|
315
315
|
</template>
|
|
316
316
|
|
|
317
317
|
<tr v-else-if="loading && !!slots['loading']">
|
|
318
|
-
<td :colspan="
|
|
318
|
+
<td :colspan="tableApi.getAllLeafColumns().length" :class="ui.loading({ class: props.ui?.loading })">
|
|
319
319
|
<slot name="loading" />
|
|
320
320
|
</td>
|
|
321
321
|
</tr>
|
|
322
322
|
|
|
323
323
|
<tr v-else>
|
|
324
|
-
<td :colspan="
|
|
324
|
+
<td :colspan="tableApi.getAllLeafColumns().length" :class="ui.empty({ class: props.ui?.empty })">
|
|
325
325
|
<slot name="empty">
|
|
326
326
|
{{ empty || t("table.noData") }}
|
|
327
327
|
</slot>
|
|
@@ -184,7 +184,7 @@ declare const _default: <T extends TableData>(__VLS_props: NonNullable<Awaited<t
|
|
|
184
184
|
grouping?: GroupingState;
|
|
185
185
|
expanded?: ExpandedState;
|
|
186
186
|
pagination?: PaginationState;
|
|
187
|
-
}) &
|
|
187
|
+
}) & {}> & import("vue").PublicProps;
|
|
188
188
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
189
189
|
tableRef: Ref<HTMLTableElement | null, HTMLTableElement | null>;
|
|
190
190
|
tableApi: import("@tanstack/table-core").Table<T>;
|
|
@@ -82,7 +82,7 @@ export type TabsSlots<T extends TabsItem = TabsItem> = {
|
|
|
82
82
|
declare const _default: <T extends TabsItem>(__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<{
|
|
83
83
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
84
84
|
readonly "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
85
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & TabsProps<T> &
|
|
85
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & TabsProps<T> & {}> & import("vue").PublicProps;
|
|
86
86
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
87
87
|
triggersRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
88
88
|
}>): void;
|
|
@@ -49,7 +49,7 @@ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends
|
|
|
49
49
|
ui?: Textarea['slots'];
|
|
50
50
|
}
|
|
51
51
|
export interface TextareaEmits<T extends TextareaValue = TextareaValue> {
|
|
52
|
-
'update:modelValue': [
|
|
52
|
+
'update:modelValue': [value: T];
|
|
53
53
|
'blur': [event: FocusEvent];
|
|
54
54
|
'change': [event: Event];
|
|
55
55
|
}
|
|
@@ -62,14 +62,14 @@ declare const _default: <T extends TextareaValue>(__VLS_props: NonNullable<Await
|
|
|
62
62
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
63
63
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
64
64
|
readonly onChange?: ((event: Event) => any) | undefined;
|
|
65
|
-
readonly "onUpdate:modelValue"?: ((
|
|
66
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & TextareaProps<T> &
|
|
65
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
66
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & TextareaProps<T> & {}> & import("vue").PublicProps;
|
|
67
67
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
68
68
|
textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
69
69
|
}>): void;
|
|
70
70
|
attrs: any;
|
|
71
71
|
slots: TextareaSlots;
|
|
72
|
-
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue",
|
|
72
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
73
73
|
}>) => import("vue").VNode & {
|
|
74
74
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
75
75
|
};
|
|
@@ -56,7 +56,7 @@ declare const _default: <T extends TimelineItem>(__VLS_props: NonNullable<Awaite
|
|
|
56
56
|
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
57
57
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
|
|
58
58
|
modelValue?: string | number;
|
|
59
|
-
}) &
|
|
59
|
+
}) & {}> & import("vue").PublicProps;
|
|
60
60
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
61
61
|
attrs: any;
|
|
62
62
|
slots: TimelineSlots<T>;
|
|
@@ -30,7 +30,7 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
30
30
|
export interface ToasterSlots {
|
|
31
31
|
default(props?: {}): any;
|
|
32
32
|
}
|
|
33
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps,
|
|
33
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
|
|
34
34
|
progress: boolean;
|
|
35
35
|
duration: number;
|
|
36
36
|
expand: boolean;
|
|
@@ -41,7 +41,7 @@ export interface TooltipSlots {
|
|
|
41
41
|
}): any;
|
|
42
42
|
content(props?: {}): any;
|
|
43
43
|
}
|
|
44
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps,
|
|
44
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
"update:open": (value: boolean) => any;
|
|
46
46
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
47
47
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -98,13 +98,13 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
|
|
|
98
98
|
}>;
|
|
99
99
|
declare const _default: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", 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<{
|
|
100
100
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
101
|
-
readonly "onUpdate:modelValue"?: ((
|
|
101
|
+
readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
102
102
|
readonly "onUpdate:expanded"?: ((val: string[]) => any) | undefined;
|
|
103
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:expanded"> & TreeProps<T, VK, M> &
|
|
103
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:expanded"> & TreeProps<T, VK, M> & {}> & import("vue").PublicProps;
|
|
104
104
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
105
105
|
attrs: any;
|
|
106
106
|
slots: TreeSlots<T, NestedItem<T>>;
|
|
107
|
-
emit: ((evt: "update:modelValue",
|
|
107
|
+
emit: ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "update:expanded", val: string[]) => void);
|
|
108
108
|
}>) => import("vue").VNode & {
|
|
109
109
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
110
110
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InjectionKey, Ref, ComputedRef } from 'vue';
|
|
2
2
|
import type { UseEventBusReturn } from '@vueuse/core';
|
|
3
3
|
import type { FormFieldProps } from '../types';
|
|
4
|
-
import type { FormEvent, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form';
|
|
4
|
+
import type { FormErrorWithId, FormEvent, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form';
|
|
5
5
|
import type { GetObjectField } from '../types/utils';
|
|
6
6
|
type Props<T> = {
|
|
7
7
|
id?: string;
|
|
@@ -20,6 +20,7 @@ export declare const formInputsInjectionKey: InjectionKey<Ref<Record<string, {
|
|
|
20
20
|
pattern?: RegExp;
|
|
21
21
|
}>>>;
|
|
22
22
|
export declare const formLoadingInjectionKey: InjectionKey<Readonly<Ref<boolean>>>;
|
|
23
|
+
export declare const formErrorsInjectionKey: InjectionKey<Readonly<Ref<FormErrorWithId[]>>>;
|
|
23
24
|
export declare function useFormField<T>(props?: Props<T>, opts?: {
|
|
24
25
|
bind?: boolean;
|
|
25
26
|
deferInputValidation?: boolean;
|
|
@@ -6,6 +6,7 @@ export const formFieldInjectionKey = Symbol("nuxt-ui.form-field");
|
|
|
6
6
|
export const inputIdInjectionKey = Symbol("nuxt-ui.input-id");
|
|
7
7
|
export const formInputsInjectionKey = Symbol("nuxt-ui.form-inputs");
|
|
8
8
|
export const formLoadingInjectionKey = Symbol("nuxt-ui.form-loading");
|
|
9
|
+
export const formErrorsInjectionKey = Symbol("nuxt-ui.form-errors");
|
|
9
10
|
export function useFormField(props, opts) {
|
|
10
11
|
const formOptions = inject(formOptionsInjectionKey, void 0);
|
|
11
12
|
const formBus = inject(formBusInjectionKey, void 0);
|
|
@@ -48,7 +48,7 @@ export interface LinkSlots {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
}): any;
|
|
50
50
|
}
|
|
51
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
51
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
52
52
|
type: "reset" | "submit" | "button";
|
|
53
53
|
as: any;
|
|
54
54
|
activeClass: string;
|
|
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
isExternal?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
13
13
|
type: string;
|
|
14
14
|
as: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|