sag_components 2.0.0-beta60 → 2.0.0-beta62
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 +375 -385
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +375 -385
- package/dist/index.js.map +1 -1
- package/dist/types/components/BrushChart/BrushChart.style.d.ts +4 -0
- package/dist/types/components/BrushChart/Charts/BarLine.d.ts +2 -2
- package/dist/types/components/BrushChart/Charts/InnerBar.d.ts +2 -2
- package/dist/types/components/BrushChart/Charts/SingleChart.d.ts +4 -2
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -1943,7 +1943,7 @@ const TitleAndValueContainer$4 = styled__default["default"].div`
|
|
|
1943
1943
|
flex-direction: column;
|
|
1944
1944
|
padding: 0 20px;
|
|
1945
1945
|
`;
|
|
1946
|
-
const Title$
|
|
1946
|
+
const Title$f = styled__default["default"].h4`
|
|
1947
1947
|
font-weight: 400;
|
|
1948
1948
|
font-size: 18px;
|
|
1949
1949
|
margin: 0 0 8px;
|
|
@@ -2078,7 +2078,7 @@ const AvarageDelimiter = styled__default["default"].div`
|
|
|
2078
2078
|
`;
|
|
2079
2079
|
|
|
2080
2080
|
/* Custom properties */
|
|
2081
|
-
const TooltipContainer$
|
|
2081
|
+
const TooltipContainer$4 = styled__default["default"].div`
|
|
2082
2082
|
--tooltip-text-color: black;
|
|
2083
2083
|
--tooltip-background-color: white;
|
|
2084
2084
|
--tooltip-margin: 40px;
|
|
@@ -2192,7 +2192,7 @@ const Tooltip$1 = props => {
|
|
|
2192
2192
|
clearInterval(timeout);
|
|
2193
2193
|
setActive(false);
|
|
2194
2194
|
};
|
|
2195
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$
|
|
2195
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$4, null, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$2, {
|
|
2196
2196
|
onMouseEnter: showTip,
|
|
2197
2197
|
onMouseLeave: hideTip
|
|
2198
2198
|
}, children, active && /*#__PURE__*/React__default["default"].createElement(TooltipTip$1, {
|
|
@@ -2423,7 +2423,7 @@ const PieChart = props => {
|
|
|
2423
2423
|
width: width
|
|
2424
2424
|
}, !hideTitleAndValue && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$4, {
|
|
2425
2425
|
className: "TitleAndValueContainer"
|
|
2426
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
2426
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$f, {
|
|
2427
2427
|
className: "Title"
|
|
2428
2428
|
}, title), /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer$2, {
|
|
2429
2429
|
className: "CurrencySignAndFormattedValueContainer"
|
|
@@ -9494,70 +9494,67 @@ const DropdownMain = styled__default["default"].div`
|
|
|
9494
9494
|
`;
|
|
9495
9495
|
|
|
9496
9496
|
/* eslint-disable react/prop-types */
|
|
9497
|
-
const DropdownNew =
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
elementType: elementType
|
|
9559
|
-
}));
|
|
9560
|
-
};
|
|
9497
|
+
const DropdownNew = ({
|
|
9498
|
+
isMulti,
|
|
9499
|
+
label,
|
|
9500
|
+
labelEmptyValue,
|
|
9501
|
+
options,
|
|
9502
|
+
selectedValue,
|
|
9503
|
+
placeHolder,
|
|
9504
|
+
onChange,
|
|
9505
|
+
required,
|
|
9506
|
+
disabled,
|
|
9507
|
+
width,
|
|
9508
|
+
error,
|
|
9509
|
+
errorMessage,
|
|
9510
|
+
labelColor,
|
|
9511
|
+
checkBoxColor,
|
|
9512
|
+
xIconShow,
|
|
9513
|
+
showLabelOnTop,
|
|
9514
|
+
orderBy,
|
|
9515
|
+
elementType
|
|
9516
|
+
}) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
|
|
9517
|
+
className: "DropdownMain",
|
|
9518
|
+
width: width
|
|
9519
|
+
}, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
|
|
9520
|
+
className: "DropdownMultiNew",
|
|
9521
|
+
placeHolder: placeHolder,
|
|
9522
|
+
label: label,
|
|
9523
|
+
labelEmptyValue: labelEmptyValue,
|
|
9524
|
+
labelColor: labelColor,
|
|
9525
|
+
checkBoxColor: checkBoxColor,
|
|
9526
|
+
required: required,
|
|
9527
|
+
options: options,
|
|
9528
|
+
width: width,
|
|
9529
|
+
disabled: disabled,
|
|
9530
|
+
error: error,
|
|
9531
|
+
errorMessage: errorMessage,
|
|
9532
|
+
selectedValue: selectedValue,
|
|
9533
|
+
xIconShow: xIconShow,
|
|
9534
|
+
onChange: onChange,
|
|
9535
|
+
showLabelOnTop: showLabelOnTop,
|
|
9536
|
+
orderBy: orderBy,
|
|
9537
|
+
elementType: elementType
|
|
9538
|
+
}) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
|
|
9539
|
+
className: "DropdownSingleNew",
|
|
9540
|
+
placeHolder: placeHolder,
|
|
9541
|
+
label: label,
|
|
9542
|
+
labelEmptyValue: labelEmptyValue,
|
|
9543
|
+
labelColor: labelColor,
|
|
9544
|
+
checkBoxColor: checkBoxColor,
|
|
9545
|
+
required: required,
|
|
9546
|
+
options: options,
|
|
9547
|
+
width: width,
|
|
9548
|
+
disabled: disabled,
|
|
9549
|
+
error: error,
|
|
9550
|
+
errorMessage: errorMessage,
|
|
9551
|
+
selectedValue: selectedValue,
|
|
9552
|
+
xIconShow: xIconShow,
|
|
9553
|
+
onChange: onChange,
|
|
9554
|
+
showLabelOnTop: showLabelOnTop,
|
|
9555
|
+
orderBy: orderBy,
|
|
9556
|
+
elementType: elementType
|
|
9557
|
+
}));
|
|
9561
9558
|
DropdownNew.propTypes = {
|
|
9562
9559
|
placeHolder: PropTypes.string,
|
|
9563
9560
|
label: PropTypes.string,
|
|
@@ -9985,21 +9982,20 @@ const DatePicker = ({
|
|
|
9985
9982
|
};
|
|
9986
9983
|
|
|
9987
9984
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
9988
|
-
const RangePicker =
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
} = _ref;
|
|
9985
|
+
const RangePicker = ({
|
|
9986
|
+
label,
|
|
9987
|
+
onChange,
|
|
9988
|
+
borderRadius,
|
|
9989
|
+
required,
|
|
9990
|
+
width,
|
|
9991
|
+
height,
|
|
9992
|
+
placeholder,
|
|
9993
|
+
disabled,
|
|
9994
|
+
borderColor,
|
|
9995
|
+
borderColorFocus,
|
|
9996
|
+
textColor,
|
|
9997
|
+
selectedValue
|
|
9998
|
+
}) => {
|
|
10003
9999
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10004
10000
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10005
10001
|
const [value, setValue] = React$1.useState(''); // Added value state
|
|
@@ -10440,23 +10436,22 @@ const QuarterPopupPicker = ({
|
|
|
10440
10436
|
};
|
|
10441
10437
|
|
|
10442
10438
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10443
|
-
const QuarterPicker =
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
} = _ref;
|
|
10439
|
+
const QuarterPicker = ({
|
|
10440
|
+
availableQuarters,
|
|
10441
|
+
// ["Q1-2024"]
|
|
10442
|
+
label,
|
|
10443
|
+
onChange,
|
|
10444
|
+
borderRadius,
|
|
10445
|
+
required,
|
|
10446
|
+
width,
|
|
10447
|
+
height,
|
|
10448
|
+
placeholder,
|
|
10449
|
+
disabled,
|
|
10450
|
+
borderColor,
|
|
10451
|
+
borderColorFocus,
|
|
10452
|
+
textColor,
|
|
10453
|
+
selectedValue
|
|
10454
|
+
}) => {
|
|
10460
10455
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10461
10456
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10462
10457
|
const [value, setValue] = React$1.useState('');
|
|
@@ -10903,22 +10898,21 @@ const MonthPopupPicker = ({
|
|
|
10903
10898
|
};
|
|
10904
10899
|
|
|
10905
10900
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10906
|
-
const MonthPicker =
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
} = _ref;
|
|
10901
|
+
const MonthPicker = ({
|
|
10902
|
+
availableMonths,
|
|
10903
|
+
label,
|
|
10904
|
+
onChange,
|
|
10905
|
+
borderRadius,
|
|
10906
|
+
required,
|
|
10907
|
+
width,
|
|
10908
|
+
height,
|
|
10909
|
+
placeholder,
|
|
10910
|
+
disabled,
|
|
10911
|
+
borderColor,
|
|
10912
|
+
borderColorFocus,
|
|
10913
|
+
textColor,
|
|
10914
|
+
selectedValue
|
|
10915
|
+
}) => {
|
|
10922
10916
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10923
10917
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10924
10918
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11149,7 +11143,7 @@ const TooltipTextContainer = styled__default["default"].div`
|
|
|
11149
11143
|
cursor: pointer;
|
|
11150
11144
|
}
|
|
11151
11145
|
`;
|
|
11152
|
-
const TooltipText$
|
|
11146
|
+
const TooltipText$2 = styled__default["default"].div`
|
|
11153
11147
|
margin: 0;
|
|
11154
11148
|
`;
|
|
11155
11149
|
|
|
@@ -11319,8 +11313,8 @@ const FilterPanel = props => {
|
|
|
11319
11313
|
fieldsData: newFieldsDataState
|
|
11320
11314
|
});
|
|
11321
11315
|
};
|
|
11322
|
-
const getTooltipTextDates = () => /*#__PURE__*/React__default["default"].createElement(TooltipTextContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipText$
|
|
11323
|
-
const getTooltipTextGoButton = () => /*#__PURE__*/React__default["default"].createElement(TooltipTextContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipText$
|
|
11316
|
+
const getTooltipTextDates = () => /*#__PURE__*/React__default["default"].createElement(TooltipTextContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipText$2, null, "Dates can be selected"), /*#__PURE__*/React__default["default"].createElement(TooltipText$2, null, "only after selecting"), /*#__PURE__*/React__default["default"].createElement(TooltipText$2, null, "period types"));
|
|
11317
|
+
const getTooltipTextGoButton = () => /*#__PURE__*/React__default["default"].createElement(TooltipTextContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipText$2, null, tooltipTextGoButton));
|
|
11324
11318
|
const getYearsArray = () => {
|
|
11325
11319
|
const currentYear = moment().year();
|
|
11326
11320
|
const previousYear = moment().subtract(1, 'years').year();
|
|
@@ -24144,22 +24138,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24144
24138
|
position: absolute;
|
|
24145
24139
|
`;
|
|
24146
24140
|
|
|
24147
|
-
const QuickFilterDropdownSingle =
|
|
24148
|
-
|
|
24149
|
-
|
|
24150
|
-
|
|
24151
|
-
|
|
24152
|
-
|
|
24153
|
-
|
|
24154
|
-
|
|
24155
|
-
|
|
24156
|
-
|
|
24157
|
-
|
|
24158
|
-
|
|
24159
|
-
|
|
24160
|
-
|
|
24161
|
-
|
|
24162
|
-
} = _ref;
|
|
24141
|
+
const QuickFilterDropdownSingle = ({
|
|
24142
|
+
label,
|
|
24143
|
+
hoverColor,
|
|
24144
|
+
options,
|
|
24145
|
+
selectedValue,
|
|
24146
|
+
placeHolder,
|
|
24147
|
+
onChange,
|
|
24148
|
+
disabled,
|
|
24149
|
+
width,
|
|
24150
|
+
error,
|
|
24151
|
+
errorMessage,
|
|
24152
|
+
xIconShow,
|
|
24153
|
+
labelColor,
|
|
24154
|
+
showLabelOnTop
|
|
24155
|
+
}) => {
|
|
24163
24156
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24164
24157
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24165
24158
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24557,24 +24550,23 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24557
24550
|
cursor: pointer;
|
|
24558
24551
|
`;
|
|
24559
24552
|
|
|
24560
|
-
const QuickFilterDropdownMultiSelection =
|
|
24561
|
-
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
} = _ref;
|
|
24553
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24554
|
+
label,
|
|
24555
|
+
labelEmptyValue,
|
|
24556
|
+
options,
|
|
24557
|
+
selectedValue,
|
|
24558
|
+
placeHolder,
|
|
24559
|
+
onChange,
|
|
24560
|
+
required,
|
|
24561
|
+
disabled,
|
|
24562
|
+
width,
|
|
24563
|
+
error,
|
|
24564
|
+
errorMessage,
|
|
24565
|
+
labelColor,
|
|
24566
|
+
xIconShow,
|
|
24567
|
+
checkBoxColor,
|
|
24568
|
+
showLabelOnTop
|
|
24569
|
+
}) => {
|
|
24578
24570
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24579
24571
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24580
24572
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -25397,7 +25389,7 @@ const TitleAndValueContainer$3 = styled__default["default"].div`
|
|
|
25397
25389
|
display: flex;
|
|
25398
25390
|
flex-direction: column;
|
|
25399
25391
|
`;
|
|
25400
|
-
const Title$
|
|
25392
|
+
const Title$e = styled__default["default"].h4`
|
|
25401
25393
|
font-weight: 400;
|
|
25402
25394
|
font-size: 20px;
|
|
25403
25395
|
margin: 0;
|
|
@@ -25460,7 +25452,7 @@ const FormattedValue$3 = props => {
|
|
|
25460
25452
|
width: width
|
|
25461
25453
|
}, /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$3, {
|
|
25462
25454
|
className: "TitleAndValueContainer"
|
|
25463
|
-
}, title ? /*#__PURE__*/React__default["default"].createElement(Title$
|
|
25455
|
+
}, title ? /*#__PURE__*/React__default["default"].createElement(Title$e, {
|
|
25464
25456
|
className: "Title",
|
|
25465
25457
|
width: width
|
|
25466
25458
|
}, title) : '', showTopValue && /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer$1, {
|
|
@@ -25472,7 +25464,7 @@ const FormattedValue$3 = props => {
|
|
|
25472
25464
|
className: "CurrencySignOrPercent"
|
|
25473
25465
|
}, currencySign ? getCurrencySign(currencyType, value) : ''), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : '', /*#__PURE__*/React__default["default"].createElement(CurrencySignOrPercent, {
|
|
25474
25466
|
className: "CurrencySignOrPercent"
|
|
25475
|
-
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default["default"].createElement(Title$
|
|
25467
|
+
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default["default"].createElement(Title$e, {
|
|
25476
25468
|
className: "Title",
|
|
25477
25469
|
width: width
|
|
25478
25470
|
}, subtitle) : '')));
|
|
@@ -25534,7 +25526,7 @@ const TooltipLabel$3 = styled__default["default"].div`
|
|
|
25534
25526
|
font-weight: 400;
|
|
25535
25527
|
width: fit-content;
|
|
25536
25528
|
`;
|
|
25537
|
-
const TooltipTitle$
|
|
25529
|
+
const TooltipTitle$4 = styled__default["default"].div`
|
|
25538
25530
|
color: #212121;
|
|
25539
25531
|
font-size: 14px;
|
|
25540
25532
|
font-weight: 600;
|
|
@@ -25542,7 +25534,7 @@ const TooltipTitle$3 = styled__default["default"].div`
|
|
|
25542
25534
|
const TitleAndValueContainer$2 = styled__default["default"].div`
|
|
25543
25535
|
padding: 0 1rem;
|
|
25544
25536
|
`;
|
|
25545
|
-
const Title$
|
|
25537
|
+
const Title$d = styled__default["default"].h5`
|
|
25546
25538
|
font-weight: 500;
|
|
25547
25539
|
font-size: 18px;
|
|
25548
25540
|
line-height: 20px;
|
|
@@ -25671,7 +25663,7 @@ const TitleAndIconContainer = styled__default["default"].div`
|
|
|
25671
25663
|
display: flex;
|
|
25672
25664
|
align-items: center;
|
|
25673
25665
|
`;
|
|
25674
|
-
const Title$
|
|
25666
|
+
const Title$c = styled__default["default"].h4`
|
|
25675
25667
|
font-weight: 400;
|
|
25676
25668
|
font-size: 14px;
|
|
25677
25669
|
line-height: 27px;
|
|
@@ -25725,7 +25717,7 @@ const PerformanceAnalyticsLegend = props => {
|
|
|
25725
25717
|
color: item.iconColor
|
|
25726
25718
|
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
|
|
25727
25719
|
color: item.iconColor
|
|
25728
|
-
}) : '', /*#__PURE__*/React__default["default"].createElement(Title$
|
|
25720
|
+
}) : '', /*#__PURE__*/React__default["default"].createElement(Title$c, {
|
|
25729
25721
|
id: "Title",
|
|
25730
25722
|
width: width
|
|
25731
25723
|
}, item.title))))) : '');
|
|
@@ -25823,7 +25815,7 @@ const BarChartsByWeeks = props => {
|
|
|
25823
25815
|
let currentTooltipSecondValue = 0;
|
|
25824
25816
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
25825
25817
|
if (payload[0].payload?.secondValue) currentTooltipSecondValue = payload[0].payload?.secondValue;
|
|
25826
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$3, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$
|
|
25818
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$3, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$4, null, `${isTitleOriganal ? '' : 'Week: '}${week}`), /*#__PURE__*/React__default["default"].createElement(TooltipLabel$3, null, `${tooltipTitle}
|
|
25827
25819
|
${displayFormattedValue(currentTooltipValue)}
|
|
25828
25820
|
`), currentTooltipSecondValue ? /*#__PURE__*/React__default["default"].createElement(TooltipLabel$3, null, `${tooltipSecondTitle}
|
|
25829
25821
|
${displayFormattedValue(currentTooltipSecondValue)}
|
|
@@ -25880,7 +25872,7 @@ const BarChartsByWeeks = props => {
|
|
|
25880
25872
|
ref: controlsContainerRef
|
|
25881
25873
|
}, /*#__PURE__*/React__default["default"].createElement(Controls$6, {
|
|
25882
25874
|
height: getControlsHeight()
|
|
25883
|
-
}, showTitle && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
25875
|
+
}, showTitle && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default["default"].createElement(Title$d, null, title), /*#__PURE__*/React__default["default"].createElement(FormattedValue$3, {
|
|
25884
25876
|
title: headerValueTopTitle,
|
|
25885
25877
|
subtitle: headerValueBottomTitle,
|
|
25886
25878
|
showTopValue: showHeaderTopValue,
|
|
@@ -26113,7 +26105,7 @@ const TitleAndValueContainer$1 = styled__default["default"].div`
|
|
|
26113
26105
|
flex-direction: column;
|
|
26114
26106
|
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26115
26107
|
`;
|
|
26116
|
-
const Title$
|
|
26108
|
+
const Title$b = styled__default["default"].h4`
|
|
26117
26109
|
font-weight: 500;
|
|
26118
26110
|
font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
|
|
26119
26111
|
margin: 0;
|
|
@@ -26316,7 +26308,7 @@ const TotalDoughnutChart = props => {
|
|
|
26316
26308
|
width: width
|
|
26317
26309
|
}, !hideTitleAndValue && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$1, {
|
|
26318
26310
|
className: "TitleAndValueContainer"
|
|
26319
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
26311
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$b, {
|
|
26320
26312
|
className: "Title",
|
|
26321
26313
|
fontSize: titleFontSize
|
|
26322
26314
|
}, title), /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer, {
|
|
@@ -26446,7 +26438,7 @@ CustomTooltip.defaultProps = {
|
|
|
26446
26438
|
isPercent: false
|
|
26447
26439
|
};
|
|
26448
26440
|
|
|
26449
|
-
const TooltipContainer$
|
|
26441
|
+
const TooltipContainer$3 = styled__default["default"].div`
|
|
26450
26442
|
--tooltip-text-color: black;
|
|
26451
26443
|
--tooltip-background-color: white;
|
|
26452
26444
|
--tooltip-margin: 40px;
|
|
@@ -26552,7 +26544,7 @@ const Tooltip = props => {
|
|
|
26552
26544
|
direction,
|
|
26553
26545
|
content
|
|
26554
26546
|
} = props;
|
|
26555
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$
|
|
26547
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$3, {
|
|
26556
26548
|
className: className,
|
|
26557
26549
|
top: `${top}px`,
|
|
26558
26550
|
left: `${left}px`
|
|
@@ -26638,7 +26630,7 @@ const TotalValue = styled__default["default"].div`
|
|
|
26638
26630
|
font-size: 20px;
|
|
26639
26631
|
}
|
|
26640
26632
|
`;
|
|
26641
|
-
const Title$
|
|
26633
|
+
const Title$a = styled__default["default"].h4`
|
|
26642
26634
|
font-size: 18px;
|
|
26643
26635
|
font-weight: 400;
|
|
26644
26636
|
line-height: 1;
|
|
@@ -26795,7 +26787,7 @@ const TotalHorizontalCharts = props => {
|
|
|
26795
26787
|
}, chartsData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(CardHeader, {
|
|
26796
26788
|
ref: topHeader,
|
|
26797
26789
|
className: "CardHeader"
|
|
26798
|
-
}, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$
|
|
26790
|
+
}, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$a, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(TotalValue, {
|
|
26799
26791
|
className: "TotalValue"
|
|
26800
26792
|
}, currencySign && /*#__PURE__*/React__default["default"].createElement(CurrencySign, {
|
|
26801
26793
|
className: "CurrencySign"
|
|
@@ -27268,7 +27260,7 @@ const ItemContainer = styled__default["default"].div`
|
|
|
27268
27260
|
flex-direction: column;
|
|
27269
27261
|
flex-wrap: wrap;
|
|
27270
27262
|
`;
|
|
27271
|
-
const Title$
|
|
27263
|
+
const Title$9 = styled__default["default"].h4`
|
|
27272
27264
|
font-size: 18px;
|
|
27273
27265
|
font-weight: 500;
|
|
27274
27266
|
margin: 0;
|
|
@@ -27384,7 +27376,7 @@ const SalesAndROI = props => {
|
|
|
27384
27376
|
showBorderShadow: showBorderShadow
|
|
27385
27377
|
}, /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer, {
|
|
27386
27378
|
id: "TitleAndValueContainer"
|
|
27387
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
27379
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$9, {
|
|
27388
27380
|
id: "Title"
|
|
27389
27381
|
}, title), showBanner && /*#__PURE__*/React__default["default"].createElement(OutBanner, {
|
|
27390
27382
|
id: "OutBanner",
|
|
@@ -27483,7 +27475,7 @@ const TitleContainer$1 = styled__default["default"].div`
|
|
|
27483
27475
|
margin: 0;
|
|
27484
27476
|
border-bottom: 1px solid #b1b1b1;
|
|
27485
27477
|
`;
|
|
27486
|
-
const Title$
|
|
27478
|
+
const Title$8 = styled__default["default"].p`
|
|
27487
27479
|
font-weight: 400;
|
|
27488
27480
|
font-size: 24px;
|
|
27489
27481
|
margin: 0;
|
|
@@ -27703,7 +27695,7 @@ const PopupCharts = props => {
|
|
|
27703
27695
|
height: height,
|
|
27704
27696
|
width: width,
|
|
27705
27697
|
onClick: e => e.stopPropagation()
|
|
27706
|
-
}, /*#__PURE__*/React__default["default"].createElement(TitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
27698
|
+
}, /*#__PURE__*/React__default["default"].createElement(TitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Title$8, null, title), /*#__PURE__*/React__default["default"].createElement(CloseXIconContainer, {
|
|
27707
27699
|
onClick: e => closePopupCharts(e)
|
|
27708
27700
|
}, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, null))), /*#__PURE__*/React__default["default"].createElement(ChartsContainer, {
|
|
27709
27701
|
id: "ChartsContainer",
|
|
@@ -27801,7 +27793,7 @@ const TopToggleListMainContainer = styled__default["default"].div`
|
|
|
27801
27793
|
padding: 0 24px;
|
|
27802
27794
|
width: ${props => props.width};
|
|
27803
27795
|
`;
|
|
27804
|
-
const Title$
|
|
27796
|
+
const Title$7 = styled__default["default"].h4`
|
|
27805
27797
|
font-size: 14px;
|
|
27806
27798
|
font-weight: 600;
|
|
27807
27799
|
margin: 20px 0 12px;
|
|
@@ -27831,7 +27823,7 @@ const TopToggleList = props => {
|
|
|
27831
27823
|
} = props;
|
|
27832
27824
|
return /*#__PURE__*/React__default["default"].createElement(TopToggleListMainContainer, {
|
|
27833
27825
|
width: width
|
|
27834
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
27826
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$7, null, title), /*#__PURE__*/React__default["default"].createElement(ListContainer, {
|
|
27835
27827
|
height: height
|
|
27836
27828
|
}, list.map(item => /*#__PURE__*/React__default["default"].createElement(ListItem, {
|
|
27837
27829
|
key: item.value
|
|
@@ -27893,7 +27885,7 @@ const TitleContainer = styled__default["default"].div`
|
|
|
27893
27885
|
justify-content: flex-start;
|
|
27894
27886
|
margin: 0 0 10px 0;
|
|
27895
27887
|
`;
|
|
27896
|
-
const Title$
|
|
27888
|
+
const Title$6 = styled__default["default"].h3`
|
|
27897
27889
|
user-select: none;
|
|
27898
27890
|
text-align: left;
|
|
27899
27891
|
margin: 0;
|
|
@@ -27938,7 +27930,7 @@ const BarLabel = styled__default["default"].span`
|
|
|
27938
27930
|
font-weight: 400;
|
|
27939
27931
|
user-select: none;
|
|
27940
27932
|
`;
|
|
27941
|
-
const TooltipContainer$
|
|
27933
|
+
const TooltipContainer$2 = styled__default["default"].div`
|
|
27942
27934
|
position: absolute;
|
|
27943
27935
|
|
|
27944
27936
|
top: ${props => props.top};
|
|
@@ -28048,7 +28040,7 @@ const Heatmap = props => {
|
|
|
28048
28040
|
if (tooltip && tooltipPosition && tooltip.label === `${item.label} - ${Math.round(item.value / totalValue * 100)}%`) {
|
|
28049
28041
|
const top = `${tooltipPosition.y}px`;
|
|
28050
28042
|
const left = `${tooltipPosition.x}px`;
|
|
28051
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$
|
|
28043
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$2, {
|
|
28052
28044
|
className: "TooltipContainer",
|
|
28053
28045
|
top: top,
|
|
28054
28046
|
left: left
|
|
@@ -28168,7 +28160,7 @@ const Heatmap = props => {
|
|
|
28168
28160
|
className: "HeatmapWrapper"
|
|
28169
28161
|
}, /*#__PURE__*/React__default["default"].createElement(TitleContainer, {
|
|
28170
28162
|
className: "TitleContainer"
|
|
28171
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
28163
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$6, {
|
|
28172
28164
|
className: "Title"
|
|
28173
28165
|
}, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
|
|
28174
28166
|
};
|
|
@@ -28582,12 +28574,12 @@ const TooltipLabel$1 = styled__default["default"].div`
|
|
|
28582
28574
|
font-weight: 400;
|
|
28583
28575
|
width: fit-content;
|
|
28584
28576
|
`;
|
|
28585
|
-
const TooltipTitle$
|
|
28577
|
+
const TooltipTitle$3 = styled__default["default"].div`
|
|
28586
28578
|
color: #212121;
|
|
28587
28579
|
font-size: 14px;
|
|
28588
28580
|
font-weight: 600;
|
|
28589
28581
|
`;
|
|
28590
|
-
const Title$
|
|
28582
|
+
const Title$5 = styled__default["default"].h5`
|
|
28591
28583
|
font-weight: 500;
|
|
28592
28584
|
font-size: 18px;
|
|
28593
28585
|
line-height: 20px;
|
|
@@ -28664,7 +28656,7 @@ const BarChart = props => {
|
|
|
28664
28656
|
if (!active || !payload || payload?.length === 0) return null;
|
|
28665
28657
|
let currentTooltipValue = 0;
|
|
28666
28658
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
28667
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$
|
|
28659
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$3, null, `${label}`), /*#__PURE__*/React__default["default"].createElement(TooltipLabel$1, null, `${displayFormattedValue(currentTooltipValue, !!showCurrentCampaignStyle)}`));
|
|
28668
28660
|
};
|
|
28669
28661
|
const CustomizedTickBarChart = props => {
|
|
28670
28662
|
const {
|
|
@@ -28747,7 +28739,7 @@ const BarChart = props => {
|
|
|
28747
28739
|
height: height,
|
|
28748
28740
|
width: width,
|
|
28749
28741
|
ref: controlsContainerRef
|
|
28750
|
-
}, /*#__PURE__*/React__default["default"].createElement(Controls$3, null, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
28742
|
+
}, /*#__PURE__*/React__default["default"].createElement(Controls$3, null, /*#__PURE__*/React__default["default"].createElement(Title$5, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
|
|
28751
28743
|
width: "100%",
|
|
28752
28744
|
height: 400
|
|
28753
28745
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, {
|
|
@@ -28918,7 +28910,7 @@ const Controls$2 = styled__default["default"].div`
|
|
|
28918
28910
|
flex-direction: column;
|
|
28919
28911
|
background-color: white;
|
|
28920
28912
|
`;
|
|
28921
|
-
const Title$
|
|
28913
|
+
const Title$4 = styled__default["default"].h5`
|
|
28922
28914
|
font-size: 18px;
|
|
28923
28915
|
font-weight: 400;
|
|
28924
28916
|
margin: 0 0 30px;
|
|
@@ -28951,7 +28943,7 @@ const TooltipLabel = styled__default["default"].div`
|
|
|
28951
28943
|
font-weight: 400;
|
|
28952
28944
|
width: fit-content;
|
|
28953
28945
|
`;
|
|
28954
|
-
const TooltipTitle$
|
|
28946
|
+
const TooltipTitle$2 = styled__default["default"].div`
|
|
28955
28947
|
color: #212121;
|
|
28956
28948
|
font-size: 14px;
|
|
28957
28949
|
font-weight: 600;
|
|
@@ -29104,7 +29096,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29104
29096
|
} else {
|
|
29105
29097
|
`${currentTooltipValue.toFixed(1)}`;
|
|
29106
29098
|
}
|
|
29107
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$
|
|
29099
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipDiv, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$2, null, `${label}`), payload.map((item, idx) => {
|
|
29108
29100
|
const dataStateItem = dataState.find(state => state.key === item.dataKey);
|
|
29109
29101
|
return /*#__PURE__*/React__default["default"].createElement(TooltipLabel, {
|
|
29110
29102
|
key: item.dataKey || idx
|
|
@@ -29177,7 +29169,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29177
29169
|
noDataText: noDataText
|
|
29178
29170
|
}) : /*#__PURE__*/React__default["default"].createElement(Controls$2, {
|
|
29179
29171
|
className: "Controls"
|
|
29180
|
-
}, title && title.trim() !== '' && /*#__PURE__*/React__default["default"].createElement(Title$
|
|
29172
|
+
}, title && title.trim() !== '' && /*#__PURE__*/React__default["default"].createElement(Title$4, null, title), /*#__PURE__*/React__default["default"].createElement(ChartsWrapper, {
|
|
29181
29173
|
width: hasScroll ? `${data.length * 178}px` : 'auto'
|
|
29182
29174
|
}, /*#__PURE__*/React__default["default"].createElement(LineChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.LineChart, _extends({
|
|
29183
29175
|
data: transformedData
|
|
@@ -29276,7 +29268,7 @@ const CheckboxGroupContainer = styled__default["default"].div`
|
|
|
29276
29268
|
height: 21px;
|
|
29277
29269
|
gap: 20px;
|
|
29278
29270
|
`;
|
|
29279
|
-
const Title$
|
|
29271
|
+
const Title$3 = styled__default["default"].h5`
|
|
29280
29272
|
font-weight: 500;
|
|
29281
29273
|
font-size: 18px;
|
|
29282
29274
|
line-height: 20px;
|
|
@@ -29296,7 +29288,7 @@ const LegendIcon = styled__default["default"].div`
|
|
|
29296
29288
|
margin-right: 5px;
|
|
29297
29289
|
background-color: ${props => props.color};
|
|
29298
29290
|
`;
|
|
29299
|
-
const TooltipContainer = styled__default["default"].div`
|
|
29291
|
+
const TooltipContainer$1 = styled__default["default"].div`
|
|
29300
29292
|
background: white;
|
|
29301
29293
|
padding: 10px;
|
|
29302
29294
|
border-radius: 5px;
|
|
@@ -29306,12 +29298,12 @@ const TooltipContainer = styled__default["default"].div`
|
|
|
29306
29298
|
font-weight: 500;
|
|
29307
29299
|
font-size: 14px;
|
|
29308
29300
|
`;
|
|
29309
|
-
const TooltipTitle = styled__default["default"].p`
|
|
29301
|
+
const TooltipTitle$1 = styled__default["default"].p`
|
|
29310
29302
|
font-weight: 700;
|
|
29311
29303
|
margin-top: 5px;
|
|
29312
29304
|
margin-bottom: 5px;
|
|
29313
29305
|
`;
|
|
29314
|
-
const TooltipText = styled__default["default"].p`
|
|
29306
|
+
const TooltipText$1 = styled__default["default"].p`
|
|
29315
29307
|
margin-top: 5px;
|
|
29316
29308
|
margin-bottom: 5px;
|
|
29317
29309
|
`;
|
|
@@ -29552,10 +29544,10 @@ const AreaChart = props => {
|
|
|
29552
29544
|
payload
|
|
29553
29545
|
} = _ref3;
|
|
29554
29546
|
if (active && payload && payload.length) {
|
|
29555
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${payload[0].payload.label}`), payload.map((data, index) => {
|
|
29547
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$1, null, `${payload[0].payload.label}`), payload.map((data, index) => {
|
|
29556
29548
|
const chart = areaChartsState.find(chart => chart.key === data.dataKey);
|
|
29557
29549
|
if (chart) {
|
|
29558
|
-
return /*#__PURE__*/React__default["default"].createElement(TooltipText, {
|
|
29550
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipText$1, {
|
|
29559
29551
|
key: index
|
|
29560
29552
|
}, `${chart.name}: ${displayFormattedValue(data.value, chart.isDollar)}`);
|
|
29561
29553
|
}
|
|
@@ -29604,7 +29596,7 @@ const AreaChart = props => {
|
|
|
29604
29596
|
height: height
|
|
29605
29597
|
}) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeaderContainer$2, {
|
|
29606
29598
|
"data-testid": "header-container"
|
|
29607
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
29599
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$3, {
|
|
29608
29600
|
"data-testid": "title"
|
|
29609
29601
|
}, title), /*#__PURE__*/React__default["default"].createElement(CheckboxGroupContainer, {
|
|
29610
29602
|
"data-testid": "checkbox-group-container"
|
|
@@ -30102,7 +30094,7 @@ const HeaderContainer$1 = styled__default["default"].div`
|
|
|
30102
30094
|
align-items: center;
|
|
30103
30095
|
padding-bottom: 8px;
|
|
30104
30096
|
`;
|
|
30105
|
-
const Title$
|
|
30097
|
+
const Title$2 = styled__default["default"].h3`
|
|
30106
30098
|
font-size: 18px;
|
|
30107
30099
|
font-weight: 400;
|
|
30108
30100
|
margin: 0;
|
|
@@ -30171,7 +30163,7 @@ const BreakdownPanel = props => {
|
|
|
30171
30163
|
height: height
|
|
30172
30164
|
}) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeaderContainer$1, {
|
|
30173
30165
|
"data-testid": "header-container"
|
|
30174
|
-
}, /*#__PURE__*/React__default["default"].createElement(Title$
|
|
30166
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$2, {
|
|
30175
30167
|
"data-testid": "title"
|
|
30176
30168
|
}, title)), /*#__PURE__*/React__default["default"].createElement(CategorySalesMainContainer, {
|
|
30177
30169
|
"data-testid": "category-sales-main-container"
|
|
@@ -31413,42 +31405,82 @@ const BatteryChart = props => {
|
|
|
31413
31405
|
}))))))), starText !== "" && /*#__PURE__*/React__default["default"].createElement(StarText, null, starText));
|
|
31414
31406
|
};
|
|
31415
31407
|
|
|
31416
|
-
|
|
31417
|
-
|
|
31418
|
-
|
|
31419
|
-
|
|
31420
|
-
|
|
31421
|
-
|
|
31422
|
-
|
|
31423
|
-
|
|
31424
|
-
|
|
31425
|
-
|
|
31408
|
+
const Container = styled__default["default"].div`
|
|
31409
|
+
width: ${props => props.width};
|
|
31410
|
+
height: ${props => props.height};
|
|
31411
|
+
padding: 15px;
|
|
31412
|
+
display: flex;
|
|
31413
|
+
flex-direction: column;
|
|
31414
|
+
#Segment {
|
|
31415
|
+
width: auto;
|
|
31416
|
+
white-space: nowrap;
|
|
31417
|
+
font-size: 14px;
|
|
31418
|
+
font-weight: 500;
|
|
31419
|
+
font-family: "Poppins"
|
|
31420
|
+
}
|
|
31421
|
+
`;
|
|
31422
|
+
const Title$1 = styled__default["default"].h2`
|
|
31423
|
+
color: #212121;
|
|
31424
|
+
font-family: "Poppins";
|
|
31425
|
+
font-size: 18px;
|
|
31426
|
+
font-style: normal;
|
|
31427
|
+
font-weight: 400;
|
|
31428
|
+
line-height: normal;
|
|
31429
|
+
margin: 0 0 16px 0;
|
|
31430
|
+
`;
|
|
31431
|
+
styled__default["default"].div`
|
|
31432
|
+
font-family: sans-serif;
|
|
31433
|
+
text-align: center;
|
|
31434
|
+
`;
|
|
31435
|
+
styled__default["default"].div`
|
|
31436
|
+
height: 25%;
|
|
31437
|
+
`;
|
|
31438
|
+
styled__default["default"].div`
|
|
31439
|
+
height: 75%;
|
|
31440
|
+
`;
|
|
31441
|
+
styled__default["default"].div`
|
|
31442
|
+
height: 100%;
|
|
31443
|
+
display: flex;
|
|
31444
|
+
flex-direction: column;
|
|
31445
|
+
background-color: white;
|
|
31446
|
+
`;
|
|
31447
|
+
const TooltipContainer = styled__default["default"].div`
|
|
31448
|
+
background: white;
|
|
31449
|
+
padding: 10px;
|
|
31450
|
+
border-radius: 5px;
|
|
31451
|
+
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
|
|
31452
|
+
border: 1px solid #ddd;
|
|
31453
|
+
font-family: Poppins, sans-serif;
|
|
31454
|
+
font-weight: 500;
|
|
31455
|
+
font-size: 14px;
|
|
31456
|
+
`;
|
|
31457
|
+
const TooltipTitle = styled__default["default"].p`
|
|
31458
|
+
font-weight: 700;
|
|
31459
|
+
margin-top: 5px;
|
|
31460
|
+
margin-bottom: 5px;
|
|
31461
|
+
`;
|
|
31462
|
+
const TooltipText = styled__default["default"].p`
|
|
31463
|
+
margin-top: 5px;
|
|
31464
|
+
margin-bottom: 5px;
|
|
31465
|
+
`;
|
|
31426
31466
|
|
|
31427
31467
|
const SeparatedLineBarChart = ({
|
|
31428
|
-
|
|
31468
|
+
brushAreaBarData = []
|
|
31429
31469
|
}) => {
|
|
31430
|
-
|
|
31431
|
-
|
|
31432
|
-
|
|
31433
|
-
|
|
31434
|
-
|
|
31470
|
+
const processedData = brushAreaBarData.map(item => {
|
|
31471
|
+
return {
|
|
31472
|
+
...item,
|
|
31473
|
+
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
31474
|
+
};
|
|
31435
31475
|
});
|
|
31436
|
-
const
|
|
31437
|
-
|
|
31438
|
-
|
|
31439
|
-
|
|
31440
|
-
|
|
31441
|
-
|
|
31442
|
-
|
|
31443
|
-
y,
|
|
31444
|
-
payload,
|
|
31445
|
-
viewableIndices
|
|
31446
|
-
}) => {
|
|
31447
|
-
const label = dataWithIndex[payload.value]?.label ?? "";
|
|
31476
|
+
const CustomizedTick = props => {
|
|
31477
|
+
const {
|
|
31478
|
+
x,
|
|
31479
|
+
y,
|
|
31480
|
+
payload
|
|
31481
|
+
} = props;
|
|
31482
|
+
const label = payload.value;
|
|
31448
31483
|
const parts = label.replace("Vendor Selling Event: ", "").split(" ");
|
|
31449
|
-
if (!viewableIndices.includes(payload.value)) {
|
|
31450
|
-
return null;
|
|
31451
|
-
}
|
|
31452
31484
|
return /*#__PURE__*/React__default["default"].createElement("g", {
|
|
31453
31485
|
transform: `translate(${x},${y})`
|
|
31454
31486
|
}, /*#__PURE__*/React__default["default"].createElement("text", {
|
|
@@ -31458,7 +31490,7 @@ const SeparatedLineBarChart = ({
|
|
|
31458
31490
|
textAnchor: "middle",
|
|
31459
31491
|
fill: "#212121",
|
|
31460
31492
|
fontSize: 11,
|
|
31461
|
-
fontWeight:
|
|
31493
|
+
fontWeight: 400,
|
|
31462
31494
|
fontFamily: "Poppins"
|
|
31463
31495
|
}, /*#__PURE__*/React__default["default"].createElement("tspan", {
|
|
31464
31496
|
x: 0,
|
|
@@ -31468,51 +31500,32 @@ const SeparatedLineBarChart = ({
|
|
|
31468
31500
|
dy: 18
|
|
31469
31501
|
}, "Event: ", parts.join(" "))));
|
|
31470
31502
|
};
|
|
31471
|
-
const
|
|
31472
|
-
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
fontWeight,
|
|
31480
|
-
fontFamily
|
|
31481
|
-
} = props;
|
|
31482
|
-
return /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
31483
|
-
dataKey: dataKey,
|
|
31484
|
-
position: position,
|
|
31485
|
-
formatter: (value, name, props) => {
|
|
31486
|
-
if (!viewableIndices.includes(props.index)) {
|
|
31487
|
-
return "";
|
|
31488
|
-
}
|
|
31489
|
-
return formatter ? formatter(value) : value;
|
|
31490
|
-
},
|
|
31491
|
-
fill: fill || "#212121",
|
|
31492
|
-
fontSize: fontSize || 12,
|
|
31493
|
-
fontWeight: fontWeight || "400",
|
|
31494
|
-
fontFamily: fontFamily || "Poppins"
|
|
31495
|
-
});
|
|
31503
|
+
const CustomTooltip = ({
|
|
31504
|
+
active,
|
|
31505
|
+
payload
|
|
31506
|
+
}) => {
|
|
31507
|
+
if (!active || !payload || !payload.length) return null;
|
|
31508
|
+
const data = payload[0]?.payload;
|
|
31509
|
+
if (!data) return null;
|
|
31510
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `INC Sales: ${getFormattedValue(data.inc_sales)}${getFormattedUnits(data.inc_sales)}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `INC Sales ROI: ${getFormattedValue(data.inc_roi)}${getFormattedUnits(data.inc_roi)}`));
|
|
31496
31511
|
};
|
|
31497
31512
|
const chartMargins = {
|
|
31498
|
-
top:
|
|
31499
|
-
right:
|
|
31513
|
+
top: 30,
|
|
31514
|
+
right: 30,
|
|
31500
31515
|
left: 20,
|
|
31501
|
-
bottom:
|
|
31516
|
+
bottom: 0
|
|
31502
31517
|
};
|
|
31503
|
-
const
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
}
|
|
31511
|
-
dataWithIndex.filter(item => viewableIndices.includes(item.index));
|
|
31518
|
+
const chartMargins2 = {
|
|
31519
|
+
top: 30,
|
|
31520
|
+
right: 30,
|
|
31521
|
+
left: 20,
|
|
31522
|
+
bottom: 80
|
|
31523
|
+
};
|
|
31524
|
+
const BAR_CATEGORY_GAP = "30%";
|
|
31512
31525
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31513
31526
|
style: {
|
|
31514
31527
|
width: "100%",
|
|
31515
|
-
height:
|
|
31528
|
+
height: "700px"
|
|
31516
31529
|
}
|
|
31517
31530
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31518
31531
|
style: {
|
|
@@ -31522,24 +31535,25 @@ const SeparatedLineBarChart = ({
|
|
|
31522
31535
|
width: "100%",
|
|
31523
31536
|
height: "100%"
|
|
31524
31537
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.LineChart, {
|
|
31525
|
-
data:
|
|
31526
|
-
margin: chartMargins
|
|
31538
|
+
data: processedData,
|
|
31539
|
+
margin: chartMargins,
|
|
31540
|
+
syncId: "composedChart",
|
|
31541
|
+
syncMethod: "index"
|
|
31527
31542
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.CartesianGrid, {
|
|
31528
31543
|
strokeDasharray: "3 3",
|
|
31529
31544
|
vertical: false
|
|
31530
31545
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.XAxis, {
|
|
31531
|
-
dataKey: "
|
|
31532
|
-
|
|
31533
|
-
domain: ['dataMin', 'dataMax'],
|
|
31546
|
+
dataKey: "label",
|
|
31547
|
+
tick: false,
|
|
31534
31548
|
padding: {
|
|
31535
|
-
left:
|
|
31536
|
-
right:
|
|
31549
|
+
left: 70,
|
|
31550
|
+
right: 70
|
|
31537
31551
|
},
|
|
31538
31552
|
hide: true
|
|
31539
31553
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
31540
31554
|
domain: [0, 2],
|
|
31541
31555
|
hide: true
|
|
31542
|
-
}), /*#__PURE__*/React__default["default"].createElement(recharts.
|
|
31556
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.Line, {
|
|
31543
31557
|
type: "monotone",
|
|
31544
31558
|
dataKey: "inc_roi",
|
|
31545
31559
|
stroke: "#F8CD00",
|
|
@@ -31549,13 +31563,28 @@ const SeparatedLineBarChart = ({
|
|
|
31549
31563
|
fill: "#F8CD00"
|
|
31550
31564
|
},
|
|
31551
31565
|
activeDot: false,
|
|
31552
|
-
name: "INC Sales ROI"
|
|
31553
|
-
|
|
31566
|
+
name: "INC Sales ROI",
|
|
31567
|
+
barCategoryGap: BAR_CATEGORY_GAP,
|
|
31568
|
+
barGap: 0
|
|
31569
|
+
}, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
31554
31570
|
dataKey: "inc_roi",
|
|
31555
31571
|
position: "top",
|
|
31556
31572
|
formatter: value => value.toFixed(1),
|
|
31557
|
-
|
|
31558
|
-
|
|
31573
|
+
fill: "#212121",
|
|
31574
|
+
fontSize: 12,
|
|
31575
|
+
fontWeight: "400",
|
|
31576
|
+
fontFamily: "Poppins"
|
|
31577
|
+
})), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31578
|
+
dataKey: "label",
|
|
31579
|
+
height: 30,
|
|
31580
|
+
stroke: "#212121",
|
|
31581
|
+
startIndex: 0,
|
|
31582
|
+
endIndex: Math.min(6, processedData.length - 1),
|
|
31583
|
+
y: 330,
|
|
31584
|
+
travellerWidth: 10,
|
|
31585
|
+
tickFormatter: (value, index) => index + 1,
|
|
31586
|
+
hide: true
|
|
31587
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31559
31588
|
style: {
|
|
31560
31589
|
height: "60%"
|
|
31561
31590
|
}
|
|
@@ -31563,59 +31592,51 @@ const SeparatedLineBarChart = ({
|
|
|
31563
31592
|
width: "100%",
|
|
31564
31593
|
height: "100%"
|
|
31565
31594
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.ComposedChart, {
|
|
31566
|
-
data:
|
|
31567
|
-
margin:
|
|
31595
|
+
data: processedData,
|
|
31596
|
+
margin: chartMargins2,
|
|
31597
|
+
syncId: "composedChart",
|
|
31598
|
+
syncMethod: "index",
|
|
31599
|
+
barCategoryGap: BAR_CATEGORY_GAP,
|
|
31600
|
+
barGap: 0
|
|
31568
31601
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.CartesianGrid, {
|
|
31569
31602
|
strokeDasharray: "3 3",
|
|
31570
31603
|
vertical: false
|
|
31571
31604
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.XAxis, {
|
|
31572
|
-
dataKey: "
|
|
31573
|
-
|
|
31574
|
-
domain: ['dataMin', 'dataMax'],
|
|
31575
|
-
padding: {
|
|
31576
|
-
left: 20,
|
|
31577
|
-
right: 20
|
|
31578
|
-
},
|
|
31579
|
-
tick: props => /*#__PURE__*/React__default["default"].createElement(CustomizedTick, _extends({}, props, {
|
|
31580
|
-
viewableIndices: viewableIndices
|
|
31581
|
-
})),
|
|
31605
|
+
dataKey: "label",
|
|
31606
|
+
tick: /*#__PURE__*/React__default["default"].createElement(CustomizedTick, null),
|
|
31582
31607
|
interval: 0,
|
|
31583
31608
|
height: 60,
|
|
31584
|
-
tickLine: false
|
|
31585
|
-
ticks: dataWithIndex.map(item => item.index)
|
|
31609
|
+
tickLine: false
|
|
31586
31610
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
31587
31611
|
tickFormatter: v => `${v / 1000}k`,
|
|
31588
31612
|
hide: true
|
|
31589
|
-
}), /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip,
|
|
31613
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip, {
|
|
31614
|
+
content: /*#__PURE__*/React__default["default"].createElement(CustomTooltip, null)
|
|
31615
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.Bar, {
|
|
31590
31616
|
dataKey: "inc_sales",
|
|
31591
31617
|
fill: "#CCDCDD",
|
|
31592
|
-
gap:
|
|
31618
|
+
gap: 4,
|
|
31593
31619
|
borderRadius: [4, 4, 0, 8],
|
|
31594
31620
|
barSize: 40,
|
|
31595
31621
|
name: "INC Sales"
|
|
31596
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
31622
|
+
}, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
|
|
31597
31623
|
dataKey: "inc_sales",
|
|
31598
31624
|
position: "top",
|
|
31599
31625
|
formatter: value => `${value / 1000}k`,
|
|
31600
|
-
|
|
31626
|
+
fill: "#212121",
|
|
31627
|
+
fontSize: 12,
|
|
31628
|
+
fontWeight: "400",
|
|
31629
|
+
fontFamily: "Poppins"
|
|
31601
31630
|
})), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31602
|
-
dataKey: "
|
|
31631
|
+
dataKey: "label",
|
|
31603
31632
|
height: 30,
|
|
31604
31633
|
stroke: "#212121",
|
|
31605
|
-
startIndex:
|
|
31606
|
-
endIndex:
|
|
31607
|
-
|
|
31608
|
-
|
|
31609
|
-
|
|
31610
|
-
|
|
31611
|
-
});
|
|
31612
|
-
},
|
|
31613
|
-
travellerWidth: 12
|
|
31614
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31615
|
-
style: {
|
|
31616
|
-
marginTop: "-28px"
|
|
31617
|
-
}
|
|
31618
|
-
}, /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
|
|
31634
|
+
startIndex: 0,
|
|
31635
|
+
endIndex: Math.min(6, processedData.length - 1),
|
|
31636
|
+
y: 330,
|
|
31637
|
+
travellerWidth: 10,
|
|
31638
|
+
tickFormatter: (value, index) => index + 1
|
|
31639
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
|
|
31619
31640
|
legendData: [{
|
|
31620
31641
|
iconColor: "#CCDCDD",
|
|
31621
31642
|
iconType: "Square",
|
|
@@ -31629,9 +31650,11 @@ const SeparatedLineBarChart = ({
|
|
|
31629
31650
|
};
|
|
31630
31651
|
|
|
31631
31652
|
function SingleChart({
|
|
31632
|
-
|
|
31653
|
+
barData,
|
|
31654
|
+
height = 450,
|
|
31655
|
+
width = "100%"
|
|
31633
31656
|
}) {
|
|
31634
|
-
const dataWithIndex =
|
|
31657
|
+
const dataWithIndex = barData?.map((item, index) => ({
|
|
31635
31658
|
...item,
|
|
31636
31659
|
index,
|
|
31637
31660
|
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
@@ -31662,20 +31685,23 @@ function SingleChart({
|
|
|
31662
31685
|
dy: 18
|
|
31663
31686
|
}, "Event: ", parts.join(" "))));
|
|
31664
31687
|
};
|
|
31665
|
-
const
|
|
31666
|
-
|
|
31688
|
+
const CustomTooltip = ({
|
|
31689
|
+
active,
|
|
31690
|
+
payload
|
|
31691
|
+
}) => {
|
|
31692
|
+
if (!active || !payload || !payload.length) return null;
|
|
31693
|
+
const data = payload[0]?.payload;
|
|
31694
|
+
if (!data) return null;
|
|
31695
|
+
console.log(data);
|
|
31696
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.typeTitle}: ${getFormattedValue(data.value)}${getFormattedUnits(data.value)}`));
|
|
31697
|
+
};
|
|
31667
31698
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31668
31699
|
style: {
|
|
31669
|
-
width: "100%"
|
|
31670
|
-
height: 600
|
|
31671
|
-
}
|
|
31672
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31673
|
-
style: {
|
|
31674
|
-
height: "100%"
|
|
31700
|
+
width: "100%"
|
|
31675
31701
|
}
|
|
31676
31702
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
|
|
31677
|
-
width:
|
|
31678
|
-
height:
|
|
31703
|
+
width: width,
|
|
31704
|
+
height: height
|
|
31679
31705
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.ComposedChart, {
|
|
31680
31706
|
data: dataWithIndex,
|
|
31681
31707
|
margin: {
|
|
@@ -31700,7 +31726,9 @@ function SingleChart({
|
|
|
31700
31726
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
31701
31727
|
tickFormatter: v => `$${v / 1000}k`,
|
|
31702
31728
|
hide: true
|
|
31703
|
-
}), /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip,
|
|
31729
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip, {
|
|
31730
|
+
content: /*#__PURE__*/React__default["default"].createElement(CustomTooltip, null)
|
|
31731
|
+
}), /*#__PURE__*/React__default["default"].createElement(recharts.Bar, {
|
|
31704
31732
|
dataKey: "value",
|
|
31705
31733
|
fill: "#CCDCDD",
|
|
31706
31734
|
gap: "4px",
|
|
@@ -31716,23 +31744,18 @@ function SingleChart({
|
|
|
31716
31744
|
fontWeight: "400",
|
|
31717
31745
|
fontFamily: "Poppins"
|
|
31718
31746
|
})), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31719
|
-
dataKey: "index",
|
|
31720
31747
|
height: 30,
|
|
31721
|
-
|
|
31722
|
-
startIndex:
|
|
31723
|
-
endIndex:
|
|
31724
|
-
|
|
31725
|
-
setStartIndex(e.startIndex ?? 0);
|
|
31726
|
-
setEndIndex(e.endIndex ?? dataWithIndex?.length - 1);
|
|
31727
|
-
},
|
|
31728
|
-
travellerWidth: 12
|
|
31748
|
+
travellerWidth: 10,
|
|
31749
|
+
startIndex: 0,
|
|
31750
|
+
endIndex: Math.min(6, barData.length - 1),
|
|
31751
|
+
y: 380
|
|
31729
31752
|
})), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
|
|
31730
31753
|
legendData: [{
|
|
31731
31754
|
iconColor: "#CCDCDD",
|
|
31732
31755
|
iconType: "Square",
|
|
31733
31756
|
title: "INC Units"
|
|
31734
31757
|
}]
|
|
31735
|
-
})))
|
|
31758
|
+
})));
|
|
31736
31759
|
}
|
|
31737
31760
|
|
|
31738
31761
|
styled__default["default"].div`
|
|
@@ -31963,16 +31986,15 @@ SegmentedButton.defaultProps = {
|
|
|
31963
31986
|
};
|
|
31964
31987
|
|
|
31965
31988
|
function InnerBarChart({
|
|
31966
|
-
|
|
31989
|
+
brushInnerBarData
|
|
31967
31990
|
}) {
|
|
31968
|
-
const processedData =
|
|
31991
|
+
const processedData = brushInnerBarData.map(item => {
|
|
31969
31992
|
const parts = item.label.replace("Vendor Selling Event:", "").trim();
|
|
31970
31993
|
return {
|
|
31971
31994
|
...item,
|
|
31972
31995
|
shortLabel: parts
|
|
31973
31996
|
};
|
|
31974
31997
|
});
|
|
31975
|
-
const format = v => v >= 1000 ? `${v / 1000}K` : v;
|
|
31976
31998
|
const BarWithInner = props => {
|
|
31977
31999
|
const {
|
|
31978
32000
|
x,
|
|
@@ -32001,7 +32023,7 @@ function InnerBarChart({
|
|
|
32001
32023
|
fontWeight: 400,
|
|
32002
32024
|
fontFamily: "Poppins",
|
|
32003
32025
|
fill: "#212121"
|
|
32004
|
-
},
|
|
32026
|
+
}, `${getFormattedValue(payload.total)}${getFormattedUnits(payload.total)}`), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
32005
32027
|
x: x + width * 0.2,
|
|
32006
32028
|
y: innerY,
|
|
32007
32029
|
width: width * 0.6,
|
|
@@ -32017,7 +32039,7 @@ function InnerBarChart({
|
|
|
32017
32039
|
fontWeight: 400,
|
|
32018
32040
|
fontFamily: "Poppins",
|
|
32019
32041
|
fill: "#212121"
|
|
32020
|
-
},
|
|
32042
|
+
}, `${getFormattedValue(payload.actual)}${getFormattedUnits(payload.actual)}`));
|
|
32021
32043
|
};
|
|
32022
32044
|
const CustomTooltip = ({
|
|
32023
32045
|
active,
|
|
@@ -32026,9 +32048,8 @@ function InnerBarChart({
|
|
|
32026
32048
|
}) => {
|
|
32027
32049
|
if (!active || !payload || !payload.length) return null;
|
|
32028
32050
|
const data = payload[0].payload;
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
}, /*#__PURE__*/React__default["default"].createElement("strong", null, data.label), /*#__PURE__*/React__default["default"].createElement("div", null, "Actual: ", format(data.actual)), /*#__PURE__*/React__default["default"].createElement("div", null, "Total: ", format(data.total)));
|
|
32051
|
+
const repeaterPercentage = (data.actual / data.total * 100).toFixed(1);
|
|
32052
|
+
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `New Shoppers: ${getFormattedValue(data.total)}${getFormattedUnits(data.total)}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `Repeaters: ${getFormattedValue(data.actual)}${getFormattedUnits(data.actual)}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `% Repeaters: ${repeaterPercentage}%`));
|
|
32032
32053
|
};
|
|
32033
32054
|
const CustomizedTick = props => {
|
|
32034
32055
|
const {
|
|
@@ -32060,9 +32081,7 @@ function InnerBarChart({
|
|
|
32060
32081
|
};
|
|
32061
32082
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32062
32083
|
className: "w-full"
|
|
32063
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
32064
|
-
className: "text-lg font-medium mb-4 text-center"
|
|
32065
|
-
}, "Vendor Selling Events Comparison"), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
|
|
32084
|
+
}, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
|
|
32066
32085
|
width: "100%",
|
|
32067
32086
|
height: 450
|
|
32068
32087
|
}, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, {
|
|
@@ -32084,14 +32103,14 @@ function InnerBarChart({
|
|
|
32084
32103
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.YAxis, {
|
|
32085
32104
|
type: "number",
|
|
32086
32105
|
domain: [0, "dataMax + 2000"],
|
|
32087
|
-
|
|
32106
|
+
hide: true
|
|
32088
32107
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.Tooltip, {
|
|
32089
32108
|
content: /*#__PURE__*/React__default["default"].createElement(CustomTooltip, null)
|
|
32090
32109
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
32091
32110
|
height: 30,
|
|
32092
32111
|
travellerWidth: 10,
|
|
32093
32112
|
startIndex: 0,
|
|
32094
|
-
endIndex:
|
|
32113
|
+
endIndex: Math.min(6, processedData.length - 1),
|
|
32095
32114
|
y: 380
|
|
32096
32115
|
}), /*#__PURE__*/React__default["default"].createElement(recharts.Bar, {
|
|
32097
32116
|
dataKey: "total",
|
|
@@ -32100,51 +32119,22 @@ function InnerBarChart({
|
|
|
32100
32119
|
}))));
|
|
32101
32120
|
}
|
|
32102
32121
|
|
|
32103
|
-
const Container = styled__default["default"].div`
|
|
32104
|
-
width: ${props => props.width};
|
|
32105
|
-
height: ${props => props.height};
|
|
32106
|
-
padding: 15px;
|
|
32107
|
-
display: flex;
|
|
32108
|
-
flex-direction: column;
|
|
32109
|
-
#Segment {
|
|
32110
|
-
width: auto;
|
|
32111
|
-
white-space: nowrap;
|
|
32112
|
-
font-size: 14px;
|
|
32113
|
-
font-weight: 500;
|
|
32114
|
-
font-family: "Poppins"
|
|
32115
|
-
}
|
|
32116
|
-
`;
|
|
32117
|
-
styled__default["default"].div`
|
|
32118
|
-
font-family: sans-serif;
|
|
32119
|
-
text-align: center;
|
|
32120
|
-
`;
|
|
32121
|
-
styled__default["default"].div`
|
|
32122
|
-
height: 25%;
|
|
32123
|
-
`;
|
|
32124
|
-
styled__default["default"].div`
|
|
32125
|
-
height: 75%;
|
|
32126
|
-
`;
|
|
32127
|
-
styled__default["default"].div`
|
|
32128
|
-
height: 100%;
|
|
32129
|
-
display: flex;
|
|
32130
|
-
flex-direction: column;
|
|
32131
|
-
background-color: white;
|
|
32132
|
-
`;
|
|
32133
|
-
|
|
32134
32122
|
const BrushChart = props => {
|
|
32135
32123
|
const {
|
|
32136
32124
|
width,
|
|
32137
32125
|
height,
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
|
|
32126
|
+
brushInnerBarData,
|
|
32127
|
+
brushBarIncData,
|
|
32128
|
+
brushBarBasketData,
|
|
32129
|
+
brushAreaBarData,
|
|
32130
|
+
title
|
|
32141
32131
|
} = props;
|
|
32142
32132
|
const segmentedbuttonOptions = ["New Shoppers & Repeaters", "INC Sales & ROI", "INC Units", "Basket Lift"];
|
|
32143
32133
|
const [selectedOption, setSelectedOption] = React$1.useState(segmentedbuttonOptions[0]);
|
|
32144
32134
|
return /*#__PURE__*/React__default["default"].createElement(Container, {
|
|
32145
32135
|
height: height,
|
|
32146
32136
|
width: width
|
|
32147
|
-
}, /*#__PURE__*/React__default["default"].createElement(SegmentedButton, {
|
|
32137
|
+
}, /*#__PURE__*/React__default["default"].createElement(Title$1, null, title), /*#__PURE__*/React__default["default"].createElement(SegmentedButton, {
|
|
32148
32138
|
gap: "8px",
|
|
32149
32139
|
options: segmentedbuttonOptions.map(value => ({
|
|
32150
32140
|
value
|
|
@@ -32156,13 +32146,13 @@ const BrushChart = props => {
|
|
|
32156
32146
|
return setSelectedOption(value);
|
|
32157
32147
|
}
|
|
32158
32148
|
}), selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React__default["default"].createElement(InnerBarChart, {
|
|
32159
|
-
|
|
32149
|
+
brushInnerBarData: brushInnerBarData
|
|
32160
32150
|
}), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React__default["default"].createElement(SeparatedLineBarChart, {
|
|
32161
|
-
|
|
32151
|
+
brushAreaBarData: brushAreaBarData
|
|
32162
32152
|
}), selectedOption === "INC Units" && /*#__PURE__*/React__default["default"].createElement(SingleChart, {
|
|
32163
|
-
|
|
32153
|
+
barData: brushBarIncData
|
|
32164
32154
|
}), selectedOption === "Basket Lift" && /*#__PURE__*/React__default["default"].createElement(SingleChart, {
|
|
32165
|
-
|
|
32155
|
+
barData: brushBarBasketData
|
|
32166
32156
|
}));
|
|
32167
32157
|
};
|
|
32168
32158
|
|