aefis-core-ui 2.3.0-rc46 → 2.3.0-rc48

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, {
@@ -6656,7 +6661,25 @@ function DataTable(props) {
6656
6661
  // eslint-disable-next-line react/display-name
6657
6662
  Cell
6658
6663
  };
6659
- hooks.allColumns.push(columns => [checkboxColumn, ...columns]);
6664
+ const actionsColumn = {
6665
+ id: "_actions",
6666
+ disableResizing: true,
6667
+ minWidth: 75,
6668
+ width: 75,
6669
+ maxWidth: 75,
6670
+ Header: /*#__PURE__*/jsx("div", {}),
6671
+ Cell: data => {
6672
+ const rowData = data.row.original || undefined;
6673
+ const rowMenuObj = [{
6674
+ menu: props.rowMenu
6675
+ }];
6676
+ return props.rowMenu ? /*#__PURE__*/jsx(Actions$1, {
6677
+ configuration: rowMenuObj,
6678
+ data: rowData
6679
+ }) : "";
6680
+ }
6681
+ };
6682
+ hooks.allColumns.push(columns => props.rowMenu ? [checkboxColumn, ...columns, actionsColumn] : [checkboxColumn, ...columns]);
6660
6683
  hooks.useInstanceBeforeDimensions.push(({
6661
6684
  headerGroups
6662
6685
  }) => {
@@ -6744,14 +6767,14 @@ function DataTable(props) {
6744
6767
  props.style.flex = "";
6745
6768
  return props;
6746
6769
  });
6747
- return /*#__PURE__*/jsx("div", _extends({}, rowProps, {
6770
+ return /*#__PURE__*/jsx(TableRow, _extends({}, rowProps, {
6748
6771
  className: cx(props.rowsHaveActions ? classes.tableRowWithActions : classes.tableRow, {
6749
6772
  rowSelected: row.isSelected
6750
6773
  }),
6751
6774
  children: row.cells.map((cell, index) => {
6752
- return /*#__PURE__*/createElement("div", _extends({}, cell.getCellProps(cellProps), {
6775
+ return /*#__PURE__*/createElement(TableCell, _extends({}, cell.getCellProps(cellProps), {
6753
6776
  key: `dataTableCell-${row.id}-${index}`,
6754
- onClick: () => cellClickHandler(cell),
6777
+ onClick: props.onClick ? () => cellClickHandler(cell) : undefined,
6755
6778
  className: props.displayGrid ? classes.tableCell : classes.tableCellNoGrid
6756
6779
  }), cell.isGrouped ? /*#__PURE__*/jsxs(Fragment, {
6757
6780
  children: [/*#__PURE__*/jsx(TableSortLabel, _extends({
@@ -6781,18 +6804,22 @@ function DataTable(props) {
6781
6804
  });
6782
6805
  }
6783
6806
  }));
6784
- return /*#__PURE__*/jsx("div", {
6807
+ return /*#__PURE__*/jsx(TableContainer, {
6785
6808
  className: props.height ? classes.noHeightContainer : classes.container,
6786
6809
  style: containerStyle,
6787
6810
  ref: containerRef,
6788
- children: /*#__PURE__*/jsxs("div", _extends({
6789
- "aria-label": props.name,
6811
+ children: /*#__PURE__*/jsxs(Table, _extends({
6790
6812
  className: classes.tableTable
6791
6813
  }, getTableProps(), {
6792
- children: [/*#__PURE__*/jsxs("div", {
6814
+ children: [/*#__PURE__*/jsx("caption", {
6815
+ style: {
6816
+ display: "none"
6817
+ },
6818
+ children: props.name
6819
+ }), /*#__PURE__*/jsxs(TableHead, {
6793
6820
  className: classes.tableHead,
6794
6821
  ref: tableHeadRef,
6795
- children: [headerGroups.map(headerGroup => /*#__PURE__*/jsx("div", _extends({}, headerGroup.getHeaderGroupProps(), {
6822
+ children: [headerGroups.map(headerGroup => /*#__PURE__*/jsx(TableRow, _extends({}, headerGroup.getHeaderGroupProps(), {
6796
6823
  className: clsx(classes.tableHeadRow, {
6797
6824
  [classes.tableHeadRowElevated]: headerElevated
6798
6825
  }),
@@ -6800,7 +6827,7 @@ function DataTable(props) {
6800
6827
  const style = {
6801
6828
  textAlign: column.align ? column.align : "left "
6802
6829
  };
6803
- return /*#__PURE__*/jsxs("div", _extends({
6830
+ return /*#__PURE__*/jsxs(TableCell, _extends({
6804
6831
  scope: "col"
6805
6832
  }, column.getHeaderProps(headerProps), {
6806
6833
  className: props.displayGrid ? classes.tableHeadCell : classes.tableHeadCellNoGrid,
@@ -6817,7 +6844,7 @@ function DataTable(props) {
6817
6844
  className: classes.tableSortLabel,
6818
6845
  style: style,
6819
6846
  children: column.render("Header")
6820
- })) : /*#__PURE__*/jsx("div", {
6847
+ })) : /*#__PURE__*/jsx(Box$2, {
6821
6848
  style: style,
6822
6849
  className: classes.tableLabel,
6823
6850
  children: column.render("Header")
@@ -6838,13 +6865,15 @@ function DataTable(props) {
6838
6865
  })
6839
6866
  })]
6840
6867
  }), /*#__PURE__*/jsx(ScrollingContainer, _extends({
6868
+ component: "tbody",
6841
6869
  showTopFade: false,
6870
+ showBottomFade: false,
6842
6871
  onScroll: handleScroll,
6843
6872
  onScrollReachStart: props.onScrollToStart,
6844
6873
  onScrollReachEnd: props.onScrollToEnd,
6845
- height: props.height ? props.height : tableBodyHeight
6874
+ height: props.height ? props.height : tableBodyHeight,
6875
+ className: classes.tableBody
6846
6876
  }, getTableBodyProps(), {
6847
- className: classes.tableBody,
6848
6877
  children: renderTableBody()
6849
6878
  }))]
6850
6879
  }))
@@ -6907,7 +6936,16 @@ DataTable.propTypes = {
6907
6936
  /** define if multiple selection allowed if table selectable */
6908
6937
  multiple: PropTypes.bool,
6909
6938
  /** react table detects unique rows by this function, by default id is used as key param */
6910
- getRowId: PropTypes.func
6939
+ getRowId: PropTypes.func,
6940
+ /** drop-down menu for the row */
6941
+ rowMenu: PropTypes.arrayOf(PropTypes.shape({
6942
+ name: PropTypes.string.isRequired,
6943
+ default: PropTypes.bool,
6944
+ icon: PropTypes.any,
6945
+ hidden: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
6946
+ disabled: PropTypes.any,
6947
+ onClick: PropTypes.func
6948
+ }))
6911
6949
  };
6912
6950
 
6913
6951
  const options = {
@@ -8113,7 +8151,7 @@ const FilterChips = ({
8113
8151
  children: "No filters or sorting criteria selected"
8114
8152
  });
8115
8153
  const Filters = useMemo(() => {
8116
- return /*#__PURE__*/jsx(Box$1, {
8154
+ return /*#__PURE__*/jsx(Box$2, {
8117
8155
  sx: {
8118
8156
  display: "flex",
8119
8157
  flexFlow: "wrap"
@@ -8142,7 +8180,7 @@ const FilterChips = ({
8142
8180
  }, `filterPanelFilter-${filter.index}-${filter.id}`))
8143
8181
  });
8144
8182
  }, [_filters]);
8145
- const SortItems = useMemo(() => /*#__PURE__*/jsx(Box$1, {
8183
+ const SortItems = useMemo(() => /*#__PURE__*/jsx(Box$2, {
8146
8184
  sx: {
8147
8185
  display: "flex",
8148
8186
  flexFlow: "wrap"
@@ -9003,7 +9041,7 @@ const Actions = props => {
9003
9041
  var _props$data;
9004
9042
  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
9043
  display: "horizontal",
9006
- children: /*#__PURE__*/jsx(Box$1, {
9044
+ children: /*#__PURE__*/jsx(Box$2, {
9007
9045
  sx: {
9008
9046
  marginRight: 1
9009
9047
  },
@@ -9363,7 +9401,7 @@ const renderPreDefinedFilters = ({
9363
9401
  const Breadcrumbs = ({
9364
9402
  data
9365
9403
  }) => {
9366
- return /*#__PURE__*/jsx(Box$1, {
9404
+ return /*#__PURE__*/jsx(Box$2, {
9367
9405
  sx: {
9368
9406
  marginTop: -1
9369
9407
  },
@@ -9565,7 +9603,7 @@ const TitleAndActionHeader = ({
9565
9603
  paddingBottom: gutter ? breadcrumbs != null && breadcrumbs.length ? 2 : 1 : 0
9566
9604
  };
9567
9605
  const hasActions = additionalActions || actions || showExport;
9568
- return /*#__PURE__*/jsxs(Box$1, {
9606
+ return /*#__PURE__*/jsxs(Box$2, {
9569
9607
  sx: mainContainerStyle,
9570
9608
  children: [/*#__PURE__*/jsxs(Grid, {
9571
9609
  className: classes.rootContainer,
@@ -9585,7 +9623,7 @@ const TitleAndActionHeader = ({
9585
9623
  className: classes.title,
9586
9624
  noWrap: true,
9587
9625
  children: title
9588
- }), filterSetConfiguration && /*#__PURE__*/jsxs(Box$1, {
9626
+ }), filterSetConfiguration && /*#__PURE__*/jsxs(Box$2, {
9589
9627
  sx: {
9590
9628
  displayPrint: "none"
9591
9629
  },
@@ -9632,7 +9670,7 @@ const TitleAndActionHeader = ({
9632
9670
  disableSetDefault
9633
9671
  })]
9634
9672
  })]
9635
- }), onFilterClick !== undefined && /*#__PURE__*/jsx(Box$1, {
9673
+ }), onFilterClick !== undefined && /*#__PURE__*/jsx(Box$2, {
9636
9674
  sx: {
9637
9675
  displayPrint: "none"
9638
9676
  },
@@ -9648,7 +9686,7 @@ const TitleAndActionHeader = ({
9648
9686
  item: true,
9649
9687
  xs: 12,
9650
9688
  md: 5,
9651
- children: /*#__PURE__*/jsx(Box$1, {
9689
+ children: /*#__PURE__*/jsx(Box$2, {
9652
9690
  sx: {
9653
9691
  displayPrint: "none"
9654
9692
  },
@@ -9667,7 +9705,7 @@ const TitleAndActionHeader = ({
9667
9705
  })
9668
9706
  })
9669
9707
  })]
9670
- }), (breadcrumbs == null ? void 0 : breadcrumbs.length) && /*#__PURE__*/jsx(Box$1, {
9708
+ }), (breadcrumbs == null ? void 0 : breadcrumbs.length) && /*#__PURE__*/jsx(Box$2, {
9671
9709
  sx: {
9672
9710
  marginTop: -1
9673
9711
  },
@@ -10031,7 +10069,7 @@ const Drawer = props => {
10031
10069
  className: classes.title,
10032
10070
  noWrap: true,
10033
10071
  children: props.title
10034
- }), /*#__PURE__*/jsxs(Box$1, {
10072
+ }), /*#__PURE__*/jsxs(Box$2, {
10035
10073
  style: {
10036
10074
  marginLeft: "auto",
10037
10075
  display: "flex"
@@ -10041,7 +10079,7 @@ const Drawer = props => {
10041
10079
  "aria-label": props.closeButtonText,
10042
10080
  disableElevation: true,
10043
10081
  children: props.closeButtonText
10044
- }), /*#__PURE__*/jsx(Box$1, {
10082
+ }), /*#__PURE__*/jsx(Box$2, {
10045
10083
  style: {
10046
10084
  marginLeft: 8,
10047
10085
  display: "inline-block"
@@ -10082,12 +10120,12 @@ const Drawer = props => {
10082
10120
  })]
10083
10121
  }), /*#__PURE__*/jsx(Fade, {
10084
10122
  in: props.showLoadingStatus,
10085
- children: /*#__PURE__*/jsx(Box$1, {
10123
+ children: /*#__PURE__*/jsx(Box$2, {
10086
10124
  className: classes.linearProgressContainer,
10087
10125
  children: /*#__PURE__*/jsx(LinearProgress, {})
10088
10126
  })
10089
10127
  }), props.headerDivider && /*#__PURE__*/jsx(Divider, {}), props.additionalHeaderContent]
10090
- }), /*#__PURE__*/jsx(Box$1, {
10128
+ }), /*#__PURE__*/jsx(Box$2, {
10091
10129
  className: props.formatContent ? classes.drawerContentWithFormatting : classes.drawerContent,
10092
10130
  children: renderChildren()
10093
10131
  })]
@@ -10274,7 +10312,7 @@ const RenderTimeline = props => {
10274
10312
  minHeight: "calc(100vh - " + containerTop + "px)"
10275
10313
  }
10276
10314
  };
10277
- return /*#__PURE__*/jsx(Box$1, {
10315
+ return /*#__PURE__*/jsx(Box$2, {
10278
10316
  ref: containerRef,
10279
10317
  className: classes.rootContainer,
10280
10318
  sx: containerStyle,
@@ -10515,6 +10553,7 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10515
10553
  const [drawerContent, setDrawerContent] = useState( /*#__PURE__*/jsx("div", {}));
10516
10554
  const [drawerType, setDrawerType] = useState("persistent");
10517
10555
  const [drawerCloseButtonText, setDrawerCloseButtonText] = useState("Exit");
10556
+ const [drawerData, setDrawerData] = useState();
10518
10557
  const [formatDrawerContent, setFormatDrawerContent] = useState(false);
10519
10558
  const [enableTableRowAction, setEnableTableRowAction] = useState(false);
10520
10559
  const [selectedRowCount, setSelectedRowCount] = useState(0);
@@ -10614,6 +10653,9 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10614
10653
  setActiveDrawerType(type);
10615
10654
  setFormatDrawerContent(type !== "filter" ? false : true);
10616
10655
  setDrawerCloseButtonText(type !== "filter" ? "Cancel" : "Exit");
10656
+ if (type === "filter") {
10657
+ setDrawerData();
10658
+ }
10617
10659
 
10618
10660
  // TODO: component should not be state
10619
10661
  setDrawerContent(type !== "filter" ? drawerContent : /*#__PURE__*/jsx(FilterPanel, {
@@ -10708,6 +10750,27 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10708
10750
  handleDrawerOpen("panel", "Actions", drawerContent);
10709
10751
  }
10710
10752
  };
10753
+ const processRowActionsForRowMenu = rowActions => {
10754
+ const actionsArray = [];
10755
+ rowActions == null ? void 0 : rowActions.map(action => {
10756
+ if (action.content) {
10757
+ actionsArray.push(_extends({}, action, {
10758
+ action: data => {
10759
+ setDrawerData(data);
10760
+ handleDrawerOpen("custom", action.name, action.content);
10761
+ }
10762
+ }));
10763
+ } else {
10764
+ actionsArray.push(_extends({}, action, {
10765
+ action: data => {
10766
+ action.onclick(data);
10767
+ }
10768
+ }));
10769
+ }
10770
+ });
10771
+ return actionsArray;
10772
+ };
10773
+ const rowMenu = props.rowActionMethod === "menu" ? processRowActionsForRowMenu(props.rowActions) : undefined;
10711
10774
 
10712
10775
  // TODO: get rid of this by wrapping setDrawerOpen and calling onDrawerOpen and onDrawerClose there.
10713
10776
  useEffect(() => {
@@ -10757,10 +10820,11 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10757
10820
  height: props.height,
10758
10821
  onScrollToEnd: handleScrollToEnd,
10759
10822
  onSelectAll: props.onSelectAll,
10760
- onClick: handleRowClick,
10823
+ onClick: props.rowActionMethod === "click" ? handleRowClick : undefined,
10761
10824
  selectable: props.selectable,
10762
10825
  onSelect: handleSelect,
10763
- rowsHaveActions: ((_props$rowActions = props.rowActions) == null ? void 0 : _props$rowActions.length) > 0 || props.showActivityStream,
10826
+ rowMenu: rowMenu || undefined,
10827
+ rowsHaveActions: props.rowActionMethod === "click" ? ((_props$rowActions = props.rowActions) == null ? void 0 : _props$rowActions.length) > 0 || props.showActivityStream : undefined,
10764
10828
  noDataViewProps: _extends({
10765
10829
  message: renderReTryButton()
10766
10830
  }, ((_props$dataTableProps = props.dataTableProps) == null ? void 0 : _props$dataTableProps.noDataViewProps) || {}),
@@ -10779,6 +10843,7 @@ const RichDataTable = /*#__PURE__*/forwardRef(function RichDatatable(props, ref)
10779
10843
  drawerType: drawerType,
10780
10844
  showLoadingStatus: false,
10781
10845
  hideCloseButton: false,
10846
+ data: drawerData,
10782
10847
  headerDivider: props.drawerContentBackground === "light" ? false : true,
10783
10848
  paperStyle: {
10784
10849
  boxShadow: drawerType !== "temporary" ? "-8px 0 10px 0 rgb(0 0 0 / 8%)" : "none",
@@ -10803,7 +10868,8 @@ RichDataTable.defaultProps = {
10803
10868
  selectable: true,
10804
10869
  showActivityStream: false,
10805
10870
  drawerContentBackground: "light",
10806
- rowActions: []
10871
+ rowActions: [],
10872
+ rowActionMethod: "click"
10807
10873
  };
10808
10874
  RichDataTable.propTypes = _extends({
10809
10875
  /** The title of the table */
@@ -10881,8 +10947,11 @@ RichDataTable.propTypes = _extends({
10881
10947
  content: PropTypes.any,
10882
10948
  hidden: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
10883
10949
  disabled: PropTypes.any,
10884
- formatContent: PropTypes.bool
10950
+ formatContent: PropTypes.bool,
10951
+ onClick: PropTypes.func
10885
10952
  })),
10953
+ /** Row action method */
10954
+ rowActionMethod: PropTypes.oneOf(["click", "menu"]),
10886
10955
  /** Show the activity stream tab in the drawer panel. */
10887
10956
  showActivityStream: PropTypes.bool,
10888
10957
  /** Function to execute when the data is successfully loaded. The loaded page data and endpoint information is returned. */
@@ -10991,7 +11060,7 @@ const EnhancedSearchDialog = _ref => {
10991
11060
  onClose: handleClose,
10992
11061
  onConfirm: handleSubmit,
10993
11062
  confirmButtonText: confirmButtonText,
10994
- children: /*#__PURE__*/jsx(Box$1, {
11063
+ children: /*#__PURE__*/jsx(Box$2, {
10995
11064
  sx: {
10996
11065
  padding: 2
10997
11066
  },
@@ -11347,7 +11416,7 @@ const BusinessObjectPicker = _ref => {
11347
11416
  }));
11348
11417
  };
11349
11418
  const handleIsOptionEqualToValue = useCallback((a, b) => getKey(a) == getKey(b), []);
11350
- const renderCustomTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$1, {
11419
+ const renderCustomTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$2, {
11351
11420
  sx: {
11352
11421
  overflow: "hidden"
11353
11422
  },
@@ -11361,7 +11430,7 @@ const BusinessObjectPicker = _ref => {
11361
11430
  displayType: "default"
11362
11431
  })
11363
11432
  }, getKey(option))), [props.size, getKey, getLabel, handleTagDelete]);
11364
- const renderTypeTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$1, {
11433
+ const renderTypeTags = useCallback(value => value.map(option => /*#__PURE__*/jsx(Box$2, {
11365
11434
  sx: {
11366
11435
  overflow: "hidden"
11367
11436
  },
@@ -11375,8 +11444,8 @@ const BusinessObjectPicker = _ref => {
11375
11444
  }
11376
11445
  })
11377
11446
  }, getKey(option))), [props.type, props.size, getKey, handleTagDelete]);
11378
- return /*#__PURE__*/jsxs(Box$1, {
11379
- children: [/*#__PURE__*/jsx(Box$1, {
11447
+ return /*#__PURE__*/jsxs(Box$2, {
11448
+ children: [/*#__PURE__*/jsx(Box$2, {
11380
11449
  sx: {
11381
11450
  float: "left",
11382
11451
  width: renderAddItemForm ? AUTOCOMPLETE_WIDTH : "100%"
@@ -11481,7 +11550,7 @@ const BusinessObjectPicker = _ref => {
11481
11550
  forcePopupIcon: false,
11482
11551
  isOptionEqualToValue: handleIsOptionEqualToValue
11483
11552
  }, autoCompleteProps))
11484
- }), renderAddItemForm && /*#__PURE__*/jsx(Box$1, {
11553
+ }), renderAddItemForm && /*#__PURE__*/jsx(Box$2, {
11485
11554
  sx: {
11486
11555
  display: "flex",
11487
11556
  justifyContent: "center",
@@ -12074,7 +12143,7 @@ const BusinessObjectStatusButton = props => {
12074
12143
  sx: _extends({
12075
12144
  width: "100%"
12076
12145
  }, styles$1.zeroVerticalPadding),
12077
- children: [/*#__PURE__*/jsx(Box$1, {
12146
+ children: [/*#__PURE__*/jsx(Box$2, {
12078
12147
  component: "span",
12079
12148
  sx: styles$1.menuListItem,
12080
12149
  children: /*#__PURE__*/jsx(Typography, {
@@ -12086,7 +12155,7 @@ const BusinessObjectStatusButton = props => {
12086
12155
  fontSize: "0.8rem",
12087
12156
  children: option.text
12088
12157
  })
12089
- }), /*#__PURE__*/jsx(Box$1, {
12158
+ }), /*#__PURE__*/jsx(Box$2, {
12090
12159
  component: "span",
12091
12160
  sx: styles$1.menuListItem,
12092
12161
  children: /*#__PURE__*/jsx(ArrowForwardIcon, {
@@ -12122,13 +12191,13 @@ const BusinessObjectStatusButton = props => {
12122
12191
  }
12123
12192
  },
12124
12193
  disabled: props.disabled,
12125
- children: [/*#__PURE__*/jsx(Box$1, {
12194
+ children: [/*#__PURE__*/jsx(Box$2, {
12126
12195
  component: "span",
12127
12196
  sx: {
12128
12197
  paddingRight: 1
12129
12198
  },
12130
12199
  children: status
12131
- }), isEditable && /*#__PURE__*/jsx(Box$1, {
12200
+ }), isEditable && /*#__PURE__*/jsx(Box$2, {
12132
12201
  component: "span",
12133
12202
  sx: {
12134
12203
  display: "flex",
@@ -12315,7 +12384,7 @@ const CollapsibleContent = props => {
12315
12384
  id: props.id,
12316
12385
  "aria-hidden": !props.open
12317
12386
  };
12318
- return /*#__PURE__*/jsx(Box$1, {
12387
+ return /*#__PURE__*/jsx(Box$2, {
12319
12388
  "aria-hidden": a11yProps["aria-hidden"],
12320
12389
  children: /*#__PURE__*/jsx(Collapse, _extends({
12321
12390
  in: props.open,
@@ -12428,14 +12497,14 @@ function Collapsible({
12428
12497
  const contentA11yProps = {
12429
12498
  id: contentId
12430
12499
  };
12431
- return /*#__PURE__*/jsxs(Box$1, {
12500
+ return /*#__PURE__*/jsxs(Box$2, {
12432
12501
  sx: sx,
12433
- children: [/*#__PURE__*/jsxs(Box$1, {
12502
+ children: [/*#__PURE__*/jsxs(Box$2, {
12434
12503
  sx: {
12435
12504
  display: "flex",
12436
12505
  flexWrap: "no-wrap"
12437
12506
  },
12438
- children: [/*#__PURE__*/jsx(Box$1, {
12507
+ children: [/*#__PURE__*/jsx(Box$2, {
12439
12508
  sx: {
12440
12509
  flex: 1,
12441
12510
  flexDirection: "column",
@@ -12443,7 +12512,7 @@ function Collapsible({
12443
12512
  display: "flex"
12444
12513
  },
12445
12514
  children: renderHeader == null ? void 0 : renderHeader()
12446
- }), /*#__PURE__*/jsx(Box$1, {
12515
+ }), /*#__PURE__*/jsx(Box$2, {
12447
12516
  children: /*#__PURE__*/jsx(CollapsibleContentButton, _extends({
12448
12517
  id: buttonId,
12449
12518
  open: propOpen || open,
@@ -12706,10 +12775,10 @@ const CurriculumChart = props => {
12706
12775
  setNodes(((_props$data5 = props.data) == null ? void 0 : _props$data5.nodes) || []);
12707
12776
  setEdges(((_props$data6 = props.data) == null ? void 0 : _props$data6.edges) || []);
12708
12777
  }, [props.data]);
12709
- return /*#__PURE__*/jsx(Box$1, {
12778
+ return /*#__PURE__*/jsx(Box$2, {
12710
12779
  sx: rootContainerStyle,
12711
12780
  ref: containerRef,
12712
- children: /*#__PURE__*/jsx(Box$1, {
12781
+ children: /*#__PURE__*/jsx(Box$2, {
12713
12782
  flex: 1,
12714
12783
  overflow: "auto",
12715
12784
  children: /*#__PURE__*/jsx(ReactFlowProvider, {
@@ -12842,14 +12911,14 @@ const DatePickerBase = _ref => {
12842
12911
  fullWidth: true,
12843
12912
  required: required,
12844
12913
  InputProps: {
12845
- endAdornment: /*#__PURE__*/jsxs(Box$3, {
12914
+ endAdornment: /*#__PURE__*/jsxs(Box$4, {
12846
12915
  component: "span",
12847
12916
  sx: {
12848
12917
  display: "flex",
12849
12918
  alignItems: "center",
12850
12919
  flexDirection: "row-reverse"
12851
12920
  },
12852
- children: [inputEndAdornmentText && /*#__PURE__*/jsx(Box$3, {
12921
+ children: [inputEndAdornmentText && /*#__PURE__*/jsx(Box$4, {
12853
12922
  sx: {
12854
12923
  marginRight: 1,
12855
12924
  marginLeft: 1,
@@ -12857,7 +12926,7 @@ const DatePickerBase = _ref => {
12857
12926
  },
12858
12927
  component: "span",
12859
12928
  children: inputEndAdornmentText
12860
- }), showButton && /*#__PURE__*/jsx(Box$3, {
12929
+ }), showButton && /*#__PURE__*/jsx(Box$4, {
12861
12930
  sx: {
12862
12931
  marginRight: 1
12863
12932
  },
@@ -13163,7 +13232,7 @@ const DocViewer = ({
13163
13232
  })();
13164
13233
  }, []);
13165
13234
  if (!_withDialog) {
13166
- return /*#__PURE__*/jsx(Box$2, {
13235
+ return /*#__PURE__*/jsx(Box$3, {
13167
13236
  sx: _extends({
13168
13237
  height: "100vh"
13169
13238
  }, style),
@@ -13185,7 +13254,7 @@ const DocViewer = ({
13185
13254
  title: _title,
13186
13255
  open: open,
13187
13256
  onClose: handleClose,
13188
- children: /*#__PURE__*/jsx(Box$2, {
13257
+ children: /*#__PURE__*/jsx(Box$3, {
13189
13258
  sx: _extends({
13190
13259
  height: "100vh"
13191
13260
  }, style),
@@ -13297,19 +13366,19 @@ const Notification = props => {
13297
13366
  sx: iconStyle
13298
13367
  })
13299
13368
  };
13300
- return /*#__PURE__*/jsx(Box$1, {
13369
+ return /*#__PURE__*/jsx(Box$2, {
13301
13370
  sx: styles.root,
13302
13371
  role: "alert",
13303
- children: /*#__PURE__*/jsx(Box$1, {
13372
+ children: /*#__PURE__*/jsx(Box$2, {
13304
13373
  sx: styles.card,
13305
- children: /*#__PURE__*/jsxs(Box$1, {
13374
+ children: /*#__PURE__*/jsxs(Box$2, {
13306
13375
  sx: _extends({
13307
13376
  backgroundColor: backgroundColor[props.variant]
13308
13377
  }, styles.container),
13309
- children: [icon[props.variant] !== undefined && /*#__PURE__*/jsx(Box$1, {
13378
+ children: [icon[props.variant] !== undefined && /*#__PURE__*/jsx(Box$2, {
13310
13379
  sx: styles.iconContainer,
13311
13380
  children: icon[props.variant]
13312
- }), /*#__PURE__*/jsx(Box$1, {
13381
+ }), /*#__PURE__*/jsx(Box$2, {
13313
13382
  sx: styles.messageContainer,
13314
13383
  children: /*#__PURE__*/jsx(Typography, {
13315
13384
  style: styles.typography,
@@ -13543,7 +13612,7 @@ const BarChart = props => {
13543
13612
  role: "progressbar"
13544
13613
  };
13545
13614
  const keyValue = useUID();
13546
- return /*#__PURE__*/jsxs(Box$1, {
13615
+ return /*#__PURE__*/jsxs(Box$2, {
13547
13616
  role: "figure",
13548
13617
  "aria-labelledby": `bar-chart-${keyValue}`,
13549
13618
  children: [/*#__PURE__*/jsx("title", {
@@ -13554,21 +13623,21 @@ const BarChart = props => {
13554
13623
  sx: titleStyle,
13555
13624
  component: "div",
13556
13625
  children: props.title
13557
- }), /*#__PURE__*/jsx(Box$1, {
13626
+ }), /*#__PURE__*/jsx(Box$2, {
13558
13627
  sx: {
13559
13628
  margin: 0
13560
13629
  },
13561
- children: /*#__PURE__*/jsxs(Box$1, _extends({
13630
+ children: /*#__PURE__*/jsxs(Box$2, _extends({
13562
13631
  className: classes.barChart,
13563
13632
  sx: containerSize
13564
13633
  }, a11yProps, {
13565
- children: [/*#__PURE__*/jsx(Box$1, {
13634
+ children: [/*#__PURE__*/jsx(Box$2, {
13566
13635
  className: classes.bar,
13567
13636
  sx: containerSize
13568
- }), /*#__PURE__*/jsx(Box$1, {
13637
+ }), /*#__PURE__*/jsx(Box$2, {
13569
13638
  className: classes.barProgress,
13570
13639
  style: barStyle$1(value, props.dynamicColor, props.showComplete)
13571
- }), /*#__PURE__*/jsx(Box$1, {
13640
+ }), /*#__PURE__*/jsx(Box$2, {
13572
13641
  className: classes.barTitleContainer,
13573
13642
  children: /*#__PURE__*/jsx(Typography, {
13574
13643
  className: classes.barTitle,
@@ -13901,7 +13970,7 @@ const SliderChart = props => {
13901
13970
  };
13902
13971
  const label = props.title || "Progress";
13903
13972
  const keyValue = useUID();
13904
- return /*#__PURE__*/jsxs(Box$1, {
13973
+ return /*#__PURE__*/jsxs(Box$2, {
13905
13974
  role: "figure",
13906
13975
  "aria-labelledby": `slider-chart-title-${keyValue}`,
13907
13976
  className: classes.container,
@@ -13913,9 +13982,9 @@ const SliderChart = props => {
13913
13982
  sx: titleStyle,
13914
13983
  component: props.titleComponent,
13915
13984
  children: props.title
13916
- }), /*#__PURE__*/jsxs(Box$1, {
13985
+ }), /*#__PURE__*/jsxs(Box$2, {
13917
13986
  className: classes.chartContainer,
13918
- children: [/*#__PURE__*/jsx(Box$1, {
13987
+ children: [/*#__PURE__*/jsx(Box$2, {
13919
13988
  sx: {
13920
13989
  width: "100%"
13921
13990
  },
@@ -13923,7 +13992,7 @@ const SliderChart = props => {
13923
13992
  label: label,
13924
13993
  size: props.size
13925
13994
  }, props))
13926
- }), /*#__PURE__*/jsx(Box$1, {
13995
+ }), /*#__PURE__*/jsx(Box$2, {
13927
13996
  children: /*#__PURE__*/jsx(Typography, {
13928
13997
  style: valueClass,
13929
13998
  children: newSubtitle
@@ -14136,13 +14205,13 @@ const Legend$1 = props => {
14136
14205
  children: /*#__PURE__*/jsxs(Paper, {
14137
14206
  style: classes.container,
14138
14207
  elevation: 3,
14139
- children: [/*#__PURE__*/jsx(Box$1, {
14208
+ children: [/*#__PURE__*/jsx(Box$2, {
14140
14209
  style: getRubricStyle(rubric, classes.rubricCircle),
14141
14210
  children: /*#__PURE__*/jsx(Typography, {
14142
14211
  style: classes.rubricLevel,
14143
14212
  children: rubric.levelLabel
14144
14213
  })
14145
- }), /*#__PURE__*/jsxs(Box$1, {
14214
+ }), /*#__PURE__*/jsxs(Box$2, {
14146
14215
  style: classes.rubricNameContainer,
14147
14216
  children: [props.legendSize === "large" && /*#__PURE__*/jsx(Typography, {
14148
14217
  variant: "subtitle2",
@@ -14823,9 +14892,9 @@ const QontoStepIcon = props => {
14823
14892
  className: props.className,
14824
14893
  children: props.completed ? /*#__PURE__*/jsx(CheckCircle, {
14825
14894
  className: "QontoStepIcon-completedIcon"
14826
- }) : /*#__PURE__*/jsx(Box$1, {
14895
+ }) : /*#__PURE__*/jsx(Box$2, {
14827
14896
  className: "QontoStepIcon-circle",
14828
- children: /*#__PURE__*/jsx(Box$1, {
14897
+ children: /*#__PURE__*/jsx(Box$2, {
14829
14898
  className: "StepText",
14830
14899
  children: props.icon
14831
14900
  })
@@ -14887,10 +14956,10 @@ Header.propTypes = {
14887
14956
  const CompletedItemList = ({
14888
14957
  data
14889
14958
  }) => {
14890
- return /*#__PURE__*/jsx(Box$1, {
14959
+ return /*#__PURE__*/jsx(Box$2, {
14891
14960
  children: /*#__PURE__*/jsx(List, {
14892
14961
  children: data == null ? void 0 : data.map((item, index) => /*#__PURE__*/jsx(ListItem, {
14893
- children: /*#__PURE__*/jsxs(Box$1, {
14962
+ children: /*#__PURE__*/jsxs(Box$2, {
14894
14963
  sx: {
14895
14964
  display: "flex"
14896
14965
  },
@@ -15035,7 +15104,7 @@ const WizardPanel = props => {
15035
15104
  activeStep: activeStep,
15036
15105
  allStepsCompleted: props.completed || isCompleting ? true : false
15037
15106
  })
15038
- }), /*#__PURE__*/jsx(Box$1, {
15107
+ }), /*#__PURE__*/jsx(Box$2, {
15039
15108
  ref: containerRef,
15040
15109
  sx: containerStyle,
15041
15110
  style: props.display === "drawer" ? stepsContainer : undefined,
@@ -15044,7 +15113,7 @@ const WizardPanel = props => {
15044
15113
  index: activeStep,
15045
15114
  children: (_props$panels3 = props.panels) == null ? void 0 : _props$panels3.map((step, index) => {
15046
15115
  var _step$completedItems;
15047
- return /*#__PURE__*/jsxs(Box$1, {
15116
+ return /*#__PURE__*/jsxs(Box$2, {
15048
15117
  value: activeStep,
15049
15118
  index: index,
15050
15119
  dir: theme.direction,
@@ -15070,9 +15139,9 @@ const WizardPanel = props => {
15070
15139
  }, `wizardPanelKey-${step.id}`);
15071
15140
  })
15072
15141
  })
15073
- }), /*#__PURE__*/jsx(Box$1, {
15142
+ }), /*#__PURE__*/jsx(Box$2, {
15074
15143
  style: bottomBarStyle,
15075
- children: /*#__PURE__*/jsxs(Box$1, {
15144
+ children: /*#__PURE__*/jsxs(Box$2, {
15076
15145
  className: classes.buttonContainer,
15077
15146
  children: [/*#__PURE__*/jsx(Button, {
15078
15147
  "aria-label": "Back",
@@ -15250,19 +15319,19 @@ const subtitleContainerStyle = {
15250
15319
  };
15251
15320
  const Legend = props => {
15252
15321
  var _props$data;
15253
- return /*#__PURE__*/jsx(Box$1, {
15322
+ return /*#__PURE__*/jsx(Box$2, {
15254
15323
  sx: {
15255
15324
  padding: 1
15256
15325
  },
15257
- children: (_props$data = props.data) == null ? void 0 : _props$data.map(rubric => /*#__PURE__*/jsxs(Box$1, {
15326
+ children: (_props$data = props.data) == null ? void 0 : _props$data.map(rubric => /*#__PURE__*/jsxs(Box$2, {
15258
15327
  sx: {
15259
15328
  mb: "2px"
15260
15329
  },
15261
- children: [/*#__PURE__*/jsxs(Box$1, {
15330
+ children: [/*#__PURE__*/jsxs(Box$2, {
15262
15331
  sx: {
15263
15332
  display: "flex"
15264
15333
  },
15265
- children: [/*#__PURE__*/jsx(Box$1, {
15334
+ children: [/*#__PURE__*/jsx(Box$2, {
15266
15335
  sx: _extends({
15267
15336
  borderRadius: "50%",
15268
15337
  backgroundColor: rubric.color
@@ -15275,7 +15344,7 @@ const Legend = props => {
15275
15344
  component: "p",
15276
15345
  children: rubric.name
15277
15346
  })]
15278
- }), /*#__PURE__*/jsxs(Box$1, {
15347
+ }), /*#__PURE__*/jsxs(Box$2, {
15279
15348
  sx: _extends({
15280
15349
  display: "flex",
15281
15350
  alignItems: "center"
@@ -15498,7 +15567,7 @@ const RubricDistributionChart = props => {
15498
15567
  const keyValue = useUID();
15499
15568
  const validatedData = replaceDuplicateColor(props.data);
15500
15569
  const rubricsDataWithPercent = addPercentValue(validatedData);
15501
- return /*#__PURE__*/jsxs(Box$1, {
15570
+ return /*#__PURE__*/jsxs(Box$2, {
15502
15571
  role: "figure",
15503
15572
  "aria-labelledby": `bar-chart-${keyValue}`,
15504
15573
  children: [/*#__PURE__*/jsx("title", {
@@ -15509,18 +15578,18 @@ const RubricDistributionChart = props => {
15509
15578
  sx: titleStyle,
15510
15579
  component: props.titleComponent,
15511
15580
  children: props.title
15512
- }), /*#__PURE__*/jsx(Box$1, {
15581
+ }), /*#__PURE__*/jsx(Box$2, {
15513
15582
  sx: {
15514
15583
  margin: 0
15515
15584
  },
15516
- children: /*#__PURE__*/jsxs(Box$1, _extends({
15585
+ children: /*#__PURE__*/jsxs(Box$2, _extends({
15517
15586
  className: classes.barChart,
15518
15587
  sx: containerSize
15519
15588
  }, a11yProps, {
15520
- children: [/*#__PURE__*/jsx(Box$1, {
15589
+ children: [/*#__PURE__*/jsx(Box$2, {
15521
15590
  className: classes.bar,
15522
15591
  sx: containerSize
15523
- }), rubricsDataWithPercent == null ? void 0 : rubricsDataWithPercent.map((rubric, index) => /*#__PURE__*/jsx(Box$1, {
15592
+ }), rubricsDataWithPercent == null ? void 0 : rubricsDataWithPercent.map((rubric, index) => /*#__PURE__*/jsx(Box$2, {
15524
15593
  className: classes.barProgress,
15525
15594
  "aria-label": rubric.name,
15526
15595
  "aria-valuemax": getOverallTotal(rubricsDataWithPercent),
@@ -15581,7 +15650,7 @@ const _excluded$6 = ["rules"];
15581
15650
  const FieldWrapper = ({
15582
15651
  children
15583
15652
  }) => {
15584
- return /*#__PURE__*/jsx(Box$1, {
15653
+ return /*#__PURE__*/jsx(Box$2, {
15585
15654
  sx: {
15586
15655
  paddingTop: 1,
15587
15656
  overflow: "auto"
@@ -15670,7 +15739,7 @@ function Row({
15670
15739
  ruleIndex
15671
15740
  });
15672
15741
  }, [groupId, ruleId, index, ruleIndex]);
15673
- return /*#__PURE__*/jsxs(Box$1, {
15742
+ return /*#__PURE__*/jsxs(Box$2, {
15674
15743
  sx: {
15675
15744
  display: "flex",
15676
15745
  flexWrap: "no-wrap",
@@ -15718,7 +15787,7 @@ function Row({
15718
15787
  children: templateValueField
15719
15788
  })
15720
15789
  })]
15721
- }), /*#__PURE__*/jsx(Box$1, {
15790
+ }), /*#__PURE__*/jsx(Box$2, {
15722
15791
  sx: {
15723
15792
  width: "48px",
15724
15793
  marginTop: "22px"
@@ -15780,7 +15849,7 @@ const RuleGroup = /*#__PURE__*/memo(_ref => {
15780
15849
  rules
15781
15850
  } = _ref,
15782
15851
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
15783
- return /*#__PURE__*/jsx(Box$1, {
15852
+ return /*#__PURE__*/jsx(Box$2, {
15784
15853
  sx: {
15785
15854
  paddingBottom: 1
15786
15855
  },
@@ -15804,13 +15873,13 @@ const RuleGroupFooter = /*#__PURE__*/memo(({
15804
15873
  groupIndex,
15805
15874
  onGroupDelete,
15806
15875
  onRuleAdd
15807
- }) => /*#__PURE__*/jsx(Box$1, {
15876
+ }) => /*#__PURE__*/jsx(Box$2, {
15808
15877
  sx: {
15809
15878
  display: "flex",
15810
15879
  justifyContent: "end",
15811
15880
  marginRight: 6
15812
15881
  },
15813
- children: /*#__PURE__*/jsxs(Box$1, {
15882
+ children: /*#__PURE__*/jsxs(Box$2, {
15814
15883
  sx: {
15815
15884
  display: "flex",
15816
15885
  flexDirection: "row"
@@ -15842,16 +15911,16 @@ RuleGroupFooter.propTypes = {
15842
15911
  const BuilderHeader = /*#__PURE__*/memo(({
15843
15912
  onAdd,
15844
15913
  children
15845
- }) => /*#__PURE__*/jsxs(Box$1, {
15914
+ }) => /*#__PURE__*/jsxs(Box$2, {
15846
15915
  sx: {
15847
15916
  display: "flex"
15848
15917
  },
15849
- children: [/*#__PURE__*/jsx(Box$1, {
15918
+ children: [/*#__PURE__*/jsx(Box$2, {
15850
15919
  sx: {
15851
15920
  flex: 1
15852
15921
  },
15853
15922
  children: children
15854
- }), /*#__PURE__*/jsx(Box$1, {
15923
+ }), /*#__PURE__*/jsx(Box$2, {
15855
15924
  sx: {
15856
15925
  display: "flex",
15857
15926
  justifyContent: "end",
@@ -15871,7 +15940,7 @@ const RuleGroupIndex = /*#__PURE__*/memo(({
15871
15940
  index,
15872
15941
  isFirst,
15873
15942
  isLast
15874
- }) => /*#__PURE__*/jsx(Box$1, {
15943
+ }) => /*#__PURE__*/jsx(Box$2, {
15875
15944
  sx: {
15876
15945
  display: "flex",
15877
15946
  flexDirection: "column",
@@ -15879,7 +15948,7 @@ const RuleGroupIndex = /*#__PURE__*/memo(({
15879
15948
  width: "40px",
15880
15949
  height: "88px"
15881
15950
  },
15882
- children: /*#__PURE__*/jsxs(Box$1, {
15951
+ children: /*#__PURE__*/jsxs(Box$2, {
15883
15952
  sx: {
15884
15953
  display: "flex",
15885
15954
  flexDirection: "column",
@@ -16153,7 +16222,7 @@ const TextBuilder = /*#__PURE__*/memo(({
16153
16222
  groupIndex,
16154
16223
  defaultRule
16155
16224
  }), [defaultRule]);
16156
- return /*#__PURE__*/jsxs(Box$1, {
16225
+ return /*#__PURE__*/jsxs(Box$2, {
16157
16226
  sx: {
16158
16227
  ".MuiFormControl-root": {
16159
16228
  background: "white"
@@ -16170,7 +16239,7 @@ const TextBuilder = /*#__PURE__*/memo(({
16170
16239
  sx: {
16171
16240
  paddingBottom: 2
16172
16241
  },
16173
- children: /*#__PURE__*/jsxs(Box$1, {
16242
+ children: /*#__PURE__*/jsxs(Box$2, {
16174
16243
  sx: {
16175
16244
  display: "flex",
16176
16245
  flexWrap: "no-wrap"
@@ -16181,7 +16250,7 @@ const TextBuilder = /*#__PURE__*/memo(({
16181
16250
  isLast: index === rows.length - 1,
16182
16251
  index: index,
16183
16252
  groupId: groupId
16184
- }), /*#__PURE__*/jsxs(Box$1, {
16253
+ }), /*#__PURE__*/jsxs(Box$2, {
16185
16254
  sx: {
16186
16255
  flex: 1
16187
16256
  },
@@ -16453,7 +16522,7 @@ const FormButtons = ({
16453
16522
  });
16454
16523
  };
16455
16524
  }
16456
- return /*#__PURE__*/jsxs(Box$1, _extends({
16525
+ return /*#__PURE__*/jsxs(Box$2, _extends({
16457
16526
  className: classes.bottomButtonContainer
16458
16527
  }, hidden && {
16459
16528
  style: {
@@ -17520,8 +17589,8 @@ const ReadOnlyView = ({
17520
17589
  });
17521
17590
  }
17522
17591
  if (multiple) {
17523
- return /*#__PURE__*/jsx(Box$2, {
17524
- children: value.map(item => /*#__PURE__*/jsx(Box$2, {
17592
+ return /*#__PURE__*/jsx(Box$3, {
17593
+ children: value.map(item => /*#__PURE__*/jsx(Box$3, {
17525
17594
  sx: {
17526
17595
  paddingBottom: "2px",
17527
17596
  paddingRight: "2px"
@@ -17704,7 +17773,7 @@ const DateSelectReadOnly$2 = props => {
17704
17773
  }), /*#__PURE__*/jsx(Typography, {
17705
17774
  color: "text.secondary",
17706
17775
  variant: "body1",
17707
- children: /*#__PURE__*/jsxs(Box$1, {
17776
+ children: /*#__PURE__*/jsxs(Box$2, {
17708
17777
  sx: {
17709
17778
  display: "flex"
17710
17779
  },
@@ -17727,7 +17796,7 @@ const DateSelectReadOnly$2 = props => {
17727
17796
  }), /*#__PURE__*/jsx(Typography, {
17728
17797
  color: "text.secondary",
17729
17798
  variant: "body1",
17730
- children: /*#__PURE__*/jsxs(Box$1, {
17799
+ children: /*#__PURE__*/jsxs(Box$2, {
17731
17800
  sx: {
17732
17801
  display: "flex"
17733
17802
  },
@@ -18104,7 +18173,7 @@ const DisableWrapper = ({
18104
18173
  };
18105
18174
 
18106
18175
  const FieldContainer = props => {
18107
- return /*#__PURE__*/jsx(Box$2, _extends({}, props, {
18176
+ return /*#__PURE__*/jsx(Box$3, _extends({}, props, {
18108
18177
  sx: _extends({}, props.sx, {
18109
18178
  "& > div": {
18110
18179
  width: "100%"
@@ -18112,7 +18181,7 @@ const FieldContainer = props => {
18112
18181
  })
18113
18182
  }));
18114
18183
  };
18115
- FieldContainer.propTypes = Box$2.propTypes;
18184
+ FieldContainer.propTypes = Box$3.propTypes;
18116
18185
 
18117
18186
  registerPlugin(FilePondPluginFileValidateType, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginGetFile);
18118
18187
 
@@ -18324,7 +18393,7 @@ const Upload = props => {
18324
18393
  allowFileTypeValidation: false
18325
18394
  };
18326
18395
  const overrideProps = typeof inputProps === "function" ? inputProps(filePondProps) : inputProps;
18327
- return /*#__PURE__*/jsx(Box$1, {
18396
+ return /*#__PURE__*/jsx(Box$2, {
18328
18397
  sx: styles,
18329
18398
  children: /*#__PURE__*/jsx(FilePond, _extends({
18330
18399
  ref: filePondRef
@@ -18354,7 +18423,7 @@ const Upload = props => {
18354
18423
  },
18355
18424
  htmlFor: `${schema.title}-helper`,
18356
18425
  children: schema.title
18357
- }), /*#__PURE__*/jsx(Box$1, {
18426
+ }), /*#__PURE__*/jsx(Box$2, {
18358
18427
  sx: {
18359
18428
  marginTop: 1
18360
18429
  },