aefis-core-ui 2.6.0-rc21 → 2.6.0-rc23

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.
@@ -4028,6 +4028,8 @@ const ModalDialog = props => {
4028
4028
  onClick: handleConfirm,
4029
4029
  color: "primary",
4030
4030
  disabled: props.confirmButtonDisabled,
4031
+ isLoading: props.hasLoadingOnComplete,
4032
+ loadingText: props.loadingText,
4031
4033
  children: props.confirmButtonText
4032
4034
  })]
4033
4035
  })]
@@ -4043,7 +4045,8 @@ ModalDialog.defaultProps = {
4043
4045
  titleComponent: "h2",
4044
4046
  confirmButtonDisabled: false,
4045
4047
  showCloseIconButton: true,
4046
- closeOnConfirm: true
4048
+ closeOnConfirm: true,
4049
+ hasLoadingOnComplete: false
4047
4050
  };
4048
4051
 
4049
4052
  /** AEFIS implementation of a modal dialog. */
@@ -4084,7 +4087,9 @@ ModalDialog.propTypes = {
4084
4087
  /** close the dialog on confirm? */
4085
4088
  closeOnConfirm: PropTypes.bool,
4086
4089
  /** Dialog styling props */
4087
- dialogSx: PropTypes.object
4090
+ dialogSx: PropTypes.object,
4091
+ loadingText: PropTypes.string,
4092
+ hasLoadingOnComplete: PropTypes.bool
4088
4093
  };
4089
4094
 
4090
4095
  const DisplayInFrame = props => {
@@ -28413,6 +28418,8 @@ const WizardPanel = props => {
28413
28418
  style: {
28414
28419
  minWidth: 100
28415
28420
  },
28421
+ isLoading: props.hasLoadingOnComplete,
28422
+ loadingText: props.loadingText,
28416
28423
  children: props.completeButtonText
28417
28424
  })]
28418
28425
  })
@@ -28427,7 +28434,8 @@ WizardPanel.defaultProps = {
28427
28434
  completeButtonText: "Finish",
28428
28435
  disableComplete: false,
28429
28436
  completing: false,
28430
- display: "drawer"
28437
+ display: "drawer",
28438
+ hasLoadingOnComplete: false
28431
28439
  };
28432
28440
  WizardPanel.propTypes = {
28433
28441
  /** Where to display the panel, a dialog or drawer. */
@@ -28463,7 +28471,11 @@ WizardPanel.propTypes = {
28463
28471
  /** Is the wizard completed? If true, then all the steps will be checked as completed. */
28464
28472
  completed: PropTypes.bool,
28465
28473
  /** Text to display on the completion button */
28466
- completeButtonText: PropTypes.string
28474
+ completeButtonText: PropTypes.string,
28475
+ /** When button is in completed and disabled status show loading indicator.*/
28476
+ hasLoadingOnComplete: PropTypes.bool,
28477
+ /** When button is in completed and disabled status this shows different text.*/
28478
+ loadingText: PropTypes.string
28467
28479
  };
28468
28480
 
28469
28481
  const circleStyle = {