@ukpc-lib/react 0.9.7 → 0.9.9
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/Toast/index.d.ts +6 -3
- package/dist/components/index.cjs +22 -22
- package/dist/components/index.js +22 -22
- package/dist/{index.module-6d60e484.cjs → index.module-1f4dcd01.cjs} +2 -2
- package/dist/{index.module-46a42fa7.js → index.module-54e27930.js} +10 -11
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-e58f711d.js → index-23ac67cd.js} +9497 -9492
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as N, Fragment as be, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
3
|
import ge, { useState as G, useContext as _e, useEffect as Q, useCallback as We, useRef as ve, forwardRef as Eo, createElement as tr, PureComponent as Co } from "react";
|
|
4
|
-
import { c as Te, a as Ke, C as ke, p as Oo, L as Pr, u as No, b as To, S as ko, d as Io, e as $o, Q as $n, f as yt, g as hr, h as Mo, s as vt, _ as z, i as Se, P as k, j as he, k as Ao, o as Po, l as Ro, m as Do, n as Rr, q as wt, r as Dr, I as zo, t as Fo, v as zr, D as Lo, w as Mn, x as An, y as jo, z as Vo, A as Ho, B as rt } from "../index.module-
|
|
5
|
-
import { H as Lc, G as jc, K as Vc, E as Hc, F as Bc, J as Wc } from "../index.module-
|
|
4
|
+
import { c as Te, a as Ke, C as ke, p as Oo, L as Pr, u as No, b as To, S as ko, d as Io, e as $o, Q as $n, f as yt, g as hr, h as Mo, s as vt, _ as z, i as Se, P as k, j as he, k as Ao, o as Po, l as Ro, m as Do, n as Rr, q as wt, r as Dr, I as zo, t as Fo, v as zr, D as Lo, w as Mn, x as An, y as jo, z as Vo, A as Ho, B as rt } from "../index.module-54e27930.js";
|
|
5
|
+
import { H as Lc, G as jc, K as Vc, E as Hc, F as Bc, J as Wc } from "../index.module-54e27930.js";
|
|
6
6
|
import Z from "moment";
|
|
7
7
|
import { Stack as te, Dialog as Bo, DialogTitle as Wo, Typography as ye, DialogContent as Uo, DialogActions as Yo, Button as kt, Box as qo, ClickAwayListener as Go, TextField as Pn, IconButton as Ko, CircularProgress as Zo, Fade as Jo, Paper as Xo, Checkbox as Qo } from "@mui/material";
|
|
8
8
|
import "@r2wc/react-to-web-component";
|
|
@@ -698,16 +698,16 @@ function wi({ classNames: e = "", ...t }) {
|
|
|
698
698
|
notiprops: d,
|
|
699
699
|
isBrand: u,
|
|
700
700
|
logout: h
|
|
701
|
-
} = t, m =
|
|
701
|
+
} = t, m = {
|
|
702
702
|
...a,
|
|
703
703
|
color: (s == null ? void 0 : s.headerTextColor) || "white",
|
|
704
704
|
backgroundColor: (s == null ? void 0 : s.headerBgColor) || "black"
|
|
705
|
-
}, [
|
|
706
|
-
console.log("term",
|
|
707
|
-
const [
|
|
708
|
-
console.log("searchPermission",
|
|
709
|
-
const
|
|
710
|
-
|
|
705
|
+
}, [g, b] = G(!1), y = ve(null), { Term: l } = ei();
|
|
706
|
+
console.log("term", l);
|
|
707
|
+
const [f, v] = G(l || ""), w = yi({ baseUrl: o });
|
|
708
|
+
console.log("searchPermission", w.hasPermission);
|
|
709
|
+
const x = bi(o, f), S = We((p) => {
|
|
710
|
+
v(p);
|
|
711
711
|
}, []);
|
|
712
712
|
return /* @__PURE__ */ N(
|
|
713
713
|
ko,
|
|
@@ -727,11 +727,11 @@ function wi({ classNames: e = "", ...t }) {
|
|
|
727
727
|
"nav",
|
|
728
728
|
{
|
|
729
729
|
className: `navbar-wrapper ${e}`,
|
|
730
|
-
style: s ?
|
|
730
|
+
style: s ? m : a,
|
|
731
731
|
children: /* @__PURE__ */ N("div", { className: "navbar-container", children: [
|
|
732
|
-
/* @__PURE__ */ c("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ c("img", { src:
|
|
732
|
+
/* @__PURE__ */ c("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ c("img", { src: r || "#", alt: " ", style: { height: "40px" } }) }),
|
|
733
733
|
/* @__PURE__ */ N("div", { className: "right-side-container", children: [
|
|
734
|
-
u &&
|
|
734
|
+
u && w.hasPermission ? /* @__PURE__ */ c("span", { children: /* @__PURE__ */ N(
|
|
735
735
|
"label",
|
|
736
736
|
{
|
|
737
737
|
className: "topbar-search-label",
|
|
@@ -744,14 +744,14 @@ function wi({ classNames: e = "", ...t }) {
|
|
|
744
744
|
className: "topbar-search-input",
|
|
745
745
|
id: "GlobalSearchInput",
|
|
746
746
|
placeholder: "Search",
|
|
747
|
-
onChange: (
|
|
748
|
-
const
|
|
749
|
-
|
|
747
|
+
onChange: (p) => {
|
|
748
|
+
const _ = p.target.value;
|
|
749
|
+
S(_);
|
|
750
750
|
},
|
|
751
|
-
ref:
|
|
752
|
-
value:
|
|
753
|
-
onKeyDown: (
|
|
754
|
-
|
|
751
|
+
ref: y,
|
|
752
|
+
value: f,
|
|
753
|
+
onKeyDown: (p) => {
|
|
754
|
+
p.key === "Enter" && x();
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
),
|
|
@@ -794,7 +794,7 @@ function wi({ classNames: e = "", ...t }) {
|
|
|
794
794
|
primaryColor: s == null ? void 0 : s.headerTextColor,
|
|
795
795
|
avatarUrl: n == null ? void 0 : n.avatarUrl,
|
|
796
796
|
userName: n == null ? void 0 : n.firstName,
|
|
797
|
-
setShowConfirmModal:
|
|
797
|
+
setShowConfirmModal: b
|
|
798
798
|
}
|
|
799
799
|
),
|
|
800
800
|
/* @__PURE__ */ c(
|
|
@@ -823,8 +823,8 @@ function wi({ classNames: e = "", ...t }) {
|
|
|
823
823
|
/* @__PURE__ */ c(
|
|
824
824
|
$o,
|
|
825
825
|
{
|
|
826
|
-
isOpen:
|
|
827
|
-
onClose: () =>
|
|
826
|
+
isOpen: g,
|
|
827
|
+
onClose: () => b(!1),
|
|
828
828
|
onConfirm: h
|
|
829
829
|
}
|
|
830
830
|
)
|