@hybr1d-tech/charizard 0.4.100 → 0.4.101
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/hybr1d-ui.js +205 -203
- package/dist/hybr1d-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import * as
|
|
2
|
+
import * as _ from "react";
|
|
3
3
|
import Qs, { useLayoutEffect as fo, useContext as ho, useRef as Te, useState as Ie, createContext as vo, useMemo as Ue, useCallback as fe, Component as Io, Fragment as Bn, useEffect as Mt, forwardRef as Ks, createElement as Gn } from "react";
|
|
4
4
|
import * as vt from "@zag-js/menu";
|
|
5
5
|
import B from "clsx";
|
|
@@ -78,10 +78,10 @@ function Do() {
|
|
|
78
78
|
{
|
|
79
79
|
for (var A = arguments.length, j = new Array(A > 1 ? A - 1 : 0), D = 1; D < A; D++)
|
|
80
80
|
j[D - 1] = arguments[D];
|
|
81
|
-
|
|
81
|
+
C("error", g, j);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function C(g, A, j) {
|
|
85
85
|
{
|
|
86
86
|
var D = m.ReactDebugCurrentFrame, Y = D.getStackAddendum();
|
|
87
87
|
Y !== "" && (A += "%s", j = j.concat([Y]));
|
|
@@ -767,21 +767,21 @@ function rr({
|
|
|
767
767
|
}) {
|
|
768
768
|
const [v, f] = ue(
|
|
769
769
|
vt.machine({
|
|
770
|
-
id:
|
|
770
|
+
id: _.useId(),
|
|
771
771
|
positioning: { placement: (d == null ? void 0 : d.placement) || "bottom-end" }
|
|
772
772
|
})
|
|
773
773
|
), I = vt.connect(v, f, de);
|
|
774
|
-
|
|
774
|
+
_.useEffect(() => {
|
|
775
775
|
!i || !(u != null && u.setIsActive) || u.setIsActive(I.open);
|
|
776
776
|
}, [I.open]);
|
|
777
|
-
const h =
|
|
778
|
-
|
|
777
|
+
const h = _.useRef(I.open);
|
|
778
|
+
_.useEffect(() => {
|
|
779
779
|
h.current = I.open;
|
|
780
780
|
}, [I.open]);
|
|
781
781
|
const x = () => {
|
|
782
782
|
h.current && (console.log("scrolling..."), I.setOpen(!1));
|
|
783
783
|
};
|
|
784
|
-
|
|
784
|
+
_.useEffect(() => {
|
|
785
785
|
if (p) {
|
|
786
786
|
const b = document.getElementById("hui-table-scroll-container");
|
|
787
787
|
if (b)
|
|
@@ -892,7 +892,7 @@ function xi({
|
|
|
892
892
|
variant: s = "regular",
|
|
893
893
|
isTable: r = !1
|
|
894
894
|
}) {
|
|
895
|
-
const [n, i] =
|
|
895
|
+
const [n, i] = _.useState(!1);
|
|
896
896
|
return /* @__PURE__ */ o.jsx(
|
|
897
897
|
rr,
|
|
898
898
|
{
|
|
@@ -1086,7 +1086,7 @@ function la({
|
|
|
1086
1086
|
filterDispatch: l
|
|
1087
1087
|
}) {
|
|
1088
1088
|
var x, m;
|
|
1089
|
-
const [c, a] =
|
|
1089
|
+
const [c, a] = _.useState(""), [u, d] = ue(
|
|
1090
1090
|
vt.machine({
|
|
1091
1091
|
id: t.id,
|
|
1092
1092
|
closeOnSelect: !1
|
|
@@ -1094,15 +1094,15 @@ function la({
|
|
|
1094
1094
|
), p = vt.connect(u, d, de), v = t.options.filter((b) => b.name ? b.name.toLowerCase().includes(c.toLowerCase()) : !1), f = s == null ? void 0 : s.values.length, I = () => {
|
|
1095
1095
|
i(s == null ? void 0 : s.key, l), p.setOpen(!1);
|
|
1096
1096
|
}, h = (b) => {
|
|
1097
|
-
let
|
|
1097
|
+
let C = !1;
|
|
1098
1098
|
return e.forEach((y) => {
|
|
1099
1099
|
y.values.forEach((w) => {
|
|
1100
1100
|
if (w === b) {
|
|
1101
|
-
|
|
1101
|
+
C = !0;
|
|
1102
1102
|
return;
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
|
-
}),
|
|
1105
|
+
}), C;
|
|
1106
1106
|
};
|
|
1107
1107
|
return /* @__PURE__ */ o.jsxs("div", { children: [
|
|
1108
1108
|
/* @__PURE__ */ o.jsxs(
|
|
@@ -1134,7 +1134,7 @@ function la({
|
|
|
1134
1134
|
placeholder: ((m = t.config) == null ? void 0 : m.placeholder) || "Search"
|
|
1135
1135
|
}
|
|
1136
1136
|
) }),
|
|
1137
|
-
/* @__PURE__ */ o.jsx("div", { className: U.options, children: v.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: U.optionsEmpty, children: "No results found" }) : v.map((b,
|
|
1137
|
+
/* @__PURE__ */ o.jsx("div", { className: U.options, children: v.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: U.optionsEmpty, children: "No results found" }) : v.map((b, C) => /* @__PURE__ */ o.jsx(
|
|
1138
1138
|
"div",
|
|
1139
1139
|
{
|
|
1140
1140
|
...p.getItemProps({ value: b.value }),
|
|
@@ -1155,7 +1155,7 @@ function la({
|
|
|
1155
1155
|
b.value
|
|
1156
1156
|
)
|
|
1157
1157
|
},
|
|
1158
|
-
|
|
1158
|
+
C
|
|
1159
1159
|
)) }),
|
|
1160
1160
|
/* @__PURE__ */ o.jsx("div", { className: U.footerBox, children: /* @__PURE__ */ o.jsxs("div", { className: U.footer, children: [
|
|
1161
1161
|
/* @__PURE__ */ o.jsxs("div", { className: U.selectedFilters, children: [
|
|
@@ -1214,11 +1214,11 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1214
1214
|
const b = s(h, x);
|
|
1215
1215
|
if (!v)
|
|
1216
1216
|
return b;
|
|
1217
|
-
const
|
|
1218
|
-
return c === void 0 ? (d == null || d.send(
|
|
1217
|
+
const C = m === void 0 ? { type: l || "anonymous" } : typeof m == "string" ? { type: m } : m;
|
|
1218
|
+
return c === void 0 ? (d == null || d.send(C, r()), b) : (d == null || d.send(
|
|
1219
1219
|
{
|
|
1220
|
-
...
|
|
1221
|
-
type: `${c}/${
|
|
1220
|
+
...C,
|
|
1221
|
+
type: `${c}/${C.type}`
|
|
1222
1222
|
},
|
|
1223
1223
|
{
|
|
1224
1224
|
...kt(a.name),
|
|
@@ -1367,7 +1367,7 @@ function da({ filterConfig: t }) {
|
|
|
1367
1367
|
resetFilters: f.resetFilters,
|
|
1368
1368
|
resetAllFilters: f.resetAllFilters
|
|
1369
1369
|
}));
|
|
1370
|
-
if (
|
|
1370
|
+
if (_.useEffect(() => {
|
|
1371
1371
|
!(e != null && e.length) || s || c((e == null ? void 0 : e.map((f) => ({ key: f.key, values: [] }))) || []);
|
|
1372
1372
|
}, [e == null ? void 0 : e.length, s]), !e || !e.length)
|
|
1373
1373
|
return null;
|
|
@@ -1527,7 +1527,7 @@ const wa = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%20
|
|
|
1527
1527
|
active: Ja
|
|
1528
1528
|
};
|
|
1529
1529
|
function $a({ selectors: t }) {
|
|
1530
|
-
const [e, s] =
|
|
1530
|
+
const [e, s] = _.useState(0);
|
|
1531
1531
|
return /* @__PURE__ */ o.jsx("div", { className: xn.box, children: t.map((r, n) => /* @__PURE__ */ o.jsx(
|
|
1532
1532
|
"div",
|
|
1533
1533
|
{
|
|
@@ -1556,8 +1556,8 @@ function xs({
|
|
|
1556
1556
|
isHeader: s,
|
|
1557
1557
|
...r
|
|
1558
1558
|
}) {
|
|
1559
|
-
const n =
|
|
1560
|
-
return
|
|
1559
|
+
const n = _.useRef(null);
|
|
1560
|
+
return _.useEffect(() => {
|
|
1561
1561
|
typeof t == "boolean" && (n.current.indeterminate = !r.checked && t);
|
|
1562
1562
|
}, [n, t]), /* @__PURE__ */ o.jsx("span", { className: Ft.checkboxSpan, style: { display: s ? "flex" : void 0 }, children: /* @__PURE__ */ o.jsx(
|
|
1563
1563
|
"input",
|
|
@@ -1574,8 +1574,8 @@ function el({
|
|
|
1574
1574
|
row: e,
|
|
1575
1575
|
...s
|
|
1576
1576
|
}) {
|
|
1577
|
-
const r =
|
|
1578
|
-
return
|
|
1577
|
+
const r = _.useRef(null);
|
|
1578
|
+
return _.useEffect(() => {
|
|
1579
1579
|
r.current.indeterminate = t;
|
|
1580
1580
|
}, [r, t]), /* @__PURE__ */ o.jsx("span", { className: Ft.radioSpan, children: /* @__PURE__ */ o.jsx(
|
|
1581
1581
|
"input",
|
|
@@ -1611,7 +1611,7 @@ function Zm({
|
|
|
1611
1611
|
infiniteScrollConfig: f
|
|
1612
1612
|
}) {
|
|
1613
1613
|
var H;
|
|
1614
|
-
const [I, h] =
|
|
1614
|
+
const [I, h] = _.useState([]), [x, m] = _.useState({}), [b, C] = _.useState({}), { ref: y, inView: w } = _o(), R = !e.isFetching && !e.isError && !t.length, { isCheckbox: G, isRadio: N, setSelectedRows: T } = i;
|
|
1615
1615
|
zt(() => {
|
|
1616
1616
|
if (!n || !I.length)
|
|
1617
1617
|
return;
|
|
@@ -1622,7 +1622,7 @@ function Zm({
|
|
|
1622
1622
|
return;
|
|
1623
1623
|
const F = X.getSelectedRowModel().rows.map((E) => E.original);
|
|
1624
1624
|
T([...F]);
|
|
1625
|
-
}, [b]),
|
|
1625
|
+
}, [b]), _.useEffect(() => {
|
|
1626
1626
|
f && w && f.fetchNextPage();
|
|
1627
1627
|
}, [f == null ? void 0 : f.fetchNextPage, w]);
|
|
1628
1628
|
const W = [
|
|
@@ -1684,7 +1684,7 @@ function Zm({
|
|
|
1684
1684
|
onColumnVisibilityChange: m,
|
|
1685
1685
|
enableRowSelection: !0,
|
|
1686
1686
|
// enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
|
|
1687
|
-
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) ||
|
|
1687
|
+
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) || C,
|
|
1688
1688
|
enableMultiRowSelection: !N,
|
|
1689
1689
|
manualPagination: !0,
|
|
1690
1690
|
manualFiltering: !0,
|
|
@@ -1696,22 +1696,22 @@ function Zm({
|
|
|
1696
1696
|
},
|
|
1697
1697
|
getRowId: i != null && i.rowIdKey ? (F) => F[i == null ? void 0 : i.rowIdKey] : void 0
|
|
1698
1698
|
});
|
|
1699
|
-
return
|
|
1699
|
+
return _.useLayoutEffect(() => {
|
|
1700
1700
|
if (G && N)
|
|
1701
1701
|
throw new Error(
|
|
1702
1702
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
1703
1703
|
);
|
|
1704
|
-
}, []),
|
|
1704
|
+
}, []), _.useLayoutEffect(() => {
|
|
1705
1705
|
var F;
|
|
1706
1706
|
G || (F = X.getColumn(Tt)) == null || F.toggleVisibility(!1);
|
|
1707
|
-
}, []),
|
|
1707
|
+
}, []), _.useLayoutEffect(() => {
|
|
1708
1708
|
var F;
|
|
1709
1709
|
N || (F = X.getColumn(Ut)) == null || F.toggleVisibility(!1);
|
|
1710
|
-
}, []),
|
|
1710
|
+
}, []), _.useLayoutEffect(() => {
|
|
1711
1711
|
var F;
|
|
1712
1712
|
l.isDropdownActions || (F = X.getColumn($t)) == null || F.toggleVisibility(!1);
|
|
1713
|
-
}, []),
|
|
1714
|
-
i != null && i.clearOnSearch &&
|
|
1713
|
+
}, []), _.useEffect(() => {
|
|
1714
|
+
i != null && i.clearOnSearch && C({});
|
|
1715
1715
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ o.jsxs("div", { className: K.box, children: [
|
|
1716
1716
|
!e.isError && a && /* @__PURE__ */ o.jsxs("div", { className: K.header, children: [
|
|
1717
1717
|
!v && /* @__PURE__ */ o.jsxs("div", { className: K.meta, children: [
|
|
@@ -1728,7 +1728,7 @@ function Zm({
|
|
|
1728
1728
|
search: c.search,
|
|
1729
1729
|
setSearch: c.setSearch,
|
|
1730
1730
|
placeholder: c.placeholder,
|
|
1731
|
-
clearIconClearFn: () =>
|
|
1731
|
+
clearIconClearFn: () => C({})
|
|
1732
1732
|
}
|
|
1733
1733
|
) })
|
|
1734
1734
|
] })
|
|
@@ -1895,11 +1895,11 @@ function Sl({
|
|
|
1895
1895
|
drawerPosition: m = "right",
|
|
1896
1896
|
customContainerStyles: b
|
|
1897
1897
|
}) {
|
|
1898
|
-
const
|
|
1899
|
-
return
|
|
1898
|
+
const C = _.useRef(null), y = _.useRef(null), w = _.useRef(null), R = m === "left" ? "-100%" : "100%", G = !u && !d;
|
|
1899
|
+
return _.useEffect(() => {
|
|
1900
1900
|
const N = setTimeout(() => {
|
|
1901
1901
|
var T, W;
|
|
1902
|
-
|
|
1902
|
+
C.current && y && w && (C.current.style.transform = t ? "translateX(0)" : `translateX(${R})`, y.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(T = w.current) == null ? void 0 : T.clientHeight}px)`, y.current.style.height = `calc(100vh - (1.75rem * 2) - ${(W = w.current) == null ? void 0 : W.clientHeight}px)`);
|
|
1903
1903
|
}, 0);
|
|
1904
1904
|
return () => {
|
|
1905
1905
|
clearTimeout(N);
|
|
@@ -1910,7 +1910,7 @@ function Sl({
|
|
|
1910
1910
|
"div",
|
|
1911
1911
|
{
|
|
1912
1912
|
className: B(be.container, be[c], be[`${m}Align`]),
|
|
1913
|
-
ref:
|
|
1913
|
+
ref: C,
|
|
1914
1914
|
style: b,
|
|
1915
1915
|
children: /* @__PURE__ */ o.jsxs("div", { className: be.content, children: [
|
|
1916
1916
|
u && /* @__PURE__ */ o.jsx(
|
|
@@ -2001,7 +2001,7 @@ function cr({
|
|
|
2001
2001
|
placeholder: v = "Placeholder",
|
|
2002
2002
|
onBlur: f
|
|
2003
2003
|
}) {
|
|
2004
|
-
const I =
|
|
2004
|
+
const I = _.useRef(null);
|
|
2005
2005
|
return /* @__PURE__ */ o.jsxs("div", { className: oe.inputWrapper, children: [
|
|
2006
2006
|
p === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
2007
2007
|
"textarea",
|
|
@@ -2055,20 +2055,20 @@ function an({
|
|
|
2055
2055
|
showDropdownSearch: i = !0
|
|
2056
2056
|
}) {
|
|
2057
2057
|
var m;
|
|
2058
|
-
const l = e === "left" ? "left" : "right", [c, a] =
|
|
2059
|
-
|
|
2058
|
+
const l = e === "left" ? "left" : "right", [c, a] = _.useState(!1), u = _.useRef(null), [d, p] = _.useState(""), [v, f] = _.useState(!0);
|
|
2059
|
+
_.useEffect(() => (document.addEventListener("click", I), () => {
|
|
2060
2060
|
document.removeEventListener("click", I);
|
|
2061
2061
|
}), []);
|
|
2062
2062
|
const I = (b) => {
|
|
2063
|
-
var
|
|
2064
|
-
(
|
|
2063
|
+
var C;
|
|
2064
|
+
(C = u.current) != null && C.contains(b.target) || a(!1);
|
|
2065
2065
|
}, h = () => {
|
|
2066
2066
|
var b;
|
|
2067
2067
|
if (c)
|
|
2068
2068
|
a(!1), f(!0);
|
|
2069
2069
|
else {
|
|
2070
2070
|
a(!0);
|
|
2071
|
-
const
|
|
2071
|
+
const C = (b = u.current) == null ? void 0 : b.getBoundingClientRect(), y = (C == null ? void 0 : C.right) + (C == null ? void 0 : C.width), w = window.innerWidth - 100;
|
|
2072
2072
|
y > w && f(!1);
|
|
2073
2073
|
}
|
|
2074
2074
|
}, x = (b) => (b.label + " " + b.value).toLowerCase().includes(d.toLowerCase());
|
|
@@ -2100,8 +2100,8 @@ function an({
|
|
|
2100
2100
|
"div",
|
|
2101
2101
|
{
|
|
2102
2102
|
className: oe.dropdownOption,
|
|
2103
|
-
onClick: (
|
|
2104
|
-
|
|
2103
|
+
onClick: (C) => {
|
|
2104
|
+
C.stopPropagation(), n(b), h();
|
|
2105
2105
|
},
|
|
2106
2106
|
children: b.label
|
|
2107
2107
|
},
|
|
@@ -2195,11 +2195,11 @@ pr.id = se.INPUT_LEFT_ELEMENT;
|
|
|
2195
2195
|
gr.displayName = se.INPUT_RIGHT_ELEMENT;
|
|
2196
2196
|
gr.id = se.INPUT_RIGHT_ELEMENT;
|
|
2197
2197
|
function br({ children: t }) {
|
|
2198
|
-
const e = {}, s =
|
|
2198
|
+
const e = {}, s = _.Children.toArray(t);
|
|
2199
2199
|
s.forEach((n) => {
|
|
2200
2200
|
n.type.id === "InputLeftElement" && (e.paddingInlineStart = "36px"), n.type.id === "InputRightElement" && (e.paddingInlineEnd = "36px"), n.type.id === "InputLeftAddon" && (e.borderTopLeftRadius = 0, e.borderBottomLeftRadius = 0), n.type.id === "InputRightAddon" && (e.borderTopRightRadius = 0, e.borderBottomRightRadius = 0);
|
|
2201
2201
|
});
|
|
2202
|
-
const r = s.map((n) => n.type.id !== "Input" ? n :
|
|
2202
|
+
const r = s.map((n) => n.type.id !== "Input" ? n : _.cloneElement(n, {
|
|
2203
2203
|
...n.props,
|
|
2204
2204
|
customStyles: { ...e, ...n.props.customStyles }
|
|
2205
2205
|
}));
|
|
@@ -2253,7 +2253,7 @@ function Qe({
|
|
|
2253
2253
|
}) {
|
|
2254
2254
|
const [n, i] = ue(
|
|
2255
2255
|
It.machine({
|
|
2256
|
-
id:
|
|
2256
|
+
id: _.useId(),
|
|
2257
2257
|
openDelay: e,
|
|
2258
2258
|
closeDelay: s,
|
|
2259
2259
|
positioning: {
|
|
@@ -2261,7 +2261,7 @@ function Qe({
|
|
|
2261
2261
|
gutter: 3
|
|
2262
2262
|
}
|
|
2263
2263
|
})
|
|
2264
|
-
), l = It.connect(n, i, de), c =
|
|
2264
|
+
), l = It.connect(n, i, de), c = _.Children.toArray(t).map((a) => _.cloneElement(a, {
|
|
2265
2265
|
...a.props ?? {},
|
|
2266
2266
|
api: l
|
|
2267
2267
|
}));
|
|
@@ -2325,19 +2325,19 @@ function Xm({
|
|
|
2325
2325
|
showOverlay: n = !0,
|
|
2326
2326
|
machineProps: i = {}
|
|
2327
2327
|
}) {
|
|
2328
|
-
const l =
|
|
2328
|
+
const l = _.useCallback(
|
|
2329
2329
|
(p) => {
|
|
2330
2330
|
p || e();
|
|
2331
2331
|
},
|
|
2332
2332
|
[e]
|
|
2333
2333
|
), [c, a] = ue(
|
|
2334
2334
|
Yt.machine({
|
|
2335
|
-
id:
|
|
2335
|
+
id: _.useId(),
|
|
2336
2336
|
open: t,
|
|
2337
2337
|
onOpenChange: (p) => l(p.open),
|
|
2338
2338
|
...i
|
|
2339
2339
|
})
|
|
2340
|
-
), u = Yt.connect(c, a, de), d =
|
|
2340
|
+
), u = Yt.connect(c, a, de), d = _.Children.toArray(s).map((p) => _.cloneElement(p, {
|
|
2341
2341
|
...p.props,
|
|
2342
2342
|
api: u,
|
|
2343
2343
|
size: r
|
|
@@ -2351,7 +2351,7 @@ function Mm({ children: t, api: e, customStyles: s = {} }) {
|
|
|
2351
2351
|
return /* @__PURE__ */ o.jsx("div", { ...e.descriptionProps, className: Fe.body, style: s, children: t });
|
|
2352
2352
|
}
|
|
2353
2353
|
function zm({ children: t, api: e, size: s = "md" }) {
|
|
2354
|
-
const r =
|
|
2354
|
+
const r = _.Children.toArray(t).map((n) => _.cloneElement(n, {
|
|
2355
2355
|
...n.props,
|
|
2356
2356
|
api: e
|
|
2357
2357
|
}));
|
|
@@ -2408,7 +2408,7 @@ function $m({
|
|
|
2408
2408
|
}) {
|
|
2409
2409
|
const [i, l] = ue(
|
|
2410
2410
|
ps.machine({
|
|
2411
|
-
id:
|
|
2411
|
+
id: _.useId(),
|
|
2412
2412
|
positioning: { placement: e },
|
|
2413
2413
|
closeOnInteractOutside: !0,
|
|
2414
2414
|
portalled: !1,
|
|
@@ -2418,11 +2418,11 @@ function $m({
|
|
|
2418
2418
|
function a() {
|
|
2419
2419
|
c == null || c.setOpen(!1);
|
|
2420
2420
|
}
|
|
2421
|
-
|
|
2421
|
+
_.useEffect(() => (r && n && n.current && n.current.addEventListener("scroll", a), () => {
|
|
2422
2422
|
var d;
|
|
2423
2423
|
r && n && ((d = n.current) == null || d.removeEventListener("scroll", a));
|
|
2424
2424
|
}), [n == null ? void 0 : n.current]);
|
|
2425
|
-
const u =
|
|
2425
|
+
const u = _.Children.toArray(t).map((d) => _.cloneElement(d, {
|
|
2426
2426
|
...d.props,
|
|
2427
2427
|
api: c
|
|
2428
2428
|
}));
|
|
@@ -2458,7 +2458,7 @@ function Qm({
|
|
|
2458
2458
|
positionerStyles: i
|
|
2459
2459
|
}) {
|
|
2460
2460
|
var d, p;
|
|
2461
|
-
const l = e != null && e.portalled ? xt :
|
|
2461
|
+
const l = e != null && e.portalled ? xt : _.Fragment, c = _.Children.toArray(t).map((v) => _.cloneElement(v, {
|
|
2462
2462
|
...v.props,
|
|
2463
2463
|
api: e
|
|
2464
2464
|
})), a = !["black", "gray"].includes(s), u = {
|
|
@@ -2685,7 +2685,7 @@ function t2({
|
|
|
2685
2685
|
return /* @__PURE__ */ o.jsxs(
|
|
2686
2686
|
"div",
|
|
2687
2687
|
{
|
|
2688
|
-
onClick: (
|
|
2688
|
+
onClick: (C) => C.stopPropagation(),
|
|
2689
2689
|
style: u,
|
|
2690
2690
|
className: ie.selectContainer,
|
|
2691
2691
|
children: [
|
|
@@ -2713,9 +2713,9 @@ function t2({
|
|
|
2713
2713
|
SingleValue: Jn
|
|
2714
2714
|
},
|
|
2715
2715
|
isDisabled: f,
|
|
2716
|
-
onChange: (
|
|
2716
|
+
onChange: (C, y) => {
|
|
2717
2717
|
e(
|
|
2718
|
-
h ?
|
|
2718
|
+
h ? C.map((w) => w.value) : (C == null ? void 0 : C.value) ?? "",
|
|
2719
2719
|
y
|
|
2720
2720
|
);
|
|
2721
2721
|
},
|
|
@@ -3098,8 +3098,8 @@ function Ss(t, e, s, r) {
|
|
|
3098
3098
|
const v = Xe(i), f = r;
|
|
3099
3099
|
let I = v, h = I.frameElement;
|
|
3100
3100
|
for (; h && r && f !== I; ) {
|
|
3101
|
-
const x = Ns(h), m = h.getBoundingClientRect(), b = Un(h),
|
|
3102
|
-
a *= x.x, u *= x.y, d *= x.x, p *= x.y, a +=
|
|
3101
|
+
const x = Ns(h), m = h.getBoundingClientRect(), b = Un(h), C = m.left + (h.clientLeft + parseFloat(b.paddingLeft)) * x.x, y = m.top + (h.clientTop + parseFloat(b.paddingTop)) * x.y;
|
|
3102
|
+
a *= x.x, u *= x.y, d *= x.x, p *= x.y, a += C, u += y, I = Xe(h), h = I.frameElement;
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
3105
3105
|
return Jc({
|
|
@@ -3130,17 +3130,17 @@ function su(t, e) {
|
|
|
3130
3130
|
rootMargin: -f + "px " + -I + "px " + -h + "px " + -x + "px",
|
|
3131
3131
|
threshold: Yc(0, zc(1, a)) || 1
|
|
3132
3132
|
};
|
|
3133
|
-
let
|
|
3133
|
+
let C = !0;
|
|
3134
3134
|
function y(w) {
|
|
3135
3135
|
const R = w[0].intersectionRatio;
|
|
3136
3136
|
if (R !== a) {
|
|
3137
|
-
if (!
|
|
3137
|
+
if (!C)
|
|
3138
3138
|
return l();
|
|
3139
3139
|
R ? l(!1, R) : r = setTimeout(() => {
|
|
3140
3140
|
l(!1, 1e-7);
|
|
3141
3141
|
}, 1e3);
|
|
3142
3142
|
}
|
|
3143
|
-
|
|
3143
|
+
C = !1;
|
|
3144
3144
|
}
|
|
3145
3145
|
try {
|
|
3146
3146
|
s = new IntersectionObserver(y, {
|
|
@@ -3174,8 +3174,8 @@ function ru(t, e, s, r) {
|
|
|
3174
3174
|
l && (f = new ResizeObserver((m) => {
|
|
3175
3175
|
let [b] = m;
|
|
3176
3176
|
b && b.target === u && f && (f.unobserve(e), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
3177
|
-
var
|
|
3178
|
-
(
|
|
3177
|
+
var C;
|
|
3178
|
+
(C = f) == null || C.observe(e);
|
|
3179
3179
|
})), s();
|
|
3180
3180
|
}), u && !a && f.observe(u), f.observe(e));
|
|
3181
3181
|
let I, h = a ? Ss(t) : null;
|
|
@@ -3331,7 +3331,7 @@ function Cu(t) {
|
|
|
3331
3331
|
};
|
|
3332
3332
|
if (!s || !s.offsetParent)
|
|
3333
3333
|
return u;
|
|
3334
|
-
var d = a.getBoundingClientRect(), p = d.height, v = s.getBoundingClientRect(), f = v.bottom, I = v.height, h = v.top, x = s.offsetParent.getBoundingClientRect(), m = x.top, b = l ? window.innerHeight : cu(a),
|
|
3334
|
+
var d = a.getBoundingClientRect(), p = d.height, v = s.getBoundingClientRect(), f = v.bottom, I = v.height, h = v.top, x = s.offsetParent.getBoundingClientRect(), m = x.top, b = l ? window.innerHeight : cu(a), C = Nr(a), y = parseInt(getComputedStyle(s).marginBottom, 10), w = parseInt(getComputedStyle(s).marginTop, 10), R = m - w, G = b - h, N = R + C, T = p - C - h, W = f - b + C + y, X = C + h - w, H = 160;
|
|
3335
3335
|
switch (n) {
|
|
3336
3336
|
case "auto":
|
|
3337
3337
|
case "bottom":
|
|
@@ -3414,7 +3414,7 @@ var Er = function(e) {
|
|
|
3414
3414
|
marginTop: c.menuGutter
|
|
3415
3415
|
});
|
|
3416
3416
|
}, wr = /* @__PURE__ */ vo(null), Au = function(e) {
|
|
3417
|
-
var s = e.children, r = e.minMenuHeight, n = e.maxMenuHeight, i = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = ho(wr) || {}, d = u.setPortalPlacement, p = Te(null), v = Ie(n), f = me(v, 2), I = f[0], h = f[1], x = Ie(null), m = me(x, 2), b = m[0],
|
|
3417
|
+
var s = e.children, r = e.minMenuHeight, n = e.maxMenuHeight, i = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = ho(wr) || {}, d = u.setPortalPlacement, p = Te(null), v = Ie(n), f = me(v, 2), I = f[0], h = f[1], x = Ie(null), m = me(x, 2), b = m[0], C = m[1], y = a.spacing.controlHeight;
|
|
3418
3418
|
return Vn(function() {
|
|
3419
3419
|
var w = p.current;
|
|
3420
3420
|
if (w) {
|
|
@@ -3427,7 +3427,7 @@ var Er = function(e) {
|
|
|
3427
3427
|
isFixedPosition: R,
|
|
3428
3428
|
controlHeight: y
|
|
3429
3429
|
});
|
|
3430
|
-
h(N.maxHeight),
|
|
3430
|
+
h(N.maxHeight), C(N.placement), d == null || d(N.placement);
|
|
3431
3431
|
}
|
|
3432
3432
|
}, [n, i, l, c, r, d, y]), s({
|
|
3433
3433
|
ref: p,
|
|
@@ -3503,7 +3503,7 @@ var Er = function(e) {
|
|
|
3503
3503
|
return {
|
|
3504
3504
|
setPortalPlacement: f
|
|
3505
3505
|
};
|
|
3506
|
-
}, []), h = Ie(null), x = me(h, 2), m = x[0], b = x[1],
|
|
3506
|
+
}, []), h = Ie(null), x = me(h, 2), m = x[0], b = x[1], C = fe(function() {
|
|
3507
3507
|
if (n) {
|
|
3508
3508
|
var G = pu(n), N = c === "fixed" ? 0 : window.pageYOffset, T = G[v] + N;
|
|
3509
3509
|
(T !== (m == null ? void 0 : m.offset) || G.left !== (m == null ? void 0 : m.rect.left) || G.width !== (m == null ? void 0 : m.rect.width)) && b({
|
|
@@ -3513,13 +3513,13 @@ var Er = function(e) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
}, [n, c, v, m == null ? void 0 : m.offset, m == null ? void 0 : m.rect.left, m == null ? void 0 : m.rect.width]);
|
|
3515
3515
|
Vn(function() {
|
|
3516
|
-
|
|
3517
|
-
}, [
|
|
3516
|
+
C();
|
|
3517
|
+
}, [C]);
|
|
3518
3518
|
var y = fe(function() {
|
|
3519
|
-
typeof u.current == "function" && (u.current(), u.current = null), n && a.current && (u.current = ru(n, a.current,
|
|
3519
|
+
typeof u.current == "function" && (u.current(), u.current = null), n && a.current && (u.current = ru(n, a.current, C, {
|
|
3520
3520
|
elementResize: "ResizeObserver" in window
|
|
3521
3521
|
}));
|
|
3522
|
-
}, [n,
|
|
3522
|
+
}, [n, C]);
|
|
3523
3523
|
Vn(function() {
|
|
3524
3524
|
y();
|
|
3525
3525
|
}, [y]);
|
|
@@ -4106,7 +4106,7 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4106
4106
|
return "".concat(r).concat(s ? " for search term " + s : "", ".");
|
|
4107
4107
|
}
|
|
4108
4108
|
}, Wd = function(e) {
|
|
4109
|
-
var s = e.ariaSelection, r = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages, v = a.getOptionLabel, f = a.inputValue, I = a.isMulti, h = a.isOptionDisabled, x = a.isSearchable, m = a.menuIsOpen, b = a.options,
|
|
4109
|
+
var s = e.ariaSelection, r = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages, v = a.getOptionLabel, f = a.inputValue, I = a.isMulti, h = a.isOptionDisabled, x = a.isSearchable, m = a.menuIsOpen, b = a.options, C = a.screenReaderStatus, y = a.tabSelectsValue, w = a.isLoading, R = a["aria-label"], G = a["aria-live"], N = Ue(function() {
|
|
4110
4110
|
return P(P({}, Od), p || {});
|
|
4111
4111
|
}, [p]), T = Ue(function() {
|
|
4112
4112
|
var S = "";
|
|
@@ -4142,7 +4142,7 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4142
4142
|
}, [r, n, v, h, N, i, c, d]), X = Ue(function() {
|
|
4143
4143
|
var S = "";
|
|
4144
4144
|
if (m && b.length && !w && N.onFilter) {
|
|
4145
|
-
var O =
|
|
4145
|
+
var O = C({
|
|
4146
4146
|
count: i.length
|
|
4147
4147
|
});
|
|
4148
4148
|
S = N.onFilter({
|
|
@@ -4151,7 +4151,7 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4151
4151
|
});
|
|
4152
4152
|
}
|
|
4153
4153
|
return S;
|
|
4154
|
-
}, [i, f, m, N, b,
|
|
4154
|
+
}, [i, f, m, N, b, C, w]), H = (s == null ? void 0 : s.action) === "initial-input-focus", F = Ue(function() {
|
|
4155
4155
|
var S = "";
|
|
4156
4156
|
if (N.guidance) {
|
|
4157
4157
|
var O = n ? "value" : m ? "menu" : "input";
|
|
@@ -4497,8 +4497,8 @@ var $d = function(e) {
|
|
|
4497
4497
|
function Ud(t) {
|
|
4498
4498
|
var e = t.isEnabled, s = t.onBottomArrive, r = t.onBottomLeave, n = t.onTopArrive, i = t.onTopLeave, l = Te(!1), c = Te(!1), a = Te(0), u = Te(null), d = fe(function(x, m) {
|
|
4499
4499
|
if (u.current !== null) {
|
|
4500
|
-
var b = u.current,
|
|
4501
|
-
N > m && l.current && (r && r(x), l.current = !1), G && c.current && (i && i(x), c.current = !1), G && m > N ? (s && !l.current && s(x), R.scrollTop = y, T = !0, l.current = !0) : !G && -m >
|
|
4500
|
+
var b = u.current, C = b.scrollTop, y = b.scrollHeight, w = b.clientHeight, R = u.current, G = m > 0, N = y - w - C, T = !1;
|
|
4501
|
+
N > m && l.current && (r && r(x), l.current = !1), G && c.current && (i && i(x), c.current = !1), G && m > N ? (s && !l.current && s(x), R.scrollTop = y, T = !0, l.current = !0) : !G && -m > C && (n && !c.current && n(x), R.scrollTop = 0, T = !0, c.current = !0), T && $d(x);
|
|
4502
4502
|
}
|
|
4503
4503
|
}, [s, r, n, i]), p = fe(function(x) {
|
|
4504
4504
|
d(x, x.deltaY);
|
|
@@ -5079,7 +5079,7 @@ var zr = function(e) {
|
|
|
5079
5079
|
}, n.onValueInputFocus = function(a) {
|
|
5080
5080
|
a.preventDefault(), a.stopPropagation(), n.focus();
|
|
5081
5081
|
}, n.onKeyDown = function(a) {
|
|
5082
|
-
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue, v = u.escapeClearsValue, f = u.inputValue, I = u.isClearable, h = u.isDisabled, x = u.menuIsOpen, m = u.onKeyDown, b = u.tabSelectsValue,
|
|
5082
|
+
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue, v = u.escapeClearsValue, f = u.inputValue, I = u.isClearable, h = u.isDisabled, x = u.menuIsOpen, m = u.onKeyDown, b = u.tabSelectsValue, C = u.openMenuOnFocus, y = n.state, w = y.focusedOption, R = y.focusedValue, G = y.selectValue;
|
|
5083
5083
|
if (!h && !(typeof m == "function" && (m(a), a.defaultPrevented))) {
|
|
5084
5084
|
switch (n.blockOptionHover = !0, a.key) {
|
|
5085
5085
|
case "ArrowLeft":
|
|
@@ -5107,7 +5107,7 @@ var zr = function(e) {
|
|
|
5107
5107
|
case "Tab":
|
|
5108
5108
|
if (n.isComposing || a.shiftKey || !x || !b || !w || // don't capture the event if the menu opens on focus and the focused
|
|
5109
5109
|
// option is already selected; it breaks the flow of navigation
|
|
5110
|
-
|
|
5110
|
+
C && n.isOptionSelected(w, G))
|
|
5111
5111
|
return;
|
|
5112
5112
|
n.selectOption(w);
|
|
5113
5113
|
break;
|
|
@@ -5411,7 +5411,7 @@ var zr = function(e) {
|
|
|
5411
5411
|
// Renderers
|
|
5412
5412
|
// ==============================
|
|
5413
5413
|
function() {
|
|
5414
|
-
var n = this.props, i = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen, v = n.required, f = this.getComponents(), I = f.Input, h = this.state, x = h.inputIsHidden, m = h.ariaSelection, b = this.commonProps,
|
|
5414
|
+
var n = this.props, i = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen, v = n.required, f = this.getComponents(), I = f.Input, h = this.state, x = h.inputIsHidden, m = h.ariaSelection, b = this.commonProps, C = c || this.getElementId("input"), y = P(P(P({
|
|
5415
5415
|
"aria-autocomplete": "list",
|
|
5416
5416
|
"aria-expanded": p,
|
|
5417
5417
|
"aria-haspopup": !0,
|
|
@@ -5431,11 +5431,11 @@ var zr = function(e) {
|
|
|
5431
5431
|
} : {
|
|
5432
5432
|
"aria-describedby": this.getElementId("placeholder")
|
|
5433
5433
|
});
|
|
5434
|
-
return l ? /* @__PURE__ */
|
|
5434
|
+
return l ? /* @__PURE__ */ _.createElement(I, k({}, b, {
|
|
5435
5435
|
autoCapitalize: "none",
|
|
5436
5436
|
autoComplete: "off",
|
|
5437
5437
|
autoCorrect: "off",
|
|
5438
|
-
id:
|
|
5438
|
+
id: C,
|
|
5439
5439
|
innerRef: this.getInputRef,
|
|
5440
5440
|
isDisabled: i,
|
|
5441
5441
|
isHidden: x,
|
|
@@ -5447,8 +5447,8 @@ var zr = function(e) {
|
|
|
5447
5447
|
form: d,
|
|
5448
5448
|
type: "text",
|
|
5449
5449
|
value: a
|
|
5450
|
-
}, y)) : /* @__PURE__ */
|
|
5451
|
-
id:
|
|
5450
|
+
}, y)) : /* @__PURE__ */ _.createElement(Jd, k({
|
|
5451
|
+
id: C,
|
|
5452
5452
|
innerRef: this.getInputRef,
|
|
5453
5453
|
onBlur: this.onInputBlur,
|
|
5454
5454
|
onChange: tn,
|
|
@@ -5464,9 +5464,9 @@ var zr = function(e) {
|
|
|
5464
5464
|
}, {
|
|
5465
5465
|
key: "renderPlaceholderOrValue",
|
|
5466
5466
|
value: function() {
|
|
5467
|
-
var n = this, i = this.getComponents(), l = i.MultiValue, c = i.MultiValueContainer, a = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder, v = this.commonProps, f = this.props, I = f.controlShouldRenderValue, h = f.isDisabled, x = f.isMulti, m = f.inputValue, b = f.placeholder,
|
|
5467
|
+
var n = this, i = this.getComponents(), l = i.MultiValue, c = i.MultiValueContainer, a = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder, v = this.commonProps, f = this.props, I = f.controlShouldRenderValue, h = f.isDisabled, x = f.isMulti, m = f.inputValue, b = f.placeholder, C = this.state, y = C.selectValue, w = C.focusedValue, R = C.isFocused;
|
|
5468
5468
|
if (!this.hasValue() || !I)
|
|
5469
|
-
return m ? null : /* @__PURE__ */
|
|
5469
|
+
return m ? null : /* @__PURE__ */ _.createElement(p, k({}, v, {
|
|
5470
5470
|
key: "placeholder",
|
|
5471
5471
|
isDisabled: h,
|
|
5472
5472
|
isFocused: R,
|
|
@@ -5477,7 +5477,7 @@ var zr = function(e) {
|
|
|
5477
5477
|
if (x)
|
|
5478
5478
|
return y.map(function(N, T) {
|
|
5479
5479
|
var W = N === w, X = "".concat(n.getOptionLabel(N), "-").concat(n.getOptionValue(N));
|
|
5480
|
-
return /* @__PURE__ */
|
|
5480
|
+
return /* @__PURE__ */ _.createElement(l, k({}, v, {
|
|
5481
5481
|
components: {
|
|
5482
5482
|
Container: c,
|
|
5483
5483
|
Label: a,
|
|
@@ -5504,7 +5504,7 @@ var zr = function(e) {
|
|
|
5504
5504
|
if (m)
|
|
5505
5505
|
return null;
|
|
5506
5506
|
var G = y[0];
|
|
5507
|
-
return /* @__PURE__ */
|
|
5507
|
+
return /* @__PURE__ */ _.createElement(d, k({}, v, {
|
|
5508
5508
|
data: G,
|
|
5509
5509
|
isDisabled: h
|
|
5510
5510
|
}), this.formatOptionLabel(G, "value"));
|
|
@@ -5520,7 +5520,7 @@ var zr = function(e) {
|
|
|
5520
5520
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
5521
5521
|
"aria-hidden": "true"
|
|
5522
5522
|
};
|
|
5523
|
-
return /* @__PURE__ */
|
|
5523
|
+
return /* @__PURE__ */ _.createElement(i, k({}, l, {
|
|
5524
5524
|
innerProps: p,
|
|
5525
5525
|
isFocused: d
|
|
5526
5526
|
}));
|
|
@@ -5534,7 +5534,7 @@ var zr = function(e) {
|
|
|
5534
5534
|
var p = {
|
|
5535
5535
|
"aria-hidden": "true"
|
|
5536
5536
|
};
|
|
5537
|
-
return /* @__PURE__ */
|
|
5537
|
+
return /* @__PURE__ */ _.createElement(i, k({}, l, {
|
|
5538
5538
|
innerProps: p,
|
|
5539
5539
|
isDisabled: a,
|
|
5540
5540
|
isFocused: d
|
|
@@ -5547,7 +5547,7 @@ var zr = function(e) {
|
|
|
5547
5547
|
if (!i || !l)
|
|
5548
5548
|
return null;
|
|
5549
5549
|
var c = this.commonProps, a = this.props.isDisabled, u = this.state.isFocused;
|
|
5550
|
-
return /* @__PURE__ */
|
|
5550
|
+
return /* @__PURE__ */ _.createElement(l, k({}, c, {
|
|
5551
5551
|
isDisabled: a,
|
|
5552
5552
|
isFocused: u
|
|
5553
5553
|
}));
|
|
@@ -5563,7 +5563,7 @@ var zr = function(e) {
|
|
|
5563
5563
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
5564
5564
|
"aria-hidden": "true"
|
|
5565
5565
|
};
|
|
5566
|
-
return /* @__PURE__ */
|
|
5566
|
+
return /* @__PURE__ */ _.createElement(i, k({}, l, {
|
|
5567
5567
|
innerProps: u,
|
|
5568
5568
|
isDisabled: c,
|
|
5569
5569
|
isFocused: a
|
|
@@ -5572,7 +5572,7 @@ var zr = function(e) {
|
|
|
5572
5572
|
}, {
|
|
5573
5573
|
key: "renderMenu",
|
|
5574
5574
|
value: function() {
|
|
5575
|
-
var n = this, i = this.getComponents(), l = i.Group, c = i.GroupHeading, a = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, v = i.NoOptionsMessage, f = i.Option, I = this.commonProps, h = this.state.focusedOption, x = this.props, m = x.captureMenuScroll, b = x.inputValue,
|
|
5575
|
+
var n = this, i = this.getComponents(), l = i.Group, c = i.GroupHeading, a = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, v = i.NoOptionsMessage, f = i.Option, I = this.commonProps, h = this.state.focusedOption, x = this.props, m = x.captureMenuScroll, b = x.inputValue, C = x.isLoading, y = x.loadingMessage, w = x.minMenuHeight, R = x.maxMenuHeight, G = x.menuIsOpen, N = x.menuPlacement, T = x.menuPosition, W = x.menuPortalTarget, X = x.menuShouldBlockScroll, H = x.menuShouldScrollIntoView, F = x.noOptionsMessage, E = x.onMenuScrollToTop, S = x.onMenuScrollToBottom;
|
|
5576
5576
|
if (!G)
|
|
5577
5577
|
return null;
|
|
5578
5578
|
var O = function(pe, Se) {
|
|
@@ -5590,7 +5590,7 @@ var zr = function(e) {
|
|
|
5590
5590
|
"aria-selected": n.isAppleDevice ? void 0 : he
|
|
5591
5591
|
// is not supported on Apple devices
|
|
5592
5592
|
};
|
|
5593
|
-
return /* @__PURE__ */
|
|
5593
|
+
return /* @__PURE__ */ _.createElement(f, k({}, I, {
|
|
5594
5594
|
innerProps: ke,
|
|
5595
5595
|
data: ge,
|
|
5596
5596
|
isDisabled: Ee,
|
|
@@ -5607,7 +5607,7 @@ var zr = function(e) {
|
|
|
5607
5607
|
te = this.getCategorizedOptions().map(function(J) {
|
|
5608
5608
|
if (J.type === "group") {
|
|
5609
5609
|
var pe = J.data, Se = J.options, ve = J.index, ge = "".concat(n.getElementId("group"), "-").concat(ve), Ee = "".concat(ge, "-heading");
|
|
5610
|
-
return /* @__PURE__ */
|
|
5610
|
+
return /* @__PURE__ */ _.createElement(l, k({}, I, {
|
|
5611
5611
|
key: ge,
|
|
5612
5612
|
data: pe,
|
|
5613
5613
|
options: Se,
|
|
@@ -5623,20 +5623,20 @@ var zr = function(e) {
|
|
|
5623
5623
|
} else if (J.type === "option")
|
|
5624
5624
|
return O(J, "".concat(J.index));
|
|
5625
5625
|
});
|
|
5626
|
-
else if (
|
|
5626
|
+
else if (C) {
|
|
5627
5627
|
var ae = y({
|
|
5628
5628
|
inputValue: b
|
|
5629
5629
|
});
|
|
5630
5630
|
if (ae === null)
|
|
5631
5631
|
return null;
|
|
5632
|
-
te = /* @__PURE__ */
|
|
5632
|
+
te = /* @__PURE__ */ _.createElement(p, I, ae);
|
|
5633
5633
|
} else {
|
|
5634
5634
|
var Ge = F({
|
|
5635
5635
|
inputValue: b
|
|
5636
5636
|
});
|
|
5637
5637
|
if (Ge === null)
|
|
5638
5638
|
return null;
|
|
5639
|
-
te = /* @__PURE__ */
|
|
5639
|
+
te = /* @__PURE__ */ _.createElement(v, I, Ge);
|
|
5640
5640
|
}
|
|
5641
5641
|
var Ne = {
|
|
5642
5642
|
minMenuHeight: w,
|
|
@@ -5644,23 +5644,23 @@ var zr = function(e) {
|
|
|
5644
5644
|
menuPlacement: N,
|
|
5645
5645
|
menuPosition: T,
|
|
5646
5646
|
menuShouldScrollIntoView: H
|
|
5647
|
-
}, We = /* @__PURE__ */
|
|
5647
|
+
}, We = /* @__PURE__ */ _.createElement(Au, k({}, I, Ne), function(J) {
|
|
5648
5648
|
var pe = J.ref, Se = J.placerProps, ve = Se.placement, ge = Se.maxHeight;
|
|
5649
|
-
return /* @__PURE__ */
|
|
5649
|
+
return /* @__PURE__ */ _.createElement(a, k({}, I, Ne, {
|
|
5650
5650
|
innerRef: pe,
|
|
5651
5651
|
innerProps: {
|
|
5652
5652
|
onMouseDown: n.onMenuMouseDown,
|
|
5653
5653
|
onMouseMove: n.onMenuMouseMove
|
|
5654
5654
|
},
|
|
5655
|
-
isLoading:
|
|
5655
|
+
isLoading: C,
|
|
5656
5656
|
placement: ve
|
|
5657
|
-
}), /* @__PURE__ */
|
|
5657
|
+
}), /* @__PURE__ */ _.createElement(t0, {
|
|
5658
5658
|
captureEnabled: m,
|
|
5659
5659
|
onTopArrive: E,
|
|
5660
5660
|
onBottomArrive: S,
|
|
5661
5661
|
lockEnabled: X
|
|
5662
5662
|
}, function(Ee) {
|
|
5663
|
-
return /* @__PURE__ */
|
|
5663
|
+
return /* @__PURE__ */ _.createElement(u, k({}, I, {
|
|
5664
5664
|
innerRef: function(Le) {
|
|
5665
5665
|
n.getMenuListRef(Le), Ee(Le);
|
|
5666
5666
|
},
|
|
@@ -5669,13 +5669,13 @@ var zr = function(e) {
|
|
|
5669
5669
|
"aria-multiselectable": I.isMulti,
|
|
5670
5670
|
id: n.getElementId("listbox")
|
|
5671
5671
|
},
|
|
5672
|
-
isLoading:
|
|
5672
|
+
isLoading: C,
|
|
5673
5673
|
maxHeight: ge,
|
|
5674
5674
|
focusedOption: h
|
|
5675
5675
|
}), te);
|
|
5676
5676
|
}));
|
|
5677
5677
|
});
|
|
5678
|
-
return W || T === "fixed" ? /* @__PURE__ */
|
|
5678
|
+
return W || T === "fixed" ? /* @__PURE__ */ _.createElement(d, k({}, I, {
|
|
5679
5679
|
appendTo: W,
|
|
5680
5680
|
controlElement: this.controlRef,
|
|
5681
5681
|
menuPlacement: N,
|
|
@@ -5687,7 +5687,7 @@ var zr = function(e) {
|
|
|
5687
5687
|
value: function() {
|
|
5688
5688
|
var n = this, i = this.props, l = i.delimiter, c = i.isDisabled, a = i.isMulti, u = i.name, d = i.required, p = this.state.selectValue;
|
|
5689
5689
|
if (d && !this.hasValue() && !c)
|
|
5690
|
-
return /* @__PURE__ */
|
|
5690
|
+
return /* @__PURE__ */ _.createElement(o0, {
|
|
5691
5691
|
name: u,
|
|
5692
5692
|
onFocus: this.onValueInputFocus
|
|
5693
5693
|
});
|
|
@@ -5697,29 +5697,29 @@ var zr = function(e) {
|
|
|
5697
5697
|
var v = p.map(function(h) {
|
|
5698
5698
|
return n.getOptionValue(h);
|
|
5699
5699
|
}).join(l);
|
|
5700
|
-
return /* @__PURE__ */
|
|
5700
|
+
return /* @__PURE__ */ _.createElement("input", {
|
|
5701
5701
|
name: u,
|
|
5702
5702
|
type: "hidden",
|
|
5703
5703
|
value: v
|
|
5704
5704
|
});
|
|
5705
5705
|
} else {
|
|
5706
5706
|
var f = p.length > 0 ? p.map(function(h, x) {
|
|
5707
|
-
return /* @__PURE__ */
|
|
5707
|
+
return /* @__PURE__ */ _.createElement("input", {
|
|
5708
5708
|
key: "i-".concat(x),
|
|
5709
5709
|
name: u,
|
|
5710
5710
|
type: "hidden",
|
|
5711
5711
|
value: n.getOptionValue(h)
|
|
5712
5712
|
});
|
|
5713
|
-
}) : /* @__PURE__ */
|
|
5713
|
+
}) : /* @__PURE__ */ _.createElement("input", {
|
|
5714
5714
|
name: u,
|
|
5715
5715
|
type: "hidden",
|
|
5716
5716
|
value: ""
|
|
5717
5717
|
});
|
|
5718
|
-
return /* @__PURE__ */
|
|
5718
|
+
return /* @__PURE__ */ _.createElement("div", null, f);
|
|
5719
5719
|
}
|
|
5720
5720
|
else {
|
|
5721
5721
|
var I = p[0] ? this.getOptionValue(p[0]) : "";
|
|
5722
|
-
return /* @__PURE__ */
|
|
5722
|
+
return /* @__PURE__ */ _.createElement("input", {
|
|
5723
5723
|
name: u,
|
|
5724
5724
|
type: "hidden",
|
|
5725
5725
|
value: I
|
|
@@ -5730,7 +5730,7 @@ var zr = function(e) {
|
|
|
5730
5730
|
key: "renderLiveRegion",
|
|
5731
5731
|
value: function() {
|
|
5732
5732
|
var n = this.commonProps, i = this.state, l = i.ariaSelection, c = i.focusedOption, a = i.focusedValue, u = i.isFocused, d = i.selectValue, p = this.getFocusableOptions();
|
|
5733
|
-
return /* @__PURE__ */
|
|
5733
|
+
return /* @__PURE__ */ _.createElement(Hd, k({}, n, {
|
|
5734
5734
|
id: this.getElementId("live-region"),
|
|
5735
5735
|
ariaSelection: l,
|
|
5736
5736
|
focusedOption: c,
|
|
@@ -5745,7 +5745,7 @@ var zr = function(e) {
|
|
|
5745
5745
|
key: "render",
|
|
5746
5746
|
value: function() {
|
|
5747
5747
|
var n = this.getComponents(), i = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id, v = u.isDisabled, f = u.menuIsOpen, I = this.state.isFocused, h = this.commonProps = this.getCommonProps();
|
|
5748
|
-
return /* @__PURE__ */
|
|
5748
|
+
return /* @__PURE__ */ _.createElement(c, k({}, h, {
|
|
5749
5749
|
className: d,
|
|
5750
5750
|
innerProps: {
|
|
5751
5751
|
id: p,
|
|
@@ -5753,7 +5753,7 @@ var zr = function(e) {
|
|
|
5753
5753
|
},
|
|
5754
5754
|
isDisabled: v,
|
|
5755
5755
|
isFocused: I
|
|
5756
|
-
}), this.renderLiveRegion(), /* @__PURE__ */
|
|
5756
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ _.createElement(i, k({}, h, {
|
|
5757
5757
|
innerRef: this.getControlRef,
|
|
5758
5758
|
innerProps: {
|
|
5759
5759
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -5762,19 +5762,19 @@ var zr = function(e) {
|
|
|
5762
5762
|
isDisabled: v,
|
|
5763
5763
|
isFocused: I,
|
|
5764
5764
|
menuIsOpen: f
|
|
5765
|
-
}), /* @__PURE__ */
|
|
5765
|
+
}), /* @__PURE__ */ _.createElement(a, k({}, h, {
|
|
5766
5766
|
isDisabled: v
|
|
5767
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */
|
|
5767
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ _.createElement(l, k({}, h, {
|
|
5768
5768
|
isDisabled: v
|
|
5769
5769
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
5770
5770
|
}
|
|
5771
5771
|
}], [{
|
|
5772
5772
|
key: "getDerivedStateFromProps",
|
|
5773
5773
|
value: function(n, i) {
|
|
5774
|
-
var l = i.prevProps, c = i.clearFocusValueOnUpdate, a = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused, v = i.instancePrefix, f = n.options, I = n.value, h = n.menuIsOpen, x = n.inputValue, m = n.isMulti, b = nn(I),
|
|
5774
|
+
var l = i.prevProps, c = i.clearFocusValueOnUpdate, a = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused, v = i.instancePrefix, f = n.options, I = n.value, h = n.menuIsOpen, x = n.inputValue, m = n.isMulti, b = nn(I), C = {};
|
|
5775
5775
|
if (l && (I !== l.value || f !== l.options || h !== l.menuIsOpen || x !== l.inputValue)) {
|
|
5776
5776
|
var y = h ? I0(n, b) : [], w = h ? Ws(Zt(n, b), "".concat(v, "-option")) : [], R = c ? x0(i, b) : null, G = C0(i, y), N = Sn(w, G);
|
|
5777
|
-
|
|
5777
|
+
C = {
|
|
5778
5778
|
selectValue: b,
|
|
5779
5779
|
focusedOption: G,
|
|
5780
5780
|
focusedOptionId: N,
|
|
@@ -5791,7 +5791,7 @@ var zr = function(e) {
|
|
|
5791
5791
|
value: Bt(m, b, b[0] || null),
|
|
5792
5792
|
options: b,
|
|
5793
5793
|
action: "initial-input-focus"
|
|
5794
|
-
}, X = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (W = null), P(P(P({},
|
|
5794
|
+
}, X = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (W = null), P(P(P({}, C), T), {}, {
|
|
5795
5795
|
prevProps: n,
|
|
5796
5796
|
ariaSelection: W,
|
|
5797
5797
|
prevWasFocused: X
|
|
@@ -5802,7 +5802,7 @@ var zr = function(e) {
|
|
|
5802
5802
|
es.defaultProps = v0;
|
|
5803
5803
|
var y0 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5804
5804
|
function Yr(t) {
|
|
5805
|
-
var e = t.defaultInputValue, s = e === void 0 ? "" : e, r = t.defaultMenuIsOpen, n = r === void 0 ? !1 : r, i = t.defaultValue, l = i === void 0 ? null : i, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose, v = t.onMenuOpen, f = t.value, I = Ve(t, y0), h = Ie(c !== void 0 ? c : s), x = me(h, 2), m = x[0], b = x[1],
|
|
5805
|
+
var e = t.defaultInputValue, s = e === void 0 ? "" : e, r = t.defaultMenuIsOpen, n = r === void 0 ? !1 : r, i = t.defaultValue, l = i === void 0 ? null : i, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose, v = t.onMenuOpen, f = t.value, I = Ve(t, y0), h = Ie(c !== void 0 ? c : s), x = me(h, 2), m = x[0], b = x[1], C = Ie(a !== void 0 ? a : n), y = me(C, 2), w = y[0], R = y[1], G = Ie(f !== void 0 ? f : l), N = me(G, 2), T = N[0], W = N[1], X = fe(function(ae, Ge) {
|
|
5806
5806
|
typeof u == "function" && u(ae, Ge), W(ae);
|
|
5807
5807
|
}, [u]), H = fe(function(ae, Ge) {
|
|
5808
5808
|
var Ne;
|
|
@@ -5826,7 +5826,7 @@ var A0 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5826
5826
|
function N0(t) {
|
|
5827
5827
|
var e = t.defaultOptions, s = e === void 0 ? !1 : e, r = t.cacheOptions, n = r === void 0 ? !1 : r, i = t.loadOptions;
|
|
5828
5828
|
t.options;
|
|
5829
|
-
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = Ve(t, A0), v = p.inputValue, f = Te(void 0), I = Te(!1), h = Ie(Array.isArray(s) ? s : void 0), x = me(h, 2), m = x[0], b = x[1],
|
|
5829
|
+
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = Ve(t, A0), v = p.inputValue, f = Te(void 0), I = Te(!1), h = Ie(Array.isArray(s) ? s : void 0), x = me(h, 2), m = x[0], b = x[1], C = Ie(typeof v < "u" ? v : ""), y = me(C, 2), w = y[0], R = y[1], G = Ie(s === !0), N = me(G, 2), T = N[0], W = N[1], X = Ie(void 0), H = me(X, 2), F = H[0], E = H[1], S = Ie([]), O = me(S, 2), te = O[0], ae = O[1], Ge = Ie(!1), Ne = me(Ge, 2), We = Ne[0], J = Ne[1], pe = Ie({}), Se = me(pe, 2), ve = Se[0], ge = Se[1], Ee = Ie(void 0), he = me(Ee, 2), Le = he[0], ze = he[1], it = Ie(void 0), Ye = me(it, 2), yt = Ye[0], at = Ye[1];
|
|
5830
5830
|
n !== yt && (ge({}), at(n)), s !== Le && (b(Array.isArray(s) ? s : void 0), ze(s)), Mt(function() {
|
|
5831
5831
|
return I.current = !0, function() {
|
|
5832
5832
|
I.current = !1;
|
|
@@ -5869,7 +5869,7 @@ function N0(t) {
|
|
|
5869
5869
|
}
|
|
5870
5870
|
var S0 = /* @__PURE__ */ Ks(function(t, e) {
|
|
5871
5871
|
var s = N0(t), r = Yr(s);
|
|
5872
|
-
return /* @__PURE__ */
|
|
5872
|
+
return /* @__PURE__ */ _.createElement(es, k({
|
|
5873
5873
|
ref: e
|
|
5874
5874
|
}, r));
|
|
5875
5875
|
}), E0 = S0;
|
|
@@ -5926,10 +5926,10 @@ function n2({
|
|
|
5926
5926
|
SingleValue: Jn
|
|
5927
5927
|
},
|
|
5928
5928
|
isDisabled: f,
|
|
5929
|
-
onChange: (b,
|
|
5929
|
+
onChange: (b, C) => {
|
|
5930
5930
|
e(
|
|
5931
5931
|
h ? b.map((y) => y.value) : (b == null ? void 0 : b.value) ?? "",
|
|
5932
|
-
|
|
5932
|
+
C
|
|
5933
5933
|
);
|
|
5934
5934
|
},
|
|
5935
5935
|
formatGroupLabel: a,
|
|
@@ -5965,12 +5965,12 @@ var w0 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5965
5965
|
}
|
|
5966
5966
|
};
|
|
5967
5967
|
function j0(t) {
|
|
5968
|
-
var e = t.allowCreateWhileLoading, s = e === void 0 ? !1 : e, r = t.createOptionPosition, n = r === void 0 ? "last" : r, i = t.formatCreateLabel, l = i === void 0 ? En.formatCreateLabel : i, c = t.isValidNewOption, a = c === void 0 ? En.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? En.getNewOptionData : u, p = t.onCreateOption, v = t.options, f = v === void 0 ? [] : v, I = t.onChange, h = Ve(t, w0), x = h.getOptionValue, m = x === void 0 ? Dr : x, b = h.getOptionLabel,
|
|
5968
|
+
var e = t.allowCreateWhileLoading, s = e === void 0 ? !1 : e, r = t.createOptionPosition, n = r === void 0 ? "last" : r, i = t.formatCreateLabel, l = i === void 0 ? En.formatCreateLabel : i, c = t.isValidNewOption, a = c === void 0 ? En.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? En.getNewOptionData : u, p = t.onCreateOption, v = t.options, f = v === void 0 ? [] : v, I = t.onChange, h = Ve(t, w0), x = h.getOptionValue, m = x === void 0 ? Dr : x, b = h.getOptionLabel, C = b === void 0 ? kr : b, y = h.inputValue, w = h.isLoading, R = h.isMulti, G = h.value, N = h.name, T = Ue(function() {
|
|
5969
5969
|
return a(y, nn(G), f, {
|
|
5970
5970
|
getOptionValue: m,
|
|
5971
|
-
getOptionLabel:
|
|
5971
|
+
getOptionLabel: C
|
|
5972
5972
|
}) ? d(y, l(y)) : void 0;
|
|
5973
|
-
}, [l, d,
|
|
5973
|
+
}, [l, d, C, m, y, a, f, G]), W = Ue(function() {
|
|
5974
5974
|
return (s || !w) && T ? n === "first" ? [T].concat(ht(f)) : [].concat(ht(f), [T]) : f;
|
|
5975
5975
|
}, [s, n, w, T, f]), X = fe(function(H, F) {
|
|
5976
5976
|
if (F.action !== "select-option")
|
|
@@ -5998,7 +5998,7 @@ function j0(t) {
|
|
|
5998
5998
|
}
|
|
5999
5999
|
var B0 = /* @__PURE__ */ Ks(function(t, e) {
|
|
6000
6000
|
var s = Yr(t), r = j0(s);
|
|
6001
|
-
return /* @__PURE__ */
|
|
6001
|
+
return /* @__PURE__ */ _.createElement(es, k({
|
|
6002
6002
|
ref: e
|
|
6003
6003
|
}, r));
|
|
6004
6004
|
}), G0 = B0;
|
|
@@ -6027,7 +6027,7 @@ function s2({
|
|
|
6027
6027
|
return /* @__PURE__ */ o.jsxs(
|
|
6028
6028
|
"div",
|
|
6029
6029
|
{
|
|
6030
|
-
onClick: (
|
|
6030
|
+
onClick: (C) => C.stopPropagation(),
|
|
6031
6031
|
style: u,
|
|
6032
6032
|
className: ie.selectContainer,
|
|
6033
6033
|
children: [
|
|
@@ -6054,30 +6054,32 @@ function s2({
|
|
|
6054
6054
|
SingleValue: Jn
|
|
6055
6055
|
},
|
|
6056
6056
|
isDisabled: f,
|
|
6057
|
-
onChange: async (
|
|
6058
|
-
if (
|
|
6057
|
+
onChange: async (C) => {
|
|
6058
|
+
if (C)
|
|
6059
6059
|
if (h) {
|
|
6060
|
-
const y =
|
|
6060
|
+
const y = C.filter((G) => G.__isNew__), w = C.filter((G) => !G.__isNew__);
|
|
6061
6061
|
let R = w;
|
|
6062
6062
|
if (y.length > 0) {
|
|
6063
6063
|
const G = await m(
|
|
6064
6064
|
y.map((N) => N.value)
|
|
6065
6065
|
);
|
|
6066
|
-
G && (
|
|
6066
|
+
G && (C = C.map((N) => (N.__isNew__ && (N.value = G[0].value, delete N.__isNew__), N)), await b(), R = [...w, ...G]);
|
|
6067
6067
|
}
|
|
6068
6068
|
e(
|
|
6069
6069
|
R.map((G) => G.value),
|
|
6070
|
-
|
|
6070
|
+
C.actionMeta
|
|
6071
6071
|
);
|
|
6072
6072
|
} else {
|
|
6073
6073
|
let y;
|
|
6074
|
-
if (
|
|
6075
|
-
const w = await m(
|
|
6076
|
-
await b(), delete
|
|
6074
|
+
if (C.__isNew__) {
|
|
6075
|
+
const w = await m(C.value);
|
|
6076
|
+
await b(), delete C.__isNew__, y = w.value;
|
|
6077
6077
|
} else
|
|
6078
|
-
y =
|
|
6079
|
-
e(y ?? "",
|
|
6078
|
+
y = C.value;
|
|
6079
|
+
e(y ?? "", C.actionMeta);
|
|
6080
6080
|
}
|
|
6081
|
+
else
|
|
6082
|
+
e("", C == null ? void 0 : C.actionMeta);
|
|
6081
6083
|
},
|
|
6082
6084
|
formatGroupLabel: a,
|
|
6083
6085
|
menuPlacement: d,
|
|
@@ -6179,11 +6181,11 @@ function o2({
|
|
|
6179
6181
|
onSkipClick: v = () => {
|
|
6180
6182
|
}
|
|
6181
6183
|
}) {
|
|
6182
|
-
const [f, I] =
|
|
6183
|
-
|
|
6184
|
+
const [f, I] = _.useState(0), [h, x] = _.useState(!1), m = f === t.length - 1, b = t[f].isError;
|
|
6185
|
+
_.useEffect(() => {
|
|
6184
6186
|
I(p);
|
|
6185
6187
|
}, [p]);
|
|
6186
|
-
const
|
|
6188
|
+
const C = async () => {
|
|
6187
6189
|
const N = t[f].onContinueClick;
|
|
6188
6190
|
try {
|
|
6189
6191
|
N ? N.constructor && N.constructor.name === "AsyncFunction" ? (await N(), y()) : (N(), y()) : m && (s(), x(!0));
|
|
@@ -6221,7 +6223,7 @@ function o2({
|
|
|
6221
6223
|
l && /* @__PURE__ */ o.jsxs("div", { className: _e.btnsFlex, children: [
|
|
6222
6224
|
/* @__PURE__ */ o.jsx(Q, { variant: Be.SECONDARY, onClick: e, children: "Cancel" }),
|
|
6223
6225
|
i && f === r && /* @__PURE__ */ o.jsx(Q, { onClick: G, variant: Be.GHOST, children: d }),
|
|
6224
|
-
/* @__PURE__ */ o.jsx(Q, { onClick:
|
|
6226
|
+
/* @__PURE__ */ o.jsx(Q, { onClick: C, children: m ? a : "Continue" })
|
|
6225
6227
|
] })
|
|
6226
6228
|
] }),
|
|
6227
6229
|
/* @__PURE__ */ o.jsx("div", { className: _e.body, children: t[f].component }),
|
|
@@ -6230,7 +6232,7 @@ function o2({
|
|
|
6230
6232
|
/* @__PURE__ */ o.jsxs("div", { className: _e.btnsFlex, children: [
|
|
6231
6233
|
f > 0 && /* @__PURE__ */ o.jsx(Q, { variant: Be.SECONDARY, onClick: w, children: "Back" }),
|
|
6232
6234
|
i && f === r && /* @__PURE__ */ o.jsx(Q, { onClick: G, variant: Be.GHOST, children: d }),
|
|
6233
|
-
/* @__PURE__ */ o.jsx(Q, { onClick:
|
|
6235
|
+
/* @__PURE__ */ o.jsx(Q, { onClick: C, children: m ? n : "Continue" })
|
|
6234
6236
|
] })
|
|
6235
6237
|
] })
|
|
6236
6238
|
] });
|
|
@@ -6245,14 +6247,14 @@ function i2({ items: t, defaultValue: e, handleOnChange: s }) {
|
|
|
6245
6247
|
var l, c;
|
|
6246
6248
|
const [r, n] = ue(
|
|
6247
6249
|
Jt.machine({
|
|
6248
|
-
id:
|
|
6250
|
+
id: _.useId(),
|
|
6249
6251
|
value: e ?? ((l = t == null ? void 0 : t[0]) == null ? void 0 : l.value),
|
|
6250
6252
|
onValueChange(a) {
|
|
6251
6253
|
s && s(a.value);
|
|
6252
6254
|
}
|
|
6253
6255
|
})
|
|
6254
6256
|
), i = Jt.connect(r, n, de);
|
|
6255
|
-
return
|
|
6257
|
+
return _.useEffect(() => {
|
|
6256
6258
|
e && e !== i.value && i.setValue(e);
|
|
6257
6259
|
}, [e]), /* @__PURE__ */ o.jsxs("div", { className: pt.segmentedControl, children: [
|
|
6258
6260
|
/* @__PURE__ */ o.jsxs("div", { ...i.rootProps, className: pt.root, children: [
|
|
@@ -6300,7 +6302,7 @@ function a2({
|
|
|
6300
6302
|
}) {
|
|
6301
6303
|
const [c, a] = ue(
|
|
6302
6304
|
Jt.machine({
|
|
6303
|
-
id:
|
|
6305
|
+
id: _.useId(),
|
|
6304
6306
|
value: s,
|
|
6305
6307
|
onValueChange: ({ value: d }) => {
|
|
6306
6308
|
r(d);
|
|
@@ -6357,7 +6359,7 @@ const mp = "_tabList_1uplx_1", fp = "_tab_1uplx_1", Xs = {
|
|
|
6357
6359
|
function l2({ tabs: t, defaultValue: e, tabClassName: s, onValueChange: r }) {
|
|
6358
6360
|
const [n, i] = ue(
|
|
6359
6361
|
gs.machine({
|
|
6360
|
-
id:
|
|
6362
|
+
id: _.useId(),
|
|
6361
6363
|
value: e,
|
|
6362
6364
|
onValueChange(c) {
|
|
6363
6365
|
r == null || r(c.value);
|
|
@@ -6783,7 +6785,7 @@ function Fg({
|
|
|
6783
6785
|
filterDispatch: l
|
|
6784
6786
|
}) {
|
|
6785
6787
|
var x, m;
|
|
6786
|
-
const [c, a] =
|
|
6788
|
+
const [c, a] = _.useState(""), [u, d] = ue(
|
|
6787
6789
|
vt.machine({
|
|
6788
6790
|
id: t.id,
|
|
6789
6791
|
closeOnSelect: !1
|
|
@@ -6791,15 +6793,15 @@ function Fg({
|
|
|
6791
6793
|
), p = vt.connect(u, d, de), v = t == null ? void 0 : t.options.filter((b) => b.name ? b.name.toLowerCase().includes(c.toLowerCase()) : !1), f = s == null ? void 0 : s.values.length, I = () => {
|
|
6792
6794
|
i(s == null ? void 0 : s.key, l), p.setOpen(!1);
|
|
6793
6795
|
}, h = (b) => {
|
|
6794
|
-
let
|
|
6796
|
+
let C = !1;
|
|
6795
6797
|
return e.forEach((y) => {
|
|
6796
6798
|
y.values.forEach((w) => {
|
|
6797
6799
|
if (w === b) {
|
|
6798
|
-
|
|
6800
|
+
C = !0;
|
|
6799
6801
|
return;
|
|
6800
6802
|
}
|
|
6801
6803
|
});
|
|
6802
|
-
}),
|
|
6804
|
+
}), C;
|
|
6803
6805
|
};
|
|
6804
6806
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
6805
6807
|
/* @__PURE__ */ o.jsxs(
|
|
@@ -6831,7 +6833,7 @@ function Fg({
|
|
|
6831
6833
|
placeholder: ((m = t.config) == null ? void 0 : m.placeholder) || "Search"
|
|
6832
6834
|
}
|
|
6833
6835
|
) }),
|
|
6834
|
-
/* @__PURE__ */ o.jsx("div", { className: q.options, children: v.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: q.optionsEmpty, children: "No results found" }) : v.map((b,
|
|
6836
|
+
/* @__PURE__ */ o.jsx("div", { className: q.options, children: v.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: q.optionsEmpty, children: "No results found" }) : v.map((b, C) => /* @__PURE__ */ o.jsx(
|
|
6835
6837
|
"div",
|
|
6836
6838
|
{
|
|
6837
6839
|
...p.getItemProps({ value: b.value }),
|
|
@@ -6852,7 +6854,7 @@ function Fg({
|
|
|
6852
6854
|
b.value
|
|
6853
6855
|
)
|
|
6854
6856
|
},
|
|
6855
|
-
|
|
6857
|
+
C
|
|
6856
6858
|
)) }),
|
|
6857
6859
|
/* @__PURE__ */ o.jsx("div", { className: q.footerBox, children: /* @__PURE__ */ o.jsx("div", { className: q.footer, children: /* @__PURE__ */ o.jsx(
|
|
6858
6860
|
"button",
|
|
@@ -6904,7 +6906,7 @@ function Rg({ filterConfig: t, filters: e }) {
|
|
|
6904
6906
|
resetFilters: v.resetFilters,
|
|
6905
6907
|
resetAllFilters: v.resetAllFilters
|
|
6906
6908
|
}));
|
|
6907
|
-
return
|
|
6909
|
+
return _.useEffect(() => {
|
|
6908
6910
|
!(e != null && e.length) || s || c((e == null ? void 0 : e.map((v) => ({ key: v.key, values: [] }))) || []);
|
|
6909
6911
|
}, [e == null ? void 0 : e.length, s]), !e || !e.length ? null : r ? /* @__PURE__ */ o.jsx("div", { className: q.filtersInfo, children: "Error getting filters" }) : s ? /* @__PURE__ */ o.jsx("div", { className: q.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ o.jsx("div", { className: q.filters, children: e.map((v, f) => /* @__PURE__ */ o.jsx(
|
|
6910
6912
|
Fg,
|
|
@@ -7013,7 +7015,7 @@ const Ys = (t, e) => {
|
|
|
7013
7015
|
}));
|
|
7014
7016
|
}), s;
|
|
7015
7017
|
}, rb = () => {
|
|
7016
|
-
const [t, e] =
|
|
7018
|
+
const [t, e] = _.useState(!1);
|
|
7017
7019
|
return { isOpen: t, onOpen: () => {
|
|
7018
7020
|
e(!0);
|
|
7019
7021
|
}, onClose: () => {
|
|
@@ -7022,12 +7024,12 @@ const Ys = (t, e) => {
|
|
|
7022
7024
|
};
|
|
7023
7025
|
function ob({ filterConfig: t }) {
|
|
7024
7026
|
var W, X, H, F;
|
|
7025
|
-
const { isOpen: e, onOpen: s, onClose: r } = rb(), [n, i] =
|
|
7027
|
+
const { isOpen: e, onOpen: s, onClose: r } = rb(), [n, i] = _.useState({}), [l, c] = _.useState(""), { setDefaultFilters: a, resetAllFilters: u, changeFiltersDrawer: d } = Vt((E) => ({
|
|
7026
7028
|
setDefaultFilters: E.setDefaultFilters,
|
|
7027
7029
|
resetAllFilters: E.resetAllFilters,
|
|
7028
7030
|
changeFiltersDrawer: E.changeFiltersDrawer
|
|
7029
|
-
})), p = Vt((E) => E.filters), { isLoading: v, isError: f, headerFilterIds: I, filterDispatch: h } = t, [x, m] =
|
|
7030
|
-
|
|
7031
|
+
})), p = Vt((E) => E.filters), { isLoading: v, isError: f, headerFilterIds: I, filterDispatch: h } = t, [x, m] = _.useState(!1), b = (W = t.filters) != null && W.drawer ? t.filters.drawer : [], C = (X = t.filters) != null && X.header ? t.filters.header.map((E) => E.key) : [], [y, w] = _.useState(b[0]);
|
|
7032
|
+
_.useEffect(() => {
|
|
7031
7033
|
var S, O;
|
|
7032
7034
|
if (!(b != null && b.length) || v)
|
|
7033
7035
|
return;
|
|
@@ -7037,12 +7039,12 @@ function ob({ filterConfig: t }) {
|
|
|
7037
7039
|
);
|
|
7038
7040
|
}, [b == null ? void 0 : b.length, v]);
|
|
7039
7041
|
const R = y == null ? void 0 : y.options.filter((E) => E.name ? E.name.toLowerCase().includes(l.toLowerCase()) : !1).map((E) => E.value);
|
|
7040
|
-
|
|
7042
|
+
_.useEffect(() => {
|
|
7041
7043
|
if (!b.length)
|
|
7042
7044
|
return;
|
|
7043
7045
|
const E = Ys(b, p);
|
|
7044
7046
|
i(E);
|
|
7045
|
-
}, []),
|
|
7047
|
+
}, []), _.useEffect(() => {
|
|
7046
7048
|
const E = Ys(b, p);
|
|
7047
7049
|
i(E);
|
|
7048
7050
|
}, [e]);
|
|
@@ -7051,7 +7053,7 @@ function ob({ filterConfig: t }) {
|
|
|
7051
7053
|
Object.entries(E).forEach(([S, O]) => {
|
|
7052
7054
|
d(S, O ? O.split(",") : [], h);
|
|
7053
7055
|
}), r();
|
|
7054
|
-
}, T = p.filter((E) => !
|
|
7056
|
+
}, T = p.filter((E) => !C.includes(E.key)).reduce((E, S) => E += S.values.length, 0);
|
|
7055
7057
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
7056
7058
|
/* @__PURE__ */ o.jsxs(
|
|
7057
7059
|
"button",
|
|
@@ -7184,7 +7186,7 @@ function Xt({
|
|
|
7184
7186
|
}) {
|
|
7185
7187
|
const [i, l] = ue(
|
|
7186
7188
|
qe.machine({
|
|
7187
|
-
id:
|
|
7189
|
+
id: _.useId(),
|
|
7188
7190
|
disabled: n,
|
|
7189
7191
|
checked: s,
|
|
7190
7192
|
onCheckedChange(a) {
|
|
@@ -7206,7 +7208,7 @@ const Nb = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
|
|
|
7206
7208
|
sort: Eb,
|
|
7207
7209
|
sortHidden: wb,
|
|
7208
7210
|
dragHandle: jb
|
|
7209
|
-
}, Jr =
|
|
7211
|
+
}, Jr = _.createContext({
|
|
7210
7212
|
attributes: {},
|
|
7211
7213
|
listeners: void 0,
|
|
7212
7214
|
ref() {
|
|
@@ -7221,7 +7223,7 @@ function Bb({ children: t, id: e, isHidden: s = !1 }) {
|
|
|
7221
7223
|
setActivatorNodeRef: c,
|
|
7222
7224
|
transform: a,
|
|
7223
7225
|
transition: u
|
|
7224
|
-
} = Ro({ id: e }), d =
|
|
7226
|
+
} = Ro({ id: e }), d = _.useMemo(
|
|
7225
7227
|
() => ({
|
|
7226
7228
|
attributes: r,
|
|
7227
7229
|
listeners: i,
|
|
@@ -7244,7 +7246,7 @@ function Bb({ children: t, id: e, isHidden: s = !1 }) {
|
|
|
7244
7246
|
) });
|
|
7245
7247
|
}
|
|
7246
7248
|
function Gb() {
|
|
7247
|
-
const { attributes: t, listeners: e, ref: s } =
|
|
7249
|
+
const { attributes: t, listeners: e, ref: s } = _.useContext(Jr);
|
|
7248
7250
|
return /* @__PURE__ */ o.jsx("div", { className: on.dragHandle, ...t, ...e, ref: s, children: /* @__PURE__ */ o.jsxs(
|
|
7249
7251
|
"svg",
|
|
7250
7252
|
{
|
|
@@ -7330,7 +7332,7 @@ function Rt({
|
|
|
7330
7332
|
renderItem: s,
|
|
7331
7333
|
search: r
|
|
7332
7334
|
}) {
|
|
7333
|
-
const n = t.filter((u) => u.checked), [i, l] =
|
|
7335
|
+
const n = t.filter((u) => u.checked), [i, l] = _.useState(null), c = _.useMemo(
|
|
7334
7336
|
() => n.find((u) => u.id === (i == null ? void 0 : i.id)),
|
|
7335
7337
|
[i, n]
|
|
7336
7338
|
), a = wo(
|
|
@@ -7361,7 +7363,7 @@ function Rt({
|
|
|
7361
7363
|
l(null);
|
|
7362
7364
|
},
|
|
7363
7365
|
children: [
|
|
7364
|
-
/* @__PURE__ */ o.jsx(Vo, { items: n, children: /* @__PURE__ */ o.jsx("ul", { className: on.sortList, role: "application", children: n.map((u) => /* @__PURE__ */ o.jsx(
|
|
7366
|
+
/* @__PURE__ */ o.jsx(Vo, { items: n, children: /* @__PURE__ */ o.jsx("ul", { className: on.sortList, role: "application", children: n.map((u) => /* @__PURE__ */ o.jsx(_.Fragment, { children: s(u) }, u.id)) }) }),
|
|
7365
7367
|
/* @__PURE__ */ o.jsx(Rb, { children: c ? s(c) : null })
|
|
7366
7368
|
]
|
|
7367
7369
|
}
|
|
@@ -7376,7 +7378,7 @@ function Pb({
|
|
|
7376
7378
|
isCheckbox: s,
|
|
7377
7379
|
isDropdownActions: r
|
|
7378
7380
|
}) {
|
|
7379
|
-
const [n, i] =
|
|
7381
|
+
const [n, i] = _.useState([]), [l, c] = _.useState(""), [a, u] = ue(
|
|
7380
7382
|
Yt.machine({
|
|
7381
7383
|
id: "charizard-table-custom-cols",
|
|
7382
7384
|
onOpenChange(m) {
|
|
@@ -7390,7 +7392,7 @@ function Pb({
|
|
|
7390
7392
|
), v = e.getAllLeafColumns().filter(
|
|
7391
7393
|
(m) => !m.columnDef.enableHiding && m.id !== Oe && m.id !== Ze && m.id !== Ke
|
|
7392
7394
|
);
|
|
7393
|
-
|
|
7395
|
+
_.useEffect(() => {
|
|
7394
7396
|
i(() => p.map((b) => ({
|
|
7395
7397
|
id: b.id,
|
|
7396
7398
|
checked: b.getIsVisible(),
|
|
@@ -7402,13 +7404,13 @@ function Pb({
|
|
|
7402
7404
|
const b = e.getColumn(m.id);
|
|
7403
7405
|
b == null || b.toggleVisibility(m.checked);
|
|
7404
7406
|
}), e.setColumnOrder(() => {
|
|
7405
|
-
const m = n.map((
|
|
7407
|
+
const m = n.map((C) => C.id), b = [
|
|
7406
7408
|
s ? Oe : Ze,
|
|
7407
7409
|
...m,
|
|
7408
7410
|
r ? Ke : void 0
|
|
7409
7411
|
].filter(Boolean);
|
|
7410
|
-
return v.forEach((
|
|
7411
|
-
b.splice(
|
|
7412
|
+
return v.forEach((C) => {
|
|
7413
|
+
b.splice(C.getIndex(), 0, C.id);
|
|
7412
7414
|
}), b;
|
|
7413
7415
|
}), d.setOpen(!1);
|
|
7414
7416
|
}, x = I.filter(
|
|
@@ -7538,13 +7540,13 @@ function Vb({
|
|
|
7538
7540
|
isCheckbox: u,
|
|
7539
7541
|
isDropdownActions: d
|
|
7540
7542
|
}) {
|
|
7541
|
-
var m, b,
|
|
7543
|
+
var m, b, C;
|
|
7542
7544
|
const p = (t == null ? void 0 : t.actions) && t.actions.length > 0, v = Object.keys(l).length, f = v > 0, I = `${v} ${Tg(
|
|
7543
7545
|
v,
|
|
7544
7546
|
(t == null ? void 0 : t.entityName) || "",
|
|
7545
7547
|
`${t == null ? void 0 : t.entityName}s`
|
|
7546
7548
|
)}`, h = (m = r == null ? void 0 : r.filters) != null && m.header ? r == null ? void 0 : r.filters.header : null, x = Vt((y) => y.resetAllFilters);
|
|
7547
|
-
return
|
|
7549
|
+
return _.useEffect(() => () => {
|
|
7548
7550
|
x();
|
|
7549
7551
|
}, []), /* @__PURE__ */ o.jsxs("div", { className: gt.box, children: [
|
|
7550
7552
|
/* @__PURE__ */ o.jsxs("div", { className: gt.texts, children: [
|
|
@@ -7573,7 +7575,7 @@ function Vb({
|
|
|
7573
7575
|
}
|
|
7574
7576
|
) }),
|
|
7575
7577
|
typeof r == "object" && !!h && /* @__PURE__ */ o.jsx(Rg, { filterConfig: r, filters: h }),
|
|
7576
|
-
typeof r == "object" && !r.isLoading && !!((
|
|
7578
|
+
typeof r == "object" && !r.isLoading && !!((C = (b = r.filters) == null ? void 0 : b.drawer) != null && C.length) && /* @__PURE__ */ o.jsx(ob, { filterConfig: r }),
|
|
7577
7579
|
typeof n == "object" && /* @__PURE__ */ o.jsx(
|
|
7578
7580
|
Pb,
|
|
7579
7581
|
{
|
|
@@ -7633,7 +7635,7 @@ function em({ setLimit: t, limit: e, totalItems: s, itemsOnPage: r }) {
|
|
|
7633
7635
|
itemToValue: (a) => a.value
|
|
7634
7636
|
}), [i, l] = ue(
|
|
7635
7637
|
ft.machine({
|
|
7636
|
-
id:
|
|
7638
|
+
id: _.useId(),
|
|
7637
7639
|
collection: n,
|
|
7638
7640
|
value: [e.toString()],
|
|
7639
7641
|
onValueChange(a) {
|
|
@@ -7681,7 +7683,7 @@ function tm({ paginationApi: t, i: e }) {
|
|
|
7681
7683
|
itemToValue: (a) => a.value
|
|
7682
7684
|
}), [i, l] = ue(
|
|
7683
7685
|
ft.machine({
|
|
7684
|
-
id:
|
|
7686
|
+
id: _.useId(),
|
|
7685
7687
|
collection: n,
|
|
7686
7688
|
onValueChange(a) {
|
|
7687
7689
|
const u = a.value[0];
|
|
@@ -7720,9 +7722,9 @@ function nm({ paginationConfig: t }) {
|
|
|
7720
7722
|
pageSize: t.limit
|
|
7721
7723
|
})
|
|
7722
7724
|
), l = bs.connect(n, i, de);
|
|
7723
|
-
return
|
|
7725
|
+
return _.useEffect(() => {
|
|
7724
7726
|
l.setPage(t.page + 1);
|
|
7725
|
-
}, []),
|
|
7727
|
+
}, []), _.useEffect(() => {
|
|
7726
7728
|
l.setCount((r == null ? void 0 : r.total_items) || 0);
|
|
7727
7729
|
}, [r == null ? void 0 : r.total_items]), /* @__PURE__ */ o.jsxs("div", { className: ce.box, children: [
|
|
7728
7730
|
/* @__PURE__ */ o.jsx(
|
|
@@ -7744,7 +7746,7 @@ function nm({ paginationConfig: t }) {
|
|
|
7744
7746
|
children: c.value
|
|
7745
7747
|
},
|
|
7746
7748
|
c.value
|
|
7747
|
-
) : /* @__PURE__ */ o.jsx(
|
|
7749
|
+
) : /* @__PURE__ */ o.jsx(_.Fragment, { children: /* @__PURE__ */ o.jsx(tm, { paginationApi: l, i: a }) }, `ellipsis-${a}`)),
|
|
7748
7750
|
/* @__PURE__ */ o.jsx("div", { ...l.nextTriggerProps, className: ce.pageBox, children: /* @__PURE__ */ o.jsx(M, { path: Hb, svgClassName: ce.arrowIcon }) })
|
|
7749
7751
|
] }) })
|
|
7750
7752
|
] });
|
|
@@ -7779,8 +7781,8 @@ function $s({
|
|
|
7779
7781
|
isHeader: s,
|
|
7780
7782
|
...r
|
|
7781
7783
|
}) {
|
|
7782
|
-
const n =
|
|
7783
|
-
return
|
|
7784
|
+
const n = _.useRef(null);
|
|
7785
|
+
return _.useEffect(() => {
|
|
7784
7786
|
typeof t == "boolean" && (n.current.indeterminate = !r.checked && t);
|
|
7785
7787
|
}, [n, t]), /* @__PURE__ */ o.jsx("span", { className: Pt.checkboxSpan, style: { display: s ? "flex" : void 0 }, children: /* @__PURE__ */ o.jsx(
|
|
7786
7788
|
"input",
|
|
@@ -7797,8 +7799,8 @@ function Nm({
|
|
|
7797
7799
|
row: e,
|
|
7798
7800
|
...s
|
|
7799
7801
|
}) {
|
|
7800
|
-
const r =
|
|
7801
|
-
return
|
|
7802
|
+
const r = _.useRef(null);
|
|
7803
|
+
return _.useEffect(() => {
|
|
7802
7804
|
r.current.indeterminate = t;
|
|
7803
7805
|
}, [r, t]), /* @__PURE__ */ o.jsx("span", { className: Pt.radioSpan, children: /* @__PURE__ */ o.jsx(
|
|
7804
7806
|
"input",
|
|
@@ -7835,10 +7837,10 @@ function p2({
|
|
|
7835
7837
|
customColumnConfig: f,
|
|
7836
7838
|
exportConfig: I
|
|
7837
7839
|
}) {
|
|
7838
|
-
const [h, x] =
|
|
7840
|
+
const [h, x] = _.useState([]), [m, b] = _.useState({}), [C, y] = _.useState([]), [w, R] = _.useState({
|
|
7839
7841
|
left: v != null && v.stickyIds ? [Ze, Oe, ...v == null ? void 0 : v.stickyIds] : [Ze, Oe],
|
|
7840
7842
|
right: [Ke]
|
|
7841
|
-
}), [G, N] =
|
|
7843
|
+
}), [G, N] = _.useState({}), T = !e.isFetching && !e.isError && !t.length, { isCheckbox: W, isRadio: X, setSelectedRows: H } = i;
|
|
7842
7844
|
zt(() => {
|
|
7843
7845
|
if (!n)
|
|
7844
7846
|
return;
|
|
@@ -7911,7 +7913,7 @@ function p2({
|
|
|
7911
7913
|
state: {
|
|
7912
7914
|
sorting: h,
|
|
7913
7915
|
columnVisibility: m,
|
|
7914
|
-
columnOrder:
|
|
7916
|
+
columnOrder: C,
|
|
7915
7917
|
rowSelection: (i == null ? void 0 : i.rowSelection) || G,
|
|
7916
7918
|
columnPinning: w
|
|
7917
7919
|
},
|
|
@@ -7935,21 +7937,21 @@ function p2({
|
|
|
7935
7937
|
},
|
|
7936
7938
|
getRowId: i != null && i.rowIdKey ? (S) => S[i == null ? void 0 : i.rowIdKey] : void 0
|
|
7937
7939
|
});
|
|
7938
|
-
return
|
|
7940
|
+
return _.useLayoutEffect(() => {
|
|
7939
7941
|
if (W && X)
|
|
7940
7942
|
throw new Error(
|
|
7941
7943
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
7942
7944
|
);
|
|
7943
|
-
}, []),
|
|
7945
|
+
}, []), _.useLayoutEffect(() => {
|
|
7944
7946
|
var S;
|
|
7945
7947
|
W || (S = E.getColumn(Oe)) == null || S.toggleVisibility(!1);
|
|
7946
|
-
}, []),
|
|
7948
|
+
}, []), _.useLayoutEffect(() => {
|
|
7947
7949
|
var S;
|
|
7948
7950
|
X || (S = E.getColumn(Ze)) == null || S.toggleVisibility(!1);
|
|
7949
|
-
}, []),
|
|
7951
|
+
}, []), _.useLayoutEffect(() => {
|
|
7950
7952
|
var S;
|
|
7951
7953
|
l.isDropdownActions || (S = E.getColumn(Ke)) == null || S.toggleVisibility(!1);
|
|
7952
|
-
}, []),
|
|
7954
|
+
}, []), _.useEffect(() => {
|
|
7953
7955
|
i != null && i.clearOnSearch && N({});
|
|
7954
7956
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ o.jsxs(
|
|
7955
7957
|
"div",
|
|
@@ -8006,7 +8008,7 @@ function Sm({
|
|
|
8006
8008
|
isEmpty: l,
|
|
8007
8009
|
search: c
|
|
8008
8010
|
}) {
|
|
8009
|
-
const [a, u] =
|
|
8011
|
+
const [a, u] = _.useState(!1), [d, p] = _.useState(!1), v = _.useRef(null), f = () => {
|
|
8010
8012
|
if (v.current) {
|
|
8011
8013
|
const { scrollLeft: I, scrollWidth: h, clientWidth: x } = v.current;
|
|
8012
8014
|
u(I > 0), p(h > x && I < h - x);
|
|
@@ -8022,9 +8024,9 @@ function Sm({
|
|
|
8022
8024
|
onScroll: f,
|
|
8023
8025
|
children: /* @__PURE__ */ o.jsxs("table", { className: Ae.table, children: [
|
|
8024
8026
|
/* @__PURE__ */ o.jsx("thead", { className: Ae.tableHead, children: t.getHeaderGroups().map((I) => /* @__PURE__ */ o.jsx("tr", { className: Ae.tableRow, children: I.headers.map((h, x, m) => {
|
|
8025
|
-
var
|
|
8027
|
+
var C, y;
|
|
8026
8028
|
let b = !1;
|
|
8027
|
-
return (
|
|
8029
|
+
return (C = i == null ? void 0 : i.stickyIds) != null && C.length && i.stickyIds.includes((y = m[x - 1]) == null ? void 0 : y.id) && (b = !0), /* @__PURE__ */ o.jsx(
|
|
8028
8030
|
"th",
|
|
8029
8031
|
{
|
|
8030
8032
|
colSpan: h.colSpan,
|
|
@@ -8073,11 +8075,11 @@ function Sm({
|
|
|
8073
8075
|
h.id
|
|
8074
8076
|
);
|
|
8075
8077
|
}) }, I.id)) }),
|
|
8076
|
-
r.isFetching ? /* @__PURE__ */ o.jsx(Jp, { text: r.text, isError: r.isError }) : l ? /* @__PURE__ */ o.jsx(Qp, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ o.jsx("tbody", { className: Ae.tableBody, children: t.getRowModel().rows.map((I, h, x) => /* @__PURE__ */ o.jsx("tr", { className: Ae.tableRow, children: I.getVisibleCells().map((m, b,
|
|
8078
|
+
r.isFetching ? /* @__PURE__ */ o.jsx(Jp, { text: r.text, isError: r.isError }) : l ? /* @__PURE__ */ o.jsx(Qp, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ o.jsx("tbody", { className: Ae.tableBody, children: t.getRowModel().rows.map((I, h, x) => /* @__PURE__ */ o.jsx("tr", { className: Ae.tableRow, children: I.getVisibleCells().map((m, b, C) => {
|
|
8077
8079
|
var R, G;
|
|
8078
8080
|
const y = (e || s) && (m.id === `${h}_${Ze}` || m.id === `${h}_${Oe}`);
|
|
8079
8081
|
let w = !1;
|
|
8080
|
-
return (R = i == null ? void 0 : i.stickyIds) != null && R.length && (w = (G =
|
|
8082
|
+
return (R = i == null ? void 0 : i.stickyIds) != null && R.length && (w = (G = C[b - 1]) == null ? void 0 : G.column.getCanPin()), /* @__PURE__ */ o.jsx(
|
|
8081
8083
|
"td",
|
|
8082
8084
|
{
|
|
8083
8085
|
className: B(
|