import { EvaluatedString } from '../../../shared'; import { TranslateKey } from '../../../shared/models'; import { ComparisonOperator } from './types-helper'; export type BaseFieldConfig = { label: TranslateKey; fieldKey: string; controlKey?: string; values?: unknown; prefix?: string; order?: number; operator?: ComparisonOperator; valueType: 'valueObject' | 'property'; visible?: boolean; roles?: string[]; permission?: string; /** JEXL expression; when false, the field is hidden and its value is cleared. */ condition?: EvaluatedString; /** JEXL expression; when true, the field control is disabled. */ disabled?: EvaluatedString; /** JEXL expression; when true, the field value is cleared (same evaluator context as `condition`). */ clearValue?: EvaluatedString; /** Extra CSS classes on the field wrapper (predicate / aggregation / custom host). */ styleClass?: string; labelTemplate?: EvaluatedString; };