@evoke-platform/ui-components 1.0.0-dev.226 → 1.0.0-dev.228
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/published/components/core/Accordion/Accordion.js +1 -1
- package/dist/published/components/core/Accordion/AccordionActions/AccordionActions.js +1 -1
- package/dist/published/components/core/Accordion/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/published/components/core/Accordion/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/published/components/core/Alert/Alert.js +8 -9
- package/dist/published/components/core/AlertTitle/AlertTitle.js +1 -1
- package/dist/published/components/core/AppBar/AppBar.js +1 -1
- package/dist/published/components/core/Autocomplete/Autocomplete.js +33 -15
- package/dist/published/components/core/Autocomplete/Autocomplete.test.js +1 -1
- package/dist/published/components/core/Avatar/Avatar.js +7 -4
- package/dist/published/components/core/Backdrop/Backdrop.js +1 -1
- package/dist/published/components/core/Badge/Badge.js +1 -1
- package/dist/published/components/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/published/components/core/Button/Button.js +1 -1
- package/dist/published/components/core/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/published/components/core/Card/Card.js +1 -1
- package/dist/published/components/core/Checkbox/Checkbox.js +1 -1
- package/dist/published/components/core/Chip/Chip.js +1 -1
- package/dist/published/components/core/CircularProgress/CircularProgress.js +1 -1
- package/dist/published/components/core/Collapse/Collapse.js +1 -1
- package/dist/published/components/core/DatePicker/DatePicker.js +4 -16
- package/dist/published/components/core/DateTimePicker/DateTimePicker.js +3 -15
- package/dist/published/components/core/Dialog/Dialog.js +1 -1
- package/dist/published/components/core/Dialog/DialogActions/DialogActions.js +2 -13
- package/dist/published/components/core/Dialog/DialogContent/DialogContent.js +1 -1
- package/dist/published/components/core/Dialog/DialogContentText/DialogContentText.js +1 -1
- package/dist/published/components/core/Dialog/DialogTitle/DialogTitle.js +1 -1
- package/dist/published/components/core/Divider/Divider.js +1 -1
- package/dist/published/components/core/Drawer/Drawer.js +1 -1
- package/dist/published/components/core/FieldError/FieldError.js +1 -2
- package/dist/published/components/core/FormElements/FormControl/FormControl.js +1 -1
- package/dist/published/components/core/FormElements/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/published/components/core/FormElements/FormGroup/FormGroup.js +1 -1
- package/dist/published/components/core/FormElements/FormHelperText/FormHelperText.js +1 -1
- package/dist/published/components/core/FormElements/FormLabel/FormLabel.js +1 -1
- package/dist/published/components/core/IconButton/IconButton.js +1 -1
- package/dist/published/components/core/LinearProgress/LinearProgress.js +1 -1
- package/dist/published/components/core/Link/Link.js +1 -1
- package/dist/published/components/core/List/List.js +1 -1
- package/dist/published/components/core/List/ListItem.js +1 -1
- package/dist/published/components/core/List/ListItemText/ListItemText.js +1 -1
- package/dist/published/components/core/LoadingButton/LoadingButton.js +1 -1
- package/dist/published/components/core/LocalizationProvider/LocalizationProvider.js +3 -14
- package/dist/published/components/core/Menu/Menu.js +1 -1
- package/dist/published/components/core/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/published/components/core/Paper/Paper.js +1 -1
- package/dist/published/components/core/Popover/Popover.js +1 -1
- package/dist/published/components/core/Popper/Popper.js +1 -1
- package/dist/published/components/core/RadioGroup/Radio.js +1 -1
- package/dist/published/components/core/RadioGroup/RadioGroup.js +1 -1
- package/dist/published/components/core/Select/Select.js +11 -4
- package/dist/published/components/core/Skeleton/Skeleton.js +1 -1
- package/dist/published/components/core/Snackbar/Snackbar.js +2 -2
- package/dist/published/components/core/StaticDatePicker/StaticDatePicker.js +3 -15
- package/dist/published/components/core/Stepper/Step/Step.js +1 -1
- package/dist/published/components/core/Stepper/StepButton/StepButton.js +1 -1
- package/dist/published/components/core/Stepper/StepConnector/StepConnector.js +1 -1
- package/dist/published/components/core/Stepper/StepContent/StepContent.js +1 -1
- package/dist/published/components/core/Stepper/StepIcon/StepIcon.js +1 -1
- package/dist/published/components/core/Stepper/StepLabel/StepLabel.js +1 -1
- package/dist/published/components/core/Stepper/Stepper.js +1 -1
- package/dist/published/components/core/Switch/Switch.js +1 -1
- package/dist/published/components/core/Table/Table.js +1 -1
- package/dist/published/components/core/Tabs/Tab/Tab.js +1 -1
- package/dist/published/components/core/Tabs/Tabs.js +1 -1
- package/dist/published/components/core/TextField/TextField.js +12 -6
- package/dist/published/components/core/ToggleButton/ToggleButton.js +1 -1
- package/dist/published/components/core/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/published/components/core/Tooltip/Tooltip.js +15 -2
- package/dist/published/components/core/Typography/index.js +1 -1
- package/dist/published/components/custom/BuilderGrid/BuilderGrid.js +33 -29
- package/dist/published/components/custom/BuilderGrid/BuilderGridToolbar.js +1 -2
- package/dist/published/components/custom/BuilderGrid/EmptyContent.js +4 -5
- package/dist/published/components/custom/BuilderGrid/EmptyContentIllustration.js +6 -1
- package/dist/published/components/custom/BuilderGrid/ToolbarActions.js +3 -1
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +46 -27
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.test.js +12 -21
- package/dist/published/components/custom/CriteriaBuilder/ValueEditor.js +27 -34
- package/dist/published/components/custom/DataGrid/DataGrid.js +38 -33
- package/dist/published/components/custom/DataGrid/DateTimeCustomOperator.js +3 -5
- package/dist/published/components/custom/DataGrid/Toolbar.js +3 -4
- package/dist/published/components/custom/ErrorComponent/ErrorComponent.js +11 -1
- package/dist/published/components/custom/Form/Common/Form.js +106 -80
- package/dist/published/components/custom/Form/Common/FormComponentWrapper.js +20 -11
- package/dist/published/components/custom/Form/FormComponents/ButtonComponent.js +9 -20
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/Document.js +10 -20
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentComponent.js +24 -28
- package/dist/published/components/custom/Form/FormComponents/DocumentComponent/DocumentList.js +49 -64
- package/dist/published/components/custom/Form/FormComponents/FormFieldComponent.d.ts +1 -0
- package/dist/published/components/custom/Form/FormComponents/FormFieldComponent.js +109 -34
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/Image.d.ts +2 -0
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/Image.js +13 -25
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/ImageComponent.d.ts +3 -1
- package/dist/published/components/custom/Form/FormComponents/ImageComponent/ImageComponent.js +30 -9
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/InstanceLookup.js +26 -31
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectComponent.d.ts +5 -4
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectComponent.js +70 -22
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectPropertyInput.js +93 -75
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/RelatedObjectInstance.d.ts +2 -2
- package/dist/published/components/custom/Form/FormComponents/ObjectComponent/RelatedObjectInstance.js +17 -26
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ActionDialog.js +20 -24
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ManyToMany/DropdownRepeatableField.js +22 -33
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ManyToMany/DropdownRepeatableFieldInput.js +12 -9
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.js +105 -82
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableFieldComponent.js +8 -6
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserComponent.d.ts +3 -1
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserComponent.js +55 -12
- package/dist/published/components/custom/Form/FormComponents/UserComponent/UserProperty.js +32 -30
- package/dist/published/components/custom/Form/FormComponents/ViewOnlyComponent.js +12 -9
- package/dist/published/components/custom/Form/types.d.ts +5 -5
- package/dist/published/components/custom/Form/utils.js +611 -446
- package/dist/published/components/custom/FormField/AddressFieldComponent/AddressFieldComponent.test.js +41 -54
- package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +7 -8
- package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.js +1 -1
- package/dist/published/components/custom/FormField/BooleanSelect/BooleanSelect.test.js +5 -14
- package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.js +2 -2
- package/dist/published/components/custom/FormField/DatePickerSelect/DatePickerSelect.test.js +12 -21
- package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.js +2 -2
- package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.test.js +12 -21
- package/dist/published/components/custom/FormField/FileUpload/FileUpload.js +10 -11
- package/dist/published/components/custom/FormField/FormField.js +10 -10
- package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +22 -30
- package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.test.js +8 -17
- package/dist/published/components/custom/FormField/Select/Select.js +5 -6
- package/dist/published/components/custom/FormField/Select/Select.test.js +18 -27
- package/dist/published/components/custom/FormField/TimePickerSelect/TimePickerSelect.js +4 -4
- package/dist/published/components/custom/HistoryLog/DisplayedProperty.js +12 -13
- package/dist/published/components/custom/HistoryLog/HistoryData.js +49 -45
- package/dist/published/components/custom/HistoryLog/HistoryLoading.js +5 -5
- package/dist/published/components/custom/HistoryLog/index.js +5 -6
- package/dist/published/components/custom/Menubar/Menubar.js +2 -2
- package/dist/published/components/custom/MultiSelect/MultiSelect.js +38 -50
- package/dist/published/components/custom/MultiSelect/SortableItem.js +1 -1
- package/dist/published/components/custom/RepeatableField/RepeatableField.js +14 -16
- package/dist/published/components/custom/UserAvatar/UserAvatar.js +12 -5
- package/dist/published/components/custom/util.js +1 -1
- package/dist/published/components/layout/Box/Box.js +1 -1
- package/dist/published/components/layout/Container/Container.js +1 -1
- package/dist/published/components/layout/Grid/Grid.js +1 -1
- package/dist/published/components/layout/Stack/Stack.js +1 -1
- package/dist/published/icons/custom/FileWithExtension.js +8 -4
- package/dist/published/icons/custom/Inherited.js +8 -6
- package/dist/published/icons/custom/Overrides.js +9 -7
- package/dist/published/icons/custom/TrashCan.js +10 -8
- package/dist/published/icons/custom/UploadCloud.js +9 -7
- package/dist/published/stories/Accordion.stories.js +2 -2
- package/dist/published/stories/Alert.stories.js +1 -1
- package/dist/published/stories/AlertTitle.stories.js +1 -1
- package/dist/published/stories/Autocomplete.stories.js +2 -2
- package/dist/published/stories/Avatar.stories.js +1 -1
- package/dist/published/stories/Backdrop.stories.js +1 -1
- package/dist/published/stories/Badge.stories.js +1 -1
- package/dist/published/stories/Box.stories.js +2 -2
- package/dist/published/stories/Breadcrumbs.stories.js +1 -1
- package/dist/published/stories/Button.stories.js +1 -1
- package/dist/published/stories/ButtonGroup.stories.js +1 -1
- package/dist/published/stories/Card.stories.js +1 -1
- package/dist/published/stories/Checkbox.stories.js +1 -1
- package/dist/published/stories/Chip.stories.js +1 -1
- package/dist/published/stories/CircularProgress.stories.js +1 -1
- package/dist/published/stories/Collapse.stories.js +1 -1
- package/dist/published/stories/Container.stories.js +1 -1
- package/dist/published/stories/CriteriaBuilder.stories.js +7 -3
- package/dist/published/stories/DataGrid.stories.js +3 -3
- package/dist/published/stories/DatePicker.stories.js +3 -14
- package/dist/published/stories/Dialog.stories.js +1 -1
- package/dist/published/stories/Divider.stories.js +1 -1
- package/dist/published/stories/Drawer.stories.js +2 -2
- package/dist/published/stories/FormControl.stories.js +1 -1
- package/dist/published/stories/FormControlLabel.stories.js +1 -1
- package/dist/published/stories/FormField.stories.js +3 -12
- package/dist/published/stories/FormGroup.stories.js +1 -1
- package/dist/published/stories/FormHelperText.stories.js +1 -1
- package/dist/published/stories/FormLabel.stories.js +1 -1
- package/dist/published/stories/Grid.stories.js +1 -1
- package/dist/published/stories/HistoryLog.stories.js +1 -1
- package/dist/published/stories/IconButton.stories.js +4 -4
- package/dist/published/stories/LinearProgress.stories.js +1 -1
- package/dist/published/stories/Link.stories.js +1 -1
- package/dist/published/stories/List.stories.js +2 -2
- package/dist/published/stories/Menu.stories.js +2 -2
- package/dist/published/stories/MenuBar.stories.js +1 -1
- package/dist/published/stories/MultiSelect.stories.js +3 -3
- package/dist/published/stories/Palette.stories.js +11 -11
- package/dist/published/stories/Paper.stories.js +1 -1
- package/dist/published/stories/RadioGroup.stories.js +1 -1
- package/dist/published/stories/RepeatableField.stories.js +6 -7
- package/dist/published/stories/RichTextViewer.stories.js +1 -1
- package/dist/published/stories/Skeleton.stories.js +1 -1
- package/dist/published/stories/Snackbar.stories.js +1 -1
- package/dist/published/stories/Stack.stories.js +1 -1
- package/dist/published/stories/StaticDatePicker.stories.js +3 -14
- package/dist/published/stories/Stepper.stories.js +3 -3
- package/dist/published/stories/Switch.stories.js +1 -1
- package/dist/published/stories/Table.stories.js +2 -2
- package/dist/published/stories/Tabs.stories.js +6 -17
- package/dist/published/stories/TextField.stories.js +1 -1
- package/dist/published/stories/TimePicker.stories.js +3 -14
- package/dist/published/stories/TimePickerSelect.stories.js +3 -14
- package/dist/published/stories/ToggleButton.stories.js +4 -4
- package/dist/published/theme/UIThemeProvider.js +1 -2
- package/package.json +1 -1
@@ -1,14 +1,3 @@
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
-
var t = {};
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
-
t[p] = s[p];
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
-
t[p[i]] = s[p[i]];
|
9
|
-
}
|
10
|
-
return t;
|
11
|
-
};
|
12
1
|
import AdapterJoda from '@date-io/js-joda';
|
13
2
|
import { ChronoField, ChronoUnit, DateTimeFormatter, LocalDate, LocalDateTime, } from '@js-joda/core';
|
14
3
|
import { Locale as ImportedLocale } from '@js-joda/locale_en-us';
|
@@ -16,9 +5,9 @@ import { LocalizationProvider as MUILocalizationProvider, } from '@mui/x-date-pi
|
|
16
5
|
import React from 'react';
|
17
6
|
import { InvalidDate } from '../../../util/date';
|
18
7
|
const LocalizationProvider = (props) => {
|
19
|
-
const { children
|
8
|
+
const { children, ...rest } = props;
|
20
9
|
new Date().valueOf();
|
21
|
-
return (React.createElement(MUILocalizationProvider,
|
10
|
+
return (React.createElement(MUILocalizationProvider, { dateAdapter: DateAdapter, adapterLocale: ImportedLocale.US, ...rest }, children));
|
22
11
|
};
|
23
12
|
class DateAdapter extends AdapterJoda {
|
24
13
|
constructor(args = {}) {
|
@@ -32,7 +21,7 @@ class DateAdapter extends AdapterJoda {
|
|
32
21
|
}
|
33
22
|
let adjustFactor = 1;
|
34
23
|
// If no time unit is specified, @date-io assumes milliseconds.
|
35
|
-
unit = unit
|
24
|
+
unit = unit ?? 'milliseconds';
|
36
25
|
// MUI date picker generally assumes the date types have second/millisecond precision.
|
37
26
|
// However, LocalDate only supports date comparisons and will fail when trying to
|
38
27
|
// compare time fields, which MUI attempts to do. If the values being compared don't
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Menu = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIMenu,
|
6
|
+
React.createElement(MUIMenu, { ...props })));
|
7
7
|
};
|
8
8
|
export default Menu;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const MenuItem = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIMenuItem,
|
6
|
+
React.createElement(MUIMenuItem, { ...props })));
|
7
7
|
};
|
8
8
|
export default MenuItem;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Paper = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIPaper,
|
6
|
+
React.createElement(MUIPaper, { ...props })));
|
7
7
|
};
|
8
8
|
export default Paper;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Popover = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIPopover,
|
6
|
+
React.createElement(MUIPopover, { ...props })));
|
7
7
|
};
|
8
8
|
export default Popover;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Popper = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIPopper,
|
6
|
+
React.createElement(MUIPopper, { ...props })));
|
7
7
|
};
|
8
8
|
export default Popper;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Radio = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIRadio,
|
6
|
+
React.createElement(MUIRadio, { ...props })));
|
7
7
|
};
|
8
8
|
export default Radio;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const RadioGroup = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIRadioGroup,
|
6
|
+
React.createElement(MUIRadioGroup, { ...props })));
|
7
7
|
};
|
8
8
|
export default RadioGroup;
|
@@ -3,12 +3,19 @@ import { Select as MUISelect } from '@mui/material';
|
|
3
3
|
import React from 'react';
|
4
4
|
import UIThemeProvider from '../../../theme';
|
5
5
|
const Select = (props) => {
|
6
|
-
var _a;
|
7
6
|
return (React.createElement(UIThemeProvider, null,
|
8
|
-
React.createElement(MUISelect,
|
7
|
+
React.createElement(MUISelect, { ...props, sx: {
|
8
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
9
9
|
border: props.readOnly ? 'none' : 'auto',
|
10
|
-
},
|
10
|
+
},
|
11
|
+
'& .MuiInputBase-input.Mui-disabled': {
|
11
12
|
WebkitTextFillColor: props.readOnly ? 'black' : 'auto',
|
12
|
-
},
|
13
|
+
},
|
14
|
+
backgroundColor: props.readOnly ? '#f4f6f8' : 'auto',
|
15
|
+
height: props.readOnly ? '40px' : 'auto',
|
16
|
+
margin: props.readOnly ? '0px 5px' : 'auto',
|
17
|
+
borderRadius: '8px',
|
18
|
+
...props.sx,
|
19
|
+
}, IconComponent: props.IconComponent ?? ((iconProps) => React.createElement(ExpandMore, { ...iconProps })) })));
|
13
20
|
};
|
14
21
|
export default Select;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Skeleton = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUISkeleton,
|
6
|
+
React.createElement(MUISkeleton, { ...props })));
|
7
7
|
};
|
8
8
|
export default Skeleton;
|
@@ -4,10 +4,10 @@ import UIThemeProvider from '../../../theme';
|
|
4
4
|
import { Alert } from '../Alert';
|
5
5
|
export const Snackbar = (props) => {
|
6
6
|
const { handleClose, error, message, autoHideDuration, action, children } = props;
|
7
|
-
return (React.createElement(UIThemeProvider, null, children ? (React.createElement(MUISnackbar,
|
7
|
+
return (React.createElement(UIThemeProvider, null, children ? (React.createElement(MUISnackbar, { ...props })) : (React.createElement(MUISnackbar, { autoHideDuration: autoHideDuration ?? 6000, onClose: () => handleClose(), anchorOrigin: {
|
8
8
|
vertical: 'bottom',
|
9
9
|
horizontal: 'center',
|
10
|
-
}
|
10
|
+
}, ...props },
|
11
11
|
React.createElement("div", null,
|
12
12
|
React.createElement(Alert, { variant: "outlined", severity: error ? 'error' : 'success', onClose: () => handleClose(), action: action }, message))))));
|
13
13
|
};
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
-
var t = {};
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
-
t[p] = s[p];
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
-
t[p[i]] = s[p[i]];
|
9
|
-
}
|
10
|
-
return t;
|
11
|
-
};
|
12
1
|
import { LocalDate } from '@js-joda/core';
|
13
2
|
import { StaticDatePicker as MUIStaticDatePicker, } from '@mui/x-date-pickers';
|
14
3
|
import React from 'react';
|
@@ -16,15 +5,14 @@ import UIThemeProvider from '../../../theme';
|
|
16
5
|
import { InvalidDate } from '../../../util/date';
|
17
6
|
import TextField from '../TextField';
|
18
7
|
const StaticDatePicker = (props) => {
|
19
|
-
|
20
|
-
const { value: inputValue, onChange: handleChange } = props, rest = __rest(props, ["value", "onChange"]);
|
8
|
+
const { value: inputValue, onChange: handleChange, ...rest } = props;
|
21
9
|
let value = null;
|
22
10
|
try {
|
23
11
|
value = typeof inputValue === 'string' ? LocalDate.parse(inputValue) : inputValue;
|
24
12
|
}
|
25
13
|
catch (err) {
|
26
14
|
// If we fail to parse the input string, log the error and continue as if no value was set.
|
27
|
-
console.error(
|
15
|
+
console.error(err.message ?? err);
|
28
16
|
}
|
29
17
|
const onChange = (newValue, keyboardInputValue) => {
|
30
18
|
// Joda does not have a representation of an invalid date, so if the component fails to
|
@@ -36,6 +24,6 @@ const StaticDatePicker = (props) => {
|
|
36
24
|
handleChange(newValue, keyboardInputValue);
|
37
25
|
};
|
38
26
|
return (React.createElement(UIThemeProvider, null,
|
39
|
-
React.createElement(MUIStaticDatePicker,
|
27
|
+
React.createElement(MUIStaticDatePicker, { value: value, onChange: onChange, renderInput: (params) => React.createElement(TextField, { ...params }), ...rest })));
|
40
28
|
};
|
41
29
|
export default StaticDatePicker;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const Step = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStep,
|
6
|
+
React.createElement(MUIStep, { ...props })));
|
7
7
|
};
|
8
8
|
export default Step;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const StepButton = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStepButton,
|
6
|
+
React.createElement(MUIStepButton, { ...props })));
|
7
7
|
};
|
8
8
|
export default StepButton;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const StepConnector = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStepConnector,
|
6
|
+
React.createElement(MUIStepConnector, { ...props })));
|
7
7
|
};
|
8
8
|
export default StepConnector;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const StepContent = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStepContent,
|
6
|
+
React.createElement(MUIStepContent, { ...props })));
|
7
7
|
};
|
8
8
|
export default StepContent;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const StepIcon = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStepIcon,
|
6
|
+
React.createElement(MUIStepIcon, { ...props })));
|
7
7
|
};
|
8
8
|
export default StepIcon;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const StepLabel = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStepLabel,
|
6
|
+
React.createElement(MUIStepLabel, { ...props })));
|
7
7
|
};
|
8
8
|
export default StepLabel;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Stepper = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIStepper,
|
6
|
+
React.createElement(MUIStepper, { ...props })));
|
7
7
|
};
|
8
8
|
export default Stepper;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Switch = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUISwitch,
|
6
|
+
React.createElement(MUISwitch, { ...props })));
|
7
7
|
};
|
8
8
|
export default Switch;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Table = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUITable,
|
6
|
+
React.createElement(MUITable, { ...props })));
|
7
7
|
};
|
8
8
|
export default Table;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../../theme';
|
4
4
|
const Tab = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUITab,
|
6
|
+
React.createElement(MUITab, { ...props }, props?.children)));
|
7
7
|
};
|
8
8
|
export default Tab;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Tabs = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUITabs,
|
6
|
+
React.createElement(MUITabs, { ...props }, props?.children)));
|
7
7
|
};
|
8
8
|
export default Tabs;
|
@@ -19,19 +19,25 @@ const TextField = (props) => {
|
|
19
19
|
'& fieldset': { borderColor: 'transparent', borderRadius: '8px' },
|
20
20
|
};
|
21
21
|
return (React.createElement(UIThemeProvider, null, variant === 'outlined' && !!label && labelPlacement === 'outside-top' ? (React.createElement(React.Fragment, null,
|
22
|
-
React.createElement(InputLabel, { htmlFor: id
|
22
|
+
React.createElement(InputLabel, { htmlFor: id ?? '', sx: { paddingBottom: instructionText ? '0px' : '3px', fontSize: '14px' } },
|
23
|
+
label ?? '',
|
23
24
|
' ',
|
24
25
|
props.required ? (React.createElement(Typography, { sx: { color: 'red', fontSize: '14px' }, component: 'span' }, "*")) : null),
|
25
26
|
instructionText && React.createElement(Typography, { variant: 'caption' }, instructionText),
|
26
|
-
React.createElement(MUITextField,
|
27
|
+
React.createElement(MUITextField, { inputProps: {
|
27
28
|
readOnly: readOnly,
|
28
29
|
'aria-readonly': !!readOnly,
|
29
30
|
'data-testid': 'label-outside',
|
30
|
-
}
|
31
|
-
?
|
31
|
+
}, ...props, label: null, sx: readOnly
|
32
|
+
? { ...readOnlyStyles, ...props.sx }
|
33
|
+
: {
|
34
|
+
'& fieldset': { borderRadius: '8px' },
|
35
|
+
...props.sx,
|
36
|
+
} }),
|
32
37
|
error && React.createElement(FieldError, { required: required, label: errorMessage }))) : (React.createElement(React.Fragment, null,
|
33
|
-
React.createElement(MUITextField,
|
34
|
-
?
|
38
|
+
React.createElement(MUITextField, { inputProps: { readOnly: readOnly, 'aria-readonly': !!readOnly, 'data-testid': 'label-inside' }, ...props, sx: readOnly
|
39
|
+
? { ...readOnlyStyles, ...props.sx }
|
40
|
+
: { '& fieldset': { borderRadius: '8px' }, ...props.sx } }),
|
35
41
|
error && React.createElement(FieldError, { required: required, label: errorMessage })))));
|
36
42
|
};
|
37
43
|
export default TextField;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const ToggleButton = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIToggleButton,
|
6
|
+
React.createElement(MUIToggleButton, { ...props })));
|
7
7
|
};
|
8
8
|
export default ToggleButton;
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const ToggleButtonGroup = (props) => {
|
5
5
|
return (React.createElement(UIThemeProvider, null,
|
6
|
-
React.createElement(MUIToggleButtonGroup,
|
6
|
+
React.createElement(MUIToggleButtonGroup, { ...props })));
|
7
7
|
};
|
8
8
|
export default ToggleButtonGroup;
|
@@ -2,8 +2,21 @@ import { Tooltip as MUITooltip } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
3
3
|
import UIThemeProvider from '../../../theme';
|
4
4
|
const Tooltip = (props) => {
|
5
|
-
var _a, _b, _c;
|
6
5
|
return (React.createElement(UIThemeProvider, null,
|
7
|
-
React.createElement(MUITooltip,
|
6
|
+
React.createElement(MUITooltip, { ...props, componentsProps: {
|
7
|
+
...props?.componentsProps,
|
8
|
+
tooltip: {
|
9
|
+
...props?.componentsProps?.tooltip,
|
10
|
+
sx: {
|
11
|
+
borderRadius: '8px',
|
12
|
+
padding: '8px 12px',
|
13
|
+
backgroundColor: 'rgb(50, 48, 48, .90)',
|
14
|
+
fontSize: '13px',
|
15
|
+
fontWeight: 400,
|
16
|
+
maxWidth: '320px',
|
17
|
+
...props?.componentsProps?.tooltip?.sx,
|
18
|
+
},
|
19
|
+
},
|
20
|
+
} })));
|
8
21
|
};
|
9
22
|
export default Tooltip;
|
@@ -4,7 +4,7 @@ import UIThemeProvider from '../../../theme';
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5
5
|
const Typography = (props) => {
|
6
6
|
return (React.createElement(UIThemeProvider, null,
|
7
|
-
React.createElement(MUITypography,
|
7
|
+
React.createElement(MUITypography, { ...props })));
|
8
8
|
};
|
9
9
|
export default Typography;
|
10
10
|
export { Typography };
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
-
var t = {};
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
-
t[p] = s[p];
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
-
t[p[i]] = s[p[i]];
|
9
|
-
}
|
10
|
-
return t;
|
11
|
-
};
|
12
1
|
import { Box } from '@mui/material';
|
13
2
|
import { DataGrid as MuiDataGrid, } from '@mui/x-data-grid';
|
14
3
|
import React, { useMemo, useState } from 'react';
|
@@ -17,8 +6,7 @@ import ErrorComponent from '../ErrorComponent';
|
|
17
6
|
import BuilderGridToolbar from './BuilderGridToolbar';
|
18
7
|
import { EmptyContent } from './EmptyContent';
|
19
8
|
const BuilderGrid = (props) => {
|
20
|
-
|
21
|
-
const { loading, actions, item, rows, initialSort, emptyContentSelectOptions, emptyContentActionIndex, title, subtitle, disablePagination, hideEmptyContent, hideToolbar, hideSearchbar, noRowsOverlay, filterComponent, error } = props, rest = __rest(props, ["loading", "actions", "item", "rows", "initialSort", "emptyContentSelectOptions", "emptyContentActionIndex", "title", "subtitle", "disablePagination", "hideEmptyContent", "hideToolbar", "hideSearchbar", "noRowsOverlay", "filterComponent", "error"]);
|
9
|
+
const { loading, actions, item, rows, initialSort, emptyContentSelectOptions, emptyContentActionIndex, title, subtitle, disablePagination, hideEmptyContent, hideToolbar, hideSearchbar, noRowsOverlay, filterComponent, error, ...rest } = props;
|
22
10
|
const [anchorEl, setAnchorEl] = useState();
|
23
11
|
const toolbar = useMemo(() => () => (React.createElement(BuilderGridToolbar, { loading: loading, actions: actions, title: title, subtitle: subtitle, hideSearchbar: hideSearchbar, filter: filterComponent })), [loading, actions]);
|
24
12
|
return (React.createElement(UIThemeProvider, null, loading || rows.length || hideEmptyContent ? (React.createElement(Box, { sx: {
|
@@ -29,38 +17,54 @@ const BuilderGrid = (props) => {
|
|
29
17
|
borderBottom: 'none',
|
30
18
|
boxShadow: 'rgba(145, 158, 171, 0.2) 0px 8px 16px',
|
31
19
|
} },
|
32
|
-
React.createElement(MuiDataGrid,
|
20
|
+
React.createElement(MuiDataGrid, { autoPageSize: !disablePagination, hideFooterPagination: disablePagination, hideFooter: disablePagination, onMenuOpen: (env) => setAnchorEl(env.target), loading: loading, rows: rows, ...rest, sx: {
|
21
|
+
border: 'none',
|
22
|
+
'& .MuiDataGrid-toolbarContainer': {
|
33
23
|
padding: '0',
|
34
24
|
fontColor: '#212B36',
|
35
25
|
margin: '16px 16px 0 16px',
|
36
|
-
},
|
26
|
+
},
|
27
|
+
'& .MuiDataGrid-row': {
|
37
28
|
borderBottom: '1px solid #eee',
|
38
|
-
},
|
29
|
+
},
|
30
|
+
'& .MuiDataGrid-cell': {
|
39
31
|
border: 'none',
|
40
32
|
padding: '0 24px',
|
41
|
-
},
|
33
|
+
},
|
34
|
+
'& .MuiDataGrid-footerContainer': {
|
42
35
|
borderRadius: '0 0 6px 6px',
|
43
36
|
height: '60px',
|
44
37
|
borderTop: 'none',
|
45
|
-
},
|
38
|
+
},
|
39
|
+
'& .MuiTablePagination-displayedRows': {
|
46
40
|
marginBottom: 0,
|
47
|
-
},
|
41
|
+
},
|
42
|
+
'& .MuiDataGrid-columnHeader:focus-within, & .MuiDataGrid-columnHeader:focus': {
|
48
43
|
outline: 'none',
|
49
|
-
},
|
44
|
+
},
|
45
|
+
'& .MuiDataGrid-iconSeparator': { visibility: 'hidden' },
|
46
|
+
'& .MuiDataGrid-cell:focus-within, & .MuiDataGrid-cell:focus': {
|
50
47
|
outline: 'none',
|
51
|
-
},
|
48
|
+
},
|
49
|
+
'& .MuiDataGrid-columnHeader': {
|
52
50
|
backgroundColor: '#F4F6F8',
|
53
51
|
padding: '0 24px',
|
54
|
-
},
|
52
|
+
},
|
53
|
+
'& .MuiDataGrid-columnHeaders': {
|
55
54
|
borderTop: hideToolbar ? 'none' : '1px solid #e2e2e3',
|
56
55
|
borderRadius: 0,
|
57
56
|
backgroundColor: '#f4f6f8',
|
58
|
-
},
|
57
|
+
},
|
58
|
+
'& .MuiDataGrid-columnHeaderTitle': {
|
59
59
|
color: '#637381',
|
60
60
|
fontWeight: 700,
|
61
|
-
},
|
61
|
+
},
|
62
|
+
'& .MuiDataGrid-iconButtonContainer': {
|
62
63
|
marginLeft: '4px',
|
63
|
-
},
|
64
|
+
},
|
65
|
+
height: disablePagination && !loading ? 'auto' : 'calc(100vh - 240px)',
|
66
|
+
...rest.sx,
|
67
|
+
}, getRowId: (row) => row.id, disableColumnMenu: true, initialState: {
|
64
68
|
sorting: {
|
65
69
|
sortModel: initialSort ? [initialSort] : [],
|
66
70
|
},
|
@@ -85,7 +89,7 @@ const BuilderGrid = (props) => {
|
|
85
89
|
noRowsOverlay: () => {
|
86
90
|
return noRowsOverlay ? noRowsOverlay : null;
|
87
91
|
},
|
88
|
-
}, rowHeight: 60, columnHeaderHeight: 62 })))
|
92
|
+
}, rowHeight: 60, columnHeaderHeight: 62 }))) : (React.createElement(React.Fragment, null, error ? (React.createElement(Box, { sx: {
|
89
93
|
backgroundColor: '#fff',
|
90
94
|
borderRadius: '6px',
|
91
95
|
display: 'flex',
|
@@ -93,7 +97,7 @@ const BuilderGrid = (props) => {
|
|
93
97
|
justifyContent: 'center',
|
94
98
|
boxShadow: '0px 24px 48px rgba(145, 158, 171, 0.4)',
|
95
99
|
width: '100%',
|
96
|
-
height:
|
100
|
+
height: rest.sx?.height ?? 'calc(100vh - 240px)',
|
97
101
|
} },
|
98
102
|
React.createElement(ErrorComponent, { code: error === 403 ? 'AccessDenied' : error === 404 ? 'NotFound' : 'Misconfigured', styles: { boxShadow: 'none' } }))) : rows && !rows.length ? (React.createElement(Box, { sx: {
|
99
103
|
backgroundColor: '#fff',
|
@@ -103,8 +107,8 @@ const BuilderGrid = (props) => {
|
|
103
107
|
justifyContent: 'center',
|
104
108
|
boxShadow: '0px 24px 48px rgba(145, 158, 171, 0.4)',
|
105
109
|
width: '100%',
|
106
|
-
height:
|
110
|
+
height: rest.sx?.height ?? 'calc(100vh - 240px)',
|
107
111
|
} },
|
108
|
-
React.createElement(EmptyContent, { item: item, onClick:
|
112
|
+
React.createElement(EmptyContent, { item: item, onClick: actions?.[emptyContentActionIndex ?? 0]?.onClick, selectOptions: emptyContentSelectOptions }))) : (React.createElement(React.Fragment, null))))));
|
109
113
|
};
|
110
114
|
export default BuilderGrid;
|
@@ -5,7 +5,6 @@ import UIThemeProvider from '../../../theme';
|
|
5
5
|
import { Grid } from '../../layout';
|
6
6
|
import { ToolbarActions } from './ToolbarActions';
|
7
7
|
function BuilderGridToolbar(props) {
|
8
|
-
var _a, _b, _c;
|
9
8
|
const { theme, actions, title, subtitle, filter, hideSearchbar } = props;
|
10
9
|
const styles = {
|
11
10
|
container: {
|
@@ -32,7 +31,7 @@ function BuilderGridToolbar(props) {
|
|
32
31
|
'& .MuiOutlinedInput-root': {
|
33
32
|
minWidth: '300px',
|
34
33
|
'&.Mui-focused fieldset': {
|
35
|
-
borderColor:
|
34
|
+
borderColor: theme?.palette?.primary?.main ?? 'primary',
|
36
35
|
},
|
37
36
|
},
|
38
37
|
'& fieldset': {
|
@@ -39,13 +39,12 @@ export const EmptyContent = (props) => {
|
|
39
39
|
React.createElement(Box, { display: "flex", justifyContent: "center" },
|
40
40
|
React.createElement(Typography, { sx: styles.message }, !selectOptions ? `Get started by adding a new ${item}` : selectOptions.instructionText)),
|
41
41
|
selectOptions && (React.createElement(Box, { display: "flex", justifyContent: "center" },
|
42
|
-
React.createElement(Autocomplete, { id: 'option', options: selectOptions.options, sx: { width: '200px', marginTop: '15px' }, value: selectOptions.selectedOption || null, renderInput: (params) => (React.createElement(TextField,
|
43
|
-
var _a, _b, _c, _d;
|
42
|
+
React.createElement(Autocomplete, { id: 'option', options: selectOptions.options, sx: { width: '200px', marginTop: '15px' }, value: selectOptions.selectedOption || null, renderInput: (params) => (React.createElement(TextField, { ...params, placeholder: selectOptions.placeholder, size: "small" })), isOptionEqualToValue: (option, value) => option.value === value, getOptionLabel: (option) => {
|
44
43
|
if (typeof option === 'string') {
|
45
|
-
return
|
44
|
+
return selectOptions.options?.find((o) => o.value === option)?.label || '';
|
46
45
|
}
|
47
|
-
return
|
48
|
-
}, sortBy: 'ASC', onChange: (e, val) => selectOptions.onChange(val
|
46
|
+
return selectOptions.options?.find((o) => o.value === option?.value)?.label || '';
|
47
|
+
}, sortBy: 'ASC', onChange: (e, val) => selectOptions.onChange(val?.value) }))),
|
49
48
|
React.createElement(Box, { display: "flex", justifyContent: "center" },
|
50
49
|
React.createElement(Button, { sx: styles.button, variant: "contained", size: "medium", color: "inherit", onClick: onClick }, `Create ${startCase(item)}`))));
|
51
50
|
};
|
@@ -1,6 +1,11 @@
|
|
1
1
|
import { SvgIcon } from '@mui/material';
|
2
2
|
import React from 'react';
|
3
|
-
export const EmptyContentIllustration = (props) => (React.createElement(SvgIcon,
|
3
|
+
export const EmptyContentIllustration = (props) => (React.createElement(SvgIcon, { ...props, viewBox: '0 0 150 113', sx: {
|
4
|
+
verticalAlign: 'top',
|
5
|
+
height: 'auto',
|
6
|
+
width: 'auto',
|
7
|
+
...props.sx,
|
8
|
+
} },
|
4
9
|
React.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: "18rem" },
|
5
10
|
React.createElement("g", { opacity: "0.2" },
|
6
11
|
React.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0 62.119C0 75.0743 4.67043 86.8799 12.356 95.802C21.173 106.041 33.9585 112.478 48.2102 112.5C54.4388 112.509 60.3944 111.285 65.8649 109.051C68.6934 107.895 71.8593 108.028 74.5988 109.397C77.8123 111.001 81.4107 111.901 85.2104 111.901C86.78 111.901 88.3171 111.746 89.804 111.453C94.0481 110.618 97.9102 108.643 101.082 105.846C103.075 104.088 105.628 103.204 108.237 103.207H108.282C116.903 103.207 124.912 100.478 131.561 95.802C137.505 91.6269 142.359 85.8969 145.593 79.1692C148.413 73.3066 150 66.6837 150 59.6743C150 35.6335 131.321 16.1417 108.282 16.1417C105.933 16.1417 103.632 16.3487 101.387 16.7349C95.443 6.69377 84.7985 0 72.6558 0C67.5291 0 62.6688 1.19303 58.3183 3.33163C54.1809 5.35885 50.5024 8.23946 47.4932 11.75C37.2754 11.92 27.8275 15.4031 20.0947 21.2161C7.92233 30.361 0 45.2757 0 62.119Z", fill: "url(#paint0_linear_25056_169704)" })),
|
@@ -3,7 +3,9 @@ import { Button } from '../../core';
|
|
3
3
|
import { Grid } from '../../layout';
|
4
4
|
export const ToolbarActions = (props) => {
|
5
5
|
const { actions } = props;
|
6
|
-
return (React.createElement(Grid, { item: true, container: true, display: 'flex', alignItems: 'center', justifyContent: 'flex-end' }, actions
|
6
|
+
return (React.createElement(Grid, { item: true, container: true, display: 'flex', alignItems: 'center', justifyContent: 'flex-end' }, actions
|
7
|
+
?.filter((a) => !a.isHidden)
|
8
|
+
.map((action, index) => (React.createElement(Grid, { item: true, display: 'flex', alignItems: 'center', justifyContent: 'flex-end' },
|
7
9
|
React.createElement(Button, { sx: {
|
8
10
|
fontWeight: 700,
|
9
11
|
height: '36px',
|