react-semaphor 0.1.584 → 0.1.585

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.
Files changed (50) hide show
  1. package/dist/analytics-protocol/index.js +477 -440
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/briefings/index.js +2 -2
  4. package/dist/chunks/{assistant-chat-nmycV1Se.js → assistant-chat-BdbLmAnK.js} +7 -7
  5. package/dist/chunks/{bookmark-impact-CI3gmxi0.js → bookmark-impact-BhT3k379.js} +2 -2
  6. package/dist/chunks/{bookmark-state-D9-RFkDg.js → bookmark-state-CL4WEpgB.js} +2 -2
  7. package/dist/chunks/{card-filter-builder-C7QyPqRy.js → card-filter-builder-CEcKF6Fw.js} +50 -50
  8. package/dist/chunks/{comparison-window-caption-BAnsTI8y.js → comparison-window-caption-CoART8BC.js} +530 -633
  9. package/dist/chunks/{dashboard-inJy_V78.js → dashboard-MPku_x1M.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DXs0XA1O.js → dashboard-briefing-launcher-CkFNlkr1.js} +8 -8
  11. package/dist/chunks/{dashboard-controls-6Zoo8d8Y.js → dashboard-controls-Clt4ovXS.js} +9 -9
  12. package/dist/chunks/{dashboard-json-D5eJhVA9.js → dashboard-json-DSmXazIg.js} +1 -1
  13. package/dist/chunks/{dates-B3_GWc_Y.js → dates-CYZW9owO.js} +6 -6
  14. package/dist/chunks/{edit-dashboard-visual-DR03SYeW.js → edit-dashboard-visual-Dn2ECRbX.js} +2751 -2686
  15. package/dist/chunks/filter-line-Cu2u1K36.js +131 -0
  16. package/dist/chunks/{filter-reach-copy-CZwzrxBp.js → filter-reach-copy-CmJpPa4G.js} +1627 -1371
  17. package/dist/chunks/{filter-value-text-DtOvqcjn.js → filter-value-text-xefXzZlf.js} +10 -10
  18. package/dist/chunks/{index-BgT1L0p5.js → index-0WYn6RMz.js} +35 -35
  19. package/dist/chunks/{matrix-analytical-definition-Cs2v43FM.js → matrix-analytical-definition-QjBgUYhP.js} +382 -544
  20. package/dist/chunks/{metric-comparison-Be4uS3Ql.js → metric-comparison-ZmurmEIs.js} +2 -2
  21. package/dist/chunks/{pivot-header-presentation-uH06jiZD.js → pivot-header-presentation-CdeTU96P.js} +1 -1
  22. package/dist/chunks/{pivot-result-contract-expectations-DvZY4eJM.js → pivot-result-contract-expectations-Bx_BCu-7.js} +1010 -1005
  23. package/dist/chunks/{pivot-result-identity-BZexMfmL.js → pivot-result-identity-Bvs6Uq3v.js} +1 -1
  24. package/dist/chunks/raw-temporal-value-DH-feMc2.js +322 -0
  25. package/dist/chunks/{report-preferences-dialog-DWeVe2so.js → report-preferences-dialog-BRaeufEi.js} +119 -119
  26. package/dist/chunks/{resolve-dashboard-input-context-uATCuOP7.js → resolve-dashboard-input-context-Cn9jumxl.js} +304 -299
  27. package/dist/chunks/{saved-dashboard-context-DSVV9iqW.js → saved-dashboard-context-CfqkUMzR.js} +5 -5
  28. package/dist/chunks/{semaphor-ready-indicator-B9vvRMnJ.js → semaphor-ready-indicator-D6WjdTGl.js} +19776 -19620
  29. package/dist/chunks/{shelf-drop-preview-context-BHOnp5Bo.js → shelf-drop-preview-context-Bbbrr9u4.js} +2 -2
  30. package/dist/chunks/{stored-dashboard-xc5iidHL.js → stored-dashboard-sPkTjxYf.js} +7 -7
  31. package/dist/chunks/{table-export-sheet-Cv_94obr.js → table-export-sheet-Dmtqi5NV.js} +1 -1
  32. package/dist/chunks/{variable-draft-C3CjhsJQ.js → variable-draft-D1RotIEG.js} +3 -3
  33. package/dist/dashboard/index.js +2 -2
  34. package/dist/dashboard-authoring/index.js +707 -704
  35. package/dist/format-utils/index.js +145 -142
  36. package/dist/index.js +14 -14
  37. package/dist/style.css +1 -1
  38. package/dist/surfboard/index.js +2 -2
  39. package/dist/types/index.js +2 -2
  40. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  41. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +191 -0
  42. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +3 -0
  43. package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +5 -2
  44. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +37 -4
  45. package/dist/types/shared/format-utils/semantic-format.d.ts +0 -1
  46. package/dist/types/shared/format-utils/temporal-bucket.d.ts +20 -0
  47. package/dist/types/shared/temporal/calendar-periods.d.ts +15 -0
  48. package/dist/types/shared/temporal/raw-temporal-equality.d.ts +14 -0
  49. package/package.json +1 -1
  50. package/dist/chunks/raw-temporal-value-DdT0s47W.js +0 -159
@@ -1,4 +1,4 @@
1
- import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-DSVV9iqW.js";
1
+ import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-CfqkUMzR.js";
2
2
  export {
3
3
  e as AssistantContextSourceError,
4
4
  t as assistantCardReplayFields,
@@ -1,11 +1,11 @@
1
- import "../chunks/pivot-result-contract-expectations-DvZY4eJM.js";
1
+ import "../chunks/pivot-result-contract-expectations-Bx_BCu-7.js";
2
2
  import "../chunks/validators-CJ8Jh0E8.js";
3
3
  import "../chunks/export-file-format-C-tJsxsf.js";
4
4
  import "zod";
5
5
  import "../chunks/matrix-operation-contract-BM5TveR3.js";
6
6
  import "../chunks/analytics-base-schemas-BaIQrEzX.js";
7
7
  import "../value-format-preferences/index.js";
8
- import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-BgT1L0p5.js";
8
+ import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-0WYn6RMz.js";
9
9
  export {
10
10
  g as BRIEFING_ARTIFACT_FORMATS,
11
11
  l as BRIEFING_ATTACHMENT_FORMATS,
@@ -5,24 +5,24 @@ var Qt = (e, t, a) => t.has(e) || Yt("Cannot " + a);
5
5
  var B = (e, t, a) => (Qt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), oe = (e, t, a) => t.has(e) ? Yt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), W = (e, t, a, s) => (Qt(e, t, "write to private field"), s ? s.call(e, a) : t.set(e, a), a);
6
6
  import { jsx as d, jsxs as b, Fragment as xe } from "react/jsx-runtime";
7
7
  import { useCallback as G, useRef as te, useMemo as We, useEffect as ve, useState as $, useLayoutEffect as _e, useId as Xs } from "react";
8
- import { u as H, dk as er, b4 as tr, bo as ar, a6 as sr, dl as rr, dm as nr, a7 as Xt, b1 as or, dn as ir, c1 as lr, dp as dr, dq as Rt, dr as cr, ds as ur, dt, du as _a, dv as pr, bX as qe, cj as ea, dw as Oa, a9 as mr, cd as Ra, br as fr, c6 as Pt, bW as Pa, dx as Da, dy as Dt, cE as hr, dz as $a, dA as gr, cG as yr, bx as br, dB as vr, dC as xr, cg as wr, ch as Nr, dD as Ir, ci as Sr, co as Ar, dE as Cr, c3 as pt, cn as Er, cs as Tr, c5 as ja, a$ as Fa, b2 as kr, bi as tt, aZ as La, dF as Mr, dG as _r, dH as Or, dI as Rr, ag as Ba, dJ as Pr } from "./semaphor-ready-indicator-B9vvRMnJ.js";
8
+ import { u as H, dk as er, b4 as tr, bo as ar, a6 as sr, dl as rr, dm as nr, a7 as Xt, b1 as or, dn as ir, c1 as lr, dp as dr, dq as Rt, dr as cr, ds as ur, dt, du as _a, dv as pr, bX as qe, cj as ea, dw as Oa, a9 as mr, cd as Ra, br as fr, c6 as Pt, bW as Pa, dx as Da, dy as Dt, cE as hr, dz as $a, dA as gr, cG as yr, bx as br, dB as vr, dC as xr, cg as wr, ch as Nr, dD as Ir, ci as Sr, co as Ar, dE as Cr, c3 as pt, cn as Er, cs as Tr, c5 as ja, a$ as Fa, b2 as kr, bi as tt, aZ as La, dF as Mr, dG as _r, dH as Or, dI as Rr, ag as Ba, dJ as Pr } from "./semaphor-ready-indicator-D6WjdTGl.js";
9
9
  import { c as Re, B as q, X as He, p as Ua, q as Dr, j as Pe, L as we, I as $t, R as $r, e as za, f as qa, h as Va } from "./style-sheet-parts-_dGSFzDi.js";
10
10
  import { g as jr, c as F } from "./pickers-DkqmtnTL.js";
11
11
  import "./validators-CJ8Jh0E8.js";
12
12
  import "./matrix-operation-contract-BM5TveR3.js";
13
13
  import "./analytics-base-schemas-BaIQrEzX.js";
14
14
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Fr } from "../value-format-preferences/index.js";
15
- import { J as Lr } from "./bookmark-state-D9-RFkDg.js";
15
+ import { J as Lr } from "./bookmark-state-CL4WEpgB.js";
16
16
  import { n as Br, o as Ge, c as It, A as ze, d as Za } from "./context-BTLBjQNh.js";
17
- import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-DSVV9iqW.js";
18
- import { g2 as zr, o as qr, g3 as aa } from "./resolve-dashboard-input-context-uATCuOP7.js";
19
- import { u as Ka, i as Vr } from "./report-preferences-dialog-DWeVe2so.js";
20
- import { m as Zr } from "./stored-dashboard-xc5iidHL.js";
17
+ import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-CfqkUMzR.js";
18
+ import { g2 as zr, o as qr, g3 as aa } from "./resolve-dashboard-input-context-Cn9jumxl.js";
19
+ import { u as Ka, i as Vr } from "./report-preferences-dialog-BRaeufEi.js";
20
+ import { m as Zr } from "./stored-dashboard-sPkTjxYf.js";
21
21
  import { w as Jr, c as Wa } from "./visual-choice-JiJ-_3bi.js";
22
22
  import { n as Kr, v as Ha, o as Wr, t as Hr, x as jt, l as ce, d as Gr, b as Yr, m as Ft, M as mt, r as Qr, w as Xr, h as en, j as tn, s as St, f as an, a as sn } from "./add-to-dashboard-DhP8wVtM.js";
23
23
  import { safeParseAsync as rn, lazy as nn, unknown as on, union as ln, string as dn, record as cn, object as un, number as pn, null as mn, never as fn, looseObject as hn, literal as gn, instanceof as yn, enum as bn, discriminatedUnion as vn, custom as xn, boolean as wn, array as Nn } from "zod/v4";
24
24
  import { toJSONSchema as In } from "zod/v4/core";
25
- import { aQ as Sn, aR as An, aS as Cn, aT as at, aU as En, aV as sa, aW as ra, aX as na, aY as oa, aZ as ia, a_ as Tn, f as kn, aj as Mn } from "./pivot-result-contract-expectations-DvZY4eJM.js";
25
+ import { aR as Sn, aS as An, aT as Cn, aU as at, aV as En, aW as sa, aX as ra, aY as na, aZ as oa, a_ as ia, a$ as Tn, f as kn, al as Mn } from "./pivot-result-contract-expectations-Bx_BCu-7.js";
26
26
  import { L as _n } from "./list-filter-CfMPI6v4.js";
27
27
  import { L as la } from "./layout-grid-9nSS2SL-.js";
28
28
  function On(e, t, a) {
@@ -1,5 +1,5 @@
1
- import { x as g, z as $ } from "./bookmark-state-D9-RFkDg.js";
2
- import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-xc5iidHL.js";
1
+ import { x as g, z as $ } from "./bookmark-state-CL4WEpgB.js";
2
+ import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-sPkTjxYf.js";
3
3
  function D(e) {
4
4
  var d, c, f;
5
5
  const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
@@ -1,10 +1,10 @@
1
1
  import { a5 as G, f as Ve, r as Pe } from "./validators-CJ8Jh0E8.js";
2
2
  import { z as l } from "zod";
3
3
  import { Q as B, F as Le, r as $e } from "./matrix-operation-contract-BM5TveR3.js";
4
- import { D as qe, C as Be, r as j, a as je, e as Ue } from "./metric-comparison-Be4uS3Ql.js";
4
+ import { D as qe, C as Be, a as j, r as je, e as Ue } from "./metric-comparison-ZmurmEIs.js";
5
5
  import "./analytics-base-schemas-BaIQrEzX.js";
6
6
  import { a as O } from "./applied-constraints-DU-wndZ7.js";
7
- import { r as ze } from "./pivot-result-identity-BZexMfmL.js";
7
+ import { r as ze } from "./pivot-result-identity-Bvs6Uq3v.js";
8
8
  const ne = 8, re = 6, V = Object.freeze([]);
9
9
  function We(e) {
10
10
  switch (e.type) {
@@ -2,17 +2,17 @@ import { c as nt, B as G, X as ce, x as Ne, q as mn, a8 as pn, t as at, u as rt,
2
2
  import { jsx as t, jsxs as l, Fragment as fe } from "react/jsx-runtime";
3
3
  import * as _e from "react";
4
4
  import vt, { useMemo as Q, useState as H, useRef as Ae, useCallback as ne, useEffect as de, forwardRef as xn, Fragment as gn } from "react";
5
- import { b2 as ct, u as ut, ag as se, c5 as _t, cC as X, cD as bn, c1 as Ie, cE as Ue, cF as Vt, cG as vn, bX as Ve, cH as yn, ah as Rt, bE as Nn, bF as Cn, bH as wn, bx as kn, cI as Sn, i as Dn, cJ as In, cK as Tn, cL as yt, bW as Et, cM as Ln, cN as zt, cO as Mt, cP as An, cQ as $n, cR as Fn, cS as On, cT as _n, cU as Vn, cV as Rn, by as En, cW as Nt, cX as qt, cY as zn, bB as Mn, cZ as qn, c_ as jn, c$ as Un, d0 as ye, d1 as jt, d2 as Gn, d3 as Bn, d4 as Wn, d5 as Kn, d6 as Qn, d7 as Ze, d8 as he, d9 as Je, da as et, db as tt, dc as Hn, dd as Re, de as Ee, df as ze, dg as Me, dh as Ut, di as Gt, dj as Bt } from "./semaphor-ready-indicator-B9vvRMnJ.js";
5
+ import { b2 as ct, u as ut, ag as se, c5 as _t, cC as X, cD as bn, c1 as Ie, cE as Ue, cF as Vt, cG as vn, bX as Ve, cH as yn, ah as Rt, bE as Nn, bF as Cn, bH as wn, bx as kn, cI as Sn, i as Dn, cJ as In, cK as Tn, cL as yt, bW as Et, cM as Ln, cN as zt, cO as Mt, cP as An, cQ as $n, cR as Fn, cS as On, cT as _n, cU as Vn, cV as Rn, by as En, cW as Nt, cX as qt, cY as zn, bB as Mn, cZ as qn, c_ as jn, c$ as Un, d0 as ye, d1 as jt, d2 as Gn, d3 as Bn, d4 as Wn, d5 as Kn, d6 as Qn, d7 as Je, d8 as he, d9 as Ze, da as et, db as tt, dc as Hn, dd as Re, de as Ee, df as ze, dg as Me, dh as Ut, di as Gt, dj as Bt } from "./semaphor-ready-indicator-D6WjdTGl.js";
6
6
  import { D as Pn } from "./token-types-DEe_FP4l.js";
7
- import { fs as Wt, ft as Yn, fu as Xn, fv as Zn, fw as Jn, fx as ea, fy as $e, fz as Ct, fA as wt, fB as Ke, fC as Qe, fD as ta, fE as na, fF as kt, fG as aa, fH as ra, fI as Fe, fJ as sa, fK as St, fL as Kt, fM as Qt, fN as Ht, fO as Pt, fP as oa, fQ as ia, fR as Dt, fS as la, fT as It, fU as da, fV as ca, fW as ua, fX as ma, fY as He, a as qe, fZ as Pe, bb as pa, f_ as fa, f$ as ha, g0 as xa, g1 as ga } from "./resolve-dashboard-input-context-uATCuOP7.js";
7
+ import { fs as Wt, ft as Yn, fu as Xn, fv as Jn, fw as Zn, fx as ea, fy as $e, fz as Ct, fA as wt, fB as Ke, fC as Qe, fD as ta, fE as na, fF as kt, fG as aa, fH as ra, fI as Fe, fJ as sa, fK as St, fL as Kt, fM as Qt, fN as Ht, fO as Pt, fP as oa, fQ as ia, fR as Dt, fS as la, fT as It, fU as da, fV as ca, fW as ua, fX as ma, fY as He, a as qe, fZ as Pe, bb as pa, f_ as fa, f$ as ha, g0 as xa, g1 as ga } from "./resolve-dashboard-input-context-Cn9jumxl.js";
8
8
  import { c as M } from "./pickers-DkqmtnTL.js";
9
9
  import { r as Yt } from "./validators-CJ8Jh0E8.js";
10
10
  import "./matrix-operation-contract-BM5TveR3.js";
11
11
  import "./analytics-base-schemas-BaIQrEzX.js";
12
12
  import "../value-format-preferences/index.js";
13
13
  import { U as ba } from "./upload-CtyOkU_B.js";
14
- import { a as Xt } from "./metric-comparison-Be4uS3Ql.js";
15
- import { Z as Zt } from "./filter-reach-copy-CZwzrxBp.js";
14
+ import { r as Xt } from "./metric-comparison-ZmurmEIs.js";
15
+ import { a2 as Jt } from "./filter-reach-copy-CmJpPa4G.js";
16
16
  /**
17
17
  * @license lucide-react v0.453.0 - ISC
18
18
  *
@@ -95,7 +95,7 @@ function Ca({
95
95
  }) {
96
96
  return e === "all" ? !1 : e === "none" ? !!n || o : n ? !Na(e, n, a) : o;
97
97
  }
98
- function Jt(e) {
98
+ function Zt(e) {
99
99
  const { tokenProps: n } = ct(), a = ut((s) => s.authToken) || e;
100
100
  se(
101
101
  (s) => s.selectedConnectionId
@@ -172,7 +172,7 @@ function Sa({
172
172
  selectedEntities: o,
173
173
  onSelectionChange: u
174
174
  }) {
175
- const { semanticDomains: d, isSemanticDomainsLoading: c } = Jt(), i = Q(() => Ia(d, e), [d, e]), s = Q(() => a ? i.filter((f) => f.id === a) : i, [i, a]);
175
+ const { semanticDomains: d, isSemanticDomainsLoading: c } = Zt(), i = Q(() => Ia(d, e), [d, e]), s = Q(() => a ? i.filter((f) => f.id === a) : i, [i, a]);
176
176
  if (c && s.length === 0)
177
177
  return /* @__PURE__ */ t("div", { className: "px-3 py-4 text-[11px] text-muted-foreground", children: "Loading semantic domains…" });
178
178
  if (s.length === 0)
@@ -288,7 +288,7 @@ function Da({
288
288
  ] }),
289
289
  y && /* @__PURE__ */ t("ul", { className: "space-y-px pb-1", children: m && s.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "Loading datasets…" }) : f.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "No datasets in this domain." }) : f.map((O) => {
290
290
  const T = Le(O), P = o.some(
291
- (Z) => X(Z, T)
291
+ (J) => X(J, T)
292
292
  );
293
293
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2 rounded-[4px] px-9 py-1.5 transition-colors hover:bg-muted/40", children: [
294
294
  /* @__PURE__ */ t(
@@ -1048,7 +1048,7 @@ function Cr({
1048
1048
  var Se, me;
1049
1049
  const { tokenProps: d } = ct(), c = d.config, i = d.semanticDomainAccess || Pn, [s, m] = H([]), [f, w] = H(""), [y, h] = H("all"), [N, k] = H(
1050
1050
  void 0
1051
- ), _ = Ae(!1), { updateDataSource: D } = Rt(), j = u ?? D, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T, Z = O !== "all", p = T && !P, I = P ? "semanticDomain" : a.mode, A = !T, S = O === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, v = ne(
1051
+ ), _ = Ae(!1), { updateDataSource: D } = Rt(), j = u ?? D, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T, J = O !== "all", p = T && !P, I = P ? "semanticDomain" : a.mode, A = !T, S = O === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, v = ne(
1052
1052
  ($) => {
1053
1053
  _.current = !0, j({
1054
1054
  ...a,
@@ -1075,7 +1075,7 @@ function Cr({
1075
1075
  v("semanticDomain");
1076
1076
  return;
1077
1077
  }
1078
- if (!Z || I !== "semanticDomain") return;
1078
+ if (!J || I !== "semanticDomain") return;
1079
1079
  const $ = i.domainIds ?? [], ae = (((b = a.selectedEntities) == null ? void 0 : b.length) ?? 0) > 0, r = ((s == null ? void 0 : s.length) ?? 0) > 0;
1080
1080
  Ca({
1081
1081
  mode: O,
@@ -1088,7 +1088,7 @@ function Cr({
1088
1088
  }), r && m([]));
1089
1089
  }, [
1090
1090
  P,
1091
- Z,
1091
+ J,
1092
1092
  I,
1093
1093
  a.mode,
1094
1094
  a.semanticDomainId,
@@ -1120,7 +1120,7 @@ function Cr({
1120
1120
  );
1121
1121
  },
1122
1122
  []
1123
- ), J = () => {
1123
+ ), Z = () => {
1124
1124
  var ae, r;
1125
1125
  const $ = Ye(s) ?? N ?? I;
1126
1126
  if ($ === "semanticDomain") {
@@ -1155,7 +1155,7 @@ function Cr({
1155
1155
  });
1156
1156
  }
1157
1157
  n(!1);
1158
- }, { semanticDomains: V } = Jt(), { connections: z } = Vt(), K = Q(
1158
+ }, { semanticDomains: V } = Zt(), { connections: z } = Vt(), K = Q(
1159
1159
  () => new Map(
1160
1160
  V.map(($) => [
1161
1161
  $.id,
@@ -1308,7 +1308,7 @@ function Cr({
1308
1308
  "button",
1309
1309
  {
1310
1310
  type: "button",
1311
- onClick: J,
1311
+ onClick: Z,
1312
1312
  disabled: Ce,
1313
1313
  className: M(
1314
1314
  "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-2.5 text-[12px] font-medium text-primary-foreground transition-colors hover:bg-primary/90",
@@ -1503,17 +1503,17 @@ const za = xn(
1503
1503
  za.displayName = "IconButton";
1504
1504
  function Ma(e, n) {
1505
1505
  var s, m;
1506
- const a = e.qualifiedFieldName || e.name, o = e.qualifiedFieldName ? e.qualifiedFieldName.split(".").slice(0, -1).join(".") : e.qualifiedEntityName || e.entityName, u = n.connectionId || ((s = n.dataSource) == null ? void 0 : s.connectionId) || "", d = Xn(e), c = Zn(
1506
+ const a = e.qualifiedFieldName || e.name, o = e.qualifiedFieldName ? e.qualifiedFieldName.split(".").slice(0, -1).join(".") : e.qualifiedEntityName || e.entityName, u = n.connectionId || ((s = n.dataSource) == null ? void 0 : s.connectionId) || "", d = Xn(e), c = Jn(
1507
1507
  n.dataSource,
1508
1508
  {
1509
1509
  connectionId: u,
1510
1510
  connectionType: (m = n.dataSource) == null ? void 0 : m.connectionType
1511
1511
  },
1512
1512
  e
1513
- ), i = Jn(n.dataSource, c, e) || "";
1513
+ ), i = Zn(n.dataSource, c, e) || "";
1514
1514
  return {
1515
1515
  column: a,
1516
- title: Zt(e),
1516
+ title: Jt(e),
1517
1517
  dataType: e.dataType,
1518
1518
  ...e.nativeDataType ? { nativeDataType: e.nativeDataType } : {},
1519
1519
  table: e.entityName || "",
@@ -1815,7 +1815,7 @@ function Sr({
1815
1815
  [a]
1816
1816
  ), D = oa(e), j = ea(e), [O, T] = H(
1817
1817
  null
1818
- ), [P, Z] = H(
1818
+ ), [P, J] = H(
1819
1819
  null
1820
1820
  ), [p, I] = H(
1821
1821
  () => c ? {
@@ -1844,7 +1844,7 @@ function Sr({
1844
1844
  ), C = ne(
1845
1845
  (r) => e === "dashboard" && (r === "field_selector" || r === "metric_selector"),
1846
1846
  [e]
1847
- ), J = Q(
1847
+ ), Z = Q(
1848
1848
  () => p ? wt(
1849
1849
  f || [],
1850
1850
  p.control.type
@@ -1890,7 +1890,7 @@ function Sr({
1890
1890
  v.current = c, r && (I({
1891
1891
  step: 1,
1892
1892
  control: $e(e, n, Array.from(_))
1893
- }), Z(null), T(null));
1893
+ }), J(null), T(null));
1894
1894
  }, [n, c, _, e]);
1895
1895
  const z = (r) => {
1896
1896
  if (!C(r.type))
@@ -2042,7 +2042,7 @@ function Sr({
2042
2042
  S.current = void 0, I({
2043
2043
  step: 1,
2044
2044
  control: $e(e, n, Array.from(_))
2045
- }), Z(null), T(null);
2045
+ }), J(null), T(null);
2046
2046
  }, [n, _, e]), oe = (r) => {
2047
2047
  I(
2048
2048
  (g) => g && (() => {
@@ -2163,7 +2163,7 @@ function Sr({
2163
2163
  cardBindingsById: p.cardBindingsById
2164
2164
  }
2165
2165
  );
2166
- Z(g), I(null), k == null || k();
2166
+ J(g), I(null), k == null || k();
2167
2167
  }, [n, p, o, U, k]), gt = p ? C(p.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Se = p != null && p.createdControlId ? `[[param.${p.createdControlId}]]` : p ? `[[param.${sa(p.control.label) || p.control.id}]]` : "", me = St({
2168
2168
  controls: n,
2169
2169
  defaultValues: o
@@ -2262,7 +2262,7 @@ function Sr({
2262
2262
  ),
2263
2263
  /* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: "Choose which cards should respond to this shared control." })
2264
2264
  ] }),
2265
- J.length === 0 ? /* @__PURE__ */ t("div", { className: "rounded-control border border-border/60 bg-muted/30 px-3 py-2.5 text-[12px] text-muted-foreground", children: "No eligible cards are available yet. Add compatible metrics or group-by fields to cards first." }) : /* @__PURE__ */ t("div", { className: "space-y-1 rounded-control border border-border/60 bg-background p-2", children: J.map((r) => {
2265
+ Z.length === 0 ? /* @__PURE__ */ t("div", { className: "rounded-control border border-border/60 bg-muted/30 px-3 py-2.5 text-[12px] text-muted-foreground", children: "No eligible cards are available yet. Add compatible metrics or group-by fields to cards first." }) : /* @__PURE__ */ t("div", { className: "space-y-1 rounded-control border border-border/60 bg-background p-2", children: Z.map((r) => {
2266
2266
  const g = (p.selectedCardIds || []).includes(r.cardId);
2267
2267
  return /* @__PURE__ */ l(
2268
2268
  "label",
@@ -2298,7 +2298,7 @@ function Sr({
2298
2298
  /* @__PURE__ */ t(
2299
2299
  yt,
2300
2300
  {
2301
- participants: J,
2301
+ participants: Z,
2302
2302
  selectedCardIds: p.selectedCardIds || [],
2303
2303
  control: p.control,
2304
2304
  selected: p.matrixTargetIds,
@@ -2458,7 +2458,7 @@ function Sr({
2458
2458
  {
2459
2459
  type: "button",
2460
2460
  className: "flex min-w-0 flex-1 items-start gap-2 rounded-control text-left focus:outline-none focus-visible:bg-muted/40",
2461
- onClick: () => Z(
2461
+ onClick: () => J(
2462
2462
  (F) => F === r.id ? null : r.id
2463
2463
  ),
2464
2464
  children: [
@@ -2933,7 +2933,7 @@ function Ka({
2933
2933
  groups: x.groups.map(v)
2934
2934
  };
2935
2935
  d(v(o));
2936
- }, Z = (I) => {
2936
+ }, J = (I) => {
2937
2937
  if (!I || I.conditions.length === 0 && I.groups.length === 0)
2938
2938
  return "-- No filters defined";
2939
2939
  const A = (v) => {
@@ -2943,14 +2943,14 @@ function Ka({
2943
2943
  let C = v.value;
2944
2944
  if (v.latestValue && q === "=")
2945
2945
  return `${x} = ${qt} /* the latest value each time the card runs */`;
2946
- const J = Yt(v.relativeMeta);
2947
- if (J && (q === "between" || q === "not between")) {
2948
- const V = q === "between" ? "BETWEEN" : "NOT BETWEEN", { label: z, range: K } = zn(J, {
2946
+ const Z = Yt(v.relativeMeta);
2947
+ if (Z && (q === "between" || q === "not between")) {
2948
+ const V = q === "between" ? "BETWEEN" : "NOT BETWEEN", { label: z, range: K } = zn(Z, {
2949
2949
  tz: (D == null ? void 0 : D.tz) ?? "UTC",
2950
2950
  weekStart: (D == null ? void 0 : D.weekStart) ?? 1,
2951
2951
  anchor: (D == null ? void 0 : D.anchor) ?? "now"
2952
2952
  });
2953
- return K ? `${x} ${V} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${z}: dates update each time the card runs */` : Xt(J).dataAnchored ? `${x} ${V} ${z} /* dates count back from the latest data each time the card runs */` : `${x} ${V} ${z} /* dates follow your calendar each time the card runs */`;
2953
+ return K ? `${x} ${V} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${z}: dates update each time the card runs */` : Xt(Z).dataAnchored ? `${x} ${V} ${z} /* dates count back from the latest data each time the card runs */` : `${x} ${V} ${z} /* dates follow your calendar each time the card runs */`;
2954
2954
  }
2955
2955
  if (v.field.dataType === "string" && !["in", "not in"].includes(v.operator))
2956
2956
  typeof C == "string" ? C = `'${C}'` : Array.isArray(C) && (C = `'${C.join(", ")}'`);
@@ -2990,7 +2990,7 @@ function Ka({
2990
2990
  (z) => S(z)
2991
2991
  ), C = [...x, ...q].filter(Boolean);
2992
2992
  if (C.length === 0) return "";
2993
- const J = C.join(` ${v.logicalOperator} `), V = C.length > 1 ? `(${J})` : J;
2993
+ const Z = C.join(` ${v.logicalOperator} `), V = C.length > 1 ? `(${Z})` : Z;
2994
2994
  return v.negate ? `NOT ${V}` : V;
2995
2995
  };
2996
2996
  return S(I);
@@ -3010,7 +3010,7 @@ function Ka({
3010
3010
  updateGroupNegate: O,
3011
3011
  reorderConditions: T,
3012
3012
  reorderGroups: P,
3013
- generateSQLPreview: Z,
3013
+ generateSQLPreview: J,
3014
3014
  hasAnyFilters: p
3015
3015
  };
3016
3016
  }
@@ -3043,7 +3043,7 @@ function Ha({
3043
3043
  const [d, c] = vt.useState(!1), i = vt.useMemo(
3044
3044
  () => new Set(e ? [e.id] : []),
3045
3045
  [e]
3046
- ), s = e ? Zt(e) : null;
3046
+ ), s = e ? Jt(e) : null;
3047
3047
  return /* @__PURE__ */ l(it, { modal: !0, open: d, onOpenChange: c, children: [
3048
3048
  /* @__PURE__ */ t(lt, { asChild: !0, children: /* @__PURE__ */ l(
3049
3049
  G,
@@ -3358,13 +3358,13 @@ function Xa({
3358
3358
  }
3359
3359
  );
3360
3360
  }
3361
- const Za = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
3361
+ const Ja = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
3362
3362
  "contains",
3363
3363
  "startsWith",
3364
3364
  "endsWith",
3365
3365
  "like",
3366
3366
  "not like"
3367
- ], Ja = [
3367
+ ], Za = [
3368
3368
  "=",
3369
3369
  "!=",
3370
3370
  ">",
@@ -3439,7 +3439,7 @@ function sr(e) {
3439
3439
  case "date":
3440
3440
  return ar;
3441
3441
  default:
3442
- return Ja;
3442
+ return Za;
3443
3443
  }
3444
3444
  }
3445
3445
  const ln = "w-[68px] shrink-0", $t = "group-data-[inline]/filters:w-auto group-data-[inline]/filters:min-w-0 group-data-[inline]/filters:flex-1 group-data-[inline]/filters:shrink", xt = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
@@ -3719,7 +3719,7 @@ function or({
3719
3719
  transform: O,
3720
3720
  transition: T,
3721
3721
  isDragging: P
3722
- } = Ut({ id: e.id }), Z = {
3722
+ } = Ut({ id: e.id }), J = {
3723
3723
  transform: Gt.Transform.toString(O),
3724
3724
  transition: T
3725
3725
  }, p = (A) => {
@@ -3743,7 +3743,7 @@ function or({
3743
3743
  "div",
3744
3744
  {
3745
3745
  ref: j,
3746
- style: Z,
3746
+ style: J,
3747
3747
  className: M(
3748
3748
  n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
3749
3749
  P && "z-50 opacity-50"
@@ -3801,10 +3801,10 @@ function or({
3801
3801
  /* @__PURE__ */ t(
3802
3802
  Re,
3803
3803
  {
3804
- sensors: Ze(
3804
+ sensors: Je(
3805
3805
  he(tt),
3806
3806
  he(et, {
3807
- coordinateGetter: Je
3807
+ coordinateGetter: Ze
3808
3808
  })
3809
3809
  ),
3810
3810
  collisionDetection: Ee,
@@ -3837,10 +3837,10 @@ function or({
3837
3837
  /* @__PURE__ */ t(
3838
3838
  Re,
3839
3839
  {
3840
- sensors: Ze(
3840
+ sensors: Je(
3841
3841
  he(tt),
3842
3842
  he(et, {
3843
- coordinateGetter: Je
3843
+ coordinateGetter: Ze
3844
3844
  })
3845
3845
  ),
3846
3846
  collisionDetection: Ee,
@@ -3894,21 +3894,21 @@ function Ir({
3894
3894
  reorderConditions: O,
3895
3895
  reorderGroups: T,
3896
3896
  generateSQLPreview: P,
3897
- hasAnyFilters: Z
3897
+ hasAnyFilters: J
3898
3898
  } = Ka({
3899
3899
  initialFilters: e,
3900
3900
  availableFields: n,
3901
3901
  ...c ? {
3902
- onChange: (x) => c(Za(x) ? x : null)
3902
+ onChange: (x) => c(Ja(x) ? x : null)
3903
3903
  } : {}
3904
- }), p = Ze(
3904
+ }), p = Je(
3905
3905
  he(tt),
3906
3906
  he(et, {
3907
- coordinateGetter: Je
3907
+ coordinateGetter: Ze
3908
3908
  })
3909
3909
  ), [I, A] = H(!1), S = (x, q = 0, C) => {
3910
3910
  if (q === 0) {
3911
- const J = x.conditions.length === 0 && x.groups.length === 0;
3911
+ const Z = x.conditions.length === 0 && x.groups.length === 0;
3912
3912
  return /* @__PURE__ */ l("div", { children: [
3913
3913
  /* @__PURE__ */ t(
3914
3914
  Re,
@@ -3979,7 +3979,7 @@ function Ir({
3979
3979
  )
3980
3980
  }
3981
3981
  ),
3982
- J && !i && /* @__PURE__ */ t("p", { className: "rounded-control border border-dashed border-border/60 px-3 py-2 text-center text-[11.5px] text-muted-foreground", children: "No filters yet. Add a condition to limit the rows this card shows." }),
3982
+ Z && !i && /* @__PURE__ */ t("p", { className: "rounded-control border border-dashed border-border/60 px-3 py-2 text-center text-[11.5px] text-muted-foreground", children: "No filters yet. Add a condition to limit the rows this card shows." }),
3983
3983
  /* @__PURE__ */ t(
3984
3984
  un,
3985
3985
  {
@@ -4042,7 +4042,7 @@ function Ir({
4042
4042
  ),
4043
4043
  /* @__PURE__ */ t("span", { className: "text-[11px] text-muted-foreground", children: "Nest conditions in groups" })
4044
4044
  ] }),
4045
- Z && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
4045
+ J && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
4046
4046
  /* @__PURE__ */ t("div", { className: M("mb-1.5", xt), children: "Where clause" }),
4047
4047
  /* @__PURE__ */ t("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words rounded-[6px] border border-border bg-muted/40 px-3 py-2 font-mono text-[12px] leading-[1.55] text-foreground", children: P(s) })
4048
4048
  ] })
@@ -4064,7 +4064,7 @@ function Ir({
4064
4064
  G,
4065
4065
  {
4066
4066
  size: "xs",
4067
- onClick: () => o == null ? void 0 : o(Z ? s : null),
4067
+ onClick: () => o == null ? void 0 : o(J ? s : null),
4068
4068
  children: "Apply filters"
4069
4069
  }
4070
4070
  )
@@ -4081,7 +4081,7 @@ export {
4081
4081
  kr as V,
4082
4082
  wr as a,
4083
4083
  Ir as b,
4084
- Jt as c,
4084
+ Zt as c,
4085
4085
  Ma as d,
4086
4086
  Va as g,
4087
4087
  en as i,