aefis-core-ui 2.2.1-rc3 → 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.
@@ -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"] = {
@@ -10525,10 +10526,8 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10525
10526
  const [enableTableRowAction, setEnableTableRowAction] = useState(false);
10526
10527
  const [selectedRowCount, setSelectedRowCount] = useState(0);
10527
10528
  const [filterPanelState, setFilterPanelState] = useState(initialFilterState);
10528
- console.log("filterPanelState ", filterPanelState);
10529
10529
  const {
10530
- info,
10531
- error
10530
+ info
10532
10531
  } = useNotify();
10533
10532
  const queryParams = _extends({}, props.parameters, {
10534
10533
  filter: _extends({}, filterPanelState.filter, props.filterParameters),
@@ -13575,7 +13574,7 @@ const color = percent => {
13575
13574
  return percent ? dynamicSuccess[percent] : inProgress["default"];
13576
13575
  };
13577
13576
  const Chart = props => {
13578
- let bgColor = props.dynamicColor ? color(props.percentValue) : props.showComplete && props.percentValue === 100 ? goalMet["default"] : color();
13577
+ const bgColor = props.customSeriesColor || (props.dynamicColor ? color(props.percentValue) : props.showComplete && props.percentValue === 100 ? goalMet["default"] : color());
13579
13578
  const XSmallSlider = withStyles$1({
13580
13579
  root: {
13581
13580
  borderRadius: 10,
@@ -13656,7 +13655,8 @@ Chart.propTypes = {
13656
13655
  percentValue: PropTypes.number,
13657
13656
  showComplete: PropTypes.any,
13658
13657
  size: PropTypes.string,
13659
- label: PropTypes.string
13658
+ label: PropTypes.string,
13659
+ customSeriesColor: PropTypes.string
13660
13660
  };
13661
13661
  const SliderChart = props => {
13662
13662
  const classes = useStyles$a();
@@ -13686,7 +13686,7 @@ const SliderChart = props => {
13686
13686
  }), props.title && props.title !== "" && props.showTitle && /*#__PURE__*/jsx(Typography, {
13687
13687
  variant: "h3",
13688
13688
  sx: titleStyle,
13689
- component: "span",
13689
+ component: props.titleComponent,
13690
13690
  children: props.title
13691
13691
  }), /*#__PURE__*/jsxs(Box$1, {
13692
13692
  className: classes.chartContainer,
@@ -13707,17 +13707,22 @@ const SliderChart = props => {
13707
13707
  })]
13708
13708
  });
13709
13709
  };
13710
+ SliderChart.defaultProps = {
13711
+ titleComponent: "div"
13712
+ };
13710
13713
  SliderChart.propTypes = {
13711
13714
  dynamicColor: PropTypes.bool,
13712
13715
  height: PropTypes.any,
13713
13716
  percentValue: PropTypes.any,
13714
13717
  size: PropTypes.string,
13715
13718
  title: PropTypes.string,
13719
+ titleComponent: PropTypes.any,
13716
13720
  subtitle: PropTypes.string,
13717
13721
  width: PropTypes.any,
13718
13722
  color: PropTypes.any,
13719
13723
  description: PropTypes.string,
13720
- showTitle: PropTypes.bool
13724
+ showTitle: PropTypes.bool,
13725
+ customSeriesColor: PropTypes.string
13721
13726
  };
13722
13727
 
13723
13728
  const getPercent = (total, value, roundPercent) => {
@@ -13755,6 +13760,8 @@ ProgressChart.propTypes = {
13755
13760
  description: PropTypes.string,
13756
13761
  /** The title of the progress chart. */
13757
13762
  title: PropTypes.string,
13763
+ /** The component to use to render the title. Only available in slider charts. */
13764
+ titleComponent: PropTypes.string,
13758
13765
  /** The subtitle of the progress chart. */
13759
13766
  subtitle: PropTypes.string,
13760
13767
  /** For "circle" progress chart, the main display value. Default is the percentage. */
@@ -13772,7 +13779,9 @@ ProgressChart.propTypes = {
13772
13779
  /** Automatically round the percentage value. */
13773
13780
  roundPercent: PropTypes.bool,
13774
13781
  /** Even if title given, do not display it. */
13775
- 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
13776
13785
  };
13777
13786
 
13778
13787
  const sortObjectBy = (field, reverse, primer) => {