aefis-core-ui 2.2.1-rc4 → 2.2.2-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 +17 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -4807,7 +4807,8 @@ const ListItem = props => {
|
|
|
4807
4807
|
style: listItemStyle,
|
|
4808
4808
|
disabled: props.disabled,
|
|
4809
4809
|
dense: props.dense,
|
|
4810
|
-
selected: props.selected
|
|
4810
|
+
selected: props.selected,
|
|
4811
|
+
component: "li"
|
|
4811
4812
|
};
|
|
4812
4813
|
if (props.display === "horizontal") {
|
|
4813
4814
|
listItemArgs["sx"] = {
|
|
@@ -13573,7 +13574,7 @@ const color = percent => {
|
|
|
13573
13574
|
return percent ? dynamicSuccess[percent] : inProgress["default"];
|
|
13574
13575
|
};
|
|
13575
13576
|
const Chart = props => {
|
|
13576
|
-
|
|
13577
|
+
const bgColor = props.customSeriesColor || (props.dynamicColor ? color(props.percentValue) : props.showComplete && props.percentValue === 100 ? goalMet["default"] : color());
|
|
13577
13578
|
const XSmallSlider = withStyles$1({
|
|
13578
13579
|
root: {
|
|
13579
13580
|
borderRadius: 10,
|
|
@@ -13654,7 +13655,8 @@ Chart.propTypes = {
|
|
|
13654
13655
|
percentValue: PropTypes.number,
|
|
13655
13656
|
showComplete: PropTypes.any,
|
|
13656
13657
|
size: PropTypes.string,
|
|
13657
|
-
label: PropTypes.string
|
|
13658
|
+
label: PropTypes.string,
|
|
13659
|
+
customSeriesColor: PropTypes.string
|
|
13658
13660
|
};
|
|
13659
13661
|
const SliderChart = props => {
|
|
13660
13662
|
const classes = useStyles$a();
|
|
@@ -13684,7 +13686,7 @@ const SliderChart = props => {
|
|
|
13684
13686
|
}), props.title && props.title !== "" && props.showTitle && /*#__PURE__*/jsx(Typography, {
|
|
13685
13687
|
variant: "h3",
|
|
13686
13688
|
sx: titleStyle,
|
|
13687
|
-
component:
|
|
13689
|
+
component: props.titleComponent,
|
|
13688
13690
|
children: props.title
|
|
13689
13691
|
}), /*#__PURE__*/jsxs(Box$1, {
|
|
13690
13692
|
className: classes.chartContainer,
|
|
@@ -13705,17 +13707,22 @@ const SliderChart = props => {
|
|
|
13705
13707
|
})]
|
|
13706
13708
|
});
|
|
13707
13709
|
};
|
|
13710
|
+
SliderChart.defaultProps = {
|
|
13711
|
+
titleComponent: "div"
|
|
13712
|
+
};
|
|
13708
13713
|
SliderChart.propTypes = {
|
|
13709
13714
|
dynamicColor: PropTypes.bool,
|
|
13710
13715
|
height: PropTypes.any,
|
|
13711
13716
|
percentValue: PropTypes.any,
|
|
13712
13717
|
size: PropTypes.string,
|
|
13713
13718
|
title: PropTypes.string,
|
|
13719
|
+
titleComponent: PropTypes.any,
|
|
13714
13720
|
subtitle: PropTypes.string,
|
|
13715
13721
|
width: PropTypes.any,
|
|
13716
13722
|
color: PropTypes.any,
|
|
13717
13723
|
description: PropTypes.string,
|
|
13718
|
-
showTitle: PropTypes.bool
|
|
13724
|
+
showTitle: PropTypes.bool,
|
|
13725
|
+
customSeriesColor: PropTypes.string
|
|
13719
13726
|
};
|
|
13720
13727
|
|
|
13721
13728
|
const getPercent = (total, value, roundPercent) => {
|
|
@@ -13753,6 +13760,8 @@ ProgressChart.propTypes = {
|
|
|
13753
13760
|
description: PropTypes.string,
|
|
13754
13761
|
/** The title of the progress chart. */
|
|
13755
13762
|
title: PropTypes.string,
|
|
13763
|
+
/** The component to use to render the title. Only available in slider charts. */
|
|
13764
|
+
titleComponent: PropTypes.string,
|
|
13756
13765
|
/** The subtitle of the progress chart. */
|
|
13757
13766
|
subtitle: PropTypes.string,
|
|
13758
13767
|
/** For "circle" progress chart, the main display value. Default is the percentage. */
|
|
@@ -13770,7 +13779,9 @@ ProgressChart.propTypes = {
|
|
|
13770
13779
|
/** Automatically round the percentage value. */
|
|
13771
13780
|
roundPercent: PropTypes.bool,
|
|
13772
13781
|
/** Even if title given, do not display it. */
|
|
13773
|
-
showTitle: PropTypes.bool
|
|
13782
|
+
showTitle: PropTypes.bool,
|
|
13783
|
+
/** If provided, will override the color the the series of the chart. Only active for slider charts. */
|
|
13784
|
+
customSeriesColor: PropTypes.string
|
|
13774
13785
|
};
|
|
13775
13786
|
|
|
13776
13787
|
const sortObjectBy = (field, reverse, primer) => {
|