@una-ui/nuxt 0.57.0 → 0.58.0
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/alert-dialog/AlertDialog.vue.d.ts +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +1 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +17 -17
- package/dist/runtime/components/combobox/ComboboxInput.vue +2 -0
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/data/table/TableBody.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableCaption.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableCell.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +21 -2
- package/dist/runtime/components/data/table/TableFooter.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableHead.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableHeader.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableLoading.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableRow.vue.d.ts +22 -3
- package/dist/runtime/components/drawer/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Alert.vue.d.ts +5 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +5 -1
- package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +5 -2
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/popover/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Input.vue +50 -4
- package/dist/runtime/components/forms/Input.vue.d.ts +19 -2
- package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/forms/select/Select.vue.d.ts +17 -17
- package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +16 -6
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +7 -1
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +3 -1
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarInput.vue +2 -1
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/runtime/types/input.d.ts +9 -3
- package/dist/runtime/types/table.d.ts +9 -0
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +4 -0
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, onMounted, ref } from "vue";
|
|
3
|
-
import { cn, randomId } from "../../utils";
|
|
3
|
+
import { cn, looseToNumber, randomId } from "../../utils";
|
|
4
4
|
import NIcon from "../elements/Icon.vue";
|
|
5
5
|
defineOptions({
|
|
6
6
|
inheritAttrs: false
|
|
@@ -10,7 +10,8 @@ const props = defineProps({
|
|
|
10
10
|
status: { type: String, required: false },
|
|
11
11
|
loading: { type: Boolean, required: false },
|
|
12
12
|
reverse: { type: Boolean, required: false },
|
|
13
|
-
|
|
13
|
+
autofocus: { type: Boolean, required: false },
|
|
14
|
+
autofocusDelay: { type: Number, required: false, default: 0 },
|
|
14
15
|
leading: { type: String, required: false },
|
|
15
16
|
trailing: { type: String, required: false },
|
|
16
17
|
input: { type: String, required: false },
|
|
@@ -23,8 +24,15 @@ const props = defineProps({
|
|
|
23
24
|
una: { type: Object, required: false },
|
|
24
25
|
_inputWrapper: { type: Object, required: false }
|
|
25
26
|
});
|
|
26
|
-
const emit = defineEmits([
|
|
27
|
+
const emit = defineEmits([
|
|
28
|
+
"leading",
|
|
29
|
+
"trailing",
|
|
30
|
+
"update:modelValue",
|
|
31
|
+
"change",
|
|
32
|
+
"blur"
|
|
33
|
+
]);
|
|
27
34
|
const slots = defineSlots();
|
|
35
|
+
const [modelValue, modelModifiers] = defineModel({ type: null });
|
|
28
36
|
const id = props.id ?? randomId("input");
|
|
29
37
|
const isLeading = computed(() => props.leading || slots.leading);
|
|
30
38
|
const isTrailing = computed(() => props.trailing || slots.trailing || props.status || props.loading);
|
|
@@ -88,13 +96,49 @@ function resizeTextarea() {
|
|
|
88
96
|
if (inputRef.value.rows > maxAutoresizeRows)
|
|
89
97
|
inputRef.value.rows = maxAutoresizeRows;
|
|
90
98
|
}
|
|
99
|
+
function updateInput(value) {
|
|
100
|
+
if (modelModifiers.trim) {
|
|
101
|
+
value = value?.trim() ?? null;
|
|
102
|
+
}
|
|
103
|
+
if (modelModifiers.number || props.type === "number") {
|
|
104
|
+
value = looseToNumber(value);
|
|
105
|
+
}
|
|
106
|
+
if (modelModifiers.nullify) {
|
|
107
|
+
value ||= null;
|
|
108
|
+
}
|
|
109
|
+
modelValue.value = value;
|
|
110
|
+
emit("update:modelValue", value);
|
|
111
|
+
}
|
|
91
112
|
function onInput(event) {
|
|
92
|
-
|
|
113
|
+
if (!modelModifiers.lazy) {
|
|
114
|
+
updateInput(event.target.value);
|
|
115
|
+
}
|
|
93
116
|
resizeTextarea();
|
|
94
117
|
}
|
|
118
|
+
function onChange(event) {
|
|
119
|
+
const value = event.target.value;
|
|
120
|
+
if (modelModifiers.lazy) {
|
|
121
|
+
updateInput(value);
|
|
122
|
+
}
|
|
123
|
+
if (modelModifiers.trim) {
|
|
124
|
+
event.target.value = value.trim();
|
|
125
|
+
}
|
|
126
|
+
emit("change", event);
|
|
127
|
+
}
|
|
128
|
+
function onBlur(event) {
|
|
129
|
+
emit("blur", event);
|
|
130
|
+
}
|
|
95
131
|
onMounted(() => {
|
|
132
|
+
setTimeout(() => {
|
|
133
|
+
autoFocus();
|
|
134
|
+
}, props.autofocusDelay);
|
|
96
135
|
resizeTextarea();
|
|
97
136
|
});
|
|
137
|
+
function autoFocus() {
|
|
138
|
+
if (props.autofocus) {
|
|
139
|
+
inputRef.value?.focus();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
98
142
|
defineExpose({
|
|
99
143
|
focus: () => inputRef.value?.focus(),
|
|
100
144
|
blur: () => inputRef.value?.blur(),
|
|
@@ -152,6 +196,8 @@ defineExpose({
|
|
|
152
196
|
:cols="type === 'textarea' ? cols : void 0"
|
|
153
197
|
v-bind="$attrs"
|
|
154
198
|
@input="onInput"
|
|
199
|
+
@blur="onBlur"
|
|
200
|
+
@change="onChange"
|
|
155
201
|
/>
|
|
156
202
|
|
|
157
203
|
<div
|
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
import type { NInputProps } from '../../types/index.js';
|
|
2
|
+
type __VLS_Props = NInputProps;
|
|
2
3
|
type __VLS_Slots = {
|
|
3
4
|
leading?: any;
|
|
4
5
|
trailing?: any;
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
+
modelValue?: string | number | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
7
11
|
focus: () => void | undefined;
|
|
8
12
|
blur: () => void | undefined;
|
|
9
13
|
select: () => void | undefined;
|
|
10
14
|
inputRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
leading: (...args: any[]) => void;
|
|
17
|
+
trailing: (...args: any[]) => void;
|
|
18
|
+
blur: (...args: any[]) => void;
|
|
19
|
+
change: (...args: any[]) => void;
|
|
20
|
+
"update:modelValue": (...args: any[]) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onLeading?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onTrailing?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
12
28
|
type: HTMLInputElement["type"] | "textarea";
|
|
13
29
|
size: string;
|
|
30
|
+
autofocusDelay: number;
|
|
14
31
|
resize: string | null;
|
|
15
32
|
rows: number;
|
|
16
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
|
-
import type { NRadioGroupProps } from '../../../types/index.js';
|
|
2
|
+
import type { NRadioGroupItemProps, NRadioGroupProps } from '../../../types/index.js';
|
|
3
3
|
declare const _default: <T extends AcceptableValue>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly "onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
@@ -8,15 +8,15 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
8
8
|
attrs: any;
|
|
9
9
|
slots: {
|
|
10
10
|
default?: (props: {
|
|
11
|
-
modelValue:
|
|
11
|
+
modelValue: AcceptableValue | undefined;
|
|
12
12
|
}) => any;
|
|
13
13
|
} & {
|
|
14
14
|
label?: (props: {
|
|
15
|
-
item:
|
|
15
|
+
item: NRadioGroupItemProps | T;
|
|
16
16
|
}) => any;
|
|
17
17
|
} & {
|
|
18
18
|
description?: (props: {
|
|
19
|
-
item:
|
|
19
|
+
item: NRadioGroupItemProps | T;
|
|
20
20
|
}) => any;
|
|
21
21
|
};
|
|
22
22
|
emit: (evt: "update:modelValue", payload: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
|
-
import type { NSelectProps } from '../../../types/index.js';
|
|
2
|
+
import type { NSelectProps, SelectGroup as SelectGroupType } from '../../../types/index.js';
|
|
3
3
|
declare const _default: <T extends AcceptableValue>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
@@ -9,55 +9,55 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
11
|
default?: (props: {
|
|
12
|
-
modelValue:
|
|
13
|
-
open:
|
|
12
|
+
modelValue: AcceptableValue | AcceptableValue[] | undefined;
|
|
13
|
+
open: boolean;
|
|
14
14
|
}) => any;
|
|
15
15
|
} & {
|
|
16
16
|
'trigger-wrapper'?: (props: {
|
|
17
|
-
modelValue:
|
|
18
|
-
open:
|
|
17
|
+
modelValue: AcceptableValue | AcceptableValue[] | undefined;
|
|
18
|
+
open: boolean;
|
|
19
19
|
}) => any;
|
|
20
20
|
} & {
|
|
21
21
|
trigger?: (props: {
|
|
22
|
-
modelValue:
|
|
23
|
-
open:
|
|
22
|
+
modelValue: AcceptableValue | AcceptableValue[] | undefined;
|
|
23
|
+
open: boolean;
|
|
24
24
|
}) => any;
|
|
25
25
|
} & {
|
|
26
26
|
value?: (props: {
|
|
27
|
-
modelValue:
|
|
28
|
-
open:
|
|
27
|
+
modelValue: AcceptableValue | AcceptableValue[] | undefined;
|
|
28
|
+
open: boolean;
|
|
29
29
|
}) => any;
|
|
30
30
|
} & {
|
|
31
31
|
content?: (props: {
|
|
32
|
-
items:
|
|
32
|
+
items: T[] | SelectGroupType<T>[];
|
|
33
33
|
}) => any;
|
|
34
34
|
} & {
|
|
35
35
|
label?: (props: {
|
|
36
|
-
label:
|
|
36
|
+
label: string;
|
|
37
37
|
}) => any;
|
|
38
38
|
} & {
|
|
39
39
|
item?: (props: {
|
|
40
|
-
item:
|
|
40
|
+
item: T | SelectGroupType<T>;
|
|
41
41
|
}) => any;
|
|
42
42
|
} & {
|
|
43
43
|
indicator?: (props: {
|
|
44
|
-
item:
|
|
44
|
+
item: T | SelectGroupType<T>;
|
|
45
45
|
}) => any;
|
|
46
46
|
} & {
|
|
47
47
|
group?: (props: {
|
|
48
|
-
items:
|
|
48
|
+
items: SelectGroupType<T>;
|
|
49
49
|
}) => any;
|
|
50
50
|
} & {
|
|
51
51
|
label?: (props: {
|
|
52
|
-
label:
|
|
52
|
+
label: string;
|
|
53
53
|
}) => any;
|
|
54
54
|
} & {
|
|
55
55
|
item?: (props: {
|
|
56
|
-
item:
|
|
56
|
+
item: T;
|
|
57
57
|
}) => any;
|
|
58
58
|
} & {
|
|
59
59
|
indicator?: (props: {
|
|
60
|
-
item:
|
|
60
|
+
item: T;
|
|
61
61
|
}) => any;
|
|
62
62
|
} & {
|
|
63
63
|
default?: (props: {}) => any;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import type { NBreadcrumbProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_5: {
|
|
3
|
-
items:
|
|
3
|
+
items: Partial<import("../../../types/index.js").NButtonProps & {
|
|
4
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
5
|
+
}>[];
|
|
4
6
|
}, __VLS_10: {
|
|
5
|
-
item:
|
|
7
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
8
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
9
|
+
}>;
|
|
6
10
|
}, __VLS_15: {
|
|
7
|
-
item:
|
|
11
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
12
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
13
|
+
}>;
|
|
8
14
|
}, __VLS_20: {
|
|
9
|
-
item:
|
|
10
|
-
|
|
15
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
16
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
17
|
+
}>;
|
|
18
|
+
index: number;
|
|
11
19
|
isActive: boolean;
|
|
12
20
|
}, __VLS_22: {
|
|
13
|
-
item:
|
|
21
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
22
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
23
|
+
}>;
|
|
14
24
|
}, __VLS_33: {};
|
|
15
25
|
type __VLS_Slots = {} & {
|
|
16
26
|
root?: (props: typeof __VLS_5) => any;
|
|
@@ -7,31 +7,31 @@ declare const _default: <T extends U[], U extends NNavigationMenuItemProps>(__VL
|
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: {
|
|
9
9
|
[x: string]: ((props: {
|
|
10
|
-
item: any;
|
|
11
|
-
active:
|
|
10
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
11
|
+
active: boolean | undefined;
|
|
12
12
|
}) => any) | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
[x: string]: ((props: {
|
|
15
|
-
items:
|
|
16
|
-
item: any;
|
|
14
|
+
[x: `${string}-content`]: ((props: {
|
|
15
|
+
items: import("../../types/index.js").NNavigationMenuLinkProps[];
|
|
16
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
17
17
|
}) => any) | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
[x: string]: ((props: {
|
|
20
|
-
item: any;
|
|
20
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
21
21
|
}) => any) | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
default?: (props: {
|
|
24
|
-
items:
|
|
24
|
+
items: T | undefined;
|
|
25
25
|
}) => any;
|
|
26
26
|
} & {
|
|
27
27
|
list?: (props: {
|
|
28
|
-
items:
|
|
28
|
+
items: T | undefined;
|
|
29
29
|
}) => any;
|
|
30
30
|
} & {
|
|
31
31
|
trigger?: (props: {
|
|
32
|
-
modelValue:
|
|
33
|
-
item: any;
|
|
34
|
-
index:
|
|
32
|
+
modelValue: string;
|
|
33
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
34
|
+
index: number;
|
|
35
35
|
}) => any;
|
|
36
36
|
} & {
|
|
37
37
|
viewport?: (props: {}) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NToastProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_10: {}, __VLS_15: {}, __VLS_20: {}, __VLS_25: {}, __VLS_30: {}, __VLS_32: {
|
|
3
|
-
actions:
|
|
3
|
+
actions: import("reka-ui").ToastActionProps[];
|
|
4
4
|
}, __VLS_40: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
leading?: (props: typeof __VLS_10) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NToastActionProps } from '../../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: string | number, __VLS_11: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { NResizablePanelProps } from '../../types/index.js';
|
|
2
|
-
declare var __VLS_6:
|
|
2
|
+
declare var __VLS_6: {
|
|
3
|
+
isCollapsed: boolean;
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
collapse: () => void;
|
|
6
|
+
expand: () => void;
|
|
7
|
+
resize: (size: number) => void;
|
|
8
|
+
};
|
|
3
9
|
type __VLS_Slots = {} & {
|
|
4
10
|
default?: (props: typeof __VLS_6) => any;
|
|
5
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NSheetProps } from '../../types/index.js';
|
|
2
2
|
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
-
open:
|
|
3
|
+
open: boolean;
|
|
4
4
|
}, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_43: {}, __VLS_48: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
root?: (props: typeof __VLS_6) => any;
|
|
@@ -8,7 +8,8 @@ const props = defineProps({
|
|
|
8
8
|
status: { type: String, required: false },
|
|
9
9
|
loading: { type: Boolean, required: false },
|
|
10
10
|
reverse: { type: Boolean, required: false },
|
|
11
|
-
|
|
11
|
+
autofocus: { type: Boolean, required: false },
|
|
12
|
+
autofocusDelay: { type: Number, required: false },
|
|
12
13
|
leading: { type: String, required: false },
|
|
13
14
|
trailing: { type: String, required: false },
|
|
14
15
|
input: { type: String, required: false },
|
|
@@ -24,11 +24,17 @@ export interface NInputProps {
|
|
|
24
24
|
*/
|
|
25
25
|
reverse?: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Automatically focus the input when the component is mounted.
|
|
28
28
|
*
|
|
29
|
-
* @default
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
autofocus?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Delay the autofocus of the input when the component is mounted.
|
|
34
|
+
*
|
|
35
|
+
* @default 0
|
|
30
36
|
*/
|
|
31
|
-
|
|
37
|
+
autofocusDelay?: number;
|
|
32
38
|
/**
|
|
33
39
|
* Display leading icon.
|
|
34
40
|
*
|
|
@@ -124,32 +124,39 @@ export interface NTableProps<TData, TValue> extends Omit<CoreOptions<TData>, 'da
|
|
|
124
124
|
una?: NTableUnaProps & NScrollAreaUnaProps;
|
|
125
125
|
}
|
|
126
126
|
export interface NTableBodyProps extends PrimitiveProps {
|
|
127
|
+
[key: string]: any;
|
|
127
128
|
class?: HTMLAttributes['class'];
|
|
128
129
|
una?: Pick<NTableUnaProps, 'tableBody'>;
|
|
129
130
|
}
|
|
130
131
|
export interface NTableHeadProps extends PrimitiveProps {
|
|
132
|
+
[key: string]: any;
|
|
131
133
|
class?: HTMLAttributes['class'];
|
|
132
134
|
dataPinned?: 'left' | 'right' | false;
|
|
133
135
|
una?: Pick<NTableUnaProps, 'tableHead'>;
|
|
134
136
|
}
|
|
135
137
|
export interface NTableHeaderProps extends PrimitiveProps {
|
|
138
|
+
[key: string]: any;
|
|
136
139
|
class?: HTMLAttributes['class'];
|
|
137
140
|
una?: Pick<NTableUnaProps, 'tableHeader'>;
|
|
138
141
|
}
|
|
139
142
|
export interface NTableFooterProps extends PrimitiveProps {
|
|
143
|
+
[key: string]: any;
|
|
140
144
|
class?: HTMLAttributes['class'];
|
|
141
145
|
una?: Pick<NTableUnaProps, 'tableFooter'>;
|
|
142
146
|
}
|
|
143
147
|
export interface NTableRowProps extends PrimitiveProps {
|
|
148
|
+
[key: string]: any;
|
|
144
149
|
class?: HTMLAttributes['class'];
|
|
145
150
|
una?: Pick<NTableUnaProps, 'tableRow'>;
|
|
146
151
|
}
|
|
147
152
|
export interface NTableCellProps extends PrimitiveProps {
|
|
153
|
+
[key: string]: any;
|
|
148
154
|
class?: HTMLAttributes['class'];
|
|
149
155
|
dataPinned?: 'left' | 'right' | false;
|
|
150
156
|
una?: Pick<NTableUnaProps, 'tableCell'>;
|
|
151
157
|
}
|
|
152
158
|
export interface NTableEmptyProps {
|
|
159
|
+
[key: string]: any;
|
|
153
160
|
class?: HTMLAttributes['class'];
|
|
154
161
|
colspan?: number;
|
|
155
162
|
_tableCell?: NTableCellProps;
|
|
@@ -157,6 +164,7 @@ export interface NTableEmptyProps {
|
|
|
157
164
|
una?: Pick<NTableUnaProps, 'tableEmpty' | 'tableRow' | 'tableCell'>;
|
|
158
165
|
}
|
|
159
166
|
export interface NTableLoadingProps {
|
|
167
|
+
[key: string]: any;
|
|
160
168
|
size?: HTMLAttributes['class'];
|
|
161
169
|
enabled?: boolean;
|
|
162
170
|
class?: HTMLAttributes['class'];
|
|
@@ -167,6 +175,7 @@ export interface NTableLoadingProps {
|
|
|
167
175
|
una?: Pick<NTableUnaProps, 'tableLoading' | 'tableLoadingCell' | 'tableLoadingRow'>;
|
|
168
176
|
}
|
|
169
177
|
export interface NTableCaptionProps extends PrimitiveProps {
|
|
178
|
+
[key: string]: any;
|
|
170
179
|
class?: HTMLAttributes['class'];
|
|
171
180
|
una?: Pick<NTableUnaProps, 'tableCaption'>;
|
|
172
181
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.58.0",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@headlessui/vue": "^1.7.23",
|
|
40
40
|
"@iconify/utils": "^2.3.0",
|
|
41
|
-
"@nuxt/kit": "^3.17.
|
|
41
|
+
"@nuxt/kit": "^3.17.5",
|
|
42
42
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
43
43
|
"@tanstack/vue-table": "^8.21.3",
|
|
44
44
|
"@unocss/core": "^66.0.0",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"unocss": "^66.0.0",
|
|
59
59
|
"unocss-preset-animations": "^1.2.1",
|
|
60
60
|
"vaul-vue": "^0.4.1",
|
|
61
|
-
"@una-ui/
|
|
62
|
-
"@una-ui/
|
|
61
|
+
"@una-ui/preset": "^0.58.0",
|
|
62
|
+
"@una-ui/extractor-vue-script": "^0.58.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
65
|
+
"@iconify-json/lucide": "^1.2.47",
|
|
66
66
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
67
|
-
"@iconify-json/tabler": "^1.2.
|
|
67
|
+
"@iconify-json/tabler": "^1.2.19",
|
|
68
68
|
"@nuxt/module-builder": "^1.0.1",
|
|
69
|
-
"@nuxt/schema": "^3.17.
|
|
70
|
-
"nuxt": "^3.17.
|
|
69
|
+
"@nuxt/schema": "^3.17.5",
|
|
70
|
+
"nuxt": "^3.17.5",
|
|
71
71
|
"zod": "^3.25.30"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|