aefis-core-ui 2.4.0-rc21 → 2.4.0-rc22
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 +65 -67
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -63,14 +63,12 @@ import IconButton$2 from '@mui/material/IconButton';
|
|
|
63
63
|
import Edit$1 from '@mui/icons-material/Edit';
|
|
64
64
|
import HeaderImage from './assets/heliocampus-cornersun.png';
|
|
65
65
|
import Skeleton$5 from '@mui/material/Skeleton';
|
|
66
|
-
import { MenuContext as MenuContext$1 } from 'core-ui/components/NavigationMenuPanel/NavigationMenuPanel';
|
|
67
66
|
import { useFormControl } from '@mui/material/FormControl';
|
|
68
67
|
import AppBar$1 from '@mui/material/AppBar';
|
|
69
68
|
import FadeIn from 'react-fade-in';
|
|
70
69
|
import PerfectScrollbar from 'react-perfect-scrollbar';
|
|
71
70
|
import { useColumnOrder, useFilters, useGroupBy, useSortBy, useFlexLayout, usePagination, useResizeColumns, useRowSelect, useTable } from 'react-table';
|
|
72
71
|
import SortIcon from '@mui/icons-material/Sort';
|
|
73
|
-
import Collapsible$1 from 'core-ui/components/Collapsible/Collapsible';
|
|
74
72
|
import { useSnackbar, SnackbarProvider } from 'notistack';
|
|
75
73
|
import AutorenewIcon from '@mui/icons-material/Autorenew';
|
|
76
74
|
import { VerticalTimeline, VerticalTimelineElement } from 'react-vertical-timeline-component';
|
|
@@ -14285,7 +14283,7 @@ const SubMenuItem = ({
|
|
|
14285
14283
|
const {
|
|
14286
14284
|
selected,
|
|
14287
14285
|
setSelected
|
|
14288
|
-
} = useContext(MenuContext
|
|
14286
|
+
} = useContext(MenuContext);
|
|
14289
14287
|
const handleClick = child => {
|
|
14290
14288
|
setSelected(child.id);
|
|
14291
14289
|
onClick && onClick(child);
|
|
@@ -18818,6 +18816,69 @@ FilterSelection.propTypes = {
|
|
|
18818
18816
|
isCollapsibleOpen: PropTypes.bool
|
|
18819
18817
|
};
|
|
18820
18818
|
|
|
18819
|
+
function Collapsible({
|
|
18820
|
+
sx,
|
|
18821
|
+
renderHeader,
|
|
18822
|
+
renderContent,
|
|
18823
|
+
defaultOpen = false,
|
|
18824
|
+
open: propOpen,
|
|
18825
|
+
onToggle
|
|
18826
|
+
}) {
|
|
18827
|
+
const [open, setOpen] = useState(defaultOpen);
|
|
18828
|
+
const handleToggleExpand = () => {
|
|
18829
|
+
setOpen(open => !open);
|
|
18830
|
+
};
|
|
18831
|
+
useEffect(() => {
|
|
18832
|
+
onToggle == null ? void 0 : onToggle(open);
|
|
18833
|
+
}, [open]);
|
|
18834
|
+
const buttonId = useUID();
|
|
18835
|
+
const contentId = useUID();
|
|
18836
|
+
const buttonA11yProps = {
|
|
18837
|
+
id: buttonId,
|
|
18838
|
+
"aria-controls": contentId
|
|
18839
|
+
};
|
|
18840
|
+
const contentA11yProps = {
|
|
18841
|
+
id: contentId,
|
|
18842
|
+
"aria-hidden": !open
|
|
18843
|
+
};
|
|
18844
|
+
return /*#__PURE__*/jsxs(Box$2, {
|
|
18845
|
+
sx: sx,
|
|
18846
|
+
children: [/*#__PURE__*/jsxs(Box$2, {
|
|
18847
|
+
sx: {
|
|
18848
|
+
display: "flex",
|
|
18849
|
+
flexWrap: "no-wrap"
|
|
18850
|
+
},
|
|
18851
|
+
children: [/*#__PURE__*/jsx(Box$2, {
|
|
18852
|
+
sx: {
|
|
18853
|
+
flex: 1,
|
|
18854
|
+
flexDirection: "column",
|
|
18855
|
+
justifyContent: "center",
|
|
18856
|
+
display: "flex"
|
|
18857
|
+
},
|
|
18858
|
+
children: renderHeader == null ? void 0 : renderHeader()
|
|
18859
|
+
}), /*#__PURE__*/jsx(Box$2, {
|
|
18860
|
+
children: /*#__PURE__*/jsx(CollapsibleContentButton, _extends({
|
|
18861
|
+
id: buttonId,
|
|
18862
|
+
open: propOpen || open,
|
|
18863
|
+
onClick: handleToggleExpand
|
|
18864
|
+
}, buttonA11yProps))
|
|
18865
|
+
})]
|
|
18866
|
+
}), /*#__PURE__*/jsx(CollapsibleContent, _extends({
|
|
18867
|
+
open: propOpen || open
|
|
18868
|
+
}, contentA11yProps, {
|
|
18869
|
+
children: renderContent()
|
|
18870
|
+
}))]
|
|
18871
|
+
});
|
|
18872
|
+
}
|
|
18873
|
+
Collapsible.propTypes = {
|
|
18874
|
+
open: PropTypes.bool,
|
|
18875
|
+
defaultOpen: PropTypes.bool,
|
|
18876
|
+
renderContent: PropTypes.func,
|
|
18877
|
+
renderHeader: PropTypes.func,
|
|
18878
|
+
sx: PropTypes.any,
|
|
18879
|
+
onToggle: PropTypes.func
|
|
18880
|
+
};
|
|
18881
|
+
|
|
18821
18882
|
const useStyles$m = makeStyles(theme => ({
|
|
18822
18883
|
groupTitle: {
|
|
18823
18884
|
margin: 0,
|
|
@@ -18952,7 +19013,7 @@ const PanelDisplay = ({
|
|
|
18952
19013
|
}) => {
|
|
18953
19014
|
const [collapsibleIsOpen, setCollapsibleIsOpen] = useState(false);
|
|
18954
19015
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
18955
|
-
children: [_collapsiblePanel ? /*#__PURE__*/jsx(Collapsible
|
|
19016
|
+
children: [_collapsiblePanel ? /*#__PURE__*/jsx(Collapsible, {
|
|
18956
19017
|
defaultOpen: _isCollapsibleOpen,
|
|
18957
19018
|
onToggle: open => setCollapsibleIsOpen(open),
|
|
18958
19019
|
renderHeader: () => /*#__PURE__*/jsx(PanelHeader, {
|
|
@@ -22669,69 +22730,6 @@ BusinessObjectTable.propTypes = _extends({
|
|
|
22669
22730
|
height: PropTypes.any
|
|
22670
22731
|
}, DataTable$1.propTypes);
|
|
22671
22732
|
|
|
22672
|
-
function Collapsible({
|
|
22673
|
-
sx,
|
|
22674
|
-
renderHeader,
|
|
22675
|
-
renderContent,
|
|
22676
|
-
defaultOpen = false,
|
|
22677
|
-
open: propOpen,
|
|
22678
|
-
onToggle
|
|
22679
|
-
}) {
|
|
22680
|
-
const [open, setOpen] = useState(defaultOpen);
|
|
22681
|
-
const handleToggleExpand = () => {
|
|
22682
|
-
setOpen(open => !open);
|
|
22683
|
-
};
|
|
22684
|
-
useEffect(() => {
|
|
22685
|
-
onToggle == null ? void 0 : onToggle(open);
|
|
22686
|
-
}, [open]);
|
|
22687
|
-
const buttonId = useUID();
|
|
22688
|
-
const contentId = useUID();
|
|
22689
|
-
const buttonA11yProps = {
|
|
22690
|
-
id: buttonId,
|
|
22691
|
-
"aria-controls": contentId
|
|
22692
|
-
};
|
|
22693
|
-
const contentA11yProps = {
|
|
22694
|
-
id: contentId,
|
|
22695
|
-
"aria-hidden": !open
|
|
22696
|
-
};
|
|
22697
|
-
return /*#__PURE__*/jsxs(Box$2, {
|
|
22698
|
-
sx: sx,
|
|
22699
|
-
children: [/*#__PURE__*/jsxs(Box$2, {
|
|
22700
|
-
sx: {
|
|
22701
|
-
display: "flex",
|
|
22702
|
-
flexWrap: "no-wrap"
|
|
22703
|
-
},
|
|
22704
|
-
children: [/*#__PURE__*/jsx(Box$2, {
|
|
22705
|
-
sx: {
|
|
22706
|
-
flex: 1,
|
|
22707
|
-
flexDirection: "column",
|
|
22708
|
-
justifyContent: "center",
|
|
22709
|
-
display: "flex"
|
|
22710
|
-
},
|
|
22711
|
-
children: renderHeader == null ? void 0 : renderHeader()
|
|
22712
|
-
}), /*#__PURE__*/jsx(Box$2, {
|
|
22713
|
-
children: /*#__PURE__*/jsx(CollapsibleContentButton, _extends({
|
|
22714
|
-
id: buttonId,
|
|
22715
|
-
open: propOpen || open,
|
|
22716
|
-
onClick: handleToggleExpand
|
|
22717
|
-
}, buttonA11yProps))
|
|
22718
|
-
})]
|
|
22719
|
-
}), /*#__PURE__*/jsx(CollapsibleContent, _extends({
|
|
22720
|
-
open: propOpen || open
|
|
22721
|
-
}, contentA11yProps, {
|
|
22722
|
-
children: renderContent()
|
|
22723
|
-
}))]
|
|
22724
|
-
});
|
|
22725
|
-
}
|
|
22726
|
-
Collapsible.propTypes = {
|
|
22727
|
-
open: PropTypes.bool,
|
|
22728
|
-
defaultOpen: PropTypes.bool,
|
|
22729
|
-
renderContent: PropTypes.func,
|
|
22730
|
-
renderHeader: PropTypes.func,
|
|
22731
|
-
sx: PropTypes.any,
|
|
22732
|
-
onToggle: PropTypes.func
|
|
22733
|
-
};
|
|
22734
|
-
|
|
22735
22733
|
const createStore = initialState => {
|
|
22736
22734
|
let state = initialState;
|
|
22737
22735
|
const getState = () => state;
|