@iqual/nuxt-icms 1.1.0 → 1.2.2
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/assets/css/ckeditor.css +4 -0
- package/assets/css/components/container.css +2 -2
- package/assets/css/tailwind.css +1 -1
- package/assets/css/typography.css +4 -0
- package/assets/symbols/download.svg +3 -0
- package/bundles.ts +4 -1
- package/components/Blokkli/TextMedia/index.vue +1 -2
- package/components/DesignSystem/Atoms/Caption.vue +15 -0
- package/components/DesignSystem/Atoms/LinkListItem.vue +21 -0
- package/components/DesignSystem/Molecules/MediaLightbox.vue +273 -0
- package/components/DesignSystem/Molecules/MediaSlider.vue +33 -22
- package/components/DesignSystem/Organisms/Map.vue +61 -0
- package/components/DesignSystem/README.md +489 -0
- package/components/Media/Image/index.vue +4 -162
- package/components/Media/RemoteVideo/index.vue +3 -3
- package/components/Node/Icms/Page/SearchResult/fragment.graphql +8 -0
- package/components/Node/Icms/Page/SearchResult/index.vue +12 -0
- package/components/Node/Icms/Page/Teaser/fragment.graphql +17 -0
- package/components/Node/Icms/Page/Teaser/index.vue +20 -0
- package/components/Node/Icms/Page/fragment.graphql +18 -0
- package/components/Node/Icms/Page/index.vue +5 -3
- package/components/Paragraph/CallToAction/index.vue +12 -8
- package/components/Paragraph/Card/Layout/index.vue +2 -2
- package/components/Paragraph/Contact/index.vue +1 -2
- package/components/Paragraph/Downloads/index.vue +4 -16
- package/components/Paragraph/FAQ/Layout/index.vue +24 -3
- package/components/Paragraph/FlipTeasers/index.vue +2 -2
- package/components/Paragraph/Gallery/index.vue +35 -172
- package/components/Paragraph/HeroImage/index.vue +13 -4
- package/components/Paragraph/IconText/Layout/index.vue +1 -2
- package/components/Paragraph/Media/index.vue +7 -2
- package/components/Paragraph/Table/index.vue +2 -2
- package/components/Paragraph/Team/Layout/index.vue +2 -2
- package/components/Paragraph/Teasers/fragment.graphql +2 -15
- package/components/Paragraph/Teasers/index.vue +12 -15
- package/components/Paragraph/TextMedia/index.vue +40 -33
- package/components/Paragraph/Timeline/Element/index.vue +1 -1
- package/components/Paragraph/Timeline/Layout/fragment.graphql +1 -0
- package/components/Paragraph/Timeline/Layout/index.vue +9 -6
- package/components/Paragraph/iFrame/index.vue +16 -2
- package/components/Search/Facets/FacetDropdownUI.vue +222 -0
- package/components/Search/Facets/FacetedSearchUI.vue +397 -0
- package/components/Search/Facets/fragment.graphql +40 -0
- package/components/Section/Footer/index.vue +15 -14
- package/components/Section/Header/GlobalMenu.vue +34 -34
- package/components/Section/Header/LanguageDropdown.vue +60 -73
- package/components/Section/Header/LanguageSwitcher.vue +37 -0
- package/components/Section/Header/MetaMenu.vue +27 -20
- package/components/Section/Header/index.vue +91 -79
- package/components/ui/accordion/Accordion.vue +2 -2
- package/components/ui/accordion/AccordionContent.vue +5 -5
- package/components/ui/accordion/AccordionItem.vue +9 -10
- package/components/ui/accordion/AccordionTrigger.vue +5 -5
- package/components/ui/alert/Alert.vue +17 -0
- package/components/ui/alert/AlertDescription.vue +14 -0
- package/components/ui/alert/AlertTitle.vue +14 -0
- package/components/ui/alert/index.ts +24 -0
- package/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/components/ui/alert-dialog/AlertDialogAction.vue +22 -0
- package/components/ui/alert-dialog/AlertDialogCancel.vue +29 -0
- package/components/ui/alert-dialog/AlertDialogContent.vue +43 -0
- package/components/ui/alert-dialog/AlertDialogDescription.vue +27 -0
- package/components/ui/alert-dialog/AlertDialogFooter.vue +21 -0
- package/components/ui/alert-dialog/AlertDialogHeader.vue +16 -0
- package/components/ui/alert-dialog/AlertDialogTitle.vue +24 -0
- package/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/components/ui/alert-dialog/index.ts +9 -0
- package/components/ui/aspect-ratio/AspectRatio.vue +12 -0
- package/components/ui/aspect-ratio/index.ts +1 -0
- package/components/ui/auto-form/AutoForm.vue +106 -0
- package/components/ui/auto-form/AutoFormField.vue +45 -0
- package/components/ui/auto-form/AutoFormFieldArray.vue +110 -0
- package/components/ui/auto-form/AutoFormFieldBoolean.vue +41 -0
- package/components/ui/auto-form/AutoFormFieldDate.vue +57 -0
- package/components/ui/auto-form/AutoFormFieldEnum.vue +49 -0
- package/components/ui/auto-form/AutoFormFieldFile.vue +74 -0
- package/components/ui/auto-form/AutoFormFieldInput.vue +36 -0
- package/components/ui/auto-form/AutoFormFieldNumber.vue +32 -0
- package/components/ui/auto-form/AutoFormFieldObject.vue +78 -0
- package/components/ui/auto-form/AutoFormLabel.vue +14 -0
- package/components/ui/auto-form/constant.ts +40 -0
- package/components/ui/auto-form/dependencies.ts +93 -0
- package/components/ui/auto-form/index.ts +15 -0
- package/components/ui/auto-form/interface.ts +95 -0
- package/components/ui/auto-form/utils.ts +188 -0
- package/components/ui/avatar/Avatar.vue +22 -0
- package/components/ui/avatar/AvatarFallback.vue +12 -0
- package/components/ui/avatar/AvatarImage.vue +10 -0
- package/components/ui/avatar/index.ts +25 -0
- package/components/ui/badge/Badge.vue +17 -0
- package/components/ui/badge/index.ts +26 -0
- package/components/ui/breadcrumb/Breadcrumb.vue +13 -0
- package/components/ui/breadcrumb/BreadcrumbEllipsis.vue +22 -0
- package/components/ui/breadcrumb/BreadcrumbItem.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbLink.vue +20 -0
- package/components/ui/breadcrumb/BreadcrumbList.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
- package/components/ui/breadcrumb/BreadcrumbSeparator.vue +21 -0
- package/components/ui/breadcrumb/index.ts +7 -0
- package/components/ui/button/Button.vue +4 -2
- package/components/ui/button/index.ts +9 -9
- package/components/ui/calendar/Calendar.vue +62 -0
- package/components/ui/calendar/CalendarCell.vue +26 -0
- package/components/ui/calendar/CalendarCellTrigger.vue +40 -0
- package/components/ui/calendar/CalendarGrid.vue +26 -0
- package/components/ui/calendar/CalendarGridBody.vue +12 -0
- package/components/ui/calendar/CalendarGridHead.vue +12 -0
- package/components/ui/calendar/CalendarGridRow.vue +23 -0
- package/components/ui/calendar/CalendarHeadCell.vue +23 -0
- package/components/ui/calendar/CalendarHeader.vue +23 -0
- package/components/ui/calendar/CalendarHeading.vue +33 -0
- package/components/ui/calendar/CalendarNextButton.vue +34 -0
- package/components/ui/calendar/CalendarPrevButton.vue +34 -0
- package/components/ui/calendar/index.ts +12 -0
- package/components/ui/card/Card.vue +21 -0
- package/components/ui/card/CardContent.vue +14 -0
- package/components/ui/card/CardDescription.vue +14 -0
- package/components/ui/card/CardFooter.vue +14 -0
- package/components/ui/card/CardHeader.vue +14 -0
- package/components/ui/card/CardTitle.vue +18 -0
- package/components/ui/card/index.ts +6 -0
- package/components/ui/carousel/Carousel.vue +3 -23
- package/components/ui/carousel/CarouselContent.vue +1 -2
- package/components/ui/carousel/CarouselItem.vue +5 -7
- package/components/ui/carousel/CarouselNext.vue +7 -9
- package/components/ui/carousel/CarouselPrevious.vue +7 -9
- package/components/ui/carousel/index.ts +3 -1
- package/components/ui/carousel/interface.ts +3 -1
- package/components/ui/carousel/useCarousel.ts +13 -23
- package/components/ui/chart/ChartCrosshair.vue +45 -0
- package/components/ui/chart/ChartLegend.vue +50 -0
- package/components/ui/chart/ChartSingleTooltip.vue +64 -0
- package/components/ui/chart/ChartTooltip.vue +40 -0
- package/components/ui/chart/index.ts +18 -0
- package/components/ui/chart/interface.ts +64 -0
- package/components/ui/chart-area/AreaChart.vue +141 -0
- package/components/ui/chart-area/index.ts +66 -0
- package/components/ui/chart-bar/BarChart.vue +116 -0
- package/components/ui/chart-bar/index.ts +66 -0
- package/components/ui/chart-donut/DonutChart.vue +101 -0
- package/components/ui/chart-donut/index.ts +39 -0
- package/components/ui/chart-line/LineChart.vue +107 -0
- package/components/ui/chart-line/index.ts +66 -0
- package/components/ui/checkbox/Checkbox.vue +1 -1
- package/components/ui/collapsible/Collapsible.vue +15 -0
- package/components/ui/collapsible/CollapsibleContent.vue +12 -0
- package/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/components/ui/collapsible/index.ts +3 -0
- package/components/ui/command/Command.vue +31 -0
- package/components/ui/command/CommandDialog.vue +21 -0
- package/components/ui/command/CommandEmpty.vue +21 -0
- package/components/ui/command/CommandGroup.vue +30 -0
- package/components/ui/command/CommandInput.vue +35 -0
- package/components/ui/command/CommandItem.vue +27 -0
- package/components/ui/command/CommandList.vue +28 -0
- package/components/ui/command/CommandSeparator.vue +24 -0
- package/components/ui/command/CommandShortcut.vue +14 -0
- package/components/ui/command/index.ts +9 -0
- package/components/ui/context-menu/ContextMenu.vue +15 -0
- package/components/ui/context-menu/ContextMenuCheckboxItem.vue +41 -0
- package/components/ui/context-menu/ContextMenuContent.vue +37 -0
- package/components/ui/context-menu/ContextMenuGroup.vue +12 -0
- package/components/ui/context-menu/ContextMenuItem.vue +35 -0
- package/components/ui/context-menu/ContextMenuLabel.vue +27 -0
- package/components/ui/context-menu/ContextMenuPortal.vue +12 -0
- package/components/ui/context-menu/ContextMenuRadioGroup.vue +19 -0
- package/components/ui/context-menu/ContextMenuRadioItem.vue +41 -0
- package/components/ui/context-menu/ContextMenuSeparator.vue +22 -0
- package/components/ui/context-menu/ContextMenuShortcut.vue +14 -0
- package/components/ui/context-menu/ContextMenuSub.vue +19 -0
- package/components/ui/context-menu/ContextMenuSubContent.vue +36 -0
- package/components/ui/context-menu/ContextMenuSubTrigger.vue +36 -0
- package/components/ui/context-menu/ContextMenuTrigger.vue +14 -0
- package/components/ui/context-menu/index.ts +14 -0
- package/components/ui/dialog/Dialog.vue +2 -6
- package/components/ui/dialog/DialogClose.vue +2 -1
- package/components/ui/dialog/DialogContent.vue +10 -12
- package/components/ui/dialog/DialogDescription.vue +6 -10
- package/components/ui/dialog/DialogScrollContent.vue +15 -21
- package/components/ui/dialog/DialogTitle.vue +9 -6
- package/components/ui/dialog/DialogTrigger.vue +2 -1
- package/components/ui/drawer/Drawer.vue +19 -0
- package/components/ui/drawer/DrawerContent.vue +28 -0
- package/components/ui/drawer/DrawerDescription.vue +21 -0
- package/components/ui/drawer/DrawerFooter.vue +14 -0
- package/components/ui/drawer/DrawerHeader.vue +14 -0
- package/components/ui/drawer/DrawerOverlay.vue +19 -0
- package/components/ui/drawer/DrawerTitle.vue +21 -0
- package/components/ui/drawer/index.ts +8 -0
- package/components/ui/dropdown-menu/DropdownMenu.vue +15 -0
- package/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +41 -0
- package/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/components/ui/dropdown-menu/DropdownMenuItem.vue +30 -0
- package/components/ui/dropdown-menu/DropdownMenuLabel.vue +26 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +19 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +42 -0
- package/components/ui/dropdown-menu/DropdownMenuSeparator.vue +24 -0
- package/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/components/ui/dropdown-menu/DropdownMenuSubContent.vue +31 -0
- package/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +35 -0
- package/components/ui/dropdown-menu/DropdownMenuTrigger.vue +14 -0
- package/components/ui/dropdown-menu/index.ts +16 -0
- package/components/ui/form/FormControl.vue +16 -0
- package/components/ui/form/FormDescription.vue +20 -0
- package/components/ui/form/FormItem.vue +20 -0
- package/components/ui/form/FormLabel.vue +23 -0
- package/components/ui/form/FormMessage.vue +16 -0
- package/components/ui/form/index.ts +7 -0
- package/components/ui/form/injectionKeys.ts +4 -0
- package/components/ui/form/useFormField.ts +30 -0
- package/components/ui/hover-card/HoverCard.vue +15 -0
- package/components/ui/hover-card/HoverCardContent.vue +43 -0
- package/components/ui/hover-card/HoverCardTrigger.vue +12 -0
- package/components/ui/hover-card/index.ts +3 -0
- package/components/ui/input/Input.vue +1 -1
- package/components/ui/menubar/Menubar.vue +36 -0
- package/components/ui/menubar/MenubarCheckboxItem.vue +41 -0
- package/components/ui/menubar/MenubarContent.vue +45 -0
- package/components/ui/menubar/MenubarGroup.vue +12 -0
- package/components/ui/menubar/MenubarItem.vue +36 -0
- package/components/ui/menubar/MenubarLabel.vue +14 -0
- package/components/ui/menubar/MenubarMenu.vue +12 -0
- package/components/ui/menubar/MenubarRadioGroup.vue +20 -0
- package/components/ui/menubar/MenubarRadioItem.vue +41 -0
- package/components/ui/menubar/MenubarSeparator.vue +21 -0
- package/components/ui/menubar/MenubarShortcut.vue +14 -0
- package/components/ui/menubar/MenubarSub.vue +20 -0
- package/components/ui/menubar/MenubarSubContent.vue +40 -0
- package/components/ui/menubar/MenubarSubTrigger.vue +32 -0
- package/components/ui/menubar/MenubarTrigger.vue +31 -0
- package/components/ui/menubar/index.ts +15 -0
- package/components/ui/navigation-menu/NavigationMenu.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuContent.vue +35 -0
- package/components/ui/navigation-menu/NavigationMenuIndicator.vue +26 -0
- package/components/ui/navigation-menu/NavigationMenuItem.vue +12 -0
- package/components/ui/navigation-menu/NavigationMenuLink.vue +19 -0
- package/components/ui/navigation-menu/NavigationMenuList.vue +31 -0
- package/components/ui/navigation-menu/NavigationMenuTrigger.vue +36 -0
- package/components/ui/navigation-menu/NavigationMenuViewport.vue +35 -0
- package/components/ui/navigation-menu/index.ts +14 -0
- package/components/ui/number-field/NumberField.vue +24 -0
- package/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/components/ui/number-field/NumberFieldDecrement.vue +26 -0
- package/components/ui/number-field/NumberFieldIncrement.vue +26 -0
- package/components/ui/number-field/NumberFieldInput.vue +16 -0
- package/components/ui/number-field/index.ts +5 -0
- package/components/ui/pagination/PaginationEllipsis.vue +24 -0
- package/components/ui/pagination/PaginationFirst.vue +31 -0
- package/components/ui/pagination/PaginationLast.vue +31 -0
- package/components/ui/pagination/PaginationNext.vue +31 -0
- package/components/ui/pagination/PaginationPrev.vue +31 -0
- package/components/ui/pagination/index.ts +10 -0
- package/components/ui/pin-input/PinInput.vue +25 -0
- package/components/ui/pin-input/PinInputGroup.vue +20 -0
- package/components/ui/pin-input/PinInputInput.vue +20 -0
- package/components/ui/pin-input/PinInputSeparator.vue +16 -0
- package/components/ui/pin-input/index.ts +4 -0
- package/components/ui/popover/Popover.vue +15 -0
- package/components/ui/popover/PopoverContent.vue +49 -0
- package/components/ui/popover/PopoverTrigger.vue +12 -0
- package/components/ui/popover/index.ts +3 -0
- package/components/ui/progress/Progress.vue +41 -0
- package/components/ui/progress/index.ts +1 -0
- package/components/ui/radio-group/RadioGroupItem.vue +1 -1
- package/components/ui/range-calendar/RangeCalendar.vue +62 -0
- package/components/ui/range-calendar/RangeCalendarCell.vue +26 -0
- package/components/ui/range-calendar/RangeCalendarCellTrigger.vue +42 -0
- package/components/ui/range-calendar/RangeCalendarGrid.vue +26 -0
- package/components/ui/range-calendar/RangeCalendarGridBody.vue +12 -0
- package/components/ui/range-calendar/RangeCalendarGridHead.vue +12 -0
- package/components/ui/range-calendar/RangeCalendarGridRow.vue +23 -0
- package/components/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
- package/components/ui/range-calendar/RangeCalendarHeader.vue +23 -0
- package/components/ui/range-calendar/RangeCalendarHeading.vue +33 -0
- package/components/ui/range-calendar/RangeCalendarNextButton.vue +34 -0
- package/components/ui/range-calendar/RangeCalendarPrevButton.vue +34 -0
- package/components/ui/range-calendar/index.ts +12 -0
- package/components/ui/resizable/ResizableHandle.vue +28 -0
- package/components/ui/resizable/ResizablePanelGroup.vue +23 -0
- package/components/ui/resizable/index.ts +3 -0
- package/components/ui/scroll-area/ScrollArea.vue +31 -0
- package/components/ui/scroll-area/ScrollBar.vue +32 -0
- package/components/ui/scroll-area/index.ts +2 -0
- package/components/ui/select/SelectContent.vue +1 -1
- package/components/ui/select/SelectItem.vue +1 -1
- package/components/ui/select/SelectSeparator.vue +1 -1
- package/components/ui/select/SelectTrigger.vue +1 -1
- package/components/ui/separator/Separator.vue +37 -0
- package/components/ui/separator/index.ts +1 -0
- package/components/ui/sheet/Sheet.vue +15 -0
- package/components/ui/sheet/SheetClose.vue +12 -0
- package/components/ui/sheet/SheetContent.vue +58 -0
- package/components/ui/sheet/SheetDescription.vue +24 -0
- package/components/ui/sheet/SheetFooter.vue +19 -0
- package/components/ui/sheet/SheetHeader.vue +16 -0
- package/components/ui/sheet/SheetTitle.vue +24 -0
- package/components/ui/sheet/SheetTrigger.vue +12 -0
- package/components/ui/sheet/index.ts +32 -0
- package/components/ui/sidebar/Sidebar.vue +85 -0
- package/components/ui/sidebar/SidebarContent.vue +17 -0
- package/components/ui/sidebar/SidebarFooter.vue +17 -0
- package/components/ui/sidebar/SidebarGroup.vue +17 -0
- package/components/ui/sidebar/SidebarGroupAction.vue +26 -0
- package/components/ui/sidebar/SidebarGroupContent.vue +17 -0
- package/components/ui/sidebar/SidebarGroupLabel.vue +24 -0
- package/components/ui/sidebar/SidebarHeader.vue +17 -0
- package/components/ui/sidebar/SidebarInput.vue +21 -0
- package/components/ui/sidebar/SidebarInset.vue +20 -0
- package/components/ui/sidebar/SidebarMenu.vue +17 -0
- package/components/ui/sidebar/SidebarMenuAction.vue +34 -0
- package/components/ui/sidebar/SidebarMenuBadge.vue +25 -0
- package/components/ui/sidebar/SidebarMenuButton.vue +51 -0
- package/components/ui/sidebar/SidebarMenuButtonChild.vue +35 -0
- package/components/ui/sidebar/SidebarMenuItem.vue +17 -0
- package/components/ui/sidebar/SidebarMenuSkeleton.vue +34 -0
- package/components/ui/sidebar/SidebarMenuSub.vue +21 -0
- package/components/ui/sidebar/SidebarMenuSubButton.vue +35 -0
- package/components/ui/sidebar/SidebarMenuSubItem.vue +8 -0
- package/components/ui/sidebar/SidebarProvider.vue +81 -0
- package/components/ui/sidebar/SidebarRail.vue +32 -0
- package/components/ui/sidebar/SidebarSeparator.vue +18 -0
- package/components/ui/sidebar/SidebarTrigger.vue +26 -0
- package/components/ui/sidebar/index.ts +60 -0
- package/components/ui/sidebar/utils.ts +19 -0
- package/components/ui/skeleton/Skeleton.vue +14 -0
- package/components/ui/skeleton/index.ts +1 -0
- package/components/ui/slider/Slider.vue +37 -0
- package/components/ui/slider/index.ts +1 -0
- package/components/ui/sonner/Sonner.vue +23 -0
- package/components/ui/sonner/index.ts +1 -0
- package/components/ui/stepper/Stepper.vue +32 -0
- package/components/ui/stepper/StepperDescription.vue +24 -0
- package/components/ui/stepper/StepperIndicator.vue +36 -0
- package/components/ui/stepper/StepperItem.vue +28 -0
- package/components/ui/stepper/StepperSeparator.vue +32 -0
- package/components/ui/stepper/StepperTitle.vue +24 -0
- package/components/ui/stepper/StepperTrigger.vue +27 -0
- package/components/ui/stepper/index.ts +7 -0
- package/components/ui/switch/Switch.vue +40 -0
- package/components/ui/switch/index.ts +1 -0
- package/components/ui/table/Table.vue +16 -0
- package/components/ui/table/TableBody.vue +14 -0
- package/components/ui/table/TableCaption.vue +14 -0
- package/components/ui/table/TableCell.vue +21 -0
- package/components/ui/table/TableEmpty.vue +38 -0
- package/components/ui/table/TableFooter.vue +14 -0
- package/components/ui/table/TableHead.vue +14 -0
- package/components/ui/table/TableHeader.vue +14 -0
- package/components/ui/table/TableRow.vue +14 -0
- package/components/ui/table/index.ts +9 -0
- package/components/ui/tabs/TabsContent.vue +6 -11
- package/components/ui/tabs/TabsList.vue +8 -8
- package/components/ui/tabs/TabsTrigger.vue +9 -11
- package/components/ui/tags-input/TagsInput.vue +24 -0
- package/components/ui/tags-input/TagsInputInput.vue +21 -0
- package/components/ui/tags-input/TagsInputItem.vue +24 -0
- package/components/ui/tags-input/TagsInputItemDelete.vue +26 -0
- package/components/ui/tags-input/TagsInputItemText.vue +21 -0
- package/components/ui/tags-input/index.ts +5 -0
- package/components/ui/textarea/Textarea.vue +1 -1
- package/components/ui/toast/Toast.vue +30 -0
- package/components/ui/toast/ToastAction.vue +21 -0
- package/components/ui/toast/ToastClose.vue +24 -0
- package/components/ui/toast/ToastDescription.vue +21 -0
- package/components/ui/toast/ToastProvider.vue +12 -0
- package/components/ui/toast/ToastTitle.vue +21 -0
- package/components/ui/toast/ToastViewport.vue +19 -0
- package/components/ui/toast/Toaster.vue +30 -0
- package/components/ui/toast/index.ts +39 -0
- package/components/ui/toast/use-toast.ts +165 -0
- package/components/ui/toggle/Toggle.vue +38 -0
- package/components/ui/toggle/index.ts +28 -0
- package/components/ui/toggle-group/ToggleGroup.vue +36 -0
- package/components/ui/toggle-group/ToggleGroupItem.vue +37 -0
- package/components/ui/toggle-group/index.ts +2 -0
- package/components/ui/tooltip/Tooltip.vue +15 -0
- package/components/ui/tooltip/TooltipContent.vue +33 -0
- package/components/ui/tooltip/TooltipProvider.vue +12 -0
- package/components/ui/tooltip/TooltipTrigger.vue +12 -0
- package/components/ui/tooltip/index.ts +4 -0
- package/components/ui/v-calendar/Calendar.vue +343 -0
- package/components/ui/v-calendar/index.ts +22 -0
- package/composables/useAccordionScroll.ts +1 -1
- package/composables/useContentSearch.ts +0 -0
- package/composables/useGlobalConfig.ts +57 -0
- package/composables/useGraphqlCacheability.ts +22 -0
- package/composables/useImageSources.ts +208 -0
- package/composables/useInitData.ts +20 -112
- package/composables/useMediaLightbox.ts +114 -0
- package/composables/useMenu.ts +66 -0
- package/composables/useMessageBus.ts +74 -0
- package/composables/useNavigationOffset.ts +1 -1
- package/layouts/default.vue +2 -2
- package/layouts/error.vue +8 -10
- package/modules/dynamicEntityComponentResolver.ts +162 -0
- package/modules/dynamicParagraphResolver.ts +1 -1
- package/nuxt.config.ts +11 -22
- package/package.json +2 -2
- package/pages/[...slug]/index.vue +2 -2
- package/pages/index.vue +2 -2
- package/pages/node/[nid]/index.vue +2 -2
- package/plugins/graphqlMiddleware.ts +27 -68
- package/plugins/initData.ts +105 -0
- package/queries/query.contentSearch.graphql +17 -0
- package/{composables → queries}/query.initData.graphql +2 -8
- package/queries/query.loadTranslations.graphql +5 -0
- package/tailwind.config.ts +1 -0
- package/types/initData.ts +1 -0
- package/components/Section/Header/SearchLink.vue +0 -26
- package/composables/languageLinks.ts +0 -31
- package/composables/useMainMenuLinks.ts +0 -69
- package/composables/useMetaMenuLinks.ts +0 -44
- package/modules/dynamicNodeResolver.ts +0 -95
- package/pages/search/index.vue +0 -69
- package/pages/static-page/example.vue +0 -40
- package/queries/fragment.routeQuery.graphql +0 -51
|
@@ -15,81 +15,94 @@
|
|
|
15
15
|
<!-- Hidden on mobile -->
|
|
16
16
|
<div class="hidden border-b-1 border-b-gray-100 lg:block">
|
|
17
17
|
<!-- Meta menu container -->
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
class="container flex max-w-full items-center justify-end py-4"
|
|
18
|
+
<DesignSystemAtomsGridRow
|
|
19
|
+
:class="'w-full max-w-full 2xl:max-w-screen-2xl'"
|
|
21
20
|
>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
<div class="col-span-12">
|
|
22
|
+
<div
|
|
23
|
+
ref="metaRef"
|
|
24
|
+
class="flex max-w-full items-center justify-end py-4"
|
|
25
|
+
>
|
|
26
|
+
<!-- Meta menu -->
|
|
27
|
+
<SectionHeaderMetaMenu :links="metaLinks" />
|
|
28
|
+
|
|
29
|
+
<!-- Desktop Language dropdown -->
|
|
30
|
+
<SectionHeaderLanguageDropdown
|
|
31
|
+
class="hidden h-full lg:block"
|
|
32
|
+
@lang-dropdown:change="closeMenu"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</DesignSystemAtomsGridRow>
|
|
31
37
|
</div>
|
|
32
38
|
|
|
33
39
|
<!-- Main menu full-width container -->
|
|
34
40
|
<div class="h-[70px] shrink-0 border-b-1 border-b-gray-100 lg:h-[110px]">
|
|
35
41
|
<!-- Main menu container -->
|
|
36
42
|
<div
|
|
37
|
-
class="
|
|
43
|
+
class="flex h-full max-w-full items-center justify-between lg:justify-start"
|
|
38
44
|
>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
:to="`/${currentLanguage}`"
|
|
42
|
-
:title="globalConfig.companyName"
|
|
43
|
-
prefetch
|
|
44
|
-
>
|
|
45
|
-
<Media
|
|
46
|
-
v-if="companyLogo"
|
|
47
|
-
:media="companyLogo"
|
|
48
|
-
mediaClass="h-10 lg:h-16"
|
|
49
|
-
/>
|
|
50
|
-
</NuxtLink>
|
|
51
|
-
|
|
52
|
-
<!-- Desktop Main navigation menu -->
|
|
53
|
-
<!-- Hidden on mobile -->
|
|
54
|
-
<SectionHeaderGlobalMenu
|
|
55
|
-
class="ml-auto hidden lg:block"
|
|
56
|
-
@menu:link-click="closeMenu"
|
|
57
|
-
/>
|
|
58
|
-
|
|
59
|
-
<!-- Desktop Contact button -->
|
|
60
|
-
<!-- Hidden on mobile -->
|
|
61
|
-
<div
|
|
62
|
-
v-if="contactButtons?.length"
|
|
63
|
-
class="ml-8 hidden items-center justify-center gap-8 lg:flex"
|
|
64
|
-
>
|
|
65
|
-
<DesignSystemAtomsButton
|
|
66
|
-
v-for="contactButton in contactButtons"
|
|
67
|
-
:key="contactButton.uuid"
|
|
68
|
-
:label="contactButton?.props?.label"
|
|
69
|
-
:subline="contactButton?.props?.subline"
|
|
70
|
-
:title="contactButton?.props?.title"
|
|
71
|
-
:link="contactButton?.props?.link?.uri?.path"
|
|
72
|
-
:params="contactButton?.props?.params"
|
|
73
|
-
:targetBlank="contactButton?.props?.targetBlank"
|
|
74
|
-
:style="contactButton?.props?.buttonStyle"
|
|
75
|
-
/>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
|
-
<!-- Hamburger menu -->
|
|
79
|
-
<!-- Hidden on desktop -->
|
|
80
|
-
<button
|
|
81
|
-
class="flex items-center gap-3 leading-none lg:hidden"
|
|
82
|
-
aria-label="Hamburger Menu"
|
|
83
|
-
@click="toggleNav"
|
|
45
|
+
<DesignSystemAtomsGridRow
|
|
46
|
+
:class="'w-full max-w-full 2xl:max-w-screen-2xl'"
|
|
84
47
|
>
|
|
85
|
-
<span
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
48
|
+
<div class="col-span-12 flex flex-nowrap justify-between">
|
|
49
|
+
<!-- Logo -->
|
|
50
|
+
<NuxtLink
|
|
51
|
+
:to="`/${currentLanguage}`"
|
|
52
|
+
:title="companyName"
|
|
53
|
+
prefetch
|
|
54
|
+
>
|
|
55
|
+
<Media
|
|
56
|
+
v-if="companyLogo"
|
|
57
|
+
:media="companyLogo"
|
|
58
|
+
mediaClass="h-10 lg:h-16"
|
|
59
|
+
/>
|
|
60
|
+
</NuxtLink>
|
|
61
|
+
|
|
62
|
+
<!-- Desktop Main navigation menu -->
|
|
63
|
+
<!-- Hidden on mobile -->
|
|
64
|
+
<SectionHeaderGlobalMenu
|
|
65
|
+
class="ml-auto hidden lg:block"
|
|
66
|
+
@menu:link-click="closeMenu"
|
|
67
|
+
/>
|
|
68
|
+
|
|
69
|
+
<!-- Desktop Contact button -->
|
|
70
|
+
<!-- Hidden on mobile -->
|
|
71
|
+
<div
|
|
72
|
+
v-if="contactButtons?.length"
|
|
73
|
+
class="ml-8 hidden items-center justify-center gap-8 lg:flex"
|
|
74
|
+
>
|
|
75
|
+
<DesignSystemAtomsButton
|
|
76
|
+
v-for="(contactButton, key) in contactButtons"
|
|
77
|
+
:key="key"
|
|
78
|
+
:label="contactButton?.label"
|
|
79
|
+
:subline="contactButton?.subline"
|
|
80
|
+
:title="contactButton?.title"
|
|
81
|
+
:link="contactButton?.link?.uri?.path"
|
|
82
|
+
:params="contactButton?.params"
|
|
83
|
+
:targetBlank="contactButton?.targetBlank"
|
|
84
|
+
:style="contactButton?.buttonStyle"
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<!-- Hamburger menu -->
|
|
89
|
+
<!-- Hidden on desktop -->
|
|
90
|
+
<button
|
|
91
|
+
class="flex items-center gap-3 leading-none lg:hidden"
|
|
92
|
+
aria-label="Hamburger Menu"
|
|
93
|
+
@click="toggleNav"
|
|
94
|
+
>
|
|
95
|
+
<span
|
|
96
|
+
class="h-auto leading-none opacity-100"
|
|
97
|
+
:class="{
|
|
98
|
+
'opacity-0 transition-all duration-250 ease-in-out':
|
|
99
|
+
isMenuOpen,
|
|
100
|
+
}"
|
|
101
|
+
/>
|
|
102
|
+
<SectionHeaderMenuIcon :is-in-closable-state="isMenuOpen" />
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
</DesignSystemAtomsGridRow>
|
|
93
106
|
</div>
|
|
94
107
|
</div>
|
|
95
108
|
|
|
@@ -101,7 +114,7 @@
|
|
|
101
114
|
<SectionHeaderGlobalMenu @menu:link-click="closeMenu" />
|
|
102
115
|
|
|
103
116
|
<!-- Mobile Language dropdown -->
|
|
104
|
-
<
|
|
117
|
+
<SectionHeaderLanguageSwitcher @lang-dropdown:change="closeMenu" />
|
|
105
118
|
|
|
106
119
|
<!-- Mobile Meta menu -->
|
|
107
120
|
<SectionHeaderMetaMenu
|
|
@@ -112,15 +125,15 @@
|
|
|
112
125
|
<!-- Mobile Contact button -->
|
|
113
126
|
<div v-if="contactButtons?.length" class="flex gap-8 lg:ml-8">
|
|
114
127
|
<DesignSystemAtomsButton
|
|
115
|
-
v-for="contactButton in contactButtons"
|
|
116
|
-
:key="
|
|
117
|
-
:label="contactButton?.
|
|
118
|
-
:subline="contactButton?.
|
|
119
|
-
:title="contactButton?.
|
|
120
|
-
:link="contactButton?.
|
|
121
|
-
:params="contactButton?.
|
|
122
|
-
:targetBlank="contactButton?.
|
|
123
|
-
:style="contactButton?.
|
|
128
|
+
v-for="(contactButton, key) in contactButtons"
|
|
129
|
+
:key="key"
|
|
130
|
+
:label="contactButton?.label"
|
|
131
|
+
:subline="contactButton?.subline"
|
|
132
|
+
:title="contactButton?.title"
|
|
133
|
+
:link="contactButton?.link?.uri?.path"
|
|
134
|
+
:params="contactButton?.params"
|
|
135
|
+
:targetBlank="contactButton?.targetBlank"
|
|
136
|
+
:style="contactButton?.buttonStyle"
|
|
124
137
|
/>
|
|
125
138
|
</div>
|
|
126
139
|
</div>
|
|
@@ -128,9 +141,8 @@
|
|
|
128
141
|
</template>
|
|
129
142
|
|
|
130
143
|
<script lang="ts" setup>
|
|
131
|
-
|
|
132
|
-
const {
|
|
133
|
-
const { companyLogo, contactButtons, metaLinks } = globalConfig
|
|
144
|
+
|
|
145
|
+
const { companyLogo, companyName, contactButtons, metaLinks } = await useGlobalConfig()
|
|
134
146
|
|
|
135
147
|
const container = ref<HTMLElement | null>(null)
|
|
136
148
|
const metaRef = useTemplateRef('metaRef')
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { AccordionContentProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
2
4
|
import { cn } from '@/lib/utils'
|
|
3
|
-
import { AccordionContent
|
|
4
|
-
import { computed
|
|
5
|
+
import { AccordionContent } from 'radix-vue'
|
|
6
|
+
import { computed } from 'vue'
|
|
5
7
|
|
|
6
|
-
const props = defineProps<
|
|
7
|
-
AccordionContentProps & { class?: HTMLAttributes['class'] }
|
|
8
|
-
>()
|
|
8
|
+
const props = defineProps<AccordionContentProps & { class?: HTMLAttributes['class'] }>()
|
|
9
9
|
|
|
10
10
|
const delegatedProps = computed(() => {
|
|
11
11
|
const { class: _, ...delegated } = props
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { AccordionItemProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
2
4
|
import { cn } from '@/lib/utils'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type AccordionItemProps,
|
|
6
|
-
useForwardProps,
|
|
7
|
-
} from 'radix-vue'
|
|
8
|
-
import { computed, type HTMLAttributes } from 'vue'
|
|
5
|
+
import { AccordionItem, useForwardProps } from 'radix-vue'
|
|
6
|
+
import { computed } from 'vue'
|
|
9
7
|
|
|
10
|
-
const props = defineProps<
|
|
11
|
-
AccordionItemProps & { class?: HTMLAttributes['class'] }
|
|
12
|
-
>()
|
|
8
|
+
const props = defineProps<AccordionItemProps & { class?: HTMLAttributes['class'] }>()
|
|
13
9
|
|
|
14
10
|
const delegatedProps = computed(() => {
|
|
15
11
|
const { class: _, ...delegated } = props
|
|
@@ -21,7 +17,10 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
21
17
|
</script>
|
|
22
18
|
|
|
23
19
|
<template>
|
|
24
|
-
<AccordionItem
|
|
20
|
+
<AccordionItem
|
|
21
|
+
v-bind="forwardedProps"
|
|
22
|
+
:class="cn('border-b', props.class)"
|
|
23
|
+
>
|
|
25
24
|
<slot />
|
|
26
25
|
</AccordionItem>
|
|
27
26
|
</template>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { AccordionTriggerProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
2
4
|
import { cn } from '@/lib/utils'
|
|
3
5
|
import { ChevronDown } from 'lucide-vue-next'
|
|
4
6
|
import {
|
|
5
7
|
AccordionHeader,
|
|
6
8
|
AccordionTrigger,
|
|
7
|
-
|
|
9
|
+
|
|
8
10
|
} from 'radix-vue'
|
|
9
|
-
import { computed
|
|
11
|
+
import { computed } from 'vue'
|
|
10
12
|
|
|
11
|
-
const props = defineProps<
|
|
12
|
-
AccordionTriggerProps & { class?: HTMLAttributes['class'] }
|
|
13
|
-
>()
|
|
13
|
+
const props = defineProps<AccordionTriggerProps & { class?: HTMLAttributes['class'] }>()
|
|
14
14
|
|
|
15
15
|
const delegatedProps = computed(() => {
|
|
16
16
|
const { class: _, ...delegated } = props
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import type { AlertVariants } from '.'
|
|
4
|
+
import { cn } from '@/lib/utils'
|
|
5
|
+
import { alertVariants } from '.'
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
class?: HTMLAttributes['class']
|
|
9
|
+
variant?: AlertVariants['variant']
|
|
10
|
+
}>()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div :class="cn(alertVariants({ variant }), props.class)" role="alert">
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div :class="cn('text-sm [&_p]:leading-relaxed', props.class)">
|
|
12
|
+
<slot />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<h5 :class="cn('mb-1 font-medium leading-none tracking-tight', props.class)">
|
|
12
|
+
<slot />
|
|
13
|
+
</h5>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
2
|
+
import { cva } from 'class-variance-authority'
|
|
3
|
+
|
|
4
|
+
export { default as Alert } from './Alert.vue'
|
|
5
|
+
export { default as AlertDescription } from './AlertDescription.vue'
|
|
6
|
+
export { default as AlertTitle } from './AlertTitle.vue'
|
|
7
|
+
|
|
8
|
+
export const alertVariants = cva(
|
|
9
|
+
'relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground',
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: 'bg-background text-foreground',
|
|
14
|
+
destructive:
|
|
15
|
+
'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: 'default',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export type AlertVariants = VariantProps<typeof alertVariants>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogEmits, AlertDialogProps } from 'radix-vue'
|
|
3
|
+
import { AlertDialogRoot, useForwardPropsEmits } from 'radix-vue'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AlertDialogProps>()
|
|
6
|
+
const emits = defineEmits<AlertDialogEmits>()
|
|
7
|
+
|
|
8
|
+
const forwarded = useForwardPropsEmits(props, emits)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<AlertDialogRoot v-bind="forwarded">
|
|
13
|
+
<slot />
|
|
14
|
+
</AlertDialogRoot>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogActionProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { buttonVariants } from '@/lib/registry/default/ui/button'
|
|
5
|
+
import { cn } from '@/lib/utils'
|
|
6
|
+
import { AlertDialogAction } from 'radix-vue'
|
|
7
|
+
import { computed } from 'vue'
|
|
8
|
+
|
|
9
|
+
const props = defineProps<AlertDialogActionProps & { class?: HTMLAttributes['class'] }>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = computed(() => {
|
|
12
|
+
const { class: _, ...delegated } = props
|
|
13
|
+
|
|
14
|
+
return delegated
|
|
15
|
+
})
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<AlertDialogAction v-bind="delegatedProps" :class="cn(buttonVariants(), props.class)">
|
|
20
|
+
<slot />
|
|
21
|
+
</AlertDialogAction>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogCancelProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { buttonVariants } from '@/lib/registry/default/ui/button'
|
|
5
|
+
import { cn } from '@/lib/utils'
|
|
6
|
+
import { AlertDialogCancel } from 'radix-vue'
|
|
7
|
+
import { computed } from 'vue'
|
|
8
|
+
|
|
9
|
+
const props = defineProps<AlertDialogCancelProps & { class?: HTMLAttributes['class'] }>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = computed(() => {
|
|
12
|
+
const { class: _, ...delegated } = props
|
|
13
|
+
|
|
14
|
+
return delegated
|
|
15
|
+
})
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<AlertDialogCancel
|
|
20
|
+
v-bind="delegatedProps"
|
|
21
|
+
:class="cn(
|
|
22
|
+
buttonVariants({ variant: 'outline' }),
|
|
23
|
+
'mt-2 sm:mt-0',
|
|
24
|
+
props.class,
|
|
25
|
+
)"
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</AlertDialogCancel>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogContentEmits, AlertDialogContentProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { cn } from '@/lib/utils'
|
|
5
|
+
import {
|
|
6
|
+
AlertDialogContent,
|
|
7
|
+
|
|
8
|
+
AlertDialogOverlay,
|
|
9
|
+
AlertDialogPortal,
|
|
10
|
+
useForwardPropsEmits,
|
|
11
|
+
} from 'radix-vue'
|
|
12
|
+
import { computed } from 'vue'
|
|
13
|
+
|
|
14
|
+
const props = defineProps<AlertDialogContentProps & { class?: HTMLAttributes['class'] }>()
|
|
15
|
+
const emits = defineEmits<AlertDialogContentEmits>()
|
|
16
|
+
|
|
17
|
+
const delegatedProps = computed(() => {
|
|
18
|
+
const { class: _, ...delegated } = props
|
|
19
|
+
|
|
20
|
+
return delegated
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<AlertDialogPortal>
|
|
28
|
+
<AlertDialogOverlay
|
|
29
|
+
class="fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
30
|
+
/>
|
|
31
|
+
<AlertDialogContent
|
|
32
|
+
v-bind="forwarded"
|
|
33
|
+
:class="
|
|
34
|
+
cn(
|
|
35
|
+
'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
|
|
36
|
+
props.class,
|
|
37
|
+
)
|
|
38
|
+
"
|
|
39
|
+
>
|
|
40
|
+
<slot />
|
|
41
|
+
</AlertDialogContent>
|
|
42
|
+
</AlertDialogPortal>
|
|
43
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogDescriptionProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { cn } from '@/lib/utils'
|
|
5
|
+
import {
|
|
6
|
+
AlertDialogDescription,
|
|
7
|
+
|
|
8
|
+
} from 'radix-vue'
|
|
9
|
+
import { computed } from 'vue'
|
|
10
|
+
|
|
11
|
+
const props = defineProps<AlertDialogDescriptionProps & { class?: HTMLAttributes['class'] }>()
|
|
12
|
+
|
|
13
|
+
const delegatedProps = computed(() => {
|
|
14
|
+
const { class: _, ...delegated } = props
|
|
15
|
+
|
|
16
|
+
return delegated
|
|
17
|
+
})
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<AlertDialogDescription
|
|
22
|
+
v-bind="delegatedProps"
|
|
23
|
+
:class="cn('text-sm text-muted-foreground', props.class)"
|
|
24
|
+
>
|
|
25
|
+
<slot />
|
|
26
|
+
</AlertDialogDescription>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
:class="
|
|
13
|
+
cn(
|
|
14
|
+
'flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2',
|
|
15
|
+
props.class,
|
|
16
|
+
)
|
|
17
|
+
"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
:class="cn('flex flex-col gap-y-2 text-center sm:text-left', props.class)"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogTitleProps } from 'radix-vue'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { cn } from '@/lib/utils'
|
|
5
|
+
import { AlertDialogTitle } from 'radix-vue'
|
|
6
|
+
import { computed } from 'vue'
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AlertDialogTitleProps & { class?: HTMLAttributes['class'] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = computed(() => {
|
|
11
|
+
const { class: _, ...delegated } = props
|
|
12
|
+
|
|
13
|
+
return delegated
|
|
14
|
+
})
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<AlertDialogTitle
|
|
19
|
+
v-bind="delegatedProps"
|
|
20
|
+
:class="cn('text-lg font-semibold', props.class)"
|
|
21
|
+
>
|
|
22
|
+
<slot />
|
|
23
|
+
</AlertDialogTitle>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogTriggerProps } from 'radix-vue'
|
|
3
|
+
import { AlertDialogTrigger } from 'radix-vue'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AlertDialogTriggerProps>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<AlertDialogTrigger v-bind="props">
|
|
10
|
+
<slot />
|
|
11
|
+
</AlertDialogTrigger>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AlertDialog } from './AlertDialog.vue'
|
|
2
|
+
export { default as AlertDialogAction } from './AlertDialogAction.vue'
|
|
3
|
+
export { default as AlertDialogCancel } from './AlertDialogCancel.vue'
|
|
4
|
+
export { default as AlertDialogContent } from './AlertDialogContent.vue'
|
|
5
|
+
export { default as AlertDialogDescription } from './AlertDialogDescription.vue'
|
|
6
|
+
export { default as AlertDialogFooter } from './AlertDialogFooter.vue'
|
|
7
|
+
export { default as AlertDialogHeader } from './AlertDialogHeader.vue'
|
|
8
|
+
export { default as AlertDialogTitle } from './AlertDialogTitle.vue'
|
|
9
|
+
export { default as AlertDialogTrigger } from './AlertDialogTrigger.vue'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AspectRatioProps } from 'radix-vue'
|
|
3
|
+
import { AspectRatio } from 'radix-vue'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AspectRatioProps>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<AspectRatio v-bind="props">
|
|
10
|
+
<slot />
|
|
11
|
+
</AspectRatio>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AspectRatio } from './AspectRatio.vue'
|