-
-
-
- {columnName}
-
- {onRemove && (
-
- )}
-
-
-
- {
- const v = e.target.value;
- setLocalDisplayName(v);
- debouncedChange(v);
- }}
- onClick={(e) => e.stopPropagation()}
- />
-
- {onDescriptionChange && (
-
-
- {
- const v = e.target.value;
- setLocalDescription(v);
- debouncedDescriptionChange(v);
- }}
- onClick={(e) => e.stopPropagation()}
- />
-
- )}
- {onFormatChange && (
-
-
-
-
- )}
- {format === ColumnDisplayFormat.Scale && onScaleMaxChange && (
-
-
- {
- setLocalScaleMax(e.target.value);
- const n = parseInt(e.target.value, 10);
- if (!Number.isNaN(n) && n >= 2 && n <= 10) {
- debouncedScaleMax(n);
- }
- }}
- onClick={(e) => e.stopPropagation()}
- />
-
- )}
- {format === ColumnDisplayFormat.NumberWithComparison &&
- onComparisonStatChange && (
-
-
-
-
- )}
- {(format === ColumnDisplayFormat.Percentage ||
- format === ColumnDisplayFormat.Scale) &&
- onBarColorChange && (
-
e.stopPropagation()}
- />
- )}
-
- );
-}