sag_components 2.0.0-beta67 → 2.0.0-beta68
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.esm.js +106 -100
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +106 -100
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -9480,70 +9480,67 @@ const DropdownMain = styled.div`
|
|
|
9480
9480
|
`;
|
|
9481
9481
|
|
|
9482
9482
|
/* eslint-disable react/prop-types */
|
|
9483
|
-
const DropdownNew =
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
elementType: elementType
|
|
9545
|
-
}));
|
|
9546
|
-
};
|
|
9483
|
+
const DropdownNew = ({
|
|
9484
|
+
isMulti,
|
|
9485
|
+
label,
|
|
9486
|
+
labelEmptyValue,
|
|
9487
|
+
options,
|
|
9488
|
+
selectedValue,
|
|
9489
|
+
placeHolder,
|
|
9490
|
+
onChange,
|
|
9491
|
+
required,
|
|
9492
|
+
disabled,
|
|
9493
|
+
width,
|
|
9494
|
+
error,
|
|
9495
|
+
errorMessage,
|
|
9496
|
+
labelColor,
|
|
9497
|
+
checkBoxColor,
|
|
9498
|
+
xIconShow,
|
|
9499
|
+
showLabelOnTop,
|
|
9500
|
+
orderBy,
|
|
9501
|
+
elementType
|
|
9502
|
+
}) => /*#__PURE__*/React$1.createElement(DropdownMain, {
|
|
9503
|
+
className: "DropdownMain",
|
|
9504
|
+
width: width
|
|
9505
|
+
}, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
|
|
9506
|
+
className: "DropdownMultiNew",
|
|
9507
|
+
placeHolder: placeHolder,
|
|
9508
|
+
label: label,
|
|
9509
|
+
labelEmptyValue: labelEmptyValue,
|
|
9510
|
+
labelColor: labelColor,
|
|
9511
|
+
checkBoxColor: checkBoxColor,
|
|
9512
|
+
required: required,
|
|
9513
|
+
options: options,
|
|
9514
|
+
width: width,
|
|
9515
|
+
disabled: disabled,
|
|
9516
|
+
error: error,
|
|
9517
|
+
errorMessage: errorMessage,
|
|
9518
|
+
selectedValue: selectedValue,
|
|
9519
|
+
xIconShow: xIconShow,
|
|
9520
|
+
onChange: onChange,
|
|
9521
|
+
showLabelOnTop: showLabelOnTop,
|
|
9522
|
+
orderBy: orderBy,
|
|
9523
|
+
elementType: elementType
|
|
9524
|
+
}) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
|
|
9525
|
+
className: "DropdownSingleNew",
|
|
9526
|
+
placeHolder: placeHolder,
|
|
9527
|
+
label: label,
|
|
9528
|
+
labelEmptyValue: labelEmptyValue,
|
|
9529
|
+
labelColor: labelColor,
|
|
9530
|
+
checkBoxColor: checkBoxColor,
|
|
9531
|
+
required: required,
|
|
9532
|
+
options: options,
|
|
9533
|
+
width: width,
|
|
9534
|
+
disabled: disabled,
|
|
9535
|
+
error: error,
|
|
9536
|
+
errorMessage: errorMessage,
|
|
9537
|
+
selectedValue: selectedValue,
|
|
9538
|
+
xIconShow: xIconShow,
|
|
9539
|
+
onChange: onChange,
|
|
9540
|
+
showLabelOnTop: showLabelOnTop,
|
|
9541
|
+
orderBy: orderBy,
|
|
9542
|
+
elementType: elementType
|
|
9543
|
+
}));
|
|
9547
9544
|
DropdownNew.propTypes = {
|
|
9548
9545
|
placeHolder: PropTypes.string,
|
|
9549
9546
|
label: PropTypes.string,
|
|
@@ -24130,22 +24127,21 @@ const DeleteIcon = styled.div`
|
|
|
24130
24127
|
position: absolute;
|
|
24131
24128
|
`;
|
|
24132
24129
|
|
|
24133
|
-
const QuickFilterDropdownSingle =
|
|
24134
|
-
|
|
24135
|
-
|
|
24136
|
-
|
|
24137
|
-
|
|
24138
|
-
|
|
24139
|
-
|
|
24140
|
-
|
|
24141
|
-
|
|
24142
|
-
|
|
24143
|
-
|
|
24144
|
-
|
|
24145
|
-
|
|
24146
|
-
|
|
24147
|
-
|
|
24148
|
-
} = _ref;
|
|
24130
|
+
const QuickFilterDropdownSingle = ({
|
|
24131
|
+
label,
|
|
24132
|
+
hoverColor,
|
|
24133
|
+
options,
|
|
24134
|
+
selectedValue,
|
|
24135
|
+
placeHolder,
|
|
24136
|
+
onChange,
|
|
24137
|
+
disabled,
|
|
24138
|
+
width,
|
|
24139
|
+
error,
|
|
24140
|
+
errorMessage,
|
|
24141
|
+
xIconShow,
|
|
24142
|
+
labelColor,
|
|
24143
|
+
showLabelOnTop
|
|
24144
|
+
}) => {
|
|
24149
24145
|
const [isFocused, setIsFocused] = useState(false);
|
|
24150
24146
|
const [showOptions, setShowOptions] = useState(false);
|
|
24151
24147
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24543,24 +24539,23 @@ const IconContainer$2 = styled.div`
|
|
|
24543
24539
|
cursor: pointer;
|
|
24544
24540
|
`;
|
|
24545
24541
|
|
|
24546
|
-
const QuickFilterDropdownMultiSelection =
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
|
|
24563
|
-
} = _ref;
|
|
24542
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24543
|
+
label,
|
|
24544
|
+
labelEmptyValue,
|
|
24545
|
+
options,
|
|
24546
|
+
selectedValue,
|
|
24547
|
+
placeHolder,
|
|
24548
|
+
onChange,
|
|
24549
|
+
required,
|
|
24550
|
+
disabled,
|
|
24551
|
+
width,
|
|
24552
|
+
error,
|
|
24553
|
+
errorMessage,
|
|
24554
|
+
labelColor,
|
|
24555
|
+
xIconShow,
|
|
24556
|
+
checkBoxColor,
|
|
24557
|
+
showLabelOnTop
|
|
24558
|
+
}) => {
|
|
24564
24559
|
const [isFocused, setIsFocused] = useState(false);
|
|
24565
24560
|
const [showOptions, setShowOptions] = useState(false);
|
|
24566
24561
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -30430,6 +30425,8 @@ const BubbleChart = _ref => {
|
|
|
30430
30425
|
backgroundColor = 'white',
|
|
30431
30426
|
showAxis = false
|
|
30432
30427
|
} = _ref;
|
|
30428
|
+
const [curosrMouse, setCurosrMouse] = useState("default");
|
|
30429
|
+
|
|
30433
30430
|
// Calculate the medians and domain for raw X, Y, and Z values
|
|
30434
30431
|
const {
|
|
30435
30432
|
xMedian,
|
|
@@ -30514,6 +30511,7 @@ const BubbleChart = _ref => {
|
|
|
30514
30511
|
// Refs for the chart container
|
|
30515
30512
|
const containerRef = useRef(null);
|
|
30516
30513
|
const scatterChartRef = useRef(null);
|
|
30514
|
+
const scatterFullChartRef = useRef(null);
|
|
30517
30515
|
|
|
30518
30516
|
// Set up initial domain
|
|
30519
30517
|
useEffect(() => {
|
|
@@ -30686,9 +30684,9 @@ const BubbleChart = _ref => {
|
|
|
30686
30684
|
e.preventDefault();
|
|
30687
30685
|
}
|
|
30688
30686
|
}, [viewDomain]); // Add viewDomain as dependency to capture current value
|
|
30689
|
-
|
|
30690
30687
|
// Handle mouse move for dragging
|
|
30691
30688
|
const handleMouseMove = useCallback(e => {
|
|
30689
|
+
/* cursor feedback */
|
|
30692
30690
|
if (!isDragging) return;
|
|
30693
30691
|
const dx = e.clientX - dragStart.x;
|
|
30694
30692
|
const dy = e.clientY - dragStart.y;
|
|
@@ -30797,6 +30795,7 @@ const BubbleChart = _ref => {
|
|
|
30797
30795
|
|
|
30798
30796
|
// Handle mouse wheel
|
|
30799
30797
|
const handleWheel = useCallback(e => {
|
|
30798
|
+
if (!e.ctrlKey) return; // Only zoom with Ctrl key
|
|
30800
30799
|
e.preventDefault();
|
|
30801
30800
|
if (e.deltaY < 0) {
|
|
30802
30801
|
handleZoomIn();
|
|
@@ -30885,7 +30884,11 @@ const BubbleChart = _ref => {
|
|
|
30885
30884
|
const formattedY = formatUnits(yMedian);
|
|
30886
30885
|
return `${formattedX}, ${formattedY}`;
|
|
30887
30886
|
}, [xMedian, yMedian]);
|
|
30888
|
-
|
|
30887
|
+
const handleChartMouseMove = e => {
|
|
30888
|
+
if (!scatterFullChartRef.current) return;
|
|
30889
|
+
const temp = isDragging ? 'move' : 'zoom-in';
|
|
30890
|
+
setCurosrMouse(temp);
|
|
30891
|
+
};
|
|
30889
30892
|
// Render the component
|
|
30890
30893
|
return /*#__PURE__*/React$1.createElement(BubbleChartContainer, {
|
|
30891
30894
|
width: width,
|
|
@@ -30910,6 +30913,9 @@ const BubbleChart = _ref => {
|
|
|
30910
30913
|
height: "100%",
|
|
30911
30914
|
"data-testid": "responsive-container"
|
|
30912
30915
|
}, /*#__PURE__*/React$1.createElement(ScatterChart, {
|
|
30916
|
+
ref: scatterFullChartRef,
|
|
30917
|
+
onMouseMove: handleChartMouseMove,
|
|
30918
|
+
cursor: curosrMouse,
|
|
30913
30919
|
margin: {
|
|
30914
30920
|
top: 60,
|
|
30915
30921
|
right: 190,
|