dara-components 1.20.1a4__py3-none-any.whl → 1.20.1a6__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.
@@ -836,6 +836,7 @@ class Table(ContentComponent):
836
836
  :param multi_select: Whether to allow selection of multiple rows, works with onclick_row and defaults to False
837
837
  :param show_checkboxes: Whether to show or hide checkboxes column when onclick_row is set. Defaults to True
838
838
  :param onclick_row: An action handler for when a row is clicked on the table
839
+ :param onselect_row: An action handler for when a row is selected via the checkbox column
839
840
  :param selected_indices: Optional variable to store the selected rows indices, must be a list of numbers. Note that these indices are
840
841
  the sequential indices of the rows as accepted by `DataFrame.iloc`, not the `row.index` value. If you would like the selection to persist over
841
842
  page reloads, you must use a `BrowserStore` on a `Variable`.
@@ -843,6 +844,7 @@ class Table(ContentComponent):
843
844
  :param searchable: Boolean, if True table can be searched via Input and will only render matching rows
844
845
  :param include_index: Boolean, if True the table will render the index column(s), defaults to True
845
846
  :param max_rows: if specified, table height will be fixed to accommodate the specified number of rows
847
+ :param supress_click_events_for_selection: Whether to suppress click events for clicks in select boxes. Defaults to False
846
848
  """
847
849
 
848
850
  model_config = ConfigDict(ser_json_timedelta='float', use_enum_values=True, arbitrary_types_allowed=True)
@@ -852,6 +854,7 @@ class Table(ContentComponent):
852
854
  multi_select: bool = False
853
855
  show_checkboxes: bool = True
854
856
  onclick_row: Optional[Action] = None
857
+ onselect_row: Optional[Action] = None
855
858
  selected_indices: Optional[Union[List[int], Variable]] = None
856
859
  search_columns: Optional[List[str]] = None
857
860
  searchable: bool = False
@@ -65106,7 +65106,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
65106
65106
  if (isCheckboxSelect && selectedRows !== null) {
65107
65107
  onSelectRow(selectedRows);
65108
65108
  }
65109
- if (!props.supress_click_events_for_selection) {
65109
+ const shouldSuppressClick = props.supress_click_events_for_selection && isCheckboxSelect;
65110
+ if (!shouldSuppressClick) {
65110
65111
  onClickRow(selectedRows);
65111
65112
  }
65112
65113
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-components
3
- Version: 1.20.1a4
3
+ Version: 1.20.1a6
4
4
  Summary: Components for the Dara Framework
5
5
  Home-page: https://dara.causalens.com/
6
6
  License: Apache-2.0
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Dist: bokeh (>=3.1.0,<3.2.0)
17
17
  Requires-Dist: cai-causal-graph (>=0.3.6)
18
18
  Requires-Dist: certifi (>=2024.7.4)
19
- Requires-Dist: dara-core (==1.20.1-alpha.4)
19
+ Requires-Dist: dara-core (==1.20.1-alpha.6)
20
20
  Requires-Dist: dill (>=0.3.0,<0.4.0)
21
21
  Requires-Dist: matplotlib (>=2.0.0)
22
22
  Requires-Dist: pandas (>=1.1.0,<3.0.0)
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # Dara Components
30
30
 
31
- <img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.4/img/dara_light.svg?raw=true">
31
+ <img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.6/img/dara_light.svg?raw=true">
32
32
 
33
33
  ![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
34
34
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -36,7 +36,7 @@ dara/components/common/spacer.py,sha256=ZRSl_fLntnumalaL41FYpBKDxOUgWgndkkLdDLl8
36
36
  dara/components/common/stack.py,sha256=FLw0IbQpW7l9A6LDS_KPCeQP0J7QKGYhVZ1RhAjBjpE,5562
37
37
  dara/components/common/switch.py,sha256=8t3Bra3TdJzQ3fEdra0e8xNJSoDFAy6x8OlaxYddFhY,1548
38
38
  dara/components/common/tabbed_card.py,sha256=S7m09fBNFR64UG9STcF1w-FriRZ3uKzif9W7q_Xro6E,2342
39
- dara/components/common/table.py,sha256=L9PNwIuEhpT1XHLSodxfeS9eHNnLrX1RvEVSealb3Ys,29800
39
+ dara/components/common/table.py,sha256=8OpHp4ccFeS6eHY4G2PqaxOY1ztOYBmxTEmkYxCpNpw,30062
40
40
  dara/components/common/text.py,sha256=f-Dvo5vfuOauMlut-L1Jided2dxy8VrUuij6DVa5BZo,1986
41
41
  dara/components/common/textarea.py,sha256=F8dmyinylAjjXMhNwfiWInrCFuAnWuCPTsKKiEUkmOw,2106
42
42
  dara/components/common/time_utils.py,sha256=UbAws5HBptJ-xH-m4QRDDET-9leOQu9WdywmExBuqIc,1746
@@ -79,9 +79,9 @@ dara/components/smart/data_slicer/utils/core.py,sha256=4M_HA8oBzAkHklHgmaJ-qiKA3
79
79
  dara/components/smart/data_slicer/utils/data_preview.py,sha256=OAphjMrm3F76XmJ09X7sZSeOeKqGJFwN5ooo3qcyrG4,1722
80
80
  dara/components/smart/data_slicer/utils/plotting.py,sha256=TB00576kbA6y1eRuZBe09UAcZmluY4iJsKmYnXZ3hWQ,3389
81
81
  dara/components/smart/hierarchy.py,sha256=3RtHj68gA8H_X9FxQdaeSJloTqe8ciH52ku6f7zy33M,2902
82
- dara/components/umd/dara.components.umd.js,sha256=nHcM_sTlMXL43axSgSL1Rcl2ksUPkd07DxQcj_AEm14,8329280
82
+ dara/components/umd/dara.components.umd.js,sha256=fLrypj4CNehUgvQf-j1ohqfICGW_xJsDYORsJscwMog,8329357
83
83
  dara/components/umd/style.css,sha256=Qm0_kcxXBDoXvvPTc7YCttkl1zMFifdcp-KufTunPNY,162729
84
- dara_components-1.20.1a4.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
85
- dara_components-1.20.1a4.dist-info/METADATA,sha256=Laom7hIRdSGMWjOsrqFIIR_x-oSIQ3GL97ABmdMcBig,2761
86
- dara_components-1.20.1a4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
- dara_components-1.20.1a4.dist-info/RECORD,,
84
+ dara_components-1.20.1a6.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
85
+ dara_components-1.20.1a6.dist-info/METADATA,sha256=Zq8p4dblQcwtF2cvtFNop4VQwx0_jhOjqGlpfF0HCJw,2761
86
+ dara_components-1.20.1a6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
+ dara_components-1.20.1a6.dist-info/RECORD,,