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.esm.js
CHANGED
|
@@ -27656,16 +27656,26 @@ const TimeAgoContentComponent = ({ time: time2, content, height: height2 = HEIGH
|
|
|
27656
27656
|
const AppsSidebar = ({
|
|
27657
27657
|
isOpen,
|
|
27658
27658
|
onClose,
|
|
27659
|
-
position = "left"
|
|
27659
|
+
position = "left",
|
|
27660
|
+
blacklist
|
|
27660
27661
|
}) => {
|
|
27662
|
+
if (!isOpen) return null;
|
|
27661
27663
|
const theme = useTheme();
|
|
27662
27664
|
const navigate = useNavigate();
|
|
27663
27665
|
const allApps = useApps();
|
|
27664
27666
|
const dispatch = useAppDispatch();
|
|
27665
27667
|
const currentApp = useActiveSidebar();
|
|
27666
27668
|
const { setActiveExpandMenu } = useSidebar();
|
|
27667
|
-
const
|
|
27668
|
-
|
|
27669
|
+
const displayApps = React__default.useMemo(() => {
|
|
27670
|
+
if (!blacklist || blacklist.length === 0) return allApps;
|
|
27671
|
+
const matched = allApps.filter(
|
|
27672
|
+
(a) => a.path ? blacklist.includes(a.path) : false
|
|
27673
|
+
);
|
|
27674
|
+
return matched.length > 0 ? matched : allApps;
|
|
27675
|
+
}, [allApps, blacklist]);
|
|
27676
|
+
const groups = React__default.useMemo(() => {
|
|
27677
|
+
return Array.from(new Set(displayApps.map((v) => v.group)));
|
|
27678
|
+
}, [displayApps]);
|
|
27669
27679
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
27670
27680
|
/* @__PURE__ */ jsx(
|
|
27671
27681
|
Box,
|
|
@@ -27677,7 +27687,7 @@ const AppsSidebar = ({
|
|
|
27677
27687
|
left: 0,
|
|
27678
27688
|
right: 0,
|
|
27679
27689
|
bottom: 0,
|
|
27680
|
-
backgroundColor: palette.action.selected,
|
|
27690
|
+
backgroundColor: theme.palette.action.selected,
|
|
27681
27691
|
zIndex: 100
|
|
27682
27692
|
}
|
|
27683
27693
|
}
|
|
@@ -27742,7 +27752,7 @@ const AppsSidebar = ({
|
|
|
27742
27752
|
]
|
|
27743
27753
|
}
|
|
27744
27754
|
),
|
|
27745
|
-
/* @__PURE__ */ jsxs(
|
|
27755
|
+
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
27746
27756
|
Box,
|
|
27747
27757
|
{
|
|
27748
27758
|
sx: {
|
|
@@ -27751,13 +27761,11 @@ const AppsSidebar = ({
|
|
|
27751
27761
|
flexDirection: "column"
|
|
27752
27762
|
},
|
|
27753
27763
|
children: [
|
|
27754
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "
|
|
27764
|
+
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: group === AppGroup.PLATFORM_AND_INFO ? "Platform & Info" : group }),
|
|
27755
27765
|
/* @__PURE__ */ jsx(
|
|
27756
27766
|
AppGrid,
|
|
27757
27767
|
{
|
|
27758
|
-
apps:
|
|
27759
|
-
(app) => app.group === AppGroup.WORKFLOW_ENGINE
|
|
27760
|
-
),
|
|
27768
|
+
apps: displayApps.filter((app) => app.group === group),
|
|
27761
27769
|
columns: 4,
|
|
27762
27770
|
iconSize: 60,
|
|
27763
27771
|
iconRadius: 5.5,
|
|
@@ -27777,80 +27785,9 @@ const AppsSidebar = ({
|
|
|
27777
27785
|
}
|
|
27778
27786
|
)
|
|
27779
27787
|
]
|
|
27780
|
-
}
|
|
27781
|
-
|
|
27782
|
-
|
|
27783
|
-
Box,
|
|
27784
|
-
{
|
|
27785
|
-
sx: {
|
|
27786
|
-
gap: PADDING_GAP_ITEM,
|
|
27787
|
-
display: "flex",
|
|
27788
|
-
flexDirection: "column"
|
|
27789
|
-
},
|
|
27790
|
-
children: [
|
|
27791
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "HRM" }),
|
|
27792
|
-
/* @__PURE__ */ jsx(
|
|
27793
|
-
AppGrid,
|
|
27794
|
-
{
|
|
27795
|
-
apps: allApps.filter((app) => app.group === AppGroup.HRM),
|
|
27796
|
-
columns: 4,
|
|
27797
|
-
iconSize: 60,
|
|
27798
|
-
iconRadius: 5.5,
|
|
27799
|
-
gap: PADDING_GAP_ITEM,
|
|
27800
|
-
titleVariant: "body1",
|
|
27801
|
-
captionVariant: "caption",
|
|
27802
|
-
titleColor: theme.palette.grey[800],
|
|
27803
|
-
captionColor: theme.palette.grey[600],
|
|
27804
|
-
selectedAppId: currentApp?.path,
|
|
27805
|
-
onClickItem: async (app) => {
|
|
27806
|
-
await dispatch(
|
|
27807
|
-
ACTION_ACCOUNT.updateCurrentAccess(app.path)
|
|
27808
|
-
).unwrap();
|
|
27809
|
-
setActiveExpandMenu(null);
|
|
27810
|
-
onClose();
|
|
27811
|
-
}
|
|
27812
|
-
}
|
|
27813
|
-
)
|
|
27814
|
-
]
|
|
27815
|
-
}
|
|
27816
|
-
),
|
|
27817
|
-
/* @__PURE__ */ jsxs(
|
|
27818
|
-
Box,
|
|
27819
|
-
{
|
|
27820
|
-
sx: {
|
|
27821
|
-
gap: PADDING_GAP_ITEM,
|
|
27822
|
-
display: "flex",
|
|
27823
|
-
flexDirection: "column"
|
|
27824
|
-
},
|
|
27825
|
-
children: [
|
|
27826
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Platform Info" }),
|
|
27827
|
-
/* @__PURE__ */ jsx(
|
|
27828
|
-
AppGrid,
|
|
27829
|
-
{
|
|
27830
|
-
apps: allApps.filter(
|
|
27831
|
-
(app) => app.group === AppGroup.PLATFORM_AND_INFO
|
|
27832
|
-
),
|
|
27833
|
-
columns: 4,
|
|
27834
|
-
iconSize: 60,
|
|
27835
|
-
iconRadius: 5.5,
|
|
27836
|
-
gap: PADDING_GAP_ITEM,
|
|
27837
|
-
titleVariant: "body1",
|
|
27838
|
-
captionVariant: "caption",
|
|
27839
|
-
titleColor: theme.palette.grey[800],
|
|
27840
|
-
captionColor: theme.palette.grey[600],
|
|
27841
|
-
selectedAppId: currentApp?.path,
|
|
27842
|
-
onClickItem: async (app) => {
|
|
27843
|
-
await dispatch(
|
|
27844
|
-
ACTION_ACCOUNT.updateCurrentAccess(app.path)
|
|
27845
|
-
).unwrap();
|
|
27846
|
-
setActiveExpandMenu(null);
|
|
27847
|
-
onClose();
|
|
27848
|
-
}
|
|
27849
|
-
}
|
|
27850
|
-
)
|
|
27851
|
-
]
|
|
27852
|
-
}
|
|
27853
|
-
)
|
|
27788
|
+
},
|
|
27789
|
+
group
|
|
27790
|
+
))
|
|
27854
27791
|
]
|
|
27855
27792
|
}
|
|
27856
27793
|
)
|
|
@@ -28046,7 +27983,7 @@ const TooltipOnClickElement = ({
|
|
|
28046
27983
|
) })
|
|
28047
27984
|
);
|
|
28048
27985
|
};
|
|
28049
|
-
const SystemMonitorSidebarPart = ({}) => {
|
|
27986
|
+
const SystemMonitorSidebarPart = ({ position, blacklist }) => {
|
|
28050
27987
|
const { isSidebarOpen, openSidebar, closeSidebar } = useSidebarState();
|
|
28051
27988
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
28052
27989
|
/* @__PURE__ */ jsx(
|
|
@@ -28058,7 +27995,15 @@ const SystemMonitorSidebarPart = ({}) => {
|
|
|
28058
27995
|
sx: { width: MAP_SIZE.medium.width, height: MAP_SIZE.medium.height }
|
|
28059
27996
|
}
|
|
28060
27997
|
),
|
|
28061
|
-
/* @__PURE__ */ jsx(
|
|
27998
|
+
/* @__PURE__ */ jsx(
|
|
27999
|
+
AppsSidebar,
|
|
28000
|
+
{
|
|
28001
|
+
isOpen: isSidebarOpen,
|
|
28002
|
+
onClose: closeSidebar,
|
|
28003
|
+
position,
|
|
28004
|
+
blacklist
|
|
28005
|
+
}
|
|
28006
|
+
)
|
|
28062
28007
|
] });
|
|
28063
28008
|
};
|
|
28064
28009
|
const TypographyFilter = styled$2(Typography)(({ theme }) => ({
|