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.
Files changed (81) hide show
  1. dara/components/__init__.py +2 -1
  2. dara/components/_assets/__init__.py +30 -0
  3. dara/components/_assets/auto_js/.gitkeep +0 -0
  4. dara/components/{umd → _assets/auto_js}/dara.components.umd.js +48820 -43508
  5. dara/components/_assets/common/bokeh-3.1.1.min.js +690 -0
  6. dara/components/_assets/common/bokeh-api-3.1.1.min.js +60 -0
  7. dara/components/_assets/common/bokeh-gl-3.1.1.min.js +67 -0
  8. dara/components/_assets/common/bokeh-mathjax-3.1.1.min.js +329 -0
  9. dara/components/_assets/common/bokeh-tables-3.1.1.min.js +132 -0
  10. dara/components/_assets/common/bokeh-widgets-3.1.1.min.js +129 -0
  11. dara/components/_assets/common/pixi-filters.min.js +17 -0
  12. dara/components/_assets/common/pixi.min.js +2214 -0
  13. dara/components/_assets/common/pixi_viewport.js +1 -0
  14. dara/components/_assets/common/plotly.min.js +8 -0
  15. dara/components/common/accordion.py +12 -18
  16. dara/components/common/anchor.py +6 -5
  17. dara/components/common/base_component.py +5 -5
  18. dara/components/common/bullet_list.py +1 -3
  19. dara/components/common/button.py +11 -6
  20. dara/components/common/button_bar.py +6 -6
  21. dara/components/common/card.py +3 -5
  22. dara/components/common/carousel.py +5 -5
  23. dara/components/common/checkbox_group.py +8 -8
  24. dara/components/common/code.py +3 -3
  25. dara/components/common/component_select_list.py +6 -8
  26. dara/components/common/datepicker.py +6 -6
  27. dara/components/common/dropdown_menu.py +9 -9
  28. dara/components/common/dropzone.py +11 -14
  29. dara/components/common/form.py +3 -5
  30. dara/components/common/form_page.py +2 -4
  31. dara/components/common/grid.py +13 -13
  32. dara/components/common/heading.py +2 -3
  33. dara/components/common/icon.py +1 -3
  34. dara/components/common/if_cmp.py +8 -8
  35. dara/components/common/input.py +5 -7
  36. dara/components/common/label.py +3 -5
  37. dara/components/common/markdown.py +2 -4
  38. dara/components/common/overlay.py +1 -3
  39. dara/components/common/progress_bar.py +2 -4
  40. dara/components/common/radio_group.py +8 -8
  41. dara/components/common/select.py +10 -10
  42. dara/components/common/slider.py +11 -11
  43. dara/components/common/spacer.py +2 -4
  44. dara/components/common/stack.py +3 -4
  45. dara/components/common/switch.py +3 -5
  46. dara/components/common/tabbed_card.py +2 -4
  47. dara/components/common/table.py +38 -34
  48. dara/components/common/text.py +3 -5
  49. dara/components/common/textarea.py +5 -5
  50. dara/components/common/time_utils.py +1 -2
  51. dara/components/common/tooltip.py +3 -5
  52. dara/components/common/utils.py +22 -22
  53. dara/components/graphs/components/base_graph_component.py +19 -19
  54. dara/components/graphs/components/causal_graph_viewer.py +2 -4
  55. dara/components/graphs/components/edge_encoder.py +13 -13
  56. dara/components/graphs/components/node_hierarchy_builder.py +12 -12
  57. dara/components/graphs/definitions.py +21 -16
  58. dara/components/graphs/graph_layout.py +36 -37
  59. dara/components/plotting/bokeh/bokeh.py +5 -5
  60. dara/components/plotting/bokeh/utils.py +1 -3
  61. dara/components/plotting/plotly/plotly.py +9 -13
  62. dara/components/plotting/plotly/themes.py +3 -3
  63. dara/components/smart/chat/chat.py +2 -2
  64. dara/components/smart/chat/config.py +1 -1
  65. dara/components/smart/chat/types.py +3 -5
  66. dara/components/smart/code_editor/code_editor.py +2 -2
  67. dara/components/smart/code_editor/util.py +4 -4
  68. dara/components/smart/data_slicer/data_slicer.py +4 -6
  69. dara/components/smart/data_slicer/data_slicer_modal.py +1 -3
  70. dara/components/smart/data_slicer/extension/data_slicer_filter.py +2 -3
  71. dara/components/smart/data_slicer/extension/filter_status_button.py +1 -3
  72. dara/components/smart/data_slicer/utils/core.py +14 -14
  73. dara/components/smart/data_slicer/utils/data_preview.py +1 -3
  74. dara/components/smart/hierarchy.py +5 -5
  75. {dara_components-1.20.3.dist-info → dara_components-1.22.1.dist-info}/METADATA +5 -6
  76. dara_components-1.22.1.dist-info/RECORD +100 -0
  77. dara_components-1.22.1.dist-info/entry_points.txt +3 -0
  78. dara_components-1.20.3.dist-info/RECORD +0 -87
  79. /dara/components/{umd/style.css → _assets/auto_js/dara.components.css} +0 -0
  80. {dara_components-1.20.3.dist-info → dara_components-1.22.1.dist-info}/LICENSE +0 -0
  81. {dara_components-1.20.3.dist-info → dara_components-1.22.1.dist-info}/WHEEL +0 -0
@@ -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