( factor: Factor, operator?: ConditionOperator )
| 76 | } |
| 77 | |
| 78 | function getDefaultValue( |
| 79 | factor: Factor, |
| 80 | operator?: ConditionOperator |
| 81 | ): string | number | boolean | Date | string[] | number[] { |
| 82 | if (operator && isCollectionOperator(operator)) return []; |
| 83 | if (isNumberFactor(factor)) return 0; |
| 84 | if (isBooleanFactor(factor)) return true; |
| 85 | if (isStringFactor(factor)) return ""; |
| 86 | if (isTimestampFactor(factor)) return new Date(); |
| 87 | return ""; |
| 88 | } |
| 89 | |
| 90 | const VALUE_MULTI_FIELD_CLASS = |
| 91 | "min-h-9 px-3 py-1 text-sm leading-5 rounded-xs border border-control-border bg-background"; |
no test coverage detected