@ukpc-lib/react 0.3.38 → 0.3.40
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.module-f5d39f55.js → index.module-0fdf0c6d.js} +17 -13
- package/dist/{index.module-880ac584.cjs → index.module-542d8ee5.cjs} +71 -71
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-b2dc9480.js → index-31298961.js} +1 -1
- package/web-components-bundle/{index-e820d563.cjs → index-6c2bc04a.cjs} +1 -1
- package/web-components-bundle/{index-e1e6639e.cjs → index-f36127fe.cjs} +1 -1
- package/web-components-bundle/{index-cd31e4a8.js → index-f9a0dd02.js} +17 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),p=require("../index.module-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),p=require("../index.module-542d8ee5.cjs"),K=require("moment"),Gt=require("axios"),N=require("@mui/material");require("@r2wc/react-to-web-component");const on=require("react-router-dom");function Xn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const L=Xn(j),Jn=e=>{var n,o;const{tabs:t}=e,r=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),s.jsxs(s.Fragment,{children:[s.jsx("style",{children:`
|
|
2
2
|
.tab-title {
|
|
3
3
|
min-width: 90px;
|
|
4
4
|
padding: 5px 16px;
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as N, Fragment as $e, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
3
|
import Co, { useState as G, useContext as xe, useEffect as Q, useRef as be, useCallback as bt, forwardRef as Oo, createElement as tr, PureComponent as No } from "react";
|
|
4
|
-
import { c as Ne, Q as $n, C as Te, p as Pt, u as hr, S as To, a as ko, L as $o, b as Pr, d as Io, e as mt, f as Mo, s as pt, _ as z, g as _e, P as k, h as he, i as Ao, o as Po, j as Ro, k as Do, l as Rr, m as In, n as xt, q as Dr, I as zo, r as Fo, t as zr, D as Lo, v as Mn, w as An, x as jo, y as Vo, z as Oe, A as Ho, B as gt } from "../index.module-
|
|
5
|
-
import { G as Nc, E as Tc, F as kc } from "../index.module-
|
|
4
|
+
import { c as Ne, Q as $n, C as Te, p as Pt, u as hr, S as To, a as ko, L as $o, b as Pr, d as Io, e as mt, f as Mo, s as pt, _ as z, g as _e, P as k, h as he, i as Ao, o as Po, j as Ro, k as Do, l as Rr, m as In, n as xt, q as Dr, I as zo, r as Fo, t as zr, D as Lo, v as Mn, w as An, x as jo, y as Vo, z as Oe, A as Ho, B as gt } from "../index.module-0fdf0c6d.js";
|
|
5
|
+
import { G as Nc, E as Tc, F as kc } from "../index.module-0fdf0c6d.js";
|
|
6
6
|
import Z from "moment";
|
|
7
7
|
import mr from "axios";
|
|
8
8
|
import { Stack as te, Dialog as Bo, DialogTitle as Wo, Typography as ge, DialogContent as Uo, DialogActions as qo, Button as Tt, Box as Yo, ClickAwayListener as Go, TextField as Pn, IconButton as Ko, CircularProgress as Zo, Fade as Xo, Paper as Jo, Checkbox as Qo } from "@mui/material";
|
|
@@ -20997,20 +20997,24 @@ function VD(t, e) {
|
|
|
20997
20997
|
).length;
|
|
20998
20998
|
}
|
|
20999
20999
|
function lw(t, e) {
|
|
21000
|
-
|
|
21001
|
-
|
|
21002
|
-
|
|
21003
|
-
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
|
|
21000
|
+
var p;
|
|
21001
|
+
const n = new URL(e);
|
|
21002
|
+
let i = t.filter((y) => y.path && y.path.includes("http")).map((y) => ({
|
|
21003
|
+
item: y,
|
|
21004
|
+
itemUrl: new URL(y.path),
|
|
21005
|
+
matchingParamsCount: VD(e, y.path)
|
|
21006
|
+
})).sort((y, T) => {
|
|
21007
|
+
const x = new URL(y.itemUrl).searchParams, O = new URL(T.itemUrl).searchParams;
|
|
21008
|
+
return Array.from(x).length - Array.from(O).length;
|
|
21009
|
+
}).filter(({ itemUrl: y }) => n.origin === y.origin);
|
|
21010
|
+
const r = i.filter(({ itemUrl: y }) => n.pathname === y.pathname), s = i.filter(({ itemUrl: y }) => n.pathname.includes(y.pathname));
|
|
21011
|
+
i = r.length > 0 ? r : s, i = i.sort((y, T) => T.matchingParamsCount - y.matchingParamsCount);
|
|
21012
|
+
let u = i.length > 0 ? (p = i.find((y) => y.item.parentKey)) == null ? void 0 : p.item : null;
|
|
21009
21013
|
console.log("matchingItems:", i);
|
|
21010
|
-
let
|
|
21011
|
-
for (;
|
|
21012
|
-
|
|
21013
|
-
return
|
|
21014
|
+
let g = [];
|
|
21015
|
+
for (; u; )
|
|
21016
|
+
g = [u, ...g], u = t.find((y) => y.id === (u == null ? void 0 : u.parentKey)) || null;
|
|
21017
|
+
return console.log("parents:", g), g;
|
|
21014
21018
|
}
|
|
21015
21019
|
function uw(t, e) {
|
|
21016
21020
|
return t.map((n) => (n.path && (n.path = e(n.path)), n.children && n.children.length > 0 && (n.children = uw(n.children, e)), n));
|