sag_components 1.0.417 → 1.0.418
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.
|
@@ -93,9 +93,12 @@ const TotalBenchmarkAreachart = props => {
|
|
|
93
93
|
if (!(0, _CommonFunctions.isNumericValue)(currentWeek) || !(0, _CommonFunctions.isNumericValue)(startWeekRange) || !(0, _CommonFunctions.isNumericValue)(endWeekRange)) {
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
+
const currentWeekNumeric = Number(currentWeek);
|
|
97
|
+
const startWeekRangeNumeric = Number(startWeekRange);
|
|
98
|
+
const endWeekRangeNumeric = Number(endWeekRange);
|
|
96
99
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
97
100
|
transform: "translate(".concat(x, ",").concat(y, ")")
|
|
98
|
-
},
|
|
101
|
+
}, currentWeekNumeric === startWeekRangeNumeric || currentWeekNumeric === startWeekRangeNumeric - 1 ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
99
102
|
x: -15,
|
|
100
103
|
y: 0,
|
|
101
104
|
width: "70",
|
|
@@ -103,7 +106,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
103
106
|
rx: 9,
|
|
104
107
|
fill: xselectedColor
|
|
105
108
|
//fillOpacity="0.30"
|
|
106
|
-
}) :
|
|
109
|
+
}) : currentWeekNumeric > startWeekRangeNumeric && currentWeekNumeric < endWeekRangeNumeric ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
107
110
|
x: -30,
|
|
108
111
|
y: 0,
|
|
109
112
|
width: "80",
|
|
@@ -111,7 +114,7 @@ const TotalBenchmarkAreachart = props => {
|
|
|
111
114
|
rx: 9,
|
|
112
115
|
fill: xselectedColor
|
|
113
116
|
//fillOpacity="0.30"
|
|
114
|
-
}) :
|
|
117
|
+
}) : currentWeekNumeric === endWeekRangeNumeric || currentWeekNumeric === endWeekRangeNumeric + 1 ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
115
118
|
x: -30,
|
|
116
119
|
y: 0,
|
|
117
120
|
width: "55",
|