Skip to content

Commit 23ca79b

Browse files
committed
started porting to leptos 0.7
1 parent ce769c6 commit 23ca79b

44 files changed

Lines changed: 286 additions & 228 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.14.0-beta1] - 2024-09-06
4+
5+
### Breaking Change 🛠️
6+
7+
- Updated dependency leptos-use to version 0.14.0-beta and leptos 0.7.0-beta
8+
39
## [0.13.0] - 2024-09-05
410

511
### Breaking Change 🛠️

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "leptos-struct-table"
33
version = "0.13.0"
44
edition = "2021"
55
authors = ["Marc-Stefan Cassola"]
6-
categories = ["gui", "web-programming"]
6+
categories = ["gui", "web-programming", "wasm"]
77
description = "Generate a complete batteries included leptos data table component from a struct definition."
88
exclude = ["examples/", "tests/"]
99
keywords = ["leptos", "table", "data-sheet", "data-grid"]
@@ -12,11 +12,12 @@ readme = "README.md"
1212
repository = "https://github.com/Synphonyte/leptos-struct-table"
1313

1414
[dependencies]
15-
leptos = { version = "0.6" }
15+
leptos = { version = "0.7.0-beta" }
1616
leptos-struct-table-macro = { version = "0.11.2" }
17-
leptos-use = "0.13"
17+
leptos-use = "0.14.0-beta"
1818
rust_decimal = { version = "1.35", optional = true }
1919
chrono = { version = "0.4", optional = true }
20+
send_wrapper = "0.6"
2021
serde = "1"
2122
time = { version = "0.3", optional = true, features = ["formatting"] }
2223
uuid = { version = "1", optional = true, features = [] }

README.md

Lines changed: 91 additions & 43 deletions
Large diffs are not rendered by default.

examples/bootstrap/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use ::chrono::NaiveDate;
2-
use leptos::*;
2+
use leptos::prelude::*;
33
use leptos_struct_table::*;
44

55
// This generates the component BookTable

examples/custom_renderers_svg/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mod renderers;
22

33
use renderers::*;
44

5-
use leptos::*;
5+
use leptos::prelude::*;
66
use leptos_struct_table::*;
77

88
// This generates the component BookTable

examples/custom_renderers_svg/src/renderers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use leptos::html::AnyElement;
2+
use leptos::prelude::*;
23
use leptos::svg::G;
3-
use leptos::*;
44
use leptos_struct_table::*;
55

66
const ROW_HEIGHT: usize = 30;

examples/custom_row_renderer/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![deny(missing_docs)]
22
//! Simple showcase example.
33
4-
use ::uuid::Uuid;
54
use ::chrono::NaiveDate;
6-
use leptos::*;
5+
use ::uuid::Uuid;
6+
use leptos::prelude::*;
77
use leptos_struct_table::*;
88

99
/// Custom row renderer that adds a link to the end of the row

examples/custom_type/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
use ::chrono::NaiveDate;
55
use derive_more::{Deref, DerefMut};
6-
use leptos::*;
6+
use leptos::prelude::*;
77
use leptos_struct_table::*;
88
use std::rc::Rc;
99

examples/editable/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mod tailwind;
33

44
use crate::renderer::*;
55
use ::chrono::NaiveDate;
6-
use leptos::*;
6+
use leptos::prelude::*;
77
use leptos_struct_table::*;
88
use std::ops::Range;
99
use tailwind::TailwindClassesPreset;
@@ -35,7 +35,7 @@ fn main() {
3535
console_error_panic_hook::set_once();
3636

3737
mount_to_body(|| {
38-
let rows = create_rw_signal(vec![
38+
let rows = RwSignal::new(vec![
3939
Book {
4040
id: 1,
4141
title: "The Great Gatsby".to_string(),

examples/editable/src/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use leptos::*;
1+
use leptos::prelude::*;
22

33
/// A renderer that shows an <input> tag and emits the `on_change` event when the <input> is changed.
44
#[component]

0 commit comments

Comments
 (0)