react-luminus-components 1.2.49 → 1.2.50
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/.vite/manifest.json +42 -42
- package/dist/{EventType-Usf1H64d.js → EventType-DWGjQvzu.js} +1 -1
- package/dist/{EventType-CjShHN5A.cjs → EventType-hNtpU3e1.cjs} +1 -1
- package/dist/{NoInputContainer-DZZ_-i8t.js → NoInputContainer-DmBq5UOG.js} +6 -6
- package/dist/{NoInputContainer-Bqi3DDyO.cjs → NoInputContainer-DoXRYO1H.cjs} +17 -17
- package/dist/{SimpleTooltip-3zifUay1.cjs → SimpleTooltip-B2yyBOM6.cjs} +1 -1
- package/dist/{SimpleTooltip-BkXQMkQn.js → SimpleTooltip-BAbwD-j4.js} +1 -1
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +263 -266
- package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/{useConfirm-BX2uDQ2n.js → useConfirm-Bn8xeACS.js} +1 -1
- package/dist/{useConfirm-CWoEv2JQ.cjs → useConfirm-D-LyfPUG.cjs} +1 -1
- package/dist/{usePermissions-DcA0BYz0.cjs → usePermissions-BIk4upFW.cjs} +1 -1
- package/dist/{usePermissions-5LpuGywv.js → usePermissions-ChxpQtxh.js} +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as s, t as ee, c as re, g as Kn, T as Qn, a as Xn, b as w, s as gt, E as Jn, d as Zn, e as er, f as tr, h as nr, u as fe, i as H, k as rr, l as or, m as sr, n as ar, o as ir, p as cr, q as lr, r as ur, v as rt, w as ot, x as dr, y as hr, z as fr, P as ve, F as ie, A as mr, B as pr, C as st, S as wt, D as Oe, G as Me, H as at, I as gr, J as Yt, K as Ne, L as Fe, O as xt, M as wr, N as ce, Q as xr, R as yr, U as Ht, V as it, W as ct, X as Q, Y as vr, Z as Gt, _ as br, $ as _r, a0 as Bt, a1 as zt, a2 as jr, a3 as kr, a4 as Cr, a5 as Nr, a6 as Ut, a7 as _e, a8 as $r, a9 as Ir, aa as Tr, ab as Sr, ac as Ke, ad as Ye, ae as me, af as Er } from "./NoInputContainer-
|
|
2
|
-
import { ah as Yc, ag as Hc } from "./NoInputContainer-
|
|
1
|
+
import { j as s, t as ee, c as re, g as Kn, T as Qn, a as Xn, b as w, s as gt, E as Jn, d as Zn, e as er, f as tr, h as nr, u as fe, i as H, k as rr, l as or, m as sr, n as ar, o as ir, p as cr, q as lr, r as ur, v as rt, w as ot, x as dr, y as hr, z as fr, P as ve, F as ie, A as mr, B as pr, C as st, S as wt, D as Oe, G as Me, H as at, I as gr, J as Yt, K as Ne, L as Fe, O as xt, M as wr, N as ce, Q as xr, R as yr, U as Ht, V as it, W as ct, X as Q, Y as vr, Z as Gt, _ as br, $ as _r, a0 as Bt, a1 as zt, a2 as jr, a3 as kr, a4 as Cr, a5 as Nr, a6 as Ut, a7 as _e, a8 as $r, a9 as Ir, aa as Tr, ab as Sr, ac as Ke, ad as Ye, ae as me, af as Er } from "./NoInputContainer-DmBq5UOG.js";
|
|
2
|
+
import { ah as Yc, ag as Hc } from "./NoInputContainer-DmBq5UOG.js";
|
|
3
3
|
import * as P from "react";
|
|
4
4
|
import X, { useCallback as E, useMemo as z, useEffect as M, useRef as R, useState as O, useReducer as Vt, useContext as F, createElement as Or } from "react";
|
|
5
|
-
import { d as Kt, u as Mr, q as yt, E as Pe, M as De } from "./EventType-
|
|
6
|
-
import { L as Bc } from "./EventType-
|
|
5
|
+
import { d as Kt, u as Mr, q as yt, E as Pe, M as De } from "./EventType-DWGjQvzu.js";
|
|
6
|
+
import { L as Bc } from "./EventType-DWGjQvzu.js";
|
|
7
7
|
import { useFormContext as le, Controller as Qt } from "react-hook-form";
|
|
8
8
|
import { m as Pr, a as Xt } from "./textUtils-BbxuIsKq.js";
|
|
9
9
|
import { u as Jt, a as Zt, b as en } from "./useFormControlType-BAFqxupC.js";
|
|
10
|
-
import { S as Uc } from "./SimpleTooltip-
|
|
10
|
+
import { S as Uc } from "./SimpleTooltip-BAbwD-j4.js";
|
|
11
11
|
const dc = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
12
|
const r = E(async () => {
|
|
13
13
|
var c;
|
|
@@ -538,8 +538,8 @@ function jo(n) {
|
|
|
538
538
|
return Math.round(t / Xt) + 1;
|
|
539
539
|
}
|
|
540
540
|
function rn(n, e) {
|
|
541
|
-
var d, h,
|
|
542
|
-
const t = ee(n), r = t.getFullYear(), o = He(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((p = (
|
|
541
|
+
var d, h, m, p;
|
|
542
|
+
const t = ee(n), r = t.getFullYear(), o = He(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((p = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = re(n, 0);
|
|
543
543
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
544
544
|
const c = Ie(i, e), u = re(n, 0);
|
|
545
545
|
u.setFullYear(r, 0, a), u.setHours(0, 0, 0, 0);
|
|
@@ -1187,8 +1187,8 @@ function Po(n, e, t) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
const Do = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ao = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Fo = /^'([^]*?)'?$/, Wo = /''/g, Ro = /[a-zA-Z]/;
|
|
1189
1189
|
function sn(n, e, t) {
|
|
1190
|
-
var d, h,
|
|
1191
|
-
const r = He(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? bo, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (
|
|
1190
|
+
var d, h, m, p, x, g, f, v;
|
|
1191
|
+
const r = He(), o = (t == null ? void 0 : t.locale) ?? r.locale ?? bo, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((g = (x = t == null ? void 0 : t.locale) == null ? void 0 : x.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((v = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : v.weekStartsOn) ?? 0, c = ee(n);
|
|
1192
1192
|
if (!qr(c))
|
|
1193
1193
|
throw new RangeError("Invalid time value");
|
|
1194
1194
|
let u = e.match(Ao).map((b) => {
|
|
@@ -1289,22 +1289,22 @@ const Bo = {
|
|
|
1289
1289
|
timeout: l = 300,
|
|
1290
1290
|
mountOnEnter: d = !1,
|
|
1291
1291
|
unmountOnExit: h = !1,
|
|
1292
|
-
appear:
|
|
1292
|
+
appear: m = !1,
|
|
1293
1293
|
getDimensionValue: p = Go,
|
|
1294
1294
|
...x
|
|
1295
1295
|
}, g) => {
|
|
1296
|
-
const
|
|
1297
|
-
C.style[
|
|
1298
|
-
}, n), [
|
|
1299
|
-
const
|
|
1300
|
-
C.style[
|
|
1301
|
-
}, e), [
|
|
1302
|
-
C.style[
|
|
1303
|
-
}, t), [
|
|
1304
|
-
C.style[
|
|
1305
|
-
}, r), [r, p,
|
|
1306
|
-
C.style[
|
|
1307
|
-
}, o), [
|
|
1296
|
+
const f = typeof c == "function" ? c() : c, v = z(() => Ce((C) => {
|
|
1297
|
+
C.style[f] = "0";
|
|
1298
|
+
}, n), [f, n]), b = z(() => Ce((C) => {
|
|
1299
|
+
const T = `scroll${f[0].toUpperCase()}${f.slice(1)}`;
|
|
1300
|
+
C.style[f] = `${C[T]}px`;
|
|
1301
|
+
}, e), [f, e]), y = z(() => Ce((C) => {
|
|
1302
|
+
C.style[f] = null;
|
|
1303
|
+
}, t), [f, t]), j = z(() => Ce((C) => {
|
|
1304
|
+
C.style[f] = `${p(f, C)}px`, nr(C);
|
|
1305
|
+
}, r), [r, p, f]), k = z(() => Ce((C) => {
|
|
1306
|
+
C.style[f] = null;
|
|
1307
|
+
}, o), [f, o]);
|
|
1308
1308
|
return /* @__PURE__ */ s.jsx(Qn, {
|
|
1309
1309
|
ref: g,
|
|
1310
1310
|
addEndListener: Xn,
|
|
@@ -1320,10 +1320,10 @@ const Bo = {
|
|
|
1320
1320
|
timeout: l,
|
|
1321
1321
|
mountOnEnter: d,
|
|
1322
1322
|
unmountOnExit: h,
|
|
1323
|
-
appear:
|
|
1324
|
-
children: (C,
|
|
1325
|
-
...
|
|
1326
|
-
className: w(a, i.props.className, Bo[C],
|
|
1323
|
+
appear: m,
|
|
1324
|
+
children: (C, T) => /* @__PURE__ */ X.cloneElement(i, {
|
|
1325
|
+
...T,
|
|
1326
|
+
className: w(a, i.props.className, Bo[C], f === "width" && "collapse-horizontal")
|
|
1327
1327
|
})
|
|
1328
1328
|
});
|
|
1329
1329
|
});
|
|
@@ -1366,14 +1366,14 @@ function lt({
|
|
|
1366
1366
|
type: u || "button",
|
|
1367
1367
|
disabled: e
|
|
1368
1368
|
}, l];
|
|
1369
|
-
const d = (
|
|
1370
|
-
if ((e || n === "a" && Ko(t)) &&
|
|
1371
|
-
|
|
1369
|
+
const d = (m) => {
|
|
1370
|
+
if ((e || n === "a" && Ko(t)) && m.preventDefault(), e) {
|
|
1371
|
+
m.stopPropagation();
|
|
1372
1372
|
return;
|
|
1373
1373
|
}
|
|
1374
|
-
i == null || i(
|
|
1375
|
-
}, h = (
|
|
1376
|
-
|
|
1374
|
+
i == null || i(m);
|
|
1375
|
+
}, h = (m) => {
|
|
1376
|
+
m.key === " " && (m.preventDefault(), d(m));
|
|
1377
1377
|
};
|
|
1378
1378
|
return n === "a" && (t || (t = "#"), e && (t = void 0)), [{
|
|
1379
1379
|
role: a ?? "button",
|
|
@@ -1453,8 +1453,8 @@ const un = /* @__PURE__ */ P.forwardRef(({
|
|
|
1453
1453
|
tagName: n,
|
|
1454
1454
|
disabled: a,
|
|
1455
1455
|
...c
|
|
1456
|
-
}),
|
|
1457
|
-
return /* @__PURE__ */ s.jsx(
|
|
1456
|
+
}), m = h;
|
|
1457
|
+
return /* @__PURE__ */ s.jsx(m, {
|
|
1458
1458
|
...d,
|
|
1459
1459
|
...c,
|
|
1460
1460
|
ref: u,
|
|
@@ -1477,14 +1477,14 @@ function es({
|
|
|
1477
1477
|
return o.forEach((u) => {
|
|
1478
1478
|
const l = r[u];
|
|
1479
1479
|
delete r[u];
|
|
1480
|
-
let d, h,
|
|
1480
|
+
let d, h, m;
|
|
1481
1481
|
typeof l == "object" && l != null ? {
|
|
1482
1482
|
span: d,
|
|
1483
1483
|
offset: h,
|
|
1484
|
-
order:
|
|
1484
|
+
order: m
|
|
1485
1485
|
} = l : d = l;
|
|
1486
1486
|
const p = u !== a ? `-${u}` : "";
|
|
1487
|
-
d && i.push(d === !0 ? `${e}${p}` : `${e}${p}-${d}`),
|
|
1487
|
+
d && i.push(d === !0 ? `${e}${p}` : `${e}${p}-${d}`), m != null && c.push(`order${p}-${m}`), h != null && c.push(`offset${p}-${h}`);
|
|
1488
1488
|
}), [{
|
|
1489
1489
|
...r,
|
|
1490
1490
|
className: w(t, ...i, ...c)
|
|
@@ -1545,19 +1545,19 @@ function hn(n = {}) {
|
|
|
1545
1545
|
placement: l,
|
|
1546
1546
|
popperConfig: d = {},
|
|
1547
1547
|
enableEventListeners: h = !0,
|
|
1548
|
-
usePopper:
|
|
1548
|
+
usePopper: m = !!e
|
|
1549
1549
|
} = n, p = (e == null ? void 0 : e.show) == null ? !!n.show : e.show;
|
|
1550
1550
|
p && !o.current && (o.current = !0);
|
|
1551
1551
|
const x = (C) => {
|
|
1552
1552
|
e == null || e.toggle(!1, C);
|
|
1553
1553
|
}, {
|
|
1554
1554
|
placement: g,
|
|
1555
|
-
setMenu:
|
|
1555
|
+
setMenu: f,
|
|
1556
1556
|
menuElement: v,
|
|
1557
1557
|
toggleElement: b
|
|
1558
1558
|
} = e || {}, y = ar(b, v, ir({
|
|
1559
1559
|
placement: l || g || "bottom-start",
|
|
1560
|
-
enabled:
|
|
1560
|
+
enabled: m,
|
|
1561
1561
|
enableEvents: h ?? p,
|
|
1562
1562
|
offset: i,
|
|
1563
1563
|
flip: a,
|
|
@@ -1565,7 +1565,7 @@ function hn(n = {}) {
|
|
|
1565
1565
|
arrowElement: t,
|
|
1566
1566
|
popperConfig: d
|
|
1567
1567
|
})), j = Object.assign({
|
|
1568
|
-
ref:
|
|
1568
|
+
ref: f || ss,
|
|
1569
1569
|
"aria-labelledby": b == null ? void 0 : b.id
|
|
1570
1570
|
}, y.attributes.popper, {
|
|
1571
1571
|
style: y.styles.popper
|
|
@@ -1574,8 +1574,8 @@ function hn(n = {}) {
|
|
|
1574
1574
|
placement: g,
|
|
1575
1575
|
hasShown: o.current,
|
|
1576
1576
|
toggle: e == null ? void 0 : e.toggle,
|
|
1577
|
-
popper:
|
|
1578
|
-
arrowProps:
|
|
1577
|
+
popper: m ? y : null,
|
|
1578
|
+
arrowProps: m ? Object.assign({
|
|
1579
1579
|
ref: r
|
|
1580
1580
|
}, y.attributes.arrow, {
|
|
1581
1581
|
style: y.styles.arrow
|
|
@@ -1745,25 +1745,25 @@ function Se({
|
|
|
1745
1745
|
placement: i = "bottom-start",
|
|
1746
1746
|
children: c
|
|
1747
1747
|
}) {
|
|
1748
|
-
const u = lr(), [l, d] = ts(e, n, r), [h,
|
|
1748
|
+
const u = lr(), [l, d] = ts(e, n, r), [h, m] = Tt(), p = h.current, [x, g] = Tt(), f = x.current, v = Mr(l), b = R(null), y = R(!1), j = F(et), k = E((_, $, A = $ == null ? void 0 : $.type) => {
|
|
1749
1749
|
d(_, {
|
|
1750
1750
|
originalEvent: $,
|
|
1751
1751
|
source: A
|
|
1752
1752
|
});
|
|
1753
1753
|
}, [d]), C = fe((_, $) => {
|
|
1754
1754
|
t == null || t(_, $), k(!1, $, "select"), $.isPropagationStopped() || j == null || j(_, $);
|
|
1755
|
-
}),
|
|
1755
|
+
}), T = z(() => ({
|
|
1756
1756
|
toggle: k,
|
|
1757
1757
|
placement: i,
|
|
1758
1758
|
show: l,
|
|
1759
1759
|
menuElement: p,
|
|
1760
|
-
toggleElement:
|
|
1761
|
-
setMenu:
|
|
1760
|
+
toggleElement: f,
|
|
1761
|
+
setMenu: m,
|
|
1762
1762
|
setToggle: g
|
|
1763
|
-
}), [k, i, l, p,
|
|
1763
|
+
}), [k, i, l, p, f, m, g]);
|
|
1764
1764
|
p && v && !l && (y.current = p.contains(p.ownerDocument.activeElement));
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1765
|
+
const S = fe(() => {
|
|
1766
|
+
f && f.focus && f.focus();
|
|
1767
1767
|
}), D = fe(() => {
|
|
1768
1768
|
const _ = b.current;
|
|
1769
1769
|
let $ = a;
|
|
@@ -1773,11 +1773,11 @@ function Se({
|
|
|
1773
1773
|
A && A.focus && A.focus();
|
|
1774
1774
|
});
|
|
1775
1775
|
M(() => {
|
|
1776
|
-
l ? D() : y.current && (y.current = !1,
|
|
1777
|
-
}, [l, y,
|
|
1776
|
+
l ? D() : y.current && (y.current = !1, S());
|
|
1777
|
+
}, [l, y, S, D]), M(() => {
|
|
1778
1778
|
b.current = null;
|
|
1779
1779
|
});
|
|
1780
|
-
const
|
|
1780
|
+
const I = (_, $) => {
|
|
1781
1781
|
if (!h.current)
|
|
1782
1782
|
return null;
|
|
1783
1783
|
const A = yt(h.current, o);
|
|
@@ -1798,7 +1798,7 @@ function Se({
|
|
|
1798
1798
|
};
|
|
1799
1799
|
switch (B) {
|
|
1800
1800
|
case "ArrowUp": {
|
|
1801
|
-
const N =
|
|
1801
|
+
const N = I(G, -1);
|
|
1802
1802
|
N && N.focus && N.focus(), _.preventDefault();
|
|
1803
1803
|
return;
|
|
1804
1804
|
}
|
|
@@ -1806,7 +1806,7 @@ function Se({
|
|
|
1806
1806
|
if (_.preventDefault(), !l)
|
|
1807
1807
|
d(!0, U);
|
|
1808
1808
|
else {
|
|
1809
|
-
const N =
|
|
1809
|
+
const N = I(G, 1);
|
|
1810
1810
|
N && N.focus && N.focus();
|
|
1811
1811
|
}
|
|
1812
1812
|
return;
|
|
@@ -1825,7 +1825,7 @@ function Se({
|
|
|
1825
1825
|
}), /* @__PURE__ */ s.jsx(et.Provider, {
|
|
1826
1826
|
value: C,
|
|
1827
1827
|
children: /* @__PURE__ */ s.jsx(Ge.Provider, {
|
|
1828
|
-
value:
|
|
1828
|
+
value: T,
|
|
1829
1829
|
children: c
|
|
1830
1830
|
})
|
|
1831
1831
|
});
|
|
@@ -1929,10 +1929,10 @@ const In = /* @__PURE__ */ P.forwardRef(({
|
|
|
1929
1929
|
variant: l,
|
|
1930
1930
|
...d
|
|
1931
1931
|
}, h) => {
|
|
1932
|
-
let
|
|
1932
|
+
let m = !1;
|
|
1933
1933
|
const p = F(Cn), x = H(n, "dropdown-menu"), {
|
|
1934
1934
|
align: g,
|
|
1935
|
-
drop:
|
|
1935
|
+
drop: f,
|
|
1936
1936
|
isRTL: v
|
|
1937
1937
|
} = F(ut);
|
|
1938
1938
|
t = t || g;
|
|
@@ -1942,14 +1942,14 @@ const In = /* @__PURE__ */ P.forwardRef(({
|
|
|
1942
1942
|
const _ = Object.keys(t);
|
|
1943
1943
|
if (process.env.NODE_ENV !== "production" && ot(_.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), _.length) {
|
|
1944
1944
|
const $ = _[0], A = t[$];
|
|
1945
|
-
|
|
1945
|
+
m = A === "start", y.push(`${x}-${$}-${A}`);
|
|
1946
1946
|
}
|
|
1947
1947
|
} else
|
|
1948
|
-
t === "end" && (
|
|
1949
|
-
const j = $n(
|
|
1948
|
+
t === "end" && (m = !0);
|
|
1949
|
+
const j = $n(m, f, v), [k, {
|
|
1950
1950
|
hasShown: C,
|
|
1951
|
-
popper:
|
|
1952
|
-
show:
|
|
1951
|
+
popper: T,
|
|
1952
|
+
show: S,
|
|
1953
1953
|
toggle: D
|
|
1954
1954
|
}] = hn({
|
|
1955
1955
|
flip: o,
|
|
@@ -1961,22 +1961,22 @@ const In = /* @__PURE__ */ P.forwardRef(({
|
|
|
1961
1961
|
placement: j
|
|
1962
1962
|
});
|
|
1963
1963
|
if (k.ref = rt(Nn(h, "DropdownMenu"), k.ref), dr(() => {
|
|
1964
|
-
|
|
1965
|
-
}, [
|
|
1964
|
+
S && (T == null || T.update());
|
|
1965
|
+
}, [S]), !C && !i && !b)
|
|
1966
1966
|
return null;
|
|
1967
|
-
typeof c != "string" && (k.show =
|
|
1968
|
-
let
|
|
1969
|
-
return
|
|
1967
|
+
typeof c != "string" && (k.show = S, k.close = () => D == null ? void 0 : D(!1), k.align = t);
|
|
1968
|
+
let I = d.style;
|
|
1969
|
+
return T != null && T.placement && (I = {
|
|
1970
1970
|
...d.style,
|
|
1971
1971
|
...k.style
|
|
1972
|
-
}, d["x-placement"] =
|
|
1972
|
+
}, d["x-placement"] = T.placement), /* @__PURE__ */ s.jsx(c, {
|
|
1973
1973
|
...d,
|
|
1974
1974
|
...k,
|
|
1975
|
-
style:
|
|
1975
|
+
style: I,
|
|
1976
1976
|
...(y.length || p) && {
|
|
1977
1977
|
"data-bs-popper": "static"
|
|
1978
1978
|
},
|
|
1979
|
-
className: w(e, x,
|
|
1979
|
+
className: w(e, x, S && "show", m && `${x}-end`, l && `${x}-${l}`, ...y)
|
|
1980
1980
|
});
|
|
1981
1981
|
});
|
|
1982
1982
|
In.displayName = "DropdownMenu";
|
|
@@ -2012,18 +2012,18 @@ const Sn = /* @__PURE__ */ P.forwardRef((n, e) => {
|
|
|
2012
2012
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2013
2013
|
as: d = "div",
|
|
2014
2014
|
navbar: h,
|
|
2015
|
-
autoClose:
|
|
2015
|
+
autoClose: m = !0,
|
|
2016
2016
|
...p
|
|
2017
2017
|
} = hr(n, {
|
|
2018
2018
|
show: "onToggle"
|
|
2019
|
-
}), x = F(Be), g = H(t, "dropdown"),
|
|
2020
|
-
var D,
|
|
2021
|
-
!((D =
|
|
2022
|
-
}), j = $n(i === "end", r,
|
|
2019
|
+
}), x = F(Be), g = H(t, "dropdown"), f = fr(), v = (T) => m === !1 ? T === "click" : m === "inside" ? T !== "rootClose" : m === "outside" ? T !== "select" : !0, b = fe((T, S) => {
|
|
2020
|
+
var D, I;
|
|
2021
|
+
!((D = S.originalEvent) == null || (I = D.target) == null) && I.classList.contains("dropdown-toggle") && S.source === "mousedown" || (S.originalEvent.currentTarget === document && (S.source !== "keydown" || S.originalEvent.key === "Escape") && (S.source = "rootClose"), v(S.source) && (u == null || u(T, S)));
|
|
2022
|
+
}), j = $n(i === "end", r, f), k = z(() => ({
|
|
2023
2023
|
align: i,
|
|
2024
2024
|
drop: r,
|
|
2025
|
-
isRTL:
|
|
2026
|
-
}), [i, r,
|
|
2025
|
+
isRTL: f
|
|
2026
|
+
}), [i, r, f]), C = {
|
|
2027
2027
|
down: g,
|
|
2028
2028
|
"down-centered": `${g}-center`,
|
|
2029
2029
|
up: "dropup",
|
|
@@ -2135,11 +2135,11 @@ const En = /* @__PURE__ */ P.forwardRef(({
|
|
|
2135
2135
|
feedback: l,
|
|
2136
2136
|
feedbackType: d,
|
|
2137
2137
|
className: h,
|
|
2138
|
-
style:
|
|
2138
|
+
style: m,
|
|
2139
2139
|
title: p = "",
|
|
2140
2140
|
type: x = "checkbox",
|
|
2141
2141
|
label: g,
|
|
2142
|
-
children:
|
|
2142
|
+
children: f,
|
|
2143
2143
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2144
2144
|
as: v = "input",
|
|
2145
2145
|
...b
|
|
@@ -2149,7 +2149,7 @@ const En = /* @__PURE__ */ P.forwardRef(({
|
|
|
2149
2149
|
controlId: j
|
|
2150
2150
|
} = F(ie), k = z(() => ({
|
|
2151
2151
|
controlId: n || j
|
|
2152
|
-
}), [j, n]), C = !
|
|
2152
|
+
}), [j, n]), C = !f && g != null && g !== !1 || Zo(f, qe), T = /* @__PURE__ */ s.jsx(Ee, {
|
|
2153
2153
|
...b,
|
|
2154
2154
|
type: x === "switch" ? "checkbox" : x,
|
|
2155
2155
|
ref: y,
|
|
@@ -2161,10 +2161,10 @@ const En = /* @__PURE__ */ P.forwardRef(({
|
|
|
2161
2161
|
return /* @__PURE__ */ s.jsx(ie.Provider, {
|
|
2162
2162
|
value: k,
|
|
2163
2163
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2164
|
-
style:
|
|
2164
|
+
style: m,
|
|
2165
2165
|
className: w(h, C && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && t),
|
|
2166
|
-
children:
|
|
2167
|
-
children: [
|
|
2166
|
+
children: f || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2167
|
+
children: [T, C && /* @__PURE__ */ s.jsx(qe, {
|
|
2168
2168
|
title: p,
|
|
2169
2169
|
children: g
|
|
2170
2170
|
}), l && /* @__PURE__ */ s.jsx(ze, {
|
|
@@ -2194,7 +2194,7 @@ const Le = Object.assign(En, {
|
|
|
2194
2194
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2195
2195
|
as: d = "input",
|
|
2196
2196
|
...h
|
|
2197
|
-
},
|
|
2197
|
+
}, m) => {
|
|
2198
2198
|
const {
|
|
2199
2199
|
controlId: p
|
|
2200
2200
|
} = F(ie);
|
|
@@ -2202,7 +2202,7 @@ const Le = Object.assign(En, {
|
|
|
2202
2202
|
...h,
|
|
2203
2203
|
type: e,
|
|
2204
2204
|
size: r,
|
|
2205
|
-
ref:
|
|
2205
|
+
ref: m,
|
|
2206
2206
|
readOnly: l,
|
|
2207
2207
|
id: o || p,
|
|
2208
2208
|
className: w(a, u ? `${n}-plaintext` : n, t && `${n}-${t}`, e === "color" && `${n}-color`, i && "is-valid", c && "is-invalid")
|
|
@@ -2704,9 +2704,9 @@ function pa(n, e, t) {
|
|
|
2704
2704
|
M(() => () => {
|
|
2705
2705
|
h.current = !1;
|
|
2706
2706
|
}, []);
|
|
2707
|
-
const
|
|
2707
|
+
const m = R(o !== Ne.None);
|
|
2708
2708
|
M(() => {
|
|
2709
|
-
|
|
2709
|
+
m.current = o !== Ne.None;
|
|
2710
2710
|
}, [o]);
|
|
2711
2711
|
const p = R(!0);
|
|
2712
2712
|
M(() => {
|
|
@@ -2719,8 +2719,8 @@ function pa(n, e, t) {
|
|
|
2719
2719
|
return;
|
|
2720
2720
|
}
|
|
2721
2721
|
}, [l, u]);
|
|
2722
|
-
const x = E(async (
|
|
2723
|
-
const b =
|
|
2722
|
+
const x = E(async (f, v) => {
|
|
2723
|
+
const b = f || n, y = v || e;
|
|
2724
2724
|
switch (b) {
|
|
2725
2725
|
case Fe.Popup:
|
|
2726
2726
|
return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(y);
|
|
@@ -2731,8 +2731,8 @@ function pa(n, e, t) {
|
|
|
2731
2731
|
default:
|
|
2732
2732
|
throw be.createInvalidInteractionTypeError();
|
|
2733
2733
|
}
|
|
2734
|
-
}, [r, n, e, a]), g = E(async (
|
|
2735
|
-
const b =
|
|
2734
|
+
}, [r, n, e, a]), g = E(async (f, v) => {
|
|
2735
|
+
const b = f || n;
|
|
2736
2736
|
let y;
|
|
2737
2737
|
return v ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), y = {
|
|
2738
2738
|
...v
|
|
@@ -2743,7 +2743,7 @@ function pa(n, e, t) {
|
|
|
2743
2743
|
scopes: xt
|
|
2744
2744
|
}), !y.account && c && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), y.account = c), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(y).catch(async (k) => {
|
|
2745
2745
|
if (k instanceof mt) {
|
|
2746
|
-
if (
|
|
2746
|
+
if (m.current)
|
|
2747
2747
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), be.createUnableToFallbackToInteractionError();
|
|
2748
2748
|
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), x(b, y);
|
|
2749
2749
|
}
|
|
@@ -2760,7 +2760,7 @@ function pa(n, e, t) {
|
|
|
2760
2760
|
x
|
|
2761
2761
|
]);
|
|
2762
2762
|
return M(() => {
|
|
2763
|
-
const
|
|
2763
|
+
const f = r.addEventCallback((v) => {
|
|
2764
2764
|
switch (v.eventType) {
|
|
2765
2765
|
case Pe.LOGIN_SUCCESS:
|
|
2766
2766
|
case Pe.SSO_SILENT_SUCCESS:
|
|
@@ -2775,8 +2775,8 @@ function pa(n, e, t) {
|
|
|
2775
2775
|
break;
|
|
2776
2776
|
}
|
|
2777
2777
|
});
|
|
2778
|
-
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${
|
|
2779
|
-
|
|
2778
|
+
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${f}`), () => {
|
|
2779
|
+
f && (a.verbose(`useMsalAuthentication - Removing event callback ${f}`), r.removeEventCallback(f));
|
|
2780
2780
|
};
|
|
2781
2781
|
}, [r, a]), M(() => {
|
|
2782
2782
|
p.current && o === Ne.None && (p.current = !1, i ? c && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), g().catch(() => {
|
|
@@ -2935,37 +2935,37 @@ const wa = "_button_1wjon_1", xa = "_filled_1wjon_7", ya = "_sm_1wjon_13", va =
|
|
|
2935
2935
|
widgetEditOverlay: La
|
|
2936
2936
|
}, mc = ({ availableWidgets: n }) => {
|
|
2937
2937
|
var d;
|
|
2938
|
-
const { homeDashboardTexts: e } = F(ce), { dashboardConfig: t, onChangeDashboardConfig: r } = Ma(), [o, a] = O(!1), i = E((h,
|
|
2938
|
+
const { homeDashboardTexts: e } = F(ce), { dashboardConfig: t, onChangeDashboardConfig: r } = Ma(), [o, a] = O(!1), i = E((h, m) => {
|
|
2939
2939
|
var p, x;
|
|
2940
2940
|
h === ((p = t.widgets) == null ? void 0 : p.length) ? r({
|
|
2941
2941
|
...t,
|
|
2942
|
-
widgets: [...t.widgets, { widgetId:
|
|
2942
|
+
widgets: [...t.widgets, { widgetId: m, fullWidth: !1 }]
|
|
2943
2943
|
}) : r({
|
|
2944
2944
|
...t,
|
|
2945
|
-
widgets: ((x = t.widgets) == null ? void 0 : x.map((g,
|
|
2945
|
+
widgets: ((x = t.widgets) == null ? void 0 : x.map((g, f) => f === h ? { widgetId: m, fullWidth: !1 } : g)) ?? []
|
|
2946
2946
|
});
|
|
2947
2947
|
}, [t, r]), c = E((h) => {
|
|
2948
|
-
var
|
|
2949
|
-
((
|
|
2948
|
+
var m, p;
|
|
2949
|
+
((m = t.widgets[h]) == null ? void 0 : m.widgetId) === -1 ? r({
|
|
2950
2950
|
...t,
|
|
2951
2951
|
widgets: ((p = t.widgets) == null ? void 0 : p.filter((x, g) => g !== h)) ?? []
|
|
2952
2952
|
}) : i(h, -1);
|
|
2953
2953
|
}, [t, r, i]), u = E((h) => {
|
|
2954
|
-
var
|
|
2954
|
+
var m;
|
|
2955
2955
|
r({
|
|
2956
2956
|
...t,
|
|
2957
|
-
widgets: ((
|
|
2957
|
+
widgets: ((m = t.widgets) == null ? void 0 : m.map((p, x) => x === h ? { ...p, fullWidth: !p.fullWidth } : p)) ?? []
|
|
2958
2958
|
});
|
|
2959
|
-
}, [t, r]), l = E((h,
|
|
2959
|
+
}, [t, r]), l = E((h, m, p) => h ? /* @__PURE__ */ s.jsxs("div", { className: w(ne.widgetWrapper, {
|
|
2960
2960
|
[ne.widgetEdit]: o && h.id !== -1
|
|
2961
2961
|
}, { [ne.fullWidth]: p }), children: [
|
|
2962
2962
|
o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2963
|
-
/* @__PURE__ */ s.jsx(Z, { color: "danger", onClick: () => c(
|
|
2964
|
-
/* @__PURE__ */ s.jsx(Z, { color: p ? "danger" : "primary", onClick: () => u(
|
|
2963
|
+
/* @__PURE__ */ s.jsx(Z, { color: "danger", onClick: () => c(m), className: w(ne.removeIcon), children: /* @__PURE__ */ s.jsx(Gt, {}) }),
|
|
2964
|
+
/* @__PURE__ */ s.jsx(Z, { color: p ? "danger" : "primary", onClick: () => u(m), className: w(ne.fullWidthIcon), children: /* @__PURE__ */ s.jsx(br, {}) })
|
|
2965
2965
|
] }),
|
|
2966
|
-
h.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetWrapper, children: /* @__PURE__ */ s.jsx(At, { availableWidgets: n, onAdd: (x) => i(
|
|
2966
|
+
h.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetWrapper, children: /* @__PURE__ */ s.jsx(At, { availableWidgets: n, onAdd: (x) => i(m, x), texts: e }) }) : h.render,
|
|
2967
2967
|
h.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: ne.widgetEditOverlay })
|
|
2968
|
-
] },
|
|
2968
|
+
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
2969
2969
|
o,
|
|
2970
2970
|
i,
|
|
2971
2971
|
c,
|
|
@@ -2976,10 +2976,10 @@ const wa = "_button_1wjon_1", xa = "_filled_1wjon_7", ya = "_sm_1wjon_13", va =
|
|
|
2976
2976
|
return /* @__PURE__ */ s.jsxs("div", { className: ne.dashboard, children: [
|
|
2977
2977
|
/* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ s.jsx(Gn, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ s.jsx(_r, {}) : /* @__PURE__ */ s.jsx(Bt, {}), onClick: () => a(!o), children: o ? e.dashboardEditDone : e.dashboardEdit }) }),
|
|
2978
2978
|
/* @__PURE__ */ s.jsxs("div", { className: ne.widgetsGrid, children: [
|
|
2979
|
-
(d = t.widgets) == null ? void 0 : d.map((h,
|
|
2979
|
+
(d = t.widgets) == null ? void 0 : d.map((h, m) => l(n.find((p) => p.id === h.widgetId), m, h.fullWidth)),
|
|
2980
2980
|
o && /* @__PURE__ */ s.jsx(At, { availableWidgets: n, onAdd: (h) => {
|
|
2981
|
-
var
|
|
2982
|
-
return i((
|
|
2981
|
+
var m;
|
|
2982
|
+
return i((m = t.widgets) == null ? void 0 : m.length, h);
|
|
2983
2983
|
}, texts: e })
|
|
2984
2984
|
] })
|
|
2985
2985
|
] });
|
|
@@ -3017,47 +3017,47 @@ const wa = "_button_1wjon_1", xa = "_filled_1wjon_7", ya = "_sm_1wjon_13", va =
|
|
|
3017
3017
|
function Qa(n, e, t) {
|
|
3018
3018
|
var r = this, o = R(null), a = R(0), i = R(null), c = R([]), u = R(), l = R(), d = R(n), h = R(!0);
|
|
3019
3019
|
d.current = n;
|
|
3020
|
-
var
|
|
3020
|
+
var m = typeof window < "u", p = !e && e !== 0 && m;
|
|
3021
3021
|
if (typeof n != "function")
|
|
3022
3022
|
throw new TypeError("Expected a function");
|
|
3023
3023
|
e = +e || 0;
|
|
3024
|
-
var x = !!(t = t || {}).leading, g = !("trailing" in t) || !!t.trailing,
|
|
3024
|
+
var x = !!(t = t || {}).leading, g = !("trailing" in t) || !!t.trailing, f = "maxWait" in t, v = "debounceOnServer" in t && !!t.debounceOnServer, b = f ? Math.max(+t.maxWait || 0, e) : null;
|
|
3025
3025
|
M(function() {
|
|
3026
3026
|
return h.current = !0, function() {
|
|
3027
3027
|
h.current = !1;
|
|
3028
3028
|
};
|
|
3029
3029
|
}, []);
|
|
3030
3030
|
var y = z(function() {
|
|
3031
|
-
var j = function(
|
|
3031
|
+
var j = function(I) {
|
|
3032
3032
|
var _ = c.current, $ = u.current;
|
|
3033
|
-
return c.current = u.current = null, a.current =
|
|
3034
|
-
}, k = function(
|
|
3035
|
-
p && cancelAnimationFrame(i.current), i.current = p ? requestAnimationFrame(
|
|
3036
|
-
}, C = function(
|
|
3033
|
+
return c.current = u.current = null, a.current = I, l.current = d.current.apply($, _);
|
|
3034
|
+
}, k = function(I, _) {
|
|
3035
|
+
p && cancelAnimationFrame(i.current), i.current = p ? requestAnimationFrame(I) : setTimeout(I, _);
|
|
3036
|
+
}, C = function(I) {
|
|
3037
3037
|
if (!h.current)
|
|
3038
3038
|
return !1;
|
|
3039
|
-
var _ =
|
|
3040
|
-
return !o.current || _ >= e || _ < 0 ||
|
|
3041
|
-
},
|
|
3042
|
-
return i.current = null, g && c.current ? j(
|
|
3043
|
-
},
|
|
3039
|
+
var _ = I - o.current;
|
|
3040
|
+
return !o.current || _ >= e || _ < 0 || f && I - a.current >= b;
|
|
3041
|
+
}, T = function(I) {
|
|
3042
|
+
return i.current = null, g && c.current ? j(I) : (c.current = u.current = null, l.current);
|
|
3043
|
+
}, S = function I() {
|
|
3044
3044
|
var _ = Date.now();
|
|
3045
3045
|
if (C(_))
|
|
3046
|
-
return
|
|
3046
|
+
return T(_);
|
|
3047
3047
|
if (h.current) {
|
|
3048
|
-
var $ = e - (_ - o.current), A =
|
|
3049
|
-
k(
|
|
3048
|
+
var $ = e - (_ - o.current), A = f ? Math.min($, b - (_ - a.current)) : $;
|
|
3049
|
+
k(I, A);
|
|
3050
3050
|
}
|
|
3051
3051
|
}, D = function() {
|
|
3052
|
-
if (
|
|
3053
|
-
var
|
|
3054
|
-
if (c.current = [].slice.call(arguments), u.current = r, o.current =
|
|
3052
|
+
if (m || v) {
|
|
3053
|
+
var I = Date.now(), _ = C(I);
|
|
3054
|
+
if (c.current = [].slice.call(arguments), u.current = r, o.current = I, _) {
|
|
3055
3055
|
if (!i.current && h.current)
|
|
3056
|
-
return a.current = o.current, k(
|
|
3057
|
-
if (
|
|
3058
|
-
return k(
|
|
3056
|
+
return a.current = o.current, k(S, e), x ? j(o.current) : l.current;
|
|
3057
|
+
if (f)
|
|
3058
|
+
return k(S, e), j(o.current);
|
|
3059
3059
|
}
|
|
3060
|
-
return i.current || k(
|
|
3060
|
+
return i.current || k(S, e), l.current;
|
|
3061
3061
|
}
|
|
3062
3062
|
};
|
|
3063
3063
|
return D.cancel = function() {
|
|
@@ -3065,9 +3065,9 @@ function Qa(n, e, t) {
|
|
|
3065
3065
|
}, D.isPending = function() {
|
|
3066
3066
|
return !!i.current;
|
|
3067
3067
|
}, D.flush = function() {
|
|
3068
|
-
return i.current ?
|
|
3068
|
+
return i.current ? T(Date.now()) : l.current;
|
|
3069
3069
|
}, D;
|
|
3070
|
-
}, [x,
|
|
3070
|
+
}, [x, f, e, b, g, p, m, v]);
|
|
3071
3071
|
return y;
|
|
3072
3072
|
}
|
|
3073
3073
|
function Xa(n, e) {
|
|
@@ -3103,9 +3103,9 @@ const Za = "_wrapper_j4i07_1", ei = "_open_j4i07_9", ti = "_dropdown_j4i07_13",
|
|
|
3103
3103
|
icon: ui,
|
|
3104
3104
|
"clear-button": "_clear-button_j4i07_77",
|
|
3105
3105
|
clearButton: di
|
|
3106
|
-
}, pt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, additionalColumns: c, autoHideSearch: u = !1, allItemsLength: l, disabled: d, isLoading: h = !1, inputRef:
|
|
3106
|
+
}, pt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, additionalColumns: c, autoHideSearch: u = !1, allItemsLength: l, disabled: d, isLoading: h = !1, inputRef: m }) => {
|
|
3107
3107
|
var oe;
|
|
3108
|
-
const p = R(null), x = R(null), g = R(null), [
|
|
3108
|
+
const p = R(null), x = R(null), g = R(null), [f, v] = O(""), [b] = zn(f, 500), [, y] = O(!1), j = (oe = m.current) == null ? void 0 : oe.getBoundingClientRect(), k = (j == null ? void 0 : j.x) ?? 0, C = ((j == null ? void 0 : j.x) ?? 0) + ((j == null ? void 0 : j.width) ?? 0), T = (j == null ? void 0 : j.y) ?? 0, S = ((j == null ? void 0 : j.y) ?? 0) + ((j == null ? void 0 : j.height) ?? 0), D = (j == null ? void 0 : j.width) ?? 0, I = (j == null ? void 0 : j.height) ?? 0, _ = 5, $ = z(() => k ? k > window.innerWidth / 2 : !1, [k]), A = z(() => T ? T > window.innerHeight / 2 : !1, [T]);
|
|
3109
3109
|
M(() => {
|
|
3110
3110
|
var q;
|
|
3111
3111
|
n && ((q = g.current) == null || q.focus());
|
|
@@ -3132,19 +3132,19 @@ const Za = "_wrapper_j4i07_1", ei = "_open_j4i07_9", ti = "_dropdown_j4i07_13",
|
|
|
3132
3132
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3133
3133
|
/* @__PURE__ */ s.jsx(Vn, { show: n, onClick: e }),
|
|
3134
3134
|
r && n && !d && /* @__PURE__ */ s.jsx("button", { ref: x, type: "button", className: w("luminus-dropdown-picker-clear-button", V.clearButton), onClick: () => !d && o(null), style: {
|
|
3135
|
-
top: `calc(${
|
|
3135
|
+
top: `calc(${T}px + ${I / 2}px - 12px)`,
|
|
3136
3136
|
left: `calc(${k}px - 24px - 8px)`
|
|
3137
3137
|
}, children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(Gt, { size: 16 }) }) }),
|
|
3138
3138
|
/* @__PURE__ */ s.jsx("div", { className: w("luminus-dropdown-picker", V.wrapper, {
|
|
3139
3139
|
[V.open]: n
|
|
3140
3140
|
}), style: {
|
|
3141
|
-
top: A ? `calc(${
|
|
3141
|
+
top: A ? `calc(${T}px - 50vh - 8px)` : `calc(${S}px + 8px)`,
|
|
3142
3142
|
left: $ ? `calc(${C}px - ${K})` : k,
|
|
3143
3143
|
right: $ ? `${C}px` : `calc(${k}px + ${K})`,
|
|
3144
3144
|
width: K,
|
|
3145
3145
|
justifyContent: A ? "flex-end" : "flex-start"
|
|
3146
3146
|
}, children: /* @__PURE__ */ s.jsx("div", { ref: p, className: w("shadow rounded", V.dropdown), children: !d && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3147
|
-
u && (l ?? t.length) <= _ ? null : /* @__PURE__ */ s.jsx("div", { className: w("search-input-container border-bottom", V.searchInputContainer), children: /* @__PURE__ */ s.jsx(J.Control, { ref: g, type: "search", size: "sm", className: V.searchInput, placeholder: i.searchPlaceholder, value:
|
|
3147
|
+
u && (l ?? t.length) <= _ ? null : /* @__PURE__ */ s.jsx("div", { className: w("search-input-container border-bottom", V.searchInputContainer), children: /* @__PURE__ */ s.jsx(J.Control, { ref: g, type: "search", size: "sm", className: V.searchInput, placeholder: i.searchPlaceholder, value: f, onChange: (q) => {
|
|
3148
3148
|
var U;
|
|
3149
3149
|
return v(((U = q.target) == null ? void 0 : U.value) ?? "");
|
|
3150
3150
|
} }) }),
|
|
@@ -3206,8 +3206,8 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3206
3206
|
item: Ii
|
|
3207
3207
|
}, Ti = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3208
3208
|
const { LinkComponent: i, appSearchTexts: c } = F(ce), u = R(null), l = E((d) => {
|
|
3209
|
-
var
|
|
3210
|
-
const h = (
|
|
3209
|
+
var m;
|
|
3210
|
+
const h = (m = a.find((p) => p.key === d.type)) == null ? void 0 : m.toPath;
|
|
3211
3211
|
return h ? `${h}/${d.searchKey}` : "/not-found";
|
|
3212
3212
|
}, [a]);
|
|
3213
3213
|
return Zt([u], t), /* @__PURE__ */ s.jsx("div", { ref: u, className: w("luminus-app-search-dropdown shadow rounded", ue.dropdown, {
|
|
@@ -3225,14 +3225,14 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3225
3225
|
d.key.totalCount
|
|
3226
3226
|
] })
|
|
3227
3227
|
] }),
|
|
3228
|
-
(h = d.items) == null ? void 0 : h.map((
|
|
3228
|
+
(h = d.items) == null ? void 0 : h.map((m, p) => /* @__PURE__ */ s.jsxs(
|
|
3229
3229
|
i,
|
|
3230
3230
|
{
|
|
3231
|
-
to: l(
|
|
3231
|
+
to: l(m),
|
|
3232
3232
|
className: w("search-item d-flex gap-3 align-items-center justify-content-between", ue.item),
|
|
3233
3233
|
onClick: t,
|
|
3234
3234
|
children: [
|
|
3235
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children:
|
|
3235
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
|
|
3236
3236
|
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Cr, {}) })
|
|
3237
3237
|
]
|
|
3238
3238
|
},
|
|
@@ -3266,19 +3266,19 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3266
3266
|
u();
|
|
3267
3267
|
}, [u]), { isLoading: r, searchItems: a };
|
|
3268
3268
|
}, yc = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3269
|
-
const { appSearchTexts: t } = F(ce), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [c, u] = zn(a, 500), { isLoading: l, searchItems: d } = Ai(r, c), [h,
|
|
3269
|
+
const { appSearchTexts: t } = F(ce), [r, o] = O(n.length > 0 ? n[0] : null), [a, i] = O(""), [c, u] = zn(a, 500), { isLoading: l, searchItems: d } = Ai(r, c), [h, m] = O(!1);
|
|
3270
3270
|
return M(() => {
|
|
3271
|
-
(d.length > 0 || l) &&
|
|
3271
|
+
(d.length > 0 || l) && m(!0);
|
|
3272
3272
|
}, [d, l]), /* @__PURE__ */ s.jsx(J, { onSubmit: (p) => {
|
|
3273
|
-
p.preventDefault(), p.stopPropagation(), u.flush(),
|
|
3273
|
+
p.preventDefault(), p.stopPropagation(), u.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3274
3274
|
}, children: /* @__PURE__ */ s.jsxs(Je, { className: de.inputGroup, children: [
|
|
3275
3275
|
/* @__PURE__ */ s.jsx(Je.Text, { className: w("p-1 rounded", de.inputGroupText, de.left), children: /* @__PURE__ */ s.jsx(bi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3276
3276
|
/* @__PURE__ */ s.jsx(J.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", de.input), value: a, onChange: (p) => {
|
|
3277
3277
|
var x;
|
|
3278
3278
|
return i(((x = p.target) == null ? void 0 : x.value) ?? "");
|
|
3279
|
-
}, onFocus: () => d.length > 0 &&
|
|
3279
|
+
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3280
3280
|
/* @__PURE__ */ s.jsx(Je.Text, { className: w("p-0 rounded", de.inputGroupText, de.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: w("text-primary", de.submitButton), children: /* @__PURE__ */ s.jsx(hi, {}) }) }),
|
|
3281
|
-
/* @__PURE__ */ s.jsx(Ti, { query: c, searchTypes: n, show: h, onCancel: () =>
|
|
3281
|
+
/* @__PURE__ */ s.jsx(Ti, { query: c, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: l })
|
|
3282
3282
|
] }) });
|
|
3283
3283
|
}, Fi = "_card_czj33_1", Wi = "_header_czj33_6", Ri = "_header-content_czj33_13", qi = "_collapse-icon_czj33_19", Li = "_collapsed_czj33_24", Yi = "_content_czj33_27", ye = {
|
|
3284
3284
|
card: Fi,
|
|
@@ -3333,7 +3333,7 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3333
3333
|
}, Vn = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-backdrop", qt.backdrop, {
|
|
3334
3334
|
[qt.show]: n
|
|
3335
3335
|
}), onClick: () => e && e() }), ec = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: c }) => {
|
|
3336
|
-
const u = R(null), [l, d] = O(r), h = t.at(l),
|
|
3336
|
+
const u = R(null), [l, d] = O(r), h = t.at(l), m = l > 0, p = l < t.length - 1;
|
|
3337
3337
|
M(() => {
|
|
3338
3338
|
n && d(r);
|
|
3339
3339
|
}, [r, n]), M(() => {
|
|
@@ -3342,16 +3342,16 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3342
3342
|
const x = E((g) => {
|
|
3343
3343
|
switch (g.key) {
|
|
3344
3344
|
case "ArrowLeft":
|
|
3345
|
-
g.stopPropagation(),
|
|
3345
|
+
g.stopPropagation(), m && d((f) => f - 1);
|
|
3346
3346
|
break;
|
|
3347
3347
|
case "ArrowRight":
|
|
3348
|
-
g.stopPropagation(), p && d((
|
|
3348
|
+
g.stopPropagation(), p && d((f) => f + 1);
|
|
3349
3349
|
break;
|
|
3350
3350
|
case "Escape":
|
|
3351
3351
|
g.stopPropagation(), e();
|
|
3352
3352
|
break;
|
|
3353
3353
|
}
|
|
3354
|
-
}, [p,
|
|
3354
|
+
}, [p, m, e]);
|
|
3355
3355
|
return Jt(x), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3356
3356
|
/* @__PURE__ */ s.jsx(Vn, { show: n, onClick: e }),
|
|
3357
3357
|
/* @__PURE__ */ s.jsxs("div", { ref: u, className: w("luminus-lightbox rounded shadow", te.lightbox, {
|
|
@@ -3362,10 +3362,10 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3362
3362
|
i && /* @__PURE__ */ s.jsx(Bn, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
|
|
3363
3363
|
g.length > 0 && i(Array.from(g));
|
|
3364
3364
|
}, icon: /* @__PURE__ */ s.jsx(Ut, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3365
|
-
h && (c == null ? void 0 : c.map(({ label: g, onClick:
|
|
3365
|
+
h && (c == null ? void 0 : c.map(({ label: g, onClick: f, ...v }, b) => /* @__PURE__ */ s.jsx(
|
|
3366
3366
|
Gn,
|
|
3367
3367
|
{
|
|
3368
|
-
onClick: () =>
|
|
3368
|
+
onClick: () => f(h.id),
|
|
3369
3369
|
...v,
|
|
3370
3370
|
children: g
|
|
3371
3371
|
},
|
|
@@ -3376,15 +3376,15 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3376
3376
|
] }),
|
|
3377
3377
|
t.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(Q, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3378
3378
|
h && /* @__PURE__ */ s.jsxs("div", { className: te.photoContainer, children: [
|
|
3379
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
3379
|
+
/* @__PURE__ */ s.jsx("div", { role: m ? "button" : void 0, className: w("align-items-start", te.navButton), onClick: () => m && d((g) => g - 1), children: m && /* @__PURE__ */ s.jsx(it, { style: { fontSize: "40px" } }) }),
|
|
3380
3380
|
/* @__PURE__ */ s.jsx("img", { src: h.lgSrc, alt: h.alt, className: w("rounded", te.photo) }),
|
|
3381
3381
|
/* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: w("align-items-end", te.navButton), onClick: () => p && d((g) => g + 1), children: p && /* @__PURE__ */ s.jsx(ct, { style: { fontSize: "40px" } }) })
|
|
3382
3382
|
] }),
|
|
3383
|
-
/* @__PURE__ */ s.jsx("div", { className: te.photosPreview, children: t.map((g,
|
|
3383
|
+
/* @__PURE__ */ s.jsx("div", { className: te.photosPreview, children: t.map((g, f) => (
|
|
3384
3384
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
3385
|
-
/* @__PURE__ */ s.jsx("img", { role:
|
|
3386
|
-
[te.selected]:
|
|
3387
|
-
}), onClick: () => d(
|
|
3385
|
+
/* @__PURE__ */ s.jsx("img", { role: f !== l ? "button" : void 0, src: g.smSrc, alt: g.alt, className: w("rounded", te.photo, {
|
|
3386
|
+
[te.selected]: f === l
|
|
3387
|
+
}), onClick: () => d(f) }, g.id)
|
|
3388
3388
|
)) })
|
|
3389
3389
|
] })
|
|
3390
3390
|
] });
|
|
@@ -3427,33 +3427,33 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3427
3427
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), kc = ({ InputContainer: n = Ye, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: c, withoutLabel: u }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: u, children: /* @__PURE__ */ s.jsx(J.Check, { id: `check-${e}`, type: c ?? "checkbox", label: e ?? "", checked: t, onChange: (l) => {
|
|
3428
3428
|
var d;
|
|
3429
3429
|
r && r(((d = l.target) == null ? void 0 : d.checked) ?? !1);
|
|
3430
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Cc = ({ InputContainer: n = Ye, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: c, size: u, hidden: l, disabled: d, showClearIcon: h, clearValue:
|
|
3431
|
-
const g = e === "number",
|
|
3430
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Cc = ({ InputContainer: n = Ye, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: c, size: u, hidden: l, disabled: d, showClearIcon: h, clearValue: m, list: p, className: x }) => {
|
|
3431
|
+
const g = e === "number", f = E(() => {
|
|
3432
3432
|
if (!r)
|
|
3433
3433
|
return;
|
|
3434
|
-
const D =
|
|
3434
|
+
const D = m ?? null;
|
|
3435
3435
|
r(g ? D ? Number(D) : null : (D == null ? void 0 : D.toString()) ?? "");
|
|
3436
|
-
}, [
|
|
3437
|
-
const
|
|
3438
|
-
r && (g && r(
|
|
3436
|
+
}, [m, g, r]), v = R(null), [b, y] = O((t == null ? void 0 : t.toString()) ?? ""), j = E((D) => {
|
|
3437
|
+
const I = D;
|
|
3438
|
+
r && (g && r(I ? parseInt(I, 10) : null), r(I || null));
|
|
3439
3439
|
}, [g, r]), k = E((D) => {
|
|
3440
3440
|
var _;
|
|
3441
|
-
const
|
|
3441
|
+
const I = (_ = D.target) == null ? void 0 : _.value;
|
|
3442
3442
|
if (!o) {
|
|
3443
|
-
j(
|
|
3443
|
+
j(I);
|
|
3444
3444
|
return;
|
|
3445
3445
|
}
|
|
3446
|
-
y(
|
|
3447
|
-
j(
|
|
3446
|
+
y(I), v.current !== null && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
3447
|
+
j(I);
|
|
3448
3448
|
}, o);
|
|
3449
3449
|
}, [o, j]);
|
|
3450
3450
|
M(() => {
|
|
3451
3451
|
y(t === null ? "" : t.toString());
|
|
3452
3452
|
}, [t]);
|
|
3453
|
-
const [C,
|
|
3453
|
+
const [C, T] = O(!1), S = en(e, t ? t.toString() ?? null : null, C);
|
|
3454
3454
|
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: i, label: a ?? "", hidden: l, children: [
|
|
3455
|
-
/* @__PURE__ */ s.jsx(J.Control, { type:
|
|
3456
|
-
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick:
|
|
3455
|
+
/* @__PURE__ */ s.jsx(J.Control, { type: S, placeholder: c ?? a, size: u, value: o ? b : t ?? "", onChange: k, className: x ?? "", hidden: l, disabled: d ?? !1, list: p, onFocus: () => T(!0), onBlur: () => T(!1) }),
|
|
3456
|
+
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: f, children: /* @__PURE__ */ s.jsx(_e, {}) }) })
|
|
3457
3457
|
] });
|
|
3458
3458
|
}, Nc = ({
|
|
3459
3459
|
InputContainer: n = Ye,
|
|
@@ -3468,7 +3468,7 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3468
3468
|
disabled: l,
|
|
3469
3469
|
showClearIcon: d,
|
|
3470
3470
|
clearValue: h,
|
|
3471
|
-
noSortOptions:
|
|
3471
|
+
noSortOptions: m,
|
|
3472
3472
|
className: p,
|
|
3473
3473
|
noEmptyOption: x
|
|
3474
3474
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
@@ -3476,120 +3476,117 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3476
3476
|
const g = E(() => {
|
|
3477
3477
|
if (!r)
|
|
3478
3478
|
return;
|
|
3479
|
-
const
|
|
3480
|
-
r(i ?
|
|
3479
|
+
const f = h ?? null;
|
|
3480
|
+
r(i ? f ? Number(f) : null : (f == null ? void 0 : f.toString()) ?? "");
|
|
3481
3481
|
}, [h, i, r]);
|
|
3482
3482
|
return /* @__PURE__ */ s.jsxs(n, { withoutLabel: a, label: o ?? "", hidden: u, children: [
|
|
3483
|
-
/* @__PURE__ */ s.jsxs(J.Select, { size: c, value: e ?? "", onChange: (
|
|
3483
|
+
/* @__PURE__ */ s.jsxs(J.Select, { size: c, value: e ?? "", onChange: (f) => {
|
|
3484
3484
|
var b;
|
|
3485
3485
|
if (!r)
|
|
3486
3486
|
return;
|
|
3487
|
-
const v = (b =
|
|
3487
|
+
const v = (b = f.target) == null ? void 0 : b.value;
|
|
3488
3488
|
i && r(v ? parseInt(v, 10) : null), r(v || null);
|
|
3489
3489
|
}, className: p ?? "", hidden: u, disabled: l ?? !1, children: [
|
|
3490
3490
|
x && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3491
|
-
t == null ? void 0 : t.sort((
|
|
3491
|
+
t == null ? void 0 : t.sort((f, v) => m ? 0 : (f.name ?? "").localeCompare(v.name ?? "")).map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id ?? "", children: f.name }, f.id))
|
|
3492
3492
|
] }),
|
|
3493
3493
|
d && e && r && !l && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(_e, {}) }) })
|
|
3494
3494
|
] });
|
|
3495
|
-
}, $c = ({ InputContainer: n = Ye, items: e, defaultSelection: t, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: c, onSelect: u, label: l, withoutLabel: d, size: h, additionalColumns:
|
|
3496
|
-
var C,
|
|
3497
|
-
const [g,
|
|
3495
|
+
}, $c = ({ InputContainer: n = Ye, items: e, defaultSelection: t, onClickSelectedItem: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: c, onSelect: u, label: l, withoutLabel: d, size: h, additionalColumns: m, hidden: p, disabled: x }) => {
|
|
3496
|
+
var C, T;
|
|
3497
|
+
const [g, f] = O(t), [v, b] = O(!1);
|
|
3498
3498
|
M(() => {
|
|
3499
|
-
|
|
3499
|
+
f(t);
|
|
3500
3500
|
}, [t]);
|
|
3501
|
-
const y = E((
|
|
3502
|
-
|
|
3503
|
-
}, []), j = E((
|
|
3504
|
-
b(!1), y(
|
|
3501
|
+
const y = E((S) => {
|
|
3502
|
+
f(S);
|
|
3503
|
+
}, []), j = E((S) => {
|
|
3504
|
+
b(!1), y(S);
|
|
3505
3505
|
}, [y]);
|
|
3506
3506
|
M(() => {
|
|
3507
3507
|
u && u(g);
|
|
3508
3508
|
}, [g, u]);
|
|
3509
3509
|
const k = R(null);
|
|
3510
3510
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { withoutLabel: d, label: l ?? "", hidden: p, inputContainerClassName: w({ "luminus-dropdown-select-open": v }), children: [
|
|
3511
|
-
/* @__PURE__ */ s.jsxs(J.Select, { ref: k, size: h, value: (g == null ? void 0 : g.id) ?? "", onChange: (
|
|
3512
|
-
id: c ? Number(
|
|
3511
|
+
/* @__PURE__ */ s.jsxs(J.Select, { ref: k, size: h, value: (g == null ? void 0 : g.id) ?? "", onChange: (S) => f({
|
|
3512
|
+
id: c ? Number(S.target.value) ?? null : S.target.value,
|
|
3513
3513
|
name: ""
|
|
3514
|
-
}), onMouseDown: (
|
|
3515
|
-
|
|
3514
|
+
}), onMouseDown: (S) => {
|
|
3515
|
+
S.currentTarget.focus(), S.preventDefault();
|
|
3516
3516
|
}, onClick: () => {
|
|
3517
3517
|
b(!0);
|
|
3518
3518
|
}, disabled: x && r === void 0, className: w({ "luminus-dropdown-picker-disabled": x }), hidden: p, children: [
|
|
3519
3519
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3520
3520
|
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name && ((C = t.name) == null ? void 0 : C.length) > 0 ? t.name : t.id }),
|
|
3521
|
-
g && /* @__PURE__ */ s.jsx("option", { value: g.id ?? void 0, children: g.name && ((
|
|
3521
|
+
g && /* @__PURE__ */ s.jsx("option", { value: g.id ?? void 0, children: g.name && ((T = g.name) == null ? void 0 : T.length) > 0 ? g.name : g.id })
|
|
3522
3522
|
] }),
|
|
3523
|
-
k.current && /* @__PURE__ */ s.jsx(pt, { show: v, onCancel: () => b(!1), items: e, currentSelection: g, onSelectionChange: j, onSearchQueryChange: o, texts: a, additionalColumns:
|
|
3523
|
+
k.current && /* @__PURE__ */ s.jsx(pt, { show: v, onCancel: () => b(!1), items: e, currentSelection: g, onSelectionChange: j, onSearchQueryChange: o, texts: a, additionalColumns: m, isLoading: i, disabled: x, inputRef: k })
|
|
3524
3524
|
] }) });
|
|
3525
3525
|
}, Ic = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: c, withoutLabel: u }) => {
|
|
3526
|
-
const { register: l, formState: d, setValue: h } = le(), [
|
|
3526
|
+
const { register: l, formState: d, setValue: h } = le(), [m, p] = O(void 0);
|
|
3527
3527
|
M(() => {
|
|
3528
3528
|
const g = e.split(".");
|
|
3529
|
-
let
|
|
3529
|
+
let f = d.errors;
|
|
3530
3530
|
g.forEach((v) => {
|
|
3531
|
-
|
|
3532
|
-
}), p(
|
|
3531
|
+
f !== void 0 && (f = f[v]);
|
|
3532
|
+
}), p(f);
|
|
3533
3533
|
}, [d, e]);
|
|
3534
|
-
const x =
|
|
3534
|
+
const x = m !== void 0;
|
|
3535
3535
|
return /* @__PURE__ */ s.jsxs(n, { isForCheckInput: !0, hidden: i, label: `${t}${a ? " *" : ""}`, isInvalid: x, withoutLabel: u, children: [
|
|
3536
3536
|
/* @__PURE__ */ s.jsx(J.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${t}${a ? " *" : ""}`, ...l(e, {
|
|
3537
3537
|
onChange: () => {
|
|
3538
3538
|
r && r.forEach((g) => h(g, null));
|
|
3539
3539
|
}
|
|
3540
3540
|
}), isInvalid: x, hidden: i, disabled: c, className: "w-100" }),
|
|
3541
|
-
|
|
3541
|
+
m && /* @__PURE__ */ s.jsx(pe, { message: m.message })
|
|
3542
3542
|
] });
|
|
3543
3543
|
}, Tc = ({ InputContainer: n = me, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: c }) => {
|
|
3544
|
-
const { register: u, formState: l, setValue: d, watch: h } = le(), [
|
|
3544
|
+
const { register: u, formState: l, setValue: d, watch: h } = le(), [m, p] = O(void 0), x = z(() => r, [r]);
|
|
3545
3545
|
M(() => {
|
|
3546
|
-
const
|
|
3546
|
+
const f = t.split(".");
|
|
3547
3547
|
let v = l.errors;
|
|
3548
|
-
|
|
3548
|
+
f.forEach((b) => {
|
|
3549
3549
|
v !== void 0 && (v = v[b]);
|
|
3550
3550
|
}), p(v);
|
|
3551
3551
|
}, [l, t]);
|
|
3552
|
-
const g =
|
|
3552
|
+
const g = m !== void 0;
|
|
3553
3553
|
return /* @__PURE__ */ s.jsxs(n, { isForRadioInput: !0, hidden: c, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: g, children: [
|
|
3554
|
-
x.map((
|
|
3554
|
+
x.map((f) => /* @__PURE__ */ s.jsx(J.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: h(t) === f.id, ...u(t, {
|
|
3555
3555
|
onChange: () => {
|
|
3556
3556
|
o && o.forEach((v) => d(v, null));
|
|
3557
3557
|
}
|
|
3558
|
-
}), isInvalid: g, hidden: c, disabled: i, className: "w-100" },
|
|
3559
|
-
|
|
3558
|
+
}), isInvalid: g, hidden: c, disabled: i, className: "w-100" }, f.id)),
|
|
3559
|
+
m && /* @__PURE__ */ s.jsx(pe, { message: m.message })
|
|
3560
3560
|
] });
|
|
3561
|
-
}, Sc = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: c, hidden: u, disabled: l,
|
|
3562
|
-
const { register:
|
|
3563
|
-
const
|
|
3564
|
-
|
|
3565
|
-
}, [i,
|
|
3566
|
-
const
|
|
3567
|
-
let
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
}),
|
|
3571
|
-
}, [
|
|
3561
|
+
}, Sc = ({ InputContainer: n = me, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: c, hidden: u, disabled: l, rows: d, withoutLabel: h }) => {
|
|
3562
|
+
const { register: m, formState: p, setValue: x, watch: g } = le(), [f, v] = O(void 0), b = E(() => {
|
|
3563
|
+
const k = i ?? null;
|
|
3564
|
+
x(e, (k == null ? void 0 : k.toString()) ?? "");
|
|
3565
|
+
}, [i, x, e]), y = E(() => {
|
|
3566
|
+
const k = e.split(".");
|
|
3567
|
+
let C = p.errors;
|
|
3568
|
+
k.forEach((T) => {
|
|
3569
|
+
C !== void 0 && (C = C[T]);
|
|
3570
|
+
}), v(C);
|
|
3571
|
+
}, [p, e]);
|
|
3572
3572
|
M(() => {
|
|
3573
|
-
|
|
3574
|
-
}, [
|
|
3575
|
-
const
|
|
3576
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel:
|
|
3577
|
-
/* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, ...
|
|
3573
|
+
y();
|
|
3574
|
+
}, [y]);
|
|
3575
|
+
const j = f !== void 0;
|
|
3576
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: j, children: [
|
|
3577
|
+
/* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, ...m(e, {
|
|
3578
3578
|
onChange: () => {
|
|
3579
|
-
r && r.forEach((
|
|
3579
|
+
r && r.forEach((k) => x(k, null));
|
|
3580
3580
|
}
|
|
3581
|
-
}), isInvalid:
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
} }),
|
|
3585
|
-
a && m(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3586
|
-
v && /* @__PURE__ */ s.jsx(pe, { message: v.message })
|
|
3581
|
+
}), isInvalid: j, hidden: u, disabled: l, rows: d ?? 2, className: "w-100" }),
|
|
3582
|
+
a && g(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3583
|
+
f && /* @__PURE__ */ s.jsx(pe, { message: f.message })
|
|
3587
3584
|
] });
|
|
3588
|
-
}, Ec = ({ InputContainer: n = me, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: c, clearValue: u, required: l, hidden: d, disabled: h, withoutLabel:
|
|
3589
|
-
const { register: x, formState: g, setValue:
|
|
3585
|
+
}, Ec = ({ InputContainer: n = me, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: c, clearValue: u, required: l, hidden: d, disabled: h, withoutLabel: m, list: p }) => {
|
|
3586
|
+
const { register: x, formState: g, setValue: f, watch: v } = le(), [b, y] = O(void 0), j = E(() => {
|
|
3590
3587
|
const _ = u ?? null;
|
|
3591
|
-
e === "number" ?
|
|
3592
|
-
}, [u, e,
|
|
3588
|
+
e === "number" ? f(t, _ !== null ? Number(_) : null) : f(t, (_ == null ? void 0 : _.toString()) ?? "");
|
|
3589
|
+
}, [u, e, f, t]), k = E(() => {
|
|
3593
3590
|
const _ = t.split(".");
|
|
3594
3591
|
let $ = g.errors;
|
|
3595
3592
|
_.forEach((A) => {
|
|
@@ -3599,43 +3596,43 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3599
3596
|
M(() => {
|
|
3600
3597
|
k();
|
|
3601
3598
|
}, [k]);
|
|
3602
|
-
const C = b !== void 0, [
|
|
3603
|
-
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: d, withoutLabel:
|
|
3604
|
-
/* @__PURE__ */ s.jsx(J.Control, { type:
|
|
3605
|
-
|
|
3599
|
+
const C = b !== void 0, [T, S] = O(!1), D = v(t), I = en(e, D ?? null, T);
|
|
3600
|
+
return /* @__PURE__ */ s.jsxs(n, { label: `${r}${l ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: C, children: [
|
|
3601
|
+
/* @__PURE__ */ s.jsx(J.Control, { type: I, placeholder: o ?? r, size: a, onFocus: () => {
|
|
3602
|
+
S(!0);
|
|
3606
3603
|
}, ...x(t, {
|
|
3607
3604
|
setValueAs: (_) => e === "number" ? _ == null || _ === "" ? null : parseInt(_, 10) : _ == null || _ === "" ? null : _,
|
|
3608
3605
|
onChange: () => {
|
|
3609
|
-
i && i.forEach((_) =>
|
|
3606
|
+
i && i.forEach((_) => f(_, null, { shouldDirty: !0, shouldValidate: !0 }));
|
|
3610
3607
|
},
|
|
3611
|
-
onBlur: () =>
|
|
3608
|
+
onBlur: () => S(!1)
|
|
3612
3609
|
}), isInvalid: C, hidden: d, disabled: h, list: p, className: "w-100" }),
|
|
3613
3610
|
c && v(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3614
3611
|
b && /* @__PURE__ */ s.jsx(pe, { message: b.message })
|
|
3615
3612
|
] });
|
|
3616
|
-
}, Oc = ({ InputContainer: n = me, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: c, hidden: u, disabled: l, items: d, onSearchQueryChange: h, onClickSelectedItem:
|
|
3617
|
-
const { formState: b, setValue: y, watch: j, control: k } = le(), [C,
|
|
3613
|
+
}, Oc = ({ InputContainer: n = me, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: c, hidden: u, disabled: l, items: d, onSearchQueryChange: h, onClickSelectedItem: m, texts: p, isLoading: x, withoutLabel: g, additionalColumns: f, CustomOnChangeComponent: v }) => {
|
|
3614
|
+
const { formState: b, setValue: y, watch: j, control: k } = le(), [C, T] = O(void 0), [S, D] = O(!1), [I, _] = O(!1), $ = j(e) ?? null, A = $ === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : j(`${e}-DropdownName`), B = z(() => $ == null ? null : { id: $ ?? null, name: A ?? "" }, [$, A]), G = E(() => {
|
|
3618
3615
|
const Y = e.split(".");
|
|
3619
3616
|
let se = b.errors;
|
|
3620
3617
|
Y.forEach((Ve) => {
|
|
3621
3618
|
se !== void 0 && (se = se[Ve]);
|
|
3622
|
-
}),
|
|
3619
|
+
}), T(se);
|
|
3623
3620
|
}, [b, e]), K = E((Y) => {
|
|
3624
3621
|
if ((Y == null ? void 0 : Y.id) === $)
|
|
3625
3622
|
return;
|
|
3626
3623
|
if (a && a.forEach((Ve) => y(Ve, null, { shouldDirty: !0, shouldValidate: !0 })), Y === null) {
|
|
3627
3624
|
y(e, null, {
|
|
3628
3625
|
shouldDirty: !0,
|
|
3629
|
-
shouldValidate:
|
|
3626
|
+
shouldValidate: I
|
|
3630
3627
|
}), y(`${e}-DropdownName`, null);
|
|
3631
3628
|
return;
|
|
3632
3629
|
}
|
|
3633
3630
|
let se = null;
|
|
3634
3631
|
i ? se = (Y == null ? void 0 : Y.id) !== null && (Y == null ? void 0 : Y.id) !== "" ? parseInt(Y.id.toString(), 10) : null : se = Y.id === null || Y.id === void 0 || Y.id === "" ? null : Y.id, y(e, se, {
|
|
3635
3632
|
shouldDirty: !0,
|
|
3636
|
-
shouldValidate:
|
|
3633
|
+
shouldValidate: I
|
|
3637
3634
|
}), y(`${e}-DropdownName`, Y.name ?? "");
|
|
3638
|
-
}, [y, e,
|
|
3635
|
+
}, [y, e, I, i, a, $]), oe = E((Y) => {
|
|
3639
3636
|
D(!1), K(Y);
|
|
3640
3637
|
}, [K]), q = E(() => {
|
|
3641
3638
|
D(!1);
|
|
@@ -3645,13 +3642,13 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3645
3642
|
}, [G]), M(() => {
|
|
3646
3643
|
b.isSubmitted && _(!0);
|
|
3647
3644
|
}, [b]);
|
|
3648
|
-
const U = R(null), N = C !== void 0, L =
|
|
3649
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: g, isInvalid: N, inputContainerClassName: w({ "luminus-dropdown-select-open":
|
|
3645
|
+
const U = R(null), N = C !== void 0, L = m !== void 0, ge = L && B !== null;
|
|
3646
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${t}${c ? " *" : ""}`, hidden: u, withoutLabel: g, isInvalid: N, inputContainerClassName: w({ "luminus-dropdown-select-open": S }), children: [
|
|
3650
3647
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-dropdown-picker-input-container position-relative w-100", children: [
|
|
3651
3648
|
/* @__PURE__ */ s.jsx(Qt, { control: k, name: e, render: () => /* @__PURE__ */ s.jsx(J.Select, { size: r, onMouseDown: (Y) => {
|
|
3652
3649
|
Y.currentTarget.focus(), Y.preventDefault();
|
|
3653
3650
|
}, onClick: () => {
|
|
3654
|
-
L ? ge &&
|
|
3651
|
+
L ? ge && m(B) : !l && D(!0);
|
|
3655
3652
|
}, ref: U, value: $ ?? "", onChange: () => {
|
|
3656
3653
|
}, isInvalid: N, hidden: u, className: w("w-100", {
|
|
3657
3654
|
"luminus-dropdown-picker-disabled": l,
|
|
@@ -3663,43 +3660,43 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3663
3660
|
] }) : null
|
|
3664
3661
|
] }),
|
|
3665
3662
|
C && /* @__PURE__ */ s.jsx(pe, { message: C.message }),
|
|
3666
|
-
U.current && /* @__PURE__ */ s.jsx(pt, { show:
|
|
3663
|
+
U.current && /* @__PURE__ */ s.jsx(pt, { show: S, onCancel: q, items: d, currentSelection: B, onSelectionChange: oe, onSearchQueryChange: h, texts: p, additionalColumns: f, isLoading: x, disabled: l, inputRef: U })
|
|
3667
3664
|
] }) });
|
|
3668
3665
|
}, Mc = ({ InputContainer: n = me, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: c, resetsFields: u, multiple: l, accept: d, withoutLabel: h }) => {
|
|
3669
|
-
const { watch:
|
|
3666
|
+
const { watch: m, setValue: p, register: x, formState: g } = le(), [f, v] = O(void 0), b = E(() => {
|
|
3670
3667
|
p(t, "");
|
|
3671
3668
|
}, [p, t]), y = E(() => {
|
|
3672
3669
|
const k = t.split(".");
|
|
3673
3670
|
let C = g.errors;
|
|
3674
|
-
k.forEach((
|
|
3675
|
-
C !== void 0 && (C = C[
|
|
3671
|
+
k.forEach((T) => {
|
|
3672
|
+
C !== void 0 && (C = C[T]);
|
|
3676
3673
|
}), v(C);
|
|
3677
3674
|
}, [g, t]);
|
|
3678
3675
|
M(y, [y]);
|
|
3679
|
-
const j =
|
|
3676
|
+
const j = f !== void 0;
|
|
3680
3677
|
return /* @__PURE__ */ s.jsxs(n, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: j, children: [
|
|
3681
3678
|
/* @__PURE__ */ s.jsx(Mn, { type: "file", multiple: l, accept: d.join(", "), placeholder: a ?? e, isInvalid: j, hidden: r, disabled: i, className: "w-100", ...x(t, {
|
|
3682
3679
|
onChange: () => {
|
|
3683
3680
|
u && u.forEach((k) => p(k, null));
|
|
3684
3681
|
}
|
|
3685
3682
|
}) }),
|
|
3686
|
-
c &&
|
|
3687
|
-
|
|
3683
|
+
c && m(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(Z, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(_e, {}) }) }),
|
|
3684
|
+
f && /* @__PURE__ */ s.jsx(pe, { message: f.message })
|
|
3688
3685
|
] });
|
|
3689
3686
|
}, Pc = ({ children: n, onStorno: e }) => {
|
|
3690
3687
|
const { formState: t } = le(), [r, o] = O(!1);
|
|
3691
3688
|
return M(() => {
|
|
3692
3689
|
o(Object.keys(t.dirtyFields).length > 0);
|
|
3693
3690
|
}, [t]), r ? /* @__PURE__ */ s.jsx(ka, { onStorno: e, children: n }) : null;
|
|
3694
|
-
}, Dc = ({ InputContainer: n = me, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: c, hidden: u, disabled: l, withoutLabel: d, noSortOptions: h, suffixIdToName:
|
|
3695
|
-
const { customSelectTexts: p } = F(ce), { formState: x, setValue: g, watch:
|
|
3691
|
+
}, Dc = ({ InputContainer: n = me, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: c, hidden: u, disabled: l, withoutLabel: d, noSortOptions: h, suffixIdToName: m }) => {
|
|
3692
|
+
const { customSelectTexts: p } = F(ce), { formState: x, setValue: g, watch: f, control: v } = le(), [b, y] = O(void 0), [j, k] = O(!1), [C, T] = O(!1), [S, D] = O(""), I = f(t), _ = z(() => e.find((N) => N.id === I) ?? null, [e, I]), $ = E(() => {
|
|
3696
3693
|
const N = t.split(".");
|
|
3697
3694
|
let L = x.errors;
|
|
3698
3695
|
N.forEach((ge) => {
|
|
3699
3696
|
L !== void 0 && (L = L[ge]);
|
|
3700
3697
|
}), y(L);
|
|
3701
3698
|
}, [x, t]), A = E((N) => {
|
|
3702
|
-
if ((N == null ? void 0 : N.id) ===
|
|
3699
|
+
if ((N == null ? void 0 : N.id) === I)
|
|
3703
3700
|
return;
|
|
3704
3701
|
if (a && a.forEach((ge) => g(ge, null, { shouldDirty: !0, shouldValidate: !0 })), N === null) {
|
|
3705
3702
|
g(t, null, {
|
|
@@ -3713,7 +3710,7 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3713
3710
|
shouldDirty: !0,
|
|
3714
3711
|
shouldValidate: C
|
|
3715
3712
|
});
|
|
3716
|
-
}, [g, t, i, a,
|
|
3713
|
+
}, [g, t, i, a, I, C]), B = E((N) => {
|
|
3717
3714
|
k(!1), A(N);
|
|
3718
3715
|
}, [A]), G = E((N) => {
|
|
3719
3716
|
D(N);
|
|
@@ -3721,24 +3718,24 @@ const fi = "_item_1dy8x_1", Un = {
|
|
|
3721
3718
|
M(() => {
|
|
3722
3719
|
$();
|
|
3723
3720
|
}, [$]), M(() => {
|
|
3724
|
-
x.isSubmitted &&
|
|
3721
|
+
x.isSubmitted && T(!0);
|
|
3725
3722
|
}, [x]);
|
|
3726
3723
|
const K = E((N) => {
|
|
3727
3724
|
var L;
|
|
3728
|
-
return N === null ? "" : !N.name || N.name.length === 0 ? ((L = N.id) == null ? void 0 : L.toString()) ?? "" :
|
|
3729
|
-
}, [
|
|
3725
|
+
return N === null ? "" : !N.name || N.name.length === 0 ? ((L = N.id) == null ? void 0 : L.toString()) ?? "" : m ? `${N.name} (${N.id})` : N.name;
|
|
3726
|
+
}, [m]), oe = z(() => e.map((N) => ({
|
|
3730
3727
|
id: N.id,
|
|
3731
3728
|
name: K(N)
|
|
3732
3729
|
})).filter((N) => {
|
|
3733
3730
|
var L;
|
|
3734
|
-
return
|
|
3735
|
-
}).sort((N, L) => h ? 0 : (N.name ?? "").localeCompare(L.name ?? "")), [e, h,
|
|
3731
|
+
return S ? (L = N.name) == null ? void 0 : L.toLowerCase().includes(S.toLowerCase()) : !0;
|
|
3732
|
+
}).sort((N, L) => h ? 0 : (N.name ?? "").localeCompare(L.name ?? "")), [e, h, S, K]), q = R(null), U = b !== void 0;
|
|
3736
3733
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(n, { label: `${r}${c ? " *" : ""}`, hidden: u, withoutLabel: d, isInvalid: U, inputContainerClassName: w({ "luminus-dropdown-select-open": j }), children: [
|
|
3737
3734
|
/* @__PURE__ */ s.jsx(Qt, { control: v, name: t, render: () => /* @__PURE__ */ s.jsx(J.Select, { size: o, onMouseDown: (N) => {
|
|
3738
3735
|
N.currentTarget.focus(), N.preventDefault();
|
|
3739
3736
|
}, onClick: () => {
|
|
3740
3737
|
k(!0);
|
|
3741
|
-
}, ref: q, value:
|
|
3738
|
+
}, ref: q, value: I ?? "", onChange: () => {
|
|
3742
3739
|
}, isInvalid: U, hidden: u, disabled: l, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (_ == null ? void 0 : _.id) ?? "", children: K(_) }) }) }),
|
|
3743
3740
|
b && /* @__PURE__ */ s.jsx(pe, { message: b.message }),
|
|
3744
3741
|
q.current && /* @__PURE__ */ s.jsx(pt, { show: j, onCancel: () => k(!1), items: oe, currentSelection: _ ?? null, onSelectionChange: B, onSearchQueryChange: G, texts: p, disabled: l, inputRef: q, autoHideSearch: !0, allItemsLength: e.length })
|