aefis-core-ui 2.3.0-rc1 → 2.3.0-rc3

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.
@@ -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: "index"
6832
+ arrayFormat: "bracket"
6832
6833
  };
6833
6834
  const setQueryStringWithoutPageReload = qsValue => {
6834
6835
  const {
@@ -14654,36 +14655,7 @@ Header.propTypes = {
14654
14655
  allStepsCompleted: PropTypes.bool
14655
14656
  };
14656
14657
 
14657
- // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
14658
14658
  const useStyles$5 = makeStyles(theme => ({
14659
- container: {
14660
- position: "absolute",
14661
- overflowY: "auto",
14662
- left: 0,
14663
- right: 0,
14664
- bottom: 64,
14665
- top: 178
14666
- },
14667
- tabBar: {
14668
- borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
14669
- zIndex: 1,
14670
- background: "#ffffff",
14671
- padding: theme.spacing(2)
14672
- },
14673
- scrolledTabBar: {
14674
- zIndex: 1,
14675
- borderBottom: "none",
14676
- background: "#ffffff",
14677
- padding: theme.spacing(2),
14678
- 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)"
14679
- },
14680
- bottomBar: {
14681
- borderTop: "1px solid rgba(0, 0, 0, 0.12)"
14682
- },
14683
- scrolledBottomBar: {
14684
- borderTop: "none",
14685
- boxShadow: "0px -4px 8px -4px rgba(0,0,0,0.12)"
14686
- },
14687
14659
  buttonContainer: {
14688
14660
  marginLeft: "auto",
14689
14661
  display: "flex"
@@ -14696,7 +14668,7 @@ const useStyles$5 = makeStyles(theme => ({
14696
14668
  marginRight: 8
14697
14669
  }
14698
14670
  }));
14699
- const bottomBarStyle = {
14671
+ const bottomBarDefaultStyle = {
14700
14672
  background: "#ffffff",
14701
14673
  display: "flex",
14702
14674
  minHeight: 64,
@@ -14712,7 +14684,7 @@ const bottomBarStyle = {
14712
14684
  right: 0
14713
14685
  };
14714
14686
 
14715
- /** Component to display a "stepper" wizard panel for multiple step proceses with swipeable tabs. Designed to be display within a Drawer component. */
14687
+ /** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
14716
14688
 
14717
14689
  const WizardPanel = props => {
14718
14690
  var _props$panels;
@@ -14744,9 +14716,34 @@ const WizardPanel = props => {
14744
14716
  props.onComplete && props.onComplete();
14745
14717
  };
14746
14718
  const theme = useTheme$1();
14719
+ const stepsContainer = {
14720
+ position: "absolute",
14721
+ overflowY: "auto",
14722
+ left: 0,
14723
+ right: 0,
14724
+ bottom: 64,
14725
+ top: 178
14726
+ };
14747
14727
  const containerStyle = {
14748
14728
  backgroundColor: props.cardContent ? "rgb(239, 242, 246)" : "rgb(255,255,255)"
14749
14729
  };
14730
+ const tabBarStyle = {
14731
+ borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
14732
+ zIndex: 1,
14733
+ background: "#ffffff",
14734
+ padding: props.display === "drawer" ? 2 : "0px 0px 16px 0px"
14735
+ };
14736
+ const scrolledTabBarStyle = {
14737
+ zIndex: 1,
14738
+ borderBottom: "none",
14739
+ background: "#ffffff",
14740
+ padding: props.display === "drawer" ? 2 : "0px 0px 16px 0px",
14741
+ 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)"
14742
+ };
14743
+ const bottomBarStyle = _extends({}, bottomBarDefaultStyle, {
14744
+ borderTop: "none",
14745
+ boxShadow: props.display === "drawer" ? "0px -4px 8px -4px rgba(0,0,0,0.12)" : "none"
14746
+ });
14750
14747
  useEffect(() => {
14751
14748
  var _containerRef$current;
14752
14749
  (_containerRef$current = containerRef.current) == null ? void 0 : _containerRef$current.scrollTo == null ? void 0 : _containerRef$current.scrollTo({
@@ -14760,9 +14757,9 @@ const WizardPanel = props => {
14760
14757
  }, [props.completed]);
14761
14758
  return /*#__PURE__*/jsxs(Fragment, {
14762
14759
  children: [/*#__PURE__*/jsx(AppBar$1, {
14763
- position: "sticky",
14760
+ position: props.display === "drawer" ? "sticky" : "relative",
14764
14761
  component: "div",
14765
- className: scrollTrigger ? classes.scrolledTabBar : classes.tabBar,
14762
+ sx: scrollTrigger ? scrolledTabBarStyle : tabBarStyle,
14766
14763
  elevation: 0,
14767
14764
  color: "default",
14768
14765
  children: /*#__PURE__*/jsx(Header, {
@@ -14773,7 +14770,7 @@ const WizardPanel = props => {
14773
14770
  }), /*#__PURE__*/jsx(Box$1, {
14774
14771
  ref: containerRef,
14775
14772
  sx: containerStyle,
14776
- className: classes.container,
14773
+ style: props.display === "drawer" ? stepsContainer : undefined,
14777
14774
  children: /*#__PURE__*/jsx(SwipeableViews, {
14778
14775
  axis: theme.direction === "rtl" ? "x-reverse" : "x",
14779
14776
  index: activeStep,
@@ -14790,7 +14787,6 @@ const WizardPanel = props => {
14790
14787
  })
14791
14788
  }), /*#__PURE__*/jsx(Box$1, {
14792
14789
  style: bottomBarStyle,
14793
- className: classes.scrolledBottomBar,
14794
14790
  children: /*#__PURE__*/jsxs(Box$1, {
14795
14791
  className: classes.buttonContainer,
14796
14792
  children: [/*#__PURE__*/jsx(Button, {
@@ -14851,9 +14847,12 @@ WizardPanel.defaultProps = {
14851
14847
  completed: false,
14852
14848
  completeButtonText: "Finish",
14853
14849
  disableComplete: false,
14854
- completing: false
14850
+ completing: false,
14851
+ display: "drawer"
14855
14852
  };
14856
14853
  WizardPanel.propTypes = {
14854
+ /** Where to display the panel, a dialog or drawer. */
14855
+ display: PropTypes.oneOf(["drawer"], ["dialog"]),
14857
14856
  /** The data defining the wizard steps and content. */
14858
14857
  panels: PropTypes.arrayOf(PropTypes.shape({
14859
14858
  id: PropTypes.any.isRequired,