| | |
| | | comparisonOperatorNotRequireValue, |
| | | isComparisonOperatorNeedTranslate, |
| | | } from '../utils' |
| | | import { FILE_TYPE_OPTIONS, TRANSFER_METHOD } from '../../constants' |
| | | import { FILE_TYPE_OPTIONS, TRANSFER_METHOD } from '../default' |
| | | import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' |
| | | import { BubbleX, Env } from '@/app/components/base/icons/src/vender/line/others' |
| | | import cn from '@/utils/classnames' |
| | |
| | | }, [isSelect, t, value]) |
| | | |
| | | return ( |
| | | <div className='flex h-6 items-center rounded-md bg-workflow-block-parma-bg px-1'> |
| | | {!isEnvVar && !isChatVar && <Variable02 className={cn('mr-1 h-3.5 w-3.5 shrink-0 text-text-accent', isException && 'text-text-warning')} />} |
| | | {isEnvVar && <Env className='mr-1 h-3.5 w-3.5 shrink-0 text-util-colors-violet-violet-600' />} |
| | | {isChatVar && <BubbleX className='h-3.5 w-3.5 shrink-0 text-util-colors-teal-teal-700' />} |
| | | <div className='flex items-center px-1 h-6 rounded-md bg-workflow-block-parma-bg'> |
| | | {!isEnvVar && !isChatVar && <Variable02 className={cn('shrink-0 mr-1 w-3.5 h-3.5 text-text-accent', isException && 'text-text-warning')} />} |
| | | {isEnvVar && <Env className='shrink-0 mr-1 w-3.5 h-3.5 text-util-colors-violet-violet-600' />} |
| | | {isChatVar && <BubbleX className='w-3.5 h-3.5 text-util-colors-teal-teal-700' />} |
| | | |
| | | <div |
| | | className={cn( |
| | | 'ml-0.5 shrink-[2] truncate text-xs font-medium text-text-accent', |
| | | 'shrink-0 ml-0.5 truncate text-xs font-medium text-text-accent', |
| | | !notHasValue && 'max-w-[70px]', |
| | | isException && 'text-text-warning', |
| | | )} |
| | |
| | | {variableName} |
| | | </div> |
| | | <div |
| | | className='mx-1 shrink-0 text-xs font-medium text-text-primary' |
| | | className='shrink-0 mx-1 text-xs font-medium text-text-primary' |
| | | title={operatorName} |
| | | > |
| | | {operatorName} |
| | | </div> |
| | | { |
| | | !notHasValue && ( |
| | | <div className='shrink-[3] truncate text-xs text-text-secondary' title={formatValue}>{isSelect ? selectName : formatValue}</div> |
| | | <div className='truncate text-xs text-text-secondary' title={formatValue}>{isSelect ? selectName : formatValue}</div> |
| | | ) |
| | | } |
| | | </div> |