nova-trame 0.17.2__py3-none-any.whl → 0.17.3__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.
- nova/trame/view/components/input_field.py +6 -1
- {nova_trame-0.17.2.dist-info → nova_trame-0.17.3.dist-info}/METADATA +1 -1
- {nova_trame-0.17.2.dist-info → nova_trame-0.17.3.dist-info}/RECORD +6 -6
- {nova_trame-0.17.2.dist-info → nova_trame-0.17.3.dist-info}/LICENSE +0 -0
- {nova_trame-0.17.2.dist-info → nova_trame-0.17.3.dist-info}/WHEEL +0 -0
- {nova_trame-0.17.2.dist-info → nova_trame-0.17.3.dist-info}/entry_points.txt +0 -0
@@ -4,6 +4,7 @@ import logging
|
|
4
4
|
import os
|
5
5
|
import re
|
6
6
|
from enum import Enum
|
7
|
+
from inspect import isclass
|
7
8
|
from typing import Any, Dict, Optional, Union
|
8
9
|
|
9
10
|
from trame.app import get_server
|
@@ -70,7 +71,11 @@ class InputField:
|
|
70
71
|
"rules": (f"[(v) => trigger('validate_pydantic_field', ['{field}', v, index])]",),
|
71
72
|
}
|
72
73
|
|
73
|
-
if
|
74
|
+
if (
|
75
|
+
field_type in ["autocomplete", "combobox", "select"]
|
76
|
+
and isclass(field_info.annotation)
|
77
|
+
and issubclass(field_info.annotation, Enum)
|
78
|
+
):
|
74
79
|
args |= {"items": str([option.value for option in field_info.annotation])}
|
75
80
|
|
76
81
|
if debounce > 0 and throttle > 0:
|
@@ -2,7 +2,7 @@ nova/__init__.py,sha256=ED6jHcYiuYpr_0vjGz0zx2lrrmJT9sDJCzIljoDfmlM,65
|
|
2
2
|
nova/trame/__init__.py,sha256=gFrAg1qva5PIqR5TjvPzAxLx103IKipJLqp3XXvrQL8,59
|
3
3
|
nova/trame/model/remote_file_input.py,sha256=9KAf31ZHzpsh_aXUrNcF81Q5jvUZDWCzW1QATKls-Jk,3675
|
4
4
|
nova/trame/view/components/__init__.py,sha256=fopr6mVqcpDcVYK9ue7SLUHyswgvRPcFESTq86mu1R8,128
|
5
|
-
nova/trame/view/components/input_field.py,sha256=
|
5
|
+
nova/trame/view/components/input_field.py,sha256=Wf-WuYm9SmbHXYy1cvYy8zDWe5rhvLcUHmwqmBvqVxk,16074
|
6
6
|
nova/trame/view/components/remote_file_input.py,sha256=k2yrwkell_g0sGnWR9XLL1LxkmFLr8-AGhduo8E-N4A,8669
|
7
7
|
nova/trame/view/components/visualization/__init__.py,sha256=reqkkbhD5uSksHHlhVMy1qNUCwSekS5HlXk6wCREYxU,152
|
8
8
|
nova/trame/view/components/visualization/interactive_2d_plot.py,sha256=foZCMoqbuahT5dtqIQvm8C4ZJcY9P211eJEcpQJltmM,3421
|
@@ -21,8 +21,8 @@ nova/trame/view/theme/assets/vuetify_config.json,sha256=JBWBfDvxBAWTw3zi0loorFvw
|
|
21
21
|
nova/trame/view/theme/theme.py,sha256=yBaHOvugzxh9vsBOGlOpp2IVMuLj922P6MSXoSz7tk0,11820
|
22
22
|
nova/trame/view/utilities/local_storage.py,sha256=vD8f2VZIpxhIKjZwEaD7siiPCTZO4cw9AfhwdawwYLY,3218
|
23
23
|
nova/trame/view_model/remote_file_input.py,sha256=WHWCQkZBGeKLe1aTPbtVNI8tn-PDt64mi1-561uuBpQ,3320
|
24
|
-
nova_trame-0.17.
|
25
|
-
nova_trame-0.17.
|
26
|
-
nova_trame-0.17.
|
27
|
-
nova_trame-0.17.
|
28
|
-
nova_trame-0.17.
|
24
|
+
nova_trame-0.17.3.dist-info/LICENSE,sha256=Iu5QiDbwNbREg75iYaxIJ_V-zppuv4QFuBhAW-qiAlM,1061
|
25
|
+
nova_trame-0.17.3.dist-info/METADATA,sha256=PcFti25euMmdCYTN4r2q1kdxUiXDbC7DLlOiu1SapHY,1345
|
26
|
+
nova_trame-0.17.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
27
|
+
nova_trame-0.17.3.dist-info/entry_points.txt,sha256=J2AmeSwiTYZ4ZqHHp9HO6v4MaYQTTBPbNh6WtoqOT58,42
|
28
|
+
nova_trame-0.17.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|