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,82 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../../lib/utils";
|
|
3
|
+
import { Button } from "~/src/runtime/components/ui/button";
|
|
4
|
+
import { Calendar } from "~/src/runtime/components/ui/calendar";
|
|
5
|
+
import {
|
|
6
|
+
FormControl,
|
|
7
|
+
FormDescription,
|
|
8
|
+
FormField,
|
|
9
|
+
FormItem,
|
|
10
|
+
FormMessage
|
|
11
|
+
} from "~/src/runtime/components/ui/form";
|
|
12
|
+
import {
|
|
13
|
+
Popover,
|
|
14
|
+
PopoverContent,
|
|
15
|
+
PopoverTrigger
|
|
16
|
+
} from "~/src/runtime/components/ui/popover";
|
|
17
|
+
import { DateFormatter, getLocalTimeZone } from "@internationalized/date";
|
|
18
|
+
import { CalendarIcon } from "lucide-vue-next";
|
|
19
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
20
|
+
import { beautifyObjectName, maybeBooleanishToBoolean } from "./utils";
|
|
21
|
+
defineProps({
|
|
22
|
+
fieldName: { type: String, required: true },
|
|
23
|
+
label: { type: String, required: false },
|
|
24
|
+
required: { type: Boolean, required: false },
|
|
25
|
+
config: { type: Object, required: false },
|
|
26
|
+
disabled: { type: Boolean, required: false }
|
|
27
|
+
});
|
|
28
|
+
const df = new DateFormatter("en-US", {
|
|
29
|
+
dateStyle: "long"
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<FormField v-slot="slotProps" :name="fieldName">
|
|
35
|
+
<FormItem>
|
|
36
|
+
<AutoFormLabel v-if="!config?.hideLabel" :required="required">
|
|
37
|
+
{{ config?.label || beautifyObjectName(label ?? fieldName) }}
|
|
38
|
+
</AutoFormLabel>
|
|
39
|
+
<FormControl>
|
|
40
|
+
<slot v-bind="slotProps">
|
|
41
|
+
<div>
|
|
42
|
+
<Popover>
|
|
43
|
+
<PopoverTrigger
|
|
44
|
+
as-child
|
|
45
|
+
:disabled="
|
|
46
|
+
maybeBooleanishToBoolean(config?.inputProps?.disabled) ?? disabled
|
|
47
|
+
"
|
|
48
|
+
>
|
|
49
|
+
<Button
|
|
50
|
+
variant="outline"
|
|
51
|
+
:class="
|
|
52
|
+
cn(
|
|
53
|
+
'w-full justify-start text-left font-normal',
|
|
54
|
+
!slotProps.componentField.modelValue && 'text-muted-foreground'
|
|
55
|
+
)
|
|
56
|
+
"
|
|
57
|
+
>
|
|
58
|
+
<CalendarIcon class="mr-2 h-4 w-4" />
|
|
59
|
+
{{
|
|
60
|
+
slotProps.componentField.modelValue ? df.format(
|
|
61
|
+
slotProps.componentField.modelValue.toDate(
|
|
62
|
+
getLocalTimeZone()
|
|
63
|
+
)
|
|
64
|
+
) : "Pick a date"
|
|
65
|
+
}}
|
|
66
|
+
</Button>
|
|
67
|
+
</PopoverTrigger>
|
|
68
|
+
<PopoverContent class="w-auto p-0">
|
|
69
|
+
<Calendar initial-focus v-bind="slotProps.componentField" />
|
|
70
|
+
</PopoverContent>
|
|
71
|
+
</Popover>
|
|
72
|
+
</div>
|
|
73
|
+
</slot>
|
|
74
|
+
</FormControl>
|
|
75
|
+
|
|
76
|
+
<FormDescription v-if="config?.description">
|
|
77
|
+
{{ config.description }}
|
|
78
|
+
</FormDescription>
|
|
79
|
+
<FormMessage />
|
|
80
|
+
</FormItem>
|
|
81
|
+
</FormField>
|
|
82
|
+
</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
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from "~/src/runtime/components/ui/form";
|
|
3
|
+
import { Label } from "~/src/runtime/components/ui/label";
|
|
4
|
+
import { RadioGroup, RadioGroupItem } from "~/src/runtime/components/ui/radio-group";
|
|
5
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "~/src/runtime/components/ui/select";
|
|
6
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
7
|
+
import { beautifyObjectName, maybeBooleanishToBoolean } from "./utils";
|
|
8
|
+
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
|
+
options: { type: Array, required: false }
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<FormField v-slot="slotProps" :name="fieldName">
|
|
20
|
+
<FormItem>
|
|
21
|
+
<AutoFormLabel v-if="!config?.hideLabel" :required="required">
|
|
22
|
+
{{ config?.label || beautifyObjectName(label ?? fieldName) }}
|
|
23
|
+
</AutoFormLabel>
|
|
24
|
+
<FormControl>
|
|
25
|
+
<slot v-bind="slotProps">
|
|
26
|
+
<RadioGroup v-if="config?.component === 'radio'" :disabled="maybeBooleanishToBoolean(config?.inputProps?.disabled) ?? disabled" :orientation="'vertical'" v-bind="{ ...slotProps.componentField }">
|
|
27
|
+
<div v-for="(option, index) in options" :key="option" class="mb-2 flex items-center gap-3 space-y-0">
|
|
28
|
+
<RadioGroupItem :id="`${option}-${index}`" :value="option" />
|
|
29
|
+
<Label :for="`${option}-${index}`">{{ beautifyObjectName(option) }}</Label>
|
|
30
|
+
</div>
|
|
31
|
+
</RadioGroup>
|
|
32
|
+
|
|
33
|
+
<Select v-else :disabled="maybeBooleanishToBoolean(config?.inputProps?.disabled) ?? disabled" v-bind="{ ...slotProps.componentField }">
|
|
34
|
+
<SelectTrigger class="w-full">
|
|
35
|
+
<SelectValue :placeholder="config?.inputProps?.placeholder" />
|
|
36
|
+
</SelectTrigger>
|
|
37
|
+
<SelectContent>
|
|
38
|
+
<SelectItem v-for="option in options" :key="option" :value="option">
|
|
39
|
+
{{ beautifyObjectName(option) }}
|
|
40
|
+
</SelectItem>
|
|
41
|
+
</SelectContent>
|
|
42
|
+
</Select>
|
|
43
|
+
</slot>
|
|
44
|
+
</FormControl>
|
|
45
|
+
|
|
46
|
+
<FormDescription v-if="config?.description">
|
|
47
|
+
{{ config.description }}
|
|
48
|
+
</FormDescription>
|
|
49
|
+
<FormMessage />
|
|
50
|
+
</FormItem>
|
|
51
|
+
</FormField>
|
|
52
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
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 & {
|
|
11
|
+
options?: string[];
|
|
12
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps & {
|
|
13
|
+
options?: string[];
|
|
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,77 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Button } from "~/src/runtime/components/ui/button";
|
|
3
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from "~/src/runtime/components/ui/form";
|
|
4
|
+
import { Input } from "~/src/runtime/components/ui/input";
|
|
5
|
+
import { Trash } from "lucide-vue-next";
|
|
6
|
+
import { ref } from "vue";
|
|
7
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
8
|
+
import { beautifyObjectName } from "./utils";
|
|
9
|
+
defineProps({
|
|
10
|
+
fieldName: { type: String, required: true },
|
|
11
|
+
label: { type: String, required: false },
|
|
12
|
+
required: { type: Boolean, required: false },
|
|
13
|
+
config: { type: Object, required: false },
|
|
14
|
+
disabled: { type: Boolean, required: false }
|
|
15
|
+
});
|
|
16
|
+
const inputFile = ref();
|
|
17
|
+
async function parseFileAsString(file) {
|
|
18
|
+
return new Promise((resolve, reject) => {
|
|
19
|
+
if (file) {
|
|
20
|
+
const reader = new FileReader();
|
|
21
|
+
reader.onloadend = () => {
|
|
22
|
+
resolve(reader.result);
|
|
23
|
+
};
|
|
24
|
+
reader.onerror = (err) => {
|
|
25
|
+
reject(err);
|
|
26
|
+
};
|
|
27
|
+
reader.readAsDataURL(file);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<FormField v-slot="slotProps" :name="fieldName">
|
|
35
|
+
<FormItem v-bind="$attrs">
|
|
36
|
+
<AutoFormLabel v-if="!config?.hideLabel" :required="required">
|
|
37
|
+
{{ config?.label || beautifyObjectName(label ?? fieldName) }}
|
|
38
|
+
</AutoFormLabel>
|
|
39
|
+
<FormControl>
|
|
40
|
+
<slot v-bind="slotProps">
|
|
41
|
+
<Input
|
|
42
|
+
v-if="!inputFile"
|
|
43
|
+
type="file"
|
|
44
|
+
v-bind="{ ...config?.inputProps }"
|
|
45
|
+
:disabled="config?.inputProps?.disabled ?? disabled"
|
|
46
|
+
@change="async (ev) => {
|
|
47
|
+
const file = ev.target.files?.[0];
|
|
48
|
+
inputFile = file;
|
|
49
|
+
const parsed = await parseFileAsString(file);
|
|
50
|
+
slotProps.componentField.onInput(parsed);
|
|
51
|
+
}"
|
|
52
|
+
/>
|
|
53
|
+
<div v-else class="flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent pl-3 pr-1 py-1 text-sm shadow-sm transition-colors">
|
|
54
|
+
<p>{{ inputFile?.name }}</p>
|
|
55
|
+
<Button
|
|
56
|
+
:size="'icon'"
|
|
57
|
+
:variant="'ghost'"
|
|
58
|
+
class="h-[26px] w-[26px]"
|
|
59
|
+
aria-label="Remove file"
|
|
60
|
+
type="button"
|
|
61
|
+
@click="() => {
|
|
62
|
+
inputFile = void 0;
|
|
63
|
+
slotProps.componentField.onInput(void 0);
|
|
64
|
+
}"
|
|
65
|
+
>
|
|
66
|
+
<Trash />
|
|
67
|
+
</Button>
|
|
68
|
+
</div>
|
|
69
|
+
</slot>
|
|
70
|
+
</FormControl>
|
|
71
|
+
<FormDescription v-if="config?.description">
|
|
72
|
+
{{ config.description }}
|
|
73
|
+
</FormDescription>
|
|
74
|
+
<FormMessage />
|
|
75
|
+
</FormItem>
|
|
76
|
+
</FormField>
|
|
77
|
+
</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
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from "~/src/runtime/components/ui/form";
|
|
3
|
+
import { Input } from "~/src/runtime/components/ui/input";
|
|
4
|
+
import { Textarea } from "~/src/runtime/components/ui/textarea";
|
|
5
|
+
import { computed } from "vue";
|
|
6
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
7
|
+
import { beautifyObjectName } 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 inputComponent = computed(() => props.config?.component === "textarea" ? Textarea : Input);
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<FormField v-slot="slotProps" :name="fieldName">
|
|
20
|
+
<FormItem v-bind="$attrs">
|
|
21
|
+
<AutoFormLabel v-if="!config?.hideLabel" :required="required">
|
|
22
|
+
{{ config?.label || beautifyObjectName(label ?? fieldName) }}
|
|
23
|
+
</AutoFormLabel>
|
|
24
|
+
<FormControl>
|
|
25
|
+
<slot v-bind="slotProps">
|
|
26
|
+
<component
|
|
27
|
+
:is="inputComponent"
|
|
28
|
+
type="text"
|
|
29
|
+
v-bind="{ ...slotProps.componentField, ...config?.inputProps }"
|
|
30
|
+
:disabled="config?.inputProps?.disabled ?? disabled"
|
|
31
|
+
/>
|
|
32
|
+
</slot>
|
|
33
|
+
</FormControl>
|
|
34
|
+
<FormDescription v-if="config?.description">
|
|
35
|
+
{{ config.description }}
|
|
36
|
+
</FormDescription>
|
|
37
|
+
<FormMessage />
|
|
38
|
+
</FormItem>
|
|
39
|
+
</FormField>
|
|
40
|
+
</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
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from "~/src/runtime/components/ui/form";
|
|
3
|
+
import { Input } from "~/src/runtime/components/ui/input";
|
|
4
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
5
|
+
import { beautifyObjectName } from "./utils";
|
|
6
|
+
defineOptions({
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
});
|
|
9
|
+
defineProps({
|
|
10
|
+
fieldName: { type: String, required: true },
|
|
11
|
+
label: { type: String, required: false },
|
|
12
|
+
required: { type: Boolean, required: false },
|
|
13
|
+
config: { type: Object, required: false },
|
|
14
|
+
disabled: { type: Boolean, required: false }
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<FormField v-slot="slotProps" :name="fieldName">
|
|
20
|
+
<FormItem>
|
|
21
|
+
<AutoFormLabel v-if="!config?.hideLabel" :required="required">
|
|
22
|
+
{{ config?.label || beautifyObjectName(label ?? fieldName) }}
|
|
23
|
+
</AutoFormLabel>
|
|
24
|
+
<FormControl>
|
|
25
|
+
<slot v-bind="slotProps">
|
|
26
|
+
<Input type="number" v-bind="{ ...slotProps.componentField, ...config?.inputProps }" :disabled="config?.inputProps?.disabled ?? disabled" />
|
|
27
|
+
</slot>
|
|
28
|
+
</FormControl>
|
|
29
|
+
<FormDescription v-if="config?.description">
|
|
30
|
+
{{ config.description }}
|
|
31
|
+
</FormDescription>
|
|
32
|
+
<FormMessage />
|
|
33
|
+
</FormItem>
|
|
34
|
+
</FormField>
|
|
35
|
+
</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
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "~/src/runtime/components/ui/accordion";
|
|
3
|
+
import { FormItem } from "~/src/runtime/components/ui/form";
|
|
4
|
+
import { FieldContextKey, useField } from "vee-validate";
|
|
5
|
+
import { computed, provide } from "vue";
|
|
6
|
+
import AutoFormField from "./AutoFormField.vue";
|
|
7
|
+
import AutoFormLabel from "./AutoFormLabel.vue";
|
|
8
|
+
import { beautifyObjectName, getBaseSchema, getBaseType, getDefaultValueInZodStack } from "./utils";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
fieldName: { type: String, required: true },
|
|
11
|
+
required: { type: Boolean, required: false },
|
|
12
|
+
config: { type: null, required: false },
|
|
13
|
+
schema: { type: Object, required: false },
|
|
14
|
+
disabled: { type: Boolean, required: false }
|
|
15
|
+
});
|
|
16
|
+
const shapes = computed(() => {
|
|
17
|
+
const val = {};
|
|
18
|
+
if (!props.schema)
|
|
19
|
+
return;
|
|
20
|
+
const shape = getBaseSchema(props.schema)?.shape;
|
|
21
|
+
if (!shape)
|
|
22
|
+
return;
|
|
23
|
+
Object.keys(shape).forEach((name) => {
|
|
24
|
+
const item = shape[name];
|
|
25
|
+
const baseItem = getBaseSchema(item);
|
|
26
|
+
let options = baseItem && "values" in baseItem._def ? baseItem._def.values : void 0;
|
|
27
|
+
if (!Array.isArray(options) && typeof options === "object")
|
|
28
|
+
options = Object.values(options);
|
|
29
|
+
val[name] = {
|
|
30
|
+
type: getBaseType(item),
|
|
31
|
+
default: getDefaultValueInZodStack(item),
|
|
32
|
+
options,
|
|
33
|
+
required: !["ZodOptional", "ZodNullable"].includes(item._def.typeName),
|
|
34
|
+
schema: item
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
return val;
|
|
38
|
+
});
|
|
39
|
+
const fieldContext = useField(props.fieldName);
|
|
40
|
+
provide(FieldContextKey, fieldContext);
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<template>
|
|
44
|
+
<section>
|
|
45
|
+
<slot v-bind="props">
|
|
46
|
+
<Accordion type="single" as-child class="w-full" collapsible :disabled="disabled">
|
|
47
|
+
<FormItem>
|
|
48
|
+
<AccordionItem :value="fieldName" class="border-none">
|
|
49
|
+
<AccordionTrigger>
|
|
50
|
+
<AutoFormLabel class="text-base" :required="required">
|
|
51
|
+
{{ schema?.description || beautifyObjectName(fieldName) }}
|
|
52
|
+
</AutoFormLabel>
|
|
53
|
+
</AccordionTrigger>
|
|
54
|
+
<AccordionContent class="p-1 space-y-5">
|
|
55
|
+
<template v-for="(shape, key) in shapes" :key="key">
|
|
56
|
+
<AutoFormField
|
|
57
|
+
:config="config?.[key]"
|
|
58
|
+
:field-name="`${fieldName}.${key.toString()}`"
|
|
59
|
+
:label="key.toString()"
|
|
60
|
+
:shape="shape"
|
|
61
|
+
/>
|
|
62
|
+
</template>
|
|
63
|
+
</AccordionContent>
|
|
64
|
+
</AccordionItem>
|
|
65
|
+
</FormItem>
|
|
66
|
+
</Accordion>
|
|
67
|
+
</slot>
|
|
68
|
+
</section>
|
|
69
|
+
</template>
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { FormLabel } from "~/src/runtime/components/ui/form";
|
|
3
|
+
defineProps({
|
|
4
|
+
required: { type: Boolean, required: false }
|
|
5
|
+
});
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<FormLabel>
|
|
10
|
+
<slot />
|
|
11
|
+
<span v-if="required" class="text-destructive"> *</span>
|
|
12
|
+
</FormLabel>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InputComponents } from './interface.js';
|
|
2
|
+
export declare const INPUT_COMPONENTS: InputComponents;
|
|
3
|
+
/**
|
|
4
|
+
* Define handlers for specific Zod types.
|
|
5
|
+
* You can expand this object to support more types.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_ZOD_HANDLERS: {
|
|
8
|
+
[key: string]: keyof typeof INPUT_COMPONENTS;
|
|
9
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import AutoFormFieldArray from "./AutoFormFieldArray.vue";
|
|
2
|
+
import AutoFormFieldBoolean from "./AutoFormFieldBoolean.vue";
|
|
3
|
+
import AutoFormFieldDate from "./AutoFormFieldDate.vue";
|
|
4
|
+
import AutoFormFieldEnum from "./AutoFormFieldEnum.vue";
|
|
5
|
+
import AutoFormFieldFile from "./AutoFormFieldFile.vue";
|
|
6
|
+
import AutoFormFieldInput from "./AutoFormFieldInput.vue";
|
|
7
|
+
import AutoFormFieldNumber from "./AutoFormFieldNumber.vue";
|
|
8
|
+
import AutoFormFieldObject from "./AutoFormFieldObject.vue";
|
|
9
|
+
export const INPUT_COMPONENTS = {
|
|
10
|
+
date: AutoFormFieldDate,
|
|
11
|
+
select: AutoFormFieldEnum,
|
|
12
|
+
radio: AutoFormFieldEnum,
|
|
13
|
+
checkbox: AutoFormFieldBoolean,
|
|
14
|
+
switch: AutoFormFieldBoolean,
|
|
15
|
+
textarea: AutoFormFieldInput,
|
|
16
|
+
number: AutoFormFieldNumber,
|
|
17
|
+
string: AutoFormFieldInput,
|
|
18
|
+
file: AutoFormFieldFile,
|
|
19
|
+
array: AutoFormFieldArray,
|
|
20
|
+
object: AutoFormFieldObject
|
|
21
|
+
};
|
|
22
|
+
export const DEFAULT_ZOD_HANDLERS = {
|
|
23
|
+
ZodString: "string",
|
|
24
|
+
ZodBoolean: "checkbox",
|
|
25
|
+
ZodDate: "date",
|
|
26
|
+
ZodEnum: "select",
|
|
27
|
+
ZodNativeEnum: "select",
|
|
28
|
+
ZodNumber: "number",
|
|
29
|
+
ZodArray: "array",
|
|
30
|
+
ZodObject: "object"
|
|
31
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import { type Dependency, type EnumValues } from './interface.js';
|
|
3
|
+
export declare const injectDependencies: <T extends Ref<Dependency<{
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
}>[] | undefined, Dependency<{
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}>[] | undefined> | null | undefined = Ref<Dependency<{
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>[] | undefined, Dependency<{
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>[] | undefined>>(fallback?: T | undefined) => T extends null ? Ref<Dependency<{
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
}>[] | undefined, Dependency<{
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
}>[] | undefined> | null : Ref<Dependency<{
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>[] | undefined, Dependency<{
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}>[] | undefined>, provideDependencies: (contextValue: Ref<Dependency<{
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
}>[] | undefined, Dependency<{
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>[] | undefined>) => Ref<Dependency<{
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>[] | undefined, Dependency<{
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
}>[] | undefined>;
|
|
28
|
+
export default function useDependencies(fieldName: string): {
|
|
29
|
+
isDisabled: Ref<boolean, boolean>;
|
|
30
|
+
isHidden: Ref<boolean, boolean>;
|
|
31
|
+
isRequired: Ref<boolean, boolean>;
|
|
32
|
+
overrideOptions: Ref<EnumValues | undefined, EnumValues | undefined>;
|
|
33
|
+
};
|