EdJoPaTo / tui-rs-tree-widget

Tree Widget for tui-rs
https://crates.io/crates/tui-tree-widget
MIT License
64 stars 17 forks source link

chore(cargo): update tui requirement from 0.15 to 0.16 #5

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on tui to permit the latest version.

Release notes

Sourced from tui's releases.

v.0.16.0

Features

  • Update crossterm to 0.20.
  • Add From<Cow<str>> implementation for text::Text (#471).
  • Add option to right or center align the title of a widgets::Block (#462).

Fixes

  • Apply label style in widgets::Gauge and avoid panics because of overflows with long labels (#494).
  • Avoid panics because of overflows with long axis labels in widgets::Chart (#512).
  • Fix computation of column widths in widgets::Table (#514).
  • Fix panics because of invalid offset when input changes between two frames in widgets::List and widgets::Chart (#516).
Changelog

Sourced from tui's changelog.

v0.16.0 - 2021-08-01

Features

  • Update crossterm to 0.20.
  • Add From<Cow<str>> implementation for text::Text (#471).
  • Add option to right or center align the title of a widgets::Block (#462).

Fixes

  • Apply label style in widgets::Gauge and avoid panics because of overflows with long labels (#494).
  • Avoid panics because of overflows with long axis labels in widgets::Chart (#512).
  • Fix computation of column widths in widgets::Table (#514).
  • Fix panics because of invalid offset when input changes between two frames in widgets::List and widgets::Chart (#516).

v0.15.0 - 2021-05-02

Features

  • Update crossterm to 0.19.
  • Update rand to 0.8.
  • Add a read-only view of the terminal state after the draw call (#440).

Fixes

  • Remove compile warning in TestBackend::assert_buffer (#466).

v0.14.0 - 2021-01-01

Breaking changes

New API for the Table widget

The Table widget got a lot of improvements that should make it easier to work with:

  • It should not longer panic when rendered on small areas.
  • Rows are now a collection of Cells, themselves wrapping a Text. This means you can style the entire Table, an entire Row, an entire Cell and rely on the styling capabilities of Text to get full control over the look of your Table.
  • Rows can have multiple lines.
  • The header is now optional and is just another Row always visible at the top.
  • Rows can have a bottom margin.
  • The header alignment is no longer off when an item is selected.

Taking the example of the code in examples/demo/ui.rs, this is what you may have to change:

     let failure_style = Style::default()
         .fg(Color::Red)
         .add_modifier(Modifier::RAPID_BLINK | Modifier::CROSSED_OUT);
-    let header = ["Server", "Location", "Status"];
</tr></table> 

... (truncated)

Commits
  • 7870793 Release v0.16.0
  • a7c21a9 fix(widgets): avoid offset panic in Table and List when input changes
  • 914d54e chore: bump crossterm to 0.20
  • a68e38e fix(table): use Layout in table column widths computation
  • e870e5d feat(layout): add private option to control last chunk expansion
  • 29387e7 Add battleship.rs
  • 8eb6336 refactor(widgets): remove iter::repeat for blank symbols
  • 34a2be6 fix(widgets/chart): remove panics with long axis labels
  • fbd8344 doc(widgets/clear): clarify usage of clear
  • 8da5f74 refactor(examples): show more use case in gauge example
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Looks like tui is up-to-date now, so this is no longer needed.