react-semaphor 0.1.591 → 0.1.592

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 (45) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +2 -2
  3. package/dist/chunks/{assistant-chat-Cazikwyh.js → assistant-chat-BusR-5uT.js} +7 -7
  4. package/dist/chunks/bookmark-impact-DozXJZDS.js +76 -0
  5. package/dist/chunks/{bookmark-state-Bt_eQEqt.js → bookmark-state-Be2W3s6t.js} +174 -166
  6. package/dist/chunks/{card-filter-builder-DFR-6Jpm.js → card-filter-builder-DBTJ74yy.js} +73 -73
  7. package/dist/chunks/{comparison-window-caption-CFaw-kIV.js → comparison-window-caption-h8w3ySL6.js} +88 -89
  8. package/dist/chunks/{dashboard-DCh9hKnJ.js → dashboard-CmzJzmph.js} +1 -1
  9. package/dist/chunks/{dashboard-briefing-launcher-ob8G1b58.js → dashboard-briefing-launcher-BOQGpYr2.js} +84 -84
  10. package/dist/chunks/{dashboard-controls-Nszg0k1A.js → dashboard-controls-BxI3e2_o.js} +9 -9
  11. package/dist/chunks/{dashboard-json-BpwnG23b.js → dashboard-json-BMqXV2Rx.js} +1 -1
  12. package/dist/chunks/{dates-BOLBSBpn.js → dates-DBsscxL_.js} +6 -6
  13. package/dist/chunks/{edit-dashboard-visual-BvM7br5P.js → edit-dashboard-visual-Dvc_Pkfg.js} +374 -374
  14. package/dist/chunks/{filter-reach-copy-By3r7O3G.js → filter-reach-copy-hEzlpBu7.js} +221 -221
  15. package/dist/chunks/{filter-value-text-CFiIZWJP.js → filter-value-text-CHBm4IU7.js} +10 -10
  16. package/dist/chunks/{index-CsQYlwhU.js → index-BoYJqc3F.js} +22 -22
  17. package/dist/chunks/{pivot-result-contract-expectations-BkMRCjzf.js → pivot-result-contract-expectations-CaS0y823.js} +588 -552
  18. package/dist/chunks/{report-preferences-dialog-ChXt8wCt.js → report-preferences-dialog-Cu_f-8Kw.js} +9 -9
  19. package/dist/chunks/{resolve-dashboard-input-context-BlyFX8He.js → resolve-dashboard-input-context-CkMk1RW6.js} +7557 -6453
  20. package/dist/chunks/{saved-dashboard-context-BPSdH2jW.js → saved-dashboard-context-RgBS_PIj.js} +16 -16
  21. package/dist/chunks/{semaphor-ready-indicator-BZUMCHRU.js → semaphor-ready-indicator-DXpTZJ7R.js} +21334 -21330
  22. package/dist/chunks/{shelf-drop-preview-context-yJheoeTC.js → shelf-drop-preview-context-qdlJKaH7.js} +2 -2
  23. package/dist/chunks/stored-dashboard-Baw6Bp2A.js +4029 -0
  24. package/dist/chunks/{table-export-sheet-h7wm5TwP.js → table-export-sheet-Cd6z7SsG.js} +1 -1
  25. package/dist/chunks/{variable-draft-OpYyaVCW.js → variable-draft-BxtN6YcG.js} +2 -2
  26. package/dist/dashboard/index.js +2 -2
  27. package/dist/dashboard-authoring/index.js +1097 -1105
  28. package/dist/format-utils/index.js +215 -216
  29. package/dist/index.js +56 -56
  30. package/dist/surfboard/index.js +2 -2
  31. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +3 -3
  32. package/dist/types/components/visual/data-table/types/data-table.d.ts +24 -2
  33. package/dist/types/index.js +30 -29
  34. package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +27 -0
  35. package/dist/types/lib/dashboard-viewer/table-view.d.ts +37 -1
  36. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  37. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +6 -0
  38. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +11 -0
  39. package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +56 -0
  40. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +7 -0
  41. package/package.json +1 -1
  42. package/dist/chunks/bookmark-impact-rWjQgk8h.js +0 -75
  43. package/dist/chunks/pivot-header-presentation-gUxhdIdr.js +0 -42
  44. package/dist/chunks/stored-dashboard-CxQl9g0l.js +0 -4994
  45. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -53
@@ -2,18 +2,18 @@ import { c as nt, B as G, X as ce, x as Ne, q as hn, a6 as gn, 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 P, useState as Y, useRef as $e, useCallback as ne, useEffect as de, forwardRef as vn, Fragment as yn } from "react";
5
- import { b8 as ct, u as ut, am as se, c8 as Vt, cF as Z, cG as Nn, c4 as Ie, cH as Ue, cI as Rt, cJ as Cn, b_ as Ve, cK as wn, an as Et, bG as kn, bH as Sn, bJ as Dn, bZ as In, cL as Tn, o as Ln, cM as $n, cN as An, cO as yt, bY as zt, cP as Fn, cQ as Mt, cR as qt, cS as On, cT as _n, cU as Vn, cV as Rn, cW as En, cX as zn, cY as Mn, bz as qn, cZ as Nt, c_ as jt, c$ as Ct, bC as jn, d0 as Un, d1 as Gn, d2 as Bn, d3 as ye, d4 as Ut, d5 as Wn, d6 as Kn, d7 as Qn, d8 as Pn, d9 as Hn, da as Ze, db as he, dc as Je, dd as et, de as tt, df as Yn, dg as Re, dh as Ee, di as ze, dj as Me, dk as Gt, dl as Bt, dm as Wt } from "./semaphor-ready-indicator-BZUMCHRU.js";
6
- import { D as Xn } from "./token-types-BB2ImFx6.js";
7
- import { fV as Kt, fW as Zn, fX as Jn, fY as ea, fZ as ta, f_ as na, f$ as Ae, g0 as wt, g1 as kt, g2 as Ke, g3 as Qe, g4 as aa, g5 as ra, g6 as St, g7 as sa, g8 as oa, g9 as Fe, ga as ia, gb as Dt, gc as Qt, gd as Pt, ge as Ht, gf as Yt, gg as la, gh as da, gi as It, gj as ca, gk as Tt, gl as ua, gm as ma, gn as pa, go as fa, gp as Pe, a as qe, gq as He, bf as ha, gr as ga, gs as xa, gt as ba, gu as va } from "./resolve-dashboard-input-context-BlyFX8He.js";
5
+ import { b8 as ct, u as ut, am as se, c8 as Vt, cF as J, cG as Nn, c4 as Ie, cH as Ue, cI as Rt, cJ as Cn, b_ as Ve, cK as wn, an as Et, bG as kn, bH as Sn, bJ as Dn, bZ as In, cL as Tn, o as Ln, cM as $n, cN as An, cO as yt, bY as zt, cP as Fn, cQ as Mt, cR as qt, cS as On, cT as _n, cU as Vn, cV as Rn, cW as En, cX as zn, cY as Mn, bz as qn, cZ as Nt, c_ as jt, c$ as Ct, bC as jn, d0 as Un, d1 as Gn, d2 as Bn, d3 as ye, d4 as Ut, d5 as Wn, d6 as Kn, d7 as Qn, d8 as Pn, d9 as Hn, da as Je, db as he, dc as Xe, dd as et, de as tt, df as Yn, dg as Re, dh as Ee, di as ze, dj as Me, dk as Gt, dl as Bt, dm as Wt } from "./semaphor-ready-indicator-DXpTZJ7R.js";
6
+ import { D as Zn } from "./token-types-BB2ImFx6.js";
7
+ import { fZ as Kt, f_ as Jn, f$ as Xn, g0 as ea, g1 as ta, g2 as na, g3 as Ae, g4 as wt, g5 as kt, g6 as Ke, g7 as Qe, g8 as aa, g9 as ra, ga as St, gb as sa, gc as oa, gd as Fe, ge as ia, gf as Dt, gg as Qt, gh as Pt, gi as Ht, gj as Yt, gk as la, gl as da, gm as It, gn as ca, go as Tt, gp as ua, gq as ma, gr as pa, gs as fa, gt as Pe, a as qe, gu as He, bj as ha, gv as ga, gw as xa, gx as ba, gy as va } from "./resolve-dashboard-input-context-CkMk1RW6.js";
8
8
  import { c as q } from "./pickers-DkqmtnTL.js";
9
- import { r as Xt, l as ya, k as Zt, aE as Jt } from "./validators-BlEWWX9O.js";
9
+ import { r as Zt, l as ya, k as Jt, aE as Xt } from "./validators-BlEWWX9O.js";
10
10
  import "./matrix-operation-contract-CAanJeCj.js";
11
11
  import "./analytics-base-schemas-8wz9vqn_.js";
12
12
  import "../value-format-preferences/index.js";
13
13
  import { U as Na } from "./upload-CMTCg47S.js";
14
14
  import { r as en } from "./metric-comparison-BeKnUD08.js";
15
15
  import { r as Ca, j as wa } from "./raw-temporal-value-BzdgeDa7.js";
16
- import { a3 as tn } from "./filter-reach-copy-By3r7O3G.js";
16
+ import { a3 as tn } from "./filter-reach-copy-hEzlpBu7.js";
17
17
  /**
18
18
  * @license lucide-react v0.453.0 - ISC
19
19
  *
@@ -143,10 +143,10 @@ function mt(e) {
143
143
  }
144
144
  function Ta(e, n) {
145
145
  if (e.some(
146
- (d) => Z(d, n)
146
+ (d) => J(d, n)
147
147
  ))
148
148
  return e.filter(
149
- (d) => !Z(d, n)
149
+ (d) => !J(d, n)
150
150
  );
151
151
  const o = mt(e);
152
152
  return e.some(
@@ -163,7 +163,7 @@ function La(e, n) {
163
163
  return n;
164
164
  const d = [...e];
165
165
  for (const c of n)
166
- d.some((i) => Z(i, c)) || d.push(c);
166
+ d.some((i) => J(i, c)) || d.push(c);
167
167
  return d;
168
168
  }
169
169
  function $a({
@@ -211,20 +211,20 @@ function Aa({
211
211
  );
212
212
  }, [s, n]), k = n.length > 0 && f.length > 0, y = d || k || !!a, g = s.length, N = P(() => f.filter(
213
213
  (C) => o.some(
214
- (I) => Z(I, Le(C))
214
+ (I) => J(I, Le(C))
215
215
  )
216
216
  ).length, [f, o]), S = P(
217
217
  () => f.map(Le),
218
218
  [f]
219
219
  ), V = S.length > 0 && S.every(
220
- (C) => o.some((I) => Z(I, C))
220
+ (C) => o.some((I) => J(I, C))
221
221
  ), _ = () => {
222
222
  if (S.length !== 0) {
223
223
  if (V) {
224
224
  u(
225
225
  o.filter(
226
226
  (C) => !S.some(
227
- (I) => Z(C, I)
227
+ (I) => J(C, I)
228
228
  )
229
229
  )
230
230
  );
@@ -289,7 +289,7 @@ function Aa({
289
289
  ] }),
290
290
  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((C) => {
291
291
  const I = Le(C), U = o.some(
292
- (J) => Z(J, I)
292
+ (X) => J(X, I)
293
293
  );
294
294
  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: [
295
295
  /* @__PURE__ */ t(
@@ -772,13 +772,13 @@ function pt({
772
772
  const m = i.map(
773
773
  (g) => s(g.table_name, g.table_type)
774
774
  ), f = m.length > 0 && m.every(
775
- (g) => u.some((N) => Z(N, g))
775
+ (g) => u.some((N) => J(N, g))
776
776
  ), k = (g, N) => {
777
777
  const S = s(g, N), V = u.some(
778
- (_) => Z(_, S)
778
+ (_) => J(_, S)
779
779
  );
780
780
  d(
781
- V ? u.filter((_) => !Z(_, S)) : [...u, S]
781
+ V ? u.filter((_) => !J(_, S)) : [...u, S]
782
782
  );
783
783
  }, y = () => {
784
784
  if (m.length === 0) return;
@@ -786,7 +786,7 @@ function pt({
786
786
  d(
787
787
  u.filter(
788
788
  (N) => !m.some(
789
- (S) => Z(N, S)
789
+ (S) => J(N, S)
790
790
  )
791
791
  )
792
792
  );
@@ -794,7 +794,7 @@ function pt({
794
794
  }
795
795
  const g = [...u];
796
796
  for (const N of m)
797
- g.some((S) => Z(S, N)) || g.push(N);
797
+ g.some((S) => J(S, N)) || g.push(N);
798
798
  d(g);
799
799
  };
800
800
  return /* @__PURE__ */ l("ul", { children: [
@@ -816,7 +816,7 @@ function pt({
816
816
  ] }),
817
817
  i.map((g) => {
818
818
  const N = s(g.table_name, g.table_type), S = u.some(
819
- (V) => Z(V, N)
819
+ (V) => J(V, N)
820
820
  );
821
821
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-center gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
822
822
  /* @__PURE__ */ t(
@@ -874,10 +874,10 @@ function za({
874
874
  database: i.database || "",
875
875
  schema: i.schema || ""
876
876
  }, m = a.some(
877
- (f) => Z(f, s)
877
+ (f) => J(f, s)
878
878
  );
879
879
  o(
880
- m ? a.filter((f) => !Z(f, s)) : [...a, s]
880
+ m ? a.filter((f) => !J(f, s)) : [...a, s]
881
881
  );
882
882
  };
883
883
  return /* @__PURE__ */ l("div", { children: [
@@ -895,7 +895,7 @@ function za({
895
895
  database: i.database || "",
896
896
  schema: i.schema || ""
897
897
  }, m = a.some(
898
- (f) => Z(f, s)
898
+ (f) => J(f, s)
899
899
  );
900
900
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
901
901
  /* @__PURE__ */ t(
@@ -1047,9 +1047,9 @@ function Tr({
1047
1047
  onDataSourceChange: u
1048
1048
  }) {
1049
1049
  var Se, me;
1050
- const { tokenProps: d } = ct(), c = d.config, i = d.semanticDomainAccess || Xn, [s, m] = Y([]), [f, k] = Y(""), [y, g] = Y("all"), [N, S] = Y(
1050
+ const { tokenProps: d } = ct(), c = d.config, i = d.semanticDomainAccess || Zn, [s, m] = Y([]), [f, k] = Y(""), [y, g] = Y("all"), [N, S] = Y(
1051
1051
  void 0
1052
- ), V = $e(!1), { updateDataSource: _ } = Et(), Q = u ?? _, C = i.mode, I = (c == null ? void 0 : c.showDirectSource) !== !1, U = C === "include" || C === "exclude" || !I, J = C !== "all", p = I && !U, T = U ? "semanticDomain" : a.mode, $ = !I, D = C === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, v = ne(
1052
+ ), V = $e(!1), { updateDataSource: _ } = Et(), Q = u ?? _, C = i.mode, I = (c == null ? void 0 : c.showDirectSource) !== !1, U = C === "include" || C === "exclude" || !I, X = C !== "all", p = I && !U, T = U ? "semanticDomain" : a.mode, $ = !I, D = C === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, v = ne(
1053
1053
  (A) => {
1054
1054
  V.current = !0, Q({
1055
1055
  ...a,
@@ -1076,7 +1076,7 @@ function Tr({
1076
1076
  v("semanticDomain");
1077
1077
  return;
1078
1078
  }
1079
- if (!J || T !== "semanticDomain") return;
1079
+ if (!X || T !== "semanticDomain") return;
1080
1080
  const A = i.domainIds ?? [], ae = (((b = a.selectedEntities) == null ? void 0 : b.length) ?? 0) > 0, r = ((s == null ? void 0 : s.length) ?? 0) > 0;
1081
1081
  Ia({
1082
1082
  mode: C,
@@ -1089,7 +1089,7 @@ function Tr({
1089
1089
  }), r && m([]));
1090
1090
  }, [
1091
1091
  U,
1092
- J,
1092
+ X,
1093
1093
  T,
1094
1094
  a.mode,
1095
1095
  a.semanticDomainId,
@@ -1112,7 +1112,7 @@ function Tr({
1112
1112
  }, [e, o, U]);
1113
1113
  const E = (A) => {
1114
1114
  V.current = !0, m(
1115
- s.filter((ae) => !Z(ae, A))
1115
+ s.filter((ae) => !J(ae, A))
1116
1116
  );
1117
1117
  }, w = ne(
1118
1118
  (A, ae) => {
@@ -1481,7 +1481,7 @@ const Ga = vn(
1481
1481
  onClick: u,
1482
1482
  ...s,
1483
1483
  ...c,
1484
- className: q(`${Zn}`, a),
1484
+ className: q(`${Jn}`, a),
1485
1485
  children: n
1486
1486
  }
1487
1487
  ) }),
@@ -1504,7 +1504,7 @@ const Ga = vn(
1504
1504
  Ga.displayName = "IconButton";
1505
1505
  function Ba(e, n) {
1506
1506
  var s, m;
1507
- 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 = Jn(e), c = ea(
1507
+ 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 = ea(
1508
1508
  n.dataSource,
1509
1509
  {
1510
1510
  connectionId: u,
@@ -1816,7 +1816,7 @@ function Ar({
1816
1816
  [a]
1817
1817
  ), _ = la(e), Q = na(e), [C, I] = Y(
1818
1818
  null
1819
- ), [U, J] = Y(
1819
+ ), [U, X] = Y(
1820
1820
  null
1821
1821
  ), [p, T] = Y(
1822
1822
  () => c ? {
@@ -1891,7 +1891,7 @@ function Ar({
1891
1891
  v.current = c, r && (T({
1892
1892
  step: 1,
1893
1893
  control: Ae(e, n, Array.from(V))
1894
- }), J(null), I(null));
1894
+ }), X(null), I(null));
1895
1895
  }, [n, c, V, e]);
1896
1896
  const z = (r) => {
1897
1897
  if (!w(r.type))
@@ -1985,7 +1985,7 @@ function Ar({
1985
1985
  const W = L.find(
1986
1986
  (K) => K.id === r
1987
1987
  );
1988
- let X = o;
1988
+ let Z = o;
1989
1989
  if (b && W) {
1990
1990
  const K = Qe({
1991
1991
  control: b,
@@ -1997,11 +1997,11 @@ function Ar({
1997
1997
  nextControl: W,
1998
1998
  currentDefaultValue: pe
1999
1999
  });
2000
- W.source.kind === "manual" && ($.current[r] = ie), o && (X = { ...o }, ie === void 0 ? delete X[r] : X[r] = ie), L = L.map(
2000
+ W.source.kind === "manual" && ($.current[r] = ie), o && (Z = { ...o }, ie === void 0 ? delete Z[r] : Z[r] = ie), L = L.map(
2001
2001
  (bt) => bt.id === r ? { ...W, defaultValue: ie } : bt
2002
2002
  );
2003
2003
  }
2004
- j(L, X, {
2004
+ j(L, Z, {
2005
2005
  type: "update",
2006
2006
  cardBindingsById: M,
2007
2007
  affectedBindingControlIds: F
@@ -2043,7 +2043,7 @@ function Ar({
2043
2043
  D.current = void 0, T({
2044
2044
  step: 1,
2045
2045
  control: Ae(e, n, Array.from(V))
2046
- }), J(null), I(null);
2046
+ }), X(null), I(null);
2047
2047
  }, [n, V, e]), oe = (r) => {
2048
2048
  T(
2049
2049
  (x) => x && (() => {
@@ -2164,7 +2164,7 @@ function Ar({
2164
2164
  cardBindingsById: p.cardBindingsById
2165
2165
  }
2166
2166
  );
2167
- J(x), T(null), S == null || S();
2167
+ X(x), T(null), S == null || S();
2168
2168
  }, [n, p, o, j, S]), xt = p ? w(p.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Se = p != null && p.createdControlId ? `[[param.${p.createdControlId}]]` : p ? `[[param.${ia(p.control.label) || p.control.id}]]` : "", me = Dt({
2169
2169
  controls: n,
2170
2170
  defaultValues: o
@@ -2459,7 +2459,7 @@ function Ar({
2459
2459
  {
2460
2460
  type: "button",
2461
2461
  className: "flex min-w-0 flex-1 items-start gap-2 rounded-control text-left focus:outline-none focus-visible:bg-muted/40",
2462
- onClick: () => J(
2462
+ onClick: () => X(
2463
2463
  (F) => F === r.id ? null : r.id
2464
2464
  ),
2465
2465
  children: [
@@ -2575,10 +2575,10 @@ function Ar({
2575
2575
  const W = B({
2576
2576
  control: r,
2577
2577
  nextSelectedCardIds: F
2578
- }), X = n.map(
2578
+ }), Z = n.map(
2579
2579
  (K) => K.id === r.id ? W.nextControl : K
2580
2580
  );
2581
- j(X, o, {
2581
+ j(Z, o, {
2582
2582
  type: "update",
2583
2583
  cardBindingsById: W.cardBindingsById
2584
2584
  });
@@ -2592,15 +2592,15 @@ function Ar({
2592
2592
  selectedCardIds: (k == null ? void 0 : k[r.id]) || [],
2593
2593
  control: r,
2594
2594
  onChange: (F, W) => {
2595
- const X = B({
2595
+ const Z = B({
2596
2596
  control: r,
2597
2597
  nextSelectedCardIds: (k == null ? void 0 : k[r.id]) || [],
2598
2598
  matrixTargetIds: { [F]: W }
2599
2599
  });
2600
2600
  j(
2601
- n.map((K) => K.id === r.id ? X.nextControl : K),
2601
+ n.map((K) => K.id === r.id ? Z.nextControl : K),
2602
2602
  o,
2603
- { type: "update", cardBindingsById: X.cardBindingsById }
2603
+ { type: "update", cardBindingsById: Z.cardBindingsById }
2604
2604
  );
2605
2605
  }
2606
2606
  }
@@ -2629,11 +2629,11 @@ function Ar({
2629
2629
  previewControlValues: me,
2630
2630
  onChange: (F) => {
2631
2631
  const W = n.map(
2632
- (X) => X.id === r.id ? { ...X, defaultValue: F } : X
2632
+ (Z) => Z.id === r.id ? { ...Z, defaultValue: F } : Z
2633
2633
  );
2634
2634
  if (r.source.kind === "manual" && ($.current[r.id] = F), o) {
2635
- const X = { ...o };
2636
- F === void 0 ? delete X[r.id] : X[r.id] = F, j(W, X);
2635
+ const Z = { ...o };
2636
+ F === void 0 ? delete Z[r.id] : Z[r.id] = F, j(W, Z);
2637
2637
  return;
2638
2638
  }
2639
2639
  j(W, void 0);
@@ -2786,7 +2786,7 @@ function Ya(e, n) {
2786
2786
  { value: "" }
2787
2787
  );
2788
2788
  }
2789
- function Xa({
2789
+ function Za({
2790
2790
  initialFilters: e,
2791
2791
  availableFields: n,
2792
2792
  onChange: a
@@ -2934,7 +2934,7 @@ function Xa({
2934
2934
  groups: h.groups.map(v)
2935
2935
  };
2936
2936
  d(v(o));
2937
- }, J = (T) => {
2937
+ }, X = (T) => {
2938
2938
  if (!T || T.conditions.length === 0 && T.groups.length === 0)
2939
2939
  return "-- No filters defined";
2940
2940
  const $ = (v) => {
@@ -2944,15 +2944,15 @@ function Xa({
2944
2944
  let w = v.value;
2945
2945
  if (v.latestValue && E === "=")
2946
2946
  return `${h} = ${jt} /* the latest value each time the card runs */`;
2947
- const H = Xt(v.relativeMeta);
2948
- if (H && ya(E) && Zt(E, H)) {
2947
+ const H = Zt(v.relativeMeta);
2948
+ if (H && ya(E) && Jt(E, H)) {
2949
2949
  const O = Ca(E, H), { label: z, range: B } = Ct(H, {
2950
2950
  tz: (_ == null ? void 0 : _.tz) ?? "UTC",
2951
2951
  weekStart: (_ == null ? void 0 : _.weekStart) ?? 1,
2952
2952
  anchor: (_ == null ? void 0 : _.anchor) ?? "now"
2953
2953
  }), j = O ? wa(O) : z;
2954
2954
  if (B) {
2955
- const [ee] = Jt(E, [B.start, B.end]);
2955
+ const [ee] = Xt(E, [B.start, B.end]);
2956
2956
  return `${h} ${E} '${ee.toISOString()}' /* ${j}: the date updates each time the card runs */`;
2957
2957
  }
2958
2958
  return `${h} ${E} ${j} /* the date follows your calendar each time the card runs */`;
@@ -3023,11 +3023,11 @@ function Xa({
3023
3023
  updateGroupNegate: C,
3024
3024
  reorderConditions: I,
3025
3025
  reorderGroups: U,
3026
- generateSQLPreview: J,
3026
+ generateSQLPreview: X,
3027
3027
  hasAnyFilters: p
3028
3028
  };
3029
3029
  }
3030
- function Za({
3030
+ function Ja({
3031
3031
  children: e,
3032
3032
  className: n,
3033
3033
  delayDuration: a
@@ -3046,7 +3046,7 @@ function Za({
3046
3046
  /* @__PURE__ */ t(ot, { children: e })
3047
3047
  ] }) });
3048
3048
  }
3049
- function Ja({
3049
+ function Xa({
3050
3050
  value: e,
3051
3051
  onValueChange: n,
3052
3052
  availableFields: a,
@@ -3072,7 +3072,7 @@ function Ja({
3072
3072
  u
3073
3073
  ),
3074
3074
  children: [
3075
- s ? /* @__PURE__ */ t(Za, { className: "w-auto min-w-0 flex-1 text-left text-[12px]", children: s }) : /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: o }),
3075
+ s ? /* @__PURE__ */ t(Ja, { className: "w-auto min-w-0 flex-1 text-left text-[12px]", children: s }) : /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: o }),
3076
3076
  /* @__PURE__ */ t(jn, { className: "h-3.5 w-3.5 shrink-0 opacity-50" })
3077
3077
  ]
3078
3078
  }
@@ -3300,7 +3300,7 @@ function nr({
3300
3300
  onChange: d,
3301
3301
  className: c
3302
3302
  }) {
3303
- const i = Wn(), s = Kn(), m = n === "between" || n === "not between", f = Zt(n), k = f ? a : void 0, y = P(() => {
3303
+ const i = Wn(), s = Kn(), m = n === "between" || n === "not between", f = Jt(n), k = f ? a : void 0, y = P(() => {
3304
3304
  if (!m || !a) return;
3305
3305
  const C = s(a);
3306
3306
  return {
@@ -3353,7 +3353,7 @@ function nr({
3353
3353
  d({ value: m ? [] : "" });
3354
3354
  return;
3355
3355
  }
3356
- const U = Jt(n, [
3356
+ const U = Xt(n, [
3357
3357
  C.from.toISOString(),
3358
3358
  C.to.toISOString()
3359
3359
  ]);
@@ -3444,7 +3444,7 @@ const ar = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
3444
3444
  isNotNull: "Is not null",
3445
3445
  "not between": "Not between"
3446
3446
  };
3447
- function Xe(e) {
3447
+ function Ze(e) {
3448
3448
  return dr[e] || va(e);
3449
3449
  }
3450
3450
  function cr(e) {
@@ -3543,7 +3543,7 @@ function pn({
3543
3543
  }
3544
3544
  ) : /* @__PURE__ */ t("span", { className: q(un, "text-center", gt), children: "Where" }),
3545
3545
  /* @__PURE__ */ t(
3546
- Ja,
3546
+ Xa,
3547
3547
  {
3548
3548
  value: e.field,
3549
3549
  onValueChange: (I) => {
@@ -3574,10 +3574,10 @@ function pn({
3574
3574
  size: "xs",
3575
3575
  "aria-label": "Operator",
3576
3576
  className: q("w-40 shrink-0", Ft),
3577
- children: /* @__PURE__ */ t(be, { children: e.operator ? Xe(e.operator) : "" })
3577
+ children: /* @__PURE__ */ t(be, { children: e.operator ? Ze(e.operator) : "" })
3578
3578
  }
3579
3579
  ),
3580
- /* @__PURE__ */ t(ve, { children: cr(_).map((I) => /* @__PURE__ */ t(re, { value: I, children: Xe(I) }, I)) })
3580
+ /* @__PURE__ */ t(ve, { children: cr(_).map((I) => /* @__PURE__ */ t(re, { value: I, children: Ze(I) }, I)) })
3581
3581
  ]
3582
3582
  }
3583
3583
  ),
@@ -3602,7 +3602,7 @@ function pn({
3602
3602
  value: I.target.value
3603
3603
  }),
3604
3604
  className: "min-w-0 flex-1",
3605
- placeholder: `${Xe(e.operator)}…`
3605
+ placeholder: `${Ze(e.operator)}…`
3606
3606
  }
3607
3607
  ) : /* @__PURE__ */ t(
3608
3608
  tr,
@@ -3639,7 +3639,7 @@ function pn({
3639
3639
  {
3640
3640
  value: e.value,
3641
3641
  operator: e.operator,
3642
- relativeMeta: Xt(e.relativeMeta),
3642
+ relativeMeta: Zt(e.relativeMeta),
3643
3643
  latestValue: e.latestValue === !0,
3644
3644
  field: e.field,
3645
3645
  onChange: (I) => m(
@@ -3738,7 +3738,7 @@ function ur({
3738
3738
  transform: C,
3739
3739
  transition: I,
3740
3740
  isDragging: U
3741
- } = Gt({ id: e.id }), J = {
3741
+ } = Gt({ id: e.id }), X = {
3742
3742
  transform: Bt.Transform.toString(C),
3743
3743
  transition: I
3744
3744
  }, p = ($) => {
@@ -3762,7 +3762,7 @@ function ur({
3762
3762
  "div",
3763
3763
  {
3764
3764
  ref: Q,
3765
- style: J,
3765
+ style: X,
3766
3766
  className: q(
3767
3767
  n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
3768
3768
  U && "z-50 opacity-50"
@@ -3820,10 +3820,10 @@ function ur({
3820
3820
  /* @__PURE__ */ t(
3821
3821
  Re,
3822
3822
  {
3823
- sensors: Ze(
3823
+ sensors: Je(
3824
3824
  he(tt),
3825
3825
  he(et, {
3826
- coordinateGetter: Je
3826
+ coordinateGetter: Xe
3827
3827
  })
3828
3828
  ),
3829
3829
  collisionDetection: Ee,
@@ -3856,10 +3856,10 @@ function ur({
3856
3856
  /* @__PURE__ */ t(
3857
3857
  Re,
3858
3858
  {
3859
- sensors: Ze(
3859
+ sensors: Je(
3860
3860
  he(tt),
3861
3861
  he(et, {
3862
- coordinateGetter: Je
3862
+ coordinateGetter: Xe
3863
3863
  })
3864
3864
  ),
3865
3865
  collisionDetection: Ee,
@@ -3913,17 +3913,17 @@ function Or({
3913
3913
  reorderConditions: C,
3914
3914
  reorderGroups: I,
3915
3915
  generateSQLPreview: U,
3916
- hasAnyFilters: J
3917
- } = Xa({
3916
+ hasAnyFilters: X
3917
+ } = Za({
3918
3918
  initialFilters: e,
3919
3919
  availableFields: n,
3920
3920
  ...c ? {
3921
3921
  onChange: (h) => c(ar(h) ? h : null)
3922
3922
  } : {}
3923
- }), p = Ze(
3923
+ }), p = Je(
3924
3924
  he(tt),
3925
3925
  he(et, {
3926
- coordinateGetter: Je
3926
+ coordinateGetter: Xe
3927
3927
  })
3928
3928
  ), [T, $] = Y(!1), D = (h, E = 0, w) => {
3929
3929
  if (E === 0) {
@@ -4061,7 +4061,7 @@ function Or({
4061
4061
  ),
4062
4062
  /* @__PURE__ */ t("span", { className: "text-[11px] text-muted-foreground", children: "Nest conditions in groups" })
4063
4063
  ] }),
4064
- J && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
4064
+ X && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
4065
4065
  /* @__PURE__ */ t("div", { className: q("mb-1.5", gt), children: "Where clause" }),
4066
4066
  /* @__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: U(s) })
4067
4067
  ] })
@@ -4083,7 +4083,7 @@ function Or({
4083
4083
  G,
4084
4084
  {
4085
4085
  size: "xs",
4086
- onClick: () => o == null ? void 0 : o(J ? s : null),
4086
+ onClick: () => o == null ? void 0 : o(X ? s : null),
4087
4087
  children: "Apply filters"
4088
4088
  }
4089
4089
  )