@ukpc-lib/react 0.12.1-dev.9 → 0.13.1-dev.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/components/FavoriteMenu/components/MenuItem.d.ts +1 -1
- package/dist/components/FavoriteMenu/models/MenuItemDto.d.ts +1 -0
- package/dist/components/index.cjs +9 -9
- package/dist/components/index.js +8 -8
- package/dist/{index.esm2017-DIs_XI9p.cjs → index.esm2017-CzVNnCiI.cjs} +4 -4
- package/dist/{index.esm2017-D13q7k3i.js → index.esm2017-I88kEk_g.js} +21 -10
- package/dist/share/hooks/index.d.ts +1 -0
- package/dist/share/hooks/useSyncRouter.d.ts +7 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +71 -50
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +2 -2
- package/web-components-bundle/favorite-menu/index.js +4 -4
- package/web-components-bundle/global-menu/index.js +4 -4
- package/web-components-bundle/global-topbar/index.js +6 -6
- package/web-components-bundle/has-permission/index.js +3 -3
- package/web-components-bundle/{index-T58UE-6b.js → index-B2-j-GrO.js} +1 -1
- package/web-components-bundle/{index-BziS9Had.js → index-B8-7QZsi.js} +593 -593
- package/web-components-bundle/{index-DSZn86FM.js → index-CXQLVfRc.js} +30 -19
- package/web-components-bundle/{index-BSe1av43.js → index-Cx0zTfOC.js} +1 -1
- package/web-components-bundle/page-not-found/index.js +2 -2
- package/web-components-bundle/{react-to-web-component-CXwKHjZr.js → react-to-web-component-D7SoYMky.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-CrTD7cpE.js → react-toastify.esm-Y1WvK90L.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
package/dist/components/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import ii, { jsxs as M, Fragment as le, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
3
|
import ye, { useState as W, useContext as $e, useEffect as q, useRef as Se, useCallback as Mt, forwardRef as ai, createElement as sr, PureComponent as si } from "react";
|
|
4
|
-
import { c as ne, a as gt, C as Le, t as ct, p as li, L as Xr, u as ci, b as ui, S as qn, d as di, e as fi, Q as Zn, f as Et, g as Xn, h as hi, s as Ct, _ as B, P as R, i as pe, j as mi, o as pi, k as Ne, l as gi, m as yi, n as Jr, q as Ot, r as Qr, I as vi, v as bi, w as en, D as xi, x as Jn, y as Qn, z as Si, A as wi, B as _i } from "../index.esm2017-
|
|
5
|
-
import { H as au, G as su, K as lu, E as cu, F as uu, J as du } from "../index.esm2017-
|
|
4
|
+
import { c as ne, a as gt, C as Le, t as ct, p as li, L as Xr, u as ci, b as ui, S as qn, d as di, e as fi, Q as Zn, f as Et, g as Xn, h as hi, s as Ct, _ as B, P as R, i as pe, j as mi, o as pi, k as Ne, l as gi, m as yi, n as Jr, q as Ot, r as Qr, I as vi, v as bi, w as en, D as xi, x as Jn, y as Qn, z as Si, A as wi, B as _i } from "../index.esm2017-I88kEk_g.js";
|
|
5
|
+
import { H as au, G as su, K as lu, E as cu, F as uu, J as du } from "../index.esm2017-I88kEk_g.js";
|
|
6
6
|
import Q from "moment";
|
|
7
7
|
import { Stack as me, Dialog as Ei, DialogTitle as Ci, Typography as Ce, DialogContent as Ti, DialogActions as Ii, Button as pr, Box as ki, ClickAwayListener as Mi, TextField as eo, IconButton as Oi, CircularProgress as $i, Fade as Ai, Paper as Ni, Checkbox as Ri, Breadcrumbs as Pi } from "@mui/material";
|
|
8
8
|
import "axios";
|
|
9
|
-
import "@r2wc/react-to-web-component";
|
|
10
9
|
import { useParams as zi, Link as to } from "react-router-dom";
|
|
10
|
+
import "@r2wc/react-to-web-component";
|
|
11
11
|
import "react-query";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
const Di = (e) => {
|
|
@@ -1900,7 +1900,7 @@ function Ba({
|
|
|
1900
1900
|
if ((_ != null ? _.shadowRoot : document).getElementById("selectedSearch") === null) {
|
|
1901
1901
|
console.log("enter", x);
|
|
1902
1902
|
const E = x.currentTarget.value;
|
|
1903
|
-
window.location.href = `${h}/
|
|
1903
|
+
window.location.href = `${h}/GlobalSearch/page/Index?Term=${E}`;
|
|
1904
1904
|
return;
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
@@ -2080,7 +2080,7 @@ function Ua({ classNames: e = "", ...t }) {
|
|
|
2080
2080
|
s.length >= 3 ? E(s) : _([]);
|
|
2081
2081
|
}, [s]);
|
|
2082
2082
|
const E = async (O) => {
|
|
2083
|
-
await fetch(`${o}/
|
|
2083
|
+
await fetch(`${o}/GlobalSearch/page/Suggestions?term=${O}`).then((C) => C.json()).then((C) => {
|
|
2084
2084
|
_(C), console.log(C);
|
|
2085
2085
|
}).catch((C) => {
|
|
2086
2086
|
console.error(C);
|
|
@@ -2093,13 +2093,13 @@ function Ua({ classNames: e = "", ...t }) {
|
|
|
2093
2093
|
const C = O.entityType, $ = O.entityId;
|
|
2094
2094
|
switch (C) {
|
|
2095
2095
|
case "Zone":
|
|
2096
|
-
document.location.href = o + "/
|
|
2096
|
+
document.location.href = o + "/SiteManagement/page/Zone/Details/" + $;
|
|
2097
2097
|
return;
|
|
2098
2098
|
case "Location":
|
|
2099
|
-
document.location.href = o + "/
|
|
2099
|
+
document.location.href = o + "/SiteManagement/page/Location/Details/" + $;
|
|
2100
2100
|
return;
|
|
2101
2101
|
case "Company":
|
|
2102
|
-
document.location.href = o + "/
|
|
2102
|
+
document.location.href = o + "/SiteManagement/page/Company/Details/" + $;
|
|
2103
2103
|
return;
|
|
2104
2104
|
default:
|
|
2105
2105
|
console.log(`Unsure how to navigate to ${C} ${$}`);
|