dara-components 1.16.16__py3-none-any.whl → 1.16.17__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/umd/dara.components.umd.js +20 -3
- {dara_components-1.16.16.dist-info → dara_components-1.16.17.dist-info}/METADATA +3 -3
- {dara_components-1.16.16.dist-info → dara_components-1.16.17.dist-info}/RECORD +5 -5
- {dara_components-1.16.16.dist-info → dara_components-1.16.17.dist-info}/LICENSE +0 -0
- {dara_components-1.16.16.dist-info → dara_components-1.16.17.dist-info}/WHEEL +0 -0
|
@@ -56769,15 +56769,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56769
56769
|
debouncedAction(newValue);
|
|
56770
56770
|
debouncedUpdateForm(newValue);
|
|
56771
56771
|
}
|
|
56772
|
+
const debouncedUpdateFormRef = useLatestRef$3(debouncedUpdateForm);
|
|
56773
|
+
const debouncedSetValueRef = useLatestRef$3(debouncedSetValue);
|
|
56772
56774
|
React.useEffect(() => {
|
|
56773
|
-
|
|
56774
|
-
|
|
56775
|
+
debouncedSetValueRef.current.cancel();
|
|
56776
|
+
debouncedUpdateFormRef.current.cancel();
|
|
56775
56777
|
let newValue = value;
|
|
56776
56778
|
if (props.type === "number") {
|
|
56777
56779
|
newValue = getNumericValue(newValue);
|
|
56778
56780
|
}
|
|
56779
56781
|
setInternalValue(newValue);
|
|
56780
|
-
}, [value]);
|
|
56782
|
+
}, [debouncedSetValueRef, debouncedUpdateFormRef, props.type, value]);
|
|
56781
56783
|
if (props.type === "number") {
|
|
56782
56784
|
return /* @__PURE__ */ React__default.default.createElement(
|
|
56783
56785
|
StyledNumericInput,
|
|
@@ -64295,6 +64297,21 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
64295
64297
|
},
|
|
64296
64298
|
[isOutputNumber, debouncedSetValue, debouncedUpdateForm, debouncedOnTrack]
|
|
64297
64299
|
);
|
|
64300
|
+
const debouncedUpdateFormRef = useLatestRef$3(debouncedUpdateForm);
|
|
64301
|
+
const debouncedSetValueRef = useLatestRef$3(debouncedSetValue);
|
|
64302
|
+
const domainRef = useLatestRef$3(props.domain);
|
|
64303
|
+
React.useEffect(() => {
|
|
64304
|
+
debouncedSetValueRef.current.cancel();
|
|
64305
|
+
debouncedUpdateFormRef.current.cancel();
|
|
64306
|
+
let newValue = value;
|
|
64307
|
+
if (typeof value === "string") {
|
|
64308
|
+
newValue = parseFloat(value);
|
|
64309
|
+
}
|
|
64310
|
+
if (Number.isNaN(newValue)) {
|
|
64311
|
+
[newValue] = domainRef.current;
|
|
64312
|
+
}
|
|
64313
|
+
setInternalValue(newValue);
|
|
64314
|
+
}, [value, domainRef, debouncedSetValueRef, debouncedUpdateFormRef]);
|
|
64298
64315
|
const parsedValues = isOutputNumber ? [internalValue] : internalValue;
|
|
64299
64316
|
return /* @__PURE__ */ React__default.default.createElement(
|
|
64300
64317
|
StyledSlider,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-components
|
|
3
|
-
Version: 1.16.
|
|
3
|
+
Version: 1.16.17
|
|
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.16.
|
|
19
|
+
Requires-Dist: dara-core (==1.16.17)
|
|
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.16.
|
|
31
|
+
<img src="https://github.com/causalens/dara/blob/v1.16.17/img/dara_light.svg?raw=true">
|
|
32
32
|
|
|
33
33
|

|
|
34
34
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -78,9 +78,9 @@ dara/components/smart/data_slicer/utils/core.py,sha256=6BrmG-iwQCuwUAKQ-y9zFKLei
|
|
|
78
78
|
dara/components/smart/data_slicer/utils/data_preview.py,sha256=OAphjMrm3F76XmJ09X7sZSeOeKqGJFwN5ooo3qcyrG4,1722
|
|
79
79
|
dara/components/smart/data_slicer/utils/plotting.py,sha256=JYzdQLXdAD0A8k2W-764xUr7zN0Ri5nf3OQ2Nb_iuiY,3313
|
|
80
80
|
dara/components/smart/hierarchy.py,sha256=9-QzEtbvP-arejhjsgl4Y5o5KHHzg6H1IGmwrX63450,2905
|
|
81
|
-
dara/components/umd/dara.components.umd.js,sha256=
|
|
81
|
+
dara/components/umd/dara.components.umd.js,sha256=8qpw1V1ll5fwaT1MI52ZrCHuDfgHeFG20YP8PVJz0ZI,18534612
|
|
82
82
|
dara/components/umd/style.css,sha256=Qm0_kcxXBDoXvvPTc7YCttkl1zMFifdcp-KufTunPNY,162729
|
|
83
|
-
dara_components-1.16.
|
|
84
|
-
dara_components-1.16.
|
|
85
|
-
dara_components-1.16.
|
|
86
|
-
dara_components-1.16.
|
|
83
|
+
dara_components-1.16.17.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
84
|
+
dara_components-1.16.17.dist-info/METADATA,sha256=NWRWjirJ4dO2u2BQ5aaPl-hDM3NjCI0WO-x753kpDEY,2746
|
|
85
|
+
dara_components-1.16.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
86
|
+
dara_components-1.16.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|