Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[automated] Apply ESLint and Prettier fixes
  • Loading branch information
actions-user committed Dec 13, 2025
commit 574a3c21c90dd44519822cd3979da4d07ac07e9f
10 changes: 5 additions & 5 deletions src/composables/graph/useGraphNodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function normalizeWidgetValue(value: unknown): WidgetValue {
if (
Array.isArray(value) &&
value.length > 0 &&
value.every((item): item is File => item instanceof File)
value.every((item): item is File => item instanceof File)
) {
return value
}
Expand All @@ -115,14 +115,14 @@ function normalizeWidgetValue(value: unknown): WidgetValue {
return undefined
}

function getControlWidget(widget: IBaseWidget): (() => Ref<ControlOptions>)|undefined {
function getControlWidget(
widget: IBaseWidget
): (() => Ref<ControlOptions>) | undefined {
const cagWidget = widget.linkedWidgets?.find(
(w) => w.name == 'control_after_generate'
)
if (!cagWidget) return
const cagRef = ref<ControlOptions>(
normalizeControlOption(cagWidget.value)
)
const cagRef = ref<ControlOptions>(normalizeControlOption(cagWidget.value))
watch(cagRef, (value) => {
cagWidget.value = normalizeControlOption(value)
cagWidget.callback?.(cagWidget.value)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<template>
<WidgetLayoutField :widget>
<div class="relative">
<Select
v-model="modelValue"
:invalid
:filter="selectOptions.length > 4"
:auto-filter-focus="selectOptions.length > 4"
:options="selectOptions"
v-bind="combinedProps"
:class="cn(WidgetInputBaseClass, 'w-full text-xs')"
:aria-label="widget.name"
size="small"
:pt="{
option: 'text-xs',
dropdown: 'w-8',
label: cn('truncate min-w-[4ch]', slots.default && 'mr-5'),
overlay: 'w-fit min-w-full'
}"
data-capture-wheel="true"
/>
<Select
v-model="modelValue"
:invalid
:filter="selectOptions.length > 4"
:auto-filter-focus="selectOptions.length > 4"
:options="selectOptions"
v-bind="combinedProps"
:class="cn(WidgetInputBaseClass, 'w-full text-xs')"
:aria-label="widget.name"
size="small"
:pt="{
option: 'text-xs',
dropdown: 'w-8',
label: cn('truncate min-w-[4ch]', slots.default && 'mr-5'),
overlay: 'w-fit min-w-full'
}"
data-capture-wheel="true"
/>
<div class="absolute top-5 right-8 h-4 w-7 -translate-y-4/5">
<slot />
</div>
Expand Down
1 change: 0 additions & 1 deletion src/types/simplifiedWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export interface SimplifiedWidget<
spec?: InputSpecV2

controlWidget?: () => Ref<ControlOptions>

}
export type SimplifiedControlWidget<T extends WidgetValue = WidgetValue> =
SimplifiedWidget<T> & Required<Pick<SimplifiedWidget<T>, 'controlWidget'>>