@comfyorg/design-system 1.2.0 → 1.3.0-alpha.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 +33 -3
- package/dist/accordion/PropertiesAccordionItem.vue.d.ts +34 -0
- package/dist/accordion/PropertiesAccordionItem.vue.js +62 -0
- package/dist/badge/Badge.vue.js +1 -2
- package/dist/badge/CreditBadge.vue.d.ts +0 -1
- package/dist/badge/CreditBadge.vue.js +10 -24
- package/dist/badge/badge.variants.d.ts +1 -1
- package/dist/button/Button.vue.js +1 -2
- package/dist/button-group/ButtonGroup.vue.js +2 -4
- package/dist/button-group/IconGroup.vue.js +2 -4
- package/dist/card/Card.vue.js +1 -2
- package/dist/card/CardFooter.vue.js +1 -2
- package/dist/card/CardHeader.vue.js +1 -2
- package/dist/card/CoachmarkCard.vue.js +2 -4
- package/dist/chart/Chart.vue.js +4 -7
- package/dist/chart/__tests__/chartTestUtils.d.ts +3 -0
- package/dist/checkbox/Checkbox.vue.js +2 -4
- package/dist/chip/Tag.vue.d.ts +61 -0
- package/dist/chip/Tag.vue.js +71 -0
- package/dist/chip/TagRemoveButton.vue.js +1 -2
- package/dist/color-picker/ColorPicker.vue.d.ts +23 -0
- package/dist/color-picker/ColorPicker.vue.js +139 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +27 -0
- package/dist/color-picker/ColorPickerPanel.vue.js +1 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.js +1 -0
- package/dist/color-picker/ColorPickerSlider.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSlider.vue.js +1 -0
- package/dist/color-picker/types.d.ts +22 -0
- package/dist/color-picker/types.js +0 -0
- package/dist/color-picker/useColorPicker.d.ts +33 -0
- package/dist/common/CanvasBanner.vue.js +3 -5
- package/dist/common/ContentDivider.vue.js +2 -4
- package/dist/common/CustomFormValue.vue.js +1 -3
- package/dist/common/DotSpinner.vue.js +3 -5
- package/dist/common/EditableText.vue.js +3 -5
- package/dist/common/HighlightedText.vue.d.ts +8 -0
- package/dist/common/HighlightedText.vue.js +50 -0
- package/dist/common/LoadingOverlay.vue.js +3 -5
- package/dist/common/MarkdownText.vue.js +2 -4
- package/dist/common/MarqueeLine.vue.js +2 -3
- package/dist/common/NoResultsPlaceholder.vue.d.ts +28 -0
- package/dist/common/NoResultsPlaceholder.vue.js +49 -0
- package/dist/common/NotificationPopup.vue.d.ts +28 -0
- package/dist/common/NotificationPopup.vue.js +63 -0
- package/dist/common/OverlayIcon.vue.js +1 -2
- package/dist/common/SanitizedHtml.vue.js +2 -4
- package/dist/common/TextDivider.vue.js +3 -5
- package/dist/common/TextTicker.vue.js +2 -4
- package/dist/common/TextTickerMultiLine.vue.js +3 -6
- package/dist/common/UserAvatar.vue.d.ts +9 -0
- package/dist/common/UserAvatar.vue.js +45 -0
- package/dist/common/VerticalDivider.vue.js +2 -3
- package/dist/common/VideoCompareSlider.vue.js +3 -5
- package/dist/common/ViewportWidgetShell.vue.js +3 -5
- package/dist/common/VirtualGrid.vue.js +1 -3
- package/dist/common/highlightQuery.d.ts +6 -0
- package/dist/composables/useAttrsClass.js +1 -2
- package/dist/composables/usePopoverSizing.js +1 -2
- package/dist/confirm/ConfirmBody.vue.js +3 -5
- package/dist/confirm/ConfirmFooter.vue.d.ts +18 -0
- package/dist/confirm/ConfirmFooter.vue.js +53 -0
- package/dist/confirm/ConfirmHeader.vue.js +2 -4
- package/dist/content-card/CardBottom.vue.js +2 -4
- package/dist/content-card/CardContainer.vue.js +3 -5
- package/dist/content-card/CardTop.vue.js +2 -4
- package/dist/dialog/Dialog.vue.js +1 -3
- package/dist/dialog/DialogClose.vue.js +1 -24
- package/dist/dialog/DialogContent.vue.js +1 -73
- package/dist/dialog/DialogDescription.vue.js +2 -4
- package/dist/dialog/DialogFooter.vue.js +2 -4
- package/dist/dialog/DialogHeader.vue.js +2 -4
- package/dist/dialog/DialogMaximize.vue.js +2 -4
- package/dist/dialog/DialogOverlay.vue.js +1 -35
- package/dist/dialog/DialogPanel.vue.js +7 -9
- package/dist/dialog/DialogPortal.vue.js +1 -38
- package/dist/dialog/DialogTitle.vue.js +1 -2
- package/dist/dialog/Dialogue.vue.d.ts +22 -0
- package/dist/dialog/Dialogue.vue.js +56 -0
- package/dist/dialog/dialog.variants.js +4 -5
- package/dist/field/Field.vue.js +4 -7
- package/dist/field/FieldDescription.vue.js +2 -4
- package/dist/field/FieldError.vue.js +3 -5
- package/dist/field/FieldGroup.vue.js +2 -4
- package/dist/field/FieldLabel.vue.js +3 -5
- package/dist/field/FieldSwitch.vue.d.ts +16 -0
- package/dist/field/FieldSwitch.vue.js +43 -0
- package/dist/field/LayoutField.vue.d.ts +18 -0
- package/dist/field/LayoutField.vue.js +1 -0
- package/dist/field/ModelInfoField.vue.js +2 -4
- package/dist/hover-card/HoverCard.vue.js +1 -3
- package/dist/hover-card/HoverCardContent.vue.js +2 -4
- package/dist/hover-card/HoverCardTrigger.vue.js +1 -3
- package/dist/icon/ComfyLogo.vue.js +2 -4
- package/dist/icon/PuzzleIcon.vue.js +2 -4
- package/dist/icon/TinyChevronIcon.vue.js +1 -3
- package/dist/icon/VerifiedIcon.vue.js +2 -4
- package/dist/input/Input.vue.js +1 -2
- package/dist/input/PasswordInput.vue.js +5 -7
- package/dist/input-group/InputGroup.vue.js +1 -2
- package/dist/input-group/InputGroupAddon.vue.js +1 -2
- package/dist/input-group/InputGroupButton.vue.js +1 -2
- package/dist/input-group/InputGroupInput.vue.js +1 -2
- package/dist/input-group/inputGroup.variants.js +1 -2
- package/dist/knob/Knob.vue.js +3 -5
- package/dist/label/Label.vue.js +1 -2
- package/dist/layout/BaseModalLayout.vue.d.ts +67 -0
- package/dist/layout/BaseModalLayout.vue.js +198 -0
- package/dist/media/AudioPreview.vue.js +2 -4
- package/dist/media/ImageLightbox.vue.d.ts +17 -0
- package/dist/media/ImageLightbox.vue.js +76 -0
- package/dist/media/MediaTitle.vue.js +2 -4
- package/dist/media/Video.vue.d.ts +28 -0
- package/dist/media/Video.vue.js +100 -0
- package/dist/media/VideoPlayOverlay.vue.js +3 -5
- package/dist/media/VideoPreview.vue.js +2 -4
- package/dist/media/ZoomPane.vue.js +1 -3
- package/dist/menu/ContextMenu.vue.js +3 -5
- package/dist/menu/ContextMenuContent.vue.js +1 -2
- package/dist/menu/Menu.vue.js +3 -5
- package/dist/menu/MenuAction.vue.js +1 -2
- package/dist/menu/MenuContent.vue.js +1 -2
- package/dist/menu/MenuItem.vue.js +2 -4
- package/dist/menu/MenuItemContent.vue.js +1 -2
- package/dist/menu/MenuItems.vue.js +1 -2
- package/dist/menu/MenuRadioGroup.vue.js +1 -2
- package/dist/menu/MenuRadioItem.vue.js +1 -2
- package/dist/menu/MenuSeparator.vue.js +1 -2
- package/dist/menu/MenuSub.vue.js +1 -2
- package/dist/menu/MenuSubContent.vue.js +1 -2
- package/dist/menu/MenuSubTrigger.vue.js +1 -2
- package/dist/menu/MenuSubmenu.vue.js +1 -2
- package/dist/menu/menuAnchor.js +1 -2
- package/dist/menu/menuStyles.js +1 -2
- package/dist/menu/usePointMenu.js +1 -2
- package/dist/message/Message.vue.js +4 -6
- package/dist/message/message.variants.js +1 -2
- package/dist/multi-select/MultiSelect.vue.js +3 -5
- package/dist/multi-select/MultiSelectContent.vue.js +1 -2
- package/dist/multi-select/MultiSelectTrigger.vue.js +1 -2
- package/dist/navigation/LeftSidePanel.vue.d.ts +12 -0
- package/dist/navigation/LeftSidePanel.vue.js +82 -0
- package/dist/navigation/NavIcon.vue.d.ts +7 -0
- package/dist/navigation/NavIcon.vue.js +1 -0
- package/dist/navigation/NavItem.vue.d.ts +21 -0
- package/dist/navigation/NavItem.vue.js +1 -0
- package/dist/navigation/NavTitle.vue.js +1 -42
- package/dist/navigation/SidebarTopArea.vue.js +2 -3
- package/dist/navigation/types.d.ts +13 -0
- package/dist/navigation/types.js +0 -0
- package/dist/number-field/NumberField.vue.js +2 -4
- package/dist/number-field/NumberFieldDecrement.vue.js +2 -4
- package/dist/number-field/NumberFieldIncrement.vue.js +2 -4
- package/dist/number-field/NumberFieldInput.vue.js +2 -4
- package/dist/number-field/PropertyNumberField.vue.js +3 -5
- package/dist/pagination/Pagination.vue.js +8 -10
- package/dist/popover/PopoverContent.vue.js +1 -91
- package/dist/popover/usePopoverViewportDismiss.js +1 -2
- package/dist/radio-group/RadioGroup.vue.js +2 -4
- package/dist/radio-group/RadioGroupItem.vue.js +2 -4
- package/dist/search-input/AsyncSearchInput.vue.js +3 -5
- package/dist/search-input/SearchAutocomplete.vue.js +4 -6
- package/dist/search-input/SearchInput.vue.js +4 -6
- package/dist/select/DropdownControl.vue.js +2 -4
- package/dist/select/Select.vue.js +1 -2
- package/dist/select/SelectContent.vue.js +1 -2
- package/dist/select/SelectItem.vue.d.ts +4 -0
- package/dist/select/SelectItem.vue.js +1 -2
- package/dist/select/SelectScrollDownButton.vue.js +1 -2
- package/dist/select/SelectScrollUpButton.vue.js +1 -2
- package/dist/select/SelectTrigger.vue.js +1 -2
- package/dist/select/SelectValue.vue.js +1 -2
- package/dist/select/useSelectSearch.js +1 -2
- package/dist/shared/{Badge-D3uWa3yk.js → Badge-DFHO3AFi.js} +4 -6
- package/dist/shared/{Button-CilmsOkY.js → Button-Dj_H5v3V.js} +5 -8
- package/dist/shared/{Card-l7baUdn0.js → Card-BrvqUM49.js} +3 -5
- package/dist/shared/{CardFooter-BM6EmVi7.js → CardFooter-BV_I0pM-.js} +2 -4
- package/dist/shared/{CardHeader-B5To28Jp.js → CardHeader-CMutruBx.js} +2 -4
- package/dist/shared/ColorPickerPanel-DQGHuvxk.js +239 -0
- package/dist/shared/ColorPickerSaturationValue-B5VDiMcl.js +64 -0
- package/dist/shared/ColorPickerSlider--mnQyzWD.js +305 -0
- package/dist/shared/{ContextMenuContent-CNQHJQ81.js → ContextMenuContent-RNyBBJOX.js} +2 -4
- package/dist/shared/DialogClose-CrtPRSNX.js +22 -0
- package/dist/shared/DialogContent-v2s55FXs.js +71 -0
- package/dist/shared/DialogOverlay-C9qv0zme.js +33 -0
- package/dist/shared/DialogPortal-DtCpLgtO.js +36 -0
- package/dist/shared/{DialogTitle-CfkkTGuU.js → DialogTitle-Chomvpgq.js} +2 -4
- package/dist/shared/{Input-39RLwDr2.js → Input-DOeNoniw.js} +2 -4
- package/dist/shared/{InputGroup-kjQKkhyB.js → InputGroup-BYt6BWpk.js} +2 -4
- package/dist/shared/{InputGroupAddon-DLDRT0CQ.js → InputGroupAddon-B1cn7czs.js} +3 -5
- package/dist/shared/{InputGroupButton-BoEp2apg.js → InputGroupButton-tw5AYOoR.js} +3 -5
- package/dist/shared/{InputGroupInput-E2MlEVUU.js → InputGroupInput-C_kkIxvY.js} +3 -5
- package/dist/shared/{Label-Cx_lFofI.js → Label-kwhWNR2P.js} +2 -4
- package/dist/shared/LayoutField-C8KCaVF0.js +34 -0
- package/dist/shared/{MenuAction-BdghJ23k.js → MenuAction-0z8BSoX9.js} +5 -8
- package/dist/shared/{MenuContent-ChqlM3xA.js → MenuContent--tKCqaIO.js} +2 -4
- package/dist/shared/{MenuItemContent--dPNoBmU.js → MenuItemContent-Be658c7e.js} +6 -8
- package/dist/shared/{MenuItems-BJKetPV-.js → MenuItems-BZTlERd6.js} +5 -7
- package/dist/shared/{MenuRadioGroup-Bpjt9sHI.js → MenuRadioGroup-B28YS1p1.js} +4 -6
- package/dist/shared/{MenuRadioItem-h7hh_RGU.js → MenuRadioItem-D8DFu-KU.js} +2 -4
- package/dist/shared/{MenuSeparator-Dm6CkPqB.js → MenuSeparator-DrAiObmE.js} +2 -4
- package/dist/shared/{MenuSub-Dbnj2w-X.js → MenuSub-DSizq_fV.js} +1 -3
- package/dist/shared/{MenuSubContent-M-g3fllh.js → MenuSubContent-ghzkX4hX.js} +2 -4
- package/dist/shared/{MenuSubTrigger-D6-3s2NL.js → MenuSubTrigger-BGRIm_Bf.js} +2 -4
- package/dist/shared/{MenuSubmenu-QHWMyfKF.js → MenuSubmenu-CjPf8DXl.js} +5 -7
- package/dist/shared/{MultiSelectContent-c1D5avjh.js → MultiSelectContent-9xyBQKz3.js} +5 -7
- package/dist/shared/{MultiSelectTrigger-lmuXqETa.js → MultiSelectTrigger-DNySkpH9.js} +4 -6
- package/dist/shared/NavIcon-FTJH75HH.js +12 -0
- package/dist/shared/NavItem-sQJ-77Zw.js +77 -0
- package/dist/shared/NavTitle-BM22yfCR.js +40 -0
- package/dist/shared/{OverlayIcon-DntJI-mm.js → OverlayIcon-C-din824.js} +3 -5
- package/dist/shared/PopoverContent-DNqL6t-O.js +89 -0
- package/dist/shared/{SearchableSingleSelect-Dnti1kqJ.js → SearchableSingleSelect-DQauLQWW.js} +4 -6
- package/dist/shared/{Select-CP3OZjtL.js → Select-DtVgv7Po.js} +1 -3
- package/dist/shared/{SelectContent-C8aNlcFf.js → SelectContent-Ba1mCDWM.js} +4 -6
- package/dist/shared/{SelectItem-tU4CIa5J.js → SelectItem-DaOr3TFS.js} +23 -10
- package/dist/shared/{SelectScrollDownButton-Dvig5MVc.js → SelectScrollDownButton-DYmxtida.js} +2 -4
- package/dist/shared/{SelectScrollUpButton-lv-npT6v.js → SelectScrollUpButton-DiyvSb9O.js} +2 -4
- package/dist/shared/{SelectTrigger-CCDiZW91.js → SelectTrigger-BBicbVsI.js} +2 -4
- package/dist/shared/{SelectValue-DFZFSiQp.js → SelectValue-BjaQc-WU.js} +1 -3
- package/dist/shared/{Switch-DsCzHpDU.js → Switch-qavkHWMz.js} +3 -5
- package/dist/shared/{TableHead-OxGist4m.js → TableHead-DpsXVMzk.js} +2 -4
- package/dist/shared/{TagRemoveButton-BiCdscIC.js → TagRemoveButton-D919R-To.js} +4 -6
- package/dist/shared/{TextTooltip-ClHQl84h.js → TextTooltip-BNlZI515.js} +4 -6
- package/dist/shared/{Tooltip-DbXyHv20.js → Tooltip-4rCebVao.js} +2 -4
- package/dist/shared/{TooltipContent-Bju-U7gc.js → TooltipContent-0GR7hBNu.js} +3 -5
- package/dist/shared/{TooltipTrigger-CVwISmWo.js → TooltipTrigger-64EIE5f2.js} +2 -4
- package/dist/shared/TransitionCollapse-VfBzyj5a.js +108 -0
- package/dist/shared/{_plugin-vue_export-helper-BOaGB7Aw.js → _plugin-vue_export-helper-DjkACiAr.js} +1 -2
- package/dist/shared/{searchInput.variants-NOge_52E.js → searchInput.variants-BdYHNjce.js} +1 -2
- package/dist/shared/{select.variants-BPn5Z7N1.js → select.variants-cRXaATWS.js} +1 -2
- package/dist/shared/{src-CnJ6AzLP.js → src-DTwuqov4.js} +1 -2
- package/dist/shared/{tabKeys-BISOrxWu.js → tabKeys-CP6c3wTY.js} +1 -2
- package/dist/shared/{tabs.variants-XUREdHry.js → tabs.variants-Cgk7bRhG.js} +1 -2
- package/dist/shared/{tag.variants-CCqCn8Jc.js → tag.variants-BEXRRbPc.js} +1 -2
- package/dist/shared/{tagsInputContext-QXu7RrG5.js → tagsInputContext-C-X1-iNf.js} +1 -2
- package/dist/shared/{toggleGroup.variants-CvjZDHMw.js → toggleGroup.variants-BuwGELw0.js} +1 -2
- package/dist/shared/{tooltipContext-BL5JtM0i.js → tooltipContext-arEyjGQC.js} +1 -2
- package/dist/single-select/SearchableSingleSelect.vue.js +1 -2
- package/dist/single-select/SingleSelect.vue.js +5 -7
- package/dist/skeleton/Skeleton.vue.js +2 -4
- package/dist/slider/GradientSlider.vue.d.ts +20 -0
- package/dist/slider/GradientSlider.vue.js +100 -0
- package/dist/slider/Slider.vue.js +2 -4
- package/dist/slider/gradients.d.ts +6 -0
- package/dist/spinner/Spinner.vue.js +2 -4
- package/dist/splitter/SplitterGroup.vue.js +2 -4
- package/dist/splitter/SplitterPanel.vue.js +2 -4
- package/dist/splitter/SplitterResizeHandle.vue.js +3 -5
- package/dist/switch/Switch.vue.js +1 -2
- package/dist/tab/Tab.vue.js +5 -8
- package/dist/tab/TabList.vue.js +3 -5
- package/dist/tab/TabPanel.vue.js +3 -5
- package/dist/table/Table.vue.js +3 -5
- package/dist/table/TableBody.vue.js +2 -4
- package/dist/table/TableCell.vue.js +2 -4
- package/dist/table/TableHead.vue.js +1 -2
- package/dist/table/TableHeader.vue.js +2 -4
- package/dist/table/TableRow.vue.js +2 -4
- package/dist/table/TableSortHead.vue.js +3 -5
- package/dist/table/tableUtils.js +1 -2
- package/dist/tabs/Tabs.vue.js +2 -4
- package/dist/tabs/TabsContent.vue.js +2 -4
- package/dist/tabs/TabsList.vue.js +3 -5
- package/dist/tabs/TabsTrigger.vue.js +3 -5
- package/dist/tags-input/TagsInput.vue.js +4 -6
- package/dist/tags-input/TagsInputInput.vue.js +3 -5
- package/dist/tags-input/TagsInputItem.vue.js +3 -5
- package/dist/tags-input/TagsInputItemDelete.vue.js +2 -4
- package/dist/tags-input/TagsInputItemText.vue.js +2 -4
- package/dist/textarea/Textarea.vue.js +2 -4
- package/dist/toast/ToastClose.vue.js +3 -5
- package/dist/toast/ToastDescription.vue.js +2 -4
- package/dist/toast/ToastDock.vue.js +2 -4
- package/dist/toast/ToastPanel.vue.js +3 -5
- package/dist/toast/ToastRoot.vue.js +3 -5
- package/dist/toast/ToastTitle.vue.js +2 -4
- package/dist/toast/ToastViewport.vue.js +2 -4
- package/dist/toggle-group/ToggleGroup.vue.js +3 -5
- package/dist/toggle-group/ToggleGroupItem.vue.js +3 -5
- package/dist/tooltip/TextTooltip.vue.js +1 -2
- package/dist/tooltip/Tooltip.vue.js +1 -2
- package/dist/tooltip/TooltipContent.vue.js +1 -2
- package/dist/tooltip/TooltipProvider.vue.js +1 -3
- package/dist/tooltip/TooltipTrigger.vue.js +1 -2
- package/dist/tooltip/tooltipConfig.js +1 -2
- package/dist/transition/TransitionCollapse.vue.js +1 -110
- package/dist/tree/Tree.vue.d.ts +1 -1
- package/dist/tree/Tree.vue.js +2 -4
- package/dist/tree/TreeItem.vue.js +4 -6
- package/dist/tree/treeStyles.js +1 -2
- package/package.json +40 -20
- package/src/css/_baseline.css +143 -0
- package/src/css/_mask-editor.css +0 -1
- package/src/css/baseline.css +3 -0
- package/src/css/iconSizing.test.ts +1 -1
- package/src/css/published.css +3 -0
- package/src/css/style.css +2 -316
- package/src/css/theme.css +175 -0
- package/src/icons/README.md +41 -84
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { i as hsvaToHex, n as hexToHsva, o as rgbToHex, r as hsbToRgb } from "../shared/ColorPickerSlider--mnQyzWD.js";
|
|
2
|
+
import { t as PopoverContent_default } from "../shared/PopoverContent-DNqL6t-O.js";
|
|
3
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
4
|
+
import { t as ColorPickerPanel_default } from "../shared/ColorPickerPanel-DQGHuvxk.js";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
6
|
+
import { PopoverRoot, PopoverTrigger } from "reka-ui";
|
|
7
|
+
// src/components/color-picker/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = ["disabled", "aria-label"];
|
|
9
|
+
var _hoisted_2 = { class: "flex size-8 shrink-0 items-center justify-center" };
|
|
10
|
+
var _hoisted_3 = { class: "relative size-4 overflow-hidden rounded-sm" };
|
|
11
|
+
var _hoisted_4 = { class: "flex flex-1 items-center justify-between pl-1 text-xs text-foreground" };
|
|
12
|
+
var _hoisted_5 = { key: 0 };
|
|
13
|
+
var _hoisted_6 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "flex gap-2"
|
|
16
|
+
};
|
|
17
|
+
var _hoisted_7 = { key: 2 };
|
|
18
|
+
// src/components/color-picker/ColorPicker.vue
|
|
19
|
+
var ColorPicker_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "ColorPicker",
|
|
21
|
+
props: /*@__PURE__*/ mergeModels({
|
|
22
|
+
class: {},
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
alpha: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
accessibleLabel: {},
|
|
29
|
+
hexLabel: {},
|
|
30
|
+
rgbaLabel: {},
|
|
31
|
+
hueLabel: {},
|
|
32
|
+
alphaLabel: {},
|
|
33
|
+
redLabel: {},
|
|
34
|
+
greenLabel: {},
|
|
35
|
+
blueLabel: {},
|
|
36
|
+
saturationBrightnessLabel: {},
|
|
37
|
+
formatLabel: {}
|
|
38
|
+
}, {
|
|
39
|
+
"modelValue": { default: "#000000" },
|
|
40
|
+
"modelModifiers": {}
|
|
41
|
+
}),
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(__props) {
|
|
44
|
+
const modelValue = useModel(__props, "modelValue");
|
|
45
|
+
function readHsva(hex) {
|
|
46
|
+
const next = hexToHsva(hex || "#000000");
|
|
47
|
+
if (!__props.alpha) next.a = 100;
|
|
48
|
+
return next;
|
|
49
|
+
}
|
|
50
|
+
const hsva = ref(readHsva(modelValue.value));
|
|
51
|
+
const displayMode = ref("hex");
|
|
52
|
+
watch(modelValue, (newVal) => {
|
|
53
|
+
if (newVal !== hsvaToHex(hsva.value)) hsva.value = readHsva(newVal);
|
|
54
|
+
});
|
|
55
|
+
watch(hsva, (newHsva) => {
|
|
56
|
+
const hex = hsvaToHex(newHsva);
|
|
57
|
+
if (hex !== modelValue.value) modelValue.value = hex;
|
|
58
|
+
}, { deep: true });
|
|
59
|
+
const baseRgb = computed(() => hsbToRgb({
|
|
60
|
+
h: hsva.value.h,
|
|
61
|
+
s: hsva.value.s,
|
|
62
|
+
b: hsva.value.v
|
|
63
|
+
}));
|
|
64
|
+
const previewColor = computed(() => {
|
|
65
|
+
const hex = rgbToHex(baseRgb.value);
|
|
66
|
+
const a = hsva.value.a / 100;
|
|
67
|
+
if (a < 1) return `${hex}${Math.round(a * 255).toString(16).padStart(2, "0")}`;
|
|
68
|
+
return hex;
|
|
69
|
+
});
|
|
70
|
+
const displayHex = computed(() => rgbToHex(baseRgb.value).toLowerCase());
|
|
71
|
+
const isOpen = ref(false);
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return openBlock(), createBlock(unref(PopoverRoot), {
|
|
74
|
+
open: isOpen.value,
|
|
75
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => isOpen.value = $event)
|
|
76
|
+
}, {
|
|
77
|
+
default: withCtx(() => [createVNode(unref(PopoverTrigger), { "as-child": "" }, {
|
|
78
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", {}, () => [createElementVNode("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
disabled: _ctx.$props.disabled,
|
|
81
|
+
"aria-label": __props.accessibleLabel,
|
|
82
|
+
class: normalizeClass(unref(cn)("flex h-8 w-full items-center overflow-clip rounded-lg border border-transparent bg-secondary pr-2 outline-none hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50", isOpen.value && "border-border", _ctx.$props.class))
|
|
83
|
+
}, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [_cache[3] || (_cache[3] = createElementVNode("div", {
|
|
84
|
+
class: "absolute inset-0",
|
|
85
|
+
style: {
|
|
86
|
+
backgroundImage: "repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%)",
|
|
87
|
+
backgroundSize: "4px 4px"
|
|
88
|
+
}
|
|
89
|
+
}, null, -1)), createElementVNode("div", {
|
|
90
|
+
class: "absolute inset-0",
|
|
91
|
+
style: normalizeStyle({ backgroundColor: previewColor.value })
|
|
92
|
+
}, null, 4)])]), createElementVNode("div", _hoisted_4, [displayMode.value === "hex" ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(displayHex.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
93
|
+
createElementVNode("span", null, toDisplayString(baseRgb.value.r), 1),
|
|
94
|
+
createElementVNode("span", null, toDisplayString(baseRgb.value.g), 1),
|
|
95
|
+
createElementVNode("span", null, toDisplayString(baseRgb.value.b), 1)
|
|
96
|
+
])), __props.alpha ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(hsva.value.a) + "%", 1)) : createCommentVNode("", true)])], 10, _hoisted_1)])]),
|
|
97
|
+
_: 3
|
|
98
|
+
}), createVNode(unref(PopoverContent_default), {
|
|
99
|
+
align: "start",
|
|
100
|
+
"side-offset": 7,
|
|
101
|
+
class: "w-auto border-0 bg-transparent p-0 shadow-none"
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [createVNode(ColorPickerPanel_default, {
|
|
104
|
+
hsva: hsva.value,
|
|
105
|
+
"onUpdate:hsva": _cache[0] || (_cache[0] = ($event) => hsva.value = $event),
|
|
106
|
+
"display-mode": displayMode.value,
|
|
107
|
+
"onUpdate:displayMode": _cache[1] || (_cache[1] = ($event) => displayMode.value = $event),
|
|
108
|
+
alpha: __props.alpha,
|
|
109
|
+
"hex-label": _ctx.$props.hexLabel,
|
|
110
|
+
"rgba-label": _ctx.$props.rgbaLabel,
|
|
111
|
+
"hue-label": _ctx.$props.hueLabel,
|
|
112
|
+
"alpha-label": _ctx.$props.alphaLabel,
|
|
113
|
+
"red-label": _ctx.$props.redLabel,
|
|
114
|
+
"green-label": _ctx.$props.greenLabel,
|
|
115
|
+
"blue-label": _ctx.$props.blueLabel,
|
|
116
|
+
"saturation-brightness-label": _ctx.$props.saturationBrightnessLabel,
|
|
117
|
+
"format-label": _ctx.$props.formatLabel
|
|
118
|
+
}, null, 8, [
|
|
119
|
+
"hsva",
|
|
120
|
+
"display-mode",
|
|
121
|
+
"alpha",
|
|
122
|
+
"hex-label",
|
|
123
|
+
"rgba-label",
|
|
124
|
+
"hue-label",
|
|
125
|
+
"alpha-label",
|
|
126
|
+
"red-label",
|
|
127
|
+
"green-label",
|
|
128
|
+
"blue-label",
|
|
129
|
+
"saturation-brightness-label",
|
|
130
|
+
"format-label"
|
|
131
|
+
])]),
|
|
132
|
+
_: 1
|
|
133
|
+
})]),
|
|
134
|
+
_: 3
|
|
135
|
+
}, 8, ["open"]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export { ColorPicker_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HSVA } from '@comfyorg/design-system/lib/color-picker/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
alpha?: boolean;
|
|
4
|
+
hexLabel: string;
|
|
5
|
+
rgbaLabel: string;
|
|
6
|
+
hueLabel: string;
|
|
7
|
+
alphaLabel: string;
|
|
8
|
+
redLabel: string;
|
|
9
|
+
greenLabel: string;
|
|
10
|
+
blueLabel: string;
|
|
11
|
+
saturationBrightnessLabel: string;
|
|
12
|
+
formatLabel: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
'hsva': HSVA;
|
|
16
|
+
'displayMode': 'hex' | 'rgba';
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:hsva": (value: HSVA) => any;
|
|
21
|
+
"update:displayMode": (value: "hex" | "rgba") => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:hsva"?: ((value: HSVA) => any) | undefined;
|
|
24
|
+
"onUpdate:displayMode"?: ((value: "hex" | "rgba") => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ColorPickerPanel-DQGHuvxk.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
hue: number;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
'saturation': number;
|
|
6
|
+
'value': number;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:saturation": (value: number) => any;
|
|
11
|
+
"update:value": (value: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:saturation"?: ((value: number) => any) | undefined;
|
|
14
|
+
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ColorPickerSaturationValue-B5VDiMcl.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
type: 'hue' | 'alpha';
|
|
3
|
+
hue?: number;
|
|
4
|
+
saturation?: number;
|
|
5
|
+
brightness?: number;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue: number;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ColorPickerSlider--mnQyzWD.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface HSVA {
|
|
2
|
+
h: number;
|
|
3
|
+
s: number;
|
|
4
|
+
v: number;
|
|
5
|
+
a: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ColorPickerProps {
|
|
8
|
+
class?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
alpha?: boolean;
|
|
11
|
+
/** Defaults to the trigger's visible color value. */
|
|
12
|
+
accessibleLabel?: string;
|
|
13
|
+
hexLabel: string;
|
|
14
|
+
rgbaLabel: string;
|
|
15
|
+
hueLabel: string;
|
|
16
|
+
alphaLabel: string;
|
|
17
|
+
redLabel: string;
|
|
18
|
+
greenLabel: string;
|
|
19
|
+
blueLabel: string;
|
|
20
|
+
saturationBrightnessLabel: string;
|
|
21
|
+
formatLabel: string;
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { HSVA } from '@comfyorg/design-system/lib/color-picker/types';
|
|
3
|
+
export declare const rgbChannels: readonly [{
|
|
4
|
+
readonly key: "r";
|
|
5
|
+
}, {
|
|
6
|
+
readonly key: "g";
|
|
7
|
+
}, {
|
|
8
|
+
readonly key: "b";
|
|
9
|
+
}];
|
|
10
|
+
export declare function useColorPicker(hsva: Ref<HSVA>): {
|
|
11
|
+
hex: {
|
|
12
|
+
draft: string;
|
|
13
|
+
beginEdit: () => void;
|
|
14
|
+
commit: () => void;
|
|
15
|
+
reset: () => void;
|
|
16
|
+
};
|
|
17
|
+
rgb: {
|
|
18
|
+
draft: {
|
|
19
|
+
r: number;
|
|
20
|
+
g: number;
|
|
21
|
+
b: number;
|
|
22
|
+
};
|
|
23
|
+
beginEdit: () => void;
|
|
24
|
+
commit: () => void;
|
|
25
|
+
reset: () => void;
|
|
26
|
+
};
|
|
27
|
+
alpha: {
|
|
28
|
+
draft: number;
|
|
29
|
+
beginEdit: () => void;
|
|
30
|
+
commit: () => void;
|
|
31
|
+
reset: () => void;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "../shared/src-
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
2
|
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/common/CanvasBanner.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var _hoisted_1 = { class: "flex min-w-0 items-center gap-2" };
|
|
5
5
|
var _hoisted_2 = { class: "flex min-w-0 flex-col text-sm wrap-break-word" };
|
|
6
6
|
var _hoisted_3 = { class: "font-medium text-foreground" };
|
|
@@ -8,8 +8,7 @@ var _hoisted_4 = {
|
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "text-muted-foreground"
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
//#region src/components/common/CanvasBanner.vue
|
|
11
|
+
// src/components/common/CanvasBanner.vue
|
|
13
12
|
var CanvasBanner_default = /* @__PURE__ */ defineComponent({
|
|
14
13
|
__name: "CanvasBanner",
|
|
15
14
|
props: { accent: {} },
|
|
@@ -19,5 +18,4 @@ var CanvasBanner_default = /* @__PURE__ */ defineComponent({
|
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
});
|
|
22
|
-
//#endregion
|
|
23
21
|
export { CanvasBanner_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
|
|
2
2
|
import { createElementBlock, defineComponent, normalizeClass, openBlock, useCssVars } from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/components/common/ContentDivider.vue
|
|
3
|
+
// src/components/common/ContentDivider.vue
|
|
5
4
|
var ContentDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6
5
|
__name: "ContentDivider",
|
|
7
6
|
props: {
|
|
@@ -18,5 +17,4 @@ var ContentDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
19
|
}), [["__scopeId", "data-v-dcb6a1f4"]]);
|
|
21
|
-
//#endregion
|
|
22
20
|
export { ContentDivider_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createElementBlock, defineComponent, onMounted, openBlock, ref, watch } from "vue";
|
|
2
|
-
|
|
3
|
-
//#region src/components/common/CustomFormValue.vue
|
|
2
|
+
// src/components/common/CustomFormValue.vue
|
|
4
3
|
var CustomFormValue_default = /* @__PURE__ */ defineComponent({
|
|
5
4
|
__name: "CustomFormValue",
|
|
6
5
|
props: { renderFunction: { type: Function } },
|
|
@@ -24,5 +23,4 @@ var CustomFormValue_default = /* @__PURE__ */ defineComponent({
|
|
|
24
23
|
};
|
|
25
24
|
}
|
|
26
25
|
});
|
|
27
|
-
//#endregion
|
|
28
26
|
export { CustomFormValue_default as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
|
|
2
2
|
import { createElementBlock, createStaticVNode, defineComponent, normalizeStyle, openBlock } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/common/DotSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var _hoisted_1 = ["width", "height"];
|
|
5
|
-
|
|
6
|
-
//#region src/components/common/DotSpinner.vue
|
|
5
|
+
// src/components/common/DotSpinner.vue
|
|
7
6
|
var DotSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "DotSpinner",
|
|
9
8
|
props: {
|
|
@@ -30,5 +29,4 @@ var DotSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
}), [["__scopeId", "data-v-8e668792"]]);
|
|
33
|
-
//#endregion
|
|
34
32
|
export { DotSpinner_default as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as Input_default } from "../shared/Input-
|
|
1
|
+
import { t as Input_default } from "../shared/Input-DOeNoniw.js";
|
|
2
2
|
import { createBlock, createElementBlock, createTextVNode, defineComponent, mergeProps, nextTick, normalizeClass, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/common/EditableText.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var _hoisted_1 = { class: "editable-text inline" };
|
|
5
|
-
|
|
6
|
-
//#region src/components/common/EditableText.vue
|
|
5
|
+
// src/components/common/EditableText.vue
|
|
7
6
|
var EditableText_default = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "EditableText",
|
|
9
8
|
props: {
|
|
@@ -69,5 +68,4 @@ var EditableText_default = /* @__PURE__ */ defineComponent({
|
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
70
|
});
|
|
72
|
-
//#endregion
|
|
73
71
|
export { EditableText_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
query: string;
|
|
3
|
+
text: string;
|
|
4
|
+
highlightClass?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { Fragment, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref } from "vue";
|
|
3
|
+
// src/components/common/highlightQuery.ts
|
|
4
|
+
var MAX_QUERY_LENGTH = 1024;
|
|
5
|
+
function highlightQuery(text, query) {
|
|
6
|
+
if (!query || query.length > text.length || query.length > MAX_QUERY_LENGTH) return [{
|
|
7
|
+
text,
|
|
8
|
+
highlighted: false
|
|
9
|
+
}];
|
|
10
|
+
const pattern = Array.from(query).map((ch) => ch.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("[ ]?");
|
|
11
|
+
const regex = new RegExp(pattern, "gi");
|
|
12
|
+
const parts = [];
|
|
13
|
+
let lastIndex = 0;
|
|
14
|
+
for (const match of text.matchAll(regex)) {
|
|
15
|
+
if (match.index > lastIndex) parts.push({
|
|
16
|
+
text: text.slice(lastIndex, match.index),
|
|
17
|
+
highlighted: false
|
|
18
|
+
});
|
|
19
|
+
parts.push({
|
|
20
|
+
text: match[0],
|
|
21
|
+
highlighted: true
|
|
22
|
+
});
|
|
23
|
+
lastIndex = match.index + match[0].length;
|
|
24
|
+
}
|
|
25
|
+
if (lastIndex < text.length || parts.length === 0) parts.push({
|
|
26
|
+
text: text.slice(lastIndex),
|
|
27
|
+
highlighted: false
|
|
28
|
+
});
|
|
29
|
+
return parts;
|
|
30
|
+
}
|
|
31
|
+
// src/components/common/HighlightedText.vue
|
|
32
|
+
var HighlightedText_default = /* @__PURE__ */ defineComponent({
|
|
33
|
+
__name: "HighlightedText",
|
|
34
|
+
props: {
|
|
35
|
+
query: {},
|
|
36
|
+
text: {},
|
|
37
|
+
highlightClass: {}
|
|
38
|
+
},
|
|
39
|
+
setup(__props) {
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(highlightQuery)(__props.text, __props.query), (part, index) => {
|
|
42
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [part.highlighted ? (openBlock(), createElementBlock("span", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: normalizeClass(unref(cn)("highlight", __props.highlightClass))
|
|
45
|
+
}, toDisplayString(part.text), 3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
|
|
46
|
+
}), 128);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export { HighlightedText_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "../shared/src-
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
2
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/common/LoadingOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "absolute inset-0 z-50 flex items-center justify-center bg-background/50",
|
|
@@ -13,8 +13,7 @@ var _hoisted_5 = {
|
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "mt-4 text-lg text-foreground"
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
//#region src/components/common/LoadingOverlay.vue
|
|
16
|
+
// src/components/common/LoadingOverlay.vue
|
|
18
17
|
var LoadingOverlay_default = /* @__PURE__ */ defineComponent({
|
|
19
18
|
__name: "LoadingOverlay",
|
|
20
19
|
props: {
|
|
@@ -37,5 +36,4 @@ var LoadingOverlay_default = /* @__PURE__ */ defineComponent({
|
|
|
37
36
|
};
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
|
-
//#endregion
|
|
41
39
|
export { LoadingOverlay_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, toDisplayString } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/components/common/MarkdownText.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var _hoisted_1 = { class: "wrap-break-word" };
|
|
4
4
|
var _hoisted_2 = ["textContent"];
|
|
5
5
|
var _hoisted_3 = { key: 1 };
|
|
@@ -12,8 +12,7 @@ var _hoisted_8 = {
|
|
|
12
12
|
class: "rounded-sm px-1 py-0.5 text-xs"
|
|
13
13
|
};
|
|
14
14
|
var _hoisted_9 = { key: 4 };
|
|
15
|
-
|
|
16
|
-
//#region src/components/common/MarkdownText.vue
|
|
15
|
+
// src/components/common/MarkdownText.vue
|
|
17
16
|
var MarkdownText_default = /* @__PURE__ */ defineComponent({
|
|
18
17
|
__name: "MarkdownText",
|
|
19
18
|
props: { text: {} },
|
|
@@ -89,5 +88,4 @@ var MarkdownText_default = /* @__PURE__ */ defineComponent({
|
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
90
|
});
|
|
92
|
-
//#endregion
|
|
93
91
|
export { MarkdownText_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
|
|
2
2
|
import { createElementBlock, createElementVNode, openBlock, renderSlot } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/common/MarqueeLine.vue
|
|
4
4
|
var _sfc_main = {};
|
|
5
5
|
var _hoisted_1 = { class: "@container overflow-hidden mask-[linear-gradient(to_right,black_70%,transparent)] motion-safe:group-hover:mask-none" };
|
|
6
6
|
var _hoisted_2 = { class: "inline-block min-w-full whitespace-nowrap [--_marquee-end:min(calc(-100%+100cqw),0px)] motion-safe:group-hover:animate-[marquee-scroll_2s_linear_infinite_alternate]" };
|
|
@@ -8,5 +8,4 @@ function _sfc_render(_ctx, _cache) {
|
|
|
8
8
|
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default")])]);
|
|
9
9
|
}
|
|
10
10
|
var MarqueeLine_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
-
//#endregion
|
|
12
11
|
export { MarqueeLine_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ButtonVariants } from '@comfyorg/design-system/button.variants';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
message: string;
|
|
7
|
+
textClass?: string;
|
|
8
|
+
buttonIcon?: string;
|
|
9
|
+
buttonLabel?: string;
|
|
10
|
+
buttonVariant?: ButtonVariants['variant'];
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
title?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
action: (...args: any[]) => void;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onAction?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
|
|
3
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
// src/components/common/NoResultsPlaceholder.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = { class: "flex flex-col items-center bg-(--surface-ground) text-center" };
|
|
6
|
+
var _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "mb-2 text-foreground"
|
|
9
|
+
};
|
|
10
|
+
// src/components/common/NoResultsPlaceholder.vue
|
|
11
|
+
var NoResultsPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "NoResultsPlaceholder",
|
|
13
|
+
props: {
|
|
14
|
+
class: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
title: {},
|
|
17
|
+
message: {},
|
|
18
|
+
textClass: {},
|
|
19
|
+
buttonIcon: {},
|
|
20
|
+
buttonLabel: {},
|
|
21
|
+
buttonVariant: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["action"],
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("h-full p-8", props.class)) }, [createElementVNode("div", _hoisted_1, [
|
|
28
|
+
__props.icon ? (openBlock(), createElementBlock("i", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: normalizeClass(unref(cn)(__props.icon, "mb-4 size-12 text-5xl"))
|
|
31
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
32
|
+
renderSlot(_ctx.$slots, "title", {}, () => [__props.title ? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("", true)]),
|
|
33
|
+
createElementVNode("p", { class: normalizeClass(unref(cn)("mb-4 text-center whitespace-pre-line", __props.textClass)) }, toDisplayString(__props.message), 3),
|
|
34
|
+
__props.buttonLabel ? (openBlock(), createBlock(unref(Button_default), {
|
|
35
|
+
key: 1,
|
|
36
|
+
variant: __props.buttonVariant ?? "textonly",
|
|
37
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("action"))
|
|
38
|
+
}, {
|
|
39
|
+
default: withCtx(() => [__props.buttonIcon ? (openBlock(), createElementBlock("i", {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: normalizeClass(__props.buttonIcon)
|
|
42
|
+
}, null, 2)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(__props.buttonLabel), 1)]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 8, ["variant"])) : createCommentVNode("", true)
|
|
45
|
+
])], 2);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export { NoResultsPlaceholder_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
closeLabel?: string;
|
|
6
|
+
position?: 'bottom-left' | 'bottom-right';
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_9) => any;
|
|
11
|
+
} & {
|
|
12
|
+
'footer-start'?: (props: typeof __VLS_11) => any;
|
|
13
|
+
} & {
|
|
14
|
+
'footer-end'?: (props: typeof __VLS_13) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
close: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|