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 CHANGED
@@ -9480,70 +9480,67 @@ const DropdownMain = styled.div`
9480
9480
  `;
9481
9481
 
9482
9482
  /* eslint-disable react/prop-types */
9483
- const DropdownNew = _ref => {
9484
- let {
9485
- isMulti,
9486
- label,
9487
- labelEmptyValue,
9488
- options,
9489
- selectedValue,
9490
- placeHolder,
9491
- onChange,
9492
- required,
9493
- disabled,
9494
- width,
9495
- error,
9496
- errorMessage,
9497
- labelColor,
9498
- checkBoxColor,
9499
- xIconShow,
9500
- showLabelOnTop,
9501
- orderBy,
9502
- elementType
9503
- } = _ref;
9504
- return /*#__PURE__*/React$1.createElement(DropdownMain, {
9505
- className: "DropdownMain",
9506
- width: width
9507
- }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9508
- className: "DropdownMultiNew",
9509
- placeHolder: placeHolder,
9510
- label: label,
9511
- labelEmptyValue: labelEmptyValue,
9512
- labelColor: labelColor,
9513
- checkBoxColor: checkBoxColor,
9514
- required: required,
9515
- options: options,
9516
- width: width,
9517
- disabled: disabled,
9518
- error: error,
9519
- errorMessage: errorMessage,
9520
- selectedValue: selectedValue,
9521
- xIconShow: xIconShow,
9522
- onChange: onChange,
9523
- showLabelOnTop: showLabelOnTop,
9524
- orderBy: orderBy,
9525
- elementType: elementType
9526
- }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9527
- className: "DropdownSingleNew",
9528
- placeHolder: placeHolder,
9529
- label: label,
9530
- labelEmptyValue: labelEmptyValue,
9531
- labelColor: labelColor,
9532
- checkBoxColor: checkBoxColor,
9533
- required: required,
9534
- options: options,
9535
- width: width,
9536
- disabled: disabled,
9537
- error: error,
9538
- errorMessage: errorMessage,
9539
- selectedValue: selectedValue,
9540
- xIconShow: xIconShow,
9541
- onChange: onChange,
9542
- showLabelOnTop: showLabelOnTop,
9543
- orderBy: orderBy,
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 = _ref => {
24134
- let {
24135
- label,
24136
- hoverColor,
24137
- options,
24138
- selectedValue,
24139
- placeHolder,
24140
- onChange,
24141
- disabled,
24142
- width,
24143
- error,
24144
- errorMessage,
24145
- xIconShow,
24146
- labelColor,
24147
- showLabelOnTop
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 = _ref => {
24547
- let {
24548
- label,
24549
- labelEmptyValue,
24550
- options,
24551
- selectedValue,
24552
- placeHolder,
24553
- onChange,
24554
- required,
24555
- disabled,
24556
- width,
24557
- error,
24558
- errorMessage,
24559
- labelColor,
24560
- xIconShow,
24561
- checkBoxColor,
24562
- showLabelOnTop
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,