@ukpc-lib/react 0.16.15 → 0.16.16
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/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.esm2017-jgcjblYP.cjs → index.esm2017-CHXyKA2n.cjs} +2 -2
- package/dist/{index.esm2017-JagIQVVx.js → index.esm2017-DWkEXVpb.js} +7 -4
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/{SaasThemeProvider-DUpoV8xb.js → SaasThemeProvider-A_eMJWqw.js} +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +3 -3
- package/web-components-bundle/favorite-menu/index.js +7 -7
- package/web-components-bundle/global-menu/index.js +6 -6
- package/web-components-bundle/global-topbar/index.js +7 -7
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-BjAOBcrx.js → index-2l2WAozi.js} +13 -10
- package/web-components-bundle/{index-BBl8HzU3.js → index-760z9lEs.js} +565 -565
- package/web-components-bundle/{index-N6zjI_u_.js → index-BwEhsh9S.js} +2 -2
- package/web-components-bundle/{index-Ch-015PG.js → index-CiYHK3Rq.js} +1 -1
- package/web-components-bundle/page-not-found/index.js +3 -3
- package/web-components-bundle/{react-to-web-component-w5r1Fs9q.js → react-to-web-component-BOygDorD.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-H_Xdunfj.js → react-toastify.esm-DnABvuky.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
|
@@ -30991,10 +30991,13 @@ const q1 = {
|
|
|
30991
30991
|
//
|
|
30992
30992
|
"/anpr/page/Technical/Overview": ["/anpr/page/Technical"],
|
|
30993
30993
|
"/anpr/page/Technical/Index": ["/anpr/page/Technical"],
|
|
30994
|
-
"/anpr/page/Technical/Index
|
|
30995
|
-
"/anpr/page/Technical/Index
|
|
30996
|
-
"/anpr/page/Technical/Index
|
|
30997
|
-
"/anpr/page/Technical/Index
|
|
30994
|
+
"/anpr/page/Technical/Index/Priority/P0": ["/anpr/page/Technical"],
|
|
30995
|
+
"/anpr/page/Technical/Index/Priority/P1": ["/anpr/page/Technical"],
|
|
30996
|
+
"/anpr/page/Technical/Index/Priority/P2": ["/anpr/page/Technical"],
|
|
30997
|
+
"/anpr/page/Technical/Index/Priority/P3": ["/anpr/page/Technical"],
|
|
30998
|
+
"/anpr/page/Technical/Index/Priority/P4": ["/anpr/page/Technical"],
|
|
30999
|
+
"/anpr/page/Technical/Index/Priority/P5": ["/anpr/page/Technical"],
|
|
31000
|
+
"/anpr/page/Technical/Index/Priority/P6": ["/anpr/page/Technical"],
|
|
30998
31001
|
"/anpr/page/CustomVerifications/Overview": [
|
|
30999
31002
|
"/anpr/page/CustomVerifications/Overview"
|
|
31000
31003
|
],
|
package/dist/share/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-CHXyKA2n.cjs"),m=require("axios"),u=require("react"),d=require("react-router-dom"),a=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("@mui/material");require("react-query");require("react-dom");require("moment");const h=s=>{const[t,r]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(o=>r(o.data)).catch(o=>{console.error("Getting user permission error:",o)})},[s]),t},p=s=>{const t=d.useLocation();if(u.useEffect(()=>{var o,i;let r=t.pathname+t.search+t.hash;s&&!r.includes(s)&&(r=s+r),console.log("🚀 ~ PrivateLayout.tsx ~ fullPath:",r),(i=(o=window.top)==null?void 0:o.shellNavigate)==null||i.call(o,"/app"+r,{replace:!0})},[t,s]),window.self===window.top){console.log("useSyncRouter: Navigate to /app path"),window.location.href=window.location.href.replace(window.origin,`${window.origin}/app`);return}};function g({open:s,disabled:t}){u.useMemo(()=>{var r,o,i,n;t||(s?(o=(r=window.top)==null?void 0:r.HostBridge)==null||o.openBackdrop(!0):(n=(i=window.top)==null?void 0:i.HostBridge)==null||n.openBackdrop(!1))},[s,t])}const l=(s,t)=>(r,o)=>{const n=e.useUserPermissions({axiosInstance:t,baseUrl:s}).data;return n?o?r.every(c=>n==null?void 0:n.includes(c)):r.some(c=>n==null?void 0:n.includes(c)):!1},f=({baseUrl:s,accessWith:t,requireAll:r,children:o})=>l(s)(t,r)?a.jsx(a.Fragment,{children:o}):null,P=({accessWith:s,requireAll:t,baseUrl:r,children:o})=>l(r)(s,t)?a.jsx(a.Fragment,{children:o}):a.jsx(e.UnauthorizedPage,{});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.X_AUTO_CANCEL=e.X_AUTO_CANCEL;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.isCanceledError=e.isCanceledError;exports.login=e.login;exports.logout=e.logout;exports.requestInterceptor=e.requestInterceptor;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.setShellBackdrop=e.setShellBackdrop;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation;exports.HasPermission=f;exports.PermissionRoute=P;exports.getUseHasPermission=l;exports.useGetPermission=h;exports.useSyncBackdrop=g;exports.useSyncRouter=p;
|
package/dist/share/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as p, U as l } from "../index.esm2017-
|
|
2
|
-
import { R as L, T as N, V as O, a7 as _, a4 as $, X as j, a as D, c as F, a5 as M, Z as X, $ as q, W as z, Y as V, a1 as Y, a0 as Z, v as J, a6 as K, s as Q, t as W, a2 as b, e as ee, u as se, j as oe, a3 as re } from "../index.esm2017-
|
|
1
|
+
import { O as p, U as l } from "../index.esm2017-DWkEXVpb.js";
|
|
2
|
+
import { R as L, T as N, V as O, a7 as _, a4 as $, X as j, a as D, c as F, a5 as M, Z as X, $ as q, W as z, Y as V, a1 as Y, a0 as Z, v as J, a6 as K, s as Q, t as W, a2 as b, e as ee, u as se, j as oe, a3 as re } from "../index.esm2017-DWkEXVpb.js";
|
|
3
3
|
import d from "axios";
|
|
4
4
|
import { useState as f, useEffect as u, useMemo as h } from "react";
|
|
5
5
|
import { useLocation as w } from "react-router-dom";
|
package/package.json
CHANGED
package/web-components-bundle/{SaasThemeProvider-DUpoV8xb.js → SaasThemeProvider-A_eMJWqw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as j, r as b } from "./react-to-web-component-
|
|
1
|
+
import { a as j, r as b } from "./react-to-web-component-BOygDorD.js";
|
|
2
2
|
function c() {
|
|
3
3
|
return c = Object.assign ? Object.assign.bind() : function(t) {
|
|
4
4
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { V as e } from "../index-
|
|
3
|
-
import "../SaasThemeProvider-
|
|
1
|
+
import "../react-to-web-component-BOygDorD.js";
|
|
2
|
+
import { V as e } from "../index-760z9lEs.js";
|
|
3
|
+
import "../SaasThemeProvider-A_eMJWqw.js";
|
|
4
4
|
export {
|
|
5
5
|
e as BaseBreadcrumbs
|
|
6
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { F, u as v } from "../index-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../react-toastify.esm-
|
|
1
|
+
import "../react-to-web-component-BOygDorD.js";
|
|
2
|
+
import { F, u as v } from "../index-2l2WAozi.js";
|
|
3
|
+
import "../index-BwEhsh9S.js";
|
|
4
|
+
import "../index-760z9lEs.js";
|
|
5
|
+
import "../index-CiYHK3Rq.js";
|
|
6
|
+
import "../react-toastify.esm-DnABvuky.js";
|
|
7
7
|
import "../toast-config/index.js";
|
|
8
8
|
import "../toast-config-notification/index.js";
|
|
9
|
-
import "../SaasThemeProvider-
|
|
9
|
+
import "../SaasThemeProvider-A_eMJWqw.js";
|
|
10
10
|
export {
|
|
11
11
|
F as FavoriteMenu,
|
|
12
12
|
v as updateFavoriteItems
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { G as e } from "../index-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../SaasThemeProvider-
|
|
6
|
-
import "../index-
|
|
1
|
+
import "../react-to-web-component-BOygDorD.js";
|
|
2
|
+
import { G as e } from "../index-2l2WAozi.js";
|
|
3
|
+
import "../index-BwEhsh9S.js";
|
|
4
|
+
import "../index-760z9lEs.js";
|
|
5
|
+
import "../SaasThemeProvider-A_eMJWqw.js";
|
|
6
|
+
import "../index-CiYHK3Rq.js";
|
|
7
7
|
export {
|
|
8
8
|
e as GlobalMenu
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { L as s, T as L } from "../index-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../SaasThemeProvider-
|
|
7
|
-
import "../react-toastify.esm-
|
|
1
|
+
import "../react-to-web-component-BOygDorD.js";
|
|
2
|
+
import { L as s, T as L } from "../index-2l2WAozi.js";
|
|
3
|
+
import "../index-BwEhsh9S.js";
|
|
4
|
+
import "../index-CiYHK3Rq.js";
|
|
5
|
+
import "../index-760z9lEs.js";
|
|
6
|
+
import "../SaasThemeProvider-A_eMJWqw.js";
|
|
7
|
+
import "../react-toastify.esm-DnABvuky.js";
|
|
8
8
|
import "../toast-config/index.js";
|
|
9
9
|
import "../toast-config-notification/index.js";
|
|
10
10
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { H as o, g as r } from "../index-
|
|
1
|
+
import "../react-to-web-component-BOygDorD.js";
|
|
2
|
+
import { H as o, g as r } from "../index-2l2WAozi.js";
|
|
3
3
|
export {
|
|
4
4
|
o as HasPermission,
|
|
5
5
|
r as getUseHasPermission
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as Fi, g as xu, r as A, R as Fe, j as R, a as Zd, b as Gp, s as Kp, d as bV } from "./react-to-web-component-
|
|
2
|
-
import { t as np, I as xV, i as Bc, L as Wl } from "./index-
|
|
3
|
-
import { i as rp, s as wV, _ as Te, a as yy, f as SV, r as by, n as Hn, t as ik, e as TV, g as sk, b as ln, c as ip, h as ok, p as Io, m as bS, d as xS, j as _h, k as Jd, l as wS, o as CV } from "./SaasThemeProvider-
|
|
4
|
-
import { _ as Zo, T as ak, c as _V, s as EV, a as DV, e as lk, b as Er, D as kV, d as sp, f as OV, g as uk, r as PV, u as sf, h as op, i as SS, j as wu, k as ol, o as TS, l as MV, m as Su, n as Mf, p as or, C as AV, q as ck, t as fk, v as qr, B as IV, w as RV, x as dk, y as hk, z as Xp, A as rb, E as kc, F as LV, G as CS, H as NV, I as eh, J as $V, K as ap, L as FV, M as jV, N as cn, O as BV, P as VV, S as WV, Q as xy, R as pk, U as mk } from "./index-
|
|
1
|
+
import { c as Fi, g as xu, r as A, R as Fe, j as R, a as Zd, b as Gp, s as Kp, d as bV } from "./react-to-web-component-BOygDorD.js";
|
|
2
|
+
import { t as np, I as xV, i as Bc, L as Wl } from "./index-CiYHK3Rq.js";
|
|
3
|
+
import { i as rp, s as wV, _ as Te, a as yy, f as SV, r as by, n as Hn, t as ik, e as TV, g as sk, b as ln, c as ip, h as ok, p as Io, m as bS, d as xS, j as _h, k as Jd, l as wS, o as CV } from "./SaasThemeProvider-A_eMJWqw.js";
|
|
4
|
+
import { _ as Zo, T as ak, c as _V, s as EV, a as DV, e as lk, b as Er, D as kV, d as sp, f as OV, g as uk, r as PV, u as sf, h as op, i as SS, j as wu, k as ol, o as TS, l as MV, m as Su, n as Mf, p as or, C as AV, q as ck, t as fk, v as qr, B as IV, w as RV, x as dk, y as hk, z as Xp, A as rb, E as kc, F as LV, G as CS, H as NV, I as eh, J as $V, K as ap, L as FV, M as jV, N as cn, O as BV, P as VV, S as WV, Q as xy, R as pk, U as mk } from "./index-760z9lEs.js";
|
|
5
5
|
import { c as $s } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
import { S as ib } from "./index-
|
|
7
|
-
import { B as Qp } from "./react-toastify.esm-
|
|
6
|
+
import { S as ib } from "./index-BwEhsh9S.js";
|
|
7
|
+
import { B as Qp } from "./react-toastify.esm-DnABvuky.js";
|
|
8
8
|
import "./toast-config/index.js";
|
|
9
9
|
import "./toast-config-notification/index.js";
|
|
10
10
|
import { _ as _S } from "./setPrototypeOf-CP0c5ut2.js";
|
|
@@ -40929,10 +40929,13 @@ const nk = {
|
|
|
40929
40929
|
//
|
|
40930
40930
|
"/anpr/page/Technical/Overview": ["/anpr/page/Technical"],
|
|
40931
40931
|
"/anpr/page/Technical/Index": ["/anpr/page/Technical"],
|
|
40932
|
-
"/anpr/page/Technical/Index
|
|
40933
|
-
"/anpr/page/Technical/Index
|
|
40934
|
-
"/anpr/page/Technical/Index
|
|
40935
|
-
"/anpr/page/Technical/Index
|
|
40932
|
+
"/anpr/page/Technical/Index/Priority/P0": ["/anpr/page/Technical"],
|
|
40933
|
+
"/anpr/page/Technical/Index/Priority/P1": ["/anpr/page/Technical"],
|
|
40934
|
+
"/anpr/page/Technical/Index/Priority/P2": ["/anpr/page/Technical"],
|
|
40935
|
+
"/anpr/page/Technical/Index/Priority/P3": ["/anpr/page/Technical"],
|
|
40936
|
+
"/anpr/page/Technical/Index/Priority/P4": ["/anpr/page/Technical"],
|
|
40937
|
+
"/anpr/page/Technical/Index/Priority/P5": ["/anpr/page/Technical"],
|
|
40938
|
+
"/anpr/page/Technical/Index/Priority/P6": ["/anpr/page/Technical"],
|
|
40936
40939
|
"/anpr/page/CustomVerifications/Overview": [
|
|
40937
40940
|
"/anpr/page/CustomVerifications/Overview"
|
|
40938
40941
|
],
|