dara-core 1.21.2__py3-none-any.whl → 1.21.3__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/core/umd/dara.core.umd.cjs +7 -7
- {dara_core-1.21.2.dist-info → dara_core-1.21.3.dist-info}/METADATA +10 -10
- {dara_core-1.21.2.dist-info → dara_core-1.21.3.dist-info}/RECORD +6 -6
- {dara_core-1.21.2.dist-info → dara_core-1.21.3.dist-info}/LICENSE +0 -0
- {dara_core-1.21.2.dist-info → dara_core-1.21.3.dist-info}/WHEEL +0 -0
- {dara_core-1.21.2.dist-info → dara_core-1.21.3.dist-info}/entry_points.txt +0 -0
dara/core/umd/dara.core.umd.cjs
CHANGED
|
@@ -25239,9 +25239,9 @@
|
|
|
25239
25239
|
setValues(valuesArray);
|
|
25240
25240
|
}
|
|
25241
25241
|
}, [props.values, props.items]);
|
|
25242
|
-
return jsxRuntimeExports.jsxs(CheckboxGroupWrapper, { className: props.className, style: props.style, children: [(props.selectMax || props.selectMin) && jsxRuntimeExports.jsx(CheckboxInfo, { children: infoMessage }), props.items.map((item, index2) => {
|
|
25242
|
+
return jsxRuntimeExports.jsxs(CheckboxGroupWrapper, { className: props.className, style: props.style, id: props.id, children: [(props.selectMax || props.selectMin) && jsxRuntimeExports.jsx(CheckboxInfo, { children: infoMessage }), props.items.map((item, index2) => {
|
|
25243
25243
|
var _a, _b;
|
|
25244
|
-
return jsxRuntimeExports.jsx(CheckboxWrapper, { "aria-disabled": props.disabled, children: jsxRuntimeExports.jsx(Checkbox, { disabled: isSelectPermitted ? props.disabled : ((_a = checkedState.find((option) => option.value === item.value)) === null || _a === void 0 ? void 0 : _a.state) === false,
|
|
25244
|
+
return jsxRuntimeExports.jsx(CheckboxWrapper, { "aria-disabled": props.disabled, children: jsxRuntimeExports.jsx(Checkbox, { id: index2, disabled: isSelectPermitted ? props.disabled : ((_a = checkedState.find((option) => option.value === item.value)) === null || _a === void 0 ? void 0 : _a.state) === false, isListStyle: props.isListStyle, label: item.label ? item.label : item.value, onChange: (checked, e2) => onChangeValue(e2), selected: (_b = checkedState.find((option) => option.value === item.value)) === null || _b === void 0 ? void 0 : _b.state }) }, `item-${index2}`);
|
|
25245
25245
|
})] });
|
|
25246
25246
|
}
|
|
25247
25247
|
var __rest$7 = function(s, e2) {
|
|
@@ -31918,7 +31918,7 @@
|
|
|
31918
31918
|
const newDateTime = getNewDatetime(selectedDate, time2);
|
|
31919
31919
|
(_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, newDateTime);
|
|
31920
31920
|
}, [selectedDate, selectedTime]);
|
|
31921
|
-
return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntimeExports.jsxs(DatepickerWrapper$1, { inline: props.inline, showsRange: props.selectsRange, showsTime: props.showTimeInput, children: [jsxRuntimeExports.jsxs(DatepickerInputs, { children: [jsxRuntimeExports.jsxs(DateTimeWrapper, { isRange: props.selectsRange, children: [jsxRuntimeExports.jsx(DateInput, { isTimeRange: props.selectsRange && props.showTimeInput, onChange: (e2) => {
|
|
31921
|
+
return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntimeExports.jsxs(DatepickerWrapper$1, { id: props.id, inline: props.inline, showsRange: props.selectsRange, showsTime: props.showTimeInput, children: [jsxRuntimeExports.jsxs(DatepickerInputs, { children: [jsxRuntimeExports.jsxs(DateTimeWrapper, { isRange: props.selectsRange, children: [jsxRuntimeExports.jsx(DateInput, { isTimeRange: props.selectsRange && props.showTimeInput, onChange: (e2) => {
|
|
31922
31922
|
onChangeDateInput(true, e2);
|
|
31923
31923
|
}, onClick: () => {
|
|
31924
31924
|
var _a2;
|
|
@@ -33461,7 +33461,7 @@
|
|
|
33461
33461
|
const menuProps = React__namespace.useMemo(() => getMenuProps({ ref: mergedDropdownRef }), [mergedDropdownRef, getMenuProps]);
|
|
33462
33462
|
const toggleButtonProps = React__namespace.useMemo(() => getToggleButtonProps({ disabled: props.disabled, ref: refs.setReference }), [props.disabled, refs.setReference, getToggleButtonProps]);
|
|
33463
33463
|
const dropdownStyle = React__namespace.useMemo(() => Object.assign(Object.assign({}, floatingStyles), { marginLeft: -1 }), [floatingStyles]);
|
|
33464
|
-
return jsxRuntimeExports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntimeExports.jsxs(Wrapper$3, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, isOpen, onClick: props.onClick, style: props.style, children: [jsxRuntimeExports.jsxs(SelectButton, Object.assign({ disabled: props.disabled, isOpen }, toggleButtonProps, getReferenceProps(), { type: "button", children: [jsxRuntimeExports.jsx(SelectedItem, { size: props.size, children: (_b = (_a = selectedItem === null ? props.placeholder : selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) !== null && _a !== void 0 ? _a : props.placeholder) !== null && _b !== void 0 ? _b : "Select" }), jsxRuntimeExports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM.createPortal(jsxRuntimeExports.jsx(DropdownList$1, { items: props.items, getItemProps, getFloatingProps, style: dropdownStyle, isOpen, getMenuProps, size: props.size, ref: refs.setFloating, className: `${(_c = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _c !== void 0 ? _c : ""} ${props.itemClass}`, itemClass: props.itemClass, maxItems: props.maxItems, selectedItem, kbdHighlightIdx }), document.body)] }) });
|
|
33464
|
+
return jsxRuntimeExports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntimeExports.jsxs(Wrapper$3, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, isOpen, onClick: props.onClick, style: props.style, id: props.id, children: [jsxRuntimeExports.jsxs(SelectButton, Object.assign({ disabled: props.disabled, isOpen }, toggleButtonProps, getReferenceProps(), { type: "button", children: [jsxRuntimeExports.jsx(SelectedItem, { size: props.size, children: (_b = (_a = selectedItem === null ? props.placeholder : selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) !== null && _a !== void 0 ? _a : props.placeholder) !== null && _b !== void 0 ? _b : "Select" }), jsxRuntimeExports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM.createPortal(jsxRuntimeExports.jsx(DropdownList$1, { items: props.items, getItemProps, getFloatingProps, style: dropdownStyle, isOpen, getMenuProps, size: props.size, ref: refs.setFloating, className: `${(_c = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _c !== void 0 ? _c : ""} ${props.itemClass}`, itemClass: props.itemClass, maxItems: props.maxItems, selectedItem, kbdHighlightIdx }), document.body)] }) });
|
|
33465
33465
|
}
|
|
33466
33466
|
const StyledSelect$1 = styled(Select)`
|
|
33467
33467
|
margin: 1px solid ${(props) => props.theme.colors.background};
|
|
@@ -34522,7 +34522,7 @@
|
|
|
34522
34522
|
const { getReferenceProps, getFloatingProps } = useInteractions([role]);
|
|
34523
34523
|
const dropdownStyle = React$1.useMemo(() => Object.assign(Object.assign({}, floatingStyles), { marginLeft: -1 }), [floatingStyles]);
|
|
34524
34524
|
const renderListItem = React$1.useCallback((item, index2) => jsxRuntimeExports.jsx(SectionedListItem, { item, index: index2, getItemProps, isSelected: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value) === item.value, isHighlighted: isOpen && kbdHighlightIdx !== void 0 && kbdHighlightIdx === index2 }, `item-${index2}-${isOpen && (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) === item.label}`), [getItemProps, selectedItem, isOpen, kbdHighlightIdx]);
|
|
34525
|
-
return jsxRuntimeExports.jsxs(Wrapper$6, { className: props.className, isDisabled: props.disabled, isErrored: false, isOpen, style: props.style, children: [jsxRuntimeExports.jsxs(InputWrapper$2, { disabled: props.disabled, isOpen, ref: refs.setReference, children: [jsxRuntimeExports.jsx(Input, Object.assign({}, getInputProps({ value: inputValue }), getReferenceProps())), jsxRuntimeExports.jsx(ChevronButton$1, { disabled: props.disabled, isOpen, getToggleButtonProps })] }), ReactDOM.createPortal(jsxRuntimeExports.jsx(DropdownList$1, { items, getItemProps, getFloatingProps, style: dropdownStyle, isOpen, getMenuProps, ref: refs.setFloating, kbdHighlightIdx, children: renderListItem }), document.body)] });
|
|
34525
|
+
return jsxRuntimeExports.jsxs(Wrapper$6, { className: props.className, isDisabled: props.disabled, isErrored: false, isOpen, style: props.style, id: props.id, children: [jsxRuntimeExports.jsxs(InputWrapper$2, { disabled: props.disabled, isOpen, ref: refs.setReference, children: [jsxRuntimeExports.jsx(Input, Object.assign({}, getInputProps({ value: inputValue }), getReferenceProps())), jsxRuntimeExports.jsx(ChevronButton$1, { disabled: props.disabled, isOpen, getToggleButtonProps })] }), ReactDOM.createPortal(jsxRuntimeExports.jsx(DropdownList$1, { items, getItemProps, getFloatingProps, style: dropdownStyle, isOpen, getMenuProps, ref: refs.setFloating, kbdHighlightIdx, children: renderListItem }), document.body)] });
|
|
34526
34526
|
}
|
|
34527
34527
|
var toInteger_1;
|
|
34528
34528
|
var hasRequiredToInteger;
|
|
@@ -37056,7 +37056,7 @@
|
|
|
37056
37056
|
function Switch({ className, initialValue = false, labels = {
|
|
37057
37057
|
off: "OFF",
|
|
37058
37058
|
on: "ON"
|
|
37059
|
-
}, lightDark = false, onChange: onChange2, style, value }, ref) {
|
|
37059
|
+
}, lightDark = false, onChange: onChange2, style, value, id }, ref) {
|
|
37060
37060
|
const [enabled, setEnabled] = React$1.useState(value || initialValue);
|
|
37061
37061
|
const labelIconToShow = React$1.useMemo(() => {
|
|
37062
37062
|
if (lightDark) {
|
|
@@ -37075,7 +37075,7 @@
|
|
|
37075
37075
|
}
|
|
37076
37076
|
onChange2 === null || onChange2 === void 0 ? void 0 : onChange2(!enabled);
|
|
37077
37077
|
};
|
|
37078
|
-
return jsxRuntimeExports.jsxs(SwitchWrapper, { className, "data-testid": "wrapper", enabled, onClick, ref, style, children: [jsxRuntimeExports.jsx(SwitchHandle, { "data-testid": "handle", enabled }), jsxRuntimeExports.jsx("div", { style: { userSelect: "none" }, children: labelIconToShow })] });
|
|
37078
|
+
return jsxRuntimeExports.jsxs(SwitchWrapper, { className, "data-testid": "wrapper", enabled, onClick, ref, style, id, children: [jsxRuntimeExports.jsx(SwitchHandle, { "data-testid": "handle", enabled }), jsxRuntimeExports.jsx("div", { style: { userSelect: "none" }, children: labelIconToShow })] });
|
|
37079
37079
|
}
|
|
37080
37080
|
React$1.forwardRef(Switch);
|
|
37081
37081
|
var safeIsNaN$1 = Number.isNaN || function ponyfill(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-core
|
|
3
|
-
Version: 1.21.
|
|
3
|
+
Version: 1.21.3
|
|
4
4
|
Summary: Dara Framework Core
|
|
5
5
|
Home-page: https://dara.causalens.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,10 +21,10 @@ Requires-Dist: cachetools (>=5.0.0,<6.0.0)
|
|
|
21
21
|
Requires-Dist: certifi (>=2024.7.4)
|
|
22
22
|
Requires-Dist: click (==8.1.3)
|
|
23
23
|
Requires-Dist: colorama (>=0.4.6,<0.5.0)
|
|
24
|
-
Requires-Dist: create-dara-app (==1.21.
|
|
24
|
+
Requires-Dist: create-dara-app (==1.21.3)
|
|
25
25
|
Requires-Dist: croniter (>=1.0.15,<3.0.0)
|
|
26
26
|
Requires-Dist: cryptography (>=42.0.4)
|
|
27
|
-
Requires-Dist: dara-components (==1.21.
|
|
27
|
+
Requires-Dist: dara-components (==1.21.3) ; extra == "all"
|
|
28
28
|
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
|
|
29
29
|
Requires-Dist: fastapi (>=0.115.0,<0.116.0)
|
|
30
30
|
Requires-Dist: fastapi_vite_dara (==0.4.0)
|
|
@@ -55,7 +55,7 @@ Description-Content-Type: text/markdown
|
|
|
55
55
|
|
|
56
56
|
# Dara Application Framework
|
|
57
57
|
|
|
58
|
-
<img src="https://github.com/causalens/dara/blob/v1.21.
|
|
58
|
+
<img src="https://github.com/causalens/dara/blob/v1.21.3/img/dara_light.svg?raw=true">
|
|
59
59
|
|
|
60
60
|

|
|
61
61
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -100,7 +100,7 @@ source .venv/bin/activate
|
|
|
100
100
|
dara start
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-

|
|
104
104
|
|
|
105
105
|
Note: `pip` installation uses [PEP 660](https://peps.python.org/pep-0660/) `pyproject.toml`-based editable installs which require `pip >= 21.3` and `setuptools >= 64.0.0`. You can upgrade both with:
|
|
106
106
|
|
|
@@ -117,9 +117,9 @@ Explore some of our favorite apps - a great way of getting started and getting t
|
|
|
117
117
|
|
|
118
118
|
| Dara App | Description |
|
|
119
119
|
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
120
|
-
|  | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
|
|
121
|
+
|  | Demonstrates how to enable the user to interact with plots, trigger actions based on clicks, mouse movements and other interactions with `Bokeh` or `Plotly` plots |
|
|
122
|
+
|  | Demonstrates how to use the `CausalGraphViewer` component to display your graphs or networks, customising the displayed information through colors and tooltips, and updating the page based on user interaction. |
|
|
123
123
|
|
|
124
124
|
Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
|
|
125
125
|
|
|
@@ -146,9 +146,9 @@ And the supporting UI packages and tools.
|
|
|
146
146
|
- `ui-utils` - miscellaneous utility functions
|
|
147
147
|
- `ui-widgets` - widget components
|
|
148
148
|
|
|
149
|
-
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.21.
|
|
149
|
+
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.21.3/CONTRIBUTING.md) file.
|
|
150
150
|
|
|
151
151
|
## License
|
|
152
152
|
|
|
153
|
-
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.21.
|
|
153
|
+
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.21.3/LICENSE).
|
|
154
154
|
|
|
@@ -93,7 +93,7 @@ dara/core/router/compat.py,sha256=WAVzDcJFJOVoIQ5inplIhXD58TWsWwTTebTCqpG4nGs,31
|
|
|
93
93
|
dara/core/router/components.py,sha256=MDaiQ8Y0-94EH0Jm4j7p9S141k8G4osSbOKSTSu3aOM,4433
|
|
94
94
|
dara/core/router/dependency_graph.py,sha256=AyjSk3DuvCgACrgpID4oSpms1X6GQJUbt-scY5X_LN4,2305
|
|
95
95
|
dara/core/router/router.py,sha256=1r3rFGiftOXC6GP66hKqTdcVNDRJsZWBWvL74wNG4dA,29719
|
|
96
|
-
dara/core/umd/dara.core.umd.cjs,sha256=
|
|
96
|
+
dara/core/umd/dara.core.umd.cjs,sha256=ZPpEZP3w_XsC4CmeCdt1j6gTZUuKE1fcwdBiBDG2C-0,5143753
|
|
97
97
|
dara/core/umd/style.css,sha256=yT3PKpi2sKI2-kQIF8xtVbTPQqgpK7-Ua7tfzDPuSsI,4095881
|
|
98
98
|
dara/core/visual/__init__.py,sha256=QN0wbG9HPQ_vXh8BO8DnBXeYLIENVTNtRmYzZf1lx7c,577
|
|
99
99
|
dara/core/visual/components/__init__.py,sha256=nmCsnMLXeZAjkhMYz-mIFodpVY-69IO1fvwwXbFlMQ4,2447
|
|
@@ -120,8 +120,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
|
|
|
120
120
|
dara/core/visual/themes/dark.py,sha256=UQGDooOc8ric73eHs9E0ltYP4UCrwqQ3QxqN_fb4PwY,1942
|
|
121
121
|
dara/core/visual/themes/definitions.py,sha256=5g83t24w8Ar51Cl9REBJfCU7_DtlashBQeUTKDg3D1M,2862
|
|
122
122
|
dara/core/visual/themes/light.py,sha256=-Tviq8oEwGbdFULoDOqPuHO0UpAZGsBy8qFi0kAGolQ,1944
|
|
123
|
-
dara_core-1.21.
|
|
124
|
-
dara_core-1.21.
|
|
125
|
-
dara_core-1.21.
|
|
126
|
-
dara_core-1.21.
|
|
127
|
-
dara_core-1.21.
|
|
123
|
+
dara_core-1.21.3.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
124
|
+
dara_core-1.21.3.dist-info/METADATA,sha256=P8O2VBTiSSG6w_PdTOdvOhnFDC7uVkcDSPx6zP7n5FA,7534
|
|
125
|
+
dara_core-1.21.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
126
|
+
dara_core-1.21.3.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
|
|
127
|
+
dara_core-1.21.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|