sag_components 2.0.0-beta2 → 2.0.0-beta3
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 +159 -1
- package/dist/index.esm.js +915 -230
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +917 -229
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -39505,7 +39505,7 @@ generateCategoricalChart({
|
|
|
39505
39505
|
/**
|
|
39506
39506
|
* @fileOverview Bar Chart
|
|
39507
39507
|
*/
|
|
39508
|
-
var BarChart = generateCategoricalChart({
|
|
39508
|
+
var BarChart$1 = generateCategoricalChart({
|
|
39509
39509
|
chartName: 'BarChart',
|
|
39510
39510
|
GraphicalChild: Bar,
|
|
39511
39511
|
defaultTooltipEventType: 'axis',
|
|
@@ -43145,7 +43145,7 @@ const scrollableStyles$a = `
|
|
|
43145
43145
|
border-radius: 5px;
|
|
43146
43146
|
}
|
|
43147
43147
|
`;
|
|
43148
|
-
const ControlsContainer$
|
|
43148
|
+
const ControlsContainer$9 = dt.div`
|
|
43149
43149
|
position: relative;
|
|
43150
43150
|
font-family: "Poppins", sans-serif;
|
|
43151
43151
|
font-style: normal;
|
|
@@ -43164,7 +43164,7 @@ const ControlsContainer$8 = dt.div`
|
|
|
43164
43164
|
box-sizing: border-box;
|
|
43165
43165
|
}
|
|
43166
43166
|
`;
|
|
43167
|
-
const Controls$
|
|
43167
|
+
const Controls$6 = dt.div`
|
|
43168
43168
|
display: flex;
|
|
43169
43169
|
flex-direction: column;
|
|
43170
43170
|
width: 100%;
|
|
@@ -43195,7 +43195,7 @@ const TitleAndValueContainer$4 = dt.div`
|
|
|
43195
43195
|
flex-direction: column;
|
|
43196
43196
|
padding: 0 20px;
|
|
43197
43197
|
`;
|
|
43198
|
-
const Title$
|
|
43198
|
+
const Title$a = dt.h4`
|
|
43199
43199
|
font-weight: 400;
|
|
43200
43200
|
font-size: 18px;
|
|
43201
43201
|
margin: 0 0 8px;
|
|
@@ -43275,7 +43275,7 @@ const LegendFormattedValue$1 = dt.span`
|
|
|
43275
43275
|
white-space: nowrap;
|
|
43276
43276
|
`;
|
|
43277
43277
|
|
|
43278
|
-
const ControlsContainer$
|
|
43278
|
+
const ControlsContainer$8 = dt.div`
|
|
43279
43279
|
display: flex;
|
|
43280
43280
|
position: relative;
|
|
43281
43281
|
margin: 0px 0 0px;
|
|
@@ -43288,7 +43288,7 @@ const ControlsContainer$7 = dt.div`
|
|
|
43288
43288
|
//border: 1px solid red;
|
|
43289
43289
|
align-items: center;
|
|
43290
43290
|
`;
|
|
43291
|
-
const Controls$
|
|
43291
|
+
const Controls$5 = dt.div`
|
|
43292
43292
|
position: relative;
|
|
43293
43293
|
border-radius: 100px;
|
|
43294
43294
|
width: ${props => props.width.toString().concat('', 'px')};
|
|
@@ -43536,7 +43536,7 @@ const Benchmark = props => {
|
|
|
43536
43536
|
return width * (benchmarkValue / totalValue);
|
|
43537
43537
|
};
|
|
43538
43538
|
const getTooltipText = () => /*#__PURE__*/React__default.createElement("h4", null, tooltipLabel, tooltipLabel ? ': ' : '', getFormattedValue(benchmarkValue)?.toString(), getFormattedUnits(benchmarkValue)?.toString());
|
|
43539
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
43539
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$8, {
|
|
43540
43540
|
id: "ControlsContainer",
|
|
43541
43541
|
height: height,
|
|
43542
43542
|
width: width
|
|
@@ -43544,7 +43544,7 @@ const Benchmark = props => {
|
|
|
43544
43544
|
id: "Tooltip",
|
|
43545
43545
|
content: getTooltipText(),
|
|
43546
43546
|
direction: tooltipDirection
|
|
43547
|
-
}, /*#__PURE__*/React__default.createElement(Controls$
|
|
43547
|
+
}, /*#__PURE__*/React__default.createElement(Controls$5, {
|
|
43548
43548
|
id: "ControlsBenchmark",
|
|
43549
43549
|
height: height,
|
|
43550
43550
|
width: width
|
|
@@ -43661,7 +43661,7 @@ const PieChart = props => {
|
|
|
43661
43661
|
}
|
|
43662
43662
|
return null;
|
|
43663
43663
|
};
|
|
43664
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
43664
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$9, {
|
|
43665
43665
|
className: className,
|
|
43666
43666
|
height: height,
|
|
43667
43667
|
width: width,
|
|
@@ -43669,13 +43669,13 @@ const PieChart = props => {
|
|
|
43669
43669
|
}, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/React__default.createElement(NoDataFoundMessage, {
|
|
43670
43670
|
className: "NoDataFoundMessage",
|
|
43671
43671
|
noDataText: noDataText
|
|
43672
|
-
}) : /*#__PURE__*/React__default.createElement(Controls$
|
|
43672
|
+
}) : /*#__PURE__*/React__default.createElement(Controls$6, {
|
|
43673
43673
|
className: "Controls",
|
|
43674
43674
|
height: height,
|
|
43675
43675
|
width: width
|
|
43676
43676
|
}, !hideTitleAndValue && /*#__PURE__*/React__default.createElement(TitleAndValueContainer$4, {
|
|
43677
43677
|
className: "TitleAndValueContainer"
|
|
43678
|
-
}, /*#__PURE__*/React__default.createElement(Title$
|
|
43678
|
+
}, /*#__PURE__*/React__default.createElement(Title$a, {
|
|
43679
43679
|
className: "Title"
|
|
43680
43680
|
}, title), /*#__PURE__*/React__default.createElement(CurrencySignAndFormattedValueContainer$2, {
|
|
43681
43681
|
className: "CurrencySignAndFormattedValueContainer"
|
|
@@ -44631,7 +44631,7 @@ EventDetailsCard.defaultProps = {
|
|
|
44631
44631
|
disableViewDetailsButton: false
|
|
44632
44632
|
};
|
|
44633
44633
|
|
|
44634
|
-
const LinnerContainer = dt.div`
|
|
44634
|
+
const LinnerContainer$1 = dt.div`
|
|
44635
44635
|
font-family: "Poppins", sans-serif;
|
|
44636
44636
|
display: flex;
|
|
44637
44637
|
justify-content: space-between;
|
|
@@ -44648,11 +44648,11 @@ const DataBoxWrap = dt.div`
|
|
|
44648
44648
|
width: ${props => props.width};
|
|
44649
44649
|
height: 100%;
|
|
44650
44650
|
`;
|
|
44651
|
-
const DataBox = dt.div`
|
|
44651
|
+
const DataBox$1 = dt.div`
|
|
44652
44652
|
color: #212121;
|
|
44653
44653
|
font-weight: 400;
|
|
44654
44654
|
`;
|
|
44655
|
-
const DataBoxTitle = dt.span`
|
|
44655
|
+
const DataBoxTitle$1 = dt.span`
|
|
44656
44656
|
font-size: 18px;
|
|
44657
44657
|
font-weight: 500;
|
|
44658
44658
|
`;
|
|
@@ -44702,7 +44702,7 @@ const LinnerDataBox = props => {
|
|
|
44702
44702
|
className,
|
|
44703
44703
|
customDataFormat
|
|
44704
44704
|
} = props;
|
|
44705
|
-
return /*#__PURE__*/React__default.createElement(LinnerContainer, {
|
|
44705
|
+
return /*#__PURE__*/React__default.createElement(LinnerContainer$1, {
|
|
44706
44706
|
className: className,
|
|
44707
44707
|
backgroundColor: backgroundColor,
|
|
44708
44708
|
width: width || "100%",
|
|
@@ -44711,7 +44711,7 @@ const LinnerDataBox = props => {
|
|
|
44711
44711
|
}, data.map((item, index) => /*#__PURE__*/React__default.createElement(DataBoxWrap, {
|
|
44712
44712
|
key: `${item.title}`,
|
|
44713
44713
|
width: `${100 / data.length}%`
|
|
44714
|
-
}, /*#__PURE__*/React__default.createElement(DataBox, null, item.title && /*#__PURE__*/React__default.createElement(DataBoxTitle, {
|
|
44714
|
+
}, /*#__PURE__*/React__default.createElement(DataBox$1, null, item.title && /*#__PURE__*/React__default.createElement(DataBoxTitle$1, {
|
|
44715
44715
|
className: "DataBoxTitle"
|
|
44716
44716
|
}, item.title), /*#__PURE__*/React__default.createElement(DataBoxContent, null, item.value !== null && item.value !== undefined && !isNaN(item.value) && item.value !== "null" && item.value !== "undefined" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, item.sign && /*#__PURE__*/React__default.createElement(DataBoxContentSign, null, item.sign), customDataFormat ? /*#__PURE__*/React__default.createElement(DataBoxContentValue, {
|
|
44717
44717
|
className: "DataBoxValue"
|
|
@@ -45122,7 +45122,7 @@ const SagIconButtonWrapper = dt.button`
|
|
|
45122
45122
|
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);
|
|
45123
45123
|
}
|
|
45124
45124
|
`;
|
|
45125
|
-
const SpanText = dt.span`
|
|
45125
|
+
const SpanText$1 = dt.span`
|
|
45126
45126
|
`;
|
|
45127
45127
|
|
|
45128
45128
|
const SagIconButton = props => {
|
|
@@ -45218,7 +45218,7 @@ const SagIconButton = props => {
|
|
|
45218
45218
|
onClick: event => {
|
|
45219
45219
|
onClickHandler(event);
|
|
45220
45220
|
}
|
|
45221
|
-
}, getIcon(iconName), buttonText && /*#__PURE__*/React__default.createElement(SpanText, null, buttonText));
|
|
45221
|
+
}, getIcon(iconName), buttonText && /*#__PURE__*/React__default.createElement(SpanText$1, null, buttonText));
|
|
45222
45222
|
};
|
|
45223
45223
|
SagIconButton.propTypes = {
|
|
45224
45224
|
className: PropTypes.string,
|
|
@@ -51248,70 +51248,67 @@ const DropdownMain = dt.div`
|
|
|
51248
51248
|
`;
|
|
51249
51249
|
|
|
51250
51250
|
/* eslint-disable react/prop-types */
|
|
51251
|
-
const DropdownNew =
|
|
51252
|
-
|
|
51253
|
-
|
|
51254
|
-
|
|
51255
|
-
|
|
51256
|
-
|
|
51257
|
-
|
|
51258
|
-
|
|
51259
|
-
|
|
51260
|
-
|
|
51261
|
-
|
|
51262
|
-
|
|
51263
|
-
|
|
51264
|
-
|
|
51265
|
-
|
|
51266
|
-
|
|
51267
|
-
|
|
51268
|
-
|
|
51269
|
-
|
|
51270
|
-
|
|
51271
|
-
|
|
51272
|
-
|
|
51273
|
-
|
|
51274
|
-
|
|
51275
|
-
|
|
51276
|
-
|
|
51277
|
-
|
|
51278
|
-
|
|
51279
|
-
|
|
51280
|
-
|
|
51281
|
-
|
|
51282
|
-
|
|
51283
|
-
|
|
51284
|
-
|
|
51285
|
-
|
|
51286
|
-
|
|
51287
|
-
|
|
51288
|
-
|
|
51289
|
-
|
|
51290
|
-
|
|
51291
|
-
|
|
51292
|
-
|
|
51293
|
-
|
|
51294
|
-
|
|
51295
|
-
|
|
51296
|
-
|
|
51297
|
-
|
|
51298
|
-
|
|
51299
|
-
|
|
51300
|
-
|
|
51301
|
-
|
|
51302
|
-
|
|
51303
|
-
|
|
51304
|
-
|
|
51305
|
-
|
|
51306
|
-
|
|
51307
|
-
|
|
51308
|
-
|
|
51309
|
-
|
|
51310
|
-
|
|
51311
|
-
|
|
51312
|
-
elementType: elementType
|
|
51313
|
-
}));
|
|
51314
|
-
};
|
|
51251
|
+
const DropdownNew = ({
|
|
51252
|
+
isMulti,
|
|
51253
|
+
label,
|
|
51254
|
+
labelEmptyValue,
|
|
51255
|
+
options,
|
|
51256
|
+
selectedValue,
|
|
51257
|
+
placeHolder,
|
|
51258
|
+
onChange,
|
|
51259
|
+
required,
|
|
51260
|
+
disabled,
|
|
51261
|
+
width,
|
|
51262
|
+
error,
|
|
51263
|
+
errorMessage,
|
|
51264
|
+
labelColor,
|
|
51265
|
+
checkBoxColor,
|
|
51266
|
+
xIconShow,
|
|
51267
|
+
showLabelOnTop,
|
|
51268
|
+
orderBy,
|
|
51269
|
+
elementType
|
|
51270
|
+
}) => /*#__PURE__*/React__default.createElement(DropdownMain, {
|
|
51271
|
+
className: "DropdownMain",
|
|
51272
|
+
width: width
|
|
51273
|
+
}, isMulti ? /*#__PURE__*/React__default.createElement(DropdownMultiNew, {
|
|
51274
|
+
className: "DropdownMultiNew",
|
|
51275
|
+
placeHolder: placeHolder,
|
|
51276
|
+
label: label,
|
|
51277
|
+
labelEmptyValue: labelEmptyValue,
|
|
51278
|
+
labelColor: labelColor,
|
|
51279
|
+
checkBoxColor: checkBoxColor,
|
|
51280
|
+
required: required,
|
|
51281
|
+
options: options,
|
|
51282
|
+
width: width,
|
|
51283
|
+
disabled: disabled,
|
|
51284
|
+
error: error,
|
|
51285
|
+
errorMessage: errorMessage,
|
|
51286
|
+
selectedValue: selectedValue,
|
|
51287
|
+
xIconShow: xIconShow,
|
|
51288
|
+
onChange: onChange,
|
|
51289
|
+
showLabelOnTop: showLabelOnTop,
|
|
51290
|
+
orderBy: orderBy,
|
|
51291
|
+
elementType: elementType
|
|
51292
|
+
}) : /*#__PURE__*/React__default.createElement(DropdownSingleNew, {
|
|
51293
|
+
className: "DropdownSingleNew",
|
|
51294
|
+
placeHolder: placeHolder,
|
|
51295
|
+
label: label,
|
|
51296
|
+
labelEmptyValue: labelEmptyValue,
|
|
51297
|
+
labelColor: labelColor,
|
|
51298
|
+
checkBoxColor: checkBoxColor,
|
|
51299
|
+
required: required,
|
|
51300
|
+
options: options,
|
|
51301
|
+
width: width,
|
|
51302
|
+
disabled: disabled,
|
|
51303
|
+
error: error,
|
|
51304
|
+
errorMessage: errorMessage,
|
|
51305
|
+
selectedValue: selectedValue,
|
|
51306
|
+
xIconShow: xIconShow,
|
|
51307
|
+
onChange: onChange,
|
|
51308
|
+
showLabelOnTop: showLabelOnTop,
|
|
51309
|
+
orderBy: orderBy,
|
|
51310
|
+
elementType: elementType
|
|
51311
|
+
}));
|
|
51315
51312
|
DropdownNew.propTypes = {
|
|
51316
51313
|
placeHolder: PropTypes.string,
|
|
51317
51314
|
label: PropTypes.string,
|
|
@@ -51725,21 +51722,20 @@ const DatePicker = ({
|
|
|
51725
51722
|
};
|
|
51726
51723
|
|
|
51727
51724
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
51728
|
-
const RangePicker =
|
|
51729
|
-
|
|
51730
|
-
|
|
51731
|
-
|
|
51732
|
-
|
|
51733
|
-
|
|
51734
|
-
|
|
51735
|
-
|
|
51736
|
-
|
|
51737
|
-
|
|
51738
|
-
|
|
51739
|
-
|
|
51740
|
-
|
|
51741
|
-
|
|
51742
|
-
} = _ref;
|
|
51725
|
+
const RangePicker = ({
|
|
51726
|
+
label,
|
|
51727
|
+
onChange,
|
|
51728
|
+
borderRadius,
|
|
51729
|
+
required,
|
|
51730
|
+
width,
|
|
51731
|
+
height,
|
|
51732
|
+
placeholder,
|
|
51733
|
+
disabled,
|
|
51734
|
+
borderColor,
|
|
51735
|
+
borderColorFocus,
|
|
51736
|
+
textColor,
|
|
51737
|
+
selectedValue
|
|
51738
|
+
}) => {
|
|
51743
51739
|
const [isFocused, setIsFocused] = useState(false);
|
|
51744
51740
|
const [isOpen, setIsOpen] = useState(false);
|
|
51745
51741
|
const [value, setValue] = useState(''); // Added value state
|
|
@@ -52171,23 +52167,22 @@ const QuarterPopupPicker = ({
|
|
|
52171
52167
|
};
|
|
52172
52168
|
|
|
52173
52169
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
52174
|
-
const QuarterPicker =
|
|
52175
|
-
|
|
52176
|
-
|
|
52177
|
-
|
|
52178
|
-
|
|
52179
|
-
|
|
52180
|
-
|
|
52181
|
-
|
|
52182
|
-
|
|
52183
|
-
|
|
52184
|
-
|
|
52185
|
-
|
|
52186
|
-
|
|
52187
|
-
|
|
52188
|
-
|
|
52189
|
-
|
|
52190
|
-
} = _ref;
|
|
52170
|
+
const QuarterPicker = ({
|
|
52171
|
+
availableQuarters,
|
|
52172
|
+
// ["Q1-2024"]
|
|
52173
|
+
label,
|
|
52174
|
+
onChange,
|
|
52175
|
+
borderRadius,
|
|
52176
|
+
required,
|
|
52177
|
+
width,
|
|
52178
|
+
height,
|
|
52179
|
+
placeholder,
|
|
52180
|
+
disabled,
|
|
52181
|
+
borderColor,
|
|
52182
|
+
borderColorFocus,
|
|
52183
|
+
textColor,
|
|
52184
|
+
selectedValue
|
|
52185
|
+
}) => {
|
|
52191
52186
|
const [isFocused, setIsFocused] = useState(false);
|
|
52192
52187
|
const [isOpen, setIsOpen] = useState(false);
|
|
52193
52188
|
const [value, setValue] = useState('');
|
|
@@ -52626,22 +52621,21 @@ const MonthPopupPicker = ({
|
|
|
52626
52621
|
};
|
|
52627
52622
|
|
|
52628
52623
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
52629
|
-
const MonthPicker =
|
|
52630
|
-
|
|
52631
|
-
|
|
52632
|
-
|
|
52633
|
-
|
|
52634
|
-
|
|
52635
|
-
|
|
52636
|
-
|
|
52637
|
-
|
|
52638
|
-
|
|
52639
|
-
|
|
52640
|
-
|
|
52641
|
-
|
|
52642
|
-
|
|
52643
|
-
|
|
52644
|
-
} = _ref;
|
|
52624
|
+
const MonthPicker = ({
|
|
52625
|
+
availableMonths,
|
|
52626
|
+
label,
|
|
52627
|
+
onChange,
|
|
52628
|
+
borderRadius,
|
|
52629
|
+
required,
|
|
52630
|
+
width,
|
|
52631
|
+
height,
|
|
52632
|
+
placeholder,
|
|
52633
|
+
disabled,
|
|
52634
|
+
borderColor,
|
|
52635
|
+
borderColorFocus,
|
|
52636
|
+
textColor,
|
|
52637
|
+
selectedValue
|
|
52638
|
+
}) => {
|
|
52645
52639
|
const [isFocused, setIsFocused] = useState(false);
|
|
52646
52640
|
const [isOpen, setIsOpen] = useState(false);
|
|
52647
52641
|
const [value, setValue] = useState('');
|
|
@@ -52794,7 +52788,7 @@ MonthPicker.defaultProps = {
|
|
|
52794
52788
|
selectedValue: ''
|
|
52795
52789
|
};
|
|
52796
52790
|
|
|
52797
|
-
const ControlsContainer$
|
|
52791
|
+
const ControlsContainer$7 = dt.div`
|
|
52798
52792
|
display: flex;
|
|
52799
52793
|
flex-direction: column;
|
|
52800
52794
|
justify-content: space-between;
|
|
@@ -53414,7 +53408,7 @@ const FilterPanel = props => {
|
|
|
53414
53408
|
}
|
|
53415
53409
|
return content;
|
|
53416
53410
|
};
|
|
53417
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
53411
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$7, {
|
|
53418
53412
|
className: className,
|
|
53419
53413
|
height: height,
|
|
53420
53414
|
width: width,
|
|
@@ -65812,22 +65806,21 @@ const DeleteIcon = dt.div`
|
|
|
65812
65806
|
position: absolute;
|
|
65813
65807
|
`;
|
|
65814
65808
|
|
|
65815
|
-
const QuickFilterDropdownSingle =
|
|
65816
|
-
|
|
65817
|
-
|
|
65818
|
-
|
|
65819
|
-
|
|
65820
|
-
|
|
65821
|
-
|
|
65822
|
-
|
|
65823
|
-
|
|
65824
|
-
|
|
65825
|
-
|
|
65826
|
-
|
|
65827
|
-
|
|
65828
|
-
|
|
65829
|
-
|
|
65830
|
-
} = _ref;
|
|
65809
|
+
const QuickFilterDropdownSingle = ({
|
|
65810
|
+
label,
|
|
65811
|
+
hoverColor,
|
|
65812
|
+
options,
|
|
65813
|
+
selectedValue,
|
|
65814
|
+
placeHolder,
|
|
65815
|
+
onChange,
|
|
65816
|
+
disabled,
|
|
65817
|
+
width,
|
|
65818
|
+
error,
|
|
65819
|
+
errorMessage,
|
|
65820
|
+
xIconShow,
|
|
65821
|
+
labelColor,
|
|
65822
|
+
showLabelOnTop
|
|
65823
|
+
}) => {
|
|
65831
65824
|
const [isFocused, setIsFocused] = useState(false);
|
|
65832
65825
|
const [showOptions, setShowOptions] = useState(false);
|
|
65833
65826
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -66225,24 +66218,23 @@ const IconContainer$1 = dt.div`
|
|
|
66225
66218
|
cursor: pointer;
|
|
66226
66219
|
`;
|
|
66227
66220
|
|
|
66228
|
-
const QuickFilterDropdownMultiSelection =
|
|
66229
|
-
|
|
66230
|
-
|
|
66231
|
-
|
|
66232
|
-
|
|
66233
|
-
|
|
66234
|
-
|
|
66235
|
-
|
|
66236
|
-
|
|
66237
|
-
|
|
66238
|
-
|
|
66239
|
-
|
|
66240
|
-
|
|
66241
|
-
|
|
66242
|
-
|
|
66243
|
-
|
|
66244
|
-
|
|
66245
|
-
} = _ref;
|
|
66221
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
66222
|
+
label,
|
|
66223
|
+
labelEmptyValue,
|
|
66224
|
+
options,
|
|
66225
|
+
selectedValue,
|
|
66226
|
+
placeHolder,
|
|
66227
|
+
onChange,
|
|
66228
|
+
required,
|
|
66229
|
+
disabled,
|
|
66230
|
+
width,
|
|
66231
|
+
error,
|
|
66232
|
+
errorMessage,
|
|
66233
|
+
labelColor,
|
|
66234
|
+
xIconShow,
|
|
66235
|
+
checkBoxColor,
|
|
66236
|
+
showLabelOnTop
|
|
66237
|
+
}) => {
|
|
66246
66238
|
const [isFocused, setIsFocused] = useState(false);
|
|
66247
66239
|
const [showOptions, setShowOptions] = useState(false);
|
|
66248
66240
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -67082,7 +67074,7 @@ const scrollableStyles$3 = `
|
|
|
67082
67074
|
border-radius: 5px;
|
|
67083
67075
|
}
|
|
67084
67076
|
`;
|
|
67085
|
-
const ControlsContainer$
|
|
67077
|
+
const ControlsContainer$6 = dt.div`
|
|
67086
67078
|
position: relative;
|
|
67087
67079
|
font-family: "Poppins", sans-serif;
|
|
67088
67080
|
font-style: normal;
|
|
@@ -67101,7 +67093,7 @@ const ControlsContainer$5 = dt.div`
|
|
|
67101
67093
|
box-sizing: border-box;
|
|
67102
67094
|
}
|
|
67103
67095
|
`;
|
|
67104
|
-
const Controls$
|
|
67096
|
+
const Controls$4 = dt.div`
|
|
67105
67097
|
display: flex;
|
|
67106
67098
|
flex-direction: column;
|
|
67107
67099
|
width: 100%;
|
|
@@ -67112,7 +67104,7 @@ const TitleAndValueContainer$3 = dt.div`
|
|
|
67112
67104
|
display: flex;
|
|
67113
67105
|
flex-direction: column;
|
|
67114
67106
|
`;
|
|
67115
|
-
const Title$
|
|
67107
|
+
const Title$9 = dt.h4`
|
|
67116
67108
|
font-weight: 400;
|
|
67117
67109
|
font-size: 20px;
|
|
67118
67110
|
margin: 0;
|
|
@@ -67164,18 +67156,18 @@ const FormattedValue$2 = props => {
|
|
|
67164
67156
|
textcolor,
|
|
67165
67157
|
isPercent
|
|
67166
67158
|
} = props;
|
|
67167
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
67159
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$6, {
|
|
67168
67160
|
className: className || 'FormattedValue_ControlsContainer',
|
|
67169
67161
|
height: height,
|
|
67170
67162
|
width: width,
|
|
67171
67163
|
textcolor: textcolor
|
|
67172
|
-
}, /*#__PURE__*/React__default.createElement(Controls$
|
|
67164
|
+
}, /*#__PURE__*/React__default.createElement(Controls$4, {
|
|
67173
67165
|
className: "Controls",
|
|
67174
67166
|
height: height,
|
|
67175
67167
|
width: width
|
|
67176
67168
|
}, /*#__PURE__*/React__default.createElement(TitleAndValueContainer$3, {
|
|
67177
67169
|
className: "TitleAndValueContainer"
|
|
67178
|
-
}, title ? /*#__PURE__*/React__default.createElement(Title$
|
|
67170
|
+
}, title ? /*#__PURE__*/React__default.createElement(Title$9, {
|
|
67179
67171
|
className: "Title",
|
|
67180
67172
|
width: width
|
|
67181
67173
|
}, title) : '', showTopValue && /*#__PURE__*/React__default.createElement(CurrencySignAndFormattedValueContainer$1, {
|
|
@@ -67187,7 +67179,7 @@ const FormattedValue$2 = props => {
|
|
|
67187
67179
|
className: "CurrencySignOrPercent"
|
|
67188
67180
|
}, 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.createElement(CurrencySignOrPercent, {
|
|
67189
67181
|
className: "CurrencySignOrPercent"
|
|
67190
|
-
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default.createElement(Title$
|
|
67182
|
+
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default.createElement(Title$9, {
|
|
67191
67183
|
className: "Title",
|
|
67192
67184
|
width: width
|
|
67193
67185
|
}, subtitle) : '')));
|
|
@@ -67221,7 +67213,7 @@ FormattedValue$2.defaultProps = {
|
|
|
67221
67213
|
isPercent: false
|
|
67222
67214
|
};
|
|
67223
67215
|
|
|
67224
|
-
const ControlsContainer$
|
|
67216
|
+
const ControlsContainer$5 = dt.div`
|
|
67225
67217
|
position: relative;
|
|
67226
67218
|
font-family: "Poppins", sans-serif;
|
|
67227
67219
|
color: #212121;
|
|
@@ -67229,27 +67221,27 @@ const ControlsContainer$4 = dt.div`
|
|
|
67229
67221
|
height: ${props => props.height};
|
|
67230
67222
|
min-width: 250px;
|
|
67231
67223
|
`;
|
|
67232
|
-
const Controls$
|
|
67224
|
+
const Controls$3 = dt.div`
|
|
67233
67225
|
height: 100%;
|
|
67234
67226
|
width: 100%;
|
|
67235
67227
|
background: white;
|
|
67236
67228
|
display: flex;
|
|
67237
67229
|
flex-direction: column;
|
|
67238
67230
|
`;
|
|
67239
|
-
const TooltipDiv$
|
|
67231
|
+
const TooltipDiv$2 = dt.div`
|
|
67240
67232
|
border-radius: 5px;
|
|
67241
67233
|
padding: 8px 12px;
|
|
67242
67234
|
background: white;
|
|
67243
67235
|
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
67244
67236
|
margin: 0;
|
|
67245
67237
|
`;
|
|
67246
|
-
const TooltipLabel$
|
|
67238
|
+
const TooltipLabel$2 = dt.div`
|
|
67247
67239
|
color: #212121;
|
|
67248
67240
|
font-size: 14px;
|
|
67249
67241
|
font-weight: 400;
|
|
67250
67242
|
width: fit-content;
|
|
67251
67243
|
`;
|
|
67252
|
-
const TooltipTitle = dt.div`
|
|
67244
|
+
const TooltipTitle$1 = dt.div`
|
|
67253
67245
|
color: #212121;
|
|
67254
67246
|
font-size: 14px;
|
|
67255
67247
|
font-weight: 600;
|
|
@@ -67257,7 +67249,7 @@ const TooltipTitle = dt.div`
|
|
|
67257
67249
|
const TitleAndValueContainer$2 = dt.div`
|
|
67258
67250
|
padding: 0 1rem;
|
|
67259
67251
|
`;
|
|
67260
|
-
const Title$
|
|
67252
|
+
const Title$8 = dt.h5`
|
|
67261
67253
|
font-weight: 500;
|
|
67262
67254
|
font-size: 18px;
|
|
67263
67255
|
line-height: 20px;
|
|
@@ -67344,7 +67336,7 @@ const LegendLineIcon = ({
|
|
|
67344
67336
|
fill: color
|
|
67345
67337
|
}));
|
|
67346
67338
|
|
|
67347
|
-
const ControlsContainer$
|
|
67339
|
+
const ControlsContainer$4 = dt.div`
|
|
67348
67340
|
position: relative;
|
|
67349
67341
|
font-family: "Poppins", sans-serif;
|
|
67350
67342
|
font-size: ${props => props.rootFont};
|
|
@@ -67356,7 +67348,7 @@ const ControlsContainer$3 = dt.div`
|
|
|
67356
67348
|
box-sizing: border-box;
|
|
67357
67349
|
}
|
|
67358
67350
|
`;
|
|
67359
|
-
const Controls$
|
|
67351
|
+
const Controls$2 = dt.div`
|
|
67360
67352
|
display: flex;
|
|
67361
67353
|
gap: 20px;
|
|
67362
67354
|
flex-direction: column;
|
|
@@ -67380,7 +67372,7 @@ const TitleAndIconContainer = dt.div`
|
|
|
67380
67372
|
display: flex;
|
|
67381
67373
|
align-items: center;
|
|
67382
67374
|
`;
|
|
67383
|
-
const Title$
|
|
67375
|
+
const Title$7 = dt.h4`
|
|
67384
67376
|
font-weight: 400;
|
|
67385
67377
|
font-size: 14px;
|
|
67386
67378
|
line-height: 27px;
|
|
@@ -67401,9 +67393,9 @@ const LegendColorRectangle$1 = dt.div`
|
|
|
67401
67393
|
`;
|
|
67402
67394
|
|
|
67403
67395
|
/* eslint-disable no-nested-ternary */
|
|
67404
|
-
const ICON_TYPE_SQUARE$
|
|
67405
|
-
const ICON_TYPE_LEGEND_UNION_ICON$
|
|
67406
|
-
const ICON_TYPE_LEGEND_LINE_ICON$
|
|
67396
|
+
const ICON_TYPE_SQUARE$2 = 'Square';
|
|
67397
|
+
const ICON_TYPE_LEGEND_UNION_ICON$2 = 'LegendUnionIcon';
|
|
67398
|
+
const ICON_TYPE_LEGEND_LINE_ICON$2 = 'LegendLineIcon';
|
|
67407
67399
|
const PerformanceAnalyticsLegend = props => {
|
|
67408
67400
|
const {
|
|
67409
67401
|
className,
|
|
@@ -67411,26 +67403,26 @@ const PerformanceAnalyticsLegend = props => {
|
|
|
67411
67403
|
width,
|
|
67412
67404
|
height
|
|
67413
67405
|
} = props;
|
|
67414
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
67406
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$4, {
|
|
67415
67407
|
className: className,
|
|
67416
67408
|
height: height,
|
|
67417
67409
|
width: width
|
|
67418
|
-
}, legendData?.length > 0 ? /*#__PURE__*/React__default.createElement(Controls$
|
|
67410
|
+
}, legendData?.length > 0 ? /*#__PURE__*/React__default.createElement(Controls$2, {
|
|
67419
67411
|
height: height,
|
|
67420
67412
|
width: width
|
|
67421
67413
|
}, /*#__PURE__*/React__default.createElement(LegendDataContainer, {
|
|
67422
67414
|
id: "LegendDataContainer"
|
|
67423
67415
|
}, legendData?.map((item, i) => /*#__PURE__*/React__default.createElement(TitleAndIconContainer, {
|
|
67424
67416
|
key: `${item.title + i}`
|
|
67425
|
-
}, item.iconType === ICON_TYPE_SQUARE$
|
|
67417
|
+
}, item.iconType === ICON_TYPE_SQUARE$2 ? /*#__PURE__*/React__default.createElement(LegendColorRectangle$1, {
|
|
67426
67418
|
color: item.iconColor
|
|
67427
|
-
}) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$
|
|
67419
|
+
}) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$2 ? /*#__PURE__*/React__default.createElement(LegendUnionIcon, {
|
|
67428
67420
|
width: 30,
|
|
67429
67421
|
height: 30,
|
|
67430
67422
|
color: item.iconColor
|
|
67431
|
-
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$
|
|
67423
|
+
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React__default.createElement(LegendLineIcon, {
|
|
67432
67424
|
color: item.iconColor
|
|
67433
|
-
}) : '', /*#__PURE__*/React__default.createElement(Title$
|
|
67425
|
+
}) : '', /*#__PURE__*/React__default.createElement(Title$7, {
|
|
67434
67426
|
id: "Title",
|
|
67435
67427
|
width: width
|
|
67436
67428
|
}, item.title))))) : '');
|
|
@@ -67441,7 +67433,7 @@ PerformanceAnalyticsLegend.propTypes = {
|
|
|
67441
67433
|
height: PropTypes.string,
|
|
67442
67434
|
legendData: PropTypes.arrayOf(PropTypes.shape({
|
|
67443
67435
|
title: PropTypes.string.isRequired,
|
|
67444
|
-
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$
|
|
67436
|
+
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$2, ICON_TYPE_LEGEND_UNION_ICON$2, ICON_TYPE_LEGEND_LINE_ICON$2]).isRequired,
|
|
67445
67437
|
iconColor: PropTypes.string.isRequired
|
|
67446
67438
|
}))
|
|
67447
67439
|
};
|
|
@@ -67451,15 +67443,15 @@ PerformanceAnalyticsLegend.defaultProps = {
|
|
|
67451
67443
|
height: '',
|
|
67452
67444
|
legendData: [{
|
|
67453
67445
|
title: '',
|
|
67454
|
-
iconType: ICON_TYPE_SQUARE$
|
|
67446
|
+
iconType: ICON_TYPE_SQUARE$2,
|
|
67455
67447
|
iconColor: '#1F7677'
|
|
67456
67448
|
}]
|
|
67457
67449
|
};
|
|
67458
67450
|
|
|
67459
67451
|
/* eslint-disable no-nested-ternary */
|
|
67460
|
-
const ICON_TYPE_SQUARE = 'Square';
|
|
67461
|
-
const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
|
|
67462
|
-
const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
|
|
67452
|
+
const ICON_TYPE_SQUARE$1 = 'Square';
|
|
67453
|
+
const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
|
|
67454
|
+
const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
|
|
67463
67455
|
const BarChartsByWeeks = props => {
|
|
67464
67456
|
const {
|
|
67465
67457
|
className,
|
|
@@ -67548,9 +67540,9 @@ const BarChartsByWeeks = props => {
|
|
|
67548
67540
|
let currentTooltipSecondValue = 0;
|
|
67549
67541
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
67550
67542
|
if (payload[0].payload?.secondValue) currentTooltipSecondValue = payload[0].payload?.secondValue;
|
|
67551
|
-
return /*#__PURE__*/React__default.createElement(TooltipDiv$
|
|
67543
|
+
return /*#__PURE__*/React__default.createElement(TooltipDiv$2, null, /*#__PURE__*/React__default.createElement(TooltipTitle$1, null, `${isTitleOriganal ? '' : 'Week: '}${week}`), /*#__PURE__*/React__default.createElement(TooltipLabel$2, null, `${tooltipTitle}
|
|
67552
67544
|
${displayFormattedValue(currentTooltipValue)}
|
|
67553
|
-
`), currentTooltipSecondValue ? /*#__PURE__*/React__default.createElement(TooltipLabel$
|
|
67545
|
+
`), currentTooltipSecondValue ? /*#__PURE__*/React__default.createElement(TooltipLabel$2, null, `${tooltipSecondTitle}
|
|
67554
67546
|
${displayFormattedValue(currentTooltipSecondValue)}
|
|
67555
67547
|
`) : '');
|
|
67556
67548
|
};
|
|
@@ -67598,14 +67590,14 @@ const BarChartsByWeeks = props => {
|
|
|
67598
67590
|
}
|
|
67599
67591
|
return `${newHeight}px`;
|
|
67600
67592
|
};
|
|
67601
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
67593
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$5, {
|
|
67602
67594
|
className: className,
|
|
67603
67595
|
height: height,
|
|
67604
67596
|
width: width,
|
|
67605
67597
|
ref: controlsContainerRef
|
|
67606
|
-
}, /*#__PURE__*/React__default.createElement(Controls$
|
|
67598
|
+
}, /*#__PURE__*/React__default.createElement(Controls$3, {
|
|
67607
67599
|
height: getControlsHeight()
|
|
67608
|
-
}, showTitle && /*#__PURE__*/React__default.createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default.createElement(Title$
|
|
67600
|
+
}, showTitle && /*#__PURE__*/React__default.createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default.createElement(Title$8, null, title), /*#__PURE__*/React__default.createElement(FormattedValue$2, {
|
|
67609
67601
|
title: headerValueTopTitle,
|
|
67610
67602
|
subtitle: headerValueBottomTitle,
|
|
67611
67603
|
showTopValue: showHeaderTopValue,
|
|
@@ -67616,7 +67608,7 @@ const BarChartsByWeeks = props => {
|
|
|
67616
67608
|
})), /*#__PURE__*/React__default.createElement(ResponsiveContainer, {
|
|
67617
67609
|
width: "100%",
|
|
67618
67610
|
height: "100%"
|
|
67619
|
-
}, /*#__PURE__*/React__default.createElement(BarChart, {
|
|
67611
|
+
}, /*#__PURE__*/React__default.createElement(BarChart$1, {
|
|
67620
67612
|
width: width,
|
|
67621
67613
|
height: height,
|
|
67622
67614
|
data: formmatedData,
|
|
@@ -67700,7 +67692,7 @@ BarChartsByWeeks.propTypes = {
|
|
|
67700
67692
|
showLegend: PropTypes.bool,
|
|
67701
67693
|
legendData: PropTypes.arrayOf(PropTypes.shape({
|
|
67702
67694
|
title: PropTypes.string.isRequired,
|
|
67703
|
-
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
|
|
67695
|
+
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
|
|
67704
67696
|
iconColor: PropTypes.string.isRequired
|
|
67705
67697
|
})),
|
|
67706
67698
|
showTwoBars: PropTypes.bool,
|
|
@@ -67764,11 +67756,11 @@ BarChartsByWeeks.defaultProps = {
|
|
|
67764
67756
|
isTitleOriganal: false,
|
|
67765
67757
|
legendData: [{
|
|
67766
67758
|
title: 'Sales',
|
|
67767
|
-
iconType: ICON_TYPE_SQUARE,
|
|
67759
|
+
iconType: ICON_TYPE_SQUARE$1,
|
|
67768
67760
|
iconColor: '#90CE9C'
|
|
67769
67761
|
}, {
|
|
67770
67762
|
title: 'Category Average',
|
|
67771
|
-
iconType: ICON_TYPE_LEGEND_LINE_ICON,
|
|
67763
|
+
iconType: ICON_TYPE_LEGEND_LINE_ICON$1,
|
|
67772
67764
|
iconColor: '#C906FD'
|
|
67773
67765
|
}],
|
|
67774
67766
|
showTwoBars: false,
|
|
@@ -67793,7 +67785,7 @@ const scrollableStyles$2 = `
|
|
|
67793
67785
|
border-radius: 5px;
|
|
67794
67786
|
}
|
|
67795
67787
|
`;
|
|
67796
|
-
const ControlsContainer$
|
|
67788
|
+
const ControlsContainer$3 = dt.div`
|
|
67797
67789
|
position: relative;
|
|
67798
67790
|
font-family: "Poppins", sans-serif;
|
|
67799
67791
|
font-style: normal;
|
|
@@ -67812,7 +67804,7 @@ const ControlsContainer$2 = dt.div`
|
|
|
67812
67804
|
box-sizing: border-box;
|
|
67813
67805
|
}
|
|
67814
67806
|
`;
|
|
67815
|
-
const Controls = dt.div`
|
|
67807
|
+
const Controls$1 = dt.div`
|
|
67816
67808
|
display: flex;
|
|
67817
67809
|
flex-direction: column;
|
|
67818
67810
|
width: 100%;
|
|
@@ -67820,7 +67812,7 @@ const Controls = dt.div`
|
|
|
67820
67812
|
background: white;
|
|
67821
67813
|
border-radius: 12px;
|
|
67822
67814
|
`;
|
|
67823
|
-
const TooltipDiv = dt.div`
|
|
67815
|
+
const TooltipDiv$1 = dt.div`
|
|
67824
67816
|
display: flex;
|
|
67825
67817
|
background: white;
|
|
67826
67818
|
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
@@ -67828,7 +67820,7 @@ const TooltipDiv = dt.div`
|
|
|
67828
67820
|
padding: 6px 10px;
|
|
67829
67821
|
margin: 0;
|
|
67830
67822
|
`;
|
|
67831
|
-
const TooltipLabel = dt.p`
|
|
67823
|
+
const TooltipLabel$1 = dt.p`
|
|
67832
67824
|
color: #212121;
|
|
67833
67825
|
font-family: "Poppins", sans-serif;
|
|
67834
67826
|
font-size: 12px;
|
|
@@ -67843,7 +67835,7 @@ const TitleAndValueContainer$1 = dt.div`
|
|
|
67843
67835
|
flex-direction: column;
|
|
67844
67836
|
padding: 0 20px;
|
|
67845
67837
|
`;
|
|
67846
|
-
const Title$
|
|
67838
|
+
const Title$6 = dt.h4`
|
|
67847
67839
|
font-weight: 500;
|
|
67848
67840
|
font-size: 1rem;
|
|
67849
67841
|
margin: 0;
|
|
@@ -68022,7 +68014,7 @@ const TotalDoughnutChart = props => {
|
|
|
68022
68014
|
fontWeight: itemsBoldedValues ? '700' : '400'
|
|
68023
68015
|
}
|
|
68024
68016
|
}, ' (', `${Math.round(row.value / value * 100)}%)`), isPercent && row.value && `${row.value.toFixed(1)}%`);
|
|
68025
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
68017
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$3, {
|
|
68026
68018
|
className: className,
|
|
68027
68019
|
height: height,
|
|
68028
68020
|
width: width,
|
|
@@ -68030,13 +68022,13 @@ const TotalDoughnutChart = props => {
|
|
|
68030
68022
|
}, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/React__default.createElement(NoDataFoundMessage, {
|
|
68031
68023
|
className: "NoDataFoundMessage",
|
|
68032
68024
|
noDataText: noDataText
|
|
68033
|
-
}) : /*#__PURE__*/React__default.createElement(Controls, {
|
|
68025
|
+
}) : /*#__PURE__*/React__default.createElement(Controls$1, {
|
|
68034
68026
|
className: "Controls",
|
|
68035
68027
|
height: height,
|
|
68036
68028
|
width: width
|
|
68037
68029
|
}, !hideTitleAndValue && /*#__PURE__*/React__default.createElement(TitleAndValueContainer$1, {
|
|
68038
68030
|
className: "TitleAndValueContainer"
|
|
68039
|
-
}, /*#__PURE__*/React__default.createElement(Title$
|
|
68031
|
+
}, /*#__PURE__*/React__default.createElement(Title$6, {
|
|
68040
68032
|
className: "Title"
|
|
68041
68033
|
}, title), /*#__PURE__*/React__default.createElement(CurrencySignAndFormattedValueContainer, {
|
|
68042
68034
|
className: "CurrencySignAndFormattedValueContainer"
|
|
@@ -68131,7 +68123,7 @@ function CustomTooltip(_ref) {
|
|
|
68131
68123
|
if (active && payload && payload.length) {
|
|
68132
68124
|
// eslint-disable-next-line no-nested-ternary
|
|
68133
68125
|
const percent = value && value !== 0 && !isPercent ? (payload[0].value / value * 100).toFixed(1) : value && isPercent ? payload[0].value.toFixed(1) : 0;
|
|
68134
|
-
return /*#__PURE__*/React__default.createElement(TooltipDiv, null, /*#__PURE__*/React__default.createElement(TooltipLabel, null, `${payload[0].name} ${percent}%`));
|
|
68126
|
+
return /*#__PURE__*/React__default.createElement(TooltipDiv$1, null, /*#__PURE__*/React__default.createElement(TooltipLabel$1, null, `${payload[0].name} ${percent}%`));
|
|
68135
68127
|
}
|
|
68136
68128
|
}
|
|
68137
68129
|
CustomTooltip.propTypes = {
|
|
@@ -68280,7 +68272,7 @@ Tooltip.defaultProps = {
|
|
|
68280
68272
|
content: ''
|
|
68281
68273
|
};
|
|
68282
68274
|
|
|
68283
|
-
const ControlsContainer$
|
|
68275
|
+
const ControlsContainer$2 = dt.div`
|
|
68284
68276
|
font-family: "Poppins", sans-serif;
|
|
68285
68277
|
background-color: white;
|
|
68286
68278
|
color: ${props => props.textColor};
|
|
@@ -68343,7 +68335,7 @@ const TotalValue = dt.div`
|
|
|
68343
68335
|
font-size: 20px;
|
|
68344
68336
|
}
|
|
68345
68337
|
`;
|
|
68346
|
-
const Title$
|
|
68338
|
+
const Title$5 = dt.h4`
|
|
68347
68339
|
font-size: 18px;
|
|
68348
68340
|
font-weight: 400;
|
|
68349
68341
|
line-height: 1;
|
|
@@ -68490,7 +68482,7 @@ const TotalHorizontalCharts = props => {
|
|
|
68490
68482
|
}
|
|
68491
68483
|
return null;
|
|
68492
68484
|
};
|
|
68493
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer$
|
|
68485
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$2, {
|
|
68494
68486
|
ref: wrapper,
|
|
68495
68487
|
height: height,
|
|
68496
68488
|
width: width,
|
|
@@ -68500,14 +68492,14 @@ const TotalHorizontalCharts = props => {
|
|
|
68500
68492
|
}, chartsData?.length > 0 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React__default.createElement(CardHeader, {
|
|
68501
68493
|
ref: topHeader,
|
|
68502
68494
|
className: "CardHeader"
|
|
68503
|
-
}, !hideTitle ? /*#__PURE__*/React__default.createElement(Title$
|
|
68495
|
+
}, !hideTitle ? /*#__PURE__*/React__default.createElement(Title$5, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default.createElement(TotalValue, {
|
|
68504
68496
|
className: "TotalValue"
|
|
68505
68497
|
}, currencySign && /*#__PURE__*/React__default.createElement(CurrencySign, {
|
|
68506
68498
|
className: "CurrencySign"
|
|
68507
68499
|
}, 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.createElement(ResponsiveContainer, {
|
|
68508
68500
|
width: "100%",
|
|
68509
68501
|
height: calculateChartHeight()
|
|
68510
|
-
}, /*#__PURE__*/React__default.createElement(BarChart, {
|
|
68502
|
+
}, /*#__PURE__*/React__default.createElement(BarChart$1, {
|
|
68511
68503
|
layout: "vertical",
|
|
68512
68504
|
data: chartsData,
|
|
68513
68505
|
margin: {
|
|
@@ -68609,7 +68601,7 @@ TotalHorizontalCharts.defaultProps = {
|
|
|
68609
68601
|
hideTitle: false
|
|
68610
68602
|
};
|
|
68611
68603
|
|
|
68612
|
-
const ControlsContainer = dt.div`
|
|
68604
|
+
const ControlsContainer$1 = dt.div`
|
|
68613
68605
|
// position: relative;
|
|
68614
68606
|
display: flex;
|
|
68615
68607
|
flex-direction: column;
|
|
@@ -68640,7 +68632,7 @@ const ItemContainer = dt.div`
|
|
|
68640
68632
|
flex-direction: column;
|
|
68641
68633
|
flex-wrap: wrap;
|
|
68642
68634
|
`;
|
|
68643
|
-
const Title$
|
|
68635
|
+
const Title$4 = dt.h4`
|
|
68644
68636
|
font-size: 18px;
|
|
68645
68637
|
font-weight: 500;
|
|
68646
68638
|
margin: 0;
|
|
@@ -68748,7 +68740,7 @@ const SalesAndROI = props => {
|
|
|
68748
68740
|
}, /*#__PURE__*/React__default.createElement(TextBeforeAndAfterValue, {
|
|
68749
68741
|
id: "TextBeforeAndAfterValue"
|
|
68750
68742
|
}, getTextBefore(dataItem)), dotCut ? getFormattedValue(dataItem.value && Math.abs(dataItem.value) > 0 && dataItem.value % 1 !== 0 ? dataItem.value?.toFixed(2) : dataItem.value) : getNumberWithCommas(dataItem.value), dotCut ? getFormattedUnits(dataItem.value) : '', /*#__PURE__*/React__default.createElement(TextBeforeAndAfterValue, null, dataItem.textAfter)));
|
|
68751
|
-
return /*#__PURE__*/React__default.createElement(ControlsContainer, {
|
|
68743
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer$1, {
|
|
68752
68744
|
id: "ControlsContainer",
|
|
68753
68745
|
height: height,
|
|
68754
68746
|
width: width,
|
|
@@ -68756,7 +68748,7 @@ const SalesAndROI = props => {
|
|
|
68756
68748
|
showBorderShadow: showBorderShadow
|
|
68757
68749
|
}, /*#__PURE__*/React__default.createElement(TitleAndValueContainer, {
|
|
68758
68750
|
id: "TitleAndValueContainer"
|
|
68759
|
-
}, /*#__PURE__*/React__default.createElement(Title$
|
|
68751
|
+
}, /*#__PURE__*/React__default.createElement(Title$4, {
|
|
68760
68752
|
id: "Title"
|
|
68761
68753
|
}, title), showBanner && /*#__PURE__*/React__default.createElement(OutBanner, {
|
|
68762
68754
|
id: "OutBanner",
|
|
@@ -68855,7 +68847,7 @@ const TitleContainer$1 = dt.div`
|
|
|
68855
68847
|
margin: 0;
|
|
68856
68848
|
border-bottom: 1px solid #b1b1b1;
|
|
68857
68849
|
`;
|
|
68858
|
-
const Title$
|
|
68850
|
+
const Title$3 = dt.p`
|
|
68859
68851
|
font-weight: 400;
|
|
68860
68852
|
font-size: 24px;
|
|
68861
68853
|
margin: 0;
|
|
@@ -69075,7 +69067,7 @@ const PopupCharts = props => {
|
|
|
69075
69067
|
height: height,
|
|
69076
69068
|
width: width,
|
|
69077
69069
|
onClick: e => e.stopPropagation()
|
|
69078
|
-
}, /*#__PURE__*/React__default.createElement(TitleContainer$1, null, /*#__PURE__*/React__default.createElement(Title$
|
|
69070
|
+
}, /*#__PURE__*/React__default.createElement(TitleContainer$1, null, /*#__PURE__*/React__default.createElement(Title$3, null, title), /*#__PURE__*/React__default.createElement(CloseXIconContainer, {
|
|
69079
69071
|
onClick: e => closePopupCharts(e)
|
|
69080
69072
|
}, /*#__PURE__*/React__default.createElement(CloseXIcon, null))), /*#__PURE__*/React__default.createElement(ChartsContainer, {
|
|
69081
69073
|
id: "ChartsContainer",
|
|
@@ -69173,7 +69165,7 @@ const TopToggleListMainContainer = dt.div`
|
|
|
69173
69165
|
padding: 0 24px;
|
|
69174
69166
|
width: ${props => props.width};
|
|
69175
69167
|
`;
|
|
69176
|
-
const Title$
|
|
69168
|
+
const Title$2 = dt.h4`
|
|
69177
69169
|
font-size: 14px;
|
|
69178
69170
|
font-weight: 600;
|
|
69179
69171
|
margin: 20px 0 12px;
|
|
@@ -69203,7 +69195,7 @@ const TopToggleList = props => {
|
|
|
69203
69195
|
} = props;
|
|
69204
69196
|
return /*#__PURE__*/React__default.createElement(TopToggleListMainContainer, {
|
|
69205
69197
|
width: width
|
|
69206
|
-
}, /*#__PURE__*/React__default.createElement(Title$
|
|
69198
|
+
}, /*#__PURE__*/React__default.createElement(Title$2, null, title), /*#__PURE__*/React__default.createElement(ListContainer, {
|
|
69207
69199
|
height: height
|
|
69208
69200
|
}, list.map(item => /*#__PURE__*/React__default.createElement(ListItem, {
|
|
69209
69201
|
key: item.value
|
|
@@ -80658,7 +80650,7 @@ const TitleContainer = dt.div`
|
|
|
80658
80650
|
justify-content: flex-start;
|
|
80659
80651
|
margin: 0 0 10px 0;
|
|
80660
80652
|
`;
|
|
80661
|
-
const Title = dt.h3`
|
|
80653
|
+
const Title$1 = dt.h3`
|
|
80662
80654
|
user-select: none;
|
|
80663
80655
|
text-align: left;
|
|
80664
80656
|
margin: 0;
|
|
@@ -80933,7 +80925,7 @@ const Heatmap = props => {
|
|
|
80933
80925
|
className: "HeatmapWrapper"
|
|
80934
80926
|
}, /*#__PURE__*/React__default.createElement(TitleContainer, {
|
|
80935
80927
|
className: "TitleContainer"
|
|
80936
|
-
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
80928
|
+
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
80937
80929
|
className: "Title"
|
|
80938
80930
|
}, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
|
|
80939
80931
|
};
|
|
@@ -80948,5 +80940,698 @@ Heatmap.propTypes = {
|
|
|
80948
80940
|
barHeight: PropTypes.string.isRequired
|
|
80949
80941
|
};
|
|
80950
80942
|
|
|
80951
|
-
|
|
80943
|
+
const ButtonWrapper = dt.div`
|
|
80944
|
+
width: fit-content;
|
|
80945
|
+
text-align: center;
|
|
80946
|
+
`;
|
|
80947
|
+
const IconButtonContainer = dt.a`
|
|
80948
|
+
font-size: 14px;
|
|
80949
|
+
font-weight: 400;
|
|
80950
|
+
display: flex;
|
|
80951
|
+
gap: 10px;
|
|
80952
|
+
align-items: center;
|
|
80953
|
+
justify-content: center;
|
|
80954
|
+
padding: 12px 20px;
|
|
80955
|
+
text-decoration: none;
|
|
80956
|
+
color: ${props => props.color};
|
|
80957
|
+
border-radius: ${props => props.borderRadius};
|
|
80958
|
+
border: 1px solid ${props => props.borderColor.toString()};
|
|
80959
|
+
background: ${props => props.backgroundColor.toString()};
|
|
80960
|
+
position: relative;
|
|
80961
|
+
transition: all .3s;
|
|
80962
|
+
${props => props.inProgress && lt`
|
|
80963
|
+
pointer-events: none;
|
|
80964
|
+
&:after {
|
|
80965
|
+
content: 'In progress';
|
|
80966
|
+
display: flex;
|
|
80967
|
+
align-items: center;
|
|
80968
|
+
justify-content: center;
|
|
80969
|
+
text-wrap: nowrap;
|
|
80970
|
+
position: absolute;
|
|
80971
|
+
background: linear-gradient(
|
|
80972
|
+
to right,
|
|
80973
|
+
#5FCC70 ${props.progress}%,
|
|
80974
|
+
#B1B1B1 ${props.progress + 1}%,
|
|
80975
|
+
#B1B1B1 100%
|
|
80976
|
+
);
|
|
80977
|
+
width: 100%;
|
|
80978
|
+
height: 100%;
|
|
80979
|
+
border-radius: ${props => props.borderRadius};
|
|
80980
|
+
border-width: 0;
|
|
80981
|
+
z-index: 9;
|
|
80982
|
+
}
|
|
80983
|
+
`}
|
|
80984
|
+
&:hover, &:focus {
|
|
80985
|
+
cursor: pointer;
|
|
80986
|
+
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);
|
|
80987
|
+
}
|
|
80988
|
+
`;
|
|
80989
|
+
const SpanText = dt.span`
|
|
80990
|
+
`;
|
|
80991
|
+
const CancelClick = dt.span`
|
|
80992
|
+
display: inherit;
|
|
80993
|
+
font-family: "Lato", sans-serif;;
|
|
80994
|
+
font-size: 14px;
|
|
80995
|
+
color: #568202;
|
|
80996
|
+
cursor: pointer;
|
|
80997
|
+
margin-top: 5px;
|
|
80998
|
+
`;
|
|
80999
|
+
|
|
81000
|
+
/* IconButton */
|
|
81001
|
+
const IconButton = props => {
|
|
81002
|
+
const {
|
|
81003
|
+
// downloadStatus,
|
|
81004
|
+
// fileName,
|
|
81005
|
+
fileLink,
|
|
81006
|
+
showProcess,
|
|
81007
|
+
contentColor,
|
|
81008
|
+
buttonText,
|
|
81009
|
+
backgroundColor,
|
|
81010
|
+
borderColor,
|
|
81011
|
+
borderRadius,
|
|
81012
|
+
iconName,
|
|
81013
|
+
iconWidth,
|
|
81014
|
+
iconHeight,
|
|
81015
|
+
disabled,
|
|
81016
|
+
onClick,
|
|
81017
|
+
onCancelClick
|
|
81018
|
+
} = props;
|
|
81019
|
+
const [progress, setProgress] = useState(0);
|
|
81020
|
+
let interval;
|
|
81021
|
+
const incrementProgress = () => {
|
|
81022
|
+
if (showProcess && progress <= 90) {
|
|
81023
|
+
interval = setInterval(() => {
|
|
81024
|
+
setProgress(prevProgress => {
|
|
81025
|
+
const newProgress = prevProgress + 2;
|
|
81026
|
+
if (newProgress >= 90) {
|
|
81027
|
+
clearInterval(interval);
|
|
81028
|
+
}
|
|
81029
|
+
return newProgress;
|
|
81030
|
+
});
|
|
81031
|
+
}, 500);
|
|
81032
|
+
} else {
|
|
81033
|
+
setProgress(0);
|
|
81034
|
+
clearInterval(interval);
|
|
81035
|
+
}
|
|
81036
|
+
};
|
|
81037
|
+
useEffect(() => {
|
|
81038
|
+
incrementProgress();
|
|
81039
|
+
}, [showProcess]);
|
|
81040
|
+
const getIcon = icon => {
|
|
81041
|
+
switch (icon) {
|
|
81042
|
+
case 'download':
|
|
81043
|
+
return /*#__PURE__*/React__default.createElement(DownloadIcon, {
|
|
81044
|
+
height: iconHeight,
|
|
81045
|
+
width: iconWidth,
|
|
81046
|
+
color: contentColor
|
|
81047
|
+
});
|
|
81048
|
+
case 'document':
|
|
81049
|
+
return /*#__PURE__*/React__default.createElement(DocumentIcon, {
|
|
81050
|
+
height: iconHeight,
|
|
81051
|
+
width: iconWidth,
|
|
81052
|
+
color: contentColor
|
|
81053
|
+
});
|
|
81054
|
+
case 'fly':
|
|
81055
|
+
return /*#__PURE__*/React__default.createElement(FlyIcon, {
|
|
81056
|
+
height: iconHeight,
|
|
81057
|
+
width: iconWidth,
|
|
81058
|
+
color: contentColor
|
|
81059
|
+
});
|
|
81060
|
+
case 'bell':
|
|
81061
|
+
return /*#__PURE__*/React__default.createElement(BellIcon, {
|
|
81062
|
+
height: iconHeight,
|
|
81063
|
+
width: iconWidth,
|
|
81064
|
+
color: contentColor
|
|
81065
|
+
});
|
|
81066
|
+
case 'maintenance':
|
|
81067
|
+
return /*#__PURE__*/React__default.createElement(MaintenanceIcon, {
|
|
81068
|
+
height: iconHeight,
|
|
81069
|
+
width: iconWidth,
|
|
81070
|
+
color: contentColor
|
|
81071
|
+
});
|
|
81072
|
+
case 'exit':
|
|
81073
|
+
return /*#__PURE__*/React__default.createElement(ExitIcon, {
|
|
81074
|
+
height: iconHeight,
|
|
81075
|
+
width: iconWidth,
|
|
81076
|
+
color: contentColor
|
|
81077
|
+
});
|
|
81078
|
+
case 'eye':
|
|
81079
|
+
return /*#__PURE__*/React__default.createElement(EyeIcon, {
|
|
81080
|
+
height: iconHeight,
|
|
81081
|
+
width: iconWidth,
|
|
81082
|
+
color: contentColor
|
|
81083
|
+
});
|
|
81084
|
+
default:
|
|
81085
|
+
return '';
|
|
81086
|
+
}
|
|
81087
|
+
};
|
|
81088
|
+
const onClickHandler = event => {
|
|
81089
|
+
onClick(event);
|
|
81090
|
+
};
|
|
81091
|
+
const onCancelClickHandler = event => {
|
|
81092
|
+
onCancelClick(event);
|
|
81093
|
+
};
|
|
81094
|
+
return /*#__PURE__*/React__default.createElement(ButtonWrapper, {
|
|
81095
|
+
id: "ButtonWrapper"
|
|
81096
|
+
}, /*#__PURE__*/React__default.createElement(IconButtonContainer, {
|
|
81097
|
+
download: true,
|
|
81098
|
+
href: fileLink,
|
|
81099
|
+
backgroundColor: disabled ? '#E3E4E5' : backgroundColor,
|
|
81100
|
+
borderColor: disabled ? '#B1B1B1' : borderColor,
|
|
81101
|
+
borderRadius: borderRadius,
|
|
81102
|
+
color: disabled ? '#B1B1B1' : contentColor,
|
|
81103
|
+
inProgress: showProcess,
|
|
81104
|
+
progress: progress,
|
|
81105
|
+
onClick: event => {
|
|
81106
|
+
onClickHandler(event);
|
|
81107
|
+
}
|
|
81108
|
+
}, getIcon(iconName), buttonText !== '' && buttonText !== undefined && /*#__PURE__*/React__default.createElement(SpanText, null, buttonText)), showProcess && /*#__PURE__*/React__default.createElement(CancelClick, {
|
|
81109
|
+
onClick: event => onCancelClickHandler(event)
|
|
81110
|
+
}, "Click here to cancel"));
|
|
81111
|
+
};
|
|
81112
|
+
IconButton.propTypes = {
|
|
81113
|
+
// downloadStatus: PropTypes.string,
|
|
81114
|
+
// fileName: PropTypes.string,
|
|
81115
|
+
fileLink: PropTypes.string,
|
|
81116
|
+
showProcess: PropTypes.bool,
|
|
81117
|
+
buttonText: PropTypes.string,
|
|
81118
|
+
iconName: PropTypes.string,
|
|
81119
|
+
contentColor: PropTypes.string,
|
|
81120
|
+
backgroundColor: PropTypes.string,
|
|
81121
|
+
borderColor: PropTypes.string,
|
|
81122
|
+
borderRadius: PropTypes.string,
|
|
81123
|
+
iconHeight: PropTypes.number,
|
|
81124
|
+
iconWidth: PropTypes.number,
|
|
81125
|
+
disabled: PropTypes.bool,
|
|
81126
|
+
onClick: PropTypes.func,
|
|
81127
|
+
onCancelClick: PropTypes.func
|
|
81128
|
+
};
|
|
81129
|
+
IconButton.defaultProps = {
|
|
81130
|
+
// downloadStatus: '',
|
|
81131
|
+
// fileName: '',
|
|
81132
|
+
fileLink: '',
|
|
81133
|
+
showProcess: false,
|
|
81134
|
+
buttonText: '',
|
|
81135
|
+
iconName: 'eye',
|
|
81136
|
+
contentColor: '#212121',
|
|
81137
|
+
backgroundColor: '#FFFFFF',
|
|
81138
|
+
borderColor: '#B1B1B1',
|
|
81139
|
+
borderRadius: '12px',
|
|
81140
|
+
iconHeight: 18,
|
|
81141
|
+
iconWidth: 18,
|
|
81142
|
+
disabled: false,
|
|
81143
|
+
onClick: () => {},
|
|
81144
|
+
onCancelClick: () => {}
|
|
81145
|
+
};
|
|
81146
|
+
|
|
81147
|
+
const LinnerContainer = dt.div`
|
|
81148
|
+
font-family: "Poppins", sans-serif;
|
|
81149
|
+
display: grid;
|
|
81150
|
+
gap: 48px 0;
|
|
81151
|
+
grid-template-columns: repeat(5, 1fr);
|
|
81152
|
+
grid-template-rows: auto auto;
|
|
81153
|
+
width: ${props => props.width};
|
|
81154
|
+
height: ${props => props.height};
|
|
81155
|
+
background-color: ${props => props.backgroundColor};
|
|
81156
|
+
padding: 50px 20px 20px;
|
|
81157
|
+
box-sizing: border-box;
|
|
81158
|
+
`;
|
|
81159
|
+
const DataBox = dt.div`
|
|
81160
|
+
height: 100%;
|
|
81161
|
+
padding: 0 40px;
|
|
81162
|
+
border-left: 1px solid #d0d0d0;
|
|
81163
|
+
&:nth-child(1),
|
|
81164
|
+
&:nth-child(6) {
|
|
81165
|
+
border-left: none;
|
|
81166
|
+
padding-left: 0;
|
|
81167
|
+
}
|
|
81168
|
+
&:nth-child(5),
|
|
81169
|
+
&:nth-child(10) {
|
|
81170
|
+
padding-right: 0;
|
|
81171
|
+
}
|
|
81172
|
+
`;
|
|
81173
|
+
const CellItem = dt.div`
|
|
81174
|
+
display: flex;
|
|
81175
|
+
align-items: center;
|
|
81176
|
+
`;
|
|
81177
|
+
const DataBoxTitle = dt.span`
|
|
81178
|
+
font-size: 18px;
|
|
81179
|
+
display: block;
|
|
81180
|
+
margin: 0 0 12px;
|
|
81181
|
+
`;
|
|
81182
|
+
const BigValue = dt.span`
|
|
81183
|
+
font-size: 40px;
|
|
81184
|
+
font-weight: 500;
|
|
81185
|
+
margin-right: 5px;
|
|
81186
|
+
`;
|
|
81187
|
+
const CellItemValueSign = dt.span`
|
|
81188
|
+
font-size: 16px;
|
|
81189
|
+
font-weight: 400;
|
|
81190
|
+
`;
|
|
81191
|
+
const ValueChange = dt.span`
|
|
81192
|
+
font-size: 16px;
|
|
81193
|
+
font-weight: 400;
|
|
81194
|
+
`;
|
|
81195
|
+
const CellItemNoValue = dt.span`
|
|
81196
|
+
font-size: 40px;
|
|
81197
|
+
font-weight: 500;
|
|
81198
|
+
`;
|
|
81199
|
+
const PercentageChange = dt.div`
|
|
81200
|
+
display: flex;
|
|
81201
|
+
align-items: center;
|
|
81202
|
+
font-size: 16px;
|
|
81203
|
+
color: ${props => props.color};
|
|
81204
|
+
`;
|
|
81205
|
+
|
|
81206
|
+
const ArrowUpIcon = _ref => {
|
|
81207
|
+
let {
|
|
81208
|
+
clicked,
|
|
81209
|
+
width = '8',
|
|
81210
|
+
height = '9'
|
|
81211
|
+
} = _ref;
|
|
81212
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
81213
|
+
width: width,
|
|
81214
|
+
height: height,
|
|
81215
|
+
viewBox: "0 0 8 9",
|
|
81216
|
+
fill: "none",
|
|
81217
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
81218
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
81219
|
+
d: "M4.47065 0.188348C4.21033 -0.0627825 3.78758 -0.0627825 3.52727 0.188348L0.195236 3.40281C-0.0650787 3.65394 -0.0650787 4.06178 0.195236 4.31291C0.455551 4.56404 0.878303 4.56404 1.13862 4.31291L3.33359 2.19337V8.35711C3.33359 8.71271 3.63139 9 4 9C4.36861 9 4.66641 8.71271 4.66641 8.35711V2.19337L6.86138 4.3109C7.1217 4.56203 7.54445 4.56203 7.80476 4.3109C8.06508 4.05977 8.06508 3.65193 7.80476 3.4008L4.47273 0.186338L4.47065 0.188348Z",
|
|
81220
|
+
fill: "#5FCC70"
|
|
81221
|
+
}));
|
|
81222
|
+
};
|
|
81223
|
+
|
|
81224
|
+
const ArrowDownIcon = _ref => {
|
|
81225
|
+
let {
|
|
81226
|
+
clicked,
|
|
81227
|
+
width = '8',
|
|
81228
|
+
height = '9'
|
|
81229
|
+
} = _ref;
|
|
81230
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
81231
|
+
width: width,
|
|
81232
|
+
height: height,
|
|
81233
|
+
viewBox: "0 0 8 9",
|
|
81234
|
+
fill: "none",
|
|
81235
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
81236
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
81237
|
+
d: "M3.52935 8.81165C3.78967 9.06278 4.21242 9.06278 4.47273 8.81165L7.80476 5.59719C8.06508 5.34606 8.06508 4.93822 7.80476 4.68709C7.54445 4.43596 7.1217 4.43596 6.86138 4.68709L4.66641 6.80663L4.66641 0.642893C4.66641 0.287292 4.36861 -4.08657e-07 4 -4.40881e-07C3.63139 -4.73106e-07 3.33359 0.287292 3.33359 0.642893L3.33359 6.80663L1.13862 4.6891C0.878303 4.43797 0.455551 4.43797 0.195236 4.6891C-0.0650787 4.94023 -0.0650787 5.34807 0.195236 5.5992L3.52727 8.81366L3.52935 8.81165Z",
|
|
81238
|
+
fill: "#F00021"
|
|
81239
|
+
}));
|
|
81240
|
+
};
|
|
81241
|
+
|
|
81242
|
+
/* eslint-disable no-restricted-globals */
|
|
81243
|
+
const DoublePanelDataRow = props => {
|
|
81244
|
+
const {
|
|
81245
|
+
width,
|
|
81246
|
+
height,
|
|
81247
|
+
data,
|
|
81248
|
+
backgroundColor,
|
|
81249
|
+
className,
|
|
81250
|
+
customDataFormat,
|
|
81251
|
+
showPercentChange
|
|
81252
|
+
} = props;
|
|
81253
|
+
const getArrowSign = arrowSign => {
|
|
81254
|
+
if (!arrowSign) {
|
|
81255
|
+
return '-';
|
|
81256
|
+
}
|
|
81257
|
+
if (arrowSign === 'up') {
|
|
81258
|
+
return /*#__PURE__*/React__default.createElement(PercentageChange, {
|
|
81259
|
+
color: "#5FCC70",
|
|
81260
|
+
value: 34 // TODO: when ready, replace with actual value
|
|
81261
|
+
}, /*#__PURE__*/React__default.createElement(ArrowUpIcon, {
|
|
81262
|
+
width: 12,
|
|
81263
|
+
height: 12
|
|
81264
|
+
}), ' ', "(+34K)");
|
|
81265
|
+
}
|
|
81266
|
+
return /*#__PURE__*/React__default.createElement(PercentageChange, {
|
|
81267
|
+
color: "#D23630",
|
|
81268
|
+
value: 66 // TODO: when ready, replace with actual value
|
|
81269
|
+
}, /*#__PURE__*/React__default.createElement(ArrowDownIcon, {
|
|
81270
|
+
width: 12,
|
|
81271
|
+
height: 12
|
|
81272
|
+
}), ' ', "(-12K)");
|
|
81273
|
+
};
|
|
81274
|
+
return /*#__PURE__*/React__default.createElement(LinnerContainer, {
|
|
81275
|
+
className: className,
|
|
81276
|
+
backgroundColor: backgroundColor,
|
|
81277
|
+
width: width,
|
|
81278
|
+
height: height,
|
|
81279
|
+
customDataFormat: customDataFormat
|
|
81280
|
+
}, data.map(item => /*#__PURE__*/React__default.createElement(DataBox, {
|
|
81281
|
+
className: "data-box-item"
|
|
81282
|
+
}, item.title && /*#__PURE__*/React__default.createElement(DataBoxTitle, {
|
|
81283
|
+
className: "DataBoxTitle"
|
|
81284
|
+
}, item.title), /*#__PURE__*/React__default.createElement(CellItem, null, item.value !== null && item.value !== undefined && !isNaN(item.value) && item.value !== 'null' && item.value !== 'undefined' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, item.sign && /*#__PURE__*/React__default.createElement(CellItemValueSign, null, item.sign), customDataFormat ? /*#__PURE__*/React__default.createElement(BigValue, {
|
|
81285
|
+
className: "DataBoxValue"
|
|
81286
|
+
}, ''.concat(formattedValue(item.value), getFormattedUnits(item.value)), item.isPercent && /*#__PURE__*/React__default.createElement(CellItemValueSign, null, "%")) : /*#__PURE__*/React__default.createElement(BigValue, null, ''.concat(getFormattedValue(item.value), getFormattedUnits(item.value)), item.isPercent && /*#__PURE__*/React__default.createElement(CellItemValueSign, null, "%")), showPercentChange && getArrowSign(item.value >= 0 ? 'up' : 'down')) : /*#__PURE__*/React__default.createElement(CellItemNoValue, null, "N/A")), /*#__PURE__*/React__default.createElement(ValueChange, null))));
|
|
81287
|
+
};
|
|
81288
|
+
DoublePanelDataRow.propTypes = {
|
|
81289
|
+
className: PropTypes.string,
|
|
81290
|
+
width: PropTypes.string,
|
|
81291
|
+
height: PropTypes.string,
|
|
81292
|
+
data: PropTypes.arrayOf(PropTypes.shape({
|
|
81293
|
+
title: PropTypes.string,
|
|
81294
|
+
value: PropTypes.number,
|
|
81295
|
+
sign: PropTypes.string
|
|
81296
|
+
})),
|
|
81297
|
+
backgroundColor: PropTypes.string,
|
|
81298
|
+
customDataFormat: PropTypes.bool,
|
|
81299
|
+
showPercentChange: PropTypes.bool
|
|
81300
|
+
};
|
|
81301
|
+
DoublePanelDataRow.defaultProps = {
|
|
81302
|
+
className: '',
|
|
81303
|
+
width: '100%',
|
|
81304
|
+
height: 'auto',
|
|
81305
|
+
data: [],
|
|
81306
|
+
backgroundColor: '#FFFFFF',
|
|
81307
|
+
customDataFormat: false,
|
|
81308
|
+
showPercentChange: false
|
|
81309
|
+
};
|
|
81310
|
+
|
|
81311
|
+
const ControlsContainer = dt.div`
|
|
81312
|
+
position: relative;
|
|
81313
|
+
font-family: "Poppins", sans-serif;
|
|
81314
|
+
color: #212121;
|
|
81315
|
+
width: ${props => props.width};
|
|
81316
|
+
height: ${props => props.height};
|
|
81317
|
+
min-width: 250px;
|
|
81318
|
+
`;
|
|
81319
|
+
const Controls = dt.div`
|
|
81320
|
+
height: 100%;
|
|
81321
|
+
width: 100%;
|
|
81322
|
+
background: white;
|
|
81323
|
+
display: flex;
|
|
81324
|
+
flex-direction: column;
|
|
81325
|
+
`;
|
|
81326
|
+
const TooltipDiv = dt.div`
|
|
81327
|
+
border-radius: 5px;
|
|
81328
|
+
padding: 8px 12px;
|
|
81329
|
+
background: white;
|
|
81330
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
81331
|
+
margin: 0;
|
|
81332
|
+
`;
|
|
81333
|
+
const TooltipLabel = dt.div`
|
|
81334
|
+
color: #212121;
|
|
81335
|
+
font-size: 14px;
|
|
81336
|
+
font-weight: 400;
|
|
81337
|
+
width: fit-content;
|
|
81338
|
+
`;
|
|
81339
|
+
const TooltipTitle = dt.div`
|
|
81340
|
+
color: #212121;
|
|
81341
|
+
font-size: 14px;
|
|
81342
|
+
font-weight: 600;
|
|
81343
|
+
`;
|
|
81344
|
+
const Title = dt.h5`
|
|
81345
|
+
font-weight: 500;
|
|
81346
|
+
font-size: 18px;
|
|
81347
|
+
line-height: 20px;
|
|
81348
|
+
margin: 0 0 30px;
|
|
81349
|
+
@media (max-width: 1536px) {
|
|
81350
|
+
font-size: 16px;
|
|
81351
|
+
margin: 0 0 20px;
|
|
81352
|
+
}
|
|
81353
|
+
@media (max-width: 1366px) {
|
|
81354
|
+
font-size: 14px;
|
|
81355
|
+
}
|
|
81356
|
+
`;
|
|
81357
|
+
const LabelBoldText = dt.tspan`
|
|
81358
|
+
font-size: 0.7em;
|
|
81359
|
+
`;
|
|
81360
|
+
const LabelText = dt.tspan`
|
|
81361
|
+
font-size: 0.6em;
|
|
81362
|
+
`;
|
|
81363
|
+
|
|
81364
|
+
/* eslint-disable react/prop-types */
|
|
81365
|
+
const ICON_TYPE_SQUARE = 'Square';
|
|
81366
|
+
const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
|
|
81367
|
+
const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
|
|
81368
|
+
|
|
81369
|
+
/* BarCharts */
|
|
81370
|
+
const BarChart = props => {
|
|
81371
|
+
const {
|
|
81372
|
+
className,
|
|
81373
|
+
title,
|
|
81374
|
+
barChartData,
|
|
81375
|
+
barSize,
|
|
81376
|
+
barFontSizeValue,
|
|
81377
|
+
isDollar,
|
|
81378
|
+
width,
|
|
81379
|
+
height,
|
|
81380
|
+
barChartColor,
|
|
81381
|
+
currentBarColor,
|
|
81382
|
+
showLegend,
|
|
81383
|
+
legendData,
|
|
81384
|
+
showDollarSign,
|
|
81385
|
+
showReferenceLine,
|
|
81386
|
+
referenceLinePoint,
|
|
81387
|
+
referenceLineColor,
|
|
81388
|
+
referenceLineDashed,
|
|
81389
|
+
showCurrentCampaignStyle,
|
|
81390
|
+
isPercent
|
|
81391
|
+
} = props;
|
|
81392
|
+
const controlsContainerRef = useRef();
|
|
81393
|
+
const areAllDatesEmpty = () => {
|
|
81394
|
+
if (!barChartData || barChartData?.length === 0) return true;
|
|
81395
|
+
return barChartData?.every(item => !item.date);
|
|
81396
|
+
};
|
|
81397
|
+
const displayFormattedValue = function (value) {
|
|
81398
|
+
let showFullNumber = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
81399
|
+
if (value === undefined || value === null) return '';
|
|
81400
|
+
let formattedValue = '';
|
|
81401
|
+
if (isPercent) {
|
|
81402
|
+
formattedValue = ''.concat(value.toFixed(1), '%');
|
|
81403
|
+
} else if (isDollar) {
|
|
81404
|
+
formattedValue = ''.concat(showDollarSign ? '$' : '', !showFullNumber ? getFormattedValue(value) : getNumberWithCommas(Number.isInteger(value) ? value : value.toFixed(1)), !showFullNumber ? getFormattedUnits(value) : '');
|
|
81405
|
+
} else {
|
|
81406
|
+
formattedValue = ''.concat(!showFullNumber ? getFormattedValue(value) : getNumberWithCommas(Number.isInteger(value) ? value : value.toFixed(1)), !showFullNumber ? getFormattedUnits(value) : '');
|
|
81407
|
+
}
|
|
81408
|
+
return formattedValue;
|
|
81409
|
+
};
|
|
81410
|
+
|
|
81411
|
+
// eslint-disable-next-line react/no-unstable-nested-components
|
|
81412
|
+
const CustomTooltip = tooltipData => {
|
|
81413
|
+
const {
|
|
81414
|
+
active,
|
|
81415
|
+
payload,
|
|
81416
|
+
label
|
|
81417
|
+
} = tooltipData;
|
|
81418
|
+
if (!active || !payload || payload?.length === 0) return null;
|
|
81419
|
+
let currentTooltipValue = 0;
|
|
81420
|
+
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
81421
|
+
return /*#__PURE__*/React__default.createElement(TooltipDiv, null, /*#__PURE__*/React__default.createElement(TooltipTitle, null, `${label}`), /*#__PURE__*/React__default.createElement(TooltipLabel, null, `${displayFormattedValue(currentTooltipValue, !!showCurrentCampaignStyle)}`));
|
|
81422
|
+
};
|
|
81423
|
+
const CustomizedTickBarChart = props => {
|
|
81424
|
+
const {
|
|
81425
|
+
x,
|
|
81426
|
+
y,
|
|
81427
|
+
payload
|
|
81428
|
+
} = props;
|
|
81429
|
+
if (barChartData && barChartData.length > 0 && payload) {
|
|
81430
|
+
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
81431
|
+
if (retailerData && retailerData.length > 0) {
|
|
81432
|
+
return /*#__PURE__*/React__default.createElement("g", {
|
|
81433
|
+
transform: `translate(${x},${y})`
|
|
81434
|
+
}, showCurrentCampaignStyle && retailerData[0].isCurrent && /*#__PURE__*/React__default.createElement("rect", {
|
|
81435
|
+
x: -56 // Adjust this to position the background properly
|
|
81436
|
+
,
|
|
81437
|
+
y: 5 // Adjust this for vertical alignment with your text
|
|
81438
|
+
,
|
|
81439
|
+
width: 112 // Adjust width based on the text length
|
|
81440
|
+
,
|
|
81441
|
+
height: 22 // Adjust height based on font size
|
|
81442
|
+
,
|
|
81443
|
+
fill: currentBarColor || '#90CE9C',
|
|
81444
|
+
rx: 12
|
|
81445
|
+
}), /*#__PURE__*/React__default.createElement("text", {
|
|
81446
|
+
x: 0,
|
|
81447
|
+
y: 0,
|
|
81448
|
+
dy: 16,
|
|
81449
|
+
fill: "#212121"
|
|
81450
|
+
}, /*#__PURE__*/React__default.createElement(LabelBoldText, {
|
|
81451
|
+
textAnchor: "middle",
|
|
81452
|
+
x: 0,
|
|
81453
|
+
dy: showCurrentCampaignStyle ? 20 : 50,
|
|
81454
|
+
fontSize: showCurrentCampaignStyle ? 12 : 16,
|
|
81455
|
+
fontWeight: showCurrentCampaignStyle ? 500 : 600,
|
|
81456
|
+
fill: showCurrentCampaignStyle && !retailerData[0].isCurrent ? '#8B8989' : '#212121'
|
|
81457
|
+
}, (() => {
|
|
81458
|
+
if (showCurrentCampaignStyle) {
|
|
81459
|
+
if (retailerData[0].isCurrent) {
|
|
81460
|
+
if (payload?.value?.length > 6) {
|
|
81461
|
+
return `${payload.value.slice(0, 6)}...-Current`;
|
|
81462
|
+
}
|
|
81463
|
+
return `${payload.value}-Current`;
|
|
81464
|
+
}
|
|
81465
|
+
if (payload?.value?.length > 10) {
|
|
81466
|
+
return `${payload.value.slice(0, 10)}...`;
|
|
81467
|
+
}
|
|
81468
|
+
return `${payload.value}`;
|
|
81469
|
+
}
|
|
81470
|
+
return payload?.value;
|
|
81471
|
+
})()), /*#__PURE__*/React__default.createElement(LabelText, {
|
|
81472
|
+
textAnchor: "middle",
|
|
81473
|
+
x: "0",
|
|
81474
|
+
dy: "30",
|
|
81475
|
+
fontSize: 14,
|
|
81476
|
+
fontWeight: 400
|
|
81477
|
+
}, retailerData[0].date)));
|
|
81478
|
+
}
|
|
81479
|
+
return null;
|
|
81480
|
+
}
|
|
81481
|
+
return null;
|
|
81482
|
+
};
|
|
81483
|
+
const CustomizedLabel = props => {
|
|
81484
|
+
const {
|
|
81485
|
+
x,
|
|
81486
|
+
y,
|
|
81487
|
+
stroke,
|
|
81488
|
+
value
|
|
81489
|
+
} = props;
|
|
81490
|
+
return /*#__PURE__*/React__default.createElement("text", {
|
|
81491
|
+
x: x + 30,
|
|
81492
|
+
y: y,
|
|
81493
|
+
dy: -8,
|
|
81494
|
+
fill: showCurrentCampaignStyle ? '#8B8989' : stroke,
|
|
81495
|
+
fontSize: barFontSizeValue,
|
|
81496
|
+
textAnchor: "middle"
|
|
81497
|
+
}, displayFormattedValue(value));
|
|
81498
|
+
};
|
|
81499
|
+
return /*#__PURE__*/React__default.createElement(ControlsContainer, {
|
|
81500
|
+
className: className,
|
|
81501
|
+
height: height,
|
|
81502
|
+
width: width,
|
|
81503
|
+
ref: controlsContainerRef
|
|
81504
|
+
}, /*#__PURE__*/React__default.createElement(Controls, null, /*#__PURE__*/React__default.createElement(Title, null, title), /*#__PURE__*/React__default.createElement(ResponsiveContainer, {
|
|
81505
|
+
width: "100%",
|
|
81506
|
+
height: 400
|
|
81507
|
+
}, /*#__PURE__*/React__default.createElement(BarChart$1, {
|
|
81508
|
+
width: width,
|
|
81509
|
+
height: height,
|
|
81510
|
+
data: barChartData,
|
|
81511
|
+
margin: {
|
|
81512
|
+
top: 20,
|
|
81513
|
+
right: 0,
|
|
81514
|
+
bottom: 0,
|
|
81515
|
+
left: -5
|
|
81516
|
+
}
|
|
81517
|
+
}, showCurrentCampaignStyle && /*#__PURE__*/React__default.createElement(CartesianGrid, {
|
|
81518
|
+
strokeDasharray: "3 3",
|
|
81519
|
+
vertical: false
|
|
81520
|
+
}), showCurrentCampaignStyle && /*#__PURE__*/React__default.createElement(YAxis, {
|
|
81521
|
+
tickCount: 10,
|
|
81522
|
+
interval: "preserveEnd",
|
|
81523
|
+
domain: [0, 'auto'],
|
|
81524
|
+
tick: {
|
|
81525
|
+
fill: '#8B8989'
|
|
81526
|
+
},
|
|
81527
|
+
axisLine: false,
|
|
81528
|
+
fontWeight: 400,
|
|
81529
|
+
fontSize: "12px",
|
|
81530
|
+
tickLine: false,
|
|
81531
|
+
tickFormatter: value => `${displayFormattedValue(value)}`
|
|
81532
|
+
}), showReferenceLine && /*#__PURE__*/React__default.createElement(ReferenceLine, {
|
|
81533
|
+
y: referenceLinePoint,
|
|
81534
|
+
stroke: referenceLineColor,
|
|
81535
|
+
strokeDasharray: referenceLineDashed
|
|
81536
|
+
}), /*#__PURE__*/React__default.createElement(XAxis, {
|
|
81537
|
+
dataKey: "title",
|
|
81538
|
+
tick: CustomizedTickBarChart,
|
|
81539
|
+
tickLine: false,
|
|
81540
|
+
height: areAllDatesEmpty() ? 50 : 120,
|
|
81541
|
+
stroke: "#D0D0D0",
|
|
81542
|
+
domain: [0, 'auto'],
|
|
81543
|
+
interval: 0
|
|
81544
|
+
}), /*#__PURE__*/React__default.createElement(Brush, {
|
|
81545
|
+
dataKey: "name",
|
|
81546
|
+
height: 30,
|
|
81547
|
+
stroke: "#8884d8"
|
|
81548
|
+
}), /*#__PURE__*/React__default.createElement(Tooltip$2, {
|
|
81549
|
+
content: /*#__PURE__*/React__default.createElement(CustomTooltip, null)
|
|
81550
|
+
}), /*#__PURE__*/React__default.createElement(Tooltip$2, null), /*#__PURE__*/React__default.createElement(Bar, {
|
|
81551
|
+
dataKey: "value",
|
|
81552
|
+
fill: barChartColor,
|
|
81553
|
+
minPointSize: 5,
|
|
81554
|
+
barSize: barSize ?? 60,
|
|
81555
|
+
radius: [5, 5, 0, 0]
|
|
81556
|
+
}, /*#__PURE__*/React__default.createElement(LabelList, {
|
|
81557
|
+
dataKey: "value",
|
|
81558
|
+
content: CustomizedLabel
|
|
81559
|
+
})))), showLegend && /*#__PURE__*/React__default.createElement(PerformanceAnalyticsLegend, {
|
|
81560
|
+
legendData: legendData
|
|
81561
|
+
})));
|
|
81562
|
+
};
|
|
81563
|
+
BarChart.propTypes = {
|
|
81564
|
+
title: PropTypes.string,
|
|
81565
|
+
barChartData: PropTypes.arrayOf(PropTypes.shape({
|
|
81566
|
+
title: PropTypes.string,
|
|
81567
|
+
date: PropTypes.string,
|
|
81568
|
+
value: PropTypes.number
|
|
81569
|
+
})),
|
|
81570
|
+
width: PropTypes.string,
|
|
81571
|
+
height: PropTypes.string,
|
|
81572
|
+
barSize: PropTypes.number,
|
|
81573
|
+
barFontSizeValue: PropTypes.string,
|
|
81574
|
+
barChartColor: PropTypes.string,
|
|
81575
|
+
showDollarSign: PropTypes.bool,
|
|
81576
|
+
isDollar: PropTypes.bool,
|
|
81577
|
+
showLegend: PropTypes.bool,
|
|
81578
|
+
legendData: PropTypes.arrayOf(PropTypes.shape({
|
|
81579
|
+
title: PropTypes.string.isRequired,
|
|
81580
|
+
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
|
|
81581
|
+
iconColor: PropTypes.string.isRequired
|
|
81582
|
+
})),
|
|
81583
|
+
showReferenceLine: PropTypes.bool,
|
|
81584
|
+
referenceLinePoint: PropTypes.number,
|
|
81585
|
+
referenceLineColor: PropTypes.string,
|
|
81586
|
+
referenceLineDashed: PropTypes.string,
|
|
81587
|
+
showCurrentCampaignStyle: PropTypes.bool,
|
|
81588
|
+
currentBarColor: PropTypes.string,
|
|
81589
|
+
isPercent: PropTypes.bool
|
|
81590
|
+
};
|
|
81591
|
+
BarChart.defaultProps = {
|
|
81592
|
+
title: 'String',
|
|
81593
|
+
barChartData: [{
|
|
81594
|
+
title: 'Food Lion',
|
|
81595
|
+
date: '15.01.24-31.01.24',
|
|
81596
|
+
value: 542366
|
|
81597
|
+
}, {
|
|
81598
|
+
title: 'Hannaford',
|
|
81599
|
+
date: '15.01.24-31.01.24',
|
|
81600
|
+
value: 699511
|
|
81601
|
+
}, {
|
|
81602
|
+
title: 'The Giant Company',
|
|
81603
|
+
date: '15.01.24-31.01.24',
|
|
81604
|
+
value: 403092
|
|
81605
|
+
}, {
|
|
81606
|
+
title: 'Giant Food',
|
|
81607
|
+
date: '15.01.24-31.01.24',
|
|
81608
|
+
value: 396184
|
|
81609
|
+
}, {
|
|
81610
|
+
title: 'Stop&Shop',
|
|
81611
|
+
date: '15.01.24-31.01.24',
|
|
81612
|
+
value: 415317
|
|
81613
|
+
}],
|
|
81614
|
+
width: '100%',
|
|
81615
|
+
height: '100%',
|
|
81616
|
+
barSize: 60,
|
|
81617
|
+
barFontSizeValue: '0.6em',
|
|
81618
|
+
barChartColor: '#BD9EFF',
|
|
81619
|
+
showDollarSign: true,
|
|
81620
|
+
isDollar: true,
|
|
81621
|
+
showLegend: true,
|
|
81622
|
+
legendData: [{
|
|
81623
|
+
title: 'Incremental Sales',
|
|
81624
|
+
iconType: ICON_TYPE_SQUARE,
|
|
81625
|
+
iconColor: '#BD9EFF'
|
|
81626
|
+
}],
|
|
81627
|
+
showReferenceLine: false,
|
|
81628
|
+
referenceLinePoint: 0,
|
|
81629
|
+
referenceLineColor: '#212121',
|
|
81630
|
+
referenceLineDashed: '5',
|
|
81631
|
+
showCurrentCampaignStyle: false,
|
|
81632
|
+
currentBarColor: '#90CE9C',
|
|
81633
|
+
isPercent: false
|
|
81634
|
+
};
|
|
81635
|
+
|
|
81636
|
+
export { BannerEventBoxList, BarChart, BarChartsByWeeks, Button, CollapseHeader, DialogOverlay, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
|
|
80952
81637
|
//# sourceMappingURL=index.esm.js.map
|