@ukpc-lib/react 0.10.9 → 0.10.10
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 +10 -10
- package/dist/components/index.js +93 -93
- package/package.json +2 -2
- 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-d4df3e8e.js → index-64a2d3b5.js} +9637 -9640
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as M, Fragment as de, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
3
|
import pe, { useState as H, useContext as Oe, useEffect as G, useRef as Ee, useCallback as At, forwardRef as Vo, createElement as an, PureComponent as Wo } from "react";
|
|
4
|
-
import { c as Le, a as
|
|
4
|
+
import { c as Le, a as yt, C as Fe, t as Qe, p as Uo, L as Gn, u as Ko, b as Yo, S as Go, d as qo, e as Zo, Q as Vr, f as Ct, g as Mn, h as Xo, s as It, _ as B, P as N, i as Se, j as Jo, o as Qo, k as $e, l as ei, m as ti, n as qn, q as Ot, r as Zn, I as ni, v as ri, w as Xn, D as oi, x as Wr, y as Ur, z as ii, A as ai, B as si, E as lt } from "../index.module-c243311a.js";
|
|
5
5
|
import { J as B1, G as V1, M as W1, F as U1, H as K1, K as Y1 } from "../index.module-c243311a.js";
|
|
6
6
|
import Q from "moment";
|
|
7
7
|
import { Stack as ie, Dialog as li, DialogTitle as ci, Typography as _e, DialogContent as ui, DialogActions as di, Button as Ft, Box as fi, ClickAwayListener as hi, TextField as Kr, IconButton as mi, CircularProgress as pi, Fade as gi, Paper as yi, Checkbox as bi } from "@mui/material";
|
|
@@ -81,7 +81,7 @@ const Si = (e) => {
|
|
|
81
81
|
setNotiData: n
|
|
82
82
|
}) => async () => {
|
|
83
83
|
var d;
|
|
84
|
-
const i = e + (t || "/notification-management/api/v1/notifications"), l = (d = (await
|
|
84
|
+
const i = e + (t || "/notification-management/api/v1/notifications"), l = (d = (await yt.get(i, {
|
|
85
85
|
params: {
|
|
86
86
|
// page: 1,
|
|
87
87
|
// notificationFilterType: 'all',
|
|
@@ -114,7 +114,7 @@ const Si = (e) => {
|
|
|
114
114
|
}, { setNotiData: h } = Oe(Fe), m = kn({ baseUrl: t, notiPath: n, setNotiData: h }), v = async (y, x) => {
|
|
115
115
|
try {
|
|
116
116
|
const S = n || `/notification-management/api/v1/notifications/${y}`, C = t + S;
|
|
117
|
-
await
|
|
117
|
+
await yt.put(C, { isRead: x });
|
|
118
118
|
} catch (S) {
|
|
119
119
|
console.log(S), c({
|
|
120
120
|
id: e.id,
|
|
@@ -274,7 +274,7 @@ const Si = (e) => {
|
|
|
274
274
|
const { setNotiData: l } = Oe(Fe), c = kn({ baseUrl: t, notiPath: n, setNotiData: l }), d = async () => {
|
|
275
275
|
try {
|
|
276
276
|
const m = t + (n || "/notification-management/api/v1/notifications");
|
|
277
|
-
await
|
|
277
|
+
await yt.put(m);
|
|
278
278
|
} catch (h) {
|
|
279
279
|
console.log(h);
|
|
280
280
|
}
|
|
@@ -650,7 +650,7 @@ const Ri = `@keyframes react-loading-skeleton{to{transform:translate(100%)}}.rea
|
|
|
650
650
|
const o = async () => {
|
|
651
651
|
const a = e + (t || "/user-management/api/v1/users/my-account/access-stella-search");
|
|
652
652
|
try {
|
|
653
|
-
const l = await
|
|
653
|
+
const l = await yt.get(a);
|
|
654
654
|
console.log("hasPermission data", l.data), r(l.data);
|
|
655
655
|
} catch (l) {
|
|
656
656
|
console.log(l);
|
|
@@ -1951,12 +1951,12 @@ function $a({
|
|
|
1951
1951
|
G(() => {
|
|
1952
1952
|
A(s);
|
|
1953
1953
|
const z = setTimeout(
|
|
1954
|
-
() => k(
|
|
1954
|
+
() => k(_t(s)),
|
|
1955
1955
|
0
|
|
1956
1956
|
);
|
|
1957
1957
|
return () => clearTimeout(z);
|
|
1958
1958
|
}, [s]), G(() => {
|
|
1959
|
-
(C == null ? void 0 : C.length) >= 3 ? e && (e == null ? void 0 : e.length) > 0 && k(
|
|
1959
|
+
(C == null ? void 0 : C.length) >= 3 ? e && (e == null ? void 0 : e.length) > 0 && k(e) : k([]);
|
|
1960
1960
|
}, [e]), G(() => {
|
|
1961
1961
|
b && C.length > 0 && !me && I.length === 0 && !W ? He(!0) : He(!1);
|
|
1962
1962
|
}, [me, b, W, C, I]), G(() => {
|
|
@@ -1971,13 +1971,13 @@ function $a({
|
|
|
1971
1971
|
a(z), Be(!0);
|
|
1972
1972
|
}, ze = (z) => {
|
|
1973
1973
|
let te = [];
|
|
1974
|
-
(z == null ? void 0 : z.length) > 0 && (te =
|
|
1974
|
+
(z == null ? void 0 : z.length) > 0 && (te = _t(z)), k(te), r(z, te), Pe(!1);
|
|
1975
1975
|
}, we = pe.useCallback(
|
|
1976
1976
|
n > 0 ? Ca((z) => ze(z), n) : (z) => ze(z),
|
|
1977
1977
|
[e]
|
|
1978
1978
|
), Ve = (z) => {
|
|
1979
1979
|
We(), i(z), A(z[p]), q(0);
|
|
1980
|
-
},
|
|
1980
|
+
}, _t = (z) => S.search(z, { limit: f }).map((te) => ({ ...te.item })).slice(0, f), on = ({ target: z }) => {
|
|
1981
1981
|
const te = z.value;
|
|
1982
1982
|
A(te), we(te), Pe(!0), W && oe(!1);
|
|
1983
1983
|
}, We = () => {
|
|
@@ -2916,7 +2916,7 @@ const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2916
2916
|
default: ve,
|
|
2917
2917
|
isPlainObject: Ae
|
|
2918
2918
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2919
|
-
function
|
|
2919
|
+
function ft(e) {
|
|
2920
2920
|
let t = "https://mui.com/production-error/?code=" + e;
|
|
2921
2921
|
for (let n = 1; n < arguments.length; n += 1)
|
|
2922
2922
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -2924,7 +2924,7 @@ function ht(e) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
const Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2926
2926
|
__proto__: null,
|
|
2927
|
-
default:
|
|
2927
|
+
default: ft
|
|
2928
2928
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2929
2929
|
var vn = { exports: {} }, F = {};
|
|
2930
2930
|
/**
|
|
@@ -3111,7 +3111,7 @@ const Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3111
3111
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3112
3112
|
function je(e) {
|
|
3113
3113
|
if (typeof e != "string")
|
|
3114
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
3114
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ft(7));
|
|
3115
3115
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3116
3116
|
}
|
|
3117
3117
|
const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3221,7 +3221,7 @@ process.env.NODE_ENV !== "production" && (N.node, N.object.isRequired);
|
|
|
3221
3221
|
function as(e) {
|
|
3222
3222
|
return is(e);
|
|
3223
3223
|
}
|
|
3224
|
-
var
|
|
3224
|
+
var bt = {}, ao = { exports: {} };
|
|
3225
3225
|
(function(e) {
|
|
3226
3226
|
function t(n) {
|
|
3227
3227
|
return n && n.__esModule ? n : {
|
|
@@ -3292,7 +3292,7 @@ function Sn(e, t) {
|
|
|
3292
3292
|
function ee(e, t) {
|
|
3293
3293
|
return e.charCodeAt(t) | 0;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function ht(e, t, n) {
|
|
3296
3296
|
return e.slice(t, n);
|
|
3297
3297
|
}
|
|
3298
3298
|
function ge(e) {
|
|
@@ -3311,7 +3311,7 @@ var Kt = 1, nt = 1, fo = 0, re = 0, J = 0, ot = "";
|
|
|
3311
3311
|
function Yt(e, t, n, r, o, i, a) {
|
|
3312
3312
|
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Kt, column: nt, length: a, return: "" };
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function ct(e, t) {
|
|
3315
3315
|
return gs(Yt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
3316
3316
|
}
|
|
3317
3317
|
function xs() {
|
|
@@ -3329,10 +3329,10 @@ function xe() {
|
|
|
3329
3329
|
function $t() {
|
|
3330
3330
|
return re;
|
|
3331
3331
|
}
|
|
3332
|
-
function
|
|
3333
|
-
return
|
|
3332
|
+
function vt(e, t) {
|
|
3333
|
+
return ht(ot, e, t);
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function mt(e) {
|
|
3336
3336
|
switch (e) {
|
|
3337
3337
|
case 0:
|
|
3338
3338
|
case 9:
|
|
@@ -3371,17 +3371,17 @@ function mo(e) {
|
|
|
3371
3371
|
return ot = "", e;
|
|
3372
3372
|
}
|
|
3373
3373
|
function Nt(e) {
|
|
3374
|
-
return uo(
|
|
3374
|
+
return uo(vt(re - 1, wn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3375
3375
|
}
|
|
3376
3376
|
function ws(e) {
|
|
3377
3377
|
for (; (J = xe()) && J < 33; )
|
|
3378
3378
|
le();
|
|
3379
|
-
return
|
|
3379
|
+
return mt(e) > 2 || mt(J) > 3 ? "" : " ";
|
|
3380
3380
|
}
|
|
3381
3381
|
function _s(e, t) {
|
|
3382
3382
|
for (; --t && le() && !(J < 48 || J > 102 || J > 57 && J < 65 || J > 70 && J < 97); )
|
|
3383
3383
|
;
|
|
3384
|
-
return
|
|
3384
|
+
return vt(e, $t() + (t < 6 && xe() == 32 && le() == 32));
|
|
3385
3385
|
}
|
|
3386
3386
|
function wn(e) {
|
|
3387
3387
|
for (; le(); )
|
|
@@ -3405,12 +3405,12 @@ function Es(e, t) {
|
|
|
3405
3405
|
for (; le() && e + J !== 47 + 10; )
|
|
3406
3406
|
if (e + J === 42 + 42 && xe() === 47)
|
|
3407
3407
|
break;
|
|
3408
|
-
return "/*" +
|
|
3408
|
+
return "/*" + vt(t, re - 1) + "*" + Ut(e === 47 ? e : le());
|
|
3409
3409
|
}
|
|
3410
3410
|
function Cs(e) {
|
|
3411
|
-
for (; !
|
|
3411
|
+
for (; !mt(xe()); )
|
|
3412
3412
|
le();
|
|
3413
|
-
return
|
|
3413
|
+
return vt(e, re);
|
|
3414
3414
|
}
|
|
3415
3415
|
function Is(e) {
|
|
3416
3416
|
return mo(Rt("", null, null, null, [""], e = ho(e), 0, [0], e));
|
|
@@ -3506,15 +3506,15 @@ function Rt(e, t, n, r, o, i, a, l, c) {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
function dr(e, t, n, r, o, i, a, l, c, d, f) {
|
|
3508
3508
|
for (var h = o - 1, m = o === 0 ? i : [""], v = Pn(m), p = 0, s = 0, g = 0; p < r; ++p)
|
|
3509
|
-
for (var b = 0, _ =
|
|
3509
|
+
for (var b = 0, _ = ht(e, h + 1, h = ps(s = a[p])), w = e; b < v; ++b)
|
|
3510
3510
|
(w = uo(s > 0 ? m[b] + " " + _ : P(_, /&\f/g, m[b]))) && (c[g++] = w);
|
|
3511
3511
|
return Yt(e, t, n, o === 0 ? Nn : l, c, d, f);
|
|
3512
3512
|
}
|
|
3513
3513
|
function Ts(e, t, n) {
|
|
3514
|
-
return Yt(e, t, n, lo, Ut(xs()),
|
|
3514
|
+
return Yt(e, t, n, lo, Ut(xs()), ht(e, 2, -2), 0);
|
|
3515
3515
|
}
|
|
3516
3516
|
function fr(e, t, n, r) {
|
|
3517
|
-
return Yt(e, t, n, Rn,
|
|
3517
|
+
return Yt(e, t, n, Rn, ht(e, 0, r), ht(e, r + 1, -1), r);
|
|
3518
3518
|
}
|
|
3519
3519
|
function et(e, t) {
|
|
3520
3520
|
for (var n = "", r = Pn(e), o = 0; o < r; o++)
|
|
@@ -3558,13 +3558,13 @@ function po(e) {
|
|
|
3558
3558
|
};
|
|
3559
3559
|
}
|
|
3560
3560
|
var Os = function(t, n, r) {
|
|
3561
|
-
for (var o = 0, i = 0; o = i, i = xe(), o === 38 && i === 12 && (n[r] = 1), !
|
|
3561
|
+
for (var o = 0, i = 0; o = i, i = xe(), o === 38 && i === 12 && (n[r] = 1), !mt(i); )
|
|
3562
3562
|
le();
|
|
3563
|
-
return
|
|
3563
|
+
return vt(t, re);
|
|
3564
3564
|
}, $s = function(t, n) {
|
|
3565
3565
|
var r = -1, o = 44;
|
|
3566
3566
|
do
|
|
3567
|
-
switch (
|
|
3567
|
+
switch (mt(o)) {
|
|
3568
3568
|
case 0:
|
|
3569
3569
|
o === 38 && xe() === 12 && (n[r] = 1), t[r] += Os(re - 1, n, r);
|
|
3570
3570
|
break;
|
|
@@ -3726,7 +3726,7 @@ var zs = function(t, n, r, o) {
|
|
|
3726
3726
|
t.return = go(t.value, t.length);
|
|
3727
3727
|
break;
|
|
3728
3728
|
case co:
|
|
3729
|
-
return et([
|
|
3729
|
+
return et([ct(t, {
|
|
3730
3730
|
value: P(t.value, "@", "@" + R)
|
|
3731
3731
|
})], o);
|
|
3732
3732
|
case Nn:
|
|
@@ -3735,15 +3735,15 @@ var zs = function(t, n, r, o) {
|
|
|
3735
3735
|
switch (bs(i, /(::plac\w+|:read-\w+)/)) {
|
|
3736
3736
|
case ":read-only":
|
|
3737
3737
|
case ":read-write":
|
|
3738
|
-
return et([
|
|
3738
|
+
return et([ct(t, {
|
|
3739
3739
|
props: [P(i, /:(read-\w+)/, ":" + Ht + "$1")]
|
|
3740
3740
|
})], o);
|
|
3741
3741
|
case "::placeholder":
|
|
3742
|
-
return et([
|
|
3742
|
+
return et([ct(t, {
|
|
3743
3743
|
props: [P(i, /:(plac\w+)/, ":" + R + "input-$1")]
|
|
3744
|
-
}),
|
|
3744
|
+
}), ct(t, {
|
|
3745
3745
|
props: [P(i, /:(plac\w+)/, ":" + Ht + "$1")]
|
|
3746
|
-
}),
|
|
3746
|
+
}), ct(t, {
|
|
3747
3747
|
props: [P(i, /:(plac\w+)/, ne + "input-$1")]
|
|
3748
3748
|
})], o);
|
|
3749
3749
|
}
|
|
@@ -3944,7 +3944,7 @@ function Fs() {
|
|
|
3944
3944
|
function Ve(T) {
|
|
3945
3945
|
return E(T) === r;
|
|
3946
3946
|
}
|
|
3947
|
-
function
|
|
3947
|
+
function _t(T) {
|
|
3948
3948
|
return E(T) === p;
|
|
3949
3949
|
}
|
|
3950
3950
|
function on(T) {
|
|
@@ -3962,7 +3962,7 @@ function Fs() {
|
|
|
3962
3962
|
function te(T) {
|
|
3963
3963
|
return E(T) === h;
|
|
3964
3964
|
}
|
|
3965
|
-
L.AsyncMode = y, L.ConcurrentMode = x, L.ContextConsumer = S, L.ContextProvider = C, L.Element = A, L.ForwardRef = I, L.Fragment = k, L.Lazy = O, L.Memo = q, L.Portal = W, L.Profiler = oe, L.StrictMode = me, L.Suspense = Pe, L.isAsyncMode = He, L.isConcurrentMode = Me, L.isContextConsumer = Be, L.isContextProvider = st, L.isElement = ze, L.isForwardRef = we, L.isFragment = Ve, L.isLazy =
|
|
3965
|
+
L.AsyncMode = y, L.ConcurrentMode = x, L.ContextConsumer = S, L.ContextProvider = C, L.Element = A, L.ForwardRef = I, L.Fragment = k, L.Lazy = O, L.Memo = q, L.Portal = W, L.Profiler = oe, L.StrictMode = me, L.Suspense = Pe, L.isAsyncMode = He, L.isConcurrentMode = Me, L.isContextConsumer = Be, L.isContextProvider = st, L.isElement = ze, L.isForwardRef = we, L.isFragment = Ve, L.isLazy = _t, L.isMemo = on, L.isPortal = We, L.isProfiler = Et, L.isStrictMode = z, L.isSuspense = te, L.isValidElementType = w, L.typeOf = E;
|
|
3966
3966
|
}()), L;
|
|
3967
3967
|
}
|
|
3968
3968
|
process.env.NODE_ENV === "production" ? _n.exports = Ls() : _n.exports = Fs();
|
|
@@ -4100,7 +4100,7 @@ var Us = {
|
|
|
4100
4100
|
}
|
|
4101
4101
|
return Us[t] !== 1 && !So(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
4102
4102
|
}, qs = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
4103
|
-
function
|
|
4103
|
+
function pt(e, t, n) {
|
|
4104
4104
|
if (n == null)
|
|
4105
4105
|
return "";
|
|
4106
4106
|
var r = n;
|
|
@@ -4135,7 +4135,7 @@ function gt(e, t, n) {
|
|
|
4135
4135
|
case "function": {
|
|
4136
4136
|
if (e !== void 0) {
|
|
4137
4137
|
var c = ye, d = n(e);
|
|
4138
|
-
return ye = c,
|
|
4138
|
+
return ye = c, pt(e, t, d);
|
|
4139
4139
|
}
|
|
4140
4140
|
break;
|
|
4141
4141
|
}
|
|
@@ -4150,7 +4150,7 @@ function Zs(e, t, n) {
|
|
|
4150
4150
|
var r = "";
|
|
4151
4151
|
if (Array.isArray(n))
|
|
4152
4152
|
for (var o = 0; o < n.length; o++)
|
|
4153
|
-
r +=
|
|
4153
|
+
r += pt(e, t, n[o]) + ";";
|
|
4154
4154
|
else
|
|
4155
4155
|
for (var i in n) {
|
|
4156
4156
|
var a = n[i];
|
|
@@ -4164,7 +4164,7 @@ function Zs(e, t, n) {
|
|
|
4164
4164
|
for (var c = 0; c < a.length; c++)
|
|
4165
4165
|
gr(a[c]) && (r += ln(i) + ":" + yr(i, a[c]) + ";");
|
|
4166
4166
|
else {
|
|
4167
|
-
var d =
|
|
4167
|
+
var d = pt(e, t, a);
|
|
4168
4168
|
switch (i) {
|
|
4169
4169
|
case "animation":
|
|
4170
4170
|
case "animationName": {
|
|
@@ -4187,13 +4187,13 @@ function Gt(e, t, n) {
|
|
|
4187
4187
|
ye = void 0;
|
|
4188
4188
|
var i = e[0];
|
|
4189
4189
|
if (i == null || i.raw === void 0)
|
|
4190
|
-
r = !1, o +=
|
|
4190
|
+
r = !1, o += pt(n, t, i);
|
|
4191
4191
|
else {
|
|
4192
4192
|
var a = i;
|
|
4193
4193
|
o += a[0];
|
|
4194
4194
|
}
|
|
4195
4195
|
for (var l = 1; l < e.length; l++)
|
|
4196
|
-
if (o +=
|
|
4196
|
+
if (o += pt(n, t, e[l]), r) {
|
|
4197
4197
|
var c = i;
|
|
4198
4198
|
o += c[l];
|
|
4199
4199
|
}
|
|
@@ -4643,7 +4643,7 @@ function Mo(e) {
|
|
|
4643
4643
|
const El = {
|
|
4644
4644
|
borderRadius: 4
|
|
4645
4645
|
}, Cl = El, Il = process.env.NODE_ENV !== "production" ? N.oneOfType([N.number, N.string, N.object, N.array]) : {}, Re = Il;
|
|
4646
|
-
function
|
|
4646
|
+
function dt(e, t) {
|
|
4647
4647
|
return t ? ve(e, t, {
|
|
4648
4648
|
clone: !1
|
|
4649
4649
|
// No need to clone deep, it's way faster.
|
|
@@ -4763,7 +4763,7 @@ const Al = {
|
|
|
4763
4763
|
const [t, n] = e.split(""), r = Al[t], o = Ol[n] || "";
|
|
4764
4764
|
return Array.isArray(o) ? o.map((i) => r + i) : [r + o];
|
|
4765
4765
|
}), Xt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Jt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Nl = [...Xt, ...Jt];
|
|
4766
|
-
function
|
|
4766
|
+
function xt(e, t, n, r) {
|
|
4767
4767
|
var o;
|
|
4768
4768
|
const i = (o = Zt(e, t, !1)) != null ? o : n;
|
|
4769
4769
|
return typeof i == "number" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`), i * a) : Array.isArray(i) ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && (Number.isInteger(a) ? a > i.length - 1 && console.error([`MUI: The value provided (${a}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${a} > ${i.length - 1}, you need to add the missing values.`].join(`
|
|
@@ -4773,16 +4773,16 @@ function St(e, t, n, r) {
|
|
|
4773
4773
|
});
|
|
4774
4774
|
}
|
|
4775
4775
|
function ko(e) {
|
|
4776
|
-
return
|
|
4776
|
+
return xt(e, "spacing", 8, "spacing");
|
|
4777
4777
|
}
|
|
4778
|
-
function
|
|
4778
|
+
function St(e, t) {
|
|
4779
4779
|
if (typeof t == "string" || t == null)
|
|
4780
4780
|
return t;
|
|
4781
4781
|
const n = Math.abs(t), r = e(n);
|
|
4782
4782
|
return t >= 0 ? r : typeof r == "number" ? -r : `-${r}`;
|
|
4783
4783
|
}
|
|
4784
4784
|
function Rl(e, t) {
|
|
4785
|
-
return (n) => e.reduce((r, o) => (r[o] =
|
|
4785
|
+
return (n) => e.reduce((r, o) => (r[o] = St(t, n), r), {});
|
|
4786
4786
|
}
|
|
4787
4787
|
function Pl(e, t, n, r) {
|
|
4788
4788
|
if (t.indexOf(n) === -1)
|
|
@@ -4792,7 +4792,7 @@ function Pl(e, t, n, r) {
|
|
|
4792
4792
|
}
|
|
4793
4793
|
function Ao(e, t) {
|
|
4794
4794
|
const n = ko(e.theme);
|
|
4795
|
-
return Object.keys(e).map((r) => Pl(e, t, r, n)).reduce(
|
|
4795
|
+
return Object.keys(e).map((r) => Pl(e, t, r, n)).reduce(dt, {});
|
|
4796
4796
|
}
|
|
4797
4797
|
function K(e) {
|
|
4798
4798
|
return Ao(e, Xt);
|
|
@@ -4819,7 +4819,7 @@ function zl(e = 8) {
|
|
|
4819
4819
|
function Qt(...e) {
|
|
4820
4820
|
const t = e.reduce((r, o) => (o.filterProps.forEach((i) => {
|
|
4821
4821
|
r[i] = o;
|
|
4822
|
-
}), r), {}), n = (r) => Object.keys(r).reduce((o, i) => t[i] ?
|
|
4822
|
+
}), r), {}), n = (r) => Object.keys(r).reduce((o, i) => t[i] ? dt(o, t[i](r)) : o, {});
|
|
4823
4823
|
return n.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((r, o) => Object.assign(r, o.propTypes), {}) : {}, n.filterProps = e.reduce((r, o) => r.concat(o.filterProps), []), n;
|
|
4824
4824
|
}
|
|
4825
4825
|
function ue(e) {
|
|
@@ -4834,8 +4834,8 @@ function he(e, t) {
|
|
|
4834
4834
|
}
|
|
4835
4835
|
const Dl = he("border", ue), Ll = he("borderTop", ue), Fl = he("borderRight", ue), jl = he("borderBottom", ue), Hl = he("borderLeft", ue), Bl = he("borderColor"), Vl = he("borderTopColor"), Wl = he("borderRightColor"), Ul = he("borderBottomColor"), Kl = he("borderLeftColor"), Yl = he("outline", ue), Gl = he("outlineColor"), en = (e) => {
|
|
4836
4836
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
4837
|
-
const t =
|
|
4838
|
-
borderRadius:
|
|
4837
|
+
const t = xt(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({
|
|
4838
|
+
borderRadius: St(t, r)
|
|
4839
4839
|
});
|
|
4840
4840
|
return Ie(e, e.borderRadius, n);
|
|
4841
4841
|
}
|
|
@@ -4848,8 +4848,8 @@ en.filterProps = ["borderRadius"];
|
|
|
4848
4848
|
Qt(Dl, Ll, Fl, jl, Hl, Bl, Vl, Wl, Ul, Kl, en, Yl, Gl);
|
|
4849
4849
|
const tn = (e) => {
|
|
4850
4850
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
4851
|
-
const t =
|
|
4852
|
-
gap:
|
|
4851
|
+
const t = xt(e.theme, "spacing", 8, "gap"), n = (r) => ({
|
|
4852
|
+
gap: St(t, r)
|
|
4853
4853
|
});
|
|
4854
4854
|
return Ie(e, e.gap, n);
|
|
4855
4855
|
}
|
|
@@ -4861,8 +4861,8 @@ tn.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4861
4861
|
tn.filterProps = ["gap"];
|
|
4862
4862
|
const nn = (e) => {
|
|
4863
4863
|
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
4864
|
-
const t =
|
|
4865
|
-
columnGap:
|
|
4864
|
+
const t = xt(e.theme, "spacing", 8, "columnGap"), n = (r) => ({
|
|
4865
|
+
columnGap: St(t, r)
|
|
4866
4866
|
});
|
|
4867
4867
|
return Ie(e, e.columnGap, n);
|
|
4868
4868
|
}
|
|
@@ -4874,8 +4874,8 @@ nn.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4874
4874
|
nn.filterProps = ["columnGap"];
|
|
4875
4875
|
const rn = (e) => {
|
|
4876
4876
|
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
4877
|
-
const t =
|
|
4878
|
-
rowGap:
|
|
4877
|
+
const t = xt(e.theme, "spacing", 8, "rowGap"), n = (r) => ({
|
|
4878
|
+
rowGap: St(t, r)
|
|
4879
4879
|
});
|
|
4880
4880
|
return Ie(e, e.rowGap, n);
|
|
4881
4881
|
}
|
|
@@ -5258,7 +5258,7 @@ const h0 = {
|
|
|
5258
5258
|
cssProperty: !1,
|
|
5259
5259
|
themeKey: "typography"
|
|
5260
5260
|
}
|
|
5261
|
-
},
|
|
5261
|
+
}, wt = h0;
|
|
5262
5262
|
function m0(...e) {
|
|
5263
5263
|
const t = e.reduce((r, o) => r.concat(Object.keys(o)), []), n = new Set(t);
|
|
5264
5264
|
return e.every((r) => n.size === Object.keys(r).length);
|
|
@@ -5304,7 +5304,7 @@ function Oo() {
|
|
|
5304
5304
|
} = n || {};
|
|
5305
5305
|
if (!o)
|
|
5306
5306
|
return null;
|
|
5307
|
-
const a = (r = i.unstable_sxConfig) != null ? r :
|
|
5307
|
+
const a = (r = i.unstable_sxConfig) != null ? r : wt;
|
|
5308
5308
|
function l(c) {
|
|
5309
5309
|
let d = c;
|
|
5310
5310
|
if (typeof c == "function")
|
|
@@ -5320,7 +5320,7 @@ function Oo() {
|
|
|
5320
5320
|
if (p != null)
|
|
5321
5321
|
if (typeof p == "object")
|
|
5322
5322
|
if (a[v])
|
|
5323
|
-
m =
|
|
5323
|
+
m = dt(m, e(v, p, i, a));
|
|
5324
5324
|
else {
|
|
5325
5325
|
const s = Ie({
|
|
5326
5326
|
theme: i
|
|
@@ -5330,10 +5330,10 @@ function Oo() {
|
|
|
5330
5330
|
m0(s, p) ? m[v] = t({
|
|
5331
5331
|
sx: p,
|
|
5332
5332
|
theme: i
|
|
5333
|
-
}) : m =
|
|
5333
|
+
}) : m = dt(m, s);
|
|
5334
5334
|
}
|
|
5335
5335
|
else
|
|
5336
|
-
m =
|
|
5336
|
+
m = dt(m, e(v, p, i, a));
|
|
5337
5337
|
}), Ml(h, m);
|
|
5338
5338
|
}
|
|
5339
5339
|
return Array.isArray(o) ? o.map(l) : l(o);
|
|
@@ -5368,7 +5368,7 @@ function Ro(e = {}, ...t) {
|
|
|
5368
5368
|
spacing: c,
|
|
5369
5369
|
shape: B({}, Cl, i)
|
|
5370
5370
|
}, a);
|
|
5371
|
-
return d.applyStyles = No, d = t.reduce((f, h) => ve(f, h), d), d.unstable_sxConfig = B({},
|
|
5371
|
+
return d.applyStyles = No, d = t.reduce((f, h) => ve(f, h), d), d.unstable_sxConfig = B({}, wt, a == null ? void 0 : a.unstable_sxConfig), d.unstable_sx = function(h) {
|
|
5372
5372
|
return Bn({
|
|
5373
5373
|
sx: h,
|
|
5374
5374
|
theme: this
|
|
@@ -5385,7 +5385,7 @@ const y0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5385
5385
|
const r = {
|
|
5386
5386
|
systemProps: {},
|
|
5387
5387
|
otherProps: {}
|
|
5388
|
-
}, o = (t = e == null || (n = e.theme) == null ? void 0 : n.unstable_sxConfig) != null ? t :
|
|
5388
|
+
}, o = (t = e == null || (n = e.theme) == null ? void 0 : n.unstable_sxConfig) != null ? t : wt;
|
|
5389
5389
|
return Object.keys(e).forEach((i) => {
|
|
5390
5390
|
o[i] ? r.systemProps[i] = e[i] : r.otherProps[i] = e[i];
|
|
5391
5391
|
}), r;
|
|
@@ -5410,15 +5410,15 @@ const w0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5410
5410
|
default: Bn,
|
|
5411
5411
|
extendSxProp: S0,
|
|
5412
5412
|
unstable_createStyleFunctionSx: Oo,
|
|
5413
|
-
unstable_defaultSxConfig:
|
|
5413
|
+
unstable_defaultSxConfig: wt
|
|
5414
5414
|
}, Symbol.toStringTag, { value: "Module" })), _0 = /* @__PURE__ */ Se(w0);
|
|
5415
5415
|
var it = so;
|
|
5416
|
-
Object.defineProperty(
|
|
5416
|
+
Object.defineProperty(bt, "__esModule", {
|
|
5417
5417
|
value: !0
|
|
5418
5418
|
});
|
|
5419
|
-
var E0 =
|
|
5420
|
-
|
|
5421
|
-
|
|
5419
|
+
var E0 = bt.default = L0;
|
|
5420
|
+
bt.shouldForwardProp = Pt;
|
|
5421
|
+
bt.systemDefaultTheme = void 0;
|
|
5422
5422
|
var ce = it(ss), Tn = it(ls), Cr = N0(bl), C0 = vl, I0 = it(xl), T0 = it(Sl), M0 = it(b0), k0 = it(_0);
|
|
5423
5423
|
const A0 = ["ownerState"], O0 = ["variants"], $0 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
5424
5424
|
function Po(e) {
|
|
@@ -5457,7 +5457,7 @@ function P0(e) {
|
|
|
5457
5457
|
function Pt(e) {
|
|
5458
5458
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
5459
5459
|
}
|
|
5460
|
-
const z0 =
|
|
5460
|
+
const z0 = bt.systemDefaultTheme = (0, M0.default)(), Ir = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
5461
5461
|
function kt({
|
|
5462
5462
|
defaultTheme: e,
|
|
5463
5463
|
theme: t,
|
|
@@ -5770,7 +5770,7 @@ function Q0(e, t, n, r = 1) {
|
|
|
5770
5770
|
const ec = {
|
|
5771
5771
|
black: "#000",
|
|
5772
5772
|
white: "#fff"
|
|
5773
|
-
},
|
|
5773
|
+
}, gt = ec, tc = {
|
|
5774
5774
|
50: "#fafafa",
|
|
5775
5775
|
100: "#f5f5f5",
|
|
5776
5776
|
200: "#eeeeee",
|
|
@@ -5830,7 +5830,7 @@ const ec = {
|
|
|
5830
5830
|
A200: "#ffab40",
|
|
5831
5831
|
A400: "#ff9100",
|
|
5832
5832
|
A700: "#ff6d00"
|
|
5833
|
-
},
|
|
5833
|
+
}, ut = ic, ac = {
|
|
5834
5834
|
50: "#e3f2fd",
|
|
5835
5835
|
100: "#bbdefb",
|
|
5836
5836
|
200: "#90caf9",
|
|
@@ -5890,8 +5890,8 @@ const ec = {
|
|
|
5890
5890
|
// The background colors used to style the surfaces.
|
|
5891
5891
|
// Consistency between these values is important.
|
|
5892
5892
|
background: {
|
|
5893
|
-
paper:
|
|
5894
|
-
default:
|
|
5893
|
+
paper: gt.white,
|
|
5894
|
+
default: gt.white
|
|
5895
5895
|
},
|
|
5896
5896
|
// The colors used to style the action elements.
|
|
5897
5897
|
action: {
|
|
@@ -5914,7 +5914,7 @@ const ec = {
|
|
|
5914
5914
|
}
|
|
5915
5915
|
}, cn = {
|
|
5916
5916
|
text: {
|
|
5917
|
-
primary:
|
|
5917
|
+
primary: gt.white,
|
|
5918
5918
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
5919
5919
|
disabled: "rgba(255, 255, 255, 0.5)",
|
|
5920
5920
|
icon: "rgba(255, 255, 255, 0.5)"
|
|
@@ -5925,7 +5925,7 @@ const ec = {
|
|
|
5925
5925
|
default: "#121212"
|
|
5926
5926
|
},
|
|
5927
5927
|
action: {
|
|
5928
|
-
active:
|
|
5928
|
+
active: gt.white,
|
|
5929
5929
|
hover: "rgba(255, 255, 255, 0.08)",
|
|
5930
5930
|
hoverOpacity: 0.08,
|
|
5931
5931
|
selected: "rgba(255, 255, 255, 0.16)",
|
|
@@ -5999,14 +5999,14 @@ function mc(e = "light") {
|
|
|
5999
5999
|
}
|
|
6000
6000
|
function pc(e = "light") {
|
|
6001
6001
|
return e === "dark" ? {
|
|
6002
|
-
main:
|
|
6003
|
-
light:
|
|
6004
|
-
dark:
|
|
6002
|
+
main: ut[400],
|
|
6003
|
+
light: ut[300],
|
|
6004
|
+
dark: ut[700]
|
|
6005
6005
|
} : {
|
|
6006
6006
|
main: "#ed6c02",
|
|
6007
6007
|
// closest to orange[800] that pass 3:1.
|
|
6008
|
-
light:
|
|
6009
|
-
dark:
|
|
6008
|
+
light: ut[500],
|
|
6009
|
+
dark: ut[900]
|
|
6010
6010
|
};
|
|
6011
6011
|
}
|
|
6012
6012
|
function gc(e) {
|
|
@@ -6033,7 +6033,7 @@ function gc(e) {
|
|
|
6033
6033
|
}) => {
|
|
6034
6034
|
if (s = B({}, s), !s.main && s[b] && (s.main = s[b]), !s.hasOwnProperty("main"))
|
|
6035
6035
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid.
|
|
6036
|
-
The color object needs to have a \`main\` property or a \`${b}\` property.` :
|
|
6036
|
+
The color object needs to have a \`main\` property or a \`${b}\` property.` : ft(11, g ? ` (${g})` : "", b));
|
|
6037
6037
|
if (typeof s.main != "string")
|
|
6038
6038
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid.
|
|
6039
6039
|
\`color.main\` should be a string, but \`${JSON.stringify(s.main)}\` was provided instead.
|
|
@@ -6048,7 +6048,7 @@ const theme1 = createTheme({ palette: {
|
|
|
6048
6048
|
|
|
6049
6049
|
const theme2 = createTheme({ palette: {
|
|
6050
6050
|
primary: { main: green[500] },
|
|
6051
|
-
} });` :
|
|
6051
|
+
} });` : ft(12, g ? ` (${g})` : "", JSON.stringify(s.main)));
|
|
6052
6052
|
return Ar(s, "light", _, r), Ar(s, "dark", w, r), s.contrastText || (s.contrastText = h(s.main)), s;
|
|
6053
6053
|
}, v = {
|
|
6054
6054
|
dark: cn,
|
|
@@ -6056,7 +6056,7 @@ const theme2 = createTheme({ palette: {
|
|
|
6056
6056
|
};
|
|
6057
6057
|
return process.env.NODE_ENV !== "production" && (v[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ve(B({
|
|
6058
6058
|
// A collection of common colors.
|
|
6059
|
-
common: B({},
|
|
6059
|
+
common: B({}, gt),
|
|
6060
6060
|
// prevent mutable object.
|
|
6061
6061
|
// The palette mode, can be light or dark.
|
|
6062
6062
|
mode: t,
|
|
@@ -6254,7 +6254,7 @@ function Nc(e = {}, ...t) {
|
|
|
6254
6254
|
typography: i = {}
|
|
6255
6255
|
} = e, a = $e(e, $c);
|
|
6256
6256
|
if (e.vars)
|
|
6257
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." :
|
|
6257
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : ft(18));
|
|
6258
6258
|
const l = gc(r), c = Ro(e);
|
|
6259
6259
|
let d = ve(c, {
|
|
6260
6260
|
mixins: F0(c.breakpoints, n),
|
|
@@ -6289,7 +6289,7 @@ function Nc(e = {}, ...t) {
|
|
|
6289
6289
|
v && m.indexOf("Mui") === 0 && h(v, m);
|
|
6290
6290
|
});
|
|
6291
6291
|
}
|
|
6292
|
-
return d.unstable_sxConfig = B({},
|
|
6292
|
+
return d.unstable_sxConfig = B({}, wt, a == null ? void 0 : a.unstable_sxConfig), d.unstable_sx = function(h) {
|
|
6293
6293
|
return Bn({
|
|
6294
6294
|
sx: h,
|
|
6295
6295
|
theme: this
|
|
@@ -7495,7 +7495,7 @@ const Br = (e) => {
|
|
|
7495
7495
|
console.log("current token for client: ", r);
|
|
7496
7496
|
try {
|
|
7497
7497
|
const o = "/notification-management/api/v1/notifications/registrations", i = e.baseUrl + o;
|
|
7498
|
-
await
|
|
7498
|
+
await yt.post(
|
|
7499
7499
|
i,
|
|
7500
7500
|
{
|
|
7501
7501
|
deviceToken: r
|
|
@@ -7551,9 +7551,9 @@ const Br = (e) => {
|
|
|
7551
7551
|
console.log(t);
|
|
7552
7552
|
const { setNotiData: r } = Oe(Fe);
|
|
7553
7553
|
function o() {
|
|
7554
|
-
const i = /* @__PURE__ */ M("div", { className:
|
|
7555
|
-
/* @__PURE__ */ u("h6", { className:
|
|
7556
|
-
/* @__PURE__ */ M("div", { className:
|
|
7554
|
+
const i = /* @__PURE__ */ M("div", { className: lt["notification-massage_content"], children: [
|
|
7555
|
+
/* @__PURE__ */ u("h6", { className: lt["notification-name"], children: t == null ? void 0 : t.actorName }),
|
|
7556
|
+
/* @__PURE__ */ M("div", { className: lt["notification-message_service"], children: [
|
|
7557
7557
|
/* @__PURE__ */ M("span", { children: [
|
|
7558
7558
|
`${t == null ? void 0 : t.message} `,
|
|
7559
7559
|
" "
|
|
@@ -7564,7 +7564,7 @@ const Br = (e) => {
|
|
|
7564
7564
|
return /* @__PURE__ */ u(de, { children: t != null && t.contextUrl ? /* @__PURE__ */ u(
|
|
7565
7565
|
"a",
|
|
7566
7566
|
{
|
|
7567
|
-
className:
|
|
7567
|
+
className: lt["notification-massage_container"],
|
|
7568
7568
|
href: t.contextUrl,
|
|
7569
7569
|
style: { width: "100%", display: "block" },
|
|
7570
7570
|
children: i
|
|
@@ -7572,7 +7572,7 @@ const Br = (e) => {
|
|
|
7572
7572
|
) : /* @__PURE__ */ u(
|
|
7573
7573
|
"div",
|
|
7574
7574
|
{
|
|
7575
|
-
className:
|
|
7575
|
+
className: lt["notification-massage_container"],
|
|
7576
7576
|
style: { width: "100%", display: "block" },
|
|
7577
7577
|
children: i
|
|
7578
7578
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukpc-lib/react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/",
|
|
7
7
|
"module": "./dist/",
|
|
@@ -112,4 +112,4 @@
|
|
|
112
112
|
"author": "Thinh Phung",
|
|
113
113
|
"description": "React components library",
|
|
114
114
|
"license": "ISC"
|
|
115
|
-
}
|
|
115
|
+
}
|