sag_components 2.0.0-beta47 → 2.0.0-beta49
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 +221 -189
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +221 -188
- package/dist/index.js.map +1 -1
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.stories.d.ts +30 -17
- package/dist/types/components/InsightsCarousel/InsightsCarousel.d.ts +10 -0
- package/dist/types/components/InsightsCarousel/InsightsCarousel.stories.d.ts +48 -0
- package/dist/types/components/InsightsCarousel/InsightsCarousel.style.d.ts +12 -0
- package/dist/types/icons/ChervronLeftIcon.d.ts +5 -1
- package/dist/types/icons/ChervronRightIcon.d.ts +5 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1203,4 +1203,6 @@ declare function LinkButton({ text, type, size, height, width, disabled, textCol
|
|
|
1203
1203
|
|
|
1204
1204
|
declare function BatteryChart(props: any): react_jsx_runtime.JSX.Element;
|
|
1205
1205
|
|
|
1206
|
-
|
|
1206
|
+
declare function PerformanceAnalyticsLegend(props: any): react_jsx_runtime.JSX.Element;
|
|
1207
|
+
|
|
1208
|
+
export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
|
package/dist/index.esm.js
CHANGED
|
@@ -9837,67 +9837,70 @@ 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
|
-
|
|
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
|
+
};
|
|
9901
9904
|
DropdownNew.propTypes = {
|
|
9902
9905
|
placeHolder: PropTypes.string,
|
|
9903
9906
|
label: PropTypes.string,
|
|
@@ -10070,26 +10073,34 @@ const OptionsContainer$4 = styled.div`
|
|
|
10070
10073
|
padding-top: 8px;
|
|
10071
10074
|
`;
|
|
10072
10075
|
|
|
10073
|
-
const ChervronRightIcon = (
|
|
10074
|
-
width
|
|
10075
|
-
height
|
|
10076
|
+
const ChervronRightIcon = ({
|
|
10077
|
+
width = "8",
|
|
10078
|
+
height = "13",
|
|
10079
|
+
fill = "#777575"
|
|
10080
|
+
}) => /*#__PURE__*/React$1.createElement("svg", {
|
|
10081
|
+
width: width,
|
|
10082
|
+
height: height,
|
|
10076
10083
|
viewBox: "0 0 8 13",
|
|
10077
10084
|
fill: "none",
|
|
10078
10085
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10079
10086
|
}, /*#__PURE__*/React$1.createElement("path", {
|
|
10080
10087
|
d: "M7.33984 5.78516C7.58594 6.05859 7.58594 6.46875 7.33984 6.71484L2.08984 11.9648C1.81641 12.2383 1.40625 12.2383 1.16016 11.9648C0.886719 11.7188 0.886719 11.3086 1.16016 11.0625L5.94531 6.27734L1.16016 1.46484C0.886719 1.21875 0.886719 0.808594 1.16016 0.5625C1.40625 0.289062 1.81641 0.289062 2.0625 0.5625L7.33984 5.78516Z",
|
|
10081
|
-
fill:
|
|
10088
|
+
fill: fill
|
|
10082
10089
|
}));
|
|
10083
10090
|
|
|
10084
|
-
const ChervronLeftIcon = (
|
|
10085
|
-
width
|
|
10086
|
-
height
|
|
10091
|
+
const ChervronLeftIcon = ({
|
|
10092
|
+
width = 7,
|
|
10093
|
+
height = 13,
|
|
10094
|
+
fill = "#777575"
|
|
10095
|
+
}) => /*#__PURE__*/React$1.createElement("svg", {
|
|
10096
|
+
width: width,
|
|
10097
|
+
height: height,
|
|
10087
10098
|
viewBox: "0 0 7 13",
|
|
10088
10099
|
fill: "none",
|
|
10089
10100
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10090
10101
|
}, /*#__PURE__*/React$1.createElement("path", {
|
|
10091
10102
|
d: "M0.410156 5.78516L5.66016 0.5625C5.90625 0.289062 6.31641 0.289062 6.58984 0.5625C6.83594 0.808594 6.83594 1.21875 6.58984 1.46484L1.77734 6.25L6.5625 11.0625C6.83594 11.3086 6.83594 11.7188 6.5625 11.9648C6.31641 12.2383 5.90625 12.2383 5.66016 11.9648L0.410156 6.71484C0.136719 6.46875 0.136719 6.05859 0.410156 5.78516Z",
|
|
10092
|
-
fill:
|
|
10103
|
+
fill: fill
|
|
10093
10104
|
}));
|
|
10094
10105
|
|
|
10095
10106
|
/* eslint-disable react/prop-types */
|
|
@@ -10311,20 +10322,21 @@ const DatePicker = ({
|
|
|
10311
10322
|
};
|
|
10312
10323
|
|
|
10313
10324
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10314
|
-
const RangePicker =
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10325
|
+
const RangePicker = _ref => {
|
|
10326
|
+
let {
|
|
10327
|
+
label,
|
|
10328
|
+
onChange,
|
|
10329
|
+
borderRadius,
|
|
10330
|
+
required,
|
|
10331
|
+
width,
|
|
10332
|
+
height,
|
|
10333
|
+
placeholder,
|
|
10334
|
+
disabled,
|
|
10335
|
+
borderColor,
|
|
10336
|
+
borderColorFocus,
|
|
10337
|
+
textColor,
|
|
10338
|
+
selectedValue
|
|
10339
|
+
} = _ref;
|
|
10328
10340
|
const [isFocused, setIsFocused] = useState(false);
|
|
10329
10341
|
const [isOpen, setIsOpen] = useState(false);
|
|
10330
10342
|
const [value, setValue] = useState(''); // Added value state
|
|
@@ -10756,22 +10768,23 @@ const QuarterPopupPicker = ({
|
|
|
10756
10768
|
};
|
|
10757
10769
|
|
|
10758
10770
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10759
|
-
const QuarterPicker =
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10771
|
+
const QuarterPicker = _ref => {
|
|
10772
|
+
let {
|
|
10773
|
+
availableQuarters,
|
|
10774
|
+
// ["Q1-2024"]
|
|
10775
|
+
label,
|
|
10776
|
+
onChange,
|
|
10777
|
+
borderRadius,
|
|
10778
|
+
required,
|
|
10779
|
+
width,
|
|
10780
|
+
height,
|
|
10781
|
+
placeholder,
|
|
10782
|
+
disabled,
|
|
10783
|
+
borderColor,
|
|
10784
|
+
borderColorFocus,
|
|
10785
|
+
textColor,
|
|
10786
|
+
selectedValue
|
|
10787
|
+
} = _ref;
|
|
10775
10788
|
const [isFocused, setIsFocused] = useState(false);
|
|
10776
10789
|
const [isOpen, setIsOpen] = useState(false);
|
|
10777
10790
|
const [value, setValue] = useState('');
|
|
@@ -11210,21 +11223,22 @@ const MonthPopupPicker = ({
|
|
|
11210
11223
|
};
|
|
11211
11224
|
|
|
11212
11225
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11213
|
-
const MonthPicker =
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11226
|
+
const MonthPicker = _ref => {
|
|
11227
|
+
let {
|
|
11228
|
+
availableMonths,
|
|
11229
|
+
label,
|
|
11230
|
+
onChange,
|
|
11231
|
+
borderRadius,
|
|
11232
|
+
required,
|
|
11233
|
+
width,
|
|
11234
|
+
height,
|
|
11235
|
+
placeholder,
|
|
11236
|
+
disabled,
|
|
11237
|
+
borderColor,
|
|
11238
|
+
borderColorFocus,
|
|
11239
|
+
textColor,
|
|
11240
|
+
selectedValue
|
|
11241
|
+
} = _ref;
|
|
11228
11242
|
const [isFocused, setIsFocused] = useState(false);
|
|
11229
11243
|
const [isOpen, setIsOpen] = useState(false);
|
|
11230
11244
|
const [value, setValue] = useState('');
|
|
@@ -24449,21 +24463,22 @@ const DeleteIcon = styled.div`
|
|
|
24449
24463
|
position: absolute;
|
|
24450
24464
|
`;
|
|
24451
24465
|
|
|
24452
|
-
const QuickFilterDropdownSingle =
|
|
24453
|
-
|
|
24454
|
-
|
|
24455
|
-
|
|
24456
|
-
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
|
|
24466
|
-
|
|
24466
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24467
|
+
let {
|
|
24468
|
+
label,
|
|
24469
|
+
hoverColor,
|
|
24470
|
+
options,
|
|
24471
|
+
selectedValue,
|
|
24472
|
+
placeHolder,
|
|
24473
|
+
onChange,
|
|
24474
|
+
disabled,
|
|
24475
|
+
width,
|
|
24476
|
+
error,
|
|
24477
|
+
errorMessage,
|
|
24478
|
+
xIconShow,
|
|
24479
|
+
labelColor,
|
|
24480
|
+
showLabelOnTop
|
|
24481
|
+
} = _ref;
|
|
24467
24482
|
const [isFocused, setIsFocused] = useState(false);
|
|
24468
24483
|
const [showOptions, setShowOptions] = useState(false);
|
|
24469
24484
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24861,23 +24876,24 @@ const IconContainer$1 = styled.div`
|
|
|
24861
24876
|
cursor: pointer;
|
|
24862
24877
|
`;
|
|
24863
24878
|
|
|
24864
|
-
const QuickFilterDropdownMultiSelection =
|
|
24865
|
-
|
|
24866
|
-
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
|
|
24870
|
-
|
|
24871
|
-
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24879
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24880
|
+
let {
|
|
24881
|
+
label,
|
|
24882
|
+
labelEmptyValue,
|
|
24883
|
+
options,
|
|
24884
|
+
selectedValue,
|
|
24885
|
+
placeHolder,
|
|
24886
|
+
onChange,
|
|
24887
|
+
required,
|
|
24888
|
+
disabled,
|
|
24889
|
+
width,
|
|
24890
|
+
error,
|
|
24891
|
+
errorMessage,
|
|
24892
|
+
labelColor,
|
|
24893
|
+
xIconShow,
|
|
24894
|
+
checkBoxColor,
|
|
24895
|
+
showLabelOnTop
|
|
24896
|
+
} = _ref;
|
|
24881
24897
|
const [isFocused, setIsFocused] = useState(false);
|
|
24882
24898
|
const [showOptions, setShowOptions] = useState(false);
|
|
24883
24899
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -25881,39 +25897,45 @@ const LegendWrapper = styled.div`
|
|
|
25881
25897
|
padding-top: 15px;
|
|
25882
25898
|
`;
|
|
25883
25899
|
|
|
25884
|
-
const LegendUnionIcon =
|
|
25885
|
-
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25889
|
-
|
|
25890
|
-
|
|
25891
|
-
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
+
const LegendUnionIcon = _ref => {
|
|
25901
|
+
let {
|
|
25902
|
+
width = '18',
|
|
25903
|
+
height = '5',
|
|
25904
|
+
color = '#9CCB3B'
|
|
25905
|
+
} = _ref;
|
|
25906
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
25907
|
+
width: width,
|
|
25908
|
+
height: height,
|
|
25909
|
+
viewBox: "0 0 18 5",
|
|
25910
|
+
fill: "none",
|
|
25911
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25912
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
25913
|
+
fillRule: "evenodd",
|
|
25914
|
+
clipRule: "evenodd",
|
|
25915
|
+
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",
|
|
25916
|
+
fill: color
|
|
25917
|
+
}));
|
|
25918
|
+
};
|
|
25900
25919
|
|
|
25901
|
-
const LegendLineIcon =
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25908
|
-
|
|
25909
|
-
|
|
25910
|
-
|
|
25911
|
-
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25920
|
+
const LegendLineIcon = _ref => {
|
|
25921
|
+
let {
|
|
25922
|
+
width = '19',
|
|
25923
|
+
height = '3',
|
|
25924
|
+
color = '#9CCB3B'
|
|
25925
|
+
} = _ref;
|
|
25926
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
25927
|
+
width: width,
|
|
25928
|
+
height: height,
|
|
25929
|
+
viewBox: "0 0 19 3",
|
|
25930
|
+
fill: "none",
|
|
25931
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25932
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
25933
|
+
fillRule: "evenodd",
|
|
25934
|
+
clipRule: "evenodd",
|
|
25935
|
+
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",
|
|
25936
|
+
fill: color
|
|
25937
|
+
}));
|
|
25938
|
+
};
|
|
25917
25939
|
|
|
25918
25940
|
const ControlsContainer$5 = styled.div`
|
|
25919
25941
|
position: relative;
|
|
@@ -26488,7 +26510,7 @@ const LegendTitle = styled.h5`
|
|
|
26488
26510
|
display: flex;
|
|
26489
26511
|
justify-content: space-between;
|
|
26490
26512
|
@media (max-width: 1536px) {
|
|
26491
|
-
font-size: 0.
|
|
26513
|
+
font-size: 0.75em; /* 11px → 0.6875em */
|
|
26492
26514
|
}
|
|
26493
26515
|
@media (max-width: 1366px) {
|
|
26494
26516
|
font-size: 0.625em; /* 10px → 0.625em */
|
|
@@ -28842,7 +28864,6 @@ const scrollableStyles$2 = `
|
|
|
28842
28864
|
}
|
|
28843
28865
|
`;
|
|
28844
28866
|
const DoubleBarSingleLineContainer = styled.div`
|
|
28845
|
-
position: relative;
|
|
28846
28867
|
font-family: "Poppins", sans-serif;
|
|
28847
28868
|
color: #212121;
|
|
28848
28869
|
background-color: white;
|
|
@@ -28853,13 +28874,14 @@ const DoubleBarSingleLineContainer = styled.div`
|
|
|
28853
28874
|
${scrollableStyles$2}
|
|
28854
28875
|
`;
|
|
28855
28876
|
const LegendContainer = styled.div`
|
|
28856
|
-
position:
|
|
28877
|
+
position: absolute;
|
|
28878
|
+
left: 0;
|
|
28857
28879
|
text-align: center;
|
|
28858
|
-
width: ${props => props.width};
|
|
28859
|
-
bottom:
|
|
28880
|
+
width: ${props => `${props.width}px`};
|
|
28881
|
+
bottom: 20px;
|
|
28860
28882
|
`;
|
|
28861
28883
|
const Controls$1 = styled.div`
|
|
28862
|
-
height: 100
|
|
28884
|
+
height: calc(100% - 30px);
|
|
28863
28885
|
display: flex;
|
|
28864
28886
|
flex-direction: column;
|
|
28865
28887
|
background-color: white;
|
|
@@ -28911,6 +28933,7 @@ const DoubleBarSingleLine = props => {
|
|
|
28911
28933
|
width,
|
|
28912
28934
|
height,
|
|
28913
28935
|
title,
|
|
28936
|
+
hasScroll,
|
|
28914
28937
|
dataState,
|
|
28915
28938
|
data,
|
|
28916
28939
|
lineChartValueType,
|
|
@@ -28922,6 +28945,14 @@ const DoubleBarSingleLine = props => {
|
|
|
28922
28945
|
noDataText
|
|
28923
28946
|
} = props;
|
|
28924
28947
|
const [legendData, setLegendData] = useState([]);
|
|
28948
|
+
const containerRef = useRef(null); // Create a ref for the container
|
|
28949
|
+
const [containerWidth, setContainerWidth] = useState(0); // State to store the container's width
|
|
28950
|
+
|
|
28951
|
+
useEffect(() => {
|
|
28952
|
+
if (containerRef.current) {
|
|
28953
|
+
setContainerWidth(containerRef.current.offsetWidth); // Set the width of the container
|
|
28954
|
+
}
|
|
28955
|
+
}, [containerRef]);
|
|
28925
28956
|
useEffect(() => {
|
|
28926
28957
|
const newLegendData = dataState.map(item => ({
|
|
28927
28958
|
title: item.name,
|
|
@@ -29064,16 +29095,17 @@ const DoubleBarSingleLine = props => {
|
|
|
29064
29095
|
}, line))));
|
|
29065
29096
|
};
|
|
29066
29097
|
return /*#__PURE__*/React$1.createElement(DoubleBarSingleLineContainer, {
|
|
29098
|
+
ref: containerRef,
|
|
29067
29099
|
className: className,
|
|
29068
29100
|
height: height,
|
|
29069
29101
|
width: width,
|
|
29070
|
-
hasScroll:
|
|
29102
|
+
hasScroll: hasScroll
|
|
29071
29103
|
}, data.length === 0 ? /*#__PURE__*/React$1.createElement(NoDataFoundMessage, {
|
|
29072
29104
|
noDataText: noDataText
|
|
29073
29105
|
}) : /*#__PURE__*/React$1.createElement(Controls$1, {
|
|
29074
29106
|
className: "Controls"
|
|
29075
|
-
}, title !== '' && /*#__PURE__*/React$1.createElement(Title$2, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
|
|
29076
|
-
width:
|
|
29107
|
+
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$2, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
|
|
29108
|
+
width: hasScroll ? `${data.length * 178}px` : 'auto'
|
|
29077
29109
|
}, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, {
|
|
29078
29110
|
data: data,
|
|
29079
29111
|
margin: {
|
|
@@ -29133,7 +29165,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29133
29165
|
dataKey: obj.key,
|
|
29134
29166
|
content: CustomLabel
|
|
29135
29167
|
}))))))), showLegend && /*#__PURE__*/React$1.createElement(LegendContainer, {
|
|
29136
|
-
width:
|
|
29168
|
+
width: containerWidth,
|
|
29137
29169
|
height: height
|
|
29138
29170
|
}, /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
29139
29171
|
legendData: legendData
|
|
@@ -30320,5 +30352,5 @@ const BatteryChart = props => {
|
|
|
30320
30352
|
}))))))), starText !== "" && /*#__PURE__*/React$1.createElement(StarText, null, starText));
|
|
30321
30353
|
};
|
|
30322
30354
|
|
|
30323
|
-
export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
|
|
30355
|
+
export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
|
|
30324
30356
|
//# sourceMappingURL=index.esm.js.map
|