sag_components 1.0.781 → 1.0.783

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.
@@ -51,14 +51,14 @@ const BannerEventBoxList = props => {
51
51
  width: width,
52
52
  height: height
53
53
  }, data.map(item => /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
54
- key: item.banner,
54
+ key: item === null || item === void 0 ? void 0 : item.banner,
55
55
  height: "100%",
56
56
  width: bannerWidth,
57
- banner: item.banner,
58
- description: item.description,
59
- dates: item.dates,
60
- data: item.data,
61
- onInfoClick: () => retailerFile(item.banner)
57
+ banner: item === null || item === void 0 ? void 0 : item.banner,
58
+ description: item === null || item === void 0 ? void 0 : item.description,
59
+ dates: item === null || item === void 0 ? void 0 : item.dates,
60
+ data: item === null || item === void 0 ? void 0 : item.data,
61
+ onInfoClick: () => retailerFile(item === null || item === void 0 ? void 0 : item.banner)
62
62
  })))));
63
63
  };
64
64
  BannerEventBoxList.defaultProps = {
@@ -88,15 +88,13 @@ const TotalDoughnutChart = props => {
88
88
  height: height,
89
89
  width: width,
90
90
  textcolor: textcolor
91
- }, legendData.length === 0 || !value ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
91
+ }, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
92
92
  noDataText: noDataText
93
93
  }) : /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Controls, {
94
94
  id: "Controls",
95
95
  height: height,
96
96
  width: width
97
- }, !hideTitleAndValue && /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TitleAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Title, {
98
- width: width
99
- }, title), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.CurrencySignAndFormattedValueContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.FormattedValue, {
97
+ }, !hideTitleAndValue && /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TitleAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Title, null, title), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.CurrencySignAndFormattedValueContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.FormattedValue, {
100
98
  width: width
101
99
  }, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.CurrencySign, null, currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, value) : ''), dotCut ? (0, _CommonFunctions.getFormattedValue)(value && Math.abs(value) > 0 && value % 1 !== 0 ? value === null || value === void 0 ? void 0 : value.toFixed(2) : value) : (0, _CommonFunctions.getNumberWithCommas)(value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : ''), addingBenchmark && /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, null))), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.DoughnutChartAndLegendContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.DoughnutChartContainer, {
102
100
  width: width,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.781",
3
+ "version": "1.0.783",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {