sevago-library 1.3.13 → 1.3.15

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.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { createTheme as createTheme$2, Stack, TableCell, tableCellClasses, LinearProgress, linearProgressClasses, useTheme as useTheme$4, Skeleton, Box, styled as styled$3, InputLabel as InputLabel$1, Link, Paper as Paper$1, Typography as Typography$1, ClickAwayListener, Tooltip, Icon, Badge, Tabs as Tabs$1, Tab as Tab$1, Divider as Divider$1, tooltipClasses, Avatar, AvatarGroup, Popover as Popover$1, CircularProgress as CircularProgress$1, Button as Button$1, Chip as Chip$1, TextField as TextField$1, GlobalStyles as GlobalStyles$2, InputAdornment as InputAdornment$1, debounce as debounce$3, Fade as Fade$1, MenuItem as MenuItem$1, FormControl as FormControl$1, FormHelperText as FormHelperText$1, IconButton as IconButton$1, FormControlLabel, Checkbox, Collapse, Dialog as Dialog$1, DialogTitle, DialogContent as DialogContent$1, DialogActions as DialogActions$1, List as List$2, ListItem as ListItem$1, Pagination, RadioGroup, Radio, TableRow, TableContainer, TableHead, Table, TableBody, Card, CardHeader, CardContent, Select as Select$1, Autocomplete as Autocomplete$1 } from "@mui/material";
4
+ import { createTheme as createTheme$2, Stack, TableCell, tableCellClasses, LinearProgress, linearProgressClasses, useTheme as useTheme$4, Skeleton, Box, styled as styled$3, InputLabel as InputLabel$1, Link, Paper as Paper$1, Typography as Typography$1, ClickAwayListener, Tooltip, Icon, Badge, Tabs as Tabs$1, Tab as Tab$1, Divider as Divider$1, tooltipClasses, Avatar, AvatarGroup, Popover as Popover$1, CircularProgress as CircularProgress$1, Button as Button$1, Chip as Chip$1, TextField as TextField$1, GlobalStyles as GlobalStyles$2, InputAdornment as InputAdornment$1, debounce as debounce$3, Fade as Fade$1, MenuItem as MenuItem$1, FormControl as FormControl$1, FormHelperText as FormHelperText$1, IconButton as IconButton$1, FormControlLabel, Checkbox, Collapse, Dialog as Dialog$1, DialogTitle, DialogContent as DialogContent$1, DialogActions as DialogActions$1, List as List$2, ListItem as ListItem$1, Pagination, RadioGroup, Radio, TableRow, TableContainer, TableHead, Table, TableBody, useMediaQuery as useMediaQuery$1, Card, CardHeader, CardContent, Select as Select$1, Autocomplete as Autocomplete$1 } from "@mui/material";
5
5
  import dayjs from "dayjs";
6
6
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
7
7
  import * as React from "react";
@@ -561,12 +561,12 @@ const APP_OBJ = {
561
561
  group: AppGroup.MANUFACTURING,
562
562
  color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
563
563
  },
564
- WAREHOUSE_FINISHED_GOODS: {
564
+ GOODS_WAREHOUSE: {
565
565
  path: {
566
- local: "http://localhost:12017/finished-goods",
567
- develop: "https://dev.admin.warehouse-material.sevago.local/finished-goods",
568
- staging: "https://sta.admin.warehouse-material.sevago.local/finished-goods",
569
- production: "https://admin.warehouse-material.sevago.local/finished-goods",
566
+ local: "http://localhost:12035",
567
+ develop: "https://dev.admin.goods-warehouse.sevago.local",
568
+ staging: "https://sta.admin.goods-warehouse.sevago.local",
569
+ production: "https://admin.goods-warehouse.sevago.local",
570
570
  production_vps: ""
571
571
  },
572
572
  icon: ICONS.iconWarehouseMaterialCcdc,
@@ -78328,6 +78328,10 @@ const SystemMonitorScreen = ({
78328
78328
  }) => {
78329
78329
  const theme = useTheme();
78330
78330
  const [tab, setTab] = useState(AppGroup.ALL);
78331
+ const isBelowSm = useMediaQuery$1(theme.breakpoints.down("sm"));
78332
+ const isBelowMd = useMediaQuery$1(theme.breakpoints.down("md"));
78333
+ const isBelowLg = useMediaQuery$1(theme.breakpoints.down("lg"));
78334
+ const appGridColumns = isBelowSm ? 2 : isBelowMd ? 3 : isBelowLg ? 4 : 5;
78331
78335
  const availableApps = React__default.useMemo(
78332
78336
  () => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
78333
78337
  const appInfo = app;
@@ -78370,7 +78374,7 @@ const SystemMonitorScreen = ({
78370
78374
  component: MotionBox,
78371
78375
  preset: "fadeInUp",
78372
78376
  sx: {
78373
- flexDirection: { xs: "column", md: "row" },
78377
+ flexDirection: "row",
78374
78378
  alignItems: "stretch",
78375
78379
  width: "100%",
78376
78380
  minHeight: "100%",
@@ -78381,7 +78385,8 @@ const SystemMonitorScreen = ({
78381
78385
  Stack,
78382
78386
  {
78383
78387
  sx: {
78384
- width: { xs: "100%", md: 240 },
78388
+ width: { xs: 72, sm: 180, md: 240 },
78389
+ flexShrink: 0,
78385
78390
  gap: 0
78386
78391
  },
78387
78392
  children: availableGroups.map((group) => {
@@ -78393,6 +78398,7 @@ const SystemMonitorScreen = ({
78393
78398
  "aria-pressed": isActive,
78394
78399
  sx: {
78395
78400
  p: PADDING_GAP_ITEM,
78401
+ justifyContent: { xs: "center", sm: "flex-start" },
78396
78402
  border: 0,
78397
78403
  borderLeft: { md: `3px solid ${isActive ? theme.palette.primary.main : "transparent"}` },
78398
78404
  borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
@@ -78407,7 +78413,7 @@ const SystemMonitorScreen = ({
78407
78413
  },
78408
78414
  children: [
78409
78415
  /* @__PURE__ */ jsx(IconElement, { icon: GROUP_ICONS[group] }),
78410
- /* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textMd.regular }, children: group })
78416
+ /* @__PURE__ */ jsx(Typography$1, { sx: { display: { xs: "none", sm: "block" }, ...TYPOGRAPHY.textMd.regular }, children: group })
78411
78417
  ]
78412
78418
  },
78413
78419
  group
@@ -78419,9 +78425,9 @@ const SystemMonitorScreen = ({
78419
78425
  AppGrid,
78420
78426
  {
78421
78427
  apps: appsByGroup,
78422
- columns: 5,
78428
+ columns: appGridColumns,
78423
78429
  rows: 3,
78424
- iconSize: 120,
78430
+ iconSize: 60,
78425
78431
  iconRadius: 7,
78426
78432
  onClickApp,
78427
78433
  isShowAppHidden: true