sag_components 2.0.0-beta15 → 2.0.0-beta16
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 +1 -77
- package/dist/index.esm.js +84 -89
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +84 -89
- package/dist/index.js.map +1 -1
- package/dist/types/components/BarChart/BarChart.d.ts +0 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27698,9 +27698,9 @@ const LegendColorRectangle$1 = dt.div`
|
|
|
27698
27698
|
`;
|
|
27699
27699
|
|
|
27700
27700
|
/* eslint-disable no-nested-ternary */
|
|
27701
|
-
const ICON_TYPE_SQUARE$
|
|
27702
|
-
const ICON_TYPE_LEGEND_UNION_ICON$
|
|
27703
|
-
const ICON_TYPE_LEGEND_LINE_ICON$
|
|
27701
|
+
const ICON_TYPE_SQUARE$1 = 'Square';
|
|
27702
|
+
const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
|
|
27703
|
+
const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
|
|
27704
27704
|
const PerformanceAnalyticsLegend = props => {
|
|
27705
27705
|
const {
|
|
27706
27706
|
className,
|
|
@@ -27719,13 +27719,13 @@ const PerformanceAnalyticsLegend = props => {
|
|
|
27719
27719
|
id: "LegendDataContainer"
|
|
27720
27720
|
}, legendData?.map((item, i) => /*#__PURE__*/React__default["default"].createElement(TitleAndIconContainer, {
|
|
27721
27721
|
key: `${item.title + i}`
|
|
27722
|
-
}, item.iconType === ICON_TYPE_SQUARE$
|
|
27722
|
+
}, item.iconType === ICON_TYPE_SQUARE$1 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
|
|
27723
27723
|
color: item.iconColor
|
|
27724
|
-
}) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$
|
|
27724
|
+
}) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
|
|
27725
27725
|
width: 30,
|
|
27726
27726
|
height: 30,
|
|
27727
27727
|
color: item.iconColor
|
|
27728
|
-
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$
|
|
27728
|
+
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
|
|
27729
27729
|
color: item.iconColor
|
|
27730
27730
|
}) : '', /*#__PURE__*/React__default["default"].createElement(Title$7, {
|
|
27731
27731
|
id: "Title",
|
|
@@ -27738,7 +27738,7 @@ PerformanceAnalyticsLegend.propTypes = {
|
|
|
27738
27738
|
height: PropTypes.string,
|
|
27739
27739
|
legendData: PropTypes.arrayOf(PropTypes.shape({
|
|
27740
27740
|
title: PropTypes.string.isRequired,
|
|
27741
|
-
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$
|
|
27741
|
+
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
|
|
27742
27742
|
iconColor: PropTypes.string.isRequired
|
|
27743
27743
|
}))
|
|
27744
27744
|
};
|
|
@@ -27748,15 +27748,15 @@ PerformanceAnalyticsLegend.defaultProps = {
|
|
|
27748
27748
|
height: '',
|
|
27749
27749
|
legendData: [{
|
|
27750
27750
|
title: '',
|
|
27751
|
-
iconType: ICON_TYPE_SQUARE$
|
|
27751
|
+
iconType: ICON_TYPE_SQUARE$1,
|
|
27752
27752
|
iconColor: '#1F7677'
|
|
27753
27753
|
}]
|
|
27754
27754
|
};
|
|
27755
27755
|
|
|
27756
27756
|
/* eslint-disable no-nested-ternary */
|
|
27757
|
-
const ICON_TYPE_SQUARE
|
|
27758
|
-
const ICON_TYPE_LEGEND_UNION_ICON
|
|
27759
|
-
const ICON_TYPE_LEGEND_LINE_ICON
|
|
27757
|
+
const ICON_TYPE_SQUARE = 'Square';
|
|
27758
|
+
const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
|
|
27759
|
+
const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
|
|
27760
27760
|
const BarChartsByWeeks = props => {
|
|
27761
27761
|
const {
|
|
27762
27762
|
className,
|
|
@@ -27997,7 +27997,7 @@ BarChartsByWeeks.propTypes = {
|
|
|
27997
27997
|
showLegend: PropTypes.bool,
|
|
27998
27998
|
legendData: PropTypes.arrayOf(PropTypes.shape({
|
|
27999
27999
|
title: PropTypes.string.isRequired,
|
|
28000
|
-
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE
|
|
28000
|
+
iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
|
|
28001
28001
|
iconColor: PropTypes.string.isRequired
|
|
28002
28002
|
})),
|
|
28003
28003
|
showTwoBars: PropTypes.bool,
|
|
@@ -28061,11 +28061,11 @@ BarChartsByWeeks.defaultProps = {
|
|
|
28061
28061
|
isTitleOriganal: false,
|
|
28062
28062
|
legendData: [{
|
|
28063
28063
|
title: 'Sales',
|
|
28064
|
-
iconType: ICON_TYPE_SQUARE
|
|
28064
|
+
iconType: ICON_TYPE_SQUARE,
|
|
28065
28065
|
iconColor: '#90CE9C'
|
|
28066
28066
|
}, {
|
|
28067
28067
|
title: 'Category Average',
|
|
28068
|
-
iconType: ICON_TYPE_LEGEND_LINE_ICON
|
|
28068
|
+
iconType: ICON_TYPE_LEGEND_LINE_ICON,
|
|
28069
28069
|
iconColor: '#C906FD'
|
|
28070
28070
|
}],
|
|
28071
28071
|
showTwoBars: false,
|
|
@@ -30277,9 +30277,6 @@ const LabelText = dt.tspan`
|
|
|
30277
30277
|
`;
|
|
30278
30278
|
|
|
30279
30279
|
/* eslint-disable react/prop-types */
|
|
30280
|
-
const ICON_TYPE_SQUARE = 'Square';
|
|
30281
|
-
const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
|
|
30282
|
-
const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
|
|
30283
30280
|
|
|
30284
30281
|
/* BarCharts */
|
|
30285
30282
|
const BarChart = props => {
|
|
@@ -30475,78 +30472,76 @@ const BarChart = props => {
|
|
|
30475
30472
|
legendData: legendData
|
|
30476
30473
|
})));
|
|
30477
30474
|
};
|
|
30478
|
-
|
|
30479
|
-
|
|
30480
|
-
|
|
30481
|
-
|
|
30482
|
-
|
|
30483
|
-
|
|
30484
|
-
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
|
|
30488
|
-
|
|
30489
|
-
|
|
30490
|
-
|
|
30491
|
-
|
|
30492
|
-
|
|
30493
|
-
|
|
30494
|
-
|
|
30495
|
-
|
|
30496
|
-
|
|
30497
|
-
|
|
30498
|
-
|
|
30499
|
-
|
|
30500
|
-
|
|
30501
|
-
|
|
30502
|
-
|
|
30503
|
-
|
|
30504
|
-
|
|
30505
|
-
}
|
|
30506
|
-
|
|
30507
|
-
|
|
30508
|
-
|
|
30509
|
-
|
|
30510
|
-
|
|
30511
|
-
|
|
30512
|
-
|
|
30513
|
-
|
|
30514
|
-
|
|
30515
|
-
|
|
30516
|
-
|
|
30517
|
-
|
|
30518
|
-
|
|
30519
|
-
|
|
30520
|
-
|
|
30521
|
-
|
|
30522
|
-
|
|
30523
|
-
|
|
30524
|
-
|
|
30525
|
-
|
|
30526
|
-
|
|
30527
|
-
|
|
30528
|
-
|
|
30529
|
-
|
|
30530
|
-
|
|
30531
|
-
|
|
30532
|
-
|
|
30533
|
-
|
|
30534
|
-
|
|
30535
|
-
|
|
30536
|
-
|
|
30537
|
-
|
|
30538
|
-
|
|
30539
|
-
|
|
30540
|
-
|
|
30541
|
-
|
|
30542
|
-
|
|
30543
|
-
|
|
30544
|
-
|
|
30545
|
-
|
|
30546
|
-
|
|
30547
|
-
|
|
30548
|
-
isPercent: false
|
|
30549
|
-
};
|
|
30475
|
+
|
|
30476
|
+
// BarChart.propTypes = {
|
|
30477
|
+
// title: PropTypes.string,
|
|
30478
|
+
// barChartData: PropTypes.arrayOf(
|
|
30479
|
+
// PropTypes.shape({
|
|
30480
|
+
// title: PropTypes.string,
|
|
30481
|
+
// date: PropTypes.string,
|
|
30482
|
+
// value: PropTypes.number,
|
|
30483
|
+
// }),
|
|
30484
|
+
// ),
|
|
30485
|
+
// width: PropTypes.string,
|
|
30486
|
+
// height: PropTypes.string,
|
|
30487
|
+
// barSize: PropTypes.number,
|
|
30488
|
+
// barFontSizeValue: PropTypes.string,
|
|
30489
|
+
// barChartColor: PropTypes.string,
|
|
30490
|
+
// showDollarSign: PropTypes.bool,
|
|
30491
|
+
// isDollar: PropTypes.bool,
|
|
30492
|
+
// showLegend: PropTypes.bool,
|
|
30493
|
+
// legendData: PropTypes.arrayOf(
|
|
30494
|
+
// PropTypes.shape({
|
|
30495
|
+
// title: PropTypes.string.isRequired,
|
|
30496
|
+
// iconType: PropTypes.oneOf([
|
|
30497
|
+
// ICON_TYPE_SQUARE,
|
|
30498
|
+
// ICON_TYPE_LEGEND_UNION_ICON,
|
|
30499
|
+
// ICON_TYPE_LEGEND_LINE_ICON,
|
|
30500
|
+
// ]).isRequired,
|
|
30501
|
+
// iconColor: PropTypes.string.isRequired,
|
|
30502
|
+
// }),
|
|
30503
|
+
// ),
|
|
30504
|
+
// showReferenceLine: PropTypes.bool,
|
|
30505
|
+
// referenceLinePoint: PropTypes.number,
|
|
30506
|
+
// referenceLineColor: PropTypes.string,
|
|
30507
|
+
// referenceLineDashed: PropTypes.string,
|
|
30508
|
+
// showCurrentCampaignStyle: PropTypes.bool,
|
|
30509
|
+
// currentBarColor: PropTypes.string,
|
|
30510
|
+
// isPercent: PropTypes.bool,
|
|
30511
|
+
// };
|
|
30512
|
+
|
|
30513
|
+
// BarChart.defaultProps = {
|
|
30514
|
+
// title: 'String',
|
|
30515
|
+
// barChartData: [
|
|
30516
|
+
// { title: 'Food Lion', date: '15.01.24-31.01.24', value: 542366 },
|
|
30517
|
+
// { title: 'Hannaford', date: '15.01.24-31.01.24', value: 699511 },
|
|
30518
|
+
// { title: 'The Giant Company', date: '15.01.24-31.01.24', value: 403092 },
|
|
30519
|
+
// { title: 'Giant Food', date: '15.01.24-31.01.24', value: 396184 },
|
|
30520
|
+
// { title: 'Stop&Shop', date: '15.01.24-31.01.24', value: 415317 },
|
|
30521
|
+
// ],
|
|
30522
|
+
// width: '100%',
|
|
30523
|
+
// height: '100%',
|
|
30524
|
+
// barSize: 60,
|
|
30525
|
+
// barFontSizeValue: '0.6em',
|
|
30526
|
+
// barChartColor: '#BD9EFF',
|
|
30527
|
+
// showDollarSign: true,
|
|
30528
|
+
// isDollar: true,
|
|
30529
|
+
// showLegend: true,
|
|
30530
|
+
// legendData: [
|
|
30531
|
+
// {
|
|
30532
|
+
// title: 'Incremental Sales',
|
|
30533
|
+
// iconType: ICON_TYPE_SQUARE,
|
|
30534
|
+
// iconColor: '#BD9EFF',
|
|
30535
|
+
// },
|
|
30536
|
+
// ],
|
|
30537
|
+
// showReferenceLine: false,
|
|
30538
|
+
// referenceLinePoint: 0,
|
|
30539
|
+
// referenceLineColor: '#212121',
|
|
30540
|
+
// referenceLineDashed: '5',
|
|
30541
|
+
// showCurrentCampaignStyle: false,
|
|
30542
|
+
// currentBarColor: '#90CE9C',
|
|
30543
|
+
// isPercent: false,
|
|
30544
|
+
// };
|
|
30550
30545
|
|
|
30551
30546
|
exports.BannerEventBoxList = BannerEventBoxList;
|
|
30552
30547
|
exports.BarChart = BarChart;
|