aefis-core-ui 2.4.0-rc9 → 2.4.0
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.d.ts +2 -1
- package/dist/index.modern.js +139 -63
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import BusinessObjectTable from "./components/BusinessObjectTable/BusinessObject
|
|
|
33
33
|
import Button from "./components/Button/Button";
|
|
34
34
|
import Chip from "./components/Chip/Chip";
|
|
35
35
|
import ContentBox from "./components/ContentBox/ContentBox";
|
|
36
|
+
import { ContentBoxHeader } from "./components/ContentBox/ContentBox";
|
|
36
37
|
import CoreProvider from "./components/CoreProvider/CoreProvider";
|
|
37
38
|
import createEvent from "./services/createEvent";
|
|
38
39
|
import createStore from "./services/createStore";
|
|
@@ -113,4 +114,4 @@ import UnstableScrollingContainer from "./components/UnstableScrollingContainer/
|
|
|
113
114
|
import { useSelectFormState } from "./components/DynamicForm/store";
|
|
114
115
|
import { useSetFormState } from "./components/DynamicForm/store";
|
|
115
116
|
import useReadOnly from "./components/DynamicForm/hooks/useReadOnly/useReadOnly";
|
|
116
|
-
export { UnstableDataTable, UnstableRichDataTable, Actions, Alert, AppToolbar, AvatarBox, ArtifactBrowser, AvatarTitle, BusinessObject, businessObjectColor, businessObjectConfiguration, businessObjectIcon, BusinessObjectCard, BusinessObjectCardSectionTitle, BusinessObjectCardEmptySection, BusinessObjectCardSection, BusinessObjectPanel, BusinessObjectPanelHeader, BusinessObjectPanelSection, BusinessObjectPanelSectionTitle, BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton, Collapsible, CollapsibleProvider, useCollapsibleState, CollapsibleContent, CollapsibleContentContainer, CollapsibleContentButton, CollapsibleContentButtonContainer, withStatusButtonDataSource, BusinessObjectTable, Button, Chip, ContentBox, CoreProvider, createEvent, createStore, CurriculumChart, dataSourceManager, getConfiguration, setDataSourceConfiguration, registerDataSource, registerDataSources, useDataSourceQuery, useDataSourceInfiniteQuery, useDataSourceMutation, filterSortData, getBaseUrl, getDataSourceUrl, DataTable, DynamicForm, DatePicker, DisplayInFrame, DocViewer, Drawer, EditableText, FilterPanel, FilterPanelFilterChips, FilterPanelMapFilters, FullPageViewer, http, Icon, Image, IsometricImage, List, ListItem, ListItemGroup, MenuButton, ModalDialog, NavigationDrawer, Notification, OutcomeSpace, outcomeSpaceColor, outcomeSpaceTypeFromSource, PanelDrawer, ProgressChart, RichDataTable, RubricDistributionChart, RubricScoreSlider, RubricLegend, SaveModal, ScrollToTopButton, ScrollingContainer, SkeletonContent, StatBoxes, StatusMessage, SvgImage, SwipeableTabPanel, SwipeableTabPanelContent, template, TextBuilder, TextBuilderStore, Timeline, TitleAndActionHeader, TitleAndDescription, useComponentWillMount, useDataSourceUrl, useDebounceCallback, useNotify, UserAvatar, WizardPanel, WizardCompletedItemList, useRefDimensions, createComponentEvent, DynamicFormBusinessObjectPickerField, UnstableScrollingContainer };
|
|
117
|
+
export { UnstableDataTable, UnstableRichDataTable, Actions, Alert, AppToolbar, AvatarBox, ArtifactBrowser, AvatarTitle, BusinessObject, businessObjectColor, businessObjectConfiguration, businessObjectIcon, BusinessObjectCard, BusinessObjectCardSectionTitle, BusinessObjectCardEmptySection, BusinessObjectCardSection, BusinessObjectPanel, BusinessObjectPanelHeader, BusinessObjectPanelSection, BusinessObjectPanelSectionTitle, BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton, Collapsible, CollapsibleProvider, useCollapsibleState, CollapsibleContent, CollapsibleContentContainer, CollapsibleContentButton, CollapsibleContentButtonContainer, withStatusButtonDataSource, BusinessObjectTable, Button, Chip, ContentBox, ContentBoxHeader, CoreProvider, createEvent, createStore, CurriculumChart, dataSourceManager, getConfiguration, setDataSourceConfiguration, registerDataSource, registerDataSources, useDataSourceQuery, useDataSourceInfiniteQuery, useDataSourceMutation, filterSortData, getBaseUrl, getDataSourceUrl, DataTable, DynamicForm, DatePicker, DisplayInFrame, DocViewer, Drawer, EditableText, FilterPanel, FilterPanelFilterChips, FilterPanelMapFilters, FullPageViewer, http, Icon, Image, IsometricImage, List, ListItem, ListItemGroup, MenuButton, ModalDialog, NavigationDrawer, Notification, OutcomeSpace, outcomeSpaceColor, outcomeSpaceTypeFromSource, PanelDrawer, ProgressChart, RichDataTable, RubricDistributionChart, RubricScoreSlider, RubricLegend, SaveModal, ScrollToTopButton, ScrollingContainer, SkeletonContent, StatBoxes, StatusMessage, SvgImage, SwipeableTabPanel, SwipeableTabPanelContent, template, TextBuilder, TextBuilderStore, Timeline, TitleAndActionHeader, TitleAndDescription, useComponentWillMount, useDataSourceUrl, useDebounceCallback, useNotify, UserAvatar, WizardPanel, WizardCompletedItemList, useRefDimensions, createComponentEvent, DynamicFormBusinessObjectPickerField, UnstableScrollingContainer };
|
package/dist/index.modern.js
CHANGED
|
@@ -623,7 +623,7 @@ Badge.propTypes = {
|
|
|
623
623
|
};
|
|
624
624
|
|
|
625
625
|
// Copyright (c) 2022 HelioCampus Inc., all rights reserved.
|
|
626
|
-
const useStyles$
|
|
626
|
+
const useStyles$L = makeStyles(theme => ({
|
|
627
627
|
menu: {
|
|
628
628
|
textDecoration: "none",
|
|
629
629
|
color: "inherit"
|
|
@@ -640,7 +640,7 @@ const useStyles$K = makeStyles(theme => ({
|
|
|
640
640
|
}
|
|
641
641
|
}));
|
|
642
642
|
const ActionMenu = props => {
|
|
643
|
-
const classes = useStyles$
|
|
643
|
+
const classes = useStyles$L();
|
|
644
644
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
645
645
|
const open = Boolean(anchorEl);
|
|
646
646
|
const handleClick = event => {
|
|
@@ -1724,7 +1724,7 @@ var dataSourceManager = {
|
|
|
1724
1724
|
};
|
|
1725
1725
|
|
|
1726
1726
|
// Copyright (c) 2022 HelioCampus Inc., all rights reserved.
|
|
1727
|
-
const useStyles$
|
|
1727
|
+
const useStyles$K = makeStyles(() => ({
|
|
1728
1728
|
avatar: {
|
|
1729
1729
|
marginLeft: "auto",
|
|
1730
1730
|
marginRight: "auto",
|
|
@@ -1770,7 +1770,7 @@ const getUserInitials = user => {
|
|
|
1770
1770
|
const RenderAvatar = props => {
|
|
1771
1771
|
var _props$user;
|
|
1772
1772
|
const theme = useTheme$1();
|
|
1773
|
-
const classes = useStyles$
|
|
1773
|
+
const classes = useStyles$K();
|
|
1774
1774
|
const avatarColor = props.customColor ? props.customColor : props.color === "primary" ? deepOrange[500] : props.color === "secondary" ? blue[700] : deepOrange[500];
|
|
1775
1775
|
const style = {
|
|
1776
1776
|
small: {
|
|
@@ -1861,7 +1861,7 @@ UserAvatar.propTypes = {
|
|
|
1861
1861
|
customColor: PropTypes.string
|
|
1862
1862
|
};
|
|
1863
1863
|
|
|
1864
|
-
const useStyles$
|
|
1864
|
+
const useStyles$J = makeStyles$1(theme => ({
|
|
1865
1865
|
expand: {
|
|
1866
1866
|
transform: "rotate(180deg)",
|
|
1867
1867
|
marginLeft: "auto",
|
|
@@ -1883,7 +1883,7 @@ const UserButton = ({
|
|
|
1883
1883
|
actions,
|
|
1884
1884
|
onLogout
|
|
1885
1885
|
}) => {
|
|
1886
|
-
const classes = useStyles$
|
|
1886
|
+
const classes = useStyles$J();
|
|
1887
1887
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
1888
1888
|
const open = Boolean(anchorEl);
|
|
1889
1889
|
const handleClick = event => {
|
|
@@ -1992,18 +1992,18 @@ UserButton.propTypes = {
|
|
|
1992
1992
|
onLogout: PropTypes.func
|
|
1993
1993
|
};
|
|
1994
1994
|
|
|
1995
|
-
// Copyright (c) 2023 HelioCampus Inc, all rights reserved.
|
|
1996
1995
|
const Action = ({
|
|
1997
1996
|
data
|
|
1998
1997
|
}) => {
|
|
1999
1998
|
return /*#__PURE__*/jsx(Tooltip$1, {
|
|
2000
1999
|
title: data.name,
|
|
2001
|
-
children: /*#__PURE__*/jsx(IconButton, {
|
|
2000
|
+
children: /*#__PURE__*/jsx(IconButton, _extends({
|
|
2002
2001
|
size: "large",
|
|
2003
2002
|
color: "inherit",
|
|
2004
2003
|
name: data.iconName,
|
|
2005
2004
|
onClick: data.onClick,
|
|
2006
|
-
disabled: data.disabled || false
|
|
2005
|
+
disabled: data.disabled || false
|
|
2006
|
+
}, data.buttonProperties, {
|
|
2007
2007
|
children: /*#__PURE__*/jsx(Badge$1, {
|
|
2008
2008
|
badgeContent: data.badge || 0,
|
|
2009
2009
|
color: "secondary",
|
|
@@ -2011,11 +2011,19 @@ const Action = ({
|
|
|
2011
2011
|
name: data.iconName
|
|
2012
2012
|
})
|
|
2013
2013
|
})
|
|
2014
|
-
})
|
|
2014
|
+
}))
|
|
2015
2015
|
});
|
|
2016
2016
|
};
|
|
2017
2017
|
Action.propTypes = {
|
|
2018
|
-
data: PropTypes.
|
|
2018
|
+
data: PropTypes.shape({
|
|
2019
|
+
id: PropTypes.string,
|
|
2020
|
+
name: PropTypes.string,
|
|
2021
|
+
iconName: PropTypes.string.isRequired,
|
|
2022
|
+
onClick: PropTypes.func,
|
|
2023
|
+
disabled: PropTypes.bool,
|
|
2024
|
+
buttonProperties: PropTypes.any,
|
|
2025
|
+
badge: PropTypes.number
|
|
2026
|
+
})
|
|
2019
2027
|
};
|
|
2020
2028
|
|
|
2021
2029
|
const _excluded$s = ["id", "title", "titleComponent", "menuContainerId", "showMenuButton", "onMenuClick", "onLogout", "actions", "user"];
|
|
@@ -2368,7 +2376,7 @@ const dynamicSuccess = _extends({}, dynamicSuccess$1, {
|
|
|
2368
2376
|
});
|
|
2369
2377
|
|
|
2370
2378
|
// Copyright (c) 2022 HelioCampus Inc, all rights reserved.
|
|
2371
|
-
const useStyles$
|
|
2379
|
+
const useStyles$I = makeStyles$1(theme => ({
|
|
2372
2380
|
title: {
|
|
2373
2381
|
fontSize: "0.975rem",
|
|
2374
2382
|
fontWeight: 400,
|
|
@@ -2422,7 +2430,7 @@ const useStyles$H = makeStyles$1(theme => ({
|
|
|
2422
2430
|
/** Simple component to display a box with or without an avatar along with title and subtitle text. */
|
|
2423
2431
|
|
|
2424
2432
|
const AvatarBox = props => {
|
|
2425
|
-
const classes = useStyles$
|
|
2433
|
+
const classes = useStyles$I();
|
|
2426
2434
|
const avatarStyle = {
|
|
2427
2435
|
backgroundColor: grey[500]
|
|
2428
2436
|
};
|
|
@@ -2579,7 +2587,7 @@ AvatarBox.propTypes = {
|
|
|
2579
2587
|
hasShadow: PropTypes.bool
|
|
2580
2588
|
};
|
|
2581
2589
|
|
|
2582
|
-
const useStyles$
|
|
2590
|
+
const useStyles$H = makeStyles$1(theme => ({
|
|
2583
2591
|
avatar: {
|
|
2584
2592
|
flex: "0 0 auto",
|
|
2585
2593
|
marginRight: theme.spacing(1)
|
|
@@ -2637,7 +2645,7 @@ const AvatarTitle = /*#__PURE__*/React__default.memo(function AvatarTitle({
|
|
|
2637
2645
|
avatarShadow = false,
|
|
2638
2646
|
emphasizeSubtitle = false
|
|
2639
2647
|
}) {
|
|
2640
|
-
const classes = useStyles$
|
|
2648
|
+
const classes = useStyles$H();
|
|
2641
2649
|
const avatarStyle = {
|
|
2642
2650
|
info: {
|
|
2643
2651
|
backgroundColor: info.default,
|
|
@@ -2820,7 +2828,7 @@ AvatarTitle.propTypes = {
|
|
|
2820
2828
|
emphasizeSubtitle: PropTypes.bool
|
|
2821
2829
|
};
|
|
2822
2830
|
|
|
2823
|
-
const useStyles$
|
|
2831
|
+
const useStyles$G = makeStyles(theme => ({
|
|
2824
2832
|
root: {
|
|
2825
2833
|
margin: 0,
|
|
2826
2834
|
padding: theme.spacing(2),
|
|
@@ -2841,7 +2849,7 @@ const useStyles$F = makeStyles(theme => ({
|
|
|
2841
2849
|
}
|
|
2842
2850
|
}));
|
|
2843
2851
|
const DialogTitle = props => {
|
|
2844
|
-
const classes = useStyles$
|
|
2852
|
+
const classes = useStyles$G();
|
|
2845
2853
|
return /*#__PURE__*/jsxs(DialogTitle$1, {
|
|
2846
2854
|
component: "div",
|
|
2847
2855
|
className: classes.root,
|
|
@@ -3072,7 +3080,7 @@ Button.propTypes = _extends({
|
|
|
3072
3080
|
}, Button$1.propTypes);
|
|
3073
3081
|
|
|
3074
3082
|
// Copyright (c) 2022 HelioCampus Inc., all rights reserved.
|
|
3075
|
-
const useStyles$
|
|
3083
|
+
const useStyles$F = makeStyles(() => ({
|
|
3076
3084
|
appBar: {
|
|
3077
3085
|
position: "relative"
|
|
3078
3086
|
},
|
|
@@ -3099,7 +3107,7 @@ const ConfirmButton = withStyles(theme => ({
|
|
|
3099
3107
|
}
|
|
3100
3108
|
}))(Button);
|
|
3101
3109
|
const FullScreenAppBar = props => {
|
|
3102
|
-
const classes = useStyles$
|
|
3110
|
+
const classes = useStyles$F();
|
|
3103
3111
|
return /*#__PURE__*/jsxs(AppBar, {
|
|
3104
3112
|
component: "div",
|
|
3105
3113
|
className: classes.appBar,
|
|
@@ -3828,7 +3836,8 @@ const useTag = color => {
|
|
|
3828
3836
|
return useStyles();
|
|
3829
3837
|
};
|
|
3830
3838
|
|
|
3831
|
-
|
|
3839
|
+
// Copyright (c) 2023 HelioCampus Inc., all rights reserved.
|
|
3840
|
+
const useStyles$E = makeStyles(theme => ({
|
|
3832
3841
|
sectionHeader: {
|
|
3833
3842
|
paddingTop: theme.spacing(2),
|
|
3834
3843
|
paddingBottom: theme.spacing(2),
|
|
@@ -3842,7 +3851,88 @@ const useStyles$D = makeStyles(theme => ({
|
|
|
3842
3851
|
sectionHeaderAction: {
|
|
3843
3852
|
justifyContent: "center",
|
|
3844
3853
|
alignItems: "flex-end"
|
|
3845
|
-
}
|
|
3854
|
+
}
|
|
3855
|
+
}));
|
|
3856
|
+
const ContentBox$1 = ({
|
|
3857
|
+
header,
|
|
3858
|
+
headerAction,
|
|
3859
|
+
headerMenu,
|
|
3860
|
+
title,
|
|
3861
|
+
data,
|
|
3862
|
+
headerComponent: _headerComponent = "h2"
|
|
3863
|
+
}) => {
|
|
3864
|
+
const classes = useStyles$E();
|
|
3865
|
+
return /*#__PURE__*/jsxs(Box$2, {
|
|
3866
|
+
className: classes.sectionHeader,
|
|
3867
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
3868
|
+
variant: "h6",
|
|
3869
|
+
component: _headerComponent,
|
|
3870
|
+
sx: {
|
|
3871
|
+
display: "flex",
|
|
3872
|
+
alignItems: "center"
|
|
3873
|
+
},
|
|
3874
|
+
children: header
|
|
3875
|
+
}), headerAction && /*#__PURE__*/jsx(Button, {
|
|
3876
|
+
name: (headerAction == null ? void 0 : headerAction.name) || "",
|
|
3877
|
+
variant: "contained",
|
|
3878
|
+
color: "primary",
|
|
3879
|
+
size: (headerAction == null ? void 0 : headerAction.size) || "small",
|
|
3880
|
+
sx: {
|
|
3881
|
+
display: "flex",
|
|
3882
|
+
alignItems: "center",
|
|
3883
|
+
marginLeft: "auto",
|
|
3884
|
+
maxHeight: "32px"
|
|
3885
|
+
},
|
|
3886
|
+
onClick: headerAction.action || headerAction.onClick,
|
|
3887
|
+
style: headerAction.style || undefined,
|
|
3888
|
+
disabled: headerAction.disabled || false,
|
|
3889
|
+
startIcon: headerAction.icon || undefined,
|
|
3890
|
+
children: headerAction.name
|
|
3891
|
+
}), headerMenu && /*#__PURE__*/jsx(Box$2, {
|
|
3892
|
+
sx: {
|
|
3893
|
+
ml: 1
|
|
3894
|
+
},
|
|
3895
|
+
children: /*#__PURE__*/jsx(MenuButton, {
|
|
3896
|
+
name: title,
|
|
3897
|
+
menuConfiguration: headerMenu,
|
|
3898
|
+
data: data || undefined,
|
|
3899
|
+
displayType: "icon"
|
|
3900
|
+
})
|
|
3901
|
+
})]
|
|
3902
|
+
});
|
|
3903
|
+
};
|
|
3904
|
+
ContentBox$1.propTypes = {
|
|
3905
|
+
/** Header for the content box. */
|
|
3906
|
+
header: PropTypes.any,
|
|
3907
|
+
headerComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "div"]),
|
|
3908
|
+
/** Action for the header. Should be considered an action related to the content box contents. */
|
|
3909
|
+
headerAction: PropTypes.shape({
|
|
3910
|
+
size: PropTypes.oneOf(["small", "medium"]),
|
|
3911
|
+
icon: PropTypes.any,
|
|
3912
|
+
name: PropTypes.any.isRequired,
|
|
3913
|
+
style: PropTypes.any,
|
|
3914
|
+
action: PropTypes.func.isRequired,
|
|
3915
|
+
onClick: PropTypes.func,
|
|
3916
|
+
disabled: PropTypes.any
|
|
3917
|
+
}),
|
|
3918
|
+
/** Adds a menu to the header */
|
|
3919
|
+
headerMenu: PropTypes.arrayOf(PropTypes.shape({
|
|
3920
|
+
name: PropTypes.string,
|
|
3921
|
+
icon: PropTypes.any,
|
|
3922
|
+
divider: PropTypes.any,
|
|
3923
|
+
onClick: PropTypes.func,
|
|
3924
|
+
disabled: PropTypes.bool
|
|
3925
|
+
})),
|
|
3926
|
+
/** Sub-title of the content box. Can be a string or any component. */
|
|
3927
|
+
subtitle: PropTypes.any,
|
|
3928
|
+
title: PropTypes.any,
|
|
3929
|
+
data: PropTypes.any
|
|
3930
|
+
};
|
|
3931
|
+
|
|
3932
|
+
const ContentBoxHeader = props => {
|
|
3933
|
+
return /*#__PURE__*/jsx(ContentBox$1, _extends({}, props));
|
|
3934
|
+
};
|
|
3935
|
+
const useStyles$D = makeStyles(theme => ({
|
|
3846
3936
|
cardContent: {
|
|
3847
3937
|
paddingTop: 0,
|
|
3848
3938
|
paddingBottom: 0
|
|
@@ -4043,43 +4133,12 @@ const ContentBox = props => {
|
|
|
4043
4133
|
children: /*#__PURE__*/jsxs(Box$2, {
|
|
4044
4134
|
sx: props.sx,
|
|
4045
4135
|
style: props.containerStyle,
|
|
4046
|
-
children: [props.header && /*#__PURE__*/
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
display: "flex",
|
|
4053
|
-
alignItems: "center"
|
|
4054
|
-
},
|
|
4055
|
-
children: props.header
|
|
4056
|
-
}), props.headerAction && /*#__PURE__*/jsx(Button, {
|
|
4057
|
-
name: props.headerAction.name,
|
|
4058
|
-
variant: "contained",
|
|
4059
|
-
color: "primary",
|
|
4060
|
-
size: props.headerAction.size || "small",
|
|
4061
|
-
sx: {
|
|
4062
|
-
display: "flex",
|
|
4063
|
-
alignItems: "center",
|
|
4064
|
-
marginLeft: "auto",
|
|
4065
|
-
maxHeight: "32px"
|
|
4066
|
-
},
|
|
4067
|
-
onClick: props.headerAction.action || props.headerAction.onClick,
|
|
4068
|
-
style: props.headerAction.style || undefined,
|
|
4069
|
-
disabled: props.headerAction.disabled || false,
|
|
4070
|
-
startIcon: props.headerAction.icon || undefined,
|
|
4071
|
-
children: props.headerAction.name
|
|
4072
|
-
}), props.headerMenu && /*#__PURE__*/jsx(Box$2, {
|
|
4073
|
-
sx: {
|
|
4074
|
-
ml: 1
|
|
4075
|
-
},
|
|
4076
|
-
children: /*#__PURE__*/jsx(MenuButton, {
|
|
4077
|
-
name: props.title,
|
|
4078
|
-
menuConfiguration: props.headerMenu,
|
|
4079
|
-
data: props.data || undefined,
|
|
4080
|
-
displayType: "icon"
|
|
4081
|
-
})
|
|
4082
|
-
})]
|
|
4136
|
+
children: [props.header && /*#__PURE__*/jsx(ContentBoxHeader, {
|
|
4137
|
+
header: props.header,
|
|
4138
|
+
headerMenu: props.headerMenu,
|
|
4139
|
+
title: props.title,
|
|
4140
|
+
data: props.data,
|
|
4141
|
+
headerAction: props.headerAction
|
|
4083
4142
|
}), /*#__PURE__*/jsxs(Card, {
|
|
4084
4143
|
style: cardStyle,
|
|
4085
4144
|
className: tag.tag,
|
|
@@ -14428,6 +14487,7 @@ NavigationMenuPanel.propTypes = {
|
|
|
14428
14487
|
|
|
14429
14488
|
// Copyright (c) 2023 HelioCampus Inc, all rights reserved.
|
|
14430
14489
|
const NavigationDrawer = ({
|
|
14490
|
+
id: _id = "hc-main-menu-drawer",
|
|
14431
14491
|
data,
|
|
14432
14492
|
drawerOpen,
|
|
14433
14493
|
onDrawerOpen,
|
|
@@ -14451,7 +14511,7 @@ const NavigationDrawer = ({
|
|
|
14451
14511
|
onMenuItemClick && onMenuItemClick(data);
|
|
14452
14512
|
};
|
|
14453
14513
|
return /*#__PURE__*/jsx(Drawer$1, {
|
|
14454
|
-
id:
|
|
14514
|
+
id: _id,
|
|
14455
14515
|
"aria-hidden": !drawerOpen,
|
|
14456
14516
|
handleDrawerOpen: handleDrawerOpen,
|
|
14457
14517
|
toggleDrawer: onToggleDrawer,
|
|
@@ -14496,6 +14556,7 @@ const NavigationDrawer = ({
|
|
|
14496
14556
|
});
|
|
14497
14557
|
};
|
|
14498
14558
|
NavigationDrawer.propTypes = {
|
|
14559
|
+
id: PropTypes.string,
|
|
14499
14560
|
data: PropTypes.any,
|
|
14500
14561
|
displayType: PropTypes.oneOf(["skeleton", "default", "error"]),
|
|
14501
14562
|
onDrawerClose: PropTypes.func,
|
|
@@ -18844,7 +18905,8 @@ const FilterPanel = props => {
|
|
|
18844
18905
|
sorting,
|
|
18845
18906
|
// TODO: change it to sortingconfig
|
|
18846
18907
|
renderFilterSelection,
|
|
18847
|
-
sort: sortProp
|
|
18908
|
+
sort: sortProp,
|
|
18909
|
+
title
|
|
18848
18910
|
} = props;
|
|
18849
18911
|
const [menuPosition, setMenuPosition] = useState(null);
|
|
18850
18912
|
const [filters, setFilters] = useFilterState(filtersProp);
|
|
@@ -19074,6 +19136,7 @@ const FilterPanel = props => {
|
|
|
19074
19136
|
};
|
|
19075
19137
|
const commonProps = {
|
|
19076
19138
|
configuration,
|
|
19139
|
+
title,
|
|
19077
19140
|
filters,
|
|
19078
19141
|
bottomGutter,
|
|
19079
19142
|
limitTags
|
|
@@ -19145,7 +19208,8 @@ FilterPanel.propTypes = {
|
|
|
19145
19208
|
bottomGutter: PropTypes.number,
|
|
19146
19209
|
renderFilterSelection: PropTypes.bool,
|
|
19147
19210
|
renderFilterSelectionTo: PropTypes.any,
|
|
19148
|
-
onApplyFilters: PropTypes.func
|
|
19211
|
+
onApplyFilters: PropTypes.func,
|
|
19212
|
+
title: PropTypes.string
|
|
19149
19213
|
};
|
|
19150
19214
|
|
|
19151
19215
|
const useNotify = () => {
|
|
@@ -20768,7 +20832,19 @@ const RichDataTable$1 = /*#__PURE__*/forwardRef(function RichDatatable(props, re
|
|
|
20768
20832
|
setSelectedRowCount,
|
|
20769
20833
|
setFilterPanelState,
|
|
20770
20834
|
toggleDrawer,
|
|
20771
|
-
clearSelections: () => DataTableRef.current.clearSelections()
|
|
20835
|
+
clearSelections: () => DataTableRef.current.clearSelections(),
|
|
20836
|
+
checkSelectedRow: id => {
|
|
20837
|
+
DataTableRef.current.checkSelectedRow(id);
|
|
20838
|
+
},
|
|
20839
|
+
unCheckSelectedRow: id => {
|
|
20840
|
+
DataTableRef.current.unCheckSelectedRow(id);
|
|
20841
|
+
},
|
|
20842
|
+
highlightRow: id => {
|
|
20843
|
+
DataTableRef.current.highlightRow(id);
|
|
20844
|
+
},
|
|
20845
|
+
unHighlightRows: () => {
|
|
20846
|
+
DataTableRef.current.unHighlightRows();
|
|
20847
|
+
}
|
|
20772
20848
|
}));
|
|
20773
20849
|
const isFilterPanelEnabled = ((_props$filterPanelCon = props.filterPanelConfig) == null ? void 0 : _props$filterPanelCon.length) > 0 || props.showFilterPanelSearch;
|
|
20774
20850
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -31561,5 +31637,5 @@ const DynamicFormHooks = {
|
|
|
31561
31637
|
useReadOnly
|
|
31562
31638
|
};
|
|
31563
31639
|
|
|
31564
|
-
export { Actions$1 as Actions, Alert, AppToolbar, ArtifactBrowser, AvatarBox, AvatarTitle, BusinessObject, BusinessObjectCard, EmptyCardSection as BusinessObjectCardEmptySection, CardSection as BusinessObjectCardSection, CardSectionTitle as BusinessObjectCardSectionTitle, BusinessObjectPanel, Header$1 as BusinessObjectPanelHeader, Section as BusinessObjectPanelSection, SectionTitle as BusinessObjectPanelSectionTitle, BusinessObjectPicker$1 as BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton, BusinessObjectTable, Button, Chip, Collapsible, CollapsibleContent, CollapsibleContentButton, CollapsibleContentButtonContainer, CollapsibleContentContainer, CollapsibleProvider, ContentBox, CoreProvider, CurriculumChart, DataTable$1 as DataTable, DatePickerBase as DatePicker, DisplayInFrame, DocViewer, Drawer$1 as Drawer, DynamicForm$1 as DynamicForm, BusinessObjectPickerField$1 as DynamicFormBusinessObjectPickerField, DynamicFormHooks, EditableText, FilterPanel, FilterChips$1 as FilterPanelFilterChips, mapFilters as FilterPanelMapFilters, FullPageViewer, Icon$1 as Icon, Image, IsometricImage, List, ListItem, ListItemGroup, MenuButton, ModalDialog, NavigationDrawer, Notification, OutcomeSpace, PanelDrawer, ProgressChart, RichDataTable$1 as RichDataTable, RubricDistributionChart, RubricLegend, RubricScoreSlider, SaveModal, ScrollToTopButton, ScrollingContainer$1 as ScrollingContainer, SkeletonContent, StatBoxes, StatusMessage, SvgImage, SwipeableTabPanel, Content as SwipeableTabPanelContent, TextBuilder$1 as TextBuilder, store as TextBuilderStore, Timeline, TitleAndActionHeader, TitleAndDescription, DataTable as UnstableDataTable, RichDataTable as UnstableRichDataTable, ScrollingContainer as UnstableScrollingContainer, UserAvatar, CompletedItemList as WizardCompletedItemList, WizardPanel, businessObjectColor, businessObjectConfiguration, businessObjectIcon, createComponentEvent, createEvent, createComponentStore as createStore, dataSourceManager, filterSortData, getBaseUrl, getConfiguration, getDataSourceUrl, http, outcomeSpaceColor, outcomeSpaceTypeFromSource, registerDataSource, registerDataSources, setDataSourceConfiguration, template, useCollapsibleState, useComponentWillMount, useDataSourceInfiniteQuery, useDataSourceMutation, useDataSourceQuery, useDataSourceUrl, useDebounceCallback, useNotify, useRefDimensions, withStatusButtonDataSource };
|
|
31640
|
+
export { Actions$1 as Actions, Alert, AppToolbar, ArtifactBrowser, AvatarBox, AvatarTitle, BusinessObject, BusinessObjectCard, EmptyCardSection as BusinessObjectCardEmptySection, CardSection as BusinessObjectCardSection, CardSectionTitle as BusinessObjectCardSectionTitle, BusinessObjectPanel, Header$1 as BusinessObjectPanelHeader, Section as BusinessObjectPanelSection, SectionTitle as BusinessObjectPanelSectionTitle, BusinessObjectPicker$1 as BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton, BusinessObjectTable, Button, Chip, Collapsible, CollapsibleContent, CollapsibleContentButton, CollapsibleContentButtonContainer, CollapsibleContentContainer, CollapsibleProvider, ContentBox, ContentBoxHeader, CoreProvider, CurriculumChart, DataTable$1 as DataTable, DatePickerBase as DatePicker, DisplayInFrame, DocViewer, Drawer$1 as Drawer, DynamicForm$1 as DynamicForm, BusinessObjectPickerField$1 as DynamicFormBusinessObjectPickerField, DynamicFormHooks, EditableText, FilterPanel, FilterChips$1 as FilterPanelFilterChips, mapFilters as FilterPanelMapFilters, FullPageViewer, Icon$1 as Icon, Image, IsometricImage, List, ListItem, ListItemGroup, MenuButton, ModalDialog, NavigationDrawer, Notification, OutcomeSpace, PanelDrawer, ProgressChart, RichDataTable$1 as RichDataTable, RubricDistributionChart, RubricLegend, RubricScoreSlider, SaveModal, ScrollToTopButton, ScrollingContainer$1 as ScrollingContainer, SkeletonContent, StatBoxes, StatusMessage, SvgImage, SwipeableTabPanel, Content as SwipeableTabPanelContent, TextBuilder$1 as TextBuilder, store as TextBuilderStore, Timeline, TitleAndActionHeader, TitleAndDescription, DataTable as UnstableDataTable, RichDataTable as UnstableRichDataTable, ScrollingContainer as UnstableScrollingContainer, UserAvatar, CompletedItemList as WizardCompletedItemList, WizardPanel, businessObjectColor, businessObjectConfiguration, businessObjectIcon, createComponentEvent, createEvent, createComponentStore as createStore, dataSourceManager, filterSortData, getBaseUrl, getConfiguration, getDataSourceUrl, http, outcomeSpaceColor, outcomeSpaceTypeFromSource, registerDataSource, registerDataSources, setDataSourceConfiguration, template, useCollapsibleState, useComponentWillMount, useDataSourceInfiniteQuery, useDataSourceMutation, useDataSourceQuery, useDataSourceUrl, useDebounceCallback, useNotify, useRefDimensions, withStatusButtonDataSource };
|
|
31565
31641
|
//# sourceMappingURL=index.modern.js.map
|