@una-ui/nuxt 1.0.0-alpha.1 → 1.0.0-alpha.11
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 +4 -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/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/accordion/Accordion.vue +86 -0
- package/dist/runtime/components/elements/accordion/Accordion.vue.d.ts +71 -0
- package/dist/runtime/components/elements/accordion/AccordionContent.vue +24 -0
- package/dist/runtime/components/elements/accordion/AccordionContent.vue.d.ts +13 -0
- package/dist/runtime/components/elements/accordion/AccordionHeader.vue +17 -0
- package/dist/runtime/components/elements/accordion/AccordionHeader.vue.d.ts +13 -0
- package/dist/runtime/components/elements/accordion/AccordionItem.vue +59 -0
- package/dist/runtime/components/elements/accordion/AccordionItem.vue.d.ts +27 -0
- package/dist/runtime/components/elements/accordion/AccordionTrigger.vue +56 -0
- package/dist/runtime/components/elements/accordion/AccordionTrigger.vue.d.ts +16 -0
- package/dist/runtime/components/elements/avatar/Avatar.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 +5 -23
- 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/forms/select/SelectItem.vue +0 -2
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue +7 -6
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue.d.ts +1 -3
- 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 +2 -2
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.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 +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/overlays/toast/ToastProvider.vue +1 -0
- 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/sidebar/SidebarProvider.vue +7 -2
- package/dist/runtime/components/sidebar/SidebarProvider.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.d.ts +2 -2
- package/dist/runtime/composables/useUnaSettings.js +7 -6
- package/dist/runtime/plugins/theme.client.js +3 -2
- package/dist/runtime/plugins/theme.server.js +4 -2
- package/dist/runtime/types/accordion.d.ts +36 -91
- 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 -4
- package/dist/runtime/types/sidebar.d.ts +5 -0
- 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/dist/runtime/utils/index.d.ts +1 -1
- package/package.json +20 -20
- package/dist/runtime/components/elements/Accordion.vue +0 -212
- package/dist/runtime/components/elements/Accordion.vue.d.ts +0 -28
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.11",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@headlessui/vue": "^1.7.23",
|
|
40
39
|
"@iconify/utils": "^2.3.0",
|
|
41
|
-
"@nuxt/kit": "^3.
|
|
40
|
+
"@nuxt/kit": "^3.19.2",
|
|
42
41
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
43
42
|
"@tanstack/vue-table": "^8.21.3",
|
|
44
|
-
"@unocss/core": "^66.
|
|
45
|
-
"@unocss/nuxt": "^66.
|
|
46
|
-
"@unocss/preset-attributify": "^66.
|
|
47
|
-
"@unocss/preset-icons": "^66.
|
|
43
|
+
"@unocss/core": "^66.5.4",
|
|
44
|
+
"@unocss/nuxt": "^66.5.4",
|
|
45
|
+
"@unocss/preset-attributify": "^66.5.4",
|
|
46
|
+
"@unocss/preset-icons": "^66.5.4",
|
|
47
|
+
"@unocss/reset": "^66.5.4",
|
|
48
48
|
"@vee-validate/nuxt": "^4.15.1",
|
|
49
49
|
"@vee-validate/zod": "^4.15.1",
|
|
50
50
|
"@vueuse/core": "^12.8.2",
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
"class-variance-authority": "^0.7.1",
|
|
54
54
|
"clsx": "^2.1.1",
|
|
55
55
|
"ohash": "^1.1.6",
|
|
56
|
-
"reka-ui": "^2.
|
|
57
|
-
"tailwind-merge": "^3.
|
|
58
|
-
"unocss": "^66.
|
|
59
|
-
"unocss-preset-animations": "^1.
|
|
56
|
+
"reka-ui": "^2.6.0",
|
|
57
|
+
"tailwind-merge": "^3.4.0",
|
|
58
|
+
"unocss": "^66.5.4",
|
|
59
|
+
"unocss-preset-animations": "^1.3.0",
|
|
60
60
|
"vaul-vue": "^0.4.1",
|
|
61
|
-
"@una-ui/
|
|
62
|
-
"@una-ui/
|
|
61
|
+
"@una-ui/extractor-vue-script": "^1.0.0-alpha.11",
|
|
62
|
+
"@una-ui/preset": "^1.0.0-alpha.11"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
66
|
-
"@iconify-json/radix-icons": "^1.2.
|
|
67
|
-
"@iconify-json/tabler": "^1.2.
|
|
68
|
-
"@nuxt/module-builder": "^1.0.
|
|
69
|
-
"@nuxt/schema": "^3.
|
|
70
|
-
"nuxt": "^3.
|
|
71
|
-
"zod": "^3.25.
|
|
65
|
+
"@iconify-json/lucide": "^1.2.73",
|
|
66
|
+
"@iconify-json/radix-icons": "^1.2.5",
|
|
67
|
+
"@iconify-json/tabler": "^1.2.23",
|
|
68
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
69
|
+
"@nuxt/schema": "^3.19.2",
|
|
70
|
+
"nuxt": "^3.19.2",
|
|
71
|
+
"zod": "^3.25.76"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
Disclosure,
|
|
4
|
-
DisclosureButton,
|
|
5
|
-
DisclosurePanel
|
|
6
|
-
} from "@headlessui/vue";
|
|
7
|
-
import { createReusableTemplate } from "@vueuse/core";
|
|
8
|
-
import { computed, ref } from "vue";
|
|
9
|
-
import { pickProps } from "../../utils";
|
|
10
|
-
import NButton from "./Button.vue";
|
|
11
|
-
import NIcon from "./Icon.vue";
|
|
12
|
-
const props = defineProps({
|
|
13
|
-
accordion: { type: String, required: false },
|
|
14
|
-
trailingOpen: { type: String, required: false, default: "accordion-trailing-icon" },
|
|
15
|
-
trailingClose: { type: String, required: false },
|
|
16
|
-
multiple: { type: Boolean, required: false },
|
|
17
|
-
defaultOpen: { type: Boolean, required: false },
|
|
18
|
-
unstyle: { type: Boolean, required: false },
|
|
19
|
-
mounted: { type: Boolean, required: false },
|
|
20
|
-
items: { type: Array, required: true },
|
|
21
|
-
una: { type: Object, required: false },
|
|
22
|
-
type: { type: String, required: false },
|
|
23
|
-
loadingPlacement: { type: String, required: false, default: "trailing" },
|
|
24
|
-
icon: { type: Boolean, required: false },
|
|
25
|
-
disabled: { type: Boolean, required: false },
|
|
26
|
-
reverse: { type: Boolean, required: false },
|
|
27
|
-
loading: { type: Boolean, required: false },
|
|
28
|
-
block: { type: Boolean, required: false },
|
|
29
|
-
to: { type: null, required: false },
|
|
30
|
-
label: { type: String, required: false },
|
|
31
|
-
btn: { type: String, required: false },
|
|
32
|
-
leading: { type: String, required: false },
|
|
33
|
-
trailing: { type: String, required: false },
|
|
34
|
-
size: { type: String, required: false },
|
|
35
|
-
square: { type: null, required: false },
|
|
36
|
-
rounded: { type: null, required: false },
|
|
37
|
-
class: { type: null, required: false },
|
|
38
|
-
breadcrumbActive: { type: String, required: false },
|
|
39
|
-
breadcrumbInactive: { type: String, required: false },
|
|
40
|
-
paginationSelected: { type: String, required: false },
|
|
41
|
-
paginationUnselected: { type: String, required: false },
|
|
42
|
-
dropdownMenu: { type: String, required: false },
|
|
43
|
-
toggleOn: { type: String, required: false },
|
|
44
|
-
toggleOff: { type: String, required: false },
|
|
45
|
-
tabsActive: { type: String, required: false },
|
|
46
|
-
tabsInactive: { type: String, required: false },
|
|
47
|
-
navigationMenu: { type: String, required: false },
|
|
48
|
-
navigationMenuLink: { type: String, required: false },
|
|
49
|
-
ariaLabel: { type: String, required: false }
|
|
50
|
-
});
|
|
51
|
-
const buttonRefs = ref([]);
|
|
52
|
-
function closeOthers(index) {
|
|
53
|
-
if (props.multiple && props.items[index] && !props.items[index].closeOthers)
|
|
54
|
-
return;
|
|
55
|
-
buttonRefs.value.filter((_, i) => i !== index).forEach((close) => close());
|
|
56
|
-
}
|
|
57
|
-
function onEnter(element, done) {
|
|
58
|
-
const el = element;
|
|
59
|
-
el.style.height = "0";
|
|
60
|
-
el.style.height = `${element.scrollHeight}px`;
|
|
61
|
-
el.addEventListener("transitionend", done, { once: true });
|
|
62
|
-
}
|
|
63
|
-
function onAfterEnter(element) {
|
|
64
|
-
const el = element;
|
|
65
|
-
el.style.height = "auto";
|
|
66
|
-
}
|
|
67
|
-
function onBeforeLeave(element) {
|
|
68
|
-
const el = element;
|
|
69
|
-
el.style.height = `${el.scrollHeight}px`;
|
|
70
|
-
}
|
|
71
|
-
function onLeave(element, done) {
|
|
72
|
-
const el = element;
|
|
73
|
-
el.style.height = "0";
|
|
74
|
-
el.addEventListener("transitionend", done, { once: true });
|
|
75
|
-
}
|
|
76
|
-
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
77
|
-
const pickedProps = pickProps(props, ["reverse", "icon", "btn", "label", "leading", "loading", "loadingPlacement", "una", "trailing", "leading", "to", "type", "disabled"]);
|
|
78
|
-
function mergedProps(itemProps) {
|
|
79
|
-
return Object.assign(pickedProps, itemProps);
|
|
80
|
-
}
|
|
81
|
-
const btnVariants = ["solid", "outline", "soft", "ghost", "link", "text"];
|
|
82
|
-
const hasVariant = computed(() => btnVariants.some((btnVariants2) => props.btn?.includes(btnVariants2)));
|
|
83
|
-
const isBaseVariant = computed(() => props.btn?.includes("~"));
|
|
84
|
-
</script>
|
|
85
|
-
|
|
86
|
-
<template>
|
|
87
|
-
<div
|
|
88
|
-
:accordion="accordion"
|
|
89
|
-
class="accordion"
|
|
90
|
-
:class="[
|
|
91
|
-
unstyle ? 'space-y-3' : 'accordion-(border divider)',
|
|
92
|
-
una?.accordion
|
|
93
|
-
]"
|
|
94
|
-
>
|
|
95
|
-
<DefineTemplate v-slot="{ item, close, index, open }">
|
|
96
|
-
<slot
|
|
97
|
-
:name="item.content ? 'content' : index"
|
|
98
|
-
:item="item" :index="index" :open="open" :close="close"
|
|
99
|
-
>
|
|
100
|
-
<div
|
|
101
|
-
accordion="panel"
|
|
102
|
-
:class="[
|
|
103
|
-
una?.accordionPanel,
|
|
104
|
-
{ 'border-t-0': unstyle }
|
|
105
|
-
]"
|
|
106
|
-
>
|
|
107
|
-
{{ item.content }}
|
|
108
|
-
</div>
|
|
109
|
-
</slot>
|
|
110
|
-
</DefineTemplate>
|
|
111
|
-
|
|
112
|
-
<Disclosure
|
|
113
|
-
v-for="(item, i) in items"
|
|
114
|
-
:key="i"
|
|
115
|
-
v-slot="{ open, close }"
|
|
116
|
-
as="div"
|
|
117
|
-
accordion="item"
|
|
118
|
-
:default-open="item.defaultOpen || defaultOpen"
|
|
119
|
-
:class="una?.accordionItem"
|
|
120
|
-
>
|
|
121
|
-
<DisclosureButton
|
|
122
|
-
:ref="() => buttonRefs[i] = close"
|
|
123
|
-
as="template"
|
|
124
|
-
:disabled="item.disabled || disabled"
|
|
125
|
-
@click="closeOthers(i)"
|
|
126
|
-
>
|
|
127
|
-
<slot name="label" :item="item" :index="i" :open="open" :close="close">
|
|
128
|
-
<NButton
|
|
129
|
-
v-bind="mergedProps(item)"
|
|
130
|
-
:btn="`~ block ${btn || ''}`"
|
|
131
|
-
:class="[
|
|
132
|
-
{ 'accordion-button-default-variant': !hasVariant && !isBaseVariant },
|
|
133
|
-
{ 'accordion-button-padding': !unstyle },
|
|
134
|
-
una?.accordionButton
|
|
135
|
-
]"
|
|
136
|
-
:una="{
|
|
137
|
-
btn: 'h-auto accordion-button',
|
|
138
|
-
btnLabel: 'accordion-label'
|
|
139
|
-
}"
|
|
140
|
-
>
|
|
141
|
-
<template #leading>
|
|
142
|
-
<!-- TODO: fix conditional statement -->
|
|
143
|
-
<NIcon
|
|
144
|
-
v-if="leading || item.leading"
|
|
145
|
-
accordion="leading"
|
|
146
|
-
:class="una?.accordionLeading"
|
|
147
|
-
:name="item.leading || leading || ''"
|
|
148
|
-
aria-hidden="true"
|
|
149
|
-
/>
|
|
150
|
-
</template>
|
|
151
|
-
|
|
152
|
-
<template #trailing>
|
|
153
|
-
<span
|
|
154
|
-
v-if="trailingOpen || trailingClose"
|
|
155
|
-
accordion="trailing"
|
|
156
|
-
:class="[
|
|
157
|
-
trailingClose || !trailingClose && open ? una?.accordionTrailingClose || 'accordion-trailing-close' : una?.accordionTrailingOpen || 'accordion-trailing-open',
|
|
158
|
-
una?.accordionTrailing
|
|
159
|
-
]"
|
|
160
|
-
>
|
|
161
|
-
<NIcon
|
|
162
|
-
v-if="(open || !trailingClose) && trailingOpen"
|
|
163
|
-
:name="trailingOpen"
|
|
164
|
-
aria-hidden="true"
|
|
165
|
-
/>
|
|
166
|
-
<NIcon
|
|
167
|
-
v-else-if="!open && trailingClose"
|
|
168
|
-
:name="trailingClose"
|
|
169
|
-
aria-hidden="true"
|
|
170
|
-
/>
|
|
171
|
-
</span>
|
|
172
|
-
</template>
|
|
173
|
-
</NButton>
|
|
174
|
-
</slot>
|
|
175
|
-
</DisclosureButton>
|
|
176
|
-
|
|
177
|
-
<Transition
|
|
178
|
-
:enter-active-class="una?.accordionLeaveActive || 'accordion-leave-active'"
|
|
179
|
-
:leave-active-class="una?.accordionEnterActive || 'accordion-enter-active'"
|
|
180
|
-
@enter="onEnter"
|
|
181
|
-
@after-enter="onAfterEnter"
|
|
182
|
-
@before-leave="onBeforeLeave"
|
|
183
|
-
@leave="onLeave"
|
|
184
|
-
>
|
|
185
|
-
<DisclosurePanel v-if="!item.mounted || !mounted">
|
|
186
|
-
<ReuseTemplate
|
|
187
|
-
v-bind="{
|
|
188
|
-
item,
|
|
189
|
-
index: i,
|
|
190
|
-
open,
|
|
191
|
-
close
|
|
192
|
-
}"
|
|
193
|
-
/>
|
|
194
|
-
</DisclosurePanel>
|
|
195
|
-
<DisclosurePanel
|
|
196
|
-
v-else
|
|
197
|
-
v-show="open"
|
|
198
|
-
static
|
|
199
|
-
>
|
|
200
|
-
<ReuseTemplate
|
|
201
|
-
v-bind="{
|
|
202
|
-
item,
|
|
203
|
-
index: i,
|
|
204
|
-
open,
|
|
205
|
-
close
|
|
206
|
-
}"
|
|
207
|
-
/>
|
|
208
|
-
</DisclosurePanel>
|
|
209
|
-
</Transition>
|
|
210
|
-
</Disclosure>
|
|
211
|
-
</div>
|
|
212
|
-
</template>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { NAccordionItemProps, NAccordionProps } from '../../types/index.js';
|
|
2
|
-
declare var __VLS_6: any, __VLS_7: {
|
|
3
|
-
item: any;
|
|
4
|
-
index: any;
|
|
5
|
-
open: any;
|
|
6
|
-
close: any;
|
|
7
|
-
}, __VLS_21: {
|
|
8
|
-
item: NAccordionItemProps;
|
|
9
|
-
index: number;
|
|
10
|
-
open: any;
|
|
11
|
-
close: any;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_Slots = {} & {
|
|
14
|
-
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
15
|
-
} & {
|
|
16
|
-
label?: (props: typeof __VLS_21) => any;
|
|
17
|
-
};
|
|
18
|
-
declare const __VLS_component: import("vue").DefineComponent<NAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAccordionProps> & Readonly<{}>, {
|
|
19
|
-
loadingPlacement: "leading" | "trailing" | "label";
|
|
20
|
-
trailingOpen: string;
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|