react-semaphor 0.1.306 → 0.1.308
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/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-CuiOenEA.js → braces-BHDm9arh.js} +1 -1
- package/dist/chunks/{braces-DZxcgUvn.js → braces-DEq8EJtw.js} +1 -1
- package/dist/chunks/chevrons-up-down-Cbtggnqv.js +14 -0
- package/dist/chunks/chevrons-up-down-DDEY9beZ.js +6 -0
- package/dist/chunks/{dashboard-controls-CuQH4inS.js → dashboard-controls-DTxSUWvy.js} +279 -257
- package/dist/chunks/dashboard-controls-DviftQE7.js +57 -0
- package/dist/chunks/dashboard-filter-controls-button-D0nrJ7wl.js +11 -0
- package/dist/chunks/{dashboard-filter-controls-button-NiAIAD1P.js → dashboard-filter-controls-button-DHKfgPah.js} +304 -303
- package/dist/chunks/{dashboard-json-Bk13vadr.js → dashboard-json-DYzZ0G6T.js} +1 -1
- package/dist/chunks/{dashboard-json-DzVn9KAU.js → dashboard-json-DZmsUV5n.js} +2 -2
- package/dist/chunks/dashboard-summary-settings-dialog-Cc3yKCu4.js +1 -0
- package/dist/chunks/{dashboard-summary-settings-dialog-dt20G_7d.js → dashboard-summary-settings-dialog-QbUTp92u.js} +33 -32
- package/dist/chunks/{edit-dashboard-visual-DGhTFzSF.js → edit-dashboard-visual-BS3LKMJe.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BIuWXuCC.js → edit-dashboard-visual-CmgculGv.js} +130 -129
- package/dist/chunks/{index-DQApwxKL.js → index-BxYIELMe.js} +62029 -63833
- package/dist/chunks/index-C0zD3JgK.js +1330 -0
- package/dist/chunks/{palette-DFjOzeAG.js → palette-CNKSAIrt.js} +1 -1
- package/dist/chunks/{palette-BwGE32UR.js → palette-CteErylX.js} +1 -1
- package/dist/chunks/{resource-management-panel-CD_TQoTn.js → resource-management-panel-8cHoj8SV.js} +52 -52
- package/dist/chunks/resource-management-panel-B4QM3fZ_.js +6 -0
- package/dist/chunks/{save-QktcpXPy.js → save-B1-nDZwS.js} +1 -1
- package/dist/chunks/{save-B3tqymYm.js → save-BVVnWGeb.js} +1 -1
- package/dist/chunks/{switch-B72T1Hf_.js → switch-BG4RWnrq.js} +2 -2
- package/dist/chunks/{switch-BuZXNXQV.js → switch-BZn7R_Cp.js} +634 -634
- package/dist/chunks/{use-create-flow-overlay-state-iUCs5ZgT.js → use-create-flow-overlay-state-Bmb471Fp.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bg-LkLP7.js → use-create-flow-overlay-state-CeWstFjy.js} +49 -49
- package/dist/chunks/{use-visual-utils-D_2r0Fmm.js → use-visual-utils-CmfDomt0.js} +2 -2
- package/dist/chunks/{use-visual-utils-DqVxN0_F.js → use-visual-utils-DflfgX9g.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +76 -76
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/main.d.ts +10 -4
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-BpgZjEDy.js +0 -47
- package/dist/chunks/dashboard-filter-controls-button-Bu90ytxy.js +0 -11
- package/dist/chunks/dashboard-summary-settings-dialog-8vZtKUjh.js +0 -1
- package/dist/chunks/index-CwzM5Lxh.js +0 -1360
- package/dist/chunks/resource-management-panel-BqJAVm7E.js +0 -6
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as Zo from "react";
|
|
3
|
-
import Kt, { useState as G,
|
|
4
|
-
import {
|
|
5
|
-
import { c as $e, l as xe, B as Z, y as Ja, s as Qn, a as X, n as R, aS as gm, L as $, g as ae, h as se, i as re, j as le, k as q, aT as
|
|
6
|
-
import { r as
|
|
7
|
-
import { f as pt, g as
|
|
3
|
+
import Kt, { useState as G, useEffect as Ce, useRef as Ee, useCallback as Ie, useMemo as ce, useContext as cr, Suspense as ec } from "react";
|
|
4
|
+
import { cE as pi, b as yn, c as vn, d as Nn, e as Cn, f as qn, n as Ga, P as et, b9 as It, cF as fi, cG as $a, o as tt, cH as gi, bk as bt, cI as dr, cJ as xi, cK as bi, cL as yi, cM as ur, cN as mr, bb as Za, b5 as gt, cO as Ua, cP as hr, cQ as tc, cR as Ha, cS as vi, cT as nc, cU as ac, q as es, cV as sc, cW as rc, cX as Xs, cY as ja, u as In, W as Ni, cZ as lc, c_ as ic, c$ as Ci, d0 as wi, d1 as oc, d2 as cc, d3 as dc, a$ as Dn, b0 as dn, b1 as un, b2 as wa, b3 as Gt, b4 as zn, d4 as Zs, cw as la, d5 as Si, d6 as Wt, d7 as ht, d8 as uc, c2 as sn, d9 as Ti, da as pr, db as ki, dc as mc, dd as hc, de as pc, df as fc, dg as gc, dh as xc, di as bc, dj as Ii, dk as yc, dl as Ds, dm as vc, dn as Cl, dp as Nc, dq as wl, dr as Cc, ds as wc, dt as Sc, du as _n, bf as $t, bh as jt, dv as Di, dw as fr, bN as gr, bW as xr, dx as br, dy as Tc, dz as Ei, dA as Ai, dB as zt, dC as kc, dD as Ic, dE as Oi, a8 as Mi, dF as Ri, dG as Dc, dH as Ec, dI as Ac, dJ as ca, dK as Oc, dL as Mc, dM as Sl, dN as Rc, E as ts, B as yr, dO as Fc, dP as vr, c5 as Lc, dQ as Tl, I as mt, dR as Pc, dS as Vc, dT as Fi, dU as Li, cx as Bc, dV as Nr, dW as Cr, bR as ns, dX as Pi, dY as Vi, dZ as kl, d_ as Sa, d$ as zc, e0 as _c, e1 as $c, e2 as jc, e3 as qc, bC as wr, e4 as Kc, e5 as Gc, e6 as Bi, e7 as zi, e8 as Uc, e9 as Hc, ea as Wc, eb as Qc, ec as _i, ed as Jc, ee as Yc, ef as as, eg as ss, bp as Un, bq as Hn, bs as Wn, c6 as da, bx as _t, eh as en, ei as wn, ej as Sn, ek as rn, el as Kn, em as Xc, en as Zc, eo as ed, ep as td, eq as nd, er as ad, es as sd, et as rs, eu as rd, ev as Il, bg as Ut, ba as Ht, ew as ld, ex as id, ey as od, V as cd, ez as dd, eA as $i, eB as ud, eC as md, eD as hd, eE as pd, eF as fd, eG as er, eH as gd, eI as xd, eJ as tr, eK as nr, eL as bd, eM as yd, eN as vd, eO as Nd, eP as Dl, bX as ar, eQ as ln, bE as Cd, eR as wd, bF as Sd, bG as Td, bH as kd, bI as Id, bJ as Dd, bK as Ed, bL as Ad, bt as ot, bo as Od, eS as Md, eT as ua, eU as ma, eV as ha, eW as ji, br as Sr, bY as Rd, bu as Fd, eX as Ld, eY as Pd, eZ as Vd, e_ as ls, e$ as at, f0 as st, f1 as rt, f2 as Bd, f3 as zd, f4 as qi, f5 as Ki, f6 as _d, c3 as Gi, f7 as $d, f8 as jd, f9 as qd, fa as Kd, fb as Gd, fc as Ud, fd as Hd, fe as Wd, ff as pn, fg as Pa, fh as $n, R as is, g as Tn, fi as Qd, fj as El, fk as Jd, fl as Yd, fm as Es, fn as Al, fo as Xd, fp as Zd, fq as eu, fr as tu, fs as nu, ft as As, fu as Ui, fv as au, fw as Wa, fx as su, fy as Hi, fz as ru, fA as Wi, fB as lu, cz as iu, fC as ou, az as cu, fD as Va, fE as du, fF as Ol, fG as uu, fH as mu, fI as Ml, fJ as hu, fK as pu, fL as fu, fM as gu, fN as xu, fO as bu, fP as yu, fQ as vu, fR as Nu, fS as Qi, fT as Cu, fU as wu, fV as Su, fW as Tu, fX as ku, fY as Iu, fZ as Du, f_ as Eu, f$ as Au, g0 as Ji, g1 as Ou, g2 as os, g3 as cs, g4 as Yi, g5 as Mu, g6 as Ru, g7 as Xi, g8 as Fu, g9 as Lu, ga as ds, gb as Os, gc as Pu, gd as Vu, ge as Bu, gf as zu, gg as _u, gh as Rl, gi as Gn, gj as Zi, gk as $u, gl as eo, gm as to, gn as sr, go as no, gp as Fl, gq as ju, gr as qu, gs as qa, gt as Ku, gu as Tr, gv as Gu, gw as Uu, gx as Qa, C as pa, h as fa, j as ga, i as xa, k as ba, l as ya, gy as Hu, gz as va, gA as tn, gB as rr, gC as lr, gD as Na, gE as ao, gF as Wu, gG as Ms, gH as Rs, gI as Qu, gJ as Fs, gK as Ju, gL as Ll, gM as Pl, gN as Yu, gO as Xu, gP as Zu, gQ as em, gR as tm, gS as nm, gT as am, gU as sm, cA as rm, cB as lm, cC as im, bz as us, gV as ms, gW as Vl, gX as so, cr as Ls, gY as om, gZ as cm, g_ as dm, F as um, b7 as mm, g$ as hm, h0 as pm, b8 as fm } from "./index-BxYIELMe.js";
|
|
5
|
+
import { c as $e, l as xe, B as Z, y as Ja, s as Qn, a as X, n as R, aS as gm, L as $, g as ae, h as se, i as re, j as le, k as q, aT as ro, G as St, X as Xe, F as yt, z as Ft, A as vt, D as Nt, P as Tt, b as Dt, d as kt, C as on, aU as xm, aR as ia, aV as kr, aW as lo, aL as Ir, aJ as bm, I as Fe, aX as ym, f as cn, u as Le, e as mn, aY as Dr, aZ as Ta, m as io, T as hs, q as ps, r as xn, t as jn, E as qt, x as fs, p as kn, Y as vm, aF as bn, a_ as Nm, a$ as Cm, b0 as oo, an as wm, aH as Sm, b1 as Tm, b2 as km, b3 as Bl, b4 as Im, b5 as Dm, b6 as Em, b7 as Am, b8 as Om, b9 as zl, ba as Mm, bb as _l, R as ir, bc as Jn, bd as Rm, S as qe, be as Fm, bf as Ca, bg as Ya, bh as nn, bi as Ba, bj as $l, bk as Rt, bl as Lm, w as co, bm as nt, a6 as jl, bn as Pm, bo as Vm, bp as Bm, bq as zm, br as _m, bs as $m, bt as jm, bu as qm, bv as Km, bw as Gm, bx as Um, by as Hm, aE as ql, bz as Wm, bA as Qm, bB as Jm, M as Ym, v as gs } from "./switch-BZn7R_Cp.js";
|
|
6
|
+
import { r as uo, f as ka } from "./use-visual-utils-CmfDomt0.js";
|
|
7
|
+
import { f as pt, g as mo, V as ho, u as Xm, e as Zm, C as Kl } from "./use-create-flow-overlay-state-CeWstFjy.js";
|
|
8
|
+
import { C as po } from "./chevrons-up-down-Cbtggnqv.js";
|
|
8
9
|
import { createPortal as eh } from "react-dom";
|
|
9
10
|
import "./index-CJdxSyQq.js";
|
|
10
|
-
import { P as th } from "./palette-
|
|
11
|
+
import { P as th } from "./palette-CNKSAIrt.js";
|
|
11
12
|
/**
|
|
12
13
|
* @license lucide-react v0.453.0 - ISC
|
|
13
14
|
*
|
|
@@ -438,40 +439,6 @@ const Ch = $e("Tags", [
|
|
|
438
439
|
],
|
|
439
440
|
["circle", { cx: "6.5", cy: "9.5", r: ".5", fill: "currentColor", key: "5pm5xn" }]
|
|
440
441
|
]);
|
|
441
|
-
function bo({
|
|
442
|
-
storeValue: t,
|
|
443
|
-
defaultValue: a = "",
|
|
444
|
-
onStoreUpdate: s,
|
|
445
|
-
delay: r = 300
|
|
446
|
-
}) {
|
|
447
|
-
const [d, i] = G(t ?? a), l = Ee(null), c = Ee(d), o = Ee(t), m = Ee(!1), h = Ie(() => {
|
|
448
|
-
l.current && (clearTimeout(l.current), l.current = null), m.current && c.current !== (o.current ?? a) && (s(c.current), o.current = c.current);
|
|
449
|
-
}, [a, s]);
|
|
450
|
-
Ce(() => {
|
|
451
|
-
if (t !== o.current) {
|
|
452
|
-
l.current && (clearTimeout(l.current), l.current = null);
|
|
453
|
-
const p = t ?? a;
|
|
454
|
-
i(p), c.current = p, o.current = t, m.current = !1;
|
|
455
|
-
}
|
|
456
|
-
}, [t, a]), Ce(() => {
|
|
457
|
-
if (m.current)
|
|
458
|
-
return l.current = setTimeout(() => {
|
|
459
|
-
h();
|
|
460
|
-
}, r), () => {
|
|
461
|
-
l.current && (clearTimeout(l.current), l.current = null);
|
|
462
|
-
};
|
|
463
|
-
}, [r, h, d]), Ce(() => () => {
|
|
464
|
-
l.current && clearTimeout(l.current);
|
|
465
|
-
}, []);
|
|
466
|
-
const y = Ie(
|
|
467
|
-
(p) => {
|
|
468
|
-
const u = p ?? a;
|
|
469
|
-
m.current = !0, c.current = u, i(u);
|
|
470
|
-
},
|
|
471
|
-
[a]
|
|
472
|
-
);
|
|
473
|
-
return { value: d, onChange: y, flush: h };
|
|
474
|
-
}
|
|
475
442
|
function wh({
|
|
476
443
|
open: t,
|
|
477
444
|
onOpenChange: a
|
|
@@ -1032,7 +999,7 @@ function Th({
|
|
|
1032
999
|
variant: "ghost",
|
|
1033
1000
|
size: "sm",
|
|
1034
1001
|
onClick: () => f(D.id),
|
|
1035
|
-
children: x ? /* @__PURE__ */ e(
|
|
1002
|
+
children: x ? /* @__PURE__ */ e(ro, { className: "h-4 w-4" }) : /* @__PURE__ */ e(St, { className: "h-4 w-4" })
|
|
1036
1003
|
}
|
|
1037
1004
|
),
|
|
1038
1005
|
/* @__PURE__ */ e(
|
|
@@ -1482,7 +1449,7 @@ function Th({
|
|
|
1482
1449
|
] })
|
|
1483
1450
|
] });
|
|
1484
1451
|
}
|
|
1485
|
-
function
|
|
1452
|
+
function bo({
|
|
1486
1453
|
children: t,
|
|
1487
1454
|
open: a,
|
|
1488
1455
|
onOpenChange: s,
|
|
@@ -1715,7 +1682,7 @@ ${S.joinType} JOIN ${v.name}
|
|
|
1715
1682
|
N
|
|
1716
1683
|
] }) }),
|
|
1717
1684
|
/* @__PURE__ */ e(
|
|
1718
|
-
|
|
1685
|
+
bo,
|
|
1719
1686
|
{
|
|
1720
1687
|
open: h,
|
|
1721
1688
|
onOpenChange: y,
|
|
@@ -1900,7 +1867,7 @@ function Eh(t) {
|
|
|
1900
1867
|
const a = [];
|
|
1901
1868
|
return t.connectionType && a.push(String(t.connectionType)), t.database && a.push(t.database), t.schema && a.push(t.schema), a.join(" · ");
|
|
1902
1869
|
}
|
|
1903
|
-
function
|
|
1870
|
+
function yo({ isVisible: t }) {
|
|
1904
1871
|
nc();
|
|
1905
1872
|
const [a, s] = G(!1);
|
|
1906
1873
|
return /* @__PURE__ */ n(
|
|
@@ -1929,6 +1896,40 @@ function vo({ isVisible: t }) {
|
|
|
1929
1896
|
}
|
|
1930
1897
|
);
|
|
1931
1898
|
}
|
|
1899
|
+
function vo({
|
|
1900
|
+
storeValue: t,
|
|
1901
|
+
defaultValue: a = "",
|
|
1902
|
+
onStoreUpdate: s,
|
|
1903
|
+
delay: r = 300
|
|
1904
|
+
}) {
|
|
1905
|
+
const [d, i] = G(t ?? a), l = Ee(null), c = Ee(d), o = Ee(t), m = Ee(!1), h = Ie(() => {
|
|
1906
|
+
l.current && (clearTimeout(l.current), l.current = null), m.current && c.current !== (o.current ?? a) && (s(c.current), o.current = c.current);
|
|
1907
|
+
}, [a, s]);
|
|
1908
|
+
Ce(() => {
|
|
1909
|
+
if (t !== o.current) {
|
|
1910
|
+
l.current && (clearTimeout(l.current), l.current = null);
|
|
1911
|
+
const p = t ?? a;
|
|
1912
|
+
i(p), c.current = p, o.current = t, m.current = !1;
|
|
1913
|
+
}
|
|
1914
|
+
}, [t, a]), Ce(() => {
|
|
1915
|
+
if (m.current)
|
|
1916
|
+
return l.current = setTimeout(() => {
|
|
1917
|
+
h();
|
|
1918
|
+
}, r), () => {
|
|
1919
|
+
l.current && (clearTimeout(l.current), l.current = null);
|
|
1920
|
+
};
|
|
1921
|
+
}, [r, h, d]), Ce(() => () => {
|
|
1922
|
+
l.current && clearTimeout(l.current);
|
|
1923
|
+
}, []);
|
|
1924
|
+
const y = Ie(
|
|
1925
|
+
(p) => {
|
|
1926
|
+
const u = p ?? a;
|
|
1927
|
+
m.current = !0, c.current = u, i(u);
|
|
1928
|
+
},
|
|
1929
|
+
[a]
|
|
1930
|
+
);
|
|
1931
|
+
return { value: d, onChange: y, flush: h };
|
|
1932
|
+
}
|
|
1932
1933
|
const Ah = 300;
|
|
1933
1934
|
function Oh() {
|
|
1934
1935
|
const t = R((N) => N.card.sql), a = R((N) => N.sqlGen), s = R((N) => N.card), r = pt(), { setCardSql: d, setSqlGen: i, setRunSql: l } = xe(), c = ce(() => r !== s.type ? { ...s, type: r } : s, [s, r]), { queryKey: o } = gt(c), m = es(), h = Ee(o);
|
|
@@ -1944,13 +1945,13 @@ function Oh() {
|
|
|
1944
1945
|
value: u,
|
|
1945
1946
|
onChange: g,
|
|
1946
1947
|
flush: C
|
|
1947
|
-
} =
|
|
1948
|
+
} = vo({
|
|
1948
1949
|
storeValue: t,
|
|
1949
1950
|
defaultValue: "",
|
|
1950
1951
|
onStoreUpdate: p,
|
|
1951
1952
|
delay: Ah
|
|
1952
1953
|
});
|
|
1953
|
-
Ce(() =>
|
|
1954
|
+
Ce(() => uo(C), [C]);
|
|
1954
1955
|
function f(N) {
|
|
1955
1956
|
g(N), xm(y.current) || i({});
|
|
1956
1957
|
}
|
|
@@ -1978,13 +1979,13 @@ const Mh = 300;
|
|
|
1978
1979
|
function Rh() {
|
|
1979
1980
|
const t = R((p) => p.card.python), a = R((p) => p.card), s = pt(), { setCardPython: r, setRunSql: d } = xe(), i = ce(() => s !== a.type ? { ...a, type: s } : a, [a, s]), { queryKey: l } = gt(i), c = es(), o = Ee(l);
|
|
1980
1981
|
o.current = l;
|
|
1981
|
-
const { value: m, onChange: h, flush: y } =
|
|
1982
|
+
const { value: m, onChange: h, flush: y } = vo({
|
|
1982
1983
|
storeValue: t,
|
|
1983
1984
|
defaultValue: sc,
|
|
1984
1985
|
onStoreUpdate: r,
|
|
1985
1986
|
delay: Mh
|
|
1986
1987
|
});
|
|
1987
|
-
return Ce(() =>
|
|
1988
|
+
return Ce(() => uo(y), [y]), /* @__PURE__ */ e(
|
|
1988
1989
|
on,
|
|
1989
1990
|
{
|
|
1990
1991
|
value: m ?? "",
|
|
@@ -2409,7 +2410,7 @@ function Gh({
|
|
|
2409
2410
|
body: {
|
|
2410
2411
|
...ie,
|
|
2411
2412
|
inlineRunToken: Ne || Me,
|
|
2412
|
-
messages:
|
|
2413
|
+
messages: lo(H)
|
|
2413
2414
|
}
|
|
2414
2415
|
};
|
|
2415
2416
|
}
|
|
@@ -3306,7 +3307,7 @@ function Uh() {
|
|
|
3306
3307
|
]
|
|
3307
3308
|
}
|
|
3308
3309
|
),
|
|
3309
|
-
/* @__PURE__ */ e(
|
|
3310
|
+
/* @__PURE__ */ e(mo, {}),
|
|
3310
3311
|
/* @__PURE__ */ n(
|
|
3311
3312
|
pr,
|
|
3312
3313
|
{
|
|
@@ -3473,7 +3474,7 @@ function Qh({
|
|
|
3473
3474
|
onClick: () => B.getCanSort() && B.toggleSorting(B.getIsSorted() === "asc"),
|
|
3474
3475
|
children: [
|
|
3475
3476
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", title: x, children: x }),
|
|
3476
|
-
_ === "asc" ? /* @__PURE__ */ e(hc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : _ === "desc" ? /* @__PURE__ */ e(pc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : B.getCanSort() ? /* @__PURE__ */ e(
|
|
3477
|
+
_ === "asc" ? /* @__PURE__ */ e(hc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : _ === "desc" ? /* @__PURE__ */ e(pc, { className: "h-3.5 w-3.5 shrink-0 text-foreground" }) : B.getCanSort() ? /* @__PURE__ */ e(po, { className: "h-3 w-3 shrink-0 opacity-0 transition-opacity group-hover/header:opacity-50" }) : null
|
|
3477
3478
|
]
|
|
3478
3479
|
}
|
|
3479
3480
|
);
|
|
@@ -3513,7 +3514,7 @@ function Qh({
|
|
|
3513
3514
|
}), k = C === "server" && s ? s.totalCount : t.length, S = C !== "disabled" && (C === "server" || k > 10), v = c.length > 0 ? `${c.length * 144}px` : "100%";
|
|
3514
3515
|
return /* @__PURE__ */ n("div", { className: "relative flex h-full min-h-0 w-full flex-col", children: [
|
|
3515
3516
|
l && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ e(cn, { className: "h-5 w-5 animate-spin text-muted-foreground" }) }),
|
|
3516
|
-
/* @__PURE__ */ n(
|
|
3517
|
+
/* @__PURE__ */ n(Ii, { className: "relative min-h-0 w-full grow overflow-auto rounded-none border-0 bg-transparent text-foreground", children: [
|
|
3517
3518
|
/* @__PURE__ */ n(
|
|
3518
3519
|
"table",
|
|
3519
3520
|
{
|
|
@@ -3836,7 +3837,7 @@ function Ar({
|
|
|
3836
3837
|
/* @__PURE__ */ e("span", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Query" }),
|
|
3837
3838
|
/* @__PURE__ */ e(_n, { text: a, className: "h-6 w-6" })
|
|
3838
3839
|
] }),
|
|
3839
|
-
/* @__PURE__ */ e("div", { className: "max-h-80 overflow-auto rounded-[5px] border border-border/60 bg-background p-2", children: /* @__PURE__ */ e(
|
|
3840
|
+
/* @__PURE__ */ e("div", { className: "max-h-80 overflow-auto rounded-[5px] border border-border/60 bg-background p-2", children: /* @__PURE__ */ e(Di, { code: a, language: "sql" }) })
|
|
3840
3841
|
] }) })
|
|
3841
3842
|
]
|
|
3842
3843
|
}
|
|
@@ -3883,7 +3884,7 @@ function Co({
|
|
|
3883
3884
|
(ue) => ue.actions.setCardInlineFilterValue
|
|
3884
3885
|
), E = R(
|
|
3885
3886
|
(ue) => ue.actions.removeCardInlineFilterValue
|
|
3886
|
-
), { updateFilter: V } =
|
|
3887
|
+
), { updateFilter: V } = io(), w = h == null ? void 0 : h.find((ue) => ue.id === o.filterId), I = ce(
|
|
3887
3888
|
() => Dn(o, r),
|
|
3888
3889
|
[o, r]
|
|
3889
3890
|
), { manifest: k } = dn(
|
|
@@ -3958,7 +3959,7 @@ function Co({
|
|
|
3958
3959
|
}, he = ce(() => {
|
|
3959
3960
|
const ue = typeof window < "u" ? window.location.href : "", Te = typeof navigator < "u" ? navigator.userAgent : "", Ke = typeof window < "u" ? `${window.innerWidth}x${window.innerHeight}` : "";
|
|
3960
3961
|
return {
|
|
3961
|
-
category:
|
|
3962
|
+
category: Ei.QUERY_GENERATION,
|
|
3962
3963
|
user: g,
|
|
3963
3964
|
tokenContext: C,
|
|
3964
3965
|
systemState: {
|
|
@@ -4002,7 +4003,7 @@ function Co({
|
|
|
4002
4003
|
}
|
|
4003
4004
|
};
|
|
4004
4005
|
Q(Ke), te(Ke), r.sql && ((pe = (At = r.preferences) == null ? void 0 : At.tablePrefs) != null && pe.enableDevModePagination) && f(!0);
|
|
4005
|
-
}, me = ce(() => !ge || !oe ? null :
|
|
4006
|
+
}, me = ce(() => !ge || !oe ? null : Ai({
|
|
4006
4007
|
card: Oe,
|
|
4007
4008
|
data: oe,
|
|
4008
4009
|
cardType: D,
|
|
@@ -4156,7 +4157,7 @@ function Co({
|
|
|
4156
4157
|
}
|
|
4157
4158
|
) }),
|
|
4158
4159
|
/* @__PURE__ */ e(Si, { card: r }),
|
|
4159
|
-
/* @__PURE__ */ e(
|
|
4160
|
+
/* @__PURE__ */ e(ho, {}),
|
|
4160
4161
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(Jh, {}) })
|
|
4161
4162
|
] }),
|
|
4162
4163
|
/* @__PURE__ */ e("div", { className: "min-w-0", children: /* @__PURE__ */ e(
|
|
@@ -4215,12 +4216,12 @@ function Co({
|
|
|
4215
4216
|
style: F ? void 0 : d.cardGutterStyle,
|
|
4216
4217
|
children: [
|
|
4217
4218
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 grow basis-0", children: Y() }),
|
|
4218
|
-
|
|
4219
|
+
Oi(M) && /* @__PURE__ */ e("div", { className: X("pt-3", F && "px-4"), children: /* @__PURE__ */ e(Mi, { card: M, mode: "editor" }) })
|
|
4219
4220
|
]
|
|
4220
4221
|
}
|
|
4221
4222
|
),
|
|
4222
4223
|
/* @__PURE__ */ e(
|
|
4223
|
-
|
|
4224
|
+
Ri,
|
|
4224
4225
|
{
|
|
4225
4226
|
open: p,
|
|
4226
4227
|
onOpenChange: u,
|
|
@@ -4357,7 +4358,7 @@ function ep({
|
|
|
4357
4358
|
}, S = () => {
|
|
4358
4359
|
var L, D;
|
|
4359
4360
|
if (!((L = E == null ? void 0 : E.records) != null && L.length)) return;
|
|
4360
|
-
const b =
|
|
4361
|
+
const b = Ai({
|
|
4361
4362
|
card: u,
|
|
4362
4363
|
data: E.records,
|
|
4363
4364
|
cardType: u.type,
|
|
@@ -4461,8 +4462,8 @@ function Or({
|
|
|
4461
4462
|
className: r = "h-6 w-6"
|
|
4462
4463
|
}) {
|
|
4463
4464
|
if (!s && t)
|
|
4464
|
-
return
|
|
4465
|
-
const d =
|
|
4465
|
+
return Fi(t, r);
|
|
4466
|
+
const d = Li(a);
|
|
4466
4467
|
if (d)
|
|
4467
4468
|
return Kt.cloneElement(d, { className: r });
|
|
4468
4469
|
const i = np(a), l = tp(a);
|
|
@@ -4620,10 +4621,10 @@ function wo({ onChartSelect: t, onClose: a }) {
|
|
|
4620
4621
|
u(null), h({}), C("builtin"), m(b), ["custom", "text", "map"].includes(b) && (y(!0), f(void 0)), t == null || t(b), a == null || a();
|
|
4621
4622
|
}, S = (b) => {
|
|
4622
4623
|
u(null), h({}), C("builtin"), f(void 0);
|
|
4623
|
-
const L =
|
|
4624
|
+
const L = Pi(b);
|
|
4624
4625
|
if (L === "multiple" && b.slots && b.slots.length > 0) {
|
|
4625
4626
|
E();
|
|
4626
|
-
const M =
|
|
4627
|
+
const M = Vi(b.slots, b, p);
|
|
4627
4628
|
N(M), M[0] && V(M[0]), a == null || a();
|
|
4628
4629
|
return;
|
|
4629
4630
|
} else
|
|
@@ -4741,7 +4742,7 @@ function sp({
|
|
|
4741
4742
|
return /* @__PURE__ */ e(L, { className: "h-4 w-4" });
|
|
4742
4743
|
}
|
|
4743
4744
|
if (g === "custom" && C) {
|
|
4744
|
-
const L =
|
|
4745
|
+
const L = Li(C);
|
|
4745
4746
|
return L || /* @__PURE__ */ e(
|
|
4746
4747
|
Or,
|
|
4747
4748
|
{
|
|
@@ -4889,13 +4890,13 @@ const Bn = {
|
|
|
4889
4890
|
line: as,
|
|
4890
4891
|
stackedBar: Yc,
|
|
4891
4892
|
stackedLine: Jc,
|
|
4892
|
-
scatter:
|
|
4893
|
+
scatter: _i,
|
|
4893
4894
|
bubble: Qc,
|
|
4894
4895
|
pie: Wc,
|
|
4895
4896
|
doughnut: Hc,
|
|
4896
4897
|
kpi: Uc,
|
|
4897
|
-
treemap:
|
|
4898
|
-
bullet:
|
|
4898
|
+
treemap: zi,
|
|
4899
|
+
bullet: Bi,
|
|
4899
4900
|
funnel: Gc,
|
|
4900
4901
|
tornado: Kc,
|
|
4901
4902
|
heatmap: wr,
|
|
@@ -5047,10 +5048,10 @@ function ko({
|
|
|
5047
5048
|
const A = C.find((D) => D.name === v.id);
|
|
5048
5049
|
if (!A) return;
|
|
5049
5050
|
o(null), c({}), h(void 0);
|
|
5050
|
-
const b =
|
|
5051
|
+
const b = Pi(A);
|
|
5051
5052
|
if (b === "multiple" && A.slots && A.slots.length > 0) {
|
|
5052
5053
|
p();
|
|
5053
|
-
const D =
|
|
5054
|
+
const D = Vi(
|
|
5054
5055
|
A.slots,
|
|
5055
5056
|
A,
|
|
5056
5057
|
i
|
|
@@ -5580,7 +5581,7 @@ function mp(t, a, s) {
|
|
|
5580
5581
|
const r = new Set(
|
|
5581
5582
|
s.filter((i) => i.target !== "sql_param").map((i) => Xa(i.controlId, i.target))
|
|
5582
5583
|
), d = a.map((i) => {
|
|
5583
|
-
const l =
|
|
5584
|
+
const l = oo({
|
|
5584
5585
|
card: t,
|
|
5585
5586
|
control: i
|
|
5586
5587
|
}).map((h) => h.value), c = up[i.type], m = [
|
|
@@ -5620,7 +5621,7 @@ function hp({
|
|
|
5620
5621
|
}), y = Cm(t), p = new Set(
|
|
5621
5622
|
s.map((V) => Xa(V.controlId, V.target))
|
|
5622
5623
|
), u = c.some(
|
|
5623
|
-
(V) =>
|
|
5624
|
+
(V) => oo({
|
|
5624
5625
|
card: t,
|
|
5625
5626
|
control: V
|
|
5626
5627
|
}).some(
|
|
@@ -6132,7 +6133,7 @@ function fp({
|
|
|
6132
6133
|
}) {
|
|
6133
6134
|
const a = Le((l) => l.selectedFrameId), s = cd((l) => l.selectedVisual), r = R((l) => l.frame), i = !!!(r != null && r.visualId || s != null && s.id) && !!a;
|
|
6134
6135
|
return !t || i ? null : /* @__PURE__ */ e("div", { className: "mb-2 flex", children: /* @__PURE__ */ e(
|
|
6135
|
-
|
|
6136
|
+
ho,
|
|
6136
6137
|
{
|
|
6137
6138
|
showLabel: !0,
|
|
6138
6139
|
className: "h-6 w-fit px-2 py-0.5 text-[11px]"
|
|
@@ -6316,7 +6317,7 @@ function gp({
|
|
|
6316
6317
|
// Multi-input visual: Icon + Slot Label (non-editable, no eye icon)
|
|
6317
6318
|
/* @__PURE__ */ e(Ft, { delayDuration: 0, children: /* @__PURE__ */ n(vt, { children: [
|
|
6318
6319
|
/* @__PURE__ */ e(Nt, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
6319
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children:
|
|
6320
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: Fi(Q, "size-3.5") }),
|
|
6320
6321
|
/* @__PURE__ */ e("span", { children: K.label || `Tab ${W + 1}` })
|
|
6321
6322
|
] }) }),
|
|
6322
6323
|
/* @__PURE__ */ e(
|
|
@@ -6438,7 +6439,7 @@ function gn({
|
|
|
6438
6439
|
}).map(
|
|
6439
6440
|
(de) => (de == null ? void 0 : de.id) === r.id ? r : de
|
|
6440
6441
|
), [s, l, r]), T = ce(
|
|
6441
|
-
() =>
|
|
6442
|
+
() => $i(x),
|
|
6442
6443
|
[x]
|
|
6443
6444
|
), O = ce(() => {
|
|
6444
6445
|
const Y = x.findIndex(
|
|
@@ -6621,7 +6622,7 @@ function gn({
|
|
|
6621
6622
|
comparisonMetadata: (Y = z == null ? void 0 : z.metadata) == null ? void 0 : Y.comparisonMetadata
|
|
6622
6623
|
}
|
|
6623
6624
|
) }),
|
|
6624
|
-
|
|
6625
|
+
Oi(r) && /* @__PURE__ */ e(Mi, { card: r, mode: "editor" })
|
|
6625
6626
|
] }) }) : r.type === "text" ? P || j ? /* @__PURE__ */ e("div", { className: "z-50 flex h-full items-center justify-center", children: /* @__PURE__ */ e(zt, { size: "md", color: "muted", "aria-label": "Loading data" }) }) : /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-1/2 rounded-md border", children: /* @__PURE__ */ e(Qn, { className: "mx-3 my-6 h-[300px] overflow-y-auto break-words px-3", children: /* @__PURE__ */ e(
|
|
6626
6627
|
fd,
|
|
6627
6628
|
{
|
|
@@ -7248,7 +7249,7 @@ function Ao({
|
|
|
7248
7249
|
] })
|
|
7249
7250
|
] }),
|
|
7250
7251
|
I.truncationMessage && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: I.truncationMessage }),
|
|
7251
|
-
/* @__PURE__ */ e("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e(
|
|
7252
|
+
/* @__PURE__ */ e("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e(Di, { code: I.json, language: "json" }) })
|
|
7252
7253
|
] })
|
|
7253
7254
|
] })
|
|
7254
7255
|
] }) }),
|
|
@@ -7503,7 +7504,7 @@ function $s({
|
|
|
7503
7504
|
te();
|
|
7504
7505
|
},
|
|
7505
7506
|
children: /* @__PURE__ */ e(
|
|
7506
|
-
|
|
7507
|
+
ji,
|
|
7507
7508
|
{
|
|
7508
7509
|
className: X("h-3.5 w-3.5", {
|
|
7509
7510
|
"animate-spin": Qe
|
|
@@ -8028,7 +8029,7 @@ function Oo() {
|
|
|
8028
8029
|
}),
|
|
8029
8030
|
[d, l, r, p]
|
|
8030
8031
|
), N = ce(
|
|
8031
|
-
() =>
|
|
8032
|
+
() => $i(f),
|
|
8032
8033
|
[f]
|
|
8033
8034
|
), E = ce(
|
|
8034
8035
|
() => N.map((x, T) => {
|
|
@@ -8199,7 +8200,7 @@ function Oo() {
|
|
|
8199
8200
|
] })
|
|
8200
8201
|
] }) })
|
|
8201
8202
|
] }),
|
|
8202
|
-
p && V.length > 0 && /* @__PURE__ */ e(
|
|
8203
|
+
p && V.length > 0 && /* @__PURE__ */ e(qi, { className: "mt-3 border-yellow-500/40 bg-yellow-500/10 text-yellow-900 dark:text-yellow-100", children: /* @__PURE__ */ e(Ki, { children: /* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-xs", children: V.map((x, T) => /* @__PURE__ */ e("li", { children: x.message }, `${x.type}-${T}`)) }) }) }),
|
|
8203
8204
|
h && !p && h.settings && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "px-2", children: b({
|
|
8204
8205
|
settingsSchema: h.settings,
|
|
8205
8206
|
settingsField: "settings",
|
|
@@ -8969,7 +8970,7 @@ function ni({
|
|
|
8969
8970
|
children: [
|
|
8970
8971
|
/* @__PURE__ */ n("summary", { className: "flex cursor-pointer list-none items-center justify-between gap-4", children: [
|
|
8971
8972
|
/* @__PURE__ */ e($, { children: a }),
|
|
8972
|
-
/* @__PURE__ */ e(
|
|
8973
|
+
/* @__PURE__ */ e(ro, { className: "h-4 w-4" })
|
|
8973
8974
|
] }),
|
|
8974
8975
|
/* @__PURE__ */ e("div", { className: "transition-all ease-in-out", children: t })
|
|
8975
8976
|
]
|
|
@@ -9071,7 +9072,7 @@ function Fp() {
|
|
|
9071
9072
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: ((p = s == null ? void 0 : s.onClickFilter) == null ? void 0 : p.find(
|
|
9072
9073
|
(u) => u.columnIndex === h
|
|
9073
9074
|
)) && /* @__PURE__ */ e(
|
|
9074
|
-
|
|
9075
|
+
Gi,
|
|
9075
9076
|
{
|
|
9076
9077
|
onClick: () => {
|
|
9077
9078
|
a((u) => {
|
|
@@ -11748,7 +11749,7 @@ function rf() {
|
|
|
11748
11749
|
};
|
|
11749
11750
|
return /* @__PURE__ */ n(at, { value: "treemap-color-mode", className: "border-none", children: [
|
|
11750
11751
|
/* @__PURE__ */ e(st, { className: "flex w-full items-center gap-2 py-3 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
11751
|
-
/* @__PURE__ */ e(
|
|
11752
|
+
/* @__PURE__ */ e(zi, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11752
11753
|
/* @__PURE__ */ e("span", { children: "Treemap Colors" })
|
|
11753
11754
|
] }) }),
|
|
11754
11755
|
/* @__PURE__ */ e(rt, { className: "space-y-4 border-t border-border bg-background/50 px-3 py-4 text-sm", children: /* @__PURE__ */ n(
|
|
@@ -11791,7 +11792,7 @@ function rf() {
|
|
|
11791
11792
|
) })
|
|
11792
11793
|
] });
|
|
11793
11794
|
}
|
|
11794
|
-
const lf = Object.keys(
|
|
11795
|
+
const lf = Object.keys(Ui);
|
|
11795
11796
|
function of() {
|
|
11796
11797
|
const t = R((p) => p.card), a = R((p) => {
|
|
11797
11798
|
var u;
|
|
@@ -11833,7 +11834,7 @@ function of() {
|
|
|
11833
11834
|
className: "space-y-3",
|
|
11834
11835
|
children: [
|
|
11835
11836
|
lf.map((p) => {
|
|
11836
|
-
const u =
|
|
11837
|
+
const u = Ui[p];
|
|
11837
11838
|
return /* @__PURE__ */ n(
|
|
11838
11839
|
"div",
|
|
11839
11840
|
{
|
|
@@ -12065,7 +12066,7 @@ function cf() {
|
|
|
12065
12066
|
};
|
|
12066
12067
|
return /* @__PURE__ */ n(at, { value: "bullet-config", className: "border-b-0", children: [
|
|
12067
12068
|
/* @__PURE__ */ e(st, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
12068
|
-
/* @__PURE__ */ e(
|
|
12069
|
+
/* @__PURE__ */ e(Bi, { className: "h-4 w-4 text-muted-foreground" }),
|
|
12069
12070
|
/* @__PURE__ */ e("span", { children: "Bullet Chart" })
|
|
12070
12071
|
] }) }),
|
|
12071
12072
|
/* @__PURE__ */ n(rt, { className: "space-y-6 border-t border-border/50 py-4", children: [
|
|
@@ -12370,7 +12371,7 @@ function df() {
|
|
|
12370
12371
|
};
|
|
12371
12372
|
return !l && !c ? null : /* @__PURE__ */ n(at, { value: "bubble-scatter-config", children: [
|
|
12372
12373
|
/* @__PURE__ */ e(st, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
12373
|
-
/* @__PURE__ */ e(l ? au :
|
|
12374
|
+
/* @__PURE__ */ e(l ? au : _i, { className: "h-3.5 w-3.5 text-foreground/60" }),
|
|
12374
12375
|
/* @__PURE__ */ n("span", { children: [
|
|
12375
12376
|
l ? "Bubble" : "Scatter",
|
|
12376
12377
|
" Configuration"
|
|
@@ -13460,7 +13461,7 @@ function Af({ metricKey: t, idx: a }) {
|
|
|
13460
13461
|
"border border-border bg-background text-muted-foreground"
|
|
13461
13462
|
),
|
|
13462
13463
|
children: [
|
|
13463
|
-
/* @__PURE__ */ e(
|
|
13464
|
+
/* @__PURE__ */ e(Hi, { className: "h-3 w-3" }),
|
|
13464
13465
|
h.label.split(" ")[0]
|
|
13465
13466
|
]
|
|
13466
13467
|
}
|
|
@@ -13883,7 +13884,7 @@ function zf({ metricKey: t, idx: a }) {
|
|
|
13883
13884
|
"border border-border bg-background text-muted-foreground"
|
|
13884
13885
|
),
|
|
13885
13886
|
children: [
|
|
13886
|
-
/* @__PURE__ */ e(
|
|
13887
|
+
/* @__PURE__ */ e(co, { className: "h-3 w-3" }),
|
|
13887
13888
|
"r:",
|
|
13888
13889
|
m
|
|
13889
13890
|
]
|
|
@@ -14070,7 +14071,7 @@ function Hf() {
|
|
|
14070
14071
|
};
|
|
14071
14072
|
return /* @__PURE__ */ n(at, { value: "bar-style", className: "border-b-0", children: [
|
|
14072
14073
|
/* @__PURE__ */ e(st, { className: "flex w-full items-center gap-2 py-2 text-[12px] font-medium hover:no-underline", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
14073
|
-
/* @__PURE__ */ e(
|
|
14074
|
+
/* @__PURE__ */ e(co, { className: "h-4 w-4 text-muted-foreground" }),
|
|
14074
14075
|
/* @__PURE__ */ e("span", { children: "Bar Style" })
|
|
14075
14076
|
] }) }),
|
|
14076
14077
|
/* @__PURE__ */ e(rt, { className: "pt-2", children: /* @__PURE__ */ n("div", { className: "space-y-3", children: [
|
|
@@ -14187,7 +14188,7 @@ function Xf() {
|
|
|
14187
14188
|
var E, V;
|
|
14188
14189
|
const t = R((w) => w.card), a = R(
|
|
14189
14190
|
(w) => w.actions.updateCardConfig
|
|
14190
|
-
), s = pt(), { scopedFields: r } =
|
|
14191
|
+
), s = pt(), { scopedFields: r } = Wi(), d = ((E = t.config) == null ? void 0 : E.metricColumns) || [], i = ((V = t.config) == null ? void 0 : V.summary) || {}, l = i.breakdownDimensions || [], c = Qf.includes(s), o = d.length > 0, m = i.enabled === !0, h = c && o, { comparisonType: y } = lu(t.config, s), p = di[y] || di.none, u = Array.from(
|
|
14191
14192
|
new Map(
|
|
14192
14193
|
r.filter(Jf).map((w) => [fn(w), Yf(w)])
|
|
14193
14194
|
).values()
|
|
@@ -14449,10 +14450,10 @@ function ng({
|
|
|
14449
14450
|
}) {
|
|
14450
14451
|
const s = R((l) => l.card), r = s.type;
|
|
14451
14452
|
if (Jn(s) === "dynamic")
|
|
14452
|
-
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ n(
|
|
14453
|
+
return /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ n(qi, { children: [
|
|
14453
14454
|
/* @__PURE__ */ e(qt, { className: "h-4 w-4" }),
|
|
14454
14455
|
/* @__PURE__ */ e(ou, { children: "Dynamic mode manages presentation" }),
|
|
14455
|
-
/* @__PURE__ */ e(
|
|
14456
|
+
/* @__PURE__ */ e(Ki, { children: "Built-in chart settings are hidden while this card is in dynamic mode. Query and data edits still apply, and the dynamic visual editor in the main panel controls the rendered output." })
|
|
14456
14457
|
] }) });
|
|
14457
14458
|
function i() {
|
|
14458
14459
|
switch (r) {
|
|
@@ -14638,7 +14639,7 @@ function sg(t) {
|
|
|
14638
14639
|
prepareSendMessagesRequest: ({ messages: U, body: Y }) => ({
|
|
14639
14640
|
body: {
|
|
14640
14641
|
...Y,
|
|
14641
|
-
messages:
|
|
14642
|
+
messages: lo(U)
|
|
14642
14643
|
}
|
|
14643
14644
|
})
|
|
14644
14645
|
}),
|
|
@@ -15111,7 +15112,7 @@ function ui({
|
|
|
15111
15112
|
onClick: () => {
|
|
15112
15113
|
_([]), V("editor"), te(), oe();
|
|
15113
15114
|
},
|
|
15114
|
-
children: /* @__PURE__ */ e(
|
|
15115
|
+
children: /* @__PURE__ */ e(Qi, { className: "size-4" })
|
|
15115
15116
|
}
|
|
15116
15117
|
),
|
|
15117
15118
|
/* @__PURE__ */ e(
|
|
@@ -15131,7 +15132,7 @@ function ui({
|
|
|
15131
15132
|
}
|
|
15132
15133
|
),
|
|
15133
15134
|
/* @__PURE__ */ e(
|
|
15134
|
-
|
|
15135
|
+
Ii,
|
|
15135
15136
|
{
|
|
15136
15137
|
ref: Oe,
|
|
15137
15138
|
className: "mt-2 flex min-w-0 w-full grow basis-0",
|
|
@@ -15660,7 +15661,7 @@ function ug({
|
|
|
15660
15661
|
}
|
|
15661
15662
|
),
|
|
15662
15663
|
/* @__PURE__ */ e(
|
|
15663
|
-
|
|
15664
|
+
Hi,
|
|
15664
15665
|
{
|
|
15665
15666
|
onClick: () => m("area"),
|
|
15666
15667
|
className: X(
|
|
@@ -15780,7 +15781,7 @@ function pg({
|
|
|
15780
15781
|
t.name,
|
|
15781
15782
|
a,
|
|
15782
15783
|
s
|
|
15783
|
-
], o =
|
|
15784
|
+
], o = Ji({
|
|
15784
15785
|
queryKey: c,
|
|
15785
15786
|
queryFn: async () => {
|
|
15786
15787
|
if (!(l != null && l.connectionId))
|
|
@@ -16177,7 +16178,7 @@ function xg({
|
|
|
16177
16178
|
handleKpiTrendlineWindowChange: te,
|
|
16178
16179
|
handleKpiTrendlineGranularityChange: fe,
|
|
16179
16180
|
handleMetricTargetValueChange: ge
|
|
16180
|
-
} =
|
|
16181
|
+
} = Yi(u), [ye, Ae] = G(!1), [we, Pe] = G(() => {
|
|
16181
16182
|
var J;
|
|
16182
16183
|
return !!((J = t.parameters) != null && J.windowTransform);
|
|
16183
16184
|
}), [Qe, Ue] = G(!1), [oe, Oe] = G(!1), [Ye, Je] = G(null), ct = ce(() => {
|
|
@@ -16220,7 +16221,7 @@ function xg({
|
|
|
16220
16221
|
ue(J), a === "metrics" && D(s, J);
|
|
16221
16222
|
}, We = (J) => {
|
|
16222
16223
|
S(a, s, J);
|
|
16223
|
-
}, ut = Ru(t), ze =
|
|
16224
|
+
}, ut = Ru(t), ze = Xi(t), Lt = Fu(t), Ge = t.role === "metric" && Lt, Xn = Lt && (ut === "user_calculated" || ut === "inline_expression" && t.fieldScope !== "domain"), Qt = Xn ? (qr = g == null ? void 0 : g.calculatedFields) == null ? void 0 : qr.find(
|
|
16224
16225
|
(J) => Hm(J, t, {
|
|
16225
16226
|
allowComparableFallback: !0
|
|
16226
16227
|
})
|
|
@@ -16517,7 +16518,7 @@ function xg({
|
|
|
16517
16518
|
className: "h-8 w-full justify-start text-xs",
|
|
16518
16519
|
onClick: () => Oe(!0),
|
|
16519
16520
|
children: [
|
|
16520
|
-
/* @__PURE__ */ e(
|
|
16521
|
+
/* @__PURE__ */ e(Gi, { className: "mr-2 h-3 w-3" }),
|
|
16521
16522
|
"Edit Formula"
|
|
16522
16523
|
]
|
|
16523
16524
|
}
|
|
@@ -17021,7 +17022,7 @@ function xg({
|
|
|
17021
17022
|
}
|
|
17022
17023
|
),
|
|
17023
17024
|
/* @__PURE__ */ e(
|
|
17024
|
-
|
|
17025
|
+
Zi,
|
|
17025
17026
|
{
|
|
17026
17027
|
dataType: Aa,
|
|
17027
17028
|
calculated: !!ze
|
|
@@ -17118,7 +17119,7 @@ function xg({
|
|
|
17118
17119
|
}
|
|
17119
17120
|
),
|
|
17120
17121
|
oe && a === "metrics" && Ge && /* @__PURE__ */ e(
|
|
17121
|
-
|
|
17122
|
+
eo,
|
|
17122
17123
|
{
|
|
17123
17124
|
open: oe,
|
|
17124
17125
|
onOpenChange: Oe,
|
|
@@ -17134,7 +17135,7 @@ function xg({
|
|
|
17134
17135
|
card: ne,
|
|
17135
17136
|
frame: ke,
|
|
17136
17137
|
actions: be
|
|
17137
|
-
} = R.getState(), Ze = ((La = ne.config) == null ? void 0 : La.metricColumns) || [], it = ke.calculatedFields || [], { nextActiveFields: xt, nextStoredFields: na, nextSharedFields: Fa } =
|
|
17138
|
+
} = R.getState(), Ze = ((La = ne.config) == null ? void 0 : La.metricColumns) || [], it = ke.calculatedFields || [], { nextActiveFields: xt, nextStoredFields: na, nextSharedFields: Fa } = no({
|
|
17138
17139
|
activeFields: Ze,
|
|
17139
17140
|
storedFields: ne.calculatedFields || [],
|
|
17140
17141
|
sharedFields: it,
|
|
@@ -17162,7 +17163,7 @@ function xg({
|
|
|
17162
17163
|
card: ne,
|
|
17163
17164
|
frame: ke,
|
|
17164
17165
|
actions: be
|
|
17165
|
-
} = R.getState(), Ze = t, it = ((Nl = ne.config) == null ? void 0 : Nl.metricColumns) || [], xt = ke.calculatedFields || [], { nextActiveFields: na, nextStoredFields: Fa, nextSharedFields: La } =
|
|
17166
|
+
} = R.getState(), Ze = t, it = ((Nl = ne.config) == null ? void 0 : Nl.metricColumns) || [], xt = ke.calculatedFields || [], { nextActiveFields: na, nextStoredFields: Fa, nextSharedFields: La } = to({
|
|
17166
17167
|
activeFields: it,
|
|
17167
17168
|
storedFields: ne.calculatedFields || [],
|
|
17168
17169
|
sharedFields: xt,
|
|
@@ -17411,7 +17412,7 @@ function Cg({
|
|
|
17411
17412
|
(K) => K.actions.updateCardConfig
|
|
17412
17413
|
), f = R((K) => K.actions.updateCard), N = R((K) => K.actions.updateFrame), E = Le((K) => K.isVisualEditing), V = Le((K) => K.selectedSheetId), w = Le(
|
|
17413
17414
|
(K) => K.actions.updateSheetCalculatedFields
|
|
17414
|
-
), { scopedFields: I } =
|
|
17415
|
+
), { scopedFields: I } = Wi(), { userContext: k } = gr(), S = u && (h == null ? void 0 : h.id) === o.id && g ? g : o == null ? void 0 : o.type, v = S === "detailTable", A = t.length > 0 || s.length > 0 || d.length > 0, b = !v && (S !== "kpi" || s.length <= 2), L = !v, D = !v && S !== "kpi", M = S !== "kpi" && A, F = v, x = "Drop sort fields here", T = (k == null ? void 0 : k.type) === "organization", O = [
|
|
17415
17416
|
"pie",
|
|
17416
17417
|
"doughnut",
|
|
17417
17418
|
"polar",
|
|
@@ -17520,7 +17521,7 @@ function Cg({
|
|
|
17520
17521
|
)
|
|
17521
17522
|
] }),
|
|
17522
17523
|
/* @__PURE__ */ e(
|
|
17523
|
-
|
|
17524
|
+
eo,
|
|
17524
17525
|
{
|
|
17525
17526
|
open: l,
|
|
17526
17527
|
onOpenChange: c,
|
|
@@ -17529,7 +17530,7 @@ function Cg({
|
|
|
17529
17530
|
allowedFieldTypes: ["metric"],
|
|
17530
17531
|
onSave: (K) => {
|
|
17531
17532
|
if (K.role !== "metric") return;
|
|
17532
|
-
const { nextStoredFields: Q } =
|
|
17533
|
+
const { nextStoredFields: Q } = no({
|
|
17533
17534
|
activeFields: s,
|
|
17534
17535
|
storedFields: o.calculatedFields || [],
|
|
17535
17536
|
sharedFields: m.calculatedFields || [],
|
|
@@ -17542,7 +17543,7 @@ function Cg({
|
|
|
17542
17543
|
},
|
|
17543
17544
|
onSaveToDashboard: (K) => {
|
|
17544
17545
|
if (K.role !== "metric") return;
|
|
17545
|
-
const Q = m.calculatedFields || [], { nextSharedFields: te } =
|
|
17546
|
+
const Q = m.calculatedFields || [], { nextSharedFields: te } = to({
|
|
17546
17547
|
activeFields: s,
|
|
17547
17548
|
storedFields: o.calculatedFields || [],
|
|
17548
17549
|
sharedFields: Q,
|
|
@@ -17734,7 +17735,7 @@ function Sg({ onEditJoins: t }) {
|
|
|
17734
17735
|
onClick: t,
|
|
17735
17736
|
className: "inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus-visible:border-ring",
|
|
17736
17737
|
"aria-label": "Edit resolved joins",
|
|
17737
|
-
children: /* @__PURE__ */ e(
|
|
17738
|
+
children: /* @__PURE__ */ e(Qi, { className: "h-3 w-3", strokeWidth: 1.75 })
|
|
17738
17739
|
}
|
|
17739
17740
|
)
|
|
17740
17741
|
] });
|
|
@@ -17821,7 +17822,7 @@ function Tg({
|
|
|
17821
17822
|
] }),
|
|
17822
17823
|
/* @__PURE__ */ e(wg, {}),
|
|
17823
17824
|
/* @__PURE__ */ e(
|
|
17824
|
-
|
|
17825
|
+
bo,
|
|
17825
17826
|
{
|
|
17826
17827
|
open: h,
|
|
17827
17828
|
onOpenChange: y,
|
|
@@ -18137,7 +18138,7 @@ function Eg({
|
|
|
18137
18138
|
".",
|
|
18138
18139
|
t.name
|
|
18139
18140
|
] }) }) : r,
|
|
18140
|
-
/* @__PURE__ */ e(
|
|
18141
|
+
/* @__PURE__ */ e(po, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
18141
18142
|
]
|
|
18142
18143
|
}
|
|
18143
18144
|
) }),
|
|
@@ -18212,7 +18213,7 @@ function Pr(t) {
|
|
|
18212
18213
|
groupByColumns: [l],
|
|
18213
18214
|
metricColumns: [c],
|
|
18214
18215
|
sortByColumns: [o]
|
|
18215
|
-
}, h = ((C = a.dataSource) == null ? void 0 : C.connectionId) || a.connectionId, { data: y, isPending: p, error: u } =
|
|
18216
|
+
}, h = ((C = a.dataSource) == null ? void 0 : C.connectionId) || a.connectionId, { data: y, isPending: p, error: u } = Ji({
|
|
18216
18217
|
queryKey: [
|
|
18217
18218
|
"filterValues",
|
|
18218
18219
|
t.entityId,
|
|
@@ -19026,7 +19027,7 @@ function $g({
|
|
|
19026
19027
|
updateConditionFields: u
|
|
19027
19028
|
},
|
|
19028
19029
|
L.id
|
|
19029
|
-
), b =
|
|
19030
|
+
), b = ao(t);
|
|
19030
19031
|
return /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
19031
19032
|
/* @__PURE__ */ e(dr, { children: /* @__PURE__ */ e(mr, { className: "p-4", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
19032
19033
|
c ? /* @__PURE__ */ n("div", { className: "flex items-center justify-center p-4", children: [
|
|
@@ -19731,7 +19732,7 @@ function Xg({
|
|
|
19731
19732
|
variant: "compact"
|
|
19732
19733
|
}
|
|
19733
19734
|
),
|
|
19734
|
-
C && /* @__PURE__ */ e(
|
|
19735
|
+
C && /* @__PURE__ */ e(mo, {})
|
|
19735
19736
|
] }),
|
|
19736
19737
|
/* @__PURE__ */ n("div", { className: "flex grow items-center justify-end gap-1", children: [
|
|
19737
19738
|
/* @__PURE__ */ e(
|
|
@@ -19739,7 +19740,7 @@ function Xg({
|
|
|
19739
19740
|
{
|
|
19740
19741
|
cardId: r.id,
|
|
19741
19742
|
cardFilters: (Je = r.config) == null ? void 0 : Je.filters,
|
|
19742
|
-
cardFilterCount:
|
|
19743
|
+
cardFilterCount: ao(
|
|
19743
19744
|
((ct = r.config) == null ? void 0 : ct.filters) || null
|
|
19744
19745
|
),
|
|
19745
19746
|
onFiltersClick: s,
|
|
@@ -19760,7 +19761,7 @@ function Xg({
|
|
|
19760
19761
|
Pe(!0), Q();
|
|
19761
19762
|
},
|
|
19762
19763
|
children: /* @__PURE__ */ e(
|
|
19763
|
-
|
|
19764
|
+
ji,
|
|
19764
19765
|
{
|
|
19765
19766
|
className: X("h-3.5 w-3.5", {
|
|
19766
19767
|
"animate-spin": we
|
|
@@ -19884,7 +19885,7 @@ function Xg({
|
|
|
19884
19885
|
errorSql: W,
|
|
19885
19886
|
onSendFeedback: () => {
|
|
19886
19887
|
const he = sm(
|
|
19887
|
-
|
|
19888
|
+
Ei.QUERY_GENERATION,
|
|
19888
19889
|
{
|
|
19889
19890
|
cardConfig: i.config,
|
|
19890
19891
|
dataSource: r.dataSource,
|
|
@@ -19923,7 +19924,7 @@ function Xg({
|
|
|
19923
19924
|
) }) })
|
|
19924
19925
|
] }),
|
|
19925
19926
|
v && /* @__PURE__ */ e(
|
|
19926
|
-
|
|
19927
|
+
Ri,
|
|
19927
19928
|
{
|
|
19928
19929
|
open: w,
|
|
19929
19930
|
onOpenChange: I,
|
|
@@ -19939,13 +19940,13 @@ function Zg({ activeField: t }) {
|
|
|
19939
19940
|
if (Ce(() => {
|
|
19940
19941
|
t && s(!0);
|
|
19941
19942
|
}, [t]), !t) return null;
|
|
19942
|
-
const r = !!
|
|
19943
|
+
const r = !!Xi(t);
|
|
19943
19944
|
return /* @__PURE__ */ n(
|
|
19944
19945
|
"div",
|
|
19945
19946
|
{
|
|
19946
19947
|
className: `flex h-7 max-w-[300px] items-center gap-2 rounded-[5px] border border-border bg-popover px-3 text-[13px] text-foreground/90 shadow-[0_4px_12px_rgba(0,0,0,0.08)] transition-all duration-150 ${a ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
|
|
19947
19948
|
children: [
|
|
19948
|
-
/* @__PURE__ */ e(
|
|
19949
|
+
/* @__PURE__ */ e(Zi, { dataType: t.dataType, calculated: r }),
|
|
19949
19950
|
/* @__PURE__ */ e("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: t.label || t.name })
|
|
19950
19951
|
]
|
|
19951
19952
|
}
|
|
@@ -20430,7 +20431,7 @@ function ax({
|
|
|
20430
20431
|
F
|
|
20431
20432
|
)) })
|
|
20432
20433
|
] }),
|
|
20433
|
-
/* @__PURE__ */ e(
|
|
20434
|
+
/* @__PURE__ */ e(so, { children: S && /* @__PURE__ */ e("div", { className: "rounded border border-primary bg-background px-3 py-2 text-sm font-medium shadow-lg", children: S.label || S.name }) })
|
|
20434
20435
|
]
|
|
20435
20436
|
}
|
|
20436
20437
|
) }),
|
|
@@ -20930,7 +20931,7 @@ function cx() {
|
|
|
20930
20931
|
), v = g, {
|
|
20931
20932
|
getFieldsForContainer: A,
|
|
20932
20933
|
setFieldsForContainer: b
|
|
20933
|
-
} =
|
|
20934
|
+
} = Yi(v), { activeField: L, handleDragStart: D, handleDragEnd: M } = qg({
|
|
20934
20935
|
activeCardId: u.activeCardId,
|
|
20935
20936
|
sourceFields: I,
|
|
20936
20937
|
getFieldsForContainer: A,
|
|
@@ -20962,7 +20963,7 @@ function cx() {
|
|
|
20962
20963
|
children: [
|
|
20963
20964
|
/* @__PURE__ */ n("div", { className: "flex h-full grow", children: [
|
|
20964
20965
|
/* @__PURE__ */ e(
|
|
20965
|
-
|
|
20966
|
+
yo,
|
|
20966
20967
|
{
|
|
20967
20968
|
isVisible: d,
|
|
20968
20969
|
onToggleVisibility: () => i(!d)
|
|
@@ -21026,7 +21027,7 @@ function cx() {
|
|
|
21026
21027
|
onOpenChange: r
|
|
21027
21028
|
}
|
|
21028
21029
|
),
|
|
21029
|
-
/* @__PURE__ */ e(
|
|
21030
|
+
/* @__PURE__ */ e(so, { dropAnimation: null, children: /* @__PURE__ */ e(Zg, { activeField: L || null }) })
|
|
21030
21031
|
]
|
|
21031
21032
|
}
|
|
21032
21033
|
);
|
|
@@ -21037,7 +21038,7 @@ function dx({ authToken: t, onSave: a, onClose: s }) {
|
|
|
21037
21038
|
o("editor", S);
|
|
21038
21039
|
},
|
|
21039
21040
|
[o]
|
|
21040
|
-
), { setAuthToken: C } =
|
|
21041
|
+
), { setAuthToken: C } = io(), { setShowAIDialog: f, setOnSave: N, setOnClose: E } = xe(), { setActiveAssistantType: V } = kr();
|
|
21041
21042
|
Ce(() => {
|
|
21042
21043
|
a && N(a), s && E(s);
|
|
21043
21044
|
}, [a, N, s, E]), Ce(() => {
|
|
@@ -21058,7 +21059,7 @@ function dx({ authToken: t, onSave: a, onClose: s }) {
|
|
|
21058
21059
|
}
|
|
21059
21060
|
function I() {
|
|
21060
21061
|
return /* @__PURE__ */ n(De, { children: [
|
|
21061
|
-
/* @__PURE__ */ e(
|
|
21062
|
+
/* @__PURE__ */ e(yo, { isVisible: !0, onToggleVisibility: () => {
|
|
21062
21063
|
} }),
|
|
21063
21064
|
/* @__PURE__ */ n("div", { className: "relative flex grow", children: [
|
|
21064
21065
|
/* @__PURE__ */ n(
|
|
@@ -21172,7 +21173,7 @@ function dx({ authToken: t, onSave: a, onClose: s }) {
|
|
|
21172
21173
|
}
|
|
21173
21174
|
) });
|
|
21174
21175
|
}
|
|
21175
|
-
function
|
|
21176
|
+
function Nx() {
|
|
21176
21177
|
Le((u) => u.selectedCardId);
|
|
21177
21178
|
const t = Le((u) => u.selectedSheetId), a = Le((u) => u.dashboard), { setIsVisualEditing: s, setSelectedSheetId: r } = Le(
|
|
21178
21179
|
(u) => u.actions
|
|
@@ -21246,5 +21247,5 @@ function vx() {
|
|
|
21246
21247
|
);
|
|
21247
21248
|
}
|
|
21248
21249
|
export {
|
|
21249
|
-
|
|
21250
|
+
Nx as default
|
|
21250
21251
|
};
|