@nuxt/ui 3.3.5 → 3.3.6
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 +2 -2
- 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.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.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.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 +2 -1
- package/dist/runtime/components/Toast.vue.d.ts +2 -1
- package/dist/runtime/components/Toaster.d.vue.ts +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.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 +14 -14
package/.nuxt/ui/drawer.ts
CHANGED
|
@@ -43,6 +43,9 @@ export default {
|
|
|
43
43
|
"true": {
|
|
44
44
|
"content": "rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"
|
|
45
45
|
}
|
|
46
|
+
},
|
|
47
|
+
"snapPoints": {
|
|
48
|
+
"true": ""
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
"compoundVariants": [
|
|
@@ -56,6 +59,16 @@ export default {
|
|
|
56
59
|
"handle": "!w-12 !h-1.5 mx-auto"
|
|
57
60
|
}
|
|
58
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"direction": [
|
|
64
|
+
"top" as typeof direction[number],
|
|
65
|
+
"bottom" as typeof direction[number]
|
|
66
|
+
],
|
|
67
|
+
"snapPoints": true,
|
|
68
|
+
"class": {
|
|
69
|
+
"content": "h-full"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
59
72
|
{
|
|
60
73
|
"direction": [
|
|
61
74
|
"right" as typeof direction[number],
|
|
@@ -66,6 +79,16 @@ export default {
|
|
|
66
79
|
"handle": "!h-12 !w-1.5 mt-auto mb-auto"
|
|
67
80
|
}
|
|
68
81
|
},
|
|
82
|
+
{
|
|
83
|
+
"direction": [
|
|
84
|
+
"right" as typeof direction[number],
|
|
85
|
+
"left" as typeof direction[number]
|
|
86
|
+
],
|
|
87
|
+
"snapPoints": true,
|
|
88
|
+
"class": {
|
|
89
|
+
"content": "w-full"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
69
92
|
{
|
|
70
93
|
"direction": "top" as typeof direction[number],
|
|
71
94
|
"inset": true,
|
package/dist/module.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"docs": "https://ui3.nuxt.com/getting-started/installation/nuxt",
|
|
5
5
|
"configKey": "ui",
|
|
6
6
|
"compatibility": {
|
|
7
7
|
"nuxt": ">=3.16.0"
|
|
8
8
|
},
|
|
9
9
|
"builder": {
|
|
10
|
-
"@nuxt/module-builder": "1.0.
|
|
10
|
+
"@nuxt/module-builder": "1.0.1",
|
|
11
11
|
"unbuild": "3.6.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.
|
|
3
|
+
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.DBpKc5X3.mjs';
|
|
4
4
|
import '../dist/runtime/utils/index.js';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'scule';
|
|
@@ -8,7 +8,7 @@ import 'tailwindcss/colors';
|
|
|
8
8
|
import 'knitwork';
|
|
9
9
|
|
|
10
10
|
const name = "@nuxt/ui";
|
|
11
|
-
const version = "3.3.
|
|
11
|
+
const version = "3.3.6";
|
|
12
12
|
|
|
13
13
|
const module = defineNuxtModule({
|
|
14
14
|
meta: {
|
|
@@ -60,17 +60,18 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
|
|
|
60
60
|
index: number;
|
|
61
61
|
open: boolean;
|
|
62
62
|
}>;
|
|
63
|
-
declare const
|
|
64
|
-
props: __VLS_PrettifyLocal<
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
expose(exposed:
|
|
63
|
+
declare const __VLS_export: <T extends AccordionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
64
|
+
props: __VLS_PrettifyLocal<AccordionProps<T> & {
|
|
65
|
+
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
67
|
+
expose: (exposed: {}) => void;
|
|
68
68
|
attrs: any;
|
|
69
69
|
slots: AccordionSlots<T>;
|
|
70
70
|
emit: (evt: "update:modelValue", value: string | string[] | undefined) => void;
|
|
71
71
|
}>) => import("vue").VNode & {
|
|
72
72
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
73
73
|
};
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
74
75
|
export default _default;
|
|
75
76
|
type __VLS_PrettifyLocal<T> = {
|
|
76
77
|
[K in keyof T as K]: T[K];
|
|
@@ -60,17 +60,18 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
|
|
|
60
60
|
index: number;
|
|
61
61
|
open: boolean;
|
|
62
62
|
}>;
|
|
63
|
-
declare const
|
|
64
|
-
props: __VLS_PrettifyLocal<
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
expose(exposed:
|
|
63
|
+
declare const __VLS_export: <T extends AccordionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
64
|
+
props: __VLS_PrettifyLocal<AccordionProps<T> & {
|
|
65
|
+
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
67
|
+
expose: (exposed: {}) => void;
|
|
68
68
|
attrs: any;
|
|
69
69
|
slots: AccordionSlots<T>;
|
|
70
70
|
emit: (evt: "update:modelValue", value: string | string[] | undefined) => void;
|
|
71
71
|
}>) => import("vue").VNode & {
|
|
72
72
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
73
73
|
};
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
74
75
|
export default _default;
|
|
75
76
|
type __VLS_PrettifyLocal<T> = {
|
|
76
77
|
[K in keyof T as K]: T[K];
|
|
@@ -66,13 +66,14 @@ export interface AlertSlots {
|
|
|
66
66
|
};
|
|
67
67
|
}): any;
|
|
68
68
|
}
|
|
69
|
-
declare const
|
|
69
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
70
|
"update:open": (value: boolean) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
72
72
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
73
73
|
}>, {
|
|
74
74
|
orientation: Alert["variants"]["orientation"];
|
|
75
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AlertSlots>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
76
77
|
export default _default;
|
|
77
78
|
type __VLS_WithSlots<T, S> = T & {
|
|
78
79
|
new (): {
|
|
@@ -66,13 +66,14 @@ export interface AlertSlots {
|
|
|
66
66
|
};
|
|
67
67
|
}): any;
|
|
68
68
|
}
|
|
69
|
-
declare const
|
|
69
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
70
|
"update:open": (value: boolean) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
72
72
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
73
73
|
}>, {
|
|
74
74
|
orientation: Alert["variants"]["orientation"];
|
|
75
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AlertSlots>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
76
77
|
export default _default;
|
|
77
78
|
type __VLS_WithSlots<T, S> = T & {
|
|
78
79
|
new (): {
|
|
@@ -4,20 +4,21 @@ export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProv
|
|
|
4
4
|
tooltip?: TooltipProviderProps;
|
|
5
5
|
toaster?: ToasterProps | null;
|
|
6
6
|
locale?: Locale<T>;
|
|
7
|
-
portal?: string | HTMLElement;
|
|
7
|
+
portal?: boolean | string | HTMLElement;
|
|
8
8
|
}
|
|
9
9
|
export interface AppSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
props: __VLS_PrettifyLocal<
|
|
14
|
-
expose(exposed:
|
|
12
|
+
declare const __VLS_export: <T extends Messages>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<AppProps<T>> & import("vue").PublicProps;
|
|
14
|
+
expose: (exposed: {}) => void;
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: AppSlots;
|
|
17
17
|
emit: {};
|
|
18
18
|
}>) => import("vue").VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
21
22
|
export default _default;
|
|
22
23
|
type __VLS_PrettifyLocal<T> = {
|
|
23
24
|
[K in keyof T as K]: T[K];
|
|
@@ -16,7 +16,7 @@ const props = defineProps({
|
|
|
16
16
|
tooltip: { type: Object, required: false },
|
|
17
17
|
toaster: { type: [Object, null], required: false },
|
|
18
18
|
locale: { type: Object, required: false },
|
|
19
|
-
portal: { type:
|
|
19
|
+
portal: { type: [Boolean, String], required: false, skipCheck: true, default: "body" },
|
|
20
20
|
scrollBody: { type: [Boolean, Object], required: false },
|
|
21
21
|
nonce: { type: String, required: false }
|
|
22
22
|
});
|
|
@@ -4,20 +4,21 @@ export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProv
|
|
|
4
4
|
tooltip?: TooltipProviderProps;
|
|
5
5
|
toaster?: ToasterProps | null;
|
|
6
6
|
locale?: Locale<T>;
|
|
7
|
-
portal?: string | HTMLElement;
|
|
7
|
+
portal?: boolean | string | HTMLElement;
|
|
8
8
|
}
|
|
9
9
|
export interface AppSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
props: __VLS_PrettifyLocal<
|
|
14
|
-
expose(exposed:
|
|
12
|
+
declare const __VLS_export: <T extends Messages>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<AppProps<T>> & import("vue").PublicProps;
|
|
14
|
+
expose: (exposed: {}) => void;
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: AppSlots;
|
|
17
17
|
emit: {};
|
|
18
18
|
}>) => import("vue").VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
21
22
|
export default _default;
|
|
22
23
|
type __VLS_PrettifyLocal<T> = {
|
|
23
24
|
[K in keyof T as K]: T[K];
|
|
@@ -28,11 +28,12 @@ export interface AvatarProps {
|
|
|
28
28
|
export interface AvatarSlots {
|
|
29
29
|
default(props?: {}): any;
|
|
30
30
|
}
|
|
31
|
-
declare const
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
32
32
|
as: any;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
34
|
default?: (props: {}) => any;
|
|
35
35
|
}>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
36
37
|
export default _default;
|
|
37
38
|
type __VLS_WithSlots<T, S> = T & {
|
|
38
39
|
new (): {
|
|
@@ -28,11 +28,12 @@ export interface AvatarProps {
|
|
|
28
28
|
export interface AvatarSlots {
|
|
29
29
|
default(props?: {}): any;
|
|
30
30
|
}
|
|
31
|
-
declare const
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
32
32
|
as: any;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
34
|
default?: (props: {}) => any;
|
|
35
35
|
}>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
36
37
|
export default _default;
|
|
37
38
|
type __VLS_WithSlots<T, S> = T & {
|
|
38
39
|
new (): {
|
|
@@ -22,7 +22,8 @@ export interface AvatarGroupProps {
|
|
|
22
22
|
export interface AvatarGroupSlots {
|
|
23
23
|
default(props?: {}): any;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
26
27
|
export default _default;
|
|
27
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
29
|
new (): {
|
|
@@ -22,7 +22,8 @@ export interface AvatarGroupProps {
|
|
|
22
22
|
export interface AvatarGroupSlots {
|
|
23
23
|
default(props?: {}): any;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
26
27
|
export default _default;
|
|
27
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
29
|
new (): {
|
|
@@ -32,9 +32,10 @@ export interface BadgeSlots {
|
|
|
32
32
|
default(props?: {}): any;
|
|
33
33
|
trailing(props?: {}): any;
|
|
34
34
|
}
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
36
36
|
as: any;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
38
39
|
export default _default;
|
|
39
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
40
41
|
new (): {
|
|
@@ -32,9 +32,10 @@ export interface BadgeSlots {
|
|
|
32
32
|
default(props?: {}): any;
|
|
33
33
|
trailing(props?: {}): any;
|
|
34
34
|
}
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
36
36
|
as: any;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
38
39
|
export default _default;
|
|
39
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
40
41
|
new (): {
|
|
@@ -51,15 +51,16 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
|
|
|
51
51
|
index: number;
|
|
52
52
|
active?: boolean;
|
|
53
53
|
}>;
|
|
54
|
-
declare const
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
56
|
-
expose(exposed:
|
|
54
|
+
declare const __VLS_export: <T extends BreadcrumbItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
55
|
+
props: __VLS_PrettifyLocal<BreadcrumbProps<T>> & import("vue").PublicProps;
|
|
56
|
+
expose: (exposed: {}) => void;
|
|
57
57
|
attrs: any;
|
|
58
58
|
slots: BreadcrumbSlots<T>;
|
|
59
59
|
emit: {};
|
|
60
60
|
}>) => import("vue").VNode & {
|
|
61
61
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
62
62
|
};
|
|
63
|
+
declare const _default: typeof __VLS_export;
|
|
63
64
|
export default _default;
|
|
64
65
|
type __VLS_PrettifyLocal<T> = {
|
|
65
66
|
[K in keyof T as K]: T[K];
|
|
@@ -51,15 +51,16 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
|
|
|
51
51
|
index: number;
|
|
52
52
|
active?: boolean;
|
|
53
53
|
}>;
|
|
54
|
-
declare const
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
56
|
-
expose(exposed:
|
|
54
|
+
declare const __VLS_export: <T extends BreadcrumbItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
55
|
+
props: __VLS_PrettifyLocal<BreadcrumbProps<T>> & import("vue").PublicProps;
|
|
56
|
+
expose: (exposed: {}) => void;
|
|
57
57
|
attrs: any;
|
|
58
58
|
slots: BreadcrumbSlots<T>;
|
|
59
59
|
emit: {};
|
|
60
60
|
}>) => import("vue").VNode & {
|
|
61
61
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
62
62
|
};
|
|
63
|
+
declare const _default: typeof __VLS_export;
|
|
63
64
|
export default _default;
|
|
64
65
|
type __VLS_PrettifyLocal<T> = {
|
|
65
66
|
[K in keyof T as K]: T[K];
|
|
@@ -35,7 +35,8 @@ export interface ButtonSlots {
|
|
|
35
35
|
default(props?: {}): any;
|
|
36
36
|
trailing(props?: {}): any;
|
|
37
37
|
}
|
|
38
|
-
declare const
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
42
|
new (): {
|
|
@@ -35,7 +35,8 @@ export interface ButtonSlots {
|
|
|
35
35
|
default(props?: {}): any;
|
|
36
36
|
trailing(props?: {}): any;
|
|
37
37
|
}
|
|
38
|
-
declare const
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
42
|
new (): {
|
|
@@ -23,9 +23,10 @@ export interface ButtonGroupProps {
|
|
|
23
23
|
export interface ButtonGroupSlots {
|
|
24
24
|
default(props?: {}): any;
|
|
25
25
|
}
|
|
26
|
-
declare const
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
27
27
|
orientation: ButtonGroup["variants"]["orientation"];
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
29
30
|
export default _default;
|
|
30
31
|
type __VLS_WithSlots<T, S> = T & {
|
|
31
32
|
new (): {
|
|
@@ -23,9 +23,10 @@ export interface ButtonGroupProps {
|
|
|
23
23
|
export interface ButtonGroupSlots {
|
|
24
24
|
default(props?: {}): any;
|
|
25
25
|
}
|
|
26
|
-
declare const
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
27
27
|
orientation: ButtonGroup["variants"]["orientation"];
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
29
30
|
export default _default;
|
|
30
31
|
type __VLS_WithSlots<T, S> = T & {
|
|
31
32
|
new (): {
|
|
@@ -92,20 +92,21 @@ export interface CalendarSlots {
|
|
|
92
92
|
day: string;
|
|
93
93
|
}) => any;
|
|
94
94
|
}
|
|
95
|
-
declare const
|
|
96
|
-
props: __VLS_PrettifyLocal<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
expose(exposed:
|
|
95
|
+
declare const __VLS_export: <R extends boolean, M extends boolean>(__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<CalendarProps<R, M> & {
|
|
97
|
+
"onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
|
|
98
|
+
"onUpdate:placeholder"?: ((...args: DateValue[]) => any) | undefined;
|
|
99
|
+
"onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
|
|
100
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
101
|
+
}> & import("vue").PublicProps;
|
|
102
|
+
expose: (exposed: {}) => void;
|
|
103
103
|
attrs: any;
|
|
104
104
|
slots: CalendarSlots;
|
|
105
105
|
emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
|
|
106
106
|
}>) => import("vue").VNode & {
|
|
107
107
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
108
108
|
};
|
|
109
|
+
declare const _default: typeof __VLS_export;
|
|
109
110
|
export default _default;
|
|
110
111
|
type __VLS_PrettifyLocal<T> = {
|
|
111
112
|
[K in keyof T as K]: T[K];
|
|
@@ -92,20 +92,21 @@ export interface CalendarSlots {
|
|
|
92
92
|
day: string;
|
|
93
93
|
}) => any;
|
|
94
94
|
}
|
|
95
|
-
declare const
|
|
96
|
-
props: __VLS_PrettifyLocal<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
expose(exposed:
|
|
95
|
+
declare const __VLS_export: <R extends boolean, M extends boolean>(__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<CalendarProps<R, M> & {
|
|
97
|
+
"onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
|
|
98
|
+
"onUpdate:placeholder"?: ((...args: DateValue[]) => any) | undefined;
|
|
99
|
+
"onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
|
|
100
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
101
|
+
}> & import("vue").PublicProps;
|
|
102
|
+
expose: (exposed: {}) => void;
|
|
103
103
|
attrs: any;
|
|
104
104
|
slots: CalendarSlots;
|
|
105
105
|
emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
|
|
106
106
|
}>) => import("vue").VNode & {
|
|
107
107
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
108
108
|
};
|
|
109
|
+
declare const _default: typeof __VLS_export;
|
|
109
110
|
export default _default;
|
|
110
111
|
type __VLS_PrettifyLocal<T> = {
|
|
111
112
|
[K in keyof T as K]: T[K];
|
|
@@ -20,7 +20,8 @@ export interface CardSlots {
|
|
|
20
20
|
default(props?: {}): any;
|
|
21
21
|
footer(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
24
25
|
export default _default;
|
|
25
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
27
|
new (): {
|
|
@@ -20,7 +20,8 @@ export interface CardSlots {
|
|
|
20
20
|
default(props?: {}): any;
|
|
21
21
|
footer(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
24
25
|
export default _default;
|
|
25
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
27
|
new (): {
|
|
@@ -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];
|
|
@@ -3,7 +3,7 @@ import theme from "#build/ui/carousel";
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
|
-
import { computed, ref, watch, onMounted } from "vue";
|
|
6
|
+
import { computed, ref, watch, onMounted, onBeforeUnmount } from "vue";
|
|
7
7
|
import useEmblaCarousel from "embla-carousel-vue";
|
|
8
8
|
import { Primitive, useForwardProps } from "reka-ui";
|
|
9
9
|
import { reactivePick } from "@vueuse/core";
|
|
@@ -91,11 +91,14 @@ async function loadPlugins() {
|
|
|
91
91
|
}
|
|
92
92
|
plugins.value = emblaPlugins;
|
|
93
93
|
}
|
|
94
|
-
watch(() => [props.autoplay, props.autoScroll, props.autoHeight, props.classNames, props.fade, props.wheelGestures],
|
|
95
|
-
|
|
96
|
-
watch([options, plugins], () => {
|
|
94
|
+
watch(() => [props.autoplay, props.autoScroll, props.autoHeight, props.classNames, props.fade, props.wheelGestures], async () => {
|
|
95
|
+
await loadPlugins();
|
|
97
96
|
emblaApi.value?.reInit(options.value, plugins.value);
|
|
98
|
-
});
|
|
97
|
+
}, { immediate: true });
|
|
98
|
+
const [emblaRef, emblaApi] = useEmblaCarousel(options, plugins);
|
|
99
|
+
watch(options, () => {
|
|
100
|
+
emblaApi.value?.reInit(options.value, plugins.value);
|
|
101
|
+
}, { flush: "post" });
|
|
99
102
|
function scrollPrev() {
|
|
100
103
|
emblaApi.value?.scrollPrev();
|
|
101
104
|
}
|
|
@@ -106,8 +109,15 @@ function scrollTo(index) {
|
|
|
106
109
|
emblaApi.value?.scrollTo(index);
|
|
107
110
|
}
|
|
108
111
|
function onKeyDown(event) {
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
let prevKey;
|
|
113
|
+
let nextKey;
|
|
114
|
+
if (props.orientation === "horizontal") {
|
|
115
|
+
prevKey = dir.value === "ltr" ? "ArrowLeft" : "ArrowRight";
|
|
116
|
+
nextKey = dir.value === "ltr" ? "ArrowRight" : "ArrowLeft";
|
|
117
|
+
} else {
|
|
118
|
+
prevKey = "ArrowUp";
|
|
119
|
+
nextKey = "ArrowDown";
|
|
120
|
+
}
|
|
111
121
|
if (event.key === prevKey) {
|
|
112
122
|
event.preventDefault();
|
|
113
123
|
scrollPrev();
|
|
@@ -138,11 +148,21 @@ onMounted(() => {
|
|
|
138
148
|
if (!emblaApi.value) {
|
|
139
149
|
return;
|
|
140
150
|
}
|
|
141
|
-
emblaApi.value
|
|
142
|
-
emblaApi.value
|
|
143
|
-
emblaApi.value
|
|
144
|
-
emblaApi.value
|
|
145
|
-
emblaApi.value
|
|
151
|
+
emblaApi.value.on("init", onInit);
|
|
152
|
+
emblaApi.value.on("init", onSelect);
|
|
153
|
+
emblaApi.value.on("reInit", onInit);
|
|
154
|
+
emblaApi.value.on("reInit", onSelect);
|
|
155
|
+
emblaApi.value.on("select", onSelect);
|
|
156
|
+
});
|
|
157
|
+
onBeforeUnmount(() => {
|
|
158
|
+
if (!emblaApi.value) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
emblaApi.value.off("init", onInit);
|
|
162
|
+
emblaApi.value.off("init", onSelect);
|
|
163
|
+
emblaApi.value.off("reInit", onInit);
|
|
164
|
+
emblaApi.value.off("reInit", onSelect);
|
|
165
|
+
emblaApi.value.off("select", onSelect);
|
|
146
166
|
});
|
|
147
167
|
defineExpose({
|
|
148
168
|
emblaRef,
|