grafana/packages/grafana-schema
Kyle Cunningham 8aa1bbe27c
Table Panel: Enable text wrapping (#86895)
* Calculate row height

* Move things around

* Update getItemSize to use text bounding box

* Update types

* Cleanups and reminders

* Calculate line height

* Update line height calculation

* Remove debugging

* Add cell option editing

* Prettier

* Use field configured for text wrapping

* Add TODO

* Make sure column configuration is correct

* Update height heuristic and hover behavior

* Disable overflow on hover with text wrapping

* Update heuristic

* Clean things up

* Color background cell options

* Fix tests

* Prettier

* React deps

* Remove old hook dep

* Fix type errors

* Update label and description for editor

* Fix non-wrapped case

* Make sure color background works

* Prettier

* Address review comments

* fix prettier

* Add heuristic for field sizing

* Fix up logic

* Prettier

* Fix test

* Oh prettier 🙈

* Don't wrap text on non-string fields

* Add wrapping to color text cell

* Prettier

* Fix option not showing for auto cell type

* Move longest field guessing into function

* Clean things up

* Add tests

* Make sure text won't flake

* Prettier

* Remove spurious import

* Ignore any in this case

* Add alpha label

* Prettier

* Fix typecheck

* Fix crash when sampling when there are undefined records

* Update heuristic to take into account long strings

* Prettier

* Update scale factors

* Update field index selection

* Prettier

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-06-07 23:15:33 +07:00
..
src Table Panel: Enable text wrapping (#86895) 2024-06-07 23:15:33 +07:00
.eslintrc Revert "Update dependency rollup to v3 (#58252)" (#63790) 2023-02-27 07:01:24 -05:00
CHANGELOG.md Schema: create a new schema package for basic models (#38409) 2021-08-23 13:03:41 -07:00
LICENSE_APACHE2 Schema: create a new schema package for basic models (#38409) 2021-08-23 13:03:41 -07:00
package.json Update dependency tslib to v2.6.3 2024-06-05 10:08:51 +00:00
README.md Schema: create a new schema package for basic models (#38409) 2021-08-23 13:03:41 -07:00
rollup.config.ts grafana/schema: Make composable types part of the package (#69678) 2023-06-08 09:44:26 -07:00
tsconfig.build.json Kindsys: Rename mudball to common schemas, allow multiple input cue files (#61703) 2023-01-18 17:40:22 +00:00
tsconfig.json grafana/schema: Make composable types part of the package (#69678) 2023-06-08 09:44:26 -07:00

Grafana Schema Library

@grafana/schema is currently in ALPHA.

This package holds the definitions for objects that should be stored in JSON configuration files