@sidekick-coder/zenith-kit 0.4.9 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/zenith.js +1 -1
- package/dist/client/DashboardWidgetActionSetting-BoIAfpZL.mjs +15689 -0
- package/dist/client/Icon.vue_vue_type_script_setup_true_lang-h54F0nF0.mjs +21 -0
- package/dist/client/WidgetTextRender-B53sWP0X.mjs +52 -0
- package/dist/client/index-CeoTAgV8.mjs +16130 -0
- package/dist/client/index.es.js +97 -8404
- package/dist/client/src/client/components/ClientOnly.vue.d.ts +16 -0
- package/dist/client/src/client/components/ColorPicker.vue.d.ts +82 -0
- package/dist/client/src/client/components/ColorWheel.vue.d.ts +11 -0
- package/dist/client/src/client/components/Component.vue.d.ts +28 -0
- package/dist/client/src/client/components/DashboardAddWidgetDrawer.vue.d.ts +45 -0
- package/dist/client/src/client/components/DashboardBody.vue.d.ts +19 -0
- package/dist/client/src/client/components/DashboardDrawer.vue.d.ts +35 -0
- package/dist/client/src/client/components/DashboardGridUnitInput.vue.d.ts +67 -0
- package/dist/client/src/client/components/DashboardPage.vue.d.ts +23 -0
- package/dist/client/src/client/components/DashboardWidget.vue.d.ts +22 -0
- package/dist/client/src/client/components/DashboardWidgetActionRender.vue.d.ts +15 -0
- package/dist/client/src/client/components/DashboardWidgetActionSetting.vue.d.ts +64 -0
- package/dist/client/src/client/components/DataTable.vue.d.ts +88 -0
- package/dist/client/src/client/components/DatePicker.vue.d.ts +62 -0
- package/dist/client/src/client/components/DialogForm.vue.d.ts +84 -0
- package/dist/client/src/client/components/FileUploader.vue.d.ts +135 -0
- package/dist/client/src/client/components/FormAutoFieldList.vue.d.ts +17 -0
- package/dist/client/src/client/components/FormAutoFieldRender.vue.d.ts +25 -0
- package/dist/client/src/client/components/FormAutocomplete.vue.d.ts +119 -0
- package/dist/client/src/client/components/FormColorPicker.vue.d.ts +59 -0
- package/dist/client/src/client/components/FormDatePicker.vue.d.ts +50 -0
- package/dist/client/src/client/components/FormFilePicker.vue.d.ts +71 -0
- package/dist/client/src/client/components/FormFileUploader.vue.d.ts +96 -0
- package/dist/client/src/client/components/FormHiddenField.vue.d.ts +14 -0
- package/dist/client/src/client/components/FormImageUploader.vue.d.ts +115 -0
- package/dist/client/src/client/components/FormJsonInput.vue.d.ts +40 -0
- package/dist/client/src/client/components/FormSelect.vue.d.ts +60 -0
- package/dist/client/src/client/components/FormStringListInput.vue.d.ts +50 -0
- package/dist/client/src/client/components/FormSwitch.vue.d.ts +41 -0
- package/dist/client/src/client/components/FormTextField.vue.d.ts +123 -0
- package/dist/client/src/client/components/FormTextarea.vue.d.ts +41 -0
- package/dist/client/src/client/components/Head.vue.d.ts +4 -0
- package/dist/client/src/client/components/Icon.vue.d.ts +16 -0
- package/dist/client/src/client/components/Image.vue.d.ts +24 -0
- package/dist/client/src/client/components/JsonInput.vue.d.ts +64 -0
- package/dist/client/src/client/components/Logo.vue.d.ts +4 -0
- package/dist/client/src/client/components/LogoIcon.vue.d.ts +7 -0
- package/dist/client/src/client/components/ObjectInspect.vue.d.ts +64 -0
- package/dist/client/src/client/components/PageCrud.vue.d.ts +68 -0
- package/dist/client/src/client/components/PageSubtitle.vue.d.ts +26 -0
- package/dist/client/src/client/components/PageTable.vue.d.ts +14 -0
- package/dist/client/src/client/components/PageTitle.vue.d.ts +26 -0
- package/dist/client/src/client/components/StringListInput.vue.d.ts +43 -0
- package/dist/client/src/client/components/TextField.vue.d.ts +146 -0
- package/dist/client/src/client/components/UserMenu.vue.d.ts +21 -0
- package/dist/client/src/client/components/WidgetTextRender.vue.d.ts +4 -0
- package/dist/client/src/client/components/ZAlert.vue.d.ts +39 -0
- package/dist/client/src/client/components/ZAlertButton.vue.d.ts +80 -0
- package/dist/client/src/client/components/ZButton.vue.d.ts +75 -0
- package/dist/client/src/client/components/ZDataTable.vue.d.ts +53 -0
- package/dist/client/src/client/components/ZDataTablePagination.vue.d.ts +28 -0
- package/dist/client/src/client/components/ZDialogForm.vue.d.ts +75 -0
- package/dist/client/src/client/components/ZPagination.vue.d.ts +16 -0
- package/dist/client/src/client/components/ZSelect.vue.d.ts +189 -0
- package/dist/client/src/client/components/ZSwitch.vue.d.ts +25 -0
- package/dist/client/src/client/components/ZTextarea.vue.d.ts +31 -0
- package/dist/client/src/client/components/ui/accordion/Accordion.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/accordion/AccordionContent.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/accordion/AccordionItem.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/accordion/AccordionTrigger.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/alert/Alert.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/alert/AlertDescription.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/alert/AlertTitle.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialog.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/aspect-ratio/AspectRatio.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/avatar/Avatar.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/avatar/AvatarFallback.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/avatar/AvatarImage.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/badge/Badge.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/breadcrumb/Breadcrumb.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/button/Button.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/calendar/Calendar.vue.d.ts +14 -0
- package/dist/client/src/client/components/ui/calendar/CalendarCell.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarCellTrigger.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/calendar/CalendarGrid.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarGridBody.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/calendar/CalendarGridHead.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarGridRow.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarHeadCell.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarHeader.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarHeading.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/calendar/CalendarNextButton.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/calendar/CalendarPrevButton.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/card/Card.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/card/CardAction.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/card/CardContent.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/card/CardDescription.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/card/CardFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/card/CardHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/card/CardTitle.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/carousel/Carousel.vue.d.ts +39 -0
- package/dist/client/src/client/components/ui/carousel/CarouselContent.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/carousel/CarouselItem.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/carousel/CarouselNext.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/carousel/CarouselPrevious.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/carousel/useCarousel.d.ts +2 -2
- package/dist/client/src/client/components/ui/checkbox/Checkbox.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/collapsible/Collapsible.vue.d.ts +21 -0
- package/dist/client/src/client/components/ui/collapsible/CollapsibleContent.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/combobox/Combobox.vue.d.ts +30 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxAnchor.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxEmpty.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxGroup.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxInput.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxItem.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxList.vue.d.ts +36 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxSeparator.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxTrigger.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/combobox/ComboboxViewport.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/command/Command.vue.d.ts +36 -0
- package/dist/client/src/client/components/ui/command/CommandDialog.vue.d.ts +26 -0
- package/dist/client/src/client/components/ui/command/CommandEmpty.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/command/CommandGroup.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/command/CommandInput.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/command/CommandItem.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/command/CommandList.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/command/CommandSeparator.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/command/CommandShortcut.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenu.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +24 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuContent.vue.d.ts +30 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuGroup.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuItem.vue.d.ts +26 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuLabel.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuSub.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +34 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/dialog/Dialog.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/dialog/DialogClose.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/dialog/DialogContent.vue.d.ts +33 -0
- package/dist/client/src/client/components/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/dialog/DialogOverlay.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist/client/src/client/components/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/dialog/DialogTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/drawer/Drawer.vue.d.ts +31 -0
- package/dist/client/src/client/components/ui/drawer/DrawerClose.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/drawer/DrawerContent.vue.d.ts +32 -0
- package/dist/client/src/client/components/ui/drawer/DrawerDescription.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/drawer/DrawerFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/drawer/DrawerHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/drawer/DrawerOverlay.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/drawer/DrawerTitle.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/drawer/DrawerTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +24 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +34 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/form/FormControl.vue.d.ts +14 -0
- package/dist/client/src/client/components/ui/form/FormDescription.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/form/FormItem.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/form/FormLabel.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/form/FormMessage.vue.d.ts +7 -0
- package/dist/client/src/client/components/ui/hover-card/HoverCard.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/hover-card/HoverCardContent.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/hover-card/HoverCardTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/input/Input.vue.d.ts +13 -0
- package/dist/client/src/client/components/ui/label/Label.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/menubar/Menubar.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +24 -0
- package/dist/client/src/client/components/ui/menubar/MenubarContent.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/menubar/MenubarGroup.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/menubar/MenubarItem.vue.d.ts +24 -0
- package/dist/client/src/client/components/ui/menubar/MenubarLabel.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/menubar/MenubarMenu.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/menubar/MenubarRadioGroup.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/menubar/MenubarRadioItem.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/menubar/MenubarSeparator.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/menubar/MenubarShortcut.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/menubar/MenubarSub.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/menubar/MenubarSubContent.vue.d.ts +34 -0
- package/dist/client/src/client/components/ui/menubar/MenubarSubTrigger.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/menubar/MenubarTrigger.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenu.vue.d.ts +25 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +28 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +26 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/number-field/NumberField.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/number-field/NumberFieldContent.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/client/src/client/components/ui/pagination/Pagination.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/pagination/PaginationContent.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/pagination/PaginationEllipsis.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/pagination/PaginationFirst.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/pagination/PaginationItem.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/pagination/PaginationLast.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/pagination/PaginationNext.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/pagination/PaginationPrevious.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/pin-input/PinInput.vue.d.ts +24 -0
- package/dist/client/src/client/components/ui/pin-input/PinInputGroup.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/pin-input/PinInputSeparator.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/pin-input/PinInputSlot.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/popover/Popover.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/popover/PopoverAnchor.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/popover/PopoverContent.vue.d.ts +35 -0
- package/dist/client/src/client/components/ui/popover/PopoverTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/progress/Progress.vue.d.ts +10 -0
- package/dist/client/src/client/components/ui/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/radio-group/RadioGroupItem.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendar.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/resizable/ResizableHandle.vue.d.ts +13 -0
- package/dist/client/src/client/components/ui/resizable/ResizablePanel.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/resizable/ResizablePanelGroup.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist/client/src/client/components/ui/select/Select.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/select/SelectContent.vue.d.ts +32 -0
- package/dist/client/src/client/components/ui/select/SelectGroup.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/select/SelectItem.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/select/SelectItemText.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/select/SelectTrigger.vue.d.ts +21 -0
- package/dist/client/src/client/components/ui/select/SelectValue.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/separator/Separator.vue.d.ts +11 -0
- package/dist/client/src/client/components/ui/sheet/Sheet.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/sheet/SheetClose.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/sheet/SheetContent.vue.d.ts +35 -0
- package/dist/client/src/client/components/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sheet/SheetOverlay.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/sheet/SheetTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components/ui/sidebar/Sidebar.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarContent.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarGroup.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarGroupAction.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarGroupContent.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarInput.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarInset.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenu.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuAction.vue.d.ts +21 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuButton.vue.d.ts +25 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +26 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuItem.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuSub.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarProvider.vue.d.ts +26 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarRail.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarSeparator.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/sidebar/SidebarTrigger.vue.d.ts +7 -0
- package/dist/client/src/client/components/ui/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/client/src/client/components/ui/slider/Slider.vue.d.ts +14 -0
- package/dist/client/src/client/components/ui/sonner/Sonner.vue.d.ts +5 -0
- package/dist/client/src/client/components/ui/stepper/Stepper.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/stepper/StepperDescription.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/stepper/StepperIndicator.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/stepper/StepperItem.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/stepper/StepperSeparator.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/stepper/StepperTitle.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/stepper/StepperTrigger.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/switch/Switch.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/table/Table.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/table/TableBody.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/table/TableCaption.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/table/TableCell.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/table/TableEmpty.vue.d.ts +20 -0
- package/dist/client/src/client/components/ui/table/TableFooter.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/table/TableHead.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/table/TableHeader.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/table/TableRow.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/tabs/Tabs.vue.d.ts +22 -0
- package/dist/client/src/client/components/ui/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/tabs/TabsList.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/tags-input/TagsInput.vue.d.ts +28 -0
- package/dist/client/src/client/components/ui/tags-input/TagsInputInput.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/client/src/client/components/ui/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/client/src/client/components/ui/textarea/Textarea.vue.d.ts +13 -0
- package/dist/client/src/client/components/ui/toggle/Toggle.vue.d.ts +29 -0
- package/dist/client/src/client/components/ui/toggle-group/ToggleGroup.vue.d.ts +27 -0
- package/dist/client/src/client/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +23 -0
- package/dist/client/src/client/components/ui/tooltip/Tooltip.vue.d.ts +19 -0
- package/dist/client/src/client/components/ui/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist/client/src/client/components/ui/tooltip/TooltipProvider.vue.d.ts +17 -0
- package/dist/client/src/client/components/ui/tooltip/TooltipTrigger.vue.d.ts +15 -0
- package/dist/client/src/client/components.d.ts +13 -0
- package/dist/client/src/client/composables/useCookie.d.ts +36 -0
- package/dist/client/src/client/composables/useDarkMode.d.ts +3 -0
- package/dist/client/src/client/composables/useFetchPagination.d.ts +1 -1
- package/dist/client/src/client/composables/useForm.d.ts +6 -4
- package/dist/client/src/client/composables/useTheme.d.ts +3 -0
- package/dist/client/src/client/entities/Dashboard.d.ts +1 -0
- package/dist/client/src/client/entities/DashboardWidgetDefinition.d.ts +11 -1
- package/dist/client/src/client/entities/{DashboardWidgetDefinitionChart.d.ts → WidgetChartDefinition.d.ts} +3 -3
- package/dist/client/src/client/entities/WidgetTextDefinition.d.ts +12 -0
- package/dist/client/src/client/guards/guestGuard.d.ts +4 -3
- package/dist/client/src/client/index.d.ts +9 -2
- package/dist/client/src/client/layouts/AdminLayout.vue.d.ts +14 -0
- package/dist/client/src/client/layouts/AdminLayoutDefaultMenu.vue.d.ts +25 -0
- package/dist/client/src/client/layouts/AdminLayoutPlainMenu.vue.d.ts +15 -0
- package/dist/client/src/client/layouts/BaseLayout.vue.d.ts +126 -0
- package/dist/client/src/client/layouts/SettingLayout.vue.d.ts +14 -0
- package/dist/client/src/client/services/AuthService.d.ts +5 -0
- package/dist/client/src/client/utils/defineFormFields.d.ts +2 -1
- package/dist/client/src/client/utils/defineTheme.d.ts +40 -0
- package/dist/client/src/client/utils/waitForServer.d.ts +5 -0
- package/dist/client/src/shared/entities/PluginEntity.d.ts +6 -2
- package/dist/client/src/shared/schemas/dashboardSchema.d.ts +11 -11
- package/dist/client/src/shared/services/ConfigService.d.ts +2 -0
- package/dist/client/src/shared/validators/urlValidator.d.ts +2 -2
- package/dist/client/styles.css +1 -0
- package/dist/components/DashboardWidgetActionSetting-CF69M6Z6.mjs +4 -0
- package/dist/components/index.es.js +12057 -11117
- package/dist/components/src/client/components/ColorPicker.vue.d.ts +3 -3
- package/dist/components/src/client/components/DashboardAddWidgetDrawer.vue.d.ts +29 -10
- package/dist/components/src/client/components/DashboardBody.vue.d.ts +7 -1
- package/dist/components/src/client/components/DashboardDrawer.vue.d.ts +2 -2
- package/dist/components/src/client/components/DashboardGridUnitInput.vue.d.ts +1 -1
- package/dist/components/src/client/components/DashboardPage.vue.d.ts +23 -0
- package/dist/components/src/client/components/DashboardWidget.vue.d.ts +7 -3
- package/dist/components/src/client/components/DashboardWidgetActionRender.vue.d.ts +15 -0
- package/dist/components/src/client/components/DashboardWidgetActionSetting.vue.d.ts +2 -2
- package/dist/components/src/client/components/DataTable.vue.d.ts +2 -2
- package/dist/components/src/client/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/src/client/components/FileUploader.vue.d.ts +2 -2
- package/dist/components/src/client/components/FormAutoFieldList.vue.d.ts +14 -24
- package/dist/components/src/client/components/FormAutoFieldRender.vue.d.ts +25 -0
- package/dist/components/src/client/components/FormAutocomplete.vue.d.ts +2 -2
- package/dist/components/src/client/components/FormColorPicker.vue.d.ts +2 -2
- package/dist/components/src/client/components/FormDatePicker.vue.d.ts +1 -1
- package/dist/components/src/client/components/FormFilePicker.vue.d.ts +3 -21
- package/dist/components/src/client/components/FormFileUploader.vue.d.ts +1 -1
- package/dist/components/src/client/components/FormHiddenField.vue.d.ts +14 -0
- package/dist/components/src/client/components/FormImageUploader.vue.d.ts +1 -1
- package/dist/components/src/client/components/FormSelect.vue.d.ts +1 -1
- package/dist/components/src/client/components/FormStringListInput.vue.d.ts +1 -1
- package/dist/components/src/client/components/FormTextField.vue.d.ts +3 -3
- package/dist/components/src/client/components/ObjectInspect.vue.d.ts +1 -1
- package/dist/components/src/client/components/TextField.vue.d.ts +4 -4
- package/dist/components/src/client/components/WidgetTextRender.vue.d.ts +4 -0
- package/dist/components/src/client/components/ZAlert.vue.d.ts +1 -1
- package/dist/components/src/client/components/ZAlertButton.vue.d.ts +2 -2
- package/dist/components/src/client/components/ZButton.vue.d.ts +4 -24
- package/dist/components/src/client/components/ZSelect.vue.d.ts +4 -4
- package/dist/components/src/client/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/button/index.d.ts +1 -1
- package/dist/components/src/client/components/ui/carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/carousel/useCarousel.d.ts +2 -2
- package/dist/components/src/client/components/ui/combobox/ComboboxList.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/command/CommandDialog.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/context-menu/ContextMenuContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/dialog/DialogContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/dialog/DialogScrollContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/drawer/DrawerContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/menubar/MenubarContent.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/menubar/MenubarSubContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/popover/PopoverContent.vue.d.ts +3 -3
- package/dist/components/src/client/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/sheet/SheetContent.vue.d.ts +2 -2
- package/dist/components/src/client/components/ui/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/components/src/client/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/src/client/components.d.ts +13 -0
- package/dist/components/src/client/composables/useCookie.d.ts +36 -0
- package/dist/components/src/client/composables/useDarkMode.d.ts +3 -0
- package/dist/components/src/client/composables/useFetchPagination.d.ts +1 -1
- package/dist/components/src/client/composables/useForm.d.ts +6 -4
- package/dist/components/src/client/composables/useTheme.d.ts +3 -0
- package/dist/components/src/client/entities/Dashboard.d.ts +1 -0
- package/dist/components/src/client/entities/DashboardWidgetDefinition.d.ts +11 -1
- package/dist/components/src/client/entities/{DashboardWidgetDefinitionChart.d.ts → WidgetChartDefinition.d.ts} +3 -3
- package/dist/components/src/client/entities/WidgetTextDefinition.d.ts +12 -0
- package/dist/components/src/client/guards/guestGuard.d.ts +4 -3
- package/dist/components/src/client/index.d.ts +9 -2
- package/dist/components/src/client/services/AuthService.d.ts +5 -0
- package/dist/components/src/client/utils/defineFormFields.d.ts +2 -1
- package/dist/components/src/client/utils/defineTheme.d.ts +40 -0
- package/dist/components/src/client/utils/waitForServer.d.ts +5 -0
- package/dist/components/src/shared/entities/PluginEntity.d.ts +6 -2
- package/dist/components/src/shared/schemas/dashboardSchema.d.ts +11 -11
- package/dist/components/src/shared/schemas/userSchema.d.ts +18 -18
- package/dist/components/src/shared/services/ConfigService.d.ts +2 -0
- package/dist/components/src/shared/validators/urlValidator.d.ts +2 -2
- package/dist/components/styles.css +1 -1
- package/dist/server/{AuthMiddleware-D2BZKKBJ.d.mts → AuthMiddleware-CQEfdEmB.d.mts} +1 -1
- package/dist/server/{AuthSilenceMiddleware-8l5EPeot.d.mts → AuthSilenceMiddleware-DMYHOosT.d.mts} +1 -1
- package/dist/server/{AuthorizationMiddleware-BjozUIyB.d.mts → AuthorizationMiddleware-bSvXdPWt.d.mts} +2 -2
- package/dist/server/{BaseRelation-Br4CDT5e.d.mts → BaseRelation-BakhkIjz.d.mts} +1 -1
- package/dist/server/{BelongsToFileRelation-B-KDoKlS.d.mts → BelongsToFileRelation-tMThyBzE.d.mts} +3 -3
- package/dist/server/{BelongsToRelation-BdcBpcDt.d.mts → BelongsToRelation-CW8ezctx.d.mts} +2 -2
- package/dist/server/{BelongsToUserRelation-D-nXYwyy.d.mts → BelongsToUserRelation-C1cTFOCg.d.mts} +2 -2
- package/dist/server/{ConfigFSService-BOgh6pL9.d.mts → ConfigFSService-C8KKnEiq.d.mts} +2 -2
- package/dist/server/{ConfigManagerService-D7WdTGtJ.d.mts → ConfigManagerService-LRDuIa5y.d.mts} +5 -3
- package/dist/server/{ConfigRepository-DdBw1w8b.d.mts → ConfigRepository-C-iGmZrS.d.mts} +2 -2
- package/dist/server/{ConfigS3Service-MPEl-P_u.d.mts → ConfigS3Service-Du-Pr77_.d.mts} +2 -2
- package/dist/server/{ConfigService-Di_lVTAw.d.mts → ConfigService-DQT2Yjv7.d.mts} +3 -1
- package/dist/server/ConfigService-DuslPPRy.mjs +2 -0
- package/dist/server/DatabaseContract-iR4kncmi.d.mts +1 -1
- package/dist/server/DatabaseGateway-DHTbjF5C.d.mts +1 -1
- package/dist/server/DatabaseRepositoryInferMixin-BKv4RR8I.d.mts +1 -1
- package/dist/server/DriveS3Gateway-BM7HhUZf.d.mts +1 -1
- package/dist/server/{DriveService-Cb-DdupY.d.mts → DriveService-DClwOtF4.d.mts} +1 -2
- package/dist/server/{EmmitterService-BwETNyCU.d.mts → EmmitterService-BT-dkkal.d.mts} +2 -2
- package/dist/server/{EncryptService-B17nfV8V.d.mts → EncryptService-DTLFIkdI.d.mts} +2 -2
- package/dist/server/{EnvService-D7rVDvqk.d.mts → EnvService-DJpX1uT8.d.mts} +3 -1
- package/dist/server/EnvService-DNXPdLnK.mjs +2 -0
- package/dist/server/{EventContract-B6JEPwRM.d.mts → EventContract-C2besZue.d.mts} +2 -2
- package/dist/server/{ExceptionService-S7L99ujh.d.mts → ExceptionService-Cs_1-m-_.d.mts} +2 -2
- package/dist/server/{FileEntity-xQzCaUhE.d.mts → FileEntity-nwzJ-h7F.d.mts} +5 -5
- package/dist/server/GitCommitRepository-BnuZR7xt.mjs +2 -0
- package/dist/server/{GitCommitRepository-j6tmgRS2.d.mts → GitCommitRepository-DXLqqErh.d.mts} +7 -6
- package/dist/server/GitGateway-BegDpRVL.d.mts +56 -0
- package/dist/server/{HasManyRelation-v0qmO2nd.d.mts → HasManyRelation-D750GTwi.d.mts} +1 -1
- package/dist/server/{HasMetasRelation-BUoCpbto.d.mts → HasMetasRelation-BBsxs4yq.d.mts} +1 -1
- package/dist/server/{HttpService-DnnqU2n1.d.mts → HttpService-B86g4ACm.d.mts} +3 -3
- package/dist/server/MetadataMixin-AVaqESW2.d.mts +1 -1
- package/dist/server/{ModuleEntity-xa6rCTxe.d.mts → ModuleEntity-LPf7KXP5.d.mts} +2 -2
- package/dist/server/{PageRequestContextEntity-B1nE9xel.d.mts → PageRequestContextEntity-BsIzt7TG.d.mts} +2 -2
- package/dist/server/{PluginEntity-Bp9aEY5R.d.mts → PluginEntity-BcwirA_k.d.mts} +2 -2
- package/dist/server/PluginEntryEntity-CtYoJCOD.mjs +2 -0
- package/dist/server/PluginEntryEntity-DeFTS74P.d.mts +39 -0
- package/dist/server/{addIdColumn-BiPPrrLR.d.mts → addIdColumn-BNLnffDd.d.mts} +1 -1
- package/dist/server/{addSoftDeleteColumn-CZGL0m9X.d.mts → addSoftDeleteColumn-ElORXZGw.d.mts} +1 -1
- package/dist/server/{addTimestampColumns-DW_pSZXf.d.mts → addTimestampColumns-CAnGnQ2I.d.mts} +1 -1
- package/dist/server/basePath-Ce1l1ZXe.d.mts +11 -0
- package/dist/server/belongsToLoader-CCiyJAKq.d.mts +15 -0
- package/dist/server/{config-OUxEJV91.d.mts → config-BZ1j8SXX.d.mts} +1 -1
- package/dist/server/{config-DDScRnvV.d.mts → config-DT16smRL.d.mts} +2 -2
- package/dist/server/contracts/EventContract.d.mts +1 -1
- package/dist/server/{createLoaderFactory-Bpk6rD3D.d.mts → createLoaderFactory-BSHa023O.d.mts} +1 -1
- package/dist/server/{cuid-7odspl-1.d.mts → cuid-Bdze_qMR.d.mts} +1 -1
- package/dist/server/{defineHandler-fLDf436i.d.mts → defineHandler-BOI9mzxY.d.mts} +1 -1
- package/dist/server/{drive-BZiloXJW.d.mts → drive-Bx1pW406.d.mts} +2 -2
- package/dist/server/{encrypt-BtQggXao.d.mts → encrypt-BPk-A741.d.mts} +2 -2
- package/dist/server/entities/FileEntity.d.mts +1 -1
- package/dist/server/entities/FileMetaEntity.d.mts +1 -1
- package/dist/server/entities/ModuleEntity.d.mts +1 -1
- package/dist/server/entities/PageRequestContextEntity.d.mts +1 -1
- package/dist/server/entities/PageRequestContextEntity.mjs +1 -1
- package/dist/server/entities/PluginEntity.d.mts +1 -1
- package/dist/server/entities/PluginEntity.mjs +1 -1
- package/dist/server/entities/PluginEntryEntity.d.mts +1 -1
- package/dist/server/entities/PluginEntryEntity.mjs +1 -1
- package/dist/server/{env-oE1dEbgb.d.mts → env-BL5fSs-P.d.mts} +2 -2
- package/dist/server/{exists-Csru9uQi.d.mts → exists-YLYBzp76.d.mts} +1 -1
- package/dist/server/facades/config.d.mts +1 -1
- package/dist/server/facades/config.mjs +1 -1
- package/dist/server/facades/drive.d.mts +1 -1
- package/dist/server/facades/encrypt.d.mts +1 -1
- package/dist/server/facades/env.d.mts +1 -1
- package/dist/server/facades/env.mjs +1 -1
- package/dist/server/facades/http.d.mts +1 -1
- package/dist/server/{fileLoader-D1BgCxaZ.d.mts → fileLoader-DV3Nu6bU.d.mts} +1 -1
- package/dist/server/{fileUrlLoader-DpVRfcGU.d.mts → fileUrlLoader-DmCe0BcD.d.mts} +1 -1
- package/dist/server/gateways/DriveFSGateway.mjs +1 -1
- package/dist/server/gateways/DriveS3Gateway.mjs +1 -1
- package/dist/server/gateways/GitGateway.d.mts +2 -2
- package/dist/server/gateways/GitGateway.mjs +2 -2
- package/dist/server/{generateIndexFile-zJLs7hsX.d.mts → generateIndexFile-3VjDQS7w.d.mts} +1 -1
- package/dist/server/{hasManyThroughLoader-BlAt7DQD.d.mts → hasManyThroughLoader-Df1sJAkr.d.mts} +1 -1
- package/dist/server/{hasManyThroughRelation-CydrMBzu.d.mts → hasManyThroughRelation-CM4Bd6Tn.d.mts} +2 -2
- package/dist/server/{http-F5dtmcy0.d.mts → http-BiDATA1k.d.mts} +2 -2
- package/dist/server/{importAll-CDPG0oSA.d.mts → importAll-DZ6OAif5.d.mts} +1 -1
- package/dist/server/{importOne-C4TjAH5G.d.mts → importOne-Br8X6Wd8.d.mts} +1 -1
- package/dist/server/index.d.mts +52 -51
- package/dist/server/index.mjs +1 -1
- package/dist/server/{loadMetas-kut6dSZS.d.mts → loadMetas-CBCkcrcF.d.mts} +1 -1
- package/dist/server/loaders/belongsToLoader.d.mts +2 -0
- package/dist/server/loaders/belongsToLoader.mjs +2 -0
- package/dist/server/loaders/fileLoader.d.mts +1 -1
- package/dist/server/loaders/fileUrlLoader.d.mts +1 -1
- package/dist/server/loaders/hasManyThroughLoader.d.mts +1 -1
- package/dist/server/loaders/loadMetas.d.mts +1 -1
- package/dist/server/loaders/permissionLoader.d.mts +1 -1
- package/dist/server/loaders/userLoader.d.mts +1 -1
- package/dist/server/middlewares/AuthMiddleware.d.mts +1 -1
- package/dist/server/middlewares/AuthSilenceMiddleware.d.mts +1 -1
- package/dist/server/middlewares/AuthorizationMiddleware.d.mts +1 -1
- package/dist/server/{permissionLoader-DzP0E01F.d.mts → permissionLoader-jR54czmC.d.mts} +1 -1
- package/dist/server/queries/exists.d.mts +1 -1
- package/dist/server/queries/index.d.mts +3 -3
- package/dist/server/queries/softDelete.d.mts +1 -1
- package/dist/server/queries/timestamp.d.mts +1 -1
- package/dist/server/relations/BaseRelation.d.mts +1 -1
- package/dist/server/relations/BelongsToFileRelation.d.mts +1 -1
- package/dist/server/relations/BelongsToRelation.d.mts +1 -1
- package/dist/server/relations/BelongsToUserRelation.d.mts +1 -1
- package/dist/server/relations/HasManyRelation.d.mts +1 -1
- package/dist/server/relations/HasMetasRelation.d.mts +1 -1
- package/dist/server/relations/hasManyThroughRelation.d.mts +1 -1
- package/dist/server/repositories/ConfigRepository.d.mts +1 -1
- package/dist/server/repositories/GitCommitRepository.d.mts +1 -1
- package/dist/server/repositories/GitCommitRepository.mjs +1 -1
- package/dist/server/services/ConfigFSService.d.mts +1 -1
- package/dist/server/services/ConfigFSService.mjs +2 -2
- package/dist/server/services/ConfigManagerService.d.mts +1 -1
- package/dist/server/services/ConfigManagerService.mjs +2 -2
- package/dist/server/services/ConfigS3Service.d.mts +1 -1
- package/dist/server/services/ConfigS3Service.mjs +1 -1
- package/dist/server/services/DriveService.d.mts +1 -1
- package/dist/server/services/DriveService.mjs +2 -2
- package/dist/server/services/EmmitterService.d.mts +1 -1
- package/dist/server/services/EncryptService.d.mts +1 -1
- package/dist/server/services/EncryptService.mjs +1 -1
- package/dist/server/services/EnvService.d.mts +1 -1
- package/dist/server/services/EnvService.mjs +1 -1
- package/dist/server/services/ExceptionService.d.mts +1 -1
- package/dist/server/services/ExceptionService.mjs +1 -1
- package/dist/server/services/HttpService.d.mts +1 -1
- package/dist/server/services/HttpService.mjs +1 -1
- package/dist/server/services/SeederService.mjs +2 -2
- package/dist/server/{softDelete-zHpOCvxX.d.mts → softDelete-DjnPdrJk.d.mts} +1 -1
- package/dist/server/{timestamp-OxM0lLhB.d.mts → timestamp-D4XqSOD3.d.mts} +1 -1
- package/dist/server/{userLoader-C7A1u-FB.d.mts → userLoader-B4Nf6SOi.d.mts} +1 -1
- package/dist/server/utils/addSoftDeleteColumn.d.mts +1 -1
- package/dist/server/utils/addTimestampColumns.d.mts +1 -1
- package/dist/server/utils/basePath.d.mts +2 -2
- package/dist/server/utils/basePath.mjs +2 -2
- package/dist/server/utils/config.d.mts +1 -1
- package/dist/server/utils/createLoaderFactory.d.mts +1 -1
- package/dist/server/utils/cuid.d.mts +1 -1
- package/dist/server/utils/defineHandler.d.mts +1 -1
- package/dist/server/utils/generateIndexFile.d.mts +1 -1
- package/dist/server/utils/importAll.d.mts +1 -1
- package/dist/server/utils/importOne.d.mts +1 -1
- package/dist/server/utils/printTable.mjs +2 -2
- package/dist/server/validator-BMGCmL9U.mjs +2 -0
- package/dist/shared/ValidatorService-B5FabA6F.mjs +2 -0
- package/dist/shared/{ValidatorService-DMd2DBVp.d.mts → ValidatorService-BbgdTYlF.d.mts} +3 -3
- package/dist/shared/entities/DriveConfigEntity.d.mts +1 -1
- package/dist/shared/entities/FileEntity.d.mts +1 -1
- package/dist/shared/entities/FileUploadSessionEntity.d.mts +1 -1
- package/dist/shared/entities/PluginEntity.d.mts +7 -3
- package/dist/shared/entities/PluginEntity.mjs +2 -2
- package/dist/shared/entities/UserEntity.d.mts +1 -1
- package/dist/shared/exceptions/ShellException.d.mts +1 -1
- package/dist/shared/facades/validator.d.mts +1 -1
- package/dist/shared/facades/validator.mjs +1 -1
- package/dist/shared/index.d.mts +1 -1
- package/dist/shared/index.mjs +1 -1
- package/dist/shared/mixins/HooksMixin.d.mts +1 -1
- package/dist/shared/mixins/SoftDeleteMixin.d.mts +1 -1
- package/dist/shared/mixins/TimestampMixin.d.mts +1 -1
- package/dist/shared/schemas/dashboardMetaSchema.d.mts +26 -26
- package/dist/shared/schemas/dashboardSchema.d.mts +31 -31
- package/dist/shared/schemas/dashboardSchema.mjs +2 -2
- package/dist/shared/schemas/permissionSchema.d.mts +1 -1
- package/dist/shared/schemas/tokenSchema.d.mts +1 -1
- package/dist/shared/schemas/userSchema.d.mts +25 -25
- package/dist/shared/services/ConfigService.d.mts +3 -1
- package/dist/shared/services/ConfigService.mjs +2 -2
- package/dist/shared/services/UploadService.d.mts +1 -1
- package/dist/shared/services/ValidatorService.d.mts +1 -1
- package/dist/shared/services/ValidatorService.mjs +1 -1
- package/dist/shared/utils/flatten.d.mts +1 -1
- package/dist/shared/utils/formatBytes.d.mts +1 -1
- package/package.json +11 -1
- package/src/client/components/DashboardAddWidgetDrawer.vue +61 -41
- package/src/client/components/DashboardBody.vue +105 -23
- package/src/client/components/DashboardPage.vue +168 -0
- package/src/client/components/DashboardWidget.vue +19 -10
- package/src/client/components/DashboardWidgetActionRender.vue +26 -0
- package/src/client/components/FormAutoFieldList.vue +38 -60
- package/src/client/components/FormAutoFieldRender.vue +81 -0
- package/src/client/components/FormFilePicker.vue +31 -90
- package/src/client/components/FormHiddenField.vue +11 -0
- package/src/client/components/Logo.vue +2 -2
- package/src/client/components/UserMenu.vue +9 -46
- package/src/client/components/WidgetTextRender.vue +81 -0
- package/src/client/components/ZButton.vue +1 -29
- package/src/client/components/ZSelect.vue +1 -1
- package/src/client/components/ui/form/FormLabel.vue +1 -1
- package/src/client/components/ui/form/FormMessage.vue +1 -1
- package/src/client/components.ts +13 -0
- package/src/client/composables/useCookie.ts +158 -0
- package/src/client/composables/useDarkMode.ts +40 -0
- package/src/client/composables/useFetchPagination.ts +1 -1
- package/src/client/composables/useForm.ts +9 -7
- package/src/client/composables/useTheme.ts +15 -0
- package/src/client/css/styles.css +37 -116
- package/src/client/css/theme.css +127 -52
- package/src/client/entities/Dashboard.ts +33 -3
- package/src/client/entities/DashboardWidget.ts +4 -0
- package/src/client/entities/DashboardWidgetDefinition.ts +41 -2
- package/src/client/entities/{DashboardWidgetDefinitionChart.ts → WidgetChartDefinition.ts} +5 -4
- package/src/client/entities/WidgetTextDefinition.ts +52 -0
- package/src/client/guards/guestGuard.ts +16 -7
- package/src/client/index.ts +9 -2
- package/src/client/layouts/AdminLayout.vue +1 -9
- package/src/client/layouts/BaseLayout.vue +6 -9
- package/src/client/services/AuthService.ts +7 -0
- package/src/client/utils/defineFormFields.ts +4 -3
- package/src/client/utils/defineTheme.ts +95 -0
- package/src/client/utils/waitForServer.ts +20 -0
- package/src/server/entities/PluginEntryEntity.ts +0 -8
- package/src/server/gateways/GitGateway.ts +17 -2
- package/src/server/index.ts +1 -0
- package/src/server/loaders/belongsToLoader.ts +61 -0
- package/src/server/repositories/GitCommitRepository.ts +17 -19
- package/src/server/schemas/envSchema.ts +1 -0
- package/src/server/services/ConfigFSService.ts +2 -2
- package/src/server/services/ConfigManagerService.ts +14 -3
- package/src/server/services/DriveService.ts +0 -16
- package/src/server/services/EnvService.ts +8 -0
- package/src/server/services/SeederService.ts +5 -0
- package/src/server/utils/basePath.ts +18 -7
- package/src/server/utils/printTable.ts +1 -1
- package/src/shared/entities/PluginEntity.ts +8 -2
- package/src/shared/schemas/dashboardSchema.ts +1 -1
- package/src/shared/services/ConfigService.ts +24 -0
- package/src/shared/validators/urlValidator.ts +12 -1
- package/vite/plugins/tailwindAutoPrefix.js +169 -11
- package/vite/plugins/tailwindAutoPrefix.unit.test.ts +24 -0
- package/vite.client.config.ts +1 -60
- package/vite.common.config.ts +2 -0
- package/vite.components.config.ts +1 -67
- package/dist/server/ConfigService-CNvGuEng.mjs +0 -2
- package/dist/server/EnvService-BUFUgqUW.mjs +0 -2
- package/dist/server/GitCommitRepository-fjbilGO0.mjs +0 -2
- package/dist/server/GitGateway-CNuhGhkh.d.mts +0 -48
- package/dist/server/PluginEntryEntity-DWx0zY51.d.mts +0 -37
- package/dist/server/PluginEntryEntity-DeRAK_Y1.mjs +0 -2
- package/dist/server/basePath-BrKDzdou.d.mts +0 -10
- package/dist/server/validator-Bf0nhLLd.mjs +0 -2
- package/dist/shared/ValidatorService-TM23rW-H.mjs +0 -2
- /package/dist/server/{index-BcsXXrHq.d.mts → index-C6HcjJiY.d.mts} +0 -0
|
@@ -2,6 +2,7 @@ import EmmitterService from '#shared/services/EmmitterService.ts'
|
|
|
2
2
|
import DashboardWidgetData from './DashboardWidgetData'
|
|
3
3
|
import DashboardWidget from './DashboardWidget'
|
|
4
4
|
import type { DashboardSchema } from '#shared/schemas/dashboardSchema.ts'
|
|
5
|
+
import { createId } from '#shared/index.ts'
|
|
5
6
|
|
|
6
7
|
export interface DashboardOptions {
|
|
7
8
|
dashboard: DashboardSchema
|
|
@@ -98,6 +99,13 @@ export default class Dashboard {
|
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
public removeWidgetById(id: string) {
|
|
102
|
+
const index = this.widgets.findIndex((w) => w.id === id)
|
|
103
|
+
|
|
104
|
+
if (index === -1) {
|
|
105
|
+
console.warn(`Widget with id ${id} not found`)
|
|
106
|
+
return
|
|
107
|
+
}
|
|
108
|
+
|
|
101
109
|
this.widgets = this.widgets.filter((w) => w.id !== id)
|
|
102
110
|
}
|
|
103
111
|
|
|
@@ -106,10 +114,32 @@ export default class Dashboard {
|
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
public duplicateWidget(index: number) {
|
|
109
|
-
const
|
|
117
|
+
const original = this.widgets[index]
|
|
118
|
+
|
|
119
|
+
if (!original) {
|
|
120
|
+
console.warn(`Widget at index ${index} not found`)
|
|
121
|
+
return
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const data = JSON.parse(JSON.stringify(original.data))
|
|
110
125
|
|
|
111
|
-
|
|
126
|
+
data.id = createId()
|
|
127
|
+
|
|
128
|
+
delete data.order
|
|
129
|
+
delete data.x
|
|
130
|
+
delete data.y
|
|
131
|
+
|
|
132
|
+
this.addWidget(data)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
public duplicateWidgetById(id: string) {
|
|
136
|
+
const index = this.widgets.findIndex((w) => w.id === id)
|
|
137
|
+
|
|
138
|
+
if (index === -1) {
|
|
139
|
+
console.warn(`Widget with id ${id} not found`)
|
|
140
|
+
return
|
|
141
|
+
}
|
|
112
142
|
|
|
113
|
-
|
|
143
|
+
this.duplicateWidget(index)
|
|
114
144
|
}
|
|
115
145
|
}
|
|
@@ -38,6 +38,10 @@ export default class DashboardWidget {
|
|
|
38
38
|
console.warn(`DashboardWidgetDefinition not found for id: ${data.definition_id}. Using unknown definition.`)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
def.boot()
|
|
42
|
+
|
|
43
|
+
data.options = Object.assign({}, def.defaultOptions(), data.options || {})
|
|
44
|
+
|
|
41
45
|
return new DashboardWidget({
|
|
42
46
|
data: data,
|
|
43
47
|
definition: def,
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
import type DashboardWidgetActionSetting from "#client/components/DashboardWidgetActionSetting.vue"
|
|
2
|
+
import { defineAsyncComponent } from "vue"
|
|
3
|
+
|
|
1
4
|
export interface DashboardWidgetAction {
|
|
5
|
+
id: string
|
|
2
6
|
props?: Record<string, any>
|
|
3
|
-
component: any
|
|
7
|
+
component: () => Promise<any> | any
|
|
4
8
|
}
|
|
5
9
|
|
|
10
|
+
type SettingComponentProps = InstanceType<typeof DashboardWidgetActionSetting>["$props"]
|
|
11
|
+
|
|
6
12
|
export default class DashboardWidgetDefinition {
|
|
7
13
|
public id: string
|
|
8
14
|
public name: string
|
|
9
15
|
public description?: string
|
|
10
16
|
public icon?: string
|
|
17
|
+
public category?: string
|
|
18
|
+
|
|
19
|
+
public _actions: DashboardWidgetAction[] = []
|
|
11
20
|
|
|
12
21
|
constructor() {
|
|
13
22
|
this.id = ''
|
|
@@ -21,6 +30,36 @@ export default class DashboardWidgetDefinition {
|
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
public actions(): DashboardWidgetAction[] {
|
|
24
|
-
return
|
|
33
|
+
return this._actions
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
public action(action: DashboardWidgetAction) {
|
|
38
|
+
this._actions.push(action)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public async boot() {
|
|
42
|
+
// This method can be overridden by plugins to perform any necessary bootstrapping for the widget.
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public defaultOptions() {
|
|
46
|
+
return {}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public settings(props: SettingComponentProps = {}) {
|
|
50
|
+
const existingAction = this._actions.find(action => action.id === 'settings')
|
|
51
|
+
|
|
52
|
+
if (existingAction) {
|
|
53
|
+
const index = this._actions.indexOf(existingAction)
|
|
54
|
+
this._actions.splice(index, 1)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
this.action({
|
|
58
|
+
id: 'settings',
|
|
59
|
+
props: props,
|
|
60
|
+
component: () => defineAsyncComponent(() =>
|
|
61
|
+
import("#client/components/DashboardWidgetActionSetting.vue"),
|
|
62
|
+
),
|
|
63
|
+
})
|
|
25
64
|
}
|
|
26
65
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import DashboardWidgetDefinition from './DashboardWidgetDefinition'
|
|
2
2
|
import type DashboardWidgetData from './DashboardWidgetData'
|
|
3
|
+
import container from '#client/facades/container.ts'
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Component to be used for chart widgets in the dashboard.
|
|
@@ -15,8 +16,8 @@ import type DashboardWidgetData from './DashboardWidgetData'
|
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
export default class
|
|
19
|
-
private static renderer
|
|
19
|
+
export default class WidgetChartDefinition extends DashboardWidgetDefinition {
|
|
20
|
+
private static renderer_key = 'WidgetChartDefinition.renderer'
|
|
20
21
|
|
|
21
22
|
constructor() {
|
|
22
23
|
super()
|
|
@@ -25,11 +26,11 @@ export default class DashboardWidgetDefinitionChart extends DashboardWidgetDefin
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
public static setRenderer(renderer: any) {
|
|
28
|
-
|
|
29
|
+
container.set(WidgetChartDefinition.renderer_key, renderer)
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
public component() {
|
|
32
|
-
return
|
|
33
|
+
return container.get(WidgetChartDefinition.renderer_key)
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
// return chart options for the chart widget. This can be overridden by plugins to provide custom chart options.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineAsyncComponent } from 'vue'
|
|
2
|
+
import DashboardWidgetDefinition from './DashboardWidgetDefinition.ts'
|
|
3
|
+
import { defineFormFields } from '#client/utils/defineFormFields'
|
|
4
|
+
import type { DashboardWidgetData } from '../../../dist/client/src/client/index'
|
|
5
|
+
|
|
6
|
+
export default class extends DashboardWidgetDefinition {
|
|
7
|
+
constructor() {
|
|
8
|
+
super()
|
|
9
|
+
this.id = 'text'
|
|
10
|
+
this.name = 'Text'
|
|
11
|
+
this.description = $t('Add a text widget to your dashboard.')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public async boot() {
|
|
15
|
+
this.settings({
|
|
16
|
+
fields: this.fields(),
|
|
17
|
+
values: this.values(),
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public component() {
|
|
22
|
+
return defineAsyncComponent(() => import('#client/components/WidgetTextRender.vue'))
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public values(): Record<string, any> {
|
|
26
|
+
return {}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public fields() {
|
|
30
|
+
return defineFormFields({
|
|
31
|
+
text: {
|
|
32
|
+
component: 'textarea',
|
|
33
|
+
label: $t('Text'),
|
|
34
|
+
placeholder: $t('Enter your text here...'),
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
component: 'text-field',
|
|
38
|
+
type: 'number',
|
|
39
|
+
label: $t('Size'),
|
|
40
|
+
},
|
|
41
|
+
color: {
|
|
42
|
+
component: 'color-picker',
|
|
43
|
+
label: $t('Color'),
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public async text(payload: DashboardWidgetData['options']): Promise<string> {
|
|
49
|
+
return payload.text || ''
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import auth from '#client/facades/auth.ts'
|
|
2
|
+
import type { NavigationGuard } from 'vue-router'
|
|
2
3
|
|
|
3
4
|
export interface GuestGuardOptions {
|
|
4
|
-
redirect
|
|
5
|
+
redirect?: string
|
|
5
6
|
}
|
|
6
7
|
|
|
7
|
-
export function createGuestGuard(options
|
|
8
|
-
return () => {
|
|
8
|
+
export function createGuestGuard(options?: GuestGuardOptions): NavigationGuard {
|
|
9
|
+
return (to) => {
|
|
10
|
+
let redirect = to.query.redirect as string | undefined
|
|
11
|
+
|
|
12
|
+
if (!redirect) {
|
|
13
|
+
redirect = options?.redirect
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (!redirect) {
|
|
17
|
+
redirect = '/'
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
if (auth.user) {
|
|
10
|
-
return
|
|
21
|
+
return redirect
|
|
11
22
|
}
|
|
12
23
|
}
|
|
13
24
|
}
|
|
14
25
|
|
|
15
|
-
const guestGuard = createGuestGuard(
|
|
16
|
-
redirect: '/'
|
|
17
|
-
})
|
|
26
|
+
const guestGuard = createGuestGuard()
|
|
18
27
|
|
|
19
28
|
export default guestGuard
|
package/src/client/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './services/ToastService.ts'
|
|
|
17
17
|
export { default as ToastService } from './services/ToastService.ts'
|
|
18
18
|
export * from './composables/useBreakpoint.ts'
|
|
19
19
|
export * from './composables/useColor.ts'
|
|
20
|
+
export * from './composables/useCookie.ts'
|
|
21
|
+
export * from './composables/useDarkMode.ts'
|
|
20
22
|
export * from './composables/useDashboard.ts'
|
|
21
23
|
export * from './composables/useDashboardWidget.ts'
|
|
22
24
|
export * from './composables/useFetchPagination.ts'
|
|
@@ -28,6 +30,7 @@ export * from './composables/useMenu.ts'
|
|
|
28
30
|
export * from './composables/useRoute.ts'
|
|
29
31
|
export * from './composables/useRouteQuery.ts'
|
|
30
32
|
export * from './composables/useState.ts'
|
|
33
|
+
export * from './composables/useTheme.ts'
|
|
31
34
|
export * from './facades/acl.ts'
|
|
32
35
|
export { default as acl } from './facades/acl.ts'
|
|
33
36
|
export * from './facades/auth.ts'
|
|
@@ -64,23 +67,27 @@ export * from './entities/DashboardWidgetData.ts'
|
|
|
64
67
|
export { default as DashboardWidgetData } from './entities/DashboardWidgetData.ts'
|
|
65
68
|
export * from './entities/DashboardWidgetDefinition.ts'
|
|
66
69
|
export { default as DashboardWidgetDefinition } from './entities/DashboardWidgetDefinition.ts'
|
|
67
|
-
export * from './entities/DashboardWidgetDefinitionChart.ts'
|
|
68
|
-
export { default as DashboardWidgetDefinitionChart } from './entities/DashboardWidgetDefinitionChart.ts'
|
|
69
70
|
export * from './entities/MenuItemEntity.ts'
|
|
70
71
|
export { default as MenuItemEntity } from './entities/MenuItemEntity.ts'
|
|
71
72
|
export * from './entities/ModuleEntity.ts'
|
|
72
73
|
export { default as ModuleEntity } from './entities/ModuleEntity.ts'
|
|
73
74
|
export * from './entities/PluginEntity.ts'
|
|
74
75
|
export { default as PluginEntity } from './entities/PluginEntity.ts'
|
|
76
|
+
export * from './entities/WidgetChartDefinition.ts'
|
|
77
|
+
export { default as WidgetChartDefinition } from './entities/WidgetChartDefinition.ts'
|
|
78
|
+
export * from './entities/WidgetTextDefinition.ts'
|
|
79
|
+
export { default as WidgetTextDefinition } from './entities/WidgetTextDefinition.ts'
|
|
75
80
|
export * from './utils/autoPages.ts'
|
|
76
81
|
export * from './utils/createId.ts'
|
|
77
82
|
export * from './utils/defineColumns.ts'
|
|
78
83
|
export * from './utils/defineFormFields.ts'
|
|
84
|
+
export * from './utils/defineTheme.ts'
|
|
79
85
|
export * from './utils/fetcher.ts'
|
|
80
86
|
export * from './utils/file.ts'
|
|
81
87
|
export * from './utils/parseTo.ts'
|
|
82
88
|
export * from './utils/toast.ts'
|
|
83
89
|
export * from './utils/twMerge.ts'
|
|
90
|
+
export * from './utils/waitForServer.ts'
|
|
84
91
|
export * from './guards/authGuard.ts'
|
|
85
92
|
export { default as authGuard } from './guards/authGuard.ts'
|
|
86
93
|
export * from './guards/guestGuard.ts'
|
|
@@ -11,14 +11,6 @@ defineOptions({ inheritAttrs: false, })
|
|
|
11
11
|
const options = useLayoutOptions()
|
|
12
12
|
const breadcrumbs = ref([])
|
|
13
13
|
|
|
14
|
-
const userLinks = [
|
|
15
|
-
{
|
|
16
|
-
label: 'Preferences',
|
|
17
|
-
to: '/admin/menu/items',
|
|
18
|
-
icon: 'Settings',
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
|
|
22
14
|
function load(){
|
|
23
15
|
breadcrumbs.value = options.value.breadcrumbs || []
|
|
24
16
|
}
|
|
@@ -33,7 +25,7 @@ watch(options, load, { immediate: true, deep: true })
|
|
|
33
25
|
|
|
34
26
|
<template #sidebar-footer>
|
|
35
27
|
<SidebarFooter>
|
|
36
|
-
<UserMenu
|
|
28
|
+
<UserMenu @logout="auth.logout" />
|
|
37
29
|
</SidebarFooter>
|
|
38
30
|
</template>
|
|
39
31
|
</BaseLayout>
|
|
@@ -12,7 +12,6 @@ import type { PropType } from 'vue'
|
|
|
12
12
|
import { truncate } from 'lodash-es'
|
|
13
13
|
import { useHead } from '@unhead/vue'
|
|
14
14
|
import menu from '#client/facades/menu.ts'
|
|
15
|
-
import route from '#client/facades/route.ts'
|
|
16
15
|
import AdminLayoutDefaultMenu from './AdminLayoutDefaultMenu.vue'
|
|
17
16
|
import AdminLayoutPlainMenu from './AdminLayoutPlainMenu.vue'
|
|
18
17
|
import Logo from '#client/components/Logo.vue'
|
|
@@ -181,14 +180,12 @@ items.value = menu.list({
|
|
|
181
180
|
</div>
|
|
182
181
|
</header>
|
|
183
182
|
|
|
184
|
-
<div
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
<slot />
|
|
191
|
-
</div>
|
|
183
|
+
<div :class="cn(
|
|
184
|
+
'dashboard-layout-content h-full overflow-auto lg:max-w-[calc(100dvw-8px-var(--sidebar-width))] group-has-data-[collapsible=icon]/sidebar-wrapper:max-w-[calc(100dvw-var(--sidebar-width-icon))]',
|
|
185
|
+
padding ? 'p-5' : '',
|
|
186
|
+
contentClass
|
|
187
|
+
)">
|
|
188
|
+
<slot />
|
|
192
189
|
</div>
|
|
193
190
|
</SidebarInset>
|
|
194
191
|
</SidebarProvider>
|
|
@@ -5,12 +5,19 @@ interface LogoutOptions {
|
|
|
5
5
|
redirect?: string
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
export interface AuthServiceOptions {
|
|
9
|
+
user?: User | null
|
|
10
|
+
disabled?: boolean
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
export default class AuthService {
|
|
9
14
|
public static __container_entry_key = 'AuthService'
|
|
10
15
|
public user: User | null
|
|
16
|
+
public disabled: boolean = false
|
|
11
17
|
|
|
12
18
|
constructor(data: Partial<AuthService> = {}) {
|
|
13
19
|
this.user = data.user || null
|
|
20
|
+
this.disabled = data.disabled || false
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
public async logout(options?: LogoutOptions): Promise<void> {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
component:
|
|
3
|
-
'text-field'
|
|
1
|
+
export type FormFieldType = 'text-field'
|
|
4
2
|
| 'textarea'
|
|
5
3
|
| 'select'
|
|
6
4
|
| 'autocomplete'
|
|
@@ -12,6 +10,9 @@ export interface DefineFormField {
|
|
|
12
10
|
| 'json-input'
|
|
13
11
|
| 'date-picker'
|
|
14
12
|
| 'hidden'
|
|
13
|
+
|
|
14
|
+
export interface DefineFormField {
|
|
15
|
+
component: FormFieldType | (() => Promise<any>) | (() => any)
|
|
15
16
|
[key: string]: any
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { kebabCase } from "lodash-es"
|
|
2
|
+
|
|
3
|
+
export interface ThemeColors {
|
|
4
|
+
background: string
|
|
5
|
+
foreground: string
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
primary: string
|
|
9
|
+
primaryForeground: string
|
|
10
|
+
|
|
11
|
+
secondary: string
|
|
12
|
+
secondaryForeground: string
|
|
13
|
+
|
|
14
|
+
muted: string
|
|
15
|
+
mutedForeground: string
|
|
16
|
+
|
|
17
|
+
accent: string
|
|
18
|
+
accentForeground: string
|
|
19
|
+
|
|
20
|
+
destructive: string
|
|
21
|
+
destructiveForeground: string
|
|
22
|
+
|
|
23
|
+
border: string
|
|
24
|
+
input: string
|
|
25
|
+
ring: string
|
|
26
|
+
|
|
27
|
+
chart1: string
|
|
28
|
+
chart2: string
|
|
29
|
+
chart3: string
|
|
30
|
+
chart4: string
|
|
31
|
+
chart5: string
|
|
32
|
+
|
|
33
|
+
card?: string
|
|
34
|
+
cardForeground?: string
|
|
35
|
+
|
|
36
|
+
popover?: string
|
|
37
|
+
popoverForeground?: string
|
|
38
|
+
|
|
39
|
+
sidebar?: string
|
|
40
|
+
sidebarForeground?: string
|
|
41
|
+
|
|
42
|
+
sidebarPrimary?: string
|
|
43
|
+
sidebarPrimaryForeground?: string
|
|
44
|
+
|
|
45
|
+
sidebarAccent?: string
|
|
46
|
+
sidebarAccentForeground?: string
|
|
47
|
+
|
|
48
|
+
sidebarBorder?: string
|
|
49
|
+
sidebarRing?: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export interface Theme {
|
|
54
|
+
light: ThemeColors
|
|
55
|
+
dark: ThemeColors
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function defineTheme(light: ThemeColors, dark: ThemeColors = light): Theme {
|
|
59
|
+
return {
|
|
60
|
+
light,
|
|
61
|
+
dark
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function cssVariables(colors: ThemeColors) {
|
|
66
|
+
const fullColors = {
|
|
67
|
+
card: colors.card || colors.background,
|
|
68
|
+
cardForeground: colors.cardForeground || colors.foreground,
|
|
69
|
+
|
|
70
|
+
popover: colors.popover || colors.background,
|
|
71
|
+
popoverForeground: colors.popoverForeground || colors.foreground,
|
|
72
|
+
|
|
73
|
+
sidebar: colors.sidebar || colors.background,
|
|
74
|
+
sidebarForeground: colors.sidebarForeground || colors.foreground,
|
|
75
|
+
|
|
76
|
+
sidebarPrimary: colors.sidebarPrimary || colors.primary,
|
|
77
|
+
sidebarPrimaryForeground: colors.sidebarPrimaryForeground || colors.primaryForeground,
|
|
78
|
+
|
|
79
|
+
sidebarAccent: colors.sidebarAccent || colors.accent,
|
|
80
|
+
sidebarAccentForeground: colors.sidebarAccentForeground || colors.accentForeground,
|
|
81
|
+
|
|
82
|
+
sidebarBorder: colors.sidebarBorder || colors.border,
|
|
83
|
+
sidebarRing: colors.sidebarRing || colors.ring,
|
|
84
|
+
...colors,
|
|
85
|
+
}
|
|
86
|
+
return Object.entries(fullColors)
|
|
87
|
+
.map(([name, value]) => `--${kebabCase(name)}: ${value};`)
|
|
88
|
+
.join('\n')
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
export function themeToCss(theme: Theme) {
|
|
93
|
+
return `:root {\n${cssVariables(theme.light)}\n}\n\n.dark {\n${cssVariables(theme.dark)}\n}`
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getThemeColors } from "#client/components.ts"
|
|
2
|
+
|
|
3
|
+
export interface WaitForServerOptions {
|
|
4
|
+
redirectTo?: string
|
|
5
|
+
delay?: number
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function waitForServer(options: WaitForServerOptions = {}) {
|
|
9
|
+
const url = new URL('/api/reloader', window.location.origin)
|
|
10
|
+
const colors = getThemeColors()
|
|
11
|
+
|
|
12
|
+
url.searchParams.append('redirect_to', options.redirectTo || window.location.href)
|
|
13
|
+
url.searchParams.append('delay', options.delay?.toString() || '3000')
|
|
14
|
+
|
|
15
|
+
for (const [key, value] of Object.entries(colors)) {
|
|
16
|
+
url.searchParams.append(`colors[${key}]`, value)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
window.location.href = url.toString()
|
|
20
|
+
}
|
|
@@ -4,7 +4,6 @@ import Base from '#shared/entities/PluginEntity.ts'
|
|
|
4
4
|
import { GitGateway } from '#server/gateways/GitGateway.ts'
|
|
5
5
|
import { composeWith } from '#shared/utils/compose.ts'
|
|
6
6
|
import { join } from 'node:path'
|
|
7
|
-
import GitBranchRepository from '#server/repositories/GitBranchRepository.ts'
|
|
8
7
|
import GitCommitRepository from '#server/repositories/GitCommitRepository.ts'
|
|
9
8
|
import ShellService from '#server/services/ShellService.ts'
|
|
10
9
|
|
|
@@ -38,11 +37,4 @@ export default class PluginEntryEntity extends composeWith(Base) {
|
|
|
38
37
|
shell: container.has(ShellService) ? container.get(ShellService) : undefined
|
|
39
38
|
})
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
public get branches() {
|
|
43
|
-
return new GitBranchRepository({
|
|
44
|
-
cwd: this.directory,
|
|
45
|
-
shell: container.has(ShellService) ? container.get(ShellService) : undefined
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
40
|
}
|
|
@@ -22,6 +22,15 @@ export interface GitGatewayOptions {
|
|
|
22
22
|
debug?: boolean
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export interface GitGatewayCloneOptions {
|
|
26
|
+
sshKey?: string
|
|
27
|
+
sshKeyFile?: string
|
|
28
|
+
logger?: LoggerService
|
|
29
|
+
shell?: ShellService
|
|
30
|
+
debug?: boolean
|
|
31
|
+
branch?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
interface GitGatewayExecuteOptions {
|
|
26
35
|
args: string
|
|
27
36
|
cwd?: string
|
|
@@ -90,14 +99,20 @@ export class GitGateway {
|
|
|
90
99
|
})
|
|
91
100
|
}
|
|
92
101
|
|
|
93
|
-
public static async clone(repoUrl: string, targetDir: string, options:
|
|
102
|
+
public static async clone(repoUrl: string, targetDir: string, options: GitGatewayCloneOptions = {}): Promise<GitGateway> {
|
|
103
|
+
let args = `clone '${repoUrl}' '${targetDir}'`
|
|
104
|
+
|
|
105
|
+
if (options.branch) {
|
|
106
|
+
args += ` --branch ${options.branch}`
|
|
107
|
+
}
|
|
108
|
+
|
|
94
109
|
await GitGateway.execute({
|
|
95
110
|
sshKey: options.sshKey,
|
|
96
111
|
sshKeyFile: options.sshKeyFile,
|
|
97
112
|
logger: options.logger,
|
|
98
113
|
debug: options.debug,
|
|
99
114
|
shell: options.shell,
|
|
100
|
-
args
|
|
115
|
+
args,
|
|
101
116
|
})
|
|
102
117
|
|
|
103
118
|
return new GitGateway({ ...options, cwd: targetDir })
|
package/src/server/index.ts
CHANGED
|
@@ -138,6 +138,7 @@ export * from './contracts/EventContract.ts'
|
|
|
138
138
|
export * from './contracts/HttpContextContract.ts'
|
|
139
139
|
export * from './contracts/KyselyContract.ts'
|
|
140
140
|
export * from './contracts/RouterContract.ts'
|
|
141
|
+
export * from './loaders/belongsToLoader.ts'
|
|
141
142
|
export * from './loaders/fileLoader.ts'
|
|
142
143
|
export * from './loaders/fileUrlLoader.ts'
|
|
143
144
|
export * from './loaders/hasManyThroughLoader.ts'
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { set, get } from 'lodash-es'
|
|
2
|
+
import { defineLoader } from '#server/utils/defineLoader.ts'
|
|
3
|
+
|
|
4
|
+
type KeyOrFunction<T> = keyof T | ((entity: T) => any)
|
|
5
|
+
|
|
6
|
+
interface BelongsToLoaderOptions<
|
|
7
|
+
TEntity extends Record<string, any> = Record<string, any>,
|
|
8
|
+
TTargetEntity extends Record<string, any> = Record<string, any>
|
|
9
|
+
> {
|
|
10
|
+
key: string // target property to set on the entity
|
|
11
|
+
sourceKey: KeyOrFunction<TEntity> // property to get the related entity id from the entity
|
|
12
|
+
targetKey: KeyOrFunction<TTargetEntity> // property to get the related entity from the target entity
|
|
13
|
+
findEntities(ids: (string | number)[]): Promise<TEntity[]> // function to fetch pivot table rows by related entity ids
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export async function loadBelongsTo<T extends Record<string, any>, U extends Record<string, any>>(payload: T | T[], options: BelongsToLoaderOptions<T, U>) {
|
|
17
|
+
const entities = Array.isArray(payload) ? payload : [payload]
|
|
18
|
+
const key = options.key
|
|
19
|
+
const sourceKey = options.sourceKey
|
|
20
|
+
const targetKey = options.targetKey
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function findKey(entity: any, keyOrFn: KeyOrFunction<any>): any {
|
|
24
|
+
if (typeof keyOrFn === 'function') {
|
|
25
|
+
return keyOrFn(entity)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return get(entity, keyOrFn)
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const ids = entities.map(e => findKey(e, sourceKey))
|
|
33
|
+
.filter(id => id !== undefined && id !== null)
|
|
34
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
35
|
+
|
|
36
|
+
if (!ids.length) {
|
|
37
|
+
return
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const targetEntities = await options.findEntities(ids)
|
|
41
|
+
|
|
42
|
+
for (const entity of entities) {
|
|
43
|
+
const targetEntity = targetEntities.find((t: any) => findKey(t, targetKey) === findKey(entity, sourceKey))
|
|
44
|
+
|
|
45
|
+
if (targetEntity) {
|
|
46
|
+
set(entity, key, targetEntity)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
export function createBelongsToLoader<
|
|
53
|
+
T extends Record<string, any> = Record<string, any>,
|
|
54
|
+
U extends Record<string, any> = Record<string, any>
|
|
55
|
+
>(options: BelongsToLoaderOptions<T, U>) {
|
|
56
|
+
return defineLoader<T>({
|
|
57
|
+
load: async (entities: T[]) => loadBelogsTo<T, U>(entities, options)
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|