dara-components 1.20.1a9__py3-none-any.whl → 1.20.1a10__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.
@@ -65067,14 +65067,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
65067
65067
  ),
65068
65068
  [onClickRowRaw]
65069
65069
  );
65070
- const onClickRowSingle = React$1.useCallback(
65071
- (rows) => onSelectRowRaw(
65072
- // Preserve original data column names on click
65073
- // Limitation: If there are columns with duplicate names, data from only one of them will be returned
65074
- rows.map((row) => mapKeys(row, (_6, key) => extractColumnLabel(key, key.startsWith(INDEX_COL))))
65075
- ),
65076
- [onClickRowRaw]
65077
- );
65078
65070
  const onSelectRowRaw = core$1.useAction(props.onselect_row);
65079
65071
  const onSelectRow = React$1.useCallback(
65080
65072
  (rows) => onSelectRowRaw(
@@ -65111,16 +65103,16 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
65111
65103
  setSelectedRowIndices(newSelectedIndices);
65112
65104
  selectedRows = cleanIndex(await Promise.all(newSelectedIndices.map((idx) => getRowByIndex(idx))));
65113
65105
  }
65114
- if (isCheckboxSelect && selectedRows !== null) {
65115
- onSelectRow(selectedRows);
65106
+ if (isCheckboxSelect) {
65107
+ onSelectRow(selectedRows || []);
65116
65108
  }
65117
65109
  if (!props.suppress_click_events_for_selection) {
65118
65110
  onClickRow(selectedRows);
65119
65111
  } else if (!isCheckboxSelect) {
65120
- onClickRowSingle(cleanIndex([row]));
65112
+ onClickRow(cleanIndex([row]));
65121
65113
  }
65122
65114
  },
65123
- [selectedRowIndices, setSelectedRowIndices, props.multi_select, onClickRow, getRowByIndex]
65115
+ [selectedRowIndices, setSelectedRowIndices, props.multi_select, onClickRow, getRowByIndex, onSelectRow, props.suppress_click_events_for_selection]
65124
65116
  );
65125
65117
  const onAction = React$1.useCallback(
65126
65118
  (actionId, row) => {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-components
3
- Version: 1.20.1a9
3
+ Version: 1.20.1a10
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.9)
19
+ Requires-Dist: dara-core (==1.20.1-alpha.10)
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.9/img/dara_light.svg?raw=true">
31
+ <img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.10/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)
@@ -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=LbNJZA45MD8WlG9HbsPGVaHWxiXyW81ZzdVOG3jx9-w,8329759
82
+ dara/components/umd/dara.components.umd.js,sha256=CXh3tWMzQd9bx1QJ6tYALH9UFhMyofd91ebWYwKQjF4,8329399
83
83
  dara/components/umd/style.css,sha256=Qm0_kcxXBDoXvvPTc7YCttkl1zMFifdcp-KufTunPNY,162729
84
- dara_components-1.20.1a9.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
85
- dara_components-1.20.1a9.dist-info/METADATA,sha256=WuPjXdV5eLUm38aD8n2iJoIYrp8J0v1YIdGEssw5Rrk,2761
86
- dara_components-1.20.1a9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
- dara_components-1.20.1a9.dist-info/RECORD,,
84
+ dara_components-1.20.1a10.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
85
+ dara_components-1.20.1a10.dist-info/METADATA,sha256=isLTfBm-uG6SQ96DiPJTSinJ6A4UbsP_LMUswokQCIU,2764
86
+ dara_components-1.20.1a10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
+ dara_components-1.20.1a10.dist-info/RECORD,,