nova-trame 0.17.1__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.
@@ -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 field_type in ["autocomplete", "combobox", "select"] and issubclass(field_info.annotation, Enum):
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:
@@ -169,9 +169,9 @@
169
169
  },
170
170
  "VTextField": {
171
171
  "VBtn": {
172
- "size": "small",
173
- "variant": "outlined"
174
- }
172
+ "size": "small"
173
+ },
174
+ "variant": "outlined"
175
175
  }
176
176
  },
177
177
  "title": "Compact",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nova-trame
3
- Version: 0.17.1
3
+ Version: 0.17.3
4
4
  Summary: A Python Package for injecting curated themes and custom components into Trame applications
5
5
  License: MIT
6
6
  Keywords: NDIP,Python,Trame,Vuetify
@@ -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=ncVVSzdJwH_-KP24I2rCqcb6v3J2hPhNTXr8Lb1EZ_U,15931
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
@@ -17,12 +17,12 @@ nova/trame/view/theme/assets/favicon.png,sha256=Xbp1nUmhcBDeObjsebEbEAraPDZ_M163
17
17
  nova/trame/view/theme/assets/js/delay_manager.js,sha256=vmb34DZ5YCQIlRW9Tf2M_uvJW6HFCmtlKZ5e_TPR8yg,536
18
18
  nova/trame/view/theme/assets/js/lodash.debounce.min.js,sha256=GLzlQH04WDUNYN7i39ttHHejSdu-CpAvfWgDgKDn-OY,4448
19
19
  nova/trame/view/theme/assets/js/lodash.throttle.min.js,sha256=9csqjX-M-LVGJnF3z4ha1R_36O5AfkFE8rPHkxmt3tE,4677
20
- nova/trame/view/theme/assets/vuetify_config.json,sha256=B4uXKIj3hdinN483PrLQBiaveVfEqskuAYFRFGHrWus,5099
20
+ nova/trame/view/theme/assets/vuetify_config.json,sha256=JBWBfDvxBAWTw3zi0loorFvwwTksTUjQTWR4zYSQPSY,5095
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.1.dist-info/LICENSE,sha256=Iu5QiDbwNbREg75iYaxIJ_V-zppuv4QFuBhAW-qiAlM,1061
25
- nova_trame-0.17.1.dist-info/METADATA,sha256=kk0lQjk9QG4NBNMLflO_b9fCnNBR459-OkHAhZ4K7Hg,1345
26
- nova_trame-0.17.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
27
- nova_trame-0.17.1.dist-info/entry_points.txt,sha256=J2AmeSwiTYZ4ZqHHp9HO6v4MaYQTTBPbNh6WtoqOT58,42
28
- nova_trame-0.17.1.dist-info/RECORD,,
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,,