sevago-sso-fe 1.0.36 → 1.0.39
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/components/sidebar/apps-sidebar.component.d.ts +1 -0
- package/dist/components/sidebar/system-monitor-sidebar.part.d.ts +2 -0
- package/dist/index.cjs.js +30 -85
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -85
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -27674,16 +27674,26 @@ const TimeAgoContentComponent = ({ time: time2, content, height: height2 = HEIGH
|
|
|
27674
27674
|
const AppsSidebar = ({
|
|
27675
27675
|
isOpen,
|
|
27676
27676
|
onClose,
|
|
27677
|
-
position = "left"
|
|
27677
|
+
position = "left",
|
|
27678
|
+
blacklist
|
|
27678
27679
|
}) => {
|
|
27680
|
+
if (!isOpen) return null;
|
|
27679
27681
|
const theme = useTheme();
|
|
27680
27682
|
const navigate = reactRouterDom.useNavigate();
|
|
27681
27683
|
const allApps = useApps();
|
|
27682
27684
|
const dispatch = useAppDispatch();
|
|
27683
27685
|
const currentApp = useActiveSidebar();
|
|
27684
27686
|
const { setActiveExpandMenu } = useSidebar();
|
|
27685
|
-
const
|
|
27686
|
-
|
|
27687
|
+
const displayApps = React.useMemo(() => {
|
|
27688
|
+
if (!blacklist || blacklist.length === 0) return allApps;
|
|
27689
|
+
const matched = allApps.filter(
|
|
27690
|
+
(a) => a.path ? blacklist.includes(a.path) : false
|
|
27691
|
+
);
|
|
27692
|
+
return matched.length > 0 ? matched : allApps;
|
|
27693
|
+
}, [allApps, blacklist]);
|
|
27694
|
+
const groups = React.useMemo(() => {
|
|
27695
|
+
return Array.from(new Set(displayApps.map((v) => v.group)));
|
|
27696
|
+
}, [displayApps]);
|
|
27687
27697
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
27688
27698
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27689
27699
|
material.Box,
|
|
@@ -27695,7 +27705,7 @@ const AppsSidebar = ({
|
|
|
27695
27705
|
left: 0,
|
|
27696
27706
|
right: 0,
|
|
27697
27707
|
bottom: 0,
|
|
27698
|
-
backgroundColor: palette.action.selected,
|
|
27708
|
+
backgroundColor: theme.palette.action.selected,
|
|
27699
27709
|
zIndex: 100
|
|
27700
27710
|
}
|
|
27701
27711
|
}
|
|
@@ -27760,79 +27770,7 @@ const AppsSidebar = ({
|
|
|
27760
27770
|
]
|
|
27761
27771
|
}
|
|
27762
27772
|
),
|
|
27763
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
27764
|
-
material.Box,
|
|
27765
|
-
{
|
|
27766
|
-
sx: {
|
|
27767
|
-
gap: PADDING_GAP_ITEM,
|
|
27768
|
-
display: "flex",
|
|
27769
|
-
flexDirection: "column"
|
|
27770
|
-
},
|
|
27771
|
-
children: [
|
|
27772
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle2", children: "Workflow Engine" }),
|
|
27773
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27774
|
-
AppGrid,
|
|
27775
|
-
{
|
|
27776
|
-
apps: allApps.filter(
|
|
27777
|
-
(app) => app.group === AppGroup.WORKFLOW_ENGINE
|
|
27778
|
-
),
|
|
27779
|
-
columns: 4,
|
|
27780
|
-
iconSize: 60,
|
|
27781
|
-
iconRadius: 5.5,
|
|
27782
|
-
gap: PADDING_GAP_ITEM,
|
|
27783
|
-
titleVariant: "body1",
|
|
27784
|
-
captionVariant: "caption",
|
|
27785
|
-
titleColor: theme.palette.grey[800],
|
|
27786
|
-
captionColor: theme.palette.grey[600],
|
|
27787
|
-
selectedAppId: currentApp?.path,
|
|
27788
|
-
onClickItem: async (app) => {
|
|
27789
|
-
await dispatch(
|
|
27790
|
-
ACTION_ACCOUNT.updateCurrentAccess(app.path)
|
|
27791
|
-
).unwrap();
|
|
27792
|
-
setActiveExpandMenu(null);
|
|
27793
|
-
onClose();
|
|
27794
|
-
}
|
|
27795
|
-
}
|
|
27796
|
-
)
|
|
27797
|
-
]
|
|
27798
|
-
}
|
|
27799
|
-
),
|
|
27800
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
27801
|
-
material.Box,
|
|
27802
|
-
{
|
|
27803
|
-
sx: {
|
|
27804
|
-
gap: PADDING_GAP_ITEM,
|
|
27805
|
-
display: "flex",
|
|
27806
|
-
flexDirection: "column"
|
|
27807
|
-
},
|
|
27808
|
-
children: [
|
|
27809
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle2", children: "HRM" }),
|
|
27810
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27811
|
-
AppGrid,
|
|
27812
|
-
{
|
|
27813
|
-
apps: allApps.filter((app) => app.group === AppGroup.HRM),
|
|
27814
|
-
columns: 4,
|
|
27815
|
-
iconSize: 60,
|
|
27816
|
-
iconRadius: 5.5,
|
|
27817
|
-
gap: PADDING_GAP_ITEM,
|
|
27818
|
-
titleVariant: "body1",
|
|
27819
|
-
captionVariant: "caption",
|
|
27820
|
-
titleColor: theme.palette.grey[800],
|
|
27821
|
-
captionColor: theme.palette.grey[600],
|
|
27822
|
-
selectedAppId: currentApp?.path,
|
|
27823
|
-
onClickItem: async (app) => {
|
|
27824
|
-
await dispatch(
|
|
27825
|
-
ACTION_ACCOUNT.updateCurrentAccess(app.path)
|
|
27826
|
-
).unwrap();
|
|
27827
|
-
setActiveExpandMenu(null);
|
|
27828
|
-
onClose();
|
|
27829
|
-
}
|
|
27830
|
-
}
|
|
27831
|
-
)
|
|
27832
|
-
]
|
|
27833
|
-
}
|
|
27834
|
-
),
|
|
27835
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
27773
|
+
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
27836
27774
|
material.Box,
|
|
27837
27775
|
{
|
|
27838
27776
|
sx: {
|
|
@@ -27841,13 +27779,11 @@ const AppsSidebar = ({
|
|
|
27841
27779
|
flexDirection: "column"
|
|
27842
27780
|
},
|
|
27843
27781
|
children: [
|
|
27844
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle2", children: "Platform Info" }),
|
|
27782
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle2", children: group === AppGroup.PLATFORM_AND_INFO ? "Platform & Info" : group }),
|
|
27845
27783
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27846
27784
|
AppGrid,
|
|
27847
27785
|
{
|
|
27848
|
-
apps:
|
|
27849
|
-
(app) => app.group === AppGroup.PLATFORM_AND_INFO
|
|
27850
|
-
),
|
|
27786
|
+
apps: displayApps.filter((app) => app.group === group),
|
|
27851
27787
|
columns: 4,
|
|
27852
27788
|
iconSize: 60,
|
|
27853
27789
|
iconRadius: 5.5,
|
|
@@ -27867,8 +27803,9 @@ const AppsSidebar = ({
|
|
|
27867
27803
|
}
|
|
27868
27804
|
)
|
|
27869
27805
|
]
|
|
27870
|
-
}
|
|
27871
|
-
|
|
27806
|
+
},
|
|
27807
|
+
group
|
|
27808
|
+
))
|
|
27872
27809
|
]
|
|
27873
27810
|
}
|
|
27874
27811
|
)
|
|
@@ -28064,7 +28001,7 @@ const TooltipOnClickElement = ({
|
|
|
28064
28001
|
) })
|
|
28065
28002
|
);
|
|
28066
28003
|
};
|
|
28067
|
-
const SystemMonitorSidebarPart = ({}) => {
|
|
28004
|
+
const SystemMonitorSidebarPart = ({ position, blacklist }) => {
|
|
28068
28005
|
const { isSidebarOpen, openSidebar, closeSidebar } = useSidebarState();
|
|
28069
28006
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
28070
28007
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -28076,7 +28013,15 @@ const SystemMonitorSidebarPart = ({}) => {
|
|
|
28076
28013
|
sx: { width: MAP_SIZE.medium.width, height: MAP_SIZE.medium.height }
|
|
28077
28014
|
}
|
|
28078
28015
|
),
|
|
28079
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28016
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28017
|
+
AppsSidebar,
|
|
28018
|
+
{
|
|
28019
|
+
isOpen: isSidebarOpen,
|
|
28020
|
+
onClose: closeSidebar,
|
|
28021
|
+
position,
|
|
28022
|
+
blacklist
|
|
28023
|
+
}
|
|
28024
|
+
)
|
|
28080
28025
|
] });
|
|
28081
28026
|
};
|
|
28082
28027
|
const TypographyFilter = material.styled(material.Typography)(({ theme }) => ({
|