sag_components 2.0.0-beta47 → 2.0.0-beta48
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 +3 -1
- package/dist/index.esm.js +282 -205
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +282 -204
- package/dist/index.js.map +1 -1
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.stories.d.ts +30 -17
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9847,67 +9847,70 @@ 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
|
-
|
|
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
|
+
};
|
|
9911
9914
|
DropdownNew.propTypes = {
|
|
9912
9915
|
placeHolder: PropTypes.string,
|
|
9913
9916
|
label: PropTypes.string,
|
|
@@ -10321,20 +10324,21 @@ const DatePicker = ({
|
|
|
10321
10324
|
};
|
|
10322
10325
|
|
|
10323
10326
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10324
|
-
const RangePicker =
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
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;
|
|
10338
10342
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10339
10343
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10340
10344
|
const [value, setValue] = React$1.useState(''); // Added value state
|
|
@@ -10766,22 +10770,23 @@ const QuarterPopupPicker = ({
|
|
|
10766
10770
|
};
|
|
10767
10771
|
|
|
10768
10772
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10769
|
-
const QuarterPicker =
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
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;
|
|
10785
10790
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10786
10791
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10787
10792
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11220,21 +11225,22 @@ const MonthPopupPicker = ({
|
|
|
11220
11225
|
};
|
|
11221
11226
|
|
|
11222
11227
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11223
|
-
const MonthPicker =
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
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;
|
|
11238
11244
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11239
11245
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11240
11246
|
const [value, setValue] = React$1.useState('');
|
|
@@ -24459,21 +24465,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24459
24465
|
position: absolute;
|
|
24460
24466
|
`;
|
|
24461
24467
|
|
|
24462
|
-
const QuickFilterDropdownSingle =
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
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;
|
|
24477
24484
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24478
24485
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24479
24486
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24871,23 +24878,24 @@ const IconContainer$1 = styled__default["default"].div`
|
|
|
24871
24878
|
cursor: pointer;
|
|
24872
24879
|
`;
|
|
24873
24880
|
|
|
24874
|
-
const QuickFilterDropdownMultiSelection =
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
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;
|
|
24891
24899
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24892
24900
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24893
24901
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -25891,39 +25899,45 @@ const LegendWrapper = styled__default["default"].div`
|
|
|
25891
25899
|
padding-top: 15px;
|
|
25892
25900
|
`;
|
|
25893
25901
|
|
|
25894
|
-
const LegendUnionIcon =
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25908
|
-
|
|
25909
|
-
|
|
25902
|
+
const LegendUnionIcon = _ref => {
|
|
25903
|
+
let {
|
|
25904
|
+
width = '18',
|
|
25905
|
+
height = '5',
|
|
25906
|
+
color = '#9CCB3B'
|
|
25907
|
+
} = _ref;
|
|
25908
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
25909
|
+
width: width,
|
|
25910
|
+
height: height,
|
|
25911
|
+
viewBox: "0 0 18 5",
|
|
25912
|
+
fill: "none",
|
|
25913
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25914
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
25915
|
+
fillRule: "evenodd",
|
|
25916
|
+
clipRule: "evenodd",
|
|
25917
|
+
d: "M11.45 2H17C17.2761 2 17.5 2.22386 17.5 2.5C17.5 2.77614 17.2761 3 17 3H11.45C11.2184 4.14112 10.2095 5 9 5C7.79052 5 6.78164 4.14112 6.55001 3H1C0.723858 3 0.5 2.77614 0.5 2.5C0.5 2.22386 0.723858 2 1 2H6.55001C6.78164 0.85888 7.79052 0 9 0C10.2095 0 11.2184 0.85888 11.45 2Z",
|
|
25918
|
+
fill: color
|
|
25919
|
+
}));
|
|
25920
|
+
};
|
|
25910
25921
|
|
|
25911
|
-
const LegendLineIcon =
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
25919
|
-
|
|
25920
|
-
|
|
25921
|
-
|
|
25922
|
-
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25926
|
-
|
|
25922
|
+
const LegendLineIcon = _ref => {
|
|
25923
|
+
let {
|
|
25924
|
+
width = '19',
|
|
25925
|
+
height = '3',
|
|
25926
|
+
color = '#9CCB3B'
|
|
25927
|
+
} = _ref;
|
|
25928
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
25929
|
+
width: width,
|
|
25930
|
+
height: height,
|
|
25931
|
+
viewBox: "0 0 19 3",
|
|
25932
|
+
fill: "none",
|
|
25933
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25934
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
25935
|
+
fillRule: "evenodd",
|
|
25936
|
+
clipRule: "evenodd",
|
|
25937
|
+
d: "M0 1.5C0 0.671573 0.671573 0 1.5 0H17.5C18.3284 0 19 0.671572 19 1.5C19 2.32843 18.3284 3 17.5 3H1.5C0.671575 3 0 2.32843 0 1.5Z",
|
|
25938
|
+
fill: color
|
|
25939
|
+
}));
|
|
25940
|
+
};
|
|
25927
25941
|
|
|
25928
25942
|
const ControlsContainer$5 = styled__default["default"].div`
|
|
25929
25943
|
position: relative;
|
|
@@ -26498,7 +26512,7 @@ const LegendTitle = styled__default["default"].h5`
|
|
|
26498
26512
|
display: flex;
|
|
26499
26513
|
justify-content: space-between;
|
|
26500
26514
|
@media (max-width: 1536px) {
|
|
26501
|
-
font-size: 0.
|
|
26515
|
+
font-size: 0.75em; /* 11px → 0.6875em */
|
|
26502
26516
|
}
|
|
26503
26517
|
@media (max-width: 1366px) {
|
|
26504
26518
|
font-size: 0.625em; /* 10px → 0.625em */
|
|
@@ -28852,7 +28866,6 @@ const scrollableStyles$2 = `
|
|
|
28852
28866
|
}
|
|
28853
28867
|
`;
|
|
28854
28868
|
const DoubleBarSingleLineContainer = styled__default["default"].div`
|
|
28855
|
-
position: relative;
|
|
28856
28869
|
font-family: "Poppins", sans-serif;
|
|
28857
28870
|
color: #212121;
|
|
28858
28871
|
background-color: white;
|
|
@@ -28863,13 +28876,14 @@ const DoubleBarSingleLineContainer = styled__default["default"].div`
|
|
|
28863
28876
|
${scrollableStyles$2}
|
|
28864
28877
|
`;
|
|
28865
28878
|
const LegendContainer = styled__default["default"].div`
|
|
28866
|
-
position:
|
|
28879
|
+
position: absolute;
|
|
28880
|
+
left: 0;
|
|
28867
28881
|
text-align: center;
|
|
28868
|
-
width: ${props => props.width};
|
|
28869
|
-
bottom:
|
|
28882
|
+
width: ${props => `${props.width}px`};
|
|
28883
|
+
bottom: 30px;
|
|
28870
28884
|
`;
|
|
28871
28885
|
const Controls$1 = styled__default["default"].div`
|
|
28872
|
-
height: 100
|
|
28886
|
+
height: calc(100% - 30px);
|
|
28873
28887
|
display: flex;
|
|
28874
28888
|
flex-direction: column;
|
|
28875
28889
|
background-color: white;
|
|
@@ -28921,6 +28935,7 @@ const DoubleBarSingleLine = props => {
|
|
|
28921
28935
|
width,
|
|
28922
28936
|
height,
|
|
28923
28937
|
title,
|
|
28938
|
+
hasScroll,
|
|
28924
28939
|
dataState,
|
|
28925
28940
|
data,
|
|
28926
28941
|
lineChartValueType,
|
|
@@ -28932,6 +28947,31 @@ const DoubleBarSingleLine = props => {
|
|
|
28932
28947
|
noDataText
|
|
28933
28948
|
} = props;
|
|
28934
28949
|
const [legendData, setLegendData] = React$1.useState([]);
|
|
28950
|
+
const containerRef = React$1.useRef(null);
|
|
28951
|
+
const [containerWidth, setContainerWidth] = React$1.useState(0); // State to store the container's width
|
|
28952
|
+
|
|
28953
|
+
React$1.useEffect(() => {
|
|
28954
|
+
const updateWidth = () => {
|
|
28955
|
+
if (containerRef.current) {
|
|
28956
|
+
setContainerWidth(containerRef.current.offsetWidth); // Update the width
|
|
28957
|
+
}
|
|
28958
|
+
};
|
|
28959
|
+
|
|
28960
|
+
// Use ResizeObserver to observe changes in the container's size
|
|
28961
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
28962
|
+
updateWidth();
|
|
28963
|
+
});
|
|
28964
|
+
if (containerRef.current) {
|
|
28965
|
+
resizeObserver.observe(containerRef.current); // Start observing
|
|
28966
|
+
}
|
|
28967
|
+
|
|
28968
|
+
// Cleanup observer on component unmount
|
|
28969
|
+
return () => {
|
|
28970
|
+
if (containerRef.current) {
|
|
28971
|
+
resizeObserver.unobserve(containerRef.current);
|
|
28972
|
+
}
|
|
28973
|
+
};
|
|
28974
|
+
}, []);
|
|
28935
28975
|
React$1.useEffect(() => {
|
|
28936
28976
|
const newLegendData = dataState.map(item => ({
|
|
28937
28977
|
title: item.name,
|
|
@@ -29034,9 +29074,12 @@ const DoubleBarSingleLine = props => {
|
|
|
29034
29074
|
} else {
|
|
29035
29075
|
`${currentTooltipValue.toFixed(1)}`;
|
|
29036
29076
|
}
|
|
29037
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$1, null, `${label}`), payload.map((item, idx) =>
|
|
29038
|
-
key
|
|
29039
|
-
|
|
29077
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$1, null, `${label}`), payload.map((item, idx) => {
|
|
29078
|
+
const dataStateItem = dataState.find(state => state.key === item.dataKey);
|
|
29079
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipLabel, {
|
|
29080
|
+
key: item.dataKey || idx
|
|
29081
|
+
}, `${dataStateItem?.name || item.dataKey}: ${item.value.toFixed(1)}`);
|
|
29082
|
+
}));
|
|
29040
29083
|
};
|
|
29041
29084
|
const CustomTickBarChart = props => {
|
|
29042
29085
|
const {
|
|
@@ -29073,26 +29116,55 @@ const DoubleBarSingleLine = props => {
|
|
|
29073
29116
|
dy: 22
|
|
29074
29117
|
}, line))));
|
|
29075
29118
|
};
|
|
29119
|
+
|
|
29120
|
+
// Shared chart syncing configuration
|
|
29121
|
+
const syncCharts = {
|
|
29122
|
+
syncId: "anyId",
|
|
29123
|
+
// This synchronizes the charts
|
|
29124
|
+
margin: {
|
|
29125
|
+
top: 20,
|
|
29126
|
+
right: 35,
|
|
29127
|
+
left: 35,
|
|
29128
|
+
bottom: 5
|
|
29129
|
+
}
|
|
29130
|
+
};
|
|
29131
|
+
// Transform data to align line points with bar chart centers
|
|
29132
|
+
const transformDataForLineChart = originalData => {
|
|
29133
|
+
return originalData.map(item => ({
|
|
29134
|
+
...item,
|
|
29135
|
+
// Keep the original label for proper X-axis alignment
|
|
29136
|
+
originalLabel: item.label
|
|
29137
|
+
}));
|
|
29138
|
+
};
|
|
29139
|
+
const transformedData = transformDataForLineChart(data);
|
|
29076
29140
|
return /*#__PURE__*/React__default["default"].createElement(DoubleBarSingleLineContainer, {
|
|
29141
|
+
ref: containerRef,
|
|
29077
29142
|
className: className,
|
|
29078
29143
|
height: height,
|
|
29079
29144
|
width: width,
|
|
29080
|
-
hasScroll:
|
|
29145
|
+
hasScroll: hasScroll
|
|
29081
29146
|
}, data.length === 0 ? /*#__PURE__*/React__default["default"].createElement(NoDataFoundMessage, {
|
|
29082
29147
|
noDataText: noDataText
|
|
29083
29148
|
}) : /*#__PURE__*/React__default["default"].createElement(Controls$1, {
|
|
29084
29149
|
className: "Controls"
|
|
29085
|
-
}, title !== '' && /*#__PURE__*/React__default["default"].createElement(Title$2, null, title), /*#__PURE__*/React__default["default"].createElement(ChartsWrapper, {
|
|
29086
|
-
width:
|
|
29087
|
-
}, /*#__PURE__*/React__default["default"].createElement(LineChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.LineChart, {
|
|
29088
|
-
data:
|
|
29089
|
-
|
|
29090
|
-
|
|
29091
|
-
|
|
29092
|
-
|
|
29093
|
-
|
|
29150
|
+
}, title && title.trim() !== '' && /*#__PURE__*/React__default["default"].createElement(Title$2, null, title), /*#__PURE__*/React__default["default"].createElement(ChartsWrapper, {
|
|
29151
|
+
width: hasScroll ? `${data.length * 178}px` : 'auto'
|
|
29152
|
+
}, /*#__PURE__*/React__default["default"].createElement(LineChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.LineChart, _extends({
|
|
29153
|
+
data: transformedData
|
|
29154
|
+
}, syncCharts), /*#__PURE__*/React__default["default"].createElement(recharts.XAxis, {
|
|
29155
|
+
dataKey: "label",
|
|
29156
|
+
tick: false,
|
|
29157
|
+
axisLine: false,
|
|
29158
|
+
tickLine: false,
|
|
29159
|
+
interval: 0,
|
|
29160
|
+
xAxisId: "line"
|
|
29161
|
+
// This is important for alignment
|
|
29162
|
+
,
|
|
29163
|
+
padding: {
|
|
29164
|
+
left: barsWidth,
|
|
29165
|
+
right: barsWidth
|
|
29094
29166
|
}
|
|
29095
|
-
}, /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
29167
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
29096
29168
|
domain: [dataMin => Math.min(dataMin, calculateMinValue(data, dataState)) - 10, dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) + 10],
|
|
29097
29169
|
hide: true
|
|
29098
29170
|
}), dataState.filter(item => item.type === "line").map(obj => /*#__PURE__*/React__default["default"].createElement(recharts.Line, {
|
|
@@ -29100,22 +29172,28 @@ const DoubleBarSingleLine = props => {
|
|
|
29100
29172
|
key: obj.key,
|
|
29101
29173
|
dataKey: obj.key,
|
|
29102
29174
|
stroke: obj.color,
|
|
29103
|
-
fill: obj.color
|
|
29104
|
-
|
|
29175
|
+
fill: obj.color
|
|
29176
|
+
// dot={{ r: 6, stroke: obj.color, fill: obj.color }}
|
|
29177
|
+
,
|
|
29178
|
+
activeDot: {
|
|
29179
|
+
r: 8
|
|
29180
|
+
},
|
|
29181
|
+
isAnimationActive: false,
|
|
29182
|
+
xAxisId: "line"
|
|
29105
29183
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
29106
|
-
content: CustomLabelLine
|
|
29107
|
-
|
|
29184
|
+
content: CustomLabelLine,
|
|
29185
|
+
position: "top"
|
|
29186
|
+
})))))), /*#__PURE__*/React__default["default"].createElement(BarChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, _extends({
|
|
29108
29187
|
data: data,
|
|
29109
29188
|
barGap: 13,
|
|
29110
29189
|
barCategoryGap: data.length >= limitViewableItems ? 178 : 50,
|
|
29111
|
-
barSize: barsWidth
|
|
29190
|
+
barSize: barsWidth
|
|
29191
|
+
}, syncCharts, {
|
|
29112
29192
|
margin: {
|
|
29113
|
-
|
|
29114
|
-
right: 10,
|
|
29115
|
-
left: 10,
|
|
29193
|
+
...syncCharts.margin,
|
|
29116
29194
|
bottom: 120
|
|
29117
29195
|
}
|
|
29118
|
-
}, /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip, {
|
|
29196
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip, {
|
|
29119
29197
|
content: /*#__PURE__*/React__default["default"].createElement(CustomTooltip, null)
|
|
29120
29198
|
}), showBackgroundGrid && /*#__PURE__*/React__default["default"].createElement(recharts.CartesianGrid, {
|
|
29121
29199
|
vertical: false,
|
|
@@ -29130,20 +29208,19 @@ const DoubleBarSingleLine = props => {
|
|
|
29130
29208
|
tickLine: false,
|
|
29131
29209
|
interval: 0
|
|
29132
29210
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
29133
|
-
domain: [dataMin => Math.min(dataMin, 0),
|
|
29134
|
-
// Handle negative values
|
|
29135
|
-
dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) * 1.5],
|
|
29211
|
+
domain: [dataMin => Math.min(dataMin, 0), dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) * 1.5],
|
|
29136
29212
|
hide: true
|
|
29137
29213
|
}), dataState.filter(item => item.type === "bar").map(obj => /*#__PURE__*/React__default["default"].createElement(recharts.Bar, {
|
|
29138
29214
|
key: obj.key,
|
|
29139
29215
|
dataKey: obj.key,
|
|
29140
29216
|
fill: obj.color,
|
|
29141
|
-
radius: [4, 4, 0, 0]
|
|
29217
|
+
radius: [4, 4, 0, 0],
|
|
29218
|
+
isAnimationActive: false
|
|
29142
29219
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
29143
29220
|
dataKey: obj.key,
|
|
29144
29221
|
content: CustomLabel
|
|
29145
29222
|
}))))))), showLegend && /*#__PURE__*/React__default["default"].createElement(LegendContainer, {
|
|
29146
|
-
width:
|
|
29223
|
+
width: containerWidth,
|
|
29147
29224
|
height: height
|
|
29148
29225
|
}, /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
|
|
29149
29226
|
legendData: legendData
|
|
@@ -30350,6 +30427,7 @@ exports.LinkButton = LinkButton;
|
|
|
30350
30427
|
exports.LinnerDataBox = LinnerDataBox;
|
|
30351
30428
|
exports.MarketShareDescription = MarketShareDescription;
|
|
30352
30429
|
exports.OneColumnContainer = OneColumnContainer;
|
|
30430
|
+
exports.PerformanceAnalyticsLegend = PerformanceAnalyticsLegend;
|
|
30353
30431
|
exports.PieChart = PieChart;
|
|
30354
30432
|
exports.PopupCharts = PopupCharts;
|
|
30355
30433
|
exports.QuickFilter = QuickFilter;
|