@ukpc-lib/react 0.13.5 → 0.13.7-sandbox.saas-8492.patch-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/Notification/NotificationList/components/NotitficationItem.d.ts +5 -2
- package/dist/components/Notification/NotificationList/components/query.d.ts +1 -1
- package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
- package/dist/components/Topbar/index.d.ts +2 -0
- package/dist/components/index.cjs +19 -19
- package/dist/components/index.js +3244 -3253
- package/dist/{index.esm2017-BtTWLbPn.cjs → index.esm2017-BH9gRN7i.cjs} +121 -121
- package/dist/{index.esm2017-9AyxX2BH.js → index.esm2017-CXUWB61_.js} +13276 -13093
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +13 -13
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +1 -1
- package/web-components-bundle/base-breadcrumbs/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +2 -2
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.js +3 -3
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-CK5hBQAs.js → index-9o5rZMWx.js} +1 -1
- package/web-components-bundle/{index-BTy-Dpix.js → index-CxiIFyUv.js} +62 -58
- package/web-components-bundle/{index-BVdw7RBU.js → index-DLTHwamY.js} +13979 -13422
- package/web-components-bundle/{setPrototypeOf-BVKdEITT.js → setPrototypeOf-CP0c5ut2.js} +2 -2
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-BH9gRN7i.cjs"),m=require("axios"),u=require("react"),i=require("react/jsx-runtime");require("@r2wc/react-to-web-component");const l=require("react-router-dom");require("@mui/material");const c=s=>{const[t,o]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(r=>o(r.data)).catch(r=>{console.error("Getting user permission error:",r)})},[s]),t},a=s=>(t,o)=>{const r=c(s);return o?t.every(n=>r==null?void 0:r.includes(n)):t.some(n=>r==null?void 0:r.includes(n))},h=({baseUrl:s,accessWith:t,requireAll:o,children:r})=>a(s)(t,o)?i.jsx(i.Fragment,{children:r}):null,P=({accessWith:s,requireAll:t,baseUrl:o,unAuthorizedPath:r,children:n})=>a(o)(s,t)?i.jsx(i.Fragment,{children:n}):i.jsx(l.Navigate,{to:r,replace:!0});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.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=h;exports.PermissionRoute=P;exports.getUseHasPermission=a;exports.useGetPermission=c;
|
package/dist/share/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as R,
|
|
1
|
+
import { M as R, O as S, R as G, a1 as y, Z as F, a as H, c as I, $ as M, V as O, T as $, U as j, W as w, t as B, a0 as N, B as U, X as V, e as X, u as Y, i as Z, Y as _ } from "../index.esm2017-CXUWB61_.js";
|
|
2
2
|
import u from "axios";
|
|
3
3
|
import { useState as m, useEffect as c } from "react";
|
|
4
4
|
import { jsx as a, Fragment as n } from "react/jsx-runtime";
|
|
@@ -45,17 +45,17 @@ export {
|
|
|
45
45
|
I as color,
|
|
46
46
|
M as createCustomTheme,
|
|
47
47
|
i as getUseHasPermission,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
O as handleErrorAxios,
|
|
49
|
+
$ as login,
|
|
50
|
+
j as logout,
|
|
51
|
+
w as responseInterceptor,
|
|
52
|
+
B as search,
|
|
53
|
+
N as setFavicon,
|
|
54
|
+
U as translate,
|
|
55
|
+
V as translationConfig,
|
|
56
|
+
X as useAuth,
|
|
57
|
+
Y as useCustomTranslation,
|
|
58
58
|
h as useGetPermission,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
Z as useTheme,
|
|
60
|
+
_ as useTranslation
|
|
61
61
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../react-to-web-component-CXwKHjZr.js";
|
|
2
|
-
import { F as i, u as m } from "../index-
|
|
2
|
+
import { F as i, u as m } from "../index-DLTHwamY.js";
|
|
3
3
|
import "../index-BSe1av43.js";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-CxiIFyUv.js";
|
|
5
5
|
export {
|
|
6
6
|
i as FavoriteMenu,
|
|
7
7
|
m as updateFavoriteItems
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../react-to-web-component-CXwKHjZr.js";
|
|
2
|
-
import { G as i } from "../index-
|
|
2
|
+
import { G as i } from "../index-DLTHwamY.js";
|
|
3
3
|
import "../index-BSe1av43.js";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-CxiIFyUv.js";
|
|
5
5
|
export {
|
|
6
6
|
i as GlobalMenu
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../react-to-web-component-CXwKHjZr.js";
|
|
2
|
-
import { L as n, T as s } from "../index-
|
|
2
|
+
import { L as n, T as s } from "../index-DLTHwamY.js";
|
|
3
3
|
import "../index-BSe1av43.js";
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../index-
|
|
4
|
+
import "../index-9o5rZMWx.js";
|
|
5
|
+
import "../index-CxiIFyUv.js";
|
|
6
6
|
import "../react-toastify.esm-CrTD7cpE.js";
|
|
7
7
|
import "../toast-config/index.js";
|
|
8
8
|
import "../toast-config-notification/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../react-to-web-component-CXwKHjZr.js";
|
|
2
|
-
import { H as e, g as m } from "../index-
|
|
3
|
-
import "../index-
|
|
2
|
+
import { H as e, g as m } from "../index-DLTHwamY.js";
|
|
3
|
+
import "../index-CxiIFyUv.js";
|
|
4
4
|
export {
|
|
5
5
|
e as HasPermission,
|
|
6
6
|
m as getUseHasPermission
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./index2.css";
|
|
2
2
|
import { r as $, c as ce, g as Jt, s as Xt, j as E } from "./react-to-web-component-CXwKHjZr.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as Wt, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
|
|
4
4
|
function Gt(i, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const n = e[t];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { e as pt, r as f, j as _, d as ue, a as J, R as Pi, s as Ei } from "./react-to-web-component-CXwKHjZr.js";
|
|
2
2
|
import { c as q } from "./clsx-DB4S2d7J.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as Ri, _ as _i } from "./setPrototypeOf-CP0c5ut2.js";
|
|
4
4
|
const we = {
|
|
5
5
|
primary: "#93D500",
|
|
6
6
|
primary100: "#F0F6E1",
|
|
@@ -5345,69 +5345,73 @@ const Cf = (e) => /* @__PURE__ */ _.jsx(lf, { children: /* @__PURE__ */ _.jsx(wf
|
|
|
5345
5345
|
customElements.define("base-breadcrumbs", e);
|
|
5346
5346
|
}
|
|
5347
5347
|
export {
|
|
5348
|
-
|
|
5349
|
-
|
|
5348
|
+
Wf as $,
|
|
5349
|
+
It as A,
|
|
5350
5350
|
ac as B,
|
|
5351
|
-
|
|
5351
|
+
Po as C,
|
|
5352
5352
|
Tf as D,
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5353
|
+
$f as E,
|
|
5354
|
+
ve as F,
|
|
5355
|
+
sl as G,
|
|
5356
|
+
tl as H,
|
|
5357
|
+
De as I,
|
|
5358
|
+
ko as J,
|
|
5359
|
+
yl as K,
|
|
5360
|
+
Zt as L,
|
|
5361
|
+
Of as M,
|
|
5362
|
+
Tl as N,
|
|
5363
|
+
_l as O,
|
|
5364
|
+
kf as P,
|
|
5365
|
+
Df as Q,
|
|
5366
|
+
Ff as R,
|
|
5367
|
+
Af as S,
|
|
5368
5368
|
Ft as T,
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5369
|
+
Oc as U,
|
|
5370
|
+
Mf as V,
|
|
5371
|
+
If as W,
|
|
5372
|
+
Er as X,
|
|
5373
|
+
Uf as Y,
|
|
5374
|
+
Mc as Z,
|
|
5375
|
+
V as _,
|
|
5376
5376
|
wo as a,
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5377
|
+
$c as a0,
|
|
5378
|
+
Bf as a1,
|
|
5379
|
+
Nf as a2,
|
|
5380
|
+
Lf as a3,
|
|
5381
|
+
jf as a4,
|
|
5382
|
+
Rr as a5,
|
|
5383
|
+
Uo as a6,
|
|
5384
|
+
zf as a7,
|
|
5385
|
+
Pr as a8,
|
|
5386
|
+
Kf as a9,
|
|
5387
|
+
mf as aa,
|
|
5388
|
+
ff as ab,
|
|
5389
|
+
lf as ac,
|
|
5390
|
+
Zr as ad,
|
|
5391
|
+
wf as ae,
|
|
5392
|
+
Ut as b,
|
|
5389
5393
|
we as c,
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5394
|
+
S as d,
|
|
5395
|
+
Co as e,
|
|
5396
|
+
Oi as f,
|
|
5397
|
+
uu as g,
|
|
5398
|
+
zu as h,
|
|
5399
|
+
An as i,
|
|
5400
|
+
$o as j,
|
|
5401
|
+
Oo as k,
|
|
5402
|
+
Ze as l,
|
|
5403
|
+
et as m,
|
|
5404
|
+
Sl as n,
|
|
5401
5405
|
To as o,
|
|
5402
|
-
|
|
5403
|
-
|
|
5406
|
+
tr as p,
|
|
5407
|
+
rt as q,
|
|
5404
5408
|
du as r,
|
|
5405
|
-
|
|
5406
|
-
|
|
5409
|
+
Na as s,
|
|
5410
|
+
ye as t,
|
|
5407
5411
|
yt as u,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5412
|
+
lu as v,
|
|
5413
|
+
nl as w,
|
|
5414
|
+
me as x,
|
|
5415
|
+
Au as y,
|
|
5416
|
+
mo as z
|
|
5413
5417
|
};
|