@shwfed/nuxt 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/app.d.vue.ts +2 -0
- package/dist/runtime/components/app.vue +4 -1
- package/dist/runtime/components/app.vue.d.ts +2 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +5 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +3 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +5 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -22,6 +22,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
22
22
|
commands?: ReadonlyArray<Group>;
|
|
23
23
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
24
|
menu?: (props: {}) => any;
|
|
25
|
+
} & {
|
|
26
|
+
'dropdown-trigger'?: (props: {}) => any;
|
|
25
27
|
} & {
|
|
26
28
|
default?: (props: {}) => any;
|
|
27
29
|
}>;
|
|
@@ -153,7 +153,7 @@ whenever(() => meta_k?.value, () => {
|
|
|
153
153
|
type="button"
|
|
154
154
|
class="text-white text-sm cursor-pointer appearance-none outline-none pl-4 py-2"
|
|
155
155
|
>
|
|
156
|
-
|
|
156
|
+
<slot name="dropdown-trigger" />
|
|
157
157
|
</button>
|
|
158
158
|
</DropdownMenuTrigger>
|
|
159
159
|
<DropdownMenuContent
|
|
@@ -171,6 +171,9 @@ whenever(() => meta_k?.value, () => {
|
|
|
171
171
|
<DropdownMenuItem
|
|
172
172
|
v-for="item in group.children"
|
|
173
173
|
:key="item.id"
|
|
174
|
+
@select="item.effect.pipe(Effect.scoped).pipe(Effect.tap(() => {
|
|
175
|
+
isCommandOpen = false;
|
|
176
|
+
})).pipe(Effect.runPromise)"
|
|
174
177
|
>
|
|
175
178
|
<Icon
|
|
176
179
|
v-if="item.icon"
|
|
@@ -22,6 +22,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
22
22
|
commands?: ReadonlyArray<Group>;
|
|
23
23
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
24
|
menu?: (props: {}) => any;
|
|
25
|
+
} & {
|
|
26
|
+
'dropdown-trigger'?: (props: {}) => any;
|
|
25
27
|
} & {
|
|
26
28
|
default?: (props: {}) => any;
|
|
27
29
|
}>;
|
|
@@ -9,7 +9,11 @@ declare var __VLS_8: {};
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
select: (event: Event) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
13
17
|
variant: "default" | "destructive";
|
|
14
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
-
import { DropdownMenuItem,
|
|
3
|
+
import { DropdownMenuItem, useForwardPropsEmits } from "reka-ui";
|
|
4
4
|
import { cn } from "../../../utils/cn";
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
disabled: { type: Boolean, required: false },
|
|
@@ -12,7 +12,8 @@ const props = defineProps({
|
|
|
12
12
|
variant: { type: String, required: false, default: "default" }
|
|
13
13
|
});
|
|
14
14
|
const delegatedProps = reactiveOmit(props, "inset", "variant", "class");
|
|
15
|
-
const
|
|
15
|
+
const emits = defineEmits(["select"]);
|
|
16
|
+
const forwardedProps = useForwardPropsEmits(delegatedProps, emits);
|
|
16
17
|
</script>
|
|
17
18
|
|
|
18
19
|
<template>
|
|
@@ -9,7 +9,11 @@ declare var __VLS_8: {};
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
select: (event: Event) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
13
17
|
variant: "default" | "destructive";
|
|
14
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|