sevago-sso-fe 1.0.79 → 1.0.81
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
|
@@ -7186,7 +7186,8 @@ const AppGrid = ({
|
|
|
7186
7186
|
titleVariant = "subtitle1",
|
|
7187
7187
|
titleColor,
|
|
7188
7188
|
showPagination = true,
|
|
7189
|
-
onClickApp
|
|
7189
|
+
onClickApp,
|
|
7190
|
+
isShowAppHidden = false
|
|
7190
7191
|
}) => {
|
|
7191
7192
|
const theme = useTheme();
|
|
7192
7193
|
const pageSize = Math.max(1, columns * Math.max(1, rows));
|
|
@@ -7198,8 +7199,8 @@ const AppGrid = ({
|
|
|
7198
7199
|
const start = page * pageSize;
|
|
7199
7200
|
const end = start + pageSize;
|
|
7200
7201
|
const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
|
|
7201
|
-
const placeholdersCount = Math.max(0, pageSize - visibleApps.length);
|
|
7202
|
-
const placeholderHeight = iconSize + 36.5;
|
|
7202
|
+
const placeholdersCount = isShowAppHidden ? Math.max(0, pageSize - visibleApps.length) : 0;
|
|
7203
|
+
const placeholderHeight = isShowAppHidden ? iconSize + 36.5 : 0;
|
|
7203
7204
|
return /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
|
|
7204
7205
|
/* @__PURE__ */ jsxs(
|
|
7205
7206
|
Box,
|
|
@@ -9620,8 +9621,9 @@ const AppsSidebar = ({
|
|
|
9620
9621
|
}) => {
|
|
9621
9622
|
if (!isOpen) return null;
|
|
9622
9623
|
const theme = useTheme();
|
|
9623
|
-
const appsGroupObj = Object.
|
|
9624
|
-
if (blacklist.includes(
|
|
9624
|
+
const appsGroupObj = Object.keys(APP_OBJ).reduce((r, key) => {
|
|
9625
|
+
if (blacklist.includes(key)) return r;
|
|
9626
|
+
const e = APP_OBJ[key];
|
|
9625
9627
|
if (r[e.group]) r[e.group].push(e);
|
|
9626
9628
|
else r[e.group] = [e];
|
|
9627
9629
|
return r;
|
|
@@ -9798,15 +9800,17 @@ const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
|
9798
9800
|
/* @__PURE__ */ jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsx(
|
|
9799
9801
|
AppGrid,
|
|
9800
9802
|
{
|
|
9801
|
-
apps: Object.
|
|
9802
|
-
const
|
|
9803
|
+
apps: Object.keys(APP_OBJ).filter((key) => {
|
|
9804
|
+
const e = APP_OBJ[key];
|
|
9805
|
+
const isBlacklisted = !!blacklist?.includes(key);
|
|
9803
9806
|
const isInSelectedGroup = tab === AppGroup.ALL ? true : e.group === tab;
|
|
9804
9807
|
return !isBlacklisted && isInSelectedGroup;
|
|
9805
|
-
}),
|
|
9808
|
+
}).map((key) => APP_OBJ[key]),
|
|
9806
9809
|
iconSize: 80,
|
|
9807
9810
|
iconRadius: 7,
|
|
9808
9811
|
gap: PADDING_GAP_TAB,
|
|
9809
|
-
onClickApp
|
|
9812
|
+
onClickApp,
|
|
9813
|
+
isShowAppHidden: true
|
|
9810
9814
|
}
|
|
9811
9815
|
) }, tab)
|
|
9812
9816
|
]
|