@oneclick.dev/cms-kit 0.0.1
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/README.md +1 -0
- package/components/ui/apple-emoji/AppleEmoji.vue +32 -0
- package/components/ui/apple-emoji/index.ts +1 -0
- package/components/ui/avatar/Avatar.vue +18 -0
- package/components/ui/avatar/AvatarFallback.vue +23 -0
- package/components/ui/avatar/AvatarImage.vue +16 -0
- package/components/ui/avatar/index.ts +3 -0
- package/components/ui/badge/Badge.vue +39 -0
- package/components/ui/badge/index.ts +1 -0
- package/components/ui/breadcrumb/Breadcrumb.vue +17 -0
- package/components/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
- package/components/ui/breadcrumb/BreadcrumbLink.vue +20 -0
- package/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
- package/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
- package/components/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
- package/components/ui/breadcrumb/index.ts +7 -0
- package/components/ui/button/Button.vue +39 -0
- package/components/ui/button/index.ts +36 -0
- package/components/ui/calendar/Calendar.vue +63 -0
- package/components/ui/calendar/CalendarCell.vue +25 -0
- package/components/ui/calendar/CalendarCellTrigger.vue +41 -0
- package/components/ui/calendar/CalendarGrid.vue +25 -0
- package/components/ui/calendar/CalendarGridBody.vue +14 -0
- package/components/ui/calendar/CalendarGridHead.vue +15 -0
- package/components/ui/calendar/CalendarGridRow.vue +24 -0
- package/components/ui/calendar/CalendarHeadCell.vue +25 -0
- package/components/ui/calendar/CalendarHeader.vue +25 -0
- package/components/ui/calendar/CalendarHeading.vue +32 -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 +22 -0
- package/components/ui/card/CardAction.vue +17 -0
- package/components/ui/card/CardContent.vue +17 -0
- package/components/ui/card/CardDescription.vue +17 -0
- package/components/ui/card/CardFooter.vue +17 -0
- package/components/ui/card/CardHeader.vue +17 -0
- package/components/ui/card/CardTitle.vue +17 -0
- package/components/ui/card/index.ts +7 -0
- package/components/ui/checkbox/Checkbox.vue +37 -0
- package/components/ui/checkbox/index.ts +1 -0
- package/components/ui/code-editor/CodeEditor.vue +88 -0
- package/components/ui/code-editor/index.ts +1 -0
- package/components/ui/code-editor/interpolationHighlight.ts +39 -0
- package/components/ui/collapsible/Collapsible.vue +19 -0
- package/components/ui/collapsible/CollapsibleContent.vue +14 -0
- package/components/ui/collapsible/CollapsibleTrigger.vue +14 -0
- package/components/ui/collapsible/index.ts +3 -0
- package/components/ui/combobox/Combobox.vue +17 -0
- package/components/ui/combobox/ComboboxAnchor.vue +26 -0
- package/components/ui/combobox/ComboboxEmpty.vue +24 -0
- package/components/ui/combobox/ComboboxGroup.vue +30 -0
- package/components/ui/combobox/ComboboxInput.vue +47 -0
- package/components/ui/combobox/ComboboxItem.vue +27 -0
- package/components/ui/combobox/ComboboxItemIndicator.vue +26 -0
- package/components/ui/combobox/ComboboxList.vue +31 -0
- package/components/ui/combobox/ComboboxSeparator.vue +24 -0
- package/components/ui/combobox/ComboboxTrigger.vue +27 -0
- package/components/ui/combobox/ComboboxViewport.vue +26 -0
- package/components/ui/combobox/index.ts +12 -0
- package/components/ui/command/Command.vue +93 -0
- package/components/ui/command/CommandDialog.vue +31 -0
- package/components/ui/command/CommandEmpty.vue +29 -0
- package/components/ui/command/CommandGroup.vue +47 -0
- package/components/ui/command/CommandInput.vue +41 -0
- package/components/ui/command/CommandItem.vue +79 -0
- package/components/ui/command/CommandList.vue +28 -0
- package/components/ui/command/CommandSeparator.vue +24 -0
- package/components/ui/command/CommandShortcut.vue +17 -0
- package/components/ui/command/index.ts +25 -0
- package/components/ui/context-menu/ContextMenu.vue +18 -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 +14 -0
- package/components/ui/context-menu/ContextMenuItem.vue +42 -0
- package/components/ui/context-menu/ContextMenuLabel.vue +24 -0
- package/components/ui/context-menu/ContextMenuPortal.vue +14 -0
- package/components/ui/context-menu/ContextMenuRadioGroup.vue +22 -0
- package/components/ui/context-menu/ContextMenuRadioItem.vue +41 -0
- package/components/ui/context-menu/ContextMenuSeparator.vue +24 -0
- package/components/ui/context-menu/ContextMenuShortcut.vue +17 -0
- package/components/ui/context-menu/ContextMenuSub.vue +22 -0
- package/components/ui/context-menu/ContextMenuSubContent.vue +36 -0
- package/components/ui/context-menu/ContextMenuSubTrigger.vue +35 -0
- package/components/ui/context-menu/ContextMenuTrigger.vue +16 -0
- package/components/ui/context-menu/index.ts +14 -0
- package/components/ui/custom-dialog/CustomDialog.vue +31 -0
- package/components/ui/custom-dialog/index.ts +1 -0
- package/components/ui/dialog/Dialog.vue +17 -0
- package/components/ui/dialog/DialogClose.vue +14 -0
- package/components/ui/dialog/DialogContent.vue +49 -0
- package/components/ui/dialog/DialogDescription.vue +25 -0
- package/components/ui/dialog/DialogFooter.vue +15 -0
- package/components/ui/dialog/DialogHeader.vue +17 -0
- package/components/ui/dialog/DialogOverlay.vue +23 -0
- package/components/ui/dialog/DialogScrollContent.vue +59 -0
- package/components/ui/dialog/DialogTitle.vue +25 -0
- package/components/ui/dialog/DialogTrigger.vue +14 -0
- package/components/ui/dialog/index.ts +10 -0
- package/components/ui/drawer/Drawer.vue +22 -0
- package/components/ui/drawer/DrawerClose.vue +15 -0
- package/components/ui/drawer/DrawerContent.vue +34 -0
- package/components/ui/drawer/DrawerDescription.vue +24 -0
- package/components/ui/drawer/DrawerFooter.vue +17 -0
- package/components/ui/drawer/DrawerHeader.vue +17 -0
- package/components/ui/drawer/DrawerOverlay.vue +22 -0
- package/components/ui/drawer/DrawerTitle.vue +24 -0
- package/components/ui/drawer/DrawerTrigger.vue +15 -0
- package/components/ui/drawer/index.ts +9 -0
- package/components/ui/dropdown-menu/DropdownMenu.vue +17 -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 +14 -0
- package/components/ui/dropdown-menu/DropdownMenuItem.vue +30 -0
- package/components/ui/dropdown-menu/DropdownMenuLabel.vue +22 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +22 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +42 -0
- package/components/ui/dropdown-menu/DropdownMenuSeparator.vue +26 -0
- package/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -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 +30 -0
- package/components/ui/dropdown-menu/DropdownMenuTrigger.vue +16 -0
- package/components/ui/dropdown-menu/index.ts +16 -0
- package/components/ui/emoji-picker/EmojiPicker.vue +71 -0
- package/components/ui/emoji-picker/index.ts +1 -0
- package/components/ui/flow-builder/FlowBuilder.vue +48 -0
- package/components/ui/flow-builder/FlowBuilderSelect.vue +33 -0
- package/components/ui/flow-builder/components/Builder.vue +287 -0
- package/components/ui/flow-builder/components/DropzoneBackground.vue +13 -0
- package/components/ui/flow-builder/components/EdgeEditor.vue +36 -0
- package/components/ui/flow-builder/components/Menu.vue +78 -0
- package/components/ui/flow-builder/components/NodeEditor.vue +181 -0
- package/components/ui/flow-builder/components/edge-editor/DataEdgeEditor.vue +64 -0
- package/components/ui/flow-builder/components/edges/DataEdge.vue +87 -0
- package/components/ui/flow-builder/components/node-editor/ApiRequestEditor.vue +150 -0
- package/components/ui/flow-builder/components/node-editor/ConfettiEditor.vue +23 -0
- package/components/ui/flow-builder/components/node-editor/ConfirmEditor.vue +30 -0
- package/components/ui/flow-builder/components/node-editor/FinishFlowEditor.vue +33 -0
- package/components/ui/flow-builder/components/node-editor/IntegrationActionEditor.vue +50 -0
- package/components/ui/flow-builder/components/node-editor/SetVariableEditor.vue +71 -0
- package/components/ui/flow-builder/components/node-editor/ShowDialogEditor.vue +26 -0
- package/components/ui/flow-builder/components/node-editor/ShowModuleEditor.vue +92 -0
- package/components/ui/flow-builder/components/node-editor/ShowToastEditor.vue +28 -0
- package/components/ui/flow-builder/components/node-editor/TransformDataEditor.vue +27 -0
- package/components/ui/flow-builder/components/node-editor/VisitUrlEditor.vue +31 -0
- package/components/ui/flow-builder/components/nodes/ApiRequestNode.vue +45 -0
- package/components/ui/flow-builder/components/nodes/ConfettiNode.vue +32 -0
- package/components/ui/flow-builder/components/nodes/ConfirmNode.vue +45 -0
- package/components/ui/flow-builder/components/nodes/EmptyNode.vue +26 -0
- package/components/ui/flow-builder/components/nodes/FinishFlowNode.vue +30 -0
- package/components/ui/flow-builder/components/nodes/IntegrationActionNode.vue +52 -0
- package/components/ui/flow-builder/components/nodes/SetVariableNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/ShowDialogNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/ShowModuleNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/ShowToastNode.vue +35 -0
- package/components/ui/flow-builder/components/nodes/StartNode.vue +27 -0
- package/components/ui/flow-builder/components/nodes/TransformDataNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/VisitUrlNode.vue +34 -0
- package/components/ui/flow-builder/components/toolbars/ApiRequestToolbar.vue +45 -0
- package/components/ui/flow-builder/components/toolbars/ConfirmToolbar.vue +45 -0
- package/components/ui/flow-builder/components/toolbars/DefaultToolbar.vue +42 -0
- package/components/ui/flow-builder/components/toolbars/IntegrationActionToolbar.vue +45 -0
- package/components/ui/flow-builder/components/variables/Widget.vue +137 -0
- package/components/ui/flow-builder/composables/outputRegistry.ts +33 -0
- package/components/ui/flow-builder/composables/taskHandlers.js +185 -0
- package/components/ui/flow-builder/composables/useLayout.js +60 -0
- package/components/ui/flow-builder/composables/useProcessNodeLogic.js +55 -0
- package/components/ui/flow-builder/composables/useRunProcess.js +267 -0
- package/components/ui/flow-builder/index.ts +5 -0
- package/components/ui/flow-builder/types.ts +7 -0
- package/components/ui/form/FormControl.vue +17 -0
- package/components/ui/form/FormDescription.vue +21 -0
- package/components/ui/form/FormItem.vue +22 -0
- package/components/ui/form/FormLabel.vue +25 -0
- package/components/ui/form/FormMessage.vue +22 -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/form-builder/FormBuilder.vue +45 -0
- package/components/ui/form-builder/FormBuilderSelect.vue +42 -0
- package/components/ui/form-builder/FormDisplayer.vue +39 -0
- package/components/ui/form-builder/components/AdminElementEditor.vue +48 -0
- package/components/ui/form-builder/components/AdminToolbar.vue +60 -0
- package/components/ui/form-builder/components/AdminToolbarView.vue +19 -0
- package/components/ui/form-builder/components/CustomDashboard.vue +312 -0
- package/components/ui/form-builder/components/FormBuilderWrapper.vue +333 -0
- package/components/ui/form-builder/components/admin/Transformer.vue +25 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Button.vue +30 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Checkbox.vue +23 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Label.vue +13 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Radios.vue +85 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Scanner.vue +15 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Select.vue +75 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Text.vue +13 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Textarea.vue +20 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Textfield.vue +20 -0
- package/components/ui/form-builder/components/admin/element-setting-views/index.ts +21 -0
- package/components/ui/form-builder/components/admin/setting-views/ApiActionsView.vue +111 -0
- package/components/ui/form-builder/components/admin/setting-views/NewElementView.vue +200 -0
- package/components/ui/form-builder/components/admin/setting-views/VariablesView.vue +19 -0
- package/components/ui/form-builder/components/admin/setting-views/new-element-view/DraggableElement.vue +107 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/ApiActionVariables.vue +27 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/RouteQueryParams.vue +47 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/Transformers.vue +61 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/Variables.vue +74 -0
- package/components/ui/form-builder/components/elements/button/Button.vue +60 -0
- package/components/ui/form-builder/components/elements/button/index.ts +1 -0
- package/components/ui/form-builder/components/elements/checkbox/Checkbox.vue +40 -0
- package/components/ui/form-builder/components/elements/checkbox/index.ts +1 -0
- package/components/ui/form-builder/components/elements/file/File.vue +6 -0
- package/components/ui/form-builder/components/elements/file/index.ts +1 -0
- package/components/ui/form-builder/components/elements/images/Images.vue +28 -0
- package/components/ui/form-builder/components/elements/images/index.ts +1 -0
- package/components/ui/form-builder/components/elements/index.ts +31 -0
- package/components/ui/form-builder/components/elements/items/Items.vue +6 -0
- package/components/ui/form-builder/components/elements/items/index.ts +1 -0
- package/components/ui/form-builder/components/elements/label/Label.vue +20 -0
- package/components/ui/form-builder/components/elements/label/index.ts +1 -0
- package/components/ui/form-builder/components/elements/location/Location.vue +6 -0
- package/components/ui/form-builder/components/elements/location/index.ts +1 -0
- package/components/ui/form-builder/components/elements/radios/Radios.vue +42 -0
- package/components/ui/form-builder/components/elements/radios/index.ts +1 -0
- package/components/ui/form-builder/components/elements/richtext/Richtext.vue +6 -0
- package/components/ui/form-builder/components/elements/richtext/index.ts +1 -0
- package/components/ui/form-builder/components/elements/scanner/Scanner.vue +173 -0
- package/components/ui/form-builder/components/elements/scanner/index.ts +1 -0
- package/components/ui/form-builder/components/elements/select/Select.vue +49 -0
- package/components/ui/form-builder/components/elements/select/index.ts +1 -0
- package/components/ui/form-builder/components/elements/text/Text.vue +20 -0
- package/components/ui/form-builder/components/elements/text/index.ts +1 -0
- package/components/ui/form-builder/components/elements/textarea/Textarea.vue +30 -0
- package/components/ui/form-builder/components/elements/textarea/index.ts +1 -0
- package/components/ui/form-builder/components/elements/textfield/Textfield.vue +30 -0
- package/components/ui/form-builder/components/elements/textfield/index.ts +1 -0
- package/components/ui/form-builder/index.ts +3 -0
- package/components/ui/input/Input.vue +33 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/integration-action-builder/IntegrationActionBuilder.vue +193 -0
- package/components/ui/integration-action-builder/InterpolationField.vue +29 -0
- package/components/ui/integration-action-builder/index.ts +1 -0
- package/components/ui/integration-action-builder/integrations/firebase/AddDocument.vue +43 -0
- package/components/ui/integration-action-builder/integrations/firebase/DeleteDocument.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/GetCollections.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/GetDocumentById.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/QueryCollectionGroup.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/QueryFirestore.vue +165 -0
- package/components/ui/integration-action-builder/integrations/firebase/UpdateDocument.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/index.ts +204 -0
- package/components/ui/integration-action-builder/integrations/index.ts +9 -0
- package/components/ui/integration-action-builder/integrations/openai/AddDocument.vue +43 -0
- package/components/ui/integration-action-builder/integrations/openai/GenerateText.vue +40 -0
- package/components/ui/integration-action-builder/integrations/openai/components/ModelSelector.vue +75 -0
- package/components/ui/integration-action-builder/integrations/openai/index.ts +116 -0
- package/components/ui/integration-action-builder/integrations/twilio/MakeCall.vue +40 -0
- package/components/ui/integration-action-builder/integrations/twilio/SendSMS.vue +39 -0
- package/components/ui/integration-action-builder/integrations/twilio/components/ModelSelector.vue +75 -0
- package/components/ui/integration-action-builder/integrations/twilio/index.ts +68 -0
- package/components/ui/integration-icon/IntegrationIcon.vue +18 -0
- package/components/ui/integration-icon/index.ts +1 -0
- package/components/ui/label/Label.vue +28 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/lucide-icon-selector/LucideIconPicker.vue +34 -0
- package/components/ui/lucide-icon-selector/LucideIconSelector.vue +55 -0
- package/components/ui/lucide-icon-selector/index.ts +2 -0
- package/components/ui/media-picker/MediaPicker.vue +40 -0
- package/components/ui/media-picker/MediaPickerDialog.vue +306 -0
- package/components/ui/media-picker/MediaPickerItems.vue +342 -0
- package/components/ui/media-picker/index.ts +2 -0
- package/components/ui/media-picker/media-picker-dialog/Dropzone.vue +104 -0
- package/components/ui/media-picker/media-picker-dialog/FileItem.vue +108 -0
- package/components/ui/media-picker/media-picker-dialog/Filters.vue +78 -0
- package/components/ui/menubar/Menubar.vue +36 -0
- package/components/ui/menubar/MenubarCheckboxItem.vue +41 -0
- package/components/ui/menubar/MenubarContent.vue +44 -0
- package/components/ui/menubar/MenubarGroup.vue +14 -0
- package/components/ui/menubar/MenubarItem.vue +37 -0
- package/components/ui/menubar/MenubarLabel.vue +19 -0
- package/components/ui/menubar/MenubarMenu.vue +14 -0
- package/components/ui/menubar/MenubarRadioGroup.vue +22 -0
- package/components/ui/menubar/MenubarRadioItem.vue +41 -0
- package/components/ui/menubar/MenubarSeparator.vue +23 -0
- package/components/ui/menubar/MenubarShortcut.vue +17 -0
- package/components/ui/menubar/MenubarSub.vue +22 -0
- package/components/ui/menubar/MenubarSubContent.vue +39 -0
- package/components/ui/menubar/MenubarSubTrigger.vue +27 -0
- package/components/ui/menubar/MenubarTrigger.vue +30 -0
- package/components/ui/menubar/index.ts +15 -0
- package/components/ui/number-field/NumberField.vue +23 -0
- package/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/components/ui/number-field/NumberFieldDecrement.vue +25 -0
- package/components/ui/number-field/NumberFieldIncrement.vue +25 -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 +22 -0
- package/components/ui/pagination/PaginationFirst.vue +29 -0
- package/components/ui/pagination/PaginationLast.vue +29 -0
- package/components/ui/pagination/PaginationNext.vue +29 -0
- package/components/ui/pagination/PaginationPrev.vue +29 -0
- package/components/ui/pagination/index.ts +10 -0
- package/components/ui/popover/Popover.vue +18 -0
- package/components/ui/popover/PopoverAnchor.vue +15 -0
- package/components/ui/popover/PopoverContent.vue +49 -0
- package/components/ui/popover/PopoverTrigger.vue +14 -0
- package/components/ui/popover/index.ts +4 -0
- package/components/ui/query-builder-dialog/QueryBuilderDialog.vue +389 -0
- package/components/ui/query-builder-dialog/index.ts +1 -0
- package/components/ui/radio-group/RadioGroup.vue +30 -0
- package/components/ui/radio-group/RadioGroupItem.vue +43 -0
- package/components/ui/radio-group/index.ts +2 -0
- package/components/ui/range-calendar/RangeCalendar.vue +57 -0
- package/components/ui/range-calendar/RangeCalendarCell.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarCellTrigger.vue +37 -0
- package/components/ui/range-calendar/RangeCalendarGrid.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarGridBody.vue +11 -0
- package/components/ui/range-calendar/RangeCalendarGridHead.vue +11 -0
- package/components/ui/range-calendar/RangeCalendarGridRow.vue +18 -0
- package/components/ui/range-calendar/RangeCalendarHeadCell.vue +18 -0
- package/components/ui/range-calendar/RangeCalendarHeader.vue +18 -0
- package/components/ui/range-calendar/RangeCalendarHeading.vue +28 -0
- package/components/ui/range-calendar/RangeCalendarNextButton.vue +29 -0
- package/components/ui/range-calendar/RangeCalendarPrevButton.vue +29 -0
- package/components/ui/range-calendar/index.ts +12 -0
- package/components/ui/resizable/ResizableHandle.vue +27 -0
- package/components/ui/resizable/ResizablePanel.vue +18 -0
- package/components/ui/resizable/ResizablePanelGroup.vue +25 -0
- package/components/ui/resizable/index.ts +3 -0
- package/components/ui/ripple-button/RippleButton.vue +97 -0
- package/components/ui/ripple-button/index.ts +1 -0
- package/components/ui/sandbox/Sandbox.vue +35 -0
- package/components/ui/sandbox/index.ts +1 -0
- package/components/ui/scroll-area/ScrollArea.vue +36 -0
- package/components/ui/scroll-area/ScrollBar.vue +34 -0
- package/components/ui/scroll-area/index.ts +2 -0
- package/components/ui/segmented-control/SegmentedControl.vue +121 -0
- package/components/ui/segmented-control/SegmentedControlButton.vue +64 -0
- package/components/ui/segmented-control/index.ts +2 -0
- package/components/ui/select/Select.vue +18 -0
- package/components/ui/select/SelectContent.vue +55 -0
- package/components/ui/select/SelectGroup.vue +14 -0
- package/components/ui/select/SelectItem.vue +45 -0
- package/components/ui/select/SelectItemText.vue +14 -0
- package/components/ui/select/SelectLabel.vue +16 -0
- package/components/ui/select/SelectScrollDownButton.vue +28 -0
- package/components/ui/select/SelectScrollUpButton.vue +28 -0
- package/components/ui/select/SelectSeparator.vue +21 -0
- package/components/ui/select/SelectTrigger.vue +32 -0
- package/components/ui/select/SelectValue.vue +15 -0
- package/components/ui/select/index.ts +11 -0
- package/components/ui/separator/Separator.vue +28 -0
- package/components/ui/separator/index.ts +1 -0
- package/components/ui/sheet/Sheet.vue +17 -0
- package/components/ui/sheet/SheetClose.vue +14 -0
- package/components/ui/sheet/SheetContent.vue +65 -0
- package/components/ui/sheet/SheetDescription.vue +20 -0
- package/components/ui/sheet/SheetFooter.vue +16 -0
- package/components/ui/sheet/SheetHeader.vue +15 -0
- package/components/ui/sheet/SheetOverlay.vue +24 -0
- package/components/ui/sheet/SheetTitle.vue +20 -0
- package/components/ui/sheet/SheetTrigger.vue +14 -0
- package/components/ui/sheet/index.ts +8 -0
- package/components/ui/sidebar/Sidebar.vue +96 -0
- package/components/ui/sidebar/SidebarContent.vue +18 -0
- package/components/ui/sidebar/SidebarFooter.vue +18 -0
- package/components/ui/sidebar/SidebarGroup.vue +18 -0
- package/components/ui/sidebar/SidebarGroupAction.vue +27 -0
- package/components/ui/sidebar/SidebarGroupContent.vue +18 -0
- package/components/ui/sidebar/SidebarGroupLabel.vue +25 -0
- package/components/ui/sidebar/SidebarHeader.vue +18 -0
- package/components/ui/sidebar/SidebarInput.vue +22 -0
- package/components/ui/sidebar/SidebarInset.vue +21 -0
- package/components/ui/sidebar/SidebarMenu.vue +18 -0
- package/components/ui/sidebar/SidebarMenuAction.vue +34 -0
- package/components/ui/sidebar/SidebarMenuBadge.vue +26 -0
- package/components/ui/sidebar/SidebarMenuButton.vue +49 -0
- package/components/ui/sidebar/SidebarMenuButtonChild.vue +34 -0
- package/components/ui/sidebar/SidebarMenuItem.vue +18 -0
- package/components/ui/sidebar/SidebarMenuSkeleton.vue +34 -0
- package/components/ui/sidebar/SidebarMenuSub.vue +22 -0
- package/components/ui/sidebar/SidebarMenuSubButton.vue +36 -0
- package/components/ui/sidebar/SidebarMenuSubItem.vue +18 -0
- package/components/ui/sidebar/SidebarProvider.vue +81 -0
- package/components/ui/sidebar/SidebarRail.vue +33 -0
- package/components/ui/sidebar/SidebarSeparator.vue +19 -0
- package/components/ui/sidebar/SidebarTrigger.vue +27 -0
- package/components/ui/sidebar/index.ts +60 -0
- package/components/ui/sidebar/utils.ts +19 -0
- package/components/ui/skeleton/Skeleton.vue +17 -0
- package/components/ui/skeleton/index.ts +1 -0
- package/components/ui/sonner/Sonner.vue +18 -0
- package/components/ui/sonner/index.ts +1 -0
- package/components/ui/spring-calendar/SpringCalendar.vue +110 -0
- package/components/ui/spring-calendar/TextMorph.vue +160 -0
- package/components/ui/spring-calendar/index.ts +2 -0
- package/components/ui/switch/Switch.vue +41 -0
- package/components/ui/switch/index.ts +1 -0
- package/components/ui/table/Table.vue +16 -0
- package/components/ui/table/TableBody.vue +17 -0
- package/components/ui/table/TableCaption.vue +17 -0
- package/components/ui/table/TableCell.vue +22 -0
- package/components/ui/table/TableEmpty.vue +37 -0
- package/components/ui/table/TableFooter.vue +17 -0
- package/components/ui/table/TableHead.vue +17 -0
- package/components/ui/table/TableHeader.vue +17 -0
- package/components/ui/table/TableRow.vue +17 -0
- package/components/ui/table/index.ts +9 -0
- package/components/ui/table/utils.ts +9 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +22 -0
- package/components/ui/tabs/TabsList.vue +25 -0
- package/components/ui/tabs/TabsTrigger.vue +29 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/tailwind-color-picker/TailwindColorPicker.vue +58 -0
- package/components/ui/tailwind-color-picker/index.ts +1 -0
- package/components/ui/textarea/Textarea.vue +28 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components/ui/toggle/Toggle.vue +32 -0
- package/components/ui/toggle/index.ts +27 -0
- package/components/ui/tooltip/Tooltip.vue +17 -0
- package/components/ui/tooltip/TooltipContent.vue +33 -0
- package/components/ui/tooltip/TooltipProvider.vue +13 -0
- package/components/ui/tooltip/TooltipTrigger.vue +14 -0
- package/components/ui/tooltip/index.ts +4 -0
- package/composables/useCms.ts +11 -0
- package/index.ts +10 -0
- package/lib/interpolation.ts +77 -0
- package/lib/utils.ts +24 -0
- package/package.json +52 -0
- package/styles/components/code-editor.css +52 -0
- package/styles/components/flow-builder.css +159 -0
- package/styles/index.css +2 -0
- package/tsconfig.json +19 -0
- package/types/index.ts +41 -0
- package/vite.config.ts +25 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ChevronsLeftRightEllipsis, Component, Variable } from 'lucide-vue-next';
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const emit = defineEmits(['update:modelValue'])
|
|
12
|
+
|
|
13
|
+
const mutableValue = computed({
|
|
14
|
+
get() {
|
|
15
|
+
return props.modelValue
|
|
16
|
+
},
|
|
17
|
+
set(value) {
|
|
18
|
+
emit('update:modelValue', value)
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div>
|
|
25
|
+
<SegmentedControl direction="vertical" class="w-12" v-model="mutableValue" allow-empty>
|
|
26
|
+
<TooltipProvider>
|
|
27
|
+
<Tooltip>
|
|
28
|
+
<TooltipTrigger as-child>
|
|
29
|
+
<SegmentedControlButton value="new-element">
|
|
30
|
+
<Component class="size-4" />
|
|
31
|
+
</SegmentedControlButton>
|
|
32
|
+
</TooltipTrigger>
|
|
33
|
+
<TooltipContent :side="'right'">
|
|
34
|
+
<p>Add new element</p>
|
|
35
|
+
</TooltipContent>
|
|
36
|
+
</Tooltip>
|
|
37
|
+
<Tooltip>
|
|
38
|
+
<TooltipTrigger as-child>
|
|
39
|
+
<SegmentedControlButton value="variables">
|
|
40
|
+
<Variable class="size-4" />
|
|
41
|
+
</SegmentedControlButton>
|
|
42
|
+
</TooltipTrigger>
|
|
43
|
+
<TooltipContent :side="'right'">
|
|
44
|
+
<p>Variables</p>
|
|
45
|
+
</TooltipContent>
|
|
46
|
+
</Tooltip>
|
|
47
|
+
<Tooltip>
|
|
48
|
+
<TooltipTrigger as-child>
|
|
49
|
+
<SegmentedControlButton value="api-actions">
|
|
50
|
+
<ChevronsLeftRightEllipsis class="size-4" />
|
|
51
|
+
</SegmentedControlButton>
|
|
52
|
+
</TooltipTrigger>
|
|
53
|
+
<TooltipContent :side="'right'">
|
|
54
|
+
<p>APIs & Actions</p>
|
|
55
|
+
</TooltipContent>
|
|
56
|
+
</Tooltip>
|
|
57
|
+
</TooltipProvider>
|
|
58
|
+
</SegmentedControl>
|
|
59
|
+
</div>
|
|
60
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import NewElementView from './admin/setting-views/NewElementView.vue';
|
|
3
|
+
import ApiActionsView from './admin/setting-views/ApiActionsView.vue';
|
|
4
|
+
import VariablesView from './admin/setting-views/VariablesView.vue';
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
view: {
|
|
8
|
+
type: String
|
|
9
|
+
}
|
|
10
|
+
})
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div class="flex flex-col shrink-0 p-2 rounded-xl border bg-card overflow-y-auto w-[275px] @7xl/custom-dashboard:w-[325px]" v-if="view">
|
|
15
|
+
<NewElementView v-if="view === 'new-element'" />
|
|
16
|
+
<ApiActionsView v-else-if="view === 'api-actions'" />
|
|
17
|
+
<VariablesView v-else-if="view === 'variables'" />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, inject, onMounted, onUnmounted, computed } from 'vue'
|
|
3
|
+
import { GridLayout, GridItem } from 'vue-grid-layout-v3';
|
|
4
|
+
import { elementComponents } from './elements';
|
|
5
|
+
import { cn } from '../../../../lib/utils'
|
|
6
|
+
import { useElementSize } from '@vueuse/core'
|
|
7
|
+
import { interpolateTemplateFromVariableContext } from '../../../../lib/interpolation'
|
|
8
|
+
|
|
9
|
+
const confirmation = useConfirmation()
|
|
10
|
+
|
|
11
|
+
const overlayStack = useOverlayStack()
|
|
12
|
+
|
|
13
|
+
const randomId = crypto.randomUUID()
|
|
14
|
+
|
|
15
|
+
const state = inject('state') as { layout: any[], layoutRef: any, colNum: number, itemRefs: any };
|
|
16
|
+
const isDragging = inject('isDragging');
|
|
17
|
+
const activeElement = inject('activeElement');
|
|
18
|
+
const selectedItems = inject('selectedItems');
|
|
19
|
+
const isEditMode = inject('isEditMode', ref(false));
|
|
20
|
+
const allAvailableVariables = inject('allAvailableVariables')
|
|
21
|
+
|
|
22
|
+
const containerRef = useTemplateRef('containerRef')
|
|
23
|
+
const { width: containerWidth, height: containerHeight } = useElementSize(containerRef)
|
|
24
|
+
|
|
25
|
+
function setItemRef(item, e) {
|
|
26
|
+
state.itemRefs[item.i] = e;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function setLayoutRef(e) {
|
|
30
|
+
state.layoutRef = e;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const setActive = (item) => {
|
|
34
|
+
activeElement.value = item;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let containerEl: HTMLElement;
|
|
38
|
+
let selectionBox: HTMLElement;
|
|
39
|
+
let startX, startY;
|
|
40
|
+
const isSelecting = ref(false);
|
|
41
|
+
|
|
42
|
+
const startSelectionDrag = (e: MouseEvent) => {
|
|
43
|
+
if (!isEditMode.value) return;
|
|
44
|
+
|
|
45
|
+
const target = e.target as HTMLElement;
|
|
46
|
+
const isInsideItem = target.closest('.vue-grid-item');
|
|
47
|
+
if (isInsideItem) return;
|
|
48
|
+
|
|
49
|
+
isSelecting.value = true;
|
|
50
|
+
|
|
51
|
+
const rect = containerEl.getBoundingClientRect();
|
|
52
|
+
const scrollTop = containerEl.scrollTop;
|
|
53
|
+
const scrollLeft = containerEl.scrollLeft;
|
|
54
|
+
|
|
55
|
+
startX = e.clientX - rect.left + scrollLeft;
|
|
56
|
+
startY = e.clientY - rect.top + scrollTop;
|
|
57
|
+
|
|
58
|
+
selectionBox.style.left = startX + 'px';
|
|
59
|
+
selectionBox.style.top = startY + 'px';
|
|
60
|
+
selectionBox.style.width = '0px';
|
|
61
|
+
selectionBox.style.height = '0px';
|
|
62
|
+
selectionBox.style.opacity = '1';
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const updateSelectionDrag = (e: MouseEvent) => {
|
|
66
|
+
if (!isEditMode.value || !isSelecting.value) return;
|
|
67
|
+
|
|
68
|
+
const rect = containerEl.getBoundingClientRect();
|
|
69
|
+
const scrollTop = containerEl.scrollTop;
|
|
70
|
+
const scrollLeft = containerEl.scrollLeft;
|
|
71
|
+
|
|
72
|
+
const currentX = e.clientX - rect.left + scrollLeft;
|
|
73
|
+
const currentY = e.clientY - rect.top + scrollTop;
|
|
74
|
+
|
|
75
|
+
const x = Math.min(startX, currentX);
|
|
76
|
+
const y = Math.min(startY, currentY);
|
|
77
|
+
const width = Math.abs(startX - currentX);
|
|
78
|
+
const height = Math.abs(startY - currentY);
|
|
79
|
+
|
|
80
|
+
selectionBox.style.left = x + 'px';
|
|
81
|
+
selectionBox.style.top = y + 'px';
|
|
82
|
+
selectionBox.style.width = width + 'px';
|
|
83
|
+
selectionBox.style.height = height + 'px';
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const endSelectionDrag = () => {
|
|
87
|
+
if (!isEditMode.value) return;
|
|
88
|
+
isSelecting.value = false;
|
|
89
|
+
selectionBox.style.opacity = '0';
|
|
90
|
+
|
|
91
|
+
const rect = selectionBox.getBoundingClientRect();
|
|
92
|
+
const items = document.querySelectorAll('#custom-form-builder .vue-grid-item:not(.vue-grid-placeholder)');
|
|
93
|
+
|
|
94
|
+
if (rect.width > 3 || rect.height > 3) {
|
|
95
|
+
selectedItems.value = [];
|
|
96
|
+
activeElement.value = null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
items.forEach(item => {
|
|
100
|
+
const itemRect = item.getBoundingClientRect();
|
|
101
|
+
const fullyContained =
|
|
102
|
+
itemRect.left >= rect.left &&
|
|
103
|
+
itemRect.right <= rect.right &&
|
|
104
|
+
itemRect.top >= rect.top &&
|
|
105
|
+
itemRect.bottom <= rect.bottom;
|
|
106
|
+
|
|
107
|
+
if (fullyContained) {
|
|
108
|
+
const id = item.getAttribute('data-grid-id');
|
|
109
|
+
selectedItems.value.push(parseInt(id));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
selectionBox.style.left = '0px';
|
|
114
|
+
selectionBox.style.top = '0px';
|
|
115
|
+
selectionBox.style.width = '0px';
|
|
116
|
+
selectionBox.style.height = '0px';
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function isTypingInInput(): boolean {
|
|
120
|
+
const tag = document.activeElement?.tagName.toLowerCase();
|
|
121
|
+
const isContentEditable = document.activeElement?.getAttribute('contenteditable');
|
|
122
|
+
return ['input', 'textarea', 'select'].includes(tag) || isContentEditable === 'true';
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async function handleKeydown(event: KeyboardEvent) {
|
|
126
|
+
if (!overlayStack.isTop(randomId)) return
|
|
127
|
+
|
|
128
|
+
if (isEditMode.value && event.key === 'Backspace' && !isTypingInInput() && (selectedItems.value.length > 0 || activeElement.value)) {
|
|
129
|
+
event.preventDefault(); // optional
|
|
130
|
+
const confirmed = await confirmation.confirm(`Are you sure you want to delete ${selectedItems.value.length > 1 ? 'these ' + selectedItems.value.length + ' items' : 'this item'}?`)
|
|
131
|
+
if (confirmed) {
|
|
132
|
+
if (selectedItems.value.length > 0) {
|
|
133
|
+
selectedItems.value.forEach((item: string) => {
|
|
134
|
+
removeItem(item);
|
|
135
|
+
});
|
|
136
|
+
} else {
|
|
137
|
+
removeItem(activeElement.value.i);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
selectedItems.value = [];
|
|
142
|
+
activeElement.value = null;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const colNum = computed(() => {
|
|
147
|
+
return containerWidth.value < 480 ? 2 : 4
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
const removeItem = (i: string) => {
|
|
151
|
+
state.layout.splice(state.layout.findIndex(item => item.i === i), 1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const isHidden = (item: any) => {
|
|
155
|
+
if (Object.keys(item).includes('visibility')) {
|
|
156
|
+
return ![true, 'true', 1].includes(interpolateTemplateFromVariableContext(item.visibility.trim(), allAvailableVariables?.value)) // TODO niet enkel 1 maar alles boven 1 ook + eig zou je moeten fixen dat je automatisch een boolean er uit kan krijgen (+ ook string of object)
|
|
157
|
+
}
|
|
158
|
+
return false
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
onMounted(() => {
|
|
162
|
+
overlayStack.push(randomId)
|
|
163
|
+
selectionBox = document.getElementById('selection-box');
|
|
164
|
+
containerEl = document.getElementById('custom-form-builder');
|
|
165
|
+
|
|
166
|
+
window.addEventListener('mouseup', endSelectionDrag);
|
|
167
|
+
window.addEventListener('mousemove', updateSelectionDrag);
|
|
168
|
+
window.addEventListener('keydown', handleKeydown);
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
onUnmounted(() => {
|
|
172
|
+
overlayStack.pop(randomId)
|
|
173
|
+
window.removeEventListener('mouseup', endSelectionDrag);
|
|
174
|
+
window.removeEventListener('mousemove', updateSelectionDrag);
|
|
175
|
+
window.removeEventListener('keydown', handleKeydown);
|
|
176
|
+
});
|
|
177
|
+
</script>
|
|
178
|
+
|
|
179
|
+
<template>
|
|
180
|
+
<div
|
|
181
|
+
ref="containerRef"
|
|
182
|
+
id="custom-form-builder"
|
|
183
|
+
class="relative block w-full h-full overflow-auto bg-background"
|
|
184
|
+
:class="{ 'select-none': isDragging || isSelecting, 'border border-ring/50 dark:border-ring rounded-xl shadow-sm': isEditMode }"
|
|
185
|
+
@mousedown="startSelectionDrag"
|
|
186
|
+
>
|
|
187
|
+
<div class="relative min-h-full flex flex-col">
|
|
188
|
+
<div
|
|
189
|
+
class="absolute inset-0 h-full w-full bg-grid transition-all duration-500"
|
|
190
|
+
:class="`${isDragging ? 'dark:opacity-10 opacity-20' : 'opacity-0'}`"
|
|
191
|
+
:style="`--colNum: ${colNum}`"
|
|
192
|
+
v-if="isEditMode"
|
|
193
|
+
/>
|
|
194
|
+
<GridLayout
|
|
195
|
+
:class="`${isDragging || isSelecting ? 'select-none' : ''}`"
|
|
196
|
+
:style="`min-height: ${containerHeight - 5}px;`"
|
|
197
|
+
:ref="setLayoutRef"
|
|
198
|
+
:margin="[parseInt(state.marginX), parseInt(state.marginY)]"
|
|
199
|
+
v-model:layout="state.layout"
|
|
200
|
+
:col-num="colNum"
|
|
201
|
+
:row-height="state.rowHeight"
|
|
202
|
+
:is-draggable="isEditMode"
|
|
203
|
+
:is-resizable="isEditMode"
|
|
204
|
+
:is-mirrored="state.mirrored"
|
|
205
|
+
:is-bounded="state.bounded"
|
|
206
|
+
:prevent-collision="state.preventCollision"
|
|
207
|
+
:vertical-compact="state.compact"
|
|
208
|
+
:restore-on-drag="state.restoreOnDrag"
|
|
209
|
+
:use-css-transforms="true"
|
|
210
|
+
:responsive="state.responsive"
|
|
211
|
+
:transform-scale="state.transformScale"
|
|
212
|
+
>
|
|
213
|
+
<GridItem
|
|
214
|
+
v-for="item in state.layout"
|
|
215
|
+
:key="item.i"
|
|
216
|
+
:ref="e => setItemRef(item, e)"
|
|
217
|
+
class="group"
|
|
218
|
+
:data-grid-id="item.i"
|
|
219
|
+
:static="item.static"
|
|
220
|
+
:x="item.x"
|
|
221
|
+
:y="item.y"
|
|
222
|
+
:w="item.w"
|
|
223
|
+
:h="item.h"
|
|
224
|
+
:i="item.i"
|
|
225
|
+
:min-w="item.minW"
|
|
226
|
+
:max-w="item.maxW"
|
|
227
|
+
:min-h="item.minH"
|
|
228
|
+
:max-h="item.maxH"
|
|
229
|
+
:min-x="item.minX"
|
|
230
|
+
:max-x="item.maxX"
|
|
231
|
+
:min-y="item.minY"
|
|
232
|
+
:max-y="item.maxY"
|
|
233
|
+
:preserve-aspect-ratio="item.preserveAspectRatio"
|
|
234
|
+
>
|
|
235
|
+
<div
|
|
236
|
+
class="w-full h-full p-2 outline-primary/70"
|
|
237
|
+
:class="cn(
|
|
238
|
+
isEditMode && (isDragging || isSelecting) ? 'outline outline-dashed' : '',
|
|
239
|
+
isEditMode ? 'group-hover:outline-2' : '',
|
|
240
|
+
isEditMode && (selectedItems.includes(item.i) || activeElement?.i === item.i) ? 'outline-2' : '',
|
|
241
|
+
isEditMode && isHidden(item) ? 'opacity-50' : isHidden(item) ? 'hidden pointer-events-none' : ''
|
|
242
|
+
)"
|
|
243
|
+
@click="isEditMode ? setActive(item) : null"
|
|
244
|
+
>
|
|
245
|
+
<component :is="elementComponents[`CustomForm${item.component}`]" :key="item.i" v-bind="item" />
|
|
246
|
+
</div>
|
|
247
|
+
</GridItem>
|
|
248
|
+
</GridLayout>
|
|
249
|
+
|
|
250
|
+
<div id="selection-box" class="absolute border border-dashed border-primary bg-primary/10 opacity-0 pointer-events-none transition-opacity duration-300"></div>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
</template>
|
|
254
|
+
|
|
255
|
+
<style scoped lang="scss">
|
|
256
|
+
#custom-form-builder {
|
|
257
|
+
&::-webkit-scrollbar {
|
|
258
|
+
width: 5px;
|
|
259
|
+
height: 5px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&::-webkit-scrollbar-track {
|
|
263
|
+
background: transparent;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&::-webkit-scrollbar-thumb {
|
|
267
|
+
background: #494949;
|
|
268
|
+
border-radius: 5px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.bg-grid {
|
|
272
|
+
--colNum: 2;
|
|
273
|
+
background-image:
|
|
274
|
+
/* Vertical lines (4 columns) */
|
|
275
|
+
repeating-linear-gradient(
|
|
276
|
+
to right,
|
|
277
|
+
var(--primary) 0,
|
|
278
|
+
var(--primary) 1px,
|
|
279
|
+
transparent 1px,
|
|
280
|
+
transparent calc(100% / var(--colNum))
|
|
281
|
+
),
|
|
282
|
+
/* Horizontal lines (8px rows) */
|
|
283
|
+
repeating-linear-gradient(
|
|
284
|
+
to bottom,
|
|
285
|
+
var(--primary) 0,
|
|
286
|
+
var(--primary) 1px,
|
|
287
|
+
transparent 1px,
|
|
288
|
+
transparent 8px
|
|
289
|
+
);
|
|
290
|
+
background-size: 100% 100%;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.vue-grid-item.vue-resizable {
|
|
294
|
+
&:hover {
|
|
295
|
+
.vue-resizable-handle {
|
|
296
|
+
display: block;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.vue-resizable-handle {
|
|
301
|
+
display: none;
|
|
302
|
+
background: var(--color-muted);
|
|
303
|
+
border-radius: 100px;
|
|
304
|
+
width: 12px;
|
|
305
|
+
height: 12px;
|
|
306
|
+
right: -6px;
|
|
307
|
+
bottom: -6px;
|
|
308
|
+
border: 2px solid var(--primary);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
</style>
|