aefis-core-ui 2.1.12 → 2.1.14
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 +56 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import BusinessObjectTable from "./components/BusinessObjectTable/BusinessObject
|
|
|
22
22
|
import Button from "./components/Button/Button";
|
|
23
23
|
import Chip from "./components/Chip/Chip";
|
|
24
24
|
import ContentBox from "./components/ContentBox/ContentBox";
|
|
25
|
+
import CoreProvider from "./components/CoreProvider/CoreProvider";
|
|
25
26
|
import createEvent from "./services/createEvent";
|
|
26
27
|
import createStore from "./services/createStore";
|
|
27
28
|
import CurriculumChart from "./components/CurriculumChart/CurriculumChart";
|
|
@@ -95,4 +96,4 @@ export namespace DynamicFormHooks {
|
|
|
95
96
|
import { useSelectFormState } from "./components/DynamicForm/store";
|
|
96
97
|
import { useSetFormState } from "./components/DynamicForm/store";
|
|
97
98
|
import useReadOnly from "./components/DynamicForm/hooks/useReadOnly/useReadOnly";
|
|
98
|
-
export { Actions, Alert, AvatarBox, AvatarTitle, BusinessObject, businessObjectColor, businessObjectConfiguration, businessObjectIcon, BusinessObjectCard, BusinessObjectCardSectionTitle, BusinessObjectCardEmptySection, BusinessObjectCardSection, BusinessObjectPanel, BusinessObjectPanelHeader, BusinessObjectPanelSection, BusinessObjectPanelSectionTitle, BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton, withStatusButtonDataSource, BusinessObjectTable, Button, Chip, ContentBox, 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, Timeline, TitleAndActionHeader, TitleAndDescription, useComponentWillMount, useDataSourceUrl, useDebounceCallback, useNotify, UserAvatar, WizardPanel, useRefDimensions, createComponentEvent, DynamicFormBusinessObjectPickerField };
|
|
99
|
+
export { Actions, Alert, AvatarBox, AvatarTitle, BusinessObject, businessObjectColor, businessObjectConfiguration, businessObjectIcon, BusinessObjectCard, BusinessObjectCardSectionTitle, BusinessObjectCardEmptySection, BusinessObjectCardSection, BusinessObjectPanel, BusinessObjectPanelHeader, BusinessObjectPanelSection, BusinessObjectPanelSectionTitle, BusinessObjectPicker, BusinessObjectStatus, BusinessObjectStatusButton, 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, Timeline, TitleAndActionHeader, TitleAndDescription, useComponentWillMount, useDataSourceUrl, useDebounceCallback, useNotify, UserAvatar, WizardPanel, useRefDimensions, createComponentEvent, DynamicFormBusinessObjectPickerField };
|
package/dist/index.modern.js
CHANGED
|
@@ -9,7 +9,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
9
9
|
import { red, orange, green, blue, grey, yellow, indigo, purple, cyan, teal, lime, blueGrey, amber, lightBlue, deepOrange } from '@mui/material/colors';
|
|
10
10
|
import makeStyles$1 from '@mui/styles/makeStyles';
|
|
11
11
|
import withStyles from '@mui/styles/withStyles';
|
|
12
|
-
import { useTheme, alpha, createTheme as createTheme$1, ThemeProvider, styled as styled$1 } from '@mui/material/styles';
|
|
12
|
+
import { useTheme, alpha, createTheme as createTheme$1, ThemeProvider, styled as styled$1, StyledEngineProvider } from '@mui/material/styles';
|
|
13
13
|
import mustache from 'mustache';
|
|
14
14
|
import { Box as Box$2 } from '@mui/system';
|
|
15
15
|
import { Skeleton as Skeleton$4, TextField as TextField$1, Box as Box$3 } from '@mui/material/';
|
|
@@ -40,12 +40,12 @@ import { capitalCase, camelCase, snakeCase, pascalCase } from 'change-case';
|
|
|
40
40
|
import cx from 'classnames';
|
|
41
41
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
42
42
|
import CircularProgress$1 from '@mui/material/CircularProgress';
|
|
43
|
-
import { useQuery, useInfiniteQuery, useQueryClient, useMutation } from 'react-query';
|
|
43
|
+
import { useQuery, useInfiniteQuery, useQueryClient, useMutation, QueryClient, QueryClientProvider } from 'react-query';
|
|
44
44
|
import axios from 'axios';
|
|
45
45
|
import _ from 'lodash';
|
|
46
46
|
import qs from 'query-string';
|
|
47
47
|
import SortIcon from '@mui/icons-material/Sort';
|
|
48
|
-
import { useSnackbar } from 'notistack';
|
|
48
|
+
import { useSnackbar, SnackbarProvider } from 'notistack';
|
|
49
49
|
import useMediaQuery$1 from '@mui/material/useMediaQuery';
|
|
50
50
|
import Typography$1 from '@mui/material/Typography';
|
|
51
51
|
import Tooltip$2 from '@mui/material/Tooltip';
|
|
@@ -85,6 +85,7 @@ import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
|
|
|
85
85
|
import { registerPlugin, FilePond } from 'react-filepond';
|
|
86
86
|
import FilePondPluginGetFile from 'filepond-plugin-get-file';
|
|
87
87
|
import MaskedInput from 'react-text-mask';
|
|
88
|
+
import StylesProvider from '@mui/styles/StylesProvider';
|
|
88
89
|
|
|
89
90
|
function _extends() {
|
|
90
91
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -617,7 +618,7 @@ ActionMenu.propTypes = {
|
|
|
617
618
|
data: PropTypes.any.isRequired
|
|
618
619
|
};
|
|
619
620
|
|
|
620
|
-
// Copyright (c)
|
|
621
|
+
// Copyright (c) 2023 HelioCampus Inc., all rights reserved.
|
|
621
622
|
const RenderIconButton = props => {
|
|
622
623
|
return props.disabled ? /*#__PURE__*/jsx(IconButton$1, {
|
|
623
624
|
"aria-label": props.name,
|
|
@@ -1123,12 +1124,6 @@ const useStyles$H = makeStyles$1(theme => ({
|
|
|
1123
1124
|
color: "#ffffff"
|
|
1124
1125
|
}
|
|
1125
1126
|
}));
|
|
1126
|
-
({
|
|
1127
|
-
success: /*#__PURE__*/jsx(Check, {}),
|
|
1128
|
-
info: /*#__PURE__*/jsx(InfoOutlined, {}),
|
|
1129
|
-
warning: /*#__PURE__*/jsx(WarningOutlined, {}),
|
|
1130
|
-
error: /*#__PURE__*/jsx(ErrorOutlined, {})
|
|
1131
|
-
});
|
|
1132
1127
|
|
|
1133
1128
|
/** Simple component to display a box with or without an avatar along with title and subtitle text. */
|
|
1134
1129
|
|
|
@@ -2248,7 +2243,6 @@ const Chip = ({
|
|
|
2248
2243
|
icon,
|
|
2249
2244
|
label,
|
|
2250
2245
|
displayType,
|
|
2251
|
-
tooltipText,
|
|
2252
2246
|
deleteIcon,
|
|
2253
2247
|
onDelete,
|
|
2254
2248
|
canDelete,
|
|
@@ -14542,7 +14536,7 @@ const QontoStepIcon = props => {
|
|
|
14542
14536
|
} = props;
|
|
14543
14537
|
return /*#__PURE__*/jsx(QontoStepIconRoot, {
|
|
14544
14538
|
ownerstate: {
|
|
14545
|
-
active
|
|
14539
|
+
active: active
|
|
14546
14540
|
},
|
|
14547
14541
|
className: props.className,
|
|
14548
14542
|
children: props.completed ? /*#__PURE__*/jsx(CheckCircle, {
|
|
@@ -14563,18 +14557,36 @@ QontoStepIcon.propTypes = {
|
|
|
14563
14557
|
completed: PropTypes.bool
|
|
14564
14558
|
};
|
|
14565
14559
|
const Header = props => {
|
|
14566
|
-
const
|
|
14567
|
-
|
|
14568
|
-
|
|
14560
|
+
const currentActiveStep = props.allStepsCompleted ? props.data.length : props.activeStep;
|
|
14561
|
+
const a11yProps = {
|
|
14562
|
+
role: "list",
|
|
14563
|
+
"aria-label": "progress"
|
|
14564
|
+
};
|
|
14565
|
+
const stepA11lyProps = (current, activeStep) => {
|
|
14566
|
+
const a11y = {};
|
|
14567
|
+
if (current === activeStep) {
|
|
14568
|
+
a11y["aria-current"] = "step";
|
|
14569
|
+
}
|
|
14570
|
+
return a11y;
|
|
14571
|
+
};
|
|
14572
|
+
return /*#__PURE__*/jsx(Stepper, _extends({
|
|
14573
|
+
component: "ol"
|
|
14574
|
+
}, a11yProps, {
|
|
14575
|
+
activeStep: currentActiveStep,
|
|
14569
14576
|
alternativeLabel: true,
|
|
14570
14577
|
connector: /*#__PURE__*/jsx(QontoConnector, {}),
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
+
sx: {
|
|
14579
|
+
listStyle: "none"
|
|
14580
|
+
},
|
|
14581
|
+
children: props.data.map((step, index) => /*#__PURE__*/createElement(Step, _extends({}, stepA11lyProps(index, currentActiveStep), {
|
|
14582
|
+
ariaCurrent: true,
|
|
14583
|
+
component: "li",
|
|
14584
|
+
key: `wizardHeaderStep-${step.id}`
|
|
14585
|
+
}), /*#__PURE__*/jsx(StepLabel, {
|
|
14586
|
+
StepIconComponent: QontoStepIcon,
|
|
14587
|
+
children: step.title
|
|
14588
|
+
})))
|
|
14589
|
+
}));
|
|
14578
14590
|
};
|
|
14579
14591
|
Header.defaultProps = {
|
|
14580
14592
|
allStepsCompleted: false
|
|
@@ -19032,11 +19044,32 @@ DynamicForm.propTypes = {
|
|
|
19032
19044
|
const HOCs = [withFormStore, withSubmitListener];
|
|
19033
19045
|
var DynamicForm$1 = compose(HOCs)(DynamicForm);
|
|
19034
19046
|
|
|
19047
|
+
const CoreProvider = ({
|
|
19048
|
+
children,
|
|
19049
|
+
theme
|
|
19050
|
+
}) => {
|
|
19051
|
+
const queryClient = new QueryClient();
|
|
19052
|
+
return /*#__PURE__*/jsx(QueryClientProvider, {
|
|
19053
|
+
client: queryClient,
|
|
19054
|
+
children: /*#__PURE__*/jsx(StylesProvider, {
|
|
19055
|
+
children: /*#__PURE__*/jsx(StyledEngineProvider, {
|
|
19056
|
+
injectFirst: true,
|
|
19057
|
+
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
19058
|
+
theme: theme,
|
|
19059
|
+
children: /*#__PURE__*/jsx(SnackbarProvider, {
|
|
19060
|
+
children: children
|
|
19061
|
+
})
|
|
19062
|
+
})
|
|
19063
|
+
})
|
|
19064
|
+
})
|
|
19065
|
+
});
|
|
19066
|
+
};
|
|
19067
|
+
|
|
19035
19068
|
const DynamicFormHooks = {
|
|
19036
19069
|
useSelectFormState,
|
|
19037
19070
|
useSetFormState,
|
|
19038
19071
|
useReadOnly
|
|
19039
19072
|
};
|
|
19040
19073
|
|
|
19041
|
-
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, ContentBox, 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, 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, useComponentWillMount, useDataSourceInfiniteQuery, useDataSourceMutation, useDataSourceQuery, useDataSourceUrl, useDebounceCallback, useNotify, useRefDimensions, withStatusButtonDataSource };
|
|
19074
|
+
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, 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, 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, useComponentWillMount, useDataSourceInfiniteQuery, useDataSourceMutation, useDataSourceQuery, useDataSourceUrl, useDebounceCallback, useNotify, useRefDimensions, withStatusButtonDataSource };
|
|
19042
19075
|
//# sourceMappingURL=index.modern.js.map
|