@mt-gloss/ui 0.1.85 → 0.1.86
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 → COMMITS-6U31xb_s.js} +63 -52
- package/{Expandable-D00kXkfM.js → Expandable-C5vX1uaQ.js} +1094 -1098
- package/catalog.js +2 -2
- package/composites-panels.js +64 -31
- package/index.js +199 -200
- package/lib/composites/panels/PanelChrome.d.ts +3 -1
- package/lib/composites/panels/index.d.ts +1 -0
- package/lib/composites/panels/shells/SettingsShell.d.ts +2 -0
- package/lib/composites/panels/shells/index.d.ts +4 -0
- package/lib/primitives/dashboard/MetricCard/types/shared.d.ts +0 -2
- package/lib/primitives/dashboard/PageChip/types.d.ts +1 -3
- package/package.json +1 -1
- package/ui.css +1 -1
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-C5vX1uaQ.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-C5vX1uaQ.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-6U31xb_s.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: c
|
|
40
|
+
} = e, [m, h] = E(-1), d = 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(d, 1);
|
|
64
64
|
p !== -1 && g(p);
|
|
65
|
-
}, [
|
|
66
|
-
const p = k(
|
|
65
|
+
}, [d, k, g]), N = C(() => {
|
|
66
|
+
const p = k(d, -1);
|
|
67
67
|
p !== -1 && g(p);
|
|
68
|
-
}, [
|
|
68
|
+
}, [d, 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(), d === -1 ? b() : N();
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
if (D || x) {
|
|
79
|
-
p.preventDefault(),
|
|
79
|
+
p.preventDefault(), d === -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 === " ") && d >= 0 && d < t.length) {
|
|
91
91
|
p.preventDefault();
|
|
92
|
-
const I = t[
|
|
93
|
-
l?.(I,
|
|
92
|
+
const I = t[d];
|
|
93
|
+
l?.(I, d) || u?.(I, d);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (v === "Escape") {
|
|
97
|
-
|
|
97
|
+
c?.();
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
[
|
|
102
102
|
o,
|
|
103
103
|
s,
|
|
104
|
-
|
|
104
|
+
d,
|
|
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
|
+
c
|
|
113
113
|
]
|
|
114
114
|
);
|
|
115
115
|
return {
|
|
116
|
-
focusedIndex:
|
|
116
|
+
focusedIndex: d,
|
|
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
|
+
}, c = (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}`, d = 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: c,
|
|
152
|
+
"aria-describedby": d,
|
|
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: d, 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), c = 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
|
+
c.current && !c.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, d = /* @__PURE__ */ w(
|
|
322
322
|
"div",
|
|
323
323
|
{
|
|
324
|
-
ref:
|
|
324
|
+
ref: c,
|
|
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(d, 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, c] = this.samples, m = Math.max(1, c.t - u.t);
|
|
461
|
+
return (c.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 c = n === "grow", m = c ? s + a : s + i, h = c ? o - i : o - a, d = 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: d
|
|
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: c,
|
|
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 d = typeof t == "number" && typeof n == "number" && t < n ? "left" : "right";
|
|
732
|
+
h = /* @__PURE__ */ r(Ct, { direction: d });
|
|
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: c },
|
|
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, c = 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((d) => /* @__PURE__ */ r(
|
|
794
794
|
kt,
|
|
795
795
|
{
|
|
796
|
-
target:
|
|
796
|
+
target: d,
|
|
797
797
|
currentTarget: t.currentTarget,
|
|
798
798
|
mode: t.mode,
|
|
799
|
-
isActive:
|
|
799
|
+
isActive: d === t.currentTarget,
|
|
800
800
|
isHovered: (
|
|
801
801
|
// Hover-state mapping for chevron→✓ morph CSS.
|
|
802
|
-
t.buttonHover !== null && (typeof
|
|
802
|
+
t.buttonHover !== null && (typeof d == "number" && typeof t.currentTarget == "number" && (t.buttonHover === "grow" && d > t.currentTarget || t.buttonHover === "shrink" && d < t.currentTarget) || t.buttonHover === d)
|
|
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(d)
|
|
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: c,
|
|
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), c = P(null), m = P(null), h = P(e.currentTarget);
|
|
862
862
|
h.current = e.currentTarget;
|
|
863
|
-
const
|
|
864
|
-
|
|
863
|
+
const d = P(e.onCommit);
|
|
864
|
+
d.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
|
+
c.current && clearTimeout(c.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, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
882
|
+
u.current = !1, c.current = null;
|
|
883
|
+
}, t.fadeGraceMs), l(null), a("fading"), d.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
|
+
(d) => {
|
|
1216
|
+
s(d), t();
|
|
1217
1217
|
},
|
|
1218
1218
|
[s, t]
|
|
1219
|
-
),
|
|
1220
|
-
(
|
|
1221
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), u(
|
|
1219
|
+
), c = C(
|
|
1220
|
+
(d, g) => {
|
|
1221
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), u(d));
|
|
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((d) => {
|
|
1244
|
+
const g = d.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) => d
|
|
1253
|
+
onClick: () => u(d.id),
|
|
1254
|
+
onKeyDown: (y) => c(d.id, y),
|
|
1255
1255
|
children: [
|
|
1256
1256
|
/* @__PURE__ */ r(
|
|
1257
1257
|
"span",
|
|
@@ -1262,15 +1262,14 @@ 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${d.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
1266
|
+
children: d.name
|
|
1267
1267
|
}
|
|
1268
1268
|
),
|
|
1269
|
-
|
|
1270
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children: c.cardCount })
|
|
1269
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children: d.cardCount })
|
|
1271
1270
|
]
|
|
1272
1271
|
},
|
|
1273
|
-
|
|
1272
|
+
d.id
|
|
1274
1273
|
);
|
|
1275
1274
|
}) }),
|
|
1276
1275
|
/* @__PURE__ */ r("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -1307,12 +1306,12 @@ const Et = function({
|
|
|
1307
1306
|
onManagePages: o,
|
|
1308
1307
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1309
1308
|
displayMode: u = "count",
|
|
1310
|
-
activePage:
|
|
1309
|
+
activePage: c
|
|
1311
1310
|
}) {
|
|
1312
|
-
const m = P(null), [h,
|
|
1313
|
-
|
|
1311
|
+
const m = P(null), [h, d] = E(!1), g = C(() => {
|
|
1312
|
+
d((b) => !b);
|
|
1314
1313
|
}, []), y = C(() => {
|
|
1315
|
-
|
|
1314
|
+
d(!1);
|
|
1316
1315
|
}, []), k = a[t]?.id ?? "";
|
|
1317
1316
|
return /* @__PURE__ */ w(
|
|
1318
1317
|
"div",
|
|
@@ -1335,10 +1334,10 @@ const Et = function({
|
|
|
1335
1334
|
className: `gloss-page-chip__trigger${u === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1336
1335
|
"aria-haspopup": "menu",
|
|
1337
1336
|
"aria-expanded": h,
|
|
1338
|
-
"aria-label": u === "name" ? `${
|
|
1337
|
+
"aria-label": u === "name" ? `${c ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1339
1338
|
onClick: g,
|
|
1340
1339
|
children: u === "name" ? /* @__PURE__ */ w($, { children: [
|
|
1341
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children:
|
|
1340
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: c ?? "" }),
|
|
1342
1341
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1343
1342
|
] }) : /* @__PURE__ */ w($, { children: [
|
|
1344
1343
|
t + 1,
|
|
@@ -2045,33 +2044,33 @@ const Ht = ({
|
|
|
2045
2044
|
}) => {
|
|
2046
2045
|
const s = P(null), o = P([]), l = Gt(), u = re(() => Array.from(e), [e]);
|
|
2047
2046
|
if (u.length === 0) return null;
|
|
2048
|
-
const
|
|
2047
|
+
const c = a ? `Configure ${a}: choose a dimension` : void 0, m = l ? "10ms" : "200ms", h = (d, g) => {
|
|
2049
2048
|
const y = u.length - 1, k = (f) => {
|
|
2050
2049
|
const b = o.current[f];
|
|
2051
2050
|
b && b.focus();
|
|
2052
2051
|
};
|
|
2053
|
-
switch (
|
|
2052
|
+
switch (d.key) {
|
|
2054
2053
|
case "ArrowRight":
|
|
2055
2054
|
case "ArrowDown": {
|
|
2056
|
-
|
|
2055
|
+
d.preventDefault(), k(g === y ? 0 : g + 1);
|
|
2057
2056
|
break;
|
|
2058
2057
|
}
|
|
2059
2058
|
case "ArrowLeft":
|
|
2060
2059
|
case "ArrowUp": {
|
|
2061
|
-
|
|
2060
|
+
d.preventDefault(), k(g === 0 ? y : g - 1);
|
|
2062
2061
|
break;
|
|
2063
2062
|
}
|
|
2064
2063
|
case "Home": {
|
|
2065
|
-
|
|
2064
|
+
d.preventDefault(), k(0);
|
|
2066
2065
|
break;
|
|
2067
2066
|
}
|
|
2068
2067
|
case "End": {
|
|
2069
|
-
|
|
2068
|
+
d.preventDefault(), k(y);
|
|
2070
2069
|
break;
|
|
2071
2070
|
}
|
|
2072
2071
|
case "Enter":
|
|
2073
2072
|
case " ": {
|
|
2074
|
-
|
|
2073
|
+
d.preventDefault(), t(u[g]);
|
|
2075
2074
|
break;
|
|
2076
2075
|
}
|
|
2077
2076
|
}
|
|
@@ -2081,7 +2080,7 @@ const Ht = ({
|
|
|
2081
2080
|
{
|
|
2082
2081
|
ref: s,
|
|
2083
2082
|
role: "group",
|
|
2084
|
-
"aria-label":
|
|
2083
|
+
"aria-label": c,
|
|
2085
2084
|
className: Se("gloss-reconfig-backside-buttons", i),
|
|
2086
2085
|
style: {
|
|
2087
2086
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
@@ -2089,8 +2088,8 @@ const Ht = ({
|
|
|
2089
2088
|
// query in the JS. Also surfaces the value for the unit test.
|
|
2090
2089
|
"--gloss-reconfig-backside-buttons-transition-duration": m
|
|
2091
2090
|
},
|
|
2092
|
-
children: u.map((
|
|
2093
|
-
const y = Kt[
|
|
2091
|
+
children: u.map((d, g) => {
|
|
2092
|
+
const y = Kt[d], k = n === d;
|
|
2094
2093
|
return /* @__PURE__ */ w(
|
|
2095
2094
|
"button",
|
|
2096
2095
|
{
|
|
@@ -2098,13 +2097,13 @@ const Ht = ({
|
|
|
2098
2097
|
o.current[g] = f;
|
|
2099
2098
|
},
|
|
2100
2099
|
type: "button",
|
|
2101
|
-
"data-dimension":
|
|
2100
|
+
"data-dimension": d,
|
|
2102
2101
|
className: Se(
|
|
2103
2102
|
"gloss-reconfig-backside-buttons__button",
|
|
2104
2103
|
k && "gloss-reconfig-backside-buttons__button--active"
|
|
2105
2104
|
),
|
|
2106
2105
|
"aria-current": k ? "true" : void 0,
|
|
2107
|
-
onClick: () => t(
|
|
2106
|
+
onClick: () => t(d),
|
|
2108
2107
|
onKeyDown: (f) => h(f, g),
|
|
2109
2108
|
children: [
|
|
2110
2109
|
/* @__PURE__ */ r(
|
|
@@ -2114,10 +2113,10 @@ const Ht = ({
|
|
|
2114
2113
|
"aria-hidden": "true"
|
|
2115
2114
|
}
|
|
2116
2115
|
),
|
|
2117
|
-
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Bt[
|
|
2116
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Bt[d] })
|
|
2118
2117
|
]
|
|
2119
2118
|
},
|
|
2120
|
-
|
|
2119
|
+
d
|
|
2121
2120
|
);
|
|
2122
2121
|
})
|
|
2123
2122
|
}
|
|
@@ -2501,13 +2500,13 @@ function ea(e = {}) {
|
|
|
2501
2500
|
}
|
|
2502
2501
|
ea.displayName = "DevTuningPanel";
|
|
2503
2502
|
function ta() {
|
|
2504
|
-
const e = Yt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = E(null), l = P(null), u = C((
|
|
2505
|
-
l.current && clearTimeout(l.current), o(
|
|
2503
|
+
const e = Yt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = E(null), l = P(null), u = C((d) => {
|
|
2504
|
+
l.current && clearTimeout(l.current), o(d), l.current = setTimeout(() => {
|
|
2506
2505
|
o(null), l.current = null;
|
|
2507
2506
|
}, 200);
|
|
2508
|
-
}, []),
|
|
2509
|
-
(
|
|
2510
|
-
n(
|
|
2507
|
+
}, []), c = C(
|
|
2508
|
+
(d, g) => {
|
|
2509
|
+
n(d, g), d === "snapInPx" && g > t.snapOutPx && (n("snapOutPx", g), u("snapOutPx"));
|
|
2511
2510
|
},
|
|
2512
2511
|
[n, t.snapOutPx, u]
|
|
2513
2512
|
), m = re(() => Zt, []), h = nt();
|
|
@@ -2527,23 +2526,23 @@ function ta() {
|
|
|
2527
2526
|
"div",
|
|
2528
2527
|
{
|
|
2529
2528
|
className: "gloss-dev-tuning-panel__header",
|
|
2530
|
-
onPointerDown: (
|
|
2529
|
+
onPointerDown: (d) => h.start(d),
|
|
2531
2530
|
children: [
|
|
2532
2531
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2533
2532
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2534
2533
|
]
|
|
2535
2534
|
}
|
|
2536
2535
|
),
|
|
2537
|
-
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: m.map((
|
|
2536
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: m.map((d) => /* @__PURE__ */ r(
|
|
2538
2537
|
Xt,
|
|
2539
2538
|
{
|
|
2540
|
-
spec:
|
|
2541
|
-
value: t[
|
|
2542
|
-
onChange: (g) => d
|
|
2543
|
-
onReset: () => a(
|
|
2544
|
-
flashing: s ===
|
|
2539
|
+
spec: d,
|
|
2540
|
+
value: t[d.key],
|
|
2541
|
+
onChange: (g) => c(d.key, g),
|
|
2542
|
+
onReset: () => a(d.key),
|
|
2543
|
+
flashing: s === d.key
|
|
2545
2544
|
},
|
|
2546
|
-
|
|
2545
|
+
d.key
|
|
2547
2546
|
)) }),
|
|
2548
2547
|
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ r(
|
|
2549
2548
|
"button",
|
|
@@ -2568,14 +2567,14 @@ function Yn({
|
|
|
2568
2567
|
snapBoundariesX: o,
|
|
2569
2568
|
topY: l,
|
|
2570
2569
|
bottomY: u,
|
|
2571
|
-
enterMs:
|
|
2570
|
+
enterMs: c = U.envelopeEnterMs,
|
|
2572
2571
|
exitMs: m = U.envelopeExitMs,
|
|
2573
2572
|
className: h,
|
|
2574
|
-
style:
|
|
2573
|
+
style: d
|
|
2575
2574
|
}) {
|
|
2576
2575
|
if (e === "hidden") return null;
|
|
2577
2576
|
const g = Math.max(0, i - a), y = Math.max(0, u - l), k = {
|
|
2578
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2577
|
+
"--gloss-resize-envelope-enter-ms": `${c}ms`,
|
|
2579
2578
|
"--gloss-resize-envelope-exit-ms": `${m}ms`,
|
|
2580
2579
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2581
2580
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
@@ -2583,7 +2582,7 @@ function Yn({
|
|
|
2583
2582
|
top: l,
|
|
2584
2583
|
width: g,
|
|
2585
2584
|
height: y,
|
|
2586
|
-
...
|
|
2585
|
+
...d
|
|
2587
2586
|
};
|
|
2588
2587
|
return /* @__PURE__ */ w(
|
|
2589
2588
|
"div",
|
|
@@ -2642,12 +2641,12 @@ function Zn({
|
|
|
2642
2641
|
children: l,
|
|
2643
2642
|
...u
|
|
2644
2643
|
}) {
|
|
2645
|
-
const
|
|
2644
|
+
const c = a != null ? { ...u.style, "--_proximity-opacity": String(a) } : u.style;
|
|
2646
2645
|
return /* @__PURE__ */ r(
|
|
2647
2646
|
"div",
|
|
2648
2647
|
{
|
|
2649
2648
|
...u,
|
|
2650
|
-
style:
|
|
2649
|
+
style: c,
|
|
2651
2650
|
"data-density": e,
|
|
2652
2651
|
"data-can-accept": t ? "true" : "false",
|
|
2653
2652
|
"data-blocked": n ? "true" : void 0,
|
|
@@ -2710,7 +2709,7 @@ function Qn({
|
|
|
2710
2709
|
style: l,
|
|
2711
2710
|
...u
|
|
2712
2711
|
}) {
|
|
2713
|
-
const
|
|
2712
|
+
const c = {
|
|
2714
2713
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2715
2714
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2716
2715
|
"--gloss-section-divider-stagger-delay": `${t * i}ms`,
|
|
@@ -2729,7 +2728,7 @@ function Qn({
|
|
|
2729
2728
|
s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2730
2729
|
o
|
|
2731
2730
|
].filter(Boolean).join(" "),
|
|
2732
|
-
style:
|
|
2731
|
+
style: c
|
|
2733
2732
|
}
|
|
2734
2733
|
);
|
|
2735
2734
|
}
|
|
@@ -2817,14 +2816,14 @@ function nr({
|
|
|
2817
2816
|
onPack: l,
|
|
2818
2817
|
ariaLabel: u
|
|
2819
2818
|
}) {
|
|
2820
|
-
const
|
|
2819
|
+
const c = a ?? "Add card to this cell", m = i ?? u ?? "Pack row — shift cards left", h = t ?? l, { affordancesVisible: d } = Ze();
|
|
2821
2820
|
return /* @__PURE__ */ w(B.Fragment, { children: [
|
|
2822
|
-
/* @__PURE__ */ r(De, { visible:
|
|
2821
|
+
/* @__PURE__ */ r(De, { visible: d, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2823
2822
|
"button",
|
|
2824
2823
|
{
|
|
2825
2824
|
type: "button",
|
|
2826
2825
|
"data-testid": "gloss-empty-cell-add",
|
|
2827
|
-
"aria-label":
|
|
2826
|
+
"aria-label": c,
|
|
2828
2827
|
className: [
|
|
2829
2828
|
"gloss-empty-cell-pack-affordance",
|
|
2830
2829
|
"gloss-empty-cell-pack-affordance--add",
|
|
@@ -2837,7 +2836,7 @@ function nr({
|
|
|
2837
2836
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
|
|
2838
2837
|
}
|
|
2839
2838
|
) }),
|
|
2840
|
-
/* @__PURE__ */ r(De, { visible: e &&
|
|
2839
|
+
/* @__PURE__ */ r(De, { visible: e && d, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2841
2840
|
"button",
|
|
2842
2841
|
{
|
|
2843
2842
|
type: "button",
|
|
@@ -2864,7 +2863,7 @@ function rr({
|
|
|
2864
2863
|
children: l,
|
|
2865
2864
|
className: u
|
|
2866
2865
|
}) {
|
|
2867
|
-
const
|
|
2866
|
+
const c = t * n + (t - 1) * i, m = B.useRef(null);
|
|
2868
2867
|
return de("drag-ghost", () => {
|
|
2869
2868
|
if (process.env.NODE_ENV === "production")
|
|
2870
2869
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
@@ -2892,11 +2891,11 @@ function rr({
|
|
|
2892
2891
|
if (process.env.NODE_ENV === "production")
|
|
2893
2892
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2894
2893
|
const h = m.current;
|
|
2895
|
-
let
|
|
2894
|
+
let d = 0, g = "", y = "", k = "";
|
|
2896
2895
|
if (h)
|
|
2897
2896
|
try {
|
|
2898
2897
|
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";
|
|
2899
|
-
|
|
2898
|
+
d = p || v || _ ? 1 : 0, g = p ? N : "", y = v ? S : "", k = _ ? R : "";
|
|
2900
2899
|
} catch {
|
|
2901
2900
|
}
|
|
2902
2901
|
const f = h?.getBoundingClientRect() ?? null, b = h ? "drag-clone" : "subsumed-by-tracking-outline";
|
|
@@ -2909,7 +2908,7 @@ function rr({
|
|
|
2909
2908
|
bounds_w: f?.width ?? 0,
|
|
2910
2909
|
bounds_h: f?.height ?? 0,
|
|
2911
2910
|
visible: h ? 1 : 0,
|
|
2912
|
-
outlineOnClone:
|
|
2911
|
+
outlineOnClone: d
|
|
2913
2912
|
},
|
|
2914
2913
|
spec: {
|
|
2915
2914
|
mode: b,
|
|
@@ -2937,7 +2936,7 @@ function rr({
|
|
|
2937
2936
|
`gloss-drag-ghost--tint-${e}`,
|
|
2938
2937
|
u
|
|
2939
2938
|
].filter(Boolean).join(" "),
|
|
2940
|
-
style: { x: s, y: o, width:
|
|
2939
|
+
style: { x: s, y: o, width: c, height: a },
|
|
2941
2940
|
children: l
|
|
2942
2941
|
}
|
|
2943
2942
|
);
|
|
@@ -2953,9 +2952,9 @@ function Ge({
|
|
|
2953
2952
|
pattern: o = "solid",
|
|
2954
2953
|
transitionMs: l = 120,
|
|
2955
2954
|
className: u,
|
|
2956
|
-
motionWidth:
|
|
2955
|
+
motionWidth: c
|
|
2957
2956
|
}) {
|
|
2958
|
-
const m = n * a + (n - 1) * i,
|
|
2957
|
+
const m = n * a + (n - 1) * i, d = (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 = {
|
|
2959
2958
|
className: [
|
|
2960
2959
|
"gloss-tracking-outline",
|
|
2961
2960
|
`gloss-tracking-outline--${e}`,
|
|
@@ -2971,13 +2970,13 @@ function Ge({
|
|
|
2971
2970
|
"data-pattern": o,
|
|
2972
2971
|
"aria-hidden": "true"
|
|
2973
2972
|
};
|
|
2974
|
-
return
|
|
2973
|
+
return c ? /* @__PURE__ */ r(
|
|
2975
2974
|
G.div,
|
|
2976
2975
|
{
|
|
2977
2976
|
...b,
|
|
2978
2977
|
style: {
|
|
2979
|
-
transform: `translate(${
|
|
2980
|
-
width:
|
|
2978
|
+
transform: `translate(${d}px, ${g}px)`,
|
|
2979
|
+
width: c,
|
|
2981
2980
|
height: s,
|
|
2982
2981
|
borderWidth: y,
|
|
2983
2982
|
borderStyle: k
|
|
@@ -2988,7 +2987,7 @@ function Ge({
|
|
|
2988
2987
|
{
|
|
2989
2988
|
...b,
|
|
2990
2989
|
style: {
|
|
2991
|
-
transform: `translate(${
|
|
2990
|
+
transform: `translate(${d}px, ${g}px)`,
|
|
2992
2991
|
width: m,
|
|
2993
2992
|
height: s,
|
|
2994
2993
|
borderWidth: y,
|
|
@@ -3012,10 +3011,10 @@ function ir({
|
|
|
3012
3011
|
if (process.env.NODE_ENV === "production")
|
|
3013
3012
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
3014
3013
|
const o = s.current;
|
|
3015
|
-
let l = 0, u = 0,
|
|
3014
|
+
let l = 0, u = 0, c = 0, m = 0;
|
|
3016
3015
|
for (const h of o) {
|
|
3017
|
-
const
|
|
3018
|
-
Math.abs(
|
|
3016
|
+
const d = h.x.get(), g = h.y.get();
|
|
3017
|
+
Math.abs(d) > Math.abs(c) && (c = d, l = d), Math.abs(g) > Math.abs(m) && (m = g, u = g);
|
|
3019
3018
|
}
|
|
3020
3019
|
return {
|
|
3021
3020
|
values: {
|
|
@@ -3062,10 +3061,10 @@ const ra = ({
|
|
|
3062
3061
|
}) => {
|
|
3063
3062
|
const a = P(null), i = P(null);
|
|
3064
3063
|
A(() => {
|
|
3065
|
-
const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)),
|
|
3064
|
+
const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)), c = requestAnimationFrame(() => {
|
|
3066
3065
|
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${u}%`);
|
|
3067
3066
|
});
|
|
3068
|
-
return () => cancelAnimationFrame(
|
|
3067
|
+
return () => cancelAnimationFrame(c);
|
|
3069
3068
|
}, [e.value, t.value]);
|
|
3070
3069
|
const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
3071
3070
|
return /* @__PURE__ */ w(
|
|
@@ -3321,7 +3320,7 @@ function K({
|
|
|
3321
3320
|
className: l,
|
|
3322
3321
|
style: u
|
|
3323
3322
|
}) {
|
|
3324
|
-
const
|
|
3323
|
+
const c = [
|
|
3325
3324
|
"gloss-entity-row",
|
|
3326
3325
|
`gloss-entity-row--${s}`,
|
|
3327
3326
|
o ? "gloss-entity-row--clickable" : "",
|
|
@@ -3333,7 +3332,7 @@ function K({
|
|
|
3333
3332
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
3334
3333
|
i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
|
|
3335
3334
|
] });
|
|
3336
|
-
return o ? /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3335
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: c, style: u, children: /* @__PURE__ */ r(
|
|
3337
3336
|
"button",
|
|
3338
3337
|
{
|
|
3339
3338
|
type: "button",
|
|
@@ -3350,7 +3349,7 @@ function K({
|
|
|
3350
3349
|
},
|
|
3351
3350
|
children: m
|
|
3352
3351
|
}
|
|
3353
|
-
) }) : /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3352
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: c, style: u, children: m });
|
|
3354
3353
|
}
|
|
3355
3354
|
K.displayName = "EntityRow";
|
|
3356
3355
|
const ee = ({ rank: e }) => {
|
|
@@ -3523,7 +3522,7 @@ function fa({
|
|
|
3523
3522
|
ruleSubtitle: s,
|
|
3524
3523
|
isStale: o
|
|
3525
3524
|
}) {
|
|
3526
|
-
const l = t.filter((
|
|
3525
|
+
const l = t.filter((c) => ha(c, n)), u = l.slice(0, a ?? 3);
|
|
3527
3526
|
return l.length === 0 ? /* @__PURE__ */ w($, { children: [
|
|
3528
3527
|
/* @__PURE__ */ r(
|
|
3529
3528
|
X,
|
|
@@ -3549,16 +3548,16 @@ function fa({
|
|
|
3549
3548
|
{
|
|
3550
3549
|
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3551
3550
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3552
|
-
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((
|
|
3551
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((c, m) => /* @__PURE__ */ r(
|
|
3553
3552
|
K,
|
|
3554
3553
|
{
|
|
3555
|
-
lead: /* @__PURE__ */ r(te, { severity:
|
|
3556
|
-
name:
|
|
3557
|
-
value:
|
|
3554
|
+
lead: /* @__PURE__ */ r(te, { severity: c.severity, "aria-label": pa(c.severity) }),
|
|
3555
|
+
name: c.name,
|
|
3556
|
+
value: c.value,
|
|
3558
3557
|
variant: "exception",
|
|
3559
3558
|
style: { "--i": m }
|
|
3560
3559
|
},
|
|
3561
|
-
|
|
3560
|
+
c.id
|
|
3562
3561
|
)) })
|
|
3563
3562
|
}
|
|
3564
3563
|
),
|
|
@@ -3694,10 +3693,10 @@ function fr({
|
|
|
3694
3693
|
gap: s,
|
|
3695
3694
|
className: o
|
|
3696
3695
|
}) {
|
|
3697
|
-
const u = (e.section * ya + e.col) * (a + s),
|
|
3696
|
+
const u = (e.section * ya + e.col) * (a + s), c = e.row * (i + s), m = t === "eligibility" ? j.eligibilityFill : t === "commit" ? j.commitFill : t === "rejection" ? j.rejectionFill : (
|
|
3698
3697
|
/* ramp */
|
|
3699
3698
|
n ?? j.eligibilityFill
|
|
3700
|
-
), h = t === "rejection",
|
|
3699
|
+
), h = t === "rejection", d = h ? j.rejectionStroke : "transparent", g = h ? "dashed" : "solid";
|
|
3701
3700
|
return /* @__PURE__ */ r(
|
|
3702
3701
|
"div",
|
|
3703
3702
|
{
|
|
@@ -3710,14 +3709,14 @@ function fr({
|
|
|
3710
3709
|
"data-variant": t,
|
|
3711
3710
|
"aria-hidden": "true",
|
|
3712
3711
|
style: {
|
|
3713
|
-
transform: `translate(${u}px, ${
|
|
3712
|
+
transform: `translate(${u}px, ${c}px)`,
|
|
3714
3713
|
width: a,
|
|
3715
3714
|
height: i,
|
|
3716
3715
|
// Use background-color longhand (NOT background shorthand) so jsdom + DOM
|
|
3717
3716
|
// both preserve `var(...)` in inline cssText. The shorthand getter strips
|
|
3718
3717
|
// unknown values and breaks both unit-test introspection and styling.
|
|
3719
3718
|
backgroundColor: m,
|
|
3720
|
-
borderColor:
|
|
3719
|
+
borderColor: d,
|
|
3721
3720
|
borderStyle: g
|
|
3722
3721
|
}
|
|
3723
3722
|
}
|
|
@@ -3815,8 +3814,8 @@ function Ca(e, t, n) {
|
|
|
3815
3814
|
parseInt(h.slice(1, 3), 16),
|
|
3816
3815
|
parseInt(h.slice(3, 5), 16),
|
|
3817
3816
|
parseInt(h.slice(5, 7), 16)
|
|
3818
|
-
], [s, o, l] = i(e), [u,
|
|
3819
|
-
return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (
|
|
3817
|
+
], [s, o, l] = i(e), [u, c, m] = i(t);
|
|
3818
|
+
return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (c - o) * a)}, ${Math.round(
|
|
3820
3819
|
l + (m - l) * a
|
|
3821
3820
|
)})`;
|
|
3822
3821
|
}
|
|
@@ -3827,25 +3826,25 @@ function Sa(e) {
|
|
|
3827
3826
|
return e === "dragging";
|
|
3828
3827
|
}
|
|
3829
3828
|
function yr(e) {
|
|
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),
|
|
3831
|
-
if (s ? (
|
|
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), c = B.useRef("idle"), m = B.useRef(t.currentColSpan), h = Sa(t.state);
|
|
3830
|
+
if (s ? (c.current = "settled", m.current = t.currentColSpan, u.current = t.currentColSpan) : h ? c.current = t.currentColSpan !== u.current ? "incoming" : "outgoing" : (t.currentColSpan !== u.current && (m.current = t.currentColSpan, u.current = t.currentColSpan), c.current !== "idle" && (c.current = "settled")), !h)
|
|
3832
3831
|
return l.current.armed = !0, l.current.lastResult = null, {
|
|
3833
3832
|
trackingOutline: null,
|
|
3834
3833
|
cellTints: [],
|
|
3835
3834
|
refusePulse: null,
|
|
3836
3835
|
shrinkFreedCells: [],
|
|
3837
|
-
phase:
|
|
3836
|
+
phase: c.current,
|
|
3838
3837
|
displayColSpan: m.current
|
|
3839
3838
|
};
|
|
3840
|
-
const
|
|
3841
|
-
y || (o.current =
|
|
3842
|
-
const k = y ? o.current :
|
|
3839
|
+
const d = t.hysteresisTargetColSpan, g = t.previewColSpan, y = a?.result === "rejected";
|
|
3840
|
+
y || (o.current = d), y && l.current.armed && l.current.lastResult !== "rejected" && (l.current.fireKey += 1, l.current.armed = !1), l.current.lastResult = y ? "rejected" : "ok";
|
|
3841
|
+
const k = y ? o.current : d, f = {
|
|
3843
3842
|
cell: { section: 0, col: 0, row: 0 },
|
|
3844
3843
|
colSpan: k,
|
|
3845
3844
|
pattern: y ? "dashed-retreated" : "solid"
|
|
3846
3845
|
}, b = [];
|
|
3847
3846
|
if (y) {
|
|
3848
|
-
const S = n.col + o.current, R = n.col +
|
|
3847
|
+
const S = n.col + o.current, R = n.col + d - 1;
|
|
3849
3848
|
for (let p = S; p <= R && p <= 2; p++)
|
|
3850
3849
|
b.push({
|
|
3851
3850
|
cell: {
|
|
@@ -3856,15 +3855,15 @@ function yr(e) {
|
|
|
3856
3855
|
variant: "rejection"
|
|
3857
3856
|
});
|
|
3858
3857
|
} else {
|
|
3859
|
-
const S = Math.abs(g -
|
|
3860
|
-
for (let p = n.col; p < n.col +
|
|
3858
|
+
const S = Math.abs(g - d), R = Math.max(0, Math.min(1, 1 - S));
|
|
3859
|
+
for (let p = n.col; p < n.col + d && p <= 2; p++) {
|
|
3861
3860
|
if (p === n.col) continue;
|
|
3862
|
-
const v = p === n.col +
|
|
3861
|
+
const v = p === n.col + d - 1, _ = {
|
|
3863
3862
|
section: 0,
|
|
3864
3863
|
col: p - n.col,
|
|
3865
3864
|
row: 0
|
|
3866
3865
|
};
|
|
3867
|
-
v && t.direction.startsWith("grow") &&
|
|
3866
|
+
v && t.direction.startsWith("grow") && d > 1 && !s && S > 0 && S < 1 ? b.push({
|
|
3868
3867
|
cell: _,
|
|
3869
3868
|
variant: "ramp",
|
|
3870
3869
|
rampColor: Ca(Me.eligibilityFill, Me.commitFill, R)
|
|
@@ -3872,8 +3871,8 @@ function yr(e) {
|
|
|
3872
3871
|
}
|
|
3873
3872
|
}
|
|
3874
3873
|
const M = [];
|
|
3875
|
-
if (t.currentColSpan >
|
|
3876
|
-
for (let S = n.col +
|
|
3874
|
+
if (t.currentColSpan > d)
|
|
3875
|
+
for (let S = n.col + d; S < n.col + t.currentColSpan && S <= 2; S++)
|
|
3877
3876
|
M.push({
|
|
3878
3877
|
section: 0,
|
|
3879
3878
|
col: S - n.col,
|
|
@@ -3894,7 +3893,7 @@ function yr(e) {
|
|
|
3894
3893
|
cellTints: b,
|
|
3895
3894
|
refusePulse: N,
|
|
3896
3895
|
shrinkFreedCells: M,
|
|
3897
|
-
phase:
|
|
3896
|
+
phase: c.current,
|
|
3898
3897
|
displayColSpan: m.current
|
|
3899
3898
|
};
|
|
3900
3899
|
}
|
|
@@ -3922,9 +3921,9 @@ function ka({
|
|
|
3922
3921
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3923
3922
|
);
|
|
3924
3923
|
}, [a, i]), F.useLayoutEffect(() => {
|
|
3925
|
-
let
|
|
3926
|
-
if (a ?
|
|
3927
|
-
const m =
|
|
3924
|
+
let c = null;
|
|
3925
|
+
if (a ? c = a : i && (c = document.querySelector(i)), c) {
|
|
3926
|
+
const m = c.getBoundingClientRect();
|
|
3928
3927
|
o({
|
|
3929
3928
|
top: m.bottom + window.scrollY + 6,
|
|
3930
3929
|
left: m.left + window.scrollX
|
|
@@ -3998,10 +3997,10 @@ function Ta({
|
|
|
3998
3997
|
), 0.01) : i, l = C(
|
|
3999
3998
|
(p) => Math.round(p / o) * o,
|
|
4000
3999
|
[o]
|
|
4001
|
-
), u = P(null), [
|
|
4000
|
+
), u = P(null), [c, m] = E(null), [h, d] = E(e), g = xa(e), y = P(g);
|
|
4002
4001
|
A(() => {
|
|
4003
|
-
y.current !== g && (y.current = g, !
|
|
4004
|
-
}, [g, e,
|
|
4002
|
+
y.current !== g && (y.current = g, !c && d(e));
|
|
4003
|
+
}, [g, e, c]);
|
|
4005
4004
|
const k = re(() => Da(h, n, a), [h, n, a]), f = C(
|
|
4006
4005
|
(p) => {
|
|
4007
4006
|
if (!u.current) return n;
|
|
@@ -4025,22 +4024,22 @@ function Ta({
|
|
|
4025
4024
|
M.current = h;
|
|
4026
4025
|
const N = P(t);
|
|
4027
4026
|
N.current = t, A(() => {
|
|
4028
|
-
if (!
|
|
4027
|
+
if (!c) return;
|
|
4029
4028
|
const p = (_) => {
|
|
4030
4029
|
const D = f(_.clientX);
|
|
4031
|
-
|
|
4032
|
-
(T) => T.map((x) => x.id ===
|
|
4030
|
+
d(
|
|
4031
|
+
(T) => T.map((x) => x.id === c ? { ...x, value: D } : x)
|
|
4033
4032
|
);
|
|
4034
4033
|
}, v = (_) => {
|
|
4035
4034
|
const D = f(_.clientX), T = M.current.map(
|
|
4036
|
-
(x) => x.id ===
|
|
4035
|
+
(x) => x.id === c ? { ...x, value: D } : x
|
|
4037
4036
|
);
|
|
4038
|
-
|
|
4037
|
+
d(T), m(null), N.current(T);
|
|
4039
4038
|
};
|
|
4040
4039
|
return window.addEventListener("pointermove", p), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
4041
4040
|
window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
4042
4041
|
};
|
|
4043
|
-
}, [
|
|
4042
|
+
}, [c, f]);
|
|
4044
4043
|
const S = a - n > 0 ? a - n : 1, R = C(
|
|
4045
4044
|
(p, v) => {
|
|
4046
4045
|
if (s || v.disabled) return;
|
|
@@ -4072,7 +4071,7 @@ function Ta({
|
|
|
4072
4071
|
const L = h.map(
|
|
4073
4072
|
(Z) => Z.id === v.id ? { ...Z, value: I } : Z
|
|
4074
4073
|
);
|
|
4075
|
-
|
|
4074
|
+
d(L), t(L);
|
|
4076
4075
|
},
|
|
4077
4076
|
[s, n, a, h, t, l]
|
|
4078
4077
|
);
|
|
@@ -4093,7 +4092,7 @@ function Ta({
|
|
|
4093
4092
|
color: pe(p)
|
|
4094
4093
|
},
|
|
4095
4094
|
"data-disabled": p.disabled || void 0,
|
|
4096
|
-
"data-dragging":
|
|
4095
|
+
"data-dragging": c === p.id || void 0,
|
|
4097
4096
|
onPointerDown: (_) => b(_, p.id),
|
|
4098
4097
|
onKeyDown: (_) => R(_, p),
|
|
4099
4098
|
"aria-label": p.label ?? `Stop at ${p.value}`,
|
|
@@ -4119,15 +4118,15 @@ function Ma({ option: e }) {
|
|
|
4119
4118
|
const t = Ra(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = C(() => {
|
|
4120
4119
|
a || t?.select(e.value);
|
|
4121
4120
|
}, [a, t, e.value]), s = C(
|
|
4122
|
-
(
|
|
4123
|
-
a || t?.onKeyNav(
|
|
4121
|
+
(c) => {
|
|
4122
|
+
a || t?.onKeyNav(c, e.value);
|
|
4124
4123
|
},
|
|
4125
4124
|
[a, t, e.value]
|
|
4126
4125
|
), 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;
|
|
4127
4126
|
return /* @__PURE__ */ r(
|
|
4128
4127
|
"button",
|
|
4129
4128
|
{
|
|
4130
|
-
ref: (
|
|
4129
|
+
ref: (c) => t?.registerRef(e.value, c),
|
|
4131
4130
|
type: "button",
|
|
4132
4131
|
role: "radio",
|
|
4133
4132
|
"aria-checked": n,
|
|
@@ -4153,18 +4152,18 @@ function Pa({
|
|
|
4153
4152
|
disabled: i = !1,
|
|
4154
4153
|
name: s
|
|
4155
4154
|
}) {
|
|
4156
|
-
const o = t !== void 0, [l, u] = E(n),
|
|
4155
|
+
const o = t !== void 0, [l, u] = E(n), c = o ? t : l, m = C(
|
|
4157
4156
|
(N) => {
|
|
4158
4157
|
o || u(N), a?.(N);
|
|
4159
4158
|
},
|
|
4160
4159
|
[o, a]
|
|
4161
4160
|
), h = C(
|
|
4162
|
-
(N) =>
|
|
4163
|
-
[
|
|
4164
|
-
),
|
|
4165
|
-
S ?
|
|
4166
|
-
}, []), y = e.filter((N) => !N.disabled && !i), k = y.find((N) => N.value ===
|
|
4167
|
-
const S =
|
|
4161
|
+
(N) => c === N,
|
|
4162
|
+
[c]
|
|
4163
|
+
), d = P(/* @__PURE__ */ new Map()), g = C((N, S) => {
|
|
4164
|
+
S ? d.current.set(N, S) : d.current.delete(N);
|
|
4165
|
+
}, []), y = e.filter((N) => !N.disabled && !i), k = y.find((N) => N.value === c)?.value ?? y[0]?.value, f = C((N) => {
|
|
4166
|
+
const S = d.current.get(N);
|
|
4168
4167
|
S && S.focus();
|
|
4169
4168
|
}, []), b = C(
|
|
4170
4169
|
(N, S) => {
|
|
@@ -4202,7 +4201,7 @@ function Pa({
|
|
|
4202
4201
|
},
|
|
4203
4202
|
[i, e, m, f]
|
|
4204
4203
|
), M = {
|
|
4205
|
-
selectedValue:
|
|
4204
|
+
selectedValue: c,
|
|
4206
4205
|
select: m,
|
|
4207
4206
|
isSelected: h,
|
|
4208
4207
|
groupDisabled: i,
|
|
@@ -4248,17 +4247,17 @@ function Aa(e) {
|
|
|
4248
4247
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4249
4248
|
), [a, i] = E(null), [s, o] = E(null), l = P(null), u = P(e.onZoneChange);
|
|
4250
4249
|
u.current = e.onZoneChange;
|
|
4251
|
-
const
|
|
4250
|
+
const c = re(
|
|
4252
4251
|
() => Ea(e.zones),
|
|
4253
4252
|
[e.zones]
|
|
4254
|
-
), m = P(
|
|
4253
|
+
), m = P(c);
|
|
4255
4254
|
A(() => {
|
|
4256
|
-
m.current !==
|
|
4255
|
+
m.current !== c && (m.current = c, !a && n(
|
|
4257
4256
|
e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4258
4257
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
4259
4258
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4260
4259
|
));
|
|
4261
|
-
}, [
|
|
4260
|
+
}, [c, e.zones, a]);
|
|
4262
4261
|
const h = C(
|
|
4263
4262
|
(f) => {
|
|
4264
4263
|
const b = f.active.id;
|
|
@@ -4273,7 +4272,7 @@ function Aa(e) {
|
|
|
4273
4272
|
l.current = N, i(M), o(N);
|
|
4274
4273
|
},
|
|
4275
4274
|
[t]
|
|
4276
|
-
),
|
|
4275
|
+
), d = C(
|
|
4277
4276
|
(f) => {
|
|
4278
4277
|
if (!f.over) {
|
|
4279
4278
|
o(l.current);
|
|
@@ -4350,7 +4349,7 @@ function Aa(e) {
|
|
|
4350
4349
|
getZoneProps: y,
|
|
4351
4350
|
getItemProps: k,
|
|
4352
4351
|
handleDragStart: h,
|
|
4353
|
-
handleDragOver:
|
|
4352
|
+
handleDragOver: d,
|
|
4354
4353
|
handleDragEnd: g
|
|
4355
4354
|
};
|
|
4356
4355
|
}
|
|
@@ -4404,11 +4403,11 @@ function za(e) {
|
|
|
4404
4403
|
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = Aa({ zones: t, onZoneChange: n }), [l, u] = F.useState(Q);
|
|
4405
4404
|
return F.useEffect(() => {
|
|
4406
4405
|
if (l) return;
|
|
4407
|
-
let
|
|
4406
|
+
let c = !0;
|
|
4408
4407
|
return $a().then((m) => {
|
|
4409
|
-
|
|
4408
|
+
c && u(m);
|
|
4410
4409
|
}), () => {
|
|
4411
|
-
|
|
4410
|
+
c = !1;
|
|
4412
4411
|
};
|
|
4413
4412
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
4414
4413
|
Ve,
|
|
@@ -4419,9 +4418,9 @@ function za(e) {
|
|
|
4419
4418
|
renderItem: i,
|
|
4420
4419
|
renderDragOverlay: s
|
|
4421
4420
|
}
|
|
4422
|
-
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((
|
|
4423
|
-
const m =
|
|
4424
|
-
return /* @__PURE__ */ r("div", { ...o.getZoneProps(
|
|
4421
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((c) => {
|
|
4422
|
+
const m = c.items.map((h) => /* @__PURE__ */ r(F.Fragment, { children: i(h) }, h.id));
|
|
4423
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(c.zoneKey), children: a(c.zoneKey, c.items, m) }, c.zoneKey);
|
|
4425
4424
|
}) });
|
|
4426
4425
|
}
|
|
4427
4426
|
za.displayName = "SortableZones";
|
|
@@ -4432,10 +4431,10 @@ function Ve({
|
|
|
4432
4431
|
renderItem: a,
|
|
4433
4432
|
renderDragOverlay: i
|
|
4434
4433
|
}) {
|
|
4435
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay:
|
|
4434
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: c, useSensors: m, useSensor: h, useDroppable: d, PointerSensor: g, KeyboardSensor: y, closestCenter: k } = s, { SortableContext: f, verticalListSortingStrategy: b } = o, M = m(
|
|
4436
4435
|
h(g, { activationConstraint: { distance: 5 } }),
|
|
4437
4436
|
h(y)
|
|
4438
|
-
), N = u, S =
|
|
4437
|
+
), N = u, S = c, R = f;
|
|
4439
4438
|
return /* @__PURE__ */ w(
|
|
4440
4439
|
N,
|
|
4441
4440
|
{
|
|
@@ -4461,7 +4460,7 @@ function Ve({
|
|
|
4461
4460
|
{
|
|
4462
4461
|
zoneKey: p.zoneKey,
|
|
4463
4462
|
zoneProps: e.getZoneProps(p.zoneKey),
|
|
4464
|
-
useDroppable:
|
|
4463
|
+
useDroppable: d,
|
|
4465
4464
|
children: /* @__PURE__ */ r(R, { items: v, strategy: b, children: n(p.zoneKey, p.items, _) })
|
|
4466
4465
|
},
|
|
4467
4466
|
p.zoneKey
|
|
@@ -4474,10 +4473,10 @@ function Ve({
|
|
|
4474
4473
|
}
|
|
4475
4474
|
Ve.displayName = "SortableZonesInner";
|
|
4476
4475
|
function je({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
4477
|
-
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging:
|
|
4476
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging: c } = t({ id: e }), m = {
|
|
4478
4477
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
4479
4478
|
transition: u,
|
|
4480
|
-
opacity:
|
|
4479
|
+
opacity: c ? 0.5 : 1
|
|
4481
4480
|
};
|
|
4482
4481
|
return /* @__PURE__ */ r("div", { ref: o, style: m, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
4483
4482
|
}
|
|
@@ -4553,17 +4552,17 @@ function _r({
|
|
|
4553
4552
|
currentSection: l,
|
|
4554
4553
|
sectionsPerView: u = 1,
|
|
4555
4554
|
// D-09 default
|
|
4556
|
-
isHiding:
|
|
4555
|
+
isHiding: c
|
|
4557
4556
|
}) {
|
|
4558
|
-
const m = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, m)),
|
|
4559
|
-
return y.current.length = e, !
|
|
4557
|
+
const m = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, m)), d = Math.min(e - 1, h + Math.max(0, u - 1)), g = [h, d], y = B.useRef([]);
|
|
4558
|
+
return y.current.length = e, !c && e <= 1 || !c && g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ w(
|
|
4560
4559
|
"div",
|
|
4561
4560
|
{
|
|
4562
4561
|
role: "tablist",
|
|
4563
4562
|
"aria-label": a,
|
|
4564
4563
|
"data-testid": "gloss-section-dots",
|
|
4565
4564
|
className: "gloss-section-dots",
|
|
4566
|
-
"data-hiding":
|
|
4565
|
+
"data-hiding": c ? "true" : void 0,
|
|
4567
4566
|
onKeyDown: (f) => {
|
|
4568
4567
|
if (e !== 0) {
|
|
4569
4568
|
if (f.key === "ArrowRight") {
|