sag_components 1.0.419 → 1.0.421
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.
|
@@ -98,14 +98,30 @@ const TotalBenchmarkAreachart = props => {
|
|
|
98
98
|
const endWeekRangeNumeric = Number(endWeekRange);
|
|
99
99
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
100
100
|
transform: "translate(".concat(x, ",").concat(y, ")")
|
|
101
|
-
}, currentWeekNumeric
|
|
101
|
+
}, currentWeekNumeric === startWeekRangeNumeric ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
102
102
|
x: -15,
|
|
103
103
|
y: 0,
|
|
104
|
-
width: "
|
|
104
|
+
width: "70",
|
|
105
105
|
height: "18",
|
|
106
106
|
rx: 9,
|
|
107
|
-
fill: xselectedColor
|
|
108
|
-
fillOpacity
|
|
107
|
+
fill: xselectedColor
|
|
108
|
+
//fillOpacity="0.30"
|
|
109
|
+
}) : currentWeekNumeric > startWeekRangeNumeric && currentWeekNumeric < endWeekRangeNumeric ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
110
|
+
x: -30,
|
|
111
|
+
y: 0,
|
|
112
|
+
width: "80",
|
|
113
|
+
height: "18",
|
|
114
|
+
rx: 9,
|
|
115
|
+
fill: xselectedColor
|
|
116
|
+
//fillOpacity="0.30"
|
|
117
|
+
}) : currentWeekNumeric === endWeekRangeNumeric ? /*#__PURE__*/_react.default.createElement("rect", {
|
|
118
|
+
x: -30,
|
|
119
|
+
y: 0,
|
|
120
|
+
width: "55",
|
|
121
|
+
height: "18",
|
|
122
|
+
rx: 9,
|
|
123
|
+
fill: xselectedColor
|
|
124
|
+
// fillOpacity="0.30"
|
|
109
125
|
}) : "", /*#__PURE__*/_react.default.createElement("text", {
|
|
110
126
|
x: 0,
|
|
111
127
|
y: 14,
|
|
@@ -128,15 +144,13 @@ const TotalBenchmarkAreachart = props => {
|
|
|
128
144
|
};
|
|
129
145
|
const getEventWeeksLegendData = () => /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksLegendDataContainer, {
|
|
130
146
|
id: "EventWeeksLegendDataContainer"
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksTitleAndIconContainer, {
|
|
132
|
-
id: "EventWeeksTitleAndIconContainer"
|
|
133
147
|
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksLegendColorRectangle, {
|
|
134
148
|
id: "EventWeeksLegendColorRectangle",
|
|
135
149
|
color: xselectedColor
|
|
136
150
|
}), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.EventWeeksLegendTitle, {
|
|
137
151
|
id: "EventWeeksLegendTitle",
|
|
138
152
|
width: width
|
|
139
|
-
}, "Event weeks"))
|
|
153
|
+
}, "Event weeks"));
|
|
140
154
|
return /*#__PURE__*/_react.default.createElement(_TotalBenchmarkAreachart.ControlsContainer, {
|
|
141
155
|
id: "ControlsContainer",
|
|
142
156
|
height: height,
|
|
@@ -4,13 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.
|
|
7
|
+
exports.ValueAndBenchmarkContainer = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.FormattedValueNoDataMessage = exports.FormattedValue = exports.EventWeeksLegendTitle = exports.EventWeeksLegendDataContainer = exports.EventWeeksLegendColorRectangle = exports.DetailsRowArrowContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainer = exports.AreaChartContainer = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
|
|
11
11
|
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n"])), props => props.textColor, props => props.width, props => props.height);
|
|
12
|
-
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between
|
|
13
|
-
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 50%;\n"])));
|
|
12
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n /* justify-content: space-between; */\n background: #ffffff;\n border-radius: 12px;\n flex-basis: 100%;\n"])));
|
|
13
|
+
const AreaChartContainer = exports.AreaChartContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: auto;\n width: 100%;\n height: 50%;\n"])));
|
|
14
14
|
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 5px;\n background: #ffffff;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
15
15
|
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n"])));
|
|
16
16
|
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 14px;\n font-weight: 600;\n line-height: normal;\n"])));
|
|
@@ -22,7 +22,6 @@ const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_t
|
|
|
22
22
|
const CurrencySign = exports.CurrencySign = _styledComponents.default.span(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n"])));
|
|
23
23
|
const FormattedValueNoDataMessage = exports.FormattedValueNoDataMessage = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.3rem;\n font-weight: 700;\n font-size: 16px;\n margin: 0;\n"])));
|
|
24
24
|
const BenchmarkContainer = exports.BenchmarkContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 1.5rem;\n"])));
|
|
25
|
-
const EventWeeksLegendDataContainer = exports.EventWeeksLegendDataContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.5rem;\n min-width: 0.5rem;\n height: 0.5rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
25
|
+
const EventWeeksLegendDataContainer = exports.EventWeeksLegendDataContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n margin-top: 10px;\n align-items: center;\n"])));
|
|
26
|
+
const EventWeeksLegendTitle = exports.EventWeeksLegendTitle = _styledComponents.default.h4(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n margin: 0 0 0 5px;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
27
|
+
const EventWeeksLegendColorRectangle = exports.EventWeeksLegendColorRectangle = _styledComponents.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.5rem;\n min-width: 0.5rem;\n height: 0.5rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|