mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* WIP * Remove formula conversion related changes * Move the file input click guard to formatted text component * Move format types into their own components * Use a shared markdown-it instance * Move the formatter into data explorer * Move minification logic into BaserowFormulaMinified * Renderer should own the root element * Ensure long choice names are truncated * Ensure line height doesn't grow for paragraphs * Add tests * Add changelog * Add specific tests for choice element
12 lines
482 B
JavaScript
12 lines
482 B
JavaScript
export const BASEROW_FORMULA_MODES = ['raw', 'simple', 'advanced']
|
|
|
|
// The formats a surface can render the resolved value of a formula in. Plain
|
|
// is the implicit default: a formula object without a `format` key is plain,
|
|
// and the key is never set to plain.
|
|
export const BASEROW_FORMULA_FORMAT_PLAIN = 'plain'
|
|
export const BASEROW_FORMULA_FORMAT_MARKDOWN = 'markdown'
|
|
export const BASEROW_FORMULA_FORMATS = [
|
|
BASEROW_FORMULA_FORMAT_PLAIN,
|
|
BASEROW_FORMULA_FORMAT_MARKDOWN,
|
|
]
|