| | |
| | | import LimitConfig from './components/limit-config' |
| | | import FilterCondition from './components/filter-condition' |
| | | import Field from '@/app/components/workflow/nodes/_base/components/field' |
| | | import type { NodePanelProps } from '@/app/components/workflow/types' |
| | | import { type NodePanelProps } from '@/app/components/workflow/types' |
| | | import Switch from '@/app/components/base/switch' |
| | | import ExtractInput from '@/app/components/workflow/nodes/list-operator/components/extract-input' |
| | | |
| | |
| | | |
| | | return ( |
| | | <div className='pt-2'> |
| | | <div className='space-y-4 px-4'> |
| | | <div className='px-4 space-y-4'> |
| | | <Field |
| | | title={t(`${i18nPrefix}.inputVar`)} |
| | | required |
| | | > |
| | | <VarReferencePicker |
| | | readonly={readOnly} |
| | |
| | | {inputs.extract_by?.enabled |
| | | ? ( |
| | | <div className='flex items-center justify-between'> |
| | | <div className='mr-2 grow'> |
| | | <ExtractInput |
| | | value={inputs.extract_by.serial as string} |
| | | onChange={handleExtractsChange} |
| | | readOnly={readOnly} |
| | | nodeId={id} |
| | | /> |
| | | </div> |
| | | {hasSubVariable && ( |
| | | <div className='grow mr-2'> |
| | | <ExtractInput |
| | | value={inputs.extract_by.serial as string} |
| | | onChange={handleExtractsChange} |
| | | readOnly={readOnly} |
| | | nodeId={id} |
| | | /> |
| | | </div> |
| | | )} |
| | | </div> |
| | | ) |
| | | : null} |
| | |
| | | ? ( |
| | | <div className='flex items-center justify-between'> |
| | | {hasSubVariable && ( |
| | | <div className='mr-2 grow'> |
| | | <div className='grow mr-2'> |
| | | <SubVariablePicker |
| | | value={inputs.order_by.key as string} |
| | | onChange={handleOrderByKeyChange} |
| | | /> |
| | | </div> |
| | | )} |
| | | <div className={!hasSubVariable ? 'grid w-full grid-cols-2 gap-1' : 'flex shrink-0 space-x-1'}> |
| | | <div className={!hasSubVariable ? 'w-full grid grid-cols-2 gap-1' : 'shrink-0 flex space-x-1'}> |
| | | <OptionCard |
| | | title={t(`${i18nPrefix}.asc`)} |
| | | onSelect={handleOrderByTypeChange(OrderBy.ASC)} |