@widergy/energy-ui 1.115.1 → 1.115.4
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.115.4](https://github.com/widergy/energy-ui/compare/v1.115.3...v1.115.4) (2022-04-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* changin hide barchart calculation ([#274](https://github.com/widergy/energy-ui/issues/274)) ([fc8d404](https://github.com/widergy/energy-ui/commit/fc8d40478581edc694d9258706528f47434ca5a2))
|
|
7
|
+
|
|
8
|
+
## [1.115.3](https://github.com/widergy/energy-ui/compare/v1.115.2...v1.115.3) (2022-03-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* legend ([#273](https://github.com/widergy/energy-ui/issues/273)) ([15abec0](https://github.com/widergy/energy-ui/commit/15abec02ee57973b70f234770ae98dac6e98f2b6))
|
|
14
|
+
|
|
15
|
+
## [1.115.2](https://github.com/widergy/energy-ui/compare/v1.115.1...v1.115.2) (2022-03-18)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* phone validation ([#271](https://github.com/widergy/energy-ui/issues/271)) ([7fba2da](https://github.com/widergy/energy-ui/commit/7fba2da43e750028acf8704b015c04f07498a238))
|
|
21
|
+
|
|
1
22
|
## [1.115.1](https://github.com/widergy/energy-ui/compare/v1.115.0...v1.115.1) (2022-03-17)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -168,12 +168,15 @@ var UTBarChart = function UTBarChart(_ref) {
|
|
|
168
168
|
flatBarData = _flattenData.flatBarData,
|
|
169
169
|
flatLinearData = _flattenData.flatLinearData;
|
|
170
170
|
|
|
171
|
+
var _flattenData2 = (0, _utils.flattenData)(barData, linearData),
|
|
172
|
+
fullFlatBarData = _flattenData2.flatBarData;
|
|
173
|
+
|
|
171
174
|
var _getMaxValues = (0, _utils.getMaxValues)(flattenedAndReducedBarData, flatLinearData, levels),
|
|
172
175
|
maxBarValue = _getMaxValues.maxBarValue,
|
|
173
176
|
maxLinearValue = _getMaxValues.maxLinearValue;
|
|
174
177
|
|
|
175
178
|
var withLinearData = !(0, _array.isEmpty)(flatLinearData) && maxLinearValue !== 0;
|
|
176
|
-
var withBarData = !(0, _array.isEmpty)(
|
|
179
|
+
var withBarData = !(0, _array.isEmpty)(fullFlatBarData) && maxBarValue !== 0;
|
|
177
180
|
|
|
178
181
|
var _getGraphAttributes = (0, _utils.getGraphAttributes)(containerWidth, containerHeight, marginLeft, marginRight, marginBottom, pagination ? 0 : minBarWidth, formattedData[0].length, barPadding, groups, spacingOptions),
|
|
179
182
|
TOTAL_HEIGHT = _getGraphAttributes.TOTAL_HEIGHT,
|
|
@@ -323,7 +326,7 @@ var UTBarChart = function UTBarChart(_ref) {
|
|
|
323
326
|
classes: classes,
|
|
324
327
|
displayAs: displayLegendAs,
|
|
325
328
|
style: {
|
|
326
|
-
width: containerWidth - 2 * GRAPH_X_START,
|
|
329
|
+
width: fitLegend ? containerWidth - 2 * GRAPH_X_START : containerWidth,
|
|
327
330
|
margin: fitLegend ? "0 ".concat(GRAPH_X_START, "px 0 ").concat(GRAPH_X_START, "px") : '0 auto'
|
|
328
331
|
},
|
|
329
332
|
flatData: {
|
|
@@ -39,7 +39,7 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
39
39
|
},
|
|
40
40
|
showLegendIcon: {
|
|
41
41
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'showLegendIcon', 'color']),
|
|
42
|
-
marginRight: 10
|
|
42
|
+
marginRight: (0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'showLegendIcon', 'marginRight'], 10)
|
|
43
43
|
},
|
|
44
44
|
showLegendLabel: {
|
|
45
45
|
fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'showLegendLabel', 'fontSize']), " !important"),
|
|
@@ -136,7 +136,8 @@ var UTPhoneInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
136
136
|
_defineProperty(_assertThisInitialized(_this), "handleValidateAreaCode", function (areaCode) {
|
|
137
137
|
if (areaCode.slice(0, 1) === '0') {
|
|
138
138
|
_this.setState({
|
|
139
|
-
error: _this.props.errors.codeWithZero
|
|
139
|
+
error: _this.props.errors.codeWithZero,
|
|
140
|
+
city: undefined
|
|
140
141
|
});
|
|
141
142
|
} else {
|
|
142
143
|
var code = _constants.AREA_CODES.find(function (element) {
|