@gen-epix/ui-client-common 4.5.1 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/@types/mui.d.ts +13 -11
  2. package/dist/_chunks/ApplicationFooter.js +32 -23
  3. package/dist/_chunks/ApplicationFooter.js.map +1 -1
  4. package/dist/_chunks/Breadcrumbs.js +1 -2
  5. package/dist/_chunks/CrudPage.js +221 -226
  6. package/dist/_chunks/CrudPage.js.map +1 -1
  7. package/dist/_chunks/GeoFilter.js +1 -2
  8. package/dist/_chunks/GeoFilter.js.map +1 -1
  9. package/dist/_chunks/Notifications.js +1 -2
  10. package/dist/_chunks/OutageList.js +1 -2
  11. package/dist/_chunks/OutageList.js.map +1 -1
  12. package/dist/_chunks/OutageUtil.js +3 -6
  13. package/dist/_chunks/OutageUtil.js.map +1 -1
  14. package/dist/_chunks/QueryClientProvider.js +1 -2
  15. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  16. package/dist/_chunks/QueryClientService.js +6 -8
  17. package/dist/_chunks/QueryClientService.js.map +1 -1
  18. package/dist/_chunks/Reflect.js +1 -2
  19. package/dist/_chunks/Table.js +5 -10
  20. package/dist/_chunks/Table.js.map +1 -1
  21. package/dist/_chunks/TableUtil.js +2 -4
  22. package/dist/_chunks/TableUtil.js.map +1 -1
  23. package/dist/_chunks/TextFilter.js +4 -8
  24. package/dist/_chunks/TextFilter.js.map +1 -1
  25. package/dist/_chunks/UserInvitationsAdminPage.js +1 -2
  26. package/dist/_chunks/UserManagerUtil.js +2 -4
  27. package/dist/_chunks/UserManagerUtil.js.map +1 -1
  28. package/dist/_chunks/_baseAssignValue.js +1 -2
  29. package/dist/_chunks/_baseFlatten.js +1 -2
  30. package/dist/_chunks/_baseGet.js +1 -2
  31. package/dist/_chunks/_baseIteratee.js +1 -2
  32. package/dist/_chunks/_baseUnset.js +1 -2
  33. package/dist/_chunks/_cacheHas.js +1 -2
  34. package/dist/_chunks/_setToString.js +1 -2
  35. package/dist/_chunks/decorate.js +1 -2
  36. package/dist/_chunks/decorateParam.js +1 -2
  37. package/dist/_chunks/format.js +27 -54
  38. package/dist/_chunks/format.js.map +1 -1
  39. package/dist/_chunks/isArrayLike.js +1 -2
  40. package/dist/_chunks/isObject.js +1 -2
  41. package/dist/_chunks/isSymbol.js +1 -2
  42. package/dist/_chunks/last.js +1 -2
  43. package/dist/_chunks/middleware.js +2 -3
  44. package/dist/_chunks/middleware.js.map +1 -1
  45. package/dist/_chunks/omit.js +1 -2
  46. package/dist/_chunks/query.js +8 -15
  47. package/dist/_chunks/query.js.map +1 -1
  48. package/dist/_chunks/react.js +2 -3
  49. package/dist/_chunks/react.js.map +1 -1
  50. package/dist/_chunks/rolldown-runtime.js +2 -3
  51. package/dist/_chunks/tableStore.js +171 -171
  52. package/dist/_chunks/tableStore.js.map +1 -1
  53. package/dist/_chunks/toDate.js +8 -14
  54. package/dist/_chunks/toDate.js.map +1 -1
  55. package/dist/_chunks/uniq.js +1 -2
  56. package/dist/_chunks/useColumnsMenu.js +3 -6
  57. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  58. package/dist/_chunks/useMutation.js +2 -4
  59. package/dist/_chunks/useMutation.js.map +1 -1
  60. package/dist/_chunks/useQueryMemo.js +8 -14
  61. package/dist/_chunks/useQueryMemo.js.map +1 -1
  62. package/dist/_chunks/vanilla.js +1 -2
  63. package/dist/_chunks/vanilla.js.map +1 -1
  64. package/dist/_chunks/yup.js +2 -4
  65. package/dist/_chunks/yup.js.map +1 -1
  66. package/dist/classes/TableEventBus/index.js +1 -2
  67. package/dist/classes/abstracts/FilterAbstract/index.js +1 -2
  68. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  69. package/dist/classes/services/AuthenticationService/index.js +0 -1
  70. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  71. package/dist/classes/services/AuthorizationService/index.js +1 -2
  72. package/dist/classes/services/BackendVersionService/index.js +1 -2
  73. package/dist/classes/services/BreadcrumbService/index.js +1 -2
  74. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  75. package/dist/classes/services/EmotionCacheService/index.js +1 -2
  76. package/dist/classes/services/FeatureFlagsService/index.js +1 -2
  77. package/dist/classes/services/I18nService/index.js +1 -2
  78. package/dist/classes/services/InactivityService/index.js +1 -2
  79. package/dist/classes/services/InactivityService/index.js.map +1 -1
  80. package/dist/classes/services/LogService/index.js +1 -2
  81. package/dist/classes/services/NavigationHistoryService/index.js +1 -2
  82. package/dist/classes/services/NotificationService/index.js +1 -2
  83. package/dist/classes/services/PageEventBusService/index.js +1 -2
  84. package/dist/classes/services/RouterService/index.js +1 -2
  85. package/dist/classes/services/UserSettingsService/index.js +1 -2
  86. package/dist/components/app/App/index.js +1 -2
  87. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +1 -2
  88. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
  89. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +1 -2
  90. package/dist/components/app/AuthenticationWrapper/index.js +1 -2
  91. package/dist/components/app/AuthorizationWrapper/index.js +1 -2
  92. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  93. package/dist/components/app/RouterRoot/index.js +1 -2
  94. package/dist/components/epi/EpiContactDetailsDialog/index.js +1 -2
  95. package/dist/components/filters/BooleanFilterField/index.js +1 -2
  96. package/dist/components/filters/DateFilterField/index.js +1 -2
  97. package/dist/components/filters/GeoFilterField/index.js +1 -2
  98. package/dist/components/filters/MultiSelectFilterField/index.js +1 -2
  99. package/dist/components/filters/NumberRangeFilterField/index.js +1 -2
  100. package/dist/components/filters/TextFilterField/index.js +1 -2
  101. package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +4 -0
  102. package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +5 -0
  103. package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +6 -0
  104. package/dist/components/ui/ApplicationBar/index.js +109 -95
  105. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  106. package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +3 -0
  107. package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +3 -0
  108. package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +4 -0
  109. package/dist/components/ui/ConsentDialog/index.js +1 -2
  110. package/dist/components/ui/GenericErrorMessage/index.js +1 -2
  111. package/dist/components/ui/LicensesDialog/index.js +1 -2
  112. package/dist/components/ui/MyPermissionsDialog/index.js +1 -2
  113. package/dist/components/ui/NavLink/index.js +1 -2
  114. package/dist/components/ui/OrganizationSwitcherDialog/index.js +1 -2
  115. package/dist/components/ui/OutagesDialog/index.js +1 -2
  116. package/dist/components/ui/PageContainer/index.js +1 -2
  117. package/dist/components/ui/ResponseHandler/index.js +1 -2
  118. package/dist/components/ui/Sidebar/index.js +1 -2
  119. package/dist/components/ui/UserFeedbackDialog/index.js +1 -2
  120. package/dist/components/ui/UserInactivityConfirmation/index.js +1 -2
  121. package/dist/constants/api.constants.js +1 -2
  122. package/dist/constants/config.constants.js +1 -2
  123. package/dist/constants/query.constants.js +1 -2
  124. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +1 -2
  125. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +1 -2
  126. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +1 -2
  127. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +1 -2
  128. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +1 -2
  129. package/dist/dataHooks/useOrganizationsQuery/index.js +1 -2
  130. package/dist/dataHooks/useUsersQuery/index.js +1 -2
  131. package/dist/hoc/withPermissions/index.js +1 -2
  132. package/dist/hooks/useConfig/index.js +1 -2
  133. package/dist/hooks/useCreateMutation/index.js +1 -2
  134. package/dist/hooks/useDeleteMutation/index.js +1 -2
  135. package/dist/hooks/useEditMutation/index.js +37 -42
  136. package/dist/hooks/useEditMutation/index.js.map +1 -1
  137. package/dist/hooks/useEditMutation/useEditMutation.d.ts +1 -2
  138. package/dist/hooks/useInitializeTableStore/index.js +1 -2
  139. package/dist/hooks/useItemQuery/index.js +1 -2
  140. package/dist/hooks/useUpdateBreadcrumb/index.js +1 -2
  141. package/dist/hooks/useUpdateDocumentTitle/index.js +1 -2
  142. package/dist/models/admin.models.js +1 -2
  143. package/dist/models/admin.models.js.map +1 -1
  144. package/dist/models/table.models.js +1 -2
  145. package/dist/models/table.models.js.map +1 -1
  146. package/dist/pages/AcceptInvitationPage/index.js +1 -2
  147. package/dist/pages/AdminPage/index.js +1 -2
  148. package/dist/pages/ChooseIdentityProviderPage/index.js +1 -2
  149. package/dist/pages/ErrorPage/index.js +1 -2
  150. package/dist/pages/IdentifierIssuersAdminPage/index.js +1 -2
  151. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -2
  152. package/dist/pages/OrganizationContactsAdminPage/index.js +1 -2
  153. package/dist/pages/OrganizationSitesAdminPage/index.js +1 -2
  154. package/dist/pages/OrganizationsAdminPage/index.js +1 -2
  155. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  156. package/dist/pages/OutagesAdminPage/index.js +1 -2
  157. package/dist/pages/PostLoginPage/index.js +2 -3
  158. package/dist/pages/PostLoginPage/index.js.map +1 -1
  159. package/dist/pages/PostLogoutPage/index.js +1 -2
  160. package/dist/pages/RouterErrorPage/index.js +1 -2
  161. package/dist/pages/UsersAdminPage/index.js +1 -2
  162. package/dist/routes/index.js +1 -2
  163. package/dist/setup/setup.js +1 -2
  164. package/dist/stores/oidcStore/index.js +1 -2
  165. package/dist/stores/outagesStore/index.js +1 -2
  166. package/dist/theme/demoTheme/index.js +16 -9
  167. package/dist/theme/demoTheme/index.js.map +1 -1
  168. package/dist/utils/AxiosUtil/index.js +1 -2
  169. package/dist/utils/DataHookUtil/index.js +1 -2
  170. package/dist/utils/DependencyContainerUtil/index.js +0 -1
  171. package/dist/utils/LoadableUtil/index.js +1 -2
  172. package/dist/utils/MenuDataUtil/index.js +1 -2
  173. package/dist/utils/NotificationUtil/index.js +1 -2
  174. package/dist/utils/StandardConfigUtil/index.js +1 -2
  175. package/dist/utils/TimeUtil/index.js +1 -2
  176. package/dist/utils/UserUtil/index.js +1 -2
  177. package/package.json +25 -29
  178. package/dist/models/theme.models.d.ts +0 -20
  179. package/dist/models/theme.models.js +0 -0
@@ -1,17 +1,19 @@
1
- import type {
2
- GenEpixUiClientCommonFooterTheme,
3
- GenEpixUiClientCommonNavbarTheme,
4
- GenEpixUiClientCommonTheme,
5
- } from '../models/theme.models';
1
+ /* eslint-disable @typescript-eslint/naming-convention */
2
+ import type { ApplicationBarActionsTheme } from '../components/ui/ApplicationBar/ApplicationBarActions';
3
+ import type { ApplicationBarNavigationMenuTheme } from '../components/ui/ApplicationBar/ApplicationBarNavigationMenu';
4
+ import type { ApplicationBarTheme } from '../components/ui/ApplicationBar/ApplicationBar';
5
+ import type { ApplicationFooterLinkSectionTheme } from '../components/ui/ApplicationFooter/ApplicationFooterLinkSection';
6
+ import type { ApplicationFooterLinkTheme } from '../components/ui/ApplicationFooter/ApplicationFooterLink';
7
+ import type { ApplicationFooterTheme } from '../components/ui/ApplicationFooter/ApplicationFooter';
6
8
 
7
9
  declare module '@mui/material/styles' {
8
10
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Required to augment MUI's generic interface.
9
11
  interface Components<TTheme = unknown> {
10
- // eslint-disable-next-line @typescript-eslint/naming-convention
11
- GenEpixUiClientCommonFooter?: GenEpixUiClientCommonFooterTheme;
12
- // eslint-disable-next-line @typescript-eslint/naming-convention
13
- GenEpixUiClientCommonNavbar?: GenEpixUiClientCommonNavbarTheme;
12
+ GenEpixUiClientCommonApplicationBar?: ApplicationBarTheme;
13
+ GenEpixUiClientCommonApplicationBarActions?: ApplicationBarActionsTheme;
14
+ GenEpixUiClientCommonApplicationBarNavigationMenu?: ApplicationBarNavigationMenuTheme;
15
+ GenEpixUiClientCommonApplicationFooter?: ApplicationFooterTheme;
16
+ GenEpixUiClientCommonApplicationFooterLink?: ApplicationFooterLinkTheme;
17
+ GenEpixUiClientCommonApplicationFooterLinkSection?: ApplicationFooterLinkSectionTheme;
14
18
  }
15
-
16
- interface Theme extends GenEpixUiClientCommonTheme { }
17
19
  }
@@ -4,9 +4,12 @@ import { Children as s, useCallback as c, useEffect as l, useId as u, useMemo as
4
4
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
5
  import { useTranslation as h } from "react-i18next";
6
6
  import g from "@mui/icons-material/Menu";
7
- //#region src/components/ui/ApplicationFooter/ApplicationFooterLink.tsx
7
+ // src/components/ui/ApplicationFooter/ApplicationFooterLink.tsx
8
8
  var _ = ({ children: e, href: n, onClick: r, ...a }) => {
9
- let s = o();
9
+ let s = o(), c = d(() => ({
10
+ color: s.palette.primary.contrastText,
11
+ ...s.components?.GenEpixUiClientCommonApplicationFooterLink ?? {}
12
+ }), [s]);
10
13
  return /* @__PURE__ */ m(t, {
11
14
  component: "li",
12
15
  ...a,
@@ -14,18 +17,22 @@ var _ = ({ children: e, href: n, onClick: r, ...a }) => {
14
17
  href: n,
15
18
  onClick: r,
16
19
  rel: "noreferrer",
17
- sx: { color: s.components.GenEpixUiClientCommonFooter.color },
20
+ sx: { color: c.color },
18
21
  target: "_blank",
19
22
  children: e
20
23
  }), !n && /* @__PURE__ */ p(i, {
21
24
  component: "button",
22
25
  onClick: r,
23
- sx: { color: s.components.GenEpixUiClientCommonFooter.color },
26
+ sx: { color: c.color },
24
27
  children: e
25
28
  })]
26
29
  });
27
30
  }, v = ({ children: e, header: n }) => {
28
- let r = o();
31
+ let r = o(), i = d(() => ({
32
+ color: r.palette.primary.contrastText,
33
+ sectionBorder: `1px solid ${r.palette.primary.contrastText}`,
34
+ ...r.components?.GenEpixUiClientCommonApplicationFooterLinkSection ?? {}
35
+ }), [r]);
29
36
  return s.forEach(e, (e) => {
30
37
  if (e?.type !== _) throw Error("ApplicationFooterLinkSection only accepts ApplicationFooterLink as children");
31
38
  }), /* @__PURE__ */ m(t, {
@@ -33,8 +40,8 @@ var _ = ({ children: e, href: n, onClick: r, ...a }) => {
33
40
  children: [/* @__PURE__ */ p(a, {
34
41
  component: "h2",
35
42
  sx: {
36
- borderBottom: `1px solid ${r.components.GenEpixUiClientCommonFooter.sectionBorderColor}`,
37
- color: r.components.GenEpixUiClientCommonFooter.color,
43
+ borderBottom: i.sectionBorder,
44
+ color: i.color,
38
45
  fontWeight: 500,
39
46
  marginBottom: r.spacing(1),
40
47
  paddingBottom: r.spacing(1)
@@ -52,31 +59,34 @@ var _ = ({ children: e, href: n, onClick: r, ...a }) => {
52
59
  })]
53
60
  });
54
61
  }, y = ({ fullWidth: i }) => {
55
- let a = o(), s = u(), { t: y } = h(), b = e(), [x, S] = f(!1);
62
+ let a = o(), s = d(() => ({
63
+ background: a.palette.primary.main,
64
+ ...a.components?.GenEpixUiClientCommonApplicationFooter ?? {}
65
+ }), [a]), y = u(), { t: b } = h(), x = e(), [S, C] = f(!1);
56
66
  l(() => {
57
- if (x) {
67
+ if (S) {
58
68
  let e = (e) => {
59
- e.key === "Escape" && S(!1);
69
+ e.key === "Escape" && C(!1);
60
70
  };
61
71
  return document.addEventListener("keydown", e), () => {
62
72
  document.removeEventListener("keydown", e);
63
73
  };
64
74
  }
65
- }, [x]);
66
- let C = c(() => {
67
- S((e) => !e);
68
- }, []), w = d(() => b.createFooter(), [b]);
75
+ }, [S]);
76
+ let w = c(() => {
77
+ C((e) => !e);
78
+ }, []), T = d(() => x.createFooter(), [x]);
69
79
  return /* @__PURE__ */ m(t, {
70
80
  component: "footer",
71
81
  sx: {
72
- background: a.components.GenEpixUiClientCommonFooter.background,
82
+ background: s.background,
73
83
  position: "relative",
74
84
  [a.breakpoints.up("md")]: { paddingBottom: a.spacing(1) }
75
85
  },
76
86
  children: [/* @__PURE__ */ p(r, {
77
- "aria-controls": s,
78
- "aria-label": y`Toggle footer menu`,
79
- onClick: C,
87
+ "aria-controls": y,
88
+ "aria-label": b`Toggle footer menu`,
89
+ onClick: w,
80
90
  sx: {
81
91
  color: a.palette.primary.contrastText,
82
92
  [a.breakpoints.up("md")]: { display: "none" }
@@ -90,18 +100,18 @@ var _ = ({ children: e, href: n, onClick: r, ...a }) => {
90
100
  paddingLeft: "0 !important",
91
101
  paddingRight: "0 !important",
92
102
  [a.breakpoints.down("md")]: {
93
- background: a.components.GenEpixUiClientCommonFooter.background,
103
+ background: s.background,
94
104
  bottom: a.spacing(5),
95
- display: x ? "block" : "none",
105
+ display: S ? "block" : "none",
96
106
  left: 0,
97
107
  position: "absolute",
98
108
  width: "100%",
99
109
  zIndex: a.zIndex.appBar - 1
100
110
  },
101
- [a.breakpoints.up("md")]: { gridTemplateColumns: `repeat(${w.sections.length}, 1fr)` },
111
+ [a.breakpoints.up("md")]: { gridTemplateColumns: `repeat(${T.sections.length}, 1fr)` },
102
112
  [a.breakpoints.up("sm")]: { gridTemplateColumns: "repeat(2, 1fr)" }
103
113
  },
104
- children: w.sections.map((e) => /* @__PURE__ */ p(v, {
114
+ children: T.sections.map((e) => /* @__PURE__ */ p(v, {
105
115
  header: e.header,
106
116
  children: e.items.map((e) => /* @__PURE__ */ p(_, {
107
117
  href: e.href,
@@ -113,7 +123,6 @@ var _ = ({ children: e, href: n, onClick: r, ...a }) => {
113
123
  })]
114
124
  });
115
125
  };
116
- //#endregion
117
126
  export { y as t };
118
127
 
119
128
  //# sourceMappingURL=ApplicationFooter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFooter.js","names":["MenuIcon","ApplicationFooterLink","boxProps","theme","useTheme","Box","href","Link","ApplicationFooterLinkSection","Children","children","child","Typography","header","ApplicationFooter","navId","useId","useTranslation","config","useConfig","isMenuOpen","setIsMenuOpen","useState","handleKeyDown","event","onMenuButtonClick","useCallback","x","footer","useMemo","IconButton","Container","section","item"],"sources":["../../src/components/ui/ApplicationFooter/ApplicationFooterLink.tsx","../../src/components/ui/ApplicationFooter/ApplicationFooterLinkSection.tsx","../../src/components/ui/ApplicationFooter/ApplicationFooter.tsx"],"sourcesContent":["import type { BoxProps } from '@mui/material';\nimport {\n Box,\n Link,\n useTheme,\n} from '@mui/material';\nimport type { PropsWithChildren } from 'react';\n\nexport type ApplicationFooterLinkProps = BoxProps<'li'> & PropsWithChildren<{\n readonly href?: string;\n readonly onClick?: () => void;\n}>;\n\nexport const ApplicationFooterLink = ({ children, href, onClick, ...boxProps }: ApplicationFooterLinkProps) => {\n const theme = useTheme();\n\n return (\n <Box\n component={'li'}\n {...boxProps}\n >\n {href && (\n <Link\n href={href}\n onClick={onClick}\n rel={'noreferrer'}\n sx={{\n color: theme.components.GenEpixUiClientCommonFooter.color,\n }}\n target={'_blank'}\n >\n {children}\n </Link>\n )}\n {!href && (\n <Link\n component={'button'}\n onClick={onClick}\n sx={{\n color: theme.components.GenEpixUiClientCommonFooter.color,\n }}\n >\n {children}\n </Link>\n )}\n </Box>\n );\n};\n","import {\n Box,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { Children } from 'react';\nimport type {\n PropsWithChildren,\n ReactElement,\n} from 'react';\n\nimport { ApplicationFooterLink } from './ApplicationFooterLink';\n\nexport type ApplicationFooterLinkSectionProps = PropsWithChildren<{\n readonly header: string;\n}>;\n\nexport const ApplicationFooterLinkSection = ({ children, header }: ApplicationFooterLinkSectionProps) => {\n const theme = useTheme();\n\n // eslint-disable-next-line @eslint-react/no-children-for-each\n Children.forEach(children, (child) => {\n if ((child as ReactElement)?.type !== ApplicationFooterLink) {\n throw Error('ApplicationFooterLinkSection only accepts ApplicationFooterLink as children');\n }\n });\n\n return (\n <Box\n sx={{ padding: 2 }}\n >\n <Typography\n component={'h2'}\n sx={{\n borderBottom: `1px solid ${theme.components.GenEpixUiClientCommonFooter.sectionBorderColor}`,\n color: theme.components.GenEpixUiClientCommonFooter.color,\n fontWeight: 500,\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n }}\n variant={'h4'}\n >\n {header}\n </Typography>\n <Box\n component={'ul'}\n sx={{\n listStyle: 'none',\n margin: 0,\n padding: 0,\n }}\n >\n {children}\n </Box>\n </Box>\n );\n};\n","import {\n Box,\n Container,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport MenuIcon from '@mui/icons-material/Menu';\nimport {\n useCallback,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useConfig } from '../../../hooks/useConfig';\n\nimport { ApplicationFooterLink } from './ApplicationFooterLink';\nimport { ApplicationFooterLinkSection } from './ApplicationFooterLinkSection';\n\nexport type ApplicationFooterProps = {\n readonly fullWidth?: boolean;\n};\n\nexport const ApplicationFooter = ({ fullWidth }: ApplicationFooterProps) => {\n const theme = useTheme();\n const navId = useId();\n const { t } = useTranslation();\n const config = useConfig();\n\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n\n useEffect(() => {\n if (isMenuOpen) {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n setIsMenuOpen(false);\n }\n };\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [isMenuOpen]);\n\n const onMenuButtonClick = useCallback(() => {\n setIsMenuOpen(x => !x);\n }, []);\n\n const footer = useMemo(() => config.createFooter(), [config]);\n\n return (\n <Box\n component={'footer'}\n sx={{\n background: theme.components.GenEpixUiClientCommonFooter.background,\n position: 'relative',\n [theme.breakpoints.up('md')]: {\n paddingBottom: theme.spacing(1),\n },\n }}\n >\n <IconButton\n aria-controls={navId}\n aria-label={t`Toggle footer menu`}\n onClick={onMenuButtonClick}\n sx={{\n color: theme.palette.primary.contrastText,\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n }}\n >\n <MenuIcon />\n </IconButton>\n <Container\n maxWidth={fullWidth ? false : 'xl'}\n sx={{\n display: 'grid',\n gridTemplateColumns: 'repeat(1, 1fr)',\n paddingLeft: '0 !important',\n paddingRight: '0 !important',\n [theme.breakpoints.down('md')]: {\n background: theme.components.GenEpixUiClientCommonFooter.background,\n bottom: theme.spacing(5),\n display: isMenuOpen ? 'block' : 'none',\n left: 0,\n position: 'absolute',\n width: '100%',\n zIndex: theme.zIndex.appBar - 1,\n },\n [theme.breakpoints.up('md')]: {\n gridTemplateColumns: `repeat(${footer.sections.length}, 1fr)`,\n },\n [theme.breakpoints.up('sm')]: {\n gridTemplateColumns: 'repeat(2, 1fr)',\n },\n }}\n >\n {footer.sections.map((section) => (\n <ApplicationFooterLinkSection\n header={section.header}\n key={section.header}\n >\n {section.items.map((item) => (\n <ApplicationFooterLink\n href={item.href}\n key={item.label}\n onClick={item.onClick}\n sx={{ mb: 0.5 }}\n >\n {item.label}\n </ApplicationFooterLink>\n ))}\n </ApplicationFooterLinkSection>\n ))}\n </Container>\n </Box>\n );\n};\n"],"mappings":";;;;;;;AAaA,IAAaC,KAAyB,EAAE,aAAU,SAAM,YAAS,GAAGC,QAA2C;CAC7G,IAAMC,IAAQC,EAAS;CAEvB,OACE,kBAACC,GAAD;EACE,WAAW;EACX,GAAIH;EAFN,UAAA,CAIGI,KACC,kBAACC,GAAD;GACQ;GACG;GACT,KAAK;GACL,IAAI,EACF,OAAOJ,EAAM,WAAW,4BAA4B,MACtD;GACA,QAAQ;GAEP;EACG,CAAA,GAEP,CAACG,KACA,kBAACC,GAAD;GACE,WAAW;GACF;GACT,IAAI,EACF,OAAOJ,EAAM,WAAW,4BAA4B,MACtD;GAEC;EACG,CAAA,CAEL;;AAET,GC9BaK,KAAgC,EAAE,aAAU,gBAAgD;CACvG,IAAML,IAAQC,EAAS;CASvB,OANAK,EAAS,QAAQC,IAAW,MAAU;EACpC,IAAKC,GAAwB,SAASV,GACpC,MAAM,MAAM,6EAA6E;CAE7F,CAAC,GAGC,kBAACI,GAAD;EACE,IAAI,EAAE,SAAS,EAAE;EADnB,UAAA,CAGE,kBAACO,GAAD;GACE,WAAW;GACX,IAAI;IACF,cAAc,aAAaT,EAAM,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U,MAAoB;GAC9B,IAAI;IACF,SAAS;IACT,qBAAqB;IACrB,aAAa;IACb,cAAc;KACb5B,EAAM,YAAY,KAAK,IAAI,IAAI;KAC9B,YAAYA,EAAM,WAAW,4BAA4B;KACzD,QAAQA,EAAM,QAAQ,CAAC;KACvB,SAASiB,IAAa,UAAU;KAChC,MAAM;KACN,UAAU;KACV,OAAO;KACP,QAAQjB,EAAM,OAAO,SAAS;IAChC;KACCA,EAAM,YAAY,GAAG,IAAI,IAAI,EAC5B,qBAAqB,UAAUyB,EAAO,SAAS,OAAO,QACxD;KACCzB,EAAM,YAAY,GAAG,IAAI,IAAI,EAC5B,qBAAqB,iBACvB;GACF;GAEC,UAAAyB,EAAO,SAAS,KAAK,MACpB,kBAACpB,GAAD;IACE,QAAQwB,EAAQ;IAGf,UAAAA,EAAQ,MAAM,KAAK,MAClB,kBAAC/B,GAAD;KACE,MAAMgC,EAAK;KAEX,SAASA,EAAK;KACd,IAAI,EAAE,IAAI,GAAI;KAEb,UAAAA,EAAK;IACe,GALhBA,EAAK,KAKW,CACxB;GAC2B,GAZvBD,EAAQ,MAYe,CAC/B;EACQ,CAAA,CACR;;AAET"}
1
+ {"version":3,"file":"ApplicationFooter.js","names":["MenuIcon","ApplicationFooterLink","boxProps","theme","useTheme","applicationFooterLinkTheme","useMemo","Box","href","Link","ApplicationFooterLinkSection","applicationFooterLinkSectionTheme","Children","children","child","Typography","header","ApplicationFooter","applicationFooterTheme","navId","useId","useTranslation","config","useConfig","isMenuOpen","setIsMenuOpen","useState","handleKeyDown","event","onMenuButtonClick","useCallback","x","footer","IconButton","Container","section","item"],"sources":["../../src/components/ui/ApplicationFooter/ApplicationFooterLink.tsx","../../src/components/ui/ApplicationFooter/ApplicationFooterLinkSection.tsx","../../src/components/ui/ApplicationFooter/ApplicationFooter.tsx"],"sourcesContent":["import type { BoxProps } from '@mui/material';\nimport {\n Box,\n Link,\n useTheme,\n} from '@mui/material';\nimport { useMemo } from 'react';\nimport type { PropsWithChildren } from 'react';\n\nexport type ApplicationFooterLinkProps = BoxProps<'li'> & PropsWithChildren<{\n readonly href?: string;\n readonly onClick?: () => void;\n}>;\n\nexport type ApplicationFooterLinkTheme = {\n color: string;\n};\n\nexport const ApplicationFooterLink = ({ children, href, onClick, ...boxProps }: ApplicationFooterLinkProps) => {\n const theme = useTheme();\n const applicationFooterLinkTheme = useMemo<ApplicationFooterLinkTheme>(() => ({\n ...{\n color: theme.palette.primary.contrastText,\n } satisfies ApplicationFooterLinkTheme,\n ...(theme.components?.GenEpixUiClientCommonApplicationFooterLink ?? {}),\n }), [theme]);\n\n return (\n <Box\n component={'li'}\n {...boxProps}\n >\n {href && (\n <Link\n href={href}\n onClick={onClick}\n rel={'noreferrer'}\n sx={{\n color: applicationFooterLinkTheme.color,\n }}\n target={'_blank'}\n >\n {children}\n </Link>\n )}\n {!href && (\n <Link\n component={'button'}\n onClick={onClick}\n sx={{\n color: applicationFooterLinkTheme.color,\n }}\n >\n {children}\n </Link>\n )}\n </Box>\n );\n};\n","import {\n Box,\n Typography,\n useTheme,\n} from '@mui/material';\nimport {\n Children,\n useMemo,\n} from 'react';\nimport type {\n PropsWithChildren,\n ReactElement,\n} from 'react';\n\nimport { ApplicationFooterLink } from './ApplicationFooterLink';\n\nexport type ApplicationFooterLinkSectionProps = PropsWithChildren<{\n readonly header: string;\n}>;\n\nexport type ApplicationFooterLinkSectionTheme = {\n color: string;\n sectionBorder: string;\n};\n\nexport const ApplicationFooterLinkSection = ({ children, header }: ApplicationFooterLinkSectionProps) => {\n const theme = useTheme();\n const applicationFooterLinkSectionTheme = useMemo<ApplicationFooterLinkSectionTheme>(() => ({\n ...{\n color: theme.palette.primary.contrastText,\n sectionBorder: `1px solid ${theme.palette.primary.contrastText}`,\n } satisfies ApplicationFooterLinkSectionTheme,\n ...(theme.components?.GenEpixUiClientCommonApplicationFooterLinkSection ?? {}),\n }), [theme]);\n\n // eslint-disable-next-line @eslint-react/no-children-for-each\n Children.forEach(children, (child) => {\n if ((child as ReactElement)?.type !== ApplicationFooterLink) {\n throw Error('ApplicationFooterLinkSection only accepts ApplicationFooterLink as children');\n }\n });\n\n return (\n <Box\n sx={{ padding: 2 }}\n >\n <Typography\n component={'h2'}\n sx={{\n borderBottom: applicationFooterLinkSectionTheme.sectionBorder,\n color: applicationFooterLinkSectionTheme.color,\n fontWeight: 500,\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n }}\n variant={'h4'}\n >\n {header}\n </Typography>\n <Box\n component={'ul'}\n sx={{\n listStyle: 'none',\n margin: 0,\n padding: 0,\n }}\n >\n {children}\n </Box>\n </Box>\n );\n};\n","import {\n Box,\n Container,\n IconButton,\n useTheme,\n} from '@mui/material';\nimport MenuIcon from '@mui/icons-material/Menu';\nimport {\n useCallback,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useConfig } from '../../../hooks/useConfig';\n\nimport { ApplicationFooterLink } from './ApplicationFooterLink';\nimport { ApplicationFooterLinkSection } from './ApplicationFooterLinkSection';\n\nexport type ApplicationFooterProps = {\n readonly fullWidth?: boolean;\n};\n\nexport type ApplicationFooterTheme = {\n background: string;\n};\n\nexport const ApplicationFooter = ({ fullWidth }: ApplicationFooterProps) => {\n const theme = useTheme();\n const applicationFooterTheme = useMemo<ApplicationFooterTheme>(() => ({\n ...{\n background: theme.palette.primary.main,\n } satisfies ApplicationFooterTheme,\n ...(theme.components?.GenEpixUiClientCommonApplicationFooter ?? {}),\n }), [theme]);\n\n const navId = useId();\n const { t } = useTranslation();\n const config = useConfig();\n\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n\n useEffect(() => {\n if (isMenuOpen) {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n setIsMenuOpen(false);\n }\n };\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }\n }, [isMenuOpen]);\n\n const onMenuButtonClick = useCallback(() => {\n setIsMenuOpen(x => !x);\n }, []);\n\n const footer = useMemo(() => config.createFooter(), [config]);\n\n return (\n <Box\n component={'footer'}\n sx={{\n background: applicationFooterTheme.background,\n position: 'relative',\n [theme.breakpoints.up('md')]: {\n paddingBottom: theme.spacing(1),\n },\n }}\n >\n <IconButton\n aria-controls={navId}\n aria-label={t`Toggle footer menu`}\n onClick={onMenuButtonClick}\n sx={{\n color: theme.palette.primary.contrastText,\n [theme.breakpoints.up('md')]: {\n display: 'none',\n },\n }}\n >\n <MenuIcon />\n </IconButton>\n <Container\n maxWidth={fullWidth ? false : 'xl'}\n sx={{\n display: 'grid',\n gridTemplateColumns: 'repeat(1, 1fr)',\n paddingLeft: '0 !important',\n paddingRight: '0 !important',\n [theme.breakpoints.down('md')]: {\n background: applicationFooterTheme.background,\n bottom: theme.spacing(5),\n display: isMenuOpen ? 'block' : 'none',\n left: 0,\n position: 'absolute',\n width: '100%',\n zIndex: theme.zIndex.appBar - 1,\n },\n [theme.breakpoints.up('md')]: {\n gridTemplateColumns: `repeat(${footer.sections.length}, 1fr)`,\n },\n [theme.breakpoints.up('sm')]: {\n gridTemplateColumns: 'repeat(2, 1fr)',\n },\n }}\n >\n {footer.sections.map((section) => (\n <ApplicationFooterLinkSection\n header={section.header}\n key={section.header}\n >\n {section.items.map((item) => (\n <ApplicationFooterLink\n href={item.href}\n key={item.label}\n onClick={item.onClick}\n sx={{ mb: 0.5 }}\n >\n {item.label}\n </ApplicationFooterLink>\n ))}\n </ApplicationFooterLinkSection>\n ))}\n </Container>\n </Box>\n );\n};\n"],"mappings":";;;;;;;AAkBA,IAAaC,KAAyB,EAAE,aAAU,SAAM,YAAS,GAAGC,QAA2C;CAC7G,IAAMC,IAAQC,EAAS,GACjBC,IAA6BC,SAA2C;EAE1E,OAAOH,EAAM,QAAQ,QAAQ;EAE/B,GAAIA,EAAM,YAAY,8CAA8C,CAAC;CACvE,IAAI,CAACA,CAAK,CAAC;CAEX,OACE,kBAACI,GAAD;EACE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AAS,KAAK,MACpB,kBAACtB,GAAD;IACE,QAAQyB,EAAQ;IAGf,UAAAA,EAAQ,MAAM,KAAK,MAClB,kBAAClC,GAAD;KACE,MAAMmC,EAAK;KAEX,SAASA,EAAK;KACd,IAAI,EAAE,IAAI,GAAI;KAEb,UAAAA,EAAK;IACe,GALhBA,EAAK,KAKW,CACxB;GAC2B,GAZvBD,EAAQ,MAYe,CAC/B;EACQ,CAAA,CACR;;AAET"}
@@ -7,7 +7,7 @@ import { jsx as l } from "react/jsx-runtime";
7
7
  import { TestIdUtil as u } from "@gen-epix/ui-core/utils/TestIdUtil";
8
8
  import { useMatches as d } from "react-router-dom";
9
9
  import { useSubscribable as f } from "@gen-epix/ui-core/hooks/useSubscribable";
10
- //#region src/components/ui/Breadcrumbs/Breadcrumb.tsx
10
+ // src/components/ui/Breadcrumbs/Breadcrumb.tsx
11
11
  var p = ({ isLast: r, item: o }) => {
12
12
  let u = f(n.resolve(t)), d = c(() => u[o.handle.title] ? u[o.handle.title] : o.handle.title, [u, o.handle.title]), p = s(async (t) => {
13
13
  t.preventDefault(), await n.resolve(e).router.navigate(o.pathname);
@@ -35,7 +35,6 @@ var p = ({ isLast: r, item: o }) => {
35
35
  }, t.id))
36
36
  });
37
37
  };
38
- //#endregion
39
38
  export { m as t };
40
39
 
41
40
  //# sourceMappingURL=Breadcrumbs.js.map