@una-ui/nuxt-edge 0.61.0-29209714.0d2b8cc → 0.61.0-29213862.727be41
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/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/data/table/Table.vue +5 -1
- package/dist/runtime/components/data/table/TableEmpty.vue +17 -9
- package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +4 -0
- package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +2 -2
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +2 -2
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/number-field/NumberField.vue.d.ts +1 -1
- package/dist/runtime/components/number-field/NumberFieldDecrement.vue.d.ts +1 -1
- package/dist/runtime/components/number-field/NumberFieldIncrement.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
- package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
- package/dist/runtime/types/table.d.ts +16 -3
- package/package.json +4 -4
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NAspectRatioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAspectRatioProps> & Readonly<{}>, {
|
|
9
|
-
aspectRatio: string;
|
|
10
9
|
rounded: import("vue").HTMLAttributes["class"];
|
|
10
|
+
aspectRatio: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
13
|
export default _default;
|
|
@@ -73,7 +73,9 @@ const props = defineProps({
|
|
|
73
73
|
getSubRows: { type: Function, required: false },
|
|
74
74
|
initialState: { type: Object, required: false },
|
|
75
75
|
mergeOptions: { type: Function, required: false },
|
|
76
|
-
meta: { type: Object, required: false }
|
|
76
|
+
meta: { type: Object, required: false },
|
|
77
|
+
emptyText: { type: String, required: false },
|
|
78
|
+
emptyIcon: { type: String, required: false }
|
|
77
79
|
});
|
|
78
80
|
const emit = defineEmits(["select", "selectAll", "expand", "row"]);
|
|
79
81
|
const slots = defineSlots();
|
|
@@ -429,6 +431,8 @@ defineExpose({
|
|
|
429
431
|
v-else
|
|
430
432
|
:colspan="table.getAllLeafColumns().length"
|
|
431
433
|
:una
|
|
434
|
+
:empty-text="props.emptyText"
|
|
435
|
+
:empty-icon="props.emptyIcon"
|
|
432
436
|
v-bind="props._tableEmpty"
|
|
433
437
|
>
|
|
434
438
|
<slot name="empty" />
|
|
@@ -6,6 +6,8 @@ import TableRow from "./TableRow.vue";
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
class: { type: null, required: false },
|
|
8
8
|
colspan: { type: Number, required: false, default: 1 },
|
|
9
|
+
emptyText: { type: String, required: false, default: "No results." },
|
|
10
|
+
emptyIcon: { type: String, required: false, default: "table-empty-icon-name" },
|
|
9
11
|
_tableCell: { type: Object, required: false },
|
|
10
12
|
_tableRow: { type: Object, required: false },
|
|
11
13
|
una: { type: Object, required: false }
|
|
@@ -40,16 +42,22 @@ const delegatedProps = reactiveOmit(props, ["class"]);
|
|
|
40
42
|
v-bind="omitProps(delegatedProps, ['_tableRow', '_tableCell', 'colspan'])"
|
|
41
43
|
>
|
|
42
44
|
<slot>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
<NIcon
|
|
46
|
+
:name="props.emptyIcon"
|
|
47
|
+
:class="cn(
|
|
48
|
+
'table-empty-icon',
|
|
49
|
+
props.una?.tableEmptyIcon
|
|
50
|
+
)"
|
|
51
|
+
/>
|
|
48
52
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
<span
|
|
54
|
+
:class="cn(
|
|
55
|
+
'table-empty-text',
|
|
56
|
+
props.una?.tableEmptyText
|
|
57
|
+
)"
|
|
58
|
+
>
|
|
59
|
+
{{ props.emptyText }}
|
|
60
|
+
</span>
|
|
53
61
|
</slot>
|
|
54
62
|
</div>
|
|
55
63
|
</TableCell>
|
|
@@ -5,8 +5,12 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableEmptyProps>, {
|
|
7
7
|
colspan: number;
|
|
8
|
+
emptyText: string;
|
|
9
|
+
emptyIcon: string;
|
|
8
10
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableEmptyProps>, {
|
|
9
11
|
colspan: number;
|
|
12
|
+
emptyText: string;
|
|
13
|
+
emptyIcon: string;
|
|
10
14
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
15
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
16
|
export default _default;
|
|
@@ -10,6 +10,9 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
trailing?: (props: typeof __VLS_37) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_component: import("vue").DefineComponent<NButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NButtonProps> & Readonly<{}>, {
|
|
13
|
+
type: "button" | "submit" | "reset";
|
|
14
|
+
loadingPlacement: "leading" | "trailing" | "label";
|
|
15
|
+
size: string;
|
|
13
16
|
una: {
|
|
14
17
|
btnDefaultVariant?: string;
|
|
15
18
|
btn?: string;
|
|
@@ -21,9 +24,6 @@ declare const __VLS_component: import("vue").DefineComponent<NButtonProps, {}, {
|
|
|
21
24
|
btnLoadingIcon?: string;
|
|
22
25
|
};
|
|
23
26
|
rounded: import("vue").HTMLAttributes["class"];
|
|
24
|
-
size: string;
|
|
25
|
-
type: "button" | "submit" | "reset";
|
|
26
|
-
loadingPlacement: "leading" | "trailing" | "label";
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
29
|
export default _default;
|
|
@@ -6,10 +6,10 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
fallback?: (props: typeof __VLS_14) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAvatarProps> & Readonly<{}>, {
|
|
9
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
10
|
-
rounded: import("vue").HTMLAttributes["class"];
|
|
11
9
|
size: import("vue").HTMLAttributes["class"];
|
|
12
10
|
square: import("vue").HTMLAttributes["class"];
|
|
11
|
+
rounded: import("vue").HTMLAttributes["class"];
|
|
12
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
13
13
|
avatar: import("vue").HTMLAttributes["class"];
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NDialogCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDialogCloseProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
btn: string;
|
|
10
10
|
square: import("vue").HTMLAttributes["class"];
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NDropdownMenuItemProps } from '../../../types/index.js';
|
|
2
2
|
type __VLS_Slots = any;
|
|
3
3
|
declare const __VLS_component: import("vue").DefineComponent<NDropdownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDropdownMenuItemProps> & Readonly<{}>, {
|
|
4
|
-
rounded: import("vue").HTMLAttributes["class"];
|
|
5
4
|
size: string;
|
|
5
|
+
rounded: import("vue").HTMLAttributes["class"];
|
|
6
6
|
dropdownMenuItem: import("vue").HTMLAttributes["class"];
|
|
7
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationFirstProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationFirstProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationLastProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationLastProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationNextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationNextProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationPrevProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationPrevProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,10 +13,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
13
13
|
select: () => void | undefined;
|
|
14
14
|
inputRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
16
|
-
size: string;
|
|
17
|
-
resize: string | null;
|
|
18
16
|
type: HTMLInputElement["type"] | "textarea";
|
|
17
|
+
size: string;
|
|
19
18
|
autofocusDelay: number;
|
|
19
|
+
resize: string | null;
|
|
20
20
|
rows: number;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -8,8 +8,8 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
description?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_component: import("vue").DefineComponent<NRadioGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NRadioGroupItemProps> & Readonly<{}>, {
|
|
11
|
-
size: import("vue").HTMLAttributes["class"];
|
|
12
11
|
icon: import("vue").HTMLAttributes["class"];
|
|
12
|
+
size: import("vue").HTMLAttributes["class"];
|
|
13
13
|
square: import("vue").HTMLAttributes["class"];
|
|
14
14
|
radioGroup: import("vue").HTMLAttributes["class"];
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NBreadcrumbEllipsisProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NBreadcrumbEllipsisProps> & Readonly<{}>, {
|
|
7
|
-
size: string;
|
|
8
7
|
icon: string;
|
|
8
|
+
size: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NBreadcrumbSeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NBreadcrumbSeparatorProps> & Readonly<{}>, {
|
|
7
|
-
size: string;
|
|
8
7
|
icon: string;
|
|
8
|
+
size: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_component: import("vue").DefineComponent<NNavigationMenuLink
|
|
|
14
14
|
originalEvent: Event;
|
|
15
15
|
}>) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
18
17
|
btn: string;
|
|
19
18
|
navigationMenuLink: string;
|
|
19
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
22
|
export default _default;
|
|
@@ -4,10 +4,10 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NNavigationMenuTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NNavigationMenuTriggerProps> & Readonly<{}>, {
|
|
7
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
8
7
|
btn: string;
|
|
9
8
|
trailing: string;
|
|
10
9
|
navigationMenu: string;
|
|
10
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
13
|
export default _default;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_component: import("vue").DefineComponent<NNumberFieldProps,
|
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<NNumberFieldProps> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
size: import("vue").HTMLAttributes["class"];
|
|
18
17
|
leading: string;
|
|
19
18
|
trailing: string;
|
|
19
|
+
size: import("vue").HTMLAttributes["class"];
|
|
20
20
|
numberField: import("vue").HTMLAttributes["class"];
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NNumberFieldDecrementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NNumberFieldDecrementProps> & Readonly<{}>, {
|
|
7
|
-
size: import("vue").HTMLAttributes["class"];
|
|
8
7
|
icon: string;
|
|
8
|
+
size: import("vue").HTMLAttributes["class"];
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NNumberFieldIncrementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NNumberFieldIncrementProps> & Readonly<{}>, {
|
|
7
|
-
size: import("vue").HTMLAttributes["class"];
|
|
8
7
|
icon: string;
|
|
8
|
+
size: import("vue").HTMLAttributes["class"];
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NToastActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NToastActionProps> & Readonly<{}>, {
|
|
7
|
-
size: string;
|
|
8
7
|
btn: string;
|
|
8
|
+
size: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_10) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NScrollAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NScrollAreaProps> & Readonly<{}>, {
|
|
7
|
-
rounded: import("vue").HTMLAttributes["class"];
|
|
8
7
|
size: import("vue").HTMLAttributes["class"];
|
|
8
|
+
rounded: import("vue").HTMLAttributes["class"];
|
|
9
9
|
scrollArea: import("vue").HTMLAttributes["class"];
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_17) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NSidebarMenuButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSidebarMenuButtonProps> & Readonly<{}>, {
|
|
9
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
10
9
|
size: "default" | "sm" | "lg";
|
|
10
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
11
11
|
variant: "default" | "outline";
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
default?: (props: typeof __VLS_6) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_component: import("vue").DefineComponent<NSidebarMenuButtonChildProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSidebarMenuButtonChildProps> & Readonly<{}>, {
|
|
21
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
22
21
|
size: "default" | "sm" | "lg";
|
|
22
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
23
23
|
variant: "default" | "outline";
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NSidebarMenuSubButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSidebarMenuSubButtonProps> & Readonly<{}>, {
|
|
7
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
8
7
|
size: "sm" | "md";
|
|
8
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import type { PrimitiveProps } from 'reka-ui';
|
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import type { NProgressProps } from './progress.js';
|
|
5
5
|
import type { NScrollAreaProps, NScrollAreaUnaProps } from './scroll-area.js';
|
|
6
|
-
export interface NTableProps<TData, TValue> extends Omit<CoreOptions<TData>, 'data' | 'columns' | 'getCoreRowModel' | 'state' | 'onStateChange' | 'renderFallbackValue'> {
|
|
6
|
+
export interface NTableProps<TData, TValue> extends Omit<CoreOptions<TData>, 'data' | 'columns' | 'getCoreRowModel' | 'state' | 'onStateChange' | 'renderFallbackValue'>, Pick<NTableEmptyProps, 'emptyText' | 'emptyIcon'> {
|
|
7
7
|
class?: HTMLAttributes['class'];
|
|
8
8
|
/**
|
|
9
9
|
* @see https://tanstack.com/table/latest/docs/api/core/table#state
|
|
@@ -115,6 +115,9 @@ export interface NTableProps<TData, TValue> extends Omit<CoreOptions<TData>, 'da
|
|
|
115
115
|
_tableEmpty?: NTableEmptyProps;
|
|
116
116
|
_tableLoading?: NTableLoadingProps;
|
|
117
117
|
_scrollArea?: NScrollAreaProps;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the table is loading.
|
|
120
|
+
*/
|
|
118
121
|
loading?: boolean;
|
|
119
122
|
/**
|
|
120
123
|
* `UnaUI` preset configuration
|
|
@@ -159,9 +162,17 @@ export interface NTableEmptyProps {
|
|
|
159
162
|
[key: string]: any;
|
|
160
163
|
class?: HTMLAttributes['class'];
|
|
161
164
|
colspan?: number;
|
|
165
|
+
/**
|
|
166
|
+
* The text to display when the table is empty.
|
|
167
|
+
*/
|
|
168
|
+
emptyText?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The icon to display when the table is empty.
|
|
171
|
+
*/
|
|
172
|
+
emptyIcon?: string;
|
|
162
173
|
_tableCell?: NTableCellProps;
|
|
163
174
|
_tableRow?: NTableRowProps;
|
|
164
|
-
una?: Pick<NTableUnaProps, 'tableEmpty' | 'tableRow' | 'tableCell'>;
|
|
175
|
+
una?: Pick<NTableUnaProps, 'tableEmpty' | 'tableRow' | 'tableCell' | 'tableEmptyText' | 'tableEmptyIcon'>;
|
|
165
176
|
}
|
|
166
177
|
export interface NTableLoadingProps {
|
|
167
178
|
[key: string]: any;
|
|
@@ -189,9 +200,11 @@ interface NTableUnaProps {
|
|
|
189
200
|
tableRow?: HTMLAttributes['class'];
|
|
190
201
|
tableCell?: HTMLAttributes['class'];
|
|
191
202
|
tableCaption?: HTMLAttributes['class'];
|
|
192
|
-
tableEmpty?: HTMLAttributes['class'];
|
|
193
203
|
tableLoading?: HTMLAttributes['class'];
|
|
194
204
|
tableLoadingRow?: HTMLAttributes['class'];
|
|
195
205
|
tableLoadingCell?: HTMLAttributes['class'];
|
|
206
|
+
tableEmpty?: HTMLAttributes['class'];
|
|
207
|
+
tableEmptyText?: HTMLAttributes['class'];
|
|
208
|
+
tableEmptyIcon?: HTMLAttributes['class'];
|
|
196
209
|
}
|
|
197
210
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt-edge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.61.0-
|
|
4
|
+
"version": "0.61.0-29213862.727be41",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@nuxt/kit": "^3.17.7",
|
|
42
42
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
43
43
|
"@tanstack/vue-table": "^8.21.3",
|
|
44
|
-
"@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@0.61.0-
|
|
45
|
-
"@una-ui/preset": "npm:@una-ui/preset-edge@0.61.0-
|
|
44
|
+
"@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@0.61.0-29213862.727be41",
|
|
45
|
+
"@una-ui/preset": "npm:@una-ui/preset-edge@0.61.0-29213862.727be41",
|
|
46
46
|
"@unocss/core": "^66.0.0",
|
|
47
47
|
"@unocss/nuxt": "^66.0.0",
|
|
48
48
|
"@unocss/preset-attributify": "^66.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vaul-vue": "^0.4.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
65
|
+
"@iconify-json/lucide": "^1.2.57",
|
|
66
66
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
67
67
|
"@iconify-json/tabler": "^1.2.19",
|
|
68
68
|
"@nuxt/module-builder": "^1.0.1",
|