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.cjs.js
CHANGED
|
@@ -7204,7 +7204,8 @@ const AppGrid = ({
|
|
|
7204
7204
|
titleVariant = "subtitle1",
|
|
7205
7205
|
titleColor,
|
|
7206
7206
|
showPagination = true,
|
|
7207
|
-
onClickApp
|
|
7207
|
+
onClickApp,
|
|
7208
|
+
isShowAppHidden = false
|
|
7208
7209
|
}) => {
|
|
7209
7210
|
const theme = useTheme();
|
|
7210
7211
|
const pageSize = Math.max(1, columns * Math.max(1, rows));
|
|
@@ -7216,8 +7217,8 @@ const AppGrid = ({
|
|
|
7216
7217
|
const start = page * pageSize;
|
|
7217
7218
|
const end = start + pageSize;
|
|
7218
7219
|
const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
|
|
7219
|
-
const placeholdersCount = Math.max(0, pageSize - visibleApps.length);
|
|
7220
|
-
const placeholderHeight = iconSize + 36.5;
|
|
7220
|
+
const placeholdersCount = isShowAppHidden ? Math.max(0, pageSize - visibleApps.length) : 0;
|
|
7221
|
+
const placeholderHeight = isShowAppHidden ? iconSize + 36.5 : 0;
|
|
7221
7222
|
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
|
|
7222
7223
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7223
7224
|
material.Box,
|
|
@@ -9638,8 +9639,9 @@ const AppsSidebar = ({
|
|
|
9638
9639
|
}) => {
|
|
9639
9640
|
if (!isOpen) return null;
|
|
9640
9641
|
const theme = useTheme();
|
|
9641
|
-
const appsGroupObj = Object.
|
|
9642
|
-
if (blacklist.includes(
|
|
9642
|
+
const appsGroupObj = Object.keys(APP_OBJ).reduce((r, key) => {
|
|
9643
|
+
if (blacklist.includes(key)) return r;
|
|
9644
|
+
const e = APP_OBJ[key];
|
|
9643
9645
|
if (r[e.group]) r[e.group].push(e);
|
|
9644
9646
|
else r[e.group] = [e];
|
|
9645
9647
|
return r;
|
|
@@ -9816,15 +9818,17 @@ const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
|
9816
9818
|
/* @__PURE__ */ jsxRuntime.jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9817
9819
|
AppGrid,
|
|
9818
9820
|
{
|
|
9819
|
-
apps: Object.
|
|
9820
|
-
const
|
|
9821
|
+
apps: Object.keys(APP_OBJ).filter((key) => {
|
|
9822
|
+
const e = APP_OBJ[key];
|
|
9823
|
+
const isBlacklisted = !!blacklist?.includes(key);
|
|
9821
9824
|
const isInSelectedGroup = tab === AppGroup.ALL ? true : e.group === tab;
|
|
9822
9825
|
return !isBlacklisted && isInSelectedGroup;
|
|
9823
|
-
}),
|
|
9826
|
+
}).map((key) => APP_OBJ[key]),
|
|
9824
9827
|
iconSize: 80,
|
|
9825
9828
|
iconRadius: 7,
|
|
9826
9829
|
gap: PADDING_GAP_TAB,
|
|
9827
|
-
onClickApp
|
|
9830
|
+
onClickApp,
|
|
9831
|
+
isShowAppHidden: true
|
|
9828
9832
|
}
|
|
9829
9833
|
) }, tab)
|
|
9830
9834
|
]
|