nova-trame 1.1.0__py3-none-any.whl → 1.1.1__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 nova-trame might be problematic. Click here for more details.

@@ -170,7 +170,8 @@ class InputField:
170
170
  - file
171
171
  - input
172
172
  - otp
173
- - radio
173
+ - radio - Produces a radio button group. Note that this accepts an additional parameter items that expects \
174
+ a list of dictionaries with the following format: { title: 'Item 1', value: 'item_1' }.
174
175
  - range-slider
175
176
  - select - Produces a dropdown menu. This menu can have items automatically populated if the v_model is \
176
177
  connected to a Pydantic field that uses an Enum type. Otherwise, you must specify the items parameter \
@@ -244,7 +245,11 @@ class InputField:
244
245
  case "otp":
245
246
  input = vuetify.VOtpInput(**kwargs)
246
247
  case "radio":
247
- input = vuetify.VRadioGroup(**kwargs)
248
+ items = kwargs.pop("items", None)
249
+ if isinstance(items, tuple):
250
+ items = items[0]
251
+ with vuetify.VRadioGroup(**kwargs) as input:
252
+ vuetify.VRadio(v_for=f"item in {items}", label=("item.title",), value=("item.value",))
248
253
  case "range-slider":
249
254
  input = vuetify.VRangeSlider(**kwargs)
250
255
  case "select":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nova-trame
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: A Python Package for injecting curated themes and custom components into Trame applications
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -10,7 +10,7 @@ nova/trame/view/components/__init__.py,sha256=60BeS69aOrFnkptjuD17rfPE1f4Z35iBH5
10
10
  nova/trame/view/components/data_selector.py,sha256=yQSxlotZX21pEZsKJKFEVQytN5PbjUCBMHPsROa4tjI,19127
11
11
  nova/trame/view/components/execution_buttons.py,sha256=Br6uAmE5bY67TTYc5ZTHECNJ_RJqKmv17HAKPpQtbeg,4576
12
12
  nova/trame/view/components/file_upload.py,sha256=WOaFXeNNwN0DYZJr-W6vWdBiTpr7m-lq3WKJaHmeMe8,4560
13
- nova/trame/view/components/input_field.py,sha256=xzCmNEoB4ljGx99-gGgTV0UwriwtS8ce22zPA4QneZw,17372
13
+ nova/trame/view/components/input_field.py,sha256=viP6iP3aKkx-nwC6VYLCQYvV8yEVC817cuWezcp9cpc,17823
14
14
  nova/trame/view/components/ornl/__init__.py,sha256=HnxzzSsxw0vQSDCVFfWsAxx1n3HnU37LMuQkfiewmSU,90
15
15
  nova/trame/view/components/ornl/neutron_data_selector.py,sha256=m_XAXdqTelUj6x1kj0kBq2dClVytTQqZ4a6fgNxGloA,17149
16
16
  nova/trame/view/components/progress_bar.py,sha256=zhbJwPy_HPQ8YL-ISN8sCRUQ7qY6qqo9wiV59BmvL8I,3038
@@ -40,8 +40,8 @@ nova/trame/view_model/ornl/neutron_data_selector.py,sha256=PcnUUNN3S1i-Tc9G4ZZP6
40
40
  nova/trame/view_model/progress_bar.py,sha256=6AUKHF3hfzbdsHqNEnmHRgDcBKY5TT8ywDx9S6ovnsc,2854
41
41
  nova/trame/view_model/remote_file_input.py,sha256=zWOflmCDJYYR_pacHphwzricV667GSRokh-mlxpBAOo,3646
42
42
  nova/trame/view_model/tool_outputs.py,sha256=ev6LY7fJ0H2xAJn9f5ww28c8Kpom2SYc2FbvFcoN4zg,829
43
- nova_trame-1.1.0.dist-info/METADATA,sha256=zhUMQdY9OepYShQefWIQ_zwhLP197w9ecz0_G_QSDPU,2096
44
- nova_trame-1.1.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
45
- nova_trame-1.1.0.dist-info/entry_points.txt,sha256=J2AmeSwiTYZ4ZqHHp9HO6v4MaYQTTBPbNh6WtoqOT58,42
46
- nova_trame-1.1.0.dist-info/licenses/LICENSE,sha256=Iu5QiDbwNbREg75iYaxIJ_V-zppuv4QFuBhAW-qiAlM,1061
47
- nova_trame-1.1.0.dist-info/RECORD,,
43
+ nova_trame-1.1.1.dist-info/METADATA,sha256=WiJNoS62hn4IFYkbLetnV0ivP0lfpM0UFMjthyot-2I,2096
44
+ nova_trame-1.1.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
45
+ nova_trame-1.1.1.dist-info/entry_points.txt,sha256=J2AmeSwiTYZ4ZqHHp9HO6v4MaYQTTBPbNh6WtoqOT58,42
46
+ nova_trame-1.1.1.dist-info/licenses/LICENSE,sha256=Iu5QiDbwNbREg75iYaxIJ_V-zppuv4QFuBhAW-qiAlM,1061
47
+ nova_trame-1.1.1.dist-info/RECORD,,