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