@ukpc-lib/react 0.2.11 → 0.2.12
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/Colors-4ad88021.js +29 -0
- package/dist/Colors-51ce6654.cjs +1 -0
- package/dist/components/index.cjs +25 -25
- package/dist/components/index.js +43 -42
- package/dist/{index.module-1e1600c5.js → index.module-91685508.js} +1161 -1196
- package/dist/{index.module-1924da8e.cjs → index.module-dcaddd18.cjs} +35 -35
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +14 -14
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +577 -0
- package/package.json +8 -2
- 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-178bf236.cjs → index-0c76b789.cjs} +68 -68
- package/web-components-bundle/{index-75324537.js → index-200424a6.js} +18 -28
- package/web-components-bundle/{index-374bf205.cjs → index-661a7bdb.cjs} +1 -1
- package/web-components-bundle/{index-1b59168e.js → index-fb164b1a.js} +5922 -5925
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as Kn, p as Xn, a as Yc, b as Gc, L as ao, u as qc, i as Kc, g as Xc, Q as pa, R as Zc, l as Jc, c as An, s as kn, t as Rr, _ as W, d as st, P as R, e as Fe, f as Qc, o as eu, h as tu, j as nu, k as lo, I as ru, m as iu, n as co, D as ou, q as ma, r as ga, v as su, w as au, x as ut, B as lu } from "../index.module-91685508.js";
|
|
2
|
+
import { y as t5, z as n5 } from "../index.module-91685508.js";
|
|
3
3
|
import { jsxs as k, Fragment as gn, jsx as g } from "react/jsx-runtime";
|
|
4
4
|
import * as N from "react";
|
|
5
|
-
import
|
|
5
|
+
import ya, { useContext as ie, useState as K, useEffect as be, useRef as ze, createContext as jt, useLayoutEffect as xi, useInsertionEffect as cu, useCallback as Qt, useMemo as fr, forwardRef as va, createElement as en, useId as uu, PureComponent as du } from "react";
|
|
6
|
+
import { c as ba } from "../Colors-4ad88021.js";
|
|
6
7
|
import ue from "moment";
|
|
7
8
|
import an from "axios";
|
|
8
9
|
import "@r2wc/react-to-web-component";
|
|
@@ -108,7 +109,7 @@ const _u = (e) => {
|
|
|
108
109
|
display: "flex",
|
|
109
110
|
width: "100%",
|
|
110
111
|
height: "50px",
|
|
111
|
-
borderBottom: `1px solid ${
|
|
112
|
+
borderBottom: `1px solid ${ba.grey200}`
|
|
112
113
|
},
|
|
113
114
|
className: "tab-container__title",
|
|
114
115
|
children: t.map((r, i) => /* @__PURE__ */ g(
|
|
@@ -382,7 +383,7 @@ function ku({
|
|
|
382
383
|
style: {
|
|
383
384
|
position: "absolute",
|
|
384
385
|
top: "18px",
|
|
385
|
-
background: `${
|
|
386
|
+
background: `${ba.dangerDark}`,
|
|
386
387
|
width: "13px",
|
|
387
388
|
height: "13px",
|
|
388
389
|
border: "1px solid #fff",
|
|
@@ -515,7 +516,7 @@ function Vu(e) {
|
|
|
515
516
|
}
|
|
516
517
|
);
|
|
517
518
|
}
|
|
518
|
-
function
|
|
519
|
+
function z3({
|
|
519
520
|
logo: e,
|
|
520
521
|
user: t,
|
|
521
522
|
baseUrl: n,
|
|
@@ -1279,8 +1280,8 @@ var Da = N.forwardRef(function(e, t) {
|
|
|
1279
1280
|
});
|
|
1280
1281
|
Da.displayName = "SimpleBar";
|
|
1281
1282
|
const xd = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
1282
|
-
`,
|
|
1283
|
-
|
|
1283
|
+
`, F3 = (e) => /* @__PURE__ */ g(
|
|
1284
|
+
pa,
|
|
1284
1285
|
{
|
|
1285
1286
|
autoClose: 3e3,
|
|
1286
1287
|
hideProgressBar: !0,
|
|
@@ -1430,7 +1431,7 @@ function kd({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1430
1431
|
n(i, a, Cd(p, h.visualElement, l), p, u, h.visualElement)
|
|
1431
1432
|
);
|
|
1432
1433
|
}
|
|
1433
|
-
const o =
|
|
1434
|
+
const o = va(s);
|
|
1434
1435
|
return o[Ad] = i, o;
|
|
1435
1436
|
}
|
|
1436
1437
|
function Od({ layoutId: e }) {
|
|
@@ -4183,7 +4184,7 @@ const Kt = {
|
|
|
4183
4184
|
return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), s(i);
|
|
4184
4185
|
}
|
|
4185
4186
|
};
|
|
4186
|
-
class _h extends
|
|
4187
|
+
class _h extends ya.Component {
|
|
4187
4188
|
/**
|
|
4188
4189
|
* This only mounts projection nodes for components that
|
|
4189
4190
|
* need measuring, we might want to do it for all components
|
|
@@ -4225,7 +4226,7 @@ class _h extends va.Component {
|
|
|
4225
4226
|
}
|
|
4226
4227
|
function Wl(e) {
|
|
4227
4228
|
const [t, n] = Ch(), r = ie($a);
|
|
4228
|
-
return
|
|
4229
|
+
return ya.createElement(_h, { ...e, layoutGroup: r, switchLayoutGroup: ie(za), isPresent: t, safeToRemove: n });
|
|
4229
4230
|
}
|
|
4230
4231
|
const Ph = {
|
|
4231
4232
|
borderRadius: {
|
|
@@ -5843,7 +5844,7 @@ function B1(e) {
|
|
|
5843
5844
|
(s = i.children) != null && s.length && (r[i.id] = !0);
|
|
5844
5845
|
}), r;
|
|
5845
5846
|
}
|
|
5846
|
-
function
|
|
5847
|
+
function B3(e) {
|
|
5847
5848
|
return /* @__PURE__ */ g(
|
|
5848
5849
|
Ea,
|
|
5849
5850
|
{
|
|
@@ -5853,7 +5854,7 @@ function j3(e) {
|
|
|
5853
5854
|
}
|
|
5854
5855
|
);
|
|
5855
5856
|
}
|
|
5856
|
-
const
|
|
5857
|
+
const W3 = ({ children: e }) => /* @__PURE__ */ k(
|
|
5857
5858
|
Me,
|
|
5858
5859
|
{
|
|
5859
5860
|
justifyContent: "center",
|
|
@@ -6199,7 +6200,7 @@ function Y1(e) {
|
|
|
6199
6200
|
}, []);
|
|
6200
6201
|
return { value: t, setValue: n, setTrue: r, setFalse: i, toggle: s };
|
|
6201
6202
|
}
|
|
6202
|
-
function
|
|
6203
|
+
function H3(e) {
|
|
6203
6204
|
var t;
|
|
6204
6205
|
return /* @__PURE__ */ k(mu, { ...e.dialogProps, open: e.open, children: [
|
|
6205
6206
|
!e.hideTitle && /* @__PURE__ */ k(
|
|
@@ -6253,7 +6254,7 @@ function W3(e) {
|
|
|
6253
6254
|
)
|
|
6254
6255
|
] });
|
|
6255
6256
|
}
|
|
6256
|
-
function
|
|
6257
|
+
function U3(e) {
|
|
6257
6258
|
const t = Y1(typeof e == "boolean" ? e : void 0);
|
|
6258
6259
|
return {
|
|
6259
6260
|
setTrue: t.setTrue,
|
|
@@ -6262,7 +6263,7 @@ function H3(e) {
|
|
|
6262
6263
|
onConfirm: typeof e != "boolean" ? e == null ? void 0 : e.onConfirm : void 0
|
|
6263
6264
|
};
|
|
6264
6265
|
}
|
|
6265
|
-
const
|
|
6266
|
+
const Y3 = () => /* @__PURE__ */ g("div", { className: kn["page-container"], children: /* @__PURE__ */ k("div", { className: kn["page-main-content"], children: [
|
|
6266
6267
|
/* @__PURE__ */ g(G1, {}),
|
|
6267
6268
|
/* @__PURE__ */ k("div", { className: "flex flex-col gap-[8px] items-center justify-center text-center", children: [
|
|
6268
6269
|
/* @__PURE__ */ g("h2", { className: kn["page-title"], children: Rr("components.unauthorizedPage.title") }),
|
|
@@ -8574,7 +8575,7 @@ var Ne, Ft = function(t, n, r) {
|
|
|
8574
8575
|
);
|
|
8575
8576
|
process.env.NODE_ENV !== "production" && (to.displayName = "EmotionCacheContext");
|
|
8576
8577
|
var s2 = to.Provider, Dr = function(t) {
|
|
8577
|
-
return /* @__PURE__ */
|
|
8578
|
+
return /* @__PURE__ */ va(function(n, r) {
|
|
8578
8579
|
var i = ie(to);
|
|
8579
8580
|
return t(n, i, r);
|
|
8580
8581
|
});
|
|
@@ -10716,7 +10717,7 @@ const dr = 37, S3 = (e, t) => {
|
|
|
10716
10717
|
const a = o.offsetHeight;
|
|
10717
10718
|
return document.body.removeChild(o), a > 21 ? dr + 21 : dr;
|
|
10718
10719
|
};
|
|
10719
|
-
function
|
|
10720
|
+
function G3(e) {
|
|
10720
10721
|
const [t, n] = K(!1), [r, i] = K(""), [s, o] = K(""), [a, l] = K(!1), { isRequired: c = !1 } = e, d = Qt(
|
|
10721
10722
|
lo.debounce((S) => {
|
|
10722
10723
|
var v;
|
|
@@ -10726,7 +10727,7 @@ function Y3(e) {
|
|
|
10726
10727
|
), u = () => {
|
|
10727
10728
|
n(!t);
|
|
10728
10729
|
}, h = () => {
|
|
10729
|
-
n(!1);
|
|
10730
|
+
n(!1), o(""), d("");
|
|
10730
10731
|
};
|
|
10731
10732
|
be(() => {
|
|
10732
10733
|
i(e.value ? e.getOptionLabel(e.value) : "");
|
|
@@ -10941,7 +10942,7 @@ function Y3(e) {
|
|
|
10941
10942
|
}
|
|
10942
10943
|
);
|
|
10943
10944
|
}
|
|
10944
|
-
function
|
|
10945
|
+
function q3(e) {
|
|
10945
10946
|
var d;
|
|
10946
10947
|
const { listProps: t } = e, [n, r] = K({
|
|
10947
10948
|
initLoading: !e.disabled,
|
|
@@ -11112,7 +11113,7 @@ function E3(e) {
|
|
|
11112
11113
|
);
|
|
11113
11114
|
}
|
|
11114
11115
|
const C3 = "Reset date";
|
|
11115
|
-
function
|
|
11116
|
+
function K3(e) {
|
|
11116
11117
|
var o, a;
|
|
11117
11118
|
const [t, n] = K(e.value), r = !(t != null && t.startDate) || !t.endDate ? "" : ue(t.startDate).format("DD/MM/YYYY") + " - " + ue(t.endDate).format("DD/MM/YYYY"), i = ze(Date.now()), s = () => {
|
|
11118
11119
|
i.current = Date.now();
|
|
@@ -11178,7 +11179,7 @@ function q3(e) {
|
|
|
11178
11179
|
i.current
|
|
11179
11180
|
);
|
|
11180
11181
|
}
|
|
11181
|
-
function
|
|
11182
|
+
function X3(e) {
|
|
11182
11183
|
return /* @__PURE__ */ g(
|
|
11183
11184
|
"svg",
|
|
11184
11185
|
{
|
|
@@ -11199,7 +11200,7 @@ function K3(e) {
|
|
|
11199
11200
|
}
|
|
11200
11201
|
);
|
|
11201
11202
|
}
|
|
11202
|
-
function
|
|
11203
|
+
function Z3(e) {
|
|
11203
11204
|
return /* @__PURE__ */ k(
|
|
11204
11205
|
"svg",
|
|
11205
11206
|
{
|
|
@@ -11235,7 +11236,7 @@ function X3(e) {
|
|
|
11235
11236
|
const T3 = (e) => {
|
|
11236
11237
|
"serviceWorker" in navigator && navigator.serviceWorker.register(e.path).then(function(t) {
|
|
11237
11238
|
console.log("Registration successful, scope is:", t.scope);
|
|
11238
|
-
const n = ga(
|
|
11239
|
+
const n = ma(ga({
|
|
11239
11240
|
apiKey: e.apiKey,
|
|
11240
11241
|
authDomain: e.authDomain,
|
|
11241
11242
|
projectId: e.projectId,
|
|
@@ -11259,7 +11260,7 @@ const T3 = (e) => {
|
|
|
11259
11260
|
console.log("Service worker registration failed, error:", t);
|
|
11260
11261
|
});
|
|
11261
11262
|
}, _3 = (e) => new Promise((t) => {
|
|
11262
|
-
const n = ga(
|
|
11263
|
+
const n = ma(ga({
|
|
11263
11264
|
apiKey: e.apiKey,
|
|
11264
11265
|
authDomain: e.authDomain,
|
|
11265
11266
|
projectId: e.projectId,
|
|
@@ -11294,7 +11295,7 @@ const T3 = (e) => {
|
|
|
11294
11295
|
)
|
|
11295
11296
|
] })
|
|
11296
11297
|
] }) }) });
|
|
11297
|
-
},
|
|
11298
|
+
}, J3 = (e) => {
|
|
11298
11299
|
const [t, n] = K({
|
|
11299
11300
|
title: "",
|
|
11300
11301
|
body: ""
|
|
@@ -11315,25 +11316,25 @@ const T3 = (e) => {
|
|
|
11315
11316
|
}), console.log(s);
|
|
11316
11317
|
}).catch((s) => console.log("failed: ", s)), /* @__PURE__ */ k("div", { children: [
|
|
11317
11318
|
"Notification" in window && Notification.permission === "default" ? /* @__PURE__ */ g(A3, { ...e }) : "",
|
|
11318
|
-
Notification.permission === "granted" ? /* @__PURE__ */ g(
|
|
11319
|
+
Notification.permission === "granted" ? /* @__PURE__ */ g(pa, {}) : ""
|
|
11319
11320
|
] });
|
|
11320
11321
|
};
|
|
11321
11322
|
export {
|
|
11322
11323
|
ha as AutocompleteOption,
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11324
|
+
Z3 as CheckedIcon,
|
|
11325
|
+
B3 as GlobalMenu,
|
|
11326
|
+
W3 as NoData,
|
|
11327
|
+
J3 as NotificationBase,
|
|
11328
|
+
H3 as PopUpBase,
|
|
11329
|
+
G3 as StyledAutocomplete,
|
|
11330
|
+
K3 as StyledDateRangePicker,
|
|
11331
|
+
F3 as ToastConfig,
|
|
11332
|
+
z3 as TopBar,
|
|
11333
|
+
Y3 as UnauthorizedPage,
|
|
11334
|
+
X3 as UncheckedIcon,
|
|
11334
11335
|
Xn as pushError,
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11336
|
+
t5 as pushSuccess,
|
|
11337
|
+
n5 as pushWarning,
|
|
11338
|
+
U3 as usePopUp,
|
|
11339
|
+
q3 as useStyledAutocomplete
|
|
11339
11340
|
};
|