sevago-sso-fe 1.0.76 → 1.0.78
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 +63 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +63 -48
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -51,27 +51,27 @@ const APP_GROUP_COLOR = {
|
|
|
51
51
|
[
|
|
52
52
|
"Workflow Engine"
|
|
53
53
|
/* WORKFLOW_ENGINE */
|
|
54
|
-
]: "#
|
|
54
|
+
]: "linear-gradient(180deg, #3990FF 0%, #2662FF 100%)",
|
|
55
55
|
[
|
|
56
56
|
"HRM"
|
|
57
57
|
/* HRM */
|
|
58
|
-
]: "#
|
|
58
|
+
]: "linear-gradient(180deg, #09D47B 0%, #07554B 100%)",
|
|
59
59
|
[
|
|
60
60
|
"Platform & Info"
|
|
61
61
|
/* PLATFORM_AND_INFO */
|
|
62
|
-
]: "#
|
|
62
|
+
]: "linear-gradient(180deg, #FF9A56 0%, #FF6A43 100%)",
|
|
63
63
|
[
|
|
64
64
|
"B2B"
|
|
65
65
|
/* B2B */
|
|
66
|
-
]: "#EB6262",
|
|
66
|
+
]: "linear-gradient(180deg, #FF9A56 0%, #EB6262 100%)",
|
|
67
67
|
[
|
|
68
68
|
"Web"
|
|
69
69
|
/* CLIENT */
|
|
70
|
-
]: "#
|
|
70
|
+
]: "linear-gradient(180deg, #FF9A56 0%, #FF6A43 100%)",
|
|
71
71
|
[
|
|
72
72
|
"Khác"
|
|
73
73
|
/* OTHER */
|
|
74
|
-
]: "#
|
|
74
|
+
]: "linear-gradient(180deg, #A509D4 0%, #1B0755 100%)"
|
|
75
75
|
};
|
|
76
76
|
const SSO = {
|
|
77
77
|
local: "http://localhost:6000",
|
|
@@ -327,7 +327,7 @@ const APP_OBJ = {
|
|
|
327
327
|
},
|
|
328
328
|
// E-Catalogue
|
|
329
329
|
icon: sevagoIcon,
|
|
330
|
-
content: "
|
|
330
|
+
content: "E-Catalogue",
|
|
331
331
|
group: "B2B",
|
|
332
332
|
color: APP_GROUP_COLOR[
|
|
333
333
|
"B2B"
|
|
@@ -344,7 +344,7 @@ const APP_OBJ = {
|
|
|
344
344
|
},
|
|
345
345
|
// Landing page
|
|
346
346
|
icon: sevagoIcon,
|
|
347
|
-
content: "
|
|
347
|
+
content: "Landing page",
|
|
348
348
|
group: "Khác",
|
|
349
349
|
color: APP_GROUP_COLOR[
|
|
350
350
|
"Khác"
|
|
@@ -7198,8 +7198,10 @@ const AppGrid = ({
|
|
|
7198
7198
|
const start = page * pageSize;
|
|
7199
7199
|
const end = start + pageSize;
|
|
7200
7200
|
const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
|
|
7201
|
+
const placeholdersCount = Math.max(0, pageSize - visibleApps.length);
|
|
7202
|
+
const placeholderHeight = iconSize + 48;
|
|
7201
7203
|
return /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
|
|
7202
|
-
/* @__PURE__ */
|
|
7204
|
+
/* @__PURE__ */ jsxs(
|
|
7203
7205
|
Box,
|
|
7204
7206
|
{
|
|
7205
7207
|
sx: {
|
|
@@ -7207,48 +7209,61 @@ const AppGrid = ({
|
|
|
7207
7209
|
gridTemplateColumns: `repeat(${columns}, 1fr)`,
|
|
7208
7210
|
gap: gap2
|
|
7209
7211
|
},
|
|
7210
|
-
children:
|
|
7211
|
-
|
|
7212
|
-
|
|
7212
|
+
children: [
|
|
7213
|
+
visibleApps.map((app, index) => {
|
|
7214
|
+
return /* @__PURE__ */ jsxs(
|
|
7215
|
+
MotionBox,
|
|
7216
|
+
{
|
|
7217
|
+
preset: "staggerItem",
|
|
7218
|
+
index,
|
|
7219
|
+
hover: true,
|
|
7220
|
+
sx: {
|
|
7221
|
+
cursor: "pointer",
|
|
7222
|
+
display: "flex",
|
|
7223
|
+
flex: 1,
|
|
7224
|
+
alignItems: "center",
|
|
7225
|
+
flexDirection: "column"
|
|
7226
|
+
},
|
|
7227
|
+
onClick: () => onClickApp(app),
|
|
7228
|
+
children: [
|
|
7229
|
+
/* @__PURE__ */ jsx(
|
|
7230
|
+
StackRowAlignJustCenter,
|
|
7231
|
+
{
|
|
7232
|
+
sx: {
|
|
7233
|
+
width: iconSize,
|
|
7234
|
+
height: iconSize,
|
|
7235
|
+
borderRadius: iconRadius,
|
|
7236
|
+
mb: 1.5,
|
|
7237
|
+
background: app.color
|
|
7238
|
+
},
|
|
7239
|
+
children: /* @__PURE__ */ jsx(
|
|
7240
|
+
ImageElement,
|
|
7241
|
+
{
|
|
7242
|
+
sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
|
|
7243
|
+
url: app.icon,
|
|
7244
|
+
sizeType: ImageSizeType.SQUARE
|
|
7245
|
+
}
|
|
7246
|
+
)
|
|
7247
|
+
}
|
|
7248
|
+
),
|
|
7249
|
+
/* @__PURE__ */ jsx(Typography, { variant: titleVariant, sx: { color: titleColor ?? theme.palette.common.white }, children: app.content })
|
|
7250
|
+
]
|
|
7251
|
+
},
|
|
7252
|
+
index
|
|
7253
|
+
);
|
|
7254
|
+
}),
|
|
7255
|
+
placeholdersCount > 0 && Array.from({ length: placeholdersCount }).map((_, fillerIndex) => /* @__PURE__ */ jsx(
|
|
7256
|
+
Box,
|
|
7213
7257
|
{
|
|
7214
|
-
preset: "staggerItem",
|
|
7215
|
-
index,
|
|
7216
|
-
hover: true,
|
|
7217
7258
|
sx: {
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
flexDirection: "column"
|
|
7223
|
-
},
|
|
7224
|
-
onClick: () => onClickApp(app),
|
|
7225
|
-
children: [
|
|
7226
|
-
/* @__PURE__ */ jsx(
|
|
7227
|
-
StackRowAlignJustCenter,
|
|
7228
|
-
{
|
|
7229
|
-
sx: {
|
|
7230
|
-
width: iconSize,
|
|
7231
|
-
height: iconSize,
|
|
7232
|
-
borderRadius: iconRadius,
|
|
7233
|
-
mb: 1.5,
|
|
7234
|
-
background: app.color
|
|
7235
|
-
},
|
|
7236
|
-
children: /* @__PURE__ */ jsx(
|
|
7237
|
-
ImageElement,
|
|
7238
|
-
{
|
|
7239
|
-
sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
|
|
7240
|
-
url: app.icon,
|
|
7241
|
-
sizeType: ImageSizeType.SQUARE
|
|
7242
|
-
}
|
|
7243
|
-
)
|
|
7244
|
-
}
|
|
7245
|
-
),
|
|
7246
|
-
/* @__PURE__ */ jsx(Typography, { variant: titleVariant, sx: { color: titleColor ?? theme.palette.common.white }, children: app.content })
|
|
7247
|
-
]
|
|
7259
|
+
visibility: "hidden",
|
|
7260
|
+
width: 1,
|
|
7261
|
+
minHeight: placeholderHeight
|
|
7262
|
+
}
|
|
7248
7263
|
},
|
|
7249
|
-
|
|
7250
|
-
)
|
|
7251
|
-
|
|
7264
|
+
`placeholder-${fillerIndex}`
|
|
7265
|
+
))
|
|
7266
|
+
]
|
|
7252
7267
|
}
|
|
7253
7268
|
),
|
|
7254
7269
|
showPagination && totalPages > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
|