sevago-sso-fe 1.0.35 → 1.0.37
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
|
@@ -27656,7 +27656,8 @@ 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
|
}) => {
|
|
27661
27662
|
const theme = useTheme();
|
|
27662
27663
|
const navigate = useNavigate();
|
|
@@ -27666,6 +27667,16 @@ const AppsSidebar = ({
|
|
|
27666
27667
|
const { setActiveExpandMenu } = useSidebar();
|
|
27667
27668
|
const { palette } = useTheme();
|
|
27668
27669
|
if (!isOpen) return null;
|
|
27670
|
+
const displayApps = React__default.useMemo(() => {
|
|
27671
|
+
if (!blacklist || blacklist.length === 0) return allApps;
|
|
27672
|
+
const matched = allApps.filter(
|
|
27673
|
+
(a) => a.path ? blacklist.includes(a.path) : false
|
|
27674
|
+
);
|
|
27675
|
+
return matched.length > 0 ? matched : allApps;
|
|
27676
|
+
}, [allApps, blacklist]);
|
|
27677
|
+
const groups = React__default.useMemo(() => {
|
|
27678
|
+
return Array.from(new Set(displayApps.map((v) => v.group)));
|
|
27679
|
+
}, [displayApps]);
|
|
27669
27680
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
27670
27681
|
/* @__PURE__ */ jsx(
|
|
27671
27682
|
Box,
|
|
@@ -27742,43 +27753,7 @@ const AppsSidebar = ({
|
|
|
27742
27753
|
]
|
|
27743
27754
|
}
|
|
27744
27755
|
),
|
|
27745
|
-
/* @__PURE__ */ jsxs(
|
|
27746
|
-
Box,
|
|
27747
|
-
{
|
|
27748
|
-
sx: {
|
|
27749
|
-
gap: PADDING_GAP_ITEM,
|
|
27750
|
-
display: "flex",
|
|
27751
|
-
flexDirection: "column"
|
|
27752
|
-
},
|
|
27753
|
-
children: [
|
|
27754
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Workflow Engine" }),
|
|
27755
|
-
/* @__PURE__ */ jsx(
|
|
27756
|
-
AppGrid,
|
|
27757
|
-
{
|
|
27758
|
-
apps: allApps.filter(
|
|
27759
|
-
(app) => app.group === AppGroup.WORKFLOW_ENGINE
|
|
27760
|
-
),
|
|
27761
|
-
columns: 4,
|
|
27762
|
-
iconSize: 60,
|
|
27763
|
-
iconRadius: 5.5,
|
|
27764
|
-
gap: PADDING_GAP_ITEM,
|
|
27765
|
-
titleVariant: "body1",
|
|
27766
|
-
titleColor: theme.palette.grey[800],
|
|
27767
|
-
captionColor: theme.palette.grey[600],
|
|
27768
|
-
selectedAppId: currentApp?.path,
|
|
27769
|
-
onClickItem: async (app) => {
|
|
27770
|
-
await dispatch(
|
|
27771
|
-
ACTION_ACCOUNT.updateCurrentAccess(app.path)
|
|
27772
|
-
).unwrap();
|
|
27773
|
-
setActiveExpandMenu(null);
|
|
27774
|
-
onClose();
|
|
27775
|
-
}
|
|
27776
|
-
}
|
|
27777
|
-
)
|
|
27778
|
-
]
|
|
27779
|
-
}
|
|
27780
|
-
),
|
|
27781
|
-
/* @__PURE__ */ jsxs(
|
|
27756
|
+
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
27782
27757
|
Box,
|
|
27783
27758
|
{
|
|
27784
27759
|
sx: {
|
|
@@ -27787,16 +27762,17 @@ const AppsSidebar = ({
|
|
|
27787
27762
|
flexDirection: "column"
|
|
27788
27763
|
},
|
|
27789
27764
|
children: [
|
|
27790
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "
|
|
27765
|
+
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: group === AppGroup.PLATFORM_AND_INFO ? "Platform & Info" : group }),
|
|
27791
27766
|
/* @__PURE__ */ jsx(
|
|
27792
27767
|
AppGrid,
|
|
27793
27768
|
{
|
|
27794
|
-
apps:
|
|
27769
|
+
apps: displayApps.filter((app) => app.group === group),
|
|
27795
27770
|
columns: 4,
|
|
27796
27771
|
iconSize: 60,
|
|
27797
27772
|
iconRadius: 5.5,
|
|
27798
27773
|
gap: PADDING_GAP_ITEM,
|
|
27799
27774
|
titleVariant: "body1",
|
|
27775
|
+
captionVariant: "caption",
|
|
27800
27776
|
titleColor: theme.palette.grey[800],
|
|
27801
27777
|
captionColor: theme.palette.grey[600],
|
|
27802
27778
|
selectedAppId: currentApp?.path,
|
|
@@ -27810,44 +27786,9 @@ const AppsSidebar = ({
|
|
|
27810
27786
|
}
|
|
27811
27787
|
)
|
|
27812
27788
|
]
|
|
27813
|
-
}
|
|
27814
|
-
|
|
27815
|
-
|
|
27816
|
-
Box,
|
|
27817
|
-
{
|
|
27818
|
-
sx: {
|
|
27819
|
-
gap: PADDING_GAP_ITEM,
|
|
27820
|
-
display: "flex",
|
|
27821
|
-
flexDirection: "column"
|
|
27822
|
-
},
|
|
27823
|
-
children: [
|
|
27824
|
-
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Platform Info" }),
|
|
27825
|
-
/* @__PURE__ */ jsx(
|
|
27826
|
-
AppGrid,
|
|
27827
|
-
{
|
|
27828
|
-
apps: allApps.filter(
|
|
27829
|
-
(app) => app.group === AppGroup.PLATFORM_AND_INFO
|
|
27830
|
-
),
|
|
27831
|
-
columns: 4,
|
|
27832
|
-
iconSize: 60,
|
|
27833
|
-
iconRadius: 5.5,
|
|
27834
|
-
gap: PADDING_GAP_ITEM,
|
|
27835
|
-
titleVariant: "body1",
|
|
27836
|
-
titleColor: theme.palette.grey[800],
|
|
27837
|
-
captionColor: theme.palette.grey[600],
|
|
27838
|
-
selectedAppId: currentApp?.path,
|
|
27839
|
-
onClickItem: async (app) => {
|
|
27840
|
-
await dispatch(
|
|
27841
|
-
ACTION_ACCOUNT.updateCurrentAccess(app.path)
|
|
27842
|
-
).unwrap();
|
|
27843
|
-
setActiveExpandMenu(null);
|
|
27844
|
-
onClose();
|
|
27845
|
-
}
|
|
27846
|
-
}
|
|
27847
|
-
)
|
|
27848
|
-
]
|
|
27849
|
-
}
|
|
27850
|
-
)
|
|
27789
|
+
},
|
|
27790
|
+
group
|
|
27791
|
+
))
|
|
27851
27792
|
]
|
|
27852
27793
|
}
|
|
27853
27794
|
)
|