aefis-core-ui 2.1.18 → 2.1.20
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 +18 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -4797,7 +4797,8 @@ const ListItem = props => {
|
|
|
4797
4797
|
style: listItemStyle,
|
|
4798
4798
|
disabled: props.disabled,
|
|
4799
4799
|
dense: props.dense,
|
|
4800
|
-
selected: props.selected
|
|
4800
|
+
selected: props.selected,
|
|
4801
|
+
component: "li"
|
|
4801
4802
|
};
|
|
4802
4803
|
if (props.display === "horizontal") {
|
|
4803
4804
|
listItemArgs["sx"] = {
|
|
@@ -10516,10 +10517,8 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
|
|
|
10516
10517
|
const [enableTableRowAction, setEnableTableRowAction] = useState(false);
|
|
10517
10518
|
const [selectedRowCount, setSelectedRowCount] = useState(0);
|
|
10518
10519
|
const [filterPanelState, setFilterPanelState] = useState(initialFilterState);
|
|
10519
|
-
console.log("filterPanelState ", filterPanelState);
|
|
10520
10520
|
const {
|
|
10521
|
-
info
|
|
10522
|
-
error
|
|
10521
|
+
info
|
|
10523
10522
|
} = useNotify();
|
|
10524
10523
|
const queryParams = _extends({}, props.parameters, {
|
|
10525
10524
|
filter: _extends({}, filterPanelState.filter, props.filterParameters),
|
|
@@ -13560,7 +13559,7 @@ const color = percent => {
|
|
|
13560
13559
|
return percent ? dynamicSuccess[percent] : inProgress["default"];
|
|
13561
13560
|
};
|
|
13562
13561
|
const Chart = props => {
|
|
13563
|
-
|
|
13562
|
+
const bgColor = props.customSeriesColor || (props.dynamicColor ? color(props.percentValue) : props.showComplete && props.percentValue === 100 ? goalMet["default"] : color());
|
|
13564
13563
|
const XSmallSlider = withStyles$1({
|
|
13565
13564
|
root: {
|
|
13566
13565
|
borderRadius: 10,
|
|
@@ -13641,7 +13640,8 @@ Chart.propTypes = {
|
|
|
13641
13640
|
percentValue: PropTypes.number,
|
|
13642
13641
|
showComplete: PropTypes.any,
|
|
13643
13642
|
size: PropTypes.string,
|
|
13644
|
-
label: PropTypes.string
|
|
13643
|
+
label: PropTypes.string,
|
|
13644
|
+
customSeriesColor: PropTypes.string
|
|
13645
13645
|
};
|
|
13646
13646
|
const SliderChart = props => {
|
|
13647
13647
|
const classes = useStyles$a();
|
|
@@ -13671,7 +13671,7 @@ const SliderChart = props => {
|
|
|
13671
13671
|
}), props.title && props.title !== "" && props.showTitle && /*#__PURE__*/jsx(Typography, {
|
|
13672
13672
|
variant: "h3",
|
|
13673
13673
|
sx: titleStyle,
|
|
13674
|
-
component:
|
|
13674
|
+
component: props.titleComponent,
|
|
13675
13675
|
children: props.title
|
|
13676
13676
|
}), /*#__PURE__*/jsxs(Box$1, {
|
|
13677
13677
|
className: classes.chartContainer,
|
|
@@ -13692,17 +13692,22 @@ const SliderChart = props => {
|
|
|
13692
13692
|
})]
|
|
13693
13693
|
});
|
|
13694
13694
|
};
|
|
13695
|
+
SliderChart.defaultProps = {
|
|
13696
|
+
titleComponent: "div"
|
|
13697
|
+
};
|
|
13695
13698
|
SliderChart.propTypes = {
|
|
13696
13699
|
dynamicColor: PropTypes.bool,
|
|
13697
13700
|
height: PropTypes.any,
|
|
13698
13701
|
percentValue: PropTypes.any,
|
|
13699
13702
|
size: PropTypes.string,
|
|
13700
13703
|
title: PropTypes.string,
|
|
13704
|
+
titleComponent: PropTypes.any,
|
|
13701
13705
|
subtitle: PropTypes.string,
|
|
13702
13706
|
width: PropTypes.any,
|
|
13703
13707
|
color: PropTypes.any,
|
|
13704
13708
|
description: PropTypes.string,
|
|
13705
|
-
showTitle: PropTypes.bool
|
|
13709
|
+
showTitle: PropTypes.bool,
|
|
13710
|
+
customSeriesColor: PropTypes.string
|
|
13706
13711
|
};
|
|
13707
13712
|
|
|
13708
13713
|
const getPercent = (total, value, roundPercent) => {
|
|
@@ -13740,6 +13745,8 @@ ProgressChart.propTypes = {
|
|
|
13740
13745
|
description: PropTypes.string,
|
|
13741
13746
|
/** The title of the progress chart. */
|
|
13742
13747
|
title: PropTypes.string,
|
|
13748
|
+
/** The component to use to render the title. Only available in slider charts. */
|
|
13749
|
+
titleComponent: PropTypes.string,
|
|
13743
13750
|
/** The subtitle of the progress chart. */
|
|
13744
13751
|
subtitle: PropTypes.string,
|
|
13745
13752
|
/** For "circle" progress chart, the main display value. Default is the percentage. */
|
|
@@ -13757,7 +13764,9 @@ ProgressChart.propTypes = {
|
|
|
13757
13764
|
/** Automatically round the percentage value. */
|
|
13758
13765
|
roundPercent: PropTypes.bool,
|
|
13759
13766
|
/** Even if title given, do not display it. */
|
|
13760
|
-
showTitle: PropTypes.bool
|
|
13767
|
+
showTitle: PropTypes.bool,
|
|
13768
|
+
/** If provided, will override the color the the series of the chart. Only active for slider charts. */
|
|
13769
|
+
customSeriesColor: PropTypes.string
|
|
13761
13770
|
};
|
|
13762
13771
|
|
|
13763
13772
|
const sortObjectBy = (field, reverse, primer) => {
|