@una-ui/nuxt-edge 0.67.1-29488065.a37ccec → 0.67.1-29496508.2533395
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/module.mjs +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +6 -1
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +3 -1
- package/dist/runtime/components/combobox/ComboboxViewport.vue +7 -1
- package/dist/runtime/components/combobox/ComboboxViewport.vue.d.ts +6 -3
- package/package.json +3 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { cn } from "../../utils";
|
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import { computed } from "vue";
|
|
9
|
+
import { computed, toRef, useTemplateRef } from "vue";
|
|
10
10
|
import ComboboxAnchor from "./ComboboxAnchor.vue";
|
|
11
11
|
import ComboboxEmpty from "./ComboboxEmpty.vue";
|
|
12
12
|
import ComboboxGroup from "./ComboboxGroup.vue";
|
|
@@ -134,6 +134,10 @@ function isItemSelected(item) {
|
|
|
134
134
|
}
|
|
135
135
|
return getItemProperty(props.modelValue, props.valueKey) === itemValue;
|
|
136
136
|
}
|
|
137
|
+
const viewportRef = useTemplateRef("viewportRef");
|
|
138
|
+
defineExpose({
|
|
139
|
+
viewportRef: toRef(() => viewportRef.value?.viewportRef)
|
|
140
|
+
});
|
|
137
141
|
</script>
|
|
138
142
|
|
|
139
143
|
<template>
|
|
@@ -224,6 +228,7 @@ function isItemSelected(item) {
|
|
|
224
228
|
<slot name="body">
|
|
225
229
|
<ComboboxViewport
|
|
226
230
|
v-bind="props._comboboxViewport"
|
|
231
|
+
ref="viewportRef"
|
|
227
232
|
:una
|
|
228
233
|
>
|
|
229
234
|
<ComboboxEmpty
|
|
@@ -9,7 +9,9 @@ declare const _default: <T extends AcceptableValue, M extends boolean = false>(_
|
|
|
9
9
|
} | undefined) => any) | undefined;
|
|
10
10
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onHighlight" | "onUpdate:open"> & NComboboxProps<T, M> & Partial<{}>> & import("vue").PublicProps;
|
|
12
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
12
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
13
|
+
viewportRef: Readonly<import("vue").Ref<any, any>>;
|
|
14
|
+
}>): void;
|
|
13
15
|
attrs: any;
|
|
14
16
|
slots: {
|
|
15
17
|
default?: (props: {}) => any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { reactiveOmit } from "@vueuse/core";
|
|
3
3
|
import { ComboboxViewport, useForwardProps } from "reka-ui";
|
|
4
|
+
import { useTemplateRef } from "vue";
|
|
4
5
|
import { cn } from "../../utils";
|
|
5
6
|
const props = defineProps({
|
|
6
7
|
una: { type: Object, required: false },
|
|
@@ -12,12 +13,17 @@ const props = defineProps({
|
|
|
12
13
|
});
|
|
13
14
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
14
15
|
const forwarded = useForwardProps(delegatedProps);
|
|
16
|
+
const viewportRef = useTemplateRef("viewportRef");
|
|
17
|
+
defineExpose({
|
|
18
|
+
viewportRef
|
|
19
|
+
});
|
|
15
20
|
</script>
|
|
16
21
|
|
|
17
22
|
<template>
|
|
18
23
|
<ComboboxViewport
|
|
19
|
-
data-slot="combobox-viewport"
|
|
20
24
|
v-bind="forwarded"
|
|
25
|
+
ref="viewportRef"
|
|
26
|
+
data-slot="combobox-viewport"
|
|
21
27
|
:class="cn(
|
|
22
28
|
'combobox-viewport',
|
|
23
29
|
props.una?.comboboxViewport,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
1
2
|
import type { NComboboxViewportProps } from '../../types/index.js';
|
|
2
|
-
declare var
|
|
3
|
+
declare var __VLS_7: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
6
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<NComboboxViewportProps, {
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<NComboboxViewportProps, {
|
|
8
|
+
viewportRef: Readonly<import("vue").ShallowRef<ComponentPublicInstance | null>>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NComboboxViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
11
|
export default _default;
|
|
9
12
|
type __VLS_WithSlots<T, S> = T & {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt-edge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.67.1-
|
|
4
|
+
"version": "0.67.1-29496508.2533395",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@nuxt/kit": "^3.19.2",
|
|
41
41
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
42
42
|
"@tanstack/vue-table": "^8.21.3",
|
|
43
|
-
"@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@0.67.1-
|
|
44
|
-
"@una-ui/preset": "npm:@una-ui/preset-edge@0.67.1-
|
|
43
|
+
"@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@0.67.1-29496508.2533395",
|
|
44
|
+
"@una-ui/preset": "npm:@una-ui/preset-edge@0.67.1-29496508.2533395",
|
|
45
45
|
"@unocss/core": "^66.5.10",
|
|
46
46
|
"@unocss/nuxt": "^66.5.10",
|
|
47
47
|
"@unocss/preset-attributify": "^66.5.10",
|