una-nuxt-module 2.1.15 → 2.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/middleware/authentication.js +14 -6
- package/dist/runtime/plugins/auth.js +14 -6
- package/dist/runtime/stores/auth.d.ts +12 -18
- package/dist/runtime/types/index.d.ts +3 -5
- package/dist/runtime/utils/capitalizeFirstLetter.d.ts +2 -0
- package/dist/runtime/utils/capitalizeFirstLetter.js +4 -0
- package/package.json +1 -1
- package/.nuxt/templates/accordion/Accordion.vue +0 -19
- package/.nuxt/templates/accordion/AccordionContent.vue +0 -24
- package/.nuxt/templates/accordion/AccordionItem.vue +0 -28
- package/.nuxt/templates/accordion/AccordionTrigger.vue +0 -39
- package/.nuxt/templates/accordion/index.ts +0 -4
- package/.nuxt/templates/alert/Alert.vue +0 -20
- package/.nuxt/templates/alert/AlertDescription.vue +0 -22
- package/.nuxt/templates/alert/AlertTitle.vue +0 -22
- package/.nuxt/templates/alert/index.ts +0 -23
- package/.nuxt/templates/alert-dialog/AlertDialog.vue +0 -14
- package/.nuxt/templates/alert-dialog/AlertDialogAction.vue +0 -22
- package/.nuxt/templates/alert-dialog/AlertDialogCancel.vue +0 -24
- package/.nuxt/templates/alert-dialog/AlertDialogContent.vue +0 -43
- package/.nuxt/templates/alert-dialog/AlertDialogDescription.vue +0 -25
- package/.nuxt/templates/alert-dialog/AlertDialogFooter.vue +0 -19
- package/.nuxt/templates/alert-dialog/AlertDialogHeader.vue +0 -17
- package/.nuxt/templates/alert-dialog/AlertDialogTitle.vue +0 -22
- package/.nuxt/templates/alert-dialog/AlertDialogTrigger.vue +0 -11
- package/.nuxt/templates/alert-dialog/index.ts +0 -9
- package/.nuxt/templates/aspect-ratio/AspectRatio.vue +0 -14
- package/.nuxt/templates/aspect-ratio/index.ts +0 -1
- package/.nuxt/templates/auto-form/AutoForm.vue +0 -116
- package/.nuxt/templates/auto-form/AutoFormField.vue +0 -45
- package/.nuxt/templates/auto-form/AutoFormFieldArray.vue +0 -120
- package/.nuxt/templates/auto-form/AutoFormFieldBoolean.vue +0 -54
- package/.nuxt/templates/auto-form/AutoFormFieldDate.vue +0 -80
- package/.nuxt/templates/auto-form/AutoFormFieldEnum.vue +0 -86
- package/.nuxt/templates/auto-form/AutoFormFieldFile.vue +0 -87
- package/.nuxt/templates/auto-form/AutoFormFieldInput.vue +0 -44
- package/.nuxt/templates/auto-form/AutoFormFieldNumber.vue +0 -42
- package/.nuxt/templates/auto-form/AutoFormFieldObject.vue +0 -95
- package/.nuxt/templates/auto-form/AutoFormLabel.vue +0 -14
- package/.nuxt/templates/auto-form/constant.ts +0 -40
- package/.nuxt/templates/auto-form/dependencies.ts +0 -92
- package/.nuxt/templates/auto-form/index.ts +0 -15
- package/.nuxt/templates/auto-form/interface.ts +0 -95
- package/.nuxt/templates/auto-form/utils.ts +0 -188
- package/.nuxt/templates/avatar/Avatar.vue +0 -23
- package/.nuxt/templates/avatar/AvatarFallback.vue +0 -27
- package/.nuxt/templates/avatar/AvatarImage.vue +0 -16
- package/.nuxt/templates/avatar/index.ts +0 -3
- package/.nuxt/templates/badge/Badge.vue +0 -27
- package/.nuxt/templates/badge/index.ts +0 -25
- package/.nuxt/templates/breadcrumb/Breadcrumb.vue +0 -17
- package/.nuxt/templates/breadcrumb/BreadcrumbEllipsis.vue +0 -23
- package/.nuxt/templates/breadcrumb/BreadcrumbItem.vue +0 -17
- package/.nuxt/templates/breadcrumb/BreadcrumbLink.vue +0 -23
- package/.nuxt/templates/breadcrumb/BreadcrumbList.vue +0 -22
- package/.nuxt/templates/breadcrumb/BreadcrumbPage.vue +0 -20
- package/.nuxt/templates/breadcrumb/BreadcrumbSeparator.vue +0 -22
- package/.nuxt/templates/breadcrumb/index.ts +0 -7
- package/.nuxt/templates/button/Button.vue +0 -27
- package/.nuxt/templates/button/index.ts +0 -36
- package/.nuxt/templates/calendar/Calendar.vue +0 -78
- package/.nuxt/templates/calendar/CalendarCell.vue +0 -29
- package/.nuxt/templates/calendar/CalendarCellTrigger.vue +0 -47
- package/.nuxt/templates/calendar/CalendarGrid.vue +0 -24
- package/.nuxt/templates/calendar/CalendarGridBody.vue +0 -14
- package/.nuxt/templates/calendar/CalendarGridHead.vue +0 -15
- package/.nuxt/templates/calendar/CalendarGridRow.vue +0 -28
- package/.nuxt/templates/calendar/CalendarHeadCell.vue +0 -33
- package/.nuxt/templates/calendar/CalendarHeader.vue +0 -30
- package/.nuxt/templates/calendar/CalendarHeading.vue +0 -35
- package/.nuxt/templates/calendar/CalendarNextButton.vue +0 -35
- package/.nuxt/templates/calendar/CalendarPrevButton.vue +0 -35
- package/.nuxt/templates/calendar/index.ts +0 -12
- package/.nuxt/templates/card/Card.vue +0 -22
- package/.nuxt/templates/card/CardAction.vue +0 -22
- package/.nuxt/templates/card/CardContent.vue +0 -14
- package/.nuxt/templates/card/CardDescription.vue +0 -17
- package/.nuxt/templates/card/CardFooter.vue +0 -17
- package/.nuxt/templates/card/CardHeader.vue +0 -22
- package/.nuxt/templates/card/CardTitle.vue +0 -17
- package/.nuxt/templates/card/index.ts +0 -7
- package/.nuxt/templates/carousel/Carousel.vue +0 -73
- package/.nuxt/templates/carousel/CarouselContent.vue +0 -30
- package/.nuxt/templates/carousel/CarouselItem.vue +0 -26
- package/.nuxt/templates/carousel/CarouselNext.vue +0 -46
- package/.nuxt/templates/carousel/CarouselPrevious.vue +0 -46
- package/.nuxt/templates/carousel/index.ts +0 -10
- package/.nuxt/templates/carousel/interface.ts +0 -26
- package/.nuxt/templates/carousel/useCarousel.ts +0 -56
- package/.nuxt/templates/checkbox/Checkbox.vue +0 -39
- package/.nuxt/templates/checkbox/index.ts +0 -1
- package/.nuxt/templates/collapsible/Collapsible.vue +0 -19
- package/.nuxt/templates/collapsible/CollapsibleContent.vue +0 -14
- package/.nuxt/templates/collapsible/CollapsibleTrigger.vue +0 -14
- package/.nuxt/templates/collapsible/index.ts +0 -3
- package/.nuxt/templates/combobox/Combobox.vue +0 -17
- package/.nuxt/templates/combobox/ComboboxAnchor.vue +0 -25
- package/.nuxt/templates/combobox/ComboboxEmpty.vue +0 -23
- package/.nuxt/templates/combobox/ComboboxGroup.vue +0 -32
- package/.nuxt/templates/combobox/ComboboxInput.vue +0 -49
- package/.nuxt/templates/combobox/ComboboxItem.vue +0 -31
- package/.nuxt/templates/combobox/ComboboxItemIndicator.vue +0 -25
- package/.nuxt/templates/combobox/ComboboxList.vue +0 -37
- package/.nuxt/templates/combobox/ComboboxSeparator.vue +0 -23
- package/.nuxt/templates/combobox/ComboboxTrigger.vue +0 -26
- package/.nuxt/templates/combobox/ComboboxViewport.vue +0 -30
- package/.nuxt/templates/combobox/index.ts +0 -12
- package/.nuxt/templates/command/Command.vue +0 -100
- package/.nuxt/templates/command/CommandDialog.vue +0 -42
- package/.nuxt/templates/command/CommandEmpty.vue +0 -30
- package/.nuxt/templates/command/CommandGroup.vue +0 -50
- package/.nuxt/templates/command/CommandInput.vue +0 -49
- package/.nuxt/templates/command/CommandItem.vue +0 -90
- package/.nuxt/templates/command/CommandList.vue +0 -32
- package/.nuxt/templates/command/CommandSeparator.vue +0 -23
- package/.nuxt/templates/command/CommandShortcut.vue +0 -19
- package/.nuxt/templates/command/index.ts +0 -25
- package/.nuxt/templates/context-menu/ContextMenu.vue +0 -18
- package/.nuxt/templates/context-menu/ContextMenuCheckboxItem.vue +0 -44
- package/.nuxt/templates/context-menu/ContextMenuContent.vue +0 -38
- package/.nuxt/templates/context-menu/ContextMenuGroup.vue +0 -14
- package/.nuxt/templates/context-menu/ContextMenuItem.vue +0 -46
- package/.nuxt/templates/context-menu/ContextMenuLabel.vue +0 -28
- package/.nuxt/templates/context-menu/ContextMenuPortal.vue +0 -14
- package/.nuxt/templates/context-menu/ContextMenuRadioGroup.vue +0 -22
- package/.nuxt/templates/context-menu/ContextMenuRadioItem.vue +0 -44
- package/.nuxt/templates/context-menu/ContextMenuSeparator.vue +0 -20
- package/.nuxt/templates/context-menu/ContextMenuShortcut.vue +0 -19
- package/.nuxt/templates/context-menu/ContextMenuSub.vue +0 -22
- package/.nuxt/templates/context-menu/ContextMenuSubContent.vue +0 -35
- package/.nuxt/templates/context-menu/ContextMenuSubTrigger.vue +0 -39
- package/.nuxt/templates/context-menu/ContextMenuTrigger.vue +0 -16
- package/.nuxt/templates/context-menu/index.ts +0 -14
- package/.nuxt/templates/dialog/Dialog.vue +0 -17
- package/.nuxt/templates/dialog/DialogClose.vue +0 -14
- package/.nuxt/templates/dialog/DialogContent.vue +0 -49
- package/.nuxt/templates/dialog/DialogDescription.vue +0 -28
- package/.nuxt/templates/dialog/DialogFooter.vue +0 -17
- package/.nuxt/templates/dialog/DialogHeader.vue +0 -17
- package/.nuxt/templates/dialog/DialogOverlay.vue +0 -27
- package/.nuxt/templates/dialog/DialogScrollContent.vue +0 -58
- package/.nuxt/templates/dialog/DialogTitle.vue +0 -24
- package/.nuxt/templates/dialog/DialogTrigger.vue +0 -14
- package/.nuxt/templates/dialog/index.ts +0 -10
- package/.nuxt/templates/drawer/Drawer.vue +0 -22
- package/.nuxt/templates/drawer/DrawerClose.vue +0 -15
- package/.nuxt/templates/drawer/DrawerContent.vue +0 -40
- package/.nuxt/templates/drawer/DrawerDescription.vue +0 -23
- package/.nuxt/templates/drawer/DrawerFooter.vue +0 -17
- package/.nuxt/templates/drawer/DrawerHeader.vue +0 -17
- package/.nuxt/templates/drawer/DrawerOverlay.vue +0 -26
- package/.nuxt/templates/drawer/DrawerTitle.vue +0 -23
- package/.nuxt/templates/drawer/DrawerTrigger.vue +0 -15
- package/.nuxt/templates/drawer/index.ts +0 -9
- package/.nuxt/templates/dropdown-menu/DropdownMenu.vue +0 -17
- package/.nuxt/templates/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -44
- package/.nuxt/templates/dropdown-menu/DropdownMenuContent.vue +0 -41
- package/.nuxt/templates/dropdown-menu/DropdownMenuGroup.vue +0 -14
- package/.nuxt/templates/dropdown-menu/DropdownMenuItem.vue +0 -44
- package/.nuxt/templates/dropdown-menu/DropdownMenuLabel.vue +0 -30
- package/.nuxt/templates/dropdown-menu/DropdownMenuRadioGroup.vue +0 -22
- package/.nuxt/templates/dropdown-menu/DropdownMenuRadioItem.vue +0 -45
- package/.nuxt/templates/dropdown-menu/DropdownMenuSeparator.vue +0 -25
- package/.nuxt/templates/dropdown-menu/DropdownMenuShortcut.vue +0 -19
- package/.nuxt/templates/dropdown-menu/DropdownMenuSub.vue +0 -19
- package/.nuxt/templates/dropdown-menu/DropdownMenuSubContent.vue +0 -35
- package/.nuxt/templates/dropdown-menu/DropdownMenuSubTrigger.vue +0 -37
- package/.nuxt/templates/dropdown-menu/DropdownMenuTrigger.vue +0 -16
- package/.nuxt/templates/dropdown-menu/index.ts +0 -16
- package/.nuxt/templates/form/FormControl.vue +0 -17
- package/.nuxt/templates/form/FormDescription.vue +0 -21
- package/.nuxt/templates/form/FormItem.vue +0 -19
- package/.nuxt/templates/form/FormLabel.vue +0 -22
- package/.nuxt/templates/form/FormMessage.vue +0 -22
- package/.nuxt/templates/form/index.ts +0 -7
- package/.nuxt/templates/form/injectionKeys.ts +0 -4
- package/.nuxt/templates/form/useFormField.ts +0 -30
- package/.nuxt/templates/hover-card/HoverCard.vue +0 -17
- package/.nuxt/templates/hover-card/HoverCardContent.vue +0 -39
- package/.nuxt/templates/hover-card/HoverCardTrigger.vue +0 -14
- package/.nuxt/templates/hover-card/index.ts +0 -3
- package/.nuxt/templates/input/Input.vue +0 -35
- package/.nuxt/templates/input/index.ts +0 -1
- package/.nuxt/templates/label/Label.vue +0 -25
- package/.nuxt/templates/label/index.ts +0 -1
- package/.nuxt/templates/menubar/Menubar.vue +0 -35
- package/.nuxt/templates/menubar/MenubarCheckboxItem.vue +0 -44
- package/.nuxt/templates/menubar/MenubarContent.vue +0 -41
- package/.nuxt/templates/menubar/MenubarGroup.vue +0 -14
- package/.nuxt/templates/menubar/MenubarItem.vue +0 -41
- package/.nuxt/templates/menubar/MenubarLabel.vue +0 -23
- package/.nuxt/templates/menubar/MenubarMenu.vue +0 -14
- package/.nuxt/templates/menubar/MenubarRadioGroup.vue +0 -22
- package/.nuxt/templates/menubar/MenubarRadioItem.vue +0 -44
- package/.nuxt/templates/menubar/MenubarSeparator.vue +0 -26
- package/.nuxt/templates/menubar/MenubarShortcut.vue +0 -19
- package/.nuxt/templates/menubar/MenubarSub.vue +0 -22
- package/.nuxt/templates/menubar/MenubarSubContent.vue +0 -38
- package/.nuxt/templates/menubar/MenubarSubTrigger.vue +0 -35
- package/.nuxt/templates/menubar/MenubarTrigger.vue +0 -33
- package/.nuxt/templates/menubar/index.ts +0 -15
- package/.nuxt/templates/navigation-menu/NavigationMenu.vue +0 -45
- package/.nuxt/templates/navigation-menu/NavigationMenuContent.vue +0 -36
- package/.nuxt/templates/navigation-menu/NavigationMenuIndicator.vue +0 -35
- package/.nuxt/templates/navigation-menu/NavigationMenuItem.vue +0 -22
- package/.nuxt/templates/navigation-menu/NavigationMenuLink.vue +0 -34
- package/.nuxt/templates/navigation-menu/NavigationMenuList.vue +0 -33
- package/.nuxt/templates/navigation-menu/NavigationMenuTrigger.vue +0 -34
- package/.nuxt/templates/navigation-menu/NavigationMenuViewport.vue +0 -33
- package/.nuxt/templates/navigation-menu/index.ts +0 -14
- package/.nuxt/templates/number-field/NumberField.vue +0 -22
- package/.nuxt/templates/number-field/NumberFieldContent.vue +0 -21
- package/.nuxt/templates/number-field/NumberFieldDecrement.vue +0 -33
- package/.nuxt/templates/number-field/NumberFieldIncrement.vue +0 -33
- package/.nuxt/templates/number-field/NumberFieldInput.vue +0 -21
- package/.nuxt/templates/number-field/index.ts +0 -5
- package/.nuxt/templates/pagination/Pagination.vue +0 -32
- package/.nuxt/templates/pagination/PaginationContent.vue +0 -23
- package/.nuxt/templates/pagination/PaginationEllipsis.vue +0 -26
- package/.nuxt/templates/pagination/PaginationFirst.vue +0 -43
- package/.nuxt/templates/pagination/PaginationItem.vue +0 -40
- package/.nuxt/templates/pagination/PaginationLast.vue +0 -43
- package/.nuxt/templates/pagination/PaginationNext.vue +0 -43
- package/.nuxt/templates/pagination/PaginationPrevious.vue +0 -43
- package/.nuxt/templates/pagination/index.ts +0 -8
- package/.nuxt/templates/pin-input/PinInput.vue +0 -38
- package/.nuxt/templates/pin-input/PinInputGroup.vue +0 -22
- package/.nuxt/templates/pin-input/PinInputSeparator.vue +0 -18
- package/.nuxt/templates/pin-input/PinInputSlot.vue +0 -31
- package/.nuxt/templates/pin-input/index.ts +0 -4
- package/.nuxt/templates/popover/Popover.vue +0 -18
- package/.nuxt/templates/popover/PopoverAnchor.vue +0 -15
- package/.nuxt/templates/popover/PopoverContent.vue +0 -46
- package/.nuxt/templates/popover/PopoverTrigger.vue +0 -14
- package/.nuxt/templates/popover/index.ts +0 -4
- package/.nuxt/templates/progress/Progress.vue +0 -38
- package/.nuxt/templates/progress/index.ts +0 -1
- package/.nuxt/templates/radio-group/RadioGroup.vue +0 -30
- package/.nuxt/templates/radio-group/RadioGroupItem.vue +0 -38
- package/.nuxt/templates/radio-group/index.ts +0 -2
- package/.nuxt/templates/range-calendar/RangeCalendar.vue +0 -79
- package/.nuxt/templates/range-calendar/RangeCalendarCell.vue +0 -33
- package/.nuxt/templates/range-calendar/RangeCalendarCellTrigger.vue +0 -51
- package/.nuxt/templates/range-calendar/RangeCalendarGrid.vue +0 -28
- package/.nuxt/templates/range-calendar/RangeCalendarGridBody.vue +0 -14
- package/.nuxt/templates/range-calendar/RangeCalendarGridHead.vue +0 -14
- package/.nuxt/templates/range-calendar/RangeCalendarGridRow.vue +0 -28
- package/.nuxt/templates/range-calendar/RangeCalendarHeadCell.vue +0 -33
- package/.nuxt/templates/range-calendar/RangeCalendarHeader.vue +0 -30
- package/.nuxt/templates/range-calendar/RangeCalendarHeading.vue +0 -35
- package/.nuxt/templates/range-calendar/RangeCalendarNextButton.vue +0 -39
- package/.nuxt/templates/range-calendar/RangeCalendarPrevButton.vue +0 -39
- package/.nuxt/templates/range-calendar/index.ts +0 -12
- package/.nuxt/templates/resizable/ResizableHandle.vue +0 -44
- package/.nuxt/templates/resizable/ResizablePanel.vue +0 -18
- package/.nuxt/templates/resizable/ResizablePanelGroup.vue +0 -32
- package/.nuxt/templates/resizable/index.ts +0 -3
- package/.nuxt/templates/scroll-area/ScrollArea.vue +0 -35
- package/.nuxt/templates/scroll-area/ScrollBar.vue +0 -41
- package/.nuxt/templates/scroll-area/index.ts +0 -2
- package/.nuxt/templates/select/Select.vue +0 -18
- package/.nuxt/templates/select/SelectContent.vue +0 -61
- package/.nuxt/templates/select/SelectGroup.vue +0 -14
- package/.nuxt/templates/select/SelectItem.vue +0 -44
- package/.nuxt/templates/select/SelectItemText.vue +0 -14
- package/.nuxt/templates/select/SelectLabel.vue +0 -18
- package/.nuxt/templates/select/SelectScrollDownButton.vue +0 -33
- package/.nuxt/templates/select/SelectScrollUpButton.vue +0 -33
- package/.nuxt/templates/select/SelectSeparator.vue +0 -20
- package/.nuxt/templates/select/SelectTrigger.vue +0 -44
- package/.nuxt/templates/select/SelectValue.vue +0 -14
- package/.nuxt/templates/select/index.ts +0 -11
- package/.nuxt/templates/separator/Separator.vue +0 -29
- package/.nuxt/templates/separator/index.ts +0 -1
- package/.nuxt/templates/sheet/Sheet.vue +0 -17
- package/.nuxt/templates/sheet/SheetClose.vue +0 -14
- package/.nuxt/templates/sheet/SheetContent.vue +0 -66
- package/.nuxt/templates/sheet/SheetDescription.vue +0 -22
- package/.nuxt/templates/sheet/SheetFooter.vue +0 -15
- package/.nuxt/templates/sheet/SheetHeader.vue +0 -15
- package/.nuxt/templates/sheet/SheetOverlay.vue +0 -27
- package/.nuxt/templates/sheet/SheetTitle.vue +0 -22
- package/.nuxt/templates/sheet/SheetTrigger.vue +0 -14
- package/.nuxt/templates/sheet/index.ts +0 -8
- package/.nuxt/templates/sidebar/Sidebar.vue +0 -110
- package/.nuxt/templates/sidebar/SidebarContent.vue +0 -23
- package/.nuxt/templates/sidebar/SidebarFooter.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarGroup.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarGroupAction.vue +0 -31
- package/.nuxt/templates/sidebar/SidebarGroupContent.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarGroupLabel.vue +0 -30
- package/.nuxt/templates/sidebar/SidebarHeader.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarInput.vue +0 -19
- package/.nuxt/templates/sidebar/SidebarInset.vue +0 -23
- package/.nuxt/templates/sidebar/SidebarMenu.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarMenuAction.vue +0 -41
- package/.nuxt/templates/sidebar/SidebarMenuBadge.vue +0 -28
- package/.nuxt/templates/sidebar/SidebarMenuButton.vue +0 -57
- package/.nuxt/templates/sidebar/SidebarMenuButtonChild.vue +0 -34
- package/.nuxt/templates/sidebar/SidebarMenuItem.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarMenuSkeleton.vue +0 -34
- package/.nuxt/templates/sidebar/SidebarMenuSub.vue +0 -24
- package/.nuxt/templates/sidebar/SidebarMenuSubButton.vue +0 -43
- package/.nuxt/templates/sidebar/SidebarMenuSubItem.vue +0 -18
- package/.nuxt/templates/sidebar/SidebarProvider.vue +0 -101
- package/.nuxt/templates/sidebar/SidebarRail.vue +0 -35
- package/.nuxt/templates/sidebar/SidebarSeparator.vue +0 -19
- package/.nuxt/templates/sidebar/SidebarTrigger.vue +0 -27
- package/.nuxt/templates/sidebar/index.ts +0 -60
- package/.nuxt/templates/sidebar/utils.ts +0 -19
- package/.nuxt/templates/skeleton/Skeleton.vue +0 -17
- package/.nuxt/templates/skeleton/index.ts +0 -1
- package/.nuxt/templates/slider/Slider.vue +0 -53
- package/.nuxt/templates/slider/index.ts +0 -1
- package/.nuxt/templates/sonner/Sonner.vue +0 -18
- package/.nuxt/templates/sonner/index.ts +0 -1
- package/.nuxt/templates/stepper/Stepper.vue +0 -26
- package/.nuxt/templates/stepper/StepperDescription.vue +0 -25
- package/.nuxt/templates/stepper/StepperIndicator.vue +0 -35
- package/.nuxt/templates/stepper/StepperItem.vue +0 -30
- package/.nuxt/templates/stepper/StepperSeparator.vue +0 -31
- package/.nuxt/templates/stepper/StepperTitle.vue +0 -24
- package/.nuxt/templates/stepper/StepperTrigger.vue +0 -29
- package/.nuxt/templates/stepper/index.ts +0 -7
- package/.nuxt/templates/switch/Switch.vue +0 -46
- package/.nuxt/templates/switch/index.ts +0 -1
- package/.nuxt/templates/table/Table.vue +0 -19
- package/.nuxt/templates/table/TableBody.vue +0 -17
- package/.nuxt/templates/table/TableCaption.vue +0 -17
- package/.nuxt/templates/table/TableCell.vue +0 -22
- package/.nuxt/templates/table/TableEmpty.vue +0 -37
- package/.nuxt/templates/table/TableFooter.vue +0 -19
- package/.nuxt/templates/table/TableHead.vue +0 -22
- package/.nuxt/templates/table/TableHeader.vue +0 -14
- package/.nuxt/templates/table/TableRow.vue +0 -22
- package/.nuxt/templates/table/index.ts +0 -9
- package/.nuxt/templates/table/utils.ts +0 -9
- package/.nuxt/templates/tabs/Tabs.vue +0 -25
- package/.nuxt/templates/tabs/TabsContent.vue +0 -22
- package/.nuxt/templates/tabs/TabsList.vue +0 -27
- package/.nuxt/templates/tabs/TabsTrigger.vue +0 -29
- package/.nuxt/templates/tabs/index.ts +0 -4
- package/.nuxt/templates/tags-input/TagsInput.vue +0 -34
- package/.nuxt/templates/tags-input/TagsInputInput.vue +0 -30
- package/.nuxt/templates/tags-input/TagsInputItem.vue +0 -33
- package/.nuxt/templates/tags-input/TagsInputItemDelete.vue +0 -30
- package/.nuxt/templates/tags-input/TagsInputItemText.vue +0 -25
- package/.nuxt/templates/tags-input/index.ts +0 -5
- package/.nuxt/templates/textarea/Textarea.vue +0 -33
- package/.nuxt/templates/textarea/index.ts +0 -1
- package/.nuxt/templates/toggle/Toggle.vue +0 -43
- package/.nuxt/templates/toggle/index.ts +0 -27
- package/.nuxt/templates/toggle-group/ToggleGroup.vue +0 -50
- package/.nuxt/templates/toggle-group/ToggleGroupItem.vue +0 -49
- package/.nuxt/templates/toggle-group/index.ts +0 -2
- package/.nuxt/templates/tooltip/Tooltip.vue +0 -17
- package/.nuxt/templates/tooltip/TooltipContent.vue +0 -50
- package/.nuxt/templates/tooltip/TooltipProvider.vue +0 -13
- package/.nuxt/templates/tooltip/TooltipTrigger.vue +0 -14
- package/.nuxt/templates/tooltip/index.ts +0 -4
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineNuxtRouteMiddleware, useNuxtApp } from "#app";
|
|
2
|
-
import { useAuthStore } from "../stores/auth.js";
|
|
3
2
|
import { useAuthorization } from "../composables/useAuthorization.js";
|
|
3
|
+
import { useAuthStore } from "../stores/auth.js";
|
|
4
|
+
import capitalizeFirstLetter from "../utils/capitalizeFirstLetter.js";
|
|
4
5
|
export default defineNuxtRouteMiddleware(async (to, from) => {
|
|
5
6
|
if (!import.meta.client) {
|
|
6
7
|
return;
|
|
@@ -16,13 +17,20 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
|
|
|
16
17
|
const authResponse = await $authData();
|
|
17
18
|
const token = await $accessToken();
|
|
18
19
|
const resources = await authorization.getResources(token);
|
|
20
|
+
const getUserInfo = () => {
|
|
21
|
+
if (authResponse?.email) {
|
|
22
|
+
const [name, lastName] = authResponse.email.split(".");
|
|
23
|
+
return {
|
|
24
|
+
name: capitalizeFirstLetter(name),
|
|
25
|
+
lastName: capitalizeFirstLetter(lastName),
|
|
26
|
+
fullName: capitalizeFirstLetter(name) + " " + capitalizeFirstLetter(lastName)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
19
30
|
const userInfo = {
|
|
31
|
+
cedula: authResponse?.displayName,
|
|
20
32
|
email: authResponse?.email,
|
|
21
|
-
|
|
22
|
-
name: authResponse?.givenName,
|
|
23
|
-
lastName: authResponse?.familyName,
|
|
24
|
-
photoUrl: authResponse?.profile,
|
|
25
|
-
mainRole: "Admin"
|
|
33
|
+
...getUserInfo()
|
|
26
34
|
};
|
|
27
35
|
const authData = {
|
|
28
36
|
isAuthenticated,
|
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
AsgardeoSPAClient,
|
|
4
4
|
Hooks
|
|
5
5
|
} from "@asgardeo/auth-spa";
|
|
6
|
-
import { useAuthStore } from "../stores/auth.js";
|
|
7
6
|
import { useAuthorization } from "../composables/useAuthorization.js";
|
|
7
|
+
import { useAuthStore } from "../stores/auth.js";
|
|
8
|
+
import capitalizeFirstLetter from "../utils/capitalizeFirstLetter.js";
|
|
8
9
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
9
10
|
const auth = AsgardeoSPAClient.getInstance();
|
|
10
11
|
const runtimeConfig = useRuntimeConfig();
|
|
@@ -14,13 +15,20 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
14
15
|
auth?.on(Hooks.SignIn, async (response) => {
|
|
15
16
|
const authorization = useAuthorization();
|
|
16
17
|
const authStore = useAuthStore();
|
|
18
|
+
const getUserInfo = () => {
|
|
19
|
+
if (response?.email) {
|
|
20
|
+
const [name, lastName] = response.email.split(".");
|
|
21
|
+
return {
|
|
22
|
+
name: capitalizeFirstLetter(name),
|
|
23
|
+
lastName: capitalizeFirstLetter(lastName),
|
|
24
|
+
fullName: capitalizeFirstLetter(name) + " " + capitalizeFirstLetter(lastName)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
17
28
|
const userInfo = {
|
|
29
|
+
cedula: response.displayName,
|
|
18
30
|
email: response.email,
|
|
19
|
-
|
|
20
|
-
name: response.givenName,
|
|
21
|
-
lastName: response.familyName,
|
|
22
|
-
photoUrl: response.profile,
|
|
23
|
-
mainRole: "Admin"
|
|
31
|
+
...getUserInfo()
|
|
24
32
|
};
|
|
25
33
|
const token = await auth?.getAccessToken();
|
|
26
34
|
const resources = await authorization.getResources(token);
|
|
@@ -4,19 +4,17 @@ import type { IAuthData, IAuthenticatedUser, IHasAuthorizationInResourceParams }
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore", Pick<{
|
|
6
6
|
user: import("vue").Ref<{
|
|
7
|
+
cedula: string;
|
|
7
8
|
email: string;
|
|
8
|
-
fullName
|
|
9
|
+
fullName?: string | undefined;
|
|
9
10
|
name?: string | undefined;
|
|
10
11
|
lastName?: string | undefined;
|
|
11
|
-
photoUrl?: string | undefined;
|
|
12
|
-
mainRole?: string | undefined;
|
|
13
12
|
} | null, IAuthenticatedUser | {
|
|
13
|
+
cedula: string;
|
|
14
14
|
email: string;
|
|
15
|
-
fullName
|
|
15
|
+
fullName?: string | undefined;
|
|
16
16
|
name?: string | undefined;
|
|
17
17
|
lastName?: string | undefined;
|
|
18
|
-
photoUrl?: string | undefined;
|
|
19
|
-
mainRole?: string | undefined;
|
|
20
18
|
} | null>;
|
|
21
19
|
authData: import("vue").Ref<{
|
|
22
20
|
isAuthenticated: boolean;
|
|
@@ -47,19 +45,17 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
|
|
|
47
45
|
hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
|
|
48
46
|
}, "user" | "authData">, Pick<{
|
|
49
47
|
user: import("vue").Ref<{
|
|
48
|
+
cedula: string;
|
|
50
49
|
email: string;
|
|
51
|
-
fullName
|
|
50
|
+
fullName?: string | undefined;
|
|
52
51
|
name?: string | undefined;
|
|
53
52
|
lastName?: string | undefined;
|
|
54
|
-
photoUrl?: string | undefined;
|
|
55
|
-
mainRole?: string | undefined;
|
|
56
53
|
} | null, IAuthenticatedUser | {
|
|
54
|
+
cedula: string;
|
|
57
55
|
email: string;
|
|
58
|
-
fullName
|
|
56
|
+
fullName?: string | undefined;
|
|
59
57
|
name?: string | undefined;
|
|
60
58
|
lastName?: string | undefined;
|
|
61
|
-
photoUrl?: string | undefined;
|
|
62
|
-
mainRole?: string | undefined;
|
|
63
59
|
} | null>;
|
|
64
60
|
authData: import("vue").Ref<{
|
|
65
61
|
isAuthenticated: boolean;
|
|
@@ -90,19 +86,17 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
|
|
|
90
86
|
hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
|
|
91
87
|
}, "isAuthenticated" | "token">, Pick<{
|
|
92
88
|
user: import("vue").Ref<{
|
|
89
|
+
cedula: string;
|
|
93
90
|
email: string;
|
|
94
|
-
fullName
|
|
91
|
+
fullName?: string | undefined;
|
|
95
92
|
name?: string | undefined;
|
|
96
93
|
lastName?: string | undefined;
|
|
97
|
-
photoUrl?: string | undefined;
|
|
98
|
-
mainRole?: string | undefined;
|
|
99
94
|
} | null, IAuthenticatedUser | {
|
|
95
|
+
cedula: string;
|
|
100
96
|
email: string;
|
|
101
|
-
fullName
|
|
97
|
+
fullName?: string | undefined;
|
|
102
98
|
name?: string | undefined;
|
|
103
99
|
lastName?: string | undefined;
|
|
104
|
-
photoUrl?: string | undefined;
|
|
105
|
-
mainRole?: string | undefined;
|
|
106
100
|
} | null>;
|
|
107
101
|
authData: import("vue").Ref<{
|
|
108
102
|
isAuthenticated: boolean;
|
|
@@ -371,18 +371,16 @@ export interface IAppStatusState {
|
|
|
371
371
|
* @property {string} - *mainRole* - Rol del usuario
|
|
372
372
|
*/
|
|
373
373
|
export interface IAuthenticatedUser {
|
|
374
|
+
/** Cédula del usuario */
|
|
375
|
+
cedula: string;
|
|
374
376
|
/** Email del usuario */
|
|
375
377
|
email: string;
|
|
376
378
|
/** Nombre completo del usuario */
|
|
377
|
-
fullName
|
|
379
|
+
fullName?: string;
|
|
378
380
|
/** Nombre del usuario */
|
|
379
381
|
name?: string;
|
|
380
382
|
/** Primer apellido del usuario */
|
|
381
383
|
lastName?: string;
|
|
382
|
-
/** Url de la foto del usuario */
|
|
383
|
-
photoUrl?: string;
|
|
384
|
-
/** Rol del usuario */
|
|
385
|
-
mainRole?: string;
|
|
386
384
|
}
|
|
387
385
|
/**
|
|
388
386
|
* Interfaz para la información de los recursos del usuario autenticado.
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
AccordionRoot,
|
|
4
|
-
type AccordionRootEmits,
|
|
5
|
-
type AccordionRootProps,
|
|
6
|
-
useForwardPropsEmits,
|
|
7
|
-
} from 'reka-ui'
|
|
8
|
-
|
|
9
|
-
const props = defineProps<AccordionRootProps>()
|
|
10
|
-
const emits = defineEmits<AccordionRootEmits>()
|
|
11
|
-
|
|
12
|
-
const forwarded = useForwardPropsEmits(props, emits)
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<AccordionRoot data-slot="accordion" v-bind="forwarded">
|
|
17
|
-
<slot />
|
|
18
|
-
</AccordionRoot>
|
|
19
|
-
</template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import { AccordionContent, type AccordionContentProps } from "reka-ui";
|
|
5
|
-
import cn from "../../../utils/cn";
|
|
6
|
-
|
|
7
|
-
const props = defineProps<
|
|
8
|
-
AccordionContentProps & { class?: HTMLAttributes["class"] }
|
|
9
|
-
>();
|
|
10
|
-
|
|
11
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<template>
|
|
15
|
-
<AccordionContent
|
|
16
|
-
data-slot="accordion-content"
|
|
17
|
-
v-bind="delegatedProps"
|
|
18
|
-
class="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
|
|
19
|
-
>
|
|
20
|
-
<div :class="cn('pt-0 pb-4', props.class)">
|
|
21
|
-
<slot />
|
|
22
|
-
</div>
|
|
23
|
-
</AccordionContent>
|
|
24
|
-
</template>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import {
|
|
5
|
-
AccordionItem,
|
|
6
|
-
type AccordionItemProps,
|
|
7
|
-
useForwardProps,
|
|
8
|
-
} from "reka-ui";
|
|
9
|
-
import cn from "../../../utils/cn";
|
|
10
|
-
|
|
11
|
-
const props = defineProps<
|
|
12
|
-
AccordionItemProps & { class?: HTMLAttributes["class"] }
|
|
13
|
-
>();
|
|
14
|
-
|
|
15
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
16
|
-
|
|
17
|
-
const forwardedProps = useForwardProps(delegatedProps);
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<template>
|
|
21
|
-
<AccordionItem
|
|
22
|
-
data-slot="accordion-item"
|
|
23
|
-
v-bind="forwardedProps"
|
|
24
|
-
:class="cn('border-b last:border-b-0', props.class)"
|
|
25
|
-
>
|
|
26
|
-
<slot />
|
|
27
|
-
</AccordionItem>
|
|
28
|
-
</template>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import { ChevronDown } from "lucide-vue-next";
|
|
5
|
-
import {
|
|
6
|
-
AccordionHeader,
|
|
7
|
-
AccordionTrigger,
|
|
8
|
-
type AccordionTriggerProps,
|
|
9
|
-
} from "reka-ui";
|
|
10
|
-
import cn from "../../../utils/cn";
|
|
11
|
-
|
|
12
|
-
const props = defineProps<
|
|
13
|
-
AccordionTriggerProps & { class?: HTMLAttributes["class"] }
|
|
14
|
-
>();
|
|
15
|
-
|
|
16
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<AccordionHeader class="flex">
|
|
21
|
-
<AccordionTrigger
|
|
22
|
-
data-slot="accordion-trigger"
|
|
23
|
-
v-bind="delegatedProps"
|
|
24
|
-
:class="
|
|
25
|
-
cn(
|
|
26
|
-
'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
|
|
27
|
-
props.class
|
|
28
|
-
)
|
|
29
|
-
"
|
|
30
|
-
>
|
|
31
|
-
<slot />
|
|
32
|
-
<slot name="icon">
|
|
33
|
-
<ChevronDown
|
|
34
|
-
class="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
|
|
35
|
-
/>
|
|
36
|
-
</slot>
|
|
37
|
-
</AccordionTrigger>
|
|
38
|
-
</AccordionHeader>
|
|
39
|
-
</template>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import cn from "../../../utils/cn";
|
|
4
|
-
import { type AlertVariants, alertVariants } from ".";
|
|
5
|
-
|
|
6
|
-
const props = defineProps<{
|
|
7
|
-
class?: HTMLAttributes["class"];
|
|
8
|
-
variant?: AlertVariants["variant"];
|
|
9
|
-
}>();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div
|
|
14
|
-
data-slot="alert"
|
|
15
|
-
:class="cn(alertVariants({ variant }), props.class)"
|
|
16
|
-
role="alert"
|
|
17
|
-
>
|
|
18
|
-
<slot />
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import cn from "../../../utils/cn";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"];
|
|
7
|
-
}>();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div
|
|
12
|
-
data-slot="alert-description"
|
|
13
|
-
:class="
|
|
14
|
-
cn(
|
|
15
|
-
'text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed',
|
|
16
|
-
props.class
|
|
17
|
-
)
|
|
18
|
-
"
|
|
19
|
-
>
|
|
20
|
-
<slot />
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import cn from "../../../utils/cn";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"];
|
|
7
|
-
}>();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div
|
|
12
|
-
data-slot="alert-title"
|
|
13
|
-
:class="
|
|
14
|
-
cn(
|
|
15
|
-
'col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight',
|
|
16
|
-
props.class
|
|
17
|
-
)
|
|
18
|
-
"
|
|
19
|
-
>
|
|
20
|
-
<slot />
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority'
|
|
2
|
-
|
|
3
|
-
export { default as Alert } from './Alert.vue'
|
|
4
|
-
export { default as AlertDescription } from './AlertDescription.vue'
|
|
5
|
-
export { default as AlertTitle } from './AlertTitle.vue'
|
|
6
|
-
|
|
7
|
-
export const alertVariants = cva(
|
|
8
|
-
'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: 'bg-card text-card-foreground',
|
|
13
|
-
destructive:
|
|
14
|
-
'text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
defaultVariants: {
|
|
18
|
-
variant: 'default',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
export type AlertVariants = VariantProps<typeof alertVariants>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { type AlertDialogEmits, type AlertDialogProps, AlertDialogRoot, useForwardPropsEmits } from 'reka-ui'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<AlertDialogProps>()
|
|
5
|
-
const emits = defineEmits<AlertDialogEmits>()
|
|
6
|
-
|
|
7
|
-
const forwarded = useForwardPropsEmits(props, emits)
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<AlertDialogRoot data-slot="alert-dialog" v-bind="forwarded">
|
|
12
|
-
<slot />
|
|
13
|
-
</AlertDialogRoot>
|
|
14
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import { AlertDialogAction, type AlertDialogActionProps } from "reka-ui";
|
|
5
|
-
import cn from "../../../utils/cn";
|
|
6
|
-
import { buttonVariants } from "../button";
|
|
7
|
-
|
|
8
|
-
const props = defineProps<
|
|
9
|
-
AlertDialogActionProps & { class?: HTMLAttributes["class"] }
|
|
10
|
-
>();
|
|
11
|
-
|
|
12
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<AlertDialogAction
|
|
17
|
-
v-bind="delegatedProps"
|
|
18
|
-
:class="cn(buttonVariants(), props.class)"
|
|
19
|
-
>
|
|
20
|
-
<slot />
|
|
21
|
-
</AlertDialogAction>
|
|
22
|
-
</template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import { AlertDialogCancel, type AlertDialogCancelProps } from "reka-ui";
|
|
5
|
-
import cn from "../../../utils/cn";
|
|
6
|
-
import { buttonVariants } from "../button";
|
|
7
|
-
|
|
8
|
-
const props = defineProps<
|
|
9
|
-
AlertDialogCancelProps & { class?: HTMLAttributes["class"] }
|
|
10
|
-
>();
|
|
11
|
-
|
|
12
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<AlertDialogCancel
|
|
17
|
-
v-bind="delegatedProps"
|
|
18
|
-
:class="
|
|
19
|
-
cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', props.class)
|
|
20
|
-
"
|
|
21
|
-
>
|
|
22
|
-
<slot />
|
|
23
|
-
</AlertDialogCancel>
|
|
24
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import {
|
|
5
|
-
AlertDialogContent,
|
|
6
|
-
type AlertDialogContentEmits,
|
|
7
|
-
type AlertDialogContentProps,
|
|
8
|
-
AlertDialogOverlay,
|
|
9
|
-
AlertDialogPortal,
|
|
10
|
-
useForwardPropsEmits,
|
|
11
|
-
} from "reka-ui";
|
|
12
|
-
import cn from "../../../utils/cn";
|
|
13
|
-
|
|
14
|
-
const props = defineProps<
|
|
15
|
-
AlertDialogContentProps & { class?: HTMLAttributes["class"] }
|
|
16
|
-
>();
|
|
17
|
-
const emits = defineEmits<AlertDialogContentEmits>();
|
|
18
|
-
|
|
19
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
20
|
-
|
|
21
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<template>
|
|
25
|
-
<AlertDialogPortal>
|
|
26
|
-
<AlertDialogOverlay
|
|
27
|
-
data-slot="alert-dialog-overlay"
|
|
28
|
-
class="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"
|
|
29
|
-
/>
|
|
30
|
-
<AlertDialogContent
|
|
31
|
-
data-slot="alert-dialog-content"
|
|
32
|
-
v-bind="forwarded"
|
|
33
|
-
:class="
|
|
34
|
-
cn(
|
|
35
|
-
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',
|
|
36
|
-
props.class
|
|
37
|
-
)
|
|
38
|
-
"
|
|
39
|
-
>
|
|
40
|
-
<slot />
|
|
41
|
-
</AlertDialogContent>
|
|
42
|
-
</AlertDialogPortal>
|
|
43
|
-
</template>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import {
|
|
5
|
-
AlertDialogDescription,
|
|
6
|
-
type AlertDialogDescriptionProps,
|
|
7
|
-
} from "reka-ui";
|
|
8
|
-
import cn from "../../../utils/cn";
|
|
9
|
-
|
|
10
|
-
const props = defineProps<
|
|
11
|
-
AlertDialogDescriptionProps & { class?: HTMLAttributes["class"] }
|
|
12
|
-
>();
|
|
13
|
-
|
|
14
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<template>
|
|
18
|
-
<AlertDialogDescription
|
|
19
|
-
data-slot="alert-dialog-description"
|
|
20
|
-
v-bind="delegatedProps"
|
|
21
|
-
:class="cn('text-muted-foreground text-sm', props.class)"
|
|
22
|
-
>
|
|
23
|
-
<slot />
|
|
24
|
-
</AlertDialogDescription>
|
|
25
|
-
</template>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import cn from "../../../utils/cn";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"];
|
|
7
|
-
}>();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div
|
|
12
|
-
data-slot="alert-dialog-footer"
|
|
13
|
-
:class="
|
|
14
|
-
cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', props.class)
|
|
15
|
-
"
|
|
16
|
-
>
|
|
17
|
-
<slot />
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import cn from "../../../utils/cn";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"];
|
|
7
|
-
}>();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div
|
|
12
|
-
data-slot="alert-dialog-header"
|
|
13
|
-
:class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
-
import { AlertDialogTitle, type AlertDialogTitleProps } from "reka-ui";
|
|
5
|
-
import cn from "../../../utils/cn";
|
|
6
|
-
|
|
7
|
-
const props = defineProps<
|
|
8
|
-
AlertDialogTitleProps & { class?: HTMLAttributes["class"] }
|
|
9
|
-
>();
|
|
10
|
-
|
|
11
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<template>
|
|
15
|
-
<AlertDialogTitle
|
|
16
|
-
data-slot="alert-dialog-title"
|
|
17
|
-
v-bind="delegatedProps"
|
|
18
|
-
:class="cn('text-lg font-semibold', props.class)"
|
|
19
|
-
>
|
|
20
|
-
<slot />
|
|
21
|
-
</AlertDialogTitle>
|
|
22
|
-
</template>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { AlertDialogTrigger, type AlertDialogTriggerProps } from 'reka-ui'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<AlertDialogTriggerProps>()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<AlertDialogTrigger data-slot="alert-dialog-trigger" v-bind="props">
|
|
9
|
-
<slot />
|
|
10
|
-
</AlertDialogTrigger>
|
|
11
|
-
</template>
|
|
@@ -1,9 +0,0 @@
|
|
|
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'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { AspectRatio, type AspectRatioProps } from 'reka-ui'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<AspectRatioProps>()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<AspectRatio
|
|
9
|
-
data-slot="aspect-ratio"
|
|
10
|
-
v-bind="props"
|
|
11
|
-
>
|
|
12
|
-
<slot />
|
|
13
|
-
</AspectRatio>
|
|
14
|
-
</template>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AspectRatio } from './AspectRatio.vue'
|