aefis-core-ui 2.2.2-rc4 → 2.2.3-rc5
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 +37 -38
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5296,7 +5296,8 @@ const useStyles$y = makeStyles(theme => ({
|
|
|
5296
5296
|
root: {
|
|
5297
5297
|
margin: 0,
|
|
5298
5298
|
padding: theme.spacing(2),
|
|
5299
|
-
position: "relative"
|
|
5299
|
+
position: "relative",
|
|
5300
|
+
minHeight: 60
|
|
5300
5301
|
},
|
|
5301
5302
|
closeButton: {
|
|
5302
5303
|
position: "absolute",
|
|
@@ -6828,7 +6829,7 @@ DataTable.propTypes = {
|
|
|
6828
6829
|
};
|
|
6829
6830
|
|
|
6830
6831
|
const options = {
|
|
6831
|
-
arrayFormat: "
|
|
6832
|
+
arrayFormat: "bracket"
|
|
6832
6833
|
};
|
|
6833
6834
|
const setQueryStringWithoutPageReload = qsValue => {
|
|
6834
6835
|
const {
|
|
@@ -14658,36 +14659,7 @@ Header.propTypes = {
|
|
|
14658
14659
|
allStepsCompleted: PropTypes.bool
|
|
14659
14660
|
};
|
|
14660
14661
|
|
|
14661
|
-
// Copyright (c) 2022 HelioCampus Inc., all rights reserved.
|
|
14662
14662
|
const useStyles$5 = makeStyles(theme => ({
|
|
14663
|
-
container: {
|
|
14664
|
-
position: "absolute",
|
|
14665
|
-
overflowY: "auto",
|
|
14666
|
-
left: 0,
|
|
14667
|
-
right: 0,
|
|
14668
|
-
bottom: 64,
|
|
14669
|
-
top: 178
|
|
14670
|
-
},
|
|
14671
|
-
tabBar: {
|
|
14672
|
-
borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
|
|
14673
|
-
zIndex: 1,
|
|
14674
|
-
background: "#ffffff",
|
|
14675
|
-
padding: theme.spacing(2)
|
|
14676
|
-
},
|
|
14677
|
-
scrolledTabBar: {
|
|
14678
|
-
zIndex: 1,
|
|
14679
|
-
borderBottom: "none",
|
|
14680
|
-
background: "#ffffff",
|
|
14681
|
-
padding: theme.spacing(2),
|
|
14682
|
-
boxShadow: "0px 2px 4px -4px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px -10px rgba(0,0,0,0.12)"
|
|
14683
|
-
},
|
|
14684
|
-
bottomBar: {
|
|
14685
|
-
borderTop: "1px solid rgba(0, 0, 0, 0.12)"
|
|
14686
|
-
},
|
|
14687
|
-
scrolledBottomBar: {
|
|
14688
|
-
borderTop: "none",
|
|
14689
|
-
boxShadow: "0px -4px 8px -4px rgba(0,0,0,0.12)"
|
|
14690
|
-
},
|
|
14691
14663
|
buttonContainer: {
|
|
14692
14664
|
marginLeft: "auto",
|
|
14693
14665
|
display: "flex"
|
|
@@ -14700,7 +14672,7 @@ const useStyles$5 = makeStyles(theme => ({
|
|
|
14700
14672
|
marginRight: 8
|
|
14701
14673
|
}
|
|
14702
14674
|
}));
|
|
14703
|
-
const
|
|
14675
|
+
const bottomBarDefaultStyle = {
|
|
14704
14676
|
background: "#ffffff",
|
|
14705
14677
|
display: "flex",
|
|
14706
14678
|
minHeight: 64,
|
|
@@ -14716,7 +14688,7 @@ const bottomBarStyle = {
|
|
|
14716
14688
|
right: 0
|
|
14717
14689
|
};
|
|
14718
14690
|
|
|
14719
|
-
/** Component to display a "stepper" wizard panel for multiple step
|
|
14691
|
+
/** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
|
|
14720
14692
|
|
|
14721
14693
|
const WizardPanel = props => {
|
|
14722
14694
|
var _props$panels;
|
|
@@ -14748,9 +14720,34 @@ const WizardPanel = props => {
|
|
|
14748
14720
|
props.onComplete && props.onComplete();
|
|
14749
14721
|
};
|
|
14750
14722
|
const theme = useTheme$1();
|
|
14723
|
+
const stepsContainer = {
|
|
14724
|
+
position: "absolute",
|
|
14725
|
+
overflowY: "auto",
|
|
14726
|
+
left: 0,
|
|
14727
|
+
right: 0,
|
|
14728
|
+
bottom: 64,
|
|
14729
|
+
top: 178
|
|
14730
|
+
};
|
|
14751
14731
|
const containerStyle = {
|
|
14752
14732
|
backgroundColor: props.cardContent ? "rgb(239, 242, 246)" : "rgb(255,255,255)"
|
|
14753
14733
|
};
|
|
14734
|
+
const tabBarStyle = {
|
|
14735
|
+
borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
|
|
14736
|
+
zIndex: 1,
|
|
14737
|
+
background: "#ffffff",
|
|
14738
|
+
padding: props.display === "drawer" ? 2 : "0px 0px 16px 0px"
|
|
14739
|
+
};
|
|
14740
|
+
const scrolledTabBarStyle = {
|
|
14741
|
+
zIndex: 1,
|
|
14742
|
+
borderBottom: "none",
|
|
14743
|
+
background: "#ffffff",
|
|
14744
|
+
padding: props.display === "drawer" ? 2 : "0px 0px 16px 0px",
|
|
14745
|
+
boxShadow: "0px 2px 4px -4px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px -10px rgba(0,0,0,0.12)"
|
|
14746
|
+
};
|
|
14747
|
+
const bottomBarStyle = _extends({}, bottomBarDefaultStyle, {
|
|
14748
|
+
borderTop: "none",
|
|
14749
|
+
boxShadow: props.display === "drawer" ? "0px -4px 8px -4px rgba(0,0,0,0.12)" : "none"
|
|
14750
|
+
});
|
|
14754
14751
|
useEffect(() => {
|
|
14755
14752
|
var _containerRef$current;
|
|
14756
14753
|
(_containerRef$current = containerRef.current) == null ? void 0 : _containerRef$current.scrollTo == null ? void 0 : _containerRef$current.scrollTo({
|
|
@@ -14764,9 +14761,9 @@ const WizardPanel = props => {
|
|
|
14764
14761
|
}, [props.completed]);
|
|
14765
14762
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
14766
14763
|
children: [/*#__PURE__*/jsx(AppBar$1, {
|
|
14767
|
-
position: "sticky",
|
|
14764
|
+
position: props.display === "drawer" ? "sticky" : "relative",
|
|
14768
14765
|
component: "div",
|
|
14769
|
-
|
|
14766
|
+
sx: scrollTrigger ? scrolledTabBarStyle : tabBarStyle,
|
|
14770
14767
|
elevation: 0,
|
|
14771
14768
|
color: "default",
|
|
14772
14769
|
children: /*#__PURE__*/jsx(Header, {
|
|
@@ -14777,7 +14774,7 @@ const WizardPanel = props => {
|
|
|
14777
14774
|
}), /*#__PURE__*/jsx(Box$1, {
|
|
14778
14775
|
ref: containerRef,
|
|
14779
14776
|
sx: containerStyle,
|
|
14780
|
-
|
|
14777
|
+
style: props.display === "drawer" ? stepsContainer : undefined,
|
|
14781
14778
|
children: /*#__PURE__*/jsx(SwipeableViews, {
|
|
14782
14779
|
axis: theme.direction === "rtl" ? "x-reverse" : "x",
|
|
14783
14780
|
index: activeStep,
|
|
@@ -14794,7 +14791,6 @@ const WizardPanel = props => {
|
|
|
14794
14791
|
})
|
|
14795
14792
|
}), /*#__PURE__*/jsx(Box$1, {
|
|
14796
14793
|
style: bottomBarStyle,
|
|
14797
|
-
className: classes.scrolledBottomBar,
|
|
14798
14794
|
children: /*#__PURE__*/jsxs(Box$1, {
|
|
14799
14795
|
className: classes.buttonContainer,
|
|
14800
14796
|
children: [/*#__PURE__*/jsx(Button, {
|
|
@@ -14855,9 +14851,12 @@ WizardPanel.defaultProps = {
|
|
|
14855
14851
|
completed: false,
|
|
14856
14852
|
completeButtonText: "Finish",
|
|
14857
14853
|
disableComplete: false,
|
|
14858
|
-
completing: false
|
|
14854
|
+
completing: false,
|
|
14855
|
+
display: "drawer"
|
|
14859
14856
|
};
|
|
14860
14857
|
WizardPanel.propTypes = {
|
|
14858
|
+
/** Where to display the panel, a dialog or drawer. */
|
|
14859
|
+
display: PropTypes.oneOf(["drawer"], ["dialog"]),
|
|
14861
14860
|
/** The data defining the wizard steps and content. */
|
|
14862
14861
|
panels: PropTypes.arrayOf(PropTypes.shape({
|
|
14863
14862
|
id: PropTypes.any.isRequired,
|