aefis-core-ui 2.3.0-rc40 → 2.3.0-rc42
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 +81 -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
|
@@ -11288,8 +11288,10 @@ const BusinessObjectPicker = _ref => {
|
|
|
11288
11288
|
return template.render(optionTemplate, option);
|
|
11289
11289
|
};
|
|
11290
11290
|
const getKey = useCallback(option => {
|
|
11291
|
+
// INFO: search for id
|
|
11291
11292
|
if (idTemplate) return template.render(idTemplate, option);
|
|
11292
11293
|
if (option.id) return option.id;
|
|
11294
|
+
if (option.Id) return option.Id;
|
|
11293
11295
|
return getLabel(option);
|
|
11294
11296
|
}, [idTemplate, optionTemplate]);
|
|
11295
11297
|
const getFilterOptions = useCallback((options, params) => {
|
|
@@ -12400,7 +12402,7 @@ CollapsibleContentButton.propTypes = {
|
|
|
12400
12402
|
iconButton: PropTypes.bool
|
|
12401
12403
|
};
|
|
12402
12404
|
|
|
12403
|
-
function
|
|
12405
|
+
function Collapsible({
|
|
12404
12406
|
sx,
|
|
12405
12407
|
renderHeader,
|
|
12406
12408
|
renderContent,
|
|
@@ -12449,7 +12451,7 @@ function Collepsible({
|
|
|
12449
12451
|
}))]
|
|
12450
12452
|
});
|
|
12451
12453
|
}
|
|
12452
|
-
|
|
12454
|
+
Collapsible.propTypes = {
|
|
12453
12455
|
open: PropTypes.bool,
|
|
12454
12456
|
defaultOpen: PropTypes.bool,
|
|
12455
12457
|
renderContent: PropTypes.func,
|
|
@@ -12467,7 +12469,7 @@ const useCollapsibleState = () => useContext(CollapsibleContext);
|
|
|
12467
12469
|
const {
|
|
12468
12470
|
Provider
|
|
12469
12471
|
} = CollapsibleContext;
|
|
12470
|
-
const
|
|
12472
|
+
const CollapsibleProvider = ({
|
|
12471
12473
|
defaultValue,
|
|
12472
12474
|
children
|
|
12473
12475
|
}) => {
|
|
@@ -12483,27 +12485,27 @@ const CollepsibleProvider = ({
|
|
|
12483
12485
|
});
|
|
12484
12486
|
};
|
|
12485
12487
|
|
|
12486
|
-
const
|
|
12487
|
-
const [
|
|
12488
|
+
const CollapsibleContentContainer = props => {
|
|
12489
|
+
const [collapsibleState] = useCollapsibleState();
|
|
12488
12490
|
const {
|
|
12489
12491
|
open,
|
|
12490
12492
|
contentId
|
|
12491
|
-
} =
|
|
12493
|
+
} = collapsibleState;
|
|
12492
12494
|
return /*#__PURE__*/jsx(CollapsibleContent, _extends({
|
|
12493
12495
|
open: open,
|
|
12494
12496
|
id: contentId
|
|
12495
12497
|
}, props));
|
|
12496
12498
|
};
|
|
12497
|
-
|
|
12499
|
+
CollapsibleContentContainer.propTypes = CollapsibleContent.propTypes;
|
|
12498
12500
|
|
|
12499
12501
|
function CollapsibleContentButtonContainer(props) {
|
|
12500
|
-
const [
|
|
12502
|
+
const [collapsibleState, setCollapsibleState] = useCollapsibleState();
|
|
12501
12503
|
const {
|
|
12502
12504
|
open,
|
|
12503
12505
|
buttonId
|
|
12504
|
-
} =
|
|
12506
|
+
} = collapsibleState;
|
|
12505
12507
|
const handleToggleExpand = useCallback(() => {
|
|
12506
|
-
|
|
12508
|
+
setCollapsibleState(prev => _extends({}, prev, {
|
|
12507
12509
|
open: !prev.open
|
|
12508
12510
|
}));
|
|
12509
12511
|
}, []);
|
|
@@ -14875,6 +14877,40 @@ Header.propTypes = {
|
|
|
14875
14877
|
allStepsCompleted: PropTypes.bool
|
|
14876
14878
|
};
|
|
14877
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
|
+
|
|
14878
14914
|
const useStyles$5 = makeStyles(theme => ({
|
|
14879
14915
|
buttonContainer: {
|
|
14880
14916
|
marginLeft: "auto",
|
|
@@ -14907,7 +14943,7 @@ const bottomBarDefaultStyle = {
|
|
|
14907
14943
|
/** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
|
|
14908
14944
|
|
|
14909
14945
|
const WizardPanel = props => {
|
|
14910
|
-
var _props$panels;
|
|
14946
|
+
var _props$panels, _props$panels3;
|
|
14911
14947
|
const classes = useStyles$5();
|
|
14912
14948
|
const containerRef = useRef();
|
|
14913
14949
|
const [activeStep, setActiveStep] = useState(0);
|
|
@@ -14917,13 +14953,14 @@ const WizardPanel = props => {
|
|
|
14917
14953
|
target: containerRef.current,
|
|
14918
14954
|
threshold: 0
|
|
14919
14955
|
});
|
|
14920
|
-
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;
|
|
14921
14957
|
const isFirstStep = activeStep === 0 ? true : false;
|
|
14922
14958
|
const handleNext = () => {
|
|
14959
|
+
var _props$panels2;
|
|
14923
14960
|
const nextStep = activeStep + 1;
|
|
14924
14961
|
setActiveStep(nextStep);
|
|
14925
14962
|
props.onNext && props.onNext(props.panels[nextStep], nextStep + 1);
|
|
14926
|
-
setFinalStep(nextStep === props.panels.length - 1 ? true : false);
|
|
14963
|
+
setFinalStep(nextStep === ((_props$panels2 = props.panels) == null ? void 0 : _props$panels2.length) - 1 ? true : false);
|
|
14927
14964
|
};
|
|
14928
14965
|
const handleBack = () => {
|
|
14929
14966
|
const nextStep = activeStep - 1;
|
|
@@ -14999,28 +15036,33 @@ const WizardPanel = props => {
|
|
|
14999
15036
|
children: /*#__PURE__*/jsx(SwipeableViews, {
|
|
15000
15037
|
axis: theme.direction === "rtl" ? "x-reverse" : "x",
|
|
15001
15038
|
index: activeStep,
|
|
15002
|
-
children: (_props$
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
-
|
|
15008
|
-
|
|
15009
|
-
},
|
|
15010
|
-
children: [step.panelTitle && /*#__PURE__*/jsxs(Typography, {
|
|
15011
|
-
sx: titleStyle,
|
|
15012
|
-
variant: "h2",
|
|
15013
|
-
component: step.panelTitleComponent || "h3",
|
|
15014
|
-
children: ["Step ", index + 1, " : ", step.panelTitle]
|
|
15015
|
-
}), 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,
|
|
15016
15046
|
sx: {
|
|
15017
|
-
|
|
15047
|
+
visibility: activeStep === index ? "visible" : "hidden"
|
|
15018
15048
|
},
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
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
|
+
})
|
|
15024
15066
|
})
|
|
15025
15067
|
}), /*#__PURE__*/jsx(Box$1, {
|
|
15026
15068
|
style: bottomBarStyle,
|
|
@@ -15098,7 +15140,11 @@ WizardPanel.propTypes = {
|
|
|
15098
15140
|
panelDescription: PropTypes.string,
|
|
15099
15141
|
panelTitleComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "div"]),
|
|
15100
15142
|
panelTitleShowStep: PropTypes.bool,
|
|
15101
|
-
content: PropTypes.any.isRequired
|
|
15143
|
+
content: PropTypes.any.isRequired,
|
|
15144
|
+
completedItems: PropTypes.arrayOf(PropTypes.shape({
|
|
15145
|
+
completed: PropTypes.boolean,
|
|
15146
|
+
description: PropTypes.string
|
|
15147
|
+
}))
|
|
15102
15148
|
})).isRequired,
|
|
15103
15149
|
/** Disable the "Next" button. */
|
|
15104
15150
|
disableNext: PropTypes.bool,
|
|
@@ -20344,5 +20390,5 @@ const DynamicFormHooks = {
|
|
|
20344
20390
|
useReadOnly
|
|
20345
20391
|
};
|
|
20346
20392
|
|
|
20347
|
-
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 };
|
|
20348
20394
|
//# sourceMappingURL=index.modern.js.map
|