@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
|
@@ -107,20 +107,21 @@ export interface CarouselEmits {
|
|
|
107
107
|
*/
|
|
108
108
|
select: [selectedIndex: number];
|
|
109
109
|
}
|
|
110
|
-
declare const
|
|
111
|
-
props: __VLS_PrettifyLocal<
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
110
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<CarouselProps<T> & {
|
|
112
|
+
onSelect?: ((selectedIndex: number) => any) | undefined;
|
|
113
|
+
}> & import("vue").PublicProps;
|
|
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>;
|
|
117
|
-
}>)
|
|
117
|
+
}>) => void;
|
|
118
118
|
attrs: any;
|
|
119
119
|
slots: CarouselSlots<T>;
|
|
120
120
|
emit: (evt: "select", selectedIndex: number) => void;
|
|
121
121
|
}>) => import("vue").VNode & {
|
|
122
122
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
123
123
|
};
|
|
124
|
+
declare const _default: typeof __VLS_export;
|
|
124
125
|
export default _default;
|
|
125
126
|
type __VLS_PrettifyLocal<T> = {
|
|
126
127
|
[K in keyof T as K]: T[K];
|
|
@@ -54,7 +54,7 @@ export interface CheckboxSlots {
|
|
|
54
54
|
description?: string;
|
|
55
55
|
}): any;
|
|
56
56
|
}
|
|
57
|
-
declare const
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
58
|
modelValue?: boolean | "indeterminate";
|
|
59
59
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
60
|
change: (event: Event) => any;
|
|
@@ -65,6 +65,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxPr
|
|
|
65
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
|
+
declare const _default: typeof __VLS_export;
|
|
68
69
|
export default _default;
|
|
69
70
|
type __VLS_WithSlots<T, S> = T & {
|
|
70
71
|
new (): {
|
|
@@ -54,7 +54,7 @@ export interface CheckboxSlots {
|
|
|
54
54
|
description?: string;
|
|
55
55
|
}): any;
|
|
56
56
|
}
|
|
57
|
-
declare const
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
58
|
modelValue?: boolean | "indeterminate";
|
|
59
59
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
60
|
change: (event: Event) => any;
|
|
@@ -65,6 +65,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxPr
|
|
|
65
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
|
+
declare const _default: typeof __VLS_export;
|
|
68
69
|
export default _default;
|
|
69
70
|
type __VLS_WithSlots<T, S> = T & {
|
|
70
71
|
new (): {
|
|
@@ -66,18 +66,19 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
66
66
|
label: SlotProps<T>;
|
|
67
67
|
description: SlotProps<T>;
|
|
68
68
|
}
|
|
69
|
-
declare const
|
|
70
|
-
props: __VLS_PrettifyLocal<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
expose(exposed:
|
|
69
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<CheckboxGroupProps<T> & {
|
|
71
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
73
|
+
}> & import("vue").PublicProps;
|
|
74
|
+
expose: (exposed: {}) => void;
|
|
75
75
|
attrs: any;
|
|
76
76
|
slots: CheckboxGroupSlots<T>;
|
|
77
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
|
};
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
81
82
|
export default _default;
|
|
82
83
|
type __VLS_PrettifyLocal<T> = {
|
|
83
84
|
[K in keyof T as K]: T[K];
|
|
@@ -66,18 +66,19 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
|
|
|
66
66
|
label: SlotProps<T>;
|
|
67
67
|
description: SlotProps<T>;
|
|
68
68
|
}
|
|
69
|
-
declare const
|
|
70
|
-
props: __VLS_PrettifyLocal<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
expose(exposed:
|
|
69
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<CheckboxGroupProps<T> & {
|
|
71
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
73
|
+
}> & import("vue").PublicProps;
|
|
74
|
+
expose: (exposed: {}) => void;
|
|
75
75
|
attrs: any;
|
|
76
76
|
slots: CheckboxGroupSlots<T>;
|
|
77
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
|
};
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
81
82
|
export default _default;
|
|
82
83
|
type __VLS_PrettifyLocal<T> = {
|
|
83
84
|
[K in keyof T as K]: T[K];
|
|
@@ -37,7 +37,7 @@ export interface ChipSlots {
|
|
|
37
37
|
default(props?: {}): any;
|
|
38
38
|
content(props?: {}): any;
|
|
39
39
|
}
|
|
40
|
-
declare const
|
|
40
|
+
declare const __VLS_export: __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;
|
|
@@ -49,6 +49,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps
|
|
|
49
49
|
inset: boolean;
|
|
50
50
|
standalone: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
52
53
|
export default _default;
|
|
53
54
|
type __VLS_WithSlots<T, S> = T & {
|
|
54
55
|
new (): {
|
|
@@ -37,7 +37,7 @@ export interface ChipSlots {
|
|
|
37
37
|
default(props?: {}): any;
|
|
38
38
|
content(props?: {}): any;
|
|
39
39
|
}
|
|
40
|
-
declare const
|
|
40
|
+
declare const __VLS_export: __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;
|
|
@@ -49,6 +49,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps
|
|
|
49
49
|
inset: boolean;
|
|
50
50
|
standalone: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
52
53
|
export default _default;
|
|
53
54
|
type __VLS_WithSlots<T, S> = T & {
|
|
54
55
|
new (): {
|
|
@@ -20,13 +20,14 @@ export interface CollapsibleSlots {
|
|
|
20
20
|
}): any;
|
|
21
21
|
content(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const __VLS_export: __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;
|
|
27
27
|
}>, {
|
|
28
28
|
unmountOnHide: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CollapsibleSlots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
30
31
|
export default _default;
|
|
31
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
32
33
|
new (): {
|
|
@@ -20,13 +20,14 @@ export interface CollapsibleSlots {
|
|
|
20
20
|
}): any;
|
|
21
21
|
content(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const __VLS_export: __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;
|
|
27
27
|
}>, {
|
|
28
28
|
unmountOnHide: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CollapsibleSlots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
30
31
|
export default _default;
|
|
31
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
32
33
|
new (): {
|
|
@@ -32,7 +32,7 @@ export type ColorPickerProps = {
|
|
|
32
32
|
class?: any;
|
|
33
33
|
ui?: ColorPicker['slots'];
|
|
34
34
|
};
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
36
|
modelValue?: string;
|
|
37
37
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
"update:modelValue": (value: string | undefined) => any;
|
|
@@ -45,4 +45,5 @@ declare const _default: import("vue").DefineComponent<ColorPickerProps & {
|
|
|
45
45
|
defaultValue: string;
|
|
46
46
|
throttle: number;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
48
49
|
export default _default;
|
|
@@ -32,7 +32,7 @@ export type ColorPickerProps = {
|
|
|
32
32
|
class?: any;
|
|
33
33
|
ui?: ColorPicker['slots'];
|
|
34
34
|
};
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
36
|
modelValue?: string;
|
|
37
37
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
"update:modelValue": (value: string | undefined) => any;
|
|
@@ -45,4 +45,5 @@ declare const _default: import("vue").DefineComponent<ColorPickerProps & {
|
|
|
45
45
|
defaultValue: string;
|
|
46
46
|
throttle: number;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
48
49
|
export default _default;
|
|
@@ -162,21 +162,21 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
|
|
|
162
162
|
'item-label': SlotProps<T>;
|
|
163
163
|
'item-trailing': SlotProps<T>;
|
|
164
164
|
} & Record<string, SlotProps<G>> & Record<string, SlotProps<T>>;
|
|
165
|
-
declare const
|
|
166
|
-
props: __VLS_PrettifyLocal<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
declare const __VLS_export: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
|
|
166
|
+
props: __VLS_PrettifyLocal<(CommandPaletteProps<G, T> & {
|
|
167
|
+
searchTerm?: string;
|
|
168
|
+
}) & {
|
|
169
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
170
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
171
|
+
onHighlight?: ((payload: {
|
|
170
172
|
ref: HTMLElement;
|
|
171
173
|
value: T;
|
|
172
174
|
} | undefined) => any) | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
} & import("vue").
|
|
177
|
-
|
|
178
|
-
}) & {}> & import("vue").PublicProps;
|
|
179
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
175
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
176
|
+
onLeave?: ((event: Event) => any) | undefined;
|
|
177
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
178
|
+
}> & import("vue").PublicProps;
|
|
179
|
+
expose: (exposed: {}) => void;
|
|
180
180
|
attrs: any;
|
|
181
181
|
slots: CommandPaletteSlots<G, T>;
|
|
182
182
|
emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
|
|
@@ -186,6 +186,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
|
|
|
186
186
|
}>) => import("vue").VNode & {
|
|
187
187
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
188
188
|
};
|
|
189
|
+
declare const _default: typeof __VLS_export;
|
|
189
190
|
export default _default;
|
|
190
191
|
type __VLS_PrettifyLocal<T> = {
|
|
191
192
|
[K in keyof T as K]: T[K];
|
|
@@ -42,7 +42,7 @@ const props = defineProps({
|
|
|
42
42
|
disabled: { type: Boolean, required: false },
|
|
43
43
|
modelValue: { type: null, required: false, default: "" },
|
|
44
44
|
defaultValue: { type: null, required: false },
|
|
45
|
-
highlightOnHover: { type: Boolean, required: false },
|
|
45
|
+
highlightOnHover: { type: Boolean, required: false, default: true },
|
|
46
46
|
selectionBehavior: { type: String, required: false },
|
|
47
47
|
loading: { type: Boolean, required: false },
|
|
48
48
|
loadingIcon: { type: String, required: false }
|
|
@@ -162,21 +162,21 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
|
|
|
162
162
|
'item-label': SlotProps<T>;
|
|
163
163
|
'item-trailing': SlotProps<T>;
|
|
164
164
|
} & Record<string, SlotProps<G>> & Record<string, SlotProps<T>>;
|
|
165
|
-
declare const
|
|
166
|
-
props: __VLS_PrettifyLocal<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
declare const __VLS_export: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
|
|
166
|
+
props: __VLS_PrettifyLocal<(CommandPaletteProps<G, T> & {
|
|
167
|
+
searchTerm?: string;
|
|
168
|
+
}) & {
|
|
169
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
170
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
171
|
+
onHighlight?: ((payload: {
|
|
170
172
|
ref: HTMLElement;
|
|
171
173
|
value: T;
|
|
172
174
|
} | undefined) => any) | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
} & import("vue").
|
|
177
|
-
|
|
178
|
-
}) & {}> & import("vue").PublicProps;
|
|
179
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
175
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
176
|
+
onLeave?: ((event: Event) => any) | undefined;
|
|
177
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
178
|
+
}> & import("vue").PublicProps;
|
|
179
|
+
expose: (exposed: {}) => void;
|
|
180
180
|
attrs: any;
|
|
181
181
|
slots: CommandPaletteSlots<G, T>;
|
|
182
182
|
emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
|
|
@@ -186,6 +186,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
|
|
|
186
186
|
}>) => import("vue").VNode & {
|
|
187
187
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
188
188
|
};
|
|
189
|
+
declare const _default: typeof __VLS_export;
|
|
189
190
|
export default _default;
|
|
190
191
|
type __VLS_PrettifyLocal<T> = {
|
|
191
192
|
[K in keyof T as K]: T[K];
|
|
@@ -9,7 +9,8 @@ export interface ContainerProps {
|
|
|
9
9
|
export interface ContainerSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __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
|
+
declare const _default: typeof __VLS_export;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
@@ -9,7 +9,8 @@ export interface ContainerProps {
|
|
|
9
9
|
export interface ContainerSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __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
|
+
declare const _default: typeof __VLS_export;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
@@ -92,17 +92,18 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
|
|
|
92
92
|
active?: boolean;
|
|
93
93
|
index: number;
|
|
94
94
|
}>;
|
|
95
|
-
declare const
|
|
96
|
-
props: __VLS_PrettifyLocal<
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
expose(exposed:
|
|
95
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<ContextMenuProps<T> & {
|
|
97
|
+
"onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
98
|
+
}> & import("vue").PublicProps;
|
|
99
|
+
expose: (exposed: {}) => void;
|
|
100
100
|
attrs: any;
|
|
101
101
|
slots: ContextMenuSlots<T, NestedItem<T>>;
|
|
102
102
|
emit: (evt: "update:open", payload: boolean) => void;
|
|
103
103
|
}>) => import("vue").VNode & {
|
|
104
104
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
105
105
|
};
|
|
106
|
+
declare const _default: typeof __VLS_export;
|
|
106
107
|
export default _default;
|
|
107
108
|
type __VLS_PrettifyLocal<T> = {
|
|
108
109
|
[K in keyof T as K]: T[K];
|
|
@@ -92,17 +92,18 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
|
|
|
92
92
|
active?: boolean;
|
|
93
93
|
index: number;
|
|
94
94
|
}>;
|
|
95
|
-
declare const
|
|
96
|
-
props: __VLS_PrettifyLocal<
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
expose(exposed:
|
|
95
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<ContextMenuProps<T> & {
|
|
97
|
+
"onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
98
|
+
}> & import("vue").PublicProps;
|
|
99
|
+
expose: (exposed: {}) => void;
|
|
100
100
|
attrs: any;
|
|
101
101
|
slots: ContextMenuSlots<T, NestedItem<T>>;
|
|
102
102
|
emit: (evt: "update:open", payload: boolean) => void;
|
|
103
103
|
}>) => import("vue").VNode & {
|
|
104
104
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
105
105
|
};
|
|
106
|
+
declare const _default: typeof __VLS_export;
|
|
106
107
|
export default _default;
|
|
107
108
|
type __VLS_PrettifyLocal<T> = {
|
|
108
109
|
[K in keyof T as K]: T[K];
|
|
@@ -28,21 +28,22 @@ interface ContextMenuContentProps<T extends ArrayOrNested<ContextMenuItem>> exte
|
|
|
28
28
|
};
|
|
29
29
|
uiOverride?: ContextMenu['slots'];
|
|
30
30
|
}
|
|
31
|
-
declare const
|
|
32
|
-
props: __VLS_PrettifyLocal<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
expose(exposed:
|
|
31
|
+
declare const __VLS_export: <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<{
|
|
32
|
+
props: __VLS_PrettifyLocal<ContextMenuContentProps<T> & {
|
|
33
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
34
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
35
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
36
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
37
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
38
|
+
}> & import("vue").PublicProps;
|
|
39
|
+
expose: (exposed: {}) => void;
|
|
40
40
|
attrs: any;
|
|
41
41
|
slots: ContextMenuSlots<T>;
|
|
42
42
|
emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
43
43
|
}>) => import("vue").VNode & {
|
|
44
44
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
45
45
|
};
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
46
47
|
export default _default;
|
|
47
48
|
type __VLS_PrettifyLocal<T> = {
|
|
48
49
|
[K in keyof T as K]: T[K];
|
|
@@ -28,21 +28,22 @@ interface ContextMenuContentProps<T extends ArrayOrNested<ContextMenuItem>> exte
|
|
|
28
28
|
};
|
|
29
29
|
uiOverride?: ContextMenu['slots'];
|
|
30
30
|
}
|
|
31
|
-
declare const
|
|
32
|
-
props: __VLS_PrettifyLocal<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
expose(exposed:
|
|
31
|
+
declare const __VLS_export: <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<{
|
|
32
|
+
props: __VLS_PrettifyLocal<ContextMenuContentProps<T> & {
|
|
33
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
34
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
35
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
36
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
37
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
38
|
+
}> & import("vue").PublicProps;
|
|
39
|
+
expose: (exposed: {}) => void;
|
|
40
40
|
attrs: any;
|
|
41
41
|
slots: ContextMenuSlots<T>;
|
|
42
42
|
emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
43
43
|
}>) => import("vue").VNode & {
|
|
44
44
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
45
45
|
};
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
46
47
|
export default _default;
|
|
47
48
|
type __VLS_PrettifyLocal<T> = {
|
|
48
49
|
[K in keyof T as K]: T[K];
|
|
@@ -43,6 +43,7 @@ export interface DrawerProps extends Pick<DrawerRootProps, 'activeSnapPoint' | '
|
|
|
43
43
|
ui?: Drawer['slots'];
|
|
44
44
|
}
|
|
45
45
|
export interface DrawerEmits extends DrawerRootEmits {
|
|
46
|
+
(e: 'close:prevent'): void;
|
|
46
47
|
}
|
|
47
48
|
export interface DrawerSlots {
|
|
48
49
|
default(props?: {}): any;
|
|
@@ -53,10 +54,11 @@ export interface DrawerSlots {
|
|
|
53
54
|
body(props?: {}): any;
|
|
54
55
|
footer(props?: {}): any;
|
|
55
56
|
}
|
|
56
|
-
declare const
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
58
|
close: () => any;
|
|
58
59
|
drag: (percentageDragged: number) => any;
|
|
59
60
|
"update:open": (open: boolean) => any;
|
|
61
|
+
"close:prevent": () => any;
|
|
60
62
|
release: (open: boolean) => any;
|
|
61
63
|
"update:activeSnapPoint": (val: string | number) => any;
|
|
62
64
|
animationEnd: (open: boolean) => any;
|
|
@@ -64,6 +66,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
|
|
|
64
66
|
onClose?: (() => any) | undefined;
|
|
65
67
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
66
68
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
69
|
+
"onClose:prevent"?: (() => any) | undefined;
|
|
67
70
|
onRelease?: ((open: boolean) => any) | undefined;
|
|
68
71
|
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
69
72
|
onAnimationEnd?: ((open: boolean) => any) | undefined;
|
|
@@ -75,6 +78,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
|
|
|
75
78
|
dismissible: boolean;
|
|
76
79
|
handle: boolean;
|
|
77
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DrawerSlots>;
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
78
82
|
export default _default;
|
|
79
83
|
type __VLS_WithSlots<T, S> = T & {
|
|
80
84
|
new (): {
|
|
@@ -38,18 +38,32 @@ const props = defineProps({
|
|
|
38
38
|
preventScrollRestoration: { type: Boolean, required: false },
|
|
39
39
|
snapPoints: { type: Array, required: false }
|
|
40
40
|
});
|
|
41
|
-
const emits = defineEmits(["drag", "release", "close", "update:open", "update:activeSnapPoint", "animationEnd"]);
|
|
41
|
+
const emits = defineEmits(["close:prevent", "drag", "release", "close", "update:open", "update:activeSnapPoint", "animationEnd"]);
|
|
42
42
|
const slots = defineSlots();
|
|
43
43
|
const appConfig = useAppConfig();
|
|
44
44
|
const rootProps = useForwardPropsEmits(reactivePick(props, "activeSnapPoint", "closeThreshold", "shouldScaleBackground", "setBackgroundColorOnScale", "scrollLockTimeout", "fixed", "dismissible", "modal", "open", "defaultOpen", "nested", "direction", "noBodyStyles", "handleOnly", "preventScrollRestoration", "snapPoints"), emits);
|
|
45
45
|
const portalProps = usePortal(toRef(() => props.portal));
|
|
46
46
|
const contentProps = toRef(() => props.content);
|
|
47
|
-
const contentEvents = {
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const contentEvents = computed(() => {
|
|
48
|
+
const defaultEvents = {
|
|
49
|
+
closeAutoFocus: (e) => e.preventDefault()
|
|
50
|
+
};
|
|
51
|
+
if (!props.dismissible) {
|
|
52
|
+
const events = ["pointerDownOutside", "interactOutside", "escapeKeyDown"];
|
|
53
|
+
return events.reduce((acc, curr) => {
|
|
54
|
+
acc[curr] = (e) => {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
emits("close:prevent");
|
|
57
|
+
};
|
|
58
|
+
return acc;
|
|
59
|
+
}, defaultEvents);
|
|
60
|
+
}
|
|
61
|
+
return defaultEvents;
|
|
62
|
+
});
|
|
50
63
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.drawer || {} })({
|
|
51
64
|
direction: props.direction,
|
|
52
|
-
inset: props.inset
|
|
65
|
+
inset: props.inset,
|
|
66
|
+
snapPoints: props.snapPoints && props.snapPoints.length > 0
|
|
53
67
|
}));
|
|
54
68
|
</script>
|
|
55
69
|
|
|
@@ -43,6 +43,7 @@ export interface DrawerProps extends Pick<DrawerRootProps, 'activeSnapPoint' | '
|
|
|
43
43
|
ui?: Drawer['slots'];
|
|
44
44
|
}
|
|
45
45
|
export interface DrawerEmits extends DrawerRootEmits {
|
|
46
|
+
(e: 'close:prevent'): void;
|
|
46
47
|
}
|
|
47
48
|
export interface DrawerSlots {
|
|
48
49
|
default(props?: {}): any;
|
|
@@ -53,10 +54,11 @@ export interface DrawerSlots {
|
|
|
53
54
|
body(props?: {}): any;
|
|
54
55
|
footer(props?: {}): any;
|
|
55
56
|
}
|
|
56
|
-
declare const
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
58
|
close: () => any;
|
|
58
59
|
drag: (percentageDragged: number) => any;
|
|
59
60
|
"update:open": (open: boolean) => any;
|
|
61
|
+
"close:prevent": () => any;
|
|
60
62
|
release: (open: boolean) => any;
|
|
61
63
|
"update:activeSnapPoint": (val: string | number) => any;
|
|
62
64
|
animationEnd: (open: boolean) => any;
|
|
@@ -64,6 +66,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
|
|
|
64
66
|
onClose?: (() => any) | undefined;
|
|
65
67
|
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
66
68
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
69
|
+
"onClose:prevent"?: (() => any) | undefined;
|
|
67
70
|
onRelease?: ((open: boolean) => any) | undefined;
|
|
68
71
|
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
69
72
|
onAnimationEnd?: ((open: boolean) => any) | undefined;
|
|
@@ -75,6 +78,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
|
|
|
75
78
|
dismissible: boolean;
|
|
76
79
|
handle: boolean;
|
|
77
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DrawerSlots>;
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
78
82
|
export default _default;
|
|
79
83
|
type __VLS_WithSlots<T, S> = T & {
|
|
80
84
|
new (): {
|
|
@@ -102,17 +102,18 @@ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayO
|
|
|
102
102
|
active?: boolean;
|
|
103
103
|
index: number;
|
|
104
104
|
}>;
|
|
105
|
-
declare const
|
|
106
|
-
props: __VLS_PrettifyLocal<
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
expose(exposed:
|
|
105
|
+
declare const __VLS_export: <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
|
+
props: __VLS_PrettifyLocal<DropdownMenuProps<T> & {
|
|
107
|
+
"onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
108
|
+
}> & import("vue").PublicProps;
|
|
109
|
+
expose: (exposed: {}) => void;
|
|
110
110
|
attrs: any;
|
|
111
111
|
slots: DropdownMenuSlots<T, NestedItem<T>>;
|
|
112
112
|
emit: (evt: "update:open", payload: boolean) => void;
|
|
113
113
|
}>) => import("vue").VNode & {
|
|
114
114
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
115
115
|
};
|
|
116
|
+
declare const _default: typeof __VLS_export;
|
|
116
117
|
export default _default;
|
|
117
118
|
type __VLS_PrettifyLocal<T> = {
|
|
118
119
|
[K in keyof T as K]: T[K];
|