@graphty/compact-mantine 0.8.0 → 0.8.1
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/index.cjs +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +134 -135
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_THEME as lo, CloseButton as co, ActionIcon as Pe, Button as jo, RangeSlider as Ko, Radio as Xo, Slider as ln, Switch as uo, Checkbox as gn, SegmentedControl as mn, Kbd as qo, Indicator as Zo, ThemeIcon as Jo, Avatar as Qo, Pill as ei, Badge as po, Text as De, RingProgress as ti, Progress as cn, Loader as ni, InputClearButton as oi, JsonInput as ii, FileInput as ri, PillsInput as ai, TagsInput as si, MultiSelect as li, Autocomplete as ci, PasswordInput as di, Textarea as ui, Select as xn, NumberInput as $t, TextInput as Bt, Tabs as pi, Stepper as fi, Pagination as hi, NavLink as gi, Burger as mi, Anchor as xi, HoverCard as bi, Popover as vi, Tooltip as yi, Menu as wi, mergeMantineTheme as Si, createTheme as Ei, Box as h, useDirection as Ii, Group as qe, VisuallyHidden as Te, Paper as Ti, ColorSwatch as zi, ColorPicker as Ci, Divider as bn, Stack as Et, UnstyledButton as Je, Collapse as Pi, Accordion as Lt, Table as rt, useComputedColorScheme as Ri, rem as wt } from "@mantine/core";
|
|
2
2
|
import { jsx as n, jsxs as S, Fragment as q } from "react/jsx-runtime";
|
|
3
3
|
import { useUncontrolled as ae, useIsomorphicEffect as Ai, useHover as fo, useMediaQuery as ho } from "@mantine/hooks";
|
|
4
|
-
import Ie, { useContext as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { useTable as Hi, functionalUpdate as
|
|
4
|
+
import Ie, { useContext as Oe, useMemo as Z, createContext as lt, useCallback as F, useId as ue, useRef as X, isValidElement as go, cloneElement as mo, useEffect as Ee, useState as _e, forwardRef as Ut, useLayoutEffect as Li, useImperativeHandle as _i } from "react";
|
|
5
|
+
import { createPortal as Oi } from "react-dom";
|
|
6
|
+
import { useTable as Hi, functionalUpdate as _t, tableFeatures as Ni, rowSortingFeature as Di, rowSelectionFeature as ki, globalFilteringFeature as Gi, columnVisibilityFeature as Mi, columnOrderingFeature as Fi, columnFilteringFeature as Vi, createSortedRowModel as $i, createFilteredRowModel as Bi } from "@tanstack/react-table";
|
|
7
7
|
import { useVirtualizer as Ui } from "@tanstack/react-virtual";
|
|
8
8
|
const c = {
|
|
9
9
|
/** the width of the panel column every row is laid out in */
|
|
@@ -657,7 +657,7 @@ const qi = {
|
|
|
657
657
|
}, Rn = {
|
|
658
658
|
label: gt,
|
|
659
659
|
input: vn
|
|
660
|
-
},
|
|
660
|
+
}, Ot = {
|
|
661
661
|
dropdown: {
|
|
662
662
|
padding: 4,
|
|
663
663
|
border: "none",
|
|
@@ -800,7 +800,7 @@ const St = {
|
|
|
800
800
|
}),
|
|
801
801
|
styles: {
|
|
802
802
|
...ht,
|
|
803
|
-
...
|
|
803
|
+
...Ot
|
|
804
804
|
}
|
|
805
805
|
}),
|
|
806
806
|
Textarea: ui.extend({
|
|
@@ -845,7 +845,7 @@ const St = {
|
|
|
845
845
|
}),
|
|
846
846
|
styles: {
|
|
847
847
|
...ht,
|
|
848
|
-
...
|
|
848
|
+
...Ot
|
|
849
849
|
}
|
|
850
850
|
}),
|
|
851
851
|
MultiSelect: li.extend({
|
|
@@ -860,7 +860,7 @@ const St = {
|
|
|
860
860
|
}),
|
|
861
861
|
styles: {
|
|
862
862
|
label: gt,
|
|
863
|
-
...
|
|
863
|
+
...Ot,
|
|
864
864
|
...Xt,
|
|
865
865
|
inputField: {
|
|
866
866
|
minWidth: 60,
|
|
@@ -880,7 +880,7 @@ const St = {
|
|
|
880
880
|
}),
|
|
881
881
|
styles: {
|
|
882
882
|
label: gt,
|
|
883
|
-
...
|
|
883
|
+
...Ot,
|
|
884
884
|
...Xt,
|
|
885
885
|
inputField: {
|
|
886
886
|
minWidth: 30,
|
|
@@ -1034,7 +1034,7 @@ const St = {
|
|
|
1034
1034
|
dropdown: {
|
|
1035
1035
|
padding: 8
|
|
1036
1036
|
}
|
|
1037
|
-
},
|
|
1037
|
+
}, _r = {
|
|
1038
1038
|
Menu: wi.extend({
|
|
1039
1039
|
defaultProps: {
|
|
1040
1040
|
zIndex: Xe
|
|
@@ -1061,7 +1061,7 @@ const St = {
|
|
|
1061
1061
|
},
|
|
1062
1062
|
styles: Lr
|
|
1063
1063
|
})
|
|
1064
|
-
},
|
|
1064
|
+
}, Or = {
|
|
1065
1065
|
xs: "10px",
|
|
1066
1066
|
sm: "11px",
|
|
1067
1067
|
// Our compact default
|
|
@@ -1082,7 +1082,7 @@ const St = {
|
|
|
1082
1082
|
xl: "12px"
|
|
1083
1083
|
}, Dr = Ei({
|
|
1084
1084
|
colors: Yi,
|
|
1085
|
-
fontSizes:
|
|
1085
|
+
fontSizes: Or,
|
|
1086
1086
|
spacing: Hr,
|
|
1087
1087
|
radius: Nr,
|
|
1088
1088
|
// Keyboard focus is always visible; pointer focus is not. `auto` resolves to
|
|
@@ -1106,9 +1106,9 @@ const St = {
|
|
|
1106
1106
|
...dr,
|
|
1107
1107
|
...hr,
|
|
1108
1108
|
...Cr,
|
|
1109
|
-
...
|
|
1109
|
+
..._r
|
|
1110
1110
|
}
|
|
1111
|
-
}),
|
|
1111
|
+
}), _l = Si(lo, Dr), kr = [
|
|
1112
1112
|
"#5B8FF9FF",
|
|
1113
1113
|
"#FF6B6BFF",
|
|
1114
1114
|
"#61D095FF",
|
|
@@ -1179,15 +1179,15 @@ const St = {
|
|
|
1179
1179
|
function Fr(e) {
|
|
1180
1180
|
return e !== void 0 && e !== "" ? e : typeof document < "u" && document.documentElement.lang !== "" ? document.documentElement.lang : typeof navigator < "u" && navigator.language !== "" ? navigator.language : Mr;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
const o =
|
|
1182
|
+
function Ol({ labels: e, locale: t, children: i }) {
|
|
1183
|
+
const o = Oe(dn), r = Oe(un), a = Z(() => ({ ...o, ...e }), [o, e]), s = t ?? r;
|
|
1184
1184
|
return /* @__PURE__ */ n(un.Provider, { value: s, children: /* @__PURE__ */ n(dn.Provider, { value: a, children: i }) });
|
|
1185
1185
|
}
|
|
1186
1186
|
function fe() {
|
|
1187
|
-
return
|
|
1187
|
+
return Oe(dn);
|
|
1188
1188
|
}
|
|
1189
1189
|
function ct() {
|
|
1190
|
-
const e =
|
|
1190
|
+
const e = Oe(un);
|
|
1191
1191
|
return Fr(e);
|
|
1192
1192
|
}
|
|
1193
1193
|
const Vr = 1234.5, $r = "9876543210", Br = 9876543210, Ur = /* @__PURE__ */ new Set([" ", " ", " ", " ", "'", "’"]), Wr = "−", Yr = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iu, An = /* @__PURE__ */ new Map();
|
|
@@ -1473,7 +1473,7 @@ function vt({
|
|
|
1473
1473
|
}
|
|
1474
1474
|
const Po = lt(null);
|
|
1475
1475
|
function na() {
|
|
1476
|
-
return
|
|
1476
|
+
return Oe(Po);
|
|
1477
1477
|
}
|
|
1478
1478
|
function oa({ children: e }) {
|
|
1479
1479
|
const t = X(null);
|
|
@@ -1535,26 +1535,26 @@ function Gl({ id: e, children: t }) {
|
|
|
1535
1535
|
return /* @__PURE__ */ n(Ro.Provider, { value: e, children: t });
|
|
1536
1536
|
}
|
|
1537
1537
|
function la() {
|
|
1538
|
-
return
|
|
1538
|
+
return Oe(Ro);
|
|
1539
1539
|
}
|
|
1540
1540
|
const yn = lt(null), wn = lt(null);
|
|
1541
1541
|
function Yt() {
|
|
1542
|
-
const e =
|
|
1542
|
+
const e = Oe(yn);
|
|
1543
1543
|
if (!e)
|
|
1544
1544
|
throw new Error("usePopoutContext must be used within a Popout component");
|
|
1545
1545
|
return e;
|
|
1546
1546
|
}
|
|
1547
1547
|
function ca() {
|
|
1548
|
-
return
|
|
1548
|
+
return Oe(yn);
|
|
1549
1549
|
}
|
|
1550
1550
|
function da() {
|
|
1551
|
-
const e =
|
|
1551
|
+
const e = Oe(wn);
|
|
1552
1552
|
if (!e)
|
|
1553
1553
|
throw new Error("usePopoutManagerContext must be used within a PopoutManager");
|
|
1554
1554
|
return e;
|
|
1555
1555
|
}
|
|
1556
1556
|
function ua() {
|
|
1557
|
-
return
|
|
1557
|
+
return Oe(wn);
|
|
1558
1558
|
}
|
|
1559
1559
|
function pa({
|
|
1560
1560
|
children: e,
|
|
@@ -1612,7 +1612,7 @@ function pa({
|
|
|
1612
1612
|
return /* @__PURE__ */ n(yn.Provider, { value: C, children: e });
|
|
1613
1613
|
}
|
|
1614
1614
|
function fa({ children: e }) {
|
|
1615
|
-
const [t, i] =
|
|
1615
|
+
const [t, i] = _e(null), o = X([]), r = X(/* @__PURE__ */ new Map()), a = X(/* @__PURE__ */ new Map()), s = X(/* @__PURE__ */ new Map()), [p, u] = _e(0), d = F(
|
|
1616
1616
|
(b, w, N) => (a.current.get(b) ?? null) !== w ? !1 : w !== null ? !0 : (s.current.get(b) ?? null) === N,
|
|
1617
1617
|
[]
|
|
1618
1618
|
), f = F((b, w) => o.current.filter((N) => d(N, b, w)), [d]), g = F((b) => {
|
|
@@ -1689,15 +1689,15 @@ function fa({ children: e }) {
|
|
|
1689
1689
|
const G = r.current.get(N);
|
|
1690
1690
|
G == null || G();
|
|
1691
1691
|
}
|
|
1692
|
-
}, [R]),
|
|
1692
|
+
}, [R]), _ = F((b) => {
|
|
1693
1693
|
L(b);
|
|
1694
1694
|
const w = r.current.get(b);
|
|
1695
1695
|
w == null || w();
|
|
1696
1696
|
}, [L]), k = F((b, w) => {
|
|
1697
1697
|
const N = s.current.get(b) ?? null;
|
|
1698
1698
|
for (const G of o.current)
|
|
1699
|
-
G !== b && d(G, w, N) &&
|
|
1700
|
-
}, [
|
|
1699
|
+
G !== b && d(G, w, N) && _(G);
|
|
1700
|
+
}, [_, d]), W = F(() => {
|
|
1701
1701
|
const b = o.current;
|
|
1702
1702
|
if (b.length === 0)
|
|
1703
1703
|
return;
|
|
@@ -1709,7 +1709,7 @@ function fa({ children: e }) {
|
|
|
1709
1709
|
const N = r.current.get(w);
|
|
1710
1710
|
N == null || N();
|
|
1711
1711
|
}
|
|
1712
|
-
}, []), D = F(() => o.current.length > 0, []), [Y, A] =
|
|
1712
|
+
}, []), D = F(() => o.current.length > 0, []), [Y, A] = _e(!1);
|
|
1713
1713
|
Ee(() => {
|
|
1714
1714
|
A(o.current.length > 0);
|
|
1715
1715
|
}, [p]), sa(W, Y), aa(V, Y);
|
|
@@ -1724,13 +1724,13 @@ function fa({ children: e }) {
|
|
|
1724
1724
|
closeFocused: W,
|
|
1725
1725
|
closeAll: V,
|
|
1726
1726
|
hasOpenPopouts: D,
|
|
1727
|
-
closeWithDescendants:
|
|
1727
|
+
closeWithDescendants: _,
|
|
1728
1728
|
closeDescendants: L,
|
|
1729
1729
|
closeSiblings: k,
|
|
1730
1730
|
getParentId: E,
|
|
1731
1731
|
isAncestor: y
|
|
1732
1732
|
}),
|
|
1733
|
-
[z, C, T, P, t, p, W, V, D,
|
|
1733
|
+
[z, C, T, P, t, p, W, V, D, _, L, k, E, y]
|
|
1734
1734
|
);
|
|
1735
1735
|
return /* @__PURE__ */ S(wn.Provider, { value: H, children: [
|
|
1736
1736
|
e,
|
|
@@ -1760,7 +1760,7 @@ function xa(e) {
|
|
|
1760
1760
|
onDragStart: o,
|
|
1761
1761
|
onDrag: r,
|
|
1762
1762
|
onDragEnd: a
|
|
1763
|
-
} = e, [s, p] =
|
|
1763
|
+
} = e, [s, p] = _e({ left: 0, top: 0 }), u = X(!1), d = X(!1), f = X(!1), g = X({
|
|
1764
1764
|
x: 0,
|
|
1765
1765
|
y: 0,
|
|
1766
1766
|
offsetLeft: 0,
|
|
@@ -1905,7 +1905,7 @@ function ba({
|
|
|
1905
1905
|
function va(e, t = document) {
|
|
1906
1906
|
return e === null ? null : t.querySelector(`[data-popout-id="${e}"]`);
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function _n(e, t, i) {
|
|
1909
1909
|
const { trigger: o, parent: r, panel: a } = i;
|
|
1910
1910
|
if (e !== void 0) {
|
|
1911
1911
|
if (typeof e == "object")
|
|
@@ -1939,10 +1939,10 @@ function wa(e, t, i = gr, o = {}) {
|
|
|
1939
1939
|
let d, f;
|
|
1940
1940
|
switch (r) {
|
|
1941
1941
|
case "left":
|
|
1942
|
-
d = e.left - t - i, f =
|
|
1942
|
+
d = e.left - t - i, f = On(p, a, s);
|
|
1943
1943
|
break;
|
|
1944
1944
|
case "right":
|
|
1945
|
-
d = e.right + i, f =
|
|
1945
|
+
d = e.right + i, f = On(p, a, s);
|
|
1946
1946
|
break;
|
|
1947
1947
|
case "top":
|
|
1948
1948
|
d = Hn(p, a, t, u), f = e.top - s - i;
|
|
@@ -1957,7 +1957,7 @@ function wa(e, t, i = gr, o = {}) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
return { left: d, top: f };
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function On(e, t, i) {
|
|
1961
1961
|
switch (t) {
|
|
1962
1962
|
case "start":
|
|
1963
1963
|
return e.top;
|
|
@@ -2011,14 +2011,14 @@ function Sa(e) {
|
|
|
2011
2011
|
parentId: R,
|
|
2012
2012
|
region: L
|
|
2013
2013
|
} = Yt(), {
|
|
2014
|
-
getZIndex:
|
|
2014
|
+
getZIndex: _,
|
|
2015
2015
|
portalContainer: k,
|
|
2016
2016
|
register: W,
|
|
2017
2017
|
unregister: V,
|
|
2018
2018
|
bringToFront: D,
|
|
2019
2019
|
zIndexVersion: Y,
|
|
2020
2020
|
closeDescendants: A
|
|
2021
|
-
} = da(), H = na(), b = Qe(), w = ue(), N = `popout-panel-${y}`, G = `popout-title-${w}`, [J, Q] =
|
|
2021
|
+
} = da(), H = na(), b = Qe(), w = ue(), N = `popout-panel-${y}`, G = `popout-title-${w}`, [J, Q] = _e(null), ve = X(!1), ne = X(null), de = F(() => {
|
|
2022
2022
|
D(y);
|
|
2023
2023
|
}, [D, y]), {
|
|
2024
2024
|
dragTriggerProps: re,
|
|
@@ -2032,7 +2032,7 @@ function Sa(e) {
|
|
|
2032
2032
|
onDragStart: v,
|
|
2033
2033
|
onDrag: z,
|
|
2034
2034
|
onDragEnd: C
|
|
2035
|
-
}), we = (o == null ? void 0 : o.variant) === "tabs", ee = (o == null ? void 0 : o.variant) === "tabs" ? o : null, be = (ee == null ? void 0 : ee.defaultTab) ?? ((it = ee == null ? void 0 : ee.tabs[0]) == null ? void 0 : it.id), [et, Ue] =
|
|
2035
|
+
}), we = (o == null ? void 0 : o.variant) === "tabs", ee = (o == null ? void 0 : o.variant) === "tabs" ? o : null, be = (ee == null ? void 0 : ee.defaultTab) ?? ((it = ee == null ? void 0 : ee.tabs[0]) == null ? void 0 : it.id), [et, Ue] = _e(be), dt = f ?? (R === null ? 0 : mr), tt = F(
|
|
2036
2036
|
($, oe) => {
|
|
2037
2037
|
var ie;
|
|
2038
2038
|
Ue($), (ie = ee == null ? void 0 : ee.onTabChange) == null || ie.call(ee, $, oe);
|
|
@@ -2065,8 +2065,8 @@ function Sa(e) {
|
|
|
2065
2065
|
panel: (H == null ? void 0 : H.anchorRef.current) ?? null
|
|
2066
2066
|
};
|
|
2067
2067
|
return {
|
|
2068
|
-
inline:
|
|
2069
|
-
block:
|
|
2068
|
+
inline: _n(s, "x", $),
|
|
2069
|
+
block: _n(p, "y", $)
|
|
2070
2070
|
};
|
|
2071
2071
|
}, [E, R, H, s, p]), Ye = F(() => {
|
|
2072
2072
|
var ft;
|
|
@@ -2129,7 +2129,7 @@ function Sa(e) {
|
|
|
2129
2129
|
ve.current = T;
|
|
2130
2130
|
}, [T]), !T || !k)
|
|
2131
2131
|
return null;
|
|
2132
|
-
const nt =
|
|
2132
|
+
const nt = _(y), ut = {
|
|
2133
2133
|
left: ((J == null ? void 0 : J.left) ?? 0) + j.left,
|
|
2134
2134
|
top: ((J == null ? void 0 : J.top) ?? 0) + j.top
|
|
2135
2135
|
}, Me = /* @__PURE__ */ S(
|
|
@@ -2184,7 +2184,7 @@ function Sa(e) {
|
|
|
2184
2184
|
]
|
|
2185
2185
|
}
|
|
2186
2186
|
);
|
|
2187
|
-
return
|
|
2187
|
+
return Oi(Me, k);
|
|
2188
2188
|
}
|
|
2189
2189
|
function Ea({ children: e, action: t = "toggle" }) {
|
|
2190
2190
|
const {
|
|
@@ -2273,14 +2273,14 @@ function Jt(e) {
|
|
|
2273
2273
|
borderEndEndRadius: i
|
|
2274
2274
|
};
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function _a() {
|
|
2277
2277
|
const e = ct();
|
|
2278
2278
|
return Z(() => {
|
|
2279
2279
|
var i;
|
|
2280
2280
|
return ((i = new Intl.NumberFormat(e).formatToParts(La).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
|
|
2281
2281
|
}, [e]);
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function Oa({
|
|
2284
2284
|
color: e,
|
|
2285
2285
|
defaultColor: t,
|
|
2286
2286
|
opacity: i,
|
|
@@ -2295,7 +2295,7 @@ function _a({
|
|
|
2295
2295
|
onFocus: g,
|
|
2296
2296
|
onBlur: m
|
|
2297
2297
|
}) {
|
|
2298
|
-
const v = fe(), z = yo(), C =
|
|
2298
|
+
const v = fe(), z = yo(), C = _a(), T = ue(), P = vt({ name: p, disabled: d, disabledReason: f }), [E, y] = ae({
|
|
2299
2299
|
value: e,
|
|
2300
2300
|
defaultValue: void 0,
|
|
2301
2301
|
finalValue: void 0,
|
|
@@ -2305,7 +2305,7 @@ function _a({
|
|
|
2305
2305
|
defaultValue: void 0,
|
|
2306
2306
|
finalValue: void 0,
|
|
2307
2307
|
onChange: a
|
|
2308
|
-
}),
|
|
2308
|
+
}), _ = E === void 0, k = R === void 0, W = _ && (!u || k), V = E ?? t, D = R ?? o, [Y, A] = _e(V.replace("#", "").toUpperCase()), [H, b] = _e(D);
|
|
2309
2309
|
Ee(() => {
|
|
2310
2310
|
A(V.replace("#", "").toUpperCase());
|
|
2311
2311
|
}, [V]), Ee(() => {
|
|
@@ -2401,14 +2401,14 @@ function _a({
|
|
|
2401
2401
|
onFocus: g,
|
|
2402
2402
|
onBlur: J,
|
|
2403
2403
|
"aria-label": v.colorHexValue,
|
|
2404
|
-
"data-is-default":
|
|
2404
|
+
"data-is-default": _ ? "true" : "false",
|
|
2405
2405
|
w: Ca,
|
|
2406
2406
|
styles: {
|
|
2407
2407
|
input: {
|
|
2408
2408
|
...Jt(de),
|
|
2409
2409
|
fontFamily: "monospace",
|
|
2410
2410
|
textTransform: "uppercase",
|
|
2411
|
-
...
|
|
2411
|
+
..._ ? {
|
|
2412
2412
|
fontStyle: "italic",
|
|
2413
2413
|
color: x.CHROME
|
|
2414
2414
|
} : {}
|
|
@@ -2730,7 +2730,7 @@ function Vl(e) {
|
|
|
2730
2730
|
);
|
|
2731
2731
|
const L = (H) => {
|
|
2732
2732
|
E(!P, H);
|
|
2733
|
-
},
|
|
2733
|
+
}, _ = P ? m.collapseSection(t) : m.expandSection(t), k = m.addToSection(t), W = ze(v) ? "chevronLeft" : "chevronRight", V = {
|
|
2734
2734
|
flex: "0 0 auto",
|
|
2735
2735
|
width: c.GLYPH_SLOT,
|
|
2736
2736
|
height: c.GLYPH_SLOT,
|
|
@@ -2824,7 +2824,7 @@ function Vl(e) {
|
|
|
2824
2824
|
{
|
|
2825
2825
|
type: "button",
|
|
2826
2826
|
"data-testid": "control-section-toggle",
|
|
2827
|
-
"aria-label":
|
|
2827
|
+
"aria-label": _,
|
|
2828
2828
|
"aria-expanded": P,
|
|
2829
2829
|
"aria-controls": C,
|
|
2830
2830
|
onClick: L,
|
|
@@ -3127,7 +3127,7 @@ function ss(e, t) {
|
|
|
3127
3127
|
hiddenColumns: y,
|
|
3128
3128
|
defaultHiddenColumns: R,
|
|
3129
3129
|
onHiddenColumnsChange: L,
|
|
3130
|
-
columnOrder:
|
|
3130
|
+
columnOrder: _,
|
|
3131
3131
|
defaultColumnOrder: k,
|
|
3132
3132
|
onColumnOrderChange: W,
|
|
3133
3133
|
filter: V,
|
|
@@ -3165,7 +3165,7 @@ function ss(e, t) {
|
|
|
3165
3165
|
L == null || L([...l], I);
|
|
3166
3166
|
}
|
|
3167
3167
|
}), [Ue, dt] = ae({
|
|
3168
|
-
value:
|
|
3168
|
+
value: _,
|
|
3169
3169
|
defaultValue: k,
|
|
3170
3170
|
finalValue: tn,
|
|
3171
3171
|
onChange: (l, I) => {
|
|
@@ -3203,7 +3203,7 @@ function ss(e, t) {
|
|
|
3203
3203
|
// accented word after every unaccented one. This one reads the
|
|
3204
3204
|
// value through the column's own accessor and compares it with
|
|
3205
3205
|
// the collator for the active locale.
|
|
3206
|
-
sortFn: (I,
|
|
3206
|
+
sortFn: (I, O) => Ja(l.value(I.original), l.value(O.original), re)
|
|
3207
3207
|
})),
|
|
3208
3208
|
[o, re]
|
|
3209
3209
|
), ut = JSON.stringify(we), pt = Z(
|
|
@@ -3230,8 +3230,8 @@ function ss(e, t) {
|
|
|
3230
3230
|
// actually looks in is decided per row below, from the visible set that
|
|
3231
3231
|
// travels with the query.
|
|
3232
3232
|
getColumnCanGlobalFilter: () => !0,
|
|
3233
|
-
globalFilterFn: (l, I,
|
|
3234
|
-
const U =
|
|
3233
|
+
globalFilterFn: (l, I, O) => {
|
|
3234
|
+
const U = O;
|
|
3235
3235
|
if (U === void 0 || !U.columnIds.includes(I))
|
|
3236
3236
|
return !1;
|
|
3237
3237
|
const te = Re.get(I);
|
|
@@ -3245,21 +3245,21 @@ function ss(e, t) {
|
|
|
3245
3245
|
globalFilter: We
|
|
3246
3246
|
},
|
|
3247
3247
|
onSortingChange: (l) => {
|
|
3248
|
-
const I =
|
|
3248
|
+
const I = _t(l, pt);
|
|
3249
3249
|
ee(
|
|
3250
|
-
I.map((
|
|
3250
|
+
I.map((O) => ({ id: O.id, desc: O.desc })),
|
|
3251
3251
|
Ae.current
|
|
3252
3252
|
);
|
|
3253
3253
|
},
|
|
3254
3254
|
onColumnVisibilityChange: (l) => {
|
|
3255
|
-
const I =
|
|
3256
|
-
et(Object.keys(I).filter((
|
|
3255
|
+
const I = _t(l, ot);
|
|
3256
|
+
et(Object.keys(I).filter((O) => !I[O]));
|
|
3257
3257
|
},
|
|
3258
3258
|
onColumnOrderChange: (l) => {
|
|
3259
|
-
dt(
|
|
3259
|
+
dt(_t(l, it));
|
|
3260
3260
|
},
|
|
3261
3261
|
onRowSelectionChange: (l) => {
|
|
3262
|
-
ye(Object.keys(
|
|
3262
|
+
ye(Object.keys(_t(l, Me)));
|
|
3263
3263
|
}
|
|
3264
3264
|
}), { rows: oe } = $.getRowModel(), ie = $.getVisibleLeafColumns(), le = oe.length, me = ie.length, Le = Z(() => oe.map((l) => l.id), [oe]), M = X(null), ce = X(null), Ne = Ui({
|
|
3265
3265
|
count: le,
|
|
@@ -3267,19 +3267,19 @@ function ss(e, t) {
|
|
|
3267
3267
|
estimateSize: () => d,
|
|
3268
3268
|
getItemKey: (l) => Le[l] ?? l,
|
|
3269
3269
|
overscan: g
|
|
3270
|
-
}), [zt, je] =
|
|
3270
|
+
}), [zt, je] = _e({ row: xe, column: 0 }), he = Z(() => Ka(zt, { rowCount: le, columnCount: me }), [zt, le, me]), ft = X(!1), Ke = X(void 0), Vo = (l) => {
|
|
3271
3271
|
l.row >= 0 && Ne.scrollToIndex(l.row), ft.current = !0, je((I) => kt(I, l) ? I : l);
|
|
3272
3272
|
};
|
|
3273
3273
|
Li(() => {
|
|
3274
|
-
var
|
|
3274
|
+
var O;
|
|
3275
3275
|
if (!ft.current)
|
|
3276
3276
|
return;
|
|
3277
|
-
const l = `[data-grid-row="${he.row}"][data-grid-column="${he.column}"]`, I = (
|
|
3277
|
+
const l = `[data-grid-row="${he.row}"][data-grid-column="${he.column}"]`, I = (O = ce.current) == null ? void 0 : O.querySelector(l);
|
|
3278
3278
|
I instanceof HTMLElement && (ft.current = !1, I.focus());
|
|
3279
3279
|
});
|
|
3280
3280
|
const Sn = (l, I) => {
|
|
3281
3281
|
Ke.current = l.anchor, !(l.selected.length === K.length && l.selected.every((U, te) => U === K[te])) && ye(l.selected, I);
|
|
3282
|
-
}, Ct = (l, I,
|
|
3282
|
+
}, Ct = (l, I, O) => {
|
|
3283
3283
|
Sn(
|
|
3284
3284
|
qa({
|
|
3285
3285
|
ids: Le,
|
|
@@ -3289,20 +3289,20 @@ function ss(e, t) {
|
|
|
3289
3289
|
modifiers: I,
|
|
3290
3290
|
mode: m
|
|
3291
3291
|
}),
|
|
3292
|
-
|
|
3292
|
+
O
|
|
3293
3293
|
);
|
|
3294
|
-
}, En = (l, I,
|
|
3294
|
+
}, En = (l, I, O) => {
|
|
3295
3295
|
const U = oe[l];
|
|
3296
|
-
U !== void 0 && (H == null || H(U.original, I,
|
|
3296
|
+
U !== void 0 && (H == null || H(U.original, I, O));
|
|
3297
3297
|
}, $o = (l, I) => {
|
|
3298
3298
|
l.getCanSort() && (Ae.current = I, l.toggleSorting(void 0, I.shiftKey && l.getCanMultiSort()), Ae.current = void 0);
|
|
3299
3299
|
}, Bo = () => {
|
|
3300
|
-
var
|
|
3301
|
-
const l = ((
|
|
3300
|
+
var O;
|
|
3301
|
+
const l = ((O = M.current) == null ? void 0 : O.clientHeight) ?? 0, I = Math.floor((l === 0 ? d * 10 : l) / d);
|
|
3302
3302
|
return Math.max(1, I - 1);
|
|
3303
3303
|
}, Uo = (l) => {
|
|
3304
|
-
const I = m === "multiple",
|
|
3305
|
-
if (I &&
|
|
3304
|
+
const I = m === "multiple", O = l.ctrlKey || l.metaKey;
|
|
3305
|
+
if (I && O && (l.key === "a" || l.key === "A")) {
|
|
3306
3306
|
l.preventDefault(), Sn(Za(Le, K, m), l);
|
|
3307
3307
|
return;
|
|
3308
3308
|
}
|
|
@@ -3315,23 +3315,23 @@ function ss(e, t) {
|
|
|
3315
3315
|
l.key,
|
|
3316
3316
|
{ rowCount: le, columnCount: me, pageSize: Bo() },
|
|
3317
3317
|
ve,
|
|
3318
|
-
{ jumpToEnd:
|
|
3318
|
+
{ jumpToEnd: O }
|
|
3319
3319
|
);
|
|
3320
3320
|
U !== void 0 && (l.preventDefault(), Vo(U), I && l.shiftKey && U.row >= 0 && U.row !== he.row && Ct(U.row, { extend: !0, toggle: !1 }, l));
|
|
3321
3321
|
};
|
|
3322
|
-
|
|
3322
|
+
_i(
|
|
3323
3323
|
t,
|
|
3324
3324
|
() => ({
|
|
3325
3325
|
scrollToRow: (l) => {
|
|
3326
3326
|
l >= 0 && l < le && Ne.scrollToIndex(l);
|
|
3327
3327
|
},
|
|
3328
3328
|
setColumnHidden: (l, I) => {
|
|
3329
|
-
var
|
|
3330
|
-
(
|
|
3329
|
+
var O;
|
|
3330
|
+
(O = $.getColumn(l)) == null || O.toggleVisibility(!I);
|
|
3331
3331
|
},
|
|
3332
3332
|
moveColumn: (l, I) => {
|
|
3333
|
-
const
|
|
3334
|
-
U !== -1 && (
|
|
3333
|
+
const O = $.getAllLeafColumns().map((te) => te.id), U = O.indexOf(l);
|
|
3334
|
+
U !== -1 && (O.splice(U, 1), O.splice(as(I, 0, O.length), 0, l), $.setColumnOrder(O));
|
|
3335
3335
|
},
|
|
3336
3336
|
clearSelection: () => {
|
|
3337
3337
|
Ke.current = void 0, ye([]);
|
|
@@ -3341,14 +3341,14 @@ function ss(e, t) {
|
|
|
3341
3341
|
);
|
|
3342
3342
|
const Wo = ie.reduce(
|
|
3343
3343
|
(l, I) => {
|
|
3344
|
-
var
|
|
3345
|
-
return l + (((
|
|
3344
|
+
var O;
|
|
3345
|
+
return l + (((O = Re.get(I.id)) == null ? void 0 : O.width) ?? c.FIELD);
|
|
3346
3346
|
},
|
|
3347
3347
|
0
|
|
3348
3348
|
), In = (l, I) => {
|
|
3349
|
-
const
|
|
3349
|
+
const O = (l == null ? void 0 : l.width) ?? c.FIELD;
|
|
3350
3350
|
return {
|
|
3351
|
-
flex: I === me - 1 ? `1 1 ${String(
|
|
3351
|
+
flex: I === me - 1 ? `1 1 ${String(O)}px` : `0 0 ${String(O)}px`,
|
|
3352
3352
|
minWidth: 0,
|
|
3353
3353
|
boxSizing: "border-box",
|
|
3354
3354
|
display: "flex",
|
|
@@ -3486,14 +3486,14 @@ function ss(e, t) {
|
|
|
3486
3486
|
"aria-rowindex": 1,
|
|
3487
3487
|
style: { display: "flex", width: "100%", height: f },
|
|
3488
3488
|
children: ie.map((l, I) => {
|
|
3489
|
-
const
|
|
3489
|
+
const O = Re.get(l.id), U = l.getCanSort(), te = l.getIsSorted(), Se = he.row === xe && he.column === I, Rt = te === !1 ? -1 : l.getSortIndex(), At = Se ? 0 : -1, yt = /* @__PURE__ */ S(q, { children: [
|
|
3490
3490
|
/* @__PURE__ */ n(
|
|
3491
3491
|
h,
|
|
3492
3492
|
{
|
|
3493
3493
|
component: "span",
|
|
3494
3494
|
"data-testid": "data-table-header-label",
|
|
3495
3495
|
dir: "auto",
|
|
3496
|
-
title:
|
|
3496
|
+
title: O == null ? void 0 : O.header,
|
|
3497
3497
|
style: {
|
|
3498
3498
|
flex: "0 1 auto",
|
|
3499
3499
|
minWidth: 0,
|
|
@@ -3502,7 +3502,7 @@ function ss(e, t) {
|
|
|
3502
3502
|
whiteSpace: "nowrap",
|
|
3503
3503
|
color: te === !1 ? void 0 : x.VALUE
|
|
3504
3504
|
},
|
|
3505
|
-
children: (
|
|
3505
|
+
children: (O == null ? void 0 : O.header) ?? l.id
|
|
3506
3506
|
}
|
|
3507
3507
|
),
|
|
3508
3508
|
te !== !1 && /* @__PURE__ */ n(
|
|
@@ -3563,7 +3563,7 @@ function ss(e, t) {
|
|
|
3563
3563
|
);
|
|
3564
3564
|
},
|
|
3565
3565
|
style: {
|
|
3566
|
-
...In(
|
|
3566
|
+
...In(O, I),
|
|
3567
3567
|
gap: c.GUTTER / 2,
|
|
3568
3568
|
height: f,
|
|
3569
3569
|
fontSize: "var(--mantine-font-size-sm)",
|
|
@@ -3597,7 +3597,7 @@ function ss(e, t) {
|
|
|
3597
3597
|
display: "flex",
|
|
3598
3598
|
alignItems: "center",
|
|
3599
3599
|
gap: c.GUTTER / 2,
|
|
3600
|
-
justifyContent: (
|
|
3600
|
+
justifyContent: (O == null ? void 0 : O.align) === "end" ? "flex-end" : "flex-start",
|
|
3601
3601
|
flex: "1 1 auto",
|
|
3602
3602
|
minWidth: 0,
|
|
3603
3603
|
height: "100%",
|
|
@@ -3632,16 +3632,16 @@ function ss(e, t) {
|
|
|
3632
3632
|
const I = oe[l.index];
|
|
3633
3633
|
if (I === void 0)
|
|
3634
3634
|
return null;
|
|
3635
|
-
const
|
|
3635
|
+
const O = K.includes(I.id);
|
|
3636
3636
|
return /* @__PURE__ */ n(
|
|
3637
3637
|
rt.Tr,
|
|
3638
3638
|
{
|
|
3639
3639
|
role: "row",
|
|
3640
3640
|
"data-testid": "data-table-row",
|
|
3641
3641
|
"data-index": l.index,
|
|
3642
|
-
"data-selected":
|
|
3642
|
+
"data-selected": O ? "true" : void 0,
|
|
3643
3643
|
"aria-rowindex": l.index + 2,
|
|
3644
|
-
"aria-selected": Pt ?
|
|
3644
|
+
"aria-selected": Pt ? O : void 0,
|
|
3645
3645
|
onDoubleClick: (U) => {
|
|
3646
3646
|
b == null || b(I.original, U);
|
|
3647
3647
|
},
|
|
@@ -3656,7 +3656,7 @@ function ss(e, t) {
|
|
|
3656
3656
|
width: "100%",
|
|
3657
3657
|
height: d,
|
|
3658
3658
|
transform: `translateY(${String(l.start)}px)`,
|
|
3659
|
-
background:
|
|
3659
|
+
background: O ? is : void 0,
|
|
3660
3660
|
cursor: Pt ? "pointer" : void 0
|
|
3661
3661
|
},
|
|
3662
3662
|
children: ie.map((U, te) => {
|
|
@@ -3782,7 +3782,7 @@ function Ul({
|
|
|
3782
3782
|
y.current || (y.current = !0, s == null || s(A));
|
|
3783
3783
|
}, L = (A, H) => {
|
|
3784
3784
|
y.current = !1, p == null || p(A, H);
|
|
3785
|
-
},
|
|
3785
|
+
}, _ = (A, H) => C.map((b, w) => w === A ? { ...b, color: H } : b), k = (A, H) => C.map((b, w) => w === A ? { ...b, offset: H / nn } : b), W = (A) => {
|
|
3786
3786
|
if (C.length >= d)
|
|
3787
3787
|
return;
|
|
3788
3788
|
const H = C[C.length - 1], b = H === void 0 ? 0.5 : (H.offset + 1) / 2, w = [...C, fn(b, qt)];
|
|
@@ -3814,12 +3814,12 @@ function Ul({
|
|
|
3814
3814
|
const b = g.format(H + 1);
|
|
3815
3815
|
return /* @__PURE__ */ S(qe, { "data-testid": "gradient-editor-stop", gap: "xs", align: "flex-end", wrap: "nowrap", children: [
|
|
3816
3816
|
/* @__PURE__ */ n(
|
|
3817
|
-
|
|
3817
|
+
Oa,
|
|
3818
3818
|
{
|
|
3819
3819
|
color: A.color,
|
|
3820
3820
|
defaultColor: qt,
|
|
3821
3821
|
onColorChange: (w, N) => {
|
|
3822
|
-
T(
|
|
3822
|
+
T(_(H, w ?? qt), N);
|
|
3823
3823
|
},
|
|
3824
3824
|
showOpacity: !1
|
|
3825
3825
|
}
|
|
@@ -3925,14 +3925,14 @@ function Wl({
|
|
|
3925
3925
|
defaultValue: void 0,
|
|
3926
3926
|
finalValue: void 0,
|
|
3927
3927
|
onChange: o
|
|
3928
|
-
}), R = E === void 0, L = E ?? i, [
|
|
3928
|
+
}), R = E === void 0, L = E ?? i, [_, k] = _e(L), W = X(!1);
|
|
3929
3929
|
Ee(() => {
|
|
3930
3930
|
W.current || k(E ?? i), W.current = !1;
|
|
3931
3931
|
}, [E, i]);
|
|
3932
3932
|
const V = (A) => {
|
|
3933
3933
|
W.current = !0, k(A);
|
|
3934
3934
|
}, D = (A) => {
|
|
3935
|
-
const H = typeof
|
|
3935
|
+
const H = typeof _ == "string" ? T(_) : _;
|
|
3936
3936
|
if (Number.isNaN(H)) {
|
|
3937
3937
|
k(E ?? i), v == null || v(A);
|
|
3938
3938
|
return;
|
|
@@ -3958,7 +3958,7 @@ function Wl({
|
|
|
3958
3958
|
"data-testid": "style-number-input-field",
|
|
3959
3959
|
label: e,
|
|
3960
3960
|
description: C.description,
|
|
3961
|
-
value:
|
|
3961
|
+
value: _,
|
|
3962
3962
|
onChange: V,
|
|
3963
3963
|
onFocus: m,
|
|
3964
3964
|
onBlur: D,
|
|
@@ -4224,7 +4224,7 @@ function Kl(e) {
|
|
|
4224
4224
|
onClick: d,
|
|
4225
4225
|
onFocus: f,
|
|
4226
4226
|
onBlur: g
|
|
4227
|
-
} = e, m = Ze(r, o), { hovered: v, ref: z } = fo(), C = ho(Es) ?? !1, [T, P] =
|
|
4227
|
+
} = e, m = Ze(r, o), { hovered: v, ref: z } = fo(), C = ho(Es) ?? !1, [T, P] = _e(!1), E = ue(), y = T || (p ?? (v || C)), R = a !== void 0 || s !== void 0, L = Is(t), _ = i !== void 0 && i !== L, k = i ?? L, W = R && t !== void 0, V = _ ? /* @__PURE__ */ S(q, { children: [
|
|
4228
4228
|
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: t }),
|
|
4229
4229
|
/* @__PURE__ */ n(Te, { "data-testid": "action-row-state-full", children: i })
|
|
4230
4230
|
] }) : t;
|
|
@@ -4359,7 +4359,7 @@ function Kl(e) {
|
|
|
4359
4359
|
}
|
|
4360
4360
|
);
|
|
4361
4361
|
}
|
|
4362
|
-
const Lo = c.GUTTER, Ts = 12,
|
|
4362
|
+
const Lo = c.GUTTER, Ts = 12, _o = 1.2, zs = 20, Cs = 500, Ps = "var(--mantine-primary-color-light)";
|
|
4363
4363
|
function Xl({
|
|
4364
4364
|
name: e,
|
|
4365
4365
|
value: t,
|
|
@@ -4377,8 +4377,8 @@ function Xl({
|
|
|
4377
4377
|
const { hovered: m, ref: v } = fo(), z = s !== void 0, C = i != null, T = t != null, P = Tt(g), E = r === "option", y = E ? o : void 0, R = !E && o ? !0 : void 0, L = (V) => {
|
|
4378
4378
|
s == null || s(V, It(V));
|
|
4379
4379
|
};
|
|
4380
|
-
let
|
|
4381
|
-
o ?
|
|
4380
|
+
let _ = "transparent";
|
|
4381
|
+
o ? _ = Ps : z && m && (_ = x.SURFACE);
|
|
4382
4382
|
const k = /* @__PURE__ */ S(q, { children: [
|
|
4383
4383
|
C && /* @__PURE__ */ n(
|
|
4384
4384
|
h,
|
|
@@ -4456,10 +4456,10 @@ function Xl({
|
|
|
4456
4456
|
height: c.DATA_PITCH,
|
|
4457
4457
|
paddingInline: Lo,
|
|
4458
4458
|
borderRadius: "var(--mantine-radius-sm)",
|
|
4459
|
-
background:
|
|
4459
|
+
background: _,
|
|
4460
4460
|
color: x.VALUE,
|
|
4461
4461
|
fontSize: Ts,
|
|
4462
|
-
lineHeight:
|
|
4462
|
+
lineHeight: _o
|
|
4463
4463
|
},
|
|
4464
4464
|
children: [
|
|
4465
4465
|
z ? /* @__PURE__ */ n(
|
|
@@ -4541,7 +4541,7 @@ function ql({
|
|
|
4541
4541
|
a !== void 0 && f && // Redundant to a screen reader: the position of this column in a
|
|
4542
4542
|
// multi-column sort is drawn for the eye, and every column
|
|
4543
4543
|
// announces its own direction through aria-sort.
|
|
4544
|
-
/* @__PURE__ */ n(h, { component: "span", "aria-hidden": "true", style: { flex: "0 0 auto", display: "flex" }, children: /* @__PURE__ */ n(
|
|
4544
|
+
/* @__PURE__ */ n(h, { component: "span", "aria-hidden": "true", style: { flex: "0 0 auto", display: "flex" }, children: /* @__PURE__ */ n(Oo, { children: u.format(a) }) }),
|
|
4545
4545
|
f && /* @__PURE__ */ n(
|
|
4546
4546
|
h,
|
|
4547
4547
|
{
|
|
@@ -4578,7 +4578,7 @@ function ql({
|
|
|
4578
4578
|
height: zs,
|
|
4579
4579
|
paddingInline: Lo,
|
|
4580
4580
|
fontSize: "var(--mantine-font-size-sm)",
|
|
4581
|
-
lineHeight:
|
|
4581
|
+
lineHeight: _o,
|
|
4582
4582
|
color: x.CHROME
|
|
4583
4583
|
},
|
|
4584
4584
|
children: d ? /* @__PURE__ */ n(
|
|
@@ -4606,7 +4606,7 @@ function ql({
|
|
|
4606
4606
|
}
|
|
4607
4607
|
);
|
|
4608
4608
|
}
|
|
4609
|
-
function
|
|
4609
|
+
function Oo({ children: e }) {
|
|
4610
4610
|
return /* @__PURE__ */ n(
|
|
4611
4611
|
po,
|
|
4612
4612
|
{
|
|
@@ -4624,7 +4624,7 @@ function _o({ children: e }) {
|
|
|
4624
4624
|
}
|
|
4625
4625
|
);
|
|
4626
4626
|
}
|
|
4627
|
-
const Kn = 2, Rs = 1, As = 13, Ls = 2,
|
|
4627
|
+
const Kn = 2, Rs = 1, As = 13, Ls = 2, _s = 1, Os = 1, Hs = 64, Ho = 4, Xn = Ho / 2, No = 4, Ns = 12, at = 100, Ds = 1.5, hn = 100;
|
|
4628
4628
|
function Vt({ children: e, end: t, id: i }) {
|
|
4629
4629
|
return /* @__PURE__ */ n(
|
|
4630
4630
|
h,
|
|
@@ -4767,9 +4767,9 @@ function Zl({
|
|
|
4767
4767
|
flex: "1 1 0",
|
|
4768
4768
|
minWidth: 0,
|
|
4769
4769
|
height: `${String(z)}%`,
|
|
4770
|
-
minHeight: v > 0 ?
|
|
4770
|
+
minHeight: v > 0 ? Os : 0,
|
|
4771
4771
|
background: C ? x.ACCENT : x.BORDER,
|
|
4772
|
-
borderRadius:
|
|
4772
|
+
borderRadius: _s
|
|
4773
4773
|
}
|
|
4774
4774
|
},
|
|
4775
4775
|
`${g.label}-${String(m)}`
|
|
@@ -5014,7 +5014,7 @@ function Ql({
|
|
|
5014
5014
|
children: i
|
|
5015
5015
|
}
|
|
5016
5016
|
),
|
|
5017
|
-
o !== void 0 && /* @__PURE__ */ n(
|
|
5017
|
+
o !== void 0 && /* @__PURE__ */ n(Oo, { children: o })
|
|
5018
5018
|
]
|
|
5019
5019
|
}
|
|
5020
5020
|
);
|
|
@@ -5024,7 +5024,7 @@ function Gs({ showLabels: e = !1, children: t }) {
|
|
|
5024
5024
|
return /* @__PURE__ */ n(Mo.Provider, { value: e, children: t });
|
|
5025
5025
|
}
|
|
5026
5026
|
function jt() {
|
|
5027
|
-
return
|
|
5027
|
+
return Oe(Mo);
|
|
5028
5028
|
}
|
|
5029
5029
|
const Ms = c.VALUE_INSET - c.GLYPH_SLOT, Fs = 2, Vs = 1, $s = 2, Bs = 3;
|
|
5030
5030
|
function Us(e) {
|
|
@@ -5150,9 +5150,9 @@ function ec({
|
|
|
5150
5150
|
onFocus: p,
|
|
5151
5151
|
onBlur: u
|
|
5152
5152
|
}) {
|
|
5153
|
-
const d = jt(), f = Ie.useId(), g = t.filter((
|
|
5153
|
+
const d = jt(), f = Ie.useId(), g = t.filter((_) => _.grow === !0).length;
|
|
5154
5154
|
Be(Ys(e, t.length)), Be(js(e, g));
|
|
5155
|
-
const m = t.findIndex((
|
|
5155
|
+
const m = t.findIndex((_) => _.grow === !0), v = m === -1 ? 0 : m, z = s !== void 0, C = Ao(a, r) !== "off", T = z || C, P = z ? void 0 : f, E = T ? void 0 : f, y = T || d, R = {
|
|
5156
5156
|
display: "flex",
|
|
5157
5157
|
alignItems: "center",
|
|
5158
5158
|
boxSizing: "border-box",
|
|
@@ -5169,7 +5169,7 @@ function ec({
|
|
|
5169
5169
|
cursor: z ? "pointer" : void 0
|
|
5170
5170
|
}, L = /* @__PURE__ */ S(q, { children: [
|
|
5171
5171
|
T && /* @__PURE__ */ n(Te, { id: P, children: e }),
|
|
5172
|
-
t.map((
|
|
5172
|
+
t.map((_, k) => /* @__PURE__ */ S(Ie.Fragment, { children: [
|
|
5173
5173
|
k > 0 && /* @__PURE__ */ n(
|
|
5174
5174
|
h,
|
|
5175
5175
|
{
|
|
@@ -5182,7 +5182,7 @@ function ec({
|
|
|
5182
5182
|
}
|
|
5183
5183
|
}
|
|
5184
5184
|
),
|
|
5185
|
-
/* @__PURE__ */ n(Ws, { segment:
|
|
5185
|
+
/* @__PURE__ */ n(Ws, { segment: _, grow: k === v, index: k })
|
|
5186
5186
|
] }, k))
|
|
5187
5187
|
] });
|
|
5188
5188
|
return /* @__PURE__ */ S(
|
|
@@ -5287,7 +5287,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
|
|
|
5287
5287
|
onScrubStart: y,
|
|
5288
5288
|
onScrub: R,
|
|
5289
5289
|
onScrubEnd: L,
|
|
5290
|
-
onClick:
|
|
5290
|
+
onClick: _,
|
|
5291
5291
|
disabled: k = !1,
|
|
5292
5292
|
readOnly: W,
|
|
5293
5293
|
boundDescription: V,
|
|
@@ -5323,9 +5323,9 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
|
|
|
5323
5323
|
}, nt = (M) => {
|
|
5324
5324
|
Re.current && (Re.current = !1, He.current && (He.current = !1, L == null || L(M)));
|
|
5325
5325
|
}, ut = (M) => {
|
|
5326
|
-
k ||
|
|
5326
|
+
k || _ == null || _(M);
|
|
5327
5327
|
}, pt = (M) => {
|
|
5328
|
-
b == null || b(M), !(
|
|
5328
|
+
b == null || b(M), !(_ === void 0 || k || M.defaultPrevented) && (j || (M.key === "Enter" || M.key === " " && se) && (M.preventDefault(), _(M)));
|
|
5329
5329
|
}, ot = (M, ce) => {
|
|
5330
5330
|
ne(M, ce);
|
|
5331
5331
|
};
|
|
@@ -5603,7 +5603,7 @@ const tc = Ut(function({
|
|
|
5603
5603
|
flexDirection: "column",
|
|
5604
5604
|
...a
|
|
5605
5605
|
},
|
|
5606
|
-
children: g.map((L,
|
|
5606
|
+
children: g.map((L, _) => {
|
|
5607
5607
|
const k = Qs(L);
|
|
5608
5608
|
return /* @__PURE__ */ S(
|
|
5609
5609
|
h,
|
|
@@ -5656,10 +5656,10 @@ const tc = Ut(function({
|
|
|
5656
5656
|
children: /* @__PURE__ */ n(Gs, { showLabels: !1, children: Qn(L) })
|
|
5657
5657
|
}
|
|
5658
5658
|
),
|
|
5659
|
-
/* @__PURE__ */ n(ke, { children:
|
|
5659
|
+
/* @__PURE__ */ n(ke, { children: _ === 0 ? i : null })
|
|
5660
5660
|
]
|
|
5661
5661
|
},
|
|
5662
|
-
Jn(L,
|
|
5662
|
+
Jn(L, _)
|
|
5663
5663
|
);
|
|
5664
5664
|
})
|
|
5665
5665
|
}
|
|
@@ -5685,7 +5685,7 @@ const tc = Ut(function({
|
|
|
5685
5685
|
...a
|
|
5686
5686
|
},
|
|
5687
5687
|
children: [
|
|
5688
|
-
g.map((L,
|
|
5688
|
+
g.map((L, _) => /* @__PURE__ */ n(
|
|
5689
5689
|
h,
|
|
5690
5690
|
{
|
|
5691
5691
|
"data-testid": "field-row-slot",
|
|
@@ -5699,12 +5699,12 @@ const tc = Ut(function({
|
|
|
5699
5699
|
// the top of this file: a physical gutter escapes the
|
|
5700
5700
|
// pair under dir="rtl" and a physical trail gap lands
|
|
5701
5701
|
// inside it.
|
|
5702
|
-
marginInlineStart:
|
|
5703
|
-
marginInlineEnd:
|
|
5702
|
+
marginInlineStart: _ === 0 ? void 0 : c.GUTTER,
|
|
5703
|
+
marginInlineEnd: _ === m - 1 ? R : void 0
|
|
5704
5704
|
},
|
|
5705
5705
|
children: Qn(L)
|
|
5706
5706
|
},
|
|
5707
|
-
Jn(L,
|
|
5707
|
+
Jn(L, _)
|
|
5708
5708
|
)),
|
|
5709
5709
|
/* @__PURE__ */ n(ke, { children: i })
|
|
5710
5710
|
]
|
|
@@ -5739,7 +5739,7 @@ function nc(e) {
|
|
|
5739
5739
|
Be(
|
|
5740
5740
|
T < el || T > tl ? `IconGroupRow was given ${String(T)} ${T === 1 ? "option" : "options"}, and it holds two to six drawable ones. One option is a statement rather than a choice and belongs in a field, and more than six stop reading as a set of drawings -- use a select instead. Rendering them anyway.` : void 0
|
|
5741
5741
|
);
|
|
5742
|
-
const
|
|
5742
|
+
const _ = g ?? (T <= sl ? c.FIELD : c.BODY), k = _ === "fill", W = (D) => {
|
|
5743
5743
|
var b;
|
|
5744
5744
|
if (u || D.key !== "Home" && D.key !== "End")
|
|
5745
5745
|
return;
|
|
@@ -5861,7 +5861,7 @@ function nc(e) {
|
|
|
5861
5861
|
root: {
|
|
5862
5862
|
boxSizing: "border-box",
|
|
5863
5863
|
flex: k ? "1 1 auto" : "0 0 auto",
|
|
5864
|
-
width: k ? "100%" :
|
|
5864
|
+
width: k ? "100%" : _,
|
|
5865
5865
|
minWidth: 0,
|
|
5866
5866
|
height: c.CONTROL_HEIGHT,
|
|
5867
5867
|
padding: Fo,
|
|
@@ -6123,7 +6123,7 @@ function ic({
|
|
|
6123
6123
|
children: /* @__PURE__ */ n(xt, { name: z })
|
|
6124
6124
|
}
|
|
6125
6125
|
) : L = /* @__PURE__ */ n(Fa, { label: C, icon: /* @__PURE__ */ n(xt, { name: z }), onClick: u }));
|
|
6126
|
-
const
|
|
6126
|
+
const _ = Tt(d) ? d : L;
|
|
6127
6127
|
return /* @__PURE__ */ S(
|
|
6128
6128
|
h,
|
|
6129
6129
|
{
|
|
@@ -6186,7 +6186,7 @@ function ic({
|
|
|
6186
6186
|
display: "flex",
|
|
6187
6187
|
marginInlineStart: c.TRAIL_GAP - sn
|
|
6188
6188
|
},
|
|
6189
|
-
children: /* @__PURE__ */ n(ke, { children:
|
|
6189
|
+
children: /* @__PURE__ */ n(ke, { children: _ })
|
|
6190
6190
|
}
|
|
6191
6191
|
)
|
|
6192
6192
|
]
|
|
@@ -6341,12 +6341,12 @@ const lc = {
|
|
|
6341
6341
|
CONTROL_PADDING: 8,
|
|
6342
6342
|
/** Gap between items in sections/lists in pixels */
|
|
6343
6343
|
SECTION_GAP: 4
|
|
6344
|
-
}
|
|
6344
|
+
};
|
|
6345
6345
|
export {
|
|
6346
6346
|
Kl as ActionRow,
|
|
6347
6347
|
Fa as AdvancedButton,
|
|
6348
6348
|
cc as COMPACT_SIZING,
|
|
6349
|
-
|
|
6349
|
+
Oa as CompactColorInput,
|
|
6350
6350
|
ec as CompoundRow,
|
|
6351
6351
|
Fl as ControlGroup,
|
|
6352
6352
|
Vl as ControlSection,
|
|
@@ -6363,7 +6363,7 @@ export {
|
|
|
6363
6363
|
Zl as HistogramRow,
|
|
6364
6364
|
nc as IconGroupRow,
|
|
6365
6365
|
Ma as InfoCircle,
|
|
6366
|
-
|
|
6366
|
+
Ol as LabelsProvider,
|
|
6367
6367
|
lc as MANTINE_SPACING,
|
|
6368
6368
|
Io as MAX_ALPHA_HEX,
|
|
6369
6369
|
To as MAX_OPACITY_PERCENT,
|
|
@@ -6381,7 +6381,7 @@ export {
|
|
|
6381
6381
|
Gl as PopoutRegion,
|
|
6382
6382
|
oc as ProseBlock,
|
|
6383
6383
|
ic as RampRow,
|
|
6384
|
-
|
|
6384
|
+
Oo as RankChip,
|
|
6385
6385
|
kr as SWATCH_COLORS_HEXA,
|
|
6386
6386
|
Jl as SparklineRow,
|
|
6387
6387
|
Wl as StyleNumberInput,
|
|
@@ -6392,10 +6392,9 @@ export {
|
|
|
6392
6392
|
ke as TrailingSlot,
|
|
6393
6393
|
Hl as UI_GLYPH_NAMES,
|
|
6394
6394
|
pe as UiGlyph,
|
|
6395
|
-
dc as VERSION,
|
|
6396
6395
|
Yi as compactColors,
|
|
6397
6396
|
Wi as compactDarkColors,
|
|
6398
|
-
|
|
6397
|
+
_l as compactTheme,
|
|
6399
6398
|
Dr as compactThemeOverride,
|
|
6400
6399
|
fn as createColorStop,
|
|
6401
6400
|
cs as createDefaultGradientStops,
|