aefis-core-ui 2.3.0-rc41 → 2.3.0-rc43
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 +8 -8
- package/dist/index.modern.js +79 -35
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,13 +17,13 @@ import { SectionTitle as BusinessObjectPanelSectionTitle } from "./components/Bu
|
|
|
17
17
|
import BusinessObjectPicker from "./components/BusinessObjectPicker/BusinessObjectPicker";
|
|
18
18
|
import BusinessObjectStatus from "./components/BusinessObjectStatus/BusinessObjectStatus";
|
|
19
19
|
import BusinessObjectStatusButton from "./components/BusinessObjectStatusButton/BusinessObjectStatusButton";
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import { useCollapsibleState } from "./components/
|
|
23
|
-
import CollapsibleContent from "./components/
|
|
24
|
-
import
|
|
25
|
-
import CollapsibleContentButton from "./components/
|
|
26
|
-
import CollapsibleContentButtonContainer from "./components/
|
|
20
|
+
import Collapsible from "./components/Collapsible/Collapsible";
|
|
21
|
+
import { CollapsibleProvider } from "./components/Collapsible/CollapsibleProvider";
|
|
22
|
+
import { useCollapsibleState } from "./components/Collapsible/CollapsibleProvider";
|
|
23
|
+
import CollapsibleContent from "./components/Collapsible/CollapsibleContent/CollapsibleContent";
|
|
24
|
+
import CollapsibleContentContainer from "./components/Collapsible/CollapsibleContentContainer/CollapsibleContentContainer";
|
|
25
|
+
import CollapsibleContentButton from "./components/Collapsible/CollapsibleContentButton/CollapsibleContentButton";
|
|
26
|
+
import CollapsibleContentButtonContainer from "./components/Collapsible/CollapsibleContentButtonContainer/CollapsibleContentButtonContainer";
|
|
27
27
|
import withStatusButtonDataSource from "./components/BusinessObjectStatusButton/withStatusButtonDataSource";
|
|
28
28
|
import BusinessObjectTable from "./components/BusinessObjectTable/BusinessObjectTable";
|
|
29
29
|
import Button from "./components/Button/Button";
|
|
@@ -105,4 +105,4 @@ export namespace DynamicFormHooks {
|
|
|
105
105
|
import { useSelectFormState } from "./components/DynamicForm/store";
|
|
106
106
|
import { useSetFormState } from "./components/DynamicForm/store";
|
|
107
107
|
import useReadOnly from "./components/DynamicForm/hooks/useReadOnly/useReadOnly";
|
|
108
|
-
export { Actions, Alert, AvatarBox, AvatarTitle, BusinessObject, businessObjectColor, businessObjectConfiguration, businessObjectIcon, BusinessObjectCard, BusinessObjectCardSectionTitle, BusinessObjectCardEmptySection, BusinessObjectCardSection, BusinessObjectPanel, BusinessObjectPanelHeader, BusinessObjectPanelSection, BusinessObjectPanelSectionTitle, BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton,
|
|
108
|
+
export { Actions, Alert, AvatarBox, 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, Notification, OutcomeSpace, outcomeSpaceColor, outcomeSpaceTypeFromSource, PanelDrawer, ProgressChart, RichDataTable, RubricDistributionChart, RubricScoreSlider, RubricLegend, ScrollToTopButton, ScrollingContainer, SkeletonContent, StatBoxes, StatusMessage, SvgImage, SwipeableTabPanel, SwipeableTabPanelContent, template, TextBuilder, TextBuilderStore, Timeline, TitleAndActionHeader, TitleAndDescription, useComponentWillMount, useDataSourceUrl, useDebounceCallback, useNotify, UserAvatar, WizardPanel, useRefDimensions, createComponentEvent, DynamicFormBusinessObjectPickerField };
|
package/dist/index.modern.js
CHANGED
|
@@ -12402,7 +12402,7 @@ CollapsibleContentButton.propTypes = {
|
|
|
12402
12402
|
iconButton: PropTypes.bool
|
|
12403
12403
|
};
|
|
12404
12404
|
|
|
12405
|
-
function
|
|
12405
|
+
function Collapsible({
|
|
12406
12406
|
sx,
|
|
12407
12407
|
renderHeader,
|
|
12408
12408
|
renderContent,
|
|
@@ -12451,7 +12451,7 @@ function Collepsible({
|
|
|
12451
12451
|
}))]
|
|
12452
12452
|
});
|
|
12453
12453
|
}
|
|
12454
|
-
|
|
12454
|
+
Collapsible.propTypes = {
|
|
12455
12455
|
open: PropTypes.bool,
|
|
12456
12456
|
defaultOpen: PropTypes.bool,
|
|
12457
12457
|
renderContent: PropTypes.func,
|
|
@@ -12469,7 +12469,7 @@ const useCollapsibleState = () => useContext(CollapsibleContext);
|
|
|
12469
12469
|
const {
|
|
12470
12470
|
Provider
|
|
12471
12471
|
} = CollapsibleContext;
|
|
12472
|
-
const
|
|
12472
|
+
const CollapsibleProvider = ({
|
|
12473
12473
|
defaultValue,
|
|
12474
12474
|
children
|
|
12475
12475
|
}) => {
|
|
@@ -12485,27 +12485,27 @@ const CollepsibleProvider = ({
|
|
|
12485
12485
|
});
|
|
12486
12486
|
};
|
|
12487
12487
|
|
|
12488
|
-
const
|
|
12489
|
-
const [
|
|
12488
|
+
const CollapsibleContentContainer = props => {
|
|
12489
|
+
const [collapsibleState] = useCollapsibleState();
|
|
12490
12490
|
const {
|
|
12491
12491
|
open,
|
|
12492
12492
|
contentId
|
|
12493
|
-
} =
|
|
12493
|
+
} = collapsibleState;
|
|
12494
12494
|
return /*#__PURE__*/jsx(CollapsibleContent, _extends({
|
|
12495
12495
|
open: open,
|
|
12496
12496
|
id: contentId
|
|
12497
12497
|
}, props));
|
|
12498
12498
|
};
|
|
12499
|
-
|
|
12499
|
+
CollapsibleContentContainer.propTypes = CollapsibleContent.propTypes;
|
|
12500
12500
|
|
|
12501
12501
|
function CollapsibleContentButtonContainer(props) {
|
|
12502
|
-
const [
|
|
12502
|
+
const [collapsibleState, setCollapsibleState] = useCollapsibleState();
|
|
12503
12503
|
const {
|
|
12504
12504
|
open,
|
|
12505
12505
|
buttonId
|
|
12506
|
-
} =
|
|
12506
|
+
} = collapsibleState;
|
|
12507
12507
|
const handleToggleExpand = useCallback(() => {
|
|
12508
|
-
|
|
12508
|
+
setCollapsibleState(prev => _extends({}, prev, {
|
|
12509
12509
|
open: !prev.open
|
|
12510
12510
|
}));
|
|
12511
12511
|
}, []);
|
|
@@ -14877,6 +14877,40 @@ Header.propTypes = {
|
|
|
14877
14877
|
allStepsCompleted: PropTypes.bool
|
|
14878
14878
|
};
|
|
14879
14879
|
|
|
14880
|
+
// Copyright (c) 2023 AEFIS, all rights reserved.
|
|
14881
|
+
const CompletedItemList = ({
|
|
14882
|
+
data
|
|
14883
|
+
}) => {
|
|
14884
|
+
return /*#__PURE__*/jsx(Box$1, {
|
|
14885
|
+
children: /*#__PURE__*/jsx(List, {
|
|
14886
|
+
children: data == null ? void 0 : data.map((item, index) => /*#__PURE__*/jsx(ListItem, {
|
|
14887
|
+
children: /*#__PURE__*/jsxs(Box$1, {
|
|
14888
|
+
sx: {
|
|
14889
|
+
display: "flex"
|
|
14890
|
+
},
|
|
14891
|
+
children: [item.completed ? /*#__PURE__*/jsx(Check, {
|
|
14892
|
+
sx: {
|
|
14893
|
+
color: green[500],
|
|
14894
|
+
mr: 1
|
|
14895
|
+
}
|
|
14896
|
+
}) : /*#__PURE__*/jsx(PriorityHigh, {
|
|
14897
|
+
sx: {
|
|
14898
|
+
color: red[500],
|
|
14899
|
+
mr: 1
|
|
14900
|
+
}
|
|
14901
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
14902
|
+
variant: "body1",
|
|
14903
|
+
children: item.description
|
|
14904
|
+
})]
|
|
14905
|
+
})
|
|
14906
|
+
}, `reviewListItem-${index}`))
|
|
14907
|
+
})
|
|
14908
|
+
});
|
|
14909
|
+
};
|
|
14910
|
+
CompletedItemList.propTypes = {
|
|
14911
|
+
data: PropTypes.array
|
|
14912
|
+
};
|
|
14913
|
+
|
|
14880
14914
|
const useStyles$5 = makeStyles(theme => ({
|
|
14881
14915
|
buttonContainer: {
|
|
14882
14916
|
marginLeft: "auto",
|
|
@@ -14909,7 +14943,7 @@ const bottomBarDefaultStyle = {
|
|
|
14909
14943
|
/** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
|
|
14910
14944
|
|
|
14911
14945
|
const WizardPanel = props => {
|
|
14912
|
-
var _props$panels;
|
|
14946
|
+
var _props$panels, _props$panels3;
|
|
14913
14947
|
const classes = useStyles$5();
|
|
14914
14948
|
const containerRef = useRef();
|
|
14915
14949
|
const [activeStep, setActiveStep] = useState(0);
|
|
@@ -14919,13 +14953,14 @@ const WizardPanel = props => {
|
|
|
14919
14953
|
target: containerRef.current,
|
|
14920
14954
|
threshold: 0
|
|
14921
14955
|
});
|
|
14922
|
-
const isLastStep = activeStep === props.panels.length - 1 ? true : false;
|
|
14956
|
+
const isLastStep = activeStep === ((_props$panels = props.panels) == null ? void 0 : _props$panels.length) - 1 ? true : false;
|
|
14923
14957
|
const isFirstStep = activeStep === 0 ? true : false;
|
|
14924
14958
|
const handleNext = () => {
|
|
14959
|
+
var _props$panels2;
|
|
14925
14960
|
const nextStep = activeStep + 1;
|
|
14926
14961
|
setActiveStep(nextStep);
|
|
14927
14962
|
props.onNext && props.onNext(props.panels[nextStep], nextStep + 1);
|
|
14928
|
-
setFinalStep(nextStep === props.panels.length - 1 ? true : false);
|
|
14963
|
+
setFinalStep(nextStep === ((_props$panels2 = props.panels) == null ? void 0 : _props$panels2.length) - 1 ? true : false);
|
|
14929
14964
|
};
|
|
14930
14965
|
const handleBack = () => {
|
|
14931
14966
|
const nextStep = activeStep - 1;
|
|
@@ -15001,28 +15036,33 @@ const WizardPanel = props => {
|
|
|
15001
15036
|
children: /*#__PURE__*/jsx(SwipeableViews, {
|
|
15002
15037
|
axis: theme.direction === "rtl" ? "x-reverse" : "x",
|
|
15003
15038
|
index: activeStep,
|
|
15004
|
-
children: (_props$
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
-
|
|
15008
|
-
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
},
|
|
15012
|
-
children: [step.panelTitle && /*#__PURE__*/jsxs(Typography, {
|
|
15013
|
-
sx: titleStyle,
|
|
15014
|
-
variant: "h2",
|
|
15015
|
-
component: step.panelTitleComponent || "h3",
|
|
15016
|
-
children: ["Step ", index + 1, " : ", step.panelTitle]
|
|
15017
|
-
}), step.panelDescription && /*#__PURE__*/jsx(Typography, {
|
|
15039
|
+
children: (_props$panels3 = props.panels) == null ? void 0 : _props$panels3.map((step, index) => {
|
|
15040
|
+
var _step$completedItems;
|
|
15041
|
+
return /*#__PURE__*/jsxs(Box$1, {
|
|
15042
|
+
value: activeStep,
|
|
15043
|
+
index: index,
|
|
15044
|
+
dir: theme.direction,
|
|
15045
|
+
className: classes.contentContainer,
|
|
15018
15046
|
sx: {
|
|
15019
|
-
|
|
15047
|
+
visibility: activeStep === index ? "visible" : "hidden"
|
|
15020
15048
|
},
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
15049
|
+
children: [step.panelTitle && /*#__PURE__*/jsxs(Typography, {
|
|
15050
|
+
sx: titleStyle,
|
|
15051
|
+
variant: "h2",
|
|
15052
|
+
component: step.panelTitleComponent || "h3",
|
|
15053
|
+
children: ["Step ", index + 1, " : ", step.panelTitle]
|
|
15054
|
+
}), step.panelDescription && /*#__PURE__*/jsx(Typography, {
|
|
15055
|
+
sx: {
|
|
15056
|
+
mb: 2
|
|
15057
|
+
},
|
|
15058
|
+
variant: "body1",
|
|
15059
|
+
component: "p",
|
|
15060
|
+
children: step.panelDescription
|
|
15061
|
+
}), ((_step$completedItems = step.completedItems) == null ? void 0 : _step$completedItems.length) && /*#__PURE__*/jsx(CompletedItemList, {
|
|
15062
|
+
data: step.completedItems
|
|
15063
|
+
}), step.content]
|
|
15064
|
+
}, `wizardPanelKey-${step.id}`);
|
|
15065
|
+
})
|
|
15026
15066
|
})
|
|
15027
15067
|
}), /*#__PURE__*/jsx(Box$1, {
|
|
15028
15068
|
style: bottomBarStyle,
|
|
@@ -15100,7 +15140,11 @@ WizardPanel.propTypes = {
|
|
|
15100
15140
|
panelDescription: PropTypes.string,
|
|
15101
15141
|
panelTitleComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "div"]),
|
|
15102
15142
|
panelTitleShowStep: PropTypes.bool,
|
|
15103
|
-
content: PropTypes.any
|
|
15143
|
+
content: PropTypes.any,
|
|
15144
|
+
completedItems: PropTypes.arrayOf(PropTypes.shape({
|
|
15145
|
+
completed: PropTypes.bool,
|
|
15146
|
+
description: PropTypes.string
|
|
15147
|
+
}))
|
|
15104
15148
|
})).isRequired,
|
|
15105
15149
|
/** Disable the "Next" button. */
|
|
15106
15150
|
disableNext: PropTypes.bool,
|
|
@@ -20346,5 +20390,5 @@ const DynamicFormHooks = {
|
|
|
20346
20390
|
useReadOnly
|
|
20347
20391
|
};
|
|
20348
20392
|
|
|
20349
|
-
export { Actions$1 as Actions, Alert, 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, CollapsibleContent, CollapsibleContentButton, CollapsibleContentButtonContainer,
|
|
20393
|
+
export { Actions$1 as Actions, Alert, 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, DatePickerBase as DatePicker, DisplayInFrame, DocViewer, 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, Notification, OutcomeSpace, PanelDrawer, ProgressChart, RichDataTable, RubricDistributionChart, RubricLegend, RubricScoreSlider, ScrollToTopButton, ScrollingContainer, SkeletonContent, StatBoxes, StatusMessage, SvgImage, SwipeableTabPanel, Content as SwipeableTabPanelContent, TextBuilder$1 as TextBuilder, store as TextBuilderStore, Timeline, TitleAndActionHeader, TitleAndDescription, UserAvatar, 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 };
|
|
20350
20394
|
//# sourceMappingURL=index.modern.js.map
|