@mt-gloss/ui 0.0.23 → 0.0.24
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-BYdvJg3S.js → Expandable-GaZcfHDZ.js} +2202 -2237
- package/catalog.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +960 -837
- package/lib/facade/data-display.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/flipAndStage/types.d.ts +20 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/ReconfigBacksideButtons.d.ts +13 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/__tests__/fixtures/nyquist-10-matrix.d.ts +19 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/index.d.ts +5 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/types.d.ts +47 -0
- package/lib/primitives/dashboard/index.d.ts +1 -0
- package/lib/primitives/overlays/ActionStrip/__tests__/fixtures/nyquist-09-parity-matrix.d.ts +18 -0
- package/lib/primitives/overlays/ActionStrip/index.d.ts +1 -1
- package/lib/primitives/overlays/ActionStrip/types.d.ts +9 -11
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import F, { useRef as M, useEffect as P, useState as
|
|
4
|
-
import { B as Ce, U as
|
|
5
|
-
import { a as
|
|
1
|
+
import { N as Da, T as Na, O as Sa, Q as ka, a3 as Ta, b6 as xa, az as Ia, ah as Ra, Z as _a, an as Ma, K as Pa, a8 as Fa, bo as Ea, P as Oa, B as Aa, a as La, y as $a, H as Ba, bi as Ka, F as Ha, J as Ga, A as za, z as Va, bh as Za, E as Wa, D as Ua, bx as Ya, b as qa, C as ja, L as Qa, o as Xa, ad as Ja, aN as en, y as tn, H as an, F as nn, J as rn, A as on, z as sn, E as ln, D as dn, a$ as cn, b2 as un, b1 as mn, b0 as pn, b3 as gn, aC as bn, a5 as fn, a4 as hn, aq as vn, k as yn, m as wn, aF as Cn, ab as Dn, b8 as Nn, a9 as Sn, bp as kn, Y as Tn, bH as xn, bG as In, bI as Rn, ap as _n, aQ as Mn, ba as Pn, bM as Fn, bv as En, n as On, am as An, bB as Ln, bs as $n, a0 as Bn, ar as Kn, a2 as Hn, bA as Gn, G as zn, d as Vn, aa as Zn, bJ as Wn, aT as Un, r as Yn, v as qn, I as jn, g as Qn, aw as Xn, bN as Jn, M as er, w as tr, U as ar, X as nr, V as rr, W as or, as as sr, bg as ir, bP as lr, bL as dr, ao as cr, t as ur, bq as mr, aS as pr, aj as gr, aK as br, ag as fr, al as hr, au as vr, aR as yr, ac as wr, at as Cr, c as Dr, R as Nr, j as Sr, p as kr, aH as Tr, by as xr, bz as Ir, ai as Rr, ae as _r, h as Mr, x as Pr, b7 as Fr, af as Er, bO as Or, bc as Ar, bf as Lr, bd as $r, be as Br, i as Kr, b9 as Hr, bn as Gr, S as zr, bk as Vr, bl as Zr, av as Wr, bb as Ur, bQ as Yr, ak as qr, s as jr, bK as Qr, l as Xr, f as Jr, q as eo, _ as to, $ as ao, a7 as no, bj as ro, bw as oo, bD as so, aA as io, aB as lo, a6 as co, aO as uo, aP as mo, aD as po, aE as go, aG as bo, aV as fo, aW as ho, bF as vo, bE as yo, aY as wo, aZ as Co, ax as Do, ay as No, b5 as So, b4 as ko, a_ as To, aL as xo, aM as Io, aX as Ro, aI as _o, aJ as Mo, u as Po, bC as Fo, br as Eo, bt as Oo, bu as Ao, aU as Lo, a1 as $o, e as Bo, bm as Ko } from "./Expandable-GaZcfHDZ.js";
|
|
2
|
+
import { jsxs as O, jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import F, { useRef as M, useEffect as P, useState as E, useCallback as y, forwardRef as ve, useMemo as ee, createContext as ye, useContext as we } from "react";
|
|
4
|
+
import { B as Ce, U as te } from "./UIContext-C3E-k7HI.js";
|
|
5
|
+
import { a as Go, u as zo } from "./UIContext-C3E-k7HI.js";
|
|
6
6
|
import { createPortal as De } from "react-dom";
|
|
7
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
8
|
-
|
|
7
|
+
import { DEFAULT_MARKET_PRESETS as Zo, DEFAULT_PINNED as Wo, PERIOD_OPTIONS as Uo, ROLLING_OPTIONS as Yo, TODAY_PRESET as qo, findPreset as jo, formatDateRange as Qo, formatMarketDates as Xo, formatTrend as Jo, formatValue as es, generateMarketId as ts, getAllPresets as as, getDateRangeForPreset as ns, getPresetLabel as rs, isInRange as os, isMarketActive as ss, isSameDay as is, normalizePresetId as ls, toUppercasePresetId as ds } from "@mt-gloss/utils";
|
|
8
|
+
import Ne from "@mui/icons-material/AccessTime";
|
|
9
|
+
import Se from "@mui/icons-material/Tune";
|
|
10
|
+
import ke from "@mui/icons-material/ViewColumn";
|
|
11
|
+
import Te from "@mui/icons-material/AspectRatio";
|
|
12
|
+
import xe from "@mui/icons-material/Palette";
|
|
13
|
+
import Ie from "@mui/icons-material/PushPin";
|
|
14
|
+
function Mt(e = {}) {
|
|
9
15
|
const { enabled: t = !0, returnTo: n } = e, a = M(null);
|
|
10
16
|
return P(() => {
|
|
11
17
|
t && (a.current = n || document.activeElement);
|
|
@@ -15,140 +21,140 @@ function gt(e = {}) {
|
|
|
15
21
|
}, 0);
|
|
16
22
|
}, [t]), a;
|
|
17
23
|
}
|
|
18
|
-
function
|
|
24
|
+
function Pt(e) {
|
|
19
25
|
const {
|
|
20
26
|
items: t,
|
|
21
27
|
activeIndex: n,
|
|
22
28
|
onActiveIndexChange: a,
|
|
23
29
|
loop: o = !0,
|
|
24
30
|
orientation: s = "vertical",
|
|
25
|
-
enabled:
|
|
26
|
-
isItemDisabled:
|
|
27
|
-
onSelect:
|
|
28
|
-
onEscape:
|
|
29
|
-
} = e, [w,
|
|
31
|
+
enabled: l = !0,
|
|
32
|
+
isItemDisabled: c,
|
|
33
|
+
onSelect: b,
|
|
34
|
+
onEscape: u
|
|
35
|
+
} = e, [w, C] = E(-1), i = n !== void 0 ? n : w, d = y(
|
|
30
36
|
(r) => {
|
|
31
|
-
n === void 0 &&
|
|
37
|
+
n === void 0 && C(r), a?.(r);
|
|
32
38
|
},
|
|
33
39
|
[n, a]
|
|
34
|
-
), S = y(() => t.map((r,
|
|
35
|
-
(r,
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
let
|
|
42
|
-
return o ?
|
|
40
|
+
), S = y(() => t.map((r, p) => ({ item: r, index: p })).filter(({ item: r, index: p }) => !c?.(r, p)).map(({ index: r }) => r), [t, c]), k = y(
|
|
41
|
+
(r, p) => {
|
|
42
|
+
const f = S();
|
|
43
|
+
if (f.length === 0) return -1;
|
|
44
|
+
const D = f.indexOf(r);
|
|
45
|
+
if (D === -1)
|
|
46
|
+
return p === 1 ? f.find((R) => R > r) ?? (o ? f[0] : -1) : [...f].reverse().find((_) => _ < r) ?? (o ? f[f.length - 1] : -1);
|
|
47
|
+
let N = D + p;
|
|
48
|
+
return o ? N = (N + f.length) % f.length : N = Math.max(0, Math.min(f.length - 1, N)), f[N];
|
|
43
49
|
},
|
|
44
50
|
[S, o]
|
|
45
|
-
),
|
|
51
|
+
), m = y(() => {
|
|
46
52
|
const r = S();
|
|
47
|
-
r.length > 0 &&
|
|
48
|
-
}, [S,
|
|
53
|
+
r.length > 0 && d(r[0]);
|
|
54
|
+
}, [S, d]), T = y(() => {
|
|
49
55
|
const r = S();
|
|
50
|
-
r.length > 0 &&
|
|
51
|
-
}, [S,
|
|
52
|
-
const r =
|
|
53
|
-
r !== -1 &&
|
|
54
|
-
}, [
|
|
55
|
-
const r =
|
|
56
|
-
r !== -1 &&
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
}, [
|
|
56
|
+
r.length > 0 && d(r[r.length - 1]);
|
|
57
|
+
}, [S, d]), I = y(() => {
|
|
58
|
+
const r = k(i, 1);
|
|
59
|
+
r !== -1 && d(r);
|
|
60
|
+
}, [i, k, d]), v = y(() => {
|
|
61
|
+
const r = k(i, -1);
|
|
62
|
+
r !== -1 && d(r);
|
|
63
|
+
}, [i, k, d]), x = y(() => {
|
|
64
|
+
d(-1);
|
|
65
|
+
}, [d]), h = y(
|
|
60
66
|
(r) => {
|
|
61
|
-
if (!
|
|
62
|
-
const { key:
|
|
63
|
-
if (
|
|
64
|
-
r.preventDefault(),
|
|
67
|
+
if (!l) return;
|
|
68
|
+
const { key: p } = r, f = p === "ArrowUp" && (s === "vertical" || s === "both"), D = p === "ArrowDown" && (s === "vertical" || s === "both"), N = p === "ArrowLeft" && (s === "horizontal" || s === "both"), R = p === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
69
|
+
if (f || N) {
|
|
70
|
+
r.preventDefault(), i === -1 ? T() : v();
|
|
65
71
|
return;
|
|
66
72
|
}
|
|
67
|
-
if (
|
|
68
|
-
r.preventDefault(),
|
|
73
|
+
if (D || R) {
|
|
74
|
+
r.preventDefault(), i === -1 ? m() : I();
|
|
69
75
|
return;
|
|
70
76
|
}
|
|
71
|
-
if (
|
|
72
|
-
r.preventDefault(),
|
|
77
|
+
if (p === "Home") {
|
|
78
|
+
r.preventDefault(), m();
|
|
73
79
|
return;
|
|
74
80
|
}
|
|
75
|
-
if (
|
|
76
|
-
r.preventDefault(),
|
|
81
|
+
if (p === "End") {
|
|
82
|
+
r.preventDefault(), T();
|
|
77
83
|
return;
|
|
78
84
|
}
|
|
79
|
-
if ((
|
|
85
|
+
if ((p === "Enter" || p === " ") && i >= 0 && i < t.length) {
|
|
80
86
|
r.preventDefault();
|
|
81
|
-
const _ = t[
|
|
82
|
-
|
|
87
|
+
const _ = t[i];
|
|
88
|
+
c?.(_, i) || b?.(_, i);
|
|
83
89
|
return;
|
|
84
90
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
91
|
+
if (p === "Escape") {
|
|
92
|
+
u?.();
|
|
87
93
|
return;
|
|
88
94
|
}
|
|
89
95
|
},
|
|
90
96
|
[
|
|
91
|
-
|
|
97
|
+
l,
|
|
92
98
|
s,
|
|
93
|
-
|
|
99
|
+
i,
|
|
94
100
|
t,
|
|
95
|
-
|
|
96
|
-
x,
|
|
101
|
+
m,
|
|
97
102
|
T,
|
|
103
|
+
I,
|
|
98
104
|
v,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
c,
|
|
106
|
+
b,
|
|
107
|
+
u
|
|
102
108
|
]
|
|
103
109
|
);
|
|
104
110
|
return {
|
|
105
|
-
focusedIndex:
|
|
106
|
-
setFocusedIndex:
|
|
111
|
+
focusedIndex: i,
|
|
112
|
+
setFocusedIndex: d,
|
|
107
113
|
handleKeyDown: h,
|
|
108
|
-
focusFirst:
|
|
109
|
-
focusLast:
|
|
110
|
-
focusNext:
|
|
114
|
+
focusFirst: m,
|
|
115
|
+
focusLast: T,
|
|
116
|
+
focusNext: I,
|
|
111
117
|
focusPrevious: v,
|
|
112
|
-
resetFocus:
|
|
118
|
+
resetFocus: x
|
|
113
119
|
};
|
|
114
120
|
}
|
|
115
121
|
const Z = (e) => {
|
|
116
|
-
},
|
|
122
|
+
}, Re = {
|
|
117
123
|
id: "entity-filter-1",
|
|
118
124
|
label: "Customer: Acme Corp",
|
|
119
125
|
field: "customer",
|
|
120
126
|
value: "acme-corp-123",
|
|
121
127
|
onRemove: Z
|
|
122
|
-
},
|
|
128
|
+
}, _e = {
|
|
123
129
|
id: "status-filter-1",
|
|
124
130
|
label: "Status: Open",
|
|
125
131
|
field: "status",
|
|
126
132
|
value: "open",
|
|
127
133
|
onRemove: Z
|
|
128
|
-
},
|
|
134
|
+
}, Me = {
|
|
129
135
|
id: "date-filter-1",
|
|
130
136
|
label: "Date: Mar 1 - Mar 15",
|
|
131
137
|
field: "dateRange",
|
|
132
138
|
value: "2026-03-01..2026-03-15",
|
|
133
139
|
onRemove: Z
|
|
134
|
-
},
|
|
140
|
+
}, Pe = {
|
|
135
141
|
id: "mfg-filter-1",
|
|
136
142
|
label: "Manufacturer: Widget Co",
|
|
137
143
|
field: "manufacturer",
|
|
138
144
|
value: "widget-co-456",
|
|
139
145
|
onRemove: Z
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
],
|
|
146
|
+
}, Ft = [
|
|
147
|
+
Re,
|
|
148
|
+
_e,
|
|
149
|
+
Me,
|
|
150
|
+
Pe
|
|
151
|
+
], Et = {
|
|
146
152
|
id: "metric-toggle",
|
|
147
153
|
tabs: [
|
|
148
154
|
{ id: "$", label: "$", mono: !0 },
|
|
149
155
|
{ id: "#", label: "#", mono: !0 }
|
|
150
156
|
]
|
|
151
|
-
},
|
|
157
|
+
}, Ot = {
|
|
152
158
|
id: "entity-type",
|
|
153
159
|
tabs: [
|
|
154
160
|
{ id: "orders", label: "Orders" },
|
|
@@ -156,7 +162,7 @@ const Z = (e) => {
|
|
|
156
162
|
{ id: "customers", label: "Customers" },
|
|
157
163
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
158
164
|
]
|
|
159
|
-
},
|
|
165
|
+
}, At = {
|
|
160
166
|
id: "time-frame",
|
|
161
167
|
tabs: [
|
|
162
168
|
{ id: "MTD", label: "MTD" },
|
|
@@ -164,26 +170,26 @@ const Z = (e) => {
|
|
|
164
170
|
{ id: "YTD", label: "YTD" },
|
|
165
171
|
{ id: "LYTD", label: "LYTD" }
|
|
166
172
|
]
|
|
167
|
-
},
|
|
173
|
+
}, Lt = [
|
|
168
174
|
{ variant: "block", width: "100%", height: 16 },
|
|
169
175
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
170
176
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
171
177
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
172
|
-
],
|
|
178
|
+
], $t = [
|
|
173
179
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
174
180
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
175
181
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
176
|
-
],
|
|
182
|
+
], Bt = [
|
|
177
183
|
{ variant: "circle", size: 24 },
|
|
178
184
|
{ variant: "circle", size: 40 },
|
|
179
185
|
{ variant: "circle", size: 64 }
|
|
180
|
-
],
|
|
186
|
+
], Kt = [
|
|
181
187
|
{ bars: 10, maxHeight: 120 },
|
|
182
188
|
{ bars: 5, maxHeight: 80 }
|
|
183
|
-
],
|
|
189
|
+
], Ht = [
|
|
184
190
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
185
191
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
186
|
-
],
|
|
192
|
+
], Gt = [
|
|
187
193
|
{ variant: "value", colSpan: 1 },
|
|
188
194
|
{ variant: "trend", colSpan: 2 },
|
|
189
195
|
{ variant: "target", colSpan: 1 }
|
|
@@ -213,50 +219,50 @@ const Z = (e) => {
|
|
|
213
219
|
width: "100%",
|
|
214
220
|
textAlign: "left",
|
|
215
221
|
border: "none"
|
|
216
|
-
}),
|
|
222
|
+
}), Fe = (e) => ({
|
|
217
223
|
...q(e),
|
|
218
224
|
color: e ? "#4338ca" : "#4f46e5",
|
|
219
225
|
fontWeight: 600
|
|
220
|
-
}),
|
|
226
|
+
}), Ee = {
|
|
221
227
|
height: 1,
|
|
222
228
|
background: "rgba(0,0,0,0.06)",
|
|
223
229
|
margin: "3px 10px"
|
|
224
230
|
};
|
|
225
|
-
function
|
|
231
|
+
function Oe({
|
|
226
232
|
open: e,
|
|
227
233
|
anchorEl: t,
|
|
228
234
|
statusId: n,
|
|
229
235
|
onOpenInTable: a,
|
|
230
236
|
onShowOnGraph: o,
|
|
231
237
|
overflowActions: s,
|
|
232
|
-
onClose:
|
|
238
|
+
onClose: l
|
|
233
239
|
}) {
|
|
234
|
-
const [
|
|
240
|
+
const [c, b] = E(null), u = M(null), w = y(() => {
|
|
235
241
|
if (!t) return { ...re, top: 0, left: 0 };
|
|
236
|
-
const
|
|
242
|
+
const d = t.getBoundingClientRect();
|
|
237
243
|
return {
|
|
238
244
|
...re,
|
|
239
|
-
top:
|
|
240
|
-
left:
|
|
245
|
+
top: d.bottom + 4,
|
|
246
|
+
left: d.left
|
|
241
247
|
};
|
|
242
248
|
}, [t]);
|
|
243
249
|
if (P(() => {
|
|
244
250
|
if (!e) return;
|
|
245
|
-
const
|
|
246
|
-
S.key === "Escape" &&
|
|
251
|
+
const d = (S) => {
|
|
252
|
+
S.key === "Escape" && l();
|
|
247
253
|
};
|
|
248
|
-
return document.addEventListener("keydown",
|
|
249
|
-
}, [e,
|
|
254
|
+
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
255
|
+
}, [e, l]), P(() => {
|
|
250
256
|
if (!e) return;
|
|
251
|
-
const
|
|
252
|
-
|
|
257
|
+
const d = (S) => {
|
|
258
|
+
u.current && !u.current.contains(S.target) && l();
|
|
253
259
|
};
|
|
254
|
-
return document.addEventListener("pointerdown",
|
|
255
|
-
}, [e,
|
|
256
|
-
const
|
|
260
|
+
return document.addEventListener("pointerdown", d, !0), () => document.removeEventListener("pointerdown", d, !0);
|
|
261
|
+
}, [e, l]), !e) return null;
|
|
262
|
+
const C = s && s.length > 0, i = /* @__PURE__ */ O(
|
|
257
263
|
"div",
|
|
258
264
|
{
|
|
259
|
-
ref:
|
|
265
|
+
ref: u,
|
|
260
266
|
"data-status-chip-menu": n,
|
|
261
267
|
role: "menu",
|
|
262
268
|
"aria-label": "Status actions",
|
|
@@ -266,11 +272,11 @@ function Ie({
|
|
|
266
272
|
"button",
|
|
267
273
|
{
|
|
268
274
|
role: "menuitem",
|
|
269
|
-
style:
|
|
270
|
-
onMouseEnter: () =>
|
|
271
|
-
onMouseLeave: () =>
|
|
275
|
+
style: Fe(c === "__primary"),
|
|
276
|
+
onMouseEnter: () => b("__primary"),
|
|
277
|
+
onMouseLeave: () => b(null),
|
|
272
278
|
onClick: () => {
|
|
273
|
-
a(n),
|
|
279
|
+
a(n), l();
|
|
274
280
|
},
|
|
275
281
|
children: "Open in table"
|
|
276
282
|
}
|
|
@@ -279,75 +285,75 @@ function Ie({
|
|
|
279
285
|
"button",
|
|
280
286
|
{
|
|
281
287
|
role: "menuitem",
|
|
282
|
-
style: q(
|
|
283
|
-
onMouseEnter: () =>
|
|
284
|
-
onMouseLeave: () =>
|
|
288
|
+
style: q(c === "__graph"),
|
|
289
|
+
onMouseEnter: () => b("__graph"),
|
|
290
|
+
onMouseLeave: () => b(null),
|
|
285
291
|
onClick: () => {
|
|
286
|
-
o(n),
|
|
292
|
+
o(n), l();
|
|
287
293
|
},
|
|
288
294
|
children: "Show on graph"
|
|
289
295
|
}
|
|
290
296
|
),
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
C && /* @__PURE__ */ g("div", { style: Ee }),
|
|
298
|
+
C && s?.map((d) => /* @__PURE__ */ g(
|
|
293
299
|
"button",
|
|
294
300
|
{
|
|
295
301
|
role: "menuitem",
|
|
296
|
-
style: q(
|
|
297
|
-
onMouseEnter: () =>
|
|
298
|
-
onMouseLeave: () =>
|
|
302
|
+
style: q(c === d.id),
|
|
303
|
+
onMouseEnter: () => b(d.id),
|
|
304
|
+
onMouseLeave: () => b(null),
|
|
299
305
|
onClick: () => {
|
|
300
|
-
|
|
306
|
+
d.onSelect(n), l();
|
|
301
307
|
},
|
|
302
|
-
children:
|
|
308
|
+
children: d.label
|
|
303
309
|
},
|
|
304
|
-
|
|
310
|
+
d.id
|
|
305
311
|
))
|
|
306
312
|
]
|
|
307
313
|
}
|
|
308
314
|
);
|
|
309
|
-
return De(
|
|
315
|
+
return De(i, document.body);
|
|
310
316
|
}
|
|
311
|
-
|
|
312
|
-
const
|
|
313
|
-
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: o, onPointerLeave: s, edge:
|
|
314
|
-
const
|
|
317
|
+
Oe.displayName = "StatusSlotChipMenu";
|
|
318
|
+
const Ae = ve(
|
|
319
|
+
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: o, onPointerLeave: s, edge: l = "right", ariaLabel: c = "Resize card" }, b) {
|
|
320
|
+
const u = t === "handle-visible" || t === "dragging", w = (i) => {
|
|
315
321
|
try {
|
|
316
|
-
|
|
322
|
+
i.currentTarget.setPointerCapture(i.pointerId);
|
|
317
323
|
} catch {
|
|
318
324
|
}
|
|
319
|
-
n(
|
|
320
|
-
},
|
|
325
|
+
n(i);
|
|
326
|
+
}, C = (i) => {
|
|
321
327
|
try {
|
|
322
|
-
|
|
328
|
+
i.currentTarget.hasPointerCapture?.(i.pointerId) && i.currentTarget.releasePointerCapture(i.pointerId);
|
|
323
329
|
} catch {
|
|
324
330
|
}
|
|
325
|
-
a(
|
|
331
|
+
a(i);
|
|
326
332
|
};
|
|
327
333
|
return /* @__PURE__ */ g(
|
|
328
334
|
"button",
|
|
329
335
|
{
|
|
330
|
-
ref:
|
|
336
|
+
ref: b,
|
|
331
337
|
type: "button",
|
|
332
|
-
"aria-label":
|
|
333
|
-
"data-edge":
|
|
338
|
+
"aria-label": c,
|
|
339
|
+
"data-edge": l,
|
|
334
340
|
"data-resize-state": t,
|
|
335
341
|
className: [
|
|
336
342
|
"gloss-edge-handle",
|
|
337
|
-
`gloss-edge-handle--${
|
|
338
|
-
|
|
343
|
+
`gloss-edge-handle--${l}`,
|
|
344
|
+
u ? "gloss-edge-handle--visible" : ""
|
|
339
345
|
].filter(Boolean).join(" "),
|
|
340
346
|
onPointerDown: w,
|
|
341
|
-
onPointerUp:
|
|
347
|
+
onPointerUp: C,
|
|
342
348
|
onPointerEnter: o,
|
|
343
349
|
onPointerLeave: s,
|
|
344
|
-
tabIndex:
|
|
350
|
+
tabIndex: u ? 0 : -1
|
|
345
351
|
}
|
|
346
352
|
);
|
|
347
353
|
}
|
|
348
354
|
);
|
|
349
|
-
|
|
350
|
-
function
|
|
355
|
+
Ae.displayName = "EdgeHoverHandle";
|
|
356
|
+
function Le({
|
|
351
357
|
visible: e,
|
|
352
358
|
targetColSpan: t,
|
|
353
359
|
enterMs: n = 180,
|
|
@@ -367,87 +373,87 @@ function _e({
|
|
|
367
373
|
}
|
|
368
374
|
);
|
|
369
375
|
}
|
|
370
|
-
|
|
371
|
-
function
|
|
376
|
+
Le.displayName = "GhostPreview";
|
|
377
|
+
function zt({
|
|
372
378
|
currentColSpan: e,
|
|
373
379
|
stackable: t,
|
|
374
380
|
onResize: n,
|
|
375
381
|
onCancel: a,
|
|
376
382
|
dwellMs: o = 120,
|
|
377
383
|
enterMs: s = 180,
|
|
378
|
-
exitMs:
|
|
384
|
+
exitMs: l = 120
|
|
379
385
|
}) {
|
|
380
|
-
const [
|
|
386
|
+
const [c, b] = E("idle"), [u, w] = E(e), C = M(null), i = M(null), d = M("idle");
|
|
381
387
|
P(() => {
|
|
382
|
-
|
|
383
|
-
}, [
|
|
384
|
-
const S = 180,
|
|
385
|
-
|
|
386
|
-
}, []),
|
|
387
|
-
|
|
388
|
-
}, [o]),
|
|
389
|
-
|
|
390
|
-
}, [
|
|
388
|
+
d.current = c;
|
|
389
|
+
}, [c]);
|
|
390
|
+
const S = 180, k = y(() => {
|
|
391
|
+
C.current && (clearTimeout(C.current), C.current = null);
|
|
392
|
+
}, []), m = y(() => {
|
|
393
|
+
b((h) => h !== "idle" ? h : (C.current = setTimeout(() => b("handle-visible"), o), "dwelling"));
|
|
394
|
+
}, [o]), T = y(() => {
|
|
395
|
+
k(), b((h) => h === "dwelling" || h === "handle-visible" ? "idle" : h);
|
|
396
|
+
}, [k]), I = y(
|
|
391
397
|
(h) => {
|
|
392
|
-
|
|
398
|
+
d.current === "handle-visible" && (i.current = h.clientX, d.current = "dragging", b("dragging"));
|
|
393
399
|
},
|
|
394
400
|
[]
|
|
395
401
|
), v = y(
|
|
396
402
|
(h) => {
|
|
397
|
-
if (
|
|
398
|
-
const r = h.clientX - (
|
|
399
|
-
if (
|
|
400
|
-
const
|
|
401
|
-
n({ direction:
|
|
403
|
+
if (d.current !== "dragging") return;
|
|
404
|
+
const r = h.clientX - (i.current ?? h.clientX), p = Math.round(r / S), f = Math.min(3, Math.max(1, e + p)), D = f !== e;
|
|
405
|
+
if (b(D ? "committed" : "cancelled"), D) {
|
|
406
|
+
const N = f > e ? "grow" : "shrink";
|
|
407
|
+
n({ direction: N, targetColSpan: f, mode: t ? "slot-fill" : "sparkline-fidelity" });
|
|
402
408
|
} else
|
|
403
409
|
a?.();
|
|
404
410
|
},
|
|
405
411
|
[e, t, n, a]
|
|
406
|
-
),
|
|
407
|
-
|
|
408
|
-
}, [
|
|
412
|
+
), x = y(() => {
|
|
413
|
+
k(), b((h) => h === "dragging" || h === "handle-visible" ? (a?.(), "cancelled") : h);
|
|
414
|
+
}, [k, a]);
|
|
409
415
|
return P(() => {
|
|
410
|
-
if (
|
|
416
|
+
if (c !== "dragging" && c !== "handle-visible") return;
|
|
411
417
|
const h = (r) => {
|
|
412
|
-
r.key === "Escape" &&
|
|
418
|
+
r.key === "Escape" && x();
|
|
413
419
|
};
|
|
414
420
|
return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
|
|
415
|
-
}, [
|
|
416
|
-
if (
|
|
421
|
+
}, [c, x]), P(() => {
|
|
422
|
+
if (c !== "dragging") {
|
|
417
423
|
w(e);
|
|
418
424
|
return;
|
|
419
425
|
}
|
|
420
426
|
const h = (r) => {
|
|
421
|
-
const
|
|
422
|
-
w((
|
|
427
|
+
const p = r.clientX - (i.current ?? r.clientX), f = Math.round(p / S), D = Math.min(3, Math.max(1, e + f));
|
|
428
|
+
w((N) => N === D ? N : D);
|
|
423
429
|
};
|
|
424
430
|
return window.addEventListener("pointermove", h), () => window.removeEventListener("pointermove", h);
|
|
425
|
-
}, [
|
|
426
|
-
if (
|
|
427
|
-
const h = setTimeout(() =>
|
|
431
|
+
}, [c, e]), P(() => () => k(), [k]), P(() => {
|
|
432
|
+
if (c !== "committed" && c !== "cancelled") return;
|
|
433
|
+
const h = setTimeout(() => b("idle"), l);
|
|
428
434
|
return () => clearTimeout(h);
|
|
429
|
-
}, [
|
|
430
|
-
state:
|
|
431
|
-
enterEdgeZone:
|
|
432
|
-
leaveEdgeZone:
|
|
435
|
+
}, [c, l]), {
|
|
436
|
+
state: c,
|
|
437
|
+
enterEdgeZone: m,
|
|
438
|
+
leaveEdgeZone: T,
|
|
433
439
|
handleProps: {
|
|
434
|
-
onPointerDown:
|
|
440
|
+
onPointerDown: I,
|
|
435
441
|
onPointerUp: v,
|
|
436
442
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
437
443
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
438
|
-
onPointerEnter:
|
|
439
|
-
onPointerLeave:
|
|
444
|
+
onPointerEnter: m,
|
|
445
|
+
onPointerLeave: T
|
|
440
446
|
},
|
|
441
|
-
previewColSpan:
|
|
447
|
+
previewColSpan: u,
|
|
442
448
|
ghostProps: {
|
|
443
|
-
visible:
|
|
444
|
-
targetColSpan:
|
|
449
|
+
visible: c === "dragging",
|
|
450
|
+
targetColSpan: u,
|
|
445
451
|
enterMs: s,
|
|
446
|
-
exitMs:
|
|
452
|
+
exitMs: l
|
|
447
453
|
}
|
|
448
454
|
};
|
|
449
455
|
}
|
|
450
|
-
const
|
|
456
|
+
const Vt = [
|
|
451
457
|
// 1. Standard: Total Revenue
|
|
452
458
|
{
|
|
453
459
|
variant: "standard",
|
|
@@ -551,24 +557,24 @@ const Tt = [
|
|
|
551
557
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
552
558
|
]
|
|
553
559
|
}
|
|
554
|
-
],
|
|
560
|
+
], $e = {
|
|
555
561
|
variant: "standard",
|
|
556
562
|
label: "Total Revenue",
|
|
557
563
|
isLoading: !0
|
|
558
|
-
},
|
|
564
|
+
}, Be = {
|
|
559
565
|
variant: "standard",
|
|
560
566
|
label: "Total Revenue",
|
|
561
567
|
value: 125430,
|
|
562
568
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
563
569
|
isError: !0
|
|
564
|
-
},
|
|
570
|
+
}, Ke = {
|
|
565
571
|
variant: "standard",
|
|
566
572
|
label: "Total Revenue",
|
|
567
573
|
value: null,
|
|
568
574
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
569
575
|
isEmpty: !0,
|
|
570
576
|
subtitle: "No data"
|
|
571
|
-
},
|
|
577
|
+
}, He = {
|
|
572
578
|
variant: "standard",
|
|
573
579
|
label: "Total Revenue",
|
|
574
580
|
value: 125430,
|
|
@@ -576,7 +582,7 @@ const Tt = [
|
|
|
576
582
|
trend: { value: 12.5, direction: "up" },
|
|
577
583
|
subtitle: "MTD",
|
|
578
584
|
isStale: !0
|
|
579
|
-
},
|
|
585
|
+
}, Ge = {
|
|
580
586
|
variant: "sparkline",
|
|
581
587
|
label: "Daily Orders",
|
|
582
588
|
value: 847,
|
|
@@ -585,7 +591,7 @@ const Tt = [
|
|
|
585
591
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
586
592
|
accentColor: "#6366f1",
|
|
587
593
|
isStale: !0
|
|
588
|
-
},
|
|
594
|
+
}, ze = {
|
|
589
595
|
variant: "donut",
|
|
590
596
|
label: "Order Fill Rate",
|
|
591
597
|
value: 78,
|
|
@@ -596,14 +602,14 @@ const Tt = [
|
|
|
596
602
|
donutMax: 100,
|
|
597
603
|
accentColor: "#10b981",
|
|
598
604
|
isStale: !0
|
|
599
|
-
},
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
],
|
|
605
|
+
}, Zt = [
|
|
606
|
+
$e,
|
|
607
|
+
Be,
|
|
608
|
+
Ke,
|
|
609
|
+
He,
|
|
610
|
+
Ge,
|
|
611
|
+
ze
|
|
612
|
+
], Wt = {
|
|
607
613
|
variant: "sparkline",
|
|
608
614
|
label: "Daily Orders",
|
|
609
615
|
value: 847,
|
|
@@ -626,7 +632,7 @@ const Tt = [
|
|
|
626
632
|
59
|
|
627
633
|
],
|
|
628
634
|
accentColor: "#6366f1"
|
|
629
|
-
},
|
|
635
|
+
}, Ut = {
|
|
630
636
|
variant: "sparkline",
|
|
631
637
|
label: "New Customers",
|
|
632
638
|
value: 23,
|
|
@@ -665,21 +671,21 @@ const Tt = [
|
|
|
665
671
|
19
|
|
666
672
|
],
|
|
667
673
|
accentColor: "#10b981"
|
|
668
|
-
},
|
|
674
|
+
}, Yt = {
|
|
669
675
|
variant: "standard",
|
|
670
676
|
label: "Total Revenue",
|
|
671
677
|
value: 125430,
|
|
672
678
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
673
679
|
trend: { value: 12.5, direction: "up" },
|
|
674
680
|
subtitle: "MTD"
|
|
675
|
-
},
|
|
681
|
+
}, qt = {
|
|
676
682
|
variant: "standard",
|
|
677
683
|
label: "Returns",
|
|
678
684
|
value: 3280,
|
|
679
685
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
680
686
|
trend: { value: -8.3, direction: "down" },
|
|
681
687
|
subtitle: "MTD"
|
|
682
|
-
},
|
|
688
|
+
}, jt = {
|
|
683
689
|
variant: "standard",
|
|
684
690
|
label: "Avg Order Value",
|
|
685
691
|
value: 487,
|
|
@@ -687,32 +693,32 @@ const Tt = [
|
|
|
687
693
|
trend: { value: 0, direction: "flat" },
|
|
688
694
|
subtitle: "QTD"
|
|
689
695
|
};
|
|
690
|
-
function
|
|
696
|
+
function de({
|
|
691
697
|
open: e,
|
|
692
698
|
onDismiss: t,
|
|
693
699
|
anchorRef: n,
|
|
694
700
|
pages: a,
|
|
695
701
|
activePageId: o,
|
|
696
702
|
onPageChange: s,
|
|
697
|
-
onCreatePage:
|
|
698
|
-
onManagePages:
|
|
703
|
+
onCreatePage: l,
|
|
704
|
+
onManagePages: c
|
|
699
705
|
}) {
|
|
700
|
-
const
|
|
701
|
-
(
|
|
702
|
-
s(
|
|
706
|
+
const b = y(
|
|
707
|
+
(i) => {
|
|
708
|
+
s(i), t();
|
|
703
709
|
},
|
|
704
710
|
[s, t]
|
|
705
|
-
),
|
|
706
|
-
(
|
|
707
|
-
(
|
|
711
|
+
), u = y(
|
|
712
|
+
(i, d) => {
|
|
713
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), b(i));
|
|
708
714
|
},
|
|
709
|
-
[
|
|
715
|
+
[b]
|
|
710
716
|
), w = y(() => {
|
|
711
|
-
i(), t();
|
|
712
|
-
}, [i, t]), N = y(() => {
|
|
713
717
|
l(), t();
|
|
714
|
-
}, [l, t])
|
|
715
|
-
|
|
718
|
+
}, [l, t]), C = y(() => {
|
|
719
|
+
c(), t();
|
|
720
|
+
}, [c, t]);
|
|
721
|
+
return /* @__PURE__ */ O(
|
|
716
722
|
Ce,
|
|
717
723
|
{
|
|
718
724
|
definition: {
|
|
@@ -726,36 +732,36 @@ function le({
|
|
|
726
732
|
anchorRef: n,
|
|
727
733
|
className: "gloss-page-dropdown",
|
|
728
734
|
children: [
|
|
729
|
-
/* @__PURE__ */ g("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((
|
|
730
|
-
const
|
|
731
|
-
return /* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ g("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((i) => {
|
|
736
|
+
const d = i.id === o;
|
|
737
|
+
return /* @__PURE__ */ O(
|
|
732
738
|
"li",
|
|
733
739
|
{
|
|
734
740
|
role: "menuitemradio",
|
|
735
|
-
"aria-checked":
|
|
736
|
-
"aria-current":
|
|
741
|
+
"aria-checked": d,
|
|
742
|
+
"aria-current": d ? "page" : void 0,
|
|
737
743
|
tabIndex: 0,
|
|
738
|
-
className: `gloss-page-dropdown__item${
|
|
739
|
-
onClick: () =>
|
|
740
|
-
onKeyDown: (S) =>
|
|
744
|
+
className: `gloss-page-dropdown__item${d ? " gloss-page-dropdown__item--active" : ""}`,
|
|
745
|
+
onClick: () => b(i.id),
|
|
746
|
+
onKeyDown: (S) => u(i.id, S),
|
|
741
747
|
children: [
|
|
742
748
|
/* @__PURE__ */ g(
|
|
743
749
|
"span",
|
|
744
750
|
{
|
|
745
|
-
className: `gloss-page-dropdown__dot${
|
|
751
|
+
className: `gloss-page-dropdown__dot${d ? " gloss-page-dropdown__dot--active" : ""}`
|
|
746
752
|
}
|
|
747
753
|
),
|
|
748
754
|
/* @__PURE__ */ g(
|
|
749
755
|
"span",
|
|
750
756
|
{
|
|
751
|
-
className: `gloss-page-dropdown__name${
|
|
752
|
-
children:
|
|
757
|
+
className: `gloss-page-dropdown__name${i.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
758
|
+
children: i.name
|
|
753
759
|
}
|
|
754
760
|
),
|
|
755
|
-
/* @__PURE__ */ g("span", { className: "gloss-page-dropdown__count", children:
|
|
761
|
+
/* @__PURE__ */ g("span", { className: "gloss-page-dropdown__count", children: i.cardCount })
|
|
756
762
|
]
|
|
757
763
|
},
|
|
758
|
-
|
|
764
|
+
i.id
|
|
759
765
|
);
|
|
760
766
|
}) }),
|
|
761
767
|
/* @__PURE__ */ g("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -774,7 +780,7 @@ function le({
|
|
|
774
780
|
{
|
|
775
781
|
role: "menuitem",
|
|
776
782
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
777
|
-
onClick:
|
|
783
|
+
onClick: C,
|
|
778
784
|
children: "Manage pages"
|
|
779
785
|
}
|
|
780
786
|
)
|
|
@@ -782,26 +788,26 @@ function le({
|
|
|
782
788
|
}
|
|
783
789
|
);
|
|
784
790
|
}
|
|
785
|
-
|
|
786
|
-
const
|
|
791
|
+
de.displayName = "PageDropdown";
|
|
792
|
+
const Ve = function({
|
|
787
793
|
currentIndex: t,
|
|
788
794
|
total: n,
|
|
789
795
|
pages: a,
|
|
790
796
|
onPageChange: o,
|
|
791
797
|
onCreatePage: s,
|
|
792
|
-
onManagePages:
|
|
793
|
-
maskRadius:
|
|
798
|
+
onManagePages: l,
|
|
799
|
+
maskRadius: c = "var(--gloss-radius-md)"
|
|
794
800
|
}) {
|
|
795
|
-
const
|
|
801
|
+
const b = M(null), [u, w] = E(!1), C = y(() => {
|
|
796
802
|
w((S) => !S);
|
|
797
|
-
}, []),
|
|
803
|
+
}, []), i = y(() => {
|
|
798
804
|
w(!1);
|
|
799
|
-
}, []),
|
|
800
|
-
return /* @__PURE__ */
|
|
805
|
+
}, []), d = a[t]?.id ?? "";
|
|
806
|
+
return /* @__PURE__ */ O(
|
|
801
807
|
"div",
|
|
802
808
|
{
|
|
803
809
|
className: "gloss-page-chip",
|
|
804
|
-
ref:
|
|
810
|
+
ref: b,
|
|
805
811
|
style: { position: "absolute", top: 0, right: 0 },
|
|
806
812
|
"data-page-chip": !0,
|
|
807
813
|
children: [
|
|
@@ -809,17 +815,17 @@ const Le = function({
|
|
|
809
815
|
"div",
|
|
810
816
|
{
|
|
811
817
|
className: "gloss-page-chip__nuzzle",
|
|
812
|
-
style: { "--_nuzzle-r":
|
|
818
|
+
style: { "--_nuzzle-r": c }
|
|
813
819
|
}
|
|
814
820
|
),
|
|
815
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ O(
|
|
816
822
|
"button",
|
|
817
823
|
{
|
|
818
824
|
className: "gloss-page-chip__trigger",
|
|
819
825
|
"aria-haspopup": "menu",
|
|
820
|
-
"aria-expanded":
|
|
826
|
+
"aria-expanded": u,
|
|
821
827
|
"aria-label": `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
822
|
-
onClick:
|
|
828
|
+
onClick: C,
|
|
823
829
|
children: [
|
|
824
830
|
t + 1,
|
|
825
831
|
" / ",
|
|
@@ -828,24 +834,24 @@ const Le = function({
|
|
|
828
834
|
}
|
|
829
835
|
),
|
|
830
836
|
/* @__PURE__ */ g(
|
|
831
|
-
|
|
837
|
+
de,
|
|
832
838
|
{
|
|
833
|
-
open:
|
|
834
|
-
onDismiss:
|
|
835
|
-
anchorRef:
|
|
839
|
+
open: u,
|
|
840
|
+
onDismiss: i,
|
|
841
|
+
anchorRef: b,
|
|
836
842
|
pages: a,
|
|
837
|
-
activePageId:
|
|
843
|
+
activePageId: d,
|
|
838
844
|
onPageChange: o,
|
|
839
845
|
onCreatePage: s,
|
|
840
|
-
onManagePages:
|
|
846
|
+
onManagePages: l
|
|
841
847
|
}
|
|
842
848
|
)
|
|
843
849
|
]
|
|
844
850
|
}
|
|
845
851
|
);
|
|
846
852
|
};
|
|
847
|
-
|
|
848
|
-
const
|
|
853
|
+
Ve.displayName = "PageChip";
|
|
854
|
+
const Qt = [
|
|
849
855
|
{
|
|
850
856
|
id: "ORD-1001",
|
|
851
857
|
orderNumber: "ORD-1001",
|
|
@@ -978,7 +984,7 @@ const Et = [
|
|
|
978
984
|
date: "2026-03-01",
|
|
979
985
|
skuCount: 9
|
|
980
986
|
}
|
|
981
|
-
],
|
|
987
|
+
], Xt = [
|
|
982
988
|
{
|
|
983
989
|
id: "ITEM-001",
|
|
984
990
|
sku: "PB-4520",
|
|
@@ -1115,13 +1121,13 @@ const Et = [
|
|
|
1115
1121
|
function j(e) {
|
|
1116
1122
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1117
1123
|
}
|
|
1118
|
-
function
|
|
1124
|
+
function ce(e) {
|
|
1119
1125
|
return e.toLocaleString("en-US");
|
|
1120
1126
|
}
|
|
1121
|
-
function
|
|
1127
|
+
function ue(e) {
|
|
1122
1128
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1123
1129
|
}
|
|
1124
|
-
const z = F.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"),
|
|
1130
|
+
const z = F.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Jt = [
|
|
1125
1131
|
{
|
|
1126
1132
|
field: "id",
|
|
1127
1133
|
headerName: "Order",
|
|
@@ -1151,7 +1157,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1151
1157
|
align: "right",
|
|
1152
1158
|
headerAlign: "right",
|
|
1153
1159
|
cellClassName: "gloss-tabular-nums",
|
|
1154
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1160
|
+
renderCell: ({ row: e }) => e.skuCount ? ce(e.skuCount) : z
|
|
1155
1161
|
},
|
|
1156
1162
|
{
|
|
1157
1163
|
field: "total",
|
|
@@ -1171,9 +1177,9 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1171
1177
|
align: "right",
|
|
1172
1178
|
headerAlign: "right",
|
|
1173
1179
|
cellClassName: "gloss-tabular-nums",
|
|
1174
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1180
|
+
renderCell: ({ row: e }) => e.date ? ue(e.date) : ""
|
|
1175
1181
|
}
|
|
1176
|
-
],
|
|
1182
|
+
], ea = [
|
|
1177
1183
|
{
|
|
1178
1184
|
field: "sku",
|
|
1179
1185
|
headerName: "Item ID",
|
|
@@ -1215,7 +1221,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1215
1221
|
align: "right",
|
|
1216
1222
|
headerAlign: "right",
|
|
1217
1223
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1218
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1224
|
+
renderCell: ({ row: e }) => e.quantity ? ce(e.quantity) : z
|
|
1219
1225
|
},
|
|
1220
1226
|
{
|
|
1221
1227
|
field: "total",
|
|
@@ -1235,24 +1241,24 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1235
1241
|
align: "right",
|
|
1236
1242
|
headerAlign: "right",
|
|
1237
1243
|
cellClassName: "gloss-tabular-nums",
|
|
1238
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1244
|
+
renderCell: ({ row: e }) => e.lastDate ? ue(e.lastDate) : ""
|
|
1239
1245
|
}
|
|
1240
|
-
],
|
|
1246
|
+
], Ze = [
|
|
1241
1247
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1242
1248
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1243
1249
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1244
1250
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1245
1251
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1246
|
-
],
|
|
1252
|
+
], We = [
|
|
1247
1253
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1248
1254
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1249
1255
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1250
1256
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1251
1257
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1252
1258
|
], W = (e) => {
|
|
1253
|
-
},
|
|
1254
|
-
},
|
|
1255
|
-
},
|
|
1259
|
+
}, Ue = (e) => {
|
|
1260
|
+
}, oe = (e, t) => {
|
|
1261
|
+
}, me = {
|
|
1256
1262
|
vizState: {
|
|
1257
1263
|
type: "orders",
|
|
1258
1264
|
quant: "$",
|
|
@@ -1261,16 +1267,16 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1261
1267
|
timeFrame: "MTD"
|
|
1262
1268
|
},
|
|
1263
1269
|
onTypeChange: W,
|
|
1264
|
-
onQuantChange:
|
|
1270
|
+
onQuantChange: Ue,
|
|
1265
1271
|
onEntityTypeChange: W,
|
|
1266
|
-
onEntitySelect:
|
|
1267
|
-
onItemSelect:
|
|
1272
|
+
onEntitySelect: oe,
|
|
1273
|
+
onItemSelect: oe,
|
|
1268
1274
|
onTimeFrameChange: W,
|
|
1269
1275
|
userType: "sales-agency",
|
|
1270
|
-
entityFilterOptions:
|
|
1271
|
-
itemFilterOptions:
|
|
1272
|
-
},
|
|
1273
|
-
...
|
|
1276
|
+
entityFilterOptions: Ze,
|
|
1277
|
+
itemFilterOptions: We
|
|
1278
|
+
}, ta = {
|
|
1279
|
+
...me,
|
|
1274
1280
|
vizState: {
|
|
1275
1281
|
type: "items",
|
|
1276
1282
|
quant: "$",
|
|
@@ -1278,8 +1284,8 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1278
1284
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1279
1285
|
timeFrame: "YTD"
|
|
1280
1286
|
}
|
|
1281
|
-
},
|
|
1282
|
-
...
|
|
1287
|
+
}, aa = {
|
|
1288
|
+
...me,
|
|
1283
1289
|
vizState: {
|
|
1284
1290
|
type: "orders",
|
|
1285
1291
|
quant: "#",
|
|
@@ -1291,7 +1297,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1291
1297
|
entityFilterOptions: [
|
|
1292
1298
|
{ id: "customers", label: "Customers" }
|
|
1293
1299
|
]
|
|
1294
|
-
},
|
|
1300
|
+
}, Ye = [
|
|
1295
1301
|
{
|
|
1296
1302
|
id: "recent-orders",
|
|
1297
1303
|
label: "Recent Orders",
|
|
@@ -1337,7 +1343,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1337
1343
|
routeKey: "customer.profile",
|
|
1338
1344
|
subtitle: "Opens in RepTime"
|
|
1339
1345
|
}
|
|
1340
|
-
],
|
|
1346
|
+
], qe = [
|
|
1341
1347
|
{
|
|
1342
1348
|
id: "order-items",
|
|
1343
1349
|
label: "Items in Order",
|
|
@@ -1366,7 +1372,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1366
1372
|
cellKinds: ["orderId"],
|
|
1367
1373
|
graphType: "timeline"
|
|
1368
1374
|
}
|
|
1369
|
-
],
|
|
1375
|
+
], je = [
|
|
1370
1376
|
{
|
|
1371
1377
|
id: "graph-metric",
|
|
1372
1378
|
label: "Graph This Metric",
|
|
@@ -1394,14 +1400,14 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1394
1400
|
cellKinds: ["numeric"],
|
|
1395
1401
|
tabType: "orders"
|
|
1396
1402
|
}
|
|
1397
|
-
],
|
|
1398
|
-
entityName:
|
|
1399
|
-
orderId:
|
|
1400
|
-
numeric:
|
|
1401
|
-
},
|
|
1403
|
+
], na = {
|
|
1404
|
+
entityName: Ye,
|
|
1405
|
+
orderId: qe,
|
|
1406
|
+
numeric: je
|
|
1407
|
+
}, ra = [
|
|
1402
1408
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1403
1409
|
/* @__PURE__ */ new Date()
|
|
1404
|
-
],
|
|
1410
|
+
], oa = {
|
|
1405
1411
|
rangeA: [
|
|
1406
1412
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1407
1413
|
/* @__PURE__ */ new Date()
|
|
@@ -1414,7 +1420,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1414
1420
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1415
1421
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1416
1422
|
]
|
|
1417
|
-
},
|
|
1423
|
+
}, sa = {
|
|
1418
1424
|
version: 4,
|
|
1419
1425
|
lastPreset: "mtd",
|
|
1420
1426
|
pinnedPreset: "mtd",
|
|
@@ -1422,7 +1428,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1422
1428
|
rangeCount: 1,
|
|
1423
1429
|
lastPresetB: null,
|
|
1424
1430
|
lastPresetC: null
|
|
1425
|
-
},
|
|
1431
|
+
}, ia = [
|
|
1426
1432
|
{
|
|
1427
1433
|
id: "atlanta-jan",
|
|
1428
1434
|
label: "Atlanta Market",
|
|
@@ -1444,7 +1450,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1444
1450
|
endDate: new Date(2026, 3, 22),
|
|
1445
1451
|
location: "Chicago, IL"
|
|
1446
1452
|
}
|
|
1447
|
-
],
|
|
1453
|
+
], la = [
|
|
1448
1454
|
{
|
|
1449
1455
|
id: "custom-regional-1",
|
|
1450
1456
|
label: "Southeast Regional Expo",
|
|
@@ -1461,7 +1467,7 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1461
1467
|
location: "Portland, OR",
|
|
1462
1468
|
isCustom: !0
|
|
1463
1469
|
}
|
|
1464
|
-
],
|
|
1470
|
+
], da = [
|
|
1465
1471
|
{
|
|
1466
1472
|
id: "atlanta-jan",
|
|
1467
1473
|
label: "Atlanta Market",
|
|
@@ -1478,17 +1484,132 @@ const z = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1478
1484
|
location: "New York, NY",
|
|
1479
1485
|
active: !0
|
|
1480
1486
|
}
|
|
1481
|
-
],
|
|
1487
|
+
], ca = [
|
|
1482
1488
|
{ id: "7d", label: "7D" },
|
|
1483
1489
|
{ id: "30d", label: "30D" },
|
|
1484
1490
|
{ id: "60d", label: "60D" },
|
|
1485
1491
|
{ id: "90d", label: "90D" }
|
|
1486
|
-
],
|
|
1492
|
+
], ua = [
|
|
1487
1493
|
{ id: "mtd", label: "MTD" },
|
|
1488
1494
|
{ id: "qtd", label: "QTD" },
|
|
1489
1495
|
{ id: "ytd", label: "YTD" },
|
|
1490
1496
|
{ id: "lytd", label: "LYTD" }
|
|
1491
|
-
]
|
|
1497
|
+
], Qe = {
|
|
1498
|
+
timeframe: "Time Frame",
|
|
1499
|
+
threshold: "Thresholds",
|
|
1500
|
+
slots: "Slots",
|
|
1501
|
+
size: "Size",
|
|
1502
|
+
color: "Color",
|
|
1503
|
+
pinned: "Pinned"
|
|
1504
|
+
}, Xe = {
|
|
1505
|
+
timeframe: Ne,
|
|
1506
|
+
threshold: Se,
|
|
1507
|
+
slots: ke,
|
|
1508
|
+
size: Te,
|
|
1509
|
+
color: xe,
|
|
1510
|
+
pinned: Ie
|
|
1511
|
+
};
|
|
1512
|
+
function se(...e) {
|
|
1513
|
+
return e.filter(Boolean).join(" ");
|
|
1514
|
+
}
|
|
1515
|
+
function Je() {
|
|
1516
|
+
const [e, t] = E(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1517
|
+
return P(() => {
|
|
1518
|
+
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1519
|
+
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (o) => t(o.matches);
|
|
1520
|
+
return typeof n.addEventListener == "function" ? (n.addEventListener("change", a), () => n.removeEventListener("change", a)) : (n.addListener?.(a), () => {
|
|
1521
|
+
n.removeListener?.(a);
|
|
1522
|
+
});
|
|
1523
|
+
}, []), e;
|
|
1524
|
+
}
|
|
1525
|
+
const et = ({
|
|
1526
|
+
dimensions: e,
|
|
1527
|
+
onDimensionSelect: t,
|
|
1528
|
+
activeDimension: n,
|
|
1529
|
+
ariaCardTypeLabel: a,
|
|
1530
|
+
className: o
|
|
1531
|
+
}) => {
|
|
1532
|
+
const s = M(null), l = M([]), c = Je(), b = ee(() => Array.from(e), [e]);
|
|
1533
|
+
if (b.length === 0) return null;
|
|
1534
|
+
const u = a ? `Configure ${a}: choose a dimension` : void 0, w = c ? "10ms" : "200ms", C = (i, d) => {
|
|
1535
|
+
const S = b.length - 1, k = (m) => {
|
|
1536
|
+
const T = l.current[m];
|
|
1537
|
+
T && T.focus();
|
|
1538
|
+
};
|
|
1539
|
+
switch (i.key) {
|
|
1540
|
+
case "ArrowRight":
|
|
1541
|
+
case "ArrowDown": {
|
|
1542
|
+
i.preventDefault(), k(d === S ? 0 : d + 1);
|
|
1543
|
+
break;
|
|
1544
|
+
}
|
|
1545
|
+
case "ArrowLeft":
|
|
1546
|
+
case "ArrowUp": {
|
|
1547
|
+
i.preventDefault(), k(d === 0 ? S : d - 1);
|
|
1548
|
+
break;
|
|
1549
|
+
}
|
|
1550
|
+
case "Home": {
|
|
1551
|
+
i.preventDefault(), k(0);
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
case "End": {
|
|
1555
|
+
i.preventDefault(), k(S);
|
|
1556
|
+
break;
|
|
1557
|
+
}
|
|
1558
|
+
case "Enter":
|
|
1559
|
+
case " ": {
|
|
1560
|
+
i.preventDefault(), t(b[d]);
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
return /* @__PURE__ */ g(
|
|
1566
|
+
"div",
|
|
1567
|
+
{
|
|
1568
|
+
ref: s,
|
|
1569
|
+
role: "group",
|
|
1570
|
+
"aria-label": u,
|
|
1571
|
+
className: se("gloss-reconfig-backside-buttons", o),
|
|
1572
|
+
style: {
|
|
1573
|
+
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1574
|
+
// so the SCSS transition rule can consume it without a nested media
|
|
1575
|
+
// query in the JS. Also surfaces the value for the unit test.
|
|
1576
|
+
"--gloss-reconfig-backside-buttons-transition-duration": w
|
|
1577
|
+
},
|
|
1578
|
+
children: b.map((i, d) => {
|
|
1579
|
+
const S = Xe[i], k = n === i;
|
|
1580
|
+
return /* @__PURE__ */ O(
|
|
1581
|
+
"button",
|
|
1582
|
+
{
|
|
1583
|
+
ref: (m) => {
|
|
1584
|
+
l.current[d] = m;
|
|
1585
|
+
},
|
|
1586
|
+
type: "button",
|
|
1587
|
+
"data-dimension": i,
|
|
1588
|
+
className: se(
|
|
1589
|
+
"gloss-reconfig-backside-buttons__button",
|
|
1590
|
+
k && "gloss-reconfig-backside-buttons__button--active"
|
|
1591
|
+
),
|
|
1592
|
+
"aria-current": k ? "true" : void 0,
|
|
1593
|
+
onClick: () => t(i),
|
|
1594
|
+
onKeyDown: (m) => C(m, d),
|
|
1595
|
+
children: [
|
|
1596
|
+
/* @__PURE__ */ g(
|
|
1597
|
+
S,
|
|
1598
|
+
{
|
|
1599
|
+
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
1600
|
+
"aria-hidden": "true"
|
|
1601
|
+
}
|
|
1602
|
+
),
|
|
1603
|
+
/* @__PURE__ */ g("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Qe[i] })
|
|
1604
|
+
]
|
|
1605
|
+
},
|
|
1606
|
+
i
|
|
1607
|
+
);
|
|
1608
|
+
})
|
|
1609
|
+
}
|
|
1610
|
+
);
|
|
1611
|
+
};
|
|
1612
|
+
et.displayName = "ReconfigBacksideButtons";
|
|
1492
1613
|
function L(e, t) {
|
|
1493
1614
|
return {
|
|
1494
1615
|
id: e,
|
|
@@ -1509,38 +1630,38 @@ function L(e, t) {
|
|
|
1509
1630
|
}, t)
|
|
1510
1631
|
};
|
|
1511
1632
|
}
|
|
1512
|
-
function
|
|
1633
|
+
function ie(e, t) {
|
|
1513
1634
|
return {
|
|
1514
1635
|
...L(e, t),
|
|
1515
1636
|
colSpan: 2
|
|
1516
1637
|
};
|
|
1517
1638
|
}
|
|
1518
|
-
const
|
|
1639
|
+
const ma = [
|
|
1519
1640
|
L("total-revenue", "Total Revenue"),
|
|
1520
1641
|
L("total-orders", "Total Orders"),
|
|
1521
|
-
|
|
1642
|
+
ie("revenue-trend", "Revenue Trend (2x)"),
|
|
1522
1643
|
L("avg-order", "Avg Order Value"),
|
|
1523
1644
|
L("new-customers", "New Customers"),
|
|
1524
1645
|
L("top-salesperson", "Top Salesperson"),
|
|
1525
|
-
|
|
1646
|
+
ie("order-trend", "Order Trend (2x)"),
|
|
1526
1647
|
L("repeat-rate", "Repeat Rate"),
|
|
1527
1648
|
L("open-orders", "Open Orders"),
|
|
1528
1649
|
L("shipped-orders", "Shipped Orders")
|
|
1529
|
-
],
|
|
1650
|
+
], pa = {
|
|
1530
1651
|
columns: 6,
|
|
1531
1652
|
rowHeight: 120,
|
|
1532
1653
|
gap: 15,
|
|
1533
1654
|
maxRows: 3,
|
|
1534
1655
|
currentPage: 0,
|
|
1535
1656
|
totalPages: 1
|
|
1536
|
-
},
|
|
1657
|
+
}, ga = {
|
|
1537
1658
|
columns: 9,
|
|
1538
1659
|
rowHeight: 120,
|
|
1539
1660
|
gap: 15,
|
|
1540
1661
|
maxRows: 3,
|
|
1541
1662
|
currentPage: 0,
|
|
1542
1663
|
totalPages: 2
|
|
1543
|
-
},
|
|
1664
|
+
}, ba = {
|
|
1544
1665
|
columns: 12,
|
|
1545
1666
|
rowHeight: 120,
|
|
1546
1667
|
gap: 15,
|
|
@@ -1548,15 +1669,15 @@ const qt = [
|
|
|
1548
1669
|
currentPage: 0,
|
|
1549
1670
|
totalPages: 3
|
|
1550
1671
|
};
|
|
1551
|
-
function
|
|
1672
|
+
function U(e) {
|
|
1552
1673
|
return F.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1553
1674
|
}
|
|
1554
|
-
const
|
|
1675
|
+
const fa = [
|
|
1555
1676
|
{
|
|
1556
1677
|
id: "all-orders",
|
|
1557
1678
|
type: "orders",
|
|
1558
1679
|
name: "All Orders",
|
|
1559
|
-
icon:
|
|
1680
|
+
icon: U("📋"),
|
|
1560
1681
|
closable: !1,
|
|
1561
1682
|
autoCreated: !0
|
|
1562
1683
|
},
|
|
@@ -1564,17 +1685,17 @@ const Jt = [
|
|
|
1564
1685
|
id: "open-orders",
|
|
1565
1686
|
type: "orders",
|
|
1566
1687
|
name: "Open Orders",
|
|
1567
|
-
icon:
|
|
1688
|
+
icon: U("📦"),
|
|
1568
1689
|
closable: !0
|
|
1569
1690
|
},
|
|
1570
1691
|
{
|
|
1571
1692
|
id: "shipped-orders",
|
|
1572
1693
|
type: "orders",
|
|
1573
1694
|
name: "Shipped Orders",
|
|
1574
|
-
icon:
|
|
1695
|
+
icon: U("🚚"),
|
|
1575
1696
|
closable: !0
|
|
1576
1697
|
}
|
|
1577
|
-
],
|
|
1698
|
+
], ha = [
|
|
1578
1699
|
{
|
|
1579
1700
|
id: "orders-main",
|
|
1580
1701
|
type: "orders",
|
|
@@ -1600,7 +1721,7 @@ const Jt = [
|
|
|
1600
1721
|
name: "Customers",
|
|
1601
1722
|
closable: !0
|
|
1602
1723
|
}
|
|
1603
|
-
],
|
|
1724
|
+
], va = [
|
|
1604
1725
|
{
|
|
1605
1726
|
id: "only-tab",
|
|
1606
1727
|
type: "orders",
|
|
@@ -1608,7 +1729,7 @@ const Jt = [
|
|
|
1608
1729
|
closable: !1,
|
|
1609
1730
|
autoCreated: !0
|
|
1610
1731
|
}
|
|
1611
|
-
],
|
|
1732
|
+
], ya = [
|
|
1612
1733
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1613
1734
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1614
1735
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1631,7 +1752,7 @@ function Q(e) {
|
|
|
1631
1752
|
return { cols: 1, rows: 1 };
|
|
1632
1753
|
}
|
|
1633
1754
|
}
|
|
1634
|
-
function
|
|
1755
|
+
function tt(e) {
|
|
1635
1756
|
let t = 0;
|
|
1636
1757
|
for (const a of e) {
|
|
1637
1758
|
const o = Q(a.size), s = a.gridPosition.col + o.cols - 1;
|
|
@@ -1639,7 +1760,7 @@ function Ve(e) {
|
|
|
1639
1760
|
}
|
|
1640
1761
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1641
1762
|
}
|
|
1642
|
-
const
|
|
1763
|
+
const at = function(t) {
|
|
1643
1764
|
if (t.renderMode === "discrete")
|
|
1644
1765
|
return /* @__PURE__ */ g(
|
|
1645
1766
|
"div",
|
|
@@ -1664,7 +1785,7 @@ const Ze = function(t) {
|
|
|
1664
1785
|
}
|
|
1665
1786
|
);
|
|
1666
1787
|
const { cards: n, composite: a } = t;
|
|
1667
|
-
return /* @__PURE__ */
|
|
1788
|
+
return /* @__PURE__ */ O(
|
|
1668
1789
|
"div",
|
|
1669
1790
|
{
|
|
1670
1791
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1690,7 +1811,7 @@ const Ze = function(t) {
|
|
|
1690
1811
|
style: { background: a.accentColor }
|
|
1691
1812
|
}
|
|
1692
1813
|
),
|
|
1693
|
-
a?.label && /* @__PURE__ */
|
|
1814
|
+
a?.label && /* @__PURE__ */ O("div", { className: "gloss-metric-group__label", children: [
|
|
1694
1815
|
/* @__PURE__ */ g("span", { children: a.label }),
|
|
1695
1816
|
a?.trend && /* @__PURE__ */ g(
|
|
1696
1817
|
"span",
|
|
@@ -1708,7 +1829,7 @@ const Ze = function(t) {
|
|
|
1708
1829
|
style: {
|
|
1709
1830
|
display: "grid",
|
|
1710
1831
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
1711
|
-
gridTemplateColumns:
|
|
1832
|
+
gridTemplateColumns: tt(n)
|
|
1712
1833
|
},
|
|
1713
1834
|
children: n.map((o) => {
|
|
1714
1835
|
const s = Q(o.size);
|
|
@@ -1731,7 +1852,7 @@ const Ze = function(t) {
|
|
|
1731
1852
|
}
|
|
1732
1853
|
);
|
|
1733
1854
|
};
|
|
1734
|
-
|
|
1855
|
+
at.displayName = "MetricGroupContainer";
|
|
1735
1856
|
const B = {
|
|
1736
1857
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
1737
1858
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
@@ -1740,14 +1861,14 @@ const B = {
|
|
|
1740
1861
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
1741
1862
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
1742
1863
|
};
|
|
1743
|
-
function
|
|
1864
|
+
function nt({
|
|
1744
1865
|
message: e,
|
|
1745
1866
|
primaryAction: t,
|
|
1746
1867
|
onDismiss: n,
|
|
1747
1868
|
anchorEl: a,
|
|
1748
1869
|
anchorSelector: o
|
|
1749
1870
|
}) {
|
|
1750
|
-
const [s,
|
|
1871
|
+
const [s, l] = F.useState(null), c = F.useMemo(
|
|
1751
1872
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
1752
1873
|
[]
|
|
1753
1874
|
);
|
|
@@ -1756,27 +1877,27 @@ function We({
|
|
|
1756
1877
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
1757
1878
|
);
|
|
1758
1879
|
}, [a, o]), F.useLayoutEffect(() => {
|
|
1759
|
-
let
|
|
1760
|
-
if (a ?
|
|
1761
|
-
const w =
|
|
1762
|
-
|
|
1880
|
+
let u = null;
|
|
1881
|
+
if (a ? u = a : o && (u = document.querySelector(o)), u) {
|
|
1882
|
+
const w = u.getBoundingClientRect();
|
|
1883
|
+
l({
|
|
1763
1884
|
top: w.bottom + window.scrollY + 6,
|
|
1764
1885
|
left: w.left + window.scrollX
|
|
1765
1886
|
});
|
|
1766
1887
|
}
|
|
1767
1888
|
}, [a, o]);
|
|
1768
|
-
const
|
|
1769
|
-
return /* @__PURE__ */
|
|
1889
|
+
const b = s ? { top: s.top, left: s.left } : {};
|
|
1890
|
+
return /* @__PURE__ */ O(
|
|
1770
1891
|
"div",
|
|
1771
1892
|
{
|
|
1772
1893
|
className: B["gloss-inline-nudge"],
|
|
1773
|
-
style:
|
|
1894
|
+
style: b,
|
|
1774
1895
|
role: "status",
|
|
1775
1896
|
"aria-live": "polite",
|
|
1776
|
-
"data-reduced-motion":
|
|
1897
|
+
"data-reduced-motion": c ? "true" : void 0,
|
|
1777
1898
|
children: [
|
|
1778
1899
|
/* @__PURE__ */ g("span", { className: B["gloss-inline-nudge__message"], children: e }),
|
|
1779
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ O("div", { className: B["gloss-inline-nudge__actions"], children: [
|
|
1780
1901
|
/* @__PURE__ */ g(
|
|
1781
1902
|
"button",
|
|
1782
1903
|
{
|
|
@@ -1801,25 +1922,25 @@ function We({
|
|
|
1801
1922
|
}
|
|
1802
1923
|
);
|
|
1803
1924
|
}
|
|
1804
|
-
|
|
1925
|
+
nt.displayName = "InlineNudge";
|
|
1805
1926
|
function X(e) {
|
|
1806
1927
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
1807
1928
|
}
|
|
1808
|
-
function
|
|
1929
|
+
function rt(e, t, n) {
|
|
1809
1930
|
if (n <= t) {
|
|
1810
|
-
const
|
|
1811
|
-
return `linear-gradient(to right, ${
|
|
1931
|
+
const l = e[0], c = l ? X(l) : "#888";
|
|
1932
|
+
return `linear-gradient(to right, ${c}, ${c})`;
|
|
1812
1933
|
}
|
|
1813
|
-
const a = n - t, s = [...e].sort((
|
|
1814
|
-
const
|
|
1815
|
-
return `${X(
|
|
1934
|
+
const a = n - t, s = [...e].sort((l, c) => l.value - c.value).map((l) => {
|
|
1935
|
+
const c = (l.value - t) / a * 100;
|
|
1936
|
+
return `${X(l)} ${c.toFixed(2)}%`;
|
|
1816
1937
|
});
|
|
1817
1938
|
return s.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : s.length === 1 ? `linear-gradient(to right, ${s[0]}, ${s[0]})` : `linear-gradient(to right, ${s.join(", ")})`;
|
|
1818
1939
|
}
|
|
1819
|
-
function
|
|
1940
|
+
function ot(e) {
|
|
1820
1941
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
1821
1942
|
}
|
|
1822
|
-
function
|
|
1943
|
+
function st({
|
|
1823
1944
|
stops: e,
|
|
1824
1945
|
onChange: t,
|
|
1825
1946
|
min: n = 0,
|
|
@@ -1827,109 +1948,109 @@ function qe({
|
|
|
1827
1948
|
step: o,
|
|
1828
1949
|
disabled: s = !1
|
|
1829
1950
|
}) {
|
|
1830
|
-
const
|
|
1951
|
+
const l = o === void 0 ? 0.01 : !Number.isFinite(o) || o <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
1831
1952
|
`ThresholdRamp: step (${o}) must be a positive finite number; falling back to 0.01.`
|
|
1832
|
-
), 0.01) : o,
|
|
1833
|
-
(r) => Math.round(r /
|
|
1834
|
-
[
|
|
1835
|
-
),
|
|
1953
|
+
), 0.01) : o, c = y(
|
|
1954
|
+
(r) => Math.round(r / l) * l,
|
|
1955
|
+
[l]
|
|
1956
|
+
), b = M(null), [u, w] = E(null), [C, i] = E(e), d = ot(e), S = M(d);
|
|
1836
1957
|
P(() => {
|
|
1837
|
-
S.current !==
|
|
1838
|
-
}, [
|
|
1839
|
-
const
|
|
1958
|
+
S.current !== d && (S.current = d, !u && i(e));
|
|
1959
|
+
}, [d, e, u]);
|
|
1960
|
+
const k = ee(() => rt(C, n, a), [C, n, a]), m = y(
|
|
1840
1961
|
(r) => {
|
|
1841
|
-
if (!
|
|
1842
|
-
const
|
|
1843
|
-
return
|
|
1962
|
+
if (!b.current) return n;
|
|
1963
|
+
const p = b.current.getBoundingClientRect(), f = p.width || 1, D = Math.max(0, Math.min(1, (r - p.left) / f)), N = n + D * (a - n);
|
|
1964
|
+
return c(N);
|
|
1844
1965
|
},
|
|
1845
|
-
[n, a,
|
|
1966
|
+
[n, a, c]
|
|
1846
1967
|
);
|
|
1847
1968
|
P(() => {
|
|
1848
1969
|
a <= n && process.env.NODE_ENV !== "production" && console.warn(
|
|
1849
1970
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
1850
1971
|
);
|
|
1851
1972
|
}, [n, a]);
|
|
1852
|
-
const
|
|
1853
|
-
(r,
|
|
1854
|
-
const
|
|
1855
|
-
s ||
|
|
1973
|
+
const T = y(
|
|
1974
|
+
(r, p) => {
|
|
1975
|
+
const f = C.find((D) => D.id === p);
|
|
1976
|
+
s || f?.disabled || (r.preventDefault(), w(p));
|
|
1856
1977
|
},
|
|
1857
|
-
[s,
|
|
1858
|
-
),
|
|
1859
|
-
|
|
1978
|
+
[s, C]
|
|
1979
|
+
), I = M(C);
|
|
1980
|
+
I.current = C;
|
|
1860
1981
|
const v = M(t);
|
|
1861
1982
|
v.current = t, P(() => {
|
|
1862
|
-
if (!
|
|
1863
|
-
const r = (
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1866
|
-
(
|
|
1983
|
+
if (!u) return;
|
|
1984
|
+
const r = (f) => {
|
|
1985
|
+
const D = m(f.clientX);
|
|
1986
|
+
i(
|
|
1987
|
+
(N) => N.map((R) => R.id === u ? { ...R, value: D } : R)
|
|
1867
1988
|
);
|
|
1868
|
-
},
|
|
1869
|
-
const
|
|
1870
|
-
(
|
|
1989
|
+
}, p = (f) => {
|
|
1990
|
+
const D = m(f.clientX), N = I.current.map(
|
|
1991
|
+
(R) => R.id === u ? { ...R, value: D } : R
|
|
1871
1992
|
);
|
|
1872
|
-
|
|
1993
|
+
i(N), w(null), v.current(N);
|
|
1873
1994
|
};
|
|
1874
|
-
return window.addEventListener("pointermove", r), window.addEventListener("pointerup",
|
|
1875
|
-
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup",
|
|
1995
|
+
return window.addEventListener("pointermove", r), window.addEventListener("pointerup", p), window.addEventListener("pointercancel", p), () => {
|
|
1996
|
+
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p);
|
|
1876
1997
|
};
|
|
1877
|
-
}, [
|
|
1878
|
-
const
|
|
1879
|
-
(r,
|
|
1880
|
-
if (s ||
|
|
1881
|
-
const
|
|
1882
|
-
if (
|
|
1883
|
-
const
|
|
1884
|
-
let
|
|
1998
|
+
}, [u, m]);
|
|
1999
|
+
const x = a - n > 0 ? a - n : 1, h = y(
|
|
2000
|
+
(r, p) => {
|
|
2001
|
+
if (s || p.disabled) return;
|
|
2002
|
+
const f = a - n;
|
|
2003
|
+
if (f <= 0) return;
|
|
2004
|
+
const D = r.shiftKey ? f / 20 : f / 100;
|
|
2005
|
+
let N = p.value;
|
|
1885
2006
|
switch (r.key) {
|
|
1886
2007
|
case "ArrowRight":
|
|
1887
2008
|
case "ArrowUp":
|
|
1888
|
-
|
|
2009
|
+
N = p.value + D;
|
|
1889
2010
|
break;
|
|
1890
2011
|
case "ArrowLeft":
|
|
1891
2012
|
case "ArrowDown":
|
|
1892
|
-
|
|
2013
|
+
N = p.value - D;
|
|
1893
2014
|
break;
|
|
1894
2015
|
case "Home":
|
|
1895
|
-
|
|
2016
|
+
N = n;
|
|
1896
2017
|
break;
|
|
1897
2018
|
case "End":
|
|
1898
|
-
|
|
2019
|
+
N = a;
|
|
1899
2020
|
break;
|
|
1900
2021
|
default:
|
|
1901
2022
|
return;
|
|
1902
2023
|
}
|
|
1903
2024
|
r.preventDefault();
|
|
1904
|
-
const
|
|
1905
|
-
if (_ ===
|
|
1906
|
-
const K =
|
|
1907
|
-
(H) => H.id ===
|
|
2025
|
+
const R = Math.max(n, Math.min(a, N)), _ = c(R);
|
|
2026
|
+
if (_ === p.value) return;
|
|
2027
|
+
const K = C.map(
|
|
2028
|
+
(H) => H.id === p.id ? { ...H, value: _ } : H
|
|
1908
2029
|
);
|
|
1909
|
-
|
|
2030
|
+
i(K), t(K);
|
|
1910
2031
|
},
|
|
1911
|
-
[s, n, a,
|
|
2032
|
+
[s, n, a, C, t, c]
|
|
1912
2033
|
);
|
|
1913
2034
|
return /* @__PURE__ */ g("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ g(
|
|
1914
2035
|
"div",
|
|
1915
2036
|
{
|
|
1916
|
-
ref:
|
|
2037
|
+
ref: b,
|
|
1917
2038
|
className: "gloss-threshold-ramp__track",
|
|
1918
|
-
style: { background:
|
|
1919
|
-
children:
|
|
1920
|
-
const
|
|
2039
|
+
style: { background: k },
|
|
2040
|
+
children: C.map((r) => {
|
|
2041
|
+
const p = (r.value - n) / x * 100;
|
|
1921
2042
|
return /* @__PURE__ */ g(
|
|
1922
2043
|
"span",
|
|
1923
2044
|
{
|
|
1924
2045
|
className: "gloss-threshold-ramp__stop",
|
|
1925
2046
|
style: {
|
|
1926
|
-
left: `${
|
|
2047
|
+
left: `${p}%`,
|
|
1927
2048
|
color: X(r)
|
|
1928
2049
|
},
|
|
1929
2050
|
"data-disabled": r.disabled || void 0,
|
|
1930
|
-
"data-dragging":
|
|
1931
|
-
onPointerDown: (
|
|
1932
|
-
onKeyDown: (
|
|
2051
|
+
"data-dragging": u === r.id || void 0,
|
|
2052
|
+
onPointerDown: (f) => T(f, r.id),
|
|
2053
|
+
onKeyDown: (f) => h(f, r),
|
|
1933
2054
|
"aria-label": r.label ?? `Stop at ${r.value}`,
|
|
1934
2055
|
role: "slider",
|
|
1935
2056
|
"aria-valuenow": r.value,
|
|
@@ -1944,42 +2065,42 @@ function qe({
|
|
|
1944
2065
|
}
|
|
1945
2066
|
) });
|
|
1946
2067
|
}
|
|
1947
|
-
|
|
1948
|
-
const
|
|
1949
|
-
function
|
|
1950
|
-
return
|
|
2068
|
+
st.displayName = "ThresholdRamp";
|
|
2069
|
+
const pe = ye(null);
|
|
2070
|
+
function it() {
|
|
2071
|
+
return we(pe);
|
|
1951
2072
|
}
|
|
1952
|
-
function
|
|
1953
|
-
const t =
|
|
2073
|
+
function lt({ option: e }) {
|
|
2074
|
+
const t = it(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, o = y(() => {
|
|
1954
2075
|
a || t?.select(e.value);
|
|
1955
2076
|
}, [a, t, e.value]), s = y(
|
|
1956
|
-
(
|
|
1957
|
-
a || t?.onKeyNav(
|
|
2077
|
+
(u) => {
|
|
2078
|
+
a || t?.onKeyNav(u, e.value);
|
|
1958
2079
|
},
|
|
1959
2080
|
[a, t, e.value]
|
|
1960
|
-
),
|
|
2081
|
+
), l = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", c = t?.firstFocusableValue === e.value, b = a ? -1 : c ? 0 : -1;
|
|
1961
2082
|
return /* @__PURE__ */ g(
|
|
1962
2083
|
"button",
|
|
1963
2084
|
{
|
|
1964
|
-
ref: (
|
|
2085
|
+
ref: (u) => t?.registerRef(e.value, u),
|
|
1965
2086
|
type: "button",
|
|
1966
2087
|
role: "radio",
|
|
1967
2088
|
"aria-checked": n,
|
|
1968
2089
|
className: "gloss-preset-swatch-row__swatch",
|
|
1969
|
-
style: { backgroundColor:
|
|
2090
|
+
style: { backgroundColor: l },
|
|
1970
2091
|
"data-selected": n || void 0,
|
|
1971
2092
|
"data-disabled": a || void 0,
|
|
1972
|
-
...process.env.NODE_ENV === "test" ? { "data-bg-color":
|
|
2093
|
+
...process.env.NODE_ENV === "test" ? { "data-bg-color": l } : {},
|
|
1973
2094
|
"aria-label": e.label ?? e.value,
|
|
1974
2095
|
"aria-disabled": a,
|
|
1975
2096
|
disabled: a,
|
|
1976
|
-
tabIndex:
|
|
2097
|
+
tabIndex: b,
|
|
1977
2098
|
onClick: o,
|
|
1978
2099
|
onKeyDown: s
|
|
1979
2100
|
}
|
|
1980
2101
|
);
|
|
1981
2102
|
}
|
|
1982
|
-
function
|
|
2103
|
+
function dt({
|
|
1983
2104
|
swatches: e,
|
|
1984
2105
|
value: t,
|
|
1985
2106
|
defaultValue: n,
|
|
@@ -1987,65 +2108,65 @@ function Xe({
|
|
|
1987
2108
|
disabled: o = !1,
|
|
1988
2109
|
name: s
|
|
1989
2110
|
}) {
|
|
1990
|
-
const
|
|
2111
|
+
const l = t !== void 0, [c, b] = E(n), u = l ? t : c, w = y(
|
|
1991
2112
|
(v) => {
|
|
1992
|
-
|
|
2113
|
+
l || b(v), a?.(v);
|
|
1993
2114
|
},
|
|
1994
|
-
[
|
|
1995
|
-
),
|
|
1996
|
-
(v) =>
|
|
1997
|
-
[
|
|
1998
|
-
),
|
|
1999
|
-
|
|
2000
|
-
}, []), S = e.filter((v) => !v.disabled && !o),
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2003
|
-
}, []),
|
|
2004
|
-
(v,
|
|
2115
|
+
[l, a]
|
|
2116
|
+
), C = y(
|
|
2117
|
+
(v) => u === v,
|
|
2118
|
+
[u]
|
|
2119
|
+
), i = M(/* @__PURE__ */ new Map()), d = y((v, x) => {
|
|
2120
|
+
x ? i.current.set(v, x) : i.current.delete(v);
|
|
2121
|
+
}, []), S = e.filter((v) => !v.disabled && !o), k = S.find((v) => v.value === u)?.value ?? S[0]?.value, m = y((v) => {
|
|
2122
|
+
const x = i.current.get(v);
|
|
2123
|
+
x && x.focus();
|
|
2124
|
+
}, []), T = y(
|
|
2125
|
+
(v, x) => {
|
|
2005
2126
|
if (o) return;
|
|
2006
|
-
const h = e.filter((
|
|
2127
|
+
const h = e.filter((D) => !D.disabled);
|
|
2007
2128
|
if (h.length === 0) return;
|
|
2008
|
-
const r = h.findIndex((
|
|
2129
|
+
const r = h.findIndex((D) => D.value === x);
|
|
2009
2130
|
if (r === -1) return;
|
|
2010
|
-
let
|
|
2131
|
+
let p = r;
|
|
2011
2132
|
switch (v.key) {
|
|
2012
2133
|
case "ArrowRight":
|
|
2013
2134
|
case "ArrowDown":
|
|
2014
|
-
|
|
2135
|
+
p = (r + 1) % h.length;
|
|
2015
2136
|
break;
|
|
2016
2137
|
case "ArrowLeft":
|
|
2017
2138
|
case "ArrowUp":
|
|
2018
|
-
|
|
2139
|
+
p = (r - 1 + h.length) % h.length;
|
|
2019
2140
|
break;
|
|
2020
2141
|
case "Home":
|
|
2021
|
-
|
|
2142
|
+
p = 0;
|
|
2022
2143
|
break;
|
|
2023
2144
|
case "End":
|
|
2024
|
-
|
|
2145
|
+
p = h.length - 1;
|
|
2025
2146
|
break;
|
|
2026
2147
|
case " ":
|
|
2027
2148
|
case "Enter":
|
|
2028
|
-
v.preventDefault(), w(
|
|
2149
|
+
v.preventDefault(), w(x);
|
|
2029
2150
|
return;
|
|
2030
2151
|
default:
|
|
2031
2152
|
return;
|
|
2032
2153
|
}
|
|
2033
2154
|
v.preventDefault();
|
|
2034
|
-
const
|
|
2035
|
-
|
|
2155
|
+
const f = h[p].value;
|
|
2156
|
+
m(f), w(f);
|
|
2036
2157
|
},
|
|
2037
|
-
[o, e, w,
|
|
2038
|
-
),
|
|
2039
|
-
selectedValue:
|
|
2158
|
+
[o, e, w, m]
|
|
2159
|
+
), I = {
|
|
2160
|
+
selectedValue: u,
|
|
2040
2161
|
select: w,
|
|
2041
|
-
isSelected:
|
|
2162
|
+
isSelected: C,
|
|
2042
2163
|
groupDisabled: o,
|
|
2043
2164
|
name: s,
|
|
2044
|
-
registerRef:
|
|
2045
|
-
firstFocusableValue:
|
|
2046
|
-
onKeyNav:
|
|
2165
|
+
registerRef: d,
|
|
2166
|
+
firstFocusableValue: k,
|
|
2167
|
+
onKeyNav: T
|
|
2047
2168
|
};
|
|
2048
|
-
return /* @__PURE__ */ g(
|
|
2169
|
+
return /* @__PURE__ */ g(pe.Provider, { value: I, children: /* @__PURE__ */ g(
|
|
2049
2170
|
"div",
|
|
2050
2171
|
{
|
|
2051
2172
|
className: "gloss-preset-swatch-row",
|
|
@@ -2053,126 +2174,126 @@ function Xe({
|
|
|
2053
2174
|
"aria-label": s,
|
|
2054
2175
|
"aria-disabled": o,
|
|
2055
2176
|
"data-disabled": o || void 0,
|
|
2056
|
-
children: e.map((v) => /* @__PURE__ */ g(
|
|
2177
|
+
children: e.map((v) => /* @__PURE__ */ g(lt, { option: v }, v.value))
|
|
2057
2178
|
}
|
|
2058
2179
|
) });
|
|
2059
2180
|
}
|
|
2060
|
-
|
|
2181
|
+
dt.displayName = "PresetSwatchRow";
|
|
2061
2182
|
function J(e, t) {
|
|
2062
2183
|
for (const n of e)
|
|
2063
2184
|
if (n.items.some((a) => a.id === t))
|
|
2064
2185
|
return n.zoneKey;
|
|
2065
2186
|
return null;
|
|
2066
2187
|
}
|
|
2067
|
-
function
|
|
2188
|
+
function le(e, t) {
|
|
2068
2189
|
const n = e.find((a) => a.zoneKey === t);
|
|
2069
2190
|
return n ? n.zoneKey : J(e, t);
|
|
2070
2191
|
}
|
|
2071
|
-
function
|
|
2192
|
+
function ct(e, t, n) {
|
|
2072
2193
|
const a = [...e], [o] = a.splice(t, 1);
|
|
2073
2194
|
return a.splice(n, 0, o), a;
|
|
2074
2195
|
}
|
|
2075
|
-
function
|
|
2196
|
+
function ut(e) {
|
|
2076
2197
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
2077
2198
|
}
|
|
2078
|
-
function
|
|
2079
|
-
const [t, n] =
|
|
2080
|
-
() => e.zones.map((
|
|
2081
|
-
`useSortableZones: zone "${
|
|
2082
|
-
), { ...
|
|
2083
|
-
), [a, o] =
|
|
2084
|
-
|
|
2085
|
-
const
|
|
2086
|
-
() =>
|
|
2199
|
+
function mt(e) {
|
|
2200
|
+
const [t, n] = E(
|
|
2201
|
+
() => e.zones.map((m) => m.maxItems !== void 0 && m.items.length > m.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2202
|
+
`useSortableZones: zone "${m.zoneKey}" exceeds maxItems (${m.items.length} > ${m.maxItems}); trimming to cap.`
|
|
2203
|
+
), { ...m, items: m.items.slice(0, m.maxItems) }) : m)
|
|
2204
|
+
), [a, o] = E(null), [s, l] = E(null), c = M(null), b = M(e.onZoneChange);
|
|
2205
|
+
b.current = e.onZoneChange;
|
|
2206
|
+
const u = ee(
|
|
2207
|
+
() => ut(e.zones),
|
|
2087
2208
|
[e.zones]
|
|
2088
|
-
), w = M(
|
|
2209
|
+
), w = M(u);
|
|
2089
2210
|
P(() => {
|
|
2090
|
-
w.current !==
|
|
2091
|
-
e.zones.map((
|
|
2092
|
-
`useSortableZones: zone "${
|
|
2093
|
-
), { ...
|
|
2211
|
+
w.current !== u && (w.current = u, !a && n(
|
|
2212
|
+
e.zones.map((m) => m.maxItems !== void 0 && m.items.length > m.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2213
|
+
`useSortableZones: zone "${m.zoneKey}" exceeds maxItems (${m.items.length} > ${m.maxItems}); trimming to cap.`
|
|
2214
|
+
), { ...m, items: m.items.slice(0, m.maxItems) }) : m)
|
|
2094
2215
|
));
|
|
2095
|
-
}, [
|
|
2096
|
-
const
|
|
2097
|
-
(
|
|
2098
|
-
const
|
|
2099
|
-
let
|
|
2100
|
-
for (const
|
|
2101
|
-
const h =
|
|
2216
|
+
}, [u, e.zones, a]);
|
|
2217
|
+
const C = y(
|
|
2218
|
+
(m) => {
|
|
2219
|
+
const T = m.active.id;
|
|
2220
|
+
let I = null, v = null;
|
|
2221
|
+
for (const x of t) {
|
|
2222
|
+
const h = x.items.find((r) => r.id === T);
|
|
2102
2223
|
if (h) {
|
|
2103
|
-
|
|
2224
|
+
I = h, v = x.zoneKey;
|
|
2104
2225
|
break;
|
|
2105
2226
|
}
|
|
2106
2227
|
}
|
|
2107
|
-
|
|
2228
|
+
c.current = v, o(I), l(v);
|
|
2108
2229
|
},
|
|
2109
2230
|
[t]
|
|
2110
|
-
),
|
|
2111
|
-
(
|
|
2112
|
-
if (!
|
|
2113
|
-
|
|
2231
|
+
), i = y(
|
|
2232
|
+
(m) => {
|
|
2233
|
+
if (!m.over) {
|
|
2234
|
+
l(c.current);
|
|
2114
2235
|
return;
|
|
2115
2236
|
}
|
|
2116
|
-
const
|
|
2117
|
-
|
|
2237
|
+
const T = le(t, m.over.id);
|
|
2238
|
+
l(T);
|
|
2118
2239
|
},
|
|
2119
2240
|
[t]
|
|
2120
|
-
),
|
|
2121
|
-
(
|
|
2122
|
-
const { active:
|
|
2123
|
-
|
|
2241
|
+
), d = y(
|
|
2242
|
+
(m) => {
|
|
2243
|
+
const { active: T, over: I } = m, v = () => {
|
|
2244
|
+
c.current = null, o(null), l(null);
|
|
2124
2245
|
};
|
|
2125
|
-
if (!
|
|
2246
|
+
if (!I) {
|
|
2126
2247
|
v();
|
|
2127
2248
|
return;
|
|
2128
2249
|
}
|
|
2129
|
-
const
|
|
2130
|
-
if (!
|
|
2250
|
+
const x = J(t, T.id), h = le(t, I.id);
|
|
2251
|
+
if (!x || !h) {
|
|
2131
2252
|
v();
|
|
2132
2253
|
return;
|
|
2133
2254
|
}
|
|
2134
|
-
let r = t.map((
|
|
2135
|
-
if (
|
|
2136
|
-
const
|
|
2137
|
-
r[
|
|
2138
|
-
...
|
|
2139
|
-
items:
|
|
2255
|
+
let r = t.map((p) => ({ ...p, items: [...p.items] }));
|
|
2256
|
+
if (x === h) {
|
|
2257
|
+
const p = r.findIndex((_) => _.zoneKey === x), f = r[p], D = f.items.findIndex((_) => _.id === T.id), N = f.items.findIndex((_) => _.id === I.id), R = N >= 0 ? N : Math.max(0, f.items.length - 1);
|
|
2258
|
+
r[p] = {
|
|
2259
|
+
...f,
|
|
2260
|
+
items: ct(f.items, D, R)
|
|
2140
2261
|
};
|
|
2141
2262
|
} else {
|
|
2142
|
-
const
|
|
2143
|
-
if (!
|
|
2263
|
+
const p = r.findIndex((A) => A.zoneKey === x), f = r.findIndex((A) => A.zoneKey === h), D = r[p], N = r[f], R = D.items.find((A) => A.id === T.id);
|
|
2264
|
+
if (!R) {
|
|
2144
2265
|
v();
|
|
2145
2266
|
return;
|
|
2146
2267
|
}
|
|
2147
|
-
const _ =
|
|
2148
|
-
let
|
|
2149
|
-
if (
|
|
2150
|
-
const
|
|
2151
|
-
$ = $.slice(0,
|
|
2268
|
+
const _ = D.items.filter((A) => A.id !== T.id), K = N.items.findIndex((A) => A.id === I.id), H = K >= 0 ? K : N.items.length;
|
|
2269
|
+
let ae = _, $ = [...N.items];
|
|
2270
|
+
if (N.maxItems !== void 0 && $.length >= N.maxItems) {
|
|
2271
|
+
const A = $[$.length - 1];
|
|
2272
|
+
$ = $.slice(0, N.maxItems - 1), ae = [..._, A];
|
|
2152
2273
|
}
|
|
2153
|
-
const
|
|
2154
|
-
...$.slice(0,
|
|
2155
|
-
|
|
2156
|
-
...$.slice(
|
|
2274
|
+
const ne = Math.min(H, $.length), he = [
|
|
2275
|
+
...$.slice(0, ne),
|
|
2276
|
+
R,
|
|
2277
|
+
...$.slice(ne)
|
|
2157
2278
|
];
|
|
2158
|
-
r[
|
|
2279
|
+
r[p] = { ...D, items: ae }, r[f] = { ...N, items: he };
|
|
2159
2280
|
}
|
|
2160
|
-
n(r),
|
|
2281
|
+
n(r), b.current?.(r), v();
|
|
2161
2282
|
},
|
|
2162
2283
|
[t]
|
|
2163
2284
|
), S = y(
|
|
2164
|
-
(
|
|
2165
|
-
id:
|
|
2166
|
-
"data-zone-key":
|
|
2285
|
+
(m) => ({
|
|
2286
|
+
id: m,
|
|
2287
|
+
"data-zone-key": m
|
|
2167
2288
|
}),
|
|
2168
2289
|
[]
|
|
2169
|
-
),
|
|
2170
|
-
(
|
|
2171
|
-
const
|
|
2290
|
+
), k = y(
|
|
2291
|
+
(m) => {
|
|
2292
|
+
const T = J(t, m.id) ?? "";
|
|
2172
2293
|
return {
|
|
2173
|
-
id:
|
|
2174
|
-
"data-item-id":
|
|
2175
|
-
"data-zone-key":
|
|
2294
|
+
id: m.id,
|
|
2295
|
+
"data-item-id": m.id,
|
|
2296
|
+
"data-zone-key": T
|
|
2176
2297
|
};
|
|
2177
2298
|
},
|
|
2178
2299
|
[t]
|
|
@@ -2182,14 +2303,14 @@ function tt(e) {
|
|
|
2182
2303
|
activeZone: s,
|
|
2183
2304
|
activeItem: a,
|
|
2184
2305
|
getZoneProps: S,
|
|
2185
|
-
getItemProps:
|
|
2186
|
-
handleDragStart:
|
|
2187
|
-
handleDragOver:
|
|
2188
|
-
handleDragEnd:
|
|
2306
|
+
getItemProps: k,
|
|
2307
|
+
handleDragStart: C,
|
|
2308
|
+
handleDragOver: i,
|
|
2309
|
+
handleDragEnd: d
|
|
2189
2310
|
};
|
|
2190
2311
|
}
|
|
2191
|
-
let G = null, V = null,
|
|
2192
|
-
const
|
|
2312
|
+
let G = null, V = null, Y = !1;
|
|
2313
|
+
const pt = [
|
|
2193
2314
|
"DndContext",
|
|
2194
2315
|
"DragOverlay",
|
|
2195
2316
|
"useSensors",
|
|
@@ -2198,22 +2319,22 @@ const at = [
|
|
|
2198
2319
|
"PointerSensor",
|
|
2199
2320
|
"KeyboardSensor",
|
|
2200
2321
|
"closestCenter"
|
|
2201
|
-
],
|
|
2322
|
+
], gt = [
|
|
2202
2323
|
"SortableContext",
|
|
2203
2324
|
"useSortable",
|
|
2204
2325
|
"verticalListSortingStrategy"
|
|
2205
2326
|
];
|
|
2206
|
-
function
|
|
2327
|
+
function bt(e, t) {
|
|
2207
2328
|
const n = [], a = e ?? {};
|
|
2208
|
-
for (const s of
|
|
2329
|
+
for (const s of pt)
|
|
2209
2330
|
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
2210
2331
|
const o = t ?? {};
|
|
2211
|
-
for (const s of
|
|
2332
|
+
for (const s of gt)
|
|
2212
2333
|
o[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
2213
2334
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
2214
2335
|
}
|
|
2215
|
-
function
|
|
2216
|
-
return G ? Promise.resolve(G) :
|
|
2336
|
+
function ft() {
|
|
2337
|
+
return G ? Promise.resolve(G) : Y ? Promise.resolve(null) : V || (V = (async () => {
|
|
2217
2338
|
try {
|
|
2218
2339
|
const [e, t, n] = await Promise.all([
|
|
2219
2340
|
import("@dnd-kit/core"),
|
|
@@ -2221,102 +2342,102 @@ function ot() {
|
|
|
2221
2342
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
2222
2343
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
2223
2344
|
), {}))
|
|
2224
|
-
]), a =
|
|
2345
|
+
]), a = bt(e, t);
|
|
2225
2346
|
return a.ok ? (G = {
|
|
2226
2347
|
core: e,
|
|
2227
2348
|
sortable: t,
|
|
2228
2349
|
utilities: n
|
|
2229
|
-
}, G) : (
|
|
2350
|
+
}, G) : (Y = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
2230
2351
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
2231
2352
|
), null);
|
|
2232
2353
|
} catch {
|
|
2233
|
-
return
|
|
2354
|
+
return Y = !0, null;
|
|
2234
2355
|
}
|
|
2235
2356
|
})(), V);
|
|
2236
2357
|
}
|
|
2237
|
-
function
|
|
2238
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: o, renderDragOverlay: s } = e,
|
|
2358
|
+
function ht(e) {
|
|
2359
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: o, renderDragOverlay: s } = e, l = mt({ zones: t, onZoneChange: n }), [c, b] = F.useState(G);
|
|
2239
2360
|
return F.useEffect(() => {
|
|
2240
|
-
if (
|
|
2241
|
-
let
|
|
2242
|
-
return
|
|
2243
|
-
|
|
2361
|
+
if (c) return;
|
|
2362
|
+
let u = !0;
|
|
2363
|
+
return ft().then((w) => {
|
|
2364
|
+
u && b(w);
|
|
2244
2365
|
}), () => {
|
|
2245
|
-
|
|
2366
|
+
u = !1;
|
|
2246
2367
|
};
|
|
2247
|
-
}, [
|
|
2248
|
-
|
|
2368
|
+
}, [c]), c ? /* @__PURE__ */ g(
|
|
2369
|
+
ge,
|
|
2249
2370
|
{
|
|
2250
|
-
state:
|
|
2251
|
-
modules:
|
|
2371
|
+
state: l,
|
|
2372
|
+
modules: c,
|
|
2252
2373
|
renderZone: a,
|
|
2253
2374
|
renderItem: o,
|
|
2254
2375
|
renderDragOverlay: s
|
|
2255
2376
|
}
|
|
2256
|
-
) : /* @__PURE__ */ g("div", { "data-sortable-zones-passive": "true", children:
|
|
2257
|
-
const w =
|
|
2258
|
-
return /* @__PURE__ */ g("div", { ...
|
|
2377
|
+
) : /* @__PURE__ */ g("div", { "data-sortable-zones-passive": "true", children: l.zones.map((u) => {
|
|
2378
|
+
const w = u.items.map((C) => /* @__PURE__ */ g(F.Fragment, { children: o(C) }, C.id));
|
|
2379
|
+
return /* @__PURE__ */ g("div", { ...l.getZoneProps(u.zoneKey), children: a(u.zoneKey, u.items, w) }, u.zoneKey);
|
|
2259
2380
|
}) });
|
|
2260
2381
|
}
|
|
2261
|
-
|
|
2262
|
-
function
|
|
2382
|
+
ht.displayName = "SortableZones";
|
|
2383
|
+
function ge({
|
|
2263
2384
|
state: e,
|
|
2264
2385
|
modules: t,
|
|
2265
2386
|
renderZone: n,
|
|
2266
2387
|
renderItem: a,
|
|
2267
2388
|
renderDragOverlay: o
|
|
2268
2389
|
}) {
|
|
2269
|
-
const { core: s, sortable:
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
), v =
|
|
2273
|
-
return /* @__PURE__ */
|
|
2390
|
+
const { core: s, sortable: l, utilities: c } = t, { DndContext: b, DragOverlay: u, useSensors: w, useSensor: C, useDroppable: i, PointerSensor: d, KeyboardSensor: S, closestCenter: k } = s, { SortableContext: m, verticalListSortingStrategy: T } = l, I = w(
|
|
2391
|
+
C(d, { activationConstraint: { distance: 5 } }),
|
|
2392
|
+
C(S)
|
|
2393
|
+
), v = b, x = u, h = m;
|
|
2394
|
+
return /* @__PURE__ */ O(
|
|
2274
2395
|
v,
|
|
2275
2396
|
{
|
|
2276
|
-
sensors:
|
|
2277
|
-
collisionDetection:
|
|
2397
|
+
sensors: I,
|
|
2398
|
+
collisionDetection: k,
|
|
2278
2399
|
onDragStart: e.handleDragStart,
|
|
2279
2400
|
onDragOver: e.handleDragOver,
|
|
2280
2401
|
onDragEnd: e.handleDragEnd,
|
|
2281
2402
|
children: [
|
|
2282
2403
|
e.zones.map((r) => {
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2404
|
+
const p = r.items.map((D) => D.id), f = r.items.map((D) => /* @__PURE__ */ g(
|
|
2405
|
+
be,
|
|
2285
2406
|
{
|
|
2286
|
-
id:
|
|
2287
|
-
useSortable:
|
|
2288
|
-
cssHelper:
|
|
2289
|
-
children: a(
|
|
2407
|
+
id: D.id,
|
|
2408
|
+
useSortable: l.useSortable,
|
|
2409
|
+
cssHelper: c.CSS,
|
|
2410
|
+
children: a(D)
|
|
2290
2411
|
},
|
|
2291
|
-
|
|
2412
|
+
D.id
|
|
2292
2413
|
));
|
|
2293
2414
|
return /* @__PURE__ */ g(
|
|
2294
|
-
|
|
2415
|
+
fe,
|
|
2295
2416
|
{
|
|
2296
2417
|
zoneKey: r.zoneKey,
|
|
2297
2418
|
zoneProps: e.getZoneProps(r.zoneKey),
|
|
2298
|
-
useDroppable:
|
|
2299
|
-
children: /* @__PURE__ */ g(h, { items:
|
|
2419
|
+
useDroppable: i,
|
|
2420
|
+
children: /* @__PURE__ */ g(h, { items: p, strategy: T, children: n(r.zoneKey, r.items, f) })
|
|
2300
2421
|
},
|
|
2301
2422
|
r.zoneKey
|
|
2302
2423
|
);
|
|
2303
2424
|
}),
|
|
2304
|
-
/* @__PURE__ */ g(
|
|
2425
|
+
/* @__PURE__ */ g(x, { children: e.activeItem ? o?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
2305
2426
|
]
|
|
2306
2427
|
}
|
|
2307
2428
|
);
|
|
2308
2429
|
}
|
|
2309
|
-
|
|
2310
|
-
function
|
|
2311
|
-
const { attributes: o, listeners: s, setNodeRef:
|
|
2312
|
-
transform: n?.Transform?.toString(
|
|
2313
|
-
transition:
|
|
2314
|
-
opacity:
|
|
2430
|
+
ge.displayName = "SortableZonesInner";
|
|
2431
|
+
function be({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
2432
|
+
const { attributes: o, listeners: s, setNodeRef: l, transform: c, transition: b, isDragging: u } = t({ id: e }), w = {
|
|
2433
|
+
transform: n?.Transform?.toString(c) ?? void 0,
|
|
2434
|
+
transition: b,
|
|
2435
|
+
opacity: u ? 0.5 : 1
|
|
2315
2436
|
};
|
|
2316
|
-
return /* @__PURE__ */ g("div", { ref:
|
|
2437
|
+
return /* @__PURE__ */ g("div", { ref: l, style: w, "data-sortable-item-id": e, ...o, ...s, children: a });
|
|
2317
2438
|
}
|
|
2318
|
-
|
|
2319
|
-
function
|
|
2439
|
+
be.displayName = "SortableItem";
|
|
2440
|
+
function fe({
|
|
2320
2441
|
zoneKey: e,
|
|
2321
2442
|
zoneProps: t,
|
|
2322
2443
|
useDroppable: n,
|
|
@@ -2325,297 +2446,299 @@ function be({
|
|
|
2325
2446
|
const { setNodeRef: o, isOver: s } = n({ id: e });
|
|
2326
2447
|
return /* @__PURE__ */ g("div", { ref: o, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
2327
2448
|
}
|
|
2328
|
-
|
|
2329
|
-
const
|
|
2449
|
+
fe.displayName = "ZoneDroppable";
|
|
2450
|
+
const vt = F.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
2330
2451
|
const o = { ...n };
|
|
2331
|
-
return delete o.className, delete o.style, /* @__PURE__ */ g("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...o, children: /* @__PURE__ */ g(
|
|
2452
|
+
return delete o.className, delete o.style, /* @__PURE__ */ g("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...o, children: /* @__PURE__ */ g(te, { region: "toolbar", density: e, children: t }) });
|
|
2332
2453
|
});
|
|
2333
|
-
|
|
2334
|
-
const
|
|
2335
|
-
const
|
|
2336
|
-
return delete
|
|
2454
|
+
vt.displayName = "ContainerToolbar";
|
|
2455
|
+
const yt = F.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...o }, s) => {
|
|
2456
|
+
const l = { ...o };
|
|
2457
|
+
return delete l.className, delete l.style, /* @__PURE__ */ O("fieldset", { ref: s, className: "gloss-container-form-section", ...l, children: [
|
|
2337
2458
|
e && /* @__PURE__ */ g("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
2338
2459
|
t && /* @__PURE__ */ g("p", { className: "gloss-container-form-section__description", children: t }),
|
|
2339
|
-
/* @__PURE__ */ g(
|
|
2460
|
+
/* @__PURE__ */ g(te, { region: "form-section", density: n, children: a })
|
|
2340
2461
|
] });
|
|
2341
2462
|
});
|
|
2342
|
-
|
|
2343
|
-
const
|
|
2463
|
+
yt.displayName = "ContainerFormSection";
|
|
2464
|
+
const wt = F.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
2344
2465
|
const o = { ...n };
|
|
2345
|
-
return delete o.className, delete o.style, /* @__PURE__ */ g("div", { ref: a, className: "gloss-container-table", ...o, children: /* @__PURE__ */ g(
|
|
2466
|
+
return delete o.className, delete o.style, /* @__PURE__ */ g("div", { ref: a, className: "gloss-container-table", ...o, children: /* @__PURE__ */ g(te, { region: "table", density: e, children: t }) });
|
|
2346
2467
|
});
|
|
2347
|
-
|
|
2468
|
+
wt.displayName = "ContainerTable";
|
|
2348
2469
|
export {
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
Bt as
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2470
|
+
Da as Accordion,
|
|
2471
|
+
Na as AccordionContent,
|
|
2472
|
+
Sa as AccordionItem,
|
|
2473
|
+
ka as AccordionTrigger,
|
|
2474
|
+
Ta as ActionStrip,
|
|
2475
|
+
xa as Actionable,
|
|
2476
|
+
Ia as AddressGroup,
|
|
2477
|
+
Ra as AddressSelect,
|
|
2478
|
+
_a as AsyncLoader,
|
|
2479
|
+
Ma as Autocomplete,
|
|
2480
|
+
Pa as Badge,
|
|
2481
|
+
Fa as BarChartCard,
|
|
2482
|
+
Ea as BarsBg,
|
|
2483
|
+
Oa as Button,
|
|
2484
|
+
Aa as ButtonGroup,
|
|
2485
|
+
La as ButtonGroupContext,
|
|
2486
|
+
$a as Card,
|
|
2487
|
+
Ba as CardActions,
|
|
2488
|
+
Ka as CardBack,
|
|
2489
|
+
Ha as CardBody,
|
|
2490
|
+
Ga as CardFooter,
|
|
2491
|
+
za as CardHeader,
|
|
2492
|
+
Va as CardMedia,
|
|
2493
|
+
Za as CardShell,
|
|
2494
|
+
Wa as CardSubtitle,
|
|
2495
|
+
Ua as CardTitle,
|
|
2496
|
+
Ya as ChartControlBar,
|
|
2497
|
+
qa as Checkbox,
|
|
2498
|
+
ja as CheckboxGroup,
|
|
2499
|
+
Qa as Chip,
|
|
2500
|
+
Xa as ColorPicker,
|
|
2501
|
+
Ja as ComparisonCard,
|
|
2502
|
+
en as ContactForm,
|
|
2503
|
+
tn as ContainerCard,
|
|
2504
|
+
an as ContainerCardActions,
|
|
2505
|
+
nn as ContainerCardBody,
|
|
2506
|
+
rn as ContainerCardFooter,
|
|
2507
|
+
on as ContainerCardHeader,
|
|
2508
|
+
sn as ContainerCardMedia,
|
|
2509
|
+
ln as ContainerCardSubtitle,
|
|
2510
|
+
dn as ContainerCardTitle,
|
|
2511
|
+
cn as ContainerDialog,
|
|
2512
|
+
un as ContainerDialogActions,
|
|
2513
|
+
mn as ContainerDialogBody,
|
|
2514
|
+
pn as ContainerDialogHeader,
|
|
2515
|
+
yt as ContainerFormSection,
|
|
2516
|
+
gn as ContainerPanel,
|
|
2517
|
+
wt as ContainerTable,
|
|
2518
|
+
vt as ContainerToolbar,
|
|
2519
|
+
bn as CreditCardForm,
|
|
2520
|
+
fn as DEFAULT_FOOTER_IDS,
|
|
2521
|
+
Zo as DEFAULT_MARKET_PRESETS,
|
|
2522
|
+
hn as DEFAULT_OVERFLOW_IDS,
|
|
2523
|
+
Wo as DEFAULT_PINNED,
|
|
2524
|
+
vn as DataTable,
|
|
2525
|
+
yn as DatePicker,
|
|
2526
|
+
wn as DateRangePicker,
|
|
2527
|
+
Cn as DestructiveModal,
|
|
2528
|
+
Dn as DirectionCard,
|
|
2529
|
+
Nn as Dismissible,
|
|
2530
|
+
Sn as DistributionCard,
|
|
2531
|
+
kn as DonutChart,
|
|
2532
|
+
Tn as Dropdown,
|
|
2533
|
+
xn as ENTITY_FILTER_KEYS,
|
|
2534
|
+
In as ENTITY_PROFILE_ROUTES,
|
|
2535
|
+
Rn as ENTITY_TYPE_PLURAL,
|
|
2536
|
+
Ae as EdgeHoverHandle,
|
|
2537
|
+
_n as EntityPicker,
|
|
2538
|
+
Mn as EntitySearchPanel,
|
|
2539
|
+
Pn as Expandable,
|
|
2540
|
+
Fn as ExpandableChip,
|
|
2541
|
+
En as FLIP_AND_STAGE_TIMINGS,
|
|
2542
|
+
On as FileUpload,
|
|
2543
|
+
An as FilterChip,
|
|
2544
|
+
Ln as FilterInput,
|
|
2545
|
+
$n as FlipAndStageProvider,
|
|
2546
|
+
Bn as Form,
|
|
2547
|
+
Kn as FormDialog,
|
|
2548
|
+
Hn as FormField,
|
|
2549
|
+
Gn as FusedShape,
|
|
2550
|
+
Le as GhostPreview,
|
|
2551
|
+
zn as GroupCheckbox,
|
|
2552
|
+
Vn as GroupRadio,
|
|
2553
|
+
Zn as HighlightCard,
|
|
2554
|
+
Wn as HybridDatePicker,
|
|
2555
|
+
Un as ImportWizard,
|
|
2556
|
+
nt as InlineNudge,
|
|
2557
|
+
Yn as Input,
|
|
2558
|
+
qn as InputAddon,
|
|
2559
|
+
jn as InputGroup,
|
|
2560
|
+
Qn as Link,
|
|
2561
|
+
Xn as LoginForm,
|
|
2562
|
+
Jn as MarketPresetRow,
|
|
2563
|
+
er as MaskPresets,
|
|
2564
|
+
tr as MaskedInput,
|
|
2565
|
+
ar as Menu,
|
|
2566
|
+
nr as MenuDivider,
|
|
2567
|
+
rr as MenuGroup,
|
|
2568
|
+
or as MenuItem,
|
|
2569
|
+
sr as MergePrompt,
|
|
2570
|
+
ir as MetricCard,
|
|
2571
|
+
lr as MetricCardGrid,
|
|
2572
|
+
at as MetricGroupContainer,
|
|
2573
|
+
dr as MiniCalendar,
|
|
2574
|
+
cr as MultiSelect,
|
|
2575
|
+
ur as NumberInput,
|
|
2576
|
+
mr as ObjectArrow,
|
|
2577
|
+
pr as OrderFilterBar,
|
|
2578
|
+
Uo as PERIOD_OPTIONS,
|
|
2579
|
+
Ve as PageChip,
|
|
2580
|
+
de as PageDropdown,
|
|
2581
|
+
gr as PasswordInput,
|
|
2582
|
+
br as PaymentForm,
|
|
2583
|
+
fr as PaymentMethodSelect,
|
|
2584
|
+
hr as PhoneInput,
|
|
2585
|
+
vr as PinToMetric,
|
|
2586
|
+
dt as PresetSwatchRow,
|
|
2587
|
+
yr as ProfileCard,
|
|
2588
|
+
wr as ProgressCard,
|
|
2589
|
+
Cr as QuickConfigPanel,
|
|
2590
|
+
Qe as RECONFIG_BACKSIDE_LABELS,
|
|
2591
|
+
Yo as ROLLING_OPTIONS,
|
|
2592
|
+
Dr as Radio,
|
|
2593
|
+
Nr as RadioGroup,
|
|
2594
|
+
Sr as RangeSlider,
|
|
2595
|
+
kr as Rating,
|
|
2596
|
+
et as ReconfigBacksideButtons,
|
|
2597
|
+
Tr as RegistrationForm,
|
|
2598
|
+
xr as Row1Controls,
|
|
2599
|
+
Ir as Row2FilterTray,
|
|
2600
|
+
Rr as SearchInput,
|
|
2601
|
+
_r as SegmentCard,
|
|
2602
|
+
Mr as SegmentedControl,
|
|
2603
|
+
Pr as Select,
|
|
2604
|
+
Fr as Selectable,
|
|
2605
|
+
Er as SimpleMetricCard,
|
|
2606
|
+
Or as SimpleSelector,
|
|
2607
|
+
Ar as Skeleton,
|
|
2608
|
+
Lr as SkeletonCard,
|
|
2609
|
+
$r as SkeletonChart,
|
|
2610
|
+
Br as SkeletonTable,
|
|
2611
|
+
Kr as Slider,
|
|
2612
|
+
Hr as Sortable,
|
|
2613
|
+
ht as SortableZones,
|
|
2614
|
+
Gr as SparklineBg,
|
|
2615
|
+
zr as SplitButton,
|
|
2616
|
+
Vr as StackedGroupCard,
|
|
2617
|
+
Zr as StatusModeCard,
|
|
2618
|
+
Oe as StatusSlotChipMenu,
|
|
2619
|
+
Wr as Stepper,
|
|
2620
|
+
qo as TODAY_PRESET,
|
|
2621
|
+
Ur as TabGroup,
|
|
2622
|
+
Yr as TabbedDataView,
|
|
2623
|
+
qr as TagInput,
|
|
2624
|
+
jr as Textarea,
|
|
2625
|
+
st as ThresholdRamp,
|
|
2626
|
+
Qr as TimeFrame,
|
|
2627
|
+
Xr as TimePicker,
|
|
2628
|
+
Jr as Toggle,
|
|
2629
|
+
eo as Tooltip,
|
|
2630
|
+
to as Transition,
|
|
2631
|
+
ao as TransitionGroup,
|
|
2632
|
+
no as TrendCard,
|
|
2633
|
+
ro as TrendIndicator,
|
|
2634
|
+
Go as UIContext,
|
|
2635
|
+
te as UIContextProvider,
|
|
2636
|
+
oo as UnifiedBreakdownTable,
|
|
2637
|
+
so as UnifiedContextMenu,
|
|
2638
|
+
io as addressGroupMetadata,
|
|
2639
|
+
lo as addressSchema,
|
|
2640
|
+
Ft as allChips,
|
|
2641
|
+
Zt as allStateFixtures,
|
|
2642
|
+
Vt as allVariantFixtures,
|
|
2643
|
+
Lt as blockSamples,
|
|
2644
|
+
co as buildDefaultOverflow,
|
|
2645
|
+
Gt as cardSamples,
|
|
2646
|
+
Kt as chartSamples,
|
|
2647
|
+
Bt as circleSamples,
|
|
2648
|
+
pa as compactLayout,
|
|
2649
|
+
aa as compactState,
|
|
2650
|
+
uo as contactFormMetadata,
|
|
2651
|
+
mo as contactSchema,
|
|
2652
|
+
na as contextMenuFixtures,
|
|
2653
|
+
po as creditCardFormMetadata,
|
|
2654
|
+
go as creditCardSchema,
|
|
2655
|
+
Me as dateChip,
|
|
2656
|
+
me as defaultControlBarState,
|
|
2657
|
+
bo as destructiveModalMetadata,
|
|
2658
|
+
fo as durations,
|
|
2659
|
+
ho as easings,
|
|
2660
|
+
Ke as emptyFixture,
|
|
2661
|
+
Re as entityChip,
|
|
2662
|
+
Ye as entityNameActions,
|
|
2663
|
+
Ot as entityTabGroup,
|
|
2664
|
+
Be as errorFixture,
|
|
2665
|
+
ta as filteredState,
|
|
2666
|
+
jo as findPreset,
|
|
2667
|
+
Qo as formatDateRange,
|
|
2668
|
+
Xo as formatMarketDates,
|
|
2669
|
+
Jo as formatTrend,
|
|
2670
|
+
es as formatValue,
|
|
2671
|
+
ba as fullLayout,
|
|
2672
|
+
ts as generateMarketId,
|
|
2673
|
+
vo as generateTabId,
|
|
2674
|
+
as as getAllPresets,
|
|
2675
|
+
ns as getDateRangeForPreset,
|
|
2676
|
+
yo as getMenuActions,
|
|
2677
|
+
rs as getPresetLabel,
|
|
2678
|
+
wo as getTransitionStyle,
|
|
2679
|
+
ma as gridCards,
|
|
2680
|
+
Co as interpolate,
|
|
2681
|
+
os as isInRange,
|
|
2682
|
+
ss as isMarketActive,
|
|
2683
|
+
is as isSameDay,
|
|
2684
|
+
ea as itemColumns,
|
|
2685
|
+
Xt as itemRows,
|
|
2686
|
+
$e as loadingFixture,
|
|
2687
|
+
Do as loginFormMetadata,
|
|
2688
|
+
No as loginSchema,
|
|
2689
|
+
Pe as manufacturerChip,
|
|
2690
|
+
ya as manyTabs,
|
|
2691
|
+
So as mergeHandlers,
|
|
2692
|
+
ko as mergeRefs,
|
|
2693
|
+
Et as metricTabGroup,
|
|
2694
|
+
ha as mixedTabs,
|
|
2695
|
+
ls as normalizePresetId,
|
|
2696
|
+
je as numericActions,
|
|
2697
|
+
Jt as orderColumns,
|
|
2698
|
+
qe as orderIdActions,
|
|
2699
|
+
Qt as orderRows,
|
|
2700
|
+
fa as ordersTabs,
|
|
2701
|
+
To as parseNumericValue,
|
|
2702
|
+
xo as paymentFormMetadata,
|
|
2703
|
+
Io as paymentSchema,
|
|
2704
|
+
Ro as presets,
|
|
2705
|
+
_o as registrationFormMetadata,
|
|
2706
|
+
Mo as registrationSchema,
|
|
2707
|
+
oa as sampleCompareRanges,
|
|
2708
|
+
la as sampleCustomMarkets,
|
|
2709
|
+
ra as sampleDateRange,
|
|
2710
|
+
da as sampleMarketPresetData,
|
|
2711
|
+
ia as sampleMarkets,
|
|
2712
|
+
ua as samplePeriodPresets,
|
|
2713
|
+
sa as samplePreferences,
|
|
2714
|
+
ca as samplePresets,
|
|
2715
|
+
va as singleTab,
|
|
2716
|
+
Wt as sparklineFixture,
|
|
2717
|
+
Ut as sparklineUpFixture,
|
|
2718
|
+
ze as staleDonutFixture,
|
|
2719
|
+
He as staleFixture,
|
|
2720
|
+
Ge as staleSparklineFixture,
|
|
2721
|
+
Yt as standardFixture,
|
|
2722
|
+
jt as standardFlatFixture,
|
|
2723
|
+
ga as standardLayout,
|
|
2724
|
+
qt as standardNegativeFixture,
|
|
2725
|
+
_e as statusChip,
|
|
2726
|
+
Ht as tableSamples,
|
|
2727
|
+
$t as textSamples,
|
|
2728
|
+
At as timeFrameTabGroup,
|
|
2729
|
+
ds as toUppercasePresetId,
|
|
2730
|
+
Pt as useArrowNavigation,
|
|
2731
|
+
Po as useCheckboxGroupContext,
|
|
2732
|
+
zt as useEdgeHoverResize,
|
|
2733
|
+
Fo as useFilterLayout,
|
|
2734
|
+
Eo as useFlipAndStage,
|
|
2735
|
+
Oo as useFlipAndStageContext,
|
|
2736
|
+
Ao as useFlipAndStageContextOptional,
|
|
2737
|
+
Mt as useFocusReturn,
|
|
2738
|
+
Lo as useFocusTrap,
|
|
2739
|
+
$o as useFormContext,
|
|
2740
|
+
Bo as useRadioGroupContext,
|
|
2741
|
+
Ko as useSlideOutReveal,
|
|
2742
|
+
mt as useSortableZones,
|
|
2743
|
+
zo as useUIContext
|
|
2621
2744
|
};
|