@nuxt/ui 3.3.5 → 3.3.7
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/.nuxt/ui/drawer.ts +23 -0
- package/dist/module.json +3 -3
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.d.vue.ts +6 -5
- package/dist/runtime/components/Accordion.vue.d.ts +6 -5
- package/dist/runtime/components/Alert.d.vue.ts +2 -1
- package/dist/runtime/components/Alert.vue.d.ts +2 -1
- package/dist/runtime/components/App.d.vue.ts +5 -4
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/App.vue.d.ts +5 -4
- package/dist/runtime/components/Avatar.d.vue.ts +2 -1
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/AvatarGroup.d.vue.ts +2 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Badge.d.vue.ts +2 -1
- package/dist/runtime/components/Badge.vue.d.ts +2 -1
- package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -3
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
- package/dist/runtime/components/Button.d.vue.ts +2 -1
- package/dist/runtime/components/Button.vue.d.ts +2 -1
- package/dist/runtime/components/ButtonGroup.d.vue.ts +2 -1
- package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Calendar.d.vue.ts +9 -8
- package/dist/runtime/components/Calendar.vue.d.ts +9 -8
- package/dist/runtime/components/Card.d.vue.ts +2 -1
- package/dist/runtime/components/Card.vue.d.ts +2 -1
- package/dist/runtime/components/Carousel.d.vue.ts +7 -6
- package/dist/runtime/components/Carousel.vue +32 -12
- package/dist/runtime/components/Carousel.vue.d.ts +7 -6
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +7 -6
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Chip.d.vue.ts +2 -1
- package/dist/runtime/components/Chip.vue.d.ts +2 -1
- package/dist/runtime/components/Collapsible.d.vue.ts +2 -1
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -1
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
- package/dist/runtime/components/CommandPalette.d.vue.ts +13 -12
- package/dist/runtime/components/CommandPalette.vue +1 -1
- package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
- package/dist/runtime/components/Container.d.vue.ts +2 -1
- package/dist/runtime/components/Container.vue.d.ts +2 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +6 -5
- package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +10 -9
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/Drawer.d.vue.ts +5 -1
- package/dist/runtime/components/Drawer.vue +19 -5
- package/dist/runtime/components/Drawer.vue.d.ts +5 -1
- package/dist/runtime/components/DropdownMenu.d.vue.ts +6 -5
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +10 -9
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/FileUpload.d.vue.ts +9 -8
- package/dist/runtime/components/FileUpload.vue +3 -2
- package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
- package/dist/runtime/components/Form.d.vue.ts +7 -6
- package/dist/runtime/components/Form.vue.d.ts +7 -6
- package/dist/runtime/components/FormField.d.vue.ts +2 -1
- package/dist/runtime/components/FormField.vue.d.ts +2 -1
- package/dist/runtime/components/Icon.d.vue.ts +2 -1
- package/dist/runtime/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/components/Input.d.vue.ts +9 -8
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.d.vue.ts +17 -16
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -16
- package/dist/runtime/components/InputNumber.d.vue.ts +2 -1
- package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
- package/dist/runtime/components/InputTags.d.vue.ts +13 -12
- package/dist/runtime/components/InputTags.vue.d.ts +13 -12
- package/dist/runtime/components/Kbd.d.vue.ts +2 -1
- package/dist/runtime/components/Kbd.vue.d.ts +2 -1
- package/dist/runtime/components/Link.d.vue.ts +2 -1
- package/dist/runtime/components/Link.vue.d.ts +2 -1
- package/dist/runtime/components/LinkBase.d.vue.ts +2 -1
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/components/Modal.d.vue.ts +4 -3
- package/dist/runtime/components/Modal.vue.d.ts +4 -3
- package/dist/runtime/components/NavigationMenu.d.vue.ts +6 -5
- package/dist/runtime/components/NavigationMenu.vue +1 -1
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
- package/dist/runtime/components/OverlayProvider.d.vue.ts +2 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
- package/dist/runtime/components/Pagination.d.vue.ts +2 -1
- package/dist/runtime/components/Pagination.vue +4 -4
- package/dist/runtime/components/Pagination.vue.d.ts +2 -1
- package/dist/runtime/components/PinInput.d.vue.ts +10 -9
- package/dist/runtime/components/PinInput.vue.d.ts +10 -9
- package/dist/runtime/components/Popover.d.vue.ts +2 -1
- package/dist/runtime/components/Popover.vue.d.ts +2 -1
- package/dist/runtime/components/Progress.d.vue.ts +2 -1
- package/dist/runtime/components/Progress.vue.d.ts +2 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +7 -6
- package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Select.d.vue.ts +11 -10
- package/dist/runtime/components/Select.vue.d.ts +11 -10
- package/dist/runtime/components/SelectMenu.d.vue.ts +16 -15
- package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
- package/dist/runtime/components/Separator.d.vue.ts +2 -1
- package/dist/runtime/components/Separator.vue.d.ts +2 -1
- package/dist/runtime/components/Skeleton.d.vue.ts +2 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
- package/dist/runtime/components/Slideover.d.vue.ts +4 -3
- package/dist/runtime/components/Slideover.vue.d.ts +4 -3
- package/dist/runtime/components/Slider.d.vue.ts +8 -7
- package/dist/runtime/components/Slider.vue.d.ts +8 -7
- package/dist/runtime/components/Stepper.d.vue.ts +10 -9
- package/dist/runtime/components/Stepper.vue.d.ts +10 -9
- package/dist/runtime/components/Switch.d.vue.ts +2 -1
- package/dist/runtime/components/Switch.vue.d.ts +2 -1
- package/dist/runtime/components/Table.d.vue.ts +20 -19
- package/dist/runtime/components/Table.vue +19 -1
- package/dist/runtime/components/Table.vue.d.ts +20 -19
- package/dist/runtime/components/Tabs.d.vue.ts +7 -6
- package/dist/runtime/components/Tabs.vue.d.ts +7 -6
- package/dist/runtime/components/Textarea.d.vue.ts +9 -8
- package/dist/runtime/components/Textarea.vue.d.ts +9 -8
- package/dist/runtime/components/Timeline.d.vue.ts +7 -6
- package/dist/runtime/components/Timeline.vue.d.ts +7 -6
- package/dist/runtime/components/Toast.d.vue.ts +4 -3
- package/dist/runtime/components/Toast.vue.d.ts +4 -3
- package/dist/runtime/components/Toaster.d.vue.ts +2 -1
- package/dist/runtime/components/Toaster.vue +2 -1
- package/dist/runtime/components/Toaster.vue.d.ts +2 -1
- package/dist/runtime/components/Tooltip.d.vue.ts +2 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
- package/dist/runtime/components/Tree.d.vue.ts +7 -6
- package/dist/runtime/components/Tree.vue.d.ts +7 -6
- package/dist/runtime/composables/useKbd.js +1 -1
- package/dist/runtime/composables/usePortal.d.ts +3 -3
- package/dist/runtime/composables/usePortal.js +5 -10
- package/dist/runtime/inertia/components/Link.d.vue.ts +2 -1
- package/dist/runtime/inertia/components/Link.vue +12 -7
- package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
- package/dist/runtime/inertia/components/LinkBase.d.vue.ts +2 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/vue/components/Icon.d.vue.ts +2 -1
- package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/vue/components/Link.d.vue.ts +2 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
- package/dist/shared/{ui.DH9BUZkq.mjs → ui.DBpKc5X3.mjs} +88 -60
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +22 -21
|
@@ -58,21 +58,22 @@ export interface TextareaSlots {
|
|
|
58
58
|
default(props?: {}): any;
|
|
59
59
|
trailing(props?: {}): any;
|
|
60
60
|
}
|
|
61
|
-
declare const
|
|
62
|
-
props: __VLS_PrettifyLocal<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
61
|
+
declare const __VLS_export: <T extends TextareaValue>(__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<{
|
|
62
|
+
props: __VLS_PrettifyLocal<TextareaProps<T> & {
|
|
63
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
64
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
65
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
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
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
|
};
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
76
77
|
export default _default;
|
|
77
78
|
type __VLS_PrettifyLocal<T> = {
|
|
78
79
|
[K in keyof T as K]: T[K];
|
|
@@ -58,21 +58,22 @@ export interface TextareaSlots {
|
|
|
58
58
|
default(props?: {}): any;
|
|
59
59
|
trailing(props?: {}): any;
|
|
60
60
|
}
|
|
61
|
-
declare const
|
|
62
|
-
props: __VLS_PrettifyLocal<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
61
|
+
declare const __VLS_export: <T extends TextareaValue>(__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<{
|
|
62
|
+
props: __VLS_PrettifyLocal<TextareaProps<T> & {
|
|
63
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
64
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
65
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
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
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
|
};
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
76
77
|
export default _default;
|
|
77
78
|
type __VLS_PrettifyLocal<T> = {
|
|
78
79
|
[K in keyof T as K]: T[K];
|
|
@@ -51,19 +51,20 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
|
51
51
|
} & DynamicSlots<T, 'indicator' | 'date' | 'title' | 'description', {
|
|
52
52
|
item: T;
|
|
53
53
|
}>;
|
|
54
|
-
declare const
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
56
|
-
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
|
|
54
|
+
declare const __VLS_export: <T extends TimelineItem>(__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<(TimelineProps<T> & {
|
|
58
56
|
modelValue?: string | number;
|
|
59
|
-
}) & {
|
|
60
|
-
|
|
57
|
+
}) & {
|
|
58
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
59
|
+
}> & import("vue").PublicProps;
|
|
60
|
+
expose: (exposed: {}) => void;
|
|
61
61
|
attrs: any;
|
|
62
62
|
slots: TimelineSlots<T>;
|
|
63
63
|
emit: (evt: "update:modelValue", value: string | number | undefined) => void;
|
|
64
64
|
}>) => import("vue").VNode & {
|
|
65
65
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
66
66
|
};
|
|
67
|
+
declare const _default: typeof __VLS_export;
|
|
67
68
|
export default _default;
|
|
68
69
|
type __VLS_PrettifyLocal<T> = {
|
|
69
70
|
[K in keyof T as K]: T[K];
|
|
@@ -51,19 +51,20 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
|
51
51
|
} & DynamicSlots<T, 'indicator' | 'date' | 'title' | 'description', {
|
|
52
52
|
item: T;
|
|
53
53
|
}>;
|
|
54
|
-
declare const
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
56
|
-
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
|
|
54
|
+
declare const __VLS_export: <T extends TimelineItem>(__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<(TimelineProps<T> & {
|
|
58
56
|
modelValue?: string | number;
|
|
59
|
-
}) & {
|
|
60
|
-
|
|
57
|
+
}) & {
|
|
58
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
59
|
+
}> & import("vue").PublicProps;
|
|
60
|
+
expose: (exposed: {}) => void;
|
|
61
61
|
attrs: any;
|
|
62
62
|
slots: TimelineSlots<T>;
|
|
63
63
|
emit: (evt: "update:modelValue", value: string | number | undefined) => void;
|
|
64
64
|
}>) => import("vue").VNode & {
|
|
65
65
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
66
66
|
};
|
|
67
|
+
declare const _default: typeof __VLS_export;
|
|
67
68
|
export default _default;
|
|
68
69
|
type __VLS_PrettifyLocal<T> = {
|
|
69
70
|
[K in keyof T as K]: T[K];
|
|
@@ -67,13 +67,13 @@ export interface ToastSlots {
|
|
|
67
67
|
};
|
|
68
68
|
}): any;
|
|
69
69
|
}
|
|
70
|
-
declare const
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
|
|
71
71
|
height: import("vue").Ref<number, number>;
|
|
72
72
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
-
resume: () => any;
|
|
74
73
|
pause: () => any;
|
|
75
74
|
"update:open": (value: boolean) => any;
|
|
76
75
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
76
|
+
resume: () => any;
|
|
77
77
|
swipeStart: (event: {
|
|
78
78
|
currentTarget: EventTarget & HTMLElement;
|
|
79
79
|
} & Omit<CustomEvent<{
|
|
@@ -111,10 +111,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
|
|
|
111
111
|
};
|
|
112
112
|
}>, "currentTarget">) => any;
|
|
113
113
|
}, string, import("vue").PublicProps, Readonly<ToastProps> & Readonly<{
|
|
114
|
-
onResume?: (() => any) | undefined;
|
|
115
114
|
onPause?: (() => any) | undefined;
|
|
116
115
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
117
116
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
117
|
+
onResume?: (() => any) | undefined;
|
|
118
118
|
onSwipeStart?: ((event: {
|
|
119
119
|
currentTarget: EventTarget & HTMLElement;
|
|
120
120
|
} & Omit<CustomEvent<{
|
|
@@ -156,6 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
|
|
|
156
156
|
progress: boolean | Pick<ProgressProps, "color" | "ui">;
|
|
157
157
|
orientation: Toast["variants"]["orientation"];
|
|
158
158
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
159
|
+
declare const _default: typeof __VLS_export;
|
|
159
160
|
export default _default;
|
|
160
161
|
type __VLS_WithSlots<T, S> = T & {
|
|
161
162
|
new (): {
|
|
@@ -67,13 +67,13 @@ export interface ToastSlots {
|
|
|
67
67
|
};
|
|
68
68
|
}): any;
|
|
69
69
|
}
|
|
70
|
-
declare const
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
|
|
71
71
|
height: import("vue").Ref<number, number>;
|
|
72
72
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
-
resume: () => any;
|
|
74
73
|
pause: () => any;
|
|
75
74
|
"update:open": (value: boolean) => any;
|
|
76
75
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
76
|
+
resume: () => any;
|
|
77
77
|
swipeStart: (event: {
|
|
78
78
|
currentTarget: EventTarget & HTMLElement;
|
|
79
79
|
} & Omit<CustomEvent<{
|
|
@@ -111,10 +111,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
|
|
|
111
111
|
};
|
|
112
112
|
}>, "currentTarget">) => any;
|
|
113
113
|
}, string, import("vue").PublicProps, Readonly<ToastProps> & Readonly<{
|
|
114
|
-
onResume?: (() => any) | undefined;
|
|
115
114
|
onPause?: (() => any) | undefined;
|
|
116
115
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
117
116
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
117
|
+
onResume?: (() => any) | undefined;
|
|
118
118
|
onSwipeStart?: ((event: {
|
|
119
119
|
currentTarget: EventTarget & HTMLElement;
|
|
120
120
|
} & Omit<CustomEvent<{
|
|
@@ -156,6 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
|
|
|
156
156
|
progress: boolean | Pick<ProgressProps, "color" | "ui">;
|
|
157
157
|
orientation: Toast["variants"]["orientation"];
|
|
158
158
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
159
|
+
declare const _default: typeof __VLS_export;
|
|
159
160
|
export default _default;
|
|
160
161
|
type __VLS_WithSlots<T, S> = T & {
|
|
161
162
|
new (): {
|
|
@@ -30,12 +30,13 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
30
30
|
export interface ToasterSlots {
|
|
31
31
|
default(props?: {}): any;
|
|
32
32
|
}
|
|
33
|
-
declare const
|
|
33
|
+
declare const __VLS_export: __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;
|
|
37
37
|
portal: boolean | string | HTMLElement;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
42
|
new (): {
|
|
@@ -24,12 +24,13 @@ const props = defineProps({
|
|
|
24
24
|
ui: { type: null, required: false },
|
|
25
25
|
label: { type: String, required: false },
|
|
26
26
|
duration: { type: Number, required: false, default: 5e3 },
|
|
27
|
+
disableSwipe: { type: Boolean, required: false },
|
|
27
28
|
swipeThreshold: { type: Number, required: false }
|
|
28
29
|
});
|
|
29
30
|
defineSlots();
|
|
30
31
|
const { toasts, remove } = useToast();
|
|
31
32
|
const appConfig = useAppConfig();
|
|
32
|
-
const providerProps = useForwardProps(reactivePick(props, "duration", "label", "swipeThreshold"));
|
|
33
|
+
const providerProps = useForwardProps(reactivePick(props, "duration", "label", "swipeThreshold", "disableSwipe"));
|
|
33
34
|
const portalProps = usePortal(toRef(() => props.portal));
|
|
34
35
|
const swipeDirection = computed(() => {
|
|
35
36
|
switch (props.position) {
|
|
@@ -30,12 +30,13 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
30
30
|
export interface ToasterSlots {
|
|
31
31
|
default(props?: {}): any;
|
|
32
32
|
}
|
|
33
|
-
declare const
|
|
33
|
+
declare const __VLS_export: __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;
|
|
37
37
|
portal: boolean | string | HTMLElement;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
42
|
new (): {
|
|
@@ -41,13 +41,14 @@ export interface TooltipSlots {
|
|
|
41
41
|
}): any;
|
|
42
42
|
content(props?: {}): any;
|
|
43
43
|
}
|
|
44
|
-
declare const
|
|
44
|
+
declare const __VLS_export: __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;
|
|
48
48
|
}>, {
|
|
49
49
|
portal: boolean | string | HTMLElement;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
51
52
|
export default _default;
|
|
52
53
|
type __VLS_WithSlots<T, S> = T & {
|
|
53
54
|
new (): {
|
|
@@ -41,13 +41,14 @@ export interface TooltipSlots {
|
|
|
41
41
|
}): any;
|
|
42
42
|
content(props?: {}): any;
|
|
43
43
|
}
|
|
44
|
-
declare const
|
|
44
|
+
declare const __VLS_export: __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;
|
|
48
48
|
}>, {
|
|
49
49
|
portal: boolean | string | HTMLElement;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
51
52
|
export default _default;
|
|
52
53
|
type __VLS_WithSlots<T, S> = T & {
|
|
53
54
|
new (): {
|
|
@@ -96,18 +96,19 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
|
|
|
96
96
|
expanded: boolean;
|
|
97
97
|
selected: boolean;
|
|
98
98
|
}>;
|
|
99
|
-
declare const
|
|
100
|
-
props: __VLS_PrettifyLocal<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
expose(exposed:
|
|
99
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<TreeProps<T, VK, M> & {
|
|
101
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
102
|
+
"onUpdate:expanded"?: ((val: string[]) => any) | undefined;
|
|
103
|
+
}> & import("vue").PublicProps;
|
|
104
|
+
expose: (exposed: {}) => void;
|
|
105
105
|
attrs: any;
|
|
106
106
|
slots: TreeSlots<T, NestedItem<T>>;
|
|
107
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
|
};
|
|
111
|
+
declare const _default: typeof __VLS_export;
|
|
111
112
|
export default _default;
|
|
112
113
|
type __VLS_PrettifyLocal<T> = {
|
|
113
114
|
[K in keyof T as K]: T[K];
|
|
@@ -96,18 +96,19 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
|
|
|
96
96
|
expanded: boolean;
|
|
97
97
|
selected: boolean;
|
|
98
98
|
}>;
|
|
99
|
-
declare const
|
|
100
|
-
props: __VLS_PrettifyLocal<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
expose(exposed:
|
|
99
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<TreeProps<T, VK, M> & {
|
|
101
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
102
|
+
"onUpdate:expanded"?: ((val: string[]) => any) | undefined;
|
|
103
|
+
}> & import("vue").PublicProps;
|
|
104
|
+
expose: (exposed: {}) => void;
|
|
105
105
|
attrs: any;
|
|
106
106
|
slots: TreeSlots<T, NestedItem<T>>;
|
|
107
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
|
};
|
|
111
|
+
declare const _default: typeof __VLS_export;
|
|
111
112
|
export default _default;
|
|
112
113
|
type __VLS_PrettifyLocal<T> = {
|
|
113
114
|
[K in keyof T as K]: T[K];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref, InjectionKey } from 'vue';
|
|
2
|
-
export declare const portalTargetInjectionKey: InjectionKey<Ref<string | HTMLElement>>;
|
|
3
|
-
export declare function usePortal(portal: Ref<
|
|
4
|
-
to: string | HTMLElement;
|
|
2
|
+
export declare const portalTargetInjectionKey: InjectionKey<Ref<boolean | string | HTMLElement>>;
|
|
3
|
+
export declare function usePortal(portal: Ref<boolean | string | HTMLElement | undefined>): import("vue").ComputedRef<{
|
|
4
|
+
to: string | HTMLElement | undefined;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
}>;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { inject,
|
|
1
|
+
import { inject, computed } from "vue";
|
|
2
2
|
export const portalTargetInjectionKey = Symbol("nuxt-ui.portal-target");
|
|
3
3
|
export function usePortal(portal) {
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return portal.value;
|
|
10
|
-
});
|
|
11
|
-
const disabled = computed(() => typeof portal.value === "boolean" ? !portal.value : false);
|
|
12
|
-
provide(portalTargetInjectionKey, computed(() => to.value));
|
|
4
|
+
const globalPortal = inject(portalTargetInjectionKey, void 0);
|
|
5
|
+
const value = computed(() => portal.value === true ? globalPortal?.value : portal.value);
|
|
6
|
+
const disabled = computed(() => typeof value.value === "boolean" ? !value.value : false);
|
|
7
|
+
const to = computed(() => typeof value.value === "boolean" ? "body" : value.value);
|
|
13
8
|
return computed(() => ({
|
|
14
9
|
to: to.value,
|
|
15
10
|
disabled: disabled.value
|
|
@@ -48,13 +48,14 @@ export interface LinkSlots {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
}): any;
|
|
50
50
|
}
|
|
51
|
-
declare const
|
|
51
|
+
declare const __VLS_export: __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;
|
|
55
55
|
active: boolean;
|
|
56
56
|
inactiveClass: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
58
59
|
export default _default;
|
|
59
60
|
type __VLS_WithSlots<T, S> = T & {
|
|
60
61
|
new (): {
|
|
@@ -29,26 +29,31 @@ const props = defineProps({
|
|
|
29
29
|
external: { type: Boolean, required: false },
|
|
30
30
|
target: { type: [String, Object, null], required: false },
|
|
31
31
|
ariaCurrentValue: { type: String, required: false },
|
|
32
|
-
data: { type:
|
|
32
|
+
data: { type: null, required: false },
|
|
33
33
|
method: { type: String, required: false },
|
|
34
|
-
|
|
34
|
+
replace: { type: Boolean, required: false },
|
|
35
35
|
preserveScroll: { type: [Boolean, String, Function], required: false },
|
|
36
36
|
preserveState: { type: [Boolean, String, Function], required: false },
|
|
37
|
-
|
|
37
|
+
preserveUrl: { type: Boolean, required: false },
|
|
38
38
|
only: { type: Array, required: false },
|
|
39
39
|
except: { type: Array, required: false },
|
|
40
|
-
|
|
40
|
+
headers: { type: Object, required: false },
|
|
41
|
+
queryStringArrayFormat: { type: String, required: false },
|
|
42
|
+
async: { type: Boolean, required: false },
|
|
41
43
|
onBefore: { type: Function, required: false },
|
|
44
|
+
onBeforeUpdate: { type: Function, required: false },
|
|
42
45
|
onStart: { type: Function, required: false },
|
|
43
46
|
onProgress: { type: Function, required: false },
|
|
44
47
|
onFinish: { type: Function, required: false },
|
|
45
48
|
onCancel: { type: Function, required: false },
|
|
46
49
|
onSuccess: { type: Function, required: false },
|
|
47
50
|
onError: { type: Function, required: false },
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
onPrefetched: { type: Function, required: false },
|
|
52
|
+
onPrefetching: { type: Function, required: false },
|
|
53
|
+
onCancelToken: { type: Function, required: false },
|
|
50
54
|
prefetch: { type: [Boolean, String, Array], required: false },
|
|
51
|
-
cacheFor: { type: [Number, String, Array], required: false }
|
|
55
|
+
cacheFor: { type: [Number, String, Array], required: false },
|
|
56
|
+
cacheTags: { type: [String, Array], required: false }
|
|
52
57
|
});
|
|
53
58
|
defineSlots();
|
|
54
59
|
const page = usePage();
|
|
@@ -48,13 +48,14 @@ export interface LinkSlots {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
}): any;
|
|
50
50
|
}
|
|
51
|
-
declare const
|
|
51
|
+
declare const __VLS_export: __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;
|
|
55
55
|
active: boolean;
|
|
56
56
|
inactiveClass: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
58
59
|
export default _default;
|
|
59
60
|
type __VLS_WithSlots<T, S> = T & {
|
|
60
61
|
new (): {
|
|
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
isExternal?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __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>, {
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBasePr
|
|
|
17
17
|
} & {
|
|
18
18
|
default?: (props: {}) => any;
|
|
19
19
|
}>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
|
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
isExternal?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __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>, {
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBasePr
|
|
|
17
17
|
} & {
|
|
18
18
|
default?: (props: {}) => any;
|
|
19
19
|
}>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface IconProps {
|
|
2
2
|
name: string;
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface IconProps {
|
|
2
2
|
name: string;
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
@@ -77,7 +77,7 @@ export interface LinkSlots {
|
|
|
77
77
|
active: boolean;
|
|
78
78
|
}): any;
|
|
79
79
|
}
|
|
80
|
-
declare const
|
|
80
|
+
declare const __VLS_export: __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
|
activeClass: string;
|
|
@@ -85,6 +85,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
|
85
85
|
active: boolean;
|
|
86
86
|
inactiveClass: string;
|
|
87
87
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
88
|
+
declare const _default: typeof __VLS_export;
|
|
88
89
|
export default _default;
|
|
89
90
|
type __VLS_WithSlots<T, S> = T & {
|
|
90
91
|
new (): {
|
|
@@ -77,7 +77,7 @@ export interface LinkSlots {
|
|
|
77
77
|
active: boolean;
|
|
78
78
|
}): any;
|
|
79
79
|
}
|
|
80
|
-
declare const
|
|
80
|
+
declare const __VLS_export: __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
|
activeClass: string;
|
|
@@ -85,6 +85,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
|
85
85
|
active: boolean;
|
|
86
86
|
inactiveClass: string;
|
|
87
87
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
88
|
+
declare const _default: typeof __VLS_export;
|
|
88
89
|
export default _default;
|
|
89
90
|
type __VLS_WithSlots<T, S> = T & {
|
|
90
91
|
new (): {
|