@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.
- package/dist/@types/mui.d.ts +13 -11
- package/dist/_chunks/ApplicationFooter.js +32 -23
- package/dist/_chunks/ApplicationFooter.js.map +1 -1
- package/dist/_chunks/Breadcrumbs.js +1 -2
- package/dist/_chunks/CrudPage.js +221 -226
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +1 -2
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/Notifications.js +1 -2
- package/dist/_chunks/OutageList.js +1 -2
- package/dist/_chunks/OutageList.js.map +1 -1
- package/dist/_chunks/OutageUtil.js +3 -6
- package/dist/_chunks/OutageUtil.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -2
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +6 -8
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Reflect.js +1 -2
- package/dist/_chunks/Table.js +5 -10
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +2 -4
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +4 -8
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +1 -2
- package/dist/_chunks/UserManagerUtil.js +2 -4
- package/dist/_chunks/UserManagerUtil.js.map +1 -1
- package/dist/_chunks/_baseAssignValue.js +1 -2
- package/dist/_chunks/_baseFlatten.js +1 -2
- package/dist/_chunks/_baseGet.js +1 -2
- package/dist/_chunks/_baseIteratee.js +1 -2
- package/dist/_chunks/_baseUnset.js +1 -2
- package/dist/_chunks/_cacheHas.js +1 -2
- package/dist/_chunks/_setToString.js +1 -2
- package/dist/_chunks/decorate.js +1 -2
- package/dist/_chunks/decorateParam.js +1 -2
- package/dist/_chunks/format.js +27 -54
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/isArrayLike.js +1 -2
- package/dist/_chunks/isObject.js +1 -2
- package/dist/_chunks/isSymbol.js +1 -2
- package/dist/_chunks/last.js +1 -2
- package/dist/_chunks/middleware.js +2 -3
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +1 -2
- package/dist/_chunks/query.js +8 -15
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +2 -3
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/rolldown-runtime.js +2 -3
- package/dist/_chunks/tableStore.js +171 -171
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/toDate.js +8 -14
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/uniq.js +1 -2
- package/dist/_chunks/useColumnsMenu.js +3 -6
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -4
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +8 -14
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -2
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -4
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/TableEventBus/index.js +1 -2
- package/dist/classes/abstracts/FilterAbstract/index.js +1 -2
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/services/AuthenticationService/index.js +0 -1
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/AuthorizationService/index.js +1 -2
- package/dist/classes/services/BackendVersionService/index.js +1 -2
- package/dist/classes/services/BreadcrumbService/index.js +1 -2
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/EmotionCacheService/index.js +1 -2
- package/dist/classes/services/FeatureFlagsService/index.js +1 -2
- package/dist/classes/services/I18nService/index.js +1 -2
- package/dist/classes/services/InactivityService/index.js +1 -2
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/LogService/index.js +1 -2
- package/dist/classes/services/NavigationHistoryService/index.js +1 -2
- package/dist/classes/services/NotificationService/index.js +1 -2
- package/dist/classes/services/PageEventBusService/index.js +1 -2
- package/dist/classes/services/RouterService/index.js +1 -2
- package/dist/classes/services/UserSettingsService/index.js +1 -2
- package/dist/components/app/App/index.js +1 -2
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +1 -2
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +1 -2
- package/dist/components/app/AuthenticationWrapper/index.js +1 -2
- package/dist/components/app/AuthorizationWrapper/index.js +1 -2
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +1 -2
- package/dist/components/epi/EpiContactDetailsDialog/index.js +1 -2
- package/dist/components/filters/BooleanFilterField/index.js +1 -2
- package/dist/components/filters/DateFilterField/index.js +1 -2
- package/dist/components/filters/GeoFilterField/index.js +1 -2
- package/dist/components/filters/MultiSelectFilterField/index.js +1 -2
- package/dist/components/filters/NumberRangeFilterField/index.js +1 -2
- package/dist/components/filters/TextFilterField/index.js +1 -2
- package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +5 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +6 -0
- package/dist/components/ui/ApplicationBar/index.js +109 -95
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +3 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +3 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +4 -0
- package/dist/components/ui/ConsentDialog/index.js +1 -2
- package/dist/components/ui/GenericErrorMessage/index.js +1 -2
- package/dist/components/ui/LicensesDialog/index.js +1 -2
- package/dist/components/ui/MyPermissionsDialog/index.js +1 -2
- package/dist/components/ui/NavLink/index.js +1 -2
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +1 -2
- package/dist/components/ui/OutagesDialog/index.js +1 -2
- package/dist/components/ui/PageContainer/index.js +1 -2
- package/dist/components/ui/ResponseHandler/index.js +1 -2
- package/dist/components/ui/Sidebar/index.js +1 -2
- package/dist/components/ui/UserFeedbackDialog/index.js +1 -2
- package/dist/components/ui/UserInactivityConfirmation/index.js +1 -2
- package/dist/constants/api.constants.js +1 -2
- package/dist/constants/config.constants.js +1 -2
- package/dist/constants/query.constants.js +1 -2
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +1 -2
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +1 -2
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +1 -2
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +1 -2
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +1 -2
- package/dist/dataHooks/useOrganizationsQuery/index.js +1 -2
- package/dist/dataHooks/useUsersQuery/index.js +1 -2
- package/dist/hoc/withPermissions/index.js +1 -2
- package/dist/hooks/useConfig/index.js +1 -2
- package/dist/hooks/useCreateMutation/index.js +1 -2
- package/dist/hooks/useDeleteMutation/index.js +1 -2
- package/dist/hooks/useEditMutation/index.js +37 -42
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useEditMutation/useEditMutation.d.ts +1 -2
- package/dist/hooks/useInitializeTableStore/index.js +1 -2
- package/dist/hooks/useItemQuery/index.js +1 -2
- package/dist/hooks/useUpdateBreadcrumb/index.js +1 -2
- package/dist/hooks/useUpdateDocumentTitle/index.js +1 -2
- package/dist/models/admin.models.js +1 -2
- package/dist/models/admin.models.js.map +1 -1
- package/dist/models/table.models.js +1 -2
- package/dist/models/table.models.js.map +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +1 -2
- package/dist/pages/AdminPage/index.js +1 -2
- package/dist/pages/ChooseIdentityProviderPage/index.js +1 -2
- package/dist/pages/ErrorPage/index.js +1 -2
- package/dist/pages/IdentifierIssuersAdminPage/index.js +1 -2
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -2
- package/dist/pages/OrganizationContactsAdminPage/index.js +1 -2
- package/dist/pages/OrganizationSitesAdminPage/index.js +1 -2
- package/dist/pages/OrganizationsAdminPage/index.js +1 -2
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +1 -2
- package/dist/pages/PostLoginPage/index.js +2 -3
- package/dist/pages/PostLoginPage/index.js.map +1 -1
- package/dist/pages/PostLogoutPage/index.js +1 -2
- package/dist/pages/RouterErrorPage/index.js +1 -2
- package/dist/pages/UsersAdminPage/index.js +1 -2
- package/dist/routes/index.js +1 -2
- package/dist/setup/setup.js +1 -2
- package/dist/stores/oidcStore/index.js +1 -2
- package/dist/stores/outagesStore/index.js +1 -2
- package/dist/theme/demoTheme/index.js +16 -9
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/AxiosUtil/index.js +1 -2
- package/dist/utils/DataHookUtil/index.js +1 -2
- package/dist/utils/DependencyContainerUtil/index.js +0 -1
- package/dist/utils/LoadableUtil/index.js +1 -2
- package/dist/utils/MenuDataUtil/index.js +1 -2
- package/dist/utils/NotificationUtil/index.js +1 -2
- package/dist/utils/StandardConfigUtil/index.js +1 -2
- package/dist/utils/TimeUtil/index.js +1 -2
- package/dist/utils/UserUtil/index.js +1 -2
- package/package.json +25 -29
- package/dist/models/theme.models.d.ts +0 -20
- package/dist/models/theme.models.js +0 -0
|
@@ -14,8 +14,8 @@ import { useOrganizationMapQuery as f } from "../../../dataHooks/useOrganization
|
|
|
14
14
|
import { n as p } from "../../../_chunks/Notifications.js";
|
|
15
15
|
import { withPermissions as m } from "../../../hoc/withPermissions/index.js";
|
|
16
16
|
import { UserSettingsService as h } from "../../../classes/services/UserSettingsService/index.js";
|
|
17
|
-
import { UserFeedbackDialog as
|
|
18
|
-
import { OutagesDialog as
|
|
17
|
+
import { UserFeedbackDialog as g } from "../UserFeedbackDialog/index.js";
|
|
18
|
+
import { OutagesDialog as ee } from "../OutagesDialog/index.js";
|
|
19
19
|
import { OrganizationSwitcherDialog as _ } from "../OrganizationSwitcherDialog/index.js";
|
|
20
20
|
import { MyPermissionsDialog as v } from "../MyPermissionsDialog/index.js";
|
|
21
21
|
import { LicensesDialog as y } from "../LicensesDialog/index.js";
|
|
@@ -24,16 +24,16 @@ import { FeatureFlagsService as x } from "../../../classes/services/FeatureFlags
|
|
|
24
24
|
import { container as S } from "tsyringe";
|
|
25
25
|
import { StringUtil as C } from "@gen-epix/ui-core/utils/StringUtil";
|
|
26
26
|
import { CommonDbCommandName as w, CommonDbLogLevel as T, CommonDbPermissionType as E } from "@gen-epix/api-commondb";
|
|
27
|
-
import { AppBar as D, Badge as O, Box as k, CircularProgress as
|
|
27
|
+
import { AppBar as D, Badge as O, Box as k, CircularProgress as A, Container as te, IconButton as j, Link as ne, List as M, ListItem as N, ListItemButton as P, ListItemIcon as F, ListItemText as I, Popover as L, Toolbar as R, Tooltip as z, Typography as re, styled as B, useTheme as V } from "@mui/material";
|
|
28
28
|
import { useCallback as H, useEffect as U, useId as W, useMemo as G, useRef as K, useState as q } from "react";
|
|
29
29
|
import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
30
30
|
import { useTranslation as Z } from "react-i18next";
|
|
31
31
|
import { TestIdUtil as Q } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
32
32
|
import ie from "@mui/icons-material/ContentCopy";
|
|
33
|
-
import { NavLink as
|
|
34
|
-
import { useSubscribable as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
33
|
+
import { NavLink as $ } from "react-router-dom";
|
|
34
|
+
import { useSubscribable as ae } from "@gen-epix/ui-core/hooks/useSubscribable";
|
|
35
|
+
import oe from "@mui/icons-material/Menu";
|
|
36
|
+
import se from "@mui/icons-material/MoreVert";
|
|
37
37
|
import { Confirmation as ce } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
38
38
|
import { useAuth as le } from "react-oidc-context";
|
|
39
39
|
import ue from "@mui/icons-material/Notifications";
|
|
@@ -46,52 +46,58 @@ import ge from "@mui/icons-material/AccountCircle";
|
|
|
46
46
|
import _e from "@mui/icons-material/Logout";
|
|
47
47
|
import ve from "@mui/icons-material/Key";
|
|
48
48
|
import ye from "@mui/icons-material/ChangeCircle";
|
|
49
|
-
|
|
50
|
-
var be = B(
|
|
49
|
+
// src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx
|
|
50
|
+
var be = B($)(({ theme: e }) => ({
|
|
51
51
|
"&:hover": { textDecoration: "underline" },
|
|
52
52
|
color: e.palette.secondary.contrastText,
|
|
53
53
|
display: "inline-block",
|
|
54
54
|
fontSize: "1.3rem",
|
|
55
55
|
textDecoration: "none"
|
|
56
56
|
})), xe = ({ fullWidth: e }) => {
|
|
57
|
-
let { t } = Z(), n = V(), r = G(() =>
|
|
57
|
+
let { t } = Z(), n = V(), r = G(() => ({
|
|
58
|
+
activeBackground: n.palette.primary.contrastText,
|
|
59
|
+
activeColor: n.palette.primary.main,
|
|
60
|
+
background: n.palette.primary.main,
|
|
61
|
+
primaryColor: n.palette.primary.contrastText,
|
|
62
|
+
...n.components?.GenEpixUiClientCommonApplicationBarNavigationMenu ?? {}
|
|
63
|
+
}), [n]), o = G(() => S.resolve(i), []), s = W(), c = G(() => {
|
|
58
64
|
let e = S.resolve(a).routes.find((e) => e.handle.root);
|
|
59
65
|
return [e, ...e.children.filter((e) => !e.handle.hidden)];
|
|
60
|
-
}, []), [
|
|
66
|
+
}, []), [l, u] = q(!1);
|
|
61
67
|
U(() => {
|
|
62
|
-
if (
|
|
68
|
+
if (l) {
|
|
63
69
|
let e = (e) => {
|
|
64
|
-
e.key === "Escape" &&
|
|
70
|
+
e.key === "Escape" && u(!1);
|
|
65
71
|
};
|
|
66
72
|
return document.addEventListener("keydown", e), () => {
|
|
67
73
|
document.removeEventListener("keydown", e);
|
|
68
74
|
};
|
|
69
75
|
}
|
|
70
|
-
}, [
|
|
71
|
-
let
|
|
72
|
-
|
|
73
|
-
}, []),
|
|
76
|
+
}, [l]);
|
|
77
|
+
let d = H(() => {
|
|
78
|
+
u((e) => !e);
|
|
79
|
+
}, []), f = H((e) => {
|
|
74
80
|
e.currentTarget.ariaDisabled === "true" && e.preventDefault();
|
|
75
81
|
}, []);
|
|
76
82
|
return /* @__PURE__ */ X(k, {
|
|
77
83
|
sx: { flexGrow: 1 },
|
|
78
|
-
children: [/* @__PURE__ */ Y(
|
|
79
|
-
"aria-controls":
|
|
84
|
+
children: [/* @__PURE__ */ Y(j, {
|
|
85
|
+
"aria-controls": s,
|
|
80
86
|
"aria-label": t`Toggle navigation menu`,
|
|
81
|
-
onClick:
|
|
87
|
+
onClick: d,
|
|
82
88
|
sx: {
|
|
83
|
-
color:
|
|
89
|
+
color: r.primaryColor,
|
|
84
90
|
[n.breakpoints.up("md")]: { display: "none" }
|
|
85
91
|
},
|
|
86
|
-
children: /* @__PURE__ */ Y(
|
|
92
|
+
children: /* @__PURE__ */ Y(oe, {})
|
|
87
93
|
}), /* @__PURE__ */ Y(k, {
|
|
88
94
|
component: "nav",
|
|
89
|
-
id:
|
|
95
|
+
id: s,
|
|
90
96
|
sx: {
|
|
91
97
|
flexGrow: 1,
|
|
92
98
|
[n.breakpoints.down("md")]: {
|
|
93
|
-
background:
|
|
94
|
-
display:
|
|
99
|
+
background: r.background,
|
|
100
|
+
display: l ? "block" : "none",
|
|
95
101
|
left: 0,
|
|
96
102
|
paddingBottom: 4,
|
|
97
103
|
position: "absolute",
|
|
@@ -111,22 +117,22 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
111
117
|
margin: 0
|
|
112
118
|
}
|
|
113
119
|
},
|
|
114
|
-
children:
|
|
120
|
+
children: c.filter((e) => o.doesUserHavePermissionForRoute(e)).map((e) => {
|
|
115
121
|
let t = !!e.handle.disabled;
|
|
116
122
|
return /* @__PURE__ */ Y(k, {
|
|
117
123
|
component: "li",
|
|
118
124
|
sx: {
|
|
119
125
|
"&:has(.active:not([aria-disabled=\"true\"]))": {
|
|
120
|
-
"& svg": { color:
|
|
121
|
-
a: { color:
|
|
122
|
-
background:
|
|
126
|
+
"& svg": { color: r.activeColor },
|
|
127
|
+
a: { color: r.activeColor },
|
|
128
|
+
background: r.activeBackground
|
|
123
129
|
},
|
|
124
130
|
"& svg": {
|
|
125
131
|
color: t ? n.palette.grey[400] : void 0,
|
|
126
132
|
marginTop: "6px"
|
|
127
133
|
},
|
|
128
134
|
alignItems: "center",
|
|
129
|
-
color: t ? n.palette.grey[400] :
|
|
135
|
+
color: t ? n.palette.grey[400] : r.primaryColor,
|
|
130
136
|
display: "flex",
|
|
131
137
|
fontWeight: 800,
|
|
132
138
|
height: 48,
|
|
@@ -136,7 +142,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
136
142
|
children: /* @__PURE__ */ X(be, {
|
|
137
143
|
"aria-disabled": t || void 0,
|
|
138
144
|
"aria-label": e.handle.title,
|
|
139
|
-
onClick:
|
|
145
|
+
onClick: f,
|
|
140
146
|
sx: {
|
|
141
147
|
"&:hover": { textDecoration: t ? "none" : void 0 },
|
|
142
148
|
color: t ? n.palette.grey[400] : void 0,
|
|
@@ -168,7 +174,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
168
174
|
}, []), c = H(() => {
|
|
169
175
|
a(!1), S.resolve(h).showShowUserFeedbackTooltip = !1;
|
|
170
176
|
}, []);
|
|
171
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(
|
|
177
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(z, {
|
|
172
178
|
arrow: !0,
|
|
173
179
|
color: "secondary",
|
|
174
180
|
onMouseEnter: c,
|
|
@@ -183,7 +189,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
183
189
|
} }
|
|
184
190
|
},
|
|
185
191
|
title: e`Would you like to share your feedback?`,
|
|
186
|
-
children: /* @__PURE__ */ X(
|
|
192
|
+
children: /* @__PURE__ */ X(j, {
|
|
187
193
|
"aria-label": e`Feedback`,
|
|
188
194
|
color: "inherit",
|
|
189
195
|
onClick: s,
|
|
@@ -199,7 +205,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
199
205
|
children: e`Feedback`
|
|
200
206
|
})]
|
|
201
207
|
})
|
|
202
|
-
}), /* @__PURE__ */ Y(
|
|
208
|
+
}), /* @__PURE__ */ Y(g, { ref: r })] });
|
|
203
209
|
}, we = ({ anchorElement: e, onClose: t }) => {
|
|
204
210
|
let n = G(() => C.createUuid(), []), r = K(null), i = !!e, { t: a } = Z(), s = o(), [c, l] = q(!1), u = H(() => {
|
|
205
211
|
r.current.open();
|
|
@@ -207,7 +213,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
207
213
|
let e = `Frontend version: ${s.getSoftwareVersion()}\nBackend version: ${S.resolve(b).version}\nURL: ${window.location.href}\nDate/time: ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
208
214
|
await navigator.clipboard.writeText(e), l(!0), setTimeout(() => l(!1), 2e3);
|
|
209
215
|
}, [s]);
|
|
210
|
-
return /* @__PURE__ */ Y(
|
|
216
|
+
return /* @__PURE__ */ Y(L, {
|
|
211
217
|
...Q.createAttributes("InfoMenu"),
|
|
212
218
|
anchorEl: e,
|
|
213
219
|
anchorOrigin: {
|
|
@@ -221,16 +227,16 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
221
227
|
horizontal: "right",
|
|
222
228
|
vertical: "top"
|
|
223
229
|
},
|
|
224
|
-
children: /* @__PURE__ */ X(
|
|
230
|
+
children: /* @__PURE__ */ X(M, {
|
|
225
231
|
sx: {
|
|
226
232
|
maxWidth: 300,
|
|
227
233
|
minWidth: 200,
|
|
228
234
|
width: "100%"
|
|
229
235
|
},
|
|
230
236
|
children: [
|
|
231
|
-
/* @__PURE__ */ Y(
|
|
237
|
+
/* @__PURE__ */ Y(N, {
|
|
232
238
|
divider: !0,
|
|
233
|
-
children: /* @__PURE__ */ Y(
|
|
239
|
+
children: /* @__PURE__ */ Y(I, {
|
|
234
240
|
primary: a("Frontend version"),
|
|
235
241
|
secondary: s.getSoftwareVersion(),
|
|
236
242
|
slotProps: { primary: { sx: {
|
|
@@ -239,9 +245,9 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
239
245
|
} } }
|
|
240
246
|
})
|
|
241
247
|
}),
|
|
242
|
-
/* @__PURE__ */ Y(
|
|
248
|
+
/* @__PURE__ */ Y(N, {
|
|
243
249
|
divider: !0,
|
|
244
|
-
children: /* @__PURE__ */ Y(
|
|
250
|
+
children: /* @__PURE__ */ Y(I, {
|
|
245
251
|
primary: a("Backend version"),
|
|
246
252
|
secondary: S.resolve(b).version,
|
|
247
253
|
slotProps: { primary: { sx: {
|
|
@@ -250,11 +256,11 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
250
256
|
} } }
|
|
251
257
|
})
|
|
252
258
|
}),
|
|
253
|
-
/* @__PURE__ */ Y(
|
|
259
|
+
/* @__PURE__ */ Y(N, {
|
|
254
260
|
divider: !0,
|
|
255
|
-
children: /* @__PURE__ */ X(
|
|
261
|
+
children: /* @__PURE__ */ X(P, {
|
|
256
262
|
onClick: d,
|
|
257
|
-
children: [/* @__PURE__ */ Y(
|
|
263
|
+
children: [/* @__PURE__ */ Y(F, { children: c ? /* @__PURE__ */ Y(me, { color: "success" }) : /* @__PURE__ */ Y(ie, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
258
264
|
primary: a`Copy version information to clipboard`,
|
|
259
265
|
slotProps: { primary: { sx: {
|
|
260
266
|
color: "secondary.main",
|
|
@@ -263,9 +269,9 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
263
269
|
})]
|
|
264
270
|
})
|
|
265
271
|
}),
|
|
266
|
-
/* @__PURE__ */ X(
|
|
272
|
+
/* @__PURE__ */ X(N, { children: [/* @__PURE__ */ X(P, {
|
|
267
273
|
onClick: u,
|
|
268
|
-
children: [/* @__PURE__ */ Y(
|
|
274
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(pe, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
269
275
|
primary: a`Show license information`,
|
|
270
276
|
slotProps: { primary: { sx: {
|
|
271
277
|
color: "secondary.main",
|
|
@@ -282,7 +288,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
282
288
|
}, []), a = H(() => {
|
|
283
289
|
t(null);
|
|
284
290
|
}, []);
|
|
285
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
291
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
286
292
|
color: "inherit",
|
|
287
293
|
onClick: i,
|
|
288
294
|
title: "Code information",
|
|
@@ -302,12 +308,12 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
302
308
|
onClose: a
|
|
303
309
|
})] });
|
|
304
310
|
}, Ee = () => {
|
|
305
|
-
let { t: e } = Z(), t = V(), n =
|
|
311
|
+
let { t: e } = Z(), t = V(), n = ae(S.resolve(u)), r = G(() => n.some((e) => e.isLoading), [n]), [i, a] = q(!1), o = H(() => {
|
|
306
312
|
S.resolve(u).hideAllNotifications(), a(!0);
|
|
307
313
|
}, []), s = H(() => {
|
|
308
314
|
a(!1);
|
|
309
315
|
}, []);
|
|
310
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
316
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
311
317
|
"aria-label": e`Notifications`,
|
|
312
318
|
color: "inherit",
|
|
313
319
|
onClick: o,
|
|
@@ -324,7 +330,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
324
330
|
} },
|
|
325
331
|
children: /* @__PURE__ */ Y(ue, { color: "inherit" })
|
|
326
332
|
}),
|
|
327
|
-
r && /* @__PURE__ */ Y(
|
|
333
|
+
r && /* @__PURE__ */ Y(A, {
|
|
328
334
|
color: "inherit",
|
|
329
335
|
size: t.spacing(3.5),
|
|
330
336
|
sx: { position: "absolute" }
|
|
@@ -353,7 +359,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
353
359
|
]), l = H(() => {
|
|
354
360
|
i.current.open();
|
|
355
361
|
}, []);
|
|
356
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
362
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
357
363
|
"aria-label": e`Outages`,
|
|
358
364
|
color: "inherit",
|
|
359
365
|
onClick: l,
|
|
@@ -379,7 +385,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
379
385
|
},
|
|
380
386
|
children: e`Outages`
|
|
381
387
|
})]
|
|
382
|
-
}), /* @__PURE__ */ Y(
|
|
388
|
+
}), /* @__PURE__ */ Y(ee, { ref: i })] });
|
|
383
389
|
}, Oe = m(() => {
|
|
384
390
|
let { t: e } = Z(), t = c({
|
|
385
391
|
gcTime: 0,
|
|
@@ -387,18 +393,18 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
387
393
|
queryKey: S.resolve(l).getGenericKey(d.ORGANIZATION_ADMIN_NAME_EMAILS),
|
|
388
394
|
staleTime: 0
|
|
389
395
|
});
|
|
390
|
-
return /* @__PURE__ */ Y(
|
|
396
|
+
return /* @__PURE__ */ Y(N, {
|
|
391
397
|
alignItems: "center",
|
|
392
398
|
sx: {
|
|
393
399
|
justifyContent: "center",
|
|
394
400
|
paddingTop: 0
|
|
395
401
|
},
|
|
396
|
-
children: /* @__PURE__ */ Y(
|
|
402
|
+
children: /* @__PURE__ */ Y(I, {
|
|
397
403
|
primary: e`My organizations admins`,
|
|
398
404
|
secondary: /* @__PURE__ */ X(J, { children: [
|
|
399
405
|
t.isLoading && e`Loading...`,
|
|
400
406
|
t.error && e`Error loading organization admins`,
|
|
401
|
-
t.data?.map((e) => /* @__PURE__ */ Y(
|
|
407
|
+
t.data?.map((e) => /* @__PURE__ */ Y(ne, {
|
|
402
408
|
href: `mailto:${e.email}`,
|
|
403
409
|
sx: { display: "table" },
|
|
404
410
|
children: e.name ?? e.email
|
|
@@ -412,9 +418,9 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
412
418
|
permission_type: E.EXECUTE
|
|
413
419
|
}] }), ke = m(() => {
|
|
414
420
|
let { t: e } = Z(), t = f(), n = G(() => t.isLoading ? e`Loading...` : t.error ? e`Error` : t.map.get(S.resolve(i).user?.organization_id ?? "")?.name ?? e`Unknown`, [t, e]);
|
|
415
|
-
return /* @__PURE__ */ Y(
|
|
421
|
+
return /* @__PURE__ */ Y(N, {
|
|
416
422
|
sx: { paddingBottom: 0 },
|
|
417
|
-
children: /* @__PURE__ */ Y(
|
|
423
|
+
children: /* @__PURE__ */ Y(I, {
|
|
418
424
|
primary: e`My organization`,
|
|
419
425
|
secondary: n ?? e`Unknown`,
|
|
420
426
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
@@ -435,7 +441,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
435
441
|
topic: "USER_LOGOUT"
|
|
436
442
|
}]), S.resolve(s).flushLog(), r.signoutRedirect();
|
|
437
443
|
}, [r]), m = G(() => e.getUserDisplayValue(S.resolve(i).user, l), [l]), h = G(() => S.resolve(i).user?.roles, []);
|
|
438
|
-
return /* @__PURE__ */ Y(
|
|
444
|
+
return /* @__PURE__ */ Y(L, {
|
|
439
445
|
...Q.createAttributes("UserMenu"),
|
|
440
446
|
anchorEl: t,
|
|
441
447
|
anchorOrigin: {
|
|
@@ -449,26 +455,26 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
449
455
|
horizontal: "right",
|
|
450
456
|
vertical: "top"
|
|
451
457
|
},
|
|
452
|
-
children: /* @__PURE__ */ X(
|
|
458
|
+
children: /* @__PURE__ */ X(M, {
|
|
453
459
|
sx: {
|
|
454
460
|
maxWidth: 300,
|
|
455
461
|
minWidth: 200,
|
|
456
462
|
width: "100%"
|
|
457
463
|
},
|
|
458
464
|
children: [
|
|
459
|
-
/* @__PURE__ */ Y(
|
|
465
|
+
/* @__PURE__ */ Y(N, {
|
|
460
466
|
divider: !0,
|
|
461
|
-
children: /* @__PURE__ */ Y(
|
|
467
|
+
children: /* @__PURE__ */ Y(I, {
|
|
462
468
|
primary: m ?? l`Unknown`,
|
|
463
469
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
464
470
|
})
|
|
465
471
|
}),
|
|
466
472
|
/* @__PURE__ */ Y(ke, {}),
|
|
467
473
|
/* @__PURE__ */ Y(Oe, {}),
|
|
468
|
-
/* @__PURE__ */ Y(
|
|
474
|
+
/* @__PURE__ */ Y(N, {
|
|
469
475
|
divider: !0,
|
|
470
476
|
sx: { paddingTop: 0 },
|
|
471
|
-
children: /* @__PURE__ */ Y(
|
|
477
|
+
children: /* @__PURE__ */ Y(I, {
|
|
472
478
|
primary: l`My roles`,
|
|
473
479
|
secondary: /* @__PURE__ */ Y(J, { children: h?.map((e) => /* @__PURE__ */ Y(k, {
|
|
474
480
|
component: "span",
|
|
@@ -481,24 +487,24 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
481
487
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
482
488
|
})
|
|
483
489
|
}),
|
|
484
|
-
/* @__PURE__ */ X(
|
|
490
|
+
/* @__PURE__ */ X(N, {
|
|
485
491
|
alignItems: "center",
|
|
486
492
|
divider: !0,
|
|
487
493
|
sx: { justifyContent: "center" },
|
|
488
|
-
children: [/* @__PURE__ */ X(
|
|
494
|
+
children: [/* @__PURE__ */ X(P, {
|
|
489
495
|
onClick: d,
|
|
490
|
-
children: [/* @__PURE__ */ Y(
|
|
496
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(ve, { color: "primary" }) }), /* @__PURE__ */ Y(I, {
|
|
491
497
|
primary: l`My API permissions`,
|
|
492
498
|
slotProps: { primary: { sx: { color: "primary.main" } } }
|
|
493
499
|
})]
|
|
494
500
|
}), /* @__PURE__ */ Y(v, { ref: u })]
|
|
495
501
|
}),
|
|
496
|
-
/* @__PURE__ */ X(
|
|
502
|
+
/* @__PURE__ */ X(N, {
|
|
497
503
|
alignItems: "center",
|
|
498
504
|
sx: { justifyContent: "center" },
|
|
499
|
-
children: [/* @__PURE__ */ X(
|
|
505
|
+
children: [/* @__PURE__ */ X(P, {
|
|
500
506
|
onClick: f,
|
|
501
|
-
children: [/* @__PURE__ */ Y(
|
|
507
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(_e, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
502
508
|
primary: l`Logout`,
|
|
503
509
|
slotProps: { primary: { sx: {
|
|
504
510
|
color: "secondary.main",
|
|
@@ -523,7 +529,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
523
529
|
}, []), a = H(() => {
|
|
524
530
|
r(null);
|
|
525
531
|
}, []);
|
|
526
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
532
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
527
533
|
color: "inherit",
|
|
528
534
|
onClick: i,
|
|
529
535
|
title: "Account",
|
|
@@ -546,7 +552,7 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
546
552
|
let { t: e } = Z(), t = V(), n = K(null), r = H(() => {
|
|
547
553
|
n.current.open();
|
|
548
554
|
}, []);
|
|
549
|
-
return S.resolve(x).featureFlags.update_own_organization ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
555
|
+
return S.resolve(x).featureFlags.update_own_organization ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
550
556
|
"aria-label": e`Change organization`,
|
|
551
557
|
color: "inherit",
|
|
552
558
|
onClick: r,
|
|
@@ -564,42 +570,47 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
564
570
|
})]
|
|
565
571
|
}), /* @__PURE__ */ Y(_, { ref: n })] }) : null;
|
|
566
572
|
}, Ne = ({ fullWidth: e }) => {
|
|
567
|
-
let t = V(),
|
|
568
|
-
|
|
573
|
+
let t = V(), n = G(() => ({
|
|
574
|
+
background: t.palette.primary.main,
|
|
575
|
+
environmentMessageColor: "#ffea00",
|
|
576
|
+
primaryColor: t.palette.primary.contrastText,
|
|
577
|
+
...t.components?.GenEpixUiClientCommonApplicationBarActions ?? {}
|
|
578
|
+
}), [t]), { t: r } = Z(), i = o().getEnvironmentMessage(), a = W(), [s, c] = q(!1), l = H(() => {
|
|
579
|
+
c((e) => !e);
|
|
569
580
|
}, []);
|
|
570
581
|
return U(() => {
|
|
571
|
-
if (
|
|
582
|
+
if (s) {
|
|
572
583
|
let e = (e) => {
|
|
573
|
-
e.key === "Escape" &&
|
|
584
|
+
e.key === "Escape" && c(!1);
|
|
574
585
|
};
|
|
575
586
|
return document.addEventListener("keydown", e), () => {
|
|
576
587
|
document.removeEventListener("keydown", e);
|
|
577
588
|
};
|
|
578
589
|
}
|
|
579
|
-
}, [
|
|
590
|
+
}, [s]), /* @__PURE__ */ X(k, {
|
|
580
591
|
...Q.createAttributes("ApplicationBarActions"),
|
|
581
592
|
sx: {
|
|
582
593
|
alignItems: "center",
|
|
583
594
|
display: "flex",
|
|
584
595
|
paddingRight: 1
|
|
585
596
|
},
|
|
586
|
-
children: [/* @__PURE__ */ Y(
|
|
587
|
-
"aria-controls":
|
|
588
|
-
"aria-label":
|
|
589
|
-
onClick:
|
|
597
|
+
children: [/* @__PURE__ */ Y(j, {
|
|
598
|
+
"aria-controls": a,
|
|
599
|
+
"aria-label": r`Toggle menu`,
|
|
600
|
+
onClick: l,
|
|
590
601
|
sx: {
|
|
591
|
-
color:
|
|
602
|
+
color: n.primaryColor,
|
|
592
603
|
[t.breakpoints.up("md")]: { display: "none" }
|
|
593
604
|
},
|
|
594
|
-
children: /* @__PURE__ */ Y(
|
|
605
|
+
children: /* @__PURE__ */ Y(se, {})
|
|
595
606
|
}), /* @__PURE__ */ X(k, {
|
|
596
|
-
id:
|
|
607
|
+
id: a,
|
|
597
608
|
sx: {
|
|
598
609
|
display: "flex",
|
|
599
610
|
[t.breakpoints.down("md")]: {
|
|
600
611
|
alignItems: "start",
|
|
601
|
-
background:
|
|
602
|
-
display:
|
|
612
|
+
background: n.background,
|
|
613
|
+
display: s ? "flex" : "none",
|
|
603
614
|
flexDirection: "column",
|
|
604
615
|
left: 0,
|
|
605
616
|
position: "absolute",
|
|
@@ -615,12 +626,12 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
615
626
|
/* @__PURE__ */ Y(Te, {}),
|
|
616
627
|
/* @__PURE__ */ Y(Me, {}),
|
|
617
628
|
/* @__PURE__ */ Y(je, {}),
|
|
618
|
-
|
|
629
|
+
i && /* @__PURE__ */ Y(k, {
|
|
619
630
|
...Q.createAttributes("ApplicationBarActions-EnvironmentMessage"),
|
|
620
631
|
"aria-hidden": "true",
|
|
621
632
|
sx: {
|
|
622
633
|
alignItems: "center",
|
|
623
|
-
color:
|
|
634
|
+
color: n.environmentMessageColor,
|
|
624
635
|
display: "flex",
|
|
625
636
|
fontWeight: 700,
|
|
626
637
|
marginRight: +!e,
|
|
@@ -631,25 +642,29 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
631
642
|
visibility: "hidden"
|
|
632
643
|
}
|
|
633
644
|
},
|
|
634
|
-
children:
|
|
645
|
+
children: r("{{environmentMessage}}", { environmentMessage: i })
|
|
635
646
|
})
|
|
636
647
|
]
|
|
637
648
|
})]
|
|
638
649
|
});
|
|
639
650
|
}, Pe = ({ fullWidth: e, singleAction: t }) => {
|
|
640
|
-
let n = V(), r =
|
|
651
|
+
let n = V(), r = G(() => ({
|
|
652
|
+
background: n.palette.primary.main,
|
|
653
|
+
primaryColor: n.palette.primary.contrastText,
|
|
654
|
+
...n.components?.GenEpixUiClientCommonApplicationBar ?? {}
|
|
655
|
+
}), [n]), i = o();
|
|
641
656
|
return /* @__PURE__ */ Y(D, {
|
|
642
657
|
...Q.createAttributes("ApplicationBar"),
|
|
643
658
|
position: "static",
|
|
644
659
|
square: !0,
|
|
645
660
|
sx: {
|
|
646
|
-
background:
|
|
661
|
+
background: r.background,
|
|
647
662
|
boxShadow: "none"
|
|
648
663
|
},
|
|
649
|
-
children: /* @__PURE__ */ Y(
|
|
664
|
+
children: /* @__PURE__ */ Y(te, {
|
|
650
665
|
disableGutters: !0,
|
|
651
666
|
maxWidth: !e && "xl",
|
|
652
|
-
children: /* @__PURE__ */ X(
|
|
667
|
+
children: /* @__PURE__ */ X(R, {
|
|
653
668
|
disableGutters: !0,
|
|
654
669
|
sx: {
|
|
655
670
|
height: 48,
|
|
@@ -658,21 +673,20 @@ var be = B(ae)(({ theme: e }) => ({
|
|
|
658
673
|
},
|
|
659
674
|
children: [t && /* @__PURE__ */ Y(k, {
|
|
660
675
|
sx: { marginX: 2 },
|
|
661
|
-
children: /* @__PURE__ */ Y(
|
|
676
|
+
children: /* @__PURE__ */ Y(re, {
|
|
662
677
|
component: "h1",
|
|
663
678
|
sx: {
|
|
664
|
-
color:
|
|
679
|
+
color: r.primaryColor,
|
|
665
680
|
fontSize: "1.3rem"
|
|
666
681
|
},
|
|
667
682
|
variant: "body2",
|
|
668
|
-
children:
|
|
683
|
+
children: i.applicationName
|
|
669
684
|
})
|
|
670
685
|
}), !t && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(xe, { fullWidth: e }), /* @__PURE__ */ Y(Ne, { fullWidth: e })] })]
|
|
671
686
|
})
|
|
672
687
|
})
|
|
673
688
|
});
|
|
674
689
|
};
|
|
675
|
-
//#endregion
|
|
676
690
|
export { Pe as ApplicationBar };
|
|
677
691
|
|
|
678
692
|
//# sourceMappingURL=index.js.map
|