Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump tui-widget-list from 0.7.1 to 0.11.0 #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 12, 2024

Bumps tui-widget-list from 0.7.1 to 0.11.0.

Release notes

Sourced from tui-widget-list's releases.

v0.11.0

  • Introduces ListView, ListBuilder and ListBuildContext as replacement for List, PreRender and PreRenderContext.
  • List, PreRender and PreRenderContext are marked as deprecated.

v0.10.1

Implement Styled for List (contributor: airblast-dev)

v0.10.0

Bump ratatui to v0.27

v0.9.0

  • Introduced PreRender trait as a replacement for ListableWidget.
    • This change is non-breaking
    • It provides a more concise and clearer interface. Migration Guide
  • Update trait implementations to use the new pre_render signature:
fn pre_render(&mut self, context: &PreRenderContext) -> u16 {
    let main_axis_size = // The widgets size in the main axis
if context.is_selected {
    self = // You can modify the selected item here
}
main_axis_size

}

  • Deprecated ListState::selected(). Use the struct field selected instead.
  • Updated examples
  • Add example for long lists

v0.8.3

Fix: Missing base style on truncated items

v0.8.2

  • Truncate last element correctly
  • Add tests

v0.8.1

  • Remove truncate paramter

v0.8.0

  • Add support for horizontal scroll

Breaking Change

The ListableWidgets trait method main_axis_size() was renamed to size with an additional scroll_direction parameter. This parameter can be ignored if the ListItem is only used in vertical or horizontal scroll mode, and not in both.

v0.7.2

... (truncated)

Changelog

Sourced from tui-widget-list's changelog.

0.11.0 - 10 Aug 2024

  • Introduces ListView, ListBuilder and ListBuildContext as replacement for List, PreRender and PreRenderContext.
  • List, PreRender and PreRenderContext are marked as deprecated.
// Builder provides the ListBuildContext.
// Return the widget and the widget's size along its main-axis.
let builder = ListBuilder::new(|context| {
    let mut item = Line::from(format!("Item {0}", context.index));
if context.index % 2 == 0 {
item.style = Style::default().bg(Color::Rgb(28, 28, 32))
} else {
item.style = Style::default().bg(Color::Rgb(0, 0, 0))
};
if context.is_selected {
item.style = Style::default()
.bg(Color::Rgb(255, 153, 0))
.fg(Color::Rgb(28, 28, 32));
};
return (item, 1);
});

// Construct the list. ListView takes in the builder and an item count.
let list = ListView::new(builder, 20);
// Render the list
list.render(area, &mut buf, &mut state);

0.10.1 - 28 July 2024

  • Implement Styled for List (contributor: airblast-dev)

0.10.0 - 27 June 2024

  • Bump ratatui to v0.27

0.9.0 - 11 May 2024

  • Introduced PreRender trait as a replacement for ListableWidget.
  • This change is non-breaking
  • It provides a more concise and clearer interface. Migration Guide
  • Update trait implementations to use the new pre_render signature:
fn pre_render(&mut self, context: &PreRenderContext) -> u16 {
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 12, 2024
@dependabot dependabot bot force-pushed the dependabot/cargo/tui-widget-list-0.11.0 branch 2 times, most recently from 01a33ab to 6ba4ade Compare August 20, 2024 00:42
@dependabot dependabot bot force-pushed the dependabot/cargo/tui-widget-list-0.11.0 branch from 6ba4ade to bee838f Compare September 1, 2024 03:09
Bumps [tui-widget-list](https://github.com/preiter93/tui-widget-list) from 0.7.1 to 0.11.0.
- [Release notes](https://github.com/preiter93/tui-widget-list/releases)
- [Changelog](https://github.com/preiter93/tui-widget-list/blob/main/CHANGELOG.md)
- [Commits](preiter93/tui-widget-list@v0.7.1...v0.11.0)

---
updated-dependencies:
- dependency-name: tui-widget-list
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/tui-widget-list-0.11.0 branch from bee838f to 9b5aebb Compare September 4, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants