dara-components 1.20.3__py3-none-any.whl → 1.22.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.
- dara/components/__init__.py +2 -1
- dara/components/_assets/__init__.py +30 -0
- dara/components/_assets/auto_js/.gitkeep +0 -0
- dara/components/{umd → _assets/auto_js}/dara.components.umd.js +48820 -43508
- dara/components/_assets/common/bokeh-3.1.1.min.js +690 -0
- dara/components/_assets/common/bokeh-api-3.1.1.min.js +60 -0
- dara/components/_assets/common/bokeh-gl-3.1.1.min.js +67 -0
- dara/components/_assets/common/bokeh-mathjax-3.1.1.min.js +329 -0
- dara/components/_assets/common/bokeh-tables-3.1.1.min.js +132 -0
- dara/components/_assets/common/bokeh-widgets-3.1.1.min.js +129 -0
- dara/components/_assets/common/pixi-filters.min.js +17 -0
- dara/components/_assets/common/pixi.min.js +2214 -0
- dara/components/_assets/common/pixi_viewport.js +1 -0
- dara/components/_assets/common/plotly.min.js +8 -0
- dara/components/common/accordion.py +12 -18
- dara/components/common/anchor.py +6 -5
- dara/components/common/base_component.py +5 -5
- dara/components/common/bullet_list.py +1 -3
- dara/components/common/button.py +11 -6
- dara/components/common/button_bar.py +6 -6
- dara/components/common/card.py +3 -5
- dara/components/common/carousel.py +5 -5
- dara/components/common/checkbox_group.py +8 -8
- dara/components/common/code.py +3 -3
- dara/components/common/component_select_list.py +6 -8
- dara/components/common/datepicker.py +6 -6
- dara/components/common/dropdown_menu.py +9 -9
- dara/components/common/dropzone.py +11 -14
- dara/components/common/form.py +3 -5
- dara/components/common/form_page.py +2 -4
- dara/components/common/grid.py +13 -13
- dara/components/common/heading.py +2 -3
- dara/components/common/icon.py +1 -3
- dara/components/common/if_cmp.py +8 -8
- dara/components/common/input.py +5 -7
- dara/components/common/label.py +3 -5
- dara/components/common/markdown.py +2 -4
- dara/components/common/overlay.py +1 -3
- dara/components/common/progress_bar.py +2 -4
- dara/components/common/radio_group.py +8 -8
- dara/components/common/select.py +10 -10
- dara/components/common/slider.py +11 -11
- dara/components/common/spacer.py +2 -4
- dara/components/common/stack.py +3 -4
- dara/components/common/switch.py +3 -5
- dara/components/common/tabbed_card.py +2 -4
- dara/components/common/table.py +38 -34
- dara/components/common/text.py +3 -5
- dara/components/common/textarea.py +5 -5
- dara/components/common/time_utils.py +1 -2
- dara/components/common/tooltip.py +3 -5
- dara/components/common/utils.py +22 -22
- dara/components/graphs/components/base_graph_component.py +19 -19
- dara/components/graphs/components/causal_graph_viewer.py +2 -4
- dara/components/graphs/components/edge_encoder.py +13 -13
- dara/components/graphs/components/node_hierarchy_builder.py +12 -12
- dara/components/graphs/definitions.py +21 -16
- dara/components/graphs/graph_layout.py +36 -37
- dara/components/plotting/bokeh/bokeh.py +5 -5
- dara/components/plotting/bokeh/utils.py +1 -3
- dara/components/plotting/plotly/plotly.py +9 -13
- dara/components/plotting/plotly/themes.py +3 -3
- dara/components/smart/chat/chat.py +2 -2
- dara/components/smart/chat/config.py +1 -1
- dara/components/smart/chat/types.py +3 -5
- dara/components/smart/code_editor/code_editor.py +2 -2
- dara/components/smart/code_editor/util.py +4 -4
- dara/components/smart/data_slicer/data_slicer.py +4 -6
- dara/components/smart/data_slicer/data_slicer_modal.py +1 -3
- dara/components/smart/data_slicer/extension/data_slicer_filter.py +2 -3
- dara/components/smart/data_slicer/extension/filter_status_button.py +1 -3
- dara/components/smart/data_slicer/utils/core.py +14 -14
- dara/components/smart/data_slicer/utils/data_preview.py +1 -3
- dara/components/smart/hierarchy.py +5 -5
- {dara_components-1.20.3.dist-info → dara_components-1.22.1.dist-info}/METADATA +5 -6
- dara_components-1.22.1.dist-info/RECORD +100 -0
- dara_components-1.22.1.dist-info/entry_points.txt +3 -0
- dara_components-1.20.3.dist-info/RECORD +0 -87
- /dara/components/{umd/style.css → _assets/auto_js/dara.components.css} +0 -0
- {dara_components-1.20.3.dist-info → dara_components-1.22.1.dist-info}/LICENSE +0 -0
- {dara_components-1.20.3.dist-info → dara_components-1.22.1.dist-info}/WHEEL +0 -0
dara/components/__init__.py
CHANGED
|
@@ -17,6 +17,7 @@ limitations under the License.
|
|
|
17
17
|
# ruff: noqa: F401, F403
|
|
18
18
|
|
|
19
19
|
from importlib.metadata import version
|
|
20
|
+
from inspect import isclass
|
|
20
21
|
|
|
21
22
|
from pydantic import BaseModel
|
|
22
23
|
|
|
@@ -33,7 +34,7 @@ __version__ = version('dara-components')
|
|
|
33
34
|
|
|
34
35
|
for symbol in list(globals().values()):
|
|
35
36
|
try:
|
|
36
|
-
if issubclass(symbol, BaseModel) and symbol is not BaseModel:
|
|
37
|
+
if isclass(symbol) and issubclass(symbol, BaseModel) and symbol is not BaseModel:
|
|
37
38
|
symbol.model_rebuild()
|
|
38
39
|
except Exception as e:
|
|
39
40
|
from dara.core.logging import dev_logger
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from dara.core.base_definitions import AssetManifest
|
|
4
|
+
|
|
5
|
+
AUTOJS_ASSETS = [
|
|
6
|
+
'./auto_js/dara.components.umd.js',
|
|
7
|
+
'./auto_js/dara.components.css',
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
COMMON_ASSETS = [
|
|
11
|
+
'./common/bokeh-3.1.1.min.js',
|
|
12
|
+
'./common/bokeh-api-3.1.1.min.js',
|
|
13
|
+
'./common/bokeh-gl-3.1.1.min.js',
|
|
14
|
+
'./common/bokeh-mathjax-3.1.1.min.js',
|
|
15
|
+
'./common/bokeh-tables-3.1.1.min.js',
|
|
16
|
+
'./common/bokeh-widgets-3.1.1.min.js',
|
|
17
|
+
'./common/pixi.min.js',
|
|
18
|
+
'./common/pixi_viewport.js',
|
|
19
|
+
'./common/pixi-filters.min.js',
|
|
20
|
+
'./common/plotly.min.js',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
asset_manifest = AssetManifest(
|
|
24
|
+
base_path=Path(__file__).parent.absolute().as_posix(),
|
|
25
|
+
autojs_assets=AUTOJS_ASSETS,
|
|
26
|
+
common_assets=COMMON_ASSETS,
|
|
27
|
+
# NOTE: explicitly excludes bokeh/pixi/plotly, they are loaded dynamically
|
|
28
|
+
tag_order=AUTOJS_ASSETS,
|
|
29
|
+
depends_on=['dara.core'],
|
|
30
|
+
)
|
|
File without changes
|