aefis-core-ui 2.3.0-rc56 → 2.3.0-rc58
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 +48 -19
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5481,6 +5481,7 @@ const DialogTitle = props => {
|
|
|
5481
5481
|
},
|
|
5482
5482
|
children: props.children
|
|
5483
5483
|
}) : props.children, props.onClose ? /*#__PURE__*/jsx(IconButton, {
|
|
5484
|
+
name: "close the dialog",
|
|
5484
5485
|
"aria-label": "close the dialog",
|
|
5485
5486
|
className: classes.closeButton,
|
|
5486
5487
|
onClick: props.onClose,
|
|
@@ -11681,7 +11682,7 @@ BusinessObjectPicker.propTypes = {
|
|
|
11681
11682
|
/** If true, multiple selection is supported. */
|
|
11682
11683
|
multiple: PropTypes.bool,
|
|
11683
11684
|
/** Any known Business Object type */
|
|
11684
|
-
type: PropTypes.oneOf([null, "accreditor", "administrativeDivision", "administrativeUnit", "assessment", "assignment", "badge", "businessObject", "college", "course", "courseOutcome", "courseSection", "department", "faculty", "institution", "keyword", "outcome", "outcomeGroup", "outcomeSpace", "performanceIndicator", "program", "term"]),
|
|
11685
|
+
type: PropTypes.oneOf([null, "accreditor", "administrativeDivision", "administrativeUnit", "assessment", "assignment", "badge", "businessObject", "college", "course", "courseOutcome", "courseSection", "department", "faculty", "institution", "keyword", "outcome", "outcomeGroup", "outcomeSpace", "performanceIndicator", "program", "term", "user"]),
|
|
11685
11686
|
/** Data for the list of options. If this is not provided, and type is provided, default business object queries are used to pull the data. */
|
|
11686
11687
|
data: PropTypes.any,
|
|
11687
11688
|
/** Name of the Data Source for the list of options. This is necessary to show any option, if type and data are not provided. */
|
|
@@ -15103,6 +15104,41 @@ const bottomBarDefaultStyle = {
|
|
|
15103
15104
|
left: 0,
|
|
15104
15105
|
right: 0
|
|
15105
15106
|
};
|
|
15107
|
+
const PanelTitleAndDescription = ({
|
|
15108
|
+
index,
|
|
15109
|
+
step,
|
|
15110
|
+
cardContent: _cardContent = false
|
|
15111
|
+
}) => {
|
|
15112
|
+
const titleStyle = {
|
|
15113
|
+
fontSize: "1.1rem",
|
|
15114
|
+
fontWeight: 500,
|
|
15115
|
+
mb: 2
|
|
15116
|
+
};
|
|
15117
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
15118
|
+
children: [(step == null ? void 0 : step.panelTitle) && /*#__PURE__*/jsxs(Typography, {
|
|
15119
|
+
sx: titleStyle,
|
|
15120
|
+
variant: "h2",
|
|
15121
|
+
component: step.panelTitleComponent || "h3",
|
|
15122
|
+
children: ["Step ", index + 1, " : ", step.panelTitle]
|
|
15123
|
+
}), (step == null ? void 0 : step.panelDescription) && /*#__PURE__*/jsx(Typography, {
|
|
15124
|
+
sx: {
|
|
15125
|
+
mb: _cardContent ? 0 : 2
|
|
15126
|
+
},
|
|
15127
|
+
variant: "body1",
|
|
15128
|
+
component: "p",
|
|
15129
|
+
children: step.panelDescription
|
|
15130
|
+
})]
|
|
15131
|
+
});
|
|
15132
|
+
};
|
|
15133
|
+
PanelTitleAndDescription.propTypes = {
|
|
15134
|
+
index: PropTypes.number,
|
|
15135
|
+
step: PropTypes.shape({
|
|
15136
|
+
panelTitle: PropTypes.any,
|
|
15137
|
+
panelTitleComponent: PropTypes.string,
|
|
15138
|
+
panelDescription: PropTypes.string
|
|
15139
|
+
}),
|
|
15140
|
+
cardContent: PropTypes.bool
|
|
15141
|
+
};
|
|
15106
15142
|
|
|
15107
15143
|
/** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
|
|
15108
15144
|
|
|
@@ -15143,7 +15179,7 @@ const WizardPanel = props => {
|
|
|
15143
15179
|
left: 0,
|
|
15144
15180
|
right: 0,
|
|
15145
15181
|
bottom: 64,
|
|
15146
|
-
top:
|
|
15182
|
+
top: 162
|
|
15147
15183
|
};
|
|
15148
15184
|
const containerStyle = {
|
|
15149
15185
|
backgroundColor: props.cardContent ? "rgb(239, 242, 246)" : "rgb(255,255,255)"
|
|
@@ -15176,11 +15212,6 @@ const WizardPanel = props => {
|
|
|
15176
15212
|
setIsCompleting(false);
|
|
15177
15213
|
}
|
|
15178
15214
|
}, [props.completed]);
|
|
15179
|
-
const titleStyle = {
|
|
15180
|
-
fontSize: "1.1rem",
|
|
15181
|
-
fontWeight: 500,
|
|
15182
|
-
mb: 2
|
|
15183
|
-
};
|
|
15184
15215
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
15185
15216
|
children: [/*#__PURE__*/jsx(AppBar$1, {
|
|
15186
15217
|
position: props.display === "drawer" ? "sticky" : "relative",
|
|
@@ -15210,18 +15241,16 @@ const WizardPanel = props => {
|
|
|
15210
15241
|
sx: {
|
|
15211
15242
|
visibility: activeStep === index ? "visible" : "hidden"
|
|
15212
15243
|
},
|
|
15213
|
-
children: [step.panelTitle && /*#__PURE__*/
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
component: "p",
|
|
15224
|
-
children: step.panelDescription
|
|
15244
|
+
children: [(step.panelTitle || step.panelDescription) && props.cardContent && /*#__PURE__*/jsx(ContentBox, {
|
|
15245
|
+
children: /*#__PURE__*/jsx(PanelTitleAndDescription, {
|
|
15246
|
+
step: step,
|
|
15247
|
+
index: index,
|
|
15248
|
+
cardContent: true
|
|
15249
|
+
})
|
|
15250
|
+
}), (step.panelTitle || step.panelDescription) && !props.cardContent && /*#__PURE__*/jsx(PanelTitleAndDescription, {
|
|
15251
|
+
step: step,
|
|
15252
|
+
index: index,
|
|
15253
|
+
cardContent: false
|
|
15225
15254
|
}), ((_step$completedItems = step.completedItems) == null ? void 0 : _step$completedItems.length) && /*#__PURE__*/jsx(CompletedItemList, {
|
|
15226
15255
|
data: step.completedItems
|
|
15227
15256
|
}), step.content]
|