@oliasoft-open-source/charts-library 3.4.2 → 3.4.4
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.
package/dist/index.js
CHANGED
|
@@ -22087,6 +22087,9 @@ const reducer$1 = (state, action) => {
|
|
|
22087
22087
|
if (draft.zoomEnabled) {
|
|
22088
22088
|
draft.zoomEnabled = false;
|
|
22089
22089
|
}
|
|
22090
|
+
if (draft.enableDragPoints) {
|
|
22091
|
+
draft.enableDragPoints = false;
|
|
22092
|
+
}
|
|
22090
22093
|
break;
|
|
22091
22094
|
}
|
|
22092
22095
|
case TOGGLE_POINTS: {
|
|
@@ -23731,17 +23734,18 @@ const reducer = (state, action) => {
|
|
|
23731
23734
|
return state;
|
|
23732
23735
|
}
|
|
23733
23736
|
};
|
|
23734
|
-
const AxesOptionsPopover = ({
|
|
23735
|
-
initialAxesRanges,
|
|
23736
|
-
axes,
|
|
23737
|
-
controlsAxesLabels,
|
|
23738
|
-
onUpdateAxes,
|
|
23739
|
-
onResetAxes,
|
|
23740
|
-
close,
|
|
23741
|
-
depthType,
|
|
23742
|
-
translations
|
|
23743
|
-
}) => {
|
|
23737
|
+
const AxesOptionsPopover = (optionsPopover) => {
|
|
23744
23738
|
var _a2;
|
|
23739
|
+
const {
|
|
23740
|
+
initialAxesRanges,
|
|
23741
|
+
axes,
|
|
23742
|
+
controlsAxesLabels,
|
|
23743
|
+
onUpdateAxes,
|
|
23744
|
+
onResetAxes,
|
|
23745
|
+
close,
|
|
23746
|
+
depthType,
|
|
23747
|
+
translations
|
|
23748
|
+
} = optionsPopover;
|
|
23745
23749
|
const [depthTypeState, setDepthTypeState] = useState(
|
|
23746
23750
|
depthType == null ? void 0 : depthType.selectedDepthType
|
|
23747
23751
|
);
|
|
@@ -23756,13 +23760,13 @@ const AxesOptionsPopover = ({
|
|
|
23756
23760
|
const { errors, valid } = validateAxes(formState);
|
|
23757
23761
|
const onEditValue = ({ name: name2, value, id }) => {
|
|
23758
23762
|
dispatch({
|
|
23759
|
-
type: actionTypes.
|
|
23763
|
+
type: actionTypes.ValueUpdated,
|
|
23760
23764
|
payload: { name: name2, value, id }
|
|
23761
23765
|
});
|
|
23762
23766
|
};
|
|
23763
23767
|
const onEditUnit = ({ name: name2, value, id }) => {
|
|
23764
23768
|
dispatch({
|
|
23765
|
-
type: actionTypes.
|
|
23769
|
+
type: actionTypes.UnitUpdated,
|
|
23766
23770
|
payload: { name: name2, value, id }
|
|
23767
23771
|
});
|
|
23768
23772
|
};
|
|
@@ -23777,10 +23781,11 @@ const AxesOptionsPopover = ({
|
|
|
23777
23781
|
onUpdateAxes({
|
|
23778
23782
|
axes: sanitizedFormState
|
|
23779
23783
|
});
|
|
23780
|
-
sanitizedFormState.
|
|
23781
|
-
var _a3;
|
|
23782
|
-
|
|
23783
|
-
|
|
23784
|
+
sanitizedFormState.forEach((el, i2) => {
|
|
23785
|
+
var _a3, _b2, _c2;
|
|
23786
|
+
const selectedUnit = (_a3 = el.unit) == null ? void 0 : _a3.selectedUnit;
|
|
23787
|
+
if (selectedUnit) {
|
|
23788
|
+
(_c2 = (_b2 = axes == null ? void 0 : axes[i2]) == null ? void 0 : _b2.unit) == null ? void 0 : _c2.setSelectedUnit(selectedUnit);
|
|
23784
23789
|
}
|
|
23785
23790
|
});
|
|
23786
23791
|
if (depthType) {
|
|
@@ -23791,13 +23796,14 @@ const AxesOptionsPopover = ({
|
|
|
23791
23796
|
};
|
|
23792
23797
|
const onReset = () => {
|
|
23793
23798
|
dispatch({
|
|
23794
|
-
type: actionTypes.
|
|
23799
|
+
type: actionTypes.Reset,
|
|
23795
23800
|
payload: { axes, initialAxesRanges }
|
|
23796
23801
|
});
|
|
23797
|
-
initialAxesRanges.
|
|
23798
|
-
var _a3;
|
|
23799
|
-
|
|
23800
|
-
|
|
23802
|
+
initialAxesRanges.forEach((el, i2) => {
|
|
23803
|
+
var _a3, _b2, _c2;
|
|
23804
|
+
const selectedUnit = (_a3 = el == null ? void 0 : el.unit) == null ? void 0 : _a3.selectedUnit;
|
|
23805
|
+
if (selectedUnit) {
|
|
23806
|
+
(_c2 = (_b2 = axes == null ? void 0 : axes[i2]) == null ? void 0 : _b2.unit) == null ? void 0 : _c2.setSelectedUnit(selectedUnit);
|
|
23801
23807
|
}
|
|
23802
23808
|
});
|
|
23803
23809
|
onResetAxes();
|
|
@@ -23911,15 +23917,16 @@ const AxesOptionsPopover = ({
|
|
|
23911
23917
|
] })
|
|
23912
23918
|
] });
|
|
23913
23919
|
};
|
|
23914
|
-
const AxesOptions = ({
|
|
23915
|
-
|
|
23916
|
-
|
|
23917
|
-
|
|
23918
|
-
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23920
|
+
const AxesOptions = (optionsPopover) => {
|
|
23921
|
+
const {
|
|
23922
|
+
initialAxesRanges,
|
|
23923
|
+
axes,
|
|
23924
|
+
controlsAxesLabels,
|
|
23925
|
+
onUpdateAxes,
|
|
23926
|
+
onResetAxes,
|
|
23927
|
+
depthType,
|
|
23928
|
+
translations
|
|
23929
|
+
} = optionsPopover;
|
|
23923
23930
|
return /* @__PURE__ */ jsx(
|
|
23924
23931
|
Popover,
|
|
23925
23932
|
{
|