aefis-core-ui 2.1.7-rc3 → 2.1.7-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 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -13615,12 +13615,12 @@ const SliderChart = props => {
|
|
|
13615
13615
|
const keyValue = useUID();
|
|
13616
13616
|
return /*#__PURE__*/jsxs(Box$1, {
|
|
13617
13617
|
role: "figure",
|
|
13618
|
-
"aria-labelledby": `
|
|
13618
|
+
"aria-labelledby": `slider-chart-title-${keyValue}`,
|
|
13619
13619
|
className: classes.container,
|
|
13620
13620
|
children: [/*#__PURE__*/jsx("title", {
|
|
13621
|
-
id: `
|
|
13622
|
-
children: props.description ||
|
|
13623
|
-
}), props.title && props.title !== "" && /*#__PURE__*/jsx(Typography, {
|
|
13621
|
+
id: `slider-chart-title-${keyValue}`,
|
|
13622
|
+
children: props.description || label
|
|
13623
|
+
}), props.title && props.title !== "" && props.showTitle && /*#__PURE__*/jsx(Typography, {
|
|
13624
13624
|
variant: "h3",
|
|
13625
13625
|
sx: titleStyle,
|
|
13626
13626
|
component: "span",
|
|
@@ -13653,7 +13653,8 @@ SliderChart.propTypes = {
|
|
|
13653
13653
|
subtitle: PropTypes.string,
|
|
13654
13654
|
width: PropTypes.any,
|
|
13655
13655
|
color: PropTypes.any,
|
|
13656
|
-
description: PropTypes.string
|
|
13656
|
+
description: PropTypes.string,
|
|
13657
|
+
showTitle: PropTypes.bool
|
|
13657
13658
|
};
|
|
13658
13659
|
|
|
13659
13660
|
const getPercent = (total, value, roundPercent) => {
|
|
@@ -13681,7 +13682,8 @@ ProgressChart.defaultProps = {
|
|
|
13681
13682
|
total: 100,
|
|
13682
13683
|
roundPercent: true,
|
|
13683
13684
|
dynamicColor: false,
|
|
13684
|
-
showComplete: false
|
|
13685
|
+
showComplete: false,
|
|
13686
|
+
showTitle: true
|
|
13685
13687
|
};
|
|
13686
13688
|
ProgressChart.propTypes = {
|
|
13687
13689
|
/** The type of progress chart. */
|
|
@@ -13705,7 +13707,9 @@ ProgressChart.propTypes = {
|
|
|
13705
13707
|
/** If true, when the progress chart percentage reaches 100%, the progress chart color automatically adjust to "green". */
|
|
13706
13708
|
showComplete: PropTypes.bool,
|
|
13707
13709
|
/** Automatically round the percentage value. */
|
|
13708
|
-
roundPercent: PropTypes.bool
|
|
13710
|
+
roundPercent: PropTypes.bool,
|
|
13711
|
+
/** Even if title given, do not display it. */
|
|
13712
|
+
showTitle: PropTypes.bool
|
|
13709
13713
|
};
|
|
13710
13714
|
|
|
13711
13715
|
const sortObjectBy = (field, reverse, primer) => {
|