aefis-core-ui 2.1.8-rc3 → 2.1.8-rc4
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/dist/index.modern.js +11 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -15065,11 +15065,15 @@ const replaceDuplicateColor = data => {
|
|
|
15065
15065
|
return data;
|
|
15066
15066
|
}
|
|
15067
15067
|
};
|
|
15068
|
-
const
|
|
15068
|
+
const getOverallTotal = data => {
|
|
15069
15069
|
let overallTotal = 0;
|
|
15070
|
-
data.map(r => {
|
|
15070
|
+
data == null ? void 0 : data.map(r => {
|
|
15071
15071
|
overallTotal = overallTotal + r.total;
|
|
15072
15072
|
});
|
|
15073
|
+
return overallTotal;
|
|
15074
|
+
};
|
|
15075
|
+
const addPercentValue = data => {
|
|
15076
|
+
const overallTotal = getOverallTotal(data);
|
|
15073
15077
|
const newRubricObj = [];
|
|
15074
15078
|
data.map(r => {
|
|
15075
15079
|
const total = percent(overallTotal, r.total);
|
|
@@ -15155,6 +15159,11 @@ const RubricDistributionChart = props => {
|
|
|
15155
15159
|
sx: containerSize
|
|
15156
15160
|
}), rubricsDataWithPercent == null ? void 0 : rubricsDataWithPercent.map((rubric, index) => /*#__PURE__*/jsx(Box$1, {
|
|
15157
15161
|
className: classes.barProgress,
|
|
15162
|
+
"aria-label": rubric.name,
|
|
15163
|
+
"aria-valuemax": getOverallTotal(rubricsDataWithPercent),
|
|
15164
|
+
"aria-valuenow": rubric.total || 0,
|
|
15165
|
+
"aria-valuemin": 0,
|
|
15166
|
+
role: "progressbar",
|
|
15158
15167
|
style: barStyle(rubric, index === 0, isLastItemInArray(rubricsDataWithPercent, index)),
|
|
15159
15168
|
children: /*#__PURE__*/jsx(Typography, {
|
|
15160
15169
|
sx: {
|