@hitachivantara/app-shell-ui 1.9.1 → 1.10.1
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/esm/components/AppShell/AppShell.js +1 -1
- package/dist/esm/components/AppShellProvider/AppShellProvider.js +64 -36
- package/dist/esm/components/AppShellRoutes/AppShellRoutes.js +60 -36
- package/dist/esm/components/AppShellViewProvider/AppShellViewProvider.js +3 -8
- package/dist/esm/components/CustomHooksInitializer/CustomHooksInitializer.js +2 -2
- package/dist/esm/components/GlobalStyles/GlobalStyles.js +13 -15
- package/dist/esm/components/IconUiKit/IconUiKit.js +6 -8
- package/dist/esm/components/IconUiKit/index.js +2 -2
- package/dist/esm/components/SnackbarProvider/SnackbarProvider.js +16 -14
- package/dist/esm/components/hoc/withClickAwayListener.js +6 -3
- package/dist/esm/components/hoc/withGlobalProvider.js +23 -11
- package/dist/esm/components/layout/BrandLogo/BrandLogo.js +4 -8
- package/dist/esm/components/layout/BrandLogo/Logos/Hitachi.js +21 -2
- package/dist/esm/components/layout/BrandLogo/Logos/Lumada.js +39 -7
- package/dist/esm/components/layout/BrandLogo/Logos/Pentaho.js +21 -2
- package/dist/esm/components/layout/Header/Header.js +53 -37
- package/dist/esm/components/layout/Header/HeaderActions/{DynamicAction/DynamicAction.js → DynamicAction.js} +12 -15
- package/dist/esm/components/layout/Header/HeaderActions/HeaderActions.js +15 -8
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/AppSwitcherToggle.js +42 -28
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/styles.js +3 -8
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/{ColorModeSwitcher/ColorModeSwitcher.js → ColorModeSwitcher.js} +12 -13
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.js +17 -17
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/InternalAction/InternalAction.js +28 -25
- package/dist/esm/components/layout/Header/styles.js +6 -17
- package/dist/esm/components/layout/Loading/Loading.js +2 -4
- package/dist/esm/components/layout/Loading/styles.js +8 -30
- package/dist/esm/components/layout/Main/Main.js +32 -22
- package/dist/esm/components/layout/Main/styles.js +8 -30
- package/dist/esm/components/layout/VerticalNavigation/NavigationCollapse.js +23 -14
- package/dist/esm/components/layout/VerticalNavigation/NavigationHeader.js +2 -4
- package/dist/esm/components/layout/VerticalNavigation/VerticalNavigation.js +61 -38
- package/dist/esm/components/layout/VerticalNavigation/styles.js +24 -48
- package/dist/esm/{lib/hooks → hooks}/useClearLocationState.js +6 -10
- package/dist/esm/hooks/useCustomEventListener.js +31 -0
- package/dist/esm/{lib/hooks → hooks}/useLocalStorage.js +1 -4
- package/dist/esm/{lib/hooks → hooks}/useNavigationMenuItems.js +15 -20
- package/dist/esm/{lib/hooks → hooks}/useNotificationsEventListener.js +5 -16
- package/dist/esm/{lib/hooks → hooks}/useThemeEventListener.js +4 -15
- package/dist/esm/{lib/i18n → i18n}/index.js +8 -6
- package/dist/esm/i18n/localization/en.json.js +17 -0
- package/dist/esm/i18n/localization/pt.json.js +17 -0
- package/dist/esm/pages/ErrorPage/ErrorPage.js +27 -17
- package/dist/esm/pages/ErrorPage/Footer.js +60 -0
- package/dist/esm/pages/ErrorPage/styles.js +17 -40
- package/dist/esm/pages/GenericError/GenericError.js +14 -11
- package/dist/esm/pages/LoadingPage/LoadingPage.js +11 -7
- package/dist/esm/pages/LoadingPage/styles.js +10 -14
- package/dist/esm/pages/NotFound/NotFound.js +11 -7
- package/dist/esm/pages/Root/Root.js +7 -9
- package/dist/esm/providers/BannerProvider.js +67 -49
- package/dist/esm/providers/LayoutProvider.js +21 -12
- package/dist/esm/providers/NavigationProvider.js +48 -34
- package/dist/esm/utils/CombinedProviders.js +23 -0
- package/dist/esm/{lib/utils → utils}/navigationUtil.js +5 -15
- package/dist/types/index.d.ts +27 -0
- package/package.json +37 -48
- package/LICENSE +0 -201
- package/dist/dts/index.d.ts +0 -9
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/index.js +0 -4
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/index.js +0 -4
- package/dist/esm/lib/hooks/useCustomEventListener.js +0 -23
- package/dist/esm/lib/i18n/localization/en.json.js +0 -59
- package/dist/esm/lib/i18n/localization/pt.json.js +0 -59
- package/dist/esm/lib/utils/CombinedProviders.js +0 -22
- package/dist/esm/lib/utils/textUtil.js +0 -6
- package/dist/esm/pages/ErrorPage/Footer/Footer.js +0 -53
- package/dist/esm/pages/ErrorPage/Footer/styles.js +0 -22
- package/dist/esm/providers/hooks/useBannerContext.js +0 -12
- package/dist/esm/providers/hooks/useLayoutContext.js +0 -12
- package/dist/esm/providers/hooks/useNavigationContext.js +0 -12
- /package/dist/esm/{lib/hooks → hooks}/useResizeObserver.js +0 -0
- /package/dist/esm/{lib/utils → utils}/basePathUtils.js +0 -0
- /package/dist/esm/{lib/utils → utils}/documentUtil.js +0 -0
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
import { useTheme } from "@hitachivantara/uikit-react-core";
|
|
2
2
|
import useLocalStorage from "./useLocalStorage.js";
|
|
3
3
|
const useThemeEventListener = () => {
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
changeTheme,
|
|
7
|
-
selectedMode,
|
|
8
|
-
colorModes
|
|
9
|
-
} = useTheme();
|
|
10
|
-
const {
|
|
11
|
-
setStoredValue
|
|
12
|
-
} = useLocalStorage("COLOR_MODE");
|
|
4
|
+
const { selectedTheme, changeTheme, selectedMode, colorModes } = useTheme();
|
|
5
|
+
const { setStoredValue } = useLocalStorage("COLOR_MODE");
|
|
13
6
|
const getNextColorMode = () => {
|
|
14
7
|
const index = colorModes.indexOf(selectedMode);
|
|
15
8
|
const nextIndex = (index + 1) % colorModes.length;
|
|
16
9
|
return colorModes[nextIndex];
|
|
17
10
|
};
|
|
18
11
|
const handleThemeEvent = (event) => {
|
|
19
|
-
const {
|
|
20
|
-
colorMode
|
|
21
|
-
} = event.detail;
|
|
12
|
+
const { colorMode } = event.detail;
|
|
22
13
|
const newColorMode = !colorMode || colorModes.indexOf(colorMode) === -1 ? getNextColorMode() : colorMode;
|
|
23
14
|
changeTheme(selectedTheme, newColorMode);
|
|
24
15
|
setStoredValue(newColorMode);
|
|
25
16
|
};
|
|
26
|
-
return {
|
|
27
|
-
handleThemeEvent
|
|
28
|
-
};
|
|
17
|
+
return { handleThemeEvent };
|
|
29
18
|
};
|
|
30
19
|
export {
|
|
31
20
|
useThemeEventListener as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import i18next from "i18next";
|
|
2
1
|
import { initReactI18next } from "react-i18next";
|
|
2
|
+
import { createInstance } from "i18next";
|
|
3
3
|
import LanguageDetector from "i18next-browser-languagedetector";
|
|
4
4
|
import en from "./localization/en.json.js";
|
|
5
5
|
import pt from "./localization/pt.json.js";
|
|
@@ -7,17 +7,19 @@ const APP_SHELL_NAMESPACE = "appShell";
|
|
|
7
7
|
const addResourceBundles = (i18nInstance, bundles, namespace) => {
|
|
8
8
|
Object.entries(bundles).forEach((entry) => {
|
|
9
9
|
const [key, value] = entry;
|
|
10
|
-
i18nInstance.addResourceBundle(
|
|
10
|
+
i18nInstance.addResourceBundle(
|
|
11
|
+
key,
|
|
12
|
+
namespace ?? APP_SHELL_NAMESPACE,
|
|
13
|
+
value
|
|
14
|
+
);
|
|
11
15
|
});
|
|
12
16
|
};
|
|
13
17
|
const createI18Next = () => {
|
|
14
|
-
const newInstance =
|
|
18
|
+
const newInstance = createInstance();
|
|
15
19
|
newInstance.use(LanguageDetector).use(initReactI18next).init({
|
|
16
20
|
defaultNS: APP_SHELL_NAMESPACE,
|
|
17
21
|
fallbackLng: "en",
|
|
18
|
-
detection: {
|
|
19
|
-
order: ["navigator"]
|
|
20
|
-
},
|
|
22
|
+
detection: { order: ["navigator"] },
|
|
21
23
|
resources: {}
|
|
22
24
|
});
|
|
23
25
|
newInstance.addResourceBundle("en", APP_SHELL_NAMESPACE, en);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const errors = { "missing": { "configuration": "Missing or incomplete configuration." }, "notFound": { "code": "404", "title": "Oops! Seems like the page is lost in space.", "image_description": "404 Page not found" }, "genericError": { "code": "500", "title": "Shoot! We have a problem! Be back soon.", "image_description": "500 Generic error" }, "footer": "Click <navigate>here</navigate> to go back to the {{label}} page." };
|
|
2
|
+
const header = { "helpUrl": { "documentationLink": "Documentation link" }, "appSwitcher": { "title": "Apps", "ariaLabel": "App Switcher Panel" }, "navigation": { "openNavigationPanel": "Open navigation panel", "closeNavigationPanel": "Close navigation panel" }, "colorModeSwitcher": { "ariaLabel": "Switch color mode" } };
|
|
3
|
+
const verticalNavigation = { "ariaLabelNavigationTree": "Vertical navigation", "ariaLabelCollapse": "Collapse vertical navigation", "ariaLabelExpand": "Expand vertical navigation", "title": "Menu", "ariaLabelSliderForwardButton": "Navigate to submenu", "ariaLabelHeaderBackButton": "Back", "collapseAction": "Collapse Menu" };
|
|
4
|
+
const notifications = { "banner": { "close": "Close banner" } };
|
|
5
|
+
const en = {
|
|
6
|
+
errors,
|
|
7
|
+
header,
|
|
8
|
+
verticalNavigation,
|
|
9
|
+
notifications
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
en as default,
|
|
13
|
+
errors,
|
|
14
|
+
header,
|
|
15
|
+
notifications,
|
|
16
|
+
verticalNavigation
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const errors = { "missing": { "configuration": "Configuração em falta ou incompleta." }, "notFound": { "code": "404", "title": "Oops! Parece que a página está perdida no espaço.", "image_description": "404 Página não encontrada" }, "genericError": { "code": "500", "title": "Bolas! Temos um problema! Estaremos de volta em breve.", "image_description": "500 Erro genérico" }, "footer": "Carregue <navigate>aqui</navigate> para voltar à página {{label}}." };
|
|
2
|
+
const header = { "helpUrl": { "documentationLink": "Link de documentação" }, "appSwitcher": { "title": "Aplicações", "ariaLabel": "Painel do App Switcher" }, "navigation": { "openNavigationPanel": "Abrir painel de navegação", "closeNavigationPanel": "Fechar painel de navegação" }, "colorModeSwitcher": { "ariaLabel": "Alternar modo de cor" } };
|
|
3
|
+
const verticalNavigation = { "ariaLabelNavigationTree": "Navegação vertical", "ariaLabelCollapse": "Recolher navegação vertical", "ariaLabelExpand": "Expandir navegação vertical", "title": "Menu", "ariaLabelSliderForwardButton": "Navegar para submenu", "ariaLabelHeaderBackButton": "Voltar", "collapseAction": "Fechar" };
|
|
4
|
+
const notifications = { "banner": { "close": "Fechar barra de notificação" } };
|
|
5
|
+
const pt = {
|
|
6
|
+
errors,
|
|
7
|
+
header,
|
|
8
|
+
verticalNavigation,
|
|
9
|
+
notifications
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
pt as default,
|
|
13
|
+
errors,
|
|
14
|
+
header,
|
|
15
|
+
notifications,
|
|
16
|
+
verticalNavigation
|
|
17
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs, jsx } from "
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HvTypography } from "@hitachivantara/uikit-react-core";
|
|
3
|
-
import useNavigationContext from "../../providers/
|
|
3
|
+
import { useNavigationContext } from "../../providers/NavigationProvider.js";
|
|
4
|
+
import { Footer } from "./Footer.js";
|
|
4
5
|
import { StyledErrorPage, StyledTitleWrapper, StyledImageWrapper } from "./styles.js";
|
|
5
|
-
import Footer from "./Footer/Footer.js";
|
|
6
6
|
const ErrorPage = ({
|
|
7
7
|
code = void 0,
|
|
8
8
|
title,
|
|
@@ -11,20 +11,30 @@ const ErrorPage = ({
|
|
|
11
11
|
fullPage = false,
|
|
12
12
|
includeFooter = true
|
|
13
13
|
}) => {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
const { isCompactMode, showHeaderSubMenu } = useNavigationContext();
|
|
15
|
+
return /* @__PURE__ */ jsxs(
|
|
16
|
+
StyledErrorPage,
|
|
17
|
+
{
|
|
18
|
+
showHeaderSubMenu,
|
|
19
|
+
isCompactMode,
|
|
20
|
+
fullPage,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsxs(StyledTitleWrapper, { children: [
|
|
23
|
+
code && /* @__PURE__ */ jsx(HvTypography, { variant: "title1", children: code }),
|
|
24
|
+
/* @__PURE__ */ jsx(HvTypography, { variant: isCompactMode ? "xsTitle" : "display", children: title })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
StyledImageWrapper,
|
|
28
|
+
{
|
|
29
|
+
style: { backgroundImage: background },
|
|
30
|
+
role: "img",
|
|
31
|
+
"aria-label": backgroundLabel
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
includeFooter && /* @__PURE__ */ jsx(Footer, {})
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
28
38
|
};
|
|
29
39
|
export {
|
|
30
40
|
ErrorPage as default
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useErrorBoundary } from "react-error-boundary";
|
|
3
|
+
import { useTranslation, Trans } from "react-i18next";
|
|
4
|
+
import styled from "@emotion/styled";
|
|
5
|
+
import { useHvNavigation } from "@hitachivantara/app-shell-navigation";
|
|
6
|
+
import { useHvAppShellConfig } from "@hitachivantara/app-shell-shared";
|
|
7
|
+
import { HvTypography } from "@hitachivantara/uikit-react-core";
|
|
8
|
+
import { useNavigationContext } from "../../providers/NavigationProvider.js";
|
|
9
|
+
const StyledFooterWrapper = styled("div")({
|
|
10
|
+
textAlign: "center"
|
|
11
|
+
});
|
|
12
|
+
const Footer = () => {
|
|
13
|
+
const { t } = useTranslation();
|
|
14
|
+
const { navigate } = useHvNavigation();
|
|
15
|
+
const { navigationMode } = useHvAppShellConfig();
|
|
16
|
+
const { resetBoundary } = useErrorBoundary();
|
|
17
|
+
const { items, verticalNavigationItems, isCompactMode } = useNavigationContext();
|
|
18
|
+
const getFirstMenuItem = () => {
|
|
19
|
+
if (!isCompactMode && navigationMode !== "ONLY_LEFT") {
|
|
20
|
+
return items.length > 0 ? items[0] : null;
|
|
21
|
+
}
|
|
22
|
+
return verticalNavigationItems.length > 0 ? verticalNavigationItems[0] : null;
|
|
23
|
+
};
|
|
24
|
+
const firstMenuItem = getFirstMenuItem();
|
|
25
|
+
const handleClick = (event) => {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
if (firstMenuItem?.href) {
|
|
28
|
+
resetBoundary();
|
|
29
|
+
let path = firstMenuItem.href;
|
|
30
|
+
if (path.startsWith(".")) {
|
|
31
|
+
path = path.substring(1);
|
|
32
|
+
}
|
|
33
|
+
navigate(path);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
return firstMenuItem && /* @__PURE__ */ jsx(StyledFooterWrapper, { children: /* @__PURE__ */ jsx(HvTypography, { variant: "body", children: /* @__PURE__ */ jsx(
|
|
37
|
+
Trans,
|
|
38
|
+
{
|
|
39
|
+
t,
|
|
40
|
+
i18nKey: "errors.footer",
|
|
41
|
+
values: { label: firstMenuItem.label },
|
|
42
|
+
components: {
|
|
43
|
+
navigate: /* @__PURE__ */ jsx(
|
|
44
|
+
HvTypography,
|
|
45
|
+
{
|
|
46
|
+
link: true,
|
|
47
|
+
component: "a",
|
|
48
|
+
href: firstMenuItem.href,
|
|
49
|
+
variant: "label",
|
|
50
|
+
onClick: handleClick,
|
|
51
|
+
children: firstMenuItem.label
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
) }) });
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
Footer
|
|
60
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
2
|
import { theme } from "@hitachivantara/uikit-react-core";
|
|
3
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
4
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
5
|
-
}
|
|
6
3
|
const calcHeight = ({
|
|
7
4
|
showHeaderSubMenu,
|
|
8
5
|
isCompactMode,
|
|
@@ -16,46 +13,26 @@ const calcHeight = ({
|
|
|
16
13
|
}
|
|
17
14
|
return `calc(100vh - (${theme.header.height} + ${theme.space.lg} + ${theme.space.lg}))`;
|
|
18
15
|
};
|
|
19
|
-
const StyledErrorPage =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
const StyledErrorPage = styled("div")(
|
|
17
|
+
{
|
|
18
|
+
flex: 1,
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
marginTop: theme.space.lg
|
|
22
|
+
},
|
|
23
|
+
(props) => ({ height: calcHeight(props) })
|
|
24
|
+
);
|
|
25
|
+
const StyledImageWrapper = styled("div")({
|
|
25
26
|
flex: 1,
|
|
26
27
|
display: "flex",
|
|
28
|
+
backgroundSize: "contain",
|
|
29
|
+
backgroundPosition: "center center",
|
|
30
|
+
backgroundRepeat: "no-repeat",
|
|
27
31
|
flexDirection: "column",
|
|
28
|
-
|
|
29
|
-
}, (props) => ({
|
|
30
|
-
height: calcHeight(props)
|
|
31
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9wYWdlcy9FcnJvclBhZ2Uv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ExldmVsSGVpZ2h0fXB4ICsgJHt0aGVtZS5zcGFjZS5sZ30gKyAke3RoZW1lLnNwYWNlLmxnfSkpYDtcclxuICB9XHJcbiAgcmV0dXJuIGBjYWxjKDEwMHZoIC0gKCR7dGhlbWUuaGVhZGVyLmhlaWdodH0gKyAke3RoZW1lLnNwYWNlLmxnfSArICR7dGhlbWUuc3BhY2UubGd9KSlgO1xyXG59O1xyXG5cclxuZXhwb3J0IGNvbnN0IFN0eWxlZEVycm9yUGFnZSA9IHN0eWxlZChcImRpdlwiKTxTdHlsZWRFcnJvclBhZ2VQcm9wcz4oXHJcbiAge1xyXG4gICAgZmxleDogMSxcclxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxyXG4gICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcclxuICAgIG1hcmdpblRvcDogdGhlbWUuc3BhY2UubGdcclxuICB9LFxyXG4gIHByb3BzID0+ICh7IGhlaWdodDogY2FsY0hlaWdodChwcm9wcykgfSlcclxuKTtcclxuXHJcbmV4cG9ydCBjb25zdCBTdHlsZWRJbWFnZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIikoe1xyXG4gIGZsZXg6IDEsXHJcbiAgZGlzcGxheTogXCJmbGV4XCIsXHJcbiAgYmFja2dyb3VuZFNpemU6IFwiY29udGFpblwiLFxyXG4gIGJhY2tncm91bmRQb3NpdGlvbjogXCJjZW50ZXIgY2VudGVyXCIsXHJcbiAgYmFja2dyb3VuZFJlcGVhdDogXCJuby1yZXBlYXRcIixcclxuICBmbGV4RGlyZWN0aW9uOiBcImNvbHVtblwiLFxyXG4gIGhlaWdodDogXCIxMDAlXCJcclxufSk7XHJcblxyXG5leHBvcnQgY29uc3QgU3R5bGVkVGl0bGVXcmFwcGVyID0gc3R5bGVkKFwiZGl2XCIpKHtcclxuICB0ZXh0QWxpZ246IFwiY2VudGVyXCJcclxufSk7XHJcbiJdfQ== */");
|
|
32
|
-
const StyledImageWrapper = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
|
|
33
|
-
target: "e18ahwyt1"
|
|
34
|
-
} : {
|
|
35
|
-
target: "e18ahwyt1",
|
|
36
|
-
label: "StyledImageWrapper"
|
|
37
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
38
|
-
name: "i7bb86",
|
|
39
|
-
styles: "flex:1;display:flex;background-size:contain;background-position:center center;background-repeat:no-repeat;flex-direction:column;height:100%"
|
|
40
|
-
} : {
|
|
41
|
-
name: "i7bb86",
|
|
42
|
-
styles: "flex:1;display:flex;background-size:contain;background-position:center center;background-repeat:no-repeat;flex-direction:column;height:100%",
|
|
43
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9wYWdlcy9FcnJvclBhZ2Uvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9Da0MiLCJmaWxlIjoiL19fdy9odi1hcHAtc2hlbGwvaHYtYXBwLXNoZWxsL2NsaWVudC9wYWNrYWdlcy9hcHAtc2hlbGwtdWkvc3JjL3BhZ2VzL0Vycm9yUGFnZS9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcclxuXHJcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSBcIkBoaXRhY2hpdmFudGFyYS91aWtpdC1yZWFjdC1jb3JlXCI7XHJcblxyXG5pbnRlcmZhY2UgU3R5bGVkRXJyb3JQYWdlUHJvcHMge1xyXG4gIHNob3dIZWFkZXJTdWJNZW51PzogYm9vbGVhbjtcclxuICBpc0NvbXBhY3RNb2RlPzogYm9vbGVhbjtcclxuICBmdWxsUGFnZT86IGJvb2xlYW47XHJcbn1cclxuLyoqXHJcbi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mV4cG9ydCBjb25zdCBTdHlsZWRJbWFnZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIikoe1xyXG4gIGZsZXg6IDEsXHJcbiAgZGlzcGxheTogXCJmbGV4XCIsXHJcbiAgYmFja2dyb3VuZFNpemU6IFwiY29udGFpblwiLFxyXG4gIGJhY2tncm91bmRQb3NpdGlvbjogXCJjZW50ZXIgY2VudGVyXCIsXHJcbiAgYmFja2dyb3VuZFJlcGVhdDogXCJuby1yZXBlYXRcIixcclxuICBmbGV4RGlyZWN0aW9uOiBcImNvbHVtblwiLFxyXG4gIGhlaWdodDogXCIxMDAlXCJcclxufSk7XHJcblxyXG5leHBvcnQgY29uc3QgU3R5bGVkVGl0bGVXcmFwcGVyID0gc3R5bGVkKFwiZGl2XCIpKHtcclxuICB0ZXh0QWxpZ246IFwiY2VudGVyXCJcclxufSk7XHJcbiJdfQ== */",
|
|
44
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
height: "100%"
|
|
45
33
|
});
|
|
46
|
-
const StyledTitleWrapper =
|
|
47
|
-
|
|
48
|
-
} : {
|
|
49
|
-
target: "e18ahwyt0",
|
|
50
|
-
label: "StyledTitleWrapper"
|
|
51
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
52
|
-
name: "1azakc",
|
|
53
|
-
styles: "text-align:center"
|
|
54
|
-
} : {
|
|
55
|
-
name: "1azakc",
|
|
56
|
-
styles: "text-align:center",
|
|
57
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9wYWdlcy9FcnJvclBhZ2Uvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQThDa0MiLCJmaWxlIjoiL19fdy9odi1hcHAtc2hlbGwvaHYtYX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dXJuIGBjYWxjKDEwMHZoIC0gKCR7dGhlbWUuaGVhZGVyLmhlaWdodH0gKyAke3RoZW1lLnNwYWNlLmxnfSArICR7dGhlbWUuc3BhY2UubGd9KSlgO1xyXG59O1xyXG5cclxuZXhwb3J0IGNvbnN0IFN0eWxlZEVycm9yUGFnZSA9IHN0eWxlZChcImRpdlwiKTxTdHlsZWRFcnJvclBhZ2VQcm9wcz4oXHJcbiAge1xyXG4gICAgZmxleDogMSxcclxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxyXG4gICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcclxuICAgIG1hcmdpblRvcDogdGhlbWUuc3BhY2UubGdcclxuICB9LFxyXG4gIHByb3BzID0+ICh7IGhlaWdodDogY2FsY0hlaWdodChwcm9wcykgfSlcclxuKTtcclxuXHJcbmV4cG9ydCBjb25zdCBTdHlsZWRJbWFnZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIikoe1xyXG4gIGZsZXg6IDEsXHJcbiAgZGlzcGxheTogXCJmbGV4XCIsXHJcbiAgYmFja2dyb3VuZFNpemU6IFwiY29udGFpblwiLFxyXG4gIGJhY2tncm91bmRQb3NpdGlvbjogXCJjZW50ZXIgY2VudGVyXCIsXHJcbiAgYmFja2dyb3VuZFJlcGVhdDogXCJuby1yZXBlYXRcIixcclxuICBmbGV4RGlyZWN0aW9uOiBcImNvbHVtblwiLFxyXG4gIGhlaWdodDogXCIxMDAlXCJcclxufSk7XHJcblxyXG5leHBvcnQgY29uc3QgU3R5bGVkVGl0bGVXcmFwcGVyID0gc3R5bGVkKFwiZGl2XCIpKHtcclxuICB0ZXh0QWxpZ246IFwiY2VudGVyXCJcclxufSk7XHJcbiJdfQ== */",
|
|
58
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
34
|
+
const StyledTitleWrapper = styled("div")({
|
|
35
|
+
textAlign: "center"
|
|
59
36
|
});
|
|
60
37
|
export {
|
|
61
38
|
StyledErrorPage,
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { jsx } from "
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import BlackCat from "./500.svg.js";
|
|
4
4
|
import ErrorPage from "../ErrorPage/ErrorPage.js";
|
|
5
|
-
const GenericError = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
const GenericError = ({ fullPage = false, includeFooter = true }) => {
|
|
6
|
+
const { t } = useTranslation(void 0, { keyPrefix: "errors.genericError" });
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
ErrorPage,
|
|
9
|
+
{
|
|
10
|
+
code: t("code"),
|
|
11
|
+
title: t("title"),
|
|
12
|
+
backgroundLabel: t("image_description"),
|
|
13
|
+
fullPage,
|
|
14
|
+
includeFooter,
|
|
15
|
+
background: `url(${BlackCat})`
|
|
16
|
+
}
|
|
17
|
+
);
|
|
15
18
|
};
|
|
16
19
|
export {
|
|
17
20
|
GenericError as default
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { jsx } from "
|
|
2
|
-
import useNavigationContext from "../../providers/hooks/useNavigationContext.js";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import Loading from "../../components/layout/Loading/Loading.js";
|
|
3
|
+
import { useNavigationContext } from "../../providers/NavigationProvider.js";
|
|
4
4
|
import StyledLoadingPage from "./styles.js";
|
|
5
5
|
const LoadingPage = () => {
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const { isCompactMode, showHeaderSubMenu } = useNavigationContext();
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
StyledLoadingPage,
|
|
9
|
+
{
|
|
10
|
+
showHeaderSubMenu,
|
|
11
|
+
isCompactMode,
|
|
12
|
+
children: /* @__PURE__ */ jsx(Loading, {})
|
|
13
|
+
}
|
|
14
|
+
);
|
|
11
15
|
};
|
|
12
16
|
export {
|
|
13
17
|
LoadingPage as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
2
|
import { theme } from "@hitachivantara/uikit-react-core";
|
|
3
3
|
const calcHeight = ({
|
|
4
4
|
showHeaderSubMenu,
|
|
@@ -9,19 +9,15 @@ const calcHeight = ({
|
|
|
9
9
|
}
|
|
10
10
|
return `calc(100vh - (${theme.header.height} + ${theme.space.lg} + ${theme.space.lg}))`;
|
|
11
11
|
};
|
|
12
|
-
const StyledLoadingPage =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
marginTop: theme.space.lg
|
|
22
|
-
}, (props) => ({
|
|
23
|
-
height: calcHeight(props)
|
|
24
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9wYWdlcy9Mb2FkaW5nUGFnZS9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0IwQiIsImZpbGUiOiIvX193L2h2LWFwcC1zaGVsbC9odi1hcHAtc2hlbGwvY2xpZW50L3BhY2thZ2VzL2FwcC1zaGVsbC11aS9zcmMvcGFnZXMvTG9hZGluZ1BhZ2Uvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XHJcblxyXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gXCJAaGl0YWNoaXZhb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wOiB0aGVtZS5zcGFjZS5sZ1xyXG4gIH0sXHJcbiAgcHJvcHMgPT4gKHsgaGVpZ2h0OiBjYWxjSGVpZ2h0KHByb3BzKSB9KVxyXG4pO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgU3R5bGVkTG9hZGluZ1BhZ2U7XHJcbiJdfQ== */");
|
|
12
|
+
const StyledLoadingPage = styled("div")(
|
|
13
|
+
{
|
|
14
|
+
flex: 1,
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "column",
|
|
17
|
+
marginTop: theme.space.lg
|
|
18
|
+
},
|
|
19
|
+
(props) => ({ height: calcHeight(props) })
|
|
20
|
+
);
|
|
25
21
|
export {
|
|
26
22
|
StyledLoadingPage as default
|
|
27
23
|
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { jsx } from "
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import DogeSpace from "./404.svg.js";
|
|
4
4
|
import ErrorPage from "../ErrorPage/ErrorPage.js";
|
|
5
5
|
const NotFound = () => {
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const { t } = useTranslation(void 0, { keyPrefix: "errors.notFound" });
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
ErrorPage,
|
|
9
|
+
{
|
|
10
|
+
code: t("code"),
|
|
11
|
+
title: t("title"),
|
|
12
|
+
backgroundLabel: t("image_description"),
|
|
13
|
+
background: `url(${DogeSpace})`
|
|
14
|
+
}
|
|
15
|
+
);
|
|
12
16
|
};
|
|
13
17
|
export {
|
|
14
18
|
NotFound as default
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx, jsxs } from "
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense } from "react";
|
|
3
|
-
import { Outlet } from "react-router-dom";
|
|
4
3
|
import { ErrorBoundary } from "react-error-boundary";
|
|
5
|
-
import
|
|
6
|
-
import BannerProvider from "../../providers/BannerProvider.js";
|
|
7
|
-
import NavigationProvider from "../../providers/NavigationProvider.js";
|
|
4
|
+
import { Outlet } from "react-router-dom";
|
|
5
|
+
import { BannerProvider } from "../../providers/BannerProvider.js";
|
|
6
|
+
import { NavigationProvider } from "../../providers/NavigationProvider.js";
|
|
7
|
+
import CombinedProviders from "../../utils/CombinedProviders.js";
|
|
8
8
|
import LoadingPage from "../LoadingPage/LoadingPage.js";
|
|
9
|
-
import GenericError from "../GenericError/GenericError.js";
|
|
10
9
|
import CustomHooksInitializer from "../../components/CustomHooksInitializer/CustomHooksInitializer.js";
|
|
11
10
|
import Header from "../../components/layout/Header/Header.js";
|
|
12
11
|
import Main from "../../components/layout/Main/Main.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}) => /* @__PURE__ */ jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsx(GenericError, { fullPage: true }), children: /* @__PURE__ */ jsx(CombinedProviders, { providers, children: /* @__PURE__ */ jsx(NavigationProvider, { children: /* @__PURE__ */ jsxs(BannerProvider, { children: [
|
|
12
|
+
import GenericError from "../GenericError/GenericError.js";
|
|
13
|
+
const Root = ({ providers }) => /* @__PURE__ */ jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsx(GenericError, { fullPage: true }), children: /* @__PURE__ */ jsx(CombinedProviders, { providers, children: /* @__PURE__ */ jsx(NavigationProvider, { children: /* @__PURE__ */ jsxs(BannerProvider, { children: [
|
|
16
14
|
/* @__PURE__ */ jsx(CustomHooksInitializer, {}),
|
|
17
15
|
/* @__PURE__ */ jsx(Header, {}),
|
|
18
16
|
/* @__PURE__ */ jsx(Main, { children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingPage, {}), children: /* @__PURE__ */ jsx(Outlet, {}) }) })
|