@mt-gloss/ui 0.1.83 → 0.1.85
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/COMMITS-BUj_vdP8.js +292 -0
- package/{Expandable-Deyl6mWK.js → Expandable-D00kXkfM.js} +2099 -2093
- package/catalog.js +2 -2
- package/composites-panels.js +2 -2
- package/index.js +200 -199
- package/lib/composites/panels/coordinator/coordinator.d.ts +5 -0
- package/lib/composites/panels/coordinator/types.d.ts +40 -5
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/types/cardShellProps.d.ts +8 -0
- package/lib/primitives/dashboard/MetricCard/types/shared.d.ts +2 -0
- package/lib/primitives/dashboard/PageChip/types.d.ts +3 -1
- package/package.json +1 -1
- package/COMMITS-or4m2o8k.js +0 -219
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as Ze, C as qe } from "./Expandable-
|
|
2
|
-
import { Q as Sr, V as kr, T as Dr, U as xr, a5 as Tr, b8 as Rr, aB as Mr, aj as Pr, $ as Ir, ap as Er, N as Ar, aa as Fr, bo as Or, P as Lr, B as $r, a as zr, A as Br, K as Kr, bj as Gr, J as Hr, L as Wr, E as Vr, D as jr, H as Ur, F as Yr, by as Zr, b as qr, c as Qr, O as Xr, q as Jr, af as es, aP as ts, A as as, K as ns, J as rs, L as ss, E as is, D as os, H as ls, F as cs, b1 as ds, b4 as us, b3 as ms, b2 as gs, b5 as ps, aE as hs, a7 as fs, a6 as bs, as as vs, m as ys, o as ws, aH as _s, ad as Cs, ba as Ns, ab as Ss, bp as ks, _ as Ds, bI as xs, bH as Ts, bJ as Rs, ar as Ms, aS as Ps, bc as Is, bN as Es, bw as As, p as Fs, ao as Os, bC as Ls, bt as $s, a2 as zs, at as Bs, a4 as Ks, bB as Gs, bS as Hs, G as Ws, f as Vs, ac as js, bK as Us, aV as Ys, t as Zs, x as qs, I as Qs, i as Xs, ay as Js, bO as ei, M as ti, y as ai, W as ni, Z as ri, X as si, Y as ii, au as oi, bi as li, bQ as ci, bM as di, aq as ui, w as mi, bq as gi, aU as pi, al as hi, aM as fi, ai as bi, an as vi, aw as yi, aT as wi, ae as _i, av as Ci, e as Ni, R as Si, l as ki, r as Di, aJ as xi, bz as Ti, bA as Ri, ak as Mi, ag as Pi, j as Ii, z as Ei, b9 as Ai, ah as Fi, bP as Oi, be as Li, bh as $i, bf as zi, bg as Bi, k as Ki, bb as Gi, bn as Hi, S as Wi, bl as Vi, bm as ji, ax as Ui, bd as Yi, bR as Zi, am as qi, v as Qi, bL as Xi, n as Ji, h as eo, s as to, a0 as ao, a1 as no, a9 as ro, bk as so, bx as io, bE as oo, aC as lo, aD as co, a8 as uo, aQ as mo, aR as go, aF as po, aG as ho, aI as fo, aX as bo, aY as vo, br as yo, bG as wo, bF as _o, a_ as Co, a$ as No, az as So, aA as ko, b7 as Do, b6 as xo, b0 as To, aN as Ro, aO as Mo, aZ as Po, aK as Io, aL as Eo, d as Ao, bD as Fo, bs as Oo, bu as Lo, bv as $o, aW as zo, a3 as Bo, bT as Ko, g as Go } from "./Expandable-
|
|
1
|
+
import { u as Ze, C as qe } from "./Expandable-D00kXkfM.js";
|
|
2
|
+
import { Q as Sr, V as kr, T as Dr, U as xr, a5 as Tr, b8 as Rr, aB as Mr, aj as Pr, $ as Ir, ap as Er, N as Ar, aa as Fr, bo as Or, P as Lr, B as $r, a as zr, A as Br, K as Kr, bj as Gr, J as Hr, L as Wr, E as Vr, D as jr, H as Ur, F as Yr, by as Zr, b as qr, c as Qr, O as Xr, q as Jr, af as es, aP as ts, A as as, K as ns, J as rs, L as ss, E as is, D as os, H as ls, F as cs, b1 as ds, b4 as us, b3 as ms, b2 as gs, b5 as ps, aE as hs, a7 as fs, a6 as bs, as as vs, m as ys, o as ws, aH as _s, ad as Cs, ba as Ns, ab as Ss, bp as ks, _ as Ds, bI as xs, bH as Ts, bJ as Rs, ar as Ms, aS as Ps, bc as Is, bN as Es, bw as As, p as Fs, ao as Os, bC as Ls, bt as $s, a2 as zs, at as Bs, a4 as Ks, bB as Gs, bS as Hs, G as Ws, f as Vs, ac as js, bK as Us, aV as Ys, t as Zs, x as qs, I as Qs, i as Xs, ay as Js, bO as ei, M as ti, y as ai, W as ni, Z as ri, X as si, Y as ii, au as oi, bi as li, bQ as ci, bM as di, aq as ui, w as mi, bq as gi, aU as pi, al as hi, aM as fi, ai as bi, an as vi, aw as yi, aT as wi, ae as _i, av as Ci, e as Ni, R as Si, l as ki, r as Di, aJ as xi, bz as Ti, bA as Ri, ak as Mi, ag as Pi, j as Ii, z as Ei, b9 as Ai, ah as Fi, bP as Oi, be as Li, bh as $i, bf as zi, bg as Bi, k as Ki, bb as Gi, bn as Hi, S as Wi, bl as Vi, bm as ji, ax as Ui, bd as Yi, bR as Zi, am as qi, v as Qi, bL as Xi, n as Ji, h as eo, s as to, a0 as ao, a1 as no, a9 as ro, bk as so, bx as io, bE as oo, aC as lo, aD as co, a8 as uo, aQ as mo, aR as go, aF as po, aG as ho, aI as fo, aX as bo, aY as vo, br as yo, bG as wo, bF as _o, a_ as Co, a$ as No, az as So, aA as ko, b7 as Do, b6 as xo, b0 as To, aN as Ro, aO as Mo, aZ as Po, aK as Io, aL as Eo, d as Ao, bD as Fo, bs as Oo, bu as Lo, bv as $o, aW as zo, a3 as Bo, bT as Ko, g as Go } from "./Expandable-D00kXkfM.js";
|
|
3
3
|
import { jsxs as w, jsx as r, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import * as B from "react";
|
|
5
5
|
import F, { useRef as P, useEffect as A, useState as E, useCallback as C, useId as Qe, forwardRef as Xe, useMemo as re, createContext as Je, useContext as et } from "react";
|
|
6
6
|
import { motion as G, useMotionValue as tt, AnimatePresence as at, useDragControls as nt } from "framer-motion";
|
|
7
7
|
import { B as rt, a as X, b as ce, U as fe } from "./UIContext-DP6JGCto.js";
|
|
8
8
|
import { c as Wo, u as Vo } from "./UIContext-DP6JGCto.js";
|
|
9
|
-
import { C as Uo, c as Yo, b as Zo, P as qo, e as Qo, i as Xo, r as Jo, u as el, a as tl, d as al } from "./COMMITS-
|
|
9
|
+
import { C as Uo, c as Yo, b as Zo, P as qo, e as Qo, i as Xo, r as Jo, u as el, a as tl, d as al } from "./COMMITS-BUj_vdP8.js";
|
|
10
10
|
import { createPortal as st } from "react-dom";
|
|
11
11
|
import { DEFAULT_MARKET_PRESETS as rl, DEFAULT_PINNED as sl, PERIOD_OPTIONS as il, ROLLING_OPTIONS as ol, TODAY_PRESET as ll, findPreset as cl, formatDateRange as dl, formatMarketDates as ul, formatTrend as ml, formatValue as gl, generateMarketId as pl, getAllPresets as hl, getDateRangeForPreset as fl, getPresetLabel as bl, isInRange as vl, isMarketActive as yl, isSameDay as wl, normalizePresetId as _l, toUppercasePresetId as Cl } from "@mt-gloss/utils";
|
|
12
12
|
import it from "@mui/icons-material/AccessTime";
|
|
@@ -36,8 +36,8 @@ function nn(e) {
|
|
|
36
36
|
enabled: o = !0,
|
|
37
37
|
isItemDisabled: l,
|
|
38
38
|
onSelect: u,
|
|
39
|
-
onEscape:
|
|
40
|
-
} = e, [m, h] = E(-1),
|
|
39
|
+
onEscape: d
|
|
40
|
+
} = e, [m, h] = E(-1), c = n !== void 0 ? n : m, g = C(
|
|
41
41
|
(p) => {
|
|
42
42
|
n === void 0 && h(p), a?.(p);
|
|
43
43
|
},
|
|
@@ -60,23 +60,23 @@ function nn(e) {
|
|
|
60
60
|
const p = y();
|
|
61
61
|
p.length > 0 && g(p[p.length - 1]);
|
|
62
62
|
}, [y, g]), M = C(() => {
|
|
63
|
-
const p = k(
|
|
63
|
+
const p = k(c, 1);
|
|
64
64
|
p !== -1 && g(p);
|
|
65
|
-
}, [
|
|
66
|
-
const p = k(
|
|
65
|
+
}, [c, k, g]), N = C(() => {
|
|
66
|
+
const p = k(c, -1);
|
|
67
67
|
p !== -1 && g(p);
|
|
68
|
-
}, [
|
|
68
|
+
}, [c, k, g]), S = C(() => {
|
|
69
69
|
g(-1);
|
|
70
70
|
}, [g]), R = C(
|
|
71
71
|
(p) => {
|
|
72
72
|
if (!o) return;
|
|
73
73
|
const { key: v } = p, _ = v === "ArrowUp" && (s === "vertical" || s === "both"), D = v === "ArrowDown" && (s === "vertical" || s === "both"), T = v === "ArrowLeft" && (s === "horizontal" || s === "both"), x = v === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
74
74
|
if (_ || T) {
|
|
75
|
-
p.preventDefault(),
|
|
75
|
+
p.preventDefault(), c === -1 ? b() : N();
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
if (D || x) {
|
|
79
|
-
p.preventDefault(),
|
|
79
|
+
p.preventDefault(), c === -1 ? f() : M();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
if (v === "Home") {
|
|
@@ -87,21 +87,21 @@ function nn(e) {
|
|
|
87
87
|
p.preventDefault(), b();
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
if ((v === "Enter" || v === " ") &&
|
|
90
|
+
if ((v === "Enter" || v === " ") && c >= 0 && c < t.length) {
|
|
91
91
|
p.preventDefault();
|
|
92
|
-
const I = t[
|
|
93
|
-
l?.(I,
|
|
92
|
+
const I = t[c];
|
|
93
|
+
l?.(I, c) || u?.(I, c);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (v === "Escape") {
|
|
97
|
-
|
|
97
|
+
d?.();
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
[
|
|
102
102
|
o,
|
|
103
103
|
s,
|
|
104
|
-
|
|
104
|
+
c,
|
|
105
105
|
t,
|
|
106
106
|
f,
|
|
107
107
|
b,
|
|
@@ -109,11 +109,11 @@ function nn(e) {
|
|
|
109
109
|
N,
|
|
110
110
|
l,
|
|
111
111
|
u,
|
|
112
|
-
|
|
112
|
+
d
|
|
113
113
|
]
|
|
114
114
|
);
|
|
115
115
|
return {
|
|
116
|
-
focusedIndex:
|
|
116
|
+
focusedIndex: c,
|
|
117
117
|
setFocusedIndex: g,
|
|
118
118
|
handleKeyDown: R,
|
|
119
119
|
focusFirst: f,
|
|
@@ -134,9 +134,9 @@ const mt = ({
|
|
|
134
134
|
const [o, l] = E(n != null ? String(n) : ""), u = () => {
|
|
135
135
|
const g = parseFloat(o);
|
|
136
136
|
Number.isNaN(g) || a(g);
|
|
137
|
-
},
|
|
137
|
+
}, d = (g) => {
|
|
138
138
|
g.key === "Enter" ? (g.preventDefault(), u()) : g.key === "Escape" && (g.preventDefault(), i?.());
|
|
139
|
-
}, m = Qe(), h = `gloss-target-input-field-${m}`,
|
|
139
|
+
}, m = Qe(), h = `gloss-target-input-field-${m}`, c = s ? `gloss-target-input-hint-${m}` : void 0;
|
|
140
140
|
return /* @__PURE__ */ w("div", { className: "gloss-target-input", children: [
|
|
141
141
|
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: h, children: e }),
|
|
142
142
|
/* @__PURE__ */ w("div", { className: "gloss-target-input__field-row", children: [
|
|
@@ -148,14 +148,14 @@ const mt = ({
|
|
|
148
148
|
className: "gloss-target-input__field",
|
|
149
149
|
value: o,
|
|
150
150
|
onChange: (g) => l(g.target.value),
|
|
151
|
-
onKeyDown:
|
|
152
|
-
"aria-describedby":
|
|
151
|
+
onKeyDown: d,
|
|
152
|
+
"aria-describedby": c,
|
|
153
153
|
autoFocus: !0
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
|
|
157
157
|
] }),
|
|
158
|
-
s && /* @__PURE__ */ r("p", { id:
|
|
158
|
+
s && /* @__PURE__ */ r("p", { id: c, className: "gloss-target-input__hint", children: s }),
|
|
159
159
|
/* @__PURE__ */ w("div", { className: "gloss-target-input__actions", children: [
|
|
160
160
|
/* @__PURE__ */ r(
|
|
161
161
|
"button",
|
|
@@ -296,7 +296,7 @@ function yt({
|
|
|
296
296
|
overflowActions: s,
|
|
297
297
|
onClose: o
|
|
298
298
|
}) {
|
|
299
|
-
const [l, u] = E(null),
|
|
299
|
+
const [l, u] = E(null), d = P(null), m = C(() => {
|
|
300
300
|
if (!t) return { ...ye, top: 0, left: 0 };
|
|
301
301
|
const g = t.getBoundingClientRect();
|
|
302
302
|
return {
|
|
@@ -314,14 +314,14 @@ function yt({
|
|
|
314
314
|
}, [e, o]), A(() => {
|
|
315
315
|
if (!e) return;
|
|
316
316
|
const g = (y) => {
|
|
317
|
-
|
|
317
|
+
d.current && !d.current.contains(y.target) && o();
|
|
318
318
|
};
|
|
319
319
|
return document.addEventListener("pointerdown", g, !0), () => document.removeEventListener("pointerdown", g, !0);
|
|
320
320
|
}, [e, o]), !e) return null;
|
|
321
|
-
const h = s && s.length > 0,
|
|
321
|
+
const h = s && s.length > 0, c = /* @__PURE__ */ w(
|
|
322
322
|
"div",
|
|
323
323
|
{
|
|
324
|
-
ref:
|
|
324
|
+
ref: d,
|
|
325
325
|
"data-status-chip-menu": n,
|
|
326
326
|
role: "menu",
|
|
327
327
|
"aria-label": "Status actions",
|
|
@@ -371,7 +371,7 @@ function yt({
|
|
|
371
371
|
]
|
|
372
372
|
}
|
|
373
373
|
);
|
|
374
|
-
return st(
|
|
374
|
+
return st(c, document.body);
|
|
375
375
|
}
|
|
376
376
|
yt.displayName = "StatusSlotChipMenu";
|
|
377
377
|
function wt({
|
|
@@ -457,8 +457,8 @@ class hn {
|
|
|
457
457
|
const t = this.samples.length;
|
|
458
458
|
if (t < 2) return 0;
|
|
459
459
|
if (t === 2) {
|
|
460
|
-
const [u,
|
|
461
|
-
return (
|
|
460
|
+
const [u, d] = this.samples, m = Math.max(1, d.t - u.t);
|
|
461
|
+
return (d.x - u.x) / m * 1e3;
|
|
462
462
|
}
|
|
463
463
|
const [n, a, i] = this.samples, s = (i.x - a.x) / Math.max(1, i.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
|
|
464
464
|
return (s * 3 + o * 2 + l * 1) / 6;
|
|
@@ -558,7 +558,7 @@ function Ae(e) {
|
|
|
558
558
|
staggerMs: u
|
|
559
559
|
} = e;
|
|
560
560
|
if (!t) return null;
|
|
561
|
-
const
|
|
561
|
+
const d = n === "grow", m = d ? s + a : s + i, h = d ? o - i : o - a, c = Math.max(0, h - m);
|
|
562
562
|
return /* @__PURE__ */ r(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
@@ -576,7 +576,7 @@ function Ae(e) {
|
|
|
576
576
|
height: "100%",
|
|
577
577
|
alignItems: "center",
|
|
578
578
|
left: m,
|
|
579
|
-
width:
|
|
579
|
+
width: c
|
|
580
580
|
},
|
|
581
581
|
children: (n === "grow" ? [0, 1, 2, 3, 4] : [4, 3, 2, 1, 0]).map((y, k) => /* @__PURE__ */ r(
|
|
582
582
|
G.span,
|
|
@@ -723,13 +723,13 @@ function kt(e) {
|
|
|
723
723
|
onCommit: o,
|
|
724
724
|
onEnter: l,
|
|
725
725
|
onLeave: u,
|
|
726
|
-
buttonHeight:
|
|
726
|
+
buttonHeight: d,
|
|
727
727
|
buttonWidth: m
|
|
728
728
|
} = e;
|
|
729
729
|
let h = null;
|
|
730
730
|
if (a === "directional") {
|
|
731
|
-
const
|
|
732
|
-
h = /* @__PURE__ */ r(Ct, { direction:
|
|
731
|
+
const c = typeof t == "number" && typeof n == "number" && t < n ? "left" : "right";
|
|
732
|
+
h = /* @__PURE__ */ r(Ct, { direction: c });
|
|
733
733
|
} else
|
|
734
734
|
h = /* @__PURE__ */ r(St, { target: t });
|
|
735
735
|
return /* @__PURE__ */ w(
|
|
@@ -745,7 +745,7 @@ function kt(e) {
|
|
|
745
745
|
"data-mode": a,
|
|
746
746
|
"data-active": i ? "true" : "false",
|
|
747
747
|
"data-button-hover-state": s ? "check" : "chevron",
|
|
748
|
-
style: { width: m, height:
|
|
748
|
+
style: { width: m, height: d },
|
|
749
749
|
onClick: () => o(t),
|
|
750
750
|
onPointerEnter: () => l?.(t),
|
|
751
751
|
onPointerLeave: () => u?.(),
|
|
@@ -762,7 +762,7 @@ const Dt = Xe(
|
|
|
762
762
|
const a = {
|
|
763
763
|
...Ie,
|
|
764
764
|
...t.physics
|
|
765
|
-
}, i = t.pillVisible && !t.forceIdle && t.resizePillEnabled !== !1, s = t.availableTargets, o = t.orientation ?? "vertical", l = t.buttonHover !== null && t.previewTarget !== void 0 && t.previewTarget !== null && t.previewTarget !== t.currentTarget && !t.forceIdle && t.resizePillEnabled !== !1, u = l && t.previewTarget != null ? t.resolveTargetWidth(t.previewTarget) : t.hostWidth,
|
|
765
|
+
}, i = t.pillVisible && !t.forceIdle && t.resizePillEnabled !== !1, s = t.availableTargets, o = t.orientation ?? "vertical", l = t.buttonHover !== null && t.previewTarget !== void 0 && t.previewTarget !== null && t.previewTarget !== t.currentTarget && !t.forceIdle && t.resizePillEnabled !== !1, u = l && t.previewTarget != null ? t.resolveTargetWidth(t.previewTarget) : t.hostWidth, d = t.chainStartX ?? 0, m = t.chainEndX ?? t.hostWidth, h = t.chainDirection ?? "grow";
|
|
766
766
|
return /* @__PURE__ */ w(at, { children: [
|
|
767
767
|
i && /* @__PURE__ */ r(
|
|
768
768
|
G.div,
|
|
@@ -790,16 +790,16 @@ const Dt = Xe(
|
|
|
790
790
|
transition: { duration: a.pillRevealMs / 1e3 },
|
|
791
791
|
onPointerEnter: t.onPillEnter,
|
|
792
792
|
onPointerLeave: t.onPillLeave,
|
|
793
|
-
children: s.map((
|
|
793
|
+
children: s.map((c) => /* @__PURE__ */ r(
|
|
794
794
|
kt,
|
|
795
795
|
{
|
|
796
|
-
target:
|
|
796
|
+
target: c,
|
|
797
797
|
currentTarget: t.currentTarget,
|
|
798
798
|
mode: t.mode,
|
|
799
|
-
isActive:
|
|
799
|
+
isActive: c === t.currentTarget,
|
|
800
800
|
isHovered: (
|
|
801
801
|
// Hover-state mapping for chevron→✓ morph CSS.
|
|
802
|
-
t.buttonHover !== null && (typeof
|
|
802
|
+
t.buttonHover !== null && (typeof c == "number" && typeof t.currentTarget == "number" && (t.buttonHover === "grow" && c > t.currentTarget || t.buttonHover === "shrink" && c < t.currentTarget) || t.buttonHover === c)
|
|
803
803
|
),
|
|
804
804
|
onCommit: t.onCommit,
|
|
805
805
|
onEnter: t.onButtonEnter,
|
|
@@ -807,7 +807,7 @@ const Dt = Xe(
|
|
|
807
807
|
buttonHeight: a.pillButtonHeight,
|
|
808
808
|
buttonWidth: a.pillButtonWidth
|
|
809
809
|
},
|
|
810
|
-
String(
|
|
810
|
+
String(c)
|
|
811
811
|
))
|
|
812
812
|
},
|
|
813
813
|
"pill"
|
|
@@ -832,7 +832,7 @@ const Dt = Xe(
|
|
|
832
832
|
direction: h,
|
|
833
833
|
pillClearancePx: a.pillClearancePx,
|
|
834
834
|
ghostClearancePx: a.ghostClearancePx,
|
|
835
|
-
startX:
|
|
835
|
+
startX: d,
|
|
836
836
|
endX: m,
|
|
837
837
|
pulseMs: a.chainPulseMs,
|
|
838
838
|
staggerMs: a.chainStaggerMs
|
|
@@ -858,10 +858,10 @@ function fn(e) {
|
|
|
858
858
|
const t = {
|
|
859
859
|
...Ie,
|
|
860
860
|
...e.physics
|
|
861
|
-
}, [n, a] = E("idle"), [i, s] = E(e.currentTarget), [o, l] = E(null), u = P(!1),
|
|
861
|
+
}, [n, a] = E("idle"), [i, s] = E(e.currentTarget), [o, l] = E(null), u = P(!1), d = P(null), m = P(null), h = P(e.currentTarget);
|
|
862
862
|
h.current = e.currentTarget;
|
|
863
|
-
const
|
|
864
|
-
|
|
863
|
+
const c = P(e.onCommit);
|
|
864
|
+
c.current = e.onCommit;
|
|
865
865
|
const g = P(e.forceIdle);
|
|
866
866
|
g.current = e.forceIdle;
|
|
867
867
|
const y = P(e.onPhaseChange);
|
|
@@ -870,7 +870,7 @@ function fn(e) {
|
|
|
870
870
|
}, [n]), A(() => {
|
|
871
871
|
e.forceIdle && (m.current && (clearTimeout(m.current), m.current = null), a("idle"), l(null));
|
|
872
872
|
}, [e.forceIdle]), A(() => () => {
|
|
873
|
-
|
|
873
|
+
d.current && clearTimeout(d.current), m.current && clearTimeout(m.current);
|
|
874
874
|
}, []);
|
|
875
875
|
const k = C(() => {
|
|
876
876
|
u.current || g.current || (s(h.current), a("pill-visible"));
|
|
@@ -878,9 +878,9 @@ function fn(e) {
|
|
|
878
878
|
a("idle"), l(null);
|
|
879
879
|
}, []), b = C(
|
|
880
880
|
(x) => {
|
|
881
|
-
u.current = !0,
|
|
882
|
-
u.current = !1,
|
|
883
|
-
}, t.fadeGraceMs), l(null), a("fading"),
|
|
881
|
+
u.current = !0, d.current && clearTimeout(d.current), d.current = setTimeout(() => {
|
|
882
|
+
u.current = !1, d.current = null;
|
|
883
|
+
}, t.fadeGraceMs), l(null), a("fading"), c.current(x);
|
|
884
884
|
},
|
|
885
885
|
[t.fadeGraceMs]
|
|
886
886
|
), M = C(() => {
|
|
@@ -1212,13 +1212,13 @@ function Oe({
|
|
|
1212
1212
|
onManagePages: l
|
|
1213
1213
|
}) {
|
|
1214
1214
|
const u = C(
|
|
1215
|
-
(
|
|
1216
|
-
s(
|
|
1215
|
+
(c) => {
|
|
1216
|
+
s(c), t();
|
|
1217
1217
|
},
|
|
1218
1218
|
[s, t]
|
|
1219
|
-
),
|
|
1220
|
-
(
|
|
1221
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), u(
|
|
1219
|
+
), d = C(
|
|
1220
|
+
(c, g) => {
|
|
1221
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), u(c));
|
|
1222
1222
|
},
|
|
1223
1223
|
[u]
|
|
1224
1224
|
), m = C(() => {
|
|
@@ -1240,8 +1240,8 @@ function Oe({
|
|
|
1240
1240
|
anchorRef: n,
|
|
1241
1241
|
className: "gloss-page-dropdown",
|
|
1242
1242
|
children: [
|
|
1243
|
-
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((
|
|
1244
|
-
const g =
|
|
1243
|
+
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((c) => {
|
|
1244
|
+
const g = c.id === i;
|
|
1245
1245
|
return /* @__PURE__ */ w(
|
|
1246
1246
|
"li",
|
|
1247
1247
|
{
|
|
@@ -1250,8 +1250,8 @@ function Oe({
|
|
|
1250
1250
|
"aria-current": g ? "page" : void 0,
|
|
1251
1251
|
tabIndex: 0,
|
|
1252
1252
|
className: `gloss-page-dropdown__item${g ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1253
|
-
onClick: () => u(
|
|
1254
|
-
onKeyDown: (y) => c
|
|
1253
|
+
onClick: () => u(c.id),
|
|
1254
|
+
onKeyDown: (y) => d(c.id, y),
|
|
1255
1255
|
children: [
|
|
1256
1256
|
/* @__PURE__ */ r(
|
|
1257
1257
|
"span",
|
|
@@ -1262,14 +1262,15 @@ function Oe({
|
|
|
1262
1262
|
/* @__PURE__ */ r(
|
|
1263
1263
|
"span",
|
|
1264
1264
|
{
|
|
1265
|
-
className: `gloss-page-dropdown__name${
|
|
1266
|
-
children:
|
|
1265
|
+
className: `gloss-page-dropdown__name${c.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
1266
|
+
children: c.name
|
|
1267
1267
|
}
|
|
1268
1268
|
),
|
|
1269
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-
|
|
1269
|
+
c.icon && /* @__PURE__ */ r("span", { className: "gloss-page-dropdown__icon", children: c.icon }),
|
|
1270
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children: c.cardCount })
|
|
1270
1271
|
]
|
|
1271
1272
|
},
|
|
1272
|
-
|
|
1273
|
+
c.id
|
|
1273
1274
|
);
|
|
1274
1275
|
}) }),
|
|
1275
1276
|
/* @__PURE__ */ r("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -1306,12 +1307,12 @@ const Et = function({
|
|
|
1306
1307
|
onManagePages: o,
|
|
1307
1308
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1308
1309
|
displayMode: u = "count",
|
|
1309
|
-
activePage:
|
|
1310
|
+
activePage: d
|
|
1310
1311
|
}) {
|
|
1311
|
-
const m = P(null), [h,
|
|
1312
|
-
|
|
1312
|
+
const m = P(null), [h, c] = E(!1), g = C(() => {
|
|
1313
|
+
c((b) => !b);
|
|
1313
1314
|
}, []), y = C(() => {
|
|
1314
|
-
|
|
1315
|
+
c(!1);
|
|
1315
1316
|
}, []), k = a[t]?.id ?? "";
|
|
1316
1317
|
return /* @__PURE__ */ w(
|
|
1317
1318
|
"div",
|
|
@@ -1334,10 +1335,10 @@ const Et = function({
|
|
|
1334
1335
|
className: `gloss-page-chip__trigger${u === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1335
1336
|
"aria-haspopup": "menu",
|
|
1336
1337
|
"aria-expanded": h,
|
|
1337
|
-
"aria-label": u === "name" ? `${
|
|
1338
|
+
"aria-label": u === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1338
1339
|
onClick: g,
|
|
1339
1340
|
children: u === "name" ? /* @__PURE__ */ w($, { children: [
|
|
1340
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children:
|
|
1341
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
|
|
1341
1342
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1342
1343
|
] }) : /* @__PURE__ */ w($, { children: [
|
|
1343
1344
|
t + 1,
|
|
@@ -2044,33 +2045,33 @@ const Ht = ({
|
|
|
2044
2045
|
}) => {
|
|
2045
2046
|
const s = P(null), o = P([]), l = Gt(), u = re(() => Array.from(e), [e]);
|
|
2046
2047
|
if (u.length === 0) return null;
|
|
2047
|
-
const
|
|
2048
|
+
const d = a ? `Configure ${a}: choose a dimension` : void 0, m = l ? "10ms" : "200ms", h = (c, g) => {
|
|
2048
2049
|
const y = u.length - 1, k = (f) => {
|
|
2049
2050
|
const b = o.current[f];
|
|
2050
2051
|
b && b.focus();
|
|
2051
2052
|
};
|
|
2052
|
-
switch (
|
|
2053
|
+
switch (c.key) {
|
|
2053
2054
|
case "ArrowRight":
|
|
2054
2055
|
case "ArrowDown": {
|
|
2055
|
-
|
|
2056
|
+
c.preventDefault(), k(g === y ? 0 : g + 1);
|
|
2056
2057
|
break;
|
|
2057
2058
|
}
|
|
2058
2059
|
case "ArrowLeft":
|
|
2059
2060
|
case "ArrowUp": {
|
|
2060
|
-
|
|
2061
|
+
c.preventDefault(), k(g === 0 ? y : g - 1);
|
|
2061
2062
|
break;
|
|
2062
2063
|
}
|
|
2063
2064
|
case "Home": {
|
|
2064
|
-
|
|
2065
|
+
c.preventDefault(), k(0);
|
|
2065
2066
|
break;
|
|
2066
2067
|
}
|
|
2067
2068
|
case "End": {
|
|
2068
|
-
|
|
2069
|
+
c.preventDefault(), k(y);
|
|
2069
2070
|
break;
|
|
2070
2071
|
}
|
|
2071
2072
|
case "Enter":
|
|
2072
2073
|
case " ": {
|
|
2073
|
-
|
|
2074
|
+
c.preventDefault(), t(u[g]);
|
|
2074
2075
|
break;
|
|
2075
2076
|
}
|
|
2076
2077
|
}
|
|
@@ -2080,7 +2081,7 @@ const Ht = ({
|
|
|
2080
2081
|
{
|
|
2081
2082
|
ref: s,
|
|
2082
2083
|
role: "group",
|
|
2083
|
-
"aria-label":
|
|
2084
|
+
"aria-label": d,
|
|
2084
2085
|
className: Se("gloss-reconfig-backside-buttons", i),
|
|
2085
2086
|
style: {
|
|
2086
2087
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
@@ -2088,8 +2089,8 @@ const Ht = ({
|
|
|
2088
2089
|
// query in the JS. Also surfaces the value for the unit test.
|
|
2089
2090
|
"--gloss-reconfig-backside-buttons-transition-duration": m
|
|
2090
2091
|
},
|
|
2091
|
-
children: u.map((
|
|
2092
|
-
const y = Kt[
|
|
2092
|
+
children: u.map((c, g) => {
|
|
2093
|
+
const y = Kt[c], k = n === c;
|
|
2093
2094
|
return /* @__PURE__ */ w(
|
|
2094
2095
|
"button",
|
|
2095
2096
|
{
|
|
@@ -2097,13 +2098,13 @@ const Ht = ({
|
|
|
2097
2098
|
o.current[g] = f;
|
|
2098
2099
|
},
|
|
2099
2100
|
type: "button",
|
|
2100
|
-
"data-dimension":
|
|
2101
|
+
"data-dimension": c,
|
|
2101
2102
|
className: Se(
|
|
2102
2103
|
"gloss-reconfig-backside-buttons__button",
|
|
2103
2104
|
k && "gloss-reconfig-backside-buttons__button--active"
|
|
2104
2105
|
),
|
|
2105
2106
|
"aria-current": k ? "true" : void 0,
|
|
2106
|
-
onClick: () => t(
|
|
2107
|
+
onClick: () => t(c),
|
|
2107
2108
|
onKeyDown: (f) => h(f, g),
|
|
2108
2109
|
children: [
|
|
2109
2110
|
/* @__PURE__ */ r(
|
|
@@ -2113,10 +2114,10 @@ const Ht = ({
|
|
|
2113
2114
|
"aria-hidden": "true"
|
|
2114
2115
|
}
|
|
2115
2116
|
),
|
|
2116
|
-
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Bt[
|
|
2117
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Bt[c] })
|
|
2117
2118
|
]
|
|
2118
2119
|
},
|
|
2119
|
-
|
|
2120
|
+
c
|
|
2120
2121
|
);
|
|
2121
2122
|
})
|
|
2122
2123
|
}
|
|
@@ -2500,13 +2501,13 @@ function ea(e = {}) {
|
|
|
2500
2501
|
}
|
|
2501
2502
|
ea.displayName = "DevTuningPanel";
|
|
2502
2503
|
function ta() {
|
|
2503
|
-
const e = Yt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = E(null), l = P(null), u = C((
|
|
2504
|
-
l.current && clearTimeout(l.current), o(
|
|
2504
|
+
const e = Yt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = E(null), l = P(null), u = C((c) => {
|
|
2505
|
+
l.current && clearTimeout(l.current), o(c), l.current = setTimeout(() => {
|
|
2505
2506
|
o(null), l.current = null;
|
|
2506
2507
|
}, 200);
|
|
2507
|
-
}, []),
|
|
2508
|
-
(
|
|
2509
|
-
n(
|
|
2508
|
+
}, []), d = C(
|
|
2509
|
+
(c, g) => {
|
|
2510
|
+
n(c, g), c === "snapInPx" && g > t.snapOutPx && (n("snapOutPx", g), u("snapOutPx"));
|
|
2510
2511
|
},
|
|
2511
2512
|
[n, t.snapOutPx, u]
|
|
2512
2513
|
), m = re(() => Zt, []), h = nt();
|
|
@@ -2526,23 +2527,23 @@ function ta() {
|
|
|
2526
2527
|
"div",
|
|
2527
2528
|
{
|
|
2528
2529
|
className: "gloss-dev-tuning-panel__header",
|
|
2529
|
-
onPointerDown: (
|
|
2530
|
+
onPointerDown: (c) => h.start(c),
|
|
2530
2531
|
children: [
|
|
2531
2532
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2532
2533
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2533
2534
|
]
|
|
2534
2535
|
}
|
|
2535
2536
|
),
|
|
2536
|
-
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: m.map((
|
|
2537
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: m.map((c) => /* @__PURE__ */ r(
|
|
2537
2538
|
Xt,
|
|
2538
2539
|
{
|
|
2539
|
-
spec:
|
|
2540
|
-
value: t[
|
|
2541
|
-
onChange: (g) => c
|
|
2542
|
-
onReset: () => a(
|
|
2543
|
-
flashing: s ===
|
|
2540
|
+
spec: c,
|
|
2541
|
+
value: t[c.key],
|
|
2542
|
+
onChange: (g) => d(c.key, g),
|
|
2543
|
+
onReset: () => a(c.key),
|
|
2544
|
+
flashing: s === c.key
|
|
2544
2545
|
},
|
|
2545
|
-
|
|
2546
|
+
c.key
|
|
2546
2547
|
)) }),
|
|
2547
2548
|
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ r(
|
|
2548
2549
|
"button",
|
|
@@ -2567,14 +2568,14 @@ function Yn({
|
|
|
2567
2568
|
snapBoundariesX: o,
|
|
2568
2569
|
topY: l,
|
|
2569
2570
|
bottomY: u,
|
|
2570
|
-
enterMs:
|
|
2571
|
+
enterMs: d = U.envelopeEnterMs,
|
|
2571
2572
|
exitMs: m = U.envelopeExitMs,
|
|
2572
2573
|
className: h,
|
|
2573
|
-
style:
|
|
2574
|
+
style: c
|
|
2574
2575
|
}) {
|
|
2575
2576
|
if (e === "hidden") return null;
|
|
2576
2577
|
const g = Math.max(0, i - a), y = Math.max(0, u - l), k = {
|
|
2577
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2578
|
+
"--gloss-resize-envelope-enter-ms": `${d}ms`,
|
|
2578
2579
|
"--gloss-resize-envelope-exit-ms": `${m}ms`,
|
|
2579
2580
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2580
2581
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
@@ -2582,7 +2583,7 @@ function Yn({
|
|
|
2582
2583
|
top: l,
|
|
2583
2584
|
width: g,
|
|
2584
2585
|
height: y,
|
|
2585
|
-
...
|
|
2586
|
+
...c
|
|
2586
2587
|
};
|
|
2587
2588
|
return /* @__PURE__ */ w(
|
|
2588
2589
|
"div",
|
|
@@ -2641,12 +2642,12 @@ function Zn({
|
|
|
2641
2642
|
children: l,
|
|
2642
2643
|
...u
|
|
2643
2644
|
}) {
|
|
2644
|
-
const
|
|
2645
|
+
const d = a != null ? { ...u.style, "--_proximity-opacity": String(a) } : u.style;
|
|
2645
2646
|
return /* @__PURE__ */ r(
|
|
2646
2647
|
"div",
|
|
2647
2648
|
{
|
|
2648
2649
|
...u,
|
|
2649
|
-
style:
|
|
2650
|
+
style: d,
|
|
2650
2651
|
"data-density": e,
|
|
2651
2652
|
"data-can-accept": t ? "true" : "false",
|
|
2652
2653
|
"data-blocked": n ? "true" : void 0,
|
|
@@ -2709,7 +2710,7 @@ function Qn({
|
|
|
2709
2710
|
style: l,
|
|
2710
2711
|
...u
|
|
2711
2712
|
}) {
|
|
2712
|
-
const
|
|
2713
|
+
const d = {
|
|
2713
2714
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2714
2715
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2715
2716
|
"--gloss-section-divider-stagger-delay": `${t * i}ms`,
|
|
@@ -2728,7 +2729,7 @@ function Qn({
|
|
|
2728
2729
|
s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2729
2730
|
o
|
|
2730
2731
|
].filter(Boolean).join(" "),
|
|
2731
|
-
style:
|
|
2732
|
+
style: d
|
|
2732
2733
|
}
|
|
2733
2734
|
);
|
|
2734
2735
|
}
|
|
@@ -2816,14 +2817,14 @@ function nr({
|
|
|
2816
2817
|
onPack: l,
|
|
2817
2818
|
ariaLabel: u
|
|
2818
2819
|
}) {
|
|
2819
|
-
const
|
|
2820
|
+
const d = a ?? "Add card to this cell", m = i ?? u ?? "Pack row — shift cards left", h = t ?? l, { affordancesVisible: c } = Ze();
|
|
2820
2821
|
return /* @__PURE__ */ w(B.Fragment, { children: [
|
|
2821
|
-
/* @__PURE__ */ r(De, { visible:
|
|
2822
|
+
/* @__PURE__ */ r(De, { visible: c, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2822
2823
|
"button",
|
|
2823
2824
|
{
|
|
2824
2825
|
type: "button",
|
|
2825
2826
|
"data-testid": "gloss-empty-cell-add",
|
|
2826
|
-
"aria-label":
|
|
2827
|
+
"aria-label": d,
|
|
2827
2828
|
className: [
|
|
2828
2829
|
"gloss-empty-cell-pack-affordance",
|
|
2829
2830
|
"gloss-empty-cell-pack-affordance--add",
|
|
@@ -2836,7 +2837,7 @@ function nr({
|
|
|
2836
2837
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
|
|
2837
2838
|
}
|
|
2838
2839
|
) }),
|
|
2839
|
-
/* @__PURE__ */ r(De, { visible: e &&
|
|
2840
|
+
/* @__PURE__ */ r(De, { visible: e && c, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2840
2841
|
"button",
|
|
2841
2842
|
{
|
|
2842
2843
|
type: "button",
|
|
@@ -2863,7 +2864,7 @@ function rr({
|
|
|
2863
2864
|
children: l,
|
|
2864
2865
|
className: u
|
|
2865
2866
|
}) {
|
|
2866
|
-
const
|
|
2867
|
+
const d = t * n + (t - 1) * i, m = B.useRef(null);
|
|
2867
2868
|
return de("drag-ghost", () => {
|
|
2868
2869
|
if (process.env.NODE_ENV === "production")
|
|
2869
2870
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
@@ -2891,11 +2892,11 @@ function rr({
|
|
|
2891
2892
|
if (process.env.NODE_ENV === "production")
|
|
2892
2893
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2893
2894
|
const h = m.current;
|
|
2894
|
-
let
|
|
2895
|
+
let c = 0, g = "", y = "", k = "";
|
|
2895
2896
|
if (h)
|
|
2896
2897
|
try {
|
|
2897
2898
|
const M = window.getComputedStyle(h), N = M.outline || "", S = M.border || "", R = M.boxShadow || "", p = !!N && N !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(N), v = !!S && S !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(S), _ = !!R && R !== "none";
|
|
2898
|
-
|
|
2899
|
+
c = p || v || _ ? 1 : 0, g = p ? N : "", y = v ? S : "", k = _ ? R : "";
|
|
2899
2900
|
} catch {
|
|
2900
2901
|
}
|
|
2901
2902
|
const f = h?.getBoundingClientRect() ?? null, b = h ? "drag-clone" : "subsumed-by-tracking-outline";
|
|
@@ -2908,7 +2909,7 @@ function rr({
|
|
|
2908
2909
|
bounds_w: f?.width ?? 0,
|
|
2909
2910
|
bounds_h: f?.height ?? 0,
|
|
2910
2911
|
visible: h ? 1 : 0,
|
|
2911
|
-
outlineOnClone:
|
|
2912
|
+
outlineOnClone: c
|
|
2912
2913
|
},
|
|
2913
2914
|
spec: {
|
|
2914
2915
|
mode: b,
|
|
@@ -2936,7 +2937,7 @@ function rr({
|
|
|
2936
2937
|
`gloss-drag-ghost--tint-${e}`,
|
|
2937
2938
|
u
|
|
2938
2939
|
].filter(Boolean).join(" "),
|
|
2939
|
-
style: { x: s, y: o, width:
|
|
2940
|
+
style: { x: s, y: o, width: d, height: a },
|
|
2940
2941
|
children: l
|
|
2941
2942
|
}
|
|
2942
2943
|
);
|
|
@@ -2952,9 +2953,9 @@ function Ge({
|
|
|
2952
2953
|
pattern: o = "solid",
|
|
2953
2954
|
transitionMs: l = 120,
|
|
2954
2955
|
className: u,
|
|
2955
|
-
motionWidth:
|
|
2956
|
+
motionWidth: d
|
|
2956
2957
|
}) {
|
|
2957
|
-
const m = n * a + (n - 1) * i,
|
|
2958
|
+
const m = n * a + (n - 1) * i, c = (t.section * na + t.col) * (a + i), g = t.row * (s + i), y = e === "resize" ? 2.5 : 2, k = o === "dashed-retreated" ? "dashed" : "solid", f = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline", b = {
|
|
2958
2959
|
className: [
|
|
2959
2960
|
"gloss-tracking-outline",
|
|
2960
2961
|
`gloss-tracking-outline--${e}`,
|
|
@@ -2970,13 +2971,13 @@ function Ge({
|
|
|
2970
2971
|
"data-pattern": o,
|
|
2971
2972
|
"aria-hidden": "true"
|
|
2972
2973
|
};
|
|
2973
|
-
return
|
|
2974
|
+
return d ? /* @__PURE__ */ r(
|
|
2974
2975
|
G.div,
|
|
2975
2976
|
{
|
|
2976
2977
|
...b,
|
|
2977
2978
|
style: {
|
|
2978
|
-
transform: `translate(${
|
|
2979
|
-
width:
|
|
2979
|
+
transform: `translate(${c}px, ${g}px)`,
|
|
2980
|
+
width: d,
|
|
2980
2981
|
height: s,
|
|
2981
2982
|
borderWidth: y,
|
|
2982
2983
|
borderStyle: k
|
|
@@ -2987,7 +2988,7 @@ function Ge({
|
|
|
2987
2988
|
{
|
|
2988
2989
|
...b,
|
|
2989
2990
|
style: {
|
|
2990
|
-
transform: `translate(${
|
|
2991
|
+
transform: `translate(${c}px, ${g}px)`,
|
|
2991
2992
|
width: m,
|
|
2992
2993
|
height: s,
|
|
2993
2994
|
borderWidth: y,
|
|
@@ -3011,10 +3012,10 @@ function ir({
|
|
|
3011
3012
|
if (process.env.NODE_ENV === "production")
|
|
3012
3013
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
3013
3014
|
const o = s.current;
|
|
3014
|
-
let l = 0, u = 0,
|
|
3015
|
+
let l = 0, u = 0, d = 0, m = 0;
|
|
3015
3016
|
for (const h of o) {
|
|
3016
|
-
const
|
|
3017
|
-
Math.abs(
|
|
3017
|
+
const c = h.x.get(), g = h.y.get();
|
|
3018
|
+
Math.abs(c) > Math.abs(d) && (d = c, l = c), Math.abs(g) > Math.abs(m) && (m = g, u = g);
|
|
3018
3019
|
}
|
|
3019
3020
|
return {
|
|
3020
3021
|
values: {
|
|
@@ -3061,10 +3062,10 @@ const ra = ({
|
|
|
3061
3062
|
}) => {
|
|
3062
3063
|
const a = P(null), i = P(null);
|
|
3063
3064
|
A(() => {
|
|
3064
|
-
const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)),
|
|
3065
|
+
const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)), d = requestAnimationFrame(() => {
|
|
3065
3066
|
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${u}%`);
|
|
3066
3067
|
});
|
|
3067
|
-
return () => cancelAnimationFrame(
|
|
3068
|
+
return () => cancelAnimationFrame(d);
|
|
3068
3069
|
}, [e.value, t.value]);
|
|
3069
3070
|
const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
3070
3071
|
return /* @__PURE__ */ w(
|
|
@@ -3320,7 +3321,7 @@ function K({
|
|
|
3320
3321
|
className: l,
|
|
3321
3322
|
style: u
|
|
3322
3323
|
}) {
|
|
3323
|
-
const
|
|
3324
|
+
const d = [
|
|
3324
3325
|
"gloss-entity-row",
|
|
3325
3326
|
`gloss-entity-row--${s}`,
|
|
3326
3327
|
o ? "gloss-entity-row--clickable" : "",
|
|
@@ -3332,7 +3333,7 @@ function K({
|
|
|
3332
3333
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
3333
3334
|
i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
|
|
3334
3335
|
] });
|
|
3335
|
-
return o ? /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3336
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: /* @__PURE__ */ r(
|
|
3336
3337
|
"button",
|
|
3337
3338
|
{
|
|
3338
3339
|
type: "button",
|
|
@@ -3349,7 +3350,7 @@ function K({
|
|
|
3349
3350
|
},
|
|
3350
3351
|
children: m
|
|
3351
3352
|
}
|
|
3352
|
-
) }) : /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3353
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: m });
|
|
3353
3354
|
}
|
|
3354
3355
|
K.displayName = "EntityRow";
|
|
3355
3356
|
const ee = ({ rank: e }) => {
|
|
@@ -3522,7 +3523,7 @@ function fa({
|
|
|
3522
3523
|
ruleSubtitle: s,
|
|
3523
3524
|
isStale: o
|
|
3524
3525
|
}) {
|
|
3525
|
-
const l = t.filter((
|
|
3526
|
+
const l = t.filter((d) => ha(d, n)), u = l.slice(0, a ?? 3);
|
|
3526
3527
|
return l.length === 0 ? /* @__PURE__ */ w($, { children: [
|
|
3527
3528
|
/* @__PURE__ */ r(
|
|
3528
3529
|
X,
|
|
@@ -3548,16 +3549,16 @@ function fa({
|
|
|
3548
3549
|
{
|
|
3549
3550
|
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3550
3551
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3551
|
-
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((
|
|
3552
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((d, m) => /* @__PURE__ */ r(
|
|
3552
3553
|
K,
|
|
3553
3554
|
{
|
|
3554
|
-
lead: /* @__PURE__ */ r(te, { severity:
|
|
3555
|
-
name:
|
|
3556
|
-
value:
|
|
3555
|
+
lead: /* @__PURE__ */ r(te, { severity: d.severity, "aria-label": pa(d.severity) }),
|
|
3556
|
+
name: d.name,
|
|
3557
|
+
value: d.value,
|
|
3557
3558
|
variant: "exception",
|
|
3558
3559
|
style: { "--i": m }
|
|
3559
3560
|
},
|
|
3560
|
-
|
|
3561
|
+
d.id
|
|
3561
3562
|
)) })
|
|
3562
3563
|
}
|
|
3563
3564
|
),
|
|
@@ -3693,10 +3694,10 @@ function fr({
|
|
|
3693
3694
|
gap: s,
|
|
3694
3695
|
className: o
|
|
3695
3696
|
}) {
|
|
3696
|
-
const u = (e.section * ya + e.col) * (a + s),
|
|
3697
|
+
const u = (e.section * ya + e.col) * (a + s), d = e.row * (i + s), m = t === "eligibility" ? j.eligibilityFill : t === "commit" ? j.commitFill : t === "rejection" ? j.rejectionFill : (
|
|
3697
3698
|
/* ramp */
|
|
3698
3699
|
n ?? j.eligibilityFill
|
|
3699
|
-
), h = t === "rejection",
|
|
3700
|
+
), h = t === "rejection", c = h ? j.rejectionStroke : "transparent", g = h ? "dashed" : "solid";
|
|
3700
3701
|
return /* @__PURE__ */ r(
|
|
3701
3702
|
"div",
|
|
3702
3703
|
{
|
|
@@ -3709,14 +3710,14 @@ function fr({
|
|
|
3709
3710
|
"data-variant": t,
|
|
3710
3711
|
"aria-hidden": "true",
|
|
3711
3712
|
style: {
|
|
3712
|
-
transform: `translate(${u}px, ${
|
|
3713
|
+
transform: `translate(${u}px, ${d}px)`,
|
|
3713
3714
|
width: a,
|
|
3714
3715
|
height: i,
|
|
3715
3716
|
// Use background-color longhand (NOT background shorthand) so jsdom + DOM
|
|
3716
3717
|
// both preserve `var(...)` in inline cssText. The shorthand getter strips
|
|
3717
3718
|
// unknown values and breaks both unit-test introspection and styling.
|
|
3718
3719
|
backgroundColor: m,
|
|
3719
|
-
borderColor:
|
|
3720
|
+
borderColor: c,
|
|
3720
3721
|
borderStyle: g
|
|
3721
3722
|
}
|
|
3722
3723
|
}
|
|
@@ -3814,8 +3815,8 @@ function Ca(e, t, n) {
|
|
|
3814
3815
|
parseInt(h.slice(1, 3), 16),
|
|
3815
3816
|
parseInt(h.slice(3, 5), 16),
|
|
3816
3817
|
parseInt(h.slice(5, 7), 16)
|
|
3817
|
-
], [s, o, l] = i(e), [u,
|
|
3818
|
-
return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (
|
|
3818
|
+
], [s, o, l] = i(e), [u, d, m] = i(t);
|
|
3819
|
+
return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (d - o) * a)}, ${Math.round(
|
|
3819
3820
|
l + (m - l) * a
|
|
3820
3821
|
)})`;
|
|
3821
3822
|
}
|
|
@@ -3826,25 +3827,25 @@ function Sa(e) {
|
|
|
3826
3827
|
return e === "dragging";
|
|
3827
3828
|
}
|
|
3828
3829
|
function yr(e) {
|
|
3829
|
-
const { edgeHover: t, sourceCell: n, cascadeResult: a } = e, s = Ke() === "reduced", o = B.useRef(t.currentColSpan), l = B.useRef({ armed: !0, fireKey: 0, lastResult: null }), u = B.useRef(t.currentColSpan),
|
|
3830
|
-
if (s ? (
|
|
3830
|
+
const { edgeHover: t, sourceCell: n, cascadeResult: a } = e, s = Ke() === "reduced", o = B.useRef(t.currentColSpan), l = B.useRef({ armed: !0, fireKey: 0, lastResult: null }), u = B.useRef(t.currentColSpan), d = B.useRef("idle"), m = B.useRef(t.currentColSpan), h = Sa(t.state);
|
|
3831
|
+
if (s ? (d.current = "settled", m.current = t.currentColSpan, u.current = t.currentColSpan) : h ? d.current = t.currentColSpan !== u.current ? "incoming" : "outgoing" : (t.currentColSpan !== u.current && (m.current = t.currentColSpan, u.current = t.currentColSpan), d.current !== "idle" && (d.current = "settled")), !h)
|
|
3831
3832
|
return l.current.armed = !0, l.current.lastResult = null, {
|
|
3832
3833
|
trackingOutline: null,
|
|
3833
3834
|
cellTints: [],
|
|
3834
3835
|
refusePulse: null,
|
|
3835
3836
|
shrinkFreedCells: [],
|
|
3836
|
-
phase:
|
|
3837
|
+
phase: d.current,
|
|
3837
3838
|
displayColSpan: m.current
|
|
3838
3839
|
};
|
|
3839
|
-
const
|
|
3840
|
-
y || (o.current =
|
|
3841
|
-
const k = y ? o.current :
|
|
3840
|
+
const c = t.hysteresisTargetColSpan, g = t.previewColSpan, y = a?.result === "rejected";
|
|
3841
|
+
y || (o.current = c), y && l.current.armed && l.current.lastResult !== "rejected" && (l.current.fireKey += 1, l.current.armed = !1), l.current.lastResult = y ? "rejected" : "ok";
|
|
3842
|
+
const k = y ? o.current : c, f = {
|
|
3842
3843
|
cell: { section: 0, col: 0, row: 0 },
|
|
3843
3844
|
colSpan: k,
|
|
3844
3845
|
pattern: y ? "dashed-retreated" : "solid"
|
|
3845
3846
|
}, b = [];
|
|
3846
3847
|
if (y) {
|
|
3847
|
-
const S = n.col + o.current, R = n.col +
|
|
3848
|
+
const S = n.col + o.current, R = n.col + c - 1;
|
|
3848
3849
|
for (let p = S; p <= R && p <= 2; p++)
|
|
3849
3850
|
b.push({
|
|
3850
3851
|
cell: {
|
|
@@ -3855,15 +3856,15 @@ function yr(e) {
|
|
|
3855
3856
|
variant: "rejection"
|
|
3856
3857
|
});
|
|
3857
3858
|
} else {
|
|
3858
|
-
const S = Math.abs(g -
|
|
3859
|
-
for (let p = n.col; p < n.col +
|
|
3859
|
+
const S = Math.abs(g - c), R = Math.max(0, Math.min(1, 1 - S));
|
|
3860
|
+
for (let p = n.col; p < n.col + c && p <= 2; p++) {
|
|
3860
3861
|
if (p === n.col) continue;
|
|
3861
|
-
const v = p === n.col +
|
|
3862
|
+
const v = p === n.col + c - 1, _ = {
|
|
3862
3863
|
section: 0,
|
|
3863
3864
|
col: p - n.col,
|
|
3864
3865
|
row: 0
|
|
3865
3866
|
};
|
|
3866
|
-
v && t.direction.startsWith("grow") &&
|
|
3867
|
+
v && t.direction.startsWith("grow") && c > 1 && !s && S > 0 && S < 1 ? b.push({
|
|
3867
3868
|
cell: _,
|
|
3868
3869
|
variant: "ramp",
|
|
3869
3870
|
rampColor: Ca(Me.eligibilityFill, Me.commitFill, R)
|
|
@@ -3871,8 +3872,8 @@ function yr(e) {
|
|
|
3871
3872
|
}
|
|
3872
3873
|
}
|
|
3873
3874
|
const M = [];
|
|
3874
|
-
if (t.currentColSpan >
|
|
3875
|
-
for (let S = n.col +
|
|
3875
|
+
if (t.currentColSpan > c)
|
|
3876
|
+
for (let S = n.col + c; S < n.col + t.currentColSpan && S <= 2; S++)
|
|
3876
3877
|
M.push({
|
|
3877
3878
|
section: 0,
|
|
3878
3879
|
col: S - n.col,
|
|
@@ -3893,7 +3894,7 @@ function yr(e) {
|
|
|
3893
3894
|
cellTints: b,
|
|
3894
3895
|
refusePulse: N,
|
|
3895
3896
|
shrinkFreedCells: M,
|
|
3896
|
-
phase:
|
|
3897
|
+
phase: d.current,
|
|
3897
3898
|
displayColSpan: m.current
|
|
3898
3899
|
};
|
|
3899
3900
|
}
|
|
@@ -3921,9 +3922,9 @@ function ka({
|
|
|
3921
3922
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3922
3923
|
);
|
|
3923
3924
|
}, [a, i]), F.useLayoutEffect(() => {
|
|
3924
|
-
let
|
|
3925
|
-
if (a ?
|
|
3926
|
-
const m =
|
|
3925
|
+
let d = null;
|
|
3926
|
+
if (a ? d = a : i && (d = document.querySelector(i)), d) {
|
|
3927
|
+
const m = d.getBoundingClientRect();
|
|
3927
3928
|
o({
|
|
3928
3929
|
top: m.bottom + window.scrollY + 6,
|
|
3929
3930
|
left: m.left + window.scrollX
|
|
@@ -3997,10 +3998,10 @@ function Ta({
|
|
|
3997
3998
|
), 0.01) : i, l = C(
|
|
3998
3999
|
(p) => Math.round(p / o) * o,
|
|
3999
4000
|
[o]
|
|
4000
|
-
), u = P(null), [
|
|
4001
|
+
), u = P(null), [d, m] = E(null), [h, c] = E(e), g = xa(e), y = P(g);
|
|
4001
4002
|
A(() => {
|
|
4002
|
-
y.current !== g && (y.current = g, !
|
|
4003
|
-
}, [g, e,
|
|
4003
|
+
y.current !== g && (y.current = g, !d && c(e));
|
|
4004
|
+
}, [g, e, d]);
|
|
4004
4005
|
const k = re(() => Da(h, n, a), [h, n, a]), f = C(
|
|
4005
4006
|
(p) => {
|
|
4006
4007
|
if (!u.current) return n;
|
|
@@ -4024,22 +4025,22 @@ function Ta({
|
|
|
4024
4025
|
M.current = h;
|
|
4025
4026
|
const N = P(t);
|
|
4026
4027
|
N.current = t, A(() => {
|
|
4027
|
-
if (!
|
|
4028
|
+
if (!d) return;
|
|
4028
4029
|
const p = (_) => {
|
|
4029
4030
|
const D = f(_.clientX);
|
|
4030
|
-
|
|
4031
|
-
(T) => T.map((x) => x.id ===
|
|
4031
|
+
c(
|
|
4032
|
+
(T) => T.map((x) => x.id === d ? { ...x, value: D } : x)
|
|
4032
4033
|
);
|
|
4033
4034
|
}, v = (_) => {
|
|
4034
4035
|
const D = f(_.clientX), T = M.current.map(
|
|
4035
|
-
(x) => x.id ===
|
|
4036
|
+
(x) => x.id === d ? { ...x, value: D } : x
|
|
4036
4037
|
);
|
|
4037
|
-
|
|
4038
|
+
c(T), m(null), N.current(T);
|
|
4038
4039
|
};
|
|
4039
4040
|
return window.addEventListener("pointermove", p), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
4040
4041
|
window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
4041
4042
|
};
|
|
4042
|
-
}, [
|
|
4043
|
+
}, [d, f]);
|
|
4043
4044
|
const S = a - n > 0 ? a - n : 1, R = C(
|
|
4044
4045
|
(p, v) => {
|
|
4045
4046
|
if (s || v.disabled) return;
|
|
@@ -4071,7 +4072,7 @@ function Ta({
|
|
|
4071
4072
|
const L = h.map(
|
|
4072
4073
|
(Z) => Z.id === v.id ? { ...Z, value: I } : Z
|
|
4073
4074
|
);
|
|
4074
|
-
|
|
4075
|
+
c(L), t(L);
|
|
4075
4076
|
},
|
|
4076
4077
|
[s, n, a, h, t, l]
|
|
4077
4078
|
);
|
|
@@ -4092,7 +4093,7 @@ function Ta({
|
|
|
4092
4093
|
color: pe(p)
|
|
4093
4094
|
},
|
|
4094
4095
|
"data-disabled": p.disabled || void 0,
|
|
4095
|
-
"data-dragging":
|
|
4096
|
+
"data-dragging": d === p.id || void 0,
|
|
4096
4097
|
onPointerDown: (_) => b(_, p.id),
|
|
4097
4098
|
onKeyDown: (_) => R(_, p),
|
|
4098
4099
|
"aria-label": p.label ?? `Stop at ${p.value}`,
|
|
@@ -4118,15 +4119,15 @@ function Ma({ option: e }) {
|
|
|
4118
4119
|
const t = Ra(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = C(() => {
|
|
4119
4120
|
a || t?.select(e.value);
|
|
4120
4121
|
}, [a, t, e.value]), s = C(
|
|
4121
|
-
(
|
|
4122
|
-
a || t?.onKeyNav(
|
|
4122
|
+
(d) => {
|
|
4123
|
+
a || t?.onKeyNav(d, e.value);
|
|
4123
4124
|
},
|
|
4124
4125
|
[a, t, e.value]
|
|
4125
4126
|
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, u = a ? -1 : l ? 0 : -1;
|
|
4126
4127
|
return /* @__PURE__ */ r(
|
|
4127
4128
|
"button",
|
|
4128
4129
|
{
|
|
4129
|
-
ref: (
|
|
4130
|
+
ref: (d) => t?.registerRef(e.value, d),
|
|
4130
4131
|
type: "button",
|
|
4131
4132
|
role: "radio",
|
|
4132
4133
|
"aria-checked": n,
|
|
@@ -4152,18 +4153,18 @@ function Pa({
|
|
|
4152
4153
|
disabled: i = !1,
|
|
4153
4154
|
name: s
|
|
4154
4155
|
}) {
|
|
4155
|
-
const o = t !== void 0, [l, u] = E(n),
|
|
4156
|
+
const o = t !== void 0, [l, u] = E(n), d = o ? t : l, m = C(
|
|
4156
4157
|
(N) => {
|
|
4157
4158
|
o || u(N), a?.(N);
|
|
4158
4159
|
},
|
|
4159
4160
|
[o, a]
|
|
4160
4161
|
), h = C(
|
|
4161
|
-
(N) =>
|
|
4162
|
-
[
|
|
4163
|
-
),
|
|
4164
|
-
S ?
|
|
4165
|
-
}, []), y = e.filter((N) => !N.disabled && !i), k = y.find((N) => N.value ===
|
|
4166
|
-
const S =
|
|
4162
|
+
(N) => d === N,
|
|
4163
|
+
[d]
|
|
4164
|
+
), c = P(/* @__PURE__ */ new Map()), g = C((N, S) => {
|
|
4165
|
+
S ? c.current.set(N, S) : c.current.delete(N);
|
|
4166
|
+
}, []), y = e.filter((N) => !N.disabled && !i), k = y.find((N) => N.value === d)?.value ?? y[0]?.value, f = C((N) => {
|
|
4167
|
+
const S = c.current.get(N);
|
|
4167
4168
|
S && S.focus();
|
|
4168
4169
|
}, []), b = C(
|
|
4169
4170
|
(N, S) => {
|
|
@@ -4201,7 +4202,7 @@ function Pa({
|
|
|
4201
4202
|
},
|
|
4202
4203
|
[i, e, m, f]
|
|
4203
4204
|
), M = {
|
|
4204
|
-
selectedValue:
|
|
4205
|
+
selectedValue: d,
|
|
4205
4206
|
select: m,
|
|
4206
4207
|
isSelected: h,
|
|
4207
4208
|
groupDisabled: i,
|
|
@@ -4247,17 +4248,17 @@ function Aa(e) {
|
|
|
4247
4248
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4248
4249
|
), [a, i] = E(null), [s, o] = E(null), l = P(null), u = P(e.onZoneChange);
|
|
4249
4250
|
u.current = e.onZoneChange;
|
|
4250
|
-
const
|
|
4251
|
+
const d = re(
|
|
4251
4252
|
() => Ea(e.zones),
|
|
4252
4253
|
[e.zones]
|
|
4253
|
-
), m = P(
|
|
4254
|
+
), m = P(d);
|
|
4254
4255
|
A(() => {
|
|
4255
|
-
m.current !==
|
|
4256
|
+
m.current !== d && (m.current = d, !a && n(
|
|
4256
4257
|
e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4257
4258
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
4258
4259
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4259
4260
|
));
|
|
4260
|
-
}, [
|
|
4261
|
+
}, [d, e.zones, a]);
|
|
4261
4262
|
const h = C(
|
|
4262
4263
|
(f) => {
|
|
4263
4264
|
const b = f.active.id;
|
|
@@ -4272,7 +4273,7 @@ function Aa(e) {
|
|
|
4272
4273
|
l.current = N, i(M), o(N);
|
|
4273
4274
|
},
|
|
4274
4275
|
[t]
|
|
4275
|
-
),
|
|
4276
|
+
), c = C(
|
|
4276
4277
|
(f) => {
|
|
4277
4278
|
if (!f.over) {
|
|
4278
4279
|
o(l.current);
|
|
@@ -4349,7 +4350,7 @@ function Aa(e) {
|
|
|
4349
4350
|
getZoneProps: y,
|
|
4350
4351
|
getItemProps: k,
|
|
4351
4352
|
handleDragStart: h,
|
|
4352
|
-
handleDragOver:
|
|
4353
|
+
handleDragOver: c,
|
|
4353
4354
|
handleDragEnd: g
|
|
4354
4355
|
};
|
|
4355
4356
|
}
|
|
@@ -4403,11 +4404,11 @@ function za(e) {
|
|
|
4403
4404
|
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = Aa({ zones: t, onZoneChange: n }), [l, u] = F.useState(Q);
|
|
4404
4405
|
return F.useEffect(() => {
|
|
4405
4406
|
if (l) return;
|
|
4406
|
-
let
|
|
4407
|
+
let d = !0;
|
|
4407
4408
|
return $a().then((m) => {
|
|
4408
|
-
|
|
4409
|
+
d && u(m);
|
|
4409
4410
|
}), () => {
|
|
4410
|
-
|
|
4411
|
+
d = !1;
|
|
4411
4412
|
};
|
|
4412
4413
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
4413
4414
|
Ve,
|
|
@@ -4418,9 +4419,9 @@ function za(e) {
|
|
|
4418
4419
|
renderItem: i,
|
|
4419
4420
|
renderDragOverlay: s
|
|
4420
4421
|
}
|
|
4421
|
-
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((
|
|
4422
|
-
const m =
|
|
4423
|
-
return /* @__PURE__ */ r("div", { ...o.getZoneProps(
|
|
4422
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
4423
|
+
const m = d.items.map((h) => /* @__PURE__ */ r(F.Fragment, { children: i(h) }, h.id));
|
|
4424
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, m) }, d.zoneKey);
|
|
4424
4425
|
}) });
|
|
4425
4426
|
}
|
|
4426
4427
|
za.displayName = "SortableZones";
|
|
@@ -4431,10 +4432,10 @@ function Ve({
|
|
|
4431
4432
|
renderItem: a,
|
|
4432
4433
|
renderDragOverlay: i
|
|
4433
4434
|
}) {
|
|
4434
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay:
|
|
4435
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: d, useSensors: m, useSensor: h, useDroppable: c, PointerSensor: g, KeyboardSensor: y, closestCenter: k } = s, { SortableContext: f, verticalListSortingStrategy: b } = o, M = m(
|
|
4435
4436
|
h(g, { activationConstraint: { distance: 5 } }),
|
|
4436
4437
|
h(y)
|
|
4437
|
-
), N = u, S =
|
|
4438
|
+
), N = u, S = d, R = f;
|
|
4438
4439
|
return /* @__PURE__ */ w(
|
|
4439
4440
|
N,
|
|
4440
4441
|
{
|
|
@@ -4460,7 +4461,7 @@ function Ve({
|
|
|
4460
4461
|
{
|
|
4461
4462
|
zoneKey: p.zoneKey,
|
|
4462
4463
|
zoneProps: e.getZoneProps(p.zoneKey),
|
|
4463
|
-
useDroppable:
|
|
4464
|
+
useDroppable: c,
|
|
4464
4465
|
children: /* @__PURE__ */ r(R, { items: v, strategy: b, children: n(p.zoneKey, p.items, _) })
|
|
4465
4466
|
},
|
|
4466
4467
|
p.zoneKey
|
|
@@ -4473,10 +4474,10 @@ function Ve({
|
|
|
4473
4474
|
}
|
|
4474
4475
|
Ve.displayName = "SortableZonesInner";
|
|
4475
4476
|
function je({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
4476
|
-
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging:
|
|
4477
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging: d } = t({ id: e }), m = {
|
|
4477
4478
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
4478
4479
|
transition: u,
|
|
4479
|
-
opacity:
|
|
4480
|
+
opacity: d ? 0.5 : 1
|
|
4480
4481
|
};
|
|
4481
4482
|
return /* @__PURE__ */ r("div", { ref: o, style: m, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
4482
4483
|
}
|
|
@@ -4552,17 +4553,17 @@ function _r({
|
|
|
4552
4553
|
currentSection: l,
|
|
4553
4554
|
sectionsPerView: u = 1,
|
|
4554
4555
|
// D-09 default
|
|
4555
|
-
isHiding:
|
|
4556
|
+
isHiding: d
|
|
4556
4557
|
}) {
|
|
4557
|
-
const m = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, m)),
|
|
4558
|
-
return y.current.length = e, !
|
|
4558
|
+
const m = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, m)), c = Math.min(e - 1, h + Math.max(0, u - 1)), g = [h, c], y = B.useRef([]);
|
|
4559
|
+
return y.current.length = e, !d && e <= 1 || !d && g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ w(
|
|
4559
4560
|
"div",
|
|
4560
4561
|
{
|
|
4561
4562
|
role: "tablist",
|
|
4562
4563
|
"aria-label": a,
|
|
4563
4564
|
"data-testid": "gloss-section-dots",
|
|
4564
4565
|
className: "gloss-section-dots",
|
|
4565
|
-
"data-hiding":
|
|
4566
|
+
"data-hiding": d ? "true" : void 0,
|
|
4566
4567
|
onKeyDown: (f) => {
|
|
4567
4568
|
if (e !== 0) {
|
|
4568
4569
|
if (f.key === "ArrowRight") {
|