aefis-core-ui 2.3.0-rc54 → 2.3.0-rc56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2,7 +2,7 @@ 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
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,
|
|
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, 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';
|
|
6
6
|
import { makeStyles, useTheme as useTheme$1, withStyles as withStyles$1, createStyles, styled as styled$2 } from '@mui/styles';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
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/';
|
|
@@ -5692,6 +5692,7 @@ const ModalDialog = props => {
|
|
|
5692
5692
|
name: props.confirmButtonText,
|
|
5693
5693
|
onClick: handleConfirm,
|
|
5694
5694
|
color: "primary",
|
|
5695
|
+
disabled: props.confirmButtonDisabled,
|
|
5695
5696
|
children: props.confirmButtonText
|
|
5696
5697
|
})]
|
|
5697
5698
|
})]
|
|
@@ -5704,7 +5705,8 @@ ModalDialog.defaultProps = {
|
|
|
5704
5705
|
open: false,
|
|
5705
5706
|
formatContent: true,
|
|
5706
5707
|
showLoadingStatus: false,
|
|
5707
|
-
titleComponent: "h2"
|
|
5708
|
+
titleComponent: "h2",
|
|
5709
|
+
confirmButtonDisabled: false
|
|
5708
5710
|
};
|
|
5709
5711
|
|
|
5710
5712
|
/** AEFIS implementation of a modal dialog. */
|
|
@@ -5724,6 +5726,8 @@ ModalDialog.propTypes = {
|
|
|
5724
5726
|
title: PropTypes.any.isRequired,
|
|
5725
5727
|
/** The text to display for the confirm button. */
|
|
5726
5728
|
confirmButtonText: PropTypes.string,
|
|
5729
|
+
/** Disable the confirm button? */
|
|
5730
|
+
confirmButtonDisabled: PropTypes.bool,
|
|
5727
5731
|
/** The text to display for the cancel button. */
|
|
5728
5732
|
cancelButtonText: PropTypes.string,
|
|
5729
5733
|
/** Whether or not to format the content of the dialog. */
|
|
@@ -6888,8 +6892,7 @@ function DataTable(props) {
|
|
|
6888
6892
|
});
|
|
6889
6893
|
}
|
|
6890
6894
|
}));
|
|
6891
|
-
return /*#__PURE__*/jsx(
|
|
6892
|
-
className: props.height ? classes.noHeightContainer : classes.container,
|
|
6895
|
+
return /*#__PURE__*/jsx(Box$2, {
|
|
6893
6896
|
style: containerStyle,
|
|
6894
6897
|
ref: containerRef,
|
|
6895
6898
|
children: /*#__PURE__*/jsxs(Table, _extends({
|