flet-datatable2 0.2.0.dev45__py3-none-any.whl → 0.2.0.dev55__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of flet-datatable2 might be problematic. Click here for more details.
- flet_datatable2/datacolumn2.py +3 -2
- flet_datatable2/datarow2.py +40 -14
- flet_datatable2/datatable2.py +12 -10
- {flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/METADATA +1 -1
- {flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/RECORD +10 -10
- flutter/flet_datatable2/lib/src/datatable2.dart +1 -1
- flutter/flet_datatable2/pubspec.lock +3 -3
- {flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/WHEEL +0 -0
- {flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/licenses/LICENSE +0 -0
- {flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/top_level.txt +0 -0
flet_datatable2/datacolumn2.py
CHANGED
|
@@ -9,7 +9,7 @@ __all__ = ["DataColumn2"]
|
|
|
9
9
|
@ft.control("DataColumn2")
|
|
10
10
|
class DataColumn2(ft.DataColumn):
|
|
11
11
|
"""
|
|
12
|
-
Extends
|
|
12
|
+
Extends [`flet.DataColumn`][flet.DataColumn],
|
|
13
13
|
adding the ability to set relative column size and fixed column width.
|
|
14
14
|
|
|
15
15
|
Meant to be used as an item of [`DataTable2.columns`][(p).].
|
|
@@ -17,7 +17,8 @@ class DataColumn2(ft.DataColumn):
|
|
|
17
17
|
|
|
18
18
|
fixed_width: Optional[ft.Number] = None
|
|
19
19
|
"""
|
|
20
|
-
Defines absolute width of the column in pixels
|
|
20
|
+
Defines absolute width of the column in pixels
|
|
21
|
+
(as opposed to relative [`size`][..] used by default).
|
|
21
22
|
"""
|
|
22
23
|
|
|
23
24
|
size: Optional[DataColumnSize] = DataColumnSize.S
|
flet_datatable2/datarow2.py
CHANGED
|
@@ -8,51 +8,77 @@ __all__ = ["DataRow2"]
|
|
|
8
8
|
@ft.control("DataRow2")
|
|
9
9
|
class DataRow2(ft.DataRow):
|
|
10
10
|
"""
|
|
11
|
-
Extends [`DataRow`]
|
|
11
|
+
Extends [`flet.DataRow`][flet.DataRow], adding row-level `tap` events.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
which are not available in `DataCell`s and can be useful in
|
|
13
|
+
There are also [`on_secondary_tap`][(c).] and [`on_secondary_tap_down`][(c).],
|
|
14
|
+
which are not available in [`DataCell`][flet.DataCell]s and can be useful in
|
|
15
|
+
desktop settings to handle right-click actions.
|
|
15
16
|
"""
|
|
16
17
|
|
|
17
18
|
decoration: Optional[ft.BoxDecoration] = None
|
|
18
19
|
"""
|
|
19
|
-
Decoration to be applied to
|
|
20
|
+
Decoration to be applied to this row.
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
Note:
|
|
23
|
+
If provided, [`DataTable2.divider_thickness`][(p).] has no effect.
|
|
22
24
|
"""
|
|
23
25
|
|
|
24
26
|
specific_row_height: Optional[ft.Number] = None
|
|
25
27
|
"""
|
|
26
28
|
Specific row height.
|
|
27
29
|
|
|
28
|
-
Falls back to `data_row_height` if not set.
|
|
30
|
+
Falls back to [`DataTable2.data_row_height`][(p).] if not set.
|
|
29
31
|
"""
|
|
30
32
|
|
|
31
|
-
on_double_tap: ft.
|
|
33
|
+
on_double_tap: Optional[ft.ControlEventHandler["DataRow2"]] = None
|
|
32
34
|
"""
|
|
33
35
|
Fires when the row is double-tapped.
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
Note:
|
|
38
|
+
Won't be called if tapped cell has any tap event handlers
|
|
39
|
+
([`on_tap`][flet.DataCell.on_tap],
|
|
40
|
+
[`on_double_tap`][flet.DataCell.on_double_tap],
|
|
41
|
+
[`on_long_press`][flet.DataCell.on_long_press],
|
|
42
|
+
[`on_tap_cancel`][flet.DataCell.on_tap_cancel],
|
|
43
|
+
[`on_tap_down`][flet.DataCell.on_tap_down]) set.
|
|
36
44
|
"""
|
|
37
45
|
|
|
38
|
-
on_secondary_tap: ft.
|
|
46
|
+
on_secondary_tap: Optional[ft.ControlEventHandler["DataRow2"]] = None
|
|
39
47
|
"""
|
|
40
48
|
Fires when the row is right-clicked (secondary tap).
|
|
41
49
|
|
|
42
|
-
|
|
50
|
+
Note:
|
|
51
|
+
Won't be called if tapped cell has any tap event handlers
|
|
52
|
+
([`on_tap`][flet.DataCell.on_tap],
|
|
53
|
+
[`on_double_tap`][flet.DataCell.on_double_tap],
|
|
54
|
+
[`on_long_press`][flet.DataCell.on_long_press],
|
|
55
|
+
[`on_tap_cancel`][flet.DataCell.on_tap_cancel],
|
|
56
|
+
[`on_tap_down`][flet.DataCell.on_tap_down]) set.
|
|
43
57
|
"""
|
|
44
58
|
|
|
45
|
-
on_secondary_tap_down: ft.
|
|
59
|
+
on_secondary_tap_down: Optional[ft.ControlEventHandler["DataRow2"]] = None
|
|
46
60
|
"""
|
|
47
61
|
Fires when the row is right-clicked (secondary tap down).
|
|
48
62
|
|
|
49
|
-
|
|
63
|
+
Note:
|
|
64
|
+
Won't be called if tapped cell has any tap event handlers
|
|
65
|
+
([`on_tap`][flet.DataCell.on_tap],
|
|
66
|
+
[`on_double_tap`][flet.DataCell.on_double_tap],
|
|
67
|
+
[`on_long_press`][flet.DataCell.on_long_press],
|
|
68
|
+
[`on_tap_cancel`][flet.DataCell.on_tap_cancel],
|
|
69
|
+
[`on_tap_down`][flet.DataCell.on_tap_down]) set.
|
|
50
70
|
"""
|
|
51
71
|
|
|
52
|
-
on_tap: ft.
|
|
72
|
+
on_tap: Optional[ft.EventHandler[ft.TapEvent["DataRow2"]]] = None
|
|
53
73
|
"""
|
|
54
74
|
Fires when the row is tapped.
|
|
55
75
|
|
|
56
|
-
|
|
76
|
+
Note:
|
|
77
|
+
Won't be called if tapped cell has any tap event handlers
|
|
78
|
+
([`on_tap`][flet.DataCell.on_tap],
|
|
79
|
+
[`on_double_tap`][flet.DataCell.on_double_tap],
|
|
80
|
+
[`on_long_press`][flet.DataCell.on_long_press],
|
|
81
|
+
[`on_tap_cancel`][flet.DataCell.on_tap_cancel],
|
|
82
|
+
[`on_tap_down`][flet.DataCell.on_tap_down]) set.
|
|
57
83
|
"""
|
|
58
84
|
|
flet_datatable2/datatable2.py
CHANGED
|
@@ -12,11 +12,18 @@ __all__ = ["DataTable2"]
|
|
|
12
12
|
@ft.control("DataTable2")
|
|
13
13
|
class DataTable2(ft.DataTable):
|
|
14
14
|
"""
|
|
15
|
-
Extends [`DataTable`]
|
|
15
|
+
Extends [`flet.DataTable`][flet.DataTable].
|
|
16
16
|
|
|
17
17
|
Provides sticky header row, scrollable data rows,
|
|
18
18
|
and additional layout flexibility with [`DataColumn2`][(p).]
|
|
19
19
|
and [`DataRow2`][(p).].
|
|
20
|
+
|
|
21
|
+
Note:
|
|
22
|
+
`DataTable2` doesn't support
|
|
23
|
+
[`flet.DataTable.data_row_min_height`][flet.DataTable.data_row_min_height]
|
|
24
|
+
and [`flet.DataTable.data_row_max_height`][flet.DataTable.data_row_max_height]
|
|
25
|
+
properties present in the parent [`flet.DataTable`][flet.DataTable].
|
|
26
|
+
Use [`data_row_height`][(c).] instead.
|
|
20
27
|
"""
|
|
21
28
|
|
|
22
29
|
columns: list[Union[DataColumn2, ft.DataColumn]]
|
|
@@ -117,7 +124,7 @@ class DataTable2(ft.DataTable):
|
|
|
117
124
|
"""
|
|
118
125
|
|
|
119
126
|
checkbox_alignment: ft.Alignment = field(
|
|
120
|
-
default_factory=lambda: ft.Alignment.
|
|
127
|
+
default_factory=lambda: ft.Alignment.CENTER
|
|
121
128
|
)
|
|
122
129
|
"""
|
|
123
130
|
Alignment of the checkbox.
|
|
@@ -126,13 +133,8 @@ class DataTable2(ft.DataTable):
|
|
|
126
133
|
data_row_height: Optional[ft.Number] = None
|
|
127
134
|
"""
|
|
128
135
|
Height of each data row.
|
|
129
|
-
|
|
130
|
-
Note:
|
|
131
|
-
`DataTable2` doesn't support
|
|
132
|
-
`DataTable.data_row_min_height` and `DataTable.data_row_max_height`.
|
|
133
136
|
"""
|
|
134
137
|
|
|
135
|
-
# present in parent but of no use in DataTable2
|
|
136
|
-
data_row_min_height: None = field(init=False, repr=False, compare=False)
|
|
137
|
-
data_row_max_height: None = field(init=False, repr=False, compare=False)
|
|
138
|
-
|
|
138
|
+
# present in parent (DataTable) but of no use in DataTable2
|
|
139
|
+
data_row_min_height: None = field(init=False, repr=False, compare=False, metadata={"skip": True})
|
|
140
|
+
data_row_max_height: None = field(init=False, repr=False, compare=False, metadata={"skip": True})
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
flet_datatable2/__init__.py,sha256=NDq2pyquG9op584VRYqv7Zbqbmoq0YPBNcQScpIPw6o,137
|
|
2
|
-
flet_datatable2/datacolumn2.py,sha256=
|
|
3
|
-
flet_datatable2/datarow2.py,sha256=
|
|
4
|
-
flet_datatable2/datatable2.py,sha256=
|
|
2
|
+
flet_datatable2/datacolumn2.py,sha256=1zuPArLD7PRmUPBW8M7TeIoP9WnEzEndCo0n2PkfeCE,762
|
|
3
|
+
flet_datatable2/datarow2.py,sha256=6P6M3q6JuFy3oJ8qaYRDK5ZQwuDHWoeo-k4i_QVNr5Q,2773
|
|
4
|
+
flet_datatable2/datatable2.py,sha256=fvviA0ZWH8Yfhy4J7Argys_0tIDpHFV11NBUDar0GZY,3595
|
|
5
5
|
flet_datatable2/types.py,sha256=gH_Ci8l5l79MXfdeCEwLt7TtMw4_nwTMCQggGlpNZ-w,466
|
|
6
|
-
flet_datatable2-0.2.0.
|
|
6
|
+
flet_datatable2-0.2.0.dev55.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
7
7
|
flutter/flet_datatable2/CHANGELOG.md,sha256=e6Zjy4gzJ4BEtHpGmHZdbyAJxOs9Q-y8c2s5W2TH6ZA,44
|
|
8
8
|
flutter/flet_datatable2/LICENSE,sha256=Qi4N6OMnX-v1xBpcz4kfaPFrxA4bXcom5QkTswfveU4,29
|
|
9
9
|
flutter/flet_datatable2/README.md,sha256=cJI_uMYdA7FDctTMhnkg1l6Twg_e2VjVuhtOagDXXv0,111
|
|
10
|
-
flutter/flet_datatable2/pubspec.lock,sha256=
|
|
10
|
+
flutter/flet_datatable2/pubspec.lock,sha256=Jj03mWBWsvSnl3Zxdn80qGy0nAB1YaSZsdr4Vk-lV6E,23058
|
|
11
11
|
flutter/flet_datatable2/pubspec.yaml,sha256=964qzuIDMhWn-NfG7lBowr2uDV6qBpMaxtoKw7waX3o,535
|
|
12
12
|
flutter/flet_datatable2/lib/flet_datatable2.dart,sha256=apYw8E_Zc6NUr_Kee1-WUgeV59ZYdCYeQO0A0FGPcX4,148
|
|
13
13
|
flutter/flet_datatable2/lib/src/data_sources.dart,sha256=sUYTmguAwQUgcYVaCIAyiul4-rtdCEndSRyKubYw0Zg,15005
|
|
14
|
-
flutter/flet_datatable2/lib/src/datatable2.dart,sha256=
|
|
14
|
+
flutter/flet_datatable2/lib/src/datatable2.dart,sha256=GBB_h2y28r3VvdYH3Iq-f2yALvYuF0J0TbaX6-AqD1A,8679
|
|
15
15
|
flutter/flet_datatable2/lib/src/extension.dart,sha256=xkoDJwnWjNfxVwayoEutFOV_jdsSyc1vanfTn9yiUjM,367
|
|
16
16
|
flutter/flet_datatable2/lib/src/utils/datatable.dart,sha256=nunujzsk3QyQVOH-UY56y9LkVDSwxxfphxbhVUGbIQI,337
|
|
17
|
-
flet_datatable2-0.2.0.
|
|
18
|
-
flet_datatable2-0.2.0.
|
|
19
|
-
flet_datatable2-0.2.0.
|
|
20
|
-
flet_datatable2-0.2.0.
|
|
17
|
+
flet_datatable2-0.2.0.dev55.dist-info/METADATA,sha256=viizpRDuh2N6vNkW3UzXGtZdEqP-hcSGMF3XkrzJckc,2046
|
|
18
|
+
flet_datatable2-0.2.0.dev55.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
flet_datatable2-0.2.0.dev55.dist-info/top_level.txt,sha256=ayOiAgA5C3vuE20WBGkmr5PRn7Woh7s4NUMwVVWrxQQ,24
|
|
20
|
+
flet_datatable2-0.2.0.dev55.dist-info/RECORD,,
|
|
@@ -87,7 +87,7 @@ class _DataTable2ControlState extends State<DataTable2Control> {
|
|
|
87
87
|
sortArrowAnimationDuration: widget.control.getDuration(
|
|
88
88
|
"sort_arrow_animation_duration", Duration(microseconds: 150))!,
|
|
89
89
|
checkboxAlignment:
|
|
90
|
-
widget.control.getAlignment("
|
|
90
|
+
widget.control.getAlignment("checkbox_alignment", Alignment.center)!,
|
|
91
91
|
headingCheckboxTheme: widget.control
|
|
92
92
|
.getCheckboxTheme("heading_checkbox_theme", Theme.of(context)),
|
|
93
93
|
datarowCheckboxTheme: widget.control
|
|
@@ -134,7 +134,7 @@ packages:
|
|
|
134
134
|
description:
|
|
135
135
|
path: "packages/flet"
|
|
136
136
|
ref: main
|
|
137
|
-
resolved-ref:
|
|
137
|
+
resolved-ref: cf8823c5d766ea7866480986aa3ee871f4091e78
|
|
138
138
|
url: "https://github.com/flet-dev/flet.git"
|
|
139
139
|
source: git
|
|
140
140
|
version: "0.70.0"
|
|
@@ -743,10 +743,10 @@ packages:
|
|
|
743
743
|
dependency: transitive
|
|
744
744
|
description:
|
|
745
745
|
name: window_manager
|
|
746
|
-
sha256: "
|
|
746
|
+
sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
|
|
747
747
|
url: "https://pub.dev"
|
|
748
748
|
source: hosted
|
|
749
|
-
version: "0.5.
|
|
749
|
+
version: "0.5.1"
|
|
750
750
|
window_to_front:
|
|
751
751
|
dependency: transitive
|
|
752
752
|
description:
|
|
File without changes
|
{flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{flet_datatable2-0.2.0.dev45.dist-info → flet_datatable2-0.2.0.dev55.dist-info}/top_level.txt
RENAMED
|
File without changes
|