@zac-apps/commons 1.0.2 → 1.0.4
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 -69
- 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);
|
|
@@ -368,8 +367,6 @@ function Percentage(number) {
|
|
|
368
367
|
return resultStr;
|
|
369
368
|
}
|
|
370
369
|
|
|
371
|
-
var PreferenceContext = /*#__PURE__*/React.createContext(null);
|
|
372
|
-
|
|
373
370
|
function Progress() {
|
|
374
371
|
return /*#__PURE__*/jsxRuntime.jsx(Grid, {
|
|
375
372
|
container: true,
|
|
@@ -633,70 +630,6 @@ function AppDrawer(_ref) {
|
|
|
633
630
|
});
|
|
634
631
|
}
|
|
635
632
|
|
|
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
633
|
exports.Alert = ErrorAlert;
|
|
701
634
|
exports.AppCard = AppCard;
|
|
702
635
|
exports.AppDrawer = AppDrawer;
|
|
@@ -707,11 +640,9 @@ exports.AppTheme = AppTheme;
|
|
|
707
640
|
exports.AppWrapper = AppWrapper;
|
|
708
641
|
exports.DivTitle = DivTitle;
|
|
709
642
|
exports.Footer = Footer;
|
|
710
|
-
exports.ListMenu = ListMenu;
|
|
711
643
|
exports.MenuButton = MenuButton;
|
|
712
644
|
exports.NextListMenu = NextListMenu;
|
|
713
645
|
exports.Percentage = Percentage;
|
|
714
|
-
exports.PreferenceContext = PreferenceContext;
|
|
715
646
|
exports.Progress = Progress;
|
|
716
647
|
exports.PublicFetch = PublicFetch;
|
|
717
648
|
exports.RespGrid = RespGrid;
|