sag_components 1.0.202 → 1.0.204
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.
|
@@ -16,16 +16,14 @@ var _HannafordIcon = require("./icons/HannafordIcon");
|
|
|
16
16
|
var _StopAndShopIcon = require("./icons/StopAndShopIcon");
|
|
17
17
|
var _TheGiantCompanyIcon = require("./icons/TheGiantCompanyIcon");
|
|
18
18
|
var _TitleDescriptionStyle = require("./TitleDescription.style.js");
|
|
19
|
-
var _excluded = ["showRetailerIcon", "data", "
|
|
19
|
+
var _excluded = ["showRetailerIcon", "data", "viewCreativeOnClick", "width", "height", "textColor"];
|
|
20
20
|
/*TitleDescription*/
|
|
21
21
|
var TitleDescription = function TitleDescription(_ref) {
|
|
22
|
+
var _data$objectivesDescr;
|
|
22
23
|
var _ref$showRetailerIcon = _ref.showRetailerIcon,
|
|
23
24
|
showRetailerIcon = _ref$showRetailerIcon === void 0 ? true : _ref$showRetailerIcon,
|
|
24
25
|
data = _ref.data,
|
|
25
|
-
infoButtonOnClick = _ref.infoButtonOnClick,
|
|
26
|
-
objectivesShowMoreOnClick = _ref.objectivesShowMoreOnClick,
|
|
27
26
|
viewCreativeOnClick = _ref.viewCreativeOnClick,
|
|
28
|
-
downloadButtonOnClick = _ref.downloadButtonOnClick,
|
|
29
27
|
_ref$width = _ref.width,
|
|
30
28
|
width = _ref$width === void 0 ? "100%" : _ref$width,
|
|
31
29
|
_ref$height = _ref.height,
|
|
@@ -127,15 +125,7 @@ var TitleDescription = function TitleDescription(_ref) {
|
|
|
127
125
|
id: "ObjectivesDescription"
|
|
128
126
|
}, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.ObjectivesTitle, {
|
|
129
127
|
id: "ObjectivesTitle"
|
|
130
|
-
}, "Objectives:"
|
|
131
|
-
id: "ObjectivesShowMore",
|
|
132
|
-
onClick: function onClick(event) {
|
|
133
|
-
objectivesShowMoreOnClick({
|
|
134
|
-
eventName: "objectivesShowMoreOnClick",
|
|
135
|
-
event: event
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}, " ", " show more ..."))), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodsContainer, {
|
|
128
|
+
}, (data === null || data === void 0 ? void 0 : (_data$objectivesDescr = data.objectivesDescription) === null || _data$objectivesDescr === void 0 ? void 0 : _data$objectivesDescr.length) > 0 ? "Objectives: " : ""), data.objectivesDescription)), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodsContainer, {
|
|
139
129
|
id: "PeriodsContainer"
|
|
140
130
|
}, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.SubLineContainer, {
|
|
141
131
|
id: "SubLineContainer"
|
|
@@ -72,7 +72,7 @@ var TotalBenchmark = function TotalBenchmark(_ref) {
|
|
|
72
72
|
}, dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(item.value) : ""), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.BenchmarkContainer, {
|
|
73
73
|
id: "BenchmarkContainer",
|
|
74
74
|
width: width
|
|
75
|
-
}, item.totalValue
|
|
75
|
+
}, item.totalValue ? /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
76
76
|
id: "Benchmark",
|
|
77
77
|
totalValue: item.totalValue,
|
|
78
78
|
currentValue: item.value,
|
|
@@ -84,7 +84,7 @@ var TotalBenchmark = function TotalBenchmark(_ref) {
|
|
|
84
84
|
linearGradientUnderAvarageColor: "#FDB1B1",
|
|
85
85
|
underAvarageColor: "#FD5959",
|
|
86
86
|
backgroundColor: "#F2F2F2"
|
|
87
|
-
})))));
|
|
87
|
+
}) : ""))));
|
|
88
88
|
}) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
89
89
|
noDataText: noDataText
|
|
90
90
|
}));
|