una-nuxt-module 2.1.2 → 2.1.3
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/.nuxt/unaxt/accordion.ts +4 -0
- package/.nuxt/unaxt/alert-dialog.ts +9 -0
- package/.nuxt/unaxt/alert.ts +23 -0
- package/.nuxt/unaxt/aspect-ratio.ts +1 -0
- package/.nuxt/unaxt/auto-form.ts +15 -0
- package/.nuxt/unaxt/avatar.ts +3 -0
- package/.nuxt/unaxt/badge.ts +25 -0
- package/.nuxt/unaxt/breadcrumb.ts +7 -0
- package/.nuxt/unaxt/calendar.ts +12 -0
- package/.nuxt/unaxt/card.ts +7 -0
- package/.nuxt/unaxt/carousel.ts +10 -0
- package/.nuxt/unaxt/checkbox.ts +1 -0
- package/.nuxt/unaxt/collapsible.ts +3 -0
- package/.nuxt/unaxt/combobox.ts +12 -0
- package/.nuxt/unaxt/command.ts +25 -0
- package/.nuxt/unaxt/context-menu.ts +14 -0
- package/.nuxt/unaxt/dialog.ts +10 -0
- package/.nuxt/unaxt/drawer.ts +9 -0
- package/.nuxt/unaxt/dropdown-menu.ts +16 -0
- package/.nuxt/unaxt/form.ts +7 -0
- package/.nuxt/unaxt/hover-card.ts +3 -0
- package/.nuxt/unaxt/input.ts +1 -0
- package/.nuxt/unaxt/label.ts +1 -0
- package/.nuxt/unaxt/menubar.ts +15 -0
- package/.nuxt/unaxt/navigation-menu.ts +14 -0
- package/.nuxt/unaxt/number-field.ts +5 -0
- package/.nuxt/unaxt/pagination.ts +8 -0
- package/.nuxt/unaxt/pin-input.ts +4 -0
- package/.nuxt/unaxt/popover.ts +4 -0
- package/.nuxt/unaxt/progress.ts +1 -0
- package/.nuxt/unaxt/radio-group.ts +2 -0
- package/.nuxt/unaxt/range-calendar.ts +12 -0
- package/.nuxt/unaxt/resizable.ts +3 -0
- package/.nuxt/unaxt/scroll-area.ts +2 -0
- package/.nuxt/unaxt/select.ts +11 -0
- package/.nuxt/unaxt/separator.ts +1 -0
- package/.nuxt/unaxt/sheet.ts +8 -0
- package/.nuxt/unaxt/sidebar.ts +60 -0
- package/.nuxt/unaxt/skeleton.ts +1 -0
- package/.nuxt/unaxt/slider.ts +1 -0
- package/.nuxt/unaxt/sonner.ts +1 -0
- package/.nuxt/unaxt/stepper.ts +7 -0
- package/.nuxt/unaxt/switch.ts +1 -0
- package/.nuxt/unaxt/table.ts +9 -0
- package/.nuxt/unaxt/tabs.ts +4 -0
- package/.nuxt/unaxt/tags-input.ts +5 -0
- package/.nuxt/unaxt/textarea.ts +1 -0
- package/.nuxt/unaxt/toggle-group.ts +2 -0
- package/.nuxt/unaxt/toggle.ts +27 -0
- package/.nuxt/unaxt/tooltip.ts +4 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/ui/accordion/Accordion.vue +26 -0
- package/dist/runtime/components/ui/accordion/Accordion.vue.d.ts +26 -0
- package/dist/runtime/components/ui/accordion/AccordionContent.vue +24 -0
- package/dist/runtime/components/ui/accordion/AccordionContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/accordion/AccordionItem.vue +28 -0
- package/dist/runtime/components/ui/accordion/AccordionItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/accordion/AccordionTrigger.vue +37 -0
- package/dist/runtime/components/ui/accordion/AccordionTrigger.vue.d.ts +32 -0
- package/dist/runtime/components/ui/accordion/index.d.ts +4 -0
- package/dist/runtime/components/ui/accordion/index.js +4 -0
- package/dist/runtime/components/ui/alert/Alert.vue +18 -0
- package/dist/runtime/components/ui/alert/Alert.vue.d.ts +33 -0
- package/dist/runtime/components/ui/alert/AlertDescription.vue +20 -0
- package/dist/runtime/components/ui/alert/AlertDescription.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert/AlertTitle.vue +20 -0
- package/dist/runtime/components/ui/alert/AlertTitle.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert/index.d.ts +8 -0
- package/dist/runtime/components/ui/alert/index.js +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue.d.ts +26 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +23 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue +42 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +23 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +13 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/runtime/components/ui/alert-dialog/index.js +9 -0
- package/dist/runtime/components/ui/aspect-ratio/AspectRatio.vue +17 -0
- package/dist/runtime/components/ui/aspect-ratio/AspectRatio.vue.d.ts +26 -0
- package/dist/runtime/components/ui/aspect-ratio/index.d.ts +1 -0
- package/dist/runtime/components/ui/aspect-ratio/index.js +1 -0
- package/dist/runtime/components/ui/auto-form/AutoForm.vue +90 -0
- package/dist/runtime/components/ui/auto-form/AutoForm.vue.d.ts +35 -0
- package/dist/runtime/components/ui/auto-form/AutoFormField.vue +35 -0
- package/dist/runtime/components/ui/auto-form/AutoFormField.vue.d.ts +23 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue +92 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue.d.ts +0 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue +44 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue +82 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue +52 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue +77 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue +40 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue +35 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue +69 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue.d.ts +0 -0
- package/dist/runtime/components/ui/auto-form/AutoFormLabel.vue +13 -0
- package/dist/runtime/components/ui/auto-form/AutoFormLabel.vue.d.ts +29 -0
- package/dist/runtime/components/ui/auto-form/constant.d.ts +9 -0
- package/dist/runtime/components/ui/auto-form/constant.js +31 -0
- package/dist/runtime/components/ui/auto-form/dependencies.d.ts +33 -0
- package/dist/runtime/components/ui/auto-form/dependencies.js +70 -0
- package/dist/runtime/components/ui/auto-form/index.d.ts +13 -0
- package/dist/runtime/components/ui/auto-form/index.js +12 -0
- package/dist/runtime/components/ui/auto-form/interface.d.ts +67 -0
- package/dist/runtime/components/ui/auto-form/interface.js +7 -0
- package/dist/runtime/components/ui/auto-form/utils.d.ts +48 -0
- package/dist/runtime/components/ui/auto-form/utils.js +103 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue +21 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue.d.ts +30 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +27 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue.d.ts +31 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue +20 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue.d.ts +26 -0
- package/dist/runtime/components/ui/avatar/index.d.ts +3 -0
- package/dist/runtime/components/ui/avatar/index.js +3 -0
- package/dist/runtime/components/ui/badge/Badge.vue +23 -0
- package/dist/runtime/components/ui/badge/Badge.vue.d.ts +34 -0
- package/dist/runtime/components/ui/badge/index.d.ts +6 -0
- package/dist/runtime/components/ui/badge/index.js +18 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue +15 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +21 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +15 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +45 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +18 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/runtime/components/ui/breadcrumb/index.js +7 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue +98 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +15 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +28 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +43 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +45 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +22 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue.d.ts +26 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +17 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +25 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +30 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +27 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +29 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue.d.ts +37 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +34 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +34 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/index.d.ts +12 -0
- package/dist/runtime/components/ui/calendar/index.js +12 -0
- package/dist/runtime/components/ui/card/Card.vue +20 -0
- package/dist/runtime/components/ui/card/Card.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardAction.vue +20 -0
- package/dist/runtime/components/ui/card/CardAction.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardContent.vue +12 -0
- package/dist/runtime/components/ui/card/CardContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardDescription.vue +15 -0
- package/dist/runtime/components/ui/card/CardDescription.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardFooter.vue +15 -0
- package/dist/runtime/components/ui/card/CardFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardHeader.vue +20 -0
- package/dist/runtime/components/ui/card/CardHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardTitle.vue +15 -0
- package/dist/runtime/components/ui/card/CardTitle.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/index.d.ts +7 -0
- package/dist/runtime/components/ui/card/index.js +7 -0
- package/dist/runtime/components/ui/carousel/Carousel.vue +63 -0
- package/dist/runtime/components/ui/carousel/Carousel.vue.d.ts +0 -0
- package/dist/runtime/components/ui/carousel/CarouselContent.vue +28 -0
- package/dist/runtime/components/ui/carousel/CarouselContent.vue.d.ts +28 -0
- package/dist/runtime/components/ui/carousel/CarouselItem.vue +25 -0
- package/dist/runtime/components/ui/carousel/CarouselItem.vue.d.ts +26 -0
- package/dist/runtime/components/ui/carousel/CarouselNext.vue +36 -0
- package/dist/runtime/components/ui/carousel/CarouselNext.vue.d.ts +50 -0
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue +36 -0
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue.d.ts +50 -0
- package/dist/runtime/components/ui/carousel/index.d.ts +7 -0
- package/dist/runtime/components/ui/carousel/index.js +6 -0
- package/dist/runtime/components/ui/carousel/interface.d.ts +20 -0
- package/dist/runtime/components/ui/carousel/interface.js +0 -0
- package/dist/runtime/components/ui/carousel/useCarousel.d.ts +0 -0
- package/dist/runtime/components/ui/carousel/useCarousel.js +43 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +43 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +29 -0
- package/dist/runtime/components/ui/checkbox/index.d.ts +1 -0
- package/dist/runtime/components/ui/checkbox/index.js +1 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue +23 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue.d.ts +28 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue +17 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue.d.ts +26 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue +16 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/collapsible/index.d.ts +3 -0
- package/dist/runtime/components/ui/collapsible/index.js +3 -0
- package/dist/runtime/components/ui/combobox/Combobox.vue +32 -0
- package/dist/runtime/components/ui/combobox/Combobox.vue.d.ts +26 -0
- package/dist/runtime/components/ui/combobox/ComboboxAnchor.vue +23 -0
- package/dist/runtime/components/ui/combobox/ComboboxAnchor.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxEmpty.vue +21 -0
- package/dist/runtime/components/ui/combobox/ComboboxEmpty.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxGroup.vue +28 -0
- package/dist/runtime/components/ui/combobox/ComboboxGroup.vue.d.ts +33 -0
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue +45 -0
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue.d.ts +29 -0
- package/dist/runtime/components/ui/combobox/ComboboxItem.vue +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/combobox/ComboboxItemIndicator.vue +22 -0
- package/dist/runtime/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxList.vue +49 -0
- package/dist/runtime/components/ui/combobox/ComboboxList.vue.d.ts +45 -0
- package/dist/runtime/components/ui/combobox/ComboboxSeparator.vue +21 -0
- package/dist/runtime/components/ui/combobox/ComboboxSeparator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxTrigger.vue +24 -0
- package/dist/runtime/components/ui/combobox/ComboboxTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxViewport.vue +28 -0
- package/dist/runtime/components/ui/combobox/ComboboxViewport.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/index.d.ts +11 -0
- package/dist/runtime/components/ui/combobox/index.js +11 -0
- package/dist/runtime/components/ui/command/Command.vue +91 -0
- package/dist/runtime/components/ui/command/Command.vue.d.ts +41 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue +28 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +43 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue +28 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue +44 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +33 -0
- package/dist/runtime/components/ui/command/CommandInput.vue +45 -0
- package/dist/runtime/components/ui/command/CommandInput.vue.d.ts +17 -0
- package/dist/runtime/components/ui/command/CommandItem.vue +79 -0
- package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandList.vue +29 -0
- package/dist/runtime/components/ui/command/CommandList.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue +23 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue +17 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/command/index.d.ts +90 -0
- package/dist/runtime/components/ui/command/index.js +12 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +43 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue +46 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue +37 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue.d.ts +43 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue +28 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue.d.ts +33 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuPortal.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuPortal.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +43 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue +17 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue +21 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue +46 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +36 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +33 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/index.d.ts +14 -0
- package/dist/runtime/components/ui/context-menu/index.js +14 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue +19 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue +16 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue +48 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +25 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +17 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue +15 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue +27 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +57 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue +16 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dialog/index.d.ts +10 -0
- package/dist/runtime/components/ui/dialog/index.js +10 -0
- package/dist/runtime/components/ui/drawer/Drawer.vue +34 -0
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +38 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.vue +16 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.vue.d.ts +26 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.vue +41 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue +21 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue +15 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue +15 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue +25 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue.d.ts +17 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue +21 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue +16 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/drawer/index.d.ts +9 -0
- package/dist/runtime/components/ui/drawer/index.js +9 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +43 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +51 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +41 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +36 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +49 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +33 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +43 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +21 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +46 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +35 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +33 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/runtime/components/ui/dropdown-menu/index.js +15 -0
- package/dist/runtime/components/ui/form/FormControl.vue +16 -0
- package/dist/runtime/components/ui/form/FormControl.vue.d.ts +16 -0
- package/dist/runtime/components/ui/form/FormDescription.vue +18 -0
- package/dist/runtime/components/ui/form/FormDescription.vue.d.ts +30 -0
- package/dist/runtime/components/ui/form/FormItem.vue +17 -0
- package/dist/runtime/components/ui/form/FormItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/form/FormLabel.vue +23 -0
- package/dist/runtime/components/ui/form/FormLabel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/form/FormMessage.vue +20 -0
- package/dist/runtime/components/ui/form/FormMessage.vue.d.ts +16 -0
- package/dist/runtime/components/ui/form/index.d.ts +7 -0
- package/dist/runtime/components/ui/form/index.js +7 -0
- package/dist/runtime/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/runtime/components/ui/form/injectionKeys.js +1 -0
- package/dist/runtime/components/ui/form/useFormField.d.ts +11 -0
- package/dist/runtime/components/ui/form/useFormField.js +25 -0
- package/dist/runtime/components/ui/hover-card/HoverCard.vue +20 -0
- package/dist/runtime/components/ui/hover-card/HoverCard.vue.d.ts +26 -0
- package/dist/runtime/components/ui/hover-card/HoverCardContent.vue +49 -0
- package/dist/runtime/components/ui/hover-card/HoverCardContent.vue.d.ts +45 -0
- package/dist/runtime/components/ui/hover-card/HoverCardTrigger.vue +17 -0
- package/dist/runtime/components/ui/hover-card/HoverCardTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/hover-card/index.d.ts +3 -0
- package/dist/runtime/components/ui/hover-card/index.js +3 -0
- package/dist/runtime/components/ui/input/Input.vue +29 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +16 -0
- package/dist/runtime/components/ui/input/index.d.ts +1 -0
- package/dist/runtime/components/ui/input/index.js +1 -0
- package/dist/runtime/components/ui/label/Label.vue +27 -0
- package/dist/runtime/components/ui/label/Label.vue.d.ts +31 -0
- package/dist/runtime/components/ui/label/index.d.ts +1 -0
- package/dist/runtime/components/ui/label/index.js +1 -0
- package/dist/runtime/components/ui/menubar/Menubar.vue +33 -0
- package/dist/runtime/components/ui/menubar/Menubar.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue +43 -0
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarContent.vue +50 -0
- package/dist/runtime/components/ui/menubar/MenubarContent.vue.d.ts +51 -0
- package/dist/runtime/components/ui/menubar/MenubarGroup.vue +16 -0
- package/dist/runtime/components/ui/menubar/MenubarGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/menubar/MenubarItem.vue +37 -0
- package/dist/runtime/components/ui/menubar/MenubarItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/menubar/MenubarLabel.vue +24 -0
- package/dist/runtime/components/ui/menubar/MenubarLabel.vue.d.ts +33 -0
- package/dist/runtime/components/ui/menubar/MenubarMenu.vue +15 -0
- package/dist/runtime/components/ui/menubar/MenubarMenu.vue.d.ts +26 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue +43 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarSeparator.vue +23 -0
- package/dist/runtime/components/ui/menubar/MenubarSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/menubar/MenubarShortcut.vue +17 -0
- package/dist/runtime/components/ui/menubar/MenubarShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/menubar/MenubarSub.vue +18 -0
- package/dist/runtime/components/ui/menubar/MenubarSub.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarSubContent.vue +49 -0
- package/dist/runtime/components/ui/menubar/MenubarSubContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarSubTrigger.vue +36 -0
- package/dist/runtime/components/ui/menubar/MenubarSubTrigger.vue.d.ts +33 -0
- package/dist/runtime/components/ui/menubar/MenubarTrigger.vue +31 -0
- package/dist/runtime/components/ui/menubar/MenubarTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/menubar/index.d.ts +15 -0
- package/dist/runtime/components/ui/menubar/index.js +15 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue +45 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +42 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +34 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +33 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +22 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +29 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue +30 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +31 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +17 -0
- package/dist/runtime/components/ui/navigation-menu/index.d.ts +9 -0
- package/dist/runtime/components/ui/navigation-menu/index.js +12 -0
- package/dist/runtime/components/ui/number-field/NumberField.vue +33 -0
- package/dist/runtime/components/ui/number-field/NumberField.vue.d.ts +29 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue +19 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue.d.ts +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue.d.ts +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +19 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue.d.ts +16 -0
- package/dist/runtime/components/ui/number-field/index.d.ts +5 -0
- package/dist/runtime/components/ui/number-field/index.js +5 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue +34 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue.d.ts +29 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +22 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +25 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue.d.ts +31 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +35 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +50 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/index.d.ts +8 -0
- package/dist/runtime/components/ui/pagination/index.js +8 -0
- package/dist/runtime/components/ui/pin-input/PinInput.vue +42 -0
- package/dist/runtime/components/ui/pin-input/PinInput.vue.d.ts +41 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue +22 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue.d.ts +31 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue +20 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue.d.ts +26 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue +30 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue.d.ts +17 -0
- package/dist/runtime/components/ui/pin-input/index.d.ts +4 -0
- package/dist/runtime/components/ui/pin-input/index.js +4 -0
- package/dist/runtime/components/ui/popover/Popover.vue +19 -0
- package/dist/runtime/components/ui/popover/Popover.vue.d.ts +26 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +17 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +26 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue +54 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +43 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +16 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/popover/index.d.ts +4 -0
- package/dist/runtime/components/ui/popover/index.js +4 -0
- package/dist/runtime/components/ui/progress/Progress.vue +37 -0
- package/dist/runtime/components/ui/progress/Progress.vue.d.ts +31 -0
- package/dist/runtime/components/ui/progress/index.d.ts +1 -0
- package/dist/runtime/components/ui/progress/index.js +1 -0
- package/dist/runtime/components/ui/radio-group/RadioGroup.vue +34 -0
- package/dist/runtime/components/ui/radio-group/RadioGroup.vue.d.ts +29 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue +40 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/radio-group/index.d.ts +2 -0
- package/dist/runtime/components/ui/radio-group/index.js +2 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue +101 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue.d.ts +15 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +45 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +45 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue +25 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +26 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue +16 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +26 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue +25 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue +30 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue +27 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue +29 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +37 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +37 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +37 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/index.d.ts +12 -0
- package/dist/runtime/components/ui/range-calendar/index.js +12 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue +43 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue.d.ts +16 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue +25 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue.d.ts +26 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue +33 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue.d.ts +29 -0
- package/dist/runtime/components/ui/resizable/index.d.ts +3 -0
- package/dist/runtime/components/ui/resizable/index.js +3 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue +36 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue.d.ts +31 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue +36 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +31 -0
- package/dist/runtime/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/runtime/components/ui/scroll-area/index.js +2 -0
- package/dist/runtime/components/ui/select/Select.vue +27 -0
- package/dist/runtime/components/ui/select/Select.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/SelectContent.vue +69 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +41 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue +16 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/SelectItem.vue +44 -0
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue +16 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +19 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +30 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +30 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +19 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +39 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +47 -0
- package/dist/runtime/components/ui/select/SelectValue.vue +17 -0
- package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/index.d.ts +11 -0
- package/dist/runtime/components/ui/select/index.js +11 -0
- package/dist/runtime/components/ui/separator/Separator.vue +26 -0
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +34 -0
- package/dist/runtime/components/ui/separator/index.d.ts +1 -0
- package/dist/runtime/components/ui/separator/index.js +1 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue +19 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue +56 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +43 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +27 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sheet/index.d.ts +8 -0
- package/dist/runtime/components/ui/sheet/index.js +8 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +101 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +48 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +28 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +27 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +33 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +47 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue +44 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +52 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +28 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +54 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +22 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +34 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +52 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +73 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +44 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue.d.ts +16 -0
- package/dist/runtime/components/ui/sidebar/index.d.ts +37 -0
- package/dist/runtime/components/ui/sidebar/index.js +45 -0
- package/dist/runtime/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/runtime/components/ui/sidebar/utils.js +8 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +13 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue.d.ts +15 -0
- package/dist/runtime/components/ui/skeleton/index.d.ts +1 -0
- package/dist/runtime/components/ui/skeleton/index.js +1 -0
- package/dist/runtime/components/ui/slider/Slider.vue +63 -0
- package/dist/runtime/components/ui/slider/Slider.vue.d.ts +15 -0
- package/dist/runtime/components/ui/slider/index.d.ts +1 -0
- package/dist/runtime/components/ui/slider/index.js +1 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue +36 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +12 -0
- package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
- package/dist/runtime/components/ui/sonner/index.js +1 -0
- package/dist/runtime/components/ui/stepper/Stepper.vue +28 -0
- package/dist/runtime/components/ui/stepper/Stepper.vue.d.ts +29 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue +22 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue +32 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue +30 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue +30 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue +21 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue +26 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/index.d.ts +7 -0
- package/dist/runtime/components/ui/stepper/index.js +7 -0
- package/dist/runtime/components/ui/switch/Switch.vue +48 -0
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +29 -0
- package/dist/runtime/components/ui/switch/index.d.ts +1 -0
- package/dist/runtime/components/ui/switch/index.js +1 -0
- package/dist/runtime/components/ui/table/Table.vue +17 -0
- package/dist/runtime/components/ui/table/Table.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableBody.vue +15 -0
- package/dist/runtime/components/ui/table/TableBody.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableCaption.vue +15 -0
- package/dist/runtime/components/ui/table/TableCaption.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableCell.vue +20 -0
- package/dist/runtime/components/ui/table/TableCell.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue +29 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +46 -0
- package/dist/runtime/components/ui/table/TableFooter.vue +17 -0
- package/dist/runtime/components/ui/table/TableFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableHead.vue +20 -0
- package/dist/runtime/components/ui/table/TableHead.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableHeader.vue +12 -0
- package/dist/runtime/components/ui/table/TableHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableRow.vue +20 -0
- package/dist/runtime/components/ui/table/TableRow.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/index.d.ts +9 -0
- package/dist/runtime/components/ui/table/index.js +9 -0
- package/dist/runtime/components/ui/table/utils.d.ts +3 -0
- package/dist/runtime/components/ui/table/utils.js +3 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +29 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +29 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue +23 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue +27 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +29 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tabs/index.d.ts +4 -0
- package/dist/runtime/components/ui/tabs/index.js +4 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +45 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +29 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue +30 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue.d.ts +17 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +27 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue +22 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue.d.ts +17 -0
- package/dist/runtime/components/ui/tags-input/index.d.ts +5 -0
- package/dist/runtime/components/ui/tags-input/index.js +5 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue +27 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +16 -0
- package/dist/runtime/components/ui/textarea/index.d.ts +1 -0
- package/dist/runtime/components/ui/textarea/index.js +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue +35 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +48 -0
- package/dist/runtime/components/ui/toggle/index.d.ts +7 -0
- package/dist/runtime/components/ui/toggle/index.js +22 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +51 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +34 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +44 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +38 -0
- package/dist/runtime/components/ui/toggle-group/index.d.ts +2 -0
- package/dist/runtime/components/ui/toggle-group/index.js +2 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +23 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +26 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +56 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +41 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +40 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/tooltip/index.d.ts +4 -0
- package/dist/runtime/components/ui/tooltip/index.js +4 -0
- package/dist/runtime/composables/useAuthorization.d.ts +2 -2
- package/dist/runtime/composables/useAuthorization.js +3 -7
- package/dist/runtime/composables/useFormState.d.ts +1 -1
- package/dist/runtime/composables/useFormState.js +1 -1
- package/dist/runtime/composables/useTableState.d.ts +2 -2
- package/dist/runtime/composables/useTableState.js +1 -1
- package/dist/runtime/i18n/i18n.config.d.ts +0 -5
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/middleware/authentication.d.ts +1 -1
- package/dist/runtime/middleware/authentication.js +3 -1
- package/dist/runtime/middleware/authorization.d.ts +1 -1
- package/dist/runtime/middleware/authorization.js +4 -6
- package/dist/runtime/plugins/auth.d.ts +59 -1
- package/dist/runtime/plugins/auth.js +2 -1
- package/dist/runtime/plugins/vue-json.d.ts +1 -1
- package/dist/runtime/utils/buildSortQuery.d.ts +1 -1
- package/dist/runtime/utils/getFromLocalStorage.js +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
import { type AlertDialogDescriptionProps } from "reka-ui";
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AlertDialogDescriptionProps & {
|
|
12
|
+
class?: HTMLAttributes["class"];
|
|
13
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AlertDialogDescriptionProps & {
|
|
14
|
+
class?: HTMLAttributes["class"];
|
|
15
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../../lib/utils";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
class: { type: null, required: false }
|
|
5
|
+
});
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div
|
|
10
|
+
data-slot="alert-dialog-footer"
|
|
11
|
+
:class="
|
|
12
|
+
cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', props.class)
|
|
13
|
+
"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
+
class?: HTMLAttributes["class"];
|
|
12
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
+
class?: HTMLAttributes["class"];
|
|
14
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../../lib/utils";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
class: { type: null, required: false }
|
|
5
|
+
});
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div
|
|
10
|
+
data-slot="alert-dialog-header"
|
|
11
|
+
:class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
+
class?: HTMLAttributes["class"];
|
|
12
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
+
class?: HTMLAttributes["class"];
|
|
14
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { AlertDialogTitle } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../lib/utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
asChild: { type: Boolean, required: false },
|
|
7
|
+
as: { type: [String, Object, Function], required: false },
|
|
8
|
+
class: { type: null, required: false }
|
|
9
|
+
});
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AlertDialogTitle
|
|
15
|
+
data-slot="alert-dialog-title"
|
|
16
|
+
v-bind="delegatedProps"
|
|
17
|
+
:class="cn('text-lg font-semibold', props.class)"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</AlertDialogTitle>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
import { type AlertDialogTitleProps } from "reka-ui";
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AlertDialogTitleProps & {
|
|
12
|
+
class?: HTMLAttributes["class"];
|
|
13
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AlertDialogTitleProps & {
|
|
14
|
+
class?: HTMLAttributes["class"];
|
|
15
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { AlertDialogTrigger } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
asChild: { type: Boolean, required: false },
|
|
5
|
+
as: { type: [String, Object, Function], required: false }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<AlertDialogTrigger data-slot="alert-dialog-trigger" v-bind="props">
|
|
11
|
+
<slot />
|
|
12
|
+
</AlertDialogTrigger>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type AlertDialogTriggerProps } from 'reka-ui';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AlertDialogTriggerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AlertDialogTriggerProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AlertDialog } from './AlertDialog.vue.js';
|
|
2
|
+
export { default as AlertDialogAction } from './AlertDialogAction.vue.js';
|
|
3
|
+
export { default as AlertDialogCancel } from './AlertDialogCancel.vue.js';
|
|
4
|
+
export { default as AlertDialogContent } from './AlertDialogContent.vue.js';
|
|
5
|
+
export { default as AlertDialogDescription } from './AlertDialogDescription.vue.js';
|
|
6
|
+
export { default as AlertDialogFooter } from './AlertDialogFooter.vue.js';
|
|
7
|
+
export { default as AlertDialogHeader } from './AlertDialogHeader.vue.js';
|
|
8
|
+
export { default as AlertDialogTitle } from './AlertDialogTitle.vue.js';
|
|
9
|
+
export { default as AlertDialogTrigger } from './AlertDialogTrigger.vue.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AlertDialog } from "./AlertDialog.vue";
|
|
2
|
+
export { default as AlertDialogAction } from "./AlertDialogAction.vue";
|
|
3
|
+
export { default as AlertDialogCancel } from "./AlertDialogCancel.vue";
|
|
4
|
+
export { default as AlertDialogContent } from "./AlertDialogContent.vue";
|
|
5
|
+
export { default as AlertDialogDescription } from "./AlertDialogDescription.vue";
|
|
6
|
+
export { default as AlertDialogFooter } from "./AlertDialogFooter.vue";
|
|
7
|
+
export { default as AlertDialogHeader } from "./AlertDialogHeader.vue";
|
|
8
|
+
export { default as AlertDialogTitle } from "./AlertDialogTitle.vue";
|
|
9
|
+
export { default as AlertDialogTrigger } from "./AlertDialogTrigger.vue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { AspectRatio } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
ratio: { type: Number, required: false },
|
|
5
|
+
asChild: { type: Boolean, required: false },
|
|
6
|
+
as: { type: [String, Object, Function], required: false }
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<AspectRatio
|
|
12
|
+
data-slot="aspect-ratio"
|
|
13
|
+
v-bind="props"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</AspectRatio>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type AspectRatioProps } from 'reka-ui';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AspectRatioProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AspectRatioProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AspectRatio } from './AspectRatio.vue.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AspectRatio } from "./AspectRatio.vue";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Form } from "~/src/runtime/components/ui/form";
|
|
3
|
+
import { toTypedSchema } from "@vee-validate/zod";
|
|
4
|
+
import { computed, toRefs } from "vue";
|
|
5
|
+
import AutoFormField from "./AutoFormField.vue";
|
|
6
|
+
import { provideDependencies } from "./dependencies";
|
|
7
|
+
import { getBaseSchema, getBaseType, getDefaultValueInZodStack, getObjectFormSchema } from "./utils";
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
schema: { type: null, required: true },
|
|
10
|
+
form: { type: Object, required: false },
|
|
11
|
+
fieldConfig: { type: null, required: false },
|
|
12
|
+
dependencies: { type: Array, required: false }
|
|
13
|
+
});
|
|
14
|
+
const emits = defineEmits(["submit"]);
|
|
15
|
+
const { dependencies } = toRefs(props);
|
|
16
|
+
provideDependencies(dependencies);
|
|
17
|
+
const shapes = computed(() => {
|
|
18
|
+
const val = {};
|
|
19
|
+
const baseSchema = getObjectFormSchema(props.schema);
|
|
20
|
+
const shape = baseSchema.shape;
|
|
21
|
+
Object.keys(shape).forEach((name) => {
|
|
22
|
+
const item = shape[name];
|
|
23
|
+
const baseItem = getBaseSchema(item);
|
|
24
|
+
let options = baseItem && "values" in baseItem._def ? baseItem._def.values : void 0;
|
|
25
|
+
if (!Array.isArray(options) && typeof options === "object")
|
|
26
|
+
options = Object.values(options);
|
|
27
|
+
val[name] = {
|
|
28
|
+
type: getBaseType(item),
|
|
29
|
+
default: getDefaultValueInZodStack(item),
|
|
30
|
+
options,
|
|
31
|
+
required: !["ZodOptional", "ZodNullable"].includes(item._def.typeName),
|
|
32
|
+
schema: baseItem
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
return val;
|
|
36
|
+
});
|
|
37
|
+
const fields = computed(() => {
|
|
38
|
+
const val = {};
|
|
39
|
+
for (const key in shapes.value) {
|
|
40
|
+
const shape = shapes.value[key];
|
|
41
|
+
val[key] = {
|
|
42
|
+
shape,
|
|
43
|
+
config: props.fieldConfig?.[key],
|
|
44
|
+
fieldName: key
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return val;
|
|
48
|
+
});
|
|
49
|
+
const formComponent = computed(() => props.form ? "form" : Form);
|
|
50
|
+
const formComponentProps = computed(() => {
|
|
51
|
+
if (props.form) {
|
|
52
|
+
return {
|
|
53
|
+
onSubmit: props.form.handleSubmit((val) => emits("submit", val))
|
|
54
|
+
};
|
|
55
|
+
} else {
|
|
56
|
+
const formSchema = toTypedSchema(props.schema);
|
|
57
|
+
return {
|
|
58
|
+
keepValues: true,
|
|
59
|
+
validationSchema: formSchema,
|
|
60
|
+
onSubmit: (val) => emits("submit", val)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<template>
|
|
67
|
+
<component
|
|
68
|
+
:is="formComponent"
|
|
69
|
+
v-bind="formComponentProps"
|
|
70
|
+
>
|
|
71
|
+
<slot name="customAutoForm" :fields="fields">
|
|
72
|
+
<template v-for="(shape, key) of shapes" :key="key">
|
|
73
|
+
<slot
|
|
74
|
+
:shape="shape"
|
|
75
|
+
:name="key.toString()"
|
|
76
|
+
:field-name="key.toString()"
|
|
77
|
+
:config="fieldConfig?.[key]"
|
|
78
|
+
>
|
|
79
|
+
<AutoFormField
|
|
80
|
+
:config="fieldConfig?.[key]"
|
|
81
|
+
:field-name="key.toString()"
|
|
82
|
+
:shape="shape"
|
|
83
|
+
/>
|
|
84
|
+
</slot>
|
|
85
|
+
</template>
|
|
86
|
+
</slot>
|
|
87
|
+
|
|
88
|
+
<slot :shapes="shapes" />
|
|
89
|
+
</component>
|
|
90
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { FormContext, GenericObject } from 'vee-validate';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { Config, ConfigItem, Dependency } from './interface.js';
|
|
4
|
+
import { type ZodObjectOrWrapped } from './utils.js';
|
|
5
|
+
declare const _default: <T extends ZodObjectOrWrapped>(__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<{
|
|
6
|
+
props: __VLS_PrettifyLocal<any & {
|
|
7
|
+
schema: T;
|
|
8
|
+
form?: FormContext<GenericObject>;
|
|
9
|
+
fieldConfig?: Config<z.infer<T>>;
|
|
10
|
+
dependencies?: Dependency<z.infer<T>>[];
|
|
11
|
+
}> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
|
|
12
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: Partial<Record<NonNullable<keyof z.TypeOf<T>>, (_: {
|
|
15
|
+
shape: any;
|
|
16
|
+
fieldName: any;
|
|
17
|
+
config: ConfigItem;
|
|
18
|
+
}) => any>> & {
|
|
19
|
+
customAutoForm?(_: {
|
|
20
|
+
fields: any;
|
|
21
|
+
}): any;
|
|
22
|
+
default?(_: {
|
|
23
|
+
shapes: any;
|
|
24
|
+
}): any;
|
|
25
|
+
};
|
|
26
|
+
emit: (evt: "submit", event: z.TypeOf<T>) => void;
|
|
27
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}> & {
|
|
30
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_PrettifyLocal<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { DEFAULT_ZOD_HANDLERS, INPUT_COMPONENTS } from "./constant";
|
|
4
|
+
import useDependencies from "./dependencies";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
fieldName: { type: String, required: true },
|
|
7
|
+
shape: { type: Object, required: true },
|
|
8
|
+
config: { type: null, required: false }
|
|
9
|
+
});
|
|
10
|
+
function isValidConfig(config) {
|
|
11
|
+
return !!config?.component;
|
|
12
|
+
}
|
|
13
|
+
const delegatedProps = computed(() => {
|
|
14
|
+
if (["ZodObject", "ZodArray"].includes(props.shape?.type))
|
|
15
|
+
return { schema: props.shape?.schema };
|
|
16
|
+
return void 0;
|
|
17
|
+
});
|
|
18
|
+
const { isDisabled, isHidden, isRequired, overrideOptions } = useDependencies(props.fieldName);
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<component
|
|
23
|
+
:is="isValidConfig(config) ? typeof config.component === 'string' ? INPUT_COMPONENTS[config.component] : config.component : INPUT_COMPONENTS[DEFAULT_ZOD_HANDLERS[shape.type]]"
|
|
24
|
+
v-if="!isHidden"
|
|
25
|
+
:field-name="fieldName"
|
|
26
|
+
:label="shape.schema?.description"
|
|
27
|
+
:required="isRequired || shape.required"
|
|
28
|
+
:options="overrideOptions || shape.options"
|
|
29
|
+
:disabled="isDisabled"
|
|
30
|
+
:config="config"
|
|
31
|
+
v-bind="delegatedProps"
|
|
32
|
+
>
|
|
33
|
+
<slot />
|
|
34
|
+
</component>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ZodAny } from 'zod';
|
|
2
|
+
import type { Config, ConfigItem, Shape } from './interface.js';
|
|
3
|
+
declare const _default: <U extends ZodAny>(__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
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
5
|
+
fieldName: string;
|
|
6
|
+
shape: Shape;
|
|
7
|
+
config?: ConfigItem | Config<U>;
|
|
8
|
+
}> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
|
|
9
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}> & {
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} & {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "~/src/runtime/components/ui/accordion";
|
|
3
|
+
import { Button } from "~/src/runtime/components/ui/button";
|
|
4
|
+
import { FormItem, FormMessage } from "~/src/runtime/components/ui/form";
|
|
5
|
+
import { Separator } from "~/src/runtime/components/ui/separator";
|
|
6
|
+
import { PlusIcon, TrashIcon } from "lucide-vue-next";
|
|
7
|
+
import { FieldArray, FieldContextKey, useField } from "vee-validate";
|
|
8
|
+
import { computed, provide } from "vue";
|
|
9
|
+
import * as z from "zod";
|
|
10
|
+
import AutoFormField from "./AutoFormField.vue";
|
|
11
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
12
|
+
import { beautifyObjectName, getBaseType } from "./utils";
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
fieldName: { type: String, required: true },
|
|
15
|
+
required: { type: Boolean, required: false },
|
|
16
|
+
config: { type: null, required: false },
|
|
17
|
+
schema: { type: null, required: false },
|
|
18
|
+
disabled: { type: Boolean, required: false }
|
|
19
|
+
});
|
|
20
|
+
function isZodArray(item) {
|
|
21
|
+
return item instanceof z.ZodArray;
|
|
22
|
+
}
|
|
23
|
+
function isZodDefault(item) {
|
|
24
|
+
return item instanceof z.ZodDefault;
|
|
25
|
+
}
|
|
26
|
+
const itemShape = computed(() => {
|
|
27
|
+
if (!props.schema)
|
|
28
|
+
return;
|
|
29
|
+
const schema = isZodArray(props.schema) ? props.schema._def.type : isZodDefault(props.schema) ? props.schema._def.innerType._def.type : null;
|
|
30
|
+
return {
|
|
31
|
+
type: getBaseType(schema),
|
|
32
|
+
schema
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
const fieldContext = useField(props.fieldName);
|
|
36
|
+
provide(FieldContextKey, fieldContext);
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<template>
|
|
40
|
+
<FieldArray v-slot="{ fields, remove, push }" as="section" :name="fieldName">
|
|
41
|
+
<slot v-bind="props">
|
|
42
|
+
<Accordion type="multiple" class="w-full" collapsible :disabled="disabled" as-child>
|
|
43
|
+
<FormItem>
|
|
44
|
+
<AccordionItem :value="fieldName" class="border-none">
|
|
45
|
+
<AccordionTrigger>
|
|
46
|
+
<AutoFormLabel class="text-base" :required="required">
|
|
47
|
+
{{ schema?.description || beautifyObjectName(fieldName) }}
|
|
48
|
+
</AutoFormLabel>
|
|
49
|
+
</AccordionTrigger>
|
|
50
|
+
|
|
51
|
+
<AccordionContent>
|
|
52
|
+
<template v-for="(field, index) of fields" :key="field.key">
|
|
53
|
+
<div class="mb-4 p-1">
|
|
54
|
+
<AutoFormField
|
|
55
|
+
:field-name="`${fieldName}[${index}]`"
|
|
56
|
+
:label="fieldName"
|
|
57
|
+
:shape="itemShape"
|
|
58
|
+
:config="config"
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
<div class="!my-4 flex justify-end">
|
|
62
|
+
<Button
|
|
63
|
+
type="button"
|
|
64
|
+
size="icon"
|
|
65
|
+
variant="secondary"
|
|
66
|
+
@click="remove(index)"
|
|
67
|
+
>
|
|
68
|
+
<TrashIcon :size="16" />
|
|
69
|
+
</Button>
|
|
70
|
+
</div>
|
|
71
|
+
<Separator v-if="!field.isLast" />
|
|
72
|
+
</div>
|
|
73
|
+
</template>
|
|
74
|
+
|
|
75
|
+
<Button
|
|
76
|
+
type="button"
|
|
77
|
+
variant="secondary"
|
|
78
|
+
class="mt-4 flex items-center"
|
|
79
|
+
@click="push(null)"
|
|
80
|
+
>
|
|
81
|
+
<PlusIcon class="mr-2" :size="16" />
|
|
82
|
+
Add
|
|
83
|
+
</Button>
|
|
84
|
+
</AccordionContent>
|
|
85
|
+
|
|
86
|
+
<FormMessage />
|
|
87
|
+
</AccordionItem>
|
|
88
|
+
</FormItem>
|
|
89
|
+
</Accordion>
|
|
90
|
+
</slot>
|
|
91
|
+
</FieldArray>
|
|
92
|
+
</template>
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Checkbox } from "~/src/runtime/components/ui/checkbox";
|
|
3
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from "~/src/runtime/components/ui/form";
|
|
4
|
+
import { Switch } from "~/src/runtime/components/ui/switch";
|
|
5
|
+
import { computed } from "vue";
|
|
6
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
7
|
+
import { beautifyObjectName, maybeBooleanishToBoolean } from "./utils";
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
fieldName: { type: String, required: true },
|
|
10
|
+
label: { type: String, required: false },
|
|
11
|
+
required: { type: Boolean, required: false },
|
|
12
|
+
config: { type: Object, required: false },
|
|
13
|
+
disabled: { type: Boolean, required: false }
|
|
14
|
+
});
|
|
15
|
+
const booleanComponent = computed(() => props.config?.component === "switch" ? Switch : Checkbox);
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<FormField v-slot="slotProps" :name="fieldName">
|
|
20
|
+
<FormItem>
|
|
21
|
+
<div class="space-y-0 mb-3 flex items-center gap-3">
|
|
22
|
+
<FormControl>
|
|
23
|
+
<slot v-bind="slotProps">
|
|
24
|
+
<component
|
|
25
|
+
:is="booleanComponent"
|
|
26
|
+
:disabled="maybeBooleanishToBoolean(config?.inputProps?.disabled) ?? disabled"
|
|
27
|
+
:name="slotProps.componentField.name"
|
|
28
|
+
:model-value="slotProps.componentField.modelValue"
|
|
29
|
+
@update:model-value="slotProps.componentField['onUpdate:modelValue']"
|
|
30
|
+
/>
|
|
31
|
+
</slot>
|
|
32
|
+
</FormControl>
|
|
33
|
+
<AutoFormLabel v-if="!config?.hideLabel" :required="required">
|
|
34
|
+
{{ config?.label || beautifyObjectName(label ?? fieldName) }}
|
|
35
|
+
</AutoFormLabel>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<FormDescription v-if="config?.description">
|
|
39
|
+
{{ config.description }}
|
|
40
|
+
</FormDescription>
|
|
41
|
+
<FormMessage />
|
|
42
|
+
</FormItem>
|
|
43
|
+
</FormField>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: any): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|