@gen-epix/ui-client-common 4.6.1 → 4.8.0
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/README.md +2 -2
- package/dist/_chunks/Breadcrumbs.js +4 -4
- package/dist/_chunks/CrudPage.js +233 -232
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +1 -0
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/Notifications.js +16 -16
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +73 -72
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +1314 -887
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +5126 -178
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +10 -6
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +131 -131
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
- package/dist/_chunks/_baseFlatten.js +12 -12
- package/dist/_chunks/_baseFlatten.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +78 -78
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/decorate.js +1 -1
- package/dist/_chunks/decorateParam.js +1 -1
- package/dist/_chunks/middleware.js +66 -70
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +98 -98
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +123 -107
- 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/tableStore.js +298 -275
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -2
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +15 -16
- 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/abstracts/FilterAbstract/FilterAbstract.d.ts +11 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +48 -3
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/filters/BooleanFilter.d.ts +1 -0
- package/dist/classes/filters/DateFilter.d.ts +1 -1
- package/dist/classes/filters/GeoFilter.d.ts +1 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +1 -0
- package/dist/classes/filters/NumberRangeFilter.d.ts +1 -0
- package/dist/classes/filters/TextFilter.d.ts +1 -0
- package/dist/classes/services/AuthenticationService/index.js +8 -8
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/AuthorizationService/index.js +4 -4
- package/dist/classes/services/AuthorizationService/index.js.map +1 -1
- package/dist/classes/services/BreadcrumbService/index.js +4 -4
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
- package/dist/classes/services/InactivityService/index.js +30 -30
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/LogService/index.js +15 -15
- package/dist/classes/services/LogService/index.js.map +1 -1
- package/dist/classes/services/PageEventBusService/index.js.map +1 -1
- package/dist/components/app/App/index.js +27 -24
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +18 -18
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +18 -18
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
- package/dist/components/app/AuthenticationWrapper/index.js +15 -15
- package/dist/components/app/AuthorizationWrapper/index.js +16 -16
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +33 -33
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/epi/EpiContactDetailsDialog/index.js +4 -4
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
- package/dist/components/ui/ApplicationBar/index.js +234 -234
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +13 -13
- package/dist/components/ui/LicensesDialog/index.js +6 -6
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +11 -11
- package/dist/components/ui/OutagesDialog/index.js +4 -4
- package/dist/components/ui/OutagesDialog/index.js.map +1 -1
- package/dist/components/ui/PageContainer/index.js +5 -5
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/ResponseHandler/index.js +4 -4
- package/dist/components/ui/SortableList/SortableList.d.ts +5 -3
- package/dist/components/ui/Table/Table.d.ts +5 -2
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +13 -2
- package/dist/components/ui/Table/TableDownloadSidebarItem.d.ts +10 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +2 -1
- package/dist/components/ui/Table/index.d.ts +2 -0
- package/dist/components/ui/Table/index.js +1 -1
- package/dist/components/ui/Table/useTableColumnsMenu.d.ts +6 -0
- package/dist/components/ui/UserFeedbackDialog/index.js +15 -15
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +12 -12
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +11 -11
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +5 -5
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +15 -15
- package/dist/dataHooks/useOrganizationsQuery/index.js +7 -7
- package/dist/dataHooks/useUsersQuery/index.js +10 -10
- package/dist/hooks/useCreateMutation/index.js +14 -14
- package/dist/hooks/useCreateMutation/index.js.map +1 -1
- package/dist/hooks/useDeleteMutation/index.js +17 -17
- package/dist/hooks/useDeleteMutation/index.js.map +1 -1
- package/dist/hooks/useEditMutation/index.js +22 -22
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useInitializeTableStore/index.js +6 -6
- package/dist/hooks/useInitializeTableStore/index.js.map +1 -1
- package/dist/locale/en.json +27 -5
- package/dist/locale/nl.json +27 -5
- package/dist/models/table.models.d.ts +1 -0
- package/dist/models/table.models.js.map +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +10 -10
- package/dist/pages/AdminPage/index.js +19 -19
- package/dist/pages/ChooseIdentityProviderPage/index.js +5 -5
- package/dist/pages/ErrorPage/index.js +4 -4
- package/dist/pages/IdentifierIssuersAdminPage/index.js +7 -7
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +16 -16
- package/dist/pages/OrganizationContactsAdminPage/index.js +10 -10
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationSitesAdminPage/index.js +12 -12
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationsAdminPage/index.js +20 -20
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +11 -11
- package/dist/pages/OutagesAdminPage/index.js.map +1 -1
- package/dist/pages/RouterErrorPage/index.js +4 -4
- package/dist/pages/UsersAdminPage/index.js +34 -34
- package/dist/pages/UsersAdminPage/index.js.map +1 -1
- package/dist/setup/setup.js +4 -4
- package/dist/setup/setup.js.map +1 -1
- package/dist/stores/oidcStore/oidcStore.d.ts +1 -1
- package/dist/stores/tableStore/tableStore.d.ts +3 -1
- package/dist/utils/StandardConfigUtil/index.js +2 -2
- package/dist/utils/StandardConfigUtil/index.js.map +1 -1
- package/dist/utils/TableUtil/TableUtil.d.ts +5 -0
- package/package.json +35 -37
- package/dist/_chunks/useColumnsMenu.js +0 -157
- package/dist/_chunks/useColumnsMenu.js.map +0 -1
- package/dist/hooks/useColumnsMenu/index.d.ts +0 -1
- package/dist/hooks/useColumnsMenu/index.js +0 -1
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +0 -6
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../../../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 { FeatureFlagsService as
|
|
24
|
-
import { container as
|
|
25
|
-
import { StringUtil as
|
|
26
|
-
import { CommonDbCommandName as
|
|
27
|
-
import { AppBar as
|
|
1
|
+
import { useConfig as e } from "../../../hooks/useConfig/index.js";
|
|
2
|
+
import { AuthorizationService as t } from "../../../classes/services/AuthorizationService/index.js";
|
|
3
|
+
import { RouterService as n } from "../../../classes/services/RouterService/index.js";
|
|
4
|
+
import { UserSettingsService as r } from "../../../classes/services/UserSettingsService/index.js";
|
|
5
|
+
import { UserFeedbackDialog as i } from "../UserFeedbackDialog/index.js";
|
|
6
|
+
import { LicensesDialog as a } from "../LicensesDialog/index.js";
|
|
7
|
+
import { BackendVersionService as o } from "../../../classes/services/BackendVersionService/index.js";
|
|
8
|
+
import { n as s } from "../../../_chunks/Notifications.js";
|
|
9
|
+
import { NotificationService as c } from "../../../classes/services/NotificationService/index.js";
|
|
10
|
+
import { t as l } from "../../../_chunks/react.js";
|
|
11
|
+
import { OutagesDialog as u } from "../OutagesDialog/index.js";
|
|
12
|
+
import { outagesStore as d } from "../../../stores/outagesStore/index.js";
|
|
13
|
+
import { LogService as f } from "../../../classes/services/LogService/index.js";
|
|
14
|
+
import { MyPermissionsDialog as p } from "../MyPermissionsDialog/index.js";
|
|
15
|
+
import { UserUtil as m } from "../../../utils/UserUtil/index.js";
|
|
16
|
+
import { API_ABAC_TOKEN as h } from "../../../constants/api.constants.js";
|
|
17
|
+
import { withPermissions as g } from "../../../hoc/withPermissions/index.js";
|
|
18
|
+
import { t as _ } from "../../../_chunks/useQueryMemo.js";
|
|
19
|
+
import { t as v } from "../../../_chunks/QueryClientService.js";
|
|
20
|
+
import { COMMON_QUERY_KEY as y } from "../../../constants/query.constants.js";
|
|
21
|
+
import { useOrganizationMapQuery as b } from "../../../dataHooks/useOrganizationsQuery/index.js";
|
|
22
|
+
import { OrganizationSwitcherDialog as x } from "../OrganizationSwitcherDialog/index.js";
|
|
23
|
+
import { FeatureFlagsService as S } from "../../../classes/services/FeatureFlagsService/index.js";
|
|
24
|
+
import { container as C } from "tsyringe";
|
|
25
|
+
import { StringUtil as w } from "@gen-epix/ui-core/utils/StringUtil";
|
|
26
|
+
import { CommonDbCommandName as T, CommonDbLogLevel as E, CommonDbPermissionType as D } from "@gen-epix/api-commondb";
|
|
27
|
+
import { AppBar as O, Badge as k, Box as A, CircularProgress as ee, 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 re, Typography as z, 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
|
|
37
|
-
import { Confirmation as
|
|
38
|
-
import { useAuth as
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
33
|
+
import { NavLink as ae } from "react-router-dom";
|
|
34
|
+
import { useSubscribable as oe } from "@gen-epix/ui-core/hooks/useSubscribable";
|
|
35
|
+
import se from "@mui/icons-material/Menu";
|
|
36
|
+
import ce from "@mui/icons-material/MoreVert";
|
|
37
|
+
import { Confirmation as le } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
38
|
+
import { useAuth as ue } from "react-oidc-context";
|
|
39
|
+
import de from "@mui/icons-material/Notifications";
|
|
40
|
+
import fe from "@mui/icons-material/Chat";
|
|
41
|
+
import pe from "@mui/icons-material/Code";
|
|
42
|
+
import me from "@mui/icons-material/Copyright";
|
|
43
|
+
import he from "@mui/icons-material/Done";
|
|
44
|
+
import ge from "@mui/icons-material/Construction";
|
|
45
|
+
import _e from "@mui/icons-material/AccountCircle";
|
|
46
|
+
import ve from "@mui/icons-material/Logout";
|
|
47
|
+
import ye from "@mui/icons-material/Key";
|
|
48
|
+
import be from "@mui/icons-material/ChangeCircle";
|
|
49
49
|
// src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx
|
|
50
|
-
var
|
|
50
|
+
var xe = B(ae)(({ 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
|
-
})),
|
|
57
|
-
let { t } = Z(),
|
|
58
|
-
activeBackground:
|
|
59
|
-
activeColor:
|
|
60
|
-
background:
|
|
61
|
-
primaryColor:
|
|
62
|
-
...
|
|
63
|
-
}), [
|
|
64
|
-
let e =
|
|
56
|
+
})), Se = ({ fullWidth: e }) => {
|
|
57
|
+
let { t: r } = Z(), i = V(), a = G(() => ({
|
|
58
|
+
activeBackground: i.palette.primary.contrastText,
|
|
59
|
+
activeColor: i.palette.primary.main,
|
|
60
|
+
background: i.palette.primary.main,
|
|
61
|
+
primaryColor: i.palette.primary.contrastText,
|
|
62
|
+
...i.components?.GenEpixUiClientCommonApplicationBarNavigationMenu ?? {}
|
|
63
|
+
}), [i]), o = G(() => C.resolve(t), []), s = W(), c = G(() => {
|
|
64
|
+
let e = C.resolve(n).routes.find((e) => e.handle.root);
|
|
65
65
|
return [e, ...e.children.filter((e) => !e.handle.hidden)];
|
|
66
66
|
}, []), [l, u] = q(!1);
|
|
67
67
|
U(() => {
|
|
@@ -79,24 +79,24 @@ var be = B($)(({ theme: e }) => ({
|
|
|
79
79
|
}, []), f = H((e) => {
|
|
80
80
|
e.currentTarget.ariaDisabled === "true" && e.preventDefault();
|
|
81
81
|
}, []);
|
|
82
|
-
return /* @__PURE__ */ X(
|
|
82
|
+
return /* @__PURE__ */ X(A, {
|
|
83
83
|
sx: { flexGrow: 1 },
|
|
84
84
|
children: [/* @__PURE__ */ Y(j, {
|
|
85
85
|
"aria-controls": s,
|
|
86
|
-
"aria-label":
|
|
86
|
+
"aria-label": r`Toggle navigation menu`,
|
|
87
87
|
onClick: d,
|
|
88
88
|
sx: {
|
|
89
|
-
color:
|
|
90
|
-
[
|
|
89
|
+
color: a.primaryColor,
|
|
90
|
+
[i.breakpoints.up("md")]: { display: "none" }
|
|
91
91
|
},
|
|
92
|
-
children: /* @__PURE__ */ Y(
|
|
93
|
-
}), /* @__PURE__ */ Y(
|
|
92
|
+
children: /* @__PURE__ */ Y(se, {})
|
|
93
|
+
}), /* @__PURE__ */ Y(A, {
|
|
94
94
|
component: "nav",
|
|
95
95
|
id: s,
|
|
96
96
|
sx: {
|
|
97
97
|
flexGrow: 1,
|
|
98
|
-
[
|
|
99
|
-
background:
|
|
98
|
+
[i.breakpoints.down("md")]: {
|
|
99
|
+
background: a.background,
|
|
100
100
|
display: l ? "block" : "none",
|
|
101
101
|
left: 0,
|
|
102
102
|
paddingBottom: 4,
|
|
@@ -105,49 +105,49 @@ var be = B($)(({ theme: e }) => ({
|
|
|
105
105
|
width: "100%"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
children: /* @__PURE__ */ Y(
|
|
108
|
+
children: /* @__PURE__ */ Y(A, {
|
|
109
109
|
component: "ul",
|
|
110
110
|
sx: {
|
|
111
111
|
display: "flex",
|
|
112
112
|
margin: 0,
|
|
113
113
|
marginLeft: e ? 0 : 2,
|
|
114
114
|
padding: 0,
|
|
115
|
-
[
|
|
115
|
+
[i.breakpoints.down("md")]: {
|
|
116
116
|
display: "block",
|
|
117
117
|
margin: 0
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
children: c.filter((e) => o.doesUserHavePermissionForRoute(e)).map((e) => {
|
|
121
121
|
let t = !!e.handle.disabled;
|
|
122
|
-
return /* @__PURE__ */ Y(
|
|
122
|
+
return /* @__PURE__ */ Y(A, {
|
|
123
123
|
component: "li",
|
|
124
124
|
sx: {
|
|
125
125
|
"&:has(.active:not([aria-disabled=\"true\"]))": {
|
|
126
|
-
"& svg": { color:
|
|
127
|
-
a: { color:
|
|
128
|
-
background:
|
|
126
|
+
"& svg": { color: a.activeColor },
|
|
127
|
+
a: { color: a.activeColor },
|
|
128
|
+
background: a.activeBackground
|
|
129
129
|
},
|
|
130
130
|
"& svg": {
|
|
131
|
-
color: t ?
|
|
131
|
+
color: t ? i.palette.grey[400] : void 0,
|
|
132
132
|
marginTop: "6px"
|
|
133
133
|
},
|
|
134
134
|
alignItems: "center",
|
|
135
|
-
color: t ?
|
|
135
|
+
color: t ? i.palette.grey[400] : a.primaryColor,
|
|
136
136
|
display: "flex",
|
|
137
137
|
fontWeight: 800,
|
|
138
138
|
height: 48,
|
|
139
139
|
listStyle: "none",
|
|
140
|
-
padding: `0 ${
|
|
140
|
+
padding: `0 ${i.spacing(1)}`
|
|
141
141
|
},
|
|
142
|
-
children: /* @__PURE__ */ X(
|
|
142
|
+
children: /* @__PURE__ */ X(xe, {
|
|
143
143
|
"aria-disabled": t || void 0,
|
|
144
144
|
"aria-label": e.handle.title,
|
|
145
145
|
onClick: f,
|
|
146
146
|
sx: {
|
|
147
147
|
"&:hover": { textDecoration: t ? "none" : void 0 },
|
|
148
|
-
color: t ?
|
|
148
|
+
color: t ? i.palette.grey[400] : void 0,
|
|
149
149
|
cursor: t ? "not-allowed" : void 0,
|
|
150
|
-
padding: `0 ${
|
|
150
|
+
padding: `0 ${i.spacing(1)}`
|
|
151
151
|
},
|
|
152
152
|
tabIndex: t ? -1 : void 0,
|
|
153
153
|
to: e.path,
|
|
@@ -158,71 +158,71 @@ var be = B($)(({ theme: e }) => ({
|
|
|
158
158
|
})
|
|
159
159
|
})]
|
|
160
160
|
});
|
|
161
|
-
},
|
|
162
|
-
let { t
|
|
161
|
+
}, Ce = (/* @__PURE__ */ new Date()).getTime(), we = () => {
|
|
162
|
+
let { t } = Z(), n = V(), a = e(), o = K(null), [s, c] = q(!1);
|
|
163
163
|
U(() => {
|
|
164
|
-
if (!
|
|
165
|
-
let e = Math.max(0,
|
|
166
|
-
|
|
164
|
+
if (!C.resolve(r).showShowUserFeedbackTooltip) return;
|
|
165
|
+
let e = Math.max(0, a.userFeedback.SHOW_USER_FEEDBACK_TOOLTIP_AFTER_MS - ((/* @__PURE__ */ new Date()).getTime() - Ce)), t = setTimeout(() => {
|
|
166
|
+
c(!0);
|
|
167
167
|
}, e);
|
|
168
168
|
return () => {
|
|
169
169
|
clearTimeout(t);
|
|
170
170
|
};
|
|
171
|
-
}, [
|
|
172
|
-
let
|
|
173
|
-
|
|
174
|
-
}, []),
|
|
175
|
-
|
|
171
|
+
}, [a.userFeedback.SHOW_USER_FEEDBACK_TOOLTIP_AFTER_MS]);
|
|
172
|
+
let l = H(() => {
|
|
173
|
+
o.current.open();
|
|
174
|
+
}, []), u = H(() => {
|
|
175
|
+
c(!1), C.resolve(r).showShowUserFeedbackTooltip = !1;
|
|
176
176
|
}, []);
|
|
177
|
-
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(
|
|
177
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(re, {
|
|
178
178
|
arrow: !0,
|
|
179
179
|
color: "secondary",
|
|
180
|
-
onMouseEnter:
|
|
181
|
-
open:
|
|
180
|
+
onMouseEnter: u,
|
|
181
|
+
open: s,
|
|
182
182
|
placement: "left",
|
|
183
183
|
slotProps: {
|
|
184
|
-
arrow: { sx: { color:
|
|
184
|
+
arrow: { sx: { color: n.palette.secondary.main } },
|
|
185
185
|
popper: { disablePortal: !0 },
|
|
186
186
|
tooltip: { sx: {
|
|
187
|
-
backgroundColor:
|
|
188
|
-
marginRight: `${
|
|
187
|
+
backgroundColor: n.palette.secondary.main,
|
|
188
|
+
marginRight: `${n.spacing(.5)} !important`
|
|
189
189
|
} }
|
|
190
190
|
},
|
|
191
|
-
title:
|
|
191
|
+
title: t`Would you like to share your feedback?`,
|
|
192
192
|
children: /* @__PURE__ */ X(j, {
|
|
193
|
-
"aria-label":
|
|
193
|
+
"aria-label": t`Feedback`,
|
|
194
194
|
color: "inherit",
|
|
195
|
-
onClick:
|
|
196
|
-
children: [/* @__PURE__ */ Y(
|
|
195
|
+
onClick: l,
|
|
196
|
+
children: [/* @__PURE__ */ Y(fe, { color: "inherit" }), /* @__PURE__ */ Y(A, {
|
|
197
197
|
sx: {
|
|
198
198
|
fontSize: "1.3rem",
|
|
199
|
-
marginLeft:
|
|
200
|
-
[
|
|
199
|
+
marginLeft: n.spacing(1),
|
|
200
|
+
[n.breakpoints.up("md")]: {
|
|
201
201
|
position: "absolute",
|
|
202
202
|
visibility: "hidden"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
|
-
children:
|
|
205
|
+
children: t`Feedback`
|
|
206
206
|
})]
|
|
207
207
|
})
|
|
208
|
-
}), /* @__PURE__ */ Y(
|
|
209
|
-
},
|
|
210
|
-
let
|
|
211
|
-
|
|
212
|
-
}, []),
|
|
213
|
-
let e = `Frontend version: ${
|
|
214
|
-
await navigator.clipboard.writeText(e),
|
|
215
|
-
}, [
|
|
208
|
+
}), /* @__PURE__ */ Y(i, { ref: o })] });
|
|
209
|
+
}, Te = ({ anchorElement: t, onClose: n }) => {
|
|
210
|
+
let r = G(() => w.createUuid(), []), i = K(null), s = !!t, { t: c } = Z(), l = e(), [u, d] = q(!1), f = H(() => {
|
|
211
|
+
i.current.open();
|
|
212
|
+
}, []), p = H(async () => {
|
|
213
|
+
let e = `Frontend version: ${l.getSoftwareVersion()}\nBackend version: ${C.resolve(o).version}\nURL: ${window.location.href}\nDate/time: ${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
214
|
+
await navigator.clipboard.writeText(e), d(!0), setTimeout(() => d(!1), 2e3);
|
|
215
|
+
}, [l]);
|
|
216
216
|
return /* @__PURE__ */ Y(L, {
|
|
217
217
|
...Q.createAttributes("InfoMenu"),
|
|
218
|
-
anchorEl:
|
|
218
|
+
anchorEl: t,
|
|
219
219
|
anchorOrigin: {
|
|
220
220
|
horizontal: "right",
|
|
221
221
|
vertical: "bottom"
|
|
222
222
|
},
|
|
223
|
-
id:
|
|
224
|
-
onClose:
|
|
225
|
-
open:
|
|
223
|
+
id: s ? r : void 0,
|
|
224
|
+
onClose: n,
|
|
225
|
+
open: s,
|
|
226
226
|
transformOrigin: {
|
|
227
227
|
horizontal: "right",
|
|
228
228
|
vertical: "top"
|
|
@@ -237,8 +237,8 @@ var be = B($)(({ theme: e }) => ({
|
|
|
237
237
|
/* @__PURE__ */ Y(N, {
|
|
238
238
|
divider: !0,
|
|
239
239
|
children: /* @__PURE__ */ Y(I, {
|
|
240
|
-
primary:
|
|
241
|
-
secondary:
|
|
240
|
+
primary: c("Frontend version"),
|
|
241
|
+
secondary: l.getSoftwareVersion(),
|
|
242
242
|
slotProps: { primary: { sx: {
|
|
243
243
|
color: "primary.main",
|
|
244
244
|
fontWeight: "bold"
|
|
@@ -248,8 +248,8 @@ var be = B($)(({ theme: e }) => ({
|
|
|
248
248
|
/* @__PURE__ */ Y(N, {
|
|
249
249
|
divider: !0,
|
|
250
250
|
children: /* @__PURE__ */ Y(I, {
|
|
251
|
-
primary:
|
|
252
|
-
secondary:
|
|
251
|
+
primary: c("Backend version"),
|
|
252
|
+
secondary: C.resolve(o).version,
|
|
253
253
|
slotProps: { primary: { sx: {
|
|
254
254
|
color: "primary.main",
|
|
255
255
|
fontWeight: "bold"
|
|
@@ -259,9 +259,9 @@ var be = B($)(({ theme: e }) => ({
|
|
|
259
259
|
/* @__PURE__ */ Y(N, {
|
|
260
260
|
divider: !0,
|
|
261
261
|
children: /* @__PURE__ */ X(P, {
|
|
262
|
-
onClick:
|
|
263
|
-
children: [/* @__PURE__ */ Y(F, { children:
|
|
264
|
-
primary:
|
|
262
|
+
onClick: p,
|
|
263
|
+
children: [/* @__PURE__ */ Y(F, { children: u ? /* @__PURE__ */ Y(he, { color: "success" }) : /* @__PURE__ */ Y(ie, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
264
|
+
primary: c`Copy version information to clipboard`,
|
|
265
265
|
slotProps: { primary: { sx: {
|
|
266
266
|
color: "secondary.main",
|
|
267
267
|
fontWeight: "bold"
|
|
@@ -270,19 +270,19 @@ var be = B($)(({ theme: e }) => ({
|
|
|
270
270
|
})
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ X(N, { children: [/* @__PURE__ */ X(P, {
|
|
273
|
-
onClick:
|
|
274
|
-
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(
|
|
275
|
-
primary:
|
|
273
|
+
onClick: f,
|
|
274
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(me, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
275
|
+
primary: c`Show license information`,
|
|
276
276
|
slotProps: { primary: { sx: {
|
|
277
277
|
color: "secondary.main",
|
|
278
278
|
fontWeight: "bold"
|
|
279
279
|
} } }
|
|
280
280
|
})]
|
|
281
|
-
}), /* @__PURE__ */ Y(
|
|
281
|
+
}), /* @__PURE__ */ Y(a, { ref: i })] })
|
|
282
282
|
]
|
|
283
283
|
})
|
|
284
284
|
});
|
|
285
|
-
},
|
|
285
|
+
}, Ee = () => {
|
|
286
286
|
let [e, t] = q(null), { t: n } = Z(), r = V(), i = H((e) => {
|
|
287
287
|
t(e.currentTarget);
|
|
288
288
|
}, []), a = H(() => {
|
|
@@ -292,7 +292,7 @@ var be = B($)(({ theme: e }) => ({
|
|
|
292
292
|
color: "inherit",
|
|
293
293
|
onClick: i,
|
|
294
294
|
title: "Code information",
|
|
295
|
-
children: [/* @__PURE__ */ Y(
|
|
295
|
+
children: [/* @__PURE__ */ Y(pe, { color: "inherit" }), /* @__PURE__ */ Y(A, {
|
|
296
296
|
sx: {
|
|
297
297
|
fontSize: "1.3rem",
|
|
298
298
|
marginLeft: r.spacing(1),
|
|
@@ -303,14 +303,14 @@ var be = B($)(({ theme: e }) => ({
|
|
|
303
303
|
},
|
|
304
304
|
children: n`Code information`
|
|
305
305
|
})]
|
|
306
|
-
}), e && /* @__PURE__ */ Y(
|
|
306
|
+
}), e && /* @__PURE__ */ Y(Te, {
|
|
307
307
|
anchorElement: e,
|
|
308
308
|
onClose: a
|
|
309
309
|
})] });
|
|
310
|
-
},
|
|
311
|
-
let { t: e } = Z(), t = V(), n =
|
|
312
|
-
|
|
313
|
-
}, []),
|
|
310
|
+
}, De = () => {
|
|
311
|
+
let { t: e } = Z(), t = V(), n = oe(C.resolve(c)), r = G(() => n.some((e) => e.isLoading), [n]), [i, a] = q(!1), o = H(() => {
|
|
312
|
+
C.resolve(c).hideAllNotifications(), a(!0);
|
|
313
|
+
}, []), l = H(() => {
|
|
314
314
|
a(!1);
|
|
315
315
|
}, []);
|
|
316
316
|
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
@@ -319,7 +319,7 @@ var be = B($)(({ theme: e }) => ({
|
|
|
319
319
|
onClick: o,
|
|
320
320
|
title: e`Notifications`,
|
|
321
321
|
children: [
|
|
322
|
-
/* @__PURE__ */ Y(
|
|
322
|
+
/* @__PURE__ */ Y(k, {
|
|
323
323
|
badgeContent: n.length,
|
|
324
324
|
color: "secondary",
|
|
325
325
|
sx: { "& .MuiBadge-badge": {
|
|
@@ -328,14 +328,14 @@ var be = B($)(({ theme: e }) => ({
|
|
|
328
328
|
height: 15,
|
|
329
329
|
minWidth: 15
|
|
330
330
|
} },
|
|
331
|
-
children: /* @__PURE__ */ Y(
|
|
331
|
+
children: /* @__PURE__ */ Y(de, { color: "inherit" })
|
|
332
332
|
}),
|
|
333
|
-
r && /* @__PURE__ */ Y(
|
|
333
|
+
r && /* @__PURE__ */ Y(ee, {
|
|
334
334
|
color: "inherit",
|
|
335
335
|
size: t.spacing(3.5),
|
|
336
336
|
sx: { position: "absolute" }
|
|
337
337
|
}),
|
|
338
|
-
/* @__PURE__ */ Y(
|
|
338
|
+
/* @__PURE__ */ Y(A, {
|
|
339
339
|
sx: {
|
|
340
340
|
fontSize: "1.3rem",
|
|
341
341
|
marginLeft: t.spacing(1),
|
|
@@ -347,25 +347,25 @@ var be = B($)(({ theme: e }) => ({
|
|
|
347
347
|
children: e`Notifications`
|
|
348
348
|
})
|
|
349
349
|
]
|
|
350
|
-
}), /* @__PURE__ */ Y(
|
|
351
|
-
onDrawerClose:
|
|
350
|
+
}), /* @__PURE__ */ Y(s, {
|
|
351
|
+
onDrawerClose: l,
|
|
352
352
|
open: i
|
|
353
353
|
})] });
|
|
354
|
-
},
|
|
355
|
-
let { t: e } = Z(),
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
]),
|
|
360
|
-
|
|
354
|
+
}, Oe = () => {
|
|
355
|
+
let { t: e } = Z(), t = V(), n = K(null), r = l(d, (e) => e.visibleOutages), i = l(d, (e) => e.activeOutages), a = l(d, (e) => e.soonActiveOutages), o = G(() => i.length > 0 || r.length > 0 || a.length > 0 ? "!" : null, [
|
|
356
|
+
i.length,
|
|
357
|
+
a.length,
|
|
358
|
+
r.length
|
|
359
|
+
]), s = H(() => {
|
|
360
|
+
n.current.open();
|
|
361
361
|
}, []);
|
|
362
362
|
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
363
363
|
"aria-label": e`Outages`,
|
|
364
364
|
color: "inherit",
|
|
365
|
-
onClick:
|
|
365
|
+
onClick: s,
|
|
366
366
|
title: e`Outages`,
|
|
367
|
-
children: [/* @__PURE__ */ Y(
|
|
368
|
-
badgeContent:
|
|
367
|
+
children: [/* @__PURE__ */ Y(k, {
|
|
368
|
+
badgeContent: o,
|
|
369
369
|
color: "secondary",
|
|
370
370
|
sx: { "& .MuiBadge-badge": {
|
|
371
371
|
border: "1px solid white",
|
|
@@ -373,24 +373,24 @@ var be = B($)(({ theme: e }) => ({
|
|
|
373
373
|
height: 15,
|
|
374
374
|
minWidth: 15
|
|
375
375
|
} },
|
|
376
|
-
children: /* @__PURE__ */ Y(
|
|
377
|
-
}), /* @__PURE__ */ Y(
|
|
376
|
+
children: /* @__PURE__ */ Y(ge, { color: "inherit" })
|
|
377
|
+
}), /* @__PURE__ */ Y(A, {
|
|
378
378
|
sx: {
|
|
379
379
|
fontSize: "1.3rem",
|
|
380
|
-
marginLeft:
|
|
381
|
-
[
|
|
380
|
+
marginLeft: t.spacing(1),
|
|
381
|
+
[t.breakpoints.up("md")]: {
|
|
382
382
|
position: "absolute",
|
|
383
383
|
visibility: "hidden"
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
386
|
children: e`Outages`
|
|
387
387
|
})]
|
|
388
|
-
}), /* @__PURE__ */ Y(
|
|
389
|
-
},
|
|
390
|
-
let { t: e } = Z(), t =
|
|
388
|
+
}), /* @__PURE__ */ Y(u, { ref: n })] });
|
|
389
|
+
}, $ = g(() => {
|
|
390
|
+
let { t: e } = Z(), t = _({
|
|
391
391
|
gcTime: 0,
|
|
392
|
-
queryFn: async ({ signal: e }) => (await
|
|
393
|
-
queryKey:
|
|
392
|
+
queryFn: async ({ signal: e }) => (await C.resolve(h).retrieveOrganizationAdminNameEmails({ signal: e })).data,
|
|
393
|
+
queryKey: C.resolve(v).getGenericKey(y.ORGANIZATION_ADMIN_NAME_EMAILS),
|
|
394
394
|
staleTime: 0
|
|
395
395
|
});
|
|
396
396
|
return /* @__PURE__ */ Y(N, {
|
|
@@ -414,43 +414,43 @@ var be = B($)(({ theme: e }) => ({
|
|
|
414
414
|
})
|
|
415
415
|
});
|
|
416
416
|
}, { requiredPermissions: [{
|
|
417
|
-
command_name:
|
|
418
|
-
permission_type:
|
|
419
|
-
}] }), ke =
|
|
420
|
-
let { t: e } = Z(),
|
|
417
|
+
command_name: T.RetrieveOrganizationAdminNameEmailsCommand,
|
|
418
|
+
permission_type: D.EXECUTE
|
|
419
|
+
}] }), ke = g(() => {
|
|
420
|
+
let { t: e } = Z(), n = b(), r = G(() => n.isLoading ? e`Loading...` : n.error ? e`Error` : n.map.get(C.resolve(t).user?.organization_id ?? "")?.name ?? e`Unknown`, [n, e]);
|
|
421
421
|
return /* @__PURE__ */ Y(N, {
|
|
422
422
|
sx: { paddingBottom: 0 },
|
|
423
423
|
children: /* @__PURE__ */ Y(I, {
|
|
424
424
|
primary: e`My organization`,
|
|
425
|
-
secondary:
|
|
425
|
+
secondary: r ?? e`Unknown`,
|
|
426
426
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
427
427
|
})
|
|
428
428
|
});
|
|
429
429
|
}, { requiredPermissions: [{
|
|
430
|
-
command_name:
|
|
431
|
-
permission_type:
|
|
432
|
-
}] }), Ae = ({ anchorElement:
|
|
433
|
-
let r =
|
|
434
|
-
|
|
435
|
-
}, []),
|
|
436
|
-
|
|
437
|
-
}, []),
|
|
438
|
-
|
|
430
|
+
command_name: T.RetrieveOrganizationAdminNameEmailsCommand,
|
|
431
|
+
permission_type: D.EXECUTE
|
|
432
|
+
}] }), Ae = ({ anchorElement: e, onClose: n }) => {
|
|
433
|
+
let r = ue(), i = K(null), a = G(() => w.createUuid(), []), o = !!e, { t: s } = Z(), c = K(null), l = H(() => {
|
|
434
|
+
c.current.open();
|
|
435
|
+
}, []), u = H(() => {
|
|
436
|
+
i.current.open();
|
|
437
|
+
}, []), d = H(() => {
|
|
438
|
+
C.resolve(f).log([{
|
|
439
439
|
detail: r.user,
|
|
440
|
-
level:
|
|
440
|
+
level: E.TRACE,
|
|
441
441
|
topic: "USER_LOGOUT"
|
|
442
|
-
}]),
|
|
443
|
-
}, [r]),
|
|
442
|
+
}]), C.resolve(f).flushLog(), r.signoutRedirect();
|
|
443
|
+
}, [r]), h = G(() => m.getUserDisplayValue(C.resolve(t).user, s), [s]), g = G(() => C.resolve(t).user?.roles, []);
|
|
444
444
|
return /* @__PURE__ */ Y(L, {
|
|
445
445
|
...Q.createAttributes("UserMenu"),
|
|
446
|
-
anchorEl:
|
|
446
|
+
anchorEl: e,
|
|
447
447
|
anchorOrigin: {
|
|
448
448
|
horizontal: "right",
|
|
449
449
|
vertical: "bottom"
|
|
450
450
|
},
|
|
451
|
-
id:
|
|
451
|
+
id: o ? a : void 0,
|
|
452
452
|
onClose: n,
|
|
453
|
-
open:
|
|
453
|
+
open: o,
|
|
454
454
|
transformOrigin: {
|
|
455
455
|
horizontal: "right",
|
|
456
456
|
vertical: "top"
|
|
@@ -465,18 +465,18 @@ var be = B($)(({ theme: e }) => ({
|
|
|
465
465
|
/* @__PURE__ */ Y(N, {
|
|
466
466
|
divider: !0,
|
|
467
467
|
children: /* @__PURE__ */ Y(I, {
|
|
468
|
-
primary:
|
|
468
|
+
primary: h ?? s`Unknown`,
|
|
469
469
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
470
470
|
})
|
|
471
471
|
}),
|
|
472
472
|
/* @__PURE__ */ Y(ke, {}),
|
|
473
|
-
/* @__PURE__ */ Y(
|
|
473
|
+
/* @__PURE__ */ Y($, {}),
|
|
474
474
|
/* @__PURE__ */ Y(N, {
|
|
475
475
|
divider: !0,
|
|
476
476
|
sx: { paddingTop: 0 },
|
|
477
477
|
children: /* @__PURE__ */ Y(I, {
|
|
478
|
-
primary:
|
|
479
|
-
secondary: /* @__PURE__ */ Y(J, { children:
|
|
478
|
+
primary: s`My roles`,
|
|
479
|
+
secondary: /* @__PURE__ */ Y(J, { children: g?.map((e) => /* @__PURE__ */ Y(A, {
|
|
480
480
|
component: "span",
|
|
481
481
|
sx: {
|
|
482
482
|
display: "inline-block",
|
|
@@ -492,32 +492,32 @@ var be = B($)(({ theme: e }) => ({
|
|
|
492
492
|
divider: !0,
|
|
493
493
|
sx: { justifyContent: "center" },
|
|
494
494
|
children: [/* @__PURE__ */ X(P, {
|
|
495
|
-
onClick:
|
|
496
|
-
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(
|
|
497
|
-
primary:
|
|
495
|
+
onClick: l,
|
|
496
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(ye, { color: "primary" }) }), /* @__PURE__ */ Y(I, {
|
|
497
|
+
primary: s`My API permissions`,
|
|
498
498
|
slotProps: { primary: { sx: { color: "primary.main" } } }
|
|
499
499
|
})]
|
|
500
|
-
}), /* @__PURE__ */ Y(
|
|
500
|
+
}), /* @__PURE__ */ Y(p, { ref: c })]
|
|
501
501
|
}),
|
|
502
502
|
/* @__PURE__ */ X(N, {
|
|
503
503
|
alignItems: "center",
|
|
504
504
|
sx: { justifyContent: "center" },
|
|
505
505
|
children: [/* @__PURE__ */ X(P, {
|
|
506
|
-
onClick:
|
|
507
|
-
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(
|
|
508
|
-
primary:
|
|
506
|
+
onClick: u,
|
|
507
|
+
children: [/* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(ve, { color: "secondary" }) }), /* @__PURE__ */ Y(I, {
|
|
508
|
+
primary: s`Logout`,
|
|
509
509
|
slotProps: { primary: { sx: {
|
|
510
510
|
color: "secondary.main",
|
|
511
511
|
fontWeight: "bold"
|
|
512
512
|
} } }
|
|
513
513
|
})]
|
|
514
|
-
}), /* @__PURE__ */ Y(
|
|
515
|
-
body:
|
|
516
|
-
cancelLabel:
|
|
517
|
-
confirmLabel:
|
|
518
|
-
onConfirm:
|
|
519
|
-
ref:
|
|
520
|
-
title:
|
|
514
|
+
}), /* @__PURE__ */ Y(le, {
|
|
515
|
+
body: s`Click the logout button to logout`,
|
|
516
|
+
cancelLabel: s`Cancel`,
|
|
517
|
+
confirmLabel: s`Logout`,
|
|
518
|
+
onConfirm: d,
|
|
519
|
+
ref: i,
|
|
520
|
+
title: s`Are you sure you want to logout?`
|
|
521
521
|
})]
|
|
522
522
|
})
|
|
523
523
|
]
|
|
@@ -533,7 +533,7 @@ var be = B($)(({ theme: e }) => ({
|
|
|
533
533
|
color: "inherit",
|
|
534
534
|
onClick: i,
|
|
535
535
|
title: "Account",
|
|
536
|
-
children: [/* @__PURE__ */ Y(
|
|
536
|
+
children: [/* @__PURE__ */ Y(_e, { color: "inherit" }), /* @__PURE__ */ Y(A, {
|
|
537
537
|
sx: {
|
|
538
538
|
fontSize: "1.3rem",
|
|
539
539
|
marginLeft: t.spacing(1),
|
|
@@ -552,12 +552,12 @@ var be = B($)(({ theme: e }) => ({
|
|
|
552
552
|
let { t: e } = Z(), t = V(), n = K(null), r = H(() => {
|
|
553
553
|
n.current.open();
|
|
554
554
|
}, []);
|
|
555
|
-
return
|
|
555
|
+
return C.resolve(S).featureFlags.update_own_organization ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(j, {
|
|
556
556
|
"aria-label": e`Change organization`,
|
|
557
557
|
color: "inherit",
|
|
558
558
|
onClick: r,
|
|
559
559
|
title: e`Change organization`,
|
|
560
|
-
children: [/* @__PURE__ */ Y(
|
|
560
|
+
children: [/* @__PURE__ */ Y(be, { color: "inherit" }), /* @__PURE__ */ Y(A, {
|
|
561
561
|
sx: {
|
|
562
562
|
fontSize: "1.3rem",
|
|
563
563
|
marginLeft: t.spacing(1),
|
|
@@ -568,14 +568,14 @@ var be = B($)(({ theme: e }) => ({
|
|
|
568
568
|
},
|
|
569
569
|
children: e`Change organization`
|
|
570
570
|
})]
|
|
571
|
-
}), /* @__PURE__ */ Y(
|
|
572
|
-
}, Ne = ({ fullWidth:
|
|
573
|
-
let
|
|
574
|
-
background:
|
|
571
|
+
}), /* @__PURE__ */ Y(x, { ref: n })] }) : null;
|
|
572
|
+
}, Ne = ({ fullWidth: t }) => {
|
|
573
|
+
let n = V(), r = G(() => ({
|
|
574
|
+
background: n.palette.primary.main,
|
|
575
575
|
environmentMessageColor: "#ffea00",
|
|
576
|
-
primaryColor:
|
|
577
|
-
...
|
|
578
|
-
}), [
|
|
576
|
+
primaryColor: n.palette.primary.contrastText,
|
|
577
|
+
...n.components?.GenEpixUiClientCommonApplicationBarActions ?? {}
|
|
578
|
+
}), [n]), { t: i } = Z(), a = e().getEnvironmentMessage(), o = W(), [s, c] = q(!1), l = H(() => {
|
|
579
579
|
c((e) => !e);
|
|
580
580
|
}, []);
|
|
581
581
|
return U(() => {
|
|
@@ -587,7 +587,7 @@ var be = B($)(({ theme: e }) => ({
|
|
|
587
587
|
document.removeEventListener("keydown", e);
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
}, [s]), /* @__PURE__ */ X(
|
|
590
|
+
}, [s]), /* @__PURE__ */ X(A, {
|
|
591
591
|
...Q.createAttributes("ApplicationBarActions"),
|
|
592
592
|
sx: {
|
|
593
593
|
alignItems: "center",
|
|
@@ -595,94 +595,94 @@ var be = B($)(({ theme: e }) => ({
|
|
|
595
595
|
paddingRight: 1
|
|
596
596
|
},
|
|
597
597
|
children: [/* @__PURE__ */ Y(j, {
|
|
598
|
-
"aria-controls":
|
|
599
|
-
"aria-label":
|
|
598
|
+
"aria-controls": o,
|
|
599
|
+
"aria-label": i`Toggle menu`,
|
|
600
600
|
onClick: l,
|
|
601
601
|
sx: {
|
|
602
|
-
color:
|
|
603
|
-
[
|
|
602
|
+
color: r.primaryColor,
|
|
603
|
+
[n.breakpoints.up("md")]: { display: "none" }
|
|
604
604
|
},
|
|
605
|
-
children: /* @__PURE__ */ Y(
|
|
606
|
-
}), /* @__PURE__ */ X(
|
|
607
|
-
id:
|
|
605
|
+
children: /* @__PURE__ */ Y(ce, {})
|
|
606
|
+
}), /* @__PURE__ */ X(A, {
|
|
607
|
+
id: o,
|
|
608
608
|
sx: {
|
|
609
609
|
display: "flex",
|
|
610
|
-
[
|
|
610
|
+
[n.breakpoints.down("md")]: {
|
|
611
611
|
alignItems: "start",
|
|
612
|
-
background:
|
|
612
|
+
background: r.background,
|
|
613
613
|
display: s ? "flex" : "none",
|
|
614
614
|
flexDirection: "column",
|
|
615
615
|
left: 0,
|
|
616
616
|
position: "absolute",
|
|
617
617
|
right: 0,
|
|
618
|
-
top:
|
|
619
|
-
zIndex:
|
|
618
|
+
top: n.spacing(6),
|
|
619
|
+
zIndex: n.zIndex.appBar - 1
|
|
620
620
|
}
|
|
621
621
|
},
|
|
622
622
|
children: [
|
|
623
|
-
/* @__PURE__ */ Y(
|
|
623
|
+
/* @__PURE__ */ Y(we, {}),
|
|
624
|
+
/* @__PURE__ */ Y(Oe, {}),
|
|
624
625
|
/* @__PURE__ */ Y(De, {}),
|
|
625
626
|
/* @__PURE__ */ Y(Ee, {}),
|
|
626
|
-
/* @__PURE__ */ Y(Te, {}),
|
|
627
627
|
/* @__PURE__ */ Y(Me, {}),
|
|
628
628
|
/* @__PURE__ */ Y(je, {}),
|
|
629
|
-
|
|
629
|
+
a && /* @__PURE__ */ Y(A, {
|
|
630
630
|
...Q.createAttributes("ApplicationBarActions-EnvironmentMessage"),
|
|
631
631
|
"aria-hidden": "true",
|
|
632
632
|
sx: {
|
|
633
633
|
alignItems: "center",
|
|
634
|
-
color:
|
|
634
|
+
color: r.environmentMessageColor,
|
|
635
635
|
display: "flex",
|
|
636
636
|
fontWeight: 700,
|
|
637
|
-
marginRight: +!
|
|
638
|
-
padding: `0 ${
|
|
637
|
+
marginRight: +!t,
|
|
638
|
+
padding: `0 ${n.spacing(1)} !important`,
|
|
639
639
|
textTransform: "uppercase",
|
|
640
|
-
[
|
|
640
|
+
[n.breakpoints.down("md")]: {
|
|
641
641
|
position: "absolute",
|
|
642
642
|
visibility: "hidden"
|
|
643
643
|
}
|
|
644
644
|
},
|
|
645
|
-
children:
|
|
645
|
+
children: i("{{environmentMessage}}", { environmentMessage: a })
|
|
646
646
|
})
|
|
647
647
|
]
|
|
648
648
|
})]
|
|
649
649
|
});
|
|
650
|
-
}, Pe = ({ fullWidth:
|
|
651
|
-
let
|
|
652
|
-
background:
|
|
653
|
-
primaryColor:
|
|
654
|
-
...
|
|
655
|
-
}), [
|
|
656
|
-
return /* @__PURE__ */ Y(
|
|
650
|
+
}, Pe = ({ fullWidth: t, singleAction: n }) => {
|
|
651
|
+
let r = V(), i = G(() => ({
|
|
652
|
+
background: r.palette.primary.main,
|
|
653
|
+
primaryColor: r.palette.primary.contrastText,
|
|
654
|
+
...r.components?.GenEpixUiClientCommonApplicationBar ?? {}
|
|
655
|
+
}), [r]), a = e();
|
|
656
|
+
return /* @__PURE__ */ Y(O, {
|
|
657
657
|
...Q.createAttributes("ApplicationBar"),
|
|
658
658
|
position: "static",
|
|
659
659
|
square: !0,
|
|
660
660
|
sx: {
|
|
661
|
-
background:
|
|
661
|
+
background: i.background,
|
|
662
662
|
boxShadow: "none"
|
|
663
663
|
},
|
|
664
664
|
children: /* @__PURE__ */ Y(te, {
|
|
665
665
|
disableGutters: !0,
|
|
666
|
-
maxWidth: !
|
|
666
|
+
maxWidth: !t && "xl",
|
|
667
667
|
children: /* @__PURE__ */ X(R, {
|
|
668
668
|
disableGutters: !0,
|
|
669
669
|
sx: {
|
|
670
670
|
height: 48,
|
|
671
|
-
justifyContent:
|
|
671
|
+
justifyContent: n ? "center" : "space-between",
|
|
672
672
|
minHeight: "48px !important"
|
|
673
673
|
},
|
|
674
|
-
children: [
|
|
674
|
+
children: [n && /* @__PURE__ */ Y(A, {
|
|
675
675
|
sx: { marginX: 2 },
|
|
676
|
-
children: /* @__PURE__ */ Y(
|
|
676
|
+
children: /* @__PURE__ */ Y(z, {
|
|
677
677
|
component: "h1",
|
|
678
678
|
sx: {
|
|
679
|
-
color:
|
|
679
|
+
color: i.primaryColor,
|
|
680
680
|
fontSize: "1.3rem"
|
|
681
681
|
},
|
|
682
682
|
variant: "body2",
|
|
683
|
-
children:
|
|
683
|
+
children: a.applicationName
|
|
684
684
|
})
|
|
685
|
-
}), !
|
|
685
|
+
}), !n && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Se, { fullWidth: t }), /* @__PURE__ */ Y(Ne, { fullWidth: t })] })]
|
|
686
686
|
})
|
|
687
687
|
})
|
|
688
688
|
});
|