@hitachivantara/app-shell-ui 1.6.0 → 1.6.2
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 +8 -6
- package/dist/esm/components/AppShellProvider/AppShellProvider.js +80 -56
- package/dist/esm/components/AppShellRoutes/AppShellRoutes.js +74 -65
- package/dist/esm/components/AppShellViewProvider/AppShellViewProvider.js +13 -13
- package/dist/esm/components/CustomHooksInitializer/CustomHooksInitializer.js +9 -5
- package/dist/esm/components/GlobalStyles/GlobalStyles.js +8 -8
- package/dist/esm/components/GlobalStyles/index.js +2 -3
- package/dist/esm/components/IconUiKit/IconUiKit.js +11 -8
- package/dist/esm/components/IconUiKit/index.js +4 -5
- package/dist/esm/components/hoc/withClickAwayListener.js +19 -12
- package/dist/esm/components/hoc/withGlobalProvider.js +30 -25
- package/dist/esm/components/layout/Header/BrandLogo/BrandLogo.js +27 -17
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Hitachi.js +10 -8
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Lumada.js +15 -13
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Pentaho.js +10 -8
- package/dist/esm/components/layout/Header/Header.js +54 -42
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/DynamicAction.js +22 -18
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/index.js +2 -3
- package/dist/esm/components/layout/Header/HeaderActions/HeaderActions.js +17 -14
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/AppSwitcherToggle.js +57 -46
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/index.js +2 -3
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/styles.js +6 -6
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/ColorModeSwitcher.js +19 -17
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/index.js +2 -3
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.js +23 -20
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/index.js +2 -3
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/InternalAction/InternalAction.js +23 -21
- package/dist/esm/components/layout/Header/HeaderActions/index.js +2 -3
- package/dist/esm/components/layout/Header/styles.js +7 -7
- package/dist/esm/components/layout/Loading/Loading.js +9 -7
- package/dist/esm/components/layout/Loading/styles.js +20 -8
- package/dist/esm/components/layout/Main/Main.js +23 -22
- package/dist/esm/components/layout/Main/styles.js +17 -8
- package/dist/esm/components/layout/VerticalNavigation/VerticalNavigation.js +67 -49
- package/dist/esm/components/layout/VerticalNavigation/styles.js +15 -16
- package/dist/esm/index.js +2 -3
- package/dist/esm/lib/hooks/useClearLocationState.js +14 -14
- package/dist/esm/lib/hooks/useCustomEventListener.js +19 -14
- package/dist/esm/lib/hooks/useLocalStorage.js +22 -16
- package/dist/esm/lib/hooks/useNavigationMenuItems.js +36 -28
- package/dist/esm/lib/hooks/useNotificationsEventListener.js +47 -37
- package/dist/esm/lib/hooks/useThemeEventListener.js +25 -20
- package/dist/esm/lib/i18n/index.js +23 -19
- package/dist/esm/lib/i18n/localization/en.json.js +18 -15
- package/dist/esm/lib/i18n/localization/pt.json.js +18 -15
- package/dist/esm/lib/utils/CombinedProviders.js +19 -14
- package/dist/esm/lib/utils/basePathUtils.js +4 -3
- package/dist/esm/lib/utils/documentUtil.js +10 -6
- package/dist/esm/lib/utils/navigationUtil.js +65 -38
- package/dist/esm/lib/utils/textUtil.js +4 -3
- package/dist/esm/pages/ErrorPage/ErrorPage.js +24 -24
- package/dist/esm/pages/ErrorPage/Footer/Footer.js +47 -31
- package/dist/esm/pages/ErrorPage/Footer/styles.js +8 -8
- package/dist/esm/pages/ErrorPage/styles.js +25 -15
- package/dist/esm/pages/GenericError/500.svg.js +2 -3
- package/dist/esm/pages/GenericError/GenericError.js +13 -13
- package/dist/esm/pages/LoadingPage/LoadingPage.js +12 -12
- package/dist/esm/pages/LoadingPage/index.js +2 -3
- package/dist/esm/pages/LoadingPage/styles.js +15 -9
- package/dist/esm/pages/NotFound/404.svg.js +2 -3
- package/dist/esm/pages/NotFound/NotFound.js +11 -11
- package/dist/esm/pages/NotFound/index.js +2 -3
- package/dist/esm/pages/Root/Root.js +22 -22
- package/dist/esm/providers/BannerProvider.js +67 -57
- package/dist/esm/providers/LayoutProvider.js +19 -16
- package/dist/esm/providers/NavigationProvider.js +87 -55
- package/dist/esm/providers/hooks/useBannerContext.js +9 -7
- package/dist/esm/providers/hooks/useLayoutContext.js +9 -7
- package/dist/esm/providers/hooks/useNavigationContext.js +9 -7
- package/package.json +5 -5
- package/dist/esm/components/AppShell/AppShell.js.map +0 -1
- package/dist/esm/components/AppShellProvider/AppShellProvider.js.map +0 -1
- package/dist/esm/components/AppShellRoutes/AppShellRoutes.js.map +0 -1
- package/dist/esm/components/AppShellViewProvider/AppShellViewProvider.js.map +0 -1
- package/dist/esm/components/CustomHooksInitializer/CustomHooksInitializer.js.map +0 -1
- package/dist/esm/components/GlobalStyles/GlobalStyles.js.map +0 -1
- package/dist/esm/components/GlobalStyles/index.js.map +0 -1
- package/dist/esm/components/IconUiKit/IconUiKit.js.map +0 -1
- package/dist/esm/components/IconUiKit/index.js.map +0 -1
- package/dist/esm/components/hoc/withClickAwayListener.js.map +0 -1
- package/dist/esm/components/hoc/withGlobalProvider.js.map +0 -1
- package/dist/esm/components/layout/Header/BrandLogo/BrandLogo.js.map +0 -1
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Hitachi.js.map +0 -1
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Lumada.js.map +0 -1
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Pentaho.js.map +0 -1
- package/dist/esm/components/layout/Header/Header.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/DynamicAction.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/index.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/HeaderActions.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/AppSwitcherToggle.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/index.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/styles.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/ColorModeSwitcher.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/index.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/index.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/InternalAction/InternalAction.js.map +0 -1
- package/dist/esm/components/layout/Header/HeaderActions/index.js.map +0 -1
- package/dist/esm/components/layout/Header/styles.js.map +0 -1
- package/dist/esm/components/layout/Loading/Loading.js.map +0 -1
- package/dist/esm/components/layout/Loading/styles.js.map +0 -1
- package/dist/esm/components/layout/Main/Main.js.map +0 -1
- package/dist/esm/components/layout/Main/styles.js.map +0 -1
- package/dist/esm/components/layout/VerticalNavigation/VerticalNavigation.js.map +0 -1
- package/dist/esm/components/layout/VerticalNavigation/styles.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/lib/hooks/useClearLocationState.js.map +0 -1
- package/dist/esm/lib/hooks/useCustomEventListener.js.map +0 -1
- package/dist/esm/lib/hooks/useLocalStorage.js.map +0 -1
- package/dist/esm/lib/hooks/useNavigationMenuItems.js.map +0 -1
- package/dist/esm/lib/hooks/useNotificationsEventListener.js.map +0 -1
- package/dist/esm/lib/hooks/useThemeEventListener.js.map +0 -1
- package/dist/esm/lib/i18n/index.js.map +0 -1
- package/dist/esm/lib/i18n/localization/en.json.js.map +0 -1
- package/dist/esm/lib/i18n/localization/pt.json.js.map +0 -1
- package/dist/esm/lib/utils/CombinedProviders.js.map +0 -1
- package/dist/esm/lib/utils/basePathUtils.js.map +0 -1
- package/dist/esm/lib/utils/documentUtil.js.map +0 -1
- package/dist/esm/lib/utils/navigationUtil.js.map +0 -1
- package/dist/esm/lib/utils/textUtil.js.map +0 -1
- package/dist/esm/pages/ErrorPage/ErrorPage.js.map +0 -1
- package/dist/esm/pages/ErrorPage/Footer/Footer.js.map +0 -1
- package/dist/esm/pages/ErrorPage/Footer/styles.js.map +0 -1
- package/dist/esm/pages/ErrorPage/styles.js.map +0 -1
- package/dist/esm/pages/GenericError/500.svg.js.map +0 -1
- package/dist/esm/pages/GenericError/GenericError.js.map +0 -1
- package/dist/esm/pages/LoadingPage/LoadingPage.js.map +0 -1
- package/dist/esm/pages/LoadingPage/index.js.map +0 -1
- package/dist/esm/pages/LoadingPage/styles.js.map +0 -1
- package/dist/esm/pages/NotFound/404.svg.js.map +0 -1
- package/dist/esm/pages/NotFound/NotFound.js.map +0 -1
- package/dist/esm/pages/NotFound/index.js.map +0 -1
- package/dist/esm/pages/Root/Root.js.map +0 -1
- package/dist/esm/providers/BannerProvider.js.map +0 -1
- package/dist/esm/providers/LayoutProvider.js.map +0 -1
- package/dist/esm/providers/NavigationProvider.js.map +0 -1
- package/dist/esm/providers/hooks/useBannerContext.js.map +0 -1
- package/dist/esm/providers/hooks/useLayoutContext.js.map +0 -1
- package/dist/esm/providers/hooks/useNavigationContext.js.map +0 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { useContext
|
|
2
|
-
import { LayoutContext
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { LayoutContext } from "../LayoutProvider.js";
|
|
3
|
+
const useLayoutContext = () => {
|
|
4
|
+
const context = useContext(LayoutContext);
|
|
5
|
+
if (context === void 0) {
|
|
6
|
+
console.error("LayoutContext was used outside of its Provider");
|
|
7
|
+
}
|
|
8
|
+
return context;
|
|
6
9
|
};
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
useLayoutContext as default
|
|
9
12
|
};
|
|
10
|
-
//# sourceMappingURL=useLayoutContext.js.map
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { useContext
|
|
2
|
-
import { NavigationContext
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { NavigationContext } from "../NavigationProvider.js";
|
|
3
|
+
const useNavigationContext = () => {
|
|
4
|
+
const context = useContext(NavigationContext);
|
|
5
|
+
if (context === void 0) {
|
|
6
|
+
console.error("NavigationContext was used outside of its Provider");
|
|
7
|
+
}
|
|
8
|
+
return context;
|
|
6
9
|
};
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
useNavigationContext as default
|
|
9
12
|
};
|
|
10
|
-
//# sourceMappingURL=useNavigationContext.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/app-shell-ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "AppShell Component",
|
|
5
5
|
"author": "Hitachi Vantara - Boba Fett Team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@emotion/css": "^11.10.5",
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
|
-
"@hitachivantara/app-shell-events": "1.0.
|
|
42
|
-
"@hitachivantara/app-shell-navigation": "1.2.
|
|
43
|
-
"@hitachivantara/app-shell-shared": "1.4.
|
|
41
|
+
"@hitachivantara/app-shell-events": "1.0.3",
|
|
42
|
+
"@hitachivantara/app-shell-navigation": "1.2.7",
|
|
43
|
+
"@hitachivantara/app-shell-shared": "1.4.1",
|
|
44
44
|
"@hitachivantara/uikit-react-core": "^5.66.7",
|
|
45
45
|
"@hitachivantara/uikit-react-icons": "^5.10.1",
|
|
46
46
|
"@mui/material": "^5.12.3",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"vite-plugin-dts": "^3.6.4",
|
|
69
69
|
"vite-tsconfig-paths": "^4.0.5"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "8b2370f5cc65170ec435ef46edad82c24da4db39"
|
|
72
72
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.js","sources":["../../../../src/components/AppShell/AppShell.tsx"],"sourcesContent":["import withGlobalProvider from \"../hoc/withGlobalProvider\";\nimport AppShellRoutes from \"../AppShellRoutes\";\n\nconst AppShell = () => {\n return <AppShellRoutes />;\n};\n\nexport default withGlobalProvider(AppShell);\n"],"names":["AppShell","AppShellRoutes","withGlobalProvider"],"mappings":";;;AAGA,MAAMA,IAAWA,wBACPC,GAAiB,CAAA,CAAA,GAGZC,IAAAA,EAAmBF,CAAQ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellProvider.js","sources":["../../../../src/components/AppShellProvider/AppShellProvider.tsx"],"sourcesContent":["import {\n ComponentType,\n ReactNode,\n useContext,\n useEffect,\n useMemo,\n useState\n} from \"react\";\nimport {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellConfig,\n HvAppShellContext,\n HvAppShellContextValue,\n HvAppShellRuntimeContext,\n HvAppShellCombinedProvidersContext\n} from \"@hitachivantara/app-shell-shared\";\nimport { I18nContext } from \"react-i18next\";\n\nimport {\n HvProvider,\n HvProviderProps,\n themes as baseThemes\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { addResourceBundles } from \"../../lib/i18n\";\nimport useLocalStorage from \"../../lib/hooks/useLocalStorage\";\n\nexport type AppShellProviderProps = {\n children: ReactNode;\n config?: Partial<HvAppShellConfig>;\n configUrl?: string;\n};\n\nconst AppShellProvider = ({\n children,\n config: localConfig,\n configUrl\n}: AppShellProviderProps) => {\n const { i18n } = useContext(I18nContext);\n const { value: storedColorModeValue } = useLocalStorage(\"COLOR_MODE\");\n const [loadedConfig, setLoadedConfig] = useState<\n HvAppShellConfig | undefined\n >(undefined);\n\n const [hasError, setHasError] = useState<boolean>(false);\n\n useEffect(() => {\n if (!localConfig && configUrl) {\n fetch(new URL(configUrl))\n .then(result => {\n return result.json();\n })\n .then(data => setLoadedConfig(data))\n .catch(e => {\n console.error(\n `It was not possible to obtain the context from: ${configUrl}`,\n e\n );\n setLoadedConfig(undefined);\n setHasError(true);\n });\n }\n }, [localConfig, configUrl]);\n\n const theConfig: HvAppShellContextValue | undefined = useMemo(\n () => localConfig ?? loadedConfig,\n [localConfig, loadedConfig]\n );\n\n if (hasError) {\n throw Error(\"It was not possible to obtain the configuration\");\n }\n\n if (theConfig?.translations) {\n addResourceBundles(\n i18n,\n theConfig.translations,\n CONFIG_TRANSLATIONS_NAMESPACE\n );\n }\n\n const [themes, setThemes] = useState<HvProviderProps[\"themes\"]>(undefined);\n const [providers, setProviders] = useState<\n ComponentType<{ children: ReactNode }>[] | undefined\n >(undefined);\n\n useEffect(() => {\n if (theConfig?.theming?.themes) {\n Promise.all(\n theConfig.theming.themes?.map(bundle => {\n return (\n baseThemes[bundle as keyof typeof baseThemes] ??\n import(/* @vite-ignore */ bundle)\n .then(module => module.default)\n .catch(e => {\n console.error(`Import of theme bundle ${bundle} failed! ${e}`);\n })\n );\n })\n )\n .then(loadedThemes => {\n setThemes(loadedThemes.filter(theme => !!theme));\n })\n .catch(e => {\n console.error(`Import of themes failed! ${e}`);\n });\n }\n }, [theConfig?.theming?.themes]);\n\n useEffect(() => {\n if (theConfig?.providers) {\n Promise.all(\n theConfig.providers.map(provider => {\n return import(/* @vite-ignore */ provider.bundle)\n .then(module => module.default)\n .catch(e => {\n console.error(\n `Import of provider '${provider.bundle}' failed! ${e}`\n );\n });\n })\n )\n .then(loadedProviders =>\n setProviders(loadedProviders.filter(provider => !!provider))\n )\n .catch(e => {\n console.error(`Import of providers failed!`, e);\n });\n }\n }, [theConfig?.providers]);\n\n const runtimeContext = useMemo(\n () => ({\n i18n\n }),\n [i18n]\n );\n\n const providersContext = useMemo(\n () => ({\n providers\n }),\n [providers]\n );\n\n if (\n !theConfig ||\n (theConfig.theming?.themes && !themes) ||\n (theConfig.providers != null && providers === undefined)\n ) {\n return null;\n }\n\n return (\n <HvAppShellContext.Provider value={theConfig}>\n <HvAppShellRuntimeContext.Provider value={runtimeContext}>\n <HvProvider\n themes={themes}\n theme={theConfig.theming?.theme}\n colorMode={storedColorModeValue ?? theConfig.theming?.colorMode}>\n <HvAppShellCombinedProvidersContext.Provider value={providersContext}>\n {children}\n </HvAppShellCombinedProvidersContext.Provider>\n </HvProvider>\n </HvAppShellRuntimeContext.Provider>\n </HvAppShellContext.Provider>\n );\n};\n\nexport default AppShellProvider;\n"],"names":["AppShellProvider","children","config","localConfig","configUrl","i18n","useContext","I18nContext","value","storedColorModeValue","useLocalStorage","loadedConfig","setLoadedConfig","useState","undefined","hasError","setHasError","useEffect","fetch","URL","then","result","json","data","catch","e","console","error","theConfig","useMemo","Error","translations","CONFIG_TRANSLATIONS_NAMESPACE","themes","setThemes","providers","setProviders","theming","Promise","all","map","bundle","baseThemes","module","default","loadedThemes","filter","theme","provider","loadedProviders","runtimeContext","providersContext","jsx","HvAppShellContext","HvAppShellRuntimeContext","HvProvider","colorMode","HvAppShellCombinedProvidersContext","AppShellProvider$1"],"mappings":";;;;;;;AAiCA,MAAMA,IAAmBA,CAAC;AAAA,EACxBC,UAAAA;AAAAA,EACAC,QAAQC;AAAAA,EACRC,WAAAA;AACqB,MAAM;;AACrB,QAAA;AAAA,IAAEC,MAAAA;AAAAA,EAAAA,IAASC,EAAWC,CAAW,GACjC;AAAA,IAAEC,OAAOC;AAAAA,EAAAA,IAAyBC,EAAgB,YAAY,GAC9D,CAACC,GAAcC,CAAe,IAAIC,EAEtCC,MAAS,GAEL,CAACC,GAAUC,CAAW,IAAIH,EAAkB,EAAK;AAEvDI,EAAAA,EAAU,MAAM;AACV,IAAA,CAACd,KAAeC,KAClBc,MAAM,IAAIC,IAAIf,CAAS,CAAC,EACrBgB,KAAKC,CAAUA,MACPA,EAAOC,MACf,EACAF,KAAKG,CAAAA,MAAQX,EAAgBW,CAAI,CAAC,EAClCC,MAAMC,CAAKA,MAAA;AACVC,cAAQC,MACL,mDAAkDvB,CAAU,IAC7DqB,CACF,GACAb,EAAgBE,MAAS,GACzBE,EAAY,EAAI;AAAA,IAAA,CACjB;AAAA,EACL,GACC,CAACb,GAAaC,CAAS,CAAC;AAErBwB,QAAAA,IAAgDC,EACpD,MAAM1B,KAAeQ,GACrB,CAACR,GAAaQ,CAAY,CAC5B;AAEA,MAAII;AACF,UAAMe,MAAM,iDAAiD;AAG/D,EAAIF,KAAAA,QAAAA,EAAWG,gBAEX1B,EAAAA,GACAuB,EAAUG,cACVC,CACF;AAGF,QAAM,CAACC,GAAQC,CAAS,IAAIrB,EAAoCC,MAAS,GACnE,CAACqB,GAAWC,CAAY,IAAIvB,EAEhCC,MAAS;AAEXG,EAAAA,EAAU,MAAM;;AACVW,KAAAA,IAAAA,KAAAA,gBAAAA,EAAWS,YAAXT,QAAAA,EAAoBK,UACtBK,QAAQC,KACNX,IAAAA,EAAUS,QAAQJ,WAAlBL,gBAAAA,EAA0BY,IAAIC,CAAUA,MAEpCC,EAAWD,CAAkC,KAC7C;AAAA;AAAA,MAA0BA;AAAAA,MACvBrB,KAAKuB,CAAUA,MAAAA,EAAOC,OAAO,EAC7BpB,MAAMC,CAAKA,MAAA;AACVC,cAAQC,MAAO,0BAAyBc,CAAO,YAAWhB,CAAE,EAAC;AAAA,IAAA,CAC9D,EAGT,EACGL,KAAKyB,CAAgBA,MAAA;AACpBX,MAAAA,EAAUW,EAAaC,OAAOC,CAAAA,MAAS,CAAC,CAACA,CAAK,CAAC;AAAA,IAAA,CAChD,EACAvB,MAAMC,CAAKA,MAAA;AACFE,cAAAA,MAAO,4BAA2BF,CAAE,EAAC;AAAA,IAAA,CAC9C;AAAA,EAEJ,GAAA,EAACG,IAAAA,KAAAA,gBAAAA,EAAWS,YAAXT,gBAAAA,EAAoBK,MAAM,CAAC,GAE/BhB,EAAU,MAAM;AACd,IAAIW,KAAAA,QAAAA,EAAWO,aACbG,QAAQC,IACNX,EAAUO,UAAUK,IAAIQ,CAAYA,MAC3B;AAAA;AAAA,MAA0BA,EAASP;AAAAA,MACvCrB,KAAKuB,CAAUA,MAAAA,EAAOC,OAAO,EAC7BpB,MAAMC,CAAKA,MAAA;AACVC,cAAQC,MACL,uBAAsBqB,EAASP,MAAO,aAAYhB,CAAE,EACvD;AAAA,IAAA,CACD,CACJ,CACH,EACGL,KAAK6B,CAAAA,MACJb,EAAaa,EAAgBH,OAAOE,CAAYA,MAAA,CAAC,CAACA,CAAQ,CAAC,CAC7D,EACCxB,MAAMC,CAAKA,MAAA;AACFE,cAAAA,MAAO,+BAA8BF,CAAC;AAAA,IAAA,CAC/C;AAAA,EACL,GACC,CAACG,KAAAA,gBAAAA,EAAWO,SAAS,CAAC;AAEnBe,QAAAA,IAAiBrB,EACrB,OAAO;AAAA,IACLxB,MAAAA;AAAAA,EAAAA,IAEF,CAACA,CAAI,CACP,GAEM8C,IAAmBtB,EACvB,OAAO;AAAA,IACLM,WAAAA;AAAAA,EAAAA,IAEF,CAACA,CAAS,CACZ;AAGE,SAAA,CAACP,MACAA,IAAAA,EAAUS,YAAVT,QAAAA,EAAmBK,UAAU,CAACA,KAC9BL,EAAUO,aAAa,QAAQA,MAAcrB,SAEvC,OAIN,gBAAAsC,EAAAC,EAAkB,UAAlB,EAA2B,OAAOzB,GACjC,UAAA,gBAAAwB,EAACE,EAAyB,UAAzB,EAAkC,OAAOJ,GACxC,UAAA,gBAAAE,EAACG,aACCtB,GACA,QAAOL,IAAAA,EAAUS,YAAVT,gBAAAA,EAAmBmB,OAC1B,WAAWtC,OAAwBmB,IAAAA,EAAUS,YAAVT,gBAAAA,EAAmB4B,YACtD,UAAA,gBAAAJ,EAACK,EAAmC,UAAnC,EAA4C,OAAON,GACjDlD,UAAAA,EACH,CAAA,GACF,GACF,EACF,CAAA;AAEJ,GAEAyD,IAAe1D;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellRoutes.js","sources":["../../../../src/components/AppShellRoutes/AppShellRoutes.tsx"],"sourcesContent":["import { lazy } from \"react\";\nimport {\n createBrowserRouter,\n Outlet,\n RouteObject,\n RouterProvider\n} from \"react-router-dom\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { HvContainer } from \"@hitachivantara/uikit-react-core\";\nimport {\n type HvAppShellMainPanelConfig,\n type HvAppShellViewsConfig,\n useHvAppShellConfig,\n useHvAppShellCombinedProviders\n} from \"@hitachivantara/app-shell-shared\";\n\nimport AppShellViewProvider from \"../AppShellViewProvider\";\nimport GenericError from \"../../pages/GenericError\";\nimport LoadingPage from \"../../pages/LoadingPage\";\nimport { getAppIdFromBundle } from \"../../lib/utils/navigationUtil\";\nimport getBasePath from \"../../lib/utils/basePathUtils\";\nimport RootRoute from \"../../pages/Root\";\n\nconst NotFound = lazy(() => import(\"../../pages/NotFound\"));\n\nfunction renderNestedRoutes(\n views: HvAppShellViewsConfig[] | undefined\n): RouteObject[] | undefined {\n if (!views) {\n return undefined;\n }\n return views.map<RouteObject>(view => {\n const { bundle } = view;\n const appId = getAppIdFromBundle(bundle);\n\n const RouteComponent = lazy(() => import(/* @vite-ignore */ bundle));\n\n const path = view.route.replace(/^\\//, \"\");\n\n return {\n path,\n // \"Component\" used instead of \"element\" due to lazy loading\n Component: () => (\n <AppShellViewProvider id={appId}>\n <ErrorBoundary\n key={view.route}\n fallback={<GenericError fullPage={false} />}>\n <RouteComponent {...view.config}>\n {view.views != null ? <Outlet /> : null}\n </RouteComponent>\n </ErrorBoundary>\n </AppShellViewProvider>\n ),\n children: renderNestedRoutes(view.views)\n };\n });\n}\n\nfunction renderRoutes(\n mainPanel: HvAppShellMainPanelConfig | undefined\n): RouteObject[] {\n if (mainPanel == null || mainPanel.views == null) {\n return [];\n }\n\n const { views, maxWidth = \"xl\", ...mainContainerProps } = mainPanel;\n\n return views.map(view => {\n const {\n bundle,\n route,\n config,\n views: nestedViews,\n maxWidth: viewMaxWidth,\n ...viewContainerProps\n } = view;\n\n const appId = getAppIdFromBundle(bundle);\n\n const RouteComponent = lazy(() => import(/* @vite-ignore */ bundle));\n\n return {\n path: route,\n // \"Component\" used instead of \"element\" due to lazy loading\n Component: () => (\n <HvContainer\n maxWidth={viewMaxWidth ?? maxWidth}\n {...mainContainerProps}\n {...viewContainerProps}>\n <AppShellViewProvider id={appId}>\n <ErrorBoundary\n key={route}\n fallback={<GenericError fullPage={false} />}>\n <RouteComponent {...config}>\n {nestedViews != null ? <Outlet /> : null}\n </RouteComponent>\n </ErrorBoundary>\n </AppShellViewProvider>\n </HvContainer>\n ),\n children: renderNestedRoutes(nestedViews)\n };\n });\n}\n\nfunction renderErrorRoutes(\n mainPanel: HvAppShellMainPanelConfig | undefined\n): RouteObject[] {\n const { views, maxWidth = \"xl\", ...mainContainerProps } = mainPanel ?? {};\n\n return [\n {\n path: \"*\",\n element: (\n <HvContainer maxWidth={maxWidth} {...mainContainerProps}>\n <NotFound />\n </HvContainer>\n )\n }\n ];\n}\n\nconst AppShellRoutes = () => {\n const config = useHvAppShellConfig();\n const { providers } = useHvAppShellCombinedProviders();\n\n return (\n <RouterProvider\n fallbackElement={<LoadingPage />}\n router={createBrowserRouter(\n [\n {\n element: <RootRoute providers={providers} />, // All routes live inside `RootRoute`\n errorElement: <GenericError fullPage />,\n children: [\n ...renderRoutes(config.mainPanel),\n ...renderErrorRoutes(config.mainPanel)\n ]\n }\n ],\n { basename: getBasePath(config) }\n )}\n />\n );\n};\n\nexport default AppShellRoutes;\n"],"names":["NotFound","lazy","renderNestedRoutes","views","map","view","bundle","appId","getAppIdFromBundle","RouteComponent","path","route","replace","Component","jsx","AppShellViewProvider","ErrorBoundary","GenericError","config","Outlet","children","renderRoutes","mainPanel","maxWidth","mainContainerProps","nestedViews","viewMaxWidth","viewContainerProps","HvContainer","renderErrorRoutes","element","AppShellRoutes","useHvAppShellConfig","providers","useHvAppShellCombinedProviders","RouterProvider","LoadingPage","createBrowserRouter","RootRoute","errorElement","basename","getBasePath","AppShellRoutes$1"],"mappings":";;;;;;;;;;;;AAwBA,MAAMA,IAAWC,EAAK,MAAM,OAAO,+BAAsB,CAAC;AAE1D,SAASC,EACPC,GAC2B;AAC3B,MAAKA;AAGEA,WAAAA,EAAMC,IAAiBC,CAAQA,MAAA;AAC9B,YAAA;AAAA,QAAEC,QAAAA;AAAAA,MAAWD,IAAAA,GACbE,IAAQC,EAAmBF,CAAM,GAEjCG,IAAiBR,EAAK,MAAM;AAAA;AAAA,QAA0BK;AAAAA,OAAO;AAI5D,aAAA;AAAA,QACLI,MAHWL,EAAKM,MAAMC,QAAQ,OAAO,EAAE;AAAA;AAAA,QAKvCC,WAAWA,MACR,gBAAAC,EAAAC,GAAA,EAAqB,IAAIR,GACxB,UAAC,gBAAAO,EAAAE,GAAA,EAEC,UAAU,gBAAAF,EAACG,GAAa,EAAA,UAAU,GAAM,CAAA,GACxC,UAAC,gBAAAH,EAAAL,GAAA,KAAmBJ,EAAKa,QACtBb,UAAAA,EAAKF,SAAS,OAAQ,gBAAAW,EAAAK,GAAA,CAAS,CAAA,IAAG,KAAA,CACrC,EAJKd,GAAAA,EAAKM,KAKZ,GACF;AAAA,QAEFS,UAAUlB,EAAmBG,EAAKF,KAAK;AAAA,MAAA;AAAA,IACzC,CACD;AACH;AAEA,SAASkB,EACPC,GACe;AACf,MAAIA,KAAa,QAAQA,EAAUnB,SAAS;AAC1C,WAAO;AAGH,QAAA;AAAA,IAAEA,OAAAA;AAAAA,IAAOoB,UAAAA,IAAW;AAAA,IAAM,GAAGC;AAAAA,EAAuBF,IAAAA;AAEnDnB,SAAAA,EAAMC,IAAIC,CAAQA,MAAA;AACjB,UAAA;AAAA,MACJC,QAAAA;AAAAA,MACAK,OAAAA;AAAAA,MACAO,QAAAA;AAAAA,MACAf,OAAOsB;AAAAA,MACPF,UAAUG;AAAAA,MACV,GAAGC;AAAAA,IACDtB,IAAAA,GAEEE,IAAQC,EAAmBF,CAAM,GAEjCG,IAAiBR,EAAK,MAAM;AAAA;AAAA,MAA0BK;AAAAA,KAAO;AAE5D,WAAA;AAAA,MACLI,MAAMC;AAAAA;AAAAA,MAENE,WAAWA,MACT,gBAAAC,EAACc,GACC,EAAA,UAAUF,KAAgBH,GACtBC,GAAAA,GACJ,GAAIG,GACJ,UAAC,gBAAAb,EAAAC,GAAA,EAAqB,IAAIR,GACxB,4BAACS,GAEC,EAAA,UAAW,gBAAAF,EAAAG,GAAA,EAAa,UAAU,GAAM,CAAA,GACxC,UAAC,gBAAAH,EAAAL,GAAA,EAAe,GAAIS,GACjBO,UAAAA,KAAe,OAAO,gBAAAX,EAACK,KAAS,IAAG,KACtC,CAAA,KAJKR,CAKP,EACF,CAAA,GACF;AAAA,MAEFS,UAAUlB,EAAmBuB,CAAW;AAAA,IAAA;AAAA,EAC1C,CACD;AACH;AAEA,SAASI,EACPP,GACe;AACT,QAAA;AAAA,IAAEnB,OAAAA;AAAAA,IAAOoB,UAAAA,IAAW;AAAA,IAAM,GAAGC;AAAAA,EAAAA,IAAuBF,KAAa,CAAA;AAEvE,SAAO,CACL;AAAA,IACEZ,MAAM;AAAA,IACNoB,2BACGF,GAAY,EAAA,UAAAL,GAAwBC,GAAAA,GACnC,UAAA,gBAAAV,EAACd,KAAQ,EACX,CAAA;AAAA,EAAA,CAEH;AAEL;AAEA,MAAM+B,IAAiBA,MAAM;AAC3B,QAAMb,IAASc,KACT;AAAA,IAAEC,WAAAA;AAAAA,MAAcC,EAA+B;AAGnD,SAAA,gBAAApB,EAACqB,KACC,iBAAiB,gBAAArB,EAACsB,KAAc,GAChC,QAAQC,EACN,CACE;AAAA,IACEP,SAAU,gBAAAhB,EAAAwB,GAAA,EAAU,WAAAL,EAAwB,CAAA;AAAA;AAAA,IAC5CM,cAAc,gBAAAzB,EAACG,GAAa,EAAA,UAAQ,GAAG,CAAA;AAAA,IACvCG,UAAU,CACR,GAAGC,EAAaH,EAAOI,SAAS,GAChC,GAAGO,EAAkBX,EAAOI,SAAS,CAAC;AAAA,EAAA,CAEzC,GAEH;AAAA,IAAEkB,UAAUC,EAAYvB,CAAM;AAAA,EAChC,CAAA,EACA,CAAA;AAEN,GAEAwB,IAAeX;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellViewProvider.js","sources":["../../../../src/components/AppShellViewProvider/AppShellViewProvider.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\n\nimport {\n HvAppShellViewContext,\n HvAppShellViewContextValue\n} from \"@hitachivantara/app-shell-shared\";\n\nexport type AppShellViewProviderProps = {\n children: React.ReactNode;\n id: string;\n};\n\nconst AppShellViewProvider = ({ children, id }: AppShellViewProviderProps) => {\n const value: HvAppShellViewContextValue = useMemo(() => ({ id }), [id]);\n\n return (\n <HvAppShellViewContext.Provider value={value}>\n {children}\n </HvAppShellViewContext.Provider>\n );\n};\n\nexport default AppShellViewProvider;\n"],"names":["AppShellViewProvider","children","id","value","useMemo","jsx","HvAppShellViewContext","AppShellViewProvider$1"],"mappings":";;;AAYA,MAAMA,IAAuBA,CAAC;AAAA,EAAEC,UAAAA;AAAAA,EAAUC,IAAAA;AAA8B,MAAM;AACtEC,QAAAA,IAAoCC,EAAQ,OAAO;AAAA,IAAEF,IAAAA;AAAAA,EAAAA,IAAO,CAACA,CAAE,CAAC;AAEtE,SACG,gBAAAG,EAAAC,EAAsB,UAAtB,EAA+B,OAAAH,GAC7BF,UAAAA,EACH,CAAA;AAEJ,GAEAM,IAAeP;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomHooksInitializer.js","sources":["../../../../src/components/CustomHooksInitializer/CustomHooksInitializer.tsx"],"sourcesContent":["import useClearLocationState from \"../../lib/hooks/useClearLocationState\";\nimport useCustomEventListener from \"../../lib/hooks/useCustomEventListener\";\n\nconst CustomHooksInitializer = () => {\n useCustomEventListener();\n useClearLocationState();\n\n return null;\n};\n\nexport default CustomHooksInitializer;\n"],"names":["CustomHooksInitializer","useCustomEventListener","useClearLocationState","CustomHooksInitializer$1"],"mappings":";;AAGA,MAAMA,IAAyBA,OACNC,KACDC,KAEf,OAGTC,IAAeH;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalStyles.js","sources":["../../../../src/components/GlobalStyles/GlobalStyles.tsx"],"sourcesContent":["import { Global, css } from \"@emotion/react\";\n\n/**\n * This component can be used to set | add | modify global css. It can also override properties defined in UI-KIT.\n *\n * We need to have this component because the UI-KIT is forcing the height to 100% and this caused App Shell to show\n * a vertical scroll bar when it shouldn't due to the header height.\n */\nconst GlobalStyles = () => (\n <Global\n styles={css`\n html,\n body {\n height: unset;\n }\n `}\n />\n);\n\nexport default GlobalStyles;\n"],"names":["_ref","process","env","NODE_ENV","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","GlobalStyles","jsx","Global","GlobalStyles$1"],"mappings":";;;;;AAEA,IAAAA,IAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA;AAMA,MAAMC,IAAeA,MAClB,gBAAAC,EAAAC,GAAA,EACC,QAAOX,EAOV,CAAA,GAEDY,IAAeH;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconUiKit.js","sources":["../../../../src/components/IconUiKit/IconUiKit.tsx"],"sourcesContent":["import { HvIconSprite } from \"@hitachivantara/uikit-react-icons\";\n\nexport type IconUiKitProps = {\n name: string;\n};\n\nconst spriteUri = import.meta.resolve?.(\n \"@hv/uikit-icons/icons.svg\"\n) as unknown as string;\n\nconst IconUiKit = ({ name }: IconUiKitProps) => {\n return <HvIconSprite spriteUrl={spriteUri} iconName={name} />;\n};\n\nexport default IconUiKit;\n"],"names":["spriteUri","import","resolve","IconUiKit","name","jsx","HvIconSprite","IconUiKit$1"],"mappings":";;;AAMA,MAAMA,KAAYC,KAAAA,IAAAA,aAAYC,YAAZD,gBAAAA,EAAAA,KAAAA,GAChB,8BAGIE,IAAYA,CAAC;AAAA,EAAEC,MAAAA;AAAqB,MAChC,gBAAAC,EAAAC,GAAA,EAAa,WAAWN,GAAW,UAAUI,EAAQ,CAAA,GAG/DG,IAAeJ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/IconUiKit/index.tsx"],"sourcesContent":["import React from \"react\";\nimport IconUiKit from \"./IconUiKit\";\n\nexport type IconUiKitProps = {\n name: string;\n};\n\nexport default React.memo(IconUiKit);\n"],"names":["IconUiKit","React","memo"],"mappings":";;AAOA,MAAAA,IAAeC,EAAMC,KAAKF,CAAS;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withClickAwayListener.js","sources":["../../../../src/components/hoc/withClickAwayListener.tsx"],"sourcesContent":["import { createPortal } from \"react-dom\";\nimport { ClickAwayListener } from \"@mui/material\";\nimport createAppContainerElement from \"../../lib/utils/documentUtil\";\n\ninterface WithClickAwayListenerProps {\n onClickAway?: () => void;\n}\n\ntype WrappedComponentProps<T extends React.ElementType> = React.ComponentType<\n WithClickAwayListenerProps & React.ComponentProps<T>\n>;\n\nconst withClickAwayListener = <T extends React.ElementType>(\n WrappedComponent: WrappedComponentProps<T>\n) => {\n const displayName = WrappedComponent.displayName ?? WrappedComponent.name;\n\n const panelContainerElement = createAppContainerElement();\n\n const ComponentWithClickAwayListener = ({\n onClickAway,\n ...wrappedProps\n }: WithClickAwayListenerProps & React.ComponentProps<T>) => {\n if (onClickAway) {\n return createPortal(\n <ClickAwayListener onClickAway={onClickAway}>\n <div>\n <WrappedComponent {...(wrappedProps as React.ComponentProps<T>)} />\n </div>\n </ClickAwayListener>,\n panelContainerElement\n );\n }\n\n return <WrappedComponent {...(wrappedProps as React.ComponentProps<T>)} />;\n };\n\n ComponentWithClickAwayListener.displayName = `withClickAwayListener(${displayName})`;\n\n return ComponentWithClickAwayListener;\n};\n\nexport default withClickAwayListener;\n"],"names":["withClickAwayListener","WrappedComponent","displayName","name","panelContainerElement","createAppContainerElement","ComponentWithClickAwayListener","onClickAway","wrappedProps","createPortal","jsx","ClickAwayListener"],"mappings":";;;;AAYMA,MAAAA,IAAwB,CAC5BC,MACG;AACGC,QAAAA,IAAcD,EAAiBC,eAAeD,EAAiBE,MAE/DC,IAAwBC,KAExBC,IAAiCA,CAAC;AAAA,IACtCC,aAAAA;AAAAA,IACA,GAAGC;AAAAA,EAAAA,MAECD,IACKE,EACL,gBAAAC,EAACC,GAAkB,EAAA,aAAAJ,GACjB,UAAC,gBAAAG,EAAA,OAAA,EACC,UAAC,gBAAAA,EAAAT,GAAA,EAAiB,GAAKO,EAAAA,CAAyC,EAClE,CAAA,EACF,CAAA,GACAJ,CACF,IAGK,gBAAAM,EAACT,GAAiB,EAAA,GAAKO,EAA4C,CAAA;AAG7CN,SAAAA,EAAAA,cAAe,yBAAwBA,CAAY,KAE3EI;AACT;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withGlobalProvider.js","sources":["../../../../src/components/hoc/withGlobalProvider.tsx"],"sourcesContent":["import { css } from \"@emotion/css\";\nimport { I18nextProvider } from \"react-i18next\";\nimport { HelmetProvider } from \"react-helmet-async\";\n\nimport {\n HvProvider,\n HvSnackbarProvider,\n theme\n} from \"@hitachivantara/uikit-react-core\";\n\nimport React from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport GlobalStyles from \"../GlobalStyles\";\nimport AppShellProvider from \"../AppShellProvider/AppShellProvider\";\nimport createI18Next from \"../../lib/i18n\";\nimport LayoutProvider from \"../../providers/LayoutProvider\";\nimport GenericError from \"../../pages/GenericError\";\n\ntype WrappedComponentProps<T extends React.ElementType> = React.ComponentType<\n React.ComponentProps<T>\n>;\n\nconst snackbarClasses = {\n containerRoot: css`\n margin-top: ${theme.header.height};\n `\n};\n\nconst withGlobalProvider = <T extends React.ElementType>(\n WrappedComponent: WrappedComponentProps<T>\n) => {\n const displayName = WrappedComponent.displayName ?? WrappedComponent.name;\n\n const { i18n } = createI18Next();\n\n const ComponentWithGlobalProvider = ({\n ...wrappedProps\n }: React.ComponentProps<T>) => {\n return (\n <HelmetProvider>\n <HvProvider>\n <GlobalStyles />\n <I18nextProvider i18n={i18n}>\n <ErrorBoundary\n key=\"general\"\n fallback={<GenericError fullPage includeFooter={false} />}>\n <AppShellProvider\n config={wrappedProps.config}\n configUrl={wrappedProps.configUrl}>\n <LayoutProvider>\n <HvSnackbarProvider\n notistackClassesOverride={snackbarClasses}>\n <WrappedComponent {...wrappedProps} />\n </HvSnackbarProvider>\n </LayoutProvider>\n </AppShellProvider>\n </ErrorBoundary>\n </I18nextProvider>\n </HvProvider>\n </HelmetProvider>\n );\n };\n\n ComponentWithGlobalProvider.displayName = `withGlobalProvider(${displayName})`;\n\n return ComponentWithGlobalProvider;\n};\n\nexport default withGlobalProvider;\n"],"names":["snackbarClasses","containerRoot","css","theme","header","height","process","env","NODE_ENV","withGlobalProvider","WrappedComponent","displayName","name","i18n","createI18Next","ComponentWithGlobalProvider","wrappedProps","jsx","HelmetProvider","jsxs","HvProvider","GlobalStyles","I18nextProvider","ErrorBoundary","GenericError","AppShellProvider","config","configUrl","LayoutProvider","HvSnackbarProvider"],"mappings":";;;;;;;;;;;AAuBA,MAAMA,IAAkB;AAAA,EACtBC,eAAkB,gBAAAC,EAAA,eACFC,EAAMC,OAAOC,QAAM,OAAAC,QAAAC,IAAAC,aAAA,eAAA,KAAA,0BAAAF,QAAAC,IAAAC,aAAA,eAAA,KAAA,6xGAAA;AAErC,GAEMC,IAAqB,CACzBC,MACG;AACGC,QAAAA,IAAcD,EAAiBC,eAAeD,EAAiBE,MAE/D;AAAA,IAAEC,MAAAA;AAAAA,MAASC,EAAc,GAEzBC,IAA8BA,CAAC;AAAA,IACnC,GAAGC;AAAAA,EAAAA,MAGD,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAC,EAACC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAH,EAACI,GAAY,EAAA;AAAA,sBACZC,GAAgB,EAAA,MAAAT,GACf,UAAC,gBAAAI,EAAAM,GAAA,EAEC,UAAW,gBAAAN,EAAAO,GAAA,EAAa,UAAQ,IAAC,eAAe,GAAM,CAAA,GACtD,UAAC,gBAAAP,EAAAQ,GAAA,EACC,QAAQT,EAAaU,QACrB,WAAWV,EAAaW,WACxB,UAAC,gBAAAV,EAAAW,GAAA,EACC,UAAC,gBAAAX,EAAAY,GAAA,EACC,0BAA0B7B,GAC1B,UAAA,gBAAAiB,EAACP,GAAiB,EAAA,GAAIM,GAAa,EACrC,CAAA,EACF,CAAA,GACF,EAAA,GAXI,SAYN,GACF;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAIwBL,SAAAA,EAAAA,cAAe,sBAAqBA,CAAY,KAErEI;AACT;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrandLogo.js","sources":["../../../../../../src/components/layout/Header/BrandLogo/BrandLogo.tsx"],"sourcesContent":["import {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellConfig\n} from \"@hitachivantara/app-shell-shared\";\n\nimport { useTranslation } from \"react-i18next\";\nimport Hitachi from \"./Logos/Hitachi\";\nimport Lumada from \"./Logos/Lumada\";\nimport Pentaho from \"./Logos/Pentaho\";\n\nexport type HvBrandLogoProps = {\n logo?: HvAppShellConfig[\"logo\"];\n};\n\nconst BrandLogo = ({ logo }: HvBrandLogoProps) => {\n const { t: tConfig } = useTranslation(CONFIG_TRANSLATIONS_NAMESPACE);\n\n if (!logo) {\n // When the user explicitly passes \"null\" to the logo, we don't use any logo\n if (logo === null) {\n return null;\n }\n\n // Otherwise, use Hitachi's logo\n return <Hitachi />;\n }\n\n // Rules out explicit null value or non-existent prop but assumes empty string\n const description =\n logo.description != null ? tConfig(logo.description) : undefined;\n\n if (logo.name === \"LUMADA\") {\n return <Lumada description={description} />;\n }\n if (logo.name === \"PENTAHO+\") {\n return <Pentaho description={description} />;\n }\n return <Hitachi description={description} />;\n};\n\nexport default BrandLogo;\n"],"names":["BrandLogo","logo","t","tConfig","useTranslation","CONFIG_TRANSLATIONS_NAMESPACE","Hitachi","description","undefined","name","jsx","Lumada","Pentaho","BrandLogo$1"],"mappings":";;;;;;AAcA,MAAMA,IAAYA,CAAC;AAAA,EAAEC,MAAAA;AAAuB,MAAM;AAC1C,QAAA;AAAA,IAAEC,GAAGC;AAAAA,EAAAA,IAAYC,EAAeC,CAA6B;AAEnE,MAAI,CAACJ;AAEH,WAAIA,MAAS,OACJ,yBAIDK,GAAU,CAAA,CAAA;AAIpB,QAAMC,IACJN,EAAKM,eAAe,OAAOJ,EAAQF,EAAKM,WAAW,IAAIC;AAErDP,SAAAA,EAAKQ,SAAS,WACT,gBAAAC,EAACC,KAAO,aAAAJ,EAA4B,CAAA,IAEzCN,EAAKQ,SAAS,aACT,gBAAAC,EAACE,KAAQ,aAAAL,EAA4B,CAAA,IAEvC,gBAAAG,EAACJ,KAAQ,aAAAC,EAA4B,CAAA;AAC9C,GAEAM,IAAeb;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Hitachi.js","sources":["../../../../../../../src/components/layout/Header/BrandLogo/Logos/Hitachi.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-react-core\";\n\nexport type HitachiProps = {\n description?: string;\n letteringColor?: string;\n};\n\nconst Hitachi = ({\n description = \"Hitachi logo\",\n letteringColor\n}: HitachiProps) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n x={0}\n y={0}\n width=\"72px\"\n height=\"20px\"\n viewBox=\"0 0 80.5 16.9\"\n xmlSpace=\"preserve\"\n aria-label={description}>\n <path\n fill={letteringColor ?? theme.colors.secondary}\n d=\"M63.6 2.5v4.7H70V2.5h3.1v11.9H70V9.2h-6.3v5.2h-3.1V2.5h3zM33.9 2.5v2h-4.8v9.8H26V4.5h-4.8v-2h12.7zM46 14.3h-3.5l-1-2.6h-5.9l-1 2.6h-3.5l5.5-11.9h3.8L46 14.3zm-7.4-9.8-2.2 5.4h4.4l-2.2-5.4M75.6 2.5h3.1v11.9h-3.1zM4.9 2.5v4.7h6.3V2.5h3.1v11.9h-3.1V9.2H4.9v5.2H1.7V2.5h3.2zM16.9 2.5H20v11.9h-3.1zM45.9 11c-.3-.8-.4-1.6-.4-2.5 0-1.2.2-2.4.8-3.4.6-1 1.5-1.8 2.7-2.2 1.1-.4 2.2-.6 3.5-.6 1.4 0 2.7.3 4 .8 1.1.5 2 1.5 2.2 2.7.1.3.1.5.1.8h-3.3c0-.3-.1-.6-.2-.9-.3-.6-.8-1.2-1.5-1.4-.4-.1-.9-.2-1.4-.2-.5 0-1.1.1-1.5.3-.8.3-1.4.9-1.7 1.7-.3.8-.4 1.6-.4 2.5 0 .7.1 1.4.3 2.1.2.9.9 1.6 1.7 1.9.5.2 1.1.3 1.7.3.5 0 1-.1 1.5-.2.6-.2 1.1-.6 1.4-1.2.2-.4.3-.8.3-1.3H59c0 .4-.1.8-.2 1.1-.3 1.2-1.1 2.2-2.2 2.6-1.2.5-2.6.8-4 .8-1.1 0-2.2-.2-3.2-.5-1.6-.6-2.9-1.7-3.5-3.2z\"\n />\n </svg>\n );\n};\n\nexport default Hitachi;\n"],"names":["Hitachi","description","letteringColor","jsx","theme","colors","secondary","Hitachi$1"],"mappings":";;AAOA,MAAMA,IAAUA,CAAC;AAAA,EACfC,aAAAA,IAAc;AAAA,EACdC,gBAAAA;AACY,MAEV,gBAAAC,EAAC,OACC,EAAA,OAAM,8BACN,GAAG,GACH,GAAG,GACH,OAAM,QACN,QAAO,QACP,SAAQ,iBACR,UAAS,YACT,cAAYF,GACZ,UAAA,gBAAAE,EAAC,QACC,EAAA,MAAMD,KAAkBE,EAAMC,OAAOC,WACrC,GAAE,qvBAAA,CAAovB,EAE1vB,CAAA,GAIJC,IAAeP;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Lumada.js","sources":["../../../../../../../src/components/layout/Header/BrandLogo/Logos/Lumada.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-react-core\";\n\nexport type LumadaProps = {\n description?: string;\n letteringColor?: string;\n};\n\nconst Lumada = ({\n description = \"Lumada logo\",\n letteringColor\n}: LumadaProps) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 300.41 69.38\"\n aria-label={description}>\n <path\n fill=\"#c00\"\n d=\"M55.1 31.44 53.91 27l2.94-3a24.86 24.86 0 0 0-2.06-3.57l-4 1.08-3.26-3.27 1.08-4A24.19 24.19 0 0 0 45 12.2l-2.94 2.94L37.62 14l-1.08-4a24.64 24.64 0 0 0-4.12 0l-1.08 4-4.46 1.19-2.94-2.99a24.8 24.8 0 0 0-3.57 2.05l1.08 4-3.27 3.27-4-1.08A23.58 23.58 0 0 0 12.1 24l2.9 3-1.19 4.46-4 1.08a24.52 24.52 0 0 0 0 4.11l4 1.08L15 42.16l-2.9 2.94a24.27 24.27 0 0 0 2.05 3.57l4-1.07 3.27 3.26-1.08 4A24.46 24.46 0 0 0 23.92 57l2.95-3 4.46 1.2 1 3.78h4.25l1-3.78 4.48-1.2L45 57a25.26 25.26 0 0 0 3.57-2.06l-1.07-4 3.26-3.26 4 1.08a24.19 24.19 0 0 0 2.06-3.57l-3-2.94 1.2-4.46 4-1.08a24.65 24.65 0 0 0 0-4.12ZM52.38 39a18.44 18.44 0 1 1-13.52-22.33A18.44 18.44 0 0 1 52.38 39\"\n />\n <path\n fill={letteringColor ?? theme.colors.secondary}\n d=\"M38.14 19.59a15.43 15.43 0 1 0 11.32 18.65 15.42 15.42 0 0 0-11.32-18.65m8.33 18.2a12.42 12.42 0 1 1-8.78-15.21 12.44 12.44 0 0 1 8.78 15.21\"\n />\n <path\n fill=\"#c00\"\n d=\"M34.68 0a1.49 1.49 0 0 0-1.49 1.48v4.6a1.49 1.49 0 1 0 3 0V1.47A1.48 1.48 0 0 0 34.68 0M34.68 61.81a1.48 1.48 0 0 0-1.49 1.48v4.6a1.49 1.49 0 1 0 3 0v-4.6a1.48 1.48 0 0 0-1.48-1.49M59 10.18a1.48 1.48 0 0 0-2.1 0l-3.27 3.24a1.48 1.48 0 1 0 2.09 2.11L59 12.28a1.48 1.48 0 0 0 0-2.1M15.5 53.27a1.48 1.48 0 0 0-2.1 0l-3.27 3.23a1.48 1.48 0 1 0 2.09 2.11l3.27-3.24a1.48 1.48 0 0 0 0-2.1M68.78 34.53A1.49 1.49 0 0 0 67.3 33h-4.61a1.49 1.49 0 0 0 0 3h4.61a1.48 1.48 0 0 0 1.49-1.48M7.58 34.28a1.5 1.5 0 0 0-1.48-1.5H1.49A1.49 1.49 0 0 0 0 34.24a1.5 1.5 0 0 0 1.48 1.5h4.6a1.48 1.48 0 0 0 1.5-1.47M58.75 58.81a1.48 1.48 0 0 0 0-2.1l-3.24-3.27a1.48 1.48 0 1 0-2.11 2.09l3.24 3.27a1.48 1.48 0 0 0 2.1 0M15.66 15.35a1.49 1.49 0 0 0 0-2.1L12.42 10a1.48 1.48 0 1 0-2.11 2.09l3.25 3.27a1.48 1.48 0 0 0 2.1 0\"\n />\n <path\n fill={letteringColor ?? theme.colors.secondary}\n d=\"M79.31 15.58h3.45v32H99v3.09H79.31ZM108.89 15.58h3.49v22.8c0 6 3.89 9.68 9.93 9.68s10-3.64 10-9.78v-22.7h3.45v22.85c0 7.78-5.44 12.82-13.37 12.82s-13.47-5-13.47-12.82ZM152.13 15.58h3.59l9.18 20.61c.8 1.79 1.7 4.29 1.7 4.29h.1s.94-2.5 1.74-4.29l9.18-20.61h3.54L184 50.65h-3.45l-1.94-24.54c-.15-1.9-.1-4.89-.1-4.89h-.1s-1.05 3.09-1.85 4.89l-8.23 18h-3.24l-8.23-18c-.8-1.75-1.89-5-1.89-5h-.1s0 3.09-.1 5l-1.95 24.54h-3.44ZM215.32 39.48h-14.11l-4 11.17h-3.64l12.87-35.07h3.69L223 50.65h-3.65Zm-7.08-20.25s-.75 2.89-1.35 4.54l-4.68 12.72h12.07l-4.59-12.72c-.6-1.65-1.35-4.54-1.35-4.54ZM233.73 15.58h11.32c10.52 0 17.61 6.44 17.61 17.51s-7.09 17.56-17.61 17.56h-11.32Zm11 32c8.63 0 14.36-5.09 14.36-14.47s-5.78-14.41-14.36-14.41h-7.53v28.86ZM292.73 39.48h-14.12l-4 11.17H271l12.87-35.07h3.69l12.87 35.07h-3.64Zm-7.08-20.25s-.75 2.89-1.35 4.54l-4.69 12.72h12.07l-4.59-12.72c-.6-1.65-1.34-4.54-1.34-4.54Z\"\n />\n </svg>\n );\n};\n\nexport default Lumada;\n"],"names":["Lumada","description","letteringColor","jsx","theme","colors","secondary","Lumada$1"],"mappings":";;AAOA,MAAMA,IAASA,CAAC;AAAA,EACdC,aAAAA,IAAc;AAAA,EACdC,gBAAAA;AACW,wBAER,OACC,EAAA,OAAM,8BACN,SAAQ,oBACR,cAAYD,GACZ,UAAA;AAAA,EAAA,gBAAAE,EAAC,QACC,EAAA,MAAK,QACL,GAAE,2pBAAypB;AAAA,EAE7pB,gBAAAA,EAAC,UACC,MAAMD,KAAkBE,EAAMC,OAAOC,WACrC,GAAE,gJAA8I;AAAA,EAEjJ,gBAAAH,EAAA,QAAA,EACC,MAAK,QACL,GAAE,6xBAA2xB;AAAA,EAE/xB,gBAAAA,EAAC,UACC,MAAMD,KAAkBE,EAAMC,OAAOC,WACrC,GAAE,o4BAAk4B;AAEx4B,EAAA,CAAA,GAIJC,IAAeP;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pentaho.js","sources":["../../../../../../../src/components/layout/Header/BrandLogo/Logos/Pentaho.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-react-core\";\n\nexport type PentahoProps = {\n description?: string;\n letteringColor?: string;\n};\n\nconst Pentaho = ({\n description = \"Pentaho logo\",\n letteringColor\n}: PentahoProps) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n x={0}\n y={0}\n width=\"70px\"\n height=\"13px\"\n viewBox=\"0 0 70 13\"\n xmlSpace=\"preserve\"\n aria-label={description}>\n <path\n fill={letteringColor ?? theme.colors.secondary}\n d=\"M0.784 0.559999H5.936C6.64 0.559999 7.248 0.650666 7.76 0.832C8.272 1.01333 8.704 1.27467 9.056 1.616C9.42933 1.95733 9.712 2.368 9.904 2.848C10.1067 3.328 10.208 3.856 10.208 4.432C10.208 4.976 10.1173 5.47733 9.936 5.936C9.75467 6.39467 9.49333 6.78933 9.152 7.12C8.82133 7.45067 8.416 7.712 7.936 7.904C7.456 8.08533 6.92267 8.176 6.336 8.176H3.664V12H0.784V0.559999ZM5.76 5.936C6.272 5.936 6.66667 5.79733 6.944 5.52C7.22133 5.24267 7.36 4.87467 7.36 4.416C7.36 3.95733 7.22133 3.6 6.944 3.344C6.66667 3.07733 6.272 2.944 5.76 2.944H3.664V5.936H5.76ZM14.749 12.24C14.077 12.24 13.469 12.1333 12.925 11.92C12.381 11.696 11.9223 11.392 11.549 11.008C11.1757 10.6133 10.8877 10.1493 10.685 9.616C10.4823 9.08267 10.381 8.50667 10.381 7.888C10.381 7.28 10.4823 6.71467 10.685 6.192C10.8877 5.65867 11.1757 5.2 11.549 4.816C11.9223 4.42133 12.365 4.11733 12.877 3.904C13.389 3.68 13.9597 3.568 14.589 3.568C15.1757 3.568 15.6983 3.65867 16.157 3.84C16.6263 4.02133 17.037 4.272 17.389 4.592C17.8797 5.04 18.2423 5.61067 18.477 6.304C18.7223 6.98667 18.8397 7.744 18.829 8.576H12.941C13.0263 9.13067 13.2183 9.568 13.517 9.888C13.8157 10.208 14.237 10.368 14.781 10.368C15.1223 10.368 15.405 10.2987 15.629 10.16C15.853 10.0107 16.0237 9.808 16.141 9.552H18.685C18.5997 9.92533 18.4397 10.2827 18.205 10.624C17.9703 10.9547 17.6717 11.2427 17.309 11.488C16.9677 11.7333 16.5837 11.92 16.157 12.048C15.741 12.176 15.2717 12.24 14.749 12.24ZM16.189 7.024C16.1357 6.53333 15.9703 6.144 15.693 5.856C15.4157 5.568 15.0637 5.424 14.637 5.424C14.1357 5.424 13.7517 5.568 13.485 5.856C13.2183 6.144 13.0423 6.53333 12.957 7.024H16.189ZM19.7021 3.808H22.2141V4.928H22.2621C22.5715 4.48 22.9235 4.144 23.3181 3.92C23.7235 3.68533 24.2141 3.568 24.7901 3.568C25.2381 3.568 25.6381 3.648 25.9901 3.808C26.3421 3.95733 26.6408 4.17067 26.8861 4.448C27.1315 4.71467 27.3181 5.04 27.4461 5.424C27.5741 5.79733 27.6381 6.21333 27.6381 6.672V12H25.0301V7.2C25.0301 6.76267 24.9235 6.41067 24.7101 6.144C24.4968 5.87733 24.1768 5.744 23.7501 5.744C23.3128 5.744 22.9608 5.904 22.6941 6.224C22.4381 6.544 22.3101 6.96 22.3101 7.472V12H19.7021V3.808ZM31.9189 12.096C31.5349 12.096 31.1829 12.064 30.8629 12C30.5535 11.9253 30.2815 11.8027 30.0469 11.632C29.8122 11.4613 29.6309 11.232 29.5029 10.944C29.3749 10.6453 29.3109 10.2773 29.3109 9.84V5.44H28.2229V3.808H29.3109V1.216H31.8549V3.808H33.3429V5.44H31.8549V9.28C31.8549 9.6 31.9349 9.81333 32.0949 9.92C32.2655 10.0267 32.4895 10.08 32.7669 10.08C32.8842 10.08 32.9962 10.08 33.1029 10.08C33.2095 10.0693 33.2895 10.064 33.3429 10.064V11.968C33.2255 12 33.0442 12.0267 32.7989 12.048C32.5642 12.08 32.2709 12.096 31.9189 12.096ZM36.8525 12.208C36.4472 12.208 36.0685 12.1547 35.7165 12.048C35.3752 11.9413 35.0818 11.7813 34.8365 11.568C34.5912 11.3547 34.3992 11.0933 34.2605 10.784C34.1218 10.4747 34.0525 10.1173 34.0525 9.712C34.0525 9.264 34.1325 8.89067 34.2925 8.592C34.4632 8.28267 34.6925 8.032 34.9805 7.84C35.2685 7.63733 35.5992 7.48267 35.9725 7.376C36.3565 7.26933 36.7618 7.18933 37.1885 7.136C37.9565 7.04 38.4952 6.93333 38.8045 6.816C39.1138 6.69867 39.2685 6.50133 39.2685 6.224C39.2685 5.95733 39.1778 5.744 38.9965 5.584C38.8258 5.424 38.5432 5.344 38.1485 5.344C37.7325 5.344 37.4178 5.43467 37.2045 5.616C36.9912 5.79733 36.8632 6.05867 36.8205 6.4H34.4205C34.4312 6.016 34.5165 5.65333 34.6765 5.312C34.8365 4.97067 35.0658 4.672 35.3645 4.416C35.6738 4.16 36.0578 3.95733 36.5165 3.808C36.9752 3.65867 37.5138 3.584 38.1325 3.584C38.7512 3.584 39.2738 3.64267 39.7005 3.76C40.1272 3.86667 40.4898 4.032 40.7885 4.256C41.1405 4.512 41.4018 4.83733 41.5725 5.232C41.7432 5.62667 41.8285 6.08 41.8285 6.592V10.72C41.8285 11.0507 41.8445 11.312 41.8765 11.504C41.9192 11.6853 41.9992 11.8133 42.1165 11.888V12H39.5885C39.5245 11.9147 39.4712 11.7973 39.4285 11.648C39.3858 11.488 39.3485 11.3013 39.3165 11.088H39.2845C39.0392 11.4293 38.7245 11.7013 38.3405 11.904C37.9672 12.1067 37.4712 12.208 36.8525 12.208ZM37.6845 10.544C38.1752 10.544 38.5698 10.4107 38.8685 10.144C39.1778 9.87733 39.3325 9.52 39.3325 9.072V8.096C39.1618 8.18133 38.9592 8.26133 38.7245 8.336C38.5005 8.4 38.2552 8.464 37.9885 8.528C37.4872 8.64533 37.1245 8.784 36.9005 8.944C36.6765 9.09333 36.5645 9.32267 36.5645 9.632C36.5645 9.96267 36.6712 10.1973 36.8845 10.336C37.0978 10.4747 37.3645 10.544 37.6845 10.544ZM43.0928 0.559999H45.7008V4.816H45.7488C46.0474 4.42133 46.3834 4.11733 46.7568 3.904C47.1301 3.68 47.6048 3.568 48.1808 3.568C48.6288 3.568 49.0288 3.648 49.3808 3.808C49.7328 3.95733 50.0314 4.17067 50.2768 4.448C50.5221 4.71467 50.7088 5.04 50.8368 5.424C50.9648 5.79733 51.0288 6.21333 51.0288 6.672V12H48.4208V7.2C48.4208 6.76267 48.3141 6.41067 48.1008 6.144C47.8874 5.87733 47.5674 5.744 47.1408 5.744C46.7034 5.744 46.3514 5.904 46.0848 6.224C45.8288 6.544 45.7008 6.96 45.7008 7.472V12H43.0928V0.559999ZM56.2178 10.4C56.7938 10.4 57.2258 10.176 57.5138 9.728C57.8124 9.26933 57.9618 8.66667 57.9618 7.92C57.9618 7.17333 57.8124 6.57067 57.5138 6.112C57.2258 5.65333 56.7938 5.424 56.2178 5.424C55.6418 5.424 55.2098 5.65333 54.9218 6.112C54.6338 6.57067 54.4898 7.17333 54.4898 7.92C54.4898 8.66667 54.6338 9.26933 54.9218 9.728C55.2098 10.176 55.6418 10.4 56.2178 10.4ZM56.2338 12.256C55.5724 12.256 54.9698 12.1493 54.4258 11.936C53.8924 11.712 53.4338 11.408 53.0498 11.024C52.6658 10.6293 52.3671 10.1707 52.1538 9.648C51.9511 9.11467 51.8498 8.53867 51.8498 7.92C51.8498 7.30133 51.9511 6.73067 52.1538 6.208C52.3671 5.67467 52.6658 5.216 53.0498 4.832C53.4338 4.43733 53.8924 4.13333 54.4258 3.92C54.9698 3.696 55.5724 3.584 56.2338 3.584C56.8951 3.584 57.4924 3.696 58.0258 3.92C58.5698 4.13333 59.0284 4.43733 59.4018 4.832C59.7858 5.216 60.0791 5.67467 60.2818 6.208C60.4951 6.73067 60.6018 7.30133 60.6018 7.92C60.6018 8.53867 60.4951 9.11467 60.2818 9.648C60.0791 10.1707 59.7858 10.6293 59.4018 11.024C59.0284 11.408 58.5698 11.712 58.0258 11.936C57.4924 12.1493 56.8951 12.256 56.2338 12.256ZM64.2674 7.776H61.4994V5.68H64.2674V2.736H66.5074V5.68H69.2754V7.776H66.5074V10.736H64.2674V7.776Z\"\n />\n </svg>\n );\n};\n\nexport default Pentaho;\n"],"names":["Pentaho","description","letteringColor","jsx","theme","colors","secondary","Pentaho$1"],"mappings":";;AAOA,MAAMA,IAAUA,CAAC;AAAA,EACfC,aAAAA,IAAc;AAAA,EACdC,gBAAAA;AACY,MAEV,gBAAAC,EAAC,OACC,EAAA,OAAM,8BACN,GAAG,GACH,GAAG,GACH,OAAM,QACN,QAAO,QACP,SAAQ,aACR,UAAS,YACT,cAAYF,GACZ,UAAA,gBAAAE,EAAC,QACC,EAAA,MAAMD,KAAkBE,EAAMC,OAAOC,WACrC,GAAE,+6LAAA,CAA86L,EAEp7L,CAAA,GAIJC,IAAeP;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sources":["../../../../../src/components/layout/Header/Header.tsx"],"sourcesContent":["import { Helmet } from \"react-helmet-async\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n HvButton,\n HvHeader,\n HvHeaderBrand,\n HvHeaderNavigation,\n HvHeaderNavigationProps\n} from \"@hitachivantara/uikit-react-core\";\n\nimport {\n CONFIG_TRANSLATIONS_NAMESPACE,\n useHvAppShellConfig\n} from \"@hitachivantara/app-shell-shared\";\nimport { useHvNavigation } from \"@hitachivantara/app-shell-navigation\";\n\nimport BrandLogo from \"./BrandLogo\";\nimport StyledIconWrapper from \"./styles\";\n\nimport useNavigationContext from \"../../../providers/hooks/useNavigationContext\";\nimport IconUiKit from \"../../IconUiKit\";\nimport HeaderActions from \"./HeaderActions\";\n\nconst Header = () => {\n const { t } = useTranslation(undefined, { keyPrefix: \"header.navigation\" });\n const { t: tConfig } = useTranslation(CONFIG_TRANSLATIONS_NAMESPACE);\n const appShellConfig = useHvAppShellConfig();\n const { navigate } = useHvNavigation();\n\n const {\n items,\n selectedMenuItemId,\n rootMenuItemId,\n isCompactMode,\n switchVerticalNavigationMode,\n verticalNavigationMode,\n verticalNavigationItems\n } = useNavigationContext();\n\n const isOnlyTopMode = appShellConfig.navigationMode === \"ONLY_TOP\";\n const showNavigation =\n !isCompactMode &&\n appShellConfig.navigationMode !== \"ONLY_LEFT\" &&\n items.length > 0;\n const isVerticalNavigationClosed = verticalNavigationMode === \"CLOSED\";\n const showVerticalNavigationButton =\n isCompactMode && verticalNavigationItems.length > 0;\n\n const handleNavigationChange: HvHeaderNavigationProps[\"onClick\"] = (\n event,\n selectedItem\n ) => {\n if (selectedItem.href) {\n navigate(selectedItem.href, {\n state: { selectedItemId: selectedItem.id }\n });\n }\n };\n\n const name = appShellConfig.name ? tConfig(appShellConfig.name) : \"\";\n\n return (\n <HvHeader position=\"fixed\">\n <Helmet>\n <title>{name}</title>\n </Helmet>\n\n {showVerticalNavigationButton && (\n <HvButton\n icon\n aria-label={\n isVerticalNavigationClosed\n ? t(\"openNavigationPanel\")\n : t(\"closeNavigationPanel\")\n }\n aria-expanded={!isVerticalNavigationClosed}\n onClick={switchVerticalNavigationMode}>\n <IconUiKit name={isVerticalNavigationClosed ? \"Menu\" : \"Close\"} />\n </HvButton>\n )}\n\n <HvHeaderBrand\n logo={\n <StyledIconWrapper>\n <BrandLogo logo={appShellConfig.logo} />\n </StyledIconWrapper>\n }\n name={name}\n />\n {showNavigation && (\n <HvHeaderNavigation\n data={items}\n selected={isOnlyTopMode ? selectedMenuItemId : rootMenuItemId}\n onClick={handleNavigationChange}\n levels={isOnlyTopMode ? 2 : 1}\n />\n )}\n\n <HeaderActions />\n </HvHeader>\n );\n};\n\nexport default Header;\n"],"names":["Header","t","useTranslation","undefined","keyPrefix","tConfig","CONFIG_TRANSLATIONS_NAMESPACE","appShellConfig","useHvAppShellConfig","navigate","useHvNavigation","items","selectedMenuItemId","rootMenuItemId","isCompactMode","switchVerticalNavigationMode","verticalNavigationMode","verticalNavigationItems","useNavigationContext","isOnlyTopMode","navigationMode","showNavigation","length","isVerticalNavigationClosed","showVerticalNavigationButton","handleNavigationChange","event","selectedItem","href","state","selectedItemId","id","name","jsxs","HvHeader","jsx","Helmet","HvButton","IconUiKit","HvHeaderBrand","StyledIconWrapper","BrandLogo","logo","HvHeaderNavigation","HeaderActions","Header$1"],"mappings":";;;;;;;;;;;AAwBA,MAAMA,IAASA,MAAM;AACb,QAAA;AAAA,IAAEC,GAAAA;AAAAA,EAAAA,IAAMC,EAAeC,QAAW;AAAA,IAAEC,WAAW;AAAA,EAAA,CAAqB,GACpE;AAAA,IAAEH,GAAGI;AAAAA,EAAAA,IAAYH,EAAeI,CAA6B,GAC7DC,IAAiBC,KACjB;AAAA,IAAEC,UAAAA;AAAAA,MAAaC,EAAgB,GAE/B;AAAA,IACJC,OAAAA;AAAAA,IACAC,oBAAAA;AAAAA,IACAC,gBAAAA;AAAAA,IACAC,eAAAA;AAAAA,IACAC,8BAAAA;AAAAA,IACAC,wBAAAA;AAAAA,IACAC,yBAAAA;AAAAA,MACEC,EAAqB,GAEnBC,IAAgBZ,EAAea,mBAAmB,YAClDC,IACJ,CAACP,KACDP,EAAea,mBAAmB,eAClCT,EAAMW,SAAS,GACXC,IAA6BP,MAA2B,UACxDQ,IACJV,KAAiBG,EAAwBK,SAAS,GAE9CG,IAA6DA,CACjEC,GACAC,MACG;AACH,IAAIA,EAAaC,QACfnB,EAASkB,EAAaC,MAAM;AAAA,MAC1BC,OAAO;AAAA,QAAEC,gBAAgBH,EAAaI;AAAAA,MAAG;AAAA,IAAA,CAC1C;AAAA,EACH,GAGIC,IAAOzB,EAAeyB,OAAO3B,EAAQE,EAAeyB,IAAI,IAAI;AAGhE,SAAA,gBAAAC,EAACC,GAAS,EAAA,UAAS,SACjB,UAAA;AAAA,IAAA,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAD,EAAC,SAAOH,EAAAA,UAAAA,EAAK,CAAA,GACf;AAAA,IAECR,KACE,gBAAAW,EAAAE,GAAA,EACC,MAAI,IACJ,cAEMpC,EADJsB,IACM,wBACA,sBADqB,GAG7B,iBAAe,CAACA,GAChB,SAASR,GACT,UAAA,gBAAAoB,EAACG,KAAU,MAAMf,IAA6B,SAAS,QAAA,CAAQ,EACjE,CAAA;AAAA,IAGD,gBAAAY,EAAAI,GAAA,EACC,MACE,gBAAAJ,EAACK,GACC,EAAA,UAAA,gBAAAL,EAACM,GAAU,EAAA,MAAMlC,EAAemC,KAAK,CAAA,EACvC,CAAA,GAEF,MAAAV,GAAW;AAAA,IAEZX,KACC,gBAAAc,EAACQ,GACC,EAAA,MAAMhC,GACN,UAAUQ,IAAgBP,IAAqBC,GAC/C,SAASY,GACT,QAAQN,IAAgB,IAAI,GAE/B;AAAA,sBAEAyB,GAAa,EAAA;AAAA,EAChB,EAAA,CAAA;AAEJ,GAEAC,IAAe7C;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicAction.js","sources":["../../../../../../../src/components/layout/Header/HeaderActions/DynamicAction/DynamicAction.tsx"],"sourcesContent":["import { Suspense, lazy, memo, useEffect, useState } from \"react\";\n\nexport interface DynamicActionProps {\n bundle: string;\n}\n\nconst DynamicAction = ({ bundle, ...others }: DynamicActionProps) => {\n // Create a state to keep track of errors for each component\n const [loadError, setLoadError] = useState(null);\n\n useEffect(() => {\n setLoadError(null);\n }, [bundle]);\n\n const Action = lazy(() =>\n import(/* @vite-ignore */ bundle).catch(error => {\n console.error(error);\n // Update the state to track the error for this component\n setLoadError(error);\n return { default: () => null };\n })\n );\n\n return (\n <Suspense fallback={null}>\n {/* Render the component only if there was no error while loading it */}\n {!loadError && <Action {...others} />}\n </Suspense>\n );\n};\n\nexport default memo(DynamicAction);\n"],"names":["DynamicAction","bundle","others","loadError","setLoadError","useState","useEffect","Action","lazy","catch","error","console","default","jsx","Suspense","memo"],"mappings":";;AAMA,MAAMA,IAAgBA,CAAC;AAAA,EAAEC,QAAAA;AAAAA,EAAQ,GAAGC;AAA2B,MAAM;AAEnE,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAS,IAAI;AAE/CC,EAAAA,EAAU,MAAM;AACdF,IAAAA,EAAa,IAAI;AAAA,EAAA,GAChB,CAACH,CAAM,CAAC;AAELM,QAAAA,IAASC,EAAK,MAClB;AAAA;AAAA,IAA0BP;AAAAA,IAAQQ,MAAMC,CAASA,OAC/CC,QAAQD,MAAMA,CAAK,GAEnBN,EAAaM,CAAK,GACX;AAAA,IAAEE,SAASA,MAAM;AAAA,EAAA,EACzB,CACH;AAGE,SAAA,gBAAAC,EAACC,GAAS,EAAA,UAAU,MAEjB,UAAA,CAACX,KAAc,gBAAAU,EAAAN,GAAA,EAAO,GAAIL,EAAU,CAAA,EACvC,CAAA;AAEJ,GAEea,IAAAA,EAAKf,CAAa;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderActions.js","sources":["../../../../../../src/components/layout/Header/HeaderActions/HeaderActions.tsx"],"sourcesContent":["import { HvHeaderActions } from \"@hitachivantara/uikit-react-core\";\nimport { useHvAppShellConfig } from \"@hitachivantara/app-shell-shared\";\n\nimport DynamicAction from \"./DynamicAction\";\nimport InternalAction, {\n internalActions\n} from \"./InternalActions/InternalAction/InternalAction\";\n\nconst HeaderActions = () => {\n const { header } = useHvAppShellConfig();\n\n return (\n <HvHeaderActions>\n {header?.actions.map((action, index) => {\n const headerActionKey = `${action.bundle}${index}`;\n if (\n !internalActions.find(\n internalAction => internalAction.bundle === action.bundle\n )\n ) {\n return (\n <DynamicAction\n key={headerActionKey}\n bundle={action.bundle}\n {...action.config}\n />\n );\n }\n return (\n <InternalAction\n key={headerActionKey}\n bundle={action.bundle}\n {...action.config}\n />\n );\n })}\n </HvHeaderActions>\n );\n};\n\nexport default HeaderActions;\n"],"names":["HeaderActions","header","useHvAppShellConfig","HvHeaderActions","actions","map","action","index","headerActionKey","bundle","internalActions","find","internalAction","jsx","InternalAction","config","DynamicAction","HeaderActions$1"],"mappings":";;;;;AAQA,MAAMA,IAAgBA,MAAM;AACpB,QAAA;AAAA,IAAEC,QAAAA;AAAAA,MAAWC,EAAoB;AAEvC,2BACGC,GACEF,EAAAA,UAAAA,KAAAA,gBAAAA,EAAQG,QAAQC,IAAI,CAACC,GAAQC,MAAU;AACtC,UAAMC,IAAmB,GAAEF,EAAOG,MAAO,GAAEF,CAAM;AAE/C,WAACG,EAAgBC,KACfC,CAAAA,MAAkBA,EAAeH,WAAWH,EAAOG,MACrD,IAWA,gBAAAI,EAACC,KAEC,QAAQR,EAAOG,WACXH,EAAOS,UAFNP,CAGL,IAZA,gBAAAK,EAACG,KAEC,QAAQV,EAAOG,WACXH,EAAOS,UAFNP,CAGL;AAAA,EAUP,GACH,CAAA;AAEJ,GAEAS,IAAejB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppSwitcherToggle.js","sources":["../../../../../../../../src/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/AppSwitcherToggle.tsx"],"sourcesContent":["import { useId, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { createPortal } from \"react-dom\";\nimport { ClickAwayListener } from \"@mui/material\";\n\nimport {\n HvAppSwitcherActionApplication,\n HvAppSwitcher,\n HvTypography,\n HvIconButton,\n theme\n} from \"@hitachivantara/uikit-react-core\";\n\nimport {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellAppSwitcherConfig,\n HvAppShellAppSwitcherItemConfig,\n useHvAppShellConfig\n} from \"@hitachivantara/app-shell-shared\";\n\nimport StyledAppShellPanelWrapper from \"./styles\";\nimport IconUiKit from \"../../../../../IconUiKit\";\nimport includesString from \"../../../../../../lib/utils/textUtil\";\nimport createAppContainerElement from \"../../../../../../lib/utils/documentUtil\";\nimport BrandLogo from \"../../../BrandLogo\";\nimport StyledIconWrapper from \"../../../styles\";\n\nconst AppSwitcherToggle: React.FC<HvAppShellAppSwitcherConfig> = ({\n title,\n apps,\n showLogo = false\n}) => {\n const { t } = useTranslation(undefined, { keyPrefix: \"header.appSwitcher\" });\n const { t: tConfig } = useTranslation(CONFIG_TRANSLATIONS_NAMESPACE);\n const [isPanelOpen, setIsPanelOpen] = useState(false);\n const appSwitcherPanelId = useId();\n const appShellConfig = useHvAppShellConfig();\n\n /**\n * Creates the apps list to be sent to the HvAppSwitcherPanel.\n *\n * @memberof AppSwitcherToggle\n */\n const createAppsList = (): HvAppSwitcherActionApplication[] => {\n return apps\n ? apps.map((app: HvAppShellAppSwitcherItemConfig) => ({\n name: tConfig(app.label),\n description: app.description\n ? tConfig(app.description).toString()\n : undefined,\n url: includesString(app.url, \":\")\n ? app.url\n : tConfig(app.url).toString(),\n target: app.target === \"NEW\" ? \"_blank\" : \"_top\",\n iconElement: app.icon && <IconUiKit name={app.icon.name} />\n }))\n : [];\n };\n\n /**\n * Closes the apps panel.\n *\n * @memberof AppSwitcherToggle\n */\n const closeAppSwitcherPanel = () => {\n setIsPanelOpen(false);\n };\n\n /**\n * Handles action clicked event from the AppSwitcherPanel items\n *\n * @memberof AppSwitcherToggle\n */\n const handleAppSwitcherPanelItemClicked = () => {\n closeAppSwitcherPanel();\n };\n\n /**\n * Handles the click on the AppSwitcher button.\n *\n * @memberof AppSwitcherToggle\n */\n const handleAppSwitcherButtonClick = () => {\n setIsPanelOpen(!isPanelOpen);\n };\n\n if (!apps || apps.length === 0) {\n return null;\n }\n\n const finalTitle: string = title ? tConfig(title) : t(\"title\");\n\n return (\n <ClickAwayListener onClickAway={closeAppSwitcherPanel}>\n <div style={{ display: \"flex\", margin: 0 }}>\n <HvIconButton\n title={finalTitle}\n aria-label={finalTitle}\n aria-expanded={isPanelOpen}\n onClick={handleAppSwitcherButtonClick}\n {...(isPanelOpen && { \"aria-controls\": appSwitcherPanelId })}>\n <IconUiKit name=\"AppSwitcher\" />\n {showLogo && (\n <StyledIconWrapper style={{ paddingRight: theme.space.xs }}>\n <BrandLogo logo={appShellConfig.logo} />\n </StyledIconWrapper>\n )}\n </HvIconButton>\n {isPanelOpen &&\n createPortal(\n <StyledAppShellPanelWrapper\n id={appSwitcherPanelId}\n role=\"region\"\n aria-label={t(\"ariaLabel\")}>\n <HvAppSwitcher\n applications={createAppsList()}\n onActionClickedCallback={handleAppSwitcherPanelItemClicked}\n header={\n <HvTypography variant=\"label\">{finalTitle}</HvTypography>\n }\n />\n </StyledAppShellPanelWrapper>,\n createAppContainerElement()\n )}\n </div>\n </ClickAwayListener>\n );\n};\n\nexport default AppSwitcherToggle;\n"],"names":["AppSwitcherToggle","title","apps","showLogo","t","useTranslation","undefined","keyPrefix","tConfig","CONFIG_TRANSLATIONS_NAMESPACE","isPanelOpen","setIsPanelOpen","useState","appSwitcherPanelId","useId","appShellConfig","useHvAppShellConfig","createAppsList","map","app","name","label","description","toString","url","includesString","target","iconElement","icon","jsx","IconUiKit","closeAppSwitcherPanel","handleAppSwitcherPanelItemClicked","handleAppSwitcherButtonClick","length","finalTitle","ClickAwayListener","jsxs","display","margin","HvIconButton","StyledIconWrapper","paddingRight","theme","space","xs","BrandLogo","logo","createPortal","StyledAppShellPanelWrapper","HvAppSwitcher","HvTypography","createAppContainerElement","AppSwitcherToggle$1"],"mappings":";;;;;;;;;;;;;AA2BA,MAAMA,IAA2DA,CAAC;AAAA,EAChEC,OAAAA;AAAAA,EACAC,MAAAA;AAAAA,EACAC,UAAAA,IAAW;AACb,MAAM;AACE,QAAA;AAAA,IAAEC,GAAAA;AAAAA,EAAAA,IAAMC,EAAeC,QAAW;AAAA,IAAEC,WAAW;AAAA,EAAA,CAAsB,GACrE;AAAA,IAAEH,GAAGI;AAAAA,EAAAA,IAAYH,EAAeI,CAA6B,GAC7D,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAC9CC,IAAqBC,KACrBC,IAAiBC,KAOjBC,IAAiBA,MACdf,IACHA,EAAKgB,IAAI,CAACC,OAA0C;AAAA,IAClDC,MAAMZ,EAAQW,EAAIE,KAAK;AAAA,IACvBC,aAAaH,EAAIG,cACbd,EAAQW,EAAIG,WAAW,EAAEC,SACzBjB,IAAAA;AAAAA,IACJkB,KAAKC,EAAeN,EAAIK,KAAK,GAAG,IAC5BL,EAAIK,MACJhB,EAAQW,EAAIK,GAAG,EAAED,SAAS;AAAA,IAC9BG,QAAQP,EAAIO,WAAW,QAAQ,WAAW;AAAA,IAC1CC,aAAaR,EAAIS,QAAQ,gBAAAC,EAACC,KAAU,MAAMX,EAAIS,KAAKR,MAAK;AAAA,EAAA,EACxD,IACF,CAAA,GAQAW,IAAwBA,MAAM;AAClCpB,IAAAA,EAAe,EAAK;AAAA,EAAA,GAQhBqB,IAAoCA,MAAM;AACxB,IAAAD;EAAA,GAQlBE,IAA+BA,MAAM;AACzCtB,IAAAA,EAAe,CAACD,CAAW;AAAA,EAAA;AAG7B,MAAI,CAACR,KAAQA,EAAKgC,WAAW;AACpB,WAAA;AAGT,QAAMC,IAAqBlC,IAAQO,EAAQP,CAAK,IAAIG,EAAE,OAAO;AAE7D,2BACGgC,GAAkB,EAAA,aAAaL,GAC9B,UAAA,gBAAAM,EAAC,SAAI,OAAO;AAAA,IAAEC,SAAS;AAAA,IAAQC,QAAQ;AAAA,EACrC,GAAA,UAAA;AAAA,IAAC,gBAAAF,EAAAG,GAAA,EACC,OAAOL,GACP,cAAYA,GACZ,iBAAezB,GACf,SAASuB,GACT,GAAKvB,KAAe;AAAA,MAAE,iBAAiBG;AAAAA,IACvC,GAAA,UAAA;AAAA,MAAC,gBAAAgB,EAAAC,GAAA,EAAU,MAAK,cAAa,CAAA;AAAA,MAC5B3B,KACE,gBAAA0B,EAAAY,GAAA,EAAkB,OAAO;AAAA,QAAEC,cAAcC,EAAMC,MAAMC;AAAAA,MAAAA,GACpD,UAAC,gBAAAhB,EAAAiB,GAAA,EAAU,MAAM/B,EAAegC,KAAK,CAAA,GACvC;AAAA,IAAA,GAEJ;AAAA,IACCrC,KACCsC,EACG,gBAAAnB,EAAAoB,GAAA,EACC,IAAIpC,GACJ,MAAK,UACL,cAAYT,EAAE,WAAW,GACzB,UAAC,gBAAAyB,EAAAqB,GAAA,EACC,cAAcjC,EAAAA,GACd,yBAAyBe,GACzB,QACG,gBAAAH,EAAAsB,GAAA,EAAa,SAAQ,SAAShB,UAAWA,EAAA,CAAA,EAC3C,CAAA,EAEL,CAAA,GACAiB,GACF;AAAA,EAAA,EACJ,CAAA,EACF,CAAA;AAEJ,GAEAC,IAAerD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../../../../src/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { theme } from \"@hitachivantara/uikit-react-core\";\n\n// zIndex calculation is needed so that the Header shadow goes on top of the panel and not the other way around.\nconst StyledAppShellPanelWrapper = styled.div`\n position: fixed;\n max-height: calc(100vh - ${theme.header.height});\n top: ${theme.header.height};\n right: 0;\n display: flex;\n box-shadow: ${theme.colors.shadow};\n z-index: calc(${theme.zIndices.banner} - 1);\n`;\n\nexport default StyledAppShellPanelWrapper;\n"],"names":["StyledAppShellPanelWrapper","_styled","process","env","NODE_ENV","target","label","theme","header","height","colors","shadow","zIndices","banner","StyledAppShellPanelWrapper$1"],"mappings":";;AAIA,MAAMA,IAA0B,gBAAAC,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAA,2CAEHC,EAAMC,OAAOC,QAAM,UACvCF,EAAMC,OAAOC,QAAM,qCAGZF,EAAMG,OAAOC,QAAM,kBACjBJ,EAAMK,SAASC,QAAM,YAAAX,QAAAC,IAAAC,aACtC,eAAA,KAAA,kxCAAA,GAEDU,IAAed;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColorModeSwitcher.js","sources":["../../../../../../../../src/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/ColorModeSwitcher.tsx"],"sourcesContent":["import { useTranslation } from \"react-i18next\";\n\nimport { HvIconButton, useTheme } from \"@hitachivantara/uikit-react-core\";\nimport {\n HvAppShellEventThemeTrigger,\n HvAppShellEventTheme\n} from \"@hitachivantara/app-shell-events\";\n\nimport IconUiKit from \"../../../../../IconUiKit\";\n\nconst ColorModeSwitcher: React.FC = () => {\n const { t } = useTranslation(undefined, {\n keyPrefix: \"header.colorModeSwitcher\"\n });\n const { colorModes } = useTheme();\n\n const changeColorModeHandler = () => {\n const customEvent = new CustomEvent<HvAppShellEventTheme>(\n HvAppShellEventThemeTrigger,\n {\n detail: {\n colorMode: undefined\n }\n }\n );\n globalThis.dispatchEvent(customEvent);\n };\n\n return colorModes.length > 1 ? (\n <HvIconButton onClick={changeColorModeHandler} title={t(\"ariaLabel\")}>\n <IconUiKit name=\"ThemeSwitcher\" />\n </HvIconButton>\n ) : null;\n};\n\nexport default ColorModeSwitcher;\n"],"names":["ColorModeSwitcher","t","useTranslation","undefined","keyPrefix","colorModes","useTheme","changeColorModeHandler","customEvent","CustomEvent","HvAppShellEventThemeTrigger","detail","colorMode","globalThis","dispatchEvent","length","jsx","HvIconButton","IconUiKit","ColorModeSwitcher$1"],"mappings":";;;;;AAUA,MAAMA,IAA8BA,MAAM;AAClC,QAAA;AAAA,IAAEC,GAAAA;AAAAA,EAAAA,IAAMC,EAAeC,QAAW;AAAA,IACtCC,WAAW;AAAA,EAAA,CACZ,GACK;AAAA,IAAEC,YAAAA;AAAAA,MAAeC,EAAS,GAE1BC,IAAyBA,MAAM;AAC7BC,UAAAA,IAAc,IAAIC,YACtBC,GACA;AAAA,MACEC,QAAQ;AAAA,QACNC,WAAWT;AAAAA,MACb;AAAA,IAAA,CAEJ;AACAU,eAAWC,cAAcN,CAAW;AAAA,EAAA;AAGtC,SAAOH,EAAWU,SAAS,IACxB,gBAAAC,EAAAC,GAAA,EAAa,SAASV,GAAwB,OAAON,EAAE,WAAW,GACjE,UAAC,gBAAAe,EAAAE,GAAA,EAAU,MAAK,gBAAe,CAAA,GACjC,IACE;AACN,GAEAC,IAAenB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HelpButton.js","sources":["../../../../../../../../src/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.tsx"],"sourcesContent":["import { useTranslation } from \"react-i18next\";\n\nimport { HvIconButton } from \"@hitachivantara/uikit-react-core\";\nimport {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellHelp\n} from \"@hitachivantara/app-shell-shared\";\n\nimport includesString from \"../../../../../../lib/utils/textUtil\";\nimport IconUiKit from \"../../../../../IconUiKit\";\n\nconst HelpButton: React.FC<HvAppShellHelp> = ({ url, description }) => {\n const { t } = useTranslation(undefined, { keyPrefix: \"header.helpUrl\" });\n const { t: tConfig } = useTranslation(CONFIG_TRANSLATIONS_NAMESPACE);\n\n if (!url) {\n return null;\n }\n\n const finalUrl = includesString(url, \":\") ? url : tConfig(url);\n\n const finalDescription = description\n ? tConfig(description)\n : t(\"documentationLink\");\n\n return (\n <HvIconButton\n component=\"a\"\n href={finalUrl}\n target=\"_blank\"\n title={finalDescription}\n rel=\"noopener,noreferrer\">\n <IconUiKit name=\"Help\" />\n </HvIconButton>\n );\n};\n\nexport default HelpButton;\n"],"names":["HelpButton","url","description","t","useTranslation","undefined","keyPrefix","tConfig","CONFIG_TRANSLATIONS_NAMESPACE","finalUrl","includesString","finalDescription","HvIconButton","jsx","IconUiKit","HelpButton$1"],"mappings":";;;;;;AAWA,MAAMA,IAAuCA,CAAC;AAAA,EAAEC,KAAAA;AAAAA,EAAKC,aAAAA;AAAY,MAAM;AAC/D,QAAA;AAAA,IAAEC,GAAAA;AAAAA,EAAAA,IAAMC,EAAeC,QAAW;AAAA,IAAEC,WAAW;AAAA,EAAA,CAAkB,GACjE;AAAA,IAAEH,GAAGI;AAAAA,EAAAA,IAAYH,EAAeI,CAA6B;AAEnE,MAAI,CAACP;AACI,WAAA;AAGT,QAAMQ,IAAWC,EAAeT,GAAK,GAAG,IAAIA,IAAMM,EAAQN,CAAG,GAEvDU,IAAmBT,IACrBK,EAAQL,CAAW,IACnBC,EAAE,mBAAmB;AAEzB,2BACGS,GACC,EAAA,WAAU,KACV,MAAMH,GACN,QAAO,UACP,OAAOE,GACP,KAAI,uBACJ,UAAA,gBAAAE,EAACC,GAAU,EAAA,MAAK,QAAM,EACxB,CAAA;AAEJ,GAEAC,IAAef;"}
|
package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InternalAction.js","sources":["../../../../../../../../src/components/layout/Header/HeaderActions/InternalActions/InternalAction/InternalAction.tsx"],"sourcesContent":["import { Suspense, lazy, memo } from \"react\";\n\nimport {\n HvAppShellHelp,\n HvAppShellAppSwitcherConfig\n} from \"@hitachivantara/app-shell-shared\";\n\nexport const internalActions = [\n {\n bundle: \"@hv/theming-client/colorModeSwitcher.js\",\n component: () =>\n import(\"../ColorModeSwitcher\").then(module => ({\n default: module.default as React.ComponentType<Record<string, unknown>>\n }))\n },\n {\n bundle: \"@hv/help-client/button.js\",\n component: () =>\n import(\"../HelpButton\").then(module => ({\n default: module.default as React.ComponentType<HvAppShellHelp>\n }))\n },\n {\n bundle: \"@hv/app-switcher-client/toggle.js\",\n component: () =>\n import(\"../AppSwitcherToggle\").then(module => ({\n default:\n module.default as React.ComponentType<HvAppShellAppSwitcherConfig>\n }))\n }\n];\n\nexport interface InternalActionProps {\n bundle: string;\n}\n\nconst InternalAction = ({ bundle, ...others }: InternalActionProps) => {\n const { component } =\n internalActions.find(internalAction => internalAction.bundle === bundle) ??\n {};\n\n if (!component) {\n return null;\n }\n\n const Action = lazy(\n () =>\n component() as Promise<{\n default:\n | React.ComponentType<Record<string, unknown>>\n | React.ComponentType<HvAppShellHelp>\n | React.ComponentType<HvAppShellAppSwitcherConfig>;\n }>\n );\n\n return (\n <Suspense fallback={null}>\n <Action {...others} />\n </Suspense>\n );\n};\n\nexport default memo(InternalAction);\n"],"names":["internalActions","bundle","component","then","module","default","InternalAction","others","find","internalAction","Action","lazy","jsx","Suspense","memo"],"mappings":";;AAOO,MAAMA,IAAkB,CAC7B;AAAA,EACEC,QAAQ;AAAA,EACRC,WAAWA,MACT,OAAO,+BAAsB,EAAEC,KAAKC,CAAWA,OAAA;AAAA,IAC7CC,SAASD,EAAOC;AAAAA,EAAAA,EAChB;AACN,GACA;AAAA,EACEJ,QAAQ;AAAA,EACRC,WAAWA,MACT,OAAO,wBAAe,EAAEC,KAAKC,CAAWA,OAAA;AAAA,IACtCC,SAASD,EAAOC;AAAAA,EAAAA,EAChB;AACN,GACA;AAAA,EACEJ,QAAQ;AAAA,EACRC,WAAWA,MACT,OAAO,+BAAsB,EAAEC,KAAKC,CAAWA,OAAA;AAAA,IAC7CC,SACED,EAAOC;AAAAA,EAAAA,EACT;AACN,CAAC,GAOGC,IAAiBA,CAAC;AAAA,EAAEL,QAAAA;AAAAA,EAAQ,GAAGM;AAA4B,MAAM;AAC/D,QAAA;AAAA,IAAEL,WAAAA;AAAAA,EAAAA,IACNF,EAAgBQ,KAAKC,CAAAA,MAAkBA,EAAeR,WAAWA,CAAM,KACvE;AAEF,MAAI,CAACC;AACI,WAAA;AAGT,QAAMQ,IAASC,EACb,MACET,EAMJ,CAAA;AAGE,SAAA,gBAAAU,EAACC,KAAS,UAAU,MAClB,4BAACH,GAAO,EAAA,GAAIH,EAAO,CAAA,EACrB,CAAA;AAEJ,GAEeO,IAAAA,EAAKR,CAAc;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../src/components/layout/Header/styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nconst StyledIconWrapper = styled.div`\n height: 20px;\n svg {\n height: inherit;\n }\n`;\n\nexport default StyledIconWrapper;\n"],"names":["StyledIconWrapper","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","StyledIconWrapper$1"],"mappings":";;;;AAEA,MAAMA,IAAiB,gBAAAC,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAAJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAKtB,GAEDC,IAAeZ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.js","sources":["../../../../../src/components/layout/Loading/Loading.tsx"],"sourcesContent":["import { HTMLAttributes } from \"react\";\n\nimport { StyledLoading } from \"./styles\";\n\nexport interface LoadingProps extends HTMLAttributes<HTMLDivElement> {\n loadingLabel?: string;\n}\n\nconst Loading = ({ loadingLabel }: LoadingProps) => {\n return <StyledLoading label={loadingLabel} />;\n};\n\nexport default Loading;\n"],"names":["Loading","loadingLabel","jsx","StyledLoading","Loading$1"],"mappings":";;AAQA,MAAMA,IAAUA,CAAC;AAAA,EAAEC,cAAAA;AAA2B,MACrC,gBAAAC,EAACC,GAAc,EAAA,OAAOF,EAAgB,CAAA,GAG/CG,IAAeJ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../src/components/layout/Loading/styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { HvLoading } from \"@hitachivantara/uikit-react-core\";\n\nconst StyledLoading = styled(HvLoading)`\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n`;\n\nconst StyledMain = styled.main`\n flex: 1;\n`;\n\nexport { StyledLoading, StyledMain };\n"],"names":["StyledLoading","HvLoading","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__"],"mappings":";;;;;AAGA,MAAMA,IAAuBC,gBAAAA,EAAAA,GAASC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAACJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAKtC;AAEeT,QAAAC,IAAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Main.js","sources":["../../../../../src/components/layout/Main/Main.tsx"],"sourcesContent":["import useNavigationContext from \"../../../providers/hooks/useNavigationContext\";\nimport VerticalNavigation from \"../VerticalNavigation\";\n\nimport { StyledMain, StyledContainer } from \"./styles\";\nimport useLayoutContext from \"../../../providers/hooks/useLayoutContext\";\n\nexport type MainProps = {\n children: React.ReactNode;\n};\n\nconst Main = ({ children }: MainProps) => {\n const {\n hasVerticalNavigation,\n verticalNavigationMode,\n showHeaderSubMenu,\n isCompactMode,\n switchVerticalNavigationMode\n } = useNavigationContext();\n const { bannerMaxHeight, verticalNavigationWidth } = useLayoutContext();\n\n return (\n <StyledContainer\n showHeaderSubMenu={showHeaderSubMenu}\n isCompactMode={isCompactMode}>\n {hasVerticalNavigation && verticalNavigationMode !== \"CLOSED\" && (\n <VerticalNavigation\n onClickAway={isCompactMode ? switchVerticalNavigationMode : undefined}\n />\n )}\n\n <StyledMain\n paddingTop={bannerMaxHeight}\n verticalNavigationWidth={verticalNavigationWidth}>\n {children}\n </StyledMain>\n </StyledContainer>\n );\n};\n\nexport default Main;\n"],"names":["Main","children","hasVerticalNavigation","verticalNavigationMode","showHeaderSubMenu","isCompactMode","switchVerticalNavigationMode","useNavigationContext","bannerMaxHeight","verticalNavigationWidth","useLayoutContext","jsxs","StyledContainer","jsx","VerticalNavigation","undefined","StyledMain","Main$1"],"mappings":";;;;;AAUA,MAAMA,IAAOA,CAAC;AAAA,EAAEC,UAAAA;AAAoB,MAAM;AAClC,QAAA;AAAA,IACJC,uBAAAA;AAAAA,IACAC,wBAAAA;AAAAA,IACAC,mBAAAA;AAAAA,IACAC,eAAAA;AAAAA,IACAC,8BAAAA;AAAAA,MACEC,EAAqB,GACnB;AAAA,IAAEC,iBAAAA;AAAAA,IAAiBC,yBAAAA;AAAAA,MAA4BC,EAAiB;AAGpE,SAAA,gBAAAC,EAACC,GACC,EAAA,mBAAAR,GACA,eAAAC,GACCH,UAAAA;AAAAA,IAAAA,KAAyBC,MAA2B,YACnD,gBAAAU,EAACC,KACC,aAAaT,IAAgBC,IAA+BS,QAE/D;AAAA,IAEA,gBAAAF,EAAAG,GAAA,EACC,YAAYR,GACZ,yBAAAC,GACCR,UAAAA,GACH;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAgB,IAAejB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../src/components/layout/Main/styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nimport { theme } from \"@hitachivantara/uikit-react-core\";\n\ninterface StyledContainerProps {\n showHeaderSubMenu?: boolean;\n isCompactMode?: boolean;\n}\ninterface StyledMainProps {\n paddingTop?: number;\n verticalNavigationWidth?: number;\n}\n\nconst StyledContainer = styled.div<StyledContainerProps>`\n display: flex;\n padding-top: ${props => {\n if (props.showHeaderSubMenu && !props.isCompactMode) {\n return `calc(${theme.header.height} + ${theme.header.secondLevelHeight})`;\n }\n\n return theme.header.height;\n }};\n min-height: 100vh;\n`;\n\nconst StyledMain = styled.main<StyledMainProps>`\n flex: 1;\n padding-top: ${props => {\n return props.paddingTop\n ? `calc(${props.paddingTop}px + ${theme.space.xs})`\n : undefined;\n }};\n width: ${props => {\n return `calc(100% - ${props.verticalNavigationWidth}px)`;\n }};\n`;\n\nexport { StyledContainer, StyledMain };\n"],"names":["StyledContainer","_styled","process","env","NODE_ENV","target","label","props","showHeaderSubMenu","isCompactMode","theme","header","height","secondLevelHeight","StyledMain","paddingTop","space","xs","undefined","verticalNavigationWidth"],"mappings":";;AAaA,MAAMA,IAAe,gBAAAC,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAA,6BAEJC,CAASA,MAClBA,EAAMC,qBAAqB,CAACD,EAAME,gBAC5B,QAAOC,EAAMC,OAAOC,MAAO,MAAKF,EAAMC,OAAOE,iBAAkB,MAGlEH,EAAMC,OAAOC,gCACrBV,QAAAC,IAAAC,aAEF,eAAA,KAAA,0sDAAA,GAEKU,IAAU,gBAAAb,EAAA,QAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAA,uBAECC,CAASA,MACfA,EAAMQ,aACR,QAAOR,EAAMQ,UAAW,QAAOL,EAAMM,MAAMC,EAAG,MAC/CC,QACL,WACQX,CAASA,MACR,eAAcA,EAAMY,uBAAwB,cACrDjB,QAAAC,IAAAC,aACF,eAAA,KAAA,8sDAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalNavigation.js","sources":["../../../../../src/components/layout/VerticalNavigation/VerticalNavigation.tsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { cx } from \"@emotion/css\";\nimport {\n HvVerticalNavigation,\n HvVerticalNavigationActions,\n HvVerticalNavigationHeader,\n HvVerticalNavigationTree\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { useHvNavigation } from \"@hitachivantara/app-shell-navigation\";\n\nimport { NavigationMenuItem } from \"../../../lib/types\";\nimport useNavigationContext from \"../../../providers/hooks/useNavigationContext\";\nimport { classes } from \"./styles\";\n\nimport withClickAwayListener from \"../../hoc/withClickAwayListener\";\nimport useLayoutContext from \"../../../providers/hooks/useLayoutContext\";\n\nconst VerticalNavigation = () => {\n const { t } = useTranslation(undefined, { keyPrefix: \"verticalNavigation\" });\n const {\n selectedMenuItemId,\n rootMenuItemId,\n verticalNavigationItems,\n isCompactMode,\n verticalNavigationMode,\n switchVerticalNavigationMode\n } = useNavigationContext();\n const { setVerticalNavigationWidth } = useLayoutContext();\n const { navigate } = useHvNavigation();\n const verticalNavigationRef = useRef<HTMLDivElement>(null);\n const isVerticalNavigationExpanded = verticalNavigationMode === \"EXPANDED\";\n\n const changeHandler = (\n event: React.SyntheticEvent<Element, Event>,\n selectedItem: NavigationMenuItem\n ) => {\n // Due to the change from buttons to links on the navigation tree, we need to prevent the default behaviour of\n // the event to avoid full refreshes when clicking on the links.\n event.preventDefault();\n\n if (selectedItem.href) {\n navigate(selectedItem.href, {\n state: { selectedItemId: selectedItem.id }\n });\n\n if (isCompactMode) {\n switchVerticalNavigationMode();\n }\n }\n };\n\n useEffect(() => {\n const { current } = verticalNavigationRef;\n const firstChild = current?.childNodes[0] as HTMLElement;\n if (firstChild && !isCompactMode) {\n setVerticalNavigationWidth(firstChild.offsetWidth);\n } else {\n setVerticalNavigationWidth(0);\n }\n\n return () => setVerticalNavigationWidth(0);\n }, [verticalNavigationMode, isCompactMode, setVerticalNavigationWidth]);\n\n const collapseButtonAriaLabel = isVerticalNavigationExpanded\n ? t(\"ariaLabelCollapse\")\n : t(\"ariaLabelExpand\");\n\n return (\n <div ref={verticalNavigationRef}>\n <HvVerticalNavigation\n className={cx(classes.navigation, {\n [classes.navigationCompact]: isCompactMode\n })}\n open={isVerticalNavigationExpanded}\n useIcons\n slider={isCompactMode}>\n <HvVerticalNavigationHeader\n title={t(\"title\")}\n onCollapseButtonClick={\n !isCompactMode ? switchVerticalNavigationMode : undefined\n }\n collapseButtonProps={{\n \"aria-label\": collapseButtonAriaLabel,\n \"aria-expanded\": isVerticalNavigationExpanded\n }}\n backButtonProps={{\n \"aria-label\": t(\"ariaLabelHeaderBackButton\")\n }}\n />\n\n <HvVerticalNavigationTree\n key={rootMenuItemId}\n mode=\"navigation\"\n collapsible\n aria-label={t(\"ariaLabelNavigationTree\")}\n selected={selectedMenuItemId}\n onChange={changeHandler}\n data={verticalNavigationItems}\n classes={{ navigationPopup: classes.navigationPopup }}\n sliderForwardButtonAriaLabel={t(\"ariaLabelSliderForwardButton\")}\n />\n\n <HvVerticalNavigationActions />\n </HvVerticalNavigation>\n </div>\n );\n};\n\nexport default withClickAwayListener(VerticalNavigation);\n"],"names":["VerticalNavigation","t","useTranslation","undefined","keyPrefix","selectedMenuItemId","rootMenuItemId","verticalNavigationItems","isCompactMode","verticalNavigationMode","switchVerticalNavigationMode","useNavigationContext","setVerticalNavigationWidth","useLayoutContext","navigate","useHvNavigation","verticalNavigationRef","useRef","isVerticalNavigationExpanded","changeHandler","event","selectedItem","preventDefault","href","state","selectedItemId","id","useEffect","current","firstChild","childNodes","offsetWidth","collapseButtonAriaLabel","jsx","HvVerticalNavigation","cx","classes","navigation","navigationCompact","HvVerticalNavigationHeader","HvVerticalNavigationTree","navigationPopup","HvVerticalNavigationActions","withClickAwayListener"],"mappings":";;;;;;;;;;AAmBA,MAAMA,IAAqBA,MAAM;AACzB,QAAA;AAAA,IAAEC,GAAAA;AAAAA,EAAAA,IAAMC,EAAeC,QAAW;AAAA,IAAEC,WAAW;AAAA,EAAA,CAAsB,GACrE;AAAA,IACJC,oBAAAA;AAAAA,IACAC,gBAAAA;AAAAA,IACAC,yBAAAA;AAAAA,IACAC,eAAAA;AAAAA,IACAC,wBAAAA;AAAAA,IACAC,8BAAAA;AAAAA,MACEC,EAAqB,GACnB;AAAA,IAAEC,4BAAAA;AAAAA,MAA+BC,EAAiB,GAClD;AAAA,IAAEC,UAAAA;AAAAA,MAAaC,EAAgB,GAC/BC,IAAwBC,EAAuB,IAAI,GACnDC,IAA+BT,MAA2B,YAE1DU,IAAgBA,CACpBC,GACAC,MACG;AAGHD,IAAAA,EAAME,eAAe,GAEjBD,EAAaE,SACfT,EAASO,EAAaE,MAAM;AAAA,MAC1BC,OAAO;AAAA,QAAEC,gBAAgBJ,EAAaK;AAAAA,MAAG;AAAA,IAAA,CAC1C,GAEGlB,KAC2BE;EAEjC;AAGFiB,EAAAA,EAAU,MAAM;AACR,UAAA;AAAA,MAAEC,SAAAA;AAAAA,IAAYZ,IAAAA,GACda,IAAaD,KAAAA,gBAAAA,EAASE,WAAW;AACnCD,WACFjB,EADEiB,KAAc,CAACrB,IACUqB,EAAWE,cAEX,CAFsB,GAK5C,MAAMnB,EAA2B,CAAC;AAAA,EACxC,GAAA,CAACH,GAAwBD,GAAeI,CAA0B,CAAC;AAEtE,QAAMoB,IACF/B,EAD4BiB,IAC1B,sBACA,iBADmB;AAIvB,SAAA,gBAAAe,EAAC,SAAI,KAAKjB,GACR,4BAACkB,GACC,EAAA,WAAWC,EAAGC,EAAQC,YAAY;AAAA,IAChC,CAACD,EAAQE,iBAAiB,GAAG9B;AAAAA,EAAAA,CAC9B,GACD,MAAMU,GACN,UAAQ,IACR,QAAQV,GACR,UAAA;AAAA,IAAC,gBAAAyB,EAAAM,GAAA,EACC,OAAOtC,EAAE,OAAO,GAChB,uBACGO,IAA+CL,SAA/BO,GAEnB,qBAAqB;AAAA,MACnB,cAAcsB;AAAAA,MACd,iBAAiBd;AAAAA,OAEnB,iBAAiB;AAAA,MACf,cAAcjB,EAAE,2BAA2B;AAAA,IAAA,GAC3C;AAAA,sBAGHuC,GAEC,EAAA,MAAK,cACL,aAAW,IACX,cAAYvC,EAAE,yBAAyB,GACvC,UAAUI,GACV,UAAUc,GACV,MAAMZ,GACN,SAAS;AAAA,MAAEkC,iBAAiBL,EAAQK;AAAAA,IACpC,GAAA,8BAA8BxC,EAAE,8BAA8B,KARzDK,CAQ2D;AAAA,sBAGjEoC,GAA2B,EAAA;AAAA,EAAA,EAC9B,CAAA,EACF,CAAA;AAEJ,GAEeC,IAAAA,EAAsB3C,CAAkB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../src/components/layout/VerticalNavigation/styles.ts"],"sourcesContent":["import { css } from \"@emotion/css\";\nimport {\n theme,\n verticalNavigationTreeClasses\n} from \"@hitachivantara/uikit-react-core\";\n\nexport const classes = {\n navigation: css({\n height: `calc(100vh - ${theme.header.height})`,\n top: theme.header.height,\n zIndex: theme.zIndices.overlay,\n position: \"sticky\"\n }),\n navigationCompact: css({\n position: \"fixed\"\n }),\n navigationPopup: css({\n maxHeight: `calc(100vh - ${theme.header.height})`,\n overflowY: \"auto\",\n boxShadow: theme.colors.shadow,\n [`& .${verticalNavigationTreeClasses.popup}`]: { boxShadow: \"none\" }\n })\n};\n"],"names":["classes","navigation","css","height","theme","header","top","zIndex","zIndices","overlay","position","process","env","NODE_ENV","navigationCompact","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","navigationPopup","maxHeight","overflowY","boxShadow","colors","shadow","verticalNavigationTreeClasses","popup"],"mappings":";;;;;AAMO,MAAMA,IAAU;AAAA,EACrBC,YAAgB,gBAAAC,EAAA;AAAA,IACdC,QAAS,gBAAeC,EAAMC,OAAOF,MAAO;AAAA,IAC5CG,KAAKF,EAAMC,OAAOF;AAAAA,IAClBI,QAAQH,EAAMI,SAASC;AAAAA,IACvBC,UAAU;AAAA,EACXC,GAAAA,QAAAC,IAAAC,aAAAF,eAAAA,KAAAA,sBAAAA,QAAAC,IAAAC,aAAC,eAAA,KAAA,6yCAAA;AAAA,EACFC,mBAAmBZ,gBAAAA,EAAGS,QAAAC,IAAAC,aAAA,eAAA;AAAA,IAAAE,MAAA;AAAA,IAAAC,QAAA;AAAA,EAAA,IAAA;AAAA,IAAAD,MAAA;AAAA,IAAAC,QAAA;AAAA,IAAAC,KAAA;AAAA,IAAAC,UAAAC;AAAAA,EAAAA,CAErB;AAAA,EACDC,iBAAqB,gBAAAlB,EAAA;AAAA,IACnBmB,WAAY,gBAAejB,EAAMC,OAAOF,MAAO;AAAA,IAC/CmB,WAAW;AAAA,IACXC,WAAWnB,EAAMoB,OAAOC;AAAAA,IACxB,CAAE,MAAKC,EAA8BC,KAAM,EAAC,GAAG;AAAA,MAAEJ,WAAW;AAAA,IAAO;AAAA,EACpEZ,GAAAA,QAAAC,IAAAC,aAAA,eAAA,KAAA,2BAAAF,QAAAC,IAAAC,aAAA,eAAA,KAAA,izCAAA;AACH;"}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useClearLocationState.js","sources":["../../../../src/lib/hooks/useClearLocationState.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { useBeforeUnload, useLocation } from \"react-router-dom\";\n\nimport { useHvNavigation } from \"@hitachivantara/app-shell-navigation\";\n\nconst useClearLocationState = () => {\n const location = useLocation();\n const { navigate } = useHvNavigation();\n\n // This will only be called when the user reloads the page or navigates away from the app and is required when\n // the configuration changes (refresh is mandatory) so that useLocation `state` property is reset.\n useBeforeUnload(\n useCallback(() => {\n navigate({ ...location }, { replace: true });\n }, [location, navigate])\n );\n};\n\nexport default useClearLocationState;\n"],"names":["useClearLocationState","location","useLocation","navigate","useHvNavigation","useBeforeUnload","useCallback","replace"],"mappings":";;;AAKA,MAAMA,IAAwBA,MAAM;AAClC,QAAMC,IAAWC,KACX;AAAA,IAAEC,UAAAA;AAAAA,MAAaC,EAAgB;AAIrCC,EAAAA,EACEC,EAAY,MAAM;AACP,IAAAH,EAAA;AAAA,MAAE,GAAGF;AAAAA,IAAAA,GAAY;AAAA,MAAEM,SAAS;AAAA,IAAA,CAAM;AAAA,EAC1C,GAAA,CAACN,GAAUE,CAAQ,CAAC,CACzB;AACF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomEventListener.js","sources":["../../../../src/lib/hooks/useCustomEventListener.ts"],"sourcesContent":["import { useEffect } from \"react\";\nimport {\n HvAppShellEventThemeTrigger,\n HvAppShellEventNotificationTrigger\n} from \"@hitachivantara/app-shell-events\";\nimport useNotificationsEventListener from \"./useNotificationsEventListener\";\nimport useThemeEventListener from \"./useThemeEventListener\";\n\nconst useCustomEventListener = () => {\n const { handleNotificationEvent } = useNotificationsEventListener();\n const { handleThemeEvent } = useThemeEventListener();\n\n useEffect(() => {\n globalThis.addEventListener(\n HvAppShellEventNotificationTrigger,\n handleNotificationEvent as EventListener\n );\n globalThis.addEventListener(\n HvAppShellEventThemeTrigger,\n handleThemeEvent as EventListener\n );\n\n return () => {\n globalThis.removeEventListener(\n HvAppShellEventNotificationTrigger,\n handleNotificationEvent as EventListener\n );\n globalThis.removeEventListener(\n HvAppShellEventThemeTrigger,\n handleThemeEvent as EventListener\n );\n };\n }, [handleNotificationEvent, handleThemeEvent]);\n};\n\nexport default useCustomEventListener;\n"],"names":["useCustomEventListener","handleNotificationEvent","useNotificationsEventListener","handleThemeEvent","useThemeEventListener","useEffect","addEventListener","HvAppShellEventNotificationTrigger","HvAppShellEventThemeTrigger","removeEventListener"],"mappings":";;;;AAQA,MAAMA,IAAyBA,MAAM;AAC7B,QAAA;AAAA,IAAEC,yBAAAA;AAAAA,MAA4BC,EAA8B,GAC5D;AAAA,IAAEC,kBAAAA;AAAAA,MAAqBC,EAAsB;AAEnDC,EAAAA,EAAU,OACGC,WAAAA,iBACTC,GACAN,CACF,GACWK,WAAAA,iBACTE,GACAL,CACF,GAEO,MAAM;AACAM,eAAAA,oBACTF,GACAN,CACF,GACWQ,WAAAA,oBACTD,GACAL,CACF;AAAA,EAAA,IAED,CAACF,GAAyBE,CAAgB,CAAC;AAChD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.js","sources":["../../../../src/lib/hooks/useLocalStorage.ts"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\nexport const LOCAL_STORAGE_KEYS = {\n COLOR_MODE: \"hv/user-preferences/color-mode\",\n NAV_EXPANDED: \"hv/app-shell/expanded\"\n} satisfies Record<string, string>;\n\ntype StorageKey = keyof typeof LOCAL_STORAGE_KEYS;\n\nconst useLocalStorage = (storageKey: StorageKey) => {\n const key = LOCAL_STORAGE_KEYS[storageKey] || storageKey;\n const [value, setValue] = useState(() => localStorage.getItem(key));\n\n const setStoredValue = (newValue: string) => {\n localStorage.setItem(key, newValue);\n };\n\n useEffect(() => {\n const handleStorageChange = (event: StorageEvent) => {\n if (event.key === key) {\n setValue(event.newValue);\n }\n };\n\n window.addEventListener(\"storage\", handleStorageChange);\n\n return () => {\n window.removeEventListener(\"storage\", handleStorageChange);\n };\n }, [key]);\n\n return { value, setStoredValue } as const;\n};\n\nexport default useLocalStorage;\n"],"names":["LOCAL_STORAGE_KEYS","COLOR_MODE","NAV_EXPANDED","useLocalStorage","storageKey","key","value","setValue","useState","localStorage","getItem","setStoredValue","newValue","setItem","useEffect","handleStorageChange","event","addEventListener","removeEventListener"],"mappings":";AAEO,MAAMA,IAAqB;AAAA,EAChCC,YAAY;AAAA,EACZC,cAAc;AAChB,GAIMC,IAAkBA,CAACC,MAA2B;AAC5CC,QAAAA,IAAML,EAAmBI,CAAU,KAAKA,GACxC,CAACE,GAAOC,CAAQ,IAAIC,EAAS,MAAMC,aAAaC,QAAQL,CAAG,CAAC,GAE5DM,IAAiBA,CAACC,MAAqB;AAC9BC,iBAAAA,QAAQR,GAAKO,CAAQ;AAAA,EAAA;AAGpCE,SAAAA,EAAU,MAAM;AACRC,UAAAA,IAAsBA,CAACC,MAAwB;AAC/CA,MAAAA,EAAMX,QAAQA,KAChBE,EAASS,EAAMJ,QAAQ;AAAA,IACzB;AAGKK,kBAAAA,iBAAiB,WAAWF,CAAmB,GAE/C,MAAM;AACJG,aAAAA,oBAAoB,WAAWH,CAAmB;AAAA,IAAA;AAAA,EAC3D,GACC,CAACV,CAAG,CAAC,GAED;AAAA,IAAEC,OAAAA;AAAAA,IAAOK,gBAAAA;AAAAA,EAAAA;AAClB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigationMenuItems.js","sources":["../../../../src/lib/hooks/useNavigationMenuItems.tsx"],"sourcesContent":["import { useContext, useEffect, useMemo } from \"react\";\nimport { useLocation } from \"react-router-dom\";\n\nimport {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellRuntimeContext,\n useHvAppShellConfig,\n useHvMenuItems\n} from \"@hitachivantara/app-shell-shared\";\nimport { useHvNavigation } from \"@hitachivantara/app-shell-navigation\";\n\nimport { createNavigationMenuItems } from \"../utils/navigationUtil\";\nimport { MenuItemsContext } from \"../types\";\n\nconst MAX_TOP_MENU_DEPTH = 2;\n\nconst useNavigationMenuItems = (): MenuItemsContext => {\n // use the i18n instance from the app shell runtime context to ensure we're using\n // the app shell instance of i18n and not the one from the embedded app\n const { pathname } = useLocation();\n const { navigationMode } = useHvAppShellConfig();\n const { navigate } = useHvNavigation();\n const { i18n } = useContext(HvAppShellRuntimeContext) ?? {};\n const tConfig = useMemo(\n () =>\n i18n?.getFixedT(i18n.language, CONFIG_TRANSLATIONS_NAMESPACE) ??\n // should not happen, but fallback if the i18n instance is not available\n ((l: string) => l),\n [i18n]\n );\n\n const { items, selectedMenuItemId, rootMenuItemId } = useHvMenuItems();\n const navigationMenuItemsTmp = createNavigationMenuItems(\n tConfig,\n items,\n navigationMode === \"ONLY_TOP\" ? MAX_TOP_MENU_DEPTH : undefined\n );\n useEffect(() => {\n // First render (or a refresh) without written user url, then navigate to the first menu item\n if (!selectedMenuItemId && pathname === \"/\" && items[0]?.href) {\n navigate(items[0].href);\n }\n }, [pathname, items, navigate, selectedMenuItemId]);\n return {\n items: navigationMenuItemsTmp,\n selectedMenuItemId,\n rootMenuItemId\n };\n};\n\nexport default useNavigationMenuItems;\n"],"names":["MAX_TOP_MENU_DEPTH","useNavigationMenuItems","pathname","useLocation","navigationMode","useHvAppShellConfig","navigate","useHvNavigation","i18n","useContext","HvAppShellRuntimeContext","tConfig","useMemo","getFixedT","language","CONFIG_TRANSLATIONS_NAMESPACE","l","items","selectedMenuItemId","rootMenuItemId","useHvMenuItems","navigationMenuItemsTmp","createNavigationMenuItems","undefined","useEffect","href"],"mappings":";;;;;AAcA,MAAMA,IAAqB,GAErBC,IAAyBA,MAAwB;AAG/C,QAAA;AAAA,IAAEC,UAAAA;AAAAA,MAAaC,EAAY,GAC3B;AAAA,IAAEC,gBAAAA;AAAAA,MAAmBC,EAAoB,GACzC;AAAA,IAAEC,UAAAA;AAAAA,MAAaC,EAAgB,GAC/B;AAAA,IAAEC,MAAAA;AAAAA,EAAAA,IAASC,EAAWC,CAAwB,KAAK,IACnDC,IAAUC,EACd,OACEJ,KAAAA,gBAAAA,EAAMK,UAAUL,EAAKM,UAAUC;AAAAA,GAE9B,CAACC,MAAcA,IAClB,CAACR,CAAI,CACP,GAEM;AAAA,IAAES,OAAAA;AAAAA,IAAOC,oBAAAA;AAAAA,IAAoBC,gBAAAA;AAAAA,MAAmBC,EAAe,GAC/DC,IAAyBC,EAC7BX,GACAM,GACAb,MAAmB,aAAaJ,IAAqBuB,MACvD;AACAC,SAAAA,EAAU,MAAM;;AAEd,IAAI,CAACN,KAAsBhB,MAAa,SAAOe,IAAAA,EAAM,CAAC,MAAPA,QAAAA,EAAUQ,SAC9CR,EAAAA,EAAM,CAAC,EAAEQ,IAAI;AAAA,KAEvB,CAACvB,GAAUe,GAAOX,GAAUY,CAAkB,CAAC,GAC3C;AAAA,IACLD,OAAOI;AAAAA,IACPH,oBAAAA;AAAAA,IACAC,gBAAAA;AAAAA,EAAAA;AAEJ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNotificationsEventListener.js","sources":["../../../../src/lib/hooks/useNotificationsEventListener.ts"],"sourcesContent":["import { useHvSnackbar } from \"@hitachivantara/uikit-react-core\";\nimport { HvAppShellEventNotification } from \"@hitachivantara/app-shell-events\";\n\nimport useBannerContext from \"../../providers/hooks/useBannerContext\";\n\nconst useNotificationsEventListener = () => {\n const { enqueueSnackbar } = useHvSnackbar();\n const { show } = useBannerContext();\n\n const handleCustomEventSnackbar = (\n notification: HvAppShellEventNotification\n ) => {\n const { message, variant, actions, actionsCallback } = notification;\n\n let snackbarContentProps;\n if (actions) {\n snackbarContentProps = {\n action: Array.isArray(actions) ? actions[0] : actions,\n actionCallback: actionsCallback\n };\n }\n\n if (message) {\n enqueueSnackbar(message, {\n variant: variant ?? \"default\",\n\n snackbarContentProps\n });\n }\n };\n\n const handleCustomEventBanner = (\n notification: HvAppShellEventNotification\n ) => {\n if (notification.message) {\n show(notification);\n }\n };\n\n const handleNotificationEvent = (\n event: CustomEvent<HvAppShellEventNotification>\n ) => {\n const notificationEvent = event.detail;\n switch (notificationEvent.type) {\n case \"snackbar\":\n handleCustomEventSnackbar(notificationEvent);\n break;\n case \"banner\":\n handleCustomEventBanner(notificationEvent);\n break;\n default:\n console.warn(\"Invalid notification type\", notificationEvent.type);\n }\n };\n\n return { handleNotificationEvent };\n};\n\nexport default useNotificationsEventListener;\n"],"names":["useNotificationsEventListener","enqueueSnackbar","useHvSnackbar","show","useBannerContext","handleCustomEventSnackbar","notification","message","variant","actions","actionsCallback","snackbarContentProps","action","Array","isArray","actionCallback","handleCustomEventBanner","handleNotificationEvent","event","notificationEvent","detail","type","warn"],"mappings":";;AAKA,MAAMA,IAAgCA,MAAM;AACpC,QAAA;AAAA,IAAEC,iBAAAA;AAAAA,MAAoBC,EAAc,GACpC;AAAA,IAAEC,MAAAA;AAAAA,MAASC,EAAiB,GAE5BC,IAA4BA,CAChCC,MACG;AACG,UAAA;AAAA,MAAEC,SAAAA;AAAAA,MAASC,SAAAA;AAAAA,MAASC,SAAAA;AAAAA,MAASC,iBAAAA;AAAAA,IAAoBJ,IAAAA;AAEnDK,QAAAA;AACJ,IAAIF,MACqBE,IAAA;AAAA,MACrBC,QAAQC,MAAMC,QAAQL,CAAO,IAAIA,EAAQ,CAAC,IAAIA;AAAAA,MAC9CM,gBAAgBL;AAAAA,IAAAA,IAIhBH,KACFN,EAAgBM,GAAS;AAAA,MACvBC,SAASA,KAAW;AAAA,MAEpBG,sBAAAA;AAAAA,IAAAA,CACD;AAAA,EACH,GAGIK,IAA0BA,CAC9BV,MACG;AACH,IAAIA,EAAaC,WACfJ,EAAKG,CAAY;AAAA,EACnB;AAmBK,SAAA;AAAA,IAAEW,yBAhBuBA,CAC9BC,MACG;AACH,YAAMC,IAAoBD,EAAME;AAChC,cAAQD,EAAkBE,MAAI;AAAA,QAC5B,KAAK;AACHhB,UAAAA,EAA0Bc,CAAiB;AAC3C;AAAA,QACF,KAAK;AACHH,UAAAA,EAAwBG,CAAiB;AACzC;AAAA,QACF;AACUG,kBAAAA,KAAK,6BAA6BH,EAAkBE,IAAI;AAAA,MACpE;AAAA,IAAA;AAAA,EAGOJ;AACX;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeEventListener.js","sources":["../../../../src/lib/hooks/useThemeEventListener.ts"],"sourcesContent":["import { useTheme } from \"@hitachivantara/uikit-react-core\";\n\nimport { HvAppShellEventTheme } from \"@hitachivantara/app-shell-events\";\nimport useLocalStorage from \"./useLocalStorage\";\n\nconst useThemeEventListener = () => {\n const { selectedTheme, changeTheme, selectedMode, colorModes } = useTheme();\n const { setStoredValue } = useLocalStorage(\"COLOR_MODE\");\n\n const getNextColorMode = () => {\n const index = colorModes.indexOf(selectedMode);\n\n const nextIndex = (index + 1) % colorModes.length;\n return colorModes[nextIndex];\n };\n\n const handleThemeEvent = (event: CustomEvent<HvAppShellEventTheme>) => {\n const { colorMode } = event.detail;\n const newColorMode =\n !colorMode || colorModes.indexOf(colorMode) === -1\n ? getNextColorMode()\n : colorMode;\n\n // For now we only want to change the colorMode\n changeTheme(selectedTheme, newColorMode);\n setStoredValue(newColorMode);\n };\n\n return { handleThemeEvent };\n};\n\nexport default useThemeEventListener;\n"],"names":["useThemeEventListener","selectedTheme","changeTheme","selectedMode","colorModes","useTheme","setStoredValue","useLocalStorage","getNextColorMode","nextIndex","indexOf","length","handleThemeEvent","event","colorMode","detail","newColorMode"],"mappings":";;AAKA,MAAMA,IAAwBA,MAAM;AAC5B,QAAA;AAAA,IAAEC,eAAAA;AAAAA,IAAeC,aAAAA;AAAAA,IAAaC,cAAAA;AAAAA,IAAcC,YAAAA;AAAAA,MAAeC,EAAS,GACpE;AAAA,IAAEC,gBAAAA;AAAAA,EAAAA,IAAmBC,EAAgB,YAAY,GAEjDC,IAAmBA,MAAM;AAGvBC,UAAAA,KAFQL,EAAWM,QAAQP,CAAY,IAElB,KAAKC,EAAWO;AAC3C,WAAOP,EAAWK,CAAS;AAAA,EAAA;AAetB,SAAA;AAAA,IAAEG,kBAZgBA,CAACC,MAA6C;AAC/D,YAAA;AAAA,QAAEC,WAAAA;AAAAA,MAAAA,IAAcD,EAAME,QACtBC,IACJ,CAACF,KAAaV,EAAWM,QAAQI,CAAS,MAAM,KAC5CN,EACAM,IAAAA;AAGNZ,MAAAA,EAAYD,GAAee,CAAY,GACvCV,EAAeU,CAAY;AAAA,IAAA;AAAA,EAGpBJ;AACX;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/lib/i18n/index.ts"],"sourcesContent":["import i18next, { i18n } from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport en from \"./localization/en.json\";\nimport pt from \"./localization/pt.json\";\n\nexport const APP_SHELL_NAMESPACE = \"appShell\";\nexport const addResourceBundles = (\n i18nInstance: i18n,\n bundles: Record<string, object>,\n namespace?: string\n) => {\n Object.entries(bundles).forEach(entry => {\n const [key, value] = entry;\n i18nInstance.addResourceBundle(\n key,\n namespace ?? APP_SHELL_NAMESPACE,\n value\n );\n });\n};\n\nconst createI18Next = () => {\n const newInstance = i18next.createInstance();\n newInstance\n .use(LanguageDetector)\n .use(initReactI18next)\n .init({\n defaultNS: APP_SHELL_NAMESPACE,\n fallbackLng: \"en\",\n detection: { order: [\"navigator\"] },\n resources: {}\n });\n\n newInstance.addResourceBundle(\"en\", APP_SHELL_NAMESPACE, en);\n newInstance.addResourceBundle(\"pt\", APP_SHELL_NAMESPACE, pt);\n\n return {\n i18n: newInstance\n };\n};\n\nexport default createI18Next;\n"],"names":["APP_SHELL_NAMESPACE","addResourceBundles","i18nInstance","bundles","namespace","Object","entries","forEach","entry","key","value","addResourceBundle","createI18Next","newInstance","i18next","createInstance","use","LanguageDetector","initReactI18next","init","defaultNS","fallbackLng","detection","order","resources","en","pt","i18n"],"mappings":";;;;;AAMO,MAAMA,IAAsB,YACtBC,IAAqBA,CAChCC,GACAC,GACAC,MACG;AACHC,SAAOC,QAAQH,CAAO,EAAEI,QAAQC,CAASA,MAAA;AACjC,UAAA,CAACC,GAAKC,CAAK,IAAIF;AACrBN,IAAAA,EAAaS,kBACXF,GACAL,KAAaJ,GACbU,CACF;AAAA,EAAA,CACD;AACH,GAEME,IAAgBA,MAAM;AACpBC,QAAAA,IAAcC,EAAQC;AAC5BF,SAAAA,EACGG,IAAIC,CAAgB,EACpBD,IAAIE,CAAgB,EACpBC,KAAK;AAAA,IACJC,WAAWpB;AAAAA,IACXqB,aAAa;AAAA,IACbC,WAAW;AAAA,MAAEC,OAAO,CAAC,WAAW;AAAA,IAAE;AAAA,IAClCC,WAAW,CAAC;AAAA,EAAA,CACb,GAESb,EAAAA,kBAAkB,MAAMX,GAAqByB,CAAE,GAC/Cd,EAAAA,kBAAkB,MAAMX,GAAqB0B,CAAE,GAEpD;AAAA,IACLC,MAAMd;AAAAA,EAAAA;AAEV;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pt.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CombinedProviders.js","sources":["../../../../src/lib/utils/CombinedProviders.tsx"],"sourcesContent":["import { ComponentType, ReactNode, useCallback, ReactElement } from \"react\";\n\ntype CombinedProvidersProps = {\n providers: ComponentType<{ children: ReactNode }>[] | undefined;\n children: ReactNode;\n};\n\nconst CombinedProviders = ({\n providers,\n children: mainChildren\n}: CombinedProvidersProps) => {\n const Combined = useCallback(\n ({ children }: { children: ReactNode }) => {\n let result = children;\n\n if (providers && providers.length > 0) {\n result = providers.reduceRight((Acc, Curr) => {\n return <Curr>{Acc}</Curr>;\n }, children);\n }\n\n return result as ReactElement;\n },\n [providers]\n );\n return <Combined>{mainChildren}</Combined>;\n};\n\nexport default CombinedProviders;\n"],"names":["CombinedProviders","providers","children","mainChildren","Combined","useCallback","result","length","reduceRight","Acc","Curr","jsx","CombinedProviders$1"],"mappings":";;AAOA,MAAMA,IAAoBA,CAAC;AAAA,EACzBC,WAAAA;AAAAA,EACAC,UAAUC;AACY,MAAM;AACtBC,QAAAA,IAAWC,EACf,CAAC;AAAA,IAAEH,UAAAA;AAAAA,EAAAA,MAAwC;AACzC,QAAII,IAASJ;AAETD,WAAAA,KAAaA,EAAUM,SAAS,MAClCD,IAASL,EAAUO,YAAY,CAACC,GAAKC,MAC5B,gBAAAC,EAACD,KAAMD,UAAIA,EAAA,CAAA,GACjBP,CAAQ,IAGNI;AAAAA,EAAAA,GAET,CAACL,CAAS,CACZ;AACO,SAAA,gBAAAU,EAACP,KAAUD,UAAaA,EAAA,CAAA;AACjC,GAEAS,IAAeZ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"basePathUtils.js","sources":["../../../../src/lib/utils/basePathUtils.ts"],"sourcesContent":["import { HvAppShellConfig } from \"@hitachivantara/app-shell-shared\";\n\n/**\n * Returns the app base path.\n * - The path is calculated by returning the sub-path value for the main app.\n * - Main app is the first app that baseUrl matches window.location\n * - App baseUrl don't have case restrictions\n * - If the main app is not discovered, returns \"/\"\n *\n * @return The main app baseUrl, or \"/\" otherwise. Value is always returned in lowercase.\n * @param config The app configuration definition\n */\nconst getBasePath = (config: HvAppShellConfig) => {\n return config?.baseUrl ?? \"/\";\n};\n\nexport default getBasePath;\n"],"names":["getBasePath","config","baseUrl"],"mappings":"AAYMA,MAAAA,IAAcA,CAACC,OACZA,KAAAA,gBAAAA,EAAQC,YAAW;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentUtil.js","sources":["../../../../src/lib/utils/documentUtil.ts"],"sourcesContent":["const createAppContainerElement = (id?: string): HTMLElement => {\n const panelContainerId = \"app-shell-panel-container\";\n let panelContainerElement = document.getElementById(id ?? panelContainerId);\n\n if (!panelContainerElement) {\n panelContainerElement = document.createElement(\"div\");\n panelContainerElement.id = panelContainerId;\n document.body.appendChild(panelContainerElement);\n }\n\n return panelContainerElement;\n};\n\nexport default createAppContainerElement;\n"],"names":["createAppContainerElement","id","panelContainerId","panelContainerElement","document","getElementById","createElement","body","appendChild"],"mappings":"AAAMA,MAAAA,IAA4BA,CAACC,MAA6B;AAC9D,QAAMC,IAAmB;AACzB,MAAIC,IAAwBC,SAASC,eAAeJ,KAAMC,CAAgB;AAE1E,SAAKC,MACqBC,IAAAA,SAASE,cAAc,KAAK,GACpDH,EAAsBF,KAAKC,GAClBK,SAAAA,KAAKC,YAAYL,CAAqB,IAG1CA;AACT;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigationUtil.js","sources":["../../../../src/lib/utils/navigationUtil.tsx"],"sourcesContent":["import { MenuItem } from \"@hitachivantara/app-shell-shared\";\nimport { NavigationMenuItem } from \"../types\";\nimport IconUiKit from \"../../components/IconUiKit\";\n\n/**\n * Creates a navigation data structure ({@link MenuItem}) from the provided menu configuration ({@link NavigationMenuItem}).\n *\n * @param t\n * @param menuItems The set of menu items from configuration.\n * @param maxDepth The maximum depth up until the recursiveness should occur for the creation of the menu items.\n *\n * @returns An array of {@link MenuItem}.\n */\nconst createNavigationMenuItems = (\n t: (key: string) => string,\n menuItems?: MenuItem[],\n maxDepth?: number\n): NavigationMenuItem[] => {\n if (maxDepth !== undefined && maxDepth <= 0) {\n return [];\n }\n\n return (\n menuItems?.reduce<NavigationMenuItem[]>((accumulator, currentValue) => {\n const updatedDepth = maxDepth !== undefined ? maxDepth - 1 : undefined;\n const navItem: NavigationMenuItem = {\n ...currentValue,\n icon: currentValue.icon\n ? ((\n <IconUiKit name={currentValue.icon?.name || \"\"} />\n ) as React.ReactNode)\n : null,\n data: currentValue.data\n ? createNavigationMenuItems(t, currentValue.data, updatedDepth)\n : undefined\n };\n accumulator.push(navItem);\n return accumulator;\n }, []) ?? []\n );\n};\n\n/**\n * Searches for an item with the specified id.\n *\n * @param {NavigationMenuItem[]} data - The navigation data structure.\n * @param {string} itemId - The item id.\n * @returns The item with matching id.\n */\nconst findItemById = (\n data: NavigationMenuItem[],\n itemId: string\n): NavigationMenuItem | null => {\n let foundItem: NavigationMenuItem | null = null;\n data.some(obj => {\n const { id: objId, data: childData } = obj;\n if (objId === itemId) {\n foundItem = obj;\n return true;\n }\n if (childData && childData.length > 0) {\n foundItem = findItemById(childData, itemId);\n return foundItem !== null;\n }\n return false;\n });\n return foundItem;\n};\n\n//\nconst getAppIdFromBundle = (bundle: string): string => {\n const bundleTokens = bundle.split(\"/\");\n let appId: string;\n\n if (bundleTokens[0].startsWith(\"@\")) {\n appId = `${bundleTokens[0]}/${bundleTokens[1]}`;\n } else {\n [appId] = bundleTokens;\n }\n\n return appId;\n};\n\n/**\n * Recursively removes the href property from items in the array if they have a non-empty data property.\n *\n * @param items - The array of items.\n * @returns The new array with the href property removed from items with children.\n */\nconst removeHrefFromMenuItemsWithChildren = (\n items: NavigationMenuItem[]\n): NavigationMenuItem[] => {\n return items.map((item: NavigationMenuItem) => {\n const { href, data, ...rest } = item;\n if (data && data.length > 0) {\n return { ...rest, data: removeHrefFromMenuItemsWithChildren(data) };\n }\n return item;\n });\n};\n\nexport {\n createNavigationMenuItems,\n findItemById,\n removeHrefFromMenuItemsWithChildren,\n getAppIdFromBundle\n};\n"],"names":["createNavigationMenuItems","t","menuItems","maxDepth","undefined","reduce","accumulator","currentValue","updatedDepth","navItem","icon","jsx","IconUiKit","name","data","push","findItemById","itemId","foundItem","some","obj","id","objId","childData","length","getAppIdFromBundle","bundle","bundleTokens","split","appId","startsWith","removeHrefFromMenuItemsWithChildren","items","map","item","href","rest"],"mappings":";;AAaA,MAAMA,IAA4BA,CAChCC,GACAC,GACAC,MAEIA,MAAaC,UAAaD,KAAY,IACjC,MAIPD,KAAAA,gBAAAA,EAAWG,OAA6B,CAACC,GAAaC,MAAiB;;AACrE,QAAMC,IAAeL,MAAaC,SAAYD,IAAW,IAAIC,QACvDK,IAA8B;AAAA,IAClC,GAAGF;AAAAA,IACHG,MAAMH,EAAaG,OAEZ,gBAAAC,EAAAC,GAAA,EAAU,QAAML,IAAAA,EAAaG,SAAbH,gBAAAA,EAAmBM,SAAQ,GAAA,CAAM,IAEpD;AAAA,IACJC,MAAMP,EAAaO,OACfd,EAA0BC,GAAGM,EAAaO,MAAMN,CAAY,IAC5DJ;AAAAA,EAAAA;AAENE,SAAAA,EAAYS,KAAKN,CAAO,GACjBH;AAAAA,GACN,CAAA,OAAO,IAWRU,IAAeA,CACnBF,GACAG,MAC8B;AAC9B,MAAIC,IAAuC;AAC3CJ,SAAAA,EAAKK,KAAKC,CAAOA,MAAA;AACT,UAAA;AAAA,MAAEC,IAAIC;AAAAA,MAAOR,MAAMS;AAAAA,IAAcH,IAAAA;AACvC,WAAIE,MAAUL,KACAG,IAAAA,GACL,MAELG,KAAaA,EAAUC,SAAS,KACtBR,IAAAA,EAAaO,GAAWN,CAAM,GACnCC,MAAc,QAEhB;AAAA,EAAA,CACR,GACMA;AACT,GAGMO,IAAqBA,CAACC,MAA2B;AAC/CC,QAAAA,IAAeD,EAAOE,MAAM,GAAG;AACjCC,MAAAA;AAEJ,SAAIF,EAAa,CAAC,EAAEG,WAAW,GAAG,IAChCD,IAAS,GAAEF,EAAa,CAAC,CAAE,IAAGA,EAAa,CAAC,CAAE,KAE9C,CAACE,CAAK,IAAIF,GAGLE;AACT,GAQME,IAAsCA,CAC1CC,MAEOA,EAAMC,IAAI,CAACC,MAA6B;AACvC,QAAA;AAAA,IAAEC,MAAAA;AAAAA,IAAMrB,MAAAA;AAAAA,IAAM,GAAGsB;AAAAA,EAASF,IAAAA;AAC5BpB,SAAAA,KAAQA,EAAKU,SAAS,IACjB;AAAA,IAAE,GAAGY;AAAAA,IAAMtB,MAAMiB,EAAoCjB,CAAI;AAAA,EAAA,IAE3DoB;AAAAA,CACR;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textUtil.js","sources":["../../../../src/lib/utils/textUtil.ts"],"sourcesContent":["/**\n * Checks if a search string (can be a single character or a string sequence) may be found within the given value string.\n * @param value The string to be checked if contains the search value\n * @param searchParam The string\n */\nconst includesString = (value: string, searchParam: string): boolean => {\n return value.includes(searchParam);\n};\n\nexport default includesString;\n"],"names":["includesString","value","searchParam","includes"],"mappings":"AAKMA,MAAAA,IAAiBA,CAACC,GAAeC,MAC9BD,EAAME,SAASD,CAAW;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorPage.js","sources":["../../../../src/pages/ErrorPage/ErrorPage.tsx"],"sourcesContent":["import { HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport useNavigationContext from \"../../providers/hooks/useNavigationContext\";\n\nimport {\n StyledErrorPage,\n StyledImageWrapper,\n StyledTitleWrapper\n} from \"./styles\";\nimport Footer from \"./Footer\";\n\ntype ErrorPageProps = {\n code?: string;\n title: string;\n /* Background Image location */\n background: string;\n backgroundLabel: string;\n fullPage?: boolean;\n includeFooter?: boolean;\n};\n\nconst ErrorPage = ({\n code = undefined,\n title,\n background,\n backgroundLabel,\n fullPage = false,\n includeFooter = true\n}: ErrorPageProps) => {\n const { isCompactMode, showHeaderSubMenu } = useNavigationContext();\n\n return (\n <StyledErrorPage\n showHeaderSubMenu={showHeaderSubMenu}\n isCompactMode={isCompactMode}\n fullPage={fullPage}>\n <StyledTitleWrapper>\n {code && <HvTypography variant=\"title1\">{code}</HvTypography>}\n <HvTypography variant={isCompactMode ? \"xsTitle\" : \"display\"}>\n {title}\n </HvTypography>\n </StyledTitleWrapper>\n <StyledImageWrapper\n backgroundImage={background}\n role=\"img\"\n aria-label={backgroundLabel}\n />\n {includeFooter && <Footer />}\n </StyledErrorPage>\n );\n};\n\nexport default ErrorPage;\n"],"names":["ErrorPage","code","undefined","title","background","backgroundLabel","fullPage","includeFooter","isCompactMode","showHeaderSubMenu","useNavigationContext","jsxs","StyledErrorPage","StyledTitleWrapper","jsx","HvTypography","StyledImageWrapper","Footer","ErrorPage$1"],"mappings":";;;;;AAoBA,MAAMA,IAAYA,CAAC;AAAA,EACjBC,MAAAA,IAAOC;AAAAA,EACPC,OAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACAC,UAAAA,IAAW;AAAA,EACXC,eAAAA,IAAgB;AACF,MAAM;AACd,QAAA;AAAA,IAAEC,eAAAA;AAAAA,IAAeC,mBAAAA;AAAAA,MAAsBC,EAAqB;AAElE,SACG,gBAAAC,EAAAC,GAAA,EACC,mBAAAH,GACA,eAAAD,GACA,UAAAF,GACA,UAAA;AAAA,IAAA,gBAAAK,EAACE,GACEZ,EAAAA,UAAAA;AAAAA,MAAAA,KAAS,gBAAAa,EAAAC,GAAA,EAAa,SAAQ,UAAUd,UAAKA,GAAA;AAAA,wBAC7Cc,GAAa,EAAA,SAASP,IAAgB,YAAY,WAChDL,UACHA,GAAA;AAAA,IAAA,GACF;AAAA,sBACCa,GACC,EAAA,iBAAiBZ,GACjB,MAAK,OACL,cAAYC,GAAgB;AAAA,IAE7BE,uBAAkBU,GAAS,EAAA;AAAA,EAC9B,EAAA,CAAA;AAEJ,GAEAC,IAAelB;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sources":["../../../../../src/pages/ErrorPage/Footer/Footer.tsx"],"sourcesContent":["import { MouseEventHandler } from \"react\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useErrorBoundary } from \"react-error-boundary\";\n\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\n\nimport { useHvAppShellConfig } from \"@hitachivantara/app-shell-shared\";\nimport { useHvNavigation } from \"@hitachivantara/app-shell-navigation\";\n\nimport useNavigationContext from \"../../../providers/hooks/useNavigationContext\";\n\nimport StyledFooterWrapper from \"./styles\";\n\nconst Footer = () => {\n const { t } = useTranslation();\n const { navigate } = useHvNavigation();\n const { navigationMode } = useHvAppShellConfig();\n const { resetBoundary } = useErrorBoundary();\n const { items, verticalNavigationItems, isCompactMode } =\n useNavigationContext();\n\n const getFirstMenuItem = () => {\n if (!isCompactMode && navigationMode !== \"ONLY_LEFT\") {\n return items.length > 0 ? items[0] : null;\n }\n\n return verticalNavigationItems.length > 0\n ? verticalNavigationItems[0]\n : null;\n };\n\n const firstMenuItem = getFirstMenuItem();\n\n const handleClick:\n | MouseEventHandler<HTMLAnchorElement>\n | undefined = event => {\n event.preventDefault();\n /*\n we need to remove the \".\" because we might be on a sub path (e.g. https://summyhost/path1/path2/) and we need to\n navigate to the root of the site (check https://hv-eng.atlassian.net/browse/TAP-9647)\n */\n if (firstMenuItem?.href) {\n resetBoundary();\n let path = firstMenuItem.href;\n if (path.startsWith(\".\")) {\n path = path.substring(1);\n }\n navigate(path);\n }\n };\n\n return (\n firstMenuItem && (\n <StyledFooterWrapper>\n <HvTypography variant=\"body\">\n <Trans\n t={t}\n i18nKey=\"errors.footer\"\n values={{ label: firstMenuItem.label }}\n components={{\n navigate: (\n <HvTypography\n link\n component=\"a\"\n href={firstMenuItem.href}\n variant=\"label\"\n onClick={handleClick}>\n {/* Place the content of the anchor inside the HvTypography */}\n {firstMenuItem.label}\n </HvTypography>\n )\n }}\n />\n </HvTypography>\n </StyledFooterWrapper>\n )\n );\n};\n\nexport default Footer;\n"],"names":["Footer","t","useTranslation","navigate","useHvNavigation","navigationMode","useHvAppShellConfig","resetBoundary","useErrorBoundary","items","verticalNavigationItems","isCompactMode","useNavigationContext","firstMenuItem","length","handleClick","event","preventDefault","href","path","startsWith","substring","jsx","StyledFooterWrapper","HvTypography","Trans","label","Footer$1"],"mappings":";;;;;;;;AAaA,MAAMA,IAASA,MAAM;AACb,QAAA;AAAA,IAAEC,GAAAA;AAAAA,MAAMC,EAAe,GACvB;AAAA,IAAEC,UAAAA;AAAAA,MAAaC,EAAgB,GAC/B;AAAA,IAAEC,gBAAAA;AAAAA,MAAmBC,EAAoB,GACzC;AAAA,IAAEC,eAAAA;AAAAA,MAAkBC,EAAiB,GACrC;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,yBAAAA;AAAAA,IAAyBC,eAAAA;AAAAA,MACtCC,EAAqB,GAYjBC,IATA,CAACF,KAAiBN,MAAmB,cAChCI,EAAMK,SAAS,IAAIL,EAAM,CAAC,IAAI,OAGhCC,EAAwBI,SAAS,IACpCJ,EAAwB,CAAC,IACzB,MAKAK,IAEUC,CAASA,MAAA;AAMvB,QALAA,EAAMC,eAAe,GAKjBJ,KAAAA,QAAAA,EAAeK,MAAM;AACT,MAAAX;AACd,UAAIY,IAAON,EAAcK;AACrBC,MAAAA,EAAKC,WAAW,GAAG,MACdD,IAAAA,EAAKE,UAAU,CAAC,IAEzBlB,EAASgB,CAAI;AAAA,IACf;AAAA,EAAA;AAGF,SACEN,KACE,gBAAAS,EAACC,GACC,EAAA,UAAA,gBAAAD,EAACE,GAAa,EAAA,SAAQ,QACpB,UAAA,gBAAAF,EAACG,GACC,EAAA,GAAAxB,GACA,SAAQ,iBACR,QAAQ;AAAA,IAAEyB,OAAOb,EAAca;AAAAA,KAC/B,YAAY;AAAA,IACVvB,UACE,gBAAAmB,EAACE,GACC,EAAA,MAAI,IACJ,WAAU,KACV,MAAMX,EAAcK,MACpB,SAAQ,SACR,SAASH,GAERF,YAAca,OACjB;AAAA,EAAA,GAEF,GAEN,EACF,CAAA;AAGN,GAEAC,IAAe3B;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../src/pages/ErrorPage/Footer/styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\r\n\r\nexport const FooterWrapper = styled.div`\r\n text-align: center;\r\n`;\r\n\r\nexport default FooterWrapper;\r\n"],"names":["FooterWrapper","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","StyledFooterWrapper"],"mappings":";;;;AAEO,MAAMA,6BAAaC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAAJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAG,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAEzB,GAEDC,IAAeX;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/pages/ErrorPage/styles.ts"],"sourcesContent":["import styled from \"@emotion/styled\";\r\n\r\nimport { theme } from \"@hitachivantara/uikit-react-core\";\r\n\r\ninterface StyledErrorPageProps {\r\n showHeaderSubMenu?: boolean;\r\n isCompactMode?: boolean;\r\n fullPage?: boolean;\r\n}\r\n\r\ninterface StyledImageWrapperProps {\r\n backgroundImage: string;\r\n}\r\n\r\n/**\r\n * Calculates the height of the image wrapper based on the header sub menu and compact mode.\r\n */\r\nconst calcHeight = ({\r\n showHeaderSubMenu,\r\n isCompactMode,\r\n fullPage\r\n}: StyledErrorPageProps) => {\r\n if (fullPage) {\r\n return `100vh`;\r\n }\r\n if (showHeaderSubMenu && !isCompactMode) {\r\n return `calc(100vh - (${theme.header.height} + ${theme.header.secondLevelHeight}px + ${theme.space.lg} + ${theme.space.lg}))`;\r\n }\r\n return `calc(100vh - (${theme.header.height} + ${theme.space.lg} + ${theme.space.lg}))`;\r\n};\r\n\r\nconst StyledErrorPage = styled.div<StyledErrorPageProps>`\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n margin-top: ${theme.space.lg};\r\n height: ${(props: StyledErrorPageProps) => calcHeight(props)};\r\n`;\r\n\r\nconst StyledImageWrapper = styled.div<StyledImageWrapperProps>`\r\n flex: 1;\r\n display: flex;\r\n background-image: ${props => props.backgroundImage};\r\n background-size: contain;\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n flex-direction: column;\r\n height: 100%;\r\n`;\r\n\r\nconst StyledTitleWrapper = styled.div`\r\n text-align: center;\r\n`;\r\n\r\nexport { StyledTitleWrapper, StyledErrorPage, StyledImageWrapper };\r\n"],"names":["calcHeight","showHeaderSubMenu","isCompactMode","fullPage","theme","header","height","secondLevelHeight","space","lg","StyledErrorPage","_styled","process","env","NODE_ENV","target","label","props","StyledImageWrapper","backgroundImage","StyledTitleWrapper","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__"],"mappings":";;;;;AAiBA,MAAMA,IAAaA,CAAC;AAAA,EAClBC,mBAAAA;AAAAA,EACAC,eAAAA;AAAAA,EACAC,UAAAA;AACoB,MAChBA,IACM,UAENF,KAAqB,CAACC,IAChB,iBAAgBE,EAAMC,OAAOC,MAAO,MAAKF,EAAMC,OAAOE,iBAAkB,QAAOH,EAAMI,MAAMC,EAAG,MAAKL,EAAMI,MAAMC,EAAG,OAEpH,iBAAgBL,EAAMC,OAAOC,MAAO,MAAKF,EAAMI,MAAMC,EAAG,MAAKL,EAAMI,MAAMC,EAAG,MAGhFC,IAAe,gBAAAC,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAILZ,EAAAA,yDAAAA,EAAMI,MAAMC,IAChB,YAAA,CAACQ,MAAgCjB,EAAWiB,CAAK,GAAC,OAAAL,QAAAC,IAAAC,aAC7D,eAAA,KAAA,0gFAAA,GAEKI,IAAkB,gBAAAP,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAGFC,EAAAA,yCAAAA,CAAAA,MAASA,EAAME,iBAAeP,+HAAAA,QAAAC,IAAAC,aAMnD,eAAA,KAAA,0gFAAA,GAEKM,IAAkB,gBAAAT,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAA,EAAAJ,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAO,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA,CAEvB;"}
|