@ukpc-lib/react 0.13.1-dev.23 → 0.13.1-dev.24
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/StyledDateRangePicker/index.d.ts +1 -0
- package/dist/components/index.cjs +15 -15
- package/dist/components/index.js +1150 -1142
- package/dist/{index.esm2017-Ck_qm_fd.cjs → index.esm2017-B6pR8zNp.cjs} +79 -79
- package/dist/{index.esm2017-DhUKCOpT.js → index.esm2017-DcnQ8dZu.js} +2610 -2600
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +12 -12
- package/package.json +3 -4
- package/web-components-bundle/{SaasThemeProvider-8W2MaSUF.js → SaasThemeProvider-ffEVXQF_.js} +1 -1
- package/web-components-bundle/access-denied/index.js +3 -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-CAmMT_XN.js → index-DVbeHRGT.js} +894 -895
- package/web-components-bundle/{index-B9QTeqBB.js → index-DVyPTlxG.js} +4269 -4254
- package/web-components-bundle/{index-BtUzqnTK.js → index-dx6s22iA.js} +20 -18
- package/web-components-bundle/index-fKv-tqw7.js +3206 -0
- package/web-components-bundle/page-not-found/index.js +6 -4
- 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/web-components-bundle/useTranslation-yFulP-g8.js +337 -0
- package/web-components-bundle/index-DSTem_oO.js +0 -3528
- package/web-components-bundle/index.css +0 -1
- package/web-components-bundle/index2.css +0 -1
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-B6pR8zNp.cjs"),g=require("axios"),c=require("react"),d=require("react-router-dom"),u=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("@mui/material");require("react-query");require("react-dom");require("moment");const h=r=>{const[i,t]=c.useState([]);return c.useEffect(()=>{g.get(`${r}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>t(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[r]),i},f=r=>{const i=d.useNavigate(),t=d.useLocation();console.log(" useSyncRouter.tsx ~ location1:",t,window.location.pathname);const s=(n=t)=>(r||"")+n.pathname+n.search+n.hash;if(c.useEffect(()=>{const n={changeRoute:o=>{const a=s();if(typeof o=="string"&&a!==o){console.log(" useSyncRouter.tsx ~ location2:",a,o);const m=r&&o.startsWith(r)?o.substring(r.length):o;i(m)}}};window.MicrofeBridge=n},[i,t]),c.useEffect(()=>{var o,a;const n=s();console.log("fullPath1",window.location.pathname,n),(a=(o=window.parent)==null?void 0:o.HostBridge)==null||a.childRouteChange(n)},[t]),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 P({open:r,disabled:i}){c.useMemo(()=>{var t,s,n,o;i||(r?(s=(t=window.top)==null?void 0:t.HostBridge)==null||s.openBackdrop(!0):(o=(n=window.top)==null?void 0:n.HostBridge)==null||o.openBackdrop(!1))},[r,i])}const l=(r,i)=>(t,s)=>{const o=e.useUserPermissions({axiosInstance:i,baseUrl:r}).data;return o?s?t.every(a=>o==null?void 0:o.includes(a)):t.some(a=>o==null?void 0:o.includes(a)):!1},w=({baseUrl:r,accessWith:i,requireAll:t,children:s})=>l(r)(i,t)?u.jsx(u.Fragment,{children:s}):null,p=({accessWith:r,requireAll:i,baseUrl:t,children:s})=>l(t)(r,i)?u.jsx(u.Fragment,{children:s}):u.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.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;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$1;exports.HasPermission=w;exports.PermissionRoute=p;exports.getUseHasPermission=l;exports.useGetPermission=h;exports.useSyncBackdrop=P;exports.useSyncRouter=f;
|
package/dist/share/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { M as d, U as g } from "../index.esm2017-DcnQ8dZu.js";
|
|
2
|
+
import { O as z, R as D, T as I, a3 as N, a0 as O, a as j, c as L, a1 as V, X as W, V as X, W as Y, Y as Z, r as _, a2 as q, s as J, t as K, Z as Q, e as b, u as oo, i as eo, $ as so } from "../index.esm2017-DcnQ8dZu.js";
|
|
3
3
|
import p from "axios";
|
|
4
4
|
import { useState as f, useEffect as a, useMemo as h } from "react";
|
|
5
5
|
import { useNavigate as w, useLocation as P } from "react-router-dom";
|
|
@@ -89,17 +89,17 @@ export {
|
|
|
89
89
|
N as SaasThemeProvider,
|
|
90
90
|
O as TranslationProvider,
|
|
91
91
|
j as axiosInstance,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
L as color,
|
|
93
|
+
V as createCustomTheme,
|
|
94
94
|
l as getUseHasPermission,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
W as handleErrorAxios,
|
|
96
|
+
X as login,
|
|
97
|
+
Y as logout,
|
|
98
|
+
Z as responseInterceptor,
|
|
99
|
+
_ as search,
|
|
100
|
+
q as setFavicon,
|
|
101
|
+
J as setShellBackdrop,
|
|
102
|
+
K as translate,
|
|
103
103
|
Q as translationConfig,
|
|
104
104
|
b as useAuth,
|
|
105
105
|
oo as useCustomTranslation,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukpc-lib/react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.13.1-dev.
|
|
4
|
+
"version": "0.13.1-dev.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/",
|
|
7
7
|
"module": "./dist/",
|
|
@@ -75,8 +75,7 @@
|
|
|
75
75
|
"react-window-infinite-loader": "^1.0.9",
|
|
76
76
|
"simplebar-react": "^3.2.4",
|
|
77
77
|
"styled-components": "^5.3.3",
|
|
78
|
-
"usehooks-ts": "^2.15.1"
|
|
79
|
-
"vite-plugin-css-injected-by-js": "^3.3.1"
|
|
78
|
+
"usehooks-ts": "^2.15.1"
|
|
80
79
|
},
|
|
81
80
|
"devDependencies": {
|
|
82
81
|
"@types/node": "^20.8.10",
|
|
@@ -98,7 +97,7 @@
|
|
|
98
97
|
"tailwindcss": "^3.4.1",
|
|
99
98
|
"typescript": "^5.0.2",
|
|
100
99
|
"vite": "5.1.7",
|
|
101
|
-
"vite-plugin-css-injected-by-js": "^3.
|
|
100
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
102
101
|
"vite-plugin-dts": "^3.7.0",
|
|
103
102
|
"vite-plugin-lib-inject-css": "^1.3.0"
|
|
104
103
|
},
|
package/web-components-bundle/{SaasThemeProvider-8W2MaSUF.js → SaasThemeProvider-ffEVXQF_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as j, r as b } from "./react-to-web-component-
|
|
1
|
+
import { R as j, r as b } from "./react-to-web-component-D7SoYMky.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,5 +1,6 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { U as e } from "../index-
|
|
1
|
+
import "../react-to-web-component-D7SoYMky.js";
|
|
2
|
+
import { U as e } from "../index-fKv-tqw7.js";
|
|
3
|
+
import "../useTranslation-yFulP-g8.js";
|
|
3
4
|
export {
|
|
4
5
|
e as UnauthorizedPage
|
|
5
6
|
};
|
|
@@ -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-D7SoYMky.js";
|
|
2
|
+
import { V as e } from "../index-DVbeHRGT.js";
|
|
3
|
+
import "../SaasThemeProvider-ffEVXQF_.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 "../react-toastify.esm-
|
|
1
|
+
import "../react-to-web-component-D7SoYMky.js";
|
|
2
|
+
import { F, u as v } from "../index-DVyPTlxG.js";
|
|
3
|
+
import "../index-dx6s22iA.js";
|
|
4
|
+
import "../index-DVbeHRGT.js";
|
|
5
|
+
import "../react-toastify.esm-Y1WvK90L.js";
|
|
6
6
|
import "../toast-config/index.js";
|
|
7
7
|
import "../toast-config-notification/index.js";
|
|
8
|
-
import "../SaasThemeProvider-
|
|
9
|
-
import "../index-
|
|
8
|
+
import "../SaasThemeProvider-ffEVXQF_.js";
|
|
9
|
+
import "../index-fKv-tqw7.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-D7SoYMky.js";
|
|
2
|
+
import { G as e } from "../index-DVyPTlxG.js";
|
|
3
|
+
import "../index-dx6s22iA.js";
|
|
4
|
+
import "../index-DVbeHRGT.js";
|
|
5
|
+
import "../SaasThemeProvider-ffEVXQF_.js";
|
|
6
|
+
import "../index-fKv-tqw7.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-D7SoYMky.js";
|
|
2
|
+
import { L as s, T as L } from "../index-DVyPTlxG.js";
|
|
3
|
+
import "../index-dx6s22iA.js";
|
|
4
|
+
import "../index-fKv-tqw7.js";
|
|
5
|
+
import "../index-DVbeHRGT.js";
|
|
6
|
+
import "../SaasThemeProvider-ffEVXQF_.js";
|
|
7
|
+
import "../react-toastify.esm-Y1WvK90L.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-D7SoYMky.js";
|
|
2
|
+
import { H as o, g as r } from "../index-DVyPTlxG.js";
|
|
3
3
|
export {
|
|
4
4
|
o as HasPermission,
|
|
5
5
|
r as getUseHasPermission
|