@gen-epix/ui-client-common 4.2.0 → 4.3.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/_chunks/Breadcrumbs.js +22 -22
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +3 -3
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +559 -3173
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/{oidc-client-ts.js → UserManagerUtil.js} +222 -198
- package/dist/_chunks/UserManagerUtil.js.map +1 -0
- package/dist/_chunks/middleware.js +1 -1
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +1 -1
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +13 -11
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/useColumnsMenu.js +2 -2
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -2
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +8 -8
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/services/LogService/index.js +1 -1
- package/dist/classes/services/LogService/index.js.map +1 -1
- package/dist/classes/services/RouterService/RouterService.d.ts +15 -6
- package/dist/classes/services/RouterService/index.js +30 -10
- package/dist/classes/services/RouterService/index.js.map +1 -1
- package/dist/components/app/App/index.js +34 -98
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/AppRouterProvider/AppRouterProvider.d.ts +1 -0
- package/dist/components/app/ApplicationBootstrapWithAuthentication/ApplicationBootstrapWithAuthentication.d.ts +2 -0
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.d.ts +1 -0
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +81 -0
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -0
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/ApplicationBootstrapWithoutAuthorization.d.ts +2 -0
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.d.ts +1 -0
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +63 -0
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -0
- package/dist/components/app/AuthenticationWrapper/index.js +38 -38
- package/dist/components/app/AuthorizationWrapper/index.js +20 -20
- package/dist/components/app/RouterRoot/index.js +58 -59
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/ui/ApplicationBar/index.js +164 -148
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +34 -34
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
- package/dist/components/ui/NavLink/index.js +8 -8
- package/dist/components/ui/PageContainer/index.js +1 -1
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +28 -28
- package/dist/pages/AdminPage/index.js +23 -23
- package/dist/pages/OrganizationContactsAdminPage/index.js +29 -29
- package/dist/pages/OrganizationSitesAdminPage/index.js +25 -25
- package/dist/pages/PostLoginPage/index.js +11 -11
- package/dist/pages/RouterErrorPage/index.js +10 -10
- package/dist/utils/UserManagerUtil/index.js +2 -31
- package/package.json +36 -27
- package/dist/_chunks/chunk-BV7QT456.js +0 -3742
- package/dist/_chunks/chunk-BV7QT456.js.map +0 -1
- package/dist/_chunks/oidc-client-ts.js.map +0 -1
- package/dist/_chunks/react-oidc-context.js +0 -201
- package/dist/_chunks/react-oidc-context.js.map +0 -1
- package/dist/components/app/ApplicationBootstrap/ApplicationBootstrap.d.ts +0 -2
- package/dist/components/app/ApplicationBootstrap/index.d.ts +0 -1
- package/dist/components/app/ApplicationBootstrap/index.js +0 -135
- package/dist/components/app/ApplicationBootstrap/index.js.map +0 -1
- package/dist/utils/UserManagerUtil/index.js.map +0 -1
|
@@ -3,38 +3,38 @@ import { ConfigService as t } from "../../../classes/services/ConfigService/inde
|
|
|
3
3
|
import { t as n } from "../../../_chunks/react.js";
|
|
4
4
|
import { outagesStore as r } from "../../../stores/outagesStore/index.js";
|
|
5
5
|
import { AuthorizationService as i } from "../../../classes/services/AuthorizationService/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as l } from "../../../_chunks/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { CommonDbCommandName as E, CommonDbLogLevel as ee, CommonDbPermissionType as D } from "@gen-epix/api-commondb";
|
|
28
|
-
import { AppBar as te, Badge as O, Box as k, CircularProgress as A, Container as j, IconButton as M, Link as N, List as P, ListItem as F, ListItemButton as I, ListItemIcon as L, ListItemText as R, Popover as z, Toolbar as ne, Tooltip as re, Typography as ie, styled as B, useTheme as V } from "@mui/material";
|
|
6
|
+
import { RouterService as a } from "../../../classes/services/RouterService/index.js";
|
|
7
|
+
import { ApiService as o } from "../../../classes/services/ApiService/index.js";
|
|
8
|
+
import { LogService as s } from "../../../classes/services/LogService/index.js";
|
|
9
|
+
import { t as c } from "../../../_chunks/useQueryMemo.js";
|
|
10
|
+
import { t as l } from "../../../_chunks/QueryClientService.js";
|
|
11
|
+
import { NotificationService as u } from "../../../classes/services/NotificationService/index.js";
|
|
12
|
+
import { COMMON_QUERY_KEY as d } from "../../../constants/query.js";
|
|
13
|
+
import { useOrganizationMapQuery as f } from "../../../dataHooks/useOrganizationsQuery/index.js";
|
|
14
|
+
import { n as p } from "../../../_chunks/Notifications.js";
|
|
15
|
+
import { withPermissions as m } from "../../../hoc/withPermissions/index.js";
|
|
16
|
+
import { UserSettingsService as h } from "../../../classes/services/UserSettingsService/index.js";
|
|
17
|
+
import { UserFeedbackDialog as g } from "../UserFeedbackDialog/index.js";
|
|
18
|
+
import { OutagesDialog as _ } from "../OutagesDialog/index.js";
|
|
19
|
+
import { OrganizationSwitcherDialog as ee } from "../OrganizationSwitcherDialog/index.js";
|
|
20
|
+
import { MyPermissionsDialog as te } from "../MyPermissionsDialog/index.js";
|
|
21
|
+
import { LicensesDialog as v } from "../LicensesDialog/index.js";
|
|
22
|
+
import { BackendVersionService as y } from "../../../classes/services/BackendVersionService/index.js";
|
|
23
|
+
import { FeatureFlagsService as b } from "../../../classes/services/FeatureFlagsService/index.js";
|
|
24
|
+
import { StringUtil as x } from "@gen-epix/ui-core/utils/StringUtil";
|
|
25
|
+
import { CommonDbCommandName as S, CommonDbLogLevel as C, CommonDbPermissionType as w } from "@gen-epix/api-commondb";
|
|
26
|
+
import { AppBar as T, Badge as E, Box as D, CircularProgress as O, Container as k, IconButton as A, Link as j, 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 ne, styled as B, useTheme as V } from "@mui/material";
|
|
29
27
|
import { useCallback as H, useEffect as U, useId as W, useMemo as G, useRef as K, useState as q } from "react";
|
|
30
28
|
import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
31
29
|
import { useTranslation as Z } from "react-i18next";
|
|
32
30
|
import { TestIdUtil as Q } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
31
|
+
import re from "@mui/icons-material/ContentCopy";
|
|
32
|
+
import { NavLink as $ } from "react-router-dom";
|
|
33
|
+
import { useSubscribable as ie } from "@gen-epix/ui-core/hooks/useSubscribable";
|
|
34
|
+
import ae from "@mui/icons-material/Menu";
|
|
35
|
+
import oe from "@mui/icons-material/MoreVert";
|
|
36
|
+
import { Confirmation as se } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
37
|
+
import { useAuth as ce } from "react-oidc-context";
|
|
38
38
|
import le from "@mui/icons-material/Notifications";
|
|
39
39
|
import ue from "@mui/icons-material/Chat";
|
|
40
40
|
import de from "@mui/icons-material/Code";
|
|
@@ -46,15 +46,15 @@ import ge from "@mui/icons-material/Logout";
|
|
|
46
46
|
import _e from "@mui/icons-material/Key";
|
|
47
47
|
import ve from "@mui/icons-material/ChangeCircle";
|
|
48
48
|
//#region src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx
|
|
49
|
-
var ye = B(
|
|
49
|
+
var ye = B($)(({ theme: e }) => ({
|
|
50
50
|
"&:hover": { textDecoration: "underline" },
|
|
51
51
|
color: e.palette.secondary.contrastText,
|
|
52
52
|
display: "inline-block",
|
|
53
53
|
fontSize: "1.3rem",
|
|
54
54
|
textDecoration: "none"
|
|
55
55
|
})), be = ({ fullWidth: e }) => {
|
|
56
|
-
let { t } = Z(), n = V(), r = G(() => i.getInstance(), []),
|
|
57
|
-
let e =
|
|
56
|
+
let { t } = Z(), n = V(), r = G(() => i.getInstance(), []), o = W(), s = G(() => {
|
|
57
|
+
let e = a.getInstance().routes.find((e) => e.handle.root);
|
|
58
58
|
return [e, ...e.children.filter((e) => !e.handle.hidden)];
|
|
59
59
|
}, []), [c, l] = q(!1);
|
|
60
60
|
U(() => {
|
|
@@ -69,21 +69,23 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
69
69
|
}, [c]);
|
|
70
70
|
let u = H(() => {
|
|
71
71
|
l((e) => !e);
|
|
72
|
+
}, []), d = H((e) => {
|
|
73
|
+
e.currentTarget.ariaDisabled === "true" && e.preventDefault();
|
|
72
74
|
}, []);
|
|
73
|
-
return /* @__PURE__ */ X(
|
|
75
|
+
return /* @__PURE__ */ X(D, {
|
|
74
76
|
sx: { flexGrow: 1 },
|
|
75
|
-
children: [/* @__PURE__ */ Y(
|
|
76
|
-
"aria-controls":
|
|
77
|
+
children: [/* @__PURE__ */ Y(A, {
|
|
78
|
+
"aria-controls": o,
|
|
77
79
|
"aria-label": t`Toggle navigation menu`,
|
|
78
80
|
onClick: u,
|
|
79
81
|
sx: {
|
|
80
82
|
color: n["gen-epix-ui"].navbar.primaryColor,
|
|
81
83
|
[n.breakpoints.up("md")]: { display: "none" }
|
|
82
84
|
},
|
|
83
|
-
children: /* @__PURE__ */ Y(
|
|
84
|
-
}), /* @__PURE__ */ Y(
|
|
85
|
+
children: /* @__PURE__ */ Y(ae, {})
|
|
86
|
+
}), /* @__PURE__ */ Y(D, {
|
|
85
87
|
component: "nav",
|
|
86
|
-
id:
|
|
88
|
+
id: o,
|
|
87
89
|
sx: {
|
|
88
90
|
flexGrow: 1,
|
|
89
91
|
[n.breakpoints.down("md")]: {
|
|
@@ -96,7 +98,7 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
96
98
|
width: "100%"
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
|
-
children: /* @__PURE__ */ Y(
|
|
101
|
+
children: /* @__PURE__ */ Y(D, {
|
|
100
102
|
component: "ul",
|
|
101
103
|
sx: {
|
|
102
104
|
display: "flex",
|
|
@@ -108,37 +110,51 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
108
110
|
margin: 0
|
|
109
111
|
}
|
|
110
112
|
},
|
|
111
|
-
children: s.filter((e) =>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
children: s.filter((e) => r.doesUserHavePermissionForRoute(e)).map((e) => {
|
|
114
|
+
let t = !!e.handle.disabled;
|
|
115
|
+
return /* @__PURE__ */ Y(D, {
|
|
116
|
+
component: "li",
|
|
117
|
+
sx: {
|
|
118
|
+
"&:has(.active:not([aria-disabled=\"true\"]))": {
|
|
119
|
+
"& svg": { color: n["gen-epix-ui"].navbar.activeColor },
|
|
120
|
+
a: { color: n["gen-epix-ui"].navbar.activeColor },
|
|
121
|
+
background: n["gen-epix-ui"].navbar.activeBackground
|
|
122
|
+
},
|
|
123
|
+
"& svg": {
|
|
124
|
+
color: t ? n.palette.grey[400] : void 0,
|
|
125
|
+
marginTop: "6px"
|
|
126
|
+
},
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
color: t ? n.palette.grey[400] : n["gen-epix-ui"].navbar.primaryColor,
|
|
129
|
+
display: "flex",
|
|
130
|
+
fontWeight: 800,
|
|
131
|
+
height: 48,
|
|
132
|
+
listStyle: "none",
|
|
133
|
+
padding: `0 ${n.spacing(1)}`
|
|
118
134
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
})
|
|
134
|
-
}
|
|
135
|
+
children: /* @__PURE__ */ X(ye, {
|
|
136
|
+
"aria-disabled": t || void 0,
|
|
137
|
+
"aria-label": e.handle.title,
|
|
138
|
+
onClick: d,
|
|
139
|
+
sx: {
|
|
140
|
+
"&:hover": { textDecoration: t ? "none" : void 0 },
|
|
141
|
+
color: t ? n.palette.grey[400] : void 0,
|
|
142
|
+
cursor: t ? "not-allowed" : void 0,
|
|
143
|
+
padding: `0 ${n.spacing(1)}`
|
|
144
|
+
},
|
|
145
|
+
tabIndex: t ? -1 : void 0,
|
|
146
|
+
to: e.path,
|
|
147
|
+
children: [!!e.handle.icon && e.handle.icon, !e.handle.icon && e.handle.title]
|
|
148
|
+
})
|
|
149
|
+
}, e.path);
|
|
150
|
+
})
|
|
135
151
|
})
|
|
136
152
|
})]
|
|
137
153
|
});
|
|
138
154
|
}, xe = (/* @__PURE__ */ new Date()).getTime(), Se = () => {
|
|
139
155
|
let { t: e } = Z(), n = V(), r = K(null), [i, a] = q(!1);
|
|
140
156
|
U(() => {
|
|
141
|
-
if (!
|
|
157
|
+
if (!h.getInstance().showShowUserFeedbackTooltip) return;
|
|
142
158
|
let e = Math.max(0, t.getInstance().config.userFeedback.SHOW_USER_FEEDBACK_TOOLTIP_AFTER_MS - ((/* @__PURE__ */ new Date()).getTime() - xe)), n = setTimeout(() => {
|
|
143
159
|
a(!0);
|
|
144
160
|
}, e);
|
|
@@ -149,9 +165,9 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
149
165
|
let o = H(() => {
|
|
150
166
|
r.current.open();
|
|
151
167
|
}, []), s = H(() => {
|
|
152
|
-
a(!1),
|
|
168
|
+
a(!1), h.getInstance().showShowUserFeedbackTooltip = !1;
|
|
153
169
|
}, []);
|
|
154
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(
|
|
170
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(z, {
|
|
155
171
|
arrow: !0,
|
|
156
172
|
color: "secondary",
|
|
157
173
|
onMouseEnter: s,
|
|
@@ -166,11 +182,11 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
166
182
|
} }
|
|
167
183
|
},
|
|
168
184
|
title: e`Would you like to share your feedback?`,
|
|
169
|
-
children: /* @__PURE__ */ X(
|
|
185
|
+
children: /* @__PURE__ */ X(A, {
|
|
170
186
|
"aria-label": e`Feedback`,
|
|
171
187
|
color: "inherit",
|
|
172
188
|
onClick: o,
|
|
173
|
-
children: [/* @__PURE__ */ Y(ue, { color: "inherit" }), /* @__PURE__ */ Y(
|
|
189
|
+
children: [/* @__PURE__ */ Y(ue, { color: "inherit" }), /* @__PURE__ */ Y(D, {
|
|
174
190
|
sx: {
|
|
175
191
|
fontSize: "1.3rem",
|
|
176
192
|
marginLeft: n.spacing(1),
|
|
@@ -182,15 +198,15 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
182
198
|
children: e`Feedback`
|
|
183
199
|
})]
|
|
184
200
|
})
|
|
185
|
-
}), /* @__PURE__ */ Y(
|
|
201
|
+
}), /* @__PURE__ */ Y(g, { ref: r })] });
|
|
186
202
|
}, Ce = ({ anchorElement: e, onClose: n }) => {
|
|
187
|
-
let r = G(() =>
|
|
203
|
+
let r = G(() => x.createUuid(), []), i = K(null), a = !!e, { t: o } = Z(), [s, c] = q(!1), l = H(() => {
|
|
188
204
|
i.current.open();
|
|
189
205
|
}, []), u = H(async () => {
|
|
190
|
-
let e = `Frontend version: ${t.getInstance().config.getSoftwareVersion()}\nBackend version: ${
|
|
206
|
+
let e = `Frontend version: ${t.getInstance().config.getSoftwareVersion()}\nBackend version: ${y.getInstance().version}\nURL: ${window.location.href}\nDate/time: ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
191
207
|
await navigator.clipboard.writeText(e), c(!0), setTimeout(() => c(!1), 2e3);
|
|
192
208
|
}, []);
|
|
193
|
-
return /* @__PURE__ */ Y(
|
|
209
|
+
return /* @__PURE__ */ Y(L, {
|
|
194
210
|
...Q.createAttributes("InfoMenu"),
|
|
195
211
|
anchorEl: e,
|
|
196
212
|
anchorOrigin: {
|
|
@@ -204,16 +220,16 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
204
220
|
horizontal: "right",
|
|
205
221
|
vertical: "top"
|
|
206
222
|
},
|
|
207
|
-
children: /* @__PURE__ */ X(
|
|
223
|
+
children: /* @__PURE__ */ X(M, {
|
|
208
224
|
sx: {
|
|
209
225
|
maxWidth: 300,
|
|
210
226
|
minWidth: 200,
|
|
211
227
|
width: "100%"
|
|
212
228
|
},
|
|
213
229
|
children: [
|
|
214
|
-
/* @__PURE__ */ Y(
|
|
230
|
+
/* @__PURE__ */ Y(N, {
|
|
215
231
|
divider: !0,
|
|
216
|
-
children: /* @__PURE__ */ Y(
|
|
232
|
+
children: /* @__PURE__ */ Y(I, {
|
|
217
233
|
primary: o("Frontend version"),
|
|
218
234
|
secondary: t.getInstance().config.getSoftwareVersion(),
|
|
219
235
|
slotProps: { primary: { sx: {
|
|
@@ -222,22 +238,22 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
222
238
|
} } }
|
|
223
239
|
})
|
|
224
240
|
}),
|
|
225
|
-
/* @__PURE__ */ Y(
|
|
241
|
+
/* @__PURE__ */ Y(N, {
|
|
226
242
|
divider: !0,
|
|
227
|
-
children: /* @__PURE__ */ Y(
|
|
243
|
+
children: /* @__PURE__ */ Y(I, {
|
|
228
244
|
primary: o("Backend version"),
|
|
229
|
-
secondary:
|
|
245
|
+
secondary: y.getInstance().version,
|
|
230
246
|
slotProps: { primary: { sx: {
|
|
231
247
|
color: "primary.main",
|
|
232
248
|
fontWeight: "bold"
|
|
233
249
|
} } }
|
|
234
250
|
})
|
|
235
251
|
}),
|
|
236
|
-
/* @__PURE__ */ Y(
|
|
252
|
+
/* @__PURE__ */ Y(N, {
|
|
237
253
|
divider: !0,
|
|
238
|
-
children: /* @__PURE__ */ X(
|
|
254
|
+
children: /* @__PURE__ */ X(P, {
|
|
239
255
|
onClick: u,
|
|
240
|
-
children: [/* @__PURE__ */ Y(
|
|
256
|
+
children: [/* @__PURE__ */ Y(F, { children: s ? /* @__PURE__ */ Y(pe, { color: "success" }) : /* @__PURE__ */ Y(re, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
241
257
|
primary: o`Copy version information to clipboard`,
|
|
242
258
|
slotProps: { primary: { sx: {
|
|
243
259
|
color: "secondary.main",
|
|
@@ -246,16 +262,16 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
246
262
|
})]
|
|
247
263
|
})
|
|
248
264
|
}),
|
|
249
|
-
/* @__PURE__ */ X(
|
|
265
|
+
/* @__PURE__ */ X(N, { children: [/* @__PURE__ */ X(P, {
|
|
250
266
|
onClick: l,
|
|
251
|
-
children: [/* @__PURE__ */ Y(
|
|
267
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(fe, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
252
268
|
primary: o`Show license information`,
|
|
253
269
|
slotProps: { primary: { sx: {
|
|
254
270
|
color: "secondary.main",
|
|
255
271
|
fontWeight: "bold"
|
|
256
272
|
} } }
|
|
257
273
|
})]
|
|
258
|
-
}), /* @__PURE__ */ Y(
|
|
274
|
+
}), /* @__PURE__ */ Y(v, { ref: i })] })
|
|
259
275
|
]
|
|
260
276
|
})
|
|
261
277
|
});
|
|
@@ -265,11 +281,11 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
265
281
|
}, []), a = H(() => {
|
|
266
282
|
t(null);
|
|
267
283
|
}, []);
|
|
268
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
284
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
|
|
269
285
|
color: "inherit",
|
|
270
286
|
onClick: i,
|
|
271
287
|
title: "Code information",
|
|
272
|
-
children: [/* @__PURE__ */ Y(de, { color: "inherit" }), /* @__PURE__ */ Y(
|
|
288
|
+
children: [/* @__PURE__ */ Y(de, { color: "inherit" }), /* @__PURE__ */ Y(D, {
|
|
273
289
|
sx: {
|
|
274
290
|
fontSize: "1.3rem",
|
|
275
291
|
marginLeft: r.spacing(1),
|
|
@@ -285,18 +301,18 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
285
301
|
onClose: a
|
|
286
302
|
})] });
|
|
287
303
|
}, Te = () => {
|
|
288
|
-
let { t: e } = Z(), t = V(), n =
|
|
289
|
-
|
|
304
|
+
let { t: e } = Z(), t = V(), n = ie(u.getInstance()), r = G(() => n.some((e) => e.isLoading), [n]), [i, a] = q(!1), o = H(() => {
|
|
305
|
+
u.getInstance().hideAllNotifications(), a(!0);
|
|
290
306
|
}, []), s = H(() => {
|
|
291
307
|
a(!1);
|
|
292
308
|
}, []);
|
|
293
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
309
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
|
|
294
310
|
"aria-label": e`Notifications`,
|
|
295
311
|
color: "inherit",
|
|
296
312
|
onClick: o,
|
|
297
313
|
title: e`Notifications`,
|
|
298
314
|
children: [
|
|
299
|
-
/* @__PURE__ */ Y(
|
|
315
|
+
/* @__PURE__ */ Y(E, {
|
|
300
316
|
badgeContent: n.length,
|
|
301
317
|
color: "secondary",
|
|
302
318
|
sx: { "& .MuiBadge-badge": {
|
|
@@ -307,12 +323,12 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
307
323
|
} },
|
|
308
324
|
children: /* @__PURE__ */ Y(le, { color: "inherit" })
|
|
309
325
|
}),
|
|
310
|
-
r && /* @__PURE__ */ Y(
|
|
326
|
+
r && /* @__PURE__ */ Y(O, {
|
|
311
327
|
color: "inherit",
|
|
312
328
|
size: t.spacing(3.5),
|
|
313
329
|
sx: { position: "absolute" }
|
|
314
330
|
}),
|
|
315
|
-
/* @__PURE__ */ Y(
|
|
331
|
+
/* @__PURE__ */ Y(D, {
|
|
316
332
|
sx: {
|
|
317
333
|
fontSize: "1.3rem",
|
|
318
334
|
marginLeft: t.spacing(1),
|
|
@@ -324,7 +340,7 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
324
340
|
children: e`Notifications`
|
|
325
341
|
})
|
|
326
342
|
]
|
|
327
|
-
}), /* @__PURE__ */ Y(
|
|
343
|
+
}), /* @__PURE__ */ Y(p, {
|
|
328
344
|
onDrawerClose: s,
|
|
329
345
|
open: i
|
|
330
346
|
})] });
|
|
@@ -336,12 +352,12 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
336
352
|
]), l = H(() => {
|
|
337
353
|
i.current.open();
|
|
338
354
|
}, []);
|
|
339
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
355
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
|
|
340
356
|
"aria-label": e`Outages`,
|
|
341
357
|
color: "inherit",
|
|
342
358
|
onClick: l,
|
|
343
359
|
title: e`Outages`,
|
|
344
|
-
children: [/* @__PURE__ */ Y(
|
|
360
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
345
361
|
badgeContent: c,
|
|
346
362
|
color: "secondary",
|
|
347
363
|
sx: { "& .MuiBadge-badge": {
|
|
@@ -351,7 +367,7 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
351
367
|
minWidth: 15
|
|
352
368
|
} },
|
|
353
369
|
children: /* @__PURE__ */ Y(me, { color: "inherit" })
|
|
354
|
-
}), /* @__PURE__ */ Y(
|
|
370
|
+
}), /* @__PURE__ */ Y(D, {
|
|
355
371
|
sx: {
|
|
356
372
|
fontSize: "1.3rem",
|
|
357
373
|
marginLeft: t.spacing(1),
|
|
@@ -362,26 +378,26 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
362
378
|
},
|
|
363
379
|
children: e`Outages`
|
|
364
380
|
})]
|
|
365
|
-
}), /* @__PURE__ */ Y(
|
|
366
|
-
}, De =
|
|
367
|
-
let { t: e } = Z(), { data: t, error: n, isLoading: r } =
|
|
381
|
+
}), /* @__PURE__ */ Y(_, { ref: i })] });
|
|
382
|
+
}, De = m(() => {
|
|
383
|
+
let { t: e } = Z(), { data: t, error: n, isLoading: r } = c({
|
|
368
384
|
gcTime: 0,
|
|
369
|
-
queryFn: async ({ signal: e }) => (await
|
|
370
|
-
queryKey:
|
|
385
|
+
queryFn: async ({ signal: e }) => (await o.getInstance().abacApi.retrieveOrganizationAdminNameEmails({ signal: e })).data,
|
|
386
|
+
queryKey: l.getInstance().getGenericKey(d.ORGANIZATION_ADMIN_NAME_EMAILS),
|
|
371
387
|
staleTime: 0
|
|
372
388
|
});
|
|
373
|
-
return /* @__PURE__ */ Y(
|
|
389
|
+
return /* @__PURE__ */ Y(N, {
|
|
374
390
|
alignItems: "center",
|
|
375
391
|
sx: {
|
|
376
392
|
justifyContent: "center",
|
|
377
393
|
paddingTop: 0
|
|
378
394
|
},
|
|
379
|
-
children: /* @__PURE__ */ Y(
|
|
395
|
+
children: /* @__PURE__ */ Y(I, {
|
|
380
396
|
primary: e`My organizations admins`,
|
|
381
397
|
secondary: /* @__PURE__ */ X(J, { children: [
|
|
382
398
|
r && e`Loading...`,
|
|
383
399
|
n && e`Error`,
|
|
384
|
-
t?.map((e) => /* @__PURE__ */ Y(
|
|
400
|
+
t?.map((e) => /* @__PURE__ */ Y(j, {
|
|
385
401
|
href: `mailto:${e.email}`,
|
|
386
402
|
sx: { display: "table" },
|
|
387
403
|
children: e.name ?? e.email
|
|
@@ -391,69 +407,69 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
391
407
|
})
|
|
392
408
|
});
|
|
393
409
|
}, { requiredPermissions: [{
|
|
394
|
-
command_name:
|
|
395
|
-
permission_type:
|
|
396
|
-
}] }), Oe =
|
|
397
|
-
let { t: e } = Z(), t =
|
|
398
|
-
return /* @__PURE__ */ Y(
|
|
410
|
+
command_name: S.RetrieveOrganizationAdminNameEmailsCommand,
|
|
411
|
+
permission_type: w.EXECUTE
|
|
412
|
+
}] }), Oe = m(() => {
|
|
413
|
+
let { t: e } = Z(), t = f(), n = G(() => t.isLoading ? e`Loading...` : t.error ? e`Error` : t.map.get(i.getInstance().user?.organization_id ?? "")?.name ?? e`Unknown`, [t, e]);
|
|
414
|
+
return /* @__PURE__ */ Y(N, {
|
|
399
415
|
sx: { paddingBottom: 0 },
|
|
400
|
-
children: /* @__PURE__ */ Y(
|
|
416
|
+
children: /* @__PURE__ */ Y(I, {
|
|
401
417
|
primary: e`My organization`,
|
|
402
418
|
secondary: n ?? e`Unknown`,
|
|
403
419
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
404
420
|
})
|
|
405
421
|
});
|
|
406
422
|
}, { requiredPermissions: [{
|
|
407
|
-
command_name:
|
|
408
|
-
permission_type:
|
|
423
|
+
command_name: S.RetrieveOrganizationAdminNameEmailsCommand,
|
|
424
|
+
permission_type: w.EXECUTE
|
|
409
425
|
}] }), ke = ({ anchorElement: t, onClose: n }) => {
|
|
410
|
-
let r =
|
|
426
|
+
let r = ce(), a = K(null), o = G(() => x.createUuid(), []), c = !!t, { t: l } = Z(), u = K(null), d = H(() => {
|
|
411
427
|
u.current.open();
|
|
412
428
|
}, []), f = H(() => {
|
|
413
429
|
a.current.open();
|
|
414
430
|
}, []), p = H(() => {
|
|
415
|
-
|
|
431
|
+
s.getInstance().log([{
|
|
416
432
|
detail: r.user,
|
|
417
|
-
level:
|
|
433
|
+
level: C.TRACE,
|
|
418
434
|
topic: "USER_LOGOUT"
|
|
419
|
-
}]),
|
|
420
|
-
}, [r]),
|
|
421
|
-
return /* @__PURE__ */ Y(
|
|
435
|
+
}]), s.getInstance().flushLog(), r.signoutRedirect();
|
|
436
|
+
}, [r]), m = G(() => e.getUserDisplayValue(i.getInstance().user, l), [l]), h = G(() => i.getInstance().user?.roles, []);
|
|
437
|
+
return /* @__PURE__ */ Y(L, {
|
|
422
438
|
...Q.createAttributes("UserMenu"),
|
|
423
439
|
anchorEl: t,
|
|
424
440
|
anchorOrigin: {
|
|
425
441
|
horizontal: "right",
|
|
426
442
|
vertical: "bottom"
|
|
427
443
|
},
|
|
428
|
-
id:
|
|
444
|
+
id: c ? o : void 0,
|
|
429
445
|
onClose: n,
|
|
430
|
-
open:
|
|
446
|
+
open: c,
|
|
431
447
|
transformOrigin: {
|
|
432
448
|
horizontal: "right",
|
|
433
449
|
vertical: "top"
|
|
434
450
|
},
|
|
435
|
-
children: /* @__PURE__ */ X(
|
|
451
|
+
children: /* @__PURE__ */ X(M, {
|
|
436
452
|
sx: {
|
|
437
453
|
maxWidth: 300,
|
|
438
454
|
minWidth: 200,
|
|
439
455
|
width: "100%"
|
|
440
456
|
},
|
|
441
457
|
children: [
|
|
442
|
-
/* @__PURE__ */ Y(
|
|
458
|
+
/* @__PURE__ */ Y(N, {
|
|
443
459
|
divider: !0,
|
|
444
|
-
children: /* @__PURE__ */ Y(
|
|
445
|
-
primary:
|
|
460
|
+
children: /* @__PURE__ */ Y(I, {
|
|
461
|
+
primary: m ?? l`Unknown`,
|
|
446
462
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
447
463
|
})
|
|
448
464
|
}),
|
|
449
465
|
/* @__PURE__ */ Y(Oe, {}),
|
|
450
466
|
/* @__PURE__ */ Y(De, {}),
|
|
451
|
-
/* @__PURE__ */ Y(
|
|
467
|
+
/* @__PURE__ */ Y(N, {
|
|
452
468
|
divider: !0,
|
|
453
469
|
sx: { paddingTop: 0 },
|
|
454
|
-
children: /* @__PURE__ */ Y(
|
|
470
|
+
children: /* @__PURE__ */ Y(I, {
|
|
455
471
|
primary: l`My roles`,
|
|
456
|
-
secondary: /* @__PURE__ */ Y(J, { children:
|
|
472
|
+
secondary: /* @__PURE__ */ Y(J, { children: h?.map((e) => /* @__PURE__ */ Y(D, {
|
|
457
473
|
component: "span",
|
|
458
474
|
sx: {
|
|
459
475
|
display: "inline-block",
|
|
@@ -464,31 +480,31 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
464
480
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
465
481
|
})
|
|
466
482
|
}),
|
|
467
|
-
/* @__PURE__ */ X(
|
|
483
|
+
/* @__PURE__ */ X(N, {
|
|
468
484
|
alignItems: "center",
|
|
469
485
|
divider: !0,
|
|
470
486
|
sx: { justifyContent: "center" },
|
|
471
|
-
children: [/* @__PURE__ */ X(
|
|
487
|
+
children: [/* @__PURE__ */ X(P, {
|
|
472
488
|
onClick: d,
|
|
473
|
-
children: [/* @__PURE__ */ Y(
|
|
489
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(_e, { color: "primary" }) }), /* @__PURE__ */ Y(I, {
|
|
474
490
|
primary: l`My API permissions`,
|
|
475
491
|
slotProps: { primary: { sx: { color: "primary.main" } } }
|
|
476
492
|
})]
|
|
477
|
-
}), /* @__PURE__ */ Y(
|
|
493
|
+
}), /* @__PURE__ */ Y(te, { ref: u })]
|
|
478
494
|
}),
|
|
479
|
-
/* @__PURE__ */ X(
|
|
495
|
+
/* @__PURE__ */ X(N, {
|
|
480
496
|
alignItems: "center",
|
|
481
497
|
sx: { justifyContent: "center" },
|
|
482
|
-
children: [/* @__PURE__ */ X(
|
|
498
|
+
children: [/* @__PURE__ */ X(P, {
|
|
483
499
|
onClick: f,
|
|
484
|
-
children: [/* @__PURE__ */ Y(
|
|
500
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(ge, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
485
501
|
primary: l`Logout`,
|
|
486
502
|
slotProps: { primary: { sx: {
|
|
487
503
|
color: "secondary.main",
|
|
488
504
|
fontWeight: "bold"
|
|
489
505
|
} } }
|
|
490
506
|
})]
|
|
491
|
-
}), /* @__PURE__ */ Y(
|
|
507
|
+
}), /* @__PURE__ */ Y(se, {
|
|
492
508
|
body: l`Click the logout button to logout`,
|
|
493
509
|
cancelLabel: l`Cancel`,
|
|
494
510
|
confirmLabel: l`Logout`,
|
|
@@ -506,11 +522,11 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
506
522
|
}, []), a = H(() => {
|
|
507
523
|
r(null);
|
|
508
524
|
}, []);
|
|
509
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(
|
|
525
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
|
|
510
526
|
color: "inherit",
|
|
511
527
|
onClick: i,
|
|
512
528
|
title: "Account",
|
|
513
|
-
children: [/* @__PURE__ */ Y(he, { color: "inherit" }), /* @__PURE__ */ Y(
|
|
529
|
+
children: [/* @__PURE__ */ Y(he, { color: "inherit" }), /* @__PURE__ */ Y(D, {
|
|
514
530
|
sx: {
|
|
515
531
|
fontSize: "1.3rem",
|
|
516
532
|
marginLeft: t.spacing(1),
|
|
@@ -529,12 +545,12 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
529
545
|
let { t: e } = Z(), t = V(), n = K(null), r = H(() => {
|
|
530
546
|
n.current.open();
|
|
531
547
|
}, []);
|
|
532
|
-
return
|
|
548
|
+
return b.getInstance().featureFlags.update_own_organization ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
|
|
533
549
|
"aria-label": e`Change organization`,
|
|
534
550
|
color: "inherit",
|
|
535
551
|
onClick: r,
|
|
536
552
|
title: e`Change organization`,
|
|
537
|
-
children: [/* @__PURE__ */ Y(ve, { color: "inherit" }), /* @__PURE__ */ Y(
|
|
553
|
+
children: [/* @__PURE__ */ Y(ve, { color: "inherit" }), /* @__PURE__ */ Y(D, {
|
|
538
554
|
sx: {
|
|
539
555
|
fontSize: "1.3rem",
|
|
540
556
|
marginLeft: t.spacing(1),
|
|
@@ -545,7 +561,7 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
545
561
|
},
|
|
546
562
|
children: e`Change organization`
|
|
547
563
|
})]
|
|
548
|
-
}), /* @__PURE__ */ Y(
|
|
564
|
+
}), /* @__PURE__ */ Y(ee, { ref: n })] }) : null;
|
|
549
565
|
}, Me = ({ fullWidth: e }) => {
|
|
550
566
|
let n = V(), { t: r } = Z(), i = t.getInstance().config.getEnvironmentMessage(), a = W(), [o, s] = q(!1), c = H(() => {
|
|
551
567
|
s((e) => !e);
|
|
@@ -559,14 +575,14 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
559
575
|
document.removeEventListener("keydown", e);
|
|
560
576
|
};
|
|
561
577
|
}
|
|
562
|
-
}, [o]), /* @__PURE__ */ X(
|
|
578
|
+
}, [o]), /* @__PURE__ */ X(D, {
|
|
563
579
|
...Q.createAttributes("ApplicationBarActions"),
|
|
564
580
|
sx: {
|
|
565
581
|
alignItems: "center",
|
|
566
582
|
display: "flex",
|
|
567
583
|
paddingRight: 1
|
|
568
584
|
},
|
|
569
|
-
children: [/* @__PURE__ */ Y(
|
|
585
|
+
children: [/* @__PURE__ */ Y(A, {
|
|
570
586
|
"aria-controls": a,
|
|
571
587
|
"aria-label": r`Toggle menu`,
|
|
572
588
|
onClick: c,
|
|
@@ -574,8 +590,8 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
574
590
|
color: n["gen-epix-ui"].navbar.primaryColor,
|
|
575
591
|
[n.breakpoints.up("md")]: { display: "none" }
|
|
576
592
|
},
|
|
577
|
-
children: /* @__PURE__ */ Y(
|
|
578
|
-
}), /* @__PURE__ */ X(
|
|
593
|
+
children: /* @__PURE__ */ Y(oe, {})
|
|
594
|
+
}), /* @__PURE__ */ X(D, {
|
|
579
595
|
id: a,
|
|
580
596
|
sx: {
|
|
581
597
|
display: "flex",
|
|
@@ -598,7 +614,7 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
598
614
|
/* @__PURE__ */ Y(we, {}),
|
|
599
615
|
/* @__PURE__ */ Y(je, {}),
|
|
600
616
|
/* @__PURE__ */ Y(Ae, {}),
|
|
601
|
-
i && /* @__PURE__ */ Y(
|
|
617
|
+
i && /* @__PURE__ */ Y(D, {
|
|
602
618
|
...Q.createAttributes("ApplicationBarActions-EnvironmentMessage"),
|
|
603
619
|
"aria-hidden": "true",
|
|
604
620
|
sx: {
|
|
@@ -621,7 +637,7 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
621
637
|
});
|
|
622
638
|
}, Ne = ({ fullWidth: e, singleAction: n }) => {
|
|
623
639
|
let r = V();
|
|
624
|
-
return /* @__PURE__ */ Y(
|
|
640
|
+
return /* @__PURE__ */ Y(T, {
|
|
625
641
|
...Q.createAttributes("ApplicationBar"),
|
|
626
642
|
position: "static",
|
|
627
643
|
square: !0,
|
|
@@ -629,19 +645,19 @@ var ye = B(a)(({ theme: e }) => ({
|
|
|
629
645
|
background: r["gen-epix-ui"].navbar.background,
|
|
630
646
|
boxShadow: "none"
|
|
631
647
|
},
|
|
632
|
-
children: /* @__PURE__ */ Y(
|
|
648
|
+
children: /* @__PURE__ */ Y(k, {
|
|
633
649
|
disableGutters: !0,
|
|
634
650
|
maxWidth: !e && "xl",
|
|
635
|
-
children: /* @__PURE__ */ X(
|
|
651
|
+
children: /* @__PURE__ */ X(R, {
|
|
636
652
|
disableGutters: !0,
|
|
637
653
|
sx: {
|
|
638
654
|
height: 48,
|
|
639
655
|
justifyContent: n ? "center" : "space-between",
|
|
640
656
|
minHeight: "48px !important"
|
|
641
657
|
},
|
|
642
|
-
children: [n && /* @__PURE__ */ Y(
|
|
658
|
+
children: [n && /* @__PURE__ */ Y(D, {
|
|
643
659
|
sx: { marginX: 2 },
|
|
644
|
-
children: /* @__PURE__ */ Y(
|
|
660
|
+
children: /* @__PURE__ */ Y(ne, {
|
|
645
661
|
component: "h1",
|
|
646
662
|
sx: {
|
|
647
663
|
color: r["gen-epix-ui"].navbar.primaryColor,
|