sevago-sso-fe 1.0.77 → 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 CHANGED
@@ -69,27 +69,27 @@ const APP_GROUP_COLOR = {
69
69
  [
70
70
  "Workflow Engine"
71
71
  /* WORKFLOW_ENGINE */
72
- ]: "#2E76FF",
72
+ ]: "linear-gradient(180deg, #3990FF 0%, #2662FF 100%)",
73
73
  [
74
74
  "HRM"
75
75
  /* HRM */
76
- ]: "#09A569",
76
+ ]: "linear-gradient(180deg, #09D47B 0%, #07554B 100%)",
77
77
  [
78
78
  "Platform & Info"
79
79
  /* PLATFORM_AND_INFO */
80
- ]: "#FF9454",
80
+ ]: "linear-gradient(180deg, #FF9A56 0%, #FF6A43 100%)",
81
81
  [
82
82
  "B2B"
83
83
  /* B2B */
84
- ]: "#EB6262",
84
+ ]: "linear-gradient(180deg, #FF9A56 0%, #EB6262 100%)",
85
85
  [
86
86
  "Web"
87
87
  /* CLIENT */
88
- ]: "#FF9454",
88
+ ]: "linear-gradient(180deg, #FF9A56 0%, #FF6A43 100%)",
89
89
  [
90
90
  "Khác"
91
91
  /* OTHER */
92
- ]: "#EB6262"
92
+ ]: "linear-gradient(180deg, #A509D4 0%, #1B0755 100%)"
93
93
  };
94
94
  const SSO = {
95
95
  local: "http://localhost:6000",
@@ -345,7 +345,7 @@ const APP_OBJ = {
345
345
  },
346
346
  // E-Catalogue
347
347
  icon: sevagoIcon,
348
- content: "Sevago - E-Catalogue",
348
+ content: "E-Catalogue",
349
349
  group: "B2B",
350
350
  color: APP_GROUP_COLOR[
351
351
  "B2B"
@@ -362,7 +362,7 @@ const APP_OBJ = {
362
362
  },
363
363
  // Landing page
364
364
  icon: sevagoIcon,
365
- content: "Sevago - Landing page",
365
+ content: "Landing page",
366
366
  group: "Khác",
367
367
  color: APP_GROUP_COLOR[
368
368
  "Khác"
@@ -7216,8 +7216,10 @@ const AppGrid = ({
7216
7216
  const start = page * pageSize;
7217
7217
  const end = start + pageSize;
7218
7218
  const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
7219
+ const placeholdersCount = Math.max(0, pageSize - visibleApps.length);
7220
+ const placeholderHeight = iconSize + 48;
7219
7221
  return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
7220
- /* @__PURE__ */ jsxRuntime.jsx(
7222
+ /* @__PURE__ */ jsxRuntime.jsxs(
7221
7223
  material.Box,
7222
7224
  {
7223
7225
  sx: {
@@ -7225,48 +7227,61 @@ const AppGrid = ({
7225
7227
  gridTemplateColumns: `repeat(${columns}, 1fr)`,
7226
7228
  gap: gap2
7227
7229
  },
7228
- children: visibleApps.map((app, index) => {
7229
- return /* @__PURE__ */ jsxRuntime.jsxs(
7230
- MotionBox,
7230
+ children: [
7231
+ visibleApps.map((app, index) => {
7232
+ return /* @__PURE__ */ jsxRuntime.jsxs(
7233
+ MotionBox,
7234
+ {
7235
+ preset: "staggerItem",
7236
+ index,
7237
+ hover: true,
7238
+ sx: {
7239
+ cursor: "pointer",
7240
+ display: "flex",
7241
+ flex: 1,
7242
+ alignItems: "center",
7243
+ flexDirection: "column"
7244
+ },
7245
+ onClick: () => onClickApp(app),
7246
+ children: [
7247
+ /* @__PURE__ */ jsxRuntime.jsx(
7248
+ StackRowAlignJustCenter,
7249
+ {
7250
+ sx: {
7251
+ width: iconSize,
7252
+ height: iconSize,
7253
+ borderRadius: iconRadius,
7254
+ mb: 1.5,
7255
+ background: app.color
7256
+ },
7257
+ children: /* @__PURE__ */ jsxRuntime.jsx(
7258
+ ImageElement,
7259
+ {
7260
+ sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
7261
+ url: app.icon,
7262
+ sizeType: ImageSizeType.SQUARE
7263
+ }
7264
+ )
7265
+ }
7266
+ ),
7267
+ /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: titleVariant, sx: { color: titleColor ?? theme.palette.common.white }, children: app.content })
7268
+ ]
7269
+ },
7270
+ index
7271
+ );
7272
+ }),
7273
+ placeholdersCount > 0 && Array.from({ length: placeholdersCount }).map((_, fillerIndex) => /* @__PURE__ */ jsxRuntime.jsx(
7274
+ material.Box,
7231
7275
  {
7232
- preset: "staggerItem",
7233
- index,
7234
- hover: true,
7235
7276
  sx: {
7236
- cursor: "pointer",
7237
- display: "flex",
7238
- flex: 1,
7239
- alignItems: "center",
7240
- flexDirection: "column"
7241
- },
7242
- onClick: () => onClickApp(app),
7243
- children: [
7244
- /* @__PURE__ */ jsxRuntime.jsx(
7245
- StackRowAlignJustCenter,
7246
- {
7247
- sx: {
7248
- width: iconSize,
7249
- height: iconSize,
7250
- borderRadius: iconRadius,
7251
- mb: 1.5,
7252
- background: app.color
7253
- },
7254
- children: /* @__PURE__ */ jsxRuntime.jsx(
7255
- ImageElement,
7256
- {
7257
- sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
7258
- url: app.icon,
7259
- sizeType: ImageSizeType.SQUARE
7260
- }
7261
- )
7262
- }
7263
- ),
7264
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: titleVariant, sx: { color: titleColor ?? theme.palette.common.white }, children: app.content })
7265
- ]
7277
+ visibility: "hidden",
7278
+ width: 1,
7279
+ minHeight: placeholderHeight
7280
+ }
7266
7281
  },
7267
- index
7268
- );
7269
- })
7282
+ `placeholder-${fillerIndex}`
7283
+ ))
7284
+ ]
7270
7285
  }
7271
7286
  ),
7272
7287
  showPagination && totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [