@widergy/energy-ui 3.99.1 → 3.100.1
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,17 @@
|
|
|
1
|
+
## [3.100.1](https://github.com/widergy/energy-ui/compare/v3.100.0...v3.100.1) (2025-08-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* panel icon data item ([#672](https://github.com/widergy/energy-ui/issues/672)) ([07b9289](https://github.com/widergy/energy-ui/commit/07b92897ee8851cc8d0bb8aabee29d9c6168b04f))
|
|
7
|
+
|
|
8
|
+
# [3.100.0](https://github.com/widergy/energy-ui/compare/v3.99.1...v3.100.0) (2025-08-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* [UGEE-416] fix chart ([#668](https://github.com/widergy/energy-ui/issues/668)) ([3176b0d](https://github.com/widergy/energy-ui/commit/3176b0dda1784d138f6bfc5de35cc73d62d1e97d))
|
|
14
|
+
|
|
1
15
|
## [3.99.1](https://github.com/widergy/energy-ui/compare/v3.99.0...v3.99.1) (2025-08-18)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -33,7 +33,7 @@ const getMarkers = (data, xAxis, yAxis, barWidth, color, markersConfig) => data.
|
|
|
33
33
|
const x = xAxis(xCoordinate) + barWidth / 2;
|
|
34
34
|
const y = yAxis(value);
|
|
35
35
|
const size = (markersConfig.size || _constants.DEFAULT_MARKER_SIZE) / 2;
|
|
36
|
-
if (
|
|
36
|
+
if (value === undefined || value === null) {
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
return markersConfig.type === _constants.MARKER_TYPES.DOT && /*#__PURE__*/_react.default.createElement("svg", {
|
|
@@ -103,11 +103,15 @@ const UTBarChart = _ref => {
|
|
|
103
103
|
data,
|
|
104
104
|
...config
|
|
105
105
|
} = _ref2;
|
|
106
|
+
const filteredData = xAxisDefinition && xAxisDefinition.length > 0 ? data.filter(point => {
|
|
107
|
+
const maxIndex = xAxisDefinition.length - 1;
|
|
108
|
+
return point.xCoordinate >= 0 && point.xCoordinate <= maxIndex;
|
|
109
|
+
}) : data;
|
|
106
110
|
return {
|
|
107
|
-
data: pagination ? (0, _utils.getFormattedLinearData)(
|
|
111
|
+
data: pagination ? (0, _utils.getFormattedLinearData)(filteredData, currentPage, pagination) : filteredData,
|
|
108
112
|
...config
|
|
109
113
|
};
|
|
110
|
-
}), [pagination, linearData, currentPage]);
|
|
114
|
+
}), [pagination, linearData, currentPage, xAxisDefinition]);
|
|
111
115
|
const flattenedAndReducedBarData = (0, _utils.flattenAndReduceBarData)(barData);
|
|
112
116
|
const {
|
|
113
117
|
flatBarData,
|
|
@@ -21,7 +21,7 @@ const DataItem = _ref => {
|
|
|
21
21
|
} = _ref;
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
23
|
className: "".concat(_stylesModule.default.container, " ").concat(_stylesModule.default[_constants.SIZES[size]])
|
|
24
|
-
}, /*#__PURE__*/_react.default.createElement(_UTIcon.default, {
|
|
24
|
+
}, !!icon && /*#__PURE__*/_react.default.createElement(_UTIcon.default, {
|
|
25
25
|
className: _stylesModule.default.icon,
|
|
26
26
|
colorTheme: "gray",
|
|
27
27
|
name: icon
|