nova-trame 1.0.0rc3__py3-none-any.whl → 1.0.0rc5__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.
@@ -129,7 +129,7 @@ class DataSelector(datagrid.VGrid):
129
129
  return get_server(None, client_type="vue3").state
130
130
 
131
131
  def create_ui(self, *args: Any, **kwargs: Any) -> None:
132
- with VBoxLayout(classes="nova-data-selector", height="100%") as self._layout:
132
+ with VBoxLayout(classes="nova-data-selector", stretch=True) as self._layout:
133
133
  with HBoxLayout(valign="center"):
134
134
  self._layout.filter = html.Div(classes="flex-1-1")
135
135
  with vuetify.VBtn(
@@ -138,9 +138,9 @@ class DataSelector(datagrid.VGrid):
138
138
  vuetify.VIcon("mdi-refresh")
139
139
  vuetify.VTooltip("Refresh Contents", activator="parent")
140
140
 
141
- with GridLayout(columns=2, classes="flex-1-0 h-0", valign="start"):
141
+ with GridLayout(columns=2, stretch=True):
142
142
  if isinstance(self._subdirectory, tuple) or not self._subdirectory:
143
- with html.Div(classes="d-flex flex-column h-100 overflow-hidden"):
143
+ with VBoxLayout(stretch=True):
144
144
  vuetify.VListSubheader("Available Directories", classes="flex-0-1 justify-center px-0")
145
145
  vuetify.VTreeview(
146
146
  v_if=(f"{self._directories_name}.length > 0",),
@@ -257,11 +257,11 @@ class MatplotlibFigure(matplotlib.Figure):
257
257
  f"if ({self._query_selector} === null) {{ return; }}"
258
258
  # webagg figures receive a fixed width and height. This blocks the flexbox scaling, so I temporarily hide
259
259
  # the figure to allow the container to grow/shrink naturally in flexbox.
260
- f"{self._query_selector}.style.display = 'none';"
260
+ f"window.document.querySelectorAll('.nova-mpl').forEach((item) => {{ item.style.display = 'none'; }});"
261
261
  f"const height = {self._query_selector}.parentNode.offsetHeight;"
262
262
  f"const width = {self._query_selector}.parentNode.offsetWidth;"
263
263
  # Revert the display value to allow the figure to render again.
264
- f"{self._query_selector}.style.display = '';"
264
+ f"window.document.querySelectorAll('.nova-mpl').forEach((item) => {{ item.style.display = ''; }});"
265
265
  "window.trame.trigger("
266
266
  f" '{self._id}_resize',"
267
267
  f" [height, width, window.devicePixelRatio]"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nova-trame
3
- Version: 1.0.0rc3
3
+ Version: 1.0.0rc5
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
@@ -7,7 +7,7 @@ nova/trame/model/ornl/neutron_data_selector.py,sha256=YMoNEpDKgjP_y18oYj-N9Ijkxt
7
7
  nova/trame/model/ornl/oncat_data_selector.py,sha256=3JEkWGMU-esWA9DUTglju9hEP9LyZ7EUXLj1yO5BIDs,4755
8
8
  nova/trame/model/remote_file_input.py,sha256=eAk7ZsFgNKcnpJ6KmOQDhiI6pPZpcrr1GMKkRLEWht8,4338
9
9
  nova/trame/view/components/__init__.py,sha256=60BeS69aOrFnkptjuD17rfPE1f4Z35iBH56TRmW5MW8,451
10
- nova/trame/view/components/data_selector.py,sha256=T5CFtWPio3YwiPvPEBrWn7vgRo-3l0GqdGKzonc_cwc,14970
10
+ nova/trame/view/components/data_selector.py,sha256=ByZ1RTyJRfmHNfN-nFi_Ihljo0yjbyfa_El-jHl9oyM,14907
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
13
  nova/trame/view/components/input_field.py,sha256=xzCmNEoB4ljGx99-gGgTV0UwriwtS8ce22zPA4QneZw,17372
@@ -18,7 +18,7 @@ nova/trame/view/components/remote_file_input.py,sha256=mcz_bmI2rD8gdmIOKLhlzfj-X
18
18
  nova/trame/view/components/tool_outputs.py,sha256=IbYV4VjrkWAE354Bh5KH76SPsxGLIkOXChijS4-ce_Y,2408
19
19
  nova/trame/view/components/visualization/__init__.py,sha256=reqkkbhD5uSksHHlhVMy1qNUCwSekS5HlXk6wCREYxU,152
20
20
  nova/trame/view/components/visualization/interactive_2d_plot.py,sha256=z2s1janxAclpMEdDJk3z-CQ6r3KPNoR_SXPx9ppWnuQ,3481
21
- nova/trame/view/components/visualization/matplotlib_figure.py,sha256=mPPAH3vPHgcWnnB3tnAaK4o77xxMDxrB6I-7UUDw2r4,16189
21
+ nova/trame/view/components/visualization/matplotlib_figure.py,sha256=GYfX7hlEWQ4Dghk8Z1dmUQr6jgktWirhOYb0drtonM4,16297
22
22
  nova/trame/view/layouts/__init__.py,sha256=cMrlB5YMUoK8EGB83b34UU0kPTVrH8AxsYvKRtpUNEc,141
23
23
  nova/trame/view/layouts/grid.py,sha256=DU5u5JTE0ulzCaJsEWyTenBH9lOQD7mtoC6RZXxDTPE,6110
24
24
  nova/trame/view/layouts/hbox.py,sha256=w6ow7Qzmq4slODz_9f7kEigCVPE2PhUmPODedYH34f4,3850
@@ -40,8 +40,8 @@ nova/trame/view_model/ornl/neutron_data_selector.py,sha256=PIKQyzcHpwu81DNk3d8Af
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.0.0rc3.dist-info/METADATA,sha256=_S9c2a7k4-LTiMzympi-C1fs90SM261l20N4lUxilSQ,1798
44
- nova_trame-1.0.0rc3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
45
- nova_trame-1.0.0rc3.dist-info/entry_points.txt,sha256=J2AmeSwiTYZ4ZqHHp9HO6v4MaYQTTBPbNh6WtoqOT58,42
46
- nova_trame-1.0.0rc3.dist-info/licenses/LICENSE,sha256=Iu5QiDbwNbREg75iYaxIJ_V-zppuv4QFuBhAW-qiAlM,1061
47
- nova_trame-1.0.0rc3.dist-info/RECORD,,
43
+ nova_trame-1.0.0rc5.dist-info/METADATA,sha256=E07ThBY0ho0JJE66zWp3IQJadp1e-nydsrAnUz93BTo,1798
44
+ nova_trame-1.0.0rc5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
45
+ nova_trame-1.0.0rc5.dist-info/entry_points.txt,sha256=J2AmeSwiTYZ4ZqHHp9HO6v4MaYQTTBPbNh6WtoqOT58,42
46
+ nova_trame-1.0.0rc5.dist-info/licenses/LICENSE,sha256=Iu5QiDbwNbREg75iYaxIJ_V-zppuv4QFuBhAW-qiAlM,1061
47
+ nova_trame-1.0.0rc5.dist-info/RECORD,,