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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.3.15
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: enhance responsiveness and layout adjustments in SystemMonitorScreen
8
+
9
+ ## 1.3.14
10
+
11
+ ### Patch Changes
12
+
13
+ - changeset: GOODS_WAREHOUSE
14
+
3
15
  ## 1.3.13
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -579,12 +579,12 @@ const APP_OBJ = {
579
579
  group: AppGroup.MANUFACTURING,
580
580
  color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
581
581
  },
582
- WAREHOUSE_FINISHED_GOODS: {
582
+ GOODS_WAREHOUSE: {
583
583
  path: {
584
- local: "http://localhost:12017/finished-goods",
585
- develop: "https://dev.admin.warehouse-material.sevago.local/finished-goods",
586
- staging: "https://sta.admin.warehouse-material.sevago.local/finished-goods",
587
- production: "https://admin.warehouse-material.sevago.local/finished-goods",
584
+ local: "http://localhost:12035",
585
+ develop: "https://dev.admin.goods-warehouse.sevago.local",
586
+ staging: "https://sta.admin.goods-warehouse.sevago.local",
587
+ production: "https://admin.goods-warehouse.sevago.local",
588
588
  production_vps: ""
589
589
  },
590
590
  icon: ICONS.iconWarehouseMaterialCcdc,
@@ -78346,6 +78346,10 @@ const SystemMonitorScreen = ({
78346
78346
  }) => {
78347
78347
  const theme = useTheme();
78348
78348
  const [tab, setTab] = React.useState(AppGroup.ALL);
78349
+ const isBelowSm = material.useMediaQuery(theme.breakpoints.down("sm"));
78350
+ const isBelowMd = material.useMediaQuery(theme.breakpoints.down("md"));
78351
+ const isBelowLg = material.useMediaQuery(theme.breakpoints.down("lg"));
78352
+ const appGridColumns = isBelowSm ? 2 : isBelowMd ? 3 : isBelowLg ? 4 : 5;
78349
78353
  const availableApps = React.useMemo(
78350
78354
  () => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
78351
78355
  const appInfo = app;
@@ -78388,7 +78392,7 @@ const SystemMonitorScreen = ({
78388
78392
  component: MotionBox,
78389
78393
  preset: "fadeInUp",
78390
78394
  sx: {
78391
- flexDirection: { xs: "column", md: "row" },
78395
+ flexDirection: "row",
78392
78396
  alignItems: "stretch",
78393
78397
  width: "100%",
78394
78398
  minHeight: "100%",
@@ -78399,7 +78403,8 @@ const SystemMonitorScreen = ({
78399
78403
  material.Stack,
78400
78404
  {
78401
78405
  sx: {
78402
- width: { xs: "100%", md: 240 },
78406
+ width: { xs: 72, sm: 180, md: 240 },
78407
+ flexShrink: 0,
78403
78408
  gap: 0
78404
78409
  },
78405
78410
  children: availableGroups.map((group) => {
@@ -78411,6 +78416,7 @@ const SystemMonitorScreen = ({
78411
78416
  "aria-pressed": isActive,
78412
78417
  sx: {
78413
78418
  p: PADDING_GAP_ITEM,
78419
+ justifyContent: { xs: "center", sm: "flex-start" },
78414
78420
  border: 0,
78415
78421
  borderLeft: { md: `3px solid ${isActive ? theme.palette.primary.main : "transparent"}` },
78416
78422
  borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
@@ -78425,7 +78431,7 @@ const SystemMonitorScreen = ({
78425
78431
  },
78426
78432
  children: [
78427
78433
  /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: GROUP_ICONS[group] }),
78428
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textMd.regular }, children: group })
78434
+ /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { display: { xs: "none", sm: "block" }, ...TYPOGRAPHY.textMd.regular }, children: group })
78429
78435
  ]
78430
78436
  },
78431
78437
  group
@@ -78437,9 +78443,9 @@ const SystemMonitorScreen = ({
78437
78443
  AppGrid,
78438
78444
  {
78439
78445
  apps: appsByGroup,
78440
- columns: 5,
78446
+ columns: appGridColumns,
78441
78447
  rows: 3,
78442
- iconSize: 120,
78448
+ iconSize: 60,
78443
78449
  iconRadius: 7,
78444
78450
  onClickApp,
78445
78451
  isShowAppHidden: true