@zac-apps/commons 1.0.2 → 1.0.3
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.js +0 -66
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,7 +49,6 @@ var List = require('@mui/material/List');
|
|
|
49
49
|
var ListItem = require('@mui/material/ListItem');
|
|
50
50
|
var ManageSearchIcon = require('@mui/icons-material/ManageSearch');
|
|
51
51
|
var CloseIcon = require('@mui/icons-material/Close');
|
|
52
|
-
var reactRouterDom = require('react-router-dom');
|
|
53
52
|
|
|
54
53
|
function _interopNamespaceDefault(e) {
|
|
55
54
|
var n = Object.create(null);
|
|
@@ -633,70 +632,6 @@ function AppDrawer(_ref) {
|
|
|
633
632
|
});
|
|
634
633
|
}
|
|
635
634
|
|
|
636
|
-
var basePath = process.env.basePath;
|
|
637
|
-
function ListMenu(_ref) {
|
|
638
|
-
var availApps = _ref.availApps,
|
|
639
|
-
start = _ref.start;
|
|
640
|
-
var _React$useState = React__namespace.useState(null),
|
|
641
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
642
|
-
anchorEl = _React$useState2[0],
|
|
643
|
-
setAnchorEl = _React$useState2[1];
|
|
644
|
-
var open = Boolean(anchorEl);
|
|
645
|
-
var handleClickListItem = function handleClickListItem(event) {
|
|
646
|
-
setAnchorEl(event.currentTarget);
|
|
647
|
-
};
|
|
648
|
-
var handleClose = function handleClose() {
|
|
649
|
-
setAnchorEl(null);
|
|
650
|
-
};
|
|
651
|
-
var location = reactRouterDom.useLocation();
|
|
652
|
-
function StartEntry() {
|
|
653
|
-
if (start) {
|
|
654
|
-
return /*#__PURE__*/jsxRuntime.jsxs(React__namespace.Fragment, {
|
|
655
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(MenuItem, {
|
|
656
|
-
component: reactRouterDom.Link,
|
|
657
|
-
to: "/start",
|
|
658
|
-
selected: location.pathname === basePath + "/start",
|
|
659
|
-
onClick: handleClose,
|
|
660
|
-
children: "Start"
|
|
661
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Divider, {})]
|
|
662
|
-
});
|
|
663
|
-
} else return null;
|
|
664
|
-
}
|
|
665
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
666
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
667
|
-
size: "large",
|
|
668
|
-
edge: "start",
|
|
669
|
-
color: "inherit",
|
|
670
|
-
"aria-label": "menu",
|
|
671
|
-
sx: {
|
|
672
|
-
mr: 2
|
|
673
|
-
},
|
|
674
|
-
onClick: handleClickListItem,
|
|
675
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MenuButton, {
|
|
676
|
-
anchorEl: anchorEl
|
|
677
|
-
})
|
|
678
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(Menu, {
|
|
679
|
-
id: "lock-menu",
|
|
680
|
-
anchorEl: anchorEl,
|
|
681
|
-
open: open,
|
|
682
|
-
onClose: handleClose,
|
|
683
|
-
MenuListProps: {
|
|
684
|
-
"aria-labelledby": "lock-button",
|
|
685
|
-
role: "listbox"
|
|
686
|
-
},
|
|
687
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(StartEntry, {}), availApps.map(function (option, index) {
|
|
688
|
-
return /*#__PURE__*/jsxRuntime.jsx(MenuItem, {
|
|
689
|
-
component: reactRouterDom.Link,
|
|
690
|
-
to: option.path,
|
|
691
|
-
selected: basePath + option.path === location.pathname,
|
|
692
|
-
onClick: handleClose,
|
|
693
|
-
children: option.name
|
|
694
|
-
}, option.name);
|
|
695
|
-
})]
|
|
696
|
-
})]
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
|
|
700
635
|
exports.Alert = ErrorAlert;
|
|
701
636
|
exports.AppCard = AppCard;
|
|
702
637
|
exports.AppDrawer = AppDrawer;
|
|
@@ -707,7 +642,6 @@ exports.AppTheme = AppTheme;
|
|
|
707
642
|
exports.AppWrapper = AppWrapper;
|
|
708
643
|
exports.DivTitle = DivTitle;
|
|
709
644
|
exports.Footer = Footer;
|
|
710
|
-
exports.ListMenu = ListMenu;
|
|
711
645
|
exports.MenuButton = MenuButton;
|
|
712
646
|
exports.NextListMenu = NextListMenu;
|
|
713
647
|
exports.Percentage = Percentage;
|