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.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 =
|
|
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
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
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 =
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
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 =
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
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 =
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
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 =
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
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 =
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
24891
|
-
|
|
24892
|
-
|
|
24893
|
-
|
|
24894
|
-
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
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
|
|
29339
|
-
|
|
29340
|
-
|
|
29341
|
-
const
|
|
29342
|
-
|
|
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,
|
|
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,
|
|
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",
|