sag_components 2.0.0-beta45 → 2.0.0-beta47

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
@@ -9837,70 +9837,67 @@ const DropdownMain = styled.div`
9837
9837
  `;
9838
9838
 
9839
9839
  /* eslint-disable react/prop-types */
9840
- const DropdownNew = _ref => {
9841
- let {
9842
- isMulti,
9843
- label,
9844
- labelEmptyValue,
9845
- options,
9846
- selectedValue,
9847
- placeHolder,
9848
- onChange,
9849
- required,
9850
- disabled,
9851
- width,
9852
- error,
9853
- errorMessage,
9854
- labelColor,
9855
- checkBoxColor,
9856
- xIconShow,
9857
- showLabelOnTop,
9858
- orderBy,
9859
- elementType
9860
- } = _ref;
9861
- return /*#__PURE__*/React$1.createElement(DropdownMain, {
9862
- className: "DropdownMain",
9863
- width: width
9864
- }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9865
- className: "DropdownMultiNew",
9866
- placeHolder: placeHolder,
9867
- label: label,
9868
- labelEmptyValue: labelEmptyValue,
9869
- labelColor: labelColor,
9870
- checkBoxColor: checkBoxColor,
9871
- required: required,
9872
- options: options,
9873
- width: width,
9874
- disabled: disabled,
9875
- error: error,
9876
- errorMessage: errorMessage,
9877
- selectedValue: selectedValue,
9878
- xIconShow: xIconShow,
9879
- onChange: onChange,
9880
- showLabelOnTop: showLabelOnTop,
9881
- orderBy: orderBy,
9882
- elementType: elementType
9883
- }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9884
- className: "DropdownSingleNew",
9885
- placeHolder: placeHolder,
9886
- label: label,
9887
- labelEmptyValue: labelEmptyValue,
9888
- labelColor: labelColor,
9889
- checkBoxColor: checkBoxColor,
9890
- required: required,
9891
- options: options,
9892
- width: width,
9893
- disabled: disabled,
9894
- error: error,
9895
- errorMessage: errorMessage,
9896
- selectedValue: selectedValue,
9897
- xIconShow: xIconShow,
9898
- onChange: onChange,
9899
- showLabelOnTop: showLabelOnTop,
9900
- orderBy: orderBy,
9901
- elementType: elementType
9902
- }));
9903
- };
9840
+ const DropdownNew = ({
9841
+ isMulti,
9842
+ label,
9843
+ labelEmptyValue,
9844
+ options,
9845
+ selectedValue,
9846
+ placeHolder,
9847
+ onChange,
9848
+ required,
9849
+ disabled,
9850
+ width,
9851
+ error,
9852
+ errorMessage,
9853
+ labelColor,
9854
+ checkBoxColor,
9855
+ xIconShow,
9856
+ showLabelOnTop,
9857
+ orderBy,
9858
+ elementType
9859
+ }) => /*#__PURE__*/React$1.createElement(DropdownMain, {
9860
+ className: "DropdownMain",
9861
+ width: width
9862
+ }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9863
+ className: "DropdownMultiNew",
9864
+ placeHolder: placeHolder,
9865
+ label: label,
9866
+ labelEmptyValue: labelEmptyValue,
9867
+ labelColor: labelColor,
9868
+ checkBoxColor: checkBoxColor,
9869
+ required: required,
9870
+ options: options,
9871
+ width: width,
9872
+ disabled: disabled,
9873
+ error: error,
9874
+ errorMessage: errorMessage,
9875
+ selectedValue: selectedValue,
9876
+ xIconShow: xIconShow,
9877
+ onChange: onChange,
9878
+ showLabelOnTop: showLabelOnTop,
9879
+ orderBy: orderBy,
9880
+ elementType: elementType
9881
+ }) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
9882
+ className: "DropdownSingleNew",
9883
+ placeHolder: placeHolder,
9884
+ label: label,
9885
+ labelEmptyValue: labelEmptyValue,
9886
+ labelColor: labelColor,
9887
+ checkBoxColor: checkBoxColor,
9888
+ required: required,
9889
+ options: options,
9890
+ width: width,
9891
+ disabled: disabled,
9892
+ error: error,
9893
+ errorMessage: errorMessage,
9894
+ selectedValue: selectedValue,
9895
+ xIconShow: xIconShow,
9896
+ onChange: onChange,
9897
+ showLabelOnTop: showLabelOnTop,
9898
+ orderBy: orderBy,
9899
+ elementType: elementType
9900
+ }));
9904
9901
  DropdownNew.propTypes = {
9905
9902
  placeHolder: PropTypes.string,
9906
9903
  label: PropTypes.string,
@@ -10314,21 +10311,20 @@ const DatePicker = ({
10314
10311
  };
10315
10312
 
10316
10313
  /* eslint-disable import/no-extraneous-dependencies */
10317
- const RangePicker = _ref => {
10318
- let {
10319
- label,
10320
- onChange,
10321
- borderRadius,
10322
- required,
10323
- width,
10324
- height,
10325
- placeholder,
10326
- disabled,
10327
- borderColor,
10328
- borderColorFocus,
10329
- textColor,
10330
- selectedValue
10331
- } = _ref;
10314
+ const RangePicker = ({
10315
+ label,
10316
+ onChange,
10317
+ borderRadius,
10318
+ required,
10319
+ width,
10320
+ height,
10321
+ placeholder,
10322
+ disabled,
10323
+ borderColor,
10324
+ borderColorFocus,
10325
+ textColor,
10326
+ selectedValue
10327
+ }) => {
10332
10328
  const [isFocused, setIsFocused] = useState(false);
10333
10329
  const [isOpen, setIsOpen] = useState(false);
10334
10330
  const [value, setValue] = useState(''); // Added value state
@@ -10760,23 +10756,22 @@ const QuarterPopupPicker = ({
10760
10756
  };
10761
10757
 
10762
10758
  /* eslint-disable import/no-extraneous-dependencies */
10763
- const QuarterPicker = _ref => {
10764
- let {
10765
- availableQuarters,
10766
- // ["Q1-2024"]
10767
- label,
10768
- onChange,
10769
- borderRadius,
10770
- required,
10771
- width,
10772
- height,
10773
- placeholder,
10774
- disabled,
10775
- borderColor,
10776
- borderColorFocus,
10777
- textColor,
10778
- selectedValue
10779
- } = _ref;
10759
+ const QuarterPicker = ({
10760
+ availableQuarters,
10761
+ // ["Q1-2024"]
10762
+ label,
10763
+ onChange,
10764
+ borderRadius,
10765
+ required,
10766
+ width,
10767
+ height,
10768
+ placeholder,
10769
+ disabled,
10770
+ borderColor,
10771
+ borderColorFocus,
10772
+ textColor,
10773
+ selectedValue
10774
+ }) => {
10780
10775
  const [isFocused, setIsFocused] = useState(false);
10781
10776
  const [isOpen, setIsOpen] = useState(false);
10782
10777
  const [value, setValue] = useState('');
@@ -11215,22 +11210,21 @@ const MonthPopupPicker = ({
11215
11210
  };
11216
11211
 
11217
11212
  /* eslint-disable import/no-extraneous-dependencies */
11218
- const MonthPicker = _ref => {
11219
- let {
11220
- availableMonths,
11221
- label,
11222
- onChange,
11223
- borderRadius,
11224
- required,
11225
- width,
11226
- height,
11227
- placeholder,
11228
- disabled,
11229
- borderColor,
11230
- borderColorFocus,
11231
- textColor,
11232
- selectedValue
11233
- } = _ref;
11213
+ const MonthPicker = ({
11214
+ availableMonths,
11215
+ label,
11216
+ onChange,
11217
+ borderRadius,
11218
+ required,
11219
+ width,
11220
+ height,
11221
+ placeholder,
11222
+ disabled,
11223
+ borderColor,
11224
+ borderColorFocus,
11225
+ textColor,
11226
+ selectedValue
11227
+ }) => {
11234
11228
  const [isFocused, setIsFocused] = useState(false);
11235
11229
  const [isOpen, setIsOpen] = useState(false);
11236
11230
  const [value, setValue] = useState('');
@@ -24455,22 +24449,21 @@ const DeleteIcon = styled.div`
24455
24449
  position: absolute;
24456
24450
  `;
24457
24451
 
24458
- const QuickFilterDropdownSingle = _ref => {
24459
- let {
24460
- label,
24461
- hoverColor,
24462
- options,
24463
- selectedValue,
24464
- placeHolder,
24465
- onChange,
24466
- disabled,
24467
- width,
24468
- error,
24469
- errorMessage,
24470
- xIconShow,
24471
- labelColor,
24472
- showLabelOnTop
24473
- } = _ref;
24452
+ const QuickFilterDropdownSingle = ({
24453
+ label,
24454
+ hoverColor,
24455
+ options,
24456
+ selectedValue,
24457
+ placeHolder,
24458
+ onChange,
24459
+ disabled,
24460
+ width,
24461
+ error,
24462
+ errorMessage,
24463
+ xIconShow,
24464
+ labelColor,
24465
+ showLabelOnTop
24466
+ }) => {
24474
24467
  const [isFocused, setIsFocused] = useState(false);
24475
24468
  const [showOptions, setShowOptions] = useState(false);
24476
24469
  const [inputValue, setInputValue] = useState("");
@@ -24868,24 +24861,23 @@ const IconContainer$1 = styled.div`
24868
24861
  cursor: pointer;
24869
24862
  `;
24870
24863
 
24871
- const QuickFilterDropdownMultiSelection = _ref => {
24872
- let {
24873
- label,
24874
- labelEmptyValue,
24875
- options,
24876
- selectedValue,
24877
- placeHolder,
24878
- onChange,
24879
- required,
24880
- disabled,
24881
- width,
24882
- error,
24883
- errorMessage,
24884
- labelColor,
24885
- xIconShow,
24886
- checkBoxColor,
24887
- showLabelOnTop
24888
- } = _ref;
24864
+ const QuickFilterDropdownMultiSelection = ({
24865
+ label,
24866
+ labelEmptyValue,
24867
+ options,
24868
+ selectedValue,
24869
+ placeHolder,
24870
+ onChange,
24871
+ required,
24872
+ disabled,
24873
+ width,
24874
+ error,
24875
+ errorMessage,
24876
+ labelColor,
24877
+ xIconShow,
24878
+ checkBoxColor,
24879
+ showLabelOnTop
24880
+ }) => {
24889
24881
  const [isFocused, setIsFocused] = useState(false);
24890
24882
  const [showOptions, setShowOptions] = useState(false);
24891
24883
  const [inputValue, setInputValue] = useState('');
@@ -29325,11 +29317,17 @@ const AreaChart = props => {
29325
29317
  const [areaChartsToDisplay, setAreaChartsToDisplay] = useState([]);
29326
29318
 
29327
29319
  // Compute max domain values
29328
- const leftKeys = areaChartsState.filter(chart => chart.yAxisId === "left").map(chart => chart.key);
29329
- const rightKeys = areaChartsState.filter(chart => chart.yAxisId === "right").map(chart => chart.key);
29330
- const getMaxDomain = keys => data ? Math.max(...data.flatMap(d => keys.map(key => d[key] ?? 0))) * 1.1 : 0;
29331
- const maxLeftDomain = getMaxDomain(leftKeys);
29332
- const maxRightDomain = getMaxDomain(rightKeys);
29320
+ // const leftKeys = areaChartsState
29321
+ // .filter((chart) => chart.yAxisId === "left")
29322
+ // .map((chart) => chart.key);
29323
+ // const rightKeys = areaChartsState
29324
+ // .filter((chart) => chart.yAxisId === "right")
29325
+ // .map((chart) => chart.key);
29326
+ // const getMaxDomain = (keys) =>
29327
+ // data ? Math.max(...data.flatMap((d) => keys.map((key) => d[key] ?? 0))) * 1.1 : 0;
29328
+ // const maxLeftDomain = getMaxDomain(leftKeys);
29329
+ // const maxRightDomain = getMaxDomain(rightKeys);
29330
+
29333
29331
  useEffect(() => {
29334
29332
  if (containerRef.current) {
29335
29333
  setContainerWidth(containerRef.current.offsetWidth);
@@ -29547,19 +29545,13 @@ const AreaChart = props => {
29547
29545
  tickLine: false
29548
29546
  }), /*#__PURE__*/React$1.createElement(YAxis, {
29549
29547
  yAxisId: "left",
29550
- domain: [0, maxLeftDomain],
29551
- hide: true,
29552
- ticks: Array.from({
29553
- length: maxLeftDomain
29554
- }, (_, index) => index)
29548
+ domain: [0, 'dataMax'],
29549
+ hide: true
29555
29550
  }), /*#__PURE__*/React$1.createElement(YAxis, {
29556
29551
  yAxisId: "right",
29557
29552
  orientation: "right",
29558
- domain: [0, maxRightDomain],
29559
- hide: true,
29560
- ticks: Array.from({
29561
- length: maxRightDomain
29562
- }, (_, index) => index)
29553
+ domain: [0, 'dataMax'],
29554
+ hide: true
29563
29555
  }), /*#__PURE__*/React$1.createElement(CartesianGrid, {
29564
29556
  stroke: "#D0D0D0",
29565
29557
  strokeDasharray: "4 3",