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 +153 -161
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +153 -161
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 =
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
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 =
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
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 =
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
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 =
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
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 =
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
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 =
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
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
|
|
29329
|
-
|
|
29330
|
-
|
|
29331
|
-
const
|
|
29332
|
-
|
|
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,
|
|
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,
|
|
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",
|