aefis-core-ui 3.1.0 → 3.2.0

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.
@@ -3550,6 +3550,7 @@ UserAvatar.propTypes = {
3550
3550
  const UserButton = ({
3551
3551
  user,
3552
3552
  actions,
3553
+ menuLabel: _menuLabel = "My account",
3553
3554
  onLogout
3554
3555
  }) => {
3555
3556
  const theme = useTheme$2();
@@ -3582,10 +3583,10 @@ const UserButton = ({
3582
3583
  };
3583
3584
  const a11yprops = {
3584
3585
  "aria-expanded": !!open,
3585
- "aria-label": "my account",
3586
+ "aria-label": _menuLabel,
3586
3587
  "aria-haspopup": true,
3587
3588
  "aria-controls": "user-menu",
3588
- name: "account options menu"
3589
+ name: _menuLabel
3589
3590
  };
3590
3591
  return /*#__PURE__*/jsxs(Fragment, {
3591
3592
  children: [/*#__PURE__*/jsxs(Box$2, {
@@ -3675,6 +3676,7 @@ UserButton.propTypes = {
3675
3676
  disabled: PropTypes.bool,
3676
3677
  visible: PropTypes.bool
3677
3678
  })),
3679
+ menuLabel: PropTypes.string,
3678
3680
  onLogout: PropTypes.func
3679
3681
  };
3680
3682
 
@@ -3756,7 +3758,7 @@ Action.propTypes = {
3756
3758
  })
3757
3759
  };
3758
3760
 
3759
- const _excluded$B = ["title", "position", "titleComponent", "menuContainerId", "showMenuButton", "onMenuClick", "onLogout", "actions", "avatarActions", "user", "showLogo", "logoUrl", "logoHeight", "showLoading", "loadingColor", "secondaryMenuComponent", "enableScrollShadow"];
3761
+ const _excluded$B = ["title", "position", "titleComponent", "menuContainerId", "showMenuButton", "onMenuClick", "onLogout", "actions", "avatarActions", "avatarMenuLabel", "user", "showLogo", "logoUrl", "logoHeight", "showLoading", "loadingColor", "secondaryMenuComponent", "enableScrollShadow"];
3760
3762
  const AppToolbar = _ref => {
3761
3763
  var _containerRef$current;
3762
3764
  let {
@@ -3769,6 +3771,7 @@ const AppToolbar = _ref => {
3769
3771
  onLogout,
3770
3772
  actions,
3771
3773
  avatarActions,
3774
+ avatarMenuLabel = "My account",
3772
3775
  user,
3773
3776
  showLogo = false,
3774
3777
  logoUrl,
@@ -3857,6 +3860,7 @@ const AppToolbar = _ref => {
3857
3860
  children: /*#__PURE__*/jsx(LogoutOutlined, {})
3858
3861
  }), user && /*#__PURE__*/jsx(UserButton, {
3859
3862
  actions: avatarActions,
3863
+ menuLabel: avatarMenuLabel,
3860
3864
  user: user,
3861
3865
  onLogout: onLogout
3862
3866
  })]
@@ -3908,6 +3912,8 @@ AppToolbar.propTypes = {
3908
3912
  disabled: PropTypes.any,
3909
3913
  onClick: PropTypes.func
3910
3914
  })),
3915
+ /** Accessible name for the button that opens the avatar menu. */
3916
+ avatarMenuLabel: PropTypes.string,
3911
3917
  showMenuButton: PropTypes.bool,
3912
3918
  menuContainerId: PropTypes.string,
3913
3919
  onMenuClick: PropTypes.func,
@@ -5027,8 +5033,10 @@ const MenuButton = /*#__PURE__*/forwardRef(function MenuButton(_ref, ref) {
5027
5033
  borderTop: item.divider ? "1px solid #dddddd" : "none",
5028
5034
  marginTop: item.divider ? 1 : "inherit",
5029
5035
  paddingTop: item.divider ? 1 : "inherit",
5030
- "&.Mui-focusVisible": {
5031
- backgroundColor: "rgba(0, 0, 0, 0.04)"
5036
+ "&.Mui-focusVisible, &:hover": {
5037
+ backgroundColor: "rgba(0, 0, 0, 0.12)",
5038
+ outline: "2px solid rgba(0, 0, 0, 0.87)",
5039
+ outlineOffset: "-2px"
5032
5040
  }
5033
5041
  },
5034
5042
  children: [item.icon && /*#__PURE__*/jsx(ListItemIcon, {
@@ -11201,6 +11209,7 @@ const FullPageViewer = props => {
11201
11209
  confirmButtonDisabled: props.confirmButtonDisabled,
11202
11210
  closeOnConfirm: props.closeOnConfirm,
11203
11211
  dialogSx: props.dialogSx,
11212
+ titleComponent: props.titleComponent,
11204
11213
  children: /*#__PURE__*/jsx(Fragment$1, {
11205
11214
  children: props.url ? /*#__PURE__*/jsx(Box$2, {
11206
11215
  sx: {
@@ -11274,7 +11283,9 @@ FullPageViewer.propTypes = {
11274
11283
  /** Custom styles for the dialog */
11275
11284
  dialogSx: PropTypes.any,
11276
11285
  /** Custom styles for the dialog */
11277
- onWindowMessage: PropTypes.func
11286
+ onWindowMessage: PropTypes.func,
11287
+ /** Custom title component */
11288
+ titleComponent: PropTypes.oneOf(["h1", "h2", "h3", "div", "span"])
11278
11289
  };
11279
11290
 
11280
11291
  const _excluded$s = ["height", "children", "onScroll", "showTopFade", "showBottomFade", "component", "onScrollReachStart", "onScrollReachEnd"];
@@ -25487,7 +25498,7 @@ LoadingScreenWithTextTransition.propTypes = {
25487
25498
  textTransitionProps: PropTypes.object
25488
25499
  };
25489
25500
 
25490
- LicenseInfo.setLicenseKey("66847395c260a00b267238f6b82862a0Tz04NTQwOCxFPTE3NDA4NjgyNTEwMDAsUz1wcmVtaXVtLExNPXN1YnNjcmlwdGlvbixLVj0y");
25501
+ LicenseInfo.setLicenseKey("02e713a3c6c99449d985ebc2ad97581cTz0xMjYzODksRT0xODA0MTE4Mzk5MDAwLFM9cHJlbWl1bSxMTT1hbm51YWwsUFY9aW5pdGlhbCxLVj0y");
25491
25502
  const DataTable = ({
25492
25503
  columns,
25493
25504
  data,