sag_components 1.0.235 → 1.0.237
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.
|
@@ -69,7 +69,7 @@ var TotalBenchmark = function TotalBenchmark(_ref) {
|
|
|
69
69
|
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.FormattedValue, {
|
|
70
70
|
id: "FormattedValue",
|
|
71
71
|
width: width
|
|
72
|
-
}, item.value != undefined ? dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value) : "
|
|
72
|
+
}, item.value != undefined && item.value != null ? dotCut ? (0, _CommonFunctions.getFormattedValue)(item.value) : (0, _CommonFunctions.getNumberWithCommas)(item.value) : "", item.value != undefined && item.value != null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(item.value) : "", item.value === undefined || item.value === null ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.FormattedValueNoData, null, "No Data") : ""), /*#__PURE__*/_react.default.createElement(_TotalBenchmarkStyle.BenchmarkContainer, {
|
|
73
73
|
id: "BenchmarkContainer",
|
|
74
74
|
width: width
|
|
75
75
|
}, item.totalValue ? /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, {
|
|
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TitleAndValueContainer = exports.Title = exports.NoDataFoundContainer = exports.FormattedValue = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainerParent = exports.BenchmarkContainer = void 0;
|
|
7
|
+
exports.TitleAndValueContainer = exports.Title = exports.NoDataFoundContainer = exports.FormattedValueNoData = exports.FormattedValue = exports.ControlsContainer = exports.Controls = exports.BenchmarkContainerParent = exports.BenchmarkContainer = 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;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
11
11
|
var MIN_HEIGHT = 300;
|
|
12
12
|
var MIN_WIDTH = 260;
|
|
13
13
|
var ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-content: center;\n flex-direction: column;\n place-content: space-between;\n justify-content: space-between;\n align-items: flex-start;\n background: #ffffff;\n"])), function (props) {
|
|
@@ -28,9 +28,11 @@ var Title = _styledComponents.default.div(_templateObject4 || (_templateObject4
|
|
|
28
28
|
exports.Title = Title;
|
|
29
29
|
var FormattedValue = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-weight: 500;\n font-size: 2.22222rem;\n"])));
|
|
30
30
|
exports.FormattedValue = FormattedValue;
|
|
31
|
-
var
|
|
31
|
+
var FormattedValueNoData = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 700;\n font-size: 16px;\n"])));
|
|
32
|
+
exports.FormattedValueNoData = FormattedValueNoData;
|
|
33
|
+
var BenchmarkContainerParent = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: baseline;\n width: 100%;\n height: 100%;\n margin: 0;\n"])));
|
|
32
34
|
exports.BenchmarkContainerParent = BenchmarkContainerParent;
|
|
33
|
-
var BenchmarkContainer = _styledComponents.default.div(
|
|
35
|
+
var BenchmarkContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-top: 0;\n margin-left: 1rem;\n height: 0.9rem;\n //margin: 0;\n"])));
|
|
34
36
|
exports.BenchmarkContainer = BenchmarkContainer;
|
|
35
|
-
var NoDataFoundContainer = _styledComponents.default.div(
|
|
37
|
+
var NoDataFoundContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n"])));
|
|
36
38
|
exports.NoDataFoundContainer = NoDataFoundContainer;
|
|
@@ -124,9 +124,9 @@ var TotalDoughnutChart = function TotalDoughnutChart(_ref) {
|
|
|
124
124
|
id: "LegendFormatedValueContainer"
|
|
125
125
|
}, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChartStyle.LegendCurrencySign, {
|
|
126
126
|
id: "LegendCurrencySign"
|
|
127
|
-
}, row.value != undefined && currency ? (0, _CommonFunctions.getCurrencySign)(currencyType) : ""), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChartStyle.LegendFormattedValue, {
|
|
127
|
+
}, row.value != undefined && row.value != null && currency ? (0, _CommonFunctions.getCurrencySign)(currencyType) : ""), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChartStyle.LegendFormattedValue, {
|
|
128
128
|
id: "LegendFormattedValue"
|
|
129
|
-
}, row.value != undefined ? dotCut ? (0, _CommonFunctions.getFormattedValue)(row.value) : (0, _CommonFunctions.getNumberWithCommas)(row.value) : "No Data", row.value != undefined && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : ""))));
|
|
129
|
+
}, row.value != undefined && row.value != null ? dotCut ? (0, _CommonFunctions.getFormattedValue)(row.value) : (0, _CommonFunctions.getNumberWithCommas)(row.value) : "No Data", row.value != undefined && row.value != null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : ""))));
|
|
130
130
|
})))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
131
131
|
noDataText: noDataText
|
|
132
132
|
}));
|