@gen-epix/ui-client-common 4.3.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/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/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/useQueryMemo.js +1 -1
- 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/index.js +4 -4
- package/dist/components/app/App/index.js +35 -100
- package/dist/components/app/App/index.js.map +1 -1
- 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 +146 -146
- 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 +13 -8
- package/dist/_chunks/chunk-OB3PAWPO.js +0 -3742
- package/dist/_chunks/chunk-OB3PAWPO.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/utils/UserManagerUtil/index.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { RouterService as e } from "../classes/services/RouterService/index.js";
|
|
2
|
+
import { BreadcrumbService as t } from "../classes/services/BreadcrumbService/index.js";
|
|
3
|
+
import { Breadcrumbs as n, Link as r, Typography as i, useTheme as a } from "@mui/material";
|
|
4
|
+
import { useCallback as o, useMemo as s } from "react";
|
|
5
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
6
|
+
import { TestIdUtil as l } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
7
|
+
import { useMatches as u } from "react-router-dom";
|
|
8
8
|
import { useSubscribable as d } from "@gen-epix/ui-core/hooks/useSubscribable";
|
|
9
9
|
//#region src/components/ui/Breadcrumbs/Breadcrumb.tsx
|
|
10
|
-
var f = ({ isLast:
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
}, [
|
|
14
|
-
return
|
|
10
|
+
var f = ({ isLast: n, item: a }) => {
|
|
11
|
+
let l = d(t.getInstance()), u = s(() => l[a.handle.title] ? l[a.handle.title] : a.handle.title, [l, a.handle.title]), f = o(async (t) => {
|
|
12
|
+
t.preventDefault(), await e.getInstance().router.navigate(a.pathname);
|
|
13
|
+
}, [a.pathname]);
|
|
14
|
+
return n ? /* @__PURE__ */ c(i, {
|
|
15
15
|
color: "textPrimary",
|
|
16
16
|
component: "h1",
|
|
17
17
|
children: u
|
|
18
|
-
}) : /* @__PURE__ */
|
|
18
|
+
}) : /* @__PURE__ */ c(r, {
|
|
19
19
|
color: "inherit",
|
|
20
|
-
href:
|
|
20
|
+
href: a.pathname,
|
|
21
21
|
onClick: f,
|
|
22
22
|
underline: "hover",
|
|
23
23
|
children: u
|
|
24
24
|
});
|
|
25
25
|
}, p = () => {
|
|
26
|
-
let
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
let e = u().filter((e) => !e.handle.hidden).filter((e, t, n) => !n.slice(t + 1).find((t) => t.pathname === `${e.pathname}/`)), t = a();
|
|
27
|
+
return /* @__PURE__ */ c(n, {
|
|
28
28
|
"aria-label": "breadcrumbs",
|
|
29
|
-
...
|
|
30
|
-
sx: { height:
|
|
31
|
-
children:
|
|
32
|
-
isLast: n ===
|
|
33
|
-
item:
|
|
34
|
-
},
|
|
29
|
+
...l.createAttributes("Breadcrumbs"),
|
|
30
|
+
sx: { height: t.spacing(3) },
|
|
31
|
+
children: e.map((t, n) => /* @__PURE__ */ c(f, {
|
|
32
|
+
isLast: n === e.length - 1,
|
|
33
|
+
item: t
|
|
34
|
+
}, t.id))
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
//#endregion
|