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.js CHANGED
@@ -9847,70 +9847,67 @@ const DropdownMain = styled__default["default"].div`
9847
9847
  `;
9848
9848
 
9849
9849
  /* eslint-disable react/prop-types */
9850
- const DropdownNew = _ref => {
9851
- let {
9852
- isMulti,
9853
- label,
9854
- labelEmptyValue,
9855
- options,
9856
- selectedValue,
9857
- placeHolder,
9858
- onChange,
9859
- required,
9860
- disabled,
9861
- width,
9862
- error,
9863
- errorMessage,
9864
- labelColor,
9865
- checkBoxColor,
9866
- xIconShow,
9867
- showLabelOnTop,
9868
- orderBy,
9869
- elementType
9870
- } = _ref;
9871
- return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9872
- className: "DropdownMain",
9873
- width: width
9874
- }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
9875
- className: "DropdownMultiNew",
9876
- placeHolder: placeHolder,
9877
- label: label,
9878
- labelEmptyValue: labelEmptyValue,
9879
- labelColor: labelColor,
9880
- checkBoxColor: checkBoxColor,
9881
- required: required,
9882
- options: options,
9883
- width: width,
9884
- disabled: disabled,
9885
- error: error,
9886
- errorMessage: errorMessage,
9887
- selectedValue: selectedValue,
9888
- xIconShow: xIconShow,
9889
- onChange: onChange,
9890
- showLabelOnTop: showLabelOnTop,
9891
- orderBy: orderBy,
9892
- elementType: elementType
9893
- }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
9894
- className: "DropdownSingleNew",
9895
- placeHolder: placeHolder,
9896
- label: label,
9897
- labelEmptyValue: labelEmptyValue,
9898
- labelColor: labelColor,
9899
- checkBoxColor: checkBoxColor,
9900
- required: required,
9901
- options: options,
9902
- width: width,
9903
- disabled: disabled,
9904
- error: error,
9905
- errorMessage: errorMessage,
9906
- selectedValue: selectedValue,
9907
- xIconShow: xIconShow,
9908
- onChange: onChange,
9909
- showLabelOnTop: showLabelOnTop,
9910
- orderBy: orderBy,
9911
- elementType: elementType
9912
- }));
9913
- };
9850
+ const DropdownNew = ({
9851
+ isMulti,
9852
+ label,
9853
+ labelEmptyValue,
9854
+ options,
9855
+ selectedValue,
9856
+ placeHolder,
9857
+ onChange,
9858
+ required,
9859
+ disabled,
9860
+ width,
9861
+ error,
9862
+ errorMessage,
9863
+ labelColor,
9864
+ checkBoxColor,
9865
+ xIconShow,
9866
+ showLabelOnTop,
9867
+ orderBy,
9868
+ elementType
9869
+ }) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9870
+ className: "DropdownMain",
9871
+ width: width
9872
+ }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
9873
+ className: "DropdownMultiNew",
9874
+ placeHolder: placeHolder,
9875
+ label: label,
9876
+ labelEmptyValue: labelEmptyValue,
9877
+ labelColor: labelColor,
9878
+ checkBoxColor: checkBoxColor,
9879
+ required: required,
9880
+ options: options,
9881
+ width: width,
9882
+ disabled: disabled,
9883
+ error: error,
9884
+ errorMessage: errorMessage,
9885
+ selectedValue: selectedValue,
9886
+ xIconShow: xIconShow,
9887
+ onChange: onChange,
9888
+ showLabelOnTop: showLabelOnTop,
9889
+ orderBy: orderBy,
9890
+ elementType: elementType
9891
+ }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
9892
+ className: "DropdownSingleNew",
9893
+ placeHolder: placeHolder,
9894
+ label: label,
9895
+ labelEmptyValue: labelEmptyValue,
9896
+ labelColor: labelColor,
9897
+ checkBoxColor: checkBoxColor,
9898
+ required: required,
9899
+ options: options,
9900
+ width: width,
9901
+ disabled: disabled,
9902
+ error: error,
9903
+ errorMessage: errorMessage,
9904
+ selectedValue: selectedValue,
9905
+ xIconShow: xIconShow,
9906
+ onChange: onChange,
9907
+ showLabelOnTop: showLabelOnTop,
9908
+ orderBy: orderBy,
9909
+ elementType: elementType
9910
+ }));
9914
9911
  DropdownNew.propTypes = {
9915
9912
  placeHolder: PropTypes.string,
9916
9913
  label: PropTypes.string,
@@ -10324,21 +10321,20 @@ const DatePicker = ({
10324
10321
  };
10325
10322
 
10326
10323
  /* eslint-disable import/no-extraneous-dependencies */
10327
- const RangePicker = _ref => {
10328
- let {
10329
- label,
10330
- onChange,
10331
- borderRadius,
10332
- required,
10333
- width,
10334
- height,
10335
- placeholder,
10336
- disabled,
10337
- borderColor,
10338
- borderColorFocus,
10339
- textColor,
10340
- selectedValue
10341
- } = _ref;
10324
+ const RangePicker = ({
10325
+ label,
10326
+ onChange,
10327
+ borderRadius,
10328
+ required,
10329
+ width,
10330
+ height,
10331
+ placeholder,
10332
+ disabled,
10333
+ borderColor,
10334
+ borderColorFocus,
10335
+ textColor,
10336
+ selectedValue
10337
+ }) => {
10342
10338
  const [isFocused, setIsFocused] = React$1.useState(false);
10343
10339
  const [isOpen, setIsOpen] = React$1.useState(false);
10344
10340
  const [value, setValue] = React$1.useState(''); // Added value state
@@ -10770,23 +10766,22 @@ const QuarterPopupPicker = ({
10770
10766
  };
10771
10767
 
10772
10768
  /* eslint-disable import/no-extraneous-dependencies */
10773
- const QuarterPicker = _ref => {
10774
- let {
10775
- availableQuarters,
10776
- // ["Q1-2024"]
10777
- label,
10778
- onChange,
10779
- borderRadius,
10780
- required,
10781
- width,
10782
- height,
10783
- placeholder,
10784
- disabled,
10785
- borderColor,
10786
- borderColorFocus,
10787
- textColor,
10788
- selectedValue
10789
- } = _ref;
10769
+ const QuarterPicker = ({
10770
+ availableQuarters,
10771
+ // ["Q1-2024"]
10772
+ label,
10773
+ onChange,
10774
+ borderRadius,
10775
+ required,
10776
+ width,
10777
+ height,
10778
+ placeholder,
10779
+ disabled,
10780
+ borderColor,
10781
+ borderColorFocus,
10782
+ textColor,
10783
+ selectedValue
10784
+ }) => {
10790
10785
  const [isFocused, setIsFocused] = React$1.useState(false);
10791
10786
  const [isOpen, setIsOpen] = React$1.useState(false);
10792
10787
  const [value, setValue] = React$1.useState('');
@@ -11225,22 +11220,21 @@ const MonthPopupPicker = ({
11225
11220
  };
11226
11221
 
11227
11222
  /* eslint-disable import/no-extraneous-dependencies */
11228
- const MonthPicker = _ref => {
11229
- let {
11230
- availableMonths,
11231
- label,
11232
- onChange,
11233
- borderRadius,
11234
- required,
11235
- width,
11236
- height,
11237
- placeholder,
11238
- disabled,
11239
- borderColor,
11240
- borderColorFocus,
11241
- textColor,
11242
- selectedValue
11243
- } = _ref;
11223
+ const MonthPicker = ({
11224
+ availableMonths,
11225
+ label,
11226
+ onChange,
11227
+ borderRadius,
11228
+ required,
11229
+ width,
11230
+ height,
11231
+ placeholder,
11232
+ disabled,
11233
+ borderColor,
11234
+ borderColorFocus,
11235
+ textColor,
11236
+ selectedValue
11237
+ }) => {
11244
11238
  const [isFocused, setIsFocused] = React$1.useState(false);
11245
11239
  const [isOpen, setIsOpen] = React$1.useState(false);
11246
11240
  const [value, setValue] = React$1.useState('');
@@ -24465,22 +24459,21 @@ const DeleteIcon = styled__default["default"].div`
24465
24459
  position: absolute;
24466
24460
  `;
24467
24461
 
24468
- const QuickFilterDropdownSingle = _ref => {
24469
- let {
24470
- label,
24471
- hoverColor,
24472
- options,
24473
- selectedValue,
24474
- placeHolder,
24475
- onChange,
24476
- disabled,
24477
- width,
24478
- error,
24479
- errorMessage,
24480
- xIconShow,
24481
- labelColor,
24482
- showLabelOnTop
24483
- } = _ref;
24462
+ const QuickFilterDropdownSingle = ({
24463
+ label,
24464
+ hoverColor,
24465
+ options,
24466
+ selectedValue,
24467
+ placeHolder,
24468
+ onChange,
24469
+ disabled,
24470
+ width,
24471
+ error,
24472
+ errorMessage,
24473
+ xIconShow,
24474
+ labelColor,
24475
+ showLabelOnTop
24476
+ }) => {
24484
24477
  const [isFocused, setIsFocused] = React$1.useState(false);
24485
24478
  const [showOptions, setShowOptions] = React$1.useState(false);
24486
24479
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24878,24 +24871,23 @@ const IconContainer$1 = styled__default["default"].div`
24878
24871
  cursor: pointer;
24879
24872
  `;
24880
24873
 
24881
- const QuickFilterDropdownMultiSelection = _ref => {
24882
- let {
24883
- label,
24884
- labelEmptyValue,
24885
- options,
24886
- selectedValue,
24887
- placeHolder,
24888
- onChange,
24889
- required,
24890
- disabled,
24891
- width,
24892
- error,
24893
- errorMessage,
24894
- labelColor,
24895
- xIconShow,
24896
- checkBoxColor,
24897
- showLabelOnTop
24898
- } = _ref;
24874
+ const QuickFilterDropdownMultiSelection = ({
24875
+ label,
24876
+ labelEmptyValue,
24877
+ options,
24878
+ selectedValue,
24879
+ placeHolder,
24880
+ onChange,
24881
+ required,
24882
+ disabled,
24883
+ width,
24884
+ error,
24885
+ errorMessage,
24886
+ labelColor,
24887
+ xIconShow,
24888
+ checkBoxColor,
24889
+ showLabelOnTop
24890
+ }) => {
24899
24891
  const [isFocused, setIsFocused] = React$1.useState(false);
24900
24892
  const [showOptions, setShowOptions] = React$1.useState(false);
24901
24893
  const [inputValue, setInputValue] = React$1.useState('');
@@ -29335,11 +29327,17 @@ const AreaChart = props => {
29335
29327
  const [areaChartsToDisplay, setAreaChartsToDisplay] = React$1.useState([]);
29336
29328
 
29337
29329
  // Compute max domain values
29338
- const leftKeys = areaChartsState.filter(chart => chart.yAxisId === "left").map(chart => chart.key);
29339
- const rightKeys = areaChartsState.filter(chart => chart.yAxisId === "right").map(chart => chart.key);
29340
- const getMaxDomain = keys => data ? Math.max(...data.flatMap(d => keys.map(key => d[key] ?? 0))) * 1.1 : 0;
29341
- const maxLeftDomain = getMaxDomain(leftKeys);
29342
- const maxRightDomain = getMaxDomain(rightKeys);
29330
+ // const leftKeys = areaChartsState
29331
+ // .filter((chart) => chart.yAxisId === "left")
29332
+ // .map((chart) => chart.key);
29333
+ // const rightKeys = areaChartsState
29334
+ // .filter((chart) => chart.yAxisId === "right")
29335
+ // .map((chart) => chart.key);
29336
+ // const getMaxDomain = (keys) =>
29337
+ // data ? Math.max(...data.flatMap((d) => keys.map((key) => d[key] ?? 0))) * 1.1 : 0;
29338
+ // const maxLeftDomain = getMaxDomain(leftKeys);
29339
+ // const maxRightDomain = getMaxDomain(rightKeys);
29340
+
29343
29341
  React$1.useEffect(() => {
29344
29342
  if (containerRef.current) {
29345
29343
  setContainerWidth(containerRef.current.offsetWidth);
@@ -29557,19 +29555,13 @@ const AreaChart = props => {
29557
29555
  tickLine: false
29558
29556
  }), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
29559
29557
  yAxisId: "left",
29560
- domain: [0, maxLeftDomain],
29561
- hide: true,
29562
- ticks: Array.from({
29563
- length: maxLeftDomain
29564
- }, (_, index) => index)
29558
+ domain: [0, 'dataMax'],
29559
+ hide: true
29565
29560
  }), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
29566
29561
  yAxisId: "right",
29567
29562
  orientation: "right",
29568
- domain: [0, maxRightDomain],
29569
- hide: true,
29570
- ticks: Array.from({
29571
- length: maxRightDomain
29572
- }, (_, index) => index)
29563
+ domain: [0, 'dataMax'],
29564
+ hide: true
29573
29565
  }), /*#__PURE__*/React__default["default"].createElement(recharts.CartesianGrid, {
29574
29566
  stroke: "#D0D0D0",
29575
29567
  strokeDasharray: "4 3",