@mt-gloss/ui 0.0.29 → 0.0.31
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-D4oDgWla.js → Expandable-CeO_XZ-S.js} +63 -64
- package/catalog.js +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as Ge } from "react/jsx-runtime";
|
|
2
2
|
import q, { useId as Le, useState as O, useCallback as S, createContext as Yt, useContext as Ut, useRef as se, useEffect as oe, useMemo as ee, useSyncExternalStore as as, useReducer as ss, forwardRef as os, useImperativeHandle as is } from "react";
|
|
3
3
|
import { S as J, E as Xe, C as B, h as ls, R as Se, k as cs, l as ds, m as us, aj as ms, P as ps, s as fs, ac as gs, ak as ve, Q as hs, V as qn, W as Zn, X as bs, Y as ys, _ as vs, $ as _s, a0 as xs, a1 as Ns, a4 as Ss, a5 as Cs, a6 as ws, ab as ks, a7 as Ds, a8 as Is, O as Ts, N as Es, i as Ms, j as Ps, a2 as Bs, a3 as Rs, n as zs, t as As, y as $s, v as Fs, U as bt, z as Os, A as Ls, w as Hs, D as Ws, x as Gs, ah as Vs, ai as js, F as Ks, G as Ys, H as Us, I as Xs, J as qs, K as Zs, L as Js, M as Qs, c as he, ad as Ht, e as Jn, d as kt, g as qe, Z as Qn, B as eo, af as to, b as ea, T as Ae, ae as ro, ag as _n } from "./UIContext-C3E-k7HI.js";
|
|
4
|
-
import { formatTrend as no, isStatusModeEnabled as ao, formatValue as ir, getValueFontSize as xn, getDateRangeForPreset as
|
|
4
|
+
import { formatTrend as no, isStatusModeEnabled as ao, formatValue as ir, getValueFontSize as xn, getDateRangeForPreset as je, formatDateRangeSmart as mt, isInRange as so, isSameDay as Qt, formatMarketDates as oo, DEFAULT_MARKET_PRESETS as er, isMarketActive as xt, detectPreset as tr, getDateRangeDisplayInfo as $t, toUppercasePresetId as rr, generateMarketId as io, ROLLING_OPTIONS as Nr, PERIOD_OPTIONS as Sr } from "@mt-gloss/utils";
|
|
5
5
|
import { useGridApiRef as lo, DataGridPro as co } from "@mui/x-data-grid-pro";
|
|
6
6
|
import { Chip as Wt, Tooltip as ft, MenuItem as Gt, Menu as uo, Box as ae, Popper as mo, Paper as po, MenuList as fo, ListItemText as go, IconButton as Ue, Select as Nn, Typography as Ie, Divider as ho, Button as rt, Collapse as bo, Popover as yo, Dialog as vo, DialogTitle as _o, DialogContent as xo, TextField as nr, DialogActions as No, Tabs as So, Tab as Co } from "@mui/material";
|
|
7
7
|
import wo from "@mui/icons-material/Person";
|
|
@@ -1573,7 +1573,7 @@ function El(r) {
|
|
|
1573
1573
|
children: o,
|
|
1574
1574
|
...c
|
|
1575
1575
|
} = r;
|
|
1576
|
-
if ({ ...c }, i) return /* @__PURE__ */ e(
|
|
1576
|
+
if ({ ...c }, i) return /* @__PURE__ */ e(Ge, { children: o });
|
|
1577
1577
|
const l = {
|
|
1578
1578
|
...Tl,
|
|
1579
1579
|
...Dl[t],
|
|
@@ -1583,7 +1583,7 @@ function El(r) {
|
|
|
1583
1583
|
`gloss-preset-tooltip--${t}`,
|
|
1584
1584
|
`gloss-preset-tooltip--${n}`
|
|
1585
1585
|
].join(" ");
|
|
1586
|
-
return /* @__PURE__ */ d(
|
|
1586
|
+
return /* @__PURE__ */ d(Ge, { children: [
|
|
1587
1587
|
o,
|
|
1588
1588
|
/* @__PURE__ */ e(Es, { definition: l, className: u, placement: s, children: a })
|
|
1589
1589
|
] });
|
|
@@ -3181,21 +3181,20 @@ const fr = ({ data: r, color: t, isStale: n }) => {
|
|
|
3181
3181
|
preserveAspectRatio: "none",
|
|
3182
3182
|
style: {
|
|
3183
3183
|
position: "absolute",
|
|
3184
|
-
// quick-260418-k7k-fix-
|
|
3185
|
-
//
|
|
3186
|
-
//
|
|
3187
|
-
//
|
|
3188
|
-
//
|
|
3189
|
-
//
|
|
3190
|
-
//
|
|
3191
|
-
//
|
|
3192
|
-
//
|
|
3193
|
-
//
|
|
3194
|
-
//
|
|
3184
|
+
// quick-260418-k7k-fix-3 (third post-mortem — chrome MCP DOM inspection
|
|
3185
|
+
// showed svg width resolving to viewBox intrinsic 300px, NOT cb+24):
|
|
3186
|
+
// <svg> is a REPLACED element. For position:absolute replaced elements
|
|
3187
|
+
// with width:auto + left + right, browsers use intrinsic width from
|
|
3188
|
+
// the viewBox, NOT the distance between left/right anchors. The only
|
|
3189
|
+
// way to make both edges bleed to the card outer border is an explicit
|
|
3190
|
+
// `width: calc(100% + 24px)` which cancels CardShell's 12px horizontal
|
|
3191
|
+
// padding on both sides. `right` is then moot and ignored (width+left
|
|
3192
|
+
// are the two winning constraints under CSS2.1 § 10.6.4). k7k-fix-2
|
|
3193
|
+
// in StackedGroupCard (moving SparklineBg out of overflow:hidden
|
|
3194
|
+
// BaseBox) is still needed so the bleed isn't clipped.
|
|
3195
3195
|
bottom: -8,
|
|
3196
3196
|
left: -12,
|
|
3197
|
-
|
|
3198
|
-
width: "auto",
|
|
3197
|
+
width: "calc(100% + 24px)",
|
|
3199
3198
|
zIndex: 1,
|
|
3200
3199
|
display: "block",
|
|
3201
3200
|
pointerEvents: "none",
|
|
@@ -3713,7 +3712,7 @@ const Ir = {
|
|
|
3713
3712
|
m === "critical" ? "gloss-threshold-critical" : "",
|
|
3714
3713
|
m === "critical" ? "gloss-threshold-pulse" : ""
|
|
3715
3714
|
].filter(Boolean).join(" ");
|
|
3716
|
-
return /* @__PURE__ */ d(
|
|
3715
|
+
return /* @__PURE__ */ d(Ge, { children: [
|
|
3717
3716
|
m !== "none" && /* @__PURE__ */ e("div", { className: V }),
|
|
3718
3717
|
m === "warn" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--warn", children: /* @__PURE__ */ e(Rc, {}) }),
|
|
3719
3718
|
m === "critical" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--critical", children: /* @__PURE__ */ e(zc, {}) }),
|
|
@@ -4192,7 +4191,7 @@ const ka = (r) => {
|
|
|
4192
4191
|
me(ie);
|
|
4193
4192
|
},
|
|
4194
4193
|
[me]
|
|
4195
|
-
), [
|
|
4194
|
+
), [Ve, Ne] = O(null);
|
|
4196
4195
|
return /* @__PURE__ */ e(Jo, { children: /* @__PURE__ */ e(
|
|
4197
4196
|
Ct.div,
|
|
4198
4197
|
{
|
|
@@ -4271,7 +4270,7 @@ const ka = (r) => {
|
|
|
4271
4270
|
style: ce,
|
|
4272
4271
|
children: [
|
|
4273
4272
|
D.map((ie) => {
|
|
4274
|
-
const xe = we[ie.id] ?? "none", Fe =
|
|
4273
|
+
const xe = we[ie.id] ?? "none", Fe = Ve === ie.id, He = ie.isActive && ie.activeIcon || xe === "check";
|
|
4275
4274
|
return /* @__PURE__ */ e(
|
|
4276
4275
|
"button",
|
|
4277
4276
|
{
|
|
@@ -4642,14 +4641,14 @@ const at = function({
|
|
|
4642
4641
|
oe(() => {
|
|
4643
4642
|
!Z && ce.current && (ce.current = !1, pe.current = setTimeout(() => K(!1), 180));
|
|
4644
4643
|
}, [Z]);
|
|
4645
|
-
const _e = $ || Z,
|
|
4644
|
+
const _e = $ || Z, Ve = [
|
|
4646
4645
|
u ? "gloss-card-shell--accent-ring" : ""
|
|
4647
4646
|
].filter(Boolean).join(" ") || void 0;
|
|
4648
4647
|
return /* @__PURE__ */ d(
|
|
4649
4648
|
"div",
|
|
4650
4649
|
{
|
|
4651
4650
|
ref: de,
|
|
4652
|
-
className:
|
|
4651
|
+
className: Ve,
|
|
4653
4652
|
style: {
|
|
4654
4653
|
position: "relative",
|
|
4655
4654
|
height: "100%",
|
|
@@ -4891,15 +4890,15 @@ const sd = function(t) {
|
|
|
4891
4890
|
() => H.slice(0, Math.min(H.length, P)),
|
|
4892
4891
|
[H, P]
|
|
4893
4892
|
), V = c?.[C];
|
|
4894
|
-
return /* @__PURE__ */ d(
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
/* @__PURE__ */ d(
|
|
4893
|
+
return /* @__PURE__ */ d(Ge, { children: [
|
|
4894
|
+
V && V.length >= 2 && /* @__PURE__ */ e(fr, { data: V, color: l, isStale: p }),
|
|
4895
|
+
/* @__PURE__ */ e(
|
|
4896
|
+
"div",
|
|
4897
|
+
{
|
|
4898
|
+
ref: z,
|
|
4899
|
+
"data-stacked-capacity": P,
|
|
4900
|
+
style: { position: "relative", width: "100%", height: "100%" },
|
|
4901
|
+
children: /* @__PURE__ */ d(
|
|
4903
4902
|
he,
|
|
4904
4903
|
{
|
|
4905
4904
|
definition: { display: "flex", direction: "column" },
|
|
@@ -5002,9 +5001,9 @@ const sd = function(t) {
|
|
|
5002
5001
|
]
|
|
5003
5002
|
}
|
|
5004
5003
|
)
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
);
|
|
5004
|
+
}
|
|
5005
|
+
)
|
|
5006
|
+
] });
|
|
5008
5007
|
};
|
|
5009
5008
|
sd.displayName = "StackedGroupCard";
|
|
5010
5009
|
function od(r) {
|
|
@@ -6029,8 +6028,8 @@ const Td = q.memo(({
|
|
|
6029
6028
|
}), [_.dimension]);
|
|
6030
6029
|
const pe = se({ id: null, name: null }), ce = se({ id: null, name: null });
|
|
6031
6030
|
oe(() => {
|
|
6032
|
-
const me = r.entity?.id ?? null, _e = r.entity?.name ?? null,
|
|
6033
|
-
(me !== pe.current.id || _e !== pe.current.name) && (pe.current = { id: me, name: _e }, me && _e ? (D(_e), I(!0), L("")) : D(null)), (
|
|
6031
|
+
const me = r.entity?.id ?? null, _e = r.entity?.name ?? null, Ve = r.byItem?.id ?? null, Ne = r.byItem?.name ?? null;
|
|
6032
|
+
(me !== pe.current.id || _e !== pe.current.name) && (pe.current = { id: me, name: _e }, me && _e ? (D(_e), I(!0), L("")) : D(null)), (Ve !== ce.current.id || Ne !== ce.current.name) && (ce.current = { id: Ve, name: Ne }, Ve && Ne ? (E(Ne), w(!0), R("")) : E(null));
|
|
6034
6033
|
}, [r.entity?.id, r.entity?.name, r.byItem?.id, r.byItem?.name]);
|
|
6035
6034
|
const be = S((me, _e) => {
|
|
6036
6035
|
me === "metric" ? n(_e) : me === "entity" ? (t(_e), _e !== "items" && w(!1)) : me === "dimension" && a(_e);
|
|
@@ -6766,7 +6765,7 @@ const Wr = ({
|
|
|
6766
6765
|
const u = se(null), m = c, p = t.find((I) => I.id === n), f = !!p, y = p || t.find((I) => I.id === i) || t.find((I) => I.id === a) || t[0], b = ee(() => {
|
|
6767
6766
|
if (!y || !["7d", "30d", "60d", "90d", "mtd", "qtd", "ytd", "lytd"].includes(y.id))
|
|
6768
6767
|
return "";
|
|
6769
|
-
const { start: g, end: E } =
|
|
6768
|
+
const { start: g, end: E } = je(y.id);
|
|
6770
6769
|
return mt(g, E, /* @__PURE__ */ new Date());
|
|
6771
6770
|
}, [y]), _ = S(() => {
|
|
6772
6771
|
l && l(r, !0);
|
|
@@ -7313,7 +7312,7 @@ const Od = {
|
|
|
7313
7312
|
...u
|
|
7314
7313
|
}), [u]), C = se(null), [T, w] = O(null), [k, I] = O("calendar"), [g, E] = O(null), [x, D] = O(null), N = se(null), [R, z] = O(() => h.lastPreset || "mtd"), [L, P] = O(null), [H, Y] = O(null), [V, M] = O(null), [W, j] = O(null), [G, $] = O(null), [K, Z] = O(() => n ? _ ?? h.compareEnabled ?? !1 : !1), U = _ ?? K, X = S((A) => {
|
|
7315
7314
|
Z(A), v?.(A);
|
|
7316
|
-
}, [v]), [te, pe] = O("A"), [ce, be] = O(() => h.lastPresetB ?? null), [de, ne] = O(null), [ge, Me] = O(null), [Ce, we] = O(null), [Ye, Te] = O(null), [me, _e] = O(null), [
|
|
7315
|
+
}, [v]), [te, pe] = O("A"), [ce, be] = O(() => h.lastPresetB ?? null), [de, ne] = O(null), [ge, Me] = O(null), [Ce, we] = O(null), [Ye, Te] = O(null), [me, _e] = O(null), [Ve, Ne] = O(null), [ie, xe] = O(null), [Fe, He] = O(null), [ke, Be] = O(null), [yt, Re] = O(null), [lt, Ze] = O(null), [Pe, vt] = O(1), [rn, ct] = O(!1), [Wa, Ga] = O(void 0), ze = V !== null ? V : R, Tt = V !== null ? W : L, dt = V !== null ? G : H, st = Ce !== null ? Ce : ce, Et = Ce !== null ? Ye : de, Mt = Ce !== null ? me : ge, ot = ke !== null ? ke : Ve, Pt = ke !== null ? yt : ie, Bt = ke !== null ? lt : Fe, nn = V !== null && (V !== R || W !== L || G !== H), [fe, hr] = O(() => {
|
|
7317
7316
|
const A = p || er, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
|
|
7318
7317
|
...ue,
|
|
7319
7318
|
active: xt(ue)
|
|
@@ -7373,7 +7372,7 @@ const Od = {
|
|
|
7373
7372
|
Q.setHours(0, 0, 0, 0);
|
|
7374
7373
|
let re = null;
|
|
7375
7374
|
if (h.lastPreset) {
|
|
7376
|
-
const le =
|
|
7375
|
+
const le = je(h.lastPreset, A), ue = new Date(le.start);
|
|
7377
7376
|
ue.setHours(0, 0, 0, 0);
|
|
7378
7377
|
const $e = new Date(le.end);
|
|
7379
7378
|
$e.setHours(0, 0, 0, 0), F.getTime() === ue.getTime() && Q.getTime() === $e.getTime() && (re = h.lastPreset);
|
|
@@ -7393,7 +7392,7 @@ const Od = {
|
|
|
7393
7392
|
if (re)
|
|
7394
7393
|
A = re.startDate, F = re.endDate;
|
|
7395
7394
|
else {
|
|
7396
|
-
const le =
|
|
7395
|
+
const le = je(R);
|
|
7397
7396
|
A = le.start, F = le.end;
|
|
7398
7397
|
}
|
|
7399
7398
|
}
|
|
@@ -7408,7 +7407,7 @@ const Od = {
|
|
|
7408
7407
|
if (re)
|
|
7409
7408
|
A = re.startDate, F = re.endDate;
|
|
7410
7409
|
else {
|
|
7411
|
-
const le =
|
|
7410
|
+
const le = je(ce);
|
|
7412
7411
|
A = le.start, F = le.end;
|
|
7413
7412
|
}
|
|
7414
7413
|
}
|
|
@@ -7418,7 +7417,7 @@ const Od = {
|
|
|
7418
7417
|
if (F)
|
|
7419
7418
|
return mt(F.startDate, F.endDate, /* @__PURE__ */ new Date());
|
|
7420
7419
|
if (A.includes(R)) {
|
|
7421
|
-
const { start: Q, end: re } =
|
|
7420
|
+
const { start: Q, end: re } = je(R);
|
|
7422
7421
|
return mt(Q, re, /* @__PURE__ */ new Date());
|
|
7423
7422
|
}
|
|
7424
7423
|
return "";
|
|
@@ -7431,7 +7430,7 @@ const Od = {
|
|
|
7431
7430
|
if (le)
|
|
7432
7431
|
A = le.startDate, F = le.endDate;
|
|
7433
7432
|
else {
|
|
7434
|
-
const ue =
|
|
7433
|
+
const ue = je(ze);
|
|
7435
7434
|
A = ue.start, F = ue.end;
|
|
7436
7435
|
}
|
|
7437
7436
|
}
|
|
@@ -7448,7 +7447,7 @@ const Od = {
|
|
|
7448
7447
|
if (le)
|
|
7449
7448
|
A = le.startDate, F = le.endDate;
|
|
7450
7449
|
else {
|
|
7451
|
-
const ue =
|
|
7450
|
+
const ue = je(st);
|
|
7452
7451
|
A = ue.start, F = ue.end;
|
|
7453
7452
|
}
|
|
7454
7453
|
}
|
|
@@ -7464,7 +7463,7 @@ const Od = {
|
|
|
7464
7463
|
if (le)
|
|
7465
7464
|
A = le.startDate, F = le.endDate;
|
|
7466
7465
|
else {
|
|
7467
|
-
const ue =
|
|
7466
|
+
const ue = je(ot);
|
|
7468
7467
|
A = ue.start, F = ue.end;
|
|
7469
7468
|
}
|
|
7470
7469
|
}
|
|
@@ -7472,8 +7471,8 @@ const Od = {
|
|
|
7472
7471
|
return Q.preset ? `${Q.preset.label} (${re})` : re;
|
|
7473
7472
|
}, [U, Pe, ot, Pt, Bt, fe]);
|
|
7474
7473
|
const Ya = S((A) => {
|
|
7475
|
-
M(R), j(L), $(H), U && (we(ce), Te(de), _e(ge), Pe >= 3 && (Be(
|
|
7476
|
-
}, [R, L, H, U, Pe, ce, de, ge,
|
|
7474
|
+
M(R), j(L), $(H), U && (we(ce), Te(de), _e(ge), Pe >= 3 && (Be(Ve), Re(ie), Ze(Fe))), w(A.currentTarget);
|
|
7475
|
+
}, [R, L, H, U, Pe, ce, de, ge, Ve, ie, Fe]), dn = S((A, F, Q) => {
|
|
7477
7476
|
const re = [A, F];
|
|
7478
7477
|
Q && (re.shortcutId = rr(Q)), t(re);
|
|
7479
7478
|
}, [t]), Zt = S((A, F, Q) => {
|
|
@@ -7482,7 +7481,7 @@ const Od = {
|
|
|
7482
7481
|
const re = fe.find(($e) => $e.id === A);
|
|
7483
7482
|
if (re)
|
|
7484
7483
|
return [re.startDate, re.endDate];
|
|
7485
|
-
const { start: le, end: ue } =
|
|
7484
|
+
const { start: le, end: ue } = je(A);
|
|
7486
7485
|
return [le, ue];
|
|
7487
7486
|
}, [fe]), tt = S((A) => {
|
|
7488
7487
|
m && m({ ...h, ...A });
|
|
@@ -7552,8 +7551,8 @@ const Od = {
|
|
|
7552
7551
|
}, [U, te]), At = S((A) => {
|
|
7553
7552
|
if (!fe.find((re) => re.id === A)) return;
|
|
7554
7553
|
const Q = h.pinnedPreset || "mtd";
|
|
7555
|
-
U && te === "C" ? (Be((ke !== null ? ke :
|
|
7556
|
-
}, [fe, U, te, h.pinnedPreset, V, R, Ce, ce, ke,
|
|
7554
|
+
U && te === "C" ? (Be((ke !== null ? ke : Ve) === A ? Q : A), Re(null), Ze(null)) : U && te === "B" ? (we((Ce !== null ? Ce : ce) === A ? Q : A), Te(null), _e(null)) : (M((V !== null ? V : R) === A ? Q : A), j(null), $(null));
|
|
7555
|
+
}, [fe, U, te, h.pinnedPreset, V, R, Ce, ce, ke, Ve]), qa = S((A, F) => {
|
|
7557
7556
|
if (U && te === "C")
|
|
7558
7557
|
if (Re(A), F) {
|
|
7559
7558
|
Ze(F);
|
|
@@ -7588,7 +7587,7 @@ const Od = {
|
|
|
7588
7587
|
A = dt;
|
|
7589
7588
|
else {
|
|
7590
7589
|
const F = fe.find((Q) => Q.id === ze);
|
|
7591
|
-
F ? A = F.endDate : A =
|
|
7590
|
+
F ? A = F.endDate : A = je(ze).end;
|
|
7592
7591
|
}
|
|
7593
7592
|
I("calendar"), Ga(new Date(A));
|
|
7594
7593
|
}, [ze, dt, fe]);
|
|
@@ -7659,7 +7658,7 @@ const Od = {
|
|
|
7659
7658
|
if (ue)
|
|
7660
7659
|
re = ue.startDate, le = ue.endDate;
|
|
7661
7660
|
else {
|
|
7662
|
-
const $e =
|
|
7661
|
+
const $e = je(A || "mtd");
|
|
7663
7662
|
re = $e.start, le = $e.end;
|
|
7664
7663
|
}
|
|
7665
7664
|
}
|
|
@@ -7683,7 +7682,7 @@ const Od = {
|
|
|
7683
7682
|
/* @__PURE__ */ e(Ie, { className: "range-card__label", children: A }),
|
|
7684
7683
|
/* @__PURE__ */ e(ae, { className: `range-card__indicator ${F ? "range-card__indicator--active" : ""}` })
|
|
7685
7684
|
] }),
|
|
7686
|
-
vn ? /* @__PURE__ */ e(Ie, { className: "range-card__preset", sx: { color: "#9ca3af", fontStyle: "italic" }, children: "Select a date range" }) : /* @__PURE__ */ d(
|
|
7685
|
+
vn ? /* @__PURE__ */ e(Ie, { className: "range-card__preset", sx: { color: "#9ca3af", fontStyle: "italic" }, children: "Select a date range" }) : /* @__PURE__ */ d(Ge, { children: [
|
|
7687
7686
|
/* @__PURE__ */ e(Ie, { className: "range-card__preset", children: Q }),
|
|
7688
7687
|
/* @__PURE__ */ e(Ie, { className: "range-card__dates", children: re })
|
|
7689
7688
|
] })
|
|
@@ -7763,7 +7762,7 @@ const Od = {
|
|
|
7763
7762
|
}
|
|
7764
7763
|
) : yn,
|
|
7765
7764
|
(() => {
|
|
7766
|
-
const A = /* @__PURE__ */ d(
|
|
7765
|
+
const A = /* @__PURE__ */ d(Ge, { children: [
|
|
7767
7766
|
s && /* @__PURE__ */ d(
|
|
7768
7767
|
ae,
|
|
7769
7768
|
{
|
|
@@ -7943,8 +7942,8 @@ const Od = {
|
|
|
7943
7942
|
return /* @__PURE__ */ e(
|
|
7944
7943
|
Ea,
|
|
7945
7944
|
{
|
|
7946
|
-
selectedStart: F === "custom" && Q ? Q : fe.find((le) => le.id === F)?.startDate ??
|
|
7947
|
-
selectedEnd: F === "custom" ? re : fe.find((le) => le.id === F)?.endDate ??
|
|
7945
|
+
selectedStart: F === "custom" && Q ? Q : fe.find((le) => le.id === F)?.startDate ?? je(F || "mtd").start,
|
|
7946
|
+
selectedEnd: F === "custom" ? re : fe.find((le) => le.id === F)?.endDate ?? je(F || "mtd").end,
|
|
7948
7947
|
onSelect: qa,
|
|
7949
7948
|
marketDates: fe,
|
|
7950
7949
|
size: a,
|
|
@@ -7965,7 +7964,7 @@ const Od = {
|
|
|
7965
7964
|
},
|
|
7966
7965
|
F.id
|
|
7967
7966
|
)),
|
|
7968
|
-
qt.length > 0 && /* @__PURE__ */ d(
|
|
7967
|
+
qt.length > 0 && /* @__PURE__ */ d(Ge, { children: [
|
|
7969
7968
|
/* @__PURE__ */ e(
|
|
7970
7969
|
rt,
|
|
7971
7970
|
{
|
|
@@ -8108,7 +8107,7 @@ const Od = {
|
|
|
8108
8107
|
]
|
|
8109
8108
|
}
|
|
8110
8109
|
),
|
|
8111
|
-
Pe === 3 && /* @__PURE__ */ d(
|
|
8110
|
+
Pe === 3 && /* @__PURE__ */ d(Ge, { children: [
|
|
8112
8111
|
" vs ",
|
|
8113
8112
|
/* @__PURE__ */ d(
|
|
8114
8113
|
ae,
|
|
@@ -8278,7 +8277,7 @@ const Od = {
|
|
|
8278
8277
|
title: "Click to view in calendar",
|
|
8279
8278
|
children: (() => {
|
|
8280
8279
|
const F = cn.match(/^(.+?)(\s*\(.+\))$/);
|
|
8281
|
-
return F && F[1] && F[1].length > 14 ? /* @__PURE__ */ d(
|
|
8280
|
+
return F && F[1] && F[1].length > 14 ? /* @__PURE__ */ d(Ge, { children: [
|
|
8282
8281
|
F[1],
|
|
8283
8282
|
/* @__PURE__ */ e("br", {}),
|
|
8284
8283
|
F[2]
|
|
@@ -8358,7 +8357,7 @@ const Od = {
|
|
|
8358
8357
|
onClose: () => E(null),
|
|
8359
8358
|
maxWidth: "xs",
|
|
8360
8359
|
fullWidth: !0,
|
|
8361
|
-
children: g && /* @__PURE__ */ d(
|
|
8360
|
+
children: g && /* @__PURE__ */ d(Ge, { children: [
|
|
8362
8361
|
/* @__PURE__ */ d(_o, { sx: { py: 1.5, px: 2, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
8363
8362
|
/* @__PURE__ */ e(Ie, { variant: "subtitle1", fontWeight: 600, children: g.isNew ? "Add Market Event" : "Edit Market Event" }),
|
|
8364
8363
|
/* @__PURE__ */ e(Ue, { size: "small", onClick: () => E(null), children: /* @__PURE__ */ e(wt, { fontSize: "small" }) })
|
|
@@ -10669,7 +10668,7 @@ function Aa(r) {
|
|
|
10669
10668
|
Z.preventDefault(), K || z(W.value);
|
|
10670
10669
|
},
|
|
10671
10670
|
onMouseEnter: () => I(j),
|
|
10672
|
-
children: i ? i(W, G) : /* @__PURE__ */ d(
|
|
10671
|
+
children: i ? i(W, G) : /* @__PURE__ */ d(Ge, { children: [
|
|
10673
10672
|
/* @__PURE__ */ e(
|
|
10674
10673
|
"span",
|
|
10675
10674
|
{
|
|
@@ -11020,7 +11019,7 @@ function ku({
|
|
|
11020
11019
|
}, b = () => {
|
|
11021
11020
|
i((_) => !_);
|
|
11022
11021
|
};
|
|
11023
|
-
return /* @__PURE__ */ d(
|
|
11022
|
+
return /* @__PURE__ */ d(Ge, { children: [
|
|
11024
11023
|
/* @__PURE__ */ e(
|
|
11025
11024
|
"button",
|
|
11026
11025
|
{
|
|
@@ -11079,7 +11078,7 @@ const Du = {
|
|
|
11079
11078
|
};
|
|
11080
11079
|
function Zr({ open: r, onDismiss: t, size: n = "md", children: a }) {
|
|
11081
11080
|
const s = Du[n];
|
|
11082
|
-
return /* @__PURE__ */ d(
|
|
11081
|
+
return /* @__PURE__ */ d(Ge, { children: [
|
|
11083
11082
|
r && /* @__PURE__ */ e("div", { className: "gloss-container-dialog__backdrop", "data-density": "default" }),
|
|
11084
11083
|
/* @__PURE__ */ e(
|
|
11085
11084
|
ea,
|
|
@@ -11381,7 +11380,7 @@ function $a(r) {
|
|
|
11381
11380
|
] }, v.key);
|
|
11382
11381
|
}) }),
|
|
11383
11382
|
/* @__PURE__ */ e("div", { className: "gloss-stepper__content", children: o(n) }),
|
|
11384
|
-
/* @__PURE__ */ e("div", { className: "gloss-stepper__actions", children: c ? c(n, { goNext: f, goBack: y, isFirst: m, isLast: p }) : /* @__PURE__ */ d(
|
|
11383
|
+
/* @__PURE__ */ e("div", { className: "gloss-stepper__actions", children: c ? c(n, { goNext: f, goBack: y, isFirst: m, isLast: p }) : /* @__PURE__ */ d(Ge, { children: [
|
|
11385
11384
|
/* @__PURE__ */ e(
|
|
11386
11385
|
De,
|
|
11387
11386
|
{
|
package/catalog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as I, N, A as B, F as x, J as D, z as F, D as A, E as M, H as v, O as R, Q as H, T as W, a$ as _, U as k, b0 as z, b1 as E, b2 as L, V as $, W as G, X as O } from "./Expandable-
|
|
2
|
-
import { a3 as Ne, b6 as Be, az as xe, ah as De, Z as Fe, an as Ae, bS as Me, K as ve, a8 as Re, bo as He, P as We, B as _e, bi as ke, bh as ze, bx as Ee, b as Le, C as $e, L as Ge, o as Oe, ad as we, aN as Ve, aC as Xe, aq as je, k as Ue, m as Ze, aF as qe, ab as Je, b8 as Ke, a9 as Qe, bp as Ye, Y as ea, ap as aa, aQ as sa, ba as ta, n as ra, am as oa, a0 as ia, ar as na, a2 as la, aa as da, bJ as ca, aT as ga, r as ma, I as pa, g as ua, aw as ba, M as fa, w as ha, as as ya, bg as Sa, bP as Ta, ao as Pa, t as Ca, bq as Ia, aS as Na, b3 as Ba, aj as xa, aK as Da, ag as Fa, al as Aa, au as Ma, bU as va, aR as Ra, bT as Ha, ac as Wa, c as _a, R as ka, j as za, p as Ea, aH as La, ai as $a, ae as Ga, h as Oa, x as wa, b7 as Va, af as Xa, bc as ja, bf as Ua, bd as Za, be as qa, i as Ja, b9 as Ka, bn as Qa, S as Ya, bk as es, av as as, bb as ss, bQ as ts, ak as rs, bR as os, s as is, bK as ns, l as ls, f as ds, q as cs, _ as gs, a7 as ms, bj as ps, bw as us, bD as bs, aB as fs, a6 as hs, aP as ys, aE as Ss, ay as Ts, aM as Ps, aJ as Cs, a1 as Is, bm as Ns } from "./Expandable-
|
|
1
|
+
import { y as I, N, A as B, F as x, J as D, z as F, D as A, E as M, H as v, O as R, Q as H, T as W, a$ as _, U as k, b0 as z, b1 as E, b2 as L, V as $, W as G, X as O } from "./Expandable-CeO_XZ-S.js";
|
|
2
|
+
import { a3 as Ne, b6 as Be, az as xe, ah as De, Z as Fe, an as Ae, bS as Me, K as ve, a8 as Re, bo as He, P as We, B as _e, bi as ke, bh as ze, bx as Ee, b as Le, C as $e, L as Ge, o as Oe, ad as we, aN as Ve, aC as Xe, aq as je, k as Ue, m as Ze, aF as qe, ab as Je, b8 as Ke, a9 as Qe, bp as Ye, Y as ea, ap as aa, aQ as sa, ba as ta, n as ra, am as oa, a0 as ia, ar as na, a2 as la, aa as da, bJ as ca, aT as ga, r as ma, I as pa, g as ua, aw as ba, M as fa, w as ha, as as ya, bg as Sa, bP as Ta, ao as Pa, t as Ca, bq as Ia, aS as Na, b3 as Ba, aj as xa, aK as Da, ag as Fa, al as Aa, au as Ma, bU as va, aR as Ra, bT as Ha, ac as Wa, c as _a, R as ka, j as za, p as Ea, aH as La, ai as $a, ae as Ga, h as Oa, x as wa, b7 as Va, af as Xa, bc as ja, bf as Ua, bd as Za, be as qa, i as Ja, b9 as Ka, bn as Qa, S as Ya, bk as es, av as as, bb as ss, bQ as ts, ak as rs, bR as os, s as is, bK as ns, l as ls, f as ds, q as cs, _ as gs, a7 as ms, bj as ps, bw as us, bD as bs, aB as fs, a6 as hs, aP as ys, aE as Ss, ay as Ts, aM as Ps, aJ as Cs, a1 as Is, bm as Ns } from "./Expandable-CeO_XZ-S.js";
|
|
3
3
|
import { jsx as c, jsxs as T } from "react/jsx-runtime";
|
|
4
4
|
import { C as e, T as a, ae as w, S as s, E as u, R as m, e as V, Z as X } from "./UIContext-C3E-k7HI.js";
|
|
5
5
|
import { B as j, a as U, e as Z, c as q, d as J, b as K } from "./BaseAsyncButton-nFOdhiBv.js";
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CeO_XZ-S.js";
|
|
2
2
|
import { jsxs as O, jsx as g } from "react/jsx-runtime";
|
|
3
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
4
|
import { B as Ce, U as te } from "./UIContext-C3E-k7HI.js";
|