sevago-library 1.3.2 → 1.3.4
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +33 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +33 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/logo/logo.component.d.ts +1 -0
- package/dist/src/components/sidebar/apps-sidebar.component.d.ts +1 -0
- package/dist/src/components/sidebar/system-monitor-sidebar.part.d.ts +1 -0
- package/dist/src/components/system-monitor/system-monitor.screen.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -33338,7 +33338,7 @@ const TypographyInfoRow = ({
|
|
|
33338
33338
|
label,
|
|
33339
33339
|
":"
|
|
33340
33340
|
] }),
|
|
33341
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children:
|
|
33341
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
|
|
33342
33342
|
]
|
|
33343
33343
|
}
|
|
33344
33344
|
);
|
|
@@ -77400,9 +77400,10 @@ const LogoComponent = ({
|
|
|
77400
77400
|
env,
|
|
77401
77401
|
logoName = "logoMain",
|
|
77402
77402
|
height: height2 = HEIGHT_LOGO_DEFAULT,
|
|
77403
|
-
sx = {}
|
|
77403
|
+
sx = {},
|
|
77404
|
+
isLongSubDomain = false
|
|
77404
77405
|
}) => {
|
|
77405
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LinkElement, { href: SSO[env], children: /* @__PURE__ */ jsxRuntime.jsx(ImageElement, { url: ICONS[logoName], sx: { height: height2, borderRadius: "unset", width: "auto", ...sx } }) });
|
|
77406
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LinkElement, { href: isLongSubDomain ? SSO[env].replace("dev.", "develop.").replace("sta.", "staging.") : SSO[env], children: /* @__PURE__ */ jsxRuntime.jsx(ImageElement, { url: ICONS[logoName], sx: { height: height2, borderRadius: "unset", width: "auto", ...sx } }) });
|
|
77406
77407
|
};
|
|
77407
77408
|
const NoteComponent = ({ content, contentHref, href, type = "info" }) => {
|
|
77408
77409
|
const { palette } = material.useTheme();
|
|
@@ -78114,13 +78115,18 @@ const AppsSidebar = ({
|
|
|
78114
78115
|
position = "left",
|
|
78115
78116
|
blacklist = [],
|
|
78116
78117
|
env,
|
|
78117
|
-
onClickApp
|
|
78118
|
+
onClickApp,
|
|
78119
|
+
isLongSubDomain = false
|
|
78118
78120
|
}) => {
|
|
78119
78121
|
if (!isOpen) return null;
|
|
78120
78122
|
const appsGroupObj = Object.keys(APP_OBJ).reduce(
|
|
78121
78123
|
(r2, key) => {
|
|
78122
78124
|
if (blacklist.includes(key)) return r2;
|
|
78123
78125
|
const e = APP_OBJ[key];
|
|
78126
|
+
if (isLongSubDomain) {
|
|
78127
|
+
e.path.develop = e.path.develop.replace("dev.", "develop.");
|
|
78128
|
+
e.path.staging = e.path.staging.replace("sta.", "staging.");
|
|
78129
|
+
}
|
|
78124
78130
|
if (r2[e.group]) r2[e.group].push(e);
|
|
78125
78131
|
else r2[e.group] = [e];
|
|
78126
78132
|
return r2;
|
|
@@ -78162,7 +78168,13 @@ const AppsSidebar = ({
|
|
|
78162
78168
|
children: [
|
|
78163
78169
|
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenterJustBetween, { children: [
|
|
78164
78170
|
/* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: "close", onClick: onClose }),
|
|
78165
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
78171
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
78172
|
+
IconElement,
|
|
78173
|
+
{
|
|
78174
|
+
icon: "home",
|
|
78175
|
+
onClick: () => window.location.href = isLongSubDomain ? SSO[env].replace("dev.", "develop.").replace("sta.", "staging.") : SSO[env]
|
|
78176
|
+
}
|
|
78177
|
+
)
|
|
78166
78178
|
] }),
|
|
78167
78179
|
Object.keys(appsGroupObj).map((group) => /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { children: [
|
|
78168
78180
|
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle2", children: group === AppGroup.PLATFORM_AND_INFO ? "Platform & Info" : group }),
|
|
@@ -78193,7 +78205,8 @@ const SystemMonitorSidebarPart = ({
|
|
|
78193
78205
|
onClickApp,
|
|
78194
78206
|
showNameApps,
|
|
78195
78207
|
showIconApps,
|
|
78196
|
-
direction = "row"
|
|
78208
|
+
direction = "row",
|
|
78209
|
+
isLongSubDomain = false
|
|
78197
78210
|
}) => {
|
|
78198
78211
|
const [open2, setOpen] = React.useState(false);
|
|
78199
78212
|
const app = React.useMemo(() => {
|
|
@@ -78220,12 +78233,18 @@ const SystemMonitorSidebarPart = ({
|
|
|
78220
78233
|
position,
|
|
78221
78234
|
blacklist,
|
|
78222
78235
|
env,
|
|
78223
|
-
onClickApp
|
|
78236
|
+
onClickApp,
|
|
78237
|
+
isLongSubDomain
|
|
78224
78238
|
}
|
|
78225
78239
|
)
|
|
78226
78240
|
] });
|
|
78227
78241
|
};
|
|
78228
|
-
const SystemMonitorScreen = ({
|
|
78242
|
+
const SystemMonitorScreen = ({
|
|
78243
|
+
blacklist,
|
|
78244
|
+
onClickApp,
|
|
78245
|
+
sx = {},
|
|
78246
|
+
isLongSubDomain = false
|
|
78247
|
+
}) => {
|
|
78229
78248
|
const theme = useTheme();
|
|
78230
78249
|
const [tab, setTab] = React.useState(AppGroup.ALL);
|
|
78231
78250
|
const getAppsForGroup = (group) => Object.keys(APP_OBJ).filter((key) => {
|
|
@@ -78235,6 +78254,12 @@ const SystemMonitorScreen = ({ blacklist, onClickApp, sx = {} }) => {
|
|
|
78235
78254
|
return !isBlacklisted && isInSelectedGroup;
|
|
78236
78255
|
}).map((key) => APP_OBJ[key]);
|
|
78237
78256
|
const appsForCurrentTab = getAppsForGroup(tab);
|
|
78257
|
+
if (isLongSubDomain) {
|
|
78258
|
+
appsForCurrentTab.forEach((e) => {
|
|
78259
|
+
e.path.develop = e.path.develop.replace("dev.", "develop.");
|
|
78260
|
+
e.path.staging = e.path.staging.replace("sta.", "staging.");
|
|
78261
|
+
});
|
|
78262
|
+
}
|
|
78238
78263
|
return /* @__PURE__ */ jsxRuntime.jsxs(StackAlignCenter, { preset: "fadeInUp", component: MotionBox, sx: { padding: "150px", gap: 3, width: "100%", ...sx }, children: [
|
|
78239
78264
|
/* @__PURE__ */ jsxRuntime.jsx(StackRow, { children: Object.values(AppGroup).map((g) => {
|
|
78240
78265
|
const appsForGroup = getAppsForGroup(g);
|