aefis-core-ui 2.3.0-rc47 → 2.3.0-rc49

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.
@@ -1,7 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React, { useState, forwardRef, useEffect, Fragment as Fragment$1, memo, useRef, Children, useMemo, useCallback, useImperativeHandle, createRef, createElement, useContext, createContext } from 'react';
3
3
  import { useUID, useUIDSeed } from 'react-uid';
4
- import { IconButton as IconButton$1, Menu as Menu$1, MenuItem, ListItemIcon, Typography, Tooltip as Tooltip$1, Box as Box$1, Alert as Alert$1, AlertTitle, Collapse, Avatar as Avatar$1, createTheme, Button as Button$1, CircularProgress, Badge, Card, CardMedia, CardHeader, CardContent, CardActions, Chip as Chip$1, Grid, Skeleton as Skeleton$6, Stack, useScrollTrigger, Tabs, Tab, useMediaQuery, List as List$2, ListItem as ListItem$2, ListItemAvatar, ListItemText, Divider, DialogTitle as DialogTitle$1, Fade, LinearProgress, AppBar as AppBar$1, Toolbar, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Dialog, Slide, styled, Checkbox, TableSortLabel, TextField, InputAdornment, Icon as Icon$2, Grow, Breadcrumbs as Breadcrumbs$1, Link as Link$1, Drawer as Drawer$1, createFilterOptions, Autocomplete, Paper, Zoom, Fab, Stepper, Step, StepLabel, ToggleButtonGroup, ToggleButton, FormHelperText, FormControl, InputLabel, Popover, ClickAwayListener, MenuList, ButtonGroup, Select, Hidden } from '@mui/material';
4
+ import Box$1 from '@mui/material/Box';
5
+ import { IconButton as IconButton$1, Menu as Menu$1, MenuItem, ListItemIcon, Typography, Tooltip as Tooltip$1, Box as Box$2, Alert as Alert$1, AlertTitle, Collapse, Avatar as Avatar$1, createTheme, Button as Button$1, CircularProgress, Badge, Card, CardMedia, CardHeader, CardContent, CardActions, Chip as Chip$1, Grid, Skeleton as Skeleton$6, Stack, useScrollTrigger, Tabs, Tab, useMediaQuery, List as List$2, ListItem as ListItem$2, ListItemAvatar, ListItemText, Divider, DialogTitle as DialogTitle$1, Fade, LinearProgress, AppBar as AppBar$1, Toolbar, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Dialog, Slide, styled, Checkbox, TableContainer, Table, TableHead, TableRow, TableCell, TableSortLabel, TextField, InputAdornment, Icon as Icon$2, Grow, Breadcrumbs as Breadcrumbs$1, Link as Link$1, Drawer as Drawer$1, createFilterOptions, Autocomplete, Paper, Zoom, Fab, Stepper, Step, StepLabel, ToggleButtonGroup, ToggleButton, FormHelperText, FormControl, InputLabel, Popover, ClickAwayListener, MenuList, ButtonGroup, Select, Hidden } from '@mui/material';
5
6
  import { makeStyles, useTheme as useTheme$1, withStyles as withStyles$1, createStyles, styled as styled$2 } from '@mui/styles';
6
7
  import clsx from 'clsx';
7
8
  import { AccountBalanceOutlined as AccountBalanceOutlined$1, AssignmentOutlined as AssignmentOutlined$1, BookOutlined as BookOutlined$1, Check as Check$1, CollectionsBookmarkOutlined as CollectionsBookmarkOutlined$1, Edit, ErrorOutlined as ErrorOutlined$1, EventOutlined as EventOutlined$1, ExploreOutlined as ExploreOutlined$1, InfoOutlined as InfoOutlined$1, KeyboardArrowRight as KeyboardArrowRight$1, MapOutlined as MapOutlined$1, PersonOutlined as PersonOutlined$1, SchoolOutlined as SchoolOutlined$1, Search as Search$1, ViewListOutlined as ViewListOutlined$1, WarningOutlined as WarningOutlined$1, WidgetsOutlined as WidgetsOutlined$1, AccountBalance as AccountBalance$1, AccountCircle as AccountCircle$1, AccountTreeOutlined, AccountTreeTwoTone, Add as Add$1, AddCircle as AddCircle$1, AddLocation, AddLocationOutlined, AddOutlined, AddTask, AddTaskOutlined, Apps, ArrowBack as ArrowBack$1, ArrowForward as ArrowForward$1, ArrowLeft, ArrowRight as ArrowRight$1, ArrowUpward as ArrowUpward$1, Article, ArticleOutlined as ArticleOutlined$1, Assignment, AssignmentLate, AssignmentLateOutlined, AssignmentTurnedIn, AssignmentTurnedInOutlined, AssignmentTwoTone, AttachFile, BarChartOutlined, Book, BookTwoTone, BrushOutlined, BuildOutlined, BuildTwoTone, BusinessCenterOutlined, Calculate, CalculateTwoTone, CalculateOutlined as CalculateOutlined$1, Cancel as Cancel$1, ChatOutlined, CheckBox, CheckBoxOutlined, CheckCircle as CheckCircle$1, CheckCircleOutlined, CheckOutlined as CheckOutlined$1, Clear as Clear$1, Close as Close$1, CloudOutlined, CloudDownload, CloudDownloadOutlined, CloudUpload, CloudUploadOutlined, Comment, ContactMail as ContactMail$1, ContentCopy, ChromeReaderMode, ChromeReaderModeOutlined, Dashboard, DashboardOutlined, DashboardTwoTone, DashboardCustomize, DashboardCustomizeOutlined, DateRange, DateRangeOutlined, Delete as Delete$2, DeleteOutlined, Description, DesktopMacOutlined, DeviceHub, DeviceHubOutlined, Done, EditOutlined as EditOutlined$1, EmailOutlined, EmojiObjects, EmojiObjectsOutlined, EmojiPeople, EmojiPeopleOutlined, EmojiEventsOutlined, Error as Error$2, ErrorOutline, Event as Event$1, EventRepeat, EventRepeatOutlined, ExpandLess as ExpandLess$1, ExpandMore as ExpandMore$1, Explore, ExploreTwoTone, Extension, ExtensionOutlined, Equalizer, EqualizerOutlined, Face, FaceOutlined, FilterList as FilterList$1, FlightOutlined, Flight, FolderOutlined, FolderSpecial, FolderSpecialOutlined, FlagOutlined, Fullscreen, FullscreenExit, GetApp as GetApp$1, GetAppOutlined, Group, GroupOutlined, Groups, GroupsOutlined, Help, HelpOutlined as HelpOutlined$1, HelpTwoTone, Hiking, Home, HomeTwoTone, HomeOutlined, HomeWorkOutlined, ImageSearch, Info as Info$1, KeyboardArrowLeft as KeyboardArrowLeft$1, KeyboardArrowUp as KeyboardArrowUp$1, Lens, Lightbulb, LightbulbOutlined as LightbulbOutlined$1, Link, List as List$1, ListOutlined, ListAlt, ListAltOutlined, ListAltTwoTone, LocalOffer, LocalOfferOutlined as LocalOfferOutlined$1, LocalPhone, LocalPhoneOutlined as LocalPhoneOutlined$1, Login, LowPriority, LowPriorityOutlined, Map, Menu, MenuBookOutlined, Message, MessageOutlined as MessageOutlined$1, MilitaryTechOutlined, MoreVert as MoreVert$1, MoreHoriz, MyLocation, MyLocationOutlined, Notifications, NotificationsActive, Palette, PaletteOutlined, Person, PersonOutline, People, PeopleOutlined, PersonAddAltOutlined, PersonAddOutlined as PersonAddOutlined$1, PictureAsPdf, PictureAsPdfOutlined as PictureAsPdfOutlined$1, Place, PlaceOutlined, PlayArrow, PlayArrowOutlined, PolicyOutlined, Print, PrintOutlined as PrintOutlined$1, PrintTwoTone, PriorityHigh as PriorityHigh$1, PublicOutlined, QuestionAnswerOutlined, RecordVoiceOverOutlined, Receipt, Refresh as Refresh$1, RestartAlt, RoomServiceOutlined, Rule, Save, SaveOutlined, Schedule as Schedule$1, School, SchoolTwoTone, Science, ScienceOutlined, SearchOutlined, Settings as Settings$1, SettingsOutlined, ShareOutlined, SpeakerNotesOutlined, SportsOutlined, Star as Star$1, StarBorder as StarBorder$1, SwapVert, TableView, TableViewOutlined, ThumbUp, ThumbUpOutlined, TrendingDownOutlined, TrendingFlatOutlined, TrendingUpOutlined, Tune as Tune$1, Verified, VerifiedOutlined, ViewList, Visibility, VisibilityOutlined as VisibilityOutlined$1, Warning, Web, WebOutlined, Widgets, Work, WorkOutlined, WorkOutline } from '@mui/icons-material/';
@@ -12,8 +13,8 @@ import withStyles from '@mui/styles/withStyles';
12
13
  import { useTheme, alpha, createTheme as createTheme$1, ThemeProvider, styled as styled$1, StyledEngineProvider } from '@mui/material/styles';
13
14
  import { useFormControl } from '@mui/material/FormControl';
14
15
  import mustache from 'mustache';
15
- import { Box as Box$2 } from '@mui/system';
16
- import { Skeleton as Skeleton$4, TextField as TextField$1, Box as Box$3 } from '@mui/material/';
16
+ import { Box as Box$3 } from '@mui/system';
17
+ import { Skeleton as Skeleton$4, TextField as TextField$1, Box as Box$4 } from '@mui/material/';
17
18
  import { useImage } from 'react-image';
18
19
  import Award from './assets/badgeAward.jpg';
19
20
  import Building from './assets/buildingForYou.jpg';
@@ -635,7 +636,10 @@ ActionMenu.propTypes = {
635
636
  const RenderIconButton = props => {
636
637
  return props.disabled ? /*#__PURE__*/jsx(IconButton$1, {
637
638
  "aria-label": props.name,
638
- onClick: () => props.item.action(props.data),
639
+ onClick: () => {
640
+ var _props$item;
641
+ return (_props$item = props.item) == null ? void 0 : _props$item.action(props.data);
642
+ },
639
643
  disabled: true,
640
644
  children: /*#__PURE__*/jsx(props.item.icon, {
641
645
  data: props.data
@@ -644,7 +648,10 @@ const RenderIconButton = props => {
644
648
  title: props.name,
645
649
  children: /*#__PURE__*/jsx(IconButton$1, {
646
650
  "aria-label": props.name,
647
- onClick: () => props.item.action(props.data),
651
+ onClick: () => {
652
+ var _props$item2;
653
+ return (_props$item2 = props.item) == null ? void 0 : _props$item2.action(props.data);
654
+ },
648
655
  disabled: false,
649
656
  children: /*#__PURE__*/jsx(props.item.icon, {
650
657
  data: props.data
@@ -659,37 +666,39 @@ RenderIconButton.propTypes = {
659
666
  disabled: PropTypes.bool,
660
667
  buttonStyle: PropTypes.any
661
668
  };
662
- const Action = props => {
663
- var _item$menu;
664
- const item = props.actionItem;
669
+ const Action = ({
670
+ actionItem,
671
+ data
672
+ }) => {
673
+ var _actionItem$menu;
665
674
  const isDisabled = item => {
666
- const disabled = item.disabled !== undefined ? item.disabled : false;
667
- return typeof item.disabled === "function" ? item.disabled(props.data) : disabled;
675
+ const disabled = item.disabled || false;
676
+ return typeof item.disabled === "function" ? item.disabled(data) : disabled;
668
677
  };
669
678
  const getName = item => {
670
- const name = item.name !== undefined ? item.name : "button";
671
- return typeof item.name === "function" ? item.name(props.data) : name;
679
+ const name = item.name || "button";
680
+ return typeof item.name === "function" ? item.name(data) : name;
672
681
  };
673
682
  const getStyle = item => {
674
- const style = item.style !== undefined ? item.style : undefined;
675
- return typeof item.style === "function" ? item.style(props.data) : style;
683
+ const style = item.style || undefined;
684
+ return typeof item.style === "function" ? item.style(data) : style;
676
685
  };
677
686
  const getHidden = item => {
678
- const hidden = item.hidden !== undefined ? item.hidden : false;
679
- return typeof item.hidden === "function" ? item.hidden(props.data) : hidden;
680
- };
681
- return getHidden(item) ? /*#__PURE__*/jsx(Fragment, {}) : /*#__PURE__*/jsx(Fragment, {
682
- children: ((_item$menu = item.menu) == null ? void 0 : _item$menu.length) > 0 ? /*#__PURE__*/jsx(ActionMenu, {
683
- name: getName(item),
684
- configuration: item.menu,
685
- data: props.data,
686
- buttonStyle: getStyle(item)
687
+ const hidden = item.hidden || false;
688
+ return typeof item.hidden === "function" ? item.hidden(data) : hidden;
689
+ };
690
+ return getHidden(actionItem) ? /*#__PURE__*/jsx(Fragment, {}) : /*#__PURE__*/jsx(Fragment, {
691
+ children: ((_actionItem$menu = actionItem.menu) == null ? void 0 : _actionItem$menu.length) > 0 ? /*#__PURE__*/jsx(ActionMenu, {
692
+ name: getName(actionItem),
693
+ configuration: actionItem.menu,
694
+ data: data,
695
+ buttonStyle: getStyle(actionItem)
687
696
  }) : /*#__PURE__*/jsx(RenderIconButton, {
688
- name: getName(item),
689
- disabled: isDisabled(item),
690
- item: item,
691
- buttonStyle: getStyle(item),
692
- data: props.data
697
+ name: getName(actionItem),
698
+ disabled: isDisabled(actionItem),
699
+ item: actionItem,
700
+ buttonStyle: getStyle(actionItem),
701
+ data: data
693
702
  })
694
703
  });
695
704
  };
@@ -698,18 +707,20 @@ Action.propTypes = {
698
707
  actionItem: PropTypes.any
699
708
  };
700
709
 
701
- // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
702
- const Actions$1 = props => {
703
- var _props$configuration;
710
+ // Copyright (c) 2023 HelioCampus Inc., all rights reserved.
711
+ const Actions$1 = ({
712
+ data,
713
+ configuration
714
+ }) => {
704
715
  const seededKeyValue = useUIDSeed();
705
716
  const getStyle = item => {
706
717
  const style = item.style !== undefined ? item.style : undefined;
707
- return typeof item.style === "function" ? item.style(props.data) : style;
718
+ return typeof item.style === "function" ? item.style(data) : style;
708
719
  };
709
- return (_props$configuration = props.configuration) == null ? void 0 : _props$configuration.map((item, index) => /*#__PURE__*/jsx("div", {
720
+ return configuration == null ? void 0 : configuration.map((item, index) => /*#__PURE__*/jsx(Box$1, {
710
721
  style: getStyle(item),
711
722
  children: /*#__PURE__*/jsx(Action, {
712
- data: props.data,
723
+ data: data,
713
724
  actionItem: item
714
725
  })
715
726
  }, `actionMenuItem-${seededKeyValue(index)}`));
@@ -760,7 +771,7 @@ const DismissableAlert = props => {
760
771
  }),
761
772
  children: [props.title && /*#__PURE__*/jsx(AlertTitle, {
762
773
  children: props.title
763
- }), props.description && /*#__PURE__*/jsx(Box$1, {
774
+ }), props.description && /*#__PURE__*/jsx(Box$2, {
764
775
  sx: {
765
776
  paddingRight: 0.5
766
777
  },
@@ -805,7 +816,7 @@ const Alert = /*#__PURE__*/forwardRef(function Alert(props, ref) {
805
816
  style.backgroundColor = "transparent";
806
817
  style.color = "#757575";
807
818
  }
808
- return /*#__PURE__*/jsx(Box$1, {
819
+ return /*#__PURE__*/jsx(Box$2, {
809
820
  sx: {
810
821
  width: "100%"
811
822
  },
@@ -825,7 +836,7 @@ const Alert = /*#__PURE__*/forwardRef(function Alert(props, ref) {
825
836
  role: props.role,
826
837
  children: [props.title && /*#__PURE__*/jsx(AlertTitle, {
827
838
  children: props.title
828
- }), props.description && /*#__PURE__*/jsx(Box$1, {
839
+ }), props.description && /*#__PURE__*/jsx(Box$2, {
829
840
  sx: {
830
841
  paddingRight: 0.5
831
842
  },
@@ -1223,10 +1234,10 @@ const AvatarBox = props => {
1223
1234
  titleStyle.minWidth = props.titleMinWidth;
1224
1235
  subtitleStyle.minWidth = props.titleMinWidth;
1225
1236
  }
1226
- return /*#__PURE__*/jsxs(Box$1, {
1237
+ return /*#__PURE__*/jsxs(Box$2, {
1227
1238
  className: props.border ? classes.containerWithBorder : classes.container,
1228
1239
  style: boxStyle,
1229
- children: [props.avatar && /*#__PURE__*/jsx(Box$1, {
1240
+ children: [props.avatar && /*#__PURE__*/jsx(Box$2, {
1230
1241
  sx: {
1231
1242
  display: "",
1232
1243
  alignItems: "center",
@@ -1237,7 +1248,7 @@ const AvatarBox = props => {
1237
1248
  style: avatarStyle,
1238
1249
  children: props.avatar
1239
1250
  })
1240
- }), /*#__PURE__*/jsx(Box$1, {
1251
+ }), /*#__PURE__*/jsx(Box$2, {
1241
1252
  sx: {
1242
1253
  alignSelf: "center",
1243
1254
  alignItems: "center",
@@ -1245,7 +1256,7 @@ const AvatarBox = props => {
1245
1256
  paddingTop: props.condensed ? 0 : 1,
1246
1257
  paddingBottom: props.condensed ? 0 : 1
1247
1258
  },
1248
- children: /*#__PURE__*/jsxs(Box$1, {
1259
+ children: /*#__PURE__*/jsxs(Box$2, {
1249
1260
  sx: {
1250
1261
  padding: 1,
1251
1262
  alignItems: "center"
@@ -1459,11 +1470,11 @@ const AvatarTitle = /*#__PURE__*/React.memo(function AvatarTitle({
1459
1470
  alignItems: contentAlignment === "top" ? "flex-start" : "center"
1460
1471
  };
1461
1472
  const avatarIcon = type === "custom" ? avatar : icon[type];
1462
- return /*#__PURE__*/jsxs(Box$1, {
1473
+ return /*#__PURE__*/jsxs(Box$2, {
1463
1474
  sx: {
1464
1475
  display: "flex"
1465
1476
  },
1466
- children: [/*#__PURE__*/jsxs(Box$1, {
1477
+ children: [/*#__PURE__*/jsxs(Box$2, {
1467
1478
  sx: avatarContainerStyle,
1468
1479
  children: [size === "xsmall" && /*#__PURE__*/jsx(XSmallAvatar, {
1469
1480
  className: classes.avatar,
@@ -1486,7 +1497,7 @@ const AvatarTitle = /*#__PURE__*/React.memo(function AvatarTitle({
1486
1497
  style: avatarStyle[type],
1487
1498
  children: avatarIcon
1488
1499
  })]
1489
- }), /*#__PURE__*/jsxs(Box$1, {
1500
+ }), /*#__PURE__*/jsxs(Box$2, {
1490
1501
  sx: {
1491
1502
  display: "flex",
1492
1503
  flexDirection: "column",
@@ -1557,15 +1568,12 @@ const IconButton = /*#__PURE__*/forwardRef(function IconButton(props, ref) {
1557
1568
  backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.focusOpacity)
1558
1569
  }
1559
1570
  },
1560
- "aria-label": props.name,
1571
+ "aria-label": props.name || "button",
1561
1572
  disableFocusRipple: true
1562
1573
  }, props, {
1563
1574
  ref: ref
1564
1575
  }));
1565
1576
  });
1566
- IconButton.defaultProps = {
1567
- name: "button"
1568
- };
1569
1577
  IconButton.propTypes = {
1570
1578
  name: PropTypes.string.isRequired
1571
1579
  };
@@ -2046,7 +2054,7 @@ const ContentBox = props => {
2046
2054
  headerProps.subheader = props.subtitle;
2047
2055
  }
2048
2056
  if (props.titleBadge) {
2049
- headerProps.title = /*#__PURE__*/jsx(Box$1, {
2057
+ headerProps.title = /*#__PURE__*/jsx(Box$2, {
2050
2058
  children: /*#__PURE__*/jsx(StyledBadge$1, {
2051
2059
  badgeContent: props.titleBadge,
2052
2060
  invisible: invisible,
@@ -2110,10 +2118,10 @@ const ContentBox = props => {
2110
2118
  display: "none",
2111
2119
  visibility: "hidden"
2112
2120
  } : undefined;
2113
- return /*#__PURE__*/jsxs(Box$1, {
2121
+ return /*#__PURE__*/jsxs(Box$2, {
2114
2122
  sx: props.sx,
2115
2123
  style: props.containerStyle,
2116
- children: [props.header && /*#__PURE__*/jsx(Box$1, {
2124
+ children: [props.header && /*#__PURE__*/jsx(Box$2, {
2117
2125
  className: classes.sectionHeader,
2118
2126
  children: /*#__PURE__*/jsx(Typography, {
2119
2127
  variant: "h6",
@@ -2123,7 +2131,7 @@ const ContentBox = props => {
2123
2131
  }), /*#__PURE__*/jsxs(Card, {
2124
2132
  style: cardStyle,
2125
2133
  className: tag.tag,
2126
- children: [useHeaderImage && /*#__PURE__*/jsx(Box$1, {
2134
+ children: [useHeaderImage && /*#__PURE__*/jsx(Box$2, {
2127
2135
  style: imageDivStyle,
2128
2136
  className: classes.imageContainer,
2129
2137
  title: props.title,
@@ -2253,7 +2261,7 @@ const ClickWrapper = ({
2253
2261
  className,
2254
2262
  sx
2255
2263
  }) => {
2256
- return /*#__PURE__*/jsx(Box$1, {
2264
+ return /*#__PURE__*/jsx(Box$2, {
2257
2265
  onKeyDown: e => {
2258
2266
  if (e.key === "Enter" || e.key === " ") {
2259
2267
  e.preventDefault();
@@ -3487,7 +3495,7 @@ const CardSection$1 = _ref => {
3487
3495
  titleComponent
3488
3496
  } = _ref,
3489
3497
  props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3490
- return /*#__PURE__*/jsxs(Box$1, _extends({
3498
+ return /*#__PURE__*/jsxs(Box$2, _extends({
3491
3499
  sx: {
3492
3500
  height: height || "inherit"
3493
3501
  }
@@ -3568,7 +3576,7 @@ const SvgImage = props => {
3568
3576
  width: width,
3569
3577
  height: height
3570
3578
  });
3571
- return /*#__PURE__*/jsx(Box$2, {
3579
+ return /*#__PURE__*/jsx(Box$3, {
3572
3580
  sx: sx,
3573
3581
  width: width,
3574
3582
  height: height,
@@ -3717,7 +3725,7 @@ IsometricImage.propTypes = {
3717
3725
 
3718
3726
  // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
3719
3727
  const EmptyCardSection$1 = props => {
3720
- return /*#__PURE__*/jsx(Box$1, {
3728
+ return /*#__PURE__*/jsx(Box$2, {
3721
3729
  sx: {
3722
3730
  height: props.height,
3723
3731
  maxHeight: props.height,
@@ -3732,7 +3740,7 @@ const EmptyCardSection$1 = props => {
3732
3740
  children: [/*#__PURE__*/jsx(Grid, {
3733
3741
  xs: true,
3734
3742
  item: true,
3735
- children: /*#__PURE__*/jsx(Box$1, {
3743
+ children: /*#__PURE__*/jsx(Box$2, {
3736
3744
  sx: {
3737
3745
  height: props.height,
3738
3746
  padding: 1
@@ -4058,7 +4066,7 @@ const SkeletonCard = () => {
4058
4066
  height: 125
4059
4067
  }
4060
4068
  })
4061
- }), /*#__PURE__*/jsx(Box$1, {
4069
+ }), /*#__PURE__*/jsx(Box$2, {
4062
4070
  p: 3,
4063
4071
  children: /*#__PURE__*/jsxs("div", {
4064
4072
  className: classes.contentContainer,
@@ -4503,7 +4511,7 @@ const SwipeableViews = _ref => {
4503
4511
  });
4504
4512
  }
4505
4513
  }, [props.index]);
4506
- return /*#__PURE__*/jsx(Box$2, _extends({}, containerProps, {
4514
+ return /*#__PURE__*/jsx(Box$3, _extends({}, containerProps, {
4507
4515
  ref: containerRef,
4508
4516
  children: /*#__PURE__*/jsx(ReactSwipeableViews, _extends({}, props))
4509
4517
  }));
@@ -4512,18 +4520,18 @@ SwipeableViews.propTypes = _extends({}, ReactSwipeableViews.propTypes, {
4512
4520
  /** Enables scrollTop on index change */
4513
4521
  enableScrollTop: PropTypes.bool,
4514
4522
  /** Props that applied to Box container component */
4515
- containerProps: PropTypes.shape(Box$2.propTypes)
4523
+ containerProps: PropTypes.shape(Box$3.propTypes)
4516
4524
  });
4517
4525
 
4518
4526
  // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
4519
4527
  const TabPanel = props => {
4520
- return /*#__PURE__*/jsx(Box$1, {
4528
+ return /*#__PURE__*/jsx(Box$2, {
4521
4529
  role: "tabpanel",
4522
4530
  hidden: props.value !== props.index,
4523
4531
  id: `swipeable-tabpanel-${props.index}-${props.uid}`,
4524
4532
  "aria-labelledby": `swipeable-tab-${props.index}-${props.uid}`,
4525
4533
  style: props.style,
4526
- children: props.value === props.index && /*#__PURE__*/jsx(Box$1, {
4534
+ children: props.value === props.index && /*#__PURE__*/jsx(Box$2, {
4527
4535
  p: props.formatContent ? 3 : 0,
4528
4536
  children: props.children
4529
4537
  })
@@ -4736,14 +4744,14 @@ const SwipeableTabPanel = props => {
4736
4744
  className: availableTabs.includes(child.props.id) ? classes.visibleTab : classes.hiddenTab
4737
4745
  }, a11yProps$1(index, uid)), `tabKey-${child.props.id}`))
4738
4746
  }))
4739
- }), /*#__PURE__*/jsx(Box$2, {
4747
+ }), /*#__PURE__*/jsx(Box$3, {
4740
4748
  ref: containerRef,
4741
4749
  sx: getContainerStyle(props.displayType, props.children, props.iconPosition),
4742
4750
  children: /*#__PURE__*/jsx(SwipeableViews, {
4743
4751
  axis: theme.direction === "rtl" ? "x-reverse" : "x",
4744
4752
  index: tabValue,
4745
4753
  onChangeIndex: handleChangeIndex,
4746
- children: props.children.map((child, index) => /*#__PURE__*/jsx(Box$2, {
4754
+ children: props.children.map((child, index) => /*#__PURE__*/jsx(Box$3, {
4747
4755
  sx: {
4748
4756
  flexBasis: "fit-content",
4749
4757
  overflowY: "hidden",
@@ -4815,7 +4823,7 @@ const List = ({
4815
4823
  listProps["dense"] = true;
4816
4824
  listProps["disablePadding"] = true;
4817
4825
  }
4818
- return /*#__PURE__*/jsx(Box$1, {
4826
+ return /*#__PURE__*/jsx(Box$2, {
4819
4827
  sx: rootStyle,
4820
4828
  children: _animate ? /*#__PURE__*/jsx(FadeIn, {
4821
4829
  in: true,
@@ -5062,7 +5070,7 @@ const ListItemGroup = props => {
5062
5070
  },
5063
5071
  children: action.icon
5064
5072
  })
5065
- }, `listItemGroup-${props.id || keyValue}-${action.id || index}`)), props.collapsible && /*#__PURE__*/jsx(Box$1, {
5073
+ }, `listItemGroup-${props.id || keyValue}-${action.id || index}`)), props.collapsible && /*#__PURE__*/jsx(Box$2, {
5066
5074
  sx: {
5067
5075
  marginRight: 1,
5068
5076
  color: "#000000"
@@ -5168,7 +5176,7 @@ const Section = _ref => {
5168
5176
  const isLast = index => {
5169
5177
  return index === arrayChildren.length - 1;
5170
5178
  };
5171
- return /*#__PURE__*/jsxs(Box$1, _extends({
5179
+ return /*#__PURE__*/jsxs(Box$2, _extends({
5172
5180
  sx: containerStyle
5173
5181
  }, props, {
5174
5182
  children: [display === "default" && /*#__PURE__*/jsxs(Fragment, {
@@ -5185,7 +5193,7 @@ const Section = _ref => {
5185
5193
  children: arrayChildren == null ? void 0 : arrayChildren.map((child, index) => /*#__PURE__*/jsx(ListItem, {
5186
5194
  hasBorder: !isLast(index),
5187
5195
  borderStyle: "3px dashed #dddddd",
5188
- children: /*#__PURE__*/jsx(Box$1, {
5196
+ children: /*#__PURE__*/jsx(Box$2, {
5189
5197
  sx: {
5190
5198
  paddingTop: 1,
5191
5199
  paddingBottom: 1
@@ -5236,7 +5244,7 @@ const Header$1 = props => {
5236
5244
  };
5237
5245
  return /*#__PURE__*/jsxs(Fragment, {
5238
5246
  children: [props.imageUrl && /*#__PURE__*/jsxs(Fragment, {
5239
- children: [/*#__PURE__*/jsx(Box$1, {
5247
+ children: [/*#__PURE__*/jsx(Box$2, {
5240
5248
  sx: imageHeaderContainerStyle,
5241
5249
  children: /*#__PURE__*/jsx(Image, {
5242
5250
  src: props.imageUrl,
@@ -5244,7 +5252,7 @@ const Header$1 = props => {
5244
5252
  style: props.imageStyle || imageStyles
5245
5253
  })
5246
5254
  }), /*#__PURE__*/jsx(Divider, {})]
5247
- }), /*#__PURE__*/jsx(Box$1, {
5255
+ }), /*#__PURE__*/jsx(Box$2, {
5248
5256
  sx: containerStyle,
5249
5257
  children: /*#__PURE__*/jsx(AvatarTitle, {
5250
5258
  type: "custom",
@@ -5492,7 +5500,7 @@ const FullScreenAppBar = props => {
5492
5500
  component: "h1",
5493
5501
  className: classes.title,
5494
5502
  children: props.title
5495
- }), /*#__PURE__*/jsxs(Box$1, {
5503
+ }), /*#__PURE__*/jsxs(Box$2, {
5496
5504
  className: classes.root,
5497
5505
  children: [/*#__PURE__*/jsx(Button, {
5498
5506
  name: props.cancelButtonText,
@@ -5510,7 +5518,7 @@ const FullScreenAppBar = props => {
5510
5518
  })]
5511
5519
  }), /*#__PURE__*/jsx(Fade, {
5512
5520
  in: props.showLoadingStatus,
5513
- children: /*#__PURE__*/jsx(Box$1, {
5521
+ children: /*#__PURE__*/jsx(Box$2, {
5514
5522
  className: classes.linearProgressContainer,
5515
5523
  children: /*#__PURE__*/jsx(LinearProgress, {})
5516
5524
  })
@@ -5859,12 +5867,12 @@ const useStyles$w = makeStyles(() => ({
5859
5867
 
5860
5868
  const ScrollingContainer = _ref => {
5861
5869
  let {
5862
- height,
5870
+ height = "100%",
5863
5871
  children,
5864
5872
  onScroll,
5865
- showTopFade,
5866
- showBottomFade,
5867
- component,
5873
+ showTopFade = true,
5874
+ showBottomFade = true,
5875
+ component = "div",
5868
5876
  onScrollReachStart,
5869
5877
  onScrollReachEnd
5870
5878
  } = _ref,
@@ -5883,24 +5891,21 @@ const ScrollingContainer = _ref => {
5883
5891
  useEffect(() => {
5884
5892
  onScroll && onScroll(scrolled);
5885
5893
  });
5886
- return /*#__PURE__*/jsx("div", {
5894
+ const scrollbarArgs = _extends({
5895
+ component: component,
5896
+ style: rootStyle,
5897
+ onScrollY: handleScroll,
5898
+ onYReachStart: onScrollReachStart,
5899
+ onYReachEnd: onScrollReachEnd
5900
+ }, props);
5901
+ return showTopFade || showBottomFade ? /*#__PURE__*/jsx(Box$1, {
5887
5902
  className: showTopFade && showBottomFade ? classes.scroller : showTopFade ? classes.scrollerTopFade : showBottomFade ? classes.scrollerBottomFade : classes.scrollerNoFade,
5888
- children: /*#__PURE__*/jsx(PerfectScrollbar, _extends({
5889
- component: component,
5890
- style: rootStyle,
5891
- onScrollY: handleScroll,
5892
- onYReachStart: onScrollReachStart,
5893
- onYReachEnd: onScrollReachEnd
5894
- }, props, {
5903
+ children: /*#__PURE__*/jsx(PerfectScrollbar, _extends({}, scrollbarArgs, {
5895
5904
  children: children
5896
5905
  }))
5897
- });
5898
- };
5899
- ScrollingContainer.defaultProps = {
5900
- showBottomFade: true,
5901
- showTopFade: true,
5902
- height: "100%",
5903
- component: "div"
5906
+ }) : /*#__PURE__*/jsx(PerfectScrollbar, _extends({}, scrollbarArgs, {
5907
+ children: children
5908
+ }));
5904
5909
  };
5905
5910
  ScrollingContainer.propTypes = {
5906
5911
  /** The height of the container. If no height given, 100% is used. */
@@ -6274,7 +6279,7 @@ const AvatarHeader = props => {
6274
6279
  backgroundColor: props.icon && props.avatarColor ? props.avatarColor : backgroundColor[type]
6275
6280
  };
6276
6281
  };
6277
- return /*#__PURE__*/jsx(Box$1, {
6282
+ return /*#__PURE__*/jsx(Box$2, {
6278
6283
  className: classes.avatarContainer,
6279
6284
  children: props.type === "loading" ? /*#__PURE__*/jsx(CircularProgress$1, {}) : /*#__PURE__*/jsxs(Avatar$1, {
6280
6285
  style: avatarStyle(props.type),
@@ -6319,7 +6324,7 @@ const ImageHeader = /*#__PURE__*/memo(function ImageHeader(props) {
6319
6324
  const imageContainerStyle = {
6320
6325
  height: props.imageHeight ? props.imageHeight : "auto"
6321
6326
  };
6322
- return /*#__PURE__*/jsx(Box$1, {
6327
+ return /*#__PURE__*/jsx(Box$2, {
6323
6328
  style: imageContainerStyle,
6324
6329
  className: props.responsiveImage ? classes.responsiveImageContainer : classes.imageContainer,
6325
6330
  children: /*#__PURE__*/jsx(Image, {
@@ -6376,9 +6381,9 @@ const RenderStatusMessage = props => {
6376
6381
  paddingTop: props.condensed ? 1 : 3,
6377
6382
  paddingBottom: props.condensed ? 1 : 3
6378
6383
  };
6379
- return /*#__PURE__*/jsxs(Box$1, {
6384
+ return /*#__PURE__*/jsxs(Box$2, {
6380
6385
  className: classes.container,
6381
- children: [/*#__PURE__*/jsx(Box$1, {
6386
+ children: [/*#__PURE__*/jsx(Box$2, {
6382
6387
  className: classes.headerContainer,
6383
6388
  sx: headerContainerStyle,
6384
6389
  children: props.imageType !== undefined ? /*#__PURE__*/jsx(ImageHeader, {
@@ -6391,7 +6396,7 @@ const RenderStatusMessage = props => {
6391
6396
  icon: props.icon,
6392
6397
  avatarColor: props.avatarColor
6393
6398
  })
6394
- }), /*#__PURE__*/jsxs(Box$1, {
6399
+ }), /*#__PURE__*/jsxs(Box$2, {
6395
6400
  children: [/*#__PURE__*/jsx(Typography, {
6396
6401
  variant: "h2",
6397
6402
  component: props.titleComponent,
@@ -6404,7 +6409,7 @@ const RenderStatusMessage = props => {
6404
6409
  className: classes.subtitle,
6405
6410
  gutterBottom: true,
6406
6411
  children: props.subtitle
6407
- }), /*#__PURE__*/jsx(Box$1, {
6412
+ }), /*#__PURE__*/jsx(Box$2, {
6408
6413
  className: classes.messageContainer,
6409
6414
  sx: messageContainerStyle,
6410
6415
  children: /*#__PURE__*/jsx(Typography, {
@@ -6604,6 +6609,27 @@ function DataTable(props) {
6604
6609
  const handleSelectAllRows = checkbox => {
6605
6610
  setSelectAllRows(checkbox.target.checked);
6606
6611
  };
6612
+ const defaultHook = hooks => {
6613
+ const actionsColumn = {
6614
+ id: "_actions",
6615
+ disableResizing: true,
6616
+ minWidth: 75,
6617
+ width: 75,
6618
+ maxWidth: 75,
6619
+ Header: /*#__PURE__*/jsx("div", {}),
6620
+ Cell: data => {
6621
+ const rowData = data.row.original || undefined;
6622
+ const rowMenuObj = [{
6623
+ menu: props.rowMenu
6624
+ }];
6625
+ return props.rowMenu ? /*#__PURE__*/jsx(Actions$1, {
6626
+ configuration: rowMenuObj,
6627
+ data: rowData
6628
+ }) : "";
6629
+ }
6630
+ };
6631
+ hooks.allColumns.push(columns => props.rowMenu ? [...columns, actionsColumn] : [...columns]);
6632
+ };
6607
6633
  const selectionHook = hooks => {
6608
6634
  const CheckboxCell = ({
6609
6635
  row
@@ -6656,7 +6682,25 @@ function DataTable(props) {
6656
6682
  // eslint-disable-next-line react/display-name
6657
6683
  Cell
6658
6684
  };
6659
- hooks.allColumns.push(columns => [checkboxColumn, ...columns]);
6685
+ const actionsColumn = {
6686
+ id: "_actions",
6687
+ disableResizing: true,
6688
+ minWidth: 75,
6689
+ width: 75,
6690
+ maxWidth: 75,
6691
+ Header: /*#__PURE__*/jsx("div", {}),
6692
+ Cell: data => {
6693
+ const rowData = data.row.original || undefined;
6694
+ const rowMenuObj = [{
6695
+ menu: props.rowMenu
6696
+ }];
6697
+ return props.rowMenu ? /*#__PURE__*/jsx(Actions$1, {
6698
+ configuration: rowMenuObj,
6699
+ data: rowData
6700
+ }) : "";
6701
+ }
6702
+ };
6703
+ hooks.allColumns.push(columns => props.rowMenu ? [checkboxColumn, ...columns, actionsColumn] : [checkboxColumn, ...columns]);
6660
6704
  hooks.useInstanceBeforeDimensions.push(({
6661
6705
  headerGroups
6662
6706
  }) => {
@@ -6665,7 +6709,7 @@ function DataTable(props) {
6665
6709
  selectionGroupHeader.canResize = false;
6666
6710
  });
6667
6711
  };
6668
- const hooks = useMemo(() => [useColumnOrder, useFilters, useGroupBy, useSortBy, useFlexLayout, usePagination, useResizeColumns, useRowSelect, ...(props.selectable ? [selectionHook] : [])], [props.selectable]);
6712
+ const hooks = useMemo(() => [useColumnOrder, useFilters, useGroupBy, useSortBy, useFlexLayout, usePagination, useResizeColumns, useRowSelect, ...(props.selectable ? [selectionHook] : [defaultHook])], [props.selectable]);
6669
6713
  const useControlledState = state => {
6670
6714
  return useMemo(() => _extends({}, state, {
6671
6715
  selectedRowIds: singleSelection
@@ -6744,14 +6788,14 @@ function DataTable(props) {
6744
6788
  props.style.flex = "";
6745
6789
  return props;
6746
6790
  });
6747
- return /*#__PURE__*/jsx("div", _extends({}, rowProps, {
6791
+ return /*#__PURE__*/jsx(TableRow, _extends({}, rowProps, {
6748
6792
  className: cx(props.rowsHaveActions ? classes.tableRowWithActions : classes.tableRow, {
6749
6793
  rowSelected: row.isSelected
6750
6794
  }),
6751
6795
  children: row.cells.map((cell, index) => {
6752
- return /*#__PURE__*/createElement("div", _extends({}, cell.getCellProps(cellProps), {
6796
+ return /*#__PURE__*/createElement(TableCell, _extends({}, cell.getCellProps(cellProps), {
6753
6797
  key: `dataTableCell-${row.id}-${index}`,
6754
- onClick: () => cellClickHandler(cell),
6798
+ onClick: props.onClick ? () => cellClickHandler(cell) : undefined,
6755
6799
  className: props.displayGrid ? classes.tableCell : classes.tableCellNoGrid
6756
6800
  }), cell.isGrouped ? /*#__PURE__*/jsxs(Fragment, {
6757
6801
  children: [/*#__PURE__*/jsx(TableSortLabel, _extends({
@@ -6781,18 +6825,22 @@ function DataTable(props) {
6781
6825
  });
6782
6826
  }
6783
6827
  }));
6784
- return /*#__PURE__*/jsx("div", {
6828
+ return /*#__PURE__*/jsx(TableContainer, {
6785
6829
  className: props.height ? classes.noHeightContainer : classes.container,
6786
6830
  style: containerStyle,
6787
6831
  ref: containerRef,
6788
- children: /*#__PURE__*/jsxs("div", _extends({
6789
- "aria-label": props.name,
6832
+ children: /*#__PURE__*/jsxs(Table, _extends({
6790
6833
  className: classes.tableTable
6791
6834
  }, getTableProps(), {
6792
- children: [/*#__PURE__*/jsxs("div", {
6835
+ children: [/*#__PURE__*/jsx("caption", {
6836
+ style: {
6837
+ display: "none"
6838
+ },
6839
+ children: props.name
6840
+ }), /*#__PURE__*/jsxs(TableHead, {
6793
6841
  className: classes.tableHead,
6794
6842
  ref: tableHeadRef,
6795
- children: [headerGroups.map(headerGroup => /*#__PURE__*/jsx("div", _extends({}, headerGroup.getHeaderGroupProps(), {
6843
+ children: [headerGroups.map(headerGroup => /*#__PURE__*/jsx(TableRow, _extends({}, headerGroup.getHeaderGroupProps(), {
6796
6844
  className: clsx(classes.tableHeadRow, {
6797
6845
  [classes.tableHeadRowElevated]: headerElevated
6798
6846
  }),
@@ -6800,7 +6848,7 @@ function DataTable(props) {
6800
6848
  const style = {
6801
6849
  textAlign: column.align ? column.align : "left "
6802
6850
  };
6803
- return /*#__PURE__*/jsxs("div", _extends({
6851
+ return /*#__PURE__*/jsxs(TableCell, _extends({
6804
6852
  scope: "col"
6805
6853
  }, column.getHeaderProps(headerProps), {
6806
6854
  className: props.displayGrid ? classes.tableHeadCell : classes.tableHeadCellNoGrid,
@@ -6817,7 +6865,7 @@ function DataTable(props) {
6817
6865
  className: classes.tableSortLabel,
6818
6866
  style: style,
6819
6867
  children: column.render("Header")
6820
- })) : /*#__PURE__*/jsx("div", {
6868
+ })) : /*#__PURE__*/jsx(Box$2, {
6821
6869
  style: style,
6822
6870
  className: classes.tableLabel,
6823
6871
  children: column.render("Header")
@@ -6838,13 +6886,15 @@ function DataTable(props) {
6838
6886
  })
6839
6887
  })]
6840
6888
  }), /*#__PURE__*/jsx(ScrollingContainer, _extends({
6889
+ component: "tbody",
6841
6890
  showTopFade: false,
6891
+ showBottomFade: false,
6842
6892
  onScroll: handleScroll,
6843
6893
  onScrollReachStart: props.onScrollToStart,
6844
6894
  onScrollReachEnd: props.onScrollToEnd,
6845
- height: props.height ? props.height : tableBodyHeight
6895
+ height: props.height ? props.height : tableBodyHeight,
6896
+ className: classes.tableBody
6846
6897
  }, getTableBodyProps(), {
6847
- className: classes.tableBody,
6848
6898
  children: renderTableBody()
6849
6899
  }))]
6850
6900
  }))
@@ -6907,7 +6957,16 @@ DataTable.propTypes = {
6907
6957
  /** define if multiple selection allowed if table selectable */
6908
6958
  multiple: PropTypes.bool,
6909
6959
  /** react table detects unique rows by this function, by default id is used as key param */
6910
- getRowId: PropTypes.func
6960
+ getRowId: PropTypes.func,
6961
+ /** drop-down menu for the row */
6962
+ rowMenu: PropTypes.arrayOf(PropTypes.shape({
6963
+ name: PropTypes.string.isRequired,
6964
+ default: PropTypes.bool,
6965
+ icon: PropTypes.any,
6966
+ hidden: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
6967
+ disabled: PropTypes.any,
6968
+ onClick: PropTypes.func
6969
+ }))
6911
6970
  };
6912
6971
 
6913
6972
  const options = {
@@ -8113,7 +8172,7 @@ const FilterChips = ({
8113
8172
  children: "No filters or sorting criteria selected"
8114
8173
  });
8115
8174
  const Filters = useMemo(() => {
8116
- return /*#__PURE__*/jsx(Box$1, {
8175
+ return /*#__PURE__*/jsx(Box$2, {
8117
8176
  sx: {
8118
8177
  display: "flex",
8119
8178
  flexFlow: "wrap"
@@ -8142,7 +8201,7 @@ const FilterChips = ({
8142
8201
  }, `filterPanelFilter-${filter.index}-${filter.id}`))
8143
8202
  });
8144
8203
  }, [_filters]);
8145
- const SortItems = useMemo(() => /*#__PURE__*/jsx(Box$1, {
8204
+ const SortItems = useMemo(() => /*#__PURE__*/jsx(Box$2, {
8146
8205
  sx: {
8147
8206
  display: "flex",
8148
8207
  flexFlow: "wrap"
@@ -9003,7 +9062,7 @@ const Actions = props => {
9003
9062
  var _props$data;
9004
9063
  return (_props$data = props.data) == null ? void 0 : _props$data.map((item, index) => (!item.hidden || typeof item.hidden === "function" && !item.hidden(props.data)) && /*#__PURE__*/jsx(ListItem, {
9005
9064
  display: "horizontal",
9006
- children: /*#__PURE__*/jsx(Box$1, {
9065
+ children: /*#__PURE__*/jsx(Box$2, {
9007
9066
  sx: {
9008
9067
  marginRight: 1
9009
9068
  },
@@ -9363,7 +9422,7 @@ const renderPreDefinedFilters = ({
9363
9422
  const Breadcrumbs = ({
9364
9423
  data
9365
9424
  }) => {
9366
- return /*#__PURE__*/jsx(Box$1, {
9425
+ return /*#__PURE__*/jsx(Box$2, {
9367
9426
  sx: {
9368
9427
  marginTop: -1
9369
9428
  },
@@ -9565,7 +9624,7 @@ const TitleAndActionHeader = ({
9565
9624
  paddingBottom: gutter ? breadcrumbs != null && breadcrumbs.length ? 2 : 1 : 0
9566
9625
  };
9567
9626
  const hasActions = additionalActions || actions || showExport;
9568
- return /*#__PURE__*/jsxs(Box$1, {
9627
+ return /*#__PURE__*/jsxs(Box$2, {
9569
9628
  sx: mainContainerStyle,
9570
9629
  children: [/*#__PURE__*/jsxs(Grid, {
9571
9630
  className: classes.rootContainer,
@@ -9585,7 +9644,7 @@ const TitleAndActionHeader = ({
9585
9644
  className: classes.title,
9586
9645
  noWrap: true,
9587
9646
  children: title
9588
- }), filterSetConfiguration && /*#__PURE__*/jsxs(Box$1, {
9647
+ }), filterSetConfiguration && /*#__PURE__*/jsxs(Box$2, {
9589
9648
  sx: {
9590
9649
  displayPrint: "none"
9591
9650
  },
@@ -9632,7 +9691,7 @@ const TitleAndActionHeader = ({
9632
9691
  disableSetDefault
9633
9692
  })]
9634
9693
  })]
9635
- }), onFilterClick !== undefined && /*#__PURE__*/jsx(Box$1, {
9694
+ }), onFilterClick !== undefined && /*#__PURE__*/jsx(Box$2, {
9636
9695
  sx: {
9637
9696
  displayPrint: "none"
9638
9697
  },
@@ -9648,7 +9707,7 @@ const TitleAndActionHeader = ({
9648
9707
  item: true,
9649
9708
  xs: 12,
9650
9709
  md: 5,
9651
- children: /*#__PURE__*/jsx(Box$1, {
9710
+ children: /*#__PURE__*/jsx(Box$2, {
9652
9711
  sx: {
9653
9712
  displayPrint: "none"
9654
9713
  },
@@ -9667,7 +9726,7 @@ const TitleAndActionHeader = ({
9667
9726
  })
9668
9727
  })
9669
9728
  })]
9670
- }), (breadcrumbs == null ? void 0 : breadcrumbs.length) && /*#__PURE__*/jsx(Box$1, {
9729
+ }), (breadcrumbs == null ? void 0 : breadcrumbs.length) && /*#__PURE__*/jsx(Box$2, {
9671
9730
  sx: {
9672
9731
  marginTop: -1
9673
9732
  },
@@ -10031,7 +10090,7 @@ const Drawer = props => {
10031
10090
  className: classes.title,
10032
10091
  noWrap: true,
10033
10092
  children: props.title
10034
- }), /*#__PURE__*/jsxs(Box$1, {
10093
+ }), /*#__PURE__*/jsxs(Box$2, {
10035
10094
  style: {
10036
10095
  marginLeft: "auto",
10037
10096
  display: "flex"
@@ -10041,7 +10100,7 @@ const Drawer = props => {
10041
10100
  "aria-label": props.closeButtonText,
10042
10101
  disableElevation: true,
10043
10102
  children: props.closeButtonText
10044
- }), /*#__PURE__*/jsx(Box$1, {
10103
+ }), /*#__PURE__*/jsx(Box$2, {
10045
10104
  style: {
10046
10105
  marginLeft: 8,
10047
10106
  display: "inline-block"
@@ -10082,12 +10141,12 @@ const Drawer = props => {
10082
10141
  })]
10083
10142
  }), /*#__PURE__*/jsx(Fade, {
10084
10143
  in: props.showLoadingStatus,
10085
- children: /*#__PURE__*/jsx(Box$1, {
10144
+ children: /*#__PURE__*/jsx(Box$2, {
10086
10145
  className: classes.linearProgressContainer,
10087
10146
  children: /*#__PURE__*/jsx(LinearProgress, {})
10088
10147
  })
10089
10148
  }), props.headerDivider && /*#__PURE__*/jsx(Divider, {}), props.additionalHeaderContent]
10090
- }), /*#__PURE__*/jsx(Box$1, {
10149
+ }), /*#__PURE__*/jsx(Box$2, {
10091
10150
  className: props.formatContent ? classes.drawerContentWithFormatting : classes.drawerContent,
10092
10151
  children: renderChildren()
10093
10152
  })]
@@ -10274,7 +10333,7 @@ const RenderTimeline = props => {
10274
10333
  minHeight: "calc(100vh - " + containerTop + "px)"
10275
10334
  }
10276
10335
  };
10277
- return /*#__PURE__*/jsx(Box$1, {
10336
+ return /*#__PURE__*/jsx(Box$2, {
10278
10337
  ref: containerRef,
10279
10338
  className: classes.rootContainer,
10280
10339
  sx: containerStyle,
@@ -10515,6 +10574,7 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10515
10574
  const [drawerContent, setDrawerContent] = useState( /*#__PURE__*/jsx("div", {}));
10516
10575
  const [drawerType, setDrawerType] = useState("persistent");
10517
10576
  const [drawerCloseButtonText, setDrawerCloseButtonText] = useState("Exit");
10577
+ const [drawerData, setDrawerData] = useState();
10518
10578
  const [formatDrawerContent, setFormatDrawerContent] = useState(false);
10519
10579
  const [enableTableRowAction, setEnableTableRowAction] = useState(false);
10520
10580
  const [selectedRowCount, setSelectedRowCount] = useState(0);
@@ -10614,7 +10674,9 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10614
10674
  setActiveDrawerType(type);
10615
10675
  setFormatDrawerContent(type !== "filter" ? false : true);
10616
10676
  setDrawerCloseButtonText(type !== "filter" ? "Cancel" : "Exit");
10617
-
10677
+ if (type === "filter") {
10678
+ setDrawerData();
10679
+ }
10618
10680
  // TODO: component should not be state
10619
10681
  setDrawerContent(type !== "filter" ? drawerContent : /*#__PURE__*/jsx(FilterPanel, {
10620
10682
  configuration: props.filterPanelConfig,
@@ -10708,6 +10770,27 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10708
10770
  handleDrawerOpen("panel", "Actions", drawerContent);
10709
10771
  }
10710
10772
  };
10773
+ const processRowActionsForRowMenu = rowActions => {
10774
+ const actionsArray = [];
10775
+ rowActions == null ? void 0 : rowActions.map(action => {
10776
+ if (action.content) {
10777
+ actionsArray.push(_extends({}, action, {
10778
+ action: data => {
10779
+ setDrawerData(data);
10780
+ handleDrawerOpen("custom", action.name, action.content);
10781
+ }
10782
+ }));
10783
+ } else {
10784
+ actionsArray.push(_extends({}, action, {
10785
+ action: data => {
10786
+ action.onclick(data);
10787
+ }
10788
+ }));
10789
+ }
10790
+ });
10791
+ return actionsArray;
10792
+ };
10793
+ const rowMenu = props.rowActionMethod === "menu" ? processRowActionsForRowMenu(props.rowActions) : undefined;
10711
10794
 
10712
10795
  // TODO: get rid of this by wrapping setDrawerOpen and calling onDrawerOpen and onDrawerClose there.
10713
10796
  useEffect(() => {
@@ -10757,10 +10840,11 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10757
10840
  height: props.height,
10758
10841
  onScrollToEnd: handleScrollToEnd,
10759
10842
  onSelectAll: props.onSelectAll,
10760
- onClick: handleRowClick,
10843
+ onClick: props.rowActionMethod === "click" ? handleRowClick : undefined,
10761
10844
  selectable: props.selectable,
10762
10845
  onSelect: handleSelect,
10763
- rowsHaveActions: ((_props$rowActions = props.rowActions) == null ? void 0 : _props$rowActions.length) > 0 || props.showActivityStream,
10846
+ rowMenu: rowMenu || undefined,
10847
+ rowsHaveActions: props.rowActionMethod === "click" ? ((_props$rowActions = props.rowActions) == null ? void 0 : _props$rowActions.length) > 0 || props.showActivityStream : undefined,
10764
10848
  noDataViewProps: _extends({
10765
10849
  message: renderReTryButton()
10766
10850
  }, ((_props$dataTableProps = props.dataTableProps) == null ? void 0 : _props$dataTableProps.noDataViewProps) || {}),
@@ -10779,6 +10863,7 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10779
10863
  drawerType: drawerType,
10780
10864
  showLoadingStatus: false,
10781
10865
  hideCloseButton: false,
10866
+ data: drawerData,
10782
10867
  headerDivider: props.drawerContentBackground === "light" ? false : true,
10783
10868
  paperStyle: {
10784
10869
  boxShadow: drawerType !== "temporary" ? "-8px 0 10px 0 rgb(0 0 0 / 8%)" : "none",
@@ -10803,7 +10888,8 @@ RichDataTable.defaultProps = {
10803
10888
  selectable: true,
10804
10889
  showActivityStream: false,
10805
10890
  drawerContentBackground: "light",
10806
- rowActions: []
10891
+ rowActions: [],
10892
+ rowActionMethod: "click"
10807
10893
  };
10808
10894
  RichDataTable.propTypes = _extends({
10809
10895
  /** The title of the table */
@@ -10881,8 +10967,11 @@ RichDataTable.propTypes = _extends({
10881
10967
  content: PropTypes.any,
10882
10968
  hidden: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
10883
10969
  disabled: PropTypes.any,
10884
- formatContent: PropTypes.bool
10970
+ formatContent: PropTypes.bool,
10971
+ onClick: PropTypes.func
10885
10972
  })),
10973
+ /** Row action method */
10974
+ rowActionMethod: PropTypes.oneOf(["click", "menu"]),
10886
10975
  /** Show the activity stream tab in the drawer panel. */
10887
10976
  showActivityStream: PropTypes.bool,
10888
10977
  /** Function to execute when the data is successfully loaded. The loaded page data and endpoint information is returned. */
@@ -10991,7 +11080,7 @@ const EnhancedSearchDialog = _ref => {
10991
11080
  onClose: handleClose,
10992
11081
  onConfirm: handleSubmit,
10993
11082
  confirmButtonText: confirmButtonText,
10994
- children: /*#__PURE__*/jsx(Box$1, {
11083
+ children: /*#__PURE__*/jsx(Box$2, {
10995
11084
  sx: {
10996
11085
  padding: 2
10997
11086
  },
@@ -11347,7 +11436,7 @@ const BusinessObjectPicker = _ref => {
11347
11436
  }));
11348
11437
  };
11349
11438
  const handleIsOptionEqualToValue = useCallback((a, b) => getKey(a) == getKey(b), []);
11350
- const renderCustomTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$1, {
11439
+ const renderCustomTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$2, {
11351
11440
  sx: {
11352
11441
  overflow: "hidden"
11353
11442
  },
@@ -11361,7 +11450,7 @@ const BusinessObjectPicker = _ref => {
11361
11450
  displayType: "default"
11362
11451
  })
11363
11452
  }, getKey(option))), [props.size, getKey, getLabel, handleTagDelete]);
11364
- const renderTypeTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$1, {
11453
+ const renderTypeTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$2, {
11365
11454
  sx: {
11366
11455
  overflow: "hidden"
11367
11456
  },
@@ -11375,8 +11464,8 @@ const BusinessObjectPicker = _ref => {
11375
11464
  }
11376
11465
  })
11377
11466
  }, getKey(option))), [props.type, props.size, getKey, handleTagDelete]);
11378
- return /*#__PURE__*/jsxs(Box$1, {
11379
- children: [/*#__PURE__*/jsx(Box$1, {
11467
+ return /*#__PURE__*/jsxs(Box$2, {
11468
+ children: [/*#__PURE__*/jsx(Box$2, {
11380
11469
  sx: {
11381
11470
  float: "left",
11382
11471
  width: renderAddItemForm ? AUTOCOMPLETE_WIDTH : "100%"
@@ -11445,6 +11534,7 @@ const BusinessObjectPicker = _ref => {
11445
11534
  color: red[500]
11446
11535
  }
11447
11536
  }), listSelect !== true && /*#__PURE__*/jsx(IconButton, {
11537
+ name: open ? `hide options` : "show options",
11448
11538
  "aria-label": open ? `hide options` : "show options",
11449
11539
  size: "small",
11450
11540
  onClick: () => {
@@ -11458,6 +11548,7 @@ const BusinessObjectPicker = _ref => {
11458
11548
  })
11459
11549
  })
11460
11550
  }), enhancedSearch && /*#__PURE__*/jsx(IconButton, {
11551
+ name: "search",
11461
11552
  "aria-label": "search",
11462
11553
  size: "small",
11463
11554
  onKeyDown: handleKeyDown,
@@ -11481,7 +11572,7 @@ const BusinessObjectPicker = _ref => {
11481
11572
  forcePopupIcon: false,
11482
11573
  isOptionEqualToValue: handleIsOptionEqualToValue
11483
11574
  }, autoCompleteProps))
11484
- }), renderAddItemForm && /*#__PURE__*/jsx(Box$1, {
11575
+ }), renderAddItemForm && /*#__PURE__*/jsx(Box$2, {
11485
11576
  sx: {
11486
11577
  display: "flex",
11487
11578
  justifyContent: "center",
@@ -11489,6 +11580,7 @@ const BusinessObjectPicker = _ref => {
11489
11580
  padding: 1
11490
11581
  },
11491
11582
  children: /*#__PURE__*/jsx(IconButton, {
11583
+ name: "add item",
11492
11584
  onClick: () => {
11493
11585
  eventDispatch({
11494
11586
  name: events.OPEN_ADD_ITEM_DIALOG,
@@ -12074,7 +12166,7 @@ const BusinessObjectStatusButton = props => {
12074
12166
  sx: _extends({
12075
12167
  width: "100%"
12076
12168
  }, styles$1.zeroVerticalPadding),
12077
- children: [/*#__PURE__*/jsx(Box$1, {
12169
+ children: [/*#__PURE__*/jsx(Box$2, {
12078
12170
  component: "span",
12079
12171
  sx: styles$1.menuListItem,
12080
12172
  children: /*#__PURE__*/jsx(Typography, {
@@ -12086,7 +12178,7 @@ const BusinessObjectStatusButton = props => {
12086
12178
  fontSize: "0.8rem",
12087
12179
  children: option.text
12088
12180
  })
12089
- }), /*#__PURE__*/jsx(Box$1, {
12181
+ }), /*#__PURE__*/jsx(Box$2, {
12090
12182
  component: "span",
12091
12183
  sx: styles$1.menuListItem,
12092
12184
  children: /*#__PURE__*/jsx(ArrowForwardIcon, {
@@ -12122,13 +12214,13 @@ const BusinessObjectStatusButton = props => {
12122
12214
  }
12123
12215
  },
12124
12216
  disabled: props.disabled,
12125
- children: [/*#__PURE__*/jsx(Box$1, {
12217
+ children: [/*#__PURE__*/jsx(Box$2, {
12126
12218
  component: "span",
12127
12219
  sx: {
12128
12220
  paddingRight: 1
12129
12221
  },
12130
12222
  children: status
12131
- }), isEditable && /*#__PURE__*/jsx(Box$1, {
12223
+ }), isEditable && /*#__PURE__*/jsx(Box$2, {
12132
12224
  component: "span",
12133
12225
  sx: {
12134
12226
  display: "flex",
@@ -12315,7 +12407,7 @@ const CollapsibleContent = props => {
12315
12407
  id: props.id,
12316
12408
  "aria-hidden": !props.open
12317
12409
  };
12318
- return /*#__PURE__*/jsx(Box$1, {
12410
+ return /*#__PURE__*/jsx(Box$2, {
12319
12411
  "aria-hidden": a11yProps["aria-hidden"],
12320
12412
  children: /*#__PURE__*/jsx(Collapse, _extends({
12321
12413
  in: props.open,
@@ -12428,14 +12520,14 @@ function Collapsible({
12428
12520
  const contentA11yProps = {
12429
12521
  id: contentId
12430
12522
  };
12431
- return /*#__PURE__*/jsxs(Box$1, {
12523
+ return /*#__PURE__*/jsxs(Box$2, {
12432
12524
  sx: sx,
12433
- children: [/*#__PURE__*/jsxs(Box$1, {
12525
+ children: [/*#__PURE__*/jsxs(Box$2, {
12434
12526
  sx: {
12435
12527
  display: "flex",
12436
12528
  flexWrap: "no-wrap"
12437
12529
  },
12438
- children: [/*#__PURE__*/jsx(Box$1, {
12530
+ children: [/*#__PURE__*/jsx(Box$2, {
12439
12531
  sx: {
12440
12532
  flex: 1,
12441
12533
  flexDirection: "column",
@@ -12443,7 +12535,7 @@ function Collapsible({
12443
12535
  display: "flex"
12444
12536
  },
12445
12537
  children: renderHeader == null ? void 0 : renderHeader()
12446
- }), /*#__PURE__*/jsx(Box$1, {
12538
+ }), /*#__PURE__*/jsx(Box$2, {
12447
12539
  children: /*#__PURE__*/jsx(CollapsibleContentButton, _extends({
12448
12540
  id: buttonId,
12449
12541
  open: propOpen || open,
@@ -12706,10 +12798,10 @@ const CurriculumChart = props => {
12706
12798
  setNodes(((_props$data5 = props.data) == null ? void 0 : _props$data5.nodes) || []);
12707
12799
  setEdges(((_props$data6 = props.data) == null ? void 0 : _props$data6.edges) || []);
12708
12800
  }, [props.data]);
12709
- return /*#__PURE__*/jsx(Box$1, {
12801
+ return /*#__PURE__*/jsx(Box$2, {
12710
12802
  sx: rootContainerStyle,
12711
12803
  ref: containerRef,
12712
- children: /*#__PURE__*/jsx(Box$1, {
12804
+ children: /*#__PURE__*/jsx(Box$2, {
12713
12805
  flex: 1,
12714
12806
  overflow: "auto",
12715
12807
  children: /*#__PURE__*/jsx(ReactFlowProvider, {
@@ -12842,14 +12934,14 @@ const DatePickerBase = _ref => {
12842
12934
  fullWidth: true,
12843
12935
  required: required,
12844
12936
  InputProps: {
12845
- endAdornment: /*#__PURE__*/jsxs(Box$3, {
12937
+ endAdornment: /*#__PURE__*/jsxs(Box$4, {
12846
12938
  component: "span",
12847
12939
  sx: {
12848
12940
  display: "flex",
12849
12941
  alignItems: "center",
12850
12942
  flexDirection: "row-reverse"
12851
12943
  },
12852
- children: [inputEndAdornmentText && /*#__PURE__*/jsx(Box$3, {
12944
+ children: [inputEndAdornmentText && /*#__PURE__*/jsx(Box$4, {
12853
12945
  sx: {
12854
12946
  marginRight: 1,
12855
12947
  marginLeft: 1,
@@ -12857,7 +12949,7 @@ const DatePickerBase = _ref => {
12857
12949
  },
12858
12950
  component: "span",
12859
12951
  children: inputEndAdornmentText
12860
- }), showButton && /*#__PURE__*/jsx(Box$3, {
12952
+ }), showButton && /*#__PURE__*/jsx(Box$4, {
12861
12953
  sx: {
12862
12954
  marginRight: 1
12863
12955
  },
@@ -13163,7 +13255,7 @@ const DocViewer = ({
13163
13255
  })();
13164
13256
  }, []);
13165
13257
  if (!_withDialog) {
13166
- return /*#__PURE__*/jsx(Box$2, {
13258
+ return /*#__PURE__*/jsx(Box$3, {
13167
13259
  sx: _extends({
13168
13260
  height: "100vh"
13169
13261
  }, style),
@@ -13185,7 +13277,7 @@ const DocViewer = ({
13185
13277
  title: _title,
13186
13278
  open: open,
13187
13279
  onClose: handleClose,
13188
- children: /*#__PURE__*/jsx(Box$2, {
13280
+ children: /*#__PURE__*/jsx(Box$3, {
13189
13281
  sx: _extends({
13190
13282
  height: "100vh"
13191
13283
  }, style),
@@ -13297,19 +13389,19 @@ const Notification = props => {
13297
13389
  sx: iconStyle
13298
13390
  })
13299
13391
  };
13300
- return /*#__PURE__*/jsx(Box$1, {
13392
+ return /*#__PURE__*/jsx(Box$2, {
13301
13393
  sx: styles.root,
13302
13394
  role: "alert",
13303
- children: /*#__PURE__*/jsx(Box$1, {
13395
+ children: /*#__PURE__*/jsx(Box$2, {
13304
13396
  sx: styles.card,
13305
- children: /*#__PURE__*/jsxs(Box$1, {
13397
+ children: /*#__PURE__*/jsxs(Box$2, {
13306
13398
  sx: _extends({
13307
13399
  backgroundColor: backgroundColor[props.variant]
13308
13400
  }, styles.container),
13309
- children: [icon[props.variant] !== undefined && /*#__PURE__*/jsx(Box$1, {
13401
+ children: [icon[props.variant] !== undefined && /*#__PURE__*/jsx(Box$2, {
13310
13402
  sx: styles.iconContainer,
13311
13403
  children: icon[props.variant]
13312
- }), /*#__PURE__*/jsx(Box$1, {
13404
+ }), /*#__PURE__*/jsx(Box$2, {
13313
13405
  sx: styles.messageContainer,
13314
13406
  children: /*#__PURE__*/jsx(Typography, {
13315
13407
  style: styles.typography,
@@ -13543,7 +13635,7 @@ const BarChart = props => {
13543
13635
  role: "progressbar"
13544
13636
  };
13545
13637
  const keyValue = useUID();
13546
- return /*#__PURE__*/jsxs(Box$1, {
13638
+ return /*#__PURE__*/jsxs(Box$2, {
13547
13639
  role: "figure",
13548
13640
  "aria-labelledby": `bar-chart-${keyValue}`,
13549
13641
  children: [/*#__PURE__*/jsx("title", {
@@ -13554,21 +13646,21 @@ const BarChart = props => {
13554
13646
  sx: titleStyle,
13555
13647
  component: "div",
13556
13648
  children: props.title
13557
- }), /*#__PURE__*/jsx(Box$1, {
13649
+ }), /*#__PURE__*/jsx(Box$2, {
13558
13650
  sx: {
13559
13651
  margin: 0
13560
13652
  },
13561
- children: /*#__PURE__*/jsxs(Box$1, _extends({
13653
+ children: /*#__PURE__*/jsxs(Box$2, _extends({
13562
13654
  className: classes.barChart,
13563
13655
  sx: containerSize
13564
13656
  }, a11yProps, {
13565
- children: [/*#__PURE__*/jsx(Box$1, {
13657
+ children: [/*#__PURE__*/jsx(Box$2, {
13566
13658
  className: classes.bar,
13567
13659
  sx: containerSize
13568
- }), /*#__PURE__*/jsx(Box$1, {
13660
+ }), /*#__PURE__*/jsx(Box$2, {
13569
13661
  className: classes.barProgress,
13570
13662
  style: barStyle$1(value, props.dynamicColor, props.showComplete)
13571
- }), /*#__PURE__*/jsx(Box$1, {
13663
+ }), /*#__PURE__*/jsx(Box$2, {
13572
13664
  className: classes.barTitleContainer,
13573
13665
  children: /*#__PURE__*/jsx(Typography, {
13574
13666
  className: classes.barTitle,
@@ -13901,7 +13993,7 @@ const SliderChart = props => {
13901
13993
  };
13902
13994
  const label = props.title || "Progress";
13903
13995
  const keyValue = useUID();
13904
- return /*#__PURE__*/jsxs(Box$1, {
13996
+ return /*#__PURE__*/jsxs(Box$2, {
13905
13997
  role: "figure",
13906
13998
  "aria-labelledby": `slider-chart-title-${keyValue}`,
13907
13999
  className: classes.container,
@@ -13913,9 +14005,9 @@ const SliderChart = props => {
13913
14005
  sx: titleStyle,
13914
14006
  component: props.titleComponent,
13915
14007
  children: props.title
13916
- }), /*#__PURE__*/jsxs(Box$1, {
14008
+ }), /*#__PURE__*/jsxs(Box$2, {
13917
14009
  className: classes.chartContainer,
13918
- children: [/*#__PURE__*/jsx(Box$1, {
14010
+ children: [/*#__PURE__*/jsx(Box$2, {
13919
14011
  sx: {
13920
14012
  width: "100%"
13921
14013
  },
@@ -13923,7 +14015,7 @@ const SliderChart = props => {
13923
14015
  label: label,
13924
14016
  size: props.size
13925
14017
  }, props))
13926
- }), /*#__PURE__*/jsx(Box$1, {
14018
+ }), /*#__PURE__*/jsx(Box$2, {
13927
14019
  children: /*#__PURE__*/jsx(Typography, {
13928
14020
  style: valueClass,
13929
14021
  children: newSubtitle
@@ -14136,13 +14228,13 @@ const Legend$1 = props => {
14136
14228
  children: /*#__PURE__*/jsxs(Paper, {
14137
14229
  style: classes.container,
14138
14230
  elevation: 3,
14139
- children: [/*#__PURE__*/jsx(Box$1, {
14231
+ children: [/*#__PURE__*/jsx(Box$2, {
14140
14232
  style: getRubricStyle(rubric, classes.rubricCircle),
14141
14233
  children: /*#__PURE__*/jsx(Typography, {
14142
14234
  style: classes.rubricLevel,
14143
14235
  children: rubric.levelLabel
14144
14236
  })
14145
- }), /*#__PURE__*/jsxs(Box$1, {
14237
+ }), /*#__PURE__*/jsxs(Box$2, {
14146
14238
  style: classes.rubricNameContainer,
14147
14239
  children: [props.legendSize === "large" && /*#__PURE__*/jsx(Typography, {
14148
14240
  variant: "subtitle2",
@@ -14823,9 +14915,9 @@ const QontoStepIcon = props => {
14823
14915
  className: props.className,
14824
14916
  children: props.completed ? /*#__PURE__*/jsx(CheckCircle, {
14825
14917
  className: "QontoStepIcon-completedIcon"
14826
- }) : /*#__PURE__*/jsx(Box$1, {
14918
+ }) : /*#__PURE__*/jsx(Box$2, {
14827
14919
  className: "QontoStepIcon-circle",
14828
- children: /*#__PURE__*/jsx(Box$1, {
14920
+ children: /*#__PURE__*/jsx(Box$2, {
14829
14921
  className: "StepText",
14830
14922
  children: props.icon
14831
14923
  })
@@ -14887,10 +14979,10 @@ Header.propTypes = {
14887
14979
  const CompletedItemList = ({
14888
14980
  data
14889
14981
  }) => {
14890
- return /*#__PURE__*/jsx(Box$1, {
14982
+ return /*#__PURE__*/jsx(Box$2, {
14891
14983
  children: /*#__PURE__*/jsx(List, {
14892
14984
  children: data == null ? void 0 : data.map((item, index) => /*#__PURE__*/jsx(ListItem, {
14893
- children: /*#__PURE__*/jsxs(Box$1, {
14985
+ children: /*#__PURE__*/jsxs(Box$2, {
14894
14986
  sx: {
14895
14987
  display: "flex"
14896
14988
  },
@@ -15035,7 +15127,7 @@ const WizardPanel = props => {
15035
15127
  activeStep: activeStep,
15036
15128
  allStepsCompleted: props.completed || isCompleting ? true : false
15037
15129
  })
15038
- }), /*#__PURE__*/jsx(Box$1, {
15130
+ }), /*#__PURE__*/jsx(Box$2, {
15039
15131
  ref: containerRef,
15040
15132
  sx: containerStyle,
15041
15133
  style: props.display === "drawer" ? stepsContainer : undefined,
@@ -15044,7 +15136,7 @@ const WizardPanel = props => {
15044
15136
  index: activeStep,
15045
15137
  children: (_props$panels3 = props.panels) == null ? void 0 : _props$panels3.map((step, index) => {
15046
15138
  var _step$completedItems;
15047
- return /*#__PURE__*/jsxs(Box$1, {
15139
+ return /*#__PURE__*/jsxs(Box$2, {
15048
15140
  value: activeStep,
15049
15141
  index: index,
15050
15142
  dir: theme.direction,
@@ -15070,9 +15162,9 @@ const WizardPanel = props => {
15070
15162
  }, `wizardPanelKey-${step.id}`);
15071
15163
  })
15072
15164
  })
15073
- }), /*#__PURE__*/jsx(Box$1, {
15165
+ }), /*#__PURE__*/jsx(Box$2, {
15074
15166
  style: bottomBarStyle,
15075
- children: /*#__PURE__*/jsxs(Box$1, {
15167
+ children: /*#__PURE__*/jsxs(Box$2, {
15076
15168
  className: classes.buttonContainer,
15077
15169
  children: [/*#__PURE__*/jsx(Button, {
15078
15170
  "aria-label": "Back",
@@ -15250,19 +15342,19 @@ const subtitleContainerStyle = {
15250
15342
  };
15251
15343
  const Legend = props => {
15252
15344
  var _props$data;
15253
- return /*#__PURE__*/jsx(Box$1, {
15345
+ return /*#__PURE__*/jsx(Box$2, {
15254
15346
  sx: {
15255
15347
  padding: 1
15256
15348
  },
15257
- children: (_props$data = props.data) == null ? void 0 : _props$data.map(rubric => /*#__PURE__*/jsxs(Box$1, {
15349
+ children: (_props$data = props.data) == null ? void 0 : _props$data.map(rubric => /*#__PURE__*/jsxs(Box$2, {
15258
15350
  sx: {
15259
15351
  mb: "2px"
15260
15352
  },
15261
- children: [/*#__PURE__*/jsxs(Box$1, {
15353
+ children: [/*#__PURE__*/jsxs(Box$2, {
15262
15354
  sx: {
15263
15355
  display: "flex"
15264
15356
  },
15265
- children: [/*#__PURE__*/jsx(Box$1, {
15357
+ children: [/*#__PURE__*/jsx(Box$2, {
15266
15358
  sx: _extends({
15267
15359
  borderRadius: "50%",
15268
15360
  backgroundColor: rubric.color
@@ -15275,7 +15367,7 @@ const Legend = props => {
15275
15367
  component: "p",
15276
15368
  children: rubric.name
15277
15369
  })]
15278
- }), /*#__PURE__*/jsxs(Box$1, {
15370
+ }), /*#__PURE__*/jsxs(Box$2, {
15279
15371
  sx: _extends({
15280
15372
  display: "flex",
15281
15373
  alignItems: "center"
@@ -15498,7 +15590,7 @@ const RubricDistributionChart = props => {
15498
15590
  const keyValue = useUID();
15499
15591
  const validatedData = replaceDuplicateColor(props.data);
15500
15592
  const rubricsDataWithPercent = addPercentValue(validatedData);
15501
- return /*#__PURE__*/jsxs(Box$1, {
15593
+ return /*#__PURE__*/jsxs(Box$2, {
15502
15594
  role: "figure",
15503
15595
  "aria-labelledby": `bar-chart-${keyValue}`,
15504
15596
  children: [/*#__PURE__*/jsx("title", {
@@ -15509,18 +15601,18 @@ const RubricDistributionChart = props => {
15509
15601
  sx: titleStyle,
15510
15602
  component: props.titleComponent,
15511
15603
  children: props.title
15512
- }), /*#__PURE__*/jsx(Box$1, {
15604
+ }), /*#__PURE__*/jsx(Box$2, {
15513
15605
  sx: {
15514
15606
  margin: 0
15515
15607
  },
15516
- children: /*#__PURE__*/jsxs(Box$1, _extends({
15608
+ children: /*#__PURE__*/jsxs(Box$2, _extends({
15517
15609
  className: classes.barChart,
15518
15610
  sx: containerSize
15519
15611
  }, a11yProps, {
15520
- children: [/*#__PURE__*/jsx(Box$1, {
15612
+ children: [/*#__PURE__*/jsx(Box$2, {
15521
15613
  className: classes.bar,
15522
15614
  sx: containerSize
15523
- }), rubricsDataWithPercent == null ? void 0 : rubricsDataWithPercent.map((rubric, index) => /*#__PURE__*/jsx(Box$1, {
15615
+ }), rubricsDataWithPercent == null ? void 0 : rubricsDataWithPercent.map((rubric, index) => /*#__PURE__*/jsx(Box$2, {
15524
15616
  className: classes.barProgress,
15525
15617
  "aria-label": rubric.name,
15526
15618
  "aria-valuemax": getOverallTotal(rubricsDataWithPercent),
@@ -15581,7 +15673,7 @@ const _excluded$6 = ["rules"];
15581
15673
  const FieldWrapper = ({
15582
15674
  children
15583
15675
  }) => {
15584
- return /*#__PURE__*/jsx(Box$1, {
15676
+ return /*#__PURE__*/jsx(Box$2, {
15585
15677
  sx: {
15586
15678
  paddingTop: 1,
15587
15679
  overflow: "auto"
@@ -15670,7 +15762,7 @@ function Row({
15670
15762
  ruleIndex
15671
15763
  });
15672
15764
  }, [groupId, ruleId, index, ruleIndex]);
15673
- return /*#__PURE__*/jsxs(Box$1, {
15765
+ return /*#__PURE__*/jsxs(Box$2, {
15674
15766
  sx: {
15675
15767
  display: "flex",
15676
15768
  flexWrap: "no-wrap",
@@ -15718,7 +15810,7 @@ function Row({
15718
15810
  children: templateValueField
15719
15811
  })
15720
15812
  })]
15721
- }), /*#__PURE__*/jsx(Box$1, {
15813
+ }), /*#__PURE__*/jsx(Box$2, {
15722
15814
  sx: {
15723
15815
  width: "48px",
15724
15816
  marginTop: "22px"
@@ -15780,7 +15872,7 @@ const RuleGroup = /*#__PURE__*/memo(_ref => {
15780
15872
  rules
15781
15873
  } = _ref,
15782
15874
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
15783
- return /*#__PURE__*/jsx(Box$1, {
15875
+ return /*#__PURE__*/jsx(Box$2, {
15784
15876
  sx: {
15785
15877
  paddingBottom: 1
15786
15878
  },
@@ -15804,13 +15896,13 @@ const RuleGroupFooter = /*#__PURE__*/memo(({
15804
15896
  groupIndex,
15805
15897
  onGroupDelete,
15806
15898
  onRuleAdd
15807
- }) => /*#__PURE__*/jsx(Box$1, {
15899
+ }) => /*#__PURE__*/jsx(Box$2, {
15808
15900
  sx: {
15809
15901
  display: "flex",
15810
15902
  justifyContent: "end",
15811
15903
  marginRight: 6
15812
15904
  },
15813
- children: /*#__PURE__*/jsxs(Box$1, {
15905
+ children: /*#__PURE__*/jsxs(Box$2, {
15814
15906
  sx: {
15815
15907
  display: "flex",
15816
15908
  flexDirection: "row"
@@ -15842,16 +15934,16 @@ RuleGroupFooter.propTypes = {
15842
15934
  const BuilderHeader = /*#__PURE__*/memo(({
15843
15935
  onAdd,
15844
15936
  children
15845
- }) => /*#__PURE__*/jsxs(Box$1, {
15937
+ }) => /*#__PURE__*/jsxs(Box$2, {
15846
15938
  sx: {
15847
15939
  display: "flex"
15848
15940
  },
15849
- children: [/*#__PURE__*/jsx(Box$1, {
15941
+ children: [/*#__PURE__*/jsx(Box$2, {
15850
15942
  sx: {
15851
15943
  flex: 1
15852
15944
  },
15853
15945
  children: children
15854
- }), /*#__PURE__*/jsx(Box$1, {
15946
+ }), /*#__PURE__*/jsx(Box$2, {
15855
15947
  sx: {
15856
15948
  display: "flex",
15857
15949
  justifyContent: "end",
@@ -15871,7 +15963,7 @@ const RuleGroupIndex = /*#__PURE__*/memo(({
15871
15963
  index,
15872
15964
  isFirst,
15873
15965
  isLast
15874
- }) => /*#__PURE__*/jsx(Box$1, {
15966
+ }) => /*#__PURE__*/jsx(Box$2, {
15875
15967
  sx: {
15876
15968
  display: "flex",
15877
15969
  flexDirection: "column",
@@ -15879,7 +15971,7 @@ const RuleGroupIndex = /*#__PURE__*/memo(({
15879
15971
  width: "40px",
15880
15972
  height: "88px"
15881
15973
  },
15882
- children: /*#__PURE__*/jsxs(Box$1, {
15974
+ children: /*#__PURE__*/jsxs(Box$2, {
15883
15975
  sx: {
15884
15976
  display: "flex",
15885
15977
  flexDirection: "column",
@@ -16153,7 +16245,7 @@ const TextBuilder = /*#__PURE__*/memo(({
16153
16245
  groupIndex,
16154
16246
  defaultRule
16155
16247
  }), [defaultRule]);
16156
- return /*#__PURE__*/jsxs(Box$1, {
16248
+ return /*#__PURE__*/jsxs(Box$2, {
16157
16249
  sx: {
16158
16250
  ".MuiFormControl-root": {
16159
16251
  background: "white"
@@ -16170,7 +16262,7 @@ const TextBuilder = /*#__PURE__*/memo(({
16170
16262
  sx: {
16171
16263
  paddingBottom: 2
16172
16264
  },
16173
- children: /*#__PURE__*/jsxs(Box$1, {
16265
+ children: /*#__PURE__*/jsxs(Box$2, {
16174
16266
  sx: {
16175
16267
  display: "flex",
16176
16268
  flexWrap: "no-wrap"
@@ -16181,7 +16273,7 @@ const TextBuilder = /*#__PURE__*/memo(({
16181
16273
  isLast: index === rows.length - 1,
16182
16274
  index: index,
16183
16275
  groupId: groupId
16184
- }), /*#__PURE__*/jsxs(Box$1, {
16276
+ }), /*#__PURE__*/jsxs(Box$2, {
16185
16277
  sx: {
16186
16278
  flex: 1
16187
16279
  },
@@ -16453,7 +16545,7 @@ const FormButtons = ({
16453
16545
  });
16454
16546
  };
16455
16547
  }
16456
- return /*#__PURE__*/jsxs(Box$1, _extends({
16548
+ return /*#__PURE__*/jsxs(Box$2, _extends({
16457
16549
  className: classes.bottomButtonContainer
16458
16550
  }, hidden && {
16459
16551
  style: {
@@ -17520,8 +17612,8 @@ const ReadOnlyView = ({
17520
17612
  });
17521
17613
  }
17522
17614
  if (multiple) {
17523
- return /*#__PURE__*/jsx(Box$2, {
17524
- children: value.map(item => /*#__PURE__*/jsx(Box$2, {
17615
+ return /*#__PURE__*/jsx(Box$3, {
17616
+ children: value.map(item => /*#__PURE__*/jsx(Box$3, {
17525
17617
  sx: {
17526
17618
  paddingBottom: "2px",
17527
17619
  paddingRight: "2px"
@@ -17704,7 +17796,7 @@ const DateSelectReadOnly$2 = props => {
17704
17796
  }), /*#__PURE__*/jsx(Typography, {
17705
17797
  color: "text.secondary",
17706
17798
  variant: "body1",
17707
- children: /*#__PURE__*/jsxs(Box$1, {
17799
+ children: /*#__PURE__*/jsxs(Box$2, {
17708
17800
  sx: {
17709
17801
  display: "flex"
17710
17802
  },
@@ -17727,7 +17819,7 @@ const DateSelectReadOnly$2 = props => {
17727
17819
  }), /*#__PURE__*/jsx(Typography, {
17728
17820
  color: "text.secondary",
17729
17821
  variant: "body1",
17730
- children: /*#__PURE__*/jsxs(Box$1, {
17822
+ children: /*#__PURE__*/jsxs(Box$2, {
17731
17823
  sx: {
17732
17824
  display: "flex"
17733
17825
  },
@@ -18104,7 +18196,7 @@ const DisableWrapper = ({
18104
18196
  };
18105
18197
 
18106
18198
  const FieldContainer = props => {
18107
- return /*#__PURE__*/jsx(Box$2, _extends({}, props, {
18199
+ return /*#__PURE__*/jsx(Box$3, _extends({}, props, {
18108
18200
  sx: _extends({}, props.sx, {
18109
18201
  "& > div": {
18110
18202
  width: "100%"
@@ -18112,7 +18204,7 @@ const FieldContainer = props => {
18112
18204
  })
18113
18205
  }));
18114
18206
  };
18115
- FieldContainer.propTypes = Box$2.propTypes;
18207
+ FieldContainer.propTypes = Box$3.propTypes;
18116
18208
 
18117
18209
  registerPlugin(FilePondPluginFileValidateType, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginGetFile);
18118
18210
 
@@ -18324,7 +18416,7 @@ const Upload = props => {
18324
18416
  allowFileTypeValidation: false
18325
18417
  };
18326
18418
  const overrideProps = typeof inputProps === "function" ? inputProps(filePondProps) : inputProps;
18327
- return /*#__PURE__*/jsx(Box$1, {
18419
+ return /*#__PURE__*/jsx(Box$2, {
18328
18420
  sx: styles,
18329
18421
  children: /*#__PURE__*/jsx(FilePond, _extends({
18330
18422
  ref: filePondRef
@@ -18354,7 +18446,7 @@ const Upload = props => {
18354
18446
  },
18355
18447
  htmlFor: `${schema.title}-helper`,
18356
18448
  children: schema.title
18357
- }), /*#__PURE__*/jsx(Box$1, {
18449
+ }), /*#__PURE__*/jsx(Box$2, {
18358
18450
  sx: {
18359
18451
  marginTop: 1
18360
18452
  },