sag_components 2.0.0-beta94 → 2.0.0-beta95

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.d.ts CHANGED
@@ -1079,7 +1079,7 @@ declare function LinkButton({ text, type, size, height, width, disabled, textCol
1079
1079
  rightIcon?: string;
1080
1080
  }): react_jsx_runtime.JSX.Element;
1081
1081
 
1082
- declare function BubbleChart({ data, title, subtitle, leftHeader, rightHeader, topHeader, bottomHeader, colorPalette, height, width, backgroundColor, showAxis, }: {
1082
+ declare function BubbleChart({ data, title, subtitle, leftHeader, rightHeader, topHeader, bottomHeader, colorPalette, height, width, backgroundColor, showAxis, noDataText, }: {
1083
1083
  data?: any[];
1084
1084
  title?: string;
1085
1085
  subtitle?: string;
@@ -1092,6 +1092,7 @@ declare function BubbleChart({ data, title, subtitle, leftHeader, rightHeader, t
1092
1092
  width?: string;
1093
1093
  backgroundColor?: string;
1094
1094
  showAxis?: boolean;
1095
+ noDataText?: string;
1095
1096
  }): react_jsx_runtime.JSX.Element;
1096
1097
 
1097
1098
  declare function BatteryChart(props: any): react_jsx_runtime.JSX.Element;
package/dist/index.esm.js CHANGED
@@ -9463,67 +9463,70 @@ const DropdownMain = styled.div`
9463
9463
  `;
9464
9464
 
9465
9465
  /* eslint-disable react/prop-types */
9466
- const DropdownNew = ({
9467
- isMulti,
9468
- label,
9469
- labelEmptyValue,
9470
- options,
9471
- selectedValue,
9472
- placeHolder,
9473
- onChange,
9474
- required,
9475
- disabled,
9476
- width,
9477
- error,
9478
- errorMessage,
9479
- labelColor,
9480
- checkBoxColor,
9481
- xIconShow,
9482
- showLabelOnTop,
9483
- orderBy,
9484
- elementType
9485
- }) => /*#__PURE__*/React$1.createElement(DropdownMain, {
9486
- className: "DropdownMain",
9487
- width: width
9488
- }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9489
- className: "DropdownMultiNew",
9490
- placeHolder: placeHolder,
9491
- label: label,
9492
- labelEmptyValue: labelEmptyValue,
9493
- labelColor: labelColor,
9494
- checkBoxColor: checkBoxColor,
9495
- required: required,
9496
- options: options,
9497
- width: width,
9498
- disabled: disabled,
9499
- error: error,
9500
- errorMessage: errorMessage,
9501
- selectedValue: selectedValue,
9502
- xIconShow: xIconShow,
9503
- onChange: onChange,
9504
- showLabelOnTop: showLabelOnTop,
9505
- orderBy: orderBy,
9506
- elementType: elementType
9507
- }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9508
- className: "DropdownSingleNew",
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
- }));
9466
+ const DropdownNew = _ref => {
9467
+ let {
9468
+ isMulti,
9469
+ label,
9470
+ labelEmptyValue,
9471
+ options,
9472
+ selectedValue,
9473
+ placeHolder,
9474
+ onChange,
9475
+ required,
9476
+ disabled,
9477
+ width,
9478
+ error,
9479
+ errorMessage,
9480
+ labelColor,
9481
+ checkBoxColor,
9482
+ xIconShow,
9483
+ showLabelOnTop,
9484
+ orderBy,
9485
+ elementType
9486
+ } = _ref;
9487
+ return /*#__PURE__*/React$1.createElement(DropdownMain, {
9488
+ className: "DropdownMain",
9489
+ width: width
9490
+ }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9491
+ className: "DropdownMultiNew",
9492
+ placeHolder: placeHolder,
9493
+ label: label,
9494
+ labelEmptyValue: labelEmptyValue,
9495
+ labelColor: labelColor,
9496
+ checkBoxColor: checkBoxColor,
9497
+ required: required,
9498
+ options: options,
9499
+ width: width,
9500
+ disabled: disabled,
9501
+ error: error,
9502
+ errorMessage: errorMessage,
9503
+ selectedValue: selectedValue,
9504
+ xIconShow: xIconShow,
9505
+ onChange: onChange,
9506
+ showLabelOnTop: showLabelOnTop,
9507
+ orderBy: orderBy,
9508
+ elementType: elementType
9509
+ }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9510
+ className: "DropdownSingleNew",
9511
+ placeHolder: placeHolder,
9512
+ label: label,
9513
+ labelEmptyValue: labelEmptyValue,
9514
+ labelColor: labelColor,
9515
+ checkBoxColor: checkBoxColor,
9516
+ required: required,
9517
+ options: options,
9518
+ width: width,
9519
+ disabled: disabled,
9520
+ error: error,
9521
+ errorMessage: errorMessage,
9522
+ selectedValue: selectedValue,
9523
+ xIconShow: xIconShow,
9524
+ onChange: onChange,
9525
+ showLabelOnTop: showLabelOnTop,
9526
+ orderBy: orderBy,
9527
+ elementType: elementType
9528
+ }));
9529
+ };
9527
9530
  DropdownNew.propTypes = {
9528
9531
  placeHolder: PropTypes.string,
9529
9532
  label: PropTypes.string,
@@ -9951,20 +9954,21 @@ const DatePicker = ({
9951
9954
  };
9952
9955
 
9953
9956
  /* eslint-disable import/no-extraneous-dependencies */
9954
- const RangePicker = ({
9955
- label,
9956
- onChange,
9957
- borderRadius,
9958
- required,
9959
- width,
9960
- height,
9961
- placeholder,
9962
- disabled,
9963
- borderColor,
9964
- borderColorFocus,
9965
- textColor,
9966
- selectedValue
9967
- }) => {
9957
+ const RangePicker = _ref => {
9958
+ let {
9959
+ label,
9960
+ onChange,
9961
+ borderRadius,
9962
+ required,
9963
+ width,
9964
+ height,
9965
+ placeholder,
9966
+ disabled,
9967
+ borderColor,
9968
+ borderColorFocus,
9969
+ textColor,
9970
+ selectedValue
9971
+ } = _ref;
9968
9972
  const [isFocused, setIsFocused] = useState(false);
9969
9973
  const [isOpen, setIsOpen] = useState(false);
9970
9974
  const [value, setValue] = useState(''); // Added value state
@@ -10388,23 +10392,24 @@ const QuarterPopupPicker = ({
10388
10392
  };
10389
10393
 
10390
10394
  /* eslint-disable import/no-extraneous-dependencies */
10391
- const QuarterPicker = ({
10392
- availableQuarters,
10393
- // ["Q1-2024"]
10394
- label,
10395
- onChange,
10396
- borderRadius,
10397
- required,
10398
- width,
10399
- height,
10400
- placeholder,
10401
- disabled,
10402
- borderColor,
10403
- borderColorFocus,
10404
- textColor,
10405
- selectedValue,
10406
- startYear
10407
- }) => {
10395
+ const QuarterPicker = _ref => {
10396
+ let {
10397
+ availableQuarters,
10398
+ // ["Q1-2024"]
10399
+ label,
10400
+ onChange,
10401
+ borderRadius,
10402
+ required,
10403
+ width,
10404
+ height,
10405
+ placeholder,
10406
+ disabled,
10407
+ borderColor,
10408
+ borderColorFocus,
10409
+ textColor,
10410
+ selectedValue,
10411
+ startYear
10412
+ } = _ref;
10408
10413
  const [isFocused, setIsFocused] = useState(false);
10409
10414
  const [isOpen, setIsOpen] = useState(false);
10410
10415
  const [value, setValue] = useState('');
@@ -10846,22 +10851,23 @@ const MonthPopupPicker = ({
10846
10851
  };
10847
10852
 
10848
10853
  /* eslint-disable import/no-extraneous-dependencies */
10849
- const MonthPicker = ({
10850
- availableMonths,
10851
- label,
10852
- onChange,
10853
- borderRadius,
10854
- required,
10855
- width,
10856
- height,
10857
- placeholder,
10858
- disabled,
10859
- borderColor,
10860
- borderColorFocus,
10861
- textColor,
10862
- selectedValue,
10863
- startYear
10864
- }) => {
10854
+ const MonthPicker = _ref => {
10855
+ let {
10856
+ availableMonths,
10857
+ label,
10858
+ onChange,
10859
+ borderRadius,
10860
+ required,
10861
+ width,
10862
+ height,
10863
+ placeholder,
10864
+ disabled,
10865
+ borderColor,
10866
+ borderColorFocus,
10867
+ textColor,
10868
+ selectedValue,
10869
+ startYear
10870
+ } = _ref;
10865
10871
  const [isFocused, setIsFocused] = useState(false);
10866
10872
  const [isOpen, setIsOpen] = useState(false);
10867
10873
  const [value, setValue] = useState('');
@@ -30269,7 +30275,8 @@ const BubbleChart = _ref => {
30269
30275
  height = '600px',
30270
30276
  width = '100%',
30271
30277
  backgroundColor = 'white',
30272
- showAxis = false
30278
+ showAxis = false,
30279
+ noDataText = ''
30273
30280
  } = _ref;
30274
30281
  const [curosrMouse, setCurosrMouse] = useState("default");
30275
30282
 
@@ -30758,7 +30765,11 @@ const BubbleChart = _ref => {
30758
30765
  },
30759
30766
  backgroundColor: backgroundColor,
30760
30767
  "data-testid": "bubble-chart-container"
30761
- }, /*#__PURE__*/React$1.createElement(HeaderContainer, {
30768
+ }, !data || data.length === 0 ? /*#__PURE__*/React$1.createElement(NoDataFoundMessage, {
30769
+ noDataText: noDataText,
30770
+ width: width,
30771
+ height: height
30772
+ }) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer, {
30762
30773
  "data-testid": "header-container"
30763
30774
  }, /*#__PURE__*/React$1.createElement(ChartTitle, {
30764
30775
  "data-testid": "chart-title"
@@ -31003,7 +31014,7 @@ const BubbleChart = _ref => {
31003
31014
  }, "+"), /*#__PURE__*/React$1.createElement(ZoomResetButton, {
31004
31015
  onClick: handleReset,
31005
31016
  "data-testid": "zoom-reset-button"
31006
- }, "Reset")));
31017
+ }, "Reset"))));
31007
31018
  };
31008
31019
 
31009
31020
  const BatteryChartContainer = styled.div`