ex4nicegui 0.6.6__py3-none-any.whl → 0.6.7__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.
- ex4nicegui/libs/gsap/.DS_Store +0 -0
- ex4nicegui/libs/gsap/gsap.mjs +6 -0
- ex4nicegui/reactive/EChartsComponent/ECharts.js +19 -9
- ex4nicegui/reactive/officials/aggrid.py +3 -3
- ex4nicegui/reactive/officials/base.py +10 -0
- ex4nicegui/reactive/officials/button.py +4 -4
- ex4nicegui/reactive/officials/checkbox.py +3 -3
- ex4nicegui/reactive/officials/circular_progress.py +3 -3
- ex4nicegui/reactive/officials/color_picker.py +4 -4
- ex4nicegui/reactive/officials/column.py +3 -2
- ex4nicegui/reactive/officials/date.py +4 -9
- ex4nicegui/reactive/officials/echarts.py +30 -12
- ex4nicegui/reactive/officials/expansion.py +3 -2
- ex4nicegui/reactive/officials/icon.py +4 -4
- ex4nicegui/reactive/officials/image.py +3 -3
- ex4nicegui/reactive/officials/input.py +4 -4
- ex4nicegui/reactive/officials/knob.py +3 -3
- ex4nicegui/reactive/officials/label.py +4 -3
- ex4nicegui/reactive/officials/linear_progress.py +4 -4
- ex4nicegui/reactive/officials/number.py +22 -4
- ex4nicegui/reactive/officials/radio.py +4 -4
- ex4nicegui/reactive/officials/select.py +4 -4
- ex4nicegui/reactive/officials/slider.py +3 -3
- ex4nicegui/reactive/officials/switch.py +3 -3
- ex4nicegui/reactive/officials/tab_panels.py +14 -2
- ex4nicegui/reactive/officials/table.py +5 -4
- ex4nicegui/reactive/officials/tabs.py +3 -2
- ex4nicegui/reactive/officials/textarea.py +3 -3
- ex4nicegui/reactive/q_pagination.py +3 -2
- {ex4nicegui-0.6.6.dist-info → ex4nicegui-0.6.7.dist-info}/METADATA +1245 -1124
- {ex4nicegui-0.6.6.dist-info → ex4nicegui-0.6.7.dist-info}/RECORD +61 -60
- {ex4nicegui-0.6.6.dist-info → ex4nicegui-0.6.7.dist-info}/WHEEL +1 -2
- ex4nicegui-0.6.6.dist-info/top_level.txt +0 -1
- {ex4nicegui-0.6.6.dist-info → ex4nicegui-0.6.7.dist-info}/LICENSE +0 -0
|
@@ -12,7 +12,7 @@ from ex4nicegui.reactive.utils import ParameterClassifier
|
|
|
12
12
|
from ex4nicegui.utils.apiEffect import ui_effect
|
|
13
13
|
|
|
14
14
|
from ex4nicegui.utils.signals import (
|
|
15
|
-
|
|
15
|
+
TGetterOrReadonlyRef,
|
|
16
16
|
_TMaybeRef as TMaybeRef,
|
|
17
17
|
to_value,
|
|
18
18
|
)
|
|
@@ -53,7 +53,7 @@ class RadioBindableUi(BindableUi[ui.radio]):
|
|
|
53
53
|
def value(self):
|
|
54
54
|
return self.element.value
|
|
55
55
|
|
|
56
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
56
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
57
57
|
if prop == "value":
|
|
58
58
|
return self.bind_value(ref_ui)
|
|
59
59
|
|
|
@@ -62,14 +62,14 @@ class RadioBindableUi(BindableUi[ui.radio]):
|
|
|
62
62
|
|
|
63
63
|
return super().bind_prop(prop, ref_ui)
|
|
64
64
|
|
|
65
|
-
def bind_options(self, ref_ui:
|
|
65
|
+
def bind_options(self, ref_ui: TGetterOrReadonlyRef):
|
|
66
66
|
@ui_effect
|
|
67
67
|
def _():
|
|
68
68
|
self.element.set_options(to_value(ref_ui))
|
|
69
69
|
|
|
70
70
|
return self
|
|
71
71
|
|
|
72
|
-
def bind_value(self, ref_ui:
|
|
72
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef):
|
|
73
73
|
@ui_effect
|
|
74
74
|
def _():
|
|
75
75
|
cast(ValueElement, self.element).set_value(to_value(ref_ui))
|
|
@@ -12,7 +12,7 @@ from ex4nicegui.reactive.utils import ParameterClassifier
|
|
|
12
12
|
from ex4nicegui.utils.apiEffect import ui_effect
|
|
13
13
|
|
|
14
14
|
from ex4nicegui.utils.signals import (
|
|
15
|
-
|
|
15
|
+
TGetterOrReadonlyRef,
|
|
16
16
|
_TMaybeRef as TMaybeRef,
|
|
17
17
|
to_value,
|
|
18
18
|
)
|
|
@@ -75,7 +75,7 @@ class SelectBindableUi(BindableUi[ui.select]):
|
|
|
75
75
|
def value(self):
|
|
76
76
|
return self.element.value
|
|
77
77
|
|
|
78
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
78
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
79
79
|
if prop == "value":
|
|
80
80
|
return self.bind_value(ref_ui)
|
|
81
81
|
|
|
@@ -84,14 +84,14 @@ class SelectBindableUi(BindableUi[ui.select]):
|
|
|
84
84
|
|
|
85
85
|
return super().bind_prop(prop, ref_ui)
|
|
86
86
|
|
|
87
|
-
def bind_options(self, ref_ui:
|
|
87
|
+
def bind_options(self, ref_ui: TGetterOrReadonlyRef):
|
|
88
88
|
@ui_effect()
|
|
89
89
|
def _():
|
|
90
90
|
self.element.set_options(to_value(ref_ui))
|
|
91
91
|
|
|
92
92
|
return self
|
|
93
93
|
|
|
94
|
-
def bind_value(self, ref_ui:
|
|
94
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef):
|
|
95
95
|
@ui_effect()
|
|
96
96
|
def _():
|
|
97
97
|
cast(ValueElement, self.element).set_value(to_value(ref_ui) or None)
|
|
@@ -9,7 +9,7 @@ from ex4nicegui.reactive.utils import ParameterClassifier
|
|
|
9
9
|
from ex4nicegui.utils.apiEffect import ui_effect
|
|
10
10
|
|
|
11
11
|
from ex4nicegui.utils.signals import (
|
|
12
|
-
|
|
12
|
+
TGetterOrReadonlyRef,
|
|
13
13
|
Ref,
|
|
14
14
|
_TMaybeRef as TMaybeRef,
|
|
15
15
|
is_setter_ref,
|
|
@@ -60,13 +60,13 @@ class SliderBindableUi(
|
|
|
60
60
|
def value(self):
|
|
61
61
|
return self.element.value
|
|
62
62
|
|
|
63
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
63
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
64
64
|
if prop == "value":
|
|
65
65
|
return self.bind_value(ref_ui)
|
|
66
66
|
|
|
67
67
|
return super().bind_prop(prop, ref_ui)
|
|
68
68
|
|
|
69
|
-
def bind_value(self, ref_ui:
|
|
69
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef[float]):
|
|
70
70
|
@ui_effect
|
|
71
71
|
def _():
|
|
72
72
|
self.element.set_value(to_value(ref_ui))
|
|
@@ -8,7 +8,7 @@ from ex4nicegui.reactive.utils import ParameterClassifier
|
|
|
8
8
|
from ex4nicegui.utils.apiEffect import ui_effect
|
|
9
9
|
|
|
10
10
|
from ex4nicegui.utils.signals import (
|
|
11
|
-
|
|
11
|
+
TGetterOrReadonlyRef,
|
|
12
12
|
_TMaybeRef as TMaybeRef,
|
|
13
13
|
to_value,
|
|
14
14
|
)
|
|
@@ -49,13 +49,13 @@ class SwitchBindableUi(BindableUi[ui.switch]):
|
|
|
49
49
|
def value(self):
|
|
50
50
|
return self.element.value
|
|
51
51
|
|
|
52
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
52
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
53
53
|
if prop == "value":
|
|
54
54
|
return self.bind_value(ref_ui)
|
|
55
55
|
|
|
56
56
|
return super().bind_prop(prop, ref_ui)
|
|
57
57
|
|
|
58
|
-
def bind_value(self, ref_ui:
|
|
58
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef[bool]):
|
|
59
59
|
@ui_effect
|
|
60
60
|
def _():
|
|
61
61
|
self.element.set_value(to_value(ref_ui))
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from typing import Any, Callable, Optional
|
|
2
2
|
from ex4nicegui.reactive.utils import ParameterClassifier
|
|
3
3
|
from ex4nicegui.utils.signals import (
|
|
4
|
+
TGetterOrReadonlyRef,
|
|
4
5
|
to_value,
|
|
5
6
|
_TMaybeRef as TMaybeRef,
|
|
6
7
|
)
|
|
@@ -17,6 +18,17 @@ class TabPanelsBindableUi(BindableUi[ui.tab_panels]):
|
|
|
17
18
|
animated: TMaybeRef[bool] = True,
|
|
18
19
|
keep_alive: TMaybeRef[bool] = True,
|
|
19
20
|
) -> None:
|
|
21
|
+
"""Tab Panels
|
|
22
|
+
|
|
23
|
+
@see - https://github.com/CrystalWindSnake/ex4nicegui/blob/main/README.en.md#tab_panels
|
|
24
|
+
@中文文档 - https://gitee.com/carson_add/ex4nicegui/tree/main/#tab_panels
|
|
25
|
+
|
|
26
|
+
Args:
|
|
27
|
+
value (TMaybeRef[str], optional): The value of the tab panel. Defaults to None.
|
|
28
|
+
on_change (Callable[..., Any], optional): The callback function when the value of the tab panel changes. Defaults to None.
|
|
29
|
+
animated (TMaybeRef[bool], optional): Whether to animate the tab panel. Defaults to True.
|
|
30
|
+
keep_alive (TMaybeRef[bool], optional): Whether to keep the tab panel alive. Defaults to True.
|
|
31
|
+
"""
|
|
20
32
|
pc = ParameterClassifier(
|
|
21
33
|
locals(),
|
|
22
34
|
maybeRefs=["value", "animated", "keep_alive"],
|
|
@@ -34,13 +46,13 @@ class TabPanelsBindableUi(BindableUi[ui.tab_panels]):
|
|
|
34
46
|
def value(self):
|
|
35
47
|
return self.element.value
|
|
36
48
|
|
|
37
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
49
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
38
50
|
if prop == "value":
|
|
39
51
|
return self.bind_value(ref_ui)
|
|
40
52
|
|
|
41
53
|
return super().bind_prop(prop, ref_ui)
|
|
42
54
|
|
|
43
|
-
def bind_value(self, ref_ui:
|
|
55
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef):
|
|
44
56
|
@self._ui_effect
|
|
45
57
|
def _():
|
|
46
58
|
self.element.set_value(to_value(ref_ui))
|
|
@@ -9,6 +9,7 @@ from typing_extensions import Literal
|
|
|
9
9
|
from ex4nicegui.reactive.utils import ParameterClassifier, dataframe2col_str
|
|
10
10
|
import ex4nicegui.utils.common as utils_common
|
|
11
11
|
from ex4nicegui.utils.signals import (
|
|
12
|
+
TGetterOrReadonlyRef,
|
|
12
13
|
ReadonlyRef,
|
|
13
14
|
is_ref,
|
|
14
15
|
ref_computed,
|
|
@@ -143,7 +144,7 @@ class TableBindableUi(BindableUi[ui.table]):
|
|
|
143
144
|
]
|
|
144
145
|
return cls(cols, rows, **other_kws)
|
|
145
146
|
|
|
146
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
147
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
147
148
|
if prop == "dataframe":
|
|
148
149
|
return self.bind_dataframe(ref_ui)
|
|
149
150
|
|
|
@@ -155,7 +156,7 @@ class TableBindableUi(BindableUi[ui.table]):
|
|
|
155
156
|
|
|
156
157
|
return super().bind_prop(prop, ref_ui)
|
|
157
158
|
|
|
158
|
-
def bind_dataframe(self, ref_df:
|
|
159
|
+
def bind_dataframe(self, ref_df: TGetterOrReadonlyRef):
|
|
159
160
|
@ref_computed
|
|
160
161
|
def cp_converted_df():
|
|
161
162
|
df = ref_df.value
|
|
@@ -180,7 +181,7 @@ class TableBindableUi(BindableUi[ui.table]):
|
|
|
180
181
|
|
|
181
182
|
return self
|
|
182
183
|
|
|
183
|
-
def bind_rows(self, ref_ui:
|
|
184
|
+
def bind_rows(self, ref_ui: TGetterOrReadonlyRef[List[Dict]]):
|
|
184
185
|
@on(ref_ui, deep=True)
|
|
185
186
|
def _():
|
|
186
187
|
ele = self.element
|
|
@@ -189,7 +190,7 @@ class TableBindableUi(BindableUi[ui.table]):
|
|
|
189
190
|
|
|
190
191
|
return self
|
|
191
192
|
|
|
192
|
-
def bind_columns(self, ref_ui:
|
|
193
|
+
def bind_columns(self, ref_ui: TGetterOrReadonlyRef[List[Dict]]):
|
|
193
194
|
@on(ref_ui, deep=True)
|
|
194
195
|
def _():
|
|
195
196
|
ele = self.element
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from typing import Any, Callable, Optional
|
|
2
2
|
from ex4nicegui.reactive.utils import ParameterClassifier
|
|
3
3
|
from ex4nicegui.utils.signals import (
|
|
4
|
+
TGetterOrReadonlyRef,
|
|
4
5
|
to_value,
|
|
5
6
|
_TMaybeRef as TMaybeRef,
|
|
6
7
|
)
|
|
@@ -31,13 +32,13 @@ class TabsBindableUi(BindableUi[ui.tabs]):
|
|
|
31
32
|
def value(self):
|
|
32
33
|
return self.element.value
|
|
33
34
|
|
|
34
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
35
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
35
36
|
if prop == "value":
|
|
36
37
|
return self.bind_value(ref_ui)
|
|
37
38
|
|
|
38
39
|
return super().bind_prop(prop, ref_ui)
|
|
39
40
|
|
|
40
|
-
def bind_value(self, ref_ui:
|
|
41
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef):
|
|
41
42
|
@self._ui_effect
|
|
42
43
|
def _():
|
|
43
44
|
self.element.set_value(to_value(ref_ui))
|
|
@@ -8,7 +8,7 @@ from typing import (
|
|
|
8
8
|
from ex4nicegui.reactive.utils import ParameterClassifier
|
|
9
9
|
from ex4nicegui.utils.apiEffect import ui_effect
|
|
10
10
|
from ex4nicegui.utils.signals import (
|
|
11
|
-
|
|
11
|
+
TGetterOrReadonlyRef,
|
|
12
12
|
Ref,
|
|
13
13
|
_TMaybeRef as TMaybeRef,
|
|
14
14
|
effect,
|
|
@@ -54,13 +54,13 @@ class TextareaBindableUi(BindableUi[ui.textarea]):
|
|
|
54
54
|
def value(self):
|
|
55
55
|
return self.element.value
|
|
56
56
|
|
|
57
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
57
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
58
58
|
if prop == "value":
|
|
59
59
|
return self.bind_value(ref_ui)
|
|
60
60
|
|
|
61
61
|
return super().bind_prop(prop, ref_ui)
|
|
62
62
|
|
|
63
|
-
def bind_value(self, ref_ui:
|
|
63
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef[str]):
|
|
64
64
|
@ui_effect
|
|
65
65
|
def _():
|
|
66
66
|
self.element.set_value(to_value(ref_ui))
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from typing import Any, Optional, Callable
|
|
2
2
|
from ex4nicegui.reactive.utils import ParameterClassifier
|
|
3
3
|
from ex4nicegui.utils.signals import (
|
|
4
|
+
TGetterOrReadonlyRef,
|
|
4
5
|
to_value,
|
|
5
6
|
_TMaybeRef as TMaybeRef,
|
|
6
7
|
)
|
|
@@ -35,13 +36,13 @@ class PaginationBindableUi(BindableUi[ui.pagination]):
|
|
|
35
36
|
def value(self):
|
|
36
37
|
return self.element.value
|
|
37
38
|
|
|
38
|
-
def bind_prop(self, prop: str, ref_ui:
|
|
39
|
+
def bind_prop(self, prop: str, ref_ui: TGetterOrReadonlyRef):
|
|
39
40
|
if prop == "value":
|
|
40
41
|
return self.bind_value(ref_ui)
|
|
41
42
|
|
|
42
43
|
return super().bind_prop(prop, ref_ui)
|
|
43
44
|
|
|
44
|
-
def bind_value(self, ref_ui:
|
|
45
|
+
def bind_value(self, ref_ui: TGetterOrReadonlyRef[int]):
|
|
45
46
|
@self._ui_effect
|
|
46
47
|
def _():
|
|
47
48
|
self.element.set_value(to_value(ref_ui))
|