@una-ui/nuxt 1.0.0-alpha.1 → 1.0.0-alpha.10
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 +3 -3
- package/dist/module.mjs +10 -8
- 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/alert-dialog/AlertDialogContent.vue +0 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +3 -2
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +19 -19
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxList.vue +3 -0
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/data/table/Table.vue +6 -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/drawer/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/drawer/DrawerContent.vue +0 -1
- package/dist/runtime/components/drawer/DrawerOverlay.vue +1 -0
- package/dist/runtime/components/elements/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
- 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/collapsible/CollapsibleContent.vue +1 -0
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dialog/DialogContent.vue +0 -1
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +2 -1
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +0 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +3 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +3 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +2 -5
- 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/popover/PopoverContent.vue +3 -0
- 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/elements/tooltip/TooltipContent.vue +1 -0
- package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
- package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue +1 -2
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
- package/dist/runtime/components/forms/select/Select.vue +4 -6
- package/dist/runtime/components/forms/select/Select.vue.d.ts +18 -20
- package/dist/runtime/components/forms/select/SelectContent.vue +3 -0
- package/dist/runtime/components/hover-card/HoverCard.vue.d.ts +1 -1
- package/dist/runtime/components/hover-card/HoverCardContent.vue +3 -0
- package/dist/runtime/components/misc/ThemeSwitcher.vue +25 -19
- package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +1 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +1 -0
- package/dist/runtime/components/number-field/NumberField.vue +1 -0
- 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/pin-input/PinInput.vue +139 -0
- package/dist/runtime/components/pin-input/PinInput.vue.d.ts +33 -0
- package/dist/runtime/components/pin-input/PinInputGroup.vue +28 -0
- package/dist/runtime/components/pin-input/PinInputGroup.vue.d.ts +13 -0
- package/dist/runtime/components/pin-input/PinInputSeparator.vue +30 -0
- package/dist/runtime/components/pin-input/PinInputSeparator.vue.d.ts +15 -0
- package/dist/runtime/components/pin-input/PinInputSlot.vue +46 -0
- package/dist/runtime/components/pin-input/PinInputSlot.vue.d.ts +5 -0
- package/dist/runtime/components/resizable/ResizableHandle.vue +1 -0
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +1 -7
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +1 -3
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
- package/dist/runtime/components/sheet/SheetContent.vue +6 -2
- package/dist/runtime/components/sheet/SheetOverlay.vue +6 -1
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/runtime/components/stepper/Stepper.vue +163 -0
- package/dist/runtime/components/stepper/Stepper.vue.d.ts +62 -0
- package/dist/runtime/components/stepper/StepperContainer.vue +21 -0
- package/dist/runtime/components/stepper/StepperContainer.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperDescription.vue +28 -0
- package/dist/runtime/components/stepper/StepperDescription.vue.d.ts +13 -0
- package/dist/runtime/components/stepper/StepperHeader.vue +21 -0
- package/dist/runtime/components/stepper/StepperHeader.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperIndicator.vue +34 -0
- package/dist/runtime/components/stepper/StepperIndicator.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperItem.vue +44 -0
- package/dist/runtime/components/stepper/StepperItem.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperSeparator.vue +29 -0
- package/dist/runtime/components/stepper/StepperSeparator.vue.d.ts +6 -0
- package/dist/runtime/components/stepper/StepperTitle.vue +27 -0
- package/dist/runtime/components/stepper/StepperTitle.vue.d.ts +13 -0
- package/dist/runtime/components/stepper/StepperTrigger.vue +29 -0
- package/dist/runtime/components/stepper/StepperTrigger.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperWrapper.vue +21 -0
- package/dist/runtime/components/stepper/StepperWrapper.vue.d.ts +15 -0
- package/dist/runtime/components/toggle-group/ToggleGroup.vue +70 -0
- package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +23 -0
- package/dist/runtime/components/toggle-group/ToggleGroupItem.vue +75 -0
- package/dist/runtime/components/toggle-group/ToggleGroupItem.vue.d.ts +18 -0
- package/dist/runtime/composables/useUnaSettings.js +6 -4
- package/dist/runtime/types/combobox.d.ts +3 -2
- package/dist/runtime/types/index.d.ts +6 -3
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/types/pin-input.d.ts +88 -0
- package/dist/runtime/types/pin-input.js +0 -0
- package/dist/runtime/types/radio-group.d.ts +5 -3
- package/dist/runtime/types/select.d.ts +6 -3
- package/dist/runtime/types/stepper.d.ts +129 -0
- package/dist/runtime/types/stepper.js +0 -0
- package/dist/runtime/types/table.d.ts +16 -3
- package/dist/runtime/types/toggle-group.d.ts +39 -0
- package/dist/runtime/types/toggle-group.js +0 -0
- package/package.json +18 -17
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"configKey": "una",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.10",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": ">=3.0.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "1.0.
|
|
10
|
-
"unbuild": "3.
|
|
9
|
+
"@nuxt/module-builder": "1.0.2",
|
|
10
|
+
"unbuild": "3.6.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import 'unocss';
|
|
|
8
8
|
import 'unocss-preset-animations';
|
|
9
9
|
|
|
10
10
|
const name = "@una-ui/nuxt";
|
|
11
|
-
const version = "1.0.0-alpha.
|
|
11
|
+
const version = "1.0.0-alpha.10";
|
|
12
12
|
|
|
13
13
|
const module = defineNuxtModule({
|
|
14
14
|
meta: {
|
|
@@ -27,7 +27,10 @@ const module = defineNuxtModule({
|
|
|
27
27
|
},
|
|
28
28
|
async setup(options, nuxt) {
|
|
29
29
|
const { resolve } = createResolver(import.meta.url);
|
|
30
|
-
nuxt.options.css.unshift(
|
|
30
|
+
nuxt.options.css.unshift(
|
|
31
|
+
import.meta.resolve("@unocss/reset/tailwind.css"),
|
|
32
|
+
import.meta.resolve("@una-ui/preset/una.css")
|
|
33
|
+
);
|
|
31
34
|
nuxt.options.alias["#una"] = resolve("./runtime");
|
|
32
35
|
nuxt.options.appConfig.una = {
|
|
33
36
|
...{
|
|
@@ -44,17 +47,16 @@ const module = defineNuxtModule({
|
|
|
44
47
|
nuxt.options.app.rootAttrs.class = [nuxt.options.app.rootAttrs.class, "isolate"].filter(Boolean).join(" ");
|
|
45
48
|
const runtimeDir = resolve("./runtime");
|
|
46
49
|
nuxt.options.build.transpile.push(runtimeDir);
|
|
47
|
-
|
|
48
|
-
await installModule("@
|
|
49
|
-
await installModule("@nuxtjs/color-mode", {
|
|
50
|
+
await installModule(import.meta.resolve("@unocss/nuxt"), extendUnocssOptions(nuxt.options.unocss));
|
|
51
|
+
await installModule(import.meta.resolve("@nuxtjs/color-mode"), {
|
|
50
52
|
classSuffix: "",
|
|
51
53
|
disableTransition: true
|
|
52
54
|
});
|
|
53
|
-
await installModule("@vueuse/nuxt");
|
|
54
|
-
await installModule("reka-ui/nuxt", {
|
|
55
|
+
await installModule(import.meta.resolve("@vueuse/nuxt"));
|
|
56
|
+
await installModule(import.meta.resolve("reka-ui/nuxt"), {
|
|
55
57
|
prefix: options.prefix
|
|
56
58
|
});
|
|
57
|
-
await installModule("@vee-validate/nuxt", {
|
|
59
|
+
await installModule(import.meta.resolve("@vee-validate/nuxt"), {
|
|
58
60
|
componentNames: {
|
|
59
61
|
Form: `${options.prefix}Form`,
|
|
60
62
|
// Field: `${options.prefix}FormField`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NAlertDialogProps } from '../../types/index.js';
|
|
2
2
|
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
-
open:
|
|
3
|
+
open: any;
|
|
4
4
|
}, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_46: {}, __VLS_48: {}, __VLS_57: {}, __VLS_59: {}, __VLS_68: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NAlertDialogActionProps } from '../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: any, __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,5 @@
|
|
|
1
1
|
import type { NAlertDialogCancelProps } from '../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: any, __VLS_11: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|
|
@@ -19,7 +19,6 @@ const props = defineProps({
|
|
|
19
19
|
_alertDialogOverlay: { type: Object, required: false },
|
|
20
20
|
una: { type: Object, required: false },
|
|
21
21
|
forceMount: { type: Boolean, required: false },
|
|
22
|
-
trapFocus: { type: Boolean, required: false },
|
|
23
22
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
24
23
|
asChild: { type: Boolean, required: false },
|
|
25
24
|
as: { type: null, required: false },
|
|
@@ -25,6 +25,7 @@ const props = defineProps({
|
|
|
25
25
|
groupSeparator: { type: Boolean, required: false },
|
|
26
26
|
textEmpty: { type: String, required: false, default: "No items found." },
|
|
27
27
|
label: { type: String, required: false },
|
|
28
|
+
multiple: { type: null, required: false },
|
|
28
29
|
_comboboxAnchor: { type: Object, required: false },
|
|
29
30
|
_comboboxEmpty: { type: Object, required: false },
|
|
30
31
|
_comboboxGroup: { type: Object, required: false },
|
|
@@ -44,9 +45,10 @@ const props = defineProps({
|
|
|
44
45
|
defaultOpen: { type: Boolean, required: false },
|
|
45
46
|
resetSearchTermOnBlur: { type: Boolean, required: false },
|
|
46
47
|
resetSearchTermOnSelect: { type: Boolean, required: false },
|
|
48
|
+
openOnFocus: { type: Boolean, required: false },
|
|
49
|
+
openOnClick: { type: Boolean, required: false },
|
|
47
50
|
ignoreFilter: { type: Boolean, required: false },
|
|
48
51
|
defaultValue: { type: null, required: false },
|
|
49
|
-
multiple: { type: Boolean, required: false },
|
|
50
52
|
dir: { type: String, required: false },
|
|
51
53
|
disabled: { type: Boolean, required: false },
|
|
52
54
|
highlightOnHover: { type: Boolean, required: false },
|
|
@@ -139,7 +141,6 @@ function isItemSelected(item) {
|
|
|
139
141
|
|
|
140
142
|
<template>
|
|
141
143
|
<ComboboxRoot
|
|
142
|
-
v-slot="{ modelValue, open }"
|
|
143
144
|
data-slot="combobox"
|
|
144
145
|
:class="cn(
|
|
145
146
|
'combobox',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
|
-
import type { ExtractItemType,
|
|
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<{
|
|
2
|
+
import type { ExtractItemType, NComboboxProps } from '../../types/index.js';
|
|
3
|
+
declare const _default: <T extends AcceptableValue, M extends boolean = false>(__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: ExtractItemType<T>) => any) | undefined;
|
|
6
6
|
readonly onHighlight?: ((payload: {
|
|
@@ -8,7 +8,7 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
8
8
|
value: ExtractItemType<T>;
|
|
9
9
|
} | undefined) => any) | undefined;
|
|
10
10
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onHighlight" | "onUpdate:open"> & NComboboxProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
11
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onHighlight" | "onUpdate:open"> & NComboboxProps<T, M> & Partial<{}>> & import("vue").PublicProps;
|
|
12
12
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
@@ -19,20 +19,20 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
19
19
|
'trigger-wrapper'?: (props: {}) => any;
|
|
20
20
|
} & {
|
|
21
21
|
trigger?: (props: {
|
|
22
|
-
modelValue:
|
|
23
|
-
open:
|
|
22
|
+
modelValue: any;
|
|
23
|
+
open: any;
|
|
24
24
|
}) => any;
|
|
25
25
|
} & {
|
|
26
26
|
'input-wrapper'?: (props: {
|
|
27
|
-
modelValue:
|
|
28
|
-
open:
|
|
27
|
+
modelValue: any;
|
|
28
|
+
open: any;
|
|
29
29
|
}) => any;
|
|
30
30
|
} & {
|
|
31
31
|
list?: (props: {}) => any;
|
|
32
32
|
} & {
|
|
33
33
|
'input-wrapper'?: (props: {
|
|
34
|
-
modelValue:
|
|
35
|
-
open:
|
|
34
|
+
modelValue: any;
|
|
35
|
+
open: any;
|
|
36
36
|
}) => any;
|
|
37
37
|
} & {
|
|
38
38
|
header?: (props: {}) => any;
|
|
@@ -44,34 +44,34 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
44
44
|
group?: (props: {}) => any;
|
|
45
45
|
} & {
|
|
46
46
|
item?: (props: {
|
|
47
|
-
item:
|
|
48
|
-
selected:
|
|
47
|
+
item: any;
|
|
48
|
+
selected: any;
|
|
49
49
|
}) => any;
|
|
50
50
|
} & {
|
|
51
51
|
label?: (props: {
|
|
52
|
-
item:
|
|
52
|
+
item: any;
|
|
53
53
|
}) => any;
|
|
54
54
|
} & {
|
|
55
55
|
'item-indicator'?: (props: {
|
|
56
|
-
item:
|
|
56
|
+
item: any;
|
|
57
57
|
}) => any;
|
|
58
58
|
} & {
|
|
59
59
|
group?: (props: {
|
|
60
|
-
group:
|
|
60
|
+
group: any;
|
|
61
61
|
}) => any;
|
|
62
62
|
} & {
|
|
63
63
|
item?: (props: {
|
|
64
|
-
item:
|
|
65
|
-
group:
|
|
66
|
-
selected:
|
|
64
|
+
item: any;
|
|
65
|
+
group: any;
|
|
66
|
+
selected: any;
|
|
67
67
|
}) => any;
|
|
68
68
|
} & {
|
|
69
69
|
label?: (props: {
|
|
70
|
-
item:
|
|
70
|
+
item: any;
|
|
71
71
|
}) => any;
|
|
72
72
|
} & {
|
|
73
73
|
indicator?: (props: {
|
|
74
|
-
item:
|
|
74
|
+
item: any;
|
|
75
75
|
}) => any;
|
|
76
76
|
} & {
|
|
77
77
|
footer?: (props: {}) => any;
|
|
@@ -13,8 +13,10 @@ const props = defineProps({
|
|
|
13
13
|
bodyLock: { type: Boolean, required: false },
|
|
14
14
|
side: { type: null, required: false },
|
|
15
15
|
sideOffset: { type: Number, required: false, default: 4 },
|
|
16
|
+
sideFlip: { type: Boolean, required: false },
|
|
16
17
|
align: { type: null, required: false, default: "center" },
|
|
17
18
|
alignOffset: { type: Number, required: false },
|
|
19
|
+
alignFlip: { type: Boolean, required: false },
|
|
18
20
|
avoidCollisions: { type: Boolean, required: false },
|
|
19
21
|
collisionBoundary: { type: null, required: false },
|
|
20
22
|
collisionPadding: { type: [Number, Object], required: false },
|
|
@@ -47,6 +49,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
47
49
|
v-bind="forwarded"
|
|
48
50
|
:class="cn(
|
|
49
51
|
'origin-(--reka-combobox-content-transform-origin)',
|
|
52
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
|
|
50
53
|
'combobox-list',
|
|
51
54
|
props.una?.comboboxList,
|
|
52
55
|
props.class
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NComboboxTriggerProps } from '../../types/index.js';
|
|
2
|
-
declare var __VLS_6: {}, __VLS_12:
|
|
2
|
+
declare var __VLS_6: {}, __VLS_12: any, __VLS_13: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
|
|
5
5
|
} & {
|
|
@@ -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();
|
|
@@ -213,6 +215,7 @@ const table = useVueTable({
|
|
|
213
215
|
getFilteredRowModel: getFilteredRowModel(),
|
|
214
216
|
getPaginationRowModel: getPaginationRowModel(),
|
|
215
217
|
getRowId: (row) => props.rowId ? row[props.rowId] : row.id,
|
|
218
|
+
getSubRows: (row) => row.subRows,
|
|
216
219
|
getExpandedRowModel: getExpandedRowModel(),
|
|
217
220
|
onSortingChange: (updaterOrValue) => valueUpdater(updaterOrValue, sorting),
|
|
218
221
|
onRowSelectionChange: (updaterOrValue) => valueUpdater(updaterOrValue, rowSelection),
|
|
@@ -428,6 +431,8 @@ defineExpose({
|
|
|
428
431
|
v-else
|
|
429
432
|
:colspan="table.getAllLeafColumns().length"
|
|
430
433
|
:una
|
|
434
|
+
:empty-text="props.emptyText"
|
|
435
|
+
:empty-icon="props.emptyIcon"
|
|
431
436
|
v-bind="props._tableEmpty"
|
|
432
437
|
>
|
|
433
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NDrawerProps } from '../../types/index.js';
|
|
2
2
|
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
-
open:
|
|
3
|
+
open: any;
|
|
4
4
|
}, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_43: {}, __VLS_48: {}, __VLS_53: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
@@ -14,7 +14,6 @@ const props = defineProps({
|
|
|
14
14
|
_drawerOverlay: { type: Object, required: false },
|
|
15
15
|
una: { type: Object, required: false },
|
|
16
16
|
forceMount: { type: Boolean, required: false },
|
|
17
|
-
trapFocus: { type: Boolean, required: false },
|
|
18
17
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
19
18
|
asChild: { type: Boolean, required: false },
|
|
20
19
|
as: { type: null, required: false },
|
|
@@ -18,6 +18,7 @@ const delegatedProps = reactiveOmit(props, ["class"]);
|
|
|
18
18
|
v-bind="delegatedProps"
|
|
19
19
|
:class="cn(
|
|
20
20
|
'drawer-overlay',
|
|
21
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
21
22
|
props.una?.drawerOverlay,
|
|
22
23
|
props.class
|
|
23
24
|
)"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NAccordionProps } from '../../types/index.js';
|
|
2
2
|
declare var __VLS_6: any, __VLS_7: {
|
|
3
3
|
item: any;
|
|
4
4
|
index: any;
|
|
5
5
|
open: any;
|
|
6
6
|
close: any;
|
|
7
7
|
}, __VLS_21: {
|
|
8
|
-
item:
|
|
9
|
-
index:
|
|
8
|
+
item: any;
|
|
9
|
+
index: any;
|
|
10
10
|
open: any;
|
|
11
11
|
close: any;
|
|
12
12
|
};
|
|
@@ -3,11 +3,7 @@ declare var __VLS_4: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_4) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<NBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
close: (...args: any[]) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<NBadgeProps> & Readonly<{
|
|
9
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
10
|
-
}>, {
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
11
7
|
una: {
|
|
12
8
|
badgeDefaultVariant?: string;
|
|
13
9
|
badge?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NDialogProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
-
open:
|
|
3
|
+
open: any;
|
|
4
4
|
}, __VLS_27: {}, __VLS_32: {}, __VLS_37: {}, __VLS_42: {}, __VLS_44: {}, __VLS_49: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
@@ -20,7 +20,6 @@ const props = defineProps({
|
|
|
20
20
|
_dialogOverlay: { type: Object, required: false },
|
|
21
21
|
una: { type: Object, required: false },
|
|
22
22
|
forceMount: { type: Boolean, required: false },
|
|
23
|
-
trapFocus: { type: Boolean, required: false },
|
|
24
23
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
25
24
|
asChild: { type: Boolean, required: false },
|
|
26
25
|
as: { type: null, required: false },
|
|
@@ -17,7 +17,8 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
17
17
|
data-slot="dialog-description"
|
|
18
18
|
v-bind="forwardedProps"
|
|
19
19
|
:class="cn(
|
|
20
|
-
'
|
|
20
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
|
|
21
|
+
'dialog-description',
|
|
21
22
|
props.una?.dialogDescription,
|
|
22
23
|
props.class
|
|
23
24
|
)"
|
|
@@ -20,7 +20,6 @@ const props = defineProps({
|
|
|
20
20
|
_dialogOverlay: { type: Object, required: false },
|
|
21
21
|
una: { type: Object, required: false },
|
|
22
22
|
forceMount: { type: Boolean, required: false },
|
|
23
|
-
trapFocus: { type: Boolean, required: false },
|
|
24
23
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
25
24
|
asChild: { type: Boolean, required: false },
|
|
26
25
|
as: { type: null, required: false },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { NDropdownMenuProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_7: {}, __VLS_12: {}, __VLS_17: {}, __VLS_22: {
|
|
3
|
-
items:
|
|
3
|
+
items: any;
|
|
4
4
|
}, __VLS_27: {
|
|
5
|
-
items:
|
|
6
|
-
}, __VLS_30:
|
|
7
|
-
label:
|
|
5
|
+
items: any;
|
|
6
|
+
}, __VLS_30: any, __VLS_31: {}, __VLS_62: {
|
|
7
|
+
label: any;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
[K in NonNullable<typeof __VLS_30>]?: (props: typeof __VLS_31) => any;
|
|
@@ -19,8 +19,10 @@ const props = defineProps({
|
|
|
19
19
|
loop: { type: Boolean, required: false },
|
|
20
20
|
side: { type: null, required: false },
|
|
21
21
|
sideOffset: { type: Number, required: false, default: 4 },
|
|
22
|
+
sideFlip: { type: Boolean, required: false },
|
|
22
23
|
align: { type: null, required: false },
|
|
23
24
|
alignOffset: { type: Number, required: false },
|
|
25
|
+
alignFlip: { type: Boolean, required: false },
|
|
24
26
|
avoidCollisions: { type: Boolean, required: false },
|
|
25
27
|
collisionBoundary: { type: null, required: false },
|
|
26
28
|
collisionPadding: { type: [Number, Object], required: false },
|
|
@@ -45,7 +47,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
45
47
|
<DropdownMenuContent
|
|
46
48
|
v-bind="forwarded"
|
|
47
49
|
:class="cn(
|
|
48
|
-
'dropdown-menu-content data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
50
|
+
'dropdown-menu-content data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
|
|
49
51
|
props.una?.dropdownMenuContent,
|
|
50
52
|
props.class
|
|
51
53
|
)"
|
|
@@ -12,7 +12,9 @@ const props = defineProps({
|
|
|
12
12
|
forceMount: { type: Boolean, required: false },
|
|
13
13
|
loop: { type: Boolean, required: false },
|
|
14
14
|
sideOffset: { type: Number, required: false },
|
|
15
|
+
sideFlip: { type: Boolean, required: false },
|
|
15
16
|
alignOffset: { type: Number, required: false },
|
|
17
|
+
alignFlip: { type: Boolean, required: false },
|
|
16
18
|
avoidCollisions: { type: Boolean, required: false },
|
|
17
19
|
collisionBoundary: { type: null, required: false },
|
|
18
20
|
collisionPadding: { type: [Number, Object], required: false },
|
|
@@ -36,7 +38,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
36
38
|
<DropdownMenuSubContent
|
|
37
39
|
v-bind="forwarded"
|
|
38
40
|
:class="cn(
|
|
39
|
-
'dropdown-menu-sub-content data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
41
|
+
'dropdown-menu-sub-content data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
|
|
40
42
|
forwarded.una?.dropdownMenuSubContent,
|
|
41
43
|
props.class
|
|
42
44
|
)"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NDropdownMenuSubTriggerProps } from '../../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: any, __VLS_11: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { NPaginationProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_10: {}, __VLS_15: {}, __VLS_20: {}, __VLS_22: {
|
|
3
|
-
item:
|
|
4
|
-
|
|
5
|
-
value: number;
|
|
6
|
-
};
|
|
7
|
-
page: number;
|
|
3
|
+
item: any;
|
|
4
|
+
page: any;
|
|
8
5
|
}, __VLS_30: {}, __VLS_35: {}, __VLS_40: {};
|
|
9
6
|
type __VLS_Slots = {} & {
|
|
10
7
|
default?: (props: typeof __VLS_10) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NPaginationListItemProps } from '../../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: any, __VLS_11: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|
|
@@ -13,8 +13,10 @@ const props = defineProps({
|
|
|
13
13
|
forceMount: { type: Boolean, required: false },
|
|
14
14
|
side: { type: null, required: false },
|
|
15
15
|
sideOffset: { type: Number, required: false, default: 4 },
|
|
16
|
+
sideFlip: { type: Boolean, required: false },
|
|
16
17
|
align: { type: null, required: false, default: "center" },
|
|
17
18
|
alignOffset: { type: Number, required: false },
|
|
19
|
+
alignFlip: { type: Boolean, required: false },
|
|
18
20
|
avoidCollisions: { type: Boolean, required: false },
|
|
19
21
|
collisionBoundary: { type: null, required: false },
|
|
20
22
|
collisionPadding: { type: [Number, Object], required: false },
|
|
@@ -42,6 +44,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
42
44
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
43
45
|
:class="
|
|
44
46
|
cn(
|
|
47
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
|
|
45
48
|
'popover-content',
|
|
46
49
|
props.class
|
|
47
50
|
)
|
|
@@ -37,6 +37,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
37
37
|
<TooltipContent
|
|
38
38
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
39
39
|
:class="cn(
|
|
40
|
+
'animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
|
|
40
41
|
'tooltip-content',
|
|
41
42
|
props.class,
|
|
42
43
|
props.una?.tooltipContent
|