@mt-gloss/ui 0.1.60 → 0.1.61
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/{Expandable-DUqxHhFA.js → Expandable-DyUAv0HO.js} +605 -588
- package/catalog.js +2 -2
- package/index.js +811 -814
- package/lib/primitives/dashboard/EmptyCellPackAffordance/EmptyCellPackAffordance.d.ts +7 -7
- package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +13 -0
- package/lib/primitives/dashboard/hooks/useAffordanceVisibility.d.ts +1 -24
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { Q as
|
|
1
|
+
import { u as rt, C as Dt } from "./Expandable-DyUAv0HO.js";
|
|
2
|
+
import { Q as Hr, V as Ur, T as Zr, U as Yr, a5 as qr, b8 as Qr, aB as Xr, aj as Jr, $ as es, ap as ts, N as as, aa as ns, bo as rs, P as ss, B as is, a as os, A as ls, K as cs, bj as ds, J as us, L as ms, E as gs, D as ps, H as fs, F as hs, by as bs, b as vs, c as ys, O as ws, q as _s, af as Ns, aP as Ds, A as ks, K as Cs, J as Ss, L as xs, E as Rs, D as Ms, H as Ts, F as Is, b1 as Es, b4 as Ps, b3 as Fs, b2 as As, b5 as Os, aE as Ls, a7 as $s, a6 as Bs, as as Ks, m as zs, o as Ws, aH as js, ad as Gs, ba as Vs, ab as Hs, bp as Us, _ as Zs, bI as Ys, bH as qs, bJ as Qs, ar as Xs, aS as Js, bc as ei, bN as ti, bw as ai, p as ni, ao as ri, bC as si, bt as ii, a2 as oi, at as li, a4 as ci, bB as di, bS as ui, G as mi, f as gi, ac as pi, bK as fi, aV as hi, t as bi, x as vi, I as yi, i as wi, ay as _i, bO as Ni, M as Di, y as ki, W as Ci, Z as Si, X as xi, Y as Ri, au as Mi, bi as Ti, bQ as Ii, bM as Ei, aq as Pi, w as Fi, bq as Ai, aU as Oi, al as Li, aM as $i, ai as Bi, an as Ki, aw as zi, aT as Wi, ae as ji, av as Gi, e as Vi, R as Hi, l as Ui, r as Zi, aJ as Yi, bz as qi, bA as Qi, ak as Xi, ag as Ji, j as eo, z as to, b9 as ao, ah as no, bP as ro, be as so, bh as io, bf as oo, bg as lo, k as co, bb as uo, bn as mo, S as go, bl as po, bm as fo, ax as ho, bd as bo, bR as vo, am as yo, v as wo, bL as _o, n as No, h as Do, s as ko, a0 as Co, a1 as So, a9 as xo, bk as Ro, bx as Mo, bE as To, aC as Io, aD as Eo, a8 as Po, aQ as Fo, aR as Ao, aF as Oo, aG as Lo, aI as $o, aX as Bo, aY as Ko, br as zo, bG as Wo, bF as jo, a_ as Go, a$ as Vo, az as Ho, aA as Uo, b7 as Zo, b6 as Yo, b0 as qo, aN as Qo, aO as Xo, aZ as Jo, aK as el, aL as tl, d as al, bD as nl, bs as rl, bu as sl, bv as il, aW as ol, a3 as ll, bT as cl, g as dl } from "./Expandable-DyUAv0HO.js";
|
|
3
3
|
import { jsxs as k, jsx as r, Fragment as te } from "react/jsx-runtime";
|
|
4
4
|
import * as ce from "react";
|
|
5
5
|
import V, { useRef as E, useEffect as O, useState as $, useCallback as N, useId as kt, forwardRef as Ct, useMemo as Ne, createContext as St, useContext as xt } from "react";
|
|
@@ -34,66 +34,66 @@ function xn(e) {
|
|
|
34
34
|
orientation: s = "vertical",
|
|
35
35
|
enabled: o = !0,
|
|
36
36
|
isItemDisabled: l,
|
|
37
|
-
onSelect:
|
|
38
|
-
onEscape:
|
|
39
|
-
} = e, [h,
|
|
40
|
-
(
|
|
41
|
-
n === void 0 &&
|
|
37
|
+
onSelect: m,
|
|
38
|
+
onEscape: d
|
|
39
|
+
} = e, [h, p] = $(-1), g = n !== void 0 ? n : h, u = N(
|
|
40
|
+
(f) => {
|
|
41
|
+
n === void 0 && p(f), a?.(f);
|
|
42
42
|
},
|
|
43
43
|
[n, a]
|
|
44
|
-
),
|
|
45
|
-
(
|
|
46
|
-
const D =
|
|
44
|
+
), w = N(() => t.map((f, b) => ({ item: f, index: b })).filter(({ item: f, index: b }) => !l?.(f, b)).map(({ index: f }) => f), [t, l]), _ = N(
|
|
45
|
+
(f, b) => {
|
|
46
|
+
const D = w();
|
|
47
47
|
if (D.length === 0) return -1;
|
|
48
|
-
const T = D.indexOf(
|
|
48
|
+
const T = D.indexOf(f);
|
|
49
49
|
if (T === -1)
|
|
50
|
-
return
|
|
51
|
-
let
|
|
52
|
-
return i ?
|
|
50
|
+
return b === 1 ? D.find((x) => x > f) ?? (i ? D[0] : -1) : [...D].reverse().find((P) => P < f) ?? (i ? D[D.length - 1] : -1);
|
|
51
|
+
let y = T + b;
|
|
52
|
+
return i ? y = (y + D.length) % D.length : y = Math.max(0, Math.min(D.length - 1, y)), D[y];
|
|
53
53
|
},
|
|
54
|
-
[
|
|
55
|
-
),
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}, [g,
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
}, [g,
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
(
|
|
54
|
+
[w, i]
|
|
55
|
+
), c = N(() => {
|
|
56
|
+
const f = w();
|
|
57
|
+
f.length > 0 && u(f[0]);
|
|
58
|
+
}, [w, u]), R = N(() => {
|
|
59
|
+
const f = w();
|
|
60
|
+
f.length > 0 && u(f[f.length - 1]);
|
|
61
|
+
}, [w, u]), I = N(() => {
|
|
62
|
+
const f = _(g, 1);
|
|
63
|
+
f !== -1 && u(f);
|
|
64
|
+
}, [g, _, u]), v = N(() => {
|
|
65
|
+
const f = _(g, -1);
|
|
66
|
+
f !== -1 && u(f);
|
|
67
|
+
}, [g, _, u]), M = N(() => {
|
|
68
|
+
u(-1);
|
|
69
|
+
}, [u]), S = N(
|
|
70
|
+
(f) => {
|
|
71
71
|
if (!o) return;
|
|
72
|
-
const { key:
|
|
73
|
-
if (D ||
|
|
74
|
-
|
|
72
|
+
const { key: b } = f, D = b === "ArrowUp" && (s === "vertical" || s === "both"), T = b === "ArrowDown" && (s === "vertical" || s === "both"), y = b === "ArrowLeft" && (s === "horizontal" || s === "both"), x = b === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
73
|
+
if (D || y) {
|
|
74
|
+
f.preventDefault(), g === -1 ? R() : v();
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
if (T || x) {
|
|
78
|
-
|
|
78
|
+
f.preventDefault(), g === -1 ? c() : I();
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
if (
|
|
82
|
-
|
|
81
|
+
if (b === "Home") {
|
|
82
|
+
f.preventDefault(), c();
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (b === "End") {
|
|
86
|
+
f.preventDefault(), R();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
if ((
|
|
90
|
-
|
|
89
|
+
if ((b === "Enter" || b === " ") && g >= 0 && g < t.length) {
|
|
90
|
+
f.preventDefault();
|
|
91
91
|
const P = t[g];
|
|
92
|
-
l?.(P, g) ||
|
|
92
|
+
l?.(P, g) || m?.(P, g);
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
if (
|
|
96
|
-
|
|
95
|
+
if (b === "Escape") {
|
|
96
|
+
d?.();
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
},
|
|
@@ -102,23 +102,23 @@ function xn(e) {
|
|
|
102
102
|
s,
|
|
103
103
|
g,
|
|
104
104
|
t,
|
|
105
|
-
|
|
105
|
+
c,
|
|
106
106
|
R,
|
|
107
107
|
I,
|
|
108
|
-
|
|
108
|
+
v,
|
|
109
109
|
l,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
m,
|
|
111
|
+
d
|
|
112
112
|
]
|
|
113
113
|
);
|
|
114
114
|
return {
|
|
115
115
|
focusedIndex: g,
|
|
116
|
-
setFocusedIndex:
|
|
116
|
+
setFocusedIndex: u,
|
|
117
117
|
handleKeyDown: S,
|
|
118
|
-
focusFirst:
|
|
118
|
+
focusFirst: c,
|
|
119
119
|
focusLast: R,
|
|
120
120
|
focusNext: I,
|
|
121
|
-
focusPrevious:
|
|
121
|
+
focusPrevious: v,
|
|
122
122
|
resetFocus: M
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -130,24 +130,24 @@ const $t = ({
|
|
|
130
130
|
onSkip: i,
|
|
131
131
|
hint: s
|
|
132
132
|
}) => {
|
|
133
|
-
const [o, l] = $(n != null ? String(n) : ""),
|
|
134
|
-
const
|
|
135
|
-
Number.isNaN(
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
}, h = kt(),
|
|
133
|
+
const [o, l] = $(n != null ? String(n) : ""), m = () => {
|
|
134
|
+
const u = parseFloat(o);
|
|
135
|
+
Number.isNaN(u) || a(u);
|
|
136
|
+
}, d = (u) => {
|
|
137
|
+
u.key === "Enter" ? (u.preventDefault(), m()) : u.key === "Escape" && (u.preventDefault(), i?.());
|
|
138
|
+
}, h = kt(), p = `gloss-target-input-field-${h}`, g = s ? `gloss-target-input-hint-${h}` : void 0;
|
|
139
139
|
return /* @__PURE__ */ k("div", { className: "gloss-target-input", children: [
|
|
140
|
-
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor:
|
|
140
|
+
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: p, children: e }),
|
|
141
141
|
/* @__PURE__ */ k("div", { className: "gloss-target-input__field-row", children: [
|
|
142
142
|
/* @__PURE__ */ r(
|
|
143
143
|
"input",
|
|
144
144
|
{
|
|
145
|
-
id:
|
|
145
|
+
id: p,
|
|
146
146
|
type: "number",
|
|
147
147
|
className: "gloss-target-input__field",
|
|
148
148
|
value: o,
|
|
149
|
-
onChange: (
|
|
150
|
-
onKeyDown:
|
|
149
|
+
onChange: (u) => l(u.target.value),
|
|
150
|
+
onKeyDown: d,
|
|
151
151
|
"aria-describedby": g,
|
|
152
152
|
autoFocus: !0
|
|
153
153
|
}
|
|
@@ -161,7 +161,7 @@ const $t = ({
|
|
|
161
161
|
{
|
|
162
162
|
type: "button",
|
|
163
163
|
className: "gloss-target-input__confirm",
|
|
164
|
-
onClick:
|
|
164
|
+
onClick: m,
|
|
165
165
|
children: "Confirm"
|
|
166
166
|
}
|
|
167
167
|
),
|
|
@@ -295,32 +295,32 @@ function Vt({
|
|
|
295
295
|
overflowActions: s,
|
|
296
296
|
onClose: o
|
|
297
297
|
}) {
|
|
298
|
-
const [l,
|
|
298
|
+
const [l, m] = $(null), d = E(null), h = N(() => {
|
|
299
299
|
if (!t) return { ...Ye, top: 0, left: 0 };
|
|
300
|
-
const
|
|
300
|
+
const u = t.getBoundingClientRect();
|
|
301
301
|
return {
|
|
302
302
|
...Ye,
|
|
303
|
-
top:
|
|
304
|
-
left:
|
|
303
|
+
top: u.bottom + 4,
|
|
304
|
+
left: u.left
|
|
305
305
|
};
|
|
306
306
|
}, [t]);
|
|
307
307
|
if (O(() => {
|
|
308
308
|
if (!e) return;
|
|
309
|
-
const
|
|
310
|
-
|
|
309
|
+
const u = (w) => {
|
|
310
|
+
w.key === "Escape" && o();
|
|
311
311
|
};
|
|
312
|
-
return document.addEventListener("keydown",
|
|
312
|
+
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
313
313
|
}, [e, o]), O(() => {
|
|
314
314
|
if (!e) return;
|
|
315
|
-
const
|
|
316
|
-
|
|
315
|
+
const u = (w) => {
|
|
316
|
+
d.current && !d.current.contains(w.target) && o();
|
|
317
317
|
};
|
|
318
|
-
return document.addEventListener("pointerdown",
|
|
318
|
+
return document.addEventListener("pointerdown", u, !0), () => document.removeEventListener("pointerdown", u, !0);
|
|
319
319
|
}, [e, o]), !e) return null;
|
|
320
|
-
const
|
|
320
|
+
const p = s && s.length > 0, g = /* @__PURE__ */ k(
|
|
321
321
|
"div",
|
|
322
322
|
{
|
|
323
|
-
ref:
|
|
323
|
+
ref: d,
|
|
324
324
|
"data-status-chip-menu": n,
|
|
325
325
|
role: "menu",
|
|
326
326
|
"aria-label": "Status actions",
|
|
@@ -331,8 +331,8 @@ function Vt({
|
|
|
331
331
|
{
|
|
332
332
|
role: "menuitem",
|
|
333
333
|
style: jt(l === "__primary"),
|
|
334
|
-
onMouseEnter: () =>
|
|
335
|
-
onMouseLeave: () =>
|
|
334
|
+
onMouseEnter: () => m("__primary"),
|
|
335
|
+
onMouseLeave: () => m(null),
|
|
336
336
|
onClick: () => {
|
|
337
337
|
a(n), o();
|
|
338
338
|
},
|
|
@@ -344,28 +344,28 @@ function Vt({
|
|
|
344
344
|
{
|
|
345
345
|
role: "menuitem",
|
|
346
346
|
style: Ae(l === "__graph"),
|
|
347
|
-
onMouseEnter: () =>
|
|
348
|
-
onMouseLeave: () =>
|
|
347
|
+
onMouseEnter: () => m("__graph"),
|
|
348
|
+
onMouseLeave: () => m(null),
|
|
349
349
|
onClick: () => {
|
|
350
350
|
i(n), o();
|
|
351
351
|
},
|
|
352
352
|
children: "Show on graph"
|
|
353
353
|
}
|
|
354
354
|
),
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
p && /* @__PURE__ */ r("div", { style: Gt }),
|
|
356
|
+
p && s?.map((u) => /* @__PURE__ */ r(
|
|
357
357
|
"button",
|
|
358
358
|
{
|
|
359
359
|
role: "menuitem",
|
|
360
|
-
style: Ae(l ===
|
|
361
|
-
onMouseEnter: () => u
|
|
362
|
-
onMouseLeave: () =>
|
|
360
|
+
style: Ae(l === u.id),
|
|
361
|
+
onMouseEnter: () => m(u.id),
|
|
362
|
+
onMouseLeave: () => m(null),
|
|
363
363
|
onClick: () => {
|
|
364
|
-
|
|
364
|
+
u.onSelect(n), o();
|
|
365
365
|
},
|
|
366
|
-
children:
|
|
366
|
+
children: u.label
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
u.id
|
|
369
369
|
))
|
|
370
370
|
]
|
|
371
371
|
}
|
|
@@ -413,7 +413,7 @@ const le = {
|
|
|
413
413
|
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
414
414
|
provisionalWash: "var(--gloss-provisional-wash)"
|
|
415
415
|
};
|
|
416
|
-
function
|
|
416
|
+
function st() {
|
|
417
417
|
if (typeof window > "u") return "full";
|
|
418
418
|
try {
|
|
419
419
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
@@ -446,42 +446,42 @@ const Oe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
|
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
448
|
}, Ht = Ct(
|
|
449
|
-
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge:
|
|
450
|
-
const
|
|
449
|
+
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: m = "right", ariaLabel: d = "Resize card" }, h) {
|
|
450
|
+
const { affordancesVisible: p } = rt(), g = t === "dragging" || t === "settling" || t === "handle-visible" && p, u = (c) => {
|
|
451
451
|
try {
|
|
452
|
-
|
|
452
|
+
c.currentTarget.setPointerCapture(c.pointerId);
|
|
453
453
|
} catch {
|
|
454
454
|
}
|
|
455
|
-
n(
|
|
456
|
-
},
|
|
455
|
+
n(c);
|
|
456
|
+
}, w = (c) => {
|
|
457
457
|
try {
|
|
458
|
-
|
|
458
|
+
c.currentTarget.hasPointerCapture?.(c.pointerId) && c.currentTarget.releasePointerCapture(c.pointerId);
|
|
459
459
|
} catch {
|
|
460
460
|
}
|
|
461
|
-
a(
|
|
462
|
-
}, _ = (
|
|
463
|
-
!
|
|
461
|
+
a(c);
|
|
462
|
+
}, _ = (c) => {
|
|
463
|
+
!g || !o || (c.key === "ArrowRight" ? (c.preventDefault(), o("grow")) : c.key === "ArrowLeft" && (c.preventDefault(), o("shrink")));
|
|
464
464
|
};
|
|
465
|
-
return /* @__PURE__ */ r(Oe, { visible:
|
|
465
|
+
return /* @__PURE__ */ r(Oe, { visible: g, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
|
|
466
466
|
"button",
|
|
467
467
|
{
|
|
468
468
|
ref: h,
|
|
469
469
|
type: "button",
|
|
470
|
-
"aria-label":
|
|
471
|
-
"data-edge":
|
|
470
|
+
"aria-label": d,
|
|
471
|
+
"data-edge": m,
|
|
472
472
|
"data-resize-state": t,
|
|
473
473
|
className: [
|
|
474
474
|
"gloss-edge-handle",
|
|
475
|
-
`gloss-edge-handle--${
|
|
476
|
-
|
|
475
|
+
`gloss-edge-handle--${m}`,
|
|
476
|
+
g ? "gloss-edge-handle--visible" : ""
|
|
477
477
|
].filter(Boolean).join(" "),
|
|
478
|
-
onPointerDown:
|
|
479
|
-
onPointerUp:
|
|
478
|
+
onPointerDown: u,
|
|
479
|
+
onPointerUp: w,
|
|
480
480
|
onPointerEnter: i,
|
|
481
481
|
onPointerLeave: s,
|
|
482
482
|
onLostPointerCapture: l,
|
|
483
483
|
onKeyDown: _,
|
|
484
|
-
tabIndex:
|
|
484
|
+
tabIndex: g ? 0 : -1
|
|
485
485
|
}
|
|
486
486
|
) });
|
|
487
487
|
}
|
|
@@ -550,14 +550,14 @@ class Zt {
|
|
|
550
550
|
const t = this.samples.length;
|
|
551
551
|
if (t < 2) return 0;
|
|
552
552
|
if (t === 2) {
|
|
553
|
-
const [
|
|
554
|
-
return (
|
|
553
|
+
const [m, d] = this.samples, h = Math.max(1, d.t - m.t);
|
|
554
|
+
return (d.x - m.x) / h * 1e3;
|
|
555
555
|
}
|
|
556
556
|
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;
|
|
557
557
|
return (s * 3 + o * 2 + l * 1) / 6;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const it = {
|
|
561
561
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
562
562
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
563
563
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -586,17 +586,17 @@ function jn({
|
|
|
586
586
|
gap: s = 0,
|
|
587
587
|
tuning: o,
|
|
588
588
|
dwellMs: l = 60,
|
|
589
|
-
graceExitMs:
|
|
590
|
-
enterMs:
|
|
589
|
+
graceExitMs: m = 150,
|
|
590
|
+
enterMs: d = 180,
|
|
591
591
|
exitMs: h = 120,
|
|
592
|
-
maxColSpan:
|
|
592
|
+
maxColSpan: p = 3,
|
|
593
593
|
containerRef: g,
|
|
594
|
-
forceIdle:
|
|
594
|
+
forceIdle: u
|
|
595
595
|
}) {
|
|
596
|
-
const [
|
|
596
|
+
const [w, _] = $("idle"), [c, R] = $(e), I = E(null), v = E(null), M = E(null), S = E(null), f = E(i), b = E(s), D = E(p), T = E(0), y = E("idle");
|
|
597
597
|
O(() => {
|
|
598
|
-
|
|
599
|
-
}, [
|
|
598
|
+
y.current = w;
|
|
599
|
+
}, [w]);
|
|
600
600
|
const x = Rt(0), P = E(null), H = N(() => {
|
|
601
601
|
const C = P.current;
|
|
602
602
|
if (C) {
|
|
@@ -608,37 +608,37 @@ function jn({
|
|
|
608
608
|
}
|
|
609
609
|
}, []), Y = N(
|
|
610
610
|
(C) => {
|
|
611
|
-
const F =
|
|
611
|
+
const F = f.current, A = b.current;
|
|
612
612
|
return C * F + (C - 1) * A;
|
|
613
613
|
},
|
|
614
614
|
[]
|
|
615
615
|
), U = E(new Zt()), j = E(e);
|
|
616
616
|
O(() => {
|
|
617
|
-
j.current =
|
|
618
|
-
}, [
|
|
619
|
-
const B = Ne(() => ({ ...
|
|
617
|
+
j.current = c;
|
|
618
|
+
}, [c]);
|
|
619
|
+
const B = Ne(() => ({ ...it, ...o ?? {} }), [o]), Z = N(() => {
|
|
620
620
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
621
621
|
}, []), L = N(() => {
|
|
622
|
-
|
|
622
|
+
v.current && (clearTimeout(v.current), v.current = null);
|
|
623
623
|
}, []), J = N(() => {
|
|
624
624
|
M.current && (clearTimeout(M.current), M.current = null);
|
|
625
625
|
}, []);
|
|
626
626
|
O(() => {
|
|
627
|
-
|
|
628
|
-
}, [
|
|
627
|
+
u && (y.current === "dragging" || y.current === "settling" || y.current !== "idle" && (Z(), L(), J(), y.current = "idle", _("idle")));
|
|
628
|
+
}, [w, u, Z, L, J]);
|
|
629
629
|
const We = N(() => {
|
|
630
|
-
L(),
|
|
630
|
+
L(), _((C) => C === "settling" || C !== "idle" ? C : (I.current = setTimeout(() => _("handle-visible"), l), "dwelling"));
|
|
631
631
|
}, [l, L]), je = N(() => {
|
|
632
632
|
Z();
|
|
633
|
-
const C =
|
|
634
|
-
C !== "dwelling" && C !== "handle-visible" || (
|
|
635
|
-
|
|
636
|
-
},
|
|
637
|
-
}, [Z,
|
|
633
|
+
const C = y.current;
|
|
634
|
+
C !== "dwelling" && C !== "handle-visible" || (v.current = setTimeout(() => {
|
|
635
|
+
y.current = "idle", _("idle");
|
|
636
|
+
}, m));
|
|
637
|
+
}, [Z, m]), de = N(
|
|
638
638
|
(C, F, A) => {
|
|
639
|
-
const K =
|
|
639
|
+
const K = f.current, ee = K * B.snapInFraction, q = K * B.snapOutFraction, z = F - A, G = Math.max(
|
|
640
640
|
A,
|
|
641
|
-
D.current ??
|
|
641
|
+
D.current ?? p
|
|
642
642
|
);
|
|
643
643
|
let W = z;
|
|
644
644
|
for (; A + W < G; ) {
|
|
@@ -654,27 +654,27 @@ function jn({
|
|
|
654
654
|
}
|
|
655
655
|
return Math.min(G, Math.max(1, A + W));
|
|
656
656
|
},
|
|
657
|
-
[B.snapInFraction, B.snapOutFraction,
|
|
658
|
-
),
|
|
657
|
+
[B.snapInFraction, B.snapOutFraction, p]
|
|
658
|
+
), vt = N(
|
|
659
659
|
(C) => {
|
|
660
|
-
if (
|
|
661
|
-
H(), S.current = C.clientX,
|
|
660
|
+
if (y.current !== "handle-visible") return;
|
|
661
|
+
H(), S.current = C.clientX, f.current = i, b.current = s, D.current = p;
|
|
662
662
|
const F = e * i + (e - 1) * s;
|
|
663
|
-
T.current = F, U.current.clear(), U.current.push({ x: C.clientX, t: performance.now() }), x.jump(F),
|
|
663
|
+
T.current = F, U.current.clear(), U.current.push({ x: C.clientX, t: performance.now() }), x.jump(F), y.current = "dragging", _("dragging");
|
|
664
664
|
},
|
|
665
|
-
[i, s,
|
|
665
|
+
[i, s, p, e, x, H]
|
|
666
666
|
), Ge = N(
|
|
667
|
-
(C) => C *
|
|
667
|
+
(C) => C * f.current + (C - 1) * b.current,
|
|
668
668
|
[]
|
|
669
669
|
), oe = N(
|
|
670
670
|
(C, F) => {
|
|
671
671
|
const A = Ge(C), K = C !== e;
|
|
672
672
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
673
|
-
x.jump(A), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), x.jump(0),
|
|
673
|
+
x.jump(A), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), x.jump(0), y.current = "idle", _("idle");
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
676
|
const q = U.current.getWeightedVelocity() * B.velocityMultiplier;
|
|
677
|
-
|
|
677
|
+
y.current = "settling", _("settling"), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), H(), P.current = Ue(x, A, {
|
|
678
678
|
...Ze,
|
|
679
679
|
stiffness: B.stiffness,
|
|
680
680
|
damping: B.damping,
|
|
@@ -685,64 +685,64 @@ function jn({
|
|
|
685
685
|
// preserves the spring's perceptual smoothness (ghost retract)
|
|
686
686
|
// while eliminating the stale-frame window.
|
|
687
687
|
onComplete: () => {
|
|
688
|
-
P.current = null, x.jump(0),
|
|
688
|
+
P.current = null, x.jump(0), y.current = "idle", _("idle");
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
},
|
|
692
692
|
[Ge, e, t, n, a, x, B, H]
|
|
693
|
-
),
|
|
693
|
+
), yt = N(
|
|
694
694
|
(C) => {
|
|
695
|
-
if (
|
|
696
|
-
const F = C.clientX - (S.current ?? C.clientX), A =
|
|
695
|
+
if (y.current !== "dragging") return;
|
|
696
|
+
const F = C.clientX - (S.current ?? C.clientX), A = f.current, ee = ((D.current ?? p) - e) * A, q = (1 - e) * A, z = Math.max(q, Math.min(ee, F));
|
|
697
697
|
U.current.push({ x: C.clientX, t: performance.now() });
|
|
698
698
|
const G = de(z, j.current, e), W = G > e ? "grow" : G < e ? "shrink" : null;
|
|
699
699
|
oe(G, W);
|
|
700
700
|
},
|
|
701
|
-
[de, e,
|
|
701
|
+
[de, e, p, oe]
|
|
702
702
|
), ue = N(() => {
|
|
703
|
-
if (Z(),
|
|
703
|
+
if (Z(), y.current === "dragging") {
|
|
704
704
|
const C = T.current;
|
|
705
705
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
706
|
-
x.jump(C), a?.(), x.jump(0),
|
|
706
|
+
x.jump(C), a?.(), x.jump(0), y.current = "idle", _("idle");
|
|
707
707
|
return;
|
|
708
708
|
}
|
|
709
709
|
const A = U.current.getWeightedVelocity();
|
|
710
|
-
|
|
710
|
+
y.current = "settling", _("settling"), H(), P.current = Ue(x, C, {
|
|
711
711
|
...Ze,
|
|
712
712
|
stiffness: B.stiffness,
|
|
713
713
|
damping: B.damping,
|
|
714
714
|
mass: B.mass,
|
|
715
715
|
velocity: A,
|
|
716
716
|
onComplete: () => {
|
|
717
|
-
P.current = null, a?.(), x.jump(0),
|
|
717
|
+
P.current = null, a?.(), x.jump(0), y.current = "idle", _("idle");
|
|
718
718
|
}
|
|
719
719
|
});
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
|
|
722
|
+
y.current === "handle-visible" && (a?.(), y.current = "cancelled", _("cancelled"));
|
|
723
723
|
}, [Z, x, a, B, H]);
|
|
724
724
|
O(() => {
|
|
725
|
-
if (
|
|
725
|
+
if (w !== "dragging" && w !== "handle-visible") return;
|
|
726
726
|
const C = (F) => {
|
|
727
727
|
F.key === "Escape" && ue();
|
|
728
728
|
};
|
|
729
729
|
return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
|
|
730
|
-
}, [
|
|
731
|
-
if (
|
|
730
|
+
}, [w, ue]), O(() => {
|
|
731
|
+
if (w !== "dragging") {
|
|
732
732
|
R(e);
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
735
|
const C = (z) => {
|
|
736
|
-
const G = z.clientX - (S.current ?? z.clientX), W = T.current, me = Y(1), ae = Y(
|
|
736
|
+
const G = z.clientX - (S.current ?? z.clientX), W = T.current, me = Y(1), ae = Y(p), De = W + G, He = Math.max(me, Math.min(ae, De));
|
|
737
737
|
x.set(He);
|
|
738
|
-
const ke =
|
|
738
|
+
const ke = f.current, Re = (p - e) * ke, Me = (1 - e) * ke, ge = Math.max(Me, Math.min(Re, G));
|
|
739
739
|
U.current.push({ x: z.clientX, t: performance.now() });
|
|
740
740
|
const pe = de(ge, j.current, e);
|
|
741
741
|
pe !== j.current && (j.current = pe, R(pe));
|
|
742
742
|
}, F = (z, G) => {
|
|
743
|
-
if (
|
|
743
|
+
if (y.current === "dragging")
|
|
744
744
|
if (z === "pointerup") {
|
|
745
|
-
const W = U.current.tail(), me = G?.clientX ?? W?.x ?? S.current ?? 0, ae = me - (S.current ?? me), De =
|
|
745
|
+
const W = U.current.tail(), me = G?.clientX ?? W?.x ?? S.current ?? 0, ae = me - (S.current ?? me), De = f.current, ke = ((D.current ?? p) - e) * De, Re = (1 - e) * De, Me = Math.max(Re, Math.min(ke, ae));
|
|
746
746
|
G && U.current.push({ x: G.clientX, t: performance.now() });
|
|
747
747
|
const ge = de(Me, j.current, e), pe = ge > e ? "grow" : ge < e ? "shrink" : null;
|
|
748
748
|
oe(ge, pe);
|
|
@@ -754,55 +754,55 @@ function jn({
|
|
|
754
754
|
return window.addEventListener("pointermove", C), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", K), window.addEventListener("blur", ee), document.addEventListener("visibilitychange", q), () => {
|
|
755
755
|
window.removeEventListener("pointermove", C), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", K), window.removeEventListener("blur", ee), document.removeEventListener("visibilitychange", q);
|
|
756
756
|
};
|
|
757
|
-
}, [
|
|
757
|
+
}, [w, e, x, de, p, Y, ue, oe]), O(() => () => {
|
|
758
758
|
Z(), L(), J();
|
|
759
759
|
}, [Z, L, J]), O(() => {
|
|
760
|
-
if (
|
|
761
|
-
const C = setTimeout(() =>
|
|
760
|
+
if (w !== "cancelled") return;
|
|
761
|
+
const C = setTimeout(() => _("idle"), h);
|
|
762
762
|
return () => clearTimeout(C);
|
|
763
|
-
}, [
|
|
764
|
-
const
|
|
763
|
+
}, [w, h]);
|
|
764
|
+
const wt = N(
|
|
765
765
|
(C) => {
|
|
766
|
-
if (
|
|
767
|
-
const A = Math.min(
|
|
766
|
+
if (y.current === "settling") return;
|
|
767
|
+
const A = Math.min(p, Math.max(1, e + (C === "grow" ? 1 : -1)));
|
|
768
768
|
if (A === e) return;
|
|
769
|
-
|
|
769
|
+
f.current = i, b.current = s, D.current = p, U.current.clear();
|
|
770
770
|
const K = e * i + (e - 1) * s;
|
|
771
771
|
T.current = K, x.jump(K), oe(A, C);
|
|
772
772
|
},
|
|
773
|
-
[e, i, s,
|
|
773
|
+
[e, i, s, p, x, oe]
|
|
774
774
|
), Ve = N(() => {
|
|
775
775
|
J(), M.current = setTimeout(() => {
|
|
776
|
-
|
|
776
|
+
y.current === "handle-visible" && (y.current = "idle", _("idle"));
|
|
777
777
|
}, 5e3);
|
|
778
|
-
}, [J]),
|
|
779
|
-
|
|
780
|
-
}, [Z, Ve]),
|
|
781
|
-
J(),
|
|
778
|
+
}, [J]), _t = N(() => {
|
|
779
|
+
y.current === "idle" && (Z(), y.current = "handle-visible", _("handle-visible"), Ve());
|
|
780
|
+
}, [Z, Ve]), Nt = N(() => {
|
|
781
|
+
J(), y.current === "handle-visible" && (y.current = "idle", _("idle"));
|
|
782
782
|
}, [J]);
|
|
783
783
|
return {
|
|
784
|
-
state:
|
|
784
|
+
state: w,
|
|
785
785
|
enterEdgeZone: We,
|
|
786
786
|
leaveEdgeZone: je,
|
|
787
787
|
handleProps: {
|
|
788
|
-
onPointerDown:
|
|
789
|
-
onPointerUp:
|
|
788
|
+
onPointerDown: vt,
|
|
789
|
+
onPointerUp: yt,
|
|
790
790
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
791
791
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
792
792
|
onPointerEnter: We,
|
|
793
793
|
onPointerLeave: je
|
|
794
794
|
},
|
|
795
|
-
previewColSpan:
|
|
795
|
+
previewColSpan: c,
|
|
796
796
|
ghostProps: {
|
|
797
|
-
visible:
|
|
798
|
-
targetColSpan:
|
|
797
|
+
visible: w === "dragging" || w === "settling",
|
|
798
|
+
targetColSpan: c,
|
|
799
799
|
ghostWidth: x,
|
|
800
|
-
enterMs:
|
|
800
|
+
enterMs: d,
|
|
801
801
|
exitMs: h
|
|
802
802
|
},
|
|
803
|
-
onKeyboardStep:
|
|
804
|
-
onTouchReveal:
|
|
805
|
-
onTouchDismiss:
|
|
803
|
+
onKeyboardStep: wt,
|
|
804
|
+
onTouchReveal: _t,
|
|
805
|
+
onTouchDismiss: Nt,
|
|
806
806
|
cancel: ue
|
|
807
807
|
};
|
|
808
808
|
}
|
|
@@ -1106,7 +1106,7 @@ const Vn = [
|
|
|
1106
1106
|
trend: { value: 0, direction: "flat" },
|
|
1107
1107
|
subtitle: "QTD"
|
|
1108
1108
|
};
|
|
1109
|
-
function
|
|
1109
|
+
function ot({
|
|
1110
1110
|
open: e,
|
|
1111
1111
|
onDismiss: t,
|
|
1112
1112
|
anchorRef: n,
|
|
@@ -1116,19 +1116,19 @@ function it({
|
|
|
1116
1116
|
onCreatePage: o,
|
|
1117
1117
|
onManagePages: l
|
|
1118
1118
|
}) {
|
|
1119
|
-
const
|
|
1119
|
+
const m = N(
|
|
1120
1120
|
(g) => {
|
|
1121
1121
|
s(g), t();
|
|
1122
1122
|
},
|
|
1123
1123
|
[s, t]
|
|
1124
|
-
),
|
|
1125
|
-
(g,
|
|
1126
|
-
(
|
|
1124
|
+
), d = N(
|
|
1125
|
+
(g, u) => {
|
|
1126
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), m(g));
|
|
1127
1127
|
},
|
|
1128
|
-
[
|
|
1128
|
+
[m]
|
|
1129
1129
|
), h = N(() => {
|
|
1130
1130
|
o(), t();
|
|
1131
|
-
}, [o, t]),
|
|
1131
|
+
}, [o, t]), p = N(() => {
|
|
1132
1132
|
l(), t();
|
|
1133
1133
|
}, [l, t]);
|
|
1134
1134
|
return /* @__PURE__ */ k(
|
|
@@ -1146,22 +1146,22 @@ function it({
|
|
|
1146
1146
|
className: "gloss-page-dropdown",
|
|
1147
1147
|
children: [
|
|
1148
1148
|
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((g) => {
|
|
1149
|
-
const
|
|
1149
|
+
const u = g.id === i;
|
|
1150
1150
|
return /* @__PURE__ */ k(
|
|
1151
1151
|
"li",
|
|
1152
1152
|
{
|
|
1153
1153
|
role: "menuitemradio",
|
|
1154
|
-
"aria-checked":
|
|
1155
|
-
"aria-current":
|
|
1154
|
+
"aria-checked": u,
|
|
1155
|
+
"aria-current": u ? "page" : void 0,
|
|
1156
1156
|
tabIndex: 0,
|
|
1157
|
-
className: `gloss-page-dropdown__item${
|
|
1158
|
-
onClick: () =>
|
|
1159
|
-
onKeyDown: (
|
|
1157
|
+
className: `gloss-page-dropdown__item${u ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1158
|
+
onClick: () => m(g.id),
|
|
1159
|
+
onKeyDown: (w) => d(g.id, w),
|
|
1160
1160
|
children: [
|
|
1161
1161
|
/* @__PURE__ */ r(
|
|
1162
1162
|
"span",
|
|
1163
1163
|
{
|
|
1164
|
-
className: `gloss-page-dropdown__dot${
|
|
1164
|
+
className: `gloss-page-dropdown__dot${u ? " gloss-page-dropdown__dot--active" : ""}`
|
|
1165
1165
|
}
|
|
1166
1166
|
),
|
|
1167
1167
|
/* @__PURE__ */ r(
|
|
@@ -1193,7 +1193,7 @@ function it({
|
|
|
1193
1193
|
{
|
|
1194
1194
|
role: "menuitem",
|
|
1195
1195
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
1196
|
-
onClick:
|
|
1196
|
+
onClick: p,
|
|
1197
1197
|
children: "Manage pages"
|
|
1198
1198
|
}
|
|
1199
1199
|
)
|
|
@@ -1201,7 +1201,7 @@ function it({
|
|
|
1201
1201
|
}
|
|
1202
1202
|
);
|
|
1203
1203
|
}
|
|
1204
|
-
|
|
1204
|
+
ot.displayName = "PageDropdown";
|
|
1205
1205
|
const ta = function({
|
|
1206
1206
|
currentIndex: t,
|
|
1207
1207
|
total: n,
|
|
@@ -1210,23 +1210,23 @@ const ta = function({
|
|
|
1210
1210
|
onCreatePage: s,
|
|
1211
1211
|
onManagePages: o,
|
|
1212
1212
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1213
|
-
displayMode:
|
|
1214
|
-
activePage:
|
|
1213
|
+
displayMode: m = "count",
|
|
1214
|
+
activePage: d
|
|
1215
1215
|
}) {
|
|
1216
|
-
const h = E(null), [
|
|
1216
|
+
const h = E(null), [p, g] = $(!1), u = N(() => {
|
|
1217
1217
|
g((R) => !R);
|
|
1218
|
-
}, []),
|
|
1218
|
+
}, []), w = N(() => {
|
|
1219
1219
|
g(!1);
|
|
1220
|
-
}, []),
|
|
1220
|
+
}, []), _ = a[t]?.id ?? "";
|
|
1221
1221
|
return /* @__PURE__ */ k(
|
|
1222
1222
|
"div",
|
|
1223
1223
|
{
|
|
1224
1224
|
className: "gloss-page-chip",
|
|
1225
1225
|
ref: h,
|
|
1226
|
-
style:
|
|
1226
|
+
style: m === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
|
|
1227
1227
|
"data-page-chip": !0,
|
|
1228
1228
|
children: [
|
|
1229
|
-
|
|
1229
|
+
m !== "name" && /* @__PURE__ */ r(
|
|
1230
1230
|
"div",
|
|
1231
1231
|
{
|
|
1232
1232
|
className: "gloss-page-chip__nuzzle",
|
|
@@ -1236,13 +1236,13 @@ const ta = function({
|
|
|
1236
1236
|
/* @__PURE__ */ r(
|
|
1237
1237
|
"button",
|
|
1238
1238
|
{
|
|
1239
|
-
className: `gloss-page-chip__trigger${
|
|
1239
|
+
className: `gloss-page-chip__trigger${m === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1240
1240
|
"aria-haspopup": "menu",
|
|
1241
|
-
"aria-expanded":
|
|
1242
|
-
"aria-label":
|
|
1243
|
-
onClick:
|
|
1244
|
-
children:
|
|
1245
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children:
|
|
1241
|
+
"aria-expanded": p,
|
|
1242
|
+
"aria-label": m === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1243
|
+
onClick: u,
|
|
1244
|
+
children: m === "name" ? /* @__PURE__ */ k(te, { children: [
|
|
1245
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
|
|
1246
1246
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1247
1247
|
] }) : /* @__PURE__ */ k(te, { children: [
|
|
1248
1248
|
t + 1,
|
|
@@ -1252,13 +1252,13 @@ const ta = function({
|
|
|
1252
1252
|
}
|
|
1253
1253
|
),
|
|
1254
1254
|
/* @__PURE__ */ r(
|
|
1255
|
-
|
|
1255
|
+
ot,
|
|
1256
1256
|
{
|
|
1257
|
-
open:
|
|
1258
|
-
onDismiss:
|
|
1257
|
+
open: p,
|
|
1258
|
+
onDismiss: w,
|
|
1259
1259
|
anchorRef: h,
|
|
1260
1260
|
pages: a,
|
|
1261
|
-
activePageId:
|
|
1261
|
+
activePageId: _,
|
|
1262
1262
|
onPageChange: i,
|
|
1263
1263
|
onCreatePage: s,
|
|
1264
1264
|
onManagePages: o
|
|
@@ -1539,10 +1539,10 @@ const Xn = [
|
|
|
1539
1539
|
function Le(e) {
|
|
1540
1540
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function lt(e) {
|
|
1543
1543
|
return e.toLocaleString("en-US");
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function ct(e) {
|
|
1546
1546
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1547
1547
|
}
|
|
1548
1548
|
const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), er = [
|
|
@@ -1575,7 +1575,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1575
1575
|
align: "right",
|
|
1576
1576
|
headerAlign: "right",
|
|
1577
1577
|
cellClassName: "gloss-tabular-nums",
|
|
1578
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1578
|
+
renderCell: ({ row: e }) => e.skuCount ? lt(e.skuCount) : ve
|
|
1579
1579
|
},
|
|
1580
1580
|
{
|
|
1581
1581
|
field: "total",
|
|
@@ -1595,7 +1595,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1595
1595
|
align: "right",
|
|
1596
1596
|
headerAlign: "right",
|
|
1597
1597
|
cellClassName: "gloss-tabular-nums",
|
|
1598
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1598
|
+
renderCell: ({ row: e }) => e.date ? ct(e.date) : ""
|
|
1599
1599
|
}
|
|
1600
1600
|
], tr = [
|
|
1601
1601
|
{
|
|
@@ -1639,7 +1639,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1639
1639
|
align: "right",
|
|
1640
1640
|
headerAlign: "right",
|
|
1641
1641
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1642
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1642
|
+
renderCell: ({ row: e }) => e.quantity ? lt(e.quantity) : ve
|
|
1643
1643
|
},
|
|
1644
1644
|
{
|
|
1645
1645
|
field: "total",
|
|
@@ -1659,7 +1659,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1659
1659
|
align: "right",
|
|
1660
1660
|
headerAlign: "right",
|
|
1661
1661
|
cellClassName: "gloss-tabular-nums",
|
|
1662
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1662
|
+
renderCell: ({ row: e }) => e.lastDate ? ct(e.lastDate) : ""
|
|
1663
1663
|
}
|
|
1664
1664
|
], aa = [
|
|
1665
1665
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
@@ -1676,7 +1676,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1676
1676
|
], Te = (e) => {
|
|
1677
1677
|
}, ra = (e) => {
|
|
1678
1678
|
}, qe = (e, t) => {
|
|
1679
|
-
},
|
|
1679
|
+
}, dt = {
|
|
1680
1680
|
vizState: {
|
|
1681
1681
|
type: "orders",
|
|
1682
1682
|
quant: "$",
|
|
@@ -1694,7 +1694,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1694
1694
|
entityFilterOptions: aa,
|
|
1695
1695
|
itemFilterOptions: na
|
|
1696
1696
|
}, ar = {
|
|
1697
|
-
...
|
|
1697
|
+
...dt,
|
|
1698
1698
|
vizState: {
|
|
1699
1699
|
type: "items",
|
|
1700
1700
|
quant: "$",
|
|
@@ -1703,7 +1703,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1703
1703
|
timeFrame: "YTD"
|
|
1704
1704
|
}
|
|
1705
1705
|
}, nr = {
|
|
1706
|
-
...
|
|
1706
|
+
...dt,
|
|
1707
1707
|
vizState: {
|
|
1708
1708
|
type: "orders",
|
|
1709
1709
|
quant: "#",
|
|
@@ -1947,35 +1947,35 @@ const ua = ({
|
|
|
1947
1947
|
ariaCardTypeLabel: a,
|
|
1948
1948
|
className: i
|
|
1949
1949
|
}) => {
|
|
1950
|
-
const s = E(null), o = E([]), l = da(),
|
|
1951
|
-
if (
|
|
1952
|
-
const
|
|
1953
|
-
const
|
|
1954
|
-
const R = o.current[
|
|
1950
|
+
const s = E(null), o = E([]), l = da(), m = Ne(() => Array.from(e), [e]);
|
|
1951
|
+
if (m.length === 0) return null;
|
|
1952
|
+
const d = a ? `Configure ${a}: choose a dimension` : void 0, h = l ? "10ms" : "200ms", p = (g, u) => {
|
|
1953
|
+
const w = m.length - 1, _ = (c) => {
|
|
1954
|
+
const R = o.current[c];
|
|
1955
1955
|
R && R.focus();
|
|
1956
1956
|
};
|
|
1957
1957
|
switch (g.key) {
|
|
1958
1958
|
case "ArrowRight":
|
|
1959
1959
|
case "ArrowDown": {
|
|
1960
|
-
g.preventDefault(),
|
|
1960
|
+
g.preventDefault(), _(u === w ? 0 : u + 1);
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
case "ArrowLeft":
|
|
1964
1964
|
case "ArrowUp": {
|
|
1965
|
-
g.preventDefault(),
|
|
1965
|
+
g.preventDefault(), _(u === 0 ? w : u - 1);
|
|
1966
1966
|
break;
|
|
1967
1967
|
}
|
|
1968
1968
|
case "Home": {
|
|
1969
|
-
g.preventDefault(),
|
|
1969
|
+
g.preventDefault(), _(0);
|
|
1970
1970
|
break;
|
|
1971
1971
|
}
|
|
1972
1972
|
case "End": {
|
|
1973
|
-
g.preventDefault(),
|
|
1973
|
+
g.preventDefault(), _(w);
|
|
1974
1974
|
break;
|
|
1975
1975
|
}
|
|
1976
1976
|
case "Enter":
|
|
1977
1977
|
case " ": {
|
|
1978
|
-
g.preventDefault(), t(u
|
|
1978
|
+
g.preventDefault(), t(m[u]);
|
|
1979
1979
|
break;
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
@@ -1985,7 +1985,7 @@ const ua = ({
|
|
|
1985
1985
|
{
|
|
1986
1986
|
ref: s,
|
|
1987
1987
|
role: "group",
|
|
1988
|
-
"aria-label":
|
|
1988
|
+
"aria-label": d,
|
|
1989
1989
|
className: Qe("gloss-reconfig-backside-buttons", i),
|
|
1990
1990
|
style: {
|
|
1991
1991
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
@@ -1993,26 +1993,26 @@ const ua = ({
|
|
|
1993
1993
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1994
1994
|
"--gloss-reconfig-backside-buttons-transition-duration": h
|
|
1995
1995
|
},
|
|
1996
|
-
children:
|
|
1997
|
-
const
|
|
1996
|
+
children: m.map((g, u) => {
|
|
1997
|
+
const w = ca[g], _ = n === g;
|
|
1998
1998
|
return /* @__PURE__ */ k(
|
|
1999
1999
|
"button",
|
|
2000
2000
|
{
|
|
2001
|
-
ref: (
|
|
2002
|
-
o.current[
|
|
2001
|
+
ref: (c) => {
|
|
2002
|
+
o.current[u] = c;
|
|
2003
2003
|
},
|
|
2004
2004
|
type: "button",
|
|
2005
2005
|
"data-dimension": g,
|
|
2006
2006
|
className: Qe(
|
|
2007
2007
|
"gloss-reconfig-backside-buttons__button",
|
|
2008
|
-
|
|
2008
|
+
_ && "gloss-reconfig-backside-buttons__button--active"
|
|
2009
2009
|
),
|
|
2010
|
-
"aria-current":
|
|
2010
|
+
"aria-current": _ ? "true" : void 0,
|
|
2011
2011
|
onClick: () => t(g),
|
|
2012
|
-
onKeyDown: (
|
|
2012
|
+
onKeyDown: (c) => p(c, u),
|
|
2013
2013
|
children: [
|
|
2014
2014
|
/* @__PURE__ */ r(
|
|
2015
|
-
|
|
2015
|
+
w,
|
|
2016
2016
|
{
|
|
2017
2017
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
2018
2018
|
"aria-hidden": "true"
|
|
@@ -2271,15 +2271,15 @@ const ga = function(t) {
|
|
|
2271
2271
|
);
|
|
2272
2272
|
};
|
|
2273
2273
|
ga.displayName = "MetricGroupContainer";
|
|
2274
|
-
const
|
|
2275
|
-
...
|
|
2274
|
+
const ut = "resize.tuning.dev", pa = {
|
|
2275
|
+
...it,
|
|
2276
2276
|
snapInPx: 60,
|
|
2277
2277
|
snapOutPx: 90
|
|
2278
2278
|
}, re = pa;
|
|
2279
2279
|
function fa() {
|
|
2280
2280
|
if (typeof window > "u") return { ...re };
|
|
2281
2281
|
try {
|
|
2282
|
-
const e = window.localStorage.getItem(
|
|
2282
|
+
const e = window.localStorage.getItem(ut);
|
|
2283
2283
|
if (!e) return { ...re };
|
|
2284
2284
|
const t = JSON.parse(e);
|
|
2285
2285
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...re } : { ...re, ...t };
|
|
@@ -2292,7 +2292,7 @@ function ha() {
|
|
|
2292
2292
|
O(() => {
|
|
2293
2293
|
if (!(typeof window > "u"))
|
|
2294
2294
|
try {
|
|
2295
|
-
window.localStorage.setItem(
|
|
2295
|
+
window.localStorage.setItem(ut, JSON.stringify(e));
|
|
2296
2296
|
} catch {
|
|
2297
2297
|
}
|
|
2298
2298
|
}, [e]);
|
|
@@ -2405,16 +2405,16 @@ function Na(e = {}) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
Na.displayName = "DevTuningPanel";
|
|
2407
2407
|
function Da() {
|
|
2408
|
-
const e = ha(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = E(null),
|
|
2408
|
+
const e = ha(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = E(null), m = N((g) => {
|
|
2409
2409
|
l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => {
|
|
2410
2410
|
o(null), l.current = null;
|
|
2411
2411
|
}, 200);
|
|
2412
|
-
}, []),
|
|
2413
|
-
(g,
|
|
2414
|
-
n(g,
|
|
2412
|
+
}, []), d = N(
|
|
2413
|
+
(g, u) => {
|
|
2414
|
+
n(g, u), g === "snapInPx" && u > t.snapOutPx && (n("snapOutPx", u), m("snapOutPx"));
|
|
2415
2415
|
},
|
|
2416
|
-
[n, t.snapOutPx,
|
|
2417
|
-
), h = Ne(() => ba, []),
|
|
2416
|
+
[n, t.snapOutPx, m]
|
|
2417
|
+
), h = Ne(() => ba, []), p = Mt();
|
|
2418
2418
|
return /* @__PURE__ */ k(
|
|
2419
2419
|
Se.div,
|
|
2420
2420
|
{
|
|
@@ -2424,14 +2424,14 @@ function Da() {
|
|
|
2424
2424
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2425
2425
|
drag: !0,
|
|
2426
2426
|
dragListener: !1,
|
|
2427
|
-
dragControls:
|
|
2427
|
+
dragControls: p,
|
|
2428
2428
|
dragMomentum: !1,
|
|
2429
2429
|
children: [
|
|
2430
2430
|
/* @__PURE__ */ k(
|
|
2431
2431
|
"div",
|
|
2432
2432
|
{
|
|
2433
2433
|
className: "gloss-dev-tuning-panel__header",
|
|
2434
|
-
onPointerDown: (g) =>
|
|
2434
|
+
onPointerDown: (g) => p.start(g),
|
|
2435
2435
|
children: [
|
|
2436
2436
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2437
2437
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
@@ -2443,7 +2443,7 @@ function Da() {
|
|
|
2443
2443
|
{
|
|
2444
2444
|
spec: g,
|
|
2445
2445
|
value: t[g.key],
|
|
2446
|
-
onChange: (
|
|
2446
|
+
onChange: (u) => d(g.key, u),
|
|
2447
2447
|
onReset: () => a(g.key),
|
|
2448
2448
|
flashing: s === g.key
|
|
2449
2449
|
},
|
|
@@ -2471,31 +2471,31 @@ function _r({
|
|
|
2471
2471
|
minBoundaryX: s,
|
|
2472
2472
|
snapBoundariesX: o,
|
|
2473
2473
|
topY: l,
|
|
2474
|
-
bottomY:
|
|
2475
|
-
enterMs:
|
|
2474
|
+
bottomY: m,
|
|
2475
|
+
enterMs: d = ie.envelopeEnterMs,
|
|
2476
2476
|
exitMs: h = ie.envelopeExitMs,
|
|
2477
|
-
className:
|
|
2477
|
+
className: p,
|
|
2478
2478
|
style: g
|
|
2479
2479
|
}) {
|
|
2480
2480
|
if (e === "hidden") return null;
|
|
2481
|
-
const
|
|
2482
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2481
|
+
const u = Math.max(0, i - a), w = Math.max(0, m - l), _ = {
|
|
2482
|
+
"--gloss-resize-envelope-enter-ms": `${d}ms`,
|
|
2483
2483
|
"--gloss-resize-envelope-exit-ms": `${h}ms`,
|
|
2484
2484
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2485
2485
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
2486
2486
|
left: a,
|
|
2487
2487
|
top: l,
|
|
2488
|
-
width:
|
|
2489
|
-
height:
|
|
2488
|
+
width: u,
|
|
2489
|
+
height: w,
|
|
2490
2490
|
...g
|
|
2491
2491
|
};
|
|
2492
2492
|
return /* @__PURE__ */ k(
|
|
2493
2493
|
"div",
|
|
2494
2494
|
{
|
|
2495
|
-
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`,
|
|
2495
|
+
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, p].filter(Boolean).join(" "),
|
|
2496
2496
|
"data-state": e,
|
|
2497
2497
|
"data-testid": "gloss-resize-envelope",
|
|
2498
|
-
style:
|
|
2498
|
+
style: _,
|
|
2499
2499
|
"aria-hidden": "true",
|
|
2500
2500
|
children: [
|
|
2501
2501
|
/* @__PURE__ */ r(
|
|
@@ -2519,17 +2519,17 @@ function _r({
|
|
|
2519
2519
|
{
|
|
2520
2520
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
|
|
2521
2521
|
"data-edge": "right",
|
|
2522
|
-
style: { left:
|
|
2522
|
+
style: { left: u - 1 }
|
|
2523
2523
|
}
|
|
2524
2524
|
),
|
|
2525
|
-
o.filter((
|
|
2525
|
+
o.filter((c) => c > s && c < i).map((c) => /* @__PURE__ */ r(
|
|
2526
2526
|
"div",
|
|
2527
2527
|
{
|
|
2528
2528
|
className: "gloss-resize-envelope__snap-line",
|
|
2529
2529
|
"data-snap-line": !0,
|
|
2530
|
-
style: { left:
|
|
2530
|
+
style: { left: c - a }
|
|
2531
2531
|
},
|
|
2532
|
-
|
|
2532
|
+
c
|
|
2533
2533
|
))
|
|
2534
2534
|
]
|
|
2535
2535
|
}
|
|
@@ -2544,14 +2544,14 @@ function Nr({
|
|
|
2544
2544
|
rejection: s = !1,
|
|
2545
2545
|
className: o,
|
|
2546
2546
|
children: l,
|
|
2547
|
-
...
|
|
2547
|
+
...m
|
|
2548
2548
|
}) {
|
|
2549
|
-
const
|
|
2549
|
+
const d = a != null ? { ...m.style, "--_proximity-opacity": String(a) } : m.style;
|
|
2550
2550
|
return /* @__PURE__ */ r(
|
|
2551
2551
|
"div",
|
|
2552
2552
|
{
|
|
2553
|
-
...
|
|
2554
|
-
style:
|
|
2553
|
+
...m,
|
|
2554
|
+
style: d,
|
|
2555
2555
|
"data-density": e,
|
|
2556
2556
|
"data-can-accept": t ? "true" : "false",
|
|
2557
2557
|
"data-blocked": n ? "true" : void 0,
|
|
@@ -2612,9 +2612,9 @@ function kr({
|
|
|
2612
2612
|
variant: s = "dashed",
|
|
2613
2613
|
className: o,
|
|
2614
2614
|
style: l,
|
|
2615
|
-
...
|
|
2615
|
+
...m
|
|
2616
2616
|
}) {
|
|
2617
|
-
const
|
|
2617
|
+
const d = {
|
|
2618
2618
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2619
2619
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2620
2620
|
"--gloss-section-divider-stagger-delay": `${t * i}ms`,
|
|
@@ -2623,7 +2623,7 @@ function kr({
|
|
|
2623
2623
|
return /* @__PURE__ */ r(
|
|
2624
2624
|
"div",
|
|
2625
2625
|
{
|
|
2626
|
-
...
|
|
2626
|
+
...m,
|
|
2627
2627
|
"data-state": e,
|
|
2628
2628
|
"data-testid": "gloss-section-divider",
|
|
2629
2629
|
"aria-hidden": "true",
|
|
@@ -2633,7 +2633,7 @@ function kr({
|
|
|
2633
2633
|
s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2634
2634
|
o
|
|
2635
2635
|
].filter(Boolean).join(" "),
|
|
2636
|
-
style:
|
|
2636
|
+
style: d
|
|
2637
2637
|
}
|
|
2638
2638
|
);
|
|
2639
2639
|
}
|
|
@@ -2646,29 +2646,29 @@ function Cr({
|
|
|
2646
2646
|
className: s,
|
|
2647
2647
|
style: o,
|
|
2648
2648
|
onPack: l,
|
|
2649
|
-
ariaLabel:
|
|
2649
|
+
ariaLabel: m
|
|
2650
2650
|
}) {
|
|
2651
|
-
const
|
|
2651
|
+
const d = a ?? "Add card to this cell", h = i ?? m ?? "Pack row — shift cards left", p = t ?? l, { affordancesVisible: g } = rt();
|
|
2652
2652
|
return /* @__PURE__ */ k(ce.Fragment, { children: [
|
|
2653
|
-
/* @__PURE__ */ r(Oe, { visible:
|
|
2653
|
+
/* @__PURE__ */ r(Oe, { visible: g, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2654
2654
|
"button",
|
|
2655
2655
|
{
|
|
2656
2656
|
type: "button",
|
|
2657
2657
|
"data-testid": "gloss-empty-cell-add",
|
|
2658
|
-
"aria-label":
|
|
2658
|
+
"aria-label": d,
|
|
2659
2659
|
className: [
|
|
2660
2660
|
"gloss-empty-cell-pack-affordance",
|
|
2661
2661
|
"gloss-empty-cell-pack-affordance--add",
|
|
2662
2662
|
s
|
|
2663
2663
|
].filter(Boolean).join(" "),
|
|
2664
2664
|
style: o,
|
|
2665
|
-
onClick: (
|
|
2666
|
-
|
|
2665
|
+
onClick: (u) => {
|
|
2666
|
+
u.stopPropagation(), n?.();
|
|
2667
2667
|
},
|
|
2668
2668
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
|
|
2669
2669
|
}
|
|
2670
2670
|
) }),
|
|
2671
|
-
/* @__PURE__ */ r(Oe, { visible: e &&
|
|
2671
|
+
/* @__PURE__ */ r(Oe, { visible: e && g, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2672
2672
|
"button",
|
|
2673
2673
|
{
|
|
2674
2674
|
type: "button",
|
|
@@ -2676,18 +2676,15 @@ function Cr({
|
|
|
2676
2676
|
"aria-label": h,
|
|
2677
2677
|
className: ["gloss-empty-cell-pack-affordance", s].filter(Boolean).join(" "),
|
|
2678
2678
|
style: o,
|
|
2679
|
-
onClick: (
|
|
2680
|
-
|
|
2679
|
+
onClick: (u) => {
|
|
2680
|
+
u.stopPropagation(), p?.();
|
|
2681
2681
|
},
|
|
2682
2682
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2683
2683
|
}
|
|
2684
2684
|
) })
|
|
2685
2685
|
] });
|
|
2686
2686
|
}
|
|
2687
|
-
function Sr(
|
|
2688
|
-
return { affordancesVisible: !0 };
|
|
2689
|
-
}
|
|
2690
|
-
function xr({
|
|
2687
|
+
function Sr({
|
|
2691
2688
|
tint: e,
|
|
2692
2689
|
colSpan: t,
|
|
2693
2690
|
colWidth: n,
|
|
@@ -2696,22 +2693,22 @@ function xr({
|
|
|
2696
2693
|
x: s,
|
|
2697
2694
|
y: o,
|
|
2698
2695
|
children: l,
|
|
2699
|
-
className:
|
|
2696
|
+
className: m
|
|
2700
2697
|
}) {
|
|
2701
|
-
const
|
|
2698
|
+
const d = t * n + (t - 1) * i, h = ce.useRef(null);
|
|
2702
2699
|
return Fe("drag-ghost", () => {
|
|
2703
2700
|
if (process.env.NODE_ENV === "production")
|
|
2704
2701
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2705
|
-
const
|
|
2702
|
+
const p = h.current?.getBoundingClientRect() ?? null;
|
|
2706
2703
|
return {
|
|
2707
2704
|
values: {
|
|
2708
2705
|
x: s.get(),
|
|
2709
2706
|
y: o.get(),
|
|
2710
|
-
bounds_x:
|
|
2711
|
-
bounds_y:
|
|
2712
|
-
bounds_w:
|
|
2713
|
-
bounds_h:
|
|
2714
|
-
visible:
|
|
2707
|
+
bounds_x: p?.x ?? 0,
|
|
2708
|
+
bounds_y: p?.y ?? 0,
|
|
2709
|
+
bounds_w: p?.width ?? 0,
|
|
2710
|
+
bounds_h: p?.height ?? 0,
|
|
2711
|
+
visible: p ? 1 : 0
|
|
2715
2712
|
},
|
|
2716
2713
|
spec: {
|
|
2717
2714
|
tint: e,
|
|
@@ -2725,38 +2722,38 @@ function xr({
|
|
|
2725
2722
|
}), Fe("commit-ghost-singleton", () => {
|
|
2726
2723
|
if (process.env.NODE_ENV === "production")
|
|
2727
2724
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2728
|
-
const
|
|
2729
|
-
let g = 0,
|
|
2730
|
-
if (
|
|
2725
|
+
const p = h.current;
|
|
2726
|
+
let g = 0, u = "", w = "", _ = "";
|
|
2727
|
+
if (p)
|
|
2731
2728
|
try {
|
|
2732
|
-
const I = window.getComputedStyle(
|
|
2733
|
-
g =
|
|
2729
|
+
const I = window.getComputedStyle(p), v = I.outline || "", M = I.border || "", S = I.boxShadow || "", f = !!v && v !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(v), b = !!M && M !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(M), D = !!S && S !== "none";
|
|
2730
|
+
g = f || b || D ? 1 : 0, u = f ? v : "", w = b ? M : "", _ = D ? S : "";
|
|
2734
2731
|
} catch {
|
|
2735
2732
|
}
|
|
2736
|
-
const
|
|
2733
|
+
const c = p?.getBoundingClientRect() ?? null, R = p ? "drag-clone" : "subsumed-by-tracking-outline";
|
|
2737
2734
|
return {
|
|
2738
2735
|
values: {
|
|
2739
2736
|
x: s.get(),
|
|
2740
2737
|
y: o.get(),
|
|
2741
|
-
bounds_x:
|
|
2742
|
-
bounds_y:
|
|
2743
|
-
bounds_w:
|
|
2744
|
-
bounds_h:
|
|
2745
|
-
visible:
|
|
2738
|
+
bounds_x: c?.x ?? 0,
|
|
2739
|
+
bounds_y: c?.y ?? 0,
|
|
2740
|
+
bounds_w: c?.width ?? 0,
|
|
2741
|
+
bounds_h: c?.height ?? 0,
|
|
2742
|
+
visible: p ? 1 : 0,
|
|
2746
2743
|
outlineOnClone: g
|
|
2747
2744
|
},
|
|
2748
2745
|
spec: {
|
|
2749
2746
|
mode: R,
|
|
2750
2747
|
tint: e,
|
|
2751
|
-
outlineSrc:
|
|
2752
|
-
borderSrc:
|
|
2753
|
-
boxShadowSrc:
|
|
2748
|
+
outlineSrc: u,
|
|
2749
|
+
borderSrc: w,
|
|
2750
|
+
boxShadowSrc: _
|
|
2754
2751
|
// D-01 contract: Frame 1 (current/buggy) shows outline-on-clone=true;
|
|
2755
2752
|
// Frame 2 (decided): outline-on-clone=false (subsumed by tracking
|
|
2756
2753
|
// outline). Wave 2 audit-D-01 reads this field across drag mid-flight
|
|
2757
2754
|
// + post-drop frames and records frame match.
|
|
2758
2755
|
},
|
|
2759
|
-
state:
|
|
2756
|
+
state: p ? "active" : "idle",
|
|
2760
2757
|
t: performance.now()
|
|
2761
2758
|
};
|
|
2762
2759
|
}), /* @__PURE__ */ r(
|
|
@@ -2769,15 +2766,15 @@ function xr({
|
|
|
2769
2766
|
className: [
|
|
2770
2767
|
"gloss-drag-ghost",
|
|
2771
2768
|
`gloss-drag-ghost--tint-${e}`,
|
|
2772
|
-
|
|
2769
|
+
m
|
|
2773
2770
|
].filter(Boolean).join(" "),
|
|
2774
|
-
style: { x: s, y: o, width:
|
|
2771
|
+
style: { x: s, y: o, width: d, height: a },
|
|
2775
2772
|
children: l
|
|
2776
2773
|
}
|
|
2777
2774
|
);
|
|
2778
2775
|
}
|
|
2779
2776
|
const Ca = 3;
|
|
2780
|
-
function
|
|
2777
|
+
function mt({
|
|
2781
2778
|
gesture: e,
|
|
2782
2779
|
cell: t,
|
|
2783
2780
|
colSpan: n,
|
|
@@ -2786,9 +2783,9 @@ function ut({
|
|
|
2786
2783
|
rowHeight: s,
|
|
2787
2784
|
pattern: o = "solid",
|
|
2788
2785
|
transitionMs: l = 120,
|
|
2789
|
-
className:
|
|
2786
|
+
className: m
|
|
2790
2787
|
}) {
|
|
2791
|
-
const
|
|
2788
|
+
const d = n * a + (n - 1) * i, p = (t.section * Ca + t.col) * (a + i), g = t.row * (s + i), u = e === "resize" ? 2.5 : 2, w = o === "dashed-retreated" ? "dashed" : "solid", _ = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline";
|
|
2792
2789
|
return /* @__PURE__ */ r(
|
|
2793
2790
|
"div",
|
|
2794
2791
|
{
|
|
@@ -2799,28 +2796,28 @@ function ut({
|
|
|
2799
2796
|
// D-15 #4 parity: drag callers must keep the legacy class so reptime
|
|
2800
2797
|
// metric-card-grid.scss nested selectors continue to match.
|
|
2801
2798
|
e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
|
|
2802
|
-
|
|
2799
|
+
m
|
|
2803
2800
|
].filter(Boolean).join(" "),
|
|
2804
|
-
"data-testid":
|
|
2801
|
+
"data-testid": _,
|
|
2805
2802
|
"data-tracking-outline": "",
|
|
2806
2803
|
"data-gesture": e,
|
|
2807
2804
|
"data-pattern": o,
|
|
2808
2805
|
"aria-hidden": "true",
|
|
2809
2806
|
style: {
|
|
2810
|
-
transform: `translate(${
|
|
2811
|
-
width:
|
|
2807
|
+
transform: `translate(${p}px, ${g}px)`,
|
|
2808
|
+
width: d,
|
|
2812
2809
|
height: s,
|
|
2813
|
-
borderWidth:
|
|
2814
|
-
borderStyle:
|
|
2810
|
+
borderWidth: u,
|
|
2811
|
+
borderStyle: w,
|
|
2815
2812
|
transition: `transform ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
2816
2813
|
}
|
|
2817
2814
|
}
|
|
2818
2815
|
);
|
|
2819
2816
|
}
|
|
2820
|
-
function
|
|
2821
|
-
return /* @__PURE__ */ r(
|
|
2817
|
+
function xr(e) {
|
|
2818
|
+
return /* @__PURE__ */ r(mt, { gesture: "drag", pattern: "solid", ...e });
|
|
2822
2819
|
}
|
|
2823
|
-
function
|
|
2820
|
+
function Rr({
|
|
2824
2821
|
items: e,
|
|
2825
2822
|
children: t,
|
|
2826
2823
|
className: n,
|
|
@@ -2831,16 +2828,16 @@ function Mr({
|
|
|
2831
2828
|
if (process.env.NODE_ENV === "production")
|
|
2832
2829
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2833
2830
|
const o = s.current;
|
|
2834
|
-
let l = 0,
|
|
2835
|
-
for (const
|
|
2836
|
-
const g =
|
|
2837
|
-
Math.abs(g) > Math.abs(
|
|
2831
|
+
let l = 0, m = 0, d = 0, h = 0;
|
|
2832
|
+
for (const p of o) {
|
|
2833
|
+
const g = p.x.get(), u = p.y.get();
|
|
2834
|
+
Math.abs(g) > Math.abs(d) && (d = g, l = g), Math.abs(u) > Math.abs(h) && (h = u, m = u);
|
|
2838
2835
|
}
|
|
2839
2836
|
return {
|
|
2840
2837
|
values: {
|
|
2841
2838
|
activeCount: o.length,
|
|
2842
2839
|
maxX: l,
|
|
2843
|
-
maxY:
|
|
2840
|
+
maxY: m,
|
|
2844
2841
|
visible: o.length > 0 ? 1 : 0
|
|
2845
2842
|
},
|
|
2846
2843
|
spec: {
|
|
@@ -2881,10 +2878,10 @@ const Sa = ({
|
|
|
2881
2878
|
}) => {
|
|
2882
2879
|
const a = E(null), i = E(null);
|
|
2883
2880
|
O(() => {
|
|
2884
|
-
const l = Math.min(100, Math.max(0, e.value)),
|
|
2885
|
-
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${
|
|
2881
|
+
const l = Math.min(100, Math.max(0, e.value)), m = Math.min(100, Math.max(0, t.value)), d = requestAnimationFrame(() => {
|
|
2882
|
+
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${m}%`);
|
|
2886
2883
|
});
|
|
2887
|
-
return () => cancelAnimationFrame(
|
|
2884
|
+
return () => cancelAnimationFrame(d);
|
|
2888
2885
|
}, [e.value, t.value]);
|
|
2889
2886
|
const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
2890
2887
|
return /* @__PURE__ */ k(
|
|
@@ -2966,7 +2963,7 @@ const Sa = ({
|
|
|
2966
2963
|
children: "Set target"
|
|
2967
2964
|
}
|
|
2968
2965
|
)
|
|
2969
|
-
] }),
|
|
2966
|
+
] }), Mr = (e) => {
|
|
2970
2967
|
const [t, n] = $(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
|
|
2971
2968
|
$t,
|
|
2972
2969
|
{
|
|
@@ -3013,7 +3010,7 @@ const Sa = ({
|
|
|
3013
3010
|
] })
|
|
3014
3011
|
}
|
|
3015
3012
|
);
|
|
3016
|
-
},
|
|
3013
|
+
}, Tr = () => /* @__PURE__ */ k("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
3017
3014
|
/* @__PURE__ */ r(
|
|
3018
3015
|
"div",
|
|
3019
3016
|
{
|
|
@@ -3061,7 +3058,7 @@ function Ta({
|
|
|
3061
3058
|
() => Math.max(0, e.findIndex((l) => l.id === t))
|
|
3062
3059
|
);
|
|
3063
3060
|
return O(() => {
|
|
3064
|
-
const l = e.findIndex((
|
|
3061
|
+
const l = e.findIndex((m) => m.id === t);
|
|
3065
3062
|
s(l >= 0 ? l : 0);
|
|
3066
3063
|
}, [t, e]), e.length === 0 ? null : /* @__PURE__ */ r(
|
|
3067
3064
|
"div",
|
|
@@ -3072,11 +3069,11 @@ function Ta({
|
|
|
3072
3069
|
switch (l.key) {
|
|
3073
3070
|
case "ArrowRight":
|
|
3074
3071
|
case "ArrowDown":
|
|
3075
|
-
l.preventDefault(), s((
|
|
3072
|
+
l.preventDefault(), s((m) => (m + 1) % e.length);
|
|
3076
3073
|
break;
|
|
3077
3074
|
case "ArrowLeft":
|
|
3078
3075
|
case "ArrowUp":
|
|
3079
|
-
l.preventDefault(), s((
|
|
3076
|
+
l.preventDefault(), s((m) => (m - 1 + e.length) % e.length);
|
|
3080
3077
|
break;
|
|
3081
3078
|
case "Home":
|
|
3082
3079
|
l.preventDefault(), s(0);
|
|
@@ -3087,20 +3084,20 @@ function Ta({
|
|
|
3087
3084
|
case "Enter":
|
|
3088
3085
|
case " ": {
|
|
3089
3086
|
l.preventDefault();
|
|
3090
|
-
const
|
|
3091
|
-
|
|
3087
|
+
const m = e[i];
|
|
3088
|
+
m && !m.disabled && n(m.id);
|
|
3092
3089
|
break;
|
|
3093
3090
|
}
|
|
3094
3091
|
}
|
|
3095
3092
|
},
|
|
3096
3093
|
className: "gloss-lens-chip-group",
|
|
3097
|
-
children: e.map((l,
|
|
3094
|
+
children: e.map((l, m) => /* @__PURE__ */ r(
|
|
3098
3095
|
Ma,
|
|
3099
3096
|
{
|
|
3100
3097
|
id: l.id,
|
|
3101
3098
|
label: l.label,
|
|
3102
3099
|
selected: l.id === t,
|
|
3103
|
-
focused:
|
|
3100
|
+
focused: m === i,
|
|
3104
3101
|
disabled: l.disabled,
|
|
3105
3102
|
badge: l.badge,
|
|
3106
3103
|
onClick: n
|
|
@@ -3138,9 +3135,9 @@ function X({
|
|
|
3138
3135
|
variant: s = "default",
|
|
3139
3136
|
onClick: o,
|
|
3140
3137
|
className: l,
|
|
3141
|
-
style:
|
|
3138
|
+
style: m
|
|
3142
3139
|
}) {
|
|
3143
|
-
const
|
|
3140
|
+
const d = [
|
|
3144
3141
|
"gloss-entity-row",
|
|
3145
3142
|
`gloss-entity-row--${s}`,
|
|
3146
3143
|
o ? "gloss-entity-row--clickable" : "",
|
|
@@ -3152,7 +3149,7 @@ function X({
|
|
|
3152
3149
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
3153
3150
|
i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
|
|
3154
3151
|
] });
|
|
3155
|
-
return o ? /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3152
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: /* @__PURE__ */ r(
|
|
3156
3153
|
"button",
|
|
3157
3154
|
{
|
|
3158
3155
|
type: "button",
|
|
@@ -3164,12 +3161,12 @@ function X({
|
|
|
3164
3161
|
gap: 4,
|
|
3165
3162
|
cursor: "pointer"
|
|
3166
3163
|
},
|
|
3167
|
-
onClick: (
|
|
3168
|
-
|
|
3164
|
+
onClick: (p) => {
|
|
3165
|
+
p.stopPropagation(), o();
|
|
3169
3166
|
},
|
|
3170
3167
|
children: h
|
|
3171
3168
|
}
|
|
3172
|
-
) }) : /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3169
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: h });
|
|
3173
3170
|
}
|
|
3174
3171
|
X.displayName = "EntityRow";
|
|
3175
3172
|
const ye = ({ rank: e }) => {
|
|
@@ -3196,7 +3193,7 @@ function we({ severity: e, "aria-label": t }) {
|
|
|
3196
3193
|
);
|
|
3197
3194
|
}
|
|
3198
3195
|
we.displayName = "SeverityDot";
|
|
3199
|
-
function
|
|
3196
|
+
function gt({
|
|
3200
3197
|
delta: e,
|
|
3201
3198
|
direction: t = "flat",
|
|
3202
3199
|
"aria-label": n
|
|
@@ -3225,7 +3222,7 @@ function mt({
|
|
|
3225
3222
|
}
|
|
3226
3223
|
);
|
|
3227
3224
|
}
|
|
3228
|
-
|
|
3225
|
+
gt.displayName = "RankDelta";
|
|
3229
3226
|
function _e({ fill: e, variant: t = "default", className: n }) {
|
|
3230
3227
|
const a = Math.max(0, Math.min(100, e));
|
|
3231
3228
|
return /* @__PURE__ */ r(
|
|
@@ -3280,7 +3277,7 @@ function Fa({
|
|
|
3280
3277
|
),
|
|
3281
3278
|
value: o.value,
|
|
3282
3279
|
trail: /* @__PURE__ */ r(
|
|
3283
|
-
|
|
3280
|
+
gt,
|
|
3284
3281
|
{
|
|
3285
3282
|
delta: o.rankDelta,
|
|
3286
3283
|
direction: o.direction,
|
|
@@ -3342,7 +3339,7 @@ function $a({
|
|
|
3342
3339
|
ruleSubtitle: s,
|
|
3343
3340
|
isStale: o
|
|
3344
3341
|
}) {
|
|
3345
|
-
const l = t.filter((
|
|
3342
|
+
const l = t.filter((d) => La(d, n)), m = l.slice(0, a ?? 3);
|
|
3346
3343
|
return l.length === 0 ? /* @__PURE__ */ k(te, { children: [
|
|
3347
3344
|
/* @__PURE__ */ r(
|
|
3348
3345
|
be,
|
|
@@ -3368,16 +3365,16 @@ function $a({
|
|
|
3368
3365
|
{
|
|
3369
3366
|
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3370
3367
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3371
|
-
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children:
|
|
3368
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: m.map((d, h) => /* @__PURE__ */ r(
|
|
3372
3369
|
X,
|
|
3373
3370
|
{
|
|
3374
|
-
lead: /* @__PURE__ */ r(we, { severity:
|
|
3375
|
-
name:
|
|
3376
|
-
value:
|
|
3371
|
+
lead: /* @__PURE__ */ r(we, { severity: d.severity, "aria-label": Oa(d.severity) }),
|
|
3372
|
+
name: d.name,
|
|
3373
|
+
value: d.value,
|
|
3377
3374
|
variant: "exception",
|
|
3378
3375
|
style: { "--i": h }
|
|
3379
3376
|
},
|
|
3380
|
-
|
|
3377
|
+
d.id
|
|
3381
3378
|
)) })
|
|
3382
3379
|
}
|
|
3383
3380
|
),
|
|
@@ -3461,7 +3458,7 @@ const Je = ["MTD", "QTD", "YTD", "LYTD", "7D"], et = ["$248K", "$612K", "$1.24M"
|
|
|
3461
3458
|
);
|
|
3462
3459
|
};
|
|
3463
3460
|
Ka.displayName = "StackedGroupTilePreview";
|
|
3464
|
-
const
|
|
3461
|
+
const Ir = {
|
|
3465
3462
|
/** GEV-01 — Eligibility tint. Contiguous-from-source paint; blocked by first occupied cell (Principle 4). */
|
|
3466
3463
|
eligibilityTint: { applicableStates: ["arming", "active"] },
|
|
3467
3464
|
/** GEV-01 — Commit tint. Fill+stroke emphasis on the commit-target cell footprint (G-02). */
|
|
@@ -3503,8 +3500,8 @@ const Er = {
|
|
|
3503
3500
|
rejectionFill: "var(--gloss-g02-rejection-fill)",
|
|
3504
3501
|
rejectionStroke: "var(--gloss-g02-rejection-stroke)",
|
|
3505
3502
|
trackingOutline: "var(--gloss-g02-tracking-outline)"
|
|
3506
|
-
},
|
|
3507
|
-
function
|
|
3503
|
+
}, Er = "dashed", Pr = "solid", Fr = "sparse-dash", Ar = "2px no-fill", Or = "6 4", Lr = "10 6", za = 3;
|
|
3504
|
+
function $r({
|
|
3508
3505
|
cell: e,
|
|
3509
3506
|
variant: t,
|
|
3510
3507
|
rampColor: n,
|
|
@@ -3513,10 +3510,10 @@ function Br({
|
|
|
3513
3510
|
gap: s,
|
|
3514
3511
|
className: o
|
|
3515
3512
|
}) {
|
|
3516
|
-
const
|
|
3513
|
+
const m = (e.section * za + e.col) * (a + s), d = e.row * (i + s), h = t === "eligibility" ? se.eligibilityFill : t === "commit" ? se.commitFill : t === "rejection" ? se.rejectionFill : (
|
|
3517
3514
|
/* ramp */
|
|
3518
3515
|
n ?? se.eligibilityFill
|
|
3519
|
-
),
|
|
3516
|
+
), p = t === "rejection", g = p ? se.rejectionStroke : "transparent", u = p ? "dashed" : "solid";
|
|
3520
3517
|
return /* @__PURE__ */ r(
|
|
3521
3518
|
"div",
|
|
3522
3519
|
{
|
|
@@ -3529,7 +3526,7 @@ function Br({
|
|
|
3529
3526
|
"data-variant": t,
|
|
3530
3527
|
"aria-hidden": "true",
|
|
3531
3528
|
style: {
|
|
3532
|
-
transform: `translate(${
|
|
3529
|
+
transform: `translate(${m}px, ${d}px)`,
|
|
3533
3530
|
width: a,
|
|
3534
3531
|
height: i,
|
|
3535
3532
|
// Use background-color longhand (NOT background shorthand) so jsdom + DOM
|
|
@@ -3537,7 +3534,7 @@ function Br({
|
|
|
3537
3534
|
// unknown values and breaks both unit-test introspection and styling.
|
|
3538
3535
|
backgroundColor: h,
|
|
3539
3536
|
borderColor: g,
|
|
3540
|
-
borderStyle:
|
|
3537
|
+
borderStyle: u
|
|
3541
3538
|
}
|
|
3542
3539
|
}
|
|
3543
3540
|
);
|
|
@@ -3547,7 +3544,7 @@ const Wa = 3, ja = [
|
|
|
3547
3544
|
{ idx: 1, peakR: 34, peakOpacity: 0.22, strokeW: 1 },
|
|
3548
3545
|
{ idx: 2, peakR: 46, peakOpacity: 0.1, strokeW: 0.8 }
|
|
3549
3546
|
];
|
|
3550
|
-
function
|
|
3547
|
+
function Br({
|
|
3551
3548
|
cell: e,
|
|
3552
3549
|
fireKey: t,
|
|
3553
3550
|
colWidth: n,
|
|
@@ -3555,8 +3552,8 @@ function Kr({
|
|
|
3555
3552
|
gap: i,
|
|
3556
3553
|
className: s
|
|
3557
3554
|
}) {
|
|
3558
|
-
const l = (e.section * Wa + e.col) * (n + i) + n / 2,
|
|
3559
|
-
return
|
|
3555
|
+
const l = (e.section * Wa + e.col) * (n + i) + n / 2, m = e.row * (a + i) + a / 2;
|
|
3556
|
+
return st() === "reduced" ? /* @__PURE__ */ r(
|
|
3560
3557
|
"div",
|
|
3561
3558
|
{
|
|
3562
3559
|
className: ["gloss-refuse-pulse-flash", s].filter(Boolean).join(" "),
|
|
@@ -3566,7 +3563,7 @@ function Kr({
|
|
|
3566
3563
|
style: {
|
|
3567
3564
|
position: "absolute",
|
|
3568
3565
|
left: l - 24,
|
|
3569
|
-
top:
|
|
3566
|
+
top: m - 24,
|
|
3570
3567
|
width: 48,
|
|
3571
3568
|
height: 48,
|
|
3572
3569
|
borderRadius: "50%",
|
|
@@ -3584,7 +3581,7 @@ function Kr({
|
|
|
3584
3581
|
"data-testid": "gloss-refuse-pulse",
|
|
3585
3582
|
"data-fire-key": t,
|
|
3586
3583
|
"data-cx": l,
|
|
3587
|
-
"data-cy":
|
|
3584
|
+
"data-cy": m,
|
|
3588
3585
|
"aria-hidden": "true",
|
|
3589
3586
|
style: {
|
|
3590
3587
|
position: "absolute",
|
|
@@ -3593,7 +3590,7 @@ function Kr({
|
|
|
3593
3590
|
pointerEvents: "none"
|
|
3594
3591
|
},
|
|
3595
3592
|
children: ja.map((h) => {
|
|
3596
|
-
const
|
|
3593
|
+
const p = h.peakR * 2;
|
|
3597
3594
|
return /* @__PURE__ */ r(
|
|
3598
3595
|
"div",
|
|
3599
3596
|
{
|
|
@@ -3604,9 +3601,9 @@ function Kr({
|
|
|
3604
3601
|
style: {
|
|
3605
3602
|
position: "absolute",
|
|
3606
3603
|
left: l - h.peakR,
|
|
3607
|
-
top:
|
|
3608
|
-
width:
|
|
3609
|
-
height:
|
|
3604
|
+
top: m - h.peakR,
|
|
3605
|
+
width: p,
|
|
3606
|
+
height: p,
|
|
3610
3607
|
borderRadius: "50%",
|
|
3611
3608
|
borderStyle: "solid",
|
|
3612
3609
|
borderWidth: h.strokeW,
|
|
@@ -3626,8 +3623,8 @@ function Kr({
|
|
|
3626
3623
|
t
|
|
3627
3624
|
);
|
|
3628
3625
|
}
|
|
3629
|
-
function
|
|
3630
|
-
return /* @__PURE__ */ r(
|
|
3626
|
+
function Kr(e) {
|
|
3627
|
+
return /* @__PURE__ */ r(mt, { gesture: "resize", ...e });
|
|
3631
3628
|
}
|
|
3632
3629
|
const Ga = Object.freeze({
|
|
3633
3630
|
trackingOutline: null,
|
|
@@ -3636,12 +3633,12 @@ const Ga = Object.freeze({
|
|
|
3636
3633
|
shrinkFreedCells: []
|
|
3637
3634
|
});
|
|
3638
3635
|
function Va(e, t, n) {
|
|
3639
|
-
const a = Math.max(0, Math.min(1, n)), i = (
|
|
3640
|
-
parseInt(
|
|
3641
|
-
parseInt(
|
|
3642
|
-
parseInt(
|
|
3643
|
-
], [s, o, l] = i(e), [
|
|
3644
|
-
return `rgb(${Math.round(s + (
|
|
3636
|
+
const a = Math.max(0, Math.min(1, n)), i = (p) => [
|
|
3637
|
+
parseInt(p.slice(1, 3), 16),
|
|
3638
|
+
parseInt(p.slice(3, 5), 16),
|
|
3639
|
+
parseInt(p.slice(5, 7), 16)
|
|
3640
|
+
], [s, o, l] = i(e), [m, d, h] = i(t);
|
|
3641
|
+
return `rgb(${Math.round(s + (m - s) * a)}, ${Math.round(o + (d - o) * a)}, ${Math.round(
|
|
3645
3642
|
l + (h - l) * a
|
|
3646
3643
|
)})`;
|
|
3647
3644
|
}
|
|
@@ -3651,21 +3648,21 @@ function Ha(e) {
|
|
|
3651
3648
|
function Ua(e) {
|
|
3652
3649
|
return e !== "idle" && e !== "settling" && e !== "cancelled";
|
|
3653
3650
|
}
|
|
3654
|
-
function
|
|
3655
|
-
const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e,
|
|
3651
|
+
function zr(e) {
|
|
3652
|
+
const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, m = st() === "reduced", d = ce.useRef(t.currentColSpan), h = ce.useRef({ armed: !0, fireKey: 0, lastResult: null });
|
|
3656
3653
|
if (!Ua(t.state))
|
|
3657
3654
|
return h.current.armed = !0, h.current.lastResult = null, Ga;
|
|
3658
|
-
const
|
|
3659
|
-
|
|
3660
|
-
const
|
|
3655
|
+
const p = t.hysteresisTargetColSpan, g = t.previewColSpan, u = a?.result === "rejected";
|
|
3656
|
+
u || (d.current = p), u && h.current.armed && h.current.lastResult !== "rejected" && (h.current.fireKey += 1, h.current.armed = !1), h.current.lastResult = u ? "rejected" : "ok";
|
|
3657
|
+
const w = u ? d.current : p, _ = {
|
|
3661
3658
|
cell: { section: 0, col: 0, row: 0 },
|
|
3662
|
-
colSpan:
|
|
3663
|
-
pattern:
|
|
3664
|
-
},
|
|
3665
|
-
if (
|
|
3666
|
-
const
|
|
3667
|
-
for (let S =
|
|
3668
|
-
|
|
3659
|
+
colSpan: w,
|
|
3660
|
+
pattern: u ? "dashed-retreated" : "solid"
|
|
3661
|
+
}, c = [];
|
|
3662
|
+
if (u) {
|
|
3663
|
+
const v = n.col + d.current, M = n.col + p - 1;
|
|
3664
|
+
for (let S = v; S <= M && S <= 2; S++)
|
|
3665
|
+
c.push({
|
|
3669
3666
|
cell: {
|
|
3670
3667
|
section: 0,
|
|
3671
3668
|
col: S - n.col,
|
|
@@ -3674,42 +3671,42 @@ function Wr(e) {
|
|
|
3674
3671
|
variant: "rejection"
|
|
3675
3672
|
});
|
|
3676
3673
|
} else {
|
|
3677
|
-
const
|
|
3678
|
-
for (let S = n.col; S < n.col +
|
|
3674
|
+
const v = Math.abs(g - p), M = Math.max(0, Math.min(1, 1 - v));
|
|
3675
|
+
for (let S = n.col; S < n.col + p && S <= 2; S++) {
|
|
3679
3676
|
if (S === n.col) continue;
|
|
3680
|
-
const
|
|
3677
|
+
const f = S === n.col + p - 1, b = {
|
|
3681
3678
|
section: 0,
|
|
3682
3679
|
col: S - n.col,
|
|
3683
3680
|
row: 0
|
|
3684
3681
|
};
|
|
3685
|
-
|
|
3686
|
-
cell:
|
|
3682
|
+
f && t.direction.startsWith("grow") && p > 1 && !m && v > 0 && v < 1 ? c.push({
|
|
3683
|
+
cell: b,
|
|
3687
3684
|
variant: "ramp",
|
|
3688
3685
|
rampColor: Va(at.eligibilityFill, at.commitFill, M)
|
|
3689
|
-
}) :
|
|
3686
|
+
}) : f ? c.push({ cell: b, variant: "commit" }) : c.push({ cell: b, variant: "eligibility" });
|
|
3690
3687
|
}
|
|
3691
3688
|
}
|
|
3692
3689
|
const R = [];
|
|
3693
|
-
if (t.currentColSpan >
|
|
3694
|
-
for (let
|
|
3690
|
+
if (t.currentColSpan > p)
|
|
3691
|
+
for (let v = n.col + p; v < n.col + t.currentColSpan && v <= 2; v++)
|
|
3695
3692
|
R.push({
|
|
3696
3693
|
section: 0,
|
|
3697
|
-
col:
|
|
3694
|
+
col: v - n.col,
|
|
3698
3695
|
row: 0
|
|
3699
3696
|
});
|
|
3700
3697
|
const I = h.current.fireKey > 0 ? {
|
|
3701
3698
|
cell: {
|
|
3702
3699
|
section: 0,
|
|
3703
3700
|
col: Ha(
|
|
3704
|
-
Math.min(
|
|
3701
|
+
Math.min(d.current, 2)
|
|
3705
3702
|
),
|
|
3706
3703
|
row: 0
|
|
3707
3704
|
},
|
|
3708
3705
|
fireKey: h.current.fireKey
|
|
3709
3706
|
} : null;
|
|
3710
3707
|
return {
|
|
3711
|
-
trackingOutline:
|
|
3712
|
-
cellTints:
|
|
3708
|
+
trackingOutline: _,
|
|
3709
|
+
cellTints: c,
|
|
3713
3710
|
refusePulse: I,
|
|
3714
3711
|
shrinkFreedCells: R
|
|
3715
3712
|
};
|
|
@@ -3738,21 +3735,21 @@ function Za({
|
|
|
3738
3735
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3739
3736
|
);
|
|
3740
3737
|
}, [a, i]), V.useLayoutEffect(() => {
|
|
3741
|
-
let
|
|
3742
|
-
if (a ?
|
|
3743
|
-
const h =
|
|
3738
|
+
let d = null;
|
|
3739
|
+
if (a ? d = a : i && (d = document.querySelector(i)), d) {
|
|
3740
|
+
const h = d.getBoundingClientRect();
|
|
3744
3741
|
o({
|
|
3745
3742
|
top: h.bottom + window.scrollY + 6,
|
|
3746
3743
|
left: h.left + window.scrollX
|
|
3747
3744
|
});
|
|
3748
3745
|
}
|
|
3749
3746
|
}, [a, i]);
|
|
3750
|
-
const
|
|
3747
|
+
const m = s ? { top: s.top, left: s.left } : {};
|
|
3751
3748
|
return /* @__PURE__ */ k(
|
|
3752
3749
|
"div",
|
|
3753
3750
|
{
|
|
3754
3751
|
className: ne["gloss-inline-nudge"],
|
|
3755
|
-
style:
|
|
3752
|
+
style: m,
|
|
3756
3753
|
role: "status",
|
|
3757
3754
|
"aria-live": "polite",
|
|
3758
3755
|
"data-reduced-motion": l ? "true" : void 0,
|
|
@@ -3812,17 +3809,17 @@ function Qa({
|
|
|
3812
3809
|
const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3813
3810
|
`ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
|
|
3814
3811
|
), 0.01) : i, l = N(
|
|
3815
|
-
(
|
|
3812
|
+
(f) => Math.round(f / o) * o,
|
|
3816
3813
|
[o]
|
|
3817
|
-
),
|
|
3814
|
+
), m = E(null), [d, h] = $(null), [p, g] = $(e), u = qa(e), w = E(u);
|
|
3818
3815
|
O(() => {
|
|
3819
|
-
|
|
3820
|
-
}, [
|
|
3821
|
-
const
|
|
3822
|
-
(
|
|
3823
|
-
if (!
|
|
3824
|
-
const
|
|
3825
|
-
return l(
|
|
3816
|
+
w.current !== u && (w.current = u, !d && g(e));
|
|
3817
|
+
}, [u, e, d]);
|
|
3818
|
+
const _ = Ne(() => Ya(p, n, a), [p, n, a]), c = N(
|
|
3819
|
+
(f) => {
|
|
3820
|
+
if (!m.current) return n;
|
|
3821
|
+
const b = m.current.getBoundingClientRect(), D = b.width || 1, T = Math.max(0, Math.min(1, (f - b.left) / D)), y = n + T * (a - n);
|
|
3822
|
+
return l(y);
|
|
3826
3823
|
},
|
|
3827
3824
|
[n, a, l]
|
|
3828
3825
|
);
|
|
@@ -3832,118 +3829,118 @@ function Qa({
|
|
|
3832
3829
|
);
|
|
3833
3830
|
}, [n, a]);
|
|
3834
3831
|
const R = N(
|
|
3835
|
-
(
|
|
3836
|
-
const D =
|
|
3837
|
-
s || D?.disabled || (
|
|
3832
|
+
(f, b) => {
|
|
3833
|
+
const D = p.find((T) => T.id === b);
|
|
3834
|
+
s || D?.disabled || (f.preventDefault(), h(b));
|
|
3838
3835
|
},
|
|
3839
|
-
[s,
|
|
3840
|
-
), I = E(
|
|
3841
|
-
I.current =
|
|
3842
|
-
const
|
|
3843
|
-
|
|
3844
|
-
if (!
|
|
3845
|
-
const
|
|
3846
|
-
const T =
|
|
3836
|
+
[s, p]
|
|
3837
|
+
), I = E(p);
|
|
3838
|
+
I.current = p;
|
|
3839
|
+
const v = E(t);
|
|
3840
|
+
v.current = t, O(() => {
|
|
3841
|
+
if (!d) return;
|
|
3842
|
+
const f = (D) => {
|
|
3843
|
+
const T = c(D.clientX);
|
|
3847
3844
|
g(
|
|
3848
|
-
(
|
|
3845
|
+
(y) => y.map((x) => x.id === d ? { ...x, value: T } : x)
|
|
3849
3846
|
);
|
|
3850
|
-
},
|
|
3851
|
-
const T =
|
|
3852
|
-
(x) => x.id ===
|
|
3847
|
+
}, b = (D) => {
|
|
3848
|
+
const T = c(D.clientX), y = I.current.map(
|
|
3849
|
+
(x) => x.id === d ? { ...x, value: T } : x
|
|
3853
3850
|
);
|
|
3854
|
-
g(
|
|
3851
|
+
g(y), h(null), v.current(y);
|
|
3855
3852
|
};
|
|
3856
|
-
return window.addEventListener("pointermove",
|
|
3857
|
-
window.removeEventListener("pointermove",
|
|
3853
|
+
return window.addEventListener("pointermove", f), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b), () => {
|
|
3854
|
+
window.removeEventListener("pointermove", f), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b);
|
|
3858
3855
|
};
|
|
3859
|
-
}, [
|
|
3856
|
+
}, [d, c]);
|
|
3860
3857
|
const M = a - n > 0 ? a - n : 1, S = N(
|
|
3861
|
-
(
|
|
3862
|
-
if (s ||
|
|
3858
|
+
(f, b) => {
|
|
3859
|
+
if (s || b.disabled) return;
|
|
3863
3860
|
const D = a - n;
|
|
3864
3861
|
if (D <= 0) return;
|
|
3865
|
-
const T =
|
|
3866
|
-
let
|
|
3867
|
-
switch (
|
|
3862
|
+
const T = f.shiftKey ? D / 20 : D / 100;
|
|
3863
|
+
let y = b.value;
|
|
3864
|
+
switch (f.key) {
|
|
3868
3865
|
case "ArrowRight":
|
|
3869
3866
|
case "ArrowUp":
|
|
3870
|
-
|
|
3867
|
+
y = b.value + T;
|
|
3871
3868
|
break;
|
|
3872
3869
|
case "ArrowLeft":
|
|
3873
3870
|
case "ArrowDown":
|
|
3874
|
-
|
|
3871
|
+
y = b.value - T;
|
|
3875
3872
|
break;
|
|
3876
3873
|
case "Home":
|
|
3877
|
-
|
|
3874
|
+
y = n;
|
|
3878
3875
|
break;
|
|
3879
3876
|
case "End":
|
|
3880
|
-
|
|
3877
|
+
y = a;
|
|
3881
3878
|
break;
|
|
3882
3879
|
default:
|
|
3883
3880
|
return;
|
|
3884
3881
|
}
|
|
3885
|
-
|
|
3886
|
-
const x = Math.max(n, Math.min(a,
|
|
3887
|
-
if (P ===
|
|
3888
|
-
const H =
|
|
3889
|
-
(Y) => Y.id ===
|
|
3882
|
+
f.preventDefault();
|
|
3883
|
+
const x = Math.max(n, Math.min(a, y)), P = l(x);
|
|
3884
|
+
if (P === b.value) return;
|
|
3885
|
+
const H = p.map(
|
|
3886
|
+
(Y) => Y.id === b.id ? { ...Y, value: P } : Y
|
|
3890
3887
|
);
|
|
3891
3888
|
g(H), t(H);
|
|
3892
3889
|
},
|
|
3893
|
-
[s, n, a,
|
|
3890
|
+
[s, n, a, p, t, l]
|
|
3894
3891
|
);
|
|
3895
3892
|
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
|
|
3896
3893
|
"div",
|
|
3897
3894
|
{
|
|
3898
|
-
ref:
|
|
3895
|
+
ref: m,
|
|
3899
3896
|
className: "gloss-threshold-ramp__track",
|
|
3900
|
-
style: { background:
|
|
3901
|
-
children:
|
|
3902
|
-
const
|
|
3897
|
+
style: { background: _ },
|
|
3898
|
+
children: p.map((f) => {
|
|
3899
|
+
const b = (f.value - n) / M * 100;
|
|
3903
3900
|
return /* @__PURE__ */ r(
|
|
3904
3901
|
"span",
|
|
3905
3902
|
{
|
|
3906
3903
|
className: "gloss-threshold-ramp__stop",
|
|
3907
3904
|
style: {
|
|
3908
|
-
left: `${
|
|
3909
|
-
color: Be(
|
|
3905
|
+
left: `${b}%`,
|
|
3906
|
+
color: Be(f)
|
|
3910
3907
|
},
|
|
3911
|
-
"data-disabled":
|
|
3912
|
-
"data-dragging":
|
|
3913
|
-
onPointerDown: (D) => R(D,
|
|
3914
|
-
onKeyDown: (D) => S(D,
|
|
3915
|
-
"aria-label":
|
|
3908
|
+
"data-disabled": f.disabled || void 0,
|
|
3909
|
+
"data-dragging": d === f.id || void 0,
|
|
3910
|
+
onPointerDown: (D) => R(D, f.id),
|
|
3911
|
+
onKeyDown: (D) => S(D, f),
|
|
3912
|
+
"aria-label": f.label ?? `Stop at ${f.value}`,
|
|
3916
3913
|
role: "slider",
|
|
3917
|
-
"aria-valuenow":
|
|
3914
|
+
"aria-valuenow": f.value,
|
|
3918
3915
|
"aria-valuemin": n,
|
|
3919
3916
|
"aria-valuemax": a,
|
|
3920
|
-
"aria-disabled":
|
|
3921
|
-
tabIndex:
|
|
3917
|
+
"aria-disabled": f.disabled || s || void 0,
|
|
3918
|
+
tabIndex: f.disabled || s ? -1 : 0
|
|
3922
3919
|
},
|
|
3923
|
-
|
|
3920
|
+
f.id
|
|
3924
3921
|
);
|
|
3925
3922
|
})
|
|
3926
3923
|
}
|
|
3927
3924
|
) });
|
|
3928
3925
|
}
|
|
3929
3926
|
Qa.displayName = "ThresholdRamp";
|
|
3930
|
-
const
|
|
3927
|
+
const pt = St(null);
|
|
3931
3928
|
function Xa() {
|
|
3932
|
-
return xt(
|
|
3929
|
+
return xt(pt);
|
|
3933
3930
|
}
|
|
3934
3931
|
function Ja({ option: e }) {
|
|
3935
3932
|
const t = Xa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = N(() => {
|
|
3936
3933
|
a || t?.select(e.value);
|
|
3937
3934
|
}, [a, t, e.value]), s = N(
|
|
3938
|
-
(
|
|
3939
|
-
a || t?.onKeyNav(
|
|
3935
|
+
(d) => {
|
|
3936
|
+
a || t?.onKeyNav(d, e.value);
|
|
3940
3937
|
},
|
|
3941
3938
|
[a, t, e.value]
|
|
3942
|
-
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value,
|
|
3939
|
+
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, m = a ? -1 : l ? 0 : -1;
|
|
3943
3940
|
return /* @__PURE__ */ r(
|
|
3944
3941
|
"button",
|
|
3945
3942
|
{
|
|
3946
|
-
ref: (
|
|
3943
|
+
ref: (d) => t?.registerRef(e.value, d),
|
|
3947
3944
|
type: "button",
|
|
3948
3945
|
role: "radio",
|
|
3949
3946
|
"aria-checked": n,
|
|
@@ -3955,7 +3952,7 @@ function Ja({ option: e }) {
|
|
|
3955
3952
|
"aria-label": e.label ?? e.value,
|
|
3956
3953
|
"aria-disabled": a,
|
|
3957
3954
|
disabled: a,
|
|
3958
|
-
tabIndex:
|
|
3955
|
+
tabIndex: m,
|
|
3959
3956
|
onClick: i,
|
|
3960
3957
|
onKeyDown: s
|
|
3961
3958
|
}
|
|
@@ -3969,65 +3966,65 @@ function en({
|
|
|
3969
3966
|
disabled: i = !1,
|
|
3970
3967
|
name: s
|
|
3971
3968
|
}) {
|
|
3972
|
-
const o = t !== void 0, [l,
|
|
3973
|
-
(
|
|
3974
|
-
o ||
|
|
3969
|
+
const o = t !== void 0, [l, m] = $(n), d = o ? t : l, h = N(
|
|
3970
|
+
(v) => {
|
|
3971
|
+
o || m(v), a?.(v);
|
|
3975
3972
|
},
|
|
3976
3973
|
[o, a]
|
|
3977
|
-
),
|
|
3978
|
-
(
|
|
3979
|
-
[
|
|
3980
|
-
), g = E(/* @__PURE__ */ new Map()),
|
|
3981
|
-
M ? g.current.set(
|
|
3982
|
-
}, []),
|
|
3983
|
-
const M = g.current.get(
|
|
3974
|
+
), p = N(
|
|
3975
|
+
(v) => d === v,
|
|
3976
|
+
[d]
|
|
3977
|
+
), g = E(/* @__PURE__ */ new Map()), u = N((v, M) => {
|
|
3978
|
+
M ? g.current.set(v, M) : g.current.delete(v);
|
|
3979
|
+
}, []), w = e.filter((v) => !v.disabled && !i), _ = w.find((v) => v.value === d)?.value ?? w[0]?.value, c = N((v) => {
|
|
3980
|
+
const M = g.current.get(v);
|
|
3984
3981
|
M && M.focus();
|
|
3985
3982
|
}, []), R = N(
|
|
3986
|
-
(
|
|
3983
|
+
(v, M) => {
|
|
3987
3984
|
if (i) return;
|
|
3988
3985
|
const S = e.filter((T) => !T.disabled);
|
|
3989
3986
|
if (S.length === 0) return;
|
|
3990
|
-
const
|
|
3991
|
-
if (
|
|
3992
|
-
let
|
|
3993
|
-
switch (
|
|
3987
|
+
const f = S.findIndex((T) => T.value === M);
|
|
3988
|
+
if (f === -1) return;
|
|
3989
|
+
let b = f;
|
|
3990
|
+
switch (v.key) {
|
|
3994
3991
|
case "ArrowRight":
|
|
3995
3992
|
case "ArrowDown":
|
|
3996
|
-
|
|
3993
|
+
b = (f + 1) % S.length;
|
|
3997
3994
|
break;
|
|
3998
3995
|
case "ArrowLeft":
|
|
3999
3996
|
case "ArrowUp":
|
|
4000
|
-
|
|
3997
|
+
b = (f - 1 + S.length) % S.length;
|
|
4001
3998
|
break;
|
|
4002
3999
|
case "Home":
|
|
4003
|
-
|
|
4000
|
+
b = 0;
|
|
4004
4001
|
break;
|
|
4005
4002
|
case "End":
|
|
4006
|
-
|
|
4003
|
+
b = S.length - 1;
|
|
4007
4004
|
break;
|
|
4008
4005
|
case " ":
|
|
4009
4006
|
case "Enter":
|
|
4010
|
-
|
|
4007
|
+
v.preventDefault(), h(M);
|
|
4011
4008
|
return;
|
|
4012
4009
|
default:
|
|
4013
4010
|
return;
|
|
4014
4011
|
}
|
|
4015
|
-
|
|
4016
|
-
const D = S[
|
|
4017
|
-
|
|
4012
|
+
v.preventDefault();
|
|
4013
|
+
const D = S[b].value;
|
|
4014
|
+
c(D), h(D);
|
|
4018
4015
|
},
|
|
4019
|
-
[i, e, h,
|
|
4016
|
+
[i, e, h, c]
|
|
4020
4017
|
), I = {
|
|
4021
|
-
selectedValue:
|
|
4018
|
+
selectedValue: d,
|
|
4022
4019
|
select: h,
|
|
4023
|
-
isSelected:
|
|
4020
|
+
isSelected: p,
|
|
4024
4021
|
groupDisabled: i,
|
|
4025
4022
|
name: s,
|
|
4026
|
-
registerRef:
|
|
4027
|
-
firstFocusableValue:
|
|
4023
|
+
registerRef: u,
|
|
4024
|
+
firstFocusableValue: _,
|
|
4028
4025
|
onKeyNav: R
|
|
4029
4026
|
};
|
|
4030
|
-
return /* @__PURE__ */ r(
|
|
4027
|
+
return /* @__PURE__ */ r(pt.Provider, { value: I, children: /* @__PURE__ */ r(
|
|
4031
4028
|
"div",
|
|
4032
4029
|
{
|
|
4033
4030
|
className: "gloss-preset-swatch-row",
|
|
@@ -4035,7 +4032,7 @@ function en({
|
|
|
4035
4032
|
"aria-label": s,
|
|
4036
4033
|
"aria-disabled": i,
|
|
4037
4034
|
"data-disabled": i || void 0,
|
|
4038
|
-
children: e.map((
|
|
4035
|
+
children: e.map((v) => /* @__PURE__ */ r(Ja, { option: v }, v.value))
|
|
4039
4036
|
}
|
|
4040
4037
|
) });
|
|
4041
4038
|
}
|
|
@@ -4059,101 +4056,101 @@ function an(e) {
|
|
|
4059
4056
|
}
|
|
4060
4057
|
function nn(e) {
|
|
4061
4058
|
const [t, n] = $(
|
|
4062
|
-
() => e.zones.map((
|
|
4063
|
-
`useSortableZones: zone "${
|
|
4064
|
-
), { ...
|
|
4065
|
-
), [a, i] = $(null), [s, o] = $(null), l = E(null),
|
|
4066
|
-
|
|
4067
|
-
const
|
|
4059
|
+
() => e.zones.map((c) => c.maxItems !== void 0 && c.items.length > c.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4060
|
+
`useSortableZones: zone "${c.zoneKey}" exceeds maxItems (${c.items.length} > ${c.maxItems}); trimming to cap.`
|
|
4061
|
+
), { ...c, items: c.items.slice(0, c.maxItems) }) : c)
|
|
4062
|
+
), [a, i] = $(null), [s, o] = $(null), l = E(null), m = E(e.onZoneChange);
|
|
4063
|
+
m.current = e.onZoneChange;
|
|
4064
|
+
const d = Ne(
|
|
4068
4065
|
() => an(e.zones),
|
|
4069
4066
|
[e.zones]
|
|
4070
|
-
), h = E(
|
|
4067
|
+
), h = E(d);
|
|
4071
4068
|
O(() => {
|
|
4072
|
-
h.current !==
|
|
4073
|
-
e.zones.map((
|
|
4074
|
-
`useSortableZones: zone "${
|
|
4075
|
-
), { ...
|
|
4069
|
+
h.current !== d && (h.current = d, !a && n(
|
|
4070
|
+
e.zones.map((c) => c.maxItems !== void 0 && c.items.length > c.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4071
|
+
`useSortableZones: zone "${c.zoneKey}" exceeds maxItems (${c.items.length} > ${c.maxItems}); trimming to cap.`
|
|
4072
|
+
), { ...c, items: c.items.slice(0, c.maxItems) }) : c)
|
|
4076
4073
|
));
|
|
4077
|
-
}, [
|
|
4078
|
-
const
|
|
4079
|
-
(
|
|
4080
|
-
const R =
|
|
4081
|
-
let I = null,
|
|
4074
|
+
}, [d, e.zones, a]);
|
|
4075
|
+
const p = N(
|
|
4076
|
+
(c) => {
|
|
4077
|
+
const R = c.active.id;
|
|
4078
|
+
let I = null, v = null;
|
|
4082
4079
|
for (const M of t) {
|
|
4083
|
-
const S = M.items.find((
|
|
4080
|
+
const S = M.items.find((f) => f.id === R);
|
|
4084
4081
|
if (S) {
|
|
4085
|
-
I = S,
|
|
4082
|
+
I = S, v = M.zoneKey;
|
|
4086
4083
|
break;
|
|
4087
4084
|
}
|
|
4088
4085
|
}
|
|
4089
|
-
l.current =
|
|
4086
|
+
l.current = v, i(I), o(v);
|
|
4090
4087
|
},
|
|
4091
4088
|
[t]
|
|
4092
4089
|
), g = N(
|
|
4093
|
-
(
|
|
4094
|
-
if (!
|
|
4090
|
+
(c) => {
|
|
4091
|
+
if (!c.over) {
|
|
4095
4092
|
o(l.current);
|
|
4096
4093
|
return;
|
|
4097
4094
|
}
|
|
4098
|
-
const R = nt(t,
|
|
4095
|
+
const R = nt(t, c.over.id);
|
|
4099
4096
|
o(R);
|
|
4100
4097
|
},
|
|
4101
4098
|
[t]
|
|
4102
|
-
),
|
|
4103
|
-
(
|
|
4104
|
-
const { active: R, over: I } =
|
|
4099
|
+
), u = N(
|
|
4100
|
+
(c) => {
|
|
4101
|
+
const { active: R, over: I } = c, v = () => {
|
|
4105
4102
|
l.current = null, i(null), o(null);
|
|
4106
4103
|
};
|
|
4107
4104
|
if (!I) {
|
|
4108
|
-
|
|
4105
|
+
v();
|
|
4109
4106
|
return;
|
|
4110
4107
|
}
|
|
4111
4108
|
const M = Ke(t, R.id), S = nt(t, I.id);
|
|
4112
4109
|
if (!M || !S) {
|
|
4113
|
-
|
|
4110
|
+
v();
|
|
4114
4111
|
return;
|
|
4115
4112
|
}
|
|
4116
|
-
let
|
|
4113
|
+
let f = t.map((b) => ({ ...b, items: [...b.items] }));
|
|
4117
4114
|
if (M === S) {
|
|
4118
|
-
const
|
|
4119
|
-
|
|
4115
|
+
const b = f.findIndex((P) => P.zoneKey === M), D = f[b], T = D.items.findIndex((P) => P.id === R.id), y = D.items.findIndex((P) => P.id === I.id), x = y >= 0 ? y : Math.max(0, D.items.length - 1);
|
|
4116
|
+
f[b] = {
|
|
4120
4117
|
...D,
|
|
4121
4118
|
items: tn(D.items, T, x)
|
|
4122
4119
|
};
|
|
4123
4120
|
} else {
|
|
4124
|
-
const
|
|
4121
|
+
const b = f.findIndex((L) => L.zoneKey === M), D = f.findIndex((L) => L.zoneKey === S), T = f[b], y = f[D], x = T.items.find((L) => L.id === R.id);
|
|
4125
4122
|
if (!x) {
|
|
4126
|
-
|
|
4123
|
+
v();
|
|
4127
4124
|
return;
|
|
4128
4125
|
}
|
|
4129
|
-
const P = T.items.filter((L) => L.id !== R.id), H =
|
|
4130
|
-
let U = P, j = [...
|
|
4131
|
-
if (
|
|
4126
|
+
const P = T.items.filter((L) => L.id !== R.id), H = y.items.findIndex((L) => L.id === I.id), Y = H >= 0 ? H : y.items.length;
|
|
4127
|
+
let U = P, j = [...y.items];
|
|
4128
|
+
if (y.maxItems !== void 0 && j.length >= y.maxItems) {
|
|
4132
4129
|
const L = j[j.length - 1];
|
|
4133
|
-
j = j.slice(0,
|
|
4130
|
+
j = j.slice(0, y.maxItems - 1), U = [...P, L];
|
|
4134
4131
|
}
|
|
4135
4132
|
const B = Math.min(Y, j.length), Z = [
|
|
4136
4133
|
...j.slice(0, B),
|
|
4137
4134
|
x,
|
|
4138
4135
|
...j.slice(B)
|
|
4139
4136
|
];
|
|
4140
|
-
|
|
4137
|
+
f[b] = { ...T, items: U }, f[D] = { ...y, items: Z };
|
|
4141
4138
|
}
|
|
4142
|
-
n(
|
|
4139
|
+
n(f), m.current?.(f), v();
|
|
4143
4140
|
},
|
|
4144
4141
|
[t]
|
|
4145
|
-
),
|
|
4146
|
-
(
|
|
4147
|
-
id:
|
|
4148
|
-
"data-zone-key":
|
|
4142
|
+
), w = N(
|
|
4143
|
+
(c) => ({
|
|
4144
|
+
id: c,
|
|
4145
|
+
"data-zone-key": c
|
|
4149
4146
|
}),
|
|
4150
4147
|
[]
|
|
4151
|
-
),
|
|
4152
|
-
(
|
|
4153
|
-
const R = Ke(t,
|
|
4148
|
+
), _ = N(
|
|
4149
|
+
(c) => {
|
|
4150
|
+
const R = Ke(t, c.id) ?? "";
|
|
4154
4151
|
return {
|
|
4155
|
-
id:
|
|
4156
|
-
"data-item-id":
|
|
4152
|
+
id: c.id,
|
|
4153
|
+
"data-item-id": c.id,
|
|
4157
4154
|
"data-zone-key": R
|
|
4158
4155
|
};
|
|
4159
4156
|
},
|
|
@@ -4163,11 +4160,11 @@ function nn(e) {
|
|
|
4163
4160
|
zones: t,
|
|
4164
4161
|
activeZone: s,
|
|
4165
4162
|
activeItem: a,
|
|
4166
|
-
getZoneProps:
|
|
4167
|
-
getItemProps:
|
|
4168
|
-
handleDragStart:
|
|
4163
|
+
getZoneProps: w,
|
|
4164
|
+
getItemProps: _,
|
|
4165
|
+
handleDragStart: p,
|
|
4169
4166
|
handleDragOver: g,
|
|
4170
|
-
handleDragEnd:
|
|
4167
|
+
handleDragEnd: u
|
|
4171
4168
|
};
|
|
4172
4169
|
}
|
|
4173
4170
|
let he = null, Ce = null, Ee = !1;
|
|
@@ -4217,17 +4214,17 @@ function ln() {
|
|
|
4217
4214
|
})(), Ce);
|
|
4218
4215
|
}
|
|
4219
4216
|
function cn(e) {
|
|
4220
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = nn({ zones: t, onZoneChange: n }), [l,
|
|
4217
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = nn({ zones: t, onZoneChange: n }), [l, m] = V.useState(he);
|
|
4221
4218
|
return V.useEffect(() => {
|
|
4222
4219
|
if (l) return;
|
|
4223
|
-
let
|
|
4220
|
+
let d = !0;
|
|
4224
4221
|
return ln().then((h) => {
|
|
4225
|
-
|
|
4222
|
+
d && m(h);
|
|
4226
4223
|
}), () => {
|
|
4227
|
-
|
|
4224
|
+
d = !1;
|
|
4228
4225
|
};
|
|
4229
4226
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
4230
|
-
|
|
4227
|
+
ft,
|
|
4231
4228
|
{
|
|
4232
4229
|
state: o,
|
|
4233
4230
|
modules: l,
|
|
@@ -4235,35 +4232,35 @@ function cn(e) {
|
|
|
4235
4232
|
renderItem: i,
|
|
4236
4233
|
renderDragOverlay: s
|
|
4237
4234
|
}
|
|
4238
|
-
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((
|
|
4239
|
-
const h =
|
|
4240
|
-
return /* @__PURE__ */ r("div", { ...o.getZoneProps(
|
|
4235
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
4236
|
+
const h = d.items.map((p) => /* @__PURE__ */ r(V.Fragment, { children: i(p) }, p.id));
|
|
4237
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, h) }, d.zoneKey);
|
|
4241
4238
|
}) });
|
|
4242
4239
|
}
|
|
4243
4240
|
cn.displayName = "SortableZones";
|
|
4244
|
-
function
|
|
4241
|
+
function ft({
|
|
4245
4242
|
state: e,
|
|
4246
4243
|
modules: t,
|
|
4247
4244
|
renderZone: n,
|
|
4248
4245
|
renderItem: a,
|
|
4249
4246
|
renderDragOverlay: i
|
|
4250
4247
|
}) {
|
|
4251
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext:
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
),
|
|
4248
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: m, DragOverlay: d, useSensors: h, useSensor: p, useDroppable: g, PointerSensor: u, KeyboardSensor: w, closestCenter: _ } = s, { SortableContext: c, verticalListSortingStrategy: R } = o, I = h(
|
|
4249
|
+
p(u, { activationConstraint: { distance: 5 } }),
|
|
4250
|
+
p(w)
|
|
4251
|
+
), v = m, M = d, S = c;
|
|
4255
4252
|
return /* @__PURE__ */ k(
|
|
4256
|
-
|
|
4253
|
+
v,
|
|
4257
4254
|
{
|
|
4258
4255
|
sensors: I,
|
|
4259
|
-
collisionDetection:
|
|
4256
|
+
collisionDetection: _,
|
|
4260
4257
|
onDragStart: e.handleDragStart,
|
|
4261
4258
|
onDragOver: e.handleDragOver,
|
|
4262
4259
|
onDragEnd: e.handleDragEnd,
|
|
4263
4260
|
children: [
|
|
4264
|
-
e.zones.map((
|
|
4265
|
-
const
|
|
4266
|
-
|
|
4261
|
+
e.zones.map((f) => {
|
|
4262
|
+
const b = f.items.map((T) => T.id), D = f.items.map((T) => /* @__PURE__ */ r(
|
|
4263
|
+
ht,
|
|
4267
4264
|
{
|
|
4268
4265
|
id: T.id,
|
|
4269
4266
|
useSortable: o.useSortable,
|
|
@@ -4273,14 +4270,14 @@ function pt({
|
|
|
4273
4270
|
T.id
|
|
4274
4271
|
));
|
|
4275
4272
|
return /* @__PURE__ */ r(
|
|
4276
|
-
|
|
4273
|
+
bt,
|
|
4277
4274
|
{
|
|
4278
|
-
zoneKey:
|
|
4279
|
-
zoneProps: e.getZoneProps(
|
|
4275
|
+
zoneKey: f.zoneKey,
|
|
4276
|
+
zoneProps: e.getZoneProps(f.zoneKey),
|
|
4280
4277
|
useDroppable: g,
|
|
4281
|
-
children: /* @__PURE__ */ r(S, { items:
|
|
4278
|
+
children: /* @__PURE__ */ r(S, { items: b, strategy: R, children: n(f.zoneKey, f.items, D) })
|
|
4282
4279
|
},
|
|
4283
|
-
|
|
4280
|
+
f.zoneKey
|
|
4284
4281
|
);
|
|
4285
4282
|
}),
|
|
4286
4283
|
/* @__PURE__ */ r(M, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
@@ -4288,17 +4285,17 @@ function pt({
|
|
|
4288
4285
|
}
|
|
4289
4286
|
);
|
|
4290
4287
|
}
|
|
4291
|
-
|
|
4292
|
-
function
|
|
4293
|
-
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition:
|
|
4288
|
+
ft.displayName = "SortableZonesInner";
|
|
4289
|
+
function ht({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
4290
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: m, isDragging: d } = t({ id: e }), h = {
|
|
4294
4291
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
4295
|
-
transition:
|
|
4296
|
-
opacity:
|
|
4292
|
+
transition: m,
|
|
4293
|
+
opacity: d ? 0.5 : 1
|
|
4297
4294
|
};
|
|
4298
4295
|
return /* @__PURE__ */ r("div", { ref: o, style: h, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
4299
4296
|
}
|
|
4300
|
-
|
|
4301
|
-
function
|
|
4297
|
+
ht.displayName = "SortableItem";
|
|
4298
|
+
function bt({
|
|
4302
4299
|
zoneKey: e,
|
|
4303
4300
|
zoneProps: t,
|
|
4304
4301
|
useDroppable: n,
|
|
@@ -4307,8 +4304,8 @@ function ht({
|
|
|
4307
4304
|
const { setNodeRef: i, isOver: s } = n({ id: e });
|
|
4308
4305
|
return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
4309
4306
|
}
|
|
4310
|
-
|
|
4311
|
-
function
|
|
4307
|
+
bt.displayName = "ZoneDroppable";
|
|
4308
|
+
function Wr({
|
|
4312
4309
|
slotLeft: e,
|
|
4313
4310
|
slotCenter: t,
|
|
4314
4311
|
slotRight: n,
|
|
@@ -4358,7 +4355,7 @@ function jr({
|
|
|
4358
4355
|
}
|
|
4359
4356
|
);
|
|
4360
4357
|
}
|
|
4361
|
-
function
|
|
4358
|
+
function jr({
|
|
4362
4359
|
count: e,
|
|
4363
4360
|
currentIndex: t,
|
|
4364
4361
|
onSelect: n,
|
|
@@ -4367,27 +4364,27 @@ function Gr({
|
|
|
4367
4364
|
pulseIndex: s,
|
|
4368
4365
|
pulseNonce: o,
|
|
4369
4366
|
currentSection: l,
|
|
4370
|
-
sectionsPerView:
|
|
4367
|
+
sectionsPerView: m = 1
|
|
4371
4368
|
// D-09 default
|
|
4372
4369
|
}) {
|
|
4373
|
-
const
|
|
4374
|
-
return
|
|
4370
|
+
const d = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, d)), p = Math.min(e - 1, h + Math.max(0, m - 1)), g = [h, p], u = ce.useRef([]);
|
|
4371
|
+
return u.current.length = e, e <= 1 || g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ k(
|
|
4375
4372
|
"div",
|
|
4376
4373
|
{
|
|
4377
4374
|
role: "tablist",
|
|
4378
4375
|
"aria-label": a,
|
|
4379
4376
|
"data-testid": "gloss-section-dots",
|
|
4380
4377
|
className: "gloss-section-dots",
|
|
4381
|
-
onKeyDown: (
|
|
4378
|
+
onKeyDown: (_) => {
|
|
4382
4379
|
if (e !== 0) {
|
|
4383
|
-
if (
|
|
4384
|
-
|
|
4385
|
-
const
|
|
4386
|
-
n(
|
|
4387
|
-
} else if (
|
|
4388
|
-
|
|
4389
|
-
const
|
|
4390
|
-
n(
|
|
4380
|
+
if (_.key === "ArrowRight") {
|
|
4381
|
+
_.preventDefault();
|
|
4382
|
+
const c = (d + 1) % e;
|
|
4383
|
+
n(c), requestAnimationFrame(() => u.current[c]?.focus());
|
|
4384
|
+
} else if (_.key === "ArrowLeft") {
|
|
4385
|
+
_.preventDefault();
|
|
4386
|
+
const c = (d - 1 + e) % e;
|
|
4387
|
+
n(c), requestAnimationFrame(() => u.current[c]?.focus());
|
|
4391
4388
|
}
|
|
4392
4389
|
}
|
|
4393
4390
|
},
|
|
@@ -4403,25 +4400,25 @@ function Gr({
|
|
|
4403
4400
|
}
|
|
4404
4401
|
}
|
|
4405
4402
|
),
|
|
4406
|
-
Array.from({ length: e }, (
|
|
4403
|
+
Array.from({ length: e }, (_, c) => /* @__PURE__ */ r(
|
|
4407
4404
|
"button",
|
|
4408
4405
|
{
|
|
4409
4406
|
ref: (R) => {
|
|
4410
|
-
|
|
4407
|
+
u.current[c] = R;
|
|
4411
4408
|
},
|
|
4412
4409
|
type: "button",
|
|
4413
4410
|
role: "tab",
|
|
4414
|
-
"aria-selected":
|
|
4415
|
-
"aria-label":
|
|
4416
|
-
"data-state":
|
|
4417
|
-
"data-section-index":
|
|
4411
|
+
"aria-selected": c === d,
|
|
4412
|
+
"aria-label": c === i ? "Unconfirmed section" : `Section ${c + 1}`,
|
|
4413
|
+
"data-state": c === i ? "provisional-hollow" : c === s ? "pulse" : c === d ? "current" : "hollow",
|
|
4414
|
+
"data-section-index": c,
|
|
4418
4415
|
className: [
|
|
4419
4416
|
"gloss-section-dots__dot",
|
|
4420
|
-
|
|
4417
|
+
c === d && "gloss-section-dots__dot--current"
|
|
4421
4418
|
].filter(Boolean).join(" "),
|
|
4422
|
-
onClick: () => n(
|
|
4419
|
+
onClick: () => n(c)
|
|
4423
4420
|
},
|
|
4424
|
-
|
|
4421
|
+
c === s ? `${c}-${o ?? 0}` : c
|
|
4425
4422
|
))
|
|
4426
4423
|
]
|
|
4427
4424
|
}
|
|
@@ -4447,228 +4444,228 @@ const mn = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
|
4447
4444
|
});
|
|
4448
4445
|
mn.displayName = "ContainerTable";
|
|
4449
4446
|
export {
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4447
|
+
Hr as Accordion,
|
|
4448
|
+
Ur as AccordionContent,
|
|
4449
|
+
Zr as AccordionItem,
|
|
4450
|
+
Yr as AccordionTrigger,
|
|
4451
|
+
qr as ActionStrip,
|
|
4452
|
+
Qr as Actionable,
|
|
4453
|
+
Xr as AddressGroup,
|
|
4454
|
+
Jr as AddressSelect,
|
|
4455
|
+
es as AsyncLoader,
|
|
4456
|
+
ts as Autocomplete,
|
|
4457
|
+
as as Badge,
|
|
4458
|
+
ns as BarChartCard,
|
|
4459
|
+
rs as BarsBg,
|
|
4460
|
+
Wr as BottomToolbar,
|
|
4461
|
+
ss as Button,
|
|
4462
|
+
is as ButtonGroup,
|
|
4463
|
+
os as ButtonGroupContext,
|
|
4464
|
+
ls as Card,
|
|
4465
|
+
cs as CardActions,
|
|
4466
|
+
ds as CardBack,
|
|
4467
|
+
us as CardBody,
|
|
4468
|
+
ms as CardFooter,
|
|
4469
|
+
gs as CardHeader,
|
|
4470
|
+
ps as CardMedia,
|
|
4474
4471
|
Dt as CardShell,
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4472
|
+
fs as CardSubtitle,
|
|
4473
|
+
hs as CardTitle,
|
|
4474
|
+
Rr as CascadePreview,
|
|
4475
|
+
$r as CellTintOverlay,
|
|
4476
|
+
bs as ChartControlBar,
|
|
4477
|
+
vs as Checkbox,
|
|
4478
|
+
ys as CheckboxGroup,
|
|
4479
|
+
ws as Chip,
|
|
4480
|
+
_s as ColorPicker,
|
|
4481
|
+
Ns as ComparisonCard,
|
|
4482
|
+
Ds as ContactForm,
|
|
4483
|
+
ks as ContainerCard,
|
|
4484
|
+
Cs as ContainerCardActions,
|
|
4485
|
+
Ss as ContainerCardBody,
|
|
4486
|
+
xs as ContainerCardFooter,
|
|
4487
|
+
Rs as ContainerCardHeader,
|
|
4488
|
+
Ms as ContainerCardMedia,
|
|
4489
|
+
Ts as ContainerCardSubtitle,
|
|
4490
|
+
Is as ContainerCardTitle,
|
|
4491
|
+
Es as ContainerDialog,
|
|
4492
|
+
Ps as ContainerDialogActions,
|
|
4493
|
+
Fs as ContainerDialogBody,
|
|
4494
|
+
As as ContainerDialogHeader,
|
|
4498
4495
|
un as ContainerFormSection,
|
|
4499
|
-
|
|
4496
|
+
Os as ContainerPanel,
|
|
4500
4497
|
mn as ContainerTable,
|
|
4501
4498
|
dn as ContainerToolbar,
|
|
4502
|
-
|
|
4503
|
-
|
|
4499
|
+
Ls as CreditCardForm,
|
|
4500
|
+
$s as DEFAULT_FOOTER_IDS,
|
|
4504
4501
|
ie as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4505
4502
|
fl as DEFAULT_MARKET_PRESETS,
|
|
4506
|
-
|
|
4503
|
+
Bs as DEFAULT_OVERFLOW_IDS,
|
|
4507
4504
|
hl as DEFAULT_PINNED,
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4505
|
+
it as DEFAULT_RESIZE_PHYSICS,
|
|
4506
|
+
Ks as DataTable,
|
|
4507
|
+
zs as DatePicker,
|
|
4508
|
+
Ws as DateRangePicker,
|
|
4509
|
+
js as DestructiveModal,
|
|
4513
4510
|
Na as DevTuningPanel,
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4511
|
+
Gs as DirectionCard,
|
|
4512
|
+
Vs as Dismissible,
|
|
4513
|
+
Hs as DistributionCard,
|
|
4514
|
+
Us as DonutChart,
|
|
4515
|
+
Sr as DragGhost,
|
|
4519
4516
|
Nr as DropAnchorCell,
|
|
4520
|
-
|
|
4517
|
+
Zs as Dropdown,
|
|
4521
4518
|
Sa as DualPaceBars,
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4519
|
+
Ys as ENTITY_FILTER_KEYS,
|
|
4520
|
+
qs as ENTITY_PROFILE_ROUTES,
|
|
4521
|
+
Qs as ENTITY_TYPE_PLURAL,
|
|
4525
4522
|
Ht as EdgeHoverHandle,
|
|
4526
4523
|
Cr as EmptyCellPackAffordance,
|
|
4527
|
-
|
|
4524
|
+
Xs as EntityPicker,
|
|
4528
4525
|
X as EntityRow,
|
|
4529
|
-
|
|
4526
|
+
Js as EntitySearchPanel,
|
|
4530
4527
|
$a as ExceptionListCard,
|
|
4531
4528
|
Ba as ExceptionListTilePreview,
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4529
|
+
ei as Expandable,
|
|
4530
|
+
ti as ExpandableChip,
|
|
4531
|
+
ai as FLIP_AND_STAGE_TIMINGS,
|
|
4532
|
+
ni as FileUpload,
|
|
4533
|
+
ri as FilterChip,
|
|
4534
|
+
si as FilterInput,
|
|
4535
|
+
ii as FlipAndStageProvider,
|
|
4536
|
+
oi as Form,
|
|
4537
|
+
li as FormDialog,
|
|
4538
|
+
ci as FormField,
|
|
4539
|
+
di as FusedShape,
|
|
4543
4540
|
xa as GapReadout,
|
|
4544
|
-
|
|
4541
|
+
ui as GestureStateProvider,
|
|
4545
4542
|
Ut as GhostPreview,
|
|
4546
|
-
|
|
4547
|
-
|
|
4543
|
+
mi as GroupCheckbox,
|
|
4544
|
+
gi as GroupRadio,
|
|
4548
4545
|
zn as HARD_CLIP,
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4546
|
+
pi as HighlightCard,
|
|
4547
|
+
fi as HybridDatePicker,
|
|
4548
|
+
hi as ImportWizard,
|
|
4552
4549
|
Za as InlineNudge,
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4550
|
+
bi as Input,
|
|
4551
|
+
vi as InputAddon,
|
|
4552
|
+
yi as InputGroup,
|
|
4556
4553
|
Fa as LeaderboardCard,
|
|
4557
4554
|
Aa as LeaderboardTilePreview,
|
|
4558
4555
|
Ta as LensChipGroup,
|
|
4559
|
-
|
|
4560
|
-
|
|
4556
|
+
wi as Link,
|
|
4557
|
+
_i as LoginForm,
|
|
4561
4558
|
_e as MagnitudeBar,
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4559
|
+
Ni as MarketPresetRow,
|
|
4560
|
+
Di as MaskPresets,
|
|
4561
|
+
ki as MaskedInput,
|
|
4562
|
+
Ci as Menu,
|
|
4563
|
+
Si as MenuDivider,
|
|
4564
|
+
xi as MenuGroup,
|
|
4565
|
+
Ri as MenuItem,
|
|
4566
|
+
Mi as MergePrompt,
|
|
4567
|
+
Ti as MetricCard,
|
|
4568
|
+
Ii as MetricCardGrid,
|
|
4572
4569
|
ga as MetricGroupContainer,
|
|
4573
|
-
|
|
4570
|
+
Ei as MiniCalendar,
|
|
4574
4571
|
Ea as MoreInLensRail,
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4572
|
+
Pi as MultiSelect,
|
|
4573
|
+
Fi as NumberInput,
|
|
4574
|
+
Ai as ObjectArrow,
|
|
4575
|
+
Oi as OrderFilterBar,
|
|
4579
4576
|
bl as PERIOD_OPTIONS,
|
|
4580
|
-
|
|
4581
|
-
|
|
4577
|
+
Mr as PaceCard,
|
|
4578
|
+
Tr as PaceTilePreview,
|
|
4582
4579
|
ta as PageChip,
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4580
|
+
ot as PageDropdown,
|
|
4581
|
+
Li as PasswordInput,
|
|
4582
|
+
$i as PaymentForm,
|
|
4583
|
+
Bi as PaymentMethodSelect,
|
|
4584
|
+
Ki as PhoneInput,
|
|
4585
|
+
zi as PinToMetric,
|
|
4589
4586
|
en as PresetSwatchRow,
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4587
|
+
Wi as ProfileCard,
|
|
4588
|
+
ji as ProgressCard,
|
|
4589
|
+
Gi as QuickConfigPanel,
|
|
4593
4590
|
la as RECONFIG_BACKSIDE_LABELS,
|
|
4594
4591
|
vl as ROLLING_OPTIONS,
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4592
|
+
Vi as Radio,
|
|
4593
|
+
Hi as RadioGroup,
|
|
4594
|
+
Ui as RangeSlider,
|
|
4598
4595
|
ye as RankBadge,
|
|
4599
|
-
|
|
4600
|
-
|
|
4596
|
+
gt as RankDelta,
|
|
4597
|
+
Zi as Rating,
|
|
4601
4598
|
ua as ReconfigBacksideButtons,
|
|
4602
|
-
|
|
4603
|
-
|
|
4599
|
+
Br as RefusePulse,
|
|
4600
|
+
Yi as RegistrationForm,
|
|
4604
4601
|
_r as ResizeEnvelope,
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4602
|
+
Kr as ResizeTrackingOutline,
|
|
4603
|
+
qi as Row1Controls,
|
|
4604
|
+
Qi as Row2FilterTray,
|
|
4605
|
+
Er as STROKE_DASHED,
|
|
4606
|
+
Or as STROKE_DASHED_DASHARRAY,
|
|
4607
|
+
Ar as STROKE_OUTLINE,
|
|
4608
|
+
Pr as STROKE_SOLID,
|
|
4609
|
+
Fr as STROKE_SPARSE_DASH,
|
|
4610
|
+
Lr as STROKE_SPARSE_DASH_DASHARRAY,
|
|
4611
|
+
Xi as SearchInput,
|
|
4615
4612
|
kr as SectionDivider,
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4613
|
+
jr as SectionDots,
|
|
4614
|
+
Ji as SegmentCard,
|
|
4615
|
+
eo as SegmentedControl,
|
|
4616
|
+
to as Select,
|
|
4617
|
+
ao as Selectable,
|
|
4621
4618
|
we as SeverityDot,
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4619
|
+
no as SimpleMetricCard,
|
|
4620
|
+
ro as SimpleSelector,
|
|
4621
|
+
so as Skeleton,
|
|
4622
|
+
io as SkeletonCard,
|
|
4623
|
+
oo as SkeletonChart,
|
|
4624
|
+
lo as SkeletonTable,
|
|
4625
|
+
co as Slider,
|
|
4626
|
+
xr as SnapOutline,
|
|
4627
|
+
uo as Sortable,
|
|
4631
4628
|
cn as SortableZones,
|
|
4632
|
-
|
|
4629
|
+
mo as SparklineBg,
|
|
4633
4630
|
Dr as SpilloverArc,
|
|
4634
|
-
|
|
4635
|
-
|
|
4631
|
+
go as SplitButton,
|
|
4632
|
+
po as StackedGroupCard,
|
|
4636
4633
|
Ka as StackedGroupTilePreview,
|
|
4637
4634
|
Ia as StarterRail,
|
|
4638
|
-
|
|
4635
|
+
fo as StatusModeCard,
|
|
4639
4636
|
Vt as StatusSlotChipMenu,
|
|
4640
|
-
|
|
4637
|
+
ho as Stepper,
|
|
4641
4638
|
Oe as SwingReveal,
|
|
4642
4639
|
yl as TODAY_PRESET,
|
|
4643
4640
|
re as TUNING_DEFAULTS,
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4641
|
+
ut as TUNING_STORAGE_KEY,
|
|
4642
|
+
bo as TabGroup,
|
|
4643
|
+
vo as TabbedDataView,
|
|
4644
|
+
yo as TagInput,
|
|
4648
4645
|
$t as TargetInput,
|
|
4649
|
-
|
|
4646
|
+
wo as Textarea,
|
|
4650
4647
|
Qa as ThresholdRamp,
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4648
|
+
_o as TimeFrame,
|
|
4649
|
+
No as TimePicker,
|
|
4650
|
+
Do as Toggle,
|
|
4651
|
+
ko as Tooltip,
|
|
4652
|
+
mt as TrackingOutline,
|
|
4653
|
+
Co as Transition,
|
|
4654
|
+
So as TransitionGroup,
|
|
4655
|
+
xo as TrendCard,
|
|
4656
|
+
Ro as TrendIndicator,
|
|
4660
4657
|
ml as UIContext,
|
|
4661
4658
|
ze as UIContextProvider,
|
|
4662
|
-
|
|
4663
|
-
|
|
4659
|
+
Mo as UnifiedBreakdownTable,
|
|
4660
|
+
To as UnifiedContextMenu,
|
|
4664
4661
|
Zt as VelocityBuffer,
|
|
4665
|
-
|
|
4666
|
-
|
|
4662
|
+
Io as addressGroupMetadata,
|
|
4663
|
+
Eo as addressSchema,
|
|
4667
4664
|
Rn as allChips,
|
|
4668
4665
|
Hn as allStateFixtures,
|
|
4669
4666
|
Vn as allVariantFixtures,
|
|
4670
4667
|
En as blockSamples,
|
|
4671
|
-
|
|
4668
|
+
Po as buildDefaultOverflow,
|
|
4672
4669
|
Ln as cardSamples,
|
|
4673
4670
|
le as cascadePhysics,
|
|
4674
4671
|
An as chartSamples,
|
|
@@ -4677,22 +4674,22 @@ export {
|
|
|
4677
4674
|
pr as compactLayout,
|
|
4678
4675
|
nr as compactState,
|
|
4679
4676
|
Gn as computeGutterAnchorX,
|
|
4680
|
-
|
|
4681
|
-
|
|
4677
|
+
Fo as contactFormMetadata,
|
|
4678
|
+
Ao as contactSchema,
|
|
4682
4679
|
rr as contextMenuFixtures,
|
|
4683
|
-
|
|
4684
|
-
|
|
4680
|
+
Oo as creditCardFormMetadata,
|
|
4681
|
+
Lo as creditCardSchema,
|
|
4685
4682
|
zt as dateChip,
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4683
|
+
dt as defaultControlBarState,
|
|
4684
|
+
$o as destructiveModalMetadata,
|
|
4685
|
+
Bo as durations,
|
|
4686
|
+
Ko as easings,
|
|
4690
4687
|
Qt as emptyFixture,
|
|
4691
4688
|
Bt as entityChip,
|
|
4692
4689
|
sa as entityNameActions,
|
|
4693
4690
|
Tn as entityTabGroup,
|
|
4694
4691
|
qt as errorFixture,
|
|
4695
|
-
|
|
4692
|
+
zo as evaluateTintCondition,
|
|
4696
4693
|
ar as filteredState,
|
|
4697
4694
|
wl as findPreset,
|
|
4698
4695
|
_l as formatDateRange,
|
|
@@ -4701,28 +4698,28 @@ export {
|
|
|
4701
4698
|
kl as formatValue,
|
|
4702
4699
|
hr as fullLayout,
|
|
4703
4700
|
Cl as generateMarketId,
|
|
4704
|
-
|
|
4701
|
+
Wo as generateTabId,
|
|
4705
4702
|
Sl as getAllPresets,
|
|
4706
4703
|
xl as getDateRangeForPreset,
|
|
4707
|
-
|
|
4708
|
-
|
|
4704
|
+
jo as getMenuActions,
|
|
4705
|
+
st as getMotionMode,
|
|
4709
4706
|
Rl as getPresetLabel,
|
|
4710
|
-
|
|
4707
|
+
Go as getTransitionStyle,
|
|
4711
4708
|
gr as gridCards,
|
|
4712
|
-
|
|
4713
|
-
|
|
4709
|
+
Ir as gridChannels,
|
|
4710
|
+
Vo as interpolate,
|
|
4714
4711
|
Ml as isInRange,
|
|
4715
4712
|
Tl as isMarketActive,
|
|
4716
4713
|
Il as isSameDay,
|
|
4717
4714
|
tr as itemColumns,
|
|
4718
4715
|
Jn as itemRows,
|
|
4719
4716
|
Yt as loadingFixture,
|
|
4720
|
-
|
|
4721
|
-
|
|
4717
|
+
Ho as loginFormMetadata,
|
|
4718
|
+
Uo as loginSchema,
|
|
4722
4719
|
Wt as manufacturerChip,
|
|
4723
4720
|
wr as manyTabs,
|
|
4724
|
-
|
|
4725
|
-
|
|
4721
|
+
Zo as mergeHandlers,
|
|
4722
|
+
Yo as mergeRefs,
|
|
4726
4723
|
Mn as metricTabGroup,
|
|
4727
4724
|
vr as mixedTabs,
|
|
4728
4725
|
El as normalizePresetId,
|
|
@@ -4733,14 +4730,14 @@ export {
|
|
|
4733
4730
|
br as ordersTabs,
|
|
4734
4731
|
at as paletteHex,
|
|
4735
4732
|
se as paletteVars,
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4733
|
+
qo as parseNumericValue,
|
|
4734
|
+
Qo as paymentFormMetadata,
|
|
4735
|
+
Xo as paymentSchema,
|
|
4736
|
+
Jo as presets,
|
|
4740
4737
|
Bn as provisional,
|
|
4741
4738
|
Kn as reducedMotion,
|
|
4742
|
-
|
|
4743
|
-
|
|
4739
|
+
el as registrationFormMetadata,
|
|
4740
|
+
tl as registrationSchema,
|
|
4744
4741
|
$n as rejectionFeedback,
|
|
4745
4742
|
ir as sampleCompareRanges,
|
|
4746
4743
|
cr as sampleCustomMarkets,
|
|
@@ -4766,20 +4763,20 @@ export {
|
|
|
4766
4763
|
Pn as textSamples,
|
|
4767
4764
|
In as timeFrameTabGroup,
|
|
4768
4765
|
Pl as toUppercasePresetId,
|
|
4769
|
-
|
|
4766
|
+
rt as useAffordanceVisibility,
|
|
4770
4767
|
xn as useArrowNavigation,
|
|
4771
|
-
|
|
4768
|
+
al as useCheckboxGroupContext,
|
|
4772
4769
|
jn as useEdgeHoverResize,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4770
|
+
nl as useFilterLayout,
|
|
4771
|
+
rl as useFlipAndStage,
|
|
4772
|
+
sl as useFlipAndStageContext,
|
|
4773
|
+
il as useFlipAndStageContextOptional,
|
|
4777
4774
|
Sn as useFocusReturn,
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4775
|
+
ol as useFocusTrap,
|
|
4776
|
+
ll as useFormContext,
|
|
4777
|
+
cl as useGestureState,
|
|
4781
4778
|
dl as useRadioGroupContext,
|
|
4782
|
-
|
|
4779
|
+
zr as useResizeChoreography,
|
|
4783
4780
|
ha as useResizeTuning,
|
|
4784
4781
|
nn as useSortableZones,
|
|
4785
4782
|
gl as useUIContext
|