aefis-core-ui 2.3.0-rc55 → 2.3.0-rc57

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.
@@ -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,
@@ -5692,6 +5693,7 @@ const ModalDialog = props => {
5692
5693
  name: props.confirmButtonText,
5693
5694
  onClick: handleConfirm,
5694
5695
  color: "primary",
5696
+ disabled: props.confirmButtonDisabled,
5695
5697
  children: props.confirmButtonText
5696
5698
  })]
5697
5699
  })]
@@ -5704,7 +5706,8 @@ ModalDialog.defaultProps = {
5704
5706
  open: false,
5705
5707
  formatContent: true,
5706
5708
  showLoadingStatus: false,
5707
- titleComponent: "h2"
5709
+ titleComponent: "h2",
5710
+ confirmButtonDisabled: false
5708
5711
  };
5709
5712
 
5710
5713
  /** AEFIS implementation of a modal dialog. */
@@ -5724,6 +5727,8 @@ ModalDialog.propTypes = {
5724
5727
  title: PropTypes.any.isRequired,
5725
5728
  /** The text to display for the confirm button. */
5726
5729
  confirmButtonText: PropTypes.string,
5730
+ /** Disable the confirm button? */
5731
+ confirmButtonDisabled: PropTypes.bool,
5727
5732
  /** The text to display for the cancel button. */
5728
5733
  cancelButtonText: PropTypes.string,
5729
5734
  /** Whether or not to format the content of the dialog. */
@@ -11677,7 +11682,7 @@ BusinessObjectPicker.propTypes = {
11677
11682
  /** If true, multiple selection is supported. */
11678
11683
  multiple: PropTypes.bool,
11679
11684
  /** Any known Business Object type */
11680
- 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"]),
11681
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. */
11682
11687
  data: PropTypes.any,
11683
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. */