sag_components 1.0.176 → 1.0.178
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,11 +98,6 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
98
98
|
}, /*#__PURE__*/_react.default.createElement(_DatePicker.DatePicker, {
|
|
99
99
|
value: valueState,
|
|
100
100
|
clearable: true,
|
|
101
|
-
renderInput: function renderInput(params) {
|
|
102
|
-
return /*#__PURE__*/_react.default.createElement(TextField, Object.assign({}, params, {
|
|
103
|
-
fullWidth: true
|
|
104
|
-
}));
|
|
105
|
-
},
|
|
106
101
|
onChange: function onChange(newValue) {
|
|
107
102
|
setvalueState(newValue);
|
|
108
103
|
console.log("newValue", newValue.format("YYYY-MM-DD").toString());
|
|
@@ -114,8 +109,13 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
114
109
|
label: text,
|
|
115
110
|
slots: {
|
|
116
111
|
openPickerIcon: _CalendarIcon.CalendarIcon
|
|
112
|
+
},
|
|
113
|
+
slotProps: {
|
|
114
|
+
textField: {
|
|
115
|
+
fullWidth: true
|
|
116
|
+
}
|
|
117
117
|
}
|
|
118
|
-
//
|
|
118
|
+
//renderInput={(params) => <TextField {...params} fullWidth />}
|
|
119
119
|
,
|
|
120
120
|
format: format
|
|
121
121
|
}))));
|
|
@@ -55,22 +55,23 @@ var TotalBenchmarkBarchart = function TotalBenchmarkBarchart(_ref) {
|
|
|
55
55
|
var controlsContainerRef = (0, _react.useRef)();
|
|
56
56
|
(0, _react.useEffect)(function () {
|
|
57
57
|
var tempFormattedBarChartData = [];
|
|
58
|
+
var currencySign = currency == true ? (0, _CommonFunctions.getCurrencySign)(currencyType).toString() : "";
|
|
58
59
|
if (barChartData && barChartData.length === 2) {
|
|
59
60
|
tempFormattedBarChartData.push({
|
|
60
61
|
title1: barChartData[0].title,
|
|
61
62
|
value1: barChartData[0].value,
|
|
62
|
-
formattedValue1:
|
|
63
|
+
formattedValue1: currencySign.concat("", (0, _CommonFunctions.getFormattedValue)(barChartData[0].value), "", (0, _CommonFunctions.getFormattedUnits)(barChartData[0].value)),
|
|
63
64
|
color1: barChartData[0].color ? barChartData[0].color : "#79DB95",
|
|
64
65
|
title2: barChartData[1].title,
|
|
65
66
|
value2: barChartData[1].value,
|
|
66
|
-
formattedValue2:
|
|
67
|
+
formattedValue2: currencySign.concat("", (0, _CommonFunctions.getFormattedValue)(barChartData[1].value), "", (0, _CommonFunctions.getFormattedUnits)(barChartData[1].value)),
|
|
67
68
|
color2: barChartData[1].color ? barChartData[1].color : "#D4C0FF"
|
|
68
69
|
});
|
|
69
70
|
console.log("barChartData changed", barChartData);
|
|
70
71
|
setFormattedBarChartData(tempFormattedBarChartData);
|
|
71
72
|
console.log("tempFormattedBarChartData changed", tempFormattedBarChartData);
|
|
72
73
|
}
|
|
73
|
-
}, [barChartData]);
|
|
74
|
+
}, [barChartData, currency, currencyType]);
|
|
74
75
|
(0, _react.useEffect)(function () {
|
|
75
76
|
var offsetWidth = controlsContainerRef.current.offsetWidth;
|
|
76
77
|
setRootFont(getRootFont(offsetWidth));
|