@shwfed/nuxt 0.1.43 → 0.1.45
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 +3 -0
- package/dist/runtime/components/app.vue +6 -1
- package/dist/runtime/components/app.vue.d.ts +3 -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
|
@@ -5,6 +5,7 @@ type Item = Readonly<{
|
|
|
5
5
|
id: string;
|
|
6
6
|
title: string;
|
|
7
7
|
icon?: string;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
keywords?: ReadonlyArray<string>;
|
|
9
10
|
effect: Effect.Effect<void, never, Scope.Scope>;
|
|
10
11
|
}>;
|
|
@@ -22,6 +23,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
22
23
|
commands?: ReadonlyArray<Group>;
|
|
23
24
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
25
|
menu?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
'dropdown-trigger'?: (props: {}) => any;
|
|
25
28
|
} & {
|
|
26
29
|
default?: (props: {}) => any;
|
|
27
30
|
}>;
|
|
@@ -60,6 +60,7 @@ whenever(() => meta_k?.value, () => {
|
|
|
60
60
|
v-for="child in group.children"
|
|
61
61
|
:key="child.id"
|
|
62
62
|
:value="child.id"
|
|
63
|
+
:disabled="child.disabled"
|
|
63
64
|
@select="
|
|
64
65
|
child.effect.pipe(Effect.scoped).pipe(Effect.tap(() => {
|
|
65
66
|
isCommandOpen = false;
|
|
@@ -153,7 +154,7 @@ whenever(() => meta_k?.value, () => {
|
|
|
153
154
|
type="button"
|
|
154
155
|
class="text-white text-sm cursor-pointer appearance-none outline-none pl-4 py-2"
|
|
155
156
|
>
|
|
156
|
-
|
|
157
|
+
<slot name="dropdown-trigger" />
|
|
157
158
|
</button>
|
|
158
159
|
</DropdownMenuTrigger>
|
|
159
160
|
<DropdownMenuContent
|
|
@@ -171,6 +172,10 @@ whenever(() => meta_k?.value, () => {
|
|
|
171
172
|
<DropdownMenuItem
|
|
172
173
|
v-for="item in group.children"
|
|
173
174
|
:key="item.id"
|
|
175
|
+
:disabled="item.disabled"
|
|
176
|
+
@select="item.effect.pipe(Effect.scoped).pipe(Effect.tap(() => {
|
|
177
|
+
isCommandOpen = false;
|
|
178
|
+
})).pipe(Effect.runPromise)"
|
|
174
179
|
>
|
|
175
180
|
<Icon
|
|
176
181
|
v-if="item.icon"
|
|
@@ -5,6 +5,7 @@ type Item = Readonly<{
|
|
|
5
5
|
id: string;
|
|
6
6
|
title: string;
|
|
7
7
|
icon?: string;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
keywords?: ReadonlyArray<string>;
|
|
9
10
|
effect: Effect.Effect<void, never, Scope.Scope>;
|
|
10
11
|
}>;
|
|
@@ -22,6 +23,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
22
23
|
commands?: ReadonlyArray<Group>;
|
|
23
24
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
25
|
menu?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
'dropdown-trigger'?: (props: {}) => any;
|
|
25
28
|
} & {
|
|
26
29
|
default?: (props: {}) => any;
|
|
27
30
|
}>;
|
|
@@ -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>;
|